@constructive-sdk/cli 0.14.0 → 0.14.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/admin/cli/commands/app-membership.js +22 -0
- package/admin/cli/commands/membership-type.js +44 -0
- package/{auth/cli/commands/connected-account.d.ts → admin/cli/commands/org-member-profile.d.ts} +1 -1
- package/admin/cli/commands/org-member-profile.js +392 -0
- package/admin/cli/commands/org-membership.js +44 -0
- package/admin/cli/commands.js +7 -5
- package/admin/cli/executor.d.ts +3 -2
- package/admin/orm/index.d.ts +6 -4
- package/admin/orm/index.js +6 -4
- package/admin/orm/input-types.d.ts +503 -295
- package/admin/orm/models/index.d.ts +3 -2
- package/admin/orm/models/index.js +7 -5
- package/admin/orm/models/orgMemberProfile.d.ts +56 -0
- package/{auth/orm/models/connectedAccount.js → admin/orm/models/orgMemberProfile.js} +26 -26
- package/{esm/auth/cli/commands/one-time-token.d.ts → auth/cli/commands/create-api-key.d.ts} +1 -1
- package/{public/cli/commands/one-time-token.js → auth/cli/commands/create-api-key.js} +3 -3
- package/auth/cli/commands/disconnect-account.d.ts +8 -0
- package/auth/cli/commands/{sign-in-one-time-token.js → disconnect-account.js} +3 -3
- package/auth/cli/commands/provision-new-user.d.ts +8 -0
- package/{public/cli/commands/sign-in-one-time-token.js → auth/cli/commands/provision-new-user.js} +3 -3
- package/auth/cli/commands/request-cross-origin-token.d.ts +8 -0
- package/auth/cli/commands/request-cross-origin-token.js +36 -0
- package/auth/cli/commands/require-step-up.d.ts +8 -0
- package/auth/cli/commands/require-step-up.js +30 -0
- package/auth/cli/commands/{one-time-token.d.ts → revoke-api-key.d.ts} +1 -1
- package/auth/cli/commands/{one-time-token.js → revoke-api-key.js} +3 -3
- package/auth/cli/commands/revoke-session.d.ts +8 -0
- package/auth/cli/commands/revoke-session.js +36 -0
- package/auth/cli/commands/sign-in-cross-origin.d.ts +8 -0
- package/auth/cli/commands/sign-in-cross-origin.js +36 -0
- package/auth/cli/commands/user-connected-account.d.ts +8 -0
- package/auth/cli/commands/user-connected-account.js +176 -0
- package/auth/cli/commands.js +23 -11
- package/auth/cli/executor.d.ts +44 -14
- package/auth/orm/index.d.ts +45 -15
- package/auth/orm/index.js +2 -2
- package/auth/orm/input-types.d.ts +186 -251
- package/auth/orm/input-types.js +0 -1
- package/auth/orm/models/index.d.ts +1 -1
- package/auth/orm/models/index.js +3 -3
- package/auth/orm/models/userConnectedAccount.d.ts +38 -0
- package/auth/orm/models/userConnectedAccount.js +76 -0
- package/auth/orm/mutation/index.d.ts +56 -16
- package/auth/orm/mutation/index.js +78 -18
- package/auth/orm/query/index.d.ts +12 -4
- package/auth/orm/query/index.js +19 -7
- package/esm/admin/cli/commands/app-membership.js +22 -0
- package/esm/admin/cli/commands/membership-type.js +44 -0
- package/esm/{public/cli/commands/connected-account.d.ts → admin/cli/commands/org-member-profile.d.ts} +1 -1
- package/esm/admin/cli/commands/org-member-profile.js +390 -0
- package/esm/admin/cli/commands/org-membership.js +44 -0
- package/esm/admin/cli/commands.js +7 -5
- package/esm/admin/cli/executor.d.ts +3 -2
- package/esm/admin/orm/index.d.ts +6 -4
- package/esm/admin/orm/index.js +6 -4
- package/esm/admin/orm/input-types.d.ts +503 -295
- package/esm/admin/orm/models/index.d.ts +3 -2
- package/esm/admin/orm/models/index.js +3 -2
- package/esm/admin/orm/models/orgMemberProfile.d.ts +56 -0
- package/esm/{public/orm/models/connectedAccount.js → admin/orm/models/orgMemberProfile.js} +24 -24
- package/esm/auth/cli/commands/create-api-key.d.ts +8 -0
- package/esm/{public/cli/commands/one-time-token.js → auth/cli/commands/create-api-key.js} +3 -3
- package/esm/auth/cli/commands/disconnect-account.d.ts +8 -0
- package/esm/auth/cli/commands/{sign-in-one-time-token.js → disconnect-account.js} +3 -3
- package/esm/auth/cli/commands/provision-new-user.d.ts +8 -0
- package/esm/{public/cli/commands/sign-in-one-time-token.js → auth/cli/commands/provision-new-user.js} +3 -3
- package/esm/auth/cli/commands/request-cross-origin-token.d.ts +8 -0
- package/esm/auth/cli/commands/request-cross-origin-token.js +34 -0
- package/esm/auth/cli/commands/require-step-up.d.ts +8 -0
- package/esm/auth/cli/commands/require-step-up.js +28 -0
- package/esm/auth/cli/commands/revoke-api-key.d.ts +8 -0
- package/esm/auth/cli/commands/{one-time-token.js → revoke-api-key.js} +3 -3
- package/esm/auth/cli/commands/revoke-session.d.ts +8 -0
- package/esm/auth/cli/commands/revoke-session.js +34 -0
- package/esm/auth/cli/commands/sign-in-cross-origin.d.ts +8 -0
- package/esm/auth/cli/commands/sign-in-cross-origin.js +34 -0
- package/esm/auth/cli/commands/user-connected-account.d.ts +8 -0
- package/esm/auth/cli/commands/user-connected-account.js +174 -0
- package/esm/auth/cli/commands.js +23 -11
- package/esm/auth/cli/executor.d.ts +44 -14
- package/esm/auth/orm/index.d.ts +45 -15
- package/esm/auth/orm/index.js +2 -2
- package/esm/auth/orm/input-types.d.ts +186 -251
- package/esm/auth/orm/input-types.js +0 -1
- package/esm/auth/orm/models/index.d.ts +1 -1
- package/esm/auth/orm/models/index.js +1 -1
- package/esm/auth/orm/models/userConnectedAccount.d.ts +38 -0
- package/esm/auth/orm/models/userConnectedAccount.js +72 -0
- package/esm/auth/orm/mutation/index.d.ts +56 -16
- package/esm/auth/orm/mutation/index.js +78 -18
- package/esm/auth/orm/query/index.d.ts +12 -4
- package/esm/auth/orm/query/index.js +19 -7
- package/esm/public/cli/commands/app-membership.js +22 -0
- package/esm/public/cli/commands/construct-blueprint.js +1 -1
- package/esm/public/cli/commands/create-api-key.d.ts +8 -0
- package/esm/public/cli/commands/create-api-key.js +34 -0
- package/{public/cli/commands/connected-account.d.ts → esm/public/cli/commands/devices-module.d.ts} +1 -1
- package/esm/public/cli/commands/{connected-account.js → devices-module.js} +101 -87
- package/esm/public/cli/commands/disconnect-account.d.ts +8 -0
- package/esm/public/cli/commands/disconnect-account.js +34 -0
- package/esm/public/cli/commands/{table-template-module.d.ts → entity-type-provision.d.ts} +1 -1
- package/esm/public/cli/commands/entity-type-provision.js +554 -0
- package/esm/public/cli/commands/membership-type.js +44 -0
- package/esm/public/cli/commands/memberships-module.js +22 -0
- package/esm/{auth/cli/commands/connected-account.d.ts → public/cli/commands/org-member-profile.d.ts} +1 -1
- package/esm/public/cli/commands/org-member-profile.js +390 -0
- package/esm/public/cli/commands/org-membership.js +44 -0
- package/esm/public/cli/commands/provision-new-user.d.ts +8 -0
- package/esm/public/cli/commands/provision-new-user.js +34 -0
- package/esm/public/cli/commands/provision-spatial-relation.d.ts +8 -0
- package/esm/public/cli/commands/provision-spatial-relation.js +34 -0
- package/esm/public/cli/commands/request-cross-origin-token.d.ts +8 -0
- package/esm/public/cli/commands/request-cross-origin-token.js +34 -0
- package/esm/public/cli/commands/require-step-up.d.ts +8 -0
- package/esm/public/cli/commands/require-step-up.js +28 -0
- package/{auth/cli/commands/sign-in-one-time-token.d.ts → esm/public/cli/commands/resolve-blueprint-field.d.ts} +1 -1
- package/esm/public/cli/commands/resolve-blueprint-field.js +38 -0
- package/esm/public/cli/commands/revoke-api-key.d.ts +8 -0
- package/esm/public/cli/commands/revoke-api-key.js +34 -0
- package/esm/public/cli/commands/revoke-session.d.ts +8 -0
- package/esm/public/cli/commands/revoke-session.js +34 -0
- package/esm/public/cli/commands/session-secrets-module.d.ts +8 -0
- package/esm/{auth/cli/commands/connected-account.js → public/cli/commands/session-secrets-module.js} +82 -90
- package/esm/public/cli/commands/sign-in-cross-origin.d.ts +8 -0
- package/esm/public/cli/commands/sign-in-cross-origin.js +34 -0
- package/esm/public/cli/commands/spatial-relation.d.ts +8 -0
- package/esm/public/cli/commands/spatial-relation.js +472 -0
- package/esm/public/cli/commands/user-auth-module.js +24 -24
- package/esm/public/cli/commands/user-connected-account.d.ts +8 -0
- package/esm/public/cli/commands/user-connected-account.js +174 -0
- package/esm/public/cli/commands/webauthn-credentials-module.d.ts +8 -0
- package/esm/public/cli/commands/{table-template-module.js → webauthn-credentials-module.js} +8 -48
- package/esm/public/cli/commands.js +41 -15
- package/esm/public/cli/executor.d.ts +61 -16
- package/esm/public/orm/index.d.ts +69 -19
- package/esm/public/orm/index.js +16 -6
- package/esm/public/orm/input-types.d.ts +2047 -640
- package/esm/public/orm/input-types.js +15 -6
- package/esm/public/orm/models/devicesModule.d.ts +56 -0
- package/esm/public/orm/models/devicesModule.js +96 -0
- package/esm/public/orm/models/entityTypeProvision.d.ts +56 -0
- package/esm/public/orm/models/{tableTemplateModule.js → entityTypeProvision.js} +24 -24
- package/esm/public/orm/models/index.d.ts +8 -3
- package/esm/public/orm/models/index.js +8 -3
- package/esm/public/orm/models/orgMemberProfile.d.ts +56 -0
- package/esm/{auth/orm/models/connectedAccount.js → public/orm/models/orgMemberProfile.js} +24 -24
- package/esm/public/orm/models/sessionSecretsModule.d.ts +56 -0
- package/esm/public/orm/models/sessionSecretsModule.js +96 -0
- package/esm/public/orm/models/spatialRelation.d.ts +56 -0
- package/esm/public/orm/models/spatialRelation.js +96 -0
- package/esm/public/orm/models/userConnectedAccount.d.ts +38 -0
- package/esm/public/orm/models/userConnectedAccount.js +72 -0
- package/esm/public/orm/models/webauthnCredentialsModule.d.ts +56 -0
- package/esm/public/orm/models/webauthnCredentialsModule.js +96 -0
- package/esm/public/orm/mutation/index.d.ts +72 -20
- package/esm/public/orm/mutation/index.js +96 -24
- package/esm/public/orm/query/index.d.ts +24 -2
- package/esm/public/orm/query/index.js +36 -4
- package/package.json +2 -2
- package/public/cli/commands/app-membership.js +22 -0
- package/public/cli/commands/construct-blueprint.js +1 -1
- package/public/cli/commands/create-api-key.d.ts +8 -0
- package/public/cli/commands/create-api-key.js +36 -0
- package/public/cli/commands/devices-module.d.ts +8 -0
- package/{auth/cli/commands/connected-account.js → public/cli/commands/devices-module.js} +101 -87
- package/public/cli/commands/disconnect-account.d.ts +8 -0
- package/public/cli/commands/disconnect-account.js +36 -0
- package/public/cli/commands/entity-type-provision.d.ts +8 -0
- package/public/cli/commands/entity-type-provision.js +556 -0
- package/public/cli/commands/membership-type.js +44 -0
- package/public/cli/commands/memberships-module.js +22 -0
- package/public/cli/commands/org-member-profile.d.ts +8 -0
- package/public/cli/commands/org-member-profile.js +392 -0
- package/public/cli/commands/org-membership.js +44 -0
- package/public/cli/commands/provision-new-user.d.ts +8 -0
- package/public/cli/commands/provision-new-user.js +36 -0
- package/public/cli/commands/provision-spatial-relation.d.ts +8 -0
- package/public/cli/commands/provision-spatial-relation.js +36 -0
- package/public/cli/commands/request-cross-origin-token.d.ts +8 -0
- package/public/cli/commands/request-cross-origin-token.js +36 -0
- package/public/cli/commands/require-step-up.d.ts +8 -0
- package/public/cli/commands/require-step-up.js +30 -0
- package/public/cli/commands/resolve-blueprint-field.d.ts +8 -0
- package/public/cli/commands/resolve-blueprint-field.js +40 -0
- package/public/cli/commands/revoke-api-key.d.ts +8 -0
- package/public/cli/commands/revoke-api-key.js +36 -0
- package/public/cli/commands/revoke-session.d.ts +8 -0
- package/public/cli/commands/revoke-session.js +36 -0
- package/public/cli/commands/session-secrets-module.d.ts +8 -0
- package/public/cli/commands/{connected-account.js → session-secrets-module.js} +82 -90
- package/public/cli/commands/sign-in-cross-origin.d.ts +8 -0
- package/public/cli/commands/sign-in-cross-origin.js +36 -0
- package/public/cli/commands/spatial-relation.d.ts +8 -0
- package/public/cli/commands/spatial-relation.js +474 -0
- package/public/cli/commands/user-auth-module.js +24 -24
- package/public/cli/commands/user-connected-account.d.ts +8 -0
- package/public/cli/commands/user-connected-account.js +176 -0
- package/public/cli/commands/webauthn-credentials-module.d.ts +8 -0
- package/public/cli/commands/{table-template-module.js → webauthn-credentials-module.js} +8 -48
- package/public/cli/commands.js +41 -15
- package/public/cli/executor.d.ts +61 -16
- package/public/orm/index.d.ts +69 -19
- package/public/orm/index.js +16 -6
- package/public/orm/input-types.d.ts +2047 -640
- package/public/orm/input-types.js +15 -6
- package/public/orm/models/devicesModule.d.ts +56 -0
- package/public/orm/models/devicesModule.js +100 -0
- package/public/orm/models/entityTypeProvision.d.ts +56 -0
- package/public/orm/models/{tableTemplateModule.js → entityTypeProvision.js} +26 -26
- package/public/orm/models/index.d.ts +8 -3
- package/public/orm/models/index.js +19 -9
- package/public/orm/models/orgMemberProfile.d.ts +56 -0
- package/public/orm/models/{connectedAccount.js → orgMemberProfile.js} +26 -26
- package/public/orm/models/sessionSecretsModule.d.ts +56 -0
- package/public/orm/models/sessionSecretsModule.js +100 -0
- package/public/orm/models/spatialRelation.d.ts +56 -0
- package/public/orm/models/spatialRelation.js +100 -0
- package/public/orm/models/userConnectedAccount.d.ts +38 -0
- package/public/orm/models/userConnectedAccount.js +76 -0
- package/public/orm/models/webauthnCredentialsModule.d.ts +56 -0
- package/public/orm/models/webauthnCredentialsModule.js +100 -0
- package/public/orm/mutation/index.d.ts +72 -20
- package/public/orm/mutation/index.js +96 -24
- package/public/orm/query/index.d.ts +24 -2
- package/public/orm/query/index.js +36 -4
- package/auth/orm/models/connectedAccount.d.ts +0 -56
- package/esm/auth/cli/commands/sign-in-one-time-token.d.ts +0 -8
- package/esm/auth/orm/models/connectedAccount.d.ts +0 -56
- package/esm/public/cli/commands/one-time-token.d.ts +0 -8
- package/esm/public/cli/commands/sign-in-one-time-token.d.ts +0 -8
- package/esm/public/orm/models/connectedAccount.d.ts +0 -56
- package/esm/public/orm/models/tableTemplateModule.d.ts +0 -56
- package/public/cli/commands/one-time-token.d.ts +0 -8
- package/public/cli/commands/sign-in-one-time-token.d.ts +0 -8
- package/public/cli/commands/table-template-module.d.ts +0 -8
- package/public/orm/models/connectedAccount.d.ts +0 -56
- package/public/orm/models/tableTemplateModule.d.ts +0 -56
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateByPkDocument, buildDeleteByPkDocument, } from '../query-builder';
|
|
2
|
+
import { connectionFieldsMap } from '../input-types';
|
|
3
|
+
export class WebauthnCredentialsModuleModel {
|
|
4
|
+
client;
|
|
5
|
+
constructor(client) {
|
|
6
|
+
this.client = client;
|
|
7
|
+
}
|
|
8
|
+
findMany(args) {
|
|
9
|
+
const { document, variables } = buildFindManyDocument('WebauthnCredentialsModule', 'webauthnCredentialsModules', args.select, {
|
|
10
|
+
where: args?.where,
|
|
11
|
+
orderBy: args?.orderBy,
|
|
12
|
+
first: args?.first,
|
|
13
|
+
last: args?.last,
|
|
14
|
+
after: args?.after,
|
|
15
|
+
before: args?.before,
|
|
16
|
+
offset: args?.offset,
|
|
17
|
+
}, 'WebauthnCredentialsModuleFilter', 'WebauthnCredentialsModuleOrderBy', connectionFieldsMap);
|
|
18
|
+
return new QueryBuilder({
|
|
19
|
+
client: this.client,
|
|
20
|
+
operation: 'query',
|
|
21
|
+
operationName: 'WebauthnCredentialsModule',
|
|
22
|
+
fieldName: 'webauthnCredentialsModules',
|
|
23
|
+
document,
|
|
24
|
+
variables,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
findFirst(args) {
|
|
28
|
+
const { document, variables } = buildFindFirstDocument('WebauthnCredentialsModule', 'webauthnCredentialsModules', args.select, {
|
|
29
|
+
where: args?.where,
|
|
30
|
+
}, 'WebauthnCredentialsModuleFilter', connectionFieldsMap);
|
|
31
|
+
return new QueryBuilder({
|
|
32
|
+
client: this.client,
|
|
33
|
+
operation: 'query',
|
|
34
|
+
operationName: 'WebauthnCredentialsModule',
|
|
35
|
+
fieldName: 'webauthnCredentialsModules',
|
|
36
|
+
document,
|
|
37
|
+
variables,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
findOne(args) {
|
|
41
|
+
const { document, variables } = buildFindManyDocument('WebauthnCredentialsModule', 'webauthnCredentialsModules', args.select, {
|
|
42
|
+
where: {
|
|
43
|
+
id: {
|
|
44
|
+
equalTo: args.id,
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
first: 1,
|
|
48
|
+
}, 'WebauthnCredentialsModuleFilter', 'WebauthnCredentialsModuleOrderBy', connectionFieldsMap);
|
|
49
|
+
return new QueryBuilder({
|
|
50
|
+
client: this.client,
|
|
51
|
+
operation: 'query',
|
|
52
|
+
operationName: 'WebauthnCredentialsModule',
|
|
53
|
+
fieldName: 'webauthnCredentialsModule',
|
|
54
|
+
document,
|
|
55
|
+
variables,
|
|
56
|
+
transform: (data) => ({
|
|
57
|
+
webauthnCredentialsModule: data.webauthnCredentialsModules?.nodes?.[0] ?? null,
|
|
58
|
+
}),
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
create(args) {
|
|
62
|
+
const { document, variables } = buildCreateDocument('WebauthnCredentialsModule', 'createWebauthnCredentialsModule', 'webauthnCredentialsModule', args.select, args.data, 'CreateWebauthnCredentialsModuleInput', connectionFieldsMap);
|
|
63
|
+
return new QueryBuilder({
|
|
64
|
+
client: this.client,
|
|
65
|
+
operation: 'mutation',
|
|
66
|
+
operationName: 'WebauthnCredentialsModule',
|
|
67
|
+
fieldName: 'createWebauthnCredentialsModule',
|
|
68
|
+
document,
|
|
69
|
+
variables,
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
update(args) {
|
|
73
|
+
const { document, variables } = buildUpdateByPkDocument('WebauthnCredentialsModule', 'updateWebauthnCredentialsModule', 'webauthnCredentialsModule', args.select, args.where.id, args.data, 'UpdateWebauthnCredentialsModuleInput', 'id', 'webauthnCredentialsModulePatch', connectionFieldsMap);
|
|
74
|
+
return new QueryBuilder({
|
|
75
|
+
client: this.client,
|
|
76
|
+
operation: 'mutation',
|
|
77
|
+
operationName: 'WebauthnCredentialsModule',
|
|
78
|
+
fieldName: 'updateWebauthnCredentialsModule',
|
|
79
|
+
document,
|
|
80
|
+
variables,
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
delete(args) {
|
|
84
|
+
const { document, variables } = buildDeleteByPkDocument('WebauthnCredentialsModule', 'deleteWebauthnCredentialsModule', 'webauthnCredentialsModule', {
|
|
85
|
+
id: args.where.id,
|
|
86
|
+
}, 'DeleteWebauthnCredentialsModuleInput', args.select, connectionFieldsMap);
|
|
87
|
+
return new QueryBuilder({
|
|
88
|
+
client: this.client,
|
|
89
|
+
operation: 'mutation',
|
|
90
|
+
operationName: 'WebauthnCredentialsModule',
|
|
91
|
+
fieldName: 'deleteWebauthnCredentialsModule',
|
|
92
|
+
document,
|
|
93
|
+
variables,
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
}
|
|
@@ -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 { SendAccountDeletionEmailInput, SignOutInput, AcceptDatabaseTransferInput, CancelDatabaseTransferInput, RejectDatabaseTransferInput, VerifyPasswordInput, VerifyTotpInput, SubmitAppInviteCodeInput, SubmitOrgInviteCodeInput, CheckPasswordInput, ConfirmDeleteAccountInput, SetPasswordInput, VerifyEmailInput, FreezeObjectsInput, InitEmptyRepoInput, ConstructBlueprintInput, ResetPasswordInput, RemoveNodeAtPathInput, CopyTemplateToBlueprintInput, BootstrapUserInput, SetFieldOrderInput, ProvisionUniqueConstraintInput, ProvisionFullTextSearchInput, ProvisionIndexInput, SetDataAtPathInput, SetPropsAndCommitInput, ProvisionDatabaseWithUserInput, InsertNodeAtPathInput, UpdateNodeAtPathInput, SetAndCommitInput, ProvisionRelationInput, ApplyRlsInput,
|
|
9
|
+
import type { SendAccountDeletionEmailInput, SignOutInput, AcceptDatabaseTransferInput, CancelDatabaseTransferInput, RejectDatabaseTransferInput, DisconnectAccountInput, RevokeApiKeyInput, RevokeSessionInput, VerifyPasswordInput, VerifyTotpInput, SubmitAppInviteCodeInput, SubmitOrgInviteCodeInput, CheckPasswordInput, ConfirmDeleteAccountInput, SetPasswordInput, VerifyEmailInput, FreezeObjectsInput, InitEmptyRepoInput, ConstructBlueprintInput, ProvisionNewUserInput, ResetPasswordInput, RemoveNodeAtPathInput, CopyTemplateToBlueprintInput, CreateApiKeyInput, ProvisionSpatialRelationInput, BootstrapUserInput, SetFieldOrderInput, ProvisionUniqueConstraintInput, ProvisionFullTextSearchInput, ProvisionIndexInput, SetDataAtPathInput, SetPropsAndCommitInput, ProvisionDatabaseWithUserInput, InsertNodeAtPathInput, UpdateNodeAtPathInput, SetAndCommitInput, ProvisionRelationInput, ApplyRlsInput, SignInCrossOriginInput, CreateUserDatabaseInput, ExtendTokenExpiresInput, SignUpInput, RequestCrossOriginTokenInput, SignInInput, ProvisionTableInput, SendVerificationEmailInput, ForgotPasswordInput, RequestUploadUrlInput, ConfirmUploadInput, ProvisionBucketInput, SendAccountDeletionEmailPayload, SignOutPayload, AcceptDatabaseTransferPayload, CancelDatabaseTransferPayload, RejectDatabaseTransferPayload, DisconnectAccountPayload, RevokeApiKeyPayload, RevokeSessionPayload, VerifyPasswordPayload, VerifyTotpPayload, SubmitAppInviteCodePayload, SubmitOrgInviteCodePayload, CheckPasswordPayload, ConfirmDeleteAccountPayload, SetPasswordPayload, VerifyEmailPayload, FreezeObjectsPayload, InitEmptyRepoPayload, ConstructBlueprintPayload, ProvisionNewUserPayload, ResetPasswordPayload, RemoveNodeAtPathPayload, CopyTemplateToBlueprintPayload, CreateApiKeyPayload, ProvisionSpatialRelationPayload, BootstrapUserPayload, SetFieldOrderPayload, ProvisionUniqueConstraintPayload, ProvisionFullTextSearchPayload, ProvisionIndexPayload, SetDataAtPathPayload, SetPropsAndCommitPayload, ProvisionDatabaseWithUserPayload, InsertNodeAtPathPayload, UpdateNodeAtPathPayload, SetAndCommitPayload, ProvisionRelationPayload, ApplyRlsPayload, SignInCrossOriginPayload, CreateUserDatabasePayload, ExtendTokenExpiresPayload, SignUpPayload, RequestCrossOriginTokenPayload, SignInPayload, ProvisionTablePayload, SendVerificationEmailPayload, ForgotPasswordPayload, RequestUploadUrlPayload, ConfirmUploadPayload, ProvisionBucketPayload, SendAccountDeletionEmailPayloadSelect, SignOutPayloadSelect, AcceptDatabaseTransferPayloadSelect, CancelDatabaseTransferPayloadSelect, RejectDatabaseTransferPayloadSelect, DisconnectAccountPayloadSelect, RevokeApiKeyPayloadSelect, RevokeSessionPayloadSelect, VerifyPasswordPayloadSelect, VerifyTotpPayloadSelect, SubmitAppInviteCodePayloadSelect, SubmitOrgInviteCodePayloadSelect, CheckPasswordPayloadSelect, ConfirmDeleteAccountPayloadSelect, SetPasswordPayloadSelect, VerifyEmailPayloadSelect, FreezeObjectsPayloadSelect, InitEmptyRepoPayloadSelect, ConstructBlueprintPayloadSelect, ProvisionNewUserPayloadSelect, ResetPasswordPayloadSelect, RemoveNodeAtPathPayloadSelect, CopyTemplateToBlueprintPayloadSelect, CreateApiKeyPayloadSelect, ProvisionSpatialRelationPayloadSelect, BootstrapUserPayloadSelect, SetFieldOrderPayloadSelect, ProvisionUniqueConstraintPayloadSelect, ProvisionFullTextSearchPayloadSelect, ProvisionIndexPayloadSelect, SetDataAtPathPayloadSelect, SetPropsAndCommitPayloadSelect, ProvisionDatabaseWithUserPayloadSelect, InsertNodeAtPathPayloadSelect, UpdateNodeAtPathPayloadSelect, SetAndCommitPayloadSelect, ProvisionRelationPayloadSelect, ApplyRlsPayloadSelect, SignInCrossOriginPayloadSelect, CreateUserDatabasePayloadSelect, ExtendTokenExpiresPayloadSelect, SignUpPayloadSelect, RequestCrossOriginTokenPayloadSelect, SignInPayloadSelect, ProvisionTablePayloadSelect, SendVerificationEmailPayloadSelect, ForgotPasswordPayloadSelect, RequestUploadUrlPayloadSelect, ConfirmUploadPayloadSelect, ProvisionBucketPayloadSelect } from '../input-types';
|
|
10
10
|
export interface SendAccountDeletionEmailVariables {
|
|
11
11
|
input: SendAccountDeletionEmailInput;
|
|
12
12
|
}
|
|
@@ -22,6 +22,15 @@ export interface CancelDatabaseTransferVariables {
|
|
|
22
22
|
export interface RejectDatabaseTransferVariables {
|
|
23
23
|
input: RejectDatabaseTransferInput;
|
|
24
24
|
}
|
|
25
|
+
export interface DisconnectAccountVariables {
|
|
26
|
+
input: DisconnectAccountInput;
|
|
27
|
+
}
|
|
28
|
+
export interface RevokeApiKeyVariables {
|
|
29
|
+
input: RevokeApiKeyInput;
|
|
30
|
+
}
|
|
31
|
+
export interface RevokeSessionVariables {
|
|
32
|
+
input: RevokeSessionInput;
|
|
33
|
+
}
|
|
25
34
|
export interface VerifyPasswordVariables {
|
|
26
35
|
input: VerifyPasswordInput;
|
|
27
36
|
}
|
|
@@ -54,11 +63,14 @@ export interface InitEmptyRepoVariables {
|
|
|
54
63
|
}
|
|
55
64
|
/**
|
|
56
65
|
* Variables for constructBlueprint
|
|
57
|
-
* Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt.
|
|
66
|
+
* Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Six phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security, (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints are deferred), (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level indexes/fts/unique_constraints are deferred to phases 3-5 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure.
|
|
58
67
|
*/
|
|
59
68
|
export interface ConstructBlueprintVariables {
|
|
60
69
|
input: ConstructBlueprintInput;
|
|
61
70
|
}
|
|
71
|
+
export interface ProvisionNewUserVariables {
|
|
72
|
+
input: ProvisionNewUserInput;
|
|
73
|
+
}
|
|
62
74
|
export interface ResetPasswordVariables {
|
|
63
75
|
input: ResetPasswordInput;
|
|
64
76
|
}
|
|
@@ -72,6 +84,16 @@ export interface RemoveNodeAtPathVariables {
|
|
|
72
84
|
export interface CopyTemplateToBlueprintVariables {
|
|
73
85
|
input: CopyTemplateToBlueprintInput;
|
|
74
86
|
}
|
|
87
|
+
export interface CreateApiKeyVariables {
|
|
88
|
+
input: CreateApiKeyInput;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Variables for provisionSpatialRelation
|
|
92
|
+
* Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin ↔ param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist — this is a metadata-only insert.
|
|
93
|
+
*/
|
|
94
|
+
export interface ProvisionSpatialRelationVariables {
|
|
95
|
+
input: ProvisionSpatialRelationInput;
|
|
96
|
+
}
|
|
75
97
|
export interface BootstrapUserVariables {
|
|
76
98
|
input: BootstrapUserInput;
|
|
77
99
|
}
|
|
@@ -127,8 +149,8 @@ export interface ProvisionRelationVariables {
|
|
|
127
149
|
export interface ApplyRlsVariables {
|
|
128
150
|
input: ApplyRlsInput;
|
|
129
151
|
}
|
|
130
|
-
export interface
|
|
131
|
-
input:
|
|
152
|
+
export interface SignInCrossOriginVariables {
|
|
153
|
+
input: SignInCrossOriginInput;
|
|
132
154
|
}
|
|
133
155
|
/**
|
|
134
156
|
* Variables for createUserDatabase
|
|
@@ -155,14 +177,14 @@ export interface CreateUserDatabaseVariables {
|
|
|
155
177
|
export interface ExtendTokenExpiresVariables {
|
|
156
178
|
input: ExtendTokenExpiresInput;
|
|
157
179
|
}
|
|
158
|
-
export interface SignInVariables {
|
|
159
|
-
input: SignInInput;
|
|
160
|
-
}
|
|
161
180
|
export interface SignUpVariables {
|
|
162
181
|
input: SignUpInput;
|
|
163
182
|
}
|
|
164
|
-
export interface
|
|
165
|
-
input:
|
|
183
|
+
export interface RequestCrossOriginTokenVariables {
|
|
184
|
+
input: RequestCrossOriginTokenInput;
|
|
185
|
+
}
|
|
186
|
+
export interface SignInVariables {
|
|
187
|
+
input: SignInInput;
|
|
166
188
|
}
|
|
167
189
|
/**
|
|
168
190
|
* Variables for provisionTable
|
|
@@ -232,6 +254,21 @@ export declare function createMutationOperations(client: OrmClient): {
|
|
|
232
254
|
} & StrictSelect<S, RejectDatabaseTransferPayloadSelect>) => QueryBuilder<{
|
|
233
255
|
rejectDatabaseTransfer: InferSelectResult<RejectDatabaseTransferPayload, S> | null;
|
|
234
256
|
}>;
|
|
257
|
+
disconnectAccount: <S extends DisconnectAccountPayloadSelect>(args: DisconnectAccountVariables, options: {
|
|
258
|
+
select: S;
|
|
259
|
+
} & StrictSelect<S, DisconnectAccountPayloadSelect>) => QueryBuilder<{
|
|
260
|
+
disconnectAccount: InferSelectResult<DisconnectAccountPayload, S> | null;
|
|
261
|
+
}>;
|
|
262
|
+
revokeApiKey: <S extends RevokeApiKeyPayloadSelect>(args: RevokeApiKeyVariables, options: {
|
|
263
|
+
select: S;
|
|
264
|
+
} & StrictSelect<S, RevokeApiKeyPayloadSelect>) => QueryBuilder<{
|
|
265
|
+
revokeApiKey: InferSelectResult<RevokeApiKeyPayload, S> | null;
|
|
266
|
+
}>;
|
|
267
|
+
revokeSession: <S extends RevokeSessionPayloadSelect>(args: RevokeSessionVariables, options: {
|
|
268
|
+
select: S;
|
|
269
|
+
} & StrictSelect<S, RevokeSessionPayloadSelect>) => QueryBuilder<{
|
|
270
|
+
revokeSession: InferSelectResult<RevokeSessionPayload, S> | null;
|
|
271
|
+
}>;
|
|
235
272
|
verifyPassword: <S extends VerifyPasswordPayloadSelect>(args: VerifyPasswordVariables, options: {
|
|
236
273
|
select: S;
|
|
237
274
|
} & StrictSelect<S, VerifyPasswordPayloadSelect>) => QueryBuilder<{
|
|
@@ -287,6 +324,11 @@ export declare function createMutationOperations(client: OrmClient): {
|
|
|
287
324
|
} & StrictSelect<S, ConstructBlueprintPayloadSelect>) => QueryBuilder<{
|
|
288
325
|
constructBlueprint: InferSelectResult<ConstructBlueprintPayload, S> | null;
|
|
289
326
|
}>;
|
|
327
|
+
provisionNewUser: <S extends ProvisionNewUserPayloadSelect>(args: ProvisionNewUserVariables, options: {
|
|
328
|
+
select: S;
|
|
329
|
+
} & StrictSelect<S, ProvisionNewUserPayloadSelect>) => QueryBuilder<{
|
|
330
|
+
provisionNewUser: InferSelectResult<ProvisionNewUserPayload, S> | null;
|
|
331
|
+
}>;
|
|
290
332
|
resetPassword: <S extends ResetPasswordPayloadSelect>(args: ResetPasswordVariables, options: {
|
|
291
333
|
select: S;
|
|
292
334
|
} & StrictSelect<S, ResetPasswordPayloadSelect>) => QueryBuilder<{
|
|
@@ -302,6 +344,16 @@ export declare function createMutationOperations(client: OrmClient): {
|
|
|
302
344
|
} & StrictSelect<S, CopyTemplateToBlueprintPayloadSelect>) => QueryBuilder<{
|
|
303
345
|
copyTemplateToBlueprint: InferSelectResult<CopyTemplateToBlueprintPayload, S> | null;
|
|
304
346
|
}>;
|
|
347
|
+
createApiKey: <S extends CreateApiKeyPayloadSelect>(args: CreateApiKeyVariables, options: {
|
|
348
|
+
select: S;
|
|
349
|
+
} & StrictSelect<S, CreateApiKeyPayloadSelect>) => QueryBuilder<{
|
|
350
|
+
createApiKey: InferSelectResult<CreateApiKeyPayload, S> | null;
|
|
351
|
+
}>;
|
|
352
|
+
provisionSpatialRelation: <S extends ProvisionSpatialRelationPayloadSelect>(args: ProvisionSpatialRelationVariables, options: {
|
|
353
|
+
select: S;
|
|
354
|
+
} & StrictSelect<S, ProvisionSpatialRelationPayloadSelect>) => QueryBuilder<{
|
|
355
|
+
provisionSpatialRelation: InferSelectResult<ProvisionSpatialRelationPayload, S> | null;
|
|
356
|
+
}>;
|
|
305
357
|
bootstrapUser: <S extends BootstrapUserPayloadSelect>(args: BootstrapUserVariables, options: {
|
|
306
358
|
select: S;
|
|
307
359
|
} & StrictSelect<S, BootstrapUserPayloadSelect>) => QueryBuilder<{
|
|
@@ -367,10 +419,10 @@ export declare function createMutationOperations(client: OrmClient): {
|
|
|
367
419
|
} & StrictSelect<S, ApplyRlsPayloadSelect>) => QueryBuilder<{
|
|
368
420
|
applyRls: InferSelectResult<ApplyRlsPayload, S> | null;
|
|
369
421
|
}>;
|
|
370
|
-
|
|
422
|
+
signInCrossOrigin: <S extends SignInCrossOriginPayloadSelect>(args: SignInCrossOriginVariables, options: {
|
|
371
423
|
select: S;
|
|
372
|
-
} & StrictSelect<S,
|
|
373
|
-
|
|
424
|
+
} & StrictSelect<S, SignInCrossOriginPayloadSelect>) => QueryBuilder<{
|
|
425
|
+
signInCrossOrigin: InferSelectResult<SignInCrossOriginPayload, S> | null;
|
|
374
426
|
}>;
|
|
375
427
|
createUserDatabase: <S extends CreateUserDatabasePayloadSelect>(args: CreateUserDatabaseVariables, options: {
|
|
376
428
|
select: S;
|
|
@@ -382,20 +434,20 @@ export declare function createMutationOperations(client: OrmClient): {
|
|
|
382
434
|
} & StrictSelect<S, ExtendTokenExpiresPayloadSelect>) => QueryBuilder<{
|
|
383
435
|
extendTokenExpires: InferSelectResult<ExtendTokenExpiresPayload, S> | null;
|
|
384
436
|
}>;
|
|
385
|
-
signIn: <S extends SignInPayloadSelect>(args: SignInVariables, options: {
|
|
386
|
-
select: S;
|
|
387
|
-
} & StrictSelect<S, SignInPayloadSelect>) => QueryBuilder<{
|
|
388
|
-
signIn: InferSelectResult<SignInPayload, S> | null;
|
|
389
|
-
}>;
|
|
390
437
|
signUp: <S extends SignUpPayloadSelect>(args: SignUpVariables, options: {
|
|
391
438
|
select: S;
|
|
392
439
|
} & StrictSelect<S, SignUpPayloadSelect>) => QueryBuilder<{
|
|
393
440
|
signUp: InferSelectResult<SignUpPayload, S> | null;
|
|
394
441
|
}>;
|
|
395
|
-
|
|
442
|
+
requestCrossOriginToken: <S extends RequestCrossOriginTokenPayloadSelect>(args: RequestCrossOriginTokenVariables, options: {
|
|
396
443
|
select: S;
|
|
397
|
-
} & StrictSelect<S,
|
|
398
|
-
|
|
444
|
+
} & StrictSelect<S, RequestCrossOriginTokenPayloadSelect>) => QueryBuilder<{
|
|
445
|
+
requestCrossOriginToken: InferSelectResult<RequestCrossOriginTokenPayload, S> | null;
|
|
446
|
+
}>;
|
|
447
|
+
signIn: <S extends SignInPayloadSelect>(args: SignInVariables, options: {
|
|
448
|
+
select: S;
|
|
449
|
+
} & StrictSelect<S, SignInPayloadSelect>) => QueryBuilder<{
|
|
450
|
+
signIn: InferSelectResult<SignInPayload, S> | null;
|
|
399
451
|
}>;
|
|
400
452
|
provisionTable: <S extends ProvisionTablePayloadSelect>(args: ProvisionTableVariables, options: {
|
|
401
453
|
select: S;
|
|
@@ -62,6 +62,42 @@ export function createMutationOperations(client) {
|
|
|
62
62
|
},
|
|
63
63
|
], connectionFieldsMap, 'RejectDatabaseTransferPayload'),
|
|
64
64
|
}),
|
|
65
|
+
disconnectAccount: (args, options) => new QueryBuilder({
|
|
66
|
+
client,
|
|
67
|
+
operation: 'mutation',
|
|
68
|
+
operationName: 'DisconnectAccount',
|
|
69
|
+
fieldName: 'disconnectAccount',
|
|
70
|
+
...buildCustomDocument('mutation', 'DisconnectAccount', 'disconnectAccount', options.select, args, [
|
|
71
|
+
{
|
|
72
|
+
name: 'input',
|
|
73
|
+
type: 'DisconnectAccountInput!',
|
|
74
|
+
},
|
|
75
|
+
], connectionFieldsMap, 'DisconnectAccountPayload'),
|
|
76
|
+
}),
|
|
77
|
+
revokeApiKey: (args, options) => new QueryBuilder({
|
|
78
|
+
client,
|
|
79
|
+
operation: 'mutation',
|
|
80
|
+
operationName: 'RevokeApiKey',
|
|
81
|
+
fieldName: 'revokeApiKey',
|
|
82
|
+
...buildCustomDocument('mutation', 'RevokeApiKey', 'revokeApiKey', options.select, args, [
|
|
83
|
+
{
|
|
84
|
+
name: 'input',
|
|
85
|
+
type: 'RevokeApiKeyInput!',
|
|
86
|
+
},
|
|
87
|
+
], connectionFieldsMap, 'RevokeApiKeyPayload'),
|
|
88
|
+
}),
|
|
89
|
+
revokeSession: (args, options) => new QueryBuilder({
|
|
90
|
+
client,
|
|
91
|
+
operation: 'mutation',
|
|
92
|
+
operationName: 'RevokeSession',
|
|
93
|
+
fieldName: 'revokeSession',
|
|
94
|
+
...buildCustomDocument('mutation', 'RevokeSession', 'revokeSession', options.select, args, [
|
|
95
|
+
{
|
|
96
|
+
name: 'input',
|
|
97
|
+
type: 'RevokeSessionInput!',
|
|
98
|
+
},
|
|
99
|
+
], connectionFieldsMap, 'RevokeSessionPayload'),
|
|
100
|
+
}),
|
|
65
101
|
verifyPassword: (args, options) => new QueryBuilder({
|
|
66
102
|
client,
|
|
67
103
|
operation: 'mutation',
|
|
@@ -194,6 +230,18 @@ export function createMutationOperations(client) {
|
|
|
194
230
|
},
|
|
195
231
|
], connectionFieldsMap, 'ConstructBlueprintPayload'),
|
|
196
232
|
}),
|
|
233
|
+
provisionNewUser: (args, options) => new QueryBuilder({
|
|
234
|
+
client,
|
|
235
|
+
operation: 'mutation',
|
|
236
|
+
operationName: 'ProvisionNewUser',
|
|
237
|
+
fieldName: 'provisionNewUser',
|
|
238
|
+
...buildCustomDocument('mutation', 'ProvisionNewUser', 'provisionNewUser', options.select, args, [
|
|
239
|
+
{
|
|
240
|
+
name: 'input',
|
|
241
|
+
type: 'ProvisionNewUserInput!',
|
|
242
|
+
},
|
|
243
|
+
], connectionFieldsMap, 'ProvisionNewUserPayload'),
|
|
244
|
+
}),
|
|
197
245
|
resetPassword: (args, options) => new QueryBuilder({
|
|
198
246
|
client,
|
|
199
247
|
operation: 'mutation',
|
|
@@ -230,6 +278,30 @@ export function createMutationOperations(client) {
|
|
|
230
278
|
},
|
|
231
279
|
], connectionFieldsMap, 'CopyTemplateToBlueprintPayload'),
|
|
232
280
|
}),
|
|
281
|
+
createApiKey: (args, options) => new QueryBuilder({
|
|
282
|
+
client,
|
|
283
|
+
operation: 'mutation',
|
|
284
|
+
operationName: 'CreateApiKey',
|
|
285
|
+
fieldName: 'createApiKey',
|
|
286
|
+
...buildCustomDocument('mutation', 'CreateApiKey', 'createApiKey', options.select, args, [
|
|
287
|
+
{
|
|
288
|
+
name: 'input',
|
|
289
|
+
type: 'CreateApiKeyInput!',
|
|
290
|
+
},
|
|
291
|
+
], connectionFieldsMap, 'CreateApiKeyPayload'),
|
|
292
|
+
}),
|
|
293
|
+
provisionSpatialRelation: (args, options) => new QueryBuilder({
|
|
294
|
+
client,
|
|
295
|
+
operation: 'mutation',
|
|
296
|
+
operationName: 'ProvisionSpatialRelation',
|
|
297
|
+
fieldName: 'provisionSpatialRelation',
|
|
298
|
+
...buildCustomDocument('mutation', 'ProvisionSpatialRelation', 'provisionSpatialRelation', options.select, args, [
|
|
299
|
+
{
|
|
300
|
+
name: 'input',
|
|
301
|
+
type: 'ProvisionSpatialRelationInput!',
|
|
302
|
+
},
|
|
303
|
+
], connectionFieldsMap, 'ProvisionSpatialRelationPayload'),
|
|
304
|
+
}),
|
|
233
305
|
bootstrapUser: (args, options) => new QueryBuilder({
|
|
234
306
|
client,
|
|
235
307
|
operation: 'mutation',
|
|
@@ -386,17 +458,17 @@ export function createMutationOperations(client) {
|
|
|
386
458
|
},
|
|
387
459
|
], connectionFieldsMap, 'ApplyRlsPayload'),
|
|
388
460
|
}),
|
|
389
|
-
|
|
461
|
+
signInCrossOrigin: (args, options) => new QueryBuilder({
|
|
390
462
|
client,
|
|
391
463
|
operation: 'mutation',
|
|
392
|
-
operationName: '
|
|
393
|
-
fieldName: '
|
|
394
|
-
...buildCustomDocument('mutation', '
|
|
464
|
+
operationName: 'SignInCrossOrigin',
|
|
465
|
+
fieldName: 'signInCrossOrigin',
|
|
466
|
+
...buildCustomDocument('mutation', 'SignInCrossOrigin', 'signInCrossOrigin', options.select, args, [
|
|
395
467
|
{
|
|
396
468
|
name: 'input',
|
|
397
|
-
type: '
|
|
469
|
+
type: 'SignInCrossOriginInput!',
|
|
398
470
|
},
|
|
399
|
-
], connectionFieldsMap, '
|
|
471
|
+
], connectionFieldsMap, 'SignInCrossOriginPayload'),
|
|
400
472
|
}),
|
|
401
473
|
createUserDatabase: (args, options) => new QueryBuilder({
|
|
402
474
|
client,
|
|
@@ -422,18 +494,6 @@ export function createMutationOperations(client) {
|
|
|
422
494
|
},
|
|
423
495
|
], connectionFieldsMap, 'ExtendTokenExpiresPayload'),
|
|
424
496
|
}),
|
|
425
|
-
signIn: (args, options) => new QueryBuilder({
|
|
426
|
-
client,
|
|
427
|
-
operation: 'mutation',
|
|
428
|
-
operationName: 'SignIn',
|
|
429
|
-
fieldName: 'signIn',
|
|
430
|
-
...buildCustomDocument('mutation', 'SignIn', 'signIn', options.select, args, [
|
|
431
|
-
{
|
|
432
|
-
name: 'input',
|
|
433
|
-
type: 'SignInInput!',
|
|
434
|
-
},
|
|
435
|
-
], connectionFieldsMap, 'SignInPayload'),
|
|
436
|
-
}),
|
|
437
497
|
signUp: (args, options) => new QueryBuilder({
|
|
438
498
|
client,
|
|
439
499
|
operation: 'mutation',
|
|
@@ -446,17 +506,29 @@ export function createMutationOperations(client) {
|
|
|
446
506
|
},
|
|
447
507
|
], connectionFieldsMap, 'SignUpPayload'),
|
|
448
508
|
}),
|
|
449
|
-
|
|
509
|
+
requestCrossOriginToken: (args, options) => new QueryBuilder({
|
|
450
510
|
client,
|
|
451
511
|
operation: 'mutation',
|
|
452
|
-
operationName: '
|
|
453
|
-
fieldName: '
|
|
454
|
-
...buildCustomDocument('mutation', '
|
|
512
|
+
operationName: 'RequestCrossOriginToken',
|
|
513
|
+
fieldName: 'requestCrossOriginToken',
|
|
514
|
+
...buildCustomDocument('mutation', 'RequestCrossOriginToken', 'requestCrossOriginToken', options.select, args, [
|
|
455
515
|
{
|
|
456
516
|
name: 'input',
|
|
457
|
-
type: '
|
|
517
|
+
type: 'RequestCrossOriginTokenInput!',
|
|
458
518
|
},
|
|
459
|
-
], connectionFieldsMap, '
|
|
519
|
+
], connectionFieldsMap, 'RequestCrossOriginTokenPayload'),
|
|
520
|
+
}),
|
|
521
|
+
signIn: (args, options) => new QueryBuilder({
|
|
522
|
+
client,
|
|
523
|
+
operation: 'mutation',
|
|
524
|
+
operationName: 'SignIn',
|
|
525
|
+
fieldName: 'signIn',
|
|
526
|
+
...buildCustomDocument('mutation', 'SignIn', 'signIn', options.select, args, [
|
|
527
|
+
{
|
|
528
|
+
name: 'input',
|
|
529
|
+
type: 'SignInInput!',
|
|
530
|
+
},
|
|
531
|
+
], connectionFieldsMap, 'SignInPayload'),
|
|
460
532
|
}),
|
|
461
533
|
provisionTable: (args, options) => new QueryBuilder({
|
|
462
534
|
client,
|
|
@@ -7,6 +7,9 @@ import { OrmClient } from '../client';
|
|
|
7
7
|
import { QueryBuilder } from '../query-builder';
|
|
8
8
|
import type { InferSelectResult, StrictSelect } from '../select-types';
|
|
9
9
|
import type { Object, User, ObjectSelect, UserSelect, ObjectConnection, AppPermissionConnection, OrgPermissionConnection, AppLevelRequirementConnection } from '../input-types';
|
|
10
|
+
export interface RequireStepUpVariables {
|
|
11
|
+
stepUpType?: string;
|
|
12
|
+
}
|
|
10
13
|
export interface AppPermissionsGetPaddedMaskVariables {
|
|
11
14
|
mask?: string;
|
|
12
15
|
}
|
|
@@ -22,6 +25,15 @@ export interface RevParseVariables {
|
|
|
22
25
|
storeId?: string;
|
|
23
26
|
refname?: string;
|
|
24
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* Variables for resolveBlueprintField
|
|
30
|
+
* Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. "location") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this.
|
|
31
|
+
*/
|
|
32
|
+
export interface ResolveBlueprintFieldVariables {
|
|
33
|
+
databaseId?: string;
|
|
34
|
+
tableId?: string;
|
|
35
|
+
fieldName?: string;
|
|
36
|
+
}
|
|
25
37
|
export interface OrgIsManagerOfVariables {
|
|
26
38
|
pEntityId?: string;
|
|
27
39
|
pManagerId?: string;
|
|
@@ -127,15 +139,20 @@ export declare function createQueryOperations(client: OrmClient): {
|
|
|
127
139
|
}) => QueryBuilder<{
|
|
128
140
|
currentUserId: string | null;
|
|
129
141
|
}>;
|
|
142
|
+
currentUserAgent: (options?: {
|
|
143
|
+
select?: Record<string, unknown>;
|
|
144
|
+
}) => QueryBuilder<{
|
|
145
|
+
currentUserAgent: string | null;
|
|
146
|
+
}>;
|
|
130
147
|
currentIpAddress: (options?: {
|
|
131
148
|
select?: Record<string, unknown>;
|
|
132
149
|
}) => QueryBuilder<{
|
|
133
150
|
currentIpAddress: string | null;
|
|
134
151
|
}>;
|
|
135
|
-
|
|
152
|
+
requireStepUp: (args: RequireStepUpVariables, options?: {
|
|
136
153
|
select?: Record<string, unknown>;
|
|
137
154
|
}) => QueryBuilder<{
|
|
138
|
-
|
|
155
|
+
requireStepUp: boolean | null;
|
|
139
156
|
}>;
|
|
140
157
|
appPermissionsGetPaddedMask: (args: AppPermissionsGetPaddedMaskVariables, options?: {
|
|
141
158
|
select?: Record<string, unknown>;
|
|
@@ -157,6 +174,11 @@ export declare function createQueryOperations(client: OrmClient): {
|
|
|
157
174
|
}) => QueryBuilder<{
|
|
158
175
|
revParse: string | null;
|
|
159
176
|
}>;
|
|
177
|
+
resolveBlueprintField: (args: ResolveBlueprintFieldVariables, options?: {
|
|
178
|
+
select?: Record<string, unknown>;
|
|
179
|
+
}) => QueryBuilder<{
|
|
180
|
+
resolveBlueprintField: string | null;
|
|
181
|
+
}>;
|
|
160
182
|
orgIsManagerOf: (args: OrgIsManagerOfVariables, options?: {
|
|
161
183
|
select?: Record<string, unknown>;
|
|
162
184
|
}) => QueryBuilder<{
|
|
@@ -9,6 +9,13 @@ export function createQueryOperations(client) {
|
|
|
9
9
|
fieldName: 'currentUserId',
|
|
10
10
|
...buildCustomDocument('query', 'CurrentUserId', 'currentUserId', options?.select, undefined, [], connectionFieldsMap, undefined),
|
|
11
11
|
}),
|
|
12
|
+
currentUserAgent: (options) => new QueryBuilder({
|
|
13
|
+
client,
|
|
14
|
+
operation: 'query',
|
|
15
|
+
operationName: 'CurrentUserAgent',
|
|
16
|
+
fieldName: 'currentUserAgent',
|
|
17
|
+
...buildCustomDocument('query', 'CurrentUserAgent', 'currentUserAgent', options?.select, undefined, [], connectionFieldsMap, undefined),
|
|
18
|
+
}),
|
|
12
19
|
currentIpAddress: (options) => new QueryBuilder({
|
|
13
20
|
client,
|
|
14
21
|
operation: 'query',
|
|
@@ -16,12 +23,17 @@ export function createQueryOperations(client) {
|
|
|
16
23
|
fieldName: 'currentIpAddress',
|
|
17
24
|
...buildCustomDocument('query', 'CurrentIpAddress', 'currentIpAddress', options?.select, undefined, [], connectionFieldsMap, undefined),
|
|
18
25
|
}),
|
|
19
|
-
|
|
26
|
+
requireStepUp: (args, options) => new QueryBuilder({
|
|
20
27
|
client,
|
|
21
28
|
operation: 'query',
|
|
22
|
-
operationName: '
|
|
23
|
-
fieldName: '
|
|
24
|
-
...buildCustomDocument('query', '
|
|
29
|
+
operationName: 'RequireStepUp',
|
|
30
|
+
fieldName: 'requireStepUp',
|
|
31
|
+
...buildCustomDocument('query', 'RequireStepUp', 'requireStepUp', options?.select, args, [
|
|
32
|
+
{
|
|
33
|
+
name: 'stepUpType',
|
|
34
|
+
type: 'String',
|
|
35
|
+
},
|
|
36
|
+
], connectionFieldsMap, undefined),
|
|
25
37
|
}),
|
|
26
38
|
appPermissionsGetPaddedMask: (args, options) => new QueryBuilder({
|
|
27
39
|
client,
|
|
@@ -83,6 +95,26 @@ export function createQueryOperations(client) {
|
|
|
83
95
|
},
|
|
84
96
|
], connectionFieldsMap, undefined),
|
|
85
97
|
}),
|
|
98
|
+
resolveBlueprintField: (args, options) => new QueryBuilder({
|
|
99
|
+
client,
|
|
100
|
+
operation: 'query',
|
|
101
|
+
operationName: 'ResolveBlueprintField',
|
|
102
|
+
fieldName: 'resolveBlueprintField',
|
|
103
|
+
...buildCustomDocument('query', 'ResolveBlueprintField', 'resolveBlueprintField', options?.select, args, [
|
|
104
|
+
{
|
|
105
|
+
name: 'databaseId',
|
|
106
|
+
type: 'UUID',
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
name: 'tableId',
|
|
110
|
+
type: 'UUID',
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
name: 'fieldName',
|
|
114
|
+
type: 'String',
|
|
115
|
+
},
|
|
116
|
+
], connectionFieldsMap, undefined),
|
|
117
|
+
}),
|
|
86
118
|
orgIsManagerOf: (args, options) => new QueryBuilder({
|
|
87
119
|
client,
|
|
88
120
|
operation: 'query',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@constructive-sdk/cli",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.1",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "Constructive CLI SDK - Auto-generated GraphQL CLI with ORM client, context management, and interactive prompts",
|
|
6
6
|
"main": "index.js",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"tsx": "^4.19.0",
|
|
62
62
|
"typescript": "^5.9.3"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "5094bbe92916be47234fe80c583c6957f51226e1"
|
|
65
65
|
}
|