@constructive-sdk/cli 0.20.3 → 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
@@ -6,7 +6,7 @@
6
6
  import { OrmClient } from '../client';
7
7
  import { QueryBuilder } from '../query-builder';
8
8
  import type { InferSelectResult, StrictSelect } from '../select-types';
9
- import type { FreezeObjectsInput, InitEmptyRepoInput, RemoveNodeAtPathInput, SetDataAtPathInput, SetPropsAndCommitInput, InsertNodeAtPathInput, UpdateNodeAtPathInput, SetAndCommitInput, RequestUploadUrlInput, ProvisionBucketInput, FreezeObjectsPayload, InitEmptyRepoPayload, RemoveNodeAtPathPayload, SetDataAtPathPayload, SetPropsAndCommitPayload, InsertNodeAtPathPayload, UpdateNodeAtPathPayload, SetAndCommitPayload, RequestUploadUrlPayload, ProvisionBucketPayload, FreezeObjectsPayloadSelect, InitEmptyRepoPayloadSelect, RemoveNodeAtPathPayloadSelect, SetDataAtPathPayloadSelect, SetPropsAndCommitPayloadSelect, InsertNodeAtPathPayloadSelect, UpdateNodeAtPathPayloadSelect, SetAndCommitPayloadSelect, RequestUploadUrlPayloadSelect, ProvisionBucketPayloadSelect } from '../input-types';
9
+ import type { FreezeObjectsInput, InitEmptyRepoInput, RemoveNodeAtPathInput, SetDataAtPathInput, SetPropsAndCommitInput, InsertNodeAtPathInput, UpdateNodeAtPathInput, SetAndCommitInput, ProvisionBucketInput, FreezeObjectsPayload, InitEmptyRepoPayload, RemoveNodeAtPathPayload, SetDataAtPathPayload, SetPropsAndCommitPayload, InsertNodeAtPathPayload, UpdateNodeAtPathPayload, SetAndCommitPayload, ProvisionBucketPayload, FreezeObjectsPayloadSelect, InitEmptyRepoPayloadSelect, RemoveNodeAtPathPayloadSelect, SetDataAtPathPayloadSelect, SetPropsAndCommitPayloadSelect, InsertNodeAtPathPayloadSelect, UpdateNodeAtPathPayloadSelect, SetAndCommitPayloadSelect, ProvisionBucketPayloadSelect } from '../input-types';
10
10
  export interface FreezeObjectsVariables {
11
11
  input: FreezeObjectsInput;
12
12
  }
