@lovrabet/rabetbase-cli 2.4.2 → 2.4.3

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 (294) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/index.js +1 -1
  20. package/lib/commands/app/list.js +1 -1
  21. package/lib/commands/app/members-list.js +1 -1
  22. package/lib/commands/app/remote-directory.js +1 -1
  23. package/lib/commands/app/shared.js +1 -1
  24. package/lib/commands/app-config/delete.js +1 -1
  25. package/lib/commands/app-config/get.js +1 -1
  26. package/lib/commands/app-config/index.js +1 -1
  27. package/lib/commands/app-config/list.js +1 -1
  28. package/lib/commands/app-config/set.js +1 -1
  29. package/lib/commands/app-config/shared.js +1 -1
  30. package/lib/commands/auth/index.js +1 -1
  31. package/lib/commands/bff/create.js +1 -1
  32. package/lib/commands/bff/delete.js +1 -1
  33. package/lib/commands/bff/detail.js +1 -1
  34. package/lib/commands/bff/index.js +1 -1
  35. package/lib/commands/bff/list.js +1 -1
  36. package/lib/commands/bff/pull.js +1 -1
  37. package/lib/commands/bff/push.js +1 -1
  38. package/lib/commands/bff/status.js +1 -1
  39. package/lib/commands/cli-skill/index.js +1 -1
  40. package/lib/commands/cli-update.js +1 -1
  41. package/lib/commands/codegen/index.js +1 -1
  42. package/lib/commands/codegen/sdk.js +1 -1
  43. package/lib/commands/codegen/sql.js +1 -1
  44. package/lib/commands/common/app-registry.js +1 -1
  45. package/lib/commands/common/app-selector.js +1 -1
  46. package/lib/commands/common/async-task.js +1 -1
  47. package/lib/commands/common/dry-run.js +1 -1
  48. package/lib/commands/common/flags.js +1 -1
  49. package/lib/commands/common/local-file.js +1 -1
  50. package/lib/commands/common/validate.js +1 -1
  51. package/lib/commands/config/get.js +1 -1
  52. package/lib/commands/config/index.js +1 -1
  53. package/lib/commands/config/list.js +1 -1
  54. package/lib/commands/config/set.js +1 -1
  55. package/lib/commands/config/shared.js +1 -1
  56. package/lib/commands/data/filter.js +1 -1
  57. package/lib/commands/data/getOne.js +1 -1
  58. package/lib/commands/data/index.js +1 -1
  59. package/lib/commands/data/shared.js +1 -1
  60. package/lib/commands/dataset/business-group-update.js +1 -1
  61. package/lib/commands/dataset/capability.js +1 -1
  62. package/lib/commands/dataset/delete.js +1 -1
  63. package/lib/commands/dataset/detail.js +1 -1
  64. package/lib/commands/dataset/extend-update.js +1 -1
  65. package/lib/commands/dataset/field-update.js +1 -1
  66. package/lib/commands/dataset/generate.js +1 -1
  67. package/lib/commands/dataset/index.js +1 -1
  68. package/lib/commands/dataset/list.js +1 -1
  69. package/lib/commands/dataset/operations.js +1 -1
  70. package/lib/commands/dataset/relation-audit.js +1 -1
  71. package/lib/commands/dataset/relation-create.js +1 -1
  72. package/lib/commands/dataset/relation-delete.js +1 -1
  73. package/lib/commands/dataset/relation-shared.js +1 -1
  74. package/lib/commands/dataset/relation-update.js +1 -1
  75. package/lib/commands/dataset/relations.js +1 -1
  76. package/lib/commands/dataset/rename.js +1 -1
  77. package/lib/commands/dataset/restore.js +1 -1
  78. package/lib/commands/db/analysis-batching.js +1 -1
  79. package/lib/commands/db/analyze-batch-plan.js +1 -1
  80. package/lib/commands/db/analyze-cancel.js +1 -1
  81. package/lib/commands/db/analyze-start.js +1 -1
  82. package/lib/commands/db/analyze-status.js +1 -1
  83. package/lib/commands/db/create.js +1 -1
  84. package/lib/commands/db/delete.js +1 -1
  85. package/lib/commands/db/detail.js +1 -1
  86. package/lib/commands/db/diff.js +1 -1
  87. package/lib/commands/db/index.js +1 -1
  88. package/lib/commands/db/list.js +1 -1
  89. package/lib/commands/db/shared.js +1 -1
  90. package/lib/commands/db/tables.js +1 -1
  91. package/lib/commands/db/test.js +1 -1
  92. package/lib/commands/db/update.js +1 -1
  93. package/lib/commands/doctor.js +1 -1
  94. package/lib/commands/file/index.js +1 -1
  95. package/lib/commands/init/index.js +1 -1
  96. package/lib/commands/issue/index.js +1 -1
  97. package/lib/commands/issue/nudge.js +1 -1
  98. package/lib/commands/issue/report.js +1 -1
  99. package/lib/commands/issue/shared.js +1 -1
  100. package/lib/commands/kb/create.js +1 -1
  101. package/lib/commands/kb/delete.js +1 -1
  102. package/lib/commands/kb/detail.js +1 -1
  103. package/lib/commands/kb/index.js +1 -1
  104. package/lib/commands/kb/list.js +1 -1
  105. package/lib/commands/kb/shared.js +1 -1
  106. package/lib/commands/kb/update.js +1 -1
  107. package/lib/commands/logs/index.js +1 -1
  108. package/lib/commands/menu/asset-update.js +1 -1
  109. package/lib/commands/menu/delete.js +1 -1
  110. package/lib/commands/menu/external-link-create.js +1 -1
  111. package/lib/commands/menu/external-link-update.js +1 -1
  112. package/lib/commands/menu/group-create.js +1 -1
  113. package/lib/commands/menu/group-update.js +1 -1
  114. package/lib/commands/menu/index.js +1 -1
  115. package/lib/commands/menu/list.js +1 -1
  116. package/lib/commands/menu/move.js +1 -1
  117. package/lib/commands/menu/regroup-start.js +1 -1
  118. package/lib/commands/menu/rename.js +1 -1
  119. package/lib/commands/menu/shared/compare-table.js +1 -1
  120. package/lib/commands/menu/shared/delete-plan.js +1 -1
  121. package/lib/commands/menu/shared/facts.js +1 -1
  122. package/lib/commands/menu/shared/index.js +1 -1
  123. package/lib/commands/menu/shared/inquirer.js +1 -1
  124. package/lib/commands/menu/shared/local-pages.js +1 -1
  125. package/lib/commands/menu/shared/logic.js +1 -1
  126. package/lib/commands/menu/shared/mutations.js +1 -1
  127. package/lib/commands/menu/shared/service.js +1 -1
  128. package/lib/commands/menu/shared/sync-core.js +1 -1
  129. package/lib/commands/menu/shared/update-core.js +1 -1
  130. package/lib/commands/menu/shared/valid-url.js +1 -1
  131. package/lib/commands/menu/sync.js +1 -1
  132. package/lib/commands/notification/config-list.js +1 -1
  133. package/lib/commands/notification/index.js +1 -1
  134. package/lib/commands/ocr/index.js +1 -1
  135. package/lib/commands/page/generate-start.js +1 -1
  136. package/lib/commands/page/generate-status.js +1 -1
  137. package/lib/commands/page/index.js +1 -1
  138. package/lib/commands/page/pull.js +1 -1
  139. package/lib/commands/page/push.js +1 -1
  140. package/lib/commands/page/react/create.js +1 -1
  141. package/lib/commands/page/react/detail.js +1 -1
  142. package/lib/commands/page/react/list.js +1 -1
  143. package/lib/commands/page/react/publish.js +1 -1
  144. package/lib/commands/page/react/shared.js +1 -1
  145. package/lib/commands/page/react/syntax.js +1 -1
  146. package/lib/commands/page/react/template.js +1 -1
  147. package/lib/commands/page/react/update.js +1 -1
  148. package/lib/commands/page/relation-audit.js +1 -1
  149. package/lib/commands/page/restore.js +1 -1
  150. package/lib/commands/page/shared.js +1 -1
  151. package/lib/commands/page/standard-page-status.js +1 -1
  152. package/lib/commands/page/sync.js +1 -1
  153. package/lib/commands/permit/index.js +1 -1
  154. package/lib/commands/permit/page-get.js +1 -1
  155. package/lib/commands/permit/page-set.js +1 -1
  156. package/lib/commands/permit/role-apis-set.js +1 -1
  157. package/lib/commands/permit/role-menus-set.js +1 -1
  158. package/lib/commands/permit/role-menus.js +1 -1
  159. package/lib/commands/permit/shared.js +1 -1
  160. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  161. package/lib/commands/project/create/format-elapsed.js +1 -1
  162. package/lib/commands/project/create/main.js +1 -1
  163. package/lib/commands/project/create/non-interactive.js +1 -1
  164. package/lib/commands/project/create/project-template-path.js +1 -1
  165. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  166. package/lib/commands/project/create/use-format-code.js +1 -1
  167. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  168. package/lib/commands/project/index.js +1 -1
  169. package/lib/commands/project/upgrade.js +1 -1
  170. package/lib/commands/registry.js +1 -1
  171. package/lib/commands/role/create.js +1 -1
  172. package/lib/commands/role/delete.js +1 -1
  173. package/lib/commands/role/detail.js +1 -1
  174. package/lib/commands/role/index.js +1 -1
  175. package/lib/commands/role/list.js +1 -1
  176. package/lib/commands/role/shared.js +1 -1
  177. package/lib/commands/role/update.js +1 -1
  178. package/lib/commands/role/user-add.js +1 -1
  179. package/lib/commands/role/user-remove.js +1 -1
  180. package/lib/commands/role/user-resolve.js +1 -1
  181. package/lib/commands/run/index.js +1 -1
  182. package/lib/commands/schema.js +1 -1
  183. package/lib/commands/sql/create.js +1 -1
  184. package/lib/commands/sql/delete.js +1 -1
  185. package/lib/commands/sql/detail.js +1 -1
  186. package/lib/commands/sql/exec.js +1 -1
  187. package/lib/commands/sql/index.js +1 -1
  188. package/lib/commands/sql/list.js +1 -1
  189. package/lib/commands/sql/pull.js +1 -1
  190. package/lib/commands/sql/push.js +1 -1
  191. package/lib/commands/sql/shared.js +1 -1
  192. package/lib/commands/sql/status.js +1 -1
  193. package/lib/commands/sql/validate.js +1 -1
  194. package/lib/commands/task/index.js +1 -1
  195. package/lib/commands/task/status.js +1 -1
  196. package/lib/commands/tenant/index.js +1 -1
  197. package/lib/commands/tenant/members-list.js +1 -1
  198. package/lib/commands/tenant/shared.js +1 -1
  199. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  200. package/lib/commands/user-account/index.js +1 -1
  201. package/lib/commands/workspace/add.js +1 -1
  202. package/lib/commands/workspace/index.js +1 -1
  203. package/lib/commands/workspace/remove.js +1 -1
  204. package/lib/config/schema.js +1 -1
  205. package/lib/constant/cdn.js +1 -1
  206. package/lib/constant/cli.js +1 -1
  207. package/lib/constant/defaults.js +1 -1
  208. package/lib/constant/domain.js +1 -1
  209. package/lib/constant/env.js +1 -1
  210. package/lib/constant/output.js +1 -1
  211. package/lib/constant/paths.js +1 -1
  212. package/lib/constant/risk.js +1 -1
  213. package/lib/context/app-resolver.js +1 -1
  214. package/lib/context/auth-resolver.js +1 -1
  215. package/lib/context/config-loader.js +1 -1
  216. package/lib/context.js +1 -1
  217. package/lib/core/alias-resolver.js +1 -1
  218. package/lib/core/api-client.js +1 -1
  219. package/lib/core/bff/config.js +1 -1
  220. package/lib/core/bff/file-system.js +1 -1
  221. package/lib/core/bff/hash.js +1 -1
  222. package/lib/core/bff/lock.js +1 -1
  223. package/lib/core/bff/utils.js +1 -1
  224. package/lib/core/db-resolver.js +1 -1
  225. package/lib/core/page/file-system.js +1 -1
  226. package/lib/core/page/hash.js +1 -1
  227. package/lib/core/page/lock.js +1 -1
  228. package/lib/core/sql-index-auditor.js +1 -1
  229. package/lib/core/sql-sync/config.js +1 -1
  230. package/lib/core/sql-sync/file-system.js +1 -1
  231. package/lib/core/sql-sync/hash.js +1 -1
  232. package/lib/core/sql-sync/lock.js +1 -1
  233. package/lib/core/sql-sync/utils.js +1 -1
  234. package/lib/core/sql-validator.js +1 -1
  235. package/lib/errors.js +1 -1
  236. package/lib/framework/build-all-flags.js +1 -1
  237. package/lib/framework/error-output.js +1 -1
  238. package/lib/framework/explicit-yes.js +1 -1
  239. package/lib/framework/flags.js +1 -1
  240. package/lib/framework/help.js +1 -1
  241. package/lib/framework/index.js +1 -1
  242. package/lib/framework/output.js +1 -1
  243. package/lib/framework/response.js +1 -1
  244. package/lib/framework/runner-alias.js +1 -1
  245. package/lib/framework/runner.js +1 -1
  246. package/lib/framework/schema-export.js +1 -1
  247. package/lib/framework/types.js +1 -1
  248. package/lib/generated/build-info.d.ts +4 -4
  249. package/lib/generated/build-info.js +1 -1
  250. package/lib/help.js +1 -1
  251. package/lib/postinstall.js +1 -1
  252. package/lib/runtime/confirmation.js +1 -1
  253. package/lib/runtime/event.js +1 -1
  254. package/lib/runtime/index.js +1 -1
  255. package/lib/runtime/queue.js +1 -1
  256. package/lib/runtime/resolve.js +1 -1
  257. package/lib/skills/builtin-skill.js +1 -1
  258. package/lib/skills/main.js +1 -1
  259. package/lib/skills/npx-skills-add.js +1 -1
  260. package/lib/skills/skill-presence.js +1 -1
  261. package/lib/telemetry/cli-command-trace.js +1 -1
  262. package/lib/telemetry/cli-help-trace.js +1 -1
  263. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  264. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  265. package/lib/telemetry/send-cli-trace-log.js +1 -1
  266. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  267. package/lib/utils/ai_config.js +1 -1
  268. package/lib/utils/apply-jq-filter.js +1 -1
  269. package/lib/utils/cdn-config.js +1 -1
  270. package/lib/utils/check-sdk-version.js +1 -1
  271. package/lib/utils/cli-version-check.js +1 -1
  272. package/lib/utils/cli-version-policy.js +1 -1
  273. package/lib/utils/config.js +1 -1
  274. package/lib/utils/copy-directory.js +1 -1
  275. package/lib/utils/entity-with-id.js +1 -1
  276. package/lib/utils/file-utils.js +1 -1
  277. package/lib/utils/guides-cdn.js +1 -1
  278. package/lib/utils/http-client.js +1 -1
  279. package/lib/utils/is-non-interactive.js +1 -1
  280. package/lib/utils/logger.js +1 -1
  281. package/lib/utils/params.js +1 -1
  282. package/lib/utils/platform.js +1 -1
  283. package/lib/utils/rules-cdn.js +1 -1
  284. package/lib/utils/sleep.js +1 -1
  285. package/lib/utils/template-replacer.js +1 -1
  286. package/lib/utils/update-notice.js +1 -1
  287. package/lib/utils/version.js +1 -1
  288. package/lib/utils/with-active-cookie.js +1 -1
  289. package/lib/utils/write-cli-side-channel.js +1 -1
  290. package/package.json +8 -4
  291. package/skills/rabetbase/SKILL.md +1 -1
  292. package/skills/rabetbase/guides/react-custom-page-workflow.md +9 -3
  293. package/skills/rabetbase/knowledge/react-page/generation-standards.md +13 -2
  294. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- function a50_0x2bc9(){const _0x2bc0f6=['Get\x20a\x20config\x20value\x20by\x20key','appcode','object','4PDXZTI','Usage:\x20','Key\x20not\x20found:\x20','config','17285UHXSha','36ekfjdR','15130FEueOO','str','2634qKbdZX','35GjkGqn','42ntPeGT','2667335VjFpos','\x20config\x20get\x20--key\x20<key>','27773ogyuxT','16hxbroW','2331VenyaJ','app','get','6932237pgwQUI','key','read','2973800tJaUqk','1298391TgxXGI'];a50_0x2bc9=function(){return _0x2bc0f6;};return a50_0x2bc9();}function a50_0x40cc(_0x37b07e,_0x5b8fe9){_0x37b07e=_0x37b07e-0x88;const _0x2bc9f2=a50_0x2bc9();let _0x40ccb2=_0x2bc9f2[_0x37b07e];return _0x40ccb2;}const a50_0xa53dd8=a50_0x40cc;(function(_0x324499,_0x20a3b7){const _0x1ede36=a50_0x40cc,_0x561ce8=_0x324499();while(!![]){try{const _0x50f61a=parseInt(_0x1ede36(0xa0))/0x1*(parseInt(_0x1ede36(0x93))/0x2)+-parseInt(_0x1ede36(0x8f))/0x3*(-parseInt(_0x1ede36(0xa1))/0x4)+parseInt(_0x1ede36(0x97))/0x5*(parseInt(_0x1ede36(0x9b))/0x6)+parseInt(_0x1ede36(0x9c))/0x7*(-parseInt(_0x1ede36(0x8e))/0x8)+-parseInt(_0x1ede36(0x88))/0x9*(-parseInt(_0x1ede36(0x99))/0xa)+-parseInt(_0x1ede36(0x9e))/0xb*(-parseInt(_0x1ede36(0x98))/0xc)+parseInt(_0x1ede36(0x8b))/0xd*(-parseInt(_0x1ede36(0x9d))/0xe);if(_0x50f61a===_0x20a3b7)break;else _0x561ce8['push'](_0x561ce8['shift']());}catch(_0x404457){_0x561ce8['push'](_0x561ce8['shift']());}}}(a50_0x2bc9,0xebabb));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(_0x2c487a){const _0x21e4a4=a50_0x40cc,_0x48f98d=_0x2c487a[_0x21e4a4(0x9a)](_0x21e4a4(0x8c));if(!_0x48f98d)throw CliErrors['validation']('Missing\x20key.',_0x21e4a4(0x94)+CLI_BIN_NAME+_0x21e4a4(0x9f));const _0x15d37c=readConfig(),_0x4f360a=_0x48f98d===_0x21e4a4(0x89)?_0x21e4a4(0x91):_0x48f98d,_0x2612de=_0x15d37c[_0x4f360a];if(_0x2612de===undefined)throw CliErrors['validation'](_0x21e4a4(0x95)+_0x48f98d);return{'ok':!![],'data':typeof _0x2612de===_0x21e4a4(0x92)?_0x2612de:{[_0x4f360a]:_0x2612de},'message':typeof _0x2612de===_0x21e4a4(0x92)?undefined:String(_0x2612de)};}export const configGetDefinition={'service':a50_0xa53dd8(0x96),'command':a50_0xa53dd8(0x8a),'description':a50_0xa53dd8(0x90),'risk':a50_0xa53dd8(0x8d),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a50_0xa53dd8(0x8c),'type':'string','description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
1
+ function a50_0x5c3a(){const _0x3e6f82=['4CLPeto','9342RMcdMQ','2832159PvJccU','app','8630lbaCBq','get','616bpfKYg','config','string','1343690fdnzDK','object','\x20config\x20get\x20--key\x20<key>','key','validation','Usage:\x20','2592996rJMkMR','2sHRXEV','read','39849pMSUEH','22KhyxpP','1374Mebzpz','Get\x20a\x20config\x20value\x20by\x20key','3177160rznKTy','str'];a50_0x5c3a=function(){return _0x3e6f82;};return a50_0x5c3a();}const a50_0x4a9617=a50_0x5bf4;(function(_0x4c7328,_0x152bf5){const _0x39756f=a50_0x5bf4,_0x1bf523=_0x4c7328();while(!![]){try{const _0x5149e4=parseInt(_0x39756f(0x119))/0x1*(parseInt(_0x39756f(0x117))/0x2)+parseInt(_0x39756f(0x121))/0x3*(parseInt(_0x39756f(0x11f))/0x4)+parseInt(_0x39756f(0x123))/0x5*(-parseInt(_0x39756f(0x11b))/0x6)+parseInt(_0x39756f(0x11d))/0x7+-parseInt(_0x39756f(0x125))/0x8*(parseInt(_0x39756f(0x120))/0x9)+parseInt(_0x39756f(0x128))/0xa*(-parseInt(_0x39756f(0x11a))/0xb)+-parseInt(_0x39756f(0x116))/0xc;if(_0x5149e4===_0x152bf5)break;else _0x1bf523['push'](_0x1bf523['shift']());}catch(_0x3eba9e){_0x1bf523['push'](_0x1bf523['shift']());}}}(a50_0x5c3a,0x74a55));function a50_0x5bf4(_0x5d2d01,_0x2a9a5d){_0x5d2d01=_0x5d2d01-0x116;const _0x5c3a62=a50_0x5c3a();let _0x5bf403=_0x5c3a62[_0x5d2d01];return _0x5bf403;}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(_0x51e5f9){const _0x286deb=a50_0x5bf4,_0x2d7513=_0x51e5f9[_0x286deb(0x11e)]('key');if(!_0x2d7513)throw CliErrors[_0x286deb(0x12c)]('Missing\x20key.',_0x286deb(0x12d)+CLI_BIN_NAME+_0x286deb(0x12a));const _0x8514f2=readConfig(),_0x36c7c4=_0x2d7513===_0x286deb(0x122)?'appcode':_0x2d7513,_0x342fb1=_0x8514f2[_0x36c7c4];if(_0x342fb1===undefined)throw CliErrors['validation']('Key\x20not\x20found:\x20'+_0x2d7513);return{'ok':!![],'data':typeof _0x342fb1==='object'?_0x342fb1:{[_0x36c7c4]:_0x342fb1},'message':typeof _0x342fb1===_0x286deb(0x129)?undefined:String(_0x342fb1)};}export const configGetDefinition={'service':a50_0x4a9617(0x126),'command':a50_0x4a9617(0x124),'description':a50_0x4a9617(0x11c),'risk':a50_0x4a9617(0x118),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a50_0x4a9617(0x12b),'type':a50_0x4a9617(0x127),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
@@ -1 +1 @@
1
- function a51_0xc931(){const _0xf95f9=['60KfNrAi','1314255FjySsf','578179GdTjJD','8hjFPAY','237135WOcfyA','8667351tmkaHJ','1727948MgqkJZ','340571KtRlIr','1iBUIdz','912434WEyWQc','130AisTtL'];a51_0xc931=function(){return _0xf95f9;};return a51_0xc931();}(function(_0x40684b,_0x5a9f30){const _0xdc1886=a51_0x1ede,_0x498d6d=_0x40684b();while(!![]){try{const _0x537326=-parseInt(_0xdc1886(0x1f5))/0x1*(-parseInt(_0xdc1886(0x1f6))/0x2)+parseInt(_0xdc1886(0x1f9))/0x3+parseInt(_0xdc1886(0x1fe))/0x4+-parseInt(_0xdc1886(0x1fc))/0x5+parseInt(_0xdc1886(0x1f8))/0x6*(parseInt(_0xdc1886(0x1fa))/0x7)+-parseInt(_0xdc1886(0x1fb))/0x8*(parseInt(_0xdc1886(0x1fd))/0x9)+-parseInt(_0xdc1886(0x1f7))/0xa*(parseInt(_0xdc1886(0x1f4))/0xb);if(_0x537326===_0x5a9f30)break;else _0x498d6d['push'](_0x498d6d['shift']());}catch(_0x4c52fc){_0x498d6d['push'](_0x498d6d['shift']());}}}(a51_0xc931,0xb47e4));import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';function a51_0x1ede(_0x3e7213,_0x573ece){_0x3e7213=_0x3e7213-0x1f4;const _0xc931f6=a51_0xc931();let _0x1edea7=_0xc931f6[_0x3e7213];return _0x1edea7;}import{configSetDefinition}from'../../commands/config/set.js';export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
1
+ (function(_0x3d1085,_0x4a26cc){const _0x5a6346=a51_0x1853,_0x245d2d=_0x3d1085();while(!![]){try{const _0x57cdf1=parseInt(_0x5a6346(0x163))/0x1*(parseInt(_0x5a6346(0x164))/0x2)+parseInt(_0x5a6346(0x166))/0x3+-parseInt(_0x5a6346(0x165))/0x4+-parseInt(_0x5a6346(0x168))/0x5+parseInt(_0x5a6346(0x167))/0x6+-parseInt(_0x5a6346(0x162))/0x7+-parseInt(_0x5a6346(0x16a))/0x8*(-parseInt(_0x5a6346(0x169))/0x9);if(_0x57cdf1===_0x4a26cc)break;else _0x245d2d['push'](_0x245d2d['shift']());}catch(_0x157c8a){_0x245d2d['push'](_0x245d2d['shift']());}}}(a51_0x1705,0x7f683));import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';import{configSetDefinition}from'../../commands/config/set.js';function a51_0x1705(){const _0x45ef06=['1339026zHVPgh','2735124uxqbio','858795EuItng','45vldTMa','109232wvVvJg','1473031UWUbUH','3vGdGfm','221978IpcrLy','1597528VKnRIo'];a51_0x1705=function(){return _0x45ef06;};return a51_0x1705();}function a51_0x1853(_0x1b64b8,_0x5d9ac7){_0x1b64b8=_0x1b64b8-0x162;const _0x170577=a51_0x1705();let _0x185395=_0x170577[_0x1b64b8];return _0x185395;}export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
@@ -1 +1 @@
1
- function a52_0xdd4d(){const _0x2f7fba=['1058880TAvdbL','4800uydhSs','bool','1403368ZXFQxr','read','2405360tXQMSK','global','6kciWww','6234018kbYqUF','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','List\x20all\x20config\x20values','9526086cwGgAQ','2412512oYNYnv','boolean','21gEHltZ'];a52_0xdd4d=function(){return _0x2f7fba;};return a52_0xdd4d();}function a52_0x1967(_0x1c21a8,_0x5bb3ec){_0x1c21a8=_0x1c21a8-0x6f;const _0xdd4deb=a52_0xdd4d();let _0x19671a=_0xdd4deb[_0x1c21a8];return _0x19671a;}const a52_0x364eef=a52_0x1967;(function(_0x1fe4a7,_0x5a9562){const _0x3d01a8=a52_0x1967,_0x24d55d=_0x1fe4a7();while(!![]){try{const _0x33b9b7=-parseInt(_0x3d01a8(0x7a))/0x1+-parseInt(_0x3d01a8(0x6f))/0x2+parseInt(_0x3d01a8(0x71))/0x3*(parseInt(_0x3d01a8(0x76))/0x4)+parseInt(_0x3d01a8(0x79))/0x5+parseInt(_0x3d01a8(0x72))/0x6+-parseInt(_0x3d01a8(0x78))/0x7*(-parseInt(_0x3d01a8(0x7c))/0x8)+-parseInt(_0x3d01a8(0x75))/0x9;if(_0x33b9b7===_0x5a9562)break;else _0x24d55d['push'](_0x24d55d['shift']());}catch(_0x10fb94){_0x24d55d['push'](_0x24d55d['shift']());}}}(a52_0xdd4d,0xaf234));import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0x4f2c45){const _0xd06f50=a52_0x1967,_0x29b905=_0x4f2c45[_0xd06f50(0x7b)]('global')?readScopedConfig(_0xd06f50(0x70)):readConfig();return{'ok':!![],'data':_0x29b905};}export const configListDefinition={'service':'config','command':'list','description':a52_0x364eef(0x74),'risk':a52_0x364eef(0x7d),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a52_0x364eef(0x70),'type':a52_0x364eef(0x77),'description':a52_0x364eef(0x73),'default':![]}],'execute':execute};
1
+ const a52_0x48a82a=a52_0x56a9;function a52_0x22ea(){const _0x1a8e4d=['List\x20all\x20config\x20values','global','1962612XXtqqM','read','127315erKLUD','243418abwzCR','319SHnQMZ','list','4676cwkYth','1575HoXLzM','bool','312hBgHio','60qwmIoB','391812tazJLt','3524896JAOysF','boolean','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','10ZQsvda','3163RlPVKX'];a52_0x22ea=function(){return _0x1a8e4d;};return a52_0x22ea();}(function(_0x1f9d78,_0x589bd5){const _0x493288=a52_0x56a9,_0x56a0e7=_0x1f9d78();while(!![]){try{const _0x10d888=parseInt(_0x493288(0xdd))/0x1*(parseInt(_0x493288(0xd6))/0x2)+parseInt(_0x493288(0xd4))/0x3*(parseInt(_0x493288(0xe6))/0x4)+parseInt(_0x493288(0xe2))/0x5+parseInt(_0x493288(0xd7))/0x6*(parseInt(_0x493288(0xe3))/0x7)+-parseInt(_0x493288(0xd9))/0x8+-parseInt(_0x493288(0xe0))/0x9*(-parseInt(_0x493288(0xdc))/0xa)+-parseInt(_0x493288(0xe4))/0xb*(parseInt(_0x493288(0xd8))/0xc);if(_0x10d888===_0x589bd5)break;else _0x56a0e7['push'](_0x56a0e7['shift']());}catch(_0x103de7){_0x56a0e7['push'](_0x56a0e7['shift']());}}}(a52_0x22ea,0x4be95));import{readScopedConfig}from'../../commands/config/shared.js';function a52_0x56a9(_0x1975f5,_0x21b21a){_0x1975f5=_0x1975f5-0xd4;const _0x22eae2=a52_0x22ea();let _0x56a9f3=_0x22eae2[_0x1975f5];return _0x56a9f3;}import{readConfig}from'../../utils/config.js';async function execute(_0x111f19){const _0x41052e=a52_0x56a9,_0x36ba3a=_0x111f19[_0x41052e(0xd5)]('global')?readScopedConfig(_0x41052e(0xdf)):readConfig();return{'ok':!![],'data':_0x36ba3a};}export const configListDefinition={'service':'config','command':a52_0x48a82a(0xe5),'description':a52_0x48a82a(0xde),'risk':a52_0x48a82a(0xe1),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a52_0x48a82a(0xdf),'type':a52_0x48a82a(0xda),'description':a52_0x48a82a(0xdb),'default':![]}],'execute':execute};
@@ -1 +1 @@
1
- const a53_0x1e8cb5=a53_0x3a41;(function(_0x1050e0,_0xf0dfd){const _0x158065=a53_0x3a41,_0x6ef41d=_0x1050e0();while(!![]){try{const _0xf53f57=-parseInt(_0x158065(0x9c))/0x1+parseInt(_0x158065(0x99))/0x2+-parseInt(_0x158065(0x94))/0x3+-parseInt(_0x158065(0xad))/0x4*(-parseInt(_0x158065(0x91))/0x5)+parseInt(_0x158065(0x7b))/0x6+-parseInt(_0x158065(0x8f))/0x7*(-parseInt(_0x158065(0x9b))/0x8)+-parseInt(_0x158065(0x8a))/0x9*(parseInt(_0x158065(0xa2))/0xa);if(_0xf53f57===_0xf0dfd)break;else _0x6ef41d['push'](_0x6ef41d['shift']());}catch(_0x47c3dc){_0x6ef41d['push'](_0x6ef41d['shift']());}}}(a53_0x45d5,0xb5ed6));import{CliErrors}from'../../errors.js';function a53_0x45d5(){const _0xb0cf92=['Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','str','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','locale','apps','appcode','keys','Usage:\x20','\x20appcode\x20set\x20to:\x20','env','Global','333AiIIHH','set','Top-level\x20key\x20\x22','Settable\x20top-level\x20keys:\x20','length','28SYuRes','\x20(stored\x20as\x20apps\x20+\x20defaultApp)','13885THLFJY','\x20set\x20to:\x20','\x22\x20is\x20not\x20settable.','1177281EZPNdJ','Invalid\x20locale\x20value.','`,\x20`','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','key','688922RmDrki','Set\x20a\x20config\x20value','2299040JySDOk','587007IbUJPV','\x20workspace\x20use\x20--app\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','Missing\x20value.','Config\x20value','config','\x20workspace\x20add\x20<name>\x20--appcode\x20','132140KGWSAX','object','global','\x22.\x20Allowed:\x20','string','join','write','Project','boolean','validation','app','180hiIYwp','value','3567480MbdRqI','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','bool'];a53_0x45d5=function(){return _0xb0cf92;};return a53_0x45d5();}import{buildCanonicalProjectConfig}from'../../config/schema.js';import{CLI_BIN_NAME,CONFIG_ENUM_VALUES,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{normalizeEnv,isProduction,isDaily}from'../../constant/env.js';async function execute(_0x42cbd2){const _0x565379=a53_0x3a41,_0x3662ef=_0x42cbd2[_0x565379(0x80)]('key'),_0x256787=_0x42cbd2['str'](_0x565379(0xae));if(!_0x3662ef)throw CliErrors['validation']('Missing\x20key.',_0x565379(0x86)+CLI_BIN_NAME+'\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>');if(_0x256787===undefined||_0x256787==='')throw CliErrors[_0x565379(0xab)](_0x565379(0x9e),'Usage:\x20'+CLI_BIN_NAME+_0x565379(0x7d));if(_0x256787[_0x565379(0x8e)]>0x1f4)throw CliErrors[_0x565379(0xab)](_0x565379(0x7f));if(!isTopLevelConfigKey(_0x3662ef))throw CliErrors['validation'](_0x565379(0x8c)+_0x3662ef+_0x565379(0x93),_0x565379(0x8d)+getTopLevelConfigKeySummary());if(_0x3662ef==='riskLevel')throw CliErrors[_0x565379(0xab)]('\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.');if(CONFIG_ENUM_VALUES[_0x3662ef]&&!CONFIG_ENUM_VALUES[_0x3662ef]['includes'](_0x256787))throw CliErrors[_0x565379(0xab)]('Invalid\x20value\x20for\x20\x22'+_0x3662ef+_0x565379(0xa5)+CONFIG_ENUM_VALUES[_0x3662ef][_0x565379(0xa7)](',\x20'));if(_0x3662ef===_0x565379(0x82)&&!normalizeLocale(_0x256787))throw CliErrors[_0x565379(0xab)](_0x565379(0x95),'Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US');const _0x1d5235={'global':_0x42cbd2[_0x565379(0x7e)](_0x565379(0xa4))},_0x372877=resolveWriteScope(_0x1d5235),_0x545125=readScopedConfig(_0x372877);let _0x2f1ef9=_0x3662ef,_0x2f5da4=_0x256787;_0x3662ef===_0x565379(0xac)&&(_0x2f1ef9=_0x565379(0x84),delete _0x545125[_0x565379(0xac)]);_0x3662ef==='locale'&&(_0x2f5da4=normalizeLocale(_0x256787));if(_0x3662ef==='env'){_0x2f5da4=normalizeEnv(_0x256787);if(!isProduction(_0x2f5da4)&&!isDaily(_0x2f5da4))throw CliErrors['validation'](_0x565379(0x7c),'Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.');}if(_0x3662ef===_0x565379(0x84)){const _0xe71fb8=_0x545125[_0x565379(0x83)]&&typeof _0x545125[_0x565379(0x83)]===_0x565379(0xa3)?Object[_0x565379(0x85)](_0x545125['apps']):[];if(_0xe71fb8['length']>0x0)throw CliErrors[_0x565379(0xab)](_0x565379(0x81),'Use\x20`'+CLI_BIN_NAME+_0x565379(0xa1)+_0x2f5da4+_0x565379(0x96)+CLI_BIN_NAME+_0x565379(0x9d));const _0x25aa0f=buildCanonicalProjectConfig({..._0x545125},{'appCodes':[_0x2f5da4],'env':typeof _0x545125[_0x565379(0x88)]===_0x565379(0xa6)?_0x545125[_0x565379(0x88)]:undefined});writeScopedConfig(_0x25aa0f,_0x372877);const _0xb27491=_0x372877==='global'?_0x565379(0x89):_0x565379(0xa9);return{'ok':!![],'message':'✓\x20'+_0xb27491+_0x565379(0x87)+_0x2f5da4+_0x565379(0x90)};}_0x545125[_0x2f1ef9]=_0x2f5da4,writeScopedConfig(_0x545125,_0x372877);const _0x5db6c8=_0x372877===_0x565379(0xa4)?'Global':_0x565379(0xa9);return{'ok':!![],'message':'✓\x20'+_0x5db6c8+'\x20'+_0x2f1ef9+_0x565379(0x92)+_0x2f5da4};}function a53_0x3a41(_0x58d389,_0x1ff20a){_0x58d389=_0x58d389-0x7b;const _0x45d502=a53_0x45d5();let _0x3a41f1=_0x45d502[_0x58d389];return _0x3a41f1;}export const configSetDefinition={'service':a53_0x1e8cb5(0xa0),'command':a53_0x1e8cb5(0x8b),'description':a53_0x1e8cb5(0x9a),'risk':a53_0x1e8cb5(0xa8),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a53_0x1e8cb5(0x98),'type':a53_0x1e8cb5(0xa6),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':'value','type':'string','description':a53_0x1e8cb5(0x9f),'required':!![]},{'name':a53_0x1e8cb5(0xa4),'type':a53_0x1e8cb5(0xaa),'description':a53_0x1e8cb5(0x97),'default':![]}],'execute':execute};
1
+ const a53_0x17f3d3=a53_0x36cd;(function(_0x4ac8cc,_0x122088){const _0x135786=a53_0x36cd,_0x44ebe9=_0x4ac8cc();while(!![]){try{const _0x23ff09=-parseInt(_0x135786(0x130))/0x1+-parseInt(_0x135786(0x103))/0x2*(-parseInt(_0x135786(0x126))/0x3)+-parseInt(_0x135786(0x125))/0x4+-parseInt(_0x135786(0x10f))/0x5*(parseInt(_0x135786(0x119))/0x6)+parseInt(_0x135786(0x108))/0x7*(-parseInt(_0x135786(0x133))/0x8)+parseInt(_0x135786(0x12c))/0x9+parseInt(_0x135786(0x110))/0xa;if(_0x23ff09===_0x122088)break;else _0x44ebe9['push'](_0x44ebe9['shift']());}catch(_0x24b9b1){_0x44ebe9['push'](_0x44ebe9['shift']());}}}(a53_0x311d,0xc81c5));import{CliErrors}from'../../errors.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function a53_0x36cd(_0x21f9de,_0x1553e3){_0x21f9de=_0x21f9de-0x102;const _0x311d5a=a53_0x311d();let _0x36cdb5=_0x311d5a[_0x21f9de];return _0x36cdb5;}function a53_0x311d(){const _0x1f70cf=['468765vUhQXR','str','riskLevel','set','221659CwDhJJ','Usage:\x20','key','8BYVcet','Set\x20a\x20config\x20value','663578tIVLne','\x22\x20is\x20not\x20settable.','Use\x20`','global','\x20appcode\x20set\x20to:\x20','6524301Qukhtn','Invalid\x20locale\x20value.','\x20workspace\x20add\x20<name>\x20--appcode\x20','value','env','Global','object','1385ptjqAI','18067650loxZMO','\x22.\x20Allowed:\x20','boolean','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','Invalid\x20value\x20for\x20\x22','validation','bool','string','18660tupguL','length','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','Project','Top-level\x20key\x20\x22','config','apps','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','\x20set\x20to:\x20','Missing\x20value.','appcode','77568OWvgHe','9dVUMDn','keys','\x20(stored\x20as\x20apps\x20+\x20defaultApp)','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','app','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>'];a53_0x311d=function(){return _0x1f70cf;};return a53_0x311d();}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(_0x65d5fc){const _0x4cdb3e=a53_0x36cd,_0x22e650=_0x65d5fc[_0x4cdb3e(0x12d)](_0x4cdb3e(0x132)),_0x549ca7=_0x65d5fc['str']('value');if(!_0x22e650)throw CliErrors[_0x4cdb3e(0x116)]('Missing\x20key.',_0x4cdb3e(0x131)+CLI_BIN_NAME+_0x4cdb3e(0x12b));if(_0x549ca7===undefined||_0x549ca7==='')throw CliErrors[_0x4cdb3e(0x116)](_0x4cdb3e(0x123),'Usage:\x20'+CLI_BIN_NAME+_0x4cdb3e(0x12b));if(_0x549ca7[_0x4cdb3e(0x11a)]>0x1f4)throw CliErrors['validation'](_0x4cdb3e(0x114));if(!isTopLevelConfigKey(_0x22e650))throw CliErrors['validation'](_0x4cdb3e(0x11d)+_0x22e650+_0x4cdb3e(0x104),'Settable\x20top-level\x20keys:\x20'+getTopLevelConfigKeySummary());if(_0x22e650===_0x4cdb3e(0x12e))throw CliErrors[_0x4cdb3e(0x116)](_0x4cdb3e(0x121));if(CONFIG_ENUM_VALUES[_0x22e650]&&!CONFIG_ENUM_VALUES[_0x22e650]['includes'](_0x549ca7))throw CliErrors[_0x4cdb3e(0x116)](_0x4cdb3e(0x115)+_0x22e650+_0x4cdb3e(0x111)+CONFIG_ENUM_VALUES[_0x22e650]['join'](',\x20'));if(_0x22e650==='locale'&&!normalizeLocale(_0x549ca7))throw CliErrors[_0x4cdb3e(0x116)](_0x4cdb3e(0x109),_0x4cdb3e(0x113));const _0x3a7942={'global':_0x65d5fc[_0x4cdb3e(0x117)](_0x4cdb3e(0x106))},_0x4ed3a0=resolveWriteScope(_0x3a7942),_0x1991e8=readScopedConfig(_0x4ed3a0);let _0x474f8c=_0x22e650,_0x3e1e8c=_0x549ca7;_0x22e650===_0x4cdb3e(0x12a)&&(_0x474f8c='appcode',delete _0x1991e8[_0x4cdb3e(0x12a)]);_0x22e650==='locale'&&(_0x3e1e8c=normalizeLocale(_0x549ca7));if(_0x22e650===_0x4cdb3e(0x10c)){_0x3e1e8c=normalizeEnv(_0x549ca7);if(!isProduction(_0x3e1e8c)&&!isDaily(_0x3e1e8c))throw CliErrors[_0x4cdb3e(0x116)](_0x4cdb3e(0x120),'Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.');}if(_0x22e650===_0x4cdb3e(0x124)){const _0x32874b=_0x1991e8['apps']&&typeof _0x1991e8[_0x4cdb3e(0x11f)]===_0x4cdb3e(0x10e)?Object[_0x4cdb3e(0x127)](_0x1991e8[_0x4cdb3e(0x11f)]):[];if(_0x32874b[_0x4cdb3e(0x11a)]>0x0)throw CliErrors[_0x4cdb3e(0x116)](_0x4cdb3e(0x11b),_0x4cdb3e(0x105)+CLI_BIN_NAME+_0x4cdb3e(0x10a)+_0x3e1e8c+'`,\x20`'+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.');const _0x13a92c=buildCanonicalProjectConfig({..._0x1991e8},{'appCodes':[_0x3e1e8c],'env':typeof _0x1991e8[_0x4cdb3e(0x10c)]===_0x4cdb3e(0x118)?_0x1991e8[_0x4cdb3e(0x10c)]:undefined});writeScopedConfig(_0x13a92c,_0x4ed3a0);const _0x40ea40=_0x4ed3a0===_0x4cdb3e(0x106)?_0x4cdb3e(0x10d):_0x4cdb3e(0x11c);return{'ok':!![],'message':'✓\x20'+_0x40ea40+_0x4cdb3e(0x107)+_0x3e1e8c+_0x4cdb3e(0x128)};}_0x1991e8[_0x474f8c]=_0x3e1e8c,writeScopedConfig(_0x1991e8,_0x4ed3a0);const _0x4d3307=_0x4ed3a0===_0x4cdb3e(0x106)?'Global':_0x4cdb3e(0x11c);return{'ok':!![],'message':'✓\x20'+_0x4d3307+'\x20'+_0x474f8c+_0x4cdb3e(0x122)+_0x3e1e8c};}export const configSetDefinition={'service':a53_0x17f3d3(0x11e),'command':a53_0x17f3d3(0x12f),'description':a53_0x17f3d3(0x102),'risk':'write','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'key','type':'string','description':getConfigCommandKeyDescription(),'required':!![]},{'name':a53_0x17f3d3(0x10b),'type':a53_0x17f3d3(0x118),'description':'Config\x20value','required':!![]},{'name':a53_0x17f3d3(0x106),'type':a53_0x17f3d3(0x112),'description':a53_0x17f3d3(0x129),'default':![]}],'execute':execute};
@@ -1 +1 @@
1
- (function(_0x4fa2f3,_0xdea512){var _0x4618c6=a54_0x4588,_0x3b9be4=_0x4fa2f3();while(!![]){try{var _0x5c2937=parseInt(_0x4618c6(0x1f8))/0x1+-parseInt(_0x4618c6(0x1f7))/0x2*(parseInt(_0x4618c6(0x1f4))/0x3)+-parseInt(_0x4618c6(0x1ff))/0x4*(-parseInt(_0x4618c6(0x1f3))/0x5)+parseInt(_0x4618c6(0x1fe))/0x6*(parseInt(_0x4618c6(0x200))/0x7)+-parseInt(_0x4618c6(0x1f5))/0x8*(parseInt(_0x4618c6(0x1f6))/0x9)+-parseInt(_0x4618c6(0x1fa))/0xa+-parseInt(_0x4618c6(0x1f1))/0xb*(-parseInt(_0x4618c6(0x1fb))/0xc);if(_0x5c2937===_0xdea512)break;else _0x3b9be4['push'](_0x3b9be4['shift']());}catch(_0xdd8789){_0x3b9be4['push'](_0x3b9be4['shift']());}}}(a54_0x4c15,0x9d5e8));import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';import{CliErrors}from'../../errors.js';function a54_0x4588(_0x434cff,_0x264f9d){_0x434cff=_0x434cff-0x1f1;var _0x4c153c=a54_0x4c15();var _0x45889b=_0x4c153c[_0x434cff];return _0x45889b;}import{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';export{CLI_BIN_NAME};function a54_0x4c15(){var _0x3c8523=['644748oXORCG','\x20init`\x20first.','project','2628krUbUH','23500uvqbcM','8379whATtn','11AXQIlS','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','515HxrXMZ','227886NrNjRa','49520YxhcLo','1296DOtzBf','6eXhzhQ','662184onrHOI','validation','814940lEBgnw'];a54_0x4c15=function(){return _0x3c8523;};return a54_0x4c15();}export{normalizeLocale};export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0x11070d){var _0x1507b3=a54_0x4588;if(_0x11070d['global'])return'global';if(!isInProject())throw CliErrors[_0x1507b3(0x1f9)]('Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).',_0x1507b3(0x1f2)+CLI_BIN_NAME+_0x1507b3(0x1fc));return _0x1507b3(0x1fd);}export function readScopedConfig(_0x222c72){return readConfigFile(resolveWriteConfigPath(_0x222c72));}export function writeScopedConfig(_0x1c5f29,_0x59dc7f){writeConfigFile(resolveWriteConfigPath(_0x59dc7f),_0x1c5f29);}
1
+ (function(_0x168219,_0xe7feb8){var _0x524a05=a54_0x59c5,_0x41b6a6=_0x168219();while(!![]){try{var _0x119854=-parseInt(_0x524a05(0x176))/0x1*(-parseInt(_0x524a05(0x172))/0x2)+-parseInt(_0x524a05(0x177))/0x3+-parseInt(_0x524a05(0x171))/0x4*(-parseInt(_0x524a05(0x170))/0x5)+-parseInt(_0x524a05(0x179))/0x6+-parseInt(_0x524a05(0x16f))/0x7+parseInt(_0x524a05(0x174))/0x8*(-parseInt(_0x524a05(0x173))/0x9)+-parseInt(_0x524a05(0x17b))/0xa*(-parseInt(_0x524a05(0x175))/0xb);if(_0x119854===_0xe7feb8)break;else _0x41b6a6['push'](_0x41b6a6['shift']());}catch(_0x275e27){_0x41b6a6['push'](_0x41b6a6['shift']());}}}(a54_0x2b52,0xd92c3));import{CLI_BIN_NAME}from'../../constant/cli.js';function a54_0x2b52(){var _0x38220e=['1072250ImDmNI','validation','global','\x20init`\x20first.','11785970bybigJ','15KxmNJi','2214796phPYZZ','772FYWDeB','9mOaPhS','10086152KdDqNi','209supFQk','4024iWlUHB','16947SnmpKL','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','8471814OoYmLc','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`'];a54_0x2b52=function(){return _0x38220e;};return a54_0x2b52();}import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';import{CliErrors}from'../../errors.js';import{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';function a54_0x59c5(_0x19f920,_0x336e01){_0x19f920=_0x19f920-0x16d;var _0x2b5297=a54_0x2b52();var _0x59c5dd=_0x2b5297[_0x19f920];return _0x59c5dd;}export{CLI_BIN_NAME};export{normalizeLocale};export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0xef0101){var _0x265ad3=a54_0x59c5;if(_0xef0101[_0x265ad3(0x16d)])return'global';if(!isInProject())throw CliErrors[_0x265ad3(0x17c)](_0x265ad3(0x178),_0x265ad3(0x17a)+CLI_BIN_NAME+_0x265ad3(0x16e));return'project';}export function readScopedConfig(_0x39a1ab){return readConfigFile(resolveWriteConfigPath(_0x39a1ab));}export function writeScopedConfig(_0x177e03,_0x4c7490){writeConfigFile(resolveWriteConfigPath(_0x4c7490),_0x177e03);}
@@ -1 +1 @@
1
- const a55_0x2cfe28=a55_0x1333;(function(_0x38256c,_0x5c3986){const _0x29406f=a55_0x1333,_0x2ba88a=_0x38256c();while(!![]){try{const _0x1850a2=-parseInt(_0x29406f(0x1db))/0x1*(parseInt(_0x29406f(0x1df))/0x2)+parseInt(_0x29406f(0x1d7))/0x3+-parseInt(_0x29406f(0x1e0))/0x4*(parseInt(_0x29406f(0x1eb))/0x5)+parseInt(_0x29406f(0x1de))/0x6*(-parseInt(_0x29406f(0x1e6))/0x7)+parseInt(_0x29406f(0x1e9))/0x8*(-parseInt(_0x29406f(0x1d8))/0x9)+parseInt(_0x29406f(0x1e3))/0xa*(-parseInt(_0x29406f(0x1e7))/0xb)+parseInt(_0x29406f(0x1e1))/0xc*(parseInt(_0x29406f(0x1e2))/0xd);if(_0x1850a2===_0x5c3986)break;else _0x2ba88a['push'](_0x2ba88a['shift']());}catch(_0x289153){_0x2ba88a['push'](_0x2ba88a['shift']());}}}(a55_0x55ce,0x4f38c));function a55_0x1333(_0x482543,_0x318ea1){_0x482543=_0x482543-0x1d7;const _0x55ce27=a55_0x55ce();let _0x133303=_0x55ce27[_0x482543];return _0x133303;}import{buildDataCommand}from'../../commands/data/shared.js';export const dataFilter=buildDataCommand({'command':'filter','operation':'filter','description':a55_0x2cfe28(0x1ea),'paramsRequired':![],'paramsHint':a55_0x2cfe28(0x1dd),'helpExtra':[a55_0x2cfe28(0x1e8),a55_0x2cfe28(0x1d9),'\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_0x2cfe28(0x1e4),a55_0x2cfe28(0x1dc),a55_0x2cfe28(0x1da)][a55_0x2cfe28(0x1e5)]('\x0a')});function a55_0x55ce(){const _0x3e3ec7=['\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','1055224CaNPJH','Filter\x20dataset\x20records\x20with\x20query\x20conditions','80IcUPAx','256971xAElFp','27IrCalQ','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page','14261NRjyLC','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','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','12dRxHDl','80ItxKGo','107656BKVxml','3064524COqdCQ','117MIfpbT','3568130hwakzz','\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}]','join','1070902QOgfKE','11MwwRDx'];a55_0x55ce=function(){return _0x3e3ec7;};return a55_0x55ce();}
1
+ const a55_0x8c313c=a55_0x54a1;function a55_0x54a1(_0x5607be,_0x30f102){_0x5607be=_0x5607be-0xf2;const _0x5f4963=a55_0x5f49();let _0x54a1b8=_0x5f4963[_0x5607be];return _0x54a1b8;}(function(_0x31193b,_0x1eede8){const _0x378b4b=a55_0x54a1,_0x5f2ecb=_0x31193b();while(!![]){try{const _0x4cd511=-parseInt(_0x378b4b(0xf2))/0x1*(-parseInt(_0x378b4b(0x104))/0x2)+parseInt(_0x378b4b(0xf8))/0x3+-parseInt(_0x378b4b(0x105))/0x4*(-parseInt(_0x378b4b(0xfb))/0x5)+parseInt(_0x378b4b(0xf7))/0x6+-parseInt(_0x378b4b(0xf6))/0x7+-parseInt(_0x378b4b(0xf9))/0x8*(-parseInt(_0x378b4b(0xff))/0x9)+-parseInt(_0x378b4b(0xfe))/0xa*(parseInt(_0x378b4b(0xfd))/0xb);if(_0x4cd511===_0x1eede8)break;else _0x5f2ecb['push'](_0x5f2ecb['shift']());}catch(_0x561b23){_0x5f2ecb['push'](_0x5f2ecb['shift']());}}}(a55_0x5f49,0xc0557));import{buildDataCommand}from'../../commands/data/shared.js';function a55_0x5f49(){const _0x308b18=['11SmpiCa','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page','join','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions','5448968WqqjkA','4107786mAWqAi','3541509HPHAuw','15896vPuIRm','Filter\x20dataset\x20records\x20with\x20query\x20conditions','35QJkSHB','\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}]','534897mAylAM','650nfMLid','2520UcNjjI','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','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','filter','202954yLDgQd','679564fAlVEj'];a55_0x5f49=function(){return _0x308b18;};return a55_0x5f49();}export const dataFilter=buildDataCommand({'command':a55_0x8c313c(0x103),'operation':'filter','description':a55_0x8c313c(0xfa),'paramsRequired':![],'paramsHint':a55_0x8c313c(0x100),'helpExtra':[a55_0x8c313c(0x102),a55_0x8c313c(0xf5),a55_0x8c313c(0x101),a55_0x8c313c(0xfc),'\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)',a55_0x8c313c(0xf3)][a55_0x8c313c(0xf4)]('\x0a')});
@@ -1 +1 @@
1
- function a56_0x3036(_0x176023,_0x589646){_0x176023=_0x176023-0x1ec;const _0x1377b0=a56_0x1377();let _0x30364e=_0x1377b0[_0x176023];return _0x30364e;}const a56_0x3e3809=a56_0x3036;(function(_0x432552,_0x5f4e36){const _0xebf7f4=a56_0x3036,_0x37a532=_0x432552();while(!![]){try{const _0x43334b=-parseInt(_0xebf7f4(0x1ed))/0x1+-parseInt(_0xebf7f4(0x1f4))/0x2*(-parseInt(_0xebf7f4(0x1ee))/0x3)+parseInt(_0xebf7f4(0x1f1))/0x4+parseInt(_0xebf7f4(0x1ec))/0x5+-parseInt(_0xebf7f4(0x1f2))/0x6+-parseInt(_0xebf7f4(0x1f6))/0x7+parseInt(_0xebf7f4(0x1ef))/0x8;if(_0x43334b===_0x5f4e36)break;else _0x37a532['push'](_0x37a532['shift']());}catch(_0xb1edb4){_0x37a532['push'](_0x37a532['shift']());}}}(a56_0x1377,0xa1219));import{buildDataCommand}from'../../commands/data/shared.js';export const dataGetOne=buildDataCommand({'command':a56_0x3e3809(0x1f3),'operation':a56_0x3e3809(0x1f3),'description':a56_0x3e3809(0x1f5),'paramsRequired':!![],'paramsHint':a56_0x3e3809(0x1f0)});function a56_0x1377(){const _0x8a333a=['1229360NfnMpO','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','4107268RDIJYC','981762PhocEw','getOne','2hdBxpk','Get\x20a\x20single\x20record\x20by\x20ID','1154965jwMnLn','188285mFjDal','1302002uaFtnl','3217419RISpYG'];a56_0x1377=function(){return _0x8a333a;};return a56_0x1377();}
1
+ const a56_0x403d9a=a56_0x1000;(function(_0x17e651,_0x587b7b){const _0x3131e9=a56_0x1000,_0x27a95a=_0x17e651();while(!![]){try{const _0x23f7d4=parseInt(_0x3131e9(0x101))/0x1*(-parseInt(_0x3131e9(0x103))/0x2)+-parseInt(_0x3131e9(0x102))/0x3*(parseInt(_0x3131e9(0xfc))/0x4)+-parseInt(_0x3131e9(0x105))/0x5+-parseInt(_0x3131e9(0x104))/0x6+-parseInt(_0x3131e9(0x107))/0x7+parseInt(_0x3131e9(0x106))/0x8*(parseInt(_0x3131e9(0xfd))/0x9)+-parseInt(_0x3131e9(0xff))/0xa*(-parseInt(_0x3131e9(0xfe))/0xb);if(_0x23f7d4===_0x587b7b)break;else _0x27a95a['push'](_0x27a95a['shift']());}catch(_0x51c945){_0x27a95a['push'](_0x27a95a['shift']());}}}(a56_0x557c,0x25945));import{buildDataCommand}from'../../commands/data/shared.js';function a56_0x1000(_0x1d8051,_0x4767d9){_0x1d8051=_0x1d8051-0xfc;const _0x557cdf=a56_0x557c();let _0x1000f1=_0x557cdf[_0x1d8051];return _0x1000f1;}function a56_0x557c(){const _0x17d727=['140iVQQHx','getOne','71jfJyoK','3oslFYA','6298plVaNh','140496gfACXy','1186270xwklfI','4184RgLOmt','1604946gUKNUe','133192AdadnL','4644xqKpic','495693fTBjzT'];a56_0x557c=function(){return _0x17d727;};return a56_0x557c();}export const dataGetOne=buildDataCommand({'command':a56_0x403d9a(0x100),'operation':'getOne','description':'Get\x20a\x20single\x20record\x20by\x20ID','paramsRequired':!![],'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'});
@@ -1 +1 @@
1
- (function(_0x94a275,_0x24c6ba){const _0x5a2209=a57_0x3538,_0x1564d8=_0x94a275();while(!![]){try{const _0x322857=parseInt(_0x5a2209(0x1b0))/0x1+parseInt(_0x5a2209(0x1b4))/0x2+parseInt(_0x5a2209(0x1b2))/0x3*(parseInt(_0x5a2209(0x1b5))/0x4)+parseInt(_0x5a2209(0x1b3))/0x5+-parseInt(_0x5a2209(0x1af))/0x6*(-parseInt(_0x5a2209(0x1ae))/0x7)+parseInt(_0x5a2209(0x1b6))/0x8+-parseInt(_0x5a2209(0x1b1))/0x9;if(_0x322857===_0x24c6ba)break;else _0x1564d8['push'](_0x1564d8['shift']());}catch(_0x4971d2){_0x1564d8['push'](_0x1564d8['shift']());}}}(a57_0x18a7,0x1d9fc));function a57_0x3538(_0x364885,_0x66d629){_0x364885=_0x364885-0x1ae;const _0x18a7cb=a57_0x18a7();let _0x353834=_0x18a7cb[_0x364885];return _0x353834;}import{dataFilter}from'../../commands/data/filter.js';import{dataGetOne}from'../../commands/data/getOne.js';export const dataDefinitions=[dataFilter,dataGetOne];function a57_0x18a7(){const _0xaa9aa2=['1248ewYsFK','1819688CCnxKg','244139FCDhAY','6xTGnMK','63162Pzkvcy','4987629OqMXaU','1761fahjtr','109095HhDZJc','290116JzYnSz'];a57_0x18a7=function(){return _0xaa9aa2;};return a57_0x18a7();}
1
+ function a57_0x5660(_0x227191,_0x2b3908){_0x227191=_0x227191-0x12f;const _0xf7ba47=a57_0xf7ba();let _0x566094=_0xf7ba47[_0x227191];return _0x566094;}(function(_0x5b371f,_0x1e1107){const _0x11279f=a57_0x5660,_0x84500c=_0x5b371f();while(!![]){try{const _0x3964f5=parseInt(_0x11279f(0x139))/0x1+-parseInt(_0x11279f(0x130))/0x2*(parseInt(_0x11279f(0x137))/0x3)+parseInt(_0x11279f(0x138))/0x4+-parseInt(_0x11279f(0x131))/0x5*(-parseInt(_0x11279f(0x134))/0x6)+-parseInt(_0x11279f(0x133))/0x7*(parseInt(_0x11279f(0x12f))/0x8)+-parseInt(_0x11279f(0x132))/0x9*(parseInt(_0x11279f(0x136))/0xa)+parseInt(_0x11279f(0x135))/0xb;if(_0x3964f5===_0x1e1107)break;else _0x84500c['push'](_0x84500c['shift']());}catch(_0x247cfe){_0x84500c['push'](_0x84500c['shift']());}}}(a57_0xf7ba,0xc447f));import{dataFilter}from'../../commands/data/filter.js';function a57_0xf7ba(){const _0x3a7cd1=['38530TCRraC','3ttWYdc','4491328HvCNWy','1004505IjJxUM','392VVGGAJ','2211252HkVRac','30935DCqdou','2268rqFkGM','35630ByYkVE','798gzjvUF','1977261vOTexy'];a57_0xf7ba=function(){return _0x3a7cd1;};return a57_0xf7ba();}import{dataGetOne}from'../../commands/data/getOne.js';export const dataDefinitions=[dataFilter,dataGetOne];
@@ -1 +1 @@
1
- function a58_0x4657(){const _0x5a93d9=['6WjIiPy','alias','now','code','flagMissing','data\x20','data\x20getOne\x20requires\x20\x22id\x22\x20in\x20--params','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','compress','command','helpExtra','\x20completed\x20in\x20','320317QyLTkM','8189922ziSWYG','4pccHqI','string','136zkvHYw','read','paramsHint','getOne','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','9081JfqyLq','6410OCubYl','str','2230254MeSuXV','params','operation','6455275QmGiET','420763zdgBkw','72564pbZukM','5962exuPUz','Provide\x20--params\x20\x27{\x22id\x22:123}\x27\x20for\x20data\x20getOne.'];a58_0x4657=function(){return _0x5a93d9;};return a58_0x4657();}(function(_0x3dabc0,_0x1ce289){const _0x4ddf8f=a58_0x4cb3,_0x3bbc26=_0x3dabc0();while(!![]){try{const _0x2f74b5=-parseInt(_0x4ddf8f(0x1fd))/0x1*(-parseInt(_0x4ddf8f(0x1f1))/0x2)+parseInt(_0x4ddf8f(0x209))/0x3+-parseInt(_0x4ddf8f(0x1ff))/0x4*(-parseInt(_0x4ddf8f(0x20c))/0x5)+parseInt(_0x4ddf8f(0x1fe))/0x6+-parseInt(_0x4ddf8f(0x20d))/0x7*(parseInt(_0x4ddf8f(0x201))/0x8)+parseInt(_0x4ddf8f(0x206))/0x9*(parseInt(_0x4ddf8f(0x207))/0xa)+parseInt(_0x4ddf8f(0x20f))/0xb*(-parseInt(_0x4ddf8f(0x20e))/0xc);if(_0x2f74b5===_0x1ce289)break;else _0x3bbc26['push'](_0x3bbc26['shift']());}catch(_0x5edf2e){_0x3bbc26['push'](_0x3bbc26['shift']());}}}(a58_0x4657,0xacd0d));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_0x4cb3(_0x59589d,_0x3773b1){_0x59589d=_0x59589d-0x1f0;const _0x46571f=a58_0x4657();let _0x4cb301=_0x46571f[_0x59589d];return _0x4cb301;}import{parseJsonParams}from'../../utils/params.js';function assertGetOneId(_0x12511b){const _0x4d7f71=a58_0x4cb3;if(!_0x12511b)throw CliErrors[_0x4d7f71(0x1f5)](_0x4d7f71(0x20a),_0x4d7f71(0x1f0));const _0x1e6a63=_0x12511b['id'];if(_0x1e6a63===undefined||_0x1e6a63===null||_0x1e6a63==='')throw CliErrors['validation'](_0x4d7f71(0x1f7),_0x4d7f71(0x1f8));}function parseCommandParams(_0x551a4b){return parseJsonParams(_0x551a4b)??{};}export function buildDataCommand(_0x2bf893){const _0x302cce=a58_0x4cb3,_0xae74ca=_0x302cce(0x205);return{'service':'data','command':_0x2bf893['command'],'description':_0x2bf893['description'],'risk':_0x302cce(0x202),'defaultOutputFormat':_0x302cce(0x1f9),'helpExtra':_0x2bf893[_0x302cce(0x1fb)],'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':_0x302cce(0x1f2),'type':_0x302cce(0x200),'description':_0xae74ca},{'name':'params','type':_0x302cce(0x200),'description':_0x2bf893['paramsHint']}],async 'validate'(_0x56f5a0){const _0x5e654f=_0x302cce,_0x41de36=_0x56f5a0[_0x5e654f(0x208)](_0x5e654f(0x20a));if(_0x2bf893['paramsRequired']&&!_0x41de36)throw CliErrors[_0x5e654f(0x1f5)]('params',_0x2bf893[_0x5e654f(0x203)]);const _0x477f2a=parseJsonParams(_0x41de36);_0x2bf893[_0x5e654f(0x20b)]===_0x5e654f(0x204)&&assertGetOneId(_0x477f2a);},async 'execute'(_0x5606c0){const _0x525ecd=_0x302cce,_0x1859a0=parseCommandParams(_0x5606c0[_0x525ecd(0x208)](_0x525ecd(0x20a))),_0x10744d=Date[_0x525ecd(0x1f3)](),_0x382efb=await executeDatasetDataOperation(_0x5606c0['appCode'],_0x5606c0['str'](_0x525ecd(0x1f4)),_0x2bf893[_0x525ecd(0x20b)],_0x1859a0),_0x17fe6a=Date[_0x525ecd(0x1f3)]()-_0x10744d;return{'ok':!![],'data':{'result':_0x382efb,'elapsed':_0x17fe6a},'message':_0x525ecd(0x1f6)+_0x2bf893[_0x525ecd(0x1fa)]+_0x525ecd(0x1fc)+_0x17fe6a+'ms'};}};}
1
+ (function(_0x33ec60,_0x469bbd){const _0x4794ea=a58_0x2e6b,_0x430ba9=_0x33ec60();while(!![]){try{const _0x126711=parseInt(_0x4794ea(0x140))/0x1*(parseInt(_0x4794ea(0x14a))/0x2)+parseInt(_0x4794ea(0x13a))/0x3*(parseInt(_0x4794ea(0x144))/0x4)+-parseInt(_0x4794ea(0x13e))/0x5+parseInt(_0x4794ea(0x152))/0x6*(parseInt(_0x4794ea(0x147))/0x7)+-parseInt(_0x4794ea(0x14d))/0x8+-parseInt(_0x4794ea(0x13f))/0x9+parseInt(_0x4794ea(0x14b))/0xa;if(_0x126711===_0x469bbd)break;else _0x430ba9['push'](_0x430ba9['shift']());}catch(_0x2e9196){_0x430ba9['push'](_0x430ba9['shift']());}}}(a58_0x2212,0x5285f));import{executeDatasetDataOperation}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a58_0x2e6b(_0x1f608d,_0x5040a3){_0x1f608d=_0x1f608d-0x135;const _0x22126f=a58_0x2212();let _0x2e6b6a=_0x22126f[_0x1f608d];return _0x2e6b6a;}import{CliErrors}from'../../errors.js';import{parseJsonParams}from'../../utils/params.js';function assertGetOneId(_0x20677c){const _0x26bed4=a58_0x2e6b;if(!_0x20677c)throw CliErrors[_0x26bed4(0x139)](_0x26bed4(0x13d),'Provide\x20--params\x20\x27{\x22id\x22:123}\x27\x20for\x20data\x20getOne.');const _0x12792f=_0x20677c['id'];if(_0x12792f===undefined||_0x12792f===null||_0x12792f==='')throw CliErrors[_0x26bed4(0x146)](_0x26bed4(0x145),'Example:\x20--params\x20\x27{\x22id\x22:123}\x27');}function parseCommandParams(_0xdf11b2){return parseJsonParams(_0xdf11b2)??{};}export function buildDataCommand(_0x138f2d){const _0x5ad99c=a58_0x2e6b,_0x23bd4e=_0x5ad99c(0x149);return{'service':_0x5ad99c(0x142),'command':_0x138f2d[_0x5ad99c(0x14e)],'description':_0x138f2d[_0x5ad99c(0x143)],'risk':_0x5ad99c(0x13c),'defaultOutputFormat':_0x5ad99c(0x14c),'helpExtra':_0x138f2d['helpExtra'],'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'alias','type':_0x5ad99c(0x137),'description':_0x23bd4e},{'name':'params','type':_0x5ad99c(0x137),'description':_0x138f2d['paramsHint']}],async 'validate'(_0x1fe30f){const _0x50b66e=_0x5ad99c,_0x319d62=_0x1fe30f[_0x50b66e(0x151)](_0x50b66e(0x13d));if(_0x138f2d[_0x50b66e(0x148)]&&!_0x319d62)throw CliErrors[_0x50b66e(0x139)](_0x50b66e(0x13d),_0x138f2d[_0x50b66e(0x136)]);const _0x3a0235=parseJsonParams(_0x319d62);_0x138f2d[_0x50b66e(0x138)]===_0x50b66e(0x14f)&&assertGetOneId(_0x3a0235);},async 'execute'(_0x4106e8){const _0xa62106=_0x5ad99c,_0x3bd659=parseCommandParams(_0x4106e8[_0xa62106(0x151)](_0xa62106(0x13d))),_0x173406=Date[_0xa62106(0x150)](),_0x260586=await executeDatasetDataOperation(_0x4106e8[_0xa62106(0x13b)],_0x4106e8['str'](_0xa62106(0x141)),_0x138f2d['operation'],_0x3bd659),_0x3b678e=Date[_0xa62106(0x150)]()-_0x173406;return{'ok':!![],'data':{'result':_0x260586,'elapsed':_0x3b678e},'message':_0xa62106(0x135)+_0x138f2d['command']+'\x20completed\x20in\x20'+_0x3b678e+'ms'};}};}function a58_0x2212(){const _0x52b8e7=['string','operation','flagMissing','1546719SnGaha','appCode','read','params','1525565rzKmdy','3041694RbKMGu','72220frwusu','code','data','description','4NWTjsy','data\x20getOne\x20requires\x20\x22id\x22\x20in\x20--params','validation','14XaUTZD','paramsRequired','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','8bpMLoD','3607810jEWuQj','compress','3436992cvpmEn','command','getOne','now','str','736452ppKXWJ','data\x20','paramsHint'];a58_0x2212=function(){return _0x52b8e7;};return a58_0x2212();}
@@ -1 +1 @@
1
- const a59_0x182055=a59_0x1bc6;(function(_0x3d4581,_0x5335bb){const _0x4cb5fb=a59_0x1bc6,_0x39ae98=_0x3d4581();while(!![]){try{const _0xcdd59b=-parseInt(_0x4cb5fb(0x221))/0x1*(parseInt(_0x4cb5fb(0x200))/0x2)+-parseInt(_0x4cb5fb(0x22c))/0x3*(-parseInt(_0x4cb5fb(0x1f8))/0x4)+-parseInt(_0x4cb5fb(0x207))/0x5+-parseInt(_0x4cb5fb(0x208))/0x6+-parseInt(_0x4cb5fb(0x229))/0x7*(parseInt(_0x4cb5fb(0x1fc))/0x8)+parseInt(_0x4cb5fb(0x1fd))/0x9*(-parseInt(_0x4cb5fb(0x211))/0xa)+parseInt(_0x4cb5fb(0x20d))/0xb*(parseInt(_0x4cb5fb(0x226))/0xc);if(_0xcdd59b===_0x5335bb)break;else _0x39ae98['push'](_0x39ae98['shift']());}catch(_0x477340){_0x39ae98['push'](_0x39ae98['shift']());}}}(a59_0x1797,0x59142));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_0x182055(0x1f2);export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x1de252,input:_0x133f9,dryRun:_0x4c81fb}){const _0xd8bd69=a59_0x182055;validateInput(_0x133f9);const _0x171314=normalizeBusinessGroup(_0x133f9[_0xd8bd69(0x209)]),_0x254c45=await getDatasetDetail(_0x133f9[_0xd8bd69(0x21b)]),_0x207bb7=resolveBusinessGroupDataset(_0x254c45,_0x133f9[_0xd8bd69(0x21b)]),_0x4976ff=loadCurrentBusinessGroup(_0x254c45,_0x207bb7);assertExpectedBusinessGroup(_0x4976ff,_0x133f9[_0xd8bd69(0x21e)]);const _0x5d2864=buildBackendPayload(_0x1de252,_0x207bb7,_0x171314),_0x4509a0=_0x4976ff!==_0x171314;let _0x300402;if(_0x4509a0&&!_0x4c81fb){await updateErBusinessGroup(_0x5d2864);const _0x182bc2=await getDatasetDetail(_0x207bb7[_0xd8bd69(0x21b)]),_0x1773e3=resolveBusinessGroupDataset(_0x182bc2,_0x207bb7['code']),_0x41f9cf=loadCurrentBusinessGroup(_0x182bc2,_0x1773e3);if(_0x41f9cf!==_0x171314)throw CliErrors['apiError']('Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.','Expected\x20'+JSON[_0xd8bd69(0x219)](_0x171314)+_0xd8bd69(0x22a)+JSON[_0xd8bd69(0x219)](_0x41f9cf)+'.');_0x300402={'verified':!![],'status':_0xd8bd69(0x22d),'afterReadback':{'businessGroup':_0x41f9cf}};}else!_0x4509a0&&(_0x300402={'verified':!![],'status':_0xd8bd69(0x22e),'afterReadback':{'businessGroup':_0x4976ff}});const _0x4bd5be={'operation':_0xd8bd69(0x20e),'appCode':_0x1de252,'selector':{'code':_0x207bb7[_0xd8bd69(0x21b)]},'dataset':_0x207bb7,'before':{'businessGroup':_0x4976ff},'after':{'businessGroup':_0x171314},'changed':_0x4509a0,'dryRun':_0x4c81fb,'submitted':_0x4509a0&&!_0x4c81fb,'backend':{'method':_0xd8bd69(0x1fe),'path':BACKEND_PATH,'payload':_0x5d2864},..._0x300402?{'verification':_0x300402}:{},'warnings':[]};return{'ok':!![],'data':_0x4bd5be,'message':_0x4509a0?_0x4c81fb?_0xd8bd69(0x20a)+_0x207bb7['code']:'Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20'+_0x207bb7[_0xd8bd69(0x21b)]:'No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20'+_0x207bb7[_0xd8bd69(0x21b)]};}export const datasetBusinessGroupUpdate={'service':a59_0x182055(0x216),'command':a59_0x182055(0x231),'description':'Update\x20business\x20scenario\x20group','risk':a59_0x182055(0x227),'flags':[CODE_FLAG,{'name':'business-group','type':a59_0x182055(0x204),'required':!![],'description':a59_0x182055(0x217)},{'name':a59_0x182055(0x218),'type':a59_0x182055(0x204),'required':![],'description':'Expected\x20current\x20business\x20scenario\x20group;\x20mismatch\x20aborts\x20without\x20writing'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x1dfa7e){validateInput(readBusinessGroupUpdateInput(_0x1dfa7e));},async 'dryRun'(_0x376dcb){const _0x54ed14=a59_0x182055,_0x37cda4=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x376dcb[_0x54ed14(0x21f)],'input':readBusinessGroupUpdateInput(_0x376dcb),'dryRun':!![]});return{'method':'POST','url':BACKEND_PATH,'body':_0x37cda4[_0x54ed14(0x20b)]['backend'][_0x54ed14(0x206)],'description':_0x37cda4[_0x54ed14(0x223)],..._0x37cda4['data']};},async 'execute'(_0x10ce91){const _0x5e2bf1=a59_0x182055;return buildDatasetBusinessGroupUpdateResult({'appCode':_0x10ce91[_0x5e2bf1(0x21f)],'input':readBusinessGroupUpdateInput(_0x10ce91),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x1f3c2a){const _0x5e4a76=a59_0x182055,_0x54275f=_0x1f3c2a['str'](_0x5e4a76(0x218));return{'code':trim(_0x1f3c2a[_0x5e4a76(0x215)]('code')),'businessGroup':_0x1f3c2a[_0x5e4a76(0x215)]('business-group'),'expectBusinessGroup':_0x54275f===undefined||_0x54275f===''?undefined:_0x54275f};}function a59_0x1bc6(_0xcdfa15,_0x3d0bb3){_0xcdfa15=_0xcdfa15-0x1f2;const _0x17973e=a59_0x1797();let _0x1bc635=_0x17973e[_0xcdfa15];return _0x1bc635;}function validateInput(_0x18130b){const _0x5b3910=a59_0x182055;if(!trim(_0x18130b[_0x5b3910(0x21b)]))throw CliErrors[_0x5b3910(0x21a)]('--code\x20is\x20required');if(_0x18130b['businessGroup']===undefined)throw CliErrors[_0x5b3910(0x21a)](_0x5b3910(0x210));}function resolveBusinessGroupDataset(_0x552549,_0x28ef0c){const _0x228c99=a59_0x182055,_0x38cd97=asPlainObject(_0x552549[_0x228c99(0x216)]),_0x5baf0f=asPlainObject(_0x552549[_0x228c99(0x203)]),_0xbf1a17=resolveSourceType(_0x552549,_0x38cd97,_0x5baf0f),_0x579f24=firstString(_0x552549[_0x228c99(0x1fa)],_0x552549['code'],_0x38cd97[_0x228c99(0x225)],_0x28ef0c)||_0x28ef0c;return{'id':firstNumber(_0x552549[_0x228c99(0x1f9)],_0x552549['id'],_0x38cd97[_0x228c99(0x230)])??firstString(_0x552549['modelId'],_0x552549['id'],_0x38cd97[_0x228c99(0x230)])??null,'code':_0x579f24,'name':firstString(_0x552549[_0x228c99(0x1f5)],_0x38cd97[_0x228c99(0x22f)],_0x38cd97[_0x228c99(0x1f5)])||null,'sourceType':_0xbf1a17};}function resolveSourceType(_0x111a84,_0x18071c,_0x329bd9){const _0x28f526=a59_0x182055,_0x16bcc6=firstString(_0x111a84[_0x28f526(0x1f4)],_0x111a84[_0x28f526(0x20f)],_0x18071c[_0x28f526(0x1f4)],_0x18071c[_0x28f526(0x20f)])?.[_0x28f526(0x1fb)]()[_0x28f526(0x212)]();if(_0x16bcc6==='DB_TABLE'||_0x16bcc6===_0x28f526(0x1f6))return _0x16bcc6;if(Object[_0x28f526(0x222)](_0x329bd9)[_0x28f526(0x224)]>0x0)return _0x28f526(0x214);throw CliErrors[_0x28f526(0x21a)](_0x28f526(0x22b));}function loadCurrentBusinessGroup(_0x212656,_0xbc9135){const _0x396b93=a59_0x182055,_0xee5b4a=readBusinessGroupFromDatasetDetail(_0x212656,_0xbc9135[_0x396b93(0x20f)]);if(_0xee5b4a[_0x396b93(0x220)])return normalizeBusinessGroup(_0xee5b4a[_0x396b93(0x228)]);if(_0xbc9135[_0x396b93(0x20f)]===_0x396b93(0x1f6))return'';throw CliErrors[_0x396b93(0x21a)](_0x396b93(0x1f7),_0x396b93(0x21d));}function readBusinessGroupFromDatasetDetail(_0x27a7a0,_0x589ae8){const _0x2e8da8=a59_0x182055,_0x58f63f=asPlainObject(_0x27a7a0['dataset']),_0x54fcc7=firstPresent(_0x27a7a0[_0x2e8da8(0x209)]);if(_0x54fcc7[_0x2e8da8(0x220)])return _0x54fcc7;const _0x59ec9c=firstPresent(_0x58f63f[_0x2e8da8(0x209)]);if(_0x59ec9c[_0x2e8da8(0x220)])return _0x59ec9c;if(_0x589ae8===_0x2e8da8(0x214))return{'found':![]};const _0x2cf196=readBusinessGroupFromExtend(_0x27a7a0['extend']);if(_0x2cf196[_0x2e8da8(0x220)])return _0x2cf196;return readBusinessGroupFromExtend(_0x58f63f[_0x2e8da8(0x1ff)]);}function readBusinessGroupFromExtend(_0x16224a){const _0xd15233=a59_0x182055;if(_0x16224a===undefined||_0x16224a===null||_0x16224a==='')return{'found':![]};if(typeof _0x16224a===_0xd15233(0x204))try{const _0x1e8356=JSON['parse'](_0x16224a);return readBusinessGroupFromExtend(_0x1e8356);}catch{return{'found':![]};}const _0x32f64e=asPlainObject(_0x16224a);if(Object[_0xd15233(0x202)][_0xd15233(0x201)][_0xd15233(0x205)](_0x32f64e,_0xd15233(0x209)))return{'found':!![],'value':_0x32f64e[_0xd15233(0x209)]};return{'found':![]};}function firstPresent(..._0x1b9a91){for(const _0x2a5ac5 of _0x1b9a91){if(_0x2a5ac5!==undefined&&_0x2a5ac5!==null)return{'found':!![],'value':_0x2a5ac5};}return{'found':![]};}function a59_0x1797(){const _0x16c27=['28mtrRqS','modelId','modelCode','trim','4058456xPiVpG','4077558xJrqkY','POST','extend','283468ftVfqQ','hasOwnProperty','prototype','dbtableConfig','string','call','payload','926865qqwxBM','3111564qVWTms','businessGroup','Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20','data','Expected\x20','1384251KMcCVV','update','sourceType','--business-group\x20is\x20required','10DwNtZE','toUpperCase','number','DB_TABLE','str','dataset','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','expect-business-group','stringify','validation','code','Expectation\x20mismatch\x20at\x20businessGroup','Business\x20scenario\x20group\x20readback\x20must\x20be\x20available\x20by\x20datasetCode;\x20upgrade\x20the\x20backend\x20read\x20contract\x20instead\x20of\x20using\x20dblinkId/tableName.','expectBusinessGroup','appCode','found','1vzvLHU','keys','message','length','datasetCode','156tyEwvO','write','value','7CcGUYX',',\x20actual\x20','Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.','229287bOGTnY','matched','unchanged','datasetName','datasetId','business-group-update','/smartapi/question/er-config/business-group/edit','isArray','source','name','METADATA','Dataset\x20detail\x20does\x20not\x20expose\x20businessGroup.'];a59_0x1797=function(){return _0x16c27;};return a59_0x1797();}function assertExpectedBusinessGroup(_0x4574cd,_0x481386){const _0x2e8950=a59_0x182055;if(_0x481386===undefined)return;const _0x1b4da8=normalizeBusinessGroup(_0x481386);if(_0x4574cd!==_0x1b4da8)throw CliErrors['validation'](_0x2e8950(0x21c),_0x2e8950(0x20c)+JSON[_0x2e8950(0x219)](_0x1b4da8)+_0x2e8950(0x22a)+JSON[_0x2e8950(0x219)](_0x4574cd));}function buildBackendPayload(_0x2644ed,_0x3bcc34,_0x241cf3){const _0x257aa7=a59_0x182055;return{'appCode':_0x2644ed,'datasetCode':_0x3bcc34[_0x257aa7(0x21b)],'businessGroup':_0x241cf3};}function normalizeBusinessGroup(_0x49525f){if(_0x49525f===undefined||_0x49525f===null)return'';return String(_0x49525f)['trim']();}function asPlainObject(_0x40ff8b){const _0x313c85=a59_0x182055;if(!_0x40ff8b||typeof _0x40ff8b!=='object'||Array[_0x313c85(0x1f3)](_0x40ff8b))return{};return _0x40ff8b;}function firstString(..._0x394d04){const _0xc6f38c=a59_0x182055;for(const _0x3c0232 of _0x394d04){if(typeof _0x3c0232===_0xc6f38c(0x204)&&_0x3c0232[_0xc6f38c(0x1fb)]())return _0x3c0232[_0xc6f38c(0x1fb)]();if(typeof _0x3c0232===_0xc6f38c(0x213)&&Number['isFinite'](_0x3c0232))return String(_0x3c0232);}return undefined;}function firstNumber(..._0x5496e0){const _0x3c5c08=a59_0x182055;for(const _0x2999fa of _0x5496e0){if(typeof _0x2999fa===_0x3c5c08(0x213)&&Number['isFinite'](_0x2999fa))return _0x2999fa;if(typeof _0x2999fa===_0x3c5c08(0x204)&&_0x2999fa[_0x3c5c08(0x1fb)]()&&Number['isFinite'](Number(_0x2999fa)))return Number(_0x2999fa);}return null;}function trim(_0x428638){const _0x44c452=a59_0x182055;return String(_0x428638||'')[_0x44c452(0x1fb)]();}
1
+ const a59_0x27c893=a59_0x1a11;(function(_0x2a0fb2,_0x2f207d){const _0x4ddc4f=a59_0x1a11,_0x3be4df=_0x2a0fb2();while(!![]){try{const _0x479a94=parseInt(_0x4ddc4f(0x1f2))/0x1*(parseInt(_0x4ddc4f(0x1e6))/0x2)+-parseInt(_0x4ddc4f(0x20d))/0x3*(-parseInt(_0x4ddc4f(0x1f6))/0x4)+-parseInt(_0x4ddc4f(0x216))/0x5*(parseInt(_0x4ddc4f(0x218))/0x6)+-parseInt(_0x4ddc4f(0x214))/0x7+-parseInt(_0x4ddc4f(0x1f3))/0x8*(-parseInt(_0x4ddc4f(0x219))/0x9)+-parseInt(_0x4ddc4f(0x1e5))/0xa+-parseInt(_0x4ddc4f(0x1fd))/0xb*(-parseInt(_0x4ddc4f(0x1ff))/0xc);if(_0x479a94===_0x2f207d)break;else _0x3be4df['push'](_0x3be4df['shift']());}catch(_0x2cf5ff){_0x3be4df['push'](_0x3be4df['shift']());}}}(a59_0x17f3,0x62c4f));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_0x27c893(0x20c);export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x344da2,input:_0x5ba050,dryRun:_0x266849}){const _0x3f6ca5=a59_0x27c893;validateInput(_0x5ba050);const _0x3fe1b9=normalizeBusinessGroup(_0x5ba050[_0x3f6ca5(0x208)]),_0x5e8d75=await getDatasetDetail(_0x5ba050['code']),_0x2ad9d3=resolveBusinessGroupDataset(_0x5e8d75,_0x5ba050[_0x3f6ca5(0x1f7)]),_0x391788=loadCurrentBusinessGroup(_0x5e8d75,_0x2ad9d3);assertExpectedBusinessGroup(_0x391788,_0x5ba050[_0x3f6ca5(0x202)]);const _0x1057a4=buildBackendPayload(_0x344da2,_0x2ad9d3,_0x3fe1b9),_0x4f075d=_0x391788!==_0x3fe1b9;let _0x3442dd;if(_0x4f075d&&!_0x266849){await updateErBusinessGroup(_0x1057a4);const _0x9f63f0=await getDatasetDetail(_0x2ad9d3[_0x3f6ca5(0x1f7)]),_0x3dec23=resolveBusinessGroupDataset(_0x9f63f0,_0x2ad9d3[_0x3f6ca5(0x1f7)]),_0x11b5f9=loadCurrentBusinessGroup(_0x9f63f0,_0x3dec23);if(_0x11b5f9!==_0x3fe1b9)throw CliErrors[_0x3f6ca5(0x215)]('Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.',_0x3f6ca5(0x1e8)+JSON[_0x3f6ca5(0x1eb)](_0x3fe1b9)+_0x3f6ca5(0x1ec)+JSON[_0x3f6ca5(0x1eb)](_0x11b5f9)+'.');_0x3442dd={'verified':!![],'status':_0x3f6ca5(0x1fa),'afterReadback':{'businessGroup':_0x11b5f9}};}else!_0x4f075d&&(_0x3442dd={'verified':!![],'status':'unchanged','afterReadback':{'businessGroup':_0x391788}});const _0x5288fe={'operation':_0x3f6ca5(0x203),'appCode':_0x344da2,'selector':{'code':_0x2ad9d3[_0x3f6ca5(0x1f7)]},'dataset':_0x2ad9d3,'before':{'businessGroup':_0x391788},'after':{'businessGroup':_0x3fe1b9},'changed':_0x4f075d,'dryRun':_0x266849,'submitted':_0x4f075d&&!_0x266849,'backend':{'method':_0x3f6ca5(0x204),'path':BACKEND_PATH,'payload':_0x1057a4},..._0x3442dd?{'verification':_0x3442dd}:{},'warnings':[]};return{'ok':!![],'data':_0x5288fe,'message':_0x4f075d?_0x266849?_0x3f6ca5(0x201)+_0x2ad9d3[_0x3f6ca5(0x1f7)]:_0x3f6ca5(0x1de)+_0x2ad9d3[_0x3f6ca5(0x1f7)]:'No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20'+_0x2ad9d3['code']};}export const datasetBusinessGroupUpdate={'service':a59_0x27c893(0x1f4),'command':'business-group-update','description':a59_0x27c893(0x1e1),'risk':a59_0x27c893(0x209),'flags':[CODE_FLAG,{'name':'business-group','type':a59_0x27c893(0x20b),'required':!![],'description':a59_0x27c893(0x20e)},{'name':a59_0x27c893(0x212),'type':'string','required':![],'description':a59_0x27c893(0x1fb)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x190974){validateInput(readBusinessGroupUpdateInput(_0x190974));},async 'dryRun'(_0x471b88){const _0x20e176=a59_0x27c893,_0x581db2=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x471b88[_0x20e176(0x1f0)],'input':readBusinessGroupUpdateInput(_0x471b88),'dryRun':!![]});return{'method':_0x20e176(0x204),'url':BACKEND_PATH,'body':_0x581db2[_0x20e176(0x1ef)][_0x20e176(0x1da)][_0x20e176(0x1f8)],'description':_0x581db2[_0x20e176(0x1e4)],..._0x581db2['data']};},async 'execute'(_0xc37116){return buildDatasetBusinessGroupUpdateResult({'appCode':_0xc37116['appCode'],'input':readBusinessGroupUpdateInput(_0xc37116),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x2593f1){const _0x587e6b=a59_0x27c893,_0x2edac9=_0x2593f1['str'](_0x587e6b(0x212));return{'code':trim(_0x2593f1['str'](_0x587e6b(0x1f7))),'businessGroup':_0x2593f1[_0x587e6b(0x1e0)]('business-group'),'expectBusinessGroup':_0x2edac9===undefined||_0x2edac9===''?undefined:_0x2edac9};}function validateInput(_0x39134d){const _0x2855ee=a59_0x27c893;if(!trim(_0x39134d['code']))throw CliErrors[_0x2855ee(0x1db)]('--code\x20is\x20required');if(_0x39134d[_0x2855ee(0x208)]===undefined)throw CliErrors[_0x2855ee(0x1db)](_0x2855ee(0x1e7));}function resolveBusinessGroupDataset(_0x4ce05d,_0x406013){const _0x41e4b8=a59_0x27c893,_0x245eb7=asPlainObject(_0x4ce05d['dataset']),_0x396917=asPlainObject(_0x4ce05d[_0x41e4b8(0x213)]),_0x3e3f63=resolveSourceType(_0x4ce05d,_0x245eb7,_0x396917),_0x1ec9cd=firstString(_0x4ce05d['modelCode'],_0x4ce05d[_0x41e4b8(0x1f7)],_0x245eb7[_0x41e4b8(0x205)],_0x406013)||_0x406013;return{'id':firstNumber(_0x4ce05d[_0x41e4b8(0x1fc)],_0x4ce05d['id'],_0x245eb7[_0x41e4b8(0x206)])??firstString(_0x4ce05d[_0x41e4b8(0x1fc)],_0x4ce05d['id'],_0x245eb7[_0x41e4b8(0x206)])??null,'code':_0x1ec9cd,'name':firstString(_0x4ce05d[_0x41e4b8(0x1ee)],_0x245eb7[_0x41e4b8(0x1fe)],_0x245eb7['name'])||null,'sourceType':_0x3e3f63};}function resolveSourceType(_0x2015a6,_0x14d1e7,_0x5644b9){const _0x457e6e=a59_0x27c893,_0x661f89=firstString(_0x2015a6[_0x457e6e(0x1ea)],_0x2015a6[_0x457e6e(0x1dd)],_0x14d1e7[_0x457e6e(0x1ea)],_0x14d1e7['sourceType'])?.[_0x457e6e(0x200)]()[_0x457e6e(0x1df)]();if(_0x661f89===_0x457e6e(0x1f1)||_0x661f89===_0x457e6e(0x1dc))return _0x661f89;if(Object['keys'](_0x5644b9)[_0x457e6e(0x217)]>0x0)return _0x457e6e(0x1f1);throw CliErrors[_0x457e6e(0x1db)](_0x457e6e(0x1e9));}function loadCurrentBusinessGroup(_0x147062,_0x4cb9ed){const _0x295d1d=a59_0x27c893,_0x50f233=readBusinessGroupFromDatasetDetail(_0x147062,_0x4cb9ed[_0x295d1d(0x1dd)]);if(_0x50f233[_0x295d1d(0x1ed)])return normalizeBusinessGroup(_0x50f233['value']);if(_0x4cb9ed[_0x295d1d(0x1dd)]==='METADATA')return'';throw CliErrors[_0x295d1d(0x1db)](_0x295d1d(0x207),_0x295d1d(0x20f));}function readBusinessGroupFromDatasetDetail(_0x39e391,_0x4642ad){const _0x507926=a59_0x27c893,_0x249009=asPlainObject(_0x39e391['dataset']),_0x18c5a6=firstPresent(_0x39e391[_0x507926(0x208)]);if(_0x18c5a6['found'])return _0x18c5a6;const _0x58b11b=firstPresent(_0x249009[_0x507926(0x208)]);if(_0x58b11b[_0x507926(0x1ed)])return _0x58b11b;if(_0x4642ad===_0x507926(0x1f1))return{'found':![]};const _0x12833f=readBusinessGroupFromExtend(_0x39e391[_0x507926(0x21b)]);if(_0x12833f['found'])return _0x12833f;return readBusinessGroupFromExtend(_0x249009[_0x507926(0x21b)]);}function readBusinessGroupFromExtend(_0x5d3d65){const _0x2b0f11=a59_0x27c893;if(_0x5d3d65===undefined||_0x5d3d65===null||_0x5d3d65==='')return{'found':![]};if(typeof _0x5d3d65==='string')try{const _0xae1891=JSON[_0x2b0f11(0x21a)](_0x5d3d65);return readBusinessGroupFromExtend(_0xae1891);}catch{return{'found':![]};}const _0x553fa8=asPlainObject(_0x5d3d65);if(Object[_0x2b0f11(0x1f9)][_0x2b0f11(0x1f5)][_0x2b0f11(0x20a)](_0x553fa8,_0x2b0f11(0x208)))return{'found':!![],'value':_0x553fa8['businessGroup']};return{'found':![]};}function a59_0x17f3(){const _0x49f74b=['Business\x20scenario\x20group\x20readback\x20must\x20be\x20available\x20by\x20datasetCode;\x20upgrade\x20the\x20backend\x20read\x20contract\x20instead\x20of\x20using\x20dblinkId/tableName.','isFinite','Expectation\x20mismatch\x20at\x20businessGroup','expect-business-group','dbtableConfig','3432261abFwqk','apiError','5UDfCmT','length','2460006rMnAHZ','9rBSWYz','parse','extend','backend','validation','METADATA','sourceType','Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20','toUpperCase','str','Update\x20business\x20scenario\x20group','number','object','message','4476200pHJGAN','90McXkxs','--business-group\x20is\x20required','Expected\x20','Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.','source','stringify',',\x20actual\x20','found','name','data','appCode','DB_TABLE','10937nGAggD','3166808vxknsM','dataset','hasOwnProperty','528356vcsTYm','code','payload','prototype','matched','Expected\x20current\x20business\x20scenario\x20group;\x20mismatch\x20aborts\x20without\x20writing','modelId','11Eqzkxo','datasetName','8788776WMVKDY','trim','Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20','expectBusinessGroup','update','POST','datasetCode','datasetId','Dataset\x20detail\x20does\x20not\x20expose\x20businessGroup.','businessGroup','write','call','string','/smartapi/question/er-config/business-group/edit','3GEkhfB','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'];a59_0x17f3=function(){return _0x49f74b;};return a59_0x17f3();}function firstPresent(..._0x2a90d0){for(const _0x6c5e2d of _0x2a90d0){if(_0x6c5e2d!==undefined&&_0x6c5e2d!==null)return{'found':!![],'value':_0x6c5e2d};}return{'found':![]};}function assertExpectedBusinessGroup(_0xe44a7b,_0x4d1343){const _0x2d0939=a59_0x27c893;if(_0x4d1343===undefined)return;const _0x55858b=normalizeBusinessGroup(_0x4d1343);if(_0xe44a7b!==_0x55858b)throw CliErrors['validation'](_0x2d0939(0x211),_0x2d0939(0x1e8)+JSON[_0x2d0939(0x1eb)](_0x55858b)+_0x2d0939(0x1ec)+JSON['stringify'](_0xe44a7b));}function buildBackendPayload(_0x124746,_0x59738d,_0x2c1da4){const _0x396a2b=a59_0x27c893;return{'appCode':_0x124746,'datasetCode':_0x59738d[_0x396a2b(0x1f7)],'businessGroup':_0x2c1da4};}function normalizeBusinessGroup(_0x1a399e){const _0x2d6e24=a59_0x27c893;if(_0x1a399e===undefined||_0x1a399e===null)return'';return String(_0x1a399e)[_0x2d6e24(0x200)]();}function asPlainObject(_0x413d6a){const _0x21c57c=a59_0x27c893;if(!_0x413d6a||typeof _0x413d6a!==_0x21c57c(0x1e3)||Array['isArray'](_0x413d6a))return{};return _0x413d6a;}function firstString(..._0x43d4db){const _0x597dc8=a59_0x27c893;for(const _0x446aaa of _0x43d4db){if(typeof _0x446aaa===_0x597dc8(0x20b)&&_0x446aaa[_0x597dc8(0x200)]())return _0x446aaa[_0x597dc8(0x200)]();if(typeof _0x446aaa===_0x597dc8(0x1e2)&&Number[_0x597dc8(0x210)](_0x446aaa))return String(_0x446aaa);}return undefined;}function firstNumber(..._0x56b82b){const _0x1c7106=a59_0x27c893;for(const _0x301676 of _0x56b82b){if(typeof _0x301676===_0x1c7106(0x1e2)&&Number[_0x1c7106(0x210)](_0x301676))return _0x301676;if(typeof _0x301676===_0x1c7106(0x20b)&&_0x301676[_0x1c7106(0x200)]()&&Number[_0x1c7106(0x210)](Number(_0x301676)))return Number(_0x301676);}return null;}function a59_0x1a11(_0x30ccd4,_0x45a6c3){_0x30ccd4=_0x30ccd4-0x1da;const _0x17f301=a59_0x17f3();let _0x1a112e=_0x17f301[_0x30ccd4];return _0x1a112e;}function trim(_0x2fffe4){const _0x849497=a59_0x27c893;return String(_0x2fffe4||'')[_0x849497(0x200)]();}
@@ -1 +1 @@
1
- const a60_0x3cf250=a60_0x44f1;(function(_0x4493e5,_0x175bbf){const _0x1bb52b=a60_0x44f1,_0x40acd9=_0x4493e5();while(!![]){try{const _0x4ed891=-parseInt(_0x1bb52b(0x179))/0x1+-parseInt(_0x1bb52b(0x15e))/0x2*(-parseInt(_0x1bb52b(0x170))/0x3)+-parseInt(_0x1bb52b(0x15c))/0x4+-parseInt(_0x1bb52b(0x174))/0x5*(-parseInt(_0x1bb52b(0x17b))/0x6)+parseInt(_0x1bb52b(0x171))/0x7+parseInt(_0x1bb52b(0x16e))/0x8*(parseInt(_0x1bb52b(0x177))/0x9)+-parseInt(_0x1bb52b(0x17c))/0xa*(parseInt(_0x1bb52b(0x161))/0xb);if(_0x4ed891===_0x175bbf)break;else _0x40acd9['push'](_0x40acd9['shift']());}catch(_0x544396){_0x40acd9['push'](_0x40acd9['shift']());}}}(a60_0x57c7,0x61f16));import{CliErrors}from'../../errors.js';export const RUNTIME_DATA_ACCESS_COMMANDS={'cli':a60_0x3cf250(0x180),'filter':'lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27<json>\x27\x20--format\x20compress','getOne':'lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27\x20--format\x20compress'};export const RUNTIME_DATA_ACCESS_SUMMARY=a60_0x3cf250(0x17f);function valueToString(_0x3ec80f){return _0x3ec80f==null?'':String(_0x3ec80f)['trim']();}function a60_0x44f1(_0x18353e,_0x39a874){_0x18353e=_0x18353e-0x15c;const _0x57c725=a60_0x57c7();let _0x44f170=_0x57c725[_0x18353e];return _0x44f170;}function getDatasetCode(_0x4a2bee){const _0x254e3a=a60_0x3cf250;return valueToString(_0x4a2bee[_0x254e3a(0x17e)]??_0x4a2bee['modelCode']??_0x4a2bee[_0x254e3a(0x16c)]?.[_0x254e3a(0x167)]);}function getDatasetName(_0x3812f0){const _0x2ad284=a60_0x3cf250;return valueToString(_0x3812f0[_0x2ad284(0x173)]??_0x3812f0[_0x2ad284(0x16c)]?.[_0x2ad284(0x163)])||_0x2ad284(0x165);}function getDatasetSource(_0x5a6ee8){const _0x8c6944=a60_0x3cf250;return valueToString(_0x5a6ee8[_0x8c6944(0x15f)]??_0x5a6ee8[_0x8c6944(0x16c)]?.[_0x8c6944(0x164)])[_0x8c6944(0x169)]();}function a60_0x57c7(){const _0x583203=['lovrabet','1513064ITERkS','METADATA','9154EFBGDq','source','tableName','22wWJvXO','join','datasetName','sourceType','unknown','dbId','datasetCode','filter','toUpperCase','object','\x20的\x20DB_TABLE\x20数据源上下文。','dataset','如果只是查看运行态真实行数据,请切换到\x20lovrabet\x20CLI:','3807704GLYwRX','当前数据集\x20\x22','57MygAko','2839438dpHHzC','\x20是\x20','name','5aKWGys','\x20类型,没有可用于\x20','getOne','9qOguXG','dbtable','282563TmRMfV','UNKNOWN','4233354WyCjuO','3060580jYhCNY','dbtableConfig','code','Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.'];a60_0x57c7=function(){return _0x583203;};return a60_0x57c7();}function getDbtableConfig(_0x45dd8f){const _0x448ba8=a60_0x3cf250,_0x5c5666=_0x45dd8f[_0x448ba8(0x17d)]??_0x45dd8f[_0x448ba8(0x178)];return _0x5c5666&&typeof _0x5c5666===_0x448ba8(0x16a)?_0x5c5666:{};}export function isDbTableBackedDataset(_0x19589c){const _0x5ea290=a60_0x3cf250,_0x44b9e2=getDatasetSource(_0x19589c);if(_0x44b9e2===_0x5ea290(0x15d))return![];const _0x534496=getDbtableConfig(_0x19589c),_0x2ca733=_0x534496[_0x5ea290(0x166)]??_0x534496['id'],_0x38cb9b=valueToString(_0x534496[_0x5ea290(0x160)]??_0x19589c['tableName']??_0x19589c[_0x5ea290(0x16c)]?.['tableName']);return _0x2ca733!==undefined&&_0x2ca733!==null&&_0x38cb9b['length']>0x0;}export function filterDbTableBackedDatasets(_0x3c2f33){return _0x3c2f33['filter'](_0x570a90=>isDbTableBackedDataset(_0x570a90));}export function buildDbTableBackedRequirementMessage(_0x394b18,_0x5b4f57='SQL\x20schema\x20validation'){const _0x2514b7=a60_0x3cf250,_0x23a9d4=getDatasetSource(_0x394b18)||_0x2514b7(0x17a),_0x44aacc=getDatasetName(_0x394b18),_0x1fa468=getDatasetCode(_0x394b18),_0x1fd0a8=_0x1fa468?'\x20('+_0x1fa468+')':'';return[_0x2514b7(0x16f)+_0x44aacc+'\x22'+_0x1fd0a8+_0x2514b7(0x172)+_0x23a9d4+_0x2514b7(0x175)+_0x5b4f57+_0x2514b7(0x16b),'原因:schema\x20introspection\x20与\x20custom\x20SQL\x20需要\x20source=DB_TABLE、dbtableConfig.dbId、dbtableConfig.tableName\x20与数据库连接上下文。','请先将该数据集升级/迁移为\x20DB_TABLE\x20数据集,再基于新的\x20dataset\x20code\x20继续开发。',_0x2514b7(0x16d)+RUNTIME_DATA_ACCESS_COMMANDS[_0x2514b7(0x168)]+';'+RUNTIME_DATA_ACCESS_COMMANDS[_0x2514b7(0x176)]+'。'][_0x2514b7(0x162)]('\x20');}export function assertDatasetIsDbTableBacked(_0x4b30ae,_0x431f93){if(!isDbTableBackedDataset(_0x4b30ae))throw CliErrors['validation'](buildDbTableBackedRequirementMessage(_0x4b30ae,_0x431f93));}
1
+ const a60_0x494322=a60_0x1a03;(function(_0x58841b,_0x1e44ca){const _0x179ccd=a60_0x1a03,_0x5151c0=_0x58841b();while(!![]){try{const _0x4c7fc2=-parseInt(_0x179ccd(0x18e))/0x1+parseInt(_0x179ccd(0x16c))/0x2*(parseInt(_0x179ccd(0x174))/0x3)+-parseInt(_0x179ccd(0x172))/0x4+-parseInt(_0x179ccd(0x16d))/0x5+parseInt(_0x179ccd(0x173))/0x6*(parseInt(_0x179ccd(0x16b))/0x7)+parseInt(_0x179ccd(0x168))/0x8*(-parseInt(_0x179ccd(0x176))/0x9)+parseInt(_0x179ccd(0x18a))/0xa;if(_0x4c7fc2===_0x1e44ca)break;else _0x5151c0['push'](_0x5151c0['shift']());}catch(_0x3e845f){_0x5151c0['push'](_0x5151c0['shift']());}}}(a60_0x1bbc,0x6e688));import{CliErrors}from'../../errors.js';function a60_0x1bbc(){const _0x71fe5f=['join','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27<json>\x27\x20--format\x20compress','\x20的\x20DB_TABLE\x20数据源上下文。','dbtable','unknown','name','toUpperCase','modelCode','SQL\x20schema\x20validation','14444500rJOjEd','如果只是查看运行态真实行数据,请切换到\x20lovrabet\x20CLI:','请先将该数据集升级/迁移为\x20DB_TABLE\x20数据集,再基于新的\x20dataset\x20code\x20继续开发。','length','113755ooIepA','source','2608JsnWFk','\x20是\x20','validation','14grMfic','2910jJhqAv','1695845mmMjzX','当前数据集\x20\x22','lovrabet','dbId','tableName','2211084VPbmpu','180582kESmMr','147hvTTzD','filter','3258uiUsJT','sourceType','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27\x20--format\x20compress','code','trim','UNKNOWN','dataset','getOne','原因:schema\x20introspection\x20与\x20custom\x20SQL\x20需要\x20source=DB_TABLE、dbtableConfig.dbId、dbtableConfig.tableName\x20与数据库连接上下文。','METADATA','object'];a60_0x1bbc=function(){return _0x71fe5f;};return a60_0x1bbc();}export const RUNTIME_DATA_ACCESS_COMMANDS={'cli':a60_0x494322(0x16f),'filter':a60_0x494322(0x182),'getOne':a60_0x494322(0x178)};export const RUNTIME_DATA_ACCESS_SUMMARY='Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.';function valueToString(_0x158ed4){const _0x39fa69=a60_0x494322;return _0x158ed4==null?'':String(_0x158ed4)[_0x39fa69(0x17a)]();}function getDatasetCode(_0x79e59e){const _0x6e3d3c=a60_0x494322;return valueToString(_0x79e59e[_0x6e3d3c(0x179)]??_0x79e59e[_0x6e3d3c(0x188)]??_0x79e59e[_0x6e3d3c(0x17c)]?.['datasetCode']);}function a60_0x1a03(_0x3bf521,_0x39a12e){_0x3bf521=_0x3bf521-0x167;const _0x1bbc9b=a60_0x1bbc();let _0x1a039e=_0x1bbc9b[_0x3bf521];return _0x1a039e;}function getDatasetName(_0x53c1ce){const _0x42c625=a60_0x494322;return valueToString(_0x53c1ce[_0x42c625(0x186)]??_0x53c1ce[_0x42c625(0x17c)]?.['datasetName'])||_0x42c625(0x185);}function getDatasetSource(_0xab7fba){const _0x26dfd4=a60_0x494322;return valueToString(_0xab7fba[_0x26dfd4(0x167)]??_0xab7fba[_0x26dfd4(0x17c)]?.[_0x26dfd4(0x177)])[_0x26dfd4(0x187)]();}function getDbtableConfig(_0x4c24f2){const _0x30df9a=a60_0x494322,_0x1a9bc9=_0x4c24f2['dbtableConfig']??_0x4c24f2[_0x30df9a(0x184)];return _0x1a9bc9&&typeof _0x1a9bc9===_0x30df9a(0x180)?_0x1a9bc9:{};}export function isDbTableBackedDataset(_0xb4ee7f){const _0x29f666=a60_0x494322,_0x512aa7=getDatasetSource(_0xb4ee7f);if(_0x512aa7===_0x29f666(0x17f))return![];const _0x5af1d1=getDbtableConfig(_0xb4ee7f),_0x285c0f=_0x5af1d1[_0x29f666(0x170)]??_0x5af1d1['id'],_0x283f39=valueToString(_0x5af1d1[_0x29f666(0x171)]??_0xb4ee7f['tableName']??_0xb4ee7f[_0x29f666(0x17c)]?.['tableName']);return _0x285c0f!==undefined&&_0x285c0f!==null&&_0x283f39[_0x29f666(0x18d)]>0x0;}export function filterDbTableBackedDatasets(_0x409157){const _0x16cd05=a60_0x494322;return _0x409157[_0x16cd05(0x175)](_0x897733=>isDbTableBackedDataset(_0x897733));}export function buildDbTableBackedRequirementMessage(_0x2a4d9d,_0x33be0e=a60_0x494322(0x189)){const _0x1a87e5=a60_0x494322,_0x47dd9b=getDatasetSource(_0x2a4d9d)||_0x1a87e5(0x17b),_0x6c2efa=getDatasetName(_0x2a4d9d),_0x2ef117=getDatasetCode(_0x2a4d9d),_0xe89fac=_0x2ef117?'\x20('+_0x2ef117+')':'';return[_0x1a87e5(0x16e)+_0x6c2efa+'\x22'+_0xe89fac+_0x1a87e5(0x169)+_0x47dd9b+'\x20类型,没有可用于\x20'+_0x33be0e+_0x1a87e5(0x183),_0x1a87e5(0x17e),_0x1a87e5(0x18c),_0x1a87e5(0x18b)+RUNTIME_DATA_ACCESS_COMMANDS[_0x1a87e5(0x175)]+';'+RUNTIME_DATA_ACCESS_COMMANDS[_0x1a87e5(0x17d)]+'。'][_0x1a87e5(0x181)]('\x20');}export function assertDatasetIsDbTableBacked(_0xb83235,_0x23d8d4){const _0x51edf3=a60_0x494322;if(!isDbTableBackedDataset(_0xb83235))throw CliErrors[_0x51edf3(0x16a)](buildDbTableBackedRequirementMessage(_0xb83235,_0x23d8d4));}
@@ -1 +1 @@
1
- const a61_0x3c1eeb=a61_0x29fe;(function(_0x487c77,_0x1e4da9){const _0x101a12=a61_0x29fe,_0x7a15d8=_0x487c77();while(!![]){try{const _0x5b99fe=-parseInt(_0x101a12(0x157))/0x1+parseInt(_0x101a12(0x158))/0x2+-parseInt(_0x101a12(0x183))/0x3*(parseInt(_0x101a12(0x189))/0x4)+parseInt(_0x101a12(0x162))/0x5*(-parseInt(_0x101a12(0x17a))/0x6)+-parseInt(_0x101a12(0x17d))/0x7*(-parseInt(_0x101a12(0x16e))/0x8)+parseInt(_0x101a12(0x179))/0x9+parseInt(_0x101a12(0x15e))/0xa;if(_0x5b99fe===_0x1e4da9)break;else _0x7a15d8['push'](_0x7a15d8['shift']());}catch(_0x98558){_0x7a15d8['push'](_0x7a15d8['shift']());}}}(a61_0x5bdf,0xe12b4));import{deleteDataset,getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';const DATASET_ID_FLAG={'name':'id','type':'number','description':a61_0x3c1eeb(0x15b)},DBID_FLAG={'name':a61_0x3c1eeb(0x176),'type':a61_0x3c1eeb(0x15d),'description':'Delete\x20all\x20datasets\x20under\x20this\x20database\x20connection\x20id'},CONFIRM_FLAG={'name':a61_0x3c1eeb(0x18a),'type':'boolean','description':a61_0x3c1eeb(0x16f)},EXPECTED_COUNT_FLAG={'name':a61_0x3c1eeb(0x175),'type':a61_0x3c1eeb(0x15d),'description':a61_0x3c1eeb(0x184)};function a61_0x5bdf(){const _0x3bb7f0=['confirm','dataset','227384kjHfBl','2080998vslWeV','bool','length','Dataset\x20id','isArray','number','3367810OwugbN','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm\x20when\x20the\x20target\x20list\x20is\x20correct.','name','push','5eixdfX','str','validation','code','dbId','num','Matched\x20','\x20dataset(s)','Delete\x20dataset\x20metadata\x20by\x20id/code\x20or\x20all\x20datasets\x20under\x20a\x20db\x20id','Deleted\x20','One\x20of\x20--id,\x20--code,\x20or\x20--dbid\x20is\x20required.','relatedPageInfoList','8TYAsBS','Required\x20to\x20execute\x20dataset\x20deletion','\x20dataset(s).\x20This\x20only\x20deletes\x20platform\x20dataset\x20metadata\x20and\x20related\x20page/menu\x20records,\x20not\x20physical\x20databases\x20or\x20tables.','Use\x20only\x20one\x20of\x20--id,\x20--code,\x20or\x20--dbid.','Would\x20delete\x20','id=','tableName','expected-count','dbid','message','deleted','218835RQGAPc','8714718mdjwKS','dbid=','object','9323657IqIZvO','filter','\x20dataset(s),\x20but\x20--expected-count\x20is\x20','appCode','source','delete','429uAzwAb','Abort\x20unless\x20the\x20matched\x20dataset\x20count\x20equals\x20this\x20value','dbName','\x20failed','dbtableConfig','description','3676AxauiL'];a61_0x5bdf=function(){return _0x3bb7f0;};return a61_0x5bdf();}export const datasetDelete={'service':a61_0x3c1eeb(0x156),'command':a61_0x3c1eeb(0x182),'description':a61_0x3c1eeb(0x16a),'risk':'high-risk-write','flags':[DATASET_ID_FLAG,CODE_FLAG_OPTIONAL,DBID_FLAG,CONFIRM_FLAG,EXPECTED_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x4ddf12){const _0x42d332=a61_0x3c1eeb,_0x3495f9=_0x4ddf12['num']('id'),_0x4d044b=_0x4ddf12[_0x42d332(0x163)](_0x42d332(0x165)),_0x1673d4=_0x4ddf12[_0x42d332(0x167)](_0x42d332(0x176)),_0x95cb4c=[_0x3495f9>0x0,Boolean(_0x4d044b),_0x1673d4>0x0][_0x42d332(0x17e)](Boolean);if(_0x95cb4c['length']===0x0)throw CliErrors['validation'](_0x42d332(0x16c));if(_0x95cb4c[_0x42d332(0x15a)]>0x1)throw CliErrors[_0x42d332(0x164)](_0x42d332(0x171));},async 'dryRun'(_0x495707){const _0x54ffd9=a61_0x3c1eeb,_0x2d5365=await resolveTargets(_0x495707);return{'method':'POST','url':'/smartapi/dataset/delete-dataset','body':{'appCode':_0x495707[_0x54ffd9(0x180)],'count':_0x2d5365['length'],'datasets':_0x2d5365},'description':_0x54ffd9(0x172)+_0x2d5365['length']+_0x54ffd9(0x170)};},async 'execute'(_0x3fb09d){const _0x63795b=a61_0x3c1eeb;if(!_0x3fb09d[_0x63795b(0x159)](_0x63795b(0x18a)))throw CliErrors[_0x63795b(0x164)]('--confirm\x20is\x20required\x20to\x20delete\x20datasets.',_0x63795b(0x15f));const _0x3ec1ef=await resolveTargets(_0x3fb09d),_0x12c01d=[],_0x466dfb=[];for(const _0x365f28 of _0x3ec1ef){try{await deleteDataset(_0x3fb09d[_0x63795b(0x180)],_0x365f28['id']),_0x12c01d['push'](_0x365f28);}catch(_0x3b075c){_0x466dfb[_0x63795b(0x161)]({..._0x365f28,'error':_0x3b075c instanceof Error?_0x3b075c[_0x63795b(0x177)]:String(_0x3b075c)});}}if(_0x466dfb[_0x63795b(0x15a)]>0x0)return{'ok':![],'data':{'requested':_0x3ec1ef[_0x63795b(0x15a)],'deletedCount':_0x12c01d['length'],'failedCount':_0x466dfb[_0x63795b(0x15a)],'deleted':_0x12c01d,'failed':_0x466dfb},'message':'Deleted\x20'+_0x12c01d[_0x63795b(0x15a)]+'/'+_0x3ec1ef['length']+'\x20dataset(s);\x20'+_0x466dfb[_0x63795b(0x15a)]+_0x63795b(0x186)};return{'ok':!![],'data':{'requested':_0x3ec1ef[_0x63795b(0x15a)],'deletedCount':_0x12c01d[_0x63795b(0x15a)],'deleted':_0x12c01d},'message':_0x63795b(0x16b)+_0x12c01d[_0x63795b(0x15a)]+_0x63795b(0x169)};}};async function resolveTargets(_0x2c15a6){const _0x1c398d=a61_0x3c1eeb,_0x4c1742=_0x2c15a6['num']('id'),_0x51ea17=_0x2c15a6[_0x1c398d(0x163)]('code'),_0xe80440=_0x2c15a6[_0x1c398d(0x167)](_0x1c398d(0x176));let _0x1787a4;_0x51ea17?(_0x1787a4=await listDatasets(_0x2c15a6[_0x1c398d(0x180)],{'code':_0x51ea17}),_0x1787a4=_0x1787a4[_0x1c398d(0x17e)](_0x35bd82=>_0x35bd82['code']===_0x51ea17)):(_0x1787a4=await listDatasets(_0x2c15a6[_0x1c398d(0x180)]),_0x4c1742>0x0&&(_0x1787a4=_0x1787a4['filter'](_0x120e2a=>_0x120e2a['id']===_0x4c1742)),_0xe80440>0x0&&(_0x1787a4=_0x1787a4['filter'](_0x7b6dc1=>_0x7b6dc1[_0x1c398d(0x187)]?.[_0x1c398d(0x166)]===_0xe80440)));const _0x3f4405=[];for(const _0x5e4819 of _0x1787a4){const _0x51c6f9=await getDatasetDetail(_0x5e4819[_0x1c398d(0x165)]),_0x336ea7=Array[_0x1c398d(0x15c)](_0x51c6f9['relatedPageInfoList'])?_0x51c6f9[_0x1c398d(0x16d)]['filter'](_0x30ff4c=>_0x30ff4c!=null&&typeof _0x30ff4c===_0x1c398d(0x17c)&&_0x30ff4c[_0x1c398d(0x178)]!==!![]):[];_0x3f4405[_0x1c398d(0x161)](normalizeTarget(_0x5e4819,_0x336ea7[_0x1c398d(0x15a)]));}if(_0x3f4405['length']===0x0){const _0x1e6823=_0x51ea17||(_0x4c1742>0x0?_0x1c398d(0x173)+_0x4c1742:_0x1c398d(0x17b)+_0xe80440);throw CliErrors[_0x1c398d(0x164)]('No\x20undeleted\x20dataset\x20found\x20for\x20'+_0x1e6823+'.');}const _0x583510=_0x2c15a6[_0x1c398d(0x167)](_0x1c398d(0x175));if(_0x583510>0x0&&_0x3f4405[_0x1c398d(0x15a)]!==_0x583510)throw CliErrors[_0x1c398d(0x164)](_0x1c398d(0x168)+_0x3f4405[_0x1c398d(0x15a)]+_0x1c398d(0x17f)+_0x583510+'.');return _0x3f4405;}function a61_0x29fe(_0x225939,_0xabd425){_0x225939=_0x225939-0x156;const _0x5bdfbc=a61_0x5bdf();let _0x29fe21=_0x5bdfbc[_0x225939];return _0x29fe21;}function normalizeTarget(_0x1f0ba5,_0x3dbf34){const _0x1a9835=a61_0x3c1eeb,_0x338088=_0x1f0ba5[_0x1a9835(0x187)]??{};return{'id':_0x1f0ba5['id'],'code':_0x1f0ba5[_0x1a9835(0x165)],'name':_0x1f0ba5[_0x1a9835(0x160)],'description':_0x1f0ba5[_0x1a9835(0x188)],'source':_0x1f0ba5[_0x1a9835(0x181)],'dbId':_0x338088[_0x1a9835(0x166)],'dbName':_0x338088[_0x1a9835(0x185)],'tableName':_0x338088[_0x1a9835(0x174)],'relatedPageCount':_0x3dbf34};}
1
+ const a61_0xcc2e59=a61_0x5260;(function(_0x147378,_0x68866d){const _0x173aee=a61_0x5260,_0x3cb5fb=_0x147378();while(!![]){try{const _0x46ad03=-parseInt(_0x173aee(0x84))/0x1+parseInt(_0x173aee(0xa5))/0x2*(parseInt(_0x173aee(0x7e))/0x3)+-parseInt(_0x173aee(0x75))/0x4*(-parseInt(_0x173aee(0x91))/0x5)+parseInt(_0x173aee(0x7d))/0x6+parseInt(_0x173aee(0x7b))/0x7*(-parseInt(_0x173aee(0x88))/0x8)+parseInt(_0x173aee(0x86))/0x9+parseInt(_0x173aee(0x8d))/0xa;if(_0x46ad03===_0x68866d)break;else _0x3cb5fb['push'](_0x3cb5fb['shift']());}catch(_0x47ec45){_0x3cb5fb['push'](_0x3cb5fb['shift']());}}}(a61_0x4cb8,0xd1788));import{deleteDataset,getDatasetDetail,listDatasets}from'../../core/api-client.js';function a61_0x4cb8(){const _0x4c1d6b=['No\x20undeleted\x20dataset\x20found\x20for\x20','appCode','high-risk-write','\x20failed','dbid','name','filter','isArray','delete','Delete\x20all\x20datasets\x20under\x20this\x20database\x20connection\x20id','code','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm\x20when\x20the\x20target\x20list\x20is\x20correct.','num','push','POST','\x20dataset(s)','2foCcYF','dbName','dataset','confirm','message','40yAsWid','\x20dataset(s).\x20This\x20only\x20deletes\x20platform\x20dataset\x20metadata\x20and\x20related\x20page/menu\x20records,\x20not\x20physical\x20databases\x20or\x20tables.','\x20dataset(s),\x20but\x20--expected-count\x20is\x20','Use\x20only\x20one\x20of\x20--id,\x20--code,\x20or\x20--dbid.','Dataset\x20id','dbId','7gbBPnL','One\x20of\x20--id,\x20--code,\x20or\x20--dbid\x20is\x20required.','8871216yvIYqg','3639126iCMYCu','number','length','--confirm\x20is\x20required\x20to\x20delete\x20datasets.','relatedPageInfoList','Would\x20delete\x20','1432700IDvVtz','/smartapi/dataset/delete-dataset','7016238RQKrgO','str','10605912jBbtNx','expected-count','source','deleted','Matched\x20','766510pbbkqg','dbtableConfig','Deleted\x20','dbid=','34310QLZMwF','validation','tableName','Required\x20to\x20execute\x20dataset\x20deletion'];a61_0x4cb8=function(){return _0x4c1d6b;};return a61_0x4cb8();}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_0xcc2e59(0x7f),'description':a61_0xcc2e59(0x79)},DBID_FLAG={'name':a61_0xcc2e59(0x99),'type':a61_0xcc2e59(0x7f),'description':a61_0xcc2e59(0x9e)},CONFIRM_FLAG={'name':a61_0xcc2e59(0x73),'type':'boolean','description':a61_0xcc2e59(0x94)},EXPECTED_COUNT_FLAG={'name':a61_0xcc2e59(0x89),'type':a61_0xcc2e59(0x7f),'description':'Abort\x20unless\x20the\x20matched\x20dataset\x20count\x20equals\x20this\x20value'};export const datasetDelete={'service':a61_0xcc2e59(0xa7),'command':a61_0xcc2e59(0x9d),'description':'Delete\x20dataset\x20metadata\x20by\x20id/code\x20or\x20all\x20datasets\x20under\x20a\x20db\x20id','risk':a61_0xcc2e59(0x97),'flags':[DATASET_ID_FLAG,CODE_FLAG_OPTIONAL,DBID_FLAG,CONFIRM_FLAG,EXPECTED_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x576a61){const _0x520283=a61_0xcc2e59,_0x4f9787=_0x576a61[_0x520283(0xa1)]('id'),_0x1286d8=_0x576a61['str'](_0x520283(0x9f)),_0x42f4b6=_0x576a61[_0x520283(0xa1)](_0x520283(0x99)),_0x2859ae=[_0x4f9787>0x0,Boolean(_0x1286d8),_0x42f4b6>0x0][_0x520283(0x9b)](Boolean);if(_0x2859ae[_0x520283(0x80)]===0x0)throw CliErrors[_0x520283(0x92)](_0x520283(0x7c));if(_0x2859ae['length']>0x1)throw CliErrors['validation'](_0x520283(0x78));},async 'dryRun'(_0x40c3e6){const _0x322854=a61_0xcc2e59,_0x2dd4b9=await resolveTargets(_0x40c3e6);return{'method':_0x322854(0xa3),'url':_0x322854(0x85),'body':{'appCode':_0x40c3e6[_0x322854(0x96)],'count':_0x2dd4b9[_0x322854(0x80)],'datasets':_0x2dd4b9},'description':_0x322854(0x83)+_0x2dd4b9[_0x322854(0x80)]+_0x322854(0x76)};},async 'execute'(_0x497d2a){const _0x74e08d=a61_0xcc2e59;if(!_0x497d2a['bool'](_0x74e08d(0x73)))throw CliErrors[_0x74e08d(0x92)](_0x74e08d(0x81),_0x74e08d(0xa0));const _0x4a07ad=await resolveTargets(_0x497d2a),_0x3e26ce=[],_0xebab5f=[];for(const _0x2d35d7 of _0x4a07ad){try{await deleteDataset(_0x497d2a[_0x74e08d(0x96)],_0x2d35d7['id']),_0x3e26ce[_0x74e08d(0xa2)](_0x2d35d7);}catch(_0x103be6){_0xebab5f[_0x74e08d(0xa2)]({..._0x2d35d7,'error':_0x103be6 instanceof Error?_0x103be6[_0x74e08d(0x74)]:String(_0x103be6)});}}if(_0xebab5f[_0x74e08d(0x80)]>0x0)return{'ok':![],'data':{'requested':_0x4a07ad['length'],'deletedCount':_0x3e26ce[_0x74e08d(0x80)],'failedCount':_0xebab5f[_0x74e08d(0x80)],'deleted':_0x3e26ce,'failed':_0xebab5f},'message':_0x74e08d(0x8f)+_0x3e26ce[_0x74e08d(0x80)]+'/'+_0x4a07ad['length']+'\x20dataset(s);\x20'+_0xebab5f['length']+_0x74e08d(0x98)};return{'ok':!![],'data':{'requested':_0x4a07ad[_0x74e08d(0x80)],'deletedCount':_0x3e26ce[_0x74e08d(0x80)],'deleted':_0x3e26ce},'message':_0x74e08d(0x8f)+_0x3e26ce[_0x74e08d(0x80)]+_0x74e08d(0xa4)};}};function a61_0x5260(_0x295ccf,_0x18da0d){_0x295ccf=_0x295ccf-0x73;const _0x4cb8b9=a61_0x4cb8();let _0x526028=_0x4cb8b9[_0x295ccf];return _0x526028;}async function resolveTargets(_0x49ea11){const _0xc27d23=a61_0xcc2e59,_0x316693=_0x49ea11[_0xc27d23(0xa1)]('id'),_0x29b2f7=_0x49ea11[_0xc27d23(0x87)](_0xc27d23(0x9f)),_0x13531e=_0x49ea11[_0xc27d23(0xa1)](_0xc27d23(0x99));let _0x40c682;_0x29b2f7?(_0x40c682=await listDatasets(_0x49ea11['appCode'],{'code':_0x29b2f7}),_0x40c682=_0x40c682[_0xc27d23(0x9b)](_0x7b14a2=>_0x7b14a2[_0xc27d23(0x9f)]===_0x29b2f7)):(_0x40c682=await listDatasets(_0x49ea11[_0xc27d23(0x96)]),_0x316693>0x0&&(_0x40c682=_0x40c682['filter'](_0x52f5bd=>_0x52f5bd['id']===_0x316693)),_0x13531e>0x0&&(_0x40c682=_0x40c682['filter'](_0x5cc239=>_0x5cc239[_0xc27d23(0x8e)]?.[_0xc27d23(0x7a)]===_0x13531e)));const _0x2dbc8e=[];for(const _0x5c1646 of _0x40c682){const _0x23ed13=await getDatasetDetail(_0x5c1646[_0xc27d23(0x9f)]),_0x41523f=Array[_0xc27d23(0x9c)](_0x23ed13[_0xc27d23(0x82)])?_0x23ed13[_0xc27d23(0x82)][_0xc27d23(0x9b)](_0x49b8c5=>_0x49b8c5!=null&&typeof _0x49b8c5==='object'&&_0x49b8c5[_0xc27d23(0x8b)]!==!![]):[];_0x2dbc8e[_0xc27d23(0xa2)](normalizeTarget(_0x5c1646,_0x41523f[_0xc27d23(0x80)]));}if(_0x2dbc8e[_0xc27d23(0x80)]===0x0){const _0x81340f=_0x29b2f7||(_0x316693>0x0?'id='+_0x316693:_0xc27d23(0x90)+_0x13531e);throw CliErrors['validation'](_0xc27d23(0x95)+_0x81340f+'.');}const _0x3d44d8=_0x49ea11['num'](_0xc27d23(0x89));if(_0x3d44d8>0x0&&_0x2dbc8e[_0xc27d23(0x80)]!==_0x3d44d8)throw CliErrors[_0xc27d23(0x92)](_0xc27d23(0x8c)+_0x2dbc8e[_0xc27d23(0x80)]+_0xc27d23(0x77)+_0x3d44d8+'.');return _0x2dbc8e;}function normalizeTarget(_0x1d245a,_0x563a5e){const _0x146545=a61_0xcc2e59,_0x296ce9=_0x1d245a[_0x146545(0x8e)]??{};return{'id':_0x1d245a['id'],'code':_0x1d245a[_0x146545(0x9f)],'name':_0x1d245a[_0x146545(0x9a)],'description':_0x1d245a['description'],'source':_0x1d245a[_0x146545(0x8a)],'dbId':_0x296ce9['dbId'],'dbName':_0x296ce9[_0x146545(0xa6)],'tableName':_0x296ce9[_0x146545(0x93)],'relatedPageCount':_0x563a5e};}
@@ -1 +1 @@
1
- const a62_0x7ba9b3=a62_0x59c5;(function(_0x158bf6,_0x2adedb){const _0x1aa436=a62_0x59c5,_0x17ad26=_0x158bf6();while(!![]){try{const _0x28ac17=parseInt(_0x1aa436(0x104))/0x1+-parseInt(_0x1aa436(0x145))/0x2+parseInt(_0x1aa436(0x118))/0x3+parseInt(_0x1aa436(0x11e))/0x4+parseInt(_0x1aa436(0x149))/0x5+parseInt(_0x1aa436(0x13f))/0x6+parseInt(_0x1aa436(0x121))/0x7;if(_0x28ac17===_0x2adedb)break;else _0x17ad26['push'](_0x17ad26['shift']());}catch(_0x3c26f3){_0x17ad26['push'](_0x17ad26['shift']());}}}(a62_0x1a03,0x5e50e));import{getDatasetDetail}from'../../core/api-client.js';function a62_0x1a03(){const _0x31ccb3=['columnCodeListWithDeleted','dbtableConfig','1709260SAbmCZ','modifierIdField','modelId','labelField','code','cardinality','logicField','modifierNameField','modelCode','string','fromField','options','trim','requestFields','creatorIdField','properties','tableComment','toDatasetCode','name','relatedPageInfoList','source','indexes','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','responseFields','validateRules','main_sub','relationId','method','deprecated','createTimeField','2042100NRxpKM','alias','tableName','parse','detail','filter','1055262IgiiuV','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','afterScriptId','allFields','41290DxKAqA','responseBody','creatorNameField','required','formatRules','requestBody','entries','extend','str','path','bizRelationType','description','145314mWKYPP','read','beforeScriptId','doType','fields','map','title','dbType','isArray','deleted','displayName','toFieldLabel','operations','object','dbName','host','relations','datasetKey','length','type','363PjCHWz','dataset','dblinkInfoDTO','pkField','updateTimeField','dbId','702904HbLSAy'];a62_0x1a03=function(){return _0x31ccb3;};return a62_0x1a03();}import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function normalizeField(_0x256407){const _0x35dab6=a62_0x59c5;if(_0x256407[_0x35dab6(0x10d)])return null;const _0xd5c02d=Boolean(_0x256407[_0x35dab6(0x10e)]!==undefined||_0x256407['doType']!==undefined);let _0x23d25b={};if(!_0xd5c02d&&typeof _0x256407['extend']===_0x35dab6(0x12a))try{_0x23d25b=JSON[_0x35dab6(0x142)](_0x256407[_0x35dab6(0xff)]);}catch{}const _0x53e22f=_0xd5c02d?_0x256407[_0x35dab6(0x133)]:_0x256407[_0x35dab6(0x125)],_0x21d65c=_0xd5c02d?_0x256407['displayName']:_0x256407[_0x35dab6(0x133)],_0x5e7849=_0xd5c02d?_0x256407[_0x35dab6(0x107)]:_0x256407[_0x35dab6(0x117)]||_0x256407['dataType'],_0x48662f=_0xd5c02d?_0x256407['pkField']===!![]:_0x23d25b[_0x35dab6(0x11b)]===!![],_0x106e98=_0xd5c02d?_0x256407[_0x35dab6(0xfb)]===!![]:_0x23d25b[_0x35dab6(0xfb)]===!![],_0x2beef0=_0xd5c02d?_0x256407[_0x35dab6(0x12c)]??null:_0x23d25b['options']??null,_0x4680ce={'name':_0x53e22f,'displayName':_0x21d65c||_0x53e22f,'type':_0x5e7849,'dbType':_0x256407[_0x35dab6(0x10b)],'pk':_0x48662f,'required':_0x106e98,'deprecated':_0x256407[_0x35dab6(0x13d)]===!![],'description':_0x256407['description']||undefined};return Array['isArray'](_0x2beef0)&&_0x2beef0[_0x35dab6(0x116)]>0x0&&(_0x4680ce[_0x35dab6(0x12c)]=_0x2beef0),_0x4680ce;}function a62_0x59c5(_0x5354c8,_0x58ade8){_0x5354c8=_0x5354c8-0xfa;const _0x1a0326=a62_0x1a03();let _0x59c542=_0x1a0326[_0x5354c8];return _0x59c542;}function parseJsonMaybe(_0x1ca8d0){const _0x4a664d=a62_0x59c5;if(typeof _0x1ca8d0!==_0x4a664d(0x12a))return _0x1ca8d0;try{return JSON[_0x4a664d(0x142)](_0x1ca8d0);}catch{return _0x1ca8d0;}}function normalizeOperationEntry(_0x4eca12,_0x43f4eb){const _0x47d4ec=a62_0x59c5;if(!_0x43f4eb||typeof _0x43f4eb!=='object')return null;if(!_0x43f4eb[_0x47d4ec(0x13c)]||!_0x43f4eb[_0x47d4ec(0x101)])return null;const _0x4f9e7c={'name':_0x4eca12,'method':_0x43f4eb[_0x47d4ec(0x13c)],'path':_0x43f4eb[_0x47d4ec(0x101)]};if(_0x43f4eb[_0x47d4ec(0x113)])_0x4f9e7c[_0x47d4ec(0x113)]=_0x43f4eb[_0x47d4ec(0x113)];if(_0x43f4eb[_0x47d4ec(0xfd)]!=null){const _0x516413=parseJsonMaybe(_0x43f4eb[_0x47d4ec(0xfd)]);_0x4f9e7c[_0x47d4ec(0xfd)]=_0x516413;}if(_0x43f4eb[_0x47d4ec(0x14a)]!=null){const _0xd8512b=parseJsonMaybe(_0x43f4eb['responseBody']);_0x4f9e7c[_0x47d4ec(0x14a)]=_0xd8512b;}if(_0x43f4eb['beforeScriptId']!=null)_0x4f9e7c[_0x47d4ec(0x106)]=_0x43f4eb[_0x47d4ec(0x106)];if(_0x43f4eb['afterScriptId']!=null)_0x4f9e7c[_0x47d4ec(0x147)]=_0x43f4eb[_0x47d4ec(0x147)];if(Array[_0x47d4ec(0x10c)](_0x43f4eb['requestFields']))_0x4f9e7c[_0x47d4ec(0x12e)]=_0x43f4eb[_0x47d4ec(0x12e)];if(Array[_0x47d4ec(0x10c)](_0x43f4eb[_0x47d4ec(0x138)]))_0x4f9e7c[_0x47d4ec(0x138)]=_0x43f4eb[_0x47d4ec(0x138)];return _0x4f9e7c;}function summarizeDbtable(_0x3aa93d){const _0x425d46=a62_0x59c5,_0x2e4c54={},_0x4dd4df=['dbId',_0x425d46(0x112),'tableName',_0x425d46(0x115),_0x425d46(0x11b),_0x425d46(0x148),_0x425d46(0x127),_0x425d46(0x13e),_0x425d46(0x11c),_0x425d46(0x12f),_0x425d46(0xfa),_0x425d46(0x122),_0x425d46(0x128),_0x425d46(0x124),_0x425d46(0x11a)];for(const _0x5d78cb of _0x4dd4df){if(_0x3aa93d[_0x5d78cb]!==undefined)_0x2e4c54[_0x5d78cb]=_0x3aa93d[_0x5d78cb];}return typeof _0x2e4c54['allFields']===_0x425d46(0x12a)&&_0x2e4c54[_0x425d46(0x148)]['length']>0x0&&(_0x2e4c54['allFieldNames']=_0x2e4c54[_0x425d46(0x148)]['split'](',')[_0x425d46(0x109)](_0x2ca905=>_0x2ca905[_0x425d46(0x12d)]())[_0x425d46(0x144)](Boolean)),_0x2e4c54;}function normalizeRelatedPages(_0x33f5b4){const _0xcc9dfd=a62_0x59c5;if(!Array[_0xcc9dfd(0x10c)](_0x33f5b4))return[];return _0x33f5b4[_0xcc9dfd(0x144)](_0x364975=>_0x364975&&typeof _0x364975===_0xcc9dfd(0x111))[_0xcc9dfd(0x109)](_0xd90e6c=>({'id':_0xd90e6c['id'],'type':_0xd90e6c[_0xcc9dfd(0x117)],'code':_0xd90e6c['code'],'title':_0xd90e6c[_0xcc9dfd(0x10a)],'deleted':_0xd90e6c[_0xcc9dfd(0x10d)]===!![]}));}export const datasetDetail={'service':a62_0x7ba9b3(0x119),'command':a62_0x7ba9b3(0x143),'description':a62_0x7ba9b3(0x137),'risk':a62_0x7ba9b3(0x105),'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a62_0x7ba9b3(0x140),'type':'string','description':a62_0x7ba9b3(0x146)}],async 'execute'(_0x11b0c7){const _0x2c8335=a62_0x7ba9b3,_0xca961e=await getDatasetDetail(_0x11b0c7[_0x2c8335(0x100)]('code')),_0x4c2769=Array[_0x2c8335(0x10c)](_0xca961e[_0x2c8335(0x108)])?_0xca961e[_0x2c8335(0x108)]:Array[_0x2c8335(0x10c)](_0xca961e[_0x2c8335(0x130)])?_0xca961e[_0x2c8335(0x130)]:[],_0x297f27=_0x4c2769['map'](_0x3e126a=>normalizeField(_0x3e126a))[_0x2c8335(0x144)](_0x392af2=>_0x392af2!==null),_0x333a33=_0xca961e[_0x2c8335(0x110)]??{},_0x37db30=[];for(const [_0x34fa41,_0x5cc728]of Object[_0x2c8335(0xfe)](_0x333a33)){const _0x58d59a=normalizeOperationEntry(_0x34fa41,_0x5cc728);if(_0x58d59a)_0x37db30['push'](_0x58d59a);}const _0x72a9ba=_0xca961e[_0x2c8335(0x120)]??{},_0x931873=_0xca961e['dataset']??{},_0x171826=_0x72a9ba[_0x2c8335(0x11d)]!=null?{'id':_0x72a9ba[_0x2c8335(0x11d)],'name':_0x72a9ba['dbName']??null}:undefined;let _0x2960ce;return typeof _0xca961e[_0x2c8335(0xff)]===_0x2c8335(0x12a)&&(_0x2960ce=parseJsonMaybe(_0xca961e[_0x2c8335(0xff)])),{'ok':!![],'data':{'id':_0xca961e[_0x2c8335(0x123)]??_0xca961e['id'],'name':_0xca961e[_0x2c8335(0x133)],'code':_0xca961e[_0x2c8335(0x129)]||_0xca961e[_0x2c8335(0x125)],'doVersion':_0xca961e['doVersion'],'description':_0xca961e[_0x2c8335(0x103)]||_0x931873[_0x2c8335(0x131)]||undefined,'source':_0xca961e[_0x2c8335(0x135)]||_0x931873['sourceType'],'table':_0x72a9ba[_0x2c8335(0x141)]||_0x931873[_0x2c8335(0x141)],'datasetKey':_0x72a9ba[_0x2c8335(0x115)],'pk':_0x72a9ba['pkField'],'db':_0x171826,'dbtable':summarizeDbtable(_0x72a9ba),'fields':_0x297f27,'operations':_0x37db30,'indexes':Array['isArray'](_0x931873[_0x2c8335(0x136)])?_0x931873['indexes']:[],'relations':Array['isArray'](_0xca961e[_0x2c8335(0x114)])?_0xca961e[_0x2c8335(0x114)][_0x2c8335(0x109)](_0x400cd1=>({..._0x400cd1[_0x2c8335(0x13b)]!=null?{'relationId':_0x400cd1[_0x2c8335(0x13b)]}:{},'fromDataset':_0xca961e['name'],'fromCode':_0xca961e['modelCode']||_0xca961e[_0x2c8335(0x125)],'fromTable':_0x72a9ba[_0x2c8335(0x141)]||_0x931873[_0x2c8335(0x141)],'fromField':_0x400cd1[_0x2c8335(0x12b)],'toDataset':_0x400cd1['toDatasetName'],'toCode':_0x400cd1[_0x2c8335(0x132)],'toTable':_0x400cd1['toTableName'],'toField':_0x400cd1['toField'],'labelField':_0x400cd1[_0x2c8335(0x10f)]||undefined,'cardinality':_0x400cd1[_0x2c8335(0x126)]||undefined,'bizRelationType':_0x400cd1[_0x2c8335(0x102)]===_0x2c8335(0x13a)?_0x2c8335(0x13a):null})):[],'relatedPages':normalizeRelatedPages(_0xca961e[_0x2c8335(0x134)]),...Array[_0x2c8335(0x10c)](_0xca961e[_0x2c8335(0x11f)])?{'columnCodeListWithDeleted':_0xca961e[_0x2c8335(0x11f)]}:{},'formatRules':Array['isArray'](_0xca961e['formatRules'])?_0xca961e[_0x2c8335(0xfc)]:[],'validateRules':Array[_0x2c8335(0x10c)](_0xca961e[_0x2c8335(0x139)])?_0xca961e[_0x2c8335(0x139)]:[],..._0x2960ce!==undefined?{'extend':_0x2960ce}:{},'stats':{'fieldCount':_0x297f27[_0x2c8335(0x116)],'operationCount':_0x37db30['length']}}};}};
1
+ const a62_0x1d1319=a62_0x10d7;(function(_0x492dca,_0x5254de){const _0x24d7c1=a62_0x10d7,_0x1907d9=_0x492dca();while(!![]){try{const _0x253236=parseInt(_0x24d7c1(0x1b0))/0x1*(-parseInt(_0x24d7c1(0x1d2))/0x2)+-parseInt(_0x24d7c1(0x1c5))/0x3*(-parseInt(_0x24d7c1(0x1c0))/0x4)+-parseInt(_0x24d7c1(0x1e6))/0x5*(parseInt(_0x24d7c1(0x1ea))/0x6)+-parseInt(_0x24d7c1(0x1a2))/0x7+parseInt(_0x24d7c1(0x1bc))/0x8*(parseInt(_0x24d7c1(0x1d0))/0x9)+parseInt(_0x24d7c1(0x1d1))/0xa*(parseInt(_0x24d7c1(0x1ab))/0xb)+-parseInt(_0x24d7c1(0x1af))/0xc*(-parseInt(_0x24d7c1(0x1cc))/0xd);if(_0x253236===_0x5254de)break;else _0x1907d9['push'](_0x1907d9['shift']());}catch(_0x2c4582){_0x1907d9['push'](_0x1907d9['shift']());}}}(a62_0x2c14,0x64d86));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a62_0x2c14(){const _0x149946=['toTableName','creatorNameField','object','displayName','deprecated','toDatasetName','extend','doVersion','createTimeField','cardinality','5218171ctRNXQ','description','relatedPageInfoList','modifierNameField','alias','relations','code','dbtableConfig','entries','11xOuNks','fields','filter','properties','12QdAopa','1347EKnYea','pkField','map','afterScriptId','modifierIdField','labelField','name','validateRules','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','sourceType','requestBody','parse','1478720AGTfCV','tableName','fromField','trim','11924ifbwWF','length','detail','toDatasetCode','type','828bDVqgn','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','string','dataType','formatRules','isArray','split','6998303TtWyyZ','indexes','dbType','modelCode','18FQHIth','373390lLBnTs','180vaSZGZ','dataset','columnCodeListWithDeleted','main_sub','datasetKey','host','relationId','beforeScriptId','operations','requestFields','options','read','path','responseBody','required','doType','source','allFields','method','modelId','2441805YELEWG','dbId','responseFields','allFieldNames','6IEhIHK','dbName','dblinkInfoDTO'];a62_0x2c14=function(){return _0x149946;};return a62_0x2c14();}function normalizeField(_0x3fbeb0){const _0x11cf11=a62_0x10d7;if(_0x3fbeb0['deleted'])return null;const _0x1666bb=Boolean(_0x3fbeb0[_0x11cf11(0x19b)]!==undefined||_0x3fbeb0[_0x11cf11(0x1e1)]!==undefined);let _0x1dc957={};if(!_0x1666bb&&typeof _0x3fbeb0[_0x11cf11(0x19e)]===_0x11cf11(0x1c7))try{_0x1dc957=JSON[_0x11cf11(0x1bb)](_0x3fbeb0[_0x11cf11(0x19e)]);}catch{}const _0x4c0048=_0x1666bb?_0x3fbeb0[_0x11cf11(0x1b6)]:_0x3fbeb0[_0x11cf11(0x1a8)],_0x1e012e=_0x1666bb?_0x3fbeb0[_0x11cf11(0x19b)]:_0x3fbeb0[_0x11cf11(0x1b6)],_0x46a5f5=_0x1666bb?_0x3fbeb0[_0x11cf11(0x1e1)]:_0x3fbeb0[_0x11cf11(0x1c4)]||_0x3fbeb0[_0x11cf11(0x1c8)],_0x2bbe75=_0x1666bb?_0x3fbeb0[_0x11cf11(0x1b1)]===!![]:_0x1dc957[_0x11cf11(0x1b1)]===!![],_0x1fae38=_0x1666bb?_0x3fbeb0[_0x11cf11(0x1e0)]===!![]:_0x1dc957[_0x11cf11(0x1e0)]===!![],_0x10a93a=_0x1666bb?_0x3fbeb0['options']??null:_0x1dc957[_0x11cf11(0x1dc)]??null,_0x5d937a={'name':_0x4c0048,'displayName':_0x1e012e||_0x4c0048,'type':_0x46a5f5,'dbType':_0x3fbeb0[_0x11cf11(0x1ce)],'pk':_0x2bbe75,'required':_0x1fae38,'deprecated':_0x3fbeb0[_0x11cf11(0x19c)]===!![],'description':_0x3fbeb0[_0x11cf11(0x1a3)]||undefined};return Array['isArray'](_0x10a93a)&&_0x10a93a[_0x11cf11(0x1c1)]>0x0&&(_0x5d937a[_0x11cf11(0x1dc)]=_0x10a93a),_0x5d937a;}function parseJsonMaybe(_0x14c11b){const _0x458397=a62_0x10d7;if(typeof _0x14c11b!==_0x458397(0x1c7))return _0x14c11b;try{return JSON[_0x458397(0x1bb)](_0x14c11b);}catch{return _0x14c11b;}}function normalizeOperationEntry(_0x545e43,_0x500288){const _0x14ab74=a62_0x10d7;if(!_0x500288||typeof _0x500288!==_0x14ab74(0x1ef))return null;if(!_0x500288[_0x14ab74(0x1e4)]||!_0x500288['path'])return null;const _0x3c787d={'name':_0x545e43,'method':_0x500288['method'],'path':_0x500288[_0x14ab74(0x1de)]};if(_0x500288[_0x14ab74(0x1d7)])_0x3c787d[_0x14ab74(0x1d7)]=_0x500288['host'];if(_0x500288[_0x14ab74(0x1ba)]!=null){const _0x544040=parseJsonMaybe(_0x500288[_0x14ab74(0x1ba)]);_0x3c787d['requestBody']=_0x544040;}if(_0x500288['responseBody']!=null){const _0x4ca52b=parseJsonMaybe(_0x500288[_0x14ab74(0x1df)]);_0x3c787d[_0x14ab74(0x1df)]=_0x4ca52b;}if(_0x500288['beforeScriptId']!=null)_0x3c787d[_0x14ab74(0x1d9)]=_0x500288['beforeScriptId'];if(_0x500288[_0x14ab74(0x1b3)]!=null)_0x3c787d[_0x14ab74(0x1b3)]=_0x500288['afterScriptId'];if(Array[_0x14ab74(0x1ca)](_0x500288['requestFields']))_0x3c787d[_0x14ab74(0x1db)]=_0x500288[_0x14ab74(0x1db)];if(Array[_0x14ab74(0x1ca)](_0x500288[_0x14ab74(0x1e8)]))_0x3c787d[_0x14ab74(0x1e8)]=_0x500288[_0x14ab74(0x1e8)];return _0x3c787d;}function a62_0x10d7(_0x5afc6d,_0x34d3c5){_0x5afc6d=_0x5afc6d-0x19b;const _0x2c1449=a62_0x2c14();let _0x10d7dd=_0x2c1449[_0x5afc6d];return _0x10d7dd;}function summarizeDbtable(_0x433fe3){const _0x10deed=a62_0x10d7,_0x28a34b={},_0x3dbb79=[_0x10deed(0x1e7),_0x10deed(0x1eb),_0x10deed(0x1bd),_0x10deed(0x1d6),_0x10deed(0x1b1),_0x10deed(0x1e3),'logicField',_0x10deed(0x1a0),'updateTimeField','creatorIdField',_0x10deed(0x1ee),_0x10deed(0x1b4),_0x10deed(0x1a5),_0x10deed(0x1b5),_0x10deed(0x1ec)];for(const _0x822bb of _0x3dbb79){if(_0x433fe3[_0x822bb]!==undefined)_0x28a34b[_0x822bb]=_0x433fe3[_0x822bb];}return typeof _0x28a34b[_0x10deed(0x1e3)]===_0x10deed(0x1c7)&&_0x28a34b[_0x10deed(0x1e3)][_0x10deed(0x1c1)]>0x0&&(_0x28a34b[_0x10deed(0x1e9)]=_0x28a34b['allFields'][_0x10deed(0x1cb)](',')[_0x10deed(0x1b2)](_0x5b0cab=>_0x5b0cab[_0x10deed(0x1bf)]())[_0x10deed(0x1ad)](Boolean)),_0x28a34b;}function normalizeRelatedPages(_0x569165){const _0x4d7efa=a62_0x10d7;if(!Array[_0x4d7efa(0x1ca)](_0x569165))return[];return _0x569165['filter'](_0x29ed7b=>_0x29ed7b&&typeof _0x29ed7b===_0x4d7efa(0x1ef))[_0x4d7efa(0x1b2)](_0xd787f4=>({'id':_0xd787f4['id'],'type':_0xd787f4[_0x4d7efa(0x1c4)],'code':_0xd787f4[_0x4d7efa(0x1a8)],'title':_0xd787f4['title'],'deleted':_0xd787f4['deleted']===!![]}));}export const datasetDetail={'service':a62_0x1d1319(0x1d3),'command':a62_0x1d1319(0x1c2),'description':a62_0x1d1319(0x1b8),'risk':a62_0x1d1319(0x1dd),'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a62_0x1d1319(0x1a6),'type':a62_0x1d1319(0x1c7),'description':a62_0x1d1319(0x1c6)}],async 'execute'(_0x114813){const _0x4b218b=a62_0x1d1319,_0x914d5e=await getDatasetDetail(_0x114813['str'](_0x4b218b(0x1a8))),_0x1f1678=Array[_0x4b218b(0x1ca)](_0x914d5e[_0x4b218b(0x1ac)])?_0x914d5e[_0x4b218b(0x1ac)]:Array[_0x4b218b(0x1ca)](_0x914d5e[_0x4b218b(0x1ae)])?_0x914d5e['properties']:[],_0x3f480d=_0x1f1678[_0x4b218b(0x1b2)](_0x5024f5=>normalizeField(_0x5024f5))[_0x4b218b(0x1ad)](_0x228514=>_0x228514!==null),_0x6e6b91=_0x914d5e[_0x4b218b(0x1da)]??{},_0x5a9129=[];for(const [_0x5877df,_0x235e4f]of Object[_0x4b218b(0x1aa)](_0x6e6b91)){const _0x172ac7=normalizeOperationEntry(_0x5877df,_0x235e4f);if(_0x172ac7)_0x5a9129['push'](_0x172ac7);}const _0x351f7c=_0x914d5e[_0x4b218b(0x1a9)]??{},_0x1f5497=_0x914d5e[_0x4b218b(0x1d3)]??{},_0x305a82=_0x351f7c[_0x4b218b(0x1e7)]!=null?{'id':_0x351f7c[_0x4b218b(0x1e7)],'name':_0x351f7c[_0x4b218b(0x1eb)]??null}:undefined;let _0x4fdcaf;return typeof _0x914d5e[_0x4b218b(0x19e)]===_0x4b218b(0x1c7)&&(_0x4fdcaf=parseJsonMaybe(_0x914d5e[_0x4b218b(0x19e)])),{'ok':!![],'data':{'id':_0x914d5e[_0x4b218b(0x1e5)]??_0x914d5e['id'],'name':_0x914d5e['name'],'code':_0x914d5e[_0x4b218b(0x1cf)]||_0x914d5e[_0x4b218b(0x1a8)],'doVersion':_0x914d5e[_0x4b218b(0x19f)],'description':_0x914d5e['description']||_0x1f5497['tableComment']||undefined,'source':_0x914d5e[_0x4b218b(0x1e2)]||_0x1f5497[_0x4b218b(0x1b9)],'table':_0x351f7c[_0x4b218b(0x1bd)]||_0x1f5497['tableName'],'datasetKey':_0x351f7c[_0x4b218b(0x1d6)],'pk':_0x351f7c[_0x4b218b(0x1b1)],'db':_0x305a82,'dbtable':summarizeDbtable(_0x351f7c),'fields':_0x3f480d,'operations':_0x5a9129,'indexes':Array[_0x4b218b(0x1ca)](_0x1f5497[_0x4b218b(0x1cd)])?_0x1f5497[_0x4b218b(0x1cd)]:[],'relations':Array[_0x4b218b(0x1ca)](_0x914d5e[_0x4b218b(0x1a7)])?_0x914d5e['relations'][_0x4b218b(0x1b2)](_0x4705bc=>({..._0x4705bc['relationId']!=null?{'relationId':_0x4705bc[_0x4b218b(0x1d8)]}:{},'fromDataset':_0x914d5e[_0x4b218b(0x1b6)],'fromCode':_0x914d5e['modelCode']||_0x914d5e[_0x4b218b(0x1a8)],'fromTable':_0x351f7c[_0x4b218b(0x1bd)]||_0x1f5497[_0x4b218b(0x1bd)],'fromField':_0x4705bc[_0x4b218b(0x1be)],'toDataset':_0x4705bc[_0x4b218b(0x19d)],'toCode':_0x4705bc[_0x4b218b(0x1c3)],'toTable':_0x4705bc[_0x4b218b(0x1ed)],'toField':_0x4705bc['toField'],'labelField':_0x4705bc['toFieldLabel']||undefined,'cardinality':_0x4705bc[_0x4b218b(0x1a1)]||undefined,'bizRelationType':_0x4705bc['bizRelationType']===_0x4b218b(0x1d5)?_0x4b218b(0x1d5):null})):[],'relatedPages':normalizeRelatedPages(_0x914d5e[_0x4b218b(0x1a4)]),...Array[_0x4b218b(0x1ca)](_0x914d5e[_0x4b218b(0x1d4)])?{'columnCodeListWithDeleted':_0x914d5e[_0x4b218b(0x1d4)]}:{},'formatRules':Array['isArray'](_0x914d5e[_0x4b218b(0x1c9)])?_0x914d5e[_0x4b218b(0x1c9)]:[],'validateRules':Array[_0x4b218b(0x1ca)](_0x914d5e[_0x4b218b(0x1b7)])?_0x914d5e['validateRules']:[],..._0x4fdcaf!==undefined?{'extend':_0x4fdcaf}:{},'stats':{'fieldCount':_0x3f480d['length'],'operationCount':_0x5a9129['length']}}};}};
@@ -1 +1 @@
1
- function a63_0x23a7(_0x5303c3,_0xb11bb2){_0x5303c3=_0x5303c3-0xdb;const _0x1effb2=a63_0x1eff();let _0x23a75c=_0x1effb2[_0x5303c3];return _0x23a75c;}const a63_0x45a435=a63_0x23a7;function a63_0x1eff(){const _0x564b97=['13320901PhuDxe','2566DRqhIs','--code\x20is\x20required','No\x20changes\x20for\x20dataset\x20extend',',\x20actual\x20','message','expect-json','18HfJoQX','write','modelId','trim','isArray','dataset','shape','\x20must\x20be\x20valid\x20JSON\x20object:\x20','hint','modelCode','datasetId','198zTWFID','--patch-json','tableName','str','--patch-json\x20must\x20contain\x20at\x20least\x20one\x20key','stringify','from','entries','extend','keys','16152oqAnBU','dbName','JSON\x20object\x20of\x20expected\x20current\x20extend\x20values;\x20mismatch\x20aborts\x20without\x20writing','appCode','Updated\x20dataset\x20extend\x20(','parse','\x20must\x20be\x20a\x20JSON\x20object','Use\x20`rabetbase\x20dataset\x20business-group-update`\x20to\x20update\x20business\x20model\x20groups.','No\x20dataset\x20extend\x20patch\x20keys\x20are\x20currently\x20supported.','5837490wAdWex','code','Unsupported\x20patch\x20key:\x20','patch','validation','JSON\x20object\x20patch\x20for\x20dataset\x20top-level\x20extend;\x20current\x20allowlist\x20is\x20empty','818240djGRrE','1224114ZmNDno','345VYObAZ','Dataset\x20extend\x20must\x20be\x20a\x20JSON\x20object','sort','dbtableConfig','7IzoaTL','/smartapi/dataset/update-driven-data','string','businessGroup','data','Patch\x20dataset\x20top-level\x20extend\x20safely','506406gwUGOu','extend-update','dataset\x20extend-update\x20does\x20not\x20support\x20businessGroup;\x20use\x20dataset\x20business-group-update','join','Allowed\x20keys:\x20','POST','datasetName','length','extend.'];a63_0x1eff=function(){return _0x564b97;};return a63_0x1eff();}(function(_0x26a752,_0x522dbd){const _0x43cdb7=a63_0x23a7,_0xb9fd75=_0x26a752();while(!![]){try{const _0x1f7217=-parseInt(_0x43cdb7(0x104))/0x1+-parseInt(_0x43cdb7(0x10e))/0x2*(parseInt(_0x43cdb7(0xdf))/0x3)+parseInt(_0x43cdb7(0xe9))/0x4*(parseInt(_0x43cdb7(0xfa))/0x5)+parseInt(_0x43cdb7(0xf9))/0x6*(parseInt(_0x43cdb7(0xfe))/0x7)+-parseInt(_0x43cdb7(0xf8))/0x8*(parseInt(_0x43cdb7(0x114))/0x9)+-parseInt(_0x43cdb7(0xf2))/0xa+parseInt(_0x43cdb7(0x10d))/0xb;if(_0x1f7217===_0x522dbd)break;else _0xb9fd75['push'](_0xb9fd75['shift']());}catch(_0x59d904){_0xb9fd75['push'](_0xb9fd75['shift']());}}}(a63_0x1eff,0x4cb7f));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_0x45a435(0x101),{'message':a63_0x45a435(0x106),'hint':a63_0x45a435(0xf0)}]]);export function parseJsonObjectFlag(_0x317acd,_0x35bf8d){const _0x1c9211=a63_0x45a435;if(!_0x317acd)return undefined;let _0x1668b7;try{_0x1668b7=JSON[_0x1c9211(0xee)](_0x317acd);}catch(_0x58b65f){const _0x7a7c6e=_0x58b65f instanceof Error?_0x58b65f['message']:String(_0x58b65f);throw CliErrors[_0x1c9211(0xf6)](_0x35bf8d+_0x1c9211(0xdb)+_0x7a7c6e);}if(!isPlainObject(_0x1668b7)||Array[_0x1c9211(0x118)](_0x1668b7))throw CliErrors[_0x1c9211(0xf6)](_0x35bf8d+_0x1c9211(0xef));return _0x1668b7;}export function validateExtendPatchKeys(_0x202ae4){const _0xed7f1d=a63_0x45a435,_0x5c37a2=Object[_0xed7f1d(0xe8)](_0x202ae4);if(_0x5c37a2[_0xed7f1d(0x10b)]===0x0)throw CliErrors['validation'](_0xed7f1d(0xe3));for(const _0x3f8b1b of _0x5c37a2){const _0x7d23dd=EXTEND_PATCH_REDIRECTS['get'](_0x3f8b1b);if(_0x7d23dd)throw CliErrors[_0xed7f1d(0xf6)](_0x7d23dd[_0xed7f1d(0x112)],_0x7d23dd[_0xed7f1d(0xdc)]);if(!MUTABLE_EXTEND_KEYS['has'](_0x3f8b1b))throw CliErrors[_0xed7f1d(0xf6)](_0xed7f1d(0xf4)+_0x3f8b1b,describeMutableExtendKeys());}}function describeMutableExtendKeys(){const _0x16bed6=a63_0x45a435,_0x4710b4=Array[_0x16bed6(0xe5)](MUTABLE_EXTEND_KEYS)[_0x16bed6(0xfc)]();return _0x4710b4[_0x16bed6(0x10b)]>0x0?_0x16bed6(0x108)+_0x4710b4[_0x16bed6(0x107)](',\x20'):_0x16bed6(0xf1);}export function applyExtendPatch(_0x2fa4d9,_0x5ccf81){const _0x351d60=a63_0x45a435;validateExtendPatchKeys(_0x5ccf81);const _0x10a103=deepClone(_0x2fa4d9),_0x3d779f=[];for(const [_0x304757,_0xeff77f]of Object[_0x351d60(0xe6)](_0x5ccf81)){const _0xaf0b8b=_0x10a103[_0x304757],_0x210b9d=deepClone(_0xeff77f);!deepEqual(_0xaf0b8b,_0x210b9d)&&(_0x10a103[_0x304757]=_0x210b9d,_0x3d779f['push'](_0x351d60(0x10c)+_0x304757));}return _0x3d779f['sort'](),{'after':_0x10a103,'changedPaths':_0x3d779f,'changed':_0x3d779f[_0x351d60(0x10b)]>0x0};}export function assertExpectation(_0x58e314,_0x1fa897){const _0x269fe8=a63_0x45a435;if(!_0x1fa897)return;for(const [_0x5002c8,_0x1c3dee]of Object[_0x269fe8(0xe6)](_0x1fa897)){const _0x3129d9=_0x58e314[_0x5002c8];if(!deepEqual(_0x3129d9,_0x1c3dee))throw CliErrors[_0x269fe8(0xf6)]('Expectation\x20mismatch\x20at\x20extend.'+_0x5002c8,'Expected\x20'+JSON[_0x269fe8(0xe4)](_0x1c3dee)+_0x269fe8(0x111)+JSON[_0x269fe8(0xe4)](_0x3129d9));}}export async function buildDatasetExtendUpdateResult({appCode:_0x2d14fa,input:_0x1ad138,dryRun:_0x50c03c}){const _0x46ce03=a63_0x45a435;validateInput(_0x1ad138);const _0x4326c1=await getDatasetDetail(_0x1ad138[_0x46ce03(0xf3)]),_0x4d1a88=parseDatasetExtend(_0x4326c1[_0x46ce03(0xe7)]),_0x24e5a4=deepClone(_0x4d1a88['value']);assertExpectation(_0x24e5a4,_0x1ad138['expect']);const {after:_0x200d9f,changedPaths:_0x5c7fd0,changed:_0x95564d}=applyExtendPatch(_0x24e5a4,_0x1ad138['patch']),_0x4c505b=summarizeDataset(_0x4326c1,_0x1ad138[_0x46ce03(0xf3)]);return _0x95564d&&!_0x50c03c&&(_0x4326c1[_0x46ce03(0xe7)]=serializeDatasetExtend(_0x200d9f,_0x4d1a88[_0x46ce03(0x11a)]),await updateDrivenData(_0x4326c1)),{'ok':!![],'data':{'appCode':_0x2d14fa,'selector':{'code':_0x1ad138[_0x46ce03(0xf3)]},'dataset':_0x4c505b,'dryRun':_0x50c03c,'changed':_0x95564d,'changedPaths':_0x5c7fd0,'before':{'extend':_0x24e5a4},'after':{'extend':_0x200d9f},'submitted':_0x95564d&&!_0x50c03c},'message':_0x95564d?_0x50c03c?'Dry-run:\x20dataset\x20extend\x20would\x20change\x20('+_0x5c7fd0['join'](',\x20')+')':_0x46ce03(0xed)+_0x5c7fd0[_0x46ce03(0x107)](',\x20')+')':_0x46ce03(0x110)};}export const datasetExtendUpdate={'service':a63_0x45a435(0x119),'command':a63_0x45a435(0x105),'description':a63_0x45a435(0x103),'risk':a63_0x45a435(0x115),'flags':[CODE_FLAG,{'name':'patch-json','type':a63_0x45a435(0x100),'required':!![],'description':a63_0x45a435(0xf7)},{'name':'expect-json','type':a63_0x45a435(0x100),'required':![],'description':a63_0x45a435(0xeb)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x10e96f){validateInput(readExtendUpdateInput(_0x10e96f));},async 'dryRun'(_0xa2c103){const _0x28e469=a63_0x45a435,_0x48a6ef=await buildDatasetExtendUpdateResult({'appCode':_0xa2c103['appCode'],'input':readExtendUpdateInput(_0xa2c103),'dryRun':!![]});return{'method':_0x28e469(0x109),'url':_0x28e469(0xff),'body':_0x48a6ef[_0x28e469(0x102)],'description':_0x48a6ef[_0x28e469(0x112)]};},async 'execute'(_0x497488){const _0x249a06=a63_0x45a435;return buildDatasetExtendUpdateResult({'appCode':_0x497488[_0x249a06(0xec)],'input':readExtendUpdateInput(_0x497488),'dryRun':![]});}};function readExtendUpdateInput(_0x5dd871){const _0x5c8d87=a63_0x45a435,_0x1ff7e0=trim(_0x5dd871['str']('code')),_0x502ca2=parseJsonObjectFlag(_0x5dd871[_0x5c8d87(0xe2)]('patch-json'),_0x5c8d87(0xe0)),_0x38bbd2=parseJsonObjectFlag(_0x5dd871[_0x5c8d87(0xe2)](_0x5c8d87(0x113)),'--expect-json');return{'code':_0x1ff7e0,'patch':_0x502ca2||{},'expect':_0x38bbd2};}function validateInput(_0x1a0429){const _0x36d84f=a63_0x45a435;if(!_0x1a0429[_0x36d84f(0xf3)])throw CliErrors[_0x36d84f(0xf6)](_0x36d84f(0x10f));validateExtendPatchKeys(_0x1a0429[_0x36d84f(0xf5)]);}function parseDatasetExtend(_0x5af1e6){const _0x14e480=a63_0x45a435;if(typeof _0x5af1e6===_0x14e480(0x100)){const _0x110571=_0x5af1e6[_0x14e480(0x117)]();if(!_0x110571)return{'value':{},'shape':_0x14e480(0x100)};let _0x47148d;try{_0x47148d=JSON['parse'](_0x110571);}catch(_0x29da9a){const _0x32e45c=_0x29da9a instanceof Error?_0x29da9a['message']:String(_0x29da9a);throw CliErrors[_0x14e480(0xf6)]('Dataset\x20extend\x20must\x20be\x20valid\x20JSON\x20object:\x20'+_0x32e45c);}if(!isPlainObject(_0x47148d)||Array[_0x14e480(0x118)](_0x47148d))throw CliErrors[_0x14e480(0xf6)]('Dataset\x20extend\x20must\x20be\x20a\x20JSON\x20object');return{'value':_0x47148d,'shape':_0x14e480(0x100)};}if(_0x5af1e6===undefined||_0x5af1e6===null)return{'value':{},'shape':_0x14e480(0x100)};if(!isPlainObject(_0x5af1e6)||Array['isArray'](_0x5af1e6))throw CliErrors[_0x14e480(0xf6)](_0x14e480(0xfb));return{'value':_0x5af1e6,'shape':'object'};}function serializeDatasetExtend(_0x2366c3,_0x34cc33){const _0x3079d2=a63_0x45a435;return _0x34cc33===_0x3079d2(0x100)?JSON[_0x3079d2(0xe4)](_0x2366c3):_0x2366c3;}function summarizeDataset(_0x721565,_0x1e8a99){const _0x16e12b=a63_0x45a435,_0x3da03d=isPlainObject(_0x721565[_0x16e12b(0x119)])?_0x721565[_0x16e12b(0x119)]:{},_0xf6807a=isPlainObject(_0x721565[_0x16e12b(0xfd)])?_0x721565[_0x16e12b(0xfd)]:{};return{'id':_0x721565[_0x16e12b(0x116)]??_0x721565['id']??_0x3da03d[_0x16e12b(0xde)]??null,'code':_0x721565[_0x16e12b(0xdd)]??_0x721565[_0x16e12b(0xf3)]??_0x3da03d['datasetCode']??_0x1e8a99,'name':_0x721565['name']??_0x3da03d[_0x16e12b(0x10a)]??null,'table':_0xf6807a['tableName']??_0x3da03d[_0x16e12b(0xe1)]??null,'db':_0xf6807a[_0x16e12b(0xea)]??_0xf6807a['dbId']??null};}function deepClone(_0x85e8ee){const _0x11498e=a63_0x45a435;if(_0x85e8ee===undefined)return _0x85e8ee;return JSON['parse'](JSON[_0x11498e(0xe4)](_0x85e8ee));}function deepEqual(_0x14eda8,_0x5522d3){const _0x3cb335=a63_0x45a435;return JSON['stringify'](_0x14eda8)===JSON[_0x3cb335(0xe4)](_0x5522d3);}function isPlainObject(_0x30aace){const _0x48e35a=a63_0x45a435;return Boolean(_0x30aace)&&typeof _0x30aace==='object'&&!Array[_0x48e35a(0x118)](_0x30aace);}function trim(_0x3d000d){const _0x377f2c=a63_0x45a435,_0x372e24=String(_0x3d000d||'')[_0x377f2c(0x117)]();return _0x372e24;}
1
+ const a63_0x283d70=a63_0x3a46;(function(_0x24ab01,_0x33e312){const _0x4ad740=a63_0x3a46,_0x579d7f=_0x24ab01();while(!![]){try{const _0x1a1572=-parseInt(_0x4ad740(0x1d0))/0x1*(parseInt(_0x4ad740(0x1f3))/0x2)+parseInt(_0x4ad740(0x1d7))/0x3*(parseInt(_0x4ad740(0x1fe))/0x4)+parseInt(_0x4ad740(0x1cf))/0x5+-parseInt(_0x4ad740(0x1f0))/0x6*(-parseInt(_0x4ad740(0x1fd))/0x7)+-parseInt(_0x4ad740(0x1e3))/0x8+-parseInt(_0x4ad740(0x1c5))/0x9+parseInt(_0x4ad740(0x1f2))/0xa;if(_0x1a1572===_0x33e312)break;else _0x579d7f['push'](_0x579d7f['shift']());}catch(_0x29e98e){_0x579d7f['push'](_0x579d7f['shift']());}}}(a63_0x382e,0x384db));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([['businessGroup',{'message':a63_0x283d70(0x1ed),'hint':a63_0x283d70(0x1f7)}]]);export function parseJsonObjectFlag(_0x54f969,_0x12fe27){const _0x2960ce=a63_0x283d70;if(!_0x54f969)return undefined;let _0x5148b2;try{_0x5148b2=JSON[_0x2960ce(0x1c6)](_0x54f969);}catch(_0x595f8b){const _0x36f1d4=_0x595f8b instanceof Error?_0x595f8b['message']:String(_0x595f8b);throw CliErrors[_0x2960ce(0x1c4)](_0x12fe27+_0x2960ce(0x1ca)+_0x36f1d4);}if(!isPlainObject(_0x5148b2)||Array[_0x2960ce(0x1e9)](_0x5148b2))throw CliErrors[_0x2960ce(0x1c4)](_0x12fe27+_0x2960ce(0x1c7));return _0x5148b2;}export function validateExtendPatchKeys(_0x291286){const _0x5ecdac=a63_0x283d70,_0x33c5d5=Object[_0x5ecdac(0x1c3)](_0x291286);if(_0x33c5d5[_0x5ecdac(0x1fa)]===0x0)throw CliErrors[_0x5ecdac(0x1c4)](_0x5ecdac(0x1f9));for(const _0x2b30e9 of _0x33c5d5){const _0x725cd7=EXTEND_PATCH_REDIRECTS[_0x5ecdac(0x1e7)](_0x2b30e9);if(_0x725cd7)throw CliErrors[_0x5ecdac(0x1c4)](_0x725cd7[_0x5ecdac(0x1d3)],_0x725cd7[_0x5ecdac(0x1e0)]);if(!MUTABLE_EXTEND_KEYS[_0x5ecdac(0x1c9)](_0x2b30e9))throw CliErrors[_0x5ecdac(0x1c4)]('Unsupported\x20patch\x20key:\x20'+_0x2b30e9,describeMutableExtendKeys());}}function describeMutableExtendKeys(){const _0x4924ff=a63_0x283d70,_0x13866e=Array[_0x4924ff(0x1eb)](MUTABLE_EXTEND_KEYS)[_0x4924ff(0x1e6)]();return _0x13866e['length']>0x0?_0x4924ff(0x1f1)+_0x13866e[_0x4924ff(0x1fb)](',\x20'):_0x4924ff(0x1e1);}export function applyExtendPatch(_0x590189,_0x29277d){const _0x1d1da1=a63_0x283d70;validateExtendPatchKeys(_0x29277d);const _0x11e62b=deepClone(_0x590189),_0x5d8598=[];for(const [_0x30cead,_0x580588]of Object[_0x1d1da1(0x1fc)](_0x29277d)){const _0x116faa=_0x11e62b[_0x30cead],_0x43eca2=deepClone(_0x580588);!deepEqual(_0x116faa,_0x43eca2)&&(_0x11e62b[_0x30cead]=_0x43eca2,_0x5d8598['push'](_0x1d1da1(0x1d8)+_0x30cead));}return _0x5d8598[_0x1d1da1(0x1e6)](),{'after':_0x11e62b,'changedPaths':_0x5d8598,'changed':_0x5d8598[_0x1d1da1(0x1fa)]>0x0};}export function assertExpectation(_0x55f9a7,_0x185de9){const _0xb8ceb8=a63_0x283d70;if(!_0x185de9)return;for(const [_0x301d06,_0x1c0305]of Object['entries'](_0x185de9)){const _0x1c3313=_0x55f9a7[_0x301d06];if(!deepEqual(_0x1c3313,_0x1c0305))throw CliErrors[_0xb8ceb8(0x1c4)](_0xb8ceb8(0x1d9)+_0x301d06,_0xb8ceb8(0x1cd)+JSON[_0xb8ceb8(0x1f8)](_0x1c0305)+_0xb8ceb8(0x1d2)+JSON['stringify'](_0x1c3313));}}function a63_0x3a46(_0x1cd7be,_0x44104d){_0x1cd7be=_0x1cd7be-0x1bf;const _0x382ecc=a63_0x382e();let _0x3a46f3=_0x382ecc[_0x1cd7be];return _0x3a46f3;}function a63_0x382e(){const _0x467e89=['name','dataset','modelCode','246597wtLPVa','extend.','Expectation\x20mismatch\x20at\x20extend.','appCode','patch-json','string','code','Dataset\x20extend\x20must\x20be\x20a\x20JSON\x20object','dbName','hint','No\x20dataset\x20extend\x20patch\x20keys\x20are\x20currently\x20supported.','datasetCode','215544KamTxD','str','datasetName','sort','get','value','isArray','trim','from','expect-json','dataset\x20extend-update\x20does\x20not\x20support\x20businessGroup;\x20use\x20dataset\x20business-group-update','POST','modelId','18VlsnLA','Allowed\x20keys:\x20','1491810kONKXk','477530yXQpxY','--expect-json','Dataset\x20extend\x20must\x20be\x20valid\x20JSON\x20object:\x20','shape','Use\x20`rabetbase\x20dataset\x20business-group-update`\x20to\x20update\x20business\x20model\x20groups.','stringify','--patch-json\x20must\x20contain\x20at\x20least\x20one\x20key','length','join','entries','744569GyhsaR','4IDVlVc','datasetId','--code\x20is\x20required','JSON\x20object\x20of\x20expected\x20current\x20extend\x20values;\x20mismatch\x20aborts\x20without\x20writing','tableName','keys','validation','3485763IVsrKM','parse','\x20must\x20be\x20a\x20JSON\x20object','No\x20changes\x20for\x20dataset\x20extend','has','\x20must\x20be\x20valid\x20JSON\x20object:\x20','data','Patch\x20dataset\x20top-level\x20extend\x20safely','Expected\x20','extend','1665765QvfhgU','1aHDUmP','write',',\x20actual\x20','message'];a63_0x382e=function(){return _0x467e89;};return a63_0x382e();}export async function buildDatasetExtendUpdateResult({appCode:_0x121ec3,input:_0x55ce50,dryRun:_0x1bbd53}){const _0x563300=a63_0x283d70;validateInput(_0x55ce50);const _0x4509aa=await getDatasetDetail(_0x55ce50[_0x563300(0x1dd)]),_0xc24088=parseDatasetExtend(_0x4509aa[_0x563300(0x1ce)]),_0x246fe2=deepClone(_0xc24088[_0x563300(0x1e8)]);assertExpectation(_0x246fe2,_0x55ce50['expect']);const {after:_0x59409a,changedPaths:_0x4ebc26,changed:_0x1e6dca}=applyExtendPatch(_0x246fe2,_0x55ce50['patch']),_0x38cd48=summarizeDataset(_0x4509aa,_0x55ce50['code']);return _0x1e6dca&&!_0x1bbd53&&(_0x4509aa[_0x563300(0x1ce)]=serializeDatasetExtend(_0x59409a,_0xc24088[_0x563300(0x1f6)]),await updateDrivenData(_0x4509aa)),{'ok':!![],'data':{'appCode':_0x121ec3,'selector':{'code':_0x55ce50['code']},'dataset':_0x38cd48,'dryRun':_0x1bbd53,'changed':_0x1e6dca,'changedPaths':_0x4ebc26,'before':{'extend':_0x246fe2},'after':{'extend':_0x59409a},'submitted':_0x1e6dca&&!_0x1bbd53},'message':_0x1e6dca?_0x1bbd53?'Dry-run:\x20dataset\x20extend\x20would\x20change\x20('+_0x4ebc26[_0x563300(0x1fb)](',\x20')+')':'Updated\x20dataset\x20extend\x20('+_0x4ebc26['join'](',\x20')+')':_0x563300(0x1c8)};}export const datasetExtendUpdate={'service':a63_0x283d70(0x1d5),'command':'extend-update','description':a63_0x283d70(0x1cc),'risk':a63_0x283d70(0x1d1),'flags':[CODE_FLAG,{'name':a63_0x283d70(0x1db),'type':a63_0x283d70(0x1dc),'required':!![],'description':'JSON\x20object\x20patch\x20for\x20dataset\x20top-level\x20extend;\x20current\x20allowlist\x20is\x20empty'},{'name':a63_0x283d70(0x1ec),'type':'string','required':![],'description':a63_0x283d70(0x1c1)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x239be8){validateInput(readExtendUpdateInput(_0x239be8));},async 'dryRun'(_0x47cfc8){const _0x550d3d=a63_0x283d70,_0x18e80f=await buildDatasetExtendUpdateResult({'appCode':_0x47cfc8['appCode'],'input':readExtendUpdateInput(_0x47cfc8),'dryRun':!![]});return{'method':_0x550d3d(0x1ee),'url':'/smartapi/dataset/update-driven-data','body':_0x18e80f[_0x550d3d(0x1cb)],'description':_0x18e80f[_0x550d3d(0x1d3)]};},async 'execute'(_0x4c934c){const _0x5d3d94=a63_0x283d70;return buildDatasetExtendUpdateResult({'appCode':_0x4c934c[_0x5d3d94(0x1da)],'input':readExtendUpdateInput(_0x4c934c),'dryRun':![]});}};function readExtendUpdateInput(_0x4fcceb){const _0xa1419f=a63_0x283d70,_0x3dbaa1=trim(_0x4fcceb['str'](_0xa1419f(0x1dd))),_0x15c6f5=parseJsonObjectFlag(_0x4fcceb[_0xa1419f(0x1e4)](_0xa1419f(0x1db)),'--patch-json'),_0x1fb0ef=parseJsonObjectFlag(_0x4fcceb['str']('expect-json'),_0xa1419f(0x1f4));return{'code':_0x3dbaa1,'patch':_0x15c6f5||{},'expect':_0x1fb0ef};}function validateInput(_0x45b9d4){const _0x53b47c=a63_0x283d70;if(!_0x45b9d4[_0x53b47c(0x1dd)])throw CliErrors[_0x53b47c(0x1c4)](_0x53b47c(0x1c0));validateExtendPatchKeys(_0x45b9d4['patch']);}function parseDatasetExtend(_0xd476ad){const _0x2671cf=a63_0x283d70;if(typeof _0xd476ad===_0x2671cf(0x1dc)){const _0x78eb53=_0xd476ad['trim']();if(!_0x78eb53)return{'value':{},'shape':_0x2671cf(0x1dc)};let _0x15a72a;try{_0x15a72a=JSON[_0x2671cf(0x1c6)](_0x78eb53);}catch(_0x89b9df){const _0x146369=_0x89b9df instanceof Error?_0x89b9df['message']:String(_0x89b9df);throw CliErrors[_0x2671cf(0x1c4)](_0x2671cf(0x1f5)+_0x146369);}if(!isPlainObject(_0x15a72a)||Array[_0x2671cf(0x1e9)](_0x15a72a))throw CliErrors['validation'](_0x2671cf(0x1de));return{'value':_0x15a72a,'shape':_0x2671cf(0x1dc)};}if(_0xd476ad===undefined||_0xd476ad===null)return{'value':{},'shape':_0x2671cf(0x1dc)};if(!isPlainObject(_0xd476ad)||Array['isArray'](_0xd476ad))throw CliErrors[_0x2671cf(0x1c4)](_0x2671cf(0x1de));return{'value':_0xd476ad,'shape':'object'};}function serializeDatasetExtend(_0x1ebe0c,_0x58ba3d){const _0x3bde99=a63_0x283d70;return _0x58ba3d===_0x3bde99(0x1dc)?JSON['stringify'](_0x1ebe0c):_0x1ebe0c;}function summarizeDataset(_0x38e65c,_0x58dfe5){const _0x2ff2d3=a63_0x283d70,_0x5b0a40=isPlainObject(_0x38e65c[_0x2ff2d3(0x1d5)])?_0x38e65c['dataset']:{},_0x4a71f0=isPlainObject(_0x38e65c['dbtableConfig'])?_0x38e65c['dbtableConfig']:{};return{'id':_0x38e65c[_0x2ff2d3(0x1ef)]??_0x38e65c['id']??_0x5b0a40[_0x2ff2d3(0x1bf)]??null,'code':_0x38e65c[_0x2ff2d3(0x1d6)]??_0x38e65c['code']??_0x5b0a40[_0x2ff2d3(0x1e2)]??_0x58dfe5,'name':_0x38e65c[_0x2ff2d3(0x1d4)]??_0x5b0a40[_0x2ff2d3(0x1e5)]??null,'table':_0x4a71f0[_0x2ff2d3(0x1c2)]??_0x5b0a40[_0x2ff2d3(0x1c2)]??null,'db':_0x4a71f0[_0x2ff2d3(0x1df)]??_0x4a71f0['dbId']??null};}function deepClone(_0x5af705){const _0x3bc2d4=a63_0x283d70;if(_0x5af705===undefined)return _0x5af705;return JSON[_0x3bc2d4(0x1c6)](JSON['stringify'](_0x5af705));}function deepEqual(_0x2456ba,_0x352a30){const _0x29afce=a63_0x283d70;return JSON[_0x29afce(0x1f8)](_0x2456ba)===JSON[_0x29afce(0x1f8)](_0x352a30);}function isPlainObject(_0xa41b9e){const _0x2be768=a63_0x283d70;return Boolean(_0xa41b9e)&&typeof _0xa41b9e==='object'&&!Array[_0x2be768(0x1e9)](_0xa41b9e);}function trim(_0x453389){const _0x232b00=a63_0x283d70,_0xc36c0f=String(_0x453389||'')[_0x232b00(0x1ea)]();return _0xc36c0f;}