@constructive-sdk/cli 0.17.1 → 0.17.3

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 (213) hide show
  1. package/admin/cli/commands/app-invite.js +22 -0
  2. package/admin/cli/commands/app-limit-default.js +22 -0
  3. package/admin/cli/commands/{confirm-upload.d.ts → app-limit-event.d.ts} +1 -1
  4. package/admin/cli/commands/app-limit-event.js +212 -0
  5. package/admin/cli/commands/app-limit.js +66 -0
  6. package/admin/cli/commands/app-membership.js +0 -22
  7. package/admin/cli/commands/org-invite.js +22 -0
  8. package/{esm/admin/cli/commands/confirm-upload.d.ts → admin/cli/commands/org-limit-aggregate.d.ts} +1 -1
  9. package/admin/cli/commands/org-limit-aggregate.js +362 -0
  10. package/admin/cli/commands/org-limit-default.js +22 -0
  11. package/{auth/cli/commands/confirm-upload.d.ts → admin/cli/commands/org-limit-event.d.ts} +1 -1
  12. package/admin/cli/commands/org-limit-event.js +212 -0
  13. package/admin/cli/commands/org-limit.js +66 -0
  14. package/admin/cli/commands/org-membership-setting.js +44 -0
  15. package/admin/cli/commands.js +25 -21
  16. package/admin/cli/executor.d.ts +12 -14
  17. package/admin/orm/index.d.ts +24 -23
  18. package/admin/orm/index.js +24 -18
  19. package/admin/orm/input-types.d.ts +1297 -839
  20. package/admin/orm/models/appLimitEvent.d.ts +32 -0
  21. package/admin/orm/models/appLimitEvent.js +55 -0
  22. package/admin/orm/models/index.d.ts +12 -9
  23. package/admin/orm/models/index.js +25 -19
  24. package/admin/orm/models/orgLimitAggregate.d.ts +56 -0
  25. package/admin/orm/models/orgLimitAggregate.js +100 -0
  26. package/admin/orm/models/orgLimitEvent.d.ts +32 -0
  27. package/admin/orm/models/orgLimitEvent.js +55 -0
  28. package/admin/orm/mutation/index.d.ts +1 -15
  29. package/admin/orm/mutation/index.js +0 -12
  30. package/auth/cli/commands.js +1 -3
  31. package/auth/cli/executor.d.ts +0 -5
  32. package/auth/orm/index.d.ts +0 -5
  33. package/auth/orm/input-types.d.ts +0 -20
  34. package/auth/orm/mutation/index.d.ts +1 -15
  35. package/auth/orm/mutation/index.js +0 -12
  36. package/esm/admin/cli/commands/app-invite.js +22 -0
  37. package/esm/admin/cli/commands/app-limit-default.js +22 -0
  38. package/esm/{auth/cli/commands/confirm-upload.d.ts → admin/cli/commands/app-limit-event.d.ts} +1 -1
  39. package/esm/admin/cli/commands/app-limit-event.js +210 -0
  40. package/esm/admin/cli/commands/app-limit.js +66 -0
  41. package/esm/admin/cli/commands/app-membership.js +0 -22
  42. package/esm/admin/cli/commands/org-invite.js +22 -0
  43. package/esm/admin/cli/commands/org-limit-aggregate.d.ts +8 -0
  44. package/esm/admin/cli/commands/org-limit-aggregate.js +360 -0
  45. package/esm/admin/cli/commands/org-limit-default.js +22 -0
  46. package/esm/admin/cli/commands/org-limit-event.d.ts +8 -0
  47. package/esm/admin/cli/commands/org-limit-event.js +210 -0
  48. package/esm/admin/cli/commands/org-limit.js +66 -0
  49. package/esm/admin/cli/commands/org-membership-setting.js +44 -0
  50. package/esm/admin/cli/commands.js +25 -21
  51. package/esm/admin/cli/executor.d.ts +12 -14
  52. package/esm/admin/orm/index.d.ts +24 -23
  53. package/esm/admin/orm/index.js +24 -18
  54. package/esm/admin/orm/input-types.d.ts +1297 -839
  55. package/esm/admin/orm/models/appLimitEvent.d.ts +32 -0
  56. package/esm/admin/orm/models/appLimitEvent.js +51 -0
  57. package/esm/admin/orm/models/index.d.ts +12 -9
  58. package/esm/admin/orm/models/index.js +12 -9
  59. package/esm/admin/orm/models/orgLimitAggregate.d.ts +56 -0
  60. package/esm/admin/orm/models/orgLimitAggregate.js +96 -0
  61. package/esm/admin/orm/models/orgLimitEvent.d.ts +32 -0
  62. package/esm/admin/orm/models/orgLimitEvent.js +51 -0
  63. package/esm/admin/orm/mutation/index.d.ts +1 -15
  64. package/esm/admin/orm/mutation/index.js +0 -12
  65. package/esm/auth/cli/commands.js +1 -3
  66. package/esm/auth/cli/executor.d.ts +0 -5
  67. package/esm/auth/orm/index.d.ts +0 -5
  68. package/esm/auth/orm/input-types.d.ts +0 -20
  69. package/esm/auth/orm/mutation/index.d.ts +1 -15
  70. package/esm/auth/orm/mutation/index.js +0 -12
  71. package/esm/objects/cli/commands.js +1 -3
  72. package/esm/objects/cli/executor.d.ts +0 -5
  73. package/esm/objects/orm/index.d.ts +0 -5
  74. package/esm/objects/orm/input-types.d.ts +0 -20
  75. package/esm/objects/orm/mutation/index.d.ts +1 -15
  76. package/esm/objects/orm/mutation/index.js +0 -12
  77. package/esm/public/cli/commands/agent-message.d.ts +8 -0
  78. package/esm/public/cli/commands/agent-message.js +324 -0
  79. package/esm/public/cli/commands/agent-task.d.ts +8 -0
  80. package/esm/public/cli/commands/agent-task.js +368 -0
  81. package/esm/public/cli/commands/agent-thread.d.ts +8 -0
  82. package/esm/public/cli/commands/agent-thread.js +372 -0
  83. package/esm/public/cli/commands/app-invite.js +22 -0
  84. package/esm/public/cli/commands/app-limit-default.js +22 -0
  85. package/esm/public/cli/commands/app-limit-event.d.ts +8 -0
  86. package/esm/public/cli/commands/app-limit-event.js +210 -0
  87. package/esm/public/cli/commands/app-limit.js +66 -0
  88. package/esm/public/cli/commands/app-membership.js +0 -22
  89. package/esm/public/cli/commands/billing-module.d.ts +8 -0
  90. package/esm/public/cli/commands/billing-module.js +492 -0
  91. package/esm/public/cli/commands/limits-module.js +22 -0
  92. package/esm/public/cli/commands/node-type-registry.d.ts +8 -0
  93. package/esm/public/cli/commands/node-type-registry.js +343 -0
  94. package/esm/public/cli/commands/org-invite.js +22 -0
  95. package/esm/public/cli/commands/org-limit-aggregate.d.ts +8 -0
  96. package/esm/public/cli/commands/org-limit-aggregate.js +360 -0
  97. package/esm/public/cli/commands/org-limit-default.js +22 -0
  98. package/esm/public/cli/commands/org-limit-event.d.ts +8 -0
  99. package/esm/public/cli/commands/org-limit-event.js +210 -0
  100. package/esm/public/cli/commands/org-limit.js +66 -0
  101. package/esm/public/cli/commands/org-membership-setting.js +44 -0
  102. package/esm/public/cli/commands/plans-module.d.ts +8 -0
  103. package/esm/public/cli/commands/plans-module.js +426 -0
  104. package/esm/public/cli/commands/profiles-module.js +44 -0
  105. package/esm/public/cli/commands/storage-module.js +22 -44
  106. package/esm/public/cli/commands.js +45 -29
  107. package/esm/public/cli/executor.d.ts +38 -34
  108. package/esm/public/orm/index.d.ts +56 -43
  109. package/esm/public/orm/index.js +36 -18
  110. package/esm/public/orm/input-types.d.ts +2983 -1112
  111. package/esm/public/orm/input-types.js +9 -0
  112. package/esm/public/orm/models/agentMessage.d.ts +56 -0
  113. package/esm/public/orm/models/agentMessage.js +96 -0
  114. package/esm/public/orm/models/agentTask.d.ts +56 -0
  115. package/esm/public/orm/models/agentTask.js +96 -0
  116. package/esm/public/orm/models/agentThread.d.ts +56 -0
  117. package/esm/public/orm/models/agentThread.js +96 -0
  118. package/esm/public/orm/models/appLimitEvent.d.ts +32 -0
  119. package/esm/public/orm/models/appLimitEvent.js +51 -0
  120. package/esm/public/orm/models/billingModule.d.ts +56 -0
  121. package/esm/public/orm/models/billingModule.js +96 -0
  122. package/esm/public/orm/models/index.d.ts +18 -9
  123. package/esm/public/orm/models/index.js +18 -9
  124. package/esm/public/orm/models/nodeTypeRegistry.d.ts +56 -0
  125. package/esm/public/orm/models/nodeTypeRegistry.js +96 -0
  126. package/esm/public/orm/models/orgLimitAggregate.d.ts +56 -0
  127. package/esm/public/orm/models/orgLimitAggregate.js +96 -0
  128. package/esm/public/orm/models/orgLimitEvent.d.ts +32 -0
  129. package/esm/public/orm/models/orgLimitEvent.js +51 -0
  130. package/esm/public/orm/models/plansModule.d.ts +56 -0
  131. package/esm/public/orm/models/plansModule.js +96 -0
  132. package/esm/public/orm/mutation/index.d.ts +17 -31
  133. package/esm/public/orm/mutation/index.js +24 -36
  134. package/esm/public/orm/query/index.d.ts +28 -28
  135. package/esm/public/orm/query/index.js +48 -48
  136. package/objects/cli/commands.js +1 -3
  137. package/objects/cli/executor.d.ts +0 -5
  138. package/objects/orm/index.d.ts +0 -5
  139. package/objects/orm/input-types.d.ts +0 -20
  140. package/objects/orm/mutation/index.d.ts +1 -15
  141. package/objects/orm/mutation/index.js +0 -12
  142. package/package.json +4 -4
  143. package/public/cli/commands/agent-message.d.ts +8 -0
  144. package/public/cli/commands/agent-message.js +326 -0
  145. package/public/cli/commands/agent-task.d.ts +8 -0
  146. package/public/cli/commands/agent-task.js +370 -0
  147. package/public/cli/commands/agent-thread.d.ts +8 -0
  148. package/public/cli/commands/agent-thread.js +374 -0
  149. package/public/cli/commands/app-invite.js +22 -0
  150. package/public/cli/commands/app-limit-default.js +22 -0
  151. package/public/cli/commands/app-limit-event.d.ts +8 -0
  152. package/public/cli/commands/app-limit-event.js +212 -0
  153. package/public/cli/commands/app-limit.js +66 -0
  154. package/public/cli/commands/app-membership.js +0 -22
  155. package/public/cli/commands/billing-module.d.ts +8 -0
  156. package/public/cli/commands/billing-module.js +494 -0
  157. package/public/cli/commands/limits-module.js +22 -0
  158. package/public/cli/commands/node-type-registry.d.ts +8 -0
  159. package/public/cli/commands/node-type-registry.js +345 -0
  160. package/public/cli/commands/org-invite.js +22 -0
  161. package/public/cli/commands/org-limit-aggregate.d.ts +8 -0
  162. package/public/cli/commands/org-limit-aggregate.js +362 -0
  163. package/public/cli/commands/org-limit-default.js +22 -0
  164. package/public/cli/commands/org-limit-event.d.ts +8 -0
  165. package/public/cli/commands/org-limit-event.js +212 -0
  166. package/public/cli/commands/org-limit.js +66 -0
  167. package/public/cli/commands/org-membership-setting.js +44 -0
  168. package/public/cli/commands/plans-module.d.ts +8 -0
  169. package/public/cli/commands/plans-module.js +428 -0
  170. package/public/cli/commands/profiles-module.js +44 -0
  171. package/public/cli/commands/storage-module.js +22 -44
  172. package/public/cli/commands.js +45 -29
  173. package/public/cli/executor.d.ts +38 -34
  174. package/public/orm/index.d.ts +56 -43
  175. package/public/orm/index.js +36 -18
  176. package/public/orm/input-types.d.ts +2983 -1112
  177. package/public/orm/input-types.js +9 -0
  178. package/public/orm/models/agentMessage.d.ts +56 -0
  179. package/public/orm/models/agentMessage.js +100 -0
  180. package/public/orm/models/agentTask.d.ts +56 -0
  181. package/public/orm/models/agentTask.js +100 -0
  182. package/public/orm/models/agentThread.d.ts +56 -0
  183. package/public/orm/models/agentThread.js +100 -0
  184. package/public/orm/models/appLimitEvent.d.ts +32 -0
  185. package/public/orm/models/appLimitEvent.js +55 -0
  186. package/public/orm/models/billingModule.d.ts +56 -0
  187. package/public/orm/models/billingModule.js +100 -0
  188. package/public/orm/models/index.d.ts +18 -9
  189. package/public/orm/models/index.js +39 -21
  190. package/public/orm/models/nodeTypeRegistry.d.ts +56 -0
  191. package/public/orm/models/nodeTypeRegistry.js +100 -0
  192. package/public/orm/models/orgLimitAggregate.d.ts +56 -0
  193. package/public/orm/models/orgLimitAggregate.js +100 -0
  194. package/public/orm/models/orgLimitEvent.d.ts +32 -0
  195. package/public/orm/models/orgLimitEvent.js +55 -0
  196. package/public/orm/models/plansModule.d.ts +56 -0
  197. package/public/orm/models/plansModule.js +100 -0
  198. package/public/orm/mutation/index.d.ts +17 -31
  199. package/public/orm/mutation/index.js +24 -36
  200. package/public/orm/query/index.d.ts +28 -28
  201. package/public/orm/query/index.js +48 -48
  202. package/admin/cli/commands/confirm-upload.js +0 -36
  203. package/auth/cli/commands/confirm-upload.js +0 -36
  204. package/esm/admin/cli/commands/confirm-upload.js +0 -34
  205. package/esm/auth/cli/commands/confirm-upload.js +0 -34
  206. package/esm/objects/cli/commands/confirm-upload.d.ts +0 -8
  207. package/esm/objects/cli/commands/confirm-upload.js +0 -34
  208. package/esm/public/cli/commands/confirm-upload.d.ts +0 -8
  209. package/esm/public/cli/commands/confirm-upload.js +0 -34
  210. package/objects/cli/commands/confirm-upload.d.ts +0 -8
  211. package/objects/cli/commands/confirm-upload.js +0 -36
  212. package/public/cli/commands/confirm-upload.d.ts +0 -8
  213. package/public/cli/commands/confirm-upload.js +0 -36
