@lovrabet/rabetbase-cli 2.3.15-beta.2 → 2.3.16-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 (273) hide show
  1. package/README.md +7 -2
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/login-success-html.js +1 -1
  12. package/lib/auth/logout.js +1 -1
  13. package/lib/cli-flags.js +1 -1
  14. package/lib/cli.js +1 -1
  15. package/lib/commands/api/generate.js +1 -1
  16. package/lib/commands/api/index.js +1 -1
  17. package/lib/commands/api/list.js +1 -1
  18. package/lib/commands/api/pull.js +1 -1
  19. package/lib/commands/api/shared.js +1 -1
  20. package/lib/commands/app/add.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remote-directory.js +1 -1
  24. package/lib/commands/app/remove.js +1 -1
  25. package/lib/commands/app/shared.js +1 -1
  26. package/lib/commands/app-config/delete.js +1 -1
  27. package/lib/commands/app-config/get.js +1 -1
  28. package/lib/commands/app-config/index.js +1 -1
  29. package/lib/commands/app-config/list.js +1 -1
  30. package/lib/commands/app-config/set.js +1 -1
  31. package/lib/commands/app-config/shared.js +1 -1
  32. package/lib/commands/auth/index.js +1 -1
  33. package/lib/commands/bff/create.js +1 -1
  34. package/lib/commands/bff/delete.js +1 -1
  35. package/lib/commands/bff/detail.js +1 -1
  36. package/lib/commands/bff/index.js +1 -1
  37. package/lib/commands/bff/list.js +1 -1
  38. package/lib/commands/bff/pull.js +1 -1
  39. package/lib/commands/bff/push.js +1 -1
  40. package/lib/commands/bff/status.js +1 -1
  41. package/lib/commands/cli-skill/index.js +1 -1
  42. package/lib/commands/cli-update.js +1 -1
  43. package/lib/commands/codegen/index.js +1 -1
  44. package/lib/commands/codegen/sdk.js +1 -1
  45. package/lib/commands/codegen/sql.js +1 -1
  46. package/lib/commands/common/app-registry.js +1 -1
  47. package/lib/commands/common/app-selector.js +1 -1
  48. package/lib/commands/common/async-task.js +1 -1
  49. package/lib/commands/common/dry-run.js +1 -1
  50. package/lib/commands/common/flags.js +1 -1
  51. package/lib/commands/common/local-file.js +1 -1
  52. package/lib/commands/common/validate.js +1 -1
  53. package/lib/commands/config/get.js +1 -1
  54. package/lib/commands/config/index.js +1 -1
  55. package/lib/commands/config/list.js +1 -1
  56. package/lib/commands/config/set.js +1 -1
  57. package/lib/commands/config/shared.js +1 -1
  58. package/lib/commands/data/filter.js +1 -1
  59. package/lib/commands/data/getOne.js +1 -1
  60. package/lib/commands/data/index.js +1 -1
  61. package/lib/commands/data/shared.js +1 -1
  62. package/lib/commands/dataset/business-group-update.js +1 -1
  63. package/lib/commands/dataset/capability.js +1 -1
  64. package/lib/commands/dataset/delete.js +1 -1
  65. package/lib/commands/dataset/detail.js +1 -1
  66. package/lib/commands/dataset/extend-update.js +1 -1
  67. package/lib/commands/dataset/field-update.js +1 -1
  68. package/lib/commands/dataset/generate.js +1 -1
  69. package/lib/commands/dataset/index.js +1 -1
  70. package/lib/commands/dataset/list.js +1 -1
  71. package/lib/commands/dataset/operations.js +1 -1
  72. package/lib/commands/dataset/relation-audit.js +1 -1
  73. package/lib/commands/dataset/relation-create.js +1 -1
  74. package/lib/commands/dataset/relation-delete.js +1 -1
  75. package/lib/commands/dataset/relation-shared.js +1 -1
  76. package/lib/commands/dataset/relation-update.js +1 -1
  77. package/lib/commands/dataset/relations.js +1 -1
  78. package/lib/commands/dataset/rename.js +1 -1
  79. package/lib/commands/dataset/restore.js +1 -1
  80. package/lib/commands/db/analysis-batching.js +1 -1
  81. package/lib/commands/db/analyze-batch-plan.js +1 -1
  82. package/lib/commands/db/analyze-cancel.js +1 -1
  83. package/lib/commands/db/analyze-start.js +1 -1
  84. package/lib/commands/db/analyze-status.js +1 -1
  85. package/lib/commands/db/create.js +1 -1
  86. package/lib/commands/db/delete.js +1 -1
  87. package/lib/commands/db/detail.js +1 -1
  88. package/lib/commands/db/diff.js +1 -1
  89. package/lib/commands/db/index.js +1 -1
  90. package/lib/commands/db/list.js +1 -1
  91. package/lib/commands/db/shared.js +1 -1
  92. package/lib/commands/db/tables.js +1 -1
  93. package/lib/commands/db/test.js +1 -1
  94. package/lib/commands/db/update.js +1 -1
  95. package/lib/commands/doctor.js +1 -1
  96. package/lib/commands/file/index.js +1 -1
  97. package/lib/commands/init/index.js +1 -1
  98. package/lib/commands/issue/index.js +1 -1
  99. package/lib/commands/issue/nudge.js +1 -1
  100. package/lib/commands/issue/report.js +1 -1
  101. package/lib/commands/issue/shared.js +1 -1
  102. package/lib/commands/kb/create.js +1 -0
  103. package/lib/commands/kb/delete.js +1 -0
  104. package/lib/commands/kb/detail.js +1 -0
  105. package/lib/commands/kb/index.js +1 -0
  106. package/lib/commands/kb/list.js +1 -0
  107. package/lib/commands/kb/shared.js +1 -0
  108. package/lib/commands/kb/update.js +1 -0
  109. package/lib/commands/logs/index.js +1 -1
  110. package/lib/commands/menu/asset-update.js +1 -1
  111. package/lib/commands/menu/delete.js +1 -1
  112. package/lib/commands/menu/external-link-create.js +1 -1
  113. package/lib/commands/menu/external-link-update.js +1 -1
  114. package/lib/commands/menu/group-create.js +1 -1
  115. package/lib/commands/menu/group-update.js +1 -1
  116. package/lib/commands/menu/index.js +1 -1
  117. package/lib/commands/menu/list.js +1 -1
  118. package/lib/commands/menu/move.js +1 -1
  119. package/lib/commands/menu/regroup-start.js +1 -1
  120. package/lib/commands/menu/rename.js +1 -1
  121. package/lib/commands/menu/shared/compare-table.js +1 -1
  122. package/lib/commands/menu/shared/delete-plan.js +1 -1
  123. package/lib/commands/menu/shared/facts.js +1 -1
  124. package/lib/commands/menu/shared/index.js +1 -1
  125. package/lib/commands/menu/shared/inquirer.js +1 -1
  126. package/lib/commands/menu/shared/local-pages.js +1 -1
  127. package/lib/commands/menu/shared/logic.js +1 -1
  128. package/lib/commands/menu/shared/mutations.js +1 -1
  129. package/lib/commands/menu/shared/service.js +1 -1
  130. package/lib/commands/menu/shared/sync-core.js +1 -1
  131. package/lib/commands/menu/shared/update-core.js +1 -1
  132. package/lib/commands/menu/shared/valid-url.js +1 -1
  133. package/lib/commands/menu/sync.js +1 -1
  134. package/lib/commands/notification/config-list.js +1 -1
  135. package/lib/commands/notification/index.js +1 -1
  136. package/lib/commands/ocr/index.js +1 -1
  137. package/lib/commands/page/generate-start.js +1 -1
  138. package/lib/commands/page/generate-status.js +1 -1
  139. package/lib/commands/page/index.js +1 -1
  140. package/lib/commands/page/pull.js +1 -1
  141. package/lib/commands/page/push.js +1 -1
  142. package/lib/commands/page/relation-audit.js +1 -1
  143. package/lib/commands/page/restore.js +1 -1
  144. package/lib/commands/page/shared.js +1 -1
  145. package/lib/commands/page/standard-page-status.js +1 -1
  146. package/lib/commands/page/sync.js +1 -1
  147. package/lib/commands/permit/index.js +1 -1
  148. package/lib/commands/permit/page-get.js +1 -1
  149. package/lib/commands/permit/page-set.js +1 -1
  150. package/lib/commands/permit/role-apis-set.js +1 -1
  151. package/lib/commands/permit/role-menus-set.js +1 -1
  152. package/lib/commands/permit/role-menus.js +1 -1
  153. package/lib/commands/permit/shared.js +1 -1
  154. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  155. package/lib/commands/project/create/format-elapsed.js +1 -1
  156. package/lib/commands/project/create/main.js +1 -1
  157. package/lib/commands/project/create/non-interactive.js +1 -1
  158. package/lib/commands/project/create/project-template-path.js +1 -1
  159. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  160. package/lib/commands/project/create/use-format-code.js +1 -1
  161. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  162. package/lib/commands/project/index.js +1 -1
  163. package/lib/commands/project/init.js +1 -1
  164. package/lib/commands/project/upgrade.js +1 -1
  165. package/lib/commands/registry.js +1 -1
  166. package/lib/commands/role/create.js +1 -1
  167. package/lib/commands/role/delete.js +1 -1
  168. package/lib/commands/role/detail.js +1 -1
  169. package/lib/commands/role/index.js +1 -1
  170. package/lib/commands/role/list.js +1 -1
  171. package/lib/commands/role/shared.js +1 -1
  172. package/lib/commands/role/update.js +1 -1
  173. package/lib/commands/role/user-add.js +1 -1
  174. package/lib/commands/role/user-remove.js +1 -1
  175. package/lib/commands/role/user-resolve.js +1 -1
  176. package/lib/commands/run/index.js +1 -1
  177. package/lib/commands/schema.js +1 -1
  178. package/lib/commands/sql/create.js +1 -1
  179. package/lib/commands/sql/delete.js +1 -1
  180. package/lib/commands/sql/detail.js +1 -1
  181. package/lib/commands/sql/exec.js +1 -1
  182. package/lib/commands/sql/index.js +1 -1
  183. package/lib/commands/sql/list.js +1 -1
  184. package/lib/commands/sql/pull.js +1 -1
  185. package/lib/commands/sql/push.js +1 -1
  186. package/lib/commands/sql/save.js +1 -1
  187. package/lib/commands/sql/shared.js +1 -1
  188. package/lib/commands/sql/status.js +1 -1
  189. package/lib/commands/sql/validate.js +1 -1
  190. package/lib/commands/task/index.js +1 -1
  191. package/lib/commands/task/status.js +1 -1
  192. package/lib/commands/workspace/add.js +1 -1
  193. package/lib/commands/workspace/index.js +1 -1
  194. package/lib/commands/workspace/remove.js +1 -1
  195. package/lib/config/schema.js +1 -1
  196. package/lib/constant/cdn.js +1 -1
  197. package/lib/constant/cli.js +1 -1
  198. package/lib/constant/defaults.js +1 -1
  199. package/lib/constant/domain.js +1 -1
  200. package/lib/constant/env.js +1 -1
  201. package/lib/constant/output.js +1 -1
  202. package/lib/constant/paths.js +1 -1
  203. package/lib/constant/risk.js +1 -1
  204. package/lib/context/app-resolver.js +1 -1
  205. package/lib/context/auth-resolver.js +1 -1
  206. package/lib/context/config-loader.js +1 -1
  207. package/lib/context.js +1 -1
  208. package/lib/core/alias-resolver.js +1 -1
  209. package/lib/core/api-client.js +1 -1
  210. package/lib/core/bff/config.js +1 -1
  211. package/lib/core/bff/file-system.js +1 -1
  212. package/lib/core/bff/hash.js +1 -1
  213. package/lib/core/bff/lock.js +1 -1
  214. package/lib/core/bff/utils.js +1 -1
  215. package/lib/core/db-resolver.js +1 -1
  216. package/lib/core/page/file-system.js +1 -1
  217. package/lib/core/page/hash.js +1 -1
  218. package/lib/core/page/lock.js +1 -1
  219. package/lib/core/sql-index-auditor.js +1 -1
  220. package/lib/core/sql-sync/config.js +1 -1
  221. package/lib/core/sql-sync/file-system.js +1 -1
  222. package/lib/core/sql-sync/hash.js +1 -1
  223. package/lib/core/sql-sync/lock.js +1 -1
  224. package/lib/core/sql-sync/utils.js +1 -1
  225. package/lib/core/sql-validator.js +1 -1
  226. package/lib/errors.js +1 -1
  227. package/lib/framework/build-all-flags.js +1 -1
  228. package/lib/framework/error-output.js +1 -1
  229. package/lib/framework/explicit-yes.js +1 -1
  230. package/lib/framework/flags.js +1 -1
  231. package/lib/framework/help.js +1 -1
  232. package/lib/framework/index.js +1 -1
  233. package/lib/framework/output.js +1 -1
  234. package/lib/framework/response.js +1 -1
  235. package/lib/framework/runner-alias.js +1 -1
  236. package/lib/framework/runner.js +1 -1
  237. package/lib/framework/schema-export.js +1 -1
  238. package/lib/framework/types.js +1 -1
  239. package/lib/generated/build-info.js +1 -1
  240. package/lib/help.js +1 -1
  241. package/lib/skills/main.js +1 -1
  242. package/lib/skills/npx-skills-add.js +1 -1
  243. package/lib/skills/skill-presence.js +1 -0
  244. package/lib/telemetry/cli-command-trace.js +1 -1
  245. package/lib/telemetry/cli-help-trace.js +1 -1
  246. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  247. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  248. package/lib/telemetry/send-cli-trace-log.js +1 -1
  249. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  250. package/lib/utils/ai_config.js +1 -1
  251. package/lib/utils/apply-jq-filter.js +1 -1
  252. package/lib/utils/cdn-config.js +1 -1
  253. package/lib/utils/check-sdk-version.js +1 -1
  254. package/lib/utils/cli-version-check.js +1 -1
  255. package/lib/utils/cli-version-policy.js +1 -1
  256. package/lib/utils/config.js +1 -1
  257. package/lib/utils/copy-directory.js +1 -1
  258. package/lib/utils/entity-with-id.js +1 -1
  259. package/lib/utils/file-utils.js +1 -1
  260. package/lib/utils/guides-cdn.js +1 -1
  261. package/lib/utils/http-client.js +1 -1
  262. package/lib/utils/is-non-interactive.js +1 -1
  263. package/lib/utils/logger.js +1 -1
  264. package/lib/utils/params.js +1 -1
  265. package/lib/utils/platform.js +1 -1
  266. package/lib/utils/rules-cdn.js +1 -1
  267. package/lib/utils/sleep.js +1 -1
  268. package/lib/utils/template-replacer.js +1 -1
  269. package/lib/utils/update-notice.js +1 -1
  270. package/lib/utils/version.js +1 -1
  271. package/lib/utils/with-active-cookie.js +1 -1
  272. package/lib/utils/write-cli-side-channel.js +1 -1
  273. package/package.json +1 -1
