@contember/graphql-client-system 2.1.0-beta.2 → 2.2.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/dist/development/index.cjs +3 -0
  2. package/dist/development/index.cjs.map +1 -1
  3. package/dist/development/index.js +3 -0
  4. package/dist/development/index.js.map +1 -1
  5. package/dist/development/src/generated/CommonTypes.cjs +5 -0
  6. package/dist/development/src/generated/CommonTypes.cjs.map +1 -1
  7. package/dist/development/src/generated/CommonTypes.js +5 -0
  8. package/dist/development/src/generated/CommonTypes.js.map +1 -1
  9. package/dist/development/src/generated/EnumInputMetadata.cjs +7 -4
  10. package/dist/development/src/generated/EnumInputMetadata.cjs.map +1 -1
  11. package/dist/development/src/generated/EnumInputMetadata.js +7 -4
  12. package/dist/development/src/generated/EnumInputMetadata.js.map +1 -1
  13. package/dist/development/src/generated/fetchers/EventFetcher.cjs +10 -2
  14. package/dist/development/src/generated/fetchers/EventFetcher.cjs.map +1 -1
  15. package/dist/development/src/generated/fetchers/EventFetcher.js +10 -2
  16. package/dist/development/src/generated/fetchers/EventFetcher.js.map +1 -1
  17. package/dist/development/src/generated/fetchers/MutationFetcher.cjs +13 -1
  18. package/dist/development/src/generated/fetchers/MutationFetcher.cjs.map +1 -1
  19. package/dist/development/src/generated/fetchers/MutationFetcher.js +13 -1
  20. package/dist/development/src/generated/fetchers/MutationFetcher.js.map +1 -1
  21. package/dist/development/src/generated/fetchers/TruncateEventFetcher.cjs +19 -0
  22. package/dist/development/src/generated/fetchers/TruncateEventFetcher.cjs.map +1 -0
  23. package/dist/development/src/generated/fetchers/TruncateEventFetcher.js +19 -0
  24. package/dist/development/src/generated/fetchers/TruncateEventFetcher.js.map +1 -0
  25. package/dist/production/index.cjs +3 -0
  26. package/dist/production/index.cjs.map +1 -1
  27. package/dist/production/index.js +3 -0
  28. package/dist/production/index.js.map +1 -1
  29. package/dist/production/src/generated/CommonTypes.cjs +5 -0
  30. package/dist/production/src/generated/CommonTypes.cjs.map +1 -1
  31. package/dist/production/src/generated/CommonTypes.js +5 -0
  32. package/dist/production/src/generated/CommonTypes.js.map +1 -1
  33. package/dist/production/src/generated/EnumInputMetadata.cjs +7 -4
  34. package/dist/production/src/generated/EnumInputMetadata.cjs.map +1 -1
  35. package/dist/production/src/generated/EnumInputMetadata.js +7 -4
  36. package/dist/production/src/generated/EnumInputMetadata.js.map +1 -1
  37. package/dist/production/src/generated/fetchers/EventFetcher.cjs +10 -2
  38. package/dist/production/src/generated/fetchers/EventFetcher.cjs.map +1 -1
  39. package/dist/production/src/generated/fetchers/EventFetcher.js +10 -2
  40. package/dist/production/src/generated/fetchers/EventFetcher.js.map +1 -1
  41. package/dist/production/src/generated/fetchers/MutationFetcher.cjs +13 -1
  42. package/dist/production/src/generated/fetchers/MutationFetcher.cjs.map +1 -1
  43. package/dist/production/src/generated/fetchers/MutationFetcher.js +13 -1
  44. package/dist/production/src/generated/fetchers/MutationFetcher.js.map +1 -1
  45. package/dist/production/src/generated/fetchers/TruncateEventFetcher.cjs +19 -0
  46. package/dist/production/src/generated/fetchers/TruncateEventFetcher.cjs.map +1 -0
  47. package/dist/production/src/generated/fetchers/TruncateEventFetcher.js +19 -0
  48. package/dist/production/src/generated/fetchers/TruncateEventFetcher.js.map +1 -0
  49. package/dist/types/generated/CommonTypes.d.ts +1 -1
  50. package/dist/types/generated/CommonTypes.d.ts.map +1 -1
  51. package/dist/types/generated/EnumInputMetadata.d.ts.map +1 -1
  52. package/dist/types/generated/enums/EventType.d.ts +1 -1
  53. package/dist/types/generated/enums/EventType.d.ts.map +1 -1
  54. package/dist/types/generated/enums/MigrateErrorCode.d.ts +1 -1
  55. package/dist/types/generated/enums/MigrateErrorCode.d.ts.map +1 -1
  56. package/dist/types/generated/fetchers/EventFetcher.d.ts +10 -22
  57. package/dist/types/generated/fetchers/EventFetcher.d.ts.map +1 -1
  58. package/dist/types/generated/fetchers/MutationFetcher.d.ts +35 -0
  59. package/dist/types/generated/fetchers/MutationFetcher.d.ts.map +1 -1
  60. package/dist/types/generated/fetchers/TruncateEventFetcher.d.ts +174 -0
  61. package/dist/types/generated/fetchers/TruncateEventFetcher.d.ts.map +1 -0
  62. package/dist/types/generated/fetchers/index.d.ts +2 -0
  63. package/dist/types/generated/fetchers/index.d.ts.map +1 -1
  64. package/dist/types/generated/inputs/SchemaStateInput.d.ts +7 -0
  65. package/dist/types/generated/inputs/SchemaStateInput.d.ts.map +1 -0
  66. package/dist/types/generated/inputs/SnapshotInput.d.ts +7 -0
  67. package/dist/types/generated/inputs/SnapshotInput.d.ts.map +1 -0
  68. package/dist/types/generated/inputs/index.d.ts +2 -0
  69. package/dist/types/generated/inputs/index.d.ts.map +1 -1
  70. package/dist/types/index.d.ts +7 -7
  71. package/dist/types/index.d.ts.map +1 -1
  72. package/dist/types/tsconfig.tsbuildinfo +1 -1
  73. package/package.json +3 -3
  74. package/scripts/generateClient.ts +1 -0
  75. package/src/index.ts +7 -7
@@ -6,6 +6,7 @@ const EventFetcher = require("./src/generated/fetchers/EventFetcher.cjs");
6
6
  const UpdateEventFetcher = require("./src/generated/fetchers/UpdateEventFetcher.cjs");
7
7
  const DeleteEventFetcher = require("./src/generated/fetchers/DeleteEventFetcher.cjs");
8
8
  const CreateEventFetcher = require("./src/generated/fetchers/CreateEventFetcher.cjs");
9
+ const TruncateEventFetcher = require("./src/generated/fetchers/TruncateEventFetcher.cjs");
9
10
  const ExecutedMigrationFetcher = require("./src/generated/fetchers/ExecutedMigrationFetcher.cjs");
10
11
  const MigrateErrorFetcher = require("./src/generated/fetchers/MigrateErrorFetcher.cjs");
11
12
  const MigrateResponseFetcher = require("./src/generated/fetchers/MigrateResponseFetcher.cjs");
@@ -23,6 +24,8 @@ exports.deleteEvent$ = DeleteEventFetcher.deleteEvent$;
23
24
  exports.deleteEvent$$ = DeleteEventFetcher.deleteEvent$$;
24
25
  exports.createEvent$ = CreateEventFetcher.createEvent$;
25
26
  exports.createEvent$$ = CreateEventFetcher.createEvent$$;
27
+ exports.truncateEvent$ = TruncateEventFetcher.truncateEvent$;
28
+ exports.truncateEvent$$ = TruncateEventFetcher.truncateEvent$$;
26
29
  exports.executedMigration$ = ExecutedMigrationFetcher.executedMigration$;
27
30
  exports.executedMigration$$ = ExecutedMigrationFetcher.executedMigration$$;
28
31
  exports.migrateError$ = MigrateErrorFetcher.migrateError$;
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -4,6 +4,7 @@ import { event$, event$$ } from "./src/generated/fetchers/EventFetcher.js";
4
4
  import { updateEvent$, updateEvent$$ } from "./src/generated/fetchers/UpdateEventFetcher.js";
5
5
  import { deleteEvent$, deleteEvent$$ } from "./src/generated/fetchers/DeleteEventFetcher.js";
6
6
  import { createEvent$, createEvent$$ } from "./src/generated/fetchers/CreateEventFetcher.js";
7
+ import { truncateEvent$, truncateEvent$$ } from "./src/generated/fetchers/TruncateEventFetcher.js";
7
8
  import { executedMigration$, executedMigration$$ } from "./src/generated/fetchers/ExecutedMigrationFetcher.js";
8
9
  import { migrateError$, migrateError$$ } from "./src/generated/fetchers/MigrateErrorFetcher.js";
9
10
  import { migrateResponse$, migrateResponse$$ } from "./src/generated/fetchers/MigrateResponseFetcher.js";