@@ -0,0 +1,210 @@
1
+ /**
2
+ * CLI commands for AppLimitEvent
3
+ * @generated by @constructive-io/graphql-codegen
4
+ * DO NOT EDIT - changes will be overwritten
5
+ */
6
+ import { extractFirst } from 'inquirerer';
7
+ import { getClient } from '../executor';
8
+ import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils';
9
+ const fieldSchema = {
10
+ name: 'string',
11
+ actorId: 'uuid',
12
+ entityId: 'uuid',
13
+ eventType: 'string',
14
+ delta: 'int',
15
+ numBefore: 'int',
16
+ numAfter: 'int',
17
+ maxAtEvent: 'int',
18
+ reason: 'string',
19
+ };
20
+ const usage = '\napp-limit-event <command>\n\nCommands:\n list List appLimitEvent records\n find-first Find first matching appLimitEvent record\n create Create a new appLimitEvent\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';
21
+ export default async (argv, prompter, _options) => {
22
+ if (argv.help || argv.h) {
23
+ console.log(usage);
24
+ process.exit(0);
25
+ }
26
+ const { first: subcommand, newArgv } = extractFirst(argv);
27
+ if (!subcommand) {
28
+ const answer = await prompter.prompt(argv, [
29
+ {
30
+ type: 'autocomplete',
31
+ name: 'subcommand',
32
+ message: 'What do you want to do?',
33
+ options: ['list', 'find-first', 'create'],
34
+ },
35
+ ]);
36
+ return handleTableSubcommand(answer.subcommand, newArgv, prompter);
37
+ }
38
+ return handleTableSubcommand(subcommand, newArgv, prompter);
39
+ };
40
+ async function handleTableSubcommand(subcommand, argv, prompter) {
41
+ switch (subcommand) {
42
+ case 'list':
43
+ return handleList(argv, prompter);
44
+ case 'find-first':
45
+ return handleFindFirst(argv, prompter);
46
+ case 'create':
47
+ return handleCreate(argv, prompter);
48
+ default:
49
+ console.log(usage);
50
+ process.exit(1);
51
+ }
52
+ }
53
+ async function handleList(argv, _prompter) {
54
+ try {
55
+ const defaultSelect = {
56
+ name: true,
57
+ actorId: true,
58
+ entityId: true,
59
+ eventType: true,
60
+ delta: true,
61
+ numBefore: true,
62
+ numAfter: true,
63
+ maxAtEvent: true,
64
+ reason: true,
65
+ };
66
+ const findManyArgs = parseFindManyArgs(argv, defaultSelect);
67
+ const client = getClient();
68
+ const result = await client.appLimitEvent.findMany(findManyArgs).execute();
69
+ console.log(JSON.stringify(result, null, 2));
70
+ }
71
+ catch (error) {
72
+ console.error('Failed to list records.');
73
+ if (error instanceof Error) {
74
+ console.error(error.message);
75
+ }
76
+ process.exit(1);
77
+ }
78
+ }
79
+ async function handleFindFirst(argv, _prompter) {
80
+ try {
81
+ const defaultSelect = {
82
+ name: true,
83
+ actorId: true,
84
+ entityId: true,
85
+ eventType: true,
86
+ delta: true,
87
+ numBefore: true,
88
+ numAfter: true,
89
+ maxAtEvent: true,
90
+ reason: true,
91
+ };
92
+ const findFirstArgs = parseFindFirstArgs(argv, defaultSelect);
93
+ const client = getClient();
94
+ const result = await client.appLimitEvent.findFirst(findFirstArgs).execute();
95
+ console.log(JSON.stringify(result, null, 2));
96
+ }
97
+ catch (error) {
98
+ console.error('Failed to find record.');
99
+ if (error instanceof Error) {
100
+ console.error(error.message);
101
+ }
102
+ process.exit(1);
103
+ }
104
+ }
105
+ async function handleCreate(argv, prompter) {
106
+ try {
107
+ const rawAnswers = await prompter.prompt(argv, [
108
+ {
109
+ type: 'text',
110
+ name: 'name',
111
+ message: 'name',
112
+ required: false,
113
+ skipPrompt: true,
114
+ },
115
+ {
116
+ type: 'text',
117
+ name: 'actorId',
118
+ message: 'actorId',
119
+ required: false,
120
+ skipPrompt: true,
121
+ },
122
+ {
123
+ type: 'text',
124
+ name: 'entityId',
125
+ message: 'entityId',
126
+ required: false,
127
+ skipPrompt: true,
128
+ },
129
+ {
130
+ type: 'text',
131
+ name: 'eventType',
132
+ message: 'eventType',
133
+ required: false,
134
+ skipPrompt: true,
135
+ },
136
+ {
137
+ type: 'text',
138
+ name: 'delta',
139
+ message: 'delta',
140
+ required: false,
141
+ skipPrompt: true,
142
+ },
143
+ {
144
+ type: 'text',
145
+ name: 'numBefore',
146
+ message: 'numBefore',
147
+ required: false,
148
+ skipPrompt: true,
149
+ },
150
+ {
151
+ type: 'text',
152
+ name: 'numAfter',
153
+ message: 'numAfter',
154
+ required: false,
155
+ skipPrompt: true,
156
+ },
157
+ {
158
+ type: 'text',
159
+ name: 'maxAtEvent',
160
+ message: 'maxAtEvent',
161
+ required: false,
162
+ skipPrompt: true,
163
+ },
164
+ {
165
+ type: 'text',
166
+ name: 'reason',
167
+ message: 'reason',
168
+ required: false,
169
+ skipPrompt: true,
170
+ },
171
+ ]);
172
+ const answers = coerceAnswers(rawAnswers, fieldSchema);
173
+ const cleanedData = stripUndefined(answers, fieldSchema);
174
+ const client = getClient();
175
+ const result = await client.appLimitEvent
176
+ .create({
177
+ data: {
178
+ name: cleanedData.name,
179
+ actorId: cleanedData.actorId,
180
+ entityId: cleanedData.entityId,
181
+ eventType: cleanedData.eventType,
182
+ delta: cleanedData.delta,
183
+ numBefore: cleanedData.numBefore,
184
+ numAfter: cleanedData.numAfter,
185
+ maxAtEvent: cleanedData.maxAtEvent,
186
+ reason: cleanedData.reason,
187
+ },
188
+ select: {
189
+ name: true,
190
+ actorId: true,
191
+ entityId: true,
192
+ eventType: true,
193
+ delta: true,
194
+ numBefore: true,
195
+ numAfter: true,
196
+ maxAtEvent: true,
197
+ reason: true,
198
+ },
199
+ })
200
+ .execute();
201
+ console.log(JSON.stringify(result, null, 2));
202
+ }
203
+ catch (error) {
204
+ console.error('Failed to create record.');
205
+ if (error instanceof Error) {
206
+ console.error(error.message);
207
+ }
208
+ process.exit(1);
209
+ }
210
+ }
@@ -12,6 +12,9 @@ const fieldSchema = {
12
12
  actorId: 'uuid',
13
13
  num: 'int',
14
14
  max: 'int',
15
+ softMax: 'int',
16
+ windowStart: 'string',
17
+ windowDuration: 'string',
15
18
  };
