@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,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebauthnCredentialsModuleModel = void 0;
|
|
4
|
+
const query_builder_1 = require("../query-builder");
|
|
5
|
+
const input_types_1 = require("../input-types");
|
|
6
|
+
class WebauthnCredentialsModuleModel {
|
|
7
|
+
client;
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
findMany(args) {
|
|
12
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('WebauthnCredentialsModule', 'webauthnCredentialsModules', args.select, {
|
|
13
|
+
where: args?.where,
|
|
14
|
+
orderBy: args?.orderBy,
|
|
15
|
+
first: args?.first,
|
|
16
|
+
last: args?.last,
|
|
17
|
+
after: args?.after,
|
|
18
|
+
before: args?.before,
|
|
19
|
+
offset: args?.offset,
|
|
20
|
+
}, 'WebauthnCredentialsModuleFilter', 'WebauthnCredentialsModuleOrderBy', input_types_1.connectionFieldsMap);
|
|
21
|
+
return new query_builder_1.QueryBuilder({
|
|
22
|
+
client: this.client,
|
|
23
|
+
operation: 'query',
|
|
24
|
+
operationName: 'WebauthnCredentialsModule',
|
|
25
|
+
fieldName: 'webauthnCredentialsModules',
|
|
26
|
+
document,
|
|
27
|
+
variables,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
findFirst(args) {
|
|
31
|
+
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('WebauthnCredentialsModule', 'webauthnCredentialsModules', args.select, {
|
|
32
|
+
where: args?.where,
|
|
33
|
+
}, 'WebauthnCredentialsModuleFilter', input_types_1.connectionFieldsMap);
|
|
34
|
+
return new query_builder_1.QueryBuilder({
|
|
35
|
+
client: this.client,
|
|
36
|
+
operation: 'query',
|
|
37
|
+
operationName: 'WebauthnCredentialsModule',
|
|
38
|
+
fieldName: 'webauthnCredentialsModules',
|
|
39
|
+
document,
|
|
40
|
+
variables,
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
findOne(args) {
|
|
44
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('WebauthnCredentialsModule', 'webauthnCredentialsModules', args.select, {
|
|
45
|
+
where: {
|
|
46
|
+
id: {
|
|
47
|
+
equalTo: args.id,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
first: 1,
|
|
51
|
+
}, 'WebauthnCredentialsModuleFilter', 'WebauthnCredentialsModuleOrderBy', input_types_1.connectionFieldsMap);
|
|
52
|
+
return new query_builder_1.QueryBuilder({
|
|
53
|
+
client: this.client,
|
|
54
|
+
operation: 'query',
|
|
55
|
+
operationName: 'WebauthnCredentialsModule',
|
|
56
|
+
fieldName: 'webauthnCredentialsModule',
|
|
57
|
+
document,
|
|
58
|
+
variables,
|
|
59
|
+
transform: (data) => ({
|
|
60
|
+
webauthnCredentialsModule: data.webauthnCredentialsModules?.nodes?.[0] ?? null,
|
|
61
|
+
}),
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
create(args) {
|
|
65
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('WebauthnCredentialsModule', 'createWebauthnCredentialsModule', 'webauthnCredentialsModule', args.select, args.data, 'CreateWebauthnCredentialsModuleInput', input_types_1.connectionFieldsMap);
|
|
66
|
+
return new query_builder_1.QueryBuilder({
|
|
67
|
+
client: this.client,
|
|
68
|
+
operation: 'mutation',
|
|
69
|
+
operationName: 'WebauthnCredentialsModule',
|
|
70
|
+
fieldName: 'createWebauthnCredentialsModule',
|
|
71
|
+
document,
|
|
72
|
+
variables,
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
update(args) {
|
|
76
|
+
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('WebauthnCredentialsModule', 'updateWebauthnCredentialsModule', 'webauthnCredentialsModule', args.select, args.where.id, args.data, 'UpdateWebauthnCredentialsModuleInput', 'id', 'webauthnCredentialsModulePatch', input_types_1.connectionFieldsMap);
|
|
77
|
+
return new query_builder_1.QueryBuilder({
|
|
78
|
+
client: this.client,
|
|
79
|
+
operation: 'mutation',
|
|
80
|
+
operationName: 'WebauthnCredentialsModule',
|
|
81
|
+
fieldName: 'updateWebauthnCredentialsModule',
|
|
82
|
+
document,
|
|
83
|
+
variables,
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
delete(args) {
|
|
87
|
+
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('WebauthnCredentialsModule', 'deleteWebauthnCredentialsModule', 'webauthnCredentialsModule', {
|
|
88
|
+
id: args.where.id,
|
|
89
|
+
}, 'DeleteWebauthnCredentialsModuleInput', args.select, input_types_1.connectionFieldsMap);
|
|
90
|
+
return new query_builder_1.QueryBuilder({
|
|
91
|
+
client: this.client,
|
|
92
|
+
operation: 'mutation',
|
|
93
|
+
operationName: 'WebauthnCredentialsModule',
|
|
94
|
+
fieldName: 'deleteWebauthnCredentialsModule',
|
|
95
|
+
document,
|
|
96
|
+
variables,
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
exports.WebauthnCredentialsModuleModel = WebauthnCredentialsModuleModel;
|
|
@@ -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;
|
|
@@ -65,6 +65,42 @@ function createMutationOperations(client) {
|
|
|
65
65
|
},
|
|
66
66
|
], input_types_1.connectionFieldsMap, 'RejectDatabaseTransferPayload'),
|
|
67
67
|
}),
|
|
68
|
+
disconnectAccount: (args, options) => new query_builder_1.QueryBuilder({
|
|
69
|
+
client,
|
|
70
|
+
operation: 'mutation',
|
|
71
|
+
operationName: 'DisconnectAccount',
|
|
72
|
+
fieldName: 'disconnectAccount',
|
|
73
|
+
...(0, query_builder_1.buildCustomDocument)('mutation', 'DisconnectAccount', 'disconnectAccount', options.select, args, [
|
|
74
|
+
{
|
|
75
|
+
name: 'input',
|
|
76
|
+
type: 'DisconnectAccountInput!',
|
|
77
|
+
},
|
|
78
|
+
], input_types_1.connectionFieldsMap, 'DisconnectAccountPayload'),
|
|
79
|
+
}),
|
|
80
|
+
revokeApiKey: (args, options) => new query_builder_1.QueryBuilder({
|
|
81
|
+
client,
|
|
82
|
+
operation: 'mutation',
|
|
83
|
+
operationName: 'RevokeApiKey',
|
|
84
|
+
fieldName: 'revokeApiKey',
|
|
85
|
+
...(0, query_builder_1.buildCustomDocument)('mutation', 'RevokeApiKey', 'revokeApiKey', options.select, args, [
|
|
86
|
+
{
|
|
87
|
+
name: 'input',
|
|
88
|
+
type: 'RevokeApiKeyInput!',
|
|
89
|
+
},
|
|
90
|
+
], input_types_1.connectionFieldsMap, 'RevokeApiKeyPayload'),
|
|
91
|
+
}),
|
|
92
|
+
revokeSession: (args, options) => new query_builder_1.QueryBuilder({
|
|
93
|
+
client,
|
|
94
|
+
operation: 'mutation',
|
|
95
|
+
operationName: 'RevokeSession',
|
|
96
|
+
fieldName: 'revokeSession',
|
|
97
|
+
...(0, query_builder_1.buildCustomDocument)('mutation', 'RevokeSession', 'revokeSession', options.select, args, [
|
|
98
|
+
{
|
|
99
|
+
name: 'input',
|
|
100
|
+
type: 'RevokeSessionInput!',
|
|
101
|
+
},
|
|
102
|
+
], input_types_1.connectionFieldsMap, 'RevokeSessionPayload'),
|
|
103
|
+
}),
|
|
68
104
|
verifyPassword: (args, options) => new query_builder_1.QueryBuilder({
|
|
69
105
|
client,
|
|
70
106
|
operation: 'mutation',
|
|
@@ -197,6 +233,18 @@ function createMutationOperations(client) {
|
|
|
197
233
|
},
|
|
198
234
|
], input_types_1.connectionFieldsMap, 'ConstructBlueprintPayload'),
|
|
199
235
|
}),
|
|
236
|
+
provisionNewUser: (args, options) => new query_builder_1.QueryBuilder({
|
|
237
|
+
client,
|
|
238
|
+
operation: 'mutation',
|
|
239
|
+
operationName: 'ProvisionNewUser',
|
|
240
|
+
fieldName: 'provisionNewUser',
|
|
241
|
+
...(0, query_builder_1.buildCustomDocument)('mutation', 'ProvisionNewUser', 'provisionNewUser', options.select, args, [
|
|
242
|
+
{
|
|
243
|
+
name: 'input',
|
|
244
|
+
type: 'ProvisionNewUserInput!',
|
|
245
|
+
},
|
|
246
|
+
], input_types_1.connectionFieldsMap, 'ProvisionNewUserPayload'),
|
|
247
|
+
}),
|
|
200
248
|
resetPassword: (args, options) => new query_builder_1.QueryBuilder({
|
|
201
249
|
client,
|
|
202
250
|
operation: 'mutation',
|
|
@@ -233,6 +281,30 @@ function createMutationOperations(client) {
|
|
|
233
281
|
},
|
|
234
282
|
], input_types_1.connectionFieldsMap, 'CopyTemplateToBlueprintPayload'),
|
|
235
283
|
}),
|
|
284
|
+
createApiKey: (args, options) => new query_builder_1.QueryBuilder({
|
|
285
|
+
client,
|
|
286
|
+
operation: 'mutation',
|
|
287
|
+
operationName: 'CreateApiKey',
|
|
288
|
+
fieldName: 'createApiKey',
|
|
289
|
+
...(0, query_builder_1.buildCustomDocument)('mutation', 'CreateApiKey', 'createApiKey', options.select, args, [
|
|
290
|
+
{
|
|
291
|
+
name: 'input',
|
|
292
|
+
type: 'CreateApiKeyInput!',
|
|
293
|
+
},
|
|
294
|
+
], input_types_1.connectionFieldsMap, 'CreateApiKeyPayload'),
|
|
295
|
+
}),
|
|
296
|
+
provisionSpatialRelation: (args, options) => new query_builder_1.QueryBuilder({
|
|
297
|
+
client,
|
|
298
|
+
operation: 'mutation',
|
|
299
|
+
operationName: 'ProvisionSpatialRelation',
|
|
300
|
+
fieldName: 'provisionSpatialRelation',
|
|
301
|
+
...(0, query_builder_1.buildCustomDocument)('mutation', 'ProvisionSpatialRelation', 'provisionSpatialRelation', options.select, args, [
|
|
302
|
+
{
|
|
303
|
+
name: 'input',
|
|
304
|
+
type: 'ProvisionSpatialRelationInput!',
|
|
305
|
+
},
|
|
306
|
+
], input_types_1.connectionFieldsMap, 'ProvisionSpatialRelationPayload'),
|
|
307
|
+
}),
|
|
236
308
|
bootstrapUser: (args, options) => new query_builder_1.QueryBuilder({
|
|
237
309
|
client,
|
|
238
310
|
operation: 'mutation',
|
|
@@ -389,17 +461,17 @@ function createMutationOperations(client) {
|
|
|
389
461
|
},
|
|
390
462
|
], input_types_1.connectionFieldsMap, 'ApplyRlsPayload'),
|
|
391
463
|
}),
|
|
392
|
-
|
|
464
|
+
signInCrossOrigin: (args, options) => new query_builder_1.QueryBuilder({
|
|
393
465
|
client,
|
|
394
466
|
operation: 'mutation',
|
|
395
|
-
operationName: '
|
|
396
|
-
fieldName: '
|
|
397
|
-
...(0, query_builder_1.buildCustomDocument)('mutation', '
|
|
467
|
+
operationName: 'SignInCrossOrigin',
|
|
468
|
+
fieldName: 'signInCrossOrigin',
|
|
469
|
+
...(0, query_builder_1.buildCustomDocument)('mutation', 'SignInCrossOrigin', 'signInCrossOrigin', options.select, args, [
|
|
398
470
|
{
|
|
399
471
|
name: 'input',
|
|
400
|
-
type: '
|
|
472
|
+
type: 'SignInCrossOriginInput!',
|
|
401
473
|
},
|
|
402
|
-
], input_types_1.connectionFieldsMap, '
|
|
474
|
+
], input_types_1.connectionFieldsMap, 'SignInCrossOriginPayload'),
|
|
403
475
|
}),
|
|
404
476
|
createUserDatabase: (args, options) => new query_builder_1.QueryBuilder({
|
|
405
477
|
client,
|
|
@@ -425,18 +497,6 @@ function createMutationOperations(client) {
|
|
|
425
497
|
},
|
|
426
498
|
], input_types_1.connectionFieldsMap, 'ExtendTokenExpiresPayload'),
|
|
427
499
|
}),
|
|
428
|
-
signIn: (args, options) => new query_builder_1.QueryBuilder({
|
|
429
|
-
client,
|
|
430
|
-
operation: 'mutation',
|
|
431
|
-
operationName: 'SignIn',
|
|
432
|
-
fieldName: 'signIn',
|
|
433
|
-
...(0, query_builder_1.buildCustomDocument)('mutation', 'SignIn', 'signIn', options.select, args, [
|
|
434
|
-
{
|
|
435
|
-
name: 'input',
|
|
436
|
-
type: 'SignInInput!',
|
|
437
|
-
},
|
|
438
|
-
], input_types_1.connectionFieldsMap, 'SignInPayload'),
|
|
439
|
-
}),
|
|
440
500
|
signUp: (args, options) => new query_builder_1.QueryBuilder({
|
|
441
501
|
client,
|
|
442
502
|
operation: 'mutation',
|
|
@@ -449,17 +509,29 @@ function createMutationOperations(client) {
|
|
|
449
509
|
},
|
|
450
510
|
], input_types_1.connectionFieldsMap, 'SignUpPayload'),
|
|
451
511
|
}),
|
|
452
|
-
|
|
512
|
+
requestCrossOriginToken: (args, options) => new query_builder_1.QueryBuilder({
|
|
453
513
|
client,
|
|
454
514
|
operation: 'mutation',
|
|
455
|
-
operationName: '
|
|
456
|
-
fieldName: '
|
|
457
|
-
...(0, query_builder_1.buildCustomDocument)('mutation', '
|
|
515
|
+
operationName: 'RequestCrossOriginToken',
|
|
516
|
+
fieldName: 'requestCrossOriginToken',
|
|
517
|
+
...(0, query_builder_1.buildCustomDocument)('mutation', 'RequestCrossOriginToken', 'requestCrossOriginToken', options.select, args, [
|
|
458
518
|
{
|
|
459
519
|
name: 'input',
|
|
460
|
-
type: '
|
|
520
|
+
type: 'RequestCrossOriginTokenInput!',
|
|
461
521
|
},
|
|
462
|
-
], input_types_1.connectionFieldsMap, '
|
|
522
|
+
], input_types_1.connectionFieldsMap, 'RequestCrossOriginTokenPayload'),
|
|
523
|
+
}),
|
|
524
|
+
signIn: (args, options) => new query_builder_1.QueryBuilder({
|
|
525
|
+
client,
|
|
526
|
+
operation: 'mutation',
|
|
527
|
+
operationName: 'SignIn',
|
|
528
|
+
fieldName: 'signIn',
|
|
529
|
+
...(0, query_builder_1.buildCustomDocument)('mutation', 'SignIn', 'signIn', options.select, args, [
|
|
530
|
+
{
|
|
531
|
+
name: 'input',
|
|
532
|
+
type: 'SignInInput!',
|
|
533
|
+
},
|
|
534
|
+
], input_types_1.connectionFieldsMap, 'SignInPayload'),
|
|
463
535
|
}),
|
|
464
536
|
provisionTable: (args, options) => new query_builder_1.QueryBuilder({
|
|
465
537
|
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<{
|
|
@@ -12,6 +12,13 @@ function createQueryOperations(client) {
|
|
|
12
12
|
fieldName: 'currentUserId',
|
|
13
13
|
...(0, query_builder_1.buildCustomDocument)('query', 'CurrentUserId', 'currentUserId', options?.select, undefined, [], input_types_1.connectionFieldsMap, undefined),
|
|
14
14
|
}),
|
|
15
|
+
currentUserAgent: (options) => new query_builder_1.QueryBuilder({
|
|
16
|
+
client,
|
|
17
|
+
operation: 'query',
|
|
18
|
+
operationName: 'CurrentUserAgent',
|
|
19
|
+
fieldName: 'currentUserAgent',
|
|
20
|
+
...(0, query_builder_1.buildCustomDocument)('query', 'CurrentUserAgent', 'currentUserAgent', options?.select, undefined, [], input_types_1.connectionFieldsMap, undefined),
|
|
21
|
+
}),
|
|
15
22
|
currentIpAddress: (options) => new query_builder_1.QueryBuilder({
|
|
16
23
|
client,
|
|
17
24
|
operation: 'query',
|
|
@@ -19,12 +26,17 @@ function createQueryOperations(client) {
|
|
|
19
26
|
fieldName: 'currentIpAddress',
|
|
20
27
|
...(0, query_builder_1.buildCustomDocument)('query', 'CurrentIpAddress', 'currentIpAddress', options?.select, undefined, [], input_types_1.connectionFieldsMap, undefined),
|
|
21
28
|
}),
|
|
22
|
-
|
|
29
|
+
requireStepUp: (args, options) => new query_builder_1.QueryBuilder({
|
|
23
30
|
client,
|
|
24
31
|
operation: 'query',
|
|
25
|
-
operationName: '
|
|
26
|
-
fieldName: '
|
|
27
|
-
...(0, query_builder_1.buildCustomDocument)('query', '
|
|
32
|
+
operationName: 'RequireStepUp',
|
|
33
|
+
fieldName: 'requireStepUp',
|
|
34
|
+
...(0, query_builder_1.buildCustomDocument)('query', 'RequireStepUp', 'requireStepUp', options?.select, args, [
|
|
35
|
+
{
|
|
36
|
+
name: 'stepUpType',
|
|
37
|
+
type: 'String',
|
|
38
|
+
},
|
|
39
|
+
], input_types_1.connectionFieldsMap, undefined),
|
|
28
40
|
}),
|
|
29
41
|
appPermissionsGetPaddedMask: (args, options) => new query_builder_1.QueryBuilder({
|
|
30
42
|
client,
|
|
@@ -86,6 +98,26 @@ function createQueryOperations(client) {
|
|
|
86
98
|
},
|
|
87
99
|
], input_types_1.connectionFieldsMap, undefined),
|
|
88
100
|
}),
|
|
101
|
+
resolveBlueprintField: (args, options) => new query_builder_1.QueryBuilder({
|
|
102
|
+
client,
|
|
103
|
+
operation: 'query',
|
|
104
|
+
operationName: 'ResolveBlueprintField',
|
|
105
|
+
fieldName: 'resolveBlueprintField',
|
|
106
|
+
...(0, query_builder_1.buildCustomDocument)('query', 'ResolveBlueprintField', 'resolveBlueprintField', options?.select, args, [
|
|
107
|
+
{
|
|
108
|
+
name: 'databaseId',
|
|
109
|
+
type: 'UUID',
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
name: 'tableId',
|
|
113
|
+
type: 'UUID',
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
name: 'fieldName',
|
|
117
|
+
type: 'String',
|
|
118
|
+
},
|
|
119
|
+
], input_types_1.connectionFieldsMap, undefined),
|
|
120
|
+
}),
|
|
89
121
|
orgIsManagerOf: (args, options) => new query_builder_1.QueryBuilder({
|
|
90
122
|
client,
|
|
91
123
|
operation: 'query',
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ConnectedAccount model for ORM client
|
|
3
|
-
* @generated by @constructive-io/graphql-codegen
|
|
4
|
-
* DO NOT EDIT - changes will be overwritten
|
|
5
|
-
*/
|
|
6
|
-
import { OrmClient } from '../client';
|
|
7
|
-
import { QueryBuilder } from '../query-builder';
|
|
8
|
-
import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, UpdateArgs, DeleteArgs, InferSelectResult, StrictSelect } from '../select-types';
|
|
9
|
-
import type { ConnectedAccountWithRelations, ConnectedAccountSelect, ConnectedAccountFilter, ConnectedAccountOrderBy, CreateConnectedAccountInput, ConnectedAccountPatch } from '../input-types';
|
|
10
|
-
export declare class ConnectedAccountModel {
|
|
11
|
-
private client;
|
|
12
|
-
constructor(client: OrmClient);
|
|
13
|
-
findMany<S extends ConnectedAccountSelect>(args: FindManyArgs<S, ConnectedAccountFilter, ConnectedAccountOrderBy> & {
|
|
14
|
-
select: S;
|
|
15
|
-
} & StrictSelect<S, ConnectedAccountSelect>): QueryBuilder<{
|
|
16
|
-
connectedAccounts: ConnectionResult<InferSelectResult<ConnectedAccountWithRelations, S>>;
|
|
17
|
-
}>;
|
|
18
|
-
findFirst<S extends ConnectedAccountSelect>(args: FindFirstArgs<S, ConnectedAccountFilter> & {
|
|
19
|
-
select: S;
|
|
20
|
-
} & StrictSelect<S, ConnectedAccountSelect>): QueryBuilder<{
|
|
21
|
-
connectedAccounts: {
|
|
22
|
-
nodes: InferSelectResult<ConnectedAccountWithRelations, S>[];
|
|
23
|
-
};
|
|
24
|
-
}>;
|
|
25
|
-
findOne<S extends ConnectedAccountSelect>(args: {
|
|
26
|
-
id: string;
|
|
27
|
-
select: S;
|
|
28
|
-
} & StrictSelect<S, ConnectedAccountSelect>): QueryBuilder<{
|
|
29
|
-
connectedAccount: InferSelectResult<ConnectedAccountWithRelations, S> | null;
|
|
30
|
-
}>;
|
|
31
|
-
create<S extends ConnectedAccountSelect>(args: CreateArgs<S, CreateConnectedAccountInput['connectedAccount']> & {
|
|
32
|
-
select: S;
|
|
33
|
-
} & StrictSelect<S, ConnectedAccountSelect>): QueryBuilder<{
|
|
34
|
-
createConnectedAccount: {
|
|
35
|
-
connectedAccount: InferSelectResult<ConnectedAccountWithRelations, S>;
|
|
36
|
-
};
|
|
37
|
-
}>;
|
|
38
|
-
update<S extends ConnectedAccountSelect>(args: UpdateArgs<S, {
|
|
39
|
-
id: string;
|
|
40
|
-
}, ConnectedAccountPatch> & {
|
|
41
|
-
select: S;
|
|
42
|
-
} & StrictSelect<S, ConnectedAccountSelect>): QueryBuilder<{
|
|
43
|
-
updateConnectedAccount: {
|
|
44
|
-
connectedAccount: InferSelectResult<ConnectedAccountWithRelations, S>;
|
|
45
|
-
};
|
|
46
|
-
}>;
|
|
47
|
-
delete<S extends ConnectedAccountSelect>(args: DeleteArgs<{
|
|
48
|
-
id: string;
|
|
49
|
-
}, S> & {
|
|
50
|
-
select: S;
|
|
51
|
-
} & StrictSelect<S, ConnectedAccountSelect>): QueryBuilder<{
|
|
52
|
-
deleteConnectedAccount: {
|
|
53
|
-
connectedAccount: InferSelectResult<ConnectedAccountWithRelations, S>;
|
|
54
|
-
};
|
|
55
|
-
}>;
|
|
56
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CLI command for mutation signInOneTimeToken
|
|
3
|
-
* @generated by @constructive-io/graphql-codegen
|
|
4
|
-
* DO NOT EDIT - changes will be overwritten
|
|
5
|
-
*/
|
|
6
|
-
import { CLIOptions, Inquirerer } from 'inquirerer';
|
|
7
|
-
declare const _default: (argv: Partial<Record<string, unknown>>, prompter: Inquirerer, _options: CLIOptions) => Promise<void>;
|
|
8
|
-
export default _default;
|