@lovrabet/rabetbase-cli 2.3.16-beta.7 → 2.4.1-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (435) hide show
  1. package/README.md +4 -10
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/login-success-html.js +1 -1
  12. package/lib/auth/logout.js +1 -1
  13. package/lib/cli-flags.js +1 -1
  14. package/lib/cli.js +1 -1
  15. package/lib/commands/api/generate.js +1 -1
  16. package/lib/commands/api/index.js +1 -1
  17. package/lib/commands/api/list.js +1 -1
  18. package/lib/commands/api/pull.js +1 -1
  19. package/lib/commands/api/shared.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/members-list.js +1 -1
  23. package/lib/commands/app/remote-directory.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/get.js +1 -1
  53. package/lib/commands/config/index.js +1 -1
  54. package/lib/commands/config/list.js +1 -1
  55. package/lib/commands/config/set.js +1 -1
  56. package/lib/commands/config/shared.js +1 -1
  57. package/lib/commands/data/filter.js +1 -1
  58. package/lib/commands/data/getOne.js +1 -1
  59. package/lib/commands/data/index.js +1 -1
  60. package/lib/commands/data/shared.js +1 -1
  61. package/lib/commands/dataset/business-group-update.js +1 -1
  62. package/lib/commands/dataset/capability.js +1 -1
  63. package/lib/commands/dataset/delete.js +1 -1
  64. package/lib/commands/dataset/detail.js +1 -1
  65. package/lib/commands/dataset/extend-update.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/db/analysis-batching.js +1 -1
  80. package/lib/commands/db/analyze-batch-plan.js +1 -1
  81. package/lib/commands/db/analyze-cancel.js +1 -1
  82. package/lib/commands/db/analyze-start.js +1 -1
  83. package/lib/commands/db/analyze-status.js +1 -1
  84. package/lib/commands/db/create.js +1 -1
  85. package/lib/commands/db/delete.js +1 -1
  86. package/lib/commands/db/detail.js +1 -1
  87. package/lib/commands/db/diff.js +1 -1
  88. package/lib/commands/db/index.js +1 -1
  89. package/lib/commands/db/list.js +1 -1
  90. package/lib/commands/db/shared.js +1 -1
  91. package/lib/commands/db/tables.js +1 -1
  92. package/lib/commands/db/test.js +1 -1
  93. package/lib/commands/db/update.js +1 -1
  94. package/lib/commands/doctor.js +1 -1
  95. package/lib/commands/file/index.js +1 -1
  96. package/lib/commands/init/index.js +1 -1
  97. package/lib/commands/issue/index.js +1 -1
  98. package/lib/commands/issue/nudge.js +1 -1
  99. package/lib/commands/issue/report.js +1 -1
  100. package/lib/commands/issue/shared.js +1 -1
  101. package/lib/commands/kb/create.js +1 -1
  102. package/lib/commands/kb/delete.js +1 -1
  103. package/lib/commands/kb/detail.js +1 -1
  104. package/lib/commands/kb/index.js +1 -1
  105. package/lib/commands/kb/list.js +1 -1
  106. package/lib/commands/kb/shared.js +1 -1
  107. package/lib/commands/kb/update.js +1 -1
  108. package/lib/commands/logs/index.js +1 -1
  109. package/lib/commands/menu/asset-update.js +1 -1
  110. package/lib/commands/menu/delete.js +1 -1
  111. package/lib/commands/menu/external-link-create.js +1 -1
  112. package/lib/commands/menu/external-link-update.js +1 -1
  113. package/lib/commands/menu/group-create.js +1 -1
  114. package/lib/commands/menu/group-update.js +1 -1
  115. package/lib/commands/menu/index.js +1 -1
  116. package/lib/commands/menu/list.js +1 -1
  117. package/lib/commands/menu/move.js +1 -1
  118. package/lib/commands/menu/regroup-start.js +1 -1
  119. package/lib/commands/menu/rename.js +1 -1
  120. package/lib/commands/menu/shared/compare-table.js +1 -1
  121. package/lib/commands/menu/shared/delete-plan.js +1 -1
  122. package/lib/commands/menu/shared/facts.js +1 -1
  123. package/lib/commands/menu/shared/index.js +1 -1
  124. package/lib/commands/menu/shared/inquirer.js +1 -1
  125. package/lib/commands/menu/shared/local-pages.js +1 -1
  126. package/lib/commands/menu/shared/logic.js +1 -1
  127. package/lib/commands/menu/shared/mutations.js +1 -1
  128. package/lib/commands/menu/shared/service.js +1 -1
  129. package/lib/commands/menu/shared/sync-core.js +1 -1
  130. package/lib/commands/menu/shared/update-core.js +1 -1
  131. package/lib/commands/menu/shared/valid-url.js +1 -1
  132. package/lib/commands/menu/sync.js +1 -1
  133. package/lib/commands/notification/config-list.js +1 -1
  134. package/lib/commands/notification/index.js +1 -1
  135. package/lib/commands/ocr/index.js +1 -1
  136. package/lib/commands/page/generate-start.js +1 -1
  137. package/lib/commands/page/generate-status.js +1 -1
  138. package/lib/commands/page/index.js +1 -1
  139. package/lib/commands/page/pull.js +1 -1
  140. package/lib/commands/page/push.js +1 -1
  141. package/lib/commands/page/react/create.d.ts +2 -0
  142. package/lib/commands/page/react/create.js +1 -0
  143. package/lib/commands/page/react/detail.d.ts +2 -0
  144. package/lib/commands/page/react/detail.js +1 -0
  145. package/lib/commands/page/react/list.d.ts +2 -0
  146. package/lib/commands/page/react/list.js +1 -0
  147. package/lib/commands/page/react/publish.d.ts +2 -0
  148. package/lib/commands/page/react/publish.js +1 -0
  149. package/lib/commands/page/react/shared.d.ts +78 -0
  150. package/lib/commands/page/react/shared.js +1 -0
  151. package/lib/commands/page/react/syntax.d.ts +18 -0
  152. package/lib/commands/page/react/syntax.js +1 -0
  153. package/lib/commands/page/react/template.d.ts +8 -0
  154. package/lib/commands/page/react/template.js +1 -0
  155. package/lib/commands/page/react/update.d.ts +2 -0
  156. package/lib/commands/page/react/update.js +1 -0
  157. package/lib/commands/page/relation-audit.js +1 -1
  158. package/lib/commands/page/restore.js +1 -1
  159. package/lib/commands/page/shared.d.ts +1 -0
  160. package/lib/commands/page/shared.js +1 -1
  161. package/lib/commands/page/standard-page-status.js +1 -1
  162. package/lib/commands/page/sync.js +1 -1
  163. package/lib/commands/permit/index.js +1 -1
  164. package/lib/commands/permit/page-get.js +1 -1
  165. package/lib/commands/permit/page-set.js +1 -1
  166. package/lib/commands/permit/role-apis-set.js +1 -1
  167. package/lib/commands/permit/role-menus-set.js +1 -1
  168. package/lib/commands/permit/role-menus.js +1 -1
  169. package/lib/commands/permit/shared.js +1 -1
  170. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  171. package/lib/commands/project/create/format-elapsed.js +1 -1
  172. package/lib/commands/project/create/main.js +1 -1
  173. package/lib/commands/project/create/non-interactive.js +1 -1
  174. package/lib/commands/project/create/project-template-path.js +1 -1
  175. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  176. package/lib/commands/project/create/use-format-code.js +1 -1
  177. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  178. package/lib/commands/project/index.js +1 -1
  179. package/lib/commands/project/upgrade.js +1 -1
  180. package/lib/commands/registry.js +1 -1
  181. package/lib/commands/role/create.js +1 -1
  182. package/lib/commands/role/delete.js +1 -1
  183. package/lib/commands/role/detail.js +1 -1
  184. package/lib/commands/role/index.js +1 -1
  185. package/lib/commands/role/list.js +1 -1
  186. package/lib/commands/role/shared.js +1 -1
  187. package/lib/commands/role/update.js +1 -1
  188. package/lib/commands/role/user-add.js +1 -1
  189. package/lib/commands/role/user-remove.js +1 -1
  190. package/lib/commands/role/user-resolve.js +1 -1
  191. package/lib/commands/run/index.js +1 -1
  192. package/lib/commands/schema.js +1 -1
  193. package/lib/commands/sql/create.js +1 -1
  194. package/lib/commands/sql/delete.js +1 -1
  195. package/lib/commands/sql/detail.js +1 -1
  196. package/lib/commands/sql/exec.js +1 -1
  197. package/lib/commands/sql/index.js +1 -1
  198. package/lib/commands/sql/list.js +1 -1
  199. package/lib/commands/sql/pull.js +1 -1
  200. package/lib/commands/sql/push.js +1 -1
  201. package/lib/commands/sql/shared.js +1 -1
  202. package/lib/commands/sql/status.js +1 -1
  203. package/lib/commands/sql/validate.js +1 -1
  204. package/lib/commands/task/index.js +1 -1
  205. package/lib/commands/task/status.js +1 -1
  206. package/lib/commands/tenant/index.js +1 -1
  207. package/lib/commands/tenant/members-list.js +1 -1
  208. package/lib/commands/tenant/shared.js +1 -1
  209. package/lib/commands/user-account/dingding-sandbox-bind.d.ts +2 -0
  210. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -0
  211. package/lib/commands/user-account/index.d.ts +2 -0
  212. package/lib/commands/user-account/index.js +1 -0
  213. package/lib/commands/workspace/add.js +1 -1
  214. package/lib/commands/workspace/index.js +1 -1
  215. package/lib/commands/workspace/remove.js +1 -1
  216. package/lib/config/schema.js +1 -1
  217. package/lib/constant/cdn.js +1 -1
  218. package/lib/constant/cli.js +1 -1
  219. package/lib/constant/defaults.js +1 -1
  220. package/lib/constant/domain.js +1 -1
  221. package/lib/constant/env.js +1 -1
  222. package/lib/constant/output.js +1 -1
  223. package/lib/constant/paths.js +1 -1
  224. package/lib/constant/risk.js +1 -1
  225. package/lib/context/app-resolver.js +1 -1
  226. package/lib/context/auth-resolver.js +1 -1
  227. package/lib/context/config-loader.js +1 -1
  228. package/lib/context.js +1 -1
  229. package/lib/core/alias-resolver.js +1 -1
  230. package/lib/core/api-client.d.ts +117 -0
  231. package/lib/core/api-client.js +1 -1
  232. package/lib/core/bff/config.js +1 -1
  233. package/lib/core/bff/file-system.js +1 -1
  234. package/lib/core/bff/hash.js +1 -1
  235. package/lib/core/bff/lock.js +1 -1
  236. package/lib/core/bff/utils.js +1 -1
  237. package/lib/core/db-resolver.js +1 -1
  238. package/lib/core/page/file-system.js +1 -1
  239. package/lib/core/page/hash.js +1 -1
  240. package/lib/core/page/lock.js +1 -1
  241. package/lib/core/sql-index-auditor.js +1 -1
  242. package/lib/core/sql-sync/config.js +1 -1
  243. package/lib/core/sql-sync/file-system.js +1 -1
  244. package/lib/core/sql-sync/hash.js +1 -1
  245. package/lib/core/sql-sync/lock.js +1 -1
  246. package/lib/core/sql-sync/utils.js +1 -1
  247. package/lib/core/sql-validator.js +1 -1
  248. package/lib/errors.js +1 -1
  249. package/lib/framework/build-all-flags.js +1 -1
  250. package/lib/framework/error-output.js +1 -1
  251. package/lib/framework/explicit-yes.js +1 -1
  252. package/lib/framework/flags.js +1 -1
  253. package/lib/framework/help.js +1 -1
  254. package/lib/framework/index.js +1 -1
  255. package/lib/framework/output.js +1 -1
  256. package/lib/framework/response.js +1 -1
  257. package/lib/framework/runner-alias.js +1 -1
  258. package/lib/framework/runner.js +1 -1
  259. package/lib/framework/schema-export.js +1 -1
  260. package/lib/framework/types.js +1 -1
  261. package/lib/generated/build-info.d.ts +4 -4
  262. package/lib/generated/build-info.js +1 -1
  263. package/lib/help.js +1 -1
  264. package/lib/postinstall.d.ts +3 -0
  265. package/lib/postinstall.js +1 -0
  266. package/lib/runtime/confirmation.js +1 -1
  267. package/lib/runtime/event.js +1 -1
  268. package/lib/runtime/index.js +1 -1
  269. package/lib/runtime/queue.js +1 -1
  270. package/lib/runtime/resolve.js +1 -1
  271. package/lib/skills/builtin-skill.d.ts +37 -0
  272. package/lib/skills/builtin-skill.js +1 -0
  273. package/lib/skills/main.js +1 -1
  274. package/lib/skills/npx-skills-add.d.ts +4 -2
  275. package/lib/skills/npx-skills-add.js +1 -1
  276. package/lib/skills/skill-presence.js +1 -1
  277. package/lib/telemetry/cli-command-trace.js +1 -1
  278. package/lib/telemetry/cli-help-trace.js +1 -1
  279. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  280. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  281. package/lib/telemetry/send-cli-trace-log.js +1 -1
  282. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  283. package/lib/utils/ai_config.js +1 -1
  284. package/lib/utils/apply-jq-filter.js +1 -1
  285. package/lib/utils/cdn-config.js +1 -1
  286. package/lib/utils/check-sdk-version.js +1 -1
  287. package/lib/utils/cli-version-check.js +1 -1
  288. package/lib/utils/cli-version-policy.js +1 -1
  289. package/lib/utils/config.js +1 -1
  290. package/lib/utils/copy-directory.js +1 -1
  291. package/lib/utils/entity-with-id.js +1 -1
  292. package/lib/utils/file-utils.js +1 -1
  293. package/lib/utils/guides-cdn.js +1 -1
  294. package/lib/utils/http-client.js +1 -1
  295. package/lib/utils/is-non-interactive.js +1 -1
  296. package/lib/utils/logger.js +1 -1
  297. package/lib/utils/params.js +1 -1
  298. package/lib/utils/platform.js +1 -1
  299. package/lib/utils/rules-cdn.js +1 -1
  300. package/lib/utils/sleep.js +1 -1
  301. package/lib/utils/template-replacer.js +1 -1
  302. package/lib/utils/update-notice.js +1 -1
  303. package/lib/utils/version.js +1 -1
  304. package/lib/utils/with-active-cookie.js +1 -1
  305. package/lib/utils/write-cli-side-channel.js +1 -1
  306. package/package.json +9 -3
  307. package/scripts/postinstall.mjs +24 -0
  308. package/skills/rabetbase/SKILL.md +493 -0
  309. package/skills/rabetbase/guides/backend-function.md +835 -0
  310. package/skills/rabetbase/guides/best-practices.md +137 -0
  311. package/skills/rabetbase/guides/bff-creation-workflow.md +148 -0
  312. package/skills/rabetbase/guides/conflict-detection.md +119 -0
  313. package/skills/rabetbase/guides/data-api-guidelines.md +414 -0
  314. package/skills/rabetbase/guides/database-connection-workflow.md +169 -0
  315. package/skills/rabetbase/guides/frontend-development.md +179 -0
  316. package/skills/rabetbase/guides/legacy-application-blueprint-workflow.md +495 -0
  317. package/skills/rabetbase/guides/menu-anomaly-manual-cleanup.md +137 -0
  318. package/skills/rabetbase/guides/page-development-workflow.md +187 -0
  319. package/skills/rabetbase/guides/react-custom-page-workflow.md +184 -0
  320. package/skills/rabetbase/guides/role-permit-workflow.md +127 -0
  321. package/skills/rabetbase/guides/sql-creation-workflow.md +173 -0
  322. package/skills/rabetbase/guides/sql-mybatis.md +126 -0
  323. package/skills/rabetbase/guides/troubleshooting.md +67 -0
  324. package/skills/rabetbase/guides/typescript-sdk.md +227 -0
  325. package/skills/rabetbase/knowledge/page-schema/LrSmartCreate.md +367 -0
  326. package/skills/rabetbase/knowledge/page-schema/LrSmartDetail.md +153 -0
  327. package/skills/rabetbase/knowledge/page-schema/LrSmartEcharts.md +291 -0
  328. package/skills/rabetbase/knowledge/page-schema/LrSmartFilter.md +478 -0
  329. package/skills/rabetbase/knowledge/page-schema/LrSmartJsx.md +119 -0
  330. package/skills/rabetbase/knowledge/page-schema/LrSmartStatistic.md +223 -0
  331. package/skills/rabetbase/knowledge/page-schema/LrSmartTable.md +632 -0
  332. package/skills/rabetbase/knowledge/page-schema/YtPage.md +172 -0
  333. package/skills/rabetbase/knowledge/page-schema/dataset-relations.md +126 -0
  334. package/skills/rabetbase/knowledge/page-schema/external-resources-usage.md +232 -0
  335. package/skills/rabetbase/knowledge/page-schema/field-components.md +312 -0
  336. package/skills/rabetbase/knowledge/page-schema/syntax-reference.md +278 -0
  337. package/skills/rabetbase/knowledge/react-page/components.md +225 -0
  338. package/skills/rabetbase/knowledge/react-page/generation-standards.md +385 -0
  339. package/skills/rabetbase/references/rabetbase-api-list.md +58 -0
  340. package/skills/rabetbase/references/rabetbase-api-pull.md +82 -0
  341. package/skills/rabetbase/references/rabetbase-app-config.md +95 -0
  342. package/skills/rabetbase/references/rabetbase-app-list.md +79 -0
  343. package/skills/rabetbase/references/rabetbase-app-members-list.md +64 -0
  344. package/skills/rabetbase/references/rabetbase-auth-login.md +53 -0
  345. package/skills/rabetbase/references/rabetbase-auth-logout.md +29 -0
  346. package/skills/rabetbase/references/rabetbase-bff-create.md +59 -0
  347. package/skills/rabetbase/references/rabetbase-bff-delete.md +42 -0
  348. package/skills/rabetbase/references/rabetbase-bff-detail.md +38 -0
  349. package/skills/rabetbase/references/rabetbase-bff-list.md +61 -0
  350. package/skills/rabetbase/references/rabetbase-bff-pull.md +42 -0
  351. package/skills/rabetbase/references/rabetbase-bff-push.md +65 -0
  352. package/skills/rabetbase/references/rabetbase-bff-save.md +63 -0
  353. package/skills/rabetbase/references/rabetbase-bff-status.md +37 -0
  354. package/skills/rabetbase/references/rabetbase-cli-skill-install.md +42 -0
  355. package/skills/rabetbase/references/rabetbase-codegen-sdk.md +35 -0
  356. package/skills/rabetbase/references/rabetbase-codegen-sql.md +33 -0
  357. package/skills/rabetbase/references/rabetbase-config.md +296 -0
  358. package/skills/rabetbase/references/rabetbase-dataset-business-group-update.md +84 -0
  359. package/skills/rabetbase/references/rabetbase-dataset-delete.md +54 -0
  360. package/skills/rabetbase/references/rabetbase-dataset-detail.md +106 -0
  361. package/skills/rabetbase/references/rabetbase-dataset-extend-update.md +70 -0
  362. package/skills/rabetbase/references/rabetbase-dataset-field-update.md +117 -0
  363. package/skills/rabetbase/references/rabetbase-dataset-generate.md +206 -0
  364. package/skills/rabetbase/references/rabetbase-dataset-list.md +42 -0
  365. package/skills/rabetbase/references/rabetbase-dataset-operations.md +34 -0
  366. package/skills/rabetbase/references/rabetbase-dataset-relation-audit.md +63 -0
  367. package/skills/rabetbase/references/rabetbase-dataset-relation-mutations.md +141 -0
  368. package/skills/rabetbase/references/rabetbase-dataset-relations.md +71 -0
  369. package/skills/rabetbase/references/rabetbase-dataset-rename.md +107 -0
  370. package/skills/rabetbase/references/rabetbase-dataset-restore.md +54 -0
  371. package/skills/rabetbase/references/rabetbase-db-analyze.md +135 -0
  372. package/skills/rabetbase/references/rabetbase-db-create.md +54 -0
  373. package/skills/rabetbase/references/rabetbase-db-delete.md +26 -0
  374. package/skills/rabetbase/references/rabetbase-db-detail.md +27 -0
  375. package/skills/rabetbase/references/rabetbase-db-diff.md +57 -0
  376. package/skills/rabetbase/references/rabetbase-db-list.md +37 -0
  377. package/skills/rabetbase/references/rabetbase-db-tables.md +25 -0
  378. package/skills/rabetbase/references/rabetbase-db-test.md +29 -0
  379. package/skills/rabetbase/references/rabetbase-db-update.md +29 -0
  380. package/skills/rabetbase/references/rabetbase-doctor.md +62 -0
  381. package/skills/rabetbase/references/rabetbase-file.md +35 -0
  382. package/skills/rabetbase/references/rabetbase-init.md +70 -0
  383. package/skills/rabetbase/references/rabetbase-issue-report.md +132 -0
  384. package/skills/rabetbase/references/rabetbase-kb.md +62 -0
  385. package/skills/rabetbase/references/rabetbase-menu-asset-update.md +135 -0
  386. package/skills/rabetbase/references/rabetbase-menu-delete.md +54 -0
  387. package/skills/rabetbase/references/rabetbase-menu-external-link-create.md +63 -0
  388. package/skills/rabetbase/references/rabetbase-menu-external-link-update.md +74 -0
  389. package/skills/rabetbase/references/rabetbase-menu-group-create.md +33 -0
  390. package/skills/rabetbase/references/rabetbase-menu-group-update.md +38 -0
  391. package/skills/rabetbase/references/rabetbase-menu-list.md +144 -0
  392. package/skills/rabetbase/references/rabetbase-menu-move.md +54 -0
  393. package/skills/rabetbase/references/rabetbase-menu-regroup-start.md +45 -0
  394. package/skills/rabetbase/references/rabetbase-menu-rename.md +48 -0
  395. package/skills/rabetbase/references/rabetbase-menu-sync.md +60 -0
  396. package/skills/rabetbase/references/rabetbase-notification-config-list.md +80 -0
  397. package/skills/rabetbase/references/rabetbase-ocr.md +86 -0
  398. package/skills/rabetbase/references/rabetbase-page-generate-start.md +32 -0
  399. package/skills/rabetbase/references/rabetbase-page-generate-status.md +32 -0
  400. package/skills/rabetbase/references/rabetbase-page-pull.md +47 -0
  401. package/skills/rabetbase/references/rabetbase-page-push.md +45 -0
  402. package/skills/rabetbase/references/rabetbase-page-react-create.md +29 -0
  403. package/skills/rabetbase/references/rabetbase-page-react-detail.md +26 -0
  404. package/skills/rabetbase/references/rabetbase-page-react-list.md +23 -0
  405. package/skills/rabetbase/references/rabetbase-page-react-publish.md +23 -0
  406. package/skills/rabetbase/references/rabetbase-page-react-update.md +24 -0
  407. package/skills/rabetbase/references/rabetbase-page-relation-binding.md +72 -0
  408. package/skills/rabetbase/references/rabetbase-page-restore.md +45 -0
  409. package/skills/rabetbase/references/rabetbase-page-sync.md +36 -0
  410. package/skills/rabetbase/references/rabetbase-permit-page-set.md +69 -0
  411. package/skills/rabetbase/references/rabetbase-permit-role-apis-set.md +53 -0
  412. package/skills/rabetbase/references/rabetbase-permit-role-menus-set.md +57 -0
  413. package/skills/rabetbase/references/rabetbase-project-create.md +46 -0
  414. package/skills/rabetbase/references/rabetbase-project-upgrade.md +57 -0
  415. package/skills/rabetbase/references/rabetbase-role-list.md +68 -0
  416. package/skills/rabetbase/references/rabetbase-role-user-add.md +54 -0
  417. package/skills/rabetbase/references/rabetbase-role-user-resolve.md +27 -0
  418. package/skills/rabetbase/references/rabetbase-run.md +53 -0
  419. package/skills/rabetbase/references/rabetbase-schema.md +22 -0
  420. package/skills/rabetbase/references/rabetbase-sql-create.md +41 -0
  421. package/skills/rabetbase/references/rabetbase-sql-delete.md +37 -0
  422. package/skills/rabetbase/references/rabetbase-sql-detail.md +32 -0
  423. package/skills/rabetbase/references/rabetbase-sql-exec.md +34 -0
  424. package/skills/rabetbase/references/rabetbase-sql-list.md +54 -0
  425. package/skills/rabetbase/references/rabetbase-sql-pull.md +54 -0
  426. package/skills/rabetbase/references/rabetbase-sql-push.md +46 -0
  427. package/skills/rabetbase/references/rabetbase-sql-status.md +39 -0
  428. package/skills/rabetbase/references/rabetbase-sql-validate.md +73 -0
  429. package/skills/rabetbase/references/rabetbase-standard-page-status.md +31 -0
  430. package/skills/rabetbase/references/rabetbase-task-status.md +40 -0
  431. package/skills/rabetbase/references/rabetbase-tenant-members-list.md +69 -0
  432. package/skills/rabetbase/references/rabetbase-update.md +56 -0
  433. package/skills/rabetbase/references/rabetbase-user-account.md +45 -0
  434. package/skills/rabetbase/references/rabetbase-workspace.md +60 -0
  435. package/skills/rabetbase.manifest.json +137 -0