16
19
  const usage = '\napp-limit <command>\n\nCommands:\n list List appLimit records\n find-first Find first matching appLimit record\n get Get a appLimit by ID\n create Create a new appLimit\n update Update an existing appLimit\n delete Delete a appLimit\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';
17
20
  export default async (argv, prompter, _options) => {
@@ -60,6 +63,9 @@ async function handleList(argv, _prompter) {
60
63
  actorId: true,
61
64
  num: true,
62
65
  max: true,
66
+ softMax: true,
67
+ windowStart: true,
68
+ windowDuration: true,
63
69
  };
64
70
  const findManyArgs = parseFindManyArgs(argv, defaultSelect);
65
71
  const client = getClient();
@@ -82,6 +88,9 @@ async function handleFindFirst(argv, _prompter) {
82
88
  actorId: true,
83
89
  num: true,
84
90
  max: true,
91
+ softMax: true,
92
+ windowStart: true,
93
+ windowDuration: true,
85
94
  };
86
95
  const findFirstArgs = parseFindFirstArgs(argv, defaultSelect);
87
96
  const client = getClient();
@@ -116,6 +125,9 @@ async function handleGet(argv, prompter) {
116
125
  actorId: true,
117
126
  num: true,
118
127
  max: true,
128
+ softMax: true,
129
+ windowStart: true,
130
+ windowDuration: true,
119
131
  },
120
132
  })
