@constructive-io/sdk 0.20.4 → 0.20.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/admin/orm/index.d.ts +24 -11
- package/admin/orm/index.js +24 -6
- package/admin/orm/input-types.d.ts +2108 -545
- package/admin/orm/input-types.js +13 -1
- package/admin/orm/models/appLimitCap.d.ts +56 -0
- package/admin/orm/models/appLimitCap.js +100 -0
- package/admin/orm/models/appLimitCapsDefault.d.ts +56 -0
- package/admin/orm/models/appLimitCapsDefault.js +100 -0
- package/admin/orm/models/appLimitCredit.d.ts +56 -0
- package/admin/orm/models/appLimitCredit.js +100 -0
- package/admin/orm/models/appLimitCreditCode.d.ts +56 -0
- package/admin/orm/models/appLimitCreditCode.js +100 -0
- package/admin/orm/models/appLimitCreditCodeItem.d.ts +56 -0
- package/admin/orm/models/appLimitCreditCodeItem.js +100 -0
- package/admin/orm/models/appLimitCreditRedemption.d.ts +56 -0
- package/admin/orm/models/appLimitCreditRedemption.js +100 -0
- package/admin/orm/models/index.d.ts +12 -3
- package/admin/orm/models/index.js +25 -7
- package/admin/orm/models/orgLimitCap.d.ts +56 -0
- package/admin/orm/models/orgLimitCap.js +100 -0
- package/admin/orm/models/orgLimitCapsDefault.d.ts +56 -0
- package/admin/orm/models/orgLimitCapsDefault.js +100 -0
- package/admin/orm/models/orgLimitCredit.d.ts +56 -0
- package/admin/orm/models/orgLimitCredit.js +100 -0
- package/admin/orm/mutation/index.d.ts +1 -16
- package/admin/orm/mutation/index.js +0 -12
- package/admin/orm/query-builder.js +24 -0
- package/auth/orm/index.d.ts +0 -5
- package/auth/orm/input-types.d.ts +0 -38
- package/auth/orm/mutation/index.d.ts +1 -16
- package/auth/orm/mutation/index.js +0 -12
- package/auth/orm/query-builder.js +24 -0
- package/esm/admin/orm/index.d.ts +24 -11
- package/esm/admin/orm/index.js +24 -6
- package/esm/admin/orm/input-types.d.ts +2108 -545
- package/esm/admin/orm/input-types.js +13 -1
- package/esm/admin/orm/models/appLimitCap.d.ts +56 -0
- package/esm/admin/orm/models/appLimitCap.js +96 -0
- package/esm/admin/orm/models/appLimitCapsDefault.d.ts +56 -0
- package/esm/admin/orm/models/appLimitCapsDefault.js +96 -0
- package/esm/admin/orm/models/appLimitCredit.d.ts +56 -0
- package/esm/admin/orm/models/appLimitCredit.js +96 -0
- package/esm/admin/orm/models/appLimitCreditCode.d.ts +56 -0
- package/esm/admin/orm/models/appLimitCreditCode.js +96 -0
- package/esm/admin/orm/models/appLimitCreditCodeItem.d.ts +56 -0
- package/esm/admin/orm/models/appLimitCreditCodeItem.js +96 -0
- package/esm/admin/orm/models/appLimitCreditRedemption.d.ts +56 -0
- package/esm/admin/orm/models/appLimitCreditRedemption.js +96 -0
- package/esm/admin/orm/models/index.d.ts +12 -3
- package/esm/admin/orm/models/index.js +12 -3
- package/esm/admin/orm/models/orgLimitCap.d.ts +56 -0
- package/esm/admin/orm/models/orgLimitCap.js +96 -0
- package/esm/admin/orm/models/orgLimitCapsDefault.d.ts +56 -0
- package/esm/admin/orm/models/orgLimitCapsDefault.js +96 -0
- package/esm/admin/orm/models/orgLimitCredit.d.ts +56 -0
- package/esm/admin/orm/models/orgLimitCredit.js +96 -0
- package/esm/admin/orm/mutation/index.d.ts +1 -16
- package/esm/admin/orm/mutation/index.js +0 -12
- package/esm/admin/orm/query-builder.js +24 -0
- package/esm/auth/orm/index.d.ts +0 -5
- package/esm/auth/orm/input-types.d.ts +0 -38
- package/esm/auth/orm/mutation/index.d.ts +1 -16
- package/esm/auth/orm/mutation/index.js +0 -12
- package/esm/auth/orm/query-builder.js +24 -0
- package/esm/objects/orm/index.d.ts +0 -5
- package/esm/objects/orm/input-types.d.ts +0 -38
- package/esm/objects/orm/mutation/index.d.ts +1 -16
- package/esm/objects/orm/mutation/index.js +0 -12
- package/esm/objects/orm/query-builder.js +24 -0
- package/esm/public/orm/index.d.ts +45 -7
- package/esm/public/orm/index.js +40 -2
- package/esm/public/orm/input-types.d.ts +4955 -295
- package/esm/public/orm/input-types.js +28 -0
- package/esm/public/orm/models/apiSetting.d.ts +56 -0
- package/esm/public/orm/models/apiSetting.js +96 -0
- package/esm/public/orm/models/appLimitCap.d.ts +56 -0
- package/esm/public/orm/models/appLimitCap.js +96 -0
- package/esm/public/orm/models/appLimitCapsDefault.d.ts +56 -0
- package/esm/public/orm/models/appLimitCapsDefault.js +96 -0
- package/esm/public/orm/models/appLimitCredit.d.ts +56 -0
- package/esm/public/orm/models/appLimitCredit.js +96 -0
- package/esm/public/orm/models/appLimitCreditCode.d.ts +56 -0
- package/esm/public/orm/models/appLimitCreditCode.js +96 -0
- package/esm/public/orm/models/appLimitCreditCodeItem.d.ts +56 -0
- package/esm/public/orm/models/appLimitCreditCodeItem.js +96 -0
- package/esm/public/orm/models/appLimitCreditRedemption.d.ts +56 -0
- package/esm/public/orm/models/appLimitCreditRedemption.js +96 -0
- package/esm/public/orm/models/billingProviderModule.d.ts +56 -0
- package/esm/public/orm/models/billingProviderModule.js +96 -0
- package/esm/public/orm/models/corsSetting.d.ts +56 -0
- package/esm/public/orm/models/corsSetting.js +96 -0
- package/esm/public/orm/models/databaseSetting.d.ts +56 -0
- package/esm/public/orm/models/databaseSetting.js +96 -0
- package/esm/public/orm/models/function.d.ts +56 -0
- package/esm/public/orm/models/function.js +96 -0
- package/esm/public/orm/models/index.d.ts +20 -1
- package/esm/public/orm/models/index.js +20 -1
- package/esm/public/orm/models/orgLimitCap.d.ts +56 -0
- package/esm/public/orm/models/orgLimitCap.js +96 -0
- package/esm/public/orm/models/orgLimitCapsDefault.d.ts +56 -0
- package/esm/public/orm/models/orgLimitCapsDefault.js +96 -0
- package/esm/public/orm/models/orgLimitCredit.d.ts +56 -0
- package/esm/public/orm/models/orgLimitCredit.js +96 -0
- package/esm/public/orm/models/partition.d.ts +56 -0
- package/esm/public/orm/models/partition.js +96 -0
- package/esm/public/orm/models/pubkeySetting.d.ts +56 -0
- package/esm/public/orm/models/pubkeySetting.js +96 -0
- package/esm/public/orm/models/realtimeModule.d.ts +56 -0
- package/esm/public/orm/models/realtimeModule.js +96 -0
- package/esm/public/orm/models/rlsSetting.d.ts +56 -0
- package/esm/public/orm/models/rlsSetting.js +96 -0
- package/esm/public/orm/models/webauthnSetting.d.ts +56 -0
- package/esm/public/orm/models/webauthnSetting.js +96 -0
- package/esm/public/orm/mutation/index.d.ts +9 -16
- package/esm/public/orm/mutation/index.js +12 -12
- package/esm/public/orm/query-builder.js +24 -0
- package/objects/orm/index.d.ts +0 -5
- package/objects/orm/input-types.d.ts +0 -38
- package/objects/orm/mutation/index.d.ts +1 -16
- package/objects/orm/mutation/index.js +0 -12
- package/objects/orm/query-builder.js +24 -0
- package/package.json +4 -4
- package/public/orm/index.d.ts +45 -7
- package/public/orm/index.js +40 -2
- package/public/orm/input-types.d.ts +4955 -295
- package/public/orm/input-types.js +28 -0
- package/public/orm/models/apiSetting.d.ts +56 -0
- package/public/orm/models/apiSetting.js +100 -0
- package/public/orm/models/appLimitCap.d.ts +56 -0
- package/public/orm/models/appLimitCap.js +100 -0
- package/public/orm/models/appLimitCapsDefault.d.ts +56 -0
- package/public/orm/models/appLimitCapsDefault.js +100 -0
- package/public/orm/models/appLimitCredit.d.ts +56 -0
- package/public/orm/models/appLimitCredit.js +100 -0
- package/public/orm/models/appLimitCreditCode.d.ts +56 -0
- package/public/orm/models/appLimitCreditCode.js +100 -0
- package/public/orm/models/appLimitCreditCodeItem.d.ts +56 -0
- package/public/orm/models/appLimitCreditCodeItem.js +100 -0
- package/public/orm/models/appLimitCreditRedemption.d.ts +56 -0
- package/public/orm/models/appLimitCreditRedemption.js +100 -0
- package/public/orm/models/billingProviderModule.d.ts +56 -0
- package/public/orm/models/billingProviderModule.js +100 -0
- package/public/orm/models/corsSetting.d.ts +56 -0
- package/public/orm/models/corsSetting.js +100 -0
- package/public/orm/models/databaseSetting.d.ts +56 -0
- package/public/orm/models/databaseSetting.js +100 -0
- package/public/orm/models/function.d.ts +56 -0
- package/public/orm/models/function.js +100 -0
- package/public/orm/models/index.d.ts +20 -1
- package/public/orm/models/index.js +43 -5
- package/public/orm/models/orgLimitCap.d.ts +56 -0
- package/public/orm/models/orgLimitCap.js +100 -0
- package/public/orm/models/orgLimitCapsDefault.d.ts +56 -0
- package/public/orm/models/orgLimitCapsDefault.js +100 -0
- package/public/orm/models/orgLimitCredit.d.ts +56 -0
- package/public/orm/models/orgLimitCredit.js +100 -0
- package/public/orm/models/partition.d.ts +56 -0
- package/public/orm/models/partition.js +100 -0
- package/public/orm/models/pubkeySetting.d.ts +56 -0
- package/public/orm/models/pubkeySetting.js +100 -0
- package/public/orm/models/realtimeModule.d.ts +56 -0
- package/public/orm/models/realtimeModule.js +100 -0
- package/public/orm/models/rlsSetting.d.ts +56 -0
- package/public/orm/models/rlsSetting.js +100 -0
- package/public/orm/models/webauthnSetting.d.ts +56 -0
- package/public/orm/models/webauthnSetting.js +100 -0
- package/public/orm/mutation/index.d.ts +9 -16
- package/public/orm/mutation/index.js +12 -12
- package/public/orm/query-builder.js +24 -0
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateByPkDocument, buildDeleteByPkDocument, } from '../query-builder';
|
|
2
|
+
import { connectionFieldsMap } from '../input-types';
|
|
3
|
+
export class WebauthnSettingModel {
|
|
4
|
+
client;
|
|
5
|
+
constructor(client) {
|
|
6
|
+
this.client = client;
|
|
7
|
+
}
|
|
8
|
+
findMany(args) {
|
|
9
|
+
const { document, variables } = buildFindManyDocument('WebauthnSetting', 'webauthnSettings', 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
|
+
}, 'WebauthnSettingFilter', 'WebauthnSettingOrderBy', connectionFieldsMap);
|
|
18
|
+
return new QueryBuilder({
|
|
19
|
+
client: this.client,
|
|
20
|
+
operation: 'query',
|
|
21
|
+
operationName: 'WebauthnSetting',
|
|
22
|
+
fieldName: 'webauthnSettings',
|
|
23
|
+
document,
|
|
24
|
+
variables,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
findFirst(args) {
|
|
28
|
+
const { document, variables } = buildFindFirstDocument('WebauthnSetting', 'webauthnSettings', args.select, {
|
|
29
|
+
where: args?.where,
|
|
30
|
+
}, 'WebauthnSettingFilter', connectionFieldsMap);
|
|
31
|
+
return new QueryBuilder({
|
|
32
|
+
client: this.client,
|
|
33
|
+
operation: 'query',
|
|
34
|
+
operationName: 'WebauthnSetting',
|
|
35
|
+
fieldName: 'webauthnSettings',
|
|
36
|
+
document,
|
|
37
|
+
variables,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
findOne(args) {
|
|
41
|
+
const { document, variables } = buildFindManyDocument('WebauthnSetting', 'webauthnSettings', args.select, {
|
|
42
|
+
where: {
|
|
43
|
+
id: {
|
|
44
|
+
equalTo: args.id,
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
first: 1,
|
|
48
|
+
}, 'WebauthnSettingFilter', 'WebauthnSettingOrderBy', connectionFieldsMap);
|
|
49
|
+
return new QueryBuilder({
|
|
50
|
+
client: this.client,
|
|
51
|
+
operation: 'query',
|
|
52
|
+
operationName: 'WebauthnSetting',
|
|
53
|
+
fieldName: 'webauthnSetting',
|
|
54
|
+
document,
|
|
55
|
+
variables,
|
|
56
|
+
transform: (data) => ({
|
|
57
|
+
webauthnSetting: data.webauthnSettings?.nodes?.[0] ?? null,
|
|
58
|
+
}),
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
create(args) {
|
|
62
|
+
const { document, variables } = buildCreateDocument('WebauthnSetting', 'createWebauthnSetting', 'webauthnSetting', args.select, args.data, 'CreateWebauthnSettingInput', connectionFieldsMap);
|
|
63
|
+
return new QueryBuilder({
|
|
64
|
+
client: this.client,
|
|
65
|
+
operation: 'mutation',
|
|
66
|
+
operationName: 'WebauthnSetting',
|
|
67
|
+
fieldName: 'createWebauthnSetting',
|
|
68
|
+
document,
|
|
69
|
+
variables,
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
update(args) {
|
|
73
|
+
const { document, variables } = buildUpdateByPkDocument('WebauthnSetting', 'updateWebauthnSetting', 'webauthnSetting', args.select, args.where.id, args.data, 'UpdateWebauthnSettingInput', 'id', 'webauthnSettingPatch', connectionFieldsMap);
|
|
74
|
+
return new QueryBuilder({
|
|
75
|
+
client: this.client,
|
|
76
|
+
operation: 'mutation',
|
|
77
|
+
operationName: 'WebauthnSetting',
|
|
78
|
+
fieldName: 'updateWebauthnSetting',
|
|
79
|
+
document,
|
|
80
|
+
variables,
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
delete(args) {
|
|
84
|
+
const { document, variables } = buildDeleteByPkDocument('WebauthnSetting', 'deleteWebauthnSetting', 'webauthnSetting', {
|
|
85
|
+
id: args.where.id,
|
|
86
|
+
}, 'DeleteWebauthnSettingInput', args.select, connectionFieldsMap);
|
|
87
|
+
return new QueryBuilder({
|
|
88
|
+
client: this.client,
|
|
89
|
+
operation: 'mutation',
|
|
90
|
+
operationName: 'WebauthnSetting',
|
|
91
|
+
fieldName: 'deleteWebauthnSetting',
|
|
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, SendVerificationEmailInput, ForgotPasswordInput, 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, AppendSmartTagsInput, ProvisionUniqueConstraintInput, ProvisionFullTextSearchInput, ProvisionIndexInput, SetDataAtPathInput, SetPropsAndCommitInput, ProvisionDatabaseWithUserInput, InsertNodeAtPathInput, UpdateNodeAtPathInput, SetAndCommitInput, ProvisionRelationInput, ApplyRlsInput, SignInCrossOriginInput, CreateUserDatabaseInput, ExtendTokenExpiresInput, CreateApiKeyInput, SendVerificationEmailInput, ForgotPasswordInput, SignUpInput, RequestCrossOriginTokenInput, SignInInput, ProvisionTableInput, 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, AppendSmartTagsPayload, ProvisionUniqueConstraintPayload, ProvisionFullTextSearchPayload, ProvisionIndexPayload, SetDataAtPathPayload, SetPropsAndCommitPayload, ProvisionDatabaseWithUserPayload, InsertNodeAtPathPayload, UpdateNodeAtPathPayload, SetAndCommitPayload, ProvisionRelationPayload, ApplyRlsPayload, SignInCrossOriginPayload, CreateUserDatabasePayload, ExtendTokenExpiresPayload, CreateApiKeyPayload, SendVerificationEmailPayload, ForgotPasswordPayload, SignUpPayload, RequestCrossOriginTokenPayload, SignInPayload, ProvisionTablePayload, 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, AppendSmartTagsPayloadSelect, ProvisionUniqueConstraintPayloadSelect, ProvisionFullTextSearchPayloadSelect, ProvisionIndexPayloadSelect, SetDataAtPathPayloadSelect, SetPropsAndCommitPayloadSelect, ProvisionDatabaseWithUserPayloadSelect, InsertNodeAtPathPayloadSelect, UpdateNodeAtPathPayloadSelect, SetAndCommitPayloadSelect, ProvisionRelationPayloadSelect, ApplyRlsPayloadSelect, SignInCrossOriginPayloadSelect, CreateUserDatabasePayloadSelect, ExtendTokenExpiresPayloadSelect, CreateApiKeyPayloadSelect, SendVerificationEmailPayloadSelect, ForgotPasswordPayloadSelect, SignUpPayloadSelect, RequestCrossOriginTokenPayloadSelect, SignInPayloadSelect, ProvisionTablePayloadSelect, ProvisionBucketPayloadSelect } from '../input-types';
|
|
10
10
|
export interface SendAccountDeletionEmailVariables {
|
|
11
11
|
input: SendAccountDeletionEmailInput;
|
|
12
12
|
}
|
|
@@ -97,6 +97,9 @@ export interface BootstrapUserVariables {
|
|
|
97
97
|
export interface SetFieldOrderVariables {
|
|
98
98
|
input: SetFieldOrderInput;
|
|
99
99
|
}
|
|
100
|
+
export interface AppendSmartTagsVariables {
|
|
101
|
+
input: AppendSmartTagsInput;
|
|
102
|
+
}
|
|
100
103
|
/**
|
|
101
104
|
* Variables for provisionUniqueConstraint
|
|
102
105
|
* Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists.
|
|
@@ -199,16 +202,6 @@ export interface SignInVariables {
|
|
|
199
202
|
export interface ProvisionTableVariables {
|
|
200
203
|
input: ProvisionTableInput;
|
|
201
204
|
}
|
|
202
|
-
/**
|
|
203
|
-
* Variables for requestUploadUrl
|
|
204
|
-
* Request a presigned URL for uploading a file directly to S3.
|
|
205
|
-
Client computes SHA-256 of the file content and provides it here.
|
|
206
|
-
If a file with the same hash already exists (dedup), returns the
|
|
207
|
-
existing file ID and deduplicated=true with no uploadUrl.
|
|
208
|
-
*/
|
|
209
|
-
export interface RequestUploadUrlVariables {
|
|
210
|
-
input: RequestUploadUrlInput;
|
|
211
|
-
}
|
|
212
205
|
/**
|
|
213
206
|
* Variables for provisionBucket
|
|
214
207
|
* Provision an S3 bucket for a logical bucket in the database.
|
|
@@ -350,6 +343,11 @@ export declare function createMutationOperations(client: OrmClient): {
|
|
|
350
343
|
} & StrictSelect<S, SetFieldOrderPayloadSelect>) => QueryBuilder<{
|
|
351
344
|
setFieldOrder: InferSelectResult<SetFieldOrderPayload, S> | null;
|
|
352
345
|
}>;
|
|
346
|
+
appendSmartTags: <S extends AppendSmartTagsPayloadSelect>(args: AppendSmartTagsVariables, options: {
|
|
347
|
+
select: S;
|
|
348
|
+
} & StrictSelect<S, AppendSmartTagsPayloadSelect>) => QueryBuilder<{
|
|
349
|
+
appendSmartTags: InferSelectResult<AppendSmartTagsPayload, S> | null;
|
|
350
|
+
}>;
|
|
353
351
|
provisionUniqueConstraint: <S extends ProvisionUniqueConstraintPayloadSelect>(args: ProvisionUniqueConstraintVariables, options: {
|
|
354
352
|
select: S;
|
|
355
353
|
} & StrictSelect<S, ProvisionUniqueConstraintPayloadSelect>) => QueryBuilder<{
|
|
@@ -455,11 +453,6 @@ export declare function createMutationOperations(client: OrmClient): {
|
|
|
455
453
|
} & StrictSelect<S, ProvisionTablePayloadSelect>) => QueryBuilder<{
|
|
456
454
|
provisionTable: InferSelectResult<ProvisionTablePayload, S> | null;
|
|
457
455
|
}>;
|
|
458
|
-
requestUploadUrl: <S extends RequestUploadUrlPayloadSelect>(args: RequestUploadUrlVariables, options: {
|
|
459
|
-
select: S;
|
|
460
|
-
} & StrictSelect<S, RequestUploadUrlPayloadSelect>) => QueryBuilder<{
|
|
461
|
-
requestUploadUrl: InferSelectResult<RequestUploadUrlPayload, S> | null;
|
|
462
|
-
}>;
|
|
463
456
|
provisionBucket: <S extends ProvisionBucketPayloadSelect>(args: ProvisionBucketVariables, options: {
|
|
464
457
|
select: S;
|
|
465
458
|
} & StrictSelect<S, ProvisionBucketPayloadSelect>) => QueryBuilder<{
|
|
@@ -314,6 +314,18 @@ export function createMutationOperations(client) {
|
|
|
314
314
|
},
|
|
315
315
|
], connectionFieldsMap, 'SetFieldOrderPayload'),
|
|
316
316
|
}),
|
|
317
|
+
appendSmartTags: (args, options) => new QueryBuilder({
|
|
318
|
+
client,
|
|
319
|
+
operation: 'mutation',
|
|
320
|
+
operationName: 'AppendSmartTags',
|
|
321
|
+
fieldName: 'appendSmartTags',
|
|
322
|
+
...buildCustomDocument('mutation', 'AppendSmartTags', 'appendSmartTags', options.select, args, [
|
|
323
|
+
{
|
|
324
|
+
name: 'input',
|
|
325
|
+
type: 'AppendSmartTagsInput!',
|
|
326
|
+
},
|
|
327
|
+
], connectionFieldsMap, 'AppendSmartTagsPayload'),
|
|
328
|
+
}),
|
|
317
329
|
provisionUniqueConstraint: (args, options) => new QueryBuilder({
|
|
318
330
|
client,
|
|
319
331
|
operation: 'mutation',
|
|
@@ -566,18 +578,6 @@ export function createMutationOperations(client) {
|
|
|
566
578
|
},
|
|
567
579
|
], connectionFieldsMap, 'ProvisionTablePayload'),
|
|
568
580
|
}),
|
|
569
|
-
requestUploadUrl: (args, options) => new QueryBuilder({
|
|
570
|
-
client,
|
|
571
|
-
operation: 'mutation',
|
|
572
|
-
operationName: 'RequestUploadUrl',
|
|
573
|
-
fieldName: 'requestUploadUrl',
|
|
574
|
-
...buildCustomDocument('mutation', 'RequestUploadUrl', 'requestUploadUrl', options.select, args, [
|
|
575
|
-
{
|
|
576
|
-
name: 'input',
|
|
577
|
-
type: 'RequestUploadUrlInput!',
|
|
578
|
-
},
|
|
579
|
-
], connectionFieldsMap, 'RequestUploadUrlPayload'),
|
|
580
|
-
}),
|
|
581
581
|
provisionBucket: (args, options) => new QueryBuilder({
|
|
582
582
|
client,
|
|
583
583
|
operation: 'mutation',
|
|
@@ -89,6 +89,30 @@ export function buildSelections(select, connectionFieldsMap, entityType) {
|
|
|
89
89
|
}
|
|
90
90
|
if (typeof value === 'object' && value !== null) {
|
|
91
91
|
const nested = value;
|
|
92
|
+
// Field with arguments (e.g. requestUploadUrl on bucket types)
|
|
93
|
+
if (nested.args && typeof nested.args === 'object') {
|
|
94
|
+
const fieldArgs = Object.entries(nested.args).map(([argName, argValue]) => t.argument({ name: argName, value: buildValueAst(argValue) }));
|
|
95
|
+
const nestedSelect = nested.select;
|
|
96
|
+
if (nestedSelect && typeof nestedSelect === 'object') {
|
|
97
|
+
const subSelections = Object.entries(nestedSelect)
|
|
98
|
+
.filter(([, v]) => v)
|
|
99
|
+
.map(([name]) => t.field({ name }));
|
|
100
|
+
fields.push(t.field({
|
|
101
|
+
name: key,
|
|
102
|
+
args: fieldArgs.length ? fieldArgs : undefined,
|
|
103
|
+
selectionSet: subSelections.length
|
|
104
|
+
? t.selectionSet({ selections: subSelections })
|
|
105
|
+
: undefined,
|
|
106
|
+
}));
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
fields.push(t.field({
|
|
110
|
+
name: key,
|
|
111
|
+
args: fieldArgs.length ? fieldArgs : undefined,
|
|
112
|
+
}));
|
|
113
|
+
}
|
|
114
|
+
continue;
|
|
115
|
+
}
|
|
92
116
|
if (!nested.select || typeof nested.select !== 'object') {
|
|
93
117
|
throw new Error(`Invalid selection for field "${key}": nested selections must include a "select" object.`);
|
|
94
118
|
}
|
package/objects/orm/index.d.ts
CHANGED
|
@@ -103,11 +103,6 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
103
103
|
} & import("./select-types").StrictSelect<S, import("./input-types").SetAndCommitPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
104
104
|
setAndCommit: import("./select-types").InferSelectResult<import("./input-types").SetAndCommitPayload, S> | null;
|
|
105
105
|
}>;
|
|
106
|
-
requestUploadUrl: <S extends import("./input-types").RequestUploadUrlPayloadSelect>(args: import("./mutation").RequestUploadUrlVariables, options: {
|
|
107
|
-
select: S;
|
|
108
|
-
} & import("./select-types").StrictSelect<S, import("./input-types").RequestUploadUrlPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
109
|
-
requestUploadUrl: import("./select-types").InferSelectResult<import("./input-types").RequestUploadUrlPayload, S> | null;
|
|
110
|
-
}>;
|
|
111
106
|
provisionBucket: <S extends import("./input-types").ProvisionBucketPayloadSelect>(args: import("./mutation").ProvisionBucketVariables, options: {
|
|
112
107
|
select: S;
|
|
113
108
|
} & import("./select-types").StrictSelect<S, import("./input-types").ProvisionBucketPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
@@ -629,25 +629,6 @@ export interface SetAndCommitInput {
|
|
|
629
629
|
kids?: string[];
|
|
630
630
|
ktree?: string[];
|
|
631
631
|
}
|
|
632
|
-
export interface RequestUploadUrlInput {
|
|
633
|
-
/** Bucket key (e.g., "public", "private") */
|
|
634
|
-
bucketKey: string;
|
|
635
|
-
/**
|
|
636
|
-
* Owner entity ID for entity-scoped uploads.
|
|
637
|
-
* Omit for app-level (database-wide) storage.
|
|
638
|
-
* When provided, resolves the storage module for the entity type
|
|
639
|
-
* that owns this entity instance (e.g., a data room ID, team ID).
|
|
640
|
-
*/
|
|
641
|
-
ownerId?: string;
|
|
642
|
-
/** SHA-256 content hash computed by the client (hex-encoded, 64 chars) */
|
|
643
|
-
contentHash: string;
|
|
644
|
-
/** MIME type of the file (e.g., "image/png") */
|
|
645
|
-
contentType: string;
|
|
646
|
-
/** File size in bytes */
|
|
647
|
-
size: number;
|
|
648
|
-
/** Original filename (optional, for display and Content-Disposition) */
|
|
649
|
-
filename?: string;
|
|
650
|
-
}
|
|
651
632
|
export interface ProvisionBucketInput {
|
|
652
633
|
/** The logical bucket key (e.g., "public", "private") */
|
|
653
634
|
bucketKey: string;
|
|
@@ -736,25 +717,6 @@ export type SetAndCommitPayloadSelect = {
|
|
|
736
717
|
clientMutationId?: boolean;
|
|
737
718
|
result?: boolean;
|
|
738
719
|
};
|
|
739
|
-
export interface RequestUploadUrlPayload {
|
|
740
|
-
/** Presigned PUT URL (null if file was deduplicated) */
|
|
741
|
-
uploadUrl?: string | null;
|
|
742
|
-
/** The file ID (existing if deduplicated, new if fresh upload) */
|
|
743
|
-
fileId: string;
|
|
744
|
-
/** The S3 object key */
|
|
745
|
-
key: string;
|
|
746
|
-
/** Whether this file was deduplicated (already exists with same hash) */
|
|
747
|
-
deduplicated: boolean;
|
|
748
|
-
/** Presigned URL expiry time (null if deduplicated) */
|
|
749
|
-
expiresAt?: string | null;
|
|
750
|
-
}
|
|
751
|
-
export type RequestUploadUrlPayloadSelect = {
|
|
752
|
-
uploadUrl?: boolean;
|
|
753
|
-
fileId?: boolean;
|
|
754
|
-
key?: boolean;
|
|
755
|
-
deduplicated?: boolean;
|
|
756
|
-
expiresAt?: boolean;
|
|
757
|
-
};
|
|
758
720
|
export interface ProvisionBucketPayload {
|
|
759
721
|
/** Whether provisioning succeeded */
|
|
760
722
|
success: boolean;
|
|
@@ -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,
|
|
9
|
+
import type { FreezeObjectsInput, InitEmptyRepoInput, RemoveNodeAtPathInput, SetDataAtPathInput, SetPropsAndCommitInput, InsertNodeAtPathInput, UpdateNodeAtPathInput, SetAndCommitInput, ProvisionBucketInput, FreezeObjectsPayload, InitEmptyRepoPayload, RemoveNodeAtPathPayload, SetDataAtPathPayload, SetPropsAndCommitPayload, InsertNodeAtPathPayload, UpdateNodeAtPathPayload, SetAndCommitPayload, ProvisionBucketPayload, FreezeObjectsPayloadSelect, InitEmptyRepoPayloadSelect, RemoveNodeAtPathPayloadSelect, SetDataAtPathPayloadSelect, SetPropsAndCommitPayloadSelect, InsertNodeAtPathPayloadSelect, UpdateNodeAtPathPayloadSelect, SetAndCommitPayloadSelect, ProvisionBucketPayloadSelect } from '../input-types';
|
|
10
10
|
export interface FreezeObjectsVariables {
|
|
11
11
|
input: FreezeObjectsInput;
|
|
12
12
|
}
|
|
@@ -31,16 +31,6 @@ export interface UpdateNodeAtPathVariables {
|
|
|
31
31
|
export interface SetAndCommitVariables {
|
|
32
32
|
input: SetAndCommitInput;
|
|
33
33
|
}
|
|
34
|
-
/**
|
|
35
|
-
* Variables for requestUploadUrl
|
|
36
|
-
* Request a presigned URL for uploading a file directly to S3.
|
|
37
|
-
Client computes SHA-256 of the file content and provides it here.
|
|
38
|
-
If a file with the same hash already exists (dedup), returns the
|
|
39
|
-
existing file ID and deduplicated=true with no uploadUrl.
|
|
40
|
-
*/
|
|
41
|
-
export interface RequestUploadUrlVariables {
|
|
42
|
-
input: RequestUploadUrlInput;
|
|
43
|
-
}
|
|
44
34
|
/**
|
|
45
35
|
* Variables for provisionBucket
|
|
46
36
|
* Provision an S3 bucket for a logical bucket in the database.
|
|
@@ -92,11 +82,6 @@ export declare function createMutationOperations(client: OrmClient): {
|
|
|
92
82
|
} & StrictSelect<S, SetAndCommitPayloadSelect>) => QueryBuilder<{
|
|
93
83
|
setAndCommit: InferSelectResult<SetAndCommitPayload, S> | null;
|
|
94
84
|
}>;
|
|
95
|
-
requestUploadUrl: <S extends RequestUploadUrlPayloadSelect>(args: RequestUploadUrlVariables, options: {
|
|
96
|
-
select: S;
|
|
97
|
-
} & StrictSelect<S, RequestUploadUrlPayloadSelect>) => QueryBuilder<{
|
|
98
|
-
requestUploadUrl: InferSelectResult<RequestUploadUrlPayload, S> | null;
|
|
99
|
-
}>;
|
|
100
85
|
provisionBucket: <S extends ProvisionBucketPayloadSelect>(args: ProvisionBucketVariables, options: {
|
|
101
86
|
select: S;
|
|
102
87
|
} & StrictSelect<S, ProvisionBucketPayloadSelect>) => QueryBuilder<{
|
|
@@ -101,18 +101,6 @@ function createMutationOperations(client) {
|
|
|
101
101
|
},
|
|
102
102
|
], input_types_1.connectionFieldsMap, 'SetAndCommitPayload'),
|
|
103
103
|
}),
|
|
104
|
-
requestUploadUrl: (args, options) => new query_builder_1.QueryBuilder({
|
|
105
|
-
client,
|
|
106
|
-
operation: 'mutation',
|
|
107
|
-
operationName: 'RequestUploadUrl',
|
|
108
|
-
fieldName: 'requestUploadUrl',
|
|
109
|
-
...(0, query_builder_1.buildCustomDocument)('mutation', 'RequestUploadUrl', 'requestUploadUrl', options.select, args, [
|
|
110
|
-
{
|
|
111
|
-
name: 'input',
|
|
112
|
-
type: 'RequestUploadUrlInput!',
|
|
113
|
-
},
|
|
114
|
-
], input_types_1.connectionFieldsMap, 'RequestUploadUrlPayload'),
|
|
115
|
-
}),
|
|
116
104
|
provisionBucket: (args, options) => new query_builder_1.QueryBuilder({
|
|
117
105
|
client,
|
|
118
106
|
operation: 'mutation',
|
|
@@ -137,6 +137,30 @@ function buildSelections(select, connectionFieldsMap, entityType) {
|
|
|
137
137
|
}
|
|
138
138
|
if (typeof value === 'object' && value !== null) {
|
|
139
139
|
const nested = value;
|
|
140
|
+
// Field with arguments (e.g. requestUploadUrl on bucket types)
|
|
141
|
+
if (nested.args && typeof nested.args === 'object') {
|
|
142
|
+
const fieldArgs = Object.entries(nested.args).map(([argName, argValue]) => t.argument({ name: argName, value: buildValueAst(argValue) }));
|
|
143
|
+
const nestedSelect = nested.select;
|
|
144
|
+
if (nestedSelect && typeof nestedSelect === 'object') {
|
|
145
|
+
const subSelections = Object.entries(nestedSelect)
|
|
146
|
+
.filter(([, v]) => v)
|
|
147
|
+
.map(([name]) => t.field({ name }));
|
|
148
|
+
fields.push(t.field({
|
|
149
|
+
name: key,
|
|
150
|
+
args: fieldArgs.length ? fieldArgs : undefined,
|
|
151
|
+
selectionSet: subSelections.length
|
|
152
|
+
? t.selectionSet({ selections: subSelections })
|
|
153
|
+
: undefined,
|
|
154
|
+
}));
|
|
155
|
+
}
|
|
156
|
+
else {
|
|
157
|
+
fields.push(t.field({
|
|
158
|
+
name: key,
|
|
159
|
+
args: fieldArgs.length ? fieldArgs : undefined,
|
|
160
|
+
}));
|
|
161
|
+
}
|
|
162
|
+
continue;
|
|
163
|
+
}
|
|
140
164
|
if (!nested.select || typeof nested.select !== 'object') {
|
|
141
165
|
throw new Error(`Invalid selection for field "${key}": nested selections must include a "select" object.`);
|
|
142
166
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@constructive-io/sdk",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.6",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "Constructive SDK - Auto-generated GraphQL types and ORM client",
|
|
6
6
|
"main": "index.js",
|
|
@@ -42,17 +42,17 @@
|
|
|
42
42
|
],
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@0no-co/graphql.web": "^1.1.2",
|
|
45
|
-
"@constructive-io/graphql-query": "^3.
|
|
45
|
+
"@constructive-io/graphql-query": "^3.22.0",
|
|
46
46
|
"@constructive-io/graphql-types": "^3.8.0",
|
|
47
47
|
"gql-ast": "^3.8.0",
|
|
48
48
|
"graphql": "16.13.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@constructive-io/graphql-codegen": "^4.
|
|
51
|
+
"@constructive-io/graphql-codegen": "^4.39.0",
|
|
52
52
|
"@types/node": "^22.19.11",
|
|
53
53
|
"makage": "^0.3.0",
|
|
54
54
|
"tsx": "^4.19.0",
|
|
55
55
|
"typescript": "^5.9.3"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "90016935b53d6fb84e0b83879377f0c2eb9abce6"
|
|
58
58
|
}
|
package/public/orm/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ import { TableModel } from './models/table';
|
|
|
12
12
|
import { CheckConstraintModel } from './models/checkConstraint';
|
|
13
13
|
import { FieldModel } from './models/field';
|
|
14
14
|
import { SpatialRelationModel } from './models/spatialRelation';
|
|
15
|
+
import { PartitionModel } from './models/partition';
|
|
15
16
|
import { ForeignKeyConstraintModel } from './models/foreignKeyConstraint';
|
|
16
17
|
import { FullTextSearchModel } from './models/fullTextSearch';
|
|
17
18
|
import { IndexModel } from './models/index';
|
|
@@ -29,20 +30,24 @@ import { SecureTableProvisionModel } from './models/secureTableProvision';
|
|
|
29
30
|
import { RelationProvisionModel } from './models/relationProvision';
|
|
30
31
|
import { SessionSecretsModuleModel } from './models/sessionSecretsModule';
|
|
31
32
|
import { IdentityProvidersModuleModel } from './models/identityProvidersModule';
|
|
33
|
+
import { RealtimeModuleModel } from './models/realtimeModule';
|
|
32
34
|
import { SchemaGrantModel } from './models/schemaGrant';
|
|
33
35
|
import { DefaultPrivilegeModel } from './models/defaultPrivilege';
|
|
34
36
|
import { EnumModel } from './models/enum';
|
|
37
|
+
import { FunctionModel } from './models/function';
|
|
35
38
|
import { ApiSchemaModel } from './models/apiSchema';
|
|
36
39
|
import { ApiModuleModel } from './models/apiModule';
|
|
37
40
|
import { DomainModel } from './models/domain';
|
|
38
41
|
import { SiteMetadatumModel } from './models/siteMetadatum';
|
|
39
42
|
import { SiteModuleModel } from './models/siteModule';
|
|
40
43
|
import { SiteThemeModel } from './models/siteTheme';
|
|
44
|
+
import { CorsSettingModel } from './models/corsSetting';
|
|
41
45
|
import { TriggerFunctionModel } from './models/triggerFunction';
|
|
42
46
|
import { DatabaseTransferModel } from './models/databaseTransfer';
|
|
43
47
|
import { ApiModel } from './models/api';
|
|
44
48
|
import { SiteModel } from './models/site';
|
|
45
49
|
import { AppModel } from './models/app';
|
|
50
|
+
import { ApiSettingModel } from './models/apiSetting';
|
|
46
51
|
import { ConnectedAccountsModuleModel } from './models/connectedAccountsModule';
|
|
47
52
|
import { CryptoAddressesModuleModel } from './models/cryptoAddressesModule';
|
|
48
53
|
import { CryptoAuthModuleModel } from './models/cryptoAuthModule';
|
|
@@ -84,7 +89,11 @@ import { OrgChartEdgeModel } from './models/orgChartEdge';
|
|
|
84
89
|
import { OrgChartEdgeGrantModel } from './models/orgChartEdgeGrant';
|
|
85
90
|
import { OrgPermissionDefaultModel } from './models/orgPermissionDefault';
|
|
86
91
|
import { AppLimitModel } from './models/appLimit';
|
|
92
|
+
import { AppLimitCreditModel } from './models/appLimitCredit';
|
|
93
|
+
import { AppLimitCreditCodeItemModel } from './models/appLimitCreditCodeItem';
|
|
94
|
+
import { AppLimitCreditRedemptionModel } from './models/appLimitCreditRedemption';
|
|
87
95
|
import { OrgLimitModel } from './models/orgLimit';
|
|
96
|
+
import { OrgLimitCreditModel } from './models/orgLimitCredit';
|
|
88
97
|
import { OrgLimitAggregateModel } from './models/orgLimitAggregate';
|
|
89
98
|
import { AppStepModel } from './models/appStep';
|
|
90
99
|
import { AppAchievementModel } from './models/appAchievement';
|
|
@@ -106,6 +115,11 @@ import { IdentityProviderModel } from './models/identityProvider';
|
|
|
106
115
|
import { RefModel } from './models/ref';
|
|
107
116
|
import { StoreModel } from './models/store';
|
|
108
117
|
import { AppPermissionDefaultModel } from './models/appPermissionDefault';
|
|
118
|
+
import { AppLimitCreditCodeModel } from './models/appLimitCreditCode';
|
|
119
|
+
import { AppLimitCapsDefaultModel } from './models/appLimitCapsDefault';
|
|
120
|
+
import { OrgLimitCapsDefaultModel } from './models/orgLimitCapsDefault';
|
|
121
|
+
import { AppLimitCapModel } from './models/appLimitCap';
|
|
122
|
+
import { OrgLimitCapModel } from './models/orgLimitCap';
|
|
109
123
|
import { MembershipTypeModel } from './models/membershipType';
|
|
110
124
|
import { MigrateFileModel } from './models/migrateFile';
|
|
111
125
|
import { DevicesModuleModel } from './models/devicesModule';
|
|
@@ -114,19 +128,24 @@ import { AppLimitDefaultModel } from './models/appLimitDefault';
|
|
|
114
128
|
import { OrgLimitDefaultModel } from './models/orgLimitDefault';
|
|
115
129
|
import { UserConnectedAccountModel } from './models/userConnectedAccount';
|
|
116
130
|
import { CommitModel } from './models/commit';
|
|
131
|
+
import { PubkeySettingModel } from './models/pubkeySetting';
|
|
117
132
|
import { RateLimitsModuleModel } from './models/rateLimitsModule';
|
|
118
133
|
import { AppMembershipDefaultModel } from './models/appMembershipDefault';
|
|
119
134
|
import { OrgMembershipDefaultModel } from './models/orgMembershipDefault';
|
|
135
|
+
import { RlsSettingModel } from './models/rlsSetting';
|
|
120
136
|
import { AppLimitEventModel } from './models/appLimitEvent';
|
|
121
137
|
import { OrgLimitEventModel } from './models/orgLimitEvent';
|
|
122
|
-
import { PlansModuleModel } from './models/plansModule';
|
|
123
138
|
import { RlsModuleModel } from './models/rlsModule';
|
|
139
|
+
import { DatabaseSettingModel } from './models/databaseSetting';
|
|
140
|
+
import { PlansModuleModel } from './models/plansModule';
|
|
124
141
|
import { SqlActionModel } from './models/sqlAction';
|
|
125
142
|
import { BillingModuleModel } from './models/billingModule';
|
|
126
143
|
import { AstMigrationModel } from './models/astMigration';
|
|
127
144
|
import { UserModel } from './models/user';
|
|
128
145
|
import { OrgMembershipSettingModel } from './models/orgMembershipSetting';
|
|
146
|
+
import { WebauthnSettingModel } from './models/webauthnSetting';
|
|
129
147
|
import { AppMembershipModel } from './models/appMembership';
|
|
148
|
+
import { BillingProviderModuleModel } from './models/billingProviderModule';
|
|
130
149
|
import { HierarchyModuleModel } from './models/hierarchyModule';
|
|
131
150
|
export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client';
|
|
132
151
|
export { GraphQLRequestError } from './client';
|
|
@@ -172,6 +191,7 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
172
191
|
checkConstraint: CheckConstraintModel;
|
|
173
192
|
field: FieldModel;
|
|
174
193
|
spatialRelation: SpatialRelationModel;
|
|
194
|
+
partition: PartitionModel;
|
|
175
195
|
foreignKeyConstraint: ForeignKeyConstraintModel;
|
|
176
196
|
fullTextSearch: FullTextSearchModel;
|
|
177
197
|
index: IndexModel;
|
|
@@ -189,20 +209,24 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
189
209
|
relationProvision: RelationProvisionModel;
|
|
190
210
|
sessionSecretsModule: SessionSecretsModuleModel;
|
|
191
211
|
identityProvidersModule: IdentityProvidersModuleModel;
|
|
212
|
+
realtimeModule: RealtimeModuleModel;
|
|
192
213
|
schemaGrant: SchemaGrantModel;
|
|
193
214
|
defaultPrivilege: DefaultPrivilegeModel;
|
|
194
215
|
enum: EnumModel;
|
|
216
|
+
function: FunctionModel;
|
|
195
217
|
apiSchema: ApiSchemaModel;
|
|
196
218
|
apiModule: ApiModuleModel;
|
|
197
219
|
domain: DomainModel;
|
|
198
220
|
siteMetadatum: SiteMetadatumModel;
|
|
199
221
|
siteModule: SiteModuleModel;
|
|
200
222
|
siteTheme: SiteThemeModel;
|
|
223
|
+
corsSetting: CorsSettingModel;
|
|
201
224
|
triggerFunction: TriggerFunctionModel;
|
|
202
225
|
databaseTransfer: DatabaseTransferModel;
|
|
203
226
|
api: ApiModel;
|
|
204
227
|
site: SiteModel;
|
|
205
228
|
app: AppModel;
|
|
229
|
+
apiSetting: ApiSettingModel;
|
|
206
230
|
connectedAccountsModule: ConnectedAccountsModuleModel;
|
|
207
231
|
cryptoAddressesModule: CryptoAddressesModuleModel;
|
|
208
232
|
cryptoAuthModule: CryptoAuthModuleModel;
|
|
@@ -244,7 +268,11 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
244
268
|
orgChartEdgeGrant: OrgChartEdgeGrantModel;
|
|
245
269
|
orgPermissionDefault: OrgPermissionDefaultModel;
|
|
246
270
|
appLimit: AppLimitModel;
|
|
271
|
+
appLimitCredit: AppLimitCreditModel;
|
|
272
|
+
appLimitCreditCodeItem: AppLimitCreditCodeItemModel;
|
|
273
|
+
appLimitCreditRedemption: AppLimitCreditRedemptionModel;
|
|
247
274
|
orgLimit: OrgLimitModel;
|
|
275
|
+
orgLimitCredit: OrgLimitCreditModel;
|
|
248
276
|
orgLimitAggregate: OrgLimitAggregateModel;
|
|
249
277
|
appStep: AppStepModel;
|
|
250
278
|
appAchievement: AppAchievementModel;
|
|
@@ -266,6 +294,11 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
266
294
|
ref: RefModel;
|
|
267
295
|
store: StoreModel;
|
|
268
296
|
appPermissionDefault: AppPermissionDefaultModel;
|
|
297
|
+
appLimitCreditCode: AppLimitCreditCodeModel;
|
|
298
|
+
appLimitCapsDefault: AppLimitCapsDefaultModel;
|
|
299
|
+
orgLimitCapsDefault: OrgLimitCapsDefaultModel;
|
|
300
|
+
appLimitCap: AppLimitCapModel;
|
|
301
|
+
orgLimitCap: OrgLimitCapModel;
|
|
269
302
|
membershipType: MembershipTypeModel;
|
|
270
303
|
migrateFile: MigrateFileModel;
|
|
271
304
|
devicesModule: DevicesModuleModel;
|
|
@@ -274,19 +307,24 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
274
307
|
orgLimitDefault: OrgLimitDefaultModel;
|
|
275
308
|
userConnectedAccount: UserConnectedAccountModel;
|
|
276
309
|
commit: CommitModel;
|
|
310
|
+
pubkeySetting: PubkeySettingModel;
|
|
277
311
|
rateLimitsModule: RateLimitsModuleModel;
|
|
278
312
|
appMembershipDefault: AppMembershipDefaultModel;
|
|
279
313
|
orgMembershipDefault: OrgMembershipDefaultModel;
|
|
314
|
+
rlsSetting: RlsSettingModel;
|
|
280
315
|
appLimitEvent: AppLimitEventModel;
|
|
281
316
|
orgLimitEvent: OrgLimitEventModel;
|
|
282
|
-
plansModule: PlansModuleModel;
|
|
283
317
|
rlsModule: RlsModuleModel;
|
|
318
|
+
databaseSetting: DatabaseSettingModel;
|
|
319
|
+
plansModule: PlansModuleModel;
|
|
284
320
|
sqlAction: SqlActionModel;
|
|
285
321
|
billingModule: BillingModuleModel;
|
|
286
322
|
astMigration: AstMigrationModel;
|
|
287
323
|
user: UserModel;
|
|
288
324
|
orgMembershipSetting: OrgMembershipSettingModel;
|
|
325
|
+
webauthnSetting: WebauthnSettingModel;
|
|
289
326
|
appMembership: AppMembershipModel;
|
|
327
|
+
billingProviderModule: BillingProviderModuleModel;
|
|
290
328
|
hierarchyModule: HierarchyModuleModel;
|
|
291
329
|
query: {
|
|
292
330
|
currentUserId: (options?: {
|
|
@@ -531,6 +569,11 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
531
569
|
} & import("./select-types").StrictSelect<S, import("./input-types").SetFieldOrderPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
532
570
|
setFieldOrder: import("./select-types").InferSelectResult<import("./input-types").SetFieldOrderPayload, S> | null;
|
|
533
571
|
}>;
|
|
572
|
+
appendSmartTags: <S extends import("./input-types").AppendSmartTagsPayloadSelect>(args: import("./mutation").AppendSmartTagsVariables, options: {
|
|
573
|
+
select: S;
|
|
574
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").AppendSmartTagsPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
575
|
+
appendSmartTags: import("./select-types").InferSelectResult<import("./input-types").AppendSmartTagsPayload, S> | null;
|
|
576
|
+
}>;
|
|
534
577
|
provisionUniqueConstraint: <S extends import("./input-types").ProvisionUniqueConstraintPayloadSelect>(args: import("./mutation").ProvisionUniqueConstraintVariables, options: {
|
|
535
578
|
select: S;
|
|
536
579
|
} & import("./select-types").StrictSelect<S, import("./input-types").ProvisionUniqueConstraintPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
@@ -636,11 +679,6 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
636
679
|
} & import("./select-types").StrictSelect<S, import("./input-types").ProvisionTablePayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
637
680
|
provisionTable: import("./select-types").InferSelectResult<import("./input-types").ProvisionTablePayload, S> | null;
|
|
638
681
|
}>;
|
|
639
|
-
requestUploadUrl: <S extends import("./input-types").RequestUploadUrlPayloadSelect>(args: import("./mutation").RequestUploadUrlVariables, options: {
|
|
640
|
-
select: S;
|
|
641
|
-
} & import("./select-types").StrictSelect<S, import("./input-types").RequestUploadUrlPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
642
|
-
requestUploadUrl: import("./select-types").InferSelectResult<import("./input-types").RequestUploadUrlPayload, S> | null;
|
|
643
|
-
}>;
|
|
644
682
|
provisionBucket: <S extends import("./input-types").ProvisionBucketPayloadSelect>(args: import("./mutation").ProvisionBucketVariables, options: {
|
|
645
683
|
select: S;
|
|
646
684
|
} & import("./select-types").StrictSelect<S, import("./input-types").ProvisionBucketPayloadSelect>) => import("./query-builder").QueryBuilder<{
|