From 0613fb6990cb90bed1c0d6f2324950392dd02855 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ph=E1=BA=A1m=20D=C6=B0=C6=A1ng=20Nh=E1=BA=ADt=20Nam?= Date: Sun, 12 May 2019 08:53:16 +0700 Subject: [PATCH] fix(Localization): refactor model --- datamodel.prisma | 2 +- generated/prisma-client/index.ts | 546 +++++++++++------------ generated/prisma-client/prisma-schema.ts | 256 +++++------ 3 files changed, 382 insertions(+), 422 deletions(-) diff --git a/datamodel.prisma b/datamodel.prisma index 8ee696d..0be934a 100644 --- a/datamodel.prisma +++ b/datamodel.prisma @@ -127,5 +127,5 @@ type Translation { type Localization { id: ID! @id key: String! @unique - translations: [TranslationText!]! @relation(link: "TABLE", name: "LocalizationTranslation") + translations: [Translation!]! @relation(link: "TABLE", name: "LocalizationTranslation") } \ No newline at end of file diff --git a/generated/prisma-client/index.ts b/generated/prisma-client/index.ts index 4e49e88..1cd7f51 100644 --- a/generated/prisma-client/index.ts +++ b/generated/prisma-client/index.ts @@ -25,13 +25,11 @@ export interface Exists { commune: (where?: CommuneWhereInput) => Promise; district: (where?: DistrictWhereInput) => Promise; group: (where?: GroupWhereInput) => Promise; - internationalization: ( - where?: InternationalizationWhereInput - ) => Promise; + localization: (where?: LocalizationWhereInput) => Promise; memberType: (where?: MemberTypeWhereInput) => Promise; profile: (where?: ProfileWhereInput) => Promise; province: (where?: ProvinceWhereInput) => Promise; - translationText: (where?: TranslationTextWhereInput) => Promise; + translation: (where?: TranslationWhereInput) => Promise; user: (where?: UserWhereInput) => Promise; } @@ -193,27 +191,27 @@ export interface Prisma { first?: Int; last?: Int; }) => GroupConnectionPromise; - internationalization: ( - where: InternationalizationWhereUniqueInput - ) => InternationalizationNullablePromise; - internationalizations: (args?: { - where?: InternationalizationWhereInput; - orderBy?: InternationalizationOrderByInput; + localization: ( + where: LocalizationWhereUniqueInput + ) => LocalizationNullablePromise; + localizations: (args?: { + where?: LocalizationWhereInput; + orderBy?: LocalizationOrderByInput; skip?: Int; after?: String; before?: String; first?: Int; last?: Int; - }) => FragmentableArray; - internationalizationsConnection: (args?: { - where?: InternationalizationWhereInput; - orderBy?: InternationalizationOrderByInput; + }) => FragmentableArray; + localizationsConnection: (args?: { + where?: LocalizationWhereInput; + orderBy?: LocalizationOrderByInput; skip?: Int; after?: String; before?: String; first?: Int; last?: Int; - }) => InternationalizationConnectionPromise; + }) => LocalizationConnectionPromise; memberType: (where: MemberTypeWhereUniqueInput) => MemberTypeNullablePromise; memberTypes: (args?: { where?: MemberTypeWhereInput; @@ -271,27 +269,27 @@ export interface Prisma { first?: Int; last?: Int; }) => ProvinceConnectionPromise; - translationText: ( - where: TranslationTextWhereUniqueInput - ) => TranslationTextNullablePromise; - translationTexts: (args?: { - where?: TranslationTextWhereInput; - orderBy?: TranslationTextOrderByInput; + translation: ( + where: TranslationWhereUniqueInput + ) => TranslationNullablePromise; + translations: (args?: { + where?: TranslationWhereInput; + orderBy?: TranslationOrderByInput; skip?: Int; after?: String; before?: String; first?: Int; last?: Int; - }) => FragmentableArray; - translationTextsConnection: (args?: { - where?: TranslationTextWhereInput; - orderBy?: TranslationTextOrderByInput; + }) => FragmentableArray; + translationsConnection: (args?: { + where?: TranslationWhereInput; + orderBy?: TranslationOrderByInput; skip?: Int; after?: String; before?: String; first?: Int; last?: Int; - }) => TranslationTextConnectionPromise; + }) => TranslationConnectionPromise; user: (where: UserWhereUniqueInput) => UserNullablePromise; users: (args?: { where?: UserWhereInput; @@ -445,27 +443,25 @@ export interface Prisma { }) => GroupPromise; deleteGroup: (where: GroupWhereUniqueInput) => GroupPromise; deleteManyGroups: (where?: GroupWhereInput) => BatchPayloadPromise; - createInternationalization: ( - data: InternationalizationCreateInput - ) => InternationalizationPromise; - updateInternationalization: (args: { - data: InternationalizationUpdateInput; - where: InternationalizationWhereUniqueInput; - }) => InternationalizationPromise; - updateManyInternationalizations: (args: { - data: InternationalizationUpdateManyMutationInput; - where?: InternationalizationWhereInput; + createLocalization: (data: LocalizationCreateInput) => LocalizationPromise; + updateLocalization: (args: { + data: LocalizationUpdateInput; + where: LocalizationWhereUniqueInput; + }) => LocalizationPromise; + updateManyLocalizations: (args: { + data: LocalizationUpdateManyMutationInput; + where?: LocalizationWhereInput; }) => BatchPayloadPromise; - upsertInternationalization: (args: { - where: InternationalizationWhereUniqueInput; - create: InternationalizationCreateInput; - update: InternationalizationUpdateInput; - }) => InternationalizationPromise; - deleteInternationalization: ( - where: InternationalizationWhereUniqueInput - ) => InternationalizationPromise; - deleteManyInternationalizations: ( - where?: InternationalizationWhereInput + upsertLocalization: (args: { + where: LocalizationWhereUniqueInput; + create: LocalizationCreateInput; + update: LocalizationUpdateInput; + }) => LocalizationPromise; + deleteLocalization: ( + where: LocalizationWhereUniqueInput + ) => LocalizationPromise; + deleteManyLocalizations: ( + where?: LocalizationWhereInput ) => BatchPayloadPromise; createMemberType: (data: MemberTypeCreateInput) => MemberTypePromise; updateMemberType: (args: { @@ -515,27 +511,23 @@ export interface Prisma { }) => ProvincePromise; deleteProvince: (where: ProvinceWhereUniqueInput) => ProvincePromise; deleteManyProvinces: (where?: ProvinceWhereInput) => BatchPayloadPromise; - createTranslationText: ( - data: TranslationTextCreateInput - ) => TranslationTextPromise; - updateTranslationText: (args: { - data: TranslationTextUpdateInput; - where: TranslationTextWhereUniqueInput; - }) => TranslationTextPromise; - updateManyTranslationTexts: (args: { - data: TranslationTextUpdateManyMutationInput; - where?: TranslationTextWhereInput; + createTranslation: (data: TranslationCreateInput) => TranslationPromise; + updateTranslation: (args: { + data: TranslationUpdateInput; + where: TranslationWhereUniqueInput; + }) => TranslationPromise; + updateManyTranslations: (args: { + data: TranslationUpdateManyMutationInput; + where?: TranslationWhereInput; }) => BatchPayloadPromise; - upsertTranslationText: (args: { - where: TranslationTextWhereUniqueInput; - create: TranslationTextCreateInput; - update: TranslationTextUpdateInput; - }) => TranslationTextPromise; - deleteTranslationText: ( - where: TranslationTextWhereUniqueInput - ) => TranslationTextPromise; - deleteManyTranslationTexts: ( - where?: TranslationTextWhereInput + upsertTranslation: (args: { + where: TranslationWhereUniqueInput; + create: TranslationCreateInput; + update: TranslationUpdateInput; + }) => TranslationPromise; + deleteTranslation: (where: TranslationWhereUniqueInput) => TranslationPromise; + deleteManyTranslations: ( + where?: TranslationWhereInput ) => BatchPayloadPromise; createUser: (data: UserCreateInput) => UserPromise; updateUser: (args: { @@ -583,9 +575,9 @@ export interface Subscription { group: ( where?: GroupSubscriptionWhereInput ) => GroupSubscriptionPayloadSubscription; - internationalization: ( - where?: InternationalizationSubscriptionWhereInput - ) => InternationalizationSubscriptionPayloadSubscription; + localization: ( + where?: LocalizationSubscriptionWhereInput + ) => LocalizationSubscriptionPayloadSubscription; memberType: ( where?: MemberTypeSubscriptionWhereInput ) => MemberTypeSubscriptionPayloadSubscription; @@ -595,9 +587,9 @@ export interface Subscription { province: ( where?: ProvinceSubscriptionWhereInput ) => ProvinceSubscriptionPayloadSubscription; - translationText: ( - where?: TranslationTextSubscriptionWhereInput - ) => TranslationTextSubscriptionPayloadSubscription; + translation: ( + where?: TranslationSubscriptionWhereInput + ) => TranslationSubscriptionPayloadSubscription; user: ( where?: UserSubscriptionWhereInput ) => UserSubscriptionPayloadSubscription; @@ -717,7 +709,7 @@ export type GroupOrderByInput = export type LanguageCode = "VI" | "EN"; -export type TranslationTextOrderByInput = +export type TranslationOrderByInput = | "id_ASC" | "id_DESC" | "lang_ASC" @@ -725,7 +717,7 @@ export type TranslationTextOrderByInput = | "text_ASC" | "text_DESC"; -export type InternationalizationOrderByInput = +export type LocalizationOrderByInput = | "id_ASC" | "id_DESC" | "key_ASC" @@ -1434,12 +1426,12 @@ export type GroupWhereUniqueInput = AtLeastOne<{ id: Maybe; }>; -export type InternationalizationWhereUniqueInput = AtLeastOne<{ +export type LocalizationWhereUniqueInput = AtLeastOne<{ id: Maybe; key?: Maybe; }>; -export interface TranslationTextWhereInput { +export interface TranslationWhereInput { id?: Maybe; id_not?: Maybe; id_in?: Maybe; @@ -1472,13 +1464,13 @@ export interface TranslationTextWhereInput { text_not_starts_with?: Maybe; text_ends_with?: Maybe; text_not_ends_with?: Maybe; - localization?: Maybe; - AND?: Maybe; - OR?: Maybe; - NOT?: Maybe; + localization?: Maybe; + AND?: Maybe; + OR?: Maybe; + NOT?: Maybe; } -export interface InternationalizationWhereInput { +export interface LocalizationWhereInput { id?: Maybe; id_not?: Maybe; id_in?: Maybe; @@ -1507,16 +1499,12 @@ export interface InternationalizationWhereInput { key_not_starts_with?: Maybe; key_ends_with?: Maybe; key_not_ends_with?: Maybe; - translationTexts_every?: Maybe; - translationTexts_some?: Maybe; - translationTexts_none?: Maybe; - AND?: Maybe< - InternationalizationWhereInput[] | InternationalizationWhereInput - >; - OR?: Maybe; - NOT?: Maybe< - InternationalizationWhereInput[] | InternationalizationWhereInput - >; + translations_every?: Maybe; + translations_some?: Maybe; + translations_none?: Maybe; + AND?: Maybe; + OR?: Maybe; + NOT?: Maybe; } export type MemberTypeWhereUniqueInput = AtLeastOne<{ @@ -1533,7 +1521,7 @@ export type ProvinceWhereUniqueInput = AtLeastOne<{ id: Maybe; }>; -export type TranslationTextWhereUniqueInput = AtLeastOne<{ +export type TranslationWhereUniqueInput = AtLeastOne<{ id: Maybe; }>; @@ -2946,84 +2934,76 @@ export interface GroupUpdateManyMutationInput { name?: Maybe; } -export interface InternationalizationCreateInput { +export interface LocalizationCreateInput { id?: Maybe; key: String; - translationTexts?: Maybe; + translations?: Maybe; } -export interface TranslationTextCreateManyWithoutLocalizationInput { +export interface TranslationCreateManyWithoutLocalizationInput { create?: Maybe< - | TranslationTextCreateWithoutLocalizationInput[] - | TranslationTextCreateWithoutLocalizationInput - >; - connect?: Maybe< - TranslationTextWhereUniqueInput[] | TranslationTextWhereUniqueInput + | TranslationCreateWithoutLocalizationInput[] + | TranslationCreateWithoutLocalizationInput >; + connect?: Maybe; } -export interface TranslationTextCreateWithoutLocalizationInput { +export interface TranslationCreateWithoutLocalizationInput { id?: Maybe; lang: LanguageCode; text: String; } -export interface InternationalizationUpdateInput { +export interface LocalizationUpdateInput { key?: Maybe; - translationTexts?: Maybe; + translations?: Maybe; } -export interface TranslationTextUpdateManyWithoutLocalizationInput { +export interface TranslationUpdateManyWithoutLocalizationInput { create?: Maybe< - | TranslationTextCreateWithoutLocalizationInput[] - | TranslationTextCreateWithoutLocalizationInput - >; - delete?: Maybe< - TranslationTextWhereUniqueInput[] | TranslationTextWhereUniqueInput - >; - connect?: Maybe< - TranslationTextWhereUniqueInput[] | TranslationTextWhereUniqueInput - >; - set?: Maybe< - TranslationTextWhereUniqueInput[] | TranslationTextWhereUniqueInput + | TranslationCreateWithoutLocalizationInput[] + | TranslationCreateWithoutLocalizationInput >; + delete?: Maybe; + connect?: Maybe; + set?: Maybe; disconnect?: Maybe< - TranslationTextWhereUniqueInput[] | TranslationTextWhereUniqueInput + TranslationWhereUniqueInput[] | TranslationWhereUniqueInput >; update?: Maybe< - | TranslationTextUpdateWithWhereUniqueWithoutLocalizationInput[] - | TranslationTextUpdateWithWhereUniqueWithoutLocalizationInput + | TranslationUpdateWithWhereUniqueWithoutLocalizationInput[] + | TranslationUpdateWithWhereUniqueWithoutLocalizationInput >; upsert?: Maybe< - | TranslationTextUpsertWithWhereUniqueWithoutLocalizationInput[] - | TranslationTextUpsertWithWhereUniqueWithoutLocalizationInput + | TranslationUpsertWithWhereUniqueWithoutLocalizationInput[] + | TranslationUpsertWithWhereUniqueWithoutLocalizationInput >; deleteMany?: Maybe< - TranslationTextScalarWhereInput[] | TranslationTextScalarWhereInput + TranslationScalarWhereInput[] | TranslationScalarWhereInput >; updateMany?: Maybe< - | TranslationTextUpdateManyWithWhereNestedInput[] - | TranslationTextUpdateManyWithWhereNestedInput + | TranslationUpdateManyWithWhereNestedInput[] + | TranslationUpdateManyWithWhereNestedInput >; } -export interface TranslationTextUpdateWithWhereUniqueWithoutLocalizationInput { - where: TranslationTextWhereUniqueInput; - data: TranslationTextUpdateWithoutLocalizationDataInput; +export interface TranslationUpdateWithWhereUniqueWithoutLocalizationInput { + where: TranslationWhereUniqueInput; + data: TranslationUpdateWithoutLocalizationDataInput; } -export interface TranslationTextUpdateWithoutLocalizationDataInput { +export interface TranslationUpdateWithoutLocalizationDataInput { lang?: Maybe; text?: Maybe; } -export interface TranslationTextUpsertWithWhereUniqueWithoutLocalizationInput { - where: TranslationTextWhereUniqueInput; - update: TranslationTextUpdateWithoutLocalizationDataInput; - create: TranslationTextCreateWithoutLocalizationInput; +export interface TranslationUpsertWithWhereUniqueWithoutLocalizationInput { + where: TranslationWhereUniqueInput; + update: TranslationUpdateWithoutLocalizationDataInput; + create: TranslationCreateWithoutLocalizationInput; } -export interface TranslationTextScalarWhereInput { +export interface TranslationScalarWhereInput { id?: Maybe; id_not?: Maybe; id_in?: Maybe; @@ -3056,28 +3036,22 @@ export interface TranslationTextScalarWhereInput { text_not_starts_with?: Maybe; text_ends_with?: Maybe; text_not_ends_with?: Maybe; - AND?: Maybe< - TranslationTextScalarWhereInput[] | TranslationTextScalarWhereInput - >; - OR?: Maybe< - TranslationTextScalarWhereInput[] | TranslationTextScalarWhereInput - >; - NOT?: Maybe< - TranslationTextScalarWhereInput[] | TranslationTextScalarWhereInput - >; + AND?: Maybe; + OR?: Maybe; + NOT?: Maybe; } -export interface TranslationTextUpdateManyWithWhereNestedInput { - where: TranslationTextScalarWhereInput; - data: TranslationTextUpdateManyDataInput; +export interface TranslationUpdateManyWithWhereNestedInput { + where: TranslationScalarWhereInput; + data: TranslationUpdateManyDataInput; } -export interface TranslationTextUpdateManyDataInput { +export interface TranslationUpdateManyDataInput { lang?: Maybe; text?: Maybe; } -export interface InternationalizationUpdateManyMutationInput { +export interface LocalizationUpdateManyMutationInput { key?: Maybe; } @@ -3240,48 +3214,46 @@ export interface ProvinceUpdateManyMutationInput { name?: Maybe; } -export interface TranslationTextCreateInput { +export interface TranslationCreateInput { id?: Maybe; lang: LanguageCode; text: String; - localization: InternationalizationCreateOneWithoutTranslationTextsInput; + localization: LocalizationCreateOneWithoutTranslationsInput; } -export interface InternationalizationCreateOneWithoutTranslationTextsInput { - create?: Maybe; - connect?: Maybe; +export interface LocalizationCreateOneWithoutTranslationsInput { + create?: Maybe; + connect?: Maybe; } -export interface InternationalizationCreateWithoutTranslationTextsInput { +export interface LocalizationCreateWithoutTranslationsInput { id?: Maybe; key: String; } -export interface TranslationTextUpdateInput { +export interface TranslationUpdateInput { lang?: Maybe; text?: Maybe; - localization?: Maybe< - InternationalizationUpdateOneRequiredWithoutTranslationTextsInput - >; + localization?: Maybe; } -export interface InternationalizationUpdateOneRequiredWithoutTranslationTextsInput { - create?: Maybe; - update?: Maybe; - upsert?: Maybe; - connect?: Maybe; +export interface LocalizationUpdateOneRequiredWithoutTranslationsInput { + create?: Maybe; + update?: Maybe; + upsert?: Maybe; + connect?: Maybe; } -export interface InternationalizationUpdateWithoutTranslationTextsDataInput { +export interface LocalizationUpdateWithoutTranslationsDataInput { key?: Maybe; } -export interface InternationalizationUpsertWithoutTranslationTextsInput { - update: InternationalizationUpdateWithoutTranslationTextsDataInput; - create: InternationalizationCreateWithoutTranslationTextsInput; +export interface LocalizationUpsertWithoutTranslationsInput { + update: LocalizationUpdateWithoutTranslationsDataInput; + create: LocalizationCreateWithoutTranslationsInput; } -export interface TranslationTextUpdateManyMutationInput { +export interface TranslationUpdateManyMutationInput { lang?: Maybe; text?: Maybe; } @@ -3454,23 +3426,20 @@ export interface GroupSubscriptionWhereInput { NOT?: Maybe; } -export interface InternationalizationSubscriptionWhereInput { +export interface LocalizationSubscriptionWhereInput { mutation_in?: Maybe; updatedFields_contains?: Maybe; updatedFields_contains_every?: Maybe; updatedFields_contains_some?: Maybe; - node?: Maybe; + node?: Maybe; AND?: Maybe< - | InternationalizationSubscriptionWhereInput[] - | InternationalizationSubscriptionWhereInput + LocalizationSubscriptionWhereInput[] | LocalizationSubscriptionWhereInput >; OR?: Maybe< - | InternationalizationSubscriptionWhereInput[] - | InternationalizationSubscriptionWhereInput + LocalizationSubscriptionWhereInput[] | LocalizationSubscriptionWhereInput >; NOT?: Maybe< - | InternationalizationSubscriptionWhereInput[] - | InternationalizationSubscriptionWhereInput + LocalizationSubscriptionWhereInput[] | LocalizationSubscriptionWhereInput >; } @@ -3517,23 +3486,20 @@ export interface ProvinceSubscriptionWhereInput { >; } -export interface TranslationTextSubscriptionWhereInput { +export interface TranslationSubscriptionWhereInput { mutation_in?: Maybe; updatedFields_contains?: Maybe; updatedFields_contains_every?: Maybe; updatedFields_contains_some?: Maybe; - node?: Maybe; + node?: Maybe; AND?: Maybe< - | TranslationTextSubscriptionWhereInput[] - | TranslationTextSubscriptionWhereInput + TranslationSubscriptionWhereInput[] | TranslationSubscriptionWhereInput >; OR?: Maybe< - | TranslationTextSubscriptionWhereInput[] - | TranslationTextSubscriptionWhereInput + TranslationSubscriptionWhereInput[] | TranslationSubscriptionWhereInput >; NOT?: Maybe< - | TranslationTextSubscriptionWhereInput[] - | TranslationTextSubscriptionWhereInput + TranslationSubscriptionWhereInput[] | TranslationSubscriptionWhereInput >; } @@ -4572,19 +4538,19 @@ export interface AggregateGroupSubscription count: () => Promise>; } -export interface Internationalization { +export interface Localization { id: ID_Output; key: String; } -export interface InternationalizationPromise - extends Promise, +export interface LocalizationPromise + extends Promise, Fragmentable { id: () => Promise; key: () => Promise; - translationTexts: >(args?: { - where?: TranslationTextWhereInput; - orderBy?: TranslationTextOrderByInput; + translations: >(args?: { + where?: TranslationWhereInput; + orderBy?: TranslationOrderByInput; skip?: Int; after?: String; before?: String; @@ -4593,16 +4559,14 @@ export interface InternationalizationPromise }) => T; } -export interface InternationalizationSubscription - extends Promise>, +export interface LocalizationSubscription + extends Promise>, Fragmentable { id: () => Promise>; key: () => Promise>; - translationTexts: < - T = Promise> - >(args?: { - where?: TranslationTextWhereInput; - orderBy?: TranslationTextOrderByInput; + translations: >>(args?: { + where?: TranslationWhereInput; + orderBy?: TranslationOrderByInput; skip?: Int; after?: String; before?: String; @@ -4611,14 +4575,14 @@ export interface InternationalizationSubscription }) => T; } -export interface InternationalizationNullablePromise - extends Promise, +export interface LocalizationNullablePromise + extends Promise, Fragmentable { id: () => Promise; key: () => Promise; - translationTexts: >(args?: { - where?: TranslationTextWhereInput; - orderBy?: TranslationTextOrderByInput; + translations: >(args?: { + where?: TranslationWhereInput; + orderBy?: TranslationOrderByInput; skip?: Int; after?: String; before?: String; @@ -4627,93 +4591,89 @@ export interface InternationalizationNullablePromise }) => T; } -export interface TranslationText { +export interface Translation { id: ID_Output; lang: LanguageCode; text: String; } -export interface TranslationTextPromise - extends Promise, - Fragmentable { +export interface TranslationPromise extends Promise, Fragmentable { id: () => Promise; lang: () => Promise; text: () => Promise; - localization: () => T; + localization: () => T; } -export interface TranslationTextSubscription - extends Promise>, +export interface TranslationSubscription + extends Promise>, Fragmentable { id: () => Promise>; lang: () => Promise>; text: () => Promise>; - localization: () => T; + localization: () => T; } -export interface TranslationTextNullablePromise - extends Promise, +export interface TranslationNullablePromise + extends Promise, Fragmentable { id: () => Promise; lang: () => Promise; text: () => Promise; - localization: () => T; + localization: () => T; } -export interface InternationalizationConnection { +export interface LocalizationConnection { pageInfo: PageInfo; - edges: InternationalizationEdge[]; + edges: LocalizationEdge[]; } -export interface InternationalizationConnectionPromise - extends Promise, +export interface LocalizationConnectionPromise + extends Promise, Fragmentable { pageInfo: () => T; - edges: >() => T; - aggregate: () => T; + edges: >() => T; + aggregate: () => T; } -export interface InternationalizationConnectionSubscription - extends Promise>, +export interface LocalizationConnectionSubscription + extends Promise>, Fragmentable { pageInfo: () => T; - edges: < - T = Promise> - >() => T; - aggregate: () => T; + edges: >>() => T; + aggregate: () => T; } -export interface InternationalizationEdge { - node: Internationalization; +export interface LocalizationEdge { + node: Localization; cursor: String; } -export interface InternationalizationEdgePromise - extends Promise, +export interface LocalizationEdgePromise + extends Promise, Fragmentable { - node: () => T; + node: () => T; cursor: () => Promise; } -export interface InternationalizationEdgeSubscription - extends Promise>, +export interface LocalizationEdgeSubscription + extends Promise>, Fragmentable { - node: () => T; + node: () => T; cursor: () => Promise>; } -export interface AggregateInternationalization { +export interface AggregateLocalization { count: Int; } -export interface AggregateInternationalizationPromise - extends Promise, +export interface AggregateLocalizationPromise + extends Promise, Fragmentable { count: () => Promise; } -export interface AggregateInternationalizationSubscription - extends Promise>, +export interface AggregateLocalizationSubscription + extends Promise>, Fragmentable { count: () => Promise>; } @@ -4884,58 +4844,58 @@ export interface AggregateProvinceSubscription count: () => Promise>; } -export interface TranslationTextConnection { +export interface TranslationConnection { pageInfo: PageInfo; - edges: TranslationTextEdge[]; + edges: TranslationEdge[]; } -export interface TranslationTextConnectionPromise - extends Promise, +export interface TranslationConnectionPromise + extends Promise, Fragmentable { pageInfo: () => T; - edges: >() => T; - aggregate: () => T; + edges: >() => T; + aggregate: () => T; } -export interface TranslationTextConnectionSubscription - extends Promise>, +export interface TranslationConnectionSubscription + extends Promise>, Fragmentable { pageInfo: () => T; - edges: >>() => T; - aggregate: () => T; + edges: >>() => T; + aggregate: () => T; } -export interface TranslationTextEdge { - node: TranslationText; +export interface TranslationEdge { + node: Translation; cursor: String; } -export interface TranslationTextEdgePromise - extends Promise, +export interface TranslationEdgePromise + extends Promise, Fragmentable { - node: () => T; + node: () => T; cursor: () => Promise; } -export interface TranslationTextEdgeSubscription - extends Promise>, +export interface TranslationEdgeSubscription + extends Promise>, Fragmentable { - node: () => T; + node: () => T; cursor: () => Promise>; } -export interface AggregateTranslationText { +export interface AggregateTranslation { count: Int; } -export interface AggregateTranslationTextPromise - extends Promise, +export interface AggregateTranslationPromise + extends Promise, Fragmentable { count: () => Promise; } -export interface AggregateTranslationTextSubscription - extends Promise>, +export interface AggregateTranslationSubscription + extends Promise>, Fragmentable { count: () => Promise>; } @@ -5413,45 +5373,45 @@ export interface GroupPreviousValuesSubscription createdAt: () => Promise>; } -export interface InternationalizationSubscriptionPayload { +export interface LocalizationSubscriptionPayload { mutation: MutationType; - node: Internationalization; + node: Localization; updatedFields: String[]; - previousValues: InternationalizationPreviousValues; + previousValues: LocalizationPreviousValues; } -export interface InternationalizationSubscriptionPayloadPromise - extends Promise, +export interface LocalizationSubscriptionPayloadPromise + extends Promise, Fragmentable { mutation: () => Promise; - node: () => T; + node: () => T; updatedFields: () => Promise; - previousValues: () => T; + previousValues: () => T; } -export interface InternationalizationSubscriptionPayloadSubscription - extends Promise>, +export interface LocalizationSubscriptionPayloadSubscription + extends Promise>, Fragmentable { mutation: () => Promise>; - node: () => T; + node: () => T; updatedFields: () => Promise>; - previousValues: () => T; + previousValues: () => T; } -export interface InternationalizationPreviousValues { +export interface LocalizationPreviousValues { id: ID_Output; key: String; } -export interface InternationalizationPreviousValuesPromise - extends Promise, +export interface LocalizationPreviousValuesPromise + extends Promise, Fragmentable { id: () => Promise; key: () => Promise; } -export interface InternationalizationPreviousValuesSubscription - extends Promise>, +export interface LocalizationPreviousValuesSubscription + extends Promise>, Fragmentable { id: () => Promise>; key: () => Promise>; @@ -5637,47 +5597,47 @@ export interface ProvincePreviousValuesSubscription createdAt: () => Promise>; } -export interface TranslationTextSubscriptionPayload { +export interface TranslationSubscriptionPayload { mutation: MutationType; - node: TranslationText; + node: Translation; updatedFields: String[]; - previousValues: TranslationTextPreviousValues; + previousValues: TranslationPreviousValues; } -export interface TranslationTextSubscriptionPayloadPromise - extends Promise, +export interface TranslationSubscriptionPayloadPromise + extends Promise, Fragmentable { mutation: () => Promise; - node: () => T; + node: () => T; updatedFields: () => Promise; - previousValues: () => T; + previousValues: () => T; } -export interface TranslationTextSubscriptionPayloadSubscription - extends Promise>, +export interface TranslationSubscriptionPayloadSubscription + extends Promise>, Fragmentable { mutation: () => Promise>; - node: () => T; + node: () => T; updatedFields: () => Promise>; - previousValues: () => T; + previousValues: () => T; } -export interface TranslationTextPreviousValues { +export interface TranslationPreviousValues { id: ID_Output; lang: LanguageCode; text: String; } -export interface TranslationTextPreviousValuesPromise - extends Promise, +export interface TranslationPreviousValuesPromise + extends Promise, Fragmentable { id: () => Promise; lang: () => Promise; text: () => Promise; } -export interface TranslationTextPreviousValuesSubscription - extends Promise>, +export interface TranslationPreviousValuesSubscription + extends Promise>, Fragmentable { id: () => Promise>; lang: () => Promise>; @@ -5830,11 +5790,11 @@ export const models: Model[] = [ embedded: false }, { - name: "TranslationText", + name: "Translation", embedded: false }, { - name: "Internationalization", + name: "Localization", embedded: false } ]; diff --git a/generated/prisma-client/prisma-schema.ts b/generated/prisma-client/prisma-schema.ts index 42f1f5e..56ccd97 100644 --- a/generated/prisma-client/prisma-schema.ts +++ b/generated/prisma-client/prisma-schema.ts @@ -879,7 +879,7 @@ type AggregateGroup { count: Int! } -type AggregateInternationalization { +type AggregateLocalization { count: Int! } @@ -895,7 +895,7 @@ type AggregateProvince { count: Int! } -type AggregateTranslationText { +type AggregateTranslation { count: Int! } @@ -1627,95 +1627,100 @@ input GroupWhereUniqueInput { id: ID } -type Internationalization { +enum LanguageCode { + VI + EN +} + +type Localization { id: ID! key: String! - translationTexts(where: TranslationTextWhereInput, orderBy: TranslationTextOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): [TranslationText!] + translations(where: TranslationWhereInput, orderBy: TranslationOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): [Translation!] } -type InternationalizationConnection { +type LocalizationConnection { pageInfo: PageInfo! - edges: [InternationalizationEdge]! - aggregate: AggregateInternationalization! + edges: [LocalizationEdge]! + aggregate: AggregateLocalization! } -input InternationalizationCreateInput { +input LocalizationCreateInput { id: ID key: String! - translationTexts: TranslationTextCreateManyWithoutLocalizationInput + translations: TranslationCreateManyWithoutLocalizationInput } -input InternationalizationCreateOneWithoutTranslationTextsInput { - create: InternationalizationCreateWithoutTranslationTextsInput - connect: InternationalizationWhereUniqueInput +input LocalizationCreateOneWithoutTranslationsInput { + create: LocalizationCreateWithoutTranslationsInput + connect: LocalizationWhereUniqueInput } -input InternationalizationCreateWithoutTranslationTextsInput { +input LocalizationCreateWithoutTranslationsInput { id: ID key: String! } -type InternationalizationEdge { - node: Internationalization! +type LocalizationEdge { + node: Localization! cursor: String! } -enum InternationalizationOrderByInput { +enum LocalizationOrderByInput { id_ASC id_DESC key_ASC key_DESC } -type InternationalizationPreviousValues { +type LocalizationPreviousValues { id: ID! key: String! } -type InternationalizationSubscriptionPayload { +type LocalizationSubscriptionPayload { mutation: MutationType! - node: Internationalization + node: Localization updatedFields: [String!] - previousValues: InternationalizationPreviousValues + previousValues: LocalizationPreviousValues } -input InternationalizationSubscriptionWhereInput { +input LocalizationSubscriptionWhereInput { mutation_in: [MutationType!] updatedFields_contains: String updatedFields_contains_every: [String!] updatedFields_contains_some: [String!] - node: InternationalizationWhereInput - AND: [InternationalizationSubscriptionWhereInput!] - OR: [InternationalizationSubscriptionWhereInput!] - NOT: [InternationalizationSubscriptionWhereInput!] + node: LocalizationWhereInput + AND: [LocalizationSubscriptionWhereInput!] + OR: [LocalizationSubscriptionWhereInput!] + NOT: [LocalizationSubscriptionWhereInput!] } -input InternationalizationUpdateInput { +input LocalizationUpdateInput { key: String - translationTexts: TranslationTextUpdateManyWithoutLocalizationInput + translations: TranslationUpdateManyWithoutLocalizationInput } -input InternationalizationUpdateManyMutationInput { +input LocalizationUpdateManyMutationInput { key: String } -input InternationalizationUpdateOneRequiredWithoutTranslationTextsInput { - create: InternationalizationCreateWithoutTranslationTextsInput - update: InternationalizationUpdateWithoutTranslationTextsDataInput - upsert: InternationalizationUpsertWithoutTranslationTextsInput - connect: InternationalizationWhereUniqueInput +input LocalizationUpdateOneRequiredWithoutTranslationsInput { + create: LocalizationCreateWithoutTranslationsInput + update: LocalizationUpdateWithoutTranslationsDataInput + upsert: LocalizationUpsertWithoutTranslationsInput + connect: LocalizationWhereUniqueInput } -input InternationalizationUpdateWithoutTranslationTextsDataInput { +input LocalizationUpdateWithoutTranslationsDataInput { key: String } -input InternationalizationUpsertWithoutTranslationTextsInput { - update: InternationalizationUpdateWithoutTranslationTextsDataInput! - create: InternationalizationCreateWithoutTranslationTextsInput! +input LocalizationUpsertWithoutTranslationsInput { + update: LocalizationUpdateWithoutTranslationsDataInput! + create: LocalizationCreateWithoutTranslationsInput! } -input InternationalizationWhereInput { +input LocalizationWhereInput { id: ID id_not: ID id_in: [ID!] @@ -1744,24 +1749,19 @@ input InternationalizationWhereInput { key_not_starts_with: String key_ends_with: String key_not_ends_with: String - translationTexts_every: TranslationTextWhereInput - translationTexts_some: TranslationTextWhereInput - translationTexts_none: TranslationTextWhereInput - AND: [InternationalizationWhereInput!] - OR: [InternationalizationWhereInput!] - NOT: [InternationalizationWhereInput!] + translations_every: TranslationWhereInput + translations_some: TranslationWhereInput + translations_none: TranslationWhereInput + AND: [LocalizationWhereInput!] + OR: [LocalizationWhereInput!] + NOT: [LocalizationWhereInput!] } -input InternationalizationWhereUniqueInput { +input LocalizationWhereUniqueInput { id: ID key: String } -enum LanguageCode { - VI - EN -} - scalar Long type MemberType { @@ -1963,12 +1963,12 @@ type Mutation { upsertGroup(where: GroupWhereUniqueInput!, create: GroupCreateInput!, update: GroupUpdateInput!): Group! deleteGroup(where: GroupWhereUniqueInput!): Group deleteManyGroups(where: GroupWhereInput): BatchPayload! - createInternationalization(data: InternationalizationCreateInput!): Internationalization! - updateInternationalization(data: InternationalizationUpdateInput!, where: InternationalizationWhereUniqueInput!): Internationalization - updateManyInternationalizations(data: InternationalizationUpdateManyMutationInput!, where: InternationalizationWhereInput): BatchPayload! - upsertInternationalization(where: InternationalizationWhereUniqueInput!, create: InternationalizationCreateInput!, update: InternationalizationUpdateInput!): Internationalization! - deleteInternationalization(where: InternationalizationWhereUniqueInput!): Internationalization - deleteManyInternationalizations(where: InternationalizationWhereInput): BatchPayload! + createLocalization(data: LocalizationCreateInput!): Localization! + updateLocalization(data: LocalizationUpdateInput!, where: LocalizationWhereUniqueInput!): Localization + updateManyLocalizations(data: LocalizationUpdateManyMutationInput!, where: LocalizationWhereInput): BatchPayload! + upsertLocalization(where: LocalizationWhereUniqueInput!, create: LocalizationCreateInput!, update: LocalizationUpdateInput!): Localization! + deleteLocalization(where: LocalizationWhereUniqueInput!): Localization + deleteManyLocalizations(where: LocalizationWhereInput): BatchPayload! createMemberType(data: MemberTypeCreateInput!): MemberType! updateMemberType(data: MemberTypeUpdateInput!, where: MemberTypeWhereUniqueInput!): MemberType updateManyMemberTypes(data: MemberTypeUpdateManyMutationInput!, where: MemberTypeWhereInput): BatchPayload! @@ -1987,12 +1987,12 @@ type Mutation { upsertProvince(where: ProvinceWhereUniqueInput!, create: ProvinceCreateInput!, update: ProvinceUpdateInput!): Province! deleteProvince(where: ProvinceWhereUniqueInput!): Province deleteManyProvinces(where: ProvinceWhereInput): BatchPayload! - createTranslationText(data: TranslationTextCreateInput!): TranslationText! - updateTranslationText(data: TranslationTextUpdateInput!, where: TranslationTextWhereUniqueInput!): TranslationText - updateManyTranslationTexts(data: TranslationTextUpdateManyMutationInput!, where: TranslationTextWhereInput): BatchPayload! - upsertTranslationText(where: TranslationTextWhereUniqueInput!, create: TranslationTextCreateInput!, update: TranslationTextUpdateInput!): TranslationText! - deleteTranslationText(where: TranslationTextWhereUniqueInput!): TranslationText - deleteManyTranslationTexts(where: TranslationTextWhereInput): BatchPayload! + createTranslation(data: TranslationCreateInput!): Translation! + updateTranslation(data: TranslationUpdateInput!, where: TranslationWhereUniqueInput!): Translation + updateManyTranslations(data: TranslationUpdateManyMutationInput!, where: TranslationWhereInput): BatchPayload! + upsertTranslation(where: TranslationWhereUniqueInput!, create: TranslationCreateInput!, update: TranslationUpdateInput!): Translation! + deleteTranslation(where: TranslationWhereUniqueInput!): Translation + deleteManyTranslations(where: TranslationWhereInput): BatchPayload! createUser(data: UserCreateInput!): User! updateUser(data: UserUpdateInput!, where: UserWhereUniqueInput!): User updateManyUsers(data: UserUpdateManyMutationInput!, where: UserWhereInput): BatchPayload! @@ -2987,9 +2987,9 @@ type Query { group(where: GroupWhereUniqueInput!): Group groups(where: GroupWhereInput, orderBy: GroupOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): [Group]! groupsConnection(where: GroupWhereInput, orderBy: GroupOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): GroupConnection! - internationalization(where: InternationalizationWhereUniqueInput!): Internationalization - internationalizations(where: InternationalizationWhereInput, orderBy: InternationalizationOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): [Internationalization]! - internationalizationsConnection(where: InternationalizationWhereInput, orderBy: InternationalizationOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): InternationalizationConnection! + localization(where: LocalizationWhereUniqueInput!): Localization + localizations(where: LocalizationWhereInput, orderBy: LocalizationOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): [Localization]! + localizationsConnection(where: LocalizationWhereInput, orderBy: LocalizationOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): LocalizationConnection! memberType(where: MemberTypeWhereUniqueInput!): MemberType memberTypes(where: MemberTypeWhereInput, orderBy: MemberTypeOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): [MemberType]! memberTypesConnection(where: MemberTypeWhereInput, orderBy: MemberTypeOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): MemberTypeConnection! @@ -2999,9 +2999,9 @@ type Query { province(where: ProvinceWhereUniqueInput!): Province provinces(where: ProvinceWhereInput, orderBy: ProvinceOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): [Province]! provincesConnection(where: ProvinceWhereInput, orderBy: ProvinceOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): ProvinceConnection! - translationText(where: TranslationTextWhereUniqueInput!): TranslationText - translationTexts(where: TranslationTextWhereInput, orderBy: TranslationTextOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): [TranslationText]! - translationTextsConnection(where: TranslationTextWhereInput, orderBy: TranslationTextOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): TranslationTextConnection! + translation(where: TranslationWhereUniqueInput!): Translation + translations(where: TranslationWhereInput, orderBy: TranslationOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): [Translation]! + translationsConnection(where: TranslationWhereInput, orderBy: TranslationOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): TranslationConnection! user(where: UserWhereUniqueInput!): User users(where: UserWhereInput, orderBy: UserOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): [User]! usersConnection(where: UserWhereInput, orderBy: UserOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): UserConnection! @@ -3016,51 +3016,51 @@ type Subscription { commune(where: CommuneSubscriptionWhereInput): CommuneSubscriptionPayload district(where: DistrictSubscriptionWhereInput): DistrictSubscriptionPayload group(where: GroupSubscriptionWhereInput): GroupSubscriptionPayload - internationalization(where: InternationalizationSubscriptionWhereInput): InternationalizationSubscriptionPayload + localization(where: LocalizationSubscriptionWhereInput): LocalizationSubscriptionPayload memberType(where: MemberTypeSubscriptionWhereInput): MemberTypeSubscriptionPayload profile(where: ProfileSubscriptionWhereInput): ProfileSubscriptionPayload province(where: ProvinceSubscriptionWhereInput): ProvinceSubscriptionPayload - translationText(where: TranslationTextSubscriptionWhereInput): TranslationTextSubscriptionPayload + translation(where: TranslationSubscriptionWhereInput): TranslationSubscriptionPayload user(where: UserSubscriptionWhereInput): UserSubscriptionPayload } -type TranslationText { +type Translation { id: ID! lang: LanguageCode! text: String! - localization: Internationalization! + localization: Localization! } -type TranslationTextConnection { +type TranslationConnection { pageInfo: PageInfo! - edges: [TranslationTextEdge]! - aggregate: AggregateTranslationText! + edges: [TranslationEdge]! + aggregate: AggregateTranslation! } -input TranslationTextCreateInput { +input TranslationCreateInput { id: ID lang: LanguageCode! text: String! - localization: InternationalizationCreateOneWithoutTranslationTextsInput! + localization: LocalizationCreateOneWithoutTranslationsInput! } -input TranslationTextCreateManyWithoutLocalizationInput { - create: [TranslationTextCreateWithoutLocalizationInput!] - connect: [TranslationTextWhereUniqueInput!] +input TranslationCreateManyWithoutLocalizationInput { + create: [TranslationCreateWithoutLocalizationInput!] + connect: [TranslationWhereUniqueInput!] } -input TranslationTextCreateWithoutLocalizationInput { +input TranslationCreateWithoutLocalizationInput { id: ID lang: LanguageCode! text: String! } -type TranslationTextEdge { - node: TranslationText! +type TranslationEdge { + node: Translation! cursor: String! } -enum TranslationTextOrderByInput { +enum TranslationOrderByInput { id_ASC id_DESC lang_ASC @@ -3069,13 +3069,13 @@ enum TranslationTextOrderByInput { text_DESC } -type TranslationTextPreviousValues { +type TranslationPreviousValues { id: ID! lang: LanguageCode! text: String! } -input TranslationTextScalarWhereInput { +input TranslationScalarWhereInput { id: ID id_not: ID id_in: [ID!] @@ -3108,79 +3108,79 @@ input TranslationTextScalarWhereInput { text_not_starts_with: String text_ends_with: String text_not_ends_with: String - AND: [TranslationTextScalarWhereInput!] - OR: [TranslationTextScalarWhereInput!] - NOT: [TranslationTextScalarWhereInput!] + AND: [TranslationScalarWhereInput!] + OR: [TranslationScalarWhereInput!] + NOT: [TranslationScalarWhereInput!] } -type TranslationTextSubscriptionPayload { +type TranslationSubscriptionPayload { mutation: MutationType! - node: TranslationText + node: Translation updatedFields: [String!] - previousValues: TranslationTextPreviousValues + previousValues: TranslationPreviousValues } -input TranslationTextSubscriptionWhereInput { +input TranslationSubscriptionWhereInput { mutation_in: [MutationType!] updatedFields_contains: String updatedFields_contains_every: [String!] updatedFields_contains_some: [String!] - node: TranslationTextWhereInput - AND: [TranslationTextSubscriptionWhereInput!] - OR: [TranslationTextSubscriptionWhereInput!] - NOT: [TranslationTextSubscriptionWhereInput!] + node: TranslationWhereInput + AND: [TranslationSubscriptionWhereInput!] + OR: [TranslationSubscriptionWhereInput!] + NOT: [TranslationSubscriptionWhereInput!] } -input TranslationTextUpdateInput { +input TranslationUpdateInput { lang: LanguageCode text: String - localization: InternationalizationUpdateOneRequiredWithoutTranslationTextsInput + localization: LocalizationUpdateOneRequiredWithoutTranslationsInput } -input TranslationTextUpdateManyDataInput { +input TranslationUpdateManyDataInput { lang: LanguageCode text: String } -input TranslationTextUpdateManyMutationInput { +input TranslationUpdateManyMutationInput { lang: LanguageCode text: String } -input TranslationTextUpdateManyWithoutLocalizationInput { - create: [TranslationTextCreateWithoutLocalizationInput!] - delete: [TranslationTextWhereUniqueInput!] - connect: [TranslationTextWhereUniqueInput!] - set: [TranslationTextWhereUniqueInput!] - disconnect: [TranslationTextWhereUniqueInput!] - update: [TranslationTextUpdateWithWhereUniqueWithoutLocalizationInput!] - upsert: [TranslationTextUpsertWithWhereUniqueWithoutLocalizationInput!] - deleteMany: [TranslationTextScalarWhereInput!] - updateMany: [TranslationTextUpdateManyWithWhereNestedInput!] +input TranslationUpdateManyWithoutLocalizationInput { + create: [TranslationCreateWithoutLocalizationInput!] + delete: [TranslationWhereUniqueInput!] + connect: [TranslationWhereUniqueInput!] + set: [TranslationWhereUniqueInput!] + disconnect: [TranslationWhereUniqueInput!] + update: [TranslationUpdateWithWhereUniqueWithoutLocalizationInput!] + upsert: [TranslationUpsertWithWhereUniqueWithoutLocalizationInput!] + deleteMany: [TranslationScalarWhereInput!] + updateMany: [TranslationUpdateManyWithWhereNestedInput!] } -input TranslationTextUpdateManyWithWhereNestedInput { - where: TranslationTextScalarWhereInput! - data: TranslationTextUpdateManyDataInput! +input TranslationUpdateManyWithWhereNestedInput { + where: TranslationScalarWhereInput! + data: TranslationUpdateManyDataInput! } -input TranslationTextUpdateWithoutLocalizationDataInput { +input TranslationUpdateWithoutLocalizationDataInput { lang: LanguageCode text: String } -input TranslationTextUpdateWithWhereUniqueWithoutLocalizationInput { - where: TranslationTextWhereUniqueInput! - data: TranslationTextUpdateWithoutLocalizationDataInput! +input TranslationUpdateWithWhereUniqueWithoutLocalizationInput { + where: TranslationWhereUniqueInput! + data: TranslationUpdateWithoutLocalizationDataInput! } -input TranslationTextUpsertWithWhereUniqueWithoutLocalizationInput { - where: TranslationTextWhereUniqueInput! - update: TranslationTextUpdateWithoutLocalizationDataInput! - create: TranslationTextCreateWithoutLocalizationInput! +input TranslationUpsertWithWhereUniqueWithoutLocalizationInput { + where: TranslationWhereUniqueInput! + update: TranslationUpdateWithoutLocalizationDataInput! + create: TranslationCreateWithoutLocalizationInput! } -input TranslationTextWhereInput { +input TranslationWhereInput { id: ID id_not: ID id_in: [ID!] @@ -3213,13 +3213,13 @@ input TranslationTextWhereInput { text_not_starts_with: String text_ends_with: String text_not_ends_with: String - localization: InternationalizationWhereInput - AND: [TranslationTextWhereInput!] - OR: [TranslationTextWhereInput!] - NOT: [TranslationTextWhereInput!] + localization: LocalizationWhereInput + AND: [TranslationWhereInput!] + OR: [TranslationWhereInput!] + NOT: [TranslationWhereInput!] } -input TranslationTextWhereUniqueInput { +input TranslationWhereUniqueInput { id: ID }