121
133
  .execute();
@@ -159,6 +171,27 @@ async function handleCreate(argv, prompter) {
159
171
  required: false,
160
172
  skipPrompt: true,
161
173
  },
174
+ {
175
+ type: 'text',
176
+ name: 'softMax',
177
+ message: 'softMax',
178
+ required: false,
179
+ skipPrompt: true,
180
+ },
181
+ {
182
+ type: 'text',
183
+ name: 'windowStart',
184
+ message: 'windowStart',
185
+ required: false,
186
+ skipPrompt: true,
187
+ },
188
+ {
189
+ type: 'text',
190
+ name: 'windowDuration',
191
+ message: 'windowDuration',
192
+ required: false,
193
+ skipPrompt: true,
194
+ },
162
195
  ]);
163
196
  const answers = coerceAnswers(rawAnswers, fieldSchema);
164
197
  const cleanedData = stripUndefined(answers, fieldSchema);
@@ -170,6 +203,9 @@ async function handleCreate(argv, prompter) {
170
203
  actorId: cleanedData.actorId,
171
204
  num: cleanedData.num,
172
205
  max: cleanedData.max,
206
+ softMax: cleanedData.softMax,
207
+ windowStart: cleanedData.windowStart,
208
+ windowDuration: cleanedData.windowDuration,
173
209
  },
