Browse Source

query node - featured video entity removal

ondratra 3 years ago
parent
commit
5b987b5ca6

+ 337 - 337
query-node/generated/graphql-server/generated/binding.ts

@@ -6,12 +6,6 @@ import { IResolvers } from 'graphql-tools/dist/Interfaces'
 import * as schema from  './schema.graphql'
 
 export interface Query {
-    channelCategories: <T = Array<ChannelCategory>>(args: { offset?: Int | null, limit?: Int | null, where?: ChannelCategoryWhereInput | null, orderBy?: ChannelCategoryOrderByInput | null }, info?: GraphQLResolveInfo | string, options?: Options) => Promise<T> ,
-    channelCategoryByUniqueInput: <T = ChannelCategory | null>(args: { where: ChannelCategoryWhereUniqueInput }, info?: GraphQLResolveInfo | string, options?: Options) => Promise<T | null> ,
-    channelCategoriesConnection: <T = ChannelCategoryConnection>(args: { first?: Int | null, after?: String | null, last?: Int | null, before?: String | null, where?: ChannelCategoryWhereInput | null, orderBy?: ChannelCategoryOrderByInput | null }, info?: GraphQLResolveInfo | string, options?: Options) => Promise<T> ,
-    channels: <T = Array<Channel>>(args: { offset?: Int | null, limit?: Int | null, where?: ChannelWhereInput | null, orderBy?: ChannelOrderByInput | null }, info?: GraphQLResolveInfo | string, options?: Options) => Promise<T> ,
-    channelByUniqueInput: <T = Channel | null>(args: { where: ChannelWhereUniqueInput }, info?: GraphQLResolveInfo | string, options?: Options) => Promise<T | null> ,
-    channelsConnection: <T = ChannelConnection>(args: { first?: Int | null, after?: String | null, last?: Int | null, before?: String | null, where?: ChannelWhereInput | null, orderBy?: ChannelOrderByInput | null }, info?: GraphQLResolveInfo | string, options?: Options) => Promise<T> ,
     curatorGroups: <T = Array<CuratorGroup>>(args: { offset?: Int | null, limit?: Int | null, where?: CuratorGroupWhereInput | null, orderBy?: CuratorGroupOrderByInput | null }, info?: GraphQLResolveInfo | string, options?: Options) => Promise<T> ,
     curatorGroupByUniqueInput: <T = CuratorGroup | null>(args: { where: CuratorGroupWhereUniqueInput }, info?: GraphQLResolveInfo | string, options?: Options) => Promise<T | null> ,
     curatorGroupsConnection: <T = CuratorGroupConnection>(args: { first?: Int | null, after?: String | null, last?: Int | null, before?: String | null, where?: CuratorGroupWhereInput | null, orderBy?: CuratorGroupOrderByInput | null }, info?: GraphQLResolveInfo | string, options?: Options) => Promise<T> ,
@@ -21,6 +15,12 @@ export interface Query {
     featuredVideos: <T = Array<FeaturedVideo>>(args: { offset?: Int | null, limit?: Int | null, where?: FeaturedVideoWhereInput | null, orderBy?: FeaturedVideoOrderByInput | null }, info?: GraphQLResolveInfo | string, options?: Options) => Promise<T> ,
     featuredVideoByUniqueInput: <T = FeaturedVideo | null>(args: { where: FeaturedVideoWhereUniqueInput }, info?: GraphQLResolveInfo | string, options?: Options) => Promise<T | null> ,
     featuredVideosConnection: <T = FeaturedVideoConnection>(args: { first?: Int | null, after?: String | null, last?: Int | null, before?: String | null, where?: FeaturedVideoWhereInput | null, orderBy?: FeaturedVideoOrderByInput | null }, info?: GraphQLResolveInfo | string, options?: Options) => Promise<T> ,
+    channelCategories: <T = Array<ChannelCategory>>(args: { offset?: Int | null, limit?: Int | null, where?: ChannelCategoryWhereInput | null, orderBy?: ChannelCategoryOrderByInput | null }, info?: GraphQLResolveInfo | string, options?: Options) => Promise<T> ,
+    channelCategoryByUniqueInput: <T = ChannelCategory | null>(args: { where: ChannelCategoryWhereUniqueInput }, info?: GraphQLResolveInfo | string, options?: Options) => Promise<T | null> ,
+    channelCategoriesConnection: <T = ChannelCategoryConnection>(args: { first?: Int | null, after?: String | null, last?: Int | null, before?: String | null, where?: ChannelCategoryWhereInput | null, orderBy?: ChannelCategoryOrderByInput | null }, info?: GraphQLResolveInfo | string, options?: Options) => Promise<T> ,
+    channels: <T = Array<Channel>>(args: { offset?: Int | null, limit?: Int | null, where?: ChannelWhereInput | null, orderBy?: ChannelOrderByInput | null }, info?: GraphQLResolveInfo | string, options?: Options) => Promise<T> ,
+    channelByUniqueInput: <T = Channel | null>(args: { where: ChannelWhereUniqueInput }, info?: GraphQLResolveInfo | string, options?: Options) => Promise<T | null> ,
+    channelsConnection: <T = ChannelConnection>(args: { first?: Int | null, after?: String | null, last?: Int | null, before?: String | null, where?: ChannelWhereInput | null, orderBy?: ChannelOrderByInput | null }, info?: GraphQLResolveInfo | string, options?: Options) => Promise<T> ,
     languages: <T = Array<Language>>(args: { offset?: Int | null, limit?: Int | null, where?: LanguageWhereInput | null, orderBy?: LanguageOrderByInput | null }, info?: GraphQLResolveInfo | string, options?: Options) => Promise<T> ,
     languageByUniqueInput: <T = Language | null>(args: { where: LanguageWhereUniqueInput }, info?: GraphQLResolveInfo | string, options?: Options) => Promise<T | null> ,
     languagesConnection: <T = LanguageConnection>(args: { first?: Int | null, after?: String | null, last?: Int | null, before?: String | null, where?: LanguageWhereInput | null, orderBy?: LanguageOrderByInput | null }, info?: GraphQLResolveInfo | string, options?: Options) => Promise<T> ,
@@ -85,6 +85,45 @@ export type AssetAvailability =   'ACCEPTED' |
   'PENDING' |
   'INVALID'
 
+export type CuratorGroupOrderByInput =   'createdAt_ASC' |
+  'createdAt_DESC' |
+  'updatedAt_ASC' |
+  'updatedAt_DESC' |
+  'deletedAt_ASC' |
+  'deletedAt_DESC' |
+  'isActive_ASC' |
+  'isActive_DESC'
+
+export type DataObjectOrderByInput =   'createdAt_ASC' |
+  'createdAt_DESC' |
+  'updatedAt_ASC' |
+  'updatedAt_DESC' |
+  'deletedAt_ASC' |
+  'deletedAt_DESC' |
+  'createdInBlock_ASC' |
+  'createdInBlock_DESC' |
+  'typeId_ASC' |
+  'typeId_DESC' |
+  'size_ASC' |
+  'size_DESC' |
+  'liaisonId_ASC' |
+  'liaisonId_DESC' |
+  'liaisonJudgement_ASC' |
+  'liaisonJudgement_DESC' |
+  'ipfsContentId_ASC' |
+  'ipfsContentId_DESC' |
+  'joystreamContentId_ASC' |
+  'joystreamContentId_DESC'
+
+export type FeaturedVideoOrderByInput =   'createdAt_ASC' |
+  'createdAt_DESC' |
+  'updatedAt_ASC' |
+  'updatedAt_DESC' |
+  'deletedAt_ASC' |
+  'deletedAt_DESC' |
+  'videoId_ASC' |
+  'videoId_DESC'
+
 export type ChannelCategoryOrderByInput =   'createdAt_ASC' |
   'createdAt_DESC' |
   'updatedAt_ASC' |
@@ -131,45 +170,6 @@ export type ChannelOrderByInput =   'createdAt_ASC' |
   'createdInBlock_ASC' |
   'createdInBlock_DESC'
 
-export type CuratorGroupOrderByInput =   'createdAt_ASC' |
-  'createdAt_DESC' |
-  'updatedAt_ASC' |
-  'updatedAt_DESC' |
-  'deletedAt_ASC' |
-  'deletedAt_DESC' |
-  'isActive_ASC' |
-  'isActive_DESC'
-
-export type DataObjectOrderByInput =   'createdAt_ASC' |
-  'createdAt_DESC' |
-  'updatedAt_ASC' |
-  'updatedAt_DESC' |
-  'deletedAt_ASC' |
-  'deletedAt_DESC' |
-  'createdInBlock_ASC' |
-  'createdInBlock_DESC' |
-  'typeId_ASC' |
-  'typeId_DESC' |
-  'size_ASC' |
-  'size_DESC' |
-  'liaisonId_ASC' |
-  'liaisonId_DESC' |
-  'liaisonJudgement_ASC' |
-  'liaisonJudgement_DESC' |
-  'ipfsContentId_ASC' |
-  'ipfsContentId_DESC' |
-  'joystreamContentId_ASC' |
-  'joystreamContentId_DESC'
-
-export type FeaturedVideoOrderByInput =   'createdAt_ASC' |
-  'createdAt_DESC' |
-  'updatedAt_ASC' |
-  'updatedAt_DESC' |
-  'deletedAt_ASC' |
-  'deletedAt_DESC' |
-  'videoId_ASC' |
-  'videoId_DESC'
-
 export type LanguageOrderByInput =   'createdAt_ASC' |
   'createdAt_DESC' |
   'updatedAt_ASC' |
@@ -352,168 +352,6 @@ export interface BaseWhereInput {
   deletedById_eq?: String | null
 }
 
-export interface ChannelCategoryCreateInput {
-  name?: String | null
-  createdInBlock: Float
-}
-
-export interface ChannelCategoryUpdateInput {
-  name?: String | null
-  createdInBlock?: Float | null
-}
-
-export interface ChannelCategoryWhereInput {
-  id_eq?: ID_Input | null
-  id_in?: ID_Output[] | ID_Output | null
-  createdAt_eq?: DateTime | null
-  createdAt_lt?: DateTime | null
-  createdAt_lte?: DateTime | null
-  createdAt_gt?: DateTime | null
-  createdAt_gte?: DateTime | null
-  createdById_eq?: ID_Input | null
-  createdById_in?: ID_Output[] | ID_Output | null
-  updatedAt_eq?: DateTime | null
-  updatedAt_lt?: DateTime | null
-  updatedAt_lte?: DateTime | null
-  updatedAt_gt?: DateTime | null
-  updatedAt_gte?: DateTime | null
-  updatedById_eq?: ID_Input | null
-  updatedById_in?: ID_Output[] | ID_Output | null
-  deletedAt_all?: Boolean | null
-  deletedAt_eq?: DateTime | null
-  deletedAt_lt?: DateTime | null
-  deletedAt_lte?: DateTime | null
-  deletedAt_gt?: DateTime | null
-  deletedAt_gte?: DateTime | null
-  deletedById_eq?: ID_Input | null
-  deletedById_in?: ID_Output[] | ID_Output | null
-  name_eq?: String | null
-  name_contains?: String | null
-  name_startsWith?: String | null
-  name_endsWith?: String | null
-  name_in?: String[] | String | null
-  createdInBlock_eq?: Int | null
-  createdInBlock_gt?: Int | null
-  createdInBlock_gte?: Int | null
-  createdInBlock_lt?: Int | null
-  createdInBlock_lte?: Int | null
-  createdInBlock_in?: Int[] | Int | null
-}
-
-export interface ChannelCategoryWhereUniqueInput {
-  id: ID_Output
-}
-
-export interface ChannelCreateInput {
-  ownerMemberId?: ID_Input | null
-  ownerCuratorGroupId?: ID_Input | null
-  categoryId?: ID_Input | null
-  rewardAccount?: String | null
-  title?: String | null
-  description?: String | null
-  coverPhotoDataObjectId?: ID_Input | null
-  coverPhotoUrls: Array<String>
-  coverPhotoAvailability: AssetAvailability
-  avatarPhotoDataObjectId?: ID_Input | null
-  avatarPhotoUrls: Array<String>
-  avatarPhotoAvailability: AssetAvailability
-  isPublic?: Boolean | null
-  isCensored: Boolean
-  languageId?: ID_Input | null
-  createdInBlock: Float
-}
-
-export interface ChannelUpdateInput {
-  ownerMemberId?: ID_Input | null
-  ownerCuratorGroupId?: ID_Input | null
-  categoryId?: ID_Input | null
-  rewardAccount?: String | null
-  title?: String | null
-  description?: String | null
-  coverPhotoDataObjectId?: ID_Input | null
-  coverPhotoUrls?: String[] | String | null
-  coverPhotoAvailability?: AssetAvailability | null
-  avatarPhotoDataObjectId?: ID_Input | null
-  avatarPhotoUrls?: String[] | String | null
-  avatarPhotoAvailability?: AssetAvailability | null
-  isPublic?: Boolean | null
-  isCensored?: Boolean | null
-  languageId?: ID_Input | null
-  createdInBlock?: Float | null
-}
-
-export interface ChannelWhereInput {
-  id_eq?: ID_Input | null
-  id_in?: ID_Output[] | ID_Output | null
-  createdAt_eq?: DateTime | null
-  createdAt_lt?: DateTime | null
-  createdAt_lte?: DateTime | null
-  createdAt_gt?: DateTime | null
-  createdAt_gte?: DateTime | null
-  createdById_eq?: ID_Input | null
-  createdById_in?: ID_Output[] | ID_Output | null
-  updatedAt_eq?: DateTime | null
-  updatedAt_lt?: DateTime | null
-  updatedAt_lte?: DateTime | null
-  updatedAt_gt?: DateTime | null
-  updatedAt_gte?: DateTime | null
-  updatedById_eq?: ID_Input | null
-  updatedById_in?: ID_Output[] | ID_Output | null
-  deletedAt_all?: Boolean | null
-  deletedAt_eq?: DateTime | null
-  deletedAt_lt?: DateTime | null
-  deletedAt_lte?: DateTime | null
-  deletedAt_gt?: DateTime | null
-  deletedAt_gte?: DateTime | null
-  deletedById_eq?: ID_Input | null
-  deletedById_in?: ID_Output[] | ID_Output | null
-  ownerMemberId_eq?: ID_Input | null
-  ownerMemberId_in?: ID_Output[] | ID_Output | null
-  ownerCuratorGroupId_eq?: ID_Input | null
-  ownerCuratorGroupId_in?: ID_Output[] | ID_Output | null
-  categoryId_eq?: ID_Input | null
-  categoryId_in?: ID_Output[] | ID_Output | null
-  rewardAccount_eq?: String | null
-  rewardAccount_contains?: String | null
-  rewardAccount_startsWith?: String | null
-  rewardAccount_endsWith?: String | null
-  rewardAccount_in?: String[] | String | null
-  title_eq?: String | null
-  title_contains?: String | null
-  title_startsWith?: String | null
-  title_endsWith?: String | null
-  title_in?: String[] | String | null
-  description_eq?: String | null
-  description_contains?: String | null
-  description_startsWith?: String | null
-  description_endsWith?: String | null
-  description_in?: String[] | String | null
-  coverPhotoDataObjectId_eq?: ID_Input | null
-  coverPhotoDataObjectId_in?: ID_Output[] | ID_Output | null
-  coverPhotoAvailability_eq?: AssetAvailability | null
-  coverPhotoAvailability_in?: AssetAvailability[] | AssetAvailability | null
-  avatarPhotoDataObjectId_eq?: ID_Input | null
-  avatarPhotoDataObjectId_in?: ID_Output[] | ID_Output | null
-  avatarPhotoAvailability_eq?: AssetAvailability | null
-  avatarPhotoAvailability_in?: AssetAvailability[] | AssetAvailability | null
-  isPublic_eq?: Boolean | null
-  isPublic_in?: Boolean[] | Boolean | null
-  isCensored_eq?: Boolean | null
-  isCensored_in?: Boolean[] | Boolean | null
-  languageId_eq?: ID_Input | null
-  languageId_in?: ID_Output[] | ID_Output | null
-  createdInBlock_eq?: Int | null
-  createdInBlock_gt?: Int | null
-  createdInBlock_gte?: Int | null
-  createdInBlock_lt?: Int | null
-  createdInBlock_lte?: Int | null
-  createdInBlock_in?: Int[] | Int | null
-}
-
-export interface ChannelWhereUniqueInput {
-  id: ID_Output
-}
-
 export interface CuratorGroupCreateInput {
   curatorIds: Array<Int>
   isActive: Boolean
@@ -568,17 +406,15 @@ export interface DataObjectCreateInput {
   joystreamContentId: String
 }
 
-export interface DataObjectOwnerChannelCreateInput {
-  channel: Float
+export interface DataObjectOwnerCouncilCreateInput {
   dummy?: Float | null
 }
 
-export interface DataObjectOwnerChannelUpdateInput {
-  channel?: Float | null
+export interface DataObjectOwnerCouncilUpdateInput {
   dummy?: Float | null
 }
 
-export interface DataObjectOwnerChannelWhereInput {
+export interface DataObjectOwnerCouncilWhereInput {
   id_eq?: ID_Input | null
   id_in?: ID_Output[] | ID_Output | null
   createdAt_eq?: DateTime | null
@@ -603,12 +439,6 @@ export interface DataObjectOwnerChannelWhereInput {
   deletedAt_gte?: DateTime | null
   deletedById_eq?: ID_Input | null
   deletedById_in?: ID_Output[] | ID_Output | null
-  channel_eq?: Int | null
-  channel_gt?: Int | null
-  channel_gte?: Int | null
-  channel_lt?: Int | null
-  channel_lte?: Int | null
-  channel_in?: Int[] | Int | null
   dummy_eq?: Int | null
   dummy_gt?: Int | null
   dummy_gte?: Int | null
@@ -617,19 +447,19 @@ export interface DataObjectOwnerChannelWhereInput {
   dummy_in?: Int[] | Int | null
 }
 
-export interface DataObjectOwnerChannelWhereUniqueInput {
+export interface DataObjectOwnerCouncilWhereUniqueInput {
   id: ID_Output
 }
 
-export interface DataObjectOwnerCouncilCreateInput {
-  dummy?: Float | null
+export interface DataObjectOwnerDaoCreateInput {
+  dao: Float
 }
 
-export interface DataObjectOwnerCouncilUpdateInput {
-  dummy?: Float | null
+export interface DataObjectOwnerDaoUpdateInput {
+  dao?: Float | null
 }
 
-export interface DataObjectOwnerCouncilWhereInput {
+export interface DataObjectOwnerDaoWhereInput {
   id_eq?: ID_Input | null
   id_in?: ID_Output[] | ID_Output | null
   createdAt_eq?: DateTime | null
@@ -654,27 +484,29 @@ export interface DataObjectOwnerCouncilWhereInput {
   deletedAt_gte?: DateTime | null
   deletedById_eq?: ID_Input | null
   deletedById_in?: ID_Output[] | ID_Output | null
-  dummy_eq?: Int | null
-  dummy_gt?: Int | null
-  dummy_gte?: Int | null
-  dummy_lt?: Int | null
-  dummy_lte?: Int | null
-  dummy_in?: Int[] | Int | null
+  dao_eq?: Int | null
+  dao_gt?: Int | null
+  dao_gte?: Int | null
+  dao_lt?: Int | null
+  dao_lte?: Int | null
+  dao_in?: Int[] | Int | null
 }
 
-export interface DataObjectOwnerCouncilWhereUniqueInput {
+export interface DataObjectOwnerDaoWhereUniqueInput {
   id: ID_Output
 }
 
-export interface DataObjectOwnerDaoCreateInput {
-  dao: Float
+export interface DataObjectOwnerChannelCreateInput {
+  channel: Float
+  dummy?: Float | null
 }
 
-export interface DataObjectOwnerDaoUpdateInput {
-  dao?: Float | null
+export interface DataObjectOwnerChannelUpdateInput {
+  channel?: Float | null
+  dummy?: Float | null
 }
 
-export interface DataObjectOwnerDaoWhereInput {
+export interface DataObjectOwnerChannelWhereInput {
   id_eq?: ID_Input | null
   id_in?: ID_Output[] | ID_Output | null
   createdAt_eq?: DateTime | null
@@ -699,15 +531,21 @@ export interface DataObjectOwnerDaoWhereInput {
   deletedAt_gte?: DateTime | null
   deletedById_eq?: ID_Input | null
   deletedById_in?: ID_Output[] | ID_Output | null
-  dao_eq?: Int | null
-  dao_gt?: Int | null
-  dao_gte?: Int | null
-  dao_lt?: Int | null
-  dao_lte?: Int | null
-  dao_in?: Int[] | Int | null
+  channel_eq?: Int | null
+  channel_gt?: Int | null
+  channel_gte?: Int | null
+  channel_lt?: Int | null
+  channel_lte?: Int | null
+  channel_in?: Int[] | Int | null
+  dummy_eq?: Int | null
+  dummy_gt?: Int | null
+  dummy_gte?: Int | null
+  dummy_lt?: Int | null
+  dummy_lte?: Int | null
+  dummy_in?: Int[] | Int | null
 }
 
-export interface DataObjectOwnerDaoWhereUniqueInput {
+export interface DataObjectOwnerChannelWhereUniqueInput {
   id: ID_Output
 }
 
@@ -888,11 +726,134 @@ export interface FeaturedVideoCreateInput {
   videoId: ID_Output
 }
 
-export interface FeaturedVideoUpdateInput {
-  videoId?: ID_Input | null
+export interface FeaturedVideoUpdateInput {
+  videoId?: ID_Input | null
+}
+
+export interface FeaturedVideoWhereInput {
+  id_eq?: ID_Input | null
+  id_in?: ID_Output[] | ID_Output | null
+  createdAt_eq?: DateTime | null
+  createdAt_lt?: DateTime | null
+  createdAt_lte?: DateTime | null
+  createdAt_gt?: DateTime | null
+  createdAt_gte?: DateTime | null
+  createdById_eq?: ID_Input | null
+  createdById_in?: ID_Output[] | ID_Output | null
+  updatedAt_eq?: DateTime | null
+  updatedAt_lt?: DateTime | null
+  updatedAt_lte?: DateTime | null
+  updatedAt_gt?: DateTime | null
+  updatedAt_gte?: DateTime | null
+  updatedById_eq?: ID_Input | null
+  updatedById_in?: ID_Output[] | ID_Output | null
+  deletedAt_all?: Boolean | null
+  deletedAt_eq?: DateTime | null
+  deletedAt_lt?: DateTime | null
+  deletedAt_lte?: DateTime | null
+  deletedAt_gt?: DateTime | null
+  deletedAt_gte?: DateTime | null
+  deletedById_eq?: ID_Input | null
+  deletedById_in?: ID_Output[] | ID_Output | null
+  videoId_eq?: ID_Input | null
+  videoId_in?: ID_Output[] | ID_Output | null
+}
+
+export interface FeaturedVideoWhereUniqueInput {
+  id: ID_Output
+}
+
+export interface ChannelCategoryCreateInput {
+  name?: String | null
+  createdInBlock: Float
+}
+
+export interface ChannelCategoryUpdateInput {
+  name?: String | null
+  createdInBlock?: Float | null
+}
+
+export interface ChannelCategoryWhereInput {
+  id_eq?: ID_Input | null
+  id_in?: ID_Output[] | ID_Output | null
+  createdAt_eq?: DateTime | null
+  createdAt_lt?: DateTime | null
+  createdAt_lte?: DateTime | null
+  createdAt_gt?: DateTime | null
+  createdAt_gte?: DateTime | null
+  createdById_eq?: ID_Input | null
+  createdById_in?: ID_Output[] | ID_Output | null
+  updatedAt_eq?: DateTime | null
+  updatedAt_lt?: DateTime | null
+  updatedAt_lte?: DateTime | null
+  updatedAt_gt?: DateTime | null
+  updatedAt_gte?: DateTime | null
+  updatedById_eq?: ID_Input | null
+  updatedById_in?: ID_Output[] | ID_Output | null
+  deletedAt_all?: Boolean | null
+  deletedAt_eq?: DateTime | null
+  deletedAt_lt?: DateTime | null
+  deletedAt_lte?: DateTime | null
+  deletedAt_gt?: DateTime | null
+  deletedAt_gte?: DateTime | null
+  deletedById_eq?: ID_Input | null
+  deletedById_in?: ID_Output[] | ID_Output | null
+  name_eq?: String | null
+  name_contains?: String | null
+  name_startsWith?: String | null
+  name_endsWith?: String | null
+  name_in?: String[] | String | null
+  createdInBlock_eq?: Int | null
+  createdInBlock_gt?: Int | null
+  createdInBlock_gte?: Int | null
+  createdInBlock_lt?: Int | null
+  createdInBlock_lte?: Int | null
+  createdInBlock_in?: Int[] | Int | null
+}
+
+export interface ChannelCategoryWhereUniqueInput {
+  id: ID_Output
+}
+
+export interface ChannelCreateInput {
+  ownerMemberId?: ID_Input | null
+  ownerCuratorGroupId?: ID_Input | null
+  categoryId?: ID_Input | null
+  rewardAccount?: String | null
+  title?: String | null
+  description?: String | null
+  coverPhotoDataObjectId?: ID_Input | null
+  coverPhotoUrls: Array<String>
+  coverPhotoAvailability: AssetAvailability
+  avatarPhotoDataObjectId?: ID_Input | null
+  avatarPhotoUrls: Array<String>
+  avatarPhotoAvailability: AssetAvailability
+  isPublic?: Boolean | null
+  isCensored: Boolean
+  languageId?: ID_Input | null
+  createdInBlock: Float
+}
+
+export interface ChannelUpdateInput {
+  ownerMemberId?: ID_Input | null
+  ownerCuratorGroupId?: ID_Input | null
+  categoryId?: ID_Input | null
+  rewardAccount?: String | null
+  title?: String | null
+  description?: String | null
+  coverPhotoDataObjectId?: ID_Input | null
+  coverPhotoUrls?: String[] | String | null
+  coverPhotoAvailability?: AssetAvailability | null
+  avatarPhotoDataObjectId?: ID_Input | null
+  avatarPhotoUrls?: String[] | String | null
+  avatarPhotoAvailability?: AssetAvailability | null
+  isPublic?: Boolean | null
+  isCensored?: Boolean | null
+  languageId?: ID_Input | null
+  createdInBlock?: Float | null
 }
 
-export interface FeaturedVideoWhereInput {
+export interface ChannelWhereInput {
   id_eq?: ID_Input | null
   id_in?: ID_Output[] | ID_Output | null
   createdAt_eq?: DateTime | null
@@ -917,11 +878,50 @@ export interface FeaturedVideoWhereInput {
   deletedAt_gte?: DateTime | null
   deletedById_eq?: ID_Input | null
   deletedById_in?: ID_Output[] | ID_Output | null
-  videoId_eq?: ID_Input | null
-  videoId_in?: ID_Output[] | ID_Output | null
+  ownerMemberId_eq?: ID_Input | null
+  ownerMemberId_in?: ID_Output[] | ID_Output | null
+  ownerCuratorGroupId_eq?: ID_Input | null
+  ownerCuratorGroupId_in?: ID_Output[] | ID_Output | null
+  categoryId_eq?: ID_Input | null
+  categoryId_in?: ID_Output[] | ID_Output | null
+  rewardAccount_eq?: String | null
+  rewardAccount_contains?: String | null
+  rewardAccount_startsWith?: String | null
+  rewardAccount_endsWith?: String | null
+  rewardAccount_in?: String[] | String | null
+  title_eq?: String | null
+  title_contains?: String | null
+  title_startsWith?: String | null
+  title_endsWith?: String | null
+  title_in?: String[] | String | null
+  description_eq?: String | null
+  description_contains?: String | null
+  description_startsWith?: String | null
+  description_endsWith?: String | null
+  description_in?: String[] | String | null
+  coverPhotoDataObjectId_eq?: ID_Input | null
+  coverPhotoDataObjectId_in?: ID_Output[] | ID_Output | null
+  coverPhotoAvailability_eq?: AssetAvailability | null
+  coverPhotoAvailability_in?: AssetAvailability[] | AssetAvailability | null
+  avatarPhotoDataObjectId_eq?: ID_Input | null
+  avatarPhotoDataObjectId_in?: ID_Output[] | ID_Output | null
+  avatarPhotoAvailability_eq?: AssetAvailability | null
+  avatarPhotoAvailability_in?: AssetAvailability[] | AssetAvailability | null
+  isPublic_eq?: Boolean | null
+  isPublic_in?: Boolean[] | Boolean | null
+  isCensored_eq?: Boolean | null
+  isCensored_in?: Boolean[] | Boolean | null
+  languageId_eq?: ID_Input | null
+  languageId_in?: ID_Output[] | ID_Output | null
+  createdInBlock_eq?: Int | null
+  createdInBlock_gt?: Int | null
+  createdInBlock_gte?: Int | null
+  createdInBlock_lt?: Int | null
+  createdInBlock_lte?: Int | null
+  createdInBlock_in?: Int[] | Int | null
 }
 
-export interface FeaturedVideoWhereUniqueInput {
+export interface ChannelWhereUniqueInput {
   id: ID_Output
 }
 
@@ -1542,87 +1542,6 @@ export interface BaseModelUUID extends BaseGraphQLObject {
   version: Int
 }
 
-export interface Channel extends BaseGraphQLObject {
-  id: ID_Output
-  createdAt: DateTime
-  createdById: String
-  updatedAt?: DateTime | null
-  updatedById?: String | null
-  deletedAt?: DateTime | null
-  deletedById?: String | null
-  version: Int
-  ownerMember?: Membership | null
-  ownerMemberId?: String | null
-  ownerCuratorGroup?: CuratorGroup | null
-  ownerCuratorGroupId?: String | null
-  category?: ChannelCategory | null
-  categoryId?: String | null
-  rewardAccount?: String | null
-  title?: String | null
-  description?: String | null
-  coverPhotoDataObject?: DataObject | null
-  coverPhotoDataObjectId?: String | null
-  coverPhotoUrls: Array<String>
-  coverPhotoAvailability: AssetAvailability
-  avatarPhotoDataObject?: DataObject | null
-  avatarPhotoDataObjectId?: String | null
-  avatarPhotoUrls: Array<String>
-  avatarPhotoAvailability: AssetAvailability
-  isPublic?: Boolean | null
-  isCensored: Boolean
-  language?: Language | null
-  languageId?: String | null
-  videos: Array<Video>
-  createdInBlock: Int
-}
-
-export interface ChannelCategoriesByNameFTSOutput {
-  item: ChannelCategoriesByNameSearchResult
-  rank: Float
-  isTypeOf: String
-  highlight: String
-}
-
-/*
- * Category of media channel
-
- */
-export interface ChannelCategory extends BaseGraphQLObject {
-  id: ID_Output
-  createdAt: DateTime
-  createdById: String
-  updatedAt?: DateTime | null
-  updatedById?: String | null
-  deletedAt?: DateTime | null
-  deletedById?: String | null
-  version: Int
-  name?: String | null
-  channels: Array<Channel>
-  createdInBlock: Int
-}
-
-export interface ChannelCategoryConnection {
-  totalCount: Int
-  edges: Array<ChannelCategoryEdge>
-  pageInfo: PageInfo
-}
-
-export interface ChannelCategoryEdge {
-  node: ChannelCategory
-  cursor: String
-}
-
-export interface ChannelConnection {
-  totalCount: Int
-  edges: Array<ChannelEdge>
-  pageInfo: PageInfo
-}
-
-export interface ChannelEdge {
-  node: Channel
-  cursor: String
-}
-
 export interface CuratorGroup extends BaseGraphQLObject {
   id: ID_Output
   createdAt: DateTime
@@ -1687,11 +1606,6 @@ export interface DataObjectEdge {
   cursor: String
 }
 
-export interface DataObjectOwnerChannel {
-  channel: Int
-  dummy?: Int | null
-}
-
 export interface DataObjectOwnerCouncil {
   dummy?: Int | null
 }
@@ -1700,6 +1614,11 @@ export interface DataObjectOwnerDao {
   dao: Int
 }
 
+export interface DataObjectOwnerChannel {
+  channel: Int
+  dummy?: Int | null
+}
+
 export interface DataObjectOwnerMember {
   member: Int
   dummy?: Int | null
@@ -1733,6 +1652,87 @@ export interface FeaturedVideoEdge {
   cursor: String
 }
 
+export interface Channel extends BaseGraphQLObject {
+  id: ID_Output
+  createdAt: DateTime
+  createdById: String
+  updatedAt?: DateTime | null
+  updatedById?: String | null
+  deletedAt?: DateTime | null
+  deletedById?: String | null
+  version: Int
+  ownerMember?: Membership | null
+  ownerMemberId?: String | null
+  ownerCuratorGroup?: CuratorGroup | null
+  ownerCuratorGroupId?: String | null
+  category?: ChannelCategory | null
+  categoryId?: String | null
+  rewardAccount?: String | null
+  title?: String | null
+  description?: String | null
+  coverPhotoDataObject?: DataObject | null
+  coverPhotoDataObjectId?: String | null
+  coverPhotoUrls: Array<String>
+  coverPhotoAvailability: AssetAvailability
+  avatarPhotoDataObject?: DataObject | null
+  avatarPhotoDataObjectId?: String | null
+  avatarPhotoUrls: Array<String>
+  avatarPhotoAvailability: AssetAvailability
+  isPublic?: Boolean | null
+  isCensored: Boolean
+  language?: Language | null
+  languageId?: String | null
+  videos: Array<Video>
+  createdInBlock: Int
+}
+
+export interface ChannelCategoriesByNameFTSOutput {
+  item: ChannelCategoriesByNameSearchResult
+  rank: Float
+  isTypeOf: String
+  highlight: String
+}
+
+/*
+ * Category of media channel
+
+ */
+export interface ChannelCategory extends BaseGraphQLObject {
+  id: ID_Output
+  createdAt: DateTime
+  createdById: String
+  updatedAt?: DateTime | null
+  updatedById?: String | null
+  deletedAt?: DateTime | null
+  deletedById?: String | null
+  version: Int
+  name?: String | null
+  channels: Array<Channel>
+  createdInBlock: Int
+}
+
+export interface ChannelCategoryConnection {
+  totalCount: Int
+  edges: Array<ChannelCategoryEdge>
+  pageInfo: PageInfo
+}
+
+export interface ChannelCategoryEdge {
+  node: ChannelCategory
+  cursor: String
+}
+
+export interface ChannelConnection {
+  totalCount: Int
+  edges: Array<ChannelEdge>
+  pageInfo: PageInfo
+}
+
+export interface ChannelEdge {
+  node: Channel
+  cursor: String
+}
+
 export interface Language extends BaseGraphQLObject {
   id: ID_Output
   createdAt: DateTime
@@ -2064,10 +2064,10 @@ The `String` scalar type represents textual data, represented as UTF-8 character
 */
 export type String = string
 
-export type ChannelCategoriesByNameSearchResult = ChannelCategory
-
 export type DataObjectOwner = DataObjectOwnerMember | DataObjectOwnerChannel | DataObjectOwnerDao | DataObjectOwnerCouncil | DataObjectOwnerWorkingGroup
 
+export type ChannelCategoriesByNameSearchResult = ChannelCategory
+
 export type MembersByHandleSearchResult = Membership
 
 export type SearchSearchResult = Channel | Video

File diff suppressed because it is too large
+ 411 - 260
query-node/generated/graphql-server/generated/classes.ts


File diff suppressed because it is too large
+ 444 - 483
query-node/generated/graphql-server/generated/schema.graphql


+ 0 - 2
query-node/generated/graphql-server/model/index.ts

@@ -6,8 +6,6 @@ import { CuratorGroup } from '../src/modules/curator-group/curator-group.model';
 export { CuratorGroup };
 import { DataObject } from '../src/modules/data-object/data-object.model';
 export { DataObject };
-import { FeaturedVideo } from '../src/modules/featured-video/featured-video.model';
-export { FeaturedVideo };
 import { Language } from '../src/modules/language/language.model';
 export { Language };
 import { License } from '../src/modules/license/license.model';

+ 0 - 14
query-node/generated/graphql-server/src/modules/featured-video/featured-video.model.ts

@@ -1,14 +0,0 @@
-import { BaseModel, Model, OneToOne, OneToOneJoin, StringField } from 'warthog';
-
-import { Video } from '../video/video.model';
-
-@Model({ api: {} })
-export class FeaturedVideo extends BaseModel {
-  @OneToOneJoin(() => Video, (param: Video) => param.featured, { cascade: ["insert", "update"] })
-  video!: Video;
-
-  constructor(init?: Partial<FeaturedVideo>) {
-    super();
-    Object.assign(this, init);
-  }
-}

+ 0 - 142
query-node/generated/graphql-server/src/modules/featured-video/featured-video.resolver.ts

@@ -1,142 +0,0 @@
-import {
-  Arg,
-  Args,
-  Mutation,
-  Query,
-  Root,
-  Resolver,
-  FieldResolver,
-  ObjectType,
-  Field,
-  Int,
-  ArgsType,
-  Info,
-} from 'type-graphql';
-import graphqlFields from 'graphql-fields';
-import { Inject } from 'typedi';
-import { Min } from 'class-validator';
-import { Fields, StandardDeleteResponse, UserId, PageInfo, RawFields } from 'warthog';
-
-import {
-  FeaturedVideoCreateInput,
-  FeaturedVideoCreateManyArgs,
-  FeaturedVideoUpdateArgs,
-  FeaturedVideoWhereArgs,
-  FeaturedVideoWhereInput,
-  FeaturedVideoWhereUniqueInput,
-  FeaturedVideoOrderByEnum,
-} from '../../../generated';
-
-import { FeaturedVideo } from './featured-video.model';
-import { FeaturedVideoService } from './featured-video.service';
-
-import { Video } from '../video/video.model';
-import { getConnection } from 'typeorm';
-
-@ObjectType()
-export class FeaturedVideoEdge {
-  @Field(() => FeaturedVideo, { nullable: false })
-  node!: FeaturedVideo;
-
-  @Field(() => String, { nullable: false })
-  cursor!: string;
-}
-
-@ObjectType()
-export class FeaturedVideoConnection {
-  @Field(() => Int, { nullable: false })
-  totalCount!: number;
-
-  @Field(() => [FeaturedVideoEdge], { nullable: false })
-  edges!: FeaturedVideoEdge[];
-
-  @Field(() => PageInfo, { nullable: false })
-  pageInfo!: PageInfo;
-}
-
-@ArgsType()
-export class ConnectionPageInputOptions {
-  @Field(() => Int, { nullable: true })
-  @Min(0)
-  first?: number;
-
-  @Field(() => String, { nullable: true })
-  after?: string; // V3: TODO: should we make a RelayCursor scalar?
-
-  @Field(() => Int, { nullable: true })
-  @Min(0)
-  last?: number;
-
-  @Field(() => String, { nullable: true })
-  before?: string;
-}
-
-@ArgsType()
-export class FeaturedVideoConnectionWhereArgs extends ConnectionPageInputOptions {
-  @Field(() => FeaturedVideoWhereInput, { nullable: true })
-  where?: FeaturedVideoWhereInput;
-
-  @Field(() => FeaturedVideoOrderByEnum, { nullable: true })
-  orderBy?: FeaturedVideoOrderByEnum;
-}
-
-@Resolver(FeaturedVideo)
-export class FeaturedVideoResolver {
-  constructor(@Inject('FeaturedVideoService') public readonly service: FeaturedVideoService) {}
-
-  @Query(() => [FeaturedVideo])
-  async featuredVideos(
-    @Args() { where, orderBy, limit, offset }: FeaturedVideoWhereArgs,
-    @Fields() fields: string[]
-  ): Promise<FeaturedVideo[]> {
-    return this.service.find<FeaturedVideoWhereInput>(where, orderBy, limit, offset, fields);
-  }
-
-  @Query(() => FeaturedVideo, { nullable: true })
-  async featuredVideoByUniqueInput(
-    @Arg('where') where: FeaturedVideoWhereUniqueInput,
-    @Fields() fields: string[]
-  ): Promise<FeaturedVideo | null> {
-    const result = await this.service.find(where, undefined, 1, 0, fields);
-    return result && result.length >= 1 ? result[0] : null;
-  }
-
-  @Query(() => FeaturedVideoConnection)
-  async featuredVideosConnection(
-    @Args() { where, orderBy, ...pageOptions }: FeaturedVideoConnectionWhereArgs,
-    @Info() info: any
-  ): Promise<FeaturedVideoConnection> {
-    const rawFields = graphqlFields(info, {}, { excludedFields: ['__typename'] });
-
-    let result: any = {
-      totalCount: 0,
-      edges: [],
-      pageInfo: {
-        hasNextPage: false,
-        hasPreviousPage: false,
-      },
-    };
-    // If the related database table does not have any records then an error is thrown to the client
-    // by warthog
-    try {
-      result = await this.service.findConnection<FeaturedVideoWhereInput>(where, orderBy, pageOptions, rawFields);
-    } catch (err) {
-      console.log(err);
-      // TODO: should continue to return this on `Error: Items is empty` or throw the error
-      if (!(err.message as string).includes('Items is empty')) throw err;
-    }
-
-    return result as Promise<FeaturedVideoConnection>;
-  }
-
-  @FieldResolver(() => Video)
-  async video(@Root() r: FeaturedVideo): Promise<Video | null> {
-    const result = await getConnection()
-      .getRepository(FeaturedVideo)
-      .findOne(r.id, { relations: ['video'] });
-    if (result && result.video !== undefined) {
-      return result.video;
-    }
-    return null;
-  }
-}

+ 0 - 28
query-node/generated/graphql-server/src/modules/featured-video/featured-video.service.ts

@@ -1,28 +0,0 @@
-import { Service } from 'typedi';
-import { Repository } from 'typeorm';
-import { InjectRepository } from 'typeorm-typedi-extensions';
-import { BaseService, WhereInput } from 'warthog';
-
-import { FeaturedVideo } from './featured-video.model';
-
-@Service('FeaturedVideoService')
-export class FeaturedVideoService extends BaseService<FeaturedVideo> {
-  constructor(@InjectRepository(FeaturedVideo) protected readonly repository: Repository<FeaturedVideo>) {
-    super(FeaturedVideo, repository);
-  }
-
-  async find<W extends WhereInput>(
-    where?: any,
-    orderBy?: string,
-    limit?: number,
-    offset?: number,
-    fields?: string[]
-  ): Promise<FeaturedVideo[]> {
-    let f = fields;
-    if (f == undefined) {
-      f = [];
-    }
-
-    return super.find<W>(where, orderBy, limit, offset, f);
-  }
-}

+ 0 - 4
query-node/generated/graphql-server/src/modules/video/video.model.ts

@@ -18,7 +18,6 @@ import { DataObject } from '../data-object/data-object.model';
 import { Language } from '../language/language.model';
 import { License } from '../license/license.model';
 import { VideoMediaMetadata } from '../video-media-metadata/video-media-metadata.model';
-import { FeaturedVideo } from '../featured-video/featured-video.model';
 
 import { AssetAvailability } from '../enums/enums';
 export { AssetAvailability };
@@ -131,9 +130,6 @@ export class Video extends BaseModel {
   })
   isFeatured!: boolean;
 
-  @OneToOne(() => FeaturedVideo, (param: FeaturedVideo) => param.video, { nullable: true, cascade: ["insert", "update"] })
-  featured?: FeaturedVideo;
-
   constructor(init?: Partial<Video>) {
     super();
     Object.assign(this, init);

+ 0 - 12
query-node/generated/graphql-server/src/modules/video/video.resolver.ts

@@ -36,7 +36,6 @@ import { DataObject } from '../data-object/data-object.model';
 import { Language } from '../language/language.model';
 import { License } from '../license/license.model';
 import { VideoMediaMetadata } from '../video-media-metadata/video-media-metadata.model';
-import { FeaturedVideo } from '../featured-video/featured-video.model';
 import { getConnection } from 'typeorm';
 
 @ObjectType()
@@ -211,15 +210,4 @@ export class VideoResolver {
     }
     return null;
   }
-
-  @FieldResolver(() => FeaturedVideo)
-  async featured(@Root() r: Video): Promise<FeaturedVideo | null> {
-    const result = await getConnection()
-      .getRepository(Video)
-      .findOne(r.id, { relations: ['featured'] });
-    if (result && result.featured !== undefined) {
-      return result.featured;
-    }
-    return null;
-  }
 }

+ 0 - 10
query-node/schema.graphql

@@ -329,8 +329,6 @@ type Video @entity {
 
   "Is video featured or not"
   isFeatured: Boolean!
-
-  featured: FeaturedVideo @derivedFrom(field: "video")
 }
 
 type VideoMediaMetadata @entity {
@@ -379,14 +377,6 @@ type License @entity {
   custom_text: String
 }
 
-type FeaturedVideo @entity {
-  "Unique identifier"
-  id: ID!
-
-  "Reference to a video"
-  video: Video!
-}
-
 enum WorkerType {
   GATEWAY
   STORAGE

Some files were not shown because too many files changed in this diff