@@ -1 +1 @@
1
- (function(_0x234fbf,_0x20d368){const _0x10ce66=a49_0x4448,_0x533700=_0x234fbf();while(!![]){try{const _0xdaf22a=-parseInt(_0x10ce66(0x175))/0x1+parseInt(_0x10ce66(0x16a))/0x2+-parseInt(_0x10ce66(0x16d))/0x3*(parseInt(_0x10ce66(0x16e))/0x4)+-parseInt(_0x10ce66(0x171))/0x5*(-parseInt(_0x10ce66(0x173))/0x6)+-parseInt(_0x10ce66(0x168))/0x7*(-parseInt(_0x10ce66(0x176))/0x8)+parseInt(_0x10ce66(0x166))/0x9+-parseInt(_0x10ce66(0x172))/0xa*(parseInt(_0x10ce66(0x174))/0xb);if(_0xdaf22a===_0x20d368)break;else _0x533700['push'](_0x533700['shift']());}catch(_0x36b9fd){_0x533700['push'](_0x533700['shift']());}}}(a49_0x5f4b,0x44897));function a49_0x5f4b(){const _0x2ed0e1=['496208MYPTPB','test','App\x20Code\x20cannot\x20be\x20empty','159mIPOVz','14468laxlRt','trim','App\x20Code\x20cannot\x20exceed\x20100\x20characters','187060VrSRbm','6850670SRyMaD','24ZSAizx','11xhJfWp','149461dOgOCs','328zOJrpB','4969953EqdzMo','length','60949GtuQwn','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed'];a49_0x5f4b=function(){return _0x2ed0e1;};return a49_0x5f4b();}function a49_0x4448(_0x1ab414,_0x5d50f9){_0x1ab414=_0x1ab414-0x166;const _0x5f4be9=a49_0x5f4b();let _0x44487d=_0x5f4be9[_0x1ab414];return _0x44487d;}export function validateAppcode(_0x2accf0){const _0x32a142=a49_0x4448,_0x19ca63=_0x2accf0[_0x32a142(0x16f)]();if(!_0x19ca63)return{'valid':![],'message':_0x32a142(0x16c)};if(_0x19ca63[_0x32a142(0x167)]>0x64)return{'valid':![],'message':_0x32a142(0x170)};if(!/^[A-Za-z0-9_-]+$/[_0x32a142(0x16b)](_0x19ca63))return{'valid':![],'message':_0x32a142(0x169)};return{'valid':!![]};}
1
+ (function(_0x354db5,_0x211d5a){const _0x2ef7fb=a49_0x30d1,_0x56fd88=_0x354db5();while(!![]){try{const _0x964370=parseInt(_0x2ef7fb(0x16d))/0x1*(parseInt(_0x2ef7fb(0x17c))/0x2)+-parseInt(_0x2ef7fb(0x16e))/0x3+-parseInt(_0x2ef7fb(0x176))/0x4*(-parseInt(_0x2ef7fb(0x171))/0x5)+parseInt(_0x2ef7fb(0x177))/0x6*(parseInt(_0x2ef7fb(0x16f))/0x7)+-parseInt(_0x2ef7fb(0x173))/0x8*(-parseInt(_0x2ef7fb(0x17b))/0x9)+-parseInt(_0x2ef7fb(0x175))/0xa*(parseInt(_0x2ef7fb(0x17a))/0xb)+-parseInt(_0x2ef7fb(0x174))/0xc*(parseInt(_0x2ef7fb(0x170))/0xd);if(_0x964370===_0x211d5a)break;else _0x56fd88['push'](_0x56fd88['shift']());}catch(_0x28a388){_0x56fd88['push'](_0x56fd88['shift']());}}}(a49_0x39d5,0xb1fb2));function a49_0x30d1(_0x43bff2,_0x4b65a2){_0x43bff2=_0x43bff2-0x16d;const _0x39d50a=a49_0x39d5();let _0x30d13c=_0x39d50a[_0x43bff2];return _0x30d13c;}function a49_0x39d5(){const _0x2b69d3=['8AKsiyo','32628tvUJrt','50MapuvD','207428oCmMiz','748944eyqCvr','length','App\x20Code\x20cannot\x20be\x20empty','1429461ZFoxcx','4069134NhJgse','94228UskPtJ','trim','2iFLmEN','1408911eMTuVY','49yokhmn','3159mKzHty','105IgYpEM','App\x20Code\x20cannot\x20exceed\x20100\x20characters'];a49_0x39d5=function(){return _0x2b69d3;};return a49_0x39d5();}export function validateAppcode(_0x4f60ad){const _0xc85eef=a49_0x30d1,_0x239230=_0x4f60ad[_0xc85eef(0x17d)]();if(!_0x239230)return{'valid':![],'message':_0xc85eef(0x179)};if(_0x239230[_0xc85eef(0x178)]>0x64)return{'valid':![],'message':_0xc85eef(0x172)};if(!/^[A-Za-z0-9_-]+$/['test'](_0x239230))return{'valid':![],'message':'Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed'};return{'valid':!![]};}
@@ -1 +1 @@
1
- const a50_0x3c4a91=a50_0x34cc;function a50_0x57ac(){const _0x284acf=['Key\x20not\x20found:\x20','object','42FVhgqC','38776tNaZeM','36UZtBrC','239686fGvpCC','key','Get\x20a\x20config\x20value\x20by\x20key','get','Missing\x20key.','config','143590LRtpuH','Usage:\x20','21LqPBtW','validation','5292pGxFYH','78640JGpdnD','read','594Sdqhzd','appcode','string','207kihmoz','445888watOIN','64608hSTMwN'];a50_0x57ac=function(){return _0x284acf;};return a50_0x57ac();}function a50_0x34cc(_0x380004,_0x2ac89e){_0x380004=_0x380004-0x1f3;const _0x57ac52=a50_0x57ac();let _0x34cc0c=_0x57ac52[_0x380004];return _0x34cc0c;}(function(_0x161092,_0x53218f){const _0x35c8d1=a50_0x34cc,_0x4e629a=_0x161092();while(!![]){try{const _0x245d30=parseInt(_0x35c8d1(0x205))/0x1+parseInt(_0x35c8d1(0x203))/0x2*(parseInt(_0x35c8d1(0x204))/0x3)+parseInt(_0x35c8d1(0x1f7))/0x4+parseInt(_0x35c8d1(0x1f3))/0x5*(-parseInt(_0x35c8d1(0x202))/0x6)+parseInt(_0x35c8d1(0x1f5))/0x7*(-parseInt(_0x35c8d1(0x1fe))/0x8)+-parseInt(_0x35c8d1(0x1fd))/0x9*(parseInt(_0x35c8d1(0x1f8))/0xa)+parseInt(_0x35c8d1(0x1fa))/0xb*(parseInt(_0x35c8d1(0x1ff))/0xc);if(_0x245d30===_0x53218f)break;else _0x4e629a['push'](_0x4e629a['shift']());}catch(_0x37a536){_0x4e629a['push'](_0x4e629a['shift']());}}}(a50_0x57ac,0x348ff));import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0x4af512){const _0x189292=a50_0x34cc,_0x20616b=_0x4af512['str'](_0x189292(0x206));if(!_0x20616b)throw CliErrors[_0x189292(0x1f6)](_0x189292(0x209),_0x189292(0x1f4)+CLI_BIN_NAME+'\x20config\x20get\x20--key\x20<key>');const _0x37e694=readConfig(),_0x49f8d0=_0x20616b==='app'?_0x189292(0x1fb):_0x20616b,_0x295682=_0x37e694[_0x49f8d0];if(_0x295682===undefined)throw CliErrors[_0x189292(0x1f6)](_0x189292(0x200)+_0x20616b);return{'ok':!![],'data':typeof _0x295682===_0x189292(0x201)?_0x295682:{[_0x49f8d0]:_0x295682},'message':typeof _0x295682===_0x189292(0x201)?undefined:String(_0x295682)};}export const configGetDefinition={'service':a50_0x3c4a91(0x20a),'command':a50_0x3c4a91(0x208),'description':a50_0x3c4a91(0x207),'risk':a50_0x3c4a91(0x1f9),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a50_0x3c4a91(0x206),'type':a50_0x3c4a91(0x1fc),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
1
+ const a50_0x4dcb96=a50_0x4ac0;(function(_0x1af5c9,_0x12d33f){const _0x46e5f7=a50_0x4ac0,_0x1ce1ce=_0x1af5c9();while(!![]){try{const _0x375f22=parseInt(_0x46e5f7(0x9c))/0x1+-parseInt(_0x46e5f7(0xa8))/0x2*(parseInt(_0x46e5f7(0xaa))/0x3)+-parseInt(_0x46e5f7(0x9f))/0x4*(parseInt(_0x46e5f7(0xa1))/0x5)+-parseInt(_0x46e5f7(0xa6))/0x6*(parseInt(_0x46e5f7(0xa7))/0x7)+parseInt(_0x46e5f7(0xa5))/0x8+-parseInt(_0x46e5f7(0x9b))/0x9*(-parseInt(_0x46e5f7(0x9e))/0xa)+parseInt(_0x46e5f7(0xa4))/0xb*(parseInt(_0x46e5f7(0xa3))/0xc);if(_0x375f22===_0x12d33f)break;else _0x1ce1ce['push'](_0x1ce1ce['shift']());}catch(_0x1908ab){_0x1ce1ce['push'](_0x1ce1ce['shift']());}}}(a50_0x26ff,0x65b8e));import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0x29edf4){const _0x2fde06=a50_0x4ac0,_0x9acfb=_0x29edf4[_0x2fde06(0xa9)]('key');if(!_0x9acfb)throw CliErrors[_0x2fde06(0x9a)]('Missing\x20key.',_0x2fde06(0xa2)+CLI_BIN_NAME+'\x20config\x20get\x20--key\x20<key>');const _0x8cd665=readConfig(),_0x593156=_0x9acfb==='app'?'appcode':_0x9acfb,_0x13e95d=_0x8cd665[_0x593156];if(_0x13e95d===undefined)throw CliErrors[_0x2fde06(0x9a)]('Key\x20not\x20found:\x20'+_0x9acfb);return{'ok':!![],'data':typeof _0x13e95d===_0x2fde06(0xa0)?_0x13e95d:{[_0x593156]:_0x13e95d},'message':typeof _0x13e95d===_0x2fde06(0xa0)?undefined:String(_0x13e95d)};}export const configGetDefinition={'service':a50_0x4dcb96(0xab),'command':'get','description':a50_0x4dcb96(0x9d),'risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'key','type':'string','description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};function a50_0x4ac0(_0x39a268,_0x15db56){_0x39a268=_0x39a268-0x9a;const _0x26ffef=a50_0x26ff();let _0x4ac0ac=_0x26ffef[_0x39a268];return _0x4ac0ac;}function a50_0x26ff(){const _0x64d2fa=['1159930NlgoTm','1436lyMUSc','object','195DSdVST','Usage:\x20','1092OsMUnz','86856pXNoWf','6397904zbEJdb','2852958BSQCIl','7Ziecvd','10XrbWfv','str','471045piwZgC','config','validation','9lMEeXB','56956dTJFcO','Get\x20a\x20config\x20value\x20by\x20key'];a50_0x26ff=function(){return _0x64d2fa;};return a50_0x26ff();}
@@ -1 +1 @@
1
- (function(_0x25764e,_0x31a724){const _0x26aaf7=a51_0x5a94,_0x1561ce=_0x25764e();while(!![]){try{const _0x149493=-parseInt(_0x26aaf7(0x1a3))/0x1+-parseInt(_0x26aaf7(0x1a2))/0x2+parseInt(_0x26aaf7(0x19f))/0x3*(-parseInt(_0x26aaf7(0x19c))/0x4)+-parseInt(_0x26aaf7(0x1a0))/0x5+parseInt(_0x26aaf7(0x19d))/0x6+-parseInt(_0x26aaf7(0x1a1))/0x7+parseInt(_0x26aaf7(0x19e))/0x8;if(_0x149493===_0x31a724)break;else _0x1561ce['push'](_0x1561ce['shift']());}catch(_0xeb244){_0x1561ce['push'](_0x1561ce['shift']());}}}(a51_0x414d,0x8184f));function a51_0x5a94(_0x4d2524,_0x476bea){_0x4d2524=_0x4d2524-0x19c;const _0x414d1c=a51_0x414d();let _0x5a9454=_0x414d1c[_0x4d2524];return _0x5a9454;}import{configListDefinition}from'../../commands/config/list.js';function a51_0x414d(){const _0x3cb30e=['4247940ZsjqtA','6180860pGFFWL','1214658evdeSY','945394JpVPni','19132jfJGBm','5993022DzLkCV','29691088FlgKDL','561LixqwH'];a51_0x414d=function(){return _0x3cb30e;};return a51_0x414d();}import{configGetDefinition}from'../../commands/config/get.js';import{configSetDefinition}from'../../commands/config/set.js';export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
1
+ (function(_0x3813e1,_0x3e0bfd){const _0x8b9d1c=a51_0x11c4,_0x53d4e4=_0x3813e1();while(!![]){try{const _0x36c413=parseInt(_0x8b9d1c(0x136))/0x1+-parseInt(_0x8b9d1c(0x13a))/0x2*(parseInt(_0x8b9d1c(0x138))/0x3)+-parseInt(_0x8b9d1c(0x13c))/0x4+parseInt(_0x8b9d1c(0x137))/0x5+parseInt(_0x8b9d1c(0x13b))/0x6*(parseInt(_0x8b9d1c(0x139))/0x7)+parseInt(_0x8b9d1c(0x13f))/0x8+parseInt(_0x8b9d1c(0x13e))/0x9*(-parseInt(_0x8b9d1c(0x13d))/0xa);if(_0x36c413===_0x3e0bfd)break;else _0x53d4e4['push'](_0x53d4e4['shift']());}catch(_0x284075){_0x53d4e4['push'](_0x53d4e4['shift']());}}}(a51_0x4a8c,0x232c4));import{configListDefinition}from'../../commands/config/list.js';function a51_0x4a8c(){const _0x2bd200=['567cKSxHt','3794nsJHHU','1962aqeSqO','318VMVWxq','371820Ysbcki','370abaOcN','14337LlKChI','155920jnXNce','274254UgjTwF','794515XQmYRN'];a51_0x4a8c=function(){return _0x2bd200;};return a51_0x4a8c();}function a51_0x11c4(_0x426691,_0x22c70c){_0x426691=_0x426691-0x136;const _0x4a8c48=a51_0x4a8c();let _0x11c480=_0x4a8c48[_0x426691];return _0x11c480;}import{configGetDefinition}from'../../commands/config/get.js';import{configSetDefinition}from'../../commands/config/set.js';export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
@@ -1 +1 @@
1
- function a52_0x2c99(){const _0x6dfe9d=['2oLLHws','6xfmECC','1270643eiPXUn','global','601750UyvrQO','1814890bXrzRJ','36XDfDuj','278848nVLQsE','list','5Vklrzc','48252FeKodg','read','331074GTlLIn','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','115702qafbiB'];a52_0x2c99=function(){return _0x6dfe9d;};return a52_0x2c99();}const a52_0x4027d2=a52_0x433b;(function(_0x102c49,_0x48a006){const _0x1f0c85=a52_0x433b,_0x5a9648=_0x102c49();while(!![]){try{const _0x3ec0b1=parseInt(_0x1f0c85(0x18c))/0x1*(parseInt(_0x1f0c85(0x18b))/0x2)+parseInt(_0x1f0c85(0x18d))/0x3*(parseInt(_0x1f0c85(0x187))/0x4)+parseInt(_0x1f0c85(0x186))/0x5*(parseInt(_0x1f0c85(0x189))/0x6)+parseInt(_0x1f0c85(0x191))/0x7+parseInt(_0x1f0c85(0x184))/0x8+parseInt(_0x1f0c85(0x183))/0x9*(-parseInt(_0x1f0c85(0x190))/0xa)+-parseInt(_0x1f0c85(0x18e))/0xb;if(_0x3ec0b1===_0x48a006)break;else _0x5a9648['push'](_0x5a9648['shift']());}catch(_0xbc26dd){_0x5a9648['push'](_0x5a9648['shift']());}}}(a52_0x2c99,0x20738));import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';function a52_0x433b(_0x16a2a2,_0x1cb979){_0x16a2a2=_0x16a2a2-0x183;const _0x2c9940=a52_0x2c99();let _0x433b39=_0x2c9940[_0x16a2a2];return _0x433b39;}async function execute(_0x45543b){const _0x1954d3=a52_0x433b,_0x2408da=_0x45543b['bool']('global')?readScopedConfig(_0x1954d3(0x18f)):readConfig();return{'ok':!![],'data':_0x2408da};}export const configListDefinition={'service':'config','command':a52_0x4027d2(0x185),'description':'List\x20all\x20config\x20values','risk':a52_0x4027d2(0x188),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'global','type':'boolean','description':a52_0x4027d2(0x18a),'default':![]}],'execute':execute};
1
+ const a52_0x4bf38f=a52_0x2365;(function(_0x1b1006,_0x3efb40){const _0x5d502f=a52_0x2365,_0x20862c=_0x1b1006();while(!![]){try{const _0x5ebf71=parseInt(_0x5d502f(0x111))/0x1*(-parseInt(_0x5d502f(0x108))/0x2)+-parseInt(_0x5d502f(0x105))/0x3*(parseInt(_0x5d502f(0x112))/0x4)+-parseInt(_0x5d502f(0x10e))/0x5*(parseInt(_0x5d502f(0x110))/0x6)+parseInt(_0x5d502f(0x104))/0x7+parseInt(_0x5d502f(0x10f))/0x8*(parseInt(_0x5d502f(0x10b))/0x9)+parseInt(_0x5d502f(0x10a))/0xa*(parseInt(_0x5d502f(0x10c))/0xb)+-parseInt(_0x5d502f(0x107))/0xc;if(_0x5ebf71===_0x3efb40)break;else _0x20862c['push'](_0x20862c['shift']());}catch(_0x54fa48){_0x20862c['push'](_0x20862c['shift']());}}}(a52_0x153b,0xe7cee));import{readScopedConfig}from'../../commands/config/shared.js';function a52_0x2365(_0x119b12,_0x2cad23){_0x119b12=_0x119b12-0x101;const _0x153bd9=a52_0x153b();let _0x2365b9=_0x153bd9[_0x119b12];return _0x2365b9;}import{readConfig}from'../../utils/config.js';function a52_0x153b(){const _0x537e3b=['List\x20all\x20config\x20values','25FGIplx','17648XJklSN','1014396fxOTvA','36003ZfgaWk','2832UCmxgm','config','list','read','boolean','11807943uCLJQY','3543QbxvEv','bool','3657324kcfRjs','14jNioos','global','30EBPMHc','684fDnbqg','4888609GbNiqT'];a52_0x153b=function(){return _0x537e3b;};return a52_0x153b();}async function execute(_0x583635){const _0x5b013e=a52_0x2365,_0x3c9272=_0x583635[_0x5b013e(0x106)]('global')?readScopedConfig(_0x5b013e(0x109)):readConfig();return{'ok':!![],'data':_0x3c9272};}export const configListDefinition={'service':a52_0x4bf38f(0x113),'command':a52_0x4bf38f(0x101),'description':a52_0x4bf38f(0x10d),'risk':a52_0x4bf38f(0x102),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a52_0x4bf38f(0x109),'type':a52_0x4bf38f(0x103),'description':'Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','default':![]}],'execute':execute};
@@ -1 +1 @@
1
- const a53_0xdcfbfe=a53_0x2918;(function(_0x4807eb,_0x5ca0f3){const _0x55b245=a53_0x2918,_0x3a8de8=_0x4807eb();while(!![]){try{const _0x5ce27b=parseInt(_0x55b245(0x1e8))/0x1+-parseInt(_0x55b245(0x1d3))/0x2+-parseInt(_0x55b245(0x1f6))/0x3*(parseInt(_0x55b245(0x1d2))/0x4)+parseInt(_0x55b245(0x1d6))/0x5+-parseInt(_0x55b245(0x1ce))/0x6*(parseInt(_0x55b245(0x1d9))/0x7)+parseInt(_0x55b245(0x1dd))/0x8*(parseInt(_0x55b245(0x1df))/0x9)+parseInt(_0x55b245(0x1ec))/0xa*(parseInt(_0x55b245(0x1de))/0xb);if(_0x5ce27b===_0x5ca0f3)break;else _0x3a8de8['push'](_0x3a8de8['shift']());}catch(_0x3785f1){_0x3a8de8['push'](_0x3a8de8['shift']());}}}(a53_0x2126,0x59466));import{CliErrors}from'../../errors.js';function a53_0x2126(){const _0x365115=['locale','Config\x20value','apps','444095IxMqRC','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','\x20workspace\x20add\x20<name>\x20--appcode\x20','\x20(stored\x20as\x20apps\x20+\x20defaultApp)','10pkVFln','bool','write','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','Global','length','Missing\x20value.','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','Usage:\x20','app','6LXQKLC','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','Invalid\x20value\x20for\x20\x22','Project','string','boolean','keys','object','2972190kuolRl','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','str','join','355276QZzOYi','584328KjBpgU','global','\x20appcode\x20set\x20to:\x20','21105acyyKC','Missing\x20key.','env','7vPsqoR','riskLevel','Set\x20a\x20config\x20value','value','9576VUSrAX','9655063MBYJDv','36ajNKtA','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','Top-level\x20key\x20\x22','Use\x20`','key','validation'];a53_0x2126=function(){return _0x365115;};return a53_0x2126();}import{buildCanonicalProjectConfig}from'../../config/schema.js';function a53_0x2918(_0x3b957e,_0x51d24a){_0x3b957e=_0x3b957e-0x1c7;const _0x212678=a53_0x2126();let _0x2918dd=_0x212678[_0x3b957e];return _0x2918dd;}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(_0x430f13){const _0x4036fb=a53_0x2918,_0x6d73=_0x430f13[_0x4036fb(0x1d0)](_0x4036fb(0x1e3)),_0x239a86=_0x430f13[_0x4036fb(0x1d0)](_0x4036fb(0x1dc));if(!_0x6d73)throw CliErrors['validation'](_0x4036fb(0x1d7),_0x4036fb(0x1f4)+CLI_BIN_NAME+_0x4036fb(0x1e9));if(_0x239a86===undefined||_0x239a86==='')throw CliErrors[_0x4036fb(0x1e4)](_0x4036fb(0x1f2),_0x4036fb(0x1f4)+CLI_BIN_NAME+_0x4036fb(0x1e9));if(_0x239a86['length']>0x1f4)throw CliErrors['validation'](_0x4036fb(0x1cf));if(!isTopLevelConfigKey(_0x6d73))throw CliErrors['validation'](_0x4036fb(0x1e1)+_0x6d73+'\x22\x20is\x20not\x20settable.','Settable\x20top-level\x20keys:\x20'+getTopLevelConfigKeySummary());if(_0x6d73===_0x4036fb(0x1da))throw CliErrors[_0x4036fb(0x1e4)]('\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.');if(CONFIG_ENUM_VALUES[_0x6d73]&&!CONFIG_ENUM_VALUES[_0x6d73]['includes'](_0x239a86))throw CliErrors[_0x4036fb(0x1e4)](_0x4036fb(0x1c8)+_0x6d73+'\x22.\x20Allowed:\x20'+CONFIG_ENUM_VALUES[_0x6d73][_0x4036fb(0x1d1)](',\x20'));if(_0x6d73==='locale'&&!normalizeLocale(_0x239a86))throw CliErrors[_0x4036fb(0x1e4)]('Invalid\x20locale\x20value.',_0x4036fb(0x1f3));const _0x38947e={'global':_0x430f13[_0x4036fb(0x1ed)](_0x4036fb(0x1d4))},_0x269e4a=resolveWriteScope(_0x38947e),_0x4731d3=readScopedConfig(_0x269e4a);let _0x25a16a=_0x6d73,_0x1e072c=_0x239a86;_0x6d73===_0x4036fb(0x1f5)&&(_0x25a16a='appcode',delete _0x4731d3['app']);_0x6d73===_0x4036fb(0x1e5)&&(_0x1e072c=normalizeLocale(_0x239a86));if(_0x6d73===_0x4036fb(0x1d8)){_0x1e072c=normalizeEnv(_0x239a86);if(!isProduction(_0x1e072c)&&!isDaily(_0x1e072c))throw CliErrors[_0x4036fb(0x1e4)](_0x4036fb(0x1c7),_0x4036fb(0x1e0));}if(_0x6d73==='appcode'){const _0x52a692=_0x4731d3['apps']&&typeof _0x4731d3[_0x4036fb(0x1e7)]===_0x4036fb(0x1cd)?Object[_0x4036fb(0x1cc)](_0x4731d3['apps']):[];if(_0x52a692[_0x4036fb(0x1f1)]>0x0)throw CliErrors[_0x4036fb(0x1e4)](_0x4036fb(0x1ef),_0x4036fb(0x1e2)+CLI_BIN_NAME+_0x4036fb(0x1ea)+_0x1e072c+'`,\x20`'+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.');const _0x1ab915=buildCanonicalProjectConfig({..._0x4731d3},{'appCodes':[_0x1e072c],'env':typeof _0x4731d3[_0x4036fb(0x1d8)]===_0x4036fb(0x1ca)?_0x4731d3['env']:undefined});writeScopedConfig(_0x1ab915,_0x269e4a);const _0x58eb48=_0x269e4a==='global'?_0x4036fb(0x1f0):'Project';return{'ok':!![],'message':'✓\x20'+_0x58eb48+_0x4036fb(0x1d5)+_0x1e072c+_0x4036fb(0x1eb)};}_0x4731d3[_0x25a16a]=_0x1e072c,writeScopedConfig(_0x4731d3,_0x269e4a);const _0x452b1f=_0x269e4a===_0x4036fb(0x1d4)?_0x4036fb(0x1f0):_0x4036fb(0x1c9);return{'ok':!![],'message':'✓\x20'+_0x452b1f+'\x20'+_0x25a16a+'\x20set\x20to:\x20'+_0x1e072c};}export const configSetDefinition={'service':'config','command':'set','description':a53_0xdcfbfe(0x1db),'risk':a53_0xdcfbfe(0x1ee),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a53_0xdcfbfe(0x1e3),'type':'string','description':getConfigCommandKeyDescription(),'required':!![]},{'name':a53_0xdcfbfe(0x1dc),'type':a53_0xdcfbfe(0x1ca),'description':a53_0xdcfbfe(0x1e6),'required':!![]},{'name':a53_0xdcfbfe(0x1d4),'type':a53_0xdcfbfe(0x1cb),'description':'Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','default':![]}],'execute':execute};
1
+ const a53_0x16992f=a53_0x2527;(function(_0x3c984e,_0xe3afdb){const _0x56e287=a53_0x2527,_0x44f3d8=_0x3c984e();while(!![]){try{const _0x1d6e3e=parseInt(_0x56e287(0xfd))/0x1+-parseInt(_0x56e287(0xea))/0x2*(-parseInt(_0x56e287(0x105))/0x3)+parseInt(_0x56e287(0xdd))/0x4+parseInt(_0x56e287(0x109))/0x5*(-parseInt(_0x56e287(0x10d))/0x6)+-parseInt(_0x56e287(0x102))/0x7*(-parseInt(_0x56e287(0xf7))/0x8)+parseInt(_0x56e287(0xfb))/0x9+-parseInt(_0x56e287(0xde))/0xa;if(_0x1d6e3e===_0xe3afdb)break;else _0x44f3d8['push'](_0x44f3d8['shift']());}catch(_0x56669e){_0x44f3d8['push'](_0x44f3d8['shift']());}}}(a53_0x3cdf,0x8aecf));import{CliErrors}from'../../errors.js';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';function a53_0x3cdf(){const _0x311c23=['\x20appcode\x20set\x20to:\x20','184IYyTtj','Use\x20`','Invalid\x20value\x20for\x20\x22','Project','988803HtSVcT','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','1063016YPUKDF','appcode','Set\x20a\x20config\x20value','write','Global','13762eErhFQ','\x20set\x20to:\x20','includes','334431MFgWrC','Invalid\x20locale\x20value.','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','\x20workspace\x20use\x20--app\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','48310Vqrpoa','str','apps','global','570wHGboH','key','3551176iZlOje','16222590bWoMqa','Usage:\x20','value','\x20workspace\x20add\x20<name>\x20--appcode\x20','validation','keys','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','env','join','\x22\x20is\x20not\x20settable.','config','`,\x20`','18quSOtv','\x20(stored\x20as\x20apps\x20+\x20defaultApp)','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','set','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','riskLevel','length','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','string','boolean','app','object'];a53_0x3cdf=function(){return _0x311c23;};return a53_0x3cdf();}import{normalizeEnv,isProduction,isDaily}from'../../constant/env.js';function a53_0x2527(_0x57d435,_0x3fd302){_0x57d435=_0x57d435-0xdc;const _0x3cdf2b=a53_0x3cdf();let _0x252725=_0x3cdf2b[_0x57d435];return _0x252725;}async function execute(_0x6d7de1){const _0x2077d5=a53_0x2527,_0x26dc60=_0x6d7de1[_0x2077d5(0x10a)](_0x2077d5(0xdc)),_0x474440=_0x6d7de1[_0x2077d5(0x10a)](_0x2077d5(0xe0));if(!_0x26dc60)throw CliErrors[_0x2077d5(0xe2)]('Missing\x20key.',_0x2077d5(0xdf)+CLI_BIN_NAME+_0x2077d5(0xec));if(_0x474440===undefined||_0x474440==='')throw CliErrors[_0x2077d5(0xe2)]('Missing\x20value.',_0x2077d5(0xdf)+CLI_BIN_NAME+'\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>');if(_0x474440[_0x2077d5(0xf0)]>0x1f4)throw CliErrors[_0x2077d5(0xe2)](_0x2077d5(0xf1));if(!isTopLevelConfigKey(_0x26dc60))throw CliErrors[_0x2077d5(0xe2)]('Top-level\x20key\x20\x22'+_0x26dc60+_0x2077d5(0xe7),'Settable\x20top-level\x20keys:\x20'+getTopLevelConfigKeySummary());if(_0x26dc60===_0x2077d5(0xef))throw CliErrors[_0x2077d5(0xe2)](_0x2077d5(0x107));if(CONFIG_ENUM_VALUES[_0x26dc60]&&!CONFIG_ENUM_VALUES[_0x26dc60][_0x2077d5(0x104)](_0x474440))throw CliErrors[_0x2077d5(0xe2)](_0x2077d5(0xf9)+_0x26dc60+'\x22.\x20Allowed:\x20'+CONFIG_ENUM_VALUES[_0x26dc60][_0x2077d5(0xe6)](',\x20'));if(_0x26dc60==='locale'&&!normalizeLocale(_0x474440))throw CliErrors[_0x2077d5(0xe2)](_0x2077d5(0x106),_0x2077d5(0xe4));const _0x5ecbfc={'global':_0x6d7de1['bool'](_0x2077d5(0x10c))},_0x59371a=resolveWriteScope(_0x5ecbfc),_0x5da5c9=readScopedConfig(_0x59371a);let _0x153725=_0x26dc60,_0x1d913b=_0x474440;_0x26dc60===_0x2077d5(0xf4)&&(_0x153725='appcode',delete _0x5da5c9['app']);_0x26dc60==='locale'&&(_0x1d913b=normalizeLocale(_0x474440));if(_0x26dc60==='env'){_0x1d913b=normalizeEnv(_0x474440);if(!isProduction(_0x1d913b)&&!isDaily(_0x1d913b))throw CliErrors[_0x2077d5(0xe2)](_0x2077d5(0xee),'Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.');}if(_0x26dc60===_0x2077d5(0xfe)){const _0x5e2fee=_0x5da5c9['apps']&&typeof _0x5da5c9[_0x2077d5(0x10b)]===_0x2077d5(0xf5)?Object[_0x2077d5(0xe3)](_0x5da5c9[_0x2077d5(0x10b)]):[];if(_0x5e2fee[_0x2077d5(0xf0)]>0x0)throw CliErrors[_0x2077d5(0xe2)]('Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.',_0x2077d5(0xf8)+CLI_BIN_NAME+_0x2077d5(0xe1)+_0x1d913b+_0x2077d5(0xe9)+CLI_BIN_NAME+_0x2077d5(0x108));const _0x147e5d=buildCanonicalProjectConfig({..._0x5da5c9},{'appCodes':[_0x1d913b],'env':typeof _0x5da5c9['env']==='string'?_0x5da5c9[_0x2077d5(0xe5)]:undefined});writeScopedConfig(_0x147e5d,_0x59371a);const _0x4e9f8c=_0x59371a===_0x2077d5(0x10c)?_0x2077d5(0x101):'Project';return{'ok':!![],'message':'✓\x20'+_0x4e9f8c+_0x2077d5(0xf6)+_0x1d913b+_0x2077d5(0xeb)};}_0x5da5c9[_0x153725]=_0x1d913b,writeScopedConfig(_0x5da5c9,_0x59371a);const _0x2512b4=_0x59371a===_0x2077d5(0x10c)?_0x2077d5(0x101):_0x2077d5(0xfa);return{'ok':!![],'message':'✓\x20'+_0x2512b4+'\x20'+_0x153725+_0x2077d5(0x103)+_0x1d913b};}export const configSetDefinition={'service':a53_0x16992f(0xe8),'command':a53_0x16992f(0xed),'description':a53_0x16992f(0xff),'risk':a53_0x16992f(0x100),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a53_0x16992f(0xdc),'type':a53_0x16992f(0xf2),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':'value','type':'string','description':'Config\x20value','required':!![]},{'name':a53_0x16992f(0x10c),'type':a53_0x16992f(0xf3),'description':a53_0x16992f(0xfc),'default':![]}],'execute':execute};
@@ -1 +1 @@
1
- (function(_0x3d9fdf,_0x36b584){var _0x129c56=a54_0x2acb,_0x46593b=_0x3d9fdf();while(!![]){try{var _0x2c2514=-parseInt(_0x129c56(0xce))/0x1*(-parseInt(_0x129c56(0xd2))/0x2)+-parseInt(_0x129c56(0xca))/0x3*(-parseInt(_0x129c56(0xd4))/0x4)+parseInt(_0x129c56(0xc9))/0x5*(parseInt(_0x129c56(0xd7))/0x6)+-parseInt(_0x129c56(0xd5))/0x7+parseInt(_0x129c56(0xc8))/0x8*(parseInt(_0x129c56(0xcd))/0x9)+parseInt(_0x129c56(0xcb))/0xa*(parseInt(_0x129c56(0xc7))/0xb)+-parseInt(_0x129c56(0xd1))/0xc*(parseInt(_0x129c56(0xd0))/0xd);if(_0x2c2514===_0x36b584)break;else _0x46593b['push'](_0x46593b['shift']());}catch(_0x4a8ac2){_0x46593b['push'](_0x46593b['shift']());}}}(a54_0x8ecf,0x6797b));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';export{CLI_BIN_NAME};export{normalizeLocale};export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0x3ce11e){var _0x4237d2=a54_0x2acb;if(_0x3ce11e[_0x4237d2(0xcc)])return _0x4237d2(0xcc);if(!isInProject())throw CliErrors['validation'](_0x4237d2(0xcf),'Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`'+CLI_BIN_NAME+_0x4237d2(0xd6));return _0x4237d2(0xd3);}export function readScopedConfig(_0x2d59b3){return readConfigFile(resolveWriteConfigPath(_0x2d59b3));}export function writeScopedConfig(_0x355d30,_0x13b1f3){writeConfigFile(resolveWriteConfigPath(_0x13b1f3),_0x355d30);}function a54_0x2acb(_0x5afb60,_0x237286){_0x5afb60=_0x5afb60-0xc7;var _0x8ecf2=a54_0x8ecf();var _0x2acbac=_0x8ecf2[_0x5afb60];return _0x2acbac;}function a54_0x8ecf(){var _0xe88283=['Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','13sGTaWB','23635596kWocDa','1688YicnWv','project','56ezVvyd','5503491SwSCTQ','\x20init`\x20first.','982572cfdQbQ','823152wvvrjA','10632dlRDcV','25QAReXM','134466ALetSQ','100WpHsZc','global','1107rpBkfw','974LInkyF'];a54_0x8ecf=function(){return _0xe88283;};return a54_0x8ecf();}
1
+ (function(_0x34483a,_0x27fc68){var _0x383117=a54_0xec14,_0xc751ab=_0x34483a();while(!![]){try{var _0x5d2d09=parseInt(_0x383117(0x139))/0x1*(parseInt(_0x383117(0x13c))/0x2)+parseInt(_0x383117(0x13e))/0x3*(-parseInt(_0x383117(0x141))/0x4)+-parseInt(_0x383117(0x13f))/0x5+parseInt(_0x383117(0x137))/0x6+parseInt(_0x383117(0x13d))/0x7+parseInt(_0x383117(0x136))/0x8+-parseInt(_0x383117(0x142))/0x9;if(_0x5d2d09===_0x27fc68)break;else _0xc751ab['push'](_0xc751ab['shift']());}catch(_0x12bda0){_0xc751ab['push'](_0xc751ab['shift']());}}}(a54_0x47cb,0xdb428));function a54_0x47cb(){var _0x210bfe=['1691672ZxqyRL','5934900iOTxPO','global','5hCoSWT','project','validation','650638ZLGHOe','8008014XwtFZv','2363781OPNrIn','299430GaBnIp','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','4PjrlXv','20027745AwBTJN'];a54_0x47cb=function(){return _0x210bfe;};return a54_0x47cb();}import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';import{CliErrors}from'../../errors.js';function a54_0xec14(_0x4dc5db,_0x1de734){_0x4dc5db=_0x4dc5db-0x136;var _0x47cbae=a54_0x47cb();var _0xec1439=_0x47cbae[_0x4dc5db];return _0xec1439;}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(_0x135dcb){var _0x38a20f=a54_0xec14;if(_0x135dcb[_0x38a20f(0x138)])return _0x38a20f(0x138);if(!isInProject())throw CliErrors[_0x38a20f(0x13b)](_0x38a20f(0x140),'Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`'+CLI_BIN_NAME+'\x20init`\x20first.');return _0x38a20f(0x13a);}export function readScopedConfig(_0x10f37d){return readConfigFile(resolveWriteConfigPath(_0x10f37d));}export function writeScopedConfig(_0x153a2b,_0x3f8770){writeConfigFile(resolveWriteConfigPath(_0x3f8770),_0x153a2b);}
@@ -1 +1 @@
1
- const a55_0x45f08b=a55_0x4af7;(function(_0x209c95,_0x360ed3){const _0x47a3ac=a55_0x4af7,_0x31c7ed=_0x209c95();while(!![]){try{const _0x2fc64c=-parseInt(_0x47a3ac(0xe8))/0x1+-parseInt(_0x47a3ac(0xea))/0x2+-parseInt(_0x47a3ac(0xf4))/0x3+-parseInt(_0x47a3ac(0xe9))/0x4+parseInt(_0x47a3ac(0xf0))/0x5*(-parseInt(_0x47a3ac(0xf2))/0x6)+parseInt(_0x47a3ac(0xeb))/0x7*(-parseInt(_0x47a3ac(0xf5))/0x8)+parseInt(_0x47a3ac(0xf1))/0x9;if(_0x2fc64c===_0x360ed3)break;else _0x31c7ed['push'](_0x31c7ed['shift']());}catch(_0x2aac20){_0x31c7ed['push'](_0x31c7ed['shift']());}}}(a55_0x47e4,0x959a7));import{buildDataCommand}from'../../commands/data/shared.js';function a55_0x4af7(_0x5696e1,_0x37b9f7){_0x5696e1=_0x5696e1-0xe8;const _0x47e4bd=a55_0x47e4();let _0x4af7d5=_0x47e4bd[_0x5696e1];return _0x4af7d5;}export const dataFilter=buildDataCommand({'command':a55_0x45f08b(0xf6),'operation':a55_0x45f08b(0xf6),'description':a55_0x45f08b(0xec),'paramsRequired':![],'paramsHint':a55_0x45f08b(0xf3),'helpExtra':['\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)',a55_0x45f08b(0xef),'\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]',a55_0x45f08b(0xee),a55_0x45f08b(0xed),'\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page'][a55_0x45f08b(0xf7)]('\x0a')});function a55_0x47e4(){const _0x2213ae=['filter','join','356383KZBvlv','3233960KosHWu','43690pcWShL','7BynWku','Filter\x20dataset\x20records\x20with\x20query\x20conditions','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','\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\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions','128450abDHOT','30428010BLFYYF','150ivECCr','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','833460TiMXHL','5290616MtxOAS'];a55_0x47e4=function(){return _0x2213ae;};return a55_0x47e4();}
1
+ const a55_0x29c7c2=a55_0x36fc;function a55_0x4f1d(){const _0x3d1228=['6808344KNTuxW','322010QVRcca','4iYkURP','filter','6648439vRgoiR','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','653754CdVqGL','2899972POageL','\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\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page','207CapUHV','923055ewZnXN','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions','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','Filter\x20dataset\x20records\x20with\x20query\x20conditions','5748920kRzITo','6fygTLq','join'];a55_0x4f1d=function(){return _0x3d1228;};return a55_0x4f1d();}(function(_0x2a081e,_0x68f36e){const _0x1ae357=a55_0x36fc,_0x58ff63=_0x2a081e();while(!![]){try{const _0x1a780f=parseInt(_0x1ae357(0x192))/0x1+-parseInt(_0x1ae357(0x189))/0x2*(parseInt(_0x1ae357(0x18d))/0x3)+parseInt(_0x1ae357(0x18e))/0x4+-parseInt(_0x1ae357(0x196))/0x5+parseInt(_0x1ae357(0x197))/0x6*(parseInt(_0x1ae357(0x18b))/0x7)+-parseInt(_0x1ae357(0x199))/0x8+parseInt(_0x1ae357(0x191))/0x9*(parseInt(_0x1ae357(0x19a))/0xa);if(_0x1a780f===_0x68f36e)break;else _0x58ff63['push'](_0x58ff63['shift']());}catch(_0x10a4df){_0x58ff63['push'](_0x58ff63['shift']());}}}(a55_0x4f1d,0xdc299));import{buildDataCommand}from'../../commands/data/shared.js';function a55_0x36fc(_0x5df450,_0x3108ab){_0x5df450=_0x5df450-0x189;const _0x4f1d16=a55_0x4f1d();let _0x36fced=_0x4f1d16[_0x5df450];return _0x36fced;}export const dataFilter=buildDataCommand({'command':a55_0x29c7c2(0x18a),'operation':'filter','description':a55_0x29c7c2(0x195),'paramsRequired':![],'paramsHint':a55_0x29c7c2(0x194),'helpExtra':['\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)',a55_0x29c7c2(0x193),a55_0x29c7c2(0x18f),'\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}]',a55_0x29c7c2(0x18c),a55_0x29c7c2(0x190)][a55_0x29c7c2(0x198)]('\x0a')});
@@ -1 +1 @@
1
- function a56_0x4ace(_0x459a90,_0x2b4870){_0x459a90=_0x459a90-0xec;const _0x504bec=a56_0x504b();let _0x4acebd=_0x504bec[_0x459a90];return _0x4acebd;}const a56_0x4fdefb=a56_0x4ace;function a56_0x504b(){const _0x480fcf=['497887JZGunr','282uniECo','90dtORTZ','128cXBZjv','1191252sXqXlJ','getOne','27503JmEaDQ','Get\x20a\x20single\x20record\x20by\x20ID','6163416CHQzgi','2097870XVNjHg','129905EzOLLz','90414RWCmRP'];a56_0x504b=function(){return _0x480fcf;};return a56_0x504b();}(function(_0x431619,_0x31f4f2){const _0xc42821=a56_0x4ace,_0x5ed523=_0x431619();while(!![]){try{const _0xef5222=parseInt(_0xc42821(0xf2))/0x1+parseInt(_0xc42821(0xf6))/0x2+parseInt(_0xc42821(0xf1))/0x3+parseInt(_0xc42821(0xf5))/0x4*(parseInt(_0xc42821(0xf0))/0x5)+parseInt(_0xc42821(0xf3))/0x6*(-parseInt(_0xc42821(0xec))/0x7)+parseInt(_0xc42821(0xee))/0x8+-parseInt(_0xc42821(0xf4))/0x9*(parseInt(_0xc42821(0xef))/0xa);if(_0xef5222===_0x31f4f2)break;else _0x5ed523['push'](_0x5ed523['shift']());}catch(_0x3152d0){_0x5ed523['push'](_0x5ed523['shift']());}}}(a56_0x504b,0x6c239));import{buildDataCommand}from'../../commands/data/shared.js';export const dataGetOne=buildDataCommand({'command':a56_0x4fdefb(0xf7),'operation':a56_0x4fdefb(0xf7),'description':a56_0x4fdefb(0xed),'paramsRequired':!![],'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'});
1
+ const a56_0x26780d=a56_0x2a7b;(function(_0x4cb480,_0x4acd22){const _0x49bcb8=a56_0x2a7b,_0x35ccc3=_0x4cb480();while(!![]){try{const _0x31120f=-parseInt(_0x49bcb8(0x183))/0x1*(parseInt(_0x49bcb8(0x180))/0x2)+parseInt(_0x49bcb8(0x189))/0x3*(parseInt(_0x49bcb8(0x184))/0x4)+parseInt(_0x49bcb8(0x17e))/0x5*(-parseInt(_0x49bcb8(0x185))/0x6)+parseInt(_0x49bcb8(0x182))/0x7*(parseInt(_0x49bcb8(0x17c))/0x8)+-parseInt(_0x49bcb8(0x17f))/0x9*(parseInt(_0x49bcb8(0x186))/0xa)+parseInt(_0x49bcb8(0x188))/0xb+-parseInt(_0x49bcb8(0x181))/0xc*(-parseInt(_0x49bcb8(0x187))/0xd);if(_0x31120f===_0x4acd22)break;else _0x35ccc3['push'](_0x35ccc3['shift']());}catch(_0x39db60){_0x35ccc3['push'](_0x35ccc3['shift']());}}}(a56_0x1f40,0xb25a8));function a56_0x1f40(){const _0x354ae0=['374452JBbGgO','17688lPManK','490LieIRk','2rrSyIY','247072wvHUbi','211974bdaGRt','1630490SrrNxR','1326tMJaWH','3076117xJluUb','3cBMoKd','119464IfubIp','getOne','15VdEGAm','18cuDrCw'];a56_0x1f40=function(){return _0x354ae0;};return a56_0x1f40();}function a56_0x2a7b(_0x3af613,_0x5233f6){_0x3af613=_0x3af613-0x17c;const _0x1f40f8=a56_0x1f40();let _0x2a7bb0=_0x1f40f8[_0x3af613];return _0x2a7bb0;}import{buildDataCommand}from'../../commands/data/shared.js';export const dataGetOne=buildDataCommand({'command':a56_0x26780d(0x17d),'operation':a56_0x26780d(0x17d),'description':'Get\x20a\x20single\x20record\x20by\x20ID','paramsRequired':!![],'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'});
@@ -1 +1 @@
1
- (function(_0x2d30d4,_0x1120b3){const _0x2c2f4c=a57_0x163a,_0xe570a6=_0x2d30d4();while(!![]){try{const _0x3bd3cf=parseInt(_0x2c2f4c(0xe8))/0x1+-parseInt(_0x2c2f4c(0xe5))/0x2+-parseInt(_0x2c2f4c(0xe4))/0x3*(parseInt(_0x2c2f4c(0xe1))/0x4)+-parseInt(_0x2c2f4c(0xe2))/0x5*(parseInt(_0x2c2f4c(0xe3))/0x6)+-parseInt(_0x2c2f4c(0xe9))/0x7*(parseInt(_0x2c2f4c(0xe0))/0x8)+-parseInt(_0x2c2f4c(0xdf))/0x9+-parseInt(_0x2c2f4c(0xe7))/0xa*(-parseInt(_0x2c2f4c(0xe6))/0xb);if(_0x3bd3cf===_0x1120b3)break;else _0xe570a6['push'](_0xe570a6['shift']());}catch(_0x251f8a){_0xe570a6['push'](_0xe570a6['shift']());}}}(a57_0x2e88,0xa1c62));function a57_0x163a(_0x15dd11,_0x153a7e){_0x15dd11=_0x15dd11-0xdf;const _0x2e88db=a57_0x2e88();let _0x163a45=_0x2e88db[_0x15dd11];return _0x163a45;}import{dataFilter}from'../../commands/data/filter.js';import{dataGetOne}from'../../commands/data/getOne.js';function a57_0x2e88(){const _0x3e306b=['624Mmljym','148959ldYLfv','578752JWHPlm','30180469vZaHCw','10jicXCa','1217207gzocVy','3178469tryDgw','4874211OPyxrV','8XsqyCJ','56wQvhmQ','63370PmrrEN'];a57_0x2e88=function(){return _0x3e306b;};return a57_0x2e88();}export const dataDefinitions=[dataFilter,dataGetOne];
1
+ (function(_0x351383,_0x35207b){const _0x4a4dff=a57_0x40f9,_0x1f51e0=_0x351383();while(!![]){try{const _0x8a40dd=-parseInt(_0x4a4dff(0x75))/0x1+parseInt(_0x4a4dff(0x6e))/0x2*(parseInt(_0x4a4dff(0x71))/0x3)+-parseInt(_0x4a4dff(0x70))/0x4*(-parseInt(_0x4a4dff(0x78))/0x5)+-parseInt(_0x4a4dff(0x74))/0x6*(-parseInt(_0x4a4dff(0x76))/0x7)+-parseInt(_0x4a4dff(0x6f))/0x8*(-parseInt(_0x4a4dff(0x79))/0x9)+parseInt(_0x4a4dff(0x72))/0xa*(parseInt(_0x4a4dff(0x77))/0xb)+-parseInt(_0x4a4dff(0x73))/0xc;if(_0x8a40dd===_0x35207b)break;else _0x1f51e0['push'](_0x1f51e0['shift']());}catch(_0x297b60){_0x1f51e0['push'](_0x1f51e0['shift']());}}}(a57_0x2b7a,0x747c1));import{dataFilter}from'../../commands/data/filter.js';function a57_0x40f9(_0x1860f3,_0x4a2b19){_0x1860f3=_0x1860f3-0x6e;const _0x2b7a2f=a57_0x2b7a();let _0x40f94b=_0x2b7a2f[_0x1860f3];return _0x40f94b;}function a57_0x2b7a(){const _0x18d67e=['18378NrwKyL','359193dSgpkl','1239SBkuim','759AoHriJ','20ICvRaN','567eLcoYG','280TfbbjV','71560LCwluA','231772JWRNsB','10731hSQjEA','48050xOFZxT','16001628RBLMwq'];a57_0x2b7a=function(){return _0x18d67e;};return a57_0x2b7a();}import{dataGetOne}from'../../commands/data/getOne.js';export const dataDefinitions=[dataFilter,dataGetOne];
@@ -1 +1 @@
1
- function a58_0x26a0(){const _0x57d421=['validation','Provide\x20--params\x20\x27{\x22id\x22:123}\x27\x20for\x20data\x20getOne.','params','helpExtra','2133YkgMJc','137508zedNKQ','data\x20','58290SxtTFr','string','17iSIigT','str','code','command','data\x20getOne\x20requires\x20\x22id\x22\x20in\x20--params','\x20completed\x20in\x20','2525736DGDmqG','alias','paramsHint','778239DMNgPU','64138UwbDdD','flagMissing','2514384MTdHsO','30TdSOZs','appCode','compress','operation','80418vFzbcz','description','Example:\x20--params\x20\x27{\x22id\x22:123}\x27'];a58_0x26a0=function(){return _0x57d421;};return a58_0x26a0();}(function(_0x3457de,_0x4ecb3b){const _0x59824b=a58_0x2f95,_0x18c117=_0x3457de();while(!![]){try{const _0x532a8c=-parseInt(_0x59824b(0x14e))/0x1*(-parseInt(_0x59824b(0x158))/0x2)+-parseInt(_0x59824b(0x15f))/0x3+parseInt(_0x59824b(0x15a))/0x4+-parseInt(_0x59824b(0x15b))/0x5*(-parseInt(_0x59824b(0x167))/0x6)+parseInt(_0x59824b(0x157))/0x7+parseInt(_0x59824b(0x154))/0x8+-parseInt(_0x59824b(0x166))/0x9*(parseInt(_0x59824b(0x169))/0xa);if(_0x532a8c===_0x4ecb3b)break;else _0x18c117['push'](_0x18c117['shift']());}catch(_0x320326){_0x18c117['push'](_0x18c117['shift']());}}}(a58_0x26a0,0x508a4));import{executeDatasetDataOperation}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';function a58_0x2f95(_0x8d538c,_0x3ea705){_0x8d538c=_0x8d538c-0x14d;const _0x26a016=a58_0x26a0();let _0x2f9525=_0x26a016[_0x8d538c];return _0x2f9525;}import{parseJsonParams}from'../../utils/params.js';function assertGetOneId(_0x4a859e){const _0x14a1e9=a58_0x2f95;if(!_0x4a859e)throw CliErrors[_0x14a1e9(0x159)](_0x14a1e9(0x164),_0x14a1e9(0x163));const _0x264c7a=_0x4a859e['id'];if(_0x264c7a===undefined||_0x264c7a===null||_0x264c7a==='')throw CliErrors[_0x14a1e9(0x162)](_0x14a1e9(0x152),_0x14a1e9(0x161));}function parseCommandParams(_0x3385bb){return parseJsonParams(_0x3385bb)??{};}export function buildDataCommand(_0x2c1d84){const _0x48b5d1=a58_0x2f95,_0x54af94='Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically';return{'service':'data','command':_0x2c1d84[_0x48b5d1(0x151)],'description':_0x2c1d84[_0x48b5d1(0x160)],'risk':'read','defaultOutputFormat':_0x48b5d1(0x15d),'helpExtra':_0x2c1d84[_0x48b5d1(0x165)],'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':_0x48b5d1(0x155),'type':_0x48b5d1(0x14d),'description':_0x54af94},{'name':_0x48b5d1(0x164),'type':_0x48b5d1(0x14d),'description':_0x2c1d84['paramsHint']}],async 'validate'(_0x3adcc7){const _0x387e3d=_0x48b5d1,_0xeda003=_0x3adcc7[_0x387e3d(0x14f)](_0x387e3d(0x164));if(_0x2c1d84['paramsRequired']&&!_0xeda003)throw CliErrors[_0x387e3d(0x159)]('params',_0x2c1d84[_0x387e3d(0x156)]);const _0x156850=parseJsonParams(_0xeda003);_0x2c1d84['operation']==='getOne'&&assertGetOneId(_0x156850);},async 'execute'(_0x33197d){const _0x2dd27d=_0x48b5d1,_0x1d9ef6=parseCommandParams(_0x33197d[_0x2dd27d(0x14f)](_0x2dd27d(0x164))),_0x1b3d55=Date['now'](),_0x3931fc=await executeDatasetDataOperation(_0x33197d[_0x2dd27d(0x15c)],_0x33197d[_0x2dd27d(0x14f)](_0x2dd27d(0x150)),_0x2c1d84[_0x2dd27d(0x15e)],_0x1d9ef6),_0x5cc568=Date['now']()-_0x1b3d55;return{'ok':!![],'data':{'result':_0x3931fc,'elapsed':_0x5cc568},'message':_0x2dd27d(0x168)+_0x2c1d84[_0x2dd27d(0x151)]+_0x2dd27d(0x153)+_0x5cc568+'ms'};}};}
1
+ (function(_0x233387,_0x44a424){const _0x58e85e=a58_0x2530,_0x1ba994=_0x233387();while(!![]){try{const _0x45266c=parseInt(_0x58e85e(0x1d3))/0x1*(-parseInt(_0x58e85e(0x1dc))/0x2)+parseInt(_0x58e85e(0x1da))/0x3+parseInt(_0x58e85e(0x1cf))/0x4*(parseInt(_0x58e85e(0x1e3))/0x5)+parseInt(_0x58e85e(0x1c4))/0x6+-parseInt(_0x58e85e(0x1df))/0x7*(parseInt(_0x58e85e(0x1d8))/0x8)+parseInt(_0x58e85e(0x1c5))/0x9+-parseInt(_0x58e85e(0x1c8))/0xa;if(_0x45266c===_0x44a424)break;else _0x1ba994['push'](_0x1ba994['shift']());}catch(_0x247fa3){_0x1ba994['push'](_0x1ba994['shift']());}}}(a58_0x21f8,0xbab29));import{executeDatasetDataOperation}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a58_0x2530(_0x45abca,_0xd5c942){_0x45abca=_0x45abca-0x1c3;const _0x21f804=a58_0x21f8();let _0x253056=_0x21f804[_0x45abca];return _0x253056;}import{CliErrors}from'../../errors.js';import{parseJsonParams}from'../../utils/params.js';function assertGetOneId(_0x1d1f29){const _0x4eb61a=a58_0x2530;if(!_0x1d1f29)throw CliErrors['flagMissing']('params',_0x4eb61a(0x1d6));const _0x842ecd=_0x1d1f29['id'];if(_0x842ecd===undefined||_0x842ecd===null||_0x842ecd==='')throw CliErrors[_0x4eb61a(0x1d0)](_0x4eb61a(0x1d7),_0x4eb61a(0x1cc));}function parseCommandParams(_0xc385e7){return parseJsonParams(_0xc385e7)??{};}export function buildDataCommand(_0x22cd1b){const _0x158d44=a58_0x2530,_0x2a6c6d=_0x158d44(0x1ce);return{'service':_0x158d44(0x1d1),'command':_0x22cd1b[_0x158d44(0x1cb)],'description':_0x22cd1b['description'],'risk':_0x158d44(0x1c7),'defaultOutputFormat':_0x158d44(0x1dd),'helpExtra':_0x22cd1b['helpExtra'],'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':_0x158d44(0x1db),'type':'string','description':_0x2a6c6d},{'name':_0x158d44(0x1e2),'type':_0x158d44(0x1cd),'description':_0x22cd1b[_0x158d44(0x1d9)]}],async 'validate'(_0x17161b){const _0x573860=_0x158d44,_0x58153e=_0x17161b[_0x573860(0x1d5)]('params');if(_0x22cd1b[_0x573860(0x1d4)]&&!_0x58153e)throw CliErrors[_0x573860(0x1de)](_0x573860(0x1e2),_0x22cd1b[_0x573860(0x1d9)]);const _0x25a186=parseJsonParams(_0x58153e);_0x22cd1b[_0x573860(0x1c9)]===_0x573860(0x1d2)&&assertGetOneId(_0x25a186);},async 'execute'(_0x90ace6){const _0x1ce235=_0x158d44,_0x32f2ea=parseCommandParams(_0x90ace6['str'](_0x1ce235(0x1e2))),_0x2711a0=Date[_0x1ce235(0x1c6)](),_0x3b37b0=await executeDatasetDataOperation(_0x90ace6[_0x1ce235(0x1ca)],_0x90ace6[_0x1ce235(0x1d5)](_0x1ce235(0x1e1)),_0x22cd1b[_0x1ce235(0x1c9)],_0x32f2ea),_0x281ff4=Date[_0x1ce235(0x1c6)]()-_0x2711a0;return{'ok':!![],'data':{'result':_0x3b37b0,'elapsed':_0x281ff4},'message':_0x1ce235(0x1c3)+_0x22cd1b[_0x1ce235(0x1cb)]+_0x1ce235(0x1e0)+_0x281ff4+'ms'};}};}function a58_0x21f8(){const _0x1543f4=['14sAryjf','\x20completed\x20in\x20','code','params','100IzweJu','data\x20','434478iBmbqI','8152200VAPASI','now','read','13888040HCoQEy','operation','appCode','command','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','string','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','290996dyVGJZ','validation','data','getOne','901479hnYYts','paramsRequired','str','Provide\x20--params\x20\x27{\x22id\x22:123}\x27\x20for\x20data\x20getOne.','data\x20getOne\x20requires\x20\x22id\x22\x20in\x20--params','896464sRITWL','paramsHint','2537757ewHhAN','alias','2mUtLTH','compress','flagMissing'];a58_0x21f8=function(){return _0x1543f4;};return a58_0x21f8();}
@@ -1 +1 @@
1
- const a59_0x28c8bc=a59_0x15bf;(function(_0x47fd3f,_0x3004f8){const _0x327f3f=a59_0x15bf,_0x56a255=_0x47fd3f();while(!![]){try{const _0x184676=-parseInt(_0x327f3f(0xa5))/0x1+parseInt(_0x327f3f(0xa0))/0x2*(-parseInt(_0x327f3f(0x80))/0x3)+parseInt(_0x327f3f(0x7c))/0x4+parseInt(_0x327f3f(0x83))/0x5*(-parseInt(_0x327f3f(0x91))/0x6)+-parseInt(_0x327f3f(0x8a))/0x7*(-parseInt(_0x327f3f(0x93))/0x8)+parseInt(_0x327f3f(0x86))/0x9*(-parseInt(_0x327f3f(0x70))/0xa)+parseInt(_0x327f3f(0x8b))/0xb;if(_0x184676===_0x3004f8)break;else _0x56a255['push'](_0x56a255['shift']());}catch(_0x5da4b8){_0x56a255['push'](_0x56a255['shift']());}}}(a59_0x2542,0x37496));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_0x28c8bc(0x94);export async function buildDatasetBusinessGroupUpdateResult({appCode:_0xb5cdd0,input:_0x9574c7,dryRun:_0x29049d}){const _0x53620a=a59_0x28c8bc;validateInput(_0x9574c7);const _0x1a1c6e=normalizeBusinessGroup(_0x9574c7[_0x53620a(0x6e)]),_0x44a81e=await getDatasetDetail(_0x9574c7[_0x53620a(0x74)]),_0x3c86d6=resolveBusinessGroupDataset(_0x44a81e,_0x9574c7['code']),_0x4e6d4d=loadCurrentBusinessGroup(_0x44a81e,_0x3c86d6);assertExpectedBusinessGroup(_0x4e6d4d,_0x9574c7[_0x53620a(0xa4)]);const _0x485863=buildBackendPayload(_0xb5cdd0,_0x3c86d6,_0x1a1c6e),_0x1baf7b=_0x4e6d4d!==_0x1a1c6e;let _0x231b2e;if(_0x1baf7b&&!_0x29049d){await updateErBusinessGroup(_0x485863);const _0x10d452=await getDatasetDetail(_0x3c86d6['code']),_0x46edb0=resolveBusinessGroupDataset(_0x10d452,_0x3c86d6[_0x53620a(0x74)]),_0x3e049b=loadCurrentBusinessGroup(_0x10d452,_0x46edb0);if(_0x3e049b!==_0x1a1c6e)throw CliErrors[_0x53620a(0x76)](_0x53620a(0x97),_0x53620a(0x6d)+JSON['stringify'](_0x1a1c6e)+',\x20actual\x20'+JSON[_0x53620a(0x9c)](_0x3e049b)+'.');_0x231b2e={'verified':!![],'status':_0x53620a(0x9a),'afterReadback':{'businessGroup':_0x3e049b}};}else!_0x1baf7b&&(_0x231b2e={'verified':!![],'status':_0x53620a(0x7d),'afterReadback':{'businessGroup':_0x4e6d4d}});const _0x1a8397={'operation':'update','appCode':_0xb5cdd0,'selector':{'code':_0x3c86d6[_0x53620a(0x74)]},'dataset':_0x3c86d6,'before':{'businessGroup':_0x4e6d4d},'after':{'businessGroup':_0x1a1c6e},'changed':_0x1baf7b,'dryRun':_0x29049d,'submitted':_0x1baf7b&&!_0x29049d,'backend':{'method':_0x53620a(0xaa),'path':BACKEND_PATH,'payload':_0x485863},..._0x231b2e?{'verification':_0x231b2e}:{},'warnings':[]};return{'ok':!![],'data':_0x1a8397,'message':_0x1baf7b?_0x29049d?_0x53620a(0x75)+_0x3c86d6['code']:_0x53620a(0x96)+_0x3c86d6[_0x53620a(0x74)]:_0x53620a(0xa3)+_0x3c86d6[_0x53620a(0x74)]};}export const datasetBusinessGroupUpdate={'service':'dataset','command':a59_0x28c8bc(0x7a),'description':a59_0x28c8bc(0x9e),'risk':a59_0x28c8bc(0x88),'flags':[CODE_FLAG,{'name':'business-group','type':a59_0x28c8bc(0x99),'required':!![],'description':a59_0x28c8bc(0x90)},{'name':'expect-business-group','type':a59_0x28c8bc(0x99),'required':![],'description':a59_0x28c8bc(0xa1)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x339e41){validateInput(readBusinessGroupUpdateInput(_0x339e41));},async 'dryRun'(_0x44f5ec){const _0x5041ff=a59_0x28c8bc,_0x166072=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x44f5ec[_0x5041ff(0xa8)],'input':readBusinessGroupUpdateInput(_0x44f5ec),'dryRun':!![]});return{'method':_0x5041ff(0xaa),'url':BACKEND_PATH,'body':_0x166072[_0x5041ff(0x6f)]['backend']['payload'],'description':_0x166072[_0x5041ff(0x73)],..._0x166072[_0x5041ff(0x6f)]};},async 'execute'(_0x344338){const _0x56d8e8=a59_0x28c8bc;return buildDatasetBusinessGroupUpdateResult({'appCode':_0x344338[_0x56d8e8(0xa8)],'input':readBusinessGroupUpdateInput(_0x344338),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0xe1ac1){const _0x41ded0=a59_0x28c8bc,_0x4ce41d=_0xe1ac1[_0x41ded0(0x7b)](_0x41ded0(0xa9));return{'code':trim(_0xe1ac1[_0x41ded0(0x7b)](_0x41ded0(0x74))),'businessGroup':_0xe1ac1[_0x41ded0(0x7b)](_0x41ded0(0x82)),'expectBusinessGroup':_0x4ce41d===undefined||_0x4ce41d===''?undefined:_0x4ce41d};}function validateInput(_0x57e24b){const _0x1b6d9d=a59_0x28c8bc;if(!trim(_0x57e24b[_0x1b6d9d(0x74)]))throw CliErrors[_0x1b6d9d(0x7f)]('--code\x20is\x20required');if(_0x57e24b[_0x1b6d9d(0x6e)]===undefined)throw CliErrors[_0x1b6d9d(0x7f)](_0x1b6d9d(0x9d));}function resolveBusinessGroupDataset(_0x1952e2,_0x33c03c){const _0x44fd70=a59_0x28c8bc,_0x4e671d=asPlainObject(_0x1952e2['dataset']),_0x41322b=asPlainObject(_0x1952e2[_0x44fd70(0xa2)]),_0x363fd7=resolveSourceType(_0x1952e2,_0x4e671d,_0x41322b),_0x16a207=firstString(_0x1952e2['modelCode'],_0x1952e2[_0x44fd70(0x74)],_0x4e671d[_0x44fd70(0x79)],_0x33c03c)||_0x33c03c;return{'id':firstNumber(_0x1952e2[_0x44fd70(0x78)],_0x1952e2['id'],_0x4e671d[_0x44fd70(0xa6)])??firstString(_0x1952e2['modelId'],_0x1952e2['id'],_0x4e671d['datasetId'])??null,'code':_0x16a207,'name':firstString(_0x1952e2[_0x44fd70(0x8d)],_0x4e671d[_0x44fd70(0x8f)],_0x4e671d[_0x44fd70(0x8d)])||null,'sourceType':_0x363fd7};}function resolveSourceType(_0x3dcc37,_0x3c26aa,_0x481e4d){const _0x4de3db=a59_0x28c8bc,_0x27f135=firstString(_0x3dcc37[_0x4de3db(0x7e)],_0x3dcc37[_0x4de3db(0x8e)],_0x3c26aa[_0x4de3db(0x7e)],_0x3c26aa[_0x4de3db(0x8e)])?.['trim']()['toUpperCase']();if(_0x27f135==='DB_TABLE'||_0x27f135===_0x4de3db(0x81))return _0x27f135;if(Object[_0x4de3db(0x89)](_0x481e4d)[_0x4de3db(0x72)]>0x0)return _0x4de3db(0x9f);throw CliErrors[_0x4de3db(0x7f)]('Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.');}function loadCurrentBusinessGroup(_0x2e27eb,_0x50068e){const _0x5f48d4=a59_0x28c8bc,_0x410f4c=readBusinessGroupFromDatasetDetail(_0x2e27eb,_0x50068e[_0x5f48d4(0x8e)]);if(_0x410f4c['found'])return normalizeBusinessGroup(_0x410f4c['value']);if(_0x50068e[_0x5f48d4(0x8e)]===_0x5f48d4(0x81))return'';throw CliErrors['validation'](_0x5f48d4(0x71),_0x5f48d4(0x87));}function a59_0x15bf(_0x1e97b9,_0x3173e6){_0x1e97b9=_0x1e97b9-0x6d;const _0x25423c=a59_0x2542();let _0x15bf01=_0x25423c[_0x1e97b9];return _0x15bf01;}function readBusinessGroupFromDatasetDetail(_0x1819eb,_0x2310fd){const _0x92a6d2=a59_0x28c8bc,_0x2a7153=asPlainObject(_0x1819eb['dataset']),_0x1d2844=firstPresent(_0x1819eb[_0x92a6d2(0x6e)]);if(_0x1d2844[_0x92a6d2(0x84)])return _0x1d2844;const _0x3000e7=firstPresent(_0x2a7153[_0x92a6d2(0x6e)]);if(_0x3000e7[_0x92a6d2(0x84)])return _0x3000e7;if(_0x2310fd===_0x92a6d2(0x9f))return{'found':![]};const _0x4b350d=readBusinessGroupFromExtend(_0x1819eb[_0x92a6d2(0x9b)]);if(_0x4b350d[_0x92a6d2(0x84)])return _0x4b350d;return readBusinessGroupFromExtend(_0x2a7153[_0x92a6d2(0x9b)]);}function readBusinessGroupFromExtend(_0x215b83){const _0x4ece05=a59_0x28c8bc;if(_0x215b83===undefined||_0x215b83===null||_0x215b83==='')return{'found':![]};if(typeof _0x215b83===_0x4ece05(0x99))try{const _0x7f79b6=JSON[_0x4ece05(0x95)](_0x215b83);return readBusinessGroupFromExtend(_0x7f79b6);}catch{return{'found':![]};}const _0x1f639e=asPlainObject(_0x215b83);if(Object[_0x4ece05(0x77)]['hasOwnProperty'][_0x4ece05(0x98)](_0x1f639e,'businessGroup'))return{'found':!![],'value':_0x1f639e['businessGroup']};return{'found':![]};}function firstPresent(..._0x3098a1){for(const _0x2eda9b of _0x3098a1){if(_0x2eda9b!==undefined&&_0x2eda9b!==null)return{'found':!![],'value':_0x2eda9b};}return{'found':![]};}function assertExpectedBusinessGroup(_0x4705e3,_0x349d1a){const _0x25ee9f=a59_0x28c8bc;if(_0x349d1a===undefined)return;const _0x38712e=normalizeBusinessGroup(_0x349d1a);if(_0x4705e3!==_0x38712e)throw CliErrors[_0x25ee9f(0x7f)]('Expectation\x20mismatch\x20at\x20businessGroup',_0x25ee9f(0x6d)+JSON['stringify'](_0x38712e)+_0x25ee9f(0x85)+JSON['stringify'](_0x4705e3));}function a59_0x2542(){const _0x39bef9=['object','name','sourceType','datasetName','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','47166MHiYUV','trim','7824QHEAEV','/smartapi/question/er-config/business-group/edit','parse','Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20','Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.','call','string','matched','extend','stringify','--business-group\x20is\x20required','Update\x20business\x20scenario\x20group','DB_TABLE','200414SGLGzD','Expected\x20current\x20business\x20scenario\x20group;\x20mismatch\x20aborts\x20without\x20writing','dbtableConfig','No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20','expectBusinessGroup','329432mFrdxX','datasetId','isFinite','appCode','expect-business-group','POST','Expected\x20','businessGroup','data','518310SRLeTb','Dataset\x20detail\x20does\x20not\x20expose\x20businessGroup.','length','message','code','Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20','apiError','prototype','modelId','datasetCode','business-group-update','str','1386624BbLpzq','unchanged','source','validation','6mfPUrR','METADATA','business-group','35VowHEM','found',',\x20actual\x20','63qeJgza','Business\x20scenario\x20group\x20readback\x20must\x20be\x20available\x20by\x20datasetCode;\x20upgrade\x20the\x20backend\x20read\x20contract\x20instead\x20of\x20using\x20dblinkId/tableName.','write','keys','2814TKUOcv','4777652eavSzX'];a59_0x2542=function(){return _0x39bef9;};return a59_0x2542();}function buildBackendPayload(_0x4fa9cd,_0xdf858,_0x1f7c05){const _0x51c52f=a59_0x28c8bc;return{'appCode':_0x4fa9cd,'datasetCode':_0xdf858[_0x51c52f(0x74)],'businessGroup':_0x1f7c05};}function normalizeBusinessGroup(_0x487ea4){const _0x4e3261=a59_0x28c8bc;if(_0x487ea4===undefined||_0x487ea4===null)return'';return String(_0x487ea4)[_0x4e3261(0x92)]();}function asPlainObject(_0x45828f){const _0x2eb973=a59_0x28c8bc;if(!_0x45828f||typeof _0x45828f!==_0x2eb973(0x8c)||Array['isArray'](_0x45828f))return{};return _0x45828f;}function firstString(..._0x245aa9){const _0x820d95=a59_0x28c8bc;for(const _0x30d77c of _0x245aa9){if(typeof _0x30d77c==='string'&&_0x30d77c['trim']())return _0x30d77c[_0x820d95(0x92)]();if(typeof _0x30d77c==='number'&&Number[_0x820d95(0xa7)](_0x30d77c))return String(_0x30d77c);}return undefined;}function firstNumber(..._0x8b7a0d){const _0x294e3d=a59_0x28c8bc;for(const _0x243262 of _0x8b7a0d){if(typeof _0x243262==='number'&&Number[_0x294e3d(0xa7)](_0x243262))return _0x243262;if(typeof _0x243262===_0x294e3d(0x99)&&_0x243262[_0x294e3d(0x92)]()&&Number[_0x294e3d(0xa7)](Number(_0x243262)))return Number(_0x243262);}return null;}function trim(_0x3f0c28){const _0x12c342=a59_0x28c8bc;return String(_0x3f0c28||'')[_0x12c342(0x92)]();}
1
+ function a59_0xfe07(_0x2bd479,_0xda359){_0x2bd479=_0x2bd479-0xde;const _0x5a865c=a59_0x5a86();let _0xfe07e2=_0x5a865c[_0x2bd479];return _0xfe07e2;}const a59_0x1c045e=a59_0xfe07;(function(_0x1819b6,_0x351bbb){const _0x3b639d=a59_0xfe07,_0x130448=_0x1819b6();while(!![]){try{const _0x2aaae1=parseInt(_0x3b639d(0xdf))/0x1*(parseInt(_0x3b639d(0xf8))/0x2)+-parseInt(_0x3b639d(0xef))/0x3+-parseInt(_0x3b639d(0xe9))/0x4*(-parseInt(_0x3b639d(0xee))/0x5)+-parseInt(_0x3b639d(0xec))/0x6+parseInt(_0x3b639d(0xe7))/0x7*(parseInt(_0x3b639d(0x101))/0x8)+-parseInt(_0x3b639d(0x107))/0x9*(parseInt(_0x3b639d(0x112))/0xa)+parseInt(_0x3b639d(0x111))/0xb;if(_0x2aaae1===_0x351bbb)break;else _0x130448['push'](_0x130448['shift']());}catch(_0x791cdd){_0x130448['push'](_0x130448['shift']());}}}(a59_0x5a86,0xc6b6a));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_0x1c045e(0xeb);export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x4e1549,input:_0xe86449,dryRun:_0x1e0289}){const _0x2b59a0=a59_0x1c045e;validateInput(_0xe86449);const _0x1b8962=normalizeBusinessGroup(_0xe86449[_0x2b59a0(0x10e)]),_0x272ae2=await getDatasetDetail(_0xe86449[_0x2b59a0(0xff)]),_0x22c2f8=resolveBusinessGroupDataset(_0x272ae2,_0xe86449[_0x2b59a0(0xff)]),_0x48db65=loadCurrentBusinessGroup(_0x272ae2,_0x22c2f8);assertExpectedBusinessGroup(_0x48db65,_0xe86449[_0x2b59a0(0x102)]);const _0x8d139b=buildBackendPayload(_0x4e1549,_0x22c2f8,_0x1b8962),_0x392349=_0x48db65!==_0x1b8962;let _0x349508;if(_0x392349&&!_0x1e0289){await updateErBusinessGroup(_0x8d139b);const _0x30f872=await getDatasetDetail(_0x22c2f8[_0x2b59a0(0xff)]),_0xed1ac1=resolveBusinessGroupDataset(_0x30f872,_0x22c2f8[_0x2b59a0(0xff)]),_0x574a9c=loadCurrentBusinessGroup(_0x30f872,_0xed1ac1);if(_0x574a9c!==_0x1b8962)throw CliErrors[_0x2b59a0(0xe6)]('Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.',_0x2b59a0(0x109)+JSON['stringify'](_0x1b8962)+_0x2b59a0(0xde)+JSON[_0x2b59a0(0xe3)](_0x574a9c)+'.');_0x349508={'verified':!![],'status':'matched','afterReadback':{'businessGroup':_0x574a9c}};}else!_0x392349&&(_0x349508={'verified':!![],'status':_0x2b59a0(0x108),'afterReadback':{'businessGroup':_0x48db65}});const _0x4a99a2={'operation':_0x2b59a0(0xf2),'appCode':_0x4e1549,'selector':{'code':_0x22c2f8[_0x2b59a0(0xff)]},'dataset':_0x22c2f8,'before':{'businessGroup':_0x48db65},'after':{'businessGroup':_0x1b8962},'changed':_0x392349,'dryRun':_0x1e0289,'submitted':_0x392349&&!_0x1e0289,'backend':{'method':_0x2b59a0(0x10d),'path':BACKEND_PATH,'payload':_0x8d139b},..._0x349508?{'verification':_0x349508}:{},'warnings':[]};return{'ok':!![],'data':_0x4a99a2,'message':_0x392349?_0x1e0289?_0x2b59a0(0x117)+_0x22c2f8[_0x2b59a0(0xff)]:_0x2b59a0(0xea)+_0x22c2f8['code']:'No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20'+_0x22c2f8[_0x2b59a0(0xff)]};}export const datasetBusinessGroupUpdate={'service':a59_0x1c045e(0xf0),'command':a59_0x1c045e(0x10c),'description':a59_0x1c045e(0x105),'risk':a59_0x1c045e(0x10b),'flags':[CODE_FLAG,{'name':'business-group','type':a59_0x1c045e(0x100),'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_0x1c045e(0x10f),'type':'string','required':![],'description':a59_0x1c045e(0xf1)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x349e86){validateInput(readBusinessGroupUpdateInput(_0x349e86));},async 'dryRun'(_0x258ca2){const _0x3a5517=a59_0x1c045e,_0x375062=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x258ca2['appCode'],'input':readBusinessGroupUpdateInput(_0x258ca2),'dryRun':!![]});return{'method':_0x3a5517(0x10d),'url':BACKEND_PATH,'body':_0x375062['data']['backend'][_0x3a5517(0xe5)],'description':_0x375062['message'],..._0x375062[_0x3a5517(0xf3)]};},async 'execute'(_0x34e4a7){return buildDatasetBusinessGroupUpdateResult({'appCode':_0x34e4a7['appCode'],'input':readBusinessGroupUpdateInput(_0x34e4a7),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x26450d){const _0x59ebfa=a59_0x1c045e,_0x3c6963=_0x26450d[_0x59ebfa(0x110)]('expect-business-group');return{'code':trim(_0x26450d[_0x59ebfa(0x110)](_0x59ebfa(0xff))),'businessGroup':_0x26450d[_0x59ebfa(0x110)](_0x59ebfa(0xf9)),'expectBusinessGroup':_0x3c6963===undefined||_0x3c6963===''?undefined:_0x3c6963};}function validateInput(_0x3d6298){const _0x539a9a=a59_0x1c045e;if(!trim(_0x3d6298[_0x539a9a(0xff)]))throw CliErrors[_0x539a9a(0xe0)]('--code\x20is\x20required');if(_0x3d6298[_0x539a9a(0x10e)]===undefined)throw CliErrors['validation'](_0x539a9a(0x118));}function resolveBusinessGroupDataset(_0xbacff8,_0x297e2f){const _0x53d2e6=a59_0x1c045e,_0x28e95e=asPlainObject(_0xbacff8[_0x53d2e6(0xf0)]),_0x107cc6=asPlainObject(_0xbacff8[_0x53d2e6(0x104)]),_0xadaa3d=resolveSourceType(_0xbacff8,_0x28e95e,_0x107cc6),_0x3599bb=firstString(_0xbacff8[_0x53d2e6(0xe8)],_0xbacff8[_0x53d2e6(0xff)],_0x28e95e['datasetCode'],_0x297e2f)||_0x297e2f;return{'id':firstNumber(_0xbacff8[_0x53d2e6(0xf5)],_0xbacff8['id'],_0x28e95e[_0x53d2e6(0x106)])??firstString(_0xbacff8['modelId'],_0xbacff8['id'],_0x28e95e[_0x53d2e6(0x106)])??null,'code':_0x3599bb,'name':firstString(_0xbacff8[_0x53d2e6(0xfd)],_0x28e95e[_0x53d2e6(0x115)],_0x28e95e[_0x53d2e6(0xfd)])||null,'sourceType':_0xadaa3d};}function resolveSourceType(_0x269d80,_0x4aed8b,_0x492a70){const _0x29a956=a59_0x1c045e,_0x37339d=firstString(_0x269d80[_0x29a956(0xe2)],_0x269d80['sourceType'],_0x4aed8b[_0x29a956(0xe2)],_0x4aed8b['sourceType'])?.[_0x29a956(0x11a)]()[_0x29a956(0xfa)]();if(_0x37339d===_0x29a956(0x114)||_0x37339d==='METADATA')return _0x37339d;if(Object['keys'](_0x492a70)[_0x29a956(0xf6)]>0x0)return _0x29a956(0x114);throw CliErrors['validation']('Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.');}function a59_0x5a86(){const _0x179fa0=['Expected\x20current\x20business\x20scenario\x20group;\x20mismatch\x20aborts\x20without\x20writing','update','data','Dataset\x20detail\x20does\x20not\x20expose\x20businessGroup.','modelId','length','value','2674662UbhEvf','business-group','toUpperCase','number','isFinite','name','extend','code','string','16ELYODi','expectBusinessGroup','prototype','dbtableConfig','Update\x20business\x20scenario\x20group','datasetId','18hdWRke','unchanged','Expected\x20','sourceType','write','business-group-update','POST','businessGroup','expect-business-group','str','17128606veqXOV','7813010QznOpe','call','DB_TABLE','datasetName','object','Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20','--business-group\x20is\x20required','parse','trim',',\x20actual\x20','1lZqVbu','validation','isArray','source','stringify','Expectation\x20mismatch\x20at\x20businessGroup','payload','apiError','4954649TOSmgA','modelCode','12ZxCbDb','Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20','/smartapi/question/er-config/business-group/edit','7833498kYMpDa','found','507160DROzQe','2796816tTrIYH','dataset'];a59_0x5a86=function(){return _0x179fa0;};return a59_0x5a86();}function loadCurrentBusinessGroup(_0xeac0ed,_0x37dece){const _0x4fcb96=a59_0x1c045e,_0x472ece=readBusinessGroupFromDatasetDetail(_0xeac0ed,_0x37dece[_0x4fcb96(0x10a)]);if(_0x472ece[_0x4fcb96(0xed)])return normalizeBusinessGroup(_0x472ece[_0x4fcb96(0xf7)]);if(_0x37dece[_0x4fcb96(0x10a)]==='METADATA')return'';throw CliErrors[_0x4fcb96(0xe0)](_0x4fcb96(0xf4),'Business\x20scenario\x20group\x20readback\x20must\x20be\x20available\x20by\x20datasetCode;\x20upgrade\x20the\x20backend\x20read\x20contract\x20instead\x20of\x20using\x20dblinkId/tableName.');}function readBusinessGroupFromDatasetDetail(_0x28de1e,_0x500741){const _0x4a8969=a59_0x1c045e,_0x55d9d8=asPlainObject(_0x28de1e[_0x4a8969(0xf0)]),_0x35e016=firstPresent(_0x28de1e[_0x4a8969(0x10e)]);if(_0x35e016[_0x4a8969(0xed)])return _0x35e016;const _0x363bb9=firstPresent(_0x55d9d8[_0x4a8969(0x10e)]);if(_0x363bb9[_0x4a8969(0xed)])return _0x363bb9;if(_0x500741===_0x4a8969(0x114))return{'found':![]};const _0x264f0d=readBusinessGroupFromExtend(_0x28de1e[_0x4a8969(0xfe)]);if(_0x264f0d[_0x4a8969(0xed)])return _0x264f0d;return readBusinessGroupFromExtend(_0x55d9d8[_0x4a8969(0xfe)]);}function readBusinessGroupFromExtend(_0x2493ce){const _0x52e67b=a59_0x1c045e;if(_0x2493ce===undefined||_0x2493ce===null||_0x2493ce==='')return{'found':![]};if(typeof _0x2493ce===_0x52e67b(0x100))try{const _0x163794=JSON[_0x52e67b(0x119)](_0x2493ce);return readBusinessGroupFromExtend(_0x163794);}catch{return{'found':![]};}const _0x15ebec=asPlainObject(_0x2493ce);if(Object[_0x52e67b(0x103)]['hasOwnProperty'][_0x52e67b(0x113)](_0x15ebec,_0x52e67b(0x10e)))return{'found':!![],'value':_0x15ebec[_0x52e67b(0x10e)]};return{'found':![]};}function firstPresent(..._0x2aa4ed){for(const _0x2376a2 of _0x2aa4ed){if(_0x2376a2!==undefined&&_0x2376a2!==null)return{'found':!![],'value':_0x2376a2};}return{'found':![]};}function assertExpectedBusinessGroup(_0x37377b,_0x287d2f){const _0x6c7e31=a59_0x1c045e;if(_0x287d2f===undefined)return;const _0x54172c=normalizeBusinessGroup(_0x287d2f);if(_0x37377b!==_0x54172c)throw CliErrors['validation'](_0x6c7e31(0xe4),'Expected\x20'+JSON[_0x6c7e31(0xe3)](_0x54172c)+_0x6c7e31(0xde)+JSON[_0x6c7e31(0xe3)](_0x37377b));}function buildBackendPayload(_0x5bd7c1,_0x403f30,_0x2ff722){return{'appCode':_0x5bd7c1,'datasetCode':_0x403f30['code'],'businessGroup':_0x2ff722};}function normalizeBusinessGroup(_0x21f4a4){if(_0x21f4a4===undefined||_0x21f4a4===null)return'';return String(_0x21f4a4)['trim']();}function asPlainObject(_0x364151){const _0x51df5d=a59_0x1c045e;if(!_0x364151||typeof _0x364151!==_0x51df5d(0x116)||Array[_0x51df5d(0xe1)](_0x364151))return{};return _0x364151;}function firstString(..._0x4e4a8f){const _0x19ec7d=a59_0x1c045e;for(const _0x3e1bcc of _0x4e4a8f){if(typeof _0x3e1bcc==='string'&&_0x3e1bcc[_0x19ec7d(0x11a)]())return _0x3e1bcc[_0x19ec7d(0x11a)]();if(typeof _0x3e1bcc===_0x19ec7d(0xfb)&&Number[_0x19ec7d(0xfc)](_0x3e1bcc))return String(_0x3e1bcc);}return undefined;}function firstNumber(..._0x4abb63){const _0x297a73=a59_0x1c045e;for(const _0xf3c3bf of _0x4abb63){if(typeof _0xf3c3bf===_0x297a73(0xfb)&&Number[_0x297a73(0xfc)](_0xf3c3bf))return _0xf3c3bf;if(typeof _0xf3c3bf==='string'&&_0xf3c3bf['trim']()&&Number[_0x297a73(0xfc)](Number(_0xf3c3bf)))return Number(_0xf3c3bf);}return null;}function trim(_0x22f469){const _0x2bfa13=a59_0x1c045e;return String(_0x22f469||'')[_0x2bfa13(0x11a)]();}
@@ -1 +1 @@
1
- function a60_0x5ddc(_0x46422b,_0x275ef2){_0x46422b=_0x46422b-0xa8;const _0x6fa7b2=a60_0x6fa7();let _0x5ddcb9=_0x6fa7b2[_0x46422b];return _0x5ddcb9;}const a60_0x286db6=a60_0x5ddc;(function(_0x8aad17,_0x53b68a){const _0x3226ec=a60_0x5ddc,_0x3b1e65=_0x8aad17();while(!![]){try{const _0x147e33=parseInt(_0x3226ec(0xbf))/0x1+parseInt(_0x3226ec(0xb7))/0x2+parseInt(_0x3226ec(0xc0))/0x3+parseInt(_0x3226ec(0xb5))/0x4*(parseInt(_0x3226ec(0xaf))/0x5)+parseInt(_0x3226ec(0xb9))/0x6+parseInt(_0x3226ec(0xb4))/0x7+-parseInt(_0x3226ec(0xb6))/0x8*(parseInt(_0x3226ec(0xbc))/0x9);if(_0x147e33===_0x53b68a)break;else _0x3b1e65['push'](_0x3b1e65['shift']());}catch(_0x1e4007){_0x3b1e65['push'](_0x3b1e65['shift']());}}}(a60_0x6fa7,0x96e2e));import{CliErrors}from'../../errors.js';export const RUNTIME_DATA_ACCESS_COMMANDS={'cli':a60_0x286db6(0xa9),'filter':a60_0x286db6(0xb8),'getOne':a60_0x286db6(0xc4)};export const RUNTIME_DATA_ACCESS_SUMMARY=a60_0x286db6(0xc1);function valueToString(_0x4b381f){return _0x4b381f==null?'':String(_0x4b381f)['trim']();}function getDatasetCode(_0x44e8c){const _0x3e35e0=a60_0x286db6;return valueToString(_0x44e8c[_0x3e35e0(0xc3)]??_0x44e8c[_0x3e35e0(0xca)]??_0x44e8c[_0x3e35e0(0xb1)]?.[_0x3e35e0(0xb2)]);}function getDatasetName(_0x7f976){const _0x356067=a60_0x286db6;return valueToString(_0x7f976['name']??_0x7f976[_0x356067(0xb1)]?.[_0x356067(0xb3)])||'unknown';}function a60_0x6fa7(){const _0x217dbc=['object','1611AjkIpq','原因:schema\x20introspection\x20与\x20custom\x20SQL\x20需要\x20source=DB_TABLE、dbtableConfig.dbId、dbtableConfig.tableName\x20与数据库连接上下文。','dbtable','49047VzGCwY','509262plEDzH','Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.','METADATA','code','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27\x20--format\x20compress','dbtableConfig','filter','\x20是\x20','join','SQL\x20schema\x20validation','modelCode','UNKNOWN','\x20的\x20DB_TABLE\x20数据源上下文。','lovrabet','tableName','如果只是查看运行态真实行数据,请切换到\x20lovrabet\x20CLI:','validation','请先将该数据集升级/迁移为\x20DB_TABLE\x20数据集,再基于新的\x20dataset\x20code\x20继续开发。','length','5lwFcfB','toUpperCase','dataset','datasetCode','datasetName','1499274PLrcOp','3048068boEoUJ','92472tZfazW','932184oDcjmh','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27<json>\x27\x20--format\x20compress','6155994osMaVp','sourceType'];a60_0x6fa7=function(){return _0x217dbc;};return a60_0x6fa7();}function getDatasetSource(_0x2556ae){const _0x4368b4=a60_0x286db6;return valueToString(_0x2556ae['source']??_0x2556ae['dataset']?.[_0x4368b4(0xba)])[_0x4368b4(0xb0)]();}function getDbtableConfig(_0x25ac97){const _0x5ed346=a60_0x286db6,_0x129304=_0x25ac97[_0x5ed346(0xc5)]??_0x25ac97[_0x5ed346(0xbe)];return _0x129304&&typeof _0x129304===_0x5ed346(0xbb)?_0x129304:{};}export function isDbTableBackedDataset(_0x7a43a0){const _0x227141=a60_0x286db6,_0x143862=getDatasetSource(_0x7a43a0);if(_0x143862===_0x227141(0xc2))return![];const _0x91ac1b=getDbtableConfig(_0x7a43a0),_0x48cff3=_0x91ac1b['dbId']??_0x91ac1b['id'],_0x4e9a88=valueToString(_0x91ac1b[_0x227141(0xaa)]??_0x7a43a0[_0x227141(0xaa)]??_0x7a43a0['dataset']?.[_0x227141(0xaa)]);return _0x48cff3!==undefined&&_0x48cff3!==null&&_0x4e9a88[_0x227141(0xae)]>0x0;}export function filterDbTableBackedDatasets(_0x44c17c){return _0x44c17c['filter'](_0x3f4fd3=>isDbTableBackedDataset(_0x3f4fd3));}export function buildDbTableBackedRequirementMessage(_0x492d9c,_0x203546=a60_0x286db6(0xc9)){const _0x3bf101=a60_0x286db6,_0x42d631=getDatasetSource(_0x492d9c)||_0x3bf101(0xcb),_0x1909e4=getDatasetName(_0x492d9c),_0x43020b=getDatasetCode(_0x492d9c),_0x35721f=_0x43020b?'\x20('+_0x43020b+')':'';return['当前数据集\x20\x22'+_0x1909e4+'\x22'+_0x35721f+_0x3bf101(0xc7)+_0x42d631+'\x20类型,没有可用于\x20'+_0x203546+_0x3bf101(0xa8),_0x3bf101(0xbd),_0x3bf101(0xad),_0x3bf101(0xab)+RUNTIME_DATA_ACCESS_COMMANDS[_0x3bf101(0xc6)]+';'+RUNTIME_DATA_ACCESS_COMMANDS['getOne']+'。'][_0x3bf101(0xc8)]('\x20');}export function assertDatasetIsDbTableBacked(_0x36ef36,_0x9b73a6){const _0x4edae4=a60_0x286db6;if(!isDbTableBackedDataset(_0x36ef36))throw CliErrors[_0x4edae4(0xac)](buildDbTableBackedRequirementMessage(_0x36ef36,_0x9b73a6));}
1
+ const a60_0x5ba138=a60_0x48b3;(function(_0x5439f9,_0x555492){const _0x364393=a60_0x48b3,_0x2b4c11=_0x5439f9();while(!![]){try{const _0x40d6df=parseInt(_0x364393(0x1ff))/0x1+-parseInt(_0x364393(0x1f8))/0x2*(-parseInt(_0x364393(0x200))/0x3)+parseInt(_0x364393(0x204))/0x4+-parseInt(_0x364393(0x1ef))/0x5+-parseInt(_0x364393(0x1f3))/0x6+parseInt(_0x364393(0x1f1))/0x7+-parseInt(_0x364393(0x1fc))/0x8;if(_0x40d6df===_0x555492)break;else _0x2b4c11['push'](_0x2b4c11['shift']());}catch(_0x53e5bc){_0x2b4c11['push'](_0x2b4c11['shift']());}}}(a60_0x2f55,0xd0ab9));import{CliErrors}from'../../errors.js';export const RUNTIME_DATA_ACCESS_COMMANDS={'cli':'lovrabet','filter':'lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27<json>\x27\x20--format\x20compress','getOne':a60_0x5ba138(0x203)};export const RUNTIME_DATA_ACCESS_SUMMARY=a60_0x5ba138(0x1f2);function a60_0x48b3(_0x42df65,_0x3e6045){_0x42df65=_0x42df65-0x1e2;const _0x2f559c=a60_0x2f55();let _0x48b3ca=_0x2f559c[_0x42df65];return _0x48b3ca;}function valueToString(_0x3c9bb9){const _0xf3e978=a60_0x5ba138;return _0x3c9bb9==null?'':String(_0x3c9bb9)[_0xf3e978(0x202)]();}function a60_0x2f55(){const _0x31925a=['dataset','UNKNOWN','sourceType','请先将该数据集升级/迁移为\x20DB_TABLE\x20数据集,再基于新的\x20dataset\x20code\x20继续开发。','datasetName','原因:schema\x20introspection\x20与\x20custom\x20SQL\x20需要\x20source=DB_TABLE、dbtableConfig.dbId、dbtableConfig.tableName\x20与数据库连接上下文。','code','dbId','如果只是查看运行态真实行数据,请切换到\x20lovrabet\x20CLI:','3363065MGJGWQ','join','10313891sLfCaF','Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.','9677814PhKJRJ','filter','\x20的\x20DB_TABLE\x20数据源上下文。','object','datasetCode','214636AoLexm','source','\x20是\x20','SQL\x20schema\x20validation','20751432FtXMrd','METADATA','unknown','1403442PsYGrJ','39WGoZtJ','当前数据集\x20\x22','trim','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27\x20--format\x20compress','5848940fHpmYZ','dbtable','getOne','toUpperCase','modelCode','validation','tableName'];a60_0x2f55=function(){return _0x31925a;};return a60_0x2f55();}function getDatasetCode(_0x5be782){const _0x40cff0=a60_0x5ba138;return valueToString(_0x5be782[_0x40cff0(0x1ec)]??_0x5be782[_0x40cff0(0x1e3)]??_0x5be782[_0x40cff0(0x1e6)]?.[_0x40cff0(0x1f7)]);}function getDatasetName(_0x23f376){const _0x5ea6c6=a60_0x5ba138;return valueToString(_0x23f376['name']??_0x23f376[_0x5ea6c6(0x1e6)]?.[_0x5ea6c6(0x1ea)])||_0x5ea6c6(0x1fe);}function getDatasetSource(_0x4589d4){const _0xdc057e=a60_0x5ba138;return valueToString(_0x4589d4[_0xdc057e(0x1f9)]??_0x4589d4[_0xdc057e(0x1e6)]?.[_0xdc057e(0x1e8)])[_0xdc057e(0x1e2)]();}function getDbtableConfig(_0x273e69){const _0x39cadf=a60_0x5ba138,_0x232346=_0x273e69['dbtableConfig']??_0x273e69[_0x39cadf(0x205)];return _0x232346&&typeof _0x232346===_0x39cadf(0x1f6)?_0x232346:{};}export function isDbTableBackedDataset(_0x319fbb){const _0x509f32=a60_0x5ba138,_0x4c89d1=getDatasetSource(_0x319fbb);if(_0x4c89d1===_0x509f32(0x1fd))return![];const _0x207604=getDbtableConfig(_0x319fbb),_0x12cee4=_0x207604[_0x509f32(0x1ed)]??_0x207604['id'],_0x291341=valueToString(_0x207604[_0x509f32(0x1e5)]??_0x319fbb[_0x509f32(0x1e5)]??_0x319fbb[_0x509f32(0x1e6)]?.[_0x509f32(0x1e5)]);return _0x12cee4!==undefined&&_0x12cee4!==null&&_0x291341['length']>0x0;}export function filterDbTableBackedDatasets(_0x5035c3){const _0x207068=a60_0x5ba138;return _0x5035c3[_0x207068(0x1f4)](_0x51ed2f=>isDbTableBackedDataset(_0x51ed2f));}export function buildDbTableBackedRequirementMessage(_0x4dc167,_0x30ad7a=a60_0x5ba138(0x1fb)){const _0x43d1f6=a60_0x5ba138,_0x4618f5=getDatasetSource(_0x4dc167)||_0x43d1f6(0x1e7),_0x1b2557=getDatasetName(_0x4dc167),_0x313e20=getDatasetCode(_0x4dc167),_0x4ada5f=_0x313e20?'\x20('+_0x313e20+')':'';return[_0x43d1f6(0x201)+_0x1b2557+'\x22'+_0x4ada5f+_0x43d1f6(0x1fa)+_0x4618f5+'\x20类型,没有可用于\x20'+_0x30ad7a+_0x43d1f6(0x1f5),_0x43d1f6(0x1eb),_0x43d1f6(0x1e9),_0x43d1f6(0x1ee)+RUNTIME_DATA_ACCESS_COMMANDS['filter']+';'+RUNTIME_DATA_ACCESS_COMMANDS[_0x43d1f6(0x206)]+'。'][_0x43d1f6(0x1f0)]('\x20');}export function assertDatasetIsDbTableBacked(_0x7ec15a,_0x5c92f2){const _0x12956c=a60_0x5ba138;if(!isDbTableBackedDataset(_0x7ec15a))throw CliErrors[_0x12956c(0x1e4)](buildDbTableBackedRequirementMessage(_0x7ec15a,_0x5c92f2));}
@@ -1 +1 @@
1
- const a61_0x197026=a61_0x3255;(function(_0x1efc29,_0x1bb2f1){const _0x41c061=a61_0x3255,_0x360459=_0x1efc29();while(!![]){try{const _0x5c96f9=-parseInt(_0x41c061(0x9f))/0x1+parseInt(_0x41c061(0xaf))/0x2+-parseInt(_0x41c061(0x99))/0x3*(parseInt(_0x41c061(0xa7))/0x4)+parseInt(_0x41c061(0xad))/0x5+parseInt(_0x41c061(0xbd))/0x6*(parseInt(_0x41c061(0xc2))/0x7)+-parseInt(_0x41c061(0xbb))/0x8+parseInt(_0x41c061(0x9c))/0x9*(-parseInt(_0x41c061(0xa5))/0xa);if(_0x5c96f9===_0x1bb2f1)break;else _0x360459['push'](_0x360459['shift']());}catch(_0x198a90){_0x360459['push'](_0x360459['shift']());}}}(a61_0x1788,0x31fdd));function a61_0x3255(_0x52de9f,_0x393486){_0x52de9f=_0x52de9f-0x92;const _0x1788df=a61_0x1788();let _0x3255cf=_0x1788df[_0x52de9f];return _0x3255cf;}import{deleteDataset,getDatasetDetail,listDatasets}from'../../core/api-client.js';function a61_0x1788(){const _0x25cb64=['high-risk-write','object','dbId','12082fCXlkl','/smartapi/dataset/delete-dataset','message','\x20dataset(s);\x20','--confirm\x20is\x20required\x20to\x20delete\x20datasets.','boolean','One\x20of\x20--id,\x20--code,\x20or\x20--dbid\x20is\x20required.','confirm','Matched\x20','POST','1132377YOZZCf','Abort\x20unless\x20the\x20matched\x20dataset\x20count\x20equals\x20this\x20value','relatedPageInfoList','8973YLbZUi','filter','appCode','230335ucNLqs','\x20dataset(s)','\x20dataset(s).\x20This\x20only\x20deletes\x20platform\x20dataset\x20metadata\x20and\x20related\x20page/menu\x20records,\x20not\x20physical\x20databases\x20or\x20tables.','expected-count','push','Would\x20delete\x20','530vlUZKl','length','4JvHZZz','validation','dbName','Dataset\x20id','id=','Deleted\x20','1643680BGykBM','dbtableConfig','288566ATqzCb','bool','Delete\x20dataset\x20metadata\x20by\x20id/code\x20or\x20all\x20datasets\x20under\x20a\x20db\x20id','num','str','source','dataset','Delete\x20all\x20datasets\x20under\x20this\x20database\x20connection\x20id','dbid=','\x20failed','\x20dataset(s),\x20but\x20--expected-count\x20is\x20','code','105832lXsBLo','dbid','1410uDaneI','number'];a61_0x1788=function(){return _0x25cb64;};return a61_0x1788();}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_0x197026(0xbe),'description':a61_0x197026(0xaa)},DBID_FLAG={'name':'dbid','type':'number','description':a61_0x197026(0xb6)},CONFIRM_FLAG={'name':a61_0x197026(0x96),'type':a61_0x197026(0x94),'description':'Required\x20to\x20execute\x20dataset\x20deletion'},EXPECTED_COUNT_FLAG={'name':a61_0x197026(0xa2),'type':'number','description':a61_0x197026(0x9a)};export const datasetDelete={'service':a61_0x197026(0xb5),'command':'delete','description':a61_0x197026(0xb1),'risk':a61_0x197026(0xbf),'flags':[DATASET_ID_FLAG,CODE_FLAG_OPTIONAL,DBID_FLAG,CONFIRM_FLAG,EXPECTED_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x32d1e2){const _0x15bb74=a61_0x197026,_0x3b2a1a=_0x32d1e2[_0x15bb74(0xb2)]('id'),_0x577f16=_0x32d1e2[_0x15bb74(0xb3)](_0x15bb74(0xba)),_0x1025b2=_0x32d1e2[_0x15bb74(0xb2)](_0x15bb74(0xbc)),_0x446803=[_0x3b2a1a>0x0,Boolean(_0x577f16),_0x1025b2>0x0]['filter'](Boolean);if(_0x446803[_0x15bb74(0xa6)]===0x0)throw CliErrors[_0x15bb74(0xa8)](_0x15bb74(0x95));if(_0x446803['length']>0x1)throw CliErrors['validation']('Use\x20only\x20one\x20of\x20--id,\x20--code,\x20or\x20--dbid.');},async 'dryRun'(_0x5d74b0){const _0x47536f=a61_0x197026,_0x25cee0=await resolveTargets(_0x5d74b0);return{'method':_0x47536f(0x98),'url':_0x47536f(0xc3),'body':{'appCode':_0x5d74b0[_0x47536f(0x9e)],'count':_0x25cee0['length'],'datasets':_0x25cee0},'description':_0x47536f(0xa4)+_0x25cee0[_0x47536f(0xa6)]+_0x47536f(0xa1)};},async 'execute'(_0x206e73){const _0xe8835=a61_0x197026;if(!_0x206e73[_0xe8835(0xb0)]('confirm'))throw CliErrors[_0xe8835(0xa8)](_0xe8835(0x93),'Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm\x20when\x20the\x20target\x20list\x20is\x20correct.');const _0x1a9263=await resolveTargets(_0x206e73),_0x36efe9=[],_0x3f9d4f=[];for(const _0xaf5f22 of _0x1a9263){try{await deleteDataset(_0x206e73['appCode'],_0xaf5f22['id']),_0x36efe9[_0xe8835(0xa3)](_0xaf5f22);}catch(_0x10a476){_0x3f9d4f[_0xe8835(0xa3)]({..._0xaf5f22,'error':_0x10a476 instanceof Error?_0x10a476[_0xe8835(0xc4)]:String(_0x10a476)});}}if(_0x3f9d4f[_0xe8835(0xa6)]>0x0)return{'ok':![],'data':{'requested':_0x1a9263['length'],'deletedCount':_0x36efe9[_0xe8835(0xa6)],'failedCount':_0x3f9d4f[_0xe8835(0xa6)],'deleted':_0x36efe9,'failed':_0x3f9d4f},'message':_0xe8835(0xac)+_0x36efe9['length']+'/'+_0x1a9263[_0xe8835(0xa6)]+_0xe8835(0x92)+_0x3f9d4f[_0xe8835(0xa6)]+_0xe8835(0xb8)};return{'ok':!![],'data':{'requested':_0x1a9263['length'],'deletedCount':_0x36efe9[_0xe8835(0xa6)],'deleted':_0x36efe9},'message':_0xe8835(0xac)+_0x36efe9[_0xe8835(0xa6)]+_0xe8835(0xa0)};}};async function resolveTargets(_0x1fda1e){const _0x115b2f=a61_0x197026,_0x43afe0=_0x1fda1e['num']('id'),_0x19fa02=_0x1fda1e['str'](_0x115b2f(0xba)),_0x54d9b4=_0x1fda1e['num'](_0x115b2f(0xbc));let _0x5c7ea1;_0x19fa02?(_0x5c7ea1=await listDatasets(_0x1fda1e[_0x115b2f(0x9e)],{'code':_0x19fa02}),_0x5c7ea1=_0x5c7ea1[_0x115b2f(0x9d)](_0x32cd07=>_0x32cd07[_0x115b2f(0xba)]===_0x19fa02)):(_0x5c7ea1=await listDatasets(_0x1fda1e[_0x115b2f(0x9e)]),_0x43afe0>0x0&&(_0x5c7ea1=_0x5c7ea1[_0x115b2f(0x9d)](_0x42da2b=>_0x42da2b['id']===_0x43afe0)),_0x54d9b4>0x0&&(_0x5c7ea1=_0x5c7ea1[_0x115b2f(0x9d)](_0x4aa72d=>_0x4aa72d[_0x115b2f(0xae)]?.[_0x115b2f(0xc1)]===_0x54d9b4)));const _0x38186f=[];for(const _0x49e0fa of _0x5c7ea1){const _0x175745=await getDatasetDetail(_0x49e0fa[_0x115b2f(0xba)]),_0x1699f4=Array['isArray'](_0x175745[_0x115b2f(0x9b)])?_0x175745[_0x115b2f(0x9b)][_0x115b2f(0x9d)](_0x310e6b=>_0x310e6b!=null&&typeof _0x310e6b===_0x115b2f(0xc0)&&_0x310e6b['deleted']!==!![]):[];_0x38186f[_0x115b2f(0xa3)](normalizeTarget(_0x49e0fa,_0x1699f4[_0x115b2f(0xa6)]));}if(_0x38186f[_0x115b2f(0xa6)]===0x0){const _0x5e43b3=_0x19fa02||(_0x43afe0>0x0?_0x115b2f(0xab)+_0x43afe0:_0x115b2f(0xb7)+_0x54d9b4);throw CliErrors[_0x115b2f(0xa8)]('No\x20undeleted\x20dataset\x20found\x20for\x20'+_0x5e43b3+'.');}const _0x44ad96=_0x1fda1e[_0x115b2f(0xb2)](_0x115b2f(0xa2));if(_0x44ad96>0x0&&_0x38186f[_0x115b2f(0xa6)]!==_0x44ad96)throw CliErrors['validation'](_0x115b2f(0x97)+_0x38186f['length']+_0x115b2f(0xb9)+_0x44ad96+'.');return _0x38186f;}function normalizeTarget(_0x144f38,_0x5aae98){const _0x436c0a=a61_0x197026,_0x45e7a3=_0x144f38[_0x436c0a(0xae)]??{};return{'id':_0x144f38['id'],'code':_0x144f38[_0x436c0a(0xba)],'name':_0x144f38['name'],'description':_0x144f38['description'],'source':_0x144f38[_0x436c0a(0xb4)],'dbId':_0x45e7a3['dbId'],'dbName':_0x45e7a3[_0x436c0a(0xa9)],'tableName':_0x45e7a3['tableName'],'relatedPageCount':_0x5aae98};}
1
+ const a61_0x57d2be=a61_0x448b;(function(_0xf60d9,_0x6b55da){const _0x31222e=a61_0x448b,_0xcbf9be=_0xf60d9();while(!![]){try{const _0x3813e1=parseInt(_0x31222e(0x164))/0x1+-parseInt(_0x31222e(0x165))/0x2+-parseInt(_0x31222e(0x162))/0x3+-parseInt(_0x31222e(0x150))/0x4*(parseInt(_0x31222e(0x179))/0x5)+parseInt(_0x31222e(0x17a))/0x6+-parseInt(_0x31222e(0x17b))/0x7+-parseInt(_0x31222e(0x168))/0x8*(-parseInt(_0x31222e(0x152))/0x9);if(_0x3813e1===_0x6b55da)break;else _0xcbf9be['push'](_0xcbf9be['shift']());}catch(_0x62ac2c){_0xcbf9be['push'](_0xcbf9be['shift']());}}}(a61_0x1e0f,0xb2b04));import{deleteDataset,getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a61_0x1e0f(){const _0x59bdec=['--confirm\x20is\x20required\x20to\x20delete\x20datasets.','appCode','POST','push','dataset','source','One\x20of\x20--id,\x20--code,\x20or\x20--dbid\x20is\x20required.','relatedPageInfoList','dbid','bool','confirm','code','\x20failed','high-risk-write','message','3248502ilDRag','description','396613wBHvIU','868466oxlQIB','num','Would\x20delete\x20','4827752acXIhw','dbId','boolean','str','isArray','name','id=','Delete\x20dataset\x20metadata\x20by\x20id/code\x20or\x20all\x20datasets\x20under\x20a\x20db\x20id','\x20dataset(s);\x20','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm\x20when\x20the\x20target\x20list\x20is\x20correct.','Matched\x20','\x20dataset(s).\x20This\x20only\x20deletes\x20platform\x20dataset\x20metadata\x20and\x20related\x20page/menu\x20records,\x20not\x20physical\x20databases\x20or\x20tables.','dbid=','number','validation','dbtableConfig','dbName','921280SNIfxh','4657374eWjZBu','2915241WecGaK','length','filter','Deleted\x20','No\x20undeleted\x20dataset\x20found\x20for\x20','\x20dataset(s)','Use\x20only\x20one\x20of\x20--id,\x20--code,\x20or\x20--dbid.','expected-count','Delete\x20all\x20datasets\x20under\x20this\x20database\x20connection\x20id','20ONagXZ','\x20dataset(s),\x20but\x20--expected-count\x20is\x20','36KBaoaM'];a61_0x1e0f=function(){return _0x59bdec;};return a61_0x1e0f();}function a61_0x448b(_0x17b883,_0x50a1fe){_0x17b883=_0x17b883-0x14d;const _0x1e0f5b=a61_0x1e0f();let _0x448b71=_0x1e0f5b[_0x17b883];return _0x448b71;}import{APPCODE_FLAG_OPTIONAL,CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';const DATASET_ID_FLAG={'name':'id','type':a61_0x57d2be(0x175),'description':'Dataset\x20id'},DBID_FLAG={'name':a61_0x57d2be(0x15b),'type':a61_0x57d2be(0x175),'description':a61_0x57d2be(0x14f)},CONFIRM_FLAG={'name':a61_0x57d2be(0x15d),'type':a61_0x57d2be(0x16a),'description':'Required\x20to\x20execute\x20dataset\x20deletion'},EXPECTED_COUNT_FLAG={'name':a61_0x57d2be(0x14e),'type':a61_0x57d2be(0x175),'description':'Abort\x20unless\x20the\x20matched\x20dataset\x20count\x20equals\x20this\x20value'};export const datasetDelete={'service':a61_0x57d2be(0x157),'command':'delete','description':a61_0x57d2be(0x16f),'risk':a61_0x57d2be(0x160),'flags':[DATASET_ID_FLAG,CODE_FLAG_OPTIONAL,DBID_FLAG,CONFIRM_FLAG,EXPECTED_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x5af07e){const _0xbfb328=a61_0x57d2be,_0x3dd1cc=_0x5af07e['num']('id'),_0x1e4361=_0x5af07e[_0xbfb328(0x16b)]('code'),_0x11aa2e=_0x5af07e['num'](_0xbfb328(0x15b)),_0x14016a=[_0x3dd1cc>0x0,Boolean(_0x1e4361),_0x11aa2e>0x0]['filter'](Boolean);if(_0x14016a[_0xbfb328(0x17c)]===0x0)throw CliErrors[_0xbfb328(0x176)](_0xbfb328(0x159));if(_0x14016a[_0xbfb328(0x17c)]>0x1)throw CliErrors['validation'](_0xbfb328(0x14d));},async 'dryRun'(_0x2a2f47){const _0x2d5c3d=a61_0x57d2be,_0xf3546d=await resolveTargets(_0x2a2f47);return{'method':_0x2d5c3d(0x155),'url':'/smartapi/dataset/delete-dataset','body':{'appCode':_0x2a2f47['appCode'],'count':_0xf3546d[_0x2d5c3d(0x17c)],'datasets':_0xf3546d},'description':_0x2d5c3d(0x167)+_0xf3546d[_0x2d5c3d(0x17c)]+_0x2d5c3d(0x173)};},async 'execute'(_0x135f24){const _0x4cc326=a61_0x57d2be;if(!_0x135f24[_0x4cc326(0x15c)]('confirm'))throw CliErrors['validation'](_0x4cc326(0x153),_0x4cc326(0x171));const _0x203d86=await resolveTargets(_0x135f24),_0x23a194=[],_0x3179ba=[];for(const _0x56b615 of _0x203d86){try{await deleteDataset(_0x135f24['appCode'],_0x56b615['id']),_0x23a194['push'](_0x56b615);}catch(_0x27bb7c){_0x3179ba[_0x4cc326(0x156)]({..._0x56b615,'error':_0x27bb7c instanceof Error?_0x27bb7c[_0x4cc326(0x161)]:String(_0x27bb7c)});}}if(_0x3179ba[_0x4cc326(0x17c)]>0x0)return{'ok':![],'data':{'requested':_0x203d86[_0x4cc326(0x17c)],'deletedCount':_0x23a194['length'],'failedCount':_0x3179ba['length'],'deleted':_0x23a194,'failed':_0x3179ba},'message':'Deleted\x20'+_0x23a194['length']+'/'+_0x203d86[_0x4cc326(0x17c)]+_0x4cc326(0x170)+_0x3179ba[_0x4cc326(0x17c)]+_0x4cc326(0x15f)};return{'ok':!![],'data':{'requested':_0x203d86[_0x4cc326(0x17c)],'deletedCount':_0x23a194[_0x4cc326(0x17c)],'deleted':_0x23a194},'message':_0x4cc326(0x17e)+_0x23a194['length']+_0x4cc326(0x180)};}};async function resolveTargets(_0x2cdc43){const _0x53d1f2=a61_0x57d2be,_0x1258ea=_0x2cdc43[_0x53d1f2(0x166)]('id'),_0x58c035=_0x2cdc43[_0x53d1f2(0x16b)](_0x53d1f2(0x15e)),_0x581bd2=_0x2cdc43[_0x53d1f2(0x166)](_0x53d1f2(0x15b));let _0x49755d;_0x58c035?(_0x49755d=await listDatasets(_0x2cdc43[_0x53d1f2(0x154)],{'code':_0x58c035}),_0x49755d=_0x49755d['filter'](_0x24379c=>_0x24379c['code']===_0x58c035)):(_0x49755d=await listDatasets(_0x2cdc43[_0x53d1f2(0x154)]),_0x1258ea>0x0&&(_0x49755d=_0x49755d[_0x53d1f2(0x17d)](_0x3290a6=>_0x3290a6['id']===_0x1258ea)),_0x581bd2>0x0&&(_0x49755d=_0x49755d[_0x53d1f2(0x17d)](_0x224b57=>_0x224b57[_0x53d1f2(0x177)]?.[_0x53d1f2(0x169)]===_0x581bd2)));const _0x3e55a8=[];for(const _0x389565 of _0x49755d){const _0x282a9f=await getDatasetDetail(_0x389565[_0x53d1f2(0x15e)]),_0x565d44=Array[_0x53d1f2(0x16c)](_0x282a9f[_0x53d1f2(0x15a)])?_0x282a9f[_0x53d1f2(0x15a)][_0x53d1f2(0x17d)](_0x2071b2=>_0x2071b2!=null&&typeof _0x2071b2==='object'&&_0x2071b2['deleted']!==!![]):[];_0x3e55a8['push'](normalizeTarget(_0x389565,_0x565d44[_0x53d1f2(0x17c)]));}if(_0x3e55a8[_0x53d1f2(0x17c)]===0x0){const _0xb296d1=_0x58c035||(_0x1258ea>0x0?_0x53d1f2(0x16e)+_0x1258ea:_0x53d1f2(0x174)+_0x581bd2);throw CliErrors[_0x53d1f2(0x176)](_0x53d1f2(0x17f)+_0xb296d1+'.');}const _0x30ef1d=_0x2cdc43[_0x53d1f2(0x166)](_0x53d1f2(0x14e));if(_0x30ef1d>0x0&&_0x3e55a8[_0x53d1f2(0x17c)]!==_0x30ef1d)throw CliErrors[_0x53d1f2(0x176)](_0x53d1f2(0x172)+_0x3e55a8['length']+_0x53d1f2(0x151)+_0x30ef1d+'.');return _0x3e55a8;}function normalizeTarget(_0x5deaf6,_0x2e698a){const _0x262fbb=a61_0x57d2be,_0x24b730=_0x5deaf6['dbtableConfig']??{};return{'id':_0x5deaf6['id'],'code':_0x5deaf6['code'],'name':_0x5deaf6[_0x262fbb(0x16d)],'description':_0x5deaf6[_0x262fbb(0x163)],'source':_0x5deaf6[_0x262fbb(0x158)],'dbId':_0x24b730[_0x262fbb(0x169)],'dbName':_0x24b730[_0x262fbb(0x178)],'tableName':_0x24b730['tableName'],'relatedPageCount':_0x2e698a};}
@@ -1 +1 @@
1
- const a62_0x25fb97=a62_0x3159;(function(_0x4ea104,_0x43cf95){const _0x389302=a62_0x3159,_0x4407d0=_0x4ea104();while(!![]){try{const _0x3be340=-parseInt(_0x389302(0x97))/0x1+parseInt(_0x389302(0x9b))/0x2*(-parseInt(_0x389302(0xd5))/0x3)+-parseInt(_0x389302(0xd7))/0x4*(parseInt(_0x389302(0xad))/0x5)+parseInt(_0x389302(0x91))/0x6*(parseInt(_0x389302(0xbc))/0x7)+parseInt(_0x389302(0xa8))/0x8+parseInt(_0x389302(0xb3))/0x9*(parseInt(_0x389302(0x85))/0xa)+parseInt(_0x389302(0xc6))/0xb*(parseInt(_0x389302(0x9e))/0xc);if(_0x3be340===_0x43cf95)break;else _0x4407d0['push'](_0x4407d0['shift']());}catch(_0x51734a){_0x4407d0['push'](_0x4407d0['shift']());}}}(a62_0x1104,0x1f436));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function normalizeField(_0xb656a7){const _0x2a4b80=a62_0x3159;if(_0xb656a7['deleted'])return null;const _0x18b990=Boolean(_0xb656a7['displayName']!==undefined||_0xb656a7['doType']!==undefined);let _0x2d9c99={};if(!_0x18b990&&typeof _0xb656a7[_0x2a4b80(0xbf)]===_0x2a4b80(0xb2))try{_0x2d9c99=JSON[_0x2a4b80(0xd3)](_0xb656a7[_0x2a4b80(0xbf)]);}catch{}const _0x4aaa5a=_0x18b990?_0xb656a7[_0x2a4b80(0xa1)]:_0xb656a7[_0x2a4b80(0xa2)],_0x4f3265=_0x18b990?_0xb656a7[_0x2a4b80(0x95)]:_0xb656a7[_0x2a4b80(0xa1)],_0x292ef8=_0x18b990?_0xb656a7[_0x2a4b80(0xbe)]:_0xb656a7[_0x2a4b80(0x89)]||_0xb656a7[_0x2a4b80(0x9c)],_0x4daaff=_0x18b990?_0xb656a7['pkField']===!![]:_0x2d9c99[_0x2a4b80(0xd6)]===!![],_0x27f42c=_0x18b990?_0xb656a7[_0x2a4b80(0x8a)]===!![]:_0x2d9c99[_0x2a4b80(0x8a)]===!![],_0x475762=_0x18b990?_0xb656a7[_0x2a4b80(0x88)]??null:_0x2d9c99['options']??null,_0x397f74={'name':_0x4aaa5a,'displayName':_0x4f3265||_0x4aaa5a,'type':_0x292ef8,'dbType':_0xb656a7[_0x2a4b80(0xce)],'pk':_0x4daaff,'required':_0x27f42c,'deprecated':_0xb656a7[_0x2a4b80(0x9d)]===!![],'description':_0xb656a7[_0x2a4b80(0x8b)]||undefined};return Array['isArray'](_0x475762)&&_0x475762[_0x2a4b80(0xb6)]>0x0&&(_0x397f74[_0x2a4b80(0x88)]=_0x475762),_0x397f74;}function parseJsonMaybe(_0x10093a){const _0x4248da=a62_0x3159;if(typeof _0x10093a!==_0x4248da(0xb2))return _0x10093a;try{return JSON['parse'](_0x10093a);}catch{return _0x10093a;}}function normalizeOperationEntry(_0x2cb379,_0x1e7107){const _0x2cf7ee=a62_0x3159;if(!_0x1e7107||typeof _0x1e7107!==_0x2cf7ee(0xb5))return null;if(!_0x1e7107[_0x2cf7ee(0x8c)]||!_0x1e7107[_0x2cf7ee(0xaa)])return null;const _0x4b2cf8={'name':_0x2cb379,'method':_0x1e7107[_0x2cf7ee(0x8c)],'path':_0x1e7107[_0x2cf7ee(0xaa)]};if(_0x1e7107[_0x2cf7ee(0xc2)])_0x4b2cf8[_0x2cf7ee(0xc2)]=_0x1e7107[_0x2cf7ee(0xc2)];if(_0x1e7107[_0x2cf7ee(0xd2)]!=null){const _0x4a3adb=parseJsonMaybe(_0x1e7107[_0x2cf7ee(0xd2)]);_0x4b2cf8[_0x2cf7ee(0xd2)]=_0x4a3adb;}if(_0x1e7107[_0x2cf7ee(0xd1)]!=null){const _0x1da295=parseJsonMaybe(_0x1e7107[_0x2cf7ee(0xd1)]);_0x4b2cf8[_0x2cf7ee(0xd1)]=_0x1da295;}if(_0x1e7107[_0x2cf7ee(0xa9)]!=null)_0x4b2cf8['beforeScriptId']=_0x1e7107['beforeScriptId'];if(_0x1e7107['afterScriptId']!=null)_0x4b2cf8[_0x2cf7ee(0xae)]=_0x1e7107[_0x2cf7ee(0xae)];if(Array['isArray'](_0x1e7107[_0x2cf7ee(0xa5)]))_0x4b2cf8[_0x2cf7ee(0xa5)]=_0x1e7107[_0x2cf7ee(0xa5)];if(Array[_0x2cf7ee(0xab)](_0x1e7107[_0x2cf7ee(0x99)]))_0x4b2cf8['responseFields']=_0x1e7107[_0x2cf7ee(0x99)];return _0x4b2cf8;}function a62_0x3159(_0x52730e,_0x560b4c){_0x52730e=_0x52730e-0x85;const _0x110455=a62_0x1104();let _0x3159ab=_0x110455[_0x52730e];return _0x3159ab;}function summarizeDbtable(_0x198e8b){const _0x4e26d1=a62_0x3159,_0x3b8521={},_0x49f31a=[_0x4e26d1(0xa4),_0x4e26d1(0xd9),_0x4e26d1(0xa0),_0x4e26d1(0xc9),_0x4e26d1(0xd6),_0x4e26d1(0xac),_0x4e26d1(0x98),_0x4e26d1(0xb9),_0x4e26d1(0xba),'creatorIdField','creatorNameField',_0x4e26d1(0x92),_0x4e26d1(0xc0),'labelField',_0x4e26d1(0x8f)];for(const _0x24e919 of _0x49f31a){if(_0x198e8b[_0x24e919]!==undefined)_0x3b8521[_0x24e919]=_0x198e8b[_0x24e919];}return typeof _0x3b8521[_0x4e26d1(0xac)]===_0x4e26d1(0xb2)&&_0x3b8521[_0x4e26d1(0xac)]['length']>0x0&&(_0x3b8521[_0x4e26d1(0x9a)]=_0x3b8521[_0x4e26d1(0xac)][_0x4e26d1(0xc8)](',')[_0x4e26d1(0xb1)](_0x42e7db=>_0x42e7db[_0x4e26d1(0xa3)]())[_0x4e26d1(0x86)](Boolean)),_0x3b8521;}function normalizeRelatedPages(_0x2db560){const _0x11c255=a62_0x3159;if(!Array['isArray'](_0x2db560))return[];return _0x2db560['filter'](_0x44e137=>_0x44e137&&typeof _0x44e137===_0x11c255(0xb5))[_0x11c255(0xb1)](_0x1a6ff9=>({'id':_0x1a6ff9['id'],'type':_0x1a6ff9['type'],'code':_0x1a6ff9[_0x11c255(0xa2)],'title':_0x1a6ff9['title'],'deleted':_0x1a6ff9[_0x11c255(0xc5)]===!![]}));}export const datasetDetail={'service':a62_0x25fb97(0xa7),'command':'detail','description':a62_0x25fb97(0x94),'risk':'read','flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'alias','type':a62_0x25fb97(0xb2),'description':a62_0x25fb97(0x87)}],async 'execute'(_0x2769e1){const _0x37d995=a62_0x25fb97,_0xf8f1c2=await getDatasetDetail(_0x2769e1[_0x37d995(0xda)](_0x37d995(0xa2))),_0x1349c6=Array['isArray'](_0xf8f1c2['fields'])?_0xf8f1c2[_0x37d995(0xd8)]:Array[_0x37d995(0xab)](_0xf8f1c2[_0x37d995(0xb4)])?_0xf8f1c2[_0x37d995(0xb4)]:[],_0x555de9=_0x1349c6[_0x37d995(0xb1)](_0x5ecf58=>normalizeField(_0x5ecf58))[_0x37d995(0x86)](_0x214348=>_0x214348!==null),_0x5bac61=_0xf8f1c2[_0x37d995(0xb8)]??{},_0x1df6c8=[];for(const [_0x2478a0,_0x115e7d]of Object[_0x37d995(0xbb)](_0x5bac61)){const _0x1d0d48=normalizeOperationEntry(_0x2478a0,_0x115e7d);if(_0x1d0d48)_0x1df6c8[_0x37d995(0xcd)](_0x1d0d48);}const _0x178f8b=_0xf8f1c2[_0x37d995(0x93)]??{},_0x2a04b6=_0xf8f1c2[_0x37d995(0xa7)]??{},_0x50b1e4=_0x178f8b[_0x37d995(0xa4)]!=null?{'id':_0x178f8b[_0x37d995(0xa4)],'name':_0x178f8b[_0x37d995(0xd9)]??null}:undefined;let _0x351480;return typeof _0xf8f1c2[_0x37d995(0xbf)]===_0x37d995(0xb2)&&(_0x351480=parseJsonMaybe(_0xf8f1c2['extend'])),{'ok':!![],'data':{'id':_0xf8f1c2['modelId']??_0xf8f1c2['id'],'name':_0xf8f1c2[_0x37d995(0xa1)],'code':_0xf8f1c2[_0x37d995(0xcb)]||_0xf8f1c2['code'],'doVersion':_0xf8f1c2[_0x37d995(0xb0)],'description':_0xf8f1c2[_0x37d995(0x8b)]||_0x2a04b6[_0x37d995(0xa6)]||undefined,'source':_0xf8f1c2[_0x37d995(0xbd)]||_0x2a04b6[_0x37d995(0xc1)],'table':_0x178f8b[_0x37d995(0xa0)]||_0x2a04b6[_0x37d995(0xa0)],'datasetKey':_0x178f8b['datasetKey'],'pk':_0x178f8b[_0x37d995(0xd6)],'db':_0x50b1e4,'dbtable':summarizeDbtable(_0x178f8b),'fields':_0x555de9,'operations':_0x1df6c8,'indexes':Array[_0x37d995(0xab)](_0x2a04b6[_0x37d995(0x96)])?_0x2a04b6[_0x37d995(0x96)]:[],'relations':Array[_0x37d995(0xab)](_0xf8f1c2[_0x37d995(0xb7)])?_0xf8f1c2[_0x37d995(0xb7)][_0x37d995(0xb1)](_0x357d5d=>({..._0x357d5d[_0x37d995(0xcc)]!=null?{'relationId':_0x357d5d[_0x37d995(0xcc)]}:{},'fromDataset':_0xf8f1c2[_0x37d995(0xa1)],'fromCode':_0xf8f1c2[_0x37d995(0xcb)]||_0xf8f1c2[_0x37d995(0xa2)],'fromTable':_0x178f8b[_0x37d995(0xa0)]||_0x2a04b6[_0x37d995(0xa0)],'fromField':_0x357d5d[_0x37d995(0xca)],'toDataset':_0x357d5d[_0x37d995(0xd4)],'toCode':_0x357d5d['toDatasetCode'],'toTable':_0x357d5d[_0x37d995(0xcf)],'toField':_0x357d5d[_0x37d995(0x8d)],'labelField':_0x357d5d[_0x37d995(0xc4)]||undefined,'cardinality':_0x357d5d[_0x37d995(0x9f)]||undefined,'bizRelationType':_0x357d5d[_0x37d995(0xd0)]==='main_sub'?_0x37d995(0xc3):null})):[],'relatedPages':normalizeRelatedPages(_0xf8f1c2[_0x37d995(0x90)]),...Array[_0x37d995(0xab)](_0xf8f1c2[_0x37d995(0x8e)])?{'columnCodeListWithDeleted':_0xf8f1c2[_0x37d995(0x8e)]}:{},'formatRules':Array[_0x37d995(0xab)](_0xf8f1c2[_0x37d995(0xc7)])?_0xf8f1c2[_0x37d995(0xc7)]:[],'validateRules':Array['isArray'](_0xf8f1c2[_0x37d995(0xaf)])?_0xf8f1c2[_0x37d995(0xaf)]:[],..._0x351480!==undefined?{'extend':_0x351480}:{},'stats':{'fieldCount':_0x555de9[_0x37d995(0xb6)],'operationCount':_0x1df6c8[_0x37d995(0xb6)]}}};}};function a62_0x1104(){const _0x19e752=['bizRelationType','responseBody','requestBody','parse','toDatasetName','19677PBkRRg','pkField','8DbtQqU','fields','dbName','str','1900eyKzYy','filter','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','options','type','required','description','method','toField','columnCodeListWithDeleted','dblinkInfoDTO','relatedPageInfoList','6TVqDaF','modifierIdField','dbtableConfig','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','displayName','indexes','174963UMBRHn','logicField','responseFields','allFieldNames','10IDWpMV','dataType','deprecated','360XOrmjC','cardinality','tableName','name','code','trim','dbId','requestFields','tableComment','dataset','1364328GjhUED','beforeScriptId','path','isArray','allFields','504655foChLJ','afterScriptId','validateRules','doVersion','map','string','63DrKlSq','properties','object','length','relations','operations','createTimeField','updateTimeField','entries','714721iIZaPn','source','doType','extend','modifierNameField','sourceType','host','main_sub','toFieldLabel','deleted','96690xqEmPE','formatRules','split','datasetKey','fromField','modelCode','relationId','push','dbType','toTableName'];a62_0x1104=function(){return _0x19e752;};return a62_0x1104();}
1
+ const a62_0x3cb508=a62_0x39b3;(function(_0x2646d3,_0x2e3f06){const _0x4d7f82=a62_0x39b3,_0x5b8871=_0x2646d3();while(!![]){try{const _0x2ee69a=-parseInt(_0x4d7f82(0x112))/0x1+parseInt(_0x4d7f82(0x124))/0x2*(-parseInt(_0x4d7f82(0x141))/0x3)+parseInt(_0x4d7f82(0x106))/0x4*(parseInt(_0x4d7f82(0x114))/0x5)+parseInt(_0x4d7f82(0x119))/0x6*(parseInt(_0x4d7f82(0x14d))/0x7)+parseInt(_0x4d7f82(0x128))/0x8*(-parseInt(_0x4d7f82(0xfe))/0x9)+parseInt(_0x4d7f82(0x102))/0xa*(parseInt(_0x4d7f82(0x139))/0xb)+parseInt(_0x4d7f82(0x12d))/0xc*(parseInt(_0x4d7f82(0x10d))/0xd);if(_0x2ee69a===_0x2e3f06)break;else _0x5b8871['push'](_0x5b8871['shift']());}catch(_0x505c7c){_0x5b8871['push'](_0x5b8871['shift']());}}}(a62_0x40d5,0x8e44c));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function normalizeField(_0x3b951a){const _0x731c54=a62_0x39b3;if(_0x3b951a[_0x731c54(0x121)])return null;const _0x271b74=Boolean(_0x3b951a['displayName']!==undefined||_0x3b951a[_0x731c54(0x116)]!==undefined);let _0x2b7323={};if(!_0x271b74&&typeof _0x3b951a[_0x731c54(0x10b)]===_0x731c54(0x105))try{_0x2b7323=JSON[_0x731c54(0x103)](_0x3b951a[_0x731c54(0x10b)]);}catch{}const _0x4f59a4=_0x271b74?_0x3b951a[_0x731c54(0x10c)]:_0x3b951a[_0x731c54(0x13f)],_0x4ed3de=_0x271b74?_0x3b951a[_0x731c54(0x132)]:_0x3b951a[_0x731c54(0x10c)],_0x18f51c=_0x271b74?_0x3b951a[_0x731c54(0x116)]:_0x3b951a[_0x731c54(0x12e)]||_0x3b951a[_0x731c54(0x10a)],_0x57d2fc=_0x271b74?_0x3b951a[_0x731c54(0x12b)]===!![]:_0x2b7323[_0x731c54(0x12b)]===!![],_0x54bb55=_0x271b74?_0x3b951a['required']===!![]:_0x2b7323[_0x731c54(0x11f)]===!![],_0x55235c=_0x271b74?_0x3b951a['options']??null:_0x2b7323['options']??null,_0x27266f={'name':_0x4f59a4,'displayName':_0x4ed3de||_0x4f59a4,'type':_0x18f51c,'dbType':_0x3b951a['dbType'],'pk':_0x57d2fc,'required':_0x54bb55,'deprecated':_0x3b951a[_0x731c54(0x14e)]===!![],'description':_0x3b951a['description']||undefined};return Array[_0x731c54(0x142)](_0x55235c)&&_0x55235c[_0x731c54(0x126)]>0x0&&(_0x27266f[_0x731c54(0x150)]=_0x55235c),_0x27266f;}function a62_0x39b3(_0x585a4d,_0x5aabd7){_0x585a4d=_0x585a4d-0xfd;const _0x40d590=a62_0x40d5();let _0x39b369=_0x40d590[_0x585a4d];return _0x39b369;}function parseJsonMaybe(_0x40bb1c){const _0x1d1a6f=a62_0x39b3;if(typeof _0x40bb1c!==_0x1d1a6f(0x105))return _0x40bb1c;try{return JSON[_0x1d1a6f(0x103)](_0x40bb1c);}catch{return _0x40bb1c;}}function normalizeOperationEntry(_0xafa30c,_0x20d692){const _0x27314d=a62_0x39b3;if(!_0x20d692||typeof _0x20d692!==_0x27314d(0x135))return null;if(!_0x20d692[_0x27314d(0x101)]||!_0x20d692[_0x27314d(0x129)])return null;const _0xc97c20={'name':_0xafa30c,'method':_0x20d692['method'],'path':_0x20d692['path']};if(_0x20d692[_0x27314d(0x137)])_0xc97c20[_0x27314d(0x137)]=_0x20d692[_0x27314d(0x137)];if(_0x20d692[_0x27314d(0x10e)]!=null){const _0x11a2f1=parseJsonMaybe(_0x20d692[_0x27314d(0x10e)]);_0xc97c20[_0x27314d(0x10e)]=_0x11a2f1;}if(_0x20d692[_0x27314d(0x11e)]!=null){const _0x55c7f0=parseJsonMaybe(_0x20d692['responseBody']);_0xc97c20['responseBody']=_0x55c7f0;}if(_0x20d692[_0x27314d(0x134)]!=null)_0xc97c20[_0x27314d(0x134)]=_0x20d692['beforeScriptId'];if(_0x20d692[_0x27314d(0x149)]!=null)_0xc97c20['afterScriptId']=_0x20d692[_0x27314d(0x149)];if(Array['isArray'](_0x20d692[_0x27314d(0x140)]))_0xc97c20['requestFields']=_0x20d692[_0x27314d(0x140)];if(Array[_0x27314d(0x142)](_0x20d692[_0x27314d(0x120)]))_0xc97c20['responseFields']=_0x20d692[_0x27314d(0x120)];return _0xc97c20;}function summarizeDbtable(_0x28f4da){const _0x3a217a=a62_0x39b3,_0x1e5c3b={},_0x58ec07=['dbId',_0x3a217a(0x115),_0x3a217a(0x133),'datasetKey',_0x3a217a(0x12b),_0x3a217a(0xfd),_0x3a217a(0x10f),_0x3a217a(0x110),_0x3a217a(0xff),_0x3a217a(0x11a),_0x3a217a(0x109),_0x3a217a(0x13a),_0x3a217a(0x113),_0x3a217a(0x118),_0x3a217a(0x104)];for(const _0x24c11f of _0x58ec07){if(_0x28f4da[_0x24c11f]!==undefined)_0x1e5c3b[_0x24c11f]=_0x28f4da[_0x24c11f];}return typeof _0x1e5c3b[_0x3a217a(0xfd)]==='string'&&_0x1e5c3b[_0x3a217a(0xfd)][_0x3a217a(0x126)]>0x0&&(_0x1e5c3b['allFieldNames']=_0x1e5c3b[_0x3a217a(0xfd)]['split'](',')[_0x3a217a(0x130)](_0x259666=>_0x259666[_0x3a217a(0x127)]())['filter'](Boolean)),_0x1e5c3b;}function normalizeRelatedPages(_0x33ea73){const _0x26ee7b=a62_0x39b3;if(!Array[_0x26ee7b(0x142)](_0x33ea73))return[];return _0x33ea73[_0x26ee7b(0x117)](_0x452259=>_0x452259&&typeof _0x452259==='object')[_0x26ee7b(0x130)](_0x2376a1=>({'id':_0x2376a1['id'],'type':_0x2376a1[_0x26ee7b(0x12e)],'code':_0x2376a1[_0x26ee7b(0x13f)],'title':_0x2376a1['title'],'deleted':_0x2376a1[_0x26ee7b(0x121)]===!![]}));}export const datasetDetail={'service':a62_0x3cb508(0x12c),'command':a62_0x3cb508(0x123),'description':a62_0x3cb508(0x14a),'risk':a62_0x3cb508(0x108),'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a62_0x3cb508(0x13c),'type':'string','description':a62_0x3cb508(0x13b)}],async 'execute'(_0x41aebd){const _0x46f770=a62_0x3cb508,_0x2e8228=await getDatasetDetail(_0x41aebd['str'](_0x46f770(0x13f))),_0x3f5077=Array[_0x46f770(0x142)](_0x2e8228[_0x46f770(0x13e)])?_0x2e8228[_0x46f770(0x13e)]:Array[_0x46f770(0x142)](_0x2e8228[_0x46f770(0x107)])?_0x2e8228[_0x46f770(0x107)]:[],_0x3b4204=_0x3f5077['map'](_0x168c45=>normalizeField(_0x168c45))[_0x46f770(0x117)](_0x2f82a0=>_0x2f82a0!==null),_0x3f7d95=_0x2e8228[_0x46f770(0x12a)]??{},_0x1dec6e=[];for(const [_0x3106e1,_0x33f424]of Object['entries'](_0x3f7d95)){const _0x466755=normalizeOperationEntry(_0x3106e1,_0x33f424);if(_0x466755)_0x1dec6e[_0x46f770(0x14b)](_0x466755);}const _0xba1f1a=_0x2e8228[_0x46f770(0x136)]??{},_0x53eb30=_0x2e8228['dataset']??{},_0x1c799e=_0xba1f1a['dbId']!=null?{'id':_0xba1f1a[_0x46f770(0x14c)],'name':_0xba1f1a[_0x46f770(0x115)]??null}:undefined;let _0x14990c;return typeof _0x2e8228[_0x46f770(0x10b)]===_0x46f770(0x105)&&(_0x14990c=parseJsonMaybe(_0x2e8228['extend'])),{'ok':!![],'data':{'id':_0x2e8228[_0x46f770(0x111)]??_0x2e8228['id'],'name':_0x2e8228[_0x46f770(0x10c)],'code':_0x2e8228['modelCode']||_0x2e8228[_0x46f770(0x13f)],'doVersion':_0x2e8228['doVersion'],'description':_0x2e8228[_0x46f770(0x11b)]||_0x53eb30['tableComment']||undefined,'source':_0x2e8228[_0x46f770(0x131)]||_0x53eb30[_0x46f770(0x146)],'table':_0xba1f1a[_0x46f770(0x133)]||_0x53eb30[_0x46f770(0x133)],'datasetKey':_0xba1f1a[_0x46f770(0x122)],'pk':_0xba1f1a[_0x46f770(0x12b)],'db':_0x1c799e,'dbtable':summarizeDbtable(_0xba1f1a),'fields':_0x3b4204,'operations':_0x1dec6e,'indexes':Array[_0x46f770(0x142)](_0x53eb30['indexes'])?_0x53eb30['indexes']:[],'relations':Array['isArray'](_0x2e8228[_0x46f770(0x144)])?_0x2e8228[_0x46f770(0x144)]['map'](_0xb675c3=>({..._0xb675c3[_0x46f770(0x143)]!=null?{'relationId':_0xb675c3[_0x46f770(0x143)]}:{},'fromDataset':_0x2e8228[_0x46f770(0x10c)],'fromCode':_0x2e8228[_0x46f770(0x11c)]||_0x2e8228[_0x46f770(0x13f)],'fromTable':_0xba1f1a[_0x46f770(0x133)]||_0x53eb30[_0x46f770(0x133)],'fromField':_0xb675c3['fromField'],'toDataset':_0xb675c3[_0x46f770(0x138)],'toCode':_0xb675c3[_0x46f770(0x12f)],'toTable':_0xb675c3['toTableName'],'toField':_0xb675c3[_0x46f770(0x11d)],'labelField':_0xb675c3[_0x46f770(0x148)]||undefined,'cardinality':_0xb675c3[_0x46f770(0x125)]||undefined,'bizRelationType':_0xb675c3[_0x46f770(0x145)]===_0x46f770(0x100)?_0x46f770(0x100):null})):[],'relatedPages':normalizeRelatedPages(_0x2e8228['relatedPageInfoList']),...Array[_0x46f770(0x142)](_0x2e8228[_0x46f770(0x13d)])?{'columnCodeListWithDeleted':_0x2e8228[_0x46f770(0x13d)]}:{},'formatRules':Array[_0x46f770(0x142)](_0x2e8228[_0x46f770(0x14f)])?_0x2e8228[_0x46f770(0x14f)]:[],'validateRules':Array[_0x46f770(0x142)](_0x2e8228[_0x46f770(0x147)])?_0x2e8228[_0x46f770(0x147)]:[],..._0x14990c!==undefined?{'extend':_0x14990c}:{},'stats':{'fieldCount':_0x3b4204['length'],'operationCount':_0x1dec6e['length']}}};}};function a62_0x40d5(){const _0x2e1602=['modelCode','toField','responseBody','required','responseFields','deleted','datasetKey','detail','1143256mYwZsJ','cardinality','length','trim','40lHgnWu','path','operations','pkField','dataset','11722884JrxhLf','type','toDatasetCode','map','source','displayName','tableName','beforeScriptId','object','dbtableConfig','host','toDatasetName','66vmhwfF','modifierIdField','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','alias','columnCodeListWithDeleted','fields','code','requestFields','6CrDHHU','isArray','relationId','relations','bizRelationType','sourceType','validateRules','toFieldLabel','afterScriptId','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','push','dbId','14pfonPo','deprecated','formatRules','options','allFields','698715wtTPax','updateTimeField','main_sub','method','626660KuohmN','parse','dblinkInfoDTO','string','2136aeImIg','properties','read','creatorNameField','dataType','extend','name','13JCUlRU','requestBody','logicField','createTimeField','modelId','468822SWSZHt','modifierNameField','10070TkWmdS','dbName','doType','filter','labelField','463818pTOeNY','creatorIdField','description'];a62_0x40d5=function(){return _0x2e1602;};return a62_0x40d5();}
@@ -1 +1 @@
1
- const a63_0x56d1be=a63_0x524f;function a63_0x524f(_0x58b4b9,_0x61d27d){_0x58b4b9=_0x58b4b9-0x133;const _0x3eca5e=a63_0x3eca();let _0x524f27=_0x3eca5e[_0x58b4b9];return _0x524f27;}(function(_0x3e198,_0x4358c0){const _0x30e44f=a63_0x524f,_0x2b93b7=_0x3e198();while(!![]){try{const _0x26ce36=parseInt(_0x30e44f(0x151))/0x1*(-parseInt(_0x30e44f(0x145))/0x2)+-parseInt(_0x30e44f(0x158))/0x3+-parseInt(_0x30e44f(0x166))/0x4*(parseInt(_0x30e44f(0x14c))/0x5)+-parseInt(_0x30e44f(0x13c))/0x6+-parseInt(_0x30e44f(0x15f))/0x7*(parseInt(_0x30e44f(0x173))/0x8)+-parseInt(_0x30e44f(0x165))/0x9*(parseInt(_0x30e44f(0x138))/0xa)+-parseInt(_0x30e44f(0x13f))/0xb*(-parseInt(_0x30e44f(0x16e))/0xc);if(_0x26ce36===_0x4358c0)break;else _0x2b93b7['push'](_0x2b93b7['shift']());}catch(_0x4d72b9){_0x2b93b7['push'](_0x2b93b7['shift']());}}}(a63_0x3eca,0x2e1da));import{APPCODE_FLAG_OPTIONAL,CODE_FLAG}from'../../commands/common/flags.js';import{getDatasetDetail,updateDrivenData}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const MUTABLE_EXTEND_KEYS=new Set(),EXTEND_PATCH_REDIRECTS=new Map([[a63_0x56d1be(0x143),{'message':a63_0x56d1be(0x14b),'hint':a63_0x56d1be(0x142)}]]);export function parseJsonObjectFlag(_0x156f1d,_0x5abd25){const _0x265e8f=a63_0x56d1be;if(!_0x156f1d)return undefined;let _0x440812;try{_0x440812=JSON['parse'](_0x156f1d);}catch(_0x36b2ab){const _0x596bf5=_0x36b2ab instanceof Error?_0x36b2ab['message']:String(_0x36b2ab);throw CliErrors[_0x265e8f(0x16f)](_0x5abd25+_0x265e8f(0x167)+_0x596bf5);}if(!isPlainObject(_0x440812)||Array[_0x265e8f(0x153)](_0x440812))throw CliErrors[_0x265e8f(0x16f)](_0x5abd25+_0x265e8f(0x13a));return _0x440812;}export function validateExtendPatchKeys(_0x55660f){const _0x27aa7d=a63_0x56d1be,_0x5d8cd0=Object[_0x27aa7d(0x150)](_0x55660f);if(_0x5d8cd0[_0x27aa7d(0x14a)]===0x0)throw CliErrors[_0x27aa7d(0x16f)]('--patch-json\x20must\x20contain\x20at\x20least\x20one\x20key');for(const _0x26300d of _0x5d8cd0){const _0x3e25b3=EXTEND_PATCH_REDIRECTS[_0x27aa7d(0x15b)](_0x26300d);if(_0x3e25b3)throw CliErrors[_0x27aa7d(0x16f)](_0x3e25b3[_0x27aa7d(0x163)],_0x3e25b3[_0x27aa7d(0x15e)]);if(!MUTABLE_EXTEND_KEYS[_0x27aa7d(0x168)](_0x26300d))throw CliErrors[_0x27aa7d(0x16f)](_0x27aa7d(0x136)+_0x26300d,describeMutableExtendKeys());}}function describeMutableExtendKeys(){const _0x559873=a63_0x56d1be,_0x21372e=Array[_0x559873(0x14d)](MUTABLE_EXTEND_KEYS)[_0x559873(0x141)]();return _0x21372e[_0x559873(0x14a)]>0x0?_0x559873(0x13d)+_0x21372e[_0x559873(0x171)](',\x20'):_0x559873(0x15a);}export function applyExtendPatch(_0x44d90d,_0x1c76ac){const _0x4ad7f0=a63_0x56d1be;validateExtendPatchKeys(_0x1c76ac);const _0x2d12a5=deepClone(_0x44d90d),_0x4a4ffe=[];for(const [_0xe37441,_0x520277]of Object['entries'](_0x1c76ac)){const _0x2aaf43=_0x2d12a5[_0xe37441],_0x177565=deepClone(_0x520277);!deepEqual(_0x2aaf43,_0x177565)&&(_0x2d12a5[_0xe37441]=_0x177565,_0x4a4ffe[_0x4ad7f0(0x15c)](_0x4ad7f0(0x149)+_0xe37441));}return _0x4a4ffe[_0x4ad7f0(0x141)](),{'after':_0x2d12a5,'changedPaths':_0x4a4ffe,'changed':_0x4a4ffe['length']>0x0};}export function assertExpectation(_0x768de0,_0x2ef558){const _0x2b48f6=a63_0x56d1be;if(!_0x2ef558)return;for(const [_0x4f60bb,_0x9bfefb]of Object[_0x2b48f6(0x140)](_0x2ef558)){const _0x42a646=_0x768de0[_0x4f60bb];if(!deepEqual(_0x42a646,_0x9bfefb))throw CliErrors['validation']('Expectation\x20mismatch\x20at\x20extend.'+_0x4f60bb,_0x2b48f6(0x164)+JSON[_0x2b48f6(0x156)](_0x9bfefb)+',\x20actual\x20'+JSON[_0x2b48f6(0x156)](_0x42a646));}}export async function buildDatasetExtendUpdateResult({appCode:_0x249da9,input:_0x11c766,dryRun:_0xc1828f}){const _0x5294e6=a63_0x56d1be;validateInput(_0x11c766);const _0x28c99d=await getDatasetDetail(_0x11c766['code']),_0x3bc013=parseDatasetExtend(_0x28c99d[_0x5294e6(0x13b)]),_0x1acaff=deepClone(_0x3bc013[_0x5294e6(0x13e)]);assertExpectation(_0x1acaff,_0x11c766['expect']);const {after:_0x100843,changedPaths:_0x3d125c,changed:_0x38ae61}=applyExtendPatch(_0x1acaff,_0x11c766['patch']),_0x4c0ae2=summarizeDataset(_0x28c99d,_0x11c766[_0x5294e6(0x170)]);return _0x38ae61&&!_0xc1828f&&(_0x28c99d[_0x5294e6(0x13b)]=serializeDatasetExtend(_0x100843,_0x3bc013[_0x5294e6(0x14f)]),await updateDrivenData(_0x28c99d)),{'ok':!![],'data':{'appCode':_0x249da9,'selector':{'code':_0x11c766[_0x5294e6(0x170)]},'dataset':_0x4c0ae2,'dryRun':_0xc1828f,'changed':_0x38ae61,'changedPaths':_0x3d125c,'before':{'extend':_0x1acaff},'after':{'extend':_0x100843},'submitted':_0x38ae61&&!_0xc1828f},'message':_0x38ae61?_0xc1828f?'Dry-run:\x20dataset\x20extend\x20would\x20change\x20('+_0x3d125c[_0x5294e6(0x171)](',\x20')+')':_0x5294e6(0x175)+_0x3d125c['join'](',\x20')+')':'No\x20changes\x20for\x20dataset\x20extend'};}function a63_0x3eca(){const _0x39d51f=['621282KDLpLu','Allowed\x20keys:\x20','value','1106006mldttx','entries','sort','Use\x20`rabetbase\x20dataset\x20business-group-update`\x20to\x20update\x20business\x20model\x20groups.','businessGroup','tableName','2058GwTfCy','str','dbName','dbtableConfig','extend.','length','dataset\x20extend-update\x20does\x20not\x20support\x20businessGroup;\x20use\x20dataset\x20business-group-update','310HXJcWw','from','/smartapi/dataset/update-driven-data','shape','keys','225xBGZLV','modelCode','isArray','--expect-json','data','stringify','object','616545tMFCdM','patch-json','No\x20dataset\x20extend\x20patch\x20keys\x20are\x20currently\x20supported.','get','push','trim','hint','18613TvguIs','string','extend-update','Dataset\x20extend\x20must\x20be\x20valid\x20JSON\x20object:\x20','message','Expected\x20','54eevKar','11068TCKEey','\x20must\x20be\x20valid\x20JSON\x20object:\x20','has','parse','Dataset\x20extend\x20must\x20be\x20a\x20JSON\x20object','expect-json','appCode','dbId','156LACusj','validation','code','join','patch','376IrVIxy','JSON\x20object\x20of\x20expected\x20current\x20extend\x20values;\x20mismatch\x20aborts\x20without\x20writing','Updated\x20dataset\x20extend\x20(','modelId','dataset','datasetCode','Unsupported\x20patch\x20key:\x20','Patch\x20dataset\x20top-level\x20extend\x20safely','468490ZdMHQL','datasetId','\x20must\x20be\x20a\x20JSON\x20object','extend'];a63_0x3eca=function(){return _0x39d51f;};return a63_0x3eca();}export const datasetExtendUpdate={'service':a63_0x56d1be(0x134),'command':a63_0x56d1be(0x161),'description':a63_0x56d1be(0x137),'risk':'write','flags':[CODE_FLAG,{'name':'patch-json','type':'string','required':!![],'description':'JSON\x20object\x20patch\x20for\x20dataset\x20top-level\x20extend;\x20current\x20allowlist\x20is\x20empty'},{'name':a63_0x56d1be(0x16b),'type':a63_0x56d1be(0x160),'required':![],'description':a63_0x56d1be(0x174)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x5bd4b1){validateInput(readExtendUpdateInput(_0x5bd4b1));},async 'dryRun'(_0x22ea0e){const _0xb21cbc=a63_0x56d1be,_0x523c54=await buildDatasetExtendUpdateResult({'appCode':_0x22ea0e[_0xb21cbc(0x16c)],'input':readExtendUpdateInput(_0x22ea0e),'dryRun':!![]});return{'method':'POST','url':_0xb21cbc(0x14e),'body':_0x523c54[_0xb21cbc(0x155)],'description':_0x523c54['message']};},async 'execute'(_0x3bc0c0){return buildDatasetExtendUpdateResult({'appCode':_0x3bc0c0['appCode'],'input':readExtendUpdateInput(_0x3bc0c0),'dryRun':![]});}};function readExtendUpdateInput(_0x23b339){const _0x47cd44=a63_0x56d1be,_0x24feb6=trim(_0x23b339['str']('code')),_0x5d4683=parseJsonObjectFlag(_0x23b339[_0x47cd44(0x146)](_0x47cd44(0x159)),'--patch-json'),_0x170e91=parseJsonObjectFlag(_0x23b339[_0x47cd44(0x146)](_0x47cd44(0x16b)),_0x47cd44(0x154));return{'code':_0x24feb6,'patch':_0x5d4683||{},'expect':_0x170e91};}function validateInput(_0x375d44){const _0x7efd9=a63_0x56d1be;if(!_0x375d44[_0x7efd9(0x170)])throw CliErrors[_0x7efd9(0x16f)]('--code\x20is\x20required');validateExtendPatchKeys(_0x375d44[_0x7efd9(0x172)]);}function parseDatasetExtend(_0x44d8a9){const _0xd5e775=a63_0x56d1be;if(typeof _0x44d8a9===_0xd5e775(0x160)){const _0x3f45e6=_0x44d8a9[_0xd5e775(0x15d)]();if(!_0x3f45e6)return{'value':{},'shape':_0xd5e775(0x160)};let _0xa5abc7;try{_0xa5abc7=JSON[_0xd5e775(0x169)](_0x3f45e6);}catch(_0x248ce8){const _0xc54c5b=_0x248ce8 instanceof Error?_0x248ce8[_0xd5e775(0x163)]:String(_0x248ce8);throw CliErrors[_0xd5e775(0x16f)](_0xd5e775(0x162)+_0xc54c5b);}if(!isPlainObject(_0xa5abc7)||Array['isArray'](_0xa5abc7))throw CliErrors[_0xd5e775(0x16f)](_0xd5e775(0x16a));return{'value':_0xa5abc7,'shape':_0xd5e775(0x160)};}if(_0x44d8a9===undefined||_0x44d8a9===null)return{'value':{},'shape':'string'};if(!isPlainObject(_0x44d8a9)||Array[_0xd5e775(0x153)](_0x44d8a9))throw CliErrors[_0xd5e775(0x16f)]('Dataset\x20extend\x20must\x20be\x20a\x20JSON\x20object');return{'value':_0x44d8a9,'shape':_0xd5e775(0x157)};}function serializeDatasetExtend(_0x1b24b4,_0x59dc8a){const _0x11e59b=a63_0x56d1be;return _0x59dc8a===_0x11e59b(0x160)?JSON[_0x11e59b(0x156)](_0x1b24b4):_0x1b24b4;}function summarizeDataset(_0x73201f,_0x2c2526){const _0x1fa122=a63_0x56d1be,_0x390638=isPlainObject(_0x73201f[_0x1fa122(0x134)])?_0x73201f[_0x1fa122(0x134)]:{},_0x3c091b=isPlainObject(_0x73201f[_0x1fa122(0x148)])?_0x73201f[_0x1fa122(0x148)]:{};return{'id':_0x73201f[_0x1fa122(0x133)]??_0x73201f['id']??_0x390638[_0x1fa122(0x139)]??null,'code':_0x73201f[_0x1fa122(0x152)]??_0x73201f[_0x1fa122(0x170)]??_0x390638[_0x1fa122(0x135)]??_0x2c2526,'name':_0x73201f['name']??_0x390638['datasetName']??null,'table':_0x3c091b[_0x1fa122(0x144)]??_0x390638[_0x1fa122(0x144)]??null,'db':_0x3c091b[_0x1fa122(0x147)]??_0x3c091b[_0x1fa122(0x16d)]??null};}function deepClone(_0x59f8f1){const _0x406bdc=a63_0x56d1be;if(_0x59f8f1===undefined)return _0x59f8f1;return JSON[_0x406bdc(0x169)](JSON[_0x406bdc(0x156)](_0x59f8f1));}function deepEqual(_0x276793,_0x1885ca){const _0x55f846=a63_0x56d1be;return JSON['stringify'](_0x276793)===JSON[_0x55f846(0x156)](_0x1885ca);}function isPlainObject(_0x1e2c6b){const _0x3054f9=a63_0x56d1be;return Boolean(_0x1e2c6b)&&typeof _0x1e2c6b===_0x3054f9(0x157)&&!Array['isArray'](_0x1e2c6b);}function trim(_0x42646d){const _0x45a58c=a63_0x56d1be,_0x13a45f=String(_0x42646d||'')[_0x45a58c(0x15d)]();return _0x13a45f;}
1
+ const a63_0x13a74e=a63_0x33cb;(function(_0x29f19b,_0x4cad02){const _0x9f10eb=a63_0x33cb,_0x41031b=_0x29f19b();while(!![]){try{const _0xbdc948=parseInt(_0x9f10eb(0x1ab))/0x1+-parseInt(_0x9f10eb(0x192))/0x2*(parseInt(_0x9f10eb(0x193))/0x3)+parseInt(_0x9f10eb(0x194))/0x4*(parseInt(_0x9f10eb(0x1c7))/0x5)+-parseInt(_0x9f10eb(0x1a8))/0x6*(parseInt(_0x9f10eb(0x1bc))/0x7)+parseInt(_0x9f10eb(0x1c1))/0x8+parseInt(_0x9f10eb(0x1c2))/0x9*(-parseInt(_0x9f10eb(0x1a9))/0xa)+parseInt(_0x9f10eb(0x1a3))/0xb*(-parseInt(_0x9f10eb(0x1b5))/0xc);if(_0xbdc948===_0x4cad02)break;else _0x41031b['push'](_0x41031b['shift']());}catch(_0x163640){_0x41031b['push'](_0x41031b['shift']());}}}(a63_0x5ec9,0xc44f7));import{APPCODE_FLAG_OPTIONAL,CODE_FLAG}from'../../commands/common/flags.js';import{getDatasetDetail,updateDrivenData}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a63_0x5ec9(){const _0xc41cb1=['No\x20changes\x20for\x20dataset\x20extend','has','JSON\x20object\x20patch\x20for\x20dataset\x20top-level\x20extend;\x20current\x20allowlist\x20is\x20empty','parse','3803208qbIHvr','18NqgPcO','write','keys','dbtableConfig','datasetCode','100JhfOyr',',\x20actual\x20','get','str','--expect-json','Expectation\x20mismatch\x20at\x20extend.','entries','Updated\x20dataset\x20extend\x20(','join','from','patch','push','modelId','stringify','message','2PQYzzb','4586709FlwYig','310084qJHhAo','--patch-json','code','\x20must\x20be\x20a\x20JSON\x20object','string','dataset','data','No\x20dataset\x20extend\x20patch\x20keys\x20are\x20currently\x20supported.','\x20must\x20be\x20valid\x20JSON\x20object:\x20','trim','isArray','sort','patch-json','extend','JSON\x20object\x20of\x20expected\x20current\x20extend\x20values;\x20mismatch\x20aborts\x20without\x20writing','1287OsDAzn','dataset\x20extend-update\x20does\x20not\x20support\x20businessGroup;\x20use\x20dataset\x20business-group-update','tableName','Use\x20`rabetbase\x20dataset\x20business-group-update`\x20to\x20update\x20business\x20model\x20groups.','modelCode','6FxTbZv','5046670ixeCUx','businessGroup','1597770xMaAqk','datasetName','POST','extend-update','/smartapi/dataset/update-driven-data','Patch\x20dataset\x20top-level\x20extend\x20safely','validation','object','name','Allowed\x20keys:\x20','25140mlNWRy','length','datasetId','hint','shape','Dataset\x20extend\x20must\x20be\x20a\x20JSON\x20object','appCode','253064spcPNp'];a63_0x5ec9=function(){return _0xc41cb1;};return a63_0x5ec9();}const MUTABLE_EXTEND_KEYS=new Set(),EXTEND_PATCH_REDIRECTS=new Map([[a63_0x13a74e(0x1aa),{'message':a63_0x13a74e(0x1a4),'hint':a63_0x13a74e(0x1a6)}]]);export function parseJsonObjectFlag(_0x3e96c2,_0x4f81c4){const _0xaddfad=a63_0x13a74e;if(!_0x3e96c2)return undefined;let _0x1f0bcf;try{_0x1f0bcf=JSON[_0xaddfad(0x1c0)](_0x3e96c2);}catch(_0x402135){const _0x2a59e4=_0x402135 instanceof Error?_0x402135['message']:String(_0x402135);throw CliErrors[_0xaddfad(0x1b1)](_0x4f81c4+_0xaddfad(0x19c)+_0x2a59e4);}if(!isPlainObject(_0x1f0bcf)||Array['isArray'](_0x1f0bcf))throw CliErrors[_0xaddfad(0x1b1)](_0x4f81c4+_0xaddfad(0x197));return _0x1f0bcf;}export function validateExtendPatchKeys(_0x22d9ff){const _0x21beeb=a63_0x13a74e,_0x4fcd65=Object[_0x21beeb(0x1c4)](_0x22d9ff);if(_0x4fcd65[_0x21beeb(0x1b6)]===0x0)throw CliErrors[_0x21beeb(0x1b1)]('--patch-json\x20must\x20contain\x20at\x20least\x20one\x20key');for(const _0x476857 of _0x4fcd65){const _0x5b3326=EXTEND_PATCH_REDIRECTS[_0x21beeb(0x1c9)](_0x476857);if(_0x5b3326)throw CliErrors['validation'](_0x5b3326[_0x21beeb(0x191)],_0x5b3326[_0x21beeb(0x1b8)]);if(!MUTABLE_EXTEND_KEYS[_0x21beeb(0x1be)](_0x476857))throw CliErrors[_0x21beeb(0x1b1)]('Unsupported\x20patch\x20key:\x20'+_0x476857,describeMutableExtendKeys());}}function describeMutableExtendKeys(){const _0x482321=a63_0x13a74e,_0x305ef6=Array[_0x482321(0x18c)](MUTABLE_EXTEND_KEYS)['sort']();return _0x305ef6['length']>0x0?_0x482321(0x1b4)+_0x305ef6['join'](',\x20'):_0x482321(0x19b);}export function applyExtendPatch(_0x53490e,_0x282a5f){const _0x4fa655=a63_0x13a74e;validateExtendPatchKeys(_0x282a5f);const _0x53b04b=deepClone(_0x53490e),_0x153e90=[];for(const [_0x4e6b7d,_0x2f4257]of Object[_0x4fa655(0x1cd)](_0x282a5f)){const _0x28399f=_0x53b04b[_0x4e6b7d],_0x46d65b=deepClone(_0x2f4257);!deepEqual(_0x28399f,_0x46d65b)&&(_0x53b04b[_0x4e6b7d]=_0x46d65b,_0x153e90[_0x4fa655(0x18e)]('extend.'+_0x4e6b7d));}return _0x153e90[_0x4fa655(0x19f)](),{'after':_0x53b04b,'changedPaths':_0x153e90,'changed':_0x153e90[_0x4fa655(0x1b6)]>0x0};}export function assertExpectation(_0x5940f4,_0x50ae9e){const _0x333efd=a63_0x13a74e;if(!_0x50ae9e)return;for(const [_0x4f3783,_0x16b58b]of Object['entries'](_0x50ae9e)){const _0x1e650a=_0x5940f4[_0x4f3783];if(!deepEqual(_0x1e650a,_0x16b58b))throw CliErrors[_0x333efd(0x1b1)](_0x333efd(0x1cc)+_0x4f3783,'Expected\x20'+JSON[_0x333efd(0x190)](_0x16b58b)+_0x333efd(0x1c8)+JSON[_0x333efd(0x190)](_0x1e650a));}}export async function buildDatasetExtendUpdateResult({appCode:_0x195a91,input:_0x2ffad9,dryRun:_0x1eb9fa}){const _0x3e359f=a63_0x13a74e;validateInput(_0x2ffad9);const _0x509ca7=await getDatasetDetail(_0x2ffad9['code']),_0xe2770f=parseDatasetExtend(_0x509ca7[_0x3e359f(0x1a1)]),_0x50ac89=deepClone(_0xe2770f['value']);assertExpectation(_0x50ac89,_0x2ffad9['expect']);const {after:_0xf581c6,changedPaths:_0x182662,changed:_0x39f0ab}=applyExtendPatch(_0x50ac89,_0x2ffad9[_0x3e359f(0x18d)]),_0x147321=summarizeDataset(_0x509ca7,_0x2ffad9[_0x3e359f(0x196)]);return _0x39f0ab&&!_0x1eb9fa&&(_0x509ca7[_0x3e359f(0x1a1)]=serializeDatasetExtend(_0xf581c6,_0xe2770f[_0x3e359f(0x1b9)]),await updateDrivenData(_0x509ca7)),{'ok':!![],'data':{'appCode':_0x195a91,'selector':{'code':_0x2ffad9[_0x3e359f(0x196)]},'dataset':_0x147321,'dryRun':_0x1eb9fa,'changed':_0x39f0ab,'changedPaths':_0x182662,'before':{'extend':_0x50ac89},'after':{'extend':_0xf581c6},'submitted':_0x39f0ab&&!_0x1eb9fa},'message':_0x39f0ab?_0x1eb9fa?'Dry-run:\x20dataset\x20extend\x20would\x20change\x20('+_0x182662['join'](',\x20')+')':_0x3e359f(0x1ce)+_0x182662[_0x3e359f(0x1cf)](',\x20')+')':_0x3e359f(0x1bd)};}export const datasetExtendUpdate={'service':'dataset','command':a63_0x13a74e(0x1ae),'description':a63_0x13a74e(0x1b0),'risk':a63_0x13a74e(0x1c3),'flags':[CODE_FLAG,{'name':a63_0x13a74e(0x1a0),'type':a63_0x13a74e(0x198),'required':!![],'description':a63_0x13a74e(0x1bf)},{'name':'expect-json','type':'string','required':![],'description':a63_0x13a74e(0x1a2)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x26403b){validateInput(readExtendUpdateInput(_0x26403b));},async 'dryRun'(_0x581359){const _0x12cbd0=a63_0x13a74e,_0xd8cca4=await buildDatasetExtendUpdateResult({'appCode':_0x581359[_0x12cbd0(0x1bb)],'input':readExtendUpdateInput(_0x581359),'dryRun':!![]});return{'method':_0x12cbd0(0x1ad),'url':_0x12cbd0(0x1af),'body':_0xd8cca4[_0x12cbd0(0x19a)],'description':_0xd8cca4['message']};},async 'execute'(_0x40fc67){const _0xd7285=a63_0x13a74e;return buildDatasetExtendUpdateResult({'appCode':_0x40fc67[_0xd7285(0x1bb)],'input':readExtendUpdateInput(_0x40fc67),'dryRun':![]});}};function readExtendUpdateInput(_0x5e8ce3){const _0x3f56b7=a63_0x13a74e,_0x15743d=trim(_0x5e8ce3[_0x3f56b7(0x1ca)](_0x3f56b7(0x196))),_0x5569d2=parseJsonObjectFlag(_0x5e8ce3['str'](_0x3f56b7(0x1a0)),_0x3f56b7(0x195)),_0x1238a2=parseJsonObjectFlag(_0x5e8ce3[_0x3f56b7(0x1ca)]('expect-json'),_0x3f56b7(0x1cb));return{'code':_0x15743d,'patch':_0x5569d2||{},'expect':_0x1238a2};}function validateInput(_0x7b8826){const _0x28cbb0=a63_0x13a74e;if(!_0x7b8826['code'])throw CliErrors[_0x28cbb0(0x1b1)]('--code\x20is\x20required');validateExtendPatchKeys(_0x7b8826[_0x28cbb0(0x18d)]);}function parseDatasetExtend(_0x124952){const _0x16ecf4=a63_0x13a74e;if(typeof _0x124952===_0x16ecf4(0x198)){const _0x139915=_0x124952[_0x16ecf4(0x19d)]();if(!_0x139915)return{'value':{},'shape':_0x16ecf4(0x198)};let _0x325af5;try{_0x325af5=JSON[_0x16ecf4(0x1c0)](_0x139915);}catch(_0x1c6f6){const _0x3775ab=_0x1c6f6 instanceof Error?_0x1c6f6[_0x16ecf4(0x191)]:String(_0x1c6f6);throw CliErrors[_0x16ecf4(0x1b1)]('Dataset\x20extend\x20must\x20be\x20valid\x20JSON\x20object:\x20'+_0x3775ab);}if(!isPlainObject(_0x325af5)||Array[_0x16ecf4(0x19e)](_0x325af5))throw CliErrors[_0x16ecf4(0x1b1)](_0x16ecf4(0x1ba));return{'value':_0x325af5,'shape':_0x16ecf4(0x198)};}if(_0x124952===undefined||_0x124952===null)return{'value':{},'shape':'string'};if(!isPlainObject(_0x124952)||Array['isArray'](_0x124952))throw CliErrors[_0x16ecf4(0x1b1)](_0x16ecf4(0x1ba));return{'value':_0x124952,'shape':_0x16ecf4(0x1b2)};}function a63_0x33cb(_0x11b378,_0xa0a267){_0x11b378=_0x11b378-0x18c;const _0x5ec988=a63_0x5ec9();let _0x33cbf3=_0x5ec988[_0x11b378];return _0x33cbf3;}function serializeDatasetExtend(_0xc06dba,_0x17d91d){const _0x3913b7=a63_0x13a74e;return _0x17d91d===_0x3913b7(0x198)?JSON[_0x3913b7(0x190)](_0xc06dba):_0xc06dba;}function summarizeDataset(_0x5b58dc,_0x2479c8){const _0x15d9c8=a63_0x13a74e,_0x2284e1=isPlainObject(_0x5b58dc[_0x15d9c8(0x199)])?_0x5b58dc['dataset']:{},_0x2a4f8c=isPlainObject(_0x5b58dc[_0x15d9c8(0x1c5)])?_0x5b58dc[_0x15d9c8(0x1c5)]:{};return{'id':_0x5b58dc[_0x15d9c8(0x18f)]??_0x5b58dc['id']??_0x2284e1[_0x15d9c8(0x1b7)]??null,'code':_0x5b58dc[_0x15d9c8(0x1a7)]??_0x5b58dc['code']??_0x2284e1[_0x15d9c8(0x1c6)]??_0x2479c8,'name':_0x5b58dc[_0x15d9c8(0x1b3)]??_0x2284e1[_0x15d9c8(0x1ac)]??null,'table':_0x2a4f8c[_0x15d9c8(0x1a5)]??_0x2284e1[_0x15d9c8(0x1a5)]??null,'db':_0x2a4f8c['dbName']??_0x2a4f8c['dbId']??null};}function deepClone(_0x5355e8){const _0x233ec7=a63_0x13a74e;if(_0x5355e8===undefined)return _0x5355e8;return JSON[_0x233ec7(0x1c0)](JSON['stringify'](_0x5355e8));}function deepEqual(_0x2e3def,_0x2194b2){const _0x558375=a63_0x13a74e;return JSON[_0x558375(0x190)](_0x2e3def)===JSON[_0x558375(0x190)](_0x2194b2);}function isPlainObject(_0x5550ec){const _0x52ec2e=a63_0x13a74e;return Boolean(_0x5550ec)&&typeof _0x5550ec==='object'&&!Array[_0x52ec2e(0x19e)](_0x5550ec);}function trim(_0x1e5a06){const _0x291b2f=String(_0x1e5a06||'')['trim']();return _0x291b2f;}