174
210
  select: {
175
211
  id: true,
@@ -177,6 +213,9 @@ async function handleCreate(argv, prompter) {
177
213
  actorId: true,
178
214
  num: true,
179
215
  max: true,
216
+ softMax: true,
217
+ windowStart: true,
218
+ windowDuration: true,
180
219
  },
181
220
  })
182
221
  .execute();
@@ -226,6 +265,27 @@ async function handleUpdate(argv, prompter) {
226
265
  required: false,
227
266
  skipPrompt: true,
228
267
  },
268
+ {
269
+ type: 'text',
270
+ name: 'softMax',
271
+ message: 'softMax',
272
+ required: false,
273
+ skipPrompt: true,
274
+ },
275
+ {
276
+ type: 'text',
277
+ name: 'windowStart',
278
+ message: 'windowStart',
279
+ required: false,
280
+ skipPrompt: true,
281
+ },
282
+ {
283
+ type: 'text',
284
+ name: 'windowDuration',
285
+ message: 'windowDuration',
286
+ required: false,
287
+ skipPrompt: true,
288
+ },
229
289
  ]);
230
290
  const answers = coerceAnswers(rawAnswers, fieldSchema);
231
291
  const cleanedData = stripUndefined(answers, fieldSchema);
@@ -240,6 +300,9 @@ async function handleUpdate(argv, prompter) {
240
300
  actorId: cleanedData.actorId,
241
301
  num: cleanedData.num,
242
302
  max: cleanedData.max,
303
+ softMax: cleanedData.softMax,
304
+ windowStart: cleanedData.windowStart,
305
+ windowDuration: cleanedData.windowDuration,
243
306
  },
