@constructive-sdk/cli 0.20.4 → 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
package/admin/orm/input-types.js
CHANGED
|
@@ -2,4 +2,16 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.connectionFieldsMap = void 0;
|
|
4
4
|
// ============ Connection Fields Map ============
|
|
5
|
-
exports.connectionFieldsMap = {
|
|
5
|
+
exports.connectionFieldsMap = {
|
|
6
|
+
AppLimitCreditCode: {
|
|
7
|
+
appLimitCreditCodeItemsByCreditCodeId: 'AppLimitCreditCodeItem',
|
|
8
|
+
appLimitCreditRedemptionsByCreditCodeId: 'AppLimitCreditRedemption',
|
|
9
|
+
},
|
|
10
|
+
AppLimitDefault: {
|
|
11
|
+
appLimitCreditsByDefaultLimitId: 'AppLimitCredit',
|
|
12
|
+
appLimitCreditCodeItemsByDefaultLimitId: 'AppLimitCreditCodeItem',
|
|
13
|
+
},
|
|
14
|
+
OrgLimitDefault: {
|
|
15
|
+
orgLimitCreditsByDefaultLimitId: 'OrgLimitCredit',
|
|
16
|
+
},
|
|
17
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AppLimitCap 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 { AppLimitCapWithRelations, AppLimitCapSelect, AppLimitCapFilter, AppLimitCapOrderBy, CreateAppLimitCapInput, AppLimitCapPatch } from '../input-types';
|
|
10
|
+
export declare class AppLimitCapModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends AppLimitCapSelect>(args: FindManyArgs<S, AppLimitCapFilter, AppLimitCapOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, AppLimitCapSelect>): QueryBuilder<{
|
|
16
|
+
appLimitCaps: ConnectionResult<InferSelectResult<AppLimitCapWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends AppLimitCapSelect>(args: FindFirstArgs<S, AppLimitCapFilter> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, AppLimitCapSelect>): QueryBuilder<{
|
|
21
|
+
appLimitCaps: {
|
|
22
|
+
nodes: InferSelectResult<AppLimitCapWithRelations, S>[];
|
|
23
|
+
};
|
|
24
|
+
}>;
|
|
25
|
+
findOne<S extends AppLimitCapSelect>(args: {
|
|
26
|
+
id: string;
|
|
27
|
+
select: S;
|
|
28
|
+
} & StrictSelect<S, AppLimitCapSelect>): QueryBuilder<{
|
|
29
|
+
appLimitCap: InferSelectResult<AppLimitCapWithRelations, S> | null;
|
|
30
|
+
}>;
|
|
31
|
+
create<S extends AppLimitCapSelect>(args: CreateArgs<S, CreateAppLimitCapInput['appLimitCap']> & {
|
|
32
|
+
select: S;
|
|
33
|
+
} & StrictSelect<S, AppLimitCapSelect>): QueryBuilder<{
|
|
34
|
+
createAppLimitCap: {
|
|
35
|
+
appLimitCap: InferSelectResult<AppLimitCapWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}>;
|
|
38
|
+
update<S extends AppLimitCapSelect>(args: UpdateArgs<S, {
|
|
39
|
+
id: string;
|
|
40
|
+
}, AppLimitCapPatch> & {
|
|
41
|
+
select: S;
|
|
42
|
+
} & StrictSelect<S, AppLimitCapSelect>): QueryBuilder<{
|
|
43
|
+
updateAppLimitCap: {
|
|
44
|
+
appLimitCap: InferSelectResult<AppLimitCapWithRelations, S>;
|
|
45
|
+
};
|
|
46
|
+
}>;
|
|
47
|
+
delete<S extends AppLimitCapSelect>(args: DeleteArgs<{
|
|
48
|
+
id: string;
|
|
49
|
+
}, S> & {
|
|
50
|
+
select: S;
|
|
51
|
+
} & StrictSelect<S, AppLimitCapSelect>): QueryBuilder<{
|
|
52
|
+
deleteAppLimitCap: {
|
|
53
|
+
appLimitCap: InferSelectResult<AppLimitCapWithRelations, S>;
|
|
54
|
+
};
|
|
55
|
+
}>;
|
|
56
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AppLimitCapModel = void 0;
|
|
4
|
+
const query_builder_1 = require("../query-builder");
|
|
5
|
+
const input_types_1 = require("../input-types");
|
|
6
|
+
class AppLimitCapModel {
|
|
7
|
+
client;
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
findMany(args) {
|
|
12
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('AppLimitCap', 'appLimitCaps', 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
|
+
}, 'AppLimitCapFilter', 'AppLimitCapOrderBy', input_types_1.connectionFieldsMap);
|
|
21
|
+
return new query_builder_1.QueryBuilder({
|
|
22
|
+
client: this.client,
|
|
23
|
+
operation: 'query',
|
|
24
|
+
operationName: 'AppLimitCap',
|
|
25
|
+
fieldName: 'appLimitCaps',
|
|
26
|
+
document,
|
|
27
|
+
variables,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
findFirst(args) {
|
|
31
|
+
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('AppLimitCap', 'appLimitCaps', args.select, {
|
|
32
|
+
where: args?.where,
|
|
33
|
+
}, 'AppLimitCapFilter', input_types_1.connectionFieldsMap);
|
|
34
|
+
return new query_builder_1.QueryBuilder({
|
|
35
|
+
client: this.client,
|
|
36
|
+
operation: 'query',
|
|
37
|
+
operationName: 'AppLimitCap',
|
|
38
|
+
fieldName: 'appLimitCaps',
|
|
39
|
+
document,
|
|
40
|
+
variables,
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
findOne(args) {
|
|
44
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('AppLimitCap', 'appLimitCaps', args.select, {
|
|
45
|
+
where: {
|
|
46
|
+
id: {
|
|
47
|
+
equalTo: args.id,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
first: 1,
|
|
51
|
+
}, 'AppLimitCapFilter', 'AppLimitCapOrderBy', input_types_1.connectionFieldsMap);
|
|
52
|
+
return new query_builder_1.QueryBuilder({
|
|
53
|
+
client: this.client,
|
|
54
|
+
operation: 'query',
|
|
55
|
+
operationName: 'AppLimitCap',
|
|
56
|
+
fieldName: 'appLimitCap',
|
|
57
|
+
document,
|
|
58
|
+
variables,
|
|
59
|
+
transform: (data) => ({
|
|
60
|
+
appLimitCap: data.appLimitCaps?.nodes?.[0] ?? null,
|
|
61
|
+
}),
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
create(args) {
|
|
65
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('AppLimitCap', 'createAppLimitCap', 'appLimitCap', args.select, args.data, 'CreateAppLimitCapInput', input_types_1.connectionFieldsMap);
|
|
66
|
+
return new query_builder_1.QueryBuilder({
|
|
67
|
+
client: this.client,
|
|
68
|
+
operation: 'mutation',
|
|
69
|
+
operationName: 'AppLimitCap',
|
|
70
|
+
fieldName: 'createAppLimitCap',
|
|
71
|
+
document,
|
|
72
|
+
variables,
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
update(args) {
|
|
76
|
+
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('AppLimitCap', 'updateAppLimitCap', 'appLimitCap', args.select, args.where.id, args.data, 'UpdateAppLimitCapInput', 'id', 'appLimitCapPatch', input_types_1.connectionFieldsMap);
|
|
77
|
+
return new query_builder_1.QueryBuilder({
|
|
78
|
+
client: this.client,
|
|
79
|
+
operation: 'mutation',
|
|
80
|
+
operationName: 'AppLimitCap',
|
|
81
|
+
fieldName: 'updateAppLimitCap',
|
|
82
|
+
document,
|
|
83
|
+
variables,
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
delete(args) {
|
|
87
|
+
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('AppLimitCap', 'deleteAppLimitCap', 'appLimitCap', {
|
|
88
|
+
id: args.where.id,
|
|
89
|
+
}, 'DeleteAppLimitCapInput', args.select, input_types_1.connectionFieldsMap);
|
|
90
|
+
return new query_builder_1.QueryBuilder({
|
|
91
|
+
client: this.client,
|
|
92
|
+
operation: 'mutation',
|
|
93
|
+
operationName: 'AppLimitCap',
|
|
94
|
+
fieldName: 'deleteAppLimitCap',
|
|
95
|
+
document,
|
|
96
|
+
variables,
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
exports.AppLimitCapModel = AppLimitCapModel;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AppLimitCapsDefault 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 { AppLimitCapsDefaultWithRelations, AppLimitCapsDefaultSelect, AppLimitCapsDefaultFilter, AppLimitCapsDefaultOrderBy, CreateAppLimitCapsDefaultInput, AppLimitCapsDefaultPatch } from '../input-types';
|
|
10
|
+
export declare class AppLimitCapsDefaultModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends AppLimitCapsDefaultSelect>(args: FindManyArgs<S, AppLimitCapsDefaultFilter, AppLimitCapsDefaultOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, AppLimitCapsDefaultSelect>): QueryBuilder<{
|
|
16
|
+
appLimitCapsDefaults: ConnectionResult<InferSelectResult<AppLimitCapsDefaultWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends AppLimitCapsDefaultSelect>(args: FindFirstArgs<S, AppLimitCapsDefaultFilter> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, AppLimitCapsDefaultSelect>): QueryBuilder<{
|
|
21
|
+
appLimitCapsDefaults: {
|
|
22
|
+
nodes: InferSelectResult<AppLimitCapsDefaultWithRelations, S>[];
|
|
23
|
+
};
|
|
24
|
+
}>;
|
|
25
|
+
findOne<S extends AppLimitCapsDefaultSelect>(args: {
|
|
26
|
+
id: string;
|
|
27
|
+
select: S;
|
|
28
|
+
} & StrictSelect<S, AppLimitCapsDefaultSelect>): QueryBuilder<{
|
|
29
|
+
appLimitCapsDefault: InferSelectResult<AppLimitCapsDefaultWithRelations, S> | null;
|
|
30
|
+
}>;
|
|
31
|
+
create<S extends AppLimitCapsDefaultSelect>(args: CreateArgs<S, CreateAppLimitCapsDefaultInput['appLimitCapsDefault']> & {
|
|
32
|
+
select: S;
|
|
33
|
+
} & StrictSelect<S, AppLimitCapsDefaultSelect>): QueryBuilder<{
|
|
34
|
+
createAppLimitCapsDefault: {
|
|
35
|
+
appLimitCapsDefault: InferSelectResult<AppLimitCapsDefaultWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}>;
|
|
38
|
+
update<S extends AppLimitCapsDefaultSelect>(args: UpdateArgs<S, {
|
|
39
|
+
id: string;
|
|
40
|
+
}, AppLimitCapsDefaultPatch> & {
|
|
41
|
+
select: S;
|
|
42
|
+
} & StrictSelect<S, AppLimitCapsDefaultSelect>): QueryBuilder<{
|
|
43
|
+
updateAppLimitCapsDefault: {
|
|
44
|
+
appLimitCapsDefault: InferSelectResult<AppLimitCapsDefaultWithRelations, S>;
|
|
45
|
+
};
|
|
46
|
+
}>;
|
|
47
|
+
delete<S extends AppLimitCapsDefaultSelect>(args: DeleteArgs<{
|
|
48
|
+
id: string;
|
|
49
|
+
}, S> & {
|
|
50
|
+
select: S;
|
|
51
|
+
} & StrictSelect<S, AppLimitCapsDefaultSelect>): QueryBuilder<{
|
|
52
|
+
deleteAppLimitCapsDefault: {
|
|
53
|
+
appLimitCapsDefault: InferSelectResult<AppLimitCapsDefaultWithRelations, S>;
|
|
54
|
+
};
|
|
55
|
+
}>;
|
|
56
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AppLimitCapsDefaultModel = void 0;
|
|
4
|
+
const query_builder_1 = require("../query-builder");
|
|
5
|
+
const input_types_1 = require("../input-types");
|
|
6
|
+
class AppLimitCapsDefaultModel {
|
|
7
|
+
client;
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
findMany(args) {
|
|
12
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('AppLimitCapsDefault', 'appLimitCapsDefaults', 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
|
+
}, 'AppLimitCapsDefaultFilter', 'AppLimitCapsDefaultOrderBy', input_types_1.connectionFieldsMap);
|
|
21
|
+
return new query_builder_1.QueryBuilder({
|
|
22
|
+
client: this.client,
|
|
23
|
+
operation: 'query',
|
|
24
|
+
operationName: 'AppLimitCapsDefault',
|
|
25
|
+
fieldName: 'appLimitCapsDefaults',
|
|
26
|
+
document,
|
|
27
|
+
variables,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
findFirst(args) {
|
|
31
|
+
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('AppLimitCapsDefault', 'appLimitCapsDefaults', args.select, {
|
|
32
|
+
where: args?.where,
|
|
33
|
+
}, 'AppLimitCapsDefaultFilter', input_types_1.connectionFieldsMap);
|
|
34
|
+
return new query_builder_1.QueryBuilder({
|
|
35
|
+
client: this.client,
|
|
36
|
+
operation: 'query',
|
|
37
|
+
operationName: 'AppLimitCapsDefault',
|
|
38
|
+
fieldName: 'appLimitCapsDefaults',
|
|
39
|
+
document,
|
|
40
|
+
variables,
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
findOne(args) {
|
|
44
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('AppLimitCapsDefault', 'appLimitCapsDefaults', args.select, {
|
|
45
|
+
where: {
|
|
46
|
+
id: {
|
|
47
|
+
equalTo: args.id,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
first: 1,
|
|
51
|
+
}, 'AppLimitCapsDefaultFilter', 'AppLimitCapsDefaultOrderBy', input_types_1.connectionFieldsMap);
|
|
52
|
+
return new query_builder_1.QueryBuilder({
|
|
53
|
+
client: this.client,
|
|
54
|
+
operation: 'query',
|
|
55
|
+
operationName: 'AppLimitCapsDefault',
|
|
56
|
+
fieldName: 'appLimitCapsDefault',
|
|
57
|
+
document,
|
|
58
|
+
variables,
|
|
59
|
+
transform: (data) => ({
|
|
60
|
+
appLimitCapsDefault: data.appLimitCapsDefaults?.nodes?.[0] ?? null,
|
|
61
|
+
}),
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
create(args) {
|
|
65
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('AppLimitCapsDefault', 'createAppLimitCapsDefault', 'appLimitCapsDefault', args.select, args.data, 'CreateAppLimitCapsDefaultInput', input_types_1.connectionFieldsMap);
|
|
66
|
+
return new query_builder_1.QueryBuilder({
|
|
67
|
+
client: this.client,
|
|
68
|
+
operation: 'mutation',
|
|
69
|
+
operationName: 'AppLimitCapsDefault',
|
|
70
|
+
fieldName: 'createAppLimitCapsDefault',
|
|
71
|
+
document,
|
|
72
|
+
variables,
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
update(args) {
|
|
76
|
+
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('AppLimitCapsDefault', 'updateAppLimitCapsDefault', 'appLimitCapsDefault', args.select, args.where.id, args.data, 'UpdateAppLimitCapsDefaultInput', 'id', 'appLimitCapsDefaultPatch', input_types_1.connectionFieldsMap);
|
|
77
|
+
return new query_builder_1.QueryBuilder({
|
|
78
|
+
client: this.client,
|
|
79
|
+
operation: 'mutation',
|
|
80
|
+
operationName: 'AppLimitCapsDefault',
|
|
81
|
+
fieldName: 'updateAppLimitCapsDefault',
|
|
82
|
+
document,
|
|
83
|
+
variables,
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
delete(args) {
|
|
87
|
+
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('AppLimitCapsDefault', 'deleteAppLimitCapsDefault', 'appLimitCapsDefault', {
|
|
88
|
+
id: args.where.id,
|
|
89
|
+
}, 'DeleteAppLimitCapsDefaultInput', args.select, input_types_1.connectionFieldsMap);
|
|
90
|
+
return new query_builder_1.QueryBuilder({
|
|
91
|
+
client: this.client,
|
|
92
|
+
operation: 'mutation',
|
|
93
|
+
operationName: 'AppLimitCapsDefault',
|
|
94
|
+
fieldName: 'deleteAppLimitCapsDefault',
|
|
95
|
+
document,
|
|
96
|
+
variables,
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
exports.AppLimitCapsDefaultModel = AppLimitCapsDefaultModel;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AppLimitCredit 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 { AppLimitCreditWithRelations, AppLimitCreditSelect, AppLimitCreditFilter, AppLimitCreditOrderBy, CreateAppLimitCreditInput, AppLimitCreditPatch } from '../input-types';
|
|
10
|
+
export declare class AppLimitCreditModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends AppLimitCreditSelect>(args: FindManyArgs<S, AppLimitCreditFilter, AppLimitCreditOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, AppLimitCreditSelect>): QueryBuilder<{
|
|
16
|
+
appLimitCredits: ConnectionResult<InferSelectResult<AppLimitCreditWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends AppLimitCreditSelect>(args: FindFirstArgs<S, AppLimitCreditFilter> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, AppLimitCreditSelect>): QueryBuilder<{
|
|
21
|
+
appLimitCredits: {
|
|
22
|
+
nodes: InferSelectResult<AppLimitCreditWithRelations, S>[];
|
|
23
|
+
};
|
|
24
|
+
}>;
|
|
25
|
+
findOne<S extends AppLimitCreditSelect>(args: {
|
|
26
|
+
id: string;
|
|
27
|
+
select: S;
|
|
28
|
+
} & StrictSelect<S, AppLimitCreditSelect>): QueryBuilder<{
|
|
29
|
+
appLimitCredit: InferSelectResult<AppLimitCreditWithRelations, S> | null;
|
|
30
|
+
}>;
|
|
31
|
+
create<S extends AppLimitCreditSelect>(args: CreateArgs<S, CreateAppLimitCreditInput['appLimitCredit']> & {
|
|
32
|
+
select: S;
|
|
33
|
+
} & StrictSelect<S, AppLimitCreditSelect>): QueryBuilder<{
|
|
34
|
+
createAppLimitCredit: {
|
|
35
|
+
appLimitCredit: InferSelectResult<AppLimitCreditWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}>;
|
|
38
|
+
update<S extends AppLimitCreditSelect>(args: UpdateArgs<S, {
|
|
39
|
+
id: string;
|
|
40
|
+
}, AppLimitCreditPatch> & {
|
|
41
|
+
select: S;
|
|
42
|
+
} & StrictSelect<S, AppLimitCreditSelect>): QueryBuilder<{
|
|
43
|
+
updateAppLimitCredit: {
|
|
44
|
+
appLimitCredit: InferSelectResult<AppLimitCreditWithRelations, S>;
|
|
45
|
+
};
|
|
46
|
+
}>;
|
|
47
|
+
delete<S extends AppLimitCreditSelect>(args: DeleteArgs<{
|
|
48
|
+
id: string;
|
|
49
|
+
}, S> & {
|
|
50
|
+
select: S;
|
|
51
|
+
} & StrictSelect<S, AppLimitCreditSelect>): QueryBuilder<{
|
|
52
|
+
deleteAppLimitCredit: {
|
|
53
|
+
appLimitCredit: InferSelectResult<AppLimitCreditWithRelations, S>;
|
|
54
|
+
};
|
|
55
|
+
}>;
|
|
56
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AppLimitCreditModel = void 0;
|
|
4
|
+
const query_builder_1 = require("../query-builder");
|
|
5
|
+
const input_types_1 = require("../input-types");
|
|
6
|
+
class AppLimitCreditModel {
|
|
7
|
+
client;
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
findMany(args) {
|
|
12
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('AppLimitCredit', 'appLimitCredits', 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
|
+
}, 'AppLimitCreditFilter', 'AppLimitCreditOrderBy', input_types_1.connectionFieldsMap);
|
|
21
|
+
return new query_builder_1.QueryBuilder({
|
|
22
|
+
client: this.client,
|
|
23
|
+
operation: 'query',
|
|
24
|
+
operationName: 'AppLimitCredit',
|
|
25
|
+
fieldName: 'appLimitCredits',
|
|
26
|
+
document,
|
|
27
|
+
variables,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
findFirst(args) {
|
|
31
|
+
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('AppLimitCredit', 'appLimitCredits', args.select, {
|
|
32
|
+
where: args?.where,
|
|
33
|
+
}, 'AppLimitCreditFilter', input_types_1.connectionFieldsMap);
|
|
34
|
+
return new query_builder_1.QueryBuilder({
|
|
35
|
+
client: this.client,
|
|
36
|
+
operation: 'query',
|
|
37
|
+
operationName: 'AppLimitCredit',
|
|
38
|
+
fieldName: 'appLimitCredits',
|
|
39
|
+
document,
|
|
40
|
+
variables,
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
findOne(args) {
|
|
44
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('AppLimitCredit', 'appLimitCredits', args.select, {
|
|
45
|
+
where: {
|
|
46
|
+
id: {
|
|
47
|
+
equalTo: args.id,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
first: 1,
|
|
51
|
+
}, 'AppLimitCreditFilter', 'AppLimitCreditOrderBy', input_types_1.connectionFieldsMap);
|
|
52
|
+
return new query_builder_1.QueryBuilder({
|
|
53
|
+
client: this.client,
|
|
54
|
+
operation: 'query',
|
|
55
|
+
operationName: 'AppLimitCredit',
|
|
56
|
+
fieldName: 'appLimitCredit',
|
|
57
|
+
document,
|
|
58
|
+
variables,
|
|
59
|
+
transform: (data) => ({
|
|
60
|
+
appLimitCredit: data.appLimitCredits?.nodes?.[0] ?? null,
|
|
61
|
+
}),
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
create(args) {
|
|
65
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('AppLimitCredit', 'createAppLimitCredit', 'appLimitCredit', args.select, args.data, 'CreateAppLimitCreditInput', input_types_1.connectionFieldsMap);
|
|
66
|
+
return new query_builder_1.QueryBuilder({
|
|
67
|
+
client: this.client,
|
|
68
|
+
operation: 'mutation',
|
|
69
|
+
operationName: 'AppLimitCredit',
|
|
70
|
+
fieldName: 'createAppLimitCredit',
|
|
71
|
+
document,
|
|
72
|
+
variables,
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
update(args) {
|
|
76
|
+
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('AppLimitCredit', 'updateAppLimitCredit', 'appLimitCredit', args.select, args.where.id, args.data, 'UpdateAppLimitCreditInput', 'id', 'appLimitCreditPatch', input_types_1.connectionFieldsMap);
|
|
77
|
+
return new query_builder_1.QueryBuilder({
|
|
78
|
+
client: this.client,
|
|
79
|
+
operation: 'mutation',
|
|
80
|
+
operationName: 'AppLimitCredit',
|
|
81
|
+
fieldName: 'updateAppLimitCredit',
|
|
82
|
+
document,
|
|
83
|
+
variables,
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
delete(args) {
|
|
87
|
+
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('AppLimitCredit', 'deleteAppLimitCredit', 'appLimitCredit', {
|
|
88
|
+
id: args.where.id,
|
|
89
|
+
}, 'DeleteAppLimitCreditInput', args.select, input_types_1.connectionFieldsMap);
|
|
90
|
+
return new query_builder_1.QueryBuilder({
|
|
91
|
+
client: this.client,
|
|
92
|
+
operation: 'mutation',
|
|
93
|
+
operationName: 'AppLimitCredit',
|
|
94
|
+
fieldName: 'deleteAppLimitCredit',
|
|
95
|
+
document,
|
|
96
|
+
variables,
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
exports.AppLimitCreditModel = AppLimitCreditModel;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AppLimitCreditCode 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 { AppLimitCreditCodeWithRelations, AppLimitCreditCodeSelect, AppLimitCreditCodeFilter, AppLimitCreditCodeOrderBy, CreateAppLimitCreditCodeInput, AppLimitCreditCodePatch } from '../input-types';
|
|
10
|
+
export declare class AppLimitCreditCodeModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends AppLimitCreditCodeSelect>(args: FindManyArgs<S, AppLimitCreditCodeFilter, AppLimitCreditCodeOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, AppLimitCreditCodeSelect>): QueryBuilder<{
|
|
16
|
+
appLimitCreditCodes: ConnectionResult<InferSelectResult<AppLimitCreditCodeWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends AppLimitCreditCodeSelect>(args: FindFirstArgs<S, AppLimitCreditCodeFilter> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, AppLimitCreditCodeSelect>): QueryBuilder<{
|
|
21
|
+
appLimitCreditCodes: {
|
|
22
|
+
nodes: InferSelectResult<AppLimitCreditCodeWithRelations, S>[];
|
|
23
|
+
};
|
|
24
|
+
}>;
|
|
25
|
+
findOne<S extends AppLimitCreditCodeSelect>(args: {
|
|
26
|
+
id: string;
|
|
27
|
+
select: S;
|
|
28
|
+
} & StrictSelect<S, AppLimitCreditCodeSelect>): QueryBuilder<{
|
|
29
|
+
appLimitCreditCode: InferSelectResult<AppLimitCreditCodeWithRelations, S> | null;
|
|
30
|
+
}>;
|
|
31
|
+
create<S extends AppLimitCreditCodeSelect>(args: CreateArgs<S, CreateAppLimitCreditCodeInput['appLimitCreditCode']> & {
|
|
32
|
+
select: S;
|
|
33
|
+
} & StrictSelect<S, AppLimitCreditCodeSelect>): QueryBuilder<{
|
|
34
|
+
createAppLimitCreditCode: {
|
|
35
|
+
appLimitCreditCode: InferSelectResult<AppLimitCreditCodeWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}>;
|
|
38
|
+
update<S extends AppLimitCreditCodeSelect>(args: UpdateArgs<S, {
|
|
39
|
+
id: string;
|
|
40
|
+
}, AppLimitCreditCodePatch> & {
|
|
41
|
+
select: S;
|
|
42
|
+
} & StrictSelect<S, AppLimitCreditCodeSelect>): QueryBuilder<{
|
|
43
|
+
updateAppLimitCreditCode: {
|
|
44
|
+
appLimitCreditCode: InferSelectResult<AppLimitCreditCodeWithRelations, S>;
|
|
45
|
+
};
|
|
46
|
+
}>;
|
|
47
|
+
delete<S extends AppLimitCreditCodeSelect>(args: DeleteArgs<{
|
|
48
|
+
id: string;
|
|
49
|
+
}, S> & {
|
|
50
|
+
select: S;
|
|
51
|
+
} & StrictSelect<S, AppLimitCreditCodeSelect>): QueryBuilder<{
|
|
52
|
+
deleteAppLimitCreditCode: {
|
|
53
|
+
appLimitCreditCode: InferSelectResult<AppLimitCreditCodeWithRelations, S>;
|
|
54
|
+
};
|
|
55
|
+
}>;
|
|
56
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AppLimitCreditCodeModel = void 0;
|
|
4
|
+
const query_builder_1 = require("../query-builder");
|
|
5
|
+
const input_types_1 = require("../input-types");
|
|
6
|
+
class AppLimitCreditCodeModel {
|
|
7
|
+
client;
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
findMany(args) {
|
|
12
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('AppLimitCreditCode', 'appLimitCreditCodes', 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
|
+
}, 'AppLimitCreditCodeFilter', 'AppLimitCreditCodeOrderBy', input_types_1.connectionFieldsMap);
|
|
21
|
+
return new query_builder_1.QueryBuilder({
|
|
22
|
+
client: this.client,
|
|
23
|
+
operation: 'query',
|
|
24
|
+
operationName: 'AppLimitCreditCode',
|
|
25
|
+
fieldName: 'appLimitCreditCodes',
|
|
26
|
+
document,
|
|
27
|
+
variables,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
findFirst(args) {
|
|
31
|
+
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('AppLimitCreditCode', 'appLimitCreditCodes', args.select, {
|
|
32
|
+
where: args?.where,
|
|
33
|
+
}, 'AppLimitCreditCodeFilter', input_types_1.connectionFieldsMap);
|
|
34
|
+
return new query_builder_1.QueryBuilder({
|
|
35
|
+
client: this.client,
|
|
36
|
+
operation: 'query',
|
|
37
|
+
operationName: 'AppLimitCreditCode',
|
|
38
|
+
fieldName: 'appLimitCreditCodes',
|
|
39
|
+
document,
|
|
40
|
+
variables,
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
findOne(args) {
|
|
44
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('AppLimitCreditCode', 'appLimitCreditCodes', args.select, {
|
|
45
|
+
where: {
|
|
46
|
+
id: {
|
|
47
|
+
equalTo: args.id,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
first: 1,
|
|
51
|
+
}, 'AppLimitCreditCodeFilter', 'AppLimitCreditCodeOrderBy', input_types_1.connectionFieldsMap);
|
|
52
|
+
return new query_builder_1.QueryBuilder({
|
|
53
|
+
client: this.client,
|
|
54
|
+
operation: 'query',
|
|
55
|
+
operationName: 'AppLimitCreditCode',
|
|
56
|
+
fieldName: 'appLimitCreditCode',
|
|
57
|
+
document,
|
|
58
|
+
variables,
|
|
59
|
+
transform: (data) => ({
|
|
60
|
+
appLimitCreditCode: data.appLimitCreditCodes?.nodes?.[0] ?? null,
|
|
61
|
+
}),
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
create(args) {
|
|
65
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('AppLimitCreditCode', 'createAppLimitCreditCode', 'appLimitCreditCode', args.select, args.data, 'CreateAppLimitCreditCodeInput', input_types_1.connectionFieldsMap);
|
|
66
|
+
return new query_builder_1.QueryBuilder({
|
|
67
|
+
client: this.client,
|
|
68
|
+
operation: 'mutation',
|
|
69
|
+
operationName: 'AppLimitCreditCode',
|
|
70
|
+
fieldName: 'createAppLimitCreditCode',
|
|
71
|
+
document,
|
|
72
|
+
variables,
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
update(args) {
|
|
76
|
+
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('AppLimitCreditCode', 'updateAppLimitCreditCode', 'appLimitCreditCode', args.select, args.where.id, args.data, 'UpdateAppLimitCreditCodeInput', 'id', 'appLimitCreditCodePatch', input_types_1.connectionFieldsMap);
|
|
77
|
+
return new query_builder_1.QueryBuilder({
|
|
78
|
+
client: this.client,
|
|
79
|
+
operation: 'mutation',
|
|
80
|
+
operationName: 'AppLimitCreditCode',
|
|
81
|
+
fieldName: 'updateAppLimitCreditCode',
|
|
82
|
+
document,
|
|
83
|
+
variables,
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
delete(args) {
|
|
87
|
+
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('AppLimitCreditCode', 'deleteAppLimitCreditCode', 'appLimitCreditCode', {
|
|
88
|
+
id: args.where.id,
|
|
89
|
+
}, 'DeleteAppLimitCreditCodeInput', args.select, input_types_1.connectionFieldsMap);
|
|
90
|
+
return new query_builder_1.QueryBuilder({
|
|
91
|
+
client: this.client,
|
|
92
|
+
operation: 'mutation',
|
|
93
|
+
operationName: 'AppLimitCreditCode',
|
|
94
|
+
fieldName: 'deleteAppLimitCreditCode',
|
|
95
|
+
document,
|
|
96
|
+
variables,
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
exports.AppLimitCreditCodeModel = AppLimitCreditCodeModel;
|