@contember/graphql-client-tenant 1.4.0-rc.3 → 1.4.0-rc.5

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 (34) hide show
  1. package/dist/src/generated/EnumInputMetadata.d.ts.map +1 -1
  2. package/dist/src/generated/EnumInputMetadata.js +1 -0
  3. package/dist/src/generated/EnumInputMetadata.js.map +1 -1
  4. package/dist/src/generated/enums/ChangeProfileErrorCode.d.ts +2 -0
  5. package/dist/src/generated/enums/ChangeProfileErrorCode.d.ts.map +1 -0
  6. package/dist/src/generated/enums/ChangeProfileErrorCode.js +3 -0
  7. package/dist/src/generated/enums/ChangeProfileErrorCode.js.map +1 -0
  8. package/dist/src/generated/enums/index.d.ts +1 -0
  9. package/dist/src/generated/enums/index.d.ts.map +1 -1
  10. package/dist/src/generated/fetchers/ChangeProfileErrorFetcher.d.ts +50 -0
  11. package/dist/src/generated/fetchers/ChangeProfileErrorFetcher.d.ts.map +1 -0
  12. package/dist/src/generated/fetchers/ChangeProfileErrorFetcher.js +13 -0
  13. package/dist/src/generated/fetchers/ChangeProfileErrorFetcher.js.map +1 -0
  14. package/dist/src/generated/fetchers/ChangeProfileResponseFetcher.d.ts +40 -0
  15. package/dist/src/generated/fetchers/ChangeProfileResponseFetcher.d.ts.map +1 -0
  16. package/dist/src/generated/fetchers/ChangeProfileResponseFetcher.js +17 -0
  17. package/dist/src/generated/fetchers/ChangeProfileResponseFetcher.js.map +1 -0
  18. package/dist/src/generated/fetchers/MutationFetcher.d.ts +21 -0
  19. package/dist/src/generated/fetchers/MutationFetcher.d.ts.map +1 -1
  20. package/dist/src/generated/fetchers/MutationFetcher.js +11 -0
  21. package/dist/src/generated/fetchers/MutationFetcher.js.map +1 -1
  22. package/dist/src/generated/fetchers/index.d.ts +4 -0
  23. package/dist/src/generated/fetchers/index.d.ts.map +1 -1
  24. package/dist/src/generated/fetchers/index.js +10 -4
  25. package/dist/src/generated/fetchers/index.js.map +1 -1
  26. package/dist/src/tsconfig.tsbuildinfo +1 -1
  27. package/package.json +2 -2
  28. package/src/generated/EnumInputMetadata.ts +2 -0
  29. package/src/generated/enums/ChangeProfileErrorCode.ts +1 -0
  30. package/src/generated/enums/index.ts +1 -0
  31. package/src/generated/fetchers/ChangeProfileErrorFetcher.ts +101 -0
  32. package/src/generated/fetchers/ChangeProfileResponseFetcher.ts +108 -0
  33. package/src/generated/fetchers/MutationFetcher.ts +72 -0
  34. package/src/generated/fetchers/index.ts +4 -0
