@constructive-sdk/cli 0.9.2 → 0.10.1

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 (276) hide show
  1. package/README.md +0 -8
  2. package/admin/cli/commands/app-level-requirement.js +0 -2
  3. package/admin/cli/commands/app-level.js +0 -2
  4. package/admin/cli/commands/app-permission.js +0 -2
  5. package/admin/cli/commands/invite.js +0 -2
  6. package/admin/cli/commands/membership-type.js +0 -3
  7. package/admin/cli/commands/org-chart-edge-grant.js +3 -3
  8. package/admin/cli/commands/org-chart-edge.js +0 -2
  9. package/admin/cli/commands/org-invite.js +0 -2
  10. package/admin/cli/commands/org-permission.js +0 -2
  11. package/admin/orm/input-types.d.ts +33 -127
  12. package/auth/cli/commands/audit-log.js +0 -2
  13. package/auth/cli/commands/connected-account.js +0 -3
  14. package/auth/cli/commands/crypto-address.js +0 -2
  15. package/auth/cli/commands/phone-number.js +0 -3
  16. package/auth/cli/commands.js +7 -7
  17. package/auth/cli/executor.d.ts +3 -3
  18. package/auth/orm/index.d.ts +6 -6
  19. package/auth/orm/index.js +6 -6
  20. package/auth/orm/input-types.d.ts +279 -327
  21. package/auth/orm/input-types.js +9 -1
  22. package/auth/orm/models/index.d.ts +3 -3
  23. package/auth/orm/models/index.js +7 -7
  24. package/esm/admin/cli/commands/app-level-requirement.js +0 -2
  25. package/esm/admin/cli/commands/app-level.js +0 -2
  26. package/esm/admin/cli/commands/app-permission.js +0 -2
  27. package/esm/admin/cli/commands/invite.js +0 -2
  28. package/esm/admin/cli/commands/membership-type.js +0 -3
  29. package/esm/admin/cli/commands/org-chart-edge-grant.js +3 -3
  30. package/esm/admin/cli/commands/org-chart-edge.js +0 -2
  31. package/esm/admin/cli/commands/org-invite.js +0 -2
  32. package/esm/admin/cli/commands/org-permission.js +0 -2
  33. package/esm/admin/orm/input-types.d.ts +33 -127
  34. package/esm/auth/cli/commands/audit-log.js +0 -2
  35. package/esm/auth/cli/commands/connected-account.js +0 -3
  36. package/esm/auth/cli/commands/crypto-address.js +0 -2
  37. package/esm/auth/cli/commands/phone-number.js +0 -3
  38. package/esm/auth/cli/commands.js +7 -7
  39. package/esm/auth/cli/executor.d.ts +3 -3
  40. package/esm/auth/orm/index.d.ts +6 -6
  41. package/esm/auth/orm/index.js +6 -6
  42. package/esm/auth/orm/input-types.d.ts +279 -327
  43. package/esm/auth/orm/input-types.js +9 -1
  44. package/esm/auth/orm/models/index.d.ts +3 -3
  45. package/esm/auth/orm/models/index.js +3 -3
  46. package/esm/index.d.ts +3 -3
  47. package/esm/index.js +3 -3
  48. package/esm/objects/cli/commands/commit.js +0 -2
  49. package/esm/objects/cli/commands/ref.js +0 -2
  50. package/esm/objects/cli/commands/store.js +0 -2
  51. package/esm/objects/orm/input-types.d.ts +17 -48
  52. package/esm/public/cli/commands/accept-database-transfer.d.ts +8 -0
  53. package/esm/public/cli/commands/accept-database-transfer.js +34 -0
  54. package/esm/public/cli/commands/api-module.js +0 -2
  55. package/esm/public/cli/commands/api.js +0 -5
  56. package/esm/public/cli/commands/app-level-requirement.js +0 -2
  57. package/esm/public/cli/commands/app-level.js +0 -2
  58. package/esm/public/cli/commands/app-permission.js +0 -2
  59. package/esm/public/cli/commands/app.js +0 -4
  60. package/esm/public/cli/commands/ast-migration.js +0 -2
  61. package/esm/public/cli/commands/audit-log.js +0 -2
  62. package/esm/public/cli/commands/blueprint-template.d.ts +8 -0
  63. package/esm/public/cli/commands/blueprint-template.js +549 -0
  64. package/esm/public/cli/commands/{uuid-module.d.ts → blueprint.d.ts} +1 -1
  65. package/esm/public/cli/commands/blueprint.js +484 -0
  66. package/esm/public/cli/commands/cancel-database-transfer.d.ts +8 -0
  67. package/esm/public/cli/commands/cancel-database-transfer.js +34 -0
  68. package/esm/public/cli/commands/check-constraint.js +0 -4
  69. package/esm/public/cli/commands/commit.js +0 -2
  70. package/esm/public/cli/commands/connected-account.js +0 -3
  71. package/esm/public/cli/commands/connected-accounts-module.js +0 -2
  72. package/esm/public/cli/commands/construct-blueprint.d.ts +8 -0
  73. package/esm/public/cli/commands/construct-blueprint.js +34 -0
  74. package/esm/public/cli/commands/copy-template-to-blueprint.d.ts +8 -0
  75. package/esm/public/cli/commands/copy-template-to-blueprint.js +34 -0
  76. package/esm/public/cli/commands/crypto-address.js +0 -2
  77. package/esm/public/cli/commands/crypto-addresses-module.js +0 -3
  78. package/esm/public/cli/commands/crypto-auth-module.js +0 -7
  79. package/esm/public/cli/commands/database-provision-module.js +0 -6
  80. package/esm/public/cli/commands/database-transfer.d.ts +8 -0
  81. package/esm/public/cli/commands/database-transfer.js +425 -0
  82. package/esm/public/cli/commands/database.js +0 -4
  83. package/esm/public/cli/commands/default-privilege.js +0 -4
  84. package/esm/public/cli/commands/denormalized-table-field.js +0 -2
  85. package/esm/public/cli/commands/emails-module.js +0 -2
  86. package/esm/public/cli/commands/embedding-chunk.d.ts +8 -0
  87. package/esm/public/cli/commands/embedding-chunk.js +513 -0
  88. package/esm/public/cli/commands/encrypted-secrets-module.js +0 -2
  89. package/{public/cli/commands/uuid-module.d.ts → esm/public/cli/commands/enum.d.ts} +1 -1
  90. package/esm/public/cli/commands/{uuid-module.js → enum.js} +175 -33
  91. package/esm/public/cli/commands/field-module.js +0 -2
  92. package/esm/public/cli/commands/field.js +21 -7
  93. package/esm/public/cli/commands/foreign-key-constraint.js +0 -7
  94. package/esm/public/cli/commands/hierarchy-module.js +0 -11
  95. package/esm/public/cli/commands/index.js +0 -4
  96. package/esm/public/cli/commands/invite.js +0 -2
  97. package/esm/public/cli/commands/invites-module.js +0 -5
  98. package/esm/public/cli/commands/levels-module.js +0 -16
  99. package/esm/public/cli/commands/limits-module.js +0 -10
  100. package/esm/public/cli/commands/membership-type.js +0 -3
  101. package/esm/public/cli/commands/membership-types-module.js +0 -2
  102. package/esm/public/cli/commands/memberships-module.js +0 -13
  103. package/esm/public/cli/commands/node-type-registry.js +0 -6
  104. package/esm/public/cli/commands/org-chart-edge-grant.js +3 -3
  105. package/esm/public/cli/commands/org-chart-edge.js +0 -2
  106. package/esm/public/cli/commands/org-invite.js +0 -2
  107. package/esm/public/cli/commands/org-permission.js +0 -2
  108. package/esm/public/cli/commands/permissions-module.js +0 -8
  109. package/esm/public/cli/commands/phone-number.js +0 -3
  110. package/esm/public/cli/commands/phone-numbers-module.js +0 -2
  111. package/esm/public/cli/commands/policy.js +0 -6
  112. package/esm/public/cli/commands/primary-key-constraint.js +0 -4
  113. package/esm/public/cli/commands/profiles-module.js +0 -6
  114. package/esm/public/cli/commands/ref.js +0 -2
  115. package/esm/public/cli/commands/reject-database-transfer.d.ts +8 -0
  116. package/esm/public/cli/commands/reject-database-transfer.js +34 -0
  117. package/esm/public/cli/commands/relation-provision.js +63 -11
  118. package/esm/public/cli/commands/rls-module.js +0 -5
  119. package/esm/public/cli/commands/schema-grant.js +0 -2
  120. package/esm/public/cli/commands/schema.js +0 -6
  121. package/esm/public/cli/commands/secrets-module.js +0 -2
  122. package/esm/public/cli/commands/secure-table-provision.js +0 -6
  123. package/esm/public/cli/commands/sessions-module.js +0 -4
  124. package/esm/public/cli/commands/site-metadatum.js +0 -3
  125. package/esm/public/cli/commands/site-module.js +0 -2
  126. package/esm/public/cli/commands/site.js +0 -4
  127. package/esm/public/cli/commands/sql-migration.js +0 -7
  128. package/esm/public/cli/commands/store.js +0 -2
  129. package/esm/public/cli/commands/table-grant.js +0 -3
  130. package/esm/public/cli/commands/table-template-module.js +0 -3
  131. package/esm/public/cli/commands/table.js +0 -7
  132. package/esm/public/cli/commands/trigger-function.js +0 -3
  133. package/esm/public/cli/commands/trigger.js +0 -5
  134. package/esm/public/cli/commands/unique-constraint.js +0 -5
  135. package/esm/public/cli/commands/user-auth-module.js +0 -17
  136. package/esm/public/cli/commands/users-module.js +0 -3
  137. package/esm/public/cli/commands/view-grant.js +0 -3
  138. package/esm/public/cli/commands/view-rule.js +0 -4
  139. package/esm/public/cli/commands/view.js +0 -5
  140. package/esm/public/cli/commands.js +53 -35
  141. package/esm/public/cli/executor.d.ts +68 -39
  142. package/esm/public/orm/index.d.ts +81 -48
  143. package/esm/public/orm/index.js +26 -18
  144. package/esm/public/orm/input-types.d.ts +2447 -2980
  145. package/esm/public/orm/input-types.js +26 -1
  146. package/esm/public/orm/models/blueprint.d.ts +56 -0
  147. package/esm/public/orm/models/blueprint.js +94 -0
  148. package/esm/public/orm/models/blueprintTemplate.d.ts +56 -0
  149. package/esm/public/orm/models/blueprintTemplate.js +94 -0
  150. package/esm/public/orm/models/databaseTransfer.d.ts +56 -0
  151. package/esm/public/orm/models/databaseTransfer.js +94 -0
  152. package/esm/public/orm/models/embeddingChunk.d.ts +56 -0
  153. package/esm/public/orm/models/embeddingChunk.js +94 -0
  154. package/esm/public/orm/models/enum.d.ts +56 -0
  155. package/esm/public/orm/models/{uuidModule.js → enum.js} +23 -23
  156. package/esm/public/orm/models/index.d.ts +13 -9
  157. package/esm/public/orm/models/index.js +13 -9
  158. package/esm/public/orm/mutation/index.d.ts +98 -50
  159. package/esm/public/orm/mutation/index.js +126 -66
  160. package/index.d.ts +3 -3
  161. package/index.js +8 -8
  162. package/objects/cli/commands/commit.js +0 -2
  163. package/objects/cli/commands/ref.js +0 -2
  164. package/objects/cli/commands/store.js +0 -2
  165. package/objects/orm/input-types.d.ts +17 -48
  166. package/package.json +3 -3
  167. package/public/cli/commands/accept-database-transfer.d.ts +8 -0
  168. package/public/cli/commands/accept-database-transfer.js +36 -0
  169. package/public/cli/commands/api-module.js +0 -2
  170. package/public/cli/commands/api.js +0 -5
  171. package/public/cli/commands/app-level-requirement.js +0 -2
  172. package/public/cli/commands/app-level.js +0 -2
  173. package/public/cli/commands/app-permission.js +0 -2
  174. package/public/cli/commands/app.js +0 -4
  175. package/public/cli/commands/ast-migration.js +0 -2
  176. package/public/cli/commands/audit-log.js +0 -2
  177. package/public/cli/commands/blueprint-template.d.ts +8 -0
  178. package/public/cli/commands/blueprint-template.js +551 -0
  179. package/public/cli/commands/blueprint.d.ts +8 -0
  180. package/public/cli/commands/blueprint.js +486 -0
  181. package/public/cli/commands/cancel-database-transfer.d.ts +8 -0
  182. package/public/cli/commands/cancel-database-transfer.js +36 -0
  183. package/public/cli/commands/check-constraint.js +0 -4
  184. package/public/cli/commands/commit.js +0 -2
  185. package/public/cli/commands/connected-account.js +0 -3
  186. package/public/cli/commands/connected-accounts-module.js +0 -2
  187. package/public/cli/commands/construct-blueprint.d.ts +8 -0
  188. package/public/cli/commands/construct-blueprint.js +36 -0
  189. package/public/cli/commands/copy-template-to-blueprint.d.ts +8 -0
  190. package/public/cli/commands/copy-template-to-blueprint.js +36 -0
  191. package/public/cli/commands/crypto-address.js +0 -2
  192. package/public/cli/commands/crypto-addresses-module.js +0 -3
  193. package/public/cli/commands/crypto-auth-module.js +0 -7
  194. package/public/cli/commands/database-provision-module.js +0 -6
  195. package/public/cli/commands/database-transfer.d.ts +8 -0
  196. package/public/cli/commands/database-transfer.js +427 -0
  197. package/public/cli/commands/database.js +0 -4
  198. package/public/cli/commands/default-privilege.js +0 -4
  199. package/public/cli/commands/denormalized-table-field.js +0 -2
  200. package/public/cli/commands/emails-module.js +0 -2
  201. package/public/cli/commands/embedding-chunk.d.ts +8 -0
  202. package/public/cli/commands/embedding-chunk.js +515 -0
  203. package/public/cli/commands/encrypted-secrets-module.js +0 -2
  204. package/public/cli/commands/enum.d.ts +8 -0
  205. package/public/cli/commands/{uuid-module.js → enum.js} +175 -33
  206. package/public/cli/commands/field-module.js +0 -2
  207. package/public/cli/commands/field.js +21 -7
  208. package/public/cli/commands/foreign-key-constraint.js +0 -7
  209. package/public/cli/commands/hierarchy-module.js +0 -11
  210. package/public/cli/commands/index.js +0 -4
  211. package/public/cli/commands/invite.js +0 -2
  212. package/public/cli/commands/invites-module.js +0 -5
  213. package/public/cli/commands/levels-module.js +0 -16
  214. package/public/cli/commands/limits-module.js +0 -10
  215. package/public/cli/commands/membership-type.js +0 -3
  216. package/public/cli/commands/membership-types-module.js +0 -2
  217. package/public/cli/commands/memberships-module.js +0 -13
  218. package/public/cli/commands/node-type-registry.js +0 -6
  219. package/public/cli/commands/org-chart-edge-grant.js +3 -3
  220. package/public/cli/commands/org-chart-edge.js +0 -2
  221. package/public/cli/commands/org-invite.js +0 -2
  222. package/public/cli/commands/org-permission.js +0 -2
  223. package/public/cli/commands/permissions-module.js +0 -8
  224. package/public/cli/commands/phone-number.js +0 -3
  225. package/public/cli/commands/phone-numbers-module.js +0 -2
  226. package/public/cli/commands/policy.js +0 -6
  227. package/public/cli/commands/primary-key-constraint.js +0 -4
  228. package/public/cli/commands/profiles-module.js +0 -6
  229. package/public/cli/commands/ref.js +0 -2
  230. package/public/cli/commands/reject-database-transfer.d.ts +8 -0
  231. package/public/cli/commands/reject-database-transfer.js +36 -0
  232. package/public/cli/commands/relation-provision.js +63 -11
  233. package/public/cli/commands/rls-module.js +0 -5
  234. package/public/cli/commands/schema-grant.js +0 -2
  235. package/public/cli/commands/schema.js +0 -6
  236. package/public/cli/commands/secrets-module.js +0 -2
  237. package/public/cli/commands/secure-table-provision.js +0 -6
  238. package/public/cli/commands/sessions-module.js +0 -4
  239. package/public/cli/commands/site-metadatum.js +0 -3
  240. package/public/cli/commands/site-module.js +0 -2
  241. package/public/cli/commands/site.js +0 -4
  242. package/public/cli/commands/sql-migration.js +0 -7
  243. package/public/cli/commands/store.js +0 -2
  244. package/public/cli/commands/table-grant.js +0 -3
  245. package/public/cli/commands/table-template-module.js +0 -3
  246. package/public/cli/commands/table.js +0 -7
  247. package/public/cli/commands/trigger-function.js +0 -3
  248. package/public/cli/commands/trigger.js +0 -5
  249. package/public/cli/commands/unique-constraint.js +0 -5
  250. package/public/cli/commands/user-auth-module.js +0 -17
  251. package/public/cli/commands/users-module.js +0 -3
  252. package/public/cli/commands/view-grant.js +0 -3
  253. package/public/cli/commands/view-rule.js +0 -4
  254. package/public/cli/commands/view.js +0 -5
  255. package/public/cli/commands.js +53 -35
  256. package/public/cli/executor.d.ts +68 -39
  257. package/public/orm/index.d.ts +81 -48
  258. package/public/orm/index.js +26 -18
  259. package/public/orm/input-types.d.ts +2447 -2980
  260. package/public/orm/input-types.js +26 -1
  261. package/public/orm/models/blueprint.d.ts +56 -0
  262. package/public/orm/models/blueprint.js +98 -0
  263. package/public/orm/models/blueprintTemplate.d.ts +56 -0
  264. package/public/orm/models/blueprintTemplate.js +98 -0
  265. package/public/orm/models/databaseTransfer.d.ts +56 -0
  266. package/public/orm/models/databaseTransfer.js +98 -0
  267. package/public/orm/models/embeddingChunk.d.ts +56 -0
  268. package/public/orm/models/embeddingChunk.js +98 -0
  269. package/public/orm/models/enum.d.ts +56 -0
  270. package/public/orm/models/{uuidModule.js → enum.js} +25 -25
  271. package/public/orm/models/index.d.ts +13 -9
  272. package/public/orm/models/index.js +29 -21
  273. package/public/orm/mutation/index.d.ts +98 -50
  274. package/public/orm/mutation/index.js +126 -66
  275. package/esm/public/orm/models/uuidModule.d.ts +0 -56
  276. package/public/orm/models/uuidModule.d.ts +0 -56
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  /**
4
- * CLI commands for UuidModule
4
+ * CLI commands for Enum
5
5
  * @generated by @constructive-io/graphql-codegen
6
6
  * DO NOT EDIT - changes will be overwritten
7
7
  */