@@ -33,6 +34,8 @@ export {
33
34
  setGraphQLExecutor,
34
35
  stage$,
35
36
  stage$$,
37
+ truncateEvent$,
38
+ truncateEvent$$,
36
39
  upcastTypes,
37
40
  updateEvent$,
38
41
  updateEvent$$
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
@@ -19,6 +19,10 @@ function upcastTypes0(typeName, output) {
19
19
  output.push("CreateEvent");
20
20
  upcastTypes0("Event", output);
21
21
  break;
22
+ case "TruncateEvent":
23
+ output.push("TruncateEvent");
24
+ upcastTypes0("Event", output);
25
+ break;
22
26
  default:
23
27
  output.push(typeName);
24
28
  break;
@@ -36,6 +40,7 @@ function downcastTypes0(typeName, output) {
36
40
  downcastTypes0("UpdateEvent", output);
37
41
  downcastTypes0("DeleteEvent", output);
38
42
  downcastTypes0("CreateEvent", output);
43
+ downcastTypes0("TruncateEvent", output);
39
44
  break;
40
45
  default:
41
46
  output.push(typeName);
@@ -1 +1 @@
1
- {"version":3,"file":"CommonTypes.cjs","sources":["../../../../../packages/graphql-client-system/src/generated/CommonTypes.ts"],"sourcesContent":["\n/**\n * \n * This 'ImplementationType' is used for inheritance, let's see an example, if graphql schema is:\n * \n * interface A {}\n * interface B implements A {}\n * type C implements B & A {}\n * \n * Typescript code will be generated by like this:\n * \n * export ImplementationType<T extends string> =\n * T extends 'A' ? 'A' | ImplementationType<'B'> :\n * T extends 'B' ? 'B' | ImplementationType<'C'> :\n * T\n * ;\n * \n * Let's see another example with abstract type, if the graphql schema is:\n * \n * union AbstractType = Impl1 | Imple2;\n * type Impl1 {}\n * type Impl2 {}\n * \n * Typescript code will be generated by like this:\n * \n * export ImplementationType<T extends string> =\n * T extends 'AbstractType' ? ImplemenationType<'Impl1'> | ImplementationType<'Impl2'> :\n * T\n * ;\n */\nexport type ImplementationType<T> = \n T extends 'Event' ? 'Event' | ImplementationType<'UpdateEvent'> | ImplementationType<'DeleteEvent'> | ImplementationType<'CreateEvent'> :\n T\n;\n/**\n * \n * This 'upcastTypes' is used for inheritance, let's see an example, if graphql schema is:\n * \n * interface A {}\n * interface B implements A {}\n * type C implements B & A {}\n * \n * Typescript code will be generated by like this:\n * \n * export function upcastTypes(typeName: string): string[] {\n * const typeNames: string[] = [];\n * upcastTypes0(typeName, typeNames);\n * return typeNames;\n * }\n * \n * function upcastTypes0(typeName: string, output: string[]) {\n * switch (typeName){\n * case 'B':\n * output.push('B');\n * upcastTypes0('A', output);\n * break;\n * case 'C':\n * output.push('C');\n * upcastTypes0('B', output);\n * break;\n * default:\n * output.push(typeName);\n * break;\n * }\n * } \n * \n * Let's see another example with abstract type, if the graphql schema is:\n * \n * union AbstractType = Impl1 | Imple2;\n * type Impl1 {}\n * type Impl2 {}\n * \n * Typescript code will be generated by like this:\n * \n * export function upcastTypes(typeName: string): string[] {\n * const typeNames: string[] = [];\n * upcastTypes0(typeName, typeNames);\n * return typeNames;\n * }\n * \n * function upcastTypes0(typeName: string, output: string[]) {\n * switch (typeName){\n * case 'Impl1':\n * output.push('Impl1');\n * upcastTypes0('AbstractType', output);\n * break;\n * case 'Impl2':\n * output.push('Impl2');\n * upcastTypes0('AbstractType', output);\n * break;\n * default:\n * output.push(typeName);\n * break;\n * }\n * } \n */\n\nexport function upcastTypes(typeName: string): string[] {\n const typeNames: string[] = [];\n upcastTypes0(typeName, typeNames);\n return typeNames;\n}\n\nfunction upcastTypes0(typeName: string, output: string[]) {\n switch (typeName){\n case 'UpdateEvent':\n output.push('UpdateEvent');\n upcastTypes0('Event', output);\n break;\n case 'DeleteEvent':\n output.push('DeleteEvent');\n upcastTypes0('Event', output);\n break;\n case 'CreateEvent':\n output.push('CreateEvent');\n upcastTypes0('Event', output);\n break;\n default:\n output.push(typeName);\n break;\n }\n}\n\n/**\n * \n * This 'downcastTypes' is used for inheritance, let's see an example, if graphql schema is:\n * \n * interface A {}\n * interface B implements A {}\n * type C implements B & A {}\n * \n * Typescript code will be generated by like this:\n * \n * export function downcastTypes(typeName: string): string[] {\n * const typeNames: string[] = [];\n * downcastTypes0(typeName, typeNames);\n * return typeNames;\n * }\n * \n * function downcastTypes0(typeName: string, output: string[]) {\n * switch (typeName){\n * case 'A':\n * output.push('A');\n * downcastTypes0('B', output);\n * break;\n * case 'B':\n * output.push('B');\n * downcastTypes0('C', output);\n * break;\n * default:\n * output.push(typeName);\n * break;\n * }\n * }\n * \n * Let's see another example with abstract type, if the graphql schema is:\n * \n * union AbstractType = Impl1 | Imple2;\n * type Impl1 {}\n * type Impl2 {}\n * \n * Typescript code will be generated by like this:\n * \n * export function downcastTypes(typeName: string): string[] {\n * const typeNames: string[] = [];\n * downcastTypes0(typeName, typeNames);\n * return typeNames;\n * }\n * \n * function downcastTypes0(typeName: string, output: string[]) {\n * switch (typeName){\n * case 'AbstractType':\n * downcastTypes0('Impl1', output);\n * downcastTypes0('Impl2', output);\n * break;\n * default:\n * output.push(typeName);\n * break;\n * }\n * } \n */\n\nexport function downcastTypes(typeName: string): string[] {\n const typeNames: string[] = [];\n downcastTypes0(typeName, typeNames);\n return typeNames;\n}\n\nfunction downcastTypes0(typeName: string, output: string[]) {\n switch (typeName){\n case 'Event':\n output.push('Event');\n downcastTypes0('UpdateEvent', output);\n downcastTypes0('DeleteEvent', output);\n downcastTypes0('CreateEvent', output);\n break;\n default:\n output.push(typeName);\n break;\n }\n}\n\nexport type WithTypeName<T, TypeName extends string> =\n T extends {readonly __typename: string} ?\n T :\n T & {readonly __typename: TypeName};\n;\n\n"],"names":[],"mappings":";;AAiGO,SAAS,YAAY,UAA4B;AACpD,QAAM,YAAsB,CAAA;AAC5B,eAAa,UAAU,SAAS;AAChC,SAAO;AACX;AAEA,SAAS,aAAa,UAAkB,QAAkB;AACtD,UAAQ,UAAA;AAAA,IACJ,KAAK;AACD,aAAO,KAAK,aAAa;AACzB,mBAAa,SAAS,MAAM;AAC5B;AAAA,IACJ,KAAK;AACD,aAAO,KAAK,aAAa;AACzB,mBAAa,SAAS,MAAM;AAC5B;AAAA,IACJ,KAAK;AACD,aAAO,KAAK,aAAa;AACzB,mBAAa,SAAS,MAAM;AAC5B;AAAA,IACJ;AACI,aAAO,KAAK,QAAQ;AACpB;AAAA,EAAA;AAEZ;AA6DO,SAAS,cAAc,UAA4B;AACtD,QAAM,YAAsB,CAAA;AAC5B,iBAAe,UAAU,SAAS;AAClC,SAAO;AACX;AAEA,SAAS,eAAe,UAAkB,QAAkB;AACxD,UAAQ,UAAA;AAAA,IACJ,KAAK;AACD,aAAO,KAAK,OAAO;AACnB,qBAAe,eAAe,MAAM;AACpC,qBAAe,eAAe,MAAM;AACpC,qBAAe,eAAe,MAAM;AACpC;AAAA,IACJ;AACI,aAAO,KAAK,QAAQ;AACpB;AAAA,EAAA;AAEZ;;;"}
1
+ {"version":3,"file":"CommonTypes.cjs","sources":["../../../../../packages/graphql-client-system/src/generated/CommonTypes.ts"],"sourcesContent":["\n/**\n * \n * This 'ImplementationType' is used for inheritance, let's see an example, if graphql schema is:\n * \n * interface A {}\n * interface B implements A {}\n * type C implements B & A {}\n * \n * Typescript code will be generated by like this:\n * \n * export ImplementationType<T extends string> =\n * T extends 'A' ? 'A' | ImplementationType<'B'> :\n * T extends 'B' ? 'B' | ImplementationType<'C'> :\n * T\n * ;\n * \n * Let's see another example with abstract type, if the graphql schema is:\n * \n * union AbstractType = Impl1 | Imple2;\n * type Impl1 {}\n * type Impl2 {}\n * \n * Typescript code will be generated by like this:\n * \n * export ImplementationType<T extends string> =\n * T extends 'AbstractType' ? ImplemenationType<'Impl1'> | ImplementationType<'Impl2'> :\n * T\n * ;\n */\nexport type ImplementationType<T> = \n T extends 'Event' ? 'Event' | ImplementationType<'UpdateEvent'> | ImplementationType<'DeleteEvent'> | ImplementationType<'CreateEvent'> | ImplementationType<'TruncateEvent'> :\n T\n;\n/**\n * \n * This 'upcastTypes' is used for inheritance, let's see an example, if graphql schema is:\n * \n * interface A {}\n * interface B implements A {}\n * type C implements B & A {}\n * \n * Typescript code will be generated by like this:\n * \n * export function upcastTypes(typeName: string): string[] {\n * const typeNames: string[] = [];\n * upcastTypes0(typeName, typeNames);\n * return typeNames;\n * }\n * \n * function upcastTypes0(typeName: string, output: string[]) {\n * switch (typeName){\n * case 'B':\n * output.push('B');\n * upcastTypes0('A', output);\n * break;\n * case 'C':\n * output.push('C');\n * upcastTypes0('B', output);\n * break;\n * default:\n * output.push(typeName);\n * break;\n * }\n * } \n * \n * Let's see another example with abstract type, if the graphql schema is:\n * \n * union AbstractType = Impl1 | Imple2;\n * type Impl1 {}\n * type Impl2 {}\n * \n * Typescript code will be generated by like this:\n * \n * export function upcastTypes(typeName: string): string[] {\n * const typeNames: string[] = [];\n * upcastTypes0(typeName, typeNames);\n * return typeNames;\n * }\n * \n * function upcastTypes0(typeName: string, output: string[]) {\n * switch (typeName){\n * case 'Impl1':\n * output.push('Impl1');\n * upcastTypes0('AbstractType', output);\n * break;\n * case 'Impl2':\n * output.push('Impl2');\n * upcastTypes0('AbstractType', output);\n * break;\n * default:\n * output.push(typeName);\n * break;\n * }\n * } \n */\n\nexport function upcastTypes(typeName: string): string[] {\n const typeNames: string[] = [];\n upcastTypes0(typeName, typeNames);\n return typeNames;\n}\n\nfunction upcastTypes0(typeName: string, output: string[]) {\n switch (typeName){\n case 'UpdateEvent':\n output.push('UpdateEvent');\n upcastTypes0('Event', output);\n break;\n case 'DeleteEvent':\n output.push('DeleteEvent');\n upcastTypes0('Event', output);\n break;\n case 'CreateEvent':\n output.push('CreateEvent');\n upcastTypes0('Event', output);\n break;\n case 'TruncateEvent':\n output.push('TruncateEvent');\n upcastTypes0('Event', output);\n break;\n default:\n output.push(typeName);\n break;\n }\n}\n\n/**\n * \n * This 'downcastTypes' is used for inheritance, let's see an example, if graphql schema is:\n * \n * interface A {}\n * interface B implements A {}\n * type C implements B & A {}\n * \n * Typescript code will be generated by like this:\n * \n * export function downcastTypes(typeName: string): string[] {\n * const typeNames: string[] = [];\n * downcastTypes0(typeName, typeNames);\n * return typeNames;\n * }\n * \n * function downcastTypes0(typeName: string, output: string[]) {\n * switch (typeName){\n * case 'A':\n * output.push('A');\n * downcastTypes0('B', output);\n * break;\n * case 'B':\n * output.push('B');\n * downcastTypes0('C', output);\n * break;\n * default:\n * output.push(typeName);\n * break;\n * }\n * }\n * \n * Let's see another example with abstract type, if the graphql schema is:\n * \n * union AbstractType = Impl1 | Imple2;\n * type Impl1 {}\n * type Impl2 {}\n * \n * Typescript code will be generated by like this:\n * \n * export function downcastTypes(typeName: string): string[] {\n * const typeNames: string[] = [];\n * downcastTypes0(typeName, typeNames);\n * return typeNames;\n * }\n * \n * function downcastTypes0(typeName: string, output: string[]) {\n * switch (typeName){\n * case 'AbstractType':\n * downcastTypes0('Impl1', output);\n * downcastTypes0('Impl2', output);\n * break;\n * default:\n * output.push(typeName);\n * break;\n * }\n * } \n */\n\nexport function downcastTypes(typeName: string): string[] {\n const typeNames: string[] = [];\n downcastTypes0(typeName, typeNames);\n return typeNames;\n}\n\nfunction downcastTypes0(typeName: string, output: string[]) {\n switch (typeName){\n case 'Event':\n output.push('Event');\n downcastTypes0('UpdateEvent', output);\n downcastTypes0('DeleteEvent', output);\n downcastTypes0('CreateEvent', output);\n downcastTypes0('TruncateEvent', output);\n break;\n default:\n output.push(typeName);\n break;\n }\n}\n\nexport type WithTypeName<T, TypeName extends string> =\n T extends {readonly __typename: string} ?\n T :\n T & {readonly __typename: TypeName};\n;\n\n"],"names":[],"mappings":";;AAiGO,SAAS,YAAY,UAA4B;AACpD,QAAM,YAAsB,CAAA;AAC5B,eAAa,UAAU,SAAS;AAChC,SAAO;AACX;AAEA,SAAS,aAAa,UAAkB,QAAkB;AACtD,UAAQ,UAAA;AAAA,IACJ,KAAK;AACD,aAAO,KAAK,aAAa;AACzB,mBAAa,SAAS,MAAM;AAC5B;AAAA,IACJ,KAAK;AACD,aAAO,KAAK,aAAa;AACzB,mBAAa,SAAS,MAAM;AAC5B;AAAA,IACJ,KAAK;AACD,aAAO,KAAK,aAAa;AACzB,mBAAa,SAAS,MAAM;AAC5B;AAAA,IACJ,KAAK;AACD,aAAO,KAAK,eAAe;AAC3B,mBAAa,SAAS,MAAM;AAC5B;AAAA,IACJ;AACI,aAAO,KAAK,QAAQ;AACpB;AAAA,EAAA;AAEZ;AA6DO,SAAS,cAAc,UAA4B;AACtD,QAAM,YAAsB,CAAA;AAC5B,iBAAe,UAAU,SAAS;AAClC,SAAO;AACX;AAEA,SAAS,eAAe,UAAkB,QAAkB;AACxD,UAAQ,UAAA;AAAA,IACJ,KAAK;AACD,aAAO,KAAK,OAAO;AACnB,qBAAe,eAAe,MAAM;AACpC,qBAAe,eAAe,MAAM;AACpC,qBAAe,eAAe,MAAM;AACpC,qBAAe,iBAAiB,MAAM;AACtC;AAAA,IACJ;AACI,aAAO,KAAK,QAAQ;AACpB;AAAA,EAAA;AAEZ;;;"}
@@ -17,6 +17,10 @@ function upcastTypes0(typeName, output) {
17
17
  output.push("CreateEvent");
18
18
  upcastTypes0("Event", output);
19
19
  break;
20
+ case "TruncateEvent":
21
+ output.push("TruncateEvent");
22
+ upcastTypes0("Event", output);
23
+ break;
20
24
  default:
21
25
  output.push(typeName);
22
26
  break;
@@ -34,6 +38,7 @@ function downcastTypes0(typeName, output) {
34
38
  downcastTypes0("UpdateEvent", output);
35
39
  downcastTypes0("DeleteEvent", output);
36
40
  downcastTypes0("CreateEvent", output);
41
+ downcastTypes0("TruncateEvent", output);
37
42
  break;
38
43
  default:
39
44
  output.push(typeName);
@@ -1 +1 @@
1
- {"version":3,"file":"CommonTypes.js","sources":["../../../../../packages/graphql-client-system/src/generated/CommonTypes.ts"],"sourcesContent":["\n/**\n * \n * This 'ImplementationType' is used for inheritance, let's see an example, if graphql schema is:\n * \n * interface A {}\n * interface B implements A {}\n * type C implements B & A {}\n * \n * Typescript code will be generated by like this:\n * \n * export ImplementationType<T extends string> =\n * T extends 'A' ? 'A' | ImplementationType<'B'> :\n * T extends 'B' ? 'B' | ImplementationType<'C'> :\n * T\n * ;\n * \n * Let's see another example with abstract type, if the graphql schema is:\n * \n * union AbstractType = Impl1 | Imple2;\n * type Impl1 {}\n * type Impl2 {}\n * \n * Typescript code will be generated by like this:\n * \n * export ImplementationType<T extends string> =\n * T extends 'AbstractType' ? ImplemenationType<'Impl1'> | ImplementationType<'Impl2'> :\n * T\n * ;\n */\nexport type ImplementationType<T> = \n T extends 'Event' ? 'Event' | ImplementationType<'UpdateEvent'> | ImplementationType<'DeleteEvent'> | ImplementationType<'CreateEvent'> :\n T\n;\n/**\n * \n * This 'upcastTypes' is used for inheritance, let's see an example, if graphql schema is:\n * \n * interface A {}\n * interface B implements A {}\n * type C implements B & A {}\n * \n * Typescript code will be generated by like this:\n * \n * export function upcastTypes(typeName: string): string[] {\n * const typeNames: string[] = [];\n * upcastTypes0(typeName, typeNames);\n * return typeNames;\n * }\n * \n * function upcastTypes0(typeName: string, output: string[]) {\n * switch (typeName){\n * case 'B':\n * output.push('B');\n * upcastTypes0('A', output);\n * break;\n * case 'C':\n * output.push('C');\n * upcastTypes0('B', output);\n * break;\n * default:\n * output.push(typeName);\n * break;\n * }\n * } \n * \n * Let's see another example with abstract type, if the graphql schema is:\n * \n * union AbstractType = Impl1 | Imple2;\n * type Impl1 {}\n * type Impl2 {}\n * \n * Typescript code will be generated by like this:\n * \n * export function upcastTypes(typeName: string): string[] {\n * const typeNames: string[] = [];\n * upcastTypes0(typeName, typeNames);\n * return typeNames;\n * }\n * \n * function upcastTypes0(typeName: string, output: string[]) {\n * switch (typeName){\n * case 'Impl1':\n * output.push('Impl1');\n * upcastTypes0('AbstractType', output);\n * break;\n * case 'Impl2':\n * output.push('Impl2');\n * upcastTypes0('AbstractType', output);\n * break;\n * default:\n * output.push(typeName);\n * break;\n * }\n * } \n */\n\nexport function upcastTypes(typeName: string): string[] {\n const typeNames: string[] = [];\n upcastTypes0(typeName, typeNames);\n return typeNames;\n}\n\nfunction upcastTypes0(typeName: string, output: string[]) {\n switch (typeName){\n case 'UpdateEvent':\n output.push('UpdateEvent');\n upcastTypes0('Event', output);\n break;\n case 'DeleteEvent':\n output.push('DeleteEvent');\n upcastTypes0('Event', output);\n break;\n case 'CreateEvent':\n output.push('CreateEvent');\n upcastTypes0('Event', output);\n break;\n default:\n output.push(typeName);\n break;\n }\n}\n\n/**\n * \n * This 'downcastTypes' is used for inheritance, let's see an example, if graphql schema is:\n * \n * interface A {}\n * interface B implements A {}\n * type C implements B & A {}\n * \n * Typescript code will be generated by like this:\n * \n * export function downcastTypes(typeName: string): string[] {\n * const typeNames: string[] = [];\n * downcastTypes0(typeName, typeNames);\n * return typeNames;\n * }\n * \n * function downcastTypes0(typeName: string, output: string[]) {\n * switch (typeName){\n * case 'A':\n * output.push('A');\n * downcastTypes0('B', output);\n * break;\n * case 'B':\n * output.push('B');\n * downcastTypes0('C', output);\n * break;\n * default:\n * output.push(typeName);\n * break;\n * }\n * }\n * \n * Let's see another example with abstract type, if the graphql schema is:\n * \n * union AbstractType = Impl1 | Imple2;\n * type Impl1 {}\n * type Impl2 {}\n * \n * Typescript code will be generated by like this:\n * \n * export function downcastTypes(typeName: string): string[] {\n * const typeNames: string[] = [];\n * downcastTypes0(typeName, typeNames);\n * return typeNames;\n * }\n * \n * function downcastTypes0(typeName: string, output: string[]) {\n * switch (typeName){\n * case 'AbstractType':\n * downcastTypes0('Impl1', output);\n * downcastTypes0('Impl2', output);\n * break;\n * default:\n * output.push(typeName);\n * break;\n * }\n * } \n */\n\nexport function downcastTypes(typeName: string): string[] {\n const typeNames: string[] = [];\n downcastTypes0(typeName, typeNames);\n return typeNames;\n}\n\nfunction downcastTypes0(typeName: string, output: string[]) {\n switch (typeName){\n case 'Event':\n output.push('Event');\n downcastTypes0('UpdateEvent', output);\n downcastTypes0('DeleteEvent', output);\n downcastTypes0('CreateEvent', output);\n break;\n default:\n output.push(typeName);\n break;\n }\n}\n\nexport type WithTypeName<T, TypeName extends string> =\n T extends {readonly __typename: string} ?\n T :\n T & {readonly __typename: TypeName};\n;\n\n"],"names":[],"mappings":"AAiGO,SAAS,YAAY,UAA4B;AACpD,QAAM,YAAsB,CAAA;AAC5B,eAAa,UAAU,SAAS;AAChC,SAAO;AACX;AAEA,SAAS,aAAa,UAAkB,QAAkB;AACtD,UAAQ,UAAA;AAAA,IACJ,KAAK;AACD,aAAO,KAAK,aAAa;AACzB,mBAAa,SAAS,MAAM;AAC5B;AAAA,IACJ,KAAK;AACD,aAAO,KAAK,aAAa;AACzB,mBAAa,SAAS,MAAM;AAC5B;AAAA,IACJ,KAAK;AACD,aAAO,KAAK,aAAa;AACzB,mBAAa,SAAS,MAAM;AAC5B;AAAA,IACJ;AACI,aAAO,KAAK,QAAQ;AACpB;AAAA,EAAA;AAEZ;AA6DO,SAAS,cAAc,UAA4B;AACtD,QAAM,YAAsB,CAAA;AAC5B,iBAAe,UAAU,SAAS;AAClC,SAAO;AACX;AAEA,SAAS,eAAe,UAAkB,QAAkB;AACxD,UAAQ,UAAA;AAAA,IACJ,KAAK;AACD,aAAO,KAAK,OAAO;AACnB,qBAAe,eAAe,MAAM;AACpC,qBAAe,eAAe,MAAM;AACpC,qBAAe,eAAe,MAAM;AACpC;AAAA,IACJ;AACI,aAAO,KAAK,QAAQ;AACpB;AAAA,EAAA;AAEZ;"}
1
+ {"version":3,"file":"CommonTypes.js","sources":["../../../../../packages/graphql-client-system/src/generated/CommonTypes.ts"],"sourcesContent":["\n/**\n * \n * This 'ImplementationType' is used for inheritance, let's see an example, if graphql schema is:\n * \n * interface A {}\n * interface B implements A {}\n * type C implements B & A {}\n * \n * Typescript code will be generated by like this:\n * \n * export ImplementationType<T extends string> =\n * T extends 'A' ? 'A' | ImplementationType<'B'> :\n * T extends 'B' ? 'B' | ImplementationType<'C'> :\n * T\n * ;\n * \n * Let's see another example with abstract type, if the graphql schema is:\n * \n * union AbstractType = Impl1 | Imple2;\n * type Impl1 {}\n * type Impl2 {}\n * \n * Typescript code will be generated by like this:\n * \n * export ImplementationType<T extends string> =\n * T extends 'AbstractType' ? ImplemenationType<'Impl1'> | ImplementationType<'Impl2'> :\n * T\n * ;\n */\nexport type ImplementationType<T> = \n T extends 'Event' ? 'Event' | ImplementationType<'UpdateEvent'> | ImplementationType<'DeleteEvent'> | ImplementationType<'CreateEvent'> | ImplementationType<'TruncateEvent'> :\n T\n;\n/**\n * \n * This 'upcastTypes' is used for inheritance, let's see an example, if graphql schema is:\n * \n * interface A {}\n * interface B implements A {}\n * type C implements B & A {}\n * \n * Typescript code will be generated by like this:\n * \n * export function upcastTypes(typeName: string): string[] {\n * const typeNames: string[] = [];\n * upcastTypes0(typeName, typeNames);\n * return typeNames;\n * }\n * \n * function upcastTypes0(typeName: string, output: string[]) {\n * switch (typeName){\n * case 'B':\n * output.push('B');\n * upcastTypes0('A', output);\n * break;\n * case 'C':\n * output.push('C');\n * upcastTypes0('B', output);\n * break;\n * default:\n * output.push(typeName);\n * break;\n * }\n * } \n * \n * Let's see another example with abstract type, if the graphql schema is:\n * \n * union AbstractType = Impl1 | Imple2;\n * type Impl1 {}\n * type Impl2 {}\n * \n * Typescript code will be generated by like this:\n * \n * export function upcastTypes(typeName: string): string[] {\n * const typeNames: string[] = [];\n * upcastTypes0(typeName, typeNames);\n * return typeNames;\n * }\n * \n * function upcastTypes0(typeName: string, output: string[]) {\n * switch (typeName){\n * case 'Impl1':\n * output.push('Impl1');\n * upcastTypes0('AbstractType', output);\n * break;\n * case 'Impl2':\n * output.push('Impl2');\n * upcastTypes0('AbstractType', output);\n * break;\n * default:\n * output.push(typeName);\n * break;\n * }\n * } \n */\n\nexport function upcastTypes(typeName: string): string[] {\n const typeNames: string[] = [];\n upcastTypes0(typeName, typeNames);\n return typeNames;\n}\n\nfunction upcastTypes0(typeName: string, output: string[]) {\n switch (typeName){\n case 'UpdateEvent':\n output.push('UpdateEvent');\n upcastTypes0('Event', output);\n break;\n case 'DeleteEvent':\n output.push('DeleteEvent');\n upcastTypes0('Event', output);\n break;\n case 'CreateEvent':\n output.push('CreateEvent');\n upcastTypes0('Event', output);\n break;\n case 'TruncateEvent':\n output.push('TruncateEvent');\n upcastTypes0('Event', output);\n break;\n default:\n output.push(typeName);\n break;\n }\n}\n\n/**\n * \n * This 'downcastTypes' is used for inheritance, let's see an example, if graphql schema is:\n * \n * interface A {}\n * interface B implements A {}\n * type C implements B & A {}\n * \n * Typescript code will be generated by like this:\n * \n * export function downcastTypes(typeName: string): string[] {\n * const typeNames: string[] = [];\n * downcastTypes0(typeName, typeNames);\n * return typeNames;\n * }\n * \n * function downcastTypes0(typeName: string, output: string[]) {\n * switch (typeName){\n * case 'A':\n * output.push('A');\n * downcastTypes0('B', output);\n * break;\n * case 'B':\n * output.push('B');\n * downcastTypes0('C', output);\n * break;\n * default:\n * output.push(typeName);\n * break;\n * }\n * }\n * \n * Let's see another example with abstract type, if the graphql schema is:\n * \n * union AbstractType = Impl1 | Imple2;\n * type Impl1 {}\n * type Impl2 {}\n * \n * Typescript code will be generated by like this:\n * \n * export function downcastTypes(typeName: string): string[] {\n * const typeNames: string[] = [];\n * downcastTypes0(typeName, typeNames);\n * return typeNames;\n * }\n * \n * function downcastTypes0(typeName: string, output: string[]) {\n * switch (typeName){\n * case 'AbstractType':\n * downcastTypes0('Impl1', output);\n * downcastTypes0('Impl2', output);\n * break;\n * default:\n * output.push(typeName);\n * break;\n * }\n * } \n */\n\nexport function downcastTypes(typeName: string): string[] {\n const typeNames: string[] = [];\n downcastTypes0(typeName, typeNames);\n return typeNames;\n}\n\nfunction downcastTypes0(typeName: string, output: string[]) {\n switch (typeName){\n case 'Event':\n output.push('Event');\n downcastTypes0('UpdateEvent', output);\n downcastTypes0('DeleteEvent', output);\n downcastTypes0('CreateEvent', output);\n downcastTypes0('TruncateEvent', output);\n break;\n default:\n output.push(typeName);\n break;\n }\n}\n\nexport type WithTypeName<T, TypeName extends string> =\n T extends {readonly __typename: string} ?\n T :\n T & {readonly __typename: TypeName};\n;\n\n"],"names":[],"mappings":"AAiGO,SAAS,YAAY,UAA4B;AACpD,QAAM,YAAsB,CAAA;AAC5B,eAAa,UAAU,SAAS;AAChC,SAAO;AACX;AAEA,SAAS,aAAa,UAAkB,QAAkB;AACtD,UAAQ,UAAA;AAAA,IACJ,KAAK;AACD,aAAO,KAAK,aAAa;AACzB,mBAAa,SAAS,MAAM;AAC5B;AAAA,IACJ,KAAK;AACD,aAAO,KAAK,aAAa;AACzB,mBAAa,SAAS,MAAM;AAC5B;AAAA,IACJ,KAAK;AACD,aAAO,KAAK,aAAa;AACzB,mBAAa,SAAS,MAAM;AAC5B;AAAA,IACJ,KAAK;AACD,aAAO,KAAK,eAAe;AAC3B,mBAAa,SAAS,MAAM;AAC5B;AAAA,IACJ;AACI,aAAO,KAAK,QAAQ;AACpB;AAAA,EAAA;AAEZ;AA6DO,SAAS,cAAc,UAA4B;AACtD,QAAM,YAAsB,CAAA;AAC5B,iBAAe,UAAU,SAAS;AAClC,SAAO;AACX;AAEA,SAAS,eAAe,UAAkB,QAAkB;AACxD,UAAQ,UAAA;AAAA,IACJ,KAAK;AACD,aAAO,KAAK,OAAO;AACnB,qBAAe,eAAe,MAAM;AACpC,qBAAe,eAAe,MAAM;AACpC,qBAAe,eAAe,MAAM;AACpC,qBAAe,iBAAiB,MAAM;AACtC;AAAA,IACJ;AACI,aAAO,KAAK,QAAQ;AACpB;AAAA,EAAA;AAEZ;"}
@@ -2,6 +2,13 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const graphqlTsClientApi = require("graphql-ts-client-api");
4
4
  const builder = new graphqlTsClientApi.EnumInputMetadataBuilder();
5
+ builder.add("MigrationType");
6
+ builder.add("Migration", [
7
+ { name: "type", typeName: "MigrationType" }
8
+ ]);
9
+ builder.add("SnapshotInput", [
10
+ { name: "covers", typeName: "Migration" }
11
+ ]);
5
12
  builder.add("EventType");
6
13
  builder.add("EventsFilter", [
7
14
  { name: "types", typeName: "EventType" }
@@ -11,10 +18,6 @@ builder.add("EventsArgs", [
11
18
  { name: "filter", typeName: "EventsFilter" },
12
19
  { name: "order", typeName: "EventsOrder" }
13
20
  ]);
14
- builder.add("MigrationType");
15
- builder.add("Migration", [
16
- { name: "type", typeName: "MigrationType" }
17
- ]);
18
21
  builder.add("MigrateErrorCode");
19
22
  const ENUM_INPUT_METADATA = builder.build();
20
23
  exports.ENUM_INPUT_METADATA = ENUM_INPUT_METADATA;
@@ -1 +1 @@
1
- {"version":3,"file":"EnumInputMetadata.cjs","sources":["../../../../../packages/graphql-client-system/src/generated/EnumInputMetadata.ts"],"sourcesContent":["import { EnumInputMetadataBuilder } from 'graphql-ts-client-api';\n\nconst builder = new EnumInputMetadataBuilder();\n\nbuilder.add(\"EventType\");\n\nbuilder.add(\"EventsFilter\", [\n {name: \"types\", typeName: \"EventType\"}\n]);\n\nbuilder.add(\"EventsOrder\");\n\nbuilder.add(\"EventsArgs\", [\n {name: \"filter\", typeName: \"EventsFilter\"}, \n {name: \"order\", typeName: \"EventsOrder\"}\n]);\n\nbuilder.add(\"MigrationType\");\n\nbuilder.add(\"Migration\", [\n {name: \"type\", typeName: \"MigrationType\"}\n]);\n\nbuilder.add(\"MigrateErrorCode\");\n\nexport const ENUM_INPUT_METADATA = builder.build();\n"],"names":["EnumInputMetadataBuilder"],"mappings":";;;AAEA,MAAM,UAAU,IAAIA,mBAAAA,yBAAA;AAEpB,QAAQ,IAAI,WAAW;AAEvB,QAAQ,IAAI,gBAAgB;AAAA,EACxB,EAAC,MAAM,SAAS,UAAU,YAAA;AAC9B,CAAC;AAED,QAAQ,IAAI,aAAa;AAEzB,QAAQ,IAAI,cAAc;AAAA,EACtB,EAAC,MAAM,UAAU,UAAU,eAAA;AAAA,EAC3B,EAAC,MAAM,SAAS,UAAU,cAAA;AAC9B,CAAC;AAED,QAAQ,IAAI,eAAe;AAE3B,QAAQ,IAAI,aAAa;AAAA,EACrB,EAAC,MAAM,QAAQ,UAAU,gBAAA;AAC7B,CAAC;AAED,QAAQ,IAAI,kBAAkB;AAEvB,MAAM,sBAAsB,QAAQ,MAAA;;"}
1
+ {"version":3,"file":"EnumInputMetadata.cjs","sources":["../../../../../packages/graphql-client-system/src/generated/EnumInputMetadata.ts"],"sourcesContent":["import { EnumInputMetadataBuilder } from 'graphql-ts-client-api';\n\nconst builder = new EnumInputMetadataBuilder();\n\nbuilder.add(\"MigrationType\");\n\nbuilder.add(\"Migration\", [\n {name: \"type\", typeName: \"MigrationType\"}\n]);\n\nbuilder.add(\"SnapshotInput\", [\n {name: \"covers\", typeName: \"Migration\"}\n]);\n\nbuilder.add(\"EventType\");\n\nbuilder.add(\"EventsFilter\", [\n {name: \"types\", typeName: \"EventType\"}\n]);\n\nbuilder.add(\"EventsOrder\");\n\nbuilder.add(\"EventsArgs\", [\n {name: \"filter\", typeName: \"EventsFilter\"}, \n {name: \"order\", typeName: \"EventsOrder\"}\n]);\n\nbuilder.add(\"MigrateErrorCode\");\n\nexport const ENUM_INPUT_METADATA = builder.build();\n"],"names":["EnumInputMetadataBuilder"],"mappings":";;;AAEA,MAAM,UAAU,IAAIA,mBAAAA,yBAAA;AAEpB,QAAQ,IAAI,eAAe;AAE3B,QAAQ,IAAI,aAAa;AAAA,EACrB,EAAC,MAAM,QAAQ,UAAU,gBAAA;AAC7B,CAAC;AAED,QAAQ,IAAI,iBAAiB;AAAA,EACzB,EAAC,MAAM,UAAU,UAAU,YAAA;AAC/B,CAAC;AAED,QAAQ,IAAI,WAAW;AAEvB,QAAQ,IAAI,gBAAgB;AAAA,EACxB,EAAC,MAAM,SAAS,UAAU,YAAA;AAC9B,CAAC;AAED,QAAQ,IAAI,aAAa;AAEzB,QAAQ,IAAI,cAAc;AAAA,EACtB,EAAC,MAAM,UAAU,UAAU,eAAA;AAAA,EAC3B,EAAC,MAAM,SAAS,UAAU,cAAA;AAC9B,CAAC;AAED,QAAQ,IAAI,kBAAkB;AAEvB,MAAM,sBAAsB,QAAQ,MAAA;;"}
@@ -1,5 +1,12 @@
1
1
  import { EnumInputMetadataBuilder } from "graphql-ts-client-api";
2
2
  const builder = new EnumInputMetadataBuilder();
3
+ builder.add("MigrationType");
4
+ builder.add("Migration", [
5
+ { name: "type", typeName: "MigrationType" }
6
+ ]);
7
+ builder.add("SnapshotInput", [
8
+ { name: "covers", typeName: "Migration" }
9
+ ]);
3
10
  builder.add("EventType");
4
11
  builder.add("EventsFilter", [
5
12
  { name: "types", typeName: "EventType" }
@@ -9,10 +16,6 @@ builder.add("EventsArgs", [
9
16
  { name: "filter", typeName: "EventsFilter" },
10
17
  { name: "order", typeName: "EventsOrder" }
11
18
  ]);
12
- builder.add("MigrationType");
13
- builder.add("Migration", [
14
- { name: "type", typeName: "MigrationType" }
15
- ]);
16
19
  builder.add("MigrateErrorCode");
17
20
  const ENUM_INPUT_METADATA = builder.build();
18
21
  export {
@@ -1 +1 @@
1
- {"version":3,"file":"EnumInputMetadata.js","sources":["../../../../../packages/graphql-client-system/src/generated/EnumInputMetadata.ts"],"sourcesContent":["import { EnumInputMetadataBuilder } from 'graphql-ts-client-api';\n\nconst builder = new EnumInputMetadataBuilder();\n\nbuilder.add(\"EventType\");\n\nbuilder.add(\"EventsFilter\", [\n {name: \"types\", typeName: \"EventType\"}\n]);\n\nbuilder.add(\"EventsOrder\");\n\nbuilder.add(\"EventsArgs\", [\n {name: \"filter\", typeName: \"EventsFilter\"}, \n {name: \"order\", typeName: \"EventsOrder\"}\n]);\n\nbuilder.add(\"MigrationType\");\n\nbuilder.add(\"Migration\", [\n {name: \"type\", typeName: \"MigrationType\"}\n]);\n\nbuilder.add(\"MigrateErrorCode\");\n\nexport const ENUM_INPUT_METADATA = builder.build();\n"],"names":[],"mappings":";AAEA,MAAM,UAAU,IAAI,yBAAA;AAEpB,QAAQ,IAAI,WAAW;AAEvB,QAAQ,IAAI,gBAAgB;AAAA,EACxB,EAAC,MAAM,SAAS,UAAU,YAAA;AAC9B,CAAC;AAED,QAAQ,IAAI,aAAa;AAEzB,QAAQ,IAAI,cAAc;AAAA,EACtB,EAAC,MAAM,UAAU,UAAU,eAAA;AAAA,EAC3B,EAAC,MAAM,SAAS,UAAU,cAAA;AAC9B,CAAC;AAED,QAAQ,IAAI,eAAe;AAE3B,QAAQ,IAAI,aAAa;AAAA,EACrB,EAAC,MAAM,QAAQ,UAAU,gBAAA;AAC7B,CAAC;AAED,QAAQ,IAAI,kBAAkB;AAEvB,MAAM,sBAAsB,QAAQ,MAAA;"}
1
+ {"version":3,"file":"EnumInputMetadata.js","sources":["../../../../../packages/graphql-client-system/src/generated/EnumInputMetadata.ts"],"sourcesContent":["import { EnumInputMetadataBuilder } from 'graphql-ts-client-api';\n\nconst builder = new EnumInputMetadataBuilder();\n\nbuilder.add(\"MigrationType\");\n\nbuilder.add(\"Migration\", [\n {name: \"type\", typeName: \"MigrationType\"}\n]);\n\nbuilder.add(\"SnapshotInput\", [\n {name: \"covers\", typeName: \"Migration\"}\n]);\n\nbuilder.add(\"EventType\");\n\nbuilder.add(\"EventsFilter\", [\n {name: \"types\", typeName: \"EventType\"}\n]);\n\nbuilder.add(\"EventsOrder\");\n\nbuilder.add(\"EventsArgs\", [\n {name: \"filter\", typeName: \"EventsFilter\"}, \n {name: \"order\", typeName: \"EventsOrder\"}\n]);\n\nbuilder.add(\"MigrateErrorCode\");\n\nexport const ENUM_INPUT_METADATA = builder.build();\n"],"names":[],"mappings":";AAEA,MAAM,UAAU,IAAI,yBAAA;AAEpB,QAAQ,IAAI,eAAe;AAE3B,QAAQ,IAAI,aAAa;AAAA,EACrB,EAAC,MAAM,QAAQ,UAAU,gBAAA;AAC7B,CAAC;AAED,QAAQ,IAAI,iBAAiB;AAAA,EACzB,EAAC,MAAM,UAAU,UAAU,YAAA;AAC/B,CAAC;AAED,QAAQ,IAAI,WAAW;AAEvB,QAAQ,IAAI,gBAAgB;AAAA,EACxB,EAAC,MAAM,SAAS,UAAU,YAAA;AAC9B,CAAC;AAED,QAAQ,IAAI,aAAa;AAEzB,QAAQ,IAAI,cAAc;AAAA,EACtB,EAAC,MAAM,UAAU,UAAU,eAAA;AAAA,EAC3B,EAAC,MAAM,SAAS,UAAU,cAAA;AAC9B,CAAC;AAED,QAAQ,IAAI,kBAAkB;AAEvB,MAAM,sBAAsB,QAAQ,MAAA;"}
@@ -19,8 +19,16 @@ const event$ = graphqlTsClientApi.createFetcher(
19
19
  "createdAt",
20
20
  "appliedAt",
21
21
  "type",
22
- "tableName",
23
- "primaryKey"
22
+ {
23
+ category: "SCALAR",
24
+ name: "tableName",
25
+ undefinable: true
26
+ },
27
+ {
28
+ category: "SCALAR",
29
+ name: "primaryKey",
30
+ undefinable: true
31
+ }
24
32
  ]
25
33
  ),
26
34
  EnumInputMetadata.ENUM_INPUT_METADATA,
@@ -1 +1 @@
1
- {"version":3,"file":"EventFetcher.cjs","sources":["../../../../../../packages/graphql-client-system/src/generated/fetchers/EventFetcher.ts"],"sourcesContent":["import type { FieldOptions, DirectiveArgs } from 'graphql-ts-client-api';\nimport { ENUM_INPUT_METADATA } from '../EnumInputMetadata';\nimport type { ObjectFetcher } from 'graphql-ts-client-api';\nimport { createFetcher, createFetchableType } from 'graphql-ts-client-api';\nimport type { WithTypeName, ImplementationType } from '../CommonTypes';\nimport type {EventType} from '../enums';\n\n/*\n * Any instance of this interface is immutable,\n * all the properties and functions can only be used to create new instances,\n * they cannot modify the current instance.\n * \n * So any instance of this interface is reuseable.\n */\nexport interface EventFetcher<T extends object, TVariables extends object> extends ObjectFetcher<'Event', T, TVariables> {\n\n on<XName extends ImplementationType<'Event'>, X extends object, XVariables extends object>(\n child: ObjectFetcher<XName, X, XVariables>, \n fragmentName?: string // undefined: inline fragment; otherwise, otherwise, real fragment\n ): EventFetcher<\n XName extends 'Event' ?\n T & X :\n WithTypeName<T, ImplementationType<'Event'>> & (\n WithTypeName<X, ImplementationType<XName>> | \n {__typename: Exclude<ImplementationType<'Event'>, ImplementationType<XName>>}\n ), \n TVariables & XVariables\n >;\n\n\n directive(name: string, args?: DirectiveArgs): EventFetcher<T, TVariables>;\n\n\n readonly __typename: EventFetcher<T & {__typename: ImplementationType<'Event'>}, TVariables>;\n\n\n readonly id: EventFetcher<T & {readonly \"id\": string}, TVariables>;\n\n \"id+\"<\n XAlias extends string = \"id\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n optionsConfigurer: (\n options: FieldOptions<\"id\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): EventFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: string} : \n {readonly [key in XAlias]: string}\n ), \n TVariables & XDirectiveVariables\n >;\n\n readonly \"~id\": EventFetcher<Omit<T, 'id'>, TVariables>;\n\n\n readonly transactionId: EventFetcher<T & {readonly \"transactionId\": string}, TVariables>;\n\n \"transactionId+\"<\n XAlias extends string = \"transactionId\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n optionsConfigurer: (\n options: FieldOptions<\"transactionId\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): EventFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: string} : \n {readonly [key in XAlias]: string}\n ), \n TVariables & XDirectiveVariables\n >;\n\n readonly \"~transactionId\": EventFetcher<Omit<T, 'transactionId'>, TVariables>;\n\n\n readonly identityDescription: EventFetcher<T & {readonly \"identityDescription\": string}, TVariables>;\n\n \"identityDescription+\"<\n XAlias extends string = \"identityDescription\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n optionsConfigurer: (\n options: FieldOptions<\"identityDescription\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): EventFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: string} : \n {readonly [key in XAlias]: string}\n ), \n TVariables & XDirectiveVariables\n >;\n\n readonly \"~identityDescription\": EventFetcher<Omit<T, 'identityDescription'>, TVariables>;\n\n\n readonly identityId: EventFetcher<T & {readonly \"identityId\": string}, TVariables>;\n\n \"identityId+\"<\n XAlias extends string = \"identityId\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n optionsConfigurer: (\n options: FieldOptions<\"identityId\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): EventFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: string} : \n {readonly [key in XAlias]: string}\n ), \n TVariables & XDirectiveVariables\n >;\n\n readonly \"~identityId\": EventFetcher<Omit<T, 'identityId'>, TVariables>;\n\n\n readonly description: EventFetcher<T & {readonly \"description\": string}, TVariables>;\n\n \"description+\"<\n XAlias extends string = \"description\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n optionsConfigurer: (\n options: FieldOptions<\"description\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): EventFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: string} : \n {readonly [key in XAlias]: string}\n ), \n TVariables & XDirectiveVariables\n >;\n\n readonly \"~description\": EventFetcher<Omit<T, 'description'>, TVariables>;\n\n\n readonly createdAt: EventFetcher<T & {readonly \"createdAt\": string}, TVariables>;\n\n \"createdAt+\"<\n XAlias extends string = \"createdAt\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n optionsConfigurer: (\n options: FieldOptions<\"createdAt\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): EventFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: string} : \n {readonly [key in XAlias]: string}\n ), \n TVariables & XDirectiveVariables\n >;\n\n readonly \"~createdAt\": EventFetcher<Omit<T, 'createdAt'>, TVariables>;\n\n\n readonly appliedAt: EventFetcher<T & {readonly \"appliedAt\": string}, TVariables>;\n\n \"appliedAt+\"<\n XAlias extends string = \"appliedAt\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n optionsConfigurer: (\n options: FieldOptions<\"appliedAt\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): EventFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: string} : \n {readonly [key in XAlias]: string}\n ), \n TVariables & XDirectiveVariables\n >;\n\n readonly \"~appliedAt\": EventFetcher<Omit<T, 'appliedAt'>, TVariables>;\n\n\n readonly type: EventFetcher<T & {readonly \"type\": EventType}, TVariables>;\n\n \"type+\"<\n XAlias extends string = \"type\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n optionsConfigurer: (\n options: FieldOptions<\"type\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): EventFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: EventType} : \n {readonly [key in XAlias]: EventType}\n ), \n TVariables & XDirectiveVariables\n >;\n\n readonly \"~type\": EventFetcher<Omit<T, 'type'>, TVariables>;\n\n\n readonly tableName: EventFetcher<T & {readonly \"tableName\": string}, TVariables>;\n\n \"tableName+\"<\n XAlias extends string = \"tableName\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n optionsConfigurer: (\n options: FieldOptions<\"tableName\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): EventFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: string} : \n {readonly [key in XAlias]: string}\n ), \n TVariables & XDirectiveVariables\n >;\n\n readonly \"~tableName\": EventFetcher<Omit<T, 'tableName'>, TVariables>;\n\n\n readonly primaryKey: EventFetcher<T & {readonly \"primaryKey\": ReadonlyArray<number | string>}, TVariables>;\n\n \"primaryKey+\"<\n XAlias extends string = \"primaryKey\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n optionsConfigurer: (\n options: FieldOptions<\"primaryKey\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): EventFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: ReadonlyArray<number | string>} : \n {readonly [key in XAlias]: ReadonlyArray<number | string>}\n ), \n TVariables & XDirectiveVariables\n >;\n\n readonly \"~primaryKey\": EventFetcher<Omit<T, 'primaryKey'>, TVariables>;\n}\n\nexport const event$: EventFetcher<{}, {}> = \n createFetcher(\n createFetchableType(\n \"Event\", \n \"OBJECT\", \n [], \n [\n {\n category: \"ID\", \n name: \"id\"\n }, \n \"transactionId\", \n \"identityDescription\", \n \"identityId\", \n \"description\", \n \"createdAt\", \n \"appliedAt\", \n \"type\", \n \"tableName\", \n \"primaryKey\"\n ]\n ), \n ENUM_INPUT_METADATA, \n undefined\n )\n;\n\nexport const event$$ = \n event$\n .id\n .transactionId\n .identityDescription\n .identityId\n .description\n .createdAt\n .appliedAt\n .type\n .tableName\n .primaryKey\n;\n"],"names":["createFetcher","createFetchableType","ENUM_INPUT_METADATA"],"mappings":";;;;AAgQO,MAAM,SACTA,mBAAAA;AAAAA,EACIC,mBAAAA;AAAAA,IACI;AAAA,IACA;AAAA,IACA,CAAA;AAAA,IACA;AAAA,MACI;AAAA,QACI,UAAU;AAAA,QACV,MAAM;AAAA,MAAA;AAAA,MAEV;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IAAA;AAAA,EACJ;AAAA,EAEJC,kBAAAA;AAAAA,EACA;AACJ;AAGG,MAAM,UACT,OACK,GACA,cACA,oBACA,WACA,YACA,UACA,UACA,KACA,UACA;;;"}
1
+ {"version":3,"file":"EventFetcher.cjs","sources":["../../../../../../packages/graphql-client-system/src/generated/fetchers/EventFetcher.ts"],"sourcesContent":["import type { FieldOptions, DirectiveArgs } from 'graphql-ts-client-api';\nimport { ENUM_INPUT_METADATA } from '../EnumInputMetadata';\nimport type { ObjectFetcher } from 'graphql-ts-client-api';\nimport { createFetcher, createFetchableType } from 'graphql-ts-client-api';\nimport type { WithTypeName, ImplementationType } from '../CommonTypes';\nimport type {EventType} from '../enums';\n\n/*\n * Any instance of this interface is immutable,\n * all the properties and functions can only be used to create new instances,\n * they cannot modify the current instance.\n * \n * So any instance of this interface is reuseable.\n */\nexport interface EventFetcher<T extends object, TVariables extends object> extends ObjectFetcher<'Event', T, TVariables> {\n\n on<XName extends ImplementationType<'Event'>, X extends object, XVariables extends object>(\n child: ObjectFetcher<XName, X, XVariables>, \n fragmentName?: string // undefined: inline fragment; otherwise, otherwise, real fragment\n ): EventFetcher<\n XName extends 'Event' ?\n T & X :\n WithTypeName<T, ImplementationType<'Event'>> & (\n WithTypeName<X, ImplementationType<XName>> | \n {__typename: Exclude<ImplementationType<'Event'>, ImplementationType<XName>>}\n ), \n TVariables & XVariables\n >;\n\n\n directive(name: string, args?: DirectiveArgs): EventFetcher<T, TVariables>;\n\n\n readonly __typename: EventFetcher<T & {__typename: ImplementationType<'Event'>}, TVariables>;\n\n\n readonly id: EventFetcher<T & {readonly \"id\": string}, TVariables>;\n\n \"id+\"<\n XAlias extends string = \"id\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n optionsConfigurer: (\n options: FieldOptions<\"id\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): EventFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: string} : \n {readonly [key in XAlias]: string}\n ), \n TVariables & XDirectiveVariables\n >;\n\n readonly \"~id\": EventFetcher<Omit<T, 'id'>, TVariables>;\n\n\n readonly transactionId: EventFetcher<T & {readonly \"transactionId\": string}, TVariables>;\n\n \"transactionId+\"<\n XAlias extends string = \"transactionId\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n optionsConfigurer: (\n options: FieldOptions<\"transactionId\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): EventFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: string} : \n {readonly [key in XAlias]: string}\n ), \n TVariables & XDirectiveVariables\n >;\n\n readonly \"~transactionId\": EventFetcher<Omit<T, 'transactionId'>, TVariables>;\n\n\n readonly identityDescription: EventFetcher<T & {readonly \"identityDescription\": string}, TVariables>;\n\n \"identityDescription+\"<\n XAlias extends string = \"identityDescription\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n optionsConfigurer: (\n options: FieldOptions<\"identityDescription\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): EventFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: string} : \n {readonly [key in XAlias]: string}\n ), \n TVariables & XDirectiveVariables\n >;\n\n readonly \"~identityDescription\": EventFetcher<Omit<T, 'identityDescription'>, TVariables>;\n\n\n readonly identityId: EventFetcher<T & {readonly \"identityId\": string}, TVariables>;\n\n \"identityId+\"<\n XAlias extends string = \"identityId\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n optionsConfigurer: (\n options: FieldOptions<\"identityId\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): EventFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: string} : \n {readonly [key in XAlias]: string}\n ), \n TVariables & XDirectiveVariables\n >;\n\n readonly \"~identityId\": EventFetcher<Omit<T, 'identityId'>, TVariables>;\n\n\n readonly description: EventFetcher<T & {readonly \"description\": string}, TVariables>;\n\n \"description+\"<\n XAlias extends string = \"description\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n optionsConfigurer: (\n options: FieldOptions<\"description\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): EventFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: string} : \n {readonly [key in XAlias]: string}\n ), \n TVariables & XDirectiveVariables\n >;\n\n readonly \"~description\": EventFetcher<Omit<T, 'description'>, TVariables>;\n\n\n readonly createdAt: EventFetcher<T & {readonly \"createdAt\": string}, TVariables>;\n\n \"createdAt+\"<\n XAlias extends string = \"createdAt\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n optionsConfigurer: (\n options: FieldOptions<\"createdAt\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): EventFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: string} : \n {readonly [key in XAlias]: string}\n ), \n TVariables & XDirectiveVariables\n >;\n\n readonly \"~createdAt\": EventFetcher<Omit<T, 'createdAt'>, TVariables>;\n\n\n readonly appliedAt: EventFetcher<T & {readonly \"appliedAt\": string}, TVariables>;\n\n \"appliedAt+\"<\n XAlias extends string = \"appliedAt\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n optionsConfigurer: (\n options: FieldOptions<\"appliedAt\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): EventFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: string} : \n {readonly [key in XAlias]: string}\n ), \n TVariables & XDirectiveVariables\n >;\n\n readonly \"~appliedAt\": EventFetcher<Omit<T, 'appliedAt'>, TVariables>;\n\n\n readonly type: EventFetcher<T & {readonly \"type\": EventType}, TVariables>;\n\n \"type+\"<\n XAlias extends string = \"type\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n optionsConfigurer: (\n options: FieldOptions<\"type\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): EventFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: EventType} : \n {readonly [key in XAlias]: EventType}\n ), \n TVariables & XDirectiveVariables\n >;\n\n readonly \"~type\": EventFetcher<Omit<T, 'type'>, TVariables>;\n\n\n readonly tableName: EventFetcher<T & {readonly \"tableName\"?: string}, TVariables>;\n\n \"tableName+\"<\n XAlias extends string = \"tableName\", \n XDirectiveVariables extends object = {}\n >(\n optionsConfigurer: (\n options: FieldOptions<\"tableName\", {}, {}>\n ) => FieldOptions<XAlias, {readonly [key: string]: DirectiveArgs}, XDirectiveVariables>\n ): EventFetcher<\n T & {readonly [key in XAlias]?: string}, \n TVariables & XDirectiveVariables\n >;\n\n readonly \"~tableName\": EventFetcher<Omit<T, 'tableName'>, TVariables>;\n\n\n readonly primaryKey: EventFetcher<T & {readonly \"primaryKey\"?: ReadonlyArray<number | string>}, TVariables>;\n\n \"primaryKey+\"<\n XAlias extends string = \"primaryKey\", \n XDirectiveVariables extends object = {}\n >(\n optionsConfigurer: (\n options: FieldOptions<\"primaryKey\", {}, {}>\n ) => FieldOptions<XAlias, {readonly [key: string]: DirectiveArgs}, XDirectiveVariables>\n ): EventFetcher<\n T & {readonly [key in XAlias]?: ReadonlyArray<number | string>}, \n TVariables & XDirectiveVariables\n >;\n\n readonly \"~primaryKey\": EventFetcher<Omit<T, 'primaryKey'>, TVariables>;\n}\n\nexport const event$: EventFetcher<{}, {}> = \n createFetcher(\n createFetchableType(\n \"Event\", \n \"OBJECT\", \n [], \n [\n {\n category: \"ID\", \n name: \"id\"\n }, \n \"transactionId\", \n \"identityDescription\", \n \"identityId\", \n \"description\", \n \"createdAt\", \n \"appliedAt\", \n \"type\", \n {\n category: \"SCALAR\", \n name: \"tableName\", \n undefinable: true\n }, \n {\n category: \"SCALAR\", \n name: \"primaryKey\", \n undefinable: true\n }\n ]\n ), \n ENUM_INPUT_METADATA, \n undefined\n )\n;\n\nexport const event$$ = \n event$\n .id\n .transactionId\n .identityDescription\n .identityId\n .description\n .createdAt\n .appliedAt\n .type\n .tableName\n .primaryKey\n;\n"],"names":["createFetcher","createFetchableType","ENUM_INPUT_METADATA"],"mappings":";;;;AAsPO,MAAM,SACTA,mBAAAA;AAAAA,EACIC,mBAAAA;AAAAA,IACI;AAAA,IACA;AAAA,IACA,CAAA;AAAA,IACA;AAAA,MACI;AAAA,QACI,UAAU;AAAA,QACV,MAAM;AAAA,MAAA;AAAA,MAEV;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,QACI,UAAU;AAAA,QACV,MAAM;AAAA,QACN,aAAa;AAAA,MAAA;AAAA,MAEjB;AAAA,QACI,UAAU;AAAA,QACV,MAAM;AAAA,QACN,aAAa;AAAA,MAAA;AAAA,IACjB;AAAA,EACJ;AAAA,EAEJC,kBAAAA;AAAAA,EACA;AACJ;AAGG,MAAM,UACT,OACK,GACA,cACA,oBACA,WACA,YACA,UACA,UACA,KACA,UACA;;;"}
@@ -17,8 +17,16 @@ const event$ = createFetcher(
17
17
  "createdAt",
18
18
  "appliedAt",
19
19
  "type",
20
- "tableName",
21
- "primaryKey"
20
+ {
21
+ category: "SCALAR",
22
+ name: "tableName",
23
+ undefinable: true
24
+ },
25
+ {
26
+ category: "SCALAR",
27
+ name: "primaryKey",
28
+ undefinable: true
29
+ }
22
30
  ]
23
31
  ),
24
32
  ENUM_INPUT_METADATA,
@@ -1 +1 @@
1
- {"version":3,"file":"EventFetcher.js","sources":["../../../../../../packages/graphql-client-system/src/generated/fetchers/EventFetcher.ts"],"sourcesContent":["import type { FieldOptions, DirectiveArgs } from 'graphql-ts-client-api';\nimport { ENUM_INPUT_METADATA } from '../EnumInputMetadata';\nimport type { ObjectFetcher } from 'graphql-ts-client-api';\nimport { createFetcher, createFetchableType } from 'graphql-ts-client-api';\nimport type { WithTypeName, ImplementationType } from '../CommonTypes';\nimport type {EventType} from '../enums';\n\n/*\n * Any instance of this interface is immutable,\n * all the properties and functions can only be used to create new instances,\n * they cannot modify the current instance.\n * \n * So any instance of this interface is reuseable.\n */\nexport interface EventFetcher<T extends object, TVariables extends object> extends ObjectFetcher<'Event', T, TVariables> {\n\n on<XName extends ImplementationType<'Event'>, X extends object, XVariables extends object>(\n child: ObjectFetcher<XName, X, XVariables>, \n fragmentName?: string // undefined: inline fragment; otherwise, otherwise, real fragment\n ): EventFetcher<\n XName extends 'Event' ?\n T & X :\n WithTypeName<T, ImplementationType<'Event'>> & (\n WithTypeName<X, ImplementationType<XName>> | \n {__typename: Exclude<ImplementationType<'Event'>, ImplementationType<XName>>}\n ), \n TVariables & XVariables\n >;\n\n\n directive(name: string, args?: DirectiveArgs): EventFetcher<T, TVariables>;\n\n\n readonly __typename: EventFetcher<T & {__typename: ImplementationType<'Event'>}, TVariables>;\n\n\n readonly id: EventFetcher<T & {readonly \"id\": string}, TVariables>;\n\n \"id+\"<\n XAlias extends string = \"id\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n optionsConfigurer: (\n options: FieldOptions<\"id\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): EventFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: string} : \n {readonly [key in XAlias]: string}\n ), \n TVariables & XDirectiveVariables\n >;\n\n readonly \"~id\": EventFetcher<Omit<T, 'id'>, TVariables>;\n\n\n readonly transactionId: EventFetcher<T & {readonly \"transactionId\": string}, TVariables>;\n\n \"transactionId+\"<\n XAlias extends string = \"transactionId\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n optionsConfigurer: (\n options: FieldOptions<\"transactionId\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): EventFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: string} : \n {readonly [key in XAlias]: string}\n ), \n TVariables & XDirectiveVariables\n >;\n\n readonly \"~transactionId\": EventFetcher<Omit<T, 'transactionId'>, TVariables>;\n\n\n readonly identityDescription: EventFetcher<T & {readonly \"identityDescription\": string}, TVariables>;\n\n \"identityDescription+\"<\n XAlias extends string = \"identityDescription\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n optionsConfigurer: (\n options: FieldOptions<\"identityDescription\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): EventFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: string} : \n {readonly [key in XAlias]: string}\n ), \n TVariables & XDirectiveVariables\n >;\n\n readonly \"~identityDescription\": EventFetcher<Omit<T, 'identityDescription'>, TVariables>;\n\n\n readonly identityId: EventFetcher<T & {readonly \"identityId\": string}, TVariables>;\n\n \"identityId+\"<\n XAlias extends string = \"identityId\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n optionsConfigurer: (\n options: FieldOptions<\"identityId\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): EventFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: string} : \n {readonly [key in XAlias]: string}\n ), \n TVariables & XDirectiveVariables\n >;\n\n readonly \"~identityId\": EventFetcher<Omit<T, 'identityId'>, TVariables>;\n\n\n readonly description: EventFetcher<T & {readonly \"description\": string}, TVariables>;\n\n \"description+\"<\n XAlias extends string = \"description\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n optionsConfigurer: (\n options: FieldOptions<\"description\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): EventFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: string} : \n {readonly [key in XAlias]: string}\n ), \n TVariables & XDirectiveVariables\n >;\n\n readonly \"~description\": EventFetcher<Omit<T, 'description'>, TVariables>;\n\n\n readonly createdAt: EventFetcher<T & {readonly \"createdAt\": string}, TVariables>;\n\n \"createdAt+\"<\n XAlias extends string = \"createdAt\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n optionsConfigurer: (\n options: FieldOptions<\"createdAt\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): EventFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: string} : \n {readonly [key in XAlias]: string}\n ), \n TVariables & XDirectiveVariables\n >;\n\n readonly \"~createdAt\": EventFetcher<Omit<T, 'createdAt'>, TVariables>;\n\n\n readonly appliedAt: EventFetcher<T & {readonly \"appliedAt\": string}, TVariables>;\n\n \"appliedAt+\"<\n XAlias extends string = \"appliedAt\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n optionsConfigurer: (\n options: FieldOptions<\"appliedAt\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): EventFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: string} : \n {readonly [key in XAlias]: string}\n ), \n TVariables & XDirectiveVariables\n >;\n\n readonly \"~appliedAt\": EventFetcher<Omit<T, 'appliedAt'>, TVariables>;\n\n\n readonly type: EventFetcher<T & {readonly \"type\": EventType}, TVariables>;\n\n \"type+\"<\n XAlias extends string = \"type\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n optionsConfigurer: (\n options: FieldOptions<\"type\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): EventFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: EventType} : \n {readonly [key in XAlias]: EventType}\n ), \n TVariables & XDirectiveVariables\n >;\n\n readonly \"~type\": EventFetcher<Omit<T, 'type'>, TVariables>;\n\n\n readonly tableName: EventFetcher<T & {readonly \"tableName\": string}, TVariables>;\n\n \"tableName+\"<\n XAlias extends string = \"tableName\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n optionsConfigurer: (\n options: FieldOptions<\"tableName\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): EventFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: string} : \n {readonly [key in XAlias]: string}\n ), \n TVariables & XDirectiveVariables\n >;\n\n readonly \"~tableName\": EventFetcher<Omit<T, 'tableName'>, TVariables>;\n\n\n readonly primaryKey: EventFetcher<T & {readonly \"primaryKey\": ReadonlyArray<number | string>}, TVariables>;\n\n \"primaryKey+\"<\n XAlias extends string = \"primaryKey\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n optionsConfigurer: (\n options: FieldOptions<\"primaryKey\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): EventFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: ReadonlyArray<number | string>} : \n {readonly [key in XAlias]: ReadonlyArray<number | string>}\n ), \n TVariables & XDirectiveVariables\n >;\n\n readonly \"~primaryKey\": EventFetcher<Omit<T, 'primaryKey'>, TVariables>;\n}\n\nexport const event$: EventFetcher<{}, {}> = \n createFetcher(\n createFetchableType(\n \"Event\", \n \"OBJECT\", \n [], \n [\n {\n category: \"ID\", \n name: \"id\"\n }, \n \"transactionId\", \n \"identityDescription\", \n \"identityId\", \n \"description\", \n \"createdAt\", \n \"appliedAt\", \n \"type\", \n \"tableName\", \n \"primaryKey\"\n ]\n ), \n ENUM_INPUT_METADATA, \n undefined\n )\n;\n\nexport const event$$ = \n event$\n .id\n .transactionId\n .identityDescription\n .identityId\n .description\n .createdAt\n .appliedAt\n .type\n .tableName\n .primaryKey\n;\n"],"names":[],"mappings":";;AAgQO,MAAM,SACT;AAAA,EACI;AAAA,IACI;AAAA,IACA;AAAA,IACA,CAAA;AAAA,IACA;AAAA,MACI;AAAA,QACI,UAAU;AAAA,QACV,MAAM;AAAA,MAAA;AAAA,MAEV;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IAAA;AAAA,EACJ;AAAA,EAEJ;AAAA,EACA;AACJ;AAGG,MAAM,UACT,OACK,GACA,cACA,oBACA,WACA,YACA,UACA,UACA,KACA,UACA;"}
1
+ {"version":3,"file":"EventFetcher.js","sources":["../../../../../../packages/graphql-client-system/src/generated/fetchers/EventFetcher.ts"],"sourcesContent":["import type { FieldOptions, DirectiveArgs } from 'graphql-ts-client-api';\nimport { ENUM_INPUT_METADATA } from '../EnumInputMetadata';\nimport type { ObjectFetcher } from 'graphql-ts-client-api';\nimport { createFetcher, createFetchableType } from 'graphql-ts-client-api';\nimport type { WithTypeName, ImplementationType } from '../CommonTypes';\nimport type {EventType} from '../enums';\n\n/*\n * Any instance of this interface is immutable,\n * all the properties and functions can only be used to create new instances,\n * they cannot modify the current instance.\n * \n * So any instance of this interface is reuseable.\n */\nexport interface EventFetcher<T extends object, TVariables extends object> extends ObjectFetcher<'Event', T, TVariables> {\n\n on<XName extends ImplementationType<'Event'>, X extends object, XVariables extends object>(\n child: ObjectFetcher<XName, X, XVariables>, \n fragmentName?: string // undefined: inline fragment; otherwise, otherwise, real fragment\n ): EventFetcher<\n XName extends 'Event' ?\n T & X :\n WithTypeName<T, ImplementationType<'Event'>> & (\n WithTypeName<X, ImplementationType<XName>> | \n {__typename: Exclude<ImplementationType<'Event'>, ImplementationType<XName>>}\n ), \n TVariables & XVariables\n >;\n\n\n directive(name: string, args?: DirectiveArgs): EventFetcher<T, TVariables>;\n\n\n readonly __typename: EventFetcher<T & {__typename: ImplementationType<'Event'>}, TVariables>;\n\n\n readonly id: EventFetcher<T & {readonly \"id\": string}, TVariables>;\n\n \"id+\"<\n XAlias extends string = \"id\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n optionsConfigurer: (\n options: FieldOptions<\"id\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): EventFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: string} : \n {readonly [key in XAlias]: string}\n ), \n TVariables & XDirectiveVariables\n >;\n\n readonly \"~id\": EventFetcher<Omit<T, 'id'>, TVariables>;\n\n\n readonly transactionId: EventFetcher<T & {readonly \"transactionId\": string}, TVariables>;\n\n \"transactionId+\"<\n XAlias extends string = \"transactionId\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n optionsConfigurer: (\n options: FieldOptions<\"transactionId\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): EventFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: string} : \n {readonly [key in XAlias]: string}\n ), \n TVariables & XDirectiveVariables\n >;\n\n readonly \"~transactionId\": EventFetcher<Omit<T, 'transactionId'>, TVariables>;\n\n\n readonly identityDescription: EventFetcher<T & {readonly \"identityDescription\": string}, TVariables>;\n\n \"identityDescription+\"<\n XAlias extends string = \"identityDescription\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n optionsConfigurer: (\n options: FieldOptions<\"identityDescription\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): EventFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: string} : \n {readonly [key in XAlias]: string}\n ), \n TVariables & XDirectiveVariables\n >;\n\n readonly \"~identityDescription\": EventFetcher<Omit<T, 'identityDescription'>, TVariables>;\n\n\n readonly identityId: EventFetcher<T & {readonly \"identityId\": string}, TVariables>;\n\n \"identityId+\"<\n XAlias extends string = \"identityId\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n optionsConfigurer: (\n options: FieldOptions<\"identityId\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): EventFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: string} : \n {readonly [key in XAlias]: string}\n ), \n TVariables & XDirectiveVariables\n >;\n\n readonly \"~identityId\": EventFetcher<Omit<T, 'identityId'>, TVariables>;\n\n\n readonly description: EventFetcher<T & {readonly \"description\": string}, TVariables>;\n\n \"description+\"<\n XAlias extends string = \"description\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n optionsConfigurer: (\n options: FieldOptions<\"description\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): EventFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: string} : \n {readonly [key in XAlias]: string}\n ), \n TVariables & XDirectiveVariables\n >;\n\n readonly \"~description\": EventFetcher<Omit<T, 'description'>, TVariables>;\n\n\n readonly createdAt: EventFetcher<T & {readonly \"createdAt\": string}, TVariables>;\n\n \"createdAt+\"<\n XAlias extends string = \"createdAt\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n optionsConfigurer: (\n options: FieldOptions<\"createdAt\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): EventFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: string} : \n {readonly [key in XAlias]: string}\n ), \n TVariables & XDirectiveVariables\n >;\n\n readonly \"~createdAt\": EventFetcher<Omit<T, 'createdAt'>, TVariables>;\n\n\n readonly appliedAt: EventFetcher<T & {readonly \"appliedAt\": string}, TVariables>;\n\n \"appliedAt+\"<\n XAlias extends string = \"appliedAt\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n optionsConfigurer: (\n options: FieldOptions<\"appliedAt\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): EventFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: string} : \n {readonly [key in XAlias]: string}\n ), \n TVariables & XDirectiveVariables\n >;\n\n readonly \"~appliedAt\": EventFetcher<Omit<T, 'appliedAt'>, TVariables>;\n\n\n readonly type: EventFetcher<T & {readonly \"type\": EventType}, TVariables>;\n\n \"type+\"<\n XAlias extends string = \"type\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n optionsConfigurer: (\n options: FieldOptions<\"type\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): EventFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: EventType} : \n {readonly [key in XAlias]: EventType}\n ), \n TVariables & XDirectiveVariables\n >;\n\n readonly \"~type\": EventFetcher<Omit<T, 'type'>, TVariables>;\n\n\n readonly tableName: EventFetcher<T & {readonly \"tableName\"?: string}, TVariables>;\n\n \"tableName+\"<\n XAlias extends string = \"tableName\", \n XDirectiveVariables extends object = {}\n >(\n optionsConfigurer: (\n options: FieldOptions<\"tableName\", {}, {}>\n ) => FieldOptions<XAlias, {readonly [key: string]: DirectiveArgs}, XDirectiveVariables>\n ): EventFetcher<\n T & {readonly [key in XAlias]?: string}, \n TVariables & XDirectiveVariables\n >;\n\n readonly \"~tableName\": EventFetcher<Omit<T, 'tableName'>, TVariables>;\n\n\n readonly primaryKey: EventFetcher<T & {readonly \"primaryKey\"?: ReadonlyArray<number | string>}, TVariables>;\n\n \"primaryKey+\"<\n XAlias extends string = \"primaryKey\", \n XDirectiveVariables extends object = {}\n >(\n optionsConfigurer: (\n options: FieldOptions<\"primaryKey\", {}, {}>\n ) => FieldOptions<XAlias, {readonly [key: string]: DirectiveArgs}, XDirectiveVariables>\n ): EventFetcher<\n T & {readonly [key in XAlias]?: ReadonlyArray<number | string>}, \n TVariables & XDirectiveVariables\n >;\n\n readonly \"~primaryKey\": EventFetcher<Omit<T, 'primaryKey'>, TVariables>;\n}\n\nexport const event$: EventFetcher<{}, {}> = \n createFetcher(\n createFetchableType(\n \"Event\", \n \"OBJECT\", \n [], \n [\n {\n category: \"ID\", \n name: \"id\"\n }, \n \"transactionId\", \n \"identityDescription\", \n \"identityId\", \n \"description\", \n \"createdAt\", \n \"appliedAt\", \n \"type\", \n {\n category: \"SCALAR\", \n name: \"tableName\", \n undefinable: true\n }, \n {\n category: \"SCALAR\", \n name: \"primaryKey\", \n undefinable: true\n }\n ]\n ), \n ENUM_INPUT_METADATA, \n undefined\n )\n;\n\nexport const event$$ = \n event$\n .id\n .transactionId\n .identityDescription\n .identityId\n .description\n .createdAt\n .appliedAt\n .type\n .tableName\n .primaryKey\n;\n"],"names":[],"mappings":";;AAsPO,MAAM,SACT;AAAA,EACI;AAAA,IACI;AAAA,IACA;AAAA,IACA,CAAA;AAAA,IACA;AAAA,MACI;AAAA,QACI,UAAU;AAAA,QACV,MAAM;AAAA,MAAA;AAAA,MAEV;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,QACI,UAAU;AAAA,QACV,MAAM;AAAA,QACN,aAAa;AAAA,MAAA;AAAA,MAEjB;AAAA,QACI,UAAU;AAAA,QACV,MAAM;AAAA,QACN,aAAa;AAAA,MAAA;AAAA,IACjB;AAAA,EACJ;AAAA,EAEJ;AAAA,EACA;AACJ;AAGG,MAAM,UACT,OACK,GACA,cACA,oBACA,WACA,YACA,UACA,UACA,KACA,UACA;"}
@@ -11,7 +11,19 @@ const mutation$ = graphqlTsClientApi.createFetcher(
11
11
  {
12
12
  category: "SCALAR",
13
13
  name: "migrate",
14
- argGraphQLTypeMap: { migrations: "[Migration!]!" },
14
+ argGraphQLTypeMap: {
15
+ migrations: "[Migration!]!",
16
+ schemaState: "SchemaStateInput"
17
+ },
18
+ targetTypeName: "MigrateResponse"
19
+ },
20
+ {
21
+ category: "SCALAR",
22
+ name: "migrateFromSnapshot",
23
+ argGraphQLTypeMap: {
24
+ snapshot: "SnapshotInput!",
25
+ schemaState: "SchemaStateInput"
26
+ },
15
27
  targetTypeName: "MigrateResponse"
16
28
  }
17
29
  ]
@@ -1 +1 @@
1
- {"version":3,"file":"MutationFetcher.cjs","sources":["../../../../../../packages/graphql-client-system/src/generated/fetchers/MutationFetcher.ts"],"sourcesContent":["import type { AcceptableVariables, UnresolvedVariables, FieldOptions, DirectiveArgs } from 'graphql-ts-client-api';\nimport { ENUM_INPUT_METADATA } from '../EnumInputMetadata';\nimport type { ObjectFetcher } from 'graphql-ts-client-api';\nimport { createFetcher, createFetchableType } from 'graphql-ts-client-api';\nimport type {Migration} from '../inputs';\n\n/*\n * Any instance of this interface is immutable,\n * all the properties and functions can only be used to create new instances,\n * they cannot modify the current instance.\n * \n * So any instance of this interface is reuseable.\n */\nexport interface MutationFetcher<T extends object, TVariables extends object> extends ObjectFetcher<'Mutation', T, TVariables> {\n\n\n directive(name: string, args?: DirectiveArgs): MutationFetcher<T, TVariables>;\n\n\n migrate<\n X extends object, \n XVariables extends object\n >(\n child: ObjectFetcher<'MigrateResponse', X, XVariables>\n ): MutationFetcher<\n T & {readonly \"migrate\": X}, \n TVariables & XVariables & MutationArgs[\"migrate\"]\n >;\n\n migrate<\n XArgs extends AcceptableVariables<MutationArgs['migrate']>, \n X extends object, \n XVariables extends object\n >(\n args: XArgs, \n child: ObjectFetcher<'MigrateResponse', X, XVariables>\n ): MutationFetcher<\n T & {readonly \"migrate\": X}, \n TVariables & XVariables & UnresolvedVariables<XArgs, MutationArgs['migrate']>\n >;\n\n migrate<\n X extends object, \n XVariables extends object, \n XAlias extends string = \"migrate\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n child: ObjectFetcher<'MigrateResponse', X, XVariables>, \n optionsConfigurer: (\n options: FieldOptions<\"migrate\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): MutationFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: X} : \n {readonly [key in XAlias]: X}\n ), \n TVariables & XVariables & MutationArgs[\"migrate\"] & XDirectiveVariables\n >;\n\n migrate<\n XArgs extends AcceptableVariables<MutationArgs['migrate']>, \n X extends object, \n XVariables extends object, \n XAlias extends string = \"migrate\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n args: XArgs, \n child: ObjectFetcher<'MigrateResponse', X, XVariables>, \n optionsConfigurer: (\n options: FieldOptions<\"migrate\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): MutationFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: X} : \n {readonly [key in XAlias]: X}\n ), \n TVariables & XVariables & UnresolvedVariables<XArgs, MutationArgs['migrate']> & XDirectiveVariables\n >;\n}\n\nexport const mutation$: MutationFetcher<{}, {}> = \n createFetcher(\n createFetchableType(\n \"Mutation\", \n \"EMBEDDED\", \n [], \n [\n {\n category: \"SCALAR\", \n name: \"migrate\", \n argGraphQLTypeMap: {migrations: '[Migration!]!'}, \n targetTypeName: \"MigrateResponse\"\n }\n ]\n ), \n ENUM_INPUT_METADATA, \n undefined\n )\n;\n\nexport interface MutationArgs {\n\n readonly migrate: {\n readonly migrations: ReadonlyArray<Migration>\n }\n}\n"],"names":["createFetcher","createFetchableType","ENUM_INPUT_METADATA"],"mappings":";;;;AAoFO,MAAM,YACTA,mBAAAA;AAAAA,EACIC,mBAAAA;AAAAA,IACI;AAAA,IACA;AAAA,IACA,CAAA;AAAA,IACA;AAAA,MACI;AAAA,QACI,UAAU;AAAA,QACV,MAAM;AAAA,QACN,mBAAmB,EAAC,YAAY,gBAAA;AAAA,QAChC,gBAAgB;AAAA,MAAA;AAAA,IACpB;AAAA,EACJ;AAAA,EAEJC,kBAAAA;AAAAA,EACA;AACJ;;"}
1
+ {"version":3,"file":"MutationFetcher.cjs","sources":["../../../../../../packages/graphql-client-system/src/generated/fetchers/MutationFetcher.ts"],"sourcesContent":["import type { AcceptableVariables, UnresolvedVariables, FieldOptions, DirectiveArgs } from 'graphql-ts-client-api';\nimport { ENUM_INPUT_METADATA } from '../EnumInputMetadata';\nimport type { ObjectFetcher } from 'graphql-ts-client-api';\nimport { createFetcher, createFetchableType } from 'graphql-ts-client-api';\nimport type {Migration} from '../inputs';\nimport type {SchemaStateInput} from '../inputs';\nimport type {SnapshotInput} from '../inputs';\n\n/*\n * Any instance of this interface is immutable,\n * all the properties and functions can only be used to create new instances,\n * they cannot modify the current instance.\n * \n * So any instance of this interface is reuseable.\n */\nexport interface MutationFetcher<T extends object, TVariables extends object> extends ObjectFetcher<'Mutation', T, TVariables> {\n\n\n directive(name: string, args?: DirectiveArgs): MutationFetcher<T, TVariables>;\n\n\n migrate<\n X extends object, \n XVariables extends object\n >(\n child: ObjectFetcher<'MigrateResponse', X, XVariables>\n ): MutationFetcher<\n T & {readonly \"migrate\": X}, \n TVariables & XVariables & MutationArgs[\"migrate\"]\n >;\n\n migrate<\n XArgs extends AcceptableVariables<MutationArgs['migrate']>, \n X extends object, \n XVariables extends object\n >(\n args: XArgs, \n child: ObjectFetcher<'MigrateResponse', X, XVariables>\n ): MutationFetcher<\n T & {readonly \"migrate\": X}, \n TVariables & XVariables & UnresolvedVariables<XArgs, MutationArgs['migrate']>\n >;\n\n migrate<\n X extends object, \n XVariables extends object, \n XAlias extends string = \"migrate\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n child: ObjectFetcher<'MigrateResponse', X, XVariables>, \n optionsConfigurer: (\n options: FieldOptions<\"migrate\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): MutationFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: X} : \n {readonly [key in XAlias]: X}\n ), \n TVariables & XVariables & MutationArgs[\"migrate\"] & XDirectiveVariables\n >;\n\n migrate<\n XArgs extends AcceptableVariables<MutationArgs['migrate']>, \n X extends object, \n XVariables extends object, \n XAlias extends string = \"migrate\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n args: XArgs, \n child: ObjectFetcher<'MigrateResponse', X, XVariables>, \n optionsConfigurer: (\n options: FieldOptions<\"migrate\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): MutationFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: X} : \n {readonly [key in XAlias]: X}\n ), \n TVariables & XVariables & UnresolvedVariables<XArgs, MutationArgs['migrate']> & XDirectiveVariables\n >;\n\n\n migrateFromSnapshot<\n X extends object, \n XVariables extends object\n >(\n child: ObjectFetcher<'MigrateResponse', X, XVariables>\n ): MutationFetcher<\n T & {readonly \"migrateFromSnapshot\": X}, \n TVariables & XVariables & MutationArgs[\"migrateFromSnapshot\"]\n >;\n\n migrateFromSnapshot<\n XArgs extends AcceptableVariables<MutationArgs['migrateFromSnapshot']>, \n X extends object, \n XVariables extends object\n >(\n args: XArgs, \n child: ObjectFetcher<'MigrateResponse', X, XVariables>\n ): MutationFetcher<\n T & {readonly \"migrateFromSnapshot\": X}, \n TVariables & XVariables & UnresolvedVariables<XArgs, MutationArgs['migrateFromSnapshot']>\n >;\n\n migrateFromSnapshot<\n X extends object, \n XVariables extends object, \n XAlias extends string = \"migrateFromSnapshot\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n child: ObjectFetcher<'MigrateResponse', X, XVariables>, \n optionsConfigurer: (\n options: FieldOptions<\"migrateFromSnapshot\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): MutationFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: X} : \n {readonly [key in XAlias]: X}\n ), \n TVariables & XVariables & MutationArgs[\"migrateFromSnapshot\"] & XDirectiveVariables\n >;\n\n migrateFromSnapshot<\n XArgs extends AcceptableVariables<MutationArgs['migrateFromSnapshot']>, \n X extends object, \n XVariables extends object, \n XAlias extends string = \"migrateFromSnapshot\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n args: XArgs, \n child: ObjectFetcher<'MigrateResponse', X, XVariables>, \n optionsConfigurer: (\n options: FieldOptions<\"migrateFromSnapshot\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): MutationFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: X} : \n {readonly [key in XAlias]: X}\n ), \n TVariables & XVariables & UnresolvedVariables<XArgs, MutationArgs['migrateFromSnapshot']> & XDirectiveVariables\n >;\n}\n\nexport const mutation$: MutationFetcher<{}, {}> = \n createFetcher(\n createFetchableType(\n \"Mutation\", \n \"EMBEDDED\", \n [], \n [\n {\n category: \"SCALAR\", \n name: \"migrate\", \n argGraphQLTypeMap: {\n migrations: '[Migration!]!', \n schemaState: 'SchemaStateInput'\n }, \n targetTypeName: \"MigrateResponse\"\n }, \n {\n category: \"SCALAR\", \n name: \"migrateFromSnapshot\", \n argGraphQLTypeMap: {\n snapshot: 'SnapshotInput!', \n schemaState: 'SchemaStateInput'\n }, \n targetTypeName: \"MigrateResponse\"\n }\n ]\n ), \n ENUM_INPUT_METADATA, \n undefined\n )\n;\n\nexport interface MutationArgs {\n\n readonly migrate: {\n readonly migrations: ReadonlyArray<Migration>, \n readonly schemaState?: SchemaStateInput\n }, \n\n readonly migrateFromSnapshot: {\n readonly snapshot: SnapshotInput, \n readonly schemaState?: SchemaStateInput\n }\n}\n"],"names":["createFetcher","createFetchableType","ENUM_INPUT_METADATA"],"mappings":";;;;AAuJO,MAAM,YACTA,mBAAAA;AAAAA,EACIC,mBAAAA;AAAAA,IACI;AAAA,IACA;AAAA,IACA,CAAA;AAAA,IACA;AAAA,MACI;AAAA,QACI,UAAU;AAAA,QACV,MAAM;AAAA,QACN,mBAAmB;AAAA,UACf,YAAY;AAAA,UACZ,aAAa;AAAA,QAAA;AAAA,QAEjB,gBAAgB;AAAA,MAAA;AAAA,MAEpB;AAAA,QACI,UAAU;AAAA,QACV,MAAM;AAAA,QACN,mBAAmB;AAAA,UACf,UAAU;AAAA,UACV,aAAa;AAAA,QAAA;AAAA,QAEjB,gBAAgB;AAAA,MAAA;AAAA,IACpB;AAAA,EACJ;AAAA,EAEJC,kBAAAA;AAAAA,EACA;AACJ;;"}
@@ -9,7 +9,19 @@ const mutation$ = createFetcher(
9
9
  {
10
10
  category: "SCALAR",
11
11
  name: "migrate",
12
- argGraphQLTypeMap: { migrations: "[Migration!]!" },
12
+ argGraphQLTypeMap: {
13
+ migrations: "[Migration!]!",
14
+ schemaState: "SchemaStateInput"
15
+ },
16
+ targetTypeName: "MigrateResponse"
17
+ },
18
+ {
19
+ category: "SCALAR",
20
+ name: "migrateFromSnapshot",
21
+ argGraphQLTypeMap: {
22
+ snapshot: "SnapshotInput!",
23
+ schemaState: "SchemaStateInput"
24
+ },
13
25
  targetTypeName: "MigrateResponse"
14
26
  }
15
27
  ]
@@ -1 +1 @@
1
- {"version":3,"file":"MutationFetcher.js","sources":["../../../../../../packages/graphql-client-system/src/generated/fetchers/MutationFetcher.ts"],"sourcesContent":["import type { AcceptableVariables, UnresolvedVariables, FieldOptions, DirectiveArgs } from 'graphql-ts-client-api';\nimport { ENUM_INPUT_METADATA } from '../EnumInputMetadata';\nimport type { ObjectFetcher } from 'graphql-ts-client-api';\nimport { createFetcher, createFetchableType } from 'graphql-ts-client-api';\nimport type {Migration} from '../inputs';\n\n/*\n * Any instance of this interface is immutable,\n * all the properties and functions can only be used to create new instances,\n * they cannot modify the current instance.\n * \n * So any instance of this interface is reuseable.\n */\nexport interface MutationFetcher<T extends object, TVariables extends object> extends ObjectFetcher<'Mutation', T, TVariables> {\n\n\n directive(name: string, args?: DirectiveArgs): MutationFetcher<T, TVariables>;\n\n\n migrate<\n X extends object, \n XVariables extends object\n >(\n child: ObjectFetcher<'MigrateResponse', X, XVariables>\n ): MutationFetcher<\n T & {readonly \"migrate\": X}, \n TVariables & XVariables & MutationArgs[\"migrate\"]\n >;\n\n migrate<\n XArgs extends AcceptableVariables<MutationArgs['migrate']>, \n X extends object, \n XVariables extends object\n >(\n args: XArgs, \n child: ObjectFetcher<'MigrateResponse', X, XVariables>\n ): MutationFetcher<\n T & {readonly \"migrate\": X}, \n TVariables & XVariables & UnresolvedVariables<XArgs, MutationArgs['migrate']>\n >;\n\n migrate<\n X extends object, \n XVariables extends object, \n XAlias extends string = \"migrate\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n child: ObjectFetcher<'MigrateResponse', X, XVariables>, \n optionsConfigurer: (\n options: FieldOptions<\"migrate\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): MutationFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: X} : \n {readonly [key in XAlias]: X}\n ), \n TVariables & XVariables & MutationArgs[\"migrate\"] & XDirectiveVariables\n >;\n\n migrate<\n XArgs extends AcceptableVariables<MutationArgs['migrate']>, \n X extends object, \n XVariables extends object, \n XAlias extends string = \"migrate\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n args: XArgs, \n child: ObjectFetcher<'MigrateResponse', X, XVariables>, \n optionsConfigurer: (\n options: FieldOptions<\"migrate\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): MutationFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: X} : \n {readonly [key in XAlias]: X}\n ), \n TVariables & XVariables & UnresolvedVariables<XArgs, MutationArgs['migrate']> & XDirectiveVariables\n >;\n}\n\nexport const mutation$: MutationFetcher<{}, {}> = \n createFetcher(\n createFetchableType(\n \"Mutation\", \n \"EMBEDDED\", \n [], \n [\n {\n category: \"SCALAR\", \n name: \"migrate\", \n argGraphQLTypeMap: {migrations: '[Migration!]!'}, \n targetTypeName: \"MigrateResponse\"\n }\n ]\n ), \n ENUM_INPUT_METADATA, \n undefined\n )\n;\n\nexport interface MutationArgs {\n\n readonly migrate: {\n readonly migrations: ReadonlyArray<Migration>\n }\n}\n"],"names":[],"mappings":";;AAoFO,MAAM,YACT;AAAA,EACI;AAAA,IACI;AAAA,IACA;AAAA,IACA,CAAA;AAAA,IACA;AAAA,MACI;AAAA,QACI,UAAU;AAAA,QACV,MAAM;AAAA,QACN,mBAAmB,EAAC,YAAY,gBAAA;AAAA,QAChC,gBAAgB;AAAA,MAAA;AAAA,IACpB;AAAA,EACJ;AAAA,EAEJ;AAAA,EACA;AACJ;"}
1
+ {"version":3,"file":"MutationFetcher.js","sources":["../../../../../../packages/graphql-client-system/src/generated/fetchers/MutationFetcher.ts"],"sourcesContent":["import type { AcceptableVariables, UnresolvedVariables, FieldOptions, DirectiveArgs } from 'graphql-ts-client-api';\nimport { ENUM_INPUT_METADATA } from '../EnumInputMetadata';\nimport type { ObjectFetcher } from 'graphql-ts-client-api';\nimport { createFetcher, createFetchableType } from 'graphql-ts-client-api';\nimport type {Migration} from '../inputs';\nimport type {SchemaStateInput} from '../inputs';\nimport type {SnapshotInput} from '../inputs';\n\n/*\n * Any instance of this interface is immutable,\n * all the properties and functions can only be used to create new instances,\n * they cannot modify the current instance.\n * \n * So any instance of this interface is reuseable.\n */\nexport interface MutationFetcher<T extends object, TVariables extends object> extends ObjectFetcher<'Mutation', T, TVariables> {\n\n\n directive(name: string, args?: DirectiveArgs): MutationFetcher<T, TVariables>;\n\n\n migrate<\n X extends object, \n XVariables extends object\n >(\n child: ObjectFetcher<'MigrateResponse', X, XVariables>\n ): MutationFetcher<\n T & {readonly \"migrate\": X}, \n TVariables & XVariables & MutationArgs[\"migrate\"]\n >;\n\n migrate<\n XArgs extends AcceptableVariables<MutationArgs['migrate']>, \n X extends object, \n XVariables extends object\n >(\n args: XArgs, \n child: ObjectFetcher<'MigrateResponse', X, XVariables>\n ): MutationFetcher<\n T & {readonly \"migrate\": X}, \n TVariables & XVariables & UnresolvedVariables<XArgs, MutationArgs['migrate']>\n >;\n\n migrate<\n X extends object, \n XVariables extends object, \n XAlias extends string = \"migrate\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n child: ObjectFetcher<'MigrateResponse', X, XVariables>, \n optionsConfigurer: (\n options: FieldOptions<\"migrate\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): MutationFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: X} : \n {readonly [key in XAlias]: X}\n ), \n TVariables & XVariables & MutationArgs[\"migrate\"] & XDirectiveVariables\n >;\n\n migrate<\n XArgs extends AcceptableVariables<MutationArgs['migrate']>, \n X extends object, \n XVariables extends object, \n XAlias extends string = \"migrate\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n args: XArgs, \n child: ObjectFetcher<'MigrateResponse', X, XVariables>, \n optionsConfigurer: (\n options: FieldOptions<\"migrate\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): MutationFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: X} : \n {readonly [key in XAlias]: X}\n ), \n TVariables & XVariables & UnresolvedVariables<XArgs, MutationArgs['migrate']> & XDirectiveVariables\n >;\n\n\n migrateFromSnapshot<\n X extends object, \n XVariables extends object\n >(\n child: ObjectFetcher<'MigrateResponse', X, XVariables>\n ): MutationFetcher<\n T & {readonly \"migrateFromSnapshot\": X}, \n TVariables & XVariables & MutationArgs[\"migrateFromSnapshot\"]\n >;\n\n migrateFromSnapshot<\n XArgs extends AcceptableVariables<MutationArgs['migrateFromSnapshot']>, \n X extends object, \n XVariables extends object\n >(\n args: XArgs, \n child: ObjectFetcher<'MigrateResponse', X, XVariables>\n ): MutationFetcher<\n T & {readonly \"migrateFromSnapshot\": X}, \n TVariables & XVariables & UnresolvedVariables<XArgs, MutationArgs['migrateFromSnapshot']>\n >;\n\n migrateFromSnapshot<\n X extends object, \n XVariables extends object, \n XAlias extends string = \"migrateFromSnapshot\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n child: ObjectFetcher<'MigrateResponse', X, XVariables>, \n optionsConfigurer: (\n options: FieldOptions<\"migrateFromSnapshot\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): MutationFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: X} : \n {readonly [key in XAlias]: X}\n ), \n TVariables & XVariables & MutationArgs[\"migrateFromSnapshot\"] & XDirectiveVariables\n >;\n\n migrateFromSnapshot<\n XArgs extends AcceptableVariables<MutationArgs['migrateFromSnapshot']>, \n X extends object, \n XVariables extends object, \n XAlias extends string = \"migrateFromSnapshot\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n args: XArgs, \n child: ObjectFetcher<'MigrateResponse', X, XVariables>, \n optionsConfigurer: (\n options: FieldOptions<\"migrateFromSnapshot\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): MutationFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: X} : \n {readonly [key in XAlias]: X}\n ), \n TVariables & XVariables & UnresolvedVariables<XArgs, MutationArgs['migrateFromSnapshot']> & XDirectiveVariables\n >;\n}\n\nexport const mutation$: MutationFetcher<{}, {}> = \n createFetcher(\n createFetchableType(\n \"Mutation\", \n \"EMBEDDED\", \n [], \n [\n {\n category: \"SCALAR\", \n name: \"migrate\", \n argGraphQLTypeMap: {\n migrations: '[Migration!]!', \n schemaState: 'SchemaStateInput'\n }, \n targetTypeName: \"MigrateResponse\"\n }, \n {\n category: \"SCALAR\", \n name: \"migrateFromSnapshot\", \n argGraphQLTypeMap: {\n snapshot: 'SnapshotInput!', \n schemaState: 'SchemaStateInput'\n }, \n targetTypeName: \"MigrateResponse\"\n }\n ]\n ), \n ENUM_INPUT_METADATA, \n undefined\n )\n;\n\nexport interface MutationArgs {\n\n readonly migrate: {\n readonly migrations: ReadonlyArray<Migration>, \n readonly schemaState?: SchemaStateInput\n }, \n\n readonly migrateFromSnapshot: {\n readonly snapshot: SnapshotInput, \n readonly schemaState?: SchemaStateInput\n }\n}\n"],"names":[],"mappings":";;AAuJO,MAAM,YACT;AAAA,EACI;AAAA,IACI;AAAA,IACA;AAAA,IACA,CAAA;AAAA,IACA;AAAA,MACI;AAAA,QACI,UAAU;AAAA,QACV,MAAM;AAAA,QACN,mBAAmB;AAAA,UACf,YAAY;AAAA,UACZ,aAAa;AAAA,QAAA;AAAA,QAEjB,gBAAgB;AAAA,MAAA;AAAA,MAEpB;AAAA,QACI,UAAU;AAAA,QACV,MAAM;AAAA,QACN,mBAAmB;AAAA,UACf,UAAU;AAAA,UACV,aAAa;AAAA,QAAA;AAAA,QAEjB,gBAAgB;AAAA,MAAA;AAAA,IACpB;AAAA,EACJ;AAAA,EAEJ;AAAA,EACA;AACJ;"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const EnumInputMetadata = require("../EnumInputMetadata.cjs");
4
+ const graphqlTsClientApi = require("graphql-ts-client-api");
5
+ const EventFetcher = require("./EventFetcher.cjs");
6
+ const truncateEvent$ = graphqlTsClientApi.createFetcher(
7
+ graphqlTsClientApi.createFetchableType(
8
+ "TruncateEvent",
9
+ "OBJECT",
10
+ [EventFetcher.event$.fetchableType],
11
+ []
12
+ ),
13
+ EnumInputMetadata.ENUM_INPUT_METADATA,
14
+ void 0
15
+ );
16
+ const truncateEvent$$ = truncateEvent$.id.transactionId.identityId.identityDescription.description.createdAt.appliedAt.type.tableName.primaryKey;
17
+ exports.truncateEvent$ = truncateEvent$;
18
+ exports.truncateEvent$$ = truncateEvent$$;
19
+ //# sourceMappingURL=TruncateEventFetcher.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TruncateEventFetcher.cjs","sources":["../../../../../../packages/graphql-client-system/src/generated/fetchers/TruncateEventFetcher.ts"],"sourcesContent":["import type { FieldOptions, DirectiveArgs } from 'graphql-ts-client-api';\nimport { ENUM_INPUT_METADATA } from '../EnumInputMetadata';\nimport type { ObjectFetcher } from 'graphql-ts-client-api';\nimport { createFetcher, createFetchableType } from 'graphql-ts-client-api';\nimport type { WithTypeName, ImplementationType } from '../CommonTypes';\nimport { event$ } from './EventFetcher';\nimport type {EventType} from '../enums';\n\n/*\n * Any instance of this interface is immutable,\n * all the properties and functions can only be used to create new instances,\n * they cannot modify the current instance.\n * \n * So any instance of this interface is reuseable.\n */\nexport interface TruncateEventFetcher<T extends object, TVariables extends object> extends ObjectFetcher<'TruncateEvent', T, TVariables> {\n\n on<XName extends ImplementationType<'TruncateEvent'>, X extends object, XVariables extends object>(\n child: ObjectFetcher<XName, X, XVariables>, \n fragmentName?: string // undefined: inline fragment; otherwise, otherwise, real fragment\n ): TruncateEventFetcher<\n XName extends 'TruncateEvent' ?\n T & X :\n WithTypeName<T, ImplementationType<'TruncateEvent'>> & (\n WithTypeName<X, ImplementationType<XName>> | \n {__typename: Exclude<ImplementationType<'TruncateEvent'>, ImplementationType<XName>>}\n ), \n TVariables & XVariables\n >;\n\n\n directive(name: string, args?: DirectiveArgs): TruncateEventFetcher<T, TVariables>;\n\n\n readonly __typename: TruncateEventFetcher<T & {__typename: ImplementationType<'TruncateEvent'>}, TVariables>;\n\n\n readonly id: TruncateEventFetcher<T & {readonly \"id\": string}, TVariables>;\n\n \"id+\"<\n XAlias extends string = \"id\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n optionsConfigurer: (\n options: FieldOptions<\"id\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): TruncateEventFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: string} : \n {readonly [key in XAlias]: string}\n ), \n TVariables & XDirectiveVariables\n >;\n\n readonly \"~id\": TruncateEventFetcher<Omit<T, 'id'>, TVariables>;\n\n\n readonly transactionId: TruncateEventFetcher<T & {readonly \"transactionId\": string}, TVariables>;\n\n \"transactionId+\"<\n XAlias extends string = \"transactionId\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n optionsConfigurer: (\n options: FieldOptions<\"transactionId\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): TruncateEventFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: string} : \n {readonly [key in XAlias]: string}\n ), \n TVariables & XDirectiveVariables\n >;\n\n readonly \"~transactionId\": TruncateEventFetcher<Omit<T, 'transactionId'>, TVariables>;\n\n\n readonly identityId: TruncateEventFetcher<T & {readonly \"identityId\": string}, TVariables>;\n\n \"identityId+\"<\n XAlias extends string = \"identityId\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n optionsConfigurer: (\n options: FieldOptions<\"identityId\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): TruncateEventFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: string} : \n {readonly [key in XAlias]: string}\n ), \n TVariables & XDirectiveVariables\n >;\n\n readonly \"~identityId\": TruncateEventFetcher<Omit<T, 'identityId'>, TVariables>;\n\n\n readonly identityDescription: TruncateEventFetcher<T & {readonly \"identityDescription\": string}, TVariables>;\n\n \"identityDescription+\"<\n XAlias extends string = \"identityDescription\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n optionsConfigurer: (\n options: FieldOptions<\"identityDescription\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): TruncateEventFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: string} : \n {readonly [key in XAlias]: string}\n ), \n TVariables & XDirectiveVariables\n >;\n\n readonly \"~identityDescription\": TruncateEventFetcher<Omit<T, 'identityDescription'>, TVariables>;\n\n\n readonly description: TruncateEventFetcher<T & {readonly \"description\": string}, TVariables>;\n\n \"description+\"<\n XAlias extends string = \"description\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n optionsConfigurer: (\n options: FieldOptions<\"description\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): TruncateEventFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: string} : \n {readonly [key in XAlias]: string}\n ), \n TVariables & XDirectiveVariables\n >;\n\n readonly \"~description\": TruncateEventFetcher<Omit<T, 'description'>, TVariables>;\n\n\n readonly createdAt: TruncateEventFetcher<T & {readonly \"createdAt\": string}, TVariables>;\n\n \"createdAt+\"<\n XAlias extends string = \"createdAt\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n optionsConfigurer: (\n options: FieldOptions<\"createdAt\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): TruncateEventFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: string} : \n {readonly [key in XAlias]: string}\n ), \n TVariables & XDirectiveVariables\n >;\n\n readonly \"~createdAt\": TruncateEventFetcher<Omit<T, 'createdAt'>, TVariables>;\n\n\n readonly appliedAt: TruncateEventFetcher<T & {readonly \"appliedAt\": string}, TVariables>;\n\n \"appliedAt+\"<\n XAlias extends string = \"appliedAt\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n optionsConfigurer: (\n options: FieldOptions<\"appliedAt\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): TruncateEventFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: string} : \n {readonly [key in XAlias]: string}\n ), \n TVariables & XDirectiveVariables\n >;\n\n readonly \"~appliedAt\": TruncateEventFetcher<Omit<T, 'appliedAt'>, TVariables>;\n\n\n readonly type: TruncateEventFetcher<T & {readonly \"type\": EventType}, TVariables>;\n\n \"type+\"<\n XAlias extends string = \"type\", \n XDirectives extends { readonly [key: string]: DirectiveArgs } = {}, \n XDirectiveVariables extends object = {}\n >(\n optionsConfigurer: (\n options: FieldOptions<\"type\", {}, {}>\n ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>\n ): TruncateEventFetcher<\n T & (\n XDirectives extends { readonly include: any } | { readonly skip: any } ? \n {readonly [key in XAlias]?: EventType} : \n {readonly [key in XAlias]: EventType}\n ), \n TVariables & XDirectiveVariables\n >;\n\n readonly \"~type\": TruncateEventFetcher<Omit<T, 'type'>, TVariables>;\n\n\n readonly tableName: TruncateEventFetcher<T & {readonly \"tableName\"?: string}, TVariables>;\n\n \"tableName+\"<\n XAlias extends string = \"tableName\", \n XDirectiveVariables extends object = {}\n >(\n optionsConfigurer: (\n options: FieldOptions<\"tableName\", {}, {}>\n ) => FieldOptions<XAlias, {readonly [key: string]: DirectiveArgs}, XDirectiveVariables>\n ): TruncateEventFetcher<\n T & {readonly [key in XAlias]?: string}, \n TVariables & XDirectiveVariables\n >;\n\n readonly \"~tableName\": TruncateEventFetcher<Omit<T, 'tableName'>, TVariables>;\n\n\n readonly primaryKey: TruncateEventFetcher<T & {readonly \"primaryKey\"?: ReadonlyArray<number | string>}, TVariables>;\n\n \"primaryKey+\"<\n XAlias extends string = \"primaryKey\", \n XDirectiveVariables extends object = {}\n >(\n optionsConfigurer: (\n options: FieldOptions<\"primaryKey\", {}, {}>\n ) => FieldOptions<XAlias, {readonly [key: string]: DirectiveArgs}, XDirectiveVariables>\n ): TruncateEventFetcher<\n T & {readonly [key in XAlias]?: ReadonlyArray<number | string>}, \n TVariables & XDirectiveVariables\n >;\n\n readonly \"~primaryKey\": TruncateEventFetcher<Omit<T, 'primaryKey'>, TVariables>;\n}\n\nexport const truncateEvent$: TruncateEventFetcher<{}, {}> = \n createFetcher(\n createFetchableType(\n \"TruncateEvent\", \n \"OBJECT\", \n [event$.fetchableType], \n [\n ]\n ), \n ENUM_INPUT_METADATA, \n undefined\n )\n;\n\nexport const truncateEvent$$ = \n truncateEvent$\n .id\n .transactionId\n .identityId\n .identityDescription\n .description\n .createdAt\n .appliedAt\n .type\n .tableName\n .primaryKey\n;\n"],"names":["createFetcher","createFetchableType","event$","ENUM_INPUT_METADATA"],"mappings":";;;;;AAuPO,MAAM,iBACTA,mBAAAA;AAAAA,EACIC,mBAAAA;AAAAA,IACI;AAAA,IACA;AAAA,IACA,CAACC,aAAAA,OAAO,aAAa;AAAA,IACrB,CAAA;AAAA,EACA;AAAA,EAEJC,kBAAAA;AAAAA,EACA;AACJ;AAGG,MAAM,kBACT,eACK,GACA,cACA,WACA,oBACA,YACA,UACA,UACA,KACA,UACA;;;"}
@@ -0,0 +1,19 @@
1
+ import { ENUM_INPUT_METADATA } from "../EnumInputMetadata.js";
2
+ import { createFetcher, createFetchableType } from "graphql-ts-client-api";
3
+ import { event$ } from "./EventFetcher.js";
4
+ const truncateEvent$ = createFetcher(
5
+ createFetchableType(
6
+ "TruncateEvent",
7
+ "OBJECT",
8
+ [event$.fetchableType],
9
+ []
10
+ ),
11
+ ENUM_INPUT_METADATA,
12
+ void 0
13
+ );
14
+ const truncateEvent$$ = truncateEvent$.id.transactionId.identityId.identityDescription.description.createdAt.appliedAt.type.tableName.primaryKey;
15
+ export {
16
+ truncateEvent$,
17
+ truncateEvent$$
18
+ };
19
+ //# sourceMappingURL=TruncateEventFetcher.js.map