@constructive-sdk/cli 0.20.4 → 0.20.5

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 (323) hide show
  1. package/admin/cli/commands/{request-upload-url.d.ts → app-limit-cap.d.ts} +1 -1
  2. package/admin/cli/commands/app-limit-cap.js +272 -0
  3. package/{esm/admin/cli/commands/request-upload-url.d.ts → admin/cli/commands/app-limit-caps-default.d.ts} +1 -1
  4. package/admin/cli/commands/app-limit-caps-default.js +252 -0
  5. package/{auth/cli/commands/request-upload-url.d.ts → admin/cli/commands/app-limit-credit-code-item.d.ts} +1 -1
  6. package/admin/cli/commands/app-limit-credit-code-item.js +292 -0
  7. package/{esm/auth/cli/commands/request-upload-url.d.ts → admin/cli/commands/app-limit-credit-code.d.ts} +1 -1
  8. package/admin/cli/commands/app-limit-credit-code.js +296 -0
  9. package/admin/cli/commands/app-limit-credit-redemption.d.ts +8 -0
  10. package/admin/cli/commands/app-limit-credit-redemption.js +250 -0
  11. package/admin/cli/commands/app-limit-credit.d.ts +8 -0
  12. package/admin/cli/commands/app-limit-credit.js +316 -0
  13. package/admin/cli/commands/app-limit.js +66 -0
  14. package/admin/cli/commands/org-limit-aggregate.js +88 -0
  15. package/admin/cli/commands/org-limit-cap.d.ts +8 -0
  16. package/admin/cli/commands/org-limit-cap.js +272 -0
  17. package/admin/cli/commands/org-limit-caps-default.d.ts +8 -0
  18. package/admin/cli/commands/org-limit-caps-default.js +252 -0
  19. package/admin/cli/commands/org-limit-credit.d.ts +8 -0
  20. package/admin/cli/commands/org-limit-credit.js +338 -0
  21. package/admin/cli/commands/org-limit.js +66 -0
  22. package/admin/cli/commands.js +25 -9
  23. package/admin/cli/executor.d.ts +12 -8
  24. package/admin/orm/index.d.ts +24 -11
  25. package/admin/orm/index.js +24 -6
  26. package/admin/orm/input-types.d.ts +2108 -545
  27. package/admin/orm/input-types.js +13 -1
  28. package/admin/orm/models/appLimitCap.d.ts +56 -0
  29. package/admin/orm/models/appLimitCap.js +100 -0
  30. package/admin/orm/models/appLimitCapsDefault.d.ts +56 -0
  31. package/admin/orm/models/appLimitCapsDefault.js +100 -0
  32. package/admin/orm/models/appLimitCredit.d.ts +56 -0
  33. package/admin/orm/models/appLimitCredit.js +100 -0
  34. package/admin/orm/models/appLimitCreditCode.d.ts +56 -0
  35. package/admin/orm/models/appLimitCreditCode.js +100 -0
  36. package/admin/orm/models/appLimitCreditCodeItem.d.ts +56 -0
  37. package/admin/orm/models/appLimitCreditCodeItem.js +100 -0
  38. package/admin/orm/models/appLimitCreditRedemption.d.ts +56 -0
  39. package/admin/orm/models/appLimitCreditRedemption.js +100 -0
  40. package/admin/orm/models/index.d.ts +12 -3
  41. package/admin/orm/models/index.js +25 -7
  42. package/admin/orm/models/orgLimitCap.d.ts +56 -0
  43. package/admin/orm/models/orgLimitCap.js +100 -0
  44. package/admin/orm/models/orgLimitCapsDefault.d.ts +56 -0
  45. package/admin/orm/models/orgLimitCapsDefault.js +100 -0
  46. package/admin/orm/models/orgLimitCredit.d.ts +56 -0
  47. package/admin/orm/models/orgLimitCredit.js +100 -0
  48. package/admin/orm/mutation/index.d.ts +1 -16
  49. package/admin/orm/mutation/index.js +0 -12
  50. package/admin/orm/query-builder.js +24 -0
  51. package/auth/cli/commands.js +1 -3
  52. package/auth/cli/executor.d.ts +0 -5
  53. package/auth/orm/index.d.ts +0 -5
  54. package/auth/orm/input-types.d.ts +0 -38
  55. package/auth/orm/mutation/index.d.ts +1 -16
  56. package/auth/orm/mutation/index.js +0 -12
  57. package/auth/orm/query-builder.js +24 -0
  58. package/esm/admin/cli/commands/app-limit-cap.d.ts +8 -0
  59. package/esm/admin/cli/commands/app-limit-cap.js +270 -0
  60. package/esm/admin/cli/commands/app-limit-caps-default.d.ts +8 -0
  61. package/esm/admin/cli/commands/app-limit-caps-default.js +250 -0
  62. package/esm/admin/cli/commands/app-limit-credit-code-item.d.ts +8 -0
  63. package/esm/admin/cli/commands/app-limit-credit-code-item.js +290 -0
  64. package/esm/admin/cli/commands/app-limit-credit-code.d.ts +8 -0
  65. package/esm/admin/cli/commands/app-limit-credit-code.js +294 -0
  66. package/esm/admin/cli/commands/app-limit-credit-redemption.d.ts +8 -0
  67. package/esm/admin/cli/commands/app-limit-credit-redemption.js +248 -0
  68. package/esm/admin/cli/commands/app-limit-credit.d.ts +8 -0
  69. package/esm/admin/cli/commands/app-limit-credit.js +314 -0
  70. package/esm/admin/cli/commands/app-limit.js +66 -0
  71. package/esm/admin/cli/commands/org-limit-aggregate.js +88 -0
  72. package/esm/admin/cli/commands/org-limit-cap.d.ts +8 -0
  73. package/esm/admin/cli/commands/org-limit-cap.js +270 -0
  74. package/esm/admin/cli/commands/org-limit-caps-default.d.ts +8 -0
  75. package/esm/admin/cli/commands/org-limit-caps-default.js +250 -0
  76. package/esm/admin/cli/commands/org-limit-credit.d.ts +8 -0
  77. package/esm/admin/cli/commands/org-limit-credit.js +336 -0
  78. package/esm/admin/cli/commands/org-limit.js +66 -0
  79. package/esm/admin/cli/commands.js +25 -9
  80. package/esm/admin/cli/executor.d.ts +12 -8
  81. package/esm/admin/orm/index.d.ts +24 -11
  82. package/esm/admin/orm/index.js +24 -6
  83. package/esm/admin/orm/input-types.d.ts +2108 -545
  84. package/esm/admin/orm/input-types.js +13 -1
  85. package/esm/admin/orm/models/appLimitCap.d.ts +56 -0
  86. package/esm/admin/orm/models/appLimitCap.js +96 -0
  87. package/esm/admin/orm/models/appLimitCapsDefault.d.ts +56 -0
  88. package/esm/admin/orm/models/appLimitCapsDefault.js +96 -0
  89. package/esm/admin/orm/models/appLimitCredit.d.ts +56 -0
  90. package/esm/admin/orm/models/appLimitCredit.js +96 -0
  91. package/esm/admin/orm/models/appLimitCreditCode.d.ts +56 -0
  92. package/esm/admin/orm/models/appLimitCreditCode.js +96 -0
  93. package/esm/admin/orm/models/appLimitCreditCodeItem.d.ts +56 -0
  94. package/esm/admin/orm/models/appLimitCreditCodeItem.js +96 -0
  95. package/esm/admin/orm/models/appLimitCreditRedemption.d.ts +56 -0
  96. package/esm/admin/orm/models/appLimitCreditRedemption.js +96 -0
  97. package/esm/admin/orm/models/index.d.ts +12 -3
  98. package/esm/admin/orm/models/index.js +12 -3
  99. package/esm/admin/orm/models/orgLimitCap.d.ts +56 -0
  100. package/esm/admin/orm/models/orgLimitCap.js +96 -0
  101. package/esm/admin/orm/models/orgLimitCapsDefault.d.ts +56 -0
  102. package/esm/admin/orm/models/orgLimitCapsDefault.js +96 -0
  103. package/esm/admin/orm/models/orgLimitCredit.d.ts +56 -0
  104. package/esm/admin/orm/models/orgLimitCredit.js +96 -0
  105. package/esm/admin/orm/mutation/index.d.ts +1 -16
  106. package/esm/admin/orm/mutation/index.js +0 -12
  107. package/esm/admin/orm/query-builder.js +24 -0
  108. package/esm/auth/cli/commands.js +1 -3
  109. package/esm/auth/cli/executor.d.ts +0 -5
  110. package/esm/auth/orm/index.d.ts +0 -5
  111. package/esm/auth/orm/input-types.d.ts +0 -38
  112. package/esm/auth/orm/mutation/index.d.ts +1 -16
  113. package/esm/auth/orm/mutation/index.js +0 -12
  114. package/esm/auth/orm/query-builder.js +24 -0
  115. package/esm/objects/cli/commands.js +1 -3
  116. package/esm/objects/cli/executor.d.ts +0 -5
  117. package/esm/objects/orm/index.d.ts +0 -5
  118. package/esm/objects/orm/input-types.d.ts +0 -38
  119. package/esm/objects/orm/mutation/index.d.ts +1 -16
  120. package/esm/objects/orm/mutation/index.js +0 -12
  121. package/esm/objects/orm/query-builder.js +24 -0
  122. package/esm/public/cli/commands/api-setting.d.ts +8 -0
  123. package/esm/public/cli/commands/api-setting.js +468 -0
  124. package/esm/public/cli/commands/app-limit-cap.d.ts +8 -0
  125. package/esm/public/cli/commands/app-limit-cap.js +270 -0
  126. package/esm/public/cli/commands/app-limit-caps-default.d.ts +8 -0
  127. package/esm/public/cli/commands/app-limit-caps-default.js +250 -0
  128. package/esm/public/cli/commands/app-limit-credit-code-item.d.ts +8 -0
  129. package/esm/public/cli/commands/app-limit-credit-code-item.js +290 -0
  130. package/esm/public/cli/commands/app-limit-credit-code.d.ts +8 -0
  131. package/esm/public/cli/commands/app-limit-credit-code.js +294 -0
  132. package/esm/public/cli/commands/app-limit-credit-redemption.d.ts +8 -0
  133. package/esm/public/cli/commands/app-limit-credit-redemption.js +248 -0
  134. package/esm/public/cli/commands/app-limit-credit.d.ts +8 -0
  135. package/esm/public/cli/commands/app-limit-credit.js +314 -0
  136. package/esm/public/cli/commands/app-limit.js +66 -0
  137. package/esm/public/cli/commands/append-smart-tags.d.ts +8 -0
  138. package/esm/{admin/cli/commands/request-upload-url.js → public/cli/commands/append-smart-tags.js} +3 -3
  139. package/esm/public/cli/commands/billing-provider-module.d.ts +8 -0
  140. package/esm/public/cli/commands/billing-provider-module.js +624 -0
  141. package/esm/public/cli/commands/cors-setting.d.ts +8 -0
  142. package/esm/public/cli/commands/cors-setting.js +272 -0
  143. package/esm/public/cli/commands/database-setting.d.ts +8 -0
  144. package/esm/public/cli/commands/database-setting.js +448 -0
  145. package/esm/public/cli/commands/entity-type-provision.js +22 -0
  146. package/esm/public/cli/commands/function.d.ts +8 -0
  147. package/esm/public/cli/commands/function.js +268 -0
  148. package/esm/public/cli/commands/limits-module.js +198 -0
  149. package/esm/public/cli/commands/org-limit-aggregate.js +88 -0
  150. package/esm/public/cli/commands/org-limit-cap.d.ts +8 -0
  151. package/esm/public/cli/commands/org-limit-cap.js +270 -0
  152. package/esm/public/cli/commands/org-limit-caps-default.d.ts +8 -0
  153. package/esm/public/cli/commands/org-limit-caps-default.js +250 -0
  154. package/esm/public/cli/commands/org-limit-credit.d.ts +8 -0
  155. package/esm/public/cli/commands/org-limit-credit.js +336 -0
  156. package/esm/public/cli/commands/org-limit.js +66 -0
  157. package/esm/public/cli/commands/partition.d.ts +8 -0
  158. package/esm/public/cli/commands/partition.js +388 -0
  159. package/esm/public/cli/commands/plans-module.js +44 -0
  160. package/esm/public/cli/commands/pubkey-setting.d.ts +8 -0
  161. package/esm/public/cli/commands/pubkey-setting.js +382 -0
  162. package/esm/public/cli/commands/rls-setting.d.ts +8 -0
  163. package/esm/public/cli/commands/rls-setting.js +404 -0
  164. package/esm/public/cli/commands/storage-module.js +198 -0
  165. package/esm/public/cli/commands/webauthn-setting.d.ts +8 -0
  166. package/esm/public/cli/commands/webauthn-setting.js +580 -0
  167. package/esm/public/cli/commands.js +41 -5
  168. package/esm/public/cli/executor.d.ts +24 -6
  169. package/esm/public/orm/index.d.ts +43 -7
  170. package/esm/public/orm/index.js +38 -2
  171. package/esm/public/orm/input-types.d.ts +4601 -321
  172. package/esm/public/orm/input-types.js +21 -0
  173. package/esm/public/orm/models/apiSetting.d.ts +56 -0
  174. package/esm/public/orm/models/apiSetting.js +96 -0
  175. package/esm/public/orm/models/appLimitCap.d.ts +56 -0
  176. package/esm/public/orm/models/appLimitCap.js +96 -0
  177. package/esm/public/orm/models/appLimitCapsDefault.d.ts +56 -0
  178. package/esm/public/orm/models/appLimitCapsDefault.js +96 -0
  179. package/esm/public/orm/models/appLimitCredit.d.ts +56 -0
  180. package/esm/public/orm/models/appLimitCredit.js +96 -0
  181. package/esm/public/orm/models/appLimitCreditCode.d.ts +56 -0
  182. package/esm/public/orm/models/appLimitCreditCode.js +96 -0
  183. package/esm/public/orm/models/appLimitCreditCodeItem.d.ts +56 -0
  184. package/esm/public/orm/models/appLimitCreditCodeItem.js +96 -0
  185. package/esm/public/orm/models/appLimitCreditRedemption.d.ts +56 -0
  186. package/esm/public/orm/models/appLimitCreditRedemption.js +96 -0
  187. package/esm/public/orm/models/billingProviderModule.d.ts +56 -0
  188. package/esm/public/orm/models/billingProviderModule.js +96 -0
  189. package/esm/public/orm/models/corsSetting.d.ts +56 -0
  190. package/esm/public/orm/models/corsSetting.js +96 -0
  191. package/esm/public/orm/models/databaseSetting.d.ts +56 -0
  192. package/esm/public/orm/models/databaseSetting.js +96 -0
  193. package/esm/public/orm/models/function.d.ts +56 -0
  194. package/esm/public/orm/models/function.js +96 -0
  195. package/esm/public/orm/models/index.d.ts +19 -1
  196. package/esm/public/orm/models/index.js +19 -1
  197. package/esm/public/orm/models/orgLimitCap.d.ts +56 -0
  198. package/esm/public/orm/models/orgLimitCap.js +96 -0
  199. package/esm/public/orm/models/orgLimitCapsDefault.d.ts +56 -0
  200. package/esm/public/orm/models/orgLimitCapsDefault.js +96 -0
  201. package/esm/public/orm/models/orgLimitCredit.d.ts +56 -0
  202. package/esm/public/orm/models/orgLimitCredit.js +96 -0
  203. package/esm/public/orm/models/partition.d.ts +56 -0
  204. package/esm/public/orm/models/partition.js +96 -0
  205. package/esm/public/orm/models/pubkeySetting.d.ts +56 -0
  206. package/esm/public/orm/models/pubkeySetting.js +96 -0
  207. package/esm/public/orm/models/rlsSetting.d.ts +56 -0
  208. package/esm/public/orm/models/rlsSetting.js +96 -0
  209. package/esm/public/orm/models/webauthnSetting.d.ts +56 -0
  210. package/esm/public/orm/models/webauthnSetting.js +96 -0
  211. package/esm/public/orm/mutation/index.d.ts +9 -16
  212. package/esm/public/orm/mutation/index.js +12 -12
  213. package/esm/public/orm/query-builder.js +24 -0
  214. package/objects/cli/commands.js +1 -3
  215. package/objects/cli/executor.d.ts +0 -5
  216. package/objects/orm/index.d.ts +0 -5
  217. package/objects/orm/input-types.d.ts +0 -38
  218. package/objects/orm/mutation/index.d.ts +1 -16
  219. package/objects/orm/mutation/index.js +0 -12
  220. package/objects/orm/query-builder.js +24 -0
  221. package/package.json +4 -4
  222. package/public/cli/commands/api-setting.d.ts +8 -0
  223. package/public/cli/commands/api-setting.js +470 -0
  224. package/public/cli/commands/app-limit-cap.d.ts +8 -0
  225. package/public/cli/commands/app-limit-cap.js +272 -0
  226. package/public/cli/commands/app-limit-caps-default.d.ts +8 -0
  227. package/public/cli/commands/app-limit-caps-default.js +252 -0
  228. package/public/cli/commands/app-limit-credit-code-item.d.ts +8 -0
  229. package/public/cli/commands/app-limit-credit-code-item.js +292 -0
  230. package/public/cli/commands/app-limit-credit-code.d.ts +8 -0
  231. package/public/cli/commands/app-limit-credit-code.js +296 -0
  232. package/public/cli/commands/app-limit-credit-redemption.d.ts +8 -0
  233. package/public/cli/commands/app-limit-credit-redemption.js +250 -0
  234. package/public/cli/commands/app-limit-credit.d.ts +8 -0
  235. package/public/cli/commands/app-limit-credit.js +316 -0
  236. package/public/cli/commands/app-limit.js +66 -0
  237. package/public/cli/commands/append-smart-tags.d.ts +8 -0
  238. package/{objects/cli/commands/request-upload-url.js → public/cli/commands/append-smart-tags.js} +3 -3
  239. package/public/cli/commands/billing-provider-module.d.ts +8 -0
  240. package/public/cli/commands/billing-provider-module.js +626 -0
  241. package/public/cli/commands/cors-setting.d.ts +8 -0
  242. package/public/cli/commands/cors-setting.js +274 -0
  243. package/public/cli/commands/database-setting.d.ts +8 -0
  244. package/public/cli/commands/database-setting.js +450 -0
  245. package/public/cli/commands/entity-type-provision.js +22 -0
  246. package/public/cli/commands/function.d.ts +8 -0
  247. package/public/cli/commands/function.js +270 -0
  248. package/public/cli/commands/limits-module.js +198 -0
  249. package/public/cli/commands/org-limit-aggregate.js +88 -0
  250. package/public/cli/commands/org-limit-cap.d.ts +8 -0
  251. package/public/cli/commands/org-limit-cap.js +272 -0
  252. package/public/cli/commands/org-limit-caps-default.d.ts +8 -0
  253. package/public/cli/commands/org-limit-caps-default.js +252 -0
  254. package/public/cli/commands/org-limit-credit.d.ts +8 -0
  255. package/public/cli/commands/org-limit-credit.js +338 -0
  256. package/public/cli/commands/org-limit.js +66 -0
  257. package/public/cli/commands/partition.d.ts +8 -0
  258. package/public/cli/commands/partition.js +390 -0
  259. package/public/cli/commands/plans-module.js +44 -0
  260. package/public/cli/commands/pubkey-setting.d.ts +8 -0
  261. package/public/cli/commands/pubkey-setting.js +384 -0
  262. package/public/cli/commands/rls-setting.d.ts +8 -0
  263. package/public/cli/commands/rls-setting.js +406 -0
  264. package/public/cli/commands/storage-module.js +198 -0
  265. package/public/cli/commands/webauthn-setting.d.ts +8 -0
  266. package/public/cli/commands/webauthn-setting.js +582 -0
  267. package/public/cli/commands.js +41 -5
  268. package/public/cli/executor.d.ts +24 -6
  269. package/public/orm/index.d.ts +43 -7
  270. package/public/orm/index.js +38 -2
  271. package/public/orm/input-types.d.ts +4601 -321
  272. package/public/orm/input-types.js +21 -0
  273. package/public/orm/models/apiSetting.d.ts +56 -0
  274. package/public/orm/models/apiSetting.js +100 -0
  275. package/public/orm/models/appLimitCap.d.ts +56 -0
  276. package/public/orm/models/appLimitCap.js +100 -0
  277. package/public/orm/models/appLimitCapsDefault.d.ts +56 -0
  278. package/public/orm/models/appLimitCapsDefault.js +100 -0
  279. package/public/orm/models/appLimitCredit.d.ts +56 -0
  280. package/public/orm/models/appLimitCredit.js +100 -0
  281. package/public/orm/models/appLimitCreditCode.d.ts +56 -0
  282. package/public/orm/models/appLimitCreditCode.js +100 -0
  283. package/public/orm/models/appLimitCreditCodeItem.d.ts +56 -0
  284. package/public/orm/models/appLimitCreditCodeItem.js +100 -0
  285. package/public/orm/models/appLimitCreditRedemption.d.ts +56 -0
  286. package/public/orm/models/appLimitCreditRedemption.js +100 -0
  287. package/public/orm/models/billingProviderModule.d.ts +56 -0
  288. package/public/orm/models/billingProviderModule.js +100 -0
  289. package/public/orm/models/corsSetting.d.ts +56 -0
  290. package/public/orm/models/corsSetting.js +100 -0
  291. package/public/orm/models/databaseSetting.d.ts +56 -0
  292. package/public/orm/models/databaseSetting.js +100 -0
  293. package/public/orm/models/function.d.ts +56 -0
  294. package/public/orm/models/function.js +100 -0
  295. package/public/orm/models/index.d.ts +19 -1
  296. package/public/orm/models/index.js +41 -5
  297. package/public/orm/models/orgLimitCap.d.ts +56 -0
  298. package/public/orm/models/orgLimitCap.js +100 -0
  299. package/public/orm/models/orgLimitCapsDefault.d.ts +56 -0
  300. package/public/orm/models/orgLimitCapsDefault.js +100 -0
  301. package/public/orm/models/orgLimitCredit.d.ts +56 -0
  302. package/public/orm/models/orgLimitCredit.js +100 -0
  303. package/public/orm/models/partition.d.ts +56 -0
  304. package/public/orm/models/partition.js +100 -0
  305. package/public/orm/models/pubkeySetting.d.ts +56 -0
  306. package/public/orm/models/pubkeySetting.js +100 -0
  307. package/public/orm/models/rlsSetting.d.ts +56 -0
  308. package/public/orm/models/rlsSetting.js +100 -0
  309. package/public/orm/models/webauthnSetting.d.ts +56 -0
  310. package/public/orm/models/webauthnSetting.js +100 -0
  311. package/public/orm/mutation/index.d.ts +9 -16
  312. package/public/orm/mutation/index.js +12 -12
  313. package/public/orm/query-builder.js +24 -0
  314. package/admin/cli/commands/request-upload-url.js +0 -36
  315. package/auth/cli/commands/request-upload-url.js +0 -36
  316. package/esm/auth/cli/commands/request-upload-url.js +0 -34
  317. package/esm/objects/cli/commands/request-upload-url.d.ts +0 -8
  318. package/esm/objects/cli/commands/request-upload-url.js +0 -34
  319. package/esm/public/cli/commands/request-upload-url.d.ts +0 -8
  320. package/esm/public/cli/commands/request-upload-url.js +0 -34
  321. package/objects/cli/commands/request-upload-url.d.ts +0 -8
  322. package/public/cli/commands/request-upload-url.d.ts +0 -8
  323. package/public/cli/commands/request-upload-url.js +0 -36
