@lovrabet/rabetbase-cli 2.4.1 → 2.4.3-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (293) 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/references/rabetbase-page-react-detail.md +1 -1
  293. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- const a50_0x4eb910=a50_0x2a00;function a50_0x2a00(_0x559d97,_0x4e99b9){_0x559d97=_0x559d97-0x89;const _0x109696=a50_0x1096();let _0x2a00c9=_0x109696[_0x559d97];return _0x2a00c9;}(function(_0x2e7a35,_0xa0849d){const _0x2decdb=a50_0x2a00,_0x239008=_0x2e7a35();while(!![]){try{const _0xc20f3d=-parseInt(_0x2decdb(0x93))/0x1*(-parseInt(_0x2decdb(0x8b))/0x2)+-parseInt(_0x2decdb(0x9a))/0x3+-parseInt(_0x2decdb(0x9c))/0x4*(-parseInt(_0x2decdb(0x9d))/0x5)+parseInt(_0x2decdb(0x99))/0x6+-parseInt(_0x2decdb(0x97))/0x7+parseInt(_0x2decdb(0x8a))/0x8*(parseInt(_0x2decdb(0x8f))/0x9)+-parseInt(_0x2decdb(0x98))/0xa;if(_0xc20f3d===_0xa0849d)break;else _0x239008['push'](_0x239008['shift']());}catch(_0x5063e5){_0x239008['push'](_0x239008['shift']());}}}(a50_0x1096,0xc64c3));import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';function a50_0x1096(){const _0x4109ff=['key','app','8RmdwLb','278ipalBK','string','Get\x20a\x20config\x20value\x20by\x20key','get','12424743epvWyN','validation','Missing\x20key.','read','1429cnPaxB','appcode','Usage:\x20','Key\x20not\x20found:\x20','608650CxBGtq','18564740bPNXgH','8056086JESxpo','3920160BsyvvO','\x20config\x20get\x20--key\x20<key>','106096zgwWeo','215RTxjfn','object'];a50_0x1096=function(){return _0x4109ff;};return a50_0x1096();}import{CLI_BIN_NAME}from'../../constant/cli.js';import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0x35d3cf){const _0x2a53ea=a50_0x2a00,_0x2c50d5=_0x35d3cf['str'](_0x2a53ea(0x9f));if(!_0x2c50d5)throw CliErrors['validation'](_0x2a53ea(0x91),_0x2a53ea(0x95)+CLI_BIN_NAME+_0x2a53ea(0x9b));const _0x4d7b47=readConfig(),_0x282238=_0x2c50d5===_0x2a53ea(0x89)?_0x2a53ea(0x94):_0x2c50d5,_0xba3fe3=_0x4d7b47[_0x282238];if(_0xba3fe3===undefined)throw CliErrors[_0x2a53ea(0x90)](_0x2a53ea(0x96)+_0x2c50d5);return{'ok':!![],'data':typeof _0xba3fe3===_0x2a53ea(0x9e)?_0xba3fe3:{[_0x282238]:_0xba3fe3},'message':typeof _0xba3fe3===_0x2a53ea(0x9e)?undefined:String(_0xba3fe3)};}export const configGetDefinition={'service':'config','command':a50_0x4eb910(0x8e),'description':a50_0x4eb910(0x8d),'risk':a50_0x4eb910(0x92),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a50_0x4eb910(0x9f),'type':a50_0x4eb910(0x8c),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
