@lovrabet/rabetbase-cli 2.3.16-beta.3 → 2.3.16-beta.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 (568) hide show
  1. package/lib/api/api-doc.d.ts +9 -0
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/fetch-model-list.d.ts +2 -0
  4. package/lib/api/fetch-model-list.js +1 -1
  5. package/lib/api/generate-api-file.d.ts +8 -0
  6. package/lib/api/generate-api-file.js +1 -1
  7. package/lib/auth/auth-server-ui.d.ts +13 -0
  8. package/lib/auth/auth-server-ui.js +1 -1
  9. package/lib/auth/auth-server.d.ts +25 -0
  10. package/lib/auth/auth-server.js +1 -1
  11. package/lib/auth/constant.d.ts +2 -0
  12. package/lib/auth/constant.js +1 -1
  13. package/lib/auth/get-cookie.d.ts +1 -0
  14. package/lib/auth/get-cookie.js +1 -1
  15. package/lib/auth/get-session-user.d.ts +51 -0
  16. package/lib/auth/get-session-user.js +1 -1
  17. package/lib/auth/is-session-valid.d.ts +1 -0
  18. package/lib/auth/is-session-valid.js +1 -1
  19. package/lib/auth/login-success-html.d.ts +5 -0
  20. package/lib/auth/login-success-html.js +1 -1
  21. package/lib/auth/logout.d.ts +1 -0
  22. package/lib/auth/logout.js +1 -1
  23. package/lib/cli-flags.d.ts +12 -0
  24. package/lib/cli-flags.js +1 -1
  25. package/lib/cli.d.ts +2 -0
  26. package/lib/cli.js +1 -1
  27. package/lib/commands/api/generate.d.ts +2 -0
  28. package/lib/commands/api/generate.js +1 -1
  29. package/lib/commands/api/index.d.ts +2 -0
  30. package/lib/commands/api/index.js +1 -1
  31. package/lib/commands/api/list.d.ts +2 -0
  32. package/lib/commands/api/list.js +1 -1
  33. package/lib/commands/api/pull.d.ts +2 -0
  34. package/lib/commands/api/pull.js +1 -1
  35. package/lib/commands/api/shared.d.ts +18 -0
  36. package/lib/commands/api/shared.js +1 -1
  37. package/lib/commands/app/index.d.ts +5 -0
  38. package/lib/commands/app/index.js +1 -1
  39. package/lib/commands/app/list.d.ts +10 -0
  40. package/lib/commands/app/list.js +1 -1
  41. package/lib/commands/app/members-list.d.ts +2 -0
  42. package/lib/commands/app/members-list.js +1 -1
  43. package/lib/commands/app/remote-directory.d.ts +11 -0
  44. package/lib/commands/app/remote-directory.js +1 -1
  45. package/lib/commands/app/shared.d.ts +46 -0
  46. package/lib/commands/app/shared.js +1 -1
  47. package/lib/commands/app-config/delete.d.ts +2 -0
  48. package/lib/commands/app-config/delete.js +1 -1
  49. package/lib/commands/app-config/get.d.ts +2 -0
  50. package/lib/commands/app-config/get.js +1 -1
  51. package/lib/commands/app-config/index.d.ts +2 -0
  52. package/lib/commands/app-config/index.js +1 -1
  53. package/lib/commands/app-config/list.d.ts +2 -0
  54. package/lib/commands/app-config/list.js +1 -1
  55. package/lib/commands/app-config/set.d.ts +2 -0
  56. package/lib/commands/app-config/set.js +1 -1
  57. package/lib/commands/app-config/shared.d.ts +105 -0
  58. package/lib/commands/app-config/shared.js +1 -1
  59. package/lib/commands/auth/index.d.ts +2 -0
  60. package/lib/commands/auth/index.js +1 -1
  61. package/lib/commands/bff/create.d.ts +4 -0
  62. package/lib/commands/bff/create.js +1 -1
  63. package/lib/commands/bff/delete.d.ts +2 -0
  64. package/lib/commands/bff/delete.js +1 -1
  65. package/lib/commands/bff/detail.d.ts +2 -0
  66. package/lib/commands/bff/detail.js +1 -1
  67. package/lib/commands/bff/index.d.ts +5 -0
  68. package/lib/commands/bff/index.js +1 -1
  69. package/lib/commands/bff/list.d.ts +2 -0
  70. package/lib/commands/bff/list.js +1 -1
  71. package/lib/commands/bff/pull.d.ts +2 -0
  72. package/lib/commands/bff/pull.js +1 -1
  73. package/lib/commands/bff/push.d.ts +2 -0
  74. package/lib/commands/bff/push.js +1 -1
  75. package/lib/commands/bff/status.d.ts +2 -0
  76. package/lib/commands/bff/status.js +1 -1
  77. package/lib/commands/cli-skill/index.d.ts +8 -0
  78. package/lib/commands/cli-skill/index.js +1 -1
  79. package/lib/commands/cli-update.d.ts +2 -0
  80. package/lib/commands/cli-update.js +1 -1
  81. package/lib/commands/codegen/index.d.ts +2 -0
  82. package/lib/commands/codegen/index.js +1 -1
  83. package/lib/commands/codegen/sdk.d.ts +2 -0
  84. package/lib/commands/codegen/sdk.js +1 -1
  85. package/lib/commands/codegen/sql.d.ts +2 -0
  86. package/lib/commands/codegen/sql.js +1 -1
  87. package/lib/commands/common/app-registry.d.ts +17 -0
  88. package/lib/commands/common/app-registry.js +1 -1
  89. package/lib/commands/common/app-selector.d.ts +17 -0
  90. package/lib/commands/common/app-selector.js +1 -1
  91. package/lib/commands/common/async-task.d.ts +11 -0
  92. package/lib/commands/common/async-task.js +1 -1
  93. package/lib/commands/common/dry-run.d.ts +12 -0
  94. package/lib/commands/common/dry-run.js +1 -1
  95. package/lib/commands/common/flags.d.ts +26 -0
  96. package/lib/commands/common/flags.js +1 -1
  97. package/lib/commands/common/local-file.d.ts +6 -0
  98. package/lib/commands/common/local-file.js +1 -1
  99. package/lib/commands/common/validate.d.ts +13 -0
  100. package/lib/commands/common/validate.js +1 -1
  101. package/lib/commands/config/get.d.ts +5 -0
  102. package/lib/commands/config/get.js +1 -1
  103. package/lib/commands/config/index.d.ts +5 -0
  104. package/lib/commands/config/index.js +1 -1
  105. package/lib/commands/config/list.d.ts +5 -0
  106. package/lib/commands/config/list.js +1 -1
  107. package/lib/commands/config/set.d.ts +5 -0
  108. package/lib/commands/config/set.js +1 -1
  109. package/lib/commands/config/shared.d.ts +16 -0
  110. package/lib/commands/config/shared.js +1 -1
  111. package/lib/commands/data/filter.d.ts +7 -0
  112. package/lib/commands/data/filter.js +1 -1
  113. package/lib/commands/data/getOne.d.ts +7 -0
  114. package/lib/commands/data/getOne.js +1 -1
  115. package/lib/commands/data/index.d.ts +8 -0
  116. package/lib/commands/data/index.js +1 -1
  117. package/lib/commands/data/shared.d.ts +33 -0
  118. package/lib/commands/data/shared.js +1 -1
  119. package/lib/commands/dataset/business-group-update.d.ts +18 -0
  120. package/lib/commands/dataset/business-group-update.js +1 -1
  121. package/lib/commands/dataset/capability.d.ts +11 -0
  122. package/lib/commands/dataset/capability.js +1 -1
  123. package/lib/commands/dataset/delete.d.ts +2 -0
  124. package/lib/commands/dataset/delete.js +1 -1
  125. package/lib/commands/dataset/detail.d.ts +2 -0
  126. package/lib/commands/dataset/detail.js +1 -1
  127. package/lib/commands/dataset/extend-update.d.ts +26 -0
  128. package/lib/commands/dataset/extend-update.js +1 -1
  129. package/lib/commands/dataset/field-update.d.ts +27 -0
  130. package/lib/commands/dataset/field-update.js +1 -1
  131. package/lib/commands/dataset/generate.d.ts +3 -0
  132. package/lib/commands/dataset/generate.js +1 -1
  133. package/lib/commands/dataset/index.d.ts +2 -0
  134. package/lib/commands/dataset/index.js +1 -1
  135. package/lib/commands/dataset/list.d.ts +2 -0
  136. package/lib/commands/dataset/list.js +1 -1
  137. package/lib/commands/dataset/operations.d.ts +2 -0
  138. package/lib/commands/dataset/operations.js +1 -1
  139. package/lib/commands/dataset/relation-audit.d.ts +2 -0
  140. package/lib/commands/dataset/relation-audit.js +1 -1
  141. package/lib/commands/dataset/relation-create.d.ts +2 -0
  142. package/lib/commands/dataset/relation-create.js +1 -1
  143. package/lib/commands/dataset/relation-delete.d.ts +2 -0
  144. package/lib/commands/dataset/relation-delete.js +1 -1
  145. package/lib/commands/dataset/relation-shared.d.ts +128 -0
  146. package/lib/commands/dataset/relation-shared.js +1 -1
  147. package/lib/commands/dataset/relation-update.d.ts +2 -0
  148. package/lib/commands/dataset/relation-update.js +1 -1
  149. package/lib/commands/dataset/relations.d.ts +53 -0
  150. package/lib/commands/dataset/relations.js +1 -1
  151. package/lib/commands/dataset/rename.d.ts +17 -0
  152. package/lib/commands/dataset/rename.js +1 -1
  153. package/lib/commands/dataset/restore.d.ts +2 -0
  154. package/lib/commands/dataset/restore.js +1 -1
  155. package/lib/commands/db/analysis-batching.d.ts +30 -0
  156. package/lib/commands/db/analysis-batching.js +1 -1
  157. package/lib/commands/db/analyze-batch-plan.d.ts +2 -0
  158. package/lib/commands/db/analyze-batch-plan.js +1 -1
  159. package/lib/commands/db/analyze-cancel.d.ts +2 -0
  160. package/lib/commands/db/analyze-cancel.js +1 -1
  161. package/lib/commands/db/analyze-start.d.ts +2 -0
  162. package/lib/commands/db/analyze-start.js +1 -1
  163. package/lib/commands/db/analyze-status.d.ts +2 -0
  164. package/lib/commands/db/analyze-status.js +1 -1
  165. package/lib/commands/db/create.d.ts +2 -0
  166. package/lib/commands/db/create.js +1 -1
  167. package/lib/commands/db/delete.d.ts +2 -0
  168. package/lib/commands/db/delete.js +1 -1
  169. package/lib/commands/db/detail.d.ts +2 -0
  170. package/lib/commands/db/detail.js +1 -1
  171. package/lib/commands/db/diff.d.ts +2 -0
  172. package/lib/commands/db/diff.js +1 -1
  173. package/lib/commands/db/index.d.ts +5 -0
  174. package/lib/commands/db/index.js +1 -1
  175. package/lib/commands/db/list.d.ts +2 -0
  176. package/lib/commands/db/list.js +1 -1
  177. package/lib/commands/db/shared.d.ts +15 -0
  178. package/lib/commands/db/shared.js +1 -1
  179. package/lib/commands/db/tables.d.ts +2 -0
  180. package/lib/commands/db/tables.js +1 -1
  181. package/lib/commands/db/test.d.ts +2 -0
  182. package/lib/commands/db/test.js +1 -1
  183. package/lib/commands/db/update.d.ts +2 -0
  184. package/lib/commands/db/update.js +1 -1
  185. package/lib/commands/doctor.d.ts +2 -0
  186. package/lib/commands/doctor.js +1 -1
  187. package/lib/commands/file/index.d.ts +2 -0
  188. package/lib/commands/file/index.js +1 -1
  189. package/lib/commands/init/index.d.ts +11 -0
  190. package/lib/commands/init/index.js +1 -1
  191. package/lib/commands/issue/index.d.ts +2 -0
  192. package/lib/commands/issue/index.js +1 -1
  193. package/lib/commands/issue/nudge.d.ts +23 -0
  194. package/lib/commands/issue/nudge.js +1 -1
  195. package/lib/commands/issue/report.d.ts +2 -0
  196. package/lib/commands/issue/report.js +1 -1
  197. package/lib/commands/issue/shared.d.ts +32 -0
  198. package/lib/commands/issue/shared.js +1 -1
  199. package/lib/commands/kb/create.d.ts +2 -0
  200. package/lib/commands/kb/create.js +1 -1
  201. package/lib/commands/kb/delete.d.ts +2 -0
  202. package/lib/commands/kb/delete.js +1 -1
  203. package/lib/commands/kb/detail.d.ts +2 -0
  204. package/lib/commands/kb/detail.js +1 -1
  205. package/lib/commands/kb/index.d.ts +2 -0
  206. package/lib/commands/kb/index.js +1 -1
  207. package/lib/commands/kb/list.d.ts +2 -0
  208. package/lib/commands/kb/list.js +1 -1
  209. package/lib/commands/kb/shared.d.ts +33 -0
  210. package/lib/commands/kb/shared.js +1 -1
  211. package/lib/commands/kb/update.d.ts +2 -0
  212. package/lib/commands/kb/update.js +1 -1
  213. package/lib/commands/logs/index.d.ts +5 -0
  214. package/lib/commands/logs/index.js +1 -1
  215. package/lib/commands/menu/asset-update.d.ts +2 -0
  216. package/lib/commands/menu/asset-update.js +1 -1
  217. package/lib/commands/menu/delete.d.ts +2 -0
  218. package/lib/commands/menu/delete.js +1 -1
  219. package/lib/commands/menu/external-link-create.d.ts +3 -0
  220. package/lib/commands/menu/external-link-create.js +1 -1
  221. package/lib/commands/menu/external-link-update.d.ts +2 -0
  222. package/lib/commands/menu/external-link-update.js +1 -1
  223. package/lib/commands/menu/group-create.d.ts +2 -0
  224. package/lib/commands/menu/group-create.js +1 -1
  225. package/lib/commands/menu/group-update.d.ts +2 -0
  226. package/lib/commands/menu/group-update.js +1 -1
  227. package/lib/commands/menu/index.d.ts +17 -0
  228. package/lib/commands/menu/index.js +1 -1
  229. package/lib/commands/menu/list.d.ts +2 -0
  230. package/lib/commands/menu/list.js +1 -1
  231. package/lib/commands/menu/move.d.ts +2 -0
  232. package/lib/commands/menu/move.js +1 -1
  233. package/lib/commands/menu/regroup-start.d.ts +2 -0
  234. package/lib/commands/menu/regroup-start.js +1 -1
  235. package/lib/commands/menu/rename.d.ts +2 -0
  236. package/lib/commands/menu/rename.js +1 -1
  237. package/lib/commands/menu/shared/compare-table.d.ts +27 -0
  238. package/lib/commands/menu/shared/compare-table.js +1 -1
  239. package/lib/commands/menu/shared/delete-plan.d.ts +51 -0
  240. package/lib/commands/menu/shared/delete-plan.js +1 -1
  241. package/lib/commands/menu/shared/facts.d.ts +12 -0
  242. package/lib/commands/menu/shared/facts.js +1 -1
  243. package/lib/commands/menu/shared/index.d.ts +12 -0
  244. package/lib/commands/menu/shared/index.js +1 -1
  245. package/lib/commands/menu/shared/inquirer.d.ts +10 -0
  246. package/lib/commands/menu/shared/inquirer.js +1 -1
  247. package/lib/commands/menu/shared/local-pages.d.ts +12 -0
  248. package/lib/commands/menu/shared/local-pages.js +1 -1
  249. package/lib/commands/menu/shared/logic.d.ts +28 -0
  250. package/lib/commands/menu/shared/logic.js +1 -1
  251. package/lib/commands/menu/shared/mutations.d.ts +69 -0
  252. package/lib/commands/menu/shared/mutations.js +1 -1
  253. package/lib/commands/menu/shared/service.d.ts +17 -0
  254. package/lib/commands/menu/shared/service.js +1 -1
  255. package/lib/commands/menu/shared/sync-core.d.ts +7 -0
  256. package/lib/commands/menu/shared/sync-core.js +1 -1
  257. package/lib/commands/menu/shared/types.d.ts +162 -0
  258. package/lib/commands/menu/shared/update-core.d.ts +11 -0
  259. package/lib/commands/menu/shared/update-core.js +1 -1
  260. package/lib/commands/menu/shared/valid-url.d.ts +6 -0
  261. package/lib/commands/menu/shared/valid-url.js +1 -1
  262. package/lib/commands/menu/sync.d.ts +2 -0
  263. package/lib/commands/menu/sync.js +1 -1
  264. package/lib/commands/notification/config-list.d.ts +2 -0
  265. package/lib/commands/notification/config-list.js +1 -1
  266. package/lib/commands/notification/index.d.ts +2 -0
  267. package/lib/commands/notification/index.js +1 -1
  268. package/lib/commands/ocr/index.d.ts +2 -0
  269. package/lib/commands/ocr/index.js +1 -1
  270. package/lib/commands/page/generate-start.d.ts +2 -0
  271. package/lib/commands/page/generate-start.js +1 -1
  272. package/lib/commands/page/generate-status.d.ts +2 -0
  273. package/lib/commands/page/generate-status.js +1 -1
  274. package/lib/commands/page/index.d.ts +2 -0
  275. package/lib/commands/page/index.js +1 -1
  276. package/lib/commands/page/pull.d.ts +2 -0
  277. package/lib/commands/page/pull.js +1 -1
  278. package/lib/commands/page/push.d.ts +2 -0
  279. package/lib/commands/page/push.js +1 -1
  280. package/lib/commands/page/relation-audit.d.ts +2 -0
  281. package/lib/commands/page/relation-audit.js +1 -1
  282. package/lib/commands/page/restore.d.ts +2 -0
  283. package/lib/commands/page/restore.js +1 -1
  284. package/lib/commands/page/shared.d.ts +105 -0
  285. package/lib/commands/page/shared.js +1 -1
  286. package/lib/commands/page/standard-page-status.d.ts +2 -0
  287. package/lib/commands/page/standard-page-status.js +1 -1
  288. package/lib/commands/page/sync.d.ts +2 -0
  289. package/lib/commands/page/sync.js +1 -1
  290. package/lib/commands/permit/index.d.ts +2 -0
  291. package/lib/commands/permit/index.js +1 -1
  292. package/lib/commands/permit/page-get.d.ts +2 -0
  293. package/lib/commands/permit/page-get.js +1 -1
  294. package/lib/commands/permit/page-set.d.ts +2 -0
  295. package/lib/commands/permit/page-set.js +1 -1
  296. package/lib/commands/permit/role-apis-set.d.ts +2 -0
  297. package/lib/commands/permit/role-apis-set.js +1 -1
  298. package/lib/commands/permit/role-menus-set.d.ts +2 -0
  299. package/lib/commands/permit/role-menus-set.js +1 -1
  300. package/lib/commands/permit/role-menus.d.ts +2 -0
  301. package/lib/commands/permit/role-menus.js +1 -1
  302. package/lib/commands/permit/shared.d.ts +74 -0
  303. package/lib/commands/permit/shared.js +1 -1
  304. package/lib/commands/project/create/enhanced-guided-create.d.ts +7 -0
  305. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  306. package/lib/commands/project/create/format-elapsed.d.ts +1 -0
  307. package/lib/commands/project/create/format-elapsed.js +1 -1
  308. package/lib/commands/project/create/main.d.ts +6 -0
  309. package/lib/commands/project/create/main.js +1 -1
  310. package/lib/commands/project/create/non-interactive.d.ts +9 -0
  311. package/lib/commands/project/create/non-interactive.js +1 -1
  312. package/lib/commands/project/create/project-template-path.d.ts +4 -0
  313. package/lib/commands/project/create/project-template-path.js +1 -1
  314. package/lib/commands/project/create/use-copy-project-template.d.ts +1 -0
  315. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  316. package/lib/commands/project/create/use-format-code.d.ts +1 -0
  317. package/lib/commands/project/create/use-format-code.js +1 -1
  318. package/lib/commands/project/create/use-install-dependencies.d.ts +1 -0
  319. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  320. package/lib/commands/project/index.d.ts +2 -0
  321. package/lib/commands/project/index.js +1 -1
  322. package/lib/commands/project/upgrade.d.ts +1 -0
  323. package/lib/commands/project/upgrade.js +1 -1
  324. package/lib/commands/registry.d.ts +66 -0
  325. package/lib/commands/registry.js +1 -1
  326. package/lib/commands/role/create.d.ts +2 -0
  327. package/lib/commands/role/create.js +1 -1
  328. package/lib/commands/role/delete.d.ts +2 -0
  329. package/lib/commands/role/delete.js +1 -1
  330. package/lib/commands/role/detail.d.ts +2 -0
  331. package/lib/commands/role/detail.js +1 -1
  332. package/lib/commands/role/index.d.ts +2 -0
  333. package/lib/commands/role/index.js +1 -1
  334. package/lib/commands/role/list.d.ts +2 -0
  335. package/lib/commands/role/list.js +1 -1
  336. package/lib/commands/role/shared.d.ts +107 -0
  337. package/lib/commands/role/shared.js +1 -1
  338. package/lib/commands/role/update.d.ts +2 -0
  339. package/lib/commands/role/update.js +1 -1
  340. package/lib/commands/role/user-add.d.ts +2 -0
  341. package/lib/commands/role/user-add.js +1 -1
  342. package/lib/commands/role/user-remove.d.ts +2 -0
  343. package/lib/commands/role/user-remove.js +1 -1
  344. package/lib/commands/role/user-resolve.d.ts +2 -0
  345. package/lib/commands/role/user-resolve.js +1 -1
  346. package/lib/commands/run/index.d.ts +2 -0
  347. package/lib/commands/run/index.js +1 -1
  348. package/lib/commands/schema.d.ts +5 -0
  349. package/lib/commands/schema.js +1 -1
  350. package/lib/commands/sql/create.d.ts +10 -0
  351. package/lib/commands/sql/create.js +1 -1
  352. package/lib/commands/sql/delete.d.ts +5 -0
  353. package/lib/commands/sql/delete.js +1 -1
  354. package/lib/commands/sql/detail.d.ts +2 -0
  355. package/lib/commands/sql/detail.js +1 -1
  356. package/lib/commands/sql/exec.d.ts +2 -0
  357. package/lib/commands/sql/exec.js +1 -1
  358. package/lib/commands/sql/index.d.ts +5 -0
  359. package/lib/commands/sql/index.js +1 -1
  360. package/lib/commands/sql/list.d.ts +2 -0
  361. package/lib/commands/sql/list.js +1 -1
  362. package/lib/commands/sql/pull.d.ts +5 -0
  363. package/lib/commands/sql/pull.js +1 -1
  364. package/lib/commands/sql/push.d.ts +5 -0
  365. package/lib/commands/sql/push.js +1 -1
  366. package/lib/commands/sql/shared.d.ts +23 -0
  367. package/lib/commands/sql/shared.js +1 -1
  368. package/lib/commands/sql/status.d.ts +5 -0
  369. package/lib/commands/sql/status.js +1 -1
  370. package/lib/commands/sql/validate.d.ts +2 -0
  371. package/lib/commands/sql/validate.js +1 -1
  372. package/lib/commands/task/index.d.ts +2 -0
  373. package/lib/commands/task/index.js +1 -1
  374. package/lib/commands/task/status.d.ts +2 -0
  375. package/lib/commands/task/status.js +1 -1
  376. package/lib/commands/tenant/index.d.ts +2 -0
  377. package/lib/commands/tenant/index.js +1 -1
  378. package/lib/commands/tenant/members-list.d.ts +2 -0
  379. package/lib/commands/tenant/members-list.js +1 -1
  380. package/lib/commands/tenant/shared.d.ts +10 -0
  381. package/lib/commands/tenant/shared.js +1 -1
  382. package/lib/commands/workspace/add.d.ts +6 -0
  383. package/lib/commands/workspace/add.js +1 -1
  384. package/lib/commands/workspace/index.d.ts +11 -0
  385. package/lib/commands/workspace/index.js +1 -1
  386. package/lib/commands/workspace/remove.d.ts +6 -0
  387. package/lib/commands/workspace/remove.js +1 -1
  388. package/lib/config/schema.d.ts +50 -0
  389. package/lib/config/schema.js +1 -1
  390. package/lib/constant/cdn.d.ts +1 -0
  391. package/lib/constant/cdn.js +1 -1
  392. package/lib/constant/cli.d.ts +34 -0
  393. package/lib/constant/cli.js +1 -1
  394. package/lib/constant/defaults.d.ts +10 -0
  395. package/lib/constant/defaults.js +1 -1
  396. package/lib/constant/domain.d.ts +14 -0
  397. package/lib/constant/domain.js +1 -1
  398. package/lib/constant/env.d.ts +11 -0
  399. package/lib/constant/env.js +1 -1
  400. package/lib/constant/output.d.ts +1 -0
  401. package/lib/constant/output.js +1 -1
  402. package/lib/constant/paths.d.ts +5 -0
  403. package/lib/constant/paths.js +1 -1
  404. package/lib/constant/risk.d.ts +1 -0
  405. package/lib/constant/risk.js +1 -1
  406. package/lib/context/app-resolver.d.ts +36 -0
  407. package/lib/context/app-resolver.js +1 -1
  408. package/lib/context/auth-resolver.d.ts +5 -0
  409. package/lib/context/auth-resolver.js +1 -1
  410. package/lib/context/config-loader.d.ts +61 -0
  411. package/lib/context/config-loader.js +1 -1
  412. package/lib/context.d.ts +102 -0
  413. package/lib/context.js +1 -1
  414. package/lib/core/alias-resolver.d.ts +31 -0
  415. package/lib/core/alias-resolver.js +1 -1
  416. package/lib/core/api-client.d.ts +1018 -0
  417. package/lib/core/api-client.js +1 -1
  418. package/lib/core/bff/config.d.ts +8 -0
  419. package/lib/core/bff/config.js +1 -1
  420. package/lib/core/bff/file-system.d.ts +28 -0
  421. package/lib/core/bff/file-system.js +1 -1
  422. package/lib/core/bff/hash.d.ts +7 -0
  423. package/lib/core/bff/hash.js +1 -1
  424. package/lib/core/bff/lock.d.ts +25 -0
  425. package/lib/core/bff/lock.js +1 -1
  426. package/lib/core/bff/types.d.ts +92 -0
  427. package/lib/core/bff/utils.d.ts +25 -0
  428. package/lib/core/bff/utils.js +1 -1
  429. package/lib/core/db-resolver.d.ts +43 -0
  430. package/lib/core/db-resolver.js +1 -1
  431. package/lib/core/page/file-system.d.ts +6 -0
  432. package/lib/core/page/file-system.js +1 -1
  433. package/lib/core/page/hash.d.ts +4 -0
  434. package/lib/core/page/hash.js +1 -1
  435. package/lib/core/page/lock.d.ts +8 -0
  436. package/lib/core/page/lock.js +1 -1
  437. package/lib/core/page/types.d.ts +22 -0
  438. package/lib/core/sql-index-auditor.d.ts +33 -0
  439. package/lib/core/sql-index-auditor.js +1 -1
  440. package/lib/core/sql-sync/config.d.ts +7 -0
  441. package/lib/core/sql-sync/config.js +1 -1
  442. package/lib/core/sql-sync/file-system.d.ts +7 -0
  443. package/lib/core/sql-sync/file-system.js +1 -1
  444. package/lib/core/sql-sync/hash.d.ts +5 -0
  445. package/lib/core/sql-sync/hash.js +1 -1
  446. package/lib/core/sql-sync/lock.d.ts +14 -0
  447. package/lib/core/sql-sync/lock.js +1 -1
  448. package/lib/core/sql-sync/types.d.ts +43 -0
  449. package/lib/core/sql-sync/utils.d.ts +10 -0
  450. package/lib/core/sql-sync/utils.js +1 -1
  451. package/lib/core/sql-validator.d.ts +34 -0
  452. package/lib/core/sql-validator.js +1 -1
  453. package/lib/errors.d.ts +3 -0
  454. package/lib/errors.js +1 -1
  455. package/lib/framework/build-all-flags.d.ts +2 -0
  456. package/lib/framework/build-all-flags.js +1 -1
  457. package/lib/framework/error-output.d.ts +9 -0
  458. package/lib/framework/error-output.js +1 -1
  459. package/lib/framework/explicit-yes.d.ts +3 -0
  460. package/lib/framework/explicit-yes.js +1 -1
  461. package/lib/framework/flags.d.ts +3 -0
  462. package/lib/framework/flags.js +1 -1
  463. package/lib/framework/help.d.ts +4 -0
  464. package/lib/framework/help.js +1 -1
  465. package/lib/framework/index.d.ts +11 -0
  466. package/lib/framework/index.js +1 -1
  467. package/lib/framework/output.d.ts +15 -0
  468. package/lib/framework/output.js +1 -1
  469. package/lib/framework/response.d.ts +2 -0
  470. package/lib/framework/response.js +1 -1
  471. package/lib/framework/runner-alias.d.ts +14 -0
  472. package/lib/framework/runner-alias.js +1 -1
  473. package/lib/framework/runner.d.ts +36 -0
  474. package/lib/framework/runner.js +1 -1
  475. package/lib/framework/schema-export.d.ts +3 -0
  476. package/lib/framework/schema-export.js +1 -1
  477. package/lib/framework/types.d.ts +63 -0
  478. package/lib/framework/types.js +1 -1
  479. package/lib/generated/build-info.d.ts +4 -0
  480. package/lib/generated/build-info.js +1 -1
  481. package/lib/help.d.ts +1 -0
  482. package/lib/help.js +1 -1
  483. package/lib/runtime/confirmation.d.ts +4 -0
  484. package/lib/runtime/confirmation.js +1 -0
  485. package/lib/runtime/event.d.ts +5 -0
  486. package/lib/runtime/event.js +1 -0
  487. package/lib/runtime/index.d.ts +7 -0
  488. package/lib/runtime/index.js +1 -0
  489. package/lib/runtime/queue.d.ts +5 -0
  490. package/lib/runtime/queue.js +1 -0
  491. package/lib/runtime/resolve.d.ts +8 -0
  492. package/lib/runtime/resolve.js +1 -0
  493. package/lib/runtime/types.d.ts +50 -0
  494. package/lib/runtime/types.js +1 -0
  495. package/lib/skills/main.d.ts +41 -0
  496. package/lib/skills/main.js +1 -1
  497. package/lib/skills/npx-skills-add.d.ts +99 -0
  498. package/lib/skills/npx-skills-add.js +1 -1
  499. package/lib/skills/skill-presence.d.ts +44 -0
  500. package/lib/skills/skill-presence.js +1 -1
  501. package/lib/telemetry/cli-command-trace.d.ts +12 -0
  502. package/lib/telemetry/cli-command-trace.js +1 -1
  503. package/lib/telemetry/cli-help-trace.d.ts +8 -0
  504. package/lib/telemetry/cli-help-trace.js +1 -1
  505. package/lib/telemetry/ensure-cli-otel-config.d.ts +6 -0
  506. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  507. package/lib/telemetry/register-otel-exit-shutdown.d.ts +3 -0
  508. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  509. package/lib/telemetry/send-cli-trace-log.d.ts +17 -0
  510. package/lib/telemetry/send-cli-trace-log.js +1 -1
  511. package/lib/telemetry/send-platform-issue-collect-log.d.ts +26 -0
  512. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  513. package/lib/types/index.d.ts +93 -0
  514. package/lib/utils/ai_config.d.ts +47 -0
  515. package/lib/utils/ai_config.js +1 -1
  516. package/lib/utils/apply-jq-filter.d.ts +1 -0
  517. package/lib/utils/apply-jq-filter.js +1 -1
  518. package/lib/utils/cdn-config.d.ts +42 -0
  519. package/lib/utils/cdn-config.js +1 -1
  520. package/lib/utils/check-sdk-version.d.ts +23 -0
  521. package/lib/utils/check-sdk-version.js +1 -1
  522. package/lib/utils/cli-version-check.d.ts +37 -0
  523. package/lib/utils/cli-version-check.js +1 -1
  524. package/lib/utils/cli-version-policy.d.ts +9 -0
  525. package/lib/utils/cli-version-policy.js +1 -1
  526. package/lib/utils/config.d.ts +42 -0
  527. package/lib/utils/config.js +1 -1
  528. package/lib/utils/copy-directory.d.ts +1 -0
  529. package/lib/utils/copy-directory.js +1 -1
  530. package/lib/utils/entity-with-id.d.ts +30 -0
  531. package/lib/utils/entity-with-id.js +1 -1
  532. package/lib/utils/file-utils.d.ts +25 -0
  533. package/lib/utils/file-utils.js +1 -1
  534. package/lib/utils/guides-cdn.d.ts +80 -0
  535. package/lib/utils/guides-cdn.js +1 -1
  536. package/lib/utils/http-client.d.ts +30 -0
  537. package/lib/utils/http-client.js +1 -1
  538. package/lib/utils/is-non-interactive.d.ts +7 -0
  539. package/lib/utils/is-non-interactive.js +1 -1
  540. package/lib/utils/logger.d.ts +62 -0
  541. package/lib/utils/logger.js +1 -1
  542. package/lib/utils/params.d.ts +15 -0
  543. package/lib/utils/params.js +1 -1
  544. package/lib/utils/platform.d.ts +21 -0
  545. package/lib/utils/platform.js +1 -1
  546. package/lib/utils/rules-cdn.d.ts +38 -0
  547. package/lib/utils/rules-cdn.js +1 -1
  548. package/lib/utils/sleep.d.ts +1 -0
  549. package/lib/utils/sleep.js +1 -1
  550. package/lib/utils/template-replacer.d.ts +55 -0
  551. package/lib/utils/template-replacer.js +1 -1
  552. package/lib/utils/update-notice.d.ts +10 -0
  553. package/lib/utils/update-notice.js +1 -1
  554. package/lib/utils/version.d.ts +1 -0
  555. package/lib/utils/version.js +1 -1
  556. package/lib/utils/with-active-cookie.d.ts +1 -0
  557. package/lib/utils/with-active-cookie.js +1 -1
  558. package/lib/utils/write-cli-side-channel.d.ts +6 -0
  559. package/lib/utils/write-cli-side-channel.js +1 -1
  560. package/package.json +9 -1
  561. package/lib/commands/page/react/create.js +0 -1
  562. package/lib/commands/page/react/detail.js +0 -1
  563. package/lib/commands/page/react/list.js +0 -1
  564. package/lib/commands/page/react/publish.js +0 -1
  565. package/lib/commands/page/react/shared.js +0 -1
  566. package/lib/commands/page/react/syntax.js +0 -1
  567. package/lib/commands/page/react/template.js +0 -1
  568. package/lib/commands/page/react/update.js +0 -1
