@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
@@ -15,9 +15,6 @@ const fieldSchema = {
15
15
  isPrimary: 'boolean',
16
16
  createdAt: 'string',
17
17
  updatedAt: 'string',
18
- ccTrgmSimilarity: 'float',
19
- numberTrgmSimilarity: 'float',
20
- searchScore: 'float',
21
18
  };
22
19
  const usage = '\nphone-number <command>\n\nCommands:\n list List all phoneNumber records\n get Get a phoneNumber by ID\n create Create a new phoneNumber\n update Update an existing phoneNumber\n delete Delete a phoneNumber\n\n --help, -h Show this help message\n';
23
20
  export default async (argv, prompter, _options) => {
@@ -14,8 +14,6 @@ const fieldSchema = {
14
14
  tableId: 'uuid',
15
15
  ownerTableId: 'uuid',
16
16
  tableName: 'string',
17
- tableNameTrgmSimilarity: 'float',
18
- searchScore: 'float',
19
17
  };
20
18
  const usage = '\nphone-numbers-module <command>\n\nCommands:\n list List all phoneNumbersModule records\n get Get a phoneNumbersModule by ID\n create Create a new phoneNumbersModule\n update Update an existing phoneNumbersModule\n delete Delete a phoneNumbersModule\n\n --help, -h Show this help message\n';
21
19
  export default async (argv, prompter, _options) => {
@@ -24,12 +24,6 @@ const fieldSchema = {
24
24
  tags: 'string',
25
25
  createdAt: 'string',
26
26
  updatedAt: 'string',
27
- nameTrgmSimilarity: 'float',
28
- granteeNameTrgmSimilarity: 'float',
29
- privilegeTrgmSimilarity: 'float',
30
- policyTypeTrgmSimilarity: 'float',
31
- moduleTrgmSimilarity: 'float',
32
- searchScore: 'float',
33
27
  };
34
28
  const usage = '\npolicy <command>\n\nCommands:\n list List all policy records\n get Get a policy by ID\n create Create a new policy\n update Update an existing policy\n delete Delete a policy\n\n --help, -h Show this help message\n';
35
29
  export default async (argv, prompter, _options) => {
@@ -20,10 +20,6 @@ const fieldSchema = {
20
20
  tags: 'string',
21
21
  createdAt: 'string',
22
22
  updatedAt: 'string',
23
- nameTrgmSimilarity: 'float',
24
- typeTrgmSimilarity: 'float',
25
- moduleTrgmSimilarity: 'float',
26
- searchScore: 'float',
27
23
  };
28
24
  const usage = '\nprimary-key-constraint <command>\n\nCommands:\n list List all primaryKeyConstraint records\n get Get a primaryKeyConstraint by ID\n create Create a new primaryKeyConstraint\n update Update an existing primaryKeyConstraint\n delete Delete a primaryKeyConstraint\n\n --help, -h Show this help message\n';
29
25
  export default async (argv, prompter, _options) => {
@@ -25,12 +25,6 @@ const fieldSchema = {
25
25
  permissionsTableId: 'uuid',
26
26
  membershipsTableId: 'uuid',
27
27
  prefix: 'string',
28
- tableNameTrgmSimilarity: 'float',
29
- profilePermissionsTableNameTrgmSimilarity: 'float',
30
- profileGrantsTableNameTrgmSimilarity: 'float',
31
- profileDefinitionGrantsTableNameTrgmSimilarity: 'float',
32
- prefixTrgmSimilarity: 'float',
33
- searchScore: 'float',
34
28
  };
35
29
  const usage = '\nprofiles-module <command>\n\nCommands:\n list List all profilesModule records\n get Get a profilesModule by ID\n create Create a new profilesModule\n update Update an existing profilesModule\n delete Delete a profilesModule\n\n --help, -h Show this help message\n';
36
30
  export default async (argv, prompter, _options) => {
@@ -12,8 +12,6 @@ const fieldSchema = {
12
12
  databaseId: 'uuid',
13
13
  storeId: 'uuid',
14
14
  commitId: 'uuid',
15
- nameTrgmSimilarity: 'float',
16
- searchScore: 'float',
17
15
  };
18
16
  const usage = '\nref <command>\n\nCommands:\n list List all ref records\n get Get a ref by ID\n create Create a new ref\n update Update an existing ref\n delete Delete a ref\n\n --help, -h Show this help message\n';
19
17
  export default async (argv, prompter, _options) => {
@@ -0,0 +1,8 @@
1
+ /**
2
+ * CLI command for mutation rejectDatabaseTransfer
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;
@@ -0,0 +1,34 @@
1
+ import { getClient } from '../executor';
2
+ import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
3
+ export default async (argv, prompter, _options) => {
4
+ try {
5
+ if (argv.help || argv.h) {
6
+ console.log('reject-database-transfer - rejectDatabaseTransfer\n\nUsage: reject-database-transfer [OPTIONS]\n');
7
+ process.exit(0);
8
+ }
9
+ const answers = await prompter.prompt(argv, [
10
+ {
11
+ type: 'text',
12
+ name: 'input',
13
+ message: 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.',
14
+ required: true,
15
+ },
16
+ ]);
17
+ const client = getClient();
18
+ const parsedAnswers = unflattenDotNotation(answers);
19
+ const selectFields = buildSelectFromPaths(argv.select ?? 'clientMutationId');
20
+ const result = await client.mutation
21
+ .rejectDatabaseTransfer(parsedAnswers, {
22
+ select: selectFields,
23
+ })
24
+ .execute();
25
+ console.log(JSON.stringify(result, null, 2));
26
+ }
27
+ catch (error) {
28
+ console.error('Failed: rejectDatabaseTransfer');
29
+ if (error instanceof Error) {
30
+ console.error(error.message);
31
+ }
32
+ process.exit(1);
33
+ }
34
+ };
@@ -15,12 +15,15 @@ const fieldSchema = {
15
15
  fieldName: 'string',
16
16
  deleteAction: 'string',
17
17
  isRequired: 'boolean',
18
+ apiRequired: 'boolean',
18
19
  junctionTableId: 'uuid',
19
20
  junctionTableName: 'string',
20
21
  junctionSchemaId: 'uuid',
21
22
  sourceFieldName: 'string',
22
23
  targetFieldName: 'string',
23
24
  useCompositeKey: 'boolean',
25
+ createIndex: 'boolean',
26
+ exposeInApi: 'boolean',
24
27
  nodeType: 'string',
25
28
  nodeData: 'json',
26
29
  grantRoles: 'string',
@@ -35,17 +38,6 @@ const fieldSchema = {
35
38
  outJunctionTableId: 'uuid',
36
39
  outSourceFieldId: 'uuid',
37
40
  outTargetFieldId: 'uuid',
38
- relationTypeTrgmSimilarity: 'float',
39
- fieldNameTrgmSimilarity: 'float',
40
- deleteActionTrgmSimilarity: 'float',
41
- junctionTableNameTrgmSimilarity: 'float',
42
- sourceFieldNameTrgmSimilarity: 'float',
43
- targetFieldNameTrgmSimilarity: 'float',
44
- nodeTypeTrgmSimilarity: 'float',
45
- policyTypeTrgmSimilarity: 'float',
46
- policyRoleTrgmSimilarity: 'float',
47
- policyNameTrgmSimilarity: 'float',
48
- searchScore: 'float',
49
41
  };
50
42
  const usage = '\nrelation-provision <command>\n\nCommands:\n list List all relationProvision records\n get Get a relationProvision by ID\n create Create a new relationProvision\n update Update an existing relationProvision\n delete Delete a relationProvision\n\n --help, -h Show this help message\n';
51
43
  export default async (argv, prompter, _options) => {
@@ -98,12 +90,15 @@ async function handleList(_argv, _prompter) {
98
90
  fieldName: true,
99
91
  deleteAction: true,
100
92
  isRequired: true,
93
+ apiRequired: true,
101
94
  junctionTableId: true,
102
95
  junctionTableName: true,
103
96
  junctionSchemaId: true,
104
97
  sourceFieldName: true,
105
98
  targetFieldName: true,
106
99
  useCompositeKey: true,
100
+ createIndex: true,
101
+ exposeInApi: true,
107
102
  nodeType: true,
108
103
  nodeData: true,
109
104
  grantRoles: true,
@@ -154,12 +149,15 @@ async function handleGet(argv, prompter) {
154
149
  fieldName: true,
155
150
  deleteAction: true,
156
151
  isRequired: true,
152
+ apiRequired: true,
157
153
  junctionTableId: true,
158
154
  junctionTableName: true,
159
155
  junctionSchemaId: true,
160
156
  sourceFieldName: true,
161
157
  targetFieldName: true,
162
158
  useCompositeKey: true,
159
+ createIndex: true,
160
+ exposeInApi: true,
163
161
  nodeType: true,
164
162
  nodeData: true,
165
163
  grantRoles: true,
@@ -235,6 +233,13 @@ async function handleCreate(argv, prompter) {
235
233
  required: false,
236
234
  skipPrompt: true,
237
235
  },
236
+ {
237
+ type: 'boolean',
238
+ name: 'apiRequired',
239
+ message: 'apiRequired',
240
+ required: false,
241
+ skipPrompt: true,
242
+ },
238
243
  {
239
244
  type: 'text',
240
245
  name: 'junctionTableId',
@@ -277,6 +282,20 @@ async function handleCreate(argv, prompter) {
277
282
  required: false,
278
283
  skipPrompt: true,
279
284
  },
285
+ {
286
+ type: 'boolean',
287
+ name: 'createIndex',
288
+ message: 'createIndex',
289
+ required: false,
290
+ skipPrompt: true,
291
+ },
292
+ {
293
+ type: 'boolean',
294
+ name: 'exposeInApi',
295
+ message: 'exposeInApi',
296
+ required: false,
297
+ skipPrompt: true,
298
+ },
280
299
  {
281
300
  type: 'text',
282
301
  name: 'nodeType',
@@ -389,12 +408,15 @@ async function handleCreate(argv, prompter) {
389
408
  fieldName: cleanedData.fieldName,
390
409
  deleteAction: cleanedData.deleteAction,
391
410
  isRequired: cleanedData.isRequired,
411
+ apiRequired: cleanedData.apiRequired,
392
412
  junctionTableId: cleanedData.junctionTableId,
393
413
  junctionTableName: cleanedData.junctionTableName,
394
414
  junctionSchemaId: cleanedData.junctionSchemaId,
395
415
  sourceFieldName: cleanedData.sourceFieldName,
396
416
  targetFieldName: cleanedData.targetFieldName,
397
417
  useCompositeKey: cleanedData.useCompositeKey,
418
+ createIndex: cleanedData.createIndex,
419
+ exposeInApi: cleanedData.exposeInApi,
398
420
  nodeType: cleanedData.nodeType,
399
421
  nodeData: cleanedData.nodeData,
400
422
  grantRoles: cleanedData.grantRoles,
@@ -419,12 +441,15 @@ async function handleCreate(argv, prompter) {
419
441
  fieldName: true,
420
442
  deleteAction: true,
421
443
  isRequired: true,
444
+ apiRequired: true,
422
445
  junctionTableId: true,
423
446
  junctionTableName: true,
424
447
  junctionSchemaId: true,
425
448
  sourceFieldName: true,
426
449
  targetFieldName: true,
427
450
  useCompositeKey: true,
451
+ createIndex: true,
452
+ exposeInApi: true,
428
453
  nodeType: true,
429
454
  nodeData: true,
430
455
  grantRoles: true,
@@ -506,6 +531,13 @@ async function handleUpdate(argv, prompter) {
506
531
  required: false,
507
532
  skipPrompt: true,
508
533
  },
534
+ {
535
+ type: 'boolean',
536
+ name: 'apiRequired',
537
+ message: 'apiRequired',
538
+ required: false,
539
+ skipPrompt: true,
540
+ },
509
541
  {
510
542
  type: 'text',
511
543
  name: 'junctionTableId',
@@ -548,6 +580,20 @@ async function handleUpdate(argv, prompter) {
548
580
  required: false,
549
581
  skipPrompt: true,
550
582
  },
583
+ {
584
+ type: 'boolean',
585
+ name: 'createIndex',
586
+ message: 'createIndex',
587
+ required: false,
588
+ skipPrompt: true,
589
+ },
590
+ {
591
+ type: 'boolean',
592
+ name: 'exposeInApi',
593
+ message: 'exposeInApi',
594
+ required: false,
595
+ skipPrompt: true,
596
+ },
551
597
  {
552
598
  type: 'text',
553
599
  name: 'nodeType',
@@ -663,12 +709,15 @@ async function handleUpdate(argv, prompter) {
663
709
  fieldName: cleanedData.fieldName,
664
710
  deleteAction: cleanedData.deleteAction,
665
711
  isRequired: cleanedData.isRequired,
712
+ apiRequired: cleanedData.apiRequired,
666
713
  junctionTableId: cleanedData.junctionTableId,
667
714
  junctionTableName: cleanedData.junctionTableName,
668
715
  junctionSchemaId: cleanedData.junctionSchemaId,
669
716
  sourceFieldName: cleanedData.sourceFieldName,
670
717
  targetFieldName: cleanedData.targetFieldName,
671
718
  useCompositeKey: cleanedData.useCompositeKey,
719
+ createIndex: cleanedData.createIndex,
720
+ exposeInApi: cleanedData.exposeInApi,
672
721
  nodeType: cleanedData.nodeType,
673
722
  nodeData: cleanedData.nodeData,
674
723
  grantRoles: cleanedData.grantRoles,
@@ -693,12 +742,15 @@ async function handleUpdate(argv, prompter) {
693
742
  fieldName: true,
694
743
  deleteAction: true,
695
744
  isRequired: true,
745
+ apiRequired: true,
696
746
  junctionTableId: true,
697
747
  junctionTableName: true,
698
748
  junctionSchemaId: true,
699
749
  sourceFieldName: true,
700
750
  targetFieldName: true,
701
751
  useCompositeKey: true,
752
+ createIndex: true,
753
+ exposeInApi: true,
702
754
  nodeType: true,
703
755
  nodeData: true,
704
756
  grantRoles: true,
@@ -18,11 +18,6 @@ const fieldSchema = {
18
18
  authenticateStrict: 'string',
19
19
  currentRole: 'string',
20
20
  currentRoleId: 'string',
21
- authenticateTrgmSimilarity: 'float',
22
- authenticateStrictTrgmSimilarity: 'float',
23
- currentRoleTrgmSimilarity: 'float',
24
- currentRoleIdTrgmSimilarity: 'float',
25
- searchScore: 'float',
26
21
  };
27
22
  const usage = '\nrls-module <command>\n\nCommands:\n list List all rlsModule records\n get Get a rlsModule by ID\n create Create a new rlsModule\n update Update an existing rlsModule\n delete Delete a rlsModule\n\n --help, -h Show this help message\n';
28
23
  export default async (argv, prompter, _options) => {
@@ -13,8 +13,6 @@ const fieldSchema = {
13
13
  granteeName: 'string',
14
14
  createdAt: 'string',
15
15
  updatedAt: 'string',
16
- granteeNameTrgmSimilarity: 'float',
17
- searchScore: 'float',
18
16
  };
19
17
  const usage = '\nschema-grant <command>\n\nCommands:\n list List all schemaGrant records\n get Get a schemaGrant by ID\n create Create a new schemaGrant\n update Update an existing schemaGrant\n delete Delete a schemaGrant\n\n --help, -h Show this help message\n';
20
18
  export default async (argv, prompter, _options) => {
@@ -21,12 +21,6 @@ const fieldSchema = {
21
21
  isPublic: 'boolean',
22
22
  createdAt: 'string',
23
23
  updatedAt: 'string',
24
- nameTrgmSimilarity: 'float',
25
- schemaNameTrgmSimilarity: 'float',
26
- labelTrgmSimilarity: 'float',
27
- descriptionTrgmSimilarity: 'float',
28
- moduleTrgmSimilarity: 'float',
29
- searchScore: 'float',
30
24
  };
31
25
  const usage = '\nschema <command>\n\nCommands:\n list List all schema records\n get Get a schema by ID\n create Create a new schema\n update Update an existing schema\n delete Delete a schema\n\n --help, -h Show this help message\n';
32
26
  export default async (argv, prompter, _options) => {
@@ -12,8 +12,6 @@ const fieldSchema = {
12
12
  schemaId: 'uuid',
13
13
  tableId: 'uuid',
14
14
  tableName: 'string',
15
- tableNameTrgmSimilarity: 'float',
16
- searchScore: 'float',
17
15
  };
18
16
  const usage = '\nsecrets-module <command>\n\nCommands:\n list List all secretsModule records\n get Get a secretsModule by ID\n create Create a new secretsModule\n update Update an existing secretsModule\n delete Delete a secretsModule\n\n --help, -h Show this help message\n';
19
17
  export default async (argv, prompter, _options) => {
@@ -25,12 +25,6 @@ const fieldSchema = {
25
25
  policyName: 'string',
26
26
  policyData: 'json',
27
27
  outFields: 'uuid',
28
- tableNameTrgmSimilarity: 'float',
29
- nodeTypeTrgmSimilarity: 'float',
30
- policyTypeTrgmSimilarity: 'float',
31
- policyRoleTrgmSimilarity: 'float',
32
- policyNameTrgmSimilarity: 'float',
33
- searchScore: 'float',
34
28
  };
35
29
  const usage = '\nsecure-table-provision <command>\n\nCommands:\n list List all secureTableProvision records\n get Get a secureTableProvision by ID\n create Create a new secureTableProvision\n update Update an existing secureTableProvision\n delete Delete a secureTableProvision\n\n --help, -h Show this help message\n';
36
30
  export default async (argv, prompter, _options) => {
@@ -18,10 +18,6 @@ const fieldSchema = {
18
18
  sessionsTable: 'string',
19
19
  sessionCredentialsTable: 'string',
20
20
  authSettingsTable: 'string',
21
- sessionsTableTrgmSimilarity: 'float',
22
- sessionCredentialsTableTrgmSimilarity: 'float',
23
- authSettingsTableTrgmSimilarity: 'float',
24
- searchScore: 'float',
25
21
  };
26
22
  const usage = '\nsessions-module <command>\n\nCommands:\n list List all sessionsModule records\n get Get a sessionsModule by ID\n create Create a new sessionsModule\n update Update an existing sessionsModule\n delete Delete a sessionsModule\n\n --help, -h Show this help message\n';
27
23
  export default async (argv, prompter, _options) => {
@@ -13,9 +13,6 @@ const fieldSchema = {
13
13
  title: 'string',
14
14
  description: 'string',
15
15
  ogImage: 'string',
16
- titleTrgmSimilarity: 'float',
17
- descriptionTrgmSimilarity: 'float',
18
- searchScore: 'float',
19
16
  };
20
17
  const usage = '\nsite-metadatum <command>\n\nCommands:\n list List all siteMetadatum records\n get Get a siteMetadatum by ID\n create Create a new siteMetadatum\n update Update an existing siteMetadatum\n delete Delete a siteMetadatum\n\n --help, -h Show this help message\n';
21
18
  export default async (argv, prompter, _options) => {
@@ -12,8 +12,6 @@ const fieldSchema = {
12
12
  siteId: 'uuid',
13
13
  name: 'string',
14
14
  data: 'json',
15
- nameTrgmSimilarity: 'float',
16
- searchScore: 'float',
17
15
  };
18
16
  const usage = '\nsite-module <command>\n\nCommands:\n list List all siteModule records\n get Get a siteModule by ID\n create Create a new siteModule\n update Update an existing siteModule\n delete Delete a siteModule\n\n --help, -h Show this help message\n';
19
17
  export default async (argv, prompter, _options) => {
@@ -16,10 +16,6 @@ const fieldSchema = {
16
16
  appleTouchIcon: 'string',
17
17
  logo: 'string',
18
18
  dbname: 'string',
19
- titleTrgmSimilarity: 'float',
20
- descriptionTrgmSimilarity: 'float',
21
- dbnameTrgmSimilarity: 'float',
22
- searchScore: 'float',
23
19
  };
24
20
  const usage = '\nsite <command>\n\nCommands:\n list List all site records\n get Get a site by ID\n create Create a new site\n update Update an existing site\n delete Delete a site\n\n --help, -h Show this help message\n';
25
21
  export default async (argv, prompter, _options) => {
@@ -20,13 +20,6 @@ const fieldSchema = {
20
20
  action: 'string',
21
21
  actionId: 'uuid',
22
22
  actorId: 'uuid',
23
- nameTrgmSimilarity: 'float',
24
- deployTrgmSimilarity: 'float',
25
- contentTrgmSimilarity: 'float',
26
- revertTrgmSimilarity: 'float',
27
- verifyTrgmSimilarity: 'float',
28
- actionTrgmSimilarity: 'float',
29
- searchScore: 'float',
30
23
  };
31
24
  const usage = '\nsql-migration <command>\n\nCommands:\n list List all sqlMigration records\n create Create a new sqlMigration\n\n --help, -h Show this help message\n';
32
25
  export default async (argv, prompter, _options) => {
@@ -12,8 +12,6 @@ const fieldSchema = {
12
12
  databaseId: 'uuid',
13
13
  hash: 'uuid',
14
14
  createdAt: 'string',
15
- nameTrgmSimilarity: 'float',
16
- searchScore: 'float',
17
15
  };
18
16
  const usage = '\nstore <command>\n\nCommands:\n list List all store records\n get Get a store by ID\n create Create a new store\n update Update an existing store\n delete Delete a store\n\n --help, -h Show this help message\n';
19
17
  export default async (argv, prompter, _options) => {
@@ -16,9 +16,6 @@ const fieldSchema = {
16
16
  isGrant: 'boolean',
17
17
  createdAt: 'string',
18
18
  updatedAt: 'string',
19
- privilegeTrgmSimilarity: 'float',
20
- granteeNameTrgmSimilarity: 'float',
21
- searchScore: 'float',
22
19
  };
23
20
  const usage = '\ntable-grant <command>\n\nCommands:\n list List all tableGrant records\n get Get a tableGrant by ID\n create Create a new tableGrant\n update Update an existing tableGrant\n delete Delete a tableGrant\n\n --help, -h Show this help message\n';
24
21
  export default async (argv, prompter, _options) => {
@@ -16,9 +16,6 @@ const fieldSchema = {
16
16
  tableName: 'string',
17
17
  nodeType: 'string',
18
18
  data: 'json',
19
- tableNameTrgmSimilarity: 'float',
20
- nodeTypeTrgmSimilarity: 'float',
21
- searchScore: 'float',
22
19
  };
23
20
  const usage = '\ntable-template-module <command>\n\nCommands:\n list List all tableTemplateModule records\n get Get a tableTemplateModule by ID\n create Create a new tableTemplateModule\n update Update an existing tableTemplateModule\n delete Delete a tableTemplateModule\n\n --help, -h Show this help message\n';
24
21
  export default async (argv, prompter, _options) => {
@@ -26,13 +26,6 @@ const fieldSchema = {
26
26
  inheritsId: 'uuid',
27
27
  createdAt: 'string',
28
28
  updatedAt: 'string',
29
- nameTrgmSimilarity: 'float',
30
- labelTrgmSimilarity: 'float',
31
- descriptionTrgmSimilarity: 'float',
32
- moduleTrgmSimilarity: 'float',
33
- pluralNameTrgmSimilarity: 'float',
34
- singularNameTrgmSimilarity: 'float',
35
- searchScore: 'float',
36
29
  };
37
30
  const usage = '\ntable <command>\n\nCommands:\n list List all table records\n get Get a table by ID\n create Create a new table\n update Update an existing table\n delete Delete a table\n\n --help, -h Show this help message\n';
38
31
  export default async (argv, prompter, _options) => {
@@ -13,9 +13,6 @@ const fieldSchema = {
13
13
  code: 'string',
14
14
  createdAt: 'string',
15
15
  updatedAt: 'string',
16
- nameTrgmSimilarity: 'float',
17
- codeTrgmSimilarity: 'float',
18
- searchScore: 'float',
19
16
  };
20
17
  const usage = '\ntrigger-function <command>\n\nCommands:\n list List all triggerFunction records\n get Get a triggerFunction by ID\n create Create a new triggerFunction\n update Update an existing triggerFunction\n delete Delete a triggerFunction\n\n --help, -h Show this help message\n';
21
18
  export default async (argv, prompter, _options) => {
@@ -20,11 +20,6 @@ const fieldSchema = {
20
20
  tags: 'string',
21
21
  createdAt: 'string',
22
22
  updatedAt: 'string',
23
- nameTrgmSimilarity: 'float',
24
- eventTrgmSimilarity: 'float',
25
- functionNameTrgmSimilarity: 'float',
26
- moduleTrgmSimilarity: 'float',
27
- searchScore: 'float',
28
23
  };
29
24
  const usage = '\ntrigger <command>\n\nCommands:\n list List all trigger records\n get Get a trigger by ID\n create Create a new trigger\n update Update an existing trigger\n delete Delete a trigger\n\n --help, -h Show this help message\n';
30
25
  export default async (argv, prompter, _options) => {
@@ -21,11 +21,6 @@ const fieldSchema = {
21
21
  tags: 'string',
22
22
  createdAt: 'string',
23
23
  updatedAt: 'string',
24
- nameTrgmSimilarity: 'float',
25
- descriptionTrgmSimilarity: 'float',
26
- typeTrgmSimilarity: 'float',
27
- moduleTrgmSimilarity: 'float',
28
- searchScore: 'float',
29
24
  };
30
25
  const usage = '\nunique-constraint <command>\n\nCommands:\n list List all uniqueConstraint records\n get Get a uniqueConstraint by ID\n create Create a new uniqueConstraint\n update Update an existing uniqueConstraint\n delete Delete a uniqueConstraint\n\n --help, -h Show this help message\n';
31
26
  export default async (argv, prompter, _options) => {
@@ -33,23 +33,6 @@ const fieldSchema = {
33
33
  signInOneTimeTokenFunction: 'string',
34
34
  oneTimeTokenFunction: 'string',
35
35
  extendTokenExpires: 'string',
36
- auditsTableNameTrgmSimilarity: 'float',
37
- signInFunctionTrgmSimilarity: 'float',
38
- signUpFunctionTrgmSimilarity: 'float',
39
- signOutFunctionTrgmSimilarity: 'float',
40
- setPasswordFunctionTrgmSimilarity: 'float',
41
- resetPasswordFunctionTrgmSimilarity: 'float',
42
- forgotPasswordFunctionTrgmSimilarity: 'float',
43
- sendVerificationEmailFunctionTrgmSimilarity: 'float',
44
- verifyEmailFunctionTrgmSimilarity: 'float',
45
- verifyPasswordFunctionTrgmSimilarity: 'float',
46
- checkPasswordFunctionTrgmSimilarity: 'float',
47
- sendAccountDeletionEmailFunctionTrgmSimilarity: 'float',
48
- deleteAccountFunctionTrgmSimilarity: 'float',
49
- signInOneTimeTokenFunctionTrgmSimilarity: 'float',
50
- oneTimeTokenFunctionTrgmSimilarity: 'float',
51
- extendTokenExpiresTrgmSimilarity: 'float',
52
- searchScore: 'float',
53
36
  };
54
37
  const usage = '\nuser-auth-module <command>\n\nCommands:\n list List all userAuthModule records\n get Get a userAuthModule by ID\n create Create a new userAuthModule\n update Update an existing userAuthModule\n delete Delete a userAuthModule\n\n --help, -h Show this help message\n';
55
38
  export default async (argv, prompter, _options) => {
@@ -14,9 +14,6 @@ const fieldSchema = {
14
14
  tableName: 'string',
15
15
  typeTableId: 'uuid',
16
16
  typeTableName: 'string',
17
- tableNameTrgmSimilarity: 'float',
18
- typeTableNameTrgmSimilarity: 'float',
19
- searchScore: 'float',
20
17
  };
21
18
  const usage = '\nusers-module <command>\n\nCommands:\n list List all usersModule records\n get Get a usersModule by ID\n create Create a new usersModule\n update Update an existing usersModule\n delete Delete a usersModule\n\n --help, -h Show this help message\n';
22
19
  export default async (argv, prompter, _options) => {
@@ -14,9 +14,6 @@ const fieldSchema = {
14
14
  privilege: 'string',
15
15
  withGrantOption: 'boolean',
16
16
  isGrant: 'boolean',
17
- granteeNameTrgmSimilarity: 'float',
18
- privilegeTrgmSimilarity: 'float',
19
- searchScore: 'float',
20
17
  };
21
18
  const usage = '\nview-grant <command>\n\nCommands:\n list List all viewGrant records\n get Get a viewGrant by ID\n create Create a new viewGrant\n update Update an existing viewGrant\n delete Delete a viewGrant\n\n --help, -h Show this help message\n';
22
19
  export default async (argv, prompter, _options) => {
@@ -13,10 +13,6 @@ const fieldSchema = {
13
13
  name: 'string',
14
14
  event: 'string',
15
15
  action: 'string',
16
- nameTrgmSimilarity: 'float',
17
- eventTrgmSimilarity: 'float',
18
- actionTrgmSimilarity: 'float',
19
- searchScore: 'float',
20
16
  };
21
17
  const usage = '\nview-rule <command>\n\nCommands:\n list List all viewRule records\n get Get a viewRule by ID\n create Create a new viewRule\n update Update an existing viewRule\n delete Delete a viewRule\n\n --help, -h Show this help message\n';
22
18
  export default async (argv, prompter, _options) => {
@@ -23,11 +23,6 @@ const fieldSchema = {
23
23
  module: 'string',
24
24
  scope: 'int',
25
25
  tags: 'string',
26
- nameTrgmSimilarity: 'float',
27
- viewTypeTrgmSimilarity: 'float',
28
- filterTypeTrgmSimilarity: 'float',
29
- moduleTrgmSimilarity: 'float',
30
- searchScore: 'float',
31
26
  };
32
27
  const usage = '\nview <command>\n\nCommands:\n list List all view records\n get Get a view by ID\n create Create a new view\n update Update an existing view\n delete Delete a view\n\n --help, -h Show this help message\n';
33
28
  export default async (argv, prompter, _options) => {