@@ -0,0 +1,101 @@
1
+ import type { FieldOptions, DirectiveArgs } from 'graphql-ts-client-api';
2
+ import { ENUM_INPUT_METADATA } from '../EnumInputMetadata';
3
+ import type { ObjectFetcher } from 'graphql-ts-client-api';
4
+ import { createFetcher, createFetchableType } from 'graphql-ts-client-api';
5
+ import type { WithTypeName, ImplementationType } from '../CommonTypes';
6
+ import type {ChangeProfileErrorCode} from '../enums';
7
+
8
+ /*
9
+ * Any instance of this interface is immutable,
10
+ * all the properties and functions can only be used to create new instances,
11
+ * they cannot modify the current instance.
12
+ *
13
+ * So any instance of this interface is reuseable.
14
+ */
15
+ export interface ChangeProfileErrorFetcher<T extends object, TVariables extends object> extends ObjectFetcher<'ChangeProfileError', T, TVariables> {
16
+
17
+ on<XName extends ImplementationType<'ChangeProfileError'>, X extends object, XVariables extends object>(
18
+ child: ObjectFetcher<XName, X, XVariables>,
19
+ fragmentName?: string // undefined: inline fragment; otherwise, otherwise, real fragment
20
+ ): ChangeProfileErrorFetcher<
21
+ XName extends 'ChangeProfileError' ?
22
+ T & X :
23
+ WithTypeName<T, ImplementationType<'ChangeProfileError'>> & (
24
+ WithTypeName<X, ImplementationType<XName>> |
25
+ {__typename: Exclude<ImplementationType<'ChangeProfileError'>, ImplementationType<XName>>}
26
+ ),
27
+ TVariables & XVariables
28
+ >;
29
+
30
+
31
+ directive(name: string, args?: DirectiveArgs): ChangeProfileErrorFetcher<T, TVariables>;
32
+
33
+
34
+ readonly __typename: ChangeProfileErrorFetcher<T & {__typename: ImplementationType<'ChangeProfileError'>}, TVariables>;
35
+
36
+
37
+ readonly code: ChangeProfileErrorFetcher<T & {readonly "code": ChangeProfileErrorCode}, TVariables>;
38
+
39
+ "code+"<
40
+ XAlias extends string = "code",
41
+ XDirectives extends { readonly [key: string]: DirectiveArgs } = {},
42
+ XDirectiveVariables extends object = {}
43
+ >(
44
+ optionsConfigurer: (
45
+ options: FieldOptions<"code", {}, {}>
46
+ ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>
47
+ ): ChangeProfileErrorFetcher<
48
+ T & (
49
+ XDirectives extends { readonly include: any } | { readonly skip: any } ?
50
+ {readonly [key in XAlias]?: ChangeProfileErrorCode} :
51
+ {readonly [key in XAlias]: ChangeProfileErrorCode}
52
+ ),
53
+ TVariables & XDirectiveVariables
54
+ >;
55
+
56
+ readonly "~code": ChangeProfileErrorFetcher<Omit<T, 'code'>, TVariables>;
57
+
58
+
59
+ readonly developerMessage: ChangeProfileErrorFetcher<T & {readonly "developerMessage": string}, TVariables>;
60
+
61
+ "developerMessage+"<
62
+ XAlias extends string = "developerMessage",
63
+ XDirectives extends { readonly [key: string]: DirectiveArgs } = {},
64
+ XDirectiveVariables extends object = {}
65
+ >(
66
+ optionsConfigurer: (
67
+ options: FieldOptions<"developerMessage", {}, {}>
68
+ ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>
69
+ ): ChangeProfileErrorFetcher<
70
+ T & (
71
+ XDirectives extends { readonly include: any } | { readonly skip: any } ?
72
+ {readonly [key in XAlias]?: string} :
73
+ {readonly [key in XAlias]: string}
74
+ ),
75
+ TVariables & XDirectiveVariables
76
+ >;
77
+
78
+ readonly "~developerMessage": ChangeProfileErrorFetcher<Omit<T, 'developerMessage'>, TVariables>;
79
+ }
80
+
81
+ export const changeProfileError$: ChangeProfileErrorFetcher<{}, {}> =
82
+ createFetcher(
83
+ createFetchableType(
84
+ "ChangeProfileError",
85
+ "EMBEDDED",
86
+ [],
87
+ [
88
+ "code",
89
+ "developerMessage"
90
+ ]
91
+ ),
92
+ ENUM_INPUT_METADATA,
93
+ undefined
94
+ )
95
+ ;
96
+
97
+ export const changeProfileError$$ =
98
+ changeProfileError$
99
+ .code
100
+ .developerMessage
101
+ ;
@@ -0,0 +1,108 @@
1
+ import type { FieldOptions, DirectiveArgs } from 'graphql-ts-client-api';
2
+ import { ENUM_INPUT_METADATA } from '../EnumInputMetadata';
3
+ import type { ObjectFetcher } from 'graphql-ts-client-api';
4
+ import { createFetcher, createFetchableType } from 'graphql-ts-client-api';
5
+ import type { WithTypeName, ImplementationType } from '../CommonTypes';
6
+
7
+ /*
8
+ * Any instance of this interface is immutable,
9
+ * all the properties and functions can only be used to create new instances,
10
+ * they cannot modify the current instance.
11
+ *
12
+ * So any instance of this interface is reuseable.
13
+ */
14
+ export interface ChangeProfileResponseFetcher<T extends object, TVariables extends object> extends ObjectFetcher<'ChangeProfileResponse', T, TVariables> {
15
+
16
+ on<XName extends ImplementationType<'ChangeProfileResponse'>, X extends object, XVariables extends object>(
17
+ child: ObjectFetcher<XName, X, XVariables>,
18
+ fragmentName?: string // undefined: inline fragment; otherwise, otherwise, real fragment
19
+ ): ChangeProfileResponseFetcher<
20
+ XName extends 'ChangeProfileResponse' ?
21
+ T & X :
22
+ WithTypeName<T, ImplementationType<'ChangeProfileResponse'>> & (
23
+ WithTypeName<X, ImplementationType<XName>> |
24
+ {__typename: Exclude<ImplementationType<'ChangeProfileResponse'>, ImplementationType<XName>>}
25
+ ),
26
+ TVariables & XVariables
27
+ >;
28
+
29
+
30
+ directive(name: string, args?: DirectiveArgs): ChangeProfileResponseFetcher<T, TVariables>;
31
+
32
+
33
+ readonly __typename: ChangeProfileResponseFetcher<T & {__typename: ImplementationType<'ChangeProfileResponse'>}, TVariables>;
34
+
35
+
36
+ readonly ok: ChangeProfileResponseFetcher<T & {readonly "ok": boolean}, TVariables>;
37
+
38
+ "ok+"<
39
+ XAlias extends string = "ok",
40
+ XDirectives extends { readonly [key: string]: DirectiveArgs } = {},
41
+ XDirectiveVariables extends object = {}
42
+ >(
43
+ optionsConfigurer: (
44
+ options: FieldOptions<"ok", {}, {}>
45
+ ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>
46
+ ): ChangeProfileResponseFetcher<
47
+ T & (
48
+ XDirectives extends { readonly include: any } | { readonly skip: any } ?
49
+ {readonly [key in XAlias]?: boolean} :
50
+ {readonly [key in XAlias]: boolean}
51
+ ),
52
+ TVariables & XDirectiveVariables
53
+ >;
54
+
55
+ readonly "~ok": ChangeProfileResponseFetcher<Omit<T, 'ok'>, TVariables>;
56
+
57
+
58
+ error<
59
+ X extends object,
60
+ XVariables extends object
61
+ >(
62
+ child: ObjectFetcher<'ChangeProfileError', X, XVariables>
63
+ ): ChangeProfileResponseFetcher<
64
+ T & {readonly "error"?: X},
65
+ TVariables & XVariables
66
+ >;
67
+
68
+ error<
69
+ X extends object,
70
+ XVariables extends object,
71
+ XAlias extends string = "error",
72
+ XDirectiveVariables extends object = {}
73
+ >(
74
+ child: ObjectFetcher<'ChangeProfileError', X, XVariables>,
75
+ optionsConfigurer: (
76
+ options: FieldOptions<"error", {}, {}>
77
+ ) => FieldOptions<XAlias, {readonly [key: string]: DirectiveArgs}, XDirectiveVariables>
78
+ ): ChangeProfileResponseFetcher<
79
+ T & {readonly [key in XAlias]?: X},
80
+ TVariables & XVariables & XDirectiveVariables
81
+ >;
82
+ }
83
+
84
+ export const changeProfileResponse$: ChangeProfileResponseFetcher<{}, {}> =
85
+ createFetcher(
86
+ createFetchableType(
87
+ "ChangeProfileResponse",
88
+ "EMBEDDED",
89
+ [],
90
+ [
91
+ "ok",
92
+ {
93
+ category: "SCALAR",
94
+ name: "error",
95
+ targetTypeName: "ChangeProfileError",
96
+ undefinable: true
97
+ }
98
+ ]
99
+ ),
100
+ ENUM_INPUT_METADATA,
101
+ undefined
102
+ )
103
+ ;
104
+
105
+ export const changeProfileResponse$$ =
106
+ changeProfileResponse$
107
+ .ok
108
+ ;
@@ -246,6 +246,61 @@ export interface MutationFetcher<T extends object, TVariables extends object> ex
246
246
  >;
247
247
 
248
248
 
249
+ changeProfile<
250
+ X extends object,
251
+ XVariables extends object
252
+ >(
253
+ child: ObjectFetcher<'ChangeProfileResponse', X, XVariables>
254
+ ): MutationFetcher<
255
+ T & {readonly "changeProfile"?: X},
256
+ TVariables & XVariables & MutationArgs["changeProfile"]
257
+ >;
258
+
259
+ changeProfile<
260
+ XArgs extends AcceptableVariables<MutationArgs['changeProfile']>,
261
+ X extends object,
262
+ XVariables extends object
263
+ >(
264
+ args: XArgs,
265
+ child: ObjectFetcher<'ChangeProfileResponse', X, XVariables>
266
+ ): MutationFetcher<
267
+ T & {readonly "changeProfile"?: X},
268
+ TVariables & XVariables & UnresolvedVariables<XArgs, MutationArgs['changeProfile']>
269
+ >;
270
+
271
+ changeProfile<
272
+ X extends object,
273
+ XVariables extends object,
274
+ XAlias extends string = "changeProfile",
275
+ XDirectiveVariables extends object = {}
276
+ >(
277
+ child: ObjectFetcher<'ChangeProfileResponse', X, XVariables>,
278
+ optionsConfigurer: (
279
+ options: FieldOptions<"changeProfile", {}, {}>
280
+ ) => FieldOptions<XAlias, {readonly [key: string]: DirectiveArgs}, XDirectiveVariables>
281
+ ): MutationFetcher<
282
+ T & {readonly [key in XAlias]?: X},
283
+ TVariables & XVariables & MutationArgs["changeProfile"] & XDirectiveVariables
284
+ >;
285
+
286
+ changeProfile<
287
+ XArgs extends AcceptableVariables<MutationArgs['changeProfile']>,
288
+ X extends object,
289
+ XVariables extends object,
290
+ XAlias extends string = "changeProfile",
291
+ XDirectiveVariables extends object = {}
292
+ >(
293
+ args: XArgs,
294
+ child: ObjectFetcher<'ChangeProfileResponse', X, XVariables>,
295
+ optionsConfigurer: (
296
+ options: FieldOptions<"changeProfile", {}, {}>
297
+ ) => FieldOptions<XAlias, {readonly [key: string]: DirectiveArgs}, XDirectiveVariables>
298
+ ): MutationFetcher<
299
+ T & {readonly [key in XAlias]?: X},
300
+ TVariables & XVariables & UnresolvedVariables<XArgs, MutationArgs['changeProfile']> & XDirectiveVariables
301
+ >;
302
+
303
+
249
304
  changeMyProfile<
250
305
  X extends object,
251
306
  XVariables extends object
@@ -2051,6 +2106,17 @@ export const mutation$: MutationFetcher<{}, {}> =
2051
2106
  targetTypeName: "SignOutResponse",
2052
2107
  undefinable: true
2053
2108
  },
2109
+ {
2110
+ category: "SCALAR",
2111
+ name: "changeProfile",
2112
+ argGraphQLTypeMap: {
2113
+ personId: 'String!',
2114
+ email: 'String',
2115
+ name: 'String'
2116
+ },
2117
+ targetTypeName: "ChangeProfileResponse",
2118
+ undefinable: true
2119
+ },
2054
2120
  {
2055
2121
  category: "SCALAR",
2056
2122
  name: "changeMyProfile",
@@ -2400,6 +2466,12 @@ export interface MutationArgs {
2400
2466
  readonly all?: boolean
2401
2467
  },
2402
2468
 
2469
+ readonly changeProfile: {
2470
+ readonly personId: string,
2471
+ readonly email?: string,
2472
+ readonly name?: string
2473
+ },
2474
+
2403
2475
  readonly changeMyProfile: {
2404
2476
  readonly email?: string,
2405
2477
  readonly name?: string
@@ -26,6 +26,10 @@ export type {SignOutResponseFetcher} from './SignOutResponseFetcher';
26
26
  export {signOutResponse$, signOutResponse$$} from './SignOutResponseFetcher';
27
27
  export type {SignOutErrorFetcher} from './SignOutErrorFetcher';
28
28
  export {signOutError$, signOutError$$} from './SignOutErrorFetcher';
29
+ export type {ChangeProfileResponseFetcher} from './ChangeProfileResponseFetcher';
30
+ export {changeProfileResponse$, changeProfileResponse$$} from './ChangeProfileResponseFetcher';
31
+ export type {ChangeProfileErrorFetcher} from './ChangeProfileErrorFetcher';
32
+ export {changeProfileError$, changeProfileError$$} from './ChangeProfileErrorFetcher';
29
33
  export type {ChangeMyProfileResponseFetcher} from './ChangeMyProfileResponseFetcher';
30
34
  export {changeMyProfileResponse$, changeMyProfileResponse$$} from './ChangeMyProfileResponseFetcher';
31
35
  export type {ChangeMyProfileErrorFetcher} from './ChangeMyProfileErrorFetcher';