@@ -31,16 +31,6 @@ export interface UpdateNodeAtPathVariables {
31
31
  export interface SetAndCommitVariables {
32
32
  input: SetAndCommitInput;
33
33
  }
34
- /**
35
- * Variables for requestUploadUrl
36
- * Request a presigned URL for uploading a file directly to S3.
37
- Client computes SHA-256 of the file content and provides it here.
38
- If a file with the same hash already exists (dedup), returns the
39
- existing file ID and deduplicated=true with no uploadUrl.
40
- */
41
- export interface RequestUploadUrlVariables {
42
- input: RequestUploadUrlInput;
43
- }
44
34
  /**
45
35
  * Variables for provisionBucket
46
36
  * Provision an S3 bucket for a logical bucket in the database.
@@ -92,11 +82,6 @@ export declare function createMutationOperations(client: OrmClient): {
92
82
  } & StrictSelect<S, SetAndCommitPayloadSelect>) => QueryBuilder<{
93
83
  setAndCommit: InferSelectResult<SetAndCommitPayload, S> | null;
94
84
  }>;
95
- requestUploadUrl: <S extends RequestUploadUrlPayloadSelect>(args: RequestUploadUrlVariables, options: {
96
- select: S;
97
- } & StrictSelect<S, RequestUploadUrlPayloadSelect>) => QueryBuilder<{
98
- requestUploadUrl: InferSelectResult<RequestUploadUrlPayload, S> | null;
99
- }>;
100
85
  provisionBucket: <S extends ProvisionBucketPayloadSelect>(args: ProvisionBucketVariables, options: {
101
86
  select: S;
102
87
  } & StrictSelect<S, ProvisionBucketPayloadSelect>) => QueryBuilder<{
@@ -98,18 +98,6 @@ export function createMutationOperations(client) {
98
98
  },
99
99
  ], connectionFieldsMap, 'SetAndCommitPayload'),
100
100
  }),
101
- requestUploadUrl: (args, options) => new QueryBuilder({
102
- client,
103
- operation: 'mutation',
104
- operationName: 'RequestUploadUrl',
105
- fieldName: 'requestUploadUrl',
106
- ...buildCustomDocument('mutation', 'RequestUploadUrl', 'requestUploadUrl', options.select, args, [
107
- {
108
- name: 'input',
109
- type: 'RequestUploadUrlInput!',
110
- },
111
- ], connectionFieldsMap, 'RequestUploadUrlPayload'),
112
- }),
113
101
  provisionBucket: (args, options) => new QueryBuilder({
114
102
  client,
115
103
  operation: 'mutation',
@@ -89,6 +89,30 @@ export function buildSelections(select, connectionFieldsMap, entityType) {
89
89
  }
90
90
  if (typeof value === 'object' && value !== null) {
91
91
  const nested = value;
92
+ // Field with arguments (e.g. requestUploadUrl on bucket types)
93
+ if (nested.args && typeof nested.args === 'object') {
94
+ const fieldArgs = Object.entries(nested.args).map(([argName, argValue]) => t.argument({ name: argName, value: buildValueAst(argValue) }));
95
+ const nestedSelect = nested.select;
96
+ if (nestedSelect && typeof nestedSelect === 'object') {
97
+ const subSelections = Object.entries(nestedSelect)
98
+ .filter(([, v]) => v)
99
+ .map(([name]) => t.field({ name }));
100
+ fields.push(t.field({
101
+ name: key,
102
+ args: fieldArgs.length ? fieldArgs : undefined,
103
+ selectionSet: subSelections.length
104
+ ? t.selectionSet({ selections: subSelections })
105
+ : undefined,
106
+ }));
107
+ }
108
+ else {
109
+ fields.push(t.field({
110
+ name: key,
111
+ args: fieldArgs.length ? fieldArgs : undefined,
112
+ }));
113
+ }
114
+ continue;
115
+ }
92
116
  if (!nested.select || typeof nested.select !== 'object') {
93
117
  throw new Error(`Invalid selection for field "${key}": nested selections must include a "select" object.`);
94
118
  }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * CLI commands for ApiSetting
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,468 @@
1
+ /**
2
+ * CLI commands for ApiSetting
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
+ apiId: 'uuid',
13
+ enableAggregates: 'boolean',
14
+ enablePostgis: 'boolean',
15
+ enableSearch: 'boolean',
16
+ enableDirectUploads: 'boolean',
17
+ enablePresignedUploads: 'boolean',
18
+ enableManyToMany: 'boolean',
19
+ enableConnectionFilter: 'boolean',
20
+ enableLtree: 'boolean',
21
+ enableLlm: 'boolean',
22
+ options: 'json',
23
+ };
24
+ const usage = '\napi-setting <command>\n\nCommands:\n list List apiSetting records\n find-first Find first matching apiSetting record\n get Get a apiSetting by ID\n create Create a new apiSetting\n update Update an existing apiSetting\n delete Delete a apiSetting\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';
25
+ export default async (argv, prompter, _options) => {
26
+ if (argv.help || argv.h) {
27
+ console.log(usage);
28
+ process.exit(0);
29
+ }
30
+ const { first: subcommand, newArgv } = extractFirst(argv);
31
+ if (!subcommand) {
32
+ const answer = await prompter.prompt(argv, [
33
+ {
34
+ type: 'autocomplete',
35
+ name: 'subcommand',
36
+ message: 'What do you want to do?',
37
+ options: ['list', 'find-first', 'get', 'create', 'update', 'delete'],
38
+ },
39
+ ]);
40
+ return handleTableSubcommand(answer.subcommand, newArgv, prompter);
41
+ }
42
+ return handleTableSubcommand(subcommand, newArgv, prompter);
43
+ };
44
+ async function handleTableSubcommand(subcommand, argv, prompter) {
45
+ switch (subcommand) {
46
+ case 'list':
47
+ return handleList(argv, prompter);
48
+ case 'find-first':
49
+ return handleFindFirst(argv, prompter);
50
+ case 'get':
51
+ return handleGet(argv, prompter);
52
+ case 'create':
53
+ return handleCreate(argv, prompter);
54
+ case 'update':
55
+ return handleUpdate(argv, prompter);
56
+ case 'delete':
57
+ return handleDelete(argv, prompter);
58
+ default:
59
+ console.log(usage);
60
+ process.exit(1);
61
+ }
62
+ }
63
+ async function handleList(argv, _prompter) {
64
+ try {
65
+ const defaultSelect = {
66
+ id: true,
67
+ databaseId: true,
68
+ apiId: 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 = parseFindManyArgs(argv, defaultSelect);
81
+ const client = getClient();
82
+ const result = await client.apiSetting.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
+ apiId: true,
99
+ enableAggregates: true,
100
+ enablePostgis: true,
101
+ enableSearch: true,
102
+ enableDirectUploads: true,
103
+ enablePresignedUploads: true,
104
+ enableManyToMany: true,
105
+ enableConnectionFilter: true,
106
+ enableLtree: true,
107
+ enableLlm: true,
108
+ options: true,
109
+ };
110
+ const findFirstArgs = parseFindFirstArgs(argv, defaultSelect);
111
+ const client = getClient();
112
+ const result = await client.apiSetting.findFirst(findFirstArgs).execute();
113
+ console.log(JSON.stringify(result, null, 2));
114
+ }
115
+ catch (error) {
116
+ console.error('Failed to find record.');
117
+ if (error instanceof Error) {
118
+ console.error(error.message);
119
+ }
120
+ process.exit(1);
121
+ }
122
+ }
123
+ async function handleGet(argv, prompter) {
124
+ try {
125
+ const answers = await prompter.prompt(argv, [
126
+ {
127
+ type: 'text',
128
+ name: 'id',
129
+ message: 'id',
130
+ required: true,
131
+ },
132
+ ]);
133
+ const client = getClient();
134
+ const result = await client.apiSetting
135
+ .findOne({
136
+ id: answers.id,
137
+ select: {
138
+ id: true,
139
+ databaseId: true,
140
+ apiId: true,
141
+ enableAggregates: true,
142
+ enablePostgis: true,
143
+ enableSearch: true,
144
+ enableDirectUploads: true,
145
+ enablePresignedUploads: true,
146
+ enableManyToMany: true,
147
+ enableConnectionFilter: true,
148
+ enableLtree: true,
149
+ enableLlm: true,
150
+ options: true,
151
+ },
152
+ })
153
+ .execute();
154
+ console.log(JSON.stringify(result, null, 2));
155
+ }
156
+ catch (error) {
157
+ console.error('Record not found.');
158
+ if (error instanceof Error) {
159
+ console.error(error.message);
160
+ }
161
+ process.exit(1);
162
+ }
163
+ }
164
+ async function handleCreate(argv, prompter) {
165
+ try {
166
+ const rawAnswers = await prompter.prompt(argv, [
167
+ {
168
+ type: 'text',
169
+ name: 'databaseId',
170
+ message: 'databaseId',
171
+ required: true,
172
+ },
173
+ {
174
+ type: 'text',
175
+ name: 'apiId',
176
+ message: 'apiId',
177
+ required: true,
178
+ },
179
+ {
180
+ type: 'boolean',
181
+ name: 'enableAggregates',
182
+ message: 'enableAggregates',
183
+ required: false,
184
+ skipPrompt: true,
185
+ },
186
+ {
187
+ type: 'boolean',
188
+ name: 'enablePostgis',
189
+ message: 'enablePostgis',
190
+ required: false,
191
+ skipPrompt: true,
192
+ },
193
+ {
194
+ type: 'boolean',
195
+ name: 'enableSearch',
196
+ message: 'enableSearch',
197
+ required: false,
198
+ skipPrompt: true,
199
+ },
200
+ {
201
+ type: 'boolean',
202
+ name: 'enableDirectUploads',
203
+ message: 'enableDirectUploads',
204
+ required: false,
205
+ skipPrompt: true,
206
+ },
207
+ {
208
+ type: 'boolean',
209
+ name: 'enablePresignedUploads',
210
+ message: 'enablePresignedUploads',
211
+ required: false,
212
+ skipPrompt: true,
213
+ },
214
+ {
215
+ type: 'boolean',
216
+ name: 'enableManyToMany',
217
+ message: 'enableManyToMany',
218
+ required: false,
219
+ skipPrompt: true,
220
+ },
221
+ {
222
+ type: 'boolean',
223
+ name: 'enableConnectionFilter',
224
+ message: 'enableConnectionFilter',
225
+ required: false,
226
+ skipPrompt: true,
227
+ },
228
+ {
229
+ type: 'boolean',
230
+ name: 'enableLtree',
231
+ message: 'enableLtree',
232
+ required: false,
233
+ skipPrompt: true,
234
+ },
235
+ {
236
+ type: 'boolean',
237
+ name: 'enableLlm',
238
+ message: 'enableLlm',
239
+ required: false,
240
+ skipPrompt: true,
241
+ },
242
+ {
243
+ type: 'json',
244
+ name: 'options',
245
+ message: 'options',
246
+ required: false,
247
+ skipPrompt: true,
248
+ },
249
+ ]);
250
+ const answers = coerceAnswers(rawAnswers, fieldSchema);
251
+ const cleanedData = stripUndefined(answers, fieldSchema);
252
+ const client = getClient();
253
+ const result = await client.apiSetting
254
+ .create({
255
+ data: {
256
+ databaseId: cleanedData.databaseId,
257
+ apiId: cleanedData.apiId,
258
+ enableAggregates: cleanedData.enableAggregates,
259
+ enablePostgis: cleanedData.enablePostgis,
260
+ enableSearch: cleanedData.enableSearch,
261
+ enableDirectUploads: cleanedData.enableDirectUploads,
262
+ enablePresignedUploads: cleanedData.enablePresignedUploads,
263
+ enableManyToMany: cleanedData.enableManyToMany,
264
+ enableConnectionFilter: cleanedData.enableConnectionFilter,
265
+ enableLtree: cleanedData.enableLtree,
266
+ enableLlm: cleanedData.enableLlm,
267
+ options: cleanedData.options,
268
+ },
269
+ select: {
270
+ id: true,
271
+ databaseId: true,
272
+ apiId: true,
273
+ enableAggregates: true,
274
+ enablePostgis: true,
275
+ enableSearch: true,
276
+ enableDirectUploads: true,
277
+ enablePresignedUploads: true,
278
+ enableManyToMany: true,
279
+ enableConnectionFilter: true,
280
+ enableLtree: true,
281
+ enableLlm: true,
282
+ options: true,
283
+ },
284
+ })
285
+ .execute();
286
+ console.log(JSON.stringify(result, null, 2));
287
+ }
288
+ catch (error) {
289
+ console.error('Failed to create record.');
290
+ if (error instanceof Error) {
291
+ console.error(error.message);
292
+ }
293
+ process.exit(1);
294
+ }
295
+ }
296
+ async function handleUpdate(argv, prompter) {
297
+ try {
298
+ const rawAnswers = await prompter.prompt(argv, [
299
+ {
300
+ type: 'text',
301
+ name: 'id',
302
+ message: 'id',
303
+ required: true,
304
+ },
305
+ {
306
+ type: 'text',
307
+ name: 'databaseId',
308
+ message: 'databaseId',
309
+ required: false,
310
+ },
311
+ {
312
+ type: 'text',
313
+ name: 'apiId',
314
+ message: 'apiId',
315
+ required: false,
316
+ },
317
+ {
318
+ type: 'boolean',
319
+ name: 'enableAggregates',
320
+ message: 'enableAggregates',
321
+ required: false,
322
+ skipPrompt: true,
323
+ },
324
+ {
325
+ type: 'boolean',
326
+ name: 'enablePostgis',
327
+ message: 'enablePostgis',
328
+ required: false,
329
+ skipPrompt: true,
330
+ },
331
+ {
332
+ type: 'boolean',
333
+ name: 'enableSearch',
334
+ message: 'enableSearch',
335
+ required: false,
336
+ skipPrompt: true,
337
+ },
338
+ {
339
+ type: 'boolean',
340
+ name: 'enableDirectUploads',
341
+ message: 'enableDirectUploads',
342
+ required: false,
343
+ skipPrompt: true,
344
+ },
345
+ {
346
+ type: 'boolean',
347
+ name: 'enablePresignedUploads',
348
+ message: 'enablePresignedUploads',
349
+ required: false,
350
+ skipPrompt: true,
351
+ },
352
+ {
353
+ type: 'boolean',
354
+ name: 'enableManyToMany',
355
+ message: 'enableManyToMany',
356
+ required: false,
357
+ skipPrompt: true,
358
+ },
359
+ {
360
+ type: 'boolean',
361
+ name: 'enableConnectionFilter',
362
+ message: 'enableConnectionFilter',
363
+ required: false,
364
+ skipPrompt: true,
365
+ },
366
+ {
367
+ type: 'boolean',
368
+ name: 'enableLtree',
369
+ message: 'enableLtree',
370
+ required: false,
371
+ skipPrompt: true,
372
+ },
373
+ {
374
+ type: 'boolean',
375
+ name: 'enableLlm',
376
+ message: 'enableLlm',
377
+ required: false,
378
+ skipPrompt: true,
379
+ },
380
+ {
381
+ type: 'json',
382
+ name: 'options',
383
+ message: 'options',
384
+ required: false,
385
+ skipPrompt: true,
386
+ },
387
+ ]);
388
+ const answers = coerceAnswers(rawAnswers, fieldSchema);
389
+ const cleanedData = stripUndefined(answers, fieldSchema);
390
+ const client = getClient();
391
+ const result = await client.apiSetting
392
+ .update({
393
+ where: {
394
+ id: answers.id,
395
+ },
396
+ data: {
397
+ databaseId: cleanedData.databaseId,
398
+ apiId: cleanedData.apiId,
399
+ enableAggregates: cleanedData.enableAggregates,
400
+ enablePostgis: cleanedData.enablePostgis,
401
+ enableSearch: cleanedData.enableSearch,
402
+ enableDirectUploads: cleanedData.enableDirectUploads,
403
+ enablePresignedUploads: cleanedData.enablePresignedUploads,
404
+ enableManyToMany: cleanedData.enableManyToMany,
405
+ enableConnectionFilter: cleanedData.enableConnectionFilter,
406
+ enableLtree: cleanedData.enableLtree,
407
+ enableLlm: cleanedData.enableLlm,
408
+ options: cleanedData.options,
409
+ },
410
+ select: {
411
+ id: true,
412
+ databaseId: true,
413
+ apiId: true,
414
+ enableAggregates: true,
415
+ enablePostgis: true,
416
+ enableSearch: true,
417
+ enableDirectUploads: true,
418
+ enablePresignedUploads: true,
419
+ enableManyToMany: true,
420
+ enableConnectionFilter: true,
421
+ enableLtree: true,
422
+ enableLlm: true,
423
+ options: true,
424
+ },
425
+ })
426
+ .execute();
427
+ console.log(JSON.stringify(result, null, 2));
428
+ }
429
+ catch (error) {
430
+ console.error('Failed to update record.');
431
+ if (error instanceof Error) {
432
+ console.error(error.message);
433
+ }
434
+ process.exit(1);
435
+ }
436
+ }
437
+ async function handleDelete(argv, prompter) {
438
+ try {
439
+ const rawAnswers = await prompter.prompt(argv, [
440
+ {
441
+ type: 'text',
442
+ name: 'id',
443
+ message: 'id',
444
+ required: true,
445
+ },
446
+ ]);
447
+ const answers = coerceAnswers(rawAnswers, fieldSchema);
448
+ const client = getClient();
449
+ const result = await client.apiSetting
450
+ .delete({
451
+ where: {
452
+ id: answers.id,
453
+ },
454
+ select: {
455
+ id: true,
456
+ },
457
+ })
458
+ .execute();
459
+ console.log(JSON.stringify(result, null, 2));
460
+ }
461
+ catch (error) {
462
+ console.error('Failed to delete record.');
463
+ if (error instanceof Error) {
464
+ console.error(error.message);
465
+ }
466
+ process.exit(1);
467
+ }
468
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * CLI commands for AppLimitCap
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;