@lovrabet/rabetbase-cli 2.3.10-beta.2 → 2.3.11-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (260) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/remote-directory.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/get.js +1 -1
  53. package/lib/commands/config/index.js +1 -1
  54. package/lib/commands/config/list.js +1 -1
  55. package/lib/commands/config/set.js +1 -1
  56. package/lib/commands/config/shared.js +1 -1
  57. package/lib/commands/data/filter.js +1 -1
  58. package/lib/commands/data/getOne.js +1 -1
  59. package/lib/commands/data/index.js +1 -1
  60. package/lib/commands/data/shared.js +1 -1
  61. package/lib/commands/dataset/business-group-update.js +1 -1
  62. package/lib/commands/dataset/capability.js +1 -1
  63. package/lib/commands/dataset/delete.js +1 -1
  64. package/lib/commands/dataset/detail.js +1 -1
  65. package/lib/commands/dataset/extend-update.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/db/analysis-batching.js +1 -1
  80. package/lib/commands/db/analyze-batch-plan.js +1 -1
  81. package/lib/commands/db/analyze-cancel.js +1 -1
  82. package/lib/commands/db/analyze-start.js +1 -1
  83. package/lib/commands/db/analyze-status.js +1 -1
  84. package/lib/commands/db/create.js +1 -1
  85. package/lib/commands/db/delete.js +1 -1
  86. package/lib/commands/db/detail.js +1 -1
  87. package/lib/commands/db/diff.js +1 -1
  88. package/lib/commands/db/index.js +1 -1
  89. package/lib/commands/db/list.js +1 -1
  90. package/lib/commands/db/shared.js +1 -1
  91. package/lib/commands/db/tables.js +1 -1
  92. package/lib/commands/db/test.js +1 -1
  93. package/lib/commands/db/update.js +1 -1
  94. package/lib/commands/doctor.js +1 -1
  95. package/lib/commands/file/index.js +1 -1
  96. package/lib/commands/init/index.js +1 -1
  97. package/lib/commands/issue/index.js +1 -1
  98. package/lib/commands/issue/nudge.js +1 -1
  99. package/lib/commands/issue/report.js +1 -1
  100. package/lib/commands/issue/shared.js +1 -1
  101. package/lib/commands/logs/index.js +1 -1
  102. package/lib/commands/menu/delete.js +1 -1
  103. package/lib/commands/menu/external-link-create.js +1 -1
  104. package/lib/commands/menu/group-create.js +1 -1
  105. package/lib/commands/menu/group-update.js +1 -1
  106. package/lib/commands/menu/index.js +1 -1
  107. package/lib/commands/menu/list.js +1 -1
  108. package/lib/commands/menu/move.js +1 -0
  109. package/lib/commands/menu/regroup-start.js +1 -1
  110. package/lib/commands/menu/shared/compare-table.js +1 -1
  111. package/lib/commands/menu/shared/delete-plan.js +1 -1
  112. package/lib/commands/menu/shared/facts.js +1 -1
  113. package/lib/commands/menu/shared/index.js +1 -1
  114. package/lib/commands/menu/shared/inquirer.js +1 -1
  115. package/lib/commands/menu/shared/local-pages.js +1 -1
  116. package/lib/commands/menu/shared/logic.js +1 -1
  117. package/lib/commands/menu/shared/mutations.js +1 -1
  118. package/lib/commands/menu/shared/service.js +1 -1
  119. package/lib/commands/menu/shared/sync-core.js +1 -1
  120. package/lib/commands/menu/shared/update-core.js +1 -1
  121. package/lib/commands/menu/shared/valid-url.js +1 -1
  122. package/lib/commands/menu/sync.js +1 -1
  123. package/lib/commands/menu/update.js +1 -1
  124. package/lib/commands/notification/config-list.js +1 -1
  125. package/lib/commands/notification/index.js +1 -1
  126. package/lib/commands/page/generate-start.js +1 -1
  127. package/lib/commands/page/generate-status.js +1 -1
  128. package/lib/commands/page/index.js +1 -1
  129. package/lib/commands/page/pull.js +1 -1
  130. package/lib/commands/page/push.js +1 -1
  131. package/lib/commands/page/relation-audit.js +1 -1
  132. package/lib/commands/page/shared.js +1 -1
  133. package/lib/commands/page/standard-page-status.js +1 -1
  134. package/lib/commands/page/sync.js +1 -1
  135. package/lib/commands/permit/index.js +1 -1
  136. package/lib/commands/permit/page-get.js +1 -1
  137. package/lib/commands/permit/page-set.js +1 -1
  138. package/lib/commands/permit/role-apis-set.js +1 -1
  139. package/lib/commands/permit/role-menus-set.js +1 -1
  140. package/lib/commands/permit/role-menus.js +1 -1
  141. package/lib/commands/permit/shared.js +1 -1
  142. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  143. package/lib/commands/project/create/format-elapsed.js +1 -1
  144. package/lib/commands/project/create/main.js +1 -1
  145. package/lib/commands/project/create/non-interactive.js +1 -1
  146. package/lib/commands/project/create/project-template-path.js +1 -1
  147. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  148. package/lib/commands/project/create/use-format-code.js +1 -1
  149. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  150. package/lib/commands/project/index.js +1 -1
  151. package/lib/commands/project/init.js +1 -1
  152. package/lib/commands/project/upgrade.js +1 -1
  153. package/lib/commands/registry.js +1 -1
  154. package/lib/commands/role/create.js +1 -1
  155. package/lib/commands/role/delete.js +1 -1
  156. package/lib/commands/role/detail.js +1 -1
  157. package/lib/commands/role/index.js +1 -1
  158. package/lib/commands/role/list.js +1 -1
  159. package/lib/commands/role/shared.js +1 -1
  160. package/lib/commands/role/update.js +1 -1
  161. package/lib/commands/role/user-add.js +1 -1
  162. package/lib/commands/role/user-remove.js +1 -1
  163. package/lib/commands/role/user-resolve.js +1 -1
  164. package/lib/commands/run/index.js +1 -1
  165. package/lib/commands/schema.js +1 -1
  166. package/lib/commands/sql/create.js +1 -1
  167. package/lib/commands/sql/delete.js +1 -1
  168. package/lib/commands/sql/detail.js +1 -1
  169. package/lib/commands/sql/exec.js +1 -1
  170. package/lib/commands/sql/index.js +1 -1
  171. package/lib/commands/sql/list.js +1 -1
  172. package/lib/commands/sql/pull.js +1 -1
  173. package/lib/commands/sql/push.js +1 -1
  174. package/lib/commands/sql/save.js +1 -1
  175. package/lib/commands/sql/shared.js +1 -1
  176. package/lib/commands/sql/status.js +1 -1
  177. package/lib/commands/sql/validate.js +1 -1
  178. package/lib/commands/task/index.js +1 -1
  179. package/lib/commands/task/status.js +1 -1
  180. package/lib/commands/workspace/add.js +1 -1
  181. package/lib/commands/workspace/index.js +1 -1
  182. package/lib/commands/workspace/remove.js +1 -1
  183. package/lib/config/schema.js +1 -1
  184. package/lib/constant/cdn.js +1 -1
  185. package/lib/constant/cli.js +1 -1
  186. package/lib/constant/defaults.js +1 -1
  187. package/lib/constant/domain.js +1 -1
  188. package/lib/constant/env.js +1 -1
  189. package/lib/constant/output.js +1 -1
  190. package/lib/constant/paths.js +1 -1
  191. package/lib/constant/risk.js +1 -1
  192. package/lib/context/app-resolver.js +1 -1
  193. package/lib/context/auth-resolver.js +1 -1
  194. package/lib/context/config-loader.js +1 -1
  195. package/lib/context.js +1 -1
  196. package/lib/core/alias-resolver.js +1 -1
  197. package/lib/core/api-client.js +1 -1
  198. package/lib/core/bff/config.js +1 -1
  199. package/lib/core/bff/file-system.js +1 -1
  200. package/lib/core/bff/hash.js +1 -1
  201. package/lib/core/bff/lock.js +1 -1
  202. package/lib/core/bff/utils.js +1 -1
  203. package/lib/core/db-resolver.js +1 -1
  204. package/lib/core/page/file-system.js +1 -1
  205. package/lib/core/page/hash.js +1 -1
  206. package/lib/core/page/lock.js +1 -1
  207. package/lib/core/sql-index-auditor.js +1 -1
  208. package/lib/core/sql-sync/config.js +1 -1
  209. package/lib/core/sql-sync/file-system.js +1 -1
  210. package/lib/core/sql-sync/hash.js +1 -1
  211. package/lib/core/sql-sync/lock.js +1 -1
  212. package/lib/core/sql-sync/utils.js +1 -1
  213. package/lib/core/sql-validator.js +1 -1
  214. package/lib/errors.js +1 -1
  215. package/lib/framework/build-all-flags.js +1 -1
  216. package/lib/framework/error-output.js +1 -1
  217. package/lib/framework/explicit-yes.js +1 -1
  218. package/lib/framework/flags.js +1 -1
  219. package/lib/framework/help.js +1 -1
  220. package/lib/framework/index.js +1 -1
  221. package/lib/framework/output.js +1 -1
  222. package/lib/framework/response.js +1 -1
  223. package/lib/framework/runner-alias.js +1 -1
  224. package/lib/framework/runner.js +1 -1
  225. package/lib/framework/schema-export.js +1 -1
  226. package/lib/framework/types.js +1 -1
  227. package/lib/generated/build-info.js +1 -1
  228. package/lib/help.js +1 -1
  229. package/lib/skills/main.js +1 -1
  230. package/lib/skills/npx-skills-add.js +1 -1
  231. package/lib/telemetry/cli-command-trace.js +1 -1
  232. package/lib/telemetry/cli-help-trace.js +1 -1
  233. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  234. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  235. package/lib/telemetry/send-cli-trace-log.js +1 -1
  236. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  237. package/lib/utils/ai_config.js +1 -1
  238. package/lib/utils/apply-jq-filter.js +1 -1
  239. package/lib/utils/cdn-config.js +1 -1
  240. package/lib/utils/check-sdk-version.js +1 -1
  241. package/lib/utils/cli-version-check.js +1 -1
  242. package/lib/utils/cli-version-policy.js +1 -1
  243. package/lib/utils/config.js +1 -1
  244. package/lib/utils/copy-directory.js +1 -1
  245. package/lib/utils/entity-with-id.js +1 -1
  246. package/lib/utils/file-utils.js +1 -1
  247. package/lib/utils/guides-cdn.js +1 -1
  248. package/lib/utils/http-client.js +1 -1
  249. package/lib/utils/is-non-interactive.js +1 -1
  250. package/lib/utils/logger.js +1 -1
  251. package/lib/utils/params.js +1 -1
  252. package/lib/utils/platform.js +1 -1
  253. package/lib/utils/rules-cdn.js +1 -1
  254. package/lib/utils/sleep.js +1 -1
  255. package/lib/utils/template-replacer.js +1 -1
  256. package/lib/utils/update-notice.js +1 -1
  257. package/lib/utils/version.js +1 -1
  258. package/lib/utils/with-active-cookie.js +1 -1
  259. package/lib/utils/write-cli-side-channel.js +1 -1
  260. package/package.json +1 -1
