@constructive-sdk/cli 0.17.2 → 0.17.4
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-invite.js +22 -0
- package/admin/cli/commands/app-limit-default.js +22 -0
- package/admin/cli/commands/{confirm-upload.d.ts → app-limit-event.d.ts} +1 -1
- package/admin/cli/commands/app-limit-event.js +212 -0
- package/admin/cli/commands/app-limit.js +66 -0
- package/admin/cli/commands/app-membership.js +0 -22
- package/admin/cli/commands/org-invite.js +22 -0
- package/{esm/admin/cli/commands/confirm-upload.d.ts → admin/cli/commands/org-limit-aggregate.d.ts} +1 -1
- package/admin/cli/commands/org-limit-aggregate.js +362 -0
- package/admin/cli/commands/org-limit-default.js +22 -0
- package/{auth/cli/commands/confirm-upload.d.ts → admin/cli/commands/org-limit-event.d.ts} +1 -1
- package/admin/cli/commands/org-limit-event.js +212 -0
- package/admin/cli/commands/org-limit.js +66 -0
- package/admin/cli/commands/org-membership-setting.js +44 -0
- package/admin/cli/commands.js +25 -21
- package/admin/cli/executor.d.ts +12 -14
- package/admin/orm/index.d.ts +24 -23
- package/admin/orm/index.js +24 -18
- package/admin/orm/input-types.d.ts +1297 -839
- package/admin/orm/models/appLimitEvent.d.ts +32 -0
- package/admin/orm/models/appLimitEvent.js +55 -0
- package/admin/orm/models/index.d.ts +12 -9
- package/admin/orm/models/index.js +25 -19
- package/admin/orm/models/orgLimitAggregate.d.ts +56 -0
- package/admin/orm/models/orgLimitAggregate.js +100 -0
- package/admin/orm/models/orgLimitEvent.d.ts +32 -0
- package/admin/orm/models/orgLimitEvent.js +55 -0
- package/admin/orm/mutation/index.d.ts +1 -15
- package/admin/orm/mutation/index.js +0 -12
- package/auth/cli/commands.js +1 -3
- package/auth/cli/executor.d.ts +0 -5
- package/auth/orm/index.d.ts +0 -5
- package/auth/orm/input-types.d.ts +0 -20
- package/auth/orm/mutation/index.d.ts +1 -15
- package/auth/orm/mutation/index.js +0 -12
- package/esm/admin/cli/commands/app-invite.js +22 -0
- package/esm/admin/cli/commands/app-limit-default.js +22 -0
- package/esm/{auth/cli/commands/confirm-upload.d.ts → admin/cli/commands/app-limit-event.d.ts} +1 -1
- package/esm/admin/cli/commands/app-limit-event.js +210 -0
- package/esm/admin/cli/commands/app-limit.js +66 -0
- package/esm/admin/cli/commands/app-membership.js +0 -22
- package/esm/admin/cli/commands/org-invite.js +22 -0
- package/esm/admin/cli/commands/org-limit-aggregate.d.ts +8 -0
- package/esm/admin/cli/commands/org-limit-aggregate.js +360 -0
- package/esm/admin/cli/commands/org-limit-default.js +22 -0
- package/esm/admin/cli/commands/org-limit-event.d.ts +8 -0
- package/esm/admin/cli/commands/org-limit-event.js +210 -0
- package/esm/admin/cli/commands/org-limit.js +66 -0
- package/esm/admin/cli/commands/org-membership-setting.js +44 -0
- package/esm/admin/cli/commands.js +25 -21
- package/esm/admin/cli/executor.d.ts +12 -14
- package/esm/admin/orm/index.d.ts +24 -23
- package/esm/admin/orm/index.js +24 -18
- package/esm/admin/orm/input-types.d.ts +1297 -839
- package/esm/admin/orm/models/appLimitEvent.d.ts +32 -0
- package/esm/admin/orm/models/appLimitEvent.js +51 -0
- package/esm/admin/orm/models/index.d.ts +12 -9
- package/esm/admin/orm/models/index.js +12 -9
- package/esm/admin/orm/models/orgLimitAggregate.d.ts +56 -0
- package/esm/admin/orm/models/orgLimitAggregate.js +96 -0
- package/esm/admin/orm/models/orgLimitEvent.d.ts +32 -0
- package/esm/admin/orm/models/orgLimitEvent.js +51 -0
- package/esm/admin/orm/mutation/index.d.ts +1 -15
- package/esm/admin/orm/mutation/index.js +0 -12
- package/esm/auth/cli/commands.js +1 -3
- package/esm/auth/cli/executor.d.ts +0 -5
- package/esm/auth/orm/index.d.ts +0 -5
- package/esm/auth/orm/input-types.d.ts +0 -20
- package/esm/auth/orm/mutation/index.d.ts +1 -15
- package/esm/auth/orm/mutation/index.js +0 -12
- package/esm/objects/cli/commands.js +1 -3
- package/esm/objects/cli/executor.d.ts +0 -5
- package/esm/objects/orm/index.d.ts +0 -5
- package/esm/objects/orm/input-types.d.ts +0 -20
- package/esm/objects/orm/mutation/index.d.ts +1 -15
- package/esm/objects/orm/mutation/index.js +0 -12
- package/esm/public/cli/commands/agent-message.d.ts +8 -0
- package/esm/public/cli/commands/agent-message.js +324 -0
- package/esm/public/cli/commands/agent-task.d.ts +8 -0
- package/esm/public/cli/commands/agent-task.js +368 -0
- package/esm/public/cli/commands/agent-thread.d.ts +8 -0
- package/esm/public/cli/commands/agent-thread.js +372 -0
- package/esm/public/cli/commands/app-invite.js +22 -0
- package/esm/public/cli/commands/app-limit-default.js +22 -0
- package/esm/public/cli/commands/app-limit-event.d.ts +8 -0
- package/esm/public/cli/commands/app-limit-event.js +210 -0
- package/esm/public/cli/commands/app-limit.js +66 -0
- package/esm/public/cli/commands/app-membership.js +0 -22
- package/esm/public/cli/commands/billing-module.d.ts +8 -0
- package/esm/public/cli/commands/billing-module.js +492 -0
- package/esm/public/cli/commands/limits-module.js +22 -0
- package/esm/public/cli/commands/node-type-registry.d.ts +8 -0
- package/esm/public/cli/commands/node-type-registry.js +343 -0
- package/esm/public/cli/commands/org-invite.js +22 -0
- package/esm/public/cli/commands/org-limit-aggregate.d.ts +8 -0
- package/esm/public/cli/commands/org-limit-aggregate.js +360 -0
- package/esm/public/cli/commands/org-limit-default.js +22 -0
- package/esm/public/cli/commands/org-limit-event.d.ts +8 -0
- package/esm/public/cli/commands/org-limit-event.js +210 -0
- package/esm/public/cli/commands/org-limit.js +66 -0
- package/esm/public/cli/commands/org-membership-setting.js +44 -0
- package/esm/public/cli/commands/plans-module.d.ts +8 -0
- package/esm/public/cli/commands/plans-module.js +426 -0
- package/esm/public/cli/commands/profiles-module.js +44 -0
- package/esm/public/cli/commands/storage-module.js +22 -44
- package/esm/public/cli/commands.js +45 -29
- package/esm/public/cli/executor.d.ts +38 -34
- package/esm/public/orm/index.d.ts +56 -43
- package/esm/public/orm/index.js +36 -18
- package/esm/public/orm/input-types.d.ts +2983 -1112
- package/esm/public/orm/input-types.js +9 -0
- package/esm/public/orm/models/agentMessage.d.ts +56 -0
- package/esm/public/orm/models/agentMessage.js +96 -0
- package/esm/public/orm/models/agentTask.d.ts +56 -0
- package/esm/public/orm/models/agentTask.js +96 -0
- package/esm/public/orm/models/agentThread.d.ts +56 -0
- package/esm/public/orm/models/agentThread.js +96 -0
- package/esm/public/orm/models/appLimitEvent.d.ts +32 -0
- package/esm/public/orm/models/appLimitEvent.js +51 -0
- package/esm/public/orm/models/billingModule.d.ts +56 -0
- package/esm/public/orm/models/billingModule.js +96 -0
- package/esm/public/orm/models/index.d.ts +18 -9
- package/esm/public/orm/models/index.js +18 -9
- package/esm/public/orm/models/nodeTypeRegistry.d.ts +56 -0
- package/esm/public/orm/models/nodeTypeRegistry.js +96 -0
- package/esm/public/orm/models/orgLimitAggregate.d.ts +56 -0
- package/esm/public/orm/models/orgLimitAggregate.js +96 -0
- package/esm/public/orm/models/orgLimitEvent.d.ts +32 -0
- package/esm/public/orm/models/orgLimitEvent.js +51 -0
- package/esm/public/orm/models/plansModule.d.ts +56 -0
- package/esm/public/orm/models/plansModule.js +96 -0
- package/esm/public/orm/mutation/index.d.ts +17 -31
- package/esm/public/orm/mutation/index.js +24 -36
- package/esm/public/orm/query/index.d.ts +28 -28
- package/esm/public/orm/query/index.js +48 -48
- package/objects/cli/commands.js +1 -3
- package/objects/cli/executor.d.ts +0 -5
- package/objects/orm/index.d.ts +0 -5
- package/objects/orm/input-types.d.ts +0 -20
- package/objects/orm/mutation/index.d.ts +1 -15
- package/objects/orm/mutation/index.js +0 -12
- package/package.json +4 -4
- package/public/cli/commands/agent-message.d.ts +8 -0
- package/public/cli/commands/agent-message.js +326 -0
- package/public/cli/commands/agent-task.d.ts +8 -0
- package/public/cli/commands/agent-task.js +370 -0
- package/public/cli/commands/agent-thread.d.ts +8 -0
- package/public/cli/commands/agent-thread.js +374 -0
- package/public/cli/commands/app-invite.js +22 -0
- package/public/cli/commands/app-limit-default.js +22 -0
- package/public/cli/commands/app-limit-event.d.ts +8 -0
- package/public/cli/commands/app-limit-event.js +212 -0
- package/public/cli/commands/app-limit.js +66 -0
- package/public/cli/commands/app-membership.js +0 -22
- package/public/cli/commands/billing-module.d.ts +8 -0
- package/public/cli/commands/billing-module.js +494 -0
- package/public/cli/commands/limits-module.js +22 -0
- package/public/cli/commands/node-type-registry.d.ts +8 -0
- package/public/cli/commands/node-type-registry.js +345 -0
- package/public/cli/commands/org-invite.js +22 -0
- package/public/cli/commands/org-limit-aggregate.d.ts +8 -0
- package/public/cli/commands/org-limit-aggregate.js +362 -0
- package/public/cli/commands/org-limit-default.js +22 -0
- package/public/cli/commands/org-limit-event.d.ts +8 -0
- package/public/cli/commands/org-limit-event.js +212 -0
- package/public/cli/commands/org-limit.js +66 -0
- package/public/cli/commands/org-membership-setting.js +44 -0
- package/public/cli/commands/plans-module.d.ts +8 -0
- package/public/cli/commands/plans-module.js +428 -0
- package/public/cli/commands/profiles-module.js +44 -0
- package/public/cli/commands/storage-module.js +22 -44
- package/public/cli/commands.js +45 -29
- package/public/cli/executor.d.ts +38 -34
- package/public/orm/index.d.ts +56 -43
- package/public/orm/index.js +36 -18
- package/public/orm/input-types.d.ts +2983 -1112
- package/public/orm/input-types.js +9 -0
- package/public/orm/models/agentMessage.d.ts +56 -0
- package/public/orm/models/agentMessage.js +100 -0
- package/public/orm/models/agentTask.d.ts +56 -0
- package/public/orm/models/agentTask.js +100 -0
- package/public/orm/models/agentThread.d.ts +56 -0
- package/public/orm/models/agentThread.js +100 -0
- package/public/orm/models/appLimitEvent.d.ts +32 -0
- package/public/orm/models/appLimitEvent.js +55 -0
- package/public/orm/models/billingModule.d.ts +56 -0
- package/public/orm/models/billingModule.js +100 -0
- package/public/orm/models/index.d.ts +18 -9
- package/public/orm/models/index.js +39 -21
- package/public/orm/models/nodeTypeRegistry.d.ts +56 -0
- package/public/orm/models/nodeTypeRegistry.js +100 -0
- package/public/orm/models/orgLimitAggregate.d.ts +56 -0
- package/public/orm/models/orgLimitAggregate.js +100 -0
- package/public/orm/models/orgLimitEvent.d.ts +32 -0
- package/public/orm/models/orgLimitEvent.js +55 -0
- package/public/orm/models/plansModule.d.ts +56 -0
- package/public/orm/models/plansModule.js +100 -0
- package/public/orm/mutation/index.d.ts +17 -31
- package/public/orm/mutation/index.js +24 -36
- package/public/orm/query/index.d.ts +28 -28
- package/public/orm/query/index.js +48 -48
- package/admin/cli/commands/confirm-upload.js +0 -36
- package/auth/cli/commands/confirm-upload.js +0 -36
- package/esm/admin/cli/commands/confirm-upload.js +0 -34
- package/esm/auth/cli/commands/confirm-upload.js +0 -34
- package/esm/objects/cli/commands/confirm-upload.d.ts +0 -8
- package/esm/objects/cli/commands/confirm-upload.js +0 -34
- package/esm/public/cli/commands/confirm-upload.d.ts +0 -8
- package/esm/public/cli/commands/confirm-upload.js +0 -34
- package/objects/cli/commands/confirm-upload.d.ts +0 -8
- package/objects/cli/commands/confirm-upload.js +0 -36
- package/public/cli/commands/confirm-upload.d.ts +0 -8
- package/public/cli/commands/confirm-upload.js +0 -36
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateByPkDocument, buildDeleteByPkDocument, } from '../query-builder';
|
|
2
|
+
import { connectionFieldsMap } from '../input-types';
|
|
3
|
+
export class PlansModuleModel {
|
|
4
|
+
client;
|
|
5
|
+
constructor(client) {
|
|
6
|
+
this.client = client;
|
|
7
|
+
}
|
|
8
|
+
findMany(args) {
|
|
9
|
+
const { document, variables } = buildFindManyDocument('PlansModule', 'plansModules', 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
|
+
}, 'PlansModuleFilter', 'PlansModuleOrderBy', connectionFieldsMap);
|
|
18
|
+
return new QueryBuilder({
|
|
19
|
+
client: this.client,
|
|
20
|
+
operation: 'query',
|
|
21
|
+
operationName: 'PlansModule',
|
|
22
|
+
fieldName: 'plansModules',
|
|
23
|
+
document,
|
|
24
|
+
variables,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
findFirst(args) {
|
|
28
|
+
const { document, variables } = buildFindFirstDocument('PlansModule', 'plansModules', args.select, {
|
|
29
|
+
where: args?.where,
|
|
30
|
+
}, 'PlansModuleFilter', connectionFieldsMap);
|
|
31
|
+
return new QueryBuilder({
|
|
32
|
+
client: this.client,
|
|
33
|
+
operation: 'query',
|
|
34
|
+
operationName: 'PlansModule',
|
|
35
|
+
fieldName: 'plansModules',
|
|
36
|
+
document,
|
|
37
|
+
variables,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
findOne(args) {
|
|
41
|
+
const { document, variables } = buildFindManyDocument('PlansModule', 'plansModules', args.select, {
|
|
42
|
+
where: {
|
|
43
|
+
id: {
|
|
44
|
+
equalTo: args.id,
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
first: 1,
|
|
48
|
+
}, 'PlansModuleFilter', 'PlansModuleOrderBy', connectionFieldsMap);
|
|
49
|
+
return new QueryBuilder({
|
|
50
|
+
client: this.client,
|
|
51
|
+
operation: 'query',
|
|
52
|
+
operationName: 'PlansModule',
|
|
53
|
+
fieldName: 'plansModule',
|
|
54
|
+
document,
|
|
55
|
+
variables,
|
|
56
|
+
transform: (data) => ({
|
|
57
|
+
plansModule: data.plansModules?.nodes?.[0] ?? null,
|
|
58
|
+
}),
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
create(args) {
|
|
62
|
+
const { document, variables } = buildCreateDocument('PlansModule', 'createPlansModule', 'plansModule', args.select, args.data, 'CreatePlansModuleInput', connectionFieldsMap);
|
|
63
|
+
return new QueryBuilder({
|
|
64
|
+
client: this.client,
|
|
65
|
+
operation: 'mutation',
|
|
66
|
+
operationName: 'PlansModule',
|
|
67
|
+
fieldName: 'createPlansModule',
|
|
68
|
+
document,
|
|
69
|
+
variables,
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
update(args) {
|
|
73
|
+
const { document, variables } = buildUpdateByPkDocument('PlansModule', 'updatePlansModule', 'plansModule', args.select, args.where.id, args.data, 'UpdatePlansModuleInput', 'id', 'plansModulePatch', connectionFieldsMap);
|
|
74
|
+
return new QueryBuilder({
|
|
75
|
+
client: this.client,
|
|
76
|
+
operation: 'mutation',
|
|
77
|
+
operationName: 'PlansModule',
|
|
78
|
+
fieldName: 'updatePlansModule',
|
|
79
|
+
document,
|
|
80
|
+
variables,
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
delete(args) {
|
|
84
|
+
const { document, variables } = buildDeleteByPkDocument('PlansModule', 'deletePlansModule', 'plansModule', {
|
|
85
|
+
id: args.where.id,
|
|
86
|
+
}, 'DeletePlansModuleInput', args.select, connectionFieldsMap);
|
|
87
|
+
return new QueryBuilder({
|
|
88
|
+
client: this.client,
|
|
89
|
+
operation: 'mutation',
|
|
90
|
+
operationName: 'PlansModule',
|
|
91
|
+
fieldName: 'deletePlansModule',
|
|
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, DisconnectAccountInput, RevokeApiKeyInput, RevokeSessionInput, VerifyPasswordInput, VerifyTotpInput, SubmitAppInviteCodeInput, SubmitOrgInviteCodeInput, CheckPasswordInput, ConfirmDeleteAccountInput, SetPasswordInput, VerifyEmailInput, FreezeObjectsInput, InitEmptyRepoInput, ConstructBlueprintInput, ProvisionNewUserInput, ResetPasswordInput, RemoveNodeAtPathInput, CopyTemplateToBlueprintInput, ProvisionSpatialRelationInput, BootstrapUserInput, SetFieldOrderInput, ProvisionUniqueConstraintInput, ProvisionFullTextSearchInput, ProvisionIndexInput, SetDataAtPathInput, SetPropsAndCommitInput, ProvisionDatabaseWithUserInput, InsertNodeAtPathInput, UpdateNodeAtPathInput, SetAndCommitInput, ProvisionRelationInput, ApplyRlsInput, SignInCrossOriginInput, CreateUserDatabaseInput, ExtendTokenExpiresInput, CreateApiKeyInput, SignUpInput, RequestCrossOriginTokenInput, SignInInput, ProvisionTableInput,
|
|
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, ProvisionSpatialRelationInput, BootstrapUserInput, SetFieldOrderInput, ProvisionUniqueConstraintInput, ProvisionFullTextSearchInput, ProvisionIndexInput, SetDataAtPathInput, SetPropsAndCommitInput, ProvisionDatabaseWithUserInput, InsertNodeAtPathInput, UpdateNodeAtPathInput, SetAndCommitInput, ProvisionRelationInput, ApplyRlsInput, SignInCrossOriginInput, CreateUserDatabaseInput, ExtendTokenExpiresInput, CreateApiKeyInput, SendVerificationEmailInput, ForgotPasswordInput, SignUpInput, RequestCrossOriginTokenInput, SignInInput, ProvisionTableInput, RequestUploadUrlInput, ProvisionBucketInput, SendAccountDeletionEmailPayload, SignOutPayload, AcceptDatabaseTransferPayload, CancelDatabaseTransferPayload, RejectDatabaseTransferPayload, DisconnectAccountPayload, RevokeApiKeyPayload, RevokeSessionPayload, VerifyPasswordPayload, VerifyTotpPayload, SubmitAppInviteCodePayload, SubmitOrgInviteCodePayload, CheckPasswordPayload, ConfirmDeleteAccountPayload, SetPasswordPayload, VerifyEmailPayload, FreezeObjectsPayload, InitEmptyRepoPayload, ConstructBlueprintPayload, ProvisionNewUserPayload, ResetPasswordPayload, RemoveNodeAtPathPayload, CopyTemplateToBlueprintPayload, ProvisionSpatialRelationPayload, BootstrapUserPayload, SetFieldOrderPayload, ProvisionUniqueConstraintPayload, ProvisionFullTextSearchPayload, ProvisionIndexPayload, SetDataAtPathPayload, SetPropsAndCommitPayload, ProvisionDatabaseWithUserPayload, InsertNodeAtPathPayload, UpdateNodeAtPathPayload, SetAndCommitPayload, ProvisionRelationPayload, ApplyRlsPayload, SignInCrossOriginPayload, CreateUserDatabasePayload, ExtendTokenExpiresPayload, CreateApiKeyPayload, SendVerificationEmailPayload, ForgotPasswordPayload, SignUpPayload, RequestCrossOriginTokenPayload, SignInPayload, ProvisionTablePayload, RequestUploadUrlPayload, ProvisionBucketPayload, SendAccountDeletionEmailPayloadSelect, SignOutPayloadSelect, AcceptDatabaseTransferPayloadSelect, CancelDatabaseTransferPayloadSelect, RejectDatabaseTransferPayloadSelect, DisconnectAccountPayloadSelect, RevokeApiKeyPayloadSelect, RevokeSessionPayloadSelect, VerifyPasswordPayloadSelect, VerifyTotpPayloadSelect, SubmitAppInviteCodePayloadSelect, SubmitOrgInviteCodePayloadSelect, CheckPasswordPayloadSelect, ConfirmDeleteAccountPayloadSelect, SetPasswordPayloadSelect, VerifyEmailPayloadSelect, FreezeObjectsPayloadSelect, InitEmptyRepoPayloadSelect, ConstructBlueprintPayloadSelect, ProvisionNewUserPayloadSelect, ResetPasswordPayloadSelect, RemoveNodeAtPathPayloadSelect, CopyTemplateToBlueprintPayloadSelect, ProvisionSpatialRelationPayloadSelect, BootstrapUserPayloadSelect, SetFieldOrderPayloadSelect, ProvisionUniqueConstraintPayloadSelect, ProvisionFullTextSearchPayloadSelect, ProvisionIndexPayloadSelect, SetDataAtPathPayloadSelect, SetPropsAndCommitPayloadSelect, ProvisionDatabaseWithUserPayloadSelect, InsertNodeAtPathPayloadSelect, UpdateNodeAtPathPayloadSelect, SetAndCommitPayloadSelect, ProvisionRelationPayloadSelect, ApplyRlsPayloadSelect, SignInCrossOriginPayloadSelect, CreateUserDatabasePayloadSelect, ExtendTokenExpiresPayloadSelect, CreateApiKeyPayloadSelect, SendVerificationEmailPayloadSelect, ForgotPasswordPayloadSelect, SignUpPayloadSelect, RequestCrossOriginTokenPayloadSelect, SignInPayloadSelect, ProvisionTablePayloadSelect, RequestUploadUrlPayloadSelect, ProvisionBucketPayloadSelect } from '../input-types';
|
|
10
10
|
export interface SendAccountDeletionEmailVariables {
|
|
11
11
|
input: SendAccountDeletionEmailInput;
|
|
12
12
|
}
|
|
@@ -177,6 +177,12 @@ export interface ExtendTokenExpiresVariables {
|
|
|
177
177
|
export interface CreateApiKeyVariables {
|
|
178
178
|
input: CreateApiKeyInput;
|
|
179
179
|
}
|
|
180
|
+
export interface SendVerificationEmailVariables {
|
|
181
|
+
input: SendVerificationEmailInput;
|
|
182
|
+
}
|
|
183
|
+
export interface ForgotPasswordVariables {
|
|
184
|
+
input: ForgotPasswordInput;
|
|
185
|
+
}
|
|
180
186
|
export interface SignUpVariables {
|
|
181
187
|
input: SignUpInput;
|
|
182
188
|
}
|
|
@@ -193,12 +199,6 @@ export interface SignInVariables {
|
|
|
193
199
|
export interface ProvisionTableVariables {
|
|
194
200
|
input: ProvisionTableInput;
|
|
195
201
|
}
|
|
196
|
-
export interface SendVerificationEmailVariables {
|
|
197
|
-
input: SendVerificationEmailInput;
|
|
198
|
-
}
|
|
199
|
-
export interface ForgotPasswordVariables {
|
|
200
|
-
input: ForgotPasswordInput;
|
|
201
|
-
}
|
|
202
202
|
/**
|
|
203
203
|
* Variables for requestUploadUrl
|
|
204
204
|
* Request a presigned URL for uploading a file directly to S3.
|
|
@@ -209,15 +209,6 @@ existing file ID and deduplicated=true with no uploadUrl.
|
|
|
209
209
|
export interface RequestUploadUrlVariables {
|
|
210
210
|
input: RequestUploadUrlInput;
|
|
211
211
|
}
|
|
212
|
-
/**
|
|
213
|
-
* Variables for confirmUpload
|
|
214
|
-
* Confirm that a file has been uploaded to S3.
|
|
215
|
-
Verifies the object exists in S3, checks content-type,
|
|
216
|
-
and transitions the file status from 'pending' to 'ready'.
|
|
217
|
-
*/
|
|
218
|
-
export interface ConfirmUploadVariables {
|
|
219
|
-
input: ConfirmUploadInput;
|
|
220
|
-
}
|
|
221
212
|
/**
|
|
222
213
|
* Variables for provisionBucket
|
|
223
214
|
* Provision an S3 bucket for a logical bucket in the database.
|
|
@@ -434,6 +425,16 @@ export declare function createMutationOperations(client: OrmClient): {
|
|
|
434
425
|
} & StrictSelect<S, CreateApiKeyPayloadSelect>) => QueryBuilder<{
|
|
435
426
|
createApiKey: InferSelectResult<CreateApiKeyPayload, S> | null;
|
|
436
427
|
}>;
|
|
428
|
+
sendVerificationEmail: <S extends SendVerificationEmailPayloadSelect>(args: SendVerificationEmailVariables, options: {
|
|
429
|
+
select: S;
|
|
430
|
+
} & StrictSelect<S, SendVerificationEmailPayloadSelect>) => QueryBuilder<{
|
|
431
|
+
sendVerificationEmail: InferSelectResult<SendVerificationEmailPayload, S> | null;
|
|
432
|
+
}>;
|
|
433
|
+
forgotPassword: <S extends ForgotPasswordPayloadSelect>(args: ForgotPasswordVariables, options: {
|
|
434
|
+
select: S;
|
|
435
|
+
} & StrictSelect<S, ForgotPasswordPayloadSelect>) => QueryBuilder<{
|
|
436
|
+
forgotPassword: InferSelectResult<ForgotPasswordPayload, S> | null;
|
|
437
|
+
}>;
|
|
437
438
|
signUp: <S extends SignUpPayloadSelect>(args: SignUpVariables, options: {
|
|
438
439
|
select: S;
|
|
439
440
|
} & StrictSelect<S, SignUpPayloadSelect>) => QueryBuilder<{
|
|
@@ -454,26 +455,11 @@ export declare function createMutationOperations(client: OrmClient): {
|
|
|
454
455
|
} & StrictSelect<S, ProvisionTablePayloadSelect>) => QueryBuilder<{
|
|
455
456
|
provisionTable: InferSelectResult<ProvisionTablePayload, S> | null;
|
|
456
457
|
}>;
|
|
457
|
-
sendVerificationEmail: <S extends SendVerificationEmailPayloadSelect>(args: SendVerificationEmailVariables, options: {
|
|
458
|
-
select: S;
|
|
459
|
-
} & StrictSelect<S, SendVerificationEmailPayloadSelect>) => QueryBuilder<{
|
|
460
|
-
sendVerificationEmail: InferSelectResult<SendVerificationEmailPayload, S> | null;
|
|
461
|
-
}>;
|
|
462
|
-
forgotPassword: <S extends ForgotPasswordPayloadSelect>(args: ForgotPasswordVariables, options: {
|
|
463
|
-
select: S;
|
|
464
|
-
} & StrictSelect<S, ForgotPasswordPayloadSelect>) => QueryBuilder<{
|
|
465
|
-
forgotPassword: InferSelectResult<ForgotPasswordPayload, S> | null;
|
|
466
|
-
}>;
|
|
467
458
|
requestUploadUrl: <S extends RequestUploadUrlPayloadSelect>(args: RequestUploadUrlVariables, options: {
|
|
468
459
|
select: S;
|
|
469
460
|
} & StrictSelect<S, RequestUploadUrlPayloadSelect>) => QueryBuilder<{
|
|
470
461
|
requestUploadUrl: InferSelectResult<RequestUploadUrlPayload, S> | null;
|
|
471
462
|
}>;
|
|
472
|
-
confirmUpload: <S extends ConfirmUploadPayloadSelect>(args: ConfirmUploadVariables, options: {
|
|
473
|
-
select: S;
|
|
474
|
-
} & StrictSelect<S, ConfirmUploadPayloadSelect>) => QueryBuilder<{
|
|
475
|
-
confirmUpload: InferSelectResult<ConfirmUploadPayload, S> | null;
|
|
476
|
-
}>;
|
|
477
463
|
provisionBucket: <S extends ProvisionBucketPayloadSelect>(args: ProvisionBucketVariables, options: {
|
|
478
464
|
select: S;
|
|
479
465
|
} & StrictSelect<S, ProvisionBucketPayloadSelect>) => QueryBuilder<{
|
|
@@ -494,6 +494,30 @@ export function createMutationOperations(client) {
|
|
|
494
494
|
},
|
|
495
495
|
], connectionFieldsMap, 'CreateApiKeyPayload'),
|
|
496
496
|
}),
|
|
497
|
+
sendVerificationEmail: (args, options) => new QueryBuilder({
|
|
498
|
+
client,
|
|
499
|
+
operation: 'mutation',
|
|
500
|
+
operationName: 'SendVerificationEmail',
|
|
501
|
+
fieldName: 'sendVerificationEmail',
|
|
502
|
+
...buildCustomDocument('mutation', 'SendVerificationEmail', 'sendVerificationEmail', options.select, args, [
|
|
503
|
+
{
|
|
504
|
+
name: 'input',
|
|
505
|
+
type: 'SendVerificationEmailInput!',
|
|
506
|
+
},
|
|
507
|
+
], connectionFieldsMap, 'SendVerificationEmailPayload'),
|
|
508
|
+
}),
|
|
509
|
+
forgotPassword: (args, options) => new QueryBuilder({
|
|
510
|
+
client,
|
|
511
|
+
operation: 'mutation',
|
|
512
|
+
operationName: 'ForgotPassword',
|
|
513
|
+
fieldName: 'forgotPassword',
|
|
514
|
+
...buildCustomDocument('mutation', 'ForgotPassword', 'forgotPassword', options.select, args, [
|
|
515
|
+
{
|
|
516
|
+
name: 'input',
|
|
517
|
+
type: 'ForgotPasswordInput!',
|
|
518
|
+
},
|
|
519
|
+
], connectionFieldsMap, 'ForgotPasswordPayload'),
|
|
520
|
+
}),
|
|
497
521
|
signUp: (args, options) => new QueryBuilder({
|
|
498
522
|
client,
|
|
499
523
|
operation: 'mutation',
|
|
@@ -542,30 +566,6 @@ export function createMutationOperations(client) {
|
|
|
542
566
|
},
|
|
543
567
|
], connectionFieldsMap, 'ProvisionTablePayload'),
|
|
544
568
|
}),
|
|
545
|
-
sendVerificationEmail: (args, options) => new QueryBuilder({
|
|
546
|
-
client,
|
|
547
|
-
operation: 'mutation',
|
|
548
|
-
operationName: 'SendVerificationEmail',
|
|
549
|
-
fieldName: 'sendVerificationEmail',
|
|
550
|
-
...buildCustomDocument('mutation', 'SendVerificationEmail', 'sendVerificationEmail', options.select, args, [
|
|
551
|
-
{
|
|
552
|
-
name: 'input',
|
|
553
|
-
type: 'SendVerificationEmailInput!',
|
|
554
|
-
},
|
|
555
|
-
], connectionFieldsMap, 'SendVerificationEmailPayload'),
|
|
556
|
-
}),
|
|
557
|
-
forgotPassword: (args, options) => new QueryBuilder({
|
|
558
|
-
client,
|
|
559
|
-
operation: 'mutation',
|
|
560
|
-
operationName: 'ForgotPassword',
|
|
561
|
-
fieldName: 'forgotPassword',
|
|
562
|
-
...buildCustomDocument('mutation', 'ForgotPassword', 'forgotPassword', options.select, args, [
|
|
563
|
-
{
|
|
564
|
-
name: 'input',
|
|
565
|
-
type: 'ForgotPasswordInput!',
|
|
566
|
-
},
|
|
567
|
-
], connectionFieldsMap, 'ForgotPasswordPayload'),
|
|
568
|
-
}),
|
|
569
569
|
requestUploadUrl: (args, options) => new QueryBuilder({
|
|
570
570
|
client,
|
|
571
571
|
operation: 'mutation',
|
|
@@ -578,18 +578,6 @@ export function createMutationOperations(client) {
|
|
|
578
578
|
},
|
|
579
579
|
], connectionFieldsMap, 'RequestUploadUrlPayload'),
|
|
580
580
|
}),
|
|
581
|
-
confirmUpload: (args, options) => new QueryBuilder({
|
|
582
|
-
client,
|
|
583
|
-
operation: 'mutation',
|
|
584
|
-
operationName: 'ConfirmUpload',
|
|
585
|
-
fieldName: 'confirmUpload',
|
|
586
|
-
...buildCustomDocument('mutation', 'ConfirmUpload', 'confirmUpload', options.select, args, [
|
|
587
|
-
{
|
|
588
|
-
name: 'input',
|
|
589
|
-
type: 'ConfirmUploadInput!',
|
|
590
|
-
},
|
|
591
|
-
], connectionFieldsMap, 'ConfirmUploadPayload'),
|
|
592
|
-
}),
|
|
593
581
|
provisionBucket: (args, options) => new QueryBuilder({
|
|
594
582
|
client,
|
|
595
583
|
operation: 'mutation',
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { OrmClient } from '../client';
|
|
7
7
|
import { QueryBuilder } from '../query-builder';
|
|
8
8
|
import type { InferSelectResult, StrictSelect } from '../select-types';
|
|
9
|
-
import type { Object, User, ObjectSelect, UserSelect,
|
|
9
|
+
import type { Object, User, ObjectSelect, UserSelect, AppPermissionConnection, OrgPermissionConnection, ObjectConnection, AppLevelRequirementConnection } from '../input-types';
|
|
10
10
|
export interface RequireStepUpVariables {
|
|
11
11
|
stepUpType?: string;
|
|
12
12
|
}
|
|
@@ -63,9 +63,8 @@ export interface AppPermissionsGetMaskByNamesVariables {
|
|
|
63
63
|
export interface OrgPermissionsGetMaskByNamesVariables {
|
|
64
64
|
names?: string[];
|
|
65
65
|
}
|
|
66
|
-
export interface
|
|
67
|
-
|
|
68
|
-
id?: string;
|
|
66
|
+
export interface AppPermissionsGetByMaskVariables {
|
|
67
|
+
mask?: string;
|
|
69
68
|
/** Only read the first `n` values of the set. */
|
|
70
69
|
first?: number;
|
|
71
70
|
/**
|
|
@@ -76,10 +75,8 @@ export interface GetAllObjectsFromRootVariables {
|
|
|
76
75
|
/** Read all values in the set after (below) this cursor. */
|
|
77
76
|
after?: string;
|
|
78
77
|
}
|
|
79
|
-
export interface
|
|
80
|
-
|
|
81
|
-
id?: string;
|
|
82
|
-
path?: string[];
|
|
78
|
+
export interface OrgPermissionsGetByMaskVariables {
|
|
79
|
+
mask?: string;
|
|
83
80
|
/** Only read the first `n` values of the set. */
|
|
84
81
|
first?: number;
|
|
85
82
|
/**
|
|
@@ -90,14 +87,9 @@ export interface GetPathObjectsFromRootVariables {
|
|
|
90
87
|
/** Read all values in the set after (below) this cursor. */
|
|
91
88
|
after?: string;
|
|
92
89
|
}
|
|
93
|
-
export interface
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
path?: string[];
|
|
97
|
-
refname?: string;
|
|
98
|
-
}
|
|
99
|
-
export interface AppPermissionsGetByMaskVariables {
|
|
100
|
-
mask?: string;
|
|
90
|
+
export interface GetAllObjectsFromRootVariables {
|
|
91
|
+
databaseId?: string;
|
|
92
|
+
id?: string;
|
|
101
93
|
/** Only read the first `n` values of the set. */
|
|
102
94
|
first?: number;
|
|
103
95
|
/**
|
|
@@ -108,8 +100,10 @@ export interface AppPermissionsGetByMaskVariables {
|
|
|
108
100
|
/** Read all values in the set after (below) this cursor. */
|
|
109
101
|
after?: string;
|
|
110
102
|
}
|
|
111
|
-
export interface
|
|
112
|
-
|
|
103
|
+
export interface GetPathObjectsFromRootVariables {
|
|
104
|
+
databaseId?: string;
|
|
105
|
+
id?: string;
|
|
106
|
+
path?: string[];
|
|
113
107
|
/** Only read the first `n` values of the set. */
|
|
114
108
|
first?: number;
|
|
115
109
|
/**
|
|
@@ -120,6 +114,12 @@ export interface OrgPermissionsGetByMaskVariables {
|
|
|
120
114
|
/** Read all values in the set after (below) this cursor. */
|
|
121
115
|
after?: string;
|
|
122
116
|
}
|
|
117
|
+
export interface GetObjectAtPathVariables {
|
|
118
|
+
dbId?: string;
|
|
119
|
+
storeId?: string;
|
|
120
|
+
path?: string[];
|
|
121
|
+
refname?: string;
|
|
122
|
+
}
|
|
123
123
|
export interface StepsRequiredVariables {
|
|
124
124
|
level?: string;
|
|
125
125
|
roleId?: string;
|
|
@@ -209,6 +209,16 @@ export declare function createQueryOperations(client: OrmClient): {
|
|
|
209
209
|
}) => QueryBuilder<{
|
|
210
210
|
orgPermissionsGetMaskByNames: string | null;
|
|
211
211
|
}>;
|
|
212
|
+
appPermissionsGetByMask: (args: AppPermissionsGetByMaskVariables, options?: {
|
|
213
|
+
select?: Record<string, unknown>;
|
|
214
|
+
}) => QueryBuilder<{
|
|
215
|
+
appPermissionsGetByMask: AppPermissionConnection | null;
|
|
216
|
+
}>;
|
|
217
|
+
orgPermissionsGetByMask: (args: OrgPermissionsGetByMaskVariables, options?: {
|
|
218
|
+
select?: Record<string, unknown>;
|
|
219
|
+
}) => QueryBuilder<{
|
|
220
|
+
orgPermissionsGetByMask: OrgPermissionConnection | null;
|
|
221
|
+
}>;
|
|
212
222
|
getAllObjectsFromRoot: (args: GetAllObjectsFromRootVariables, options?: {
|
|
213
223
|
select?: Record<string, unknown>;
|
|
214
224
|
}) => QueryBuilder<{
|
|
@@ -224,16 +234,6 @@ export declare function createQueryOperations(client: OrmClient): {
|
|
|
224
234
|
} & StrictSelect<S, ObjectSelect>) => QueryBuilder<{
|
|
225
235
|
getObjectAtPath: InferSelectResult<Object, S> | null;
|
|
226
236
|
}>;
|
|
227
|
-
appPermissionsGetByMask: (args: AppPermissionsGetByMaskVariables, options?: {
|
|
228
|
-
select?: Record<string, unknown>;
|
|
229
|
-
}) => QueryBuilder<{
|
|
230
|
-
appPermissionsGetByMask: AppPermissionConnection | null;
|
|
231
|
-
}>;
|
|
232
|
-
orgPermissionsGetByMask: (args: OrgPermissionsGetByMaskVariables, options?: {
|
|
233
|
-
select?: Record<string, unknown>;
|
|
234
|
-
}) => QueryBuilder<{
|
|
235
|
-
orgPermissionsGetByMask: OrgPermissionConnection | null;
|
|
236
|
-
}>;
|
|
237
237
|
stepsRequired: (args: StepsRequiredVariables, options?: {
|
|
238
238
|
select?: Record<string, unknown>;
|
|
239
239
|
}) => QueryBuilder<{
|
|
@@ -215,6 +215,54 @@ export function createQueryOperations(client) {
|
|
|
215
215
|
},
|
|
216
216
|
], connectionFieldsMap, undefined),
|
|
217
217
|
}),
|
|
218
|
+
appPermissionsGetByMask: (args, options) => new QueryBuilder({
|
|
219
|
+
client,
|
|
220
|
+
operation: 'query',
|
|
221
|
+
operationName: 'AppPermissionsGetByMask',
|
|
222
|
+
fieldName: 'appPermissionsGetByMask',
|
|
223
|
+
...buildCustomDocument('query', 'AppPermissionsGetByMask', 'appPermissionsGetByMask', options?.select, args, [
|
|
224
|
+
{
|
|
225
|
+
name: 'mask',
|
|
226
|
+
type: 'BitString',
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
name: 'first',
|
|
230
|
+
type: 'Int',
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
name: 'offset',
|
|
234
|
+
type: 'Int',
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
name: 'after',
|
|
238
|
+
type: 'Cursor',
|
|
239
|
+
},
|
|
240
|
+
], connectionFieldsMap, undefined),
|
|
241
|
+
}),
|
|
242
|
+
orgPermissionsGetByMask: (args, options) => new QueryBuilder({
|
|
243
|
+
client,
|
|
244
|
+
operation: 'query',
|
|
245
|
+
operationName: 'OrgPermissionsGetByMask',
|
|
246
|
+
fieldName: 'orgPermissionsGetByMask',
|
|
247
|
+
...buildCustomDocument('query', 'OrgPermissionsGetByMask', 'orgPermissionsGetByMask', options?.select, args, [
|
|
248
|
+
{
|
|
249
|
+
name: 'mask',
|
|
250
|
+
type: 'BitString',
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
name: 'first',
|
|
254
|
+
type: 'Int',
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
name: 'offset',
|
|
258
|
+
type: 'Int',
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
name: 'after',
|
|
262
|
+
type: 'Cursor',
|
|
263
|
+
},
|
|
264
|
+
], connectionFieldsMap, undefined),
|
|
265
|
+
}),
|
|
218
266
|
getAllObjectsFromRoot: (args, options) => new QueryBuilder({
|
|
219
267
|
client,
|
|
220
268
|
operation: 'query',
|
|
@@ -299,54 +347,6 @@ export function createQueryOperations(client) {
|
|
|
299
347
|
},
|
|
300
348
|
], connectionFieldsMap, 'Object'),
|
|
301
349
|
}),
|
|
302
|
-
appPermissionsGetByMask: (args, options) => new QueryBuilder({
|
|
303
|
-
client,
|
|
304
|
-
operation: 'query',
|
|
305
|
-
operationName: 'AppPermissionsGetByMask',
|
|
306
|
-
fieldName: 'appPermissionsGetByMask',
|
|
307
|
-
...buildCustomDocument('query', 'AppPermissionsGetByMask', 'appPermissionsGetByMask', options?.select, args, [
|
|
308
|
-
{
|
|
309
|
-
name: 'mask',
|
|
310
|
-
type: 'BitString',
|
|
311
|
-
},
|
|
312
|
-
{
|
|
313
|
-
name: 'first',
|
|
314
|
-
type: 'Int',
|
|
315
|
-
},
|
|
316
|
-
{
|
|
317
|
-
name: 'offset',
|
|
318
|
-
type: 'Int',
|
|
319
|
-
},
|
|
320
|
-
{
|
|
321
|
-
name: 'after',
|
|
322
|
-
type: 'Cursor',
|
|
323
|
-
},
|
|
324
|
-
], connectionFieldsMap, undefined),
|
|
325
|
-
}),
|
|
326
|
-
orgPermissionsGetByMask: (args, options) => new QueryBuilder({
|
|
327
|
-
client,
|
|
328
|
-
operation: 'query',
|
|
329
|
-
operationName: 'OrgPermissionsGetByMask',
|
|
330
|
-
fieldName: 'orgPermissionsGetByMask',
|
|
331
|
-
...buildCustomDocument('query', 'OrgPermissionsGetByMask', 'orgPermissionsGetByMask', options?.select, args, [
|
|
332
|
-
{
|
|
333
|
-
name: 'mask',
|
|
334
|
-
type: 'BitString',
|
|
335
|
-
},
|
|
336
|
-
{
|
|
337
|
-
name: 'first',
|
|
338
|
-
type: 'Int',
|
|
339
|
-
},
|
|
340
|
-
{
|
|
341
|
-
name: 'offset',
|
|
342
|
-
type: 'Int',
|
|
343
|
-
},
|
|
344
|
-
{
|
|
345
|
-
name: 'after',
|
|
346
|
-
type: 'Cursor',
|
|
347
|
-
},
|
|
348
|
-
], connectionFieldsMap, undefined),
|
|
349
|
-
}),
|
|
350
350
|
stepsRequired: (args, options) => new QueryBuilder({
|
|
351
351
|
client,
|
|
352
352
|
operation: 'query',
|
package/objects/cli/commands.js
CHANGED
|
@@ -30,7 +30,6 @@ const insert_node_at_path_1 = __importDefault(require("./commands/insert-node-at
|
|
|
30
30
|
const update_node_at_path_1 = __importDefault(require("./commands/update-node-at-path"));
|
|
31
31
|
const set_and_commit_1 = __importDefault(require("./commands/set-and-commit"));
|
|
32
32
|
const request_upload_url_1 = __importDefault(require("./commands/request-upload-url"));
|
|
33
|
-
const confirm_upload_1 = __importDefault(require("./commands/confirm-upload"));
|
|
34
33
|
const provision_bucket_1 = __importDefault(require("./commands/provision-bucket"));
|
|
35
34
|
const createCommandMap = () => ({
|
|
36
35
|
context: context_1.default,
|
|
@@ -53,10 +52,9 @@ const createCommandMap = () => ({
|
|
|
53
52
|
'update-node-at-path': update_node_at_path_1.default,
|
|
54
53
|
'set-and-commit': set_and_commit_1.default,
|
|
55
54
|
'request-upload-url': request_upload_url_1.default,
|
|
56
|
-
'confirm-upload': confirm_upload_1.default,
|
|
57
55
|
'provision-bucket': provision_bucket_1.default,
|
|
58
56
|
});
|
|
59
|
-
const usage =
|
|
57
|
+
const usage = '\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n get-all-record getAllRecord CRUD operations\n object object CRUD operations\n ref ref CRUD operations\n store store CRUD operations\n commit commit CRUD operations\n rev-parse revParse\n get-all-objects-from-root Reads and enables pagination through a set of `Object`.\n get-path-objects-from-root Reads and enables pagination through a set of `Object`.\n get-object-at-path getObjectAtPath\n freeze-objects freezeObjects\n init-empty-repo initEmptyRepo\n remove-node-at-path removeNodeAtPath\n set-data-at-path setDataAtPath\n set-props-and-commit setPropsAndCommit\n insert-node-at-path insertNodeAtPath\n update-node-at-path updateNodeAtPath\n set-and-commit setAndCommit\n request-upload-url Request a presigned URL for uploading a file directly to S3.\nClient computes SHA-256 of the file content and provides it here.\nIf a file with the same hash already exists (dedup), returns the\nexisting file ID and deduplicated=true with no uploadUrl.\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n\n --help, -h Show this help message\n --version, -v Show version\n';
|
|
60
58
|
const commands = async (argv, prompter, options) => {
|
|
61
59
|
if (argv.help || argv.h) {
|
|
62
60
|
console.log(usage);
|
|
@@ -73,11 +73,6 @@ export declare function getClient(contextName?: string): {
|
|
|
73
73
|
} & import("../orm").StrictSelect<S, import("../orm/input-types").RequestUploadUrlPayloadSelect>) => import("../orm").QueryBuilder<{
|
|
74
74
|
requestUploadUrl: import("../orm").InferSelectResult<import("../orm/input-types").RequestUploadUrlPayload, S> | null;
|
|
75
75
|
}>;
|
|
76
|
-
confirmUpload: <S extends import("../orm/input-types").ConfirmUploadPayloadSelect>(args: import("../orm/mutation").ConfirmUploadVariables, options: {
|
|
77
|
-
select: S;
|
|
78
|
-
} & import("../orm").StrictSelect<S, import("../orm/input-types").ConfirmUploadPayloadSelect>) => import("../orm").QueryBuilder<{
|
|
79
|
-
confirmUpload: import("../orm").InferSelectResult<import("../orm/input-types").ConfirmUploadPayload, S> | null;
|
|
80
|
-
}>;
|
|
81
76
|
provisionBucket: <S extends import("../orm/input-types").ProvisionBucketPayloadSelect>(args: import("../orm/mutation").ProvisionBucketVariables, options: {
|
|
82
77
|
select: S;
|
|
83
78
|
} & import("../orm").StrictSelect<S, import("../orm/input-types").ProvisionBucketPayloadSelect>) => import("../orm").QueryBuilder<{
|
package/objects/orm/index.d.ts
CHANGED
|
@@ -109,11 +109,6 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
109
109
|
} & import("./select-types").StrictSelect<S, import("./input-types").RequestUploadUrlPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
110
110
|
requestUploadUrl: import("./select-types").InferSelectResult<import("./input-types").RequestUploadUrlPayload, S> | null;
|
|
111
111
|
}>;
|
|
112
|
-
confirmUpload: <S extends import("./input-types").ConfirmUploadPayloadSelect>(args: import("./mutation").ConfirmUploadVariables, options: {
|
|
113
|
-
select: S;
|
|
114
|
-
} & import("./select-types").StrictSelect<S, import("./input-types").ConfirmUploadPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
115
|
-
confirmUpload: import("./select-types").InferSelectResult<import("./input-types").ConfirmUploadPayload, S> | null;
|
|
116
|
-
}>;
|
|
117
112
|
provisionBucket: <S extends import("./input-types").ProvisionBucketPayloadSelect>(args: import("./mutation").ProvisionBucketVariables, options: {
|
|
118
113
|
select: S;
|
|
119
114
|
} & import("./select-types").StrictSelect<S, import("./input-types").ProvisionBucketPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
@@ -648,10 +648,6 @@ export interface RequestUploadUrlInput {
|
|
|
648
648
|
/** Original filename (optional, for display and Content-Disposition) */
|
|
649
649
|
filename?: string;
|
|
650
650
|
}
|
|
651
|
-
export interface ConfirmUploadInput {
|
|
652
|
-
/** The file ID returned by requestUploadUrl */
|
|
653
|
-
fileId: string;
|
|
654
|
-
}
|
|
655
651
|
export interface ProvisionBucketInput {
|
|
656
652
|
/** The logical bucket key (e.g., "public", "private") */
|
|
657
653
|
bucketKey: string;
|
|
@@ -751,8 +747,6 @@ export interface RequestUploadUrlPayload {
|
|
|
751
747
|
deduplicated: boolean;
|
|
752
748
|
/** Presigned URL expiry time (null if deduplicated) */
|
|
753
749
|
expiresAt?: string | null;
|
|
754
|
-
/** File status — 'pending' for fresh uploads, 'ready' or 'processed' for deduplicated files. Clients can use this to know immediately whether the file is usable. */
|
|
755
|
-
status: string;
|
|
756
750
|
}
|
|
757
751
|
export type RequestUploadUrlPayloadSelect = {
|
|
758
752
|
uploadUrl?: boolean;
|
|
@@ -760,20 +754,6 @@ export type RequestUploadUrlPayloadSelect = {
|
|
|
760
754
|
key?: boolean;
|
|
761
755
|
deduplicated?: boolean;
|
|
762
756
|
expiresAt?: boolean;
|
|
763
|
-
status?: boolean;
|
|
764
|
-
};
|
|
765
|
-
export interface ConfirmUploadPayload {
|
|
766
|
-
/** The confirmed file ID */
|
|
767
|
-
fileId: string;
|
|
768
|
-
/** New file status */
|
|
769
|
-
status: string;
|
|
770
|
-
/** Whether confirmation succeeded */
|
|
771
|
-
success: boolean;
|
|
772
|
-
}
|
|
773
|
-
export type ConfirmUploadPayloadSelect = {
|
|
774
|
-
fileId?: boolean;
|
|
775
|
-
status?: boolean;
|
|
776
|
-
success?: boolean;
|
|
777
757
|
};
|
|
778
758
|
export interface ProvisionBucketPayload {
|
|
779
759
|
/** Whether provisioning succeeded */
|
|
@@ -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 { FreezeObjectsInput, InitEmptyRepoInput, RemoveNodeAtPathInput, SetDataAtPathInput, SetPropsAndCommitInput, InsertNodeAtPathInput, UpdateNodeAtPathInput, SetAndCommitInput, RequestUploadUrlInput,
|
|
9
|
+
import type { FreezeObjectsInput, InitEmptyRepoInput, RemoveNodeAtPathInput, SetDataAtPathInput, SetPropsAndCommitInput, InsertNodeAtPathInput, UpdateNodeAtPathInput, SetAndCommitInput, RequestUploadUrlInput, ProvisionBucketInput, FreezeObjectsPayload, InitEmptyRepoPayload, RemoveNodeAtPathPayload, SetDataAtPathPayload, SetPropsAndCommitPayload, InsertNodeAtPathPayload, UpdateNodeAtPathPayload, SetAndCommitPayload, RequestUploadUrlPayload, ProvisionBucketPayload, FreezeObjectsPayloadSelect, InitEmptyRepoPayloadSelect, RemoveNodeAtPathPayloadSelect, SetDataAtPathPayloadSelect, SetPropsAndCommitPayloadSelect, InsertNodeAtPathPayloadSelect, UpdateNodeAtPathPayloadSelect, SetAndCommitPayloadSelect, RequestUploadUrlPayloadSelect, ProvisionBucketPayloadSelect } from '../input-types';
|
|
10
10
|
export interface FreezeObjectsVariables {
|
|
11
11
|
input: FreezeObjectsInput;
|
|
12
12
|
}
|
|
@@ -41,15 +41,6 @@ existing file ID and deduplicated=true with no uploadUrl.
|
|
|
41
41
|
export interface RequestUploadUrlVariables {
|
|
42
42
|
input: RequestUploadUrlInput;
|
|
43
43
|
}
|
|
44
|
-
/**
|
|
45
|
-
* Variables for confirmUpload
|
|
46
|
-
* Confirm that a file has been uploaded to S3.
|
|
47
|
-
Verifies the object exists in S3, checks content-type,
|
|
48
|
-
and transitions the file status from 'pending' to 'ready'.
|
|
49
|
-
*/
|
|
50
|
-
export interface ConfirmUploadVariables {
|
|
51
|
-
input: ConfirmUploadInput;
|
|
52
|
-
}
|
|
53
44
|
/**
|
|
54
45
|
* Variables for provisionBucket
|
|
55
46
|
* Provision an S3 bucket for a logical bucket in the database.
|
|
@@ -106,11 +97,6 @@ export declare function createMutationOperations(client: OrmClient): {
|
|
|
106
97
|
} & StrictSelect<S, RequestUploadUrlPayloadSelect>) => QueryBuilder<{
|
|
107
98
|
requestUploadUrl: InferSelectResult<RequestUploadUrlPayload, S> | null;
|
|
108
99
|
}>;
|
|
109
|
-
confirmUpload: <S extends ConfirmUploadPayloadSelect>(args: ConfirmUploadVariables, options: {
|
|
110
|
-
select: S;
|
|
111
|
-
} & StrictSelect<S, ConfirmUploadPayloadSelect>) => QueryBuilder<{
|
|
112
|
-
confirmUpload: InferSelectResult<ConfirmUploadPayload, S> | null;
|
|
113
|
-
}>;
|
|
114
100
|
provisionBucket: <S extends ProvisionBucketPayloadSelect>(args: ProvisionBucketVariables, options: {
|
|
115
101
|
select: S;
|
|
116
102
|
} & StrictSelect<S, ProvisionBucketPayloadSelect>) => QueryBuilder<{
|
|
@@ -113,18 +113,6 @@ function createMutationOperations(client) {
|
|
|
113
113
|
},
|
|
114
114
|
], input_types_1.connectionFieldsMap, 'RequestUploadUrlPayload'),
|
|
115
115
|
}),
|
|
116
|
-
confirmUpload: (args, options) => new query_builder_1.QueryBuilder({
|
|
117
|
-
client,
|
|
118
|
-
operation: 'mutation',
|
|
119
|
-
operationName: 'ConfirmUpload',
|
|
120
|
-
fieldName: 'confirmUpload',
|
|
121
|
-
...(0, query_builder_1.buildCustomDocument)('mutation', 'ConfirmUpload', 'confirmUpload', options.select, args, [
|
|
122
|
-
{
|
|
123
|
-
name: 'input',
|
|
124
|
-
type: 'ConfirmUploadInput!',
|
|
125
|
-
},
|
|
126
|
-
], input_types_1.connectionFieldsMap, 'ConfirmUploadPayload'),
|
|
127
|
-
}),
|
|
128
116
|
provisionBucket: (args, options) => new query_builder_1.QueryBuilder({
|
|
129
117
|
client,
|
|
130
118
|
operation: 'mutation',
|