1
+ function a50_0xafe9(_0x3aea20,_0xf9912){_0x3aea20=_0x3aea20-0x8d;const _0xfef041=a50_0xfef0();let _0xafe9d8=_0xfef041[_0x3aea20];return _0xafe9d8;}function a50_0xfef0(){const _0x3906f1=['\x20config\x20get\x20--key\x20<key>','553VSXIVR','7221000lBPxtG','19578mIaQCU','string','Key\x20not\x20found:\x20','key','Usage:\x20','read','config','3802IWHgus','object','get','app','1410jhUbey','4754820RpYcTv','1271925AlBzQR','6994264pzuAav','str','2915838wRVUuX'];a50_0xfef0=function(){return _0x3906f1;};return a50_0xfef0();}const a50_0x4c7d0a=a50_0xafe9;(function(_0x3d6ac3,_0xc2c19b){const _0x57a92c=a50_0xafe9,_0x262e0e=_0x3d6ac3();while(!![]){try{const _0x52881d=parseInt(_0x57a92c(0x99))/0x1+-parseInt(_0x57a92c(0x93))/0x2*(-parseInt(_0x57a92c(0x97))/0x3)+parseInt(_0x57a92c(0x98))/0x4+-parseInt(_0x57a92c(0x9f))/0x5+parseInt(_0x57a92c(0xa0))/0x6*(parseInt(_0x57a92c(0x9e))/0x7)+-parseInt(_0x57a92c(0x9a))/0x8+-parseInt(_0x57a92c(0x9c))/0x9;if(_0x52881d===_0xc2c19b)break;else _0x262e0e['push'](_0x262e0e['shift']());}catch(_0x33af3d){_0x262e0e['push'](_0x262e0e['shift']());}}}(a50_0xfef0,0xecac4));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(_0x3e5071){const _0x4c8f1f=a50_0xafe9,_0x40944f=_0x3e5071[_0x4c8f1f(0x9b)]('key');if(!_0x40944f)throw CliErrors['validation']('Missing\x20key.',_0x4c8f1f(0x90)+CLI_BIN_NAME+_0x4c8f1f(0x9d));const _0x23382f=readConfig(),_0x7ad0be=_0x40944f===_0x4c8f1f(0x96)?'appcode':_0x40944f,_0x546f60=_0x23382f[_0x7ad0be];if(_0x546f60===undefined)throw CliErrors['validation'](_0x4c8f1f(0x8e)+_0x40944f);return{'ok':!![],'data':typeof _0x546f60===_0x4c8f1f(0x94)?_0x546f60:{[_0x7ad0be]:_0x546f60},'message':typeof _0x546f60===_0x4c8f1f(0x94)?undefined:String(_0x546f60)};}export const configGetDefinition={'service':a50_0x4c7d0a(0x92),'command':a50_0x4c7d0a(0x95),'description':'Get\x20a\x20config\x20value\x20by\x20key','risk':a50_0x4c7d0a(0x91),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a50_0x4c7d0a(0x8f),'type':a50_0x4c7d0a(0x8d),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
@@ -1 +1 @@
1
- (function(_0x1cf450,_0x510fc6){const _0x28c421=a51_0x2317,_0x2a58d4=_0x1cf450();while(!![]){try{const _0x3ce9cd=parseInt(_0x28c421(0x1bc))/0x1*(-parseInt(_0x28c421(0x1bd))/0x2)+-parseInt(_0x28c421(0x1b4))/0x3+parseInt(_0x28c421(0x1b5))/0x4*(-parseInt(_0x28c421(0x1b6))/0x5)+-parseInt(_0x28c421(0x1b7))/0x6+-parseInt(_0x28c421(0x1b9))/0x7+-parseInt(_0x28c421(0x1b8))/0x8*(-parseInt(_0x28c421(0x1bb))/0x9)+parseInt(_0x28c421(0x1ba))/0xa;if(_0x3ce9cd===_0x510fc6)break;else _0x2a58d4['push'](_0x2a58d4['shift']());}catch(_0x3cf39d){_0x2a58d4['push'](_0x2a58d4['shift']());}}}(a51_0x1148,0xe9fec));function a51_0x2317(_0x59e169,_0x401da7){_0x59e169=_0x59e169-0x1b4;const _0x114891=a51_0x1148();let _0x2317e1=_0x114891[_0x59e169];return _0x2317e1;}import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';function a51_0x1148(){const _0x10479a=['49146350wEubwT','9zziwuS','93739ZaJDBx','36guPooa','1873662eMYMEv','52jBlxuT','188085ulfIaJ','6685332nwJVnx','3537064Dxxgeo','3382575xuggNW'];a51_0x1148=function(){return _0x10479a;};return a51_0x1148();}import{configSetDefinition}from'../../commands/config/set.js';export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
1
+ (function(_0x595af6,_0x2ba2d8){const _0x2f4a5c=a51_0x1b34,_0x4406cc=_0x595af6();while(!![]){try{const _0x4aba43=parseInt(_0x2f4a5c(0x8c))/0x1*(-parseInt(_0x2f4a5c(0x93))/0x2)+-parseInt(_0x2f4a5c(0x94))/0x3+-parseInt(_0x2f4a5c(0x8f))/0x4+parseInt(_0x2f4a5c(0x8d))/0x5+-parseInt(_0x2f4a5c(0x91))/0x6+-parseInt(_0x2f4a5c(0x95))/0x7*(-parseInt(_0x2f4a5c(0x90))/0x8)+parseInt(_0x2f4a5c(0x8e))/0x9*(parseInt(_0x2f4a5c(0x92))/0xa);if(_0x4aba43===_0x2ba2d8)break;else _0x4406cc['push'](_0x4406cc['shift']());}catch(_0x1b2ee1){_0x4406cc['push'](_0x4406cc['shift']());}}}(a51_0x1472,0x4280b));function a51_0x1472(){const _0x2a8c32=['842280qMntvq','225hZtssr','749960wrVCKH','24cIfAOI','2610576zMAySK','423130QfuOnW','230TeEpFt','616023DNPAsX','124159phUJTa','1558cmBPTL'];a51_0x1472=function(){return _0x2a8c32;};return a51_0x1472();}import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';function a51_0x1b34(_0x1bb3e2,_0x1aec12){_0x1bb3e2=_0x1bb3e2-0x8c;const _0x14720a=a51_0x1472();let _0x1b3433=_0x14720a[_0x1bb3e2];return _0x1b3433;}import{configSetDefinition}from'../../commands/config/set.js';export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
@@ -1 +1 @@
1
- const a52_0x2834c5=a52_0xfd19;(function(_0x27a6c0,_0x3a18ad){const _0x283c68=a52_0xfd19,_0x1b7aea=_0x27a6c0();while(!![]){try{const _0x25878f=parseInt(_0x283c68(0xd0))/0x1+parseInt(_0x283c68(0xc2))/0x2+-parseInt(_0x283c68(0xc9))/0x3*(parseInt(_0x283c68(0xc7))/0x4)+parseInt(_0x283c68(0xcc))/0x5*(parseInt(_0x283c68(0xca))/0x6)+parseInt(_0x283c68(0xc6))/0x7+parseInt(_0x283c68(0xc4))/0x8*(parseInt(_0x283c68(0xc3))/0x9)+-parseInt(_0x283c68(0xcf))/0xa;if(_0x25878f===_0x3a18ad)break;else _0x1b7aea['push'](_0x1b7aea['shift']());}catch(_0x2a0363){_0x1b7aea['push'](_0x1b7aea['shift']());}}}(a52_0x1fbb,0x5c927));function a52_0xfd19(_0x1d6a79,_0x4dfa3e){_0x1d6a79=_0x1d6a79-0xc2;const _0x1fbbca=a52_0x1fbb();let _0xfd1937=_0x1fbbca[_0x1d6a79];return _0xfd1937;}import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0x1e7d80){const _0x2649e9=a52_0xfd19,_0x386897=_0x1e7d80['bool'](_0x2649e9(0xc8))?readScopedConfig('global'):readConfig();return{'ok':!![],'data':_0x386897};}export const configListDefinition={'service':a52_0x2834c5(0xcb),'command':'list','description':a52_0x2834c5(0xcd),'risk':a52_0x2834c5(0xce),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a52_0x2834c5(0xc8),'type':a52_0x2834c5(0xc5),'description':'Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','default':![]}],'execute':execute};function a52_0x1fbb(){const _0xbf9e64=['boolean','1794387eCiXVF','316jsPcvN','global','21129aVuMDN','1499082SRrgyQ','config','5zJRBud','List\x20all\x20config\x20values','read','10411550fHuVhc','534457qYhfca','1010624PkZWgu','1938465ksWKwT','16kvPcFJ'];a52_0x1fbb=function(){return _0xbf9e64;};return a52_0x1fbb();}
1
+ const a52_0x18c96c=a52_0x19b7;(function(_0x1f8219,_0x20bdb1){const _0x5859eb=a52_0x19b7,_0x25fb82=_0x1f8219();while(!![]){try{const _0x2dcd42=-parseInt(_0x5859eb(0x147))/0x1+parseInt(_0x5859eb(0x150))/0x2*(-parseInt(_0x5859eb(0x143))/0x3)+parseInt(_0x5859eb(0x142))/0x4+-parseInt(_0x5859eb(0x14a))/0x5+-parseInt(_0x5859eb(0x148))/0x6+-parseInt(_0x5859eb(0x151))/0x7+parseInt(_0x5859eb(0x14f))/0x8*(parseInt(_0x5859eb(0x14b))/0x9);if(_0x2dcd42===_0x20bdb1)break;else _0x25fb82['push'](_0x25fb82['shift']());}catch(_0x224510){_0x25fb82['push'](_0x25fb82['shift']());}}}(a52_0x3acd,0xa958f));import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';function a52_0x3acd(){const _0xb57b88=['867933CYijvO','7480806bcFzsc','config','334670yAVQxS','54lGZjsZ','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','bool','boolean','2910136DtdnBz','58gvXAmq','562954lRWIQQ','4276784oHNRkf','30627JRFINW','List\x20all\x20config\x20values','read','global'];a52_0x3acd=function(){return _0xb57b88;};return a52_0x3acd();}async function execute(_0x33a02d){const _0x591df2=a52_0x19b7,_0x59091a=_0x33a02d[_0x591df2(0x14d)](_0x591df2(0x146))?readScopedConfig(_0x591df2(0x146)):readConfig();return{'ok':!![],'data':_0x59091a};}function a52_0x19b7(_0xbba401,_0x34c0ea){_0xbba401=_0xbba401-0x142;const _0x3acd59=a52_0x3acd();let _0x19b786=_0x3acd59[_0xbba401];return _0x19b786;}export const configListDefinition={'service':a52_0x18c96c(0x149),'command':'list','description':a52_0x18c96c(0x144),'risk':a52_0x18c96c(0x145),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a52_0x18c96c(0x146),'type':a52_0x18c96c(0x14e),'description':a52_0x18c96c(0x14c),'default':![]}],'execute':execute};
@@ -1 +1 @@
1
- function a53_0x418e(){const _0x5b843d=['set','app','key','455070SPcfrp','\x22.\x20Allowed:\x20','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','\x20workspace\x20use\x20--app\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','Missing\x20key.','658DeWFfH','length','2381720stmiTT','object','string','boolean','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','322FJlezg','Invalid\x20locale\x20value.','Top-level\x20key\x20\x22','`,\x20`','Set\x20a\x20config\x20value','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','Invalid\x20value\x20for\x20\x22','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','bool','locale','validation','keys','Global','79024sHqmHt','783ggTJGo','Missing\x20value.','riskLevel','\x20set\x20to:\x20','\x20workspace\x20add\x20<name>\x20--appcode\x20','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','apps','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','write','\x20(stored\x20as\x20apps\x20+\x20defaultApp)','Usage:\x20','4487950ruYajN','join','value','includes','\x20appcode\x20set\x20to:\x20','30438daPjnb','2305910LtKrZt','appcode','config','33CoNUJK','2237TPRqpd','env','str','Project'];a53_0x418e=function(){return _0x5b843d;};return a53_0x418e();}const a53_0x1c6291=a53_0x49ba;(function(_0x4e5363,_0x5da2e5){const _0x1c9ca4=a53_0x49ba,_0x416160=_0x4e5363();while(!![]){try{const _0x20bad6=-parseInt(_0x1c9ca4(0x1c0))/0x1*(parseInt(_0x1c9ca4(0x1cc))/0x2)+-parseInt(_0x1c9ca4(0x1c7))/0x3+-parseInt(_0x1c9ca4(0x1ce))/0x4+-parseInt(_0x1c9ca4(0x1bc))/0x5+-parseInt(_0x1c9ca4(0x1bb))/0x6*(-parseInt(_0x1c9ca4(0x1d3))/0x7)+-parseInt(_0x1c9ca4(0x1e0))/0x8*(-parseInt(_0x1c9ca4(0x1e1))/0x9)+-parseInt(_0x1c9ca4(0x1ec))/0xa*(-parseInt(_0x1c9ca4(0x1bf))/0xb);if(_0x20bad6===_0x5da2e5)break;else _0x416160['push'](_0x416160['shift']());}catch(_0x587464){_0x416160['push'](_0x416160['shift']());}}}(a53_0x418e,0x78d06));import{CliErrors}from'../../errors.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';import{CLI_BIN_NAME,CONFIG_ENUM_VALUES,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{normalizeEnv,isProduction,isDaily}from'../../constant/env.js';async function execute(_0x1a4943){const _0x1c5030=a53_0x49ba,_0x29968e=_0x1a4943[_0x1c5030(0x1c2)](_0x1c5030(0x1c6)),_0x38d65e=_0x1a4943[_0x1c5030(0x1c2)](_0x1c5030(0x1b8));if(!_0x29968e)throw CliErrors['validation'](_0x1c5030(0x1cb),_0x1c5030(0x1eb)+CLI_BIN_NAME+'\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>');if(_0x38d65e===undefined||_0x38d65e==='')throw CliErrors[_0x1c5030(0x1dd)](_0x1c5030(0x1e2),_0x1c5030(0x1eb)+CLI_BIN_NAME+'\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>');if(_0x38d65e[_0x1c5030(0x1cd)]>0x1f4)throw CliErrors[_0x1c5030(0x1dd)](_0x1c5030(0x1da));if(!isTopLevelConfigKey(_0x29968e))throw CliErrors[_0x1c5030(0x1dd)](_0x1c5030(0x1d5)+_0x29968e+'\x22\x20is\x20not\x20settable.','Settable\x20top-level\x20keys:\x20'+getTopLevelConfigKeySummary());if(_0x29968e===_0x1c5030(0x1e3))throw CliErrors[_0x1c5030(0x1dd)](_0x1c5030(0x1e8));if(CONFIG_ENUM_VALUES[_0x29968e]&&!CONFIG_ENUM_VALUES[_0x29968e][_0x1c5030(0x1b9)](_0x38d65e))throw CliErrors[_0x1c5030(0x1dd)](_0x1c5030(0x1d9)+_0x29968e+_0x1c5030(0x1c8)+CONFIG_ENUM_VALUES[_0x29968e][_0x1c5030(0x1b7)](',\x20'));if(_0x29968e===_0x1c5030(0x1dc)&&!normalizeLocale(_0x38d65e))throw CliErrors['validation'](_0x1c5030(0x1d4),_0x1c5030(0x1e6));const _0x2f0ece={'global':_0x1a4943[_0x1c5030(0x1db)]('global')},_0x3a0ba0=resolveWriteScope(_0x2f0ece),_0x2a969e=readScopedConfig(_0x3a0ba0);let _0x5b31de=_0x29968e,_0x15c482=_0x38d65e;_0x29968e===_0x1c5030(0x1c5)&&(_0x5b31de='appcode',delete _0x2a969e['app']);_0x29968e===_0x1c5030(0x1dc)&&(_0x15c482=normalizeLocale(_0x38d65e));if(_0x29968e===_0x1c5030(0x1c1)){_0x15c482=normalizeEnv(_0x38d65e);if(!isProduction(_0x15c482)&&!isDaily(_0x15c482))throw CliErrors[_0x1c5030(0x1dd)]('Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.',_0x1c5030(0x1d2));}if(_0x29968e===_0x1c5030(0x1bd)){const _0x4b8bc2=_0x2a969e[_0x1c5030(0x1e7)]&&typeof _0x2a969e['apps']===_0x1c5030(0x1cf)?Object[_0x1c5030(0x1de)](_0x2a969e[_0x1c5030(0x1e7)]):[];if(_0x4b8bc2[_0x1c5030(0x1cd)]>0x0)throw CliErrors['validation'](_0x1c5030(0x1d8),'Use\x20`'+CLI_BIN_NAME+_0x1c5030(0x1e5)+_0x15c482+_0x1c5030(0x1d6)+CLI_BIN_NAME+_0x1c5030(0x1ca));const _0x5c29dc=buildCanonicalProjectConfig({..._0x2a969e},{'appCodes':[_0x15c482],'env':typeof _0x2a969e[_0x1c5030(0x1c1)]===_0x1c5030(0x1d0)?_0x2a969e[_0x1c5030(0x1c1)]:undefined});writeScopedConfig(_0x5c29dc,_0x3a0ba0);const _0x3f4a4f=_0x3a0ba0==='global'?'Global':'Project';return{'ok':!![],'message':'✓\x20'+_0x3f4a4f+_0x1c5030(0x1ba)+_0x15c482+_0x1c5030(0x1ea)};}_0x2a969e[_0x5b31de]=_0x15c482,writeScopedConfig(_0x2a969e,_0x3a0ba0);const _0x7424f4=_0x3a0ba0==='global'?_0x1c5030(0x1df):_0x1c5030(0x1c3);return{'ok':!![],'message':'✓\x20'+_0x7424f4+'\x20'+_0x5b31de+_0x1c5030(0x1e4)+_0x15c482};}function a53_0x49ba(_0x56480c,_0x5b368b){_0x56480c=_0x56480c-0x1b7;const _0x418efa=a53_0x418e();let _0x49ba82=_0x418efa[_0x56480c];return _0x49ba82;}export const configSetDefinition={'service':a53_0x1c6291(0x1be),'command':a53_0x1c6291(0x1c4),'description':a53_0x1c6291(0x1d7),'risk':a53_0x1c6291(0x1e9),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a53_0x1c6291(0x1c6),'type':'string','description':getConfigCommandKeyDescription(),'required':!![]},{'name':a53_0x1c6291(0x1b8),'type':a53_0x1c6291(0x1d0),'description':'Config\x20value','required':!![]},{'name':'global','type':a53_0x1c6291(0x1d1),'description':a53_0x1c6291(0x1c9),'default':![]}],'execute':execute};
1
+ const a53_0x310489=a53_0x2b80;(function(_0x3f7b4b,_0x3c3e37){const _0x39c55f=a53_0x2b80,_0xdfca98=_0x3f7b4b();while(!![]){try{const _0x2e957c=-parseInt(_0x39c55f(0x1b1))/0x1+parseInt(_0x39c55f(0x1d0))/0x2+-parseInt(_0x39c55f(0x1be))/0x3*(parseInt(_0x39c55f(0x1c8))/0x4)+parseInt(_0x39c55f(0x1c5))/0x5*(-parseInt(_0x39c55f(0x1a3))/0x6)+-parseInt(_0x39c55f(0x1b3))/0x7*(-parseInt(_0x39c55f(0x1a2))/0x8)+-parseInt(_0x39c55f(0x1af))/0x9+parseInt(_0x39c55f(0x1a5))/0xa;if(_0x2e957c===_0x3c3e37)break;else _0xdfca98['push'](_0xdfca98['shift']());}catch(_0x4323e2){_0xdfca98['push'](_0xdfca98['shift']());}}}(a53_0x356c,0x26675));import{CliErrors}from'../../errors.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';import{CLI_BIN_NAME,CONFIG_ENUM_VALUES,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{normalizeEnv,isProduction,isDaily}from'../../constant/env.js';function a53_0x356c(){const _0x1fc22e=['856551ZPkZfw','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','appcode','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','\x20set\x20to:\x20','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','Global','20955buCOkT','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','config','4rqTrQe','app','locale','string','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','riskLevel','Set\x20a\x20config\x20value','length','256686PDmhtJ','bool','144kHvSfG','252uIZWdw','validation','9690890phGPwb','\x20workspace\x20use\x20--app\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','global','object','\x20(stored\x20as\x20apps\x20+\x20defaultApp)','\x22\x20is\x20not\x20settable.','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','Config\x20value','includes','Missing\x20key.','2424798YmzWEm','Top-level\x20key\x20\x22','272206JVGNkJ','value','24514XeMAzV','Project','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','Missing\x20value.','Use\x20`','\x20workspace\x20add\x20<name>\x20--appcode\x20','apps','`,\x20`','env','key','boolean'];a53_0x356c=function(){return _0x1fc22e;};return a53_0x356c();}async function execute(_0x134271){const _0x4790af=a53_0x2b80,_0x521cb3=_0x134271['str'](_0x4790af(0x1bc)),_0x574206=_0x134271['str'](_0x4790af(0x1b2));if(!_0x521cb3)throw CliErrors[_0x4790af(0x1a4)](_0x4790af(0x1ae),'Usage:\x20'+CLI_BIN_NAME+_0x4790af(0x1c1));if(_0x574206===undefined||_0x574206==='')throw CliErrors[_0x4790af(0x1a4)](_0x4790af(0x1b6),'Usage:\x20'+CLI_BIN_NAME+'\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>');if(_0x574206[_0x4790af(0x1cf)]>0x1f4)throw CliErrors[_0x4790af(0x1a4)](_0x4790af(0x1c6));if(!isTopLevelConfigKey(_0x521cb3))throw CliErrors[_0x4790af(0x1a4)](_0x4790af(0x1b0)+_0x521cb3+_0x4790af(0x1aa),'Settable\x20top-level\x20keys:\x20'+getTopLevelConfigKeySummary());if(_0x521cb3===_0x4790af(0x1cd))throw CliErrors['validation'](_0x4790af(0x1c3));if(CONFIG_ENUM_VALUES[_0x521cb3]&&!CONFIG_ENUM_VALUES[_0x521cb3][_0x4790af(0x1ad)](_0x574206))throw CliErrors[_0x4790af(0x1a4)]('Invalid\x20value\x20for\x20\x22'+_0x521cb3+'\x22.\x20Allowed:\x20'+CONFIG_ENUM_VALUES[_0x521cb3]['join'](',\x20'));if(_0x521cb3===_0x4790af(0x1ca)&&!normalizeLocale(_0x574206))throw CliErrors[_0x4790af(0x1a4)]('Invalid\x20locale\x20value.','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US');const _0x342bc6={'global':_0x134271[_0x4790af(0x1d1)](_0x4790af(0x1a7))},_0x9907ac=resolveWriteScope(_0x342bc6),_0x4bc164=readScopedConfig(_0x9907ac);let _0xddcaf=_0x521cb3,_0x1fa85c=_0x574206;_0x521cb3==='app'&&(_0xddcaf='appcode',delete _0x4bc164[_0x4790af(0x1c9)]);_0x521cb3===_0x4790af(0x1ca)&&(_0x1fa85c=normalizeLocale(_0x574206));if(_0x521cb3==='env'){_0x1fa85c=normalizeEnv(_0x574206);if(!isProduction(_0x1fa85c)&&!isDaily(_0x1fa85c))throw CliErrors[_0x4790af(0x1a4)](_0x4790af(0x1b5),_0x4790af(0x1bf));}if(_0x521cb3===_0x4790af(0x1c0)){const _0x56959b=_0x4bc164[_0x4790af(0x1b9)]&&typeof _0x4bc164[_0x4790af(0x1b9)]===_0x4790af(0x1a8)?Object['keys'](_0x4bc164[_0x4790af(0x1b9)]):[];if(_0x56959b[_0x4790af(0x1cf)]>0x0)throw CliErrors[_0x4790af(0x1a4)](_0x4790af(0x1ab),_0x4790af(0x1b7)+CLI_BIN_NAME+_0x4790af(0x1b8)+_0x1fa85c+_0x4790af(0x1ba)+CLI_BIN_NAME+_0x4790af(0x1a6));const _0x1b79dd=buildCanonicalProjectConfig({..._0x4bc164},{'appCodes':[_0x1fa85c],'env':typeof _0x4bc164['env']===_0x4790af(0x1cb)?_0x4bc164[_0x4790af(0x1bb)]:undefined});writeScopedConfig(_0x1b79dd,_0x9907ac);const _0x1fd000=_0x9907ac===_0x4790af(0x1a7)?_0x4790af(0x1c4):_0x4790af(0x1b4);return{'ok':!![],'message':'✓\x20'+_0x1fd000+'\x20appcode\x20set\x20to:\x20'+_0x1fa85c+_0x4790af(0x1a9)};}_0x4bc164[_0xddcaf]=_0x1fa85c,writeScopedConfig(_0x4bc164,_0x9907ac);const _0x1136c9=_0x9907ac===_0x4790af(0x1a7)?_0x4790af(0x1c4):_0x4790af(0x1b4);return{'ok':!![],'message':'✓\x20'+_0x1136c9+'\x20'+_0xddcaf+_0x4790af(0x1c2)+_0x1fa85c};}function a53_0x2b80(_0x11c0d8,_0x5b4ce7){_0x11c0d8=_0x11c0d8-0x1a2;const _0x356c82=a53_0x356c();let _0x2b8005=_0x356c82[_0x11c0d8];return _0x2b8005;}export const configSetDefinition={'service':a53_0x310489(0x1c7),'command':'set','description':a53_0x310489(0x1ce),'risk':'write','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'key','type':a53_0x310489(0x1cb),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a53_0x310489(0x1b2),'type':'string','description':a53_0x310489(0x1ac),'required':!![]},{'name':a53_0x310489(0x1a7),'type':a53_0x310489(0x1bd),'description':a53_0x310489(0x1cc),'default':![]}],'execute':execute};
@@ -1 +1 @@
1
- (function(_0x388464,_0x5a3fc8){var _0x480bc7=a54_0x114f,_0x25337c=_0x388464();while(!![]){try{var _0x1d4e1f=-parseInt(_0x480bc7(0xb3))/0x1+-parseInt(_0x480bc7(0xba))/0x2*(-parseInt(_0x480bc7(0xbf))/0x3)+-parseInt(_0x480bc7(0xbd))/0x4*(-parseInt(_0x480bc7(0xc0))/0x5)+parseInt(_0x480bc7(0xb9))/0x6*(-parseInt(_0x480bc7(0xb4))/0x7)+-parseInt(_0x480bc7(0xc1))/0x8*(-parseInt(_0x480bc7(0xbb))/0x9)+parseInt(_0x480bc7(0xbe))/0xa*(-parseInt(_0x480bc7(0xbc))/0xb)+parseInt(_0x480bc7(0xb8))/0xc;if(_0x1d4e1f===_0x5a3fc8)break;else _0x25337c['push'](_0x25337c['shift']());}catch(_0x3c53c4){_0x25337c['push'](_0x25337c['shift']());}}}(a54_0x5bb7,0x445f7));import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';function a54_0x5bb7(){var _0x3ab22e=['281308zrKkCY','4823870MTyJtd','3PXhNSM','35jWksNu','72gaIRpS','validation','global','528995scLTcy','35nSzBOI','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','project','8014776KjyMxg','179364SQYUeN','485318NVlzSe','38061MzirpI','11rEsQBY'];a54_0x5bb7=function(){return _0x3ab22e;};return a54_0x5bb7();}import{CliErrors}from'../../errors.js';import{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';export{CLI_BIN_NAME};export{normalizeLocale};export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0x58ca13){var _0x9cb959=a54_0x114f;if(_0x58ca13[_0x9cb959(0xc3)])return'global';if(!isInProject())throw CliErrors[_0x9cb959(0xc2)](_0x9cb959(0xb5),_0x9cb959(0xb6)+CLI_BIN_NAME+'\x20init`\x20first.');return _0x9cb959(0xb7);}function a54_0x114f(_0x5c6952,_0xbf203e){_0x5c6952=_0x5c6952-0xb3;var _0x5bb75f=a54_0x5bb7();var _0x114f0e=_0x5bb75f[_0x5c6952];return _0x114f0e;}export function readScopedConfig(_0x50f869){return readConfigFile(resolveWriteConfigPath(_0x50f869));}export function writeScopedConfig(_0x58cfff,_0x4da996){writeConfigFile(resolveWriteConfigPath(_0x4da996),_0x58cfff);}
1
+ function a54_0x2290(){var _0x3f1aaa=['Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','validation','project','682734WVmQuK','48siqFqo','480294KmMzSr','48RvhXAA','33188cRJAoZ','1365444ppMJhP','1401635FSEMda','503097MILJCJ','598797hMWBnR','\x20init`\x20first.'];a54_0x2290=function(){return _0x3f1aaa;};return a54_0x2290();}(function(_0x3a9129,_0x3142e2){var _0x273e54=a54_0x435f,_0xa756de=_0x3a9129();while(!![]){try{var _0x4801fd=-parseInt(_0x273e54(0x139))/0x1+-parseInt(_0x273e54(0x13b))/0x2*(-parseInt(_0x273e54(0x13a))/0x3)+parseInt(_0x273e54(0x13c))/0x4+-parseInt(_0x273e54(0x13d))/0x5+parseInt(_0x273e54(0x137))/0x6+-parseInt(_0x273e54(0x13e))/0x7+parseInt(_0x273e54(0x138))/0x8*(parseInt(_0x273e54(0x13f))/0x9);if(_0x4801fd===_0x3142e2)break;else _0xa756de['push'](_0xa756de['shift']());}catch(_0x3e623d){_0xa756de['push'](_0xa756de['shift']());}}}(a54_0x2290,0x46280));import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';function a54_0x435f(_0x5b6f68,_0x368198){_0x5b6f68=_0x5b6f68-0x133;var _0x2290a4=a54_0x2290();var _0x435ff6=_0x2290a4[_0x5b6f68];return _0x435ff6;}import{CliErrors}from'../../errors.js';import{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';export{CLI_BIN_NAME};export{normalizeLocale};export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0x4f0489){var _0x221b6e=a54_0x435f;if(_0x4f0489['global'])return'global';if(!isInProject())throw CliErrors[_0x221b6e(0x135)]('Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).',_0x221b6e(0x134)+CLI_BIN_NAME+_0x221b6e(0x133));return _0x221b6e(0x136);}export function readScopedConfig(_0x2037d0){return readConfigFile(resolveWriteConfigPath(_0x2037d0));}export function writeScopedConfig(_0x15b04b,_0x1acfcb){writeConfigFile(resolveWriteConfigPath(_0x1acfcb),_0x15b04b);}
@@ -1 +1 @@
1
- const a55_0x5d5350=a55_0x2680;function a55_0x2680(_0x23176a,_0x422986){_0x23176a=_0x23176a-0xdd;const _0x2d5b31=a55_0x2d5b();let _0x26805e=_0x2d5b31[_0x23176a];return _0x26805e;}(function(_0x4f9dcd,_0x11e42d){const _0x1b2861=a55_0x2680,_0xda156f=_0x4f9dcd();while(!![]){try{const _0x2b1f62=parseInt(_0x1b2861(0xed))/0x1*(parseInt(_0x1b2861(0xee))/0x2)+parseInt(_0x1b2861(0xe2))/0x3+-parseInt(_0x1b2861(0xde))/0x4*(parseInt(_0x1b2861(0xea))/0x5)+-parseInt(_0x1b2861(0xe7))/0x6*(parseInt(_0x1b2861(0xe3))/0x7)+-parseInt(_0x1b2861(0xef))/0x8*(-parseInt(_0x1b2861(0xdd))/0x9)+-parseInt(_0x1b2861(0xe4))/0xa+parseInt(_0x1b2861(0xe6))/0xb;if(_0x2b1f62===_0x11e42d)break;else _0xda156f['push'](_0xda156f['shift']());}catch(_0x5caa06){_0xda156f['push'](_0xda156f['shift']());}}}(a55_0x2d5b,0xb5251));function a55_0x2d5b(){const _0x9f03d7=['\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page','944437llEHfo','2OxoSMu','8011624RDySye','9QSQwia','10588iUZAEw','filter','join','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','647829mVKMTN','7bWNwOa','3995630sOmaPS','\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]','5345714oNqzxX','8878830MTjLer','\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','50IeFFYB','Filter\x20dataset\x20records\x20with\x20query\x20conditions'];a55_0x2d5b=function(){return _0x9f03d7;};return a55_0x2d5b();}import{buildDataCommand}from'../../commands/data/shared.js';export const dataFilter=buildDataCommand({'command':a55_0x5d5350(0xdf),'operation':a55_0x5d5350(0xdf),'description':a55_0x5d5350(0xeb),'paramsRequired':![],'paramsHint':a55_0x5d5350(0xe9),'helpExtra':[a55_0x5d5350(0xe1),'\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions',a55_0x5d5350(0xe5),'\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]',a55_0x5d5350(0xe8),a55_0x5d5350(0xec)][a55_0x5d5350(0xe0)]('\x0a')});
1
+ function a55_0x182f(_0x2b3e9f,_0x39cf43){_0x2b3e9f=_0x2b3e9f-0xc5;const _0x100a34=a55_0x100a();let _0x182fb3=_0x100a34[_0x2b3e9f];return _0x182fb3;}const a55_0x34c0aa=a55_0x182f;(function(_0x494314,_0x1f7e3f){const _0x4e1452=a55_0x182f,_0x2daac4=_0x494314();while(!![]){try{const _0x4c4d21=parseInt(_0x4e1452(0xcf))/0x1+-parseInt(_0x4e1452(0xd1))/0x2+-parseInt(_0x4e1452(0xd4))/0x3+-parseInt(_0x4e1452(0xd5))/0x4*(parseInt(_0x4e1452(0xd0))/0x5)+parseInt(_0x4e1452(0xd2))/0x6*(parseInt(_0x4e1452(0xc7))/0x7)+-parseInt(_0x4e1452(0xc9))/0x8*(parseInt(_0x4e1452(0xc6))/0x9)+parseInt(_0x4e1452(0xc5))/0xa;if(_0x4c4d21===_0x1f7e3f)break;else _0x2daac4['push'](_0x2daac4['shift']());}catch(_0x8bd529){_0x2daac4['push'](_0x2daac4['shift']());}}}(a55_0x100a,0xd2380));function a55_0x100a(){const _0x2de31e=['Filter\x20dataset\x20records\x20with\x20query\x20conditions','108720Uuqhsy','2697535PNnqRH','141804rIndcM','6jiGswk','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions','1461324eyeCbG','12aCJMpW','filter','27252290SzoPmG','171dvfwZE','11843755lDRiAs','\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}]','626664AnGfsH','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','join','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]'];a55_0x100a=function(){return _0x2de31e;};return a55_0x100a();}import{buildDataCommand}from'../../commands/data/shared.js';export const dataFilter=buildDataCommand({'command':a55_0x34c0aa(0xd6),'operation':a55_0x34c0aa(0xd6),'description':a55_0x34c0aa(0xce),'paramsRequired':![],'paramsHint':a55_0x34c0aa(0xcc),'helpExtra':[a55_0x34c0aa(0xca),a55_0x34c0aa(0xd3),a55_0x34c0aa(0xcd),a55_0x34c0aa(0xc8),'\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page'][a55_0x34c0aa(0xcb)]('\x0a')});
@@ -1 +1 @@
1
- const a56_0x3bf027=a56_0x24b5;function a56_0x24b5(_0x5b2306,_0x4f8853){_0x5b2306=_0x5b2306-0x13c;const _0x5f3f9c=a56_0x5f3f();let _0x24b525=_0x5f3f9c[_0x5b2306];return _0x24b525;}(function(_0x29c6b5,_0x1a8200){const _0x545cd6=a56_0x24b5,_0x39b260=_0x29c6b5();while(!![]){try{const _0x45d465=-parseInt(_0x545cd6(0x142))/0x1*(parseInt(_0x545cd6(0x13e))/0x2)+-parseInt(_0x545cd6(0x147))/0x3+parseInt(_0x545cd6(0x13d))/0x4*(parseInt(_0x545cd6(0x144))/0x5)+-parseInt(_0x545cd6(0x145))/0x6+-parseInt(_0x545cd6(0x141))/0x7*(parseInt(_0x545cd6(0x13f))/0x8)+parseInt(_0x545cd6(0x146))/0x9*(parseInt(_0x545cd6(0x143))/0xa)+parseInt(_0x545cd6(0x140))/0xb;if(_0x45d465===_0x1a8200)break;else _0x39b260['push'](_0x39b260['shift']());}catch(_0x54ad67){_0x39b260['push'](_0x39b260['shift']());}}}(a56_0x5f3f,0xdf894));import{buildDataCommand}from'../../commands/data/shared.js';function a56_0x5f3f(){const _0x16ea47=['getOne','Get\x20a\x20single\x20record\x20by\x20ID','525576sIKuOq','8tIyDqA','88ZUuhSs','25081078OzWNTH','572173rVmimu','406421sDRVcY','230aoHXgU','35QaqYeV','4277058mxMuTt','600408VlcPGO','1742916HgnVgl'];a56_0x5f3f=function(){return _0x16ea47;};return a56_0x5f3f();}export const dataGetOne=buildDataCommand({'command':a56_0x3bf027(0x148),'operation':a56_0x3bf027(0x148),'description':a56_0x3bf027(0x13c),'paramsRequired':!![],'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'});
1
+ function a56_0xc1a9(_0x362809,_0x5d930d){_0x362809=_0x362809-0x1b9;const _0x514ccb=a56_0x514c();let _0xc1a90d=_0x514ccb[_0x362809];return _0xc1a90d;}const a56_0x5783c9=a56_0xc1a9;(function(_0x13f635,_0x5d3dda){const _0x204dd2=a56_0xc1a9,_0x5e8f5c=_0x13f635();while(!![]){try{const _0x110672=-parseInt(_0x204dd2(0x1bb))/0x1*(parseInt(_0x204dd2(0x1c4))/0x2)+parseInt(_0x204dd2(0x1bf))/0x3+-parseInt(_0x204dd2(0x1c1))/0x4*(-parseInt(_0x204dd2(0x1c3))/0x5)+parseInt(_0x204dd2(0x1c2))/0x6*(-parseInt(_0x204dd2(0x1b9))/0x7)+parseInt(_0x204dd2(0x1be))/0x8*(parseInt(_0x204dd2(0x1bd))/0x9)+parseInt(_0x204dd2(0x1c0))/0xa+-parseInt(_0x204dd2(0x1ba))/0xb;if(_0x110672===_0x5d3dda)break;else _0x5e8f5c['push'](_0x5e8f5c['shift']());}catch(_0x9eaf16){_0x5e8f5c['push'](_0x5e8f5c['shift']());}}}(a56_0x514c,0xc465d));import{buildDataCommand}from'../../commands/data/shared.js';function a56_0x514c(){const _0x3a9759=['3704193MZZGoK','9906140CbUUgG','3305252YvePCq','4297596LdSrEI','5MDAYzQ','242774QEHbjp','7nvDmUK','1088483Uelmwh','13DZeAoK','getOne','438111BjdsNl','24ZsszgT'];a56_0x514c=function(){return _0x3a9759;};return a56_0x514c();}export const dataGetOne=buildDataCommand({'command':a56_0x5783c9(0x1bc),'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 a57_0x256c(){const _0x4f152b=['64868kWgniZ','160965QfPBSa','4140653XBepBZ','2dlHOOI','85JvxChY','843291ytSCjL','4544910wmDmRr','8Sggmxz','10rGAiot','2928141vYUUlA','42476QECDVU'];a57_0x256c=function(){return _0x4f152b;};return a57_0x256c();}(function(_0x50262f,_0x252375){const _0x2daf95=a57_0x33ae,_0x3be068=_0x50262f();while(!![]){try{const _0x319e02=parseInt(_0x2daf95(0x152))/0x1*(parseInt(_0x2daf95(0x154))/0x2)+-parseInt(_0x2daf95(0x156))/0x3+-parseInt(_0x2daf95(0x151))/0x4*(parseInt(_0x2daf95(0x155))/0x5)+parseInt(_0x2daf95(0x157))/0x6+parseInt(_0x2daf95(0x150))/0x7*(parseInt(_0x2daf95(0x158))/0x8)+-parseInt(_0x2daf95(0x14f))/0x9+parseInt(_0x2daf95(0x159))/0xa*(parseInt(_0x2daf95(0x153))/0xb);if(_0x319e02===_0x252375)break;else _0x3be068['push'](_0x3be068['shift']());}catch(_0x53787d){_0x3be068['push'](_0x3be068['shift']());}}}(a57_0x256c,0x663f6));import{dataFilter}from'../../commands/data/filter.js';function a57_0x33ae(_0x53d073,_0x3b70f4){_0x53d073=_0x53d073-0x14f;const _0x256cd5=a57_0x256c();let _0x33ae2f=_0x256cd5[_0x53d073];return _0x33ae2f;}import{dataGetOne}from'../../commands/data/getOne.js';export const dataDefinitions=[dataFilter,dataGetOne];
1
+ (function(_0x50146a,_0x5e4c74){const _0x1152cb=a57_0x1001,_0x10eea4=_0x50146a();while(!![]){try{const _0x385423=parseInt(_0x1152cb(0x158))/0x1+-parseInt(_0x1152cb(0x15a))/0x2*(parseInt(_0x1152cb(0x15e))/0x3)+-parseInt(_0x1152cb(0x155))/0x4+-parseInt(_0x1152cb(0x156))/0x5+parseInt(_0x1152cb(0x157))/0x6*(-parseInt(_0x1152cb(0x15d))/0x7)+-parseInt(_0x1152cb(0x159))/0x8*(-parseInt(_0x1152cb(0x15b))/0x9)+parseInt(_0x1152cb(0x15c))/0xa;if(_0x385423===_0x5e4c74)break;else _0x10eea4['push'](_0x10eea4['shift']());}catch(_0x1b813b){_0x10eea4['push'](_0x10eea4['shift']());}}}(a57_0x536d,0x1da22));function a57_0x1001(_0x3cdb6b,_0x4411f4){_0x3cdb6b=_0x3cdb6b-0x155;const _0x536d44=a57_0x536d();let _0x10019b=_0x536d44[_0x3cdb6b];return _0x10019b;}function a57_0x536d(){const _0x338510=['461560EsCUNA','102ktVhEq','142021VGEPtg','216UMuBdb','20rnruGl','66834fdyVfr','1816680ZbOEVS','6209WGoFps','33585usrKRI','733888aaNaQg'];a57_0x536d=function(){return _0x338510;};return a57_0x536d();}import{dataFilter}from'../../commands/data/filter.js';import{dataGetOne}from'../../commands/data/getOne.js';export const dataDefinitions=[dataFilter,dataGetOne];
@@ -1 +1 @@
1
- (function(_0x27d88d,_0x36b0fc){const _0x551a9f=a58_0x4322,_0x237d2d=_0x27d88d();while(!![]){try{const _0x2ab38e=-parseInt(_0x551a9f(0x1f3))/0x1*(-parseInt(_0x551a9f(0x1f4))/0x2)+-parseInt(_0x551a9f(0x1e1))/0x3*(-parseInt(_0x551a9f(0x1ea))/0x4)+parseInt(_0x551a9f(0x1df))/0x5*(parseInt(_0x551a9f(0x1e3))/0x6)+-parseInt(_0x551a9f(0x1e4))/0x7+parseInt(_0x551a9f(0x1ed))/0x8*(-parseInt(_0x551a9f(0x1f5))/0x9)+-parseInt(_0x551a9f(0x1eb))/0xa*(-parseInt(_0x551a9f(0x1ee))/0xb)+-parseInt(_0x551a9f(0x1d6))/0xc;if(_0x2ab38e===_0x36b0fc)break;else _0x237d2d['push'](_0x237d2d['shift']());}catch(_0x42f3eb){_0x237d2d['push'](_0x237d2d['shift']());}}}(a58_0x266f,0x89dee));import{executeDatasetDataOperation}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a58_0x4322(_0x30178a,_0x3d5fec){_0x30178a=_0x30178a-0x1d6;const _0x266f6a=a58_0x266f();let _0x4322de=_0x266f6a[_0x30178a];return _0x4322de;}import{CliErrors}from'../../errors.js';import{parseJsonParams}from'../../utils/params.js';function assertGetOneId(_0x54463e){const _0x449f88=a58_0x4322;if(!_0x54463e)throw CliErrors[_0x449f88(0x1f0)]('params',_0x449f88(0x1e7));const _0x38a826=_0x54463e['id'];if(_0x38a826===undefined||_0x38a826===null||_0x38a826==='')throw CliErrors[_0x449f88(0x1d9)]('data\x20getOne\x20requires\x20\x22id\x22\x20in\x20--params',_0x449f88(0x1e2));}function a58_0x266f(){const _0x6f070d=['data\x20','str','607930SOZPfg','paramsRequired','129UYkhmH','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','18eWoJJt','3179645lgdZJb','alias','description','Provide\x20--params\x20\x27{\x22id\x22:123}\x27\x20for\x20data\x20getOne.','compress','appCode','15952aDdgCG','22870reCXtn','data','259288AawWhK','759luErXt','operation','flagMissing','paramsHint','command','1057623HJTTnM','2MvuFLc','36ZIlVHK','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','7236852RYfcuy','\x20completed\x20in\x20','params','validation','code','string','read'];a58_0x266f=function(){return _0x6f070d;};return a58_0x266f();}function parseCommandParams(_0x17c788){return parseJsonParams(_0x17c788)??{};}export function buildDataCommand(_0x2af4f5){const _0x4f52c4=a58_0x4322,_0x425c4f=_0x4f52c4(0x1f6);return{'service':_0x4f52c4(0x1ec),'command':_0x2af4f5[_0x4f52c4(0x1f2)],'description':_0x2af4f5[_0x4f52c4(0x1e6)],'risk':_0x4f52c4(0x1dc),'defaultOutputFormat':_0x4f52c4(0x1e8),'helpExtra':_0x2af4f5['helpExtra'],'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':_0x4f52c4(0x1e5),'type':'string','description':_0x425c4f},{'name':_0x4f52c4(0x1d8),'type':_0x4f52c4(0x1db),'description':_0x2af4f5['paramsHint']}],async 'validate'(_0xeef946){const _0x13c352=_0x4f52c4,_0x22e8af=_0xeef946[_0x13c352(0x1de)]('params');if(_0x2af4f5[_0x13c352(0x1e0)]&&!_0x22e8af)throw CliErrors[_0x13c352(0x1f0)]('params',_0x2af4f5[_0x13c352(0x1f1)]);const _0x3d525e=parseJsonParams(_0x22e8af);_0x2af4f5[_0x13c352(0x1ef)]==='getOne'&&assertGetOneId(_0x3d525e);},async 'execute'(_0x39d96a){const _0x5a552e=_0x4f52c4,_0xfff160=parseCommandParams(_0x39d96a[_0x5a552e(0x1de)](_0x5a552e(0x1d8))),_0x534f35=Date['now'](),_0x445bf6=await executeDatasetDataOperation(_0x39d96a[_0x5a552e(0x1e9)],_0x39d96a['str'](_0x5a552e(0x1da)),_0x2af4f5['operation'],_0xfff160),_0x52cddb=Date['now']()-_0x534f35;return{'ok':!![],'data':{'result':_0x445bf6,'elapsed':_0x52cddb},'message':_0x5a552e(0x1dd)+_0x2af4f5['command']+_0x5a552e(0x1d7)+_0x52cddb+'ms'};}};}
1
+ (function(_0x1543ca,_0x41a8fd){const _0x40eda4=a58_0x39ae,_0x273d20=_0x1543ca();while(!![]){try{const _0x8b5d2d=parseInt(_0x40eda4(0x150))/0x1+-parseInt(_0x40eda4(0x156))/0x2+parseInt(_0x40eda4(0x151))/0x3+-parseInt(_0x40eda4(0x15b))/0x4+-parseInt(_0x40eda4(0x14f))/0x5*(-parseInt(_0x40eda4(0x14b))/0x6)+parseInt(_0x40eda4(0x162))/0x7+-parseInt(_0x40eda4(0x15f))/0x8;if(_0x8b5d2d===_0x41a8fd)break;else _0x273d20['push'](_0x273d20['shift']());}catch(_0x49f0f5){_0x273d20['push'](_0x273d20['shift']());}}}(a58_0x2f0a,0x59687));import{executeDatasetDataOperation}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{parseJsonParams}from'../../utils/params.js';function a58_0x2f0a(){const _0x48d14e=['operation','data\x20','4454002shppVJ','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','flagMissing','alias','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','6PBkURJ','str','getOne','string','2634905wjizXD','400004yfcNDQ','2153310iitSUh','helpExtra','params','paramsHint','data','981194kTgbBN','now','code','read','\x20completed\x20in\x20','1560924ZIOdjm','Provide\x20--params\x20\x27{\x22id\x22:123}\x27\x20for\x20data\x20getOne.','appCode','compress','8271984jCZlDa'];a58_0x2f0a=function(){return _0x48d14e;};return a58_0x2f0a();}function a58_0x39ae(_0x21fda2,_0x59b5d4){_0x21fda2=_0x21fda2-0x14a;const _0x2f0a58=a58_0x2f0a();let _0x39aea4=_0x2f0a58[_0x21fda2];return _0x39aea4;}function assertGetOneId(_0x555a6d){const _0x27f93a=a58_0x39ae;if(!_0x555a6d)throw CliErrors[_0x27f93a(0x164)]('params',_0x27f93a(0x15c));const _0x390511=_0x555a6d['id'];if(_0x390511===undefined||_0x390511===null||_0x390511==='')throw CliErrors['validation']('data\x20getOne\x20requires\x20\x22id\x22\x20in\x20--params',_0x27f93a(0x163));}function parseCommandParams(_0x2a9e02){return parseJsonParams(_0x2a9e02)??{};}export function buildDataCommand(_0x49ad5c){const _0x23af8c=a58_0x39ae,_0x921d5=_0x23af8c(0x14a);return{'service':_0x23af8c(0x155),'command':_0x49ad5c['command'],'description':_0x49ad5c['description'],'risk':_0x23af8c(0x159),'defaultOutputFormat':_0x23af8c(0x15e),'helpExtra':_0x49ad5c[_0x23af8c(0x152)],'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':_0x23af8c(0x165),'type':'string','description':_0x921d5},{'name':'params','type':_0x23af8c(0x14e),'description':_0x49ad5c[_0x23af8c(0x154)]}],async 'validate'(_0x4babd8){const _0x54e72e=_0x23af8c,_0x54f193=_0x4babd8[_0x54e72e(0x14c)](_0x54e72e(0x153));if(_0x49ad5c['paramsRequired']&&!_0x54f193)throw CliErrors[_0x54e72e(0x164)](_0x54e72e(0x153),_0x49ad5c[_0x54e72e(0x154)]);const _0x13360c=parseJsonParams(_0x54f193);_0x49ad5c['operation']===_0x54e72e(0x14d)&&assertGetOneId(_0x13360c);},async 'execute'(_0x40f381){const _0x3ce09c=_0x23af8c,_0x5a8c6f=parseCommandParams(_0x40f381[_0x3ce09c(0x14c)](_0x3ce09c(0x153))),_0x1e45e4=Date['now'](),_0x3dadd6=await executeDatasetDataOperation(_0x40f381[_0x3ce09c(0x15d)],_0x40f381[_0x3ce09c(0x14c)](_0x3ce09c(0x158)),_0x49ad5c[_0x3ce09c(0x160)],_0x5a8c6f),_0x17f6a6=Date[_0x3ce09c(0x157)]()-_0x1e45e4;return{'ok':!![],'data':{'result':_0x3dadd6,'elapsed':_0x17f6a6},'message':_0x3ce09c(0x161)+_0x49ad5c['command']+_0x3ce09c(0x15a)+_0x17f6a6+'ms'};}};}
@@ -1 +1 @@
1
- const a59_0x3c1347=a59_0x1c66;(function(_0x12f520,_0x4f8a9f){const _0x321e51=a59_0x1c66,_0x9401b=_0x12f520();while(!![]){try{const _0x5e8d8b=parseInt(_0x321e51(0xff))/0x1+-parseInt(_0x321e51(0xc1))/0x2*(-parseInt(_0x321e51(0xdc))/0x3)+parseInt(_0x321e51(0xf5))/0x4+parseInt(_0x321e51(0xe8))/0x5*(-parseInt(_0x321e51(0xe6))/0x6)+parseInt(_0x321e51(0xdf))/0x7+parseInt(_0x321e51(0xe3))/0x8*(-parseInt(_0x321e51(0xde))/0x9)+-parseInt(_0x321e51(0xe4))/0xa*(parseInt(_0x321e51(0xe1))/0xb);if(_0x5e8d8b===_0x4f8a9f)break;else _0x9401b['push'](_0x9401b['shift']());}catch(_0x23c823){_0x9401b['push'](_0x9401b['shift']());}}}(a59_0xc2d1,0xb259c));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_0x3c1347(0xef);export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x47ab83,input:_0x36fa48,dryRun:_0x474ecb}){const _0x45cc26=a59_0x3c1347;validateInput(_0x36fa48);const _0x3029b7=normalizeBusinessGroup(_0x36fa48[_0x45cc26(0xd6)]),_0xc22697=await getDatasetDetail(_0x36fa48['code']),_0x1ebe35=resolveBusinessGroupDataset(_0xc22697,_0x36fa48[_0x45cc26(0xdb)]),_0x216fff=loadCurrentBusinessGroup(_0xc22697,_0x1ebe35);assertExpectedBusinessGroup(_0x216fff,_0x36fa48[_0x45cc26(0xfb)]);const _0x41364d=buildBackendPayload(_0x47ab83,_0x1ebe35,_0x3029b7),_0x4f1620=_0x216fff!==_0x3029b7;let _0x5b64d6;if(_0x4f1620&&!_0x474ecb){await updateErBusinessGroup(_0x41364d);const _0xbccf1c=await getDatasetDetail(_0x1ebe35['code']),_0x894c89=resolveBusinessGroupDataset(_0xbccf1c,_0x1ebe35[_0x45cc26(0xdb)]),_0x57de64=loadCurrentBusinessGroup(_0xbccf1c,_0x894c89);if(_0x57de64!==_0x3029b7)throw CliErrors['apiError']('Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.',_0x45cc26(0xf0)+JSON[_0x45cc26(0xe7)](_0x3029b7)+_0x45cc26(0xc2)+JSON[_0x45cc26(0xe7)](_0x57de64)+'.');_0x5b64d6={'verified':!![],'status':'matched','afterReadback':{'businessGroup':_0x57de64}};}else!_0x4f1620&&(_0x5b64d6={'verified':!![],'status':_0x45cc26(0xcb),'afterReadback':{'businessGroup':_0x216fff}});const _0x3d58d0={'operation':_0x45cc26(0xd8),'appCode':_0x47ab83,'selector':{'code':_0x1ebe35[_0x45cc26(0xdb)]},'dataset':_0x1ebe35,'before':{'businessGroup':_0x216fff},'after':{'businessGroup':_0x3029b7},'changed':_0x4f1620,'dryRun':_0x474ecb,'submitted':_0x4f1620&&!_0x474ecb,'backend':{'method':'POST','path':BACKEND_PATH,'payload':_0x41364d},..._0x5b64d6?{'verification':_0x5b64d6}:{},'warnings':[]};return{'ok':!![],'data':_0x3d58d0,'message':_0x4f1620?_0x474ecb?_0x45cc26(0xc0)+_0x1ebe35[_0x45cc26(0xdb)]:_0x45cc26(0xe2)+_0x1ebe35[_0x45cc26(0xdb)]:_0x45cc26(0xec)+_0x1ebe35[_0x45cc26(0xdb)]};}function a59_0xc2d1(){const _0x12c453=['str','Business\x20scenario\x20group\x20readback\x20must\x20be\x20available\x20by\x20datasetCode;\x20upgrade\x20the\x20backend\x20read\x20contract\x20instead\x20of\x20using\x20dblinkId/tableName.','toUpperCase','Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.','businessGroup','validation','update','modelCode','length','code','7317ExcAOj','DB_TABLE','2939697fiXKRQ','7741020NLWwFk','backend','16181rkDQEx','Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20','8uOACgy','5890NLUlqK','value','6ApsPWJ','stringify','4535005HDqHvf','found','--business-group\x20is\x20required','write','No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20','datasetId','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','/smartapi/question/er-config/business-group/edit','Expected\x20','prototype','Expected\x20current\x20business\x20scenario\x20group;\x20mismatch\x20aborts\x20without\x20writing','isFinite','dbtableConfig','3928344BJsBYD','sourceType','extend','modelId','Dataset\x20detail\x20does\x20not\x20expose\x20businessGroup.','--code\x20is\x20required','expectBusinessGroup','message','dataset','parse','703607hmFrZL','METADATA','trim','Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20','32DLpMZZ',',\x20actual\x20','isArray','data','name','datasetCode','source','appCode','POST','keys','unchanged','call','string','expect-business-group','number','business-group','object'];a59_0xc2d1=function(){return _0x12c453;};return a59_0xc2d1();}export const datasetBusinessGroupUpdate={'service':a59_0x3c1347(0xfd),'command':'business-group-update','description':'Update\x20business\x20scenario\x20group','risk':a59_0x3c1347(0xeb),'flags':[CODE_FLAG,{'name':a59_0x3c1347(0xd0),'type':a59_0x3c1347(0xcd),'required':!![],'description':a59_0x3c1347(0xee)},{'name':a59_0x3c1347(0xce),'type':a59_0x3c1347(0xcd),'required':![],'description':a59_0x3c1347(0xf2)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x1d8482){validateInput(readBusinessGroupUpdateInput(_0x1d8482));},async 'dryRun'(_0x2dee00){const _0xb2e3e=a59_0x3c1347,_0x40c9c3=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x2dee00[_0xb2e3e(0xc8)],'input':readBusinessGroupUpdateInput(_0x2dee00),'dryRun':!![]});return{'method':_0xb2e3e(0xc9),'url':BACKEND_PATH,'body':_0x40c9c3[_0xb2e3e(0xc4)][_0xb2e3e(0xe0)]['payload'],'description':_0x40c9c3[_0xb2e3e(0xfc)],..._0x40c9c3[_0xb2e3e(0xc4)]};},async 'execute'(_0x30d038){const _0x134ec3=a59_0x3c1347;return buildDatasetBusinessGroupUpdateResult({'appCode':_0x30d038[_0x134ec3(0xc8)],'input':readBusinessGroupUpdateInput(_0x30d038),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x48aa38){const _0x19545c=a59_0x3c1347,_0x204b8d=_0x48aa38[_0x19545c(0xd2)]('expect-business-group');return{'code':trim(_0x48aa38[_0x19545c(0xd2)]('code')),'businessGroup':_0x48aa38['str']('business-group'),'expectBusinessGroup':_0x204b8d===undefined||_0x204b8d===''?undefined:_0x204b8d};}function validateInput(_0x1d116f){const _0x57545e=a59_0x3c1347;if(!trim(_0x1d116f['code']))throw CliErrors[_0x57545e(0xd7)](_0x57545e(0xfa));if(_0x1d116f[_0x57545e(0xd6)]===undefined)throw CliErrors['validation'](_0x57545e(0xea));}function resolveBusinessGroupDataset(_0x2a62aa,_0x1a7f74){const _0x2f36c7=a59_0x3c1347,_0xaecff=asPlainObject(_0x2a62aa[_0x2f36c7(0xfd)]),_0x1336be=asPlainObject(_0x2a62aa[_0x2f36c7(0xf4)]),_0x10e76e=resolveSourceType(_0x2a62aa,_0xaecff,_0x1336be),_0x34a953=firstString(_0x2a62aa[_0x2f36c7(0xd9)],_0x2a62aa[_0x2f36c7(0xdb)],_0xaecff[_0x2f36c7(0xc6)],_0x1a7f74)||_0x1a7f74;return{'id':firstNumber(_0x2a62aa[_0x2f36c7(0xf8)],_0x2a62aa['id'],_0xaecff[_0x2f36c7(0xed)])??firstString(_0x2a62aa['modelId'],_0x2a62aa['id'],_0xaecff[_0x2f36c7(0xed)])??null,'code':_0x34a953,'name':firstString(_0x2a62aa['name'],_0xaecff['datasetName'],_0xaecff[_0x2f36c7(0xc5)])||null,'sourceType':_0x10e76e};}function a59_0x1c66(_0xb4128,_0x359369){_0xb4128=_0xb4128-0xbf;const _0xc2d1e4=a59_0xc2d1();let _0x1c66c9=_0xc2d1e4[_0xb4128];return _0x1c66c9;}function resolveSourceType(_0xfadd0a,_0x37453c,_0x75b399){const _0x1a4310=a59_0x3c1347,_0x4bd22d=firstString(_0xfadd0a[_0x1a4310(0xc7)],_0xfadd0a[_0x1a4310(0xf6)],_0x37453c[_0x1a4310(0xc7)],_0x37453c[_0x1a4310(0xf6)])?.[_0x1a4310(0xbf)]()[_0x1a4310(0xd4)]();if(_0x4bd22d===_0x1a4310(0xdd)||_0x4bd22d===_0x1a4310(0x100))return _0x4bd22d;if(Object[_0x1a4310(0xca)](_0x75b399)[_0x1a4310(0xda)]>0x0)return _0x1a4310(0xdd);throw CliErrors['validation'](_0x1a4310(0xd5));}function loadCurrentBusinessGroup(_0x560b08,_0x2e8944){const _0x4757d9=a59_0x3c1347,_0x344f9f=readBusinessGroupFromDatasetDetail(_0x560b08,_0x2e8944[_0x4757d9(0xf6)]);if(_0x344f9f[_0x4757d9(0xe9)])return normalizeBusinessGroup(_0x344f9f[_0x4757d9(0xe5)]);if(_0x2e8944['sourceType']==='METADATA')return'';throw CliErrors[_0x4757d9(0xd7)](_0x4757d9(0xf9),_0x4757d9(0xd3));}function readBusinessGroupFromDatasetDetail(_0x3f8a9c,_0x48831f){const _0x6d794e=a59_0x3c1347,_0x163528=asPlainObject(_0x3f8a9c['dataset']),_0x33afd4=firstPresent(_0x3f8a9c[_0x6d794e(0xd6)]);if(_0x33afd4['found'])return _0x33afd4;const _0x46aaa8=firstPresent(_0x163528[_0x6d794e(0xd6)]);if(_0x46aaa8['found'])return _0x46aaa8;if(_0x48831f==='DB_TABLE')return{'found':![]};const _0x51ddaf=readBusinessGroupFromExtend(_0x3f8a9c['extend']);if(_0x51ddaf[_0x6d794e(0xe9)])return _0x51ddaf;return readBusinessGroupFromExtend(_0x163528[_0x6d794e(0xf7)]);}function readBusinessGroupFromExtend(_0x1664af){const _0x3b677e=a59_0x3c1347;if(_0x1664af===undefined||_0x1664af===null||_0x1664af==='')return{'found':![]};if(typeof _0x1664af===_0x3b677e(0xcd))try{const _0x511b80=JSON[_0x3b677e(0xfe)](_0x1664af);return readBusinessGroupFromExtend(_0x511b80);}catch{return{'found':![]};}const _0x3e1a26=asPlainObject(_0x1664af);if(Object[_0x3b677e(0xf1)]['hasOwnProperty'][_0x3b677e(0xcc)](_0x3e1a26,'businessGroup'))return{'found':!![],'value':_0x3e1a26[_0x3b677e(0xd6)]};return{'found':![]};}function firstPresent(..._0x2e43ad){for(const _0x5230ec of _0x2e43ad){if(_0x5230ec!==undefined&&_0x5230ec!==null)return{'found':!![],'value':_0x5230ec};}return{'found':![]};}function assertExpectedBusinessGroup(_0x4fe6e8,_0x577497){const _0x3b80e6=a59_0x3c1347;if(_0x577497===undefined)return;const _0x5a2b96=normalizeBusinessGroup(_0x577497);if(_0x4fe6e8!==_0x5a2b96)throw CliErrors['validation']('Expectation\x20mismatch\x20at\x20businessGroup',_0x3b80e6(0xf0)+JSON[_0x3b80e6(0xe7)](_0x5a2b96)+_0x3b80e6(0xc2)+JSON[_0x3b80e6(0xe7)](_0x4fe6e8));}function buildBackendPayload(_0x1b5a7e,_0x3ca303,_0x2b5a64){const _0x132bc9=a59_0x3c1347;return{'appCode':_0x1b5a7e,'datasetCode':_0x3ca303[_0x132bc9(0xdb)],'businessGroup':_0x2b5a64};}function normalizeBusinessGroup(_0x380aee){const _0x488e05=a59_0x3c1347;if(_0x380aee===undefined||_0x380aee===null)return'';return String(_0x380aee)[_0x488e05(0xbf)]();}function asPlainObject(_0xe58c60){const _0x41b6a0=a59_0x3c1347;if(!_0xe58c60||typeof _0xe58c60!==_0x41b6a0(0xd1)||Array[_0x41b6a0(0xc3)](_0xe58c60))return{};return _0xe58c60;}function firstString(..._0x34c9ed){const _0x3bc8c7=a59_0x3c1347;for(const _0x48e49e of _0x34c9ed){if(typeof _0x48e49e===_0x3bc8c7(0xcd)&&_0x48e49e[_0x3bc8c7(0xbf)]())return _0x48e49e[_0x3bc8c7(0xbf)]();if(typeof _0x48e49e==='number'&&Number[_0x3bc8c7(0xf3)](_0x48e49e))return String(_0x48e49e);}return undefined;}function firstNumber(..._0x36ca27){const _0xee894a=a59_0x3c1347;for(const _0x8a49a1 of _0x36ca27){if(typeof _0x8a49a1===_0xee894a(0xcf)&&Number[_0xee894a(0xf3)](_0x8a49a1))return _0x8a49a1;if(typeof _0x8a49a1==='string'&&_0x8a49a1['trim']()&&Number[_0xee894a(0xf3)](Number(_0x8a49a1)))return Number(_0x8a49a1);}return null;}function trim(_0x2472b1){const _0x9ad7e4=a59_0x3c1347;return String(_0x2472b1||'')[_0x9ad7e4(0xbf)]();}
1
+ const a59_0x4c76e9=a59_0x3d59;(function(_0x119ed2,_0xbf16fb){const _0x2f7775=a59_0x3d59,_0x5a0ca2=_0x119ed2();while(!![]){try{const _0x2d333b=parseInt(_0x2f7775(0x1da))/0x1+-parseInt(_0x2f7775(0x1ae))/0x2+parseInt(_0x2f7775(0x1c9))/0x3*(-parseInt(_0x2f7775(0x1bc))/0x4)+parseInt(_0x2f7775(0x1cb))/0x5*(-parseInt(_0x2f7775(0x1cd))/0x6)+parseInt(_0x2f7775(0x1de))/0x7+-parseInt(_0x2f7775(0x1d9))/0x8+parseInt(_0x2f7775(0x1b0))/0x9;if(_0x2d333b===_0xbf16fb)break;else _0x5a0ca2['push'](_0x5a0ca2['shift']());}catch(_0x1c1f9f){_0x5a0ca2['push'](_0x5a0ca2['shift']());}}}(a59_0x5b03,0x66db7));import{APPCODE_FLAG_OPTIONAL,CODE_FLAG}from'../../commands/common/flags.js';import{getDatasetDetail,updateErBusinessGroup}from'../../core/api-client.js';function a59_0x5b03(){const _0x123cff=['Expected\x20current\x20business\x20scenario\x20group;\x20mismatch\x20aborts\x20without\x20writing','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','apiError','unchanged','Update\x20business\x20scenario\x20group','hasOwnProperty','sourceType','string','Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20','backend','Expectation\x20mismatch\x20at\x20businessGroup','Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.','48YuakRf','value','10JZvEaX','code','2233482QllHit','keys','isFinite','prototype','str','stringify','dbtableConfig','appCode','Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.','business-group-update','datasetName','expect-business-group','293352jnPjIr','560554MSHouS','found','POST','/smartapi/question/er-config/business-group/edit','3991043DeyAWr','modelId','data','datasetId','matched','object','Dataset\x20detail\x20does\x20not\x20expose\x20businessGroup.','toUpperCase','datasetCode','DB_TABLE','208366HoXMdr','dataset','6593562ZxqRoA','METADATA','name','Expected\x20','businessGroup','extend','trim','write',',\x20actual\x20','source','business-group','validation','139168JNyryL'];a59_0x5b03=function(){return _0x123cff;};return a59_0x5b03();}import{CliErrors}from'../../errors.js';const BACKEND_PATH=a59_0x4c76e9(0x1dd);export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x1ef15c,input:_0x12b714,dryRun:_0x2d4240}){const _0xbfe9aa=a59_0x4c76e9;validateInput(_0x12b714);const _0x4cdac1=normalizeBusinessGroup(_0x12b714[_0xbfe9aa(0x1b4)]),_0x553eb8=await getDatasetDetail(_0x12b714[_0xbfe9aa(0x1cc)]),_0x2b427d=resolveBusinessGroupDataset(_0x553eb8,_0x12b714[_0xbfe9aa(0x1cc)]),_0x4340fa=loadCurrentBusinessGroup(_0x553eb8,_0x2b427d);assertExpectedBusinessGroup(_0x4340fa,_0x12b714['expectBusinessGroup']);const _0x54090b=buildBackendPayload(_0x1ef15c,_0x2b427d,_0x4cdac1),_0x4837e2=_0x4340fa!==_0x4cdac1;let _0x4b7f77;if(_0x4837e2&&!_0x2d4240){await updateErBusinessGroup(_0x54090b);const _0x1567af=await getDatasetDetail(_0x2b427d[_0xbfe9aa(0x1cc)]),_0x163cbd=resolveBusinessGroupDataset(_0x1567af,_0x2b427d[_0xbfe9aa(0x1cc)]),_0x3bce1f=loadCurrentBusinessGroup(_0x1567af,_0x163cbd);if(_0x3bce1f!==_0x4cdac1)throw CliErrors[_0xbfe9aa(0x1bf)](_0xbfe9aa(0x1d5),_0xbfe9aa(0x1b3)+JSON[_0xbfe9aa(0x1d2)](_0x4cdac1)+_0xbfe9aa(0x1b8)+JSON[_0xbfe9aa(0x1d2)](_0x3bce1f)+'.');_0x4b7f77={'verified':!![],'status':_0xbfe9aa(0x1a8),'afterReadback':{'businessGroup':_0x3bce1f}};}else!_0x4837e2&&(_0x4b7f77={'verified':!![],'status':_0xbfe9aa(0x1c0),'afterReadback':{'businessGroup':_0x4340fa}});const _0x5a9736={'operation':'update','appCode':_0x1ef15c,'selector':{'code':_0x2b427d[_0xbfe9aa(0x1cc)]},'dataset':_0x2b427d,'before':{'businessGroup':_0x4340fa},'after':{'businessGroup':_0x4cdac1},'changed':_0x4837e2,'dryRun':_0x2d4240,'submitted':_0x4837e2&&!_0x2d4240,'backend':{'method':_0xbfe9aa(0x1dc),'path':BACKEND_PATH,'payload':_0x54090b},..._0x4b7f77?{'verification':_0x4b7f77}:{},'warnings':[]};return{'ok':!![],'data':_0x5a9736,'message':_0x4837e2?_0x2d4240?'Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20'+_0x2b427d[_0xbfe9aa(0x1cc)]:_0xbfe9aa(0x1c5)+_0x2b427d[_0xbfe9aa(0x1cc)]:'No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20'+_0x2b427d[_0xbfe9aa(0x1cc)]};}function a59_0x3d59(_0x487afa,_0xab52c){_0x487afa=_0x487afa-0x1a7;const _0x5b0309=a59_0x5b03();let _0x3d5955=_0x5b0309[_0x487afa];return _0x3d5955;}export const datasetBusinessGroupUpdate={'service':a59_0x4c76e9(0x1af),'command':a59_0x4c76e9(0x1d6),'description':a59_0x4c76e9(0x1c1),'risk':a59_0x4c76e9(0x1b7),'flags':[CODE_FLAG,{'name':a59_0x4c76e9(0x1ba),'type':a59_0x4c76e9(0x1c4),'required':!![],'description':a59_0x4c76e9(0x1be)},{'name':a59_0x4c76e9(0x1d8),'type':a59_0x4c76e9(0x1c4),'required':![],'description':a59_0x4c76e9(0x1bd)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x389070){validateInput(readBusinessGroupUpdateInput(_0x389070));},async 'dryRun'(_0x103822){const _0x9d05b5=a59_0x4c76e9,_0x2deb1c=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x103822['appCode'],'input':readBusinessGroupUpdateInput(_0x103822),'dryRun':!![]});return{'method':_0x9d05b5(0x1dc),'url':BACKEND_PATH,'body':_0x2deb1c[_0x9d05b5(0x1e0)][_0x9d05b5(0x1c6)]['payload'],'description':_0x2deb1c['message'],..._0x2deb1c[_0x9d05b5(0x1e0)]};},async 'execute'(_0x462536){const _0x2e108d=a59_0x4c76e9;return buildDatasetBusinessGroupUpdateResult({'appCode':_0x462536[_0x2e108d(0x1d4)],'input':readBusinessGroupUpdateInput(_0x462536),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x206a0e){const _0x149654=a59_0x4c76e9,_0x3ca3d4=_0x206a0e[_0x149654(0x1d1)]('expect-business-group');return{'code':trim(_0x206a0e[_0x149654(0x1d1)](_0x149654(0x1cc))),'businessGroup':_0x206a0e['str'](_0x149654(0x1ba)),'expectBusinessGroup':_0x3ca3d4===undefined||_0x3ca3d4===''?undefined:_0x3ca3d4};}function validateInput(_0x56bf13){const _0xc1897b=a59_0x4c76e9;if(!trim(_0x56bf13[_0xc1897b(0x1cc)]))throw CliErrors[_0xc1897b(0x1bb)]('--code\x20is\x20required');if(_0x56bf13[_0xc1897b(0x1b4)]===undefined)throw CliErrors[_0xc1897b(0x1bb)]('--business-group\x20is\x20required');}function resolveBusinessGroupDataset(_0x4cfa96,_0x46c621){const _0xf0e230=a59_0x4c76e9,_0x5884db=asPlainObject(_0x4cfa96[_0xf0e230(0x1af)]),_0x28d389=asPlainObject(_0x4cfa96[_0xf0e230(0x1d3)]),_0x8f7d2a=resolveSourceType(_0x4cfa96,_0x5884db,_0x28d389),_0x4a9df7=firstString(_0x4cfa96['modelCode'],_0x4cfa96[_0xf0e230(0x1cc)],_0x5884db[_0xf0e230(0x1ac)],_0x46c621)||_0x46c621;return{'id':firstNumber(_0x4cfa96[_0xf0e230(0x1df)],_0x4cfa96['id'],_0x5884db['datasetId'])??firstString(_0x4cfa96[_0xf0e230(0x1df)],_0x4cfa96['id'],_0x5884db[_0xf0e230(0x1a7)])??null,'code':_0x4a9df7,'name':firstString(_0x4cfa96[_0xf0e230(0x1b2)],_0x5884db[_0xf0e230(0x1d7)],_0x5884db['name'])||null,'sourceType':_0x8f7d2a};}function resolveSourceType(_0x451d46,_0x5d1934,_0x40d03d){const _0x3dc560=a59_0x4c76e9,_0x5e724c=firstString(_0x451d46[_0x3dc560(0x1b9)],_0x451d46[_0x3dc560(0x1c3)],_0x5d1934[_0x3dc560(0x1b9)],_0x5d1934['sourceType'])?.[_0x3dc560(0x1b6)]()[_0x3dc560(0x1ab)]();if(_0x5e724c===_0x3dc560(0x1ad)||_0x5e724c===_0x3dc560(0x1b1))return _0x5e724c;if(Object[_0x3dc560(0x1ce)](_0x40d03d)['length']>0x0)return _0x3dc560(0x1ad);throw CliErrors[_0x3dc560(0x1bb)](_0x3dc560(0x1c8));}function loadCurrentBusinessGroup(_0x19487b,_0x334d75){const _0x58f8b7=a59_0x4c76e9,_0x599d23=readBusinessGroupFromDatasetDetail(_0x19487b,_0x334d75[_0x58f8b7(0x1c3)]);if(_0x599d23['found'])return normalizeBusinessGroup(_0x599d23[_0x58f8b7(0x1ca)]);if(_0x334d75[_0x58f8b7(0x1c3)]===_0x58f8b7(0x1b1))return'';throw CliErrors[_0x58f8b7(0x1bb)](_0x58f8b7(0x1aa),'Business\x20scenario\x20group\x20readback\x20must\x20be\x20available\x20by\x20datasetCode;\x20upgrade\x20the\x20backend\x20read\x20contract\x20instead\x20of\x20using\x20dblinkId/tableName.');}function readBusinessGroupFromDatasetDetail(_0x13d167,_0x3e2f6e){const _0x3fac6b=a59_0x4c76e9,_0x40a827=asPlainObject(_0x13d167[_0x3fac6b(0x1af)]),_0x17da6e=firstPresent(_0x13d167[_0x3fac6b(0x1b4)]);if(_0x17da6e['found'])return _0x17da6e;const _0x591e38=firstPresent(_0x40a827[_0x3fac6b(0x1b4)]);if(_0x591e38[_0x3fac6b(0x1db)])return _0x591e38;if(_0x3e2f6e===_0x3fac6b(0x1ad))return{'found':![]};const _0x2a1765=readBusinessGroupFromExtend(_0x13d167['extend']);if(_0x2a1765[_0x3fac6b(0x1db)])return _0x2a1765;return readBusinessGroupFromExtend(_0x40a827[_0x3fac6b(0x1b5)]);}function readBusinessGroupFromExtend(_0x1748dd){const _0x44ed69=a59_0x4c76e9;if(_0x1748dd===undefined||_0x1748dd===null||_0x1748dd==='')return{'found':![]};if(typeof _0x1748dd===_0x44ed69(0x1c4))try{const _0x51dab1=JSON['parse'](_0x1748dd);return readBusinessGroupFromExtend(_0x51dab1);}catch{return{'found':![]};}const _0x4a3e5d=asPlainObject(_0x1748dd);if(Object[_0x44ed69(0x1d0)][_0x44ed69(0x1c2)]['call'](_0x4a3e5d,_0x44ed69(0x1b4)))return{'found':!![],'value':_0x4a3e5d['businessGroup']};return{'found':![]};}function firstPresent(..._0x159d2c){for(const _0x35f435 of _0x159d2c){if(_0x35f435!==undefined&&_0x35f435!==null)return{'found':!![],'value':_0x35f435};}return{'found':![]};}function assertExpectedBusinessGroup(_0x507c61,_0x518c18){const _0x5ee5ae=a59_0x4c76e9;if(_0x518c18===undefined)return;const _0x59ed3f=normalizeBusinessGroup(_0x518c18);if(_0x507c61!==_0x59ed3f)throw CliErrors['validation'](_0x5ee5ae(0x1c7),_0x5ee5ae(0x1b3)+JSON[_0x5ee5ae(0x1d2)](_0x59ed3f)+',\x20actual\x20'+JSON[_0x5ee5ae(0x1d2)](_0x507c61));}function buildBackendPayload(_0xf28079,_0x4010e5,_0x2ef091){return{'appCode':_0xf28079,'datasetCode':_0x4010e5['code'],'businessGroup':_0x2ef091};}function normalizeBusinessGroup(_0xa50eb9){const _0x909edd=a59_0x4c76e9;if(_0xa50eb9===undefined||_0xa50eb9===null)return'';return String(_0xa50eb9)[_0x909edd(0x1b6)]();}function asPlainObject(_0x1f3c51){const _0x394bf1=a59_0x4c76e9;if(!_0x1f3c51||typeof _0x1f3c51!==_0x394bf1(0x1a9)||Array['isArray'](_0x1f3c51))return{};return _0x1f3c51;}function firstString(..._0x511235){const _0x5e05ce=a59_0x4c76e9;for(const _0x42402a of _0x511235){if(typeof _0x42402a==='string'&&_0x42402a[_0x5e05ce(0x1b6)]())return _0x42402a[_0x5e05ce(0x1b6)]();if(typeof _0x42402a==='number'&&Number[_0x5e05ce(0x1cf)](_0x42402a))return String(_0x42402a);}return undefined;}function firstNumber(..._0x49f040){const _0x562980=a59_0x4c76e9;for(const _0x1a7e22 of _0x49f040){if(typeof _0x1a7e22==='number'&&Number[_0x562980(0x1cf)](_0x1a7e22))return _0x1a7e22;if(typeof _0x1a7e22===_0x562980(0x1c4)&&_0x1a7e22[_0x562980(0x1b6)]()&&Number['isFinite'](Number(_0x1a7e22)))return Number(_0x1a7e22);}return null;}function trim(_0x554550){return String(_0x554550||'')['trim']();}
@@ -1 +1 @@
1
- const a60_0x395a59=a60_0x199d;(function(_0x333c3e,_0x59933c){const _0x1accc7=a60_0x199d,_0x434d93=_0x333c3e();while(!![]){try{const _0x4f4aa3=parseInt(_0x1accc7(0xad))/0x1+parseInt(_0x1accc7(0xa7))/0x2+parseInt(_0x1accc7(0xa8))/0x3+-parseInt(_0x1accc7(0x95))/0x4+-parseInt(_0x1accc7(0xaf))/0x5*(-parseInt(_0x1accc7(0xb7))/0x6)+parseInt(_0x1accc7(0x97))/0x7+parseInt(_0x1accc7(0xae))/0x8*(-parseInt(_0x1accc7(0xb6))/0x9);if(_0x4f4aa3===_0x59933c)break;else _0x434d93['push'](_0x434d93['shift']());}catch(_0x5a8e11){_0x434d93['push'](_0x434d93['shift']());}}}(a60_0x59de,0x8368e));import{CliErrors}from'../../errors.js';export const RUNTIME_DATA_ACCESS_COMMANDS={'cli':'lovrabet','filter':a60_0x395a59(0xb1),'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_0x395a59(0xa0);function valueToString(_0x3cd429){const _0x3f415d=a60_0x395a59;return _0x3cd429==null?'':String(_0x3cd429)[_0x3f415d(0xaa)]();}function a60_0x199d(_0x54a56d,_0x5e8bec){_0x54a56d=_0x54a56d-0x95;const _0x59de3a=a60_0x59de();let _0x199dff=_0x59de3a[_0x54a56d];return _0x199dff;}function getDatasetCode(_0x3ecddd){const _0x195ef7=a60_0x395a59;return valueToString(_0x3ecddd[_0x195ef7(0x9b)]??_0x3ecddd[_0x195ef7(0xab)]??_0x3ecddd[_0x195ef7(0x98)]?.[_0x195ef7(0x96)]);}function getDatasetName(_0x3030c5){const _0xc8a22d=a60_0x395a59;return valueToString(_0x3030c5[_0xc8a22d(0x9a)]??_0x3030c5['dataset']?.[_0xc8a22d(0xa5)])||'unknown';}function getDatasetSource(_0x586697){const _0x1b31d6=a60_0x395a59;return valueToString(_0x586697[_0x1b31d6(0x9d)]??_0x586697[_0x1b31d6(0x98)]?.['sourceType'])[_0x1b31d6(0xac)]();}function a60_0x59de(){const _0x17ada8=['METADATA','datasetName','dbtableConfig','501652UfmmgQ','2427105loltgS','当前数据集\x20\x22','trim','modelCode','toUpperCase','508147FszuCX','8ZCalaL','5jFkoid','join','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27<json>\x27\x20--format\x20compress','UNKNOWN','\x20类型,没有可用于\x20','SQL\x20schema\x20validation','dbtable','12841623iOFprx','2794164GvKQTj','object','3284804OsZRNM','datasetCode','5268200tISsjA','dataset','tableName','name','code','请先将该数据集升级/迁移为\x20DB_TABLE\x20数据集,再基于新的\x20dataset\x20code\x20继续开发。','source','dbId','validation','Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.','getOne','filter','原因:schema\x20introspection\x20与\x20custom\x20SQL\x20需要\x20source=DB_TABLE、dbtableConfig.dbId、dbtableConfig.tableName\x20与数据库连接上下文。'];a60_0x59de=function(){return _0x17ada8;};return a60_0x59de();}function getDbtableConfig(_0x3dd74c){const _0x379613=a60_0x395a59,_0x3d0ce2=_0x3dd74c[_0x379613(0xa6)]??_0x3dd74c[_0x379613(0xb5)];return _0x3d0ce2&&typeof _0x3d0ce2===_0x379613(0xb8)?_0x3d0ce2:{};}export function isDbTableBackedDataset(_0x3d0fff){const _0x9ebbe1=a60_0x395a59,_0x444bf9=getDatasetSource(_0x3d0fff);if(_0x444bf9===_0x9ebbe1(0xa4))return![];const _0x480de7=getDbtableConfig(_0x3d0fff),_0x377910=_0x480de7[_0x9ebbe1(0x9e)]??_0x480de7['id'],_0x2e0077=valueToString(_0x480de7['tableName']??_0x3d0fff[_0x9ebbe1(0x99)]??_0x3d0fff[_0x9ebbe1(0x98)]?.[_0x9ebbe1(0x99)]);return _0x377910!==undefined&&_0x377910!==null&&_0x2e0077['length']>0x0;}export function filterDbTableBackedDatasets(_0xa4a52){return _0xa4a52['filter'](_0x1c171f=>isDbTableBackedDataset(_0x1c171f));}export function buildDbTableBackedRequirementMessage(_0xcf8eff,_0x4a1544=a60_0x395a59(0xb4)){const _0x578eb0=a60_0x395a59,_0x57b82b=getDatasetSource(_0xcf8eff)||_0x578eb0(0xb2),_0x20e2a2=getDatasetName(_0xcf8eff),_0x4c31fd=getDatasetCode(_0xcf8eff),_0x33bb93=_0x4c31fd?'\x20('+_0x4c31fd+')':'';return[_0x578eb0(0xa9)+_0x20e2a2+'\x22'+_0x33bb93+'\x20是\x20'+_0x57b82b+_0x578eb0(0xb3)+_0x4a1544+'\x20的\x20DB_TABLE\x20数据源上下文。',_0x578eb0(0xa3),_0x578eb0(0x9c),'如果只是查看运行态真实行数据,请切换到\x20lovrabet\x20CLI:'+RUNTIME_DATA_ACCESS_COMMANDS[_0x578eb0(0xa2)]+';'+RUNTIME_DATA_ACCESS_COMMANDS[_0x578eb0(0xa1)]+'。'][_0x578eb0(0xb0)]('\x20');}export function assertDatasetIsDbTableBacked(_0x3f2b98,_0x15d5f9){const _0xf49af3=a60_0x395a59;if(!isDbTableBackedDataset(_0x3f2b98))throw CliErrors[_0xf49af3(0x9f)](buildDbTableBackedRequirementMessage(_0x3f2b98,_0x15d5f9));}
1
+ const a60_0x26513d=a60_0x55f1;(function(_0x9d4531,_0x1cecf0){const _0x56fecd=a60_0x55f1,_0x30d67d=_0x9d4531();while(!![]){try{const _0x329aca=parseInt(_0x56fecd(0x14d))/0x1*(-parseInt(_0x56fecd(0x159))/0x2)+parseInt(_0x56fecd(0x143))/0x3+-parseInt(_0x56fecd(0x148))/0x4*(-parseInt(_0x56fecd(0x142))/0x5)+parseInt(_0x56fecd(0x15d))/0x6*(-parseInt(_0x56fecd(0x154))/0x7)+-parseInt(_0x56fecd(0x150))/0x8*(-parseInt(_0x56fecd(0x157))/0x9)+parseInt(_0x56fecd(0x15c))/0xa+-parseInt(_0x56fecd(0x149))/0xb;if(_0x329aca===_0x1cecf0)break;else _0x30d67d['push'](_0x30d67d['shift']());}catch(_0x4efd97){_0x30d67d['push'](_0x30d67d['shift']());}}}(a60_0x2d4e,0x8049d));import{CliErrors}from'../../errors.js';export const RUNTIME_DATA_ACCESS_COMMANDS={'cli':a60_0x26513d(0x155),'filter':a60_0x26513d(0x146),'getOne':a60_0x26513d(0x145)};export const RUNTIME_DATA_ACCESS_SUMMARY=a60_0x26513d(0x14c);function valueToString(_0x1882fb){const _0x3486a2=a60_0x26513d;return _0x1882fb==null?'':String(_0x1882fb)[_0x3486a2(0x15b)]();}function getDatasetCode(_0x4fcc16){const _0x57761d=a60_0x26513d;return valueToString(_0x4fcc16[_0x57761d(0x151)]??_0x4fcc16['modelCode']??_0x4fcc16[_0x57761d(0x15e)]?.['datasetCode']);}function a60_0x55f1(_0x5287d0,_0x1ffc21){_0x5287d0=_0x5287d0-0x142;const _0x2d4e0a=a60_0x2d4e();let _0x55f1e6=_0x2d4e0a[_0x5287d0];return _0x55f1e6;}function getDatasetName(_0x4eb2d6){const _0xba3ba8=a60_0x26513d;return valueToString(_0x4eb2d6[_0xba3ba8(0x14b)]??_0x4eb2d6[_0xba3ba8(0x15e)]?.[_0xba3ba8(0x14f)])||_0xba3ba8(0x163);}function getDatasetSource(_0xd38bfc){const _0x9de100=a60_0x26513d;return valueToString(_0xd38bfc[_0x9de100(0x161)]??_0xd38bfc['dataset']?.[_0x9de100(0x144)])[_0x9de100(0x15f)]();}function a60_0x2d4e(){const _0x4b9f3c=['3144440DwAYlK','18tSCjnV','dataset','toUpperCase','\x20类型,没有可用于\x20','source','原因:schema\x20introspection\x20与\x20custom\x20SQL\x20需要\x20source=DB_TABLE、dbtableConfig.dbId、dbtableConfig.tableName\x20与数据库连接上下文。','unknown','dbtableConfig','393830nqwpzH','2312949vbxBps','sourceType','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27\x20--format\x20compress','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27<json>\x27\x20--format\x20compress','validation','24dvLjqb','147994hHLLuU','当前数据集\x20\x22','name','Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.','4BssHnq','tableName','datasetName','8qAEvtX','code','filter','UNKNOWN','1542891HiFzxH','lovrabet','length','5469399XLpBUP','如果只是查看运行态真实行数据,请切换到\x20lovrabet\x20CLI:','482786fUGYAK','请先将该数据集升级/迁移为\x20DB_TABLE\x20数据集,再基于新的\x20dataset\x20code\x20继续开发。','trim'];a60_0x2d4e=function(){return _0x4b9f3c;};return a60_0x2d4e();}function getDbtableConfig(_0x112823){const _0x491463=a60_0x26513d,_0x11fa9a=_0x112823[_0x491463(0x164)]??_0x112823['dbtable'];return _0x11fa9a&&typeof _0x11fa9a==='object'?_0x11fa9a:{};}export function isDbTableBackedDataset(_0x292bd0){const _0x53fed5=a60_0x26513d,_0x4b637a=getDatasetSource(_0x292bd0);if(_0x4b637a==='METADATA')return![];const _0x38c2f7=getDbtableConfig(_0x292bd0),_0x1cc4cc=_0x38c2f7['dbId']??_0x38c2f7['id'],_0x565173=valueToString(_0x38c2f7[_0x53fed5(0x14e)]??_0x292bd0[_0x53fed5(0x14e)]??_0x292bd0['dataset']?.[_0x53fed5(0x14e)]);return _0x1cc4cc!==undefined&&_0x1cc4cc!==null&&_0x565173[_0x53fed5(0x156)]>0x0;}export function filterDbTableBackedDatasets(_0xec0f3b){const _0x548444=a60_0x26513d;return _0xec0f3b[_0x548444(0x152)](_0x2bd4c6=>isDbTableBackedDataset(_0x2bd4c6));}export function buildDbTableBackedRequirementMessage(_0x46b67b,_0x57e07f='SQL\x20schema\x20validation'){const _0x2d04bd=a60_0x26513d,_0x472dde=getDatasetSource(_0x46b67b)||_0x2d04bd(0x153),_0x261707=getDatasetName(_0x46b67b),_0x1a3fe2=getDatasetCode(_0x46b67b),_0x3e10d0=_0x1a3fe2?'\x20('+_0x1a3fe2+')':'';return[_0x2d04bd(0x14a)+_0x261707+'\x22'+_0x3e10d0+'\x20是\x20'+_0x472dde+_0x2d04bd(0x160)+_0x57e07f+'\x20的\x20DB_TABLE\x20数据源上下文。',_0x2d04bd(0x162),_0x2d04bd(0x15a),_0x2d04bd(0x158)+RUNTIME_DATA_ACCESS_COMMANDS[_0x2d04bd(0x152)]+';'+RUNTIME_DATA_ACCESS_COMMANDS['getOne']+'。']['join']('\x20');}export function assertDatasetIsDbTableBacked(_0x288033,_0x6c25c8){const _0x281daa=a60_0x26513d;if(!isDbTableBackedDataset(_0x288033))throw CliErrors[_0x281daa(0x147)](buildDbTableBackedRequirementMessage(_0x288033,_0x6c25c8));}
@@ -1 +1 @@
1
- const a61_0x2af355=a61_0x2f0d;(function(_0x144814,_0x273d10){const _0x2354ed=a61_0x2f0d,_0x2eb56c=_0x144814();while(!![]){try{const _0x2c2a1f=-parseInt(_0x2354ed(0x1bc))/0x1+-parseInt(_0x2354ed(0x1af))/0x2+parseInt(_0x2354ed(0x1d5))/0x3+parseInt(_0x2354ed(0x1b8))/0x4+parseInt(_0x2354ed(0x1c0))/0x5+-parseInt(_0x2354ed(0x1b3))/0x6*(-parseInt(_0x2354ed(0x1de))/0x7)+parseInt(_0x2354ed(0x1cf))/0x8*(-parseInt(_0x2354ed(0x1b7))/0x9);if(_0x2c2a1f===_0x273d10)break;else _0x2eb56c['push'](_0x2eb56c['shift']());}catch(_0x1c75b8){_0x2eb56c['push'](_0x2eb56c['shift']());}}}(a61_0x5591,0x945b2));import{deleteDataset,getDatasetDetail,listDatasets}from'../../core/api-client.js';function a61_0x5591(){const _0x56c85f=['high-risk-write','filter','1894990snqIVq','dbid','source','\x20dataset(s);\x20','6WKitfg','Deleted\x20','code','relatedPageInfoList','1434879AUZsmU','3086032EVaYQf','push','bool','isArray','627855kNwrlq','num','Use\x20only\x20one\x20of\x20--id,\x20--code,\x20or\x20--dbid.','number','1446665HZCNqX','dbtableConfig','No\x20undeleted\x20dataset\x20found\x20for\x20','dbId','expected-count','delete','Abort\x20unless\x20the\x20matched\x20dataset\x20count\x20equals\x20this\x20value','dbid=','name','validation','id=','Matched\x20','Delete\x20all\x20datasets\x20under\x20this\x20database\x20connection\x20id','str','tableName','24iAimAZ','dataset','boolean','\x20failed','/smartapi/dataset/delete-dataset','description','3316317iqkxKk','confirm','Would\x20delete\x20','\x20dataset(s)','appCode','object','length','--confirm\x20is\x20required\x20to\x20delete\x20datasets.','deleted','3465203QmYklT','POST'];a61_0x5591=function(){return _0x56c85f;};return a61_0x5591();}import{CliErrors}from'../../errors.js';function a61_0x2f0d(_0x5b39f8,_0x4e0c7d){_0x5b39f8=_0x5b39f8-0x1af;const _0x559152=a61_0x5591();let _0x2f0d5c=_0x559152[_0x5b39f8];return _0x2f0d5c;}import{APPCODE_FLAG_OPTIONAL,CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';const DATASET_ID_FLAG={'name':'id','type':a61_0x2af355(0x1bf),'description':'Dataset\x20id'},DBID_FLAG={'name':a61_0x2af355(0x1b0),'type':a61_0x2af355(0x1bf),'description':a61_0x2af355(0x1cc)},CONFIRM_FLAG={'name':'confirm','type':a61_0x2af355(0x1d1),'description':'Required\x20to\x20execute\x20dataset\x20deletion'},EXPECTED_COUNT_FLAG={'name':'expected-count','type':a61_0x2af355(0x1bf),'description':a61_0x2af355(0x1c6)};export const datasetDelete={'service':a61_0x2af355(0x1d0),'command':a61_0x2af355(0x1c5),'description':'Delete\x20dataset\x20metadata\x20by\x20id/code\x20or\x20all\x20datasets\x20under\x20a\x20db\x20id','risk':a61_0x2af355(0x1e0),'flags':[DATASET_ID_FLAG,CODE_FLAG_OPTIONAL,DBID_FLAG,CONFIRM_FLAG,EXPECTED_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x21f17a){const _0x371dce=a61_0x2af355,_0x78582b=_0x21f17a[_0x371dce(0x1bd)]('id'),_0x22e1cd=_0x21f17a['str'](_0x371dce(0x1b5)),_0x47d58b=_0x21f17a[_0x371dce(0x1bd)](_0x371dce(0x1b0)),_0x435ffd=[_0x78582b>0x0,Boolean(_0x22e1cd),_0x47d58b>0x0][_0x371dce(0x1e1)](Boolean);if(_0x435ffd[_0x371dce(0x1db)]===0x0)throw CliErrors[_0x371dce(0x1c9)]('One\x20of\x20--id,\x20--code,\x20or\x20--dbid\x20is\x20required.');if(_0x435ffd['length']>0x1)throw CliErrors['validation'](_0x371dce(0x1be));},async 'dryRun'(_0x378fc3){const _0x2cd9e3=a61_0x2af355,_0x4fff8c=await resolveTargets(_0x378fc3);return{'method':_0x2cd9e3(0x1df),'url':_0x2cd9e3(0x1d3),'body':{'appCode':_0x378fc3[_0x2cd9e3(0x1d9)],'count':_0x4fff8c[_0x2cd9e3(0x1db)],'datasets':_0x4fff8c},'description':_0x2cd9e3(0x1d7)+_0x4fff8c[_0x2cd9e3(0x1db)]+'\x20dataset(s).\x20This\x20only\x20deletes\x20platform\x20dataset\x20metadata\x20and\x20related\x20page/menu\x20records,\x20not\x20physical\x20databases\x20or\x20tables.'};},async 'execute'(_0x4b82b2){const _0x19ed65=a61_0x2af355;if(!_0x4b82b2[_0x19ed65(0x1ba)](_0x19ed65(0x1d6)))throw CliErrors[_0x19ed65(0x1c9)](_0x19ed65(0x1dc),'Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm\x20when\x20the\x20target\x20list\x20is\x20correct.');const _0x4a0579=await resolveTargets(_0x4b82b2),_0x4683f2=[],_0x201efc=[];for(const _0x8dc3ec of _0x4a0579){try{await deleteDataset(_0x4b82b2[_0x19ed65(0x1d9)],_0x8dc3ec['id']),_0x4683f2[_0x19ed65(0x1b9)](_0x8dc3ec);}catch(_0x5c31e0){_0x201efc[_0x19ed65(0x1b9)]({..._0x8dc3ec,'error':_0x5c31e0 instanceof Error?_0x5c31e0['message']:String(_0x5c31e0)});}}if(_0x201efc['length']>0x0)return{'ok':![],'data':{'requested':_0x4a0579[_0x19ed65(0x1db)],'deletedCount':_0x4683f2[_0x19ed65(0x1db)],'failedCount':_0x201efc['length'],'deleted':_0x4683f2,'failed':_0x201efc},'message':_0x19ed65(0x1b4)+_0x4683f2[_0x19ed65(0x1db)]+'/'+_0x4a0579[_0x19ed65(0x1db)]+_0x19ed65(0x1b2)+_0x201efc[_0x19ed65(0x1db)]+_0x19ed65(0x1d2)};return{'ok':!![],'data':{'requested':_0x4a0579[_0x19ed65(0x1db)],'deletedCount':_0x4683f2[_0x19ed65(0x1db)],'deleted':_0x4683f2},'message':_0x19ed65(0x1b4)+_0x4683f2['length']+_0x19ed65(0x1d8)};}};async function resolveTargets(_0x56226f){const _0x67e3fb=a61_0x2af355,_0x59cc09=_0x56226f[_0x67e3fb(0x1bd)]('id'),_0x1b69c3=_0x56226f[_0x67e3fb(0x1cd)]('code'),_0x4fa2e9=_0x56226f[_0x67e3fb(0x1bd)](_0x67e3fb(0x1b0));let _0x4aedf7;_0x1b69c3?(_0x4aedf7=await listDatasets(_0x56226f[_0x67e3fb(0x1d9)],{'code':_0x1b69c3}),_0x4aedf7=_0x4aedf7['filter'](_0x4f5dd3=>_0x4f5dd3[_0x67e3fb(0x1b5)]===_0x1b69c3)):(_0x4aedf7=await listDatasets(_0x56226f[_0x67e3fb(0x1d9)]),_0x59cc09>0x0&&(_0x4aedf7=_0x4aedf7['filter'](_0x451bf7=>_0x451bf7['id']===_0x59cc09)),_0x4fa2e9>0x0&&(_0x4aedf7=_0x4aedf7['filter'](_0x5a8d47=>_0x5a8d47[_0x67e3fb(0x1c1)]?.[_0x67e3fb(0x1c3)]===_0x4fa2e9)));const _0x5b594c=[];for(const _0x39d7a1 of _0x4aedf7){const _0xacade8=await getDatasetDetail(_0x39d7a1[_0x67e3fb(0x1b5)]),_0x4e82a8=Array[_0x67e3fb(0x1bb)](_0xacade8[_0x67e3fb(0x1b6)])?_0xacade8[_0x67e3fb(0x1b6)][_0x67e3fb(0x1e1)](_0x37f18f=>_0x37f18f!=null&&typeof _0x37f18f===_0x67e3fb(0x1da)&&_0x37f18f[_0x67e3fb(0x1dd)]!==!![]):[];_0x5b594c['push'](normalizeTarget(_0x39d7a1,_0x4e82a8[_0x67e3fb(0x1db)]));}if(_0x5b594c['length']===0x0){const _0x1b4c75=_0x1b69c3||(_0x59cc09>0x0?_0x67e3fb(0x1ca)+_0x59cc09:_0x67e3fb(0x1c7)+_0x4fa2e9);throw CliErrors[_0x67e3fb(0x1c9)](_0x67e3fb(0x1c2)+_0x1b4c75+'.');}const _0x181b5b=_0x56226f[_0x67e3fb(0x1bd)](_0x67e3fb(0x1c4));if(_0x181b5b>0x0&&_0x5b594c[_0x67e3fb(0x1db)]!==_0x181b5b)throw CliErrors[_0x67e3fb(0x1c9)](_0x67e3fb(0x1cb)+_0x5b594c[_0x67e3fb(0x1db)]+'\x20dataset(s),\x20but\x20--expected-count\x20is\x20'+_0x181b5b+'.');return _0x5b594c;}function normalizeTarget(_0xe9ec0e,_0x290724){const _0x42f8c=a61_0x2af355,_0x52182b=_0xe9ec0e[_0x42f8c(0x1c1)]??{};return{'id':_0xe9ec0e['id'],'code':_0xe9ec0e['code'],'name':_0xe9ec0e[_0x42f8c(0x1c8)],'description':_0xe9ec0e[_0x42f8c(0x1d4)],'source':_0xe9ec0e[_0x42f8c(0x1b1)],'dbId':_0x52182b['dbId'],'dbName':_0x52182b['dbName'],'tableName':_0x52182b[_0x42f8c(0x1ce)],'relatedPageCount':_0x290724};}
1
+ const a61_0x4bd1aa=a61_0x24d2;(function(_0x404aba,_0x21dbe5){const _0x9a9842=a61_0x24d2,_0x395d31=_0x404aba();while(!![]){try{const _0x46f7df=parseInt(_0x9a9842(0x16b))/0x1+parseInt(_0x9a9842(0x17b))/0x2*(parseInt(_0x9a9842(0x16c))/0x3)+parseInt(_0x9a9842(0x181))/0x4*(-parseInt(_0x9a9842(0x173))/0x5)+parseInt(_0x9a9842(0x17d))/0x6+-parseInt(_0x9a9842(0x18f))/0x7*(-parseInt(_0x9a9842(0x18d))/0x8)+parseInt(_0x9a9842(0x17f))/0x9+-parseInt(_0x9a9842(0x174))/0xa;if(_0x46f7df===_0x21dbe5)break;else _0x395d31['push'](_0x395d31['shift']());}catch(_0x2b08e1){_0x395d31['push'](_0x395d31['shift']());}}}(a61_0x4ba6,0xa1cd1));import{deleteDataset,getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';const DATASET_ID_FLAG={'name':'id','type':a61_0x4bd1aa(0x168),'description':a61_0x4bd1aa(0x187)},DBID_FLAG={'name':a61_0x4bd1aa(0x176),'type':a61_0x4bd1aa(0x168),'description':'Delete\x20all\x20datasets\x20under\x20this\x20database\x20connection\x20id'},CONFIRM_FLAG={'name':'confirm','type':a61_0x4bd1aa(0x16f),'description':'Required\x20to\x20execute\x20dataset\x20deletion'},EXPECTED_COUNT_FLAG={'name':a61_0x4bd1aa(0x189),'type':a61_0x4bd1aa(0x168),'description':a61_0x4bd1aa(0x167)};export const datasetDelete={'service':'dataset','command':'delete','description':'Delete\x20dataset\x20metadata\x20by\x20id/code\x20or\x20all\x20datasets\x20under\x20a\x20db\x20id','risk':'high-risk-write','flags':[DATASET_ID_FLAG,CODE_FLAG_OPTIONAL,DBID_FLAG,CONFIRM_FLAG,EXPECTED_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x549a88){const _0x472906=a61_0x4bd1aa,_0x147518=_0x549a88[_0x472906(0x182)]('id'),_0x269e93=_0x549a88[_0x472906(0x191)](_0x472906(0x18b)),_0xbccb19=_0x549a88['num']('dbid'),_0x543f20=[_0x147518>0x0,Boolean(_0x269e93),_0xbccb19>0x0][_0x472906(0x179)](Boolean);if(_0x543f20[_0x472906(0x170)]===0x0)throw CliErrors[_0x472906(0x17a)]('One\x20of\x20--id,\x20--code,\x20or\x20--dbid\x20is\x20required.');if(_0x543f20[_0x472906(0x170)]>0x1)throw CliErrors['validation'](_0x472906(0x17c));},async 'dryRun'(_0x554dd5){const _0x4f02ae=a61_0x4bd1aa,_0x1e7dc3=await resolveTargets(_0x554dd5);return{'method':'POST','url':_0x4f02ae(0x18e),'body':{'appCode':_0x554dd5[_0x4f02ae(0x185)],'count':_0x1e7dc3[_0x4f02ae(0x170)],'datasets':_0x1e7dc3},'description':_0x4f02ae(0x16e)+_0x1e7dc3[_0x4f02ae(0x170)]+_0x4f02ae(0x169)};},async 'execute'(_0x2d79d4){const _0x24fbf1=a61_0x4bd1aa;if(!_0x2d79d4['bool'](_0x24fbf1(0x190)))throw CliErrors[_0x24fbf1(0x17a)](_0x24fbf1(0x18c),_0x24fbf1(0x171));const _0x5b0e16=await resolveTargets(_0x2d79d4),_0x1adaa0=[],_0xc1de6f=[];for(const _0x396b36 of _0x5b0e16){try{await deleteDataset(_0x2d79d4['appCode'],_0x396b36['id']),_0x1adaa0['push'](_0x396b36);}catch(_0x5c417b){_0xc1de6f[_0x24fbf1(0x180)]({..._0x396b36,'error':_0x5c417b instanceof Error?_0x5c417b[_0x24fbf1(0x178)]:String(_0x5c417b)});}}if(_0xc1de6f[_0x24fbf1(0x170)]>0x0)return{'ok':![],'data':{'requested':_0x5b0e16[_0x24fbf1(0x170)],'deletedCount':_0x1adaa0[_0x24fbf1(0x170)],'failedCount':_0xc1de6f[_0x24fbf1(0x170)],'deleted':_0x1adaa0,'failed':_0xc1de6f},'message':_0x24fbf1(0x184)+_0x1adaa0[_0x24fbf1(0x170)]+'/'+_0x5b0e16[_0x24fbf1(0x170)]+'\x20dataset(s);\x20'+_0xc1de6f[_0x24fbf1(0x170)]+_0x24fbf1(0x192)};return{'ok':!![],'data':{'requested':_0x5b0e16['length'],'deletedCount':_0x1adaa0[_0x24fbf1(0x170)],'deleted':_0x1adaa0},'message':'Deleted\x20'+_0x1adaa0[_0x24fbf1(0x170)]+_0x24fbf1(0x18a)};}};function a61_0x24d2(_0x25f465,_0x4444d9){_0x25f465=_0x25f465-0x167;const _0x4ba682=a61_0x4ba6();let _0x24d234=_0x4ba682[_0x25f465];return _0x24d234;}function a61_0x4ba6(){const _0x593163=['\x20dataset(s).\x20This\x20only\x20deletes\x20platform\x20dataset\x20metadata\x20and\x20related\x20page/menu\x20records,\x20not\x20physical\x20databases\x20or\x20tables.','description','372294wjGNVL','84xHnbsG','source','Would\x20delete\x20','boolean','length','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm\x20when\x20the\x20target\x20list\x20is\x20correct.','No\x20undeleted\x20dataset\x20found\x20for\x20','3955uRzpqX','8147940JwySTo','tableName','dbid','id=','message','filter','validation','16312OPHqtx','Use\x20only\x20one\x20of\x20--id,\x20--code,\x20or\x20--dbid.','1213110daHuYp','relatedPageInfoList','73404RLegqJ','push','2056tWAozw','num','object','Deleted\x20','appCode','dbtableConfig','Dataset\x20id','dbId','expected-count','\x20dataset(s)','code','--confirm\x20is\x20required\x20to\x20delete\x20datasets.','16mOfKFC','/smartapi/dataset/delete-dataset','3755857pzWvfu','confirm','str','\x20failed','Abort\x20unless\x20the\x20matched\x20dataset\x20count\x20equals\x20this\x20value','number'];a61_0x4ba6=function(){return _0x593163;};return a61_0x4ba6();}async function resolveTargets(_0x295c64){const _0x446335=a61_0x4bd1aa,_0x1f9f57=_0x295c64['num']('id'),_0x1c2feb=_0x295c64[_0x446335(0x191)](_0x446335(0x18b)),_0x5f0bb1=_0x295c64['num'](_0x446335(0x176));let _0x15b9b3;_0x1c2feb?(_0x15b9b3=await listDatasets(_0x295c64[_0x446335(0x185)],{'code':_0x1c2feb}),_0x15b9b3=_0x15b9b3['filter'](_0x4ab791=>_0x4ab791['code']===_0x1c2feb)):(_0x15b9b3=await listDatasets(_0x295c64['appCode']),_0x1f9f57>0x0&&(_0x15b9b3=_0x15b9b3[_0x446335(0x179)](_0x3c7e88=>_0x3c7e88['id']===_0x1f9f57)),_0x5f0bb1>0x0&&(_0x15b9b3=_0x15b9b3[_0x446335(0x179)](_0x38ba4f=>_0x38ba4f[_0x446335(0x186)]?.['dbId']===_0x5f0bb1)));const _0x2d2fb7=[];for(const _0x15aaf5 of _0x15b9b3){const _0x3f0939=await getDatasetDetail(_0x15aaf5[_0x446335(0x18b)]),_0x503770=Array['isArray'](_0x3f0939[_0x446335(0x17e)])?_0x3f0939[_0x446335(0x17e)][_0x446335(0x179)](_0x51c275=>_0x51c275!=null&&typeof _0x51c275===_0x446335(0x183)&&_0x51c275['deleted']!==!![]):[];_0x2d2fb7[_0x446335(0x180)](normalizeTarget(_0x15aaf5,_0x503770['length']));}if(_0x2d2fb7[_0x446335(0x170)]===0x0){const _0x268567=_0x1c2feb||(_0x1f9f57>0x0?_0x446335(0x177)+_0x1f9f57:'dbid='+_0x5f0bb1);throw CliErrors[_0x446335(0x17a)](_0x446335(0x172)+_0x268567+'.');}const _0x2c8148=_0x295c64[_0x446335(0x182)](_0x446335(0x189));if(_0x2c8148>0x0&&_0x2d2fb7[_0x446335(0x170)]!==_0x2c8148)throw CliErrors[_0x446335(0x17a)]('Matched\x20'+_0x2d2fb7[_0x446335(0x170)]+'\x20dataset(s),\x20but\x20--expected-count\x20is\x20'+_0x2c8148+'.');return _0x2d2fb7;}function normalizeTarget(_0x4870ac,_0x79979c){const _0xdbbbd4=a61_0x4bd1aa,_0x5d03ab=_0x4870ac[_0xdbbbd4(0x186)]??{};return{'id':_0x4870ac['id'],'code':_0x4870ac['code'],'name':_0x4870ac['name'],'description':_0x4870ac[_0xdbbbd4(0x16a)],'source':_0x4870ac[_0xdbbbd4(0x16d)],'dbId':_0x5d03ab[_0xdbbbd4(0x188)],'dbName':_0x5d03ab['dbName'],'tableName':_0x5d03ab[_0xdbbbd4(0x175)],'relatedPageCount':_0x79979c};}
@@ -1 +1 @@
1
- const a62_0x274b31=a62_0xb233;function a62_0xb233(_0xdb9955,_0x1d4e92){_0xdb9955=_0xdb9955-0x6f;const _0x52cb71=a62_0x52cb();let _0xb23382=_0x52cb71[_0xdb9955];return _0xb23382;}(function(_0x1caaec,_0x5897ba){const _0x2ff5e4=a62_0xb233,_0x47e262=_0x1caaec();while(!![]){try{const _0x23907b=parseInt(_0x2ff5e4(0xa7))/0x1+-parseInt(_0x2ff5e4(0xa8))/0x2+parseInt(_0x2ff5e4(0x82))/0x3*(parseInt(_0x2ff5e4(0x99))/0x4)+-parseInt(_0x2ff5e4(0xb5))/0x5+parseInt(_0x2ff5e4(0xa9))/0x6+-parseInt(_0x2ff5e4(0x6f))/0x7*(-parseInt(_0x2ff5e4(0x90))/0x8)+parseInt(_0x2ff5e4(0xac))/0x9*(parseInt(_0x2ff5e4(0x7a))/0xa);if(_0x23907b===_0x5897ba)break;else _0x47e262['push'](_0x47e262['shift']());}catch(_0x20db3d){_0x47e262['push'](_0x47e262['shift']());}}}(a62_0x52cb,0x4bffd));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function normalizeField(_0x348dde){const _0x32324d=a62_0xb233;if(_0x348dde[_0x32324d(0x8f)])return null;const _0x5596e8=Boolean(_0x348dde[_0x32324d(0xa2)]!==undefined||_0x348dde[_0x32324d(0xa5)]!==undefined);let _0x2fd7ae={};if(!_0x5596e8&&typeof _0x348dde[_0x32324d(0x97)]===_0x32324d(0x7c))try{_0x2fd7ae=JSON[_0x32324d(0x8c)](_0x348dde[_0x32324d(0x97)]);}catch{}const _0x4438c4=_0x5596e8?_0x348dde['name']:_0x348dde['code'],_0x5bc647=_0x5596e8?_0x348dde['displayName']:_0x348dde[_0x32324d(0xb8)],_0x23c95b=_0x5596e8?_0x348dde[_0x32324d(0xa5)]:_0x348dde[_0x32324d(0x96)]||_0x348dde[_0x32324d(0x72)],_0x4c2601=_0x5596e8?_0x348dde[_0x32324d(0x94)]===!![]:_0x2fd7ae[_0x32324d(0x94)]===!![],_0x58a67c=_0x5596e8?_0x348dde[_0x32324d(0x77)]===!![]:_0x2fd7ae[_0x32324d(0x77)]===!![],_0x529275=_0x5596e8?_0x348dde[_0x32324d(0x9b)]??null:_0x2fd7ae[_0x32324d(0x9b)]??null,_0x23a5ac={'name':_0x4438c4,'displayName':_0x5bc647||_0x4438c4,'type':_0x23c95b,'dbType':_0x348dde['dbType'],'pk':_0x4c2601,'required':_0x58a67c,'deprecated':_0x348dde[_0x32324d(0x89)]===!![],'description':_0x348dde[_0x32324d(0x91)]||undefined};return Array[_0x32324d(0x79)](_0x529275)&&_0x529275[_0x32324d(0xb7)]>0x0&&(_0x23a5ac[_0x32324d(0x9b)]=_0x529275),_0x23a5ac;}function parseJsonMaybe(_0x4c17dc){const _0x57a0f9=a62_0xb233;if(typeof _0x4c17dc!==_0x57a0f9(0x7c))return _0x4c17dc;try{return JSON[_0x57a0f9(0x8c)](_0x4c17dc);}catch{return _0x4c17dc;}}function normalizeOperationEntry(_0x2a1df0,_0x3cda45){const _0xa76289=a62_0xb233;if(!_0x3cda45||typeof _0x3cda45!=='object')return null;if(!_0x3cda45['method']||!_0x3cda45['path'])return null;const _0x371290={'name':_0x2a1df0,'method':_0x3cda45[_0xa76289(0xa4)],'path':_0x3cda45[_0xa76289(0xab)]};if(_0x3cda45[_0xa76289(0xb4)])_0x371290[_0xa76289(0xb4)]=_0x3cda45[_0xa76289(0xb4)];if(_0x3cda45[_0xa76289(0xb0)]!=null){const _0x24691a=parseJsonMaybe(_0x3cda45[_0xa76289(0xb0)]);_0x371290['requestBody']=_0x24691a;}if(_0x3cda45[_0xa76289(0x88)]!=null){const _0x1e5135=parseJsonMaybe(_0x3cda45[_0xa76289(0x88)]);_0x371290[_0xa76289(0x88)]=_0x1e5135;}if(_0x3cda45[_0xa76289(0x7e)]!=null)_0x371290[_0xa76289(0x7e)]=_0x3cda45[_0xa76289(0x7e)];if(_0x3cda45[_0xa76289(0x8a)]!=null)_0x371290[_0xa76289(0x8a)]=_0x3cda45[_0xa76289(0x8a)];if(Array[_0xa76289(0x79)](_0x3cda45[_0xa76289(0xba)]))_0x371290['requestFields']=_0x3cda45[_0xa76289(0xba)];if(Array[_0xa76289(0x79)](_0x3cda45[_0xa76289(0x81)]))_0x371290[_0xa76289(0x81)]=_0x3cda45[_0xa76289(0x81)];return _0x371290;}function a62_0x52cb(){const _0x335fc1=['creatorIdField','modelCode','indexes','entries','displayName','map','method','doType','main_sub','14451TumKVA','908352CKsmid','1419480RjDuzA','sourceType','path','68670ErILnx','str','toField','validateRules','requestBody','properties','tableName','split','host','2510240uBmxVF','toFieldLabel','length','name','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','requestFields','7WWnINC','allFieldNames','object','dataType','dataset','toDatasetCode','operations','datasetKey','required','formatRules','isArray','510jYrOUL','fields','string','relations','beforeScriptId','dbName','dbId','responseFields','3AiWKJk','read','detail','modelId','toTableName','filter','responseBody','deprecated','afterScriptId','modifierIdField','parse','code','source','deleted','46360ZOBSvv','description','toDatasetName','relationId','pkField','columnCodeListWithDeleted','type','extend','fromField','2486244HYTYOa','logicField','options','labelField','allFields'];a62_0x52cb=function(){return _0x335fc1;};return a62_0x52cb();}function summarizeDbtable(_0x1a9a55){const _0x302ed8=a62_0xb233,_0x1d7956={},_0x1d04a3=[_0x302ed8(0x80),_0x302ed8(0x7f),_0x302ed8(0xb2),'datasetKey',_0x302ed8(0x94),_0x302ed8(0x9d),_0x302ed8(0x9a),'createTimeField','updateTimeField',_0x302ed8(0x9e),'creatorNameField',_0x302ed8(0x8b),'modifierNameField',_0x302ed8(0x9c),'dblinkInfoDTO'];for(const _0x269089 of _0x1d04a3){if(_0x1a9a55[_0x269089]!==undefined)_0x1d7956[_0x269089]=_0x1a9a55[_0x269089];}return typeof _0x1d7956[_0x302ed8(0x9d)]===_0x302ed8(0x7c)&&_0x1d7956['allFields'][_0x302ed8(0xb7)]>0x0&&(_0x1d7956[_0x302ed8(0x70)]=_0x1d7956[_0x302ed8(0x9d)][_0x302ed8(0xb3)](',')[_0x302ed8(0xa3)](_0x317e3e=>_0x317e3e['trim']())[_0x302ed8(0x87)](Boolean)),_0x1d7956;}function normalizeRelatedPages(_0x552878){const _0x1f7196=a62_0xb233;if(!Array[_0x1f7196(0x79)](_0x552878))return[];return _0x552878[_0x1f7196(0x87)](_0x22ceef=>_0x22ceef&&typeof _0x22ceef===_0x1f7196(0x71))[_0x1f7196(0xa3)](_0x5c17d5=>({'id':_0x5c17d5['id'],'type':_0x5c17d5[_0x1f7196(0x96)],'code':_0x5c17d5[_0x1f7196(0x8d)],'title':_0x5c17d5['title'],'deleted':_0x5c17d5[_0x1f7196(0x8f)]===!![]}));}export const datasetDetail={'service':a62_0x274b31(0x73),'command':a62_0x274b31(0x84),'description':a62_0x274b31(0xb9),'risk':a62_0x274b31(0x83),'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'alias','type':a62_0x274b31(0x7c),'description':'Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically'}],async 'execute'(_0x5444a9){const _0x254f29=a62_0x274b31,_0x5ad552=await getDatasetDetail(_0x5444a9[_0x254f29(0xad)](_0x254f29(0x8d))),_0x438d75=Array['isArray'](_0x5ad552[_0x254f29(0x7b)])?_0x5ad552['fields']:Array[_0x254f29(0x79)](_0x5ad552[_0x254f29(0xb1)])?_0x5ad552[_0x254f29(0xb1)]:[],_0x20978c=_0x438d75[_0x254f29(0xa3)](_0x24479a=>normalizeField(_0x24479a))['filter'](_0x313b65=>_0x313b65!==null),_0x2537ec=_0x5ad552[_0x254f29(0x75)]??{},_0x5b84f7=[];for(const [_0x4a8da8,_0x5adf56]of Object[_0x254f29(0xa1)](_0x2537ec)){const _0x38ea6b=normalizeOperationEntry(_0x4a8da8,_0x5adf56);if(_0x38ea6b)_0x5b84f7['push'](_0x38ea6b);}const _0x5001ac=_0x5ad552['dbtableConfig']??{},_0x5758cc=_0x5ad552[_0x254f29(0x73)]??{},_0x248167=_0x5001ac[_0x254f29(0x80)]!=null?{'id':_0x5001ac[_0x254f29(0x80)],'name':_0x5001ac['dbName']??null}:undefined;let _0x3355d5;return typeof _0x5ad552[_0x254f29(0x97)]===_0x254f29(0x7c)&&(_0x3355d5=parseJsonMaybe(_0x5ad552[_0x254f29(0x97)])),{'ok':!![],'data':{'id':_0x5ad552[_0x254f29(0x85)]??_0x5ad552['id'],'name':_0x5ad552[_0x254f29(0xb8)],'code':_0x5ad552[_0x254f29(0x9f)]||_0x5ad552['code'],'doVersion':_0x5ad552['doVersion'],'description':_0x5ad552[_0x254f29(0x91)]||_0x5758cc['tableComment']||undefined,'source':_0x5ad552[_0x254f29(0x8e)]||_0x5758cc[_0x254f29(0xaa)],'table':_0x5001ac[_0x254f29(0xb2)]||_0x5758cc[_0x254f29(0xb2)],'datasetKey':_0x5001ac[_0x254f29(0x76)],'pk':_0x5001ac[_0x254f29(0x94)],'db':_0x248167,'dbtable':summarizeDbtable(_0x5001ac),'fields':_0x20978c,'operations':_0x5b84f7,'indexes':Array[_0x254f29(0x79)](_0x5758cc[_0x254f29(0xa0)])?_0x5758cc['indexes']:[],'relations':Array[_0x254f29(0x79)](_0x5ad552[_0x254f29(0x7d)])?_0x5ad552['relations']['map'](_0x4a8030=>({..._0x4a8030[_0x254f29(0x93)]!=null?{'relationId':_0x4a8030[_0x254f29(0x93)]}:{},'fromDataset':_0x5ad552[_0x254f29(0xb8)],'fromCode':_0x5ad552[_0x254f29(0x9f)]||_0x5ad552[_0x254f29(0x8d)],'fromTable':_0x5001ac[_0x254f29(0xb2)]||_0x5758cc[_0x254f29(0xb2)],'fromField':_0x4a8030[_0x254f29(0x98)],'toDataset':_0x4a8030[_0x254f29(0x92)],'toCode':_0x4a8030[_0x254f29(0x74)],'toTable':_0x4a8030[_0x254f29(0x86)],'toField':_0x4a8030[_0x254f29(0xae)],'labelField':_0x4a8030[_0x254f29(0xb6)]||undefined,'cardinality':_0x4a8030['cardinality']||undefined,'bizRelationType':_0x4a8030['bizRelationType']==='main_sub'?_0x254f29(0xa6):null})):[],'relatedPages':normalizeRelatedPages(_0x5ad552['relatedPageInfoList']),...Array[_0x254f29(0x79)](_0x5ad552[_0x254f29(0x95)])?{'columnCodeListWithDeleted':_0x5ad552[_0x254f29(0x95)]}:{},'formatRules':Array['isArray'](_0x5ad552[_0x254f29(0x78)])?_0x5ad552[_0x254f29(0x78)]:[],'validateRules':Array['isArray'](_0x5ad552[_0x254f29(0xaf)])?_0x5ad552[_0x254f29(0xaf)]:[],..._0x3355d5!==undefined?{'extend':_0x3355d5}:{},'stats':{'fieldCount':_0x20978c[_0x254f29(0xb7)],'operationCount':_0x5b84f7['length']}}};}};
1
+ const a62_0x21011a=a62_0x545e;(function(_0x4f4e71,_0xba3db3){const _0x62f851=a62_0x545e,_0x3a09e1=_0x4f4e71();while(!![]){try{const _0x53f37f=parseInt(_0x62f851(0x1ba))/0x1+parseInt(_0x62f851(0x1d4))/0x2+parseInt(_0x62f851(0x19f))/0x3+-parseInt(_0x62f851(0x1d6))/0x4*(-parseInt(_0x62f851(0x1b2))/0x5)+-parseInt(_0x62f851(0x1a4))/0x6*(parseInt(_0x62f851(0x1b6))/0x7)+parseInt(_0x62f851(0x18b))/0x8+-parseInt(_0x62f851(0x1c4))/0x9*(parseInt(_0x62f851(0x1cc))/0xa);if(_0x53f37f===_0xba3db3)break;else _0x3a09e1['push'](_0x3a09e1['shift']());}catch(_0x562ab2){_0x3a09e1['push'](_0x3a09e1['shift']());}}}(a62_0x8744,0x97768));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function normalizeField(_0x45f9d6){const _0xaf522c=a62_0x545e;if(_0x45f9d6[_0xaf522c(0x197)])return null;const _0x453c7a=Boolean(_0x45f9d6[_0xaf522c(0x1b9)]!==undefined||_0x45f9d6[_0xaf522c(0x1ab)]!==undefined);let _0x2c1825={};if(!_0x453c7a&&typeof _0x45f9d6[_0xaf522c(0x19c)]===_0xaf522c(0x1a6))try{_0x2c1825=JSON[_0xaf522c(0x18f)](_0x45f9d6[_0xaf522c(0x19c)]);}catch{}const _0xc38bac=_0x453c7a?_0x45f9d6['name']:_0x45f9d6['code'],_0x4ccbb9=_0x453c7a?_0x45f9d6[_0xaf522c(0x1b9)]:_0x45f9d6[_0xaf522c(0x1ac)],_0x34afb9=_0x453c7a?_0x45f9d6[_0xaf522c(0x1ab)]:_0x45f9d6[_0xaf522c(0x1d2)]||_0x45f9d6[_0xaf522c(0x1a2)],_0x337b99=_0x453c7a?_0x45f9d6['pkField']===!![]:_0x2c1825['pkField']===!![],_0x4295c9=_0x453c7a?_0x45f9d6[_0xaf522c(0x1a8)]===!![]:_0x2c1825[_0xaf522c(0x1a8)]===!![],_0x157939=_0x453c7a?_0x45f9d6[_0xaf522c(0x195)]??null:_0x2c1825['options']??null,_0x11a7bd={'name':_0xc38bac,'displayName':_0x4ccbb9||_0xc38bac,'type':_0x34afb9,'dbType':_0x45f9d6[_0xaf522c(0x1c0)],'pk':_0x337b99,'required':_0x4295c9,'deprecated':_0x45f9d6[_0xaf522c(0x1bf)]===!![],'description':_0x45f9d6[_0xaf522c(0x1d5)]||undefined};return Array[_0xaf522c(0x196)](_0x157939)&&_0x157939[_0xaf522c(0x19e)]>0x0&&(_0x11a7bd[_0xaf522c(0x195)]=_0x157939),_0x11a7bd;}function parseJsonMaybe(_0x5e0052){const _0x3d534e=a62_0x545e;if(typeof _0x5e0052!=='string')return _0x5e0052;try{return JSON[_0x3d534e(0x18f)](_0x5e0052);}catch{return _0x5e0052;}}function normalizeOperationEntry(_0x28565e,_0x203270){const _0x82f26c=a62_0x545e;if(!_0x203270||typeof _0x203270!==_0x82f26c(0x1bd))return null;if(!_0x203270['method']||!_0x203270[_0x82f26c(0x1bb)])return null;const _0x46a298={'name':_0x28565e,'method':_0x203270[_0x82f26c(0x1c9)],'path':_0x203270[_0x82f26c(0x1bb)]};if(_0x203270[_0x82f26c(0x1ce)])_0x46a298[_0x82f26c(0x1ce)]=_0x203270[_0x82f26c(0x1ce)];if(_0x203270[_0x82f26c(0x1c2)]!=null){const _0x286225=parseJsonMaybe(_0x203270[_0x82f26c(0x1c2)]);_0x46a298[_0x82f26c(0x1c2)]=_0x286225;}if(_0x203270[_0x82f26c(0x19a)]!=null){const _0x2e139a=parseJsonMaybe(_0x203270['responseBody']);_0x46a298[_0x82f26c(0x19a)]=_0x2e139a;}if(_0x203270[_0x82f26c(0x1c6)]!=null)_0x46a298[_0x82f26c(0x1c6)]=_0x203270[_0x82f26c(0x1c6)];if(_0x203270[_0x82f26c(0x1b0)]!=null)_0x46a298['afterScriptId']=_0x203270[_0x82f26c(0x1b0)];if(Array[_0x82f26c(0x196)](_0x203270['requestFields']))_0x46a298[_0x82f26c(0x1cf)]=_0x203270[_0x82f26c(0x1cf)];if(Array[_0x82f26c(0x196)](_0x203270[_0x82f26c(0x1d7)]))_0x46a298[_0x82f26c(0x1d7)]=_0x203270[_0x82f26c(0x1d7)];return _0x46a298;}function summarizeDbtable(_0x230ed9){const _0x3bd5cc=a62_0x545e,_0x52950e={},_0x2d399e=[_0x3bd5cc(0x190),'dbName','tableName','datasetKey',_0x3bd5cc(0x1cd),_0x3bd5cc(0x18a),'logicField',_0x3bd5cc(0x1af),_0x3bd5cc(0x1c7),'creatorIdField','creatorNameField',_0x3bd5cc(0x1b5),'modifierNameField',_0x3bd5cc(0x18d),_0x3bd5cc(0x1b8)];for(const _0x187d6b of _0x2d399e){if(_0x230ed9[_0x187d6b]!==undefined)_0x52950e[_0x187d6b]=_0x230ed9[_0x187d6b];}return typeof _0x52950e[_0x3bd5cc(0x18a)]===_0x3bd5cc(0x1a6)&&_0x52950e[_0x3bd5cc(0x18a)]['length']>0x0&&(_0x52950e['allFieldNames']=_0x52950e[_0x3bd5cc(0x18a)][_0x3bd5cc(0x1a0)](',')['map'](_0x5d5b97=>_0x5d5b97[_0x3bd5cc(0x1d8)]())[_0x3bd5cc(0x1d9)](Boolean)),_0x52950e;}function normalizeRelatedPages(_0x58546c){const _0x57a699=a62_0x545e;if(!Array['isArray'](_0x58546c))return[];return _0x58546c[_0x57a699(0x1d9)](_0xd91262=>_0xd91262&&typeof _0xd91262===_0x57a699(0x1bd))[_0x57a699(0x1ae)](_0x135f94=>({'id':_0x135f94['id'],'type':_0x135f94[_0x57a699(0x1d2)],'code':_0x135f94['code'],'title':_0x135f94['title'],'deleted':_0x135f94[_0x57a699(0x197)]===!![]}));}function a62_0x8744(){const _0x4a81e7=['afterScriptId','toField','1772185lweILm','dbName','properties','modifierIdField','216587XbMdrE','doVersion','dblinkInfoDTO','displayName','1207235UyWuEp','path','dataset','object','detail','deprecated','dbType','modelCode','requestBody','cardinality','189pMWbbh','formatRules','beforeScriptId','updateTimeField','modelId','method','relationId','read','1487530IuanYJ','pkField','host','requestFields','source','dbtableConfig','type','sourceType','709828wpFnjk','description','4pBlKOo','responseFields','trim','filter','allFields','9041528qgbdwj','tableName','labelField','columnCodeListWithDeleted','parse','dbId','entries','relatedPageInfoList','toFieldLabel','main_sub','options','isArray','deleted','relations','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','responseBody','tableComment','extend','toDatasetName','length','2370753hkBvGA','split','code','dataType','indexes','18WeauvB','validateRules','string','toTableName','required','str','alias','doType','name','push','map','createTimeField'];a62_0x8744=function(){return _0x4a81e7;};return a62_0x8744();}function a62_0x545e(_0x2ca08b,_0x1a01ac){_0x2ca08b=_0x2ca08b-0x18a;const _0x8744a9=a62_0x8744();let _0x545e3a=_0x8744a9[_0x2ca08b];return _0x545e3a;}export const datasetDetail={'service':a62_0x21011a(0x1bc),'command':a62_0x21011a(0x1be),'description':'Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','risk':a62_0x21011a(0x1cb),'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a62_0x21011a(0x1aa),'type':a62_0x21011a(0x1a6),'description':a62_0x21011a(0x199)}],async 'execute'(_0x2b6e95){const _0x1e1259=a62_0x21011a,_0x4d69ac=await getDatasetDetail(_0x2b6e95[_0x1e1259(0x1a9)](_0x1e1259(0x1a1))),_0x2c1b40=Array[_0x1e1259(0x196)](_0x4d69ac['fields'])?_0x4d69ac['fields']:Array[_0x1e1259(0x196)](_0x4d69ac[_0x1e1259(0x1b4)])?_0x4d69ac[_0x1e1259(0x1b4)]:[],_0xae02ec=_0x2c1b40[_0x1e1259(0x1ae)](_0x39830a=>normalizeField(_0x39830a))['filter'](_0xd3e654=>_0xd3e654!==null),_0x19514b=_0x4d69ac['operations']??{},_0x54b820=[];for(const [_0xf8fd4b,_0x2d70a4]of Object[_0x1e1259(0x191)](_0x19514b)){const _0x300281=normalizeOperationEntry(_0xf8fd4b,_0x2d70a4);if(_0x300281)_0x54b820[_0x1e1259(0x1ad)](_0x300281);}const _0xe0814e=_0x4d69ac[_0x1e1259(0x1d1)]??{},_0x4525aa=_0x4d69ac[_0x1e1259(0x1bc)]??{},_0x2630de=_0xe0814e[_0x1e1259(0x190)]!=null?{'id':_0xe0814e[_0x1e1259(0x190)],'name':_0xe0814e[_0x1e1259(0x1b3)]??null}:undefined;let _0x1345b1;return typeof _0x4d69ac[_0x1e1259(0x19c)]===_0x1e1259(0x1a6)&&(_0x1345b1=parseJsonMaybe(_0x4d69ac[_0x1e1259(0x19c)])),{'ok':!![],'data':{'id':_0x4d69ac[_0x1e1259(0x1c8)]??_0x4d69ac['id'],'name':_0x4d69ac['name'],'code':_0x4d69ac['modelCode']||_0x4d69ac['code'],'doVersion':_0x4d69ac[_0x1e1259(0x1b7)],'description':_0x4d69ac[_0x1e1259(0x1d5)]||_0x4525aa[_0x1e1259(0x19b)]||undefined,'source':_0x4d69ac[_0x1e1259(0x1d0)]||_0x4525aa[_0x1e1259(0x1d3)],'table':_0xe0814e[_0x1e1259(0x18c)]||_0x4525aa[_0x1e1259(0x18c)],'datasetKey':_0xe0814e['datasetKey'],'pk':_0xe0814e['pkField'],'db':_0x2630de,'dbtable':summarizeDbtable(_0xe0814e),'fields':_0xae02ec,'operations':_0x54b820,'indexes':Array[_0x1e1259(0x196)](_0x4525aa[_0x1e1259(0x1a3)])?_0x4525aa[_0x1e1259(0x1a3)]:[],'relations':Array[_0x1e1259(0x196)](_0x4d69ac[_0x1e1259(0x198)])?_0x4d69ac['relations'][_0x1e1259(0x1ae)](_0x48f5a7=>({..._0x48f5a7['relationId']!=null?{'relationId':_0x48f5a7[_0x1e1259(0x1ca)]}:{},'fromDataset':_0x4d69ac[_0x1e1259(0x1ac)],'fromCode':_0x4d69ac[_0x1e1259(0x1c1)]||_0x4d69ac[_0x1e1259(0x1a1)],'fromTable':_0xe0814e[_0x1e1259(0x18c)]||_0x4525aa['tableName'],'fromField':_0x48f5a7['fromField'],'toDataset':_0x48f5a7[_0x1e1259(0x19d)],'toCode':_0x48f5a7['toDatasetCode'],'toTable':_0x48f5a7[_0x1e1259(0x1a7)],'toField':_0x48f5a7[_0x1e1259(0x1b1)],'labelField':_0x48f5a7[_0x1e1259(0x193)]||undefined,'cardinality':_0x48f5a7[_0x1e1259(0x1c3)]||undefined,'bizRelationType':_0x48f5a7['bizRelationType']==='main_sub'?_0x1e1259(0x194):null})):[],'relatedPages':normalizeRelatedPages(_0x4d69ac[_0x1e1259(0x192)]),...Array[_0x1e1259(0x196)](_0x4d69ac[_0x1e1259(0x18e)])?{'columnCodeListWithDeleted':_0x4d69ac[_0x1e1259(0x18e)]}:{},'formatRules':Array[_0x1e1259(0x196)](_0x4d69ac[_0x1e1259(0x1c5)])?_0x4d69ac['formatRules']:[],'validateRules':Array[_0x1e1259(0x196)](_0x4d69ac[_0x1e1259(0x1a5)])?_0x4d69ac['validateRules']:[],..._0x1345b1!==undefined?{'extend':_0x1345b1}:{},'stats':{'fieldCount':_0xae02ec['length'],'operationCount':_0x54b820[_0x1e1259(0x19e)]}}};}};
@@ -1 +1 @@
1
- const a63_0xa3b431=a63_0x2201;(function(_0x5357f3,_0x3c2f2b){const _0x200c43=a63_0x2201,_0x46aa33=_0x5357f3();while(!![]){try{const _0x1546f7=-parseInt(_0x200c43(0x1f1))/0x1*(parseInt(_0x200c43(0x1eb))/0x2)+-parseInt(_0x200c43(0x1d9))/0x3+parseInt(_0x200c43(0x1d8))/0x4*(parseInt(_0x200c43(0x1e2))/0x5)+parseInt(_0x200c43(0x20a))/0x6*(-parseInt(_0x200c43(0x1ec))/0x7)+-parseInt(_0x200c43(0x206))/0x8*(-parseInt(_0x200c43(0x203))/0x9)+-parseInt(_0x200c43(0x1f8))/0xa*(parseInt(_0x200c43(0x213))/0xb)+-parseInt(_0x200c43(0x1e9))/0xc;if(_0x1546f7===_0x3c2f2b)break;else _0x46aa33['push'](_0x46aa33['shift']());}catch(_0x50f0aa){_0x46aa33['push'](_0x46aa33['shift']());}}}(a63_0x805a,0x75d5e));import{APPCODE_FLAG_OPTIONAL,CODE_FLAG}from'../../commands/common/flags.js';function a63_0x805a(){const _0x51d1e3=['name','Updated\x20dataset\x20extend\x20(','sort','datasetCode','message','16TwDxbu','861231hWFJWS','object','businessGroup','--patch-json','patch','push','tableName','Use\x20`rabetbase\x20dataset\x20business-group-update`\x20to\x20update\x20business\x20model\x20groups.','entries','765570yiXyYZ','validation','--code\x20is\x20required','\x20must\x20be\x20a\x20JSON\x20object','patch-json','JSON\x20object\x20patch\x20for\x20dataset\x20top-level\x20extend;\x20current\x20allowlist\x20is\x20empty','from','2227296pGFLQB','\x20must\x20be\x20valid\x20JSON\x20object:\x20','200cJnAKq','535549JJwfwU','has',',\x20actual\x20','--expect-json','code','384OzEAEK','/smartapi/dataset/update-driven-data','dataset','appCode','dbtableConfig','No\x20changes\x20for\x20dataset\x20extend','Dataset\x20extend\x20must\x20be\x20valid\x20JSON\x20object:\x20','11370sfpTXK','length','str','get','value','modelId','trim','dbName','POST','--patch-json\x20must\x20contain\x20at\x20least\x20one\x20key','string','2759220KjxikC','Allowed\x20keys:\x20','Dataset\x20extend\x20must\x20be\x20a\x20JSON\x20object','24tWtobt','expect-json','join','dataset\x20extend-update\x20does\x20not\x20support\x20businessGroup;\x20use\x20dataset\x20business-group-update','12EDPJRd','parse','Expected\x20','extend','Dry-run:\x20dataset\x20extend\x20would\x20change\x20(','isArray','Unsupported\x20patch\x20key:\x20','Expectation\x20mismatch\x20at\x20extend.','stringify','3729DhAGXk'];a63_0x805a=function(){return _0x51d1e3;};return a63_0x805a();}import{getDatasetDetail,updateDrivenData}from'../../core/api-client.js';function a63_0x2201(_0x5315c4,_0x2c27b6){_0x5315c4=_0x5315c4-0x1d8;const _0x805a41=a63_0x805a();let _0x22012b=_0x805a41[_0x5315c4];return _0x22012b;}import{CliErrors}from'../../errors.js';const MUTABLE_EXTEND_KEYS=new Set(),EXTEND_PATCH_REDIRECTS=new Map([[a63_0xa3b431(0x1db),{'message':a63_0xa3b431(0x209),'hint':a63_0xa3b431(0x1e0)}]]);export function parseJsonObjectFlag(_0x4ca4c2,_0x20778d){const _0x47e3d1=a63_0xa3b431;if(!_0x4ca4c2)return undefined;let _0x11bd60;try{_0x11bd60=JSON[_0x47e3d1(0x20b)](_0x4ca4c2);}catch(_0x56935b){const _0x13e8af=_0x56935b instanceof Error?_0x56935b[_0x47e3d1(0x218)]:String(_0x56935b);throw CliErrors[_0x47e3d1(0x1e3)](_0x20778d+_0x47e3d1(0x1ea)+_0x13e8af);}if(!isPlainObject(_0x11bd60)||Array[_0x47e3d1(0x20f)](_0x11bd60))throw CliErrors['validation'](_0x20778d+_0x47e3d1(0x1e5));return _0x11bd60;}export function validateExtendPatchKeys(_0x129a4c){const _0x52151a=a63_0xa3b431,_0x4386b2=Object['keys'](_0x129a4c);if(_0x4386b2[_0x52151a(0x1f9)]===0x0)throw CliErrors[_0x52151a(0x1e3)](_0x52151a(0x201));for(const _0x4d4818 of _0x4386b2){const _0x23283=EXTEND_PATCH_REDIRECTS[_0x52151a(0x1fb)](_0x4d4818);if(_0x23283)throw CliErrors[_0x52151a(0x1e3)](_0x23283[_0x52151a(0x218)],_0x23283['hint']);if(!MUTABLE_EXTEND_KEYS[_0x52151a(0x1ed)](_0x4d4818))throw CliErrors[_0x52151a(0x1e3)](_0x52151a(0x210)+_0x4d4818,describeMutableExtendKeys());}}function describeMutableExtendKeys(){const _0x1795ee=a63_0xa3b431,_0x53cc15=Array[_0x1795ee(0x1e8)](MUTABLE_EXTEND_KEYS)['sort']();return _0x53cc15[_0x1795ee(0x1f9)]>0x0?_0x1795ee(0x204)+_0x53cc15[_0x1795ee(0x208)](',\x20'):'No\x20dataset\x20extend\x20patch\x20keys\x20are\x20currently\x20supported.';}export function applyExtendPatch(_0x1975d7,_0x1f802d){const _0x4dffc0=a63_0xa3b431;validateExtendPatchKeys(_0x1f802d);const _0x17c17d=deepClone(_0x1975d7),_0x42bf49=[];for(const [_0x3679a2,_0x43fe0e]of Object[_0x4dffc0(0x1e1)](_0x1f802d)){const _0x3b8b5d=_0x17c17d[_0x3679a2],_0x40dc61=deepClone(_0x43fe0e);!deepEqual(_0x3b8b5d,_0x40dc61)&&(_0x17c17d[_0x3679a2]=_0x40dc61,_0x42bf49[_0x4dffc0(0x1de)]('extend.'+_0x3679a2));}return _0x42bf49[_0x4dffc0(0x216)](),{'after':_0x17c17d,'changedPaths':_0x42bf49,'changed':_0x42bf49[_0x4dffc0(0x1f9)]>0x0};}export function assertExpectation(_0x14e4e5,_0x3cc677){const _0x3dce31=a63_0xa3b431;if(!_0x3cc677)return;for(const [_0x2a7e9c,_0x151be9]of Object[_0x3dce31(0x1e1)](_0x3cc677)){const _0x818886=_0x14e4e5[_0x2a7e9c];if(!deepEqual(_0x818886,_0x151be9))throw CliErrors[_0x3dce31(0x1e3)](_0x3dce31(0x211)+_0x2a7e9c,_0x3dce31(0x20c)+JSON['stringify'](_0x151be9)+_0x3dce31(0x1ee)+JSON[_0x3dce31(0x212)](_0x818886));}}export async function buildDatasetExtendUpdateResult({appCode:_0x54e3d9,input:_0x494e29,dryRun:_0x3f6730}){const _0x257492=a63_0xa3b431;validateInput(_0x494e29);const _0x42e638=await getDatasetDetail(_0x494e29[_0x257492(0x1f0)]),_0x5604a8=parseDatasetExtend(_0x42e638[_0x257492(0x20d)]),_0x541459=deepClone(_0x5604a8[_0x257492(0x1fc)]);assertExpectation(_0x541459,_0x494e29['expect']);const {after:_0x3a54d8,changedPaths:_0x15379a,changed:_0x19e800}=applyExtendPatch(_0x541459,_0x494e29['patch']),_0x30c089=summarizeDataset(_0x42e638,_0x494e29[_0x257492(0x1f0)]);return _0x19e800&&!_0x3f6730&&(_0x42e638[_0x257492(0x20d)]=serializeDatasetExtend(_0x3a54d8,_0x5604a8['shape']),await updateDrivenData(_0x42e638)),{'ok':!![],'data':{'appCode':_0x54e3d9,'selector':{'code':_0x494e29[_0x257492(0x1f0)]},'dataset':_0x30c089,'dryRun':_0x3f6730,'changed':_0x19e800,'changedPaths':_0x15379a,'before':{'extend':_0x541459},'after':{'extend':_0x3a54d8},'submitted':_0x19e800&&!_0x3f6730},'message':_0x19e800?_0x3f6730?_0x257492(0x20e)+_0x15379a[_0x257492(0x208)](',\x20')+')':_0x257492(0x215)+_0x15379a[_0x257492(0x208)](',\x20')+')':_0x257492(0x1f6)};}export const datasetExtendUpdate={'service':'dataset','command':'extend-update','description':'Patch\x20dataset\x20top-level\x20extend\x20safely','risk':'write','flags':[CODE_FLAG,{'name':a63_0xa3b431(0x1e6),'type':a63_0xa3b431(0x202),'required':!![],'description':a63_0xa3b431(0x1e7)},{'name':a63_0xa3b431(0x207),'type':'string','required':![],'description':'JSON\x20object\x20of\x20expected\x20current\x20extend\x20values;\x20mismatch\x20aborts\x20without\x20writing'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x123a0b){validateInput(readExtendUpdateInput(_0x123a0b));},async 'dryRun'(_0x42d205){const _0x1c0c49=a63_0xa3b431,_0x20328d=await buildDatasetExtendUpdateResult({'appCode':_0x42d205[_0x1c0c49(0x1f4)],'input':readExtendUpdateInput(_0x42d205),'dryRun':!![]});return{'method':_0x1c0c49(0x200),'url':_0x1c0c49(0x1f2),'body':_0x20328d['data'],'description':_0x20328d[_0x1c0c49(0x218)]};},async 'execute'(_0x5a270b){const _0xc64458=a63_0xa3b431;return buildDatasetExtendUpdateResult({'appCode':_0x5a270b[_0xc64458(0x1f4)],'input':readExtendUpdateInput(_0x5a270b),'dryRun':![]});}};function readExtendUpdateInput(_0xd7add5){const _0x24a6b2=a63_0xa3b431,_0xd9edea=trim(_0xd7add5[_0x24a6b2(0x1fa)]('code')),_0x550bcb=parseJsonObjectFlag(_0xd7add5[_0x24a6b2(0x1fa)](_0x24a6b2(0x1e6)),_0x24a6b2(0x1dc)),_0x42a894=parseJsonObjectFlag(_0xd7add5[_0x24a6b2(0x1fa)](_0x24a6b2(0x207)),_0x24a6b2(0x1ef));return{'code':_0xd9edea,'patch':_0x550bcb||{},'expect':_0x42a894};}function validateInput(_0x5d9ccc){const _0x5da2d5=a63_0xa3b431;if(!_0x5d9ccc[_0x5da2d5(0x1f0)])throw CliErrors['validation'](_0x5da2d5(0x1e4));validateExtendPatchKeys(_0x5d9ccc[_0x5da2d5(0x1dd)]);}function parseDatasetExtend(_0x101b4d){const _0xdcd148=a63_0xa3b431;if(typeof _0x101b4d===_0xdcd148(0x202)){const _0x134a42=_0x101b4d[_0xdcd148(0x1fe)]();if(!_0x134a42)return{'value':{},'shape':_0xdcd148(0x202)};let _0x44663c;try{_0x44663c=JSON[_0xdcd148(0x20b)](_0x134a42);}catch(_0x42db00){const _0x1d4490=_0x42db00 instanceof Error?_0x42db00[_0xdcd148(0x218)]:String(_0x42db00);throw CliErrors[_0xdcd148(0x1e3)](_0xdcd148(0x1f7)+_0x1d4490);}if(!isPlainObject(_0x44663c)||Array[_0xdcd148(0x20f)](_0x44663c))throw CliErrors[_0xdcd148(0x1e3)](_0xdcd148(0x205));return{'value':_0x44663c,'shape':_0xdcd148(0x202)};}if(_0x101b4d===undefined||_0x101b4d===null)return{'value':{},'shape':_0xdcd148(0x202)};if(!isPlainObject(_0x101b4d)||Array[_0xdcd148(0x20f)](_0x101b4d))throw CliErrors[_0xdcd148(0x1e3)]('Dataset\x20extend\x20must\x20be\x20a\x20JSON\x20object');return{'value':_0x101b4d,'shape':_0xdcd148(0x1da)};}function serializeDatasetExtend(_0x41b166,_0x433e53){const _0x4dbb0a=a63_0xa3b431;return _0x433e53===_0x4dbb0a(0x202)?JSON[_0x4dbb0a(0x212)](_0x41b166):_0x41b166;}function summarizeDataset(_0x14c41d,_0x1db5f4){const _0x9ccd10=a63_0xa3b431,_0x906deb=isPlainObject(_0x14c41d[_0x9ccd10(0x1f3)])?_0x14c41d[_0x9ccd10(0x1f3)]:{},_0x2498a6=isPlainObject(_0x14c41d[_0x9ccd10(0x1f5)])?_0x14c41d[_0x9ccd10(0x1f5)]:{};return{'id':_0x14c41d[_0x9ccd10(0x1fd)]??_0x14c41d['id']??_0x906deb['datasetId']??null,'code':_0x14c41d['modelCode']??_0x14c41d[_0x9ccd10(0x1f0)]??_0x906deb[_0x9ccd10(0x217)]??_0x1db5f4,'name':_0x14c41d[_0x9ccd10(0x214)]??_0x906deb['datasetName']??null,'table':_0x2498a6[_0x9ccd10(0x1df)]??_0x906deb[_0x9ccd10(0x1df)]??null,'db':_0x2498a6[_0x9ccd10(0x1ff)]??_0x2498a6['dbId']??null};}function deepClone(_0x111432){if(_0x111432===undefined)return _0x111432;return JSON['parse'](JSON['stringify'](_0x111432));}function deepEqual(_0x4d71b9,_0x5caddf){const _0x598ba6=a63_0xa3b431;return JSON[_0x598ba6(0x212)](_0x4d71b9)===JSON[_0x598ba6(0x212)](_0x5caddf);}function isPlainObject(_0x1191ff){const _0x237697=a63_0xa3b431;return Boolean(_0x1191ff)&&typeof _0x1191ff===_0x237697(0x1da)&&!Array[_0x237697(0x20f)](_0x1191ff);}function trim(_0x4531c6){const _0x5f451f=a63_0xa3b431,_0x112fec=String(_0x4531c6||'')[_0x5f451f(0x1fe)]();return _0x112fec;}
1
+ function a63_0x368e(){const _0x21b6ad=['9euxPoB','dbId','parse','Allowed\x20keys:\x20','3688713xFSwyo','keys','get','code','entries','dataset','modelCode','message','sort','48udLYFu','1474gAvUiF','patch-json','\x20must\x20be\x20a\x20JSON\x20object','Dataset\x20extend\x20must\x20be\x20a\x20JSON\x20object','/smartapi/dataset/update-driven-data','3890PgkKtR','--patch-json\x20must\x20contain\x20at\x20least\x20one\x20key','6qYbfiL','--patch-json','2711350NMuSdz','trim','name','dbName','No\x20dataset\x20extend\x20patch\x20keys\x20are\x20currently\x20supported.','shape','--code\x20is\x20required','JSON\x20object\x20patch\x20for\x20dataset\x20top-level\x20extend;\x20current\x20allowlist\x20is\x20empty','23804136TDypBk','dataset\x20extend-update\x20does\x20not\x20support\x20businessGroup;\x20use\x20dataset\x20business-group-update','extend.','3044llXHqf','length','data','dbtableConfig','string','datasetName','No\x20changes\x20for\x20dataset\x20extend','join','Patch\x20dataset\x20top-level\x20extend\x20safely','patch','object','1119iRJfON','datasetId','extend','push','validation','datasetCode','write','Updated\x20dataset\x20extend\x20(','Dataset\x20extend\x20must\x20be\x20valid\x20JSON\x20object:\x20','JSON\x20object\x20of\x20expected\x20current\x20extend\x20values;\x20mismatch\x20aborts\x20without\x20writing','str','extend-update','stringify','Use\x20`rabetbase\x20dataset\x20business-group-update`\x20to\x20update\x20business\x20model\x20groups.','from','22094cnxEhx','expect-json','Expected\x20','expect','POST','appCode','isArray','1834904YGKtVr','tableName'];a63_0x368e=function(){return _0x21b6ad;};return a63_0x368e();}const a63_0x505fdf=a63_0x1fde;(function(_0x4169f3,_0x2eec19){const _0xfd0fd3=a63_0x1fde,_0x26aba8=_0x4169f3();while(!![]){try{const _0x5f4638=parseInt(_0xfd0fd3(0x214))/0x1*(-parseInt(_0xfd0fd3(0x1fe))/0x2)+parseInt(_0xfd0fd3(0x1ef))/0x3*(-parseInt(_0xfd0fd3(0x1e4))/0x4)+-parseInt(_0xfd0fd3(0x21e))/0x5+-parseInt(_0xfd0fd3(0x21c))/0x6*(parseInt(_0xfd0fd3(0x20b))/0x7)+parseInt(_0xfd0fd3(0x205))/0x8*(parseInt(_0xfd0fd3(0x207))/0x9)+parseInt(_0xfd0fd3(0x21a))/0xa*(-parseInt(_0xfd0fd3(0x215))/0xb)+parseInt(_0xfd0fd3(0x226))/0xc;if(_0x5f4638===_0x2eec19)break;else _0x26aba8['push'](_0x26aba8['shift']());}catch(_0x234914){_0x26aba8['push'](_0x26aba8['shift']());}}}(a63_0x368e,0x43c49));import{APPCODE_FLAG_OPTIONAL,CODE_FLAG}from'../../commands/common/flags.js';import{getDatasetDetail,updateDrivenData}from'../../core/api-client.js';function a63_0x1fde(_0x2e1d96,_0x17c200){_0x2e1d96=_0x2e1d96-0x1e3;const _0x368e1c=a63_0x368e();let _0x1fdeea=_0x368e1c[_0x2e1d96];return _0x1fdeea;}import{CliErrors}from'../../errors.js';const MUTABLE_EXTEND_KEYS=new Set(),EXTEND_PATCH_REDIRECTS=new Map([['businessGroup',{'message':a63_0x505fdf(0x227),'hint':a63_0x505fdf(0x1fc)}]]);export function parseJsonObjectFlag(_0x1a504d,_0x549e93){const _0x15de94=a63_0x505fdf;if(!_0x1a504d)return undefined;let _0x469fbf;try{_0x469fbf=JSON[_0x15de94(0x209)](_0x1a504d);}catch(_0x4d666f){const _0x17273a=_0x4d666f instanceof Error?_0x4d666f[_0x15de94(0x212)]:String(_0x4d666f);throw CliErrors[_0x15de94(0x1f3)](_0x549e93+'\x20must\x20be\x20valid\x20JSON\x20object:\x20'+_0x17273a);}if(!isPlainObject(_0x469fbf)||Array['isArray'](_0x469fbf))throw CliErrors[_0x15de94(0x1f3)](_0x549e93+_0x15de94(0x217));return _0x469fbf;}export function validateExtendPatchKeys(_0x19f8cf){const _0xb6aec0=a63_0x505fdf,_0x2f319d=Object[_0xb6aec0(0x20c)](_0x19f8cf);if(_0x2f319d[_0xb6aec0(0x1e5)]===0x0)throw CliErrors[_0xb6aec0(0x1f3)](_0xb6aec0(0x21b));for(const _0x33a2b9 of _0x2f319d){const _0x40d4f5=EXTEND_PATCH_REDIRECTS[_0xb6aec0(0x20d)](_0x33a2b9);if(_0x40d4f5)throw CliErrors[_0xb6aec0(0x1f3)](_0x40d4f5[_0xb6aec0(0x212)],_0x40d4f5['hint']);if(!MUTABLE_EXTEND_KEYS['has'](_0x33a2b9))throw CliErrors[_0xb6aec0(0x1f3)]('Unsupported\x20patch\x20key:\x20'+_0x33a2b9,describeMutableExtendKeys());}}function describeMutableExtendKeys(){const _0x4fc2cc=a63_0x505fdf,_0x2ec24d=Array[_0x4fc2cc(0x1fd)](MUTABLE_EXTEND_KEYS)[_0x4fc2cc(0x213)]();return _0x2ec24d['length']>0x0?_0x4fc2cc(0x20a)+_0x2ec24d[_0x4fc2cc(0x1eb)](',\x20'):_0x4fc2cc(0x222);}export function applyExtendPatch(_0x111618,_0x63c73){const _0x599e28=a63_0x505fdf;validateExtendPatchKeys(_0x63c73);const _0x559eee=deepClone(_0x111618),_0x40337a=[];for(const [_0x4cb8c3,_0x264f97]of Object['entries'](_0x63c73)){const _0x265b05=_0x559eee[_0x4cb8c3],_0x6d5a48=deepClone(_0x264f97);!deepEqual(_0x265b05,_0x6d5a48)&&(_0x559eee[_0x4cb8c3]=_0x6d5a48,_0x40337a[_0x599e28(0x1f2)](_0x599e28(0x1e3)+_0x4cb8c3));}return _0x40337a[_0x599e28(0x213)](),{'after':_0x559eee,'changedPaths':_0x40337a,'changed':_0x40337a['length']>0x0};}export function assertExpectation(_0x425aeb,_0x8d7901){const _0x8cb0a5=a63_0x505fdf;if(!_0x8d7901)return;for(const [_0x27cc59,_0x26250e]of Object[_0x8cb0a5(0x20f)](_0x8d7901)){const _0x32a25b=_0x425aeb[_0x27cc59];if(!deepEqual(_0x32a25b,_0x26250e))throw CliErrors['validation']('Expectation\x20mismatch\x20at\x20extend.'+_0x27cc59,_0x8cb0a5(0x200)+JSON[_0x8cb0a5(0x1fb)](_0x26250e)+',\x20actual\x20'+JSON[_0x8cb0a5(0x1fb)](_0x32a25b));}}export async function buildDatasetExtendUpdateResult({appCode:_0x39135f,input:_0x24c246,dryRun:_0x20b167}){const _0x25d771=a63_0x505fdf;validateInput(_0x24c246);const _0x58aaa6=await getDatasetDetail(_0x24c246[_0x25d771(0x20e)]),_0x377268=parseDatasetExtend(_0x58aaa6[_0x25d771(0x1f1)]),_0x306469=deepClone(_0x377268['value']);assertExpectation(_0x306469,_0x24c246[_0x25d771(0x201)]);const {after:_0xc166e4,changedPaths:_0x3933ea,changed:_0x65ad86}=applyExtendPatch(_0x306469,_0x24c246[_0x25d771(0x1ed)]),_0x2a2b45=summarizeDataset(_0x58aaa6,_0x24c246[_0x25d771(0x20e)]);return _0x65ad86&&!_0x20b167&&(_0x58aaa6['extend']=serializeDatasetExtend(_0xc166e4,_0x377268[_0x25d771(0x223)]),await updateDrivenData(_0x58aaa6)),{'ok':!![],'data':{'appCode':_0x39135f,'selector':{'code':_0x24c246[_0x25d771(0x20e)]},'dataset':_0x2a2b45,'dryRun':_0x20b167,'changed':_0x65ad86,'changedPaths':_0x3933ea,'before':{'extend':_0x306469},'after':{'extend':_0xc166e4},'submitted':_0x65ad86&&!_0x20b167},'message':_0x65ad86?_0x20b167?'Dry-run:\x20dataset\x20extend\x20would\x20change\x20('+_0x3933ea['join'](',\x20')+')':_0x25d771(0x1f6)+_0x3933ea[_0x25d771(0x1eb)](',\x20')+')':_0x25d771(0x1ea)};}export const datasetExtendUpdate={'service':a63_0x505fdf(0x210),'command':a63_0x505fdf(0x1fa),'description':a63_0x505fdf(0x1ec),'risk':a63_0x505fdf(0x1f5),'flags':[CODE_FLAG,{'name':a63_0x505fdf(0x216),'type':a63_0x505fdf(0x1e8),'required':!![],'description':a63_0x505fdf(0x225)},{'name':a63_0x505fdf(0x1ff),'type':'string','required':![],'description':a63_0x505fdf(0x1f8)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x899f79){validateInput(readExtendUpdateInput(_0x899f79));},async 'dryRun'(_0x1b9d75){const _0x477d81=a63_0x505fdf,_0x40a77b=await buildDatasetExtendUpdateResult({'appCode':_0x1b9d75[_0x477d81(0x203)],'input':readExtendUpdateInput(_0x1b9d75),'dryRun':!![]});return{'method':_0x477d81(0x202),'url':_0x477d81(0x219),'body':_0x40a77b[_0x477d81(0x1e6)],'description':_0x40a77b[_0x477d81(0x212)]};},async 'execute'(_0x2848c9){const _0x59d3c6=a63_0x505fdf;return buildDatasetExtendUpdateResult({'appCode':_0x2848c9[_0x59d3c6(0x203)],'input':readExtendUpdateInput(_0x2848c9),'dryRun':![]});}};function readExtendUpdateInput(_0x794377){const _0x47470f=a63_0x505fdf,_0x3f1d9f=trim(_0x794377[_0x47470f(0x1f9)](_0x47470f(0x20e))),_0x409d10=parseJsonObjectFlag(_0x794377['str']('patch-json'),_0x47470f(0x21d)),_0x357da3=parseJsonObjectFlag(_0x794377[_0x47470f(0x1f9)](_0x47470f(0x1ff)),'--expect-json');return{'code':_0x3f1d9f,'patch':_0x409d10||{},'expect':_0x357da3};}function validateInput(_0x2e39f9){const _0xf61962=a63_0x505fdf;if(!_0x2e39f9['code'])throw CliErrors[_0xf61962(0x1f3)](_0xf61962(0x224));validateExtendPatchKeys(_0x2e39f9[_0xf61962(0x1ed)]);}function parseDatasetExtend(_0x320e1c){const _0x32604e=a63_0x505fdf;if(typeof _0x320e1c===_0x32604e(0x1e8)){const _0x4c9fbc=_0x320e1c[_0x32604e(0x21f)]();if(!_0x4c9fbc)return{'value':{},'shape':_0x32604e(0x1e8)};let _0x394e58;try{_0x394e58=JSON['parse'](_0x4c9fbc);}catch(_0x15b952){const _0x23668f=_0x15b952 instanceof Error?_0x15b952['message']:String(_0x15b952);throw CliErrors[_0x32604e(0x1f3)](_0x32604e(0x1f7)+_0x23668f);}if(!isPlainObject(_0x394e58)||Array['isArray'](_0x394e58))throw CliErrors[_0x32604e(0x1f3)](_0x32604e(0x218));return{'value':_0x394e58,'shape':_0x32604e(0x1e8)};}if(_0x320e1c===undefined||_0x320e1c===null)return{'value':{},'shape':_0x32604e(0x1e8)};if(!isPlainObject(_0x320e1c)||Array[_0x32604e(0x204)](_0x320e1c))throw CliErrors[_0x32604e(0x1f3)](_0x32604e(0x218));return{'value':_0x320e1c,'shape':_0x32604e(0x1ee)};}function serializeDatasetExtend(_0x370d29,_0x331372){const _0x313cd2=a63_0x505fdf;return _0x331372===_0x313cd2(0x1e8)?JSON['stringify'](_0x370d29):_0x370d29;}function summarizeDataset(_0x23a1d6,_0x27b8a){const _0x330e27=a63_0x505fdf,_0x5c9e56=isPlainObject(_0x23a1d6[_0x330e27(0x210)])?_0x23a1d6[_0x330e27(0x210)]:{},_0x1ef9d8=isPlainObject(_0x23a1d6[_0x330e27(0x1e7)])?_0x23a1d6[_0x330e27(0x1e7)]:{};return{'id':_0x23a1d6['modelId']??_0x23a1d6['id']??_0x5c9e56[_0x330e27(0x1f0)]??null,'code':_0x23a1d6[_0x330e27(0x211)]??_0x23a1d6[_0x330e27(0x20e)]??_0x5c9e56[_0x330e27(0x1f4)]??_0x27b8a,'name':_0x23a1d6[_0x330e27(0x220)]??_0x5c9e56[_0x330e27(0x1e9)]??null,'table':_0x1ef9d8[_0x330e27(0x206)]??_0x5c9e56['tableName']??null,'db':_0x1ef9d8[_0x330e27(0x221)]??_0x1ef9d8[_0x330e27(0x208)]??null};}function deepClone(_0x2ba789){if(_0x2ba789===undefined)return _0x2ba789;return JSON['parse'](JSON['stringify'](_0x2ba789));}function deepEqual(_0x3d1184,_0x6f3996){const _0xa15f94=a63_0x505fdf;return JSON[_0xa15f94(0x1fb)](_0x3d1184)===JSON[_0xa15f94(0x1fb)](_0x6f3996);}function isPlainObject(_0x1d5b61){const _0x1b6ab9=a63_0x505fdf;return Boolean(_0x1d5b61)&&typeof _0x1d5b61===_0x1b6ab9(0x1ee)&&!Array['isArray'](_0x1d5b61);}function trim(_0x5da82c){const _0x4e4fdc=String(_0x5da82c||'')['trim']();return _0x4e4fdc;}
@@ -1 +1 @@
1
- const a64_0x3df046=a64_0x5782;(function(_0x54d503,_0xbab103){const _0x158ac8=a64_0x5782,_0x55357a=_0x54d503();while(!![]){try{const _0x3d0a55=parseInt(_0x158ac8(0x1db))/0x1*(parseInt(_0x158ac8(0x1de))/0x2)+-parseInt(_0x158ac8(0x1d1))/0x3*(-parseInt(_0x158ac8(0x1cd))/0x4)+-parseInt(_0x158ac8(0x1d4))/0x5+parseInt(_0x158ac8(0x1c7))/0x6*(-parseInt(_0x158ac8(0x1d5))/0x7)+parseInt(_0x158ac8(0x1b6))/0x8+parseInt(_0x158ac8(0x1e2))/0x9+parseInt(_0x158ac8(0x1f0))/0xa*(parseInt(_0x158ac8(0x1da))/0xb);if(_0x3d0a55===_0xbab103)break;else _0x55357a['push'](_0x55357a['shift']());}catch(_0x26ffa9){_0x55357a['push'](_0x55357a['shift']());}}}(a64_0x4286,0xe13a0));import{getDatasetDetail,updateDrivenData}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,CODE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';const MUTABLE_FIELD_KEYS=new Set([a64_0x3df046(0x1e7),a64_0x3df046(0x1c3),a64_0x3df046(0x1d7),a64_0x3df046(0x1f4),a64_0x3df046(0x1ca),a64_0x3df046(0x1dc),a64_0x3df046(0x204),a64_0x3df046(0x1d2),a64_0x3df046(0x1ee)]),FORBIDDEN_FIELD_KEYS=new Set(['id',a64_0x3df046(0x1c1),a64_0x3df046(0x1ff),a64_0x3df046(0x1bc),a64_0x3df046(0x1b4),a64_0x3df046(0x1c6),a64_0x3df046(0x1b9),a64_0x3df046(0x1df),a64_0x3df046(0x1ef),'pkField','autoIncrement',a64_0x3df046(0x1bd)]);export function parseJsonObjectFlag(_0x535a67,_0x1e60bc){const _0x3a0159=a64_0x3df046;if(!_0x535a67)return undefined;let _0x224ef0;try{_0x224ef0=JSON[_0x3a0159(0x1d9)](_0x535a67);}catch(_0x523910){const _0x2edfe4=_0x523910 instanceof Error?_0x523910[_0x3a0159(0x1f7)]:String(_0x523910);throw CliErrors[_0x3a0159(0x1cc)](_0x1e60bc+_0x3a0159(0x1e8)+_0x2edfe4);}if(!isPlainObject(_0x224ef0)||Array[_0x3a0159(0x1e9)](_0x224ef0))throw CliErrors[_0x3a0159(0x1cc)](_0x1e60bc+_0x3a0159(0x1d3));return _0x224ef0;}export function validatePatchKeys(_0x1aa338){const _0x2a2f33=a64_0x3df046,_0x245234=Object[_0x2a2f33(0x1bf)](_0x1aa338);if(_0x245234[_0x2a2f33(0x1f2)]===0x0)throw CliErrors[_0x2a2f33(0x1cc)](_0x2a2f33(0x1e6));for(const _0xf7f4fa of _0x245234){if(FORBIDDEN_FIELD_KEYS['has'](_0xf7f4fa))throw CliErrors[_0x2a2f33(0x1cc)](_0x2a2f33(0x205)+_0xf7f4fa);if(!MUTABLE_FIELD_KEYS[_0x2a2f33(0x1c4)](_0xf7f4fa))throw CliErrors[_0x2a2f33(0x1cc)](_0x2a2f33(0x1e1)+_0xf7f4fa,_0x2a2f33(0x1fb)+Array[_0x2a2f33(0x1b5)](MUTABLE_FIELD_KEYS)[_0x2a2f33(0x1d0)](',\x20'));}}export function applyFieldPatch(_0x327029,_0x2fcaec){const _0x43c237=a64_0x3df046;validatePatchKeys(_0x2fcaec);const _0x56bc5b=deepClone(_0x327029),_0x4fd9e8=new Set();for(const [_0x4c584e,_0x1c4fb5]of Object[_0x43c237(0x1bb)](_0x2fcaec)){const _0xdb1f81=_0x56bc5b[_0x4c584e],_0x15fabb=mergePatchValue(_0xdb1f81,_0x1c4fb5);!deepEqual(_0xdb1f81,_0x15fabb)&&(_0x56bc5b[_0x4c584e]=_0x15fabb,_0x4fd9e8[_0x43c237(0x1fe)](_0x4c584e),collectChangedPaths(_0x4c584e,_0xdb1f81,_0x15fabb,_0x4fd9e8));}return{'after':_0x56bc5b,'changedPaths':Array['from'](_0x4fd9e8)['sort'](),'changed':_0x4fd9e8['size']>0x0};}export function assertExpectation(_0x38e08d,_0x58e013){const _0x3505c9=a64_0x3df046;if(!_0x58e013)return;for(const [_0x33405f,_0xe12ed0]of Object[_0x3505c9(0x1bb)](_0x58e013)){const _0x2a871c=_0x38e08d[_0x33405f];if(!deepEqual(_0x2a871c,_0xe12ed0))throw CliErrors[_0x3505c9(0x1cc)](_0x3505c9(0x1c0)+_0x33405f,_0x3505c9(0x1c2)+JSON[_0x3505c9(0x1f8)](_0xe12ed0)+_0x3505c9(0x1fa)+JSON[_0x3505c9(0x1f8)](_0x2a871c));}}export async function buildDatasetFieldUpdateResult({appCode:_0x229ea1,input:_0x3ca9b8,dryRun:_0x397e43}){const _0x4e7d27=a64_0x3df046;validateInput(_0x3ca9b8);const _0x4b5b04=await getDatasetDetail(_0x3ca9b8[_0x4e7d27(0x1ff)]),_0x479542=readFieldArray(_0x4b5b04),_0x1276d0=_0x479542[_0x4e7d27(0x1e5)](_0x26b414=>_0x26b414?.['name']===_0x3ca9b8[_0x4e7d27(0x1e3)]);if(_0x1276d0<0x0)throw CliErrors[_0x4e7d27(0x1cc)]('Field\x20not\x20found:\x20'+_0x3ca9b8[_0x4e7d27(0x1e3)]);const _0x347c2f=deepClone(_0x479542[_0x1276d0]);assertExpectation(_0x347c2f,_0x3ca9b8[_0x4e7d27(0x1fd)]);const {after:_0x59b4bf,changedPaths:_0x4157ef,changed:_0x4c2fd2}=applyFieldPatch(_0x347c2f,_0x3ca9b8[_0x4e7d27(0x1f6)]),_0x5d2b75=summarizeDataset(_0x4b5b04,_0x3ca9b8[_0x4e7d27(0x1ff)]);return _0x4c2fd2&&!_0x397e43&&(_0x479542[_0x1276d0]=_0x59b4bf,await updateDrivenData(_0x4b5b04)),{'ok':!![],'data':{'appCode':_0x229ea1,'selector':{'code':_0x3ca9b8['code']},'dataset':_0x5d2b75,'field':{'id':_0x347c2f['id']??null,'name':_0x347c2f[_0x4e7d27(0x1c1)]},'dryRun':_0x397e43,'changed':_0x4c2fd2,'changedPaths':_0x4157ef,'before':_0x347c2f,'after':_0x59b4bf,'submitted':_0x4c2fd2&&!_0x397e43},'message':_0x4c2fd2?_0x397e43?'Dry-run:\x20dataset\x20field\x20'+_0x3ca9b8['field']+_0x4e7d27(0x1b8)+_0x4157ef[_0x4e7d27(0x1d0)](',\x20')+')':_0x4e7d27(0x1f5)+_0x3ca9b8['field']+'\x20('+_0x4157ef[_0x4e7d27(0x1d0)](',\x20')+')':_0x4e7d27(0x1c9)+_0x3ca9b8[_0x4e7d27(0x1e3)]};}export const datasetFieldUpdate={'service':a64_0x3df046(0x1e4),'command':a64_0x3df046(0x203),'description':'Patch\x20one\x20raw\x20dataset\x20fields[]\x20field\x20object\x20safely','risk':a64_0x3df046(0x1eb),'flags':[CODE_FLAG,{'name':a64_0x3df046(0x1e3),'type':a64_0x3df046(0x1ce),'required':!![],'description':a64_0x3df046(0x1ea)},{'name':'patch-json','type':a64_0x3df046(0x1ce),'required':!![],'description':'JSON\x20object\x20patch;\x20allowed\x20keys:\x20doType/displayName/description/options/required/datetimeFormat/defaultAggregation/chartRole/deprecated'},{'name':a64_0x3df046(0x1b3),'type':'string','required':![],'description':a64_0x3df046(0x1e0)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x5f1a35){validateInput(readFieldUpdateInput(_0x5f1a35));},async 'dryRun'(_0x4b4f0d){const _0x8538d2=a64_0x3df046,_0x524eb3=await buildDatasetFieldUpdateResult({'appCode':_0x4b4f0d[_0x8538d2(0x1b7)],'input':readFieldUpdateInput(_0x4b4f0d),'dryRun':!![]});return{'method':_0x8538d2(0x1cf),'url':_0x8538d2(0x1f1),'body':_0x524eb3['data'],'description':_0x524eb3[_0x8538d2(0x1f7)]};},async 'execute'(_0x427cd5){return buildDatasetFieldUpdateResult({'appCode':_0x427cd5['appCode'],'input':readFieldUpdateInput(_0x427cd5),'dryRun':![]});}};function readFieldUpdateInput(_0x320d92){const _0x1b1ac5=a64_0x3df046,_0x2dba96=trim(_0x320d92[_0x1b1ac5(0x1ec)](_0x1b1ac5(0x1ff))),_0x12710b=emptyToUndefined(_0x320d92[_0x1b1ac5(0x1ec)](_0x1b1ac5(0x1e3))),_0x5d83da=parseJsonObjectFlag(_0x320d92['str'](_0x1b1ac5(0x1ba)),_0x1b1ac5(0x1c8)),_0x4bb8c9=parseJsonObjectFlag(_0x320d92[_0x1b1ac5(0x1ec)]('expect-json'),_0x1b1ac5(0x200));return{'code':_0x2dba96,'field':_0x12710b||'','patch':_0x5d83da||{},'expect':_0x4bb8c9};}function validateInput(_0x1b57b9){const _0x10d52c=a64_0x3df046;if(!_0x1b57b9['code'])throw CliErrors['validation'](_0x10d52c(0x1d8));if(!_0x1b57b9[_0x10d52c(0x1e3)])throw CliErrors['validation'](_0x10d52c(0x1cb));validatePatchKeys(_0x1b57b9[_0x10d52c(0x1f6)]);}function readFieldArray(_0x565e90){const _0x894867=a64_0x3df046;if(Array['isArray'](_0x565e90[_0x894867(0x1d6)]))return _0x565e90['fields'];if(Array['isArray'](_0x565e90[_0x894867(0x1dd)]))return _0x565e90[_0x894867(0x1dd)];throw CliErrors[_0x894867(0x1cc)]('Driven\x20data\x20does\x20not\x20contain\x20fields[]\x20or\x20properties[]');}function summarizeDataset(_0x5a781b,_0x37f05f){const _0x71130f=a64_0x3df046,_0x799aca=isPlainObject(_0x5a781b[_0x71130f(0x1e4)])?_0x5a781b['dataset']:{},_0x1cf4ee=isPlainObject(_0x5a781b[_0x71130f(0x1c5)])?_0x5a781b[_0x71130f(0x1c5)]:{};return{'id':_0x5a781b[_0x71130f(0x1fc)]??_0x5a781b['id']??_0x799aca['datasetId']??null,'code':_0x5a781b[_0x71130f(0x201)]??_0x5a781b[_0x71130f(0x1ff)]??_0x799aca[_0x71130f(0x1f3)]??_0x37f05f,'name':_0x5a781b[_0x71130f(0x1c1)]??_0x799aca[_0x71130f(0x1be)]??null,'table':_0x1cf4ee['tableName']??_0x799aca[_0x71130f(0x1df)]??null,'db':_0x1cf4ee[_0x71130f(0x1f9)]??_0x1cf4ee[_0x71130f(0x1ed)]??null};}function mergePatchValue(_0x4dbb1e,_0x2524fd){if(isPlainObject(_0x4dbb1e)&&isPlainObject(_0x2524fd))return deepMerge(_0x4dbb1e,_0x2524fd);return deepClone(_0x2524fd);}function deepMerge(_0x3656d2,_0x37a10c){const _0x4a0c60=a64_0x3df046,_0x59f674=deepClone(_0x3656d2);for(const [_0x4d9f84,_0x47431e]of Object[_0x4a0c60(0x1bb)](_0x37a10c)){_0x59f674[_0x4d9f84]=isPlainObject(_0x59f674[_0x4d9f84])&&isPlainObject(_0x47431e)?deepMerge(_0x59f674[_0x4d9f84],_0x47431e):deepClone(_0x47431e);}return _0x59f674;}function collectChangedPaths(_0x45ca6f,_0x5390c0,_0xcd30a6,_0xcc4ef6){const _0x113836=a64_0x3df046;if(!isPlainObject(_0x5390c0)||!isPlainObject(_0xcd30a6))return;const _0x31c2b3=new Set([...Object[_0x113836(0x1bf)](_0x5390c0),...Object[_0x113836(0x1bf)](_0xcd30a6)]);for(const _0x2e37c2 of _0x31c2b3){const _0x2bfb42=_0x5390c0[_0x2e37c2],_0x27a763=_0xcd30a6[_0x2e37c2];!deepEqual(_0x2bfb42,_0x27a763)&&_0xcc4ef6['add'](_0x45ca6f+'.'+_0x2e37c2);}}function deepClone(_0x51a768){if(_0x51a768===undefined)return _0x51a768;return JSON['parse'](JSON['stringify'](_0x51a768));}function deepEqual(_0x2cbf9c,_0x13d70b){return JSON['stringify'](_0x2cbf9c)===JSON['stringify'](_0x13d70b);}function a64_0x4286(){const _0x4485bf=['from','2105128fMUjND','appCode','\x20would\x20change\x20(','dbFieldName','patch-json','entries','dbType','systemRetain','datasetName','keys','Expectation\x20mismatch\x20at\x20','name','Expected\x20','displayName','has','dbtableConfig','dbTypeScale','1542rPLSpJ','--patch-json','No\x20changes\x20for\x20dataset\x20field\x20','required','--field\x20is\x20required','validation','12utwuca','string','POST','join','404409WnXpLC','chartRole','\x20must\x20be\x20a\x20JSON\x20object','9084920UuGEzX','26845UbHqBs','fields','description','--code\x20is\x20required','parse','1562IJdTlV','1sYGtjp','datetimeFormat','properties','3358814NYRpKb','tableName','JSON\x20object\x20of\x20expected\x20current\x20field\x20values;\x20mismatch\x20aborts\x20without\x20writing','Unsupported\x20patch\x20key:\x20','11986722ESKklj','field','dataset','findIndex','--patch-json\x20must\x20contain\x20at\x20least\x20one\x20key','doType','\x20must\x20be\x20valid\x20JSON\x20object:\x20','isArray','Exact\x20raw\x20fields[].name\x20to\x20patch','write','str','dbId','deprecated','deleted','3260BBpQCC','/smartapi/dataset/update-driven-data','length','datasetCode','options','Updated\x20dataset\x20field\x20','patch','message','stringify','dbName',',\x20actual\x20','Allowed\x20keys:\x20','modelId','expect','add','code','--expect-json','modelCode','trim','field-update','defaultAggregation','Forbidden\x20patch\x20key:\x20','expect-json','dbTypeLen'];a64_0x4286=function(){return _0x4485bf;};return a64_0x4286();}function isPlainObject(_0x1bb8ea){return Boolean(_0x1bb8ea)&&typeof _0x1bb8ea==='object'&&!Array['isArray'](_0x1bb8ea);}function a64_0x5782(_0x166117,_0x25a673){_0x166117=_0x166117-0x1b3;const _0x428660=a64_0x4286();let _0x578242=_0x428660[_0x166117];return _0x578242;}function emptyToUndefined(_0xa37c36){const _0x31a954=a64_0x3df046,_0x418a2c=String(_0xa37c36||'')[_0x31a954(0x202)]();return _0x418a2c||undefined;}function trim(_0x46f315){return String(_0x46f315||'')['trim']();}
1
+ const a64_0x5e34c1=a64_0x10a6;(function(_0x3b6d4e,_0x5231f3){const _0x22f349=a64_0x10a6,_0x295469=_0x3b6d4e();while(!![]){try{const _0xa88f22=parseInt(_0x22f349(0x185))/0x1*(parseInt(_0x22f349(0x18d))/0x2)+parseInt(_0x22f349(0x18a))/0x3*(-parseInt(_0x22f349(0x19e))/0x4)+-parseInt(_0x22f349(0x1bc))/0x5+-parseInt(_0x22f349(0x196))/0x6+parseInt(_0x22f349(0x182))/0x7+parseInt(_0x22f349(0x19b))/0x8+parseInt(_0x22f349(0x183))/0x9*(parseInt(_0x22f349(0x1b6))/0xa);if(_0xa88f22===_0x5231f3)break;else _0x295469['push'](_0x295469['shift']());}catch(_0x579d7d){_0x295469['push'](_0x295469['shift']());}}}(a64_0x5a0f,0xef6fb));import{getDatasetDetail,updateDrivenData}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,CODE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';const MUTABLE_FIELD_KEYS=new Set([a64_0x5e34c1(0x19a),'displayName',a64_0x5e34c1(0x1ae),a64_0x5e34c1(0x1a9),a64_0x5e34c1(0x1a6),a64_0x5e34c1(0x1b3),a64_0x5e34c1(0x1b0),a64_0x5e34c1(0x178),a64_0x5e34c1(0x1aa)]),FORBIDDEN_FIELD_KEYS=new Set(['id',a64_0x5e34c1(0x1a2),a64_0x5e34c1(0x1b8),a64_0x5e34c1(0x174),a64_0x5e34c1(0x1ac),a64_0x5e34c1(0x1c1),a64_0x5e34c1(0x1c0),a64_0x5e34c1(0x192),a64_0x5e34c1(0x19c),'pkField',a64_0x5e34c1(0x1a8),a64_0x5e34c1(0x18f)]);export function parseJsonObjectFlag(_0x482409,_0x5641c2){const _0x57b652=a64_0x5e34c1;if(!_0x482409)return undefined;let _0x3a1dd7;try{_0x3a1dd7=JSON[_0x57b652(0x179)](_0x482409);}catch(_0x52adc4){const _0x54da1=_0x52adc4 instanceof Error?_0x52adc4[_0x57b652(0x187)]:String(_0x52adc4);throw CliErrors[_0x57b652(0x194)](_0x5641c2+_0x57b652(0x1b4)+_0x54da1);}if(!isPlainObject(_0x3a1dd7)||Array[_0x57b652(0x197)](_0x3a1dd7))throw CliErrors[_0x57b652(0x194)](_0x5641c2+_0x57b652(0x1a3));return _0x3a1dd7;}export function validatePatchKeys(_0x44cd10){const _0x3fe1a9=a64_0x5e34c1,_0x22b10c=Object[_0x3fe1a9(0x1ad)](_0x44cd10);if(_0x22b10c[_0x3fe1a9(0x19d)]===0x0)throw CliErrors['validation']('--patch-json\x20must\x20contain\x20at\x20least\x20one\x20key');for(const _0x37f666 of _0x22b10c){if(FORBIDDEN_FIELD_KEYS['has'](_0x37f666))throw CliErrors[_0x3fe1a9(0x194)](_0x3fe1a9(0x1a0)+_0x37f666);if(!MUTABLE_FIELD_KEYS[_0x3fe1a9(0x177)](_0x37f666))throw CliErrors[_0x3fe1a9(0x194)](_0x3fe1a9(0x17f)+_0x37f666,_0x3fe1a9(0x191)+Array[_0x3fe1a9(0x17d)](MUTABLE_FIELD_KEYS)[_0x3fe1a9(0x1bd)](',\x20'));}}export function applyFieldPatch(_0x51f9cc,_0x71dd6f){const _0x16250e=a64_0x5e34c1;validatePatchKeys(_0x71dd6f);const _0x51be08=deepClone(_0x51f9cc),_0x25bde1=new Set();for(const [_0x35ca57,_0x5b03d4]of Object['entries'](_0x71dd6f)){const _0x3bfa02=_0x51be08[_0x35ca57],_0x53903e=mergePatchValue(_0x3bfa02,_0x5b03d4);!deepEqual(_0x3bfa02,_0x53903e)&&(_0x51be08[_0x35ca57]=_0x53903e,_0x25bde1[_0x16250e(0x184)](_0x35ca57),collectChangedPaths(_0x35ca57,_0x3bfa02,_0x53903e,_0x25bde1));}return{'after':_0x51be08,'changedPaths':Array[_0x16250e(0x17d)](_0x25bde1)[_0x16250e(0x1c2)](),'changed':_0x25bde1[_0x16250e(0x17c)]>0x0};}export function assertExpectation(_0x5232b0,_0x5e12c0){const _0x37bd02=a64_0x5e34c1;if(!_0x5e12c0)return;for(const [_0x1224e1,_0x11ab4a]of Object[_0x37bd02(0x1bb)](_0x5e12c0)){const _0x19bf02=_0x5232b0[_0x1224e1];if(!deepEqual(_0x19bf02,_0x11ab4a))throw CliErrors[_0x37bd02(0x194)](_0x37bd02(0x199)+_0x1224e1,'Expected\x20'+JSON[_0x37bd02(0x190)](_0x11ab4a)+',\x20actual\x20'+JSON[_0x37bd02(0x190)](_0x19bf02));}}export async function buildDatasetFieldUpdateResult({appCode:_0x4e9ee4,input:_0x2bebcf,dryRun:_0xac05bd}){const _0x34811b=a64_0x5e34c1;validateInput(_0x2bebcf);const _0x28dba8=await getDatasetDetail(_0x2bebcf[_0x34811b(0x1b8)]),_0x26a131=readFieldArray(_0x28dba8),_0x4b1b40=_0x26a131['findIndex'](_0x5125d3=>_0x5125d3?.[_0x34811b(0x1a2)]===_0x2bebcf['field']);if(_0x4b1b40<0x0)throw CliErrors[_0x34811b(0x194)](_0x34811b(0x180)+_0x2bebcf[_0x34811b(0x188)]);const _0x4f3700=deepClone(_0x26a131[_0x4b1b40]);assertExpectation(_0x4f3700,_0x2bebcf[_0x34811b(0x17b)]);const {after:_0x51a919,changedPaths:_0x3e8fe9,changed:_0x136272}=applyFieldPatch(_0x4f3700,_0x2bebcf[_0x34811b(0x198)]),_0x5ed2de=summarizeDataset(_0x28dba8,_0x2bebcf[_0x34811b(0x1b8)]);return _0x136272&&!_0xac05bd&&(_0x26a131[_0x4b1b40]=_0x51a919,await updateDrivenData(_0x28dba8)),{'ok':!![],'data':{'appCode':_0x4e9ee4,'selector':{'code':_0x2bebcf[_0x34811b(0x1b8)]},'dataset':_0x5ed2de,'field':{'id':_0x4f3700['id']??null,'name':_0x4f3700[_0x34811b(0x1a2)]},'dryRun':_0xac05bd,'changed':_0x136272,'changedPaths':_0x3e8fe9,'before':_0x4f3700,'after':_0x51a919,'submitted':_0x136272&&!_0xac05bd},'message':_0x136272?_0xac05bd?_0x34811b(0x1bf)+_0x2bebcf[_0x34811b(0x188)]+_0x34811b(0x17e)+_0x3e8fe9[_0x34811b(0x1bd)](',\x20')+')':_0x34811b(0x1a7)+_0x2bebcf[_0x34811b(0x188)]+'\x20('+_0x3e8fe9['join'](',\x20')+')':'No\x20changes\x20for\x20dataset\x20field\x20'+_0x2bebcf[_0x34811b(0x188)]};}export const datasetFieldUpdate={'service':a64_0x5e34c1(0x17a),'command':a64_0x5e34c1(0x189),'description':a64_0x5e34c1(0x1ab),'risk':'write','flags':[CODE_FLAG,{'name':a64_0x5e34c1(0x188),'type':a64_0x5e34c1(0x193),'required':!![],'description':a64_0x5e34c1(0x1a5)},{'name':'patch-json','type':a64_0x5e34c1(0x193),'required':!![],'description':'JSON\x20object\x20patch;\x20allowed\x20keys:\x20doType/displayName/description/options/required/datetimeFormat/defaultAggregation/chartRole/deprecated'},{'name':a64_0x5e34c1(0x175),'type':a64_0x5e34c1(0x193),'required':![],'description':a64_0x5e34c1(0x19f)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x30c3e1){validateInput(readFieldUpdateInput(_0x30c3e1));},async 'dryRun'(_0x14057a){const _0x1faa1c=a64_0x5e34c1,_0x3e8ca4=await buildDatasetFieldUpdateResult({'appCode':_0x14057a[_0x1faa1c(0x1ba)],'input':readFieldUpdateInput(_0x14057a),'dryRun':!![]});return{'method':_0x1faa1c(0x1be),'url':'/smartapi/dataset/update-driven-data','body':_0x3e8ca4[_0x1faa1c(0x1a4)],'description':_0x3e8ca4[_0x1faa1c(0x187)]};},async 'execute'(_0x4d75da){const _0x5cb4b8=a64_0x5e34c1;return buildDatasetFieldUpdateResult({'appCode':_0x4d75da[_0x5cb4b8(0x1ba)],'input':readFieldUpdateInput(_0x4d75da),'dryRun':![]});}};function readFieldUpdateInput(_0x33f7f0){const _0x3e0942=a64_0x5e34c1,_0x1cf67a=trim(_0x33f7f0[_0x3e0942(0x18b)](_0x3e0942(0x1b8))),_0x4752b1=emptyToUndefined(_0x33f7f0[_0x3e0942(0x18b)](_0x3e0942(0x188))),_0xf0d356=parseJsonObjectFlag(_0x33f7f0['str'](_0x3e0942(0x18c)),'--patch-json'),_0x232f29=parseJsonObjectFlag(_0x33f7f0[_0x3e0942(0x18b)](_0x3e0942(0x175)),'--expect-json');return{'code':_0x1cf67a,'field':_0x4752b1||'','patch':_0xf0d356||{},'expect':_0x232f29};}function validateInput(_0x2ddd24){const _0x49b802=a64_0x5e34c1;if(!_0x2ddd24['code'])throw CliErrors[_0x49b802(0x194)]('--code\x20is\x20required');if(!_0x2ddd24[_0x49b802(0x188)])throw CliErrors[_0x49b802(0x194)]('--field\x20is\x20required');validatePatchKeys(_0x2ddd24['patch']);}function readFieldArray(_0xca853e){const _0x10ecf3=a64_0x5e34c1;if(Array['isArray'](_0xca853e[_0x10ecf3(0x18e)]))return _0xca853e['fields'];if(Array[_0x10ecf3(0x197)](_0xca853e['properties']))return _0xca853e[_0x10ecf3(0x195)];throw CliErrors[_0x10ecf3(0x194)](_0x10ecf3(0x181));}function summarizeDataset(_0x5cf84e,_0x54f32d){const _0x15e891=a64_0x5e34c1,_0x5e9e14=isPlainObject(_0x5cf84e[_0x15e891(0x17a)])?_0x5cf84e[_0x15e891(0x17a)]:{},_0x2e5c72=isPlainObject(_0x5cf84e[_0x15e891(0x1a1)])?_0x5cf84e[_0x15e891(0x1a1)]:{};return{'id':_0x5cf84e['modelId']??_0x5cf84e['id']??_0x5e9e14[_0x15e891(0x1b1)]??null,'code':_0x5cf84e[_0x15e891(0x1b9)]??_0x5cf84e[_0x15e891(0x1b8)]??_0x5e9e14[_0x15e891(0x186)]??_0x54f32d,'name':_0x5cf84e[_0x15e891(0x1a2)]??_0x5e9e14[_0x15e891(0x1b7)]??null,'table':_0x2e5c72[_0x15e891(0x192)]??_0x5e9e14[_0x15e891(0x192)]??null,'db':_0x2e5c72[_0x15e891(0x1b2)]??_0x2e5c72[_0x15e891(0x1b5)]??null};}function mergePatchValue(_0x251522,_0x2b8cff){if(isPlainObject(_0x251522)&&isPlainObject(_0x2b8cff))return deepMerge(_0x251522,_0x2b8cff);return deepClone(_0x2b8cff);}function deepMerge(_0x55ce61,_0x51b81b){const _0x11eb47=deepClone(_0x55ce61);for(const [_0x3a0ee6,_0x55f037]of Object['entries'](_0x51b81b)){_0x11eb47[_0x3a0ee6]=isPlainObject(_0x11eb47[_0x3a0ee6])&&isPlainObject(_0x55f037)?deepMerge(_0x11eb47[_0x3a0ee6],_0x55f037):deepClone(_0x55f037);}return _0x11eb47;}function a64_0x5a0f(){const _0x3c7b74=['\x20must\x20be\x20valid\x20JSON\x20object:\x20','dbId','11976610HQOcZC','datasetName','code','modelCode','appCode','entries','3693065ZMrdXV','join','POST','Dry-run:\x20dataset\x20field\x20','dbFieldName','dbTypeScale','sort','dbType','expect-json','trim','has','chartRole','parse','dataset','expect','size','from','\x20would\x20change\x20(','Unsupported\x20patch\x20key:\x20','Field\x20not\x20found:\x20','Driven\x20data\x20does\x20not\x20contain\x20fields[]\x20or\x20properties[]','8464337LeZhYH','9kRsVlh','add','3KUaQJb','datasetCode','message','field','field-update','6wnsgdV','str','patch-json','388860SPfdhQ','fields','systemRetain','stringify','Allowed\x20keys:\x20','tableName','string','validation','properties','6625698vsyDMz','isArray','patch','Expectation\x20mismatch\x20at\x20','doType','11915048bOtIcR','deleted','length','3311792FhSENV','JSON\x20object\x20of\x20expected\x20current\x20field\x20values;\x20mismatch\x20aborts\x20without\x20writing','Forbidden\x20patch\x20key:\x20','dbtableConfig','name','\x20must\x20be\x20a\x20JSON\x20object','data','Exact\x20raw\x20fields[].name\x20to\x20patch','required','Updated\x20dataset\x20field\x20','autoIncrement','options','deprecated','Patch\x20one\x20raw\x20dataset\x20fields[]\x20field\x20object\x20safely','dbTypeLen','keys','description','object','defaultAggregation','datasetId','dbName','datetimeFormat'];a64_0x5a0f=function(){return _0x3c7b74;};return a64_0x5a0f();}function collectChangedPaths(_0x44421e,_0x57dd72,_0x105527,_0x558757){const _0x246723=a64_0x5e34c1;if(!isPlainObject(_0x57dd72)||!isPlainObject(_0x105527))return;const _0x297580=new Set([...Object[_0x246723(0x1ad)](_0x57dd72),...Object[_0x246723(0x1ad)](_0x105527)]);for(const _0x2525bd of _0x297580){const _0x3cbff4=_0x57dd72[_0x2525bd],_0x35cd86=_0x105527[_0x2525bd];!deepEqual(_0x3cbff4,_0x35cd86)&&_0x558757[_0x246723(0x184)](_0x44421e+'.'+_0x2525bd);}}function deepClone(_0x1bf490){const _0x7ad5e3=a64_0x5e34c1;if(_0x1bf490===undefined)return _0x1bf490;return JSON[_0x7ad5e3(0x179)](JSON[_0x7ad5e3(0x190)](_0x1bf490));}function a64_0x10a6(_0x20c35e,_0x5040f5){_0x20c35e=_0x20c35e-0x174;const _0x5a0f8e=a64_0x5a0f();let _0x10a6ea=_0x5a0f8e[_0x20c35e];return _0x10a6ea;}function deepEqual(_0x40bdf7,_0x16465f){const _0x31c240=a64_0x5e34c1;return JSON[_0x31c240(0x190)](_0x40bdf7)===JSON[_0x31c240(0x190)](_0x16465f);}function isPlainObject(_0xd639ad){const _0x37f1a6=a64_0x5e34c1;return Boolean(_0xd639ad)&&typeof _0xd639ad===_0x37f1a6(0x1af)&&!Array[_0x37f1a6(0x197)](_0xd639ad);}function emptyToUndefined(_0x26d86e){const _0x2ada0b=String(_0x26d86e||'')['trim']();return _0x2ada0b||undefined;}function trim(_0xb59543){const _0x3500df=a64_0x5e34c1;return String(_0xb59543||'')[_0x3500df(0x176)]();}