@contember/graphql-client-tenant 1.4.0-rc.1 → 1.4.0-rc.3
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/enums/AddMailTemplateErrorCode.d.ts +1 -1
- package/dist/src/generated/enums/AddMailTemplateErrorCode.d.ts.map +1 -1
- package/dist/src/generated/fetchers/MailTemplateDataFetcher.d.ts +117 -0
- package/dist/src/generated/fetchers/MailTemplateDataFetcher.d.ts.map +1 -0
- package/dist/src/generated/fetchers/MailTemplateDataFetcher.js +35 -0
- package/dist/src/generated/fetchers/MailTemplateDataFetcher.js.map +1 -0
- package/dist/src/generated/fetchers/QueryFetcher.d.ts +14 -0
- package/dist/src/generated/fetchers/QueryFetcher.d.ts.map +1 -1
- package/dist/src/generated/fetchers/QueryFetcher.js +5 -0
- package/dist/src/generated/fetchers/QueryFetcher.js.map +1 -1
- package/dist/src/generated/fetchers/index.d.ts +2 -0
- package/dist/src/generated/fetchers/index.d.ts.map +1 -1
- package/dist/src/generated/fetchers/index.js +4 -1
- package/dist/src/generated/fetchers/index.js.map +1 -1
- package/dist/src/generated/inputs/MailTemplate.d.ts +1 -0
- package/dist/src/generated/inputs/MailTemplate.d.ts.map +1 -1
- package/dist/src/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/generated/enums/AddMailTemplateErrorCode.ts +1 -1
- package/src/generated/fetchers/MailTemplateDataFetcher.ts +218 -0
- package/src/generated/fetchers/QueryFetcher.ts +36 -0
- package/src/generated/fetchers/index.ts +2 -0
- package/src/generated/inputs/MailTemplate.ts +1 -0
|
@@ -0,0 +1,218 @@
|
|
|
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 {MailType} 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 MailTemplateDataFetcher<T extends object, TVariables extends object> extends ObjectFetcher<'MailTemplateData', T, TVariables> {
|
|
16
|
+
|
|
17
|
+
on<XName extends ImplementationType<'MailTemplateData'>, X extends object, XVariables extends object>(
|
|
18
|
+
child: ObjectFetcher<XName, X, XVariables>,
|
|
19
|
+
fragmentName?: string // undefined: inline fragment; otherwise, otherwise, real fragment
|
|
20
|
+
): MailTemplateDataFetcher<
|
|
21
|
+
XName extends 'MailTemplateData' ?
|
|
22
|
+
T & X :
|
|
23
|
+
WithTypeName<T, ImplementationType<'MailTemplateData'>> & (
|
|
24
|
+
WithTypeName<X, ImplementationType<XName>> |
|
|
25
|
+
{__typename: Exclude<ImplementationType<'MailTemplateData'>, ImplementationType<XName>>}
|
|
26
|
+
),
|
|
27
|
+
TVariables & XVariables
|
|
28
|
+
>;
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
directive(name: string, args?: DirectiveArgs): MailTemplateDataFetcher<T, TVariables>;
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
readonly __typename: MailTemplateDataFetcher<T & {__typename: ImplementationType<'MailTemplateData'>}, TVariables>;
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
readonly projectSlug: MailTemplateDataFetcher<T & {readonly "projectSlug"?: string}, TVariables>;
|
|
38
|
+
|
|
39
|
+
"projectSlug+"<
|
|
40
|
+
XAlias extends string = "projectSlug",
|
|
41
|
+
XDirectiveVariables extends object = {}
|
|
42
|
+
>(
|
|
43
|
+
optionsConfigurer: (
|
|
44
|
+
options: FieldOptions<"projectSlug", {}, {}>
|
|
45
|
+
) => FieldOptions<XAlias, {readonly [key: string]: DirectiveArgs}, XDirectiveVariables>
|
|
46
|
+
): MailTemplateDataFetcher<
|
|
47
|
+
T & {readonly [key in XAlias]?: string},
|
|
48
|
+
TVariables & XDirectiveVariables
|
|
49
|
+
>;
|
|
50
|
+
|
|
51
|
+
readonly "~projectSlug": MailTemplateDataFetcher<Omit<T, 'projectSlug'>, TVariables>;
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
readonly type: MailTemplateDataFetcher<T & {readonly "type": MailType}, TVariables>;
|
|
55
|
+
|
|
56
|
+
"type+"<
|
|
57
|
+
XAlias extends string = "type",
|
|
58
|
+
XDirectives extends { readonly [key: string]: DirectiveArgs } = {},
|
|
59
|
+
XDirectiveVariables extends object = {}
|
|
60
|
+
>(
|
|
61
|
+
optionsConfigurer: (
|
|
62
|
+
options: FieldOptions<"type", {}, {}>
|
|
63
|
+
) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>
|
|
64
|
+
): MailTemplateDataFetcher<
|
|
65
|
+
T & (
|
|
66
|
+
XDirectives extends { readonly include: any } | { readonly skip: any } ?
|
|
67
|
+
{readonly [key in XAlias]?: MailType} :
|
|
68
|
+
{readonly [key in XAlias]: MailType}
|
|
69
|
+
),
|
|
70
|
+
TVariables & XDirectiveVariables
|
|
71
|
+
>;
|
|
72
|
+
|
|
73
|
+
readonly "~type": MailTemplateDataFetcher<Omit<T, 'type'>, TVariables>;
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
readonly variant: MailTemplateDataFetcher<T & {readonly "variant"?: string}, TVariables>;
|
|
77
|
+
|
|
78
|
+
"variant+"<
|
|
79
|
+
XAlias extends string = "variant",
|
|
80
|
+
XDirectiveVariables extends object = {}
|
|
81
|
+
>(
|
|
82
|
+
optionsConfigurer: (
|
|
83
|
+
options: FieldOptions<"variant", {}, {}>
|
|
84
|
+
) => FieldOptions<XAlias, {readonly [key: string]: DirectiveArgs}, XDirectiveVariables>
|
|
85
|
+
): MailTemplateDataFetcher<
|
|
86
|
+
T & {readonly [key in XAlias]?: string},
|
|
87
|
+
TVariables & XDirectiveVariables
|
|
88
|
+
>;
|
|
89
|
+
|
|
90
|
+
readonly "~variant": MailTemplateDataFetcher<Omit<T, 'variant'>, TVariables>;
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
readonly subject: MailTemplateDataFetcher<T & {readonly "subject": string}, TVariables>;
|
|
94
|
+
|
|
95
|
+
"subject+"<
|
|
96
|
+
XAlias extends string = "subject",
|
|
97
|
+
XDirectives extends { readonly [key: string]: DirectiveArgs } = {},
|
|
98
|
+
XDirectiveVariables extends object = {}
|
|
99
|
+
>(
|
|
100
|
+
optionsConfigurer: (
|
|
101
|
+
options: FieldOptions<"subject", {}, {}>
|
|
102
|
+
) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>
|
|
103
|
+
): MailTemplateDataFetcher<
|
|
104
|
+
T & (
|
|
105
|
+
XDirectives extends { readonly include: any } | { readonly skip: any } ?
|
|
106
|
+
{readonly [key in XAlias]?: string} :
|
|
107
|
+
{readonly [key in XAlias]: string}
|
|
108
|
+
),
|
|
109
|
+
TVariables & XDirectiveVariables
|
|
110
|
+
>;
|
|
111
|
+
|
|
112
|
+
readonly "~subject": MailTemplateDataFetcher<Omit<T, 'subject'>, TVariables>;
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
readonly content: MailTemplateDataFetcher<T & {readonly "content": string}, TVariables>;
|
|
116
|
+
|
|
117
|
+
"content+"<
|
|
118
|
+
XAlias extends string = "content",
|
|
119
|
+
XDirectives extends { readonly [key: string]: DirectiveArgs } = {},
|
|
120
|
+
XDirectiveVariables extends object = {}
|
|
121
|
+
>(
|
|
122
|
+
optionsConfigurer: (
|
|
123
|
+
options: FieldOptions<"content", {}, {}>
|
|
124
|
+
) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>
|
|
125
|
+
): MailTemplateDataFetcher<
|
|
126
|
+
T & (
|
|
127
|
+
XDirectives extends { readonly include: any } | { readonly skip: any } ?
|
|
128
|
+
{readonly [key in XAlias]?: string} :
|
|
129
|
+
{readonly [key in XAlias]: string}
|
|
130
|
+
),
|
|
131
|
+
TVariables & XDirectiveVariables
|
|
132
|
+
>;
|
|
133
|
+
|
|
134
|
+
readonly "~content": MailTemplateDataFetcher<Omit<T, 'content'>, TVariables>;
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
readonly useLayout: MailTemplateDataFetcher<T & {readonly "useLayout": boolean}, TVariables>;
|
|
138
|
+
|
|
139
|
+
"useLayout+"<
|
|
140
|
+
XAlias extends string = "useLayout",
|
|
141
|
+
XDirectives extends { readonly [key: string]: DirectiveArgs } = {},
|
|
142
|
+
XDirectiveVariables extends object = {}
|
|
143
|
+
>(
|
|
144
|
+
optionsConfigurer: (
|
|
145
|
+
options: FieldOptions<"useLayout", {}, {}>
|
|
146
|
+
) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>
|
|
147
|
+
): MailTemplateDataFetcher<
|
|
148
|
+
T & (
|
|
149
|
+
XDirectives extends { readonly include: any } | { readonly skip: any } ?
|
|
150
|
+
{readonly [key in XAlias]?: boolean} :
|
|
151
|
+
{readonly [key in XAlias]: boolean}
|
|
152
|
+
),
|
|
153
|
+
TVariables & XDirectiveVariables
|
|
154
|
+
>;
|
|
155
|
+
|
|
156
|
+
readonly "~useLayout": MailTemplateDataFetcher<Omit<T, 'useLayout'>, TVariables>;
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
readonly replyTo: MailTemplateDataFetcher<T & {readonly "replyTo"?: string}, TVariables>;
|
|
160
|
+
|
|
161
|
+
"replyTo+"<
|
|
162
|
+
XAlias extends string = "replyTo",
|
|
163
|
+
XDirectiveVariables extends object = {}
|
|
164
|
+
>(
|
|
165
|
+
optionsConfigurer: (
|
|
166
|
+
options: FieldOptions<"replyTo", {}, {}>
|
|
167
|
+
) => FieldOptions<XAlias, {readonly [key: string]: DirectiveArgs}, XDirectiveVariables>
|
|
168
|
+
): MailTemplateDataFetcher<
|
|
169
|
+
T & {readonly [key in XAlias]?: string},
|
|
170
|
+
TVariables & XDirectiveVariables
|
|
171
|
+
>;
|
|
172
|
+
|
|
173
|
+
readonly "~replyTo": MailTemplateDataFetcher<Omit<T, 'replyTo'>, TVariables>;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export const mailTemplateData$: MailTemplateDataFetcher<{}, {}> =
|
|
177
|
+
createFetcher(
|
|
178
|
+
createFetchableType(
|
|
179
|
+
"MailTemplateData",
|
|
180
|
+
"EMBEDDED",
|
|
181
|
+
[],
|
|
182
|
+
[
|
|
183
|
+
{
|
|
184
|
+
category: "SCALAR",
|
|
185
|
+
name: "projectSlug",
|
|
186
|
+
undefinable: true
|
|
187
|
+
},
|
|
188
|
+
"type",
|
|
189
|
+
{
|
|
190
|
+
category: "SCALAR",
|
|
191
|
+
name: "variant",
|
|
192
|
+
undefinable: true
|
|
193
|
+
},
|
|
194
|
+
"subject",
|
|
195
|
+
"content",
|
|
196
|
+
"useLayout",
|
|
197
|
+
{
|
|
198
|
+
category: "SCALAR",
|
|
199
|
+
name: "replyTo",
|
|
200
|
+
undefinable: true
|
|
201
|
+
}
|
|
202
|
+
]
|
|
203
|
+
),
|
|
204
|
+
ENUM_INPUT_METADATA,
|
|
205
|
+
undefined
|
|
206
|
+
)
|
|
207
|
+
;
|
|
208
|
+
|
|
209
|
+
export const mailTemplateData$$ =
|
|
210
|
+
mailTemplateData$
|
|
211
|
+
.projectSlug
|
|
212
|
+
.type
|
|
213
|
+
.variant
|
|
214
|
+
.subject
|
|
215
|
+
.content
|
|
216
|
+
.useLayout
|
|
217
|
+
.replyTo
|
|
218
|
+
;
|
|
@@ -335,6 +335,37 @@ export interface QueryFetcher<T extends object, TVariables extends object> exten
|
|
|
335
335
|
),
|
|
336
336
|
TVariables & XVariables & XDirectiveVariables
|
|
337
337
|
>;
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
mailTemplates<
|
|
341
|
+
X extends object,
|
|
342
|
+
XVariables extends object
|
|
343
|
+
>(
|
|
344
|
+
child: ObjectFetcher<'MailTemplateData', X, XVariables>
|
|
345
|
+
): QueryFetcher<
|
|
346
|
+
T & {readonly "mailTemplates": ReadonlyArray<X>},
|
|
347
|
+
TVariables & XVariables
|
|
348
|
+
>;
|
|
349
|
+
|
|
350
|
+
mailTemplates<
|
|
351
|
+
X extends object,
|
|
352
|
+
XVariables extends object,
|
|
353
|
+
XAlias extends string = "mailTemplates",
|
|
354
|
+
XDirectives extends { readonly [key: string]: DirectiveArgs } = {},
|
|
355
|
+
XDirectiveVariables extends object = {}
|
|
356
|
+
>(
|
|
357
|
+
child: ObjectFetcher<'MailTemplateData', X, XVariables>,
|
|
358
|
+
optionsConfigurer: (
|
|
359
|
+
options: FieldOptions<"mailTemplates", {}, {}>
|
|
360
|
+
) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>
|
|
361
|
+
): QueryFetcher<
|
|
362
|
+
T & (
|
|
363
|
+
XDirectives extends { readonly include: any } | { readonly skip: any } ?
|
|
364
|
+
{readonly [key in XAlias]?: ReadonlyArray<X>} :
|
|
365
|
+
{readonly [key in XAlias]: ReadonlyArray<X>}
|
|
366
|
+
),
|
|
367
|
+
TVariables & XVariables & XDirectiveVariables
|
|
368
|
+
>;
|
|
338
369
|
}
|
|
339
370
|
|
|
340
371
|
export const query$: QueryFetcher<{}, {}> =
|
|
@@ -389,6 +420,11 @@ export const query$: QueryFetcher<{}, {}> =
|
|
|
389
420
|
category: "LIST",
|
|
390
421
|
name: "identityProviders",
|
|
391
422
|
targetTypeName: "IdentityProvider"
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
category: "LIST",
|
|
426
|
+
name: "mailTemplates",
|
|
427
|
+
targetTypeName: "MailTemplateData"
|
|
392
428
|
}
|
|
393
429
|
]
|
|
394
430
|
),
|
|
@@ -158,6 +158,8 @@ export type {DisablePersonResponseFetcher} from './DisablePersonResponseFetcher'
|
|
|
158
158
|
export {disablePersonResponse$, disablePersonResponse$$} from './DisablePersonResponseFetcher';
|
|
159
159
|
export type {DisablePersonErrorFetcher} from './DisablePersonErrorFetcher';
|
|
160
160
|
export {disablePersonError$, disablePersonError$$} from './DisablePersonErrorFetcher';
|
|
161
|
+
export type {MailTemplateDataFetcher} from './MailTemplateDataFetcher';
|
|
162
|
+
export {mailTemplateData$, mailTemplateData$$} from './MailTemplateDataFetcher';
|
|
161
163
|
export type {AddMailTemplateResponseFetcher} from './AddMailTemplateResponseFetcher';
|
|
162
164
|
export {addMailTemplateResponse$, addMailTemplateResponse$$} from './AddMailTemplateResponseFetcher';
|
|
163
165
|
export type {AddMailTemplateErrorFetcher} from './AddMailTemplateErrorFetcher';
|