@@ -12,13 +12,17 @@ const fieldSchema = {
12
12
  id: 'uuid',
13
13
  databaseId: 'uuid',
14
14
  schemaId: 'uuid',
15
- uuidFunction: 'string',
16
- uuidSeed: 'string',
17
- uuidFunctionTrgmSimilarity: 'float',
18
- uuidSeedTrgmSimilarity: 'float',
19
- searchScore: 'float',
15
+ name: 'string',
16
+ label: 'string',
17
+ description: 'string',
18
+ values: 'string',
19
+ smartTags: 'json',
20
+ category: 'string',
21
+ module: 'string',
22
+ scope: 'int',
23
+ tags: 'string',
20
24
  };
21
- const usage = '\nuuid-module <command>\n\nCommands:\n list List all uuidModule records\n get Get a uuidModule by ID\n create Create a new uuidModule\n update Update an existing uuidModule\n delete Delete a uuidModule\n\n --help, -h Show this help message\n';
25
+ const usage = '\nenum <command>\n\nCommands:\n list List all enum records\n get Get a enum by ID\n create Create a new enum\n update Update an existing enum\n delete Delete a enum\n\n --help, -h Show this help message\n';
22
26
  exports.default = async (argv, prompter, _options) => {
23
27
  if (argv.help || argv.h) {
24
28
  console.log(usage);
@@ -58,14 +62,21 @@ async function handleTableSubcommand(subcommand, argv, prompter) {
58
62
  async function handleList(_argv, _prompter) {
59
63
  try {
60
64
  const client = (0, executor_1.getClient)();
61
- const result = await client.uuidModule
65
+ const result = await client.enum
62
66
  .findMany({
63
67
  select: {
64
68
  id: true,
65
69
  databaseId: true,
66
70
  schemaId: true,
67
- uuidFunction: true,
68
- uuidSeed: true,
71
+ name: true,
72
+ label: true,
73
+ description: true,
74
+ values: true,
75
+ smartTags: true,
76
+ category: true,
77
+ module: true,
78
+ scope: true,
79
+ tags: true,
69
80
  },
70
81
  })
71
82
  .execute();
@@ -90,15 +101,22 @@ async function handleGet(argv, prompter) {
90
101
  },
91
102
  ]);
92
103
  const client = (0, executor_1.getClient)();
93
- const result = await client.uuidModule
104
+ const result = await client.enum
94
105
  .findOne({
95
106
  id: answers.id,
96
107
  select: {
97
108
  id: true,
98
109
  databaseId: true,
99
110
  schemaId: true,
100
- uuidFunction: true,
101
- uuidSeed: true,
111
+ name: true,
112
+ label: true,
113
+ description: true,
114
+ values: true,
115
+ smartTags: true,
116
+ category: true,
117
+ module: true,
118
+ scope: true,
119
+ tags: true,
102
120
  },
103
121
  })
104
122
  .execute();
@@ -125,40 +143,102 @@ async function handleCreate(argv, prompter) {
125
143
  type: 'text',
126
144
  name: 'schemaId',
127
145
  message: 'schemaId',
146
+ required: true,
147
+ },
148
+ {
149
+ type: 'text',
150
+ name: 'name',
151
+ message: 'name',
152
+ required: true,
153
+ },
154
+ {
155
+ type: 'text',
156
+ name: 'label',
157
+ message: 'label',
128
158
  required: false,
129
159
  skipPrompt: true,
130
160
  },
131
161
  {
132
162
  type: 'text',
133
- name: 'uuidFunction',
134
- message: 'uuidFunction',
163
+ name: 'description',
164
+ message: 'description',
135
165
  required: false,
136
166
  skipPrompt: true,
137
167
  },
138
168
  {
139
169
  type: 'text',
140
- name: 'uuidSeed',
141
- message: 'uuidSeed',
142
- required: true,
170
+ name: 'values',
171
+ message: 'values',
172
+ required: false,
173
+ skipPrompt: true,
174
+ },
175
+ {
176
+ type: 'json',
177
+ name: 'smartTags',
178
+ message: 'smartTags',
179
+ required: false,
180
+ skipPrompt: true,
181
+ },
182
+ {
183
+ type: 'text',
184
+ name: 'category',
185
+ message: 'category',
186
+ required: false,
187
+ skipPrompt: true,
188
+ },
189
+ {
190
+ type: 'text',
191
+ name: 'module',
192
+ message: 'module',
193
+ required: false,
194
+ skipPrompt: true,
195
+ },
196
+ {
197
+ type: 'text',
198
+ name: 'scope',
199
+ message: 'scope',
200
+ required: false,
201
+ skipPrompt: true,
202
+ },
203
+ {
204
+ type: 'text',
205
+ name: 'tags',
206
+ message: 'tags',
207
+ required: false,
208
+ skipPrompt: true,
143
209
  },
144
210
  ]);
145
211
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
146
212
  const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
147
213
  const client = (0, executor_1.getClient)();
148
- const result = await client.uuidModule
214
+ const result = await client.enum
149
215
  .create({
150
216
  data: {
151
217
  databaseId: cleanedData.databaseId,
152
218
  schemaId: cleanedData.schemaId,
153
- uuidFunction: cleanedData.uuidFunction,
154
- uuidSeed: cleanedData.uuidSeed,
219
+ name: cleanedData.name,
220
+ label: cleanedData.label,
221
+ description: cleanedData.description,
222
+ values: cleanedData.values,
223
+ smartTags: cleanedData.smartTags,
224
+ category: cleanedData.category,
225
+ module: cleanedData.module,
226
+ scope: cleanedData.scope,
227
+ tags: cleanedData.tags,
155
228
  },
156
229
  select: {
157
230
  id: true,
158
231
  databaseId: true,
159
232
  schemaId: true,
160
- uuidFunction: true,
161
- uuidSeed: true,
233
+ name: true,
234
+ label: true,
235
+ description: true,
236
+ values: true,
237
+ smartTags: true,
238
+ category: true,
239
+ module: true,
240
+ scope: true,
241
+ tags: true,
162
242
  },
163
243
  })
164
244
  .execute();
@@ -192,26 +272,74 @@ async function handleUpdate(argv, prompter) {
192
272
  name: 'schemaId',
193
273
  message: 'schemaId',
194
274
  required: false,
275
+ },
276
+ {
277
+ type: 'text',
278
+ name: 'name',
279
+ message: 'name',
280
+ required: false,
281
+ },
282
+ {
283
+ type: 'text',
284
+ name: 'label',
285
+ message: 'label',
286
+ required: false,
287
+ skipPrompt: true,
288
+ },
289
+ {
290
+ type: 'text',
291
+ name: 'description',
292
+ message: 'description',
293
+ required: false,
294
+ skipPrompt: true,
295
+ },
296
+ {
297
+ type: 'text',
298
+ name: 'values',
299
+ message: 'values',
300
+ required: false,
301
+ skipPrompt: true,
302
+ },
303
+ {
304
+ type: 'json',
305
+ name: 'smartTags',
306
+ message: 'smartTags',
307
+ required: false,
195
308
  skipPrompt: true,
196
309
  },
197
310
  {
198
311
  type: 'text',
199
- name: 'uuidFunction',
200
- message: 'uuidFunction',
312
+ name: 'category',
313
+ message: 'category',
201
314
  required: false,
202
315
  skipPrompt: true,
203
316
  },
204
317
  {
205
318
  type: 'text',
206
- name: 'uuidSeed',
207
- message: 'uuidSeed',
319
+ name: 'module',
320
+ message: 'module',
208
321
  required: false,
322
+ skipPrompt: true,
323
+ },
324
+ {
325
+ type: 'text',
326
+ name: 'scope',
327
+ message: 'scope',
328
+ required: false,
329
+ skipPrompt: true,
330
+ },
331
+ {
332
+ type: 'text',
333
+ name: 'tags',
334
+ message: 'tags',
335
+ required: false,
336
+ skipPrompt: true,
209
337
  },
210
338
  ]);
