@contember/graphql-client-tenant 1.3.6 → 1.4.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.
- package/dist/src/generated/EnumInputMetadata.d.ts.map +1 -1
- package/dist/src/generated/EnumInputMetadata.js +1 -0
- package/dist/src/generated/EnumInputMetadata.js.map +1 -1
- package/dist/src/generated/enums/ChangeMyProfileErrorCode.d.ts +2 -0
- package/dist/src/generated/enums/ChangeMyProfileErrorCode.d.ts.map +1 -0
- package/dist/src/generated/enums/ChangeMyProfileErrorCode.js +3 -0
- package/dist/src/generated/enums/ChangeMyProfileErrorCode.js.map +1 -0
- package/dist/src/generated/enums/index.d.ts +1 -0
- package/dist/src/generated/enums/index.d.ts.map +1 -1
- package/dist/src/generated/fetchers/ChangeMyProfileErrorFetcher.d.ts +50 -0
- package/dist/src/generated/fetchers/ChangeMyProfileErrorFetcher.d.ts.map +1 -0
- package/dist/src/generated/fetchers/ChangeMyProfileErrorFetcher.js +13 -0
- package/dist/src/generated/fetchers/ChangeMyProfileErrorFetcher.js.map +1 -0
- package/dist/src/generated/fetchers/ChangeMyProfileResponseFetcher.d.ts +40 -0
- package/dist/src/generated/fetchers/ChangeMyProfileResponseFetcher.d.ts.map +1 -0
- package/dist/src/generated/fetchers/ChangeMyProfileResponseFetcher.js +17 -0
- package/dist/src/generated/fetchers/ChangeMyProfileResponseFetcher.js.map +1 -0
- package/dist/src/generated/fetchers/IDPOptionsOutputFetcher.d.ts +17 -0
- package/dist/src/generated/fetchers/IDPOptionsOutputFetcher.d.ts.map +1 -1
- package/dist/src/generated/fetchers/IDPOptionsOutputFetcher.js +4 -2
- package/dist/src/generated/fetchers/IDPOptionsOutputFetcher.js.map +1 -1
- package/dist/src/generated/fetchers/InitSignInIDPResultFetcher.d.ts +11 -0
- package/dist/src/generated/fetchers/InitSignInIDPResultFetcher.d.ts.map +1 -1
- package/dist/src/generated/fetchers/InitSignInIDPResultFetcher.js +8 -2
- package/dist/src/generated/fetchers/InitSignInIDPResultFetcher.js.map +1 -1
- package/dist/src/generated/fetchers/MutationFetcher.d.ts +21 -0
- package/dist/src/generated/fetchers/MutationFetcher.d.ts.map +1 -1
- package/dist/src/generated/fetchers/MutationFetcher.js +12 -1
- package/dist/src/generated/fetchers/MutationFetcher.js.map +1 -1
- package/dist/src/generated/fetchers/index.d.ts +4 -0
- package/dist/src/generated/fetchers/index.d.ts.map +1 -1
- package/dist/src/generated/fetchers/index.js +10 -4
- package/dist/src/generated/fetchers/index.js.map +1 -1
- package/dist/src/generated/inputs/IDPOptions.d.ts +1 -0
- package/dist/src/generated/inputs/IDPOptions.d.ts.map +1 -1
- package/dist/src/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/generated/EnumInputMetadata.ts +2 -0
- package/src/generated/enums/ChangeMyProfileErrorCode.ts +1 -0
- package/src/generated/enums/index.ts +1 -0
- package/src/generated/fetchers/ChangeMyProfileErrorFetcher.ts +101 -0
- package/src/generated/fetchers/ChangeMyProfileResponseFetcher.ts +108 -0
- package/src/generated/fetchers/IDPOptionsOutputFetcher.ts +25 -1
- package/src/generated/fetchers/InitSignInIDPResultFetcher.ts +24 -1
- package/src/generated/fetchers/MutationFetcher.ts +74 -2
- package/src/generated/fetchers/index.ts +4 -0
- package/src/generated/inputs/IDPOptions.ts +1 -0
|
@@ -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 ChangeMyProfileResponseFetcher<T extends object, TVariables extends object> extends ObjectFetcher<'ChangeMyProfileResponse', T, TVariables> {
|
|
15
|
+
|
|
16
|
+
on<XName extends ImplementationType<'ChangeMyProfileResponse'>, X extends object, XVariables extends object>(
|
|
17
|
+
child: ObjectFetcher<XName, X, XVariables>,
|
|
18
|
+
fragmentName?: string // undefined: inline fragment; otherwise, otherwise, real fragment
|
|
19
|
+
): ChangeMyProfileResponseFetcher<
|
|
20
|
+
XName extends 'ChangeMyProfileResponse' ?
|
|
21
|
+
T & X :
|
|
22
|
+
WithTypeName<T, ImplementationType<'ChangeMyProfileResponse'>> & (
|
|
23
|
+
WithTypeName<X, ImplementationType<XName>> |
|
|
24
|
+
{__typename: Exclude<ImplementationType<'ChangeMyProfileResponse'>, ImplementationType<XName>>}
|
|
25
|
+
),
|
|
26
|
+
TVariables & XVariables
|
|
27
|
+
>;
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
directive(name: string, args?: DirectiveArgs): ChangeMyProfileResponseFetcher<T, TVariables>;
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
readonly __typename: ChangeMyProfileResponseFetcher<T & {__typename: ImplementationType<'ChangeMyProfileResponse'>}, TVariables>;
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
readonly ok: ChangeMyProfileResponseFetcher<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
|
+
): ChangeMyProfileResponseFetcher<
|
|
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": ChangeMyProfileResponseFetcher<Omit<T, 'ok'>, TVariables>;
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
error<
|
|
59
|
+
X extends object,
|
|
60
|
+
XVariables extends object
|
|
61
|
+
>(
|
|
62
|
+
child: ObjectFetcher<'ChangeMyProfileError', X, XVariables>
|
|
63
|
+
): ChangeMyProfileResponseFetcher<
|
|
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<'ChangeMyProfileError', X, XVariables>,
|
|
75
|
+
optionsConfigurer: (
|
|
76
|
+
options: FieldOptions<"error", {}, {}>
|
|
77
|
+
) => FieldOptions<XAlias, {readonly [key: string]: DirectiveArgs}, XDirectiveVariables>
|
|
78
|
+
): ChangeMyProfileResponseFetcher<
|
|
79
|
+
T & {readonly [key in XAlias]?: X},
|
|
80
|
+
TVariables & XVariables & XDirectiveVariables
|
|
81
|
+
>;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export const changeMyProfileResponse$: ChangeMyProfileResponseFetcher<{}, {}> =
|
|
85
|
+
createFetcher(
|
|
86
|
+
createFetchableType(
|
|
87
|
+
"ChangeMyProfileResponse",
|
|
88
|
+
"EMBEDDED",
|
|
89
|
+
[],
|
|
90
|
+
[
|
|
91
|
+
"ok",
|
|
92
|
+
{
|
|
93
|
+
category: "SCALAR",
|
|
94
|
+
name: "error",
|
|
95
|
+
targetTypeName: "ChangeMyProfileError",
|
|
96
|
+
undefinable: true
|
|
97
|
+
}
|
|
98
|
+
]
|
|
99
|
+
),
|
|
100
|
+
ENUM_INPUT_METADATA,
|
|
101
|
+
undefined
|
|
102
|
+
)
|
|
103
|
+
;
|
|
104
|
+
|
|
105
|
+
export const changeMyProfileResponse$$ =
|
|
106
|
+
changeMyProfileResponse$
|
|
107
|
+
.ok
|
|
108
|
+
;
|
|
@@ -75,6 +75,28 @@ export interface IDPOptionsOutputFetcher<T extends object, TVariables extends ob
|
|
|
75
75
|
>;
|
|
76
76
|
|
|
77
77
|
readonly "~exclusive": IDPOptionsOutputFetcher<Omit<T, 'exclusive'>, TVariables>;
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
readonly initReturnsConfig: IDPOptionsOutputFetcher<T & {readonly "initReturnsConfig": boolean}, TVariables>;
|
|
81
|
+
|
|
82
|
+
"initReturnsConfig+"<
|
|
83
|
+
XAlias extends string = "initReturnsConfig",
|
|
84
|
+
XDirectives extends { readonly [key: string]: DirectiveArgs } = {},
|
|
85
|
+
XDirectiveVariables extends object = {}
|
|
86
|
+
>(
|
|
87
|
+
optionsConfigurer: (
|
|
88
|
+
options: FieldOptions<"initReturnsConfig", {}, {}>
|
|
89
|
+
) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>
|
|
90
|
+
): IDPOptionsOutputFetcher<
|
|
91
|
+
T & (
|
|
92
|
+
XDirectives extends { readonly include: any } | { readonly skip: any } ?
|
|
93
|
+
{readonly [key in XAlias]?: boolean} :
|
|
94
|
+
{readonly [key in XAlias]: boolean}
|
|
95
|
+
),
|
|
96
|
+
TVariables & XDirectiveVariables
|
|
97
|
+
>;
|
|
98
|
+
|
|
99
|
+
readonly "~initReturnsConfig": IDPOptionsOutputFetcher<Omit<T, 'initReturnsConfig'>, TVariables>;
|
|
78
100
|
}
|
|
79
101
|
|
|
80
102
|
export const iDPOptionsOutput$: IDPOptionsOutputFetcher<{}, {}> =
|
|
@@ -85,7 +107,8 @@ export const iDPOptionsOutput$: IDPOptionsOutputFetcher<{}, {}> =
|
|
|
85
107
|
[],
|
|
86
108
|
[
|
|
87
109
|
"autoSignUp",
|
|
88
|
-
"exclusive"
|
|
110
|
+
"exclusive",
|
|
111
|
+
"initReturnsConfig"
|
|
89
112
|
]
|
|
90
113
|
),
|
|
91
114
|
ENUM_INPUT_METADATA,
|
|
@@ -97,4 +120,5 @@ export const iDPOptionsOutput$$ =
|
|
|
97
120
|
iDPOptionsOutput$
|
|
98
121
|
.autoSignUp
|
|
99
122
|
.exclusive
|
|
123
|
+
.initReturnsConfig
|
|
100
124
|
;
|
|
@@ -75,6 +75,23 @@ export interface InitSignInIDPResultFetcher<T extends object, TVariables extends
|
|
|
75
75
|
>;
|
|
76
76
|
|
|
77
77
|
readonly "~sessionData": InitSignInIDPResultFetcher<Omit<T, 'sessionData'>, TVariables>;
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
readonly idpConfiguration: InitSignInIDPResultFetcher<T & {readonly "idpConfiguration"?: unknown}, TVariables>;
|
|
81
|
+
|
|
82
|
+
"idpConfiguration+"<
|
|
83
|
+
XAlias extends string = "idpConfiguration",
|
|
84
|
+
XDirectiveVariables extends object = {}
|
|
85
|
+
>(
|
|
86
|
+
optionsConfigurer: (
|
|
87
|
+
options: FieldOptions<"idpConfiguration", {}, {}>
|
|
88
|
+
) => FieldOptions<XAlias, {readonly [key: string]: DirectiveArgs}, XDirectiveVariables>
|
|
89
|
+
): InitSignInIDPResultFetcher<
|
|
90
|
+
T & {readonly [key in XAlias]?: unknown},
|
|
91
|
+
TVariables & XDirectiveVariables
|
|
92
|
+
>;
|
|
93
|
+
|
|
94
|
+
readonly "~idpConfiguration": InitSignInIDPResultFetcher<Omit<T, 'idpConfiguration'>, TVariables>;
|
|
78
95
|
}
|
|
79
96
|
|
|
80
97
|
export const initSignInIDPResult$: InitSignInIDPResultFetcher<{}, {}> =
|
|
@@ -85,7 +102,12 @@ export const initSignInIDPResult$: InitSignInIDPResultFetcher<{}, {}> =
|
|
|
85
102
|
[],
|
|
86
103
|
[
|
|
87
104
|
"authUrl",
|
|
88
|
-
"sessionData"
|
|
105
|
+
"sessionData",
|
|
106
|
+
{
|
|
107
|
+
category: "SCALAR",
|
|
108
|
+
name: "idpConfiguration",
|
|
109
|
+
undefinable: true
|
|
110
|
+
}
|
|
89
111
|
]
|
|
90
112
|
),
|
|
91
113
|
ENUM_INPUT_METADATA,
|
|
@@ -97,4 +119,5 @@ export const initSignInIDPResult$$ =
|
|
|
97
119
|
initSignInIDPResult$
|
|
98
120
|
.authUrl
|
|
99
121
|
.sessionData
|
|
122
|
+
.idpConfiguration
|
|
100
123
|
;
|
|
@@ -246,6 +246,61 @@ export interface MutationFetcher<T extends object, TVariables extends object> ex
|
|
|
246
246
|
>;
|
|
247
247
|
|
|
248
248
|
|
|
249
|
+
changeMyProfile<
|
|
250
|
+
X extends object,
|
|
251
|
+
XVariables extends object
|
|
252
|
+
>(
|
|
253
|
+
child: ObjectFetcher<'ChangeMyProfileResponse', X, XVariables>
|
|
254
|
+
): MutationFetcher<
|
|
255
|
+
T & {readonly "changeMyProfile"?: X},
|
|
256
|
+
TVariables & XVariables & MutationArgs["changeMyProfile"]
|
|
257
|
+
>;
|
|
258
|
+
|
|
259
|
+
changeMyProfile<
|
|
260
|
+
XArgs extends AcceptableVariables<MutationArgs['changeMyProfile']>,
|
|
261
|
+
X extends object,
|
|
262
|
+
XVariables extends object
|
|
263
|
+
>(
|
|
264
|
+
args: XArgs,
|
|
265
|
+
child: ObjectFetcher<'ChangeMyProfileResponse', X, XVariables>
|
|
266
|
+
): MutationFetcher<
|
|
267
|
+
T & {readonly "changeMyProfile"?: X},
|
|
268
|
+
TVariables & XVariables & UnresolvedVariables<XArgs, MutationArgs['changeMyProfile']>
|
|
269
|
+
>;
|
|
270
|
+
|
|
271
|
+
changeMyProfile<
|
|
272
|
+
X extends object,
|
|
273
|
+
XVariables extends object,
|
|
274
|
+
XAlias extends string = "changeMyProfile",
|
|
275
|
+
XDirectiveVariables extends object = {}
|
|
276
|
+
>(
|
|
277
|
+
child: ObjectFetcher<'ChangeMyProfileResponse', X, XVariables>,
|
|
278
|
+
optionsConfigurer: (
|
|
279
|
+
options: FieldOptions<"changeMyProfile", {}, {}>
|
|
280
|
+
) => FieldOptions<XAlias, {readonly [key: string]: DirectiveArgs}, XDirectiveVariables>
|
|
281
|
+
): MutationFetcher<
|
|
282
|
+
T & {readonly [key in XAlias]?: X},
|
|
283
|
+
TVariables & XVariables & MutationArgs["changeMyProfile"] & XDirectiveVariables
|
|
284
|
+
>;
|
|
285
|
+
|
|
286
|
+
changeMyProfile<
|
|
287
|
+
XArgs extends AcceptableVariables<MutationArgs['changeMyProfile']>,
|
|
288
|
+
X extends object,
|
|
289
|
+
XVariables extends object,
|
|
290
|
+
XAlias extends string = "changeMyProfile",
|
|
291
|
+
XDirectiveVariables extends object = {}
|
|
292
|
+
>(
|
|
293
|
+
args: XArgs,
|
|
294
|
+
child: ObjectFetcher<'ChangeMyProfileResponse', X, XVariables>,
|
|
295
|
+
optionsConfigurer: (
|
|
296
|
+
options: FieldOptions<"changeMyProfile", {}, {}>
|
|
297
|
+
) => FieldOptions<XAlias, {readonly [key: string]: DirectiveArgs}, XDirectiveVariables>
|
|
298
|
+
): MutationFetcher<
|
|
299
|
+
T & {readonly [key in XAlias]?: X},
|
|
300
|
+
TVariables & XVariables & UnresolvedVariables<XArgs, MutationArgs['changeMyProfile']> & XDirectiveVariables
|
|
301
|
+
>;
|
|
302
|
+
|
|
303
|
+
|
|
249
304
|
changePassword<
|
|
250
305
|
X extends object,
|
|
251
306
|
XVariables extends object
|
|
@@ -1996,6 +2051,16 @@ export const mutation$: MutationFetcher<{}, {}> =
|
|
|
1996
2051
|
targetTypeName: "SignOutResponse",
|
|
1997
2052
|
undefinable: true
|
|
1998
2053
|
},
|
|
2054
|
+
{
|
|
2055
|
+
category: "SCALAR",
|
|
2056
|
+
name: "changeMyProfile",
|
|
2057
|
+
argGraphQLTypeMap: {
|
|
2058
|
+
email: 'String',
|
|
2059
|
+
name: 'String'
|
|
2060
|
+
},
|
|
2061
|
+
targetTypeName: "ChangeMyProfileResponse",
|
|
2062
|
+
undefinable: true
|
|
2063
|
+
},
|
|
1999
2064
|
{
|
|
2000
2065
|
category: "SCALAR",
|
|
2001
2066
|
name: "changePassword",
|
|
@@ -2060,7 +2125,8 @@ export const mutation$: MutationFetcher<{}, {}> =
|
|
|
2060
2125
|
identityProvider: 'String!',
|
|
2061
2126
|
type: 'String',
|
|
2062
2127
|
configuration: 'Json',
|
|
2063
|
-
options: 'IDPOptions'
|
|
2128
|
+
options: 'IDPOptions',
|
|
2129
|
+
mergeConfiguration: 'Boolean'
|
|
2064
2130
|
},
|
|
2065
2131
|
targetTypeName: "UpdateIDPResponse",
|
|
2066
2132
|
undefinable: true
|
|
@@ -2334,6 +2400,11 @@ export interface MutationArgs {
|
|
|
2334
2400
|
readonly all?: boolean
|
|
2335
2401
|
},
|
|
2336
2402
|
|
|
2403
|
+
readonly changeMyProfile: {
|
|
2404
|
+
readonly email?: string,
|
|
2405
|
+
readonly name?: string
|
|
2406
|
+
},
|
|
2407
|
+
|
|
2337
2408
|
readonly changePassword: {
|
|
2338
2409
|
readonly personId: string,
|
|
2339
2410
|
readonly password: string
|
|
@@ -2370,7 +2441,8 @@ export interface MutationArgs {
|
|
|
2370
2441
|
readonly identityProvider: string,
|
|
2371
2442
|
readonly type?: string,
|
|
2372
2443
|
readonly configuration?: unknown,
|
|
2373
|
-
readonly options?: IDPOptions
|
|
2444
|
+
readonly options?: IDPOptions,
|
|
2445
|
+
readonly mergeConfiguration?: boolean
|
|
2374
2446
|
},
|
|
2375
2447
|
|
|
2376
2448
|
readonly disableIDP: {
|
|
@@ -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 {ChangeMyProfileResponseFetcher} from './ChangeMyProfileResponseFetcher';
|
|
30
|
+
export {changeMyProfileResponse$, changeMyProfileResponse$$} from './ChangeMyProfileResponseFetcher';
|
|
31
|
+
export type {ChangeMyProfileErrorFetcher} from './ChangeMyProfileErrorFetcher';
|
|
32
|
+
export {changeMyProfileError$, changeMyProfileError$$} from './ChangeMyProfileErrorFetcher';
|
|
29
33
|
export type {ChangePasswordResponseFetcher} from './ChangePasswordResponseFetcher';
|
|
30
34
|
export {changePasswordResponse$, changePasswordResponse$$} from './ChangePasswordResponseFetcher';
|
|
31
35
|
export type {ChangePasswordErrorFetcher} from './ChangePasswordErrorFetcher';
|