@constructive-sdk/cli 0.13.3 → 0.14.0

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.
Files changed (128) hide show
  1. package/admin/cli/commands/{claimed-invite.d.ts → app-claimed-invite.d.ts} +1 -1
  2. package/admin/cli/commands/{claimed-invite.js → app-claimed-invite.js} +8 -8
  3. package/{esm/public/cli/commands/invite.d.ts → admin/cli/commands/app-invite.d.ts} +1 -1
  4. package/{public/cli/commands/invite.js → admin/cli/commands/app-invite.js} +8 -8
  5. package/admin/cli/commands/steps-achieved.js +4 -4
  6. package/admin/cli/commands/steps-required.js +4 -4
  7. package/admin/cli/commands/{submit-invite-code.d.ts → submit-app-invite-code.d.ts} +1 -1
  8. package/admin/cli/commands/{submit-invite-code.js → submit-app-invite-code.js} +3 -3
  9. package/admin/cli/commands.js +7 -7
  10. package/admin/cli/executor.d.ts +5 -5
  11. package/admin/orm/index.d.ts +7 -7
  12. package/admin/orm/index.js +4 -4
  13. package/admin/orm/input-types.d.ts +99 -99
  14. package/admin/orm/models/appClaimedInvite.d.ts +56 -0
  15. package/{public/orm/models/claimedInvite.js → admin/orm/models/appClaimedInvite.js} +26 -26
  16. package/admin/orm/models/appInvite.d.ts +56 -0
  17. package/{public/orm/models/invite.js → admin/orm/models/appInvite.js} +26 -26
  18. package/admin/orm/models/index.d.ts +2 -2
  19. package/admin/orm/models/index.js +5 -5
  20. package/admin/orm/mutation/index.d.ts +6 -6
  21. package/admin/orm/mutation/index.js +6 -6
  22. package/admin/orm/query/index.d.ts +4 -4
  23. package/admin/orm/query/index.js +4 -4
  24. package/auth/cli/commands.js +5 -5
  25. package/auth/cli/executor.d.ts +10 -10
  26. package/auth/orm/index.d.ts +10 -10
  27. package/auth/orm/input-types.d.ts +24 -72
  28. package/auth/orm/mutation/index.d.ts +17 -17
  29. package/auth/orm/mutation/index.js +24 -24
  30. package/esm/admin/cli/commands/{claimed-invite.d.ts → app-claimed-invite.d.ts} +1 -1
  31. package/esm/admin/cli/commands/{claimed-invite.js → app-claimed-invite.js} +8 -8
  32. package/esm/admin/cli/commands/{invite.d.ts → app-invite.d.ts} +1 -1
  33. package/esm/{public/cli/commands/invite.js → admin/cli/commands/app-invite.js} +8 -8
  34. package/esm/admin/cli/commands/steps-achieved.js +4 -4
  35. package/esm/admin/cli/commands/steps-required.js +4 -4
  36. package/esm/admin/cli/commands/submit-app-invite-code.d.ts +8 -0
  37. package/esm/admin/cli/commands/{submit-invite-code.js → submit-app-invite-code.js} +3 -3
  38. package/esm/admin/cli/commands.js +7 -7
  39. package/esm/admin/cli/executor.d.ts +5 -5
  40. package/esm/admin/orm/index.d.ts +7 -7
  41. package/esm/admin/orm/index.js +4 -4
  42. package/esm/admin/orm/input-types.d.ts +99 -99
  43. package/esm/admin/orm/models/appClaimedInvite.d.ts +56 -0
  44. package/esm/admin/orm/models/{claimedInvite.js → appClaimedInvite.js} +24 -24
  45. package/esm/admin/orm/models/appInvite.d.ts +56 -0
  46. package/esm/admin/orm/models/{invite.js → appInvite.js} +24 -24
  47. package/esm/admin/orm/models/index.d.ts +2 -2
  48. package/esm/admin/orm/models/index.js +2 -2
  49. package/esm/admin/orm/mutation/index.d.ts +6 -6
  50. package/esm/admin/orm/mutation/index.js +6 -6
  51. package/esm/admin/orm/query/index.d.ts +4 -4
  52. package/esm/admin/orm/query/index.js +4 -4
  53. package/esm/auth/cli/commands.js +5 -5
  54. package/esm/auth/cli/executor.d.ts +10 -10
  55. package/esm/auth/orm/index.d.ts +10 -10
  56. package/esm/auth/orm/input-types.d.ts +24 -72
  57. package/esm/auth/orm/mutation/index.d.ts +17 -17
  58. package/esm/auth/orm/mutation/index.js +24 -24
  59. package/esm/public/cli/commands/app-claimed-invite.d.ts +8 -0
  60. package/esm/public/cli/commands/{claimed-invite.js → app-claimed-invite.js} +8 -8
  61. package/{admin/cli/commands/invite.d.ts → esm/public/cli/commands/app-invite.d.ts} +1 -1
  62. package/esm/{admin/cli/commands/invite.js → public/cli/commands/app-invite.js} +8 -8
  63. package/esm/public/cli/commands/rate-limits-module.d.ts +8 -0
  64. package/esm/public/cli/commands/rate-limits-module.js +382 -0
  65. package/esm/public/cli/commands/steps-achieved.js +4 -4
  66. package/esm/public/cli/commands/steps-required.js +4 -4
  67. package/esm/public/cli/commands/submit-app-invite-code.d.ts +8 -0
  68. package/esm/public/cli/commands/{submit-invite-code.js → submit-app-invite-code.js} +3 -3
  69. package/esm/public/cli/commands.js +13 -11
  70. package/esm/public/cli/executor.d.ts +16 -15
  71. package/esm/public/orm/index.d.ts +19 -17
  72. package/esm/public/orm/index.js +6 -4
  73. package/esm/public/orm/input-types.d.ts +402 -230
  74. package/esm/public/orm/input-types.js +3 -3
  75. package/esm/public/orm/models/appClaimedInvite.d.ts +56 -0
  76. package/esm/public/orm/models/{claimedInvite.js → appClaimedInvite.js} +24 -24
  77. package/esm/public/orm/models/appInvite.d.ts +56 -0
  78. package/esm/public/orm/models/{invite.js → appInvite.js} +24 -24
  79. package/esm/public/orm/models/index.d.ts +3 -2
  80. package/esm/public/orm/models/index.js +3 -2
  81. package/esm/public/orm/models/rateLimitsModule.d.ts +56 -0
  82. package/esm/public/orm/models/rateLimitsModule.js +96 -0
  83. package/esm/public/orm/mutation/index.d.ts +22 -22
  84. package/esm/public/orm/mutation/index.js +30 -30
  85. package/esm/public/orm/query/index.d.ts +4 -4
  86. package/esm/public/orm/query/index.js +4 -4
  87. package/package.json +5 -5
  88. package/public/cli/commands/app-claimed-invite.d.ts +8 -0
  89. package/public/cli/commands/{claimed-invite.js → app-claimed-invite.js} +8 -8
  90. package/public/cli/commands/{invite.d.ts → app-invite.d.ts} +1 -1
  91. package/{admin/cli/commands/invite.js → public/cli/commands/app-invite.js} +8 -8
  92. package/public/cli/commands/rate-limits-module.d.ts +8 -0
  93. package/public/cli/commands/rate-limits-module.js +384 -0
  94. package/public/cli/commands/steps-achieved.js +4 -4
  95. package/public/cli/commands/steps-required.js +4 -4
  96. package/public/cli/commands/submit-app-invite-code.d.ts +8 -0
  97. package/public/cli/commands/{submit-invite-code.js → submit-app-invite-code.js} +3 -3
  98. package/public/cli/commands.js +13 -11
  99. package/public/cli/executor.d.ts +16 -15
  100. package/public/orm/index.d.ts +19 -17
  101. package/public/orm/index.js +6 -4
  102. package/public/orm/input-types.d.ts +402 -230
  103. package/public/orm/input-types.js +3 -3
  104. package/public/orm/models/appClaimedInvite.d.ts +56 -0
  105. package/{admin/orm/models/claimedInvite.js → public/orm/models/appClaimedInvite.js} +26 -26
  106. package/public/orm/models/appInvite.d.ts +56 -0
  107. package/{admin/orm/models/invite.js → public/orm/models/appInvite.js} +26 -26
  108. package/public/orm/models/index.d.ts +3 -2
  109. package/public/orm/models/index.js +8 -6
  110. package/public/orm/models/rateLimitsModule.d.ts +56 -0
  111. package/public/orm/models/rateLimitsModule.js +100 -0
  112. package/public/orm/mutation/index.d.ts +22 -22
  113. package/public/orm/mutation/index.js +30 -30
  114. package/public/orm/query/index.d.ts +4 -4
  115. package/public/orm/query/index.js +4 -4
  116. package/admin/orm/models/claimedInvite.d.ts +0 -56
  117. package/admin/orm/models/invite.d.ts +0 -56
  118. package/esm/admin/cli/commands/submit-invite-code.d.ts +0 -8
  119. package/esm/admin/orm/models/claimedInvite.d.ts +0 -56
  120. package/esm/admin/orm/models/invite.d.ts +0 -56
  121. package/esm/public/cli/commands/claimed-invite.d.ts +0 -8
  122. package/esm/public/cli/commands/submit-invite-code.d.ts +0 -8
  123. package/esm/public/orm/models/claimedInvite.d.ts +0 -56
  124. package/esm/public/orm/models/invite.d.ts +0 -56
  125. package/public/cli/commands/claimed-invite.d.ts +0 -8
  126. package/public/cli/commands/submit-invite-code.d.ts +0 -8
  127. package/public/orm/models/claimedInvite.d.ts +0 -56
  128. 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