211
339
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
212
340
  const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
213
341
  const client = (0, executor_1.getClient)();
214
- const result = await client.uuidModule
342
+ const result = await client.enum
215
343
  .update({
216
344
  where: {
217
345
  id: answers.id,
@@ -219,15 +347,29 @@ async function handleUpdate(argv, prompter) {
219
347
  data: {
220
348
  databaseId: cleanedData.databaseId,
221
349
  schemaId: cleanedData.schemaId,
222
- uuidFunction: cleanedData.uuidFunction,
223
- uuidSeed: cleanedData.uuidSeed,
350
+ name: cleanedData.name,
351
+ label: cleanedData.label,
352
+ description: cleanedData.description,
353
+ values: cleanedData.values,
354
+ smartTags: cleanedData.smartTags,
355
+ category: cleanedData.category,
356
+ module: cleanedData.module,
357
+ scope: cleanedData.scope,
358
+ tags: cleanedData.tags,
224
359
  },
225
360
  select: {
226
361
  id: true,
227
362
  databaseId: true,
228
363
  schemaId: true,
229
- uuidFunction: true,
230
- uuidSeed: true,
364
+ name: true,
365
+ label: true,
366
+ description: true,
367
+ values: true,
368
+ smartTags: true,
369
+ category: true,
370
+ module: true,
371
+ scope: true,
372
+ tags: true,
231
373
  },
232
374
  })
233
375
  .execute();
@@ -253,7 +395,7 @@ async function handleDelete(argv, prompter) {
253
395
  ]);
254
396
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
255
397
  const client = (0, executor_1.getClient)();
256
- const result = await client.uuidModule
398
+ const result = await client.enum
257
399
  .delete({
258
400
  where: {
259
401
  id: answers.id,
@@ -18,8 +18,6 @@ const fieldSchema = {
18
18
  data: 'json',
19
19
  triggers: 'string',
20
20
  functions: 'string',
21
- nodeTypeTrgmSimilarity: 'float',
22
- searchScore: 'float',
23
21
  };
24
22
  const usage = '\nfield-module <command>\n\nCommands:\n list List all fieldModule records\n get Get a fieldModule by ID\n create Create a new fieldModule\n update Update an existing fieldModule\n delete Delete a fieldModule\n\n --help, -h Show this help message\n';
25
23
  exports.default = async (argv, prompter, _options) => {
@@ -17,6 +17,7 @@ const fieldSchema = {
17
17
  description: 'string',
18
18
  smartTags: 'json',
19
19
  isRequired: 'boolean',
20
+ apiRequired: 'boolean',
20
21
  defaultValue: 'string',
21
22
  defaultValueAst: 'json',
22
23
  isHidden: 'boolean',
@@ -33,13 +34,6 @@ const fieldSchema = {
33
34
  scope: 'int',
34
35
  createdAt: 'string',
35
36
  updatedAt: 'string',
36
- nameTrgmSimilarity: 'float',
37
- labelTrgmSimilarity: 'float',
38
- descriptionTrgmSimilarity: 'float',
39
- defaultValueTrgmSimilarity: 'float',
40
- regexpTrgmSimilarity: 'float',
41
- moduleTrgmSimilarity: 'float',
42
- searchScore: 'float',
43
37
  };
44
38
  const usage = '\nfield <command>\n\nCommands:\n list List all field records\n get Get a field by ID\n create Create a new field\n update Update an existing field\n delete Delete a field\n\n --help, -h Show this help message\n';
45
39
  exports.default = async (argv, prompter, _options) => {
@@ -92,6 +86,7 @@ async function handleList(_argv, _prompter) {
92
86
  description: true,
93
87
  smartTags: true,
94
88
  isRequired: true,
89
+ apiRequired: true,
95
90
  defaultValue: true,
96
91
  defaultValueAst: true,
97
92
  isHidden: true,
@@ -144,6 +139,7 @@ async function handleGet(argv, prompter) {
144
139
  description: true,
145
140
  smartTags: true,
146
141
  isRequired: true,
142
+ apiRequired: true,
147
143
  defaultValue: true,
148
144
  defaultValueAst: true,
149
145
  isHidden: true,
@@ -223,6 +219,13 @@ async function handleCreate(argv, prompter) {
223
219
  required: false,
224
220
  skipPrompt: true,
225
221
  },
222
+ {
223
+ type: 'boolean',
224
+ name: 'apiRequired',
225
+ message: 'apiRequired',
226
+ required: false,
227
+ skipPrompt: true,
228
+ },
226
229
  {
227
230
  type: 'text',
228
231
  name: 'defaultValue',
@@ -334,6 +337,7 @@ async function handleCreate(argv, prompter) {
334
337
  description: cleanedData.description,
335
338
  smartTags: cleanedData.smartTags,
336
339
  isRequired: cleanedData.isRequired,
340
+ apiRequired: cleanedData.apiRequired,
337
341
  defaultValue: cleanedData.defaultValue,
338
342
  defaultValueAst: cleanedData.defaultValueAst,
339
343
  isHidden: cleanedData.isHidden,
@@ -358,6 +362,7 @@ async function handleCreate(argv, prompter) {
358
362
  description: true,
359
363
  smartTags: true,
360
364
  isRequired: true,
365
+ apiRequired: true,
361
366
  defaultValue: true,
362
367
  defaultValueAst: true,
363
368
  isHidden: true,
@@ -443,6 +448,13 @@ async function handleUpdate(argv, prompter) {
443
448
  required: false,
444
449
  skipPrompt: true,
445
450
  },
451
+ {
452
+ type: 'boolean',
453
+ name: 'apiRequired',
454
+ message: 'apiRequired',
455
+ required: false,
456
+ skipPrompt: true,
457
+ },
446
458
  {
447
459
  type: 'text',
448
460
  name: 'defaultValue',
@@ -557,6 +569,7 @@ async function handleUpdate(argv, prompter) {
557
569
  description: cleanedData.description,
558
570
  smartTags: cleanedData.smartTags,
559
571
  isRequired: cleanedData.isRequired,
572
+ apiRequired: cleanedData.apiRequired,
560
573
  defaultValue: cleanedData.defaultValue,
561
574
  defaultValueAst: cleanedData.defaultValueAst,
562
575
  isHidden: cleanedData.isHidden,
@@ -581,6 +594,7 @@ async function handleUpdate(argv, prompter) {
581
594
  description: true,
582
595
  smartTags: true,
583
596
  isRequired: true,
597
+ apiRequired: true,
584
598
  defaultValue: true,
585
599
  defaultValueAst: true,
586
600
  isHidden: true,
@@ -27,13 +27,6 @@ const fieldSchema = {
27
27
  tags: 'string',
28
28
  createdAt: 'string',
29
29
  updatedAt: 'string',
30
- nameTrgmSimilarity: 'float',
31
- descriptionTrgmSimilarity: 'float',
32
- typeTrgmSimilarity: 'float',
33
- deleteActionTrgmSimilarity: 'float',
34
- updateActionTrgmSimilarity: 'float',
35
- moduleTrgmSimilarity: 'float',
36
- searchScore: 'float',
37
30
  };
38
31
  const usage = '\nforeign-key-constraint <command>\n\nCommands:\n list List all foreignKeyConstraint records\n get Get a foreignKeyConstraint by ID\n create Create a new foreignKeyConstraint\n update Update an existing foreignKeyConstraint\n delete Delete a foreignKeyConstraint\n\n --help, -h Show this help message\n';
39
32
  exports.default = async (argv, prompter, _options) => {
@@ -29,17 +29,6 @@ const fieldSchema = {
29
29
  getManagersFunction: 'string',
30
30
  isManagerOfFunction: 'string',
31
31
  createdAt: 'string',
32
- chartEdgesTableNameTrgmSimilarity: 'float',
33
- hierarchySprtTableNameTrgmSimilarity: 'float',
34
- chartEdgeGrantsTableNameTrgmSimilarity: 'float',
35
- prefixTrgmSimilarity: 'float',
36
- privateSchemaNameTrgmSimilarity: 'float',
37
- sprtTableNameTrgmSimilarity: 'float',
38
- rebuildHierarchyFunctionTrgmSimilarity: 'float',
39
- getSubordinatesFunctionTrgmSimilarity: 'float',
40
- getManagersFunctionTrgmSimilarity: 'float',
41
- isManagerOfFunctionTrgmSimilarity: 'float',
42
- searchScore: 'float',
43
32
  };
44
33
  const usage = '\nhierarchy-module <command>\n\nCommands:\n list List all hierarchyModule records\n get Get a hierarchyModule by ID\n create Create a new hierarchyModule\n update Update an existing hierarchyModule\n delete Delete a hierarchyModule\n\n --help, -h Show this help message\n';
45
34
  exports.default = async (argv, prompter, _options) => {
@@ -28,10 +28,6 @@ const fieldSchema = {
28
28
  tags: 'string',
29
29
  createdAt: 'string',
30
30
  updatedAt: 'string',
31
- nameTrgmSimilarity: 'float',
32
- accessMethodTrgmSimilarity: 'float',
33
- moduleTrgmSimilarity: 'float',
34
- searchScore: 'float',
35
31
  };
36
32
  const usage = '\nindex <command>\n\nCommands:\n list List all index records\n get Get a index by ID\n create Create a new index\n update Update an existing index\n delete Delete a index\n\n --help, -h Show this help message\n';
37
33
  exports.default = async (argv, prompter, _options) => {
@@ -21,8 +21,6 @@ const fieldSchema = {
21
21
  expiresAt: 'string',
22
22
  createdAt: 'string',
23
23
  updatedAt: 'string',
24
- inviteTokenTrgmSimilarity: 'float',
25
- searchScore: 'float',
26
24
  };
27
25
  const usage = '\ninvite <command>\n\nCommands:\n list List all invite records\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\n --help, -h Show this help message\n';
28
26
  exports.default = async (argv, prompter, _options) => {
@@ -23,11 +23,6 @@ const fieldSchema = {
23
23
  prefix: 'string',
24
24
  membershipType: 'int',
25
25
  entityTableId: 'uuid',
26
- invitesTableNameTrgmSimilarity: 'float',
27
- claimedInvitesTableNameTrgmSimilarity: 'float',
28
- submitInviteCodeFunctionTrgmSimilarity: 'float',
29
- prefixTrgmSimilarity: 'float',
30
- searchScore: 'float',
31
26
  };
32
27
  const usage = '\ninvites-module <command>\n\nCommands:\n list List all invitesModule records\n get Get a invitesModule by ID\n create Create a new invitesModule\n update Update an existing invitesModule\n delete Delete a invitesModule\n\n --help, -h Show this help message\n';
33
28
  exports.default = async (argv, prompter, _options) => {
@@ -35,22 +35,6 @@ const fieldSchema = {
35
35
  membershipType: 'int',
36
36
  entityTableId: 'uuid',
37
37
  actorTableId: 'uuid',
38
- stepsTableNameTrgmSimilarity: 'float',
39
- achievementsTableNameTrgmSimilarity: 'float',
40
- levelsTableNameTrgmSimilarity: 'float',
41
- levelRequirementsTableNameTrgmSimilarity: 'float',
42
- completedStepTrgmSimilarity: 'float',
43
- incompletedStepTrgmSimilarity: 'float',
44
- tgAchievementTrgmSimilarity: 'float',
45
- tgAchievementToggleTrgmSimilarity: 'float',
46
- tgAchievementToggleBooleanTrgmSimilarity: 'float',
47
- tgAchievementBooleanTrgmSimilarity: 'float',
48
- upsertAchievementTrgmSimilarity: 'float',
49
- tgUpdateAchievementsTrgmSimilarity: 'float',
50
- stepsRequiredTrgmSimilarity: 'float',
51
- levelAchievedTrgmSimilarity: 'float',
52
- prefixTrgmSimilarity: 'float',
53
- searchScore: 'float',
54
38
  };
55
39
  const usage = '\nlevels-module <command>\n\nCommands:\n list List all levelsModule records\n get Get a levelsModule by ID\n create Create a new levelsModule\n update Update an existing levelsModule\n delete Delete a levelsModule\n\n --help, -h Show this help message\n';
56
40
  exports.default = async (argv, prompter, _options) => {
@@ -27,16 +27,6 @@ const fieldSchema = {
27
27
  membershipType: 'int',
28
28
  entityTableId: 'uuid',
29
29
  actorTableId: 'uuid',
30
- tableNameTrgmSimilarity: 'float',
31
- defaultTableNameTrgmSimilarity: 'float',
32
- limitIncrementFunctionTrgmSimilarity: 'float',
33
- limitDecrementFunctionTrgmSimilarity: 'float',
34
- limitIncrementTriggerTrgmSimilarity: 'float',
35
- limitDecrementTriggerTrgmSimilarity: 'float',
36
- limitUpdateTriggerTrgmSimilarity: 'float',
37
- limitCheckFunctionTrgmSimilarity: 'float',
38
- prefixTrgmSimilarity: 'float',
39
- searchScore: 'float',
40
30
  };
41
31
  const usage = '\nlimits-module <command>\n\nCommands:\n list List all limitsModule records\n get Get a limitsModule by ID\n create Create a new limitsModule\n update Update an existing limitsModule\n delete Delete a limitsModule\n\n --help, -h Show this help message\n';
42
32
  exports.default = async (argv, prompter, _options) => {
@@ -13,9 +13,6 @@ const fieldSchema = {
13
13
  name: 'string',
14
14
  description: 'string',
15
15
  prefix: 'string',
16
- descriptionTrgmSimilarity: 'float',
17
- prefixTrgmSimilarity: 'float',
18
- searchScore: 'float',
19
16
  };
20
17
  const usage = '\nmembership-type <command>\n\nCommands:\n list List all membershipType records\n get Get a membershipType by ID\n create Create a new membershipType\n update Update an existing membershipType\n delete Delete a membershipType\n\n --help, -h Show this help message\n';
21
18
  exports.default = async (argv, prompter, _options) => {
@@ -14,8 +14,6 @@ const fieldSchema = {
14
14
  schemaId: 'uuid',
15
15
  tableId: 'uuid',
16
16
  tableName: 'string',
17
- tableNameTrgmSimilarity: 'float',
18
- searchScore: 'float',
19
17
  };
20
18
  const usage = '\nmembership-types-module <command>\n\nCommands:\n list List all membershipTypesModule records\n get Get a membershipTypesModule by ID\n create Create a new membershipTypesModule\n update Update an existing membershipTypesModule\n delete Delete a membershipTypesModule\n\n --help, -h Show this help message\n';
21
19
  exports.default = async (argv, prompter, _options) => {
@@ -40,19 +40,6 @@ const fieldSchema = {
40
40
  entityIdsByMask: 'string',
41
41
  entityIdsByPerm: 'string',
42
42
  entityIdsFunction: 'string',
43
- membershipsTableNameTrgmSimilarity: 'float',
44
- membersTableNameTrgmSimilarity: 'float',
45
- membershipDefaultsTableNameTrgmSimilarity: 'float',
46
- grantsTableNameTrgmSimilarity: 'float',
47
- adminGrantsTableNameTrgmSimilarity: 'float',
48
- ownerGrantsTableNameTrgmSimilarity: 'float',
49
- prefixTrgmSimilarity: 'float',
50
- actorMaskCheckTrgmSimilarity: 'float',
51
- actorPermCheckTrgmSimilarity: 'float',
52
- entityIdsByMaskTrgmSimilarity: 'float',
53
- entityIdsByPermTrgmSimilarity: 'float',
54
- entityIdsFunctionTrgmSimilarity: 'float',
55
- searchScore: 'float',
56
43
  };
57
44
  const usage = '\nmemberships-module <command>\n\nCommands:\n list List all membershipsModule records\n get Get a membershipsModule by ID\n create Create a new membershipsModule\n update Update an existing membershipsModule\n delete Delete a membershipsModule\n\n --help, -h Show this help message\n';
58
45
  exports.default = async (argv, prompter, _options) => {
@@ -18,12 +18,6 @@ const fieldSchema = {
18
18
  tags: 'string',
19
19
  createdAt: 'string',
20
20
  updatedAt: 'string',
21
- nameTrgmSimilarity: 'float',
22
- slugTrgmSimilarity: 'float',
23
- categoryTrgmSimilarity: 'float',
24
- displayNameTrgmSimilarity: 'float',
25
- descriptionTrgmSimilarity: 'float',
26
- searchScore: 'float',
27
21
  };
28
22
  const usage = '\nnode-type-registry <command>\n\nCommands:\n list List all nodeTypeRegistry records\n get Get a nodeTypeRegistry by ID\n create Create a new nodeTypeRegistry\n update Update an existing nodeTypeRegistry\n delete Delete a nodeTypeRegistry\n\n --help, -h Show this help message\n';
29
23
  exports.default = async (argv, prompter, _options) => {
@@ -18,8 +18,6 @@ const fieldSchema = {
18
18
  positionTitle: 'string',
19
19
  positionLevel: 'int',
20
20
  createdAt: 'string',
21
- positionTitleTrgmSimilarity: 'float',
22
- searchScore: 'float',
23
21
  };
24
22
  const usage = '\norg-chart-edge-grant <command>\n\nCommands:\n list List all orgChartEdgeGrant records\n get Get a orgChartEdgeGrant by ID\n create Create a new orgChartEdgeGrant\n update Update an existing orgChartEdgeGrant\n delete Delete a orgChartEdgeGrant\n\n --help, -h Show this help message\n';
25
23
  exports.default = async (argv, prompter, _options) => {
@@ -149,7 +147,8 @@ async function handleCreate(argv, prompter) {
149
147
  type: 'text',
150
148
  name: 'grantorId',
151
149
  message: 'grantorId',
152
- required: true,
150
+ required: false,
151
+ skipPrompt: true,
153
152
  },
154
153
  {
155
154
  type: 'boolean',
@@ -243,6 +242,7 @@ async function handleUpdate(argv, prompter) {
243
242
  name: 'grantorId',
244
243
  message: 'grantorId',
245
244
  required: false,
245
+ skipPrompt: true,
246
246
  },
247
247
  {
248
248
  type: 'boolean',
@@ -17,8 +17,6 @@ const fieldSchema = {
17
17
  parentId: 'uuid',
18
18
  positionTitle: 'string',
19
19
  positionLevel: 'int',
20
- positionTitleTrgmSimilarity: 'float',
21
- searchScore: 'float',
22
20
  };
23
21
  const usage = '\norg-chart-edge <command>\n\nCommands:\n list List all orgChartEdge records\n get Get a orgChartEdge by ID\n create Create a new orgChartEdge\n update Update an existing orgChartEdge\n delete Delete a orgChartEdge\n\n --help, -h Show this help message\n';
24
22
  exports.default = async (argv, prompter, _options) => {
@@ -23,8 +23,6 @@ const fieldSchema = {
23
23
  createdAt: 'string',
24
24
  updatedAt: 'string',
25
25
  entityId: 'uuid',
26
- inviteTokenTrgmSimilarity: 'float',
27
- searchScore: 'float',
28
26
  };
29
27
  const usage = '\norg-invite <command>\n\nCommands:\n list List all orgInvite records\n get Get a orgInvite by ID\n create Create a new orgInvite\n update Update an existing orgInvite\n delete Delete a orgInvite\n\n --help, -h Show this help message\n';
30
28
  exports.default = async (argv, prompter, _options) => {
@@ -14,8 +14,6 @@ const fieldSchema = {
14
14
  bitnum: 'int',
15
15
  bitstr: 'string',
16
16
  description: 'string',
17
- descriptionTrgmSimilarity: 'float',
18
- searchScore: 'float',
19
17
  };
20
18
  const usage = '\norg-permission <command>\n\nCommands:\n list List all orgPermission records\n get Get a orgPermission by ID\n create Create a new orgPermission\n update Update an existing orgPermission\n delete Delete a orgPermission\n\n --help, -h Show this help message\n';
21
19
  exports.default = async (argv, prompter, _options) => {
@@ -26,14 +26,6 @@ const fieldSchema = {
26
26
  getMask: 'string',
27
27
  getByMask: 'string',
28
28
  getMaskByName: 'string',
29
- tableNameTrgmSimilarity: 'float',
30
- defaultTableNameTrgmSimilarity: 'float',
31
- prefixTrgmSimilarity: 'float',
32
- getPaddedMaskTrgmSimilarity: 'float',
33
- getMaskTrgmSimilarity: 'float',
34
- getByMaskTrgmSimilarity: 'float',
35
- getMaskByNameTrgmSimilarity: 'float',
36
- searchScore: 'float',
37
29
  };
38
30
  const usage = '\npermissions-module <command>\n\nCommands:\n list List all permissionsModule records\n get Get a permissionsModule by ID\n create Create a new permissionsModule\n update Update an existing permissionsModule\n delete Delete a permissionsModule\n\n --help, -h Show this help message\n';
39
31
  exports.default = async (argv, prompter, _options) => {