244
307
  select: {
245
308
  id: true,
@@ -247,6 +310,9 @@ async function handleUpdate(argv, prompter) {
247
310
  actorId: true,
248
311
  num: true,
249
312
  max: true,
313
+ softMax: true,
314
+ windowStart: true,
315
+ windowDuration: true,
250
316
  },
251
317
  })
252
318
  .execute();
@@ -17,7 +17,6 @@ const fieldSchema = {
17
17
  isDisabled: 'boolean',
18
18
  isVerified: 'boolean',
19
19
  isActive: 'boolean',
20
- isExternal: 'boolean',
21
20
  isOwner: 'boolean',
22
21
  isAdmin: 'boolean',
23
22
  permissions: 'string',
@@ -77,7 +76,6 @@ async function handleList(argv, _prompter) {
77
76
  isDisabled: true,
78
77
  isVerified: true,
79
78
  isActive: true,
80
- isExternal: true,
81
79
  isOwner: true,
82
80
  isAdmin: true,
83
81
  permissions: true,
@@ -111,7 +109,6 @@ async function handleFindFirst(argv, _prompter) {
111
109
  isDisabled: true,
112
110
  isVerified: true,
113
111
  isActive: true,
114
- isExternal: true,
115
112
  isOwner: true,
116
113
  isAdmin: true,
117
114
  permissions: true,
@@ -157,7 +154,6 @@ async function handleGet(argv, prompter) {
157
154
  isDisabled: true,
158
155
  isVerified: true,
159
156
  isActive: true,
160
- isExternal: true,
161
157
  isOwner: true,
162
158
  isAdmin: true,
163
159
  permissions: true,
@@ -229,13 +225,6 @@ async function handleCreate(argv, prompter) {
229
225
  required: false,
230
226
  skipPrompt: true,
231
227
  },
232
- {
233
- type: 'boolean',
234
- name: 'isExternal',
235
- message: 'isExternal',
236
- required: false,
237
- skipPrompt: true,
238
- },
239
228
  {
240
229
  type: 'boolean',
241
230
  name: 'isOwner',
@@ -291,7 +280,6 @@ async function handleCreate(argv, prompter) {
291
280
  isDisabled: cleanedData.isDisabled,
292
281
  isVerified: cleanedData.isVerified,
293
282
  isActive: cleanedData.isActive,
294
- isExternal: cleanedData.isExternal,
295
283
  isOwner: cleanedData.isOwner,
296
284
  isAdmin: cleanedData.isAdmin,
297
285
  permissions: cleanedData.permissions,
@@ -310,7 +298,6 @@ async function handleCreate(argv, prompter) {
310
298
  isDisabled: true,
311
299
  isVerified: true,
312
300
  isActive: true,
313
- isExternal: true,
314
301
  isOwner: true,
315
302
  isAdmin: true,
316
303
  permissions: true,
@@ -388,13 +375,6 @@ async function handleUpdate(argv, prompter) {
388
375
  required: false,
389
376
  skipPrompt: true,
390
377
  },
391
- {
392
- type: 'boolean',
393
- name: 'isExternal',
394
- message: 'isExternal',
395
- required: false,
396
- skipPrompt: true,
397
- },
398
378
  {
399
379
  type: 'boolean',
400
380
  name: 'isOwner',
@@ -453,7 +433,6 @@ async function handleUpdate(argv, prompter) {
453
433
  isDisabled: cleanedData.isDisabled,
454
434
  isVerified: cleanedData.isVerified,
455
435
  isActive: cleanedData.isActive,
456
- isExternal: cleanedData.isExternal,
457
436
  isOwner: cleanedData.isOwner,
458
437
  isAdmin: cleanedData.isAdmin,
459
438
  permissions: cleanedData.permissions,
@@ -472,7 +451,6 @@ async function handleUpdate(argv, prompter) {
472
451
  isDisabled: true,
473
452
  isVerified: true,
474
453
  isActive: true,
475
- isExternal: true,
476
454
  isOwner: true,
477
455
  isAdmin: true,
478
456
  permissions: true,
@@ -0,0 +1,8 @@
1
+ /**
2
+ * CLI commands for BillingModule
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;