@constructive-sdk/cli 0.13.3 → 0.13.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/admin/cli/commands/{claimed-invite.d.ts → app-claimed-invite.d.ts} +1 -1
- package/admin/cli/commands/{claimed-invite.js → app-claimed-invite.js} +8 -8
- package/{esm/public/cli/commands/invite.d.ts → admin/cli/commands/app-invite.d.ts} +1 -1
- package/{public/cli/commands/invite.js → admin/cli/commands/app-invite.js} +8 -8
- package/admin/cli/commands/steps-achieved.js +4 -4
- package/admin/cli/commands/steps-required.js +4 -4
- package/admin/cli/commands/{submit-invite-code.d.ts → submit-app-invite-code.d.ts} +1 -1
- package/admin/cli/commands/{submit-invite-code.js → submit-app-invite-code.js} +3 -3
- package/admin/cli/commands.js +7 -7
- package/admin/cli/executor.d.ts +5 -5
- package/admin/orm/index.d.ts +7 -7
- package/admin/orm/index.js +4 -4
- package/admin/orm/input-types.d.ts +99 -99
- package/admin/orm/models/appClaimedInvite.d.ts +56 -0
- package/{public/orm/models/claimedInvite.js → admin/orm/models/appClaimedInvite.js} +26 -26
- package/admin/orm/models/appInvite.d.ts +56 -0
- package/{public/orm/models/invite.js → admin/orm/models/appInvite.js} +26 -26
- package/admin/orm/models/index.d.ts +2 -2
- package/admin/orm/models/index.js +5 -5
- package/admin/orm/mutation/index.d.ts +6 -6
- package/admin/orm/mutation/index.js +6 -6
- package/admin/orm/query/index.d.ts +4 -4
- package/admin/orm/query/index.js +4 -4
- package/auth/cli/commands.js +5 -5
- package/auth/cli/executor.d.ts +10 -10
- package/auth/orm/index.d.ts +10 -10
- package/auth/orm/input-types.d.ts +24 -72
- package/auth/orm/mutation/index.d.ts +17 -17
- package/auth/orm/mutation/index.js +24 -24
- package/esm/admin/cli/commands/{claimed-invite.d.ts → app-claimed-invite.d.ts} +1 -1
- package/esm/admin/cli/commands/{claimed-invite.js → app-claimed-invite.js} +8 -8
- package/esm/admin/cli/commands/{invite.d.ts → app-invite.d.ts} +1 -1
- package/esm/{public/cli/commands/invite.js → admin/cli/commands/app-invite.js} +8 -8
- package/esm/admin/cli/commands/steps-achieved.js +4 -4
- package/esm/admin/cli/commands/steps-required.js +4 -4
- package/esm/admin/cli/commands/submit-app-invite-code.d.ts +8 -0
- package/esm/admin/cli/commands/{submit-invite-code.js → submit-app-invite-code.js} +3 -3
- package/esm/admin/cli/commands.js +7 -7
- package/esm/admin/cli/executor.d.ts +5 -5
- package/esm/admin/orm/index.d.ts +7 -7
- package/esm/admin/orm/index.js +4 -4
- package/esm/admin/orm/input-types.d.ts +99 -99
- package/esm/admin/orm/models/appClaimedInvite.d.ts +56 -0
- package/esm/admin/orm/models/{claimedInvite.js → appClaimedInvite.js} +24 -24
- package/esm/admin/orm/models/appInvite.d.ts +56 -0
- package/esm/admin/orm/models/{invite.js → appInvite.js} +24 -24
- package/esm/admin/orm/models/index.d.ts +2 -2
- package/esm/admin/orm/models/index.js +2 -2
- package/esm/admin/orm/mutation/index.d.ts +6 -6
- package/esm/admin/orm/mutation/index.js +6 -6
- package/esm/admin/orm/query/index.d.ts +4 -4
- package/esm/admin/orm/query/index.js +4 -4
- package/esm/auth/cli/commands.js +5 -5
- package/esm/auth/cli/executor.d.ts +10 -10
- package/esm/auth/orm/index.d.ts +10 -10
- package/esm/auth/orm/input-types.d.ts +24 -72
- package/esm/auth/orm/mutation/index.d.ts +17 -17
- package/esm/auth/orm/mutation/index.js +24 -24
- package/esm/public/cli/commands/app-claimed-invite.d.ts +8 -0
- package/esm/public/cli/commands/{claimed-invite.js → app-claimed-invite.js} +8 -8
- package/{admin/cli/commands/invite.d.ts → esm/public/cli/commands/app-invite.d.ts} +1 -1
- package/esm/{admin/cli/commands/invite.js → public/cli/commands/app-invite.js} +8 -8
- package/esm/public/cli/commands/rate-limits-module.d.ts +8 -0
- package/esm/public/cli/commands/rate-limits-module.js +382 -0
- package/esm/public/cli/commands/steps-achieved.js +4 -4
- package/esm/public/cli/commands/steps-required.js +4 -4
- package/esm/public/cli/commands/submit-app-invite-code.d.ts +8 -0
- package/esm/public/cli/commands/{submit-invite-code.js → submit-app-invite-code.js} +3 -3
- package/esm/public/cli/commands.js +13 -11
- package/esm/public/cli/executor.d.ts +16 -15
- package/esm/public/orm/index.d.ts +19 -17
- package/esm/public/orm/index.js +6 -4
- package/esm/public/orm/input-types.d.ts +402 -230
- package/esm/public/orm/input-types.js +3 -3
- package/esm/public/orm/models/appClaimedInvite.d.ts +56 -0
- package/esm/public/orm/models/{claimedInvite.js → appClaimedInvite.js} +24 -24
- package/esm/public/orm/models/appInvite.d.ts +56 -0
- package/esm/public/orm/models/{invite.js → appInvite.js} +24 -24
- package/esm/public/orm/models/index.d.ts +3 -2
- package/esm/public/orm/models/index.js +3 -2
- package/esm/public/orm/models/rateLimitsModule.d.ts +56 -0
- package/esm/public/orm/models/rateLimitsModule.js +96 -0
- package/esm/public/orm/mutation/index.d.ts +22 -22
- package/esm/public/orm/mutation/index.js +30 -30
- package/esm/public/orm/query/index.d.ts +4 -4
- package/esm/public/orm/query/index.js +4 -4
- package/package.json +2 -2
- package/public/cli/commands/app-claimed-invite.d.ts +8 -0
- package/public/cli/commands/{claimed-invite.js → app-claimed-invite.js} +8 -8
- package/public/cli/commands/{invite.d.ts → app-invite.d.ts} +1 -1
- package/{admin/cli/commands/invite.js → public/cli/commands/app-invite.js} +8 -8
- package/public/cli/commands/rate-limits-module.d.ts +8 -0
- package/public/cli/commands/rate-limits-module.js +384 -0
- package/public/cli/commands/steps-achieved.js +4 -4
- package/public/cli/commands/steps-required.js +4 -4
- package/public/cli/commands/submit-app-invite-code.d.ts +8 -0
- package/public/cli/commands/{submit-invite-code.js → submit-app-invite-code.js} +3 -3
- package/public/cli/commands.js +13 -11
- package/public/cli/executor.d.ts +16 -15
- package/public/orm/index.d.ts +19 -17
- package/public/orm/index.js +6 -4
- package/public/orm/input-types.d.ts +402 -230
- package/public/orm/input-types.js +3 -3
- package/public/orm/models/appClaimedInvite.d.ts +56 -0
- package/{admin/orm/models/claimedInvite.js → public/orm/models/appClaimedInvite.js} +26 -26
- package/public/orm/models/appInvite.d.ts +56 -0
- package/{admin/orm/models/invite.js → public/orm/models/appInvite.js} +26 -26
- package/public/orm/models/index.d.ts +3 -2
- package/public/orm/models/index.js +8 -6
- package/public/orm/models/rateLimitsModule.d.ts +56 -0
- package/public/orm/models/rateLimitsModule.js +100 -0
- package/public/orm/mutation/index.d.ts +22 -22
- package/public/orm/mutation/index.js +30 -30
- package/public/orm/query/index.d.ts +4 -4
- package/public/orm/query/index.js +4 -4
- package/admin/orm/models/claimedInvite.d.ts +0 -56
- package/admin/orm/models/invite.d.ts +0 -56
- package/esm/admin/cli/commands/submit-invite-code.d.ts +0 -8
- package/esm/admin/orm/models/claimedInvite.d.ts +0 -56
- package/esm/admin/orm/models/invite.d.ts +0 -56
- package/esm/public/cli/commands/claimed-invite.d.ts +0 -8
- package/esm/public/cli/commands/submit-invite-code.d.ts +0 -8
- package/esm/public/orm/models/claimedInvite.d.ts +0 -56
- package/esm/public/orm/models/invite.d.ts +0 -56
- package/public/cli/commands/claimed-invite.d.ts +0 -8
- package/public/cli/commands/submit-invite-code.d.ts +0 -8
- package/public/orm/models/claimedInvite.d.ts +0 -56
- package/public/orm/models/invite.d.ts +0 -56
|
@@ -62,17 +62,41 @@ export function createMutationOperations(client) {
|
|
|
62
62
|
},
|
|
63
63
|
], connectionFieldsMap, 'RejectDatabaseTransferPayload'),
|
|
64
64
|
}),
|
|
65
|
-
|
|
65
|
+
verifyPassword: (args, options) => new QueryBuilder({
|
|
66
|
+
client,
|
|
67
|
+
operation: 'mutation',
|
|
68
|
+
operationName: 'VerifyPassword',
|
|
69
|
+
fieldName: 'verifyPassword',
|
|
70
|
+
...buildCustomDocument('mutation', 'VerifyPassword', 'verifyPassword', options.select, args, [
|
|
71
|
+
{
|
|
72
|
+
name: 'input',
|
|
73
|
+
type: 'VerifyPasswordInput!',
|
|
74
|
+
},
|
|
75
|
+
], connectionFieldsMap, 'VerifyPasswordPayload'),
|
|
76
|
+
}),
|
|
77
|
+
verifyTotp: (args, options) => new QueryBuilder({
|
|
78
|
+
client,
|
|
79
|
+
operation: 'mutation',
|
|
80
|
+
operationName: 'VerifyTotp',
|
|
81
|
+
fieldName: 'verifyTotp',
|
|
82
|
+
...buildCustomDocument('mutation', 'VerifyTotp', 'verifyTotp', options.select, args, [
|
|
83
|
+
{
|
|
84
|
+
name: 'input',
|
|
85
|
+
type: 'VerifyTotpInput!',
|
|
86
|
+
},
|
|
87
|
+
], connectionFieldsMap, 'VerifyTotpPayload'),
|
|
88
|
+
}),
|
|
89
|
+
submitAppInviteCode: (args, options) => new QueryBuilder({
|
|
66
90
|
client,
|
|
67
91
|
operation: 'mutation',
|
|
68
|
-
operationName: '
|
|
69
|
-
fieldName: '
|
|
70
|
-
...buildCustomDocument('mutation', '
|
|
92
|
+
operationName: 'SubmitAppInviteCode',
|
|
93
|
+
fieldName: 'submitAppInviteCode',
|
|
94
|
+
...buildCustomDocument('mutation', 'SubmitAppInviteCode', 'submitAppInviteCode', options.select, args, [
|
|
71
95
|
{
|
|
72
96
|
name: 'input',
|
|
73
|
-
type: '
|
|
97
|
+
type: 'SubmitAppInviteCodeInput!',
|
|
74
98
|
},
|
|
75
|
-
], connectionFieldsMap, '
|
|
99
|
+
], connectionFieldsMap, 'SubmitAppInviteCodePayload'),
|
|
76
100
|
}),
|
|
77
101
|
submitOrgInviteCode: (args, options) => new QueryBuilder({
|
|
78
102
|
client,
|
|
@@ -470,30 +494,6 @@ export function createMutationOperations(client) {
|
|
|
470
494
|
},
|
|
471
495
|
], connectionFieldsMap, 'ForgotPasswordPayload'),
|
|
472
496
|
}),
|
|
473
|
-
verifyPassword: (args, options) => new QueryBuilder({
|
|
474
|
-
client,
|
|
475
|
-
operation: 'mutation',
|
|
476
|
-
operationName: 'VerifyPassword',
|
|
477
|
-
fieldName: 'verifyPassword',
|
|
478
|
-
...buildCustomDocument('mutation', 'VerifyPassword', 'verifyPassword', options.select, args, [
|
|
479
|
-
{
|
|
480
|
-
name: 'input',
|
|
481
|
-
type: 'VerifyPasswordInput!',
|
|
482
|
-
},
|
|
483
|
-
], connectionFieldsMap, 'VerifyPasswordPayload'),
|
|
484
|
-
}),
|
|
485
|
-
verifyTotp: (args, options) => new QueryBuilder({
|
|
486
|
-
client,
|
|
487
|
-
operation: 'mutation',
|
|
488
|
-
operationName: 'VerifyTotp',
|
|
489
|
-
fieldName: 'verifyTotp',
|
|
490
|
-
...buildCustomDocument('mutation', 'VerifyTotp', 'verifyTotp', options.select, args, [
|
|
491
|
-
{
|
|
492
|
-
name: 'input',
|
|
493
|
-
type: 'VerifyTotpInput!',
|
|
494
|
-
},
|
|
495
|
-
], connectionFieldsMap, 'VerifyTotpPayload'),
|
|
496
|
-
}),
|
|
497
497
|
requestUploadUrl: (args, options) => new QueryBuilder({
|
|
498
498
|
client,
|
|
499
499
|
operation: 'mutation',
|
|
@@ -14,8 +14,8 @@ export interface OrgPermissionsGetPaddedMaskVariables {
|
|
|
14
14
|
mask?: string;
|
|
15
15
|
}
|
|
16
16
|
export interface StepsAchievedVariables {
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
level?: string;
|
|
18
|
+
roleId?: string;
|
|
19
19
|
}
|
|
20
20
|
export interface RevParseVariables {
|
|
21
21
|
dbId?: string;
|
|
@@ -109,8 +109,8 @@ export interface OrgPermissionsGetByMaskVariables {
|
|
|
109
109
|
after?: string;
|
|
110
110
|
}
|
|
111
111
|
export interface StepsRequiredVariables {
|
|
112
|
-
|
|
113
|
-
|
|
112
|
+
level?: string;
|
|
113
|
+
roleId?: string;
|
|
114
114
|
/** Only read the first `n` values of the set. */
|
|
115
115
|
first?: number;
|
|
116
116
|
/**
|
|
@@ -54,11 +54,11 @@ export function createQueryOperations(client) {
|
|
|
54
54
|
fieldName: 'stepsAchieved',
|
|
55
55
|
...buildCustomDocument('query', 'StepsAchieved', 'stepsAchieved', options?.select, args, [
|
|
56
56
|
{
|
|
57
|
-
name: '
|
|
57
|
+
name: 'level',
|
|
58
58
|
type: 'String',
|
|
59
59
|
},
|
|
60
60
|
{
|
|
61
|
-
name: '
|
|
61
|
+
name: 'roleId',
|
|
62
62
|
type: 'UUID',
|
|
63
63
|
},
|
|
64
64
|
], connectionFieldsMap, undefined),
|
|
@@ -322,11 +322,11 @@ export function createQueryOperations(client) {
|
|
|
322
322
|
fieldName: 'stepsRequired',
|
|
323
323
|
...buildCustomDocument('query', 'StepsRequired', 'stepsRequired', options?.select, args, [
|
|
324
324
|
{
|
|
325
|
-
name: '
|
|
325
|
+
name: 'level',
|
|
326
326
|
type: 'String',
|
|
327
327
|
},
|
|
328
328
|
{
|
|
329
|
-
name: '
|
|
329
|
+
name: 'roleId',
|
|
330
330
|
type: 'UUID',
|
|
331
331
|
},
|
|
332
332
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@constructive-sdk/cli",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.4",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "Constructive CLI SDK - Auto-generated GraphQL CLI with ORM client, context management, and interactive prompts",
|
|
6
6
|
"main": "index.js",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"tsx": "^4.19.0",
|
|
62
62
|
"typescript": "^5.9.3"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "ec793fd5de36264f5c9738732657522c1d783a6d"
|
|
65
65
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI commands for AppClaimedInvite
|
|
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;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
/**
|
|
4
|
-
* CLI commands for
|
|
4
|
+
* CLI commands for AppClaimedInvite
|
|
5
5
|
* @generated by @constructive-io/graphql-codegen
|
|
6
6
|
* DO NOT EDIT - changes will be overwritten
|
|
7
7
|
*/
|
|
@@ -16,7 +16,7 @@ const fieldSchema = {
|
|
|
16
16
|
createdAt: 'string',
|
|
17
17
|
updatedAt: 'string',
|
|
18
18
|
};
|
|
19
|
-
const usage = '\
|
|
19
|
+
const usage = '\napp-claimed-invite <command>\n\nCommands:\n list List appClaimedInvite records\n find-first Find first matching appClaimedInvite record\n get Get a appClaimedInvite by ID\n create Create a new appClaimedInvite\n update Update an existing appClaimedInvite\n delete Delete a appClaimedInvite\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n\n --help, -h Show this help message\n';
|
|
20
20
|
exports.default = async (argv, prompter, _options) => {
|
|
21
21
|
if (argv.help || argv.h) {
|
|
22
22
|
console.log(usage);
|
|
@@ -67,7 +67,7 @@ async function handleList(argv, _prompter) {
|
|
|
67
67
|
};
|
|
68
68
|
const findManyArgs = (0, utils_1.parseFindManyArgs)(argv, defaultSelect);
|
|
69
69
|
const client = (0, executor_1.getClient)();
|
|
70
|
-
const result = await client.
|
|
70
|
+
const result = await client.appClaimedInvite.findMany(findManyArgs).execute();
|
|
71
71
|
console.log(JSON.stringify(result, null, 2));
|
|
72
72
|
}
|
|
73
73
|
catch (error) {
|
|
@@ -90,7 +90,7 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
90
90
|
};
|
|
91
91
|
const findFirstArgs = (0, utils_1.parseFindFirstArgs)(argv, defaultSelect);
|
|
92
92
|
const client = (0, executor_1.getClient)();
|
|
93
|
-
const result = await client.
|
|
93
|
+
const result = await client.appClaimedInvite.findFirst(findFirstArgs).execute();
|
|
94
94
|
console.log(JSON.stringify(result, null, 2));
|
|
95
95
|
}
|
|
96
96
|
catch (error) {
|
|
@@ -112,7 +112,7 @@ async function handleGet(argv, prompter) {
|
|
|
112
112
|
},
|
|
113
113
|
]);
|
|
114
114
|
const client = (0, executor_1.getClient)();
|
|
115
|
-
const result = await client.
|
|
115
|
+
const result = await client.appClaimedInvite
|
|
116
116
|
.findOne({
|
|
117
117
|
id: answers.id,
|
|
118
118
|
select: {
|
|
@@ -163,7 +163,7 @@ async function handleCreate(argv, prompter) {
|
|
|
163
163
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
164
164
|
const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
|
|
165
165
|
const client = (0, executor_1.getClient)();
|
|
166
|
-
const result = await client.
|
|
166
|
+
const result = await client.appClaimedInvite
|
|
167
167
|
.create({
|
|
168
168
|
data: {
|
|
169
169
|
data: cleanedData.data,
|
|
@@ -224,7 +224,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
224
224
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
225
225
|
const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
|
|
226
226
|
const client = (0, executor_1.getClient)();
|
|
227
|
-
const result = await client.
|
|
227
|
+
const result = await client.appClaimedInvite
|
|
228
228
|
.update({
|
|
229
229
|
where: {
|
|
230
230
|
id: answers.id,
|
|
@@ -266,7 +266,7 @@ async function handleDelete(argv, prompter) {
|
|
|
266
266
|
]);
|
|
267
267
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
268
268
|
const client = (0, executor_1.getClient)();
|
|
269
|
-
const result = await client.
|
|
269
|
+
const result = await client.appClaimedInvite
|
|
270
270
|
.delete({
|
|
271
271
|
where: {
|
|
272
272
|
id: answers.id,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
/**
|
|
4
|
-
* CLI commands for
|
|
4
|
+
* CLI commands for AppInvite
|
|
5
5
|
* @generated by @constructive-io/graphql-codegen
|
|
6
6
|
* DO NOT EDIT - changes will be overwritten
|
|
7
7
|
*/
|
|
@@ -22,7 +22,7 @@ const fieldSchema = {
|
|
|
22
22
|
createdAt: 'string',
|
|
23
23
|
updatedAt: 'string',
|
|
24
24
|
};
|
|
25
|
-
const usage = '\
|
|
25
|
+
const usage = '\napp-invite <command>\n\nCommands:\n list List appInvite records\n find-first Find first matching appInvite record\n get Get a appInvite by ID\n create Create a new appInvite\n update Update an existing appInvite\n delete Delete a appInvite\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n\n --help, -h Show this help message\n';
|
|
26
26
|
exports.default = async (argv, prompter, _options) => {
|
|
27
27
|
if (argv.help || argv.h) {
|
|
28
28
|
console.log(usage);
|
|
@@ -79,7 +79,7 @@ async function handleList(argv, _prompter) {
|
|
|
79
79
|
};
|
|
80
80
|
const findManyArgs = (0, utils_1.parseFindManyArgs)(argv, defaultSelect);
|
|
81
81
|
const client = (0, executor_1.getClient)();
|
|
82
|
-
const result = await client.
|
|
82
|
+
const result = await client.appInvite.findMany(findManyArgs).execute();
|
|
83
83
|
console.log(JSON.stringify(result, null, 2));
|
|
84
84
|
}
|
|
85
85
|
catch (error) {
|
|
@@ -108,7 +108,7 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
108
108
|
};
|
|
109
109
|
const findFirstArgs = (0, utils_1.parseFindFirstArgs)(argv, defaultSelect);
|
|
110
110
|
const client = (0, executor_1.getClient)();
|
|
111
|
-
const result = await client.
|
|
111
|
+
const result = await client.appInvite.findFirst(findFirstArgs).execute();
|
|
112
112
|
console.log(JSON.stringify(result, null, 2));
|
|
113
113
|
}
|
|
114
114
|
catch (error) {
|
|
@@ -130,7 +130,7 @@ async function handleGet(argv, prompter) {
|
|
|
130
130
|
},
|
|
131
131
|
]);
|
|
132
132
|
const client = (0, executor_1.getClient)();
|
|
133
|
-
const result = await client.
|
|
133
|
+
const result = await client.appInvite
|
|
134
134
|
.findOne({
|
|
135
135
|
id: answers.id,
|
|
136
136
|
select: {
|
|
@@ -229,7 +229,7 @@ async function handleCreate(argv, prompter) {
|
|
|
229
229
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
230
230
|
const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
|
|
231
231
|
const client = (0, executor_1.getClient)();
|
|
232
|
-
const result = await client.
|
|
232
|
+
const result = await client.appInvite
|
|
233
233
|
.create({
|
|
234
234
|
data: {
|
|
235
235
|
email: cleanedData.email,
|
|
@@ -344,7 +344,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
344
344
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
345
345
|
const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
|
|
346
346
|
const client = (0, executor_1.getClient)();
|
|
347
|
-
const result = await client.
|
|
347
|
+
const result = await client.appInvite
|
|
348
348
|
.update({
|
|
349
349
|
where: {
|
|
350
350
|
id: answers.id,
|
|
@@ -398,7 +398,7 @@ async function handleDelete(argv, prompter) {
|
|
|
398
398
|
]);
|
|
399
399
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
400
400
|
const client = (0, executor_1.getClient)();
|
|
401
|
-
const result = await client.
|
|
401
|
+
const result = await client.appInvite
|
|
402
402
|
.delete({
|
|
403
403
|
where: {
|
|
404
404
|
id: answers.id,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI commands for RateLimitsModule
|
|
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;
|