@@ -1 +1 @@
1
- const a53_0x5b957a=a53_0x548a;function a53_0x2b4a(){const _0x53cf77=['605043poBYMM','465728NqNchZ','3IKhqzD','2427424CyOqiH','read','bool','5IZTYSe','1297526mVaHXp','190395tfKFKb','5671435CzCBlG','56poDjQk','global','60IDucWL','boolean','list','840162ljzdxL','config'];a53_0x2b4a=function(){return _0x53cf77;};return a53_0x2b4a();}(function(_0x5be0cb,_0x234911){const _0x2713d9=a53_0x548a,_0x23252b=_0x5be0cb();while(!![]){try{const _0x281523=parseInt(_0x2713d9(0xb9))/0x1+-parseInt(_0x2713d9(0xaf))/0x2*(-parseInt(_0x2713d9(0xbb))/0x3)+-parseInt(_0x2713d9(0xbc))/0x4+-parseInt(_0x2713d9(0xbf))/0x5*(parseInt(_0x2713d9(0xb7))/0x6)+-parseInt(_0x2713d9(0xb2))/0x7*(-parseInt(_0x2713d9(0xba))/0x8)+-parseInt(_0x2713d9(0xb0))/0x9*(parseInt(_0x2713d9(0xb4))/0xa)+-parseInt(_0x2713d9(0xb1))/0xb;if(_0x281523===_0x234911)break;else _0x23252b['push'](_0x23252b['shift']());}catch(_0x219a98){_0x23252b['push'](_0x23252b['shift']());}}}(a53_0x2b4a,0x50998));import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0x28c74c){const _0x3ae001=a53_0x548a,_0xcb86e0=_0x28c74c[_0x3ae001(0xbe)](_0x3ae001(0xb3))?readScopedConfig(_0x3ae001(0xb3)):readConfig();return{'ok':!![],'data':_0xcb86e0};}function a53_0x548a(_0x37777d,_0x458ac5){_0x37777d=_0x37777d-0xaf;const _0x2b4a63=a53_0x2b4a();let _0x548ab9=_0x2b4a63[_0x37777d];return _0x548ab9;}export const configListDefinition={'service':a53_0x5b957a(0xb8),'command':a53_0x5b957a(0xb6),'description':'List\x20all\x20config\x20values','risk':a53_0x5b957a(0xbd),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a53_0x5b957a(0xb3),'type':a53_0x5b957a(0xb5),'description':'Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','default':![]}],'execute':execute};
1
+ const a53_0x31a741=a53_0x20c4;(function(_0x128cd8,_0x1f83d8){const _0x4d4410=a53_0x20c4,_0x25c539=_0x128cd8();while(!![]){try{const _0x54e2ea=parseInt(_0x4d4410(0xe4))/0x1+parseInt(_0x4d4410(0xdc))/0x2+parseInt(_0x4d4410(0xe3))/0x3*(parseInt(_0x4d4410(0xdf))/0x4)+parseInt(_0x4d4410(0xd4))/0x5+-parseInt(_0x4d4410(0xda))/0x6+-parseInt(_0x4d4410(0xd9))/0x7+parseInt(_0x4d4410(0xdb))/0x8*(parseInt(_0x4d4410(0xdd))/0x9);if(_0x54e2ea===_0x1f83d8)break;else _0x25c539['push'](_0x25c539['shift']());}catch(_0x191819){_0x25c539['push'](_0x25c539['shift']());}}}(a53_0x2046,0x2db26));function a53_0x20c4(_0x21de97,_0x1222f4){_0x21de97=_0x21de97-0xd4;const _0x2046ee=a53_0x2046();let _0x20c4c1=_0x2046ee[_0x21de97];return _0x20c4c1;}function a53_0x2046(){const _0x6e7161=['boolean','read','3WJmFEg','6712laIkXG','265020seZUpy','List\x20all\x20config\x20values','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','config','global','872781uiVNuK','1751454HwzSMW','1566184yAhjZs','650076veFjzW','9nFHvuG','list','92956EPmVsP','bool'];a53_0x2046=function(){return _0x6e7161;};return a53_0x2046();}import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0x567de8){const _0x434c51=a53_0x20c4,_0x263ebb=_0x567de8[_0x434c51(0xe0)]('global')?readScopedConfig(_0x434c51(0xd8)):readConfig();return{'ok':!![],'data':_0x263ebb};}export const configListDefinition={'service':a53_0x31a741(0xd7),'command':a53_0x31a741(0xde),'description':a53_0x31a741(0xd5),'risk':a53_0x31a741(0xe2),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'global','type':a53_0x31a741(0xe1),'description':a53_0x31a741(0xd6),'default':![]}],'execute':execute};
@@ -1 +1 @@
1
- const a54_0x130a47=a54_0x2343;(function(_0x1e985b,_0x90b837){const _0x114417=a54_0x2343,_0x206bc4=_0x1e985b();while(!![]){try{const _0x50077f=parseInt(_0x114417(0xc8))/0x1+parseInt(_0x114417(0xba))/0x2+parseInt(_0x114417(0xe3))/0x3*(parseInt(_0x114417(0xda))/0x4)+parseInt(_0x114417(0xe5))/0x5+-parseInt(_0x114417(0xde))/0x6*(parseInt(_0x114417(0xb9))/0x7)+parseInt(_0x114417(0xc1))/0x8*(parseInt(_0x114417(0xd1))/0x9)+-parseInt(_0x114417(0xcd))/0xa;if(_0x50077f===_0x90b837)break;else _0x206bc4['push'](_0x206bc4['shift']());}catch(_0x41f71a){_0x206bc4['push'](_0x206bc4['shift']());}}}(a54_0x2042,0x4a09a));function a54_0x2343(_0x30fe7e,_0x160490){_0x30fe7e=_0x30fe7e-0xb9;const _0x2042c9=a54_0x2042();let _0x23432e=_0x2042c9[_0x30fe7e];return _0x23432e;}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(_0x1b38bd){const _0xee660a=a54_0x2343,_0x24dc2b=_0x1b38bd[_0xee660a(0xc4)](_0xee660a(0xe0)),_0x51b476=_0x1b38bd[_0xee660a(0xc4)](_0xee660a(0xc3));if(!_0x24dc2b)throw CliErrors[_0xee660a(0xca)](_0xee660a(0xc2),_0xee660a(0xe7)+CLI_BIN_NAME+'\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>');if(_0x51b476===undefined||_0x51b476==='')throw CliErrors[_0xee660a(0xca)](_0xee660a(0xd9),'Usage:\x20'+CLI_BIN_NAME+_0xee660a(0xd8));if(_0x51b476[_0xee660a(0xc5)]>0x1f4)throw CliErrors[_0xee660a(0xca)]('Config\x20value\x20is\x20invalid\x20or\x20too\x20long.');if(!isTopLevelConfigKey(_0x24dc2b))throw CliErrors[_0xee660a(0xca)](_0xee660a(0xbe)+_0x24dc2b+_0xee660a(0xc0),'Settable\x20top-level\x20keys:\x20'+getTopLevelConfigKeySummary());if(_0x24dc2b==='riskLevel')throw CliErrors[_0xee660a(0xca)](_0xee660a(0xc7));if(CONFIG_ENUM_VALUES[_0x24dc2b]&&!CONFIG_ENUM_VALUES[_0x24dc2b][_0xee660a(0xcc)](_0x51b476))throw CliErrors[_0xee660a(0xca)](_0xee660a(0xe8)+_0x24dc2b+_0xee660a(0xd4)+CONFIG_ENUM_VALUES[_0x24dc2b][_0xee660a(0xc9)](',\x20'));if(_0x24dc2b===_0xee660a(0xbb)&&!normalizeLocale(_0x51b476))throw CliErrors['validation']('Invalid\x20locale\x20value.',_0xee660a(0xdc));const _0xf2c118={'global':_0x1b38bd[_0xee660a(0xdb)]('global')},_0x5af9fa=resolveWriteScope(_0xf2c118),_0x273c06=readScopedConfig(_0x5af9fa);let _0x30d80d=_0x24dc2b,_0x2ea46a=_0x51b476;_0x24dc2b===_0xee660a(0xe4)&&(_0x30d80d=_0xee660a(0xce),delete _0x273c06[_0xee660a(0xe4)]);_0x24dc2b===_0xee660a(0xbb)&&(_0x2ea46a=normalizeLocale(_0x51b476));if(_0x24dc2b==='env'){_0x2ea46a=normalizeEnv(_0x51b476);if(!isProduction(_0x2ea46a)&&!isDaily(_0x2ea46a))throw CliErrors[_0xee660a(0xca)]('Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.',_0xee660a(0xd5));}if(_0x24dc2b===_0xee660a(0xce)){const _0x13a1e7=_0x273c06[_0xee660a(0xe2)]&&typeof _0x273c06[_0xee660a(0xe2)]===_0xee660a(0xe9)?Object[_0xee660a(0xea)](_0x273c06[_0xee660a(0xe2)]):[];if(_0x13a1e7['length']>0x0)throw CliErrors[_0xee660a(0xca)](_0xee660a(0xe6),_0xee660a(0xd7)+CLI_BIN_NAME+'\x20app\x20add\x20<name>\x20--appcode\x20'+_0x2ea46a+'`,\x20`'+CLI_BIN_NAME+_0xee660a(0xc6));const _0x3ac7d0=buildCanonicalProjectConfig({..._0x273c06},{'appCodes':[_0x2ea46a],'env':typeof _0x273c06[_0xee660a(0xd2)]==='string'?_0x273c06[_0xee660a(0xd2)]:undefined});writeScopedConfig(_0x3ac7d0,_0x5af9fa);const _0xe0a052=_0x5af9fa===_0xee660a(0xdd)?'Global':'Project';return{'ok':!![],'message':'✓\x20'+_0xe0a052+_0xee660a(0xbf)+_0x2ea46a+_0xee660a(0xcb)};}_0x273c06[_0x30d80d]=_0x2ea46a,writeScopedConfig(_0x273c06,_0x5af9fa);const _0x5dd369=_0x5af9fa===_0xee660a(0xdd)?'Global':_0xee660a(0xbd);return{'ok':!![],'message':'✓\x20'+_0x5dd369+'\x20'+_0x30d80d+_0xee660a(0xeb)+_0x2ea46a};}export const configSetDefinition={'service':'config','command':a54_0x130a47(0xd6),'description':a54_0x130a47(0xbc),'risk':a54_0x130a47(0xd3),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a54_0x130a47(0xe0),'type':a54_0x130a47(0xcf),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a54_0x130a47(0xc3),'type':a54_0x130a47(0xcf),'description':a54_0x130a47(0xe1),'required':!![]},{'name':a54_0x130a47(0xdd),'type':a54_0x130a47(0xd0),'description':a54_0x130a47(0xdf),'default':![]}],'execute':execute};function a54_0x2042(){const _0x4573ed=['bool','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','global','666wfofKh','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','key','Config\x20value','apps','48FZPJpH','app','942100wZifDb','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','Usage:\x20','Invalid\x20value\x20for\x20\x22','object','keys','\x20set\x20to:\x20','23709UwLfwv','1131644sNobJL','locale','Set\x20a\x20config\x20value','Project','Top-level\x20key\x20\x22','\x20appcode\x20set\x20to:\x20','\x22\x20is\x20not\x20settable.','3865384ILejZe','Missing\x20key.','value','str','length','\x20workspace\x20use\x20--app\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','102693HoHOps','join','validation','\x20(stored\x20as\x20apps\x20+\x20defaultApp)','includes','12642850rSMOeQ','appcode','string','boolean','9hYXMDI','env','write','\x22.\x20Allowed:\x20','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','set','Use\x20`','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','Missing\x20value.','150848RYxESC'];a54_0x2042=function(){return _0x4573ed;};return a54_0x2042();}
1
+ const a54_0x370437=a54_0x44f8;(function(_0x28975f,_0xe19d71){const _0x2df210=a54_0x44f8,_0x132858=_0x28975f();while(!![]){try{const _0x50bd0c=parseInt(_0x2df210(0x199))/0x1+-parseInt(_0x2df210(0x1a0))/0x2+parseInt(_0x2df210(0x196))/0x3*(parseInt(_0x2df210(0x182))/0x4)+parseInt(_0x2df210(0x18e))/0x5+parseInt(_0x2df210(0x194))/0x6*(parseInt(_0x2df210(0x17f))/0x7)+-parseInt(_0x2df210(0x19c))/0x8*(parseInt(_0x2df210(0x183))/0x9)+parseInt(_0x2df210(0x18b))/0xa;if(_0x50bd0c===_0xe19d71)break;else _0x132858['push'](_0x132858['shift']());}catch(_0x2da37e){_0x132858['push'](_0x132858['shift']());}}}(a54_0x3357,0x32510));import{CliErrors}from'../../errors.js';function a54_0x3357(){const _0x3aea8c=['Set\x20a\x20config\x20value','392FPGtPr','1135629tOuLNW','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','Global','\x20workspace\x20use\x20--app\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','apps','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','includes','840800fqdpOJ','value','keys','954200miRole','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','\x20app\x20add\x20<name>\x20--appcode\x20','global','Use\x20`','join','932628WeFYBu','Invalid\x20locale\x20value.','7023bOJXxg','\x22.\x20Allowed:\x20','Invalid\x20value\x20for\x20\x22','108451mmvnkq','Project','string','16rwYImY','write','env','\x20set\x20to:\x20','619538pfrryL','key','length','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','locale','\x22\x20is\x20not\x20settable.','app','appcode','str','boolean','Usage:\x20','Settable\x20top-level\x20keys:\x20','\x20appcode\x20set\x20to:\x20','Missing\x20key.','validation','Missing\x20value.','riskLevel','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','Top-level\x20key\x20\x22','7nnoYOA','\x20(stored\x20as\x20apps\x20+\x20defaultApp)'];a54_0x3357=function(){return _0x3aea8c;};return a54_0x3357();}import{buildCanonicalProjectConfig}from'../../config/schema.js';import{CLI_BIN_NAME,CONFIG_ENUM_VALUES,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';function a54_0x44f8(_0xdb1710,_0x2ec75c){_0xdb1710=_0xdb1710-0x178;const _0x335712=a54_0x3357();let _0x44f8c9=_0x335712[_0xdb1710];return _0x44f8c9;}import{normalizeEnv,isProduction,isDaily}from'../../constant/env.js';async function execute(_0xa7904b){const _0x5e2200=a54_0x44f8,_0x229f68=_0xa7904b['str'](_0x5e2200(0x1a1)),_0x2f45b6=_0xa7904b[_0x5e2200(0x1a8)]('value');if(!_0x229f68)throw CliErrors[_0x5e2200(0x17a)](_0x5e2200(0x179),_0x5e2200(0x1aa)+CLI_BIN_NAME+_0x5e2200(0x17d));if(_0x2f45b6===undefined||_0x2f45b6==='')throw CliErrors[_0x5e2200(0x17a)](_0x5e2200(0x17b),_0x5e2200(0x1aa)+CLI_BIN_NAME+_0x5e2200(0x17d));if(_0x2f45b6[_0x5e2200(0x1a2)]>0x1f4)throw CliErrors['validation'](_0x5e2200(0x18f));if(!isTopLevelConfigKey(_0x229f68))throw CliErrors[_0x5e2200(0x17a)](_0x5e2200(0x17e)+_0x229f68+_0x5e2200(0x1a5),_0x5e2200(0x1ab)+getTopLevelConfigKeySummary());if(_0x229f68===_0x5e2200(0x17c))throw CliErrors['validation'](_0x5e2200(0x1a3));if(CONFIG_ENUM_VALUES[_0x229f68]&&!CONFIG_ENUM_VALUES[_0x229f68][_0x5e2200(0x18a)](_0x2f45b6))throw CliErrors[_0x5e2200(0x17a)](_0x5e2200(0x198)+_0x229f68+_0x5e2200(0x197)+CONFIG_ENUM_VALUES[_0x229f68][_0x5e2200(0x193)](',\x20'));if(_0x229f68===_0x5e2200(0x1a4)&&!normalizeLocale(_0x2f45b6))throw CliErrors['validation'](_0x5e2200(0x195),'Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US');const _0x1de990={'global':_0xa7904b['bool'](_0x5e2200(0x191))},_0x2655f0=resolveWriteScope(_0x1de990),_0x3edc93=readScopedConfig(_0x2655f0);let _0x9b43dc=_0x229f68,_0x5e1cbd=_0x2f45b6;_0x229f68===_0x5e2200(0x1a6)&&(_0x9b43dc=_0x5e2200(0x1a7),delete _0x3edc93[_0x5e2200(0x1a6)]);_0x229f68===_0x5e2200(0x1a4)&&(_0x5e1cbd=normalizeLocale(_0x2f45b6));if(_0x229f68==='env'){_0x5e1cbd=normalizeEnv(_0x2f45b6);if(!isProduction(_0x5e1cbd)&&!isDaily(_0x5e1cbd))throw CliErrors[_0x5e2200(0x17a)](_0x5e2200(0x187),_0x5e2200(0x184));}if(_0x229f68===_0x5e2200(0x1a7)){const _0x429a9c=_0x3edc93['apps']&&typeof _0x3edc93['apps']==='object'?Object[_0x5e2200(0x18d)](_0x3edc93[_0x5e2200(0x188)]):[];if(_0x429a9c[_0x5e2200(0x1a2)]>0x0)throw CliErrors[_0x5e2200(0x17a)](_0x5e2200(0x189),_0x5e2200(0x192)+CLI_BIN_NAME+_0x5e2200(0x190)+_0x5e1cbd+'`,\x20`'+CLI_BIN_NAME+_0x5e2200(0x186));const _0x20b61a=buildCanonicalProjectConfig({..._0x3edc93},{'appCodes':[_0x5e1cbd],'env':typeof _0x3edc93[_0x5e2200(0x19e)]===_0x5e2200(0x19b)?_0x3edc93[_0x5e2200(0x19e)]:undefined});writeScopedConfig(_0x20b61a,_0x2655f0);const _0x1cdeff=_0x2655f0==='global'?'Global':_0x5e2200(0x19a);return{'ok':!![],'message':'✓\x20'+_0x1cdeff+_0x5e2200(0x178)+_0x5e1cbd+_0x5e2200(0x180)};}_0x3edc93[_0x9b43dc]=_0x5e1cbd,writeScopedConfig(_0x3edc93,_0x2655f0);const _0x30162e=_0x2655f0===_0x5e2200(0x191)?_0x5e2200(0x185):_0x5e2200(0x19a);return{'ok':!![],'message':'✓\x20'+_0x30162e+'\x20'+_0x9b43dc+_0x5e2200(0x19f)+_0x5e1cbd};}export const configSetDefinition={'service':'config','command':'set','description':a54_0x370437(0x181),'risk':a54_0x370437(0x19d),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a54_0x370437(0x1a1),'type':'string','description':getConfigCommandKeyDescription(),'required':!![]},{'name':a54_0x370437(0x18c),'type':a54_0x370437(0x19b),'description':'Config\x20value','required':!![]},{'name':'global','type':a54_0x370437(0x1a9),'description':'Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','default':![]}],'execute':execute};
@@ -1 +1 @@
1
- (function(_0x22e9a3,_0x293dcf){var _0x4af71a=a55_0x3dc5,_0x20d221=_0x22e9a3();while(!![]){try{var _0xe6d555=-parseInt(_0x4af71a(0x1b2))/0x1+-parseInt(_0x4af71a(0x1ab))/0x2+parseInt(_0x4af71a(0x1a7))/0x3+-parseInt(_0x4af71a(0x1a9))/0x4*(parseInt(_0x4af71a(0x1aa))/0x5)+-parseInt(_0x4af71a(0x1b0))/0x6*(parseInt(_0x4af71a(0x1ac))/0x7)+parseInt(_0x4af71a(0x1af))/0x8*(parseInt(_0x4af71a(0x1ad))/0x9)+parseInt(_0x4af71a(0x1b3))/0xa*(parseInt(_0x4af71a(0x1a8))/0xb);if(_0xe6d555===_0x293dcf)break;else _0x20d221['push'](_0x20d221['shift']());}catch(_0xbc5ddc){_0x20d221['push'](_0x20d221['shift']());}}}(a55_0x17b8,0xbf896));import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';function a55_0x3dc5(_0x5f29ec,_0x4e07e9){_0x5f29ec=_0x5f29ec-0x1a7;var _0x17b876=a55_0x17b8();var _0x3dc588=_0x17b876[_0x5f29ec];return _0x3dc588;}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};function a55_0x17b8(){var _0xe59833=['667494NtWqHF','11UaydPY','93468sVDEYo','285vtXXOd','210816BiDLtc','7qJlUGz','277731oqGriW','global','312HcUQpH','6269994ZfURCS','project','528757omzTNe','23696180nTBeyE'];a55_0x17b8=function(){return _0xe59833;};return a55_0x17b8();}export function resolveWriteScope(_0x30f0d4){var _0x1ba235=a55_0x3dc5;if(_0x30f0d4['global'])return _0x1ba235(0x1ae);if(!isInProject())throw CliErrors['validation']('Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`'+CLI_BIN_NAME+'\x20init`\x20first.');return _0x1ba235(0x1b1);}export function readScopedConfig(_0x141123){return readConfigFile(resolveWriteConfigPath(_0x141123));}export function writeScopedConfig(_0x20bd02,_0x2129a1){writeConfigFile(resolveWriteConfigPath(_0x2129a1),_0x20bd02);}
1
+ (function(_0x477537,_0x448e6d){var _0x3fe4b1=a55_0x139d,_0x243a17=_0x477537();while(!![]){try{var _0x49b906=parseInt(_0x3fe4b1(0xce))/0x1+parseInt(_0x3fe4b1(0xc9))/0x2+parseInt(_0x3fe4b1(0xcf))/0x3*(parseInt(_0x3fe4b1(0xc3))/0x4)+parseInt(_0x3fe4b1(0xc7))/0x5*(-parseInt(_0x3fe4b1(0xd1))/0x6)+-parseInt(_0x3fe4b1(0xc6))/0x7*(parseInt(_0x3fe4b1(0xcb))/0x8)+-parseInt(_0x3fe4b1(0xcc))/0x9+parseInt(_0x3fe4b1(0xc8))/0xa*(-parseInt(_0x3fe4b1(0xcd))/0xb);if(_0x49b906===_0x448e6d)break;else _0x243a17['push'](_0x243a17['shift']());}catch(_0x5c9468){_0x243a17['push'](_0x243a17['shift']());}}}(a55_0x365c,0xba9a0));import{CLI_BIN_NAME}from'../../constant/cli.js';function a55_0x365c(){var _0x236e99=['6HOAuBG','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','4bFcEuf','global','project','7TgHZIY','1828130vxiCZg','790JaeQbN','2670782nKGtEU','validation','1227720QnqoMj','4510935tHgHhK','16159QwMDxT','531155YqGMWH','102393RBsVzW','\x20init`\x20first.'];a55_0x365c=function(){return _0x236e99;};return a55_0x365c();}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};function a55_0x139d(_0x36a989,_0xf399ea){_0x36a989=_0x36a989-0xc3;var _0x365c44=a55_0x365c();var _0x139d0e=_0x365c44[_0x36a989];return _0x139d0e;}export{normalizeLocale};export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0x5a1c06){var _0x5774e0=a55_0x139d;if(_0x5a1c06['global'])return _0x5774e0(0xc4);if(!isInProject())throw CliErrors[_0x5774e0(0xca)](_0x5774e0(0xd3),_0x5774e0(0xd2)+CLI_BIN_NAME+_0x5774e0(0xd0));return _0x5774e0(0xc5);}export function readScopedConfig(_0x9b9d24){return readConfigFile(resolveWriteConfigPath(_0x9b9d24));}export function writeScopedConfig(_0x2be1b9,_0x408d47){writeConfigFile(resolveWriteConfigPath(_0x408d47),_0x2be1b9);}
@@ -1 +1 @@
1
- function a56_0x51be(_0x369f2c,_0x5327ca){_0x369f2c=_0x369f2c-0x83;const _0x1568cb=a56_0x1568();let _0x51be83=_0x1568cb[_0x369f2c];return _0x51be83;}function a56_0x1568(){const _0x2bccdb=['\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]','1928826PDIeaS','2626128baPopZ','6390GgsVfM','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions','147rxCLZh','filter','5956ZckCKG','\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','5frjjbr','1275460QsijiJ','3QbTxBB','4728515qShddv','Filter\x20dataset\x20records\x20with\x20query\x20conditions','687568tIaUPl','200LXsvfN'];a56_0x1568=function(){return _0x2bccdb;};return a56_0x1568();}const a56_0x216876=a56_0x51be;(function(_0x1c86ab,_0x5c0801){const _0x56f281=a56_0x51be,_0x3ce9f5=_0x1c86ab();while(!![]){try{const _0x2c7cdb=parseInt(_0x56f281(0x86))/0x1*(-parseInt(_0x56f281(0x88))/0x2)+parseInt(_0x56f281(0x8d))/0x3*(parseInt(_0x56f281(0x8c))/0x4)+-parseInt(_0x56f281(0x8b))/0x5*(-parseInt(_0x56f281(0x93))/0x6)+-parseInt(_0x56f281(0x90))/0x7+-parseInt(_0x56f281(0x83))/0x8+parseInt(_0x56f281(0x84))/0x9*(parseInt(_0x56f281(0x91))/0xa)+parseInt(_0x56f281(0x8e))/0xb;if(_0x2c7cdb===_0x5c0801)break;else _0x3ce9f5['push'](_0x3ce9f5['shift']());}catch(_0x6a75e4){_0x3ce9f5['push'](_0x3ce9f5['shift']());}}}(a56_0x1568,0x35bf1));import{buildDataCommand}from'../../commands/data/shared.js';export const dataFilter=buildDataCommand({'command':a56_0x216876(0x87),'operation':a56_0x216876(0x87),'description':a56_0x216876(0x8f),'paramsRequired':![],'paramsHint':a56_0x216876(0x8a),'helpExtra':[a56_0x216876(0x89),a56_0x216876(0x85),a56_0x216876(0x92),'\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']['join']('\x0a')});
1
+ const a56_0x145897=a56_0x205d;(function(_0x128ec5,_0x19f052){const _0x1b33db=a56_0x205d,_0x255cfe=_0x128ec5();while(!![]){try{const _0x14fc7a=parseInt(_0x1b33db(0x108))/0x1+-parseInt(_0x1b33db(0x107))/0x2+parseInt(_0x1b33db(0x10a))/0x3*(parseInt(_0x1b33db(0xfc))/0x4)+-parseInt(_0x1b33db(0x105))/0x5*(parseInt(_0x1b33db(0x10c))/0x6)+parseInt(_0x1b33db(0x101))/0x7+-parseInt(_0x1b33db(0x106))/0x8+parseInt(_0x1b33db(0x10b))/0x9;if(_0x14fc7a===_0x19f052)break;else _0x255cfe['push'](_0x255cfe['shift']());}catch(_0xc52db5){_0x255cfe['push'](_0x255cfe['shift']());}}}(a56_0x1e83,0x39c91));function a56_0x205d(_0x5a9cf4,_0x1963c5){_0x5a9cf4=_0x5a9cf4-0xfb;const _0x1e8397=a56_0x1e83();let _0x205de7=_0x1e8397[_0x5a9cf4];return _0x205de7;}import{buildDataCommand}from'../../commands/data/shared.js';function a56_0x1e83(){const _0xb27ba2=['\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\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]','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','1083544zeRcrk','Filter\x20dataset\x20records\x20with\x20query\x20conditions','filter','join','4135ElNAgw','3198152ZwnPGh','759200cAlENL','365857qHRkzI','\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}]','433929nLgIxR','1491138hXsmbB','756ZuTBfw','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions','12RxGmyX','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page'];a56_0x1e83=function(){return _0xb27ba2;};return a56_0x1e83();}export const dataFilter=buildDataCommand({'command':a56_0x145897(0x103),'operation':a56_0x145897(0x103),'description':a56_0x145897(0x102),'paramsRequired':![],'paramsHint':a56_0x145897(0x100),'helpExtra':[a56_0x145897(0xfe),a56_0x145897(0xfb),a56_0x145897(0xff),a56_0x145897(0x109),'\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)',a56_0x145897(0xfd)][a56_0x145897(0x104)]('\x0a')});
@@ -1 +1 @@
1
- function a57_0xcd5c(_0x7bfc60,_0x3915bd){_0x7bfc60=_0x7bfc60-0x16e;const _0x4b2c1a=a57_0x4b2c();let _0xcd5c5f=_0x4b2c1a[_0x7bfc60];return _0xcd5c5f;}const a57_0x2bc058=a57_0xcd5c;(function(_0x1d548e,_0xb10d6){const _0x47db02=a57_0xcd5c,_0xe4d097=_0x1d548e();while(!![]){try{const _0x1a3ae3=parseInt(_0x47db02(0x171))/0x1+-parseInt(_0x47db02(0x172))/0x2*(-parseInt(_0x47db02(0x16f))/0x3)+parseInt(_0x47db02(0x173))/0x4+-parseInt(_0x47db02(0x16e))/0x5*(parseInt(_0x47db02(0x175))/0x6)+parseInt(_0x47db02(0x176))/0x7*(-parseInt(_0x47db02(0x178))/0x8)+-parseInt(_0x47db02(0x17a))/0x9+-parseInt(_0x47db02(0x177))/0xa;if(_0x1a3ae3===_0xb10d6)break;else _0xe4d097['push'](_0xe4d097['shift']());}catch(_0x4730dd){_0xe4d097['push'](_0xe4d097['shift']());}}}(a57_0x4b2c,0x6886e));import{buildDataCommand}from'../../commands/data/shared.js';export const dataGetOne=buildDataCommand({'command':a57_0x2bc058(0x170),'operation':a57_0x2bc058(0x170),'description':a57_0x2bc058(0x174),'paramsRequired':!![],'paramsHint':a57_0x2bc058(0x179)});function a57_0x4b2c(){const _0xa4f90c=['getOne','713220ZXxwRQ','34nbbLbd','2704692ZBeGlh','Get\x20a\x20single\x20record\x20by\x20ID','2236578ksnAKc','392HRzyvU','6126540ZwyWUv','46824oAaOHk','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','2592279UVoCFj','5wKyzCt','112935WDThjH'];a57_0x4b2c=function(){return _0xa4f90c;};return a57_0x4b2c();}
1
+ function a57_0x4367(){const _0x2cfc29=['6238370rZMuWR','getOne','1003797fqGtts','4ysPsiW','16569DqXwcu','624VbawLq','4YdhKBX','Get\x20a\x20single\x20record\x20by\x20ID','3168056xOAMaO','1031118cwWEXS','716535JkNglJ','1042841YaoLun','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'];a57_0x4367=function(){return _0x2cfc29;};return a57_0x4367();}const a57_0x2147df=a57_0x5133;(function(_0x607e50,_0x725af7){const _0x13b68b=a57_0x5133,_0x1aeecd=_0x607e50();while(!![]){try{const _0x495946=parseInt(_0x13b68b(0x1d8))/0x1+parseInt(_0x13b68b(0x1dd))/0x2*(parseInt(_0x13b68b(0x1d6))/0x3)+parseInt(_0x13b68b(0x1d3))/0x4*(parseInt(_0x13b68b(0x1d7))/0x5)+-parseInt(_0x13b68b(0x1d2))/0x6*(parseInt(_0x13b68b(0x1d1))/0x7)+-parseInt(_0x13b68b(0x1d5))/0x8+parseInt(_0x13b68b(0x1dc))/0x9+-parseInt(_0x13b68b(0x1da))/0xa;if(_0x495946===_0x725af7)break;else _0x1aeecd['push'](_0x1aeecd['shift']());}catch(_0x341c00){_0x1aeecd['push'](_0x1aeecd['shift']());}}}(a57_0x4367,0xaf8e9));function a57_0x5133(_0x503c4e,_0x32e62c){_0x503c4e=_0x503c4e-0x1d1;const _0x43678e=a57_0x4367();let _0x5133ce=_0x43678e[_0x503c4e];return _0x5133ce;}import{buildDataCommand}from'../../commands/data/shared.js';export const dataGetOne=buildDataCommand({'command':a57_0x2147df(0x1db),'operation':'getOne','description':a57_0x2147df(0x1d4),'paramsRequired':!![],'paramsHint':a57_0x2147df(0x1d9)});
@@ -1 +1 @@
1
- (function(_0x1b3b6b,_0x8c4f0b){const _0x2f361a=a58_0x484d,_0x2678a7=_0x1b3b6b();while(!![]){try{const _0x44081d=parseInt(_0x2f361a(0xae))/0x1+parseInt(_0x2f361a(0xad))/0x2+-parseInt(_0x2f361a(0xac))/0x3*(parseInt(_0x2f361a(0xa9))/0x4)+-parseInt(_0x2f361a(0xb2))/0x5+-parseInt(_0x2f361a(0xb0))/0x6*(-parseInt(_0x2f361a(0xaf))/0x7)+-parseInt(_0x2f361a(0xab))/0x8+parseInt(_0x2f361a(0xaa))/0x9*(parseInt(_0x2f361a(0xb1))/0xa);if(_0x44081d===_0x8c4f0b)break;else _0x2678a7['push'](_0x2678a7['shift']());}catch(_0x133c7a){_0x2678a7['push'](_0x2678a7['shift']());}}}(a58_0x1110,0xf18a4));function a58_0x484d(_0x1653bb,_0x382f51){_0x1653bb=_0x1653bb-0xa9;const _0x111013=a58_0x1110();let _0x484d59=_0x111013[_0x1653bb];return _0x484d59;}function a58_0x1110(){const _0x4b298b=['525369RKyMck','237517joaDyJ','150iJLXqe','20oDDExU','6207795slqiVW','28VvCCfl','11638278MSCqMH','2278384FBXoZp','708114rDTFkZ','416086SHcDyZ'];a58_0x1110=function(){return _0x4b298b;};return a58_0x1110();}import{dataFilter}from'../../commands/data/filter.js';import{dataGetOne}from'../../commands/data/getOne.js';export const dataDefinitions=[dataFilter,dataGetOne];
1
+ function a58_0x16f2(_0x378801,_0x5965c4){_0x378801=_0x378801-0xec;const _0x20a0f8=a58_0x20a0();let _0x16f2a2=_0x20a0f8[_0x378801];return _0x16f2a2;}(function(_0x9d9b6f,_0x26fa61){const _0x4c98eb=a58_0x16f2,_0x37edf9=_0x9d9b6f();while(!![]){try{const _0x479e7b=-parseInt(_0x4c98eb(0xf0))/0x1+parseInt(_0x4c98eb(0xf3))/0x2+-parseInt(_0x4c98eb(0xed))/0x3+parseInt(_0x4c98eb(0xf1))/0x4+-parseInt(_0x4c98eb(0xee))/0x5*(-parseInt(_0x4c98eb(0xef))/0x6)+-parseInt(_0x4c98eb(0xf2))/0x7+parseInt(_0x4c98eb(0xec))/0x8;if(_0x479e7b===_0x26fa61)break;else _0x37edf9['push'](_0x37edf9['shift']());}catch(_0x452cdf){_0x37edf9['push'](_0x37edf9['shift']());}}}(a58_0x20a0,0x5edc8));function a58_0x20a0(){const _0x465a1e=['5zWkCFN','4438686RUnNup','735618QbSIbU','1113780vcfPWM','432152xhvSPj','330778cayUoO','479440LFnwMT','172917hNEsyX'];a58_0x20a0=function(){return _0x465a1e;};return a58_0x20a0();}import{dataFilter}from'../../commands/data/filter.js';import{dataGetOne}from'../../commands/data/getOne.js';export const dataDefinitions=[dataFilter,dataGetOne];
@@ -1 +1 @@
1
- (function(_0x1506b6,_0x43fe57){const _0x3f4cc6=a59_0x39cb,_0x36dc23=_0x1506b6();while(!![]){try{const _0x2829ce=parseInt(_0x3f4cc6(0xb8))/0x1*(-parseInt(_0x3f4cc6(0xc0))/0x2)+-parseInt(_0x3f4cc6(0xb7))/0x3+-parseInt(_0x3f4cc6(0xba))/0x4+parseInt(_0x3f4cc6(0xb5))/0x5+parseInt(_0x3f4cc6(0xa4))/0x6+parseInt(_0x3f4cc6(0xab))/0x7*(-parseInt(_0x3f4cc6(0xa6))/0x8)+-parseInt(_0x3f4cc6(0xb3))/0x9*(-parseInt(_0x3f4cc6(0xa2))/0xa);if(_0x2829ce===_0x43fe57)break;else _0x36dc23['push'](_0x36dc23['shift']());}catch(_0x28707e){_0x36dc23['push'](_0x36dc23['shift']());}}}(a59_0xe31a,0xe18d0));import{executeDatasetDataOperation}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';function a59_0xe31a(){const _0x1a024d=['now','paramsRequired','data','data\x20','749utYPEB','code','command','compress','str','flagMissing','description','paramsHint','14280426pCfxhC','appCode','5450105RHwjkK','validation','1001511ceAXms','1vLKARj','params','4595852dfNBXV','operation','alias','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','string','data\x20getOne\x20requires\x20\x22id\x22\x20in\x20--params','80156MEDAwb','10qWmWrh','read','1225230FbuuSH','Provide\x20--params\x20\x27{\x22id\x22:123}\x27\x20for\x20data\x20getOne.','32464vjNrjU'];a59_0xe31a=function(){return _0x1a024d;};return a59_0xe31a();}import{parseJsonParams}from'../../utils/params.js';function assertGetOneId(_0x573288){const _0x2654f0=a59_0x39cb;if(!_0x573288)throw CliErrors[_0x2654f0(0xb0)](_0x2654f0(0xb9),_0x2654f0(0xa5));const _0x43109e=_0x573288['id'];if(_0x43109e===undefined||_0x43109e===null||_0x43109e==='')throw CliErrors[_0x2654f0(0xb6)](_0x2654f0(0xbf),_0x2654f0(0xbd));}function a59_0x39cb(_0x5b2e0b,_0x76ccd6){_0x5b2e0b=_0x5b2e0b-0xa2;const _0xe31ae3=a59_0xe31a();let _0x39cb6f=_0xe31ae3[_0x5b2e0b];return _0x39cb6f;}function parseCommandParams(_0x296ec9){return parseJsonParams(_0x296ec9)??{};}export function buildDataCommand(_0x1c8b39){const _0x37e2a1=a59_0x39cb,_0xdd9969='Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically';return{'service':_0x37e2a1(0xa9),'command':_0x1c8b39[_0x37e2a1(0xad)],'description':_0x1c8b39[_0x37e2a1(0xb1)],'risk':_0x37e2a1(0xa3),'defaultOutputFormat':_0x37e2a1(0xae),'helpExtra':_0x1c8b39['helpExtra'],'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':_0x37e2a1(0xbc),'type':_0x37e2a1(0xbe),'description':_0xdd9969},{'name':_0x37e2a1(0xb9),'type':_0x37e2a1(0xbe),'description':_0x1c8b39[_0x37e2a1(0xb2)]}],async 'validate'(_0x2e5b2d){const _0x2d477f=_0x37e2a1,_0x45c766=_0x2e5b2d['str'](_0x2d477f(0xb9));if(_0x1c8b39[_0x2d477f(0xa8)]&&!_0x45c766)throw CliErrors[_0x2d477f(0xb0)]('params',_0x1c8b39[_0x2d477f(0xb2)]);const _0x19265e=parseJsonParams(_0x45c766);_0x1c8b39[_0x2d477f(0xbb)]==='getOne'&&assertGetOneId(_0x19265e);},async 'execute'(_0x560146){const _0x2b717d=_0x37e2a1,_0x339184=parseCommandParams(_0x560146[_0x2b717d(0xaf)]('params')),_0x33dfa3=Date[_0x2b717d(0xa7)](),_0x428785=await executeDatasetDataOperation(_0x560146[_0x2b717d(0xb4)],_0x560146[_0x2b717d(0xaf)](_0x2b717d(0xac)),_0x1c8b39['operation'],_0x339184),_0x1dfccf=Date['now']()-_0x33dfa3;return{'ok':!![],'data':{'result':_0x428785,'elapsed':_0x1dfccf},'message':_0x2b717d(0xaa)+_0x1c8b39[_0x2b717d(0xad)]+'\x20completed\x20in\x20'+_0x1dfccf+'ms'};}};}
1
+ function a59_0x58ce(_0x170282,_0xce885c){_0x170282=_0x170282-0x109;const _0x29164c=a59_0x2916();let _0x58ce4a=_0x29164c[_0x170282];return _0x58ce4a;}(function(_0x4412e6,_0x176499){const _0x5ca3d5=a59_0x58ce,_0x26e87f=_0x4412e6();while(!![]){try{const _0x24702f=-parseInt(_0x5ca3d5(0x117))/0x1+parseInt(_0x5ca3d5(0x10f))/0x2*(-parseInt(_0x5ca3d5(0x124))/0x3)+parseInt(_0x5ca3d5(0x10e))/0x4*(-parseInt(_0x5ca3d5(0x10c))/0x5)+-parseInt(_0x5ca3d5(0x11b))/0x6*(parseInt(_0x5ca3d5(0x112))/0x7)+parseInt(_0x5ca3d5(0x123))/0x8+-parseInt(_0x5ca3d5(0x126))/0x9+parseInt(_0x5ca3d5(0x10d))/0xa;if(_0x24702f===_0x176499)break;else _0x26e87f['push'](_0x26e87f['shift']());}catch(_0x4d18dc){_0x26e87f['push'](_0x26e87f['shift']());}}}(a59_0x2916,0x289a9));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 assertGetOneId(_0x29da73){const _0x276017=a59_0x58ce;if(!_0x29da73)throw CliErrors[_0x276017(0x11c)](_0x276017(0x121),_0x276017(0x119));const _0xd8f7a4=_0x29da73['id'];if(_0xd8f7a4===undefined||_0xd8f7a4===null||_0xd8f7a4==='')throw CliErrors['validation'](_0x276017(0x120),_0x276017(0x115));}function a59_0x2916(){const _0xbdf951=['1393etPdHT','now','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','getOne','114148DOHSRb','str','Provide\x20--params\x20\x27{\x22id\x22:123}\x27\x20for\x20data\x20getOne.','command','9714PabbBf','flagMissing','read','string','helpExtra','data\x20getOne\x20requires\x20\x22id\x22\x20in\x20--params','params','operation','2242544vlrJwo','101226DBShmc','alias','339291uSCgSY','data','\x20completed\x20in\x20','appCode','compress','288100OSCiBe','7690770Vbfmnj','12QUQZXM','14VKBldn','paramsRequired','code'];a59_0x2916=function(){return _0xbdf951;};return a59_0x2916();}function parseCommandParams(_0x4719b5){return parseJsonParams(_0x4719b5)??{};}export function buildDataCommand(_0x585a11){const _0x20706e=a59_0x58ce,_0x4ff165=_0x20706e(0x114);return{'service':_0x20706e(0x127),'command':_0x585a11[_0x20706e(0x11a)],'description':_0x585a11['description'],'risk':_0x20706e(0x11d),'defaultOutputFormat':_0x20706e(0x10b),'helpExtra':_0x585a11[_0x20706e(0x11f)],'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':_0x20706e(0x125),'type':_0x20706e(0x11e),'description':_0x4ff165},{'name':'params','type':_0x20706e(0x11e),'description':_0x585a11['paramsHint']}],async 'validate'(_0x1fc00f){const _0x41b447=_0x20706e,_0x18e903=_0x1fc00f[_0x41b447(0x118)](_0x41b447(0x121));if(_0x585a11[_0x41b447(0x110)]&&!_0x18e903)throw CliErrors[_0x41b447(0x11c)]('params',_0x585a11['paramsHint']);const _0x2a93c2=parseJsonParams(_0x18e903);_0x585a11[_0x41b447(0x122)]===_0x41b447(0x116)&&assertGetOneId(_0x2a93c2);},async 'execute'(_0x4df774){const _0x1a5b8b=_0x20706e,_0x50e7b2=parseCommandParams(_0x4df774[_0x1a5b8b(0x118)](_0x1a5b8b(0x121))),_0x317ae8=Date[_0x1a5b8b(0x113)](),_0xd93ecb=await executeDatasetDataOperation(_0x4df774[_0x1a5b8b(0x10a)],_0x4df774[_0x1a5b8b(0x118)](_0x1a5b8b(0x111)),_0x585a11[_0x1a5b8b(0x122)],_0x50e7b2),_0x56eb95=Date[_0x1a5b8b(0x113)]()-_0x317ae8;return{'ok':!![],'data':{'result':_0xd93ecb,'elapsed':_0x56eb95},'message':'data\x20'+_0x585a11['command']+_0x1a5b8b(0x109)+_0x56eb95+'ms'};}};}
@@ -1 +1 @@
1
- const a60_0x3fbcea=a60_0x7375;(function(_0x3c8ef8,_0x5dacaa){const _0x634c7b=a60_0x7375,_0x2fceff=_0x3c8ef8();while(!![]){try{const _0x22bcda=parseInt(_0x634c7b(0x1ee))/0x1*(-parseInt(_0x634c7b(0x1d5))/0x2)+parseInt(_0x634c7b(0x1c6))/0x3*(parseInt(_0x634c7b(0x1e6))/0x4)+-parseInt(_0x634c7b(0x1c3))/0x5*(-parseInt(_0x634c7b(0x1c9))/0x6)+-parseInt(_0x634c7b(0x1c0))/0x7+parseInt(_0x634c7b(0x1ca))/0x8+-parseInt(_0x634c7b(0x1c8))/0x9*(parseInt(_0x634c7b(0x1ea))/0xa)+parseInt(_0x634c7b(0x1bd))/0xb;if(_0x22bcda===_0x5dacaa)break;else _0x2fceff['push'](_0x2fceff['shift']());}catch(_0xef466){_0x2fceff['push'](_0x2fceff['shift']());}}}(a60_0x3bd2,0x48551));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='/smartapi/question/er-config/business-group/edit';export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x447695,input:_0x27ef68,dryRun:_0x249727}){const _0x554738=a60_0x7375;validateInput(_0x27ef68);const _0x386436=normalizeBusinessGroup(_0x27ef68['businessGroup']),_0x5317e4=await getDatasetDetail(_0x27ef68[_0x554738(0x1e8)]),_0x26d506=resolveBusinessGroupDataset(_0x5317e4,_0x27ef68[_0x554738(0x1e8)]),_0x5d4bf2=loadCurrentBusinessGroup(_0x5317e4,_0x26d506);assertExpectedBusinessGroup(_0x5d4bf2,_0x27ef68['expectBusinessGroup']);const _0x291d37=buildBackendPayload(_0x447695,_0x26d506,_0x386436),_0x2055a6=_0x5d4bf2!==_0x386436;let _0x117549;if(_0x2055a6&&!_0x249727){await updateErBusinessGroup(_0x291d37);const _0x4cd127=await getDatasetDetail(_0x26d506[_0x554738(0x1e8)]),_0x793a80=resolveBusinessGroupDataset(_0x4cd127,_0x26d506[_0x554738(0x1e8)]),_0x341923=loadCurrentBusinessGroup(_0x4cd127,_0x793a80);if(_0x341923!==_0x386436)throw CliErrors['apiError'](_0x554738(0x1d2),'Expected\x20'+JSON[_0x554738(0x1e5)](_0x386436)+_0x554738(0x1d4)+JSON[_0x554738(0x1e5)](_0x341923)+'.');_0x117549={'verified':!![],'status':_0x554738(0x1d6),'afterReadback':{'businessGroup':_0x341923}};}else!_0x2055a6&&(_0x117549={'verified':!![],'status':_0x554738(0x1d9),'afterReadback':{'businessGroup':_0x5d4bf2}});const _0x138651={'operation':_0x554738(0x1c4),'appCode':_0x447695,'selector':{'code':_0x26d506['code']},'dataset':_0x26d506,'before':{'businessGroup':_0x5d4bf2},'after':{'businessGroup':_0x386436},'changed':_0x2055a6,'dryRun':_0x249727,'submitted':_0x2055a6&&!_0x249727,'backend':{'method':_0x554738(0x1ed),'path':BACKEND_PATH,'payload':_0x291d37},..._0x117549?{'verification':_0x117549}:{},'warnings':[]};return{'ok':!![],'data':_0x138651,'message':_0x2055a6?_0x249727?_0x554738(0x1d7)+_0x26d506[_0x554738(0x1e8)]:'Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20'+_0x26d506[_0x554738(0x1e8)]:_0x554738(0x1e1)+_0x26d506[_0x554738(0x1e8)]};}export const datasetBusinessGroupUpdate={'service':a60_0x3fbcea(0x1c1),'command':a60_0x3fbcea(0x1be),'description':'Update\x20business\x20scenario\x20group','risk':a60_0x3fbcea(0x1d1),'flags':[CODE_FLAG,{'name':'business-group','type':a60_0x3fbcea(0x1cd),'required':!![],'description':a60_0x3fbcea(0x1ec)},{'name':a60_0x3fbcea(0x1e7),'type':'string','required':![],'description':a60_0x3fbcea(0x1bf)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x377a65){validateInput(readBusinessGroupUpdateInput(_0x377a65));},async 'dryRun'(_0x56e119){const _0x2cc22e=a60_0x3fbcea,_0x208233=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x56e119[_0x2cc22e(0x1d3)],'input':readBusinessGroupUpdateInput(_0x56e119),'dryRun':!![]});return{'method':'POST','url':BACKEND_PATH,'body':_0x208233[_0x2cc22e(0x1f1)][_0x2cc22e(0x1df)]['payload'],'description':_0x208233['message'],..._0x208233[_0x2cc22e(0x1f1)]};},async 'execute'(_0x3b4c88){const _0x40c6b5=a60_0x3fbcea;return buildDatasetBusinessGroupUpdateResult({'appCode':_0x3b4c88[_0x40c6b5(0x1d3)],'input':readBusinessGroupUpdateInput(_0x3b4c88),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x2192cb){const _0x483433=a60_0x3fbcea,_0x96d289=_0x2192cb[_0x483433(0x1c7)](_0x483433(0x1e7));return{'code':trim(_0x2192cb['str'](_0x483433(0x1e8))),'businessGroup':_0x2192cb[_0x483433(0x1c7)](_0x483433(0x1bc)),'expectBusinessGroup':_0x96d289===undefined||_0x96d289===''?undefined:_0x96d289};}function validateInput(_0x2f96bf){const _0x5a3d4f=a60_0x3fbcea;if(!trim(_0x2f96bf[_0x5a3d4f(0x1e8)]))throw CliErrors[_0x5a3d4f(0x1e9)](_0x5a3d4f(0x1ba));if(_0x2f96bf[_0x5a3d4f(0x1dc)]===undefined)throw CliErrors[_0x5a3d4f(0x1e9)](_0x5a3d4f(0x1b6));}function resolveBusinessGroupDataset(_0x37a76f,_0x4dcfa3){const _0x3be503=a60_0x3fbcea,_0x59492d=asPlainObject(_0x37a76f[_0x3be503(0x1c1)]),_0xf82e4e=asPlainObject(_0x37a76f['dbtableConfig']),_0x478508=resolveSourceType(_0x37a76f,_0x59492d,_0xf82e4e),_0x3223a7=firstString(_0x37a76f[_0x3be503(0x1d8)],_0x37a76f[_0x3be503(0x1e8)],_0x59492d[_0x3be503(0x1ce)],_0x4dcfa3)||_0x4dcfa3;return{'id':firstNumber(_0x37a76f[_0x3be503(0x1e2)],_0x37a76f['id'],_0x59492d[_0x3be503(0x1dd)])??firstString(_0x37a76f[_0x3be503(0x1e2)],_0x37a76f['id'],_0x59492d[_0x3be503(0x1dd)])??null,'code':_0x3223a7,'name':firstString(_0x37a76f[_0x3be503(0x1bb)],_0x59492d[_0x3be503(0x1cf)],_0x59492d[_0x3be503(0x1bb)])||null,'sourceType':_0x478508};}function resolveSourceType(_0x2c9175,_0x2535fc,_0x3a1faa){const _0x3d5597=a60_0x3fbcea,_0x239246=firstString(_0x2c9175['source'],_0x2c9175[_0x3d5597(0x1c2)],_0x2535fc['source'],_0x2535fc['sourceType'])?.['trim']()['toUpperCase']();if(_0x239246===_0x3d5597(0x1ef)||_0x239246==='METADATA')return _0x239246;if(Object[_0x3d5597(0x1d0)](_0x3a1faa)['length']>0x0)return _0x3d5597(0x1ef);throw CliErrors[_0x3d5597(0x1e9)](_0x3d5597(0x1b7));}function loadCurrentBusinessGroup(_0x1279f8,_0x36753e){const _0x36b795=a60_0x3fbcea,_0x283bd5=readBusinessGroupFromDatasetDetail(_0x1279f8,_0x36753e[_0x36b795(0x1c2)]);if(_0x283bd5[_0x36b795(0x1eb)])return normalizeBusinessGroup(_0x283bd5[_0x36b795(0x1e4)]);if(_0x36753e['sourceType']==='METADATA')return'';throw CliErrors[_0x36b795(0x1e9)](_0x36b795(0x1de),_0x36b795(0x1cc));}function readBusinessGroupFromDatasetDetail(_0x4d19bc,_0x18ff74){const _0x366447=a60_0x3fbcea,_0x408793=asPlainObject(_0x4d19bc['dataset']),_0x4423f7=firstPresent(_0x4d19bc[_0x366447(0x1dc)]);if(_0x4423f7[_0x366447(0x1eb)])return _0x4423f7;const _0x189b54=firstPresent(_0x408793['businessGroup']);if(_0x189b54[_0x366447(0x1eb)])return _0x189b54;if(_0x18ff74===_0x366447(0x1ef))return{'found':![]};const _0x2f487f=readBusinessGroupFromExtend(_0x4d19bc[_0x366447(0x1cb)]);if(_0x2f487f[_0x366447(0x1eb)])return _0x2f487f;return readBusinessGroupFromExtend(_0x408793[_0x366447(0x1cb)]);}function a60_0x3bd2(){const _0x34962b=['value','stringify','4tEpKWh','expect-business-group','code','validation','20LTByou','found','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','POST','152oznLoD','DB_TABLE','call','data','--business-group\x20is\x20required','Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.','Expected\x20','parse','--code\x20is\x20required','name','business-group','9496080ygOKPv','business-group-update','Expected\x20current\x20business\x20scenario\x20group;\x20mismatch\x20aborts\x20without\x20writing','48874jGXiFA','dataset','sourceType','39255QuOQra','update','number','737001lrPHMx','str','1667619BngNpq','6FleDmK','448440gGzNKu','extend','Business\x20scenario\x20group\x20readback\x20must\x20be\x20available\x20by\x20datasetCode;\x20upgrade\x20the\x20backend\x20read\x20contract\x20instead\x20of\x20using\x20dblinkId/tableName.','string','datasetCode','datasetName','keys','write','Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.','appCode',',\x20actual\x20','6566SQdICU','matched','Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20','modelCode','unchanged','isFinite','trim','businessGroup','datasetId','Dataset\x20detail\x20does\x20not\x20expose\x20businessGroup.','backend','isArray','No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20','modelId','prototype'];a60_0x3bd2=function(){return _0x34962b;};return a60_0x3bd2();}function readBusinessGroupFromExtend(_0x2b2a33){const _0x5223b2=a60_0x3fbcea;if(_0x2b2a33===undefined||_0x2b2a33===null||_0x2b2a33==='')return{'found':![]};if(typeof _0x2b2a33===_0x5223b2(0x1cd))try{const _0x493147=JSON[_0x5223b2(0x1b9)](_0x2b2a33);return readBusinessGroupFromExtend(_0x493147);}catch{return{'found':![]};}const _0x2dd028=asPlainObject(_0x2b2a33);if(Object[_0x5223b2(0x1e3)]['hasOwnProperty'][_0x5223b2(0x1f0)](_0x2dd028,_0x5223b2(0x1dc)))return{'found':!![],'value':_0x2dd028[_0x5223b2(0x1dc)]};return{'found':![]};}function a60_0x7375(_0x15637e,_0x1ac465){_0x15637e=_0x15637e-0x1b6;const _0x3bd24b=a60_0x3bd2();let _0x7375a6=_0x3bd24b[_0x15637e];return _0x7375a6;}function firstPresent(..._0x1e3c4b){for(const _0x4e05af of _0x1e3c4b){if(_0x4e05af!==undefined&&_0x4e05af!==null)return{'found':!![],'value':_0x4e05af};}return{'found':![]};}function assertExpectedBusinessGroup(_0x2859f4,_0x24b5c8){const _0xef43fe=a60_0x3fbcea;if(_0x24b5c8===undefined)return;const _0x38c38c=normalizeBusinessGroup(_0x24b5c8);if(_0x2859f4!==_0x38c38c)throw CliErrors[_0xef43fe(0x1e9)]('Expectation\x20mismatch\x20at\x20businessGroup',_0xef43fe(0x1b8)+JSON['stringify'](_0x38c38c)+',\x20actual\x20'+JSON[_0xef43fe(0x1e5)](_0x2859f4));}function buildBackendPayload(_0x5402d9,_0x4991f0,_0x36f200){const _0x34d238=a60_0x3fbcea;return{'appCode':_0x5402d9,'datasetCode':_0x4991f0[_0x34d238(0x1e8)],'businessGroup':_0x36f200};}function normalizeBusinessGroup(_0x1f1260){if(_0x1f1260===undefined||_0x1f1260===null)return'';return String(_0x1f1260)['trim']();}function asPlainObject(_0x1cfad5){const _0x103fe8=a60_0x3fbcea;if(!_0x1cfad5||typeof _0x1cfad5!=='object'||Array[_0x103fe8(0x1e0)](_0x1cfad5))return{};return _0x1cfad5;}function firstString(..._0x79158b){const _0xc2652a=a60_0x3fbcea;for(const _0x54c40e of _0x79158b){if(typeof _0x54c40e==='string'&&_0x54c40e[_0xc2652a(0x1db)]())return _0x54c40e[_0xc2652a(0x1db)]();if(typeof _0x54c40e===_0xc2652a(0x1c5)&&Number[_0xc2652a(0x1da)](_0x54c40e))return String(_0x54c40e);}return undefined;}function firstNumber(..._0xf82cbc){const _0x47b01b=a60_0x3fbcea;for(const _0x5e199b of _0xf82cbc){if(typeof _0x5e199b===_0x47b01b(0x1c5)&&Number[_0x47b01b(0x1da)](_0x5e199b))return _0x5e199b;if(typeof _0x5e199b===_0x47b01b(0x1cd)&&_0x5e199b[_0x47b01b(0x1db)]()&&Number[_0x47b01b(0x1da)](Number(_0x5e199b)))return Number(_0x5e199b);}return null;}function trim(_0x2edb61){const _0x18523d=a60_0x3fbcea;return String(_0x2edb61||'')[_0x18523d(0x1db)]();}
1
+ function a60_0x414f(_0xf6550c,_0x401601){_0xf6550c=_0xf6550c-0xb8;const _0x185862=a60_0x1858();let _0x414fba=_0x185862[_0xf6550c];return _0x414fba;}const a60_0x4834ea=a60_0x414f;(function(_0x3498ca,_0x2fb158){const _0xf58325=a60_0x414f,_0x1b4d8a=_0x3498ca();while(!![]){try{const _0x39faf8=parseInt(_0xf58325(0xd0))/0x1+-parseInt(_0xf58325(0xbd))/0x2+parseInt(_0xf58325(0xcd))/0x3+-parseInt(_0xf58325(0xda))/0x4+-parseInt(_0xf58325(0xea))/0x5+-parseInt(_0xf58325(0xc7))/0x6*(parseInt(_0xf58325(0xe1))/0x7)+parseInt(_0xf58325(0xe0))/0x8;if(_0x39faf8===_0x2fb158)break;else _0x1b4d8a['push'](_0x1b4d8a['shift']());}catch(_0x1e7f45){_0x1b4d8a['push'](_0x1b4d8a['shift']());}}}(a60_0x1858,0xb3425));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_0x4834ea(0xc0);export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x33b75a,input:_0xef260f,dryRun:_0x19dfbe}){const _0x271ba1=a60_0x4834ea;validateInput(_0xef260f);const _0x31d225=normalizeBusinessGroup(_0xef260f[_0x271ba1(0xd6)]),_0x33d03d=await getDatasetDetail(_0xef260f['code']),_0x354d17=resolveBusinessGroupDataset(_0x33d03d,_0xef260f[_0x271ba1(0xe5)]),_0x573894=loadCurrentBusinessGroup(_0x33d03d,_0x354d17);assertExpectedBusinessGroup(_0x573894,_0xef260f['expectBusinessGroup']);const _0x3667d3=buildBackendPayload(_0x33b75a,_0x354d17,_0x31d225),_0x190a48=_0x573894!==_0x31d225;let _0x1bf71d;if(_0x190a48&&!_0x19dfbe){await updateErBusinessGroup(_0x3667d3);const _0x504d58=await getDatasetDetail(_0x354d17[_0x271ba1(0xe5)]),_0xaac352=resolveBusinessGroupDataset(_0x504d58,_0x354d17[_0x271ba1(0xe5)]),_0x523593=loadCurrentBusinessGroup(_0x504d58,_0xaac352);if(_0x523593!==_0x31d225)throw CliErrors['apiError'](_0x271ba1(0xf0),_0x271ba1(0xdb)+JSON[_0x271ba1(0xcb)](_0x31d225)+_0x271ba1(0xc6)+JSON['stringify'](_0x523593)+'.');_0x1bf71d={'verified':!![],'status':_0x271ba1(0xf1),'afterReadback':{'businessGroup':_0x523593}};}else!_0x190a48&&(_0x1bf71d={'verified':!![],'status':_0x271ba1(0xc9),'afterReadback':{'businessGroup':_0x573894}});const _0x18840d={'operation':'update','appCode':_0x33b75a,'selector':{'code':_0x354d17['code']},'dataset':_0x354d17,'before':{'businessGroup':_0x573894},'after':{'businessGroup':_0x31d225},'changed':_0x190a48,'dryRun':_0x19dfbe,'submitted':_0x190a48&&!_0x19dfbe,'backend':{'method':_0x271ba1(0xd9),'path':BACKEND_PATH,'payload':_0x3667d3},..._0x1bf71d?{'verification':_0x1bf71d}:{},'warnings':[]};return{'ok':!![],'data':_0x18840d,'message':_0x190a48?_0x19dfbe?_0x271ba1(0xde)+_0x354d17['code']:_0x271ba1(0xc5)+_0x354d17['code']:'No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20'+_0x354d17[_0x271ba1(0xe5)]};}export const datasetBusinessGroupUpdate={'service':a60_0x4834ea(0xed),'command':a60_0x4834ea(0xd2),'description':a60_0x4834ea(0xbe),'risk':a60_0x4834ea(0xe7),'flags':[CODE_FLAG,{'name':a60_0x4834ea(0xe4),'type':a60_0x4834ea(0xdc),'required':!![],'description':a60_0x4834ea(0xe6)},{'name':'expect-business-group','type':'string','required':![],'description':a60_0x4834ea(0xc3)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3ba608){validateInput(readBusinessGroupUpdateInput(_0x3ba608));},async 'dryRun'(_0x9a1bd6){const _0x332559=a60_0x4834ea,_0xce4f88=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x9a1bd6[_0x332559(0xdd)],'input':readBusinessGroupUpdateInput(_0x9a1bd6),'dryRun':!![]});return{'method':_0x332559(0xd9),'url':BACKEND_PATH,'body':_0xce4f88[_0x332559(0xf3)][_0x332559(0xef)][_0x332559(0xc2)],'description':_0xce4f88['message'],..._0xce4f88[_0x332559(0xf3)]};},async 'execute'(_0x58f318){const _0x1ed4f7=a60_0x4834ea;return buildDatasetBusinessGroupUpdateResult({'appCode':_0x58f318[_0x1ed4f7(0xdd)],'input':readBusinessGroupUpdateInput(_0x58f318),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x11e133){const _0x2182dc=a60_0x4834ea,_0x2fb06d=_0x11e133['str'](_0x2182dc(0xc8));return{'code':trim(_0x11e133['str'](_0x2182dc(0xe5))),'businessGroup':_0x11e133[_0x2182dc(0xeb)](_0x2182dc(0xe4)),'expectBusinessGroup':_0x2fb06d===undefined||_0x2fb06d===''?undefined:_0x2fb06d};}function validateInput(_0x14a1d4){const _0x15003c=a60_0x4834ea;if(!trim(_0x14a1d4[_0x15003c(0xe5)]))throw CliErrors[_0x15003c(0xd5)](_0x15003c(0xc1));if(_0x14a1d4[_0x15003c(0xd6)]===undefined)throw CliErrors[_0x15003c(0xd5)]('--business-group\x20is\x20required');}function resolveBusinessGroupDataset(_0x182e3d,_0x4532c0){const _0x5df4cc=a60_0x4834ea,_0x556ec4=asPlainObject(_0x182e3d[_0x5df4cc(0xed)]),_0x49d79a=asPlainObject(_0x182e3d[_0x5df4cc(0xd1)]),_0x3e1abc=resolveSourceType(_0x182e3d,_0x556ec4,_0x49d79a),_0x3c8fc2=firstString(_0x182e3d['modelCode'],_0x182e3d['code'],_0x556ec4['datasetCode'],_0x4532c0)||_0x4532c0;return{'id':firstNumber(_0x182e3d[_0x5df4cc(0xe2)],_0x182e3d['id'],_0x556ec4[_0x5df4cc(0xb9)])??firstString(_0x182e3d[_0x5df4cc(0xe2)],_0x182e3d['id'],_0x556ec4['datasetId'])??null,'code':_0x3c8fc2,'name':firstString(_0x182e3d['name'],_0x556ec4[_0x5df4cc(0xba)],_0x556ec4[_0x5df4cc(0xec)])||null,'sourceType':_0x3e1abc};}function resolveSourceType(_0x21dd06,_0x4b3cbf,_0x55deca){const _0x20f7cf=a60_0x4834ea,_0x5e5d49=firstString(_0x21dd06[_0x20f7cf(0xe9)],_0x21dd06['sourceType'],_0x4b3cbf['source'],_0x4b3cbf['sourceType'])?.[_0x20f7cf(0xcc)]()[_0x20f7cf(0xbc)]();if(_0x5e5d49==='DB_TABLE'||_0x5e5d49===_0x20f7cf(0xf4))return _0x5e5d49;if(Object[_0x20f7cf(0xd8)](_0x55deca)[_0x20f7cf(0xdf)]>0x0)return _0x20f7cf(0xd7);throw CliErrors['validation'](_0x20f7cf(0xc4));}function loadCurrentBusinessGroup(_0x4c2d90,_0x4f16fc){const _0x2dcde4=a60_0x4834ea,_0x3221b5=readBusinessGroupFromDatasetDetail(_0x4c2d90,_0x4f16fc[_0x2dcde4(0xe3)]);if(_0x3221b5[_0x2dcde4(0xcf)])return normalizeBusinessGroup(_0x3221b5['value']);if(_0x4f16fc[_0x2dcde4(0xe3)]===_0x2dcde4(0xf4))return'';throw CliErrors[_0x2dcde4(0xd5)](_0x2dcde4(0xca),_0x2dcde4(0xce));}function readBusinessGroupFromDatasetDetail(_0x1985ad,_0x5459e1){const _0x486497=a60_0x4834ea,_0xf188c5=asPlainObject(_0x1985ad['dataset']),_0x444bc3=firstPresent(_0x1985ad[_0x486497(0xd6)]);if(_0x444bc3['found'])return _0x444bc3;const _0x399695=firstPresent(_0xf188c5[_0x486497(0xd6)]);if(_0x399695['found'])return _0x399695;if(_0x5459e1===_0x486497(0xd7))return{'found':![]};const _0x177728=readBusinessGroupFromExtend(_0x1985ad[_0x486497(0xee)]);if(_0x177728[_0x486497(0xcf)])return _0x177728;return readBusinessGroupFromExtend(_0xf188c5[_0x486497(0xee)]);}function readBusinessGroupFromExtend(_0x4202f1){const _0x5badd0=a60_0x4834ea;if(_0x4202f1===undefined||_0x4202f1===null||_0x4202f1==='')return{'found':![]};if(typeof _0x4202f1==='string')try{const _0x313d3d=JSON[_0x5badd0(0xd4)](_0x4202f1);return readBusinessGroupFromExtend(_0x313d3d);}catch{return{'found':![]};}const _0x5bd0cb=asPlainObject(_0x4202f1);if(Object['prototype'][_0x5badd0(0xd3)][_0x5badd0(0xf2)](_0x5bd0cb,_0x5badd0(0xd6)))return{'found':!![],'value':_0x5bd0cb['businessGroup']};return{'found':![]};}function a60_0x1858(){const _0x2721d1=['sourceType','business-group','code','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','write','isFinite','source','2119635mFoJet','str','name','dataset','extend','backend','Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.','matched','call','data','METADATA','isArray','datasetId','datasetName','Expectation\x20mismatch\x20at\x20businessGroup','toUpperCase','1498290iaOhQp','Update\x20business\x20scenario\x20group','number','/smartapi/question/er-config/business-group/edit','--code\x20is\x20required','payload','Expected\x20current\x20business\x20scenario\x20group;\x20mismatch\x20aborts\x20without\x20writing','Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.','Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20',',\x20actual\x20','4569012WTEoyJ','expect-business-group','unchanged','Dataset\x20detail\x20does\x20not\x20expose\x20businessGroup.','stringify','trim','1102941TeEdak','Business\x20scenario\x20group\x20readback\x20must\x20be\x20available\x20by\x20datasetCode;\x20upgrade\x20the\x20backend\x20read\x20contract\x20instead\x20of\x20using\x20dblinkId/tableName.','found','580812hOmsPv','dbtableConfig','business-group-update','hasOwnProperty','parse','validation','businessGroup','DB_TABLE','keys','POST','3833204SnVNJS','Expected\x20','string','appCode','Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20','length','21429288ggfitT','7ygqvmL','modelId'];a60_0x1858=function(){return _0x2721d1;};return a60_0x1858();}function firstPresent(..._0x9a53ed){for(const _0x2b80e6 of _0x9a53ed){if(_0x2b80e6!==undefined&&_0x2b80e6!==null)return{'found':!![],'value':_0x2b80e6};}return{'found':![]};}function assertExpectedBusinessGroup(_0x169fcc,_0x12c40d){const _0x599ad2=a60_0x4834ea;if(_0x12c40d===undefined)return;const _0x58a5aa=normalizeBusinessGroup(_0x12c40d);if(_0x169fcc!==_0x58a5aa)throw CliErrors[_0x599ad2(0xd5)](_0x599ad2(0xbb),_0x599ad2(0xdb)+JSON[_0x599ad2(0xcb)](_0x58a5aa)+_0x599ad2(0xc6)+JSON[_0x599ad2(0xcb)](_0x169fcc));}function buildBackendPayload(_0x3c4fc5,_0x13c27d,_0x3125e0){const _0x4931ad=a60_0x4834ea;return{'appCode':_0x3c4fc5,'datasetCode':_0x13c27d[_0x4931ad(0xe5)],'businessGroup':_0x3125e0};}function normalizeBusinessGroup(_0x48806a){const _0x4055c8=a60_0x4834ea;if(_0x48806a===undefined||_0x48806a===null)return'';return String(_0x48806a)[_0x4055c8(0xcc)]();}function asPlainObject(_0x30ab4d){const _0x1c0ee2=a60_0x4834ea;if(!_0x30ab4d||typeof _0x30ab4d!=='object'||Array[_0x1c0ee2(0xb8)](_0x30ab4d))return{};return _0x30ab4d;}function firstString(..._0x23fcb5){const _0x4a06f4=a60_0x4834ea;for(const _0x3e9041 of _0x23fcb5){if(typeof _0x3e9041==='string'&&_0x3e9041[_0x4a06f4(0xcc)]())return _0x3e9041['trim']();if(typeof _0x3e9041===_0x4a06f4(0xbf)&&Number[_0x4a06f4(0xe8)](_0x3e9041))return String(_0x3e9041);}return undefined;}function firstNumber(..._0x4ba9c5){const _0x202153=a60_0x4834ea;for(const _0x55eb26 of _0x4ba9c5){if(typeof _0x55eb26==='number'&&Number[_0x202153(0xe8)](_0x55eb26))return _0x55eb26;if(typeof _0x55eb26===_0x202153(0xdc)&&_0x55eb26[_0x202153(0xcc)]()&&Number[_0x202153(0xe8)](Number(_0x55eb26)))return Number(_0x55eb26);}return null;}function trim(_0x1819fe){const _0x3a8996=a60_0x4834ea;return String(_0x1819fe||'')[_0x3a8996(0xcc)]();}
@@ -1 +1 @@
1
- const a61_0x4b141a=a61_0x1896;(function(_0x305ffb,_0x367301){const _0x3e4339=a61_0x1896,_0x18fb9b=_0x305ffb();while(!![]){try{const _0x451f5f=-parseInt(_0x3e4339(0xad))/0x1+-parseInt(_0x3e4339(0x95))/0x2+-parseInt(_0x3e4339(0xa8))/0x3+-parseInt(_0x3e4339(0x98))/0x4+-parseInt(_0x3e4339(0x9a))/0x5*(parseInt(_0x3e4339(0xa3))/0x6)+-parseInt(_0x3e4339(0x99))/0x7*(-parseInt(_0x3e4339(0xae))/0x8)+parseInt(_0x3e4339(0xa9))/0x9;if(_0x451f5f===_0x367301)break;else _0x18fb9b['push'](_0x18fb9b['shift']());}catch(_0x17e2e3){_0x18fb9b['push'](_0x18fb9b['shift']());}}}(a61_0x1e24,0x36d36));import{CliErrors}from'../../errors.js';export const RUNTIME_DATA_ACCESS_COMMANDS={'cli':a61_0x4b141a(0xa7),'filter':a61_0x4b141a(0xb1),'getOne':a61_0x4b141a(0xb3)};export const RUNTIME_DATA_ACCESS_SUMMARY='Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.';function valueToString(_0x50f65e){return _0x50f65e==null?'':String(_0x50f65e)['trim']();}function getDatasetCode(_0x5c7bd7){const _0x47d519=a61_0x4b141a;return valueToString(_0x5c7bd7[_0x47d519(0xa0)]??_0x5c7bd7[_0x47d519(0xa4)]??_0x5c7bd7[_0x47d519(0xa2)]?.['datasetCode']);}function getDatasetName(_0x24c617){const _0x5ca3c6=a61_0x4b141a;return valueToString(_0x24c617[_0x5ca3c6(0xb0)]??_0x24c617['dataset']?.[_0x5ca3c6(0xaa)])||_0x5ca3c6(0x96);}function getDatasetSource(_0x367afe){const _0x523d1d=a61_0x4b141a;return valueToString(_0x367afe[_0x523d1d(0x94)]??_0x367afe['dataset']?.[_0x523d1d(0xb2)])[_0x523d1d(0xa1)]();}function a61_0x1896(_0xfdd7f3,_0x26c093){_0xfdd7f3=_0xfdd7f3-0x91;const _0x1e241f=a61_0x1e24();let _0x189660=_0x1e241f[_0xfdd7f3];return _0x189660;}function getDbtableConfig(_0x45fde8){const _0xff284=a61_0x4b141a,_0xf4d1ef=_0x45fde8[_0xff284(0x9e)]??_0x45fde8[_0xff284(0x97)];return _0xf4d1ef&&typeof _0xf4d1ef===_0xff284(0xa5)?_0xf4d1ef:{};}function a61_0x1e24(){const _0x5563d2=['dataset','530796krEsDs','modelCode','object','join','lovrabet','965562osljnS','15341868YfgDsk','datasetName','SQL\x20schema\x20validation','\x20的\x20DB_TABLE\x20数据源上下文。','435220mNubfg','421984hMYhFY','METADATA','name','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27<json>\x27\x20--format\x20compress','sourceType','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27\x20--format\x20compress','如果只是查看运行态真实行数据,请切换到\x20lovrabet\x20CLI:','原因:schema\x20introspection\x20与\x20custom\x20SQL\x20需要\x20source=DB_TABLE、dbtableConfig.dbId、dbtableConfig.tableName\x20与数据库连接上下文。','getOne','UNKNOWN','tableName','source','515170nHsNMP','unknown','dbtable','1644084tnZKZH','28xUvoPy','15mSaJdW','filter','length','请先将该数据集升级/迁移为\x20DB_TABLE\x20数据集,再基于新的\x20dataset\x20code\x20继续开发。','dbtableConfig','当前数据集\x20\x22','code','toUpperCase'];a61_0x1e24=function(){return _0x5563d2;};return a61_0x1e24();}export function isDbTableBackedDataset(_0x587e25){const _0x153a66=a61_0x4b141a,_0x47ec37=getDatasetSource(_0x587e25);if(_0x47ec37===_0x153a66(0xaf))return![];const _0xabf7f6=getDbtableConfig(_0x587e25),_0x3c1df4=_0xabf7f6['dbId']??_0xabf7f6['id'],_0x32a62f=valueToString(_0xabf7f6[_0x153a66(0x93)]??_0x587e25['tableName']??_0x587e25['dataset']?.[_0x153a66(0x93)]);return _0x3c1df4!==undefined&&_0x3c1df4!==null&&_0x32a62f[_0x153a66(0x9c)]>0x0;}export function filterDbTableBackedDatasets(_0x33e565){const _0x7b866b=a61_0x4b141a;return _0x33e565[_0x7b866b(0x9b)](_0x12b524=>isDbTableBackedDataset(_0x12b524));}export function buildDbTableBackedRequirementMessage(_0x50c982,_0x2b821d=a61_0x4b141a(0xab)){const _0x117ae4=a61_0x4b141a,_0x3fba4f=getDatasetSource(_0x50c982)||_0x117ae4(0x92),_0x216501=getDatasetName(_0x50c982),_0x2cd343=getDatasetCode(_0x50c982),_0x5f5d3c=_0x2cd343?'\x20('+_0x2cd343+')':'';return[_0x117ae4(0x9f)+_0x216501+'\x22'+_0x5f5d3c+'\x20是\x20'+_0x3fba4f+'\x20类型,没有可用于\x20'+_0x2b821d+_0x117ae4(0xac),_0x117ae4(0xb5),_0x117ae4(0x9d),_0x117ae4(0xb4)+RUNTIME_DATA_ACCESS_COMMANDS[_0x117ae4(0x9b)]+';'+RUNTIME_DATA_ACCESS_COMMANDS[_0x117ae4(0x91)]+'。'][_0x117ae4(0xa6)]('\x20');}export function assertDatasetIsDbTableBacked(_0x12697a,_0xe2510a){if(!isDbTableBackedDataset(_0x12697a))throw CliErrors['validation'](buildDbTableBackedRequirementMessage(_0x12697a,_0xe2510a));}
1
+ const a61_0x3587cb=a61_0x231c;(function(_0x3dcb06,_0x328015){const _0x5b6423=a61_0x231c,_0x1b942b=_0x3dcb06();while(!![]){try{const _0x450230=-parseInt(_0x5b6423(0x197))/0x1*(-parseInt(_0x5b6423(0x1a7))/0x2)+parseInt(_0x5b6423(0x1b4))/0x3*(-parseInt(_0x5b6423(0x1b0))/0x4)+parseInt(_0x5b6423(0x19c))/0x5*(parseInt(_0x5b6423(0x1a2))/0x6)+-parseInt(_0x5b6423(0x1a6))/0x7+parseInt(_0x5b6423(0x1ae))/0x8+parseInt(_0x5b6423(0x1ac))/0x9*(-parseInt(_0x5b6423(0x195))/0xa)+-parseInt(_0x5b6423(0x1a1))/0xb;if(_0x450230===_0x328015)break;else _0x1b942b['push'](_0x1b942b['shift']());}catch(_0x3920c7){_0x1b942b['push'](_0x1b942b['shift']());}}}(a61_0x43b8,0x64a2c));import{CliErrors}from'../../errors.js';export const RUNTIME_DATA_ACCESS_COMMANDS={'cli':a61_0x3587cb(0x1b3),'filter':a61_0x3587cb(0x194),'getOne':a61_0x3587cb(0x1b8)};export const RUNTIME_DATA_ACCESS_SUMMARY='Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.';function valueToString(_0x4fc3eb){const _0x5e1e42=a61_0x3587cb;return _0x4fc3eb==null?'':String(_0x4fc3eb)[_0x5e1e42(0x1b7)]();}function getDatasetCode(_0x5d2b3e){const _0x16f72b=a61_0x3587cb;return valueToString(_0x5d2b3e[_0x16f72b(0x1aa)]??_0x5d2b3e[_0x16f72b(0x1a5)]??_0x5d2b3e['dataset']?.[_0x16f72b(0x198)]);}function getDatasetName(_0x3538ee){const _0x39af4a=a61_0x3587cb;return valueToString(_0x3538ee[_0x39af4a(0x1af)]??_0x3538ee[_0x39af4a(0x1b1)]?.[_0x39af4a(0x1a0)])||_0x39af4a(0x1ba);}function getDatasetSource(_0x460faa){const _0x1d8d42=a61_0x3587cb;return valueToString(_0x460faa['source']??_0x460faa[_0x1d8d42(0x1b1)]?.[_0x1d8d42(0x19d)])[_0x1d8d42(0x1a4)]();}function getDbtableConfig(_0x35bea0){const _0x1c8c55=a61_0x3587cb,_0xb5c27c=_0x35bea0[_0x1c8c55(0x1a8)]??_0x35bea0['dbtable'];return _0xb5c27c&&typeof _0xb5c27c===_0x1c8c55(0x1b9)?_0xb5c27c:{};}function a61_0x231c(_0x45e2fe,_0x5b4b10){_0x45e2fe=_0x45e2fe-0x194;const _0x43b8c1=a61_0x43b8();let _0x231c58=_0x43b8c1[_0x45e2fe];return _0x231c58;}export function isDbTableBackedDataset(_0x2c730f){const _0x56bd17=a61_0x3587cb,_0x1689e5=getDatasetSource(_0x2c730f);if(_0x1689e5===_0x56bd17(0x19b))return![];const _0x5ed6b2=getDbtableConfig(_0x2c730f),_0x4aebb9=_0x5ed6b2[_0x56bd17(0x199)]??_0x5ed6b2['id'],_0x2110d0=valueToString(_0x5ed6b2['tableName']??_0x2c730f[_0x56bd17(0x1b2)]??_0x2c730f[_0x56bd17(0x1b1)]?.[_0x56bd17(0x1b2)]);return _0x4aebb9!==undefined&&_0x4aebb9!==null&&_0x2110d0['length']>0x0;}function a61_0x43b8(){const _0x3cfe35=['\x20类型,没有可用于\x20','datasetName','7514892KIrxRe','587094sGAuNx','filter','toUpperCase','modelCode','1413307CVMRqn','4vLHyFg','dbtableConfig','\x20是\x20','code','join','9KQzEje','\x20的\x20DB_TABLE\x20数据源上下文。','3366040WXLRLr','name','219016DpcxWk','dataset','tableName','lovrabet','21xTDTbO','validation','UNKNOWN','trim','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27\x20--format\x20compress','object','unknown','如果只是查看运行态真实行数据,请切换到\x20lovrabet\x20CLI:','SQL\x20schema\x20validation','请先将该数据集升级/迁移为\x20DB_TABLE\x20数据集,再基于新的\x20dataset\x20code\x20继续开发。','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27<json>\x27\x20--format\x20compress','395170wWDDfE','原因:schema\x20introspection\x20与\x20custom\x20SQL\x20需要\x20source=DB_TABLE、dbtableConfig.dbId、dbtableConfig.tableName\x20与数据库连接上下文。','405036EEOiqJ','datasetCode','dbId','当前数据集\x20\x22','METADATA','25GJoFjK','sourceType','getOne'];a61_0x43b8=function(){return _0x3cfe35;};return a61_0x43b8();}export function filterDbTableBackedDatasets(_0x1f4069){return _0x1f4069['filter'](_0x501211=>isDbTableBackedDataset(_0x501211));}export function buildDbTableBackedRequirementMessage(_0xc31bdd,_0x30a9e5=a61_0x3587cb(0x1bc)){const _0xb5b40f=a61_0x3587cb,_0x26594f=getDatasetSource(_0xc31bdd)||_0xb5b40f(0x1b6),_0x56ee7d=getDatasetName(_0xc31bdd),_0x203f7c=getDatasetCode(_0xc31bdd),_0x9a64dc=_0x203f7c?'\x20('+_0x203f7c+')':'';return[_0xb5b40f(0x19a)+_0x56ee7d+'\x22'+_0x9a64dc+_0xb5b40f(0x1a9)+_0x26594f+_0xb5b40f(0x19f)+_0x30a9e5+_0xb5b40f(0x1ad),_0xb5b40f(0x196),_0xb5b40f(0x1bd),_0xb5b40f(0x1bb)+RUNTIME_DATA_ACCESS_COMMANDS[_0xb5b40f(0x1a3)]+';'+RUNTIME_DATA_ACCESS_COMMANDS[_0xb5b40f(0x19e)]+'。'][_0xb5b40f(0x1ab)]('\x20');}export function assertDatasetIsDbTableBacked(_0x1877e1,_0x5cbaf6){const _0x5b8c57=a61_0x3587cb;if(!isDbTableBackedDataset(_0x1877e1))throw CliErrors[_0x5b8c57(0x1b5)](buildDbTableBackedRequirementMessage(_0x1877e1,_0x5cbaf6));}
@@ -1 +1 @@
1
- const a62_0x1b20e7=a62_0x491c;(function(_0x4c2df2,_0xb121bb){const _0x1a940d=a62_0x491c,_0x367ac1=_0x4c2df2();while(!![]){try{const _0xb77a61=-parseInt(_0x1a940d(0x200))/0x1*(parseInt(_0x1a940d(0x20c))/0x2)+-parseInt(_0x1a940d(0x20f))/0x3*(-parseInt(_0x1a940d(0x1e4))/0x4)+parseInt(_0x1a940d(0x1fc))/0x5+parseInt(_0x1a940d(0x1e6))/0x6+parseInt(_0x1a940d(0x211))/0x7*(-parseInt(_0x1a940d(0x20e))/0x8)+-parseInt(_0x1a940d(0x201))/0x9*(parseInt(_0x1a940d(0x1e3))/0xa)+parseInt(_0x1a940d(0x20a))/0xb;if(_0xb77a61===_0xb121bb)break;else _0x367ac1['push'](_0x367ac1['shift']());}catch(_0x29dfb8){_0x367ac1['push'](_0x367ac1['shift']());}}}(a62_0x3631,0x906e5));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_0x1b20e7(0x213),'description':a62_0x1b20e7(0x1fb)},DBID_FLAG={'name':a62_0x1b20e7(0x20d),'type':a62_0x1b20e7(0x213),'description':a62_0x1b20e7(0x1e9)},CONFIRM_FLAG={'name':'confirm','type':'boolean','description':a62_0x1b20e7(0x1f7)},EXPECTED_COUNT_FLAG={'name':a62_0x1b20e7(0x1f0),'type':'number','description':'Abort\x20unless\x20the\x20matched\x20dataset\x20count\x20equals\x20this\x20value'};export const datasetDelete={'service':a62_0x1b20e7(0x1f5),'command':a62_0x1b20e7(0x1f1),'description':a62_0x1b20e7(0x203),'risk':'high-risk-write','flags':[DATASET_ID_FLAG,CODE_FLAG_OPTIONAL,DBID_FLAG,CONFIRM_FLAG,EXPECTED_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x15f526){const _0x5cefc2=a62_0x1b20e7,_0x4e69a6=_0x15f526[_0x5cefc2(0x20b)]('id'),_0x1d1466=_0x15f526[_0x5cefc2(0x1fa)](_0x5cefc2(0x209)),_0xff7715=_0x15f526[_0x5cefc2(0x20b)]('dbid'),_0x351c99=[_0x4e69a6>0x0,Boolean(_0x1d1466),_0xff7715>0x0][_0x5cefc2(0x207)](Boolean);if(_0x351c99[_0x5cefc2(0x210)]===0x0)throw CliErrors['validation'](_0x5cefc2(0x1eb));if(_0x351c99['length']>0x1)throw CliErrors['validation']('Use\x20only\x20one\x20of\x20--id,\x20--code,\x20or\x20--dbid.');},async 'dryRun'(_0x4fff0f){const _0x2e6e8a=a62_0x1b20e7,_0x128653=await resolveTargets(_0x4fff0f);return{'method':_0x2e6e8a(0x1f4),'url':_0x2e6e8a(0x1f2),'body':{'appCode':_0x4fff0f[_0x2e6e8a(0x1e2)],'count':_0x128653[_0x2e6e8a(0x210)],'datasets':_0x128653},'description':_0x2e6e8a(0x1e5)+_0x128653['length']+'\x20dataset(s).\x20This\x20only\x20deletes\x20platform\x20dataset\x20metadata\x20and\x20related\x20page/menu\x20records,\x20not\x20physical\x20databases\x20or\x20tables.'};},async 'execute'(_0x51c407){const _0x314df8=a62_0x1b20e7;if(!_0x51c407[_0x314df8(0x212)](_0x314df8(0x204)))throw CliErrors[_0x314df8(0x1ea)]('--confirm\x20is\x20required\x20to\x20delete\x20datasets.',_0x314df8(0x206));const _0x359e0d=await resolveTargets(_0x51c407),_0x4f2dc5=[],_0xa955b=[];for(const _0x22c285 of _0x359e0d){try{await deleteDataset(_0x51c407[_0x314df8(0x1e2)],_0x22c285['id']),_0x4f2dc5['push'](_0x22c285);}catch(_0x3103c4){_0xa955b['push']({..._0x22c285,'error':_0x3103c4 instanceof Error?_0x3103c4['message']:String(_0x3103c4)});}}if(_0xa955b['length']>0x0)return{'ok':![],'data':{'requested':_0x359e0d[_0x314df8(0x210)],'deletedCount':_0x4f2dc5[_0x314df8(0x210)],'failedCount':_0xa955b[_0x314df8(0x210)],'deleted':_0x4f2dc5,'failed':_0xa955b},'message':_0x314df8(0x1fe)+_0x4f2dc5['length']+'/'+_0x359e0d[_0x314df8(0x210)]+_0x314df8(0x1f6)+_0xa955b['length']+_0x314df8(0x1ee)};return{'ok':!![],'data':{'requested':_0x359e0d[_0x314df8(0x210)],'deletedCount':_0x4f2dc5[_0x314df8(0x210)],'deleted':_0x4f2dc5},'message':_0x314df8(0x1fe)+_0x4f2dc5[_0x314df8(0x210)]+'\x20dataset(s)'};}};async function resolveTargets(_0x23bf09){const _0x2524b8=a62_0x1b20e7,_0x22f989=_0x23bf09[_0x2524b8(0x20b)]('id'),_0x40aff7=_0x23bf09[_0x2524b8(0x1fa)](_0x2524b8(0x209)),_0x32ea11=_0x23bf09[_0x2524b8(0x20b)](_0x2524b8(0x20d));let _0x2ba175;_0x40aff7?(_0x2ba175=await listDatasets(_0x23bf09['appCode'],{'code':_0x40aff7}),_0x2ba175=_0x2ba175[_0x2524b8(0x207)](_0x33f14e=>_0x33f14e[_0x2524b8(0x209)]===_0x40aff7)):(_0x2ba175=await listDatasets(_0x23bf09['appCode']),_0x22f989>0x0&&(_0x2ba175=_0x2ba175[_0x2524b8(0x207)](_0xd90696=>_0xd90696['id']===_0x22f989)),_0x32ea11>0x0&&(_0x2ba175=_0x2ba175[_0x2524b8(0x207)](_0x5dfcf3=>_0x5dfcf3['dbtableConfig']?.[_0x2524b8(0x202)]===_0x32ea11)));const _0x166017=_0x2ba175[_0x2524b8(0x1f8)](normalizeTarget);if(_0x166017[_0x2524b8(0x210)]===0x0){const _0x2104fe=_0x40aff7||(_0x22f989>0x0?_0x2524b8(0x1ec)+_0x22f989:_0x2524b8(0x1f3)+_0x32ea11);throw CliErrors[_0x2524b8(0x1ea)](_0x2524b8(0x1fd)+_0x2104fe+'.');}const _0x3d28ba=_0x23bf09[_0x2524b8(0x20b)](_0x2524b8(0x1f0));if(_0x3d28ba>0x0&&_0x166017[_0x2524b8(0x210)]!==_0x3d28ba)throw CliErrors[_0x2524b8(0x1ea)](_0x2524b8(0x1ef)+_0x166017[_0x2524b8(0x210)]+_0x2524b8(0x205)+_0x3d28ba+'.');return _0x166017;}function a62_0x491c(_0x34cd02,_0x1ccd6f){_0x34cd02=_0x34cd02-0x1e1;const _0x363149=a62_0x3631();let _0x491ce8=_0x363149[_0x34cd02];return _0x491ce8;}function a62_0x3631(){const _0x121d88=['str','Dataset\x20id','3388640KmPLGR','No\x20undeleted\x20dataset\x20found\x20for\x20','Deleted\x20','dbName','71PJqNyi','108EyLgMC','dbId','Delete\x20dataset\x20metadata\x20by\x20id/code\x20or\x20all\x20datasets\x20under\x20a\x20db\x20id','confirm','\x20dataset(s),\x20but\x20--expected-count\x20is\x20','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm\x20when\x20the\x20target\x20list\x20is\x20correct.','filter','name','code','13288286fyLSCU','num','5062SUEloR','dbid','16PNJISj','3414wUmQgf','length','2974118qrfxvB','bool','number','dbtableConfig','appCode','809730rDuyua','880CLYwcJ','Would\x20delete\x20','2739600QufdAE','source','relationPages','Delete\x20all\x20datasets\x20under\x20this\x20database\x20connection\x20id','validation','One\x20of\x20--id,\x20--code,\x20or\x20--dbid\x20is\x20required.','id=','isArray','\x20failed','Matched\x20','expected-count','delete','/smartapi/dataset/delete-dataset','dbid=','POST','dataset','\x20dataset(s);\x20','Required\x20to\x20execute\x20dataset\x20deletion','map','tableName'];a62_0x3631=function(){return _0x121d88;};return a62_0x3631();}function normalizeTarget(_0x32ad77){const _0x5518dc=a62_0x1b20e7,_0x5ad55f=_0x32ad77[_0x5518dc(0x1e1)]??{};return{'id':_0x32ad77['id'],'code':_0x32ad77[_0x5518dc(0x209)],'name':_0x32ad77[_0x5518dc(0x208)],'description':_0x32ad77['description'],'source':_0x32ad77[_0x5518dc(0x1e7)],'dbId':_0x5ad55f[_0x5518dc(0x202)],'dbName':_0x5ad55f[_0x5518dc(0x1ff)],'tableName':_0x5ad55f[_0x5518dc(0x1f9)],'relatedPageCount':Array[_0x5518dc(0x1ed)](_0x32ad77[_0x5518dc(0x1e8)])?_0x32ad77['relationPages'][_0x5518dc(0x210)]:undefined};}
1
+ const a62_0x402f96=a62_0xc902;(function(_0x7c4f0c,_0x4bdf40){const _0x53b9ef=a62_0xc902,_0x488f06=_0x7c4f0c();while(!![]){try{const _0x143b11=-parseInt(_0x53b9ef(0x20f))/0x1*(-parseInt(_0x53b9ef(0x215))/0x2)+parseInt(_0x53b9ef(0x210))/0x3*(-parseInt(_0x53b9ef(0x218))/0x4)+parseInt(_0x53b9ef(0x220))/0x5+-parseInt(_0x53b9ef(0x1f1))/0x6*(parseInt(_0x53b9ef(0x221))/0x7)+parseInt(_0x53b9ef(0x213))/0x8*(parseInt(_0x53b9ef(0x21e))/0x9)+-parseInt(_0x53b9ef(0x214))/0xa*(parseInt(_0x53b9ef(0x21f))/0xb)+-parseInt(_0x53b9ef(0x201))/0xc*(-parseInt(_0x53b9ef(0x1ff))/0xd);if(_0x143b11===_0x4bdf40)break;else _0x488f06['push'](_0x488f06['shift']());}catch(_0x4293d3){_0x488f06['push'](_0x488f06['shift']());}}}(a62_0x384c,0x8f5a7));function a62_0xc902(_0x2ff215,_0x20c09f){_0x2ff215=_0x2ff215-0x1f0;const _0x384c73=a62_0x384c();let _0xc9022f=_0x384c73[_0x2ff215];return _0xc9022f;}import{deleteDataset,listDatasets}from'../../core/api-client.js';function a62_0x384c(){const _0x1b5cff=['Delete\x20dataset\x20metadata\x20by\x20id/code\x20or\x20all\x20datasets\x20under\x20a\x20db\x20id','5268wcaeMB','source','name','Would\x20delete\x20','filter','Dataset\x20id','relationPages','expected-count','\x20dataset(s).\x20This\x20only\x20deletes\x20platform\x20dataset\x20metadata\x20and\x20related\x20page/menu\x20records,\x20not\x20physical\x20databases\x20or\x20tables.','Deleted\x20','\x20failed','id=','dbId','push','1Dsjplf','3uyqnhO','\x20dataset(s)','dbid','16snAfUF','20TIyZbY','943348OCHncy','confirm','/smartapi/dataset/delete-dataset','4443320YBanXU','high-risk-write','tableName','message','\x20dataset(s),\x20but\x20--expected-count\x20is\x20','map','3703977WGVBVN','4710882fBCgLE','182260htAZEU','14bTIBsg','delete','\x20dataset(s);\x20','num','number','length','2305338QyzdNr','code','dbid=','bool','Delete\x20all\x20datasets\x20under\x20this\x20database\x20connection\x20id','dataset','dbtableConfig','str','validation','description','Matched\x20','One\x20of\x20--id,\x20--code,\x20or\x20--dbid\x20is\x20required.','isArray','appCode','58981lpucXF'];a62_0x384c=function(){return _0x1b5cff;};return a62_0x384c();}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_0x402f96(0x225),'description':a62_0x402f96(0x206)},DBID_FLAG={'name':'dbid','type':a62_0x402f96(0x225),'description':a62_0x402f96(0x1f5)},CONFIRM_FLAG={'name':a62_0x402f96(0x216),'type':'boolean','description':'Required\x20to\x20execute\x20dataset\x20deletion'},EXPECTED_COUNT_FLAG={'name':a62_0x402f96(0x208),'type':a62_0x402f96(0x225),'description':'Abort\x20unless\x20the\x20matched\x20dataset\x20count\x20equals\x20this\x20value'};export const datasetDelete={'service':a62_0x402f96(0x1f6),'command':a62_0x402f96(0x222),'description':a62_0x402f96(0x200),'risk':a62_0x402f96(0x219),'flags':[DATASET_ID_FLAG,CODE_FLAG_OPTIONAL,DBID_FLAG,CONFIRM_FLAG,EXPECTED_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x197e54){const _0x2732b2=a62_0x402f96,_0x44794f=_0x197e54['num']('id'),_0x32c21d=_0x197e54[_0x2732b2(0x1f8)](_0x2732b2(0x1f2)),_0x148431=_0x197e54[_0x2732b2(0x224)](_0x2732b2(0x212)),_0x1d8bb4=[_0x44794f>0x0,Boolean(_0x32c21d),_0x148431>0x0][_0x2732b2(0x205)](Boolean);if(_0x1d8bb4[_0x2732b2(0x1f0)]===0x0)throw CliErrors[_0x2732b2(0x1f9)](_0x2732b2(0x1fc));if(_0x1d8bb4[_0x2732b2(0x1f0)]>0x1)throw CliErrors['validation']('Use\x20only\x20one\x20of\x20--id,\x20--code,\x20or\x20--dbid.');},async 'dryRun'(_0x329142){const _0x220899=a62_0x402f96,_0x1c7881=await resolveTargets(_0x329142);return{'method':'POST','url':_0x220899(0x217),'body':{'appCode':_0x329142['appCode'],'count':_0x1c7881[_0x220899(0x1f0)],'datasets':_0x1c7881},'description':_0x220899(0x204)+_0x1c7881[_0x220899(0x1f0)]+_0x220899(0x209)};},async 'execute'(_0x20676e){const _0x383254=a62_0x402f96;if(!_0x20676e[_0x383254(0x1f4)](_0x383254(0x216)))throw CliErrors['validation']('--confirm\x20is\x20required\x20to\x20delete\x20datasets.','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm\x20when\x20the\x20target\x20list\x20is\x20correct.');const _0x366373=await resolveTargets(_0x20676e),_0x36453a=[],_0x460ec5=[];for(const _0x435202 of _0x366373){try{await deleteDataset(_0x20676e[_0x383254(0x1fe)],_0x435202['id']),_0x36453a[_0x383254(0x20e)](_0x435202);}catch(_0x4f0fcc){_0x460ec5['push']({..._0x435202,'error':_0x4f0fcc instanceof Error?_0x4f0fcc[_0x383254(0x21b)]:String(_0x4f0fcc)});}}if(_0x460ec5[_0x383254(0x1f0)]>0x0)return{'ok':![],'data':{'requested':_0x366373['length'],'deletedCount':_0x36453a[_0x383254(0x1f0)],'failedCount':_0x460ec5[_0x383254(0x1f0)],'deleted':_0x36453a,'failed':_0x460ec5},'message':_0x383254(0x20a)+_0x36453a[_0x383254(0x1f0)]+'/'+_0x366373[_0x383254(0x1f0)]+_0x383254(0x223)+_0x460ec5['length']+_0x383254(0x20b)};return{'ok':!![],'data':{'requested':_0x366373[_0x383254(0x1f0)],'deletedCount':_0x36453a[_0x383254(0x1f0)],'deleted':_0x36453a},'message':'Deleted\x20'+_0x36453a['length']+_0x383254(0x211)};}};async function resolveTargets(_0x3329fd){const _0x4c0840=a62_0x402f96,_0x414128=_0x3329fd[_0x4c0840(0x224)]('id'),_0x15b313=_0x3329fd[_0x4c0840(0x1f8)]('code'),_0x5d701a=_0x3329fd[_0x4c0840(0x224)](_0x4c0840(0x212));let _0x2e10d6;_0x15b313?(_0x2e10d6=await listDatasets(_0x3329fd[_0x4c0840(0x1fe)],{'code':_0x15b313}),_0x2e10d6=_0x2e10d6[_0x4c0840(0x205)](_0x30975b=>_0x30975b[_0x4c0840(0x1f2)]===_0x15b313)):(_0x2e10d6=await listDatasets(_0x3329fd[_0x4c0840(0x1fe)]),_0x414128>0x0&&(_0x2e10d6=_0x2e10d6[_0x4c0840(0x205)](_0x687a1f=>_0x687a1f['id']===_0x414128)),_0x5d701a>0x0&&(_0x2e10d6=_0x2e10d6[_0x4c0840(0x205)](_0x23cf2f=>_0x23cf2f[_0x4c0840(0x1f7)]?.[_0x4c0840(0x20d)]===_0x5d701a)));const _0xa97d=_0x2e10d6[_0x4c0840(0x21d)](normalizeTarget);if(_0xa97d['length']===0x0){const _0x51f495=_0x15b313||(_0x414128>0x0?_0x4c0840(0x20c)+_0x414128:_0x4c0840(0x1f3)+_0x5d701a);throw CliErrors[_0x4c0840(0x1f9)]('No\x20undeleted\x20dataset\x20found\x20for\x20'+_0x51f495+'.');}const _0xf674b0=_0x3329fd['num'](_0x4c0840(0x208));if(_0xf674b0>0x0&&_0xa97d['length']!==_0xf674b0)throw CliErrors[_0x4c0840(0x1f9)](_0x4c0840(0x1fb)+_0xa97d[_0x4c0840(0x1f0)]+_0x4c0840(0x21c)+_0xf674b0+'.');return _0xa97d;}function normalizeTarget(_0x4abbfb){const _0x4517bd=a62_0x402f96,_0x741af3=_0x4abbfb[_0x4517bd(0x1f7)]??{};return{'id':_0x4abbfb['id'],'code':_0x4abbfb[_0x4517bd(0x1f2)],'name':_0x4abbfb[_0x4517bd(0x203)],'description':_0x4abbfb[_0x4517bd(0x1fa)],'source':_0x4abbfb[_0x4517bd(0x202)],'dbId':_0x741af3['dbId'],'dbName':_0x741af3['dbName'],'tableName':_0x741af3[_0x4517bd(0x21a)],'relatedPageCount':Array[_0x4517bd(0x1fd)](_0x4abbfb[_0x4517bd(0x207)])?_0x4abbfb[_0x4517bd(0x207)]['length']:undefined};}
@@ -1 +1 @@
1
- const a63_0x4d44ec=a63_0x1ed0;(function(_0x2f45be,_0x282fb2){const _0x5a2d43=a63_0x1ed0,_0x53df1e=_0x2f45be();while(!![]){try{const _0x560130=-parseInt(_0x5a2d43(0x112))/0x1+-parseInt(_0x5a2d43(0x11d))/0x2*(parseInt(_0x5a2d43(0x11c))/0x3)+parseInt(_0x5a2d43(0x137))/0x4+-parseInt(_0x5a2d43(0x142))/0x5+-parseInt(_0x5a2d43(0x13f))/0x6+-parseInt(_0x5a2d43(0x12c))/0x7+parseInt(_0x5a2d43(0x100))/0x8*(parseInt(_0x5a2d43(0x136))/0x9);if(_0x560130===_0x282fb2)break;else _0x53df1e['push'](_0x53df1e['shift']());}catch(_0x157041){_0x53df1e['push'](_0x53df1e['shift']());}}}(a63_0x2dc9,0xef502));import{getDatasetDetail}from'../../core/api-client.js';function a63_0x1ed0(_0x5e9d14,_0x55b624){_0x5e9d14=_0x5e9d14-0xf9;const _0x2dc992=a63_0x2dc9();let _0x1ed07f=_0x2dc992[_0x5e9d14];return _0x1ed07f;}import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function normalizeField(_0x284487){const _0x14b5bf=a63_0x1ed0;if(_0x284487[_0x14b5bf(0x107)])return null;const _0x73f5bb=Boolean(_0x284487[_0x14b5bf(0x105)]!==undefined||_0x284487['doType']!==undefined);let _0x1da47b={};if(!_0x73f5bb&&typeof _0x284487[_0x14b5bf(0x132)]===_0x14b5bf(0x103))try{_0x1da47b=JSON[_0x14b5bf(0x124)](_0x284487[_0x14b5bf(0x132)]);}catch{}const _0x1de31f=_0x73f5bb?_0x284487[_0x14b5bf(0x134)]:_0x284487['code'],_0x37ee9f=_0x73f5bb?_0x284487[_0x14b5bf(0x105)]:_0x284487[_0x14b5bf(0x134)],_0x167743=_0x73f5bb?_0x284487[_0x14b5bf(0x13a)]:_0x284487[_0x14b5bf(0x116)]||_0x284487[_0x14b5bf(0x135)],_0x5e2f01=_0x73f5bb?_0x284487['pkField']===!![]:_0x1da47b['pkField']===!![],_0x14df54=_0x73f5bb?_0x284487[_0x14b5bf(0x108)]===!![]:_0x1da47b[_0x14b5bf(0x108)]===!![],_0x55f823=_0x73f5bb?_0x284487[_0x14b5bf(0x130)]??null:_0x1da47b['options']??null,_0x134cdd={'name':_0x1de31f,'displayName':_0x37ee9f||_0x1de31f,'type':_0x167743,'dbType':_0x284487['dbType'],'pk':_0x5e2f01,'required':_0x14df54,'deprecated':_0x284487[_0x14b5bf(0x10b)]===!![],'description':_0x284487[_0x14b5bf(0x126)]||undefined};return Array[_0x14b5bf(0x133)](_0x55f823)&&_0x55f823[_0x14b5bf(0x139)]>0x0&&(_0x134cdd['options']=_0x55f823),_0x134cdd;}function parseJsonMaybe(_0x3ca448){const _0x3dfac0=a63_0x1ed0;if(typeof _0x3ca448!==_0x3dfac0(0x103))return _0x3ca448;try{return JSON[_0x3dfac0(0x124)](_0x3ca448);}catch{return _0x3ca448;}}function a63_0x2dc9(){const _0x401196=['requestFields','creatorNameField','13610289HJlabd','pkField','modifierIdField','relations','options','allFieldNames','extend','isArray','name','dataType','18qzqVYX','2574636HordYE','properties','length','doType','afterScriptId','datasetKey','title','object','7584198zzMhRq','host','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','8587555dBNjyD','operations','entries','relationId','code','path','beforeScriptId','validateRules','26284744IxscwC','dbId','alias','string','toTableName','displayName','filter','deleted','required','fromField','dbName','deprecated','trim','str','modifierNameField','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','map','tableName','882482NGSKyZ','split','indexes','tableComment','type','responseBody','createTimeField','dataset','updateTimeField','formatRules','3nxcdki','852532ogEAfi','method','toDatasetName','modelCode','sourceType','toField','allFields','parse','cardinality','description','fields','responseFields','requestBody'];a63_0x2dc9=function(){return _0x401196;};return a63_0x2dc9();}function normalizeOperationEntry(_0x3f95e9,_0x4d5e32){const _0x48f9e9=a63_0x1ed0;if(!_0x4d5e32||typeof _0x4d5e32!==_0x48f9e9(0x13e))return null;if(!_0x4d5e32[_0x48f9e9(0x11e)]||!_0x4d5e32['path'])return null;const _0x2ff0d7={'name':_0x3f95e9,'method':_0x4d5e32['method'],'path':_0x4d5e32[_0x48f9e9(0xfd)]};if(_0x4d5e32[_0x48f9e9(0x140)])_0x2ff0d7[_0x48f9e9(0x140)]=_0x4d5e32[_0x48f9e9(0x140)];if(_0x4d5e32['requestBody']!=null){const _0x51ca2f=parseJsonMaybe(_0x4d5e32['requestBody']);_0x2ff0d7[_0x48f9e9(0x129)]=_0x51ca2f;}if(_0x4d5e32['responseBody']!=null){const _0x1bc391=parseJsonMaybe(_0x4d5e32['responseBody']);_0x2ff0d7[_0x48f9e9(0x117)]=_0x1bc391;}if(_0x4d5e32[_0x48f9e9(0xfe)]!=null)_0x2ff0d7[_0x48f9e9(0xfe)]=_0x4d5e32[_0x48f9e9(0xfe)];if(_0x4d5e32[_0x48f9e9(0x13b)]!=null)_0x2ff0d7[_0x48f9e9(0x13b)]=_0x4d5e32[_0x48f9e9(0x13b)];if(Array['isArray'](_0x4d5e32[_0x48f9e9(0x12a)]))_0x2ff0d7[_0x48f9e9(0x12a)]=_0x4d5e32[_0x48f9e9(0x12a)];if(Array[_0x48f9e9(0x133)](_0x4d5e32[_0x48f9e9(0x128)]))_0x2ff0d7['responseFields']=_0x4d5e32[_0x48f9e9(0x128)];return _0x2ff0d7;}function summarizeDbtable(_0x32f954){const _0x530ec9=a63_0x1ed0,_0xd1c6c5={},_0x2199a3=[_0x530ec9(0x101),'dbName',_0x530ec9(0x111),_0x530ec9(0x13c),_0x530ec9(0x12d),_0x530ec9(0x123),'logicField',_0x530ec9(0x118),_0x530ec9(0x11a),'creatorIdField',_0x530ec9(0x12b),_0x530ec9(0x12e),_0x530ec9(0x10e),'labelField','dblinkInfoDTO'];for(const _0x37d047 of _0x2199a3){if(_0x32f954[_0x37d047]!==undefined)_0xd1c6c5[_0x37d047]=_0x32f954[_0x37d047];}return typeof _0xd1c6c5[_0x530ec9(0x123)]===_0x530ec9(0x103)&&_0xd1c6c5[_0x530ec9(0x123)][_0x530ec9(0x139)]>0x0&&(_0xd1c6c5[_0x530ec9(0x131)]=_0xd1c6c5[_0x530ec9(0x123)][_0x530ec9(0x113)](',')[_0x530ec9(0x110)](_0x2bb0fe=>_0x2bb0fe[_0x530ec9(0x10c)]())[_0x530ec9(0x106)](Boolean)),_0xd1c6c5;}function normalizeRelatedPages(_0x41451b){const _0x4a064e=a63_0x1ed0;if(!Array[_0x4a064e(0x133)](_0x41451b))return[];return _0x41451b['filter'](_0x483af0=>_0x483af0&&typeof _0x483af0===_0x4a064e(0x13e))['map'](_0x3e6edd=>({'id':_0x3e6edd['id'],'type':_0x3e6edd[_0x4a064e(0x116)],'code':_0x3e6edd['code'],'title':_0x3e6edd[_0x4a064e(0x13d)],'deleted':_0x3e6edd[_0x4a064e(0x107)]===!![]}));}export const datasetDetail={'service':'dataset','command':'detail','description':a63_0x4d44ec(0x141),'risk':'read','flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a63_0x4d44ec(0x102),'type':a63_0x4d44ec(0x103),'description':a63_0x4d44ec(0x10f)}],async 'execute'(_0x1aa31f){const _0x325cd9=a63_0x4d44ec,_0x50bac4=await getDatasetDetail(_0x1aa31f[_0x325cd9(0x10d)]('code')),_0x526100=Array[_0x325cd9(0x133)](_0x50bac4[_0x325cd9(0x127)])?_0x50bac4[_0x325cd9(0x127)]:Array[_0x325cd9(0x133)](_0x50bac4[_0x325cd9(0x138)])?_0x50bac4[_0x325cd9(0x138)]:[],_0xc90214=_0x526100[_0x325cd9(0x110)](_0x289979=>normalizeField(_0x289979))[_0x325cd9(0x106)](_0x61e57=>_0x61e57!==null),_0x5a4367=_0x50bac4[_0x325cd9(0xf9)]??{},_0x4735a9=[];for(const [_0x3b01f0,_0x24518b]of Object[_0x325cd9(0xfa)](_0x5a4367)){const _0x563dc4=normalizeOperationEntry(_0x3b01f0,_0x24518b);if(_0x563dc4)_0x4735a9['push'](_0x563dc4);}const _0x50e30a=_0x50bac4['dbtableConfig']??{},_0x35e248=_0x50bac4[_0x325cd9(0x119)]??{},_0x4990f7=_0x50e30a[_0x325cd9(0x101)]!=null?{'id':_0x50e30a['dbId'],'name':_0x50e30a[_0x325cd9(0x10a)]??null}:undefined;let _0x35fce0;return typeof _0x50bac4[_0x325cd9(0x132)]===_0x325cd9(0x103)&&(_0x35fce0=parseJsonMaybe(_0x50bac4[_0x325cd9(0x132)])),{'ok':!![],'data':{'id':_0x50bac4['modelId']??_0x50bac4['id'],'name':_0x50bac4[_0x325cd9(0x134)],'code':_0x50bac4[_0x325cd9(0x120)]||_0x50bac4[_0x325cd9(0xfc)],'doVersion':_0x50bac4['doVersion'],'description':_0x50bac4[_0x325cd9(0x126)]||_0x35e248[_0x325cd9(0x115)]||undefined,'source':_0x50bac4['source']||_0x35e248[_0x325cd9(0x121)],'table':_0x50e30a[_0x325cd9(0x111)]||_0x35e248[_0x325cd9(0x111)],'datasetKey':_0x50e30a['datasetKey'],'pk':_0x50e30a[_0x325cd9(0x12d)],'db':_0x4990f7,'dbtable':summarizeDbtable(_0x50e30a),'fields':_0xc90214,'operations':_0x4735a9,'indexes':Array['isArray'](_0x35e248[_0x325cd9(0x114)])?_0x35e248['indexes']:[],'relations':Array[_0x325cd9(0x133)](_0x50bac4[_0x325cd9(0x12f)])?_0x50bac4[_0x325cd9(0x12f)]['map'](_0x32676a=>({..._0x32676a['relationId']!=null?{'relationId':_0x32676a[_0x325cd9(0xfb)]}:{},'fromDataset':_0x50bac4[_0x325cd9(0x134)],'fromCode':_0x50bac4[_0x325cd9(0x120)]||_0x50bac4[_0x325cd9(0xfc)],'fromTable':_0x50e30a[_0x325cd9(0x111)]||_0x35e248[_0x325cd9(0x111)],'fromField':_0x32676a[_0x325cd9(0x109)],'toDataset':_0x32676a[_0x325cd9(0x11f)],'toCode':_0x32676a['toDatasetCode'],'toTable':_0x32676a[_0x325cd9(0x104)],'toField':_0x32676a[_0x325cd9(0x122)],'labelField':_0x32676a['toFieldLabel']||undefined,'cardinality':_0x32676a[_0x325cd9(0x125)]||undefined,'bizRelationType':_0x32676a['bizRelationType']==='main_sub'?'main_sub':null})):[],'relatedPages':normalizeRelatedPages(_0x50bac4['relatedPageInfoList']),...Array['isArray'](_0x50bac4['columnCodeListWithDeleted'])?{'columnCodeListWithDeleted':_0x50bac4['columnCodeListWithDeleted']}:{},'formatRules':Array[_0x325cd9(0x133)](_0x50bac4[_0x325cd9(0x11b)])?_0x50bac4[_0x325cd9(0x11b)]:[],'validateRules':Array[_0x325cd9(0x133)](_0x50bac4[_0x325cd9(0xff)])?_0x50bac4[_0x325cd9(0xff)]:[],..._0x35fce0!==undefined?{'extend':_0x35fce0}:{},'stats':{'fieldCount':_0xc90214['length'],'operationCount':_0x4735a9[_0x325cd9(0x139)]}}};}};
1
+ const a63_0x16940c=a63_0x5a02;function a63_0x5a02(_0x2353f9,_0x2690ef){_0x2353f9=_0x2353f9-0x1a0;const _0x3526e7=a63_0x3526();let _0x5a02f5=_0x3526e7[_0x2353f9];return _0x5a02f5;}(function(_0x1bf508,_0x5ea7df){const _0x505317=a63_0x5a02,_0x27a951=_0x1bf508();while(!![]){try{const _0x115f75=parseInt(_0x505317(0x1c3))/0x1*(-parseInt(_0x505317(0x1be))/0x2)+parseInt(_0x505317(0x1ae))/0x3*(-parseInt(_0x505317(0x1af))/0x4)+parseInt(_0x505317(0x1d8))/0x5+-parseInt(_0x505317(0x1b3))/0x6*(-parseInt(_0x505317(0x1d3))/0x7)+parseInt(_0x505317(0x1a7))/0x8*(-parseInt(_0x505317(0x1f2))/0x9)+parseInt(_0x505317(0x1cb))/0xa+parseInt(_0x505317(0x1db))/0xb;if(_0x115f75===_0x5ea7df)break;else _0x27a951['push'](_0x27a951['shift']());}catch(_0x2003c5){_0x27a951['push'](_0x27a951['shift']());}}}(a63_0x3526,0x329f2));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function normalizeField(_0x2d26eb){const _0x4c7f47=a63_0x5a02;if(_0x2d26eb[_0x4c7f47(0x1e9)])return null;const _0x2c7f12=Boolean(_0x2d26eb[_0x4c7f47(0x1e6)]!==undefined||_0x2d26eb[_0x4c7f47(0x1df)]!==undefined);let _0x145345={};if(!_0x2c7f12&&typeof _0x2d26eb[_0x4c7f47(0x1b0)]===_0x4c7f47(0x1bd))try{_0x145345=JSON[_0x4c7f47(0x1f0)](_0x2d26eb[_0x4c7f47(0x1b0)]);}catch{}const _0x1c882f=_0x2c7f12?_0x2d26eb[_0x4c7f47(0x1a2)]:_0x2d26eb[_0x4c7f47(0x1c0)],_0x38c052=_0x2c7f12?_0x2d26eb['displayName']:_0x2d26eb['name'],_0x9316f2=_0x2c7f12?_0x2d26eb[_0x4c7f47(0x1df)]:_0x2d26eb[_0x4c7f47(0x1c4)]||_0x2d26eb[_0x4c7f47(0x1e5)],_0x5a26b1=_0x2c7f12?_0x2d26eb[_0x4c7f47(0x1a3)]===!![]:_0x145345[_0x4c7f47(0x1a3)]===!![],_0x471ff6=_0x2c7f12?_0x2d26eb[_0x4c7f47(0x1d4)]===!![]:_0x145345['required']===!![],_0x3a2146=_0x2c7f12?_0x2d26eb[_0x4c7f47(0x1e2)]??null:_0x145345[_0x4c7f47(0x1e2)]??null,_0x4d1062={'name':_0x1c882f,'displayName':_0x38c052||_0x1c882f,'type':_0x9316f2,'dbType':_0x2d26eb['dbType'],'pk':_0x5a26b1,'required':_0x471ff6,'deprecated':_0x2d26eb[_0x4c7f47(0x1b5)]===!![],'description':_0x2d26eb[_0x4c7f47(0x1aa)]||undefined};return Array[_0x4c7f47(0x1cc)](_0x3a2146)&&_0x3a2146[_0x4c7f47(0x1b4)]>0x0&&(_0x4d1062[_0x4c7f47(0x1e2)]=_0x3a2146),_0x4d1062;}function parseJsonMaybe(_0x5a9e49){const _0x463892=a63_0x5a02;if(typeof _0x5a9e49!==_0x463892(0x1bd))return _0x5a9e49;try{return JSON[_0x463892(0x1f0)](_0x5a9e49);}catch{return _0x5a9e49;}}function normalizeOperationEntry(_0x30ecfb,_0x28d7d6){const _0x523ae0=a63_0x5a02;if(!_0x28d7d6||typeof _0x28d7d6!==_0x523ae0(0x1ea))return null;if(!_0x28d7d6['method']||!_0x28d7d6['path'])return null;const _0x24d43a={'name':_0x30ecfb,'method':_0x28d7d6[_0x523ae0(0x1e1)],'path':_0x28d7d6[_0x523ae0(0x1e0)]};if(_0x28d7d6[_0x523ae0(0x1a0)])_0x24d43a[_0x523ae0(0x1a0)]=_0x28d7d6[_0x523ae0(0x1a0)];if(_0x28d7d6[_0x523ae0(0x1a4)]!=null){const _0x391299=parseJsonMaybe(_0x28d7d6[_0x523ae0(0x1a4)]);_0x24d43a[_0x523ae0(0x1a4)]=_0x391299;}if(_0x28d7d6[_0x523ae0(0x1bf)]!=null){const _0x18effe=parseJsonMaybe(_0x28d7d6['responseBody']);_0x24d43a['responseBody']=_0x18effe;}if(_0x28d7d6[_0x523ae0(0x1b1)]!=null)_0x24d43a[_0x523ae0(0x1b1)]=_0x28d7d6['beforeScriptId'];if(_0x28d7d6['afterScriptId']!=null)_0x24d43a['afterScriptId']=_0x28d7d6['afterScriptId'];if(Array['isArray'](_0x28d7d6[_0x523ae0(0x1d1)]))_0x24d43a[_0x523ae0(0x1d1)]=_0x28d7d6[_0x523ae0(0x1d1)];if(Array[_0x523ae0(0x1cc)](_0x28d7d6['responseFields']))_0x24d43a[_0x523ae0(0x1d7)]=_0x28d7d6[_0x523ae0(0x1d7)];return _0x24d43a;}function summarizeDbtable(_0x5557ff){const _0x22c262=a63_0x5a02,_0xdb77b6={},_0x2ad296=[_0x22c262(0x1ab),_0x22c262(0x1bb),_0x22c262(0x1b9),_0x22c262(0x1ef),_0x22c262(0x1a3),_0x22c262(0x1d2),_0x22c262(0x1c7),'createTimeField',_0x22c262(0x1a8),_0x22c262(0x1c9),_0x22c262(0x1d0),'modifierIdField',_0x22c262(0x1e4),_0x22c262(0x1cf),_0x22c262(0x1a5)];for(const _0x48b41d of _0x2ad296){if(_0x5557ff[_0x48b41d]!==undefined)_0xdb77b6[_0x48b41d]=_0x5557ff[_0x48b41d];}return typeof _0xdb77b6['allFields']==='string'&&_0xdb77b6[_0x22c262(0x1d2)]['length']>0x0&&(_0xdb77b6[_0x22c262(0x1eb)]=_0xdb77b6['allFields'][_0x22c262(0x1da)](',')[_0x22c262(0x1c5)](_0x4ba5ac=>_0x4ba5ac[_0x22c262(0x1b8)]())[_0x22c262(0x1dd)](Boolean)),_0xdb77b6;}function normalizeRelatedPages(_0x176d09){const _0x1a0ac9=a63_0x5a02;if(!Array[_0x1a0ac9(0x1cc)](_0x176d09))return[];return _0x176d09[_0x1a0ac9(0x1dd)](_0x4de430=>_0x4de430&&typeof _0x4de430===_0x1a0ac9(0x1ea))[_0x1a0ac9(0x1c5)](_0x8169e0=>({'id':_0x8169e0['id'],'type':_0x8169e0[_0x1a0ac9(0x1c4)],'code':_0x8169e0[_0x1a0ac9(0x1c0)],'title':_0x8169e0[_0x1a0ac9(0x1ca)],'deleted':_0x8169e0[_0x1a0ac9(0x1e9)]===!![]}));}function a63_0x3526(){const _0x21d552=['labelField','creatorNameField','requestFields','allFields','553AMexuy','required','dataset','indexes','responseFields','1176865ELWlEl','formatRules','split','3328028QHXiyN','properties','filter','toDatasetName','doType','path','method','options','str','modifierNameField','dataType','displayName','toTableName','main_sub','deleted','object','allFieldNames','fromField','columnCodeListWithDeleted','tableComment','datasetKey','parse','toDatasetCode','5823QeduHv','cardinality','push','bizRelationType','host','source','name','pkField','requestBody','dblinkInfoDTO','modelCode','3336LzFGNj','updateTimeField','doVersion','description','dbId','toFieldLabel','operations','699InbTSO','2892OmEIOr','extend','beforeScriptId','relatedPageInfoList','3996qLwlnb','length','deprecated','fields','read','trim','tableName','relations','dbName','alias','string','5884VghDmq','responseBody','code','detail','toField','46rSZHiE','type','map','dbtableConfig','logicField','sourceType','creatorIdField','title','1904010zdaYNa','isArray','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','relationId'];a63_0x3526=function(){return _0x21d552;};return a63_0x3526();}export const datasetDetail={'service':a63_0x16940c(0x1d5),'command':a63_0x16940c(0x1c1),'description':a63_0x16940c(0x1cd),'risk':a63_0x16940c(0x1b7),'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a63_0x16940c(0x1bc),'type':a63_0x16940c(0x1bd),'description':'Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically'}],async 'execute'(_0x49a92d){const _0x5bdff9=a63_0x16940c,_0x29e970=await getDatasetDetail(_0x49a92d[_0x5bdff9(0x1e3)](_0x5bdff9(0x1c0))),_0x427a1e=Array[_0x5bdff9(0x1cc)](_0x29e970[_0x5bdff9(0x1b6)])?_0x29e970[_0x5bdff9(0x1b6)]:Array[_0x5bdff9(0x1cc)](_0x29e970['properties'])?_0x29e970[_0x5bdff9(0x1dc)]:[],_0x321b79=_0x427a1e[_0x5bdff9(0x1c5)](_0x35f786=>normalizeField(_0x35f786))[_0x5bdff9(0x1dd)](_0xae19f6=>_0xae19f6!==null),_0x4df135=_0x29e970[_0x5bdff9(0x1ad)]??{},_0x496cde=[];for(const [_0x4037f8,_0x4f7d63]of Object['entries'](_0x4df135)){const _0x54f125=normalizeOperationEntry(_0x4037f8,_0x4f7d63);if(_0x54f125)_0x496cde[_0x5bdff9(0x1f4)](_0x54f125);}const _0x3a4537=_0x29e970[_0x5bdff9(0x1c6)]??{},_0x4d583d=_0x29e970[_0x5bdff9(0x1d5)]??{},_0x4850be=_0x3a4537[_0x5bdff9(0x1ab)]!=null?{'id':_0x3a4537['dbId'],'name':_0x3a4537[_0x5bdff9(0x1bb)]??null}:undefined;let _0x3998fd;return typeof _0x29e970[_0x5bdff9(0x1b0)]===_0x5bdff9(0x1bd)&&(_0x3998fd=parseJsonMaybe(_0x29e970[_0x5bdff9(0x1b0)])),{'ok':!![],'data':{'id':_0x29e970['modelId']??_0x29e970['id'],'name':_0x29e970[_0x5bdff9(0x1a2)],'code':_0x29e970[_0x5bdff9(0x1a6)]||_0x29e970[_0x5bdff9(0x1c0)],'doVersion':_0x29e970[_0x5bdff9(0x1a9)],'description':_0x29e970[_0x5bdff9(0x1aa)]||_0x4d583d[_0x5bdff9(0x1ee)]||undefined,'source':_0x29e970[_0x5bdff9(0x1a1)]||_0x4d583d[_0x5bdff9(0x1c8)],'table':_0x3a4537['tableName']||_0x4d583d[_0x5bdff9(0x1b9)],'datasetKey':_0x3a4537[_0x5bdff9(0x1ef)],'pk':_0x3a4537[_0x5bdff9(0x1a3)],'db':_0x4850be,'dbtable':summarizeDbtable(_0x3a4537),'fields':_0x321b79,'operations':_0x496cde,'indexes':Array['isArray'](_0x4d583d[_0x5bdff9(0x1d6)])?_0x4d583d[_0x5bdff9(0x1d6)]:[],'relations':Array[_0x5bdff9(0x1cc)](_0x29e970['relations'])?_0x29e970[_0x5bdff9(0x1ba)][_0x5bdff9(0x1c5)](_0x1c6ac2=>({..._0x1c6ac2['relationId']!=null?{'relationId':_0x1c6ac2[_0x5bdff9(0x1ce)]}:{},'fromDataset':_0x29e970[_0x5bdff9(0x1a2)],'fromCode':_0x29e970[_0x5bdff9(0x1a6)]||_0x29e970['code'],'fromTable':_0x3a4537[_0x5bdff9(0x1b9)]||_0x4d583d[_0x5bdff9(0x1b9)],'fromField':_0x1c6ac2[_0x5bdff9(0x1ec)],'toDataset':_0x1c6ac2[_0x5bdff9(0x1de)],'toCode':_0x1c6ac2[_0x5bdff9(0x1f1)],'toTable':_0x1c6ac2[_0x5bdff9(0x1e7)],'toField':_0x1c6ac2[_0x5bdff9(0x1c2)],'labelField':_0x1c6ac2[_0x5bdff9(0x1ac)]||undefined,'cardinality':_0x1c6ac2[_0x5bdff9(0x1f3)]||undefined,'bizRelationType':_0x1c6ac2[_0x5bdff9(0x1f5)]==='main_sub'?_0x5bdff9(0x1e8):null})):[],'relatedPages':normalizeRelatedPages(_0x29e970[_0x5bdff9(0x1b2)]),...Array[_0x5bdff9(0x1cc)](_0x29e970[_0x5bdff9(0x1ed)])?{'columnCodeListWithDeleted':_0x29e970[_0x5bdff9(0x1ed)]}:{},'formatRules':Array[_0x5bdff9(0x1cc)](_0x29e970['formatRules'])?_0x29e970[_0x5bdff9(0x1d9)]:[],'validateRules':Array[_0x5bdff9(0x1cc)](_0x29e970['validateRules'])?_0x29e970['validateRules']:[],..._0x3998fd!==undefined?{'extend':_0x3998fd}:{},'stats':{'fieldCount':_0x321b79['length'],'operationCount':_0x496cde[_0x5bdff9(0x1b4)]}}};}};
@@ -1 +1 @@
1
- const a64_0xdea6a1=a64_0x17be;(function(_0x58cafe,_0x21231a){const _0x14c3ca=a64_0x17be,_0x459972=_0x58cafe();while(!![]){try{const _0x16b809=-parseInt(_0x14c3ca(0x103))/0x1+parseInt(_0x14c3ca(0xf0))/0x2+-parseInt(_0x14c3ca(0x104))/0x3*(parseInt(_0x14c3ca(0x119))/0x4)+parseInt(_0x14c3ca(0x105))/0x5*(parseInt(_0x14c3ca(0x10e))/0x6)+-parseInt(_0x14c3ca(0xf6))/0x7*(parseInt(_0x14c3ca(0xe3))/0x8)+-parseInt(_0x14c3ca(0xf5))/0x9+parseInt(_0x14c3ca(0x10f))/0xa*(parseInt(_0x14c3ca(0x107))/0xb);if(_0x16b809===_0x21231a)break;else _0x459972['push'](_0x459972['shift']());}catch(_0x426f72){_0x459972['push'](_0x459972['shift']());}}}(a64_0x5650,0x36e0e));import{APPCODE_FLAG_OPTIONAL,CODE_FLAG}from'../../commands/common/flags.js';import{getDatasetDetail,updateDrivenData}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const MUTABLE_EXTEND_KEYS=new Set(),EXTEND_PATCH_REDIRECTS=new Map([['businessGroup',{'message':a64_0xdea6a1(0xfa),'hint':a64_0xdea6a1(0xe9)}]]);export function parseJsonObjectFlag(_0x2247be,_0xad1717){const _0x429859=a64_0xdea6a1;if(!_0x2247be)return undefined;let _0x46d8c6;try{_0x46d8c6=JSON['parse'](_0x2247be);}catch(_0x385db4){const _0x114e6e=_0x385db4 instanceof Error?_0x385db4[_0x429859(0xe6)]:String(_0x385db4);throw CliErrors['validation'](_0xad1717+_0x429859(0xed)+_0x114e6e);}if(!isPlainObject(_0x46d8c6)||Array[_0x429859(0x123)](_0x46d8c6))throw CliErrors[_0x429859(0x118)](_0xad1717+_0x429859(0x101));return _0x46d8c6;}function a64_0x17be(_0x184f34,_0x18ff9c){_0x184f34=_0x184f34-0xe0;const _0x56500b=a64_0x5650();let _0x17be17=_0x56500b[_0x184f34];return _0x17be17;}function a64_0x5650(){const _0x50dfb9=['\x20must\x20be\x20valid\x20JSON\x20object:\x20','Dry-run:\x20dataset\x20extend\x20would\x20change\x20(','/smartapi/dataset/update-driven-data','304120zzzUyv','Unsupported\x20patch\x20key:\x20','--patch-json\x20must\x20contain\x20at\x20least\x20one\x20key','join','--patch-json','175176kQIBNx','175dlWJDa','from','dbId','appCode','dataset\x20extend-update\x20does\x20not\x20support\x20businessGroup;\x20use\x20dataset\x20business-group-update','No\x20dataset\x20extend\x20patch\x20keys\x20are\x20currently\x20supported.','write','modelId','trim','patch-json','JSON\x20object\x20patch\x20for\x20dataset\x20top-level\x20extend;\x20current\x20allowlist\x20is\x20empty','\x20must\x20be\x20a\x20JSON\x20object','stringify','230024zvyAST','39kspGVO','30xTxrRG','Updated\x20dataset\x20extend\x20(','11MRaMRS','Expectation\x20mismatch\x20at\x20extend.','object','POST','str','name','code','60624XWDPVO','6522330bLbyub','--code\x20is\x20required','patch','extend-update','shape','Patch\x20dataset\x20top-level\x20extend\x20safely','sort','dbtableConfig','datasetName','validation','16776OEoTvj','Dataset\x20extend\x20must\x20be\x20a\x20JSON\x20object','JSON\x20object\x20of\x20expected\x20current\x20extend\x20values;\x20mismatch\x20aborts\x20without\x20writing','value','Expected\x20','datasetCode','string','extend.','extend','datasetId','isArray','has','expect-json','data','107560ndOQny','length','tableName','message','dataset','modelCode','Use\x20`rabetbase\x20dataset\x20business-group-update`\x20to\x20update\x20business\x20model\x20groups.','parse','Allowed\x20keys:\x20','entries'];a64_0x5650=function(){return _0x50dfb9;};return a64_0x5650();}export function validateExtendPatchKeys(_0x2d15d2){const _0x1c0683=a64_0xdea6a1,_0x12dd81=Object['keys'](_0x2d15d2);if(_0x12dd81['length']===0x0)throw CliErrors[_0x1c0683(0x118)](_0x1c0683(0xf2));for(const _0x130208 of _0x12dd81){const _0x964db2=EXTEND_PATCH_REDIRECTS['get'](_0x130208);if(_0x964db2)throw CliErrors[_0x1c0683(0x118)](_0x964db2[_0x1c0683(0xe6)],_0x964db2['hint']);if(!MUTABLE_EXTEND_KEYS[_0x1c0683(0xe0)](_0x130208))throw CliErrors[_0x1c0683(0x118)](_0x1c0683(0xf1)+_0x130208,describeMutableExtendKeys());}}function describeMutableExtendKeys(){const _0x2314cb=a64_0xdea6a1,_0x4641f9=Array[_0x2314cb(0xf7)](MUTABLE_EXTEND_KEYS)[_0x2314cb(0x115)]();return _0x4641f9['length']>0x0?_0x2314cb(0xeb)+_0x4641f9['join'](',\x20'):_0x2314cb(0xfb);}export function applyExtendPatch(_0x2353a1,_0x281632){const _0x29f2c9=a64_0xdea6a1;validateExtendPatchKeys(_0x281632);const _0x410abd=deepClone(_0x2353a1),_0x5d77ab=[];for(const [_0x2279ff,_0x9f7373]of Object[_0x29f2c9(0xec)](_0x281632)){const _0x11bd5b=_0x410abd[_0x2279ff],_0x3f7231=deepClone(_0x9f7373);!deepEqual(_0x11bd5b,_0x3f7231)&&(_0x410abd[_0x2279ff]=_0x3f7231,_0x5d77ab['push'](_0x29f2c9(0x120)+_0x2279ff));}return _0x5d77ab[_0x29f2c9(0x115)](),{'after':_0x410abd,'changedPaths':_0x5d77ab,'changed':_0x5d77ab[_0x29f2c9(0xe4)]>0x0};}export function assertExpectation(_0x5f039d,_0x527a95){const _0x7387c1=a64_0xdea6a1;if(!_0x527a95)return;for(const [_0x4a9e62,_0x5751f5]of Object[_0x7387c1(0xec)](_0x527a95)){const _0x5dc2d5=_0x5f039d[_0x4a9e62];if(!deepEqual(_0x5dc2d5,_0x5751f5))throw CliErrors[_0x7387c1(0x118)](_0x7387c1(0x108)+_0x4a9e62,_0x7387c1(0x11d)+JSON['stringify'](_0x5751f5)+',\x20actual\x20'+JSON[_0x7387c1(0x102)](_0x5dc2d5));}}export async function buildDatasetExtendUpdateResult({appCode:_0x1680b2,input:_0x56ca42,dryRun:_0x3dbbf0}){const _0x8165c1=a64_0xdea6a1;validateInput(_0x56ca42);const _0x415d2a=await getDatasetDetail(_0x56ca42[_0x8165c1(0x10d)]),_0xb08d10=parseDatasetExtend(_0x415d2a[_0x8165c1(0x121)]),_0x3f4825=deepClone(_0xb08d10[_0x8165c1(0x11c)]);assertExpectation(_0x3f4825,_0x56ca42['expect']);const {after:_0x2be028,changedPaths:_0x42b44b,changed:_0x5a2b12}=applyExtendPatch(_0x3f4825,_0x56ca42[_0x8165c1(0x111)]),_0x581516=summarizeDataset(_0x415d2a,_0x56ca42['code']);return _0x5a2b12&&!_0x3dbbf0&&(_0x415d2a['extend']=serializeDatasetExtend(_0x2be028,_0xb08d10[_0x8165c1(0x113)]),await updateDrivenData(_0x415d2a)),{'ok':!![],'data':{'appCode':_0x1680b2,'selector':{'code':_0x56ca42['code']},'dataset':_0x581516,'dryRun':_0x3dbbf0,'changed':_0x5a2b12,'changedPaths':_0x42b44b,'before':{'extend':_0x3f4825},'after':{'extend':_0x2be028},'submitted':_0x5a2b12&&!_0x3dbbf0},'message':_0x5a2b12?_0x3dbbf0?_0x8165c1(0xee)+_0x42b44b[_0x8165c1(0xf3)](',\x20')+')':_0x8165c1(0x106)+_0x42b44b[_0x8165c1(0xf3)](',\x20')+')':'No\x20changes\x20for\x20dataset\x20extend'};}export const datasetExtendUpdate={'service':'dataset','command':a64_0xdea6a1(0x112),'description':a64_0xdea6a1(0x114),'risk':a64_0xdea6a1(0xfc),'flags':[CODE_FLAG,{'name':a64_0xdea6a1(0xff),'type':a64_0xdea6a1(0x11f),'required':!![],'description':a64_0xdea6a1(0x100)},{'name':'expect-json','type':a64_0xdea6a1(0x11f),'required':![],'description':a64_0xdea6a1(0x11b)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3578df){validateInput(readExtendUpdateInput(_0x3578df));},async 'dryRun'(_0xe5dbe2){const _0x4ad49c=a64_0xdea6a1,_0x56e9f1=await buildDatasetExtendUpdateResult({'appCode':_0xe5dbe2[_0x4ad49c(0xf9)],'input':readExtendUpdateInput(_0xe5dbe2),'dryRun':!![]});return{'method':_0x4ad49c(0x10a),'url':_0x4ad49c(0xef),'body':_0x56e9f1[_0x4ad49c(0xe2)],'description':_0x56e9f1[_0x4ad49c(0xe6)]};},async 'execute'(_0x57ed81){const _0x50ea2a=a64_0xdea6a1;return buildDatasetExtendUpdateResult({'appCode':_0x57ed81[_0x50ea2a(0xf9)],'input':readExtendUpdateInput(_0x57ed81),'dryRun':![]});}};function readExtendUpdateInput(_0x2d4522){const _0x5bd638=a64_0xdea6a1,_0x31ebe1=trim(_0x2d4522[_0x5bd638(0x10b)](_0x5bd638(0x10d))),_0x3d6886=parseJsonObjectFlag(_0x2d4522[_0x5bd638(0x10b)](_0x5bd638(0xff)),_0x5bd638(0xf4)),_0x1a78fe=parseJsonObjectFlag(_0x2d4522[_0x5bd638(0x10b)](_0x5bd638(0xe1)),'--expect-json');return{'code':_0x31ebe1,'patch':_0x3d6886||{},'expect':_0x1a78fe};}function validateInput(_0x249890){const _0x26e9bc=a64_0xdea6a1;if(!_0x249890[_0x26e9bc(0x10d)])throw CliErrors[_0x26e9bc(0x118)](_0x26e9bc(0x110));validateExtendPatchKeys(_0x249890['patch']);}function parseDatasetExtend(_0x4e09f9){const _0x2d0fcd=a64_0xdea6a1;if(typeof _0x4e09f9===_0x2d0fcd(0x11f)){const _0xf4a4c0=_0x4e09f9[_0x2d0fcd(0xfe)]();if(!_0xf4a4c0)return{'value':{},'shape':_0x2d0fcd(0x11f)};let _0x3e95dd;try{_0x3e95dd=JSON[_0x2d0fcd(0xea)](_0xf4a4c0);}catch(_0x44575e){const _0x341f15=_0x44575e instanceof Error?_0x44575e[_0x2d0fcd(0xe6)]:String(_0x44575e);throw CliErrors['validation']('Dataset\x20extend\x20must\x20be\x20valid\x20JSON\x20object:\x20'+_0x341f15);}if(!isPlainObject(_0x3e95dd)||Array['isArray'](_0x3e95dd))throw CliErrors[_0x2d0fcd(0x118)]('Dataset\x20extend\x20must\x20be\x20a\x20JSON\x20object');return{'value':_0x3e95dd,'shape':_0x2d0fcd(0x11f)};}if(_0x4e09f9===undefined||_0x4e09f9===null)return{'value':{},'shape':_0x2d0fcd(0x11f)};if(!isPlainObject(_0x4e09f9)||Array[_0x2d0fcd(0x123)](_0x4e09f9))throw CliErrors[_0x2d0fcd(0x118)](_0x2d0fcd(0x11a));return{'value':_0x4e09f9,'shape':_0x2d0fcd(0x109)};}function serializeDatasetExtend(_0x32f701,_0x4ec976){const _0x42d236=a64_0xdea6a1;return _0x4ec976===_0x42d236(0x11f)?JSON[_0x42d236(0x102)](_0x32f701):_0x32f701;}function summarizeDataset(_0x202ba4,_0x27c21f){const _0x11e834=a64_0xdea6a1,_0x2dbbb4=isPlainObject(_0x202ba4[_0x11e834(0xe7)])?_0x202ba4[_0x11e834(0xe7)]:{},_0x1f8681=isPlainObject(_0x202ba4[_0x11e834(0x116)])?_0x202ba4['dbtableConfig']:{};return{'id':_0x202ba4[_0x11e834(0xfd)]??_0x202ba4['id']??_0x2dbbb4[_0x11e834(0x122)]??null,'code':_0x202ba4[_0x11e834(0xe8)]??_0x202ba4[_0x11e834(0x10d)]??_0x2dbbb4[_0x11e834(0x11e)]??_0x27c21f,'name':_0x202ba4[_0x11e834(0x10c)]??_0x2dbbb4[_0x11e834(0x117)]??null,'table':_0x1f8681[_0x11e834(0xe5)]??_0x2dbbb4[_0x11e834(0xe5)]??null,'db':_0x1f8681['dbName']??_0x1f8681[_0x11e834(0xf8)]??null};}function deepClone(_0x2f10df){const _0x1c03b0=a64_0xdea6a1;if(_0x2f10df===undefined)return _0x2f10df;return JSON[_0x1c03b0(0xea)](JSON[_0x1c03b0(0x102)](_0x2f10df));}function deepEqual(_0x48bc28,_0x3f71d2){const _0x3a7fe8=a64_0xdea6a1;return JSON[_0x3a7fe8(0x102)](_0x48bc28)===JSON[_0x3a7fe8(0x102)](_0x3f71d2);}function isPlainObject(_0x5506d7){const _0x1645c6=a64_0xdea6a1;return Boolean(_0x5506d7)&&typeof _0x5506d7===_0x1645c6(0x109)&&!Array[_0x1645c6(0x123)](_0x5506d7);}function trim(_0x216eda){const _0x4735c0=String(_0x216eda||'')['trim']();return _0x4735c0;}
1
+ const a64_0x2282f9=a64_0xe2cb;(function(_0x4d18ee,_0x33ad7e){const _0x43e850=a64_0xe2cb,_0x565eb1=_0x4d18ee();while(!![]){try{const _0x17ffb7=-parseInt(_0x43e850(0xef))/0x1*(parseInt(_0x43e850(0xea))/0x2)+-parseInt(_0x43e850(0xf4))/0x3*(parseInt(_0x43e850(0xe1))/0x4)+-parseInt(_0x43e850(0xd3))/0x5+parseInt(_0x43e850(0xdd))/0x6+parseInt(_0x43e850(0xcf))/0x7+parseInt(_0x43e850(0xe3))/0x8*(parseInt(_0x43e850(0xd8))/0x9)+parseInt(_0x43e850(0xbc))/0xa;if(_0x17ffb7===_0x33ad7e)break;else _0x565eb1['push'](_0x565eb1['shift']());}catch(_0x40355f){_0x565eb1['push'](_0x565eb1['shift']());}}}(a64_0x1ebc,0x8d42f));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_0x2282f9(0xc4),{'message':'dataset\x20extend-update\x20does\x20not\x20support\x20businessGroup;\x20use\x20dataset\x20business-group-update','hint':'Use\x20`rabetbase\x20dataset\x20business-group-update`\x20to\x20update\x20business\x20model\x20groups.'}]]);function a64_0x1ebc(){const _0xcf4922=['--patch-json\x20must\x20contain\x20at\x20least\x20one\x20key','stringify','Patch\x20dataset\x20top-level\x20extend\x20safely','1nVYFrP','Dataset\x20extend\x20must\x20be\x20a\x20JSON\x20object','length','isArray','from','17157YAEovp','--code\x20is\x20required','join','str','datasetId','parse','get','/smartapi/dataset/update-driven-data','validation','modelCode','patch-json','483270nwqPAx','JSON\x20object\x20of\x20expected\x20current\x20extend\x20values;\x20mismatch\x20aborts\x20without\x20writing','extend','value','Unsupported\x20patch\x20key:\x20','dbtableConfig','modelId','--patch-json','businessGroup','Allowed\x20keys:\x20','expect','trim','write','object','patch','\x20must\x20be\x20valid\x20JSON\x20object:\x20','hint','\x20must\x20be\x20a\x20JSON\x20object','appCode','7640290wMaMKE','code','string','Expected\x20','3817175njuFlp','expect-json','extend-update','data','Expectation\x20mismatch\x20at\x20extend.','14472EEdIwi','Updated\x20dataset\x20extend\x20(','--expect-json','Dataset\x20extend\x20must\x20be\x20valid\x20JSON\x20object:\x20','Dry-run:\x20dataset\x20extend\x20would\x20change\x20(','5346936nLYccn','push','shape','No\x20dataset\x20extend\x20patch\x20keys\x20are\x20currently\x20supported.','456ZwOoBV','tableName','3544vyXLiL','entries','sort','keys','message','POST','dataset','1498578ITthmM','extend.'];a64_0x1ebc=function(){return _0xcf4922;};return a64_0x1ebc();}export function parseJsonObjectFlag(_0x497f64,_0x499183){const _0x13c802=a64_0x2282f9;if(!_0x497f64)return undefined;let _0x4e1d5d;try{_0x4e1d5d=JSON[_0x13c802(0xb6)](_0x497f64);}catch(_0xa3a9cb){const _0x346544=_0xa3a9cb instanceof Error?_0xa3a9cb[_0x13c802(0xe7)]:String(_0xa3a9cb);throw CliErrors[_0x13c802(0xb9)](_0x499183+_0x13c802(0xcb)+_0x346544);}if(!isPlainObject(_0x4e1d5d)||Array[_0x13c802(0xf2)](_0x4e1d5d))throw CliErrors[_0x13c802(0xb9)](_0x499183+_0x13c802(0xcd));return _0x4e1d5d;}export function validateExtendPatchKeys(_0x2ad7f5){const _0xded9c0=a64_0x2282f9,_0x894c3=Object[_0xded9c0(0xe6)](_0x2ad7f5);if(_0x894c3[_0xded9c0(0xf1)]===0x0)throw CliErrors['validation'](_0xded9c0(0xec));for(const _0x45e7cc of _0x894c3){const _0x4df17e=EXTEND_PATCH_REDIRECTS[_0xded9c0(0xb7)](_0x45e7cc);if(_0x4df17e)throw CliErrors['validation'](_0x4df17e['message'],_0x4df17e[_0xded9c0(0xcc)]);if(!MUTABLE_EXTEND_KEYS['has'](_0x45e7cc))throw CliErrors[_0xded9c0(0xb9)](_0xded9c0(0xc0)+_0x45e7cc,describeMutableExtendKeys());}}function describeMutableExtendKeys(){const _0x49f98d=a64_0x2282f9,_0x5387f4=Array[_0x49f98d(0xf3)](MUTABLE_EXTEND_KEYS)[_0x49f98d(0xe5)]();return _0x5387f4[_0x49f98d(0xf1)]>0x0?_0x49f98d(0xc5)+_0x5387f4[_0x49f98d(0xb3)](',\x20'):_0x49f98d(0xe0);}export function applyExtendPatch(_0x5457fd,_0x2b9924){const _0x42faad=a64_0x2282f9;validateExtendPatchKeys(_0x2b9924);const _0x5cb965=deepClone(_0x5457fd),_0x3f7883=[];for(const [_0x1f18a8,_0x235ce6]of Object[_0x42faad(0xe4)](_0x2b9924)){const _0x27e685=_0x5cb965[_0x1f18a8],_0x2a0ba1=deepClone(_0x235ce6);!deepEqual(_0x27e685,_0x2a0ba1)&&(_0x5cb965[_0x1f18a8]=_0x2a0ba1,_0x3f7883[_0x42faad(0xde)](_0x42faad(0xeb)+_0x1f18a8));}return _0x3f7883[_0x42faad(0xe5)](),{'after':_0x5cb965,'changedPaths':_0x3f7883,'changed':_0x3f7883[_0x42faad(0xf1)]>0x0};}export function assertExpectation(_0x2c2edc,_0x3565db){const _0x38175d=a64_0x2282f9;if(!_0x3565db)return;for(const [_0x289050,_0x2adbf]of Object[_0x38175d(0xe4)](_0x3565db)){const _0xa4db20=_0x2c2edc[_0x289050];if(!deepEqual(_0xa4db20,_0x2adbf))throw CliErrors[_0x38175d(0xb9)](_0x38175d(0xd7)+_0x289050,_0x38175d(0xd2)+JSON[_0x38175d(0xed)](_0x2adbf)+',\x20actual\x20'+JSON[_0x38175d(0xed)](_0xa4db20));}}export async function buildDatasetExtendUpdateResult({appCode:_0x28cf7b,input:_0x47b04c,dryRun:_0x4b1348}){const _0x4a0230=a64_0x2282f9;validateInput(_0x47b04c);const _0x1a73a5=await getDatasetDetail(_0x47b04c['code']),_0x1b51f9=parseDatasetExtend(_0x1a73a5[_0x4a0230(0xbe)]),_0x4513e1=deepClone(_0x1b51f9[_0x4a0230(0xbf)]);assertExpectation(_0x4513e1,_0x47b04c[_0x4a0230(0xc6)]);const {after:_0x21ec70,changedPaths:_0x3b575d,changed:_0x5a8c21}=applyExtendPatch(_0x4513e1,_0x47b04c['patch']),_0x18e36f=summarizeDataset(_0x1a73a5,_0x47b04c[_0x4a0230(0xd0)]);return _0x5a8c21&&!_0x4b1348&&(_0x1a73a5[_0x4a0230(0xbe)]=serializeDatasetExtend(_0x21ec70,_0x1b51f9[_0x4a0230(0xdf)]),await updateDrivenData(_0x1a73a5)),{'ok':!![],'data':{'appCode':_0x28cf7b,'selector':{'code':_0x47b04c[_0x4a0230(0xd0)]},'dataset':_0x18e36f,'dryRun':_0x4b1348,'changed':_0x5a8c21,'changedPaths':_0x3b575d,'before':{'extend':_0x4513e1},'after':{'extend':_0x21ec70},'submitted':_0x5a8c21&&!_0x4b1348},'message':_0x5a8c21?_0x4b1348?_0x4a0230(0xdc)+_0x3b575d[_0x4a0230(0xb3)](',\x20')+')':_0x4a0230(0xd9)+_0x3b575d[_0x4a0230(0xb3)](',\x20')+')':'No\x20changes\x20for\x20dataset\x20extend'};}function a64_0xe2cb(_0xde4987,_0x323832){_0xde4987=_0xde4987-0xb2;const _0x1ebc75=a64_0x1ebc();let _0xe2cbd7=_0x1ebc75[_0xde4987];return _0xe2cbd7;}export const datasetExtendUpdate={'service':a64_0x2282f9(0xe9),'command':a64_0x2282f9(0xd5),'description':a64_0x2282f9(0xee),'risk':a64_0x2282f9(0xc8),'flags':[CODE_FLAG,{'name':a64_0x2282f9(0xbb),'type':a64_0x2282f9(0xd1),'required':!![],'description':'JSON\x20object\x20patch\x20for\x20dataset\x20top-level\x20extend;\x20current\x20allowlist\x20is\x20empty'},{'name':a64_0x2282f9(0xd4),'type':a64_0x2282f9(0xd1),'required':![],'description':a64_0x2282f9(0xbd)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3c8e95){validateInput(readExtendUpdateInput(_0x3c8e95));},async 'dryRun'(_0x2481eb){const _0x4f80be=a64_0x2282f9,_0x3d388a=await buildDatasetExtendUpdateResult({'appCode':_0x2481eb[_0x4f80be(0xce)],'input':readExtendUpdateInput(_0x2481eb),'dryRun':!![]});return{'method':_0x4f80be(0xe8),'url':_0x4f80be(0xb8),'body':_0x3d388a[_0x4f80be(0xd6)],'description':_0x3d388a[_0x4f80be(0xe7)]};},async 'execute'(_0x16d3c0){return buildDatasetExtendUpdateResult({'appCode':_0x16d3c0['appCode'],'input':readExtendUpdateInput(_0x16d3c0),'dryRun':![]});}};function readExtendUpdateInput(_0x43b435){const _0xe7770b=a64_0x2282f9,_0x130025=trim(_0x43b435[_0xe7770b(0xb4)](_0xe7770b(0xd0))),_0x3dd107=parseJsonObjectFlag(_0x43b435[_0xe7770b(0xb4)](_0xe7770b(0xbb)),_0xe7770b(0xc3)),_0xb5a550=parseJsonObjectFlag(_0x43b435[_0xe7770b(0xb4)](_0xe7770b(0xd4)),_0xe7770b(0xda));return{'code':_0x130025,'patch':_0x3dd107||{},'expect':_0xb5a550};}function validateInput(_0x20f260){const _0x334314=a64_0x2282f9;if(!_0x20f260['code'])throw CliErrors[_0x334314(0xb9)](_0x334314(0xb2));validateExtendPatchKeys(_0x20f260[_0x334314(0xca)]);}function parseDatasetExtend(_0x53b4c0){const _0x5f1026=a64_0x2282f9;if(typeof _0x53b4c0===_0x5f1026(0xd1)){const _0x28942b=_0x53b4c0[_0x5f1026(0xc7)]();if(!_0x28942b)return{'value':{},'shape':_0x5f1026(0xd1)};let _0x5e81a3;try{_0x5e81a3=JSON[_0x5f1026(0xb6)](_0x28942b);}catch(_0x4af229){const _0x2836df=_0x4af229 instanceof Error?_0x4af229[_0x5f1026(0xe7)]:String(_0x4af229);throw CliErrors['validation'](_0x5f1026(0xdb)+_0x2836df);}if(!isPlainObject(_0x5e81a3)||Array[_0x5f1026(0xf2)](_0x5e81a3))throw CliErrors[_0x5f1026(0xb9)](_0x5f1026(0xf0));return{'value':_0x5e81a3,'shape':_0x5f1026(0xd1)};}if(_0x53b4c0===undefined||_0x53b4c0===null)return{'value':{},'shape':_0x5f1026(0xd1)};if(!isPlainObject(_0x53b4c0)||Array[_0x5f1026(0xf2)](_0x53b4c0))throw CliErrors[_0x5f1026(0xb9)](_0x5f1026(0xf0));return{'value':_0x53b4c0,'shape':'object'};}function serializeDatasetExtend(_0x311fdb,_0x220ca9){const _0x196372=a64_0x2282f9;return _0x220ca9===_0x196372(0xd1)?JSON[_0x196372(0xed)](_0x311fdb):_0x311fdb;}function summarizeDataset(_0x592f4b,_0x7078c8){const _0xb83c6a=a64_0x2282f9,_0x5797ab=isPlainObject(_0x592f4b[_0xb83c6a(0xe9)])?_0x592f4b[_0xb83c6a(0xe9)]:{},_0x613e6=isPlainObject(_0x592f4b[_0xb83c6a(0xc1)])?_0x592f4b['dbtableConfig']:{};return{'id':_0x592f4b[_0xb83c6a(0xc2)]??_0x592f4b['id']??_0x5797ab[_0xb83c6a(0xb5)]??null,'code':_0x592f4b[_0xb83c6a(0xba)]??_0x592f4b[_0xb83c6a(0xd0)]??_0x5797ab['datasetCode']??_0x7078c8,'name':_0x592f4b['name']??_0x5797ab['datasetName']??null,'table':_0x613e6['tableName']??_0x5797ab[_0xb83c6a(0xe2)]??null,'db':_0x613e6['dbName']??_0x613e6['dbId']??null};}function deepClone(_0x462a92){const _0x35e453=a64_0x2282f9;if(_0x462a92===undefined)return _0x462a92;return JSON[_0x35e453(0xb6)](JSON[_0x35e453(0xed)](_0x462a92));}function deepEqual(_0x12da0b,_0x25f446){const _0x2dafdb=a64_0x2282f9;return JSON[_0x2dafdb(0xed)](_0x12da0b)===JSON[_0x2dafdb(0xed)](_0x25f446);}function isPlainObject(_0x13a1eb){const _0x11cd17=a64_0x2282f9;return Boolean(_0x13a1eb)&&typeof _0x13a1eb===_0x11cd17(0xc9)&&!Array[_0x11cd17(0xf2)](_0x13a1eb);}function trim(_0x48cc92){const _0x9cda3f=a64_0x2282f9,_0xc96a75=String(_0x48cc92||'')[_0x9cda3f(0xc7)]();return _0xc96a75;}
@@ -1 +1 @@
1
- function a65_0x121f(){const _0x3f9b12=['expect-json','field','datetimeFormat','\x20must\x20be\x20a\x20JSON\x20object','Expectation\x20mismatch\x20at\x20','Expected\x20','11720tmhsPP','datasetName','144beZFZv','field-update','--patch-json','properties','1196145fXiQhf','dbName','code','object','doType','Field\x20not\x20found:\x20','POST','expect','Patch\x20one\x20raw\x20dataset\x20fields[]\x20field\x20object\x20safely','--expect-json','dbId','datasetCode','3iFsDum','options','isArray','description','join','--patch-json\x20must\x20contain\x20at\x20least\x20one\x20key','parse','pkField','Allowed\x20keys:\x20','patch','required','data','name','Exact\x20raw\x20fields[].name\x20to\x20patch','stringify','/smartapi/dataset/update-driven-data','write','220380mGlmZP','14172XKyNHf','str','string','dbtableConfig','dbFieldName','\x20would\x20change\x20(','chartRole','autoIncrement','trim','--code\x20is\x20required','7578kxzypk','tableName','JSON\x20object\x20patch;\x20allowed\x20keys:\x20doType/displayName/description/options/required/datetimeFormat/defaultAggregation/chartRole/deprecated','fields','Forbidden\x20patch\x20key:\x20','keys','defaultAggregation','deprecated','No\x20changes\x20for\x20dataset\x20field\x20','size','patch-json','30312183MdbMVl','add','--field\x20is\x20required','entries','dataset','Updated\x20dataset\x20field\x20','sort','modelCode','JSON\x20object\x20of\x20expected\x20current\x20field\x20values;\x20mismatch\x20aborts\x20without\x20writing',',\x20actual\x20','datasetId','Driven\x20data\x20does\x20not\x20contain\x20fields[]\x20or\x20properties[]','validation','2949888XhQoLH','deleted','845554cMrTZv','appCode','has','message','259AShosn','from'];a65_0x121f=function(){return _0x3f9b12;};return a65_0x121f();}const a65_0x5e2fa3=a65_0x16c4;(function(_0x24b823,_0x57311b){const _0x2f3cf4=a65_0x16c4,_0x4e4334=_0x24b823();while(!![]){try{const _0x160ec9=-parseInt(_0x2f3cf4(0x1b8))/0x1*(parseInt(_0x2f3cf4(0x1ee))/0x2)+parseInt(_0x2f3cf4(0x1ac))/0x3+parseInt(_0x2f3cf4(0x1fc))/0x4*(-parseInt(_0x2f3cf4(0x1c9))/0x5)+-parseInt(_0x2f3cf4(0x1ca))/0x6*(parseInt(_0x2f3cf4(0x1f2))/0x7)+-parseInt(_0x2f3cf4(0x1ec))/0x8+parseInt(_0x2f3cf4(0x1d4))/0x9*(parseInt(_0x2f3cf4(0x1fa))/0xa)+parseInt(_0x2f3cf4(0x1df))/0xb;if(_0x160ec9===_0x57311b)break;else _0x4e4334['push'](_0x4e4334['shift']());}catch(_0xb5d818){_0x4e4334['push'](_0x4e4334['shift']());}}}(a65_0x121f,0xcaa2b));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([a65_0x5e2fa3(0x1b0),'displayName',a65_0x5e2fa3(0x1bb),a65_0x5e2fa3(0x1b9),a65_0x5e2fa3(0x1c2),a65_0x5e2fa3(0x1f6),a65_0x5e2fa3(0x1da),a65_0x5e2fa3(0x1d0),a65_0x5e2fa3(0x1db)]),FORBIDDEN_FIELD_KEYS=new Set(['id','name',a65_0x5e2fa3(0x1ae),'dbType','dbTypeLen','dbTypeScale',a65_0x5e2fa3(0x1ce),a65_0x5e2fa3(0x1d5),a65_0x5e2fa3(0x1ed),a65_0x5e2fa3(0x1bf),a65_0x5e2fa3(0x1d1),'systemRetain']);export function parseJsonObjectFlag(_0x37e80a,_0x57c14e){const _0x51fd3a=a65_0x5e2fa3;if(!_0x37e80a)return undefined;let _0x55515d;try{_0x55515d=JSON[_0x51fd3a(0x1be)](_0x37e80a);}catch(_0x3c6b20){const _0x2a127c=_0x3c6b20 instanceof Error?_0x3c6b20[_0x51fd3a(0x1f1)]:String(_0x3c6b20);throw CliErrors[_0x51fd3a(0x1eb)](_0x57c14e+'\x20must\x20be\x20valid\x20JSON\x20object:\x20'+_0x2a127c);}if(!isPlainObject(_0x55515d)||Array[_0x51fd3a(0x1ba)](_0x55515d))throw CliErrors[_0x51fd3a(0x1eb)](_0x57c14e+_0x51fd3a(0x1f7));return _0x55515d;}export function validatePatchKeys(_0x56112e){const _0x40b31b=a65_0x5e2fa3,_0x552ebe=Object[_0x40b31b(0x1d9)](_0x56112e);if(_0x552ebe['length']===0x0)throw CliErrors['validation'](_0x40b31b(0x1bd));for(const _0x4ae935 of _0x552ebe){if(FORBIDDEN_FIELD_KEYS[_0x40b31b(0x1f0)](_0x4ae935))throw CliErrors[_0x40b31b(0x1eb)](_0x40b31b(0x1d8)+_0x4ae935);if(!MUTABLE_FIELD_KEYS[_0x40b31b(0x1f0)](_0x4ae935))throw CliErrors['validation']('Unsupported\x20patch\x20key:\x20'+_0x4ae935,_0x40b31b(0x1c0)+Array[_0x40b31b(0x1f3)](MUTABLE_FIELD_KEYS)[_0x40b31b(0x1bc)](',\x20'));}}export function applyFieldPatch(_0x248c3a,_0x3ea911){const _0x1566e4=a65_0x5e2fa3;validatePatchKeys(_0x3ea911);const _0x4d58d9=deepClone(_0x248c3a),_0x571311=new Set();for(const [_0x5baf5c,_0x5253db]of Object[_0x1566e4(0x1e2)](_0x3ea911)){const _0x269eb3=_0x4d58d9[_0x5baf5c],_0x5c765e=mergePatchValue(_0x269eb3,_0x5253db);!deepEqual(_0x269eb3,_0x5c765e)&&(_0x4d58d9[_0x5baf5c]=_0x5c765e,_0x571311[_0x1566e4(0x1e0)](_0x5baf5c),collectChangedPaths(_0x5baf5c,_0x269eb3,_0x5c765e,_0x571311));}return{'after':_0x4d58d9,'changedPaths':Array[_0x1566e4(0x1f3)](_0x571311)[_0x1566e4(0x1e5)](),'changed':_0x571311[_0x1566e4(0x1dd)]>0x0};}export function assertExpectation(_0x42c9c3,_0x2bc489){const _0x392b02=a65_0x5e2fa3;if(!_0x2bc489)return;for(const [_0x2eef33,_0x4730d9]of Object['entries'](_0x2bc489)){const _0x56eea4=_0x42c9c3[_0x2eef33];if(!deepEqual(_0x56eea4,_0x4730d9))throw CliErrors['validation'](_0x392b02(0x1f8)+_0x2eef33,_0x392b02(0x1f9)+JSON[_0x392b02(0x1c6)](_0x4730d9)+_0x392b02(0x1e8)+JSON[_0x392b02(0x1c6)](_0x56eea4));}}export async function buildDatasetFieldUpdateResult({appCode:_0x1c7bd8,input:_0x5484f8,dryRun:_0x211242}){const _0x1d07fd=a65_0x5e2fa3;validateInput(_0x5484f8);const _0x1d3a10=await getDatasetDetail(_0x5484f8['code']),_0x3ccf2d=readFieldArray(_0x1d3a10),_0x3e80db=_0x3ccf2d['findIndex'](_0x40ccbb=>_0x40ccbb?.[_0x1d07fd(0x1c4)]===_0x5484f8[_0x1d07fd(0x1f5)]);if(_0x3e80db<0x0)throw CliErrors[_0x1d07fd(0x1eb)](_0x1d07fd(0x1b1)+_0x5484f8[_0x1d07fd(0x1f5)]);const _0x3f1f10=deepClone(_0x3ccf2d[_0x3e80db]);assertExpectation(_0x3f1f10,_0x5484f8[_0x1d07fd(0x1b3)]);const {after:_0x39f565,changedPaths:_0x1367f2,changed:_0x37232e}=applyFieldPatch(_0x3f1f10,_0x5484f8[_0x1d07fd(0x1c1)]),_0x54c9d3=summarizeDataset(_0x1d3a10,_0x5484f8[_0x1d07fd(0x1ae)]);return _0x37232e&&!_0x211242&&(_0x3ccf2d[_0x3e80db]=_0x39f565,await updateDrivenData(_0x1d3a10)),{'ok':!![],'data':{'appCode':_0x1c7bd8,'selector':{'code':_0x5484f8[_0x1d07fd(0x1ae)]},'dataset':_0x54c9d3,'field':{'id':_0x3f1f10['id']??null,'name':_0x3f1f10[_0x1d07fd(0x1c4)]},'dryRun':_0x211242,'changed':_0x37232e,'changedPaths':_0x1367f2,'before':_0x3f1f10,'after':_0x39f565,'submitted':_0x37232e&&!_0x211242},'message':_0x37232e?_0x211242?'Dry-run:\x20dataset\x20field\x20'+_0x5484f8['field']+_0x1d07fd(0x1cf)+_0x1367f2[_0x1d07fd(0x1bc)](',\x20')+')':_0x1d07fd(0x1e4)+_0x5484f8[_0x1d07fd(0x1f5)]+'\x20('+_0x1367f2[_0x1d07fd(0x1bc)](',\x20')+')':_0x1d07fd(0x1dc)+_0x5484f8[_0x1d07fd(0x1f5)]};}export const datasetFieldUpdate={'service':a65_0x5e2fa3(0x1e3),'command':a65_0x5e2fa3(0x1a9),'description':a65_0x5e2fa3(0x1b4),'risk':a65_0x5e2fa3(0x1c8),'flags':[CODE_FLAG,{'name':a65_0x5e2fa3(0x1f5),'type':a65_0x5e2fa3(0x1cc),'required':!![],'description':a65_0x5e2fa3(0x1c5)},{'name':a65_0x5e2fa3(0x1de),'type':a65_0x5e2fa3(0x1cc),'required':!![],'description':a65_0x5e2fa3(0x1d6)},{'name':a65_0x5e2fa3(0x1f4),'type':a65_0x5e2fa3(0x1cc),'required':![],'description':a65_0x5e2fa3(0x1e7)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x523fc3){validateInput(readFieldUpdateInput(_0x523fc3));},async 'dryRun'(_0x2e670a){const _0x47a7b6=a65_0x5e2fa3,_0x25fc93=await buildDatasetFieldUpdateResult({'appCode':_0x2e670a[_0x47a7b6(0x1ef)],'input':readFieldUpdateInput(_0x2e670a),'dryRun':!![]});return{'method':_0x47a7b6(0x1b2),'url':_0x47a7b6(0x1c7),'body':_0x25fc93[_0x47a7b6(0x1c3)],'description':_0x25fc93[_0x47a7b6(0x1f1)]};},async 'execute'(_0x548a77){const _0x42cf67=a65_0x5e2fa3;return buildDatasetFieldUpdateResult({'appCode':_0x548a77[_0x42cf67(0x1ef)],'input':readFieldUpdateInput(_0x548a77),'dryRun':![]});}};function readFieldUpdateInput(_0x51a459){const _0x5b8c9d=a65_0x5e2fa3,_0xf21b36=trim(_0x51a459[_0x5b8c9d(0x1cb)]('code')),_0x40941c=emptyToUndefined(_0x51a459[_0x5b8c9d(0x1cb)](_0x5b8c9d(0x1f5))),_0x425062=parseJsonObjectFlag(_0x51a459['str']('patch-json'),_0x5b8c9d(0x1aa)),_0x467fff=parseJsonObjectFlag(_0x51a459[_0x5b8c9d(0x1cb)](_0x5b8c9d(0x1f4)),_0x5b8c9d(0x1b5));return{'code':_0xf21b36,'field':_0x40941c||'','patch':_0x425062||{},'expect':_0x467fff};}function validateInput(_0xf7a190){const _0x45b97b=a65_0x5e2fa3;if(!_0xf7a190[_0x45b97b(0x1ae)])throw CliErrors[_0x45b97b(0x1eb)](_0x45b97b(0x1d3));if(!_0xf7a190['field'])throw CliErrors[_0x45b97b(0x1eb)](_0x45b97b(0x1e1));validatePatchKeys(_0xf7a190[_0x45b97b(0x1c1)]);}function a65_0x16c4(_0x13548b,_0xef8eca){_0x13548b=_0x13548b-0x1a9;const _0x121f6b=a65_0x121f();let _0x16c4eb=_0x121f6b[_0x13548b];return _0x16c4eb;}function readFieldArray(_0x3dda41){const _0x14b193=a65_0x5e2fa3;if(Array[_0x14b193(0x1ba)](_0x3dda41[_0x14b193(0x1d7)]))return _0x3dda41[_0x14b193(0x1d7)];if(Array[_0x14b193(0x1ba)](_0x3dda41[_0x14b193(0x1ab)]))return _0x3dda41['properties'];throw CliErrors[_0x14b193(0x1eb)](_0x14b193(0x1ea));}function summarizeDataset(_0x565796,_0x8df1e2){const _0x49b9b2=a65_0x5e2fa3,_0x4e1224=isPlainObject(_0x565796[_0x49b9b2(0x1e3)])?_0x565796['dataset']:{},_0x4d7f31=isPlainObject(_0x565796[_0x49b9b2(0x1cd)])?_0x565796[_0x49b9b2(0x1cd)]:{};return{'id':_0x565796['modelId']??_0x565796['id']??_0x4e1224[_0x49b9b2(0x1e9)]??null,'code':_0x565796[_0x49b9b2(0x1e6)]??_0x565796[_0x49b9b2(0x1ae)]??_0x4e1224[_0x49b9b2(0x1b7)]??_0x8df1e2,'name':_0x565796[_0x49b9b2(0x1c4)]??_0x4e1224[_0x49b9b2(0x1fb)]??null,'table':_0x4d7f31[_0x49b9b2(0x1d5)]??_0x4e1224['tableName']??null,'db':_0x4d7f31[_0x49b9b2(0x1ad)]??_0x4d7f31[_0x49b9b2(0x1b6)]??null};}function mergePatchValue(_0x33b693,_0x4c2cad){if(isPlainObject(_0x33b693)&&isPlainObject(_0x4c2cad))return deepMerge(_0x33b693,_0x4c2cad);return deepClone(_0x4c2cad);}function deepMerge(_0x4098e1,_0x85569b){const _0x1dcd9f=a65_0x5e2fa3,_0xa73535=deepClone(_0x4098e1);for(const [_0x5529c6,_0x2a2757]of Object[_0x1dcd9f(0x1e2)](_0x85569b)){_0xa73535[_0x5529c6]=isPlainObject(_0xa73535[_0x5529c6])&&isPlainObject(_0x2a2757)?deepMerge(_0xa73535[_0x5529c6],_0x2a2757):deepClone(_0x2a2757);}return _0xa73535;}function collectChangedPaths(_0x3e213e,_0xcc49c8,_0xa4ab5a,_0x5e18a3){const _0x2ee961=a65_0x5e2fa3;if(!isPlainObject(_0xcc49c8)||!isPlainObject(_0xa4ab5a))return;const _0x57646e=new Set([...Object[_0x2ee961(0x1d9)](_0xcc49c8),...Object['keys'](_0xa4ab5a)]);for(const _0x217eb3 of _0x57646e){const _0xff5946=_0xcc49c8[_0x217eb3],_0x4d619c=_0xa4ab5a[_0x217eb3];!deepEqual(_0xff5946,_0x4d619c)&&_0x5e18a3[_0x2ee961(0x1e0)](_0x3e213e+'.'+_0x217eb3);}}function deepClone(_0x4c9ad2){const _0x1bf71d=a65_0x5e2fa3;if(_0x4c9ad2===undefined)return _0x4c9ad2;return JSON['parse'](JSON[_0x1bf71d(0x1c6)](_0x4c9ad2));}function deepEqual(_0x414ee1,_0x361a00){const _0x2c9030=a65_0x5e2fa3;return JSON[_0x2c9030(0x1c6)](_0x414ee1)===JSON[_0x2c9030(0x1c6)](_0x361a00);}function isPlainObject(_0x259fef){const _0x476b9c=a65_0x5e2fa3;return Boolean(_0x259fef)&&typeof _0x259fef===_0x476b9c(0x1af)&&!Array[_0x476b9c(0x1ba)](_0x259fef);}function emptyToUndefined(_0x506fc7){const _0x4fefaf=a65_0x5e2fa3,_0x4c3765=String(_0x506fc7||'')[_0x4fefaf(0x1d2)]();return _0x4c3765||undefined;}function trim(_0x3aae40){const _0x14322d=a65_0x5e2fa3;return String(_0x3aae40||'')[_0x14322d(0x1d2)]();}
1
+ function a65_0x23fd(){const _0x53ccce=['Expectation\x20mismatch\x20at\x20','isArray','\x20would\x20change\x20(','data','116695luWoQz','keys','expect-json','/smartapi/dataset/update-driven-data','3833648raNYaj','sort','from','code','8596521GQedJL','datasetCode','datasetName','tableName','JSON\x20object\x20of\x20expected\x20current\x20field\x20values;\x20mismatch\x20aborts\x20without\x20writing','Field\x20not\x20found:\x20','Patch\x20one\x20raw\x20dataset\x20fields[]\x20field\x20object\x20safely','properties','displayName','string','message','dbTypeScale','defaultAggregation','Allowed\x20keys:\x20','--expect-json','expect','trim','appCode','chartRole','dbTypeLen','field-update','dbFieldName','stringify','add','has','name','required','entries','datasetId','pkField','dbType','description','869536BtAzuB','write','autoIncrement','datetimeFormat','Driven\x20data\x20does\x20not\x20contain\x20fields[]\x20or\x20properties[]','field','modelCode','findIndex','536160VzmrkY','dbName','1572erMUkj','str','Forbidden\x20patch\x20key:\x20','patch','Unsupported\x20patch\x20key:\x20','--patch-json\x20must\x20contain\x20at\x20least\x20one\x20key','\x20must\x20be\x20valid\x20JSON\x20object:\x20','join','4YvKuux','size','doType','Expected\x20','5537VBwQvk','options','validation','patch-json','systemRetain','--code\x20is\x20required','fields','No\x20changes\x20for\x20dataset\x20field\x20','parse','693470ycgPFB','deprecated','dataset','dbtableConfig','JSON\x20object\x20patch;\x20allowed\x20keys:\x20doType/displayName/description/options/required/datetimeFormat/defaultAggregation/chartRole/deprecated','POST','--field\x20is\x20required'];a65_0x23fd=function(){return _0x53ccce;};return a65_0x23fd();}function a65_0x1af6(_0x735a53,_0x5c7af0){_0x735a53=_0x735a53-0xfd;const _0x23fd50=a65_0x23fd();let _0x1af690=_0x23fd50[_0x735a53];return _0x1af690;}const a65_0x3a8fc2=a65_0x1af6;(function(_0x8573f8,_0x4a4205){const _0x5dac16=a65_0x1af6,_0x2668d7=_0x8573f8();while(!![]){try{const _0xc2c928=-parseInt(_0x5dac16(0x13a))/0x1+parseInt(_0x5dac16(0x122))/0x2*(-parseInt(_0x5dac16(0x118))/0x3)+parseInt(_0x5dac16(0x110))/0x4+-parseInt(_0x5dac16(0x12f))/0x5+-parseInt(_0x5dac16(0x11a))/0x6*(-parseInt(_0x5dac16(0x126))/0x7)+-parseInt(_0x5dac16(0x13e))/0x8+parseInt(_0x5dac16(0x142))/0x9;if(_0xc2c928===_0x4a4205)break;else _0x2668d7['push'](_0x2668d7['shift']());}catch(_0x4ace0b){_0x2668d7['push'](_0x2668d7['shift']());}}}(a65_0x23fd,0x46410));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([a65_0x3a8fc2(0x124),a65_0x3a8fc2(0x14a),a65_0x3a8fc2(0x10f),a65_0x3a8fc2(0x127),a65_0x3a8fc2(0x10a),a65_0x3a8fc2(0x113),a65_0x3a8fc2(0x14e),a65_0x3a8fc2(0x102),a65_0x3a8fc2(0x130)]),FORBIDDEN_FIELD_KEYS=new Set(['id','name',a65_0x3a8fc2(0x141),a65_0x3a8fc2(0x10e),a65_0x3a8fc2(0x103),a65_0x3a8fc2(0x14d),a65_0x3a8fc2(0x105),a65_0x3a8fc2(0x145),'deleted',a65_0x3a8fc2(0x10d),a65_0x3a8fc2(0x112),a65_0x3a8fc2(0x12a)]);export function parseJsonObjectFlag(_0x4edfa9,_0x401bf4){const _0x5a8444=a65_0x3a8fc2;if(!_0x4edfa9)return undefined;let _0xe96e48;try{_0xe96e48=JSON[_0x5a8444(0x12e)](_0x4edfa9);}catch(_0x54161e){const _0x1f3b54=_0x54161e instanceof Error?_0x54161e[_0x5a8444(0x14c)]:String(_0x54161e);throw CliErrors[_0x5a8444(0x128)](_0x401bf4+_0x5a8444(0x120)+_0x1f3b54);}if(!isPlainObject(_0xe96e48)||Array[_0x5a8444(0x137)](_0xe96e48))throw CliErrors[_0x5a8444(0x128)](_0x401bf4+'\x20must\x20be\x20a\x20JSON\x20object');return _0xe96e48;}export function validatePatchKeys(_0x42969a){const _0x3f251c=a65_0x3a8fc2,_0x4393fe=Object[_0x3f251c(0x13b)](_0x42969a);if(_0x4393fe['length']===0x0)throw CliErrors['validation'](_0x3f251c(0x11f));for(const _0x26554d of _0x4393fe){if(FORBIDDEN_FIELD_KEYS['has'](_0x26554d))throw CliErrors['validation'](_0x3f251c(0x11c)+_0x26554d);if(!MUTABLE_FIELD_KEYS[_0x3f251c(0x108)](_0x26554d))throw CliErrors[_0x3f251c(0x128)](_0x3f251c(0x11e)+_0x26554d,_0x3f251c(0xfd)+Array[_0x3f251c(0x140)](MUTABLE_FIELD_KEYS)[_0x3f251c(0x121)](',\x20'));}}export function applyFieldPatch(_0x58ed2a,_0x2c6542){const _0x5eee0b=a65_0x3a8fc2;validatePatchKeys(_0x2c6542);const _0x11633d=deepClone(_0x58ed2a),_0x36d78a=new Set();for(const [_0x363739,_0x293478]of Object[_0x5eee0b(0x10b)](_0x2c6542)){const _0x5b12b9=_0x11633d[_0x363739],_0x11defe=mergePatchValue(_0x5b12b9,_0x293478);!deepEqual(_0x5b12b9,_0x11defe)&&(_0x11633d[_0x363739]=_0x11defe,_0x36d78a[_0x5eee0b(0x107)](_0x363739),collectChangedPaths(_0x363739,_0x5b12b9,_0x11defe,_0x36d78a));}return{'after':_0x11633d,'changedPaths':Array[_0x5eee0b(0x140)](_0x36d78a)[_0x5eee0b(0x13f)](),'changed':_0x36d78a[_0x5eee0b(0x123)]>0x0};}export function assertExpectation(_0x1e0dd5,_0x1f511b){const _0x3dce80=a65_0x3a8fc2;if(!_0x1f511b)return;for(const [_0xc5005a,_0x41ad75]of Object[_0x3dce80(0x10b)](_0x1f511b)){const _0x2cdfb1=_0x1e0dd5[_0xc5005a];if(!deepEqual(_0x2cdfb1,_0x41ad75))throw CliErrors[_0x3dce80(0x128)](_0x3dce80(0x136)+_0xc5005a,_0x3dce80(0x125)+JSON[_0x3dce80(0x106)](_0x41ad75)+',\x20actual\x20'+JSON[_0x3dce80(0x106)](_0x2cdfb1));}}export async function buildDatasetFieldUpdateResult({appCode:_0x4111a6,input:_0x2f2213,dryRun:_0x28cad6}){const _0x28ddef=a65_0x3a8fc2;validateInput(_0x2f2213);const _0x23123c=await getDatasetDetail(_0x2f2213[_0x28ddef(0x141)]),_0x25f1e3=readFieldArray(_0x23123c),_0x44680c=_0x25f1e3[_0x28ddef(0x117)](_0x1acf9f=>_0x1acf9f?.['name']===_0x2f2213[_0x28ddef(0x115)]);if(_0x44680c<0x0)throw CliErrors[_0x28ddef(0x128)](_0x28ddef(0x147)+_0x2f2213[_0x28ddef(0x115)]);const _0x4d2adb=deepClone(_0x25f1e3[_0x44680c]);assertExpectation(_0x4d2adb,_0x2f2213[_0x28ddef(0xff)]);const {after:_0x58734f,changedPaths:_0x196e5a,changed:_0x556b6d}=applyFieldPatch(_0x4d2adb,_0x2f2213[_0x28ddef(0x11d)]),_0x24e834=summarizeDataset(_0x23123c,_0x2f2213[_0x28ddef(0x141)]);return _0x556b6d&&!_0x28cad6&&(_0x25f1e3[_0x44680c]=_0x58734f,await updateDrivenData(_0x23123c)),{'ok':!![],'data':{'appCode':_0x4111a6,'selector':{'code':_0x2f2213[_0x28ddef(0x141)]},'dataset':_0x24e834,'field':{'id':_0x4d2adb['id']??null,'name':_0x4d2adb[_0x28ddef(0x109)]},'dryRun':_0x28cad6,'changed':_0x556b6d,'changedPaths':_0x196e5a,'before':_0x4d2adb,'after':_0x58734f,'submitted':_0x556b6d&&!_0x28cad6},'message':_0x556b6d?_0x28cad6?'Dry-run:\x20dataset\x20field\x20'+_0x2f2213['field']+_0x28ddef(0x138)+_0x196e5a['join'](',\x20')+')':'Updated\x20dataset\x20field\x20'+_0x2f2213[_0x28ddef(0x115)]+'\x20('+_0x196e5a[_0x28ddef(0x121)](',\x20')+')':_0x28ddef(0x12d)+_0x2f2213[_0x28ddef(0x115)]};}export const datasetFieldUpdate={'service':a65_0x3a8fc2(0x131),'command':a65_0x3a8fc2(0x104),'description':a65_0x3a8fc2(0x148),'risk':a65_0x3a8fc2(0x111),'flags':[CODE_FLAG,{'name':'field','type':a65_0x3a8fc2(0x14b),'required':!![],'description':'Exact\x20raw\x20fields[].name\x20to\x20patch'},{'name':a65_0x3a8fc2(0x129),'type':a65_0x3a8fc2(0x14b),'required':!![],'description':a65_0x3a8fc2(0x133)},{'name':a65_0x3a8fc2(0x13c),'type':a65_0x3a8fc2(0x14b),'required':![],'description':a65_0x3a8fc2(0x146)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x58748b){validateInput(readFieldUpdateInput(_0x58748b));},async 'dryRun'(_0x56aea1){const _0x37daa6=a65_0x3a8fc2,_0x4f9791=await buildDatasetFieldUpdateResult({'appCode':_0x56aea1[_0x37daa6(0x101)],'input':readFieldUpdateInput(_0x56aea1),'dryRun':!![]});return{'method':_0x37daa6(0x134),'url':_0x37daa6(0x13d),'body':_0x4f9791[_0x37daa6(0x139)],'description':_0x4f9791[_0x37daa6(0x14c)]};},async 'execute'(_0x55f9da){return buildDatasetFieldUpdateResult({'appCode':_0x55f9da['appCode'],'input':readFieldUpdateInput(_0x55f9da),'dryRun':![]});}};function readFieldUpdateInput(_0x24aad7){const _0x4d1f36=a65_0x3a8fc2,_0x348868=trim(_0x24aad7[_0x4d1f36(0x11b)](_0x4d1f36(0x141))),_0xc5d2a8=emptyToUndefined(_0x24aad7['str'](_0x4d1f36(0x115))),_0x533267=parseJsonObjectFlag(_0x24aad7[_0x4d1f36(0x11b)](_0x4d1f36(0x129)),'--patch-json'),_0x122c53=parseJsonObjectFlag(_0x24aad7['str'](_0x4d1f36(0x13c)),_0x4d1f36(0xfe));return{'code':_0x348868,'field':_0xc5d2a8||'','patch':_0x533267||{},'expect':_0x122c53};}function validateInput(_0x2a6546){const _0x42bbd6=a65_0x3a8fc2;if(!_0x2a6546['code'])throw CliErrors[_0x42bbd6(0x128)](_0x42bbd6(0x12b));if(!_0x2a6546[_0x42bbd6(0x115)])throw CliErrors['validation'](_0x42bbd6(0x135));validatePatchKeys(_0x2a6546[_0x42bbd6(0x11d)]);}function readFieldArray(_0x24a8b4){const _0x4f536d=a65_0x3a8fc2;if(Array[_0x4f536d(0x137)](_0x24a8b4[_0x4f536d(0x12c)]))return _0x24a8b4[_0x4f536d(0x12c)];if(Array[_0x4f536d(0x137)](_0x24a8b4['properties']))return _0x24a8b4[_0x4f536d(0x149)];throw CliErrors[_0x4f536d(0x128)](_0x4f536d(0x114));}function summarizeDataset(_0x8efe0,_0x271a6e){const _0x2be37c=a65_0x3a8fc2,_0x169d78=isPlainObject(_0x8efe0[_0x2be37c(0x131)])?_0x8efe0[_0x2be37c(0x131)]:{},_0x4d7e05=isPlainObject(_0x8efe0[_0x2be37c(0x132)])?_0x8efe0[_0x2be37c(0x132)]:{};return{'id':_0x8efe0['modelId']??_0x8efe0['id']??_0x169d78[_0x2be37c(0x10c)]??null,'code':_0x8efe0[_0x2be37c(0x116)]??_0x8efe0[_0x2be37c(0x141)]??_0x169d78[_0x2be37c(0x143)]??_0x271a6e,'name':_0x8efe0[_0x2be37c(0x109)]??_0x169d78[_0x2be37c(0x144)]??null,'table':_0x4d7e05[_0x2be37c(0x145)]??_0x169d78[_0x2be37c(0x145)]??null,'db':_0x4d7e05[_0x2be37c(0x119)]??_0x4d7e05['dbId']??null};}function mergePatchValue(_0x34a9bf,_0xd09914){if(isPlainObject(_0x34a9bf)&&isPlainObject(_0xd09914))return deepMerge(_0x34a9bf,_0xd09914);return deepClone(_0xd09914);}function deepMerge(_0x6bb1c1,_0xf0fc3){const _0x876753=deepClone(_0x6bb1c1);for(const [_0x4f0aa4,_0x13575c]of Object['entries'](_0xf0fc3)){_0x876753[_0x4f0aa4]=isPlainObject(_0x876753[_0x4f0aa4])&&isPlainObject(_0x13575c)?deepMerge(_0x876753[_0x4f0aa4],_0x13575c):deepClone(_0x13575c);}return _0x876753;}function collectChangedPaths(_0x389e78,_0x537cac,_0x1b4882,_0x8ee87){const _0x3377b8=a65_0x3a8fc2;if(!isPlainObject(_0x537cac)||!isPlainObject(_0x1b4882))return;const _0x38af53=new Set([...Object['keys'](_0x537cac),...Object[_0x3377b8(0x13b)](_0x1b4882)]);for(const _0x5c1051 of _0x38af53){const _0x46136e=_0x537cac[_0x5c1051],_0x415e34=_0x1b4882[_0x5c1051];!deepEqual(_0x46136e,_0x415e34)&&_0x8ee87[_0x3377b8(0x107)](_0x389e78+'.'+_0x5c1051);}}function deepClone(_0x54a954){const _0x4b5d3d=a65_0x3a8fc2;if(_0x54a954===undefined)return _0x54a954;return JSON[_0x4b5d3d(0x12e)](JSON[_0x4b5d3d(0x106)](_0x54a954));}function deepEqual(_0x94b1a3,_0x154436){const _0x5a1dbf=a65_0x3a8fc2;return JSON[_0x5a1dbf(0x106)](_0x94b1a3)===JSON[_0x5a1dbf(0x106)](_0x154436);}function isPlainObject(_0x512c46){const _0x55a362=a65_0x3a8fc2;return Boolean(_0x512c46)&&typeof _0x512c46==='object'&&!Array[_0x55a362(0x137)](_0x512c46);}function emptyToUndefined(_0x547346){const _0xbf0674=a65_0x3a8fc2,_0x56bb3a=String(_0x547346||'')[_0xbf0674(0x100)]();return _0x56bb3a||undefined;}function trim(_0x5311b7){return String(_0x5311b7||'')['trim']();}