@lovrabet/rabetbase-cli 2.3.13-beta.1 → 2.3.13-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (263) hide show
  1. package/README.md +1 -1
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/login-success-html.js +1 -1
  12. package/lib/auth/logout.js +1 -1
  13. package/lib/cli-flags.js +1 -1
  14. package/lib/cli.js +1 -1
  15. package/lib/commands/api/generate.js +1 -1
  16. package/lib/commands/api/index.js +1 -1
  17. package/lib/commands/api/list.js +1 -1
  18. package/lib/commands/api/pull.js +1 -1
  19. package/lib/commands/api/shared.js +1 -1
  20. package/lib/commands/app/add.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remote-directory.js +1 -1
  24. package/lib/commands/app/remove.js +1 -1
  25. package/lib/commands/app/shared.js +1 -1
  26. package/lib/commands/app-config/delete.js +1 -1
  27. package/lib/commands/app-config/get.js +1 -1
  28. package/lib/commands/app-config/index.js +1 -1
  29. package/lib/commands/app-config/list.js +1 -1
  30. package/lib/commands/app-config/set.js +1 -1
  31. package/lib/commands/app-config/shared.js +1 -1
  32. package/lib/commands/auth/index.js +1 -1
  33. package/lib/commands/bff/create.js +1 -1
  34. package/lib/commands/bff/delete.js +1 -1
  35. package/lib/commands/bff/detail.js +1 -1
  36. package/lib/commands/bff/index.js +1 -1
  37. package/lib/commands/bff/list.js +1 -1
  38. package/lib/commands/bff/pull.js +1 -1
  39. package/lib/commands/bff/push.js +1 -1
  40. package/lib/commands/bff/status.js +1 -1
  41. package/lib/commands/cli-skill/index.js +1 -1
  42. package/lib/commands/cli-update.js +1 -1
  43. package/lib/commands/codegen/index.js +1 -1
  44. package/lib/commands/codegen/sdk.js +1 -1
  45. package/lib/commands/codegen/sql.js +1 -1
  46. package/lib/commands/common/app-registry.js +1 -1
  47. package/lib/commands/common/app-selector.js +1 -1
  48. package/lib/commands/common/async-task.js +1 -1
  49. package/lib/commands/common/dry-run.js +1 -1
  50. package/lib/commands/common/flags.js +1 -1
  51. package/lib/commands/common/local-file.js +1 -1
  52. package/lib/commands/common/validate.js +1 -1
  53. package/lib/commands/config/get.js +1 -1
  54. package/lib/commands/config/index.js +1 -1
  55. package/lib/commands/config/list.js +1 -1
  56. package/lib/commands/config/set.js +1 -1
  57. package/lib/commands/config/shared.js +1 -1
  58. package/lib/commands/data/filter.js +1 -1
  59. package/lib/commands/data/getOne.js +1 -1
  60. package/lib/commands/data/index.js +1 -1
  61. package/lib/commands/data/shared.js +1 -1
  62. package/lib/commands/dataset/business-group-update.js +1 -1
  63. package/lib/commands/dataset/capability.js +1 -1
  64. package/lib/commands/dataset/delete.js +1 -1
  65. package/lib/commands/dataset/detail.js +1 -1
  66. package/lib/commands/dataset/extend-update.js +1 -1
  67. package/lib/commands/dataset/field-update.js +1 -1
  68. package/lib/commands/dataset/generate.js +1 -1
  69. package/lib/commands/dataset/index.js +1 -1
  70. package/lib/commands/dataset/list.js +1 -1
  71. package/lib/commands/dataset/operations.js +1 -1
  72. package/lib/commands/dataset/relation-audit.js +1 -1
  73. package/lib/commands/dataset/relation-create.js +1 -1
  74. package/lib/commands/dataset/relation-delete.js +1 -1
  75. package/lib/commands/dataset/relation-shared.js +1 -1
  76. package/lib/commands/dataset/relation-update.js +1 -1
  77. package/lib/commands/dataset/relations.js +1 -1
  78. package/lib/commands/dataset/rename.js +1 -1
  79. package/lib/commands/dataset/restore.js +1 -1
  80. package/lib/commands/db/analysis-batching.js +1 -1
  81. package/lib/commands/db/analyze-batch-plan.js +1 -1
  82. package/lib/commands/db/analyze-cancel.js +1 -1
  83. package/lib/commands/db/analyze-start.js +1 -1
  84. package/lib/commands/db/analyze-status.js +1 -1
  85. package/lib/commands/db/create.js +1 -1
  86. package/lib/commands/db/delete.js +1 -1
  87. package/lib/commands/db/detail.js +1 -1
  88. package/lib/commands/db/diff.js +1 -1
  89. package/lib/commands/db/index.js +1 -1
  90. package/lib/commands/db/list.js +1 -1
  91. package/lib/commands/db/shared.js +1 -1
  92. package/lib/commands/db/tables.js +1 -1
  93. package/lib/commands/db/test.js +1 -1
  94. package/lib/commands/db/update.js +1 -1
  95. package/lib/commands/doctor.js +1 -1
  96. package/lib/commands/file/index.js +1 -1
  97. package/lib/commands/init/index.js +1 -1
  98. package/lib/commands/issue/index.js +1 -1
  99. package/lib/commands/issue/nudge.js +1 -1
  100. package/lib/commands/issue/report.js +1 -1
  101. package/lib/commands/issue/shared.js +1 -1
  102. package/lib/commands/logs/index.js +1 -1
  103. package/lib/commands/menu/asset-update.js +1 -0
  104. package/lib/commands/menu/delete.js +1 -1
  105. package/lib/commands/menu/external-link-create.js +1 -1
  106. package/lib/commands/menu/external-link-update.js +1 -0
  107. package/lib/commands/menu/group-create.js +1 -1
  108. package/lib/commands/menu/group-update.js +1 -1
  109. package/lib/commands/menu/index.js +1 -1
  110. package/lib/commands/menu/list.js +1 -1
  111. package/lib/commands/menu/move.js +1 -1
  112. package/lib/commands/menu/regroup-start.js +1 -1
  113. package/lib/commands/menu/shared/compare-table.js +1 -1
  114. package/lib/commands/menu/shared/delete-plan.js +1 -1
  115. package/lib/commands/menu/shared/facts.js +1 -1
  116. package/lib/commands/menu/shared/index.js +1 -1
  117. package/lib/commands/menu/shared/inquirer.js +1 -1
  118. package/lib/commands/menu/shared/local-pages.js +1 -1
  119. package/lib/commands/menu/shared/logic.js +1 -1
  120. package/lib/commands/menu/shared/mutations.js +1 -1
  121. package/lib/commands/menu/shared/service.js +1 -1
  122. package/lib/commands/menu/shared/sync-core.js +1 -1
  123. package/lib/commands/menu/shared/update-core.js +1 -1
  124. package/lib/commands/menu/shared/valid-url.js +1 -1
  125. package/lib/commands/menu/sync.js +1 -1
  126. package/lib/commands/notification/config-list.js +1 -1
  127. package/lib/commands/notification/index.js +1 -1
  128. package/lib/commands/page/generate-start.js +1 -1
  129. package/lib/commands/page/generate-status.js +1 -1
  130. package/lib/commands/page/index.js +1 -1
  131. package/lib/commands/page/pull.js +1 -1
  132. package/lib/commands/page/push.js +1 -1
  133. package/lib/commands/page/relation-audit.js +1 -1
  134. package/lib/commands/page/shared.js +1 -1
  135. package/lib/commands/page/standard-page-status.js +1 -1
  136. package/lib/commands/page/sync.js +1 -1
  137. package/lib/commands/permit/index.js +1 -1
  138. package/lib/commands/permit/page-get.js +1 -1
  139. package/lib/commands/permit/page-set.js +1 -1
  140. package/lib/commands/permit/role-apis-set.js +1 -1
  141. package/lib/commands/permit/role-menus-set.js +1 -1
  142. package/lib/commands/permit/role-menus.js +1 -1
  143. package/lib/commands/permit/shared.js +1 -1
  144. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  145. package/lib/commands/project/create/format-elapsed.js +1 -1
  146. package/lib/commands/project/create/main.js +1 -1
  147. package/lib/commands/project/create/non-interactive.js +1 -1
  148. package/lib/commands/project/create/project-template-path.js +1 -1
  149. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  150. package/lib/commands/project/create/use-format-code.js +1 -1
  151. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  152. package/lib/commands/project/index.js +1 -1
  153. package/lib/commands/project/init.js +1 -1
  154. package/lib/commands/project/upgrade.js +1 -1
  155. package/lib/commands/registry.js +1 -1
  156. package/lib/commands/role/create.js +1 -1
  157. package/lib/commands/role/delete.js +1 -1
  158. package/lib/commands/role/detail.js +1 -1
  159. package/lib/commands/role/index.js +1 -1
  160. package/lib/commands/role/list.js +1 -1
  161. package/lib/commands/role/shared.js +1 -1
  162. package/lib/commands/role/update.js +1 -1
  163. package/lib/commands/role/user-add.js +1 -1
  164. package/lib/commands/role/user-remove.js +1 -1
  165. package/lib/commands/role/user-resolve.js +1 -1
  166. package/lib/commands/run/index.js +1 -1
  167. package/lib/commands/schema.js +1 -1
  168. package/lib/commands/sql/create.js +1 -1
  169. package/lib/commands/sql/delete.js +1 -1
  170. package/lib/commands/sql/detail.js +1 -1
  171. package/lib/commands/sql/exec.js +1 -1
  172. package/lib/commands/sql/index.js +1 -1
  173. package/lib/commands/sql/list.js +1 -1
  174. package/lib/commands/sql/pull.js +1 -1
  175. package/lib/commands/sql/push.js +1 -1
  176. package/lib/commands/sql/save.js +1 -1
  177. package/lib/commands/sql/shared.js +1 -1
  178. package/lib/commands/sql/status.js +1 -1
  179. package/lib/commands/sql/validate.js +1 -1
  180. package/lib/commands/task/index.js +1 -1
  181. package/lib/commands/task/status.js +1 -1
  182. package/lib/commands/workspace/add.js +1 -1
  183. package/lib/commands/workspace/index.js +1 -1
  184. package/lib/commands/workspace/remove.js +1 -1
  185. package/lib/config/schema.js +1 -1
  186. package/lib/constant/cdn.js +1 -1
  187. package/lib/constant/cli.js +1 -1
  188. package/lib/constant/defaults.js +1 -1
  189. package/lib/constant/domain.js +1 -1
  190. package/lib/constant/env.js +1 -1
  191. package/lib/constant/output.js +1 -1
  192. package/lib/constant/paths.js +1 -1
  193. package/lib/constant/risk.js +1 -1
  194. package/lib/context/app-resolver.js +1 -1
  195. package/lib/context/auth-resolver.js +1 -1
  196. package/lib/context/config-loader.js +1 -1
  197. package/lib/context.js +1 -1
  198. package/lib/core/alias-resolver.js +1 -1
  199. package/lib/core/api-client.js +1 -1
  200. package/lib/core/bff/config.js +1 -1
  201. package/lib/core/bff/file-system.js +1 -1
  202. package/lib/core/bff/hash.js +1 -1
  203. package/lib/core/bff/lock.js +1 -1
  204. package/lib/core/bff/utils.js +1 -1
  205. package/lib/core/db-resolver.js +1 -1
  206. package/lib/core/page/file-system.js +1 -1
  207. package/lib/core/page/hash.js +1 -1
  208. package/lib/core/page/lock.js +1 -1
  209. package/lib/core/sql-index-auditor.js +1 -1
  210. package/lib/core/sql-sync/config.js +1 -1
  211. package/lib/core/sql-sync/file-system.js +1 -1
  212. package/lib/core/sql-sync/hash.js +1 -1
  213. package/lib/core/sql-sync/lock.js +1 -1
  214. package/lib/core/sql-sync/utils.js +1 -1
  215. package/lib/core/sql-validator.js +1 -1
  216. package/lib/errors.js +1 -1
  217. package/lib/framework/build-all-flags.js +1 -1
  218. package/lib/framework/error-output.js +1 -1
  219. package/lib/framework/explicit-yes.js +1 -1
  220. package/lib/framework/flags.js +1 -1
  221. package/lib/framework/help.js +1 -1
  222. package/lib/framework/index.js +1 -1
  223. package/lib/framework/output.js +1 -1
  224. package/lib/framework/response.js +1 -1
  225. package/lib/framework/runner-alias.js +1 -1
  226. package/lib/framework/runner.js +1 -1
  227. package/lib/framework/schema-export.js +1 -1
  228. package/lib/framework/types.js +1 -1
  229. package/lib/generated/build-info.js +1 -1
  230. package/lib/help.js +1 -1
  231. package/lib/skills/main.js +1 -1
  232. package/lib/skills/npx-skills-add.js +1 -1
  233. package/lib/telemetry/cli-command-trace.js +1 -1
  234. package/lib/telemetry/cli-help-trace.js +1 -1
  235. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  236. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  237. package/lib/telemetry/send-cli-trace-log.js +1 -1
  238. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  239. package/lib/utils/ai_config.js +1 -1
  240. package/lib/utils/apply-jq-filter.js +1 -1
  241. package/lib/utils/cdn-config.js +1 -1
  242. package/lib/utils/check-sdk-version.js +1 -1
  243. package/lib/utils/cli-version-check.js +1 -1
  244. package/lib/utils/cli-version-policy.js +1 -1
  245. package/lib/utils/config.js +1 -1
  246. package/lib/utils/copy-directory.js +1 -1
  247. package/lib/utils/entity-with-id.js +1 -1
  248. package/lib/utils/file-utils.js +1 -1
  249. package/lib/utils/guides-cdn.js +1 -1
  250. package/lib/utils/http-client.js +1 -1
  251. package/lib/utils/is-non-interactive.js +1 -1
  252. package/lib/utils/logger.js +1 -1
  253. package/lib/utils/params.js +1 -1
  254. package/lib/utils/platform.js +1 -1
  255. package/lib/utils/rules-cdn.js +1 -1
  256. package/lib/utils/sleep.js +1 -1
  257. package/lib/utils/template-replacer.js +1 -1
  258. package/lib/utils/update-notice.js +1 -1
  259. package/lib/utils/version.js +1 -1
  260. package/lib/utils/with-active-cookie.js +1 -1
  261. package/lib/utils/write-cli-side-channel.js +1 -1
  262. package/package.json +1 -1
  263. package/lib/commands/menu/update.js +0 -1