@@ -0,0 +1,448 @@
1
+ /**
2
+ * CLI commands for DatabaseSetting
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
+ id: 'uuid',
11
+ databaseId: 'uuid',
12
+ enableAggregates: 'boolean',
13
+ enablePostgis: 'boolean',
14
+ enableSearch: 'boolean',
15
+ enableDirectUploads: 'boolean',
16
+ enablePresignedUploads: 'boolean',
17
+ enableManyToMany: 'boolean',
18
+ enableConnectionFilter: 'boolean',
19
+ enableLtree: 'boolean',
20
+ enableLlm: 'boolean',
21
+ options: 'json',
22
+ };
23
+ const usage = '\ndatabase-setting <command>\n\nCommands:\n list List databaseSetting records\n find-first Find first matching databaseSetting record\n get Get a databaseSetting by ID\n create Create a new databaseSetting\n update Update an existing databaseSetting\n delete Delete a databaseSetting\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';
24
+ export default async (argv, prompter, _options) => {
25
+ if (argv.help || argv.h) {
26
+ console.log(usage);
27
+ process.exit(0);
28
+ }
29
+ const { first: subcommand, newArgv } = extractFirst(argv);
30
+ if (!subcommand) {
31
+ const answer = await prompter.prompt(argv, [
32
+ {
33
+ type: 'autocomplete',
34
+ name: 'subcommand',
35
+ message: 'What do you want to do?',
36
+ options: ['list', 'find-first', 'get', 'create', 'update', 'delete'],
37
+ },
38
+ ]);
39
+ return handleTableSubcommand(answer.subcommand, newArgv, prompter);
40
+ }
41
+ return handleTableSubcommand(subcommand, newArgv, prompter);
42
+ };
43
+ async function handleTableSubcommand(subcommand, argv, prompter) {
44
+ switch (subcommand) {
45
+ case 'list':
46
+ return handleList(argv, prompter);
47
+ case 'find-first':
48
+ return handleFindFirst(argv, prompter);
49
+ case 'get':
50
+ return handleGet(argv, prompter);
51
+ case 'create':
52
+ return handleCreate(argv, prompter);
53
+ case 'update':
54
+ return handleUpdate(argv, prompter);
55
+ case 'delete':
56
+ return handleDelete(argv, prompter);
57
+ default:
58
+ console.log(usage);
59
+ process.exit(1);
60
+ }
61
+ }
62
+ async function handleList(argv, _prompter) {
63
+ try {
64
+ const defaultSelect = {
65
+ id: true,
66
+ databaseId: true,
67
+ enableAggregates: true,
68
+ enablePostgis: true,
69
+ enableSearch: true,
70
+ enableDirectUploads: true,
71
+ enablePresignedUploads: true,
72
+ enableManyToMany: true,
73
+ enableConnectionFilter: true,
74
+ enableLtree: true,
75
+ enableLlm: true,
76
+ options: true,
77
+ };
78
+ const findManyArgs = parseFindManyArgs(argv, defaultSelect);
79
+ const client = getClient();
80
+ const result = await client.databaseSetting.findMany(findManyArgs).execute();
81
+ console.log(JSON.stringify(result, null, 2));
82
+ }
83
+ catch (error) {
84
+ console.error('Failed to list records.');
85
+ if (error instanceof Error) {
86
+ console.error(error.message);
87
+ }
88
+ process.exit(1);
89
+ }
90
+ }
91
+ async function handleFindFirst(argv, _prompter) {
92
+ try {
93
+ const defaultSelect = {
94
+ id: true,
95
+ databaseId: true,
96
+ enableAggregates: true,
97
+ enablePostgis: true,
98
+ enableSearch: true,
99
+ enableDirectUploads: true,
100
+ enablePresignedUploads: true,
101
+ enableManyToMany: true,
102
+ enableConnectionFilter: true,
103
+ enableLtree: true,
104
+ enableLlm: true,
105
+ options: true,
106
+ };
107
+ const findFirstArgs = parseFindFirstArgs(argv, defaultSelect);
108
+ const client = getClient();
109
+ const result = await client.databaseSetting.findFirst(findFirstArgs).execute();
110
+ console.log(JSON.stringify(result, null, 2));
111
+ }
112
+ catch (error) {
113
+ console.error('Failed to find record.');
114
+ if (error instanceof Error) {
115
+ console.error(error.message);
116
+ }
117
+ process.exit(1);
118
+ }
119
+ }
120
+ async function handleGet(argv, prompter) {
121
+ try {
122
+ const answers = await prompter.prompt(argv, [
123
+ {
124
+ type: 'text',
125
+ name: 'id',
126
+ message: 'id',
127
+ required: true,
128
+ },
129
+ ]);
130
+ const client = getClient();
131
+ const result = await client.databaseSetting
132
+ .findOne({
133
+ id: answers.id,
134
+ select: {
135
+ id: true,
136
+ databaseId: true,
137
+ enableAggregates: true,
138
+ enablePostgis: true,
139
+ enableSearch: true,
140
+ enableDirectUploads: true,
141
+ enablePresignedUploads: true,
142
+ enableManyToMany: true,
143
+ enableConnectionFilter: true,
144
+ enableLtree: true,
145
+ enableLlm: true,
146
+ options: true,
147
+ },
148
+ })
149
+ .execute();
150
+ console.log(JSON.stringify(result, null, 2));
151
+ }
152
+ catch (error) {
153
+ console.error('Record not found.');
154
+ if (error instanceof Error) {
155
+ console.error(error.message);
156
+ }
157
+ process.exit(1);
158
+ }
159
+ }
160
+ async function handleCreate(argv, prompter) {
161
+ try {
162
+ const rawAnswers = await prompter.prompt(argv, [
163
+ {
164
+ type: 'text',
165
+ name: 'databaseId',
166
+ message: 'databaseId',
167
+ required: true,
168
+ },
169
+ {
170
+ type: 'boolean',
171
+ name: 'enableAggregates',
172
+ message: 'enableAggregates',
173
+ required: false,
174
+ skipPrompt: true,
175
+ },
176
+ {
177
+ type: 'boolean',
178
+ name: 'enablePostgis',
179
+ message: 'enablePostgis',
180
+ required: false,
181
+ skipPrompt: true,
182
+ },
183
+ {
184
+ type: 'boolean',
185
+ name: 'enableSearch',
186
+ message: 'enableSearch',
187
+ required: false,
188
+ skipPrompt: true,
189
+ },
190
+ {
191
+ type: 'boolean',
192
+ name: 'enableDirectUploads',
193
+ message: 'enableDirectUploads',
194
+ required: false,
195
+ skipPrompt: true,
196
+ },
197
+ {
198
+ type: 'boolean',
199
+ name: 'enablePresignedUploads',
200
+ message: 'enablePresignedUploads',
201
+ required: false,
202
+ skipPrompt: true,
203
+ },
204
+ {
205
+ type: 'boolean',
206
+ name: 'enableManyToMany',
207
+ message: 'enableManyToMany',
208
+ required: false,
209
+ skipPrompt: true,
210
+ },
211
+ {
212
+ type: 'boolean',
213
+ name: 'enableConnectionFilter',
214
+ message: 'enableConnectionFilter',
215
+ required: false,
216
+ skipPrompt: true,
217
+ },
218
+ {
219
+ type: 'boolean',
220
+ name: 'enableLtree',
221
+ message: 'enableLtree',
222
+ required: false,
223
+ skipPrompt: true,
224
+ },
225
+ {
226
+ type: 'boolean',
227
+ name: 'enableLlm',
228
+ message: 'enableLlm',
229
+ required: false,
230
+ skipPrompt: true,
231
+ },
232
+ {
233
+ type: 'json',
234
+ name: 'options',
235
+ message: 'options',
236
+ required: false,
237
+ skipPrompt: true,
238
+ },
239
+ ]);
240
+ const answers = coerceAnswers(rawAnswers, fieldSchema);
241
+ const cleanedData = stripUndefined(answers, fieldSchema);
242
+ const client = getClient();
243
+ const result = await client.databaseSetting
244
+ .create({
245
+ data: {
246
+ databaseId: cleanedData.databaseId,
247
+ enableAggregates: cleanedData.enableAggregates,
248
+ enablePostgis: cleanedData.enablePostgis,
249
+ enableSearch: cleanedData.enableSearch,
250
+ enableDirectUploads: cleanedData.enableDirectUploads,
251
+ enablePresignedUploads: cleanedData.enablePresignedUploads,
252
+ enableManyToMany: cleanedData.enableManyToMany,
253
+ enableConnectionFilter: cleanedData.enableConnectionFilter,
254
+ enableLtree: cleanedData.enableLtree,
255
+ enableLlm: cleanedData.enableLlm,
256
+ options: cleanedData.options,
257
+ },
258
+ select: {
259
+ id: true,
260
+ databaseId: true,
261
+ enableAggregates: true,
262
+ enablePostgis: true,
263
+ enableSearch: true,
264
+ enableDirectUploads: true,
265
+ enablePresignedUploads: true,
266
+ enableManyToMany: true,
267
+ enableConnectionFilter: true,
268
+ enableLtree: true,
269
+ enableLlm: true,
270
+ options: true,
271
+ },
272
+ })
273
+ .execute();
274
+ console.log(JSON.stringify(result, null, 2));
275
+ }
276
+ catch (error) {
277
+ console.error('Failed to create record.');
278
+ if (error instanceof Error) {
279
+ console.error(error.message);
280
+ }
281
+ process.exit(1);
282
+ }
283
+ }
284
+ async function handleUpdate(argv, prompter) {
285
+ try {
286
+ const rawAnswers = await prompter.prompt(argv, [
287
+ {
288
+ type: 'text',
289
+ name: 'id',
290
+ message: 'id',
291
+ required: true,
292
+ },
293
+ {
294
+ type: 'text',
295
+ name: 'databaseId',
296
+ message: 'databaseId',
297
+ required: false,
298
+ },
299
+ {
300
+ type: 'boolean',
301
+ name: 'enableAggregates',
302
+ message: 'enableAggregates',
303
+ required: false,
304
+ skipPrompt: true,
305
+ },
306
+ {
307
+ type: 'boolean',
308
+ name: 'enablePostgis',
309
+ message: 'enablePostgis',
310
+ required: false,
311
+ skipPrompt: true,
312
+ },
313
+ {
314
+ type: 'boolean',
315
+ name: 'enableSearch',
316
+ message: 'enableSearch',
317
+ required: false,
318
+ skipPrompt: true,
319
+ },
320
+ {
321
+ type: 'boolean',
322
+ name: 'enableDirectUploads',
323
+ message: 'enableDirectUploads',
324
+ required: false,
325
+ skipPrompt: true,
326
+ },
327
+ {
328
+ type: 'boolean',
329
+ name: 'enablePresignedUploads',
330
+ message: 'enablePresignedUploads',
331
+ required: false,
332
+ skipPrompt: true,
333
+ },
334
+ {
335
+ type: 'boolean',
336
+ name: 'enableManyToMany',
337
+ message: 'enableManyToMany',
338
+ required: false,
339
+ skipPrompt: true,
340
+ },
341
+ {
342
+ type: 'boolean',
343
+ name: 'enableConnectionFilter',
344
+ message: 'enableConnectionFilter',
345
+ required: false,
346
+ skipPrompt: true,
347
+ },
348
+ {
349
+ type: 'boolean',
350
+ name: 'enableLtree',
351
+ message: 'enableLtree',
352
+ required: false,
353
+ skipPrompt: true,
354
+ },
355
+ {
356
+ type: 'boolean',
357
+ name: 'enableLlm',
358
+ message: 'enableLlm',
359
+ required: false,
360
+ skipPrompt: true,
361
+ },
362
+ {
363
+ type: 'json',
364
+ name: 'options',
365
+ message: 'options',
366
+ required: false,
367
+ skipPrompt: true,
368
+ },
369
+ ]);
370
+ const answers = coerceAnswers(rawAnswers, fieldSchema);
371
+ const cleanedData = stripUndefined(answers, fieldSchema);
372
+ const client = getClient();
373
+ const result = await client.databaseSetting
374
+ .update({
375
+ where: {
376
+ id: answers.id,
377
+ },
378
+ data: {
379
+ databaseId: cleanedData.databaseId,
380
+ enableAggregates: cleanedData.enableAggregates,
381
+ enablePostgis: cleanedData.enablePostgis,
382
+ enableSearch: cleanedData.enableSearch,
383
+ enableDirectUploads: cleanedData.enableDirectUploads,
384
+ enablePresignedUploads: cleanedData.enablePresignedUploads,
385
+ enableManyToMany: cleanedData.enableManyToMany,
386
+ enableConnectionFilter: cleanedData.enableConnectionFilter,
387
+ enableLtree: cleanedData.enableLtree,
388
+ enableLlm: cleanedData.enableLlm,
389
+ options: cleanedData.options,
390
+ },
391
+ select: {
392
+ id: true,
393
+ databaseId: true,
394
+ enableAggregates: true,
395
+ enablePostgis: true,
396
+ enableSearch: true,
397
+ enableDirectUploads: true,
398
+ enablePresignedUploads: true,
399
+ enableManyToMany: true,
400
+ enableConnectionFilter: true,
401
+ enableLtree: true,
402
+ enableLlm: true,
403
+ options: true,
404
+ },
405
+ })
406
+ .execute();
407
+ console.log(JSON.stringify(result, null, 2));
408
+ }
409
+ catch (error) {
410
+ console.error('Failed to update record.');
411
+ if (error instanceof Error) {
412
+ console.error(error.message);
413
+ }
414
+ process.exit(1);
415
+ }
416
+ }
417
+ async function handleDelete(argv, prompter) {
418
+ try {
419
+ const rawAnswers = await prompter.prompt(argv, [
420
+ {
421
+ type: 'text',
422
+ name: 'id',
423
+ message: 'id',
424
+ required: true,
425
+ },
426
+ ]);
427
+ const answers = coerceAnswers(rawAnswers, fieldSchema);
428
+ const client = getClient();
429
+ const result = await client.databaseSetting
430
+ .delete({
431
+ where: {
432
+ id: answers.id,
433
+ },
434
+ select: {
435
+ id: true,
436
+ },
437
+ })
438
+ .execute();
439
+ console.log(JSON.stringify(result, null, 2));
440
+ }
441
+ catch (error) {
442
+ console.error('Failed to delete record.');
443
+ if (error instanceof Error) {
444
+ console.error(error.message);
445
+ }
446
+ process.exit(1);
447
+ }
448
+ }
@@ -30,6 +30,7 @@ const fieldSchema = {
30
30
  outStorageModuleId: 'uuid',
31
31
  outBucketsTableId: 'uuid',
32
32
  outFilesTableId: 'uuid',
33
+ outPathSharesTableId: 'uuid',
33
34
  outInvitesModuleId: 'uuid',
34
35
  };
35
36
  const usage = '\nentity-type-provision <command>\n\nCommands:\n list List entityTypeProvision records\n find-first Find first matching entityTypeProvision record\n get Get a entityTypeProvision by ID\n create Create a new entityTypeProvision\n update Update an existing entityTypeProvision\n delete Delete a entityTypeProvision\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';
@@ -97,6 +98,7 @@ async function handleList(argv, _prompter) {
97
98
  outStorageModuleId: true,
98
99
  outBucketsTableId: true,
99
100
  outFilesTableId: true,
101
+ outPathSharesTableId: true,
100
102
  outInvitesModuleId: true,
101
103
  };
102
104
  const findManyArgs = parseFindManyArgs(argv, defaultSelect);
@@ -138,6 +140,7 @@ async function handleFindFirst(argv, _prompter) {
138
140
  outStorageModuleId: true,
139
141
  outBucketsTableId: true,
140
142
  outFilesTableId: true,
143
+ outPathSharesTableId: true,
141
144
  outInvitesModuleId: true,
142
145
  };
143
146
  const findFirstArgs = parseFindFirstArgs(argv, defaultSelect);
@@ -191,6 +194,7 @@ async function handleGet(argv, prompter) {
191
194
  outStorageModuleId: true,
192
195
  outBucketsTableId: true,
193
196
  outFilesTableId: true,
197
+ outPathSharesTableId: true,
194
198
  outInvitesModuleId: true,
195
199
  },
196
200
  })
@@ -359,6 +363,13 @@ async function handleCreate(argv, prompter) {
359
363
  required: false,
360
364
  skipPrompt: true,
361
365
  },
366
+ {
367
+ type: 'text',
368
+ name: 'outPathSharesTableId',
369
+ message: 'outPathSharesTableId',
370
+ required: false,
371
+ skipPrompt: true,
372
+ },
362
373
  {
363
374
  type: 'text',
364
375
  name: 'outInvitesModuleId',
@@ -395,6 +406,7 @@ async function handleCreate(argv, prompter) {
395
406
  outStorageModuleId: cleanedData.outStorageModuleId,
396
407
  outBucketsTableId: cleanedData.outBucketsTableId,
397
408
  outFilesTableId: cleanedData.outFilesTableId,
409
+ outPathSharesTableId: cleanedData.outPathSharesTableId,
398
410
  outInvitesModuleId: cleanedData.outInvitesModuleId,
399
411
  },
400
412
  select: {
@@ -421,6 +433,7 @@ async function handleCreate(argv, prompter) {
421
433
  outStorageModuleId: true,
422
434
  outBucketsTableId: true,
423
435
  outFilesTableId: true,
436
+ outPathSharesTableId: true,
424
437
  outInvitesModuleId: true,
425
438
  },
426
439
  })
@@ -595,6 +608,13 @@ async function handleUpdate(argv, prompter) {
595
608
  required: false,
596
609
  skipPrompt: true,
597
610
  },
611
+ {
612
+ type: 'text',
613
+ name: 'outPathSharesTableId',
614
+ message: 'outPathSharesTableId',
615
+ required: false,
616
+ skipPrompt: true,
617
+ },
598
618
  {
599
619
  type: 'text',
600
620
  name: 'outInvitesModuleId',
@@ -634,6 +654,7 @@ async function handleUpdate(argv, prompter) {
634
654
  outStorageModuleId: cleanedData.outStorageModuleId,
635
655
  outBucketsTableId: cleanedData.outBucketsTableId,
636
656
  outFilesTableId: cleanedData.outFilesTableId,
657
+ outPathSharesTableId: cleanedData.outPathSharesTableId,
637
658
  outInvitesModuleId: cleanedData.outInvitesModuleId,
638
659
  },
639
660
  select: {
@@ -660,6 +681,7 @@ async function handleUpdate(argv, prompter) {
660
681
  outStorageModuleId: true,
661
682
  outBucketsTableId: true,
662
683
  outFilesTableId: true,
684
+ outPathSharesTableId: true,
663
685
  outInvitesModuleId: true,
664
686
  },
665
687
  })
@@ -0,0 +1,8 @@
1
+ /**
2
+ * CLI commands for Function
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;