@constructive-io/sdk 0.10.0 → 0.10.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/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<{
|
|
@@ -2,6 +2,18 @@ import { QueryBuilder, buildCustomDocument } from '../query-builder';
|
|
|
2
2
|
import { connectionFieldsMap } from '../input-types';
|
|
3
3
|
export function createMutationOperations(client) {
|
|
4
4
|
return {
|
|
5
|
+
sendAccountDeletionEmail: (args, options) => new QueryBuilder({
|
|
6
|
+
client,
|
|
7
|
+
operation: 'mutation',
|
|
8
|
+
operationName: 'SendAccountDeletionEmail',
|
|
9
|
+
fieldName: 'sendAccountDeletionEmail',
|
|
10
|
+
...buildCustomDocument('mutation', 'SendAccountDeletionEmail', 'sendAccountDeletionEmail', options.select, args, [
|
|
11
|
+
{
|
|
12
|
+
name: 'input',
|
|
13
|
+
type: 'SendAccountDeletionEmailInput!',
|
|
14
|
+
},
|
|
15
|
+
], connectionFieldsMap, 'SendAccountDeletionEmailPayload'),
|
|
16
|
+
}),
|
|
5
17
|
signOut: (args, options) => new QueryBuilder({
|
|
6
18
|
client,
|
|
7
19
|
operation: 'mutation',
|
|
@@ -14,29 +26,41 @@ export function createMutationOperations(client) {
|
|
|
14
26
|
},
|
|
15
27
|
], connectionFieldsMap, 'SignOutPayload'),
|
|
16
28
|
}),
|
|
17
|
-
|
|
29
|
+
acceptDatabaseTransfer: (args, options) => new QueryBuilder({
|
|
18
30
|
client,
|
|
19
31
|
operation: 'mutation',
|
|
20
|
-
operationName: '
|
|
21
|
-
fieldName: '
|
|
22
|
-
...buildCustomDocument('mutation', '
|
|
32
|
+
operationName: 'AcceptDatabaseTransfer',
|
|
33
|
+
fieldName: 'acceptDatabaseTransfer',
|
|
34
|
+
...buildCustomDocument('mutation', 'AcceptDatabaseTransfer', 'acceptDatabaseTransfer', options.select, args, [
|
|
23
35
|
{
|
|
24
36
|
name: 'input',
|
|
25
|
-
type: '
|
|
37
|
+
type: 'AcceptDatabaseTransferInput!',
|
|
26
38
|
},
|
|
27
|
-
], connectionFieldsMap, '
|
|
39
|
+
], connectionFieldsMap, 'AcceptDatabaseTransferPayload'),
|
|
28
40
|
}),
|
|
29
|
-
|
|
41
|
+
cancelDatabaseTransfer: (args, options) => new QueryBuilder({
|
|
30
42
|
client,
|
|
31
43
|
operation: 'mutation',
|
|
32
|
-
operationName: '
|
|
33
|
-
fieldName: '
|
|
34
|
-
...buildCustomDocument('mutation', '
|
|
44
|
+
operationName: 'CancelDatabaseTransfer',
|
|
45
|
+
fieldName: 'cancelDatabaseTransfer',
|
|
46
|
+
...buildCustomDocument('mutation', 'CancelDatabaseTransfer', 'cancelDatabaseTransfer', options.select, args, [
|
|
35
47
|
{
|
|
36
48
|
name: 'input',
|
|
37
|
-
type: '
|
|
49
|
+
type: 'CancelDatabaseTransferInput!',
|
|
38
50
|
},
|
|
39
|
-
], connectionFieldsMap, '
|
|
51
|
+
], connectionFieldsMap, 'CancelDatabaseTransferPayload'),
|
|
52
|
+
}),
|
|
53
|
+
rejectDatabaseTransfer: (args, options) => new QueryBuilder({
|
|
54
|
+
client,
|
|
55
|
+
operation: 'mutation',
|
|
56
|
+
operationName: 'RejectDatabaseTransfer',
|
|
57
|
+
fieldName: 'rejectDatabaseTransfer',
|
|
58
|
+
...buildCustomDocument('mutation', 'RejectDatabaseTransfer', 'rejectDatabaseTransfer', options.select, args, [
|
|
59
|
+
{
|
|
60
|
+
name: 'input',
|
|
61
|
+
type: 'RejectDatabaseTransferInput!',
|
|
62
|
+
},
|
|
63
|
+
], connectionFieldsMap, 'RejectDatabaseTransferPayload'),
|
|
40
64
|
}),
|
|
41
65
|
submitInviteCode: (args, options) => new QueryBuilder({
|
|
42
66
|
client,
|
|
@@ -62,29 +86,17 @@ export function createMutationOperations(client) {
|
|
|
62
86
|
},
|
|
63
87
|
], connectionFieldsMap, 'SubmitOrgInviteCodePayload'),
|
|
64
88
|
}),
|
|
65
|
-
|
|
66
|
-
client,
|
|
67
|
-
operation: 'mutation',
|
|
68
|
-
operationName: 'FreezeObjects',
|
|
69
|
-
fieldName: 'freezeObjects',
|
|
70
|
-
...buildCustomDocument('mutation', 'FreezeObjects', 'freezeObjects', options.select, args, [
|
|
71
|
-
{
|
|
72
|
-
name: 'input',
|
|
73
|
-
type: 'FreezeObjectsInput!',
|
|
74
|
-
},
|
|
75
|
-
], connectionFieldsMap, 'FreezeObjectsPayload'),
|
|
76
|
-
}),
|
|
77
|
-
initEmptyRepo: (args, options) => new QueryBuilder({
|
|
89
|
+
checkPassword: (args, options) => new QueryBuilder({
|
|
78
90
|
client,
|
|
79
91
|
operation: 'mutation',
|
|
80
|
-
operationName: '
|
|
81
|
-
fieldName: '
|
|
82
|
-
...buildCustomDocument('mutation', '
|
|
92
|
+
operationName: 'CheckPassword',
|
|
93
|
+
fieldName: 'checkPassword',
|
|
94
|
+
...buildCustomDocument('mutation', 'CheckPassword', 'checkPassword', options.select, args, [
|
|
83
95
|
{
|
|
84
96
|
name: 'input',
|
|
85
|
-
type: '
|
|
97
|
+
type: 'CheckPasswordInput!',
|
|
86
98
|
},
|
|
87
|
-
], connectionFieldsMap, '
|
|
99
|
+
], connectionFieldsMap, 'CheckPasswordPayload'),
|
|
88
100
|
}),
|
|
89
101
|
confirmDeleteAccount: (args, options) => new QueryBuilder({
|
|
90
102
|
client,
|
|
@@ -122,53 +134,65 @@ export function createMutationOperations(client) {
|
|
|
122
134
|
},
|
|
123
135
|
], connectionFieldsMap, 'VerifyEmailPayload'),
|
|
124
136
|
}),
|
|
125
|
-
|
|
137
|
+
freezeObjects: (args, options) => new QueryBuilder({
|
|
126
138
|
client,
|
|
127
139
|
operation: 'mutation',
|
|
128
|
-
operationName: '
|
|
129
|
-
fieldName: '
|
|
130
|
-
...buildCustomDocument('mutation', '
|
|
140
|
+
operationName: 'FreezeObjects',
|
|
141
|
+
fieldName: 'freezeObjects',
|
|
142
|
+
...buildCustomDocument('mutation', 'FreezeObjects', 'freezeObjects', options.select, args, [
|
|
131
143
|
{
|
|
132
144
|
name: 'input',
|
|
133
|
-
type: '
|
|
145
|
+
type: 'FreezeObjectsInput!',
|
|
134
146
|
},
|
|
135
|
-
], connectionFieldsMap, '
|
|
147
|
+
], connectionFieldsMap, 'FreezeObjectsPayload'),
|
|
136
148
|
}),
|
|
137
|
-
|
|
149
|
+
initEmptyRepo: (args, options) => new QueryBuilder({
|
|
138
150
|
client,
|
|
139
151
|
operation: 'mutation',
|
|
140
|
-
operationName: '
|
|
141
|
-
fieldName: '
|
|
142
|
-
...buildCustomDocument('mutation', '
|
|
152
|
+
operationName: 'InitEmptyRepo',
|
|
153
|
+
fieldName: 'initEmptyRepo',
|
|
154
|
+
...buildCustomDocument('mutation', 'InitEmptyRepo', 'initEmptyRepo', options.select, args, [
|
|
143
155
|
{
|
|
144
156
|
name: 'input',
|
|
145
|
-
type: '
|
|
157
|
+
type: 'InitEmptyRepoInput!',
|
|
146
158
|
},
|
|
147
|
-
], connectionFieldsMap, '
|
|
159
|
+
], connectionFieldsMap, 'InitEmptyRepoPayload'),
|
|
148
160
|
}),
|
|
149
|
-
|
|
161
|
+
constructBlueprint: (args, options) => new QueryBuilder({
|
|
150
162
|
client,
|
|
151
163
|
operation: 'mutation',
|
|
152
|
-
operationName: '
|
|
153
|
-
fieldName: '
|
|
154
|
-
...buildCustomDocument('mutation', '
|
|
164
|
+
operationName: 'ConstructBlueprint',
|
|
165
|
+
fieldName: 'constructBlueprint',
|
|
166
|
+
...buildCustomDocument('mutation', 'ConstructBlueprint', 'constructBlueprint', options.select, args, [
|
|
155
167
|
{
|
|
156
168
|
name: 'input',
|
|
157
|
-
type: '
|
|
169
|
+
type: 'ConstructBlueprintInput!',
|
|
158
170
|
},
|
|
159
|
-
], connectionFieldsMap, '
|
|
171
|
+
], connectionFieldsMap, 'ConstructBlueprintPayload'),
|
|
160
172
|
}),
|
|
161
|
-
|
|
173
|
+
resetPassword: (args, options) => new QueryBuilder({
|
|
162
174
|
client,
|
|
163
175
|
operation: 'mutation',
|
|
164
|
-
operationName: '
|
|
165
|
-
fieldName: '
|
|
166
|
-
...buildCustomDocument('mutation', '
|
|
176
|
+
operationName: 'ResetPassword',
|
|
177
|
+
fieldName: 'resetPassword',
|
|
178
|
+
...buildCustomDocument('mutation', 'ResetPassword', 'resetPassword', options.select, args, [
|
|
167
179
|
{
|
|
168
180
|
name: 'input',
|
|
169
|
-
type: '
|
|
181
|
+
type: 'ResetPasswordInput!',
|
|
170
182
|
},
|
|
171
|
-
], connectionFieldsMap, '
|
|
183
|
+
], connectionFieldsMap, 'ResetPasswordPayload'),
|
|
184
|
+
}),
|
|
185
|
+
removeNodeAtPath: (args, options) => new QueryBuilder({
|
|
186
|
+
client,
|
|
187
|
+
operation: 'mutation',
|
|
188
|
+
operationName: 'RemoveNodeAtPath',
|
|
189
|
+
fieldName: 'removeNodeAtPath',
|
|
190
|
+
...buildCustomDocument('mutation', 'RemoveNodeAtPath', 'removeNodeAtPath', options.select, args, [
|
|
191
|
+
{
|
|
192
|
+
name: 'input',
|
|
193
|
+
type: 'RemoveNodeAtPathInput!',
|
|
194
|
+
},
|
|
195
|
+
], connectionFieldsMap, 'RemoveNodeAtPathPayload'),
|
|
172
196
|
}),
|
|
173
197
|
setDataAtPath: (args, options) => new QueryBuilder({
|
|
174
198
|
client,
|
|
@@ -194,6 +218,18 @@ export function createMutationOperations(client) {
|
|
|
194
218
|
},
|
|
195
219
|
], connectionFieldsMap, 'SetPropsAndCommitPayload'),
|
|
196
220
|
}),
|
|
221
|
+
copyTemplateToBlueprint: (args, options) => new QueryBuilder({
|
|
222
|
+
client,
|
|
223
|
+
operation: 'mutation',
|
|
224
|
+
operationName: 'CopyTemplateToBlueprint',
|
|
225
|
+
fieldName: 'copyTemplateToBlueprint',
|
|
226
|
+
...buildCustomDocument('mutation', 'CopyTemplateToBlueprint', 'copyTemplateToBlueprint', options.select, args, [
|
|
227
|
+
{
|
|
228
|
+
name: 'input',
|
|
229
|
+
type: 'CopyTemplateToBlueprintInput!',
|
|
230
|
+
},
|
|
231
|
+
], connectionFieldsMap, 'CopyTemplateToBlueprintPayload'),
|
|
232
|
+
}),
|
|
197
233
|
provisionDatabaseWithUser: (args, options) => new QueryBuilder({
|
|
198
234
|
client,
|
|
199
235
|
operation: 'mutation',
|
|
@@ -206,6 +242,30 @@ export function createMutationOperations(client) {
|
|
|
206
242
|
},
|
|
207
243
|
], connectionFieldsMap, 'ProvisionDatabaseWithUserPayload'),
|
|
208
244
|
}),
|
|
245
|
+
bootstrapUser: (args, options) => new QueryBuilder({
|
|
246
|
+
client,
|
|
247
|
+
operation: 'mutation',
|
|
248
|
+
operationName: 'BootstrapUser',
|
|
249
|
+
fieldName: 'bootstrapUser',
|
|
250
|
+
...buildCustomDocument('mutation', 'BootstrapUser', 'bootstrapUser', options.select, args, [
|
|
251
|
+
{
|
|
252
|
+
name: 'input',
|
|
253
|
+
type: 'BootstrapUserInput!',
|
|
254
|
+
},
|
|
255
|
+
], connectionFieldsMap, 'BootstrapUserPayload'),
|
|
256
|
+
}),
|
|
257
|
+
setFieldOrder: (args, options) => new QueryBuilder({
|
|
258
|
+
client,
|
|
259
|
+
operation: 'mutation',
|
|
260
|
+
operationName: 'SetFieldOrder',
|
|
261
|
+
fieldName: 'setFieldOrder',
|
|
262
|
+
...buildCustomDocument('mutation', 'SetFieldOrder', 'setFieldOrder', options.select, args, [
|
|
263
|
+
{
|
|
264
|
+
name: 'input',
|
|
265
|
+
type: 'SetFieldOrderInput!',
|
|
266
|
+
},
|
|
267
|
+
], connectionFieldsMap, 'SetFieldOrderPayload'),
|
|
268
|
+
}),
|
|
209
269
|
insertNodeAtPath: (args, options) => new QueryBuilder({
|
|
210
270
|
client,
|
|
211
271
|
operation: 'mutation',
|
|
@@ -326,18 +386,6 @@ export function createMutationOperations(client) {
|
|
|
326
386
|
},
|
|
327
387
|
], connectionFieldsMap, 'OneTimeTokenPayload'),
|
|
328
388
|
}),
|
|
329
|
-
forgotPassword: (args, options) => new QueryBuilder({
|
|
330
|
-
client,
|
|
331
|
-
operation: 'mutation',
|
|
332
|
-
operationName: 'ForgotPassword',
|
|
333
|
-
fieldName: 'forgotPassword',
|
|
334
|
-
...buildCustomDocument('mutation', 'ForgotPassword', 'forgotPassword', options.select, args, [
|
|
335
|
-
{
|
|
336
|
-
name: 'input',
|
|
337
|
-
type: 'ForgotPasswordInput!',
|
|
338
|
-
},
|
|
339
|
-
], connectionFieldsMap, 'ForgotPasswordPayload'),
|
|
340
|
-
}),
|
|
341
389
|
sendVerificationEmail: (args, options) => new QueryBuilder({
|
|
342
390
|
client,
|
|
343
391
|
operation: 'mutation',
|
|
@@ -350,6 +398,18 @@ export function createMutationOperations(client) {
|
|
|
350
398
|
},
|
|
351
399
|
], connectionFieldsMap, 'SendVerificationEmailPayload'),
|
|
352
400
|
}),
|
|
401
|
+
forgotPassword: (args, options) => new QueryBuilder({
|
|
402
|
+
client,
|
|
403
|
+
operation: 'mutation',
|
|
404
|
+
operationName: 'ForgotPassword',
|
|
405
|
+
fieldName: 'forgotPassword',
|
|
406
|
+
...buildCustomDocument('mutation', 'ForgotPassword', 'forgotPassword', options.select, args, [
|
|
407
|
+
{
|
|
408
|
+
name: 'input',
|
|
409
|
+
type: 'ForgotPasswordInput!',
|
|
410
|
+
},
|
|
411
|
+
], connectionFieldsMap, 'ForgotPasswordPayload'),
|
|
412
|
+
}),
|
|
353
413
|
verifyPassword: (args, options) => new QueryBuilder({
|
|
354
414
|
client,
|
|
355
415
|
operation: 'mutation',
|
package/index.js
CHANGED
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* @constructive-io/sdk
|
|
4
|
-
*
|
|
5
|
-
* Auto-generated GraphQL types and ORM client.
|
|
6
|
-
* Run `pnpm run generate` to populate this package from the schema files.
|
|
7
|
-
*
|
|
8
|
-
* @generated by @constructive-io/graphql-codegen
|
|
9
|
-
*/
|
|
10
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
11
3
|
if (k2 === undefined) k2 = k;
|
|
12
4
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -42,6 +34,14 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
42
34
|
})();
|
|
43
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44
36
|
exports.public_ = exports.objects = exports.auth = exports.admin = void 0;
|
|
37
|
+
/**
|
|
38
|
+
* @constructive-io/sdk
|
|
39
|
+
*
|
|
40
|
+
* Auto-generated GraphQL types and ORM client.
|
|
41
|
+
* Run `pnpm run generate` to populate this package from the schema files.
|
|
42
|
+
*
|
|
43
|
+
* @generated by @constructive-io/graphql-codegen
|
|
44
|
+
*/
|
|
45
45
|
exports.admin = __importStar(require("./admin"));
|
|
46
46
|
exports.auth = __importStar(require("./auth"));
|
|
47
47
|
exports.objects = __importStar(require("./objects"));
|