@constructive-sdk/cli 0.20.3 → 0.20.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/admin/cli/commands/{request-upload-url.d.ts → app-limit-cap.d.ts} +1 -1
- package/admin/cli/commands/app-limit-cap.js +272 -0
- package/{esm/admin/cli/commands/request-upload-url.d.ts → admin/cli/commands/app-limit-caps-default.d.ts} +1 -1
- package/admin/cli/commands/app-limit-caps-default.js +252 -0
- package/{auth/cli/commands/request-upload-url.d.ts → admin/cli/commands/app-limit-credit-code-item.d.ts} +1 -1
- package/admin/cli/commands/app-limit-credit-code-item.js +292 -0
- package/{esm/auth/cli/commands/request-upload-url.d.ts → admin/cli/commands/app-limit-credit-code.d.ts} +1 -1
- package/admin/cli/commands/app-limit-credit-code.js +296 -0
- package/admin/cli/commands/app-limit-credit-redemption.d.ts +8 -0
- package/admin/cli/commands/app-limit-credit-redemption.js +250 -0
- package/admin/cli/commands/app-limit-credit.d.ts +8 -0
- package/admin/cli/commands/app-limit-credit.js +316 -0
- package/admin/cli/commands/app-limit.js +66 -0
- package/admin/cli/commands/org-limit-aggregate.js +88 -0
- package/admin/cli/commands/org-limit-cap.d.ts +8 -0
- package/admin/cli/commands/org-limit-cap.js +272 -0
- package/admin/cli/commands/org-limit-caps-default.d.ts +8 -0
- package/admin/cli/commands/org-limit-caps-default.js +252 -0
- package/admin/cli/commands/org-limit-credit.d.ts +8 -0
- package/admin/cli/commands/org-limit-credit.js +338 -0
- package/admin/cli/commands/org-limit.js +66 -0
- package/admin/cli/commands.js +25 -9
- package/admin/cli/executor.d.ts +12 -8
- 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/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 -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/cli/commands/app-limit-cap.d.ts +8 -0
- package/esm/admin/cli/commands/app-limit-cap.js +270 -0
- package/esm/admin/cli/commands/app-limit-caps-default.d.ts +8 -0
- package/esm/admin/cli/commands/app-limit-caps-default.js +250 -0
- package/esm/admin/cli/commands/app-limit-credit-code-item.d.ts +8 -0
- package/esm/admin/cli/commands/app-limit-credit-code-item.js +290 -0
- package/esm/admin/cli/commands/app-limit-credit-code.d.ts +8 -0
- package/esm/admin/cli/commands/app-limit-credit-code.js +294 -0
- package/esm/admin/cli/commands/app-limit-credit-redemption.d.ts +8 -0
- package/esm/admin/cli/commands/app-limit-credit-redemption.js +248 -0
- package/esm/admin/cli/commands/app-limit-credit.d.ts +8 -0
- package/esm/admin/cli/commands/app-limit-credit.js +314 -0
- package/esm/admin/cli/commands/app-limit.js +66 -0
- package/esm/admin/cli/commands/org-limit-aggregate.js +88 -0
- package/esm/admin/cli/commands/org-limit-cap.d.ts +8 -0
- package/esm/admin/cli/commands/org-limit-cap.js +270 -0
- package/esm/admin/cli/commands/org-limit-caps-default.d.ts +8 -0
- package/esm/admin/cli/commands/org-limit-caps-default.js +250 -0
- package/esm/admin/cli/commands/org-limit-credit.d.ts +8 -0
- package/esm/admin/cli/commands/org-limit-credit.js +336 -0
- package/esm/admin/cli/commands/org-limit.js +66 -0
- package/esm/admin/cli/commands.js +25 -9
- package/esm/admin/cli/executor.d.ts +12 -8
- 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/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 -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/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 -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/cli/commands/api-setting.d.ts +8 -0
- package/esm/public/cli/commands/api-setting.js +468 -0
- package/esm/public/cli/commands/app-limit-cap.d.ts +8 -0
- package/esm/public/cli/commands/app-limit-cap.js +270 -0
- package/esm/public/cli/commands/app-limit-caps-default.d.ts +8 -0
- package/esm/public/cli/commands/app-limit-caps-default.js +250 -0
- package/esm/public/cli/commands/app-limit-credit-code-item.d.ts +8 -0
- package/esm/public/cli/commands/app-limit-credit-code-item.js +290 -0
- package/esm/public/cli/commands/app-limit-credit-code.d.ts +8 -0
- package/esm/public/cli/commands/app-limit-credit-code.js +294 -0
- package/esm/public/cli/commands/app-limit-credit-redemption.d.ts +8 -0
- package/esm/public/cli/commands/app-limit-credit-redemption.js +248 -0
- package/esm/public/cli/commands/app-limit-credit.d.ts +8 -0
- package/esm/public/cli/commands/app-limit-credit.js +314 -0
- package/esm/public/cli/commands/app-limit.js +66 -0
- package/esm/public/cli/commands/append-smart-tags.d.ts +8 -0
- package/esm/{admin/cli/commands/request-upload-url.js → public/cli/commands/append-smart-tags.js} +3 -3
- package/esm/public/cli/commands/billing-provider-module.d.ts +8 -0
- package/esm/public/cli/commands/billing-provider-module.js +624 -0
- package/esm/public/cli/commands/cors-setting.d.ts +8 -0
- package/esm/public/cli/commands/cors-setting.js +272 -0
- package/esm/public/cli/commands/database-setting.d.ts +8 -0
- package/esm/public/cli/commands/database-setting.js +448 -0
- package/esm/public/cli/commands/entity-type-provision.js +22 -0
- package/esm/public/cli/commands/function.d.ts +8 -0
- package/esm/public/cli/commands/function.js +268 -0
- package/esm/public/cli/commands/limits-module.js +198 -0
- package/esm/public/cli/commands/org-limit-aggregate.js +88 -0
- package/esm/public/cli/commands/org-limit-cap.d.ts +8 -0
- package/esm/public/cli/commands/org-limit-cap.js +270 -0
- package/esm/public/cli/commands/org-limit-caps-default.d.ts +8 -0
- package/esm/public/cli/commands/org-limit-caps-default.js +250 -0
- package/esm/public/cli/commands/org-limit-credit.d.ts +8 -0
- package/esm/public/cli/commands/org-limit-credit.js +336 -0
- package/esm/public/cli/commands/org-limit.js +66 -0
- package/esm/public/cli/commands/partition.d.ts +8 -0
- package/esm/public/cli/commands/partition.js +388 -0
- package/esm/public/cli/commands/plans-module.js +44 -0
- package/esm/public/cli/commands/pubkey-setting.d.ts +8 -0
- package/esm/public/cli/commands/pubkey-setting.js +382 -0
- package/esm/public/cli/commands/rls-setting.d.ts +8 -0
- package/esm/public/cli/commands/rls-setting.js +404 -0
- package/esm/public/cli/commands/storage-module.js +198 -0
- package/esm/public/cli/commands/webauthn-setting.d.ts +8 -0
- package/esm/public/cli/commands/webauthn-setting.js +580 -0
- package/esm/public/cli/commands.js +41 -5
- package/esm/public/cli/executor.d.ts +24 -6
- package/esm/public/orm/index.d.ts +43 -7
- package/esm/public/orm/index.js +38 -2
- package/esm/public/orm/input-types.d.ts +4601 -321
- package/esm/public/orm/input-types.js +21 -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 +19 -1
- package/esm/public/orm/models/index.js +19 -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/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/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 -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/cli/commands/api-setting.d.ts +8 -0
- package/public/cli/commands/api-setting.js +470 -0
- package/public/cli/commands/app-limit-cap.d.ts +8 -0
- package/public/cli/commands/app-limit-cap.js +272 -0
- package/public/cli/commands/app-limit-caps-default.d.ts +8 -0
- package/public/cli/commands/app-limit-caps-default.js +252 -0
- package/public/cli/commands/app-limit-credit-code-item.d.ts +8 -0
- package/public/cli/commands/app-limit-credit-code-item.js +292 -0
- package/public/cli/commands/app-limit-credit-code.d.ts +8 -0
- package/public/cli/commands/app-limit-credit-code.js +296 -0
- package/public/cli/commands/app-limit-credit-redemption.d.ts +8 -0
- package/public/cli/commands/app-limit-credit-redemption.js +250 -0
- package/public/cli/commands/app-limit-credit.d.ts +8 -0
- package/public/cli/commands/app-limit-credit.js +316 -0
- package/public/cli/commands/app-limit.js +66 -0
- package/public/cli/commands/append-smart-tags.d.ts +8 -0
- package/{objects/cli/commands/request-upload-url.js → public/cli/commands/append-smart-tags.js} +3 -3
- package/public/cli/commands/billing-provider-module.d.ts +8 -0
- package/public/cli/commands/billing-provider-module.js +626 -0
- package/public/cli/commands/cors-setting.d.ts +8 -0
- package/public/cli/commands/cors-setting.js +274 -0
- package/public/cli/commands/database-setting.d.ts +8 -0
- package/public/cli/commands/database-setting.js +450 -0
- package/public/cli/commands/entity-type-provision.js +22 -0
- package/public/cli/commands/function.d.ts +8 -0
- package/public/cli/commands/function.js +270 -0
- package/public/cli/commands/limits-module.js +198 -0
- package/public/cli/commands/org-limit-aggregate.js +88 -0
- package/public/cli/commands/org-limit-cap.d.ts +8 -0
- package/public/cli/commands/org-limit-cap.js +272 -0
- package/public/cli/commands/org-limit-caps-default.d.ts +8 -0
- package/public/cli/commands/org-limit-caps-default.js +252 -0
- package/public/cli/commands/org-limit-credit.d.ts +8 -0
- package/public/cli/commands/org-limit-credit.js +338 -0
- package/public/cli/commands/org-limit.js +66 -0
- package/public/cli/commands/partition.d.ts +8 -0
- package/public/cli/commands/partition.js +390 -0
- package/public/cli/commands/plans-module.js +44 -0
- package/public/cli/commands/pubkey-setting.d.ts +8 -0
- package/public/cli/commands/pubkey-setting.js +384 -0
- package/public/cli/commands/rls-setting.d.ts +8 -0
- package/public/cli/commands/rls-setting.js +406 -0
- package/public/cli/commands/storage-module.js +198 -0
- package/public/cli/commands/webauthn-setting.d.ts +8 -0
- package/public/cli/commands/webauthn-setting.js +582 -0
- package/public/cli/commands.js +41 -5
- package/public/cli/executor.d.ts +24 -6
- package/public/orm/index.d.ts +43 -7
- package/public/orm/index.js +38 -2
- package/public/orm/input-types.d.ts +4601 -321
- package/public/orm/input-types.js +21 -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 +19 -1
- package/public/orm/models/index.js +41 -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/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
- package/admin/cli/commands/request-upload-url.js +0 -36
- package/auth/cli/commands/request-upload-url.js +0 -36
- package/esm/auth/cli/commands/request-upload-url.js +0 -34
- package/esm/objects/cli/commands/request-upload-url.d.ts +0 -8
- package/esm/objects/cli/commands/request-upload-url.js +0 -34
- package/esm/public/cli/commands/request-upload-url.d.ts +0 -8
- package/esm/public/cli/commands/request-upload-url.js +0 -34
- package/objects/cli/commands/request-upload-url.d.ts +0 -8
- package/public/cli/commands/request-upload-url.d.ts +0 -8
- package/public/cli/commands/request-upload-url.js +0 -36
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OrgLimitCapsDefaultModel = void 0;
|
|
4
|
+
const query_builder_1 = require("../query-builder");
|
|
5
|
+
const input_types_1 = require("../input-types");
|
|
6
|
+
class OrgLimitCapsDefaultModel {
|
|
7
|
+
client;
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
findMany(args) {
|
|
12
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('OrgLimitCapsDefault', 'orgLimitCapsDefaults', args.select, {
|
|
13
|
+
where: args?.where,
|
|
14
|
+
orderBy: args?.orderBy,
|
|
15
|
+
first: args?.first,
|
|
16
|
+
last: args?.last,
|
|
17
|
+
after: args?.after,
|
|
18
|
+
before: args?.before,
|
|
19
|
+
offset: args?.offset,
|
|
20
|
+
}, 'OrgLimitCapsDefaultFilter', 'OrgLimitCapsDefaultOrderBy', input_types_1.connectionFieldsMap);
|
|
21
|
+
return new query_builder_1.QueryBuilder({
|
|
22
|
+
client: this.client,
|
|
23
|
+
operation: 'query',
|
|
24
|
+
operationName: 'OrgLimitCapsDefault',
|
|
25
|
+
fieldName: 'orgLimitCapsDefaults',
|
|
26
|
+
document,
|
|
27
|
+
variables,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
findFirst(args) {
|
|
31
|
+
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('OrgLimitCapsDefault', 'orgLimitCapsDefaults', args.select, {
|
|
32
|
+
where: args?.where,
|
|
33
|
+
}, 'OrgLimitCapsDefaultFilter', input_types_1.connectionFieldsMap);
|
|
34
|
+
return new query_builder_1.QueryBuilder({
|
|
35
|
+
client: this.client,
|
|
36
|
+
operation: 'query',
|
|
37
|
+
operationName: 'OrgLimitCapsDefault',
|
|
38
|
+
fieldName: 'orgLimitCapsDefaults',
|
|
39
|
+
document,
|
|
40
|
+
variables,
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
findOne(args) {
|
|
44
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('OrgLimitCapsDefault', 'orgLimitCapsDefaults', args.select, {
|
|
45
|
+
where: {
|
|
46
|
+
id: {
|
|
47
|
+
equalTo: args.id,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
first: 1,
|
|
51
|
+
}, 'OrgLimitCapsDefaultFilter', 'OrgLimitCapsDefaultOrderBy', input_types_1.connectionFieldsMap);
|
|
52
|
+
return new query_builder_1.QueryBuilder({
|
|
53
|
+
client: this.client,
|
|
54
|
+
operation: 'query',
|
|
55
|
+
operationName: 'OrgLimitCapsDefault',
|
|
56
|
+
fieldName: 'orgLimitCapsDefault',
|
|
57
|
+
document,
|
|
58
|
+
variables,
|
|
59
|
+
transform: (data) => ({
|
|
60
|
+
orgLimitCapsDefault: data.orgLimitCapsDefaults?.nodes?.[0] ?? null,
|
|
61
|
+
}),
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
create(args) {
|
|
65
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('OrgLimitCapsDefault', 'createOrgLimitCapsDefault', 'orgLimitCapsDefault', args.select, args.data, 'CreateOrgLimitCapsDefaultInput', input_types_1.connectionFieldsMap);
|
|
66
|
+
return new query_builder_1.QueryBuilder({
|
|
67
|
+
client: this.client,
|
|
68
|
+
operation: 'mutation',
|
|
69
|
+
operationName: 'OrgLimitCapsDefault',
|
|
70
|
+
fieldName: 'createOrgLimitCapsDefault',
|
|
71
|
+
document,
|
|
72
|
+
variables,
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
update(args) {
|
|
76
|
+
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('OrgLimitCapsDefault', 'updateOrgLimitCapsDefault', 'orgLimitCapsDefault', args.select, args.where.id, args.data, 'UpdateOrgLimitCapsDefaultInput', 'id', 'orgLimitCapsDefaultPatch', input_types_1.connectionFieldsMap);
|
|
77
|
+
return new query_builder_1.QueryBuilder({
|
|
78
|
+
client: this.client,
|
|
79
|
+
operation: 'mutation',
|
|
80
|
+
operationName: 'OrgLimitCapsDefault',
|
|
81
|
+
fieldName: 'updateOrgLimitCapsDefault',
|
|
82
|
+
document,
|
|
83
|
+
variables,
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
delete(args) {
|
|
87
|
+
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('OrgLimitCapsDefault', 'deleteOrgLimitCapsDefault', 'orgLimitCapsDefault', {
|
|
88
|
+
id: args.where.id,
|
|
89
|
+
}, 'DeleteOrgLimitCapsDefaultInput', args.select, input_types_1.connectionFieldsMap);
|
|
90
|
+
return new query_builder_1.QueryBuilder({
|
|
91
|
+
client: this.client,
|
|
92
|
+
operation: 'mutation',
|
|
93
|
+
operationName: 'OrgLimitCapsDefault',
|
|
94
|
+
fieldName: 'deleteOrgLimitCapsDefault',
|
|
95
|
+
document,
|
|
96
|
+
variables,
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
exports.OrgLimitCapsDefaultModel = OrgLimitCapsDefaultModel;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OrgLimitCredit model for ORM client
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { OrmClient } from '../client';
|
|
7
|
+
import { QueryBuilder } from '../query-builder';
|
|
8
|
+
import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, UpdateArgs, DeleteArgs, InferSelectResult, StrictSelect } from '../select-types';
|
|
9
|
+
import type { OrgLimitCreditWithRelations, OrgLimitCreditSelect, OrgLimitCreditFilter, OrgLimitCreditOrderBy, CreateOrgLimitCreditInput, OrgLimitCreditPatch } from '../input-types';
|
|
10
|
+
export declare class OrgLimitCreditModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends OrgLimitCreditSelect>(args: FindManyArgs<S, OrgLimitCreditFilter, OrgLimitCreditOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, OrgLimitCreditSelect>): QueryBuilder<{
|
|
16
|
+
orgLimitCredits: ConnectionResult<InferSelectResult<OrgLimitCreditWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends OrgLimitCreditSelect>(args: FindFirstArgs<S, OrgLimitCreditFilter> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, OrgLimitCreditSelect>): QueryBuilder<{
|
|
21
|
+
orgLimitCredits: {
|
|
22
|
+
nodes: InferSelectResult<OrgLimitCreditWithRelations, S>[];
|
|
23
|
+
};
|
|
24
|
+
}>;
|
|
25
|
+
findOne<S extends OrgLimitCreditSelect>(args: {
|
|
26
|
+
id: string;
|
|
27
|
+
select: S;
|
|
28
|
+
} & StrictSelect<S, OrgLimitCreditSelect>): QueryBuilder<{
|
|
29
|
+
orgLimitCredit: InferSelectResult<OrgLimitCreditWithRelations, S> | null;
|
|
30
|
+
}>;
|
|
31
|
+
create<S extends OrgLimitCreditSelect>(args: CreateArgs<S, CreateOrgLimitCreditInput['orgLimitCredit']> & {
|
|
32
|
+
select: S;
|
|
33
|
+
} & StrictSelect<S, OrgLimitCreditSelect>): QueryBuilder<{
|
|
34
|
+
createOrgLimitCredit: {
|
|
35
|
+
orgLimitCredit: InferSelectResult<OrgLimitCreditWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}>;
|
|
38
|
+
update<S extends OrgLimitCreditSelect>(args: UpdateArgs<S, {
|
|
39
|
+
id: string;
|
|
40
|
+
}, OrgLimitCreditPatch> & {
|
|
41
|
+
select: S;
|
|
42
|
+
} & StrictSelect<S, OrgLimitCreditSelect>): QueryBuilder<{
|
|
43
|
+
updateOrgLimitCredit: {
|
|
44
|
+
orgLimitCredit: InferSelectResult<OrgLimitCreditWithRelations, S>;
|
|
45
|
+
};
|
|
46
|
+
}>;
|
|
47
|
+
delete<S extends OrgLimitCreditSelect>(args: DeleteArgs<{
|
|
48
|
+
id: string;
|
|
49
|
+
}, S> & {
|
|
50
|
+
select: S;
|
|
51
|
+
} & StrictSelect<S, OrgLimitCreditSelect>): QueryBuilder<{
|
|
52
|
+
deleteOrgLimitCredit: {
|
|
53
|
+
orgLimitCredit: InferSelectResult<OrgLimitCreditWithRelations, S>;
|
|
54
|
+
};
|
|
55
|
+
}>;
|
|
56
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OrgLimitCreditModel = void 0;
|
|
4
|
+
const query_builder_1 = require("../query-builder");
|
|
5
|
+
const input_types_1 = require("../input-types");
|
|
6
|
+
class OrgLimitCreditModel {
|
|
7
|
+
client;
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
findMany(args) {
|
|
12
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('OrgLimitCredit', 'orgLimitCredits', args.select, {
|
|
13
|
+
where: args?.where,
|
|
14
|
+
orderBy: args?.orderBy,
|
|
15
|
+
first: args?.first,
|
|
16
|
+
last: args?.last,
|
|
17
|
+
after: args?.after,
|
|
18
|
+
before: args?.before,
|
|
19
|
+
offset: args?.offset,
|
|
20
|
+
}, 'OrgLimitCreditFilter', 'OrgLimitCreditOrderBy', input_types_1.connectionFieldsMap);
|
|
21
|
+
return new query_builder_1.QueryBuilder({
|
|
22
|
+
client: this.client,
|
|
23
|
+
operation: 'query',
|
|
24
|
+
operationName: 'OrgLimitCredit',
|
|
25
|
+
fieldName: 'orgLimitCredits',
|
|
26
|
+
document,
|
|
27
|
+
variables,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
findFirst(args) {
|
|
31
|
+
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('OrgLimitCredit', 'orgLimitCredits', args.select, {
|
|
32
|
+
where: args?.where,
|
|
33
|
+
}, 'OrgLimitCreditFilter', input_types_1.connectionFieldsMap);
|
|
34
|
+
return new query_builder_1.QueryBuilder({
|
|
35
|
+
client: this.client,
|
|
36
|
+
operation: 'query',
|
|
37
|
+
operationName: 'OrgLimitCredit',
|
|
38
|
+
fieldName: 'orgLimitCredits',
|
|
39
|
+
document,
|
|
40
|
+
variables,
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
findOne(args) {
|
|
44
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('OrgLimitCredit', 'orgLimitCredits', args.select, {
|
|
45
|
+
where: {
|
|
46
|
+
id: {
|
|
47
|
+
equalTo: args.id,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
first: 1,
|
|
51
|
+
}, 'OrgLimitCreditFilter', 'OrgLimitCreditOrderBy', input_types_1.connectionFieldsMap);
|
|
52
|
+
return new query_builder_1.QueryBuilder({
|
|
53
|
+
client: this.client,
|
|
54
|
+
operation: 'query',
|
|
55
|
+
operationName: 'OrgLimitCredit',
|
|
56
|
+
fieldName: 'orgLimitCredit',
|
|
57
|
+
document,
|
|
58
|
+
variables,
|
|
59
|
+
transform: (data) => ({
|
|
60
|
+
orgLimitCredit: data.orgLimitCredits?.nodes?.[0] ?? null,
|
|
61
|
+
}),
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
create(args) {
|
|
65
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('OrgLimitCredit', 'createOrgLimitCredit', 'orgLimitCredit', args.select, args.data, 'CreateOrgLimitCreditInput', input_types_1.connectionFieldsMap);
|
|
66
|
+
return new query_builder_1.QueryBuilder({
|
|
67
|
+
client: this.client,
|
|
68
|
+
operation: 'mutation',
|
|
69
|
+
operationName: 'OrgLimitCredit',
|
|
70
|
+
fieldName: 'createOrgLimitCredit',
|
|
71
|
+
document,
|
|
72
|
+
variables,
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
update(args) {
|
|
76
|
+
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('OrgLimitCredit', 'updateOrgLimitCredit', 'orgLimitCredit', args.select, args.where.id, args.data, 'UpdateOrgLimitCreditInput', 'id', 'orgLimitCreditPatch', input_types_1.connectionFieldsMap);
|
|
77
|
+
return new query_builder_1.QueryBuilder({
|
|
78
|
+
client: this.client,
|
|
79
|
+
operation: 'mutation',
|
|
80
|
+
operationName: 'OrgLimitCredit',
|
|
81
|
+
fieldName: 'updateOrgLimitCredit',
|
|
82
|
+
document,
|
|
83
|
+
variables,
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
delete(args) {
|
|
87
|
+
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('OrgLimitCredit', 'deleteOrgLimitCredit', 'orgLimitCredit', {
|
|
88
|
+
id: args.where.id,
|
|
89
|
+
}, 'DeleteOrgLimitCreditInput', args.select, input_types_1.connectionFieldsMap);
|
|
90
|
+
return new query_builder_1.QueryBuilder({
|
|
91
|
+
client: this.client,
|
|
92
|
+
operation: 'mutation',
|
|
93
|
+
operationName: 'OrgLimitCredit',
|
|
94
|
+
fieldName: 'deleteOrgLimitCredit',
|
|
95
|
+
document,
|
|
96
|
+
variables,
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
exports.OrgLimitCreditModel = OrgLimitCreditModel;
|
|
@@ -6,23 +6,13 @@
|
|
|
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 { SubmitAppInviteCodeInput, SubmitOrgInviteCodeInput,
|
|
9
|
+
import type { SubmitAppInviteCodeInput, SubmitOrgInviteCodeInput, ProvisionBucketInput, SubmitAppInviteCodePayload, SubmitOrgInviteCodePayload, ProvisionBucketPayload, SubmitAppInviteCodePayloadSelect, SubmitOrgInviteCodePayloadSelect, ProvisionBucketPayloadSelect } from '../input-types';
|
|
10
10
|
export interface SubmitAppInviteCodeVariables {
|
|
11
11
|
input: SubmitAppInviteCodeInput;
|
|
12
12
|
}
|
|
13
13
|
export interface SubmitOrgInviteCodeVariables {
|
|
14
14
|
input: SubmitOrgInviteCodeInput;
|
|
15
15
|
}
|
|
16
|
-
/**
|
|
17
|
-
* Variables for requestUploadUrl
|
|
18
|
-
* Request a presigned URL for uploading a file directly to S3.
|
|
19
|
-
Client computes SHA-256 of the file content and provides it here.
|
|
20
|
-
If a file with the same hash already exists (dedup), returns the
|
|
21
|
-
existing file ID and deduplicated=true with no uploadUrl.
|
|
22
|
-
*/
|
|
23
|
-
export interface RequestUploadUrlVariables {
|
|
24
|
-
input: RequestUploadUrlInput;
|
|
25
|
-
}
|
|
26
16
|
/**
|
|
27
17
|
* Variables for provisionBucket
|
|
28
18
|
* Provision an S3 bucket for a logical bucket in the database.
|
|
@@ -44,11 +34,6 @@ export declare function createMutationOperations(client: OrmClient): {
|
|
|
44
34
|
} & StrictSelect<S, SubmitOrgInviteCodePayloadSelect>) => QueryBuilder<{
|
|
45
35
|
submitOrgInviteCode: InferSelectResult<SubmitOrgInviteCodePayload, S> | null;
|
|
46
36
|
}>;
|
|
47
|
-
requestUploadUrl: <S extends RequestUploadUrlPayloadSelect>(args: RequestUploadUrlVariables, options: {
|
|
48
|
-
select: S;
|
|
49
|
-
} & StrictSelect<S, RequestUploadUrlPayloadSelect>) => QueryBuilder<{
|
|
50
|
-
requestUploadUrl: InferSelectResult<RequestUploadUrlPayload, S> | null;
|
|
51
|
-
}>;
|
|
52
37
|
provisionBucket: <S extends ProvisionBucketPayloadSelect>(args: ProvisionBucketVariables, options: {
|
|
53
38
|
select: S;
|
|
54
39
|
} & StrictSelect<S, ProvisionBucketPayloadSelect>) => QueryBuilder<{
|
|
@@ -29,18 +29,6 @@ function createMutationOperations(client) {
|
|
|
29
29
|
},
|
|
30
30
|
], input_types_1.connectionFieldsMap, 'SubmitOrgInviteCodePayload'),
|
|
31
31
|
}),
|
|
32
|
-
requestUploadUrl: (args, options) => new query_builder_1.QueryBuilder({
|
|
33
|
-
client,
|
|
34
|
-
operation: 'mutation',
|
|
35
|
-
operationName: 'RequestUploadUrl',
|
|
36
|
-
fieldName: 'requestUploadUrl',
|
|
37
|
-
...(0, query_builder_1.buildCustomDocument)('mutation', 'RequestUploadUrl', 'requestUploadUrl', options.select, args, [
|
|
38
|
-
{
|
|
39
|
-
name: 'input',
|
|
40
|
-
type: 'RequestUploadUrlInput!',
|
|
41
|
-
},
|
|
42
|
-
], input_types_1.connectionFieldsMap, 'RequestUploadUrlPayload'),
|
|
43
|
-
}),
|
|
44
32
|
provisionBucket: (args, options) => new query_builder_1.QueryBuilder({
|
|
45
33
|
client,
|
|
46
34
|
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/auth/cli/commands.js
CHANGED
|
@@ -47,7 +47,6 @@ const extend_token_expires_1 = __importDefault(require("./commands/extend-token-
|
|
|
47
47
|
const create_api_key_1 = __importDefault(require("./commands/create-api-key"));
|
|
48
48
|
const forgot_password_1 = __importDefault(require("./commands/forgot-password"));
|
|
49
49
|
const send_verification_email_1 = __importDefault(require("./commands/send-verification-email"));
|
|
50
|
-
const request_upload_url_1 = __importDefault(require("./commands/request-upload-url"));
|
|
51
50
|
const provision_bucket_1 = __importDefault(require("./commands/provision-bucket"));
|
|
52
51
|
const createCommandMap = () => ({
|
|
53
52
|
context: context_1.default,
|
|
@@ -87,10 +86,9 @@ const createCommandMap = () => ({
|
|
|
87
86
|
'create-api-key': create_api_key_1.default,
|
|
88
87
|
'forgot-password': forgot_password_1.default,
|
|
89
88
|
'send-verification-email': send_verification_email_1.default,
|
|
90
|
-
'request-upload-url': request_upload_url_1.default,
|
|
91
89
|
'provision-bucket': provision_bucket_1.default,
|
|
92
90
|
});
|
|
93
|
-
const usage = '\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n email email CRUD operations\n phone-number phoneNumber CRUD operations\n crypto-address cryptoAddress CRUD operations\n webauthn-credential webauthnCredential CRUD operations\n audit-log auditLog CRUD operations\n identity-provider identityProvider CRUD operations\n role-type roleType CRUD operations\n user-connected-account userConnectedAccount CRUD operations\n user user CRUD operations\n current-user-agent currentUserAgent\n current-ip-address currentIpAddress\n current-user-id currentUserId\n require-step-up requireStepUp\n current-user currentUser\n sign-out signOut\n send-account-deletion-email sendAccountDeletionEmail\n check-password checkPassword\n disconnect-account disconnectAccount\n revoke-api-key revokeApiKey\n revoke-session revokeSession\n verify-password verifyPassword\n verify-totp verifyTotp\n confirm-delete-account confirmDeleteAccount\n set-password setPassword\n verify-email verifyEmail\n provision-new-user provisionNewUser\n reset-password resetPassword\n sign-in-cross-origin signInCrossOrigin\n sign-up signUp\n request-cross-origin-token requestCrossOriginToken\n sign-in signIn\n extend-token-expires extendTokenExpires\n create-api-key createApiKey\n forgot-password forgotPassword\n send-verification-email sendVerificationEmail\n
|
|
91
|
+
const usage = '\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n email email CRUD operations\n phone-number phoneNumber CRUD operations\n crypto-address cryptoAddress CRUD operations\n webauthn-credential webauthnCredential CRUD operations\n audit-log auditLog CRUD operations\n identity-provider identityProvider CRUD operations\n role-type roleType CRUD operations\n user-connected-account userConnectedAccount CRUD operations\n user user CRUD operations\n current-user-agent currentUserAgent\n current-ip-address currentIpAddress\n current-user-id currentUserId\n require-step-up requireStepUp\n current-user currentUser\n sign-out signOut\n send-account-deletion-email sendAccountDeletionEmail\n check-password checkPassword\n disconnect-account disconnectAccount\n revoke-api-key revokeApiKey\n revoke-session revokeSession\n verify-password verifyPassword\n verify-totp verifyTotp\n confirm-delete-account confirmDeleteAccount\n set-password setPassword\n verify-email verifyEmail\n provision-new-user provisionNewUser\n reset-password resetPassword\n sign-in-cross-origin signInCrossOrigin\n sign-up signUp\n request-cross-origin-token requestCrossOriginToken\n sign-in signIn\n extend-token-expires extendTokenExpires\n create-api-key createApiKey\n forgot-password forgotPassword\n send-verification-email sendVerificationEmail\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';
|
|
94
92
|
const commands = async (argv, prompter, options) => {
|
|
95
93
|
if (argv.help || argv.h) {
|
|
96
94
|
console.log(usage);
|
package/auth/cli/executor.d.ts
CHANGED
|
@@ -142,11 +142,6 @@ export declare function getClient(contextName?: string): {
|
|
|
142
142
|
} & import("../orm").StrictSelect<S, import("../orm/input-types").SendVerificationEmailPayloadSelect>) => import("../orm").QueryBuilder<{
|
|
143
143
|
sendVerificationEmail: import("../orm").InferSelectResult<import("../orm/input-types").SendVerificationEmailPayload, S> | null;
|
|
144
144
|
}>;
|
|
145
|
-
requestUploadUrl: <S extends import("../orm/input-types").RequestUploadUrlPayloadSelect>(args: import("../orm/mutation").RequestUploadUrlVariables, options: {
|
|
146
|
-
select: S;
|
|
147
|
-
} & import("../orm").StrictSelect<S, import("../orm/input-types").RequestUploadUrlPayloadSelect>) => import("../orm").QueryBuilder<{
|
|
148
|
-
requestUploadUrl: import("../orm").InferSelectResult<import("../orm/input-types").RequestUploadUrlPayload, S> | null;
|
|
149
|
-
}>;
|
|
150
145
|
provisionBucket: <S extends import("../orm/input-types").ProvisionBucketPayloadSelect>(args: import("../orm/mutation").ProvisionBucketVariables, options: {
|
|
151
146
|
select: S;
|
|
152
147
|
} & import("../orm").StrictSelect<S, import("../orm/input-types").ProvisionBucketPayloadSelect>) => import("../orm").QueryBuilder<{
|
package/auth/orm/index.d.ts
CHANGED
|
@@ -182,11 +182,6 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
182
182
|
} & import("./select-types").StrictSelect<S, import("./input-types").SendVerificationEmailPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
183
183
|
sendVerificationEmail: import("./select-types").InferSelectResult<import("./input-types").SendVerificationEmailPayload, S> | null;
|
|
184
184
|
}>;
|
|
185
|
-
requestUploadUrl: <S extends import("./input-types").RequestUploadUrlPayloadSelect>(args: import("./mutation").RequestUploadUrlVariables, options: {
|
|
186
|
-
select: S;
|
|
187
|
-
} & import("./select-types").StrictSelect<S, import("./input-types").RequestUploadUrlPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
188
|
-
requestUploadUrl: import("./select-types").InferSelectResult<import("./input-types").RequestUploadUrlPayload, S> | null;
|
|
189
|
-
}>;
|
|
190
185
|
provisionBucket: <S extends import("./input-types").ProvisionBucketPayloadSelect>(args: import("./mutation").ProvisionBucketVariables, options: {
|
|
191
186
|
select: S;
|
|
192
187
|
} & import("./select-types").StrictSelect<S, import("./input-types").ProvisionBucketPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
@@ -1162,25 +1162,6 @@ export interface SendVerificationEmailInput {
|
|
|
1162
1162
|
clientMutationId?: string;
|
|
1163
1163
|
email?: ConstructiveInternalTypeEmail;
|
|
1164
1164
|
}
|
|
1165
|
-
export interface RequestUploadUrlInput {
|
|
1166
|
-
/** Bucket key (e.g., "public", "private") */
|
|
1167
|
-
bucketKey: string;
|
|
1168
|
-
/**
|
|
1169
|
-
* Owner entity ID for entity-scoped uploads.
|
|
1170
|
-
* Omit for app-level (database-wide) storage.
|
|
1171
|
-
* When provided, resolves the storage module for the entity type
|
|
1172
|
-
* that owns this entity instance (e.g., a data room ID, team ID).
|
|
1173
|
-
*/
|
|
1174
|
-
ownerId?: string;
|
|
1175
|
-
/** SHA-256 content hash computed by the client (hex-encoded, 64 chars) */
|
|
1176
|
-
contentHash: string;
|
|
1177
|
-
/** MIME type of the file (e.g., "image/png") */
|
|
1178
|
-
contentType: string;
|
|
1179
|
-
/** File size in bytes */
|
|
1180
|
-
size: number;
|
|
1181
|
-
/** Original filename (optional, for display and Content-Disposition) */
|
|
1182
|
-
filename?: string;
|
|
1183
|
-
}
|
|
1184
1165
|
export interface ProvisionBucketInput {
|
|
1185
1166
|
/** The logical bucket key (e.g., "public", "private") */
|
|
1186
1167
|
bucketKey: string;
|
|
@@ -2237,25 +2218,6 @@ export type SendVerificationEmailPayloadSelect = {
|
|
|
2237
2218
|
clientMutationId?: boolean;
|
|
2238
2219
|
result?: boolean;
|
|
2239
2220
|
};
|
|
2240
|
-
export interface RequestUploadUrlPayload {
|
|
2241
|
-
/** Presigned PUT URL (null if file was deduplicated) */
|
|
2242
|
-
uploadUrl?: string | null;
|
|
2243
|
-
/** The file ID (existing if deduplicated, new if fresh upload) */
|
|
2244
|
-
fileId: string;
|
|
2245
|
-
/** The S3 object key */
|
|
2246
|
-
key: string;
|
|
2247
|
-
/** Whether this file was deduplicated (already exists with same hash) */
|
|
2248
|
-
deduplicated: boolean;
|
|
2249
|
-
/** Presigned URL expiry time (null if deduplicated) */
|
|
2250
|
-
expiresAt?: string | null;
|
|
2251
|
-
}
|
|
2252
|
-
export type RequestUploadUrlPayloadSelect = {
|
|
2253
|
-
uploadUrl?: boolean;
|
|
2254
|
-
fileId?: boolean;
|
|
2255
|
-
key?: boolean;
|
|
2256
|
-
deduplicated?: boolean;
|
|
2257
|
-
expiresAt?: boolean;
|
|
2258
|
-
};
|
|
2259
2221
|
export interface ProvisionBucketPayload {
|
|
2260
2222
|
/** Whether provisioning succeeded */
|
|
2261
2223
|
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 { SignOutInput, SendAccountDeletionEmailInput, CheckPasswordInput, DisconnectAccountInput, RevokeApiKeyInput, RevokeSessionInput, VerifyPasswordInput, VerifyTotpInput, ConfirmDeleteAccountInput, SetPasswordInput, VerifyEmailInput, ProvisionNewUserInput, ResetPasswordInput, SignInCrossOriginInput, SignUpInput, RequestCrossOriginTokenInput, SignInInput, ExtendTokenExpiresInput, CreateApiKeyInput, ForgotPasswordInput, SendVerificationEmailInput,
|
|
9
|
+
import type { SignOutInput, SendAccountDeletionEmailInput, CheckPasswordInput, DisconnectAccountInput, RevokeApiKeyInput, RevokeSessionInput, VerifyPasswordInput, VerifyTotpInput, ConfirmDeleteAccountInput, SetPasswordInput, VerifyEmailInput, ProvisionNewUserInput, ResetPasswordInput, SignInCrossOriginInput, SignUpInput, RequestCrossOriginTokenInput, SignInInput, ExtendTokenExpiresInput, CreateApiKeyInput, ForgotPasswordInput, SendVerificationEmailInput, ProvisionBucketInput, SignOutPayload, SendAccountDeletionEmailPayload, CheckPasswordPayload, DisconnectAccountPayload, RevokeApiKeyPayload, RevokeSessionPayload, VerifyPasswordPayload, VerifyTotpPayload, ConfirmDeleteAccountPayload, SetPasswordPayload, VerifyEmailPayload, ProvisionNewUserPayload, ResetPasswordPayload, SignInCrossOriginPayload, SignUpPayload, RequestCrossOriginTokenPayload, SignInPayload, ExtendTokenExpiresPayload, CreateApiKeyPayload, ForgotPasswordPayload, SendVerificationEmailPayload, ProvisionBucketPayload, SignOutPayloadSelect, SendAccountDeletionEmailPayloadSelect, CheckPasswordPayloadSelect, DisconnectAccountPayloadSelect, RevokeApiKeyPayloadSelect, RevokeSessionPayloadSelect, VerifyPasswordPayloadSelect, VerifyTotpPayloadSelect, ConfirmDeleteAccountPayloadSelect, SetPasswordPayloadSelect, VerifyEmailPayloadSelect, ProvisionNewUserPayloadSelect, ResetPasswordPayloadSelect, SignInCrossOriginPayloadSelect, SignUpPayloadSelect, RequestCrossOriginTokenPayloadSelect, SignInPayloadSelect, ExtendTokenExpiresPayloadSelect, CreateApiKeyPayloadSelect, ForgotPasswordPayloadSelect, SendVerificationEmailPayloadSelect, ProvisionBucketPayloadSelect } from '../input-types';
|
|
10
10
|
export interface SignOutVariables {
|
|
11
11
|
input: SignOutInput;
|
|
12
12
|
}
|
|
@@ -70,16 +70,6 @@ export interface ForgotPasswordVariables {
|
|
|
70
70
|
export interface SendVerificationEmailVariables {
|
|
71
71
|
input: SendVerificationEmailInput;
|
|
72
72
|
}
|
|
73
|
-
/**
|
|
74
|
-
* Variables for requestUploadUrl
|
|
75
|
-
* Request a presigned URL for uploading a file directly to S3.
|
|
76
|
-
Client computes SHA-256 of the file content and provides it here.
|
|
77
|
-
If a file with the same hash already exists (dedup), returns the
|
|
78
|
-
existing file ID and deduplicated=true with no uploadUrl.
|
|
79
|
-
*/
|
|
80
|
-
export interface RequestUploadUrlVariables {
|
|
81
|
-
input: RequestUploadUrlInput;
|
|
82
|
-
}
|
|
83
73
|
/**
|
|
84
74
|
* Variables for provisionBucket
|
|
85
75
|
* Provision an S3 bucket for a logical bucket in the database.
|
|
@@ -196,11 +186,6 @@ export declare function createMutationOperations(client: OrmClient): {
|
|
|
196
186
|
} & StrictSelect<S, SendVerificationEmailPayloadSelect>) => QueryBuilder<{
|
|
197
187
|
sendVerificationEmail: InferSelectResult<SendVerificationEmailPayload, S> | null;
|
|
198
188
|
}>;
|
|
199
|
-
requestUploadUrl: <S extends RequestUploadUrlPayloadSelect>(args: RequestUploadUrlVariables, options: {
|
|
200
|
-
select: S;
|
|
201
|
-
} & StrictSelect<S, RequestUploadUrlPayloadSelect>) => QueryBuilder<{
|
|
202
|
-
requestUploadUrl: InferSelectResult<RequestUploadUrlPayload, S> | null;
|
|
203
|
-
}>;
|
|
204
189
|
provisionBucket: <S extends ProvisionBucketPayloadSelect>(args: ProvisionBucketVariables, options: {
|
|
205
190
|
select: S;
|
|
206
191
|
} & StrictSelect<S, ProvisionBucketPayloadSelect>) => QueryBuilder<{
|
|
@@ -257,18 +257,6 @@ function createMutationOperations(client) {
|
|
|
257
257
|
},
|
|
258
258
|
], input_types_1.connectionFieldsMap, 'SendVerificationEmailPayload'),
|
|
259
259
|
}),
|
|
260
|
-
requestUploadUrl: (args, options) => new query_builder_1.QueryBuilder({
|
|
261
|
-
client,
|
|
262
|
-
operation: 'mutation',
|
|
263
|
-
operationName: 'RequestUploadUrl',
|
|
264
|
-
fieldName: 'requestUploadUrl',
|
|
265
|
-
...(0, query_builder_1.buildCustomDocument)('mutation', 'RequestUploadUrl', 'requestUploadUrl', options.select, args, [
|
|
266
|
-
{
|
|
267
|
-
name: 'input',
|
|
268
|
-
type: 'RequestUploadUrlInput!',
|
|
269
|
-
},
|
|
270
|
-
], input_types_1.connectionFieldsMap, 'RequestUploadUrlPayload'),
|
|
271
|
-
}),
|
|
272
260
|
provisionBucket: (args, options) => new query_builder_1.QueryBuilder({
|
|
273
261
|
client,
|
|
274
262
|
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
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI commands for AppLimitCap
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { CLIOptions, Inquirerer } from 'inquirerer';
|
|
7
|
+
declare const _default: (argv: Partial<Record<string, unknown>>, prompter: Inquirerer, _options: CLIOptions) => Promise<void>;
|
|
8
|
+
export default _default;
|