@constructive-io/sdk 0.7.3 → 0.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/admin/orm/index.d.ts +5 -5
- package/admin/orm/query/index.d.ts +9 -9
- package/admin/orm/query/index.js +16 -16
- package/auth/orm/input-types.d.ts +0 -1
- package/esm/admin/orm/index.d.ts +5 -5
- package/esm/admin/orm/query/index.d.ts +9 -9
- package/esm/admin/orm/query/index.js +16 -16
- package/esm/auth/orm/input-types.d.ts +0 -1
- package/esm/public/orm/index.d.ts +44 -44
- package/esm/public/orm/index.js +6 -6
- package/esm/public/orm/input-types.d.ts +570 -571
- package/esm/public/orm/models/index.d.ts +3 -3
- package/esm/public/orm/models/index.js +3 -3
- package/esm/public/orm/mutation/index.d.ts +46 -46
- package/esm/public/orm/mutation/index.js +66 -66
- package/esm/public/orm/query/index.d.ts +28 -28
- package/esm/public/orm/query/index.js +48 -48
- package/package.json +6 -6
- package/public/orm/index.d.ts +44 -44
- package/public/orm/index.js +6 -6
- package/public/orm/input-types.d.ts +570 -571
- package/public/orm/models/index.d.ts +3 -3
- package/public/orm/models/index.js +9 -9
- package/public/orm/mutation/index.d.ts +46 -46
- package/public/orm/mutation/index.js +66 -66
- package/public/orm/query/index.d.ts +28 -28
- package/public/orm/query/index.js +48 -48
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
export { OrgGetManagersRecordModel } from './orgGetManagersRecord';
|
|
7
7
|
export { OrgGetSubordinatesRecordModel } from './orgGetSubordinatesRecord';
|
|
8
8
|
export { GetAllRecordModel } from './getAllRecord';
|
|
9
|
+
export { ObjectModel } from './object';
|
|
9
10
|
export { AppPermissionModel } from './appPermission';
|
|
10
11
|
export { OrgPermissionModel } from './orgPermission';
|
|
11
|
-
export { ObjectModel } from './object';
|
|
12
12
|
export { AppLevelRequirementModel } from './appLevelRequirement';
|
|
13
13
|
export { DatabaseModel } from './database';
|
|
14
14
|
export { SchemaModel } from './schema';
|
|
@@ -94,15 +94,15 @@ export { OrgLimitDefaultModel } from './orgLimitDefault';
|
|
|
94
94
|
export { ConnectedAccountModel } from './connectedAccount';
|
|
95
95
|
export { NodeTypeRegistryModel } from './nodeTypeRegistry';
|
|
96
96
|
export { MembershipTypeModel } from './membershipType';
|
|
97
|
+
export { CommitModel } from './commit';
|
|
97
98
|
export { AppMembershipDefaultModel } from './appMembershipDefault';
|
|
98
99
|
export { RlsModuleModel } from './rlsModule';
|
|
99
|
-
export { CommitModel } from './commit';
|
|
100
100
|
export { OrgMembershipDefaultModel } from './orgMembershipDefault';
|
|
101
101
|
export { AuditLogModel } from './auditLog';
|
|
102
102
|
export { AppLevelModel } from './appLevel';
|
|
103
103
|
export { SqlMigrationModel } from './sqlMigration';
|
|
104
104
|
export { EmailModel } from './email';
|
|
105
|
+
export { UserModel } from './user';
|
|
105
106
|
export { AstMigrationModel } from './astMigration';
|
|
106
107
|
export { AppMembershipModel } from './appMembership';
|
|
107
|
-
export { UserModel } from './user';
|
|
108
108
|
export { HierarchyModuleModel } from './hierarchyModule';
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
export { OrgGetManagersRecordModel } from './orgGetManagersRecord';
|
|
7
7
|
export { OrgGetSubordinatesRecordModel } from './orgGetSubordinatesRecord';
|
|
8
8
|
export { GetAllRecordModel } from './getAllRecord';
|
|
9
|
+
export { ObjectModel } from './object';
|
|
9
10
|
export { AppPermissionModel } from './appPermission';
|
|
10
11
|
export { OrgPermissionModel } from './orgPermission';
|
|
11
|
-
export { ObjectModel } from './object';
|
|
12
12
|
export { AppLevelRequirementModel } from './appLevelRequirement';
|
|
13
13
|
export { DatabaseModel } from './database';
|
|
14
14
|
export { SchemaModel } from './schema';
|
|
@@ -94,15 +94,15 @@ export { OrgLimitDefaultModel } from './orgLimitDefault';
|
|
|
94
94
|
export { ConnectedAccountModel } from './connectedAccount';
|
|
95
95
|
export { NodeTypeRegistryModel } from './nodeTypeRegistry';
|
|
96
96
|
export { MembershipTypeModel } from './membershipType';
|
|
97
|
+
export { CommitModel } from './commit';
|
|
97
98
|
export { AppMembershipDefaultModel } from './appMembershipDefault';
|
|
98
99
|
export { RlsModuleModel } from './rlsModule';
|
|
99
|
-
export { CommitModel } from './commit';
|
|
100
100
|
export { OrgMembershipDefaultModel } from './orgMembershipDefault';
|
|
101
101
|
export { AuditLogModel } from './auditLog';
|
|
102
102
|
export { AppLevelModel } from './appLevel';
|
|
103
103
|
export { SqlMigrationModel } from './sqlMigration';
|
|
104
104
|
export { EmailModel } from './email';
|
|
105
|
+
export { UserModel } from './user';
|
|
105
106
|
export { AstMigrationModel } from './astMigration';
|
|
106
107
|
export { AppMembershipModel } from './appMembership';
|
|
107
|
-
export { UserModel } from './user';
|
|
108
108
|
export { HierarchyModuleModel } from './hierarchyModule';
|
|
@@ -6,7 +6,7 @@
|
|
|
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, SendAccountDeletionEmailInput, CheckPasswordInput, SubmitInviteCodeInput, SubmitOrgInviteCodeInput, FreezeObjectsInput, InitEmptyRepoInput, ConfirmDeleteAccountInput, SetPasswordInput, VerifyEmailInput, ResetPasswordInput, BootstrapUserInput,
|
|
9
|
+
import type { SignOutInput, SendAccountDeletionEmailInput, CheckPasswordInput, SubmitInviteCodeInput, SubmitOrgInviteCodeInput, FreezeObjectsInput, InitEmptyRepoInput, ConfirmDeleteAccountInput, SetPasswordInput, VerifyEmailInput, RemoveNodeAtPathInput, ResetPasswordInput, BootstrapUserInput, SetFieldOrderInput, SetDataAtPathInput, SetPropsAndCommitInput, ProvisionDatabaseWithUserInput, InsertNodeAtPathInput, UpdateNodeAtPathInput, SetAndCommitInput, ApplyRlsInput, SignInOneTimeTokenInput, CreateUserDatabaseInput, ExtendTokenExpiresInput, SignInInput, SignUpInput, OneTimeTokenInput, ForgotPasswordInput, SendVerificationEmailInput, VerifyPasswordInput, VerifyTotpInput, SignOutPayload, SendAccountDeletionEmailPayload, CheckPasswordPayload, SubmitInviteCodePayload, SubmitOrgInviteCodePayload, FreezeObjectsPayload, InitEmptyRepoPayload, ConfirmDeleteAccountPayload, SetPasswordPayload, VerifyEmailPayload, RemoveNodeAtPathPayload, ResetPasswordPayload, BootstrapUserPayload, SetFieldOrderPayload, SetDataAtPathPayload, SetPropsAndCommitPayload, ProvisionDatabaseWithUserPayload, InsertNodeAtPathPayload, UpdateNodeAtPathPayload, SetAndCommitPayload, ApplyRlsPayload, SignInOneTimeTokenPayload, CreateUserDatabasePayload, ExtendTokenExpiresPayload, SignInPayload, SignUpPayload, OneTimeTokenPayload, ForgotPasswordPayload, SendVerificationEmailPayload, VerifyPasswordPayload, VerifyTotpPayload, SignOutPayloadSelect, SendAccountDeletionEmailPayloadSelect, CheckPasswordPayloadSelect, SubmitInviteCodePayloadSelect, SubmitOrgInviteCodePayloadSelect, FreezeObjectsPayloadSelect, InitEmptyRepoPayloadSelect, ConfirmDeleteAccountPayloadSelect, SetPasswordPayloadSelect, VerifyEmailPayloadSelect, RemoveNodeAtPathPayloadSelect, ResetPasswordPayloadSelect, BootstrapUserPayloadSelect, SetFieldOrderPayloadSelect, SetDataAtPathPayloadSelect, SetPropsAndCommitPayloadSelect, ProvisionDatabaseWithUserPayloadSelect, InsertNodeAtPathPayloadSelect, UpdateNodeAtPathPayloadSelect, SetAndCommitPayloadSelect, ApplyRlsPayloadSelect, SignInOneTimeTokenPayloadSelect, CreateUserDatabasePayloadSelect, ExtendTokenExpiresPayloadSelect, SignInPayloadSelect, SignUpPayloadSelect, OneTimeTokenPayloadSelect, ForgotPasswordPayloadSelect, SendVerificationEmailPayloadSelect, VerifyPasswordPayloadSelect, VerifyTotpPayloadSelect } from '../input-types';
|
|
10
10
|
export interface SignOutVariables {
|
|
11
11
|
input: SignOutInput;
|
|
12
12
|
}
|
|
@@ -37,14 +37,17 @@ export interface SetPasswordVariables {
|
|
|
37
37
|
export interface VerifyEmailVariables {
|
|
38
38
|
input: VerifyEmailInput;
|
|
39
39
|
}
|
|
40
|
+
export interface RemoveNodeAtPathVariables {
|
|
41
|
+
input: RemoveNodeAtPathInput;
|
|
42
|
+
}
|
|
40
43
|
export interface ResetPasswordVariables {
|
|
41
44
|
input: ResetPasswordInput;
|
|
42
45
|
}
|
|
43
46
|
export interface BootstrapUserVariables {
|
|
44
47
|
input: BootstrapUserInput;
|
|
45
48
|
}
|
|
46
|
-
export interface
|
|
47
|
-
input:
|
|
49
|
+
export interface SetFieldOrderVariables {
|
|
50
|
+
input: SetFieldOrderInput;
|
|
48
51
|
}
|
|
49
52
|
export interface SetDataAtPathVariables {
|
|
50
53
|
input: SetDataAtPathInput;
|
|
@@ -55,6 +58,18 @@ export interface SetPropsAndCommitVariables {
|
|
|
55
58
|
export interface ProvisionDatabaseWithUserVariables {
|
|
56
59
|
input: ProvisionDatabaseWithUserInput;
|
|
57
60
|
}
|
|
61
|
+
export interface InsertNodeAtPathVariables {
|
|
62
|
+
input: InsertNodeAtPathInput;
|
|
63
|
+
}
|
|
64
|
+
export interface UpdateNodeAtPathVariables {
|
|
65
|
+
input: UpdateNodeAtPathInput;
|
|
66
|
+
}
|
|
67
|
+
export interface SetAndCommitVariables {
|
|
68
|
+
input: SetAndCommitInput;
|
|
69
|
+
}
|
|
70
|
+
export interface ApplyRlsVariables {
|
|
71
|
+
input: ApplyRlsInput;
|
|
72
|
+
}
|
|
58
73
|
export interface SignInOneTimeTokenVariables {
|
|
59
74
|
input: SignInOneTimeTokenInput;
|
|
60
75
|
}
|
|
@@ -89,24 +104,9 @@ export interface SignInVariables {
|
|
|
89
104
|
export interface SignUpVariables {
|
|
90
105
|
input: SignUpInput;
|
|
91
106
|
}
|
|
92
|
-
export interface SetFieldOrderVariables {
|
|
93
|
-
input: SetFieldOrderInput;
|
|
94
|
-
}
|
|
95
107
|
export interface OneTimeTokenVariables {
|
|
96
108
|
input: OneTimeTokenInput;
|
|
97
109
|
}
|
|
98
|
-
export interface InsertNodeAtPathVariables {
|
|
99
|
-
input: InsertNodeAtPathInput;
|
|
100
|
-
}
|
|
101
|
-
export interface UpdateNodeAtPathVariables {
|
|
102
|
-
input: UpdateNodeAtPathInput;
|
|
103
|
-
}
|
|
104
|
-
export interface SetAndCommitVariables {
|
|
105
|
-
input: SetAndCommitInput;
|
|
106
|
-
}
|
|
107
|
-
export interface ApplyRlsVariables {
|
|
108
|
-
input: ApplyRlsInput;
|
|
109
|
-
}
|
|
110
110
|
export interface ForgotPasswordVariables {
|
|
111
111
|
input: ForgotPasswordInput;
|
|
112
112
|
}
|
|
@@ -170,6 +170,11 @@ export declare function createMutationOperations(client: OrmClient): {
|
|
|
170
170
|
} & StrictSelect<S, VerifyEmailPayloadSelect>) => QueryBuilder<{
|
|
171
171
|
verifyEmail: InferSelectResult<VerifyEmailPayload, S> | null;
|
|
172
172
|
}>;
|
|
173
|
+
removeNodeAtPath: <S extends RemoveNodeAtPathPayloadSelect>(args: RemoveNodeAtPathVariables, options: {
|
|
174
|
+
select: S;
|
|
175
|
+
} & StrictSelect<S, RemoveNodeAtPathPayloadSelect>) => QueryBuilder<{
|
|
176
|
+
removeNodeAtPath: InferSelectResult<RemoveNodeAtPathPayload, S> | null;
|
|
177
|
+
}>;
|
|
173
178
|
resetPassword: <S extends ResetPasswordPayloadSelect>(args: ResetPasswordVariables, options: {
|
|
174
179
|
select: S;
|
|
175
180
|
} & StrictSelect<S, ResetPasswordPayloadSelect>) => QueryBuilder<{
|
|
@@ -180,10 +185,10 @@ export declare function createMutationOperations(client: OrmClient): {
|
|
|
180
185
|
} & StrictSelect<S, BootstrapUserPayloadSelect>) => QueryBuilder<{
|
|
181
186
|
bootstrapUser: InferSelectResult<BootstrapUserPayload, S> | null;
|
|
182
187
|
}>;
|
|
183
|
-
|
|
188
|
+
setFieldOrder: <S extends SetFieldOrderPayloadSelect>(args: SetFieldOrderVariables, options: {
|
|
184
189
|
select: S;
|
|
185
|
-
} & StrictSelect<S,
|
|
186
|
-
|
|
190
|
+
} & StrictSelect<S, SetFieldOrderPayloadSelect>) => QueryBuilder<{
|
|
191
|
+
setFieldOrder: InferSelectResult<SetFieldOrderPayload, S> | null;
|
|
187
192
|
}>;
|
|
188
193
|
setDataAtPath: <S extends SetDataAtPathPayloadSelect>(args: SetDataAtPathVariables, options: {
|
|
189
194
|
select: S;
|
|
@@ -200,6 +205,26 @@ export declare function createMutationOperations(client: OrmClient): {
|
|
|
200
205
|
} & StrictSelect<S, ProvisionDatabaseWithUserPayloadSelect>) => QueryBuilder<{
|
|
201
206
|
provisionDatabaseWithUser: InferSelectResult<ProvisionDatabaseWithUserPayload, S> | null;
|
|
202
207
|
}>;
|
|
208
|
+
insertNodeAtPath: <S extends InsertNodeAtPathPayloadSelect>(args: InsertNodeAtPathVariables, options: {
|
|
209
|
+
select: S;
|
|
210
|
+
} & StrictSelect<S, InsertNodeAtPathPayloadSelect>) => QueryBuilder<{
|
|
211
|
+
insertNodeAtPath: InferSelectResult<InsertNodeAtPathPayload, S> | null;
|
|
212
|
+
}>;
|
|
213
|
+
updateNodeAtPath: <S extends UpdateNodeAtPathPayloadSelect>(args: UpdateNodeAtPathVariables, options: {
|
|
214
|
+
select: S;
|
|
215
|
+
} & StrictSelect<S, UpdateNodeAtPathPayloadSelect>) => QueryBuilder<{
|
|
216
|
+
updateNodeAtPath: InferSelectResult<UpdateNodeAtPathPayload, S> | null;
|
|
217
|
+
}>;
|
|
218
|
+
setAndCommit: <S extends SetAndCommitPayloadSelect>(args: SetAndCommitVariables, options: {
|
|
219
|
+
select: S;
|
|
220
|
+
} & StrictSelect<S, SetAndCommitPayloadSelect>) => QueryBuilder<{
|
|
221
|
+
setAndCommit: InferSelectResult<SetAndCommitPayload, S> | null;
|
|
222
|
+
}>;
|
|
223
|
+
applyRls: <S extends ApplyRlsPayloadSelect>(args: ApplyRlsVariables, options: {
|
|
224
|
+
select: S;
|
|
225
|
+
} & StrictSelect<S, ApplyRlsPayloadSelect>) => QueryBuilder<{
|
|
226
|
+
applyRls: InferSelectResult<ApplyRlsPayload, S> | null;
|
|
227
|
+
}>;
|
|
203
228
|
signInOneTimeToken: <S extends SignInOneTimeTokenPayloadSelect>(args: SignInOneTimeTokenVariables, options: {
|
|
204
229
|
select: S;
|
|
205
230
|
} & StrictSelect<S, SignInOneTimeTokenPayloadSelect>) => QueryBuilder<{
|
|
@@ -225,36 +250,11 @@ export declare function createMutationOperations(client: OrmClient): {
|
|
|
225
250
|
} & StrictSelect<S, SignUpPayloadSelect>) => QueryBuilder<{
|
|
226
251
|
signUp: InferSelectResult<SignUpPayload, S> | null;
|
|
227
252
|
}>;
|
|
228
|
-
setFieldOrder: <S extends SetFieldOrderPayloadSelect>(args: SetFieldOrderVariables, options: {
|
|
229
|
-
select: S;
|
|
230
|
-
} & StrictSelect<S, SetFieldOrderPayloadSelect>) => QueryBuilder<{
|
|
231
|
-
setFieldOrder: InferSelectResult<SetFieldOrderPayload, S> | null;
|
|
232
|
-
}>;
|
|
233
253
|
oneTimeToken: <S extends OneTimeTokenPayloadSelect>(args: OneTimeTokenVariables, options: {
|
|
234
254
|
select: S;
|
|
235
255
|
} & StrictSelect<S, OneTimeTokenPayloadSelect>) => QueryBuilder<{
|
|
236
256
|
oneTimeToken: InferSelectResult<OneTimeTokenPayload, S> | null;
|
|
237
257
|
}>;
|
|
238
|
-
insertNodeAtPath: <S extends InsertNodeAtPathPayloadSelect>(args: InsertNodeAtPathVariables, options: {
|
|
239
|
-
select: S;
|
|
240
|
-
} & StrictSelect<S, InsertNodeAtPathPayloadSelect>) => QueryBuilder<{
|
|
241
|
-
insertNodeAtPath: InferSelectResult<InsertNodeAtPathPayload, S> | null;
|
|
242
|
-
}>;
|
|
243
|
-
updateNodeAtPath: <S extends UpdateNodeAtPathPayloadSelect>(args: UpdateNodeAtPathVariables, options: {
|
|
244
|
-
select: S;
|
|
245
|
-
} & StrictSelect<S, UpdateNodeAtPathPayloadSelect>) => QueryBuilder<{
|
|
246
|
-
updateNodeAtPath: InferSelectResult<UpdateNodeAtPathPayload, S> | null;
|
|
247
|
-
}>;
|
|
248
|
-
setAndCommit: <S extends SetAndCommitPayloadSelect>(args: SetAndCommitVariables, options: {
|
|
249
|
-
select: S;
|
|
250
|
-
} & StrictSelect<S, SetAndCommitPayloadSelect>) => QueryBuilder<{
|
|
251
|
-
setAndCommit: InferSelectResult<SetAndCommitPayload, S> | null;
|
|
252
|
-
}>;
|
|
253
|
-
applyRls: <S extends ApplyRlsPayloadSelect>(args: ApplyRlsVariables, options: {
|
|
254
|
-
select: S;
|
|
255
|
-
} & StrictSelect<S, ApplyRlsPayloadSelect>) => QueryBuilder<{
|
|
256
|
-
applyRls: InferSelectResult<ApplyRlsPayload, S> | null;
|
|
257
|
-
}>;
|
|
258
258
|
forgotPassword: <S extends ForgotPasswordPayloadSelect>(args: ForgotPasswordVariables, options: {
|
|
259
259
|
select: S;
|
|
260
260
|
} & StrictSelect<S, ForgotPasswordPayloadSelect>) => QueryBuilder<{
|
|
@@ -122,6 +122,18 @@ export function createMutationOperations(client) {
|
|
|
122
122
|
},
|
|
123
123
|
], connectionFieldsMap, 'VerifyEmailPayload'),
|
|
124
124
|
}),
|
|
125
|
+
removeNodeAtPath: (args, options) => new QueryBuilder({
|
|
126
|
+
client,
|
|
127
|
+
operation: 'mutation',
|
|
128
|
+
operationName: 'RemoveNodeAtPath',
|
|
129
|
+
fieldName: 'removeNodeAtPath',
|
|
130
|
+
...buildCustomDocument('mutation', 'RemoveNodeAtPath', 'removeNodeAtPath', options.select, args, [
|
|
131
|
+
{
|
|
132
|
+
name: 'input',
|
|
133
|
+
type: 'RemoveNodeAtPathInput!',
|
|
134
|
+
},
|
|
135
|
+
], connectionFieldsMap, 'RemoveNodeAtPathPayload'),
|
|
136
|
+
}),
|
|
125
137
|
resetPassword: (args, options) => new QueryBuilder({
|
|
126
138
|
client,
|
|
127
139
|
operation: 'mutation',
|
|
@@ -146,17 +158,17 @@ export function createMutationOperations(client) {
|
|
|
146
158
|
},
|
|
147
159
|
], connectionFieldsMap, 'BootstrapUserPayload'),
|
|
148
160
|
}),
|
|
149
|
-
|
|
161
|
+
setFieldOrder: (args, options) => new QueryBuilder({
|
|
150
162
|
client,
|
|
151
163
|
operation: 'mutation',
|
|
152
|
-
operationName: '
|
|
153
|
-
fieldName: '
|
|
154
|
-
...buildCustomDocument('mutation', '
|
|
164
|
+
operationName: 'SetFieldOrder',
|
|
165
|
+
fieldName: 'setFieldOrder',
|
|
166
|
+
...buildCustomDocument('mutation', 'SetFieldOrder', 'setFieldOrder', options.select, args, [
|
|
155
167
|
{
|
|
156
168
|
name: 'input',
|
|
157
|
-
type: '
|
|
169
|
+
type: 'SetFieldOrderInput!',
|
|
158
170
|
},
|
|
159
|
-
], connectionFieldsMap, '
|
|
171
|
+
], connectionFieldsMap, 'SetFieldOrderPayload'),
|
|
160
172
|
}),
|
|
161
173
|
setDataAtPath: (args, options) => new QueryBuilder({
|
|
162
174
|
client,
|
|
@@ -194,6 +206,54 @@ export function createMutationOperations(client) {
|
|
|
194
206
|
},
|
|
195
207
|
], connectionFieldsMap, 'ProvisionDatabaseWithUserPayload'),
|
|
196
208
|
}),
|
|
209
|
+
insertNodeAtPath: (args, options) => new QueryBuilder({
|
|
210
|
+
client,
|
|
211
|
+
operation: 'mutation',
|
|
212
|
+
operationName: 'InsertNodeAtPath',
|
|
213
|
+
fieldName: 'insertNodeAtPath',
|
|
214
|
+
...buildCustomDocument('mutation', 'InsertNodeAtPath', 'insertNodeAtPath', options.select, args, [
|
|
215
|
+
{
|
|
216
|
+
name: 'input',
|
|
217
|
+
type: 'InsertNodeAtPathInput!',
|
|
218
|
+
},
|
|
219
|
+
], connectionFieldsMap, 'InsertNodeAtPathPayload'),
|
|
220
|
+
}),
|
|
221
|
+
updateNodeAtPath: (args, options) => new QueryBuilder({
|
|
222
|
+
client,
|
|
223
|
+
operation: 'mutation',
|
|
224
|
+
operationName: 'UpdateNodeAtPath',
|
|
225
|
+
fieldName: 'updateNodeAtPath',
|
|
226
|
+
...buildCustomDocument('mutation', 'UpdateNodeAtPath', 'updateNodeAtPath', options.select, args, [
|
|
227
|
+
{
|
|
228
|
+
name: 'input',
|
|
229
|
+
type: 'UpdateNodeAtPathInput!',
|
|
230
|
+
},
|
|
231
|
+
], connectionFieldsMap, 'UpdateNodeAtPathPayload'),
|
|
232
|
+
}),
|
|
233
|
+
setAndCommit: (args, options) => new QueryBuilder({
|
|
234
|
+
client,
|
|
235
|
+
operation: 'mutation',
|
|
236
|
+
operationName: 'SetAndCommit',
|
|
237
|
+
fieldName: 'setAndCommit',
|
|
238
|
+
...buildCustomDocument('mutation', 'SetAndCommit', 'setAndCommit', options.select, args, [
|
|
239
|
+
{
|
|
240
|
+
name: 'input',
|
|
241
|
+
type: 'SetAndCommitInput!',
|
|
242
|
+
},
|
|
243
|
+
], connectionFieldsMap, 'SetAndCommitPayload'),
|
|
244
|
+
}),
|
|
245
|
+
applyRls: (args, options) => new QueryBuilder({
|
|
246
|
+
client,
|
|
247
|
+
operation: 'mutation',
|
|
248
|
+
operationName: 'ApplyRls',
|
|
249
|
+
fieldName: 'applyRls',
|
|
250
|
+
...buildCustomDocument('mutation', 'ApplyRls', 'applyRls', options.select, args, [
|
|
251
|
+
{
|
|
252
|
+
name: 'input',
|
|
253
|
+
type: 'ApplyRlsInput!',
|
|
254
|
+
},
|
|
255
|
+
], connectionFieldsMap, 'ApplyRlsPayload'),
|
|
256
|
+
}),
|
|
197
257
|
signInOneTimeToken: (args, options) => new QueryBuilder({
|
|
198
258
|
client,
|
|
199
259
|
operation: 'mutation',
|
|
@@ -254,18 +314,6 @@ export function createMutationOperations(client) {
|
|
|
254
314
|
},
|
|
255
315
|
], connectionFieldsMap, 'SignUpPayload'),
|
|
256
316
|
}),
|
|
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
|
-
}),
|
|
269
317
|
oneTimeToken: (args, options) => new QueryBuilder({
|
|
270
318
|
client,
|
|
271
319
|
operation: 'mutation',
|
|
@@ -278,54 +326,6 @@ export function createMutationOperations(client) {
|
|
|
278
326
|
},
|
|
279
327
|
], connectionFieldsMap, 'OneTimeTokenPayload'),
|
|
280
328
|
}),
|
|
281
|
-
insertNodeAtPath: (args, options) => new QueryBuilder({
|
|
282
|
-
client,
|
|
283
|
-
operation: 'mutation',
|
|
284
|
-
operationName: 'InsertNodeAtPath',
|
|
285
|
-
fieldName: 'insertNodeAtPath',
|
|
286
|
-
...buildCustomDocument('mutation', 'InsertNodeAtPath', 'insertNodeAtPath', options.select, args, [
|
|
287
|
-
{
|
|
288
|
-
name: 'input',
|
|
289
|
-
type: 'InsertNodeAtPathInput!',
|
|
290
|
-
},
|
|
291
|
-
], connectionFieldsMap, 'InsertNodeAtPathPayload'),
|
|
292
|
-
}),
|
|
293
|
-
updateNodeAtPath: (args, options) => new QueryBuilder({
|
|
294
|
-
client,
|
|
295
|
-
operation: 'mutation',
|
|
296
|
-
operationName: 'UpdateNodeAtPath',
|
|
297
|
-
fieldName: 'updateNodeAtPath',
|
|
298
|
-
...buildCustomDocument('mutation', 'UpdateNodeAtPath', 'updateNodeAtPath', options.select, args, [
|
|
299
|
-
{
|
|
300
|
-
name: 'input',
|
|
301
|
-
type: 'UpdateNodeAtPathInput!',
|
|
302
|
-
},
|
|
303
|
-
], connectionFieldsMap, 'UpdateNodeAtPathPayload'),
|
|
304
|
-
}),
|
|
305
|
-
setAndCommit: (args, options) => new QueryBuilder({
|
|
306
|
-
client,
|
|
307
|
-
operation: 'mutation',
|
|
308
|
-
operationName: 'SetAndCommit',
|
|
309
|
-
fieldName: 'setAndCommit',
|
|
310
|
-
...buildCustomDocument('mutation', 'SetAndCommit', 'setAndCommit', options.select, args, [
|
|
311
|
-
{
|
|
312
|
-
name: 'input',
|
|
313
|
-
type: 'SetAndCommitInput!',
|
|
314
|
-
},
|
|
315
|
-
], connectionFieldsMap, 'SetAndCommitPayload'),
|
|
316
|
-
}),
|
|
317
|
-
applyRls: (args, options) => new QueryBuilder({
|
|
318
|
-
client,
|
|
319
|
-
operation: 'mutation',
|
|
320
|
-
operationName: 'ApplyRls',
|
|
321
|
-
fieldName: 'applyRls',
|
|
322
|
-
...buildCustomDocument('mutation', 'ApplyRls', 'applyRls', options.select, args, [
|
|
323
|
-
{
|
|
324
|
-
name: 'input',
|
|
325
|
-
type: 'ApplyRlsInput!',
|
|
326
|
-
},
|
|
327
|
-
], connectionFieldsMap, 'ApplyRlsPayload'),
|
|
328
|
-
}),
|
|
329
329
|
forgotPassword: (args, options) => new QueryBuilder({
|
|
330
330
|
client,
|
|
331
331
|
operation: 'mutation',
|
|
@@ -6,7 +6,7 @@
|
|
|
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 { Object, User, ObjectSelect, UserSelect, AppPermissionConnection, OrgPermissionConnection,
|
|
9
|
+
import type { Object, User, ObjectSelect, UserSelect, ObjectConnection, AppPermissionConnection, OrgPermissionConnection, AppLevelRequirementConnection } from '../input-types';
|
|
10
10
|
export interface AppPermissionsGetPaddedMaskVariables {
|
|
11
11
|
mask?: string;
|
|
12
12
|
}
|
|
@@ -40,8 +40,9 @@ export interface AppPermissionsGetMaskByNamesVariables {
|
|
|
40
40
|
export interface OrgPermissionsGetMaskByNamesVariables {
|
|
41
41
|
names?: string[];
|
|
42
42
|
}
|
|
43
|
-
export interface
|
|
44
|
-
|
|
43
|
+
export interface GetAllObjectsFromRootVariables {
|
|
44
|
+
databaseId?: string;
|
|
45
|
+
id?: string;
|
|
45
46
|
/** Only read the first `n` values of the set. */
|
|
46
47
|
first?: number;
|
|
47
48
|
/**
|
|
@@ -52,8 +53,10 @@ export interface AppPermissionsGetByMaskVariables {
|
|
|
52
53
|
/** Read all values in the set after (below) this cursor. */
|
|
53
54
|
after?: string;
|
|
54
55
|
}
|
|
55
|
-
export interface
|
|
56
|
-
|
|
56
|
+
export interface GetPathObjectsFromRootVariables {
|
|
57
|
+
databaseId?: string;
|
|
58
|
+
id?: string;
|
|
59
|
+
path?: string[];
|
|
57
60
|
/** Only read the first `n` values of the set. */
|
|
58
61
|
first?: number;
|
|
59
62
|
/**
|
|
@@ -64,9 +67,14 @@ export interface OrgPermissionsGetByMaskVariables {
|
|
|
64
67
|
/** Read all values in the set after (below) this cursor. */
|
|
65
68
|
after?: string;
|
|
66
69
|
}
|
|
67
|
-
export interface
|
|
68
|
-
|
|
69
|
-
|
|
70
|
+
export interface GetObjectAtPathVariables {
|
|
71
|
+
dbId?: string;
|
|
72
|
+
storeId?: string;
|
|
73
|
+
path?: string[];
|
|
74
|
+
refname?: string;
|
|
75
|
+
}
|
|
76
|
+
export interface AppPermissionsGetByMaskVariables {
|
|
77
|
+
mask?: string;
|
|
70
78
|
/** Only read the first `n` values of the set. */
|
|
71
79
|
first?: number;
|
|
72
80
|
/**
|
|
@@ -77,10 +85,8 @@ export interface GetAllObjectsFromRootVariables {
|
|
|
77
85
|
/** Read all values in the set after (below) this cursor. */
|
|
78
86
|
after?: string;
|
|
79
87
|
}
|
|
80
|
-
export interface
|
|
81
|
-
|
|
82
|
-
id?: string;
|
|
83
|
-
path?: string[];
|
|
88
|
+
export interface OrgPermissionsGetByMaskVariables {
|
|
89
|
+
mask?: string;
|
|
84
90
|
/** Only read the first `n` values of the set. */
|
|
85
91
|
first?: number;
|
|
86
92
|
/**
|
|
@@ -91,12 +97,6 @@ export interface GetPathObjectsFromRootVariables {
|
|
|
91
97
|
/** Read all values in the set after (below) this cursor. */
|
|
92
98
|
after?: string;
|
|
93
99
|
}
|
|
94
|
-
export interface GetObjectAtPathVariables {
|
|
95
|
-
dbId?: string;
|
|
96
|
-
storeId?: string;
|
|
97
|
-
path?: string[];
|
|
98
|
-
refname?: string;
|
|
99
|
-
}
|
|
100
100
|
export interface StepsRequiredVariables {
|
|
101
101
|
vlevel?: string;
|
|
102
102
|
vroleId?: string;
|
|
@@ -171,16 +171,6 @@ export declare function createQueryOperations(client: OrmClient): {
|
|
|
171
171
|
}) => QueryBuilder<{
|
|
172
172
|
orgPermissionsGetMaskByNames: string | null;
|
|
173
173
|
}>;
|
|
174
|
-
appPermissionsGetByMask: (args: AppPermissionsGetByMaskVariables, options?: {
|
|
175
|
-
select?: Record<string, unknown>;
|
|
176
|
-
}) => QueryBuilder<{
|
|
177
|
-
appPermissionsGetByMask: AppPermissionConnection | null;
|
|
178
|
-
}>;
|
|
179
|
-
orgPermissionsGetByMask: (args: OrgPermissionsGetByMaskVariables, options?: {
|
|
180
|
-
select?: Record<string, unknown>;
|
|
181
|
-
}) => QueryBuilder<{
|
|
182
|
-
orgPermissionsGetByMask: OrgPermissionConnection | null;
|
|
183
|
-
}>;
|
|
184
174
|
getAllObjectsFromRoot: (args: GetAllObjectsFromRootVariables, options?: {
|
|
185
175
|
select?: Record<string, unknown>;
|
|
186
176
|
}) => QueryBuilder<{
|
|
@@ -196,6 +186,16 @@ export declare function createQueryOperations(client: OrmClient): {
|
|
|
196
186
|
} & StrictSelect<S, ObjectSelect>) => QueryBuilder<{
|
|
197
187
|
getObjectAtPath: InferSelectResult<Object, S> | null;
|
|
198
188
|
}>;
|
|
189
|
+
appPermissionsGetByMask: (args: AppPermissionsGetByMaskVariables, options?: {
|
|
190
|
+
select?: Record<string, unknown>;
|
|
191
|
+
}) => QueryBuilder<{
|
|
192
|
+
appPermissionsGetByMask: AppPermissionConnection | null;
|
|
193
|
+
}>;
|
|
194
|
+
orgPermissionsGetByMask: (args: OrgPermissionsGetByMaskVariables, options?: {
|
|
195
|
+
select?: Record<string, unknown>;
|
|
196
|
+
}) => QueryBuilder<{
|
|
197
|
+
orgPermissionsGetByMask: OrgPermissionConnection | null;
|
|
198
|
+
}>;
|
|
199
199
|
stepsRequired: (args: StepsRequiredVariables, options?: {
|
|
200
200
|
select?: Record<string, unknown>;
|
|
201
201
|
}) => QueryBuilder<{
|
|
@@ -155,54 +155,6 @@ export function createQueryOperations(client) {
|
|
|
155
155
|
},
|
|
156
156
|
], connectionFieldsMap, undefined),
|
|
157
157
|
}),
|
|
158
|
-
appPermissionsGetByMask: (args, options) => new QueryBuilder({
|
|
159
|
-
client,
|
|
160
|
-
operation: 'query',
|
|
161
|
-
operationName: 'AppPermissionsGetByMask',
|
|
162
|
-
fieldName: 'appPermissionsGetByMask',
|
|
163
|
-
...buildCustomDocument('query', 'AppPermissionsGetByMask', 'appPermissionsGetByMask', options?.select, args, [
|
|
164
|
-
{
|
|
165
|
-
name: 'mask',
|
|
166
|
-
type: 'BitString',
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
name: 'first',
|
|
170
|
-
type: 'Int',
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
name: 'offset',
|
|
174
|
-
type: 'Int',
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
name: 'after',
|
|
178
|
-
type: 'Cursor',
|
|
179
|
-
},
|
|
180
|
-
], connectionFieldsMap, undefined),
|
|
181
|
-
}),
|
|
182
|
-
orgPermissionsGetByMask: (args, options) => new QueryBuilder({
|
|
183
|
-
client,
|
|
184
|
-
operation: 'query',
|
|
185
|
-
operationName: 'OrgPermissionsGetByMask',
|
|
186
|
-
fieldName: 'orgPermissionsGetByMask',
|
|
187
|
-
...buildCustomDocument('query', 'OrgPermissionsGetByMask', 'orgPermissionsGetByMask', options?.select, args, [
|
|
188
|
-
{
|
|
189
|
-
name: 'mask',
|
|
190
|
-
type: 'BitString',
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
name: 'first',
|
|
194
|
-
type: 'Int',
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
name: 'offset',
|
|
198
|
-
type: 'Int',
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
name: 'after',
|
|
202
|
-
type: 'Cursor',
|
|
203
|
-
},
|
|
204
|
-
], connectionFieldsMap, undefined),
|
|
205
|
-
}),
|
|
206
158
|
getAllObjectsFromRoot: (args, options) => new QueryBuilder({
|
|
207
159
|
client,
|
|
208
160
|
operation: 'query',
|
|
@@ -287,6 +239,54 @@ export function createQueryOperations(client) {
|
|
|
287
239
|
},
|
|
288
240
|
], connectionFieldsMap, 'Object'),
|
|
289
241
|
}),
|
|
242
|
+
appPermissionsGetByMask: (args, options) => new QueryBuilder({
|
|
243
|
+
client,
|
|
244
|
+
operation: 'query',
|
|
245
|
+
operationName: 'AppPermissionsGetByMask',
|
|
246
|
+
fieldName: 'appPermissionsGetByMask',
|
|
247
|
+
...buildCustomDocument('query', 'AppPermissionsGetByMask', 'appPermissionsGetByMask', options?.select, args, [
|
|
248
|
+
{
|
|
249
|
+
name: 'mask',
|
|
250
|
+
type: 'BitString',
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
name: 'first',
|
|
254
|
+
type: 'Int',
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
name: 'offset',
|
|
258
|
+
type: 'Int',
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
name: 'after',
|
|
262
|
+
type: 'Cursor',
|
|
263
|
+
},
|
|
264
|
+
], connectionFieldsMap, undefined),
|
|
265
|
+
}),
|
|
266
|
+
orgPermissionsGetByMask: (args, options) => new QueryBuilder({
|
|
267
|
+
client,
|
|
268
|
+
operation: 'query',
|
|
269
|
+
operationName: 'OrgPermissionsGetByMask',
|
|
270
|
+
fieldName: 'orgPermissionsGetByMask',
|
|
271
|
+
...buildCustomDocument('query', 'OrgPermissionsGetByMask', 'orgPermissionsGetByMask', options?.select, args, [
|
|
272
|
+
{
|
|
273
|
+
name: 'mask',
|
|
274
|
+
type: 'BitString',
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
name: 'first',
|
|
278
|
+
type: 'Int',
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
name: 'offset',
|
|
282
|
+
type: 'Int',
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
name: 'after',
|
|
286
|
+
type: 'Cursor',
|
|
287
|
+
},
|
|
288
|
+
], connectionFieldsMap, undefined),
|
|
289
|
+
}),
|
|
290
290
|
stepsRequired: (args, options) => new QueryBuilder({
|
|
291
291
|
client,
|
|
292
292
|
operation: 'query',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@constructive-io/sdk",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.5",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "Constructive SDK - Auto-generated GraphQL types and ORM client",
|
|
6
6
|
"main": "index.js",
|
|
@@ -39,16 +39,16 @@
|
|
|
39
39
|
],
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@0no-co/graphql.web": "^1.1.2",
|
|
42
|
-
"@constructive-io/graphql-types": "^3.3.
|
|
43
|
-
"gql-ast": "^3.3.
|
|
44
|
-
"graphql": "
|
|
42
|
+
"@constructive-io/graphql-types": "^3.3.3",
|
|
43
|
+
"gql-ast": "^3.3.3",
|
|
44
|
+
"graphql": "16.13.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@constructive-io/graphql-codegen": "^4.14.
|
|
47
|
+
"@constructive-io/graphql-codegen": "^4.14.4",
|
|
48
48
|
"@types/node": "^22.19.11",
|
|
49
49
|
"makage": "^0.1.12",
|
|
50
50
|
"tsx": "^4.19.0",
|
|
51
51
|
"typescript": "^5.9.3"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "b91bf2090624f42c566429294293ac70a9a9d5d8"
|
|
54
54
|
}
|