@@ -1 +1 @@
1
- const a51_0x27c498=a51_0x295f;(function(_0x5004e7,_0x19deba){const _0x1e5d10=a51_0x295f,_0x506cb7=_0x5004e7();while(!![]){try{const _0x3e413a=-parseInt(_0x1e5d10(0xcd))/0x1*(-parseInt(_0x1e5d10(0xca))/0x2)+-parseInt(_0x1e5d10(0xcc))/0x3*(parseInt(_0x1e5d10(0xc6))/0x4)+parseInt(_0x1e5d10(0xd4))/0x5*(-parseInt(_0x1e5d10(0xc4))/0x6)+parseInt(_0x1e5d10(0xc2))/0x7+-parseInt(_0x1e5d10(0xd5))/0x8+-parseInt(_0x1e5d10(0xd1))/0x9+parseInt(_0x1e5d10(0xce))/0xa;if(_0x3e413a===_0x19deba)break;else _0x506cb7['push'](_0x506cb7['shift']());}catch(_0x1431b5){_0x506cb7['push'](_0x506cb7['shift']());}}}(a51_0x57b3,0x6996b));import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';function a51_0x295f(_0x3847a0,_0x442425){_0x3847a0=_0x3847a0-0xc1;const _0x57b317=a51_0x57b3();let _0x295ff8=_0x57b317[_0x3847a0];return _0x295ff8;}import{CLI_BIN_NAME}from'../../constant/cli.js';function a51_0x57b3(){const _0x5a42b2=['validation','6lZUjhg','appcode','3IntWwx','7591dMxVrI','10546360KmQbqu','Usage:\x20','Key\x20not\x20found:\x20','1769814vdgnxD','get','str','124435fpkNay','6033440VNyKaQ','key','4543882wYfrbU','app','66ySEKzf','\x20config\x20get\x20--key\x20<key>','277844KmfVOb','object','Get\x20a\x20config\x20value\x20by\x20key'];a51_0x57b3=function(){return _0x5a42b2;};return a51_0x57b3();}import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0xc5f907){const _0x31bbcc=a51_0x295f,_0x2cb0d2=_0xc5f907[_0x31bbcc(0xd3)]('key');if(!_0x2cb0d2)throw CliErrors[_0x31bbcc(0xc9)]('Missing\x20key.',_0x31bbcc(0xcf)+CLI_BIN_NAME+_0x31bbcc(0xc5));const _0x21d708=readConfig(),_0x57c353=_0x2cb0d2===_0x31bbcc(0xc3)?_0x31bbcc(0xcb):_0x2cb0d2,_0x3f0e22=_0x21d708[_0x57c353];if(_0x3f0e22===undefined)throw CliErrors[_0x31bbcc(0xc9)](_0x31bbcc(0xd0)+_0x2cb0d2);return{'ok':!![],'data':typeof _0x3f0e22===_0x31bbcc(0xc7)?_0x3f0e22:{[_0x57c353]:_0x3f0e22},'message':typeof _0x3f0e22===_0x31bbcc(0xc7)?undefined:String(_0x3f0e22)};}export const configGetDefinition={'service':'config','command':a51_0x27c498(0xd2),'description':a51_0x27c498(0xc8),'risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a51_0x27c498(0xc1),'type':'string','description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
1
+ const a51_0x369f18=a51_0x378a;function a51_0x378a(_0x50f551,_0x15d57b){_0x50f551=_0x50f551-0xa5;const _0x1c5098=a51_0x1c50();let _0x378af9=_0x1c5098[_0x50f551];return _0x378af9;}(function(_0x55960f,_0x1686d9){const _0x4b1e86=a51_0x378a,_0x33f1b2=_0x55960f();while(!![]){try{const _0x3086f4=-parseInt(_0x4b1e86(0xb3))/0x1+parseInt(_0x4b1e86(0xb5))/0x2*(parseInt(_0x4b1e86(0xb2))/0x3)+-parseInt(_0x4b1e86(0xbb))/0x4*(-parseInt(_0x4b1e86(0xb8))/0x5)+parseInt(_0x4b1e86(0xba))/0x6+-parseInt(_0x4b1e86(0xb4))/0x7*(-parseInt(_0x4b1e86(0xb9))/0x8)+-parseInt(_0x4b1e86(0xa5))/0x9*(-parseInt(_0x4b1e86(0xa7))/0xa)+-parseInt(_0x4b1e86(0xaa))/0xb*(parseInt(_0x4b1e86(0xad))/0xc);if(_0x3086f4===_0x1686d9)break;else _0x33f1b2['push'](_0x33f1b2['shift']());}catch(_0x46748c){_0x33f1b2['push'](_0x33f1b2['shift']());}}}(a51_0x1c50,0xaad58));import{CliErrors}from'../../errors.js';function a51_0x1c50(){const _0x4a1741=['string','key','6OapSRA','1227140HKMDtH','5215IamrXp','1088898dYkNBI','Missing\x20key.','Get\x20a\x20config\x20value\x20by\x20key','93230BAzRyF','11504cqXHMo','269904MQsWit','8vuFvsx','\x20config\x20get\x20--key\x20<key>','2709fbpDdG','Usage:\x20','12550qDNBuK','str','object','231121kQBWgQ','Key\x20not\x20found:\x20','app','396JsKfoY','get','appcode'];a51_0x1c50=function(){return _0x4a1741;};return a51_0x1c50();}import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0x3c9a5e){const _0x4ae367=a51_0x378a,_0x3d19b3=_0x3c9a5e[_0x4ae367(0xa8)](_0x4ae367(0xb1));if(!_0x3d19b3)throw CliErrors['validation'](_0x4ae367(0xb6),_0x4ae367(0xa6)+CLI_BIN_NAME+_0x4ae367(0xbc));const _0x5b4764=readConfig(),_0x19e98e=_0x3d19b3===_0x4ae367(0xac)?_0x4ae367(0xaf):_0x3d19b3,_0x1270c2=_0x5b4764[_0x19e98e];if(_0x1270c2===undefined)throw CliErrors['validation'](_0x4ae367(0xab)+_0x3d19b3);return{'ok':!![],'data':typeof _0x1270c2===_0x4ae367(0xa9)?_0x1270c2:{[_0x19e98e]:_0x1270c2},'message':typeof _0x1270c2===_0x4ae367(0xa9)?undefined:String(_0x1270c2)};}export const configGetDefinition={'service':'config','command':a51_0x369f18(0xae),'description':a51_0x369f18(0xb7),'risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a51_0x369f18(0xb1),'type':a51_0x369f18(0xb0),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
@@ -1 +1 @@
1
- (function(_0x216236,_0x33b234){const _0x18af6c=a52_0xb726,_0x8c6640=_0x216236();while(!![]){try{const _0x544a7e=-parseInt(_0x18af6c(0xa4))/0x1*(-parseInt(_0x18af6c(0x9d))/0x2)+-parseInt(_0x18af6c(0xa5))/0x3+parseInt(_0x18af6c(0xa2))/0x4+parseInt(_0x18af6c(0xa0))/0x5+parseInt(_0x18af6c(0xa3))/0x6+-parseInt(_0x18af6c(0x9f))/0x7*(-parseInt(_0x18af6c(0xa1))/0x8)+-parseInt(_0x18af6c(0x9e))/0x9;if(_0x544a7e===_0x33b234)break;else _0x8c6640['push'](_0x8c6640['shift']());}catch(_0x3d5e76){_0x8c6640['push'](_0x8c6640['shift']());}}}(a52_0x1694,0xcea30));import{configListDefinition}from'../../commands/config/list.js';function a52_0xb726(_0x1be321,_0x4ad68d){_0x1be321=_0x1be321-0x9d;const _0x169462=a52_0x1694();let _0xb72628=_0x169462[_0x1be321];return _0xb72628;}function a52_0x1694(){const _0xb13903=['5194868lWmwkn','737280WUJOSC','10iaurUJ','1831215diWpEY','230210dTpSAr','24154254mOodlm','35kCoVZe','7526065jGRVgy','100376pyGhpk'];a52_0x1694=function(){return _0xb13903;};return a52_0x1694();}import{configGetDefinition}from'../../commands/config/get.js';import{configSetDefinition}from'../../commands/config/set.js';export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
1
+ (function(_0x7f57b3,_0x1acdac){const _0x25c1d4=a52_0xc885,_0xc772fc=_0x7f57b3();while(!![]){try{const _0x167eaf=-parseInt(_0x25c1d4(0x188))/0x1+parseInt(_0x25c1d4(0x18a))/0x2+parseInt(_0x25c1d4(0x187))/0x3*(-parseInt(_0x25c1d4(0x18b))/0x4)+parseInt(_0x25c1d4(0x18e))/0x5*(-parseInt(_0x25c1d4(0x186))/0x6)+parseInt(_0x25c1d4(0x18d))/0x7+parseInt(_0x25c1d4(0x189))/0x8+parseInt(_0x25c1d4(0x18c))/0x9;if(_0x167eaf===_0x1acdac)break;else _0xc772fc['push'](_0xc772fc['shift']());}catch(_0x31a1e7){_0xc772fc['push'](_0xc772fc['shift']());}}}(a52_0xcd14,0x8ddff));function a52_0xc885(_0x184617,_0x4a10a8){_0x184617=_0x184617-0x186;const _0xcd14f8=a52_0xcd14();let _0xc885f2=_0xcd14f8[_0x184617];return _0xc885f2;}import{configListDefinition}from'../../commands/config/list.js';function a52_0xcd14(){const _0x5b439d=['7187736NdmXze','1350098dmspqj','20816cRWsSU','5334165FOUjLH','4471180qfhTXY','5CgOhRc','6541818jCEAHV','321xxCYPk','576691EVdXRz'];a52_0xcd14=function(){return _0x5b439d;};return a52_0xcd14();}import{configGetDefinition}from'../../commands/config/get.js';import{configSetDefinition}from'../../commands/config/set.js';export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
@@ -1 +1 @@
1
- function a53_0x11b1(_0xd2d9c5,_0x2749eb){_0xd2d9c5=_0xd2d9c5-0x145;const _0x47d6f9=a53_0x47d6();let _0x11b114=_0x47d6f9[_0xd2d9c5];return _0x11b114;}const a53_0x29b374=a53_0x11b1;(function(_0x5c94c9,_0x4ba225){const _0x34ebeb=a53_0x11b1,_0x441e88=_0x5c94c9();while(!![]){try{const _0x2f405a=-parseInt(_0x34ebeb(0x14d))/0x1+parseInt(_0x34ebeb(0x145))/0x2+-parseInt(_0x34ebeb(0x146))/0x3+parseInt(_0x34ebeb(0x151))/0x4*(parseInt(_0x34ebeb(0x14e))/0x5)+-parseInt(_0x34ebeb(0x148))/0x6*(-parseInt(_0x34ebeb(0x14c))/0x7)+-parseInt(_0x34ebeb(0x150))/0x8+parseInt(_0x34ebeb(0x14a))/0x9;if(_0x2f405a===_0x4ba225)break;else _0x441e88['push'](_0x441e88['shift']());}catch(_0x3069a7){_0x441e88['push'](_0x441e88['shift']());}}}(a53_0x47d6,0xa1720));function a53_0x47d6(){const _0x36912a=['boolean','1985158gobNAW','905847RMhYyK','config','270EJVhBf','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','7768872obzCke','List\x20all\x20config\x20values','23569cNmFEw','1087827Kvqkjw','1156115NJQcCT','list','1499752YGQqno','4chTODt','read','global'];a53_0x47d6=function(){return _0x36912a;};return a53_0x47d6();}import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0x59ff8b){const _0x23efb9=a53_0x11b1,_0x5da112=_0x59ff8b['bool'](_0x23efb9(0x153))?readScopedConfig(_0x23efb9(0x153)):readConfig();return{'ok':!![],'data':_0x5da112};}export const configListDefinition={'service':a53_0x29b374(0x147),'command':a53_0x29b374(0x14f),'description':a53_0x29b374(0x14b),'risk':a53_0x29b374(0x152),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a53_0x29b374(0x153),'type':a53_0x29b374(0x154),'description':a53_0x29b374(0x149),'default':![]}],'execute':execute};
1
+ const a53_0x37874d=a53_0x4bd3;(function(_0x299ef7,_0x4bd009){const _0x198f9d=a53_0x4bd3,_0x6fd0e=_0x299ef7();while(!![]){try{const _0x31c50b=-parseInt(_0x198f9d(0x8f))/0x1+parseInt(_0x198f9d(0x91))/0x2*(-parseInt(_0x198f9d(0x92))/0x3)+-parseInt(_0x198f9d(0x9e))/0x4+parseInt(_0x198f9d(0x95))/0x5*(parseInt(_0x198f9d(0x98))/0x6)+parseInt(_0x198f9d(0xa0))/0x7*(-parseInt(_0x198f9d(0x97))/0x8)+-parseInt(_0x198f9d(0x9a))/0x9+parseInt(_0x198f9d(0x9f))/0xa;if(_0x31c50b===_0x4bd009)break;else _0x6fd0e['push'](_0x6fd0e['shift']());}catch(_0x4179b6){_0x6fd0e['push'](_0x6fd0e['shift']());}}}(a53_0x20a8,0x91d3a));function a53_0x20a8(){const _0x4643e0=['bool','205iIJFTw','config','104PYUpFJ','5298WBUKDp','global','4901697gBsJQI','boolean','read','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','2742980qJmYWa','38009260zAiIPp','204505xaLbxK','837132cNhCKK','list','1585036MmBPcj','3coqNgu','List\x20all\x20config\x20values'];a53_0x20a8=function(){return _0x4643e0;};return a53_0x20a8();}import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0x28bb9e){const _0x255748=a53_0x4bd3,_0x25ed64=_0x28bb9e[_0x255748(0x94)](_0x255748(0x99))?readScopedConfig(_0x255748(0x99)):readConfig();return{'ok':!![],'data':_0x25ed64};}function a53_0x4bd3(_0x11ce86,_0x245257){_0x11ce86=_0x11ce86-0x8f;const _0x20a8b9=a53_0x20a8();let _0x4bd3b1=_0x20a8b9[_0x11ce86];return _0x4bd3b1;}export const configListDefinition={'service':a53_0x37874d(0x96),'command':a53_0x37874d(0x90),'description':a53_0x37874d(0x93),'risk':a53_0x37874d(0x9c),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a53_0x37874d(0x99),'type':a53_0x37874d(0x9b),'description':a53_0x37874d(0x9d),'default':![]}],'execute':execute};
@@ -1 +1 @@
1
- const a54_0x33dd0a=a54_0x5bd2;function a54_0x5bd2(_0x5089d4,_0x30a35d){_0x5089d4=_0x5089d4-0x15c;const _0x39d5f2=a54_0x39d5();let _0x5bd2f1=_0x39d5f2[_0x5089d4];return _0x5bd2f1;}(function(_0x211765,_0x2cac87){const _0x1f5906=a54_0x5bd2,_0x2c1696=_0x211765();while(!![]){try{const _0x3dbc3e=-parseInt(_0x1f5906(0x168))/0x1+-parseInt(_0x1f5906(0x17a))/0x2+parseInt(_0x1f5906(0x162))/0x3*(parseInt(_0x1f5906(0x18e))/0x4)+parseInt(_0x1f5906(0x163))/0x5+-parseInt(_0x1f5906(0x171))/0x6*(parseInt(_0x1f5906(0x17f))/0x7)+parseInt(_0x1f5906(0x167))/0x8*(parseInt(_0x1f5906(0x17d))/0x9)+parseInt(_0x1f5906(0x17e))/0xa*(parseInt(_0x1f5906(0x173))/0xb);if(_0x3dbc3e===_0x2cac87)break;else _0x2c1696['push'](_0x2c1696['shift']());}catch(_0x1b8c23){_0x2c1696['push'](_0x2c1696['shift']());}}}(a54_0x39d5,0x83aa5));import{CliErrors}from'../../errors.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function a54_0x39d5(){const _0x2e552a=['Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','global','4sXxxqw','Invalid\x20value\x20for\x20\x22','apps','Usage:\x20','Settable\x20top-level\x20keys:\x20','Global','Top-level\x20key\x20\x22','object','\x20(stored\x20as\x20apps\x20+\x20defaultApp)','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','3019182zlEvpr','1040775IjRDbo','string','\x20workspace\x20use\x20--app\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','315992ddxrFA','114172QxpAOQ','str','validation','\x20appcode\x20set\x20to:\x20','locale','Invalid\x20locale\x20value.','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','bool','key','6198ZlqSJv','config','297fJZSaJ','env','Missing\x20key.','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','Use\x20`','Set\x20a\x20config\x20value','Project','968136LsGnci','app','value','108vsOMyM','2910SItMVS','3787lAKIAA','includes','length','\x22\x20is\x20not\x20settable.','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','Config\x20value','`,\x20`','set','join','\x22.\x20Allowed:\x20','appcode','\x20set\x20to:\x20','write'];a54_0x39d5=function(){return _0x2e552a;};return a54_0x39d5();}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(_0x352057){const _0x452527=a54_0x5bd2,_0x3de9a8=_0x352057[_0x452527(0x169)](_0x452527(0x170)),_0x56aea7=_0x352057[_0x452527(0x169)](_0x452527(0x17c));if(!_0x3de9a8)throw CliErrors[_0x452527(0x16a)](_0x452527(0x175),'Usage:\x20'+CLI_BIN_NAME+_0x452527(0x176));if(_0x56aea7===undefined||_0x56aea7==='')throw CliErrors[_0x452527(0x16a)]('Missing\x20value.',_0x452527(0x191)+CLI_BIN_NAME+_0x452527(0x176));if(_0x56aea7['length']>0x1f4)throw CliErrors[_0x452527(0x16a)]('Config\x20value\x20is\x20invalid\x20or\x20too\x20long.');if(!isTopLevelConfigKey(_0x3de9a8))throw CliErrors['validation'](_0x452527(0x15e)+_0x3de9a8+_0x452527(0x182),_0x452527(0x15c)+getTopLevelConfigKeySummary());if(_0x3de9a8==='riskLevel')throw CliErrors[_0x452527(0x16a)](_0x452527(0x161));if(CONFIG_ENUM_VALUES[_0x3de9a8]&&!CONFIG_ENUM_VALUES[_0x3de9a8][_0x452527(0x180)](_0x56aea7))throw CliErrors[_0x452527(0x16a)](_0x452527(0x18f)+_0x3de9a8+_0x452527(0x188)+CONFIG_ENUM_VALUES[_0x3de9a8][_0x452527(0x187)](',\x20'));if(_0x3de9a8===_0x452527(0x16c)&&!normalizeLocale(_0x56aea7))throw CliErrors[_0x452527(0x16a)](_0x452527(0x16d),_0x452527(0x166));const _0x29ba1d={'global':_0x352057[_0x452527(0x16f)](_0x452527(0x18d))},_0x3230cb=resolveWriteScope(_0x29ba1d),_0x50f92d=readScopedConfig(_0x3230cb);let _0x3e7df8=_0x3de9a8,_0x2e2d14=_0x56aea7;_0x3de9a8===_0x452527(0x17b)&&(_0x3e7df8=_0x452527(0x189),delete _0x50f92d[_0x452527(0x17b)]);_0x3de9a8===_0x452527(0x16c)&&(_0x2e2d14=normalizeLocale(_0x56aea7));if(_0x3de9a8===_0x452527(0x174)){_0x2e2d14=normalizeEnv(_0x56aea7);if(!isProduction(_0x2e2d14)&&!isDaily(_0x2e2d14))throw CliErrors[_0x452527(0x16a)](_0x452527(0x183),_0x452527(0x18c));}if(_0x3de9a8===_0x452527(0x189)){const _0x1cecf6=_0x50f92d[_0x452527(0x190)]&&typeof _0x50f92d[_0x452527(0x190)]===_0x452527(0x15f)?Object['keys'](_0x50f92d[_0x452527(0x190)]):[];if(_0x1cecf6[_0x452527(0x181)]>0x0)throw CliErrors['validation'](_0x452527(0x16e),_0x452527(0x177)+CLI_BIN_NAME+'\x20app\x20add\x20<name>\x20--appcode\x20'+_0x2e2d14+_0x452527(0x185)+CLI_BIN_NAME+_0x452527(0x165));const _0x41a602=buildCanonicalProjectConfig({..._0x50f92d},{'appCodes':[_0x2e2d14],'env':typeof _0x50f92d[_0x452527(0x174)]==='string'?_0x50f92d[_0x452527(0x174)]:undefined});writeScopedConfig(_0x41a602,_0x3230cb);const _0x2d49aa=_0x3230cb===_0x452527(0x18d)?'Global':'Project';return{'ok':!![],'message':'✓\x20'+_0x2d49aa+_0x452527(0x16b)+_0x2e2d14+_0x452527(0x160)};}_0x50f92d[_0x3e7df8]=_0x2e2d14,writeScopedConfig(_0x50f92d,_0x3230cb);const _0x23ffa9=_0x3230cb===_0x452527(0x18d)?_0x452527(0x15d):_0x452527(0x179);return{'ok':!![],'message':'✓\x20'+_0x23ffa9+'\x20'+_0x3e7df8+_0x452527(0x18a)+_0x2e2d14};}export const configSetDefinition={'service':a54_0x33dd0a(0x172),'command':a54_0x33dd0a(0x186),'description':a54_0x33dd0a(0x178),'risk':a54_0x33dd0a(0x18b),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a54_0x33dd0a(0x170),'type':a54_0x33dd0a(0x164),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a54_0x33dd0a(0x17c),'type':'string','description':a54_0x33dd0a(0x184),'required':!![]},{'name':a54_0x33dd0a(0x18d),'type':'boolean','description':'Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','default':![]}],'execute':execute};
1
+ const a54_0x2bb464=a54_0x3cbb;(function(_0x4fa191,_0x2040fd){const _0x4edfea=a54_0x3cbb,_0x5741fc=_0x4fa191();while(!![]){try{const _0x44cead=-parseInt(_0x4edfea(0x89))/0x1*(-parseInt(_0x4edfea(0x79))/0x2)+parseInt(_0x4edfea(0x7d))/0x3+-parseInt(_0x4edfea(0x77))/0x4*(parseInt(_0x4edfea(0x85))/0x5)+parseInt(_0x4edfea(0x99))/0x6+-parseInt(_0x4edfea(0x9e))/0x7*(parseInt(_0x4edfea(0x78))/0x8)+parseInt(_0x4edfea(0x87))/0x9+-parseInt(_0x4edfea(0x8c))/0xa;if(_0x44cead===_0x2040fd)break;else _0x5741fc['push'](_0x5741fc['shift']());}catch(_0x35b485){_0x5741fc['push'](_0x5741fc['shift']());}}}(a54_0x3b3c,0xcb94d));import{CliErrors}from'../../errors.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';import{CLI_BIN_NAME,CONFIG_ENUM_VALUES,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';function a54_0x3b3c(){const _0x8d9167=['app','Missing\x20value.','1192938wyPxMl','value','length','key','Missing\x20key.','7600803srsZuR','locale','Set\x20a\x20config\x20value','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','write','str','\x20set\x20to:\x20','\x20workspace\x20use\x20--app\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','appcode','Top-level\x20key\x20\x22','39752WVSjBj','8dTITsI','2138658VcFNQL','global','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','1786047jviaXm','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','validation','\x22\x20is\x20not\x20settable.','config','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','Invalid\x20value\x20for\x20\x22','\x22.\x20Allowed:\x20','75hzLrei','join','4905963foghlr','Project','1MhKDdJ','env','apps','3398400KSupYt','Usage:\x20','Config\x20value','Invalid\x20locale\x20value.','includes','string','object','set','\x20app\x20add\x20<name>\x20--appcode\x20','boolean','keys'];a54_0x3b3c=function(){return _0x8d9167;};return a54_0x3b3c();}function a54_0x3cbb(_0x52c849,_0x2ae340){_0x52c849=_0x52c849-0x75;const _0x3b3ca0=a54_0x3b3c();let _0x3cbbad=_0x3b3ca0[_0x52c849];return _0x3cbbad;}import{normalizeEnv,isProduction,isDaily}from'../../constant/env.js';async function execute(_0x34ed21){const _0x275f17=a54_0x3cbb,_0x4c58c7=_0x34ed21[_0x275f17(0xa4)]('key'),_0x207699=_0x34ed21[_0x275f17(0xa4)](_0x275f17(0x9a));if(!_0x4c58c7)throw CliErrors[_0x275f17(0x7f)](_0x275f17(0x9d),_0x275f17(0x8d)+CLI_BIN_NAME+_0x275f17(0x7e));if(_0x207699===undefined||_0x207699==='')throw CliErrors[_0x275f17(0x7f)](_0x275f17(0x98),_0x275f17(0x8d)+CLI_BIN_NAME+_0x275f17(0x7e));if(_0x207699[_0x275f17(0x9b)]>0x1f4)throw CliErrors['validation'](_0x275f17(0x7c));if(!isTopLevelConfigKey(_0x4c58c7))throw CliErrors[_0x275f17(0x7f)](_0x275f17(0x76)+_0x4c58c7+_0x275f17(0x80),'Settable\x20top-level\x20keys:\x20'+getTopLevelConfigKeySummary());if(_0x4c58c7==='riskLevel')throw CliErrors[_0x275f17(0x7f)](_0x275f17(0xa1));if(CONFIG_ENUM_VALUES[_0x4c58c7]&&!CONFIG_ENUM_VALUES[_0x4c58c7][_0x275f17(0x90)](_0x207699))throw CliErrors[_0x275f17(0x7f)](_0x275f17(0x83)+_0x4c58c7+_0x275f17(0x84)+CONFIG_ENUM_VALUES[_0x4c58c7][_0x275f17(0x86)](',\x20'));if(_0x4c58c7===_0x275f17(0x9f)&&!normalizeLocale(_0x207699))throw CliErrors['validation'](_0x275f17(0x8f),_0x275f17(0x7b));const _0xf5e289={'global':_0x34ed21['bool'](_0x275f17(0x7a))},_0x5d2b10=resolveWriteScope(_0xf5e289),_0x1f732e=readScopedConfig(_0x5d2b10);let _0x3f4e4f=_0x4c58c7,_0x3206ea=_0x207699;_0x4c58c7===_0x275f17(0x97)&&(_0x3f4e4f=_0x275f17(0x75),delete _0x1f732e[_0x275f17(0x97)]);_0x4c58c7===_0x275f17(0x9f)&&(_0x3206ea=normalizeLocale(_0x207699));if(_0x4c58c7===_0x275f17(0x8a)){_0x3206ea=normalizeEnv(_0x207699);if(!isProduction(_0x3206ea)&&!isDaily(_0x3206ea))throw CliErrors[_0x275f17(0x7f)]('Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.');}if(_0x4c58c7===_0x275f17(0x75)){const _0x4d2083=_0x1f732e[_0x275f17(0x8b)]&&typeof _0x1f732e[_0x275f17(0x8b)]===_0x275f17(0x92)?Object[_0x275f17(0x96)](_0x1f732e[_0x275f17(0x8b)]):[];if(_0x4d2083[_0x275f17(0x9b)]>0x0)throw CliErrors[_0x275f17(0x7f)](_0x275f17(0xa2),'Use\x20`'+CLI_BIN_NAME+_0x275f17(0x94)+_0x3206ea+'`,\x20`'+CLI_BIN_NAME+_0x275f17(0xa6));const _0xa61ad7=buildCanonicalProjectConfig({..._0x1f732e},{'appCodes':[_0x3206ea],'env':typeof _0x1f732e[_0x275f17(0x8a)]===_0x275f17(0x91)?_0x1f732e[_0x275f17(0x8a)]:undefined});writeScopedConfig(_0xa61ad7,_0x5d2b10);const _0x22f6d5=_0x5d2b10===_0x275f17(0x7a)?'Global':_0x275f17(0x88);return{'ok':!![],'message':'✓\x20'+_0x22f6d5+'\x20appcode\x20set\x20to:\x20'+_0x3206ea+'\x20(stored\x20as\x20apps\x20+\x20defaultApp)'};}_0x1f732e[_0x3f4e4f]=_0x3206ea,writeScopedConfig(_0x1f732e,_0x5d2b10);const _0x54edba=_0x5d2b10===_0x275f17(0x7a)?'Global':_0x275f17(0x88);return{'ok':!![],'message':'✓\x20'+_0x54edba+'\x20'+_0x3f4e4f+_0x275f17(0xa5)+_0x3206ea};}export const configSetDefinition={'service':a54_0x2bb464(0x81),'command':a54_0x2bb464(0x93),'description':a54_0x2bb464(0xa0),'risk':a54_0x2bb464(0xa3),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a54_0x2bb464(0x9c),'type':a54_0x2bb464(0x91),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a54_0x2bb464(0x9a),'type':a54_0x2bb464(0x91),'description':a54_0x2bb464(0x8e),'required':!![]},{'name':a54_0x2bb464(0x7a),'type':a54_0x2bb464(0x95),'description':a54_0x2bb464(0x82),'default':![]}],'execute':execute};
@@ -1 +1 @@
1
- (function(_0x24d4fd,_0x113393){var _0x47bf60=a55_0x4446,_0x14fd49=_0x24d4fd();while(!![]){try{var _0x17e2b6=parseInt(_0x47bf60(0x1c8))/0x1*(-parseInt(_0x47bf60(0x1c7))/0x2)+parseInt(_0x47bf60(0x1c2))/0x3*(-parseInt(_0x47bf60(0x1ca))/0x4)+parseInt(_0x47bf60(0x1cd))/0x5+parseInt(_0x47bf60(0x1c9))/0x6+parseInt(_0x47bf60(0x1c6))/0x7+parseInt(_0x47bf60(0x1c3))/0x8+-parseInt(_0x47bf60(0x1cb))/0x9;if(_0x17e2b6===_0x113393)break;else _0x14fd49['push'](_0x14fd49['shift']());}catch(_0x10a305){_0x14fd49['push'](_0x14fd49['shift']());}}}(a55_0x1650,0xb999a));function a55_0x4446(_0x2e4b76,_0x24eb15){_0x2e4b76=_0x2e4b76-0x1c2;var _0x16500b=a55_0x1650();var _0x4446a5=_0x16500b[_0x2e4b76];return _0x4446a5;}function a55_0x1650(){var _0x2c4cb2=['1170000CkMwXl','global','3287845SlbDoD','1114122ziiHTZ','9872976SGqHuz','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','1820217OHMMge','246WfhMsm','4397gSFYTI','4588938zlyuIQ','16KhJrRH'];a55_0x1650=function(){return _0x2c4cb2;};return a55_0x1650();}import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';import{CliErrors}from'../../errors.js';import{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';export{CLI_BIN_NAME};export{normalizeLocale};export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0x1d576d){var _0x27274b=a55_0x4446;if(_0x1d576d[_0x27274b(0x1cc)])return _0x27274b(0x1cc);if(!isInProject())throw CliErrors['validation'](_0x27274b(0x1c5),_0x27274b(0x1c4)+CLI_BIN_NAME+'\x20init`\x20first.');return'project';}export function readScopedConfig(_0x52e6b0){return readConfigFile(resolveWriteConfigPath(_0x52e6b0));}export function writeScopedConfig(_0x1d5a06,_0x372a9e){writeConfigFile(resolveWriteConfigPath(_0x372a9e),_0x1d5a06);}
1
+ (function(_0x5bdd4d,_0x1580c1){var _0x4e40e3=a55_0x1544,_0x3f124d=_0x5bdd4d();while(!![]){try{var _0x35aff5=-parseInt(_0x4e40e3(0xcb))/0x1+parseInt(_0x4e40e3(0xd7))/0x2*(-parseInt(_0x4e40e3(0xd3))/0x3)+parseInt(_0x4e40e3(0xcf))/0x4+-parseInt(_0x4e40e3(0xce))/0x5*(parseInt(_0x4e40e3(0xd0))/0x6)+-parseInt(_0x4e40e3(0xd2))/0x7+-parseInt(_0x4e40e3(0xd1))/0x8+parseInt(_0x4e40e3(0xcd))/0x9*(parseInt(_0x4e40e3(0xd4))/0xa);if(_0x35aff5===_0x1580c1)break;else _0x3f124d['push'](_0x3f124d['shift']());}catch(_0x4c8e45){_0x3f124d['push'](_0x3f124d['shift']());}}}(a55_0x53e0,0x3233d));import{CLI_BIN_NAME}from'../../constant/cli.js';function a55_0x1544(_0x24feba,_0x549285){_0x24feba=_0x24feba-0xc8;var _0x53e008=a55_0x53e0();var _0x15440e=_0x53e008[_0x24feba];return _0x15440e;}import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';import{CliErrors}from'../../errors.js';import{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';export{CLI_BIN_NAME};export{normalizeLocale};export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0x25c878){var _0x4373fb=a55_0x1544;if(_0x25c878[_0x4373fb(0xc8)])return _0x4373fb(0xc8);if(!isInProject())throw CliErrors[_0x4373fb(0xc9)](_0x4373fb(0xd5),_0x4373fb(0xcc)+CLI_BIN_NAME+_0x4373fb(0xca));return _0x4373fb(0xd6);}export function readScopedConfig(_0x503874){return readConfigFile(resolveWriteConfigPath(_0x503874));}export function writeScopedConfig(_0x425488,_0x34f823){writeConfigFile(resolveWriteConfigPath(_0x34f823),_0x425488);}function a55_0x53e0(){var _0x3fdbbb=['4398CPCbPj','1817312yOmHGg','1104194jeYNFf','149157ulMfpE','1459270YoByYH','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','project','6Bcxrly','global','validation','\x20init`\x20first.','340900owkLqg','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','63ryMJVl','1445eMHiuY','1083760OdeHbM'];a55_0x53e0=function(){return _0x3fdbbb;};return a55_0x53e0();}
@@ -1 +1 @@
1
- const a56_0x295313=a56_0x557b;(function(_0x576e62,_0x122789){const _0x24d964=a56_0x557b,_0xa2d636=_0x576e62();while(!![]){try{const _0x454283=parseInt(_0x24d964(0xb6))/0x1*(-parseInt(_0x24d964(0xab))/0x2)+-parseInt(_0x24d964(0xb0))/0x3*(-parseInt(_0x24d964(0xa6))/0x4)+-parseInt(_0x24d964(0xb4))/0x5*(parseInt(_0x24d964(0xa7))/0x6)+parseInt(_0x24d964(0xa4))/0x7+-parseInt(_0x24d964(0xa9))/0x8*(-parseInt(_0x24d964(0xb1))/0x9)+-parseInt(_0x24d964(0xa5))/0xa+parseInt(_0x24d964(0xaa))/0xb;if(_0x454283===_0x122789)break;else _0xa2d636['push'](_0xa2d636['shift']());}catch(_0x105f50){_0xa2d636['push'](_0xa2d636['shift']());}}}(a56_0x5ebd,0x5de76));function a56_0x557b(_0x5c227c,_0x21591a){_0x5c227c=_0x5c227c-0xa4;const _0x5ebd5c=a56_0x5ebd();let _0x557bbe=_0x5ebd5c[_0x5c227c];return _0x557bbe;}function a56_0x5ebd(){const _0x335719=['6FiBAsV','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions','\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]','join','filter','3lKBTnA','387sLqzmU','Filter\x20dataset\x20records\x20with\x20query\x20conditions','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','5SXwCRe','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','196729MxDWSP','5082434zladZy','3706470qKIEpm','1826668uNsolm','791676mFvELV','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page','3160DfmSZm','3054656ZtvhAL'];a56_0x5ebd=function(){return _0x335719;};return a56_0x5ebd();}import{buildDataCommand}from'../../commands/data/shared.js';export const dataFilter=buildDataCommand({'command':a56_0x295313(0xaf),'operation':a56_0x295313(0xaf),'description':a56_0x295313(0xb2),'paramsRequired':![],'paramsHint':a56_0x295313(0xb5),'helpExtra':['\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)',a56_0x295313(0xac),a56_0x295313(0xad),'\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}]',a56_0x295313(0xb3),a56_0x295313(0xa8)][a56_0x295313(0xae)]('\x0a')});
1
+ const a56_0x22c216=a56_0xa30b;(function(_0x563ca9,_0x4f9d0a){const _0x446806=a56_0xa30b,_0x3e05f9=_0x563ca9();while(!![]){try{const _0x1b6cd6=parseInt(_0x446806(0x7d))/0x1+parseInt(_0x446806(0x77))/0x2*(parseInt(_0x446806(0x72))/0x3)+-parseInt(_0x446806(0x6d))/0x4+parseInt(_0x446806(0x6b))/0x5+parseInt(_0x446806(0x79))/0x6*(parseInt(_0x446806(0x7a))/0x7)+-parseInt(_0x446806(0x7c))/0x8*(-parseInt(_0x446806(0x7b))/0x9)+-parseInt(_0x446806(0x75))/0xa*(parseInt(_0x446806(0x71))/0xb);if(_0x1b6cd6===_0x4f9d0a)break;else _0x3e05f9['push'](_0x3e05f9['shift']());}catch(_0xa97bc2){_0x3e05f9['push'](_0x3e05f9['shift']());}}}(a56_0x4842,0xa886a));function a56_0x4842(){const _0x2e554a=['\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','24XYfzFM','1713082sBhdtc','7479864MRqCjp','8MyRHrV','931307YOoJwd','\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}]','2808675klLBxD','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions','1903532PHIIUJ','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','join','41888uzTJYG','3kmzLIB','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page','Filter\x20dataset\x20records\x20with\x20query\x20conditions','8480uYucli','filter','2184614FedQAi'];a56_0x4842=function(){return _0x2e554a;};return a56_0x4842();}function a56_0xa30b(_0x166d2c,_0x8654a2){_0x166d2c=_0x166d2c-0x6a;const _0x48420b=a56_0x4842();let _0xa30b48=_0x48420b[_0x166d2c];return _0xa30b48;}import{buildDataCommand}from'../../commands/data/shared.js';export const dataFilter=buildDataCommand({'command':a56_0x22c216(0x76),'operation':'filter','description':a56_0x22c216(0x74),'paramsRequired':![],'paramsHint':'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','helpExtra':[a56_0x22c216(0x78),a56_0x22c216(0x6c),a56_0x22c216(0x6e),a56_0x22c216(0x6a),a56_0x22c216(0x6f),a56_0x22c216(0x73)][a56_0x22c216(0x70)]('\x0a')});
@@ -1 +1 @@
1
- const a57_0x5e9b83=a57_0x4574;function a57_0x358e(){const _0x2f6c22=['522252ljtvAZ','Get\x20a\x20single\x20record\x20by\x20ID','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','7cEfQaB','getOne','132328WEzfQE','199770zswdeA','68885cQQTgj','242050JUAvYm','805568OBHsfu','3451824sXHuDe'];a57_0x358e=function(){return _0x2f6c22;};return a57_0x358e();}function a57_0x4574(_0x3a30d4,_0x1236d5){_0x3a30d4=_0x3a30d4-0x6d;const _0x358e9b=a57_0x358e();let _0x4574d4=_0x358e9b[_0x3a30d4];return _0x4574d4;}(function(_0x24374e,_0x1f8d85){const _0x3a51d1=a57_0x4574,_0x25b9e0=_0x24374e();while(!![]){try{const _0x584b3c=-parseInt(_0x3a51d1(0x77))/0x1+-parseInt(_0x3a51d1(0x6f))/0x2+parseInt(_0x3a51d1(0x72))/0x3+-parseInt(_0x3a51d1(0x70))/0x4+-parseInt(_0x3a51d1(0x6e))/0x5+-parseInt(_0x3a51d1(0x6d))/0x6*(parseInt(_0x3a51d1(0x75))/0x7)+parseInt(_0x3a51d1(0x71))/0x8;if(_0x584b3c===_0x1f8d85)break;else _0x25b9e0['push'](_0x25b9e0['shift']());}catch(_0x3a4cb8){_0x25b9e0['push'](_0x25b9e0['shift']());}}}(a57_0x358e,0x19541));import{buildDataCommand}from'../../commands/data/shared.js';export const dataGetOne=buildDataCommand({'command':a57_0x5e9b83(0x76),'operation':'getOne','description':a57_0x5e9b83(0x73),'paramsRequired':!![],'paramsHint':a57_0x5e9b83(0x74)});
1
+ const a57_0x1d1c94=a57_0x565c;(function(_0x1a64c2,_0x3eee75){const _0x4c27de=a57_0x565c,_0x13fdb2=_0x1a64c2();while(!![]){try{const _0x2d78aa=parseInt(_0x4c27de(0xde))/0x1+-parseInt(_0x4c27de(0xd3))/0x2*(-parseInt(_0x4c27de(0xda))/0x3)+parseInt(_0x4c27de(0xdc))/0x4*(parseInt(_0x4c27de(0xdd))/0x5)+-parseInt(_0x4c27de(0xd4))/0x6*(-parseInt(_0x4c27de(0xd5))/0x7)+-parseInt(_0x4c27de(0xdb))/0x8+parseInt(_0x4c27de(0xd6))/0x9+-parseInt(_0x4c27de(0xd8))/0xa;if(_0x2d78aa===_0x3eee75)break;else _0x13fdb2['push'](_0x13fdb2['shift']());}catch(_0x3a93c5){_0x13fdb2['push'](_0x13fdb2['shift']());}}}(a57_0x2517,0x932d9));function a57_0x2517(){const _0x15bc82=['91KfVnAX','1761669azDbtX','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','15996040CAwtby','Get\x20a\x20single\x20record\x20by\x20ID','1080120iKmOsM','4254680VqqVaP','647772dWkpEX','25alLWus','900597xXgpAR','4oRRTtH','49914fhyuhm'];a57_0x2517=function(){return _0x15bc82;};return a57_0x2517();}import{buildDataCommand}from'../../commands/data/shared.js';function a57_0x565c(_0x424b98,_0x2309b8){_0x424b98=_0x424b98-0xd3;const _0x251766=a57_0x2517();let _0x565cb3=_0x251766[_0x424b98];return _0x565cb3;}export const dataGetOne=buildDataCommand({'command':'getOne','operation':'getOne','description':a57_0x1d1c94(0xd9),'paramsRequired':!![],'paramsHint':a57_0x1d1c94(0xd7)});
@@ -1 +1 @@
1
- (function(_0x281049,_0x5a73ce){const _0x375888=a58_0x4cb2,_0x5449c7=_0x281049();while(!![]){try{const _0x1ba8ab=-parseInt(_0x375888(0x17c))/0x1+-parseInt(_0x375888(0x179))/0x2*(-parseInt(_0x375888(0x17a))/0x3)+parseInt(_0x375888(0x180))/0x4*(parseInt(_0x375888(0x17e))/0x5)+parseInt(_0x375888(0x17b))/0x6*(parseInt(_0x375888(0x181))/0x7)+-parseInt(_0x375888(0x17d))/0x8+-parseInt(_0x375888(0x17f))/0x9+parseInt(_0x375888(0x178))/0xa;if(_0x1ba8ab===_0x5a73ce)break;else _0x5449c7['push'](_0x5449c7['shift']());}catch(_0x28da50){_0x5449c7['push'](_0x5449c7['shift']());}}}(a58_0x991d,0xec834));import{dataFilter}from'../../commands/data/filter.js';import{dataGetOne}from'../../commands/data/getOne.js';function a58_0x991d(){const _0x312055=['12625acXRAW','8644878pmclAx','844PiIHyz','6044892cnSkea','9082980LZAJAo','3104SXEnIB','249TboNoo','6LloNgn','492784vYXqoL','90904iEwUWW'];a58_0x991d=function(){return _0x312055;};return a58_0x991d();}function a58_0x4cb2(_0x3753d4,_0x31fc70){_0x3753d4=_0x3753d4-0x178;const _0x991d15=a58_0x991d();let _0x4cb24a=_0x991d15[_0x3753d4];return _0x4cb24a;}export const dataDefinitions=[dataFilter,dataGetOne];
1
+ (function(_0xf29f0e,_0x383e8c){const _0x1917e3=a58_0x1f26,_0x4686ee=_0xf29f0e();while(!![]){try{const _0x18ab0d=parseInt(_0x1917e3(0x1e0))/0x1*(parseInt(_0x1917e3(0x1df))/0x2)+-parseInt(_0x1917e3(0x1e6))/0x3+-parseInt(_0x1917e3(0x1e1))/0x4+-parseInt(_0x1917e3(0x1e5))/0x5*(parseInt(_0x1917e3(0x1e3))/0x6)+-parseInt(_0x1917e3(0x1e7))/0x7+-parseInt(_0x1917e3(0x1e4))/0x8+parseInt(_0x1917e3(0x1e2))/0x9;if(_0x18ab0d===_0x383e8c)break;else _0x4686ee['push'](_0x4686ee['shift']());}catch(_0xa4e9b6){_0x4686ee['push'](_0x4686ee['shift']());}}}(a58_0x1f03,0xabeb3));function a58_0x1f03(){const _0x1e40a8=['31782240YEXWpk','48vLlAfR','5781768qQwhxc','111985HSnius','3902205xNewnF','8631567VrcxUZ','2tRmXBa','1194759ffXyfq','2344908AsVwEh'];a58_0x1f03=function(){return _0x1e40a8;};return a58_0x1f03();}import{dataFilter}from'../../commands/data/filter.js';function a58_0x1f26(_0x18b2e8,_0x3f8d5a){_0x18b2e8=_0x18b2e8-0x1df;const _0x1f0374=a58_0x1f03();let _0x1f26ac=_0x1f0374[_0x18b2e8];return _0x1f26ac;}import{dataGetOne}from'../../commands/data/getOne.js';export const dataDefinitions=[dataFilter,dataGetOne];
@@ -1 +1 @@
1
- (function(_0x418b2a,_0x4eafa2){const _0x233dca=a59_0x1583,_0x546b72=_0x418b2a();while(!![]){try{const _0x14256c=-parseInt(_0x233dca(0x147))/0x1*(parseInt(_0x233dca(0x14f))/0x2)+parseInt(_0x233dca(0x13e))/0x3+-parseInt(_0x233dca(0x155))/0x4+-parseInt(_0x233dca(0x14d))/0x5+parseInt(_0x233dca(0x140))/0x6+parseInt(_0x233dca(0x14e))/0x7+parseInt(_0x233dca(0x14b))/0x8;if(_0x14256c===_0x4eafa2)break;else _0x546b72['push'](_0x546b72['shift']());}catch(_0x57499b){_0x546b72['push'](_0x546b72['shift']());}}}(a59_0x3245,0x2e443));import{executeDatasetDataOperation}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{parseJsonParams}from'../../utils/params.js';function a59_0x3245(){const _0x1eb063=['data\x20getOne\x20requires\x20\x22id\x22\x20in\x20--params','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','paramsRequired','string','160343XPClvY','appCode','\x20completed\x20in\x20','description','2070600OITNAw','paramsHint','1187270ysfKUT','326144kcUuPA','2yHZrtl','compress','read','now','data\x20','data','607092fAuOKA','alias','helpExtra','flagMissing','command','validation','getOne','params','operation','381567GGAydz','code','1838826YJxRFB','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','str'];a59_0x3245=function(){return _0x1eb063;};return a59_0x3245();}function assertGetOneId(_0x14d25f){const _0x37c8ea=a59_0x1583;if(!_0x14d25f)throw CliErrors[_0x37c8ea(0x158)](_0x37c8ea(0x13c),'Provide\x20--params\x20\x27{\x22id\x22:123}\x27\x20for\x20data\x20getOne.');const _0x53ccbf=_0x14d25f['id'];if(_0x53ccbf===undefined||_0x53ccbf===null||_0x53ccbf==='')throw CliErrors[_0x37c8ea(0x15a)](_0x37c8ea(0x143),_0x37c8ea(0x144));}function parseCommandParams(_0x31408e){return parseJsonParams(_0x31408e)??{};}function a59_0x1583(_0x1f1943,_0x349869){_0x1f1943=_0x1f1943-0x13c;const _0x324589=a59_0x3245();let _0x158353=_0x324589[_0x1f1943];return _0x158353;}export function buildDataCommand(_0x24aa78){const _0x1cebc6=a59_0x1583,_0x17efba=_0x1cebc6(0x141);return{'service':_0x1cebc6(0x154),'command':_0x24aa78[_0x1cebc6(0x159)],'description':_0x24aa78[_0x1cebc6(0x14a)],'risk':_0x1cebc6(0x151),'defaultOutputFormat':_0x1cebc6(0x150),'helpExtra':_0x24aa78[_0x1cebc6(0x157)],'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':_0x1cebc6(0x156),'type':_0x1cebc6(0x146),'description':_0x17efba},{'name':_0x1cebc6(0x13c),'type':_0x1cebc6(0x146),'description':_0x24aa78[_0x1cebc6(0x14c)]}],async 'validate'(_0x1251ca){const _0x42a94b=_0x1cebc6,_0x5559c7=_0x1251ca[_0x42a94b(0x142)](_0x42a94b(0x13c));if(_0x24aa78[_0x42a94b(0x145)]&&!_0x5559c7)throw CliErrors[_0x42a94b(0x158)](_0x42a94b(0x13c),_0x24aa78['paramsHint']);const _0x2c5b1f=parseJsonParams(_0x5559c7);_0x24aa78[_0x42a94b(0x13d)]===_0x42a94b(0x15b)&&assertGetOneId(_0x2c5b1f);},async 'execute'(_0x473beb){const _0x319339=_0x1cebc6,_0x1e63a8=parseCommandParams(_0x473beb[_0x319339(0x142)](_0x319339(0x13c))),_0x4fed3a=Date[_0x319339(0x152)](),_0x566494=await executeDatasetDataOperation(_0x473beb[_0x319339(0x148)],_0x473beb[_0x319339(0x142)](_0x319339(0x13f)),_0x24aa78[_0x319339(0x13d)],_0x1e63a8),_0x4845c4=Date[_0x319339(0x152)]()-_0x4fed3a;return{'ok':!![],'data':{'result':_0x566494,'elapsed':_0x4845c4},'message':_0x319339(0x153)+_0x24aa78[_0x319339(0x159)]+_0x319339(0x149)+_0x4845c4+'ms'};}};}
1
+ (function(_0x2774da,_0x448b2c){const _0x2b705b=a59_0x5d17,_0x5a0fd8=_0x2774da();while(!![]){try{const _0x2b3eb0=-parseInt(_0x2b705b(0xe5))/0x1*(-parseInt(_0x2b705b(0xe2))/0x2)+-parseInt(_0x2b705b(0xde))/0x3+-parseInt(_0x2b705b(0xee))/0x4+-parseInt(_0x2b705b(0xf0))/0x5*(-parseInt(_0x2b705b(0xf1))/0x6)+parseInt(_0x2b705b(0xe9))/0x7+parseInt(_0x2b705b(0xf6))/0x8*(-parseInt(_0x2b705b(0xe0))/0x9)+parseInt(_0x2b705b(0xef))/0xa;if(_0x2b3eb0===_0x448b2c)break;else _0x5a0fd8['push'](_0x5a0fd8['shift']());}catch(_0xa4a0b3){_0x5a0fd8['push'](_0x5a0fd8['shift']());}}}(a59_0x30ae,0x8fa27));import{executeDatasetDataOperation}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{parseJsonParams}from'../../utils/params.js';function a59_0x30ae(){const _0x184517=['5211xFetHm','helpExtra','57620ZzxChY','Provide\x20--params\x20\x27{\x22id\x22:123}\x27\x20for\x20data\x20getOne.','validation','15AxnwZf','code','str','appCode','4055786SPtpGg','compress','flagMissing','now','data\x20getOne\x20requires\x20\x22id\x22\x20in\x20--params','1010572aEoGKk','6662410CQkvzw','6595ogokST','5232fCtHRW','params','paramsHint','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','command','13712rMmIeC','string','operation','paramsRequired','2983743UZBhdd','data'];a59_0x30ae=function(){return _0x184517;};return a59_0x30ae();}function a59_0x5d17(_0x55936a,_0x18dd3d){_0x55936a=_0x55936a-0xdb;const _0x30aef3=a59_0x30ae();let _0x5d1795=_0x30aef3[_0x55936a];return _0x5d1795;}function assertGetOneId(_0x579adf){const _0x888369=a59_0x5d17;if(!_0x579adf)throw CliErrors[_0x888369(0xeb)](_0x888369(0xf2),_0x888369(0xe3));const _0x2c14e6=_0x579adf['id'];if(_0x2c14e6===undefined||_0x2c14e6===null||_0x2c14e6==='')throw CliErrors[_0x888369(0xe4)](_0x888369(0xed),_0x888369(0xf4));}function parseCommandParams(_0x3b1bcc){return parseJsonParams(_0x3b1bcc)??{};}export function buildDataCommand(_0x4ef26f){const _0x4a1473=a59_0x5d17,_0x484616='Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically';return{'service':_0x4a1473(0xdf),'command':_0x4ef26f[_0x4a1473(0xf5)],'description':_0x4ef26f['description'],'risk':'read','defaultOutputFormat':_0x4a1473(0xea),'helpExtra':_0x4ef26f[_0x4a1473(0xe1)],'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'alias','type':_0x4a1473(0xdb),'description':_0x484616},{'name':'params','type':'string','description':_0x4ef26f[_0x4a1473(0xf3)]}],async 'validate'(_0x36be29){const _0x2eef0e=_0x4a1473,_0x28a722=_0x36be29[_0x2eef0e(0xe7)]('params');if(_0x4ef26f[_0x2eef0e(0xdd)]&&!_0x28a722)throw CliErrors[_0x2eef0e(0xeb)](_0x2eef0e(0xf2),_0x4ef26f[_0x2eef0e(0xf3)]);const _0x20e9af=parseJsonParams(_0x28a722);_0x4ef26f[_0x2eef0e(0xdc)]==='getOne'&&assertGetOneId(_0x20e9af);},async 'execute'(_0x5cdbe8){const _0x32fa53=_0x4a1473,_0x225940=parseCommandParams(_0x5cdbe8[_0x32fa53(0xe7)](_0x32fa53(0xf2))),_0x1e7aa3=Date[_0x32fa53(0xec)](),_0x2644ad=await executeDatasetDataOperation(_0x5cdbe8[_0x32fa53(0xe8)],_0x5cdbe8[_0x32fa53(0xe7)](_0x32fa53(0xe6)),_0x4ef26f[_0x32fa53(0xdc)],_0x225940),_0x1c8177=Date['now']()-_0x1e7aa3;return{'ok':!![],'data':{'result':_0x2644ad,'elapsed':_0x1c8177},'message':'data\x20'+_0x4ef26f[_0x32fa53(0xf5)]+'\x20completed\x20in\x20'+_0x1c8177+'ms'};}};}
@@ -1 +1 @@
1
- const a60_0x254d99=a60_0x4d43;(function(_0x415295,_0x100985){const _0x5e1a62=a60_0x4d43,_0x15f009=_0x415295();while(!![]){try{const _0x29b636=-parseInt(_0x5e1a62(0xe1))/0x1*(parseInt(_0x5e1a62(0xda))/0x2)+-parseInt(_0x5e1a62(0xca))/0x3+-parseInt(_0x5e1a62(0xd1))/0x4*(-parseInt(_0x5e1a62(0xf0))/0x5)+-parseInt(_0x5e1a62(0xe9))/0x6+-parseInt(_0x5e1a62(0xc3))/0x7*(-parseInt(_0x5e1a62(0xcc))/0x8)+parseInt(_0x5e1a62(0xc5))/0x9*(parseInt(_0x5e1a62(0xdc))/0xa)+parseInt(_0x5e1a62(0xdb))/0xb;if(_0x29b636===_0x100985)break;else _0x15f009['push'](_0x15f009['shift']());}catch(_0x170911){_0x15f009['push'](_0x15f009['shift']());}}}(a60_0x2d88,0x6b1e8));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_0x254d99(0xf4);export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x46020f,input:_0x495158,dryRun:_0x447378}){const _0x4d620d=a60_0x254d99;validateInput(_0x495158);const _0xadf4d=normalizeBusinessGroup(_0x495158[_0x4d620d(0xd6)]),_0x1edae8=await getDatasetDetail(_0x495158[_0x4d620d(0xd5)]),_0xfd1657=resolveBusinessGroupDataset(_0x1edae8,_0x495158[_0x4d620d(0xd5)]),_0x17533c=loadCurrentBusinessGroup(_0x1edae8,_0xfd1657);assertExpectedBusinessGroup(_0x17533c,_0x495158['expectBusinessGroup']);const _0x24a8ca=buildBackendPayload(_0x46020f,_0xfd1657,_0xadf4d),_0x684526=_0x17533c!==_0xadf4d;let _0x51ba6d;if(_0x684526&&!_0x447378){await updateErBusinessGroup(_0x24a8ca);const _0x9d53c1=await getDatasetDetail(_0xfd1657['code']),_0x2244c0=resolveBusinessGroupDataset(_0x9d53c1,_0xfd1657[_0x4d620d(0xd5)]),_0xce83f4=loadCurrentBusinessGroup(_0x9d53c1,_0x2244c0);if(_0xce83f4!==_0xadf4d)throw CliErrors['apiError'](_0x4d620d(0xbc),_0x4d620d(0xc0)+JSON[_0x4d620d(0xef)](_0xadf4d)+',\x20actual\x20'+JSON[_0x4d620d(0xef)](_0xce83f4)+'.');_0x51ba6d={'verified':!![],'status':_0x4d620d(0xd9),'afterReadback':{'businessGroup':_0xce83f4}};}else!_0x684526&&(_0x51ba6d={'verified':!![],'status':_0x4d620d(0xe8),'afterReadback':{'businessGroup':_0x17533c}});const _0x375906={'operation':'update','appCode':_0x46020f,'selector':{'code':_0xfd1657[_0x4d620d(0xd5)]},'dataset':_0xfd1657,'before':{'businessGroup':_0x17533c},'after':{'businessGroup':_0xadf4d},'changed':_0x684526,'dryRun':_0x447378,'submitted':_0x684526&&!_0x447378,'backend':{'method':'POST','path':BACKEND_PATH,'payload':_0x24a8ca},..._0x51ba6d?{'verification':_0x51ba6d}:{},'warnings':[]};return{'ok':!![],'data':_0x375906,'message':_0x684526?_0x447378?'Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20'+_0xfd1657[_0x4d620d(0xd5)]:'Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20'+_0xfd1657[_0x4d620d(0xd5)]:_0x4d620d(0xd2)+_0xfd1657[_0x4d620d(0xd5)]};}export const datasetBusinessGroupUpdate={'service':a60_0x254d99(0xc6),'command':a60_0x254d99(0xc9),'description':'Update\x20business\x20scenario\x20group','risk':'write','flags':[CODE_FLAG,{'name':a60_0x254d99(0xbd),'type':a60_0x254d99(0xe6),'required':!![],'description':'Business\x20scenario\x20group\x20(not\x20technical):\x20use\x20<scenario>,\x20or\x20<domain>---<scenario>\x20when\x20needed\x20for\x20disambiguation\x20or\x20an\x20existing\x20hierarchy;\x20empty\x20string\x20clears\x20it'},{'name':a60_0x254d99(0xe7),'type':'string','required':![],'description':a60_0x254d99(0xb8)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x505084){validateInput(readBusinessGroupUpdateInput(_0x505084));},async 'dryRun'(_0x2255e8){const _0x520cb0=a60_0x254d99,_0x309df1=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x2255e8[_0x520cb0(0xeb)],'input':readBusinessGroupUpdateInput(_0x2255e8),'dryRun':!![]});return{'method':_0x520cb0(0xcf),'url':BACKEND_PATH,'body':_0x309df1['data'][_0x520cb0(0xf1)][_0x520cb0(0xe3)],'description':_0x309df1['message'],..._0x309df1[_0x520cb0(0xd3)]};},async 'execute'(_0x36df7c){const _0x2c0d52=a60_0x254d99;return buildDatasetBusinessGroupUpdateResult({'appCode':_0x36df7c[_0x2c0d52(0xeb)],'input':readBusinessGroupUpdateInput(_0x36df7c),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x157987){const _0x4975d1=a60_0x254d99,_0x381036=_0x157987['str']('expect-business-group');return{'code':trim(_0x157987[_0x4975d1(0xdf)](_0x4975d1(0xd5))),'businessGroup':_0x157987[_0x4975d1(0xdf)](_0x4975d1(0xbd)),'expectBusinessGroup':_0x381036===undefined||_0x381036===''?undefined:_0x381036};}function validateInput(_0x27324c){const _0x9f20a8=a60_0x254d99;if(!trim(_0x27324c[_0x9f20a8(0xd5)]))throw CliErrors[_0x9f20a8(0xc4)](_0x9f20a8(0xea));if(_0x27324c[_0x9f20a8(0xd6)]===undefined)throw CliErrors[_0x9f20a8(0xc4)](_0x9f20a8(0xe2));}function resolveBusinessGroupDataset(_0x1e9bf8,_0x105985){const _0x3dad3b=a60_0x254d99,_0x10a608=asPlainObject(_0x1e9bf8[_0x3dad3b(0xc6)]),_0x52948a=asPlainObject(_0x1e9bf8[_0x3dad3b(0xbf)]),_0xb6286b=resolveSourceType(_0x1e9bf8,_0x10a608,_0x52948a),_0x4425b8=firstString(_0x1e9bf8[_0x3dad3b(0xf3)],_0x1e9bf8[_0x3dad3b(0xd5)],_0x10a608['datasetCode'],_0x105985)||_0x105985;return{'id':firstNumber(_0x1e9bf8[_0x3dad3b(0xd4)],_0x1e9bf8['id'],_0x10a608[_0x3dad3b(0xbb)])??firstString(_0x1e9bf8[_0x3dad3b(0xd4)],_0x1e9bf8['id'],_0x10a608[_0x3dad3b(0xbb)])??null,'code':_0x4425b8,'name':firstString(_0x1e9bf8[_0x3dad3b(0xc7)],_0x10a608[_0x3dad3b(0xed)],_0x10a608['name'])||null,'sourceType':_0xb6286b};}function resolveSourceType(_0x4104a2,_0x5c15a6,_0x3d9c74){const _0x259ba8=a60_0x254d99,_0x25bd43=firstString(_0x4104a2['source'],_0x4104a2[_0x259ba8(0xc8)],_0x5c15a6[_0x259ba8(0xde)],_0x5c15a6['sourceType'])?.[_0x259ba8(0xba)]()[_0x259ba8(0xc2)]();if(_0x25bd43==='DB_TABLE'||_0x25bd43===_0x259ba8(0xdd))return _0x25bd43;if(Object['keys'](_0x3d9c74)[_0x259ba8(0xcb)]>0x0)return _0x259ba8(0xd8);throw CliErrors[_0x259ba8(0xc4)](_0x259ba8(0xf2));}function a60_0x4d43(_0x3c5cbe,_0xa1f364){_0x3c5cbe=_0x3c5cbe-0xb8;const _0x2d8872=a60_0x2d88();let _0x4d4355=_0x2d8872[_0x3c5cbe];return _0x4d4355;}function loadCurrentBusinessGroup(_0x29b2cd,_0x364474){const _0x1924fa=a60_0x254d99,_0x5ba7ed=readBusinessGroupFromDatasetDetail(_0x29b2cd,_0x364474['sourceType']);if(_0x5ba7ed[_0x1924fa(0xee)])return normalizeBusinessGroup(_0x5ba7ed[_0x1924fa(0xc1)]);if(_0x364474[_0x1924fa(0xc8)]===_0x1924fa(0xdd))return'';throw CliErrors['validation'](_0x1924fa(0xe4),_0x1924fa(0xe0));}function a60_0x2d88(){const _0xb06dc=['payload','Dataset\x20detail\x20does\x20not\x20expose\x20businessGroup.','number','string','expect-business-group','unchanged','628932FeIMab','--code\x20is\x20required','appCode','hasOwnProperty','datasetName','found','stringify','11555eZyaoI','backend','Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.','modelCode','/smartapi/question/er-config/business-group/edit','Expected\x20current\x20business\x20scenario\x20group;\x20mismatch\x20aborts\x20without\x20writing','object','trim','datasetId','Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.','business-group','extend','dbtableConfig','Expected\x20','value','toUpperCase','582869WBJIsT','validation','126hLpzAp','dataset','name','sourceType','business-group-update','2260860vZZvxm','length','8FiVOsB','parse','isArray','POST','isFinite','928muUVrZ','No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20','data','modelId','code','businessGroup','call','DB_TABLE','matched','6uiEJIV','1616450YNchie','579470eyXHdb','METADATA','source','str','Business\x20scenario\x20group\x20readback\x20must\x20be\x20available\x20by\x20datasetCode;\x20upgrade\x20the\x20backend\x20read\x20contract\x20instead\x20of\x20using\x20dblinkId/tableName.','93475QikFNU','--business-group\x20is\x20required'];a60_0x2d88=function(){return _0xb06dc;};return a60_0x2d88();}function readBusinessGroupFromDatasetDetail(_0x10701f,_0x1c4bbd){const _0x3f797c=a60_0x254d99,_0x4c6f0c=asPlainObject(_0x10701f[_0x3f797c(0xc6)]),_0x52c915=firstPresent(_0x10701f[_0x3f797c(0xd6)]);if(_0x52c915[_0x3f797c(0xee)])return _0x52c915;const _0x1c00a9=firstPresent(_0x4c6f0c[_0x3f797c(0xd6)]);if(_0x1c00a9[_0x3f797c(0xee)])return _0x1c00a9;if(_0x1c4bbd===_0x3f797c(0xd8))return{'found':![]};const _0xf74242=readBusinessGroupFromExtend(_0x10701f[_0x3f797c(0xbe)]);if(_0xf74242[_0x3f797c(0xee)])return _0xf74242;return readBusinessGroupFromExtend(_0x4c6f0c[_0x3f797c(0xbe)]);}function readBusinessGroupFromExtend(_0x881f2b){const _0x40a450=a60_0x254d99;if(_0x881f2b===undefined||_0x881f2b===null||_0x881f2b==='')return{'found':![]};if(typeof _0x881f2b===_0x40a450(0xe6))try{const _0x52e6b9=JSON[_0x40a450(0xcd)](_0x881f2b);return readBusinessGroupFromExtend(_0x52e6b9);}catch{return{'found':![]};}const _0x44af83=asPlainObject(_0x881f2b);if(Object['prototype'][_0x40a450(0xec)][_0x40a450(0xd7)](_0x44af83,_0x40a450(0xd6)))return{'found':!![],'value':_0x44af83['businessGroup']};return{'found':![]};}function firstPresent(..._0x259a66){for(const _0x15beef of _0x259a66){if(_0x15beef!==undefined&&_0x15beef!==null)return{'found':!![],'value':_0x15beef};}return{'found':![]};}function assertExpectedBusinessGroup(_0xa90a94,_0x8ca7fc){const _0x2a814d=a60_0x254d99;if(_0x8ca7fc===undefined)return;const _0x48e6e5=normalizeBusinessGroup(_0x8ca7fc);if(_0xa90a94!==_0x48e6e5)throw CliErrors['validation']('Expectation\x20mismatch\x20at\x20businessGroup',_0x2a814d(0xc0)+JSON[_0x2a814d(0xef)](_0x48e6e5)+',\x20actual\x20'+JSON[_0x2a814d(0xef)](_0xa90a94));}function buildBackendPayload(_0x52c036,_0x3dcb5a,_0x4e6a52){const _0x86491a=a60_0x254d99;return{'appCode':_0x52c036,'datasetCode':_0x3dcb5a[_0x86491a(0xd5)],'businessGroup':_0x4e6a52};}function normalizeBusinessGroup(_0x52c52d){const _0x211bcb=a60_0x254d99;if(_0x52c52d===undefined||_0x52c52d===null)return'';return String(_0x52c52d)[_0x211bcb(0xba)]();}function asPlainObject(_0x3c61d3){const _0xca137b=a60_0x254d99;if(!_0x3c61d3||typeof _0x3c61d3!==_0xca137b(0xb9)||Array[_0xca137b(0xce)](_0x3c61d3))return{};return _0x3c61d3;}function firstString(..._0x5c9c4c){const _0x38d97f=a60_0x254d99;for(const _0x4f0504 of _0x5c9c4c){if(typeof _0x4f0504===_0x38d97f(0xe6)&&_0x4f0504[_0x38d97f(0xba)]())return _0x4f0504[_0x38d97f(0xba)]();if(typeof _0x4f0504===_0x38d97f(0xe5)&&Number[_0x38d97f(0xd0)](_0x4f0504))return String(_0x4f0504);}return undefined;}function firstNumber(..._0x31f4e1){const _0x40c39f=a60_0x254d99;for(const _0x5ec63b of _0x31f4e1){if(typeof _0x5ec63b===_0x40c39f(0xe5)&&Number['isFinite'](_0x5ec63b))return _0x5ec63b;if(typeof _0x5ec63b===_0x40c39f(0xe6)&&_0x5ec63b[_0x40c39f(0xba)]()&&Number[_0x40c39f(0xd0)](Number(_0x5ec63b)))return Number(_0x5ec63b);}return null;}function trim(_0x31e896){const _0x43b103=a60_0x254d99;return String(_0x31e896||'')[_0x43b103(0xba)]();}
1
+ const a60_0x2e7b1d=a60_0x12ec;(function(_0x1ac9f6,_0x33d7cd){const _0x5de4cc=a60_0x12ec,_0x80c1f9=_0x1ac9f6();while(!![]){try{const _0x36acc4=parseInt(_0x5de4cc(0x160))/0x1*(-parseInt(_0x5de4cc(0x139))/0x2)+-parseInt(_0x5de4cc(0x150))/0x3*(-parseInt(_0x5de4cc(0x16b))/0x4)+parseInt(_0x5de4cc(0x156))/0x5*(parseInt(_0x5de4cc(0x168))/0x6)+-parseInt(_0x5de4cc(0x12c))/0x7+parseInt(_0x5de4cc(0x134))/0x8*(-parseInt(_0x5de4cc(0x142))/0x9)+parseInt(_0x5de4cc(0x13d))/0xa+parseInt(_0x5de4cc(0x141))/0xb;if(_0x36acc4===_0x33d7cd)break;else _0x80c1f9['push'](_0x80c1f9['shift']());}catch(_0xd65f26){_0x80c1f9['push'](_0x80c1f9['shift']());}}}(a60_0x16ad,0x65dbb));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_0x2e7b1d(0x13b);export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x269f6b,input:_0x1e41fa,dryRun:_0x4c0dbd}){const _0x4484c2=a60_0x2e7b1d;validateInput(_0x1e41fa);const _0x1dfb5b=normalizeBusinessGroup(_0x1e41fa['businessGroup']),_0x19e6b8=await getDatasetDetail(_0x1e41fa[_0x4484c2(0x15b)]),_0x1b28b5=resolveBusinessGroupDataset(_0x19e6b8,_0x1e41fa['code']),_0x48fa23=loadCurrentBusinessGroup(_0x19e6b8,_0x1b28b5);assertExpectedBusinessGroup(_0x48fa23,_0x1e41fa['expectBusinessGroup']);const _0x47fca6=buildBackendPayload(_0x269f6b,_0x1b28b5,_0x1dfb5b),_0x3f1e32=_0x48fa23!==_0x1dfb5b;let _0x369b9a;if(_0x3f1e32&&!_0x4c0dbd){await updateErBusinessGroup(_0x47fca6);const _0x2f97a1=await getDatasetDetail(_0x1b28b5[_0x4484c2(0x15b)]),_0x209c18=resolveBusinessGroupDataset(_0x2f97a1,_0x1b28b5[_0x4484c2(0x15b)]),_0x11cc17=loadCurrentBusinessGroup(_0x2f97a1,_0x209c18);if(_0x11cc17!==_0x1dfb5b)throw CliErrors[_0x4484c2(0x165)](_0x4484c2(0x14c),_0x4484c2(0x14f)+JSON[_0x4484c2(0x157)](_0x1dfb5b)+_0x4484c2(0x146)+JSON[_0x4484c2(0x157)](_0x11cc17)+'.');_0x369b9a={'verified':!![],'status':_0x4484c2(0x147),'afterReadback':{'businessGroup':_0x11cc17}};}else!_0x3f1e32&&(_0x369b9a={'verified':!![],'status':_0x4484c2(0x12d),'afterReadback':{'businessGroup':_0x48fa23}});const _0x4a53ad={'operation':_0x4484c2(0x15f),'appCode':_0x269f6b,'selector':{'code':_0x1b28b5['code']},'dataset':_0x1b28b5,'before':{'businessGroup':_0x48fa23},'after':{'businessGroup':_0x1dfb5b},'changed':_0x3f1e32,'dryRun':_0x4c0dbd,'submitted':_0x3f1e32&&!_0x4c0dbd,'backend':{'method':'POST','path':BACKEND_PATH,'payload':_0x47fca6},..._0x369b9a?{'verification':_0x369b9a}:{},'warnings':[]};return{'ok':!![],'data':_0x4a53ad,'message':_0x3f1e32?_0x4c0dbd?_0x4484c2(0x159)+_0x1b28b5['code']:'Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20'+_0x1b28b5[_0x4484c2(0x15b)]:_0x4484c2(0x14b)+_0x1b28b5[_0x4484c2(0x15b)]};}export const datasetBusinessGroupUpdate={'service':a60_0x2e7b1d(0x144),'command':a60_0x2e7b1d(0x14e),'description':'Update\x20business\x20scenario\x20group','risk':'write','flags':[CODE_FLAG,{'name':a60_0x2e7b1d(0x163),'type':'string','required':!![],'description':a60_0x2e7b1d(0x138)},{'name':a60_0x2e7b1d(0x151),'type':a60_0x2e7b1d(0x154),'required':![],'description':'Expected\x20current\x20business\x20scenario\x20group;\x20mismatch\x20aborts\x20without\x20writing'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0xd03a54){validateInput(readBusinessGroupUpdateInput(_0xd03a54));},async 'dryRun'(_0x50b465){const _0x53d6b1=a60_0x2e7b1d,_0x3d0a1e=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x50b465[_0x53d6b1(0x137)],'input':readBusinessGroupUpdateInput(_0x50b465),'dryRun':!![]});return{'method':_0x53d6b1(0x145),'url':BACKEND_PATH,'body':_0x3d0a1e['data'][_0x53d6b1(0x133)][_0x53d6b1(0x16d)],'description':_0x3d0a1e[_0x53d6b1(0x14d)],..._0x3d0a1e[_0x53d6b1(0x169)]};},async 'execute'(_0x1221e7){const _0x2492fc=a60_0x2e7b1d;return buildDatasetBusinessGroupUpdateResult({'appCode':_0x1221e7[_0x2492fc(0x137)],'input':readBusinessGroupUpdateInput(_0x1221e7),'dryRun':![]});}};function a60_0x12ec(_0x224efd,_0x32be25){_0x224efd=_0x224efd-0x12b;const _0x16ad16=a60_0x16ad();let _0x12ec42=_0x16ad16[_0x224efd];return _0x12ec42;}function readBusinessGroupUpdateInput(_0x15c5ab){const _0x4ba82a=a60_0x2e7b1d,_0x16395d=_0x15c5ab['str'](_0x4ba82a(0x151));return{'code':trim(_0x15c5ab[_0x4ba82a(0x135)](_0x4ba82a(0x15b))),'businessGroup':_0x15c5ab[_0x4ba82a(0x135)]('business-group'),'expectBusinessGroup':_0x16395d===undefined||_0x16395d===''?undefined:_0x16395d};}function validateInput(_0x390969){const _0xee8b8f=a60_0x2e7b1d;if(!trim(_0x390969[_0xee8b8f(0x15b)]))throw CliErrors[_0xee8b8f(0x13a)](_0xee8b8f(0x158));if(_0x390969[_0xee8b8f(0x152)]===undefined)throw CliErrors[_0xee8b8f(0x13a)](_0xee8b8f(0x14a));}function resolveBusinessGroupDataset(_0x4fdce9,_0x1a43c4){const _0x32316b=a60_0x2e7b1d,_0xbcb2a7=asPlainObject(_0x4fdce9['dataset']),_0xcf66fe=asPlainObject(_0x4fdce9[_0x32316b(0x12e)]),_0x375f5a=resolveSourceType(_0x4fdce9,_0xbcb2a7,_0xcf66fe),_0x7cf6e5=firstString(_0x4fdce9[_0x32316b(0x12b)],_0x4fdce9[_0x32316b(0x15b)],_0xbcb2a7['datasetCode'],_0x1a43c4)||_0x1a43c4;return{'id':firstNumber(_0x4fdce9[_0x32316b(0x136)],_0x4fdce9['id'],_0xbcb2a7[_0x32316b(0x162)])??firstString(_0x4fdce9[_0x32316b(0x136)],_0x4fdce9['id'],_0xbcb2a7[_0x32316b(0x162)])??null,'code':_0x7cf6e5,'name':firstString(_0x4fdce9[_0x32316b(0x140)],_0xbcb2a7[_0x32316b(0x164)],_0xbcb2a7[_0x32316b(0x140)])||null,'sourceType':_0x375f5a};}function resolveSourceType(_0x1189a7,_0x4f2eee,_0x247ce3){const _0x38a462=a60_0x2e7b1d,_0x1220eb=firstString(_0x1189a7['source'],_0x1189a7[_0x38a462(0x15e)],_0x4f2eee[_0x38a462(0x143)],_0x4f2eee[_0x38a462(0x15e)])?.['trim']()[_0x38a462(0x132)]();if(_0x1220eb===_0x38a462(0x13e)||_0x1220eb==='METADATA')return _0x1220eb;if(Object[_0x38a462(0x161)](_0x247ce3)['length']>0x0)return _0x38a462(0x13e);throw CliErrors[_0x38a462(0x13a)](_0x38a462(0x12f));}function loadCurrentBusinessGroup(_0x7b61e4,_0x30d2da){const _0x3d55e5=a60_0x2e7b1d,_0x40f6bb=readBusinessGroupFromDatasetDetail(_0x7b61e4,_0x30d2da[_0x3d55e5(0x15e)]);if(_0x40f6bb['found'])return normalizeBusinessGroup(_0x40f6bb[_0x3d55e5(0x16c)]);if(_0x30d2da[_0x3d55e5(0x15e)]===_0x3d55e5(0x167))return'';throw CliErrors[_0x3d55e5(0x13a)](_0x3d55e5(0x149),_0x3d55e5(0x153));}function readBusinessGroupFromDatasetDetail(_0x26059c,_0x278d6b){const _0x5d4da2=a60_0x2e7b1d,_0x2af8bd=asPlainObject(_0x26059c[_0x5d4da2(0x144)]),_0x4df007=firstPresent(_0x26059c[_0x5d4da2(0x152)]);if(_0x4df007[_0x5d4da2(0x16a)])return _0x4df007;const _0x3947c7=firstPresent(_0x2af8bd['businessGroup']);if(_0x3947c7[_0x5d4da2(0x16a)])return _0x3947c7;if(_0x278d6b===_0x5d4da2(0x13e))return{'found':![]};const _0x2ec158=readBusinessGroupFromExtend(_0x26059c[_0x5d4da2(0x166)]);if(_0x2ec158[_0x5d4da2(0x16a)])return _0x2ec158;return readBusinessGroupFromExtend(_0x2af8bd['extend']);}function readBusinessGroupFromExtend(_0x30cfbe){const _0x54d9fa=a60_0x2e7b1d;if(_0x30cfbe===undefined||_0x30cfbe===null||_0x30cfbe==='')return{'found':![]};if(typeof _0x30cfbe==='string')try{const _0x52b07b=JSON[_0x54d9fa(0x148)](_0x30cfbe);return readBusinessGroupFromExtend(_0x52b07b);}catch{return{'found':![]};}const _0x46c814=asPlainObject(_0x30cfbe);if(Object[_0x54d9fa(0x155)][_0x54d9fa(0x13f)]['call'](_0x46c814,_0x54d9fa(0x152)))return{'found':!![],'value':_0x46c814[_0x54d9fa(0x152)]};return{'found':![]};}function firstPresent(..._0x52f15b){for(const _0x23c4e3 of _0x52f15b){if(_0x23c4e3!==undefined&&_0x23c4e3!==null)return{'found':!![],'value':_0x23c4e3};}return{'found':![]};}function assertExpectedBusinessGroup(_0x2b19e8,_0x10c631){const _0x4bdc55=a60_0x2e7b1d;if(_0x10c631===undefined)return;const _0x31f7e5=normalizeBusinessGroup(_0x10c631);if(_0x2b19e8!==_0x31f7e5)throw CliErrors[_0x4bdc55(0x13a)](_0x4bdc55(0x131),_0x4bdc55(0x14f)+JSON[_0x4bdc55(0x157)](_0x31f7e5)+_0x4bdc55(0x146)+JSON[_0x4bdc55(0x157)](_0x2b19e8));}function buildBackendPayload(_0xec6408,_0x507694,_0x3ade54){const _0x152d22=a60_0x2e7b1d;return{'appCode':_0xec6408,'datasetCode':_0x507694[_0x152d22(0x15b)],'businessGroup':_0x3ade54};}function normalizeBusinessGroup(_0x521e08){const _0x570240=a60_0x2e7b1d;if(_0x521e08===undefined||_0x521e08===null)return'';return String(_0x521e08)[_0x570240(0x15a)]();}function a60_0x16ad(){const _0x528c70=['code','object','isArray','sourceType','update','95961SXSdKW','keys','datasetId','business-group','datasetName','apiError','extend','METADATA','12fXvBLw','data','found','142008pezjzw','value','payload','modelCode','3624558KGdKEU','unchanged','dbtableConfig','Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.','isFinite','Expectation\x20mismatch\x20at\x20businessGroup','toUpperCase','backend','490040KFEGPt','str','modelId','appCode','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','8lumdiI','validation','/smartapi/question/er-config/business-group/edit','number','4718860dWJXey','DB_TABLE','hasOwnProperty','name','1114531sskVBC','108QHaVNv','source','dataset','POST',',\x20actual\x20','matched','parse','Dataset\x20detail\x20does\x20not\x20expose\x20businessGroup.','--business-group\x20is\x20required','No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20','Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.','message','business-group-update','Expected\x20','63LCxMrq','expect-business-group','businessGroup','Business\x20scenario\x20group\x20readback\x20must\x20be\x20available\x20by\x20datasetCode;\x20upgrade\x20the\x20backend\x20read\x20contract\x20instead\x20of\x20using\x20dblinkId/tableName.','string','prototype','1837900qBzzDD','stringify','--code\x20is\x20required','Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20','trim'];a60_0x16ad=function(){return _0x528c70;};return a60_0x16ad();}function asPlainObject(_0x41a52e){const _0x4b216a=a60_0x2e7b1d;if(!_0x41a52e||typeof _0x41a52e!==_0x4b216a(0x15c)||Array[_0x4b216a(0x15d)](_0x41a52e))return{};return _0x41a52e;}function firstString(..._0x1e945d){const _0x2adc6e=a60_0x2e7b1d;for(const _0x41a0e4 of _0x1e945d){if(typeof _0x41a0e4===_0x2adc6e(0x154)&&_0x41a0e4[_0x2adc6e(0x15a)]())return _0x41a0e4[_0x2adc6e(0x15a)]();if(typeof _0x41a0e4===_0x2adc6e(0x13c)&&Number['isFinite'](_0x41a0e4))return String(_0x41a0e4);}return undefined;}function firstNumber(..._0x3e21b3){const _0x419e46=a60_0x2e7b1d;for(const _0x4f09f7 of _0x3e21b3){if(typeof _0x4f09f7==='number'&&Number[_0x419e46(0x130)](_0x4f09f7))return _0x4f09f7;if(typeof _0x4f09f7===_0x419e46(0x154)&&_0x4f09f7[_0x419e46(0x15a)]()&&Number[_0x419e46(0x130)](Number(_0x4f09f7)))return Number(_0x4f09f7);}return null;}function trim(_0x106f9a){const _0x56e399=a60_0x2e7b1d;return String(_0x106f9a||'')[_0x56e399(0x15a)]();}
@@ -1 +1 @@
1
- const a61_0x219bb9=a61_0x1754;(function(_0x515cc5,_0x5b4740){const _0x340318=a61_0x1754,_0x473108=_0x515cc5();while(!![]){try{const _0x637b81=-parseInt(_0x340318(0x1d4))/0x1*(parseInt(_0x340318(0x1c2))/0x2)+-parseInt(_0x340318(0x1b4))/0x3*(-parseInt(_0x340318(0x1b6))/0x4)+-parseInt(_0x340318(0x1c1))/0x5*(-parseInt(_0x340318(0x1b0))/0x6)+-parseInt(_0x340318(0x1cb))/0x7+parseInt(_0x340318(0x1b2))/0x8+-parseInt(_0x340318(0x1d2))/0x9*(-parseInt(_0x340318(0x1ce))/0xa)+-parseInt(_0x340318(0x1c9))/0xb;if(_0x637b81===_0x5b4740)break;else _0x473108['push'](_0x473108['shift']());}catch(_0x3d3a7f){_0x473108['push'](_0x473108['shift']());}}}(a61_0x1213,0x1cdf4));import{CliErrors}from'../../errors.js';function a61_0x1754(_0x4872d6,_0x3901bc){_0x4872d6=_0x4872d6-0x1ae;const _0x1213a0=a61_0x1213();let _0x17546d=_0x1213a0[_0x4872d6];return _0x17546d;}export const RUNTIME_DATA_ACCESS_COMMANDS={'cli':a61_0x219bb9(0x1bc),'filter':'lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27<json>\x27\x20--format\x20compress','getOne':a61_0x219bb9(0x1d0)};export const RUNTIME_DATA_ACCESS_SUMMARY=a61_0x219bb9(0x1c6);function valueToString(_0xc891d2){const _0x2c9f64=a61_0x219bb9;return _0xc891d2==null?'':String(_0xc891d2)[_0x2c9f64(0x1cf)]();}function a61_0x1213(){const _0x3892c0=['METADATA','1629070bTuIUZ','trim','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27\x20--format\x20compress','filter','9eCAqLJ','当前数据集\x20\x22','2fswehs','dbtable','UNKNOWN','datasetName','29154iFerVB','如果只是查看运行态真实行数据,请切换到\x20lovrabet\x20CLI:','1063056JttiQd','请先将该数据集升级/迁移为\x20DB_TABLE\x20数据集,再基于新的\x20dataset\x20code\x20继续开发。','409713XKlBzc','length','4omCVIo','\x20的\x20DB_TABLE\x20数据源上下文。','modelCode','code','\x20类型,没有可用于\x20','dbId','lovrabet','datasetCode','\x20是\x20','tableName','object','85BDXDcC','33090mlYkZB','dbtableConfig','SQL\x20schema\x20validation','unknown','Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.','name','原因:schema\x20introspection\x20与\x20custom\x20SQL\x20需要\x20source=DB_TABLE、dbtableConfig.dbId、dbtableConfig.tableName\x20与数据库连接上下文。','2574418dstBKf','dataset','907025yFqUms','toUpperCase'];a61_0x1213=function(){return _0x3892c0;};return a61_0x1213();}function getDatasetCode(_0x2e1c83){const _0x4c36e9=a61_0x219bb9;return valueToString(_0x2e1c83[_0x4c36e9(0x1b9)]??_0x2e1c83[_0x4c36e9(0x1b8)]??_0x2e1c83[_0x4c36e9(0x1ca)]?.[_0x4c36e9(0x1bd)]);}function getDatasetName(_0x370643){const _0x5487f4=a61_0x219bb9;return valueToString(_0x370643[_0x5487f4(0x1c7)]??_0x370643[_0x5487f4(0x1ca)]?.[_0x5487f4(0x1af)])||_0x5487f4(0x1c5);}function getDatasetSource(_0x1a9f03){const _0x18ace1=a61_0x219bb9;return valueToString(_0x1a9f03['source']??_0x1a9f03['dataset']?.['sourceType'])[_0x18ace1(0x1cc)]();}function getDbtableConfig(_0x4390d5){const _0x42d764=a61_0x219bb9,_0x2f2f14=_0x4390d5[_0x42d764(0x1c3)]??_0x4390d5[_0x42d764(0x1d5)];return _0x2f2f14&&typeof _0x2f2f14===_0x42d764(0x1c0)?_0x2f2f14:{};}export function isDbTableBackedDataset(_0x152095){const _0x4f3a39=a61_0x219bb9,_0x4a7afa=getDatasetSource(_0x152095);if(_0x4a7afa===_0x4f3a39(0x1cd))return![];const _0x2ff067=getDbtableConfig(_0x152095),_0x38d52e=_0x2ff067[_0x4f3a39(0x1bb)]??_0x2ff067['id'],_0x449b0d=valueToString(_0x2ff067[_0x4f3a39(0x1bf)]??_0x152095[_0x4f3a39(0x1bf)]??_0x152095[_0x4f3a39(0x1ca)]?.[_0x4f3a39(0x1bf)]);return _0x38d52e!==undefined&&_0x38d52e!==null&&_0x449b0d[_0x4f3a39(0x1b5)]>0x0;}export function filterDbTableBackedDatasets(_0x5bcb59){return _0x5bcb59['filter'](_0x4bb999=>isDbTableBackedDataset(_0x4bb999));}export function buildDbTableBackedRequirementMessage(_0x1cab23,_0xabf758=a61_0x219bb9(0x1c4)){const _0xd33c5f=a61_0x219bb9,_0x189b8c=getDatasetSource(_0x1cab23)||_0xd33c5f(0x1ae),_0x98a43c=getDatasetName(_0x1cab23),_0x44fc6d=getDatasetCode(_0x1cab23),_0x428d95=_0x44fc6d?'\x20('+_0x44fc6d+')':'';return[_0xd33c5f(0x1d3)+_0x98a43c+'\x22'+_0x428d95+_0xd33c5f(0x1be)+_0x189b8c+_0xd33c5f(0x1ba)+_0xabf758+_0xd33c5f(0x1b7),_0xd33c5f(0x1c8),_0xd33c5f(0x1b3),_0xd33c5f(0x1b1)+RUNTIME_DATA_ACCESS_COMMANDS[_0xd33c5f(0x1d1)]+';'+RUNTIME_DATA_ACCESS_COMMANDS['getOne']+'。']['join']('\x20');}export function assertDatasetIsDbTableBacked(_0x7f4659,_0x5e56ca){if(!isDbTableBackedDataset(_0x7f4659))throw CliErrors['validation'](buildDbTableBackedRequirementMessage(_0x7f4659,_0x5e56ca));}
1
+ const a61_0x26b587=a61_0x4328;(function(_0x252eaf,_0x103d85){const _0x1c3b41=a61_0x4328,_0x321b27=_0x252eaf();while(!![]){try{const _0x491b4f=parseInt(_0x1c3b41(0x13a))/0x1*(-parseInt(_0x1c3b41(0x127))/0x2)+-parseInt(_0x1c3b41(0x124))/0x3+-parseInt(_0x1c3b41(0x13f))/0x4*(parseInt(_0x1c3b41(0x131))/0x5)+-parseInt(_0x1c3b41(0x135))/0x6*(parseInt(_0x1c3b41(0x13e))/0x7)+-parseInt(_0x1c3b41(0x12c))/0x8*(parseInt(_0x1c3b41(0x140))/0x9)+-parseInt(_0x1c3b41(0x12f))/0xa+parseInt(_0x1c3b41(0x128))/0xb*(parseInt(_0x1c3b41(0x121))/0xc);if(_0x491b4f===_0x103d85)break;else _0x321b27['push'](_0x321b27['shift']());}catch(_0x1b0260){_0x321b27['push'](_0x321b27['shift']());}}}(a61_0x238a,0x48b94));import{CliErrors}from'../../errors.js';export const RUNTIME_DATA_ACCESS_COMMANDS={'cli':a61_0x26b587(0x13d),'filter':a61_0x26b587(0x136),'getOne':a61_0x26b587(0x133)};export const RUNTIME_DATA_ACCESS_SUMMARY=a61_0x26b587(0x13b);function valueToString(_0x596fee){return _0x596fee==null?'':String(_0x596fee)['trim']();}function a61_0x4328(_0x5b0b45,_0x532c36){_0x5b0b45=_0x5b0b45-0x121;const _0x238a0a=a61_0x238a();let _0x4328e0=_0x238a0a[_0x5b0b45];return _0x4328e0;}function getDatasetCode(_0x1a49a8){const _0x1614a1=a61_0x26b587;return valueToString(_0x1a49a8['code']??_0x1a49a8[_0x1614a1(0x139)]??_0x1a49a8[_0x1614a1(0x12a)]?.['datasetCode']);}function getDatasetName(_0x115578){const _0x57164f=a61_0x26b587;return valueToString(_0x115578[_0x57164f(0x126)]??_0x115578[_0x57164f(0x12a)]?.['datasetName'])||_0x57164f(0x141);}function a61_0x238a(){const _0xcacea8=['当前数据集\x20\x22','2802490rHroaU','tableName','5ybnuxz','METADATA','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27\x20--format\x20compress','filter','21936OvSlYi','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27<json>\x27\x20--format\x20compress','dbtable','UNKNOWN','modelCode','386coGVVc','Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.','如果只是查看运行态真实行数据,请切换到\x20lovrabet\x20CLI:','lovrabet','567QrBONc','152824PsQSNK','5046849ajDDkU','unknown','sourceType','length','72924dCtDEt','\x20类型,没有可用于\x20','请先将该数据集升级/迁移为\x20DB_TABLE\x20数据集,再基于新的\x20dataset\x20code\x20继续开发。','1558923DODPEU','getOne','name','1230vXVQQG','4037uYOtgc','object','dataset','source','8nxqmFf','\x20的\x20DB_TABLE\x20数据源上下文。'];a61_0x238a=function(){return _0xcacea8;};return a61_0x238a();}function getDatasetSource(_0x142291){const _0x234f42=a61_0x26b587;return valueToString(_0x142291[_0x234f42(0x12b)]??_0x142291['dataset']?.[_0x234f42(0x142)])['toUpperCase']();}function getDbtableConfig(_0x5aaf22){const _0x270b21=a61_0x26b587,_0x33d68d=_0x5aaf22['dbtableConfig']??_0x5aaf22[_0x270b21(0x137)];return _0x33d68d&&typeof _0x33d68d===_0x270b21(0x129)?_0x33d68d:{};}export function isDbTableBackedDataset(_0x50ea50){const _0x3b74d1=a61_0x26b587,_0x422d4e=getDatasetSource(_0x50ea50);if(_0x422d4e===_0x3b74d1(0x132))return![];const _0x162f4a=getDbtableConfig(_0x50ea50),_0x292634=_0x162f4a['dbId']??_0x162f4a['id'],_0x5e0f75=valueToString(_0x162f4a[_0x3b74d1(0x130)]??_0x50ea50[_0x3b74d1(0x130)]??_0x50ea50[_0x3b74d1(0x12a)]?.['tableName']);return _0x292634!==undefined&&_0x292634!==null&&_0x5e0f75[_0x3b74d1(0x143)]>0x0;}export function filterDbTableBackedDatasets(_0x51f988){const _0x5c9b5a=a61_0x26b587;return _0x51f988[_0x5c9b5a(0x134)](_0x38967d=>isDbTableBackedDataset(_0x38967d));}export function buildDbTableBackedRequirementMessage(_0xc4cb13,_0x7460cb='SQL\x20schema\x20validation'){const _0x276dc9=a61_0x26b587,_0x2877a0=getDatasetSource(_0xc4cb13)||_0x276dc9(0x138),_0xe62c1e=getDatasetName(_0xc4cb13),_0x3573a0=getDatasetCode(_0xc4cb13),_0x5ab381=_0x3573a0?'\x20('+_0x3573a0+')':'';return[_0x276dc9(0x12e)+_0xe62c1e+'\x22'+_0x5ab381+'\x20是\x20'+_0x2877a0+_0x276dc9(0x122)+_0x7460cb+_0x276dc9(0x12d),'原因:schema\x20introspection\x20与\x20custom\x20SQL\x20需要\x20source=DB_TABLE、dbtableConfig.dbId、dbtableConfig.tableName\x20与数据库连接上下文。',_0x276dc9(0x123),_0x276dc9(0x13c)+RUNTIME_DATA_ACCESS_COMMANDS[_0x276dc9(0x134)]+';'+RUNTIME_DATA_ACCESS_COMMANDS[_0x276dc9(0x125)]+'。']['join']('\x20');}export function assertDatasetIsDbTableBacked(_0x39f6e5,_0x20108a){if(!isDbTableBackedDataset(_0x39f6e5))throw CliErrors['validation'](buildDbTableBackedRequirementMessage(_0x39f6e5,_0x20108a));}
@@ -1 +1 @@
1
- const a62_0x534f0a=a62_0x57b2;function a62_0x5a50(){const _0x22e60e=['\x20failed','20qvDPgT','--confirm\x20is\x20required\x20to\x20delete\x20datasets.','Would\x20delete\x20','One\x20of\x20--id,\x20--code,\x20or\x20--dbid\x20is\x20required.','object','410245xJefEW','Matched\x20','\x20dataset(s),\x20but\x20--expected-count\x20is\x20','number','length','3679032IJhPRg','POST','num','\x20dataset(s);\x20','relatedPageInfoList','\x20dataset(s).\x20This\x20only\x20deletes\x20platform\x20dataset\x20metadata\x20and\x20related\x20page/menu\x20records,\x20not\x20physical\x20databases\x20or\x20tables.','149555WjJSjY','high-risk-write','284070XcHaNP','appCode','Deleted\x20','code','Use\x20only\x20one\x20of\x20--id,\x20--code,\x20or\x20--dbid.','deleted','dbid','str','Required\x20to\x20execute\x20dataset\x20deletion','2251288YyZalU','filter','delete','dataset','expected-count','description','message','tableName','10SNuvEh','dbid=','dbName','dbId','dbtableConfig','id=','10409202otCkjf','confirm','boolean','source','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm\x20when\x20the\x20target\x20list\x20is\x20correct.','push','/smartapi/dataset/delete-dataset','188499QiaTfJ','isArray','Abort\x20unless\x20the\x20matched\x20dataset\x20count\x20equals\x20this\x20value','validation','Delete\x20all\x20datasets\x20under\x20this\x20database\x20connection\x20id'];a62_0x5a50=function(){return _0x22e60e;};return a62_0x5a50();}(function(_0xeaa42,_0x5d92d5){const _0x336ef9=a62_0x57b2,_0x22eb3e=_0xeaa42();while(!![]){try{const _0xcd950=parseInt(_0x336ef9(0x1fe))/0x1*(-parseInt(_0x336ef9(0x211))/0x2)+-parseInt(_0x336ef9(0x1e8))/0x3*(-parseInt(_0x336ef9(0x1ee))/0x4)+parseInt(_0x336ef9(0x1f3))/0x5+parseInt(_0x336ef9(0x200))/0x6+-parseInt(_0x336ef9(0x1f8))/0x7+parseInt(_0x336ef9(0x209))/0x8+parseInt(_0x336ef9(0x217))/0x9;if(_0xcd950===_0x5d92d5)break;else _0x22eb3e['push'](_0x22eb3e['shift']());}catch(_0x118dea){_0x22eb3e['push'](_0x22eb3e['shift']());}}}(a62_0x5a50,0x947c5));import{deleteDataset,getDatasetDetail,listDatasets}from'../../core/api-client.js';function a62_0x57b2(_0x1d8164,_0x3f261d){_0x1d8164=_0x1d8164-0x1e8;const _0x5a50f3=a62_0x5a50();let _0x57b284=_0x5a50f3[_0x1d8164];return _0x57b284;}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_0x534f0a(0x1f6),'description':'Dataset\x20id'},DBID_FLAG={'name':'dbid','type':a62_0x534f0a(0x1f6),'description':a62_0x534f0a(0x1ec)},CONFIRM_FLAG={'name':'confirm','type':a62_0x534f0a(0x219),'description':a62_0x534f0a(0x208)},EXPECTED_COUNT_FLAG={'name':a62_0x534f0a(0x20d),'type':a62_0x534f0a(0x1f6),'description':a62_0x534f0a(0x1ea)};export const datasetDelete={'service':a62_0x534f0a(0x20c),'command':a62_0x534f0a(0x20b),'description':'Delete\x20dataset\x20metadata\x20by\x20id/code\x20or\x20all\x20datasets\x20under\x20a\x20db\x20id','risk':a62_0x534f0a(0x1ff),'flags':[DATASET_ID_FLAG,CODE_FLAG_OPTIONAL,DBID_FLAG,CONFIRM_FLAG,EXPECTED_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x5adc11){const _0x48a2e6=a62_0x534f0a,_0x1e8f93=_0x5adc11[_0x48a2e6(0x1fa)]('id'),_0x4169fe=_0x5adc11[_0x48a2e6(0x207)]('code'),_0xe968e7=_0x5adc11[_0x48a2e6(0x1fa)](_0x48a2e6(0x206)),_0x4c185b=[_0x1e8f93>0x0,Boolean(_0x4169fe),_0xe968e7>0x0][_0x48a2e6(0x20a)](Boolean);if(_0x4c185b[_0x48a2e6(0x1f7)]===0x0)throw CliErrors[_0x48a2e6(0x1eb)](_0x48a2e6(0x1f1));if(_0x4c185b[_0x48a2e6(0x1f7)]>0x1)throw CliErrors[_0x48a2e6(0x1eb)](_0x48a2e6(0x204));},async 'dryRun'(_0x52f12b){const _0x12ea80=a62_0x534f0a,_0xaccf00=await resolveTargets(_0x52f12b);return{'method':_0x12ea80(0x1f9),'url':_0x12ea80(0x21d),'body':{'appCode':_0x52f12b[_0x12ea80(0x201)],'count':_0xaccf00[_0x12ea80(0x1f7)],'datasets':_0xaccf00},'description':_0x12ea80(0x1f0)+_0xaccf00[_0x12ea80(0x1f7)]+_0x12ea80(0x1fd)};},async 'execute'(_0xdf858c){const _0x568924=a62_0x534f0a;if(!_0xdf858c['bool'](_0x568924(0x218)))throw CliErrors[_0x568924(0x1eb)](_0x568924(0x1ef),_0x568924(0x21b));const _0x1e214b=await resolveTargets(_0xdf858c),_0xb00eea=[],_0x2916dc=[];for(const _0x317cd5 of _0x1e214b){try{await deleteDataset(_0xdf858c[_0x568924(0x201)],_0x317cd5['id']),_0xb00eea[_0x568924(0x21c)](_0x317cd5);}catch(_0x51a953){_0x2916dc['push']({..._0x317cd5,'error':_0x51a953 instanceof Error?_0x51a953[_0x568924(0x20f)]:String(_0x51a953)});}}if(_0x2916dc['length']>0x0)return{'ok':![],'data':{'requested':_0x1e214b['length'],'deletedCount':_0xb00eea[_0x568924(0x1f7)],'failedCount':_0x2916dc[_0x568924(0x1f7)],'deleted':_0xb00eea,'failed':_0x2916dc},'message':_0x568924(0x202)+_0xb00eea[_0x568924(0x1f7)]+'/'+_0x1e214b[_0x568924(0x1f7)]+_0x568924(0x1fb)+_0x2916dc[_0x568924(0x1f7)]+_0x568924(0x1ed)};return{'ok':!![],'data':{'requested':_0x1e214b[_0x568924(0x1f7)],'deletedCount':_0xb00eea['length'],'deleted':_0xb00eea},'message':_0x568924(0x202)+_0xb00eea[_0x568924(0x1f7)]+'\x20dataset(s)'};}};async function resolveTargets(_0x12b119){const _0x46cc51=a62_0x534f0a,_0x3c4d65=_0x12b119[_0x46cc51(0x1fa)]('id'),_0x5242f2=_0x12b119[_0x46cc51(0x207)](_0x46cc51(0x203)),_0x5c4c5c=_0x12b119[_0x46cc51(0x1fa)](_0x46cc51(0x206));let _0x3ad61f;_0x5242f2?(_0x3ad61f=await listDatasets(_0x12b119['appCode'],{'code':_0x5242f2}),_0x3ad61f=_0x3ad61f[_0x46cc51(0x20a)](_0x238e06=>_0x238e06['code']===_0x5242f2)):(_0x3ad61f=await listDatasets(_0x12b119[_0x46cc51(0x201)]),_0x3c4d65>0x0&&(_0x3ad61f=_0x3ad61f[_0x46cc51(0x20a)](_0x4ed568=>_0x4ed568['id']===_0x3c4d65)),_0x5c4c5c>0x0&&(_0x3ad61f=_0x3ad61f[_0x46cc51(0x20a)](_0x2a0ece=>_0x2a0ece[_0x46cc51(0x215)]?.['dbId']===_0x5c4c5c)));const _0x243352=[];for(const _0x1dbebd of _0x3ad61f){const _0x1b1ff0=await getDatasetDetail(_0x1dbebd[_0x46cc51(0x203)]),_0x2c47d3=Array[_0x46cc51(0x1e9)](_0x1b1ff0[_0x46cc51(0x1fc)])?_0x1b1ff0['relatedPageInfoList'][_0x46cc51(0x20a)](_0x19df6f=>_0x19df6f!=null&&typeof _0x19df6f===_0x46cc51(0x1f2)&&_0x19df6f[_0x46cc51(0x205)]!==!![]):[];_0x243352[_0x46cc51(0x21c)](normalizeTarget(_0x1dbebd,_0x2c47d3[_0x46cc51(0x1f7)]));}if(_0x243352[_0x46cc51(0x1f7)]===0x0){const _0x48a859=_0x5242f2||(_0x3c4d65>0x0?_0x46cc51(0x216)+_0x3c4d65:_0x46cc51(0x212)+_0x5c4c5c);throw CliErrors[_0x46cc51(0x1eb)]('No\x20undeleted\x20dataset\x20found\x20for\x20'+_0x48a859+'.');}const _0x5cae00=_0x12b119[_0x46cc51(0x1fa)]('expected-count');if(_0x5cae00>0x0&&_0x243352[_0x46cc51(0x1f7)]!==_0x5cae00)throw CliErrors[_0x46cc51(0x1eb)](_0x46cc51(0x1f4)+_0x243352['length']+_0x46cc51(0x1f5)+_0x5cae00+'.');return _0x243352;}function normalizeTarget(_0x36f751,_0x357c60){const _0xef7dc6=a62_0x534f0a,_0x46948a=_0x36f751[_0xef7dc6(0x215)]??{};return{'id':_0x36f751['id'],'code':_0x36f751[_0xef7dc6(0x203)],'name':_0x36f751['name'],'description':_0x36f751[_0xef7dc6(0x20e)],'source':_0x36f751[_0xef7dc6(0x21a)],'dbId':_0x46948a[_0xef7dc6(0x214)],'dbName':_0x46948a[_0xef7dc6(0x213)],'tableName':_0x46948a[_0xef7dc6(0x210)],'relatedPageCount':_0x357c60};}
1
+ const a62_0x5351e6=a62_0x10c9;(function(_0x158e35,_0xf73861){const _0x2c67f7=a62_0x10c9,_0x3e1e0d=_0x158e35();while(!![]){try{const _0x2b81e2=-parseInt(_0x2c67f7(0x10b))/0x1*(parseInt(_0x2c67f7(0x10f))/0x2)+parseInt(_0x2c67f7(0xff))/0x3*(parseInt(_0x2c67f7(0xec))/0x4)+parseInt(_0x2c67f7(0x107))/0x5*(-parseInt(_0x2c67f7(0xf5))/0x6)+-parseInt(_0x2c67f7(0x10c))/0x7+parseInt(_0x2c67f7(0xe3))/0x8+parseInt(_0x2c67f7(0xd9))/0x9*(parseInt(_0x2c67f7(0xf6))/0xa)+-parseInt(_0x2c67f7(0xf7))/0xb*(-parseInt(_0x2c67f7(0x10e))/0xc);if(_0x2b81e2===_0xf73861)break;else _0x3e1e0d['push'](_0x3e1e0d['shift']());}catch(_0x376dcd){_0x3e1e0d['push'](_0x3e1e0d['shift']());}}}(a62_0x31c3,0xd8e3e));function a62_0x31c3(){const _0x3438b7=['bool','Dataset\x20id','dbid','length','\x20failed','32kkPFqt','message','dbtableConfig','dbName','\x20dataset(s),\x20but\x20--expected-count\x20is\x20','validation','Delete\x20dataset\x20metadata\x20by\x20id/code\x20or\x20all\x20datasets\x20under\x20a\x20db\x20id','Abort\x20unless\x20the\x20matched\x20dataset\x20count\x20equals\x20this\x20value','Use\x20only\x20one\x20of\x20--id,\x20--code,\x20or\x20--dbid.','8388222IwMUKF','10ozVbNz','53174NMmLQN','delete','Delete\x20all\x20datasets\x20under\x20this\x20database\x20connection\x20id','POST','\x20dataset(s)','dataset','object','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm\x20when\x20the\x20target\x20list\x20is\x20correct.','271923xljWfP','isArray','high-risk-write','source','id=','push','str','dbId','5LJAOMt','appCode','boolean','No\x20undeleted\x20dataset\x20found\x20for\x20','65xpEiei','2807728LvkUDD','relatedPageInfoList','1884Kdgprd','20912BlxSRt','Deleted\x20','\x20dataset(s);\x20','description','15484437TmDCFs','confirm','Matched\x20','number','dbid=','--confirm\x20is\x20required\x20to\x20delete\x20datasets.','Required\x20to\x20execute\x20dataset\x20deletion','filter','deleted','num','1300832nAznmT','One\x20of\x20--id,\x20--code,\x20or\x20--dbid\x20is\x20required.','code','\x20dataset(s).\x20This\x20only\x20deletes\x20platform\x20dataset\x20metadata\x20and\x20related\x20page/menu\x20records,\x20not\x20physical\x20databases\x20or\x20tables.'];a62_0x31c3=function(){return _0x3438b7;};return a62_0x31c3();}function a62_0x10c9(_0x13b2a0,_0x258941){_0x13b2a0=_0x13b2a0-0xd9;const _0x31c349=a62_0x31c3();let _0x10c9f7=_0x31c349[_0x13b2a0];return _0x10c9f7;}import{deleteDataset,getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';const DATASET_ID_FLAG={'name':'id','type':a62_0x5351e6(0xdc),'description':a62_0x5351e6(0xe8)},DBID_FLAG={'name':a62_0x5351e6(0xe9),'type':'number','description':a62_0x5351e6(0xf9)},CONFIRM_FLAG={'name':a62_0x5351e6(0xda),'type':a62_0x5351e6(0x109),'description':a62_0x5351e6(0xdf)},EXPECTED_COUNT_FLAG={'name':'expected-count','type':a62_0x5351e6(0xdc),'description':a62_0x5351e6(0xf3)};export const datasetDelete={'service':a62_0x5351e6(0xfc),'command':a62_0x5351e6(0xf8),'description':a62_0x5351e6(0xf2),'risk':a62_0x5351e6(0x101),'flags':[DATASET_ID_FLAG,CODE_FLAG_OPTIONAL,DBID_FLAG,CONFIRM_FLAG,EXPECTED_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x2c6f40){const _0x3e9861=a62_0x5351e6,_0x19fe0e=_0x2c6f40['num']('id'),_0xd2ea51=_0x2c6f40['str'](_0x3e9861(0xe5)),_0x56c5cf=_0x2c6f40[_0x3e9861(0xe2)]('dbid'),_0x401e2c=[_0x19fe0e>0x0,Boolean(_0xd2ea51),_0x56c5cf>0x0][_0x3e9861(0xe0)](Boolean);if(_0x401e2c[_0x3e9861(0xea)]===0x0)throw CliErrors[_0x3e9861(0xf1)](_0x3e9861(0xe4));if(_0x401e2c[_0x3e9861(0xea)]>0x1)throw CliErrors[_0x3e9861(0xf1)](_0x3e9861(0xf4));},async 'dryRun'(_0x4bc1bc){const _0x460164=a62_0x5351e6,_0x115f32=await resolveTargets(_0x4bc1bc);return{'method':_0x460164(0xfa),'url':'/smartapi/dataset/delete-dataset','body':{'appCode':_0x4bc1bc[_0x460164(0x108)],'count':_0x115f32['length'],'datasets':_0x115f32},'description':'Would\x20delete\x20'+_0x115f32[_0x460164(0xea)]+_0x460164(0xe6)};},async 'execute'(_0x154fd1){const _0x448892=a62_0x5351e6;if(!_0x154fd1[_0x448892(0xe7)](_0x448892(0xda)))throw CliErrors['validation'](_0x448892(0xde),_0x448892(0xfe));const _0x32f6f0=await resolveTargets(_0x154fd1),_0x3aad59=[],_0x5e2067=[];for(const _0x101409 of _0x32f6f0){try{await deleteDataset(_0x154fd1[_0x448892(0x108)],_0x101409['id']),_0x3aad59['push'](_0x101409);}catch(_0x2e261c){_0x5e2067[_0x448892(0x104)]({..._0x101409,'error':_0x2e261c instanceof Error?_0x2e261c[_0x448892(0xed)]:String(_0x2e261c)});}}if(_0x5e2067[_0x448892(0xea)]>0x0)return{'ok':![],'data':{'requested':_0x32f6f0[_0x448892(0xea)],'deletedCount':_0x3aad59[_0x448892(0xea)],'failedCount':_0x5e2067[_0x448892(0xea)],'deleted':_0x3aad59,'failed':_0x5e2067},'message':_0x448892(0x110)+_0x3aad59['length']+'/'+_0x32f6f0[_0x448892(0xea)]+_0x448892(0x111)+_0x5e2067[_0x448892(0xea)]+_0x448892(0xeb)};return{'ok':!![],'data':{'requested':_0x32f6f0[_0x448892(0xea)],'deletedCount':_0x3aad59[_0x448892(0xea)],'deleted':_0x3aad59},'message':_0x448892(0x110)+_0x3aad59[_0x448892(0xea)]+_0x448892(0xfb)};}};async function resolveTargets(_0x2bb42f){const _0x144e71=a62_0x5351e6,_0x3e2e6d=_0x2bb42f[_0x144e71(0xe2)]('id'),_0x51799d=_0x2bb42f[_0x144e71(0x105)]('code'),_0x55ea6d=_0x2bb42f['num']('dbid');let _0x10a4f6;_0x51799d?(_0x10a4f6=await listDatasets(_0x2bb42f[_0x144e71(0x108)],{'code':_0x51799d}),_0x10a4f6=_0x10a4f6['filter'](_0x51d6bc=>_0x51d6bc[_0x144e71(0xe5)]===_0x51799d)):(_0x10a4f6=await listDatasets(_0x2bb42f[_0x144e71(0x108)]),_0x3e2e6d>0x0&&(_0x10a4f6=_0x10a4f6['filter'](_0x4732ac=>_0x4732ac['id']===_0x3e2e6d)),_0x55ea6d>0x0&&(_0x10a4f6=_0x10a4f6[_0x144e71(0xe0)](_0x138669=>_0x138669[_0x144e71(0xee)]?.[_0x144e71(0x106)]===_0x55ea6d)));const _0x3ec487=[];for(const _0x235d1c of _0x10a4f6){const _0x7f71da=await getDatasetDetail(_0x235d1c[_0x144e71(0xe5)]),_0x335bd2=Array[_0x144e71(0x100)](_0x7f71da[_0x144e71(0x10d)])?_0x7f71da['relatedPageInfoList'][_0x144e71(0xe0)](_0x1cbbbb=>_0x1cbbbb!=null&&typeof _0x1cbbbb===_0x144e71(0xfd)&&_0x1cbbbb[_0x144e71(0xe1)]!==!![]):[];_0x3ec487[_0x144e71(0x104)](normalizeTarget(_0x235d1c,_0x335bd2[_0x144e71(0xea)]));}if(_0x3ec487[_0x144e71(0xea)]===0x0){const _0x4c6adc=_0x51799d||(_0x3e2e6d>0x0?_0x144e71(0x103)+_0x3e2e6d:_0x144e71(0xdd)+_0x55ea6d);throw CliErrors[_0x144e71(0xf1)](_0x144e71(0x10a)+_0x4c6adc+'.');}const _0x374399=_0x2bb42f[_0x144e71(0xe2)]('expected-count');if(_0x374399>0x0&&_0x3ec487[_0x144e71(0xea)]!==_0x374399)throw CliErrors['validation'](_0x144e71(0xdb)+_0x3ec487['length']+_0x144e71(0xf0)+_0x374399+'.');return _0x3ec487;}function normalizeTarget(_0x1d4704,_0x2da86c){const _0x1d2b13=a62_0x5351e6,_0x339780=_0x1d4704[_0x1d2b13(0xee)]??{};return{'id':_0x1d4704['id'],'code':_0x1d4704['code'],'name':_0x1d4704['name'],'description':_0x1d4704[_0x1d2b13(0x112)],'source':_0x1d4704[_0x1d2b13(0x102)],'dbId':_0x339780['dbId'],'dbName':_0x339780[_0x1d2b13(0xef)],'tableName':_0x339780['tableName'],'relatedPageCount':_0x2da86c};}
@@ -1 +1 @@
1
- function a63_0x4d4b(_0x39f3c1,_0x2c2c3b){_0x39f3c1=_0x39f3c1-0x1df;const _0x530398=a63_0x5303();let _0x4d4bc7=_0x530398[_0x39f3c1];return _0x4d4bc7;}const a63_0x412521=a63_0x4d4b;(function(_0x228172,_0x3c1f20){const _0x516bce=a63_0x4d4b,_0x2abc57=_0x228172();while(!![]){try{const _0x182643=-parseInt(_0x516bce(0x1df))/0x1*(parseInt(_0x516bce(0x1e3))/0x2)+-parseInt(_0x516bce(0x215))/0x3+parseInt(_0x516bce(0x202))/0x4+parseInt(_0x516bce(0x21f))/0x5*(-parseInt(_0x516bce(0x20d))/0x6)+parseInt(_0x516bce(0x1f4))/0x7+-parseInt(_0x516bce(0x21d))/0x8+parseInt(_0x516bce(0x1ec))/0x9*(parseInt(_0x516bce(0x1fe))/0xa);if(_0x182643===_0x3c1f20)break;else _0x2abc57['push'](_0x2abc57['shift']());}catch(_0xd47c8d){_0x2abc57['push'](_0x2abc57['shift']());}}}(a63_0x5303,0x3c190));function a63_0x5303(){const _0x22446a=['name','requestBody','7398GCgOWy','extend','creatorIdField','length','requestFields','tableName','responseBody','toTableName','512400ephMZB','main_sub','isArray','path','description','dbId','allFields','filter','type','required','10520LqBwmr','beforeScriptId','bizRelationType','parse','1726532jhxJpb','modifierIdField','validateRules','method','datasetKey','modelCode','fields','deleted','responseFields','relatedPageInfoList','alias','137658oJCApN','deprecated','map','read','columnCodeListWithDeleted','split','tableComment','toFieldLabel','571185naitlu','dbtableConfig','entries','dbName','trim','toDatasetCode','afterScriptId','dataset','1617504AsfiyY','dbType','65jDAUVg','object','host','labelField','createTimeField','operations','updateTimeField','modelId','displayName','push','logicField','toField','options','properties','dataType','6655gSGVFU','doType','title','code','130DxTgfJ','pkField','formatRules','fromField','string','dblinkInfoDTO','relations'];a63_0x5303=function(){return _0x22446a;};return a63_0x5303();}import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function normalizeField(_0x3973f6){const _0xb42360=a63_0x4d4b;if(_0x3973f6[_0xb42360(0x209)])return null;const _0x5e7e5b=Boolean(_0x3973f6[_0xb42360(0x227)]!==undefined||_0x3973f6[_0xb42360(0x1e0)]!==undefined);let _0x1665e9={};if(!_0x5e7e5b&&typeof _0x3973f6['extend']==='string')try{_0x1665e9=JSON['parse'](_0x3973f6[_0xb42360(0x1ed)]);}catch{}const _0x2432c5=_0x5e7e5b?_0x3973f6['name']:_0x3973f6['code'],_0x3d38bc=_0x5e7e5b?_0x3973f6[_0xb42360(0x227)]:_0x3973f6[_0xb42360(0x1ea)],_0x287828=_0x5e7e5b?_0x3973f6[_0xb42360(0x1e0)]:_0x3973f6[_0xb42360(0x1fc)]||_0x3973f6[_0xb42360(0x22d)],_0xde1e81=_0x5e7e5b?_0x3973f6[_0xb42360(0x1e4)]===!![]:_0x1665e9['pkField']===!![],_0x3cb666=_0x5e7e5b?_0x3973f6[_0xb42360(0x1fd)]===!![]:_0x1665e9[_0xb42360(0x1fd)]===!![],_0x53b857=_0x5e7e5b?_0x3973f6[_0xb42360(0x22b)]??null:_0x1665e9[_0xb42360(0x22b)]??null,_0x13dc75={'name':_0x2432c5,'displayName':_0x3d38bc||_0x2432c5,'type':_0x287828,'dbType':_0x3973f6[_0xb42360(0x21e)],'pk':_0xde1e81,'required':_0x3cb666,'deprecated':_0x3973f6[_0xb42360(0x20e)]===!![],'description':_0x3973f6[_0xb42360(0x1f8)]||undefined};return Array[_0xb42360(0x1f6)](_0x53b857)&&_0x53b857[_0xb42360(0x1ef)]>0x0&&(_0x13dc75[_0xb42360(0x22b)]=_0x53b857),_0x13dc75;}function parseJsonMaybe(_0x3a0a1d){const _0x7788e8=a63_0x4d4b;if(typeof _0x3a0a1d!==_0x7788e8(0x1e7))return _0x3a0a1d;try{return JSON[_0x7788e8(0x201)](_0x3a0a1d);}catch{return _0x3a0a1d;}}function normalizeOperationEntry(_0x154558,_0x5ceaf8){const _0x2ffbb7=a63_0x4d4b;if(!_0x5ceaf8||typeof _0x5ceaf8!==_0x2ffbb7(0x220))return null;if(!_0x5ceaf8[_0x2ffbb7(0x205)]||!_0x5ceaf8[_0x2ffbb7(0x1f7)])return null;const _0x5efe74={'name':_0x154558,'method':_0x5ceaf8[_0x2ffbb7(0x205)],'path':_0x5ceaf8['path']};if(_0x5ceaf8[_0x2ffbb7(0x221)])_0x5efe74['host']=_0x5ceaf8[_0x2ffbb7(0x221)];if(_0x5ceaf8[_0x2ffbb7(0x1eb)]!=null){const _0x1a9bff=parseJsonMaybe(_0x5ceaf8[_0x2ffbb7(0x1eb)]);_0x5efe74[_0x2ffbb7(0x1eb)]=_0x1a9bff;}if(_0x5ceaf8[_0x2ffbb7(0x1f2)]!=null){const _0x67ef36=parseJsonMaybe(_0x5ceaf8['responseBody']);_0x5efe74['responseBody']=_0x67ef36;}if(_0x5ceaf8[_0x2ffbb7(0x1ff)]!=null)_0x5efe74[_0x2ffbb7(0x1ff)]=_0x5ceaf8[_0x2ffbb7(0x1ff)];if(_0x5ceaf8[_0x2ffbb7(0x21b)]!=null)_0x5efe74[_0x2ffbb7(0x21b)]=_0x5ceaf8[_0x2ffbb7(0x21b)];if(Array['isArray'](_0x5ceaf8[_0x2ffbb7(0x1f0)]))_0x5efe74[_0x2ffbb7(0x1f0)]=_0x5ceaf8[_0x2ffbb7(0x1f0)];if(Array[_0x2ffbb7(0x1f6)](_0x5ceaf8['responseFields']))_0x5efe74[_0x2ffbb7(0x20a)]=_0x5ceaf8['responseFields'];return _0x5efe74;}function summarizeDbtable(_0x1c67c0){const _0x5657a2=a63_0x4d4b,_0x6c7942={},_0x2be65e=[_0x5657a2(0x1f9),_0x5657a2(0x218),_0x5657a2(0x1f1),_0x5657a2(0x206),_0x5657a2(0x1e4),_0x5657a2(0x1fa),_0x5657a2(0x229),_0x5657a2(0x223),_0x5657a2(0x225),_0x5657a2(0x1ee),'creatorNameField',_0x5657a2(0x203),'modifierNameField',_0x5657a2(0x222),_0x5657a2(0x1e8)];for(const _0x3debb5 of _0x2be65e){if(_0x1c67c0[_0x3debb5]!==undefined)_0x6c7942[_0x3debb5]=_0x1c67c0[_0x3debb5];}return typeof _0x6c7942[_0x5657a2(0x1fa)]==='string'&&_0x6c7942['allFields'][_0x5657a2(0x1ef)]>0x0&&(_0x6c7942['allFieldNames']=_0x6c7942['allFields'][_0x5657a2(0x212)](',')[_0x5657a2(0x20f)](_0x43e79f=>_0x43e79f[_0x5657a2(0x219)]())['filter'](Boolean)),_0x6c7942;}function normalizeRelatedPages(_0x14a970){const _0x37b24d=a63_0x4d4b;if(!Array[_0x37b24d(0x1f6)](_0x14a970))return[];return _0x14a970[_0x37b24d(0x1fb)](_0x4bcc39=>_0x4bcc39&&typeof _0x4bcc39===_0x37b24d(0x220))[_0x37b24d(0x20f)](_0x401dba=>({'id':_0x401dba['id'],'type':_0x401dba[_0x37b24d(0x1fc)],'code':_0x401dba[_0x37b24d(0x1e2)],'title':_0x401dba[_0x37b24d(0x1e1)],'deleted':_0x401dba[_0x37b24d(0x209)]===!![]}));}export const datasetDetail={'service':a63_0x412521(0x21c),'command':'detail','description':'Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','risk':a63_0x412521(0x210),'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a63_0x412521(0x20c),'type':a63_0x412521(0x1e7),'description':'Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically'}],async 'execute'(_0xae5ae1){const _0x351f2e=a63_0x412521,_0x4a63c8=await getDatasetDetail(_0xae5ae1['str']('code')),_0x3253aa=Array['isArray'](_0x4a63c8[_0x351f2e(0x208)])?_0x4a63c8['fields']:Array[_0x351f2e(0x1f6)](_0x4a63c8[_0x351f2e(0x22c)])?_0x4a63c8['properties']:[],_0x51a8ab=_0x3253aa[_0x351f2e(0x20f)](_0x2a95a0=>normalizeField(_0x2a95a0))['filter'](_0x55572f=>_0x55572f!==null),_0xd119cc=_0x4a63c8[_0x351f2e(0x224)]??{},_0x224e87=[];for(const [_0x287ef1,_0xdcb53f]of Object[_0x351f2e(0x217)](_0xd119cc)){const _0x6b7376=normalizeOperationEntry(_0x287ef1,_0xdcb53f);if(_0x6b7376)_0x224e87[_0x351f2e(0x228)](_0x6b7376);}const _0xb3eff2=_0x4a63c8[_0x351f2e(0x216)]??{},_0x571600=_0x4a63c8[_0x351f2e(0x21c)]??{},_0x56d5da=_0xb3eff2[_0x351f2e(0x1f9)]!=null?{'id':_0xb3eff2[_0x351f2e(0x1f9)],'name':_0xb3eff2[_0x351f2e(0x218)]??null}:undefined;let _0x16fc7d;return typeof _0x4a63c8['extend']===_0x351f2e(0x1e7)&&(_0x16fc7d=parseJsonMaybe(_0x4a63c8[_0x351f2e(0x1ed)])),{'ok':!![],'data':{'id':_0x4a63c8[_0x351f2e(0x226)]??_0x4a63c8['id'],'name':_0x4a63c8['name'],'code':_0x4a63c8[_0x351f2e(0x207)]||_0x4a63c8[_0x351f2e(0x1e2)],'doVersion':_0x4a63c8['doVersion'],'description':_0x4a63c8[_0x351f2e(0x1f8)]||_0x571600[_0x351f2e(0x213)]||undefined,'source':_0x4a63c8['source']||_0x571600['sourceType'],'table':_0xb3eff2[_0x351f2e(0x1f1)]||_0x571600['tableName'],'datasetKey':_0xb3eff2[_0x351f2e(0x206)],'pk':_0xb3eff2[_0x351f2e(0x1e4)],'db':_0x56d5da,'dbtable':summarizeDbtable(_0xb3eff2),'fields':_0x51a8ab,'operations':_0x224e87,'indexes':Array['isArray'](_0x571600['indexes'])?_0x571600['indexes']:[],'relations':Array['isArray'](_0x4a63c8[_0x351f2e(0x1e9)])?_0x4a63c8[_0x351f2e(0x1e9)][_0x351f2e(0x20f)](_0x32d459=>({..._0x32d459['relationId']!=null?{'relationId':_0x32d459['relationId']}:{},'fromDataset':_0x4a63c8[_0x351f2e(0x1ea)],'fromCode':_0x4a63c8[_0x351f2e(0x207)]||_0x4a63c8[_0x351f2e(0x1e2)],'fromTable':_0xb3eff2[_0x351f2e(0x1f1)]||_0x571600[_0x351f2e(0x1f1)],'fromField':_0x32d459[_0x351f2e(0x1e6)],'toDataset':_0x32d459['toDatasetName'],'toCode':_0x32d459[_0x351f2e(0x21a)],'toTable':_0x32d459[_0x351f2e(0x1f3)],'toField':_0x32d459[_0x351f2e(0x22a)],'labelField':_0x32d459[_0x351f2e(0x214)]||undefined,'cardinality':_0x32d459['cardinality']||undefined,'bizRelationType':_0x32d459[_0x351f2e(0x200)]===_0x351f2e(0x1f5)?_0x351f2e(0x1f5):null})):[],'relatedPages':normalizeRelatedPages(_0x4a63c8[_0x351f2e(0x20b)]),...Array[_0x351f2e(0x1f6)](_0x4a63c8[_0x351f2e(0x211)])?{'columnCodeListWithDeleted':_0x4a63c8[_0x351f2e(0x211)]}:{},'formatRules':Array[_0x351f2e(0x1f6)](_0x4a63c8[_0x351f2e(0x1e5)])?_0x4a63c8[_0x351f2e(0x1e5)]:[],'validateRules':Array[_0x351f2e(0x1f6)](_0x4a63c8[_0x351f2e(0x204)])?_0x4a63c8[_0x351f2e(0x204)]:[],..._0x16fc7d!==undefined?{'extend':_0x16fc7d}:{},'stats':{'fieldCount':_0x51a8ab['length'],'operationCount':_0x224e87[_0x351f2e(0x1ef)]}}};}};
1
+ const a63_0x532a4c=a63_0x4a62;(function(_0x3086fa,_0x2a8f76){const _0x414e72=a63_0x4a62,_0x1f7ba3=_0x3086fa();while(!![]){try{const _0x5bb201=-parseInt(_0x414e72(0x139))/0x1*(parseInt(_0x414e72(0x11a))/0x2)+parseInt(_0x414e72(0xfe))/0x3*(-parseInt(_0x414e72(0x111))/0x4)+parseInt(_0x414e72(0x130))/0x5*(-parseInt(_0x414e72(0xef))/0x6)+parseInt(_0x414e72(0xe8))/0x7*(parseInt(_0x414e72(0x121))/0x8)+parseInt(_0x414e72(0xf1))/0x9*(parseInt(_0x414e72(0x12d))/0xa)+parseInt(_0x414e72(0x110))/0xb*(-parseInt(_0x414e72(0x101))/0xc)+-parseInt(_0x414e72(0xfc))/0xd*(-parseInt(_0x414e72(0xe7))/0xe);if(_0x5bb201===_0x2a8f76)break;else _0x1f7ba3['push'](_0x1f7ba3['shift']());}catch(_0x35c119){_0x1f7ba3['push'](_0x1f7ba3['shift']());}}}(a63_0x3f7c,0x66e0e));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function normalizeField(_0x2af2f6){const _0x2c4ca7=a63_0x4a62;if(_0x2af2f6[_0x2c4ca7(0x102)])return null;const _0x2ff5d0=Boolean(_0x2af2f6[_0x2c4ca7(0xeb)]!==undefined||_0x2af2f6['doType']!==undefined);let _0xdc43f9={};if(!_0x2ff5d0&&typeof _0x2af2f6[_0x2c4ca7(0x137)]===_0x2c4ca7(0xfd))try{_0xdc43f9=JSON[_0x2c4ca7(0xea)](_0x2af2f6['extend']);}catch{}const _0x498464=_0x2ff5d0?_0x2af2f6[_0x2c4ca7(0xed)]:_0x2af2f6['code'],_0x1caede=_0x2ff5d0?_0x2af2f6['displayName']:_0x2af2f6[_0x2c4ca7(0xed)],_0x50b985=_0x2ff5d0?_0x2af2f6[_0x2c4ca7(0x119)]:_0x2af2f6[_0x2c4ca7(0xf6)]||_0x2af2f6[_0x2c4ca7(0x118)],_0x243f7f=_0x2ff5d0?_0x2af2f6['pkField']===!![]:_0xdc43f9['pkField']===!![],_0x5830bf=_0x2ff5d0?_0x2af2f6['required']===!![]:_0xdc43f9[_0x2c4ca7(0x126)]===!![],_0x2fe89f=_0x2ff5d0?_0x2af2f6[_0x2c4ca7(0x138)]??null:_0xdc43f9[_0x2c4ca7(0x138)]??null,_0x4a08b1={'name':_0x498464,'displayName':_0x1caede||_0x498464,'type':_0x50b985,'dbType':_0x2af2f6[_0x2c4ca7(0x114)],'pk':_0x243f7f,'required':_0x5830bf,'deprecated':_0x2af2f6[_0x2c4ca7(0x12b)]===!![],'description':_0x2af2f6['description']||undefined};return Array[_0x2c4ca7(0x10d)](_0x2fe89f)&&_0x2fe89f['length']>0x0&&(_0x4a08b1[_0x2c4ca7(0x138)]=_0x2fe89f),_0x4a08b1;}function a63_0x4a62(_0x4ae6b1,_0x44d04c){_0x4ae6b1=_0x4ae6b1-0xe6;const _0x3f7cce=a63_0x3f7c();let _0x4a623e=_0x3f7cce[_0x4ae6b1];return _0x4a623e;}function parseJsonMaybe(_0x4c79cc){const _0x4cd557=a63_0x4a62;if(typeof _0x4c79cc!==_0x4cd557(0xfd))return _0x4c79cc;try{return JSON[_0x4cd557(0xea)](_0x4c79cc);}catch{return _0x4c79cc;}}function a63_0x3f7c(){const _0x178cd9=['deprecated','requestFields','6846750vxlGfA','str','relations','2004195dgImiF','tableComment','code','filter','formatRules','logicField','datasetKey','extend','options','797077RbhZjj','properties','trim','5467000VPQPxz','28bYtmlt','dbtableConfig','parse','displayName','toFieldLabel','name','detail','6CRRmWp','afterScriptId','9HkKaOH','description','tableName','modifierIdField','creatorIdField','type','entries','columnCodeListWithDeleted','relationId','modifierNameField','allFieldNames','39CvKLsC','string','669eeQINy','toDatasetCode','sourceType','12cmgzYz','deleted','modelId','alias','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','toDatasetName','fields','dbId','responseFields','cardinality','beforeScriptId','allFields','isArray','requestBody','indexes','5617711CDmRjI','9136WfaMwI','pkField','title','dbType','toField','split','bizRelationType','dataType','doType','2MTpmMH','object','length','path','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','modelCode','dblinkInfoDTO','1566328OTkaJH','map','main_sub','doVersion','method','required','fromField','operations','dbName','responseBody'];a63_0x3f7c=function(){return _0x178cd9;};return a63_0x3f7c();}function normalizeOperationEntry(_0x49c0b2,_0x28dff6){const _0x5c97e3=a63_0x4a62;if(!_0x28dff6||typeof _0x28dff6!==_0x5c97e3(0x11b))return null;if(!_0x28dff6[_0x5c97e3(0x125)]||!_0x28dff6[_0x5c97e3(0x11d)])return null;const _0x50eff2={'name':_0x49c0b2,'method':_0x28dff6[_0x5c97e3(0x125)],'path':_0x28dff6[_0x5c97e3(0x11d)]};if(_0x28dff6['host'])_0x50eff2['host']=_0x28dff6['host'];if(_0x28dff6[_0x5c97e3(0x10e)]!=null){const _0x1837ce=parseJsonMaybe(_0x28dff6[_0x5c97e3(0x10e)]);_0x50eff2[_0x5c97e3(0x10e)]=_0x1837ce;}if(_0x28dff6[_0x5c97e3(0x12a)]!=null){const _0x26d7bb=parseJsonMaybe(_0x28dff6[_0x5c97e3(0x12a)]);_0x50eff2['responseBody']=_0x26d7bb;}if(_0x28dff6[_0x5c97e3(0x10b)]!=null)_0x50eff2[_0x5c97e3(0x10b)]=_0x28dff6[_0x5c97e3(0x10b)];if(_0x28dff6[_0x5c97e3(0xf0)]!=null)_0x50eff2[_0x5c97e3(0xf0)]=_0x28dff6[_0x5c97e3(0xf0)];if(Array[_0x5c97e3(0x10d)](_0x28dff6[_0x5c97e3(0x12c)]))_0x50eff2[_0x5c97e3(0x12c)]=_0x28dff6[_0x5c97e3(0x12c)];if(Array['isArray'](_0x28dff6['responseFields']))_0x50eff2['responseFields']=_0x28dff6[_0x5c97e3(0x109)];return _0x50eff2;}function summarizeDbtable(_0x254ba6){const _0x172873=a63_0x4a62,_0x3a448d={},_0x2b0cb1=['dbId',_0x172873(0x129),_0x172873(0xf3),_0x172873(0x136),_0x172873(0x112),'allFields',_0x172873(0x135),'createTimeField','updateTimeField',_0x172873(0xf5),'creatorNameField',_0x172873(0xf4),_0x172873(0xfa),'labelField',_0x172873(0x120)];for(const _0x539b8c of _0x2b0cb1){if(_0x254ba6[_0x539b8c]!==undefined)_0x3a448d[_0x539b8c]=_0x254ba6[_0x539b8c];}return typeof _0x3a448d['allFields']===_0x172873(0xfd)&&_0x3a448d[_0x172873(0x10c)][_0x172873(0x11c)]>0x0&&(_0x3a448d[_0x172873(0xfb)]=_0x3a448d[_0x172873(0x10c)][_0x172873(0x116)](',')[_0x172873(0x122)](_0x135faa=>_0x135faa[_0x172873(0xe6)]())[_0x172873(0x133)](Boolean)),_0x3a448d;}function normalizeRelatedPages(_0x13195a){const _0x3a95f6=a63_0x4a62;if(!Array['isArray'](_0x13195a))return[];return _0x13195a[_0x3a95f6(0x133)](_0x4d007e=>_0x4d007e&&typeof _0x4d007e==='object')[_0x3a95f6(0x122)](_0x436392=>({'id':_0x436392['id'],'type':_0x436392[_0x3a95f6(0xf6)],'code':_0x436392[_0x3a95f6(0x132)],'title':_0x436392[_0x3a95f6(0x113)],'deleted':_0x436392[_0x3a95f6(0x102)]===!![]}));}export const datasetDetail={'service':'dataset','command':a63_0x532a4c(0xee),'description':a63_0x532a4c(0x11e),'risk':'read','flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a63_0x532a4c(0x104),'type':a63_0x532a4c(0xfd),'description':a63_0x532a4c(0x105)}],async 'execute'(_0x5e1295){const _0x51ca7b=a63_0x532a4c,_0x23ef66=await getDatasetDetail(_0x5e1295[_0x51ca7b(0x12e)](_0x51ca7b(0x132))),_0x242b64=Array[_0x51ca7b(0x10d)](_0x23ef66[_0x51ca7b(0x107)])?_0x23ef66[_0x51ca7b(0x107)]:Array[_0x51ca7b(0x10d)](_0x23ef66[_0x51ca7b(0x13a)])?_0x23ef66[_0x51ca7b(0x13a)]:[],_0x35906c=_0x242b64[_0x51ca7b(0x122)](_0x3c8af6=>normalizeField(_0x3c8af6))[_0x51ca7b(0x133)](_0x4650ae=>_0x4650ae!==null),_0x1b888d=_0x23ef66[_0x51ca7b(0x128)]??{},_0x5af92d=[];for(const [_0x13a70c,_0x42ab0e]of Object[_0x51ca7b(0xf7)](_0x1b888d)){const _0x2f88dd=normalizeOperationEntry(_0x13a70c,_0x42ab0e);if(_0x2f88dd)_0x5af92d['push'](_0x2f88dd);}const _0x1ac0a3=_0x23ef66[_0x51ca7b(0xe9)]??{},_0x2a782c=_0x23ef66['dataset']??{},_0x555874=_0x1ac0a3['dbId']!=null?{'id':_0x1ac0a3[_0x51ca7b(0x108)],'name':_0x1ac0a3[_0x51ca7b(0x129)]??null}:undefined;let _0x55818a;return typeof _0x23ef66[_0x51ca7b(0x137)]==='string'&&(_0x55818a=parseJsonMaybe(_0x23ef66[_0x51ca7b(0x137)])),{'ok':!![],'data':{'id':_0x23ef66[_0x51ca7b(0x103)]??_0x23ef66['id'],'name':_0x23ef66[_0x51ca7b(0xed)],'code':_0x23ef66[_0x51ca7b(0x11f)]||_0x23ef66[_0x51ca7b(0x132)],'doVersion':_0x23ef66[_0x51ca7b(0x124)],'description':_0x23ef66[_0x51ca7b(0xf2)]||_0x2a782c[_0x51ca7b(0x131)]||undefined,'source':_0x23ef66['source']||_0x2a782c[_0x51ca7b(0x100)],'table':_0x1ac0a3[_0x51ca7b(0xf3)]||_0x2a782c[_0x51ca7b(0xf3)],'datasetKey':_0x1ac0a3['datasetKey'],'pk':_0x1ac0a3[_0x51ca7b(0x112)],'db':_0x555874,'dbtable':summarizeDbtable(_0x1ac0a3),'fields':_0x35906c,'operations':_0x5af92d,'indexes':Array[_0x51ca7b(0x10d)](_0x2a782c[_0x51ca7b(0x10f)])?_0x2a782c[_0x51ca7b(0x10f)]:[],'relations':Array[_0x51ca7b(0x10d)](_0x23ef66[_0x51ca7b(0x12f)])?_0x23ef66[_0x51ca7b(0x12f)][_0x51ca7b(0x122)](_0x6b5ed9=>({..._0x6b5ed9[_0x51ca7b(0xf9)]!=null?{'relationId':_0x6b5ed9[_0x51ca7b(0xf9)]}:{},'fromDataset':_0x23ef66['name'],'fromCode':_0x23ef66[_0x51ca7b(0x11f)]||_0x23ef66[_0x51ca7b(0x132)],'fromTable':_0x1ac0a3[_0x51ca7b(0xf3)]||_0x2a782c['tableName'],'fromField':_0x6b5ed9[_0x51ca7b(0x127)],'toDataset':_0x6b5ed9[_0x51ca7b(0x106)],'toCode':_0x6b5ed9[_0x51ca7b(0xff)],'toTable':_0x6b5ed9['toTableName'],'toField':_0x6b5ed9[_0x51ca7b(0x115)],'labelField':_0x6b5ed9[_0x51ca7b(0xec)]||undefined,'cardinality':_0x6b5ed9[_0x51ca7b(0x10a)]||undefined,'bizRelationType':_0x6b5ed9[_0x51ca7b(0x117)]===_0x51ca7b(0x123)?_0x51ca7b(0x123):null})):[],'relatedPages':normalizeRelatedPages(_0x23ef66['relatedPageInfoList']),...Array[_0x51ca7b(0x10d)](_0x23ef66['columnCodeListWithDeleted'])?{'columnCodeListWithDeleted':_0x23ef66[_0x51ca7b(0xf8)]}:{},'formatRules':Array[_0x51ca7b(0x10d)](_0x23ef66['formatRules'])?_0x23ef66[_0x51ca7b(0x134)]:[],'validateRules':Array[_0x51ca7b(0x10d)](_0x23ef66['validateRules'])?_0x23ef66['validateRules']:[],..._0x55818a!==undefined?{'extend':_0x55818a}:{},'stats':{'fieldCount':_0x35906c[_0x51ca7b(0x11c)],'operationCount':_0x5af92d[_0x51ca7b(0x11c)]}}};}};
@@ -1 +1 @@
1
- const a64_0x6432f9=a64_0x560a;(function(_0x3c9b17,_0x5fd2a4){const _0x5def83=a64_0x560a,_0x3fb0b2=_0x3c9b17();while(!![]){try{const _0x2cc93a=-parseInt(_0x5def83(0x11d))/0x1+parseInt(_0x5def83(0x10d))/0x2*(-parseInt(_0x5def83(0x10b))/0x3)+parseInt(_0x5def83(0x12b))/0x4+-parseInt(_0x5def83(0x124))/0x5*(-parseInt(_0x5def83(0x11b))/0x6)+-parseInt(_0x5def83(0x115))/0x7+-parseInt(_0x5def83(0x12c))/0x8+parseInt(_0x5def83(0x125))/0x9;if(_0x2cc93a===_0x5fd2a4)break;else _0x3fb0b2['push'](_0x3fb0b2['shift']());}catch(_0x47b05c){_0x3fb0b2['push'](_0x3fb0b2['shift']());}}}(a64_0x1a03,0x55919));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_0x6432f9(0x106),{'message':a64_0x6432f9(0x109),'hint':a64_0x6432f9(0x13d)}]]);export function parseJsonObjectFlag(_0x4e99a5,_0x31485b){const _0x40a10a=a64_0x6432f9;if(!_0x4e99a5)return undefined;let _0x2ce995;try{_0x2ce995=JSON['parse'](_0x4e99a5);}catch(_0x241bae){const _0xf08a75=_0x241bae instanceof Error?_0x241bae[_0x40a10a(0x131)]:String(_0x241bae);throw CliErrors[_0x40a10a(0x10c)](_0x31485b+_0x40a10a(0x136)+_0xf08a75);}if(!isPlainObject(_0x2ce995)||Array['isArray'](_0x2ce995))throw CliErrors[_0x40a10a(0x10c)](_0x31485b+_0x40a10a(0x114));return _0x2ce995;}export function validateExtendPatchKeys(_0x1ff023){const _0x55aa84=a64_0x6432f9,_0x45edb4=Object[_0x55aa84(0x108)](_0x1ff023);if(_0x45edb4[_0x55aa84(0x10f)]===0x0)throw CliErrors[_0x55aa84(0x10c)](_0x55aa84(0x104));for(const _0x48e9cb of _0x45edb4){const _0xea23dc=EXTEND_PATCH_REDIRECTS[_0x55aa84(0x118)](_0x48e9cb);if(_0xea23dc)throw CliErrors[_0x55aa84(0x10c)](_0xea23dc[_0x55aa84(0x131)],_0xea23dc['hint']);if(!MUTABLE_EXTEND_KEYS[_0x55aa84(0x127)](_0x48e9cb))throw CliErrors[_0x55aa84(0x10c)](_0x55aa84(0x111)+_0x48e9cb,describeMutableExtendKeys());}}function describeMutableExtendKeys(){const _0x50e24f=a64_0x6432f9,_0x2b022d=Array[_0x50e24f(0x117)](MUTABLE_EXTEND_KEYS)[_0x50e24f(0x130)]();return _0x2b022d[_0x50e24f(0x10f)]>0x0?_0x50e24f(0x13b)+_0x2b022d[_0x50e24f(0x112)](',\x20'):_0x50e24f(0x137);}export function applyExtendPatch(_0x3b626d,_0x46bb34){const _0x440582=a64_0x6432f9;validateExtendPatchKeys(_0x46bb34);const _0x171593=deepClone(_0x3b626d),_0x25c75b=[];for(const [_0x6323ba,_0x14b969]of Object[_0x440582(0x13f)](_0x46bb34)){const _0x5ded18=_0x171593[_0x6323ba],_0x210206=deepClone(_0x14b969);!deepEqual(_0x5ded18,_0x210206)&&(_0x171593[_0x6323ba]=_0x210206,_0x25c75b[_0x440582(0x129)](_0x440582(0x120)+_0x6323ba));}return _0x25c75b[_0x440582(0x130)](),{'after':_0x171593,'changedPaths':_0x25c75b,'changed':_0x25c75b[_0x440582(0x10f)]>0x0};}export function assertExpectation(_0x1346f5,_0x512503){const _0x9c2f6=a64_0x6432f9;if(!_0x512503)return;for(const [_0x195711,_0x47745b]of Object[_0x9c2f6(0x13f)](_0x512503)){const _0x1942df=_0x1346f5[_0x195711];if(!deepEqual(_0x1942df,_0x47745b))throw CliErrors[_0x9c2f6(0x10c)]('Expectation\x20mismatch\x20at\x20extend.'+_0x195711,'Expected\x20'+JSON[_0x9c2f6(0x10a)](_0x47745b)+',\x20actual\x20'+JSON[_0x9c2f6(0x10a)](_0x1942df));}}export async function buildDatasetExtendUpdateResult({appCode:_0x5c4688,input:_0x1fd841,dryRun:_0x30c003}){const _0x533562=a64_0x6432f9;validateInput(_0x1fd841);const _0x32c480=await getDatasetDetail(_0x1fd841[_0x533562(0x138)]),_0x1f7cc4=parseDatasetExtend(_0x32c480[_0x533562(0x107)]),_0x26ff09=deepClone(_0x1f7cc4[_0x533562(0x133)]);assertExpectation(_0x26ff09,_0x1fd841[_0x533562(0x134)]);const {after:_0x1338bd,changedPaths:_0x2191fc,changed:_0x1742a9}=applyExtendPatch(_0x26ff09,_0x1fd841[_0x533562(0x13e)]),_0x23fc69=summarizeDataset(_0x32c480,_0x1fd841[_0x533562(0x138)]);return _0x1742a9&&!_0x30c003&&(_0x32c480[_0x533562(0x107)]=serializeDatasetExtend(_0x1338bd,_0x1f7cc4['shape']),await updateDrivenData(_0x32c480)),{'ok':!![],'data':{'appCode':_0x5c4688,'selector':{'code':_0x1fd841['code']},'dataset':_0x23fc69,'dryRun':_0x30c003,'changed':_0x1742a9,'changedPaths':_0x2191fc,'before':{'extend':_0x26ff09},'after':{'extend':_0x1338bd},'submitted':_0x1742a9&&!_0x30c003},'message':_0x1742a9?_0x30c003?'Dry-run:\x20dataset\x20extend\x20would\x20change\x20('+_0x2191fc['join'](',\x20')+')':_0x533562(0x110)+_0x2191fc[_0x533562(0x112)](',\x20')+')':'No\x20changes\x20for\x20dataset\x20extend'};}export const datasetExtendUpdate={'service':a64_0x6432f9(0x116),'command':'extend-update','description':a64_0x6432f9(0x12d),'risk':a64_0x6432f9(0x132),'flags':[CODE_FLAG,{'name':a64_0x6432f9(0x102),'type':a64_0x6432f9(0x11c),'required':!![],'description':'JSON\x20object\x20patch\x20for\x20dataset\x20top-level\x20extend;\x20current\x20allowlist\x20is\x20empty'},{'name':a64_0x6432f9(0x13a),'type':a64_0x6432f9(0x11c),'required':![],'description':'JSON\x20object\x20of\x20expected\x20current\x20extend\x20values;\x20mismatch\x20aborts\x20without\x20writing'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x288ad4){validateInput(readExtendUpdateInput(_0x288ad4));},async 'dryRun'(_0x565652){const _0x2dcec7=a64_0x6432f9,_0x21f0f2=await buildDatasetExtendUpdateResult({'appCode':_0x565652[_0x2dcec7(0x121)],'input':readExtendUpdateInput(_0x565652),'dryRun':!![]});return{'method':_0x2dcec7(0x140),'url':'/smartapi/dataset/update-driven-data','body':_0x21f0f2[_0x2dcec7(0x11f)],'description':_0x21f0f2[_0x2dcec7(0x131)]};},async 'execute'(_0x105155){const _0x1a81ac=a64_0x6432f9;return buildDatasetExtendUpdateResult({'appCode':_0x105155[_0x1a81ac(0x121)],'input':readExtendUpdateInput(_0x105155),'dryRun':![]});}};function readExtendUpdateInput(_0x9645c0){const _0x273405=a64_0x6432f9,_0x568e5d=trim(_0x9645c0[_0x273405(0x105)](_0x273405(0x138))),_0x220d82=parseJsonObjectFlag(_0x9645c0['str']('patch-json'),'--patch-json'),_0x3854b4=parseJsonObjectFlag(_0x9645c0[_0x273405(0x105)](_0x273405(0x13a)),_0x273405(0x12e));return{'code':_0x568e5d,'patch':_0x220d82||{},'expect':_0x3854b4};}function validateInput(_0x52d3de){const _0x4b6316=a64_0x6432f9;if(!_0x52d3de[_0x4b6316(0x138)])throw CliErrors[_0x4b6316(0x10c)](_0x4b6316(0x139));validateExtendPatchKeys(_0x52d3de[_0x4b6316(0x13e)]);}function parseDatasetExtend(_0x5dc564){const _0x169083=a64_0x6432f9;if(typeof _0x5dc564===_0x169083(0x11c)){const _0x500d4d=_0x5dc564[_0x169083(0x119)]();if(!_0x500d4d)return{'value':{},'shape':_0x169083(0x11c)};let _0x37f5a7;try{_0x37f5a7=JSON[_0x169083(0x128)](_0x500d4d);}catch(_0x562908){const _0x586907=_0x562908 instanceof Error?_0x562908[_0x169083(0x131)]:String(_0x562908);throw CliErrors[_0x169083(0x10c)](_0x169083(0x13c)+_0x586907);}if(!isPlainObject(_0x37f5a7)||Array[_0x169083(0x122)](_0x37f5a7))throw CliErrors['validation'](_0x169083(0x126));return{'value':_0x37f5a7,'shape':_0x169083(0x11c)};}if(_0x5dc564===undefined||_0x5dc564===null)return{'value':{},'shape':'string'};if(!isPlainObject(_0x5dc564)||Array[_0x169083(0x122)](_0x5dc564))throw CliErrors[_0x169083(0x10c)](_0x169083(0x126));return{'value':_0x5dc564,'shape':_0x169083(0x113)};}function a64_0x1a03(){const _0x197a5a=['trim','datasetId','2117172HEdTwi','string','35134slqGJP','dbId','data','extend.','appCode','isArray','dbName','5zrjcKl','1251702zvILRo','Dataset\x20extend\x20must\x20be\x20a\x20JSON\x20object','has','parse','push','modelId','1988120aYvGBC','182832XLsPbe','Patch\x20dataset\x20top-level\x20extend\x20safely','--expect-json','tableName','sort','message','write','value','expect','name','\x20must\x20be\x20valid\x20JSON\x20object:\x20','No\x20dataset\x20extend\x20patch\x20keys\x20are\x20currently\x20supported.','code','--code\x20is\x20required','expect-json','Allowed\x20keys:\x20','Dataset\x20extend\x20must\x20be\x20valid\x20JSON\x20object:\x20','Use\x20`rabetbase\x20dataset\x20business-group-update`\x20to\x20update\x20business\x20model\x20groups.','patch','entries','POST','patch-json','datasetCode','--patch-json\x20must\x20contain\x20at\x20least\x20one\x20key','str','businessGroup','extend','keys','dataset\x20extend-update\x20does\x20not\x20support\x20businessGroup;\x20use\x20dataset\x20business-group-update','stringify','340665CYyExH','validation','6hvSKkO','dbtableConfig','length','Updated\x20dataset\x20extend\x20(','Unsupported\x20patch\x20key:\x20','join','object','\x20must\x20be\x20a\x20JSON\x20object','1678796rRVPjB','dataset','from','get'];a64_0x1a03=function(){return _0x197a5a;};return a64_0x1a03();}function serializeDatasetExtend(_0x19ba47,_0x13ee2f){return _0x13ee2f==='string'?JSON['stringify'](_0x19ba47):_0x19ba47;}function summarizeDataset(_0x46e3bf,_0x167867){const _0x5c769e=a64_0x6432f9,_0x27e8b8=isPlainObject(_0x46e3bf['dataset'])?_0x46e3bf[_0x5c769e(0x116)]:{},_0x4b00d6=isPlainObject(_0x46e3bf[_0x5c769e(0x10e)])?_0x46e3bf[_0x5c769e(0x10e)]:{};return{'id':_0x46e3bf[_0x5c769e(0x12a)]??_0x46e3bf['id']??_0x27e8b8[_0x5c769e(0x11a)]??null,'code':_0x46e3bf['modelCode']??_0x46e3bf[_0x5c769e(0x138)]??_0x27e8b8[_0x5c769e(0x103)]??_0x167867,'name':_0x46e3bf[_0x5c769e(0x135)]??_0x27e8b8['datasetName']??null,'table':_0x4b00d6[_0x5c769e(0x12f)]??_0x27e8b8[_0x5c769e(0x12f)]??null,'db':_0x4b00d6[_0x5c769e(0x123)]??_0x4b00d6[_0x5c769e(0x11e)]??null};}function a64_0x560a(_0x5eeacb,_0x358d61){_0x5eeacb=_0x5eeacb-0x102;const _0x1a0346=a64_0x1a03();let _0x560acd=_0x1a0346[_0x5eeacb];return _0x560acd;}function deepClone(_0x706872){const _0x177dc9=a64_0x6432f9;if(_0x706872===undefined)return _0x706872;return JSON[_0x177dc9(0x128)](JSON[_0x177dc9(0x10a)](_0x706872));}function deepEqual(_0x253962,_0xdf60d9){const _0xd77d92=a64_0x6432f9;return JSON[_0xd77d92(0x10a)](_0x253962)===JSON['stringify'](_0xdf60d9);}function isPlainObject(_0x3e3678){const _0x569bd0=a64_0x6432f9;return Boolean(_0x3e3678)&&typeof _0x3e3678===_0x569bd0(0x113)&&!Array[_0x569bd0(0x122)](_0x3e3678);}function trim(_0x3bbeb3){const _0x273f53=a64_0x6432f9,_0x696eb5=String(_0x3bbeb3||'')[_0x273f53(0x119)]();return _0x696eb5;}
1
+ function a64_0x2189(){const _0x544d07=['modelCode','from','235270RBqhct','join','--patch-json\x20must\x20contain\x20at\x20least\x20one\x20key','string','Dry-run:\x20dataset\x20extend\x20would\x20change\x20(','dbtableConfig','4002QCWtbk','Unsupported\x20patch\x20key:\x20','JSON\x20object\x20patch\x20for\x20dataset\x20top-level\x20extend;\x20current\x20allowlist\x20is\x20empty','has','patch','\x20must\x20be\x20a\x20JSON\x20object','14vATtmt','tableName','businessGroup',',\x20actual\x20','Patch\x20dataset\x20top-level\x20extend\x20safely','object','extend','Dataset\x20extend\x20must\x20be\x20a\x20JSON\x20object','286973xhmlVU','dataset','No\x20changes\x20for\x20dataset\x20extend','patch-json','parse','stringify','45UztwjK','extend-update','code','/smartapi/dataset/update-driven-data','642590xCUvvf','925096wmjrms','get','165hieexu','POST','length','No\x20dataset\x20extend\x20patch\x20keys\x20are\x20currently\x20supported.','write','Use\x20`rabetbase\x20dataset\x20business-group-update`\x20to\x20update\x20business\x20model\x20groups.','--patch-json','sort','validation','--code\x20is\x20required','dbName','str','value','shape','\x20must\x20be\x20valid\x20JSON\x20object:\x20','568974mqlMYm','push','Dataset\x20extend\x20must\x20be\x20valid\x20JSON\x20object:\x20','datasetCode','datasetName','name','keys','modelId','JSON\x20object\x20of\x20expected\x20current\x20extend\x20values;\x20mismatch\x20aborts\x20without\x20writing','trim','extend.','appCode','message','Updated\x20dataset\x20extend\x20(','entries','Allowed\x20keys:\x20','445336TPbMbq','isArray'];a64_0x2189=function(){return _0x544d07;};return a64_0x2189();}const a64_0x5775a6=a64_0x46cc;(function(_0x317c66,_0x200398){const _0x552827=a64_0x46cc,_0x280ac8=_0x317c66();while(!![]){try{const _0x534b36=parseInt(_0x552827(0x1fe))/0x1+parseInt(_0x552827(0x1ea))/0x2+-parseInt(_0x552827(0x1d6))/0x3+parseInt(_0x552827(0x1e6))/0x4+parseInt(_0x552827(0x1c7))/0x5*(-parseInt(_0x552827(0x1f0))/0x6)+-parseInt(_0x552827(0x1f6))/0x7*(-parseInt(_0x552827(0x1c5))/0x8)+-parseInt(_0x552827(0x1c0))/0x9*(parseInt(_0x552827(0x1c4))/0xa);if(_0x534b36===_0x200398)break;else _0x280ac8['push'](_0x280ac8['shift']());}catch(_0x41e982){_0x280ac8['push'](_0x280ac8['shift']());}}}(a64_0x2189,0x344ec));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_0x5775a6(0x1f8),{'message':'dataset\x20extend-update\x20does\x20not\x20support\x20businessGroup;\x20use\x20dataset\x20business-group-update','hint':a64_0x5775a6(0x1cc)}]]);export function parseJsonObjectFlag(_0x591bc4,_0x521100){const _0x31b840=a64_0x5775a6;if(!_0x591bc4)return undefined;let _0x29b9e2;try{_0x29b9e2=JSON[_0x31b840(0x1be)](_0x591bc4);}catch(_0x4fe73f){const _0x45b120=_0x4fe73f instanceof Error?_0x4fe73f['message']:String(_0x4fe73f);throw CliErrors[_0x31b840(0x1cf)](_0x521100+_0x31b840(0x1d5)+_0x45b120);}if(!isPlainObject(_0x29b9e2)||Array[_0x31b840(0x1e7)](_0x29b9e2))throw CliErrors[_0x31b840(0x1cf)](_0x521100+_0x31b840(0x1f5));return _0x29b9e2;}export function validateExtendPatchKeys(_0x108655){const _0x5add14=a64_0x5775a6,_0x18e0c6=Object[_0x5add14(0x1dc)](_0x108655);if(_0x18e0c6[_0x5add14(0x1c9)]===0x0)throw CliErrors[_0x5add14(0x1cf)](_0x5add14(0x1ec));for(const _0x13d40d of _0x18e0c6){const _0x1c6690=EXTEND_PATCH_REDIRECTS[_0x5add14(0x1c6)](_0x13d40d);if(_0x1c6690)throw CliErrors[_0x5add14(0x1cf)](_0x1c6690[_0x5add14(0x1e2)],_0x1c6690['hint']);if(!MUTABLE_EXTEND_KEYS[_0x5add14(0x1f3)](_0x13d40d))throw CliErrors[_0x5add14(0x1cf)](_0x5add14(0x1f1)+_0x13d40d,describeMutableExtendKeys());}}function describeMutableExtendKeys(){const _0x16ae50=a64_0x5775a6,_0x4ea81e=Array[_0x16ae50(0x1e9)](MUTABLE_EXTEND_KEYS)[_0x16ae50(0x1ce)]();return _0x4ea81e[_0x16ae50(0x1c9)]>0x0?_0x16ae50(0x1e5)+_0x4ea81e[_0x16ae50(0x1eb)](',\x20'):_0x16ae50(0x1ca);}export function applyExtendPatch(_0x379e08,_0x42941d){const _0x491eec=a64_0x5775a6;validateExtendPatchKeys(_0x42941d);const _0x38afe3=deepClone(_0x379e08),_0x589962=[];for(const [_0x510938,_0x3bd065]of Object['entries'](_0x42941d)){const _0x4325b6=_0x38afe3[_0x510938],_0x25e980=deepClone(_0x3bd065);!deepEqual(_0x4325b6,_0x25e980)&&(_0x38afe3[_0x510938]=_0x25e980,_0x589962[_0x491eec(0x1d7)](_0x491eec(0x1e0)+_0x510938));}return _0x589962[_0x491eec(0x1ce)](),{'after':_0x38afe3,'changedPaths':_0x589962,'changed':_0x589962[_0x491eec(0x1c9)]>0x0};}export function assertExpectation(_0x1aba72,_0x25e8b2){const _0x36cc0f=a64_0x5775a6;if(!_0x25e8b2)return;for(const [_0x3859e1,_0x19ae68]of Object[_0x36cc0f(0x1e4)](_0x25e8b2)){const _0x4b31ef=_0x1aba72[_0x3859e1];if(!deepEqual(_0x4b31ef,_0x19ae68))throw CliErrors[_0x36cc0f(0x1cf)]('Expectation\x20mismatch\x20at\x20extend.'+_0x3859e1,'Expected\x20'+JSON[_0x36cc0f(0x1bf)](_0x19ae68)+_0x36cc0f(0x1f9)+JSON[_0x36cc0f(0x1bf)](_0x4b31ef));}}export async function buildDatasetExtendUpdateResult({appCode:_0x237f53,input:_0xcf93b7,dryRun:_0x30e82f}){const _0x1f6461=a64_0x5775a6;validateInput(_0xcf93b7);const _0x4b2d2c=await getDatasetDetail(_0xcf93b7[_0x1f6461(0x1c2)]),_0x212c42=parseDatasetExtend(_0x4b2d2c[_0x1f6461(0x1fc)]),_0x3f46ec=deepClone(_0x212c42[_0x1f6461(0x1d3)]);assertExpectation(_0x3f46ec,_0xcf93b7['expect']);const {after:_0x97978f,changedPaths:_0x1cf81d,changed:_0x53b13f}=applyExtendPatch(_0x3f46ec,_0xcf93b7[_0x1f6461(0x1f4)]),_0x51a094=summarizeDataset(_0x4b2d2c,_0xcf93b7[_0x1f6461(0x1c2)]);return _0x53b13f&&!_0x30e82f&&(_0x4b2d2c[_0x1f6461(0x1fc)]=serializeDatasetExtend(_0x97978f,_0x212c42[_0x1f6461(0x1d4)]),await updateDrivenData(_0x4b2d2c)),{'ok':!![],'data':{'appCode':_0x237f53,'selector':{'code':_0xcf93b7['code']},'dataset':_0x51a094,'dryRun':_0x30e82f,'changed':_0x53b13f,'changedPaths':_0x1cf81d,'before':{'extend':_0x3f46ec},'after':{'extend':_0x97978f},'submitted':_0x53b13f&&!_0x30e82f},'message':_0x53b13f?_0x30e82f?_0x1f6461(0x1ee)+_0x1cf81d[_0x1f6461(0x1eb)](',\x20')+')':_0x1f6461(0x1e3)+_0x1cf81d['join'](',\x20')+')':_0x1f6461(0x1bc)};}export const datasetExtendUpdate={'service':a64_0x5775a6(0x1ff),'command':a64_0x5775a6(0x1c1),'description':a64_0x5775a6(0x1fa),'risk':a64_0x5775a6(0x1cb),'flags':[CODE_FLAG,{'name':a64_0x5775a6(0x1bd),'type':a64_0x5775a6(0x1ed),'required':!![],'description':a64_0x5775a6(0x1f2)},{'name':'expect-json','type':a64_0x5775a6(0x1ed),'required':![],'description':a64_0x5775a6(0x1de)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x53deaa){validateInput(readExtendUpdateInput(_0x53deaa));},async 'dryRun'(_0x4d1ce6){const _0x53477e=a64_0x5775a6,_0x497edc=await buildDatasetExtendUpdateResult({'appCode':_0x4d1ce6[_0x53477e(0x1e1)],'input':readExtendUpdateInput(_0x4d1ce6),'dryRun':!![]});return{'method':_0x53477e(0x1c8),'url':_0x53477e(0x1c3),'body':_0x497edc['data'],'description':_0x497edc['message']};},async 'execute'(_0x58426c){return buildDatasetExtendUpdateResult({'appCode':_0x58426c['appCode'],'input':readExtendUpdateInput(_0x58426c),'dryRun':![]});}};function a64_0x46cc(_0x32a58d,_0x2c3b9e){_0x32a58d=_0x32a58d-0x1bc;const _0x218945=a64_0x2189();let _0x46cc4b=_0x218945[_0x32a58d];return _0x46cc4b;}function readExtendUpdateInput(_0x73213){const _0x4a991b=a64_0x5775a6,_0x3e80e9=trim(_0x73213[_0x4a991b(0x1d2)]('code')),_0x2c9e88=parseJsonObjectFlag(_0x73213[_0x4a991b(0x1d2)]('patch-json'),_0x4a991b(0x1cd)),_0x192847=parseJsonObjectFlag(_0x73213[_0x4a991b(0x1d2)]('expect-json'),'--expect-json');return{'code':_0x3e80e9,'patch':_0x2c9e88||{},'expect':_0x192847};}function validateInput(_0x1f19bb){const _0x3dfb8f=a64_0x5775a6;if(!_0x1f19bb[_0x3dfb8f(0x1c2)])throw CliErrors[_0x3dfb8f(0x1cf)](_0x3dfb8f(0x1d0));validateExtendPatchKeys(_0x1f19bb[_0x3dfb8f(0x1f4)]);}function parseDatasetExtend(_0x174cee){const _0x258f11=a64_0x5775a6;if(typeof _0x174cee===_0x258f11(0x1ed)){const _0x2f0188=_0x174cee[_0x258f11(0x1df)]();if(!_0x2f0188)return{'value':{},'shape':_0x258f11(0x1ed)};let _0x1e4d45;try{_0x1e4d45=JSON['parse'](_0x2f0188);}catch(_0x502658){const _0x27f7e0=_0x502658 instanceof Error?_0x502658[_0x258f11(0x1e2)]:String(_0x502658);throw CliErrors[_0x258f11(0x1cf)](_0x258f11(0x1d8)+_0x27f7e0);}if(!isPlainObject(_0x1e4d45)||Array['isArray'](_0x1e4d45))throw CliErrors['validation']('Dataset\x20extend\x20must\x20be\x20a\x20JSON\x20object');return{'value':_0x1e4d45,'shape':_0x258f11(0x1ed)};}if(_0x174cee===undefined||_0x174cee===null)return{'value':{},'shape':'string'};if(!isPlainObject(_0x174cee)||Array[_0x258f11(0x1e7)](_0x174cee))throw CliErrors[_0x258f11(0x1cf)](_0x258f11(0x1fd));return{'value':_0x174cee,'shape':_0x258f11(0x1fb)};}function serializeDatasetExtend(_0x4dfca0,_0x5017c9){const _0x491e2c=a64_0x5775a6;return _0x5017c9===_0x491e2c(0x1ed)?JSON[_0x491e2c(0x1bf)](_0x4dfca0):_0x4dfca0;}function summarizeDataset(_0x417b39,_0x491cee){const _0x183b47=a64_0x5775a6,_0x42ed49=isPlainObject(_0x417b39['dataset'])?_0x417b39['dataset']:{},_0x2ac0c7=isPlainObject(_0x417b39[_0x183b47(0x1ef)])?_0x417b39['dbtableConfig']:{};return{'id':_0x417b39[_0x183b47(0x1dd)]??_0x417b39['id']??_0x42ed49['datasetId']??null,'code':_0x417b39[_0x183b47(0x1e8)]??_0x417b39[_0x183b47(0x1c2)]??_0x42ed49[_0x183b47(0x1d9)]??_0x491cee,'name':_0x417b39[_0x183b47(0x1db)]??_0x42ed49[_0x183b47(0x1da)]??null,'table':_0x2ac0c7[_0x183b47(0x1f7)]??_0x42ed49[_0x183b47(0x1f7)]??null,'db':_0x2ac0c7[_0x183b47(0x1d1)]??_0x2ac0c7['dbId']??null};}function deepClone(_0x17b850){const _0x1591ec=a64_0x5775a6;if(_0x17b850===undefined)return _0x17b850;return JSON[_0x1591ec(0x1be)](JSON[_0x1591ec(0x1bf)](_0x17b850));}function deepEqual(_0x225eef,_0x29a3d9){const _0x239923=a64_0x5775a6;return JSON[_0x239923(0x1bf)](_0x225eef)===JSON[_0x239923(0x1bf)](_0x29a3d9);}function isPlainObject(_0x5cd87b){return Boolean(_0x5cd87b)&&typeof _0x5cd87b==='object'&&!Array['isArray'](_0x5cd87b);}function trim(_0x3d4f15){const _0xf8f0e1=String(_0x3d4f15||'')['trim']();return _0xf8f0e1;}