@lovrabet/rabetbase-cli 2.5.5-beta.2 → 2.5.5-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (363) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/api-group.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/api/generate-sdk-config-file.js +1 -1
  6. package/lib/api/legacy-api-file.js +1 -1
  7. package/lib/api/model-registry-file.js +1 -1
  8. package/lib/api/model-registry-scaffold.js +1 -1
  9. package/lib/api/model-source.js +1 -1
  10. package/lib/auth/auth-server-ui.js +1 -1
  11. package/lib/auth/auth-server.js +1 -1
  12. package/lib/auth/constant.js +1 -1
  13. package/lib/auth/get-cookie.js +1 -1
  14. package/lib/auth/get-session-user.js +1 -1
  15. package/lib/auth/is-session-valid.js +1 -1
  16. package/lib/auth/login-success-html.js +1 -1
  17. package/lib/auth/logout.js +1 -1
  18. package/lib/cli-flags.js +1 -1
  19. package/lib/cli.js +1 -1
  20. package/lib/commands/api/generate.js +1 -1
  21. package/lib/commands/api/index.js +1 -1
  22. package/lib/commands/api/list.js +1 -1
  23. package/lib/commands/api/pull.js +1 -1
  24. package/lib/commands/api/shared.js +1 -1
  25. package/lib/commands/app/detail.js +1 -1
  26. package/lib/commands/app/index.js +1 -1
  27. package/lib/commands/app/list.js +1 -1
  28. package/lib/commands/app/members-list.js +1 -1
  29. package/lib/commands/app/remote-directory.js +1 -1
  30. package/lib/commands/app/shared.js +1 -1
  31. package/lib/commands/app-config/delete.js +1 -1
  32. package/lib/commands/app-config/get.js +1 -1
  33. package/lib/commands/app-config/index.js +1 -1
  34. package/lib/commands/app-config/list.js +1 -1
  35. package/lib/commands/app-config/set.js +1 -1
  36. package/lib/commands/app-config/shared.js +1 -1
  37. package/lib/commands/auth/index.js +1 -1
  38. package/lib/commands/bff/create.js +1 -1
  39. package/lib/commands/bff/delete.js +1 -1
  40. package/lib/commands/bff/detail.js +1 -1
  41. package/lib/commands/bff/index.js +1 -1
  42. package/lib/commands/bff/list.js +1 -1
  43. package/lib/commands/bff/logs.js +1 -1
  44. package/lib/commands/bff/pull.js +1 -1
  45. package/lib/commands/bff/push.js +1 -1
  46. package/lib/commands/bff/status.js +1 -1
  47. package/lib/commands/cli-skill/index.js +1 -1
  48. package/lib/commands/cli-update.js +1 -1
  49. package/lib/commands/codegen/index.js +1 -1
  50. package/lib/commands/codegen/sdk.js +1 -1
  51. package/lib/commands/codegen/sql.js +1 -1
  52. package/lib/commands/common/app-registry.js +1 -1
  53. package/lib/commands/common/app-selector.js +1 -1
  54. package/lib/commands/common/async-task.js +1 -1
  55. package/lib/commands/common/dry-run.js +1 -1
  56. package/lib/commands/common/flags.js +1 -1
  57. package/lib/commands/common/local-file.js +1 -1
  58. package/lib/commands/common/validate.js +1 -1
  59. package/lib/commands/config/delete.js +1 -1
  60. package/lib/commands/config/get.js +1 -1
  61. package/lib/commands/config/index.js +1 -1
  62. package/lib/commands/config/init.js +1 -1
  63. package/lib/commands/config/list.js +1 -1
  64. package/lib/commands/config/set.js +1 -1
  65. package/lib/commands/config/shared.js +1 -1
  66. package/lib/commands/dataset/batch-design.js +1 -1
  67. package/lib/commands/dataset/business-group-update.js +1 -1
  68. package/lib/commands/dataset/business-groups.js +1 -1
  69. package/lib/commands/dataset/capability.js +1 -1
  70. package/lib/commands/dataset/cross-relation-create.js +1 -1
  71. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  72. package/lib/commands/dataset/cross-relation-list.js +1 -1
  73. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  74. package/lib/commands/dataset/cross-relation-update.js +1 -1
  75. package/lib/commands/dataset/delete.js +1 -1
  76. package/lib/commands/dataset/detail.js +1 -1
  77. package/lib/commands/dataset/extend-update.js +1 -1
  78. package/lib/commands/dataset/field-restore.js +1 -1
  79. package/lib/commands/dataset/field-update.js +1 -1
  80. package/lib/commands/dataset/generate.js +1 -1
  81. package/lib/commands/dataset/index.js +1 -1
  82. package/lib/commands/dataset/list.js +1 -1
  83. package/lib/commands/dataset/operations.js +1 -1
  84. package/lib/commands/dataset/relation-audit.js +1 -1
  85. package/lib/commands/dataset/relation-create.js +1 -1
  86. package/lib/commands/dataset/relation-delete.js +1 -1
  87. package/lib/commands/dataset/relation-shared.js +1 -1
  88. package/lib/commands/dataset/relation-update.js +1 -1
  89. package/lib/commands/dataset/relations.js +1 -1
  90. package/lib/commands/dataset/rename.js +1 -1
  91. package/lib/commands/dataset/restore.js +1 -1
  92. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  93. package/lib/commands/db/analysis-batching.js +1 -1
  94. package/lib/commands/db/analyze-batch-plan.js +1 -1
  95. package/lib/commands/db/analyze-cancel.js +1 -1
  96. package/lib/commands/db/analyze-start.js +1 -1
  97. package/lib/commands/db/analyze-status.js +1 -1
  98. package/lib/commands/db/create.js +1 -1
  99. package/lib/commands/db/delete.js +1 -1
  100. package/lib/commands/db/detail.js +1 -1
  101. package/lib/commands/db/diff-refresh-start.js +1 -1
  102. package/lib/commands/db/diff-refresh-status.js +1 -1
  103. package/lib/commands/db/diff.js +1 -1
  104. package/lib/commands/db/index.js +1 -1
  105. package/lib/commands/db/list.js +1 -1
  106. package/lib/commands/db/shared.js +1 -1
  107. package/lib/commands/db/table-diff-shared.js +1 -1
  108. package/lib/commands/db/tables.js +1 -1
  109. package/lib/commands/db/test.js +1 -1
  110. package/lib/commands/db/update.js +1 -1
  111. package/lib/commands/deployment/index.js +1 -1
  112. package/lib/commands/deployment/sync-all.js +1 -1
  113. package/lib/commands/deployment/sync-jobs.js +1 -1
  114. package/lib/commands/deployment/sync-status.js +1 -1
  115. package/lib/commands/doctor.js +1 -1
  116. package/lib/commands/file/index.js +1 -1
  117. package/lib/commands/flow/create.js +1 -1
  118. package/lib/commands/flow/detail.js +1 -1
  119. package/lib/commands/flow/index.js +1 -1
  120. package/lib/commands/flow/list.js +1 -1
  121. package/lib/commands/flow/publish.js +1 -1
  122. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  123. package/lib/commands/flow/runtime-role-list.js +1 -1
  124. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  125. package/lib/commands/flow/runtime-user-search.js +1 -1
  126. package/lib/commands/flow/shared.js +1 -1
  127. package/lib/commands/flow/update.js +1 -1
  128. package/lib/commands/flow/validate.js +1 -1
  129. package/lib/commands/instant-api-policy/current.js +1 -1
  130. package/lib/commands/instant-api-policy/index.js +1 -1
  131. package/lib/commands/instant-api-policy/init.js +1 -1
  132. package/lib/commands/instant-api-policy/publish.js +1 -1
  133. package/lib/commands/instant-api-policy/pull.js +1 -1
  134. package/lib/commands/instant-api-policy/revision.js +1 -1
  135. package/lib/commands/instant-api-policy/revisions.js +1 -1
  136. package/lib/commands/instant-api-policy/rollback.js +1 -1
  137. package/lib/commands/instant-api-policy/shared.js +1 -1
  138. package/lib/commands/instant-api-policy/validate.js +1 -1
  139. package/lib/commands/issue/index.js +1 -1
  140. package/lib/commands/issue/nudge.js +1 -1
  141. package/lib/commands/issue/report.js +1 -1
  142. package/lib/commands/issue/shared.js +1 -1
  143. package/lib/commands/kb/create.js +1 -1
  144. package/lib/commands/kb/delete.js +1 -1
  145. package/lib/commands/kb/detail.js +1 -1
  146. package/lib/commands/kb/index.js +1 -1
  147. package/lib/commands/kb/list.js +1 -1
  148. package/lib/commands/kb/search.js +1 -1
  149. package/lib/commands/kb/shared.js +1 -1
  150. package/lib/commands/kb/update.js +1 -1
  151. package/lib/commands/logs/index.js +1 -1
  152. package/lib/commands/menu/asset-update.js +1 -1
  153. package/lib/commands/menu/delete.js +1 -1
  154. package/lib/commands/menu/external-link-create.js +1 -1
  155. package/lib/commands/menu/external-link-update.js +1 -1
  156. package/lib/commands/menu/group-create.js +1 -1
  157. package/lib/commands/menu/group-update.js +1 -1
  158. package/lib/commands/menu/index.js +1 -1
  159. package/lib/commands/menu/list.js +1 -1
  160. package/lib/commands/menu/move.js +1 -1
  161. package/lib/commands/menu/regroup-start.js +1 -1
  162. package/lib/commands/menu/rename.js +1 -1
  163. package/lib/commands/menu/shared/compare-table.js +1 -1
  164. package/lib/commands/menu/shared/delete-plan.js +1 -1
  165. package/lib/commands/menu/shared/facts.js +1 -1
  166. package/lib/commands/menu/shared/index.js +1 -1
  167. package/lib/commands/menu/shared/inquirer.js +1 -1
  168. package/lib/commands/menu/shared/local-pages.js +1 -1
  169. package/lib/commands/menu/shared/logic.js +1 -1
  170. package/lib/commands/menu/shared/mutations.js +1 -1
  171. package/lib/commands/menu/shared/path.js +1 -1
  172. package/lib/commands/menu/shared/service.js +1 -1
  173. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  174. package/lib/commands/menu/shared/sync-core.js +1 -1
  175. package/lib/commands/menu/shared/update-core.js +1 -1
  176. package/lib/commands/menu/shared/valid-url.js +1 -1
  177. package/lib/commands/menu/subapp-assets-status.js +1 -1
  178. package/lib/commands/menu/subapp-assets-update.js +1 -1
  179. package/lib/commands/menu/sync.js +1 -1
  180. package/lib/commands/menu/visibility-update.js +1 -1
  181. package/lib/commands/notification/config-create.js +1 -1
  182. package/lib/commands/notification/config-delete.js +1 -1
  183. package/lib/commands/notification/config-list.js +1 -1
  184. package/lib/commands/notification/config-update.js +1 -1
  185. package/lib/commands/notification/index.js +1 -1
  186. package/lib/commands/notification/shared.js +1 -1
  187. package/lib/commands/ocr/index.js +1 -1
  188. package/lib/commands/page/create.js +1 -1
  189. package/lib/commands/page/custom/detail.js +1 -1
  190. package/lib/commands/page/custom/list.js +1 -1
  191. package/lib/commands/page/custom/publish.js +1 -1
  192. package/lib/commands/page/custom/shared.js +1 -1
  193. package/lib/commands/page/custom/syntax.js +1 -1
  194. package/lib/commands/page/custom/update.js +1 -1
  195. package/lib/commands/page/data-list-status.js +1 -1
  196. package/lib/commands/page/generate-start.js +1 -1
  197. package/lib/commands/page/generate-status.js +1 -1
  198. package/lib/commands/page/index.js +1 -1
  199. package/lib/commands/page/pull.js +1 -1
  200. package/lib/commands/page/push.js +1 -1
  201. package/lib/commands/page/relation-audit.js +1 -1
  202. package/lib/commands/page/restore.js +1 -1
  203. package/lib/commands/page/shared.js +1 -1
  204. package/lib/commands/page/sync.js +1 -1
  205. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  206. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  207. package/lib/commands/project/create/format-elapsed.js +1 -1
  208. package/lib/commands/project/create/main.js +1 -1
  209. package/lib/commands/project/create/materialize-project-template.js +1 -1
  210. package/lib/commands/project/create/project-name.js +1 -1
  211. package/lib/commands/project/create/project-template-archive.js +1 -1
  212. package/lib/commands/project/create/project-template-path.js +1 -1
  213. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  214. package/lib/commands/project/create/use-format-code.js +1 -1
  215. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  216. package/lib/commands/project/domain-routing-sync.js +1 -1
  217. package/lib/commands/project/index.js +1 -1
  218. package/lib/commands/project/upgrade.js +1 -1
  219. package/lib/commands/registry.js +1 -1
  220. package/lib/commands/role/delete.js +1 -1
  221. package/lib/commands/role/detail.js +1 -1
  222. package/lib/commands/role/index.js +1 -1
  223. package/lib/commands/role/list.js +1 -1
  224. package/lib/commands/role/shared.js +1 -1
  225. package/lib/commands/role/update.js +1 -1
  226. package/lib/commands/role/user-add.js +1 -1
  227. package/lib/commands/role/user-remove.js +1 -1
  228. package/lib/commands/role/user-resolve.js +1 -1
  229. package/lib/commands/rule/get.js +1 -1
  230. package/lib/commands/rule/index.js +1 -1
  231. package/lib/commands/rule/list.js +1 -1
  232. package/lib/commands/rule/set.js +1 -1
  233. package/lib/commands/rule/shared.js +1 -1
  234. package/lib/commands/run/index.js +1 -1
  235. package/lib/commands/schema.js +1 -1
  236. package/lib/commands/sql/create.js +1 -1
  237. package/lib/commands/sql/delete.js +1 -1
  238. package/lib/commands/sql/detail.js +1 -1
  239. package/lib/commands/sql/exec.js +1 -1
  240. package/lib/commands/sql/index.js +1 -1
  241. package/lib/commands/sql/list.js +1 -1
  242. package/lib/commands/sql/pull.js +1 -1
  243. package/lib/commands/sql/push.js +1 -1
  244. package/lib/commands/sql/shared.js +1 -1
  245. package/lib/commands/sql/status.js +1 -1
  246. package/lib/commands/sql/validate.js +1 -1
  247. package/lib/commands/task/index.js +1 -1
  248. package/lib/commands/task/status.js +1 -1
  249. package/lib/commands/tenant/index.js +1 -1
  250. package/lib/commands/tenant/members-list.js +1 -1
  251. package/lib/commands/tenant/shared.js +1 -1
  252. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  253. package/lib/commands/user-account/feishu-bind.js +1 -1
  254. package/lib/commands/user-account/index.js +1 -1
  255. package/lib/commands/workspace/add.js +1 -1
  256. package/lib/commands/workspace/index.js +1 -1
  257. package/lib/commands/workspace/remove.js +1 -1
  258. package/lib/config/domain-config.js +1 -1
  259. package/lib/config/project-domain-routing.js +1 -1
  260. package/lib/config/region-config.js +1 -1
  261. package/lib/config/schema.js +1 -1
  262. package/lib/constant/cdn.js +1 -1
  263. package/lib/constant/cli.js +1 -1
  264. package/lib/constant/defaults.js +1 -1
  265. package/lib/constant/domain.js +1 -1
  266. package/lib/constant/env.js +1 -1
  267. package/lib/constant/output.js +1 -1
  268. package/lib/constant/paths.js +1 -1
  269. package/lib/constant/region.js +1 -1
  270. package/lib/constant/risk.js +1 -1
  271. package/lib/constant/routing-profile.js +1 -1
  272. package/lib/context/app-resolver.js +1 -1
  273. package/lib/context/auth-resolver.js +1 -1
  274. package/lib/context/config-loader.js +1 -1
  275. package/lib/context.js +1 -1
  276. package/lib/core/alias-resolver.js +1 -1
  277. package/lib/core/api-client.js +1 -1
  278. package/lib/core/bff/config.js +1 -1
  279. package/lib/core/bff/file-system.js +1 -1
  280. package/lib/core/bff/hash.js +1 -1
  281. package/lib/core/bff/hook-directory.js +1 -1
  282. package/lib/core/bff/lock.js +1 -1
  283. package/lib/core/bff/utils.js +1 -1
  284. package/lib/core/cross-db-relation.js +1 -1
  285. package/lib/core/db-resolver.js +1 -1
  286. package/lib/core/flow-config.js +1 -1
  287. package/lib/core/instant-api-policy/config.js +1 -1
  288. package/lib/core/kb-search-client.js +1 -1
  289. package/lib/core/page/file-system.js +1 -1
  290. package/lib/core/page/hash.js +1 -1
  291. package/lib/core/page/lock.js +1 -1
  292. package/lib/core/page/lr-smart-jsx.js +1 -1
  293. package/lib/core/sql-index-auditor.js +1 -1
  294. package/lib/core/sql-sync/config.js +1 -1
  295. package/lib/core/sql-sync/file-system.js +1 -1
  296. package/lib/core/sql-sync/hash.js +1 -1
  297. package/lib/core/sql-sync/lock.js +1 -1
  298. package/lib/core/sql-sync/utils.js +1 -1
  299. package/lib/core/sql-validator.js +1 -1
  300. package/lib/errors.js +1 -1
  301. package/lib/framework/build-all-flags.js +1 -1
  302. package/lib/framework/error-output.js +1 -1
  303. package/lib/framework/explicit-yes.js +1 -1
  304. package/lib/framework/flags.js +1 -1
  305. package/lib/framework/help.js +1 -1
  306. package/lib/framework/index.js +1 -1
  307. package/lib/framework/output.js +1 -1
  308. package/lib/framework/response.js +1 -1
  309. package/lib/framework/runner-alias.js +1 -1
  310. package/lib/framework/runner.js +1 -1
  311. package/lib/framework/schema-export.js +1 -1
  312. package/lib/framework/supported-flags.js +1 -1
  313. package/lib/framework/types.js +1 -1
  314. package/lib/generated/build-info.d.ts +4 -4
  315. package/lib/generated/build-info.js +1 -1
  316. package/lib/generated/official-routing.js +1 -1
  317. package/lib/generated/routing-contract.js +1 -1
  318. package/lib/help.js +1 -1
  319. package/lib/postinstall.js +1 -1
  320. package/lib/runtime/confirmation.js +1 -1
  321. package/lib/runtime/event.js +1 -1
  322. package/lib/runtime/index.js +1 -1
  323. package/lib/runtime/queue.js +1 -1
  324. package/lib/runtime/resolve.js +1 -1
  325. package/lib/skills/builtin-skill.js +1 -1
  326. package/lib/skills/main.js +1 -1
  327. package/lib/skills/npx-skills-add.js +1 -1
  328. package/lib/skills/skill-presence.js +1 -1
  329. package/lib/telemetry/cli-command-trace.js +1 -1
  330. package/lib/telemetry/cli-help-trace.js +1 -1
  331. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  332. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  333. package/lib/telemetry/send-cli-trace-log.js +1 -1
  334. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  335. package/lib/utils/ai_config.js +1 -1
  336. package/lib/utils/apply-jq-filter.js +1 -1
  337. package/lib/utils/cdn-config.js +1 -1
  338. package/lib/utils/check-sdk-version.js +1 -1
  339. package/lib/utils/cli-version-check.js +1 -1
  340. package/lib/utils/cli-version-policy.js +1 -1
  341. package/lib/utils/config.js +1 -1
  342. package/lib/utils/entity-with-id.js +1 -1
  343. package/lib/utils/file-utils.js +1 -1
  344. package/lib/utils/guides-cdn.js +1 -1
  345. package/lib/utils/http-client.js +1 -1
  346. package/lib/utils/is-non-interactive.js +1 -1
  347. package/lib/utils/logger.js +1 -1
  348. package/lib/utils/params.js +1 -1
  349. package/lib/utils/platform.js +1 -1
  350. package/lib/utils/sleep.js +1 -1
  351. package/lib/utils/template-replacer.js +1 -1
  352. package/lib/utils/update-notice.js +1 -1
  353. package/lib/utils/version.js +1 -1
  354. package/lib/utils/with-active-cookie.js +1 -1
  355. package/lib/utils/write-cli-side-channel.js +1 -1
  356. package/package.json +1 -1
  357. package/skills/rabetbase/SKILL.md +3 -3
  358. package/skills/rabetbase/guides/independent-deployment.md +11 -1
  359. package/skills/rabetbase/references/rabetbase-config.md +16 -19
  360. package/skills/rabetbase/references/rabetbase-menu-visibility-update.md +5 -4
  361. package/skills/rabetbase/references/rabetbase-workspace.md +3 -1
  362. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  363. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- function a59_0x2e83(_0x1cff53,_0x5147e2){_0x1cff53=_0x1cff53-0x88;const _0x5f7693=a59_0x5f76();let _0x2e8387=_0x5f7693[_0x1cff53];return _0x2e8387;}const a59_0x1b9c90=a59_0x2e83;(function(_0x29b83c,_0x6eced8){const _0x19ccf1=a59_0x2e83,_0x208e9b=_0x29b83c();while(!![]){try{const _0x59d5c5=parseInt(_0x19ccf1(0x9f))/0x1*(-parseInt(_0x19ccf1(0x93))/0x2)+parseInt(_0x19ccf1(0x90))/0x3+-parseInt(_0x19ccf1(0x8f))/0x4+parseInt(_0x19ccf1(0x89))/0x5+parseInt(_0x19ccf1(0x94))/0x6+-parseInt(_0x19ccf1(0x95))/0x7*(parseInt(_0x19ccf1(0x96))/0x8)+parseInt(_0x19ccf1(0x91))/0x9*(parseInt(_0x19ccf1(0x98))/0xa);if(_0x59d5c5===_0x6eced8)break;else _0x208e9b['push'](_0x208e9b['shift']());}catch(_0x194cd1){_0x208e9b['push'](_0x208e9b['shift']());}}}(a59_0x5f76,0x3f39f));import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a59_0x5f76(){const _0x42a777=['1423667DDawLS','16TleGwt','validation','3739440gEKsBv','key','appcode','config','get','string','object','53397vrXfUb','\x20config\x20get\x20--key\x20<key>','1884395hJhNWH','Get\x20a\x20config\x20value\x20by\x20key','Missing\x20key.','Key\x20not\x20found:\x20','str','read','1285348UiBwxT','35073boqNXu','18WwBmgs','Usage:\x20','12YpMCGi','1025988VLKPJu'];a59_0x5f76=function(){return _0x42a777;};return a59_0x5f76();}import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0x55e6c7){const _0x2f93d4=a59_0x2e83,_0x375c4d=_0x55e6c7[_0x2f93d4(0x8d)](_0x2f93d4(0x99));if(!_0x375c4d)throw CliErrors[_0x2f93d4(0x97)](_0x2f93d4(0x8b),_0x2f93d4(0x92)+CLI_BIN_NAME+_0x2f93d4(0x88));const _0x5bf4b5=readConfig(),_0x2de04d=_0x375c4d==='app'?_0x2f93d4(0x9a):_0x375c4d,_0xac7537=_0x5bf4b5[_0x2de04d];if(_0xac7537===undefined)throw CliErrors[_0x2f93d4(0x97)](_0x2f93d4(0x8c)+_0x375c4d);return{'ok':!![],'data':typeof _0xac7537===_0x2f93d4(0x9e)?_0xac7537:{[_0x2de04d]:_0xac7537},'message':typeof _0xac7537===_0x2f93d4(0x9e)?undefined:String(_0xac7537)};}export const configGetDefinition={'service':a59_0x1b9c90(0x9b),'command':a59_0x1b9c90(0x9c),'description':a59_0x1b9c90(0x8a),'risk':a59_0x1b9c90(0x8e),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a59_0x1b9c90(0x99),'type':a59_0x1b9c90(0x9d),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
1
+ const a59_0x36f66f=a59_0x56ed;function a59_0x312e(){const _0x21a00e=['get','66077Jowzar','51VxRpgZ','key','2801176IdzTyf','string','28806alyYWQ','appcode','137930JHgVgL','validation','Usage:\x20','read','217EOzVly','477LVtGBU','100xZxgrr','38145UEYgKi','4066hCFTtg','Get\x20a\x20config\x20value\x20by\x20key','config','\x20config\x20get\x20--key\x20<key>','object','1344ecipma','1122711RePntT','Missing\x20key.'];a59_0x312e=function(){return _0x21a00e;};return a59_0x312e();}(function(_0xa02b4b,_0x39ab1f){const _0x306372=a59_0x56ed,_0x510a03=_0xa02b4b();while(!![]){try{const _0x21e02a=-parseInt(_0x306372(0xc3))/0x1*(-parseInt(_0x306372(0xb9))/0x2)+parseInt(_0x306372(0xbf))/0x3+parseInt(_0x306372(0xb7))/0x4*(parseInt(_0x306372(0xb8))/0x5)+parseInt(_0x306372(0xc7))/0x6*(parseInt(_0x306372(0xb5))/0x7)+-parseInt(_0x306372(0xc5))/0x8+-parseInt(_0x306372(0xb6))/0x9*(-parseInt(_0x306372(0xb1))/0xa)+-parseInt(_0x306372(0xc2))/0xb*(parseInt(_0x306372(0xbe))/0xc);if(_0x21e02a===_0x39ab1f)break;else _0x510a03['push'](_0x510a03['shift']());}catch(_0x266043){_0x510a03['push'](_0x510a03['shift']());}}}(a59_0x312e,0x80506));import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';function a59_0x56ed(_0x5a4a3d,_0x3c96b5){_0x5a4a3d=_0x5a4a3d-0xb1;const _0x312e3e=a59_0x312e();let _0x56ed8=_0x312e3e[_0x5a4a3d];return _0x56ed8;}import{CLI_BIN_NAME}from'../../constant/cli.js';import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0x2e99b4){const _0x4c499b=a59_0x56ed,_0x5ab78f=_0x2e99b4['str'](_0x4c499b(0xc4));if(!_0x5ab78f)throw CliErrors[_0x4c499b(0xb2)](_0x4c499b(0xc0),_0x4c499b(0xb3)+CLI_BIN_NAME+_0x4c499b(0xbc));const _0x38d560=readConfig(),_0xe7b870=_0x5ab78f==='app'?_0x4c499b(0xc8):_0x5ab78f,_0x33f34c=_0x38d560[_0xe7b870];if(_0x33f34c===undefined)throw CliErrors[_0x4c499b(0xb2)]('Key\x20not\x20found:\x20'+_0x5ab78f);return{'ok':!![],'data':typeof _0x33f34c===_0x4c499b(0xbd)?_0x33f34c:{[_0xe7b870]:_0x33f34c},'message':typeof _0x33f34c==='object'?undefined:String(_0x33f34c)};}export const configGetDefinition={'service':a59_0x36f66f(0xbb),'command':a59_0x36f66f(0xc1),'description':a59_0x36f66f(0xba),'risk':a59_0x36f66f(0xb4),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'key','type':a59_0x36f66f(0xc6),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
@@ -1 +1 @@
1
- (function(_0x41a841,_0x3e37f0){const _0x52e7d1=a60_0x542f,_0x3acffa=_0x41a841();while(!![]){try{const _0x2ea3ce=-parseInt(_0x52e7d1(0x164))/0x1+parseInt(_0x52e7d1(0x163))/0x2+parseInt(_0x52e7d1(0x161))/0x3*(parseInt(_0x52e7d1(0x162))/0x4)+-parseInt(_0x52e7d1(0x15e))/0x5*(-parseInt(_0x52e7d1(0x166))/0x6)+-parseInt(_0x52e7d1(0x15d))/0x7+-parseInt(_0x52e7d1(0x160))/0x8+parseInt(_0x52e7d1(0x165))/0x9*(parseInt(_0x52e7d1(0x15f))/0xa);if(_0x2ea3ce===_0x3e37f0)break;else _0x3acffa['push'](_0x3acffa['shift']());}catch(_0x52a313){_0x3acffa['push'](_0x3acffa['shift']());}}}(a60_0xf9c9,0x8d5d4));import{configListDefinition}from'../../commands/config/list.js';function a60_0x542f(_0x379abf,_0x199870){_0x379abf=_0x379abf-0x15d;const _0xf9c95=a60_0xf9c9();let _0x542fc8=_0xf9c95[_0x379abf];return _0x542fc8;}import{configGetDefinition}from'../../commands/config/get.js';import{configSetDefinition}from'../../commands/config/set.js';import{configDeleteDefinition}from'../../commands/config/delete.js';import{configInitDefinition}from'../../commands/config/init.js';function a60_0xf9c9(){const _0x5b9dae=['6424668PbnRNE','2055718EXjujm','5MOXabm','320kbwJBR','2399328uNtdWM','130701HUpsjh','24zWqQTj','1220366cRpwCs','1123249ARsdWL','99423StqoDe'];a60_0xf9c9=function(){return _0x5b9dae;};return a60_0xf9c9();}export const configDefinitions=[configInitDefinition,configListDefinition,configGetDefinition,configSetDefinition,configDeleteDefinition];
1
+ (function(_0x24b7f2,_0x1c1d22){const _0x1950f1=a60_0x1d14,_0x436f2d=_0x24b7f2();while(!![]){try{const _0x501ed7=-parseInt(_0x1950f1(0x1ea))/0x1*(parseInt(_0x1950f1(0x1e7))/0x2)+parseInt(_0x1950f1(0x1ee))/0x3*(-parseInt(_0x1950f1(0x1ed))/0x4)+-parseInt(_0x1950f1(0x1ef))/0x5*(-parseInt(_0x1950f1(0x1f1))/0x6)+-parseInt(_0x1950f1(0x1ec))/0x7*(-parseInt(_0x1950f1(0x1f0))/0x8)+-parseInt(_0x1950f1(0x1f3))/0x9+parseInt(_0x1950f1(0x1e9))/0xa*(-parseInt(_0x1950f1(0x1eb))/0xb)+parseInt(_0x1950f1(0x1e8))/0xc*(parseInt(_0x1950f1(0x1f2))/0xd);if(_0x501ed7===_0x1c1d22)break;else _0x436f2d['push'](_0x436f2d['shift']());}catch(_0x142f87){_0x436f2d['push'](_0x436f2d['shift']());}}}(a60_0x432e,0x86f56));import{configListDefinition}from'../../commands/config/list.js';function a60_0x1d14(_0x3c6d00,_0x4f7622){_0x3c6d00=_0x3c6d00-0x1e7;const _0x432eb8=a60_0x432e();let _0x1d149b=_0x432eb8[_0x3c6d00];return _0x1d149b;}import{configGetDefinition}from'../../commands/config/get.js';import{configSetDefinition}from'../../commands/config/set.js';import{configDeleteDefinition}from'../../commands/config/delete.js';import{configInitDefinition}from'../../commands/config/init.js';export const configDefinitions=[configInitDefinition,configListDefinition,configGetDefinition,configSetDefinition,configDeleteDefinition];function a60_0x432e(){const _0x59d9dd=['118811beyKlp','2317McqJWD','28ygUSvU','433221UjgOnO','345Mgbaea','256hcWQvX','60222Duvged','243113RVDfJe','2725569CfjuQq','756094bmyeLJ','996TXRAHc','10vbhwFX','1YYvUMO'];a60_0x432e=function(){return _0x59d9dd;};return a60_0x432e();}
@@ -1 +1 @@
1
- const a61_0x478711=a61_0x5791;(function(_0x52895c,_0x3c5d01){const _0x125113=a61_0x5791,_0x342325=_0x52895c();while(!![]){try{const _0x101d6e=-parseInt(_0x125113(0x120))/0x1*(parseInt(_0x125113(0x125))/0x2)+-parseInt(_0x125113(0x138))/0x3*(-parseInt(_0x125113(0x11b))/0x4)+-parseInt(_0x125113(0x130))/0x5*(-parseInt(_0x125113(0x108))/0x6)+parseInt(_0x125113(0x13a))/0x7+parseInt(_0x125113(0x129))/0x8*(parseInt(_0x125113(0x116))/0x9)+parseInt(_0x125113(0x100))/0xa+-parseInt(_0x125113(0x137))/0xb;if(_0x101d6e===_0x3c5d01)break;else _0x342325['push'](_0x342325['shift']());}catch(_0x2999d8){_0x342325['push'](_0x342325['shift']());}}}(a61_0x2819,0xc2b5f));import{select}from'@inquirer/prompts';function a61_0x2819(){const _0x5cf46f=['str','enterprise-v1','certificateDomain','map','5SCEWdR','length','Custom\x20KB\x20Service\x20HTTPS\x20origin','Rabetbase\x20connection\x20configured\x20for\x20independent\x20deployment.\x20Domains:\x20','mode','label','Updates\x20the\x20selected\x20Rabetbase\x20region\x20or\x20independent-deployment\x20Domain\x20configuration.\x20Cookie,\x20output\x20format,\x20and\x20app\x20bindings\x20stay\x20unchanged.','31241001aSCoYr','3cMJUnx','Custom\x20User\x20HTTPS\x20origin','10249855tjFrnQ','7184600nnAoJr','runtime-domain','user-domain','manifestDomains','string','Custom\x20SkillHub\x20HTTPS\x20origin','global','local-domain','4495422NFgkSv','independent','Choose\x20either\x20an\x20official\x20region\x20or\x20independent-deployment\x20Domains,\x20not\x20both.','region','Custom\x20Runtime\x20HTTPS\x20origin','Custom\x20Lovrabet\x20workspace\x20HTTPS\x20origin','Available\x20regions:\x20','project','kb-domain','Select\x20Lovrabet\x20region','validation','nonInteractive','Custom\x20knowledge-base\x20HTTPS\x20origin','official','2222901wMQUks','cdn','domains','routing','bool','2920028VMQGNr','Initialize\x20the\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domains','\x22\x20is\x20not\x20currently\x20available.','keys','config','145PZtfsQ','api-domain','skill-domain','localDomain','assign','10556bfQXMG','Custom\x20platform\x20API\x20HTTPS\x20origin','name','write','24NLNHrk','ExitPromptError','join'];a61_0x2819=function(){return _0x5cf46f;};return a61_0x2819();}import{CliErrors}from'../../errors.js';import{readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{DOMAIN_CONFIG_FIELDS,LEGACY_DOMAIN_CONFIG_FIELDS,resolveDomainConfigInput}from'../../config/domain-config.js';function a61_0x5791(_0x52b057,_0x28f384){_0x52b057=_0x52b057-0x100;const _0x2819e3=a61_0x2819();let _0x57911f=_0x2819e3[_0x52b057];return _0x57911f;}import{ENTERPRISE_ROUTING_KIND,ENTERPRISE_ROUTING_PROTOCOL}from'../../generated/routing-contract.js';import{DEFAULT_LOVRABET_REGION,ENABLED_LOVRABET_REGION_VALUES,isEnabledLovrabetRegion}from'../../constant/region.js';import{getOfficialRoutingProfile}from'../../constant/routing-profile.js';import{GLOBAL_SCOPE_FLAG}from'../../commands/common/flags.js';export const configInitFlags=[GLOBAL_SCOPE_FLAG,{'name':a61_0x478711(0x10b),'type':'string','description':'Official\x20Lovrabet\x20region:\x20'+ENABLED_LOVRABET_REGION_VALUES['join'](',\x20'),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':'domain-config','type':'string','description':'Independent-deployment\x20Domain\x20JSON\x20file'},{'name':a61_0x478711(0x102),'type':a61_0x478711(0x104),'description':a61_0x478711(0x139)},{'name':a61_0x478711(0x121),'type':a61_0x478711(0x104),'description':a61_0x478711(0x126)},{'name':a61_0x478711(0x101),'type':a61_0x478711(0x104),'description':a61_0x478711(0x10c)},{'name':a61_0x478711(0x122),'type':a61_0x478711(0x104),'description':a61_0x478711(0x105)},{'name':a61_0x478711(0x110),'type':'string','description':a61_0x478711(0x114)},{'name':'kb-service-domain','type':'string','description':a61_0x478711(0x132)},{'name':'app-domain','type':'string','description':a61_0x478711(0x10d)},{'name':a61_0x478711(0x107),'type':a61_0x478711(0x104),'description':'Custom\x20local\x20callback\x20HTTPS\x20origin'},{'name':'certificate-domain','type':a61_0x478711(0x104),'description':'Custom\x20certificate\x20service\x20HTTPS\x20origin'}];async function resolveRegion(_0xe5f242){const _0x3c9ee9=a61_0x478711,_0x281db1=_0xe5f242[_0x3c9ee9(0x12c)](_0x3c9ee9(0x10b));if(_0x281db1){if(!isEnabledLovrabetRegion(_0x281db1))throw CliErrors[_0x3c9ee9(0x112)]('Region\x20\x22'+_0x281db1+_0x3c9ee9(0x11d),_0x3c9ee9(0x10e)+ENABLED_LOVRABET_REGION_VALUES[_0x3c9ee9(0x12b)](',\x20'));return _0x281db1;}if(_0xe5f242[_0x3c9ee9(0x113)])return DEFAULT_LOVRABET_REGION;try{return await select({'message':_0x3c9ee9(0x111),'default':DEFAULT_LOVRABET_REGION,'choices':ENABLED_LOVRABET_REGION_VALUES[_0x3c9ee9(0x12f)](_0x5c3a6a=>({'name':getOfficialRoutingProfile(_0x5c3a6a)[_0x3c9ee9(0x135)]+'\x20('+_0x5c3a6a+')','value':_0x5c3a6a}))});}catch(_0x1ffdd0){if(_0x1ffdd0?.[_0x3c9ee9(0x127)]===_0x3c9ee9(0x12a))throw CliErrors['cancelled']();throw _0x1ffdd0;}}export async function executeConfigInit(_0x5477d6){const _0x411097=a61_0x478711,_0x5a4695=resolveDomainConfigInput(_0x5477d6),_0x44e47a=_0x5a4695[_0x411097(0x118)],_0x50669f=Object[_0x411097(0x11e)](_0x44e47a)[_0x411097(0x131)]>0x0;if(_0x50669f&&_0x5477d6['str'](_0x411097(0x10b)))throw CliErrors['validation'](_0x411097(0x10a));if(!!_0x44e47a[_0x411097(0x123)]!==!!_0x44e47a[_0x411097(0x12e)])throw CliErrors[_0x411097(0x112)]('Independent\x20deployment\x20requires\x20--local-domain\x20and\x20--certificate-domain\x20together.');const _0x4126b4=_0x5477d6[_0x411097(0x11a)](_0x411097(0x106))?_0x411097(0x106):_0x411097(0x10f),_0x54b9d1=readScopedConfig(_0x4126b4);for(const _0x4b451b of DOMAIN_CONFIG_FIELDS)delete _0x54b9d1[_0x4b451b];for(const _0x44dd65 of LEGACY_DOMAIN_CONFIG_FIELDS)delete _0x54b9d1[_0x44dd65];delete _0x54b9d1[_0x411097(0x119)];let _0x3017e1=null;if(_0x50669f)delete _0x54b9d1[_0x411097(0x10b)],_0x5a4695[_0x411097(0x134)]===_0x411097(0x12d)?_0x54b9d1[_0x411097(0x119)]={'protocol':ENTERPRISE_ROUTING_PROTOCOL,'kind':ENTERPRISE_ROUTING_KIND,'domains':_0x5a4695[_0x411097(0x103)],'cdn':_0x5a4695[_0x411097(0x117)]}:Object[_0x411097(0x124)](_0x54b9d1,_0x44e47a);else{_0x3017e1=await resolveRegion(_0x5477d6);if(_0x3017e1===DEFAULT_LOVRABET_REGION)delete _0x54b9d1['region'];else _0x54b9d1[_0x411097(0x10b)]=_0x3017e1;}return writeScopedConfig(_0x54b9d1,_0x4126b4),{'ok':!![],'message':_0x50669f?_0x411097(0x133)+Object['keys'](_0x5a4695[_0x411097(0x134)]===_0x411097(0x12d)?_0x5a4695[_0x411097(0x103)]:_0x44e47a)[_0x411097(0x12b)](',\x20')+'.':'Rabetbase\x20connection\x20configured\x20for\x20region:\x20'+_0x3017e1+'.','data':{'mode':_0x50669f?_0x411097(0x109):_0x411097(0x115),'protocol':_0x5a4695[_0x411097(0x134)]===_0x411097(0x12d)?ENTERPRISE_ROUTING_PROTOCOL:undefined,'region':_0x3017e1,'domains':_0x44e47a,'cdn':_0x5a4695[_0x411097(0x134)]===_0x411097(0x12d)?_0x5a4695[_0x411097(0x117)]:undefined}};}export const configInitDefinition={'service':a61_0x478711(0x11f),'command':'init','description':a61_0x478711(0x11c),'risk':a61_0x478711(0x128),'confirmationDescription':a61_0x478711(0x136),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':configInitFlags,'execute':executeConfigInit};
1
+ const a61_0x176c81=a61_0x38c7;function a61_0x38c7(_0x309aba,_0x59a637){_0x309aba=_0x309aba-0x144;const _0x5c02f7=a61_0x5c02();let _0x38c73a=_0x5c02f7[_0x309aba];return _0x38c73a;}(function(_0x5cd3dd,_0x56a21a){const _0xf90572=a61_0x38c7,_0x2c8e88=_0x5cd3dd();while(!![]){try{const _0x490928=-parseInt(_0xf90572(0x16f))/0x1+-parseInt(_0xf90572(0x170))/0x2+-parseInt(_0xf90572(0x157))/0x3+-parseInt(_0xf90572(0x164))/0x4+parseInt(_0xf90572(0x182))/0x5*(parseInt(_0xf90572(0x162))/0x6)+parseInt(_0xf90572(0x17b))/0x7+-parseInt(_0xf90572(0x169))/0x8*(-parseInt(_0xf90572(0x152))/0x9);if(_0x490928===_0x56a21a)break;else _0x2c8e88['push'](_0x2c8e88['shift']());}catch(_0x574f6a){_0x2c8e88['push'](_0x2c8e88['shift']());}}}(a61_0x5c02,0xcd952));import{select}from'@inquirer/prompts';import{CliErrors}from'../../errors.js';import{readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{DOMAIN_CONFIG_FIELDS,LEGACY_DOMAIN_CONFIG_FIELDS,resolveDomainConfigInput}from'../../config/domain-config.js';import{ENTERPRISE_ROUTING_KIND,ENTERPRISE_ROUTING_PROTOCOL}from'../../generated/routing-contract.js';function a61_0x5c02(){const _0x362bf6=['cdn','certificateDomain','map','Custom\x20platform\x20API\x20HTTPS\x20origin','app-domain','9jTVFjm','project','assign','api-domain','kb-domain','4747266tLsRFk','nonInteractive','Custom\x20local\x20callback\x20HTTPS\x20origin','validation','routing','Initialize\x20the\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domains','Independent-deployment\x20Domain\x20JSON\x20file','Custom\x20knowledge-base\x20HTTPS\x20origin','Updates\x20the\x20selected\x20Rabetbase\x20region\x20or\x20independent-deployment\x20Domain\x20configuration.\x20Cookie,\x20output\x20format,\x20and\x20app\x20bindings\x20stay\x20unchanged.','\x22\x20is\x20not\x20currently\x20available.','init','6phhwwL','localDomain','3703500ThNSLV','local-domain','str','Region\x20\x22','Official\x20Lovrabet\x20region:\x20','16024312thPMVe','domain-config','Choose\x20either\x20an\x20official\x20region\x20or\x20independent-deployment\x20Domains,\x20not\x20both.','string','ExitPromptError','Custom\x20SkillHub\x20HTTPS\x20origin','197318CBHIZQ','2685316YNcoIC','length','official','Rabetbase\x20connection\x20configured\x20for\x20independent\x20deployment.\x20Domains:\x20','name','enterprise-v1','Independent\x20deployment\x20requires\x20--local-domain\x20and\x20--certificate-domain\x20together.','mode','Custom\x20KB\x20Service\x20HTTPS\x20origin','user-domain','keys','8512637HAPdrh','Custom\x20User\x20HTTPS\x20origin','manifestDomains','certificate-domain','Custom\x20Runtime\x20HTTPS\x20origin','Custom\x20Lovrabet\x20workspace\x20HTTPS\x20origin','global','8356045foSycc','region','skill-domain','independent','Rabetbase\x20connection\x20configured\x20for\x20region:\x20','Custom\x20certificate\x20service\x20HTTPS\x20origin','cancelled','domains','join','runtime-domain'];a61_0x5c02=function(){return _0x362bf6;};return a61_0x5c02();}import{DEFAULT_LOVRABET_REGION,ENABLED_LOVRABET_REGION_VALUES,isEnabledLovrabetRegion}from'../../constant/region.js';import{getOfficialRoutingProfile}from'../../constant/routing-profile.js';import{GLOBAL_SCOPE_FLAG}from'../../commands/common/flags.js';export const configInitFlags=[GLOBAL_SCOPE_FLAG,{'name':'region','type':'string','description':a61_0x176c81(0x168)+ENABLED_LOVRABET_REGION_VALUES['join'](',\x20'),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':a61_0x176c81(0x16a),'type':a61_0x176c81(0x16c),'description':a61_0x176c81(0x15d)},{'name':a61_0x176c81(0x179),'type':a61_0x176c81(0x16c),'description':a61_0x176c81(0x17c)},{'name':a61_0x176c81(0x155),'type':a61_0x176c81(0x16c),'description':a61_0x176c81(0x150)},{'name':a61_0x176c81(0x14c),'type':a61_0x176c81(0x16c),'description':a61_0x176c81(0x17f)},{'name':a61_0x176c81(0x145),'type':'string','description':a61_0x176c81(0x16e)},{'name':a61_0x176c81(0x156),'type':a61_0x176c81(0x16c),'description':a61_0x176c81(0x15e)},{'name':'kb-service-domain','type':a61_0x176c81(0x16c),'description':a61_0x176c81(0x178)},{'name':a61_0x176c81(0x151),'type':a61_0x176c81(0x16c),'description':a61_0x176c81(0x180)},{'name':a61_0x176c81(0x165),'type':'string','description':a61_0x176c81(0x159)},{'name':a61_0x176c81(0x17e),'type':a61_0x176c81(0x16c),'description':a61_0x176c81(0x148)}];async function resolveRegion(_0x5436da){const _0x253e76=a61_0x176c81,_0x91fabf=_0x5436da['str'](_0x253e76(0x144));if(_0x91fabf){if(!isEnabledLovrabetRegion(_0x91fabf))throw CliErrors[_0x253e76(0x15a)](_0x253e76(0x167)+_0x91fabf+_0x253e76(0x160),'Available\x20regions:\x20'+ENABLED_LOVRABET_REGION_VALUES[_0x253e76(0x14b)](',\x20'));return _0x91fabf;}if(_0x5436da[_0x253e76(0x158)])return DEFAULT_LOVRABET_REGION;try{return await select({'message':'Select\x20Lovrabet\x20region','default':DEFAULT_LOVRABET_REGION,'choices':ENABLED_LOVRABET_REGION_VALUES[_0x253e76(0x14f)](_0x2f8d69=>({'name':getOfficialRoutingProfile(_0x2f8d69)['label']+'\x20('+_0x2f8d69+')','value':_0x2f8d69}))});}catch(_0x3a6357){if(_0x3a6357?.[_0x253e76(0x174)]===_0x253e76(0x16d))throw CliErrors[_0x253e76(0x149)]();throw _0x3a6357;}}export async function executeConfigInit(_0xc62656){const _0x4d7e21=a61_0x176c81,_0x3bc285=resolveDomainConfigInput(_0xc62656),_0x4a32c3=_0x3bc285[_0x4d7e21(0x14a)],_0x3fdedd=Object[_0x4d7e21(0x17a)](_0x4a32c3)[_0x4d7e21(0x171)]>0x0;if(_0x3fdedd&&_0xc62656[_0x4d7e21(0x166)]('region'))throw CliErrors[_0x4d7e21(0x15a)](_0x4d7e21(0x16b));if(!!_0x4a32c3[_0x4d7e21(0x163)]!==!!_0x4a32c3[_0x4d7e21(0x14e)])throw CliErrors['validation'](_0x4d7e21(0x176));const _0x16ea87=_0xc62656['bool'](_0x4d7e21(0x181))?_0x4d7e21(0x181):_0x4d7e21(0x153),_0x4f5e51=readScopedConfig(_0x16ea87);for(const _0x33bdb2 of DOMAIN_CONFIG_FIELDS)delete _0x4f5e51[_0x33bdb2];for(const _0x3962dc of LEGACY_DOMAIN_CONFIG_FIELDS)delete _0x4f5e51[_0x3962dc];delete _0x4f5e51[_0x4d7e21(0x15b)];let _0x312fc8=null;if(_0x3fdedd)delete _0x4f5e51[_0x4d7e21(0x144)],_0x3bc285[_0x4d7e21(0x177)]===_0x4d7e21(0x175)?_0x4f5e51[_0x4d7e21(0x15b)]={'protocol':ENTERPRISE_ROUTING_PROTOCOL,'kind':ENTERPRISE_ROUTING_KIND,'domains':_0x3bc285[_0x4d7e21(0x17d)],'cdn':_0x3bc285[_0x4d7e21(0x14d)]}:Object[_0x4d7e21(0x154)](_0x4f5e51,_0x4a32c3);else{_0x312fc8=await resolveRegion(_0xc62656);if(_0x312fc8===DEFAULT_LOVRABET_REGION)delete _0x4f5e51[_0x4d7e21(0x144)];else _0x4f5e51[_0x4d7e21(0x144)]=_0x312fc8;}return writeScopedConfig(_0x4f5e51,_0x16ea87),{'ok':!![],'message':_0x3fdedd?_0x4d7e21(0x173)+Object[_0x4d7e21(0x17a)](_0x3bc285[_0x4d7e21(0x177)]===_0x4d7e21(0x175)?_0x3bc285[_0x4d7e21(0x17d)]:_0x4a32c3)[_0x4d7e21(0x14b)](',\x20')+'.':_0x4d7e21(0x147)+_0x312fc8+'.','data':{'mode':_0x3fdedd?_0x4d7e21(0x146):_0x4d7e21(0x172),'protocol':_0x3bc285[_0x4d7e21(0x177)]===_0x4d7e21(0x175)?ENTERPRISE_ROUTING_PROTOCOL:undefined,'region':_0x312fc8,'domains':_0x4a32c3,'cdn':_0x3bc285['mode']==='enterprise-v1'?_0x3bc285[_0x4d7e21(0x14d)]:undefined}};}export const configInitDefinition={'service':'config','command':a61_0x176c81(0x161),'description':a61_0x176c81(0x15c),'risk':'write','confirmationDescription':a61_0x176c81(0x15f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':configInitFlags,'execute':executeConfigInit};
@@ -1 +1 @@
1
- const a62_0x4fba58=a62_0x5476;function a62_0x5476(_0x452e22,_0x207ab7){_0x452e22=_0x452e22-0x1da;const _0x590cad=a62_0x590c();let _0x547652=_0x590cad[_0x452e22];return _0x547652;}(function(_0x31c93f,_0x3ecd44){const _0x456959=a62_0x5476,_0x5ab6af=_0x31c93f();while(!![]){try{const _0xac2b7e=parseInt(_0x456959(0x1db))/0x1+parseInt(_0x456959(0x1e4))/0x2+-parseInt(_0x456959(0x1e8))/0x3+-parseInt(_0x456959(0x1e2))/0x4*(-parseInt(_0x456959(0x1dc))/0x5)+parseInt(_0x456959(0x1e5))/0x6*(-parseInt(_0x456959(0x1e6))/0x7)+parseInt(_0x456959(0x1e3))/0x8+-parseInt(_0x456959(0x1e1))/0x9;if(_0xac2b7e===_0x3ecd44)break;else _0x5ab6af['push'](_0x5ab6af['shift']());}catch(_0x1f9ca9){_0x5ab6af['push'](_0x5ab6af['shift']());}}}(a62_0x590c,0x19245));import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0x371bbc){const _0xcab6cf=a62_0x5476,_0x536e1=_0x371bbc[_0xcab6cf(0x1e7)](_0xcab6cf(0x1da))?readScopedConfig(_0xcab6cf(0x1da)):readConfig();return{'ok':!![],'data':_0x536e1};}function a62_0x590c(){const _0x381633=['543688WsiRNK','249032iPPYlv','90462AIcBjE','18smXtex','461979SYPXAN','bool','43527MTEOCO','global','147489DUVMvs','5XxtLdy','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','list','read','boolean','398610jcXXSF'];a62_0x590c=function(){return _0x381633;};return a62_0x590c();}export const configListDefinition={'service':'config','command':a62_0x4fba58(0x1de),'description':'List\x20all\x20config\x20values','risk':a62_0x4fba58(0x1df),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a62_0x4fba58(0x1da),'type':a62_0x4fba58(0x1e0),'description':a62_0x4fba58(0x1dd),'default':![]}],'execute':execute};
1
+ function a62_0x220a(){const _0x4959d4=['list','config','794512JSSzgm','290785mrBWPl','3nMmNLK','676040XvFGKv','35brwHTW','71368QquCFF','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','62564zKhjBF','List\x20all\x20config\x20values','global','63gjgGOa','290613bCUieo','72990PPLSbm'];a62_0x220a=function(){return _0x4959d4;};return a62_0x220a();}const a62_0x120f70=a62_0x2c7f;function a62_0x2c7f(_0x351d6,_0x2ab338){_0x351d6=_0x351d6-0x1a5;const _0x220a49=a62_0x220a();let _0x2c7f20=_0x220a49[_0x351d6];return _0x2c7f20;}(function(_0x220cca,_0x328fa0){const _0x5e8680=a62_0x2c7f,_0x297c02=_0x220cca();while(!![]){try{const _0x551e0e=parseInt(_0x5e8680(0x1b2))/0x1*(parseInt(_0x5e8680(0x1a8))/0x2)+parseInt(_0x5e8680(0x1ac))/0x3+-parseInt(_0x5e8680(0x1b0))/0x4+parseInt(_0x5e8680(0x1b1))/0x5+parseInt(_0x5e8680(0x1ad))/0x6*(parseInt(_0x5e8680(0x1a5))/0x7)+-parseInt(_0x5e8680(0x1a6))/0x8*(-parseInt(_0x5e8680(0x1ab))/0x9)+-parseInt(_0x5e8680(0x1b3))/0xa;if(_0x551e0e===_0x328fa0)break;else _0x297c02['push'](_0x297c02['shift']());}catch(_0x41ad61){_0x297c02['push'](_0x297c02['shift']());}}}(a62_0x220a,0x19dba));import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0xab3f76){const _0xc6c29b=a62_0x2c7f,_0x5871c9=_0xab3f76['bool'](_0xc6c29b(0x1aa))?readScopedConfig(_0xc6c29b(0x1aa)):readConfig();return{'ok':!![],'data':_0x5871c9};}export const configListDefinition={'service':a62_0x120f70(0x1af),'command':a62_0x120f70(0x1ae),'description':a62_0x120f70(0x1a9),'risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a62_0x120f70(0x1aa),'type':'boolean','description':a62_0x120f70(0x1a7),'default':![]}],'execute':execute};
@@ -1 +1 @@
1
- const a63_0x4f2449=a63_0xcec1;function a63_0x4cf8(){const _0x4b03ed=['riskLevel','write','Missing\x20value.','Config\x20value','key','Settable\x20top-level\x20keys:\x20','locale','12mKPJcN','2fRuzfW','`,\x20`','string','keys','global','env','640016EUqDMo','1650410epCzIf','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','Use\x20`','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','app','Project','Invalid\x20value\x20for\x20\x22','Invalid\x20locale\x20value.','object','\x20(stored\x20as\x20a\x20single\x20app\x20profile)','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','length','\x20workspace\x20use\x20--app\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','108pTVeEj','455664dFZAGN','config','261930QfHpPJ','Usage:\x20','join','includes','apps','str','validation','appcode','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','\x20workspace\x20add\x20<name>\x20--appcode\x20','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','\x20appcode\x20set\x20to:\x20','value','bool','Global','2544059NkCvll','\x22\x20is\x20not\x20settable.','228770BnvdtU','Top-level\x20key\x20\x22','\x20set\x20to:\x20','set','9042wgzgJF'];a63_0x4cf8=function(){return _0x4b03ed;};return a63_0x4cf8();}(function(_0x9c1af,_0x43926c){const _0x4c60f9=a63_0xcec1,_0x45d78f=_0x9c1af();while(!![]){try{const _0x5d434d=parseInt(_0x4c60f9(0x100))/0x1*(-parseInt(_0x4c60f9(0xe2))/0x2)+parseInt(_0x4c60f9(0xf7))/0x3*(-parseInt(_0x4c60f9(0xff))/0x4)+-parseInt(_0x4c60f9(0x107))/0x5+parseInt(_0x4c60f9(0xe0))/0x6+parseInt(_0x4c60f9(0xf1))/0x7+parseInt(_0x4c60f9(0x106))/0x8+-parseInt(_0x4c60f9(0xdf))/0x9*(-parseInt(_0x4c60f9(0xf3))/0xa);if(_0x5d434d===_0x43926c)break;else _0x45d78f['push'](_0x45d78f['shift']());}catch(_0x177958){_0x45d78f['push'](_0x45d78f['shift']());}}}(a63_0x4cf8,0x2f155));import{CliErrors}from'../../errors.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function a63_0xcec1(_0x3ee588,_0x3615eb){_0x3ee588=_0x3ee588-0xd3;const _0x4cf8fc=a63_0x4cf8();let _0xcec11a=_0x4cf8fc[_0x3ee588];return _0xcec11a;}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';import{DOMAIN_CONFIG_FIELDS,normalizeDomainOrigin}from'../../config/domain-config.js';async function execute(_0x3a0440){const _0x17944e=a63_0xcec1,_0x42ba34=_0x3a0440[_0x17944e(0xe7)](_0x17944e(0xfc)),_0x5141d8=_0x3a0440[_0x17944e(0xe7)]('value');if(!_0x42ba34)throw CliErrors[_0x17944e(0xe8)]('Missing\x20key.','Usage:\x20'+CLI_BIN_NAME+'\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>');if(_0x5141d8===undefined||_0x5141d8==='')throw CliErrors['validation'](_0x17944e(0xfa),_0x17944e(0xe3)+CLI_BIN_NAME+_0x17944e(0xd5));let _0xa6714d=_0x42ba34,_0x5e0232=_0x5141d8;if(_0x5141d8[_0x17944e(0xdd)]>0x1f4)throw CliErrors['validation'](_0x17944e(0xd3));if(_0x42ba34===_0x17944e(0xf8))throw CliErrors[_0x17944e(0xe8)](_0x17944e(0xea));if(!isTopLevelConfigKey(_0x42ba34))throw CliErrors['validation'](_0x17944e(0xf4)+_0x42ba34+_0x17944e(0xf2),_0x17944e(0xfd)+getTopLevelConfigKeySummary());if(CONFIG_ENUM_VALUES[_0x42ba34]&&!CONFIG_ENUM_VALUES[_0x42ba34][_0x17944e(0xe5)](_0x5141d8))throw CliErrors[_0x17944e(0xe8)](_0x17944e(0xd8)+_0x42ba34+'\x22.\x20Allowed:\x20'+CONFIG_ENUM_VALUES[_0x42ba34][_0x17944e(0xe4)](',\x20'));if(_0x42ba34==='locale'&&!normalizeLocale(_0x5141d8))throw CliErrors[_0x17944e(0xe8)](_0x17944e(0xd9),_0x17944e(0x108));DOMAIN_CONFIG_FIELDS[_0x17944e(0xe5)](_0x42ba34)&&(_0x5e0232=normalizeDomainOrigin(_0x42ba34,_0x5141d8));const _0x344956={'global':_0x3a0440[_0x17944e(0xef)]('global')},_0x523d65=resolveWriteScope(_0x344956),_0x943782=readScopedConfig(_0x523d65);_0x42ba34==='app'&&(_0xa6714d=_0x17944e(0xe9),delete _0x943782[_0x17944e(0xd6)]);_0x42ba34===_0x17944e(0xfe)&&(_0x5e0232=normalizeLocale(_0x5141d8));if(_0x42ba34===_0x17944e(0x105)){_0x5e0232=normalizeEnv(_0x5141d8);if(!isProduction(_0x5e0232)&&!isDaily(_0x5e0232))throw CliErrors[_0x17944e(0xe8)](_0x17944e(0xd4),'Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.');}if(_0x42ba34===_0x17944e(0xe9)){const _0x26e7ba=_0x943782[_0x17944e(0xe6)]&&typeof _0x943782[_0x17944e(0xe6)]===_0x17944e(0xda)?Object[_0x17944e(0x103)](_0x943782['apps']):[];if(_0x26e7ba[_0x17944e(0xdd)]>0x0)throw CliErrors[_0x17944e(0xe8)](_0x17944e(0xec),_0x17944e(0x109)+CLI_BIN_NAME+_0x17944e(0xeb)+_0x5e0232+_0x17944e(0x101)+CLI_BIN_NAME+_0x17944e(0xde));const _0x3cba91=buildCanonicalProjectConfig({..._0x943782},{'appCodes':[_0x5e0232],'env':typeof _0x943782['env']===_0x17944e(0x102)?_0x943782[_0x17944e(0x105)]:undefined});writeScopedConfig(_0x3cba91,_0x523d65);const _0x523c67=_0x523d65===_0x17944e(0x104)?_0x17944e(0xf0):_0x17944e(0xd7);return{'ok':!![],'message':'✓\x20'+_0x523c67+_0x17944e(0xed)+_0x5e0232+_0x17944e(0xdb)};}_0x943782[_0xa6714d]=_0x5e0232,writeScopedConfig(_0x943782,_0x523d65);const _0x29686f=_0x523d65===_0x17944e(0x104)?_0x17944e(0xf0):'Project';return{'ok':!![],'message':'✓\x20'+_0x29686f+'\x20'+_0xa6714d+_0x17944e(0xf5)+_0x5e0232};}export const configSetDefinition={'service':a63_0x4f2449(0xe1),'command':a63_0x4f2449(0xf6),'description':'Set\x20a\x20config\x20value','risk':a63_0x4f2449(0xf9),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a63_0x4f2449(0xfc),'type':'string','description':getConfigCommandKeyDescription(),'required':!![]},{'name':a63_0x4f2449(0xee),'type':a63_0x4f2449(0x102),'description':a63_0x4f2449(0xfb),'required':!![]},{'name':'global','type':'boolean','description':a63_0x4f2449(0xdc),'default':![]}],'execute':execute};
1
+ function a63_0x33bc(){const _0x85e770=['boolean','54PwwhUE','`,\x20`','\x20(stored\x20as\x20a\x20single\x20app\x20profile)','length','key','bool','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','locale','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','set','includes','Project','apps','Missing\x20key.','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','Use\x20`','value','179768AkXbIV','Usage:\x20','env','Invalid\x20value\x20for\x20\x22','\x20set\x20to:\x20','7769280MEJPjB','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','global','1504Dajsox','keys','\x20workspace\x20add\x20<name>\x20--appcode\x20','Top-level\x20key\x20\x22','Invalid\x20locale\x20value.','Set\x20a\x20config\x20value','160LhfiwN','33490ZglMGj','16476IcHDOo','config','Global','riskLevel','Config\x20value','join','appcode','3582GHjKqf','string','\x20appcode\x20set\x20to:\x20','validation','\x22\x20is\x20not\x20settable.','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','3049746yqvzvl','\x22.\x20Allowed:\x20','str','504105aZiBpI','1375RzATCV','42361PROxpw','app'];a63_0x33bc=function(){return _0x85e770;};return a63_0x33bc();}const a63_0x57751f=a63_0x1875;function a63_0x1875(_0xf8987b,_0xc6c4af){_0xf8987b=_0xf8987b-0x1d3;const _0x33bcf0=a63_0x33bc();let _0x18752b=_0x33bcf0[_0xf8987b];return _0x18752b;}(function(_0x37dc32,_0x23c2fe){const _0x2e62a7=a63_0x1875,_0xc039ef=_0x37dc32();while(!![]){try{const _0x1fab36=-parseInt(_0x2e62a7(0x201))/0x1*(parseInt(_0x2e62a7(0x1e8))/0x2)+-parseInt(_0x2e62a7(0x1fd))/0x3+-parseInt(_0x2e62a7(0x1e0))/0x4*(parseInt(_0x2e62a7(0x1ee))/0x5)+-parseInt(_0x2e62a7(0x205))/0x6*(parseInt(_0x2e62a7(0x200))/0x7)+parseInt(_0x2e62a7(0x1e5))/0x8+-parseInt(_0x2e62a7(0x1f7))/0x9*(parseInt(_0x2e62a7(0x1ef))/0xa)+parseInt(_0x2e62a7(0x202))/0xb*(parseInt(_0x2e62a7(0x1f0))/0xc);if(_0x1fab36===_0x23c2fe)break;else _0xc039ef['push'](_0xc039ef['shift']());}catch(_0x3276fb){_0xc039ef['push'](_0xc039ef['shift']());}}}(a63_0x33bc,0xc0954));import{CliErrors}from'../../errors.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';import{CLI_BIN_NAME,CONFIG_ENUM_VALUES,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{normalizeEnv,isProduction,isDaily}from'../../constant/env.js';import{DOMAIN_CONFIG_FIELDS,normalizeDomainOrigin}from'../../config/domain-config.js';async function execute(_0x4601a5){const _0x18c25b=a63_0x1875,_0x7c99d3=_0x4601a5['str'](_0x18c25b(0x1d3)),_0x25849e=_0x4601a5[_0x18c25b(0x1ff)](_0x18c25b(0x1df));if(!_0x7c99d3)throw CliErrors[_0x18c25b(0x1fa)](_0x18c25b(0x1dc),'Usage:\x20'+CLI_BIN_NAME+_0x18c25b(0x1d7));if(_0x25849e===undefined||_0x25849e==='')throw CliErrors[_0x18c25b(0x1fa)]('Missing\x20value.',_0x18c25b(0x1e1)+CLI_BIN_NAME+_0x18c25b(0x1d7));let _0x55c061=_0x7c99d3,_0x47e1c1=_0x25849e;if(_0x25849e['length']>0x1f4)throw CliErrors['validation'](_0x18c25b(0x1fc));if(_0x7c99d3===_0x18c25b(0x1f3))throw CliErrors['validation'](_0x18c25b(0x1e6));if(!isTopLevelConfigKey(_0x7c99d3))throw CliErrors['validation'](_0x18c25b(0x1eb)+_0x7c99d3+_0x18c25b(0x1fb),'Settable\x20top-level\x20keys:\x20'+getTopLevelConfigKeySummary());if(CONFIG_ENUM_VALUES[_0x7c99d3]&&!CONFIG_ENUM_VALUES[_0x7c99d3][_0x18c25b(0x1d9)](_0x25849e))throw CliErrors[_0x18c25b(0x1fa)](_0x18c25b(0x1e3)+_0x7c99d3+_0x18c25b(0x1fe)+CONFIG_ENUM_VALUES[_0x7c99d3][_0x18c25b(0x1f5)](',\x20'));if(_0x7c99d3===_0x18c25b(0x1d6)&&!normalizeLocale(_0x25849e))throw CliErrors[_0x18c25b(0x1fa)](_0x18c25b(0x1ec),_0x18c25b(0x1dd));DOMAIN_CONFIG_FIELDS['includes'](_0x7c99d3)&&(_0x47e1c1=normalizeDomainOrigin(_0x7c99d3,_0x25849e));const _0x29dbec={'global':_0x4601a5[_0x18c25b(0x1d4)](_0x18c25b(0x1e7))},_0x3c36da=resolveWriteScope(_0x29dbec),_0x2332f7=readScopedConfig(_0x3c36da);_0x7c99d3==='app'&&(_0x55c061=_0x18c25b(0x1f6),delete _0x2332f7[_0x18c25b(0x203)]);_0x7c99d3===_0x18c25b(0x1d6)&&(_0x47e1c1=normalizeLocale(_0x25849e));if(_0x7c99d3==='env'){_0x47e1c1=normalizeEnv(_0x25849e);if(!isProduction(_0x47e1c1)&&!isDaily(_0x47e1c1))throw CliErrors[_0x18c25b(0x1fa)]('Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.',_0x18c25b(0x1d5));}if(_0x7c99d3===_0x18c25b(0x1f6)){const _0x45ed4b=_0x2332f7[_0x18c25b(0x1db)]&&typeof _0x2332f7[_0x18c25b(0x1db)]==='object'?Object[_0x18c25b(0x1e9)](_0x2332f7[_0x18c25b(0x1db)]):[];if(_0x45ed4b[_0x18c25b(0x208)]>0x0)throw CliErrors[_0x18c25b(0x1fa)]('Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.',_0x18c25b(0x1de)+CLI_BIN_NAME+_0x18c25b(0x1ea)+_0x47e1c1+_0x18c25b(0x206)+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.');const _0x2c2e8c=buildCanonicalProjectConfig({..._0x2332f7},{'appCodes':[_0x47e1c1],'env':typeof _0x2332f7[_0x18c25b(0x1e2)]==='string'?_0x2332f7[_0x18c25b(0x1e2)]:undefined});writeScopedConfig(_0x2c2e8c,_0x3c36da);const _0x5b0e86=_0x3c36da===_0x18c25b(0x1e7)?'Global':_0x18c25b(0x1da);return{'ok':!![],'message':'✓\x20'+_0x5b0e86+_0x18c25b(0x1f9)+_0x47e1c1+_0x18c25b(0x207)};}_0x2332f7[_0x55c061]=_0x47e1c1,writeScopedConfig(_0x2332f7,_0x3c36da);const _0x7f9301=_0x3c36da===_0x18c25b(0x1e7)?_0x18c25b(0x1f2):_0x18c25b(0x1da);return{'ok':!![],'message':'✓\x20'+_0x7f9301+'\x20'+_0x55c061+_0x18c25b(0x1e4)+_0x47e1c1};}export const configSetDefinition={'service':a63_0x57751f(0x1f1),'command':a63_0x57751f(0x1d8),'description':a63_0x57751f(0x1ed),'risk':'write','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a63_0x57751f(0x1d3),'type':'string','description':getConfigCommandKeyDescription(),'required':!![]},{'name':a63_0x57751f(0x1df),'type':a63_0x57751f(0x1f8),'description':a63_0x57751f(0x1f4),'required':!![]},{'name':a63_0x57751f(0x1e7),'type':a63_0x57751f(0x204),'description':'Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','default':![]}],'execute':execute};
@@ -1 +1 @@
1
- (function(_0x4a310d,_0x5b8e29){var _0x38795b=a64_0x3da5,_0x268189=_0x4a310d();while(!![]){try{var _0x487872=parseInt(_0x38795b(0x1e3))/0x1*(-parseInt(_0x38795b(0x1e4))/0x2)+parseInt(_0x38795b(0x1dd))/0x3+parseInt(_0x38795b(0x1e9))/0x4*(parseInt(_0x38795b(0x1ea))/0x5)+-parseInt(_0x38795b(0x1e1))/0x6+-parseInt(_0x38795b(0x1de))/0x7+parseInt(_0x38795b(0x1e7))/0x8*(parseInt(_0x38795b(0x1df))/0x9)+parseInt(_0x38795b(0x1e8))/0xa*(parseInt(_0x38795b(0x1eb))/0xb);if(_0x487872===_0x5b8e29)break;else _0x268189['push'](_0x268189['shift']());}catch(_0x290ce1){_0x268189['push'](_0x268189['shift']());}}}(a64_0x1c6c,0xb5f57));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';function a64_0x1c6c(){var _0x29b28a=['6138ENNvbl','\x20workspace\x20init\x20--appcode\x20<code>`\x20first.','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','3565032emIEcF','10DJRfNR','640GOJRgb','2505qBdpPK','10697698hxyFGC','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','4429368RfLBPK','7234304FsMpao','27NCvPtm','global','5470914VWQfWv','validation','383xyzuhl'];a64_0x1c6c=function(){return _0x29b28a;};return a64_0x1c6c();}export{CLI_BIN_NAME};export{normalizeLocale};export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0x17611b){var _0x2d9c1d=a64_0x3da5;if(_0x17611b['global'])return _0x2d9c1d(0x1e0);if(!isInProject())throw CliErrors[_0x2d9c1d(0x1e2)](_0x2d9c1d(0x1dc),_0x2d9c1d(0x1e6)+CLI_BIN_NAME+_0x2d9c1d(0x1e5));return'project';}export function readScopedConfig(_0x759afe){return readConfigFile(resolveWriteConfigPath(_0x759afe));}function a64_0x3da5(_0x3afaf8,_0x33e808){_0x3afaf8=_0x3afaf8-0x1dc;var _0x1c6ca6=a64_0x1c6c();var _0x3da549=_0x1c6ca6[_0x3afaf8];return _0x3da549;}export function writeScopedConfig(_0x5cf77c,_0x15536b){writeConfigFile(resolveWriteConfigPath(_0x15536b),_0x5cf77c);}
1
+ (function(_0x24c67b,_0x242e1a){var _0x457036=a64_0x7cd0,_0x473a1e=_0x24c67b();while(!![]){try{var _0x21fdc6=parseInt(_0x457036(0x8c))/0x1*(-parseInt(_0x457036(0x8b))/0x2)+-parseInt(_0x457036(0x91))/0x3+parseInt(_0x457036(0x95))/0x4*(parseInt(_0x457036(0x8f))/0x5)+parseInt(_0x457036(0x90))/0x6+parseInt(_0x457036(0x8d))/0x7*(parseInt(_0x457036(0x94))/0x8)+parseInt(_0x457036(0x89))/0x9+-parseInt(_0x457036(0x8e))/0xa*(parseInt(_0x457036(0x88))/0xb);if(_0x21fdc6===_0x242e1a)break;else _0x473a1e['push'](_0x473a1e['shift']());}catch(_0x34de3a){_0x473a1e['push'](_0x473a1e['shift']());}}}(a64_0x3695,0xab4e9));import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';import{CliErrors}from'../../errors.js';function a64_0x7cd0(_0x5b25ca,_0x5a1044){_0x5b25ca=_0x5b25ca-0x86;var _0x3695ac=a64_0x3695();var _0x7cd05c=_0x3695ac[_0x5b25ca];return _0x7cd05c;}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(_0x3c1eaa){var _0x142de5=a64_0x7cd0;if(_0x3c1eaa[_0x142de5(0x92)])return _0x142de5(0x92);if(!isInProject())throw CliErrors[_0x142de5(0x8a)](_0x142de5(0x86),_0x142de5(0x87)+CLI_BIN_NAME+_0x142de5(0x93));return'project';}export function readScopedConfig(_0x1a7763){return readConfigFile(resolveWriteConfigPath(_0x1a7763));}function a64_0x3695(){var _0x494f1b=['validation','6UJMGco','17084YLOsoZ','2404717eHxqMp','2558050QIMFQH','6260aVcvvX','7286814zwYzYF','2997243ebLMso','global','\x20workspace\x20init\x20--appcode\x20<code>`\x20first.','8ptOAlN','1240ORxEsk','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','33cgkciY','5159709CGlZAh'];a64_0x3695=function(){return _0x494f1b;};return a64_0x3695();}export function writeScopedConfig(_0x119d26,_0x298d75){writeConfigFile(resolveWriteConfigPath(_0x298d75),_0x119d26);}
@@ -1 +1 @@
1
- const a65_0x542ef6=a65_0x448c;(function(_0x30fd59,_0x830043){const _0xd7a353=a65_0x448c,_0x2b94af=_0x30fd59();while(!![]){try{const _0x1864a8=-parseInt(_0xd7a353(0xa6))/0x1+parseInt(_0xd7a353(0x81))/0x2+parseInt(_0xd7a353(0x84))/0x3+parseInt(_0xd7a353(0xc8))/0x4+-parseInt(_0xd7a353(0x8d))/0x5+parseInt(_0xd7a353(0xd1))/0x6+-parseInt(_0xd7a353(0xcb))/0x7;if(_0x1864a8===_0x830043)break;else _0x2b94af['push'](_0x2b94af['shift']());}catch(_0x1c8744){_0x2b94af['push'](_0x2b94af['shift']());}}}(a65_0x4b4c,0x762d0));import{CliErrors}from'../../errors.js';const LOCAL_KEY=/^[a-z][a-z0-9_]{0,63}$/,SUPPORTED_CARDINALITIES=new Set([a65_0x542ef6(0xab),a65_0x542ef6(0xad)]),SUPPORTED_FIELD_TYPES=new Set([a65_0x542ef6(0xc0),a65_0x542ef6(0xbd),a65_0x542ef6(0xc7),a65_0x542ef6(0xbe),a65_0x542ef6(0xb1),a65_0x542ef6(0x8a),a65_0x542ef6(0x7a),a65_0x542ef6(0x7f),'ADDRESS','UPLOAD']);export function isDatasetBatchDesign(_0x4c0110){const _0x3ff3be=a65_0x542ef6;return isObject(_0x4c0110)&&_0x4c0110[_0x3ff3be(0x95)]===_0x3ff3be(0xb7);}export function validateDatasetBatchDesign(_0x547e48){const _0x333108=a65_0x542ef6;(!isObject(_0x547e48)||_0x547e48[_0x333108(0x95)]!=='dataset-batch')&&fail('Batch\x20--design-file\x20must\x20have\x20kind\x20\x22dataset-batch\x22.');_0x547e48['schemaVersion']!==0x1&&fail(_0x333108(0xcd));const _0x5d2072=objectArray(_0x547e48[_0x333108(0x97)],_0x333108(0x97),0x1,0x14),_0xa7dd3f=objectArray(_0x547e48[_0x333108(0x7e)],_0x333108(0x7e),0x0,0xc8),_0x498ac6=objectArray(_0x547e48[_0x333108(0x75)],'unresolvedRelations',0x0,0xc8),_0x478c7e=new Set(),_0x56e7b7=new Map();for(const [_0x2635de,_0x1a7d48]of _0x5d2072[_0x333108(0xa2)]()){const _0x10fac4=requiredString(_0x1a7d48[_0x333108(0xc2)],_0x333108(0x94)+_0x2635de+'].localKey');!LOCAL_KEY[_0x333108(0xa4)](_0x10fac4)&&fail(_0x333108(0x94)+_0x2635de+_0x333108(0xd8)+LOCAL_KEY[_0x333108(0xc4)]+'.');_0x478c7e[_0x333108(0x92)](_0x10fac4)&&fail('Dataset\x20batch\x20localKey\x20values\x20must\x20be\x20unique.');_0x478c7e[_0x333108(0x73)](_0x10fac4);!isObject(_0x1a7d48[_0x333108(0x74)])&&fail(_0x333108(0x94)+_0x2635de+_0x333108(0xd7));rejectServerDatasetIdentity(_0x1a7d48['design'],'datasets['+_0x2635de+'].design');if(!isObject(_0x1a7d48[_0x333108(0x74)][_0x333108(0xc6)]))fail(_0x333108(0x94)+_0x2635de+_0x333108(0x8f));rejectServerDatasetIdentity(_0x1a7d48[_0x333108(0x74)]['dataset'],'datasets['+_0x2635de+'].design.dataset'),requiredString(_0x1a7d48[_0x333108(0x74)][_0x333108(0xc6)][_0x333108(0xc1)],_0x333108(0x94)+_0x2635de+_0x333108(0xcc));'relations'in _0x1a7d48[_0x333108(0x74)]&&(!Array[_0x333108(0xa0)](_0x1a7d48[_0x333108(0x74)][_0x333108(0x7e)])||_0x1a7d48[_0x333108(0x74)][_0x333108(0x7e)][_0x333108(0xd0)]!==0x0)&&fail(_0x333108(0x94)+_0x2635de+_0x333108(0x9d));const _0x287484=objectArray(_0x1a7d48[_0x333108(0x74)][_0x333108(0x90)],_0x333108(0x94)+_0x2635de+_0x333108(0x8e),0x1,0xc8),_0x1a2f0a=new Map();for(const [_0x242897,_0x6bd5a5]of _0x287484[_0x333108(0xa2)]()){const _0x45c980=fieldName(_0x6bd5a5);if(!_0x45c980)fail(_0x333108(0x94)+_0x2635de+_0x333108(0xb8)+_0x242897+_0x333108(0x83));const _0x426ca1=_0x45c980[_0x333108(0x7b)]();if(_0x1a2f0a[_0x333108(0x92)](_0x426ca1))fail(_0x333108(0x98)+_0x10fac4+_0x333108(0x9c));const _0xa9f88e=stringValue(_0x6bd5a5['type']??_0x6bd5a5[_0x333108(0x85)])[_0x333108(0xac)]();if(!SUPPORTED_FIELD_TYPES[_0x333108(0x92)](_0xa9f88e))fail(_0x333108(0x94)+_0x2635de+_0x333108(0xb8)+_0x242897+_0x333108(0x80));_0x1a2f0a[_0x333108(0x9e)](_0x426ca1,_0xa9f88e),[_0x6bd5a5[_0x333108(0x88)],_0x6bd5a5[_0x333108(0xb0)],_0x6bd5a5['refTableLabelField']][_0x333108(0xb3)](_0x564fcd=>stringValue(_0x564fcd))&&fail(_0x333108(0x94)+_0x2635de+'].design.fields['+_0x242897+_0x333108(0xbc));}_0x56e7b7[_0x333108(0x9e)](_0x10fac4,_0x1a2f0a);}const _0xea92c4=new Set(),_0x313a10=new Set();for(const [_0x2cdc86,_0x1e64ea]of _0xa7dd3f['entries']()){const _0x4ad804=validateRelation(_0x1e64ea,_0x2cdc86,_0x478c7e,_0x56e7b7);if(_0xea92c4[_0x333108(0x92)](_0x4ad804))fail('Dataset\x20batch\x20relations\x20must\x20be\x20unique.');_0xea92c4['add'](_0x4ad804);const _0x47c71e=_0x4ad804[_0x333108(0x82)]('\x00',0x2)['join']('\x00');if(_0x313a10['has'](_0x47c71e))fail(_0x333108(0xaf));_0x313a10[_0x333108(0x73)](_0x47c71e);}for(const [_0x5c37d3,_0x4baaf9]of _0x498ac6[_0x333108(0xa2)]()){requiredString(_0x4baaf9[_0x333108(0x77)],'unresolvedRelations['+_0x5c37d3+_0x333108(0xd4)),validateConfidence(_0x4baaf9['confidence'],_0x333108(0x86)+_0x5c37d3+_0x333108(0xb2));}return _0x547e48;}export function reconcileBatchResult(_0x1b698e){const _0x51da97=a65_0x542ef6;if(!isObject(_0x1b698e))return null;try{const _0x242d79=stringArray(_0x1b698e[_0x51da97(0xa3)],_0x51da97(0xa3),0x1,0x14),_0x52559f=new Set(_0x242d79);if(_0x52559f[_0x51da97(0xc3)]!==_0x242d79[_0x51da97(0xd0)]||_0x242d79[_0x51da97(0xb3)](_0x5dc0d1=>!LOCAL_KEY[_0x51da97(0xa4)](_0x5dc0d1)))return null;const _0xaabd9f=objectArray(_0x1b698e[_0x51da97(0xa5)],'createdDatasets',0x1,0x14),_0x2b2411=new Map(),_0x1a8f77=new Set();for(const _0x9e9dfa of _0xaabd9f){const _0x217790=requiredString(_0x9e9dfa[_0x51da97(0xc2)],_0x51da97(0xd6)),_0xa7860f=requiredString(_0x9e9dfa['code']??_0x9e9dfa[_0x51da97(0xbb)],_0x51da97(0xca));if(_0x2b2411[_0x51da97(0x92)](_0x217790)||_0x1a8f77['has'](_0xa7860f))return null;_0x2b2411[_0x51da97(0x9e)](_0x217790,_0xa7860f),_0x1a8f77['add'](_0xa7860f);}if(!sameSet(_0x52559f,new Set(_0x2b2411[_0x51da97(0xbf)]())))return null;const _0x2e4ec8=objectArray(_0x1b698e['expectedRelations'],_0x51da97(0xb9),0x0,0xc8),_0x4c13c0=objectArray(_0x1b698e['createdRelations'],_0x51da97(0xce),0x0,0xc8),_0x33f5a6=relationTupleSet(_0x2e4ec8,![],_0x2b2411),_0xa0d6cb=relationTupleSet(_0x4c13c0,!![],_0x2b2411);if(!_0x33f5a6||!_0xa0d6cb||!sameSet(_0x33f5a6,_0xa0d6cb))return null;const _0x399867=objectArray(_0x1b698e[_0x51da97(0x75)],'unresolvedRelations',0x0,0xc8);return{'expectedLocalKeys':_0x242d79,'expectedRelations':_0x2e4ec8,'createdDatasets':_0xaabd9f,'createdRelations':_0x4c13c0,'unresolvedRelations':_0x399867,...isObject(_0x1b698e[_0x51da97(0x76)])?{'metrics':_0x1b698e[_0x51da97(0x76)]}:{}};}catch{return null;}}function validateRelation(_0x5ebe91,_0x364843,_0x31e556,_0x4a0a26){const _0x58f32b=a65_0x542ef6,_0x81a1e1=_0x58f32b(0xa1)+_0x364843+']',_0x278f67=requiredString(_0x5ebe91[_0x58f32b(0xa7)],_0x81a1e1+'.fromDatasetKey'),_0x2d857a=requiredString(_0x5ebe91[_0x58f32b(0xd2)],_0x81a1e1+'.toDatasetKey'),_0x1eb514=requiredString(_0x5ebe91[_0x58f32b(0x8b)],_0x81a1e1+_0x58f32b(0x9a))[_0x58f32b(0x7b)](),_0x1d6704=requiredString(_0x5ebe91[_0x58f32b(0x87)],_0x81a1e1+_0x58f32b(0xae))[_0x58f32b(0x7b)]();if(!_0x31e556['has'](_0x278f67)||!_0x31e556[_0x58f32b(0x92)](_0x2d857a))fail(_0x81a1e1+_0x58f32b(0x9f));const _0x2be1b5=_0x4a0a26[_0x58f32b(0x9b)](_0x278f67)?.[_0x58f32b(0x9b)](_0x1eb514),_0x4cb9ec=_0x4a0a26[_0x58f32b(0x9b)](_0x2d857a)?.[_0x58f32b(0x9b)](_0x1d6704);if(_0x2be1b5===undefined||_0x4cb9ec===undefined)fail(_0x81a1e1+_0x58f32b(0x96));if(_0x2be1b5&&_0x4cb9ec&&_0x2be1b5!==_0x4cb9ec)fail(_0x81a1e1+_0x58f32b(0x93));const _0x254833=stringValue(_0x5ebe91[_0x58f32b(0xcf)])||_0x58f32b(0xb4);if(_0x254833!==_0x58f32b(0xb4))fail(_0x81a1e1+_0x58f32b(0xba));const _0xdce10d=stringValue(_0x5ebe91['cardinality'])||'MANY_TO_ONE';if(!SUPPORTED_CARDINALITIES[_0x58f32b(0x92)](_0xdce10d))fail(_0x81a1e1+_0x58f32b(0xaa));return requiredString(_0x5ebe91[_0x58f32b(0x77)],_0x81a1e1+'.reason'),validateConfidence(_0x5ebe91['confidence'],_0x81a1e1+_0x58f32b(0x79)),tuple(_0x278f67,_0x1eb514,_0x2d857a,_0x1d6704,_0x58f32b(0xb4),_0xdce10d);}function relationTupleSet(_0x3a3e3f,_0x25115a,_0x5998df){const _0x220714=a65_0x542ef6,_0x4ea3da=new Set();for(const _0x17c422 of _0x3a3e3f){const _0x272259=stringValue(_0x17c422[_0x220714(0xa7)]),_0x304191=stringValue(_0x17c422[_0x220714(0xd2)]),_0x279344=stringValue(_0x17c422['fromField'])[_0x220714(0x7b)](),_0x1024bf=stringValue(_0x17c422['toField'])['toLowerCase'](),_0x56ae06=stringValue(_0x17c422[_0x220714(0xcf)]),_0x2d07e7=stringValue(_0x17c422[_0x220714(0x89)]);if(!_0x272259||!_0x304191||!_0x279344||!_0x1024bf||_0x56ae06!==_0x220714(0xb4)||!SUPPORTED_CARDINALITIES[_0x220714(0x92)](_0x2d07e7))return null;if(!_0x5998df[_0x220714(0x92)](_0x272259)||!_0x5998df[_0x220714(0x92)](_0x304191))return null;if(_0x25115a&&(stringValue(_0x17c422['fromDatasetCode'])!==_0x5998df[_0x220714(0x9b)](_0x272259)||stringValue(_0x17c422[_0x220714(0xd9)])!==_0x5998df[_0x220714(0x9b)](_0x304191)))return null;const _0x3e1c48=tuple(_0x272259,_0x279344,_0x304191,_0x1024bf,_0x56ae06,_0x2d07e7);if(_0x4ea3da[_0x220714(0x92)](_0x3e1c48))return null;_0x4ea3da[_0x220714(0x73)](_0x3e1c48);}return _0x4ea3da;}function a65_0x448c(_0x2d8a6d,_0x2338da){_0x2d8a6d=_0x2d8a6d-0x73;const _0x4b4c79=a65_0x4b4c();let _0x448c12=_0x4b4c79[_0x2d8a6d];return _0x448c12;}function rejectServerDatasetIdentity(_0xa95606,_0x4807c7){const _0x47e87b=a65_0x542ef6;for(const _0x267780 of['id',_0x47e87b(0xa9),'modelId',_0x47e87b(0x8c),'datasetCode','modelCode']){if(_0xa95606[_0x267780]!==undefined&&_0xa95606[_0x267780]!==null&&_0xa95606[_0x267780]!=='')fail(_0x4807c7+'.'+_0x267780+'\x20must\x20not\x20be\x20supplied\x20by\x20the\x20client.');}}function objectArray(_0x65a4cb,_0x4498fb,_0x56f1e9,_0x4bbe6c){const _0x32c2d8=a65_0x542ef6;return(!Array['isArray'](_0x65a4cb)||_0x65a4cb[_0x32c2d8(0xd0)]<_0x56f1e9||_0x65a4cb['length']>_0x4bbe6c||_0x65a4cb[_0x32c2d8(0xb3)](_0x40376b=>!isObject(_0x40376b)))&&fail(_0x4498fb+_0x32c2d8(0xd5)+_0x56f1e9+'..'+_0x4bbe6c+_0x32c2d8(0xb6)),_0x65a4cb;}function stringArray(_0x8fb317,_0x5e5f91,_0x4b400e,_0x383722){const _0x3527dd=a65_0x542ef6;return(!Array['isArray'](_0x8fb317)||_0x8fb317['length']<_0x4b400e||_0x8fb317[_0x3527dd(0xd0)]>_0x383722||_0x8fb317[_0x3527dd(0xb3)](_0x29c06b=>typeof _0x29c06b!=='string'||!_0x29c06b['trim']()))&&fail(_0x5e5f91+'\x20must\x20contain\x20'+_0x4b400e+'..'+_0x383722+'\x20non-empty\x20strings.'),_0x8fb317;}function requiredString(_0x3f7b5d,_0x33e9d7){const _0x5069c9=stringValue(_0x3f7b5d);if(!_0x5069c9)fail(_0x33e9d7+'\x20is\x20required.');return _0x5069c9;}function stringValue(_0x20420e){const _0x525525=a65_0x542ef6;return typeof _0x20420e===_0x525525(0xd3)?_0x20420e['trim']():'';}function fieldName(_0x3c1cbb){const _0x8e49de=a65_0x542ef6;return stringValue(_0x3c1cbb[_0x8e49de(0x8c)]??_0x3c1cbb['fieldCode']??_0x3c1cbb[_0x8e49de(0x78)]??_0x3c1cbb[_0x8e49de(0xa8)]);}function a65_0x4b4c(){const _0x1cceb9=['\x20must\x20contain\x20','createdDatasets[].localKey','].design\x20must\x20be\x20an\x20object.','].localKey\x20must\x20match\x20','toDatasetCode','add','design','unresolvedRelations','metrics','reason','name','.confidence','DATE_RANGE','toLowerCase','number','every','relations','USER','].type\x20is\x20not\x20supported.','182164dVZwoA','split',']\x20must\x20have\x20a\x20non-empty\x20name\x20or\x20code.','2629887mZsrWG','fieldType','unresolvedRelations[','toField','refTable','cardinality','MULTI_SELECT','fromField','code','3232945wYtJJz','].design.fields','].design.dataset\x20must\x20be\x20an\x20object.','fields','object','has','\x20connects\x20incompatible\x20field\x20types.','datasets[','kind','\x20references\x20an\x20unknown\x20field.','datasets','Dataset\x20','map','.fromField','get','\x20field\x20names\x20must\x20be\x20unique\x20ignoring\x20case.','].design.relations\x20must\x20be\x20an\x20empty\x20array;\x20use\x20top-level\x20relations.','set','\x20references\x20an\x20unknown\x20dataset\x20localKey.','isArray','relations[','entries','expectedLocalKeys','test','createdDatasets','715530WthRrl','fromDatasetKey','fieldName','datasetId','.cardinality\x20is\x20not\x20supported.','MANY_TO_ONE','toUpperCase','ONE_TO_ONE','.toField','Each\x20source\x20field\x20may\x20target\x20at\x20most\x20one\x20relation.','refTableField','SELECT','].confidence','some','lookup','isFinite','\x20objects.','dataset-batch','].design.fields[','expectedRelations','.relationType\x20must\x20be\x20\x22lookup\x22.','datasetCode',']\x20must\x20not\x20contain\x20embedded\x20relation\x20references.','NUMBER','BOOLEAN','keys','TEXT','datasetName','localKey','size','source','\x20must\x20be\x20between\x200\x20and\x201.','dataset','DATETIME','3137572lelpQK','validation','createdDatasets[].code','6017795BTAVae','].design.dataset.datasetName','Dataset\x20batch\x20schemaVersion\x20must\x20be\x201.','createdRelations','relationType','length','5722488lEQvUu','toDatasetKey','string','].reason'];a65_0x4b4c=function(){return _0x1cceb9;};return a65_0x4b4c();}function validateConfidence(_0xbb0c21,_0x4c5081){const _0x5ec787=a65_0x542ef6;_0xbb0c21!==undefined&&_0xbb0c21!==null&&(typeof _0xbb0c21!==_0x5ec787(0x7c)||!Number[_0x5ec787(0xb5)](_0xbb0c21)||_0xbb0c21<0x0||_0xbb0c21>0x1)&&fail(_0x4c5081+_0x5ec787(0xc5));}function tuple(..._0x555c1e){const _0x480a72=a65_0x542ef6;return _0x555c1e[_0x480a72(0x99)]((_0x58e737,_0x5c9ce5)=>_0x5c9ce5===0x1||_0x5c9ce5===0x3?_0x58e737[_0x480a72(0x7b)]():_0x58e737)['join']('\x00');}function sameSet(_0x8c19b7,_0x1807e2){const _0x8d011f=a65_0x542ef6;return _0x8c19b7[_0x8d011f(0xc3)]===_0x1807e2[_0x8d011f(0xc3)]&&[..._0x8c19b7][_0x8d011f(0x7d)](_0x364b52=>_0x1807e2['has'](_0x364b52));}function isObject(_0x3fbcd8){const _0x4372d0=a65_0x542ef6;return typeof _0x3fbcd8===_0x4372d0(0x91)&&_0x3fbcd8!==null&&!Array[_0x4372d0(0xa0)](_0x3fbcd8);}function fail(_0x29bafd){const _0x30667f=a65_0x542ef6;throw CliErrors[_0x30667f(0xc9)](_0x29bafd);}
1
+ const a65_0x3af336=a65_0x1855;(function(_0x1bb6db,_0x3f69d5){const _0x31f3ad=a65_0x1855,_0x2ac384=_0x1bb6db();while(!![]){try{const _0x5a211a=parseInt(_0x31f3ad(0x21f))/0x1+-parseInt(_0x31f3ad(0x1f4))/0x2+parseInt(_0x31f3ad(0x20f))/0x3+-parseInt(_0x31f3ad(0x21a))/0x4*(-parseInt(_0x31f3ad(0x1c7))/0x5)+parseInt(_0x31f3ad(0x217))/0x6+-parseInt(_0x31f3ad(0x1da))/0x7*(-parseInt(_0x31f3ad(0x1f8))/0x8)+-parseInt(_0x31f3ad(0x1fe))/0x9;if(_0x5a211a===_0x3f69d5)break;else _0x2ac384['push'](_0x2ac384['shift']());}catch(_0x4a51fe){_0x2ac384['push'](_0x2ac384['shift']());}}}(a65_0x39f8,0x65294));function a65_0x1855(_0x14190d,_0x272bb1){_0x14190d=_0x14190d-0x1b0;const _0x39f8da=a65_0x39f8();let _0x1855c4=_0x39f8da[_0x14190d];return _0x1855c4;}import{CliErrors}from'../../errors.js';const LOCAL_KEY=/^[a-z][a-z0-9_]{0,63}$/,SUPPORTED_CARDINALITIES=new Set([a65_0x3af336(0x1d8),a65_0x3af336(0x20e)]),SUPPORTED_FIELD_TYPES=new Set([a65_0x3af336(0x1f7),a65_0x3af336(0x1e0),'DATETIME',a65_0x3af336(0x21d),'SELECT',a65_0x3af336(0x208),a65_0x3af336(0x20b),a65_0x3af336(0x20d),a65_0x3af336(0x1df),a65_0x3af336(0x205)]);export function isDatasetBatchDesign(_0x29f2ab){const _0x2d710f=a65_0x3af336;return isObject(_0x29f2ab)&&_0x29f2ab[_0x2d710f(0x1db)]===_0x2d710f(0x202);}export function validateDatasetBatchDesign(_0x3cef50){const _0x5e943f=a65_0x3af336;(!isObject(_0x3cef50)||_0x3cef50[_0x5e943f(0x1db)]!=='dataset-batch')&&fail(_0x5e943f(0x1ea));_0x3cef50[_0x5e943f(0x1fa)]!==0x1&&fail(_0x5e943f(0x206));const _0x2cc4e1=objectArray(_0x3cef50[_0x5e943f(0x1d1)],_0x5e943f(0x1d1),0x1,0x14),_0x20841b=objectArray(_0x3cef50[_0x5e943f(0x209)],'relations',0x0,0xc8),_0x5e6a80=objectArray(_0x3cef50['unresolvedRelations'],'unresolvedRelations',0x0,0xc8),_0xe8c661=new Set(),_0x2f32d1=new Map();for(const [_0xb43019,_0x518dec]of _0x2cc4e1[_0x5e943f(0x1e8)]()){const _0x1a7fa5=requiredString(_0x518dec[_0x5e943f(0x216)],_0x5e943f(0x1b3)+_0xb43019+'].localKey');!LOCAL_KEY['test'](_0x1a7fa5)&&fail(_0x5e943f(0x1b3)+_0xb43019+_0x5e943f(0x1e5)+LOCAL_KEY['source']+'.');_0xe8c661['has'](_0x1a7fa5)&&fail(_0x5e943f(0x1d6));_0xe8c661[_0x5e943f(0x1fd)](_0x1a7fa5);!isObject(_0x518dec[_0x5e943f(0x1bc)])&&fail(_0x5e943f(0x1b3)+_0xb43019+_0x5e943f(0x207));rejectServerDatasetIdentity(_0x518dec[_0x5e943f(0x1bc)],'datasets['+_0xb43019+_0x5e943f(0x21b));if(!isObject(_0x518dec['design'][_0x5e943f(0x1d2)]))fail('datasets['+_0xb43019+_0x5e943f(0x1d5));rejectServerDatasetIdentity(_0x518dec[_0x5e943f(0x1bc)]['dataset'],_0x5e943f(0x1b3)+_0xb43019+_0x5e943f(0x1c2)),requiredString(_0x518dec[_0x5e943f(0x1bc)][_0x5e943f(0x1d2)][_0x5e943f(0x219)],_0x5e943f(0x1b3)+_0xb43019+_0x5e943f(0x1b7));'relations'in _0x518dec[_0x5e943f(0x1bc)]&&(!Array[_0x5e943f(0x1c0)](_0x518dec[_0x5e943f(0x1bc)]['relations'])||_0x518dec['design'][_0x5e943f(0x209)][_0x5e943f(0x1c4)]!==0x0)&&fail(_0x5e943f(0x1b3)+_0xb43019+_0x5e943f(0x1f6));const _0x309fa1=objectArray(_0x518dec[_0x5e943f(0x1bc)][_0x5e943f(0x1ec)],'datasets['+_0xb43019+_0x5e943f(0x1c1),0x1,0xc8),_0x3a06ed=new Map();for(const [_0x1c36d9,_0x36b153]of _0x309fa1[_0x5e943f(0x1e8)]()){const _0x543e34=fieldName(_0x36b153);if(!_0x543e34)fail(_0x5e943f(0x1b3)+_0xb43019+_0x5e943f(0x21c)+_0x1c36d9+_0x5e943f(0x1ce));const _0x53a3d2=_0x543e34['toLowerCase']();if(_0x3a06ed[_0x5e943f(0x1dc)](_0x53a3d2))fail(_0x5e943f(0x1bd)+_0x1a7fa5+'\x20field\x20names\x20must\x20be\x20unique\x20ignoring\x20case.');const _0x3e49c2=stringValue(_0x36b153[_0x5e943f(0x1dd)]??_0x36b153['fieldType'])[_0x5e943f(0x1f9)]();if(!SUPPORTED_FIELD_TYPES[_0x5e943f(0x1dc)](_0x3e49c2))fail(_0x5e943f(0x1b3)+_0xb43019+_0x5e943f(0x21c)+_0x1c36d9+'].type\x20is\x20not\x20supported.');_0x3a06ed[_0x5e943f(0x1ca)](_0x53a3d2,_0x3e49c2),[_0x36b153[_0x5e943f(0x213)],_0x36b153[_0x5e943f(0x1ff)],_0x36b153['refTableLabelField']]['some'](_0xd4e6f=>stringValue(_0xd4e6f))&&fail(_0x5e943f(0x1b3)+_0xb43019+_0x5e943f(0x21c)+_0x1c36d9+_0x5e943f(0x203));}_0x2f32d1['set'](_0x1a7fa5,_0x3a06ed);}const _0x55331e=new Set(),_0x172fd6=new Set();for(const [_0x2d41db,_0x1056aa]of _0x20841b['entries']()){const _0x337623=validateRelation(_0x1056aa,_0x2d41db,_0xe8c661,_0x2f32d1);if(_0x55331e[_0x5e943f(0x1dc)](_0x337623))fail(_0x5e943f(0x1e4));_0x55331e[_0x5e943f(0x1fd)](_0x337623);const _0x3d601a=_0x337623[_0x5e943f(0x1e3)]('\x00',0x2)['join']('\x00');if(_0x172fd6['has'](_0x3d601a))fail('Each\x20source\x20field\x20may\x20target\x20at\x20most\x20one\x20relation.');_0x172fd6[_0x5e943f(0x1fd)](_0x3d601a);}for(const [_0x33b4a7,_0x22822]of _0x5e6a80[_0x5e943f(0x1e8)]()){requiredString(_0x22822[_0x5e943f(0x1f2)],_0x5e943f(0x1b6)+_0x33b4a7+_0x5e943f(0x20c)),validateConfidence(_0x22822[_0x5e943f(0x200)],_0x5e943f(0x1b6)+_0x33b4a7+'].confidence');}return _0x3cef50;}export function reconcileBatchResult(_0x2bff52){const _0x177c93=a65_0x3af336;if(!isObject(_0x2bff52))return null;try{const _0x546bc6=stringArray(_0x2bff52[_0x177c93(0x1c9)],'expectedLocalKeys',0x1,0x14),_0x497e1e=new Set(_0x546bc6);if(_0x497e1e[_0x177c93(0x1cc)]!==_0x546bc6[_0x177c93(0x1c4)]||_0x546bc6[_0x177c93(0x1f1)](_0x139381=>!LOCAL_KEY[_0x177c93(0x211)](_0x139381)))return null;const _0x555b17=objectArray(_0x2bff52[_0x177c93(0x201)],_0x177c93(0x201),0x1,0x14),_0x354677=new Map(),_0xe79d6a=new Set();for(const _0x366d94 of _0x555b17){const _0x44e34e=requiredString(_0x366d94['localKey'],'createdDatasets[].localKey'),_0x279694=requiredString(_0x366d94[_0x177c93(0x1c3)]??_0x366d94['datasetCode'],_0x177c93(0x1cf));if(_0x354677[_0x177c93(0x1dc)](_0x44e34e)||_0xe79d6a['has'](_0x279694))return null;_0x354677[_0x177c93(0x1ca)](_0x44e34e,_0x279694),_0xe79d6a[_0x177c93(0x1fd)](_0x279694);}if(!sameSet(_0x497e1e,new Set(_0x354677[_0x177c93(0x1ee)]())))return null;const _0x1a928f=objectArray(_0x2bff52[_0x177c93(0x1ed)],_0x177c93(0x1ed),0x0,0xc8),_0x21307d=objectArray(_0x2bff52[_0x177c93(0x1b4)],_0x177c93(0x1b4),0x0,0xc8),_0x2e2458=relationTupleSet(_0x1a928f,![],_0x354677),_0x4a795b=relationTupleSet(_0x21307d,!![],_0x354677);if(!_0x2e2458||!_0x4a795b||!sameSet(_0x2e2458,_0x4a795b))return null;const _0x4dfa79=objectArray(_0x2bff52[_0x177c93(0x1c8)],_0x177c93(0x1c8),0x0,0xc8);return{'expectedLocalKeys':_0x546bc6,'expectedRelations':_0x1a928f,'createdDatasets':_0x555b17,'createdRelations':_0x21307d,'unresolvedRelations':_0x4dfa79,...isObject(_0x2bff52[_0x177c93(0x1e1)])?{'metrics':_0x2bff52[_0x177c93(0x1e1)]}:{}};}catch{return null;}}function validateRelation(_0x3dcf97,_0x86e1df,_0x1bb01b,_0x3f9465){const _0x26f089=a65_0x3af336,_0x44c3e4=_0x26f089(0x1ef)+_0x86e1df+']',_0xb7476f=requiredString(_0x3dcf97[_0x26f089(0x1e7)],_0x44c3e4+_0x26f089(0x215)),_0x354a23=requiredString(_0x3dcf97[_0x26f089(0x204)],_0x44c3e4+_0x26f089(0x1c5)),_0x39e4fe=requiredString(_0x3dcf97[_0x26f089(0x1b5)],_0x44c3e4+_0x26f089(0x1ba))[_0x26f089(0x1fc)](),_0x25dd89=requiredString(_0x3dcf97[_0x26f089(0x214)],_0x44c3e4+_0x26f089(0x1f0))[_0x26f089(0x1fc)]();if(!_0x1bb01b[_0x26f089(0x1dc)](_0xb7476f)||!_0x1bb01b['has'](_0x354a23))fail(_0x44c3e4+'\x20references\x20an\x20unknown\x20dataset\x20localKey.');const _0x11670d=_0x3f9465[_0x26f089(0x21e)](_0xb7476f)?.[_0x26f089(0x21e)](_0x39e4fe),_0x3d263b=_0x3f9465['get'](_0x354a23)?.[_0x26f089(0x21e)](_0x25dd89);if(_0x11670d===undefined||_0x3d263b===undefined)fail(_0x44c3e4+'\x20references\x20an\x20unknown\x20field.');if(_0x11670d&&_0x3d263b&&_0x11670d!==_0x3d263b)fail(_0x44c3e4+_0x26f089(0x1be));const _0x41a690=stringValue(_0x3dcf97[_0x26f089(0x1bb)])||_0x26f089(0x210);if(_0x41a690!==_0x26f089(0x210))fail(_0x44c3e4+_0x26f089(0x1b8));const _0x186c88=stringValue(_0x3dcf97[_0x26f089(0x1b9)])||_0x26f089(0x1d8);if(!SUPPORTED_CARDINALITIES['has'](_0x186c88))fail(_0x44c3e4+'.cardinality\x20is\x20not\x20supported.');return requiredString(_0x3dcf97[_0x26f089(0x1f2)],_0x44c3e4+_0x26f089(0x1d9)),validateConfidence(_0x3dcf97[_0x26f089(0x200)],_0x44c3e4+_0x26f089(0x1d0)),tuple(_0xb7476f,_0x39e4fe,_0x354a23,_0x25dd89,_0x26f089(0x210),_0x186c88);}function relationTupleSet(_0x4467cc,_0x1ae259,_0xcbbde1){const _0x1d95b2=a65_0x3af336,_0x82d8bb=new Set();for(const _0x42d97c of _0x4467cc){const _0x51bb63=stringValue(_0x42d97c[_0x1d95b2(0x1e7)]),_0x5976e9=stringValue(_0x42d97c['toDatasetKey']),_0x2a626f=stringValue(_0x42d97c[_0x1d95b2(0x1b5)])[_0x1d95b2(0x1fc)](),_0x5b1a86=stringValue(_0x42d97c['toField'])[_0x1d95b2(0x1fc)](),_0x3ba800=stringValue(_0x42d97c['relationType']),_0x154ace=stringValue(_0x42d97c['cardinality']);if(!_0x51bb63||!_0x5976e9||!_0x2a626f||!_0x5b1a86||_0x3ba800!==_0x1d95b2(0x210)||!SUPPORTED_CARDINALITIES[_0x1d95b2(0x1dc)](_0x154ace))return null;if(!_0xcbbde1['has'](_0x51bb63)||!_0xcbbde1[_0x1d95b2(0x1dc)](_0x5976e9))return null;if(_0x1ae259&&(stringValue(_0x42d97c['fromDatasetCode'])!==_0xcbbde1[_0x1d95b2(0x21e)](_0x51bb63)||stringValue(_0x42d97c[_0x1d95b2(0x1c6)])!==_0xcbbde1['get'](_0x5976e9)))return null;const _0x4f9867=tuple(_0x51bb63,_0x2a626f,_0x5976e9,_0x5b1a86,_0x3ba800,_0x154ace);if(_0x82d8bb['has'](_0x4f9867))return null;_0x82d8bb[_0x1d95b2(0x1fd)](_0x4f9867);}return _0x82d8bb;}function rejectServerDatasetIdentity(_0x2ebd57,_0x42f37f){const _0x32e340=a65_0x3af336;for(const _0x2d9a7f of['id',_0x32e340(0x1d7),_0x32e340(0x1de),_0x32e340(0x1c3),_0x32e340(0x20a),'modelCode']){if(_0x2ebd57[_0x2d9a7f]!==undefined&&_0x2ebd57[_0x2d9a7f]!==null&&_0x2ebd57[_0x2d9a7f]!=='')fail(_0x42f37f+'.'+_0x2d9a7f+_0x32e340(0x1d4));}}function objectArray(_0x16569e,_0x430cb1,_0x4c393a,_0x577fe3){const _0x35717d=a65_0x3af336;return(!Array[_0x35717d(0x1c0)](_0x16569e)||_0x16569e['length']<_0x4c393a||_0x16569e[_0x35717d(0x1c4)]>_0x577fe3||_0x16569e[_0x35717d(0x1f1)](_0x2b6165=>!isObject(_0x2b6165)))&&fail(_0x430cb1+_0x35717d(0x1e2)+_0x4c393a+'..'+_0x577fe3+_0x35717d(0x1cd)),_0x16569e;}function stringArray(_0x2edf3a,_0x19b385,_0xb42494,_0x37f852){const _0x18fa0e=a65_0x3af336;return(!Array['isArray'](_0x2edf3a)||_0x2edf3a[_0x18fa0e(0x1c4)]<_0xb42494||_0x2edf3a[_0x18fa0e(0x1c4)]>_0x37f852||_0x2edf3a[_0x18fa0e(0x1f1)](_0x1e599d=>typeof _0x1e599d!=='string'||!_0x1e599d['trim']()))&&fail(_0x19b385+'\x20must\x20contain\x20'+_0xb42494+'..'+_0x37f852+_0x18fa0e(0x1eb)),_0x2edf3a;}function requiredString(_0x5b8d66,_0x5cf9c1){const _0x7b0bb0=a65_0x3af336,_0x3e7d76=stringValue(_0x5b8d66);if(!_0x3e7d76)fail(_0x5cf9c1+_0x7b0bb0(0x1e6));return _0x3e7d76;}function stringValue(_0x1d8cd8){const _0x29b305=a65_0x3af336;return typeof _0x1d8cd8===_0x29b305(0x1d3)?_0x1d8cd8[_0x29b305(0x212)]():'';}function fieldName(_0x302e05){const _0x4b3e3b=a65_0x3af336;return stringValue(_0x302e05[_0x4b3e3b(0x1c3)]??_0x302e05[_0x4b3e3b(0x1f5)]??_0x302e05[_0x4b3e3b(0x1b0)]??_0x302e05[_0x4b3e3b(0x1cb)]);}function validateConfidence(_0x406a9c,_0x56e055){const _0x6eaf81=a65_0x3af336;_0x406a9c!==undefined&&_0x406a9c!==null&&(typeof _0x406a9c!==_0x6eaf81(0x218)||!Number[_0x6eaf81(0x1b1)](_0x406a9c)||_0x406a9c<0x0||_0x406a9c>0x1)&&fail(_0x56e055+_0x6eaf81(0x1b2));}function tuple(..._0x5a9d4f){const _0x36e570=a65_0x3af336;return _0x5a9d4f[_0x36e570(0x1f3)]((_0x10a616,_0x2e5369)=>_0x2e5369===0x1||_0x2e5369===0x3?_0x10a616[_0x36e570(0x1fc)]():_0x10a616)[_0x36e570(0x1bf)]('\x00');}function sameSet(_0x5617b6,_0x1aab59){const _0x49a79e=a65_0x3af336;return _0x5617b6[_0x49a79e(0x1cc)]===_0x1aab59[_0x49a79e(0x1cc)]&&[..._0x5617b6][_0x49a79e(0x1e9)](_0x308fab=>_0x1aab59[_0x49a79e(0x1dc)](_0x308fab));}function a65_0x39f8(){const _0x235b78=['BOOLEAN','get','423866iaucmJ','name','isFinite','\x20must\x20be\x20between\x200\x20and\x201.','datasets[','createdRelations','fromField','unresolvedRelations[','].design.dataset.datasetName','.relationType\x20must\x20be\x20\x22lookup\x22.','cardinality','.fromField','relationType','design','Dataset\x20','\x20connects\x20incompatible\x20field\x20types.','join','isArray','].design.fields','].design.dataset','code','length','.toDatasetKey','toDatasetCode','5DdFNRs','unresolvedRelations','expectedLocalKeys','set','fieldName','size','\x20objects.',']\x20must\x20have\x20a\x20non-empty\x20name\x20or\x20code.','createdDatasets[].code','.confidence','datasets','dataset','string','\x20must\x20not\x20be\x20supplied\x20by\x20the\x20client.','].design.dataset\x20must\x20be\x20an\x20object.','Dataset\x20batch\x20localKey\x20values\x20must\x20be\x20unique.','datasetId','MANY_TO_ONE','.reason','1412159PcIdwb','kind','has','type','modelId','ADDRESS','NUMBER','metrics','\x20must\x20contain\x20','split','Dataset\x20batch\x20relations\x20must\x20be\x20unique.','].localKey\x20must\x20match\x20','\x20is\x20required.','fromDatasetKey','entries','every','Batch\x20--design-file\x20must\x20have\x20kind\x20\x22dataset-batch\x22.','\x20non-empty\x20strings.','fields','expectedRelations','keys','relations[','.toField','some','reason','map','520494zOCDna','fieldCode','].design.relations\x20must\x20be\x20an\x20empty\x20array;\x20use\x20top-level\x20relations.','TEXT','8OBTDBM','toUpperCase','schemaVersion','object','toLowerCase','add','11582523MOronP','refTableField','confidence','createdDatasets','dataset-batch',']\x20must\x20not\x20contain\x20embedded\x20relation\x20references.','toDatasetKey','UPLOAD','Dataset\x20batch\x20schemaVersion\x20must\x20be\x201.','].design\x20must\x20be\x20an\x20object.','MULTI_SELECT','relations','datasetCode','DATE_RANGE','].reason','USER','ONE_TO_ONE','489843cQcZfc','lookup','test','trim','refTable','toField','.fromDatasetKey','localKey','4409766RoVLYU','number','datasetName','1750820SFxXBH','].design','].design.fields['];a65_0x39f8=function(){return _0x235b78;};return a65_0x39f8();}function isObject(_0x4d57e3){const _0x3f38ad=a65_0x3af336;return typeof _0x4d57e3===_0x3f38ad(0x1fb)&&_0x4d57e3!==null&&!Array['isArray'](_0x4d57e3);}function fail(_0x2b8855){throw CliErrors['validation'](_0x2b8855);}
@@ -1 +1 @@
1
- const a66_0x428d61=a66_0x51d3;(function(_0x3c57a8,_0x436c56){const _0x5c270b=a66_0x51d3,_0xaceb99=_0x3c57a8();while(!![]){try{const _0x1e2b6e=parseInt(_0x5c270b(0x183))/0x1*(parseInt(_0x5c270b(0x18d))/0x2)+parseInt(_0x5c270b(0x15f))/0x3+-parseInt(_0x5c270b(0x190))/0x4+-parseInt(_0x5c270b(0x18c))/0x5*(parseInt(_0x5c270b(0x15a))/0x6)+-parseInt(_0x5c270b(0x187))/0x7+-parseInt(_0x5c270b(0x188))/0x8+-parseInt(_0x5c270b(0x165))/0x9*(parseInt(_0x5c270b(0x197))/0xa);if(_0x1e2b6e===_0x436c56)break;else _0xaceb99['push'](_0xaceb99['shift']());}catch(_0x5ea069){_0xaceb99['push'](_0xaceb99['shift']());}}}(a66_0x1082,0xbadeb));function a66_0x51d3(_0x29b089,_0x4f2044){_0x29b089=_0x29b089-0x155;const _0x108236=a66_0x1082();let _0x51d304=_0x108236[_0x29b089];return _0x51d304;}import{APPCODE_FLAG_OPTIONAL,CODE_FLAG}from'../../commands/common/flags.js';import{getDatasetDetail,updateDbTableBusinessGroup,updateErBusinessGroup}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const DB_TABLE_BACKEND_PATH=a66_0x428d61(0x158),METADATA_BACKEND_PATH=a66_0x428d61(0x16e),UNGROUPED_BUSINESS_GROUP=a66_0x428d61(0x199);export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x2cd65e,input:_0x324264,dryRun:_0x2dad20}){const _0xc1fc49=a66_0x428d61;validateInput(_0x324264);const _0x1bd307=normalizeBusinessGroupArgument(_0x324264['businessGroup']),_0x293bf9=await getDatasetDetail(_0x324264[_0xc1fc49(0x192)]),_0x4241ed=resolveBusinessGroupDataset(_0x293bf9,_0x324264['code']);assertBusinessGroupUpdateSupported(_0x4241ed,_0x1bd307);const _0x2e83e9=loadCurrentBusinessGroup(_0x293bf9,_0x4241ed);assertExpectedBusinessGroup(_0x2e83e9,_0x324264[_0xc1fc49(0x19b)]);const _0x32b1ae=buildBackendPlan(_0x2cd65e,_0x4241ed,_0x1bd307),_0xebbe0b=_0x2e83e9!==_0x1bd307;let _0x41d66b;if(_0xebbe0b&&!_0x2dad20){_0x32b1ae[_0xc1fc49(0x162)]==='db-table'?await updateDbTableBusinessGroup(_0x32b1ae[_0xc1fc49(0x156)]):await updateErBusinessGroup(_0x32b1ae[_0xc1fc49(0x156)]);const _0x203f65=await getDatasetDetail(_0x4241ed[_0xc1fc49(0x192)]),_0x3328b1=resolveBusinessGroupDataset(_0x203f65,_0x4241ed[_0xc1fc49(0x192)]),_0x33feb7=loadCurrentBusinessGroup(_0x203f65,_0x3328b1);if(_0x33feb7!==_0x1bd307)throw CliErrors['apiError'](_0xc1fc49(0x172),_0xc1fc49(0x160)+JSON[_0xc1fc49(0x170)](displayBusinessGroup(_0x1bd307))+_0xc1fc49(0x173)+JSON[_0xc1fc49(0x170)](displayBusinessGroup(_0x33feb7))+'.');_0x41d66b={'verified':!![],'status':_0xc1fc49(0x17a),'afterReadback':{'businessGroup':displayBusinessGroup(_0x33feb7)}};}else!_0xebbe0b&&(_0x41d66b={'verified':!![],'status':_0xc1fc49(0x17c),'afterReadback':{'businessGroup':displayBusinessGroup(_0x2e83e9)}});const _0x320608={'operation':'update','appCode':_0x2cd65e,'selector':{'code':_0x4241ed[_0xc1fc49(0x192)]},'dataset':{'id':_0x4241ed['id'],'code':_0x4241ed[_0xc1fc49(0x192)],'name':_0x4241ed['name'],'sourceType':_0x4241ed[_0xc1fc49(0x16a)]},'before':{'businessGroup':displayBusinessGroup(_0x2e83e9)},'after':{'businessGroup':displayBusinessGroup(_0x1bd307)},'changed':_0xebbe0b,'dryRun':_0x2dad20,'submitted':_0xebbe0b&&!_0x2dad20,'backend':{'method':_0x32b1ae['method'],'path':_0x32b1ae[_0xc1fc49(0x177)],'payload':_0x32b1ae[_0xc1fc49(0x156)]},..._0x41d66b?{'verification':_0x41d66b}:{},'warnings':[]};return{'ok':!![],'data':_0x320608,'message':_0xebbe0b?_0x2dad20?_0xc1fc49(0x15c)+_0x4241ed['code']:_0xc1fc49(0x181)+_0x4241ed[_0xc1fc49(0x192)]:_0xc1fc49(0x19d)+_0x4241ed[_0xc1fc49(0x192)]};}export const datasetBusinessGroupUpdate={'service':a66_0x428d61(0x16b),'command':a66_0x428d61(0x18f),'description':a66_0x428d61(0x191),'risk':a66_0x428d61(0x176),'flags':[CODE_FLAG,{'name':'business-group','type':'string','required':!![],'description':a66_0x428d61(0x178)},{'name':a66_0x428d61(0x180),'type':'string','required':![],'description':a66_0x428d61(0x161)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x356c5e){validateInput(readBusinessGroupUpdateInput(_0x356c5e));},async 'dryRun'(_0x20c512){const _0xcc431c=a66_0x428d61,_0x2dc984=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x20c512['appCode'],'input':readBusinessGroupUpdateInput(_0x20c512),'dryRun':!![]});return{'method':_0x2dc984[_0xcc431c(0x157)][_0xcc431c(0x19c)]['method'],'url':_0x2dc984['data'][_0xcc431c(0x19c)][_0xcc431c(0x177)],'body':_0x2dc984['data'][_0xcc431c(0x19c)]['payload'],'description':_0x2dc984['message'],..._0x2dc984[_0xcc431c(0x157)]};},async 'execute'(_0x5a2fbb){return buildDatasetBusinessGroupUpdateResult({'appCode':_0x5a2fbb['appCode'],'input':readBusinessGroupUpdateInput(_0x5a2fbb),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x5bccad){const _0x5cdb7b=a66_0x428d61,_0xbe4410=_0x5bccad[_0x5cdb7b(0x17f)](_0x5cdb7b(0x180));return{'code':trim(_0x5bccad[_0x5cdb7b(0x17f)]('code')),'businessGroup':_0x5bccad['str'](_0x5cdb7b(0x186)),'expectBusinessGroup':_0xbe4410===undefined||_0xbe4410===''?undefined:_0xbe4410};}function validateInput(_0x1e2e1b){const _0x2c59a6=a66_0x428d61;if(!trim(_0x1e2e1b[_0x2c59a6(0x192)]))throw CliErrors[_0x2c59a6(0x164)]('--code\x20is\x20required');if(_0x1e2e1b[_0x2c59a6(0x185)]===undefined)throw CliErrors[_0x2c59a6(0x164)](_0x2c59a6(0x195));if(!trim(_0x1e2e1b[_0x2c59a6(0x185)]))throw CliErrors[_0x2c59a6(0x164)](_0x2c59a6(0x184));}function assertBusinessGroupUpdateSupported(_0x3343d,_0x35cb04){const _0x4b6047=a66_0x428d61;if(_0x3343d[_0x4b6047(0x16a)]===_0x4b6047(0x15d)&&!_0x35cb04)throw CliErrors['validation'](_0x4b6047(0x19e));}function resolveBusinessGroupDataset(_0x23414c,_0x53afb1){const _0x1cdc05=a66_0x428d61,_0x45204d=asPlainObject(_0x23414c[_0x1cdc05(0x16b)]),_0xf18043=asPlainObject(_0x23414c['dbtableConfig']),_0x461ddd=resolveSourceType(_0x23414c,_0x45204d,_0xf18043),_0x1457fa=firstString(_0x23414c['modelCode'],_0x23414c[_0x1cdc05(0x192)],_0x45204d['datasetCode'],_0x53afb1)||_0x53afb1;return{'id':firstNumber(_0x23414c[_0x1cdc05(0x18b)],_0x23414c['id'],_0x45204d['datasetId'])??firstString(_0x23414c['modelId'],_0x23414c['id'],_0x45204d[_0x1cdc05(0x159)])??null,'code':_0x1457fa,'name':firstString(_0x23414c['name'],_0x45204d[_0x1cdc05(0x169)],_0x45204d['name'])||null,'sourceType':_0x461ddd,'dbTableSelector':_0x461ddd==='DB_TABLE'?{'dbLinkId':firstNumber(_0xf18043['dbId']),'tableName':firstString(_0xf18043[_0x1cdc05(0x16d)])||null}:null};}function resolveSourceType(_0x5d0be2,_0x88f2b6,_0x21a8ee){const _0xb4f980=a66_0x428d61,_0x346ab7=firstString(_0x5d0be2[_0xb4f980(0x189)],_0x5d0be2[_0xb4f980(0x16a)],_0x88f2b6[_0xb4f980(0x189)],_0x88f2b6['sourceType'])?.[_0xb4f980(0x198)]()[_0xb4f980(0x16f)]();if(_0x346ab7===_0xb4f980(0x15d)||_0x346ab7===_0xb4f980(0x196))return _0x346ab7;if(Object[_0xb4f980(0x18a)](_0x21a8ee)[_0xb4f980(0x166)]>0x0)return'DB_TABLE';throw CliErrors[_0xb4f980(0x164)](_0xb4f980(0x179));}function loadCurrentBusinessGroup(_0x45ae9b,_0x132179){const _0xc5d94b=a66_0x428d61,_0x459a5f=readBusinessGroupFromDatasetDetail(_0x45ae9b,_0x132179[_0xc5d94b(0x16a)]);if(_0x459a5f['found'])return normalizeBusinessGroup(_0x459a5f[_0xc5d94b(0x194)]);return'';}function readBusinessGroupFromDatasetDetail(_0x1ae2e8,_0x32e55c){const _0x1a4c1d=a66_0x428d61,_0x267dd9=asPlainObject(_0x1ae2e8[_0x1a4c1d(0x16b)]),_0x1ddc6f=firstPresent(_0x1ae2e8[_0x1a4c1d(0x185)]);if(_0x1ddc6f[_0x1a4c1d(0x175)])return _0x1ddc6f;const _0x4db6e1=firstPresent(_0x267dd9[_0x1a4c1d(0x185)]);if(_0x4db6e1[_0x1a4c1d(0x175)])return _0x4db6e1;if(_0x32e55c===_0x1a4c1d(0x15d))return{'found':![]};const _0x41c666=readBusinessGroupFromExtend(_0x1ae2e8['extend']);if(_0x41c666[_0x1a4c1d(0x175)])return _0x41c666;return readBusinessGroupFromExtend(_0x267dd9[_0x1a4c1d(0x17e)]);}function readBusinessGroupFromExtend(_0x6f0dd5){const _0x446844=a66_0x428d61;if(_0x6f0dd5===undefined||_0x6f0dd5===null||_0x6f0dd5==='')return{'found':![]};if(typeof _0x6f0dd5===_0x446844(0x167))try{const _0x3944ec=JSON[_0x446844(0x174)](_0x6f0dd5);return readBusinessGroupFromExtend(_0x3944ec);}catch{return{'found':![]};}const _0x5be2b7=asPlainObject(_0x6f0dd5);if(Object[_0x446844(0x17b)]['hasOwnProperty'][_0x446844(0x19a)](_0x5be2b7,_0x446844(0x185)))return{'found':!![],'value':_0x5be2b7[_0x446844(0x185)]};return{'found':![]};}function firstPresent(..._0x2c1895){for(const _0xecf5e5 of _0x2c1895){if(_0xecf5e5!==undefined&&_0xecf5e5!==null)return{'found':!![],'value':_0xecf5e5};}return{'found':![]};}function assertExpectedBusinessGroup(_0x4b1af7,_0x121106){const _0x33b909=a66_0x428d61;if(_0x121106===undefined)return;const _0x2f55ef=normalizeBusinessGroupArgument(_0x121106);if(_0x4b1af7!==_0x2f55ef)throw CliErrors['validation'](_0x33b909(0x171),_0x33b909(0x160)+JSON[_0x33b909(0x170)](_0x2f55ef)+',\x20actual\x20'+JSON[_0x33b909(0x170)](_0x4b1af7));}function buildBackendPlan(_0x5cd6c5,_0x567f17,_0x496ac1){const _0x2e294c=a66_0x428d61;if(_0x567f17[_0x2e294c(0x16a)]===_0x2e294c(0x15d)){if(!_0x567f17['dbTableSelector']||_0x567f17['dbTableSelector'][_0x2e294c(0x18e)]===null||!_0x567f17[_0x2e294c(0x16c)][_0x2e294c(0x16d)])throw CliErrors[_0x2e294c(0x164)](_0x2e294c(0x15e),'Run\x20dataset\x20detail\x20and\x20complete\x20database\x20analysis\x20before\x20updating\x20the\x20business\x20group.');return{'kind':_0x2e294c(0x193),'method':_0x2e294c(0x15b),'path':DB_TABLE_BACKEND_PATH,'payload':{'dbLinkId':_0x567f17[_0x2e294c(0x16c)]['dbLinkId'],'tableName':_0x567f17['dbTableSelector']['tableName'],'businessGroup':_0x496ac1}};}return{'kind':_0x2e294c(0x17d),'method':'POST','path':METADATA_BACKEND_PATH,'payload':{'appCode':_0x5cd6c5,'datasetCode':_0x567f17['code'],'businessGroup':_0x496ac1}};}function normalizeBusinessGroup(_0xaf542e){if(_0xaf542e===undefined||_0xaf542e===null)return'';return String(_0xaf542e)['trim']();}function normalizeBusinessGroupArgument(_0x85eba6){const _0x5d4e50=normalizeBusinessGroup(_0x85eba6);return _0x5d4e50===UNGROUPED_BUSINESS_GROUP?'':_0x5d4e50;}function displayBusinessGroup(_0x35764c){return _0x35764c||UNGROUPED_BUSINESS_GROUP;}function a66_0x1082(){const _0x4edd25=['DB_TABLE','DB_TABLE\x20dataset\x20requires\x20dbtableConfig.dbId\x20and\x20tableName.','4195731UGXJDM','Expected\x20','Expected\x20current\x20business\x20scenario\x20group;\x20use\x20ungrouped\x20to\x20expect\x20no\x20group;\x20mismatch\x20aborts\x20without\x20writing','kind','isArray','validation','9cxmLGD','length','string','object','datasetName','sourceType','dataset','dbTableSelector','tableName','/smartapi/question/er-config/business-group/edit','toUpperCase','stringify','Expectation\x20mismatch\x20at\x20businessGroup','Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.',',\x20actual\x20','parse','found','write','path','Business\x20scenario\x20group\x20(not\x20technical):\x20use\x20<scenario>,\x20<domain>---<scenario>\x20when\x20needed;\x20METADATA\x20accepts\x20ungrouped\x20to\x20clear\x20it','Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.','matched','prototype','unchanged','metadata','extend','str','expect-business-group','Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20','isFinite','265gUZCnu','--business-group\x20must\x20not\x20be\x20blank','businessGroup','business-group','1575119UnvhLg','5020240wwqhhG','source','keys','modelId','218505spPYUc','9078EFGPdJ','dbLinkId','business-group-update','274648blBYcO','Update\x20business\x20scenario\x20group','code','db-table','value','--business-group\x20is\x20required','METADATA','4340730teNUSZ','trim','ungrouped','call','expectBusinessGroup','backend','No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20','Clearing\x20business\x20scenario\x20groups\x20is\x20not\x20supported\x20for\x20DB_TABLE\x20datasets.','number','payload','data','/smartapi/dblink/updateTableBusinessGroup','datasetId','66bHgpnm','POST','Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20'];a66_0x1082=function(){return _0x4edd25;};return a66_0x1082();}function asPlainObject(_0x2b1168){const _0x2a33c2=a66_0x428d61;if(!_0x2b1168||typeof _0x2b1168!==_0x2a33c2(0x168)||Array[_0x2a33c2(0x163)](_0x2b1168))return{};return _0x2b1168;}function firstString(..._0x76b42){const _0x48e9f5=a66_0x428d61;for(const _0x3cbd81 of _0x76b42){if(typeof _0x3cbd81==='string'&&_0x3cbd81['trim']())return _0x3cbd81[_0x48e9f5(0x198)]();if(typeof _0x3cbd81===_0x48e9f5(0x155)&&Number[_0x48e9f5(0x182)](_0x3cbd81))return String(_0x3cbd81);}return undefined;}function firstNumber(..._0x3a5c01){const _0xb2fff6=a66_0x428d61;for(const _0x4de8d1 of _0x3a5c01){if(typeof _0x4de8d1===_0xb2fff6(0x155)&&Number[_0xb2fff6(0x182)](_0x4de8d1))return _0x4de8d1;if(typeof _0x4de8d1==='string'&&_0x4de8d1[_0xb2fff6(0x198)]()&&Number[_0xb2fff6(0x182)](Number(_0x4de8d1)))return Number(_0x4de8d1);}return null;}function trim(_0x319733){return String(_0x319733||'')['trim']();}
1
+ const a66_0x2bfb3f=a66_0x32cf;(function(_0xf3fd3b,_0x4222d1){const _0x770a2c=a66_0x32cf,_0x55dd62=_0xf3fd3b();while(!![]){try{const _0x4efadc=parseInt(_0x770a2c(0x19e))/0x1*(parseInt(_0x770a2c(0x19a))/0x2)+-parseInt(_0x770a2c(0x17e))/0x3*(-parseInt(_0x770a2c(0x18d))/0x4)+-parseInt(_0x770a2c(0x194))/0x5+-parseInt(_0x770a2c(0x1b0))/0x6+parseInt(_0x770a2c(0x17f))/0x7+parseInt(_0x770a2c(0x1c3))/0x8*(-parseInt(_0x770a2c(0x191))/0x9)+-parseInt(_0x770a2c(0x176))/0xa*(parseInt(_0x770a2c(0x1a0))/0xb);if(_0x4efadc===_0x4222d1)break;else _0x55dd62['push'](_0x55dd62['shift']());}catch(_0x2a6cd3){_0x55dd62['push'](_0x55dd62['shift']());}}}(a66_0x1e97,0xde6c3));import{APPCODE_FLAG_OPTIONAL,CODE_FLAG}from'../../commands/common/flags.js';import{getDatasetDetail,updateDbTableBusinessGroup,updateErBusinessGroup}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const DB_TABLE_BACKEND_PATH=a66_0x2bfb3f(0x1ac),METADATA_BACKEND_PATH=a66_0x2bfb3f(0x1c0),UNGROUPED_BUSINESS_GROUP=a66_0x2bfb3f(0x195);export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x47d4bc,input:_0x5120d1,dryRun:_0x5f4dd5}){const _0x3b60a9=a66_0x2bfb3f;validateInput(_0x5120d1);const _0xd230dc=normalizeBusinessGroupArgument(_0x5120d1['businessGroup']),_0x3e3003=await getDatasetDetail(_0x5120d1[_0x3b60a9(0x1a3)]),_0x156a30=resolveBusinessGroupDataset(_0x3e3003,_0x5120d1[_0x3b60a9(0x1a3)]);assertBusinessGroupUpdateSupported(_0x156a30,_0xd230dc);const _0x1ca10c=loadCurrentBusinessGroup(_0x3e3003,_0x156a30);assertExpectedBusinessGroup(_0x1ca10c,_0x5120d1[_0x3b60a9(0x1a4)]);const _0x573a5e=buildBackendPlan(_0x47d4bc,_0x156a30,_0xd230dc),_0x23a273=_0x1ca10c!==_0xd230dc;let _0x40539f;if(_0x23a273&&!_0x5f4dd5){_0x573a5e['kind']===_0x3b60a9(0x1ae)?await updateDbTableBusinessGroup(_0x573a5e[_0x3b60a9(0x178)]):await updateErBusinessGroup(_0x573a5e[_0x3b60a9(0x178)]);const _0x172e33=await getDatasetDetail(_0x156a30['code']),_0x1201fb=resolveBusinessGroupDataset(_0x172e33,_0x156a30[_0x3b60a9(0x1a3)]),_0x5f4b50=loadCurrentBusinessGroup(_0x172e33,_0x1201fb);if(_0x5f4b50!==_0xd230dc)throw CliErrors['apiError'](_0x3b60a9(0x1bf),_0x3b60a9(0x1b1)+JSON[_0x3b60a9(0x1bc)](displayBusinessGroup(_0xd230dc))+_0x3b60a9(0x19d)+JSON[_0x3b60a9(0x1bc)](displayBusinessGroup(_0x5f4b50))+'.');_0x40539f={'verified':!![],'status':_0x3b60a9(0x17c),'afterReadback':{'businessGroup':displayBusinessGroup(_0x5f4b50)}};}else!_0x23a273&&(_0x40539f={'verified':!![],'status':'unchanged','afterReadback':{'businessGroup':displayBusinessGroup(_0x1ca10c)}});const _0x1dc146={'operation':_0x3b60a9(0x183),'appCode':_0x47d4bc,'selector':{'code':_0x156a30[_0x3b60a9(0x1a3)]},'dataset':{'id':_0x156a30['id'],'code':_0x156a30[_0x3b60a9(0x1a3)],'name':_0x156a30[_0x3b60a9(0x1b3)],'sourceType':_0x156a30[_0x3b60a9(0x198)]},'before':{'businessGroup':displayBusinessGroup(_0x1ca10c)},'after':{'businessGroup':displayBusinessGroup(_0xd230dc)},'changed':_0x23a273,'dryRun':_0x5f4dd5,'submitted':_0x23a273&&!_0x5f4dd5,'backend':{'method':_0x573a5e[_0x3b60a9(0x1b7)],'path':_0x573a5e[_0x3b60a9(0x1b8)],'payload':_0x573a5e[_0x3b60a9(0x178)]},..._0x40539f?{'verification':_0x40539f}:{},'warnings':[]};return{'ok':!![],'data':_0x1dc146,'message':_0x23a273?_0x5f4dd5?_0x3b60a9(0x177)+_0x156a30['code']:_0x3b60a9(0x190)+_0x156a30['code']:_0x3b60a9(0x18a)+_0x156a30[_0x3b60a9(0x1a3)]};}export const datasetBusinessGroupUpdate={'service':a66_0x2bfb3f(0x199),'command':a66_0x2bfb3f(0x18c),'description':a66_0x2bfb3f(0x1ab),'risk':'write','flags':[CODE_FLAG,{'name':a66_0x2bfb3f(0x1a7),'type':a66_0x2bfb3f(0x1b6),'required':!![],'description':a66_0x2bfb3f(0x189)},{'name':a66_0x2bfb3f(0x187),'type':'string','required':![],'description':a66_0x2bfb3f(0x185)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0xcf9cd7){validateInput(readBusinessGroupUpdateInput(_0xcf9cd7));},async 'dryRun'(_0x4eb318){const _0x2ad856=a66_0x2bfb3f,_0x43a4f9=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x4eb318[_0x2ad856(0x196)],'input':readBusinessGroupUpdateInput(_0x4eb318),'dryRun':!![]});return{'method':_0x43a4f9[_0x2ad856(0x1ba)][_0x2ad856(0x1c1)][_0x2ad856(0x1b7)],'url':_0x43a4f9[_0x2ad856(0x1ba)][_0x2ad856(0x1c1)][_0x2ad856(0x1b8)],'body':_0x43a4f9[_0x2ad856(0x1ba)][_0x2ad856(0x1c1)][_0x2ad856(0x178)],'description':_0x43a4f9['message'],..._0x43a4f9[_0x2ad856(0x1ba)]};},async 'execute'(_0x1e1336){const _0x3f64ae=a66_0x2bfb3f;return buildDatasetBusinessGroupUpdateResult({'appCode':_0x1e1336[_0x3f64ae(0x196)],'input':readBusinessGroupUpdateInput(_0x1e1336),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x499c95){const _0x633a28=a66_0x2bfb3f,_0x5dc5d9=_0x499c95[_0x633a28(0x1a1)](_0x633a28(0x187));return{'code':trim(_0x499c95[_0x633a28(0x1a1)](_0x633a28(0x1a3))),'businessGroup':_0x499c95[_0x633a28(0x1a1)](_0x633a28(0x1a7)),'expectBusinessGroup':_0x5dc5d9===undefined||_0x5dc5d9===''?undefined:_0x5dc5d9};}function validateInput(_0x4f2394){const _0x5d0f5f=a66_0x2bfb3f;if(!trim(_0x4f2394[_0x5d0f5f(0x1a3)]))throw CliErrors[_0x5d0f5f(0x1ad)](_0x5d0f5f(0x186));if(_0x4f2394[_0x5d0f5f(0x179)]===undefined)throw CliErrors[_0x5d0f5f(0x1ad)]('--business-group\x20is\x20required');if(!trim(_0x4f2394['businessGroup']))throw CliErrors[_0x5d0f5f(0x1ad)](_0x5d0f5f(0x1a8));}function assertBusinessGroupUpdateSupported(_0x169f98,_0xd430fe){const _0x51fe95=a66_0x2bfb3f;if(_0x169f98[_0x51fe95(0x198)]===_0x51fe95(0x18b)&&!_0xd430fe)throw CliErrors[_0x51fe95(0x1ad)](_0x51fe95(0x193));}function resolveBusinessGroupDataset(_0x1199ba,_0x454b2b){const _0x34dedf=a66_0x2bfb3f,_0xc4a6eb=asPlainObject(_0x1199ba[_0x34dedf(0x199)]),_0x42e5a0=asPlainObject(_0x1199ba[_0x34dedf(0x1aa)]),_0x102098=resolveSourceType(_0x1199ba,_0xc4a6eb,_0x42e5a0),_0x5bb5bf=firstString(_0x1199ba[_0x34dedf(0x1a2)],_0x1199ba[_0x34dedf(0x1a3)],_0xc4a6eb[_0x34dedf(0x19f)],_0x454b2b)||_0x454b2b;return{'id':firstNumber(_0x1199ba[_0x34dedf(0x1af)],_0x1199ba['id'],_0xc4a6eb[_0x34dedf(0x1b5)])??firstString(_0x1199ba['modelId'],_0x1199ba['id'],_0xc4a6eb['datasetId'])??null,'code':_0x5bb5bf,'name':firstString(_0x1199ba['name'],_0xc4a6eb[_0x34dedf(0x182)],_0xc4a6eb[_0x34dedf(0x1b3)])||null,'sourceType':_0x102098,'dbTableSelector':_0x102098===_0x34dedf(0x18b)?{'dbLinkId':firstNumber(_0x42e5a0[_0x34dedf(0x17d)]),'tableName':firstString(_0x42e5a0[_0x34dedf(0x19c)])||null}:null};}function resolveSourceType(_0xa1b719,_0x44e24b,_0x547338){const _0x54c197=a66_0x2bfb3f,_0x372cae=firstString(_0xa1b719[_0x54c197(0x184)],_0xa1b719['sourceType'],_0x44e24b[_0x54c197(0x184)],_0x44e24b[_0x54c197(0x198)])?.['trim']()[_0x54c197(0x18f)]();if(_0x372cae==='DB_TABLE'||_0x372cae==='METADATA')return _0x372cae;if(Object[_0x54c197(0x1c2)](_0x547338)[_0x54c197(0x1a5)]>0x0)return _0x54c197(0x18b);throw CliErrors['validation'](_0x54c197(0x1b2));}function loadCurrentBusinessGroup(_0x45cca6,_0x1f8894){const _0x15eb27=a66_0x2bfb3f,_0x54576d=readBusinessGroupFromDatasetDetail(_0x45cca6,_0x1f8894['sourceType']);if(_0x54576d['found'])return normalizeBusinessGroup(_0x54576d[_0x15eb27(0x181)]);return'';}function a66_0x32cf(_0x49206d,_0x11b47e){_0x49206d=_0x49206d-0x174;const _0x1e9755=a66_0x1e97();let _0x32cf43=_0x1e9755[_0x49206d];return _0x32cf43;}function a66_0x1e97(){const _0x22ae40=['7237410JKmqVq','ungrouped','appCode','call','sourceType','dataset','2YQhuti','dbLinkId','tableName',',\x20actual\x20','1755024pyiWVI','datasetCode','803bsBvKA','str','modelCode','code','expectBusinessGroup','length','Expectation\x20mismatch\x20at\x20businessGroup','business-group','--business-group\x20must\x20not\x20be\x20blank','metadata','dbtableConfig','Update\x20business\x20scenario\x20group','/smartapi/dblink/updateTableBusinessGroup','validation','db-table','modelId','8792778OXaIdS','Expected\x20','Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.','name','object','datasetId','string','method','path','trim','data','POST','stringify','hasOwnProperty','DB_TABLE\x20dataset\x20requires\x20dbtableConfig.dbId\x20and\x20tableName.','Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.','/smartapi/question/er-config/business-group/edit','backend','keys','248000trmsZM','isArray','extend','61140gBZgoj','Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20','payload','businessGroup','found','dbTableSelector','matched','dbId','6879rNNFrd','12477535qEHtJD','Run\x20dataset\x20detail\x20and\x20complete\x20database\x20analysis\x20before\x20updating\x20the\x20business\x20group.','value','datasetName','update','source','Expected\x20current\x20business\x20scenario\x20group;\x20use\x20ungrouped\x20to\x20expect\x20no\x20group;\x20mismatch\x20aborts\x20without\x20writing','--code\x20is\x20required','expect-business-group','number','Business\x20scenario\x20group\x20(not\x20technical):\x20use\x20<scenario>,\x20<domain>---<scenario>\x20when\x20needed;\x20METADATA\x20accepts\x20ungrouped\x20to\x20clear\x20it','No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20','DB_TABLE','business-group-update','2468RTnPWG','isFinite','toUpperCase','Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20','198IYGPAP','prototype','Clearing\x20business\x20scenario\x20groups\x20is\x20not\x20supported\x20for\x20DB_TABLE\x20datasets.'];a66_0x1e97=function(){return _0x22ae40;};return a66_0x1e97();}function readBusinessGroupFromDatasetDetail(_0x4a6d77,_0x4c3db9){const _0x51d476=a66_0x2bfb3f,_0x3f2b25=asPlainObject(_0x4a6d77['dataset']),_0x48d6c2=firstPresent(_0x4a6d77['businessGroup']);if(_0x48d6c2['found'])return _0x48d6c2;const _0x3f6e3a=firstPresent(_0x3f2b25[_0x51d476(0x179)]);if(_0x3f6e3a[_0x51d476(0x17a)])return _0x3f6e3a;if(_0x4c3db9==='DB_TABLE')return{'found':![]};const _0x155f79=readBusinessGroupFromExtend(_0x4a6d77[_0x51d476(0x175)]);if(_0x155f79[_0x51d476(0x17a)])return _0x155f79;return readBusinessGroupFromExtend(_0x3f2b25[_0x51d476(0x175)]);}function readBusinessGroupFromExtend(_0x4a1262){const _0x44700d=a66_0x2bfb3f;if(_0x4a1262===undefined||_0x4a1262===null||_0x4a1262==='')return{'found':![]};if(typeof _0x4a1262===_0x44700d(0x1b6))try{const _0x48ed03=JSON['parse'](_0x4a1262);return readBusinessGroupFromExtend(_0x48ed03);}catch{return{'found':![]};}const _0x21ca06=asPlainObject(_0x4a1262);if(Object[_0x44700d(0x192)][_0x44700d(0x1bd)][_0x44700d(0x197)](_0x21ca06,'businessGroup'))return{'found':!![],'value':_0x21ca06[_0x44700d(0x179)]};return{'found':![]};}function firstPresent(..._0x36c595){for(const _0x4134f0 of _0x36c595){if(_0x4134f0!==undefined&&_0x4134f0!==null)return{'found':!![],'value':_0x4134f0};}return{'found':![]};}function assertExpectedBusinessGroup(_0x3c8d8b,_0x495b61){const _0x5aad6b=a66_0x2bfb3f;if(_0x495b61===undefined)return;const _0x158a85=normalizeBusinessGroupArgument(_0x495b61);if(_0x3c8d8b!==_0x158a85)throw CliErrors[_0x5aad6b(0x1ad)](_0x5aad6b(0x1a6),_0x5aad6b(0x1b1)+JSON[_0x5aad6b(0x1bc)](_0x158a85)+_0x5aad6b(0x19d)+JSON['stringify'](_0x3c8d8b));}function buildBackendPlan(_0x254e8a,_0x2b5772,_0x58226e){const _0x764d0e=a66_0x2bfb3f;if(_0x2b5772[_0x764d0e(0x198)]===_0x764d0e(0x18b)){if(!_0x2b5772[_0x764d0e(0x17b)]||_0x2b5772[_0x764d0e(0x17b)][_0x764d0e(0x19b)]===null||!_0x2b5772[_0x764d0e(0x17b)][_0x764d0e(0x19c)])throw CliErrors[_0x764d0e(0x1ad)](_0x764d0e(0x1be),_0x764d0e(0x180));return{'kind':_0x764d0e(0x1ae),'method':_0x764d0e(0x1bb),'path':DB_TABLE_BACKEND_PATH,'payload':{'dbLinkId':_0x2b5772[_0x764d0e(0x17b)][_0x764d0e(0x19b)],'tableName':_0x2b5772[_0x764d0e(0x17b)][_0x764d0e(0x19c)],'businessGroup':_0x58226e}};}return{'kind':_0x764d0e(0x1a9),'method':_0x764d0e(0x1bb),'path':METADATA_BACKEND_PATH,'payload':{'appCode':_0x254e8a,'datasetCode':_0x2b5772[_0x764d0e(0x1a3)],'businessGroup':_0x58226e}};}function normalizeBusinessGroup(_0x345f49){const _0x31473a=a66_0x2bfb3f;if(_0x345f49===undefined||_0x345f49===null)return'';return String(_0x345f49)[_0x31473a(0x1b9)]();}function normalizeBusinessGroupArgument(_0x2ce94a){const _0x291d16=normalizeBusinessGroup(_0x2ce94a);return _0x291d16===UNGROUPED_BUSINESS_GROUP?'':_0x291d16;}function displayBusinessGroup(_0x26c66f){return _0x26c66f||UNGROUPED_BUSINESS_GROUP;}function asPlainObject(_0x3ef069){const _0x5c3369=a66_0x2bfb3f;if(!_0x3ef069||typeof _0x3ef069!==_0x5c3369(0x1b4)||Array[_0x5c3369(0x174)](_0x3ef069))return{};return _0x3ef069;}function firstString(..._0x18f0f8){const _0x5910b0=a66_0x2bfb3f;for(const _0x502139 of _0x18f0f8){if(typeof _0x502139===_0x5910b0(0x1b6)&&_0x502139[_0x5910b0(0x1b9)]())return _0x502139[_0x5910b0(0x1b9)]();if(typeof _0x502139===_0x5910b0(0x188)&&Number[_0x5910b0(0x18e)](_0x502139))return String(_0x502139);}return undefined;}function firstNumber(..._0xe505f5){const _0x4aa61f=a66_0x2bfb3f;for(const _0x53412a of _0xe505f5){if(typeof _0x53412a==='number'&&Number[_0x4aa61f(0x18e)](_0x53412a))return _0x53412a;if(typeof _0x53412a===_0x4aa61f(0x1b6)&&_0x53412a[_0x4aa61f(0x1b9)]()&&Number[_0x4aa61f(0x18e)](Number(_0x53412a)))return Number(_0x53412a);}return null;}function trim(_0x123a38){return String(_0x123a38||'')['trim']();}
@@ -1 +1 @@
1
- const a67_0x4d8aa4=a67_0x2997;(function(_0x53a207,_0x2978e7){const _0xa311ea=a67_0x2997,_0x10fc2f=_0x53a207();while(!![]){try{const _0x562e55=-parseInt(_0xa311ea(0x9f))/0x1+parseInt(_0xa311ea(0xab))/0x2*(-parseInt(_0xa311ea(0x9a))/0x3)+-parseInt(_0xa311ea(0xa3))/0x4+-parseInt(_0xa311ea(0xa8))/0x5+parseInt(_0xa311ea(0x9d))/0x6+-parseInt(_0xa311ea(0xa5))/0x7*(parseInt(_0xa311ea(0xb1))/0x8)+parseInt(_0xa311ea(0x99))/0x9*(parseInt(_0xa311ea(0x9e))/0xa);if(_0x562e55===_0x2978e7)break;else _0x10fc2f['push'](_0x10fc2f['shift']());}catch(_0x5ba6ea){_0x10fc2f['push'](_0x10fc2f['shift']());}}}(a67_0x571a,0x332bf));function a67_0x2997(_0xf8a076,_0x249115){_0xf8a076=_0xf8a076-0x99;const _0x571a61=a67_0x571a();let _0x29976e=_0x571a61[_0xf8a076];return _0x29976e;}function a67_0x571a(){const _0x38e522=['List\x20DB_TABLE\x20dataset\x20business\x20groups\x20for\x20a\x20database\x20connection;\x20does\x20not\x20include\x20METADATA','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','8Dmusyt','351693SQYbNz','1033302xvIGcG','dbid','num','2158290WpYtDj','230LhVXCx','200214dOZdLt','trim','number','businessGroup','540004cewJzW','groups','411565Yyuzms','read','dataset','1552215RoWrJF','ungrouped','DB_TABLE','2OwXUZy','length','\x20business\x20group(s)\x20for\x20database\x20connection\x20','Found\x20'];a67_0x571a=function(){return _0x38e522;};return a67_0x571a();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getErBusinessGroupSummary}from'../../core/api-client.js';export const datasetBusinessGroups={'service':a67_0x4d8aa4(0xa7),'command':'business-groups','description':a67_0x4d8aa4(0xaf),'risk':a67_0x4d8aa4(0xa6),'flags':[{'name':a67_0x4d8aa4(0x9b),'type':a67_0x4d8aa4(0xa1),'required':!![],'description':a67_0x4d8aa4(0xb0)},APPCODE_FLAG_OPTIONAL],async 'execute'(_0x1474f3){const _0x537c87=a67_0x4d8aa4,_0x11a1ae=_0x1474f3[_0x537c87(0x9c)](_0x537c87(0x9b)),_0x12ecbd=await getErBusinessGroupSummary(_0x1474f3['appCode'],_0x11a1ae),_0x22171b=_0x12ecbd[_0x537c87(0xa4)]['map'](_0x149d2d=>({..._0x149d2d,'businessGroup':_0x149d2d[_0x537c87(0xa2)][_0x537c87(0xa0)]()||_0x537c87(0xa9)}));return{'ok':!![],'data':{..._0x12ecbd,'groups':_0x22171b,'scope':_0x537c87(0xaa)},'message':_0x537c87(0xae)+_0x22171b[_0x537c87(0xac)]+_0x537c87(0xad)+_0x11a1ae};}};
1
+ function a67_0x2066(_0x3502,_0x41c673){_0x3502=_0x3502-0x146;const _0xc1ce13=a67_0xc1ce();let _0x2066bc=_0xc1ce13[_0x3502];return _0x2066bc;}function a67_0xc1ce(){const _0x58ba45=['ungrouped','appCode','2332qlMDNt','279882dKJMhY','\x20business\x20group(s)\x20for\x20database\x20connection\x20','Found\x20','trim','dataset','890654CUjqaV','3101127nFNwsH','386658rNfdPF','number','num','DB_TABLE','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','businessGroup','read','map','430hgGKnj','groups','2alfXiG','7djckCc','dbid','20148RzLaSW','business-groups','1653520WsABwX','50BLPGzh','List\x20DB_TABLE\x20dataset\x20business\x20groups\x20for\x20a\x20database\x20connection;\x20does\x20not\x20include\x20METADATA','888464fpznJO'];a67_0xc1ce=function(){return _0x58ba45;};return a67_0xc1ce();}const a67_0x4b50fa=a67_0x2066;(function(_0x536980,_0x1f7cdc){const _0x4f6f4f=a67_0x2066,_0x1f12f0=_0x536980();while(!![]){try{const _0x16dd45=parseInt(_0x4f6f4f(0x153))/0x1+-parseInt(_0x4f6f4f(0x15f))/0x2*(-parseInt(_0x4f6f4f(0x154))/0x3)+parseInt(_0x4f6f4f(0x147))/0x4+parseInt(_0x4f6f4f(0x148))/0x5*(-parseInt(_0x4f6f4f(0x155))/0x6)+-parseInt(_0x4f6f4f(0x160))/0x7*(-parseInt(_0x4f6f4f(0x14a))/0x8)+-parseInt(_0x4f6f4f(0x14e))/0x9*(parseInt(_0x4f6f4f(0x15d))/0xa)+parseInt(_0x4f6f4f(0x14d))/0xb*(parseInt(_0x4f6f4f(0x162))/0xc);if(_0x16dd45===_0x1f7cdc)break;else _0x1f12f0['push'](_0x1f12f0['shift']());}catch(_0x1bced1){_0x1f12f0['push'](_0x1f12f0['shift']());}}}(a67_0xc1ce,0xc8f41));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getErBusinessGroupSummary}from'../../core/api-client.js';export const datasetBusinessGroups={'service':a67_0x4b50fa(0x152),'command':a67_0x4b50fa(0x146),'description':a67_0x4b50fa(0x149),'risk':a67_0x4b50fa(0x15b),'flags':[{'name':a67_0x4b50fa(0x161),'type':a67_0x4b50fa(0x156),'required':!![],'description':a67_0x4b50fa(0x159)},APPCODE_FLAG_OPTIONAL],async 'execute'(_0x10aa41){const _0x36e7f8=a67_0x4b50fa,_0x105bb7=_0x10aa41[_0x36e7f8(0x157)]('dbid'),_0x37e760=await getErBusinessGroupSummary(_0x10aa41[_0x36e7f8(0x14c)],_0x105bb7),_0x509705=_0x37e760[_0x36e7f8(0x15e)][_0x36e7f8(0x15c)](_0x189e02=>({..._0x189e02,'businessGroup':_0x189e02[_0x36e7f8(0x15a)][_0x36e7f8(0x151)]()||_0x36e7f8(0x14b)}));return{'ok':!![],'data':{..._0x37e760,'groups':_0x509705,'scope':_0x36e7f8(0x158)},'message':_0x36e7f8(0x150)+_0x509705['length']+_0x36e7f8(0x14f)+_0x105bb7};}};
@@ -1 +1 @@
1
- const a68_0x570250=a68_0x39bc;function a68_0x39bc(_0x616b16,_0x42e3f2){_0x616b16=_0x616b16-0x1a9;const _0x4d51fc=a68_0x4d51();let _0x39bc30=_0x4d51fc[_0x616b16];return _0x39bc30;}(function(_0x1f81dc,_0x3c8bf8){const _0x414a66=a68_0x39bc,_0x10b694=_0x1f81dc();while(!![]){try{const _0x3b68a2=-parseInt(_0x414a66(0x1af))/0x1*(-parseInt(_0x414a66(0x1cb))/0x2)+-parseInt(_0x414a66(0x1cd))/0x3*(-parseInt(_0x414a66(0x1cc))/0x4)+-parseInt(_0x414a66(0x1b6))/0x5*(parseInt(_0x414a66(0x1c8))/0x6)+parseInt(_0x414a66(0x1bc))/0x7+-parseInt(_0x414a66(0x1b9))/0x8*(parseInt(_0x414a66(0x1ad))/0x9)+parseInt(_0x414a66(0x1c9))/0xa*(parseInt(_0x414a66(0x1be))/0xb)+-parseInt(_0x414a66(0x1b1))/0xc;if(_0x3b68a2===_0x3c8bf8)break;else _0x10b694['push'](_0x10b694['shift']());}catch(_0x45b022){_0x10b694['push'](_0x10b694['shift']());}}}(a68_0x4d51,0x89503));import{CliErrors}from'../../errors.js';export const RUNTIME_DATA_ACCESS_COMMANDS={'cli':a68_0x570250(0x1c7),'filter':a68_0x570250(0x1c6),'getOne':a68_0x570250(0x1b2)};export const RUNTIME_DATA_ACCESS_SUMMARY=a68_0x570250(0x1ab);function valueToString(_0x1cbbd9){return _0x1cbbd9==null?'':String(_0x1cbbd9)['trim']();}function getDatasetCode(_0x20b6e5){const _0x4b97ca=a68_0x570250;return valueToString(_0x20b6e5[_0x4b97ca(0x1c5)]??_0x20b6e5[_0x4b97ca(0x1d0)]??_0x20b6e5[_0x4b97ca(0x1b0)]?.[_0x4b97ca(0x1c4)]);}function getDatasetName(_0x13facd){const _0x58ad14=a68_0x570250;return valueToString(_0x13facd[_0x58ad14(0x1b4)]??_0x13facd[_0x58ad14(0x1b0)]?.['datasetName'])||_0x58ad14(0x1bd);}function a68_0x4d51(){const _0x35eefa=['5WFUHat','sourceType','source','992tfzngH','dbtableConfig','SQL\x20schema\x20validation','5878257rhCAWr','unknown','22rkPPQF','Reason:\x20schema\x20introspection\x20and\x20custom\x20SQL\x20require\x20source=DB_TABLE,\x20dbtableConfig.dbId,\x20dbtableConfig.tableName,\x20and\x20a\x20database\x20connection\x20context.','METADATA','\x20and\x20has\x20no\x20DB_TABLE\x20data-source\x20context\x20for\x20','UNKNOWN','The\x20current\x20dataset\x20\x22','datasetCode','code','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27<json>\x27\x20--format\x20compress','lovrabet','3724386XTuWdn','4020530fbDPHr','length','102ChilXu','56KedmCA','219189jIeWrh','join','To\x20inspect\x20real\x20runtime\x20rows,\x20switch\x20to\x20lovrabet\x20CLI:\x20','modelCode','tableName','toUpperCase','validation','Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.','object','34677HTJSCN','filter','1995IXthbA','dataset','13290552gMAped','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27\x20--format\x20compress','Upgrade\x20or\x20migrate\x20this\x20dataset\x20to\x20a\x20DB_TABLE\x20dataset,\x20then\x20continue\x20with\x20the\x20new\x20dataset\x20code.','name','\x20is\x20'];a68_0x4d51=function(){return _0x35eefa;};return a68_0x4d51();}function getDatasetSource(_0x9bc6d4){const _0x2ae3cd=a68_0x570250;return valueToString(_0x9bc6d4[_0x2ae3cd(0x1b8)]??_0x9bc6d4[_0x2ae3cd(0x1b0)]?.[_0x2ae3cd(0x1b7)])[_0x2ae3cd(0x1a9)]();}function getDbtableConfig(_0x48581d){const _0x2fea63=a68_0x570250,_0xeff01=_0x48581d[_0x2fea63(0x1ba)]??_0x48581d['dbtable'];return _0xeff01&&typeof _0xeff01===_0x2fea63(0x1ac)?_0xeff01:{};}export function isDbTableBackedDataset(_0x545a43){const _0x37ece1=a68_0x570250,_0x3924b9=getDatasetSource(_0x545a43);if(_0x3924b9===_0x37ece1(0x1c0))return![];const _0x748fdf=getDbtableConfig(_0x545a43),_0x4961d4=_0x748fdf['dbId']??_0x748fdf['id'],_0x28bcbc=valueToString(_0x748fdf[_0x37ece1(0x1d1)]??_0x545a43[_0x37ece1(0x1d1)]??_0x545a43[_0x37ece1(0x1b0)]?.['tableName']);return _0x4961d4!==undefined&&_0x4961d4!==null&&_0x28bcbc[_0x37ece1(0x1ca)]>0x0;}export function filterDbTableBackedDatasets(_0x2d3e14){const _0x5d2c7e=a68_0x570250;return _0x2d3e14[_0x5d2c7e(0x1ae)](_0x1ec1f0=>isDbTableBackedDataset(_0x1ec1f0));}export function buildDbTableBackedRequirementMessage(_0x4cf880,_0x2fd3f6=a68_0x570250(0x1bb)){const _0x33a458=a68_0x570250,_0x855462=getDatasetSource(_0x4cf880)||_0x33a458(0x1c2),_0x500cda=getDatasetName(_0x4cf880),_0x9a5786=getDatasetCode(_0x4cf880),_0x57c708=_0x9a5786?'\x20('+_0x9a5786+')':'';return[_0x33a458(0x1c3)+_0x500cda+'\x22'+_0x57c708+_0x33a458(0x1b5)+_0x855462+_0x33a458(0x1c1)+_0x2fd3f6+'.',_0x33a458(0x1bf),_0x33a458(0x1b3),_0x33a458(0x1cf)+RUNTIME_DATA_ACCESS_COMMANDS[_0x33a458(0x1ae)]+';\x20'+RUNTIME_DATA_ACCESS_COMMANDS['getOne']+'.'][_0x33a458(0x1ce)]('\x20');}export function assertDatasetIsDbTableBacked(_0x378889,_0x33d3fc){const _0x3777b9=a68_0x570250;if(!isDbTableBackedDataset(_0x378889))throw CliErrors[_0x3777b9(0x1aa)](buildDbTableBackedRequirementMessage(_0x378889,_0x33d3fc));}
1
+ const a68_0x3752fe=a68_0xd20b;function a68_0xd20b(_0x5039e3,_0x19b619){_0x5039e3=_0x5039e3-0x1b5;const _0x5ab13b=a68_0x5ab1();let _0xd20b7c=_0x5ab13b[_0x5039e3];return _0xd20b7c;}(function(_0x4363a8,_0x40f2da){const _0xd3e21e=a68_0xd20b,_0x4be252=_0x4363a8();while(!![]){try{const _0x28897d=parseInt(_0xd3e21e(0x1b9))/0x1+parseInt(_0xd3e21e(0x1b7))/0x2*(-parseInt(_0xd3e21e(0x1d6))/0x3)+-parseInt(_0xd3e21e(0x1c4))/0x4+-parseInt(_0xd3e21e(0x1bd))/0x5*(parseInt(_0xd3e21e(0x1d2))/0x6)+parseInt(_0xd3e21e(0x1c6))/0x7*(-parseInt(_0xd3e21e(0x1c9))/0x8)+parseInt(_0xd3e21e(0x1d7))/0x9*(parseInt(_0xd3e21e(0x1d0))/0xa)+parseInt(_0xd3e21e(0x1ca))/0xb;if(_0x28897d===_0x40f2da)break;else _0x4be252['push'](_0x4be252['shift']());}catch(_0x48452e){_0x4be252['push'](_0x4be252['shift']());}}}(a68_0x5ab1,0xb9dcf));import{CliErrors}from'../../errors.js';export const RUNTIME_DATA_ACCESS_COMMANDS={'cli':'lovrabet','filter':a68_0x3752fe(0x1cf),'getOne':a68_0x3752fe(0x1d1)};export const RUNTIME_DATA_ACCESS_SUMMARY=a68_0x3752fe(0x1b8);function valueToString(_0x21fa85){const _0x467cd0=a68_0x3752fe;return _0x21fa85==null?'':String(_0x21fa85)[_0x467cd0(0x1d8)]();}function a68_0x5ab1(){const _0x1f0390=['17322CCRLnF','\x20and\x20has\x20no\x20DB_TABLE\x20data-source\x20context\x20for\x20','dataset','The\x20current\x20dataset\x20\x22','6azowWv','700173wmgJte','trim','tableName','SQL\x20schema\x20validation','26158aSWGSR','Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.','412443SpktXx','validation','Reason:\x20schema\x20introspection\x20and\x20custom\x20SQL\x20require\x20source=DB_TABLE,\x20dbtableConfig.dbId,\x20dbtableConfig.tableName,\x20and\x20a\x20database\x20connection\x20context.','getOne','2085QAmAQy','datasetName','name','dbId','dbtable','unknown','join','2777116zjaBUy','datasetCode','994hVArFz','To\x20inspect\x20real\x20runtime\x20rows,\x20switch\x20to\x20lovrabet\x20CLI:\x20','source','15472xOMoOY','23746921qJcDNQ','sourceType','filter','modelCode','object','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27<json>\x27\x20--format\x20compress','50LOTOhP','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27\x20--format\x20compress'];a68_0x5ab1=function(){return _0x1f0390;};return a68_0x5ab1();}function getDatasetCode(_0x59fe7a){const _0x1e39bd=a68_0x3752fe;return valueToString(_0x59fe7a['code']??_0x59fe7a[_0x1e39bd(0x1cd)]??_0x59fe7a[_0x1e39bd(0x1d4)]?.[_0x1e39bd(0x1c5)]);}function getDatasetName(_0x2fcd54){const _0x56927a=a68_0x3752fe;return valueToString(_0x2fcd54[_0x56927a(0x1bf)]??_0x2fcd54[_0x56927a(0x1d4)]?.[_0x56927a(0x1be)])||_0x56927a(0x1c2);}function getDatasetSource(_0xbcc3b7){const _0x574073=a68_0x3752fe;return valueToString(_0xbcc3b7[_0x574073(0x1c8)]??_0xbcc3b7[_0x574073(0x1d4)]?.[_0x574073(0x1cb)])['toUpperCase']();}function getDbtableConfig(_0x290444){const _0x59e5d4=a68_0x3752fe,_0x5962bb=_0x290444['dbtableConfig']??_0x290444[_0x59e5d4(0x1c1)];return _0x5962bb&&typeof _0x5962bb===_0x59e5d4(0x1ce)?_0x5962bb:{};}export function isDbTableBackedDataset(_0x317423){const _0x517d86=a68_0x3752fe,_0x44ecd1=getDatasetSource(_0x317423);if(_0x44ecd1==='METADATA')return![];const _0x42261d=getDbtableConfig(_0x317423),_0x424190=_0x42261d[_0x517d86(0x1c0)]??_0x42261d['id'],_0x10bf65=valueToString(_0x42261d[_0x517d86(0x1b5)]??_0x317423[_0x517d86(0x1b5)]??_0x317423['dataset']?.[_0x517d86(0x1b5)]);return _0x424190!==undefined&&_0x424190!==null&&_0x10bf65['length']>0x0;}export function filterDbTableBackedDatasets(_0x12beee){const _0x33173e=a68_0x3752fe;return _0x12beee[_0x33173e(0x1cc)](_0x54a029=>isDbTableBackedDataset(_0x54a029));}export function buildDbTableBackedRequirementMessage(_0x31f574,_0x5ca631=a68_0x3752fe(0x1b6)){const _0x4a1eed=a68_0x3752fe,_0x9b2fce=getDatasetSource(_0x31f574)||'UNKNOWN',_0x287087=getDatasetName(_0x31f574),_0x3e2c74=getDatasetCode(_0x31f574),_0x623bb7=_0x3e2c74?'\x20('+_0x3e2c74+')':'';return[_0x4a1eed(0x1d5)+_0x287087+'\x22'+_0x623bb7+'\x20is\x20'+_0x9b2fce+_0x4a1eed(0x1d3)+_0x5ca631+'.',_0x4a1eed(0x1bb),'Upgrade\x20or\x20migrate\x20this\x20dataset\x20to\x20a\x20DB_TABLE\x20dataset,\x20then\x20continue\x20with\x20the\x20new\x20dataset\x20code.',_0x4a1eed(0x1c7)+RUNTIME_DATA_ACCESS_COMMANDS[_0x4a1eed(0x1cc)]+';\x20'+RUNTIME_DATA_ACCESS_COMMANDS[_0x4a1eed(0x1bc)]+'.'][_0x4a1eed(0x1c3)]('\x20');}export function assertDatasetIsDbTableBacked(_0x23f6fa,_0x48755a){const _0x4b81a0=a68_0x3752fe;if(!isDbTableBackedDataset(_0x23f6fa))throw CliErrors[_0x4b81a0(0x1ba)](buildDbTableBackedRequirementMessage(_0x23f6fa,_0x48755a));}
@@ -1 +1 @@
1
- const a69_0x597bfb=a69_0x3752;function a69_0x3752(_0x56f3c7,_0x26a15a){_0x56f3c7=_0x56f3c7-0x16a;const _0x374fd2=a69_0x374f();let _0x375249=_0x374fd2[_0x56f3c7];return _0x375249;}(function(_0x267a38,_0x45ebd8){const _0x59d5db=a69_0x3752,_0x56b8b1=_0x267a38();while(!![]){try{const _0x657206=-parseInt(_0x59d5db(0x175))/0x1*(parseInt(_0x59d5db(0x170))/0x2)+-parseInt(_0x59d5db(0x174))/0x3+-parseInt(_0x59d5db(0x16e))/0x4+-parseInt(_0x59d5db(0x178))/0x5+-parseInt(_0x59d5db(0x16f))/0x6+-parseInt(_0x59d5db(0x176))/0x7*(-parseInt(_0x59d5db(0x16a))/0x8)+-parseInt(_0x59d5db(0x16c))/0x9*(-parseInt(_0x59d5db(0x16d))/0xa);if(_0x657206===_0x45ebd8)break;else _0x56b8b1['push'](_0x56b8b1['shift']());}catch(_0x51c368){_0x56b8b1['push'](_0x56b8b1['shift']());}}}(a69_0x374f,0xc9e6a));import{createCrossDbRelation}from'../../core/api-client.js';function a69_0x374f(){const _0x116451=['14WqeiJU','create','dataset','write','4315167WZnxbB','85949zLlFkq','308TDEmzK','cross-relation-create','3051230LcdPJO','213008QvUAlB','Create\x20a\x20logical\x20relation\x20between\x20DB_TABLE\x20datasets\x20in\x20different\x20database\x20connections','9vEqyDt','39912230YXDpzv','3330008EnEZOo','5118006wxzKfr'];a69_0x374f=function(){return _0x116451;};return a69_0x374f();}import{CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG,CROSS_RELATION_TO_DATASET_FLAG,CROSS_RELATION_TO_COLUMN_FLAG,CROSS_RELATION_LABEL_FLAG,CROSS_RELATION_CARDINALITY_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{executeCrossRelation,previewCrossRelation,validateCrossRelation}from'../../commands/dataset/cross-relation-shared.js';export const datasetCrossRelationCreate={'service':a69_0x597bfb(0x172),'command':a69_0x597bfb(0x177),'description':a69_0x597bfb(0x16b),'risk':a69_0x597bfb(0x173),'strictFlags':!![],'requiresCookieAuth':!![],'structuredErrors':!![],'flags':[CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG,CROSS_RELATION_TO_DATASET_FLAG,CROSS_RELATION_TO_COLUMN_FLAG,CROSS_RELATION_LABEL_FLAG,CROSS_RELATION_CARDINALITY_FLAG,APPCODE_FLAG_OPTIONAL],'validate':async _0x45755b=>validateCrossRelation(_0x45755b,a69_0x597bfb(0x171)),'dryRun':_0x47a8dc=>previewCrossRelation(_0x47a8dc,a69_0x597bfb(0x171)),'execute':_0x205781=>executeCrossRelation(_0x205781,a69_0x597bfb(0x171),createCrossDbRelation)};
1
+ const a69_0x3a1d04=a69_0x4822;(function(_0x4664de,_0x140b99){const _0x3624e0=a69_0x4822,_0x4c7794=_0x4664de();while(!![]){try{const _0x54b368=parseInt(_0x3624e0(0x1ed))/0x1*(parseInt(_0x3624e0(0x1f1))/0x2)+parseInt(_0x3624e0(0x1eb))/0x3+parseInt(_0x3624e0(0x1ec))/0x4+parseInt(_0x3624e0(0x1ea))/0x5+parseInt(_0x3624e0(0x1f3))/0x6+parseInt(_0x3624e0(0x1e9))/0x7*(-parseInt(_0x3624e0(0x1f5))/0x8)+-parseInt(_0x3624e0(0x1f0))/0x9*(parseInt(_0x3624e0(0x1f4))/0xa);if(_0x54b368===_0x140b99)break;else _0x4c7794['push'](_0x4c7794['shift']());}catch(_0x1de097){_0x4c7794['push'](_0x4c7794['shift']());}}}(a69_0x404e,0x46102));import{createCrossDbRelation}from'../../core/api-client.js';import{CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG,CROSS_RELATION_TO_DATASET_FLAG,CROSS_RELATION_TO_COLUMN_FLAG,CROSS_RELATION_LABEL_FLAG,CROSS_RELATION_CARDINALITY_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{executeCrossRelation,previewCrossRelation,validateCrossRelation}from'../../commands/dataset/cross-relation-shared.js';export const datasetCrossRelationCreate={'service':'dataset','command':a69_0x3a1d04(0x1f6),'description':a69_0x3a1d04(0x1ef),'risk':a69_0x3a1d04(0x1f2),'strictFlags':!![],'requiresCookieAuth':!![],'structuredErrors':!![],'flags':[CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG,CROSS_RELATION_TO_DATASET_FLAG,CROSS_RELATION_TO_COLUMN_FLAG,CROSS_RELATION_LABEL_FLAG,CROSS_RELATION_CARDINALITY_FLAG,APPCODE_FLAG_OPTIONAL],'validate':async _0x3a2ac9=>validateCrossRelation(_0x3a2ac9,a69_0x3a1d04(0x1ee)),'dryRun':_0x2a3374=>previewCrossRelation(_0x2a3374,'create'),'execute':_0x2745a7=>executeCrossRelation(_0x2745a7,a69_0x3a1d04(0x1ee),createCrossDbRelation)};function a69_0x4822(_0x406266,_0x33f7eb){_0x406266=_0x406266-0x1e9;const _0x404e73=a69_0x404e();let _0x4822b3=_0x404e73[_0x406266];return _0x4822b3;}function a69_0x404e(){const _0x4ce193=['20mcvPvo','2474152zkXmsX','cross-relation-create','7CitkRg','2810670YhjitV','1475400wAgbil','801524aKqgqe','1032cqlQZq','create','Create\x20a\x20logical\x20relation\x20between\x20DB_TABLE\x20datasets\x20in\x20different\x20database\x20connections','3575196ypwClI','190DAycOz','write','230280GTbQsW'];a69_0x404e=function(){return _0x4ce193;};return a69_0x404e();}
@@ -1 +1 @@
1
- const a70_0x525321=a70_0x5a65;function a70_0x5a65(_0x52e9de,_0x1bac58){_0x52e9de=_0x52e9de-0xe4;const _0x2f3c00=a70_0x2f3c();let _0x5a6560=_0x2f3c00[_0x52e9de];return _0x5a6560;}(function(_0x585371,_0x416810){const _0x753d3b=a70_0x5a65,_0x5be838=_0x585371();while(!![]){try{const _0x387eba=-parseInt(_0x753d3b(0xe6))/0x1+-parseInt(_0x753d3b(0xec))/0x2*(parseInt(_0x753d3b(0xe8))/0x3)+-parseInt(_0x753d3b(0xf1))/0x4*(-parseInt(_0x753d3b(0xe5))/0x5)+-parseInt(_0x753d3b(0xf0))/0x6*(parseInt(_0x753d3b(0xf2))/0x7)+parseInt(_0x753d3b(0xee))/0x8*(parseInt(_0x753d3b(0xed))/0x9)+parseInt(_0x753d3b(0xef))/0xa*(-parseInt(_0x753d3b(0xea))/0xb)+parseInt(_0x753d3b(0xe9))/0xc;if(_0x387eba===_0x416810)break;else _0x5be838['push'](_0x5be838['shift']());}catch(_0x1bcdb3){_0x5be838['push'](_0x5be838['shift']());}}}(a70_0x2f3c,0xbca34));function a70_0x2f3c(){const _0x4c0f11=['1034EThbLe','dataset','295706xxsngU','531HojaYW','186952fvNVUM','63670cHJowP','60ngyMMr','501224SBSNHU','366527cfppgW','delete','5XwkPaT','1450666GhEdwQ','Delete\x20the\x20single\x20cross-database\x20relation\x20matching\x20a\x20source\x20dataset\x20and\x20field','9cCgVkL','27418992rFruKy'];a70_0x2f3c=function(){return _0x4c0f11;};return a70_0x2f3c();}import{deleteCrossDbRelation}from'../../core/api-client.js';import{CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG,CROSS_RELATION_DBLINK_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{executeCrossRelation,previewCrossRelation,validateCrossRelation}from'../../commands/dataset/cross-relation-shared.js';export const datasetCrossRelationDelete={'service':a70_0x525321(0xeb),'command':'cross-relation-delete','description':a70_0x525321(0xe7),'risk':'high-risk-write','strictFlags':!![],'requiresCookieAuth':!![],'structuredErrors':!![],'flags':[CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG,CROSS_RELATION_DBLINK_FLAG,APPCODE_FLAG_OPTIONAL],'validate':async _0x23b94f=>validateCrossRelation(_0x23b94f,a70_0x525321(0xe4)),'dryRun':_0x6eb693=>previewCrossRelation(_0x6eb693,a70_0x525321(0xe4)),'execute':_0x595509=>executeCrossRelation(_0x595509,a70_0x525321(0xe4),deleteCrossDbRelation)};
1
+ const a70_0x17b786=a70_0x1d91;(function(_0x5c55c0,_0x1d7dc3){const _0x4d4a50=a70_0x1d91,_0x395ec6=_0x5c55c0();while(!![]){try{const _0x2639e4=-parseInt(_0x4d4a50(0xe2))/0x1*(-parseInt(_0x4d4a50(0xe0))/0x2)+-parseInt(_0x4d4a50(0xde))/0x3+-parseInt(_0x4d4a50(0xdc))/0x4*(parseInt(_0x4d4a50(0xdb))/0x5)+parseInt(_0x4d4a50(0xe6))/0x6*(parseInt(_0x4d4a50(0xd9))/0x7)+-parseInt(_0x4d4a50(0xe1))/0x8+-parseInt(_0x4d4a50(0xe4))/0x9+-parseInt(_0x4d4a50(0xe3))/0xa*(-parseInt(_0x4d4a50(0xda))/0xb);if(_0x2639e4===_0x1d7dc3)break;else _0x395ec6['push'](_0x395ec6['shift']());}catch(_0x36bce9){_0x395ec6['push'](_0x395ec6['shift']());}}}(a70_0x3b64,0x74e16));import{deleteCrossDbRelation}from'../../core/api-client.js';import{CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG,CROSS_RELATION_DBLINK_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a70_0x3b64(){const _0x2abdb4=['5520224GdqrgN','1zzkniL','60PoiWbB','3716973paSZjw','delete','48AAPIwi','698579cgmFJu','1290146aytuyo','3505EvQATj','608iMjScM','dataset','1432842HGeQoS','Delete\x20the\x20single\x20cross-database\x20relation\x20matching\x20a\x20source\x20dataset\x20and\x20field','1327682wuOMwy'];a70_0x3b64=function(){return _0x2abdb4;};return a70_0x3b64();}function a70_0x1d91(_0xf98c90,_0x418b67){_0xf98c90=_0xf98c90-0xd9;const _0x3b64c2=a70_0x3b64();let _0x1d9191=_0x3b64c2[_0xf98c90];return _0x1d9191;}import{executeCrossRelation,previewCrossRelation,validateCrossRelation}from'../../commands/dataset/cross-relation-shared.js';export const datasetCrossRelationDelete={'service':a70_0x17b786(0xdd),'command':'cross-relation-delete','description':a70_0x17b786(0xdf),'risk':'high-risk-write','strictFlags':!![],'requiresCookieAuth':!![],'structuredErrors':!![],'flags':[CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG,CROSS_RELATION_DBLINK_FLAG,APPCODE_FLAG_OPTIONAL],'validate':async _0x872d18=>validateCrossRelation(_0x872d18,a70_0x17b786(0xe5)),'dryRun':_0x5eccba=>previewCrossRelation(_0x5eccba,a70_0x17b786(0xe5)),'execute':_0xd41978=>executeCrossRelation(_0xd41978,'delete',deleteCrossDbRelation)};
@@ -1 +1 @@
1
- const a71_0x406f2e=a71_0xb2ce;(function(_0x42b29a,_0x3f2aaf){const _0x4dc513=a71_0xb2ce,_0x26c5bd=_0x42b29a();while(!![]){try{const _0x2f8b0e=-parseInt(_0x4dc513(0x100))/0x1*(parseInt(_0x4dc513(0x106))/0x2)+parseInt(_0x4dc513(0x101))/0x3+parseInt(_0x4dc513(0x10f))/0x4*(-parseInt(_0x4dc513(0x108))/0x5)+parseInt(_0x4dc513(0x10e))/0x6*(-parseInt(_0x4dc513(0x109))/0x7)+-parseInt(_0x4dc513(0x102))/0x8*(-parseInt(_0x4dc513(0x105))/0x9)+-parseInt(_0x4dc513(0x104))/0xa+-parseInt(_0x4dc513(0x10a))/0xb*(-parseInt(_0x4dc513(0x111))/0xc);if(_0x2f8b0e===_0x3f2aaf)break;else _0x26c5bd['push'](_0x26c5bd['shift']());}catch(_0x1465ec){_0x26c5bd['push'](_0x26c5bd['shift']());}}}(a71_0x49d5,0x43473));import{queryCrossDbRelations}from'../../core/api-client.js';function a71_0x49d5(){const _0x477007=['list','appCode','6DrFQlC','19888Lvyhgh','map','1623276zHxjlF','Cross-database\x20relations:\x20','length','26nHvhxM','926865zmMLix','639896dnTuLQ','\x20relation(s)','5064890NTYFCU','18NlntOZ','34446lGgdbz','List\x20outgoing\x20cross-database\x20relations\x20by\x20source\x20dataset\x20or\x20database\x20connection','10zKDonW','285355KBgcRH','66LJwzdq','read'];a71_0x49d5=function(){return _0x477007;};return a71_0x49d5();}import{APPCODE_FLAG_OPTIONAL,CROSS_RELATION_DBLINK_FLAG,CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG}from'../../commands/common/flags.js';function a71_0xb2ce(_0x399d78,_0x583b89){_0x399d78=_0x399d78-0xfe;const _0x49d54c=a71_0x49d5();let _0xb2cef4=_0x49d54c[_0x399d78];return _0xb2cef4;}import{projectCrossRelation,resolveCrossRelationQuery,validateCrossRelation}from'../../commands/dataset/cross-relation-shared.js';export const datasetCrossRelationList={'service':'dataset','command':'cross-relation-list','description':a71_0x406f2e(0x107),'risk':a71_0x406f2e(0x10b),'strictFlags':!![],'requiresCookieAuth':!![],'structuredErrors':!![],'flags':[{...CROSS_RELATION_FROM_DATASET_FLAG,'required':![]},CROSS_RELATION_DBLINK_FLAG,{...CROSS_RELATION_FROM_COLUMN_FLAG,'required':![]},APPCODE_FLAG_OPTIONAL],'validate':async _0x2e7faa=>validateCrossRelation(_0x2e7faa,a71_0x406f2e(0x10c)),async 'execute'(_0x5bd114){const _0xb6180f=a71_0x406f2e,_0x3c9bb6=await resolveCrossRelationQuery(_0x5bd114),_0x14ab7b=await queryCrossDbRelations(_0x3c9bb6);return{'ok':!![],'data':{'appCode':_0x5bd114[_0xb6180f(0x10d)],'selector':_0x3c9bb6,'total':_0x14ab7b['length'],'relations':_0x14ab7b[_0xb6180f(0x110)](projectCrossRelation)},'message':_0xb6180f(0xfe)+_0x14ab7b[_0xb6180f(0xff)]+_0xb6180f(0x103)};}};
1
+ const a71_0x11ca64=a71_0x5343;function a71_0x5343(_0x51f714,_0x1298fd){_0x51f714=_0x51f714-0x1e5;const _0x21dde1=a71_0x21dd();let _0x5343bb=_0x21dde1[_0x51f714];return _0x5343bb;}(function(_0x58ee61,_0xf1289b){const _0x8a6ec0=a71_0x5343,_0x3812e2=_0x58ee61();while(!![]){try{const _0x1c5260=parseInt(_0x8a6ec0(0x1ee))/0x1+parseInt(_0x8a6ec0(0x1f1))/0x2*(parseInt(_0x8a6ec0(0x1f3))/0x3)+parseInt(_0x8a6ec0(0x1f8))/0x4*(parseInt(_0x8a6ec0(0x1f4))/0x5)+-parseInt(_0x8a6ec0(0x1e7))/0x6*(parseInt(_0x8a6ec0(0x1f2))/0x7)+parseInt(_0x8a6ec0(0x1e8))/0x8+parseInt(_0x8a6ec0(0x1ec))/0x9*(parseInt(_0x8a6ec0(0x1e9))/0xa)+parseInt(_0x8a6ec0(0x1ed))/0xb*(-parseInt(_0x8a6ec0(0x1f6))/0xc);if(_0x1c5260===_0xf1289b)break;else _0x3812e2['push'](_0x3812e2['shift']());}catch(_0x3a0b14){_0x3812e2['push'](_0x3812e2['shift']());}}}(a71_0x21dd,0x408d2));import{queryCrossDbRelations}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,CROSS_RELATION_DBLINK_FLAG,CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG}from'../../commands/common/flags.js';import{projectCrossRelation,resolveCrossRelationQuery,validateCrossRelation}from'../../commands/dataset/cross-relation-shared.js';function a71_0x21dd(){const _0x229f66=['6951324EaOGlK','list','8tFJtsG','dataset','\x20relation(s)','6tBaHmu','162632RRepjC','376070XgExub','List\x20outgoing\x20cross-database\x20relations\x20by\x20source\x20dataset\x20or\x20database\x20connection','map','27pdELZz','11FrgRrB','98298MwEPgk','read','cross-relation-list','512972VpOQWs','1167117OsCAMQ','6wBIUVC','664975cNHXTD','length'];a71_0x21dd=function(){return _0x229f66;};return a71_0x21dd();}export const datasetCrossRelationList={'service':a71_0x11ca64(0x1e5),'command':a71_0x11ca64(0x1f0),'description':a71_0x11ca64(0x1ea),'risk':a71_0x11ca64(0x1ef),'strictFlags':!![],'requiresCookieAuth':!![],'structuredErrors':!![],'flags':[{...CROSS_RELATION_FROM_DATASET_FLAG,'required':![]},CROSS_RELATION_DBLINK_FLAG,{...CROSS_RELATION_FROM_COLUMN_FLAG,'required':![]},APPCODE_FLAG_OPTIONAL],'validate':async _0x12e79f=>validateCrossRelation(_0x12e79f,a71_0x11ca64(0x1f7)),async 'execute'(_0x4aea79){const _0x3f910b=a71_0x11ca64,_0x2550ec=await resolveCrossRelationQuery(_0x4aea79),_0x2f76f1=await queryCrossDbRelations(_0x2550ec);return{'ok':!![],'data':{'appCode':_0x4aea79['appCode'],'selector':_0x2550ec,'total':_0x2f76f1[_0x3f910b(0x1f5)],'relations':_0x2f76f1[_0x3f910b(0x1eb)](projectCrossRelation)},'message':'Cross-database\x20relations:\x20'+_0x2f76f1['length']+_0x3f910b(0x1e6)};}};
@@ -1 +1 @@
1
- const a72_0x24270a=a72_0x4aef;(function(_0x257457,_0x417433){const _0x52846d=a72_0x4aef,_0x1ae2a5=_0x257457();while(!![]){try{const _0x5abf65=parseInt(_0x52846d(0x1f7))/0x1*(parseInt(_0x52846d(0x216))/0x2)+-parseInt(_0x52846d(0x1fa))/0x3*(-parseInt(_0x52846d(0x1f0))/0x4)+parseInt(_0x52846d(0x232))/0x5+-parseInt(_0x52846d(0x221))/0x6*(parseInt(_0x52846d(0x1f3))/0x7)+-parseInt(_0x52846d(0x218))/0x8*(-parseInt(_0x52846d(0x1ed))/0x9)+parseInt(_0x52846d(0x1f8))/0xa+-parseInt(_0x52846d(0x234))/0xb;if(_0x5abf65===_0x417433)break;else _0x1ae2a5['push'](_0x1ae2a5['shift']());}catch(_0x378a43){_0x1ae2a5['push'](_0x1ae2a5['shift']());}}}(a72_0x5049,0x9f096));import{getDatasetDetail,queryCrossDbRelations}from'../../core/api-client.js';import{CROSS_DB_RELATION_PATHS}from'../../core/cross-db-relation.js';import{CliError,CliErrors}from'../../errors.js';import{CROSS_RELATION_CARDINALITY_FLAG}from'../../commands/common/flags.js';function required(_0x28307d,_0xd5ccf8){const _0x130796=a72_0x4aef,_0x36543b=_0x28307d['str'](_0xd5ccf8)[_0x130796(0x21e)]();if(!_0x36543b)throw CliErrors[_0x130796(0x1de)](_0xd5ccf8);return _0x36543b;}function explicitDblink(_0x484da9){const _0x12bdd9=a72_0x4aef,_0x53bd20=_0x484da9['flag']('from-dblink-id');if(_0x53bd20===undefined||_0x53bd20===null)return undefined;const _0x46e7b6=Number(_0x53bd20);if(!Number[_0x12bdd9(0x1e5)](_0x46e7b6)||_0x46e7b6<=0x0)throw CliErrors['validation'](_0x12bdd9(0x22c));return _0x46e7b6;}export function validateCrossRelation(_0x4feb67,_0x1bb472){const _0x956619=a72_0x4aef,_0x1dc70c=explicitDblink(_0x4feb67);if(_0x1bb472===_0x956619(0x1e6)){if(!_0x4feb67['str'](_0x956619(0x222))['trim']()&&_0x1dc70c===undefined)throw CliErrors['validation'](_0x956619(0x1fd));return;}required(_0x4feb67,_0x956619(0x222)),required(_0x4feb67,_0x956619(0x208));if(_0x1bb472!==_0x956619(0x20b)){required(_0x4feb67,'to-datasetcode'),required(_0x4feb67,_0x956619(0x214));const _0x5f0746=_0x4feb67[_0x956619(0x220)]('cardinality')[_0x956619(0x21e)]();if(_0x5f0746&&!CROSS_RELATION_CARDINALITY_FLAG[_0x956619(0x235)]['includes'](_0x5f0746))throw CliErrors[_0x956619(0x1f9)]('Invalid\x20--cardinality.');}}async function resolveEndpoint(_0x29c645){const _0x150dcc=a72_0x4aef,_0xb0cd05=await getDatasetDetail(_0x29c645),_0x2bd37b=_0xb0cd05?.['dataset']??{};if((_0xb0cd05?.[_0x150dcc(0x1e2)]??_0x2bd37b['sourceType'])!=='DB_TABLE')throw CliErrors[_0x150dcc(0x1f9)]('Dataset\x20'+_0x29c645+_0x150dcc(0x202));const _0x4aee0b=_0xb0cd05[_0x150dcc(0x205)]??_0xb0cd05[_0x150dcc(0x211)]??{};let _0x20c794=_0xb0cd05[_0x150dcc(0x20c)]??_0x2bd37b[_0x150dcc(0x20c)]??{};if(typeof _0x20c794===_0x150dcc(0x21c))try{_0x20c794=_0x20c794[_0x150dcc(0x21e)]()?JSON[_0x150dcc(0x22b)](_0x20c794):{};}catch{throw CliErrors['validation'](_0x150dcc(0x226)+_0x29c645+_0x150dcc(0x1ec));}const _0x175362=Number(_0x20c794?.[_0x150dcc(0x1f2)]?.[_0x150dcc(0x1f1)]??_0xb0cd05[_0x150dcc(0x1f2)]?.[_0x150dcc(0x1f1)]??_0x2bd37b[_0x150dcc(0x1f2)]?.[_0x150dcc(0x1f1)]??_0x4aee0b[_0x150dcc(0x1f1)]??_0x2bd37b[_0x150dcc(0x1f1)]??_0xb0cd05[_0x150dcc(0x1f1)]),_0x89590a=String(_0xb0cd05[_0x150dcc(0x20f)]??_0x2bd37b[_0x150dcc(0x20f)]??_0x4aee0b['tableName']??'')[_0x150dcc(0x21e)]();if(!Number[_0x150dcc(0x1e5)](_0x175362)||_0x175362<=0x0||!_0x89590a)throw CliErrors[_0x150dcc(0x1f9)](_0x150dcc(0x226)+_0x29c645+_0x150dcc(0x206));return{'datasetCode':_0x29c645,'dblinkId':_0x175362,'table':_0x89590a};}export async function resolveCrossRelationQuery(_0xe473e9){const _0x58ec6c=a72_0x4aef,_0x41f677=_0xe473e9[_0x58ec6c(0x220)](_0x58ec6c(0x222))[_0x58ec6c(0x21e)](),_0x59bb5e=explicitDblink(_0xe473e9),_0x3be152=_0x41f677?await resolveEndpoint(_0x41f677):undefined;if(_0x3be152&&_0x59bb5e!==undefined&&_0x3be152[_0x58ec6c(0x1f5)]!==_0x59bb5e)throw CliErrors[_0x58ec6c(0x1f9)](_0x58ec6c(0x20d));const _0x555372=_0x3be152?.[_0x58ec6c(0x1f5)]??_0x59bb5e;if(_0x555372===undefined)throw CliErrors['validation'](_0x58ec6c(0x1fd));return{'appCode':_0xe473e9[_0x58ec6c(0x233)],'fromDblinkId':_0x555372,..._0x41f677?{'fromDatasetCode':_0x41f677}:{},..._0xe473e9[_0x58ec6c(0x220)]('from-column')[_0x58ec6c(0x21e)]()?{'fromField':_0xe473e9[_0x58ec6c(0x220)](_0x58ec6c(0x208))[_0x58ec6c(0x21e)]()}:{}};}export function projectCrossRelation(_0x25d4f4){const _0x1d5a13=a72_0x4aef;return{'relationId':_0x25d4f4[_0x1d5a13(0x230)],'from':{'source':_0x1d5a13(0x212),'datasetCode':_0x25d4f4[_0x1d5a13(0x229)],'datasetName':_0x25d4f4[_0x1d5a13(0x1fe)],'dblinkId':_0x25d4f4['fromDblinkId'],'table':_0x25d4f4[_0x1d5a13(0x21d)],'field':_0x25d4f4[_0x1d5a13(0x217)]},'to':{'source':_0x1d5a13(0x212),'datasetCode':_0x25d4f4[_0x1d5a13(0x20e)],'datasetName':_0x25d4f4[_0x1d5a13(0x223)],'dblinkId':_0x25d4f4[_0x1d5a13(0x21a)],'table':_0x25d4f4[_0x1d5a13(0x1fc)],'field':_0x25d4f4[_0x1d5a13(0x1e9)],'labelField':_0x25d4f4[_0x1d5a13(0x201)]},'relation':{'cardinality':_0x25d4f4[_0x1d5a13(0x204)],'relationType':_0x25d4f4[_0x1d5a13(0x1ff)]}};}function ambiguity(_0x5ce933){const _0x39017c=a72_0x4aef,_0x223e1d=CliErrors[_0x39017c(0x1f9)]('Multiple\x20cross-database\x20relations\x20match\x20this\x20source\x20field;\x20update/delete\x20cannot\x20select\x20one\x20target.',_0x39017c(0x1e0));return Object[_0x39017c(0x1ee)](_0x223e1d,_0x39017c(0x22e),{'value':{'candidates':_0x5ce933[_0x39017c(0x210)](projectCrossRelation)}}),_0x223e1d;}function a72_0x5049(){const _0x497499=['str','114PUQxlt','from-datasetcode','toDatasetName','Would\x20','length','Dataset\x20','toLowerCase','expectedLabel','fromDatasetCode','The\x20target\x20display\x20field\x20is\x20inherited.\x20When\x20changing\x20the\x20target\x20dataset,\x20provide\x20--to-label-column\x20explicitly.','parse','--from-dblink-id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','Cross-database\x20relation\x20already\x20exists\x20for\x20these\x20source\x20and\x20target\x20endpoints.','data','from','relationId','POST','2026370itUHDN','appCode','25650537AfaOxv','enum','\x20verified.','flagMissing','Cross-database\x20relations\x20require\x20different\x20source\x20and\x20target\x20database\x20connections.','Run\x20dataset\x20cross-relation-list\x20to\x20inspect\x20the\x20candidates.\x20This\x20command\x20accepts\x20only\x20a\x20source\x20dataset\x20and\x20field.','includes','source','\x20write\x20was\x20not\x20verified.','label_inherited','isSafeInteger','list','The\x20write\x20was\x20accepted,\x20but\x20current\x20state\x20could\x20not\x20be\x20confirmed.\x20Run\x20dataset\x20cross-relation-list\x20before\x20attempting\x20another\x20write.','expectedCardinality','toField','before','catch','\x20has\x20invalid\x20storage\x20configuration.','9ZjmOZQ','defineProperty','filter','24SeVgsE','dbId','storageProfile','416318MAPWmA','Cross-database\x20relation\x20','dblinkId','\x20a\x20cross-database\x20relation\x20for\x20','884267PBpiQM','5968420vRjIkC','validation','613641dfGknV','table','toTableName','Provide\x20--from-datasetcode\x20or\x20--from-dblink-id.','fromDatasetName','relationType','multiple\x20cross-database\x20relations\x20matched','refTableLabelName','\x20must\x20be\x20a\x20DB_TABLE\x20dataset.','some','cardinality','dbtableConfig','\x20is\x20missing\x20its\x20database\x20connection\x20or\x20physical\x20table\x20name.','datasetCode','from-column','unconfirmed','to-label-column','delete','extend','--from-dblink-id\x20does\x20not\x20match\x20the\x20source\x20dataset\x20connection.','toDatasetCode','tableName','map','dbtable','DB_TABLE','create','to-column','query','2kvaOtp','fromField','7996976MjzZJP','update','toDblinkId','body','string','fromTableName','trim','apiError'];a72_0x5049=function(){return _0x497499;};return a72_0x5049();}function a72_0x4aef(_0x358b23,_0x360402){_0x358b23=_0x358b23-0x1de;const _0x50499c=a72_0x5049();let _0x4aef57=_0x50499c[_0x358b23];return _0x4aef57;}const sameName=(_0x390321,_0x54b8b0)=>_0x390321[a72_0x24270a(0x227)]()===_0x54b8b0[a72_0x24270a(0x227)]();function matchesEndpoint(_0x307098,_0x500772,_0x152660,_0x147277,_0x1fa4ce){const _0x1711e7=a72_0x24270a;return _0x307098['fromDblinkId']===_0x500772[_0x1711e7(0x1f5)]&&sameName(_0x307098[_0x1711e7(0x21d)],_0x500772['table'])&&sameName(_0x307098[_0x1711e7(0x217)],_0x152660)&&_0x307098[_0x1711e7(0x21a)]===_0x147277[_0x1711e7(0x1f5)]&&sameName(_0x307098['toTableName'],_0x147277[_0x1711e7(0x1fb)])&&sameName(_0x307098[_0x1711e7(0x1e9)],_0x1fa4ce);}export async function prepareCrossRelation(_0x400292,_0x2e7b1e){const _0x151c54=a72_0x24270a,_0xbfc6b0=await resolveEndpoint(required(_0x400292,_0x151c54(0x222))),_0x1fd035=explicitDblink(_0x400292);if(_0x1fd035!==undefined&&_0xbfc6b0[_0x151c54(0x1f5)]!==_0x1fd035)throw CliErrors[_0x151c54(0x1f9)](_0x151c54(0x20d));const _0x895d13={'appCode':_0x400292[_0x151c54(0x233)],'fromDatasetCode':_0xbfc6b0[_0x151c54(0x207)],'fromField':required(_0x400292,_0x151c54(0x208)),..._0x1fd035!==undefined?{'fromDblinkId':_0x1fd035}:{}},_0x28b69a={'appCode':_0x400292[_0x151c54(0x233)],'fromDblinkId':_0xbfc6b0[_0x151c54(0x1f5)],'fromDatasetCode':_0xbfc6b0[_0x151c54(0x207)],'fromField':_0x895d13[_0x151c54(0x217)]},_0x2e840e=await queryCrossDbRelations(_0x28b69a);let _0x301679=null;if(_0x2e7b1e!==_0x151c54(0x213)){if(_0x2e840e[_0x151c54(0x225)]>0x1)throw ambiguity(_0x2e840e);_0x301679=_0x2e840e[0x0]??null;if(!_0x301679)throw CliErrors[_0x151c54(0x1f9)]('Cross-database\x20relation\x20not\x20found\x20for\x20this\x20source\x20dataset\x20and\x20field.');}if(_0x2e7b1e===_0x151c54(0x20b))return{'operation':_0x2e7b1e,'from':_0xbfc6b0,'query':_0x28b69a,'body':_0x895d13,'before':_0x301679};const _0x1ae1fd=await resolveEndpoint(required(_0x400292,'to-datasetcode'));if(_0xbfc6b0[_0x151c54(0x1f5)]===_0x1ae1fd[_0x151c54(0x1f5)])throw CliErrors[_0x151c54(0x1f9)](_0x151c54(0x1df));const _0x5f01f7=_0x400292['str'](_0x151c54(0x20a))[_0x151c54(0x21e)](),_0x129213=_0x400292[_0x151c54(0x220)](_0x151c54(0x204))[_0x151c54(0x21e)](),_0xcd5c85={..._0x895d13,'toDatasetCode':_0x1ae1fd[_0x151c54(0x207)],'toField':required(_0x400292,_0x151c54(0x214)),..._0x5f01f7?{'refTableLabelName':_0x5f01f7}:{},..._0x129213?{'cardinality':_0x129213}:{}};if(_0x2e840e[_0x151c54(0x203)](_0x4b139c=>_0x4b139c[_0x151c54(0x230)]!==_0x301679?.[_0x151c54(0x230)]&&matchesEndpoint(_0x4b139c,_0xbfc6b0,_0xcd5c85[_0x151c54(0x217)],_0x1ae1fd,_0xcd5c85[_0x151c54(0x1e9)])))throw CliErrors[_0x151c54(0x1f9)](_0x151c54(0x22d));return{'operation':_0x2e7b1e,'from':_0xbfc6b0,'to':_0x1ae1fd,'query':_0x28b69a,'body':_0xcd5c85,'before':_0x301679,'expectedLabel':_0x5f01f7||_0x301679?.[_0x151c54(0x201)]||_0xcd5c85[_0x151c54(0x1e9)],'expectedCardinality':_0x129213||_0x301679?.['cardinality']||null};}function mutationData(_0x43ef9a,_0x42d323,_0x319729){const _0x10957c=a72_0x24270a,{operation:_0x2ed4df,body:_0x4c6630,before:_0xf9dcc2}=_0x43ef9a;return{'operation':_0x2ed4df,'selector':{'appCode':_0x4c6630['appCode'],'from':{'datasetCode':_0x4c6630[_0x10957c(0x229)],'field':_0x4c6630[_0x10957c(0x217)],'dblinkId':_0x43ef9a[_0x10957c(0x22f)][_0x10957c(0x1f5)]}},'before':_0xf9dcc2?projectCrossRelation(_0xf9dcc2):null,'after':_0x319729,'dryRun':_0x42d323,'backend':{'method':_0x10957c(0x231),'path':CROSS_DB_RELATION_PATHS[_0x2ed4df]},'warnings':_0x2ed4df===_0x10957c(0x219)&&!_0x4c6630[_0x10957c(0x201)]?[{'code':_0x10957c(0x1e4),'message':_0x10957c(0x22a)}]:[]};}export async function previewCrossRelation(_0xb7c23e,_0x392067){const _0x1e6f11=a72_0x24270a,_0x247af2=await prepareCrossRelation(_0xb7c23e,_0x392067),_0xfbe61f=_0x247af2['body'],_0x267377=_0x392067===_0x1e6f11(0x20b)?null:{..._0x247af2[_0x1e6f11(0x1ea)]?{'relationId':_0x247af2[_0x1e6f11(0x1ea)][_0x1e6f11(0x230)]}:{},'from':{'datasetCode':_0x247af2['from'][_0x1e6f11(0x207)],'dblinkId':_0x247af2['from'][_0x1e6f11(0x1f5)],'table':_0x247af2[_0x1e6f11(0x22f)][_0x1e6f11(0x1fb)],'field':_0xfbe61f[_0x1e6f11(0x217)]},'to':{'datasetCode':_0x247af2['to'][_0x1e6f11(0x207)],'dblinkId':_0x247af2['to'][_0x1e6f11(0x1f5)],'table':_0x247af2['to'][_0x1e6f11(0x1fb)],'field':_0xfbe61f[_0x1e6f11(0x1e9)],'labelField':_0x247af2[_0x1e6f11(0x228)]},'relation':{'cardinality':_0x247af2[_0x1e6f11(0x1e8)],'relationType':0x2}};return{...mutationData(_0x247af2,!![],null),'after':_0x267377,'method':_0x1e6f11(0x231),'url':CROSS_DB_RELATION_PATHS[_0x392067],'body':_0x247af2[_0x1e6f11(0x21b)],'description':_0x1e6f11(0x224)+_0x392067+_0x1e6f11(0x1f6)+_0xfbe61f[_0x1e6f11(0x229)]+'.'+_0xfbe61f['fromField']};}export async function executeCrossRelation(_0x5f5b07,_0x32eeeb,_0x12e756){const _0x3f2f6c=a72_0x24270a,_0x3593df=await prepareCrossRelation(_0x5f5b07,_0x32eeeb);try{await _0x12e756(_0x3593df['body']);}catch(_0x1297db){if(_0x1297db instanceof CliError&&_0x1297db['message'][_0x3f2f6c(0x1e1)](_0x3f2f6c(0x200))){const _0x59315e=await queryCrossDbRelations(_0x3593df[_0x3f2f6c(0x215)])[_0x3f2f6c(0x1eb)](()=>[]);throw ambiguity(_0x59315e);}throw _0x1297db;}let _0x315865=[],_0x42defd,_0x1c3699=![];try{_0x315865=await queryCrossDbRelations(_0x3593df['query']);if(_0x32eeeb===_0x3f2f6c(0x20b))_0x1c3699=!_0x315865[_0x3f2f6c(0x203)](_0x497955=>_0x497955[_0x3f2f6c(0x230)]===_0x3593df[_0x3f2f6c(0x1ea)][_0x3f2f6c(0x230)]);else{const _0x9f55b9=_0x3593df[_0x3f2f6c(0x21b)],_0x535588=_0x315865[_0x3f2f6c(0x1ef)](_0xf1ca17=>matchesEndpoint(_0xf1ca17,_0x3593df[_0x3f2f6c(0x22f)],_0x9f55b9[_0x3f2f6c(0x217)],_0x3593df['to'],_0x9f55b9[_0x3f2f6c(0x1e9)])&&(_0x32eeeb===_0x3f2f6c(0x213)||_0xf1ca17[_0x3f2f6c(0x230)]===_0x3593df[_0x3f2f6c(0x1ea)][_0x3f2f6c(0x230)]));_0x42defd=_0x535588[_0x3f2f6c(0x225)]===0x1?_0x535588[0x0]:undefined,_0x1c3699=!!_0x42defd&&_0x42defd[_0x3f2f6c(0x201)]===_0x3593df[_0x3f2f6c(0x228)]&&_0x42defd[_0x3f2f6c(0x204)]===_0x3593df[_0x3f2f6c(0x1e8)]&&_0x42defd['relationType']===0x2;}}catch{}const _0x5f2afb={...mutationData(_0x3593df,![],_0x42defd?projectCrossRelation(_0x42defd):null),'verification':{'status':_0x1c3699?'matched':_0x3f2f6c(0x209),'verified':_0x1c3699}};if(!_0x1c3699){const _0x35517b=CliErrors[_0x3f2f6c(0x21f)](_0x3f2f6c(0x1f4)+_0x32eeeb+_0x3f2f6c(0x1e3),_0x3f2f6c(0x1e7));Object['defineProperty'](_0x35517b,_0x3f2f6c(0x22e),{'value':{..._0x5f2afb,'candidates':_0x315865[_0x3f2f6c(0x210)](projectCrossRelation)}});throw _0x35517b;}return{'ok':!![],'data':_0x5f2afb,'message':'Cross-database\x20relation\x20'+_0x32eeeb+_0x3f2f6c(0x236)};}
1
+ const a72_0x858e2a=a72_0x387a;(function(_0x5bf740,_0x443025){const _0x3e7b9c=a72_0x387a,_0x563979=_0x5bf740();while(!![]){try{const _0xfcb875=-parseInt(_0x3e7b9c(0xa4))/0x1+-parseInt(_0x3e7b9c(0x9b))/0x2+-parseInt(_0x3e7b9c(0xac))/0x3*(parseInt(_0x3e7b9c(0xc8))/0x4)+-parseInt(_0x3e7b9c(0x9e))/0x5*(parseInt(_0x3e7b9c(0xb4))/0x6)+-parseInt(_0x3e7b9c(0x7d))/0x7*(parseInt(_0x3e7b9c(0x74))/0x8)+-parseInt(_0x3e7b9c(0x7e))/0x9+parseInt(_0x3e7b9c(0xb0))/0xa*(parseInt(_0x3e7b9c(0xa8))/0xb);if(_0xfcb875===_0x443025)break;else _0x563979['push'](_0x563979['shift']());}catch(_0x61aa64){_0x563979['push'](_0x563979['shift']());}}}(a72_0x2169,0xf16bb));import{getDatasetDetail,queryCrossDbRelations}from'../../core/api-client.js';import{CROSS_DB_RELATION_PATHS}from'../../core/cross-db-relation.js';import{CliError,CliErrors}from'../../errors.js';import{CROSS_RELATION_CARDINALITY_FLAG}from'../../commands/common/flags.js';function required(_0x38ce46,_0x16125e){const _0x98f6c6=a72_0x387a,_0x5d2c15=_0x38ce46[_0x98f6c6(0x8b)](_0x16125e)['trim']();if(!_0x5d2c15)throw CliErrors['flagMissing'](_0x16125e);return _0x5d2c15;}function explicitDblink(_0x36cb73){const _0x3e98e8=a72_0x387a,_0xf6696a=_0x36cb73[_0x3e98e8(0xb5)](_0x3e98e8(0x91));if(_0xf6696a===undefined||_0xf6696a===null)return undefined;const _0xecfdc=Number(_0xf6696a);if(!Number[_0x3e98e8(0xb3)](_0xecfdc)||_0xecfdc<=0x0)throw CliErrors['validation'](_0x3e98e8(0xa9));return _0xecfdc;}export function validateCrossRelation(_0x52e353,_0xe4f38e){const _0x14f468=a72_0x387a,_0x5cf156=explicitDblink(_0x52e353);if(_0xe4f38e===_0x14f468(0xba)){if(!_0x52e353[_0x14f468(0x8b)](_0x14f468(0x89))[_0x14f468(0xbd)]()&&_0x5cf156===undefined)throw CliErrors[_0x14f468(0xa7)](_0x14f468(0x98));return;}required(_0x52e353,_0x14f468(0x89)),required(_0x52e353,'from-column');if(_0xe4f38e!=='delete'){required(_0x52e353,_0x14f468(0xb1)),required(_0x52e353,_0x14f468(0xa5));const _0x42d5cc=_0x52e353[_0x14f468(0x8b)]('cardinality')[_0x14f468(0xbd)]();if(_0x42d5cc&&!CROSS_RELATION_CARDINALITY_FLAG[_0x14f468(0x84)][_0x14f468(0xae)](_0x42d5cc))throw CliErrors[_0x14f468(0xa7)](_0x14f468(0xb8));}}function a72_0x387a(_0x1c31a2,_0x241b01){_0x1c31a2=_0x1c31a2-0x71;const _0x2169d1=a72_0x2169();let _0x387a53=_0x2169d1[_0x1c31a2];return _0x387a53;}async function resolveEndpoint(_0x2daa02){const _0x4708f8=a72_0x387a,_0x40bddc=await getDatasetDetail(_0x2daa02),_0x5f57f4=_0x40bddc?.[_0x4708f8(0x7b)]??{};if((_0x40bddc?.[_0x4708f8(0x77)]??_0x5f57f4[_0x4708f8(0xb7)])!==_0x4708f8(0x85))throw CliErrors[_0x4708f8(0xa7)]('Dataset\x20'+_0x2daa02+_0x4708f8(0xaa));const _0x45ac8f=_0x40bddc[_0x4708f8(0x71)]??_0x40bddc[_0x4708f8(0xbb)]??{};let _0x32e683=_0x40bddc[_0x4708f8(0x87)]??_0x5f57f4[_0x4708f8(0x87)]??{};if(typeof _0x32e683===_0x4708f8(0x9a))try{_0x32e683=_0x32e683[_0x4708f8(0xbd)]()?JSON[_0x4708f8(0x8f)](_0x32e683):{};}catch{throw CliErrors[_0x4708f8(0xa7)]('Dataset\x20'+_0x2daa02+_0x4708f8(0x8d));}const _0x23082a=Number(_0x32e683?.[_0x4708f8(0x9f)]?.[_0x4708f8(0x7f)]??_0x40bddc[_0x4708f8(0x9f)]?.[_0x4708f8(0x7f)]??_0x5f57f4[_0x4708f8(0x9f)]?.[_0x4708f8(0x7f)]??_0x45ac8f[_0x4708f8(0x7f)]??_0x5f57f4['dbId']??_0x40bddc['dbId']),_0x3b0d27=String(_0x40bddc[_0x4708f8(0xbf)]??_0x5f57f4[_0x4708f8(0xbf)]??_0x45ac8f[_0x4708f8(0xbf)]??'')[_0x4708f8(0xbd)]();if(!Number[_0x4708f8(0xb3)](_0x23082a)||_0x23082a<=0x0||!_0x3b0d27)throw CliErrors[_0x4708f8(0xa7)](_0x4708f8(0xa3)+_0x2daa02+_0x4708f8(0xc0));return{'datasetCode':_0x2daa02,'dblinkId':_0x23082a,'table':_0x3b0d27};}export async function resolveCrossRelationQuery(_0x373cf1){const _0x4fda67=a72_0x387a,_0x5c6bd4=_0x373cf1[_0x4fda67(0x8b)](_0x4fda67(0x89))[_0x4fda67(0xbd)](),_0x57ffcb=explicitDblink(_0x373cf1),_0x563d63=_0x5c6bd4?await resolveEndpoint(_0x5c6bd4):undefined;if(_0x563d63&&_0x57ffcb!==undefined&&_0x563d63[_0x4fda67(0xb6)]!==_0x57ffcb)throw CliErrors[_0x4fda67(0xa7)]('--from-dblink-id\x20does\x20not\x20match\x20the\x20source\x20dataset\x20connection.');const _0x2ee215=_0x563d63?.[_0x4fda67(0xb6)]??_0x57ffcb;if(_0x2ee215===undefined)throw CliErrors[_0x4fda67(0xa7)]('Provide\x20--from-datasetcode\x20or\x20--from-dblink-id.');return{'appCode':_0x373cf1[_0x4fda67(0x95)],'fromDblinkId':_0x2ee215,..._0x5c6bd4?{'fromDatasetCode':_0x5c6bd4}:{},..._0x373cf1['str']('from-column')['trim']()?{'fromField':_0x373cf1[_0x4fda67(0x8b)](_0x4fda67(0x7c))['trim']()}:{}};}export function projectCrossRelation(_0x521a0c){const _0x286b30=a72_0x387a;return{'relationId':_0x521a0c['relationId'],'from':{'source':_0x286b30(0x85),'datasetCode':_0x521a0c[_0x286b30(0xc4)],'datasetName':_0x521a0c[_0x286b30(0xbc)],'dblinkId':_0x521a0c[_0x286b30(0x86)],'table':_0x521a0c[_0x286b30(0x81)],'field':_0x521a0c[_0x286b30(0x73)]},'to':{'source':_0x286b30(0x85),'datasetCode':_0x521a0c[_0x286b30(0x7a)],'datasetName':_0x521a0c['toDatasetName'],'dblinkId':_0x521a0c[_0x286b30(0xc7)],'table':_0x521a0c[_0x286b30(0x92)],'field':_0x521a0c[_0x286b30(0x80)],'labelField':_0x521a0c[_0x286b30(0xa0)]},'relation':{'cardinality':_0x521a0c[_0x286b30(0xad)],'relationType':_0x521a0c[_0x286b30(0x82)]}};}function ambiguity(_0x42f4d2){const _0x3a3914=a72_0x387a,_0x1e3bc1=CliErrors[_0x3a3914(0xa7)](_0x3a3914(0x78),'Run\x20dataset\x20cross-relation-list\x20to\x20inspect\x20the\x20candidates.\x20This\x20command\x20accepts\x20only\x20a\x20source\x20dataset\x20and\x20field.');return Object[_0x3a3914(0xa2)](_0x1e3bc1,'data',{'value':{'candidates':_0x42f4d2[_0x3a3914(0xa6)](projectCrossRelation)}}),_0x1e3bc1;}const sameName=(_0x36f50a,_0xbc30fd)=>_0x36f50a[a72_0x858e2a(0xb2)]()===_0xbc30fd[a72_0x858e2a(0xb2)]();function matchesEndpoint(_0x3c1ac0,_0x54da0d,_0x1dfe8d,_0x36651e,_0x2c842c){const _0x2b65cb=a72_0x858e2a;return _0x3c1ac0[_0x2b65cb(0x86)]===_0x54da0d[_0x2b65cb(0xb6)]&&sameName(_0x3c1ac0['fromTableName'],_0x54da0d['table'])&&sameName(_0x3c1ac0[_0x2b65cb(0x73)],_0x1dfe8d)&&_0x3c1ac0[_0x2b65cb(0xc7)]===_0x36651e[_0x2b65cb(0xb6)]&&sameName(_0x3c1ac0[_0x2b65cb(0x92)],_0x36651e[_0x2b65cb(0x76)])&&sameName(_0x3c1ac0[_0x2b65cb(0x80)],_0x2c842c);}export async function prepareCrossRelation(_0x26109b,_0x1445c4){const _0x2a27a5=a72_0x858e2a,_0x369c57=await resolveEndpoint(required(_0x26109b,_0x2a27a5(0x89))),_0x5ee634=explicitDblink(_0x26109b);if(_0x5ee634!==undefined&&_0x369c57['dblinkId']!==_0x5ee634)throw CliErrors[_0x2a27a5(0xa7)]('--from-dblink-id\x20does\x20not\x20match\x20the\x20source\x20dataset\x20connection.');const _0x27b9b8={'appCode':_0x26109b[_0x2a27a5(0x95)],'fromDatasetCode':_0x369c57[_0x2a27a5(0x83)],'fromField':required(_0x26109b,_0x2a27a5(0x7c)),..._0x5ee634!==undefined?{'fromDblinkId':_0x5ee634}:{}},_0x6e2fc1={'appCode':_0x26109b['appCode'],'fromDblinkId':_0x369c57[_0x2a27a5(0xb6)],'fromDatasetCode':_0x369c57[_0x2a27a5(0x83)],'fromField':_0x27b9b8['fromField']},_0x12cc80=await queryCrossDbRelations(_0x6e2fc1);let _0x94ee6c=null;if(_0x1445c4!=='create'){if(_0x12cc80[_0x2a27a5(0xc2)]>0x1)throw ambiguity(_0x12cc80);_0x94ee6c=_0x12cc80[0x0]??null;if(!_0x94ee6c)throw CliErrors[_0x2a27a5(0xa7)](_0x2a27a5(0xc1));}if(_0x1445c4===_0x2a27a5(0xab))return{'operation':_0x1445c4,'from':_0x369c57,'query':_0x6e2fc1,'body':_0x27b9b8,'before':_0x94ee6c};const _0x18ee1c=await resolveEndpoint(required(_0x26109b,'to-datasetcode'));if(_0x369c57[_0x2a27a5(0xb6)]===_0x18ee1c[_0x2a27a5(0xb6)])throw CliErrors['validation'](_0x2a27a5(0xc6));const _0x7a335e=_0x26109b[_0x2a27a5(0x8b)](_0x2a27a5(0x99))[_0x2a27a5(0xbd)](),_0x213fc9=_0x26109b['str'](_0x2a27a5(0xad))[_0x2a27a5(0xbd)](),_0x981d16={..._0x27b9b8,'toDatasetCode':_0x18ee1c[_0x2a27a5(0x83)],'toField':required(_0x26109b,_0x2a27a5(0xa5)),..._0x7a335e?{'refTableLabelName':_0x7a335e}:{},..._0x213fc9?{'cardinality':_0x213fc9}:{}};if(_0x12cc80['some'](_0x5e3557=>_0x5e3557['relationId']!==_0x94ee6c?.[_0x2a27a5(0x9d)]&&matchesEndpoint(_0x5e3557,_0x369c57,_0x981d16[_0x2a27a5(0x73)],_0x18ee1c,_0x981d16[_0x2a27a5(0x80)])))throw CliErrors[_0x2a27a5(0xa7)](_0x2a27a5(0x90));return{'operation':_0x1445c4,'from':_0x369c57,'to':_0x18ee1c,'query':_0x6e2fc1,'body':_0x981d16,'before':_0x94ee6c,'expectedLabel':_0x7a335e||_0x94ee6c?.['refTableLabelName']||_0x981d16[_0x2a27a5(0x80)],'expectedCardinality':_0x213fc9||_0x94ee6c?.[_0x2a27a5(0xad)]||null};}function mutationData(_0x4b1630,_0x558d03,_0x479b21){const _0x2ee88d=a72_0x858e2a,{operation:_0x4be6cd,body:_0x1dc5ed,before:_0x5bc66d}=_0x4b1630;return{'operation':_0x4be6cd,'selector':{'appCode':_0x1dc5ed[_0x2ee88d(0x95)],'from':{'datasetCode':_0x1dc5ed['fromDatasetCode'],'field':_0x1dc5ed[_0x2ee88d(0x73)],'dblinkId':_0x4b1630[_0x2ee88d(0xa1)][_0x2ee88d(0xb6)]}},'before':_0x5bc66d?projectCrossRelation(_0x5bc66d):null,'after':_0x479b21,'dryRun':_0x558d03,'backend':{'method':_0x2ee88d(0x75),'path':CROSS_DB_RELATION_PATHS[_0x4be6cd]},'warnings':_0x4be6cd==='update'&&!_0x1dc5ed['refTableLabelName']?[{'code':_0x2ee88d(0x97),'message':_0x2ee88d(0x8a)}]:[]};}export async function previewCrossRelation(_0x27fd72,_0x304632){const _0x1c9546=a72_0x858e2a,_0x3c7ee5=await prepareCrossRelation(_0x27fd72,_0x304632),_0x3e05e1=_0x3c7ee5[_0x1c9546(0xc3)],_0x19c8c2=_0x304632===_0x1c9546(0xab)?null:{..._0x3c7ee5[_0x1c9546(0xbe)]?{'relationId':_0x3c7ee5['before'][_0x1c9546(0x9d)]}:{},'from':{'datasetCode':_0x3c7ee5[_0x1c9546(0xa1)][_0x1c9546(0x83)],'dblinkId':_0x3c7ee5['from']['dblinkId'],'table':_0x3c7ee5[_0x1c9546(0xa1)][_0x1c9546(0x76)],'field':_0x3e05e1[_0x1c9546(0x73)]},'to':{'datasetCode':_0x3c7ee5['to'][_0x1c9546(0x83)],'dblinkId':_0x3c7ee5['to'][_0x1c9546(0xb6)],'table':_0x3c7ee5['to'][_0x1c9546(0x76)],'field':_0x3e05e1[_0x1c9546(0x80)],'labelField':_0x3c7ee5[_0x1c9546(0x9c)]},'relation':{'cardinality':_0x3c7ee5[_0x1c9546(0xaf)],'relationType':0x2}};return{...mutationData(_0x3c7ee5,!![],null),'after':_0x19c8c2,'method':_0x1c9546(0x75),'url':CROSS_DB_RELATION_PATHS[_0x304632],'body':_0x3c7ee5[_0x1c9546(0xc3)],'description':'Would\x20'+_0x304632+_0x1c9546(0x96)+_0x3e05e1[_0x1c9546(0xc4)]+'.'+_0x3e05e1['fromField']};}function a72_0x2169(){const _0x42797a=['apiError','parse','Cross-database\x20relation\x20already\x20exists\x20for\x20these\x20source\x20and\x20target\x20endpoints.','from-dblink-id','toTableName','The\x20write\x20was\x20accepted,\x20but\x20current\x20state\x20could\x20not\x20be\x20confirmed.\x20Run\x20dataset\x20cross-relation-list\x20before\x20attempting\x20another\x20write.','filter','appCode','\x20a\x20cross-database\x20relation\x20for\x20','label_inherited','Provide\x20--from-datasetcode\x20or\x20--from-dblink-id.','to-label-column','string','1055912DGKJUI','expectedLabel','relationId','265RNJRnq','storageProfile','refTableLabelName','from','defineProperty','Dataset\x20','1629635rHbKoD','to-column','map','validation','86076947nEHjyj','--from-dblink-id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','\x20must\x20be\x20a\x20DB_TABLE\x20dataset.','delete','42603cJDxUA','cardinality','includes','expectedCardinality','10ghrDxA','to-datasetcode','toLowerCase','isSafeInteger','117984KDhERn','flag','dblinkId','sourceType','Invalid\x20--cardinality.','some','list','dbtable','fromDatasetName','trim','before','tableName','\x20is\x20missing\x20its\x20database\x20connection\x20or\x20physical\x20table\x20name.','Cross-database\x20relation\x20not\x20found\x20for\x20this\x20source\x20dataset\x20and\x20field.','length','body','fromDatasetCode','\x20verified.','Cross-database\x20relations\x20require\x20different\x20source\x20and\x20target\x20database\x20connections.','toDblinkId','232jtlzZv','dbtableConfig','matched','fromField','11019568jKIqeJ','POST','table','source','Multiple\x20cross-database\x20relations\x20match\x20this\x20source\x20field;\x20update/delete\x20cannot\x20select\x20one\x20target.','multiple\x20cross-database\x20relations\x20matched','toDatasetCode','dataset','from-column','7uEMjKh','12918879ejRyTu','dbId','toField','fromTableName','relationType','datasetCode','enum','DB_TABLE','fromDblinkId','extend','data','from-datasetcode','The\x20target\x20display\x20field\x20is\x20inherited.\x20When\x20changing\x20the\x20target\x20dataset,\x20provide\x20--to-label-column\x20explicitly.','str','message','\x20has\x20invalid\x20storage\x20configuration.'];a72_0x2169=function(){return _0x42797a;};return a72_0x2169();}export async function executeCrossRelation(_0x327718,_0x43a095,_0x16d0a4){const _0xb8ddba=a72_0x858e2a,_0x3d8947=await prepareCrossRelation(_0x327718,_0x43a095);try{await _0x16d0a4(_0x3d8947[_0xb8ddba(0xc3)]);}catch(_0x2ae612){if(_0x2ae612 instanceof CliError&&_0x2ae612[_0xb8ddba(0x8c)][_0xb8ddba(0xae)](_0xb8ddba(0x79))){const _0x3b31b1=await queryCrossDbRelations(_0x3d8947['query'])['catch'](()=>[]);throw ambiguity(_0x3b31b1);}throw _0x2ae612;}let _0x1d3cc2=[],_0x546509,_0x31eb2b=![];try{_0x1d3cc2=await queryCrossDbRelations(_0x3d8947['query']);if(_0x43a095==='delete')_0x31eb2b=!_0x1d3cc2[_0xb8ddba(0xb9)](_0x50cbb7=>_0x50cbb7[_0xb8ddba(0x9d)]===_0x3d8947[_0xb8ddba(0xbe)][_0xb8ddba(0x9d)]);else{const _0x1c559d=_0x3d8947[_0xb8ddba(0xc3)],_0x35c26a=_0x1d3cc2[_0xb8ddba(0x94)](_0x178889=>matchesEndpoint(_0x178889,_0x3d8947[_0xb8ddba(0xa1)],_0x1c559d[_0xb8ddba(0x73)],_0x3d8947['to'],_0x1c559d[_0xb8ddba(0x80)])&&(_0x43a095==='create'||_0x178889[_0xb8ddba(0x9d)]===_0x3d8947['before'][_0xb8ddba(0x9d)]));_0x546509=_0x35c26a[_0xb8ddba(0xc2)]===0x1?_0x35c26a[0x0]:undefined,_0x31eb2b=!!_0x546509&&_0x546509['refTableLabelName']===_0x3d8947[_0xb8ddba(0x9c)]&&_0x546509[_0xb8ddba(0xad)]===_0x3d8947[_0xb8ddba(0xaf)]&&_0x546509['relationType']===0x2;}}catch{}const _0x3476d0={...mutationData(_0x3d8947,![],_0x546509?projectCrossRelation(_0x546509):null),'verification':{'status':_0x31eb2b?_0xb8ddba(0x72):'unconfirmed','verified':_0x31eb2b}};if(!_0x31eb2b){const _0x2eafc6=CliErrors[_0xb8ddba(0x8e)]('Cross-database\x20relation\x20'+_0x43a095+'\x20write\x20was\x20not\x20verified.',_0xb8ddba(0x93));Object[_0xb8ddba(0xa2)](_0x2eafc6,_0xb8ddba(0x88),{'value':{..._0x3476d0,'candidates':_0x1d3cc2[_0xb8ddba(0xa6)](projectCrossRelation)}});throw _0x2eafc6;}return{'ok':!![],'data':_0x3476d0,'message':'Cross-database\x20relation\x20'+_0x43a095+_0xb8ddba(0xc5)};}
@@ -1 +1 @@
1
- const a73_0x2f8b03=a73_0x418f;(function(_0x20b699,_0x5b6b21){const _0x3a8af6=a73_0x418f,_0x55215e=_0x20b699();while(!![]){try{const _0x7370c4=parseInt(_0x3a8af6(0x1f9))/0x1*(parseInt(_0x3a8af6(0x1f1))/0x2)+parseInt(_0x3a8af6(0x1ef))/0x3*(-parseInt(_0x3a8af6(0x1eb))/0x4)+-parseInt(_0x3a8af6(0x1f8))/0x5*(-parseInt(_0x3a8af6(0x1f3))/0x6)+-parseInt(_0x3a8af6(0x1ee))/0x7*(parseInt(_0x3a8af6(0x1f6))/0x8)+parseInt(_0x3a8af6(0x1f7))/0x9*(-parseInt(_0x3a8af6(0x1f0))/0xa)+-parseInt(_0x3a8af6(0x1f4))/0xb+parseInt(_0x3a8af6(0x1f5))/0xc;if(_0x7370c4===_0x5b6b21)break;else _0x55215e['push'](_0x55215e['shift']());}catch(_0x482fc9){_0x55215e['push'](_0x55215e['shift']());}}}(a73_0x54ca,0x38a59));import{updateCrossDbRelation}from'../../core/api-client.js';import{CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG,CROSS_RELATION_TO_DATASET_FLAG,CROSS_RELATION_TO_COLUMN_FLAG,CROSS_RELATION_LABEL_FLAG,CROSS_RELATION_CARDINALITY_FLAG,CROSS_RELATION_DBLINK_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a73_0x418f(_0xad2fc4,_0x35de96){_0xad2fc4=_0xad2fc4-0x1eb;const _0x54ca3e=a73_0x54ca();let _0x418f38=_0x54ca3e[_0xad2fc4];return _0x418f38;}function a73_0x54ca(){const _0x2d5841=['137016RYJCjA','dataset','Update\x20the\x20target\x20or\x20properties\x20of\x20the\x20single\x20cross-database\x20relation\x20matching\x20a\x20source\x20dataset\x20and\x20field','615650ZfBeXy','24gIfBbq','30trRhAb','8ZHePks','update','42QcSShI','1050203tiLVRA','3618072ZFlnUK','8hVWQdS','571221WUtToQ','138235TCbDMC','96213Hwttks','write','cross-relation-update'];a73_0x54ca=function(){return _0x2d5841;};return a73_0x54ca();}import{executeCrossRelation,previewCrossRelation,validateCrossRelation}from'../../commands/dataset/cross-relation-shared.js';export const datasetCrossRelationUpdate={'service':a73_0x2f8b03(0x1ec),'command':a73_0x2f8b03(0x1fb),'description':a73_0x2f8b03(0x1ed),'risk':a73_0x2f8b03(0x1fa),'strictFlags':!![],'requiresCookieAuth':!![],'structuredErrors':!![],'flags':[CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG,CROSS_RELATION_TO_DATASET_FLAG,CROSS_RELATION_TO_COLUMN_FLAG,CROSS_RELATION_LABEL_FLAG,CROSS_RELATION_CARDINALITY_FLAG,CROSS_RELATION_DBLINK_FLAG,APPCODE_FLAG_OPTIONAL],'validate':async _0x421490=>validateCrossRelation(_0x421490,a73_0x2f8b03(0x1f2)),'dryRun':_0x81b1b=>previewCrossRelation(_0x81b1b,a73_0x2f8b03(0x1f2)),'execute':_0x253882=>executeCrossRelation(_0x253882,a73_0x2f8b03(0x1f2),updateCrossDbRelation)};
1
+ const a73_0x436d2e=a73_0x379c;(function(_0x2ebbcf,_0x119eac){const _0x4c5240=a73_0x379c,_0x2e7e2c=_0x2ebbcf();while(!![]){try{const _0x2a6ebc=parseInt(_0x4c5240(0xe9))/0x1+-parseInt(_0x4c5240(0xe7))/0x2+-parseInt(_0x4c5240(0xe3))/0x3+parseInt(_0x4c5240(0xe0))/0x4*(parseInt(_0x4c5240(0xe1))/0x5)+parseInt(_0x4c5240(0xe6))/0x6*(parseInt(_0x4c5240(0xe5))/0x7)+parseInt(_0x4c5240(0xe4))/0x8*(-parseInt(_0x4c5240(0xdf))/0x9)+-parseInt(_0x4c5240(0xdd))/0xa;if(_0x2a6ebc===_0x119eac)break;else _0x2e7e2c['push'](_0x2e7e2c['shift']());}catch(_0x409218){_0x2e7e2c['push'](_0x2e7e2c['shift']());}}}(a73_0x4be4,0x30df0));import{updateCrossDbRelation}from'../../core/api-client.js';import{CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG,CROSS_RELATION_TO_DATASET_FLAG,CROSS_RELATION_TO_COLUMN_FLAG,CROSS_RELATION_LABEL_FLAG,CROSS_RELATION_CARDINALITY_FLAG,CROSS_RELATION_DBLINK_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{executeCrossRelation,previewCrossRelation,validateCrossRelation}from'../../commands/dataset/cross-relation-shared.js';function a73_0x4be4(){const _0x3d133d=['16946HbMvKb','477840TmOOAq','write','1796814XFEpws','4BJnoIS','1083140yibbfT','update','97011GaGJAj','8SRcaOr','203tmFGOz','73266lDLbzD','215500rfgqyo','cross-relation-update'];a73_0x4be4=function(){return _0x3d133d;};return a73_0x4be4();}function a73_0x379c(_0x393598,_0x3213eb){_0x393598=_0x393598-0xdd;const _0x4be480=a73_0x4be4();let _0x379cc3=_0x4be480[_0x393598];return _0x379cc3;}export const datasetCrossRelationUpdate={'service':'dataset','command':a73_0x436d2e(0xe8),'description':'Update\x20the\x20target\x20or\x20properties\x20of\x20the\x20single\x20cross-database\x20relation\x20matching\x20a\x20source\x20dataset\x20and\x20field','risk':a73_0x436d2e(0xde),'strictFlags':!![],'requiresCookieAuth':!![],'structuredErrors':!![],'flags':[CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG,CROSS_RELATION_TO_DATASET_FLAG,CROSS_RELATION_TO_COLUMN_FLAG,CROSS_RELATION_LABEL_FLAG,CROSS_RELATION_CARDINALITY_FLAG,CROSS_RELATION_DBLINK_FLAG,APPCODE_FLAG_OPTIONAL],'validate':async _0x10b750=>validateCrossRelation(_0x10b750,'update'),'dryRun':_0x49cd28=>previewCrossRelation(_0x49cd28,a73_0x436d2e(0xe2)),'execute':_0xf8085f=>executeCrossRelation(_0xf8085f,a73_0x436d2e(0xe2),updateCrossDbRelation)};