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