- submitInviteCode: (args, options) => new QueryBuilder({
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: 'SubmitInviteCode',
69
- fieldName: 'submitInviteCode',
70
- ...buildCustomDocument('mutation', 'SubmitInviteCode', 'submitInviteCode', options.select, args, [
92
+ operationName: 'SubmitAppInviteCode',
93
+ fieldName: 'submitAppInviteCode',
94
+ ...buildCustomDocument('mutation', 'SubmitAppInviteCode', 'submitAppInviteCode', options.select, args, [
71
95
  {
72
96
  name: 'input',
73
- type: 'SubmitInviteCodeInput!',
97
+ type: 'SubmitAppInviteCodeInput!',
74
98
  },
75
- ], connectionFieldsMap, 'SubmitInviteCodePayload'),
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
- vlevel?: string;
18
- vroleId?: string;
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
- vlevel?: string;
113
- vroleId?: string;
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: 'vlevel',
57
+ name: 'level',
58
58
  type: 'String',
59
59
  },
60
60
  {
61
- name: 'vroleId',
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: 'vlevel',
325
+ name: 'level',
326
326
  type: 'String',
327
327
  },
328
328
  {
329
- name: 'vroleId',
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",
3
+ "version": "0.14.0",
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",
@@ -46,20 +46,20 @@
46
46
  ],
47
47
  "dependencies": {
48
48
  "@0no-co/graphql.web": "^1.1.2",
49
- "@constructive-io/graphql-types": "^3.4.4",
49
+ "@constructive-io/graphql-types": "^3.5.0",
50
50
  "appstash": "^0.7.0",
51
- "gql-ast": "^3.4.2",
51
+ "gql-ast": "^3.5.0",
52
52
  "graphql": "16.13.0",
53
53
  "inquirerer": "^4.7.0",
54
54
  "nested-obj": "^0.2.1",
55
55
  "yanse": "^0.2.1"
56
56
  },
57
57
  "devDependencies": {
58
- "@constructive-io/graphql-codegen": "^4.29.3",
58
+ "@constructive-io/graphql-codegen": "^4.30.0",
59
59
  "@types/node": "^22.19.11",
60
60
  "makage": "^0.3.0",
61
61
  "tsx": "^4.19.0",
62
62
  "typescript": "^5.9.3"
63
63
  },
64
- "gitHead": "1b2f42363c80172c1305b103d9394c403b3cebea"
64
+ "gitHead": "1b3af3c5189b9ca2e765b9239a4b287099e64a03"
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 ClaimedInvite
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 = '\nclaimed-invite <command>\n\nCommands:\n list List claimedInvite records\n find-first Find first matching claimedInvite record\n get Get a claimedInvite by ID\n create Create a new claimedInvite\n update Update an existing claimedInvite\n delete Delete a claimedInvite\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';
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.claimedInvite.findMany(findManyArgs).execute();
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.claimedInvite.findFirst(findFirstArgs).execute();
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.claimedInvite
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.claimedInvite
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.claimedInvite
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.claimedInvite
269
+ const result = await client.appClaimedInvite
270
270
  .delete({
271
271
  where: {
272
272
  id: answers.id,
@@ -1,5 +1,5 @@
1
1
  /**
2
- * CLI commands for Invite
2
+ * CLI commands for AppInvite
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  * DO NOT EDIT - changes will be overwritten
5
5
  */
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  /**
4
- * CLI commands for Invite
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 = '\ninvite <command>\n\nCommands:\n list List invite records\n find-first Find first matching invite record\n get Get a invite by ID\n create Create a new invite\n update Update an existing invite\n delete Delete a invite\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';
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.invite.findMany(findManyArgs).execute();
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.invite.findFirst(findFirstArgs).execute();
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.invite
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.invite
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.invite
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.invite
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;