@@ -1 +1 @@
1
- function a51_0x353d(_0x5ce2ca,_0x2d96e3){_0x5ce2ca=_0x5ce2ca-0x199;const _0x2dbd0b=a51_0x2dbd();let _0x353d65=_0x2dbd0b[_0x5ce2ca];return _0x353d65;}(function(_0x1f43b3,_0x8aca2a){const _0x4e62f5=a51_0x353d,_0x5846b4=_0x1f43b3();while(!![]){try{const _0xc1b3e9=-parseInt(_0x4e62f5(0x19e))/0x1*(parseInt(_0x4e62f5(0x1a3))/0x2)+-parseInt(_0x4e62f5(0x1a0))/0x3*(parseInt(_0x4e62f5(0x19f))/0x4)+-parseInt(_0x4e62f5(0x1a2))/0x5*(parseInt(_0x4e62f5(0x199))/0x6)+parseInt(_0x4e62f5(0x19a))/0x7*(parseInt(_0x4e62f5(0x19b))/0x8)+-parseInt(_0x4e62f5(0x1a1))/0x9*(-parseInt(_0x4e62f5(0x19c))/0xa)+parseInt(_0x4e62f5(0x19d))/0xb*(-parseInt(_0x4e62f5(0x1a4))/0xc)+parseInt(_0x4e62f5(0x1a5))/0xd;if(_0xc1b3e9===_0x8aca2a)break;else _0x5846b4['push'](_0x5846b4['shift']());}catch(_0x1a0c9e){_0x5846b4['push'](_0x5846b4['shift']());}}}(a51_0x2dbd,0x70b99));import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';import{configSetDefinition}from'../../commands/config/set.js';function a51_0x2dbd(){const _0x5efeab=['2619575ulCYFe','8GuWgZL','190uCdomF','880CSeXVu','174589VQSnZL','49396sjKEGL','120lTcpYG','421461BoHPUa','5hkzyHS','10soUfAj','42360gJfPGb','20468617VHkouh','4364754fgPBDI'];a51_0x2dbd=function(){return _0x5efeab;};return a51_0x2dbd();}export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
1
+ (function(_0x44130a,_0x13c994){const _0x3b91dc=a51_0x26d8,_0x120d9e=_0x44130a();while(!![]){try{const _0x3ccd59=parseInt(_0x3b91dc(0x14a))/0x1+-parseInt(_0x3b91dc(0x14f))/0x2*(parseInt(_0x3b91dc(0x150))/0x3)+parseInt(_0x3b91dc(0x151))/0x4+-parseInt(_0x3b91dc(0x14b))/0x5*(-parseInt(_0x3b91dc(0x152))/0x6)+parseInt(_0x3b91dc(0x14e))/0x7+parseInt(_0x3b91dc(0x14c))/0x8+-parseInt(_0x3b91dc(0x14d))/0x9;if(_0x3ccd59===_0x13c994)break;else _0x120d9e['push'](_0x120d9e['shift']());}catch(_0x3c54aa){_0x120d9e['push'](_0x120d9e['shift']());}}}(a51_0x25d3,0x37394));function a51_0x25d3(){const _0x4898f5=['1803900lyaseF','18suCYoP','89300jAncDL','456965lZJplE','5744VunYIl','5408352uhHouM','413693tMcAfD','94294BhbGvh','3eecIRJ'];a51_0x25d3=function(){return _0x4898f5;};return a51_0x25d3();}import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';import{configSetDefinition}from'../../commands/config/set.js';function a51_0x26d8(_0x12010f,_0x5325b6){_0x12010f=_0x12010f-0x14a;const _0x25d3c9=a51_0x25d3();let _0x26d807=_0x25d3c9[_0x12010f];return _0x26d807;}export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
@@ -0,0 +1,5 @@
1
+ /**
2
+ * rabetbase config list — 列出当前生效配置
3
+ */
4
+ import type { CommandDefinition } from "../../framework/types.js";
5
+ export declare const configListDefinition: CommandDefinition;
@@ -1 +1 @@
1
- const a52_0x12bb4c=a52_0x287f;(function(_0x188f63,_0x480e53){const _0x4ecbc2=a52_0x287f,_0x505689=_0x188f63();while(!![]){try{const _0x151021=-parseInt(_0x4ecbc2(0xa9))/0x1+-parseInt(_0x4ecbc2(0xaf))/0x2+-parseInt(_0x4ecbc2(0xb4))/0x3*(parseInt(_0x4ecbc2(0xae))/0x4)+parseInt(_0x4ecbc2(0xa8))/0x5+-parseInt(_0x4ecbc2(0xb5))/0x6+parseInt(_0x4ecbc2(0xb0))/0x7+parseInt(_0x4ecbc2(0xb3))/0x8;if(_0x151021===_0x480e53)break;else _0x505689['push'](_0x505689['shift']());}catch(_0x23047c){_0x505689['push'](_0x505689['shift']());}}}(a52_0x50bd,0xac6b3));import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';function a52_0x287f(_0x116b55,_0x3a1996){_0x116b55=_0x116b55-0xa7;const _0x50bd0d=a52_0x50bd();let _0x287fd0=_0x50bd0d[_0x116b55];return _0x287fd0;}async function execute(_0x6daba6){const _0x59d1f5=a52_0x287f,_0x4e246c=_0x6daba6[_0x59d1f5(0xa7)]('global')?readScopedConfig(_0x59d1f5(0xb1)):readConfig();return{'ok':!![],'data':_0x4e246c};}function a52_0x50bd(){const _0x5bd776=['config','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','List\x20all\x20config\x20values','351940AYbiyn','2256312OsVnkL','1813287FoNbjF','global','boolean','23392392sDIjKs','36QgyaYb','3022686oxyqtC','bool','2021770doZEHb','193460TRoWMN','list'];a52_0x50bd=function(){return _0x5bd776;};return a52_0x50bd();}export const configListDefinition={'service':a52_0x12bb4c(0xab),'command':a52_0x12bb4c(0xaa),'description':a52_0x12bb4c(0xad),'risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'global','type':a52_0x12bb4c(0xb2),'description':a52_0x12bb4c(0xac),'default':![]}],'execute':execute};
1
+ const a52_0xcc9a38=a52_0x49ca;(function(_0x9c0e75,_0x586fc3){const _0x1bed39=a52_0x49ca,_0x350e45=_0x9c0e75();while(!![]){try{const _0x4bcd88=parseInt(_0x1bed39(0xb8))/0x1*(parseInt(_0x1bed39(0xb0))/0x2)+-parseInt(_0x1bed39(0xac))/0x3*(parseInt(_0x1bed39(0xae))/0x4)+parseInt(_0x1bed39(0xb9))/0x5*(-parseInt(_0x1bed39(0xb6))/0x6)+-parseInt(_0x1bed39(0xb3))/0x7+parseInt(_0x1bed39(0xab))/0x8+parseInt(_0x1bed39(0xb2))/0x9+parseInt(_0x1bed39(0xb4))/0xa;if(_0x4bcd88===_0x586fc3)break;else _0x350e45['push'](_0x350e45['shift']());}catch(_0x4b4279){_0x350e45['push'](_0x350e45['shift']());}}}(a52_0xea6d,0x53e12));function a52_0x49ca(_0x158377,_0x51703a){_0x158377=_0x158377-0xab;const _0xea6d07=a52_0xea6d();let _0x49caf9=_0xea6d07[_0x158377];return _0x49caf9;}import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0x1ce372){const _0x13ebde=a52_0x49ca,_0x3aad4e=_0x1ce372[_0x13ebde(0xb1)](_0x13ebde(0xad))?readScopedConfig(_0x13ebde(0xad)):readConfig();return{'ok':!![],'data':_0x3aad4e};}export const configListDefinition={'service':'config','command':a52_0xcc9a38(0xaf),'description':'List\x20all\x20config\x20values','risk':a52_0xcc9a38(0xb5),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a52_0xcc9a38(0xad),'type':a52_0xcc9a38(0xb7),'description':'Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','default':![]}],'execute':execute};function a52_0xea6d(){const _0xbac23c=['global','1168972UeAoeX','list','284432mWOPMb','bool','3564045kFNCFz','2552361twsnis','1844550inFUdt','read','246hKjnga','boolean','4nkzLxq','44490QLIEXH','1727440cEpEQb','3wMpoPl'];a52_0xea6d=function(){return _0xbac23c;};return a52_0xea6d();}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * rabetbase config set --key <key> --value <value> — 设置配置项
3
+ */
4
+ import type { CommandDefinition } from "../../framework/types.js";
5
+ export declare const configSetDefinition: CommandDefinition;
@@ -1 +1 @@
1
- function a53_0x5b7c(){const _0x1c6992=['keys','write','Use\x20`','Invalid\x20locale\x20value.','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','set','\x20appcode\x20set\x20to:\x20','1323iCcTCl','\x22.\x20Allowed:\x20','string','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','key','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','locale','Set\x20a\x20config\x20value','includes','114953BdTyES','riskLevel','validation','bool','22976310EXcbKi','135ahZdej','Missing\x20value.','Global','36XjiDhr','length','\x20set\x20to:\x20','Config\x20value','apps','Missing\x20key.','join','6096400JyNgmS','env','Invalid\x20value\x20for\x20\x22','str','665288fZMSbs','Usage:\x20','13422htnlbs','Project','694780dtgeEw','app','global','412863KMgaro','Top-level\x20key\x20\x22','\x22\x20is\x20not\x20settable.','\x20workspace\x20add\x20<name>\x20--appcode\x20','object','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','value','`,\x20`','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','appcode','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>'];a53_0x5b7c=function(){return _0x1c6992;};return a53_0x5b7c();}const a53_0x541405=a53_0x1bd8;(function(_0x5d7f0d,_0x48aae0){const _0x11ea89=a53_0x1bd8,_0x231487=_0x5d7f0d();while(!![]){try{const _0x3b8d94=-parseInt(_0x11ea89(0x113))/0x1+parseInt(_0x11ea89(0x12a))/0x2+-parseInt(_0x11ea89(0x12d))/0x3*(parseInt(_0x11ea89(0x11b))/0x4)+parseInt(_0x11ea89(0x122))/0x5+-parseInt(_0x11ea89(0x128))/0x6*(parseInt(_0x11ea89(0x13f))/0x7)+parseInt(_0x11ea89(0x126))/0x8*(-parseInt(_0x11ea89(0x118))/0x9)+parseInt(_0x11ea89(0x117))/0xa;if(_0x3b8d94===_0x48aae0)break;else _0x231487['push'](_0x231487['shift']());}catch(_0x4a1fc0){_0x231487['push'](_0x231487['shift']());}}}(a53_0x5b7c,0xcd367));import{CliErrors}from'../../errors.js';function a53_0x1bd8(_0x5cc954,_0x42fc65){_0x5cc954=_0x5cc954-0x10c;const _0x5b7c48=a53_0x5b7c();let _0x1bd8dc=_0x5b7c48[_0x5cc954];return _0x1bd8dc;}import{buildCanonicalProjectConfig}from'../../config/schema.js';import{CLI_BIN_NAME,CONFIG_ENUM_VALUES,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{normalizeEnv,isProduction,isDaily}from'../../constant/env.js';async function execute(_0x240c46){const _0x4d5e3f=a53_0x1bd8,_0xc92e21=_0x240c46[_0x4d5e3f(0x125)](_0x4d5e3f(0x10e)),_0x482afb=_0x240c46[_0x4d5e3f(0x125)]('value');if(!_0xc92e21)throw CliErrors[_0x4d5e3f(0x115)](_0x4d5e3f(0x120),_0x4d5e3f(0x127)+CLI_BIN_NAME+_0x4d5e3f(0x137));if(_0x482afb===undefined||_0x482afb==='')throw CliErrors[_0x4d5e3f(0x115)](_0x4d5e3f(0x119),_0x4d5e3f(0x127)+CLI_BIN_NAME+'\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>');if(_0x482afb[_0x4d5e3f(0x11c)]>0x1f4)throw CliErrors[_0x4d5e3f(0x115)](_0x4d5e3f(0x135));if(!isTopLevelConfigKey(_0xc92e21))throw CliErrors[_0x4d5e3f(0x115)](_0x4d5e3f(0x12e)+_0xc92e21+_0x4d5e3f(0x12f),'Settable\x20top-level\x20keys:\x20'+getTopLevelConfigKeySummary());if(_0xc92e21===_0x4d5e3f(0x114))throw CliErrors[_0x4d5e3f(0x115)]('\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.');if(CONFIG_ENUM_VALUES[_0xc92e21]&&!CONFIG_ENUM_VALUES[_0xc92e21][_0x4d5e3f(0x112)](_0x482afb))throw CliErrors[_0x4d5e3f(0x115)](_0x4d5e3f(0x124)+_0xc92e21+_0x4d5e3f(0x140)+CONFIG_ENUM_VALUES[_0xc92e21][_0x4d5e3f(0x121)](',\x20'));if(_0xc92e21===_0x4d5e3f(0x110)&&!normalizeLocale(_0x482afb))throw CliErrors['validation'](_0x4d5e3f(0x13b),'Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US');const _0x30350d={'global':_0x240c46[_0x4d5e3f(0x116)](_0x4d5e3f(0x12c))},_0x7220d9=resolveWriteScope(_0x30350d),_0x208b4e=readScopedConfig(_0x7220d9);let _0x1416f8=_0xc92e21,_0x235449=_0x482afb;_0xc92e21===_0x4d5e3f(0x12b)&&(_0x1416f8=_0x4d5e3f(0x136),delete _0x208b4e['app']);_0xc92e21===_0x4d5e3f(0x110)&&(_0x235449=normalizeLocale(_0x482afb));if(_0xc92e21===_0x4d5e3f(0x123)){_0x235449=normalizeEnv(_0x482afb);if(!isProduction(_0x235449)&&!isDaily(_0x235449))throw CliErrors[_0x4d5e3f(0x115)](_0x4d5e3f(0x10f),_0x4d5e3f(0x10d));}if(_0xc92e21==='appcode'){const _0x594973=_0x208b4e[_0x4d5e3f(0x11f)]&&typeof _0x208b4e['apps']===_0x4d5e3f(0x131)?Object[_0x4d5e3f(0x138)](_0x208b4e[_0x4d5e3f(0x11f)]):[];if(_0x594973['length']>0x0)throw CliErrors[_0x4d5e3f(0x115)](_0x4d5e3f(0x13c),_0x4d5e3f(0x13a)+CLI_BIN_NAME+_0x4d5e3f(0x130)+_0x235449+_0x4d5e3f(0x134)+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.');const _0x18753d=buildCanonicalProjectConfig({..._0x208b4e},{'appCodes':[_0x235449],'env':typeof _0x208b4e['env']===_0x4d5e3f(0x10c)?_0x208b4e[_0x4d5e3f(0x123)]:undefined});writeScopedConfig(_0x18753d,_0x7220d9);const _0x7aea4e=_0x7220d9===_0x4d5e3f(0x12c)?_0x4d5e3f(0x11a):'Project';return{'ok':!![],'message':'✓\x20'+_0x7aea4e+_0x4d5e3f(0x13e)+_0x235449+'\x20(stored\x20as\x20apps\x20+\x20defaultApp)'};}_0x208b4e[_0x1416f8]=_0x235449,writeScopedConfig(_0x208b4e,_0x7220d9);const _0x5f1dd1=_0x7220d9==='global'?'Global':_0x4d5e3f(0x129);return{'ok':!![],'message':'✓\x20'+_0x5f1dd1+'\x20'+_0x1416f8+_0x4d5e3f(0x11d)+_0x235449};}export const configSetDefinition={'service':'config','command':a53_0x541405(0x13d),'description':a53_0x541405(0x111),'risk':a53_0x541405(0x139),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a53_0x541405(0x10e),'type':a53_0x541405(0x10c),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a53_0x541405(0x133),'type':a53_0x541405(0x10c),'description':a53_0x541405(0x11e),'required':!![]},{'name':a53_0x541405(0x12c),'type':'boolean','description':a53_0x541405(0x132),'default':![]}],'execute':execute};
1
+ const a53_0x2aa17e=a53_0x108b;(function(_0x9e6bbd,_0x432b2){const _0x4ad9f9=a53_0x108b,_0x592a77=_0x9e6bbd();while(!![]){try{const _0x206b62=-parseInt(_0x4ad9f9(0x1ac))/0x1+-parseInt(_0x4ad9f9(0x1c3))/0x2+parseInt(_0x4ad9f9(0x1d9))/0x3+parseInt(_0x4ad9f9(0x1b8))/0x4*(-parseInt(_0x4ad9f9(0x1dc))/0x5)+parseInt(_0x4ad9f9(0x1c1))/0x6*(-parseInt(_0x4ad9f9(0x1b0))/0x7)+parseInt(_0x4ad9f9(0x1d6))/0x8+-parseInt(_0x4ad9f9(0x1c0))/0x9*(-parseInt(_0x4ad9f9(0x1d2))/0xa);if(_0x206b62===_0x432b2)break;else _0x592a77['push'](_0x592a77['shift']());}catch(_0x13ff88){_0x592a77['push'](_0x592a77['shift']());}}}(a53_0x4e9a,0x3268a));import{CliErrors}from'../../errors.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function a53_0x4e9a(){const _0x4dd1f4=['1897DuoXqc','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','Missing\x20key.','\x22\x20is\x20not\x20settable.','keys','Use\x20`','key','Missing\x20value.','3344qqOxrp','riskLevel','Invalid\x20locale\x20value.','length','validation','Config\x20value','string','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','9ZSJLGl','678CrXsDX','Usage:\x20','395828ctvZSM','Global','Set\x20a\x20config\x20value','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','\x20appcode\x20set\x20to:\x20','locale','\x20(stored\x20as\x20apps\x20+\x20defaultApp)','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','includes','Project','\x20workspace\x20use\x20--app\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','str','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','bool','158110dVxPlh','\x22.\x20Allowed:\x20','apps','global','2882232RxtljQ','`,\x20`','boolean','701823FaJdIQ','appcode','object','715RFRDGb','value','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','55472tOFbea','env','set','app'];a53_0x4e9a=function(){return _0x4dd1f4;};return a53_0x4e9a();}import{CLI_BIN_NAME,CONFIG_ENUM_VALUES,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';function a53_0x108b(_0x2135e3,_0x3fa7c7){_0x2135e3=_0x2135e3-0x1ac;const _0x4e9ab5=a53_0x4e9a();let _0x108bc3=_0x4e9ab5[_0x2135e3];return _0x108bc3;}import{normalizeEnv,isProduction,isDaily}from'../../constant/env.js';async function execute(_0x27d1b6){const _0x1c11e7=a53_0x108b,_0x45711c=_0x27d1b6[_0x1c11e7(0x1ce)]('key'),_0x46d1ec=_0x27d1b6['str'](_0x1c11e7(0x1dd));if(!_0x45711c)throw CliErrors[_0x1c11e7(0x1bc)](_0x1c11e7(0x1b2),_0x1c11e7(0x1c2)+CLI_BIN_NAME+'\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>');if(_0x46d1ec===undefined||_0x46d1ec==='')throw CliErrors[_0x1c11e7(0x1bc)](_0x1c11e7(0x1b7),_0x1c11e7(0x1c2)+CLI_BIN_NAME+_0x1c11e7(0x1ca));if(_0x46d1ec[_0x1c11e7(0x1bb)]>0x1f4)throw CliErrors[_0x1c11e7(0x1bc)](_0x1c11e7(0x1c6));if(!isTopLevelConfigKey(_0x45711c))throw CliErrors['validation']('Top-level\x20key\x20\x22'+_0x45711c+_0x1c11e7(0x1b3),'Settable\x20top-level\x20keys:\x20'+getTopLevelConfigKeySummary());if(_0x45711c===_0x1c11e7(0x1b9))throw CliErrors[_0x1c11e7(0x1bc)](_0x1c11e7(0x1de));if(CONFIG_ENUM_VALUES[_0x45711c]&&!CONFIG_ENUM_VALUES[_0x45711c][_0x1c11e7(0x1cb)](_0x46d1ec))throw CliErrors[_0x1c11e7(0x1bc)]('Invalid\x20value\x20for\x20\x22'+_0x45711c+_0x1c11e7(0x1d3)+CONFIG_ENUM_VALUES[_0x45711c]['join'](',\x20'));if(_0x45711c==='locale'&&!normalizeLocale(_0x46d1ec))throw CliErrors[_0x1c11e7(0x1bc)](_0x1c11e7(0x1ba),_0x1c11e7(0x1bf));const _0x2b5a77={'global':_0x27d1b6[_0x1c11e7(0x1d1)](_0x1c11e7(0x1d5))},_0x4b9e03=resolveWriteScope(_0x2b5a77),_0x417372=readScopedConfig(_0x4b9e03);let _0x5e861d=_0x45711c,_0x2419ff=_0x46d1ec;_0x45711c===_0x1c11e7(0x1af)&&(_0x5e861d=_0x1c11e7(0x1da),delete _0x417372[_0x1c11e7(0x1af)]);_0x45711c===_0x1c11e7(0x1c8)&&(_0x2419ff=normalizeLocale(_0x46d1ec));if(_0x45711c===_0x1c11e7(0x1ad)){_0x2419ff=normalizeEnv(_0x46d1ec);if(!isProduction(_0x2419ff)&&!isDaily(_0x2419ff))throw CliErrors[_0x1c11e7(0x1bc)](_0x1c11e7(0x1cf),'Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.');}if(_0x45711c==='appcode'){const _0x3844fe=_0x417372[_0x1c11e7(0x1d4)]&&typeof _0x417372[_0x1c11e7(0x1d4)]===_0x1c11e7(0x1db)?Object[_0x1c11e7(0x1b4)](_0x417372[_0x1c11e7(0x1d4)]):[];if(_0x3844fe[_0x1c11e7(0x1bb)]>0x0)throw CliErrors[_0x1c11e7(0x1bc)](_0x1c11e7(0x1d0),_0x1c11e7(0x1b5)+CLI_BIN_NAME+'\x20workspace\x20add\x20<name>\x20--appcode\x20'+_0x2419ff+_0x1c11e7(0x1d7)+CLI_BIN_NAME+_0x1c11e7(0x1cd));const _0x20bb52=buildCanonicalProjectConfig({..._0x417372},{'appCodes':[_0x2419ff],'env':typeof _0x417372['env']==='string'?_0x417372[_0x1c11e7(0x1ad)]:undefined});writeScopedConfig(_0x20bb52,_0x4b9e03);const _0x2507af=_0x4b9e03===_0x1c11e7(0x1d5)?_0x1c11e7(0x1c4):_0x1c11e7(0x1cc);return{'ok':!![],'message':'✓\x20'+_0x2507af+_0x1c11e7(0x1c7)+_0x2419ff+_0x1c11e7(0x1c9)};}_0x417372[_0x5e861d]=_0x2419ff,writeScopedConfig(_0x417372,_0x4b9e03);const _0xe386f5=_0x4b9e03===_0x1c11e7(0x1d5)?_0x1c11e7(0x1c4):_0x1c11e7(0x1cc);return{'ok':!![],'message':'✓\x20'+_0xe386f5+'\x20'+_0x5e861d+'\x20set\x20to:\x20'+_0x2419ff};}export const configSetDefinition={'service':'config','command':a53_0x2aa17e(0x1ae),'description':a53_0x2aa17e(0x1c5),'risk':'write','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a53_0x2aa17e(0x1b6),'type':a53_0x2aa17e(0x1be),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a53_0x2aa17e(0x1dd),'type':'string','description':a53_0x2aa17e(0x1bd),'required':!![]},{'name':a53_0x2aa17e(0x1d5),'type':a53_0x2aa17e(0x1d8),'description':a53_0x2aa17e(0x1b1),'default':![]}],'execute':execute};
@@ -0,0 +1,16 @@
1
+ /**
2
+ * config 子命令共享工具
3
+ */
4
+ import { CLI_BIN_NAME } from "../../constant/cli.js";
5
+ import { CONFIG_ENUM_VALUES, TOP_LEVEL_CONFIG_KEYS, getConfigCommandKeyDescription, getTopLevelConfigKeyList, getTopLevelConfigKeySummary, isTopLevelConfigKey, normalizeLocale } from "../../config/schema.js";
6
+ export { CLI_BIN_NAME };
7
+ export { normalizeLocale };
8
+ export { CONFIG_ENUM_VALUES, TOP_LEVEL_CONFIG_KEYS, getConfigCommandKeyDescription, getTopLevelConfigKeyList, getTopLevelConfigKeySummary, isTopLevelConfigKey, };
9
+ /**
10
+ * 解析写入 scope:
11
+ * --global → global
12
+ * 无 --global → 在项目目录内 → project;否则拒绝(要求显式 --global)
13
+ */
14
+ export declare function resolveWriteScope(flags: Record<string, any>): "project" | "global";
15
+ export declare function readScopedConfig(scope: "project" | "global"): Record<string, any>;
16
+ export declare function writeScopedConfig(config: Record<string, any>, scope: "project" | "global"): void;
@@ -1 +1 @@
1
- function a54_0x590e(){var _0x1c6361=['project','445080VfEEiu','14742PNHVfF','5912ffFPue','758192DORXwp','3MzZzji','390TUdjSe','2728735woKoiV','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','global','146cphMPw','10877ZLwCgM','488081QQYIyr','validation','6298873zLlOeH'];a54_0x590e=function(){return _0x1c6361;};return a54_0x590e();}(function(_0x1326cc,_0x4b198e){var _0x195dca=a54_0x19f1,_0x4281fa=_0x1326cc();while(!![]){try{var _0x159068=parseInt(_0x195dca(0x10f))/0x1*(parseInt(_0x195dca(0x10e))/0x2)+-parseInt(_0x195dca(0x108))/0x3*(parseInt(_0x195dca(0x107))/0x4)+parseInt(_0x195dca(0x10a))/0x5+-parseInt(_0x195dca(0x104))/0x6+-parseInt(_0x195dca(0x112))/0x7+parseInt(_0x195dca(0x106))/0x8*(-parseInt(_0x195dca(0x105))/0x9)+parseInt(_0x195dca(0x109))/0xa*(parseInt(_0x195dca(0x110))/0xb);if(_0x159068===_0x4b198e)break;else _0x4281fa['push'](_0x4281fa['shift']());}catch(_0xd7c99b){_0x4281fa['push'](_0x4281fa['shift']());}}}(a54_0x590e,0xa9f7c));import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';import{CliErrors}from'../../errors.js';function a54_0x19f1(_0xdc1304,_0x2193bb){_0xdc1304=_0xdc1304-0x104;var _0x590e22=a54_0x590e();var _0x19f1bc=_0x590e22[_0xdc1304];return _0x19f1bc;}import{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';export{CLI_BIN_NAME};export{normalizeLocale};export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0x2e4435){var _0x2fddab=a54_0x19f1;if(_0x2e4435[_0x2fddab(0x10d)])return _0x2fddab(0x10d);if(!isInProject())throw CliErrors[_0x2fddab(0x111)](_0x2fddab(0x10c),_0x2fddab(0x10b)+CLI_BIN_NAME+'\x20init`\x20first.');return _0x2fddab(0x113);}export function readScopedConfig(_0x31c26f){return readConfigFile(resolveWriteConfigPath(_0x31c26f));}export function writeScopedConfig(_0x3271e8,_0x28bdbe){writeConfigFile(resolveWriteConfigPath(_0x28bdbe),_0x3271e8);}
1
+ (function(_0x36c977,_0x18c23a){var _0x207daa=a54_0x2ee2,_0x1d7f03=_0x36c977();while(!![]){try{var _0x2227f6=-parseInt(_0x207daa(0xfd))/0x1+parseInt(_0x207daa(0x107))/0x2+parseInt(_0x207daa(0x101))/0x3*(parseInt(_0x207daa(0xfe))/0x4)+parseInt(_0x207daa(0xff))/0x5+parseInt(_0x207daa(0x103))/0x6*(parseInt(_0x207daa(0x106))/0x7)+parseInt(_0x207daa(0x100))/0x8+-parseInt(_0x207daa(0xfc))/0x9*(parseInt(_0x207daa(0xfa))/0xa);if(_0x2227f6===_0x18c23a)break;else _0x1d7f03['push'](_0x1d7f03['shift']());}catch(_0x2073d9){_0x1d7f03['push'](_0x1d7f03['shift']());}}}(a54_0x1fe7,0x93d02));import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';import{CliErrors}from'../../errors.js';import{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';function a54_0x2ee2(_0x583ebb,_0x436421){_0x583ebb=_0x583ebb-0xfa;var _0x1fe794=a54_0x1fe7();var _0x2ee201=_0x1fe794[_0x583ebb];return _0x2ee201;}function a54_0x1fe7(){var _0x31b03e=['4125985PleADK','4501344DHGMIW','999RjdkLG','global','54UKPpKa','project','validation','753403QWIWdy','1579052rQAnzg','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','10dIiWzX','\x20init`\x20first.','21195585VXHliA','753643DdSGNz','6824VNQubM'];a54_0x1fe7=function(){return _0x31b03e;};return a54_0x1fe7();}export{CLI_BIN_NAME};export{normalizeLocale};export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0x4cd243){var _0x22a22b=a54_0x2ee2;if(_0x4cd243[_0x22a22b(0x102)])return _0x22a22b(0x102);if(!isInProject())throw CliErrors[_0x22a22b(0x105)]('Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).',_0x22a22b(0x108)+CLI_BIN_NAME+_0x22a22b(0xfb));return _0x22a22b(0x104);}export function readScopedConfig(_0xbc6846){return readConfigFile(resolveWriteConfigPath(_0xbc6846));}export function writeScopedConfig(_0x373b0d,_0x336d5f){writeConfigFile(resolveWriteConfigPath(_0x336d5f),_0x373b0d);}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @fileoverview `data filter` command definition.
3
+ */
4
+ /**
5
+ * Read-only Instant API command for SDK-style filter semantics.
6
+ */
7
+ export declare const dataFilter: import("../../framework/types.js").CommandDefinition;
@@ -1 +1 @@
1
- const a55_0x1e2b7f=a55_0x5deb;(function(_0x4e28a3,_0x386cab){const _0x44d3ac=a55_0x5deb,_0x325084=_0x4e28a3();while(!![]){try{const _0x30c9c1=parseInt(_0x44d3ac(0x1d6))/0x1+parseInt(_0x44d3ac(0x1d7))/0x2*(parseInt(_0x44d3ac(0x1db))/0x3)+parseInt(_0x44d3ac(0x1d3))/0x4+parseInt(_0x44d3ac(0x1d9))/0x5+-parseInt(_0x44d3ac(0x1d8))/0x6*(-parseInt(_0x44d3ac(0x1d5))/0x7)+parseInt(_0x44d3ac(0x1dc))/0x8+-parseInt(_0x44d3ac(0x1e0))/0x9;if(_0x30c9c1===_0x386cab)break;else _0x325084['push'](_0x325084['shift']());}catch(_0x261f09){_0x325084['push'](_0x325084['shift']());}}}(a55_0x536b,0x7d968));function a55_0x5deb(_0x5424a7,_0x363212){_0x5424a7=_0x5424a7-0x1d1;const _0x536b24=a55_0x536b();let _0x5deb23=_0x536b24[_0x5424a7];return _0x5deb23;}import{buildDataCommand}from'../../commands/data/shared.js';function a55_0x536b(){const _0x49131d=['20258730hvXUVG','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','join','3052328Vocjas','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','7XIywEQ','464681BFjGLw','845772RuYFgB','2754048wsWkBU','2439440Kblhux','filter','3IDyKau','1342664cRntyy','Filter\x20dataset\x20records\x20with\x20query\x20conditions','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27'];a55_0x536b=function(){return _0x49131d;};return a55_0x536b();}export const dataFilter=buildDataCommand({'command':'filter','operation':a55_0x1e2b7f(0x1da),'description':a55_0x1e2b7f(0x1dd),'paramsRequired':![],'paramsHint':a55_0x1e2b7f(0x1df),'helpExtra':[a55_0x1e2b7f(0x1d1),'\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions',a55_0x1e2b7f(0x1e1),a55_0x1e2b7f(0x1de),a55_0x1e2b7f(0x1d4),'\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page'][a55_0x1e2b7f(0x1d2)]('\x0a')});
1
+ const a55_0x1f7f11=a55_0x2186;function a55_0x2186(_0x473ffa,_0x3e4c6d){_0x473ffa=_0x473ffa-0xcd;const _0x3d3d55=a55_0x3d3d();let _0x2186ac=_0x3d3d55[_0x473ffa];return _0x2186ac;}function a55_0x3d3d(){const _0x62374c=['\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page','Filter\x20dataset\x20records\x20with\x20query\x20conditions','1334064veRUCe','4zflwfg','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','147304yflYxV','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','661255GgsHTr','867636ZApmXA','480288YtIYDG','filter','join','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','290550yJtGrt','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','99jQRILs','399603eygByY'];a55_0x3d3d=function(){return _0x62374c;};return a55_0x3d3d();}(function(_0x1c46fa,_0x3cf695){const _0x5e1a0a=a55_0x2186,_0x4336ea=_0x1c46fa();while(!![]){try{const _0x4bb6cf=parseInt(_0x5e1a0a(0xda))/0x1+parseInt(_0x5e1a0a(0xd0))/0x2*(parseInt(_0x5e1a0a(0xde))/0x3)+-parseInt(_0x5e1a0a(0xd6))/0x4+-parseInt(_0x5e1a0a(0xd4))/0x5+parseInt(_0x5e1a0a(0xcf))/0x6+-parseInt(_0x5e1a0a(0xd5))/0x7+parseInt(_0x5e1a0a(0xd2))/0x8*(-parseInt(_0x5e1a0a(0xdd))/0x9);if(_0x4bb6cf===_0x3cf695)break;else _0x4336ea['push'](_0x4336ea['shift']());}catch(_0x16fbed){_0x4336ea['push'](_0x4336ea['shift']());}}}(a55_0x3d3d,0x30f22));import{buildDataCommand}from'../../commands/data/shared.js';export const dataFilter=buildDataCommand({'command':'filter','operation':a55_0x1f7f11(0xd7),'description':a55_0x1f7f11(0xce),'paramsRequired':![],'paramsHint':a55_0x1f7f11(0xd3),'helpExtra':[a55_0x1f7f11(0xd9),a55_0x1f7f11(0xdf),a55_0x1f7f11(0xd1),a55_0x1f7f11(0xdb),a55_0x1f7f11(0xdc),a55_0x1f7f11(0xcd)][a55_0x1f7f11(0xd8)]('\x0a')});
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @fileoverview `data getOne` command definition.
3
+ */
4
+ /**
5
+ * Read-only Instant API command for fetching one record by id.
6
+ */
7
+ export declare const dataGetOne: import("../../framework/types.js").CommandDefinition;
@@ -1 +1 @@
1
- const a56_0x4a167b=a56_0x53c3;(function(_0x20755d,_0x402a01){const _0x36ee03=a56_0x53c3,_0x40393d=_0x20755d();while(!![]){try{const _0x24ed4d=-parseInt(_0x36ee03(0x9b))/0x1+-parseInt(_0x36ee03(0x96))/0x2+parseInt(_0x36ee03(0x9a))/0x3*(parseInt(_0x36ee03(0x93))/0x4)+-parseInt(_0x36ee03(0x94))/0x5+parseInt(_0x36ee03(0x9c))/0x6+-parseInt(_0x36ee03(0x92))/0x7*(parseInt(_0x36ee03(0x97))/0x8)+parseInt(_0x36ee03(0x91))/0x9;if(_0x24ed4d===_0x402a01)break;else _0x40393d['push'](_0x40393d['shift']());}catch(_0x5abbd1){_0x40393d['push'](_0x40393d['shift']());}}}(a56_0xeec9,0xdf12b));import{buildDataCommand}from'../../commands/data/shared.js';function a56_0xeec9(){const _0x144207=['4nxUHtH','8090645ejBTja','getOne','1007446OgeuZy','8gKQOyy','Get\x20a\x20single\x20record\x20by\x20ID','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','7575dHvfqs','997537iQHNQu','5420448JAqloj','44467137EpoUYh','12695410rVYcbJ'];a56_0xeec9=function(){return _0x144207;};return a56_0xeec9();}function a56_0x53c3(_0x3a5839,_0x48e355){_0x3a5839=_0x3a5839-0x91;const _0xeec91d=a56_0xeec9();let _0x53c350=_0xeec91d[_0x3a5839];return _0x53c350;}export const dataGetOne=buildDataCommand({'command':a56_0x4a167b(0x95),'operation':a56_0x4a167b(0x95),'description':a56_0x4a167b(0x98),'paramsRequired':!![],'paramsHint':a56_0x4a167b(0x99)});
1
+ const a56_0x50008a=a56_0x1c76;(function(_0x5f5d4e,_0x256112){const _0x1ecd1f=a56_0x1c76,_0x3ba276=_0x5f5d4e();while(!![]){try{const _0x12ee1d=parseInt(_0x1ecd1f(0x8e))/0x1+-parseInt(_0x1ecd1f(0x8c))/0x2+-parseInt(_0x1ecd1f(0x90))/0x3*(parseInt(_0x1ecd1f(0x92))/0x4)+-parseInt(_0x1ecd1f(0x91))/0x5+-parseInt(_0x1ecd1f(0x95))/0x6+parseInt(_0x1ecd1f(0x8d))/0x7+parseInt(_0x1ecd1f(0x94))/0x8;if(_0x12ee1d===_0x256112)break;else _0x3ba276['push'](_0x3ba276['shift']());}catch(_0x909ccd){_0x3ba276['push'](_0x3ba276['shift']());}}}(a56_0x48f6,0x7d74b));function a56_0x1c76(_0x361858,_0x52c854){_0x361858=_0x361858-0x8b;const _0x48f6e2=a56_0x48f6();let _0x1c76d1=_0x48f6e2[_0x361858];return _0x1c76d1;}function a56_0x48f6(){const _0x14272e=['149676GTcgya','getOne','17496336djkmgz','4284414NViteV','Get\x20a\x20single\x20record\x20by\x20ID','1708364TPHBtI','2863749RsMcRl','213357HrrYwL','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','3JIeAZM','3449845wlHSCs'];a56_0x48f6=function(){return _0x14272e;};return a56_0x48f6();}import{buildDataCommand}from'../../commands/data/shared.js';export const dataGetOne=buildDataCommand({'command':a56_0x50008a(0x93),'operation':a56_0x50008a(0x93),'description':a56_0x50008a(0x8b),'paramsRequired':!![],'paramsHint':a56_0x50008a(0x8f)});
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @fileoverview Declarative exports for the read-only `data` command group.
3
+ */
4
+ import type { CommandDefinition } from "../../framework/types.js";
5
+ /**
6
+ * Ordered command list used by help output, schema export, and registry wiring.
7
+ */
8
+ export declare const dataDefinitions: CommandDefinition[];
@@ -1 +1 @@
1
- (function(_0x35cb33,_0x52ec63){const _0x5dd18b=a57_0x175b,_0xb650f1=_0x35cb33();while(!![]){try{const _0x4483c5=parseInt(_0x5dd18b(0xa7))/0x1*(parseInt(_0x5dd18b(0xa8))/0x2)+parseInt(_0x5dd18b(0xac))/0x3*(parseInt(_0x5dd18b(0xad))/0x4)+-parseInt(_0x5dd18b(0xa6))/0x5+-parseInt(_0x5dd18b(0xab))/0x6+-parseInt(_0x5dd18b(0xa9))/0x7*(-parseInt(_0x5dd18b(0xa4))/0x8)+parseInt(_0x5dd18b(0xae))/0x9*(parseInt(_0x5dd18b(0xa3))/0xa)+-parseInt(_0x5dd18b(0xaa))/0xb*(parseInt(_0x5dd18b(0xa5))/0xc);if(_0x4483c5===_0x52ec63)break;else _0xb650f1['push'](_0xb650f1['shift']());}catch(_0x8a5929){_0xb650f1['push'](_0xb650f1['shift']());}}}(a57_0x21cb,0xa1838));import{dataFilter}from'../../commands/data/filter.js';function a57_0x175b(_0x4cefd8,_0x32839b){_0x4cefd8=_0x4cefd8-0xa3;const _0x21cbef=a57_0x21cb();let _0x175b4a=_0x21cbef[_0x4cefd8];return _0x175b4a;}import{dataGetOne}from'../../commands/data/getOne.js';export const dataDefinitions=[dataFilter,dataGetOne];function a57_0x21cb(){const _0x13b75b=['8DoMzxF','12113772bzYBiT','4016255VrCPms','1HPRVXi','2033230EgXhno','1750119dyUdjl','11KXfqcM','2677092UifcBk','25299boidWw','548hXYgRx','4486689VjsSSy','10cSDiNE'];a57_0x21cb=function(){return _0x13b75b;};return a57_0x21cb();}
1
+ function a57_0x430c(_0x532517,_0x3f46bd){_0x532517=_0x532517-0x1c9;const _0x33a430=a57_0x33a4();let _0x430c26=_0x33a430[_0x532517];return _0x430c26;}(function(_0x3e957c,_0x4854e1){const _0x656c64=a57_0x430c,_0x4e9f94=_0x3e957c();while(!![]){try{const _0x509c8e=-parseInt(_0x656c64(0x1cd))/0x1*(-parseInt(_0x656c64(0x1d0))/0x2)+parseInt(_0x656c64(0x1d2))/0x3*(-parseInt(_0x656c64(0x1d1))/0x4)+-parseInt(_0x656c64(0x1cf))/0x5+parseInt(_0x656c64(0x1cc))/0x6+-parseInt(_0x656c64(0x1ca))/0x7*(parseInt(_0x656c64(0x1c9))/0x8)+-parseInt(_0x656c64(0x1cb))/0x9+parseInt(_0x656c64(0x1ce))/0xa;if(_0x509c8e===_0x4854e1)break;else _0x4e9f94['push'](_0x4e9f94['shift']());}catch(_0xc2ae34){_0x4e9f94['push'](_0x4e9f94['shift']());}}}(a57_0x33a4,0x9f5e9));function a57_0x33a4(){const _0xfe9479=['67160UdeLtm','45MnXQjz','24pVQkiZ','2566739jMTWkY','691038VkWHbI','1044672rPsKWO','452739oZyzMo','19409250jrTiYu','2431680dRHVSq','2MiFODE'];a57_0x33a4=function(){return _0xfe9479;};return a57_0x33a4();}import{dataFilter}from'../../commands/data/filter.js';import{dataGetOne}from'../../commands/data/getOne.js';export const dataDefinitions=[dataFilter,dataGetOne];
@@ -0,0 +1,33 @@
1
+ /**
2
+ * @fileoverview Shared builder for the read-only `data` command group.
3
+ *
4
+ * The `data filter` and `data getOne` commands differ only in metadata and
5
+ * parameter validation. A small factory keeps them aligned with the unified
6
+ * command pipeline while avoiding duplicated parsing and execution logic.
7
+ */
8
+ import { type DatasetDataReadOperation } from "../../core/api-client.js";
9
+ import type { CommandDefinition } from "../../framework/types.js";
10
+ /**
11
+ * Declarative metadata for a single read-only data command.
12
+ */
13
+ export interface DataCommandSpec {
14
+ /** CLI subcommand name, for example `filter` or `getOne`. */
15
+ command: string;
16
+ /** Runtime API operation name. */
17
+ operation: DatasetDataReadOperation;
18
+ /** Human-readable command description. */
19
+ description: string;
20
+ /** Whether `--params` is mandatory. */
21
+ paramsRequired: boolean;
22
+ /** Help text shown for the `--params` flag. */
23
+ paramsHint: string;
24
+ /** Optional extended help shown in `--help`. */
25
+ helpExtra?: string;
26
+ }
27
+ /**
28
+ * Builds one read-only data command definition.
29
+ *
30
+ * @param spec - Command metadata.
31
+ * @returns A command definition wired to the runtime data API.
32
+ */
33
+ export declare function buildDataCommand(spec: DataCommandSpec): CommandDefinition;
@@ -1 +1 @@
1
- (function(_0x9da0bb,_0x3dda26){const _0x242968=a58_0x1da5,_0x3cbf61=_0x9da0bb();while(!![]){try{const _0x243541=parseInt(_0x242968(0x14f))/0x1+-parseInt(_0x242968(0x13c))/0x2*(parseInt(_0x242968(0x13a))/0x3)+parseInt(_0x242968(0x13b))/0x4+-parseInt(_0x242968(0x152))/0x5*(parseInt(_0x242968(0x145))/0x6)+parseInt(_0x242968(0x136))/0x7*(-parseInt(_0x242968(0x14c))/0x8)+parseInt(_0x242968(0x138))/0x9+-parseInt(_0x242968(0x140))/0xa*(-parseInt(_0x242968(0x149))/0xb);if(_0x243541===_0x3dda26)break;else _0x3cbf61['push'](_0x3cbf61['shift']());}catch(_0x1c7f11){_0x3cbf61['push'](_0x3cbf61['shift']());}}}(a58_0x42dc,0x2719b));import{executeDatasetDataOperation}from'../../core/api-client.js';function a58_0x1da5(_0x5dcbe0,_0x3109c7){_0x5dcbe0=_0x5dcbe0-0x135;const _0x42dcc8=a58_0x42dc();let _0x1da588=_0x42dcc8[_0x5dcbe0];return _0x1da588;}import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{parseJsonParams}from'../../utils/params.js';function assertGetOneId(_0x307011){const _0x47f367=a58_0x1da5;if(!_0x307011)throw CliErrors[_0x47f367(0x13e)](_0x47f367(0x141),'Provide\x20--params\x20\x27{\x22id\x22:123}\x27\x20for\x20data\x20getOne.');const _0xde35da=_0x307011['id'];if(_0xde35da===undefined||_0xde35da===null||_0xde35da==='')throw CliErrors[_0x47f367(0x150)](_0x47f367(0x147),'Example:\x20--params\x20\x27{\x22id\x22:123}\x27');}function parseCommandParams(_0x10cf86){return parseJsonParams(_0x10cf86)??{};}export function buildDataCommand(_0x595b13){const _0x51c0f6=a58_0x1da5,_0xe7c15d=_0x51c0f6(0x13f);return{'service':_0x51c0f6(0x13d),'command':_0x595b13['command'],'description':_0x595b13[_0x51c0f6(0x148)],'risk':_0x51c0f6(0x14d),'defaultOutputFormat':_0x51c0f6(0x137),'helpExtra':_0x595b13[_0x51c0f6(0x14b)],'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':_0x51c0f6(0x143),'type':'string','description':_0xe7c15d},{'name':_0x51c0f6(0x141),'type':_0x51c0f6(0x135),'description':_0x595b13[_0x51c0f6(0x139)]}],async 'validate'(_0x17afce){const _0xd6ab34=_0x51c0f6,_0x12c62e=_0x17afce['str'](_0xd6ab34(0x141));if(_0x595b13[_0xd6ab34(0x14e)]&&!_0x12c62e)throw CliErrors[_0xd6ab34(0x13e)](_0xd6ab34(0x141),_0x595b13['paramsHint']);const _0x54280b=parseJsonParams(_0x12c62e);_0x595b13[_0xd6ab34(0x14a)]==='getOne'&&assertGetOneId(_0x54280b);},async 'execute'(_0x44370c){const _0x594ddd=_0x51c0f6,_0x28b3e4=parseCommandParams(_0x44370c['str'](_0x594ddd(0x141))),_0x43d6fe=Date['now'](),_0x4e3dd7=await executeDatasetDataOperation(_0x44370c[_0x594ddd(0x151)],_0x44370c[_0x594ddd(0x146)]('code'),_0x595b13[_0x594ddd(0x14a)],_0x28b3e4),_0x32cbee=Date[_0x594ddd(0x142)]()-_0x43d6fe;return{'ok':!![],'data':{'result':_0x4e3dd7,'elapsed':_0x32cbee},'message':_0x594ddd(0x144)+_0x595b13['command']+'\x20completed\x20in\x20'+_0x32cbee+'ms'};}};}function a58_0x42dc(){const _0x2c6267=['48TUOrTe','read','paramsRequired','173497jeyWgT','validation','appCode','285zsasDa','string','92295UDyiFH','compress','920997kwRqOR','paramsHint','210561gyMxXm','266700whhHuu','2jSBcby','data','flagMissing','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','18580gdtVTX','params','now','alias','data\x20','18930ixRcze','str','data\x20getOne\x20requires\x20\x22id\x22\x20in\x20--params','description','869leOCrS','operation','helpExtra'];a58_0x42dc=function(){return _0x2c6267;};return a58_0x42dc();}
1
+ (function(_0x3360ca,_0x3d4d5f){const _0x4e7732=a58_0x3378,_0x14949a=_0x3360ca();while(!![]){try{const _0x1d8d5c=parseInt(_0x4e7732(0xcb))/0x1*(parseInt(_0x4e7732(0xcd))/0x2)+-parseInt(_0x4e7732(0xd5))/0x3*(-parseInt(_0x4e7732(0xba))/0x4)+parseInt(_0x4e7732(0xcc))/0x5+-parseInt(_0x4e7732(0xd2))/0x6+parseInt(_0x4e7732(0xc8))/0x7*(parseInt(_0x4e7732(0xc6))/0x8)+-parseInt(_0x4e7732(0xcf))/0x9+-parseInt(_0x4e7732(0xc0))/0xa*(parseInt(_0x4e7732(0xd4))/0xb);if(_0x1d8d5c===_0x3d4d5f)break;else _0x14949a['push'](_0x14949a['shift']());}catch(_0xffae92){_0x14949a['push'](_0x14949a['shift']());}}}(a58_0x4112,0x4156a));import{executeDatasetDataOperation}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{parseJsonParams}from'../../utils/params.js';function a58_0x3378(_0x53c77b,_0x5d011b){_0x53c77b=_0x53c77b-0xb7;const _0x411268=a58_0x4112();let _0x33780d=_0x411268[_0x53c77b];return _0x33780d;}function a58_0x4112(){const _0x280035=['code','Provide\x20--params\x20\x27{\x22id\x22:123}\x27\x20for\x20data\x20getOne.','2517888DJbHVN','validation','1062149dyFkwx','14529CHNfCJ','appCode','params','str','116GuBNsp','data','read','data\x20getOne\x20requires\x20\x22id\x22\x20in\x20--params','helpExtra','paramsHint','70qFQibu','command','getOne','string','data\x20','description','8Qxtwxy','paramsRequired','2977009OWJysN','now','compress','14RVcNnz','2569060qZYJky','41270hlNAiD','operation','47241dEUAun'];a58_0x4112=function(){return _0x280035;};return a58_0x4112();}function assertGetOneId(_0x78b9bd){const _0x378975=a58_0x3378;if(!_0x78b9bd)throw CliErrors['flagMissing']('params',_0x378975(0xd1));const _0x382999=_0x78b9bd['id'];if(_0x382999===undefined||_0x382999===null||_0x382999==='')throw CliErrors[_0x378975(0xd3)](_0x378975(0xbd),'Example:\x20--params\x20\x27{\x22id\x22:123}\x27');}function parseCommandParams(_0x25b881){return parseJsonParams(_0x25b881)??{};}export function buildDataCommand(_0x1d13c7){const _0x57c4bd=a58_0x3378,_0x4ebd78='Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically';return{'service':_0x57c4bd(0xbb),'command':_0x1d13c7[_0x57c4bd(0xc1)],'description':_0x1d13c7[_0x57c4bd(0xc5)],'risk':_0x57c4bd(0xbc),'defaultOutputFormat':_0x57c4bd(0xca),'helpExtra':_0x1d13c7[_0x57c4bd(0xbe)],'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'alias','type':_0x57c4bd(0xc3),'description':_0x4ebd78},{'name':_0x57c4bd(0xb8),'type':_0x57c4bd(0xc3),'description':_0x1d13c7[_0x57c4bd(0xbf)]}],async 'validate'(_0x36cd66){const _0x1c93c6=_0x57c4bd,_0x56e959=_0x36cd66['str'](_0x1c93c6(0xb8));if(_0x1d13c7[_0x1c93c6(0xc7)]&&!_0x56e959)throw CliErrors['flagMissing'](_0x1c93c6(0xb8),_0x1d13c7['paramsHint']);const _0x267713=parseJsonParams(_0x56e959);_0x1d13c7[_0x1c93c6(0xce)]===_0x1c93c6(0xc2)&&assertGetOneId(_0x267713);},async 'execute'(_0x378f32){const _0x730e32=_0x57c4bd,_0x4906c7=parseCommandParams(_0x378f32[_0x730e32(0xb9)](_0x730e32(0xb8))),_0x23b3ed=Date[_0x730e32(0xc9)](),_0x26c754=await executeDatasetDataOperation(_0x378f32[_0x730e32(0xb7)],_0x378f32[_0x730e32(0xb9)](_0x730e32(0xd0)),_0x1d13c7['operation'],_0x4906c7),_0x5d8ccc=Date['now']()-_0x23b3ed;return{'ok':!![],'data':{'result':_0x26c754,'elapsed':_0x5d8ccc},'message':_0x730e32(0xc4)+_0x1d13c7[_0x730e32(0xc1)]+'\x20completed\x20in\x20'+_0x5d8ccc+'ms'};}};}
@@ -0,0 +1,18 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ interface BusinessGroupUpdateInput {
3
+ code?: string;
4
+ businessGroup?: string;
5
+ expectBusinessGroup?: string;
6
+ }
7
+ interface BuildBusinessGroupUpdateOptions {
8
+ appCode: string;
9
+ input: BusinessGroupUpdateInput;
10
+ dryRun: boolean;
11
+ }
12
+ export declare function buildDatasetBusinessGroupUpdateResult({ appCode, input, dryRun, }: BuildBusinessGroupUpdateOptions): Promise<{
13
+ ok: true;
14
+ data: Record<string, unknown>;
15
+ message: string;
16
+ }>;
17
+ export declare const datasetBusinessGroupUpdate: CommandDefinition;
18
+ export {};
@@ -1 +1 @@
1
- const a59_0x9f82a4=a59_0x414a;(function(_0x2805f1,_0x330b0a){const _0x43800d=a59_0x414a,_0x563dae=_0x2805f1();while(!![]){try{const _0x43d4df=parseInt(_0x43800d(0x123))/0x1+-parseInt(_0x43800d(0x11b))/0x2+-parseInt(_0x43800d(0x147))/0x3*(-parseInt(_0x43800d(0x134))/0x4)+parseInt(_0x43800d(0x126))/0x5+parseInt(_0x43800d(0x148))/0x6+-parseInt(_0x43800d(0x149))/0x7+parseInt(_0x43800d(0x121))/0x8*(-parseInt(_0x43800d(0x151))/0x9);if(_0x43d4df===_0x330b0a)break;else _0x563dae['push'](_0x563dae['shift']());}catch(_0x178aa6){_0x563dae['push'](_0x563dae['shift']());}}}(a59_0x1eb7,0xe8dcc));import{APPCODE_FLAG_OPTIONAL,CODE_FLAG}from'../../commands/common/flags.js';import{getDatasetDetail,updateErBusinessGroup}from'../../core/api-client.js';function a59_0x1eb7(){const _0x34ab5b=['Update\x20business\x20scenario\x20group','Expected\x20current\x20business\x20scenario\x20group;\x20mismatch\x20aborts\x20without\x20writing','length','--code\x20is\x20required','unchanged','POST','number','Business\x20scenario\x20group\x20(not\x20technical):\x20use\x20<scenario>,\x20or\x20<domain>---<scenario>\x20when\x20needed\x20for\x20disambiguation\x20or\x20an\x20existing\x20hierarchy;\x20empty\x20string\x20clears\x20it','Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20','Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20','6xpGZWC','3904662rZVYtb','4934069DfvJdj','name','businessGroup','hasOwnProperty','found','code','sourceType','METADATA','10080QPtVwW','toUpperCase','No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20','Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.','dataset','validation','value','3808156xCzhcJ','write','backend','matched','modelId','--business-group\x20is\x20required','7632mcGFEr','datasetCode','638315rJPfDA','update','appCode','8225705HcHAEk','string','stringify','Business\x20scenario\x20group\x20readback\x20must\x20be\x20available\x20by\x20datasetCode;\x20upgrade\x20the\x20backend\x20read\x20contract\x20instead\x20of\x20using\x20dblinkId/tableName.','Expected\x20','keys','apiError','prototype','extend','dbtableConfig','expect-business-group','trim','business-group','data','3393992eGnfTG','str',',\x20actual\x20','DB_TABLE','parse','isFinite','source','call','Expectation\x20mismatch\x20at\x20businessGroup'];a59_0x1eb7=function(){return _0x34ab5b;};return a59_0x1eb7();}import{CliErrors}from'../../errors.js';const BACKEND_PATH='/smartapi/question/er-config/business-group/edit';export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x4e48a7,input:_0x185fd0,dryRun:_0x100f84}){const _0xc5f148=a59_0x414a;validateInput(_0x185fd0);const _0x43e1ae=normalizeBusinessGroup(_0x185fd0[_0xc5f148(0x14b)]),_0x26c3bf=await getDatasetDetail(_0x185fd0[_0xc5f148(0x14e)]),_0x36ff42=resolveBusinessGroupDataset(_0x26c3bf,_0x185fd0[_0xc5f148(0x14e)]),_0x2dd91a=loadCurrentBusinessGroup(_0x26c3bf,_0x36ff42);assertExpectedBusinessGroup(_0x2dd91a,_0x185fd0['expectBusinessGroup']);const _0x5f331d=buildBackendPayload(_0x4e48a7,_0x36ff42,_0x43e1ae),_0x2472ff=_0x2dd91a!==_0x43e1ae;let _0x291044;if(_0x2472ff&&!_0x100f84){await updateErBusinessGroup(_0x5f331d);const _0x346a37=await getDatasetDetail(_0x36ff42['code']),_0x438da2=resolveBusinessGroupDataset(_0x346a37,_0x36ff42['code']),_0x4959f7=loadCurrentBusinessGroup(_0x346a37,_0x438da2);if(_0x4959f7!==_0x43e1ae)throw CliErrors[_0xc5f148(0x12c)]('Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.','Expected\x20'+JSON[_0xc5f148(0x128)](_0x43e1ae)+_0xc5f148(0x136)+JSON[_0xc5f148(0x128)](_0x4959f7)+'.');_0x291044={'verified':!![],'status':_0xc5f148(0x11e),'afterReadback':{'businessGroup':_0x4959f7}};}else!_0x2472ff&&(_0x291044={'verified':!![],'status':_0xc5f148(0x141),'afterReadback':{'businessGroup':_0x2dd91a}});const _0x40d0c1={'operation':_0xc5f148(0x124),'appCode':_0x4e48a7,'selector':{'code':_0x36ff42['code']},'dataset':_0x36ff42,'before':{'businessGroup':_0x2dd91a},'after':{'businessGroup':_0x43e1ae},'changed':_0x2472ff,'dryRun':_0x100f84,'submitted':_0x2472ff&&!_0x100f84,'backend':{'method':'POST','path':BACKEND_PATH,'payload':_0x5f331d},..._0x291044?{'verification':_0x291044}:{},'warnings':[]};return{'ok':!![],'data':_0x40d0c1,'message':_0x2472ff?_0x100f84?_0xc5f148(0x145)+_0x36ff42['code']:_0xc5f148(0x146)+_0x36ff42['code']:_0xc5f148(0x116)+_0x36ff42['code']};}export const datasetBusinessGroupUpdate={'service':a59_0x9f82a4(0x118),'command':'business-group-update','description':a59_0x9f82a4(0x13d),'risk':a59_0x9f82a4(0x11c),'flags':[CODE_FLAG,{'name':a59_0x9f82a4(0x132),'type':a59_0x9f82a4(0x127),'required':!![],'description':a59_0x9f82a4(0x144)},{'name':a59_0x9f82a4(0x130),'type':'string','required':![],'description':a59_0x9f82a4(0x13e)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x1d52b4){validateInput(readBusinessGroupUpdateInput(_0x1d52b4));},async 'dryRun'(_0x2ba2bb){const _0xb3336f=a59_0x9f82a4,_0x2737f7=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x2ba2bb[_0xb3336f(0x125)],'input':readBusinessGroupUpdateInput(_0x2ba2bb),'dryRun':!![]});return{'method':_0xb3336f(0x142),'url':BACKEND_PATH,'body':_0x2737f7[_0xb3336f(0x133)][_0xb3336f(0x11d)]['payload'],'description':_0x2737f7['message'],..._0x2737f7['data']};},async 'execute'(_0x26d05b){const _0x58fbe6=a59_0x9f82a4;return buildDatasetBusinessGroupUpdateResult({'appCode':_0x26d05b[_0x58fbe6(0x125)],'input':readBusinessGroupUpdateInput(_0x26d05b),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x2a4385){const _0x19d2af=a59_0x9f82a4,_0x24c9d6=_0x2a4385[_0x19d2af(0x135)](_0x19d2af(0x130));return{'code':trim(_0x2a4385[_0x19d2af(0x135)]('code')),'businessGroup':_0x2a4385[_0x19d2af(0x135)](_0x19d2af(0x132)),'expectBusinessGroup':_0x24c9d6===undefined||_0x24c9d6===''?undefined:_0x24c9d6};}function validateInput(_0x2f53bd){const _0x3b547e=a59_0x9f82a4;if(!trim(_0x2f53bd[_0x3b547e(0x14e)]))throw CliErrors['validation'](_0x3b547e(0x140));if(_0x2f53bd[_0x3b547e(0x14b)]===undefined)throw CliErrors[_0x3b547e(0x119)](_0x3b547e(0x120));}function resolveBusinessGroupDataset(_0x51874f,_0x40fb01){const _0x5502b4=a59_0x9f82a4,_0x5f2cce=asPlainObject(_0x51874f['dataset']),_0x2da042=asPlainObject(_0x51874f[_0x5502b4(0x12f)]),_0x9d8079=resolveSourceType(_0x51874f,_0x5f2cce,_0x2da042),_0x4a69bd=firstString(_0x51874f['modelCode'],_0x51874f[_0x5502b4(0x14e)],_0x5f2cce[_0x5502b4(0x122)],_0x40fb01)||_0x40fb01;return{'id':firstNumber(_0x51874f[_0x5502b4(0x11f)],_0x51874f['id'],_0x5f2cce['datasetId'])??firstString(_0x51874f[_0x5502b4(0x11f)],_0x51874f['id'],_0x5f2cce['datasetId'])??null,'code':_0x4a69bd,'name':firstString(_0x51874f[_0x5502b4(0x14a)],_0x5f2cce['datasetName'],_0x5f2cce[_0x5502b4(0x14a)])||null,'sourceType':_0x9d8079};}function resolveSourceType(_0xefcb8f,_0x291134,_0x1a6690){const _0x1832ee=a59_0x9f82a4,_0x3ef382=firstString(_0xefcb8f[_0x1832ee(0x13a)],_0xefcb8f[_0x1832ee(0x14f)],_0x291134[_0x1832ee(0x13a)],_0x291134[_0x1832ee(0x14f)])?.[_0x1832ee(0x131)]()[_0x1832ee(0x115)]();if(_0x3ef382===_0x1832ee(0x137)||_0x3ef382===_0x1832ee(0x150))return _0x3ef382;if(Object[_0x1832ee(0x12b)](_0x1a6690)[_0x1832ee(0x13f)]>0x0)return _0x1832ee(0x137);throw CliErrors[_0x1832ee(0x119)](_0x1832ee(0x117));}function loadCurrentBusinessGroup(_0x39092f,_0xab2554){const _0x5e9f96=a59_0x9f82a4,_0x12aacb=readBusinessGroupFromDatasetDetail(_0x39092f,_0xab2554[_0x5e9f96(0x14f)]);if(_0x12aacb[_0x5e9f96(0x14d)])return normalizeBusinessGroup(_0x12aacb[_0x5e9f96(0x11a)]);if(_0xab2554[_0x5e9f96(0x14f)]===_0x5e9f96(0x150))return'';throw CliErrors['validation']('Dataset\x20detail\x20does\x20not\x20expose\x20businessGroup.',_0x5e9f96(0x129));}function readBusinessGroupFromDatasetDetail(_0x1d3887,_0x26ead6){const _0x4ae58f=a59_0x9f82a4,_0x48016f=asPlainObject(_0x1d3887[_0x4ae58f(0x118)]),_0x2339df=firstPresent(_0x1d3887[_0x4ae58f(0x14b)]);if(_0x2339df[_0x4ae58f(0x14d)])return _0x2339df;const _0x20851f=firstPresent(_0x48016f[_0x4ae58f(0x14b)]);if(_0x20851f[_0x4ae58f(0x14d)])return _0x20851f;if(_0x26ead6==='DB_TABLE')return{'found':![]};const _0x3cff85=readBusinessGroupFromExtend(_0x1d3887[_0x4ae58f(0x12e)]);if(_0x3cff85[_0x4ae58f(0x14d)])return _0x3cff85;return readBusinessGroupFromExtend(_0x48016f[_0x4ae58f(0x12e)]);}function readBusinessGroupFromExtend(_0x1af1c4){const _0x7dd0bc=a59_0x9f82a4;if(_0x1af1c4===undefined||_0x1af1c4===null||_0x1af1c4==='')return{'found':![]};if(typeof _0x1af1c4==='string')try{const _0x276844=JSON[_0x7dd0bc(0x138)](_0x1af1c4);return readBusinessGroupFromExtend(_0x276844);}catch{return{'found':![]};}const _0x26c921=asPlainObject(_0x1af1c4);if(Object[_0x7dd0bc(0x12d)][_0x7dd0bc(0x14c)][_0x7dd0bc(0x13b)](_0x26c921,_0x7dd0bc(0x14b)))return{'found':!![],'value':_0x26c921[_0x7dd0bc(0x14b)]};return{'found':![]};}function firstPresent(..._0x3a542a){for(const _0x1626a9 of _0x3a542a){if(_0x1626a9!==undefined&&_0x1626a9!==null)return{'found':!![],'value':_0x1626a9};}return{'found':![]};}function assertExpectedBusinessGroup(_0xc47e6a,_0x30e1db){const _0x6bea12=a59_0x9f82a4;if(_0x30e1db===undefined)return;const _0x2ed5f0=normalizeBusinessGroup(_0x30e1db);if(_0xc47e6a!==_0x2ed5f0)throw CliErrors[_0x6bea12(0x119)](_0x6bea12(0x13c),_0x6bea12(0x12a)+JSON[_0x6bea12(0x128)](_0x2ed5f0)+',\x20actual\x20'+JSON[_0x6bea12(0x128)](_0xc47e6a));}function buildBackendPayload(_0x6447f,_0x336efc,_0x2b168f){const _0x25ec59=a59_0x9f82a4;return{'appCode':_0x6447f,'datasetCode':_0x336efc[_0x25ec59(0x14e)],'businessGroup':_0x2b168f};}function normalizeBusinessGroup(_0x49a1ad){const _0x2ab6b4=a59_0x9f82a4;if(_0x49a1ad===undefined||_0x49a1ad===null)return'';return String(_0x49a1ad)[_0x2ab6b4(0x131)]();}function asPlainObject(_0x1a4e26){if(!_0x1a4e26||typeof _0x1a4e26!=='object'||Array['isArray'](_0x1a4e26))return{};return _0x1a4e26;}function firstString(..._0x17984f){const _0x2ea96a=a59_0x9f82a4;for(const _0x4df0ae of _0x17984f){if(typeof _0x4df0ae===_0x2ea96a(0x127)&&_0x4df0ae[_0x2ea96a(0x131)]())return _0x4df0ae[_0x2ea96a(0x131)]();if(typeof _0x4df0ae===_0x2ea96a(0x143)&&Number[_0x2ea96a(0x139)](_0x4df0ae))return String(_0x4df0ae);}return undefined;}function a59_0x414a(_0x195fa6,_0x21c185){_0x195fa6=_0x195fa6-0x115;const _0x1eb72c=a59_0x1eb7();let _0x414a20=_0x1eb72c[_0x195fa6];return _0x414a20;}function firstNumber(..._0x15e949){const _0xcf6352=a59_0x9f82a4;for(const _0x94bb6b of _0x15e949){if(typeof _0x94bb6b==='number'&&Number[_0xcf6352(0x139)](_0x94bb6b))return _0x94bb6b;if(typeof _0x94bb6b===_0xcf6352(0x127)&&_0x94bb6b[_0xcf6352(0x131)]()&&Number['isFinite'](Number(_0x94bb6b)))return Number(_0x94bb6b);}return null;}function trim(_0x4dc60b){return String(_0x4dc60b||'')['trim']();}
1
+ const a59_0x44bee4=a59_0x20a0;(function(_0x13fb6d,_0x41acdf){const _0x409362=a59_0x20a0,_0x65936=_0x13fb6d();while(!![]){try{const _0x580867=-parseInt(_0x409362(0x1ad))/0x1+parseInt(_0x409362(0x1ae))/0x2+parseInt(_0x409362(0x189))/0x3*(parseInt(_0x409362(0x185))/0x4)+-parseInt(_0x409362(0x1b1))/0x5*(-parseInt(_0x409362(0x19a))/0x6)+-parseInt(_0x409362(0x182))/0x7*(parseInt(_0x409362(0x1a9))/0x8)+-parseInt(_0x409362(0x1b7))/0x9+parseInt(_0x409362(0x1b8))/0xa*(parseInt(_0x409362(0x1a8))/0xb);if(_0x580867===_0x41acdf)break;else _0x65936['push'](_0x65936['shift']());}catch(_0x1c8e81){_0x65936['push'](_0x65936['shift']());}}}(a59_0x1bc7,0x76ade));import{APPCODE_FLAG_OPTIONAL,CODE_FLAG}from'../../commands/common/flags.js';import{getDatasetDetail,updateErBusinessGroup}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const BACKEND_PATH=a59_0x44bee4(0x17d);export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x1667aa,input:_0x550ce4,dryRun:_0x499a08}){const _0x8d6b42=a59_0x44bee4;validateInput(_0x550ce4);const _0x1e2ffc=normalizeBusinessGroup(_0x550ce4[_0x8d6b42(0x1a4)]),_0x502957=await getDatasetDetail(_0x550ce4[_0x8d6b42(0x1a7)]),_0x1021dd=resolveBusinessGroupDataset(_0x502957,_0x550ce4['code']),_0x244b20=loadCurrentBusinessGroup(_0x502957,_0x1021dd);assertExpectedBusinessGroup(_0x244b20,_0x550ce4[_0x8d6b42(0x186)]);const _0x2ceeda=buildBackendPayload(_0x1667aa,_0x1021dd,_0x1e2ffc),_0x3951cf=_0x244b20!==_0x1e2ffc;let _0x3849da;if(_0x3951cf&&!_0x499a08){await updateErBusinessGroup(_0x2ceeda);const _0x33c2ae=await getDatasetDetail(_0x1021dd[_0x8d6b42(0x1a7)]),_0x4d1099=resolveBusinessGroupDataset(_0x33c2ae,_0x1021dd['code']),_0x5e5c5e=loadCurrentBusinessGroup(_0x33c2ae,_0x4d1099);if(_0x5e5c5e!==_0x1e2ffc)throw CliErrors[_0x8d6b42(0x190)]('Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.',_0x8d6b42(0x195)+JSON[_0x8d6b42(0x1b4)](_0x1e2ffc)+_0x8d6b42(0x1ab)+JSON[_0x8d6b42(0x1b4)](_0x5e5c5e)+'.');_0x3849da={'verified':!![],'status':_0x8d6b42(0x196),'afterReadback':{'businessGroup':_0x5e5c5e}};}else!_0x3951cf&&(_0x3849da={'verified':!![],'status':'unchanged','afterReadback':{'businessGroup':_0x244b20}});const _0x1c38f1={'operation':_0x8d6b42(0x1b5),'appCode':_0x1667aa,'selector':{'code':_0x1021dd[_0x8d6b42(0x1a7)]},'dataset':_0x1021dd,'before':{'businessGroup':_0x244b20},'after':{'businessGroup':_0x1e2ffc},'changed':_0x3951cf,'dryRun':_0x499a08,'submitted':_0x3951cf&&!_0x499a08,'backend':{'method':'POST','path':BACKEND_PATH,'payload':_0x2ceeda},..._0x3849da?{'verification':_0x3849da}:{},'warnings':[]};return{'ok':!![],'data':_0x1c38f1,'message':_0x3951cf?_0x499a08?_0x8d6b42(0x194)+_0x1021dd[_0x8d6b42(0x1a7)]:_0x8d6b42(0x1b6)+_0x1021dd['code']:_0x8d6b42(0x180)+_0x1021dd[_0x8d6b42(0x1a7)]};}export const datasetBusinessGroupUpdate={'service':a59_0x44bee4(0x181),'command':a59_0x44bee4(0x17c),'description':'Update\x20business\x20scenario\x20group','risk':a59_0x44bee4(0x193),'flags':[CODE_FLAG,{'name':a59_0x44bee4(0x1b2),'type':a59_0x44bee4(0x199),'required':!![],'description':'Business\x20scenario\x20group\x20(not\x20technical):\x20use\x20<scenario>,\x20or\x20<domain>---<scenario>\x20when\x20needed\x20for\x20disambiguation\x20or\x20an\x20existing\x20hierarchy;\x20empty\x20string\x20clears\x20it'},{'name':a59_0x44bee4(0x18a),'type':a59_0x44bee4(0x199),'required':![],'description':a59_0x44bee4(0x18c)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x5df4ef){validateInput(readBusinessGroupUpdateInput(_0x5df4ef));},async 'dryRun'(_0x59611a){const _0x2b48d7=a59_0x44bee4,_0x46581f=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x59611a['appCode'],'input':readBusinessGroupUpdateInput(_0x59611a),'dryRun':!![]});return{'method':_0x2b48d7(0x191),'url':BACKEND_PATH,'body':_0x46581f['data'][_0x2b48d7(0x1b9)][_0x2b48d7(0x17e)],'description':_0x46581f[_0x2b48d7(0x187)],..._0x46581f[_0x2b48d7(0x19f)]};},async 'execute'(_0x431000){return buildDatasetBusinessGroupUpdateResult({'appCode':_0x431000['appCode'],'input':readBusinessGroupUpdateInput(_0x431000),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x300ffb){const _0xa2e5bf=a59_0x44bee4,_0x17fb34=_0x300ffb[_0xa2e5bf(0x19e)]('expect-business-group');return{'code':trim(_0x300ffb['str']('code')),'businessGroup':_0x300ffb[_0xa2e5bf(0x19e)](_0xa2e5bf(0x1b2)),'expectBusinessGroup':_0x17fb34===undefined||_0x17fb34===''?undefined:_0x17fb34};}function validateInput(_0x39ffcb){const _0x2ee89a=a59_0x44bee4;if(!trim(_0x39ffcb[_0x2ee89a(0x1a7)]))throw CliErrors[_0x2ee89a(0x1a2)](_0x2ee89a(0x1aa));if(_0x39ffcb[_0x2ee89a(0x1a4)]===undefined)throw CliErrors[_0x2ee89a(0x1a2)](_0x2ee89a(0x183));}function resolveBusinessGroupDataset(_0x324e8e,_0x52596a){const _0x318881=a59_0x44bee4,_0x335e92=asPlainObject(_0x324e8e[_0x318881(0x181)]),_0x836dfe=asPlainObject(_0x324e8e['dbtableConfig']),_0x15d40d=resolveSourceType(_0x324e8e,_0x335e92,_0x836dfe),_0x22b272=firstString(_0x324e8e[_0x318881(0x18b)],_0x324e8e[_0x318881(0x1a7)],_0x335e92[_0x318881(0x197)],_0x52596a)||_0x52596a;return{'id':firstNumber(_0x324e8e[_0x318881(0x179)],_0x324e8e['id'],_0x335e92[_0x318881(0x18d)])??firstString(_0x324e8e[_0x318881(0x179)],_0x324e8e['id'],_0x335e92[_0x318881(0x18d)])??null,'code':_0x22b272,'name':firstString(_0x324e8e[_0x318881(0x17a)],_0x335e92['datasetName'],_0x335e92[_0x318881(0x17a)])||null,'sourceType':_0x15d40d};}function resolveSourceType(_0x1e59f7,_0x253e3e,_0x584972){const _0x5a21fe=a59_0x44bee4,_0x2a92ec=firstString(_0x1e59f7[_0x5a21fe(0x17f)],_0x1e59f7[_0x5a21fe(0x1a5)],_0x253e3e['source'],_0x253e3e['sourceType'])?.[_0x5a21fe(0x18f)]()[_0x5a21fe(0x192)]();if(_0x2a92ec===_0x5a21fe(0x1ac)||_0x2a92ec===_0x5a21fe(0x19c))return _0x2a92ec;if(Object[_0x5a21fe(0x1b0)](_0x584972)[_0x5a21fe(0x1a1)]>0x0)return'DB_TABLE';throw CliErrors[_0x5a21fe(0x1a2)](_0x5a21fe(0x1b3));}function a59_0x1bc7(){const _0x97f5df=['Expected\x20','matched','datasetCode','value','string','370902umTQxB','hasOwnProperty','METADATA','extend','str','data','object','length','validation','Dataset\x20detail\x20does\x20not\x20expose\x20businessGroup.','businessGroup','sourceType','parse','code','22NDBCqN','2192272uGGHRn','--code\x20is\x20required',',\x20actual\x20','DB_TABLE','567261zWEoSu','534522vwfIwK','Business\x20scenario\x20group\x20readback\x20must\x20be\x20available\x20by\x20datasetCode;\x20upgrade\x20the\x20backend\x20read\x20contract\x20instead\x20of\x20using\x20dblinkId/tableName.','keys','10QzsRHJ','business-group','Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.','stringify','update','Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20','1978335uxRxAH','3131900zTMUjT','backend','call','modelId','name','found','business-group-update','/smartapi/question/er-config/business-group/edit','payload','source','No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20','dataset','7zJDNOg','--business-group\x20is\x20required','isFinite','32612rqTZBs','expectBusinessGroup','message','number','195HRBfoA','expect-business-group','modelCode','Expected\x20current\x20business\x20scenario\x20group;\x20mismatch\x20aborts\x20without\x20writing','datasetId','isArray','trim','apiError','POST','toUpperCase','write','Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20'];a59_0x1bc7=function(){return _0x97f5df;};return a59_0x1bc7();}function loadCurrentBusinessGroup(_0x5f2307,_0x2732c4){const _0x3befaf=a59_0x44bee4,_0x209f79=readBusinessGroupFromDatasetDetail(_0x5f2307,_0x2732c4[_0x3befaf(0x1a5)]);if(_0x209f79[_0x3befaf(0x17b)])return normalizeBusinessGroup(_0x209f79[_0x3befaf(0x198)]);if(_0x2732c4['sourceType']===_0x3befaf(0x19c))return'';throw CliErrors[_0x3befaf(0x1a2)](_0x3befaf(0x1a3),_0x3befaf(0x1af));}function readBusinessGroupFromDatasetDetail(_0x4059e8,_0x4468f0){const _0x32509c=a59_0x44bee4,_0x4184b4=asPlainObject(_0x4059e8[_0x32509c(0x181)]),_0x54dbad=firstPresent(_0x4059e8[_0x32509c(0x1a4)]);if(_0x54dbad[_0x32509c(0x17b)])return _0x54dbad;const _0x1c0f9c=firstPresent(_0x4184b4[_0x32509c(0x1a4)]);if(_0x1c0f9c['found'])return _0x1c0f9c;if(_0x4468f0===_0x32509c(0x1ac))return{'found':![]};const _0x499e55=readBusinessGroupFromExtend(_0x4059e8[_0x32509c(0x19d)]);if(_0x499e55[_0x32509c(0x17b)])return _0x499e55;return readBusinessGroupFromExtend(_0x4184b4[_0x32509c(0x19d)]);}function readBusinessGroupFromExtend(_0x4e4f5f){const _0x365b35=a59_0x44bee4;if(_0x4e4f5f===undefined||_0x4e4f5f===null||_0x4e4f5f==='')return{'found':![]};if(typeof _0x4e4f5f===_0x365b35(0x199))try{const _0x2c981a=JSON[_0x365b35(0x1a6)](_0x4e4f5f);return readBusinessGroupFromExtend(_0x2c981a);}catch{return{'found':![]};}const _0x2d63ff=asPlainObject(_0x4e4f5f);if(Object['prototype'][_0x365b35(0x19b)][_0x365b35(0x178)](_0x2d63ff,_0x365b35(0x1a4)))return{'found':!![],'value':_0x2d63ff['businessGroup']};return{'found':![]};}function firstPresent(..._0x14ec3e){for(const _0x801d3a of _0x14ec3e){if(_0x801d3a!==undefined&&_0x801d3a!==null)return{'found':!![],'value':_0x801d3a};}return{'found':![]};}function assertExpectedBusinessGroup(_0x27fb37,_0x178dcf){const _0x1a5414=a59_0x44bee4;if(_0x178dcf===undefined)return;const _0x414a87=normalizeBusinessGroup(_0x178dcf);if(_0x27fb37!==_0x414a87)throw CliErrors[_0x1a5414(0x1a2)]('Expectation\x20mismatch\x20at\x20businessGroup','Expected\x20'+JSON[_0x1a5414(0x1b4)](_0x414a87)+_0x1a5414(0x1ab)+JSON[_0x1a5414(0x1b4)](_0x27fb37));}function buildBackendPayload(_0x230f1e,_0x2482ce,_0x935150){const _0x4f6645=a59_0x44bee4;return{'appCode':_0x230f1e,'datasetCode':_0x2482ce[_0x4f6645(0x1a7)],'businessGroup':_0x935150};}function normalizeBusinessGroup(_0x39e551){const _0x2fd774=a59_0x44bee4;if(_0x39e551===undefined||_0x39e551===null)return'';return String(_0x39e551)[_0x2fd774(0x18f)]();}function asPlainObject(_0x263d41){const _0xdb707a=a59_0x44bee4;if(!_0x263d41||typeof _0x263d41!==_0xdb707a(0x1a0)||Array[_0xdb707a(0x18e)](_0x263d41))return{};return _0x263d41;}function firstString(..._0x3e6da7){const _0x280a89=a59_0x44bee4;for(const _0x44c871 of _0x3e6da7){if(typeof _0x44c871===_0x280a89(0x199)&&_0x44c871[_0x280a89(0x18f)]())return _0x44c871[_0x280a89(0x18f)]();if(typeof _0x44c871===_0x280a89(0x188)&&Number[_0x280a89(0x184)](_0x44c871))return String(_0x44c871);}return undefined;}function firstNumber(..._0x332806){const _0x167c71=a59_0x44bee4;for(const _0x390237 of _0x332806){if(typeof _0x390237===_0x167c71(0x188)&&Number['isFinite'](_0x390237))return _0x390237;if(typeof _0x390237==='string'&&_0x390237[_0x167c71(0x18f)]()&&Number[_0x167c71(0x184)](Number(_0x390237)))return Number(_0x390237);}return null;}function a59_0x20a0(_0xf16916,_0x1e7fb3){_0xf16916=_0xf16916-0x178;const _0x1bc7e9=a59_0x1bc7();let _0x20a06d=_0x1bc7e9[_0xf16916];return _0x20a06d;}function trim(_0x39b1e1){const _0x486995=a59_0x44bee4;return String(_0x39b1e1||'')[_0x486995(0x18f)]();}
@@ -0,0 +1,11 @@
1
+ import type { DatasetItem } from "../../core/api-client.js";
2
+ export declare const RUNTIME_DATA_ACCESS_COMMANDS: {
3
+ readonly cli: "lovrabet";
4
+ readonly filter: "lovrabet data filter --code <datasetCode> --params '<json>' --format compress";
5
+ readonly getOne: "lovrabet data getOne --code <datasetCode> --params '{\"id\":123}' --format compress";
6
+ };
7
+ export declare const RUNTIME_DATA_ACCESS_SUMMARY = "Use lovrabet data filter/getOne for real runtime records.";
8
+ export declare function isDbTableBackedDataset(dataset: DatasetItem | Record<string, any>): boolean;
9
+ export declare function filterDbTableBackedDatasets<T extends DatasetItem | Record<string, any>>(datasets: T[]): T[];
10
+ export declare function buildDbTableBackedRequirementMessage(dataset: DatasetItem | Record<string, any>, assetName?: string): string;
11
+ export declare function assertDatasetIsDbTableBacked(dataset: DatasetItem | Record<string, any>, assetName?: string): void;
@@ -1 +1 @@
1
- const a60_0x219aae=a60_0x2d58;(function(_0x23e9d1,_0x20613d){const _0xbc279=a60_0x2d58,_0x56316f=_0x23e9d1();while(!![]){try{const _0x110442=-parseInt(_0xbc279(0x1c3))/0x1+-parseInt(_0xbc279(0x1c0))/0x2+-parseInt(_0xbc279(0x1c9))/0x3+-parseInt(_0xbc279(0x1ae))/0x4*(-parseInt(_0xbc279(0x1c8))/0x5)+-parseInt(_0xbc279(0x1b1))/0x6+parseInt(_0xbc279(0x1cb))/0x7+parseInt(_0xbc279(0x1b5))/0x8*(parseInt(_0xbc279(0x1cd))/0x9);if(_0x110442===_0x20613d)break;else _0x56316f['push'](_0x56316f['shift']());}catch(_0xa70151){_0x56316f['push'](_0x56316f['shift']());}}}(a60_0x3242,0x36640));import{CliErrors}from'../../errors.js';export const RUNTIME_DATA_ACCESS_COMMANDS={'cli':a60_0x219aae(0x1b7),'filter':a60_0x219aae(0x1bd),'getOne':a60_0x219aae(0x1b0)};export const RUNTIME_DATA_ACCESS_SUMMARY='Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.';function valueToString(_0x44763d){const _0x35c206=a60_0x219aae;return _0x44763d==null?'':String(_0x44763d)[_0x35c206(0x1b3)]();}function getDatasetCode(_0x215fc0){const _0xf8fd8d=a60_0x219aae;return valueToString(_0x215fc0[_0xf8fd8d(0x1b6)]??_0x215fc0[_0xf8fd8d(0x1b4)]??_0x215fc0[_0xf8fd8d(0x1b2)]?.[_0xf8fd8d(0x1c1)]);}function a60_0x3242(){const _0x364440=['lovrabet','\x20是\x20','dbId','sourceType','filter','validation','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27<json>\x27\x20--format\x20compress','unknown','toUpperCase','30544uMArFX','datasetCode','source','354859zzCqYV','METADATA','tableName','原因:schema\x20introspection\x20与\x20custom\x20SQL\x20需要\x20source=DB_TABLE、dbtableConfig.dbId、dbtableConfig.tableName\x20与数据库连接上下文。','length','5aWSkCn','1116660wNlvnJ','如果只是查看运行态真实行数据,请切换到\x20lovrabet\x20CLI:','675955krFbgh','\x20的\x20DB_TABLE\x20数据源上下文。','6413769rXJWDb','join','684368uqVMMw','datasetName','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27\x20--format\x20compress','90978SgOsca','dataset','trim','modelCode','8sUutwA','code'];a60_0x3242=function(){return _0x364440;};return a60_0x3242();}function getDatasetName(_0x47edbb){const _0x4f67d5=a60_0x219aae;return valueToString(_0x47edbb['name']??_0x47edbb[_0x4f67d5(0x1b2)]?.[_0x4f67d5(0x1af)])||_0x4f67d5(0x1be);}function getDatasetSource(_0x5446dc){const _0x22158b=a60_0x219aae;return valueToString(_0x5446dc[_0x22158b(0x1c2)]??_0x5446dc[_0x22158b(0x1b2)]?.[_0x22158b(0x1ba)])[_0x22158b(0x1bf)]();}function a60_0x2d58(_0x5156f9,_0x3219c9){_0x5156f9=_0x5156f9-0x1ae;const _0x3242a9=a60_0x3242();let _0x2d5812=_0x3242a9[_0x5156f9];return _0x2d5812;}function getDbtableConfig(_0x42978a){const _0x5d9291=_0x42978a['dbtableConfig']??_0x42978a['dbtable'];return _0x5d9291&&typeof _0x5d9291==='object'?_0x5d9291:{};}export function isDbTableBackedDataset(_0x5d3d42){const _0x41c329=a60_0x219aae,_0x505980=getDatasetSource(_0x5d3d42);if(_0x505980===_0x41c329(0x1c4))return![];const _0x24bf8d=getDbtableConfig(_0x5d3d42),_0xa3cfdc=_0x24bf8d[_0x41c329(0x1b9)]??_0x24bf8d['id'],_0x1fcb16=valueToString(_0x24bf8d[_0x41c329(0x1c5)]??_0x5d3d42[_0x41c329(0x1c5)]??_0x5d3d42[_0x41c329(0x1b2)]?.[_0x41c329(0x1c5)]);return _0xa3cfdc!==undefined&&_0xa3cfdc!==null&&_0x1fcb16[_0x41c329(0x1c7)]>0x0;}export function filterDbTableBackedDatasets(_0x56091c){const _0x4f6e0c=a60_0x219aae;return _0x56091c[_0x4f6e0c(0x1bb)](_0x521ab2=>isDbTableBackedDataset(_0x521ab2));}export function buildDbTableBackedRequirementMessage(_0x20e2cc,_0x4f7220='SQL\x20schema\x20validation'){const _0x238c95=a60_0x219aae,_0xb2033=getDatasetSource(_0x20e2cc)||'UNKNOWN',_0x9899a3=getDatasetName(_0x20e2cc),_0x8065f1=getDatasetCode(_0x20e2cc),_0xe88202=_0x8065f1?'\x20('+_0x8065f1+')':'';return['当前数据集\x20\x22'+_0x9899a3+'\x22'+_0xe88202+_0x238c95(0x1b8)+_0xb2033+'\x20类型,没有可用于\x20'+_0x4f7220+_0x238c95(0x1cc),_0x238c95(0x1c6),'请先将该数据集升级/迁移为\x20DB_TABLE\x20数据集,再基于新的\x20dataset\x20code\x20继续开发。',_0x238c95(0x1ca)+RUNTIME_DATA_ACCESS_COMMANDS[_0x238c95(0x1bb)]+';'+RUNTIME_DATA_ACCESS_COMMANDS['getOne']+'。'][_0x238c95(0x1ce)]('\x20');}export function assertDatasetIsDbTableBacked(_0x15f5bf,_0x22f1cc){const _0x1225c0=a60_0x219aae;if(!isDbTableBackedDataset(_0x15f5bf))throw CliErrors[_0x1225c0(0x1bc)](buildDbTableBackedRequirementMessage(_0x15f5bf,_0x22f1cc));}
1
+ const a60_0x40e7f0=a60_0x21f0;(function(_0x2b4e3d,_0x2a00d7){const _0x3fe8c4=a60_0x21f0,_0x49ee32=_0x2b4e3d();while(!![]){try{const _0x390cc1=-parseInt(_0x3fe8c4(0x1a5))/0x1*(parseInt(_0x3fe8c4(0x1b4))/0x2)+parseInt(_0x3fe8c4(0x19f))/0x3*(-parseInt(_0x3fe8c4(0x1a7))/0x4)+parseInt(_0x3fe8c4(0x1ad))/0x5+-parseInt(_0x3fe8c4(0x197))/0x6+parseInt(_0x3fe8c4(0x1ab))/0x7+parseInt(_0x3fe8c4(0x1a1))/0x8+-parseInt(_0x3fe8c4(0x19b))/0x9;if(_0x390cc1===_0x2a00d7)break;else _0x49ee32['push'](_0x49ee32['shift']());}catch(_0x3535eb){_0x49ee32['push'](_0x49ee32['shift']());}}}(a60_0x1497,0x3da7d));function a60_0x1497(){const _0x3fb398=['name','\x20是\x20','2762655kxpNQI','filter','2205450BguxFG','toUpperCase','dbtable','dbId','lovrabet','length','原因:schema\x20introspection\x20与\x20custom\x20SQL\x20需要\x20source=DB_TABLE、dbtableConfig.dbId、dbtableConfig.tableName\x20与数据库连接上下文。','423796dQGPtQ','当前数据集\x20\x22','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27\x20--format\x20compress','unknown','1659522rCsnma','SQL\x20schema\x20validation','dataset','UNKNOWN','1488051hLkpba','Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.','tableName','object','3sgShNu','join','3435536PfEZQd','dbtableConfig','METADATA','code','1sPounA','validation','1435328dTHsNw','trim'];a60_0x1497=function(){return _0x3fb398;};return a60_0x1497();}import{CliErrors}from'../../errors.js';export const RUNTIME_DATA_ACCESS_COMMANDS={'cli':a60_0x40e7f0(0x1b1),'filter':'lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27<json>\x27\x20--format\x20compress','getOne':a60_0x40e7f0(0x195)};export const RUNTIME_DATA_ACCESS_SUMMARY=a60_0x40e7f0(0x19c);function a60_0x21f0(_0x24b375,_0x49a5d9){_0x24b375=_0x24b375-0x195;const _0x14970a=a60_0x1497();let _0x21f0d3=_0x14970a[_0x24b375];return _0x21f0d3;}function valueToString(_0x2b41e2){const _0x531310=a60_0x40e7f0;return _0x2b41e2==null?'':String(_0x2b41e2)[_0x531310(0x1a8)]();}function getDatasetCode(_0x5c4682){const _0x219d2b=a60_0x40e7f0;return valueToString(_0x5c4682[_0x219d2b(0x1a4)]??_0x5c4682['modelCode']??_0x5c4682[_0x219d2b(0x199)]?.['datasetCode']);}function getDatasetName(_0x430af5){const _0x215a89=a60_0x40e7f0;return valueToString(_0x430af5[_0x215a89(0x1a9)]??_0x430af5[_0x215a89(0x199)]?.['datasetName'])||_0x215a89(0x196);}function getDatasetSource(_0x1948bd){const _0x5b2523=a60_0x40e7f0;return valueToString(_0x1948bd['source']??_0x1948bd[_0x5b2523(0x199)]?.['sourceType'])[_0x5b2523(0x1ae)]();}function getDbtableConfig(_0x1fb781){const _0xba1898=a60_0x40e7f0,_0x21af67=_0x1fb781[_0xba1898(0x1a2)]??_0x1fb781[_0xba1898(0x1af)];return _0x21af67&&typeof _0x21af67===_0xba1898(0x19e)?_0x21af67:{};}export function isDbTableBackedDataset(_0x14c949){const _0x23dca3=a60_0x40e7f0,_0x7abec7=getDatasetSource(_0x14c949);if(_0x7abec7===_0x23dca3(0x1a3))return![];const _0x186e9a=getDbtableConfig(_0x14c949),_0x2fe313=_0x186e9a[_0x23dca3(0x1b0)]??_0x186e9a['id'],_0x586d32=valueToString(_0x186e9a['tableName']??_0x14c949[_0x23dca3(0x19d)]??_0x14c949['dataset']?.[_0x23dca3(0x19d)]);return _0x2fe313!==undefined&&_0x2fe313!==null&&_0x586d32[_0x23dca3(0x1b2)]>0x0;}export function filterDbTableBackedDatasets(_0xdce020){const _0x479612=a60_0x40e7f0;return _0xdce020[_0x479612(0x1ac)](_0x539963=>isDbTableBackedDataset(_0x539963));}export function buildDbTableBackedRequirementMessage(_0x568f2c,_0x27c8a5=a60_0x40e7f0(0x198)){const _0x2e9c91=a60_0x40e7f0,_0x58f526=getDatasetSource(_0x568f2c)||_0x2e9c91(0x19a),_0x45477e=getDatasetName(_0x568f2c),_0x1d8c72=getDatasetCode(_0x568f2c),_0x3fe199=_0x1d8c72?'\x20('+_0x1d8c72+')':'';return[_0x2e9c91(0x1b5)+_0x45477e+'\x22'+_0x3fe199+_0x2e9c91(0x1aa)+_0x58f526+'\x20类型,没有可用于\x20'+_0x27c8a5+'\x20的\x20DB_TABLE\x20数据源上下文。',_0x2e9c91(0x1b3),'请先将该数据集升级/迁移为\x20DB_TABLE\x20数据集,再基于新的\x20dataset\x20code\x20继续开发。','如果只是查看运行态真实行数据,请切换到\x20lovrabet\x20CLI:'+RUNTIME_DATA_ACCESS_COMMANDS[_0x2e9c91(0x1ac)]+';'+RUNTIME_DATA_ACCESS_COMMANDS['getOne']+'。'][_0x2e9c91(0x1a0)]('\x20');}export function assertDatasetIsDbTableBacked(_0x2dcb55,_0x75a3c9){const _0x21561f=a60_0x40e7f0;if(!isDbTableBackedDataset(_0x2dcb55))throw CliErrors[_0x21561f(0x1a6)](buildDbTableBackedRequirementMessage(_0x2dcb55,_0x75a3c9));}
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const datasetDelete: CommandDefinition;
@@ -1 +1 @@
1
- const a61_0x44240c=a61_0x3875;function a61_0x5829(){const _0x1bf52e=['One\x20of\x20--id,\x20--code,\x20or\x20--dbid\x20is\x20required.','1199970bjcTJB','expected-count','name','Dataset\x20id','num','push','1943550jUGVci','880214gtqGgb','POST','filter','37385USffPE','id=','validation','/smartapi/dataset/delete-dataset','relatedPageInfoList','str','isArray','dbtableConfig','description','confirm','code','\x20dataset(s)','delete','714615wflclM','number','14008tevvAV','Delete\x20all\x20datasets\x20under\x20this\x20database\x20connection\x20id','length','Delete\x20dataset\x20metadata\x20by\x20id/code\x20or\x20all\x20datasets\x20under\x20a\x20db\x20id','dbId','\x20dataset(s);\x20','Required\x20to\x20execute\x20dataset\x20deletion','186oGjVdy','bool','message','dbid','1974TKjYOw','tableName','Deleted\x20','Abort\x20unless\x20the\x20matched\x20dataset\x20count\x20equals\x20this\x20value','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm\x20when\x20the\x20target\x20list\x20is\x20correct.','1136684AoNjOz','\x20dataset(s).\x20This\x20only\x20deletes\x20platform\x20dataset\x20metadata\x20and\x20related\x20page/menu\x20records,\x20not\x20physical\x20databases\x20or\x20tables.','boolean','\x20dataset(s),\x20but\x20--expected-count\x20is\x20','source','dbName','dbid=','appCode','high-risk-write','dataset'];a61_0x5829=function(){return _0x1bf52e;};return a61_0x5829();}(function(_0x37d5d1,_0x4e91ff){const _0x5907c6=a61_0x3875,_0x290efe=_0x37d5d1();while(!![]){try{const _0x1a1299=-parseInt(_0x5907c6(0x75))/0x1+parseInt(_0x5907c6(0x65))/0x2+parseInt(_0x5907c6(0x92))/0x3+parseInt(_0x5907c6(0x87))/0x4+-parseInt(_0x5907c6(0x68))/0x5*(parseInt(_0x5907c6(0x7e))/0x6)+parseInt(_0x5907c6(0x82))/0x7*(parseInt(_0x5907c6(0x77))/0x8)+-parseInt(_0x5907c6(0x64))/0x9;if(_0x1a1299===_0x4e91ff)break;else _0x290efe['push'](_0x290efe['shift']());}catch(_0x36040b){_0x290efe['push'](_0x290efe['shift']());}}}(a61_0x5829,0x6f412));import{deleteDataset,getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';const DATASET_ID_FLAG={'name':'id','type':a61_0x44240c(0x76),'description':a61_0x44240c(0x95)},DBID_FLAG={'name':a61_0x44240c(0x81),'type':a61_0x44240c(0x76),'description':a61_0x44240c(0x78)},CONFIRM_FLAG={'name':a61_0x44240c(0x71),'type':a61_0x44240c(0x89),'description':a61_0x44240c(0x7d)},EXPECTED_COUNT_FLAG={'name':a61_0x44240c(0x93),'type':a61_0x44240c(0x76),'description':a61_0x44240c(0x85)};export const datasetDelete={'service':a61_0x44240c(0x90),'command':a61_0x44240c(0x74),'description':a61_0x44240c(0x7a),'risk':a61_0x44240c(0x8f),'flags':[DATASET_ID_FLAG,CODE_FLAG_OPTIONAL,DBID_FLAG,CONFIRM_FLAG,EXPECTED_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3b2114){const _0x9a1b8=a61_0x44240c,_0x550c4b=_0x3b2114['num']('id'),_0x5efd50=_0x3b2114['str'](_0x9a1b8(0x72)),_0x164c4b=_0x3b2114[_0x9a1b8(0x96)](_0x9a1b8(0x81)),_0x1c3a7f=[_0x550c4b>0x0,Boolean(_0x5efd50),_0x164c4b>0x0][_0x9a1b8(0x67)](Boolean);if(_0x1c3a7f[_0x9a1b8(0x79)]===0x0)throw CliErrors['validation'](_0x9a1b8(0x91));if(_0x1c3a7f[_0x9a1b8(0x79)]>0x1)throw CliErrors[_0x9a1b8(0x6a)]('Use\x20only\x20one\x20of\x20--id,\x20--code,\x20or\x20--dbid.');},async 'dryRun'(_0x2c56a0){const _0x5b320c=a61_0x44240c,_0xcbd5dd=await resolveTargets(_0x2c56a0);return{'method':_0x5b320c(0x66),'url':_0x5b320c(0x6b),'body':{'appCode':_0x2c56a0['appCode'],'count':_0xcbd5dd[_0x5b320c(0x79)],'datasets':_0xcbd5dd},'description':'Would\x20delete\x20'+_0xcbd5dd['length']+_0x5b320c(0x88)};},async 'execute'(_0x3d43fd){const _0x355b7a=a61_0x44240c;if(!_0x3d43fd[_0x355b7a(0x7f)](_0x355b7a(0x71)))throw CliErrors[_0x355b7a(0x6a)]('--confirm\x20is\x20required\x20to\x20delete\x20datasets.',_0x355b7a(0x86));const _0x5093ff=await resolveTargets(_0x3d43fd),_0x3be64b=[],_0x32eb0c=[];for(const _0x585fbd of _0x5093ff){try{await deleteDataset(_0x3d43fd[_0x355b7a(0x8e)],_0x585fbd['id']),_0x3be64b[_0x355b7a(0x97)](_0x585fbd);}catch(_0x3943c0){_0x32eb0c['push']({..._0x585fbd,'error':_0x3943c0 instanceof Error?_0x3943c0[_0x355b7a(0x80)]:String(_0x3943c0)});}}if(_0x32eb0c[_0x355b7a(0x79)]>0x0)return{'ok':![],'data':{'requested':_0x5093ff[_0x355b7a(0x79)],'deletedCount':_0x3be64b['length'],'failedCount':_0x32eb0c[_0x355b7a(0x79)],'deleted':_0x3be64b,'failed':_0x32eb0c},'message':_0x355b7a(0x84)+_0x3be64b[_0x355b7a(0x79)]+'/'+_0x5093ff[_0x355b7a(0x79)]+_0x355b7a(0x7c)+_0x32eb0c[_0x355b7a(0x79)]+'\x20failed'};return{'ok':!![],'data':{'requested':_0x5093ff[_0x355b7a(0x79)],'deletedCount':_0x3be64b['length'],'deleted':_0x3be64b},'message':_0x355b7a(0x84)+_0x3be64b['length']+_0x355b7a(0x73)};}};async function resolveTargets(_0x1999da){const _0x4598a9=a61_0x44240c,_0x59e7a4=_0x1999da[_0x4598a9(0x96)]('id'),_0x5e7595=_0x1999da[_0x4598a9(0x6d)](_0x4598a9(0x72)),_0x33d72f=_0x1999da[_0x4598a9(0x96)](_0x4598a9(0x81));let _0x43fa43;_0x5e7595?(_0x43fa43=await listDatasets(_0x1999da[_0x4598a9(0x8e)],{'code':_0x5e7595}),_0x43fa43=_0x43fa43[_0x4598a9(0x67)](_0x22beba=>_0x22beba['code']===_0x5e7595)):(_0x43fa43=await listDatasets(_0x1999da[_0x4598a9(0x8e)]),_0x59e7a4>0x0&&(_0x43fa43=_0x43fa43['filter'](_0x12fc02=>_0x12fc02['id']===_0x59e7a4)),_0x33d72f>0x0&&(_0x43fa43=_0x43fa43[_0x4598a9(0x67)](_0x158c97=>_0x158c97[_0x4598a9(0x6f)]?.[_0x4598a9(0x7b)]===_0x33d72f)));const _0x2d98ef=[];for(const _0x313297 of _0x43fa43){const _0x180d30=await getDatasetDetail(_0x313297[_0x4598a9(0x72)]),_0x324cc2=Array[_0x4598a9(0x6e)](_0x180d30[_0x4598a9(0x6c)])?_0x180d30[_0x4598a9(0x6c)][_0x4598a9(0x67)](_0x4ed64d=>_0x4ed64d!=null&&typeof _0x4ed64d==='object'&&_0x4ed64d['deleted']!==!![]):[];_0x2d98ef['push'](normalizeTarget(_0x313297,_0x324cc2[_0x4598a9(0x79)]));}if(_0x2d98ef['length']===0x0){const _0x39aebc=_0x5e7595||(_0x59e7a4>0x0?_0x4598a9(0x69)+_0x59e7a4:_0x4598a9(0x8d)+_0x33d72f);throw CliErrors['validation']('No\x20undeleted\x20dataset\x20found\x20for\x20'+_0x39aebc+'.');}const _0x2498b3=_0x1999da[_0x4598a9(0x96)]('expected-count');if(_0x2498b3>0x0&&_0x2d98ef['length']!==_0x2498b3)throw CliErrors[_0x4598a9(0x6a)]('Matched\x20'+_0x2d98ef['length']+_0x4598a9(0x8a)+_0x2498b3+'.');return _0x2d98ef;}function a61_0x3875(_0x2916fb,_0x34b133){_0x2916fb=_0x2916fb-0x64;const _0x58291f=a61_0x5829();let _0x3875c6=_0x58291f[_0x2916fb];return _0x3875c6;}function normalizeTarget(_0x57c54e,_0x3285dc){const _0x1346c5=a61_0x44240c,_0x134db2=_0x57c54e[_0x1346c5(0x6f)]??{};return{'id':_0x57c54e['id'],'code':_0x57c54e[_0x1346c5(0x72)],'name':_0x57c54e[_0x1346c5(0x94)],'description':_0x57c54e[_0x1346c5(0x70)],'source':_0x57c54e[_0x1346c5(0x8b)],'dbId':_0x134db2[_0x1346c5(0x7b)],'dbName':_0x134db2[_0x1346c5(0x8c)],'tableName':_0x134db2[_0x1346c5(0x83)],'relatedPageCount':_0x3285dc};}
1
+ function a61_0x30f5(){const _0x27563d=['694dlvkPU','13119813giMuGy','Matched\x20','2210KtMrnN','filter','\x20dataset(s)','push','validation','dbtableConfig','POST','code','Delete\x20all\x20datasets\x20under\x20this\x20database\x20connection\x20id','20vAPFHg','10707pEWoQH','dbName','567292CivcGB','95975gbTiRy','--confirm\x20is\x20required\x20to\x20delete\x20datasets.','bool','1361591lKHJVP','10485656raKNZo','relatedPageInfoList','Delete\x20dataset\x20metadata\x20by\x20id/code\x20or\x20all\x20datasets\x20under\x20a\x20db\x20id','\x20dataset(s).\x20This\x20only\x20deletes\x20platform\x20dataset\x20metadata\x20and\x20related\x20page/menu\x20records,\x20not\x20physical\x20databases\x20or\x20tables.','Abort\x20unless\x20the\x20matched\x20dataset\x20count\x20equals\x20this\x20value','confirm','tableName','name','Deleted\x20','\x20failed','Dataset\x20id','Would\x20delete\x20','expected-count','24kmJgrt','dataset','number','str','high-risk-write','length','delete','dbId','21676jZPMQb','num','One\x20of\x20--id,\x20--code,\x20or\x20--dbid\x20is\x20required.','Use\x20only\x20one\x20of\x20--id,\x20--code,\x20or\x20--dbid.','dbid','Required\x20to\x20execute\x20dataset\x20deletion','appCode'];a61_0x30f5=function(){return _0x27563d;};return a61_0x30f5();}function a61_0x44e7(_0x412dd7,_0x2ce8ff){_0x412dd7=_0x412dd7-0x109;const _0x30f5a2=a61_0x30f5();let _0x44e76c=_0x30f5a2[_0x412dd7];return _0x44e76c;}const a61_0x1e8186=a61_0x44e7;(function(_0x34fbe6,_0x1464c0){const _0x1722d5=a61_0x44e7,_0x176480=_0x34fbe6();while(!![]){try{const _0x1474f0=parseInt(_0x1722d5(0x12e))/0x1+parseInt(_0x1722d5(0x135))/0x2*(-parseInt(_0x1722d5(0x112))/0x3)+parseInt(_0x1722d5(0x114))/0x4*(-parseInt(_0x1722d5(0x111))/0x5)+parseInt(_0x1722d5(0x126))/0x6*(parseInt(_0x1722d5(0x118))/0x7)+parseInt(_0x1722d5(0x119))/0x8+-parseInt(_0x1722d5(0x136))/0x9+parseInt(_0x1722d5(0x138))/0xa*(parseInt(_0x1722d5(0x115))/0xb);if(_0x1474f0===_0x1464c0)break;else _0x176480['push'](_0x176480['shift']());}catch(_0x87ed0e){_0x176480['push'](_0x176480['shift']());}}}(a61_0x30f5,0xbd400));import{deleteDataset,getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';const DATASET_ID_FLAG={'name':'id','type':a61_0x1e8186(0x128),'description':a61_0x1e8186(0x123)},DBID_FLAG={'name':a61_0x1e8186(0x132),'type':a61_0x1e8186(0x128),'description':a61_0x1e8186(0x110)},CONFIRM_FLAG={'name':a61_0x1e8186(0x11e),'type':'boolean','description':a61_0x1e8186(0x133)},EXPECTED_COUNT_FLAG={'name':a61_0x1e8186(0x125),'type':a61_0x1e8186(0x128),'description':a61_0x1e8186(0x11d)};export const datasetDelete={'service':a61_0x1e8186(0x127),'command':a61_0x1e8186(0x12c),'description':a61_0x1e8186(0x11b),'risk':a61_0x1e8186(0x12a),'flags':[DATASET_ID_FLAG,CODE_FLAG_OPTIONAL,DBID_FLAG,CONFIRM_FLAG,EXPECTED_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x39b125){const _0x1a99b5=a61_0x1e8186,_0x5e48ca=_0x39b125['num']('id'),_0x259511=_0x39b125[_0x1a99b5(0x129)](_0x1a99b5(0x10f)),_0x1e693b=_0x39b125[_0x1a99b5(0x12f)](_0x1a99b5(0x132)),_0x571872=[_0x5e48ca>0x0,Boolean(_0x259511),_0x1e693b>0x0][_0x1a99b5(0x109)](Boolean);if(_0x571872[_0x1a99b5(0x12b)]===0x0)throw CliErrors[_0x1a99b5(0x10c)](_0x1a99b5(0x130));if(_0x571872[_0x1a99b5(0x12b)]>0x1)throw CliErrors[_0x1a99b5(0x10c)](_0x1a99b5(0x131));},async 'dryRun'(_0x11fbda){const _0x43b8d5=a61_0x1e8186,_0x381ac8=await resolveTargets(_0x11fbda);return{'method':_0x43b8d5(0x10e),'url':'/smartapi/dataset/delete-dataset','body':{'appCode':_0x11fbda[_0x43b8d5(0x134)],'count':_0x381ac8[_0x43b8d5(0x12b)],'datasets':_0x381ac8},'description':_0x43b8d5(0x124)+_0x381ac8['length']+_0x43b8d5(0x11c)};},async 'execute'(_0x48c473){const _0x4f35db=a61_0x1e8186;if(!_0x48c473[_0x4f35db(0x117)]('confirm'))throw CliErrors['validation'](_0x4f35db(0x116),'Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm\x20when\x20the\x20target\x20list\x20is\x20correct.');const _0x12bd3c=await resolveTargets(_0x48c473),_0x42ee6a=[],_0x3265f2=[];for(const _0x65e4df of _0x12bd3c){try{await deleteDataset(_0x48c473[_0x4f35db(0x134)],_0x65e4df['id']),_0x42ee6a[_0x4f35db(0x10b)](_0x65e4df);}catch(_0x3d7f4f){_0x3265f2[_0x4f35db(0x10b)]({..._0x65e4df,'error':_0x3d7f4f instanceof Error?_0x3d7f4f['message']:String(_0x3d7f4f)});}}if(_0x3265f2['length']>0x0)return{'ok':![],'data':{'requested':_0x12bd3c[_0x4f35db(0x12b)],'deletedCount':_0x42ee6a[_0x4f35db(0x12b)],'failedCount':_0x3265f2['length'],'deleted':_0x42ee6a,'failed':_0x3265f2},'message':_0x4f35db(0x121)+_0x42ee6a[_0x4f35db(0x12b)]+'/'+_0x12bd3c[_0x4f35db(0x12b)]+'\x20dataset(s);\x20'+_0x3265f2[_0x4f35db(0x12b)]+_0x4f35db(0x122)};return{'ok':!![],'data':{'requested':_0x12bd3c[_0x4f35db(0x12b)],'deletedCount':_0x42ee6a[_0x4f35db(0x12b)],'deleted':_0x42ee6a},'message':_0x4f35db(0x121)+_0x42ee6a[_0x4f35db(0x12b)]+_0x4f35db(0x10a)};}};async function resolveTargets(_0x30e589){const _0x1990b7=a61_0x1e8186,_0xbc2b0f=_0x30e589[_0x1990b7(0x12f)]('id'),_0x263d76=_0x30e589[_0x1990b7(0x129)](_0x1990b7(0x10f)),_0x32667c=_0x30e589[_0x1990b7(0x12f)](_0x1990b7(0x132));let _0x5ab416;_0x263d76?(_0x5ab416=await listDatasets(_0x30e589[_0x1990b7(0x134)],{'code':_0x263d76}),_0x5ab416=_0x5ab416['filter'](_0x5d6dc0=>_0x5d6dc0[_0x1990b7(0x10f)]===_0x263d76)):(_0x5ab416=await listDatasets(_0x30e589[_0x1990b7(0x134)]),_0xbc2b0f>0x0&&(_0x5ab416=_0x5ab416[_0x1990b7(0x109)](_0x2a93d8=>_0x2a93d8['id']===_0xbc2b0f)),_0x32667c>0x0&&(_0x5ab416=_0x5ab416[_0x1990b7(0x109)](_0x49546a=>_0x49546a['dbtableConfig']?.[_0x1990b7(0x12d)]===_0x32667c)));const _0x58bebc=[];for(const _0x53df53 of _0x5ab416){const _0x15986f=await getDatasetDetail(_0x53df53[_0x1990b7(0x10f)]),_0x2c98fd=Array['isArray'](_0x15986f[_0x1990b7(0x11a)])?_0x15986f[_0x1990b7(0x11a)]['filter'](_0x592ee6=>_0x592ee6!=null&&typeof _0x592ee6==='object'&&_0x592ee6['deleted']!==!![]):[];_0x58bebc[_0x1990b7(0x10b)](normalizeTarget(_0x53df53,_0x2c98fd[_0x1990b7(0x12b)]));}if(_0x58bebc['length']===0x0){const _0x3f558b=_0x263d76||(_0xbc2b0f>0x0?'id='+_0xbc2b0f:'dbid='+_0x32667c);throw CliErrors[_0x1990b7(0x10c)]('No\x20undeleted\x20dataset\x20found\x20for\x20'+_0x3f558b+'.');}const _0x99d1b5=_0x30e589[_0x1990b7(0x12f)](_0x1990b7(0x125));if(_0x99d1b5>0x0&&_0x58bebc['length']!==_0x99d1b5)throw CliErrors[_0x1990b7(0x10c)](_0x1990b7(0x137)+_0x58bebc[_0x1990b7(0x12b)]+'\x20dataset(s),\x20but\x20--expected-count\x20is\x20'+_0x99d1b5+'.');return _0x58bebc;}function normalizeTarget(_0x670582,_0x5b3cff){const _0x344fa8=a61_0x1e8186,_0x214bb8=_0x670582[_0x344fa8(0x10d)]??{};return{'id':_0x670582['id'],'code':_0x670582[_0x344fa8(0x10f)],'name':_0x670582[_0x344fa8(0x120)],'description':_0x670582['description'],'source':_0x670582['source'],'dbId':_0x214bb8[_0x344fa8(0x12d)],'dbName':_0x214bb8[_0x344fa8(0x113)],'tableName':_0x214bb8[_0x344fa8(0x11f)],'relatedPageCount':_0x5b3cff};}
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const datasetDetail: CommandDefinition;
@@ -1 +1 @@
1
- const a62_0x369ef0=a62_0x816e;(function(_0x4b68db,_0x4b4a90){const _0x565b0b=a62_0x816e,_0x5c2b4b=_0x4b68db();while(!![]){try{const _0x3249f0=parseInt(_0x565b0b(0xa0))/0x1*(-parseInt(_0x565b0b(0xb0))/0x2)+parseInt(_0x565b0b(0xc1))/0x3+-parseInt(_0x565b0b(0xbe))/0x4+parseInt(_0x565b0b(0x96))/0x5*(-parseInt(_0x565b0b(0xcb))/0x6)+parseInt(_0x565b0b(0xcd))/0x7*(-parseInt(_0x565b0b(0xa8))/0x8)+-parseInt(_0x565b0b(0x95))/0x9*(parseInt(_0x565b0b(0xaa))/0xa)+parseInt(_0x565b0b(0x94))/0xb*(parseInt(_0x565b0b(0xc7))/0xc);if(_0x3249f0===_0x4b4a90)break;else _0x5c2b4b['push'](_0x5c2b4b['shift']());}catch(_0x4eb389){_0x5c2b4b['push'](_0x5c2b4b['shift']());}}}(a62_0x5770,0xe7619));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function normalizeField(_0x28f8a3){const _0x53771b=a62_0x816e;if(_0x28f8a3[_0x53771b(0xa4)])return null;const _0x5923d1=Boolean(_0x28f8a3[_0x53771b(0xa6)]!==undefined||_0x28f8a3[_0x53771b(0xb3)]!==undefined);let _0x412b0d={};if(!_0x5923d1&&typeof _0x28f8a3[_0x53771b(0xac)]===_0x53771b(0xd3))try{_0x412b0d=JSON[_0x53771b(0x8f)](_0x28f8a3[_0x53771b(0xac)]);}catch{}const _0xd3d3ee=_0x5923d1?_0x28f8a3['name']:_0x28f8a3[_0x53771b(0x9d)],_0x3aa911=_0x5923d1?_0x28f8a3[_0x53771b(0xa6)]:_0x28f8a3[_0x53771b(0xcc)],_0x378d52=_0x5923d1?_0x28f8a3[_0x53771b(0xb3)]:_0x28f8a3[_0x53771b(0xda)]||_0x28f8a3[_0x53771b(0xd1)],_0x4764c5=_0x5923d1?_0x28f8a3['pkField']===!![]:_0x412b0d[_0x53771b(0xc4)]===!![],_0x36492e=_0x5923d1?_0x28f8a3['required']===!![]:_0x412b0d[_0x53771b(0x9a)]===!![],_0x5350b1=_0x5923d1?_0x28f8a3['options']??null:_0x412b0d['options']??null,_0xac7bdd={'name':_0xd3d3ee,'displayName':_0x3aa911||_0xd3d3ee,'type':_0x378d52,'dbType':_0x28f8a3['dbType'],'pk':_0x4764c5,'required':_0x36492e,'deprecated':_0x28f8a3[_0x53771b(0x8e)]===!![],'description':_0x28f8a3['description']||undefined};return Array[_0x53771b(0x90)](_0x5350b1)&&_0x5350b1['length']>0x0&&(_0xac7bdd[_0x53771b(0xa5)]=_0x5350b1),_0xac7bdd;}function a62_0x5770(){const _0x50ac6b=['trim','dbtableConfig','3152nSLZzV','responseFields','afterScriptId','doType','map','fromField','main_sub','dbId','entries','description','toDatasetCode','method','tableComment','bizRelationType','6127340ZmuSqW','modelCode','alias','3289113NLIZzg','creatorNameField','filter','pkField','toDatasetName','modifierNameField','6420984gTXmJA','relations','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','dataset','6cncQYN','name','161rVLrlV','labelField','tableName','relationId','dataType','fields','string','length','str','responseBody','createTimeField','source','toTableName','type','formatRules','updateTimeField','beforeScriptId','deprecated','parse','isArray','push','object','split','77HLaTfW','9RyYJFe','116185jLqcHW','sourceType','read','allFields','required','indexes','requestFields','code','logicField','properties','128jolclY','datasetKey','modelId','allFieldNames','deleted','options','displayName','requestBody','611624dwlKuS','host','3789890HzNCjN','dbName','extend','validateRules'];a62_0x5770=function(){return _0x50ac6b;};return a62_0x5770();}function parseJsonMaybe(_0x114d8d){const _0x16b242=a62_0x816e;if(typeof _0x114d8d!==_0x16b242(0xd3))return _0x114d8d;try{return JSON['parse'](_0x114d8d);}catch{return _0x114d8d;}}function normalizeOperationEntry(_0x31f9f6,_0x5162ec){const _0x50dbf8=a62_0x816e;if(!_0x5162ec||typeof _0x5162ec!=='object')return null;if(!_0x5162ec['method']||!_0x5162ec['path'])return null;const _0x286d11={'name':_0x31f9f6,'method':_0x5162ec[_0x50dbf8(0xbb)],'path':_0x5162ec['path']};if(_0x5162ec[_0x50dbf8(0xa9)])_0x286d11[_0x50dbf8(0xa9)]=_0x5162ec['host'];if(_0x5162ec[_0x50dbf8(0xa7)]!=null){const _0x472563=parseJsonMaybe(_0x5162ec[_0x50dbf8(0xa7)]);_0x286d11['requestBody']=_0x472563;}if(_0x5162ec[_0x50dbf8(0xd6)]!=null){const _0x4a7425=parseJsonMaybe(_0x5162ec['responseBody']);_0x286d11['responseBody']=_0x4a7425;}if(_0x5162ec[_0x50dbf8(0xdd)]!=null)_0x286d11[_0x50dbf8(0xdd)]=_0x5162ec[_0x50dbf8(0xdd)];if(_0x5162ec[_0x50dbf8(0xb2)]!=null)_0x286d11[_0x50dbf8(0xb2)]=_0x5162ec['afterScriptId'];if(Array[_0x50dbf8(0x90)](_0x5162ec[_0x50dbf8(0x9c)]))_0x286d11[_0x50dbf8(0x9c)]=_0x5162ec[_0x50dbf8(0x9c)];if(Array[_0x50dbf8(0x90)](_0x5162ec['responseFields']))_0x286d11['responseFields']=_0x5162ec[_0x50dbf8(0xb1)];return _0x286d11;}function summarizeDbtable(_0x411635){const _0x377451=a62_0x816e,_0x35cabe={},_0x1c3f14=[_0x377451(0xb7),_0x377451(0xab),'tableName','datasetKey',_0x377451(0xc4),'allFields',_0x377451(0x9e),_0x377451(0xd7),_0x377451(0xdc),'creatorIdField',_0x377451(0xc2),'modifierIdField',_0x377451(0xc6),_0x377451(0xce),'dblinkInfoDTO'];for(const _0x3d056e of _0x1c3f14){if(_0x411635[_0x3d056e]!==undefined)_0x35cabe[_0x3d056e]=_0x411635[_0x3d056e];}return typeof _0x35cabe[_0x377451(0x99)]===_0x377451(0xd3)&&_0x35cabe[_0x377451(0x99)][_0x377451(0xd4)]>0x0&&(_0x35cabe[_0x377451(0xa3)]=_0x35cabe[_0x377451(0x99)][_0x377451(0x93)](',')[_0x377451(0xb4)](_0x5dfe31=>_0x5dfe31[_0x377451(0xae)]())[_0x377451(0xc3)](Boolean)),_0x35cabe;}function a62_0x816e(_0x328134,_0xd0b3b8){_0x328134=_0x328134-0x8e;const _0x5770cd=a62_0x5770();let _0x816e5=_0x5770cd[_0x328134];return _0x816e5;}function normalizeRelatedPages(_0x4af87e){const _0xe785ec=a62_0x816e;if(!Array['isArray'](_0x4af87e))return[];return _0x4af87e['filter'](_0x42a0c4=>_0x42a0c4&&typeof _0x42a0c4===_0xe785ec(0x92))['map'](_0x3f065b=>({'id':_0x3f065b['id'],'type':_0x3f065b['type'],'code':_0x3f065b[_0xe785ec(0x9d)],'title':_0x3f065b['title'],'deleted':_0x3f065b['deleted']===!![]}));}export const datasetDetail={'service':a62_0x369ef0(0xca),'command':'detail','description':a62_0x369ef0(0xc9),'risk':a62_0x369ef0(0x98),'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a62_0x369ef0(0xc0),'type':a62_0x369ef0(0xd3),'description':'Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically'}],async 'execute'(_0x55d1fd){const _0x298477=a62_0x369ef0,_0x10cadd=await getDatasetDetail(_0x55d1fd[_0x298477(0xd5)](_0x298477(0x9d))),_0x2221a3=Array[_0x298477(0x90)](_0x10cadd[_0x298477(0xd2)])?_0x10cadd[_0x298477(0xd2)]:Array[_0x298477(0x90)](_0x10cadd[_0x298477(0x9f)])?_0x10cadd[_0x298477(0x9f)]:[],_0x2971a5=_0x2221a3[_0x298477(0xb4)](_0x581cb5=>normalizeField(_0x581cb5))[_0x298477(0xc3)](_0x293e7f=>_0x293e7f!==null),_0x7f24f1=_0x10cadd['operations']??{},_0x4f24bd=[];for(const [_0x97f2b3,_0x115c5e]of Object[_0x298477(0xb8)](_0x7f24f1)){const _0x302cbd=normalizeOperationEntry(_0x97f2b3,_0x115c5e);if(_0x302cbd)_0x4f24bd[_0x298477(0x91)](_0x302cbd);}const _0x3e8c9d=_0x10cadd[_0x298477(0xaf)]??{},_0x49cef3=_0x10cadd[_0x298477(0xca)]??{},_0x2682db=_0x3e8c9d[_0x298477(0xb7)]!=null?{'id':_0x3e8c9d[_0x298477(0xb7)],'name':_0x3e8c9d[_0x298477(0xab)]??null}:undefined;let _0x5b99a0;return typeof _0x10cadd[_0x298477(0xac)]===_0x298477(0xd3)&&(_0x5b99a0=parseJsonMaybe(_0x10cadd[_0x298477(0xac)])),{'ok':!![],'data':{'id':_0x10cadd[_0x298477(0xa2)]??_0x10cadd['id'],'name':_0x10cadd['name'],'code':_0x10cadd[_0x298477(0xbf)]||_0x10cadd['code'],'doVersion':_0x10cadd['doVersion'],'description':_0x10cadd[_0x298477(0xb9)]||_0x49cef3[_0x298477(0xbc)]||undefined,'source':_0x10cadd[_0x298477(0xd8)]||_0x49cef3[_0x298477(0x97)],'table':_0x3e8c9d['tableName']||_0x49cef3[_0x298477(0xcf)],'datasetKey':_0x3e8c9d[_0x298477(0xa1)],'pk':_0x3e8c9d[_0x298477(0xc4)],'db':_0x2682db,'dbtable':summarizeDbtable(_0x3e8c9d),'fields':_0x2971a5,'operations':_0x4f24bd,'indexes':Array[_0x298477(0x90)](_0x49cef3['indexes'])?_0x49cef3[_0x298477(0x9b)]:[],'relations':Array[_0x298477(0x90)](_0x10cadd[_0x298477(0xc8)])?_0x10cadd['relations'][_0x298477(0xb4)](_0x2bc27=>({..._0x2bc27[_0x298477(0xd0)]!=null?{'relationId':_0x2bc27[_0x298477(0xd0)]}:{},'fromDataset':_0x10cadd['name'],'fromCode':_0x10cadd['modelCode']||_0x10cadd[_0x298477(0x9d)],'fromTable':_0x3e8c9d[_0x298477(0xcf)]||_0x49cef3[_0x298477(0xcf)],'fromField':_0x2bc27[_0x298477(0xb5)],'toDataset':_0x2bc27[_0x298477(0xc5)],'toCode':_0x2bc27[_0x298477(0xba)],'toTable':_0x2bc27[_0x298477(0xd9)],'toField':_0x2bc27['toField'],'labelField':_0x2bc27['toFieldLabel']||undefined,'cardinality':_0x2bc27['cardinality']||undefined,'bizRelationType':_0x2bc27[_0x298477(0xbd)]===_0x298477(0xb6)?_0x298477(0xb6):null})):[],'relatedPages':normalizeRelatedPages(_0x10cadd['relatedPageInfoList']),...Array[_0x298477(0x90)](_0x10cadd['columnCodeListWithDeleted'])?{'columnCodeListWithDeleted':_0x10cadd['columnCodeListWithDeleted']}:{},'formatRules':Array[_0x298477(0x90)](_0x10cadd[_0x298477(0xdb)])?_0x10cadd[_0x298477(0xdb)]:[],'validateRules':Array[_0x298477(0x90)](_0x10cadd[_0x298477(0xad)])?_0x10cadd[_0x298477(0xad)]:[],..._0x5b99a0!==undefined?{'extend':_0x5b99a0}:{},'stats':{'fieldCount':_0x2971a5[_0x298477(0xd4)],'operationCount':_0x4f24bd[_0x298477(0xd4)]}}};}};
1
+ const a62_0x38685d=a62_0x246c;function a62_0x434b(){const _0x16ab4b=['doVersion','pkField','requestBody','description','trim','filter','doType','push','850464bArFSY','dataType','columnCodeListWithDeleted','toField','4806174ZgHAxU','indexes','toTableName','formatRules','allFields','object','extend','datasetKey','displayName','deleted','parse','responseFields','deprecated','531657CouFpt','creatorIdField','4thAzTe','string','bizRelationType','operations','modelCode','updateTimeField','title','dataset','tableComment','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','12051466dSHtZc','allFieldNames','cardinality','read','beforeScriptId','validateRules','responseBody','options','relatedPageInfoList','alias','afterScriptId','createTimeField','isArray','type','creatorNameField','toDatasetName','labelField','modifierNameField','dbName','host','length','41483781bsBEDo','modelId','4665475IelrwA','required','main_sub','modifierIdField','properties','tableName','path','8OgyVBy','relationId','relations','fields','fromField','entries','dbId','toFieldLabel','code','toDatasetCode','requestFields','method','1710428ghMpkN','name','map'];a62_0x434b=function(){return _0x16ab4b;};return a62_0x434b();}(function(_0x1ea1fd,_0x302696){const _0x2f570=a62_0x246c,_0x57c2a5=_0x1ea1fd();while(!![]){try{const _0x3314b5=-parseInt(_0x2f570(0xa5))/0x1+-parseInt(_0x2f570(0x9a))/0x2+-parseInt(_0x2f570(0xb6))/0x3+-parseInt(_0x2f570(0xb8))/0x4*(parseInt(_0x2f570(0x87))/0x5)+parseInt(_0x2f570(0xa9))/0x6+-parseInt(_0x2f570(0xc2))/0x7+-parseInt(_0x2f570(0x8e))/0x8*(-parseInt(_0x2f570(0x85))/0x9);if(_0x3314b5===_0x302696)break;else _0x57c2a5['push'](_0x57c2a5['shift']());}catch(_0x1d8af7){_0x57c2a5['push'](_0x57c2a5['shift']());}}}(a62_0x434b,0xd5104));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function normalizeField(_0x3ad903){const _0x53ac5d=a62_0x246c;if(_0x3ad903[_0x53ac5d(0xb2)])return null;const _0x8ca67b=Boolean(_0x3ad903['displayName']!==undefined||_0x3ad903['doType']!==undefined);let _0x432bcd={};if(!_0x8ca67b&&typeof _0x3ad903['extend']==='string')try{_0x432bcd=JSON[_0x53ac5d(0xb3)](_0x3ad903['extend']);}catch{}const _0x24ef7e=_0x8ca67b?_0x3ad903[_0x53ac5d(0x9b)]:_0x3ad903[_0x53ac5d(0x96)],_0x21c100=_0x8ca67b?_0x3ad903[_0x53ac5d(0xb1)]:_0x3ad903[_0x53ac5d(0x9b)],_0x5fafae=_0x8ca67b?_0x3ad903[_0x53ac5d(0xa3)]:_0x3ad903[_0x53ac5d(0x7d)]||_0x3ad903[_0x53ac5d(0xa6)],_0x421406=_0x8ca67b?_0x3ad903['pkField']===!![]:_0x432bcd[_0x53ac5d(0x9e)]===!![],_0x6efb35=_0x8ca67b?_0x3ad903[_0x53ac5d(0x88)]===!![]:_0x432bcd['required']===!![],_0x4d52c5=_0x8ca67b?_0x3ad903[_0x53ac5d(0xc9)]??null:_0x432bcd[_0x53ac5d(0xc9)]??null,_0x37dbbc={'name':_0x24ef7e,'displayName':_0x21c100||_0x24ef7e,'type':_0x5fafae,'dbType':_0x3ad903['dbType'],'pk':_0x421406,'required':_0x6efb35,'deprecated':_0x3ad903[_0x53ac5d(0xb5)]===!![],'description':_0x3ad903[_0x53ac5d(0xa0)]||undefined};return Array[_0x53ac5d(0x7c)](_0x4d52c5)&&_0x4d52c5[_0x53ac5d(0x84)]>0x0&&(_0x37dbbc['options']=_0x4d52c5),_0x37dbbc;}function parseJsonMaybe(_0x446298){const _0x2cc151=a62_0x246c;if(typeof _0x446298!==_0x2cc151(0xb9))return _0x446298;try{return JSON[_0x2cc151(0xb3)](_0x446298);}catch{return _0x446298;}}function normalizeOperationEntry(_0x522d64,_0x2779a2){const _0x2a8d93=a62_0x246c;if(!_0x2779a2||typeof _0x2779a2!==_0x2a8d93(0xae))return null;if(!_0x2779a2[_0x2a8d93(0x99)]||!_0x2779a2[_0x2a8d93(0x8d)])return null;const _0x5c1670={'name':_0x522d64,'method':_0x2779a2['method'],'path':_0x2779a2[_0x2a8d93(0x8d)]};if(_0x2779a2[_0x2a8d93(0x83)])_0x5c1670[_0x2a8d93(0x83)]=_0x2779a2[_0x2a8d93(0x83)];if(_0x2779a2[_0x2a8d93(0x9f)]!=null){const _0x519dde=parseJsonMaybe(_0x2779a2[_0x2a8d93(0x9f)]);_0x5c1670[_0x2a8d93(0x9f)]=_0x519dde;}if(_0x2779a2[_0x2a8d93(0xc8)]!=null){const _0x179d7b=parseJsonMaybe(_0x2779a2[_0x2a8d93(0xc8)]);_0x5c1670['responseBody']=_0x179d7b;}if(_0x2779a2[_0x2a8d93(0xc6)]!=null)_0x5c1670[_0x2a8d93(0xc6)]=_0x2779a2['beforeScriptId'];if(_0x2779a2[_0x2a8d93(0xcc)]!=null)_0x5c1670[_0x2a8d93(0xcc)]=_0x2779a2[_0x2a8d93(0xcc)];if(Array[_0x2a8d93(0x7c)](_0x2779a2[_0x2a8d93(0x98)]))_0x5c1670[_0x2a8d93(0x98)]=_0x2779a2[_0x2a8d93(0x98)];if(Array['isArray'](_0x2779a2[_0x2a8d93(0xb4)]))_0x5c1670[_0x2a8d93(0xb4)]=_0x2779a2['responseFields'];return _0x5c1670;}function a62_0x246c(_0x1b8626,_0x5eea3a){_0x1b8626=_0x1b8626-0x7b;const _0x434b66=a62_0x434b();let _0x246c10=_0x434b66[_0x1b8626];return _0x246c10;}function summarizeDbtable(_0x3f5adf){const _0x4af526=a62_0x246c,_0x2ca173={},_0x2e48d9=[_0x4af526(0x94),_0x4af526(0x82),'tableName',_0x4af526(0xb0),'pkField',_0x4af526(0xad),'logicField',_0x4af526(0x7b),_0x4af526(0xbd),_0x4af526(0xb7),_0x4af526(0x7e),_0x4af526(0x8a),_0x4af526(0x81),_0x4af526(0x80),'dblinkInfoDTO'];for(const _0x222f90 of _0x2e48d9){if(_0x3f5adf[_0x222f90]!==undefined)_0x2ca173[_0x222f90]=_0x3f5adf[_0x222f90];}return typeof _0x2ca173[_0x4af526(0xad)]===_0x4af526(0xb9)&&_0x2ca173[_0x4af526(0xad)][_0x4af526(0x84)]>0x0&&(_0x2ca173[_0x4af526(0xc3)]=_0x2ca173[_0x4af526(0xad)]['split'](',')['map'](_0x534777=>_0x534777[_0x4af526(0xa1)]())[_0x4af526(0xa2)](Boolean)),_0x2ca173;}function normalizeRelatedPages(_0x4b08a3){const _0x9e4eb5=a62_0x246c;if(!Array[_0x9e4eb5(0x7c)](_0x4b08a3))return[];return _0x4b08a3['filter'](_0x5acfa9=>_0x5acfa9&&typeof _0x5acfa9==='object')[_0x9e4eb5(0x9c)](_0x1adc4f=>({'id':_0x1adc4f['id'],'type':_0x1adc4f[_0x9e4eb5(0x7d)],'code':_0x1adc4f['code'],'title':_0x1adc4f[_0x9e4eb5(0xbe)],'deleted':_0x1adc4f[_0x9e4eb5(0xb2)]===!![]}));}export const datasetDetail={'service':a62_0x38685d(0xbf),'command':'detail','description':'Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','risk':a62_0x38685d(0xc5),'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a62_0x38685d(0xcb),'type':'string','description':a62_0x38685d(0xc1)}],async 'execute'(_0x5db19e){const _0x253a3f=a62_0x38685d,_0x540133=await getDatasetDetail(_0x5db19e['str'](_0x253a3f(0x96))),_0x4e381a=Array[_0x253a3f(0x7c)](_0x540133[_0x253a3f(0x91)])?_0x540133['fields']:Array[_0x253a3f(0x7c)](_0x540133[_0x253a3f(0x8b)])?_0x540133[_0x253a3f(0x8b)]:[],_0x2c897e=_0x4e381a[_0x253a3f(0x9c)](_0x2d4098=>normalizeField(_0x2d4098))[_0x253a3f(0xa2)](_0x5a4e62=>_0x5a4e62!==null),_0x12b37d=_0x540133[_0x253a3f(0xbb)]??{},_0x415644=[];for(const [_0x2971ad,_0x1e643f]of Object[_0x253a3f(0x93)](_0x12b37d)){const _0x17f690=normalizeOperationEntry(_0x2971ad,_0x1e643f);if(_0x17f690)_0x415644[_0x253a3f(0xa4)](_0x17f690);}const _0x550c04=_0x540133['dbtableConfig']??{},_0x3709a6=_0x540133[_0x253a3f(0xbf)]??{},_0x30a1b3=_0x550c04[_0x253a3f(0x94)]!=null?{'id':_0x550c04[_0x253a3f(0x94)],'name':_0x550c04[_0x253a3f(0x82)]??null}:undefined;let _0x3aef45;return typeof _0x540133[_0x253a3f(0xaf)]===_0x253a3f(0xb9)&&(_0x3aef45=parseJsonMaybe(_0x540133['extend'])),{'ok':!![],'data':{'id':_0x540133[_0x253a3f(0x86)]??_0x540133['id'],'name':_0x540133['name'],'code':_0x540133[_0x253a3f(0xbc)]||_0x540133['code'],'doVersion':_0x540133[_0x253a3f(0x9d)],'description':_0x540133[_0x253a3f(0xa0)]||_0x3709a6[_0x253a3f(0xc0)]||undefined,'source':_0x540133['source']||_0x3709a6['sourceType'],'table':_0x550c04[_0x253a3f(0x8c)]||_0x3709a6[_0x253a3f(0x8c)],'datasetKey':_0x550c04[_0x253a3f(0xb0)],'pk':_0x550c04[_0x253a3f(0x9e)],'db':_0x30a1b3,'dbtable':summarizeDbtable(_0x550c04),'fields':_0x2c897e,'operations':_0x415644,'indexes':Array[_0x253a3f(0x7c)](_0x3709a6[_0x253a3f(0xaa)])?_0x3709a6['indexes']:[],'relations':Array[_0x253a3f(0x7c)](_0x540133[_0x253a3f(0x90)])?_0x540133[_0x253a3f(0x90)]['map'](_0x127b62=>({..._0x127b62[_0x253a3f(0x8f)]!=null?{'relationId':_0x127b62[_0x253a3f(0x8f)]}:{},'fromDataset':_0x540133[_0x253a3f(0x9b)],'fromCode':_0x540133[_0x253a3f(0xbc)]||_0x540133[_0x253a3f(0x96)],'fromTable':_0x550c04['tableName']||_0x3709a6['tableName'],'fromField':_0x127b62[_0x253a3f(0x92)],'toDataset':_0x127b62[_0x253a3f(0x7f)],'toCode':_0x127b62[_0x253a3f(0x97)],'toTable':_0x127b62[_0x253a3f(0xab)],'toField':_0x127b62[_0x253a3f(0xa8)],'labelField':_0x127b62[_0x253a3f(0x95)]||undefined,'cardinality':_0x127b62[_0x253a3f(0xc4)]||undefined,'bizRelationType':_0x127b62[_0x253a3f(0xba)]==='main_sub'?_0x253a3f(0x89):null})):[],'relatedPages':normalizeRelatedPages(_0x540133[_0x253a3f(0xca)]),...Array[_0x253a3f(0x7c)](_0x540133[_0x253a3f(0xa7)])?{'columnCodeListWithDeleted':_0x540133['columnCodeListWithDeleted']}:{},'formatRules':Array['isArray'](_0x540133[_0x253a3f(0xac)])?_0x540133[_0x253a3f(0xac)]:[],'validateRules':Array[_0x253a3f(0x7c)](_0x540133[_0x253a3f(0xc7)])?_0x540133['validateRules']:[],..._0x3aef45!==undefined?{'extend':_0x3aef45}:{},'stats':{'fieldCount':_0x2c897e[_0x253a3f(0x84)],'operationCount':_0x415644[_0x253a3f(0x84)]}}};}};
@@ -0,0 +1,26 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ interface ExtendUpdateInput {
3
+ code: string;
4
+ patch: Record<string, unknown>;
5
+ expect?: Record<string, unknown>;
6
+ }
7
+ interface BuildExtendUpdateResultOptions {
8
+ appCode: string;
9
+ input: ExtendUpdateInput;
10
+ dryRun: boolean;
11
+ }
12
+ export declare function parseJsonObjectFlag(value: string | undefined, flagName: string): Record<string, unknown> | undefined;
13
+ export declare function validateExtendPatchKeys(patch: Record<string, unknown>): void;
14
+ export declare function applyExtendPatch(before: Record<string, unknown>, patch: Record<string, unknown>): {
15
+ after: Record<string, unknown>;
16
+ changedPaths: string[];
17
+ changed: boolean;
18
+ };
19
+ export declare function assertExpectation(extend: Record<string, unknown>, expected: Record<string, unknown> | undefined): void;
20
+ export declare function buildDatasetExtendUpdateResult({ appCode, input, dryRun, }: BuildExtendUpdateResultOptions): Promise<{
21
+ ok: true;
22
+ data: Record<string, unknown>;
23
+ message: string;
24
+ }>;
25
+ export declare const datasetExtendUpdate: CommandDefinition;
26
+ export {};