@constructive-io/sdk 0.9.2 → 0.10.1
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/README.md +0 -8
- package/admin/orm/input-types.d.ts +19 -95
- package/auth/orm/index.d.ts +6 -6
- package/auth/orm/index.js +6 -6
- package/auth/orm/input-types.d.ts +276 -311
- package/auth/orm/input-types.js +9 -1
- package/auth/orm/models/index.d.ts +3 -3
- package/auth/orm/models/index.js +7 -7
- package/esm/admin/orm/input-types.d.ts +19 -95
- package/esm/auth/orm/index.d.ts +6 -6
- package/esm/auth/orm/index.js +6 -6
- package/esm/auth/orm/input-types.d.ts +276 -311
- package/esm/auth/orm/input-types.js +9 -1
- package/esm/auth/orm/models/index.d.ts +3 -3
- package/esm/auth/orm/models/index.js +3 -3
- package/esm/objects/orm/input-types.d.ts +3 -27
- package/esm/public/orm/index.d.ts +81 -48
- package/esm/public/orm/index.js +26 -18
- package/esm/public/orm/input-types.d.ts +2318 -2557
- package/esm/public/orm/input-types.js +26 -1
- package/esm/public/orm/models/blueprint.d.ts +56 -0
- package/esm/public/orm/models/blueprint.js +94 -0
- package/esm/public/orm/models/blueprintTemplate.d.ts +56 -0
- package/esm/public/orm/models/blueprintTemplate.js +94 -0
- package/esm/public/orm/models/databaseTransfer.d.ts +56 -0
- package/esm/public/orm/models/databaseTransfer.js +94 -0
- package/esm/public/orm/models/embeddingChunk.d.ts +56 -0
- package/esm/public/orm/models/embeddingChunk.js +94 -0
- package/esm/public/orm/models/enum.d.ts +56 -0
- package/esm/public/orm/models/{uuidModule.js → enum.js} +23 -23
- package/esm/public/orm/models/index.d.ts +13 -9
- package/esm/public/orm/models/index.js +13 -9
- package/esm/public/orm/mutation/index.d.ts +98 -50
- package/esm/public/orm/mutation/index.js +126 -66
- package/index.js +8 -8
- package/objects/orm/input-types.d.ts +3 -27
- package/package.json +3 -3
- package/public/orm/index.d.ts +81 -48
- package/public/orm/index.js +26 -18
- package/public/orm/input-types.d.ts +2318 -2557
- package/public/orm/input-types.js +26 -1
- package/public/orm/models/blueprint.d.ts +56 -0
- package/public/orm/models/blueprint.js +98 -0
- package/public/orm/models/blueprintTemplate.d.ts +56 -0
- package/public/orm/models/blueprintTemplate.js +98 -0
- package/public/orm/models/databaseTransfer.d.ts +56 -0
- package/public/orm/models/databaseTransfer.js +98 -0
- package/public/orm/models/embeddingChunk.d.ts +56 -0
- package/public/orm/models/embeddingChunk.js +98 -0
- package/public/orm/models/enum.d.ts +56 -0
- package/public/orm/models/{uuidModule.js → enum.js} +25 -25
- package/public/orm/models/index.d.ts +13 -9
- package/public/orm/models/index.js +29 -21
- package/public/orm/mutation/index.d.ts +98 -50
- package/public/orm/mutation/index.js +126 -66
- package/esm/public/orm/models/uuidModule.d.ts +0 -56
- package/public/orm/models/uuidModule.d.ts +0 -56
|
@@ -6,15 +6,21 @@
|
|
|
6
6
|
import { OrmClient } from '../client';
|
|
7
7
|
import { QueryBuilder } from '../query-builder';
|
|
8
8
|
import type { InferSelectResult, StrictSelect } from '../select-types';
|
|
9
|
-
import type { SignOutInput,
|
|
9
|
+
import type { SendAccountDeletionEmailInput, SignOutInput, AcceptDatabaseTransferInput, CancelDatabaseTransferInput, RejectDatabaseTransferInput, SubmitInviteCodeInput, SubmitOrgInviteCodeInput, CheckPasswordInput, ConfirmDeleteAccountInput, SetPasswordInput, VerifyEmailInput, FreezeObjectsInput, InitEmptyRepoInput, ConstructBlueprintInput, ResetPasswordInput, RemoveNodeAtPathInput, SetDataAtPathInput, SetPropsAndCommitInput, CopyTemplateToBlueprintInput, ProvisionDatabaseWithUserInput, BootstrapUserInput, SetFieldOrderInput, InsertNodeAtPathInput, UpdateNodeAtPathInput, SetAndCommitInput, ApplyRlsInput, SignInOneTimeTokenInput, CreateUserDatabaseInput, ExtendTokenExpiresInput, SignInInput, SignUpInput, OneTimeTokenInput, SendVerificationEmailInput, ForgotPasswordInput, VerifyPasswordInput, VerifyTotpInput, SendAccountDeletionEmailPayload, SignOutPayload, AcceptDatabaseTransferPayload, CancelDatabaseTransferPayload, RejectDatabaseTransferPayload, SubmitInviteCodePayload, SubmitOrgInviteCodePayload, CheckPasswordPayload, ConfirmDeleteAccountPayload, SetPasswordPayload, VerifyEmailPayload, FreezeObjectsPayload, InitEmptyRepoPayload, ConstructBlueprintPayload, ResetPasswordPayload, RemoveNodeAtPathPayload, SetDataAtPathPayload, SetPropsAndCommitPayload, CopyTemplateToBlueprintPayload, ProvisionDatabaseWithUserPayload, BootstrapUserPayload, SetFieldOrderPayload, InsertNodeAtPathPayload, UpdateNodeAtPathPayload, SetAndCommitPayload, ApplyRlsPayload, SignInOneTimeTokenPayload, CreateUserDatabasePayload, ExtendTokenExpiresPayload, SignInPayload, SignUpPayload, OneTimeTokenPayload, SendVerificationEmailPayload, ForgotPasswordPayload, VerifyPasswordPayload, VerifyTotpPayload, SendAccountDeletionEmailPayloadSelect, SignOutPayloadSelect, AcceptDatabaseTransferPayloadSelect, CancelDatabaseTransferPayloadSelect, RejectDatabaseTransferPayloadSelect, SubmitInviteCodePayloadSelect, SubmitOrgInviteCodePayloadSelect, CheckPasswordPayloadSelect, ConfirmDeleteAccountPayloadSelect, SetPasswordPayloadSelect, VerifyEmailPayloadSelect, FreezeObjectsPayloadSelect, InitEmptyRepoPayloadSelect, ConstructBlueprintPayloadSelect, ResetPasswordPayloadSelect, RemoveNodeAtPathPayloadSelect, SetDataAtPathPayloadSelect, SetPropsAndCommitPayloadSelect, CopyTemplateToBlueprintPayloadSelect, ProvisionDatabaseWithUserPayloadSelect, BootstrapUserPayloadSelect, SetFieldOrderPayloadSelect, InsertNodeAtPathPayloadSelect, UpdateNodeAtPathPayloadSelect, SetAndCommitPayloadSelect, ApplyRlsPayloadSelect, SignInOneTimeTokenPayloadSelect, CreateUserDatabasePayloadSelect, ExtendTokenExpiresPayloadSelect, SignInPayloadSelect, SignUpPayloadSelect, OneTimeTokenPayloadSelect, SendVerificationEmailPayloadSelect, ForgotPasswordPayloadSelect, VerifyPasswordPayloadSelect, VerifyTotpPayloadSelect } from '../input-types';
|
|
10
|
+
export interface SendAccountDeletionEmailVariables {
|
|
11
|
+
input: SendAccountDeletionEmailInput;
|
|
12
|
+
}
|
|
10
13
|
export interface SignOutVariables {
|
|
11
14
|
input: SignOutInput;
|
|
12
15
|
}
|
|
13
|
-
export interface
|
|
14
|
-
input:
|
|
16
|
+
export interface AcceptDatabaseTransferVariables {
|
|
17
|
+
input: AcceptDatabaseTransferInput;
|
|
15
18
|
}
|
|
16
|
-
export interface
|
|
17
|
-
input:
|
|
19
|
+
export interface CancelDatabaseTransferVariables {
|
|
20
|
+
input: CancelDatabaseTransferInput;
|
|
21
|
+
}
|
|
22
|
+
export interface RejectDatabaseTransferVariables {
|
|
23
|
+
input: RejectDatabaseTransferInput;
|
|
18
24
|
}
|
|
19
25
|
export interface SubmitInviteCodeVariables {
|
|
20
26
|
input: SubmitInviteCodeInput;
|
|
@@ -22,11 +28,8 @@ export interface SubmitInviteCodeVariables {
|
|
|
22
28
|
export interface SubmitOrgInviteCodeVariables {
|
|
23
29
|
input: SubmitOrgInviteCodeInput;
|
|
24
30
|
}
|
|
25
|
-
export interface
|
|
26
|
-
input:
|
|
27
|
-
}
|
|
28
|
-
export interface InitEmptyRepoVariables {
|
|
29
|
-
input: InitEmptyRepoInput;
|
|
31
|
+
export interface CheckPasswordVariables {
|
|
32
|
+
input: CheckPasswordInput;
|
|
30
33
|
}
|
|
31
34
|
export interface ConfirmDeleteAccountVariables {
|
|
32
35
|
input: ConfirmDeleteAccountInput;
|
|
@@ -37,17 +40,24 @@ export interface SetPasswordVariables {
|
|
|
37
40
|
export interface VerifyEmailVariables {
|
|
38
41
|
input: VerifyEmailInput;
|
|
39
42
|
}
|
|
40
|
-
export interface
|
|
41
|
-
input:
|
|
43
|
+
export interface FreezeObjectsVariables {
|
|
44
|
+
input: FreezeObjectsInput;
|
|
45
|
+
}
|
|
46
|
+
export interface InitEmptyRepoVariables {
|
|
47
|
+
input: InitEmptyRepoInput;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Variables for constructBlueprint
|
|
51
|
+
* Executes a draft blueprint definition. Four phases: (1) create tables with nodes[], fields, and policies[], (2) create relations between tables, (3) create indexes on table fields (supports BTREE, HNSW, GIN, GIST, BM25, etc.), (4) create full-text search configurations with weighted multi-field TSVector support. nodes[] entries can be strings or {$type, data} objects. Relations use $type for relation_type with junction config in data. Indexes reference table_ref + column name(s) and are resolved to field_ids. Full-text searches reference table_ref + tsvector field + source fields with weights/langs. Builds a ref_map of local ref names to created table UUIDs. Updates blueprint status to constructed (or failed with error_details). Returns the ref_map.
|
|
52
|
+
*/
|
|
53
|
+
export interface ConstructBlueprintVariables {
|
|
54
|
+
input: ConstructBlueprintInput;
|
|
42
55
|
}
|
|
43
56
|
export interface ResetPasswordVariables {
|
|
44
57
|
input: ResetPasswordInput;
|
|
45
58
|
}
|
|
46
|
-
export interface
|
|
47
|
-
input:
|
|
48
|
-
}
|
|
49
|
-
export interface SetFieldOrderVariables {
|
|
50
|
-
input: SetFieldOrderInput;
|
|
59
|
+
export interface RemoveNodeAtPathVariables {
|
|
60
|
+
input: RemoveNodeAtPathInput;
|
|
51
61
|
}
|
|
52
62
|
export interface SetDataAtPathVariables {
|
|
53
63
|
input: SetDataAtPathInput;
|
|
@@ -55,9 +65,22 @@ export interface SetDataAtPathVariables {
|
|
|
55
65
|
export interface SetPropsAndCommitVariables {
|
|
56
66
|
input: SetPropsAndCommitInput;
|
|
57
67
|
}
|
|
68
|
+
/**
|
|
69
|
+
* Variables for copyTemplateToBlueprint
|
|
70
|
+
* Creates a new blueprint by copying a template definition. Checks visibility: owners can always copy their own templates, others require public visibility. Increments the template copy_count. Returns the new blueprint ID.
|
|
71
|
+
*/
|
|
72
|
+
export interface CopyTemplateToBlueprintVariables {
|
|
73
|
+
input: CopyTemplateToBlueprintInput;
|
|
74
|
+
}
|
|
58
75
|
export interface ProvisionDatabaseWithUserVariables {
|
|
59
76
|
input: ProvisionDatabaseWithUserInput;
|
|
60
77
|
}
|
|
78
|
+
export interface BootstrapUserVariables {
|
|
79
|
+
input: BootstrapUserInput;
|
|
80
|
+
}
|
|
81
|
+
export interface SetFieldOrderVariables {
|
|
82
|
+
input: SetFieldOrderInput;
|
|
83
|
+
}
|
|
61
84
|
export interface InsertNodeAtPathVariables {
|
|
62
85
|
input: InsertNodeAtPathInput;
|
|
63
86
|
}
|
|
@@ -107,12 +130,12 @@ export interface SignUpVariables {
|
|
|
107
130
|
export interface OneTimeTokenVariables {
|
|
108
131
|
input: OneTimeTokenInput;
|
|
109
132
|
}
|
|
110
|
-
export interface ForgotPasswordVariables {
|
|
111
|
-
input: ForgotPasswordInput;
|
|
112
|
-
}
|
|
113
133
|
export interface SendVerificationEmailVariables {
|
|
114
134
|
input: SendVerificationEmailInput;
|
|
115
135
|
}
|
|
136
|
+
export interface ForgotPasswordVariables {
|
|
137
|
+
input: ForgotPasswordInput;
|
|
138
|
+
}
|
|
116
139
|
export interface VerifyPasswordVariables {
|
|
117
140
|
input: VerifyPasswordInput;
|
|
118
141
|
}
|
|
@@ -120,20 +143,30 @@ export interface VerifyTotpVariables {
|
|
|
120
143
|
input: VerifyTotpInput;
|
|
121
144
|
}
|
|
122
145
|
export declare function createMutationOperations(client: OrmClient): {
|
|
146
|
+
sendAccountDeletionEmail: <S extends SendAccountDeletionEmailPayloadSelect>(args: SendAccountDeletionEmailVariables, options: {
|
|
147
|
+
select: S;
|
|
148
|
+
} & StrictSelect<S, SendAccountDeletionEmailPayloadSelect>) => QueryBuilder<{
|
|
149
|
+
sendAccountDeletionEmail: InferSelectResult<SendAccountDeletionEmailPayload, S> | null;
|
|
150
|
+
}>;
|
|
123
151
|
signOut: <S extends SignOutPayloadSelect>(args: SignOutVariables, options: {
|
|
124
152
|
select: S;
|
|
125
153
|
} & StrictSelect<S, SignOutPayloadSelect>) => QueryBuilder<{
|
|
126
154
|
signOut: InferSelectResult<SignOutPayload, S> | null;
|
|
127
155
|
}>;
|
|
128
|
-
|
|
156
|
+
acceptDatabaseTransfer: <S extends AcceptDatabaseTransferPayloadSelect>(args: AcceptDatabaseTransferVariables, options: {
|
|
129
157
|
select: S;
|
|
130
|
-
} & StrictSelect<S,
|
|
131
|
-
|
|
158
|
+
} & StrictSelect<S, AcceptDatabaseTransferPayloadSelect>) => QueryBuilder<{
|
|
159
|
+
acceptDatabaseTransfer: InferSelectResult<AcceptDatabaseTransferPayload, S> | null;
|
|
132
160
|
}>;
|
|
133
|
-
|
|
161
|
+
cancelDatabaseTransfer: <S extends CancelDatabaseTransferPayloadSelect>(args: CancelDatabaseTransferVariables, options: {
|
|
134
162
|
select: S;
|
|
135
|
-
} & StrictSelect<S,
|
|
136
|
-
|
|
163
|
+
} & StrictSelect<S, CancelDatabaseTransferPayloadSelect>) => QueryBuilder<{
|
|
164
|
+
cancelDatabaseTransfer: InferSelectResult<CancelDatabaseTransferPayload, S> | null;
|
|
165
|
+
}>;
|
|
166
|
+
rejectDatabaseTransfer: <S extends RejectDatabaseTransferPayloadSelect>(args: RejectDatabaseTransferVariables, options: {
|
|
167
|
+
select: S;
|
|
168
|
+
} & StrictSelect<S, RejectDatabaseTransferPayloadSelect>) => QueryBuilder<{
|
|
169
|
+
rejectDatabaseTransfer: InferSelectResult<RejectDatabaseTransferPayload, S> | null;
|
|
137
170
|
}>;
|
|
138
171
|
submitInviteCode: <S extends SubmitInviteCodePayloadSelect>(args: SubmitInviteCodeVariables, options: {
|
|
139
172
|
select: S;
|
|
@@ -145,15 +178,10 @@ export declare function createMutationOperations(client: OrmClient): {
|
|
|
145
178
|
} & StrictSelect<S, SubmitOrgInviteCodePayloadSelect>) => QueryBuilder<{
|
|
146
179
|
submitOrgInviteCode: InferSelectResult<SubmitOrgInviteCodePayload, S> | null;
|
|
147
180
|
}>;
|
|
148
|
-
|
|
149
|
-
select: S;
|
|
150
|
-
} & StrictSelect<S, FreezeObjectsPayloadSelect>) => QueryBuilder<{
|
|
151
|
-
freezeObjects: InferSelectResult<FreezeObjectsPayload, S> | null;
|
|
152
|
-
}>;
|
|
153
|
-
initEmptyRepo: <S extends InitEmptyRepoPayloadSelect>(args: InitEmptyRepoVariables, options: {
|
|
181
|
+
checkPassword: <S extends CheckPasswordPayloadSelect>(args: CheckPasswordVariables, options: {
|
|
154
182
|
select: S;
|
|
155
|
-
} & StrictSelect<S,
|
|
156
|
-
|
|
183
|
+
} & StrictSelect<S, CheckPasswordPayloadSelect>) => QueryBuilder<{
|
|
184
|
+
checkPassword: InferSelectResult<CheckPasswordPayload, S> | null;
|
|
157
185
|
}>;
|
|
158
186
|
confirmDeleteAccount: <S extends ConfirmDeleteAccountPayloadSelect>(args: ConfirmDeleteAccountVariables, options: {
|
|
159
187
|
select: S;
|
|
@@ -170,25 +198,30 @@ export declare function createMutationOperations(client: OrmClient): {
|
|
|
170
198
|
} & StrictSelect<S, VerifyEmailPayloadSelect>) => QueryBuilder<{
|
|
171
199
|
verifyEmail: InferSelectResult<VerifyEmailPayload, S> | null;
|
|
172
200
|
}>;
|
|
173
|
-
|
|
201
|
+
freezeObjects: <S extends FreezeObjectsPayloadSelect>(args: FreezeObjectsVariables, options: {
|
|
174
202
|
select: S;
|
|
175
|
-
} & StrictSelect<S,
|
|
176
|
-
|
|
203
|
+
} & StrictSelect<S, FreezeObjectsPayloadSelect>) => QueryBuilder<{
|
|
204
|
+
freezeObjects: InferSelectResult<FreezeObjectsPayload, S> | null;
|
|
205
|
+
}>;
|
|
206
|
+
initEmptyRepo: <S extends InitEmptyRepoPayloadSelect>(args: InitEmptyRepoVariables, options: {
|
|
207
|
+
select: S;
|
|
208
|
+
} & StrictSelect<S, InitEmptyRepoPayloadSelect>) => QueryBuilder<{
|
|
209
|
+
initEmptyRepo: InferSelectResult<InitEmptyRepoPayload, S> | null;
|
|
210
|
+
}>;
|
|
211
|
+
constructBlueprint: <S extends ConstructBlueprintPayloadSelect>(args: ConstructBlueprintVariables, options: {
|
|
212
|
+
select: S;
|
|
213
|
+
} & StrictSelect<S, ConstructBlueprintPayloadSelect>) => QueryBuilder<{
|
|
214
|
+
constructBlueprint: InferSelectResult<ConstructBlueprintPayload, S> | null;
|
|
177
215
|
}>;
|
|
178
216
|
resetPassword: <S extends ResetPasswordPayloadSelect>(args: ResetPasswordVariables, options: {
|
|
179
217
|
select: S;
|
|
180
218
|
} & StrictSelect<S, ResetPasswordPayloadSelect>) => QueryBuilder<{
|
|
181
219
|
resetPassword: InferSelectResult<ResetPasswordPayload, S> | null;
|
|
182
220
|
}>;
|
|
183
|
-
|
|
184
|
-
select: S;
|
|
185
|
-
} & StrictSelect<S, BootstrapUserPayloadSelect>) => QueryBuilder<{
|
|
186
|
-
bootstrapUser: InferSelectResult<BootstrapUserPayload, S> | null;
|
|
187
|
-
}>;
|
|
188
|
-
setFieldOrder: <S extends SetFieldOrderPayloadSelect>(args: SetFieldOrderVariables, options: {
|
|
221
|
+
removeNodeAtPath: <S extends RemoveNodeAtPathPayloadSelect>(args: RemoveNodeAtPathVariables, options: {
|
|
189
222
|
select: S;
|
|
190
|
-
} & StrictSelect<S,
|
|
191
|
-
|
|
223
|
+
} & StrictSelect<S, RemoveNodeAtPathPayloadSelect>) => QueryBuilder<{
|
|
224
|
+
removeNodeAtPath: InferSelectResult<RemoveNodeAtPathPayload, S> | null;
|
|
192
225
|
}>;
|
|
193
226
|
setDataAtPath: <S extends SetDataAtPathPayloadSelect>(args: SetDataAtPathVariables, options: {
|
|
194
227
|
select: S;
|
|
@@ -200,11 +233,26 @@ export declare function createMutationOperations(client: OrmClient): {
|
|
|
200
233
|
} & StrictSelect<S, SetPropsAndCommitPayloadSelect>) => QueryBuilder<{
|
|
201
234
|
setPropsAndCommit: InferSelectResult<SetPropsAndCommitPayload, S> | null;
|
|
202
235
|
}>;
|
|
236
|
+
copyTemplateToBlueprint: <S extends CopyTemplateToBlueprintPayloadSelect>(args: CopyTemplateToBlueprintVariables, options: {
|
|
237
|
+
select: S;
|
|
238
|
+
} & StrictSelect<S, CopyTemplateToBlueprintPayloadSelect>) => QueryBuilder<{
|
|
239
|
+
copyTemplateToBlueprint: InferSelectResult<CopyTemplateToBlueprintPayload, S> | null;
|
|
240
|
+
}>;
|
|
203
241
|
provisionDatabaseWithUser: <S extends ProvisionDatabaseWithUserPayloadSelect>(args: ProvisionDatabaseWithUserVariables, options: {
|
|
204
242
|
select: S;
|
|
205
243
|
} & StrictSelect<S, ProvisionDatabaseWithUserPayloadSelect>) => QueryBuilder<{
|
|
206
244
|
provisionDatabaseWithUser: InferSelectResult<ProvisionDatabaseWithUserPayload, S> | null;
|
|
207
245
|
}>;
|
|
246
|
+
bootstrapUser: <S extends BootstrapUserPayloadSelect>(args: BootstrapUserVariables, options: {
|
|
247
|
+
select: S;
|
|
248
|
+
} & StrictSelect<S, BootstrapUserPayloadSelect>) => QueryBuilder<{
|
|
249
|
+
bootstrapUser: InferSelectResult<BootstrapUserPayload, S> | null;
|
|
250
|
+
}>;
|
|
251
|
+
setFieldOrder: <S extends SetFieldOrderPayloadSelect>(args: SetFieldOrderVariables, options: {
|
|
252
|
+
select: S;
|
|
253
|
+
} & StrictSelect<S, SetFieldOrderPayloadSelect>) => QueryBuilder<{
|
|
254
|
+
setFieldOrder: InferSelectResult<SetFieldOrderPayload, S> | null;
|
|
255
|
+
}>;
|
|
208
256
|
insertNodeAtPath: <S extends InsertNodeAtPathPayloadSelect>(args: InsertNodeAtPathVariables, options: {
|
|
209
257
|
select: S;
|
|
210
258
|
} & StrictSelect<S, InsertNodeAtPathPayloadSelect>) => QueryBuilder<{
|
|
@@ -255,16 +303,16 @@ export declare function createMutationOperations(client: OrmClient): {
|
|
|
255
303
|
} & StrictSelect<S, OneTimeTokenPayloadSelect>) => QueryBuilder<{
|
|
256
304
|
oneTimeToken: InferSelectResult<OneTimeTokenPayload, S> | null;
|
|
257
305
|
}>;
|
|
258
|
-
forgotPassword: <S extends ForgotPasswordPayloadSelect>(args: ForgotPasswordVariables, options: {
|
|
259
|
-
select: S;
|
|
260
|
-
} & StrictSelect<S, ForgotPasswordPayloadSelect>) => QueryBuilder<{
|
|
261
|
-
forgotPassword: InferSelectResult<ForgotPasswordPayload, S> | null;
|
|
262
|
-
}>;
|
|
263
306
|
sendVerificationEmail: <S extends SendVerificationEmailPayloadSelect>(args: SendVerificationEmailVariables, options: {
|
|
264
307
|
select: S;
|
|
265
308
|
} & StrictSelect<S, SendVerificationEmailPayloadSelect>) => QueryBuilder<{
|
|
266
309
|
sendVerificationEmail: InferSelectResult<SendVerificationEmailPayload, S> | null;
|
|
267
310
|
}>;
|
|
311
|
+
forgotPassword: <S extends ForgotPasswordPayloadSelect>(args: ForgotPasswordVariables, options: {
|
|
312
|
+
select: S;
|
|
313
|
+
} & StrictSelect<S, ForgotPasswordPayloadSelect>) => QueryBuilder<{
|
|
314
|
+
forgotPassword: InferSelectResult<ForgotPasswordPayload, S> | null;
|
|
315
|
+
}>;
|
|
268
316
|
verifyPassword: <S extends VerifyPasswordPayloadSelect>(args: VerifyPasswordVariables, options: {
|
|
269
317
|
select: S;
|
|
270
318
|
} & StrictSelect<S, VerifyPasswordPayloadSelect>) => QueryBuilder<{
|
|
@@ -5,6 +5,18 @@ const query_builder_1 = require("../query-builder");
|
|
|
5
5
|
const input_types_1 = require("../input-types");
|
|
6
6
|
function createMutationOperations(client) {
|
|
7
7
|
return {
|
|
8
|
+
sendAccountDeletionEmail: (args, options) => new query_builder_1.QueryBuilder({
|
|
9
|
+
client,
|
|
10
|
+
operation: 'mutation',
|
|
11
|
+
operationName: 'SendAccountDeletionEmail',
|
|
12
|
+
fieldName: 'sendAccountDeletionEmail',
|
|
13
|
+
...(0, query_builder_1.buildCustomDocument)('mutation', 'SendAccountDeletionEmail', 'sendAccountDeletionEmail', options.select, args, [
|
|
14
|
+
{
|
|
15
|
+
name: 'input',
|
|
16
|
+
type: 'SendAccountDeletionEmailInput!',
|
|
17
|
+
},
|
|
18
|
+
], input_types_1.connectionFieldsMap, 'SendAccountDeletionEmailPayload'),
|
|
19
|
+
}),
|
|
8
20
|
signOut: (args, options) => new query_builder_1.QueryBuilder({
|
|
9
21
|
client,
|
|
10
22
|
operation: 'mutation',
|
|
@@ -17,29 +29,41 @@ function createMutationOperations(client) {
|
|
|
17
29
|
},
|
|
18
30
|
], input_types_1.connectionFieldsMap, 'SignOutPayload'),
|
|
19
31
|
}),
|
|
20
|
-
|
|
32
|
+
acceptDatabaseTransfer: (args, options) => new query_builder_1.QueryBuilder({
|
|
21
33
|
client,
|
|
22
34
|
operation: 'mutation',
|
|
23
|
-
operationName: '
|
|
24
|
-
fieldName: '
|
|
25
|
-
...(0, query_builder_1.buildCustomDocument)('mutation', '
|
|
35
|
+
operationName: 'AcceptDatabaseTransfer',
|
|
36
|
+
fieldName: 'acceptDatabaseTransfer',
|
|
37
|
+
...(0, query_builder_1.buildCustomDocument)('mutation', 'AcceptDatabaseTransfer', 'acceptDatabaseTransfer', options.select, args, [
|
|
26
38
|
{
|
|
27
39
|
name: 'input',
|
|
28
|
-
type: '
|
|
40
|
+
type: 'AcceptDatabaseTransferInput!',
|
|
29
41
|
},
|
|
30
|
-
], input_types_1.connectionFieldsMap, '
|
|
42
|
+
], input_types_1.connectionFieldsMap, 'AcceptDatabaseTransferPayload'),
|
|
31
43
|
}),
|
|
32
|
-
|
|
44
|
+
cancelDatabaseTransfer: (args, options) => new query_builder_1.QueryBuilder({
|
|
33
45
|
client,
|
|
34
46
|
operation: 'mutation',
|
|
35
|
-
operationName: '
|
|
36
|
-
fieldName: '
|
|
37
|
-
...(0, query_builder_1.buildCustomDocument)('mutation', '
|
|
47
|
+
operationName: 'CancelDatabaseTransfer',
|
|
48
|
+
fieldName: 'cancelDatabaseTransfer',
|
|
49
|
+
...(0, query_builder_1.buildCustomDocument)('mutation', 'CancelDatabaseTransfer', 'cancelDatabaseTransfer', options.select, args, [
|
|
38
50
|
{
|
|
39
51
|
name: 'input',
|
|
40
|
-
type: '
|
|
52
|
+
type: 'CancelDatabaseTransferInput!',
|
|
41
53
|
},
|
|
42
|
-
], input_types_1.connectionFieldsMap, '
|
|
54
|
+
], input_types_1.connectionFieldsMap, 'CancelDatabaseTransferPayload'),
|
|
55
|
+
}),
|
|
56
|
+
rejectDatabaseTransfer: (args, options) => new query_builder_1.QueryBuilder({
|
|
57
|
+
client,
|
|
58
|
+
operation: 'mutation',
|
|
59
|
+
operationName: 'RejectDatabaseTransfer',
|
|
60
|
+
fieldName: 'rejectDatabaseTransfer',
|
|
61
|
+
...(0, query_builder_1.buildCustomDocument)('mutation', 'RejectDatabaseTransfer', 'rejectDatabaseTransfer', options.select, args, [
|
|
62
|
+
{
|
|
63
|
+
name: 'input',
|
|
64
|
+
type: 'RejectDatabaseTransferInput!',
|
|
65
|
+
},
|
|
66
|
+
], input_types_1.connectionFieldsMap, 'RejectDatabaseTransferPayload'),
|
|
43
67
|
}),
|
|
44
68
|
submitInviteCode: (args, options) => new query_builder_1.QueryBuilder({
|
|
45
69
|
client,
|
|
@@ -65,29 +89,17 @@ function createMutationOperations(client) {
|
|
|
65
89
|
},
|
|
66
90
|
], input_types_1.connectionFieldsMap, 'SubmitOrgInviteCodePayload'),
|
|
67
91
|
}),
|
|
68
|
-
|
|
69
|
-
client,
|
|
70
|
-
operation: 'mutation',
|
|
71
|
-
operationName: 'FreezeObjects',
|
|
72
|
-
fieldName: 'freezeObjects',
|
|
73
|
-
...(0, query_builder_1.buildCustomDocument)('mutation', 'FreezeObjects', 'freezeObjects', options.select, args, [
|
|
74
|
-
{
|
|
75
|
-
name: 'input',
|
|
76
|
-
type: 'FreezeObjectsInput!',
|
|
77
|
-
},
|
|
78
|
-
], input_types_1.connectionFieldsMap, 'FreezeObjectsPayload'),
|
|
79
|
-
}),
|
|
80
|
-
initEmptyRepo: (args, options) => new query_builder_1.QueryBuilder({
|
|
92
|
+
checkPassword: (args, options) => new query_builder_1.QueryBuilder({
|
|
81
93
|
client,
|
|
82
94
|
operation: 'mutation',
|
|
83
|
-
operationName: '
|
|
84
|
-
fieldName: '
|
|
85
|
-
...(0, query_builder_1.buildCustomDocument)('mutation', '
|
|
95
|
+
operationName: 'CheckPassword',
|
|
96
|
+
fieldName: 'checkPassword',
|
|
97
|
+
...(0, query_builder_1.buildCustomDocument)('mutation', 'CheckPassword', 'checkPassword', options.select, args, [
|
|
86
98
|
{
|
|
87
99
|
name: 'input',
|
|
88
|
-
type: '
|
|
100
|
+
type: 'CheckPasswordInput!',
|
|
89
101
|
},
|
|
90
|
-
], input_types_1.connectionFieldsMap, '
|
|
102
|
+
], input_types_1.connectionFieldsMap, 'CheckPasswordPayload'),
|
|
91
103
|
}),
|
|
92
104
|
confirmDeleteAccount: (args, options) => new query_builder_1.QueryBuilder({
|
|
93
105
|
client,
|
|
@@ -125,53 +137,65 @@ function createMutationOperations(client) {
|
|
|
125
137
|
},
|
|
126
138
|
], input_types_1.connectionFieldsMap, 'VerifyEmailPayload'),
|
|
127
139
|
}),
|
|
128
|
-
|
|
140
|
+
freezeObjects: (args, options) => new query_builder_1.QueryBuilder({
|
|
129
141
|
client,
|
|
130
142
|
operation: 'mutation',
|
|
131
|
-
operationName: '
|
|
132
|
-
fieldName: '
|
|
133
|
-
...(0, query_builder_1.buildCustomDocument)('mutation', '
|
|
143
|
+
operationName: 'FreezeObjects',
|
|
144
|
+
fieldName: 'freezeObjects',
|
|
145
|
+
...(0, query_builder_1.buildCustomDocument)('mutation', 'FreezeObjects', 'freezeObjects', options.select, args, [
|
|
134
146
|
{
|
|
135
147
|
name: 'input',
|
|
136
|
-
type: '
|
|
148
|
+
type: 'FreezeObjectsInput!',
|
|
137
149
|
},
|
|
138
|
-
], input_types_1.connectionFieldsMap, '
|
|
150
|
+
], input_types_1.connectionFieldsMap, 'FreezeObjectsPayload'),
|
|
139
151
|
}),
|
|
140
|
-
|
|
152
|
+
initEmptyRepo: (args, options) => new query_builder_1.QueryBuilder({
|
|
141
153
|
client,
|
|
142
154
|
operation: 'mutation',
|
|
143
|
-
operationName: '
|
|
144
|
-
fieldName: '
|
|
145
|
-
...(0, query_builder_1.buildCustomDocument)('mutation', '
|
|
155
|
+
operationName: 'InitEmptyRepo',
|
|
156
|
+
fieldName: 'initEmptyRepo',
|
|
157
|
+
...(0, query_builder_1.buildCustomDocument)('mutation', 'InitEmptyRepo', 'initEmptyRepo', options.select, args, [
|
|
146
158
|
{
|
|
147
159
|
name: 'input',
|
|
148
|
-
type: '
|
|
160
|
+
type: 'InitEmptyRepoInput!',
|
|
149
161
|
},
|
|
150
|
-
], input_types_1.connectionFieldsMap, '
|
|
162
|
+
], input_types_1.connectionFieldsMap, 'InitEmptyRepoPayload'),
|
|
151
163
|
}),
|
|
152
|
-
|
|
164
|
+
constructBlueprint: (args, options) => new query_builder_1.QueryBuilder({
|
|
153
165
|
client,
|
|
154
166
|
operation: 'mutation',
|
|
155
|
-
operationName: '
|
|
156
|
-
fieldName: '
|
|
157
|
-
...(0, query_builder_1.buildCustomDocument)('mutation', '
|
|
167
|
+
operationName: 'ConstructBlueprint',
|
|
168
|
+
fieldName: 'constructBlueprint',
|
|
169
|
+
...(0, query_builder_1.buildCustomDocument)('mutation', 'ConstructBlueprint', 'constructBlueprint', options.select, args, [
|
|
158
170
|
{
|
|
159
171
|
name: 'input',
|
|
160
|
-
type: '
|
|
172
|
+
type: 'ConstructBlueprintInput!',
|
|
161
173
|
},
|
|
162
|
-
], input_types_1.connectionFieldsMap, '
|
|
174
|
+
], input_types_1.connectionFieldsMap, 'ConstructBlueprintPayload'),
|
|
163
175
|
}),
|
|
164
|
-
|
|
176
|
+
resetPassword: (args, options) => new query_builder_1.QueryBuilder({
|
|
165
177
|
client,
|
|
166
178
|
operation: 'mutation',
|
|
167
|
-
operationName: '
|
|
168
|
-
fieldName: '
|
|
169
|
-
...(0, query_builder_1.buildCustomDocument)('mutation', '
|
|
179
|
+
operationName: 'ResetPassword',
|
|
180
|
+
fieldName: 'resetPassword',
|
|
181
|
+
...(0, query_builder_1.buildCustomDocument)('mutation', 'ResetPassword', 'resetPassword', options.select, args, [
|
|
170
182
|
{
|
|
171
183
|
name: 'input',
|
|
172
|
-
type: '
|
|
184
|
+
type: 'ResetPasswordInput!',
|
|
173
185
|
},
|
|
174
|
-
], input_types_1.connectionFieldsMap, '
|
|
186
|
+
], input_types_1.connectionFieldsMap, 'ResetPasswordPayload'),
|
|
187
|
+
}),
|
|
188
|
+
removeNodeAtPath: (args, options) => new query_builder_1.QueryBuilder({
|
|
189
|
+
client,
|
|
190
|
+
operation: 'mutation',
|
|
191
|
+
operationName: 'RemoveNodeAtPath',
|
|
192
|
+
fieldName: 'removeNodeAtPath',
|
|
193
|
+
...(0, query_builder_1.buildCustomDocument)('mutation', 'RemoveNodeAtPath', 'removeNodeAtPath', options.select, args, [
|
|
194
|
+
{
|
|
195
|
+
name: 'input',
|
|
196
|
+
type: 'RemoveNodeAtPathInput!',
|
|
197
|
+
},
|
|
198
|
+
], input_types_1.connectionFieldsMap, 'RemoveNodeAtPathPayload'),
|
|
175
199
|
}),
|
|
176
200
|
setDataAtPath: (args, options) => new query_builder_1.QueryBuilder({
|
|
177
201
|
client,
|
|
@@ -197,6 +221,18 @@ function createMutationOperations(client) {
|
|
|
197
221
|
},
|
|
198
222
|
], input_types_1.connectionFieldsMap, 'SetPropsAndCommitPayload'),
|
|
199
223
|
}),
|
|
224
|
+
copyTemplateToBlueprint: (args, options) => new query_builder_1.QueryBuilder({
|
|
225
|
+
client,
|
|
226
|
+
operation: 'mutation',
|
|
227
|
+
operationName: 'CopyTemplateToBlueprint',
|
|
228
|
+
fieldName: 'copyTemplateToBlueprint',
|
|
229
|
+
...(0, query_builder_1.buildCustomDocument)('mutation', 'CopyTemplateToBlueprint', 'copyTemplateToBlueprint', options.select, args, [
|
|
230
|
+
{
|
|
231
|
+
name: 'input',
|
|
232
|
+
type: 'CopyTemplateToBlueprintInput!',
|
|
233
|
+
},
|
|
234
|
+
], input_types_1.connectionFieldsMap, 'CopyTemplateToBlueprintPayload'),
|
|
235
|
+
}),
|
|
200
236
|
provisionDatabaseWithUser: (args, options) => new query_builder_1.QueryBuilder({
|
|
201
237
|
client,
|
|
202
238
|
operation: 'mutation',
|
|
@@ -209,6 +245,30 @@ function createMutationOperations(client) {
|
|
|
209
245
|
},
|
|
210
246
|
], input_types_1.connectionFieldsMap, 'ProvisionDatabaseWithUserPayload'),
|
|
211
247
|
}),
|
|
248
|
+
bootstrapUser: (args, options) => new query_builder_1.QueryBuilder({
|
|
249
|
+
client,
|
|
250
|
+
operation: 'mutation',
|
|
251
|
+
operationName: 'BootstrapUser',
|
|
252
|
+
fieldName: 'bootstrapUser',
|
|
253
|
+
...(0, query_builder_1.buildCustomDocument)('mutation', 'BootstrapUser', 'bootstrapUser', options.select, args, [
|
|
254
|
+
{
|
|
255
|
+
name: 'input',
|
|
256
|
+
type: 'BootstrapUserInput!',
|
|
257
|
+
},
|
|
258
|
+
], input_types_1.connectionFieldsMap, 'BootstrapUserPayload'),
|
|
259
|
+
}),
|
|
260
|
+
setFieldOrder: (args, options) => new query_builder_1.QueryBuilder({
|
|
261
|
+
client,
|
|
262
|
+
operation: 'mutation',
|
|
263
|
+
operationName: 'SetFieldOrder',
|
|
264
|
+
fieldName: 'setFieldOrder',
|
|
265
|
+
...(0, query_builder_1.buildCustomDocument)('mutation', 'SetFieldOrder', 'setFieldOrder', options.select, args, [
|
|
266
|
+
{
|
|
267
|
+
name: 'input',
|
|
268
|
+
type: 'SetFieldOrderInput!',
|
|
269
|
+
},
|
|
270
|
+
], input_types_1.connectionFieldsMap, 'SetFieldOrderPayload'),
|
|
271
|
+
}),
|
|
212
272
|
insertNodeAtPath: (args, options) => new query_builder_1.QueryBuilder({
|
|
213
273
|
client,
|
|
214
274
|
operation: 'mutation',
|
|
@@ -329,18 +389,6 @@ function createMutationOperations(client) {
|
|
|
329
389
|
},
|
|
330
390
|
], input_types_1.connectionFieldsMap, 'OneTimeTokenPayload'),
|
|
331
391
|
}),
|
|
332
|
-
forgotPassword: (args, options) => new query_builder_1.QueryBuilder({
|
|
333
|
-
client,
|
|
334
|
-
operation: 'mutation',
|
|
335
|
-
operationName: 'ForgotPassword',
|
|
336
|
-
fieldName: 'forgotPassword',
|
|
337
|
-
...(0, query_builder_1.buildCustomDocument)('mutation', 'ForgotPassword', 'forgotPassword', options.select, args, [
|
|
338
|
-
{
|
|
339
|
-
name: 'input',
|
|
340
|
-
type: 'ForgotPasswordInput!',
|
|
341
|
-
},
|
|
342
|
-
], input_types_1.connectionFieldsMap, 'ForgotPasswordPayload'),
|
|
343
|
-
}),
|
|
344
392
|
sendVerificationEmail: (args, options) => new query_builder_1.QueryBuilder({
|
|
345
393
|
client,
|
|
346
394
|
operation: 'mutation',
|
|
@@ -353,6 +401,18 @@ function createMutationOperations(client) {
|
|
|
353
401
|
},
|
|
354
402
|
], input_types_1.connectionFieldsMap, 'SendVerificationEmailPayload'),
|
|
355
403
|
}),
|
|
404
|
+
forgotPassword: (args, options) => new query_builder_1.QueryBuilder({
|
|
405
|
+
client,
|
|
406
|
+
operation: 'mutation',
|
|
407
|
+
operationName: 'ForgotPassword',
|
|
408
|
+
fieldName: 'forgotPassword',
|
|
409
|
+
...(0, query_builder_1.buildCustomDocument)('mutation', 'ForgotPassword', 'forgotPassword', options.select, args, [
|
|
410
|
+
{
|
|
411
|
+
name: 'input',
|
|
412
|
+
type: 'ForgotPasswordInput!',
|
|
413
|
+
},
|
|
414
|
+
], input_types_1.connectionFieldsMap, 'ForgotPasswordPayload'),
|
|
415
|
+
}),
|
|
356
416
|
verifyPassword: (args, options) => new query_builder_1.QueryBuilder({
|
|
357
417
|
client,
|
|
358
418
|
operation: 'mutation',
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* UuidModule model for ORM client
|
|
3
|
-
* @generated by @constructive-io/graphql-codegen
|
|
4
|
-
* DO NOT EDIT - changes will be overwritten
|
|
5
|
-
*/
|
|
6
|
-
import { OrmClient } from '../client';
|
|
7
|
-
import { QueryBuilder } from '../query-builder';
|
|
8
|
-
import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, UpdateArgs, DeleteArgs, InferSelectResult, StrictSelect } from '../select-types';
|
|
9
|
-
import type { UuidModuleWithRelations, UuidModuleSelect, UuidModuleFilter, UuidModuleOrderBy, CreateUuidModuleInput, UuidModulePatch } from '../input-types';
|
|
10
|
-
export declare class UuidModuleModel {
|
|
11
|
-
private client;
|
|
12
|
-
constructor(client: OrmClient);
|
|
13
|
-
findMany<S extends UuidModuleSelect>(args: FindManyArgs<S, UuidModuleFilter, never, UuidModuleOrderBy> & {
|
|
14
|
-
select: S;
|
|
15
|
-
} & StrictSelect<S, UuidModuleSelect>): QueryBuilder<{
|
|
16
|
-
uuidModules: ConnectionResult<InferSelectResult<UuidModuleWithRelations, S>>;
|
|
17
|
-
}>;
|
|
18
|
-
findFirst<S extends UuidModuleSelect>(args: FindFirstArgs<S, UuidModuleFilter> & {
|
|
19
|
-
select: S;
|
|
20
|
-
} & StrictSelect<S, UuidModuleSelect>): QueryBuilder<{
|
|
21
|
-
uuidModules: {
|
|
22
|
-
nodes: InferSelectResult<UuidModuleWithRelations, S>[];
|
|
23
|
-
};
|
|
24
|
-
}>;
|
|
25
|
-
findOne<S extends UuidModuleSelect>(args: {
|
|
26
|
-
id: string;
|
|
27
|
-
select: S;
|
|
28
|
-
} & StrictSelect<S, UuidModuleSelect>): QueryBuilder<{
|
|
29
|
-
uuidModule: InferSelectResult<UuidModuleWithRelations, S> | null;
|
|
30
|
-
}>;
|
|
31
|
-
create<S extends UuidModuleSelect>(args: CreateArgs<S, CreateUuidModuleInput['uuidModule']> & {
|
|
32
|
-
select: S;
|
|
33
|
-
} & StrictSelect<S, UuidModuleSelect>): QueryBuilder<{
|
|
34
|
-
createUuidModule: {
|
|
35
|
-
uuidModule: InferSelectResult<UuidModuleWithRelations, S>;
|
|
36
|
-
};
|
|
37
|
-
}>;
|
|
38
|
-
update<S extends UuidModuleSelect>(args: UpdateArgs<S, {
|
|
39
|
-
id: string;
|
|
40
|
-
}, UuidModulePatch> & {
|
|
41
|
-
select: S;
|
|
42
|
-
} & StrictSelect<S, UuidModuleSelect>): QueryBuilder<{
|
|
43
|
-
updateUuidModule: {
|
|
44
|
-
uuidModule: InferSelectResult<UuidModuleWithRelations, S>;
|
|
45
|
-
};
|
|
46
|
-
}>;
|
|
47
|
-
delete<S extends UuidModuleSelect>(args: DeleteArgs<{
|
|
48
|
-
id: string;
|
|
49
|
-
}, S> & {
|
|
50
|
-
select: S;
|
|
51
|
-
} & StrictSelect<S, UuidModuleSelect>): QueryBuilder<{
|
|
52
|
-
deleteUuidModule: {
|
|
53
|
-
uuidModule: InferSelectResult<UuidModuleWithRelations, S>;
|
|
54
|
-
};
|
|
55
|
-
}>;
|
|
56
|
-
}
|