@@ -1 +1 @@
1
- function a53_0x4ecf(_0x4eea08,_0x12fd81){_0x4eea08=_0x4eea08-0x1c8;const _0x30d755=a53_0x30d7();let _0x4ecfe4=_0x30d755[_0x4eea08];return _0x4ecfe4;}function a53_0x30d7(){const _0x498fc6=['Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','config','1231550bJCdLk','10IrCIrv','121COwJgi','24HFRznF','read','bool','5782443mLsDRU','1819824AiJyIT','26JDkoLk','25PjFXay','358399nylBdj','6GBnvLH','320373OaAjYO','914473wPXuAS','global','boolean','1326956IAtRib'];a53_0x30d7=function(){return _0x498fc6;};return a53_0x30d7();}const a53_0x18f239=a53_0x4ecf;(function(_0xb50e7,_0x44bd6a){const _0x43107e=a53_0x4ecf,_0x51f566=_0xb50e7();while(!![]){try{const _0x1fe5ec=parseInt(_0x43107e(0x1cc))/0x1*(parseInt(_0x43107e(0x1d6))/0x2)+parseInt(_0x43107e(0x1c8))/0x3+parseInt(_0x43107e(0x1d2))/0x4*(-parseInt(_0x43107e(0x1cb))/0x5)+parseInt(_0x43107e(0x1cd))/0x6*(-parseInt(_0x43107e(0x1cf))/0x7)+-parseInt(_0x43107e(0x1d8))/0x8*(-parseInt(_0x43107e(0x1ce))/0x9)+-parseInt(_0x43107e(0x1d5))/0xa*(parseInt(_0x43107e(0x1d7))/0xb)+-parseInt(_0x43107e(0x1c9))/0xc*(-parseInt(_0x43107e(0x1ca))/0xd);if(_0x1fe5ec===_0x44bd6a)break;else _0x51f566['push'](_0x51f566['shift']());}catch(_0x2774f9){_0x51f566['push'](_0x51f566['shift']());}}}(a53_0x30d7,0xf09bc));import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0x3d9e0f){const _0x63c312=a53_0x4ecf,_0x1d77a4=_0x3d9e0f[_0x63c312(0x1da)](_0x63c312(0x1d0))?readScopedConfig('global'):readConfig();return{'ok':!![],'data':_0x1d77a4};}export const configListDefinition={'service':a53_0x18f239(0x1d4),'command':'list','description':'List\x20all\x20config\x20values','risk':a53_0x18f239(0x1d9),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a53_0x18f239(0x1d0),'type':a53_0x18f239(0x1d1),'description':a53_0x18f239(0x1d3),'default':![]}],'execute':execute};
1
+ const a53_0x12e59b=a53_0x4215;(function(_0x2fac69,_0x31cf46){const _0x2be499=a53_0x4215,_0x4ac171=_0x2fac69();while(!![]){try{const _0x17acb7=-parseInt(_0x2be499(0xdf))/0x1*(-parseInt(_0x2be499(0xd1))/0x2)+parseInt(_0x2be499(0xd2))/0x3+-parseInt(_0x2be499(0xd8))/0x4+-parseInt(_0x2be499(0xdb))/0x5+-parseInt(_0x2be499(0xd9))/0x6*(parseInt(_0x2be499(0xd7))/0x7)+parseInt(_0x2be499(0xda))/0x8+-parseInt(_0x2be499(0xde))/0x9;if(_0x17acb7===_0x31cf46)break;else _0x4ac171['push'](_0x4ac171['shift']());}catch(_0x442458){_0x4ac171['push'](_0x4ac171['shift']());}}}(a53_0x37e3,0x7a8e5));function a53_0x37e3(){const _0x556f11=['Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','14PukxPk','1110708hMTXTU','1408404dLTQdT','501392gjRRfL','699645MCrwhB','read','boolean','4524003xTaiGw','184edMbOb','bool','9558tKmqmH','2849160GhVWRV','List\x20all\x20config\x20values','list','global'];a53_0x37e3=function(){return _0x556f11;};return a53_0x37e3();}import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0x11587a){const _0x339557=a53_0x4215,_0x46d1ac=_0x11587a[_0x339557(0xe0)](_0x339557(0xd5))?readScopedConfig(_0x339557(0xd5)):readConfig();return{'ok':!![],'data':_0x46d1ac};}function a53_0x4215(_0x3be29b,_0x4b039f){_0x3be29b=_0x3be29b-0xd1;const _0x37e3c7=a53_0x37e3();let _0x4215a9=_0x37e3c7[_0x3be29b];return _0x4215a9;}export const configListDefinition={'service':'config','command':a53_0x12e59b(0xd4),'description':a53_0x12e59b(0xd3),'risk':a53_0x12e59b(0xdc),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a53_0x12e59b(0xd5),'type':a53_0x12e59b(0xdd),'description':a53_0x12e59b(0xd6),'default':![]}],'execute':execute};
@@ -1 +1 @@
1
- const a54_0x57b21c=a54_0x5aa8;(function(_0xb53e,_0x118976){const _0x33930e=a54_0x5aa8,_0x5a28c5=_0xb53e();while(!![]){try{const _0x1d01d3=-parseInt(_0x33930e(0xbc))/0x1*(parseInt(_0x33930e(0xb1))/0x2)+parseInt(_0x33930e(0xa6))/0x3+parseInt(_0x33930e(0x9e))/0x4*(parseInt(_0x33930e(0xaa))/0x5)+parseInt(_0x33930e(0x8f))/0x6+parseInt(_0x33930e(0x89))/0x7+parseInt(_0x33930e(0xb5))/0x8+-parseInt(_0x33930e(0x93))/0x9;if(_0x1d01d3===_0x118976)break;else _0x5a28c5['push'](_0x5a28c5['shift']());}catch(_0x46cb6b){_0x5a28c5['push'](_0x5a28c5['shift']());}}}(a54_0x4b1f,0x3389f));function a54_0x4b1f(){const _0x325aa3=['validation','Usage:\x20','352720HxJYLY','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','join','object','\x20(stored\x20as\x20apps\x20+\x20defaultApp)','`,\x20`','Invalid\x20value\x20for\x20\x22','Set\x20a\x20config\x20value','749883yBNUax','Use\x20`','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','write','5nqrFsK','str','includes','Global','\x20workspace\x20use\x20--app\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','value','locale','12140znkzSW','Missing\x20key.','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','bool','1728616HvMgwm','Project','key','\x20set\x20to:\x20','global','app','config','9KqNJUW','Missing\x20value.','appcode','env','1497888gYuqvp','set','\x22\x20is\x20not\x20settable.','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','Config\x20value','apps','1598082pmrUxa','\x20appcode\x20set\x20to:\x20','riskLevel','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','6919344brEaAm','\x20app\x20add\x20<name>\x20--appcode\x20','string','Top-level\x20key\x20\x22','Invalid\x20locale\x20value.','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','length','keys'];a54_0x4b1f=function(){return _0x325aa3;};return a54_0x4b1f();}import{CliErrors}from'../../errors.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function a54_0x5aa8(_0x5d4b88,_0x953cc9){_0x5d4b88=_0x5d4b88-0x87;const _0x4b1f1b=a54_0x4b1f();let _0x5aa8ac=_0x4b1f1b[_0x5d4b88];return _0x5aa8ac;}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(_0x57e636){const _0xec0f8c=a54_0x5aa8,_0x23a70c=_0x57e636['str'](_0xec0f8c(0xb7)),_0x2a9850=_0x57e636[_0xec0f8c(0xab)](_0xec0f8c(0xaf));if(!_0x23a70c)throw CliErrors[_0xec0f8c(0x9c)](_0xec0f8c(0xb2),_0xec0f8c(0x9d)+CLI_BIN_NAME+_0xec0f8c(0x98));if(_0x2a9850===undefined||_0x2a9850==='')throw CliErrors[_0xec0f8c(0x9c)](_0xec0f8c(0xbd),'Usage:\x20'+CLI_BIN_NAME+_0xec0f8c(0x98));if(_0x2a9850[_0xec0f8c(0x9a)]>0x1f4)throw CliErrors[_0xec0f8c(0x9c)](_0xec0f8c(0x99));if(!isTopLevelConfigKey(_0x23a70c))throw CliErrors[_0xec0f8c(0x9c)](_0xec0f8c(0x96)+_0x23a70c+_0xec0f8c(0x8b),'Settable\x20top-level\x20keys:\x20'+getTopLevelConfigKeySummary());if(_0x23a70c===_0xec0f8c(0x91))throw CliErrors[_0xec0f8c(0x9c)]('\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.');if(CONFIG_ENUM_VALUES[_0x23a70c]&&!CONFIG_ENUM_VALUES[_0x23a70c][_0xec0f8c(0xac)](_0x2a9850))throw CliErrors[_0xec0f8c(0x9c)](_0xec0f8c(0xa4)+_0x23a70c+'\x22.\x20Allowed:\x20'+CONFIG_ENUM_VALUES[_0x23a70c][_0xec0f8c(0xa0)](',\x20'));if(_0x23a70c===_0xec0f8c(0xb0)&&!normalizeLocale(_0x2a9850))throw CliErrors[_0xec0f8c(0x9c)](_0xec0f8c(0x97),_0xec0f8c(0xa8));const _0x27b096={'global':_0x57e636[_0xec0f8c(0xb4)](_0xec0f8c(0xb9))},_0x113fac=resolveWriteScope(_0x27b096),_0x28a017=readScopedConfig(_0x113fac);let _0x37c55d=_0x23a70c,_0x249fea=_0x2a9850;_0x23a70c===_0xec0f8c(0xba)&&(_0x37c55d=_0xec0f8c(0x87),delete _0x28a017['app']);_0x23a70c===_0xec0f8c(0xb0)&&(_0x249fea=normalizeLocale(_0x2a9850));if(_0x23a70c==='env'){_0x249fea=normalizeEnv(_0x2a9850);if(!isProduction(_0x249fea)&&!isDaily(_0x249fea))throw CliErrors[_0xec0f8c(0x9c)](_0xec0f8c(0x92),_0xec0f8c(0xb3));}if(_0x23a70c===_0xec0f8c(0x87)){const _0xc17adf=_0x28a017['apps']&&typeof _0x28a017['apps']===_0xec0f8c(0xa1)?Object[_0xec0f8c(0x9b)](_0x28a017[_0xec0f8c(0x8e)]):[];if(_0xc17adf[_0xec0f8c(0x9a)]>0x0)throw CliErrors['validation'](_0xec0f8c(0x9f),_0xec0f8c(0xa7)+CLI_BIN_NAME+_0xec0f8c(0x94)+_0x249fea+_0xec0f8c(0xa3)+CLI_BIN_NAME+_0xec0f8c(0xae));const _0x3feef9=buildCanonicalProjectConfig({..._0x28a017},{'appCodes':[_0x249fea],'env':typeof _0x28a017['env']===_0xec0f8c(0x95)?_0x28a017[_0xec0f8c(0x88)]:undefined});writeScopedConfig(_0x3feef9,_0x113fac);const _0x44915c=_0x113fac==='global'?_0xec0f8c(0xad):_0xec0f8c(0xb6);return{'ok':!![],'message':'✓\x20'+_0x44915c+_0xec0f8c(0x90)+_0x249fea+_0xec0f8c(0xa2)};}_0x28a017[_0x37c55d]=_0x249fea,writeScopedConfig(_0x28a017,_0x113fac);const _0x17f739=_0x113fac===_0xec0f8c(0xb9)?'Global':_0xec0f8c(0xb6);return{'ok':!![],'message':'✓\x20'+_0x17f739+'\x20'+_0x37c55d+_0xec0f8c(0xb8)+_0x249fea};}export const configSetDefinition={'service':a54_0x57b21c(0xbb),'command':a54_0x57b21c(0x8a),'description':a54_0x57b21c(0xa5),'risk':a54_0x57b21c(0xa9),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a54_0x57b21c(0xb7),'type':a54_0x57b21c(0x95),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a54_0x57b21c(0xaf),'type':'string','description':a54_0x57b21c(0x8d),'required':!![]},{'name':a54_0x57b21c(0xb9),'type':'boolean','description':a54_0x57b21c(0x8c),'default':![]}],'execute':execute};
1
+ function a54_0x4fa9(_0x519e5c,_0x4d50c8){_0x519e5c=_0x519e5c-0x1a6;const _0x1fbe7e=a54_0x1fbe();let _0x4fa92f=_0x1fbe7e[_0x519e5c];return _0x4fa92f;}const a54_0x2ff2ee=a54_0x4fa9;(function(_0x1b03e3,_0x259636){const _0xe2d620=a54_0x4fa9,_0x34ff0a=_0x1b03e3();while(!![]){try{const _0x105f37=parseInt(_0xe2d620(0x1cc))/0x1*(-parseInt(_0xe2d620(0x1ba))/0x2)+-parseInt(_0xe2d620(0x1b8))/0x3*(-parseInt(_0xe2d620(0x1aa))/0x4)+parseInt(_0xe2d620(0x1c1))/0x5+-parseInt(_0xe2d620(0x1ca))/0x6*(-parseInt(_0xe2d620(0x1ad))/0x7)+-parseInt(_0xe2d620(0x1d2))/0x8+-parseInt(_0xe2d620(0x1a8))/0x9*(parseInt(_0xe2d620(0x1b3))/0xa)+-parseInt(_0xe2d620(0x1a7))/0xb*(-parseInt(_0xe2d620(0x1cb))/0xc);if(_0x105f37===_0x259636)break;else _0x34ff0a['push'](_0x34ff0a['shift']());}catch(_0x519541){_0x34ff0a['push'](_0x34ff0a['shift']());}}}(a54_0x1fbe,0x543aa));function a54_0x1fbe(){const _0x3dd946=['Missing\x20key.','4209tfCeDj','app','4LjPwTu','Usage:\x20','set','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','Use\x20`','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','string','1554995YVxlRm','\x20appcode\x20set\x20to:\x20','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','bool','riskLevel','locale','appcode','key','Missing\x20value.','169086fgzEif','130188yqdtas','110491PgfQqY','validation','Set\x20a\x20config\x20value','\x22.\x20Allowed:\x20','length','boolean','1741056RQxCPL','\x20workspace\x20use\x20--app\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','join','473tHjhxw','9AYOosw','Project','156YZokNd','global','Invalid\x20value\x20for\x20\x22','49QvzeAA','str','Global','env','value','keys','2458740jmNAUe','\x20app\x20add\x20<name>\x20--appcode\x20','apps','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.'];a54_0x1fbe=function(){return _0x3dd946;};return a54_0x1fbe();}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(_0x52576f){const _0x4de165=a54_0x4fa9,_0x16962c=_0x52576f['str'](_0x4de165(0x1c8)),_0x4c8d7a=_0x52576f[_0x4de165(0x1ae)](_0x4de165(0x1b1));if(!_0x16962c)throw CliErrors['validation'](_0x4de165(0x1b7),'Usage:\x20'+CLI_BIN_NAME+_0x4de165(0x1bd));if(_0x4c8d7a===undefined||_0x4c8d7a==='')throw CliErrors[_0x4de165(0x1cd)](_0x4de165(0x1c9),_0x4de165(0x1bb)+CLI_BIN_NAME+_0x4de165(0x1bd));if(_0x4c8d7a[_0x4de165(0x1d0)]>0x1f4)throw CliErrors[_0x4de165(0x1cd)]('Config\x20value\x20is\x20invalid\x20or\x20too\x20long.');if(!isTopLevelConfigKey(_0x16962c))throw CliErrors[_0x4de165(0x1cd)]('Top-level\x20key\x20\x22'+_0x16962c+'\x22\x20is\x20not\x20settable.','Settable\x20top-level\x20keys:\x20'+getTopLevelConfigKeySummary());if(_0x16962c===_0x4de165(0x1c5))throw CliErrors[_0x4de165(0x1cd)](_0x4de165(0x1bf));if(CONFIG_ENUM_VALUES[_0x16962c]&&!CONFIG_ENUM_VALUES[_0x16962c]['includes'](_0x4c8d7a))throw CliErrors[_0x4de165(0x1cd)](_0x4de165(0x1ac)+_0x16962c+_0x4de165(0x1cf)+CONFIG_ENUM_VALUES[_0x16962c][_0x4de165(0x1a6)](',\x20'));if(_0x16962c===_0x4de165(0x1c6)&&!normalizeLocale(_0x4c8d7a))throw CliErrors[_0x4de165(0x1cd)]('Invalid\x20locale\x20value.',_0x4de165(0x1c3));const _0x3d94c5={'global':_0x52576f[_0x4de165(0x1c4)](_0x4de165(0x1ab))},_0x15fb79=resolveWriteScope(_0x3d94c5),_0x2bcbd8=readScopedConfig(_0x15fb79);let _0x1a778e=_0x16962c,_0x1518e8=_0x4c8d7a;_0x16962c==='app'&&(_0x1a778e='appcode',delete _0x2bcbd8[_0x4de165(0x1b9)]);_0x16962c===_0x4de165(0x1c6)&&(_0x1518e8=normalizeLocale(_0x4c8d7a));if(_0x16962c===_0x4de165(0x1b0)){_0x1518e8=normalizeEnv(_0x4c8d7a);if(!isProduction(_0x1518e8)&&!isDaily(_0x1518e8))throw CliErrors[_0x4de165(0x1cd)](_0x4de165(0x1b6),'Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.');}if(_0x16962c===_0x4de165(0x1c7)){const _0x40979d=_0x2bcbd8[_0x4de165(0x1b5)]&&typeof _0x2bcbd8[_0x4de165(0x1b5)]==='object'?Object[_0x4de165(0x1b2)](_0x2bcbd8[_0x4de165(0x1b5)]):[];if(_0x40979d[_0x4de165(0x1d0)]>0x0)throw CliErrors['validation']('Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.',_0x4de165(0x1be)+CLI_BIN_NAME+_0x4de165(0x1b4)+_0x1518e8+'`,\x20`'+CLI_BIN_NAME+_0x4de165(0x1d3));const _0x47201e=buildCanonicalProjectConfig({..._0x2bcbd8},{'appCodes':[_0x1518e8],'env':typeof _0x2bcbd8[_0x4de165(0x1b0)]===_0x4de165(0x1c0)?_0x2bcbd8[_0x4de165(0x1b0)]:undefined});writeScopedConfig(_0x47201e,_0x15fb79);const _0x3c9e41=_0x15fb79===_0x4de165(0x1ab)?'Global':_0x4de165(0x1a9);return{'ok':!![],'message':'✓\x20'+_0x3c9e41+_0x4de165(0x1c2)+_0x1518e8+'\x20(stored\x20as\x20apps\x20+\x20defaultApp)'};}_0x2bcbd8[_0x1a778e]=_0x1518e8,writeScopedConfig(_0x2bcbd8,_0x15fb79);const _0x170281=_0x15fb79===_0x4de165(0x1ab)?_0x4de165(0x1af):'Project';return{'ok':!![],'message':'✓\x20'+_0x170281+'\x20'+_0x1a778e+'\x20set\x20to:\x20'+_0x1518e8};}export const configSetDefinition={'service':'config','command':a54_0x2ff2ee(0x1bc),'description':a54_0x2ff2ee(0x1ce),'risk':'write','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'key','type':a54_0x2ff2ee(0x1c0),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a54_0x2ff2ee(0x1b1),'type':'string','description':'Config\x20value','required':!![]},{'name':a54_0x2ff2ee(0x1ab),'type':a54_0x2ff2ee(0x1d1),'description':'Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','default':![]}],'execute':execute};
@@ -1 +1 @@
1
- (function(_0x2ee3a0,_0x2324b2){var _0x489df1=a55_0x66ea,_0x4f0a28=_0x2ee3a0();while(!![]){try{var _0x422dc0=parseInt(_0x489df1(0x7c))/0x1*(-parseInt(_0x489df1(0x86))/0x2)+-parseInt(_0x489df1(0x83))/0x3+parseInt(_0x489df1(0x7a))/0x4+-parseInt(_0x489df1(0x7d))/0x5+-parseInt(_0x489df1(0x85))/0x6*(-parseInt(_0x489df1(0x82))/0x7)+parseInt(_0x489df1(0x7e))/0x8*(-parseInt(_0x489df1(0x84))/0x9)+-parseInt(_0x489df1(0x81))/0xa*(-parseInt(_0x489df1(0x7b))/0xb);if(_0x422dc0===_0x2324b2)break;else _0x4f0a28['push'](_0x4f0a28['shift']());}catch(_0x2baa31){_0x4f0a28['push'](_0x4f0a28['shift']());}}}(a55_0x3726,0xe5008));function a55_0x66ea(_0x11cb24,_0x1deb7a){_0x11cb24=_0x11cb24-0x7a;var _0x372617=a55_0x3726();var _0x66ea9c=_0x372617[_0x11cb24];return _0x66ea9c;}import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';import{CliErrors}from'../../errors.js';import{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';export{CLI_BIN_NAME};export{normalizeLocale};export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0x8a39db){var _0x4abf54=a55_0x66ea;if(_0x8a39db[_0x4abf54(0x7f)])return _0x4abf54(0x7f);if(!isInProject())throw CliErrors['validation'](_0x4abf54(0x89),_0x4abf54(0x80)+CLI_BIN_NAME+_0x4abf54(0x88));return _0x4abf54(0x87);}export function readScopedConfig(_0x1cc448){return readConfigFile(resolveWriteConfigPath(_0x1cc448));}export function writeScopedConfig(_0x5b1b5f,_0x20362b){writeConfigFile(resolveWriteConfigPath(_0x20362b),_0x5b1b5f);}function a55_0x3726(){var _0x4decf8=['2756237AfsAZO','599tdDIAy','7493310RPnuUU','12808rIAxmr','global','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','60NejECh','776139BWmCEp','2965305PtBzYS','2097AFlDEV','96AbYZTq','956PaFpso','project','\x20init`\x20first.','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','3228040PriUiP'];a55_0x3726=function(){return _0x4decf8;};return a55_0x3726();}
1
+ (function(_0x326261,_0x1f2a41){var _0x2e3703=a55_0x28b9,_0x2f9b61=_0x326261();while(!![]){try{var _0x38e19d=parseInt(_0x2e3703(0x1f1))/0x1*(parseInt(_0x2e3703(0x1e8))/0x2)+-parseInt(_0x2e3703(0x1ea))/0x3*(-parseInt(_0x2e3703(0x1eb))/0x4)+parseInt(_0x2e3703(0x1f4))/0x5*(-parseInt(_0x2e3703(0x1ef))/0x6)+-parseInt(_0x2e3703(0x1ec))/0x7*(parseInt(_0x2e3703(0x1e5))/0x8)+-parseInt(_0x2e3703(0x1e9))/0x9*(parseInt(_0x2e3703(0x1f3))/0xa)+parseInt(_0x2e3703(0x1f6))/0xb*(parseInt(_0x2e3703(0x1ed))/0xc)+-parseInt(_0x2e3703(0x1f0))/0xd;if(_0x38e19d===_0x1f2a41)break;else _0x2f9b61['push'](_0x2f9b61['shift']());}catch(_0x473974){_0x2f9b61['push'](_0x2f9b61['shift']());}}}(a55_0x3e24,0x93ce7));import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';import{CliErrors}from'../../errors.js';import{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';export{CLI_BIN_NAME};export{normalizeLocale};export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0xe69cbd){var _0x3833e7=a55_0x28b9;if(_0xe69cbd[_0x3833e7(0x1f5)])return _0x3833e7(0x1f5);if(!isInProject())throw CliErrors[_0x3833e7(0x1e6)]('Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).',_0x3833e7(0x1ee)+CLI_BIN_NAME+_0x3833e7(0x1f2));return _0x3833e7(0x1e7);}function a55_0x28b9(_0x5d349f,_0x39bfe7){_0x5d349f=_0x5d349f-0x1e5;var _0x3e243c=a55_0x3e24();var _0x28b940=_0x3e243c[_0x5d349f];return _0x28b940;}export function readScopedConfig(_0x262acd){return readConfigFile(resolveWriteConfigPath(_0x262acd));}export function writeScopedConfig(_0x3e3747,_0x11e89c){writeConfigFile(resolveWriteConfigPath(_0x11e89c),_0x3e3747);}function a55_0x3e24(){var _0x437cd3=['Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','66tLXxlr','5309850lHkXMz','2602acdGeB','\x20init`\x20first.','2494530QSOUYx','122195DBufif','global','11OJAGBY','8nKOydR','validation','project','758UeBMzM','18IVJbQG','48OdjOQZ','211888QqakqH','8225749gxQwJy','13475964zehVal'];a55_0x3e24=function(){return _0x437cd3;};return a55_0x3e24();}
@@ -1 +1 @@
1
- const a56_0x435d7c=a56_0xbfa7;(function(_0x1e5f8b,_0x21a270){const _0x5872a1=a56_0xbfa7,_0x59336f=_0x1e5f8b();while(!![]){try{const _0x550452=-parseInt(_0x5872a1(0xc0))/0x1*(parseInt(_0x5872a1(0xbf))/0x2)+-parseInt(_0x5872a1(0xca))/0x3*(-parseInt(_0x5872a1(0xc4))/0x4)+-parseInt(_0x5872a1(0xbc))/0x5*(parseInt(_0x5872a1(0xc5))/0x6)+parseInt(_0x5872a1(0xc3))/0x7+-parseInt(_0x5872a1(0xc1))/0x8+parseInt(_0x5872a1(0xc9))/0x9*(parseInt(_0x5872a1(0xbe))/0xa)+-parseInt(_0x5872a1(0xba))/0xb*(-parseInt(_0x5872a1(0xc2))/0xc);if(_0x550452===_0x21a270)break;else _0x59336f['push'](_0x59336f['shift']());}catch(_0x52eb1b){_0x59336f['push'](_0x59336f['shift']());}}}(a56_0x17bf,0xc6a11));function a56_0x17bf(){const _0x2d4e5b=['1889206KioDtq','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','55Ygzstv','filter','677660gMxevQ','306018OhOfwO','6KpNdpm','7328112IxVatS','144YHMXdC','10158127aWppAh','61892WggTkz','550686qsBSLW','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','\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]','9ZFkDzP','15BNUHyf','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page'];a56_0x17bf=function(){return _0x2d4e5b;};return a56_0x17bf();}function a56_0xbfa7(_0x3a78db,_0x1ab191){_0x3a78db=_0x3a78db-0xb8;const _0x17bf1f=a56_0x17bf();let _0xbfa769=_0x17bf1f[_0x3a78db];return _0xbfa769;}import{buildDataCommand}from'../../commands/data/shared.js';export const dataFilter=buildDataCommand({'command':'filter','operation':a56_0x435d7c(0xbd),'description':'Filter\x20dataset\x20records\x20with\x20query\x20conditions','paramsRequired':![],'paramsHint':a56_0x435d7c(0xc7),'helpExtra':[a56_0x435d7c(0xbb),a56_0x435d7c(0xc6),a56_0x435d7c(0xc8),a56_0x435d7c(0xcb),a56_0x435d7c(0xb8),a56_0x435d7c(0xb9)]['join']('\x0a')});
1
+ const a56_0x2de33d=a56_0x2128;(function(_0x479f83,_0x47f515){const _0x3030c3=a56_0x2128,_0x516d46=_0x479f83();while(!![]){try{const _0x1dbeb3=-parseInt(_0x3030c3(0x121))/0x1*(-parseInt(_0x3030c3(0x119))/0x2)+parseInt(_0x3030c3(0x123))/0x3+parseInt(_0x3030c3(0x125))/0x4*(-parseInt(_0x3030c3(0x124))/0x5)+-parseInt(_0x3030c3(0x11a))/0x6*(-parseInt(_0x3030c3(0x115))/0x7)+parseInt(_0x3030c3(0x122))/0x8*(-parseInt(_0x3030c3(0x118))/0x9)+parseInt(_0x3030c3(0x126))/0xa+parseInt(_0x3030c3(0x11f))/0xb*(-parseInt(_0x3030c3(0x11e))/0xc);if(_0x1dbeb3===_0x47f515)break;else _0x516d46['push'](_0x516d46['shift']());}catch(_0x5932cc){_0x516d46['push'](_0x516d46['shift']());}}}(a56_0x14c6,0x39d60));import{buildDataCommand}from'../../commands/data/shared.js';function a56_0x2128(_0x19b09f,_0x468376){_0x19b09f=_0x19b09f-0x115;const _0x14c658=a56_0x14c6();let _0x2128dd=_0x14c658[_0x19b09f];return _0x2128dd;}export const dataFilter=buildDataCommand({'command':'filter','operation':a56_0x2de33d(0x117),'description':'Filter\x20dataset\x20records\x20with\x20query\x20conditions','paramsRequired':![],'paramsHint':a56_0x2de33d(0x11d),'helpExtra':[a56_0x2de33d(0x11c),a56_0x2de33d(0x11b),'\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]',a56_0x2de33d(0x116),a56_0x2de33d(0x120),'\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page']['join']('\x0a')});function a56_0x14c6(){const _0xa5f2cc=['821718SPExam','916SAXVbY','1881168YRoUmr','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','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','240480shsrEU','253DTgWwD','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','718AjXrdh','16gFptyk','1413273ObKusx','130455DnRkbn','64WQIjlo','1844130XYhrNu','7WHbdYM','\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}]','filter'];a56_0x14c6=function(){return _0xa5f2cc;};return a56_0x14c6();}
@@ -1 +1 @@
1
- function a57_0x3352(){const _0x1e355a=['106456yqvIZi','4592400uUkVeK','6DCPtOk','6781817ZmeZwU','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','Get\x20a\x20single\x20record\x20by\x20ID','14bTlGUr','9665361cEjuJw','4472585MyDlTQ','getOne','598824IoIUyc','2269308BzRzmW'];a57_0x3352=function(){return _0x1e355a;};return a57_0x3352();}function a57_0x3a00(_0x3e84f5,_0x1c34eb){_0x3e84f5=_0x3e84f5-0x95;const _0x335258=a57_0x3352();let _0x3a0047=_0x335258[_0x3e84f5];return _0x3a0047;}const a57_0x40c1bd=a57_0x3a00;(function(_0x52f88c,_0x2be9d8){const _0x5e07d6=a57_0x3a00,_0x30cf34=_0x52f88c();while(!![]){try{const _0x55c7af=parseInt(_0x5e07d6(0x9c))/0x1*(-parseInt(_0x5e07d6(0x96))/0x2)+parseInt(_0x5e07d6(0x95))/0x3+parseInt(_0x5e07d6(0xa0))/0x4+parseInt(_0x5e07d6(0x9e))/0x5+parseInt(_0x5e07d6(0x98))/0x6*(-parseInt(_0x5e07d6(0x99))/0x7)+-parseInt(_0x5e07d6(0x97))/0x8+parseInt(_0x5e07d6(0x9d))/0x9;if(_0x55c7af===_0x2be9d8)break;else _0x30cf34['push'](_0x30cf34['shift']());}catch(_0x2dac68){_0x30cf34['push'](_0x30cf34['shift']());}}}(a57_0x3352,0x8f313));import{buildDataCommand}from'../../commands/data/shared.js';export const dataGetOne=buildDataCommand({'command':a57_0x40c1bd(0x9f),'operation':'getOne','description':a57_0x40c1bd(0x9b),'paramsRequired':!![],'paramsHint':a57_0x40c1bd(0x9a)});
1
+ const a57_0x4ab777=a57_0x3af8;(function(_0x4c29ba,_0x37a3f1){const _0x5933a9=a57_0x3af8,_0x33033f=_0x4c29ba();while(!![]){try{const _0x1d2a7a=-parseInt(_0x5933a9(0xea))/0x1+-parseInt(_0x5933a9(0xed))/0x2*(-parseInt(_0x5933a9(0xee))/0x3)+parseInt(_0x5933a9(0xeb))/0x4+parseInt(_0x5933a9(0xe9))/0x5+-parseInt(_0x5933a9(0xe8))/0x6*(parseInt(_0x5933a9(0xe7))/0x7)+-parseInt(_0x5933a9(0xec))/0x8*(parseInt(_0x5933a9(0xef))/0x9)+parseInt(_0x5933a9(0xf1))/0xa;if(_0x1d2a7a===_0x37a3f1)break;else _0x33033f['push'](_0x33033f['shift']());}catch(_0xd84e38){_0x33033f['push'](_0x33033f['shift']());}}}(a57_0xf554,0x6231a));function a57_0xf554(){const _0x36941b=['6228pPPQpT','774BkOIYU','2764899KENQSE','getOne','10028910moWgkx','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','248563xpcbHd','114THhwrk','291750ZaIyrS','291283gMAjRS','471700JEyBUC','16XkyDvH'];a57_0xf554=function(){return _0x36941b;};return a57_0xf554();}import{buildDataCommand}from'../../commands/data/shared.js';function a57_0x3af8(_0x14dbf1,_0x55fee8){_0x14dbf1=_0x14dbf1-0xe6;const _0xf55445=a57_0xf554();let _0x3af849=_0xf55445[_0x14dbf1];return _0x3af849;}export const dataGetOne=buildDataCommand({'command':a57_0x4ab777(0xf0),'operation':a57_0x4ab777(0xf0),'description':'Get\x20a\x20single\x20record\x20by\x20ID','paramsRequired':!![],'paramsHint':a57_0x4ab777(0xe6)});
@@ -1 +1 @@
1
- (function(_0x1dd8a1,_0x40847f){const _0x24aa45=a58_0x3f05,_0x38f540=_0x1dd8a1();while(!![]){try{const _0x3ad302=parseInt(_0x24aa45(0x88))/0x1*(parseInt(_0x24aa45(0x86))/0x2)+-parseInt(_0x24aa45(0x83))/0x3*(parseInt(_0x24aa45(0x8a))/0x4)+-parseInt(_0x24aa45(0x85))/0x5*(-parseInt(_0x24aa45(0x87))/0x6)+parseInt(_0x24aa45(0x8c))/0x7+-parseInt(_0x24aa45(0x8b))/0x8*(parseInt(_0x24aa45(0x8e))/0x9)+parseInt(_0x24aa45(0x89))/0xa*(parseInt(_0x24aa45(0x8d))/0xb)+-parseInt(_0x24aa45(0x82))/0xc*(parseInt(_0x24aa45(0x84))/0xd);if(_0x3ad302===_0x40847f)break;else _0x38f540['push'](_0x38f540['shift']());}catch(_0x2503a9){_0x38f540['push'](_0x38f540['shift']());}}}(a58_0x274c,0x85545));import{dataFilter}from'../../commands/data/filter.js';import{dataGetOne}from'../../commands/data/getOne.js';function a58_0x274c(){const _0x5cae3c=['12catzhD','186459ffARJJ','8359481YjvknG','625iSdhPa','24MXSuxS','23388YFdzPp','77191nQUcIN','4330790ZxiIZT','4dlsbxq','17136PnbTmX','915768hUROwo','11BBUDKh','3051bNenVA'];a58_0x274c=function(){return _0x5cae3c;};return a58_0x274c();}function a58_0x3f05(_0xfb7595,_0x2c4b01){_0xfb7595=_0xfb7595-0x82;const _0x274cc5=a58_0x274c();let _0x3f0582=_0x274cc5[_0xfb7595];return _0x3f0582;}export const dataDefinitions=[dataFilter,dataGetOne];
1
+ (function(_0x5a1b86,_0x3699f0){const _0x3ddbb8=a58_0x52a0,_0x2668f4=_0x5a1b86();while(!![]){try{const _0x4692dd=-parseInt(_0x3ddbb8(0x15a))/0x1*(-parseInt(_0x3ddbb8(0x160))/0x2)+-parseInt(_0x3ddbb8(0x15f))/0x3+-parseInt(_0x3ddbb8(0x15c))/0x4*(-parseInt(_0x3ddbb8(0x156))/0x5)+parseInt(_0x3ddbb8(0x15e))/0x6*(-parseInt(_0x3ddbb8(0x15d))/0x7)+-parseInt(_0x3ddbb8(0x158))/0x8*(parseInt(_0x3ddbb8(0x15b))/0x9)+parseInt(_0x3ddbb8(0x157))/0xa+parseInt(_0x3ddbb8(0x161))/0xb*(parseInt(_0x3ddbb8(0x159))/0xc);if(_0x4692dd===_0x3699f0)break;else _0x2668f4['push'](_0x2668f4['shift']());}catch(_0x2bf03a){_0x2668f4['push'](_0x2668f4['shift']());}}}(a58_0x2640,0x33138));function a58_0x52a0(_0xc84ac1,_0x31e9bf){_0xc84ac1=_0xc84ac1-0x156;const _0x264068=a58_0x2640();let _0x52a022=_0x264068[_0xc84ac1];return _0x52a022;}function a58_0x2640(){const _0x12f01c=['3932BkRwlg','98iEvBrN','47334OlpXGz','1105257bLQdYB','386KEscTN','5036306AAUpgi','2040OwmaBO','1539920DrHpuv','246096ATGUaV','12DZGNYU','389RqvzUP','117YBRQzi'];a58_0x2640=function(){return _0x12f01c;};return a58_0x2640();}import{dataFilter}from'../../commands/data/filter.js';import{dataGetOne}from'../../commands/data/getOne.js';export const dataDefinitions=[dataFilter,dataGetOne];
@@ -1 +1 @@
1
- (function(_0x175d61,_0x51784e){const _0x23a11f=a59_0x2ed5,_0x545d4f=_0x175d61();while(!![]){try{const _0x4fcc7f=-parseInt(_0x23a11f(0x101))/0x1*(-parseInt(_0x23a11f(0x114))/0x2)+-parseInt(_0x23a11f(0x107))/0x3*(-parseInt(_0x23a11f(0x10e))/0x4)+-parseInt(_0x23a11f(0x108))/0x5*(-parseInt(_0x23a11f(0x10b))/0x6)+parseInt(_0x23a11f(0x113))/0x7*(parseInt(_0x23a11f(0x104))/0x8)+parseInt(_0x23a11f(0x115))/0x9+-parseInt(_0x23a11f(0x10f))/0xa+-parseInt(_0x23a11f(0xfb))/0xb;if(_0x4fcc7f===_0x51784e)break;else _0x545d4f['push'](_0x545d4f['shift']());}catch(_0x35968a){_0x545d4f['push'](_0x545d4f['shift']());}}}(a59_0x22cf,0x531e1));import{executeDatasetDataOperation}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a59_0x2ed5(_0x900269,_0x38eb4d){_0x900269=_0x900269-0xfb;const _0x22cf6a=a59_0x22cf();let _0x2ed51d=_0x22cf6a[_0x900269];return _0x2ed51d;}function a59_0x22cf(){const _0x256ed3=['136srZPlo','now','compress','31962DCJKYW','63785HuyNLH','data\x20getOne\x20requires\x20\x22id\x22\x20in\x20--params','validation','90dZKetA','helpExtra','alias','76XzgeMQ','1182210rHXtxk','command','Provide\x20--params\x20\x27{\x22id\x22:123}\x27\x20for\x20data\x20getOne.','string','278607BEsetz','1065872sUzrbL','854001hLmYFk','paramsHint','\x20completed\x20in\x20','str','params','data\x20','13635083BgPmgc','flagMissing','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','code','data','1HOjyjw','read','appCode'];a59_0x22cf=function(){return _0x256ed3;};return a59_0x22cf();}import{CliErrors}from'../../errors.js';import{parseJsonParams}from'../../utils/params.js';function assertGetOneId(_0x452035){const _0x4be26c=a59_0x2ed5;if(!_0x452035)throw CliErrors[_0x4be26c(0xfc)](_0x4be26c(0x119),_0x4be26c(0x111));const _0x34f694=_0x452035['id'];if(_0x34f694===undefined||_0x34f694===null||_0x34f694==='')throw CliErrors[_0x4be26c(0x10a)](_0x4be26c(0x109),_0x4be26c(0xfd));}function parseCommandParams(_0x566207){return parseJsonParams(_0x566207)??{};}export function buildDataCommand(_0x33ac65){const _0x166e44=a59_0x2ed5,_0x606300=_0x166e44(0xfe);return{'service':_0x166e44(0x100),'command':_0x33ac65[_0x166e44(0x110)],'description':_0x33ac65['description'],'risk':_0x166e44(0x102),'defaultOutputFormat':_0x166e44(0x106),'helpExtra':_0x33ac65[_0x166e44(0x10c)],'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':_0x166e44(0x10d),'type':_0x166e44(0x112),'description':_0x606300},{'name':'params','type':'string','description':_0x33ac65[_0x166e44(0x116)]}],async 'validate'(_0x2369c5){const _0x410bc3=_0x166e44,_0x281cf7=_0x2369c5[_0x410bc3(0x118)]('params');if(_0x33ac65['paramsRequired']&&!_0x281cf7)throw CliErrors['flagMissing']('params',_0x33ac65['paramsHint']);const _0x42c7a9=parseJsonParams(_0x281cf7);_0x33ac65['operation']==='getOne'&&assertGetOneId(_0x42c7a9);},async 'execute'(_0x2c0fd3){const _0x18d6d4=_0x166e44,_0x5d7ddf=parseCommandParams(_0x2c0fd3['str']('params')),_0x11c699=Date['now'](),_0x3cf6ff=await executeDatasetDataOperation(_0x2c0fd3[_0x18d6d4(0x103)],_0x2c0fd3['str'](_0x18d6d4(0xff)),_0x33ac65['operation'],_0x5d7ddf),_0x299078=Date[_0x18d6d4(0x105)]()-_0x11c699;return{'ok':!![],'data':{'result':_0x3cf6ff,'elapsed':_0x299078},'message':_0x18d6d4(0x11a)+_0x33ac65[_0x18d6d4(0x110)]+_0x18d6d4(0x117)+_0x299078+'ms'};}};}
1
+ (function(_0x5be6b9,_0x36268d){const _0x409c06=a59_0x21fe,_0x507325=_0x5be6b9();while(!![]){try{const _0x36fbc3=parseInt(_0x409c06(0xdb))/0x1*(parseInt(_0x409c06(0xe2))/0x2)+-parseInt(_0x409c06(0xd7))/0x3+-parseInt(_0x409c06(0xcd))/0x4+-parseInt(_0x409c06(0xde))/0x5+parseInt(_0x409c06(0xeb))/0x6*(-parseInt(_0x409c06(0xea))/0x7)+parseInt(_0x409c06(0xd9))/0x8*(parseInt(_0x409c06(0xd6))/0x9)+parseInt(_0x409c06(0xe1))/0xa;if(_0x36fbc3===_0x36268d)break;else _0x507325['push'](_0x507325['shift']());}catch(_0x5e6075){_0x507325['push'](_0x507325['shift']());}}}(a59_0x5ead,0x8b0a7));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 a59_0x5ead(){const _0x519c29=['2926685QRjLdp','str','appCode','26896970hXdtQM','1441898aAiWrQ','params','alias','compress','Provide\x20--params\x20\x27{\x22id\x22:123}\x27\x20for\x20data\x20getOne.','read','paramsHint','data\x20getOne\x20requires\x20\x22id\x22\x20in\x20--params','37401KnmACM','1062uaEbnX','1411380ZHdLjH','helpExtra','validation','operation','now','data','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','command','flagMissing','81JUIbpD','3229260pywFsl','getOne','105936cJzkto','data\x20','1WFsnOe','string','paramsRequired'];a59_0x5ead=function(){return _0x519c29;};return a59_0x5ead();}function assertGetOneId(_0x1b0e84){const _0x9a0840=a59_0x21fe;if(!_0x1b0e84)throw CliErrors['flagMissing']('params',_0x9a0840(0xe6));const _0x506ff7=_0x1b0e84['id'];if(_0x506ff7===undefined||_0x506ff7===null||_0x506ff7==='')throw CliErrors[_0x9a0840(0xcf)](_0x9a0840(0xe9),'Example:\x20--params\x20\x27{\x22id\x22:123}\x27');}function a59_0x21fe(_0x353356,_0xe7370){_0x353356=_0x353356-0xcd;const _0x5ead87=a59_0x5ead();let _0x21fe80=_0x5ead87[_0x353356];return _0x21fe80;}function parseCommandParams(_0x3eb992){return parseJsonParams(_0x3eb992)??{};}export function buildDataCommand(_0x5f02ff){const _0x3964ba=a59_0x21fe,_0xc3c44a=_0x3964ba(0xd3);return{'service':_0x3964ba(0xd2),'command':_0x5f02ff[_0x3964ba(0xd4)],'description':_0x5f02ff['description'],'risk':_0x3964ba(0xe7),'defaultOutputFormat':_0x3964ba(0xe5),'helpExtra':_0x5f02ff[_0x3964ba(0xce)],'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':_0x3964ba(0xe4),'type':_0x3964ba(0xdc),'description':_0xc3c44a},{'name':_0x3964ba(0xe3),'type':_0x3964ba(0xdc),'description':_0x5f02ff[_0x3964ba(0xe8)]}],async 'validate'(_0x2bdeae){const _0x83d4a9=_0x3964ba,_0x40084d=_0x2bdeae[_0x83d4a9(0xdf)]('params');if(_0x5f02ff[_0x83d4a9(0xdd)]&&!_0x40084d)throw CliErrors[_0x83d4a9(0xd5)](_0x83d4a9(0xe3),_0x5f02ff['paramsHint']);const _0x101250=parseJsonParams(_0x40084d);_0x5f02ff[_0x83d4a9(0xd0)]===_0x83d4a9(0xd8)&&assertGetOneId(_0x101250);},async 'execute'(_0x3cb48c){const _0xfa7b8c=_0x3964ba,_0x53ec08=parseCommandParams(_0x3cb48c['str'](_0xfa7b8c(0xe3))),_0x55858e=Date[_0xfa7b8c(0xd1)](),_0x32ddeb=await executeDatasetDataOperation(_0x3cb48c[_0xfa7b8c(0xe0)],_0x3cb48c['str']('code'),_0x5f02ff[_0xfa7b8c(0xd0)],_0x53ec08),_0x57f468=Date[_0xfa7b8c(0xd1)]()-_0x55858e;return{'ok':!![],'data':{'result':_0x32ddeb,'elapsed':_0x57f468},'message':_0xfa7b8c(0xda)+_0x5f02ff[_0xfa7b8c(0xd4)]+'\x20completed\x20in\x20'+_0x57f468+'ms'};}};}
@@ -1 +1 @@
1
- const a60_0x279fa5=a60_0x2011;(function(_0x40758c,_0x540428){const _0x1a78b7=a60_0x2011,_0x45f62e=_0x40758c();while(!![]){try{const _0x23fd2e=-parseInt(_0x1a78b7(0x119))/0x1*(parseInt(_0x1a78b7(0x117))/0x2)+-parseInt(_0x1a78b7(0x110))/0x3*(parseInt(_0x1a78b7(0x11f))/0x4)+-parseInt(_0x1a78b7(0x12a))/0x5+-parseInt(_0x1a78b7(0x115))/0x6*(-parseInt(_0x1a78b7(0x11e))/0x7)+parseInt(_0x1a78b7(0x137))/0x8+-parseInt(_0x1a78b7(0x122))/0x9+-parseInt(_0x1a78b7(0x124))/0xa*(-parseInt(_0x1a78b7(0x12c))/0xb);if(_0x23fd2e===_0x540428)break;else _0x45f62e['push'](_0x45f62e['shift']());}catch(_0x3de113){_0x45f62e['push'](_0x45f62e['shift']());}}}(a60_0x406b,0x2f1ed));function a60_0x2011(_0x21a81d,_0x1edacf){_0x21a81d=_0x21a81d-0x102;const _0x406b4e=a60_0x406b();let _0x20114f=_0x406b4e[_0x21a81d];return _0x20114f;}function a60_0x406b(){const _0x5a0e0d=['9UFCFny','DB_TABLE','datasetName','isFinite','businessGroup','201552BZNbZX','keys','24090JCkjJT','--business-group\x20is\x20required','29hQVYwY','value','METADATA','parse','object','21hLdiqP','323164TbecOE','No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20','apiError','3173418GCAjTV','expect-business-group','250OIddah','Expected\x20current\x20business\x20scenario\x20group;\x20mismatch\x20aborts\x20without\x20writing','unchanged','dataset','backend','source','151655WcMQsJ','stringify','311311LCCQkO','Update\x20business\x20scenario\x20group','call','str','datasetId','validation','dbtableConfig','trim','toUpperCase','/smartapi/question/er-config/business-group/edit','POST','2874520fIEiKd','sourceType','appCode','modelId','string','extend','modelCode','name','code','payload','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','datasetCode','Expectation\x20mismatch\x20at\x20businessGroup','--code\x20is\x20required','Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.','Business\x20scenario\x20group\x20readback\x20must\x20be\x20available\x20by\x20datasetCode;\x20upgrade\x20the\x20backend\x20read\x20contract\x20instead\x20of\x20using\x20dblinkId/tableName.','update','Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20','business-group-update',',\x20actual\x20','business-group','number','data','found','Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.','message','Expected\x20','length','hasOwnProperty'];a60_0x406b=function(){return _0x5a0e0d;};return a60_0x406b();}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=a60_0x279fa5(0x135);export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x328550,input:_0x270fd2,dryRun:_0x4319a9}){const _0x34ec42=a60_0x279fa5;validateInput(_0x270fd2);const _0x134b6b=normalizeBusinessGroup(_0x270fd2['businessGroup']),_0x1be5fe=await getDatasetDetail(_0x270fd2[_0x34ec42(0x13f)]),_0x17c1a0=resolveBusinessGroupDataset(_0x1be5fe,_0x270fd2['code']),_0x130859=loadCurrentBusinessGroup(_0x1be5fe,_0x17c1a0);assertExpectedBusinessGroup(_0x130859,_0x270fd2['expectBusinessGroup']);const _0x38e17e=buildBackendPayload(_0x328550,_0x17c1a0,_0x134b6b),_0x5475a1=_0x130859!==_0x134b6b;let _0x2410b8;if(_0x5475a1&&!_0x4319a9){await updateErBusinessGroup(_0x38e17e);const _0x314f83=await getDatasetDetail(_0x17c1a0[_0x34ec42(0x13f)]),_0x1249b5=resolveBusinessGroupDataset(_0x314f83,_0x17c1a0[_0x34ec42(0x13f)]),_0x40d644=loadCurrentBusinessGroup(_0x314f83,_0x1249b5);if(_0x40d644!==_0x134b6b)throw CliErrors[_0x34ec42(0x121)](_0x34ec42(0x145),'Expected\x20'+JSON['stringify'](_0x134b6b)+_0x34ec42(0x106)+JSON[_0x34ec42(0x12b)](_0x40d644)+'.');_0x2410b8={'verified':!![],'status':'matched','afterReadback':{'businessGroup':_0x40d644}};}else!_0x5475a1&&(_0x2410b8={'verified':!![],'status':_0x34ec42(0x126),'afterReadback':{'businessGroup':_0x130859}});const _0x11c88c={'operation':_0x34ec42(0x103),'appCode':_0x328550,'selector':{'code':_0x17c1a0[_0x34ec42(0x13f)]},'dataset':_0x17c1a0,'before':{'businessGroup':_0x130859},'after':{'businessGroup':_0x134b6b},'changed':_0x5475a1,'dryRun':_0x4319a9,'submitted':_0x5475a1&&!_0x4319a9,'backend':{'method':_0x34ec42(0x136),'path':BACKEND_PATH,'payload':_0x38e17e},..._0x2410b8?{'verification':_0x2410b8}:{},'warnings':[]};return{'ok':!![],'data':_0x11c88c,'message':_0x5475a1?_0x4319a9?_0x34ec42(0x104)+_0x17c1a0[_0x34ec42(0x13f)]:'Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20'+_0x17c1a0['code']:_0x34ec42(0x120)+_0x17c1a0[_0x34ec42(0x13f)]};}export const datasetBusinessGroupUpdate={'service':a60_0x279fa5(0x127),'command':a60_0x279fa5(0x105),'description':a60_0x279fa5(0x12d),'risk':'write','flags':[CODE_FLAG,{'name':'business-group','type':'string','required':!![],'description':a60_0x279fa5(0x141)},{'name':a60_0x279fa5(0x123),'type':a60_0x279fa5(0x13b),'required':![],'description':a60_0x279fa5(0x125)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x554588){validateInput(readBusinessGroupUpdateInput(_0x554588));},async 'dryRun'(_0x5d3ff9){const _0x34c039=a60_0x279fa5,_0x30dff0=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x5d3ff9[_0x34c039(0x139)],'input':readBusinessGroupUpdateInput(_0x5d3ff9),'dryRun':!![]});return{'method':_0x34c039(0x136),'url':BACKEND_PATH,'body':_0x30dff0[_0x34c039(0x109)][_0x34c039(0x128)][_0x34c039(0x140)],'description':_0x30dff0[_0x34c039(0x10c)],..._0x30dff0[_0x34c039(0x109)]};},async 'execute'(_0x45d08d){return buildDatasetBusinessGroupUpdateResult({'appCode':_0x45d08d['appCode'],'input':readBusinessGroupUpdateInput(_0x45d08d),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x3db9d2){const _0x35c563=a60_0x279fa5,_0x3f0abf=_0x3db9d2['str'](_0x35c563(0x123));return{'code':trim(_0x3db9d2['str'](_0x35c563(0x13f))),'businessGroup':_0x3db9d2[_0x35c563(0x12f)](_0x35c563(0x107)),'expectBusinessGroup':_0x3f0abf===undefined||_0x3f0abf===''?undefined:_0x3f0abf};}function validateInput(_0x33fb7a){const _0x2735c7=a60_0x279fa5;if(!trim(_0x33fb7a[_0x2735c7(0x13f)]))throw CliErrors[_0x2735c7(0x131)](_0x2735c7(0x144));if(_0x33fb7a[_0x2735c7(0x114)]===undefined)throw CliErrors[_0x2735c7(0x131)](_0x2735c7(0x118));}function resolveBusinessGroupDataset(_0x33d1ee,_0x462d0d){const _0x3c07a9=a60_0x279fa5,_0x39fb17=asPlainObject(_0x33d1ee[_0x3c07a9(0x127)]),_0xf3f639=asPlainObject(_0x33d1ee[_0x3c07a9(0x132)]),_0xa8cb4e=resolveSourceType(_0x33d1ee,_0x39fb17,_0xf3f639),_0x212fa9=firstString(_0x33d1ee[_0x3c07a9(0x13d)],_0x33d1ee[_0x3c07a9(0x13f)],_0x39fb17[_0x3c07a9(0x142)],_0x462d0d)||_0x462d0d;return{'id':firstNumber(_0x33d1ee[_0x3c07a9(0x13a)],_0x33d1ee['id'],_0x39fb17['datasetId'])??firstString(_0x33d1ee[_0x3c07a9(0x13a)],_0x33d1ee['id'],_0x39fb17[_0x3c07a9(0x130)])??null,'code':_0x212fa9,'name':firstString(_0x33d1ee[_0x3c07a9(0x13e)],_0x39fb17[_0x3c07a9(0x112)],_0x39fb17['name'])||null,'sourceType':_0xa8cb4e};}function resolveSourceType(_0x50ba35,_0x3bc168,_0x513ffb){const _0x3f2653=a60_0x279fa5,_0xb62e03=firstString(_0x50ba35[_0x3f2653(0x129)],_0x50ba35['sourceType'],_0x3bc168[_0x3f2653(0x129)],_0x3bc168[_0x3f2653(0x138)])?.['trim']()[_0x3f2653(0x134)]();if(_0xb62e03===_0x3f2653(0x111)||_0xb62e03===_0x3f2653(0x11b))return _0xb62e03;if(Object[_0x3f2653(0x116)](_0x513ffb)[_0x3f2653(0x10e)]>0x0)return _0x3f2653(0x111);throw CliErrors['validation'](_0x3f2653(0x10b));}function loadCurrentBusinessGroup(_0xa26b69,_0x2aa7ac){const _0x2fdd67=a60_0x279fa5,_0x4cc060=readBusinessGroupFromDatasetDetail(_0xa26b69,_0x2aa7ac[_0x2fdd67(0x138)]);if(_0x4cc060[_0x2fdd67(0x10a)])return normalizeBusinessGroup(_0x4cc060[_0x2fdd67(0x11a)]);if(_0x2aa7ac[_0x2fdd67(0x138)]===_0x2fdd67(0x11b))return'';throw CliErrors['validation']('Dataset\x20detail\x20does\x20not\x20expose\x20businessGroup.',_0x2fdd67(0x102));}function readBusinessGroupFromDatasetDetail(_0x50751f,_0x44c924){const _0x2df4ba=a60_0x279fa5,_0x218a9a=asPlainObject(_0x50751f[_0x2df4ba(0x127)]),_0x571c92=firstPresent(_0x50751f['businessGroup']);if(_0x571c92['found'])return _0x571c92;const _0xde7948=firstPresent(_0x218a9a[_0x2df4ba(0x114)]);if(_0xde7948['found'])return _0xde7948;if(_0x44c924===_0x2df4ba(0x111))return{'found':![]};const _0xa57527=readBusinessGroupFromExtend(_0x50751f[_0x2df4ba(0x13c)]);if(_0xa57527['found'])return _0xa57527;return readBusinessGroupFromExtend(_0x218a9a[_0x2df4ba(0x13c)]);}function readBusinessGroupFromExtend(_0x1b3bd3){const _0x1eddd1=a60_0x279fa5;if(_0x1b3bd3===undefined||_0x1b3bd3===null||_0x1b3bd3==='')return{'found':![]};if(typeof _0x1b3bd3===_0x1eddd1(0x13b))try{const _0xaef2fc=JSON[_0x1eddd1(0x11c)](_0x1b3bd3);return readBusinessGroupFromExtend(_0xaef2fc);}catch{return{'found':![]};}const _0x52d0c1=asPlainObject(_0x1b3bd3);if(Object['prototype'][_0x1eddd1(0x10f)][_0x1eddd1(0x12e)](_0x52d0c1,'businessGroup'))return{'found':!![],'value':_0x52d0c1[_0x1eddd1(0x114)]};return{'found':![]};}function firstPresent(..._0x13a8de){for(const _0x545fc7 of _0x13a8de){if(_0x545fc7!==undefined&&_0x545fc7!==null)return{'found':!![],'value':_0x545fc7};}return{'found':![]};}function assertExpectedBusinessGroup(_0x3900b5,_0x577a71){const _0x3fe5c5=a60_0x279fa5;if(_0x577a71===undefined)return;const _0x61d16d=normalizeBusinessGroup(_0x577a71);if(_0x3900b5!==_0x61d16d)throw CliErrors[_0x3fe5c5(0x131)](_0x3fe5c5(0x143),_0x3fe5c5(0x10d)+JSON[_0x3fe5c5(0x12b)](_0x61d16d)+_0x3fe5c5(0x106)+JSON[_0x3fe5c5(0x12b)](_0x3900b5));}function buildBackendPayload(_0x49aace,_0x15edce,_0x5203e5){const _0xfe8858=a60_0x279fa5;return{'appCode':_0x49aace,'datasetCode':_0x15edce[_0xfe8858(0x13f)],'businessGroup':_0x5203e5};}function normalizeBusinessGroup(_0x345ea7){const _0x5b6d5f=a60_0x279fa5;if(_0x345ea7===undefined||_0x345ea7===null)return'';return String(_0x345ea7)[_0x5b6d5f(0x133)]();}function asPlainObject(_0x4df70b){const _0x5444bb=a60_0x279fa5;if(!_0x4df70b||typeof _0x4df70b!==_0x5444bb(0x11d)||Array['isArray'](_0x4df70b))return{};return _0x4df70b;}function firstString(..._0x1e2e10){const _0x1cc266=a60_0x279fa5;for(const _0x51cfe6 of _0x1e2e10){if(typeof _0x51cfe6===_0x1cc266(0x13b)&&_0x51cfe6[_0x1cc266(0x133)]())return _0x51cfe6[_0x1cc266(0x133)]();if(typeof _0x51cfe6==='number'&&Number[_0x1cc266(0x113)](_0x51cfe6))return String(_0x51cfe6);}return undefined;}function firstNumber(..._0x1264ad){const _0x40aa97=a60_0x279fa5;for(const _0x13752f of _0x1264ad){if(typeof _0x13752f===_0x40aa97(0x108)&&Number[_0x40aa97(0x113)](_0x13752f))return _0x13752f;if(typeof _0x13752f===_0x40aa97(0x13b)&&_0x13752f[_0x40aa97(0x133)]()&&Number[_0x40aa97(0x113)](Number(_0x13752f)))return Number(_0x13752f);}return null;}function trim(_0x492632){const _0x2b87a0=a60_0x279fa5;return String(_0x492632||'')[_0x2b87a0(0x133)]();}
1
+ const a60_0x530b30=a60_0x52b4;(function(_0x1d62fc,_0x4196b4){const _0x3b5f2b=a60_0x52b4,_0x5a5c38=_0x1d62fc();while(!![]){try{const _0x20baed=-parseInt(_0x3b5f2b(0xc1))/0x1*(parseInt(_0x3b5f2b(0xa3))/0x2)+-parseInt(_0x3b5f2b(0xac))/0x3*(parseInt(_0x3b5f2b(0x9c))/0x4)+-parseInt(_0x3b5f2b(0xd1))/0x5+-parseInt(_0x3b5f2b(0x99))/0x6*(-parseInt(_0x3b5f2b(0xa5))/0x7)+parseInt(_0x3b5f2b(0xbb))/0x8+-parseInt(_0x3b5f2b(0xb2))/0x9*(-parseInt(_0x3b5f2b(0xb5))/0xa)+-parseInt(_0x3b5f2b(0xcb))/0xb*(parseInt(_0x3b5f2b(0xc4))/0xc);if(_0x20baed===_0x4196b4)break;else _0x5a5c38['push'](_0x5a5c38['shift']());}catch(_0xbd30ed){_0x5a5c38['push'](_0x5a5c38['shift']());}}}(a60_0x44f9,0x675ed));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=a60_0x530b30(0xbd);export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x145fdb,input:_0x3e524b,dryRun:_0x4d1eea}){const _0x28f3a7=a60_0x530b30;validateInput(_0x3e524b);const _0x1a3b6a=normalizeBusinessGroup(_0x3e524b['businessGroup']),_0x44c771=await getDatasetDetail(_0x3e524b['code']),_0x4c00b0=resolveBusinessGroupDataset(_0x44c771,_0x3e524b['code']),_0x1b020a=loadCurrentBusinessGroup(_0x44c771,_0x4c00b0);assertExpectedBusinessGroup(_0x1b020a,_0x3e524b[_0x28f3a7(0xb6)]);const _0xcd7569=buildBackendPayload(_0x145fdb,_0x4c00b0,_0x1a3b6a),_0x2b1ed2=_0x1b020a!==_0x1a3b6a;let _0x310ae3;if(_0x2b1ed2&&!_0x4d1eea){await updateErBusinessGroup(_0xcd7569);const _0x124157=await getDatasetDetail(_0x4c00b0[_0x28f3a7(0xa6)]),_0x5dcae2=resolveBusinessGroupDataset(_0x124157,_0x4c00b0['code']),_0x3ce5f1=loadCurrentBusinessGroup(_0x124157,_0x5dcae2);if(_0x3ce5f1!==_0x1a3b6a)throw CliErrors[_0x28f3a7(0xc3)](_0x28f3a7(0xaa),'Expected\x20'+JSON['stringify'](_0x1a3b6a)+_0x28f3a7(0xb8)+JSON['stringify'](_0x3ce5f1)+'.');_0x310ae3={'verified':!![],'status':'matched','afterReadback':{'businessGroup':_0x3ce5f1}};}else!_0x2b1ed2&&(_0x310ae3={'verified':!![],'status':'unchanged','afterReadback':{'businessGroup':_0x1b020a}});const _0x4e5093={'operation':_0x28f3a7(0xb7),'appCode':_0x145fdb,'selector':{'code':_0x4c00b0[_0x28f3a7(0xa6)]},'dataset':_0x4c00b0,'before':{'businessGroup':_0x1b020a},'after':{'businessGroup':_0x1a3b6a},'changed':_0x2b1ed2,'dryRun':_0x4d1eea,'submitted':_0x2b1ed2&&!_0x4d1eea,'backend':{'method':_0x28f3a7(0x9f),'path':BACKEND_PATH,'payload':_0xcd7569},..._0x310ae3?{'verification':_0x310ae3}:{},'warnings':[]};return{'ok':!![],'data':_0x4e5093,'message':_0x2b1ed2?_0x4d1eea?_0x28f3a7(0xd0)+_0x4c00b0['code']:_0x28f3a7(0xa9)+_0x4c00b0[_0x28f3a7(0xa6)]:_0x28f3a7(0xad)+_0x4c00b0[_0x28f3a7(0xa6)]};}function a60_0x52b4(_0x33268d,_0x165d59){_0x33268d=_0x33268d-0x99;const _0x44f91f=a60_0x44f9();let _0x52b488=_0x44f91f[_0x33268d];return _0x52b488;}export const datasetBusinessGroupUpdate={'service':a60_0x530b30(0xc6),'command':'business-group-update','description':a60_0x530b30(0xd7),'risk':'write','flags':[CODE_FLAG,{'name':a60_0x530b30(0xc0),'type':a60_0x530b30(0xa8),'required':!![],'description':a60_0x530b30(0xc2)},{'name':a60_0x530b30(0xd2),'type':a60_0x530b30(0xa8),'required':![],'description':'Expected\x20current\x20business\x20scenario\x20group;\x20mismatch\x20aborts\x20without\x20writing'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x515c94){validateInput(readBusinessGroupUpdateInput(_0x515c94));},async 'dryRun'(_0xbc9122){const _0x2eb4c4=a60_0x530b30,_0x2d82f1=await buildDatasetBusinessGroupUpdateResult({'appCode':_0xbc9122['appCode'],'input':readBusinessGroupUpdateInput(_0xbc9122),'dryRun':!![]});return{'method':_0x2eb4c4(0x9f),'url':BACKEND_PATH,'body':_0x2d82f1[_0x2eb4c4(0xc8)][_0x2eb4c4(0xa4)][_0x2eb4c4(0xda)],'description':_0x2d82f1[_0x2eb4c4(0xc5)],..._0x2d82f1['data']};},async 'execute'(_0x993907){return buildDatasetBusinessGroupUpdateResult({'appCode':_0x993907['appCode'],'input':readBusinessGroupUpdateInput(_0x993907),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x55998e){const _0x55f485=a60_0x530b30,_0x32f0c1=_0x55998e[_0x55f485(0xca)](_0x55f485(0xd2));return{'code':trim(_0x55998e[_0x55f485(0xca)](_0x55f485(0xa6))),'businessGroup':_0x55998e['str'](_0x55f485(0xc0)),'expectBusinessGroup':_0x32f0c1===undefined||_0x32f0c1===''?undefined:_0x32f0c1};}function validateInput(_0x419c9e){const _0x4fa1e1=a60_0x530b30;if(!trim(_0x419c9e[_0x4fa1e1(0xa6)]))throw CliErrors['validation'](_0x4fa1e1(0xd4));if(_0x419c9e['businessGroup']===undefined)throw CliErrors[_0x4fa1e1(0xa1)]('--business-group\x20is\x20required');}function resolveBusinessGroupDataset(_0x437ef2,_0x3bf0fb){const _0x121fae=a60_0x530b30,_0x5b29cf=asPlainObject(_0x437ef2['dataset']),_0x163d41=asPlainObject(_0x437ef2[_0x121fae(0xae)]),_0x1f97b3=resolveSourceType(_0x437ef2,_0x5b29cf,_0x163d41),_0x19d79e=firstString(_0x437ef2[_0x121fae(0xa2)],_0x437ef2[_0x121fae(0xa6)],_0x5b29cf[_0x121fae(0xd8)],_0x3bf0fb)||_0x3bf0fb;return{'id':firstNumber(_0x437ef2[_0x121fae(0xaf)],_0x437ef2['id'],_0x5b29cf[_0x121fae(0xc9)])??firstString(_0x437ef2[_0x121fae(0xaf)],_0x437ef2['id'],_0x5b29cf['datasetId'])??null,'code':_0x19d79e,'name':firstString(_0x437ef2[_0x121fae(0x9b)],_0x5b29cf[_0x121fae(0xbf)],_0x5b29cf['name'])||null,'sourceType':_0x1f97b3};}function resolveSourceType(_0x5736a8,_0x13ab14,_0x1d758e){const _0x5abd78=a60_0x530b30,_0x537870=firstString(_0x5736a8['source'],_0x5736a8[_0x5abd78(0x9e)],_0x13ab14['source'],_0x13ab14['sourceType'])?.[_0x5abd78(0xa0)]()[_0x5abd78(0xd6)]();if(_0x537870===_0x5abd78(0xbc)||_0x537870==='METADATA')return _0x537870;if(Object[_0x5abd78(0xcd)](_0x1d758e)[_0x5abd78(0xd3)]>0x0)return _0x5abd78(0xbc);throw CliErrors[_0x5abd78(0xa1)](_0x5abd78(0xbe));}function loadCurrentBusinessGroup(_0x277537,_0x476f9f){const _0x19b209=a60_0x530b30,_0x347172=readBusinessGroupFromDatasetDetail(_0x277537,_0x476f9f[_0x19b209(0x9e)]);if(_0x347172[_0x19b209(0xd9)])return normalizeBusinessGroup(_0x347172[_0x19b209(0xb1)]);if(_0x476f9f[_0x19b209(0x9e)]==='METADATA')return'';throw CliErrors['validation'](_0x19b209(0xb0),_0x19b209(0xc7));}function readBusinessGroupFromDatasetDetail(_0x3306d2,_0x220cda){const _0x287d1f=a60_0x530b30,_0xf4bcaf=asPlainObject(_0x3306d2[_0x287d1f(0xc6)]),_0x4a500d=firstPresent(_0x3306d2['businessGroup']);if(_0x4a500d[_0x287d1f(0xd9)])return _0x4a500d;const _0x2dc631=firstPresent(_0xf4bcaf[_0x287d1f(0xa7)]);if(_0x2dc631[_0x287d1f(0xd9)])return _0x2dc631;if(_0x220cda===_0x287d1f(0xbc))return{'found':![]};const _0x5cef5b=readBusinessGroupFromExtend(_0x3306d2[_0x287d1f(0xba)]);if(_0x5cef5b[_0x287d1f(0xd9)])return _0x5cef5b;return readBusinessGroupFromExtend(_0xf4bcaf[_0x287d1f(0xba)]);}function a60_0x44f9(){const _0x316e07=['data','datasetId','str','82115CnROcR','prototype','keys','Expectation\x20mismatch\x20at\x20businessGroup','hasOwnProperty','Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20','3475590OeVfTm','expect-business-group','length','--code\x20is\x20required','call','toUpperCase','Update\x20business\x20scenario\x20group','datasetCode','found','payload','12714ZfcsUY','number','name','20hTbNbU','isArray','sourceType','POST','trim','validation','modelCode','262KZIKDh','backend','973RAvcvt','code','businessGroup','string','Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20','Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.','parse','207780HiJgrz','No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20','dbtableConfig','modelId','Dataset\x20detail\x20does\x20not\x20expose\x20businessGroup.','value','9StVbyA','Expected\x20','object','8100870jjRsMG','expectBusinessGroup','update',',\x20actual\x20','isFinite','extend','6748088SoBtFX','DB_TABLE','/smartapi/question/er-config/business-group/edit','Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.','datasetName','business-group','1581VtGgKB','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','444BRvsVx','message','dataset','Business\x20scenario\x20group\x20readback\x20must\x20be\x20available\x20by\x20datasetCode;\x20upgrade\x20the\x20backend\x20read\x20contract\x20instead\x20of\x20using\x20dblinkId/tableName.'];a60_0x44f9=function(){return _0x316e07;};return a60_0x44f9();}function readBusinessGroupFromExtend(_0x435144){const _0x1888d7=a60_0x530b30;if(_0x435144===undefined||_0x435144===null||_0x435144==='')return{'found':![]};if(typeof _0x435144===_0x1888d7(0xa8))try{const _0x2637d9=JSON[_0x1888d7(0xab)](_0x435144);return readBusinessGroupFromExtend(_0x2637d9);}catch{return{'found':![]};}const _0x49595a=asPlainObject(_0x435144);if(Object[_0x1888d7(0xcc)][_0x1888d7(0xcf)][_0x1888d7(0xd5)](_0x49595a,_0x1888d7(0xa7)))return{'found':!![],'value':_0x49595a[_0x1888d7(0xa7)]};return{'found':![]};}function firstPresent(..._0x11c5a2){for(const _0x1ad2a5 of _0x11c5a2){if(_0x1ad2a5!==undefined&&_0x1ad2a5!==null)return{'found':!![],'value':_0x1ad2a5};}return{'found':![]};}function assertExpectedBusinessGroup(_0x442a8c,_0x4c23ea){const _0xd10ce4=a60_0x530b30;if(_0x4c23ea===undefined)return;const _0x35d8ff=normalizeBusinessGroup(_0x4c23ea);if(_0x442a8c!==_0x35d8ff)throw CliErrors[_0xd10ce4(0xa1)](_0xd10ce4(0xce),_0xd10ce4(0xb3)+JSON['stringify'](_0x35d8ff)+_0xd10ce4(0xb8)+JSON['stringify'](_0x442a8c));}function buildBackendPayload(_0x29f41e,_0x590d92,_0x569468){const _0x5e3900=a60_0x530b30;return{'appCode':_0x29f41e,'datasetCode':_0x590d92[_0x5e3900(0xa6)],'businessGroup':_0x569468};}function normalizeBusinessGroup(_0x4a5294){const _0x57e560=a60_0x530b30;if(_0x4a5294===undefined||_0x4a5294===null)return'';return String(_0x4a5294)[_0x57e560(0xa0)]();}function asPlainObject(_0x27a55f){const _0x276bb1=a60_0x530b30;if(!_0x27a55f||typeof _0x27a55f!==_0x276bb1(0xb4)||Array[_0x276bb1(0x9d)](_0x27a55f))return{};return _0x27a55f;}function firstString(..._0x56c691){const _0x541368=a60_0x530b30;for(const _0x372f85 of _0x56c691){if(typeof _0x372f85==='string'&&_0x372f85[_0x541368(0xa0)]())return _0x372f85[_0x541368(0xa0)]();if(typeof _0x372f85===_0x541368(0x9a)&&Number['isFinite'](_0x372f85))return String(_0x372f85);}return undefined;}function firstNumber(..._0x43dc7f){const _0x21558d=a60_0x530b30;for(const _0xb2d59d of _0x43dc7f){if(typeof _0xb2d59d===_0x21558d(0x9a)&&Number[_0x21558d(0xb9)](_0xb2d59d))return _0xb2d59d;if(typeof _0xb2d59d===_0x21558d(0xa8)&&_0xb2d59d['trim']()&&Number['isFinite'](Number(_0xb2d59d)))return Number(_0xb2d59d);}return null;}function trim(_0x541a56){const _0x1cc5f5=a60_0x530b30;return String(_0x541a56||'')[_0x1cc5f5(0xa0)]();}
@@ -1 +1 @@
1
- const a61_0x476bbe=a61_0xac28;function a61_0x13d3(){const _0xba9e7d=['modelCode','如果只是查看运行态真实行数据,请切换到\x20lovrabet\x20CLI:','3422772EmgExN','21yJijlv','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27\x20--format\x20compress','object','toUpperCase','3TVoPUG','951112kvqodS','name','10158pJXSth','join','3297774ZiVrcb','932458VagfHd','datasetCode','source','tableName','dbId','2049784xLOgAE','5497365RhLVwv','getOne','\x20是\x20','lovrabet','UNKNOWN','请先将该数据集升级/迁移为\x20DB_TABLE\x20数据集,再基于新的\x20dataset\x20code\x20继续开发。','SQL\x20schema\x20validation','filter','datasetName','原因:schema\x20introspection\x20与\x20custom\x20SQL\x20需要\x20source=DB_TABLE、dbtableConfig.dbId、dbtableConfig.tableName\x20与数据库连接上下文。','当前数据集\x20\x22','validation','dbtable','dataset','unknown'];a61_0x13d3=function(){return _0xba9e7d;};return a61_0x13d3();}(function(_0x4f97c2,_0x5d8c6b){const _0x53bf4e=a61_0xac28,_0x17d16b=_0x4f97c2();while(!![]){try{const _0x2e3ab2=parseInt(_0x53bf4e(0xb8))/0x1+parseInt(_0x53bf4e(0xb5))/0x2+-parseInt(_0x53bf4e(0xb2))/0x3*(-parseInt(_0x53bf4e(0xb3))/0x4)+parseInt(_0x53bf4e(0xbe))/0x5+-parseInt(_0x53bf4e(0xb7))/0x6+-parseInt(_0x53bf4e(0xae))/0x7*(parseInt(_0x53bf4e(0xbd))/0x8)+-parseInt(_0x53bf4e(0xad))/0x9;if(_0x2e3ab2===_0x5d8c6b)break;else _0x17d16b['push'](_0x17d16b['shift']());}catch(_0x4f424b){_0x17d16b['push'](_0x17d16b['shift']());}}}(a61_0x13d3,0x8cab6));import{CliErrors}from'../../errors.js';export const RUNTIME_DATA_ACCESS_COMMANDS={'cli':a61_0x476bbe(0x9f),'filter':'lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27<json>\x27\x20--format\x20compress','getOne':a61_0x476bbe(0xaf)};export const RUNTIME_DATA_ACCESS_SUMMARY='Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.';function valueToString(_0x150ff0){return _0x150ff0==null?'':String(_0x150ff0)['trim']();}function getDatasetCode(_0x6fa1b8){const _0x14f28e=a61_0x476bbe;return valueToString(_0x6fa1b8['code']??_0x6fa1b8[_0x14f28e(0xab)]??_0x6fa1b8[_0x14f28e(0xa9)]?.[_0x14f28e(0xb9)]);}function getDatasetName(_0x3e8ddc){const _0x227f7b=a61_0x476bbe;return valueToString(_0x3e8ddc[_0x227f7b(0xb4)]??_0x3e8ddc[_0x227f7b(0xa9)]?.[_0x227f7b(0xa4)])||_0x227f7b(0xaa);}function getDatasetSource(_0x30563b){const _0x171775=a61_0x476bbe;return valueToString(_0x30563b[_0x171775(0xba)]??_0x30563b[_0x171775(0xa9)]?.['sourceType'])[_0x171775(0xb1)]();}function getDbtableConfig(_0x5cda39){const _0x7dded9=a61_0x476bbe,_0x3ecf8a=_0x5cda39['dbtableConfig']??_0x5cda39[_0x7dded9(0xa8)];return _0x3ecf8a&&typeof _0x3ecf8a===_0x7dded9(0xb0)?_0x3ecf8a:{};}export function isDbTableBackedDataset(_0x26d98f){const _0x553758=a61_0x476bbe,_0x12d567=getDatasetSource(_0x26d98f);if(_0x12d567==='METADATA')return![];const _0x206330=getDbtableConfig(_0x26d98f),_0x19c407=_0x206330[_0x553758(0xbc)]??_0x206330['id'],_0x2d4cf6=valueToString(_0x206330[_0x553758(0xbb)]??_0x26d98f[_0x553758(0xbb)]??_0x26d98f['dataset']?.[_0x553758(0xbb)]);return _0x19c407!==undefined&&_0x19c407!==null&&_0x2d4cf6['length']>0x0;}function a61_0xac28(_0x2ea4bf,_0x556083){_0x2ea4bf=_0x2ea4bf-0x9d;const _0x13d383=a61_0x13d3();let _0xac284=_0x13d383[_0x2ea4bf];return _0xac284;}export function filterDbTableBackedDatasets(_0x41fa7b){const _0x25cab8=a61_0x476bbe;return _0x41fa7b[_0x25cab8(0xa3)](_0x32d23a=>isDbTableBackedDataset(_0x32d23a));}export function buildDbTableBackedRequirementMessage(_0x42d290,_0x23620c=a61_0x476bbe(0xa2)){const _0x38442a=a61_0x476bbe,_0x3141dd=getDatasetSource(_0x42d290)||_0x38442a(0xa0),_0x5bbb4e=getDatasetName(_0x42d290),_0x3f2fe5=getDatasetCode(_0x42d290),_0x55c3c1=_0x3f2fe5?'\x20('+_0x3f2fe5+')':'';return[_0x38442a(0xa6)+_0x5bbb4e+'\x22'+_0x55c3c1+_0x38442a(0x9e)+_0x3141dd+'\x20类型,没有可用于\x20'+_0x23620c+'\x20的\x20DB_TABLE\x20数据源上下文。',_0x38442a(0xa5),_0x38442a(0xa1),_0x38442a(0xac)+RUNTIME_DATA_ACCESS_COMMANDS[_0x38442a(0xa3)]+';'+RUNTIME_DATA_ACCESS_COMMANDS[_0x38442a(0x9d)]+'。'][_0x38442a(0xb6)]('\x20');}export function assertDatasetIsDbTableBacked(_0x5784f0,_0x5281e8){const _0x536fd5=a61_0x476bbe;if(!isDbTableBackedDataset(_0x5784f0))throw CliErrors[_0x536fd5(0xa7)](buildDbTableBackedRequirementMessage(_0x5784f0,_0x5281e8));}
1
+ const a61_0x56cb63=a61_0xc94e;(function(_0x5a39fc,_0x267b72){const _0x168dba=a61_0xc94e,_0xe06deb=_0x5a39fc();while(!![]){try{const _0x113525=-parseInt(_0x168dba(0x111))/0x1+-parseInt(_0x168dba(0xf9))/0x2+-parseInt(_0x168dba(0x10a))/0x3*(parseInt(_0x168dba(0xff))/0x4)+-parseInt(_0x168dba(0xf6))/0x5+-parseInt(_0x168dba(0x112))/0x6+-parseInt(_0x168dba(0xfe))/0x7+parseInt(_0x168dba(0x113))/0x8;if(_0x113525===_0x267b72)break;else _0xe06deb['push'](_0xe06deb['shift']());}catch(_0x213dc7){_0xe06deb['push'](_0xe06deb['shift']());}}}(a61_0x1a8a,0xe29b1));import{CliErrors}from'../../errors.js';export const RUNTIME_DATA_ACCESS_COMMANDS={'cli':'lovrabet','filter':a61_0x56cb63(0x10e),'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='Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.';function valueToString(_0xc464df){const _0x4a7b9b=a61_0x56cb63;return _0xc464df==null?'':String(_0xc464df)[_0x4a7b9b(0x100)]();}function getDatasetCode(_0x21284c){const _0x27464a=a61_0x56cb63;return valueToString(_0x21284c[_0x27464a(0x10c)]??_0x21284c['modelCode']??_0x21284c['dataset']?.[_0x27464a(0x106)]);}function getDatasetName(_0x2bdac3){const _0x20e360=a61_0x56cb63;return valueToString(_0x2bdac3[_0x20e360(0xf8)]??_0x2bdac3[_0x20e360(0x109)]?.[_0x20e360(0x102)])||_0x20e360(0x104);}function getDatasetSource(_0x1a6765){const _0x54ca0b=a61_0x56cb63;return valueToString(_0x1a6765[_0x54ca0b(0x107)]??_0x1a6765['dataset']?.[_0x54ca0b(0xfd)])[_0x54ca0b(0x10d)]();}function getDbtableConfig(_0x3a279d){const _0x6714b5=a61_0x56cb63,_0x14dbd8=_0x3a279d[_0x6714b5(0x101)]??_0x3a279d[_0x6714b5(0xfb)];return _0x14dbd8&&typeof _0x14dbd8===_0x6714b5(0x110)?_0x14dbd8:{};}function a61_0xc94e(_0x393984,_0x4db7cc){_0x393984=_0x393984-0xf4;const _0x1a8a29=a61_0x1a8a();let _0xc94e20=_0x1a8a29[_0x393984];return _0xc94e20;}export function isDbTableBackedDataset(_0x1282ae){const _0x30c33e=a61_0x56cb63,_0x16900b=getDatasetSource(_0x1282ae);if(_0x16900b===_0x30c33e(0x105))return![];const _0x1268d0=getDbtableConfig(_0x1282ae),_0x1a8a39=_0x1268d0[_0x30c33e(0x114)]??_0x1268d0['id'],_0x3bbde1=valueToString(_0x1268d0[_0x30c33e(0x10b)]??_0x1282ae[_0x30c33e(0x10b)]??_0x1282ae[_0x30c33e(0x109)]?.[_0x30c33e(0x10b)]);return _0x1a8a39!==undefined&&_0x1a8a39!==null&&_0x3bbde1['length']>0x0;}export function filterDbTableBackedDatasets(_0x581fba){return _0x581fba['filter'](_0x2efd51=>isDbTableBackedDataset(_0x2efd51));}export function buildDbTableBackedRequirementMessage(_0x5c67ad,_0x10d140=a61_0x56cb63(0xf7)){const _0x369894=a61_0x56cb63,_0x4f9698=getDatasetSource(_0x5c67ad)||_0x369894(0xfc),_0x23b8e9=getDatasetName(_0x5c67ad),_0x5b7411=getDatasetCode(_0x5c67ad),_0xee8912=_0x5b7411?'\x20('+_0x5b7411+')':'';return[_0x369894(0xf4)+_0x23b8e9+'\x22'+_0xee8912+'\x20是\x20'+_0x4f9698+_0x369894(0x10f)+_0x10d140+'\x20的\x20DB_TABLE\x20数据源上下文。',_0x369894(0xf5),_0x369894(0x103),_0x369894(0xfa)+RUNTIME_DATA_ACCESS_COMMANDS[_0x369894(0x108)]+';'+RUNTIME_DATA_ACCESS_COMMANDS['getOne']+'。']['join']('\x20');}function a61_0x1a8a(){const _0x2fe806=['5976876DHrqna','51579056ZBhnXL','dbId','validation','当前数据集\x20\x22','原因:schema\x20introspection\x20与\x20custom\x20SQL\x20需要\x20source=DB_TABLE、dbtableConfig.dbId、dbtableConfig.tableName\x20与数据库连接上下文。','96070FYiRsY','SQL\x20schema\x20validation','name','2081052EOYhKT','如果只是查看运行态真实行数据,请切换到\x20lovrabet\x20CLI:','dbtable','UNKNOWN','sourceType','4308248tGUGxs','1305336ojDRna','trim','dbtableConfig','datasetName','请先将该数据集升级/迁移为\x20DB_TABLE\x20数据集,再基于新的\x20dataset\x20code\x20继续开发。','unknown','METADATA','datasetCode','source','filter','dataset','15MHhyOp','tableName','code','toUpperCase','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27<json>\x27\x20--format\x20compress','\x20类型,没有可用于\x20','object','1216185sETWEm'];a61_0x1a8a=function(){return _0x2fe806;};return a61_0x1a8a();}export function assertDatasetIsDbTableBacked(_0x4f5499,_0x1cd58f){const _0x3e115e=a61_0x56cb63;if(!isDbTableBackedDataset(_0x4f5499))throw CliErrors[_0x3e115e(0x115)](buildDbTableBackedRequirementMessage(_0x4f5499,_0x1cd58f));}
@@ -1 +1 @@
1
- const a62_0x573c4f=a62_0x1a30;(function(_0x1cdcfb,_0x34f3fe){const _0x44b91e=a62_0x1a30,_0x5a6c79=_0x1cdcfb();while(!![]){try{const _0x3b651d=-parseInt(_0x44b91e(0xb2))/0x1+-parseInt(_0x44b91e(0x9e))/0x2*(-parseInt(_0x44b91e(0xa6))/0x3)+-parseInt(_0x44b91e(0xa8))/0x4+-parseInt(_0x44b91e(0xa2))/0x5+-parseInt(_0x44b91e(0xaf))/0x6+-parseInt(_0x44b91e(0x94))/0x7*(parseInt(_0x44b91e(0xa0))/0x8)+parseInt(_0x44b91e(0x8f))/0x9;if(_0x3b651d===_0x34f3fe)break;else _0x5a6c79['push'](_0x5a6c79['shift']());}catch(_0x254133){_0x5a6c79['push'](_0x5a6c79['shift']());}}}(a62_0x3f2d,0x30332));import{deleteDataset,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':a62_0x573c4f(0xa5),'description':a62_0x573c4f(0x9b)},DBID_FLAG={'name':a62_0x573c4f(0xab),'type':a62_0x573c4f(0xa5),'description':'Delete\x20all\x20datasets\x20under\x20this\x20database\x20connection\x20id'},CONFIRM_FLAG={'name':'confirm','type':a62_0x573c4f(0xae),'description':a62_0x573c4f(0x9c)},EXPECTED_COUNT_FLAG={'name':a62_0x573c4f(0xa4),'type':a62_0x573c4f(0xa5),'description':a62_0x573c4f(0xa3)};export const datasetDelete={'service':a62_0x573c4f(0x98),'command':a62_0x573c4f(0xa1),'description':a62_0x573c4f(0x8d),'risk':'high-risk-write','flags':[DATASET_ID_FLAG,CODE_FLAG_OPTIONAL,DBID_FLAG,CONFIRM_FLAG,EXPECTED_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x33ad2d){const _0x5f57ea=a62_0x573c4f,_0x218c25=_0x33ad2d[_0x5f57ea(0xad)]('id'),_0xf11be3=_0x33ad2d[_0x5f57ea(0xaa)](_0x5f57ea(0xb0)),_0x51a421=_0x33ad2d[_0x5f57ea(0xad)](_0x5f57ea(0xab)),_0x47024e=[_0x218c25>0x0,Boolean(_0xf11be3),_0x51a421>0x0][_0x5f57ea(0xac)](Boolean);if(_0x47024e[_0x5f57ea(0x99)]===0x0)throw CliErrors[_0x5f57ea(0x8a)](_0x5f57ea(0xb5));if(_0x47024e['length']>0x1)throw CliErrors[_0x5f57ea(0x8a)](_0x5f57ea(0x88));},async 'dryRun'(_0x4ce9bb){const _0x4dfa16=a62_0x573c4f,_0x4cce43=await resolveTargets(_0x4ce9bb);return{'method':_0x4dfa16(0x87),'url':_0x4dfa16(0xa9),'body':{'appCode':_0x4ce9bb[_0x4dfa16(0x91)],'count':_0x4cce43['length'],'datasets':_0x4cce43},'description':_0x4dfa16(0x96)+_0x4cce43[_0x4dfa16(0x99)]+'\x20dataset(s).\x20This\x20only\x20deletes\x20platform\x20dataset\x20metadata\x20and\x20related\x20page/menu\x20records,\x20not\x20physical\x20databases\x20or\x20tables.'};},async 'execute'(_0x443226){const _0x527f03=a62_0x573c4f;if(!_0x443226[_0x527f03(0x8b)](_0x527f03(0x9a)))throw CliErrors['validation'](_0x527f03(0x92),'Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm\x20when\x20the\x20target\x20list\x20is\x20correct.');const _0x51682c=await resolveTargets(_0x443226),_0x377ba9=[],_0x2119cb=[];for(const _0x59aaf6 of _0x51682c){try{await deleteDataset(_0x443226[_0x527f03(0x91)],_0x59aaf6['id']),_0x377ba9['push'](_0x59aaf6);}catch(_0x64d238){_0x2119cb[_0x527f03(0xb3)]({..._0x59aaf6,'error':_0x64d238 instanceof Error?_0x64d238[_0x527f03(0x93)]:String(_0x64d238)});}}if(_0x2119cb[_0x527f03(0x99)]>0x0)return{'ok':![],'data':{'requested':_0x51682c[_0x527f03(0x99)],'deletedCount':_0x377ba9['length'],'failedCount':_0x2119cb['length'],'deleted':_0x377ba9,'failed':_0x2119cb},'message':_0x527f03(0xb7)+_0x377ba9['length']+'/'+_0x51682c[_0x527f03(0x99)]+'\x20dataset(s);\x20'+_0x2119cb[_0x527f03(0x99)]+_0x527f03(0xb4)};return{'ok':!![],'data':{'requested':_0x51682c['length'],'deletedCount':_0x377ba9[_0x527f03(0x99)],'deleted':_0x377ba9},'message':_0x527f03(0xb7)+_0x377ba9[_0x527f03(0x99)]+_0x527f03(0x8e)};}};async function resolveTargets(_0x59eacc){const _0x21a792=a62_0x573c4f,_0x2320a7=_0x59eacc[_0x21a792(0xad)]('id'),_0x16866f=_0x59eacc['str'](_0x21a792(0xb0)),_0x3c6f1f=_0x59eacc[_0x21a792(0xad)](_0x21a792(0xab));let _0x1e854f;_0x16866f?(_0x1e854f=await listDatasets(_0x59eacc[_0x21a792(0x91)],{'code':_0x16866f}),_0x1e854f=_0x1e854f[_0x21a792(0xac)](_0x3d46c6=>_0x3d46c6['code']===_0x16866f)):(_0x1e854f=await listDatasets(_0x59eacc[_0x21a792(0x91)]),_0x2320a7>0x0&&(_0x1e854f=_0x1e854f[_0x21a792(0xac)](_0x15dda0=>_0x15dda0['id']===_0x2320a7)),_0x3c6f1f>0x0&&(_0x1e854f=_0x1e854f[_0x21a792(0xac)](_0x4903a5=>_0x4903a5[_0x21a792(0x97)]?.['dbId']===_0x3c6f1f)));const _0x8ee6df=_0x1e854f['map'](normalizeTarget);if(_0x8ee6df[_0x21a792(0x99)]===0x0){const _0xc21b64=_0x16866f||(_0x2320a7>0x0?_0x21a792(0xb1)+_0x2320a7:_0x21a792(0x95)+_0x3c6f1f);throw CliErrors['validation'](_0x21a792(0x90)+_0xc21b64+'.');}const _0x174416=_0x59eacc[_0x21a792(0xad)]('expected-count');if(_0x174416>0x0&&_0x8ee6df['length']!==_0x174416)throw CliErrors[_0x21a792(0x8a)]('Matched\x20'+_0x8ee6df[_0x21a792(0x99)]+_0x21a792(0xa7)+_0x174416+'.');return _0x8ee6df;}function normalizeTarget(_0x482662){const _0xa319bd=a62_0x573c4f,_0x307b5f=_0x482662[_0xa319bd(0x97)]??{};return{'id':_0x482662['id'],'code':_0x482662['code'],'name':_0x482662[_0xa319bd(0xb6)],'description':_0x482662['description'],'source':_0x482662[_0xa319bd(0x8c)],'dbId':_0x307b5f[_0xa319bd(0x89)],'dbName':_0x307b5f['dbName'],'tableName':_0x307b5f['tableName'],'relatedPageCount':Array[_0xa319bd(0x9d)](_0x482662[_0xa319bd(0x9f)])?_0x482662[_0xa319bd(0x9f)][_0xa319bd(0x99)]:undefined};}function a62_0x1a30(_0x37ada5,_0x419bf0){_0x37ada5=_0x37ada5-0x87;const _0x3f2d94=a62_0x3f2d();let _0x1a3055=_0x3f2d94[_0x37ada5];return _0x1a3055;}function a62_0x3f2d(){const _0x21e32a=['boolean','22740vRGgqE','code','id=','279605inrByT','push','\x20failed','One\x20of\x20--id,\x20--code,\x20or\x20--dbid\x20is\x20required.','name','Deleted\x20','POST','Use\x20only\x20one\x20of\x20--id,\x20--code,\x20or\x20--dbid.','dbId','validation','bool','source','Delete\x20dataset\x20metadata\x20by\x20id/code\x20or\x20all\x20datasets\x20under\x20a\x20db\x20id','\x20dataset(s)','9039915BjjhDP','No\x20undeleted\x20dataset\x20found\x20for\x20','appCode','--confirm\x20is\x20required\x20to\x20delete\x20datasets.','message','2067709AmKjlZ','dbid=','Would\x20delete\x20','dbtableConfig','dataset','length','confirm','Dataset\x20id','Required\x20to\x20execute\x20dataset\x20deletion','isArray','208762fccoVc','relationPages','8wlAlCP','delete','939055pYGzTI','Abort\x20unless\x20the\x20matched\x20dataset\x20count\x20equals\x20this\x20value','expected-count','number','3GhPtMF','\x20dataset(s),\x20but\x20--expected-count\x20is\x20','579188vBWwTC','/smartapi/dataset/delete-dataset','str','dbid','filter','num'];a62_0x3f2d=function(){return _0x21e32a;};return a62_0x3f2d();}
1
+ const a62_0x1b97fe=a62_0x3bce;(function(_0x19ba02,_0x2fb6c){const _0x1888af=a62_0x3bce,_0x65c3c1=_0x19ba02();while(!![]){try{const _0x5f379b=parseInt(_0x1888af(0xc5))/0x1*(parseInt(_0x1888af(0xb5))/0x2)+parseInt(_0x1888af(0xa6))/0x3*(-parseInt(_0x1888af(0xae))/0x4)+-parseInt(_0x1888af(0xa8))/0x5+parseInt(_0x1888af(0xb4))/0x6+-parseInt(_0x1888af(0x9e))/0x7+parseInt(_0x1888af(0x96))/0x8*(parseInt(_0x1888af(0xb0))/0x9)+parseInt(_0x1888af(0xaa))/0xa;if(_0x5f379b===_0x2fb6c)break;else _0x65c3c1['push'](_0x65c3c1['shift']());}catch(_0x251a34){_0x65c3c1['push'](_0x65c3c1['shift']());}}}(a62_0x1a17,0xac694));import{deleteDataset,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';const DATASET_ID_FLAG={'name':'id','type':'number','description':a62_0x1b97fe(0xa7)},DBID_FLAG={'name':a62_0x1b97fe(0xbd),'type':'number','description':a62_0x1b97fe(0xba)},CONFIRM_FLAG={'name':a62_0x1b97fe(0xbf),'type':a62_0x1b97fe(0x9c),'description':'Required\x20to\x20execute\x20dataset\x20deletion'},EXPECTED_COUNT_FLAG={'name':'expected-count','type':a62_0x1b97fe(0xb8),'description':a62_0x1b97fe(0xb1)};export const datasetDelete={'service':a62_0x1b97fe(0xaf),'command':'delete','description':a62_0x1b97fe(0xab),'risk':'high-risk-write','flags':[DATASET_ID_FLAG,CODE_FLAG_OPTIONAL,DBID_FLAG,CONFIRM_FLAG,EXPECTED_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x54f726){const _0x28b61f=a62_0x1b97fe,_0xb3301e=_0x54f726['num']('id'),_0xdd7795=_0x54f726[_0x28b61f(0x94)](_0x28b61f(0xc2)),_0x1e41a1=_0x54f726[_0x28b61f(0xa1)](_0x28b61f(0xbd)),_0x1cd285=[_0xb3301e>0x0,Boolean(_0xdd7795),_0x1e41a1>0x0]['filter'](Boolean);if(_0x1cd285['length']===0x0)throw CliErrors['validation'](_0x28b61f(0xb7));if(_0x1cd285['length']>0x1)throw CliErrors[_0x28b61f(0xad)](_0x28b61f(0xb3));},async 'dryRun'(_0x2c5478){const _0x4d2562=a62_0x1b97fe,_0x44c894=await resolveTargets(_0x2c5478);return{'method':_0x4d2562(0xb6),'url':_0x4d2562(0xa4),'body':{'appCode':_0x2c5478[_0x4d2562(0x99)],'count':_0x44c894[_0x4d2562(0x98)],'datasets':_0x44c894},'description':_0x4d2562(0xbe)+_0x44c894[_0x4d2562(0x98)]+'\x20dataset(s).\x20This\x20only\x20deletes\x20platform\x20dataset\x20metadata\x20and\x20related\x20page/menu\x20records,\x20not\x20physical\x20databases\x20or\x20tables.'};},async 'execute'(_0x581ca3){const _0x3493de=a62_0x1b97fe;if(!_0x581ca3[_0x3493de(0xa5)](_0x3493de(0xbf)))throw CliErrors[_0x3493de(0xad)](_0x3493de(0x9b),'Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm\x20when\x20the\x20target\x20list\x20is\x20correct.');const _0x1bb4c3=await resolveTargets(_0x581ca3),_0x48e805=[],_0x93a5f2=[];for(const _0x1b7947 of _0x1bb4c3){try{await deleteDataset(_0x581ca3[_0x3493de(0x99)],_0x1b7947['id']),_0x48e805[_0x3493de(0xbc)](_0x1b7947);}catch(_0x475a1f){_0x93a5f2[_0x3493de(0xbc)]({..._0x1b7947,'error':_0x475a1f instanceof Error?_0x475a1f['message']:String(_0x475a1f)});}}if(_0x93a5f2[_0x3493de(0x98)]>0x0)return{'ok':![],'data':{'requested':_0x1bb4c3[_0x3493de(0x98)],'deletedCount':_0x48e805[_0x3493de(0x98)],'failedCount':_0x93a5f2[_0x3493de(0x98)],'deleted':_0x48e805,'failed':_0x93a5f2},'message':_0x3493de(0xa9)+_0x48e805[_0x3493de(0x98)]+'/'+_0x1bb4c3[_0x3493de(0x98)]+_0x3493de(0xa2)+_0x93a5f2[_0x3493de(0x98)]+_0x3493de(0xa3)};return{'ok':!![],'data':{'requested':_0x1bb4c3[_0x3493de(0x98)],'deletedCount':_0x48e805[_0x3493de(0x98)],'deleted':_0x48e805},'message':_0x3493de(0xa9)+_0x48e805[_0x3493de(0x98)]+_0x3493de(0x95)};}};function a62_0x3bce(_0xe292f9,_0x4eae57){_0xe292f9=_0xe292f9-0x94;const _0x1a17e9=a62_0x1a17();let _0x3bce5a=_0x1a17e9[_0xe292f9];return _0x3bce5a;}async function resolveTargets(_0x3ae76b){const _0xb12eaf=a62_0x1b97fe,_0x1a1181=_0x3ae76b[_0xb12eaf(0xa1)]('id'),_0x58bbc2=_0x3ae76b[_0xb12eaf(0x94)](_0xb12eaf(0xc2)),_0x5a3e37=_0x3ae76b['num'](_0xb12eaf(0xbd));let _0x32c335;_0x58bbc2?(_0x32c335=await listDatasets(_0x3ae76b[_0xb12eaf(0x99)],{'code':_0x58bbc2}),_0x32c335=_0x32c335['filter'](_0x46d252=>_0x46d252[_0xb12eaf(0xc2)]===_0x58bbc2)):(_0x32c335=await listDatasets(_0x3ae76b[_0xb12eaf(0x99)]),_0x1a1181>0x0&&(_0x32c335=_0x32c335[_0xb12eaf(0xb9)](_0xed3532=>_0xed3532['id']===_0x1a1181)),_0x5a3e37>0x0&&(_0x32c335=_0x32c335[_0xb12eaf(0xb9)](_0x481c09=>_0x481c09[_0xb12eaf(0xbb)]?.[_0xb12eaf(0x9f)]===_0x5a3e37)));const _0x2d45a6=_0x32c335['map'](normalizeTarget);if(_0x2d45a6[_0xb12eaf(0x98)]===0x0){const _0xdd07f0=_0x58bbc2||(_0x1a1181>0x0?_0xb12eaf(0xc4)+_0x1a1181:_0xb12eaf(0xc0)+_0x5a3e37);throw CliErrors['validation'](_0xb12eaf(0xc3)+_0xdd07f0+'.');}const _0x468411=_0x3ae76b[_0xb12eaf(0xa1)]('expected-count');if(_0x468411>0x0&&_0x2d45a6[_0xb12eaf(0x98)]!==_0x468411)throw CliErrors['validation']('Matched\x20'+_0x2d45a6[_0xb12eaf(0x98)]+_0xb12eaf(0xac)+_0x468411+'.');return _0x2d45a6;}function normalizeTarget(_0xe7c12e){const _0x4f79de=a62_0x1b97fe,_0x2754db=_0xe7c12e[_0x4f79de(0xbb)]??{};return{'id':_0xe7c12e['id'],'code':_0xe7c12e[_0x4f79de(0xc2)],'name':_0xe7c12e['name'],'description':_0xe7c12e[_0x4f79de(0xc1)],'source':_0xe7c12e[_0x4f79de(0x9d)],'dbId':_0x2754db['dbId'],'dbName':_0x2754db[_0x4f79de(0xa0)],'tableName':_0x2754db[_0x4f79de(0x97)],'relatedPageCount':Array[_0x4f79de(0xb2)](_0xe7c12e['relationPages'])?_0xe7c12e[_0x4f79de(0x9a)][_0x4f79de(0x98)]:undefined};}function a62_0x1a17(){const _0x791e56=['9evoDyO','Abort\x20unless\x20the\x20matched\x20dataset\x20count\x20equals\x20this\x20value','isArray','Use\x20only\x20one\x20of\x20--id,\x20--code,\x20or\x20--dbid.','5675106CvzHvM','61734FLYVKK','POST','One\x20of\x20--id,\x20--code,\x20or\x20--dbid\x20is\x20required.','number','filter','Delete\x20all\x20datasets\x20under\x20this\x20database\x20connection\x20id','dbtableConfig','push','dbid','Would\x20delete\x20','confirm','dbid=','description','code','No\x20undeleted\x20dataset\x20found\x20for\x20','id=','7hctFYK','str','\x20dataset(s)','10120944YFFAWY','tableName','length','appCode','relationPages','--confirm\x20is\x20required\x20to\x20delete\x20datasets.','boolean','source','9020368mplUIW','dbId','dbName','num','\x20dataset(s);\x20','\x20failed','/smartapi/dataset/delete-dataset','bool','46749lxGzqQ','Dataset\x20id','6759125eyyywJ','Deleted\x20','16831740wUIefX','Delete\x20dataset\x20metadata\x20by\x20id/code\x20or\x20all\x20datasets\x20under\x20a\x20db\x20id','\x20dataset(s),\x20but\x20--expected-count\x20is\x20','validation','196ecaKdS','dataset'];a62_0x1a17=function(){return _0x791e56;};return a62_0x1a17();}
@@ -1 +1 @@
1
- const a63_0x199a76=a63_0x533f;(function(_0x47d5fa,_0x2b174b){const _0x6523e1=a63_0x533f,_0x528bb5=_0x47d5fa();while(!![]){try{const _0x31a625=-parseInt(_0x6523e1(0x1cd))/0x1+parseInt(_0x6523e1(0x1af))/0x2*(parseInt(_0x6523e1(0x1f9))/0x3)+parseInt(_0x6523e1(0x1f1))/0x4+parseInt(_0x6523e1(0x1b9))/0x5+-parseInt(_0x6523e1(0x1cc))/0x6*(-parseInt(_0x6523e1(0x1d0))/0x7)+-parseInt(_0x6523e1(0x1f6))/0x8*(parseInt(_0x6523e1(0x1b4))/0x9)+-parseInt(_0x6523e1(0x1a8))/0xa*(-parseInt(_0x6523e1(0x1d5))/0xb);if(_0x31a625===_0x2b174b)break;else _0x528bb5['push'](_0x528bb5['shift']());}catch(_0x281362){_0x528bb5['push'](_0x528bb5['shift']());}}}(a63_0x2fa6,0x99496));import{getDatasetDetail}from'../../core/api-client.js';function a63_0x533f(_0x3c157d,_0x21dde9){_0x3c157d=_0x3c157d-0x1a7;const _0x2fa6c4=a63_0x2fa6();let _0x533fb9=_0x2fa6c4[_0x3c157d];return _0x533fb9;}import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function normalizeField(_0x43520d){const _0x177c5e=a63_0x533f;if(_0x43520d[_0x177c5e(0x1da)])return null;const _0x38c136=Boolean(_0x43520d[_0x177c5e(0x1eb)]!==undefined||_0x43520d['doType']!==undefined);let _0x3bf167={};if(!_0x38c136&&typeof _0x43520d[_0x177c5e(0x1e9)]===_0x177c5e(0x1fc))try{_0x3bf167=JSON[_0x177c5e(0x1ed)](_0x43520d['extend']);}catch{}const _0x3065e6=_0x38c136?_0x43520d['name']:_0x43520d[_0x177c5e(0x1d7)],_0x1e776a=_0x38c136?_0x43520d['displayName']:_0x43520d[_0x177c5e(0x1ad)],_0x3e77de=_0x38c136?_0x43520d[_0x177c5e(0x1e3)]:_0x43520d[_0x177c5e(0x1e2)]||_0x43520d[_0x177c5e(0x1e6)],_0x1497a2=_0x38c136?_0x43520d[_0x177c5e(0x1ec)]===!![]:_0x3bf167[_0x177c5e(0x1ec)]===!![],_0x50ee4c=_0x38c136?_0x43520d[_0x177c5e(0x1b6)]===!![]:_0x3bf167[_0x177c5e(0x1b6)]===!![],_0x1785b7=_0x38c136?_0x43520d[_0x177c5e(0x1bf)]??null:_0x3bf167[_0x177c5e(0x1bf)]??null,_0x2221c3={'name':_0x3065e6,'displayName':_0x1e776a||_0x3065e6,'type':_0x3e77de,'dbType':_0x43520d[_0x177c5e(0x1c8)],'pk':_0x1497a2,'required':_0x50ee4c,'deprecated':_0x43520d[_0x177c5e(0x1bb)]===!![],'description':_0x43520d[_0x177c5e(0x1ea)]||undefined};return Array[_0x177c5e(0x1ee)](_0x1785b7)&&_0x1785b7[_0x177c5e(0x1db)]>0x0&&(_0x2221c3[_0x177c5e(0x1bf)]=_0x1785b7),_0x2221c3;}function parseJsonMaybe(_0x3d11db){const _0x1d012a=a63_0x533f;if(typeof _0x3d11db!==_0x1d012a(0x1fc))return _0x3d11db;try{return JSON['parse'](_0x3d11db);}catch{return _0x3d11db;}}function normalizeOperationEntry(_0x328349,_0x5cb2af){const _0x5af9a0=a63_0x533f;if(!_0x5cb2af||typeof _0x5cb2af!==_0x5af9a0(0x1d4))return null;if(!_0x5cb2af[_0x5af9a0(0x1dc)]||!_0x5cb2af[_0x5af9a0(0x1f7)])return null;const _0x37c682={'name':_0x328349,'method':_0x5cb2af[_0x5af9a0(0x1dc)],'path':_0x5cb2af['path']};if(_0x5cb2af[_0x5af9a0(0x1b2)])_0x37c682[_0x5af9a0(0x1b2)]=_0x5cb2af[_0x5af9a0(0x1b2)];if(_0x5cb2af[_0x5af9a0(0x1c9)]!=null){const _0x583a5b=parseJsonMaybe(_0x5cb2af['requestBody']);_0x37c682[_0x5af9a0(0x1c9)]=_0x583a5b;}if(_0x5cb2af['responseBody']!=null){const _0x550c4e=parseJsonMaybe(_0x5cb2af[_0x5af9a0(0x1d3)]);_0x37c682[_0x5af9a0(0x1d3)]=_0x550c4e;}if(_0x5cb2af[_0x5af9a0(0x1c5)]!=null)_0x37c682[_0x5af9a0(0x1c5)]=_0x5cb2af[_0x5af9a0(0x1c5)];if(_0x5cb2af[_0x5af9a0(0x1d6)]!=null)_0x37c682[_0x5af9a0(0x1d6)]=_0x5cb2af[_0x5af9a0(0x1d6)];if(Array[_0x5af9a0(0x1ee)](_0x5cb2af[_0x5af9a0(0x1d1)]))_0x37c682[_0x5af9a0(0x1d1)]=_0x5cb2af['requestFields'];if(Array[_0x5af9a0(0x1ee)](_0x5cb2af[_0x5af9a0(0x1b1)]))_0x37c682[_0x5af9a0(0x1b1)]=_0x5cb2af[_0x5af9a0(0x1b1)];return _0x37c682;}function summarizeDbtable(_0x28564d){const _0x2c4e2e=a63_0x533f,_0x7981d9={},_0x4f88a5=['dbId','dbName',_0x2c4e2e(0x1f5),_0x2c4e2e(0x1de),_0x2c4e2e(0x1ec),_0x2c4e2e(0x1c6),_0x2c4e2e(0x1aa),_0x2c4e2e(0x1a9),_0x2c4e2e(0x1b3),'creatorIdField',_0x2c4e2e(0x1ab),_0x2c4e2e(0x1b7),_0x2c4e2e(0x1a7),'labelField',_0x2c4e2e(0x1cf)];for(const _0x5610d9 of _0x4f88a5){if(_0x28564d[_0x5610d9]!==undefined)_0x7981d9[_0x5610d9]=_0x28564d[_0x5610d9];}return typeof _0x7981d9['allFields']==='string'&&_0x7981d9[_0x2c4e2e(0x1c6)]['length']>0x0&&(_0x7981d9[_0x2c4e2e(0x1e7)]=_0x7981d9[_0x2c4e2e(0x1c6)][_0x2c4e2e(0x1f3)](',')[_0x2c4e2e(0x1c3)](_0x22b6e5=>_0x22b6e5[_0x2c4e2e(0x1f2)]())[_0x2c4e2e(0x1c4)](Boolean)),_0x7981d9;}function normalizeRelatedPages(_0x115d0a){const _0x5d5c72=a63_0x533f;if(!Array[_0x5d5c72(0x1ee)](_0x115d0a))return[];return _0x115d0a['filter'](_0x3ea38e=>_0x3ea38e&&typeof _0x3ea38e===_0x5d5c72(0x1d4))[_0x5d5c72(0x1c3)](_0xf4f912=>({'id':_0xf4f912['id'],'type':_0xf4f912['type'],'code':_0xf4f912[_0x5d5c72(0x1d7)],'title':_0xf4f912['title'],'deleted':_0xf4f912[_0x5d5c72(0x1da)]===!![]}));}function a63_0x2fa6(){const _0x2fc4e7=['dataType','allFieldNames','main_sub','extend','description','displayName','pkField','parse','isArray','relationId','doVersion','942828FXNdlg','trim','split','source','tableName','184LkbqdA','path','properties','3gUKYXx','toFieldLabel','alias','string','modifierNameField','18250520UoqbnS','createTimeField','logicField','creatorNameField','relations','name','columnCodeListWithDeleted','470882GSeyGK','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','responseFields','host','updateTimeField','380637drUFpS','toDatasetName','required','modifierIdField','dbtableConfig','666125ajOzcU','dataset','deprecated','toTableName','read','fromField','options','detail','operations','modelCode','map','filter','beforeScriptId','allFields','formatRules','dbType','requestBody','dbId','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','358338kwdsUv','948270zOTAyE','toField','dblinkInfoDTO','14cqFmea','requestFields','validateRules','responseBody','object','11bSUkJe','afterScriptId','code','cardinality','indexes','deleted','length','method','str','datasetKey','fields','toDatasetCode','dbName','type','doType','sourceType','tableComment'];a63_0x2fa6=function(){return _0x2fc4e7;};return a63_0x2fa6();}export const datasetDetail={'service':a63_0x199a76(0x1ba),'command':a63_0x199a76(0x1c0),'description':a63_0x199a76(0x1cb),'risk':a63_0x199a76(0x1bd),'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a63_0x199a76(0x1fb),'type':a63_0x199a76(0x1fc),'description':a63_0x199a76(0x1b0)}],async 'execute'(_0x1721ae){const _0xa8bdb1=a63_0x199a76,_0x49b73d=await getDatasetDetail(_0x1721ae[_0xa8bdb1(0x1dd)](_0xa8bdb1(0x1d7))),_0x48127c=Array['isArray'](_0x49b73d['fields'])?_0x49b73d[_0xa8bdb1(0x1df)]:Array['isArray'](_0x49b73d[_0xa8bdb1(0x1f8)])?_0x49b73d[_0xa8bdb1(0x1f8)]:[],_0x34538d=_0x48127c[_0xa8bdb1(0x1c3)](_0xb47d17=>normalizeField(_0xb47d17))[_0xa8bdb1(0x1c4)](_0x5dcf93=>_0x5dcf93!==null),_0x2b77b0=_0x49b73d[_0xa8bdb1(0x1c1)]??{},_0x4e2deb=[];for(const [_0x5855b5,_0x5586a4]of Object['entries'](_0x2b77b0)){const _0x5ef9d0=normalizeOperationEntry(_0x5855b5,_0x5586a4);if(_0x5ef9d0)_0x4e2deb['push'](_0x5ef9d0);}const _0xeb7867=_0x49b73d[_0xa8bdb1(0x1b8)]??{},_0x3f68f5=_0x49b73d[_0xa8bdb1(0x1ba)]??{},_0x1a81c3=_0xeb7867[_0xa8bdb1(0x1ca)]!=null?{'id':_0xeb7867[_0xa8bdb1(0x1ca)],'name':_0xeb7867[_0xa8bdb1(0x1e1)]??null}:undefined;let _0x5ea862;return typeof _0x49b73d[_0xa8bdb1(0x1e9)]===_0xa8bdb1(0x1fc)&&(_0x5ea862=parseJsonMaybe(_0x49b73d[_0xa8bdb1(0x1e9)])),{'ok':!![],'data':{'id':_0x49b73d['modelId']??_0x49b73d['id'],'name':_0x49b73d[_0xa8bdb1(0x1ad)],'code':_0x49b73d[_0xa8bdb1(0x1c2)]||_0x49b73d[_0xa8bdb1(0x1d7)],'doVersion':_0x49b73d[_0xa8bdb1(0x1f0)],'description':_0x49b73d[_0xa8bdb1(0x1ea)]||_0x3f68f5[_0xa8bdb1(0x1e5)]||undefined,'source':_0x49b73d[_0xa8bdb1(0x1f4)]||_0x3f68f5[_0xa8bdb1(0x1e4)],'table':_0xeb7867[_0xa8bdb1(0x1f5)]||_0x3f68f5[_0xa8bdb1(0x1f5)],'datasetKey':_0xeb7867[_0xa8bdb1(0x1de)],'pk':_0xeb7867['pkField'],'db':_0x1a81c3,'dbtable':summarizeDbtable(_0xeb7867),'fields':_0x34538d,'operations':_0x4e2deb,'indexes':Array['isArray'](_0x3f68f5[_0xa8bdb1(0x1d9)])?_0x3f68f5['indexes']:[],'relations':Array[_0xa8bdb1(0x1ee)](_0x49b73d[_0xa8bdb1(0x1ac)])?_0x49b73d['relations'][_0xa8bdb1(0x1c3)](_0x1e2f79=>({..._0x1e2f79[_0xa8bdb1(0x1ef)]!=null?{'relationId':_0x1e2f79[_0xa8bdb1(0x1ef)]}:{},'fromDataset':_0x49b73d['name'],'fromCode':_0x49b73d['modelCode']||_0x49b73d['code'],'fromTable':_0xeb7867['tableName']||_0x3f68f5['tableName'],'fromField':_0x1e2f79[_0xa8bdb1(0x1be)],'toDataset':_0x1e2f79[_0xa8bdb1(0x1b5)],'toCode':_0x1e2f79[_0xa8bdb1(0x1e0)],'toTable':_0x1e2f79[_0xa8bdb1(0x1bc)],'toField':_0x1e2f79[_0xa8bdb1(0x1ce)],'labelField':_0x1e2f79[_0xa8bdb1(0x1fa)]||undefined,'cardinality':_0x1e2f79[_0xa8bdb1(0x1d8)]||undefined,'bizRelationType':_0x1e2f79['bizRelationType']==='main_sub'?_0xa8bdb1(0x1e8):null})):[],'relatedPages':normalizeRelatedPages(_0x49b73d['relatedPageInfoList']),...Array['isArray'](_0x49b73d['columnCodeListWithDeleted'])?{'columnCodeListWithDeleted':_0x49b73d[_0xa8bdb1(0x1ae)]}:{},'formatRules':Array['isArray'](_0x49b73d['formatRules'])?_0x49b73d[_0xa8bdb1(0x1c7)]:[],'validateRules':Array[_0xa8bdb1(0x1ee)](_0x49b73d[_0xa8bdb1(0x1d2)])?_0x49b73d[_0xa8bdb1(0x1d2)]:[],..._0x5ea862!==undefined?{'extend':_0x5ea862}:{},'stats':{'fieldCount':_0x34538d[_0xa8bdb1(0x1db)],'operationCount':_0x4e2deb[_0xa8bdb1(0x1db)]}}};}};
1
+ const a63_0x4fc884=a63_0x4941;(function(_0xdee54,_0x153121){const _0x5d20dc=a63_0x4941,_0x7821c7=_0xdee54();while(!![]){try{const _0x385d4b=parseInt(_0x5d20dc(0x1fb))/0x1*(-parseInt(_0x5d20dc(0x1d0))/0x2)+parseInt(_0x5d20dc(0x1b8))/0x3*(parseInt(_0x5d20dc(0x1ed))/0x4)+-parseInt(_0x5d20dc(0x1e8))/0x5+parseInt(_0x5d20dc(0x1da))/0x6*(parseInt(_0x5d20dc(0x1db))/0x7)+-parseInt(_0x5d20dc(0x1e2))/0x8*(-parseInt(_0x5d20dc(0x1f6))/0x9)+parseInt(_0x5d20dc(0x1e1))/0xa+parseInt(_0x5d20dc(0x1e7))/0xb*(-parseInt(_0x5d20dc(0x1f3))/0xc);if(_0x385d4b===_0x153121)break;else _0x7821c7['push'](_0x7821c7['shift']());}catch(_0x488c9b){_0x7821c7['push'](_0x7821c7['shift']());}}}(a63_0x4722,0xa802f));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function normalizeField(_0x551e93){const _0x559f3a=a63_0x4941;if(_0x551e93['deleted'])return null;const _0x449800=Boolean(_0x551e93['displayName']!==undefined||_0x551e93[_0x559f3a(0x1c7)]!==undefined);let _0x525ae1={};if(!_0x449800&&typeof _0x551e93[_0x559f3a(0x1bf)]==='string')try{_0x525ae1=JSON['parse'](_0x551e93[_0x559f3a(0x1bf)]);}catch{}const _0x49befd=_0x449800?_0x551e93[_0x559f3a(0x1fa)]:_0x551e93[_0x559f3a(0x1c9)],_0x2d6a21=_0x449800?_0x551e93[_0x559f3a(0x1d3)]:_0x551e93[_0x559f3a(0x1fa)],_0x1346cc=_0x449800?_0x551e93[_0x559f3a(0x1c7)]:_0x551e93[_0x559f3a(0x1f8)]||_0x551e93[_0x559f3a(0x1ba)],_0x71cb5c=_0x449800?_0x551e93['pkField']===!![]:_0x525ae1['pkField']===!![],_0x100581=_0x449800?_0x551e93['required']===!![]:_0x525ae1[_0x559f3a(0x1ca)]===!![],_0x22cfc4=_0x449800?_0x551e93['options']??null:_0x525ae1[_0x559f3a(0x1e5)]??null,_0x19e5f0={'name':_0x49befd,'displayName':_0x2d6a21||_0x49befd,'type':_0x1346cc,'dbType':_0x551e93['dbType'],'pk':_0x71cb5c,'required':_0x100581,'deprecated':_0x551e93[_0x559f3a(0x1cd)]===!![],'description':_0x551e93[_0x559f3a(0x1ce)]||undefined};return Array['isArray'](_0x22cfc4)&&_0x22cfc4['length']>0x0&&(_0x19e5f0[_0x559f3a(0x1e5)]=_0x22cfc4),_0x19e5f0;}function parseJsonMaybe(_0x4de2d0){const _0x1b718a=a63_0x4941;if(typeof _0x4de2d0!==_0x1b718a(0x1ea))return _0x4de2d0;try{return JSON[_0x1b718a(0x1b2)](_0x4de2d0);}catch{return _0x4de2d0;}}function a63_0x4722(){const _0x30f3b3=['labelField','modelCode','split','detail','object','dataset','6342KMPmhr','763ehxWpg','isArray','tableName','filter','validateRules','modifierNameField','11596760KBmbxz','4863552hAZkks','dblinkInfoDTO','cardinality','options','toTableName','7359kwTsJt','6141755LRydBg','properties','string','toFieldLabel','responseFields','13352GtRLGj','str','toDatasetCode','sourceType','requestBody','creatorNameField','10308JVKSYJ','modifierIdField','pkField','9DmxOxZ','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','type','relations','name','1wwjpdr','relatedPageInfoList','dbId','allFields','requestFields','trim','parse','length','title','formatRules','main_sub','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','708KcnAcJ','push','dataType','beforeScriptId','host','responseBody','toField','extend','map','modelId','columnCodeListWithDeleted','afterScriptId','datasetKey','createTimeField','tableComment','doType','fields','code','required','logicField','read','deprecated','description','indexes','358808TMVOfd','dbName','alias','displayName'];a63_0x4722=function(){return _0x30f3b3;};return a63_0x4722();}function normalizeOperationEntry(_0x2f12aa,_0x4eb333){const _0x207962=a63_0x4941;if(!_0x4eb333||typeof _0x4eb333!==_0x207962(0x1d8))return null;if(!_0x4eb333['method']||!_0x4eb333['path'])return null;const _0x133510={'name':_0x2f12aa,'method':_0x4eb333['method'],'path':_0x4eb333['path']};if(_0x4eb333[_0x207962(0x1bc)])_0x133510[_0x207962(0x1bc)]=_0x4eb333['host'];if(_0x4eb333[_0x207962(0x1f1)]!=null){const _0x5acba9=parseJsonMaybe(_0x4eb333[_0x207962(0x1f1)]);_0x133510['requestBody']=_0x5acba9;}if(_0x4eb333[_0x207962(0x1bd)]!=null){const _0x3184c1=parseJsonMaybe(_0x4eb333['responseBody']);_0x133510[_0x207962(0x1bd)]=_0x3184c1;}if(_0x4eb333[_0x207962(0x1bb)]!=null)_0x133510[_0x207962(0x1bb)]=_0x4eb333[_0x207962(0x1bb)];if(_0x4eb333[_0x207962(0x1c3)]!=null)_0x133510[_0x207962(0x1c3)]=_0x4eb333[_0x207962(0x1c3)];if(Array[_0x207962(0x1dc)](_0x4eb333['requestFields']))_0x133510[_0x207962(0x1b0)]=_0x4eb333[_0x207962(0x1b0)];if(Array[_0x207962(0x1dc)](_0x4eb333[_0x207962(0x1ec)]))_0x133510[_0x207962(0x1ec)]=_0x4eb333['responseFields'];return _0x133510;}function a63_0x4941(_0x2882e5,_0x3bdc83){_0x2882e5=_0x2882e5-0x1af;const _0x4722d6=a63_0x4722();let _0x494184=_0x4722d6[_0x2882e5];return _0x494184;}function summarizeDbtable(_0x2b1e78){const _0x17e073=a63_0x4941,_0x4c6dd6={},_0x43c563=['dbId',_0x17e073(0x1d1),_0x17e073(0x1dd),_0x17e073(0x1c4),_0x17e073(0x1f5),'allFields',_0x17e073(0x1cb),_0x17e073(0x1c5),'updateTimeField','creatorIdField',_0x17e073(0x1f2),_0x17e073(0x1f4),_0x17e073(0x1e0),_0x17e073(0x1d4),_0x17e073(0x1e3)];for(const _0x59d7da of _0x43c563){if(_0x2b1e78[_0x59d7da]!==undefined)_0x4c6dd6[_0x59d7da]=_0x2b1e78[_0x59d7da];}return typeof _0x4c6dd6[_0x17e073(0x1af)]===_0x17e073(0x1ea)&&_0x4c6dd6[_0x17e073(0x1af)]['length']>0x0&&(_0x4c6dd6['allFieldNames']=_0x4c6dd6[_0x17e073(0x1af)][_0x17e073(0x1d6)](',')[_0x17e073(0x1c0)](_0xcd9731=>_0xcd9731[_0x17e073(0x1b1)]())[_0x17e073(0x1de)](Boolean)),_0x4c6dd6;}function normalizeRelatedPages(_0x4ca7d4){const _0x1747e6=a63_0x4941;if(!Array['isArray'](_0x4ca7d4))return[];return _0x4ca7d4[_0x1747e6(0x1de)](_0x29ea65=>_0x29ea65&&typeof _0x29ea65===_0x1747e6(0x1d8))[_0x1747e6(0x1c0)](_0x14c493=>({'id':_0x14c493['id'],'type':_0x14c493['type'],'code':_0x14c493['code'],'title':_0x14c493[_0x1747e6(0x1b4)],'deleted':_0x14c493['deleted']===!![]}));}export const datasetDetail={'service':a63_0x4fc884(0x1d9),'command':a63_0x4fc884(0x1d7),'description':a63_0x4fc884(0x1b7),'risk':a63_0x4fc884(0x1cc),'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a63_0x4fc884(0x1d2),'type':a63_0x4fc884(0x1ea),'description':a63_0x4fc884(0x1f7)}],async 'execute'(_0x2838d5){const _0x2a9ff3=a63_0x4fc884,_0x3dc2c2=await getDatasetDetail(_0x2838d5[_0x2a9ff3(0x1ee)]('code')),_0xe17775=Array[_0x2a9ff3(0x1dc)](_0x3dc2c2[_0x2a9ff3(0x1c8)])?_0x3dc2c2[_0x2a9ff3(0x1c8)]:Array['isArray'](_0x3dc2c2[_0x2a9ff3(0x1e9)])?_0x3dc2c2[_0x2a9ff3(0x1e9)]:[],_0x3282d6=_0xe17775[_0x2a9ff3(0x1c0)](_0x436276=>normalizeField(_0x436276))['filter'](_0x503095=>_0x503095!==null),_0x5c5a26=_0x3dc2c2['operations']??{},_0x2e7685=[];for(const [_0x1b44a4,_0x5a9b46]of Object['entries'](_0x5c5a26)){const _0xfba102=normalizeOperationEntry(_0x1b44a4,_0x5a9b46);if(_0xfba102)_0x2e7685[_0x2a9ff3(0x1b9)](_0xfba102);}const _0x53bb33=_0x3dc2c2['dbtableConfig']??{},_0x31fbfd=_0x3dc2c2[_0x2a9ff3(0x1d9)]??{},_0x1ee155=_0x53bb33[_0x2a9ff3(0x1fd)]!=null?{'id':_0x53bb33[_0x2a9ff3(0x1fd)],'name':_0x53bb33[_0x2a9ff3(0x1d1)]??null}:undefined;let _0x32199f;return typeof _0x3dc2c2['extend']===_0x2a9ff3(0x1ea)&&(_0x32199f=parseJsonMaybe(_0x3dc2c2[_0x2a9ff3(0x1bf)])),{'ok':!![],'data':{'id':_0x3dc2c2[_0x2a9ff3(0x1c1)]??_0x3dc2c2['id'],'name':_0x3dc2c2['name'],'code':_0x3dc2c2[_0x2a9ff3(0x1d5)]||_0x3dc2c2[_0x2a9ff3(0x1c9)],'doVersion':_0x3dc2c2['doVersion'],'description':_0x3dc2c2['description']||_0x31fbfd[_0x2a9ff3(0x1c6)]||undefined,'source':_0x3dc2c2['source']||_0x31fbfd[_0x2a9ff3(0x1f0)],'table':_0x53bb33[_0x2a9ff3(0x1dd)]||_0x31fbfd[_0x2a9ff3(0x1dd)],'datasetKey':_0x53bb33[_0x2a9ff3(0x1c4)],'pk':_0x53bb33[_0x2a9ff3(0x1f5)],'db':_0x1ee155,'dbtable':summarizeDbtable(_0x53bb33),'fields':_0x3282d6,'operations':_0x2e7685,'indexes':Array[_0x2a9ff3(0x1dc)](_0x31fbfd[_0x2a9ff3(0x1cf)])?_0x31fbfd[_0x2a9ff3(0x1cf)]:[],'relations':Array[_0x2a9ff3(0x1dc)](_0x3dc2c2[_0x2a9ff3(0x1f9)])?_0x3dc2c2[_0x2a9ff3(0x1f9)][_0x2a9ff3(0x1c0)](_0x20ad46=>({..._0x20ad46['relationId']!=null?{'relationId':_0x20ad46['relationId']}:{},'fromDataset':_0x3dc2c2[_0x2a9ff3(0x1fa)],'fromCode':_0x3dc2c2[_0x2a9ff3(0x1d5)]||_0x3dc2c2[_0x2a9ff3(0x1c9)],'fromTable':_0x53bb33[_0x2a9ff3(0x1dd)]||_0x31fbfd[_0x2a9ff3(0x1dd)],'fromField':_0x20ad46['fromField'],'toDataset':_0x20ad46['toDatasetName'],'toCode':_0x20ad46[_0x2a9ff3(0x1ef)],'toTable':_0x20ad46[_0x2a9ff3(0x1e6)],'toField':_0x20ad46[_0x2a9ff3(0x1be)],'labelField':_0x20ad46[_0x2a9ff3(0x1eb)]||undefined,'cardinality':_0x20ad46[_0x2a9ff3(0x1e4)]||undefined,'bizRelationType':_0x20ad46['bizRelationType']===_0x2a9ff3(0x1b6)?'main_sub':null})):[],'relatedPages':normalizeRelatedPages(_0x3dc2c2[_0x2a9ff3(0x1fc)]),...Array[_0x2a9ff3(0x1dc)](_0x3dc2c2[_0x2a9ff3(0x1c2)])?{'columnCodeListWithDeleted':_0x3dc2c2['columnCodeListWithDeleted']}:{},'formatRules':Array['isArray'](_0x3dc2c2[_0x2a9ff3(0x1b5)])?_0x3dc2c2['formatRules']:[],'validateRules':Array[_0x2a9ff3(0x1dc)](_0x3dc2c2[_0x2a9ff3(0x1df)])?_0x3dc2c2[_0x2a9ff3(0x1df)]:[],..._0x32199f!==undefined?{'extend':_0x32199f}:{},'stats':{'fieldCount':_0x3282d6[_0x2a9ff3(0x1b3)],'operationCount':_0x2e7685[_0x2a9ff3(0x1b3)]}}};}};
@@ -1 +1 @@
1
- const a64_0x244315=a64_0xfe88;(function(_0xef865c,_0x4b0875){const _0x4af7cf=a64_0xfe88,_0x2f9e05=_0xef865c();while(!![]){try{const _0x423213=parseInt(_0x4af7cf(0x1ca))/0x1+parseInt(_0x4af7cf(0x1c0))/0x2*(-parseInt(_0x4af7cf(0x18f))/0x3)+-parseInt(_0x4af7cf(0x19a))/0x4*(parseInt(_0x4af7cf(0x1b3))/0x5)+parseInt(_0x4af7cf(0x1a9))/0x6+parseInt(_0x4af7cf(0x1ba))/0x7*(-parseInt(_0x4af7cf(0x1ab))/0x8)+-parseInt(_0x4af7cf(0x18d))/0x9*(-parseInt(_0x4af7cf(0x1a6))/0xa)+parseInt(_0x4af7cf(0x1cb))/0xb;if(_0x423213===_0x4b0875)break;else _0x2f9e05['push'](_0x2f9e05['shift']());}catch(_0x1bb4b7){_0x2f9e05['push'](_0x2f9e05['shift']());}}}(a64_0x2368,0xe4d20));import{APPCODE_FLAG_OPTIONAL,CODE_FLAG}from'../../commands/common/flags.js';import{getDatasetDetail,updateDrivenData}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const MUTABLE_EXTEND_KEYS=new Set(),EXTEND_PATCH_REDIRECTS=new Map([[a64_0x244315(0x18c),{'message':a64_0x244315(0x1bc),'hint':'Use\x20`rabetbase\x20dataset\x20business-group-update`\x20to\x20update\x20business\x20model\x20groups.'}]]);export function parseJsonObjectFlag(_0x419009,_0x4bdfe8){const _0x33b824=a64_0x244315;if(!_0x419009)return undefined;let _0x221713;try{_0x221713=JSON[_0x33b824(0x1c3)](_0x419009);}catch(_0x3ebfb3){const _0x4bac6a=_0x3ebfb3 instanceof Error?_0x3ebfb3[_0x33b824(0x19c)]:String(_0x3ebfb3);throw CliErrors[_0x33b824(0x1c6)](_0x4bdfe8+_0x33b824(0x199)+_0x4bac6a);}if(!isPlainObject(_0x221713)||Array['isArray'](_0x221713))throw CliErrors[_0x33b824(0x1c6)](_0x4bdfe8+_0x33b824(0x1b1));return _0x221713;}export function validateExtendPatchKeys(_0x33a4ba){const _0x3d9e2f=a64_0x244315,_0x5ee6a0=Object[_0x3d9e2f(0x1a2)](_0x33a4ba);if(_0x5ee6a0[_0x3d9e2f(0x1ce)]===0x0)throw CliErrors['validation'](_0x3d9e2f(0x19b));for(const _0x3b179a of _0x5ee6a0){const _0x3e1a24=EXTEND_PATCH_REDIRECTS[_0x3d9e2f(0x190)](_0x3b179a);if(_0x3e1a24)throw CliErrors[_0x3d9e2f(0x1c6)](_0x3e1a24[_0x3d9e2f(0x19c)],_0x3e1a24[_0x3d9e2f(0x1b8)]);if(!MUTABLE_EXTEND_KEYS[_0x3d9e2f(0x1b6)](_0x3b179a))throw CliErrors['validation']('Unsupported\x20patch\x20key:\x20'+_0x3b179a,describeMutableExtendKeys());}}function describeMutableExtendKeys(){const _0x35b8e9=a64_0x244315,_0x39f141=Array[_0x35b8e9(0x1c1)](MUTABLE_EXTEND_KEYS)['sort']();return _0x39f141[_0x35b8e9(0x1ce)]>0x0?_0x35b8e9(0x1ad)+_0x39f141[_0x35b8e9(0x18e)](',\x20'):_0x35b8e9(0x1a4);}function a64_0x2368(){const _0x1b4182=['extend-update','datasetId','has','patch','hint','--expect-json','94045GKnjXJ','string','dataset\x20extend-update\x20does\x20not\x20support\x20businessGroup;\x20use\x20dataset\x20business-group-update','dataset','write','data','25812nKbzWD','from','isArray','parse','extend.','dbName','validation','shape','appCode','POST','1011835RfFIhm','33856526jdKtQd','expect','trim','length','Expected\x20','No\x20changes\x20for\x20dataset\x20extend','businessGroup','1431hkcCBa','join','381yUyyXZ','get','stringify','Updated\x20dataset\x20extend\x20(','--patch-json','value','entries','JSON\x20object\x20of\x20expected\x20current\x20extend\x20values;\x20mismatch\x20aborts\x20without\x20writing','push','Dataset\x20extend\x20must\x20be\x20a\x20JSON\x20object','\x20must\x20be\x20valid\x20JSON\x20object:\x20','148JPsEtJ','--patch-json\x20must\x20contain\x20at\x20least\x20one\x20key','message','extend','modelId','JSON\x20object\x20patch\x20for\x20dataset\x20top-level\x20extend;\x20current\x20allowlist\x20is\x20empty','code','sort','keys','datasetName','No\x20dataset\x20extend\x20patch\x20keys\x20are\x20currently\x20supported.','dbtableConfig','62110XEFFpK','--code\x20is\x20required','modelCode','5321898qUCdBz','expect-json','1072YdNLbl','Dry-run:\x20dataset\x20extend\x20would\x20change\x20(','Allowed\x20keys:\x20','tableName',',\x20actual\x20','patch-json','\x20must\x20be\x20a\x20JSON\x20object','str','214545oGNqRn'];a64_0x2368=function(){return _0x1b4182;};return a64_0x2368();}export function applyExtendPatch(_0x312889,_0xee7e2f){const _0xd64f85=a64_0x244315;validateExtendPatchKeys(_0xee7e2f);const _0x377864=deepClone(_0x312889),_0x2877af=[];for(const [_0x273bdb,_0x462602]of Object[_0xd64f85(0x195)](_0xee7e2f)){const _0x5533cf=_0x377864[_0x273bdb],_0x2ca1c0=deepClone(_0x462602);!deepEqual(_0x5533cf,_0x2ca1c0)&&(_0x377864[_0x273bdb]=_0x2ca1c0,_0x2877af[_0xd64f85(0x197)](_0xd64f85(0x1c4)+_0x273bdb));}return _0x2877af[_0xd64f85(0x1a1)](),{'after':_0x377864,'changedPaths':_0x2877af,'changed':_0x2877af[_0xd64f85(0x1ce)]>0x0};}export function assertExpectation(_0xd9ee7,_0x2162b5){const _0x156e60=a64_0x244315;if(!_0x2162b5)return;for(const [_0x1992f8,_0x237428]of Object[_0x156e60(0x195)](_0x2162b5)){const _0x3be7fa=_0xd9ee7[_0x1992f8];if(!deepEqual(_0x3be7fa,_0x237428))throw CliErrors['validation']('Expectation\x20mismatch\x20at\x20extend.'+_0x1992f8,_0x156e60(0x18a)+JSON[_0x156e60(0x191)](_0x237428)+_0x156e60(0x1af)+JSON[_0x156e60(0x191)](_0x3be7fa));}}export async function buildDatasetExtendUpdateResult({appCode:_0x21b79d,input:_0xe9a09f,dryRun:_0x2834f8}){const _0x56ef14=a64_0x244315;validateInput(_0xe9a09f);const _0x33b2d6=await getDatasetDetail(_0xe9a09f[_0x56ef14(0x1a0)]),_0x256bd9=parseDatasetExtend(_0x33b2d6[_0x56ef14(0x19d)]),_0x102944=deepClone(_0x256bd9[_0x56ef14(0x194)]);assertExpectation(_0x102944,_0xe9a09f[_0x56ef14(0x1cc)]);const {after:_0x1ac630,changedPaths:_0x47d09a,changed:_0x41fb86}=applyExtendPatch(_0x102944,_0xe9a09f[_0x56ef14(0x1b7)]),_0x473e69=summarizeDataset(_0x33b2d6,_0xe9a09f['code']);return _0x41fb86&&!_0x2834f8&&(_0x33b2d6[_0x56ef14(0x19d)]=serializeDatasetExtend(_0x1ac630,_0x256bd9[_0x56ef14(0x1c7)]),await updateDrivenData(_0x33b2d6)),{'ok':!![],'data':{'appCode':_0x21b79d,'selector':{'code':_0xe9a09f['code']},'dataset':_0x473e69,'dryRun':_0x2834f8,'changed':_0x41fb86,'changedPaths':_0x47d09a,'before':{'extend':_0x102944},'after':{'extend':_0x1ac630},'submitted':_0x41fb86&&!_0x2834f8},'message':_0x41fb86?_0x2834f8?_0x56ef14(0x1ac)+_0x47d09a[_0x56ef14(0x18e)](',\x20')+')':_0x56ef14(0x192)+_0x47d09a['join'](',\x20')+')':_0x56ef14(0x18b)};}export const datasetExtendUpdate={'service':a64_0x244315(0x1bd),'command':a64_0x244315(0x1b4),'description':'Patch\x20dataset\x20top-level\x20extend\x20safely','risk':a64_0x244315(0x1be),'flags':[CODE_FLAG,{'name':'patch-json','type':a64_0x244315(0x1bb),'required':!![],'description':a64_0x244315(0x19f)},{'name':a64_0x244315(0x1aa),'type':a64_0x244315(0x1bb),'required':![],'description':a64_0x244315(0x196)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x1e9219){validateInput(readExtendUpdateInput(_0x1e9219));},async 'dryRun'(_0x57bd17){const _0x2d891e=a64_0x244315,_0x33eeb4=await buildDatasetExtendUpdateResult({'appCode':_0x57bd17['appCode'],'input':readExtendUpdateInput(_0x57bd17),'dryRun':!![]});return{'method':_0x2d891e(0x1c9),'url':'/smartapi/dataset/update-driven-data','body':_0x33eeb4[_0x2d891e(0x1bf)],'description':_0x33eeb4[_0x2d891e(0x19c)]};},async 'execute'(_0x4224fa){const _0x248e94=a64_0x244315;return buildDatasetExtendUpdateResult({'appCode':_0x4224fa[_0x248e94(0x1c8)],'input':readExtendUpdateInput(_0x4224fa),'dryRun':![]});}};function a64_0xfe88(_0x46c860,_0xf032a9){_0x46c860=_0x46c860-0x18a;const _0x2368a6=a64_0x2368();let _0xfe8802=_0x2368a6[_0x46c860];return _0xfe8802;}function readExtendUpdateInput(_0x1c8f02){const _0x538493=a64_0x244315,_0x50a277=trim(_0x1c8f02[_0x538493(0x1b2)]('code')),_0x55137d=parseJsonObjectFlag(_0x1c8f02['str'](_0x538493(0x1b0)),_0x538493(0x193)),_0x41fea7=parseJsonObjectFlag(_0x1c8f02[_0x538493(0x1b2)](_0x538493(0x1aa)),_0x538493(0x1b9));return{'code':_0x50a277,'patch':_0x55137d||{},'expect':_0x41fea7};}function validateInput(_0x517873){const _0x5b81d6=a64_0x244315;if(!_0x517873[_0x5b81d6(0x1a0)])throw CliErrors['validation'](_0x5b81d6(0x1a7));validateExtendPatchKeys(_0x517873[_0x5b81d6(0x1b7)]);}function parseDatasetExtend(_0x218e10){const _0x113aab=a64_0x244315;if(typeof _0x218e10===_0x113aab(0x1bb)){const _0x5bdd9c=_0x218e10[_0x113aab(0x1cd)]();if(!_0x5bdd9c)return{'value':{},'shape':_0x113aab(0x1bb)};let _0xb402d0;try{_0xb402d0=JSON[_0x113aab(0x1c3)](_0x5bdd9c);}catch(_0x3709a1){const _0x15c9a7=_0x3709a1 instanceof Error?_0x3709a1['message']:String(_0x3709a1);throw CliErrors[_0x113aab(0x1c6)]('Dataset\x20extend\x20must\x20be\x20valid\x20JSON\x20object:\x20'+_0x15c9a7);}if(!isPlainObject(_0xb402d0)||Array[_0x113aab(0x1c2)](_0xb402d0))throw CliErrors[_0x113aab(0x1c6)](_0x113aab(0x198));return{'value':_0xb402d0,'shape':_0x113aab(0x1bb)};}if(_0x218e10===undefined||_0x218e10===null)return{'value':{},'shape':_0x113aab(0x1bb)};if(!isPlainObject(_0x218e10)||Array[_0x113aab(0x1c2)](_0x218e10))throw CliErrors['validation'](_0x113aab(0x198));return{'value':_0x218e10,'shape':'object'};}function serializeDatasetExtend(_0xd8c907,_0x2c60be){const _0x3406ac=a64_0x244315;return _0x2c60be==='string'?JSON[_0x3406ac(0x191)](_0xd8c907):_0xd8c907;}function summarizeDataset(_0x157045,_0x18bafb){const _0x2624f0=a64_0x244315,_0x1c41e7=isPlainObject(_0x157045[_0x2624f0(0x1bd)])?_0x157045[_0x2624f0(0x1bd)]:{},_0x16b9df=isPlainObject(_0x157045[_0x2624f0(0x1a5)])?_0x157045[_0x2624f0(0x1a5)]:{};return{'id':_0x157045[_0x2624f0(0x19e)]??_0x157045['id']??_0x1c41e7[_0x2624f0(0x1b5)]??null,'code':_0x157045[_0x2624f0(0x1a8)]??_0x157045[_0x2624f0(0x1a0)]??_0x1c41e7['datasetCode']??_0x18bafb,'name':_0x157045['name']??_0x1c41e7[_0x2624f0(0x1a3)]??null,'table':_0x16b9df[_0x2624f0(0x1ae)]??_0x1c41e7[_0x2624f0(0x1ae)]??null,'db':_0x16b9df[_0x2624f0(0x1c5)]??_0x16b9df['dbId']??null};}function deepClone(_0x35eae3){if(_0x35eae3===undefined)return _0x35eae3;return JSON['parse'](JSON['stringify'](_0x35eae3));}function deepEqual(_0x346ac7,_0x116281){const _0x4c7b42=a64_0x244315;return JSON['stringify'](_0x346ac7)===JSON[_0x4c7b42(0x191)](_0x116281);}function isPlainObject(_0x330908){const _0x1278dc=a64_0x244315;return Boolean(_0x330908)&&typeof _0x330908==='object'&&!Array[_0x1278dc(0x1c2)](_0x330908);}function trim(_0xcd25a2){const _0x2dc967=String(_0xcd25a2||'')['trim']();return _0x2dc967;}
1
+ const a64_0x4f6967=a64_0x431a;(function(_0x1fa9ce,_0x475003){const _0x59a853=a64_0x431a,_0x376bf5=_0x1fa9ce();while(!![]){try{const _0x5cb819=-parseInt(_0x59a853(0x113))/0x1*(-parseInt(_0x59a853(0x133))/0x2)+parseInt(_0x59a853(0x114))/0x3*(parseInt(_0x59a853(0x13d))/0x4)+parseInt(_0x59a853(0x106))/0x5+parseInt(_0x59a853(0x11e))/0x6+-parseInt(_0x59a853(0x11b))/0x7+-parseInt(_0x59a853(0x110))/0x8*(parseInt(_0x59a853(0x10a))/0x9)+-parseInt(_0x59a853(0x107))/0xa;if(_0x5cb819===_0x475003)break;else _0x376bf5['push'](_0x376bf5['shift']());}catch(_0x5ee360){_0x376bf5['push'](_0x376bf5['shift']());}}}(a64_0x30cf,0x97820));import{APPCODE_FLAG_OPTIONAL,CODE_FLAG}from'../../commands/common/flags.js';import{getDatasetDetail,updateDrivenData}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const MUTABLE_EXTEND_KEYS=new Set(),EXTEND_PATCH_REDIRECTS=new Map([[a64_0x4f6967(0x10b),{'message':'dataset\x20extend-update\x20does\x20not\x20support\x20businessGroup;\x20use\x20dataset\x20business-group-update','hint':a64_0x4f6967(0x12e)}]]);export function parseJsonObjectFlag(_0x5e8f74,_0x3a7d60){const _0x25b2c5=a64_0x4f6967;if(!_0x5e8f74)return undefined;let _0x37dead;try{_0x37dead=JSON[_0x25b2c5(0x109)](_0x5e8f74);}catch(_0x2b1058){const _0x2a4719=_0x2b1058 instanceof Error?_0x2b1058[_0x25b2c5(0x139)]:String(_0x2b1058);throw CliErrors[_0x25b2c5(0x13c)](_0x3a7d60+_0x25b2c5(0x105)+_0x2a4719);}if(!isPlainObject(_0x37dead)||Array['isArray'](_0x37dead))throw CliErrors['validation'](_0x3a7d60+_0x25b2c5(0x10c));return _0x37dead;}export function validateExtendPatchKeys(_0x551182){const _0x5db5aa=a64_0x4f6967,_0x5be41e=Object[_0x5db5aa(0x118)](_0x551182);if(_0x5be41e[_0x5db5aa(0x119)]===0x0)throw CliErrors['validation'](_0x5db5aa(0x123));for(const _0x529842 of _0x5be41e){const _0x4d359c=EXTEND_PATCH_REDIRECTS[_0x5db5aa(0x100)](_0x529842);if(_0x4d359c)throw CliErrors[_0x5db5aa(0x13c)](_0x4d359c[_0x5db5aa(0x139)],_0x4d359c['hint']);if(!MUTABLE_EXTEND_KEYS[_0x5db5aa(0x124)](_0x529842))throw CliErrors['validation'](_0x5db5aa(0x132)+_0x529842,describeMutableExtendKeys());}}function describeMutableExtendKeys(){const _0x586508=a64_0x4f6967,_0x477f45=Array[_0x586508(0x135)](MUTABLE_EXTEND_KEYS)[_0x586508(0x126)]();return _0x477f45[_0x586508(0x119)]>0x0?'Allowed\x20keys:\x20'+_0x477f45[_0x586508(0x101)](',\x20'):_0x586508(0x108);}export function applyExtendPatch(_0xc30048,_0x4780aa){const _0x44b18e=a64_0x4f6967;validateExtendPatchKeys(_0x4780aa);const _0x45d477=deepClone(_0xc30048),_0x26a181=[];for(const [_0x3da45d,_0x4ceffe]of Object[_0x44b18e(0x104)](_0x4780aa)){const _0x7d8ab1=_0x45d477[_0x3da45d],_0x19e998=deepClone(_0x4ceffe);!deepEqual(_0x7d8ab1,_0x19e998)&&(_0x45d477[_0x3da45d]=_0x19e998,_0x26a181[_0x44b18e(0x137)]('extend.'+_0x3da45d));}return _0x26a181[_0x44b18e(0x126)](),{'after':_0x45d477,'changedPaths':_0x26a181,'changed':_0x26a181[_0x44b18e(0x119)]>0x0};}export function assertExpectation(_0x47f25b,_0x4b4ba9){const _0x47de77=a64_0x4f6967;if(!_0x4b4ba9)return;for(const [_0x38484c,_0x3512f7]of Object[_0x47de77(0x104)](_0x4b4ba9)){const _0x311cdc=_0x47f25b[_0x38484c];if(!deepEqual(_0x311cdc,_0x3512f7))throw CliErrors[_0x47de77(0x13c)](_0x47de77(0x112)+_0x38484c,_0x47de77(0x120)+JSON[_0x47de77(0x130)](_0x3512f7)+',\x20actual\x20'+JSON[_0x47de77(0x130)](_0x311cdc));}}export async function buildDatasetExtendUpdateResult({appCode:_0x41e740,input:_0x5c3e1c,dryRun:_0x5f2679}){const _0x544cfc=a64_0x4f6967;validateInput(_0x5c3e1c);const _0x4a20b8=await getDatasetDetail(_0x5c3e1c['code']),_0x134a4d=parseDatasetExtend(_0x4a20b8['extend']),_0xd0fedd=deepClone(_0x134a4d['value']);assertExpectation(_0xd0fedd,_0x5c3e1c[_0x544cfc(0x111)]);const {after:_0x1e69db,changedPaths:_0x3d7d81,changed:_0x2a83e7}=applyExtendPatch(_0xd0fedd,_0x5c3e1c[_0x544cfc(0x116)]),_0x6a7048=summarizeDataset(_0x4a20b8,_0x5c3e1c[_0x544cfc(0x129)]);return _0x2a83e7&&!_0x5f2679&&(_0x4a20b8[_0x544cfc(0x12f)]=serializeDatasetExtend(_0x1e69db,_0x134a4d[_0x544cfc(0x117)]),await updateDrivenData(_0x4a20b8)),{'ok':!![],'data':{'appCode':_0x41e740,'selector':{'code':_0x5c3e1c[_0x544cfc(0x129)]},'dataset':_0x6a7048,'dryRun':_0x5f2679,'changed':_0x2a83e7,'changedPaths':_0x3d7d81,'before':{'extend':_0xd0fedd},'after':{'extend':_0x1e69db},'submitted':_0x2a83e7&&!_0x5f2679},'message':_0x2a83e7?_0x5f2679?_0x544cfc(0x13b)+_0x3d7d81[_0x544cfc(0x101)](',\x20')+')':_0x544cfc(0x136)+_0x3d7d81[_0x544cfc(0x101)](',\x20')+')':'No\x20changes\x20for\x20dataset\x20extend'};}export const datasetExtendUpdate={'service':a64_0x4f6967(0x11f),'command':'extend-update','description':'Patch\x20dataset\x20top-level\x20extend\x20safely','risk':a64_0x4f6967(0x13a),'flags':[CODE_FLAG,{'name':a64_0x4f6967(0x10e),'type':a64_0x4f6967(0x125),'required':!![],'description':'JSON\x20object\x20patch\x20for\x20dataset\x20top-level\x20extend;\x20current\x20allowlist\x20is\x20empty'},{'name':a64_0x4f6967(0x127),'type':a64_0x4f6967(0x125),'required':![],'description':a64_0x4f6967(0x11d)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3763b3){validateInput(readExtendUpdateInput(_0x3763b3));},async 'dryRun'(_0x7c4439){const _0xf606a0=a64_0x4f6967,_0x237f8d=await buildDatasetExtendUpdateResult({'appCode':_0x7c4439[_0xf606a0(0x122)],'input':readExtendUpdateInput(_0x7c4439),'dryRun':!![]});return{'method':'POST','url':'/smartapi/dataset/update-driven-data','body':_0x237f8d['data'],'description':_0x237f8d['message']};},async 'execute'(_0x4d01e1){return buildDatasetExtendUpdateResult({'appCode':_0x4d01e1['appCode'],'input':readExtendUpdateInput(_0x4d01e1),'dryRun':![]});}};function readExtendUpdateInput(_0xdc0c94){const _0x17047a=a64_0x4f6967,_0x54d7e9=trim(_0xdc0c94['str'](_0x17047a(0x129))),_0x3db02a=parseJsonObjectFlag(_0xdc0c94[_0x17047a(0x12d)](_0x17047a(0x10e)),_0x17047a(0x138)),_0x47ecf9=parseJsonObjectFlag(_0xdc0c94[_0x17047a(0x12d)]('expect-json'),_0x17047a(0x10f));return{'code':_0x54d7e9,'patch':_0x3db02a||{},'expect':_0x47ecf9};}function validateInput(_0x3c9ae5){const _0x554bf3=a64_0x4f6967;if(!_0x3c9ae5['code'])throw CliErrors['validation'](_0x554bf3(0x102));validateExtendPatchKeys(_0x3c9ae5[_0x554bf3(0x116)]);}function parseDatasetExtend(_0x1bee6d){const _0x246e7a=a64_0x4f6967;if(typeof _0x1bee6d===_0x246e7a(0x125)){const _0x5798e1=_0x1bee6d[_0x246e7a(0x103)]();if(!_0x5798e1)return{'value':{},'shape':_0x246e7a(0x125)};let _0x3a8a26;try{_0x3a8a26=JSON['parse'](_0x5798e1);}catch(_0x45dd61){const _0x1f9f39=_0x45dd61 instanceof Error?_0x45dd61[_0x246e7a(0x139)]:String(_0x45dd61);throw CliErrors[_0x246e7a(0x13c)](_0x246e7a(0x12a)+_0x1f9f39);}if(!isPlainObject(_0x3a8a26)||Array[_0x246e7a(0x134)](_0x3a8a26))throw CliErrors[_0x246e7a(0x13c)](_0x246e7a(0x121));return{'value':_0x3a8a26,'shape':_0x246e7a(0x125)};}if(_0x1bee6d===undefined||_0x1bee6d===null)return{'value':{},'shape':_0x246e7a(0x125)};if(!isPlainObject(_0x1bee6d)||Array['isArray'](_0x1bee6d))throw CliErrors['validation'](_0x246e7a(0x121));return{'value':_0x1bee6d,'shape':_0x246e7a(0x11a)};}function serializeDatasetExtend(_0x4896ef,_0x1b9945){const _0x1cd523=a64_0x4f6967;return _0x1b9945===_0x1cd523(0x125)?JSON[_0x1cd523(0x130)](_0x4896ef):_0x4896ef;}function summarizeDataset(_0xc67e37,_0xc9fe04){const _0x35c146=a64_0x4f6967,_0x480b29=isPlainObject(_0xc67e37[_0x35c146(0x11f)])?_0xc67e37[_0x35c146(0x11f)]:{},_0xb9bb64=isPlainObject(_0xc67e37[_0x35c146(0x115)])?_0xc67e37[_0x35c146(0x115)]:{};return{'id':_0xc67e37[_0x35c146(0x10d)]??_0xc67e37['id']??_0x480b29[_0x35c146(0x12c)]??null,'code':_0xc67e37[_0x35c146(0x128)]??_0xc67e37[_0x35c146(0x129)]??_0x480b29['datasetCode']??_0xc9fe04,'name':_0xc67e37['name']??_0x480b29['datasetName']??null,'table':_0xb9bb64[_0x35c146(0x131)]??_0x480b29[_0x35c146(0x131)]??null,'db':_0xb9bb64[_0x35c146(0x12b)]??_0xb9bb64[_0x35c146(0x11c)]??null};}function deepClone(_0x380737){const _0x3e5e31=a64_0x4f6967;if(_0x380737===undefined)return _0x380737;return JSON[_0x3e5e31(0x109)](JSON[_0x3e5e31(0x130)](_0x380737));}function deepEqual(_0x43955f,_0x2af7a6){const _0xc8643f=a64_0x4f6967;return JSON['stringify'](_0x43955f)===JSON[_0xc8643f(0x130)](_0x2af7a6);}function a64_0x431a(_0x4c7be9,_0xd4a1be){_0x4c7be9=_0x4c7be9-0x100;const _0x30cf27=a64_0x30cf();let _0x431a32=_0x30cf27[_0x4c7be9];return _0x431a32;}function isPlainObject(_0x4fdad8){const _0x4b0f42=a64_0x4f6967;return Boolean(_0x4fdad8)&&typeof _0x4fdad8===_0x4b0f42(0x11a)&&!Array[_0x4b0f42(0x134)](_0x4fdad8);}function trim(_0x5dc3b7){const _0x30572f=a64_0x4f6967,_0x3511b6=String(_0x5dc3b7||'')[_0x30572f(0x103)]();return _0x3511b6;}function a64_0x30cf(){const _0x85f5b6=['--code\x20is\x20required','trim','entries','\x20must\x20be\x20valid\x20JSON\x20object:\x20','2022795aAcRPs','16781820FUwIub','No\x20dataset\x20extend\x20patch\x20keys\x20are\x20currently\x20supported.','parse','9mduJJN','businessGroup','\x20must\x20be\x20a\x20JSON\x20object','modelId','patch-json','--expect-json','2221400shoycb','expect','Expectation\x20mismatch\x20at\x20extend.','1zaVLjP','3CuaFWY','dbtableConfig','patch','shape','keys','length','object','2076130ygdKlJ','dbId','JSON\x20object\x20of\x20expected\x20current\x20extend\x20values;\x20mismatch\x20aborts\x20without\x20writing','4633704knFecw','dataset','Expected\x20','Dataset\x20extend\x20must\x20be\x20a\x20JSON\x20object','appCode','--patch-json\x20must\x20contain\x20at\x20least\x20one\x20key','has','string','sort','expect-json','modelCode','code','Dataset\x20extend\x20must\x20be\x20valid\x20JSON\x20object:\x20','dbName','datasetId','str','Use\x20`rabetbase\x20dataset\x20business-group-update`\x20to\x20update\x20business\x20model\x20groups.','extend','stringify','tableName','Unsupported\x20patch\x20key:\x20','2213850SQkRDN','isArray','from','Updated\x20dataset\x20extend\x20(','push','--patch-json','message','write','Dry-run:\x20dataset\x20extend\x20would\x20change\x20(','validation','2357020lEknHw','get','join'];a64_0x30cf=function(){return _0x85f5b6;};return a64_0x30cf();}
@@ -1 +1 @@
1
- const a65_0x41d775=a65_0x445b;(function(_0x388086,_0x15e6dc){const _0x2954c7=a65_0x445b,_0x30abae=_0x388086();while(!![]){try{const _0x9a2569=parseInt(_0x2954c7(0x16c))/0x1*(-parseInt(_0x2954c7(0x155))/0x2)+parseInt(_0x2954c7(0x15c))/0x3+parseInt(_0x2954c7(0x178))/0x4*(-parseInt(_0x2954c7(0x160))/0x5)+-parseInt(_0x2954c7(0x17b))/0x6+parseInt(_0x2954c7(0x162))/0x7+-parseInt(_0x2954c7(0x176))/0x8*(parseInt(_0x2954c7(0x164))/0x9)+parseInt(_0x2954c7(0x180))/0xa;if(_0x9a2569===_0x15e6dc)break;else _0x30abae['push'](_0x30abae['shift']());}catch(_0xf64a3c){_0x30abae['push'](_0x30abae['shift']());}}}(a65_0x47a8,0xc3948));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(['doType','displayName',a65_0x41d775(0x154),a65_0x41d775(0x171),a65_0x41d775(0x142),a65_0x41d775(0x186),a65_0x41d775(0x15d),a65_0x41d775(0x14f),a65_0x41d775(0x169)]),FORBIDDEN_FIELD_KEYS=new Set(['id','name',a65_0x41d775(0x181),a65_0x41d775(0x159),a65_0x41d775(0x152),a65_0x41d775(0x17f),'dbFieldName',a65_0x41d775(0x188),a65_0x41d775(0x149),'pkField',a65_0x41d775(0x17c),a65_0x41d775(0x18a)]);export function parseJsonObjectFlag(_0x1d4da5,_0x5ad12d){const _0x3aaafa=a65_0x41d775;if(!_0x1d4da5)return undefined;let _0x1afaa6;try{_0x1afaa6=JSON['parse'](_0x1d4da5);}catch(_0x53bacd){const _0x176b75=_0x53bacd instanceof Error?_0x53bacd[_0x3aaafa(0x161)]:String(_0x53bacd);throw CliErrors[_0x3aaafa(0x14b)](_0x5ad12d+'\x20must\x20be\x20valid\x20JSON\x20object:\x20'+_0x176b75);}if(!isPlainObject(_0x1afaa6)||Array[_0x3aaafa(0x16d)](_0x1afaa6))throw CliErrors['validation'](_0x5ad12d+_0x3aaafa(0x15b));return _0x1afaa6;}export function validatePatchKeys(_0x39df88){const _0x41cb8c=a65_0x41d775,_0x4b63d0=Object[_0x41cb8c(0x167)](_0x39df88);if(_0x4b63d0[_0x41cb8c(0x13f)]===0x0)throw CliErrors[_0x41cb8c(0x14b)](_0x41cb8c(0x187));for(const _0x2f87f4 of _0x4b63d0){if(FORBIDDEN_FIELD_KEYS[_0x41cb8c(0x185)](_0x2f87f4))throw CliErrors[_0x41cb8c(0x14b)](_0x41cb8c(0x148)+_0x2f87f4);if(!MUTABLE_FIELD_KEYS[_0x41cb8c(0x185)](_0x2f87f4))throw CliErrors['validation'](_0x41cb8c(0x14a)+_0x2f87f4,_0x41cb8c(0x13b)+Array[_0x41cb8c(0x16f)](MUTABLE_FIELD_KEYS)['join'](',\x20'));}}export function applyFieldPatch(_0xe7249e,_0x2a7a0b){const _0x524e02=a65_0x41d775;validatePatchKeys(_0x2a7a0b);const _0xd1b791=deepClone(_0xe7249e),_0x3c2f2d=new Set();for(const [_0x3ac5de,_0x17d036]of Object[_0x524e02(0x166)](_0x2a7a0b)){const _0x1d862c=_0xd1b791[_0x3ac5de],_0xffca0d=mergePatchValue(_0x1d862c,_0x17d036);!deepEqual(_0x1d862c,_0xffca0d)&&(_0xd1b791[_0x3ac5de]=_0xffca0d,_0x3c2f2d[_0x524e02(0x145)](_0x3ac5de),collectChangedPaths(_0x3ac5de,_0x1d862c,_0xffca0d,_0x3c2f2d));}return{'after':_0xd1b791,'changedPaths':Array[_0x524e02(0x16f)](_0x3c2f2d)[_0x524e02(0x16b)](),'changed':_0x3c2f2d[_0x524e02(0x177)]>0x0};}export function assertExpectation(_0x1a4f4e,_0x5bfead){const _0x18d693=a65_0x41d775;if(!_0x5bfead)return;for(const [_0x3d8f91,_0x392d39]of Object['entries'](_0x5bfead)){const _0x40e76a=_0x1a4f4e[_0x3d8f91];if(!deepEqual(_0x40e76a,_0x392d39))throw CliErrors[_0x18d693(0x14b)](_0x18d693(0x182)+_0x3d8f91,'Expected\x20'+JSON[_0x18d693(0x16a)](_0x392d39)+_0x18d693(0x14d)+JSON[_0x18d693(0x16a)](_0x40e76a));}}export async function buildDatasetFieldUpdateResult({appCode:_0x3cc7d6,input:_0x14b050,dryRun:_0x15927e}){const _0xa2f07f=a65_0x41d775;validateInput(_0x14b050);const _0x35dee0=await getDatasetDetail(_0x14b050[_0xa2f07f(0x181)]),_0x1f9de7=readFieldArray(_0x35dee0),_0x52df85=_0x1f9de7[_0xa2f07f(0x147)](_0x1be2b4=>_0x1be2b4?.[_0xa2f07f(0x189)]===_0x14b050['field']);if(_0x52df85<0x0)throw CliErrors[_0xa2f07f(0x14b)](_0xa2f07f(0x168)+_0x14b050[_0xa2f07f(0x183)]);const _0x399b3f=deepClone(_0x1f9de7[_0x52df85]);assertExpectation(_0x399b3f,_0x14b050[_0xa2f07f(0x170)]);const {after:_0x5598e1,changedPaths:_0x413089,changed:_0x206287}=applyFieldPatch(_0x399b3f,_0x14b050[_0xa2f07f(0x156)]),_0x221392=summarizeDataset(_0x35dee0,_0x14b050['code']);return _0x206287&&!_0x15927e&&(_0x1f9de7[_0x52df85]=_0x5598e1,await updateDrivenData(_0x35dee0)),{'ok':!![],'data':{'appCode':_0x3cc7d6,'selector':{'code':_0x14b050['code']},'dataset':_0x221392,'field':{'id':_0x399b3f['id']??null,'name':_0x399b3f[_0xa2f07f(0x189)]},'dryRun':_0x15927e,'changed':_0x206287,'changedPaths':_0x413089,'before':_0x399b3f,'after':_0x5598e1,'submitted':_0x206287&&!_0x15927e},'message':_0x206287?_0x15927e?_0xa2f07f(0x13c)+_0x14b050[_0xa2f07f(0x183)]+_0xa2f07f(0x13d)+_0x413089['join'](',\x20')+')':_0xa2f07f(0x165)+_0x14b050['field']+'\x20('+_0x413089[_0xa2f07f(0x141)](',\x20')+')':_0xa2f07f(0x144)+_0x14b050['field']};}export const datasetFieldUpdate={'service':'dataset','command':a65_0x41d775(0x158),'description':'Patch\x20one\x20raw\x20dataset\x20fields[]\x20field\x20object\x20safely','risk':a65_0x41d775(0x179),'flags':[CODE_FLAG,{'name':'field','type':'string','required':!![],'description':'Exact\x20raw\x20fields[].name\x20to\x20patch'},{'name':'patch-json','type':a65_0x41d775(0x150),'required':!![],'description':a65_0x41d775(0x151)},{'name':a65_0x41d775(0x174),'type':a65_0x41d775(0x150),'required':![],'description':a65_0x41d775(0x17e)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x5034b4){validateInput(readFieldUpdateInput(_0x5034b4));},async 'dryRun'(_0x16f86f){const _0x40a9b3=a65_0x41d775,_0x18a8b9=await buildDatasetFieldUpdateResult({'appCode':_0x16f86f[_0x40a9b3(0x15f)],'input':readFieldUpdateInput(_0x16f86f),'dryRun':!![]});return{'method':_0x40a9b3(0x173),'url':_0x40a9b3(0x15e),'body':_0x18a8b9['data'],'description':_0x18a8b9[_0x40a9b3(0x161)]};},async 'execute'(_0x1f51cf){const _0x38e8de=a65_0x41d775;return buildDatasetFieldUpdateResult({'appCode':_0x1f51cf[_0x38e8de(0x15f)],'input':readFieldUpdateInput(_0x1f51cf),'dryRun':![]});}};function readFieldUpdateInput(_0x4c5259){const _0x3ee638=a65_0x41d775,_0x4e2a68=trim(_0x4c5259[_0x3ee638(0x14c)](_0x3ee638(0x181))),_0x15c818=emptyToUndefined(_0x4c5259[_0x3ee638(0x14c)]('field')),_0xb60a9=parseJsonObjectFlag(_0x4c5259[_0x3ee638(0x14c)]('patch-json'),_0x3ee638(0x172)),_0x154ef6=parseJsonObjectFlag(_0x4c5259[_0x3ee638(0x14c)](_0x3ee638(0x174)),_0x3ee638(0x157));return{'code':_0x4e2a68,'field':_0x15c818||'','patch':_0xb60a9||{},'expect':_0x154ef6};}function validateInput(_0x5c7e0c){const _0x1da487=a65_0x41d775;if(!_0x5c7e0c[_0x1da487(0x181)])throw CliErrors['validation']('--code\x20is\x20required');if(!_0x5c7e0c[_0x1da487(0x183)])throw CliErrors[_0x1da487(0x14b)](_0x1da487(0x16e));validatePatchKeys(_0x5c7e0c[_0x1da487(0x156)]);}function readFieldArray(_0x517597){const _0x182676=a65_0x41d775;if(Array[_0x182676(0x16d)](_0x517597['fields']))return _0x517597[_0x182676(0x146)];if(Array[_0x182676(0x16d)](_0x517597[_0x182676(0x17a)]))return _0x517597['properties'];throw CliErrors[_0x182676(0x14b)](_0x182676(0x140));}function summarizeDataset(_0x1d08ee,_0x798527){const _0x183642=a65_0x41d775,_0x26eb19=isPlainObject(_0x1d08ee[_0x183642(0x163)])?_0x1d08ee[_0x183642(0x163)]:{},_0x33a44f=isPlainObject(_0x1d08ee[_0x183642(0x143)])?_0x1d08ee['dbtableConfig']:{};return{'id':_0x1d08ee['modelId']??_0x1d08ee['id']??_0x26eb19[_0x183642(0x13e)]??null,'code':_0x1d08ee['modelCode']??_0x1d08ee[_0x183642(0x181)]??_0x26eb19[_0x183642(0x184)]??_0x798527,'name':_0x1d08ee[_0x183642(0x189)]??_0x26eb19[_0x183642(0x175)]??null,'table':_0x33a44f[_0x183642(0x188)]??_0x26eb19['tableName']??null,'db':_0x33a44f[_0x183642(0x15a)]??_0x33a44f[_0x183642(0x153)]??null};}function mergePatchValue(_0x5e3691,_0x3cbd4d){if(isPlainObject(_0x5e3691)&&isPlainObject(_0x3cbd4d))return deepMerge(_0x5e3691,_0x3cbd4d);return deepClone(_0x3cbd4d);}function deepMerge(_0x364f43,_0x11a0ea){const _0x51b769=a65_0x41d775,_0x264dc4=deepClone(_0x364f43);for(const [_0x21cd47,_0x50918c]of Object[_0x51b769(0x166)](_0x11a0ea)){_0x264dc4[_0x21cd47]=isPlainObject(_0x264dc4[_0x21cd47])&&isPlainObject(_0x50918c)?deepMerge(_0x264dc4[_0x21cd47],_0x50918c):deepClone(_0x50918c);}return _0x264dc4;}function a65_0x47a8(){const _0xfc3b81=['JSON\x20object\x20of\x20expected\x20current\x20field\x20values;\x20mismatch\x20aborts\x20without\x20writing','dbTypeScale','20024800UFKJLL','code','Expectation\x20mismatch\x20at\x20','field','datasetCode','has','datetimeFormat','--patch-json\x20must\x20contain\x20at\x20least\x20one\x20key','tableName','name','systemRetain','Allowed\x20keys:\x20','Dry-run:\x20dataset\x20field\x20','\x20would\x20change\x20(','datasetId','length','Driven\x20data\x20does\x20not\x20contain\x20fields[]\x20or\x20properties[]','join','required','dbtableConfig','No\x20changes\x20for\x20dataset\x20field\x20','add','fields','findIndex','Forbidden\x20patch\x20key:\x20','deleted','Unsupported\x20patch\x20key:\x20','validation','str',',\x20actual\x20','object','chartRole','string','JSON\x20object\x20patch;\x20allowed\x20keys:\x20doType/displayName/description/options/required/datetimeFormat/defaultAggregation/chartRole/deprecated','dbTypeLen','dbId','description','2IHdJUf','patch','--expect-json','field-update','dbType','dbName','\x20must\x20be\x20a\x20JSON\x20object','4512231UADVdr','defaultAggregation','/smartapi/dataset/update-driven-data','appCode','168905hmXqLL','message','1702407pREeMu','dataset','1523871zFSRQm','Updated\x20dataset\x20field\x20','entries','keys','Field\x20not\x20found:\x20','deprecated','stringify','sort','109041qBWQXB','isArray','--field\x20is\x20required','from','expect','options','--patch-json','POST','expect-json','datasetName','72nCuDNe','size','132zWUNBZ','write','properties','1205862TwAKWd','autoIncrement','trim'];a65_0x47a8=function(){return _0xfc3b81;};return a65_0x47a8();}function collectChangedPaths(_0x15c198,_0x14fb5c,_0x98b184,_0x149d88){const _0x46b404=a65_0x41d775;if(!isPlainObject(_0x14fb5c)||!isPlainObject(_0x98b184))return;const _0x107b48=new Set([...Object[_0x46b404(0x167)](_0x14fb5c),...Object[_0x46b404(0x167)](_0x98b184)]);for(const _0x201243 of _0x107b48){const _0x52657b=_0x14fb5c[_0x201243],_0x1e86af=_0x98b184[_0x201243];!deepEqual(_0x52657b,_0x1e86af)&&_0x149d88[_0x46b404(0x145)](_0x15c198+'.'+_0x201243);}}function deepClone(_0x2dd6b7){const _0x35b3cf=a65_0x41d775;if(_0x2dd6b7===undefined)return _0x2dd6b7;return JSON['parse'](JSON[_0x35b3cf(0x16a)](_0x2dd6b7));}function a65_0x445b(_0x2020c3,_0x4e334e){_0x2020c3=_0x2020c3-0x13b;const _0x47a843=a65_0x47a8();let _0x445b83=_0x47a843[_0x2020c3];return _0x445b83;}function deepEqual(_0x37bd43,_0x22b796){const _0x57ed02=a65_0x41d775;return JSON[_0x57ed02(0x16a)](_0x37bd43)===JSON[_0x57ed02(0x16a)](_0x22b796);}function isPlainObject(_0x480b8a){const _0x4a1ae8=a65_0x41d775;return Boolean(_0x480b8a)&&typeof _0x480b8a===_0x4a1ae8(0x14e)&&!Array['isArray'](_0x480b8a);}function emptyToUndefined(_0x336fa7){const _0x4a02e5=String(_0x336fa7||'')['trim']();return _0x4a02e5||undefined;}function trim(_0x219834){const _0x2e31dc=a65_0x41d775;return String(_0x219834||'')[_0x2e31dc(0x17d)]();}
1
+ const a65_0x58578d=a65_0x7a8b;(function(_0x33b03e,_0x472457){const _0x4bab05=a65_0x7a8b,_0x47dfde=_0x33b03e();while(!![]){try{const _0x54d8f9=parseInt(_0x4bab05(0x8f))/0x1*(-parseInt(_0x4bab05(0x8e))/0x2)+-parseInt(_0x4bab05(0x69))/0x3+parseInt(_0x4bab05(0xa3))/0x4*(-parseInt(_0x4bab05(0xaf))/0x5)+-parseInt(_0x4bab05(0xaa))/0x6+parseInt(_0x4bab05(0xa8))/0x7+parseInt(_0x4bab05(0x79))/0x8*(parseInt(_0x4bab05(0x85))/0x9)+parseInt(_0x4bab05(0xb1))/0xa;if(_0x54d8f9===_0x472457)break;else _0x47dfde['push'](_0x47dfde['shift']());}catch(_0x2e3dc5){_0x47dfde['push'](_0x47dfde['shift']());}}}(a65_0x2ac7,0x95f00));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(['doType',a65_0x58578d(0x8b),a65_0x58578d(0x98),a65_0x58578d(0x8a),a65_0x58578d(0x84),a65_0x58578d(0x83),'defaultAggregation',a65_0x58578d(0x9f),'deprecated']),FORBIDDEN_FIELD_KEYS=new Set(['id',a65_0x58578d(0xab),a65_0x58578d(0x9c),a65_0x58578d(0x94),'dbTypeLen',a65_0x58578d(0xad),a65_0x58578d(0x74),'tableName',a65_0x58578d(0xa6),a65_0x58578d(0xae),a65_0x58578d(0xb2),a65_0x58578d(0x9b)]);export function parseJsonObjectFlag(_0x3a8faf,_0x43ed8e){const _0x289907=a65_0x58578d;if(!_0x3a8faf)return undefined;let _0x56c041;try{_0x56c041=JSON[_0x289907(0x97)](_0x3a8faf);}catch(_0x3c521a){const _0x337e21=_0x3c521a instanceof Error?_0x3c521a[_0x289907(0x64)]:String(_0x3c521a);throw CliErrors[_0x289907(0x6a)](_0x43ed8e+_0x289907(0x7a)+_0x337e21);}if(!isPlainObject(_0x56c041)||Array[_0x289907(0xa9)](_0x56c041))throw CliErrors[_0x289907(0x6a)](_0x43ed8e+_0x289907(0xa0));return _0x56c041;}export function validatePatchKeys(_0x2af3dc){const _0x480e54=a65_0x58578d,_0x42af81=Object[_0x480e54(0x9e)](_0x2af3dc);if(_0x42af81[_0x480e54(0x66)]===0x0)throw CliErrors['validation'](_0x480e54(0x72));for(const _0x43aea3 of _0x42af81){if(FORBIDDEN_FIELD_KEYS[_0x480e54(0x67)](_0x43aea3))throw CliErrors['validation'](_0x480e54(0x8c)+_0x43aea3);if(!MUTABLE_FIELD_KEYS[_0x480e54(0x67)](_0x43aea3))throw CliErrors[_0x480e54(0x6a)]('Unsupported\x20patch\x20key:\x20'+_0x43aea3,_0x480e54(0x6b)+Array[_0x480e54(0x73)](MUTABLE_FIELD_KEYS)['join'](',\x20'));}}export function applyFieldPatch(_0x3c92d2,_0x15bc70){const _0x1a483d=a65_0x58578d;validatePatchKeys(_0x15bc70);const _0x463df1=deepClone(_0x3c92d2),_0x45a6ca=new Set();for(const [_0x14d3b2,_0x359601]of Object[_0x1a483d(0x7b)](_0x15bc70)){const _0x3a2237=_0x463df1[_0x14d3b2],_0x4a29ab=mergePatchValue(_0x3a2237,_0x359601);!deepEqual(_0x3a2237,_0x4a29ab)&&(_0x463df1[_0x14d3b2]=_0x4a29ab,_0x45a6ca['add'](_0x14d3b2),collectChangedPaths(_0x14d3b2,_0x3a2237,_0x4a29ab,_0x45a6ca));}return{'after':_0x463df1,'changedPaths':Array['from'](_0x45a6ca)['sort'](),'changed':_0x45a6ca[_0x1a483d(0x70)]>0x0};}export function assertExpectation(_0x495dce,_0x5c2149){const _0x46d47d=a65_0x58578d;if(!_0x5c2149)return;for(const [_0x188065,_0x483904]of Object[_0x46d47d(0x7b)](_0x5c2149)){const _0x327d81=_0x495dce[_0x188065];if(!deepEqual(_0x327d81,_0x483904))throw CliErrors[_0x46d47d(0x6a)]('Expectation\x20mismatch\x20at\x20'+_0x188065,'Expected\x20'+JSON[_0x46d47d(0x80)](_0x483904)+_0x46d47d(0x87)+JSON[_0x46d47d(0x80)](_0x327d81));}}export async function buildDatasetFieldUpdateResult({appCode:_0x151f59,input:_0x11781b,dryRun:_0x5d8e89}){const _0x14c88e=a65_0x58578d;validateInput(_0x11781b);const _0x300d1e=await getDatasetDetail(_0x11781b['code']),_0x2f3de9=readFieldArray(_0x300d1e),_0x3f3717=_0x2f3de9[_0x14c88e(0x90)](_0x562328=>_0x562328?.[_0x14c88e(0xab)]===_0x11781b[_0x14c88e(0x8d)]);if(_0x3f3717<0x0)throw CliErrors['validation'](_0x14c88e(0x6f)+_0x11781b[_0x14c88e(0x8d)]);const _0x2c8d65=deepClone(_0x2f3de9[_0x3f3717]);assertExpectation(_0x2c8d65,_0x11781b[_0x14c88e(0x6d)]);const {after:_0x675ec5,changedPaths:_0x21ab84,changed:_0x576a6e}=applyFieldPatch(_0x2c8d65,_0x11781b[_0x14c88e(0x7f)]),_0x57f89a=summarizeDataset(_0x300d1e,_0x11781b[_0x14c88e(0x9c)]);return _0x576a6e&&!_0x5d8e89&&(_0x2f3de9[_0x3f3717]=_0x675ec5,await updateDrivenData(_0x300d1e)),{'ok':!![],'data':{'appCode':_0x151f59,'selector':{'code':_0x11781b[_0x14c88e(0x9c)]},'dataset':_0x57f89a,'field':{'id':_0x2c8d65['id']??null,'name':_0x2c8d65['name']},'dryRun':_0x5d8e89,'changed':_0x576a6e,'changedPaths':_0x21ab84,'before':_0x2c8d65,'after':_0x675ec5,'submitted':_0x576a6e&&!_0x5d8e89},'message':_0x576a6e?_0x5d8e89?'Dry-run:\x20dataset\x20field\x20'+_0x11781b[_0x14c88e(0x8d)]+'\x20would\x20change\x20('+_0x21ab84[_0x14c88e(0xa4)](',\x20')+')':_0x14c88e(0xac)+_0x11781b[_0x14c88e(0x8d)]+'\x20('+_0x21ab84[_0x14c88e(0xa4)](',\x20')+')':_0x14c88e(0x81)+_0x11781b[_0x14c88e(0x8d)]};}export const datasetFieldUpdate={'service':a65_0x58578d(0x9a),'command':a65_0x58578d(0x7c),'description':a65_0x58578d(0xa5),'risk':a65_0x58578d(0xa7),'flags':[CODE_FLAG,{'name':a65_0x58578d(0x8d),'type':a65_0x58578d(0x65),'required':!![],'description':a65_0x58578d(0x68)},{'name':a65_0x58578d(0x92),'type':'string','required':!![],'description':a65_0x58578d(0x99)},{'name':a65_0x58578d(0x76),'type':a65_0x58578d(0x65),'required':![],'description':a65_0x58578d(0xa2)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x1e4c77){validateInput(readFieldUpdateInput(_0x1e4c77));},async 'dryRun'(_0x8beb5c){const _0x32b4bd=a65_0x58578d,_0x5859d4=await buildDatasetFieldUpdateResult({'appCode':_0x8beb5c[_0x32b4bd(0x75)],'input':readFieldUpdateInput(_0x8beb5c),'dryRun':!![]});return{'method':_0x32b4bd(0x7d),'url':'/smartapi/dataset/update-driven-data','body':_0x5859d4[_0x32b4bd(0x95)],'description':_0x5859d4[_0x32b4bd(0x64)]};},async 'execute'(_0x593797){const _0x4119ed=a65_0x58578d;return buildDatasetFieldUpdateResult({'appCode':_0x593797[_0x4119ed(0x75)],'input':readFieldUpdateInput(_0x593797),'dryRun':![]});}};function readFieldUpdateInput(_0x2ce0c7){const _0x3337da=a65_0x58578d,_0x175d73=trim(_0x2ce0c7[_0x3337da(0x6e)]('code')),_0x3d0bea=emptyToUndefined(_0x2ce0c7[_0x3337da(0x6e)]('field')),_0x5623e7=parseJsonObjectFlag(_0x2ce0c7[_0x3337da(0x6e)](_0x3337da(0x92)),_0x3337da(0x9d)),_0x1310d2=parseJsonObjectFlag(_0x2ce0c7[_0x3337da(0x6e)]('expect-json'),_0x3337da(0x96));return{'code':_0x175d73,'field':_0x3d0bea||'','patch':_0x5623e7||{},'expect':_0x1310d2};}function validateInput(_0x1aaa4f){const _0x5b767b=a65_0x58578d;if(!_0x1aaa4f[_0x5b767b(0x9c)])throw CliErrors[_0x5b767b(0x6a)](_0x5b767b(0xb0));if(!_0x1aaa4f[_0x5b767b(0x8d)])throw CliErrors[_0x5b767b(0x6a)](_0x5b767b(0x77));validatePatchKeys(_0x1aaa4f[_0x5b767b(0x7f)]);}function a65_0x2ac7(){const _0x1112ad=['7210280PMRfyT','isArray','5745600xXVTRi','name','Updated\x20dataset\x20field\x20','dbTypeScale','pkField','145EVmvzy','--code\x20is\x20required','22015600uRArvh','autoIncrement','message','string','length','has','Exact\x20raw\x20fields[].name\x20to\x20patch','1206270oZmDux','validation','Allowed\x20keys:\x20','tableName','expect','str','Field\x20not\x20found:\x20','size','dbId','--patch-json\x20must\x20contain\x20at\x20least\x20one\x20key','from','dbFieldName','appCode','expect-json','--field\x20is\x20required','fields','298216CyXvNd','\x20must\x20be\x20valid\x20JSON\x20object:\x20','entries','field-update','POST','datasetName','patch','stringify','No\x20changes\x20for\x20dataset\x20field\x20','trim','datetimeFormat','required','45cywOcU','properties',',\x20actual\x20','object','modelCode','options','displayName','Forbidden\x20patch\x20key:\x20','field','374596iHgCWf','6glKCNR','findIndex','datasetId','patch-json','modelId','dbType','data','--expect-json','parse','description','JSON\x20object\x20patch;\x20allowed\x20keys:\x20doType/displayName/description/options/required/datetimeFormat/defaultAggregation/chartRole/deprecated','dataset','systemRetain','code','--patch-json','keys','chartRole','\x20must\x20be\x20a\x20JSON\x20object','Driven\x20data\x20does\x20not\x20contain\x20fields[]\x20or\x20properties[]','JSON\x20object\x20of\x20expected\x20current\x20field\x20values;\x20mismatch\x20aborts\x20without\x20writing','44188UHJUeL','join','Patch\x20one\x20raw\x20dataset\x20fields[]\x20field\x20object\x20safely','deleted','write'];a65_0x2ac7=function(){return _0x1112ad;};return a65_0x2ac7();}function a65_0x7a8b(_0x2df924,_0xa8e0eb){_0x2df924=_0x2df924-0x64;const _0x2ac756=a65_0x2ac7();let _0x7a8b06=_0x2ac756[_0x2df924];return _0x7a8b06;}function readFieldArray(_0x1fc7cd){const _0x384c1a=a65_0x58578d;if(Array[_0x384c1a(0xa9)](_0x1fc7cd[_0x384c1a(0x78)]))return _0x1fc7cd['fields'];if(Array[_0x384c1a(0xa9)](_0x1fc7cd[_0x384c1a(0x86)]))return _0x1fc7cd[_0x384c1a(0x86)];throw CliErrors[_0x384c1a(0x6a)](_0x384c1a(0xa1));}function summarizeDataset(_0x1f32a1,_0x3042b7){const _0x31f983=a65_0x58578d,_0xe61cab=isPlainObject(_0x1f32a1[_0x31f983(0x9a)])?_0x1f32a1['dataset']:{},_0x2fc5dc=isPlainObject(_0x1f32a1['dbtableConfig'])?_0x1f32a1['dbtableConfig']:{};return{'id':_0x1f32a1[_0x31f983(0x93)]??_0x1f32a1['id']??_0xe61cab[_0x31f983(0x91)]??null,'code':_0x1f32a1[_0x31f983(0x89)]??_0x1f32a1[_0x31f983(0x9c)]??_0xe61cab['datasetCode']??_0x3042b7,'name':_0x1f32a1[_0x31f983(0xab)]??_0xe61cab[_0x31f983(0x7e)]??null,'table':_0x2fc5dc[_0x31f983(0x6c)]??_0xe61cab[_0x31f983(0x6c)]??null,'db':_0x2fc5dc['dbName']??_0x2fc5dc[_0x31f983(0x71)]??null};}function mergePatchValue(_0x52b65b,_0x639786){if(isPlainObject(_0x52b65b)&&isPlainObject(_0x639786))return deepMerge(_0x52b65b,_0x639786);return deepClone(_0x639786);}function deepMerge(_0x160179,_0x27b48c){const _0x36e5b9=deepClone(_0x160179);for(const [_0xdc0558,_0x53828a]of Object['entries'](_0x27b48c)){_0x36e5b9[_0xdc0558]=isPlainObject(_0x36e5b9[_0xdc0558])&&isPlainObject(_0x53828a)?deepMerge(_0x36e5b9[_0xdc0558],_0x53828a):deepClone(_0x53828a);}return _0x36e5b9;}function collectChangedPaths(_0x5302b7,_0x34813e,_0xe558e,_0x2ac94a){const _0x39af43=a65_0x58578d;if(!isPlainObject(_0x34813e)||!isPlainObject(_0xe558e))return;const _0x2bb5c3=new Set([...Object['keys'](_0x34813e),...Object[_0x39af43(0x9e)](_0xe558e)]);for(const _0x45fda0 of _0x2bb5c3){const _0x499704=_0x34813e[_0x45fda0],_0x37a54b=_0xe558e[_0x45fda0];!deepEqual(_0x499704,_0x37a54b)&&_0x2ac94a['add'](_0x5302b7+'.'+_0x45fda0);}}function deepClone(_0xcfbd9c){const _0xbe8ad3=a65_0x58578d;if(_0xcfbd9c===undefined)return _0xcfbd9c;return JSON[_0xbe8ad3(0x97)](JSON[_0xbe8ad3(0x80)](_0xcfbd9c));}function deepEqual(_0x516f36,_0x5e3465){const _0x536025=a65_0x58578d;return JSON[_0x536025(0x80)](_0x516f36)===JSON[_0x536025(0x80)](_0x5e3465);}function isPlainObject(_0xe1ae34){const _0x28d7dd=a65_0x58578d;return Boolean(_0xe1ae34)&&typeof _0xe1ae34===_0x28d7dd(0x88)&&!Array[_0x28d7dd(0xa9)](_0xe1ae34);}function emptyToUndefined(_0x3cac42){const _0x48d67f=a65_0x58578d,_0xa085c4=String(_0x3cac42||'')[_0x48d67f(0x82)]();return _0xa085c4||undefined;}function trim(_0x2f5512){return String(_0x2f5512||'')['trim']();}