@lovrabet/rabetbase-cli 2.5.10 → 2.5.11-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (376) 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/design-context.js +1 -1
  77. package/lib/commands/dataset/design-start.js +1 -1
  78. package/lib/commands/dataset/design-status.js +1 -1
  79. package/lib/commands/dataset/design-sync-retry.js +1 -1
  80. package/lib/commands/dataset/design-sync-status.js +1 -1
  81. package/lib/commands/dataset/design-validate.js +1 -1
  82. package/lib/commands/dataset/detail.js +1 -1
  83. package/lib/commands/dataset/extend-update.js +1 -1
  84. package/lib/commands/dataset/field-restore.js +1 -1
  85. package/lib/commands/dataset/field-update.js +1 -1
  86. package/lib/commands/dataset/generate.js +1 -1
  87. package/lib/commands/dataset/index.js +1 -1
  88. package/lib/commands/dataset/list.js +1 -1
  89. package/lib/commands/dataset/operations.js +1 -1
  90. package/lib/commands/dataset/relation-audit.js +1 -1
  91. package/lib/commands/dataset/relation-create.js +1 -1
  92. package/lib/commands/dataset/relation-delete.js +1 -1
  93. package/lib/commands/dataset/relation-shared.js +1 -1
  94. package/lib/commands/dataset/relation-update.js +1 -1
  95. package/lib/commands/dataset/relations.js +1 -1
  96. package/lib/commands/dataset/rename.js +1 -1
  97. package/lib/commands/dataset/restore.js +1 -1
  98. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  99. package/lib/commands/db/analysis-batching.js +1 -1
  100. package/lib/commands/db/analyze-batch-plan.js +1 -1
  101. package/lib/commands/db/analyze-cancel.js +1 -1
  102. package/lib/commands/db/analyze-start.js +1 -1
  103. package/lib/commands/db/analyze-status.js +1 -1
  104. package/lib/commands/db/create.js +1 -1
  105. package/lib/commands/db/cross-db-analysis-shared.js +1 -1
  106. package/lib/commands/db/cross-db-analyze-latest.js +1 -1
  107. package/lib/commands/db/cross-db-analyze-start.js +1 -1
  108. package/lib/commands/db/cross-db-analyze-status.js +1 -1
  109. package/lib/commands/db/delete.js +1 -1
  110. package/lib/commands/db/detail.js +1 -1
  111. package/lib/commands/db/diff-refresh-start.js +1 -1
  112. package/lib/commands/db/diff-refresh-status.js +1 -1
  113. package/lib/commands/db/diff.js +1 -1
  114. package/lib/commands/db/index.js +1 -1
  115. package/lib/commands/db/list.js +1 -1
  116. package/lib/commands/db/shared.js +1 -1
  117. package/lib/commands/db/table-diff-shared.js +1 -1
  118. package/lib/commands/db/tables.js +1 -1
  119. package/lib/commands/db/test.js +1 -1
  120. package/lib/commands/db/update.js +1 -1
  121. package/lib/commands/deployment/index.js +1 -1
  122. package/lib/commands/deployment/sync-all.js +1 -1
  123. package/lib/commands/deployment/sync-jobs.js +1 -1
  124. package/lib/commands/deployment/sync-status.js +1 -1
  125. package/lib/commands/doctor.js +1 -1
  126. package/lib/commands/file/index.js +1 -1
  127. package/lib/commands/flow/create.js +1 -1
  128. package/lib/commands/flow/detail.js +1 -1
  129. package/lib/commands/flow/index.js +1 -1
  130. package/lib/commands/flow/list.js +1 -1
  131. package/lib/commands/flow/page-list.js +1 -1
  132. package/lib/commands/flow/publish.js +1 -1
  133. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  134. package/lib/commands/flow/runtime-role-list.js +1 -1
  135. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  136. package/lib/commands/flow/runtime-user-search.js +1 -1
  137. package/lib/commands/flow/shared.js +1 -1
  138. package/lib/commands/flow/update.js +1 -1
  139. package/lib/commands/flow/validate.js +1 -1
  140. package/lib/commands/instant-api-policy/current.js +1 -1
  141. package/lib/commands/instant-api-policy/index.js +1 -1
  142. package/lib/commands/instant-api-policy/init.js +1 -1
  143. package/lib/commands/instant-api-policy/publish.js +1 -1
  144. package/lib/commands/instant-api-policy/pull.js +1 -1
  145. package/lib/commands/instant-api-policy/revision.js +1 -1
  146. package/lib/commands/instant-api-policy/revisions.js +1 -1
  147. package/lib/commands/instant-api-policy/rollback.js +1 -1
  148. package/lib/commands/instant-api-policy/shared.js +1 -1
  149. package/lib/commands/instant-api-policy/validate.js +1 -1
  150. package/lib/commands/issue/context.js +1 -1
  151. package/lib/commands/issue/index.js +1 -1
  152. package/lib/commands/issue/nudge.js +1 -1
  153. package/lib/commands/issue/report.js +1 -1
  154. package/lib/commands/kb/create.js +1 -1
  155. package/lib/commands/kb/delete.js +1 -1
  156. package/lib/commands/kb/detail.js +1 -1
  157. package/lib/commands/kb/index.js +1 -1
  158. package/lib/commands/kb/list.js +1 -1
  159. package/lib/commands/kb/search.js +1 -1
  160. package/lib/commands/kb/shared.js +1 -1
  161. package/lib/commands/kb/update.js +1 -1
  162. package/lib/commands/logs/index.js +1 -1
  163. package/lib/commands/menu/asset-update.js +1 -1
  164. package/lib/commands/menu/delete.js +1 -1
  165. package/lib/commands/menu/external-link-create.js +1 -1
  166. package/lib/commands/menu/external-link-update.js +1 -1
  167. package/lib/commands/menu/group-create.js +1 -1
  168. package/lib/commands/menu/group-update.js +1 -1
  169. package/lib/commands/menu/index.js +1 -1
  170. package/lib/commands/menu/list.js +1 -1
  171. package/lib/commands/menu/move.js +1 -1
  172. package/lib/commands/menu/regroup-start.js +1 -1
  173. package/lib/commands/menu/rename.js +1 -1
  174. package/lib/commands/menu/shared/compare-table.js +1 -1
  175. package/lib/commands/menu/shared/delete-plan.js +1 -1
  176. package/lib/commands/menu/shared/facts.js +1 -1
  177. package/lib/commands/menu/shared/index.js +1 -1
  178. package/lib/commands/menu/shared/inquirer.js +1 -1
  179. package/lib/commands/menu/shared/local-pages.js +1 -1
  180. package/lib/commands/menu/shared/logic.js +1 -1
  181. package/lib/commands/menu/shared/mutations.js +1 -1
  182. package/lib/commands/menu/shared/path.js +1 -1
  183. package/lib/commands/menu/shared/service.js +1 -1
  184. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  185. package/lib/commands/menu/shared/sync-core.js +1 -1
  186. package/lib/commands/menu/shared/update-core.js +1 -1
  187. package/lib/commands/menu/shared/valid-url.js +1 -1
  188. package/lib/commands/menu/subapp-assets-status.js +1 -1
  189. package/lib/commands/menu/subapp-assets-update.js +1 -1
  190. package/lib/commands/menu/sync.js +1 -1
  191. package/lib/commands/menu/visibility-update.js +1 -1
  192. package/lib/commands/notification/config-create.js +1 -1
  193. package/lib/commands/notification/config-delete.js +1 -1
  194. package/lib/commands/notification/config-list.js +1 -1
  195. package/lib/commands/notification/config-update.js +1 -1
  196. package/lib/commands/notification/index.js +1 -1
  197. package/lib/commands/notification/shared.js +1 -1
  198. package/lib/commands/ocr/index.js +1 -1
  199. package/lib/commands/page/create.js +1 -1
  200. package/lib/commands/page/custom/detail.js +1 -1
  201. package/lib/commands/page/custom/list.js +1 -1
  202. package/lib/commands/page/custom/publish.js +1 -1
  203. package/lib/commands/page/custom/shared.js +1 -1
  204. package/lib/commands/page/custom/syntax.js +1 -1
  205. package/lib/commands/page/custom/update.js +1 -1
  206. package/lib/commands/page/data-list-status.js +1 -1
  207. package/lib/commands/page/generate-start.js +1 -1
  208. package/lib/commands/page/generate-status.js +1 -1
  209. package/lib/commands/page/index.js +1 -1
  210. package/lib/commands/page/pull.js +1 -1
  211. package/lib/commands/page/push.js +1 -1
  212. package/lib/commands/page/relation-audit.js +1 -1
  213. package/lib/commands/page/restore.js +1 -1
  214. package/lib/commands/page/shared.js +1 -1
  215. package/lib/commands/page/sync.js +1 -1
  216. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  217. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  218. package/lib/commands/project/create/format-elapsed.js +1 -1
  219. package/lib/commands/project/create/main.js +1 -1
  220. package/lib/commands/project/create/materialize-project-template.js +1 -1
  221. package/lib/commands/project/create/project-name.js +1 -1
  222. package/lib/commands/project/create/project-template-archive.js +1 -1
  223. package/lib/commands/project/create/project-template-path.js +1 -1
  224. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  225. package/lib/commands/project/create/use-format-code.js +1 -1
  226. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  227. package/lib/commands/project/domain-routing-sync.js +1 -1
  228. package/lib/commands/project/index.js +1 -1
  229. package/lib/commands/project/upgrade.js +1 -1
  230. package/lib/commands/registry.js +1 -1
  231. package/lib/commands/role/delete.js +1 -1
  232. package/lib/commands/role/detail.js +1 -1
  233. package/lib/commands/role/index.js +1 -1
  234. package/lib/commands/role/list.js +1 -1
  235. package/lib/commands/role/shared.js +1 -1
  236. package/lib/commands/role/update.js +1 -1
  237. package/lib/commands/role/user-add.js +1 -1
  238. package/lib/commands/role/user-remove.js +1 -1
  239. package/lib/commands/role/user-resolve.js +1 -1
  240. package/lib/commands/rule/get.js +1 -1
  241. package/lib/commands/rule/index.js +1 -1
  242. package/lib/commands/rule/list.js +1 -1
  243. package/lib/commands/rule/set.js +1 -1
  244. package/lib/commands/rule/shared.js +1 -1
  245. package/lib/commands/run/index.js +1 -1
  246. package/lib/commands/schema.js +1 -1
  247. package/lib/commands/sql/create.js +1 -1
  248. package/lib/commands/sql/delete.js +1 -1
  249. package/lib/commands/sql/detail.js +1 -1
  250. package/lib/commands/sql/exec.js +1 -1
  251. package/lib/commands/sql/index.js +1 -1
  252. package/lib/commands/sql/list.js +1 -1
  253. package/lib/commands/sql/pull.js +1 -1
  254. package/lib/commands/sql/push.js +1 -1
  255. package/lib/commands/sql/shared.js +1 -1
  256. package/lib/commands/sql/status.js +1 -1
  257. package/lib/commands/sql/validate.js +1 -1
  258. package/lib/commands/task/index.js +1 -1
  259. package/lib/commands/task/status.js +1 -1
  260. package/lib/commands/tenant/index.js +1 -1
  261. package/lib/commands/tenant/members-list.js +1 -1
  262. package/lib/commands/tenant/shared.js +1 -1
  263. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  264. package/lib/commands/user-account/feishu-bind.js +1 -1
  265. package/lib/commands/user-account/index.js +1 -1
  266. package/lib/commands/workspace/add.js +1 -1
  267. package/lib/commands/workspace/index.js +1 -1
  268. package/lib/commands/workspace/remove.js +1 -1
  269. package/lib/config/domain-config.js +1 -1
  270. package/lib/config/project-domain-routing.js +1 -1
  271. package/lib/config/region-config.js +1 -1
  272. package/lib/config/schema.js +1 -1
  273. package/lib/constant/cdn.js +1 -1
  274. package/lib/constant/cli.js +1 -1
  275. package/lib/constant/defaults.js +1 -1
  276. package/lib/constant/domain.js +1 -1
  277. package/lib/constant/env.js +1 -1
  278. package/lib/constant/output.js +1 -1
  279. package/lib/constant/paths.js +1 -1
  280. package/lib/constant/region.js +1 -1
  281. package/lib/constant/risk.js +1 -1
  282. package/lib/constant/routing-profile.js +1 -1
  283. package/lib/context/app-resolver.js +1 -1
  284. package/lib/context/auth-resolver.js +1 -1
  285. package/lib/context/config-loader.js +1 -1
  286. package/lib/context.js +1 -1
  287. package/lib/core/alias-resolver.js +1 -1
  288. package/lib/core/api-client.js +1 -1
  289. package/lib/core/bff/config.js +1 -1
  290. package/lib/core/bff/file-system.js +1 -1
  291. package/lib/core/bff/hash.js +1 -1
  292. package/lib/core/bff/hook-directory.js +1 -1
  293. package/lib/core/bff/lock.js +1 -1
  294. package/lib/core/bff/utils.js +1 -1
  295. package/lib/core/cross-db-analysis.js +1 -1
  296. package/lib/core/cross-db-relation.js +1 -1
  297. package/lib/core/db-resolver.js +1 -1
  298. package/lib/core/flow-config.js +1 -1
  299. package/lib/core/instant-api-policy/config.js +1 -1
  300. package/lib/core/instant-api-policy/endpoints.js +1 -1
  301. package/lib/core/kb-management-client.js +1 -1
  302. package/lib/core/kb-search-client.js +1 -1
  303. package/lib/core/page/file-system.js +1 -1
  304. package/lib/core/page/hash.js +1 -1
  305. package/lib/core/page/lock.js +1 -1
  306. package/lib/core/page/lr-smart-jsx.js +1 -1
  307. package/lib/core/sql-index-auditor.js +1 -1
  308. package/lib/core/sql-sync/config.js +1 -1
  309. package/lib/core/sql-sync/file-system.js +1 -1
  310. package/lib/core/sql-sync/hash.js +1 -1
  311. package/lib/core/sql-sync/lock.js +1 -1
  312. package/lib/core/sql-sync/utils.js +1 -1
  313. package/lib/core/sql-validator.js +1 -1
  314. package/lib/errors.js +1 -1
  315. package/lib/framework/build-all-flags.js +1 -1
  316. package/lib/framework/error-output.js +1 -1
  317. package/lib/framework/explicit-yes.js +1 -1
  318. package/lib/framework/flags.js +1 -1
  319. package/lib/framework/help.js +1 -1
  320. package/lib/framework/index.js +1 -1
  321. package/lib/framework/output.js +1 -1
  322. package/lib/framework/response.js +1 -1
  323. package/lib/framework/runner-alias.js +1 -1
  324. package/lib/framework/runner.js +1 -1
  325. package/lib/framework/schema-export.js +1 -1
  326. package/lib/framework/supported-flags.js +1 -1
  327. package/lib/framework/types.js +1 -1
  328. package/lib/generated/build-info.d.ts +4 -4
  329. package/lib/generated/build-info.js +1 -1
  330. package/lib/generated/official-routing.js +1 -1
  331. package/lib/generated/routing-contract.js +1 -1
  332. package/lib/help.js +1 -1
  333. package/lib/postinstall.js +1 -1
  334. package/lib/runtime/confirmation.js +1 -1
  335. package/lib/runtime/event.js +1 -1
  336. package/lib/runtime/index.js +1 -1
  337. package/lib/runtime/queue.js +1 -1
  338. package/lib/runtime/resolve.js +1 -1
  339. package/lib/services/dataset-design/checkpoint.js +1 -1
  340. package/lib/services/dataset-design/commands.js +1 -1
  341. package/lib/services/dataset-design/contract.js +1 -1
  342. package/lib/skills/builtin-skill.js +1 -1
  343. package/lib/skills/main.js +1 -1
  344. package/lib/skills/npx-skills-add.js +1 -1
  345. package/lib/skills/skill-presence.js +1 -1
  346. package/lib/telemetry/cli-command-trace.js +1 -1
  347. package/lib/telemetry/cli-help-trace.js +1 -1
  348. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  349. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  350. package/lib/telemetry/send-cli-trace-log.js +1 -1
  351. package/lib/utils/ai_config.js +1 -1
  352. package/lib/utils/apply-jq-filter.js +1 -1
  353. package/lib/utils/cdn-config.js +1 -1
  354. package/lib/utils/check-sdk-version.js +1 -1
  355. package/lib/utils/cli-version-check.js +1 -1
  356. package/lib/utils/cli-version-policy.js +1 -1
  357. package/lib/utils/config.js +1 -1
  358. package/lib/utils/entity-with-id.js +1 -1
  359. package/lib/utils/file-utils.js +1 -1
  360. package/lib/utils/guides-cdn.js +1 -1
  361. package/lib/utils/http-client.js +1 -1
  362. package/lib/utils/is-non-interactive.js +1 -1
  363. package/lib/utils/logger.js +1 -1
  364. package/lib/utils/params.js +1 -1
  365. package/lib/utils/platform.js +1 -1
  366. package/lib/utils/sleep.js +1 -1
  367. package/lib/utils/template-replacer.js +1 -1
  368. package/lib/utils/update-notice.js +1 -1
  369. package/lib/utils/version.js +1 -1
  370. package/lib/utils/with-active-cookie.js +1 -1
  371. package/lib/utils/write-cli-side-channel.js +1 -1
  372. package/package.json +1 -1
  373. package/skills/rabetbase/SKILL.md +1 -1
  374. package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
  375. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  376. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- const a59_0x50c6bd=a59_0x5d41;(function(_0xdcdfdd,_0xb24828){const _0x4f7fc0=a59_0x5d41,_0x553219=_0xdcdfdd();while(!![]){try{const _0x16b5c3=parseInt(_0x4f7fc0(0x79))/0x1*(parseInt(_0x4f7fc0(0x76))/0x2)+-parseInt(_0x4f7fc0(0x70))/0x3*(parseInt(_0x4f7fc0(0x6d))/0x4)+parseInt(_0x4f7fc0(0x7b))/0x5+-parseInt(_0x4f7fc0(0x73))/0x6+parseInt(_0x4f7fc0(0x68))/0x7+parseInt(_0x4f7fc0(0x6e))/0x8*(-parseInt(_0x4f7fc0(0x74))/0x9)+parseInt(_0x4f7fc0(0x75))/0xa*(parseInt(_0x4f7fc0(0x71))/0xb);if(_0x16b5c3===_0xb24828)break;else _0x553219['push'](_0x553219['shift']());}catch(_0x272deb){_0x553219['push'](_0x553219['shift']());}}}(a59_0x5543,0xeef5c));import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';function a59_0x5543(){const _0xdfaac0=['80806WlbSWG','get','7373754MVaiOE','16559109zQaEVW','1930tkmZRb','15658URFrFy','Usage:\x20','str','187mrbfXg','validation','3699395pzxjRG','object','5113787nUFgko','Get\x20a\x20config\x20value\x20by\x20key','Key\x20not\x20found:\x20','Missing\x20key.','key','406108KHhoci','8uKPVJA','string','9vJrnjo'];a59_0x5543=function(){return _0xdfaac0;};return a59_0x5543();}function a59_0x5d41(_0x3bc453,_0x5efded){_0x3bc453=_0x3bc453-0x68;const _0x554348=a59_0x5543();let _0x5d41c6=_0x554348[_0x3bc453];return _0x5d41c6;}import{CLI_BIN_NAME}from'../../constant/cli.js';import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0x1b953f){const _0x30639c=a59_0x5d41,_0xbf7ef3=_0x1b953f[_0x30639c(0x78)](_0x30639c(0x6c));if(!_0xbf7ef3)throw CliErrors[_0x30639c(0x7a)](_0x30639c(0x6b),_0x30639c(0x77)+CLI_BIN_NAME+'\x20config\x20get\x20--key\x20<key>');const _0x55f9f8=readConfig(),_0x1bdbc2=_0xbf7ef3==='app'?'appcode':_0xbf7ef3,_0x4caffc=_0x55f9f8[_0x1bdbc2];if(_0x4caffc===undefined)throw CliErrors[_0x30639c(0x7a)](_0x30639c(0x6a)+_0xbf7ef3);return{'ok':!![],'data':typeof _0x4caffc==='object'?_0x4caffc:{[_0x1bdbc2]:_0x4caffc},'message':typeof _0x4caffc===_0x30639c(0x7c)?undefined:String(_0x4caffc)};}export const configGetDefinition={'service':'config','command':a59_0x50c6bd(0x72),'description':a59_0x50c6bd(0x69),'risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'key','type':a59_0x50c6bd(0x6f),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
1
+ const a59_0x13b689=a59_0x4717;function a59_0x1f94(){const _0x3554b4=['validation','app','Missing\x20key.','Usage:\x20','appcode','key','2219644MVNCPZ','8015jRHsmu','string','1112280CSVtss','Key\x20not\x20found:\x20','964JLJSxb','str','4204576YTgROH','1448170rdqJlz','\x20config\x20get\x20--key\x20<key>','get','3081687PLoYTL','890133YweRLi','object'];a59_0x1f94=function(){return _0x3554b4;};return a59_0x1f94();}function a59_0x4717(_0x26f5d7,_0x538029){_0x26f5d7=_0x26f5d7-0x176;const _0x1f948f=a59_0x1f94();let _0x47171a=_0x1f948f[_0x26f5d7];return _0x47171a;}(function(_0x3e63cb,_0x2ddab1){const _0x2fa2d9=a59_0x4717,_0x144e3c=_0x3e63cb();while(!![]){try{const _0x1ed038=parseInt(_0x2fa2d9(0x184))/0x1+-parseInt(_0x2fa2d9(0x180))/0x2+-parseInt(_0x2fa2d9(0x183))/0x3+parseInt(_0x2fa2d9(0x17d))/0x4*(parseInt(_0x2fa2d9(0x179))/0x5)+parseInt(_0x2fa2d9(0x17b))/0x6+parseInt(_0x2fa2d9(0x178))/0x7+parseInt(_0x2fa2d9(0x17f))/0x8;if(_0x1ed038===_0x2ddab1)break;else _0x144e3c['push'](_0x144e3c['shift']());}catch(_0x16ea8e){_0x144e3c['push'](_0x144e3c['shift']());}}}(a59_0x1f94,0x870e2));import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0x505667){const _0x13b27d=a59_0x4717,_0x26e6a3=_0x505667[_0x13b27d(0x17e)](_0x13b27d(0x177));if(!_0x26e6a3)throw CliErrors['validation'](_0x13b27d(0x188),_0x13b27d(0x189)+CLI_BIN_NAME+_0x13b27d(0x181));const _0x56bef8=readConfig(),_0x4efdf8=_0x26e6a3===_0x13b27d(0x187)?_0x13b27d(0x176):_0x26e6a3,_0x581743=_0x56bef8[_0x4efdf8];if(_0x581743===undefined)throw CliErrors[_0x13b27d(0x186)](_0x13b27d(0x17c)+_0x26e6a3);return{'ok':!![],'data':typeof _0x581743===_0x13b27d(0x185)?_0x581743:{[_0x4efdf8]:_0x581743},'message':typeof _0x581743===_0x13b27d(0x185)?undefined:String(_0x581743)};}export const configGetDefinition={'service':'config','command':a59_0x13b689(0x182),'description':'Get\x20a\x20config\x20value\x20by\x20key','risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a59_0x13b689(0x177),'type':a59_0x13b689(0x17a),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
@@ -1 +1 @@
1
- (function(_0x3730e5,_0x48aaf0){const _0x4d4c61=a60_0x11f5,_0x16c8b3=_0x3730e5();while(!![]){try{const _0xb0904c=-parseInt(_0x4d4c61(0x10a))/0x1+parseInt(_0x4d4c61(0x109))/0x2+-parseInt(_0x4d4c61(0x106))/0x3+parseInt(_0x4d4c61(0x107))/0x4*(parseInt(_0x4d4c61(0x105))/0x5)+-parseInt(_0x4d4c61(0x10b))/0x6+-parseInt(_0x4d4c61(0x108))/0x7+parseInt(_0x4d4c61(0x10c))/0x8;if(_0xb0904c===_0x48aaf0)break;else _0x16c8b3['push'](_0x16c8b3['shift']());}catch(_0x58dae7){_0x16c8b3['push'](_0x16c8b3['shift']());}}}(a60_0x4045,0x9509d));function a60_0x4045(){const _0x37a3a6=['3327758ynOMGk','392364yabBwu','1043554pZVwTa','2523468NMTUXs','21108328WVWIYB','831395eVfZVD','2350719ekRGey','12bUkAEN'];a60_0x4045=function(){return _0x37a3a6;};return a60_0x4045();}import{configListDefinition}from'../../commands/config/list.js';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_0x11f5(_0x25687c,_0x131a62){_0x25687c=_0x25687c-0x105;const _0x4045e4=a60_0x4045();let _0x11f567=_0x4045e4[_0x25687c];return _0x11f567;}export const configDefinitions=[configInitDefinition,configListDefinition,configGetDefinition,configSetDefinition,configDeleteDefinition];
1
+ (function(_0x3f5428,_0x5f67f6){const _0x4d7392=a60_0x29fe,_0x2e67a4=_0x3f5428();while(!![]){try{const _0xb45dc4=parseInt(_0x4d7392(0xc5))/0x1*(-parseInt(_0x4d7392(0xc8))/0x2)+parseInt(_0x4d7392(0xcc))/0x3*(parseInt(_0x4d7392(0xc7))/0x4)+parseInt(_0x4d7392(0xce))/0x5+-parseInt(_0x4d7392(0xc4))/0x6+-parseInt(_0x4d7392(0xca))/0x7*(-parseInt(_0x4d7392(0xcd))/0x8)+parseInt(_0x4d7392(0xc6))/0x9*(-parseInt(_0x4d7392(0xcb))/0xa)+-parseInt(_0x4d7392(0xc9))/0xb*(-parseInt(_0x4d7392(0xcf))/0xc);if(_0xb45dc4===_0x5f67f6)break;else _0x2e67a4['push'](_0x2e67a4['shift']());}catch(_0x57ef0b){_0x2e67a4['push'](_0x2e67a4['shift']());}}}(a60_0x818c,0x62810));import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';import{configSetDefinition}from'../../commands/config/set.js';import{configDeleteDefinition}from'../../commands/config/delete.js';function a60_0x29fe(_0x5b713c,_0x6c5d8d){_0x5b713c=_0x5b713c-0xc4;const _0x818cc5=a60_0x818c();let _0x29fe08=_0x818cc5[_0x5b713c];return _0x29fe08;}function a60_0x818c(){const _0xfaf57f=['4664GiFEEM','682115pUYEcB','10AIeeAF','36QHKnOq','32PtqzIB','327185ErvKOt','39168ysDTut','2870994NHwHpH','11ynaihS','7011504oVNPyE','188836RHFbgR','135388NXVDAI'];a60_0x818c=function(){return _0xfaf57f;};return a60_0x818c();}import{configInitDefinition}from'../../commands/config/init.js';export const configDefinitions=[configInitDefinition,configListDefinition,configGetDefinition,configSetDefinition,configDeleteDefinition];
@@ -1 +1 @@
1
- function a61_0x4de4(){const _0x6e9bea=['runtime-domain','Select\x20Lovrabet\x20region','project','3062248HEJHVN','api-domain','write','4408512EqyXRk','bool','localDomain','106854pDDxKu','region','domain-config','enterprise-v1','\x22\x20is\x20not\x20currently\x20available.','user-domain','Custom\x20KB\x20Service\x20HTTPS\x20origin','certificateDomain','267555kBsaPX','kb-domain','assign','Rabetbase\x20connection\x20configured\x20for\x20region:\x20','name','validation','cancelled','certificate-domain','official','Custom\x20knowledge-base\x20HTTPS\x20origin','string','join','Official\x20Lovrabet\x20region:\x20','Custom\x20local\x20callback\x20HTTPS\x20origin','Independent\x20deployment\x20requires\x20--local-domain\x20and\x20--certificate-domain\x20together.','Updates\x20the\x20selected\x20Rabetbase\x20region\x20or\x20independent-deployment\x20Domain\x20configuration.\x20Cookie,\x20output\x20format,\x20and\x20app\x20bindings\x20stay\x20unchanged.','Custom\x20Lovrabet\x20workspace\x20HTTPS\x20origin','Custom\x20SkillHub\x20HTTPS\x20origin','1216974vKTFKq','independent','Initialize\x20the\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domains','config','domains','length','1544812Jtnejb','manifestDomains','keys','2971915Lytfuz','cdn','ExitPromptError','Custom\x20Runtime\x20HTTPS\x20origin','Custom\x20platform\x20API\x20HTTPS\x20origin','str','mode','skill-domain','Custom\x20certificate\x20service\x20HTTPS\x20origin','global'];a61_0x4de4=function(){return _0x6e9bea;};return a61_0x4de4();}const a61_0x42ed8a=a61_0x5e7c;(function(_0x3521e5,_0x6b0f8){const _0x3dff73=a61_0x5e7c,_0x4942d1=_0x3521e5();while(!![]){try{const _0x139b74=parseInt(_0x3dff73(0x1b6))/0x1+-parseInt(_0x3dff73(0x1c8))/0x2+parseInt(_0x3dff73(0x1ae))/0x3+parseInt(_0x3dff73(0x1ce))/0x4+parseInt(_0x3dff73(0x19b))/0x5+-parseInt(_0x3dff73(0x1ab))/0x6+parseInt(_0x3dff73(0x1a8))/0x7;if(_0x139b74===_0x6b0f8)break;else _0x4942d1['push'](_0x4942d1['shift']());}catch(_0x2d1687){_0x4942d1['push'](_0x4942d1['shift']());}}}(a61_0x4de4,0x5c480));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';import{DEFAULT_LOVRABET_REGION,ENABLED_LOVRABET_REGION_VALUES,isEnabledLovrabetRegion}from'../../constant/region.js';function a61_0x5e7c(_0x4fc833,_0x2df627){_0x4fc833=_0x4fc833-0x19b;const _0x4de41d=a61_0x4de4();let _0x5e7cf0=_0x4de41d[_0x4fc833];return _0x5e7cf0;}import{getOfficialRoutingProfile}from'../../constant/routing-profile.js';import{GLOBAL_SCOPE_FLAG}from'../../commands/common/flags.js';export const configInitFlags=[GLOBAL_SCOPE_FLAG,{'name':a61_0x42ed8a(0x1af),'type':a61_0x42ed8a(0x1c0),'description':a61_0x42ed8a(0x1c2)+ENABLED_LOVRABET_REGION_VALUES['join'](',\x20'),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':a61_0x42ed8a(0x1b0),'type':a61_0x42ed8a(0x1c0),'description':'Independent-deployment\x20Domain\x20JSON\x20file'},{'name':a61_0x42ed8a(0x1b3),'type':a61_0x42ed8a(0x1c0),'description':'Custom\x20User\x20HTTPS\x20origin'},{'name':a61_0x42ed8a(0x1a9),'type':a61_0x42ed8a(0x1c0),'description':a61_0x42ed8a(0x19f)},{'name':a61_0x42ed8a(0x1a5),'type':a61_0x42ed8a(0x1c0),'description':a61_0x42ed8a(0x19e)},{'name':a61_0x42ed8a(0x1a2),'type':a61_0x42ed8a(0x1c0),'description':a61_0x42ed8a(0x1c7)},{'name':a61_0x42ed8a(0x1b7),'type':'string','description':a61_0x42ed8a(0x1bf)},{'name':'kb-service-domain','type':a61_0x42ed8a(0x1c0),'description':a61_0x42ed8a(0x1b4)},{'name':'app-domain','type':a61_0x42ed8a(0x1c0),'description':a61_0x42ed8a(0x1c6)},{'name':'local-domain','type':a61_0x42ed8a(0x1c0),'description':a61_0x42ed8a(0x1c3)},{'name':a61_0x42ed8a(0x1bd),'type':a61_0x42ed8a(0x1c0),'description':a61_0x42ed8a(0x1a3)}];async function resolveRegion(_0x40a126){const _0x93af63=a61_0x42ed8a,_0x5e7f11=_0x40a126[_0x93af63(0x1a0)](_0x93af63(0x1af));if(_0x5e7f11){if(!isEnabledLovrabetRegion(_0x5e7f11))throw CliErrors[_0x93af63(0x1bb)]('Region\x20\x22'+_0x5e7f11+_0x93af63(0x1b2),'Available\x20regions:\x20'+ENABLED_LOVRABET_REGION_VALUES[_0x93af63(0x1c1)](',\x20'));return _0x5e7f11;}if(_0x40a126['nonInteractive'])return DEFAULT_LOVRABET_REGION;try{return await select({'message':_0x93af63(0x1a6),'default':DEFAULT_LOVRABET_REGION,'choices':ENABLED_LOVRABET_REGION_VALUES['map'](_0x3f331c=>({'name':getOfficialRoutingProfile(_0x3f331c)['label']+'\x20('+_0x3f331c+')','value':_0x3f331c}))});}catch(_0x33b31a){if(_0x33b31a?.[_0x93af63(0x1ba)]===_0x93af63(0x19d))throw CliErrors[_0x93af63(0x1bc)]();throw _0x33b31a;}}export async function executeConfigInit(_0x4048d8){const _0x380bbc=a61_0x42ed8a,_0x101b11=resolveDomainConfigInput(_0x4048d8),_0x59740e=_0x101b11[_0x380bbc(0x1cc)],_0x45b2bf=Object['keys'](_0x59740e)[_0x380bbc(0x1cd)]>0x0;if(_0x45b2bf&&_0x4048d8[_0x380bbc(0x1a0)](_0x380bbc(0x1af)))throw CliErrors['validation']('Choose\x20either\x20an\x20official\x20region\x20or\x20independent-deployment\x20Domains,\x20not\x20both.');if(!!_0x59740e[_0x380bbc(0x1ad)]!==!!_0x59740e[_0x380bbc(0x1b5)])throw CliErrors[_0x380bbc(0x1bb)](_0x380bbc(0x1c4));const _0x129345=_0x4048d8[_0x380bbc(0x1ac)](_0x380bbc(0x1a4))?'global':_0x380bbc(0x1a7),_0x26ca31=readScopedConfig(_0x129345);for(const _0x7816ac of DOMAIN_CONFIG_FIELDS)delete _0x26ca31[_0x7816ac];for(const _0x58dc42 of LEGACY_DOMAIN_CONFIG_FIELDS)delete _0x26ca31[_0x58dc42];delete _0x26ca31['routing'];let _0x53e5b7=null;if(_0x45b2bf)delete _0x26ca31[_0x380bbc(0x1af)],_0x101b11[_0x380bbc(0x1a1)]===_0x380bbc(0x1b1)?_0x26ca31['routing']={'protocol':ENTERPRISE_ROUTING_PROTOCOL,'kind':ENTERPRISE_ROUTING_KIND,'domains':_0x101b11[_0x380bbc(0x1cf)],'cdn':_0x101b11[_0x380bbc(0x19c)]}:Object[_0x380bbc(0x1b8)](_0x26ca31,_0x59740e);else{_0x53e5b7=await resolveRegion(_0x4048d8);if(_0x53e5b7===DEFAULT_LOVRABET_REGION)delete _0x26ca31['region'];else _0x26ca31[_0x380bbc(0x1af)]=_0x53e5b7;}return writeScopedConfig(_0x26ca31,_0x129345),{'ok':!![],'message':_0x45b2bf?'Rabetbase\x20connection\x20configured\x20for\x20independent\x20deployment.\x20Domains:\x20'+Object[_0x380bbc(0x1d0)](_0x101b11[_0x380bbc(0x1a1)]==='enterprise-v1'?_0x101b11['manifestDomains']:_0x59740e)[_0x380bbc(0x1c1)](',\x20')+'.':_0x380bbc(0x1b9)+_0x53e5b7+'.','data':{'mode':_0x45b2bf?_0x380bbc(0x1c9):_0x380bbc(0x1be),'protocol':_0x101b11[_0x380bbc(0x1a1)]===_0x380bbc(0x1b1)?ENTERPRISE_ROUTING_PROTOCOL:undefined,'region':_0x53e5b7,'domains':_0x59740e,'cdn':_0x101b11[_0x380bbc(0x1a1)]===_0x380bbc(0x1b1)?_0x101b11[_0x380bbc(0x19c)]:undefined}};}export const configInitDefinition={'service':a61_0x42ed8a(0x1cb),'command':'init','description':a61_0x42ed8a(0x1ca),'risk':a61_0x42ed8a(0x1aa),'confirmationDescription':a61_0x42ed8a(0x1c5),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':configInitFlags,'execute':executeConfigInit};
1
+ function a61_0x19c3(_0x32ac41,_0x55a704){_0x32ac41=_0x32ac41-0xf5;const _0x4a4afa=a61_0x4a4a();let _0x19c323=_0x4a4afa[_0x32ac41];return _0x19c323;}function a61_0x4a4a(){const _0x1820aa=['length','enterprise-v1','Custom\x20Runtime\x20HTTPS\x20origin','api-domain','Custom\x20certificate\x20service\x20HTTPS\x20origin','Independent\x20deployment\x20requires\x20--local-domain\x20and\x20--certificate-domain\x20together.','localDomain','join','1545WtYfyS','str','manifestDomains','nonInteractive','init','routing','domain-config','Initialize\x20the\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domains','kb-domain','1814KRLdet','Custom\x20knowledge-base\x20HTTPS\x20origin','9809830mENUQp','Available\x20regions:\x20','Custom\x20KB\x20Service\x20HTTPS\x20origin','user-domain','4632187zFiKbj','22013953rnSeQb','name','runtime-domain','string','official','independent','domains','3784arQbzl','ExitPromptError','Custom\x20User\x20HTTPS\x20origin','11511ZyVsxt','bool','skill-domain','11AQphsZ','cancelled','Custom\x20platform\x20API\x20HTTPS\x20origin','certificate-domain','cdn','Choose\x20either\x20an\x20official\x20region\x20or\x20independent-deployment\x20Domains,\x20not\x20both.','global','12NrEjiv','write','app-domain','keys','mode','config','204HROYNZ','label','Custom\x20local\x20callback\x20HTTPS\x20origin','local-domain','certificateDomain','12DndLSO','Select\x20Lovrabet\x20region','8392jXYKYP','map','kb-service-domain','6661760SygbTm','region','\x22\x20is\x20not\x20currently\x20available.','Custom\x20SkillHub\x20HTTPS\x20origin'];a61_0x4a4a=function(){return _0x1820aa;};return a61_0x4a4a();}const a61_0x4435a5=a61_0x19c3;(function(_0x2f5310,_0x48218b){const _0x43a9cc=a61_0x19c3,_0x2c71ff=_0x2f5310();while(!![]){try{const _0x208f35=parseInt(_0x43a9cc(0x11f))/0x1*(-parseInt(_0x43a9cc(0x100))/0x2)+-parseInt(_0x43a9cc(0x116))/0x3*(parseInt(_0x43a9cc(0x12d))/0x4)+-parseInt(_0x43a9cc(0x10a))/0x5+-parseInt(_0x43a9cc(0xfa))/0x6*(parseInt(_0x43a9cc(0x125))/0x7)+-parseInt(_0x43a9cc(0x107))/0x8*(-parseInt(_0x43a9cc(0x130))/0x9)+parseInt(_0x43a9cc(0x121))/0xa*(parseInt(_0x43a9cc(0x133))/0xb)+-parseInt(_0x43a9cc(0x105))/0xc*(-parseInt(_0x43a9cc(0x126))/0xd);if(_0x208f35===_0x48218b)break;else _0x2c71ff['push'](_0x2c71ff['shift']());}catch(_0x779e85){_0x2c71ff['push'](_0x2c71ff['shift']());}}}(a61_0x4a4a,0xa7f6f));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';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':a61_0x4435a5(0x129),'description':'Official\x20Lovrabet\x20region:\x20'+ENABLED_LOVRABET_REGION_VALUES[a61_0x4435a5(0x115)](',\x20'),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':a61_0x4435a5(0x11c),'type':a61_0x4435a5(0x129),'description':'Independent-deployment\x20Domain\x20JSON\x20file'},{'name':a61_0x4435a5(0x124),'type':a61_0x4435a5(0x129),'description':a61_0x4435a5(0x12f)},{'name':a61_0x4435a5(0x111),'type':a61_0x4435a5(0x129),'description':a61_0x4435a5(0xf5)},{'name':a61_0x4435a5(0x128),'type':a61_0x4435a5(0x129),'description':a61_0x4435a5(0x110)},{'name':a61_0x4435a5(0x132),'type':a61_0x4435a5(0x129),'description':a61_0x4435a5(0x10d)},{'name':a61_0x4435a5(0x11e),'type':'string','description':a61_0x4435a5(0x120)},{'name':a61_0x4435a5(0x109),'type':a61_0x4435a5(0x129),'description':a61_0x4435a5(0x123)},{'name':a61_0x4435a5(0xfc),'type':a61_0x4435a5(0x129),'description':'Custom\x20Lovrabet\x20workspace\x20HTTPS\x20origin'},{'name':a61_0x4435a5(0x103),'type':a61_0x4435a5(0x129),'description':a61_0x4435a5(0x102)},{'name':a61_0x4435a5(0xf6),'type':a61_0x4435a5(0x129),'description':a61_0x4435a5(0x112)}];async function resolveRegion(_0x5b6206){const _0x314eca=a61_0x4435a5,_0x40f50c=_0x5b6206[_0x314eca(0x117)]('region');if(_0x40f50c){if(!isEnabledLovrabetRegion(_0x40f50c))throw CliErrors['validation']('Region\x20\x22'+_0x40f50c+_0x314eca(0x10c),_0x314eca(0x122)+ENABLED_LOVRABET_REGION_VALUES[_0x314eca(0x115)](',\x20'));return _0x40f50c;}if(_0x5b6206[_0x314eca(0x119)])return DEFAULT_LOVRABET_REGION;try{return await select({'message':_0x314eca(0x106),'default':DEFAULT_LOVRABET_REGION,'choices':ENABLED_LOVRABET_REGION_VALUES[_0x314eca(0x108)](_0x11f735=>({'name':getOfficialRoutingProfile(_0x11f735)[_0x314eca(0x101)]+'\x20('+_0x11f735+')','value':_0x11f735}))});}catch(_0x472f3d){if(_0x472f3d?.[_0x314eca(0x127)]===_0x314eca(0x12e))throw CliErrors[_0x314eca(0x134)]();throw _0x472f3d;}}export async function executeConfigInit(_0xc5bb03){const _0x436f4b=a61_0x4435a5,_0x597dcd=resolveDomainConfigInput(_0xc5bb03),_0x110758=_0x597dcd[_0x436f4b(0x12c)],_0x21cb93=Object[_0x436f4b(0xfd)](_0x110758)[_0x436f4b(0x10e)]>0x0;if(_0x21cb93&&_0xc5bb03['str']('region'))throw CliErrors['validation'](_0x436f4b(0xf8));if(!!_0x110758[_0x436f4b(0x114)]!==!!_0x110758[_0x436f4b(0x104)])throw CliErrors['validation'](_0x436f4b(0x113));const _0x2e2674=_0xc5bb03[_0x436f4b(0x131)](_0x436f4b(0xf9))?_0x436f4b(0xf9):'project',_0x2d020a=readScopedConfig(_0x2e2674);for(const _0x47f57a of DOMAIN_CONFIG_FIELDS)delete _0x2d020a[_0x47f57a];for(const _0x387762 of LEGACY_DOMAIN_CONFIG_FIELDS)delete _0x2d020a[_0x387762];delete _0x2d020a[_0x436f4b(0x11b)];let _0x25f93c=null;if(_0x21cb93)delete _0x2d020a[_0x436f4b(0x10b)],_0x597dcd[_0x436f4b(0xfe)]==='enterprise-v1'?_0x2d020a[_0x436f4b(0x11b)]={'protocol':ENTERPRISE_ROUTING_PROTOCOL,'kind':ENTERPRISE_ROUTING_KIND,'domains':_0x597dcd[_0x436f4b(0x118)],'cdn':_0x597dcd['cdn']}:Object['assign'](_0x2d020a,_0x110758);else{_0x25f93c=await resolveRegion(_0xc5bb03);if(_0x25f93c===DEFAULT_LOVRABET_REGION)delete _0x2d020a['region'];else _0x2d020a[_0x436f4b(0x10b)]=_0x25f93c;}return writeScopedConfig(_0x2d020a,_0x2e2674),{'ok':!![],'message':_0x21cb93?'Rabetbase\x20connection\x20configured\x20for\x20independent\x20deployment.\x20Domains:\x20'+Object[_0x436f4b(0xfd)](_0x597dcd[_0x436f4b(0xfe)]===_0x436f4b(0x10f)?_0x597dcd[_0x436f4b(0x118)]:_0x110758)[_0x436f4b(0x115)](',\x20')+'.':'Rabetbase\x20connection\x20configured\x20for\x20region:\x20'+_0x25f93c+'.','data':{'mode':_0x21cb93?_0x436f4b(0x12b):_0x436f4b(0x12a),'protocol':_0x597dcd[_0x436f4b(0xfe)]==='enterprise-v1'?ENTERPRISE_ROUTING_PROTOCOL:undefined,'region':_0x25f93c,'domains':_0x110758,'cdn':_0x597dcd[_0x436f4b(0xfe)]===_0x436f4b(0x10f)?_0x597dcd[_0x436f4b(0xf7)]:undefined}};}export const configInitDefinition={'service':a61_0x4435a5(0xff),'command':a61_0x4435a5(0x11a),'description':a61_0x4435a5(0x11d),'risk':a61_0x4435a5(0xfb),'confirmationDescription':'Updates\x20the\x20selected\x20Rabetbase\x20region\x20or\x20independent-deployment\x20Domain\x20configuration.\x20Cookie,\x20output\x20format,\x20and\x20app\x20bindings\x20stay\x20unchanged.','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':configInitFlags,'execute':executeConfigInit};
@@ -1 +1 @@
1
- const a62_0x4ebfff=a62_0x19b8;(function(_0xdf1148,_0x534e1b){const _0x99aa5d=a62_0x19b8,_0x1e9a33=_0xdf1148();while(!![]){try{const _0x3e5db8=-parseInt(_0x99aa5d(0x14c))/0x1+parseInt(_0x99aa5d(0x154))/0x2*(parseInt(_0x99aa5d(0x157))/0x3)+parseInt(_0x99aa5d(0x151))/0x4+parseInt(_0x99aa5d(0x14f))/0x5+-parseInt(_0x99aa5d(0x14b))/0x6+-parseInt(_0x99aa5d(0x155))/0x7*(-parseInt(_0x99aa5d(0x153))/0x8)+-parseInt(_0x99aa5d(0x14e))/0x9*(parseInt(_0x99aa5d(0x150))/0xa);if(_0x3e5db8===_0x534e1b)break;else _0x1e9a33['push'](_0x1e9a33['shift']());}catch(_0x39d310){_0x1e9a33['push'](_0x1e9a33['shift']());}}}(a62_0x2967,0xd86d7));function a62_0x19b8(_0xe2db48,_0x26ae9a){_0xe2db48=_0xe2db48-0x14b;const _0x296732=a62_0x2967();let _0x19b8ae=_0x296732[_0xe2db48];return _0x19b8ae;}function a62_0x2967(){const _0x5cc8e2=['read','3663416QsGUKH','334776IrLOJC','7ZfUvqH','global','12FHeMtq','boolean','config','List\x20all\x20config\x20values','8165904XlyTuz','786538evtOqv','list','9rzyVsg','8732455SWwxDj','164130KvDAVb','705808CvCjce'];a62_0x2967=function(){return _0x5cc8e2;};return a62_0x2967();}import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0x2d39b7){const _0x60a8e8=a62_0x19b8,_0x35f42c=_0x2d39b7['bool'](_0x60a8e8(0x156))?readScopedConfig('global'):readConfig();return{'ok':!![],'data':_0x35f42c};}export const configListDefinition={'service':a62_0x4ebfff(0x159),'command':a62_0x4ebfff(0x14d),'description':a62_0x4ebfff(0x15a),'risk':a62_0x4ebfff(0x152),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a62_0x4ebfff(0x156),'type':a62_0x4ebfff(0x158),'description':'Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','default':![]}],'execute':execute};
1
+ const a62_0x16325e=a62_0x3d28;(function(_0x399293,_0x34461a){const _0x3c2bb8=a62_0x3d28,_0x2d22e3=_0x399293();while(!![]){try{const _0x232ca8=parseInt(_0x3c2bb8(0xda))/0x1+-parseInt(_0x3c2bb8(0xde))/0x2*(-parseInt(_0x3c2bb8(0xd4))/0x3)+-parseInt(_0x3c2bb8(0xdb))/0x4*(-parseInt(_0x3c2bb8(0xdc))/0x5)+-parseInt(_0x3c2bb8(0xd8))/0x6*(parseInt(_0x3c2bb8(0xd7))/0x7)+parseInt(_0x3c2bb8(0xe0))/0x8+-parseInt(_0x3c2bb8(0xd0))/0x9*(parseInt(_0x3c2bb8(0xd2))/0xa)+parseInt(_0x3c2bb8(0xe2))/0xb*(-parseInt(_0x3c2bb8(0xdd))/0xc);if(_0x232ca8===_0x34461a)break;else _0x2d22e3['push'](_0x2d22e3['shift']());}catch(_0x3f9706){_0x2d22e3['push'](_0x2d22e3['shift']());}}}(a62_0x3395,0x5435b));function a62_0x3395(){const _0x315975=['300XcuSwo','630202GeJrfF','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','3355744NhdumY','read','397925tSYHiM','9kggVQS','bool','1677880wPpVmP','global','6REfTjC','boolean','List\x20all\x20config\x20values','3172589mcsKWW','6ROkfon','list','557339eKLmRX','32meyNqz','164565LQOjGr'];a62_0x3395=function(){return _0x315975;};return a62_0x3395();}import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0x1b1c4c){const _0x42b799=a62_0x3d28,_0x11dcb0=_0x1b1c4c[_0x42b799(0xd1)](_0x42b799(0xd3))?readScopedConfig(_0x42b799(0xd3)):readConfig();return{'ok':!![],'data':_0x11dcb0};}function a62_0x3d28(_0x54e65c,_0x30c746){_0x54e65c=_0x54e65c-0xd0;const _0x3395f2=a62_0x3395();let _0x3d2828=_0x3395f2[_0x54e65c];return _0x3d2828;}export const configListDefinition={'service':'config','command':a62_0x16325e(0xd9),'description':a62_0x16325e(0xd6),'risk':a62_0x16325e(0xe1),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'global','type':a62_0x16325e(0xd5),'description':a62_0x16325e(0xdf),'default':![]}],'execute':execute};
@@ -1 +1 @@
1
- const a63_0x87f442=a63_0x21cc;(function(_0x455679,_0x2bbefd){const _0x2d8fc0=a63_0x21cc,_0x5820f9=_0x455679();while(!![]){try{const _0x1f2a80=parseInt(_0x2d8fc0(0x8e))/0x1+parseInt(_0x2d8fc0(0xae))/0x2+parseInt(_0x2d8fc0(0xb0))/0x3+-parseInt(_0x2d8fc0(0xbd))/0x4*(parseInt(_0x2d8fc0(0x93))/0x5)+-parseInt(_0x2d8fc0(0xba))/0x6*(-parseInt(_0x2d8fc0(0x9a))/0x7)+-parseInt(_0x2d8fc0(0xb4))/0x8+-parseInt(_0x2d8fc0(0x97))/0x9;if(_0x1f2a80===_0x2bbefd)break;else _0x5820f9['push'](_0x5820f9['shift']());}catch(_0x3e57f0){_0x5820f9['push'](_0x5820f9['shift']());}}}(a63_0x499b,0x453b2));function a63_0x499b(){const _0x5b8302=['710558TDWYjK','`,\x20`','905487fmHPKQ','riskLevel','Top-level\x20key\x20\x22','Use\x20`','867232UbXboi','includes','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','set','appcode','21036GNtiuL','key','apps','8XKDFCe','value','486050bUSsrh','\x20(stored\x20as\x20a\x20single\x20app\x20profile)','\x20workspace\x20add\x20<name>\x20--appcode\x20','\x20set\x20to:\x20','validation','815980TXqiri','write','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','app','5179950zkYsET','locale','Global','301AicLbO','\x22.\x20Allowed:\x20','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','Config\x20value','boolean','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','\x22\x20is\x20not\x20settable.','string','str','keys','Invalid\x20value\x20for\x20\x22','Missing\x20value.','Project','global','length','\x20appcode\x20set\x20to:\x20','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','Usage:\x20','bool','env'];a63_0x499b=function(){return _0x5b8302;};return a63_0x499b();}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';function a63_0x21cc(_0x4ba66f,_0x1c3bb5){_0x4ba66f=_0x4ba66f-0x8d;const _0x499bc2=a63_0x499b();let _0x21cc4c=_0x499bc2[_0x4ba66f];return _0x21cc4c;}async function execute(_0x1d18ef){const _0x4c3a69=a63_0x21cc,_0x2062b7=_0x1d18ef['str'](_0x4c3a69(0xbb)),_0x35cc54=_0x1d18ef[_0x4c3a69(0xa2)](_0x4c3a69(0x8d));if(!_0x2062b7)throw CliErrors[_0x4c3a69(0x92)]('Missing\x20key.','Usage:\x20'+CLI_BIN_NAME+'\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>');if(_0x35cc54===undefined||_0x35cc54==='')throw CliErrors[_0x4c3a69(0x92)](_0x4c3a69(0xa5),_0x4c3a69(0xab)+CLI_BIN_NAME+_0x4c3a69(0xb7));let _0x7e31a7=_0x2062b7,_0x35e07a=_0x35cc54;if(_0x35cc54[_0x4c3a69(0xa8)]>0x1f4)throw CliErrors[_0x4c3a69(0x92)](_0x4c3a69(0x9f));if(_0x2062b7===_0x4c3a69(0xb1))throw CliErrors[_0x4c3a69(0x92)](_0x4c3a69(0xb6));if(!isTopLevelConfigKey(_0x2062b7))throw CliErrors[_0x4c3a69(0x92)](_0x4c3a69(0xb2)+_0x2062b7+_0x4c3a69(0xa0),'Settable\x20top-level\x20keys:\x20'+getTopLevelConfigKeySummary());if(CONFIG_ENUM_VALUES[_0x2062b7]&&!CONFIG_ENUM_VALUES[_0x2062b7][_0x4c3a69(0xb5)](_0x35cc54))throw CliErrors[_0x4c3a69(0x92)](_0x4c3a69(0xa4)+_0x2062b7+_0x4c3a69(0x9b)+CONFIG_ENUM_VALUES[_0x2062b7]['join'](',\x20'));if(_0x2062b7==='locale'&&!normalizeLocale(_0x35cc54))throw CliErrors['validation']('Invalid\x20locale\x20value.',_0x4c3a69(0x9c));DOMAIN_CONFIG_FIELDS[_0x4c3a69(0xb5)](_0x2062b7)&&(_0x35e07a=normalizeDomainOrigin(_0x2062b7,_0x35cc54));const _0x557c6b={'global':_0x1d18ef[_0x4c3a69(0xac)](_0x4c3a69(0xa7))},_0x577e4f=resolveWriteScope(_0x557c6b),_0x30c2e2=readScopedConfig(_0x577e4f);_0x2062b7===_0x4c3a69(0x96)&&(_0x7e31a7=_0x4c3a69(0xb9),delete _0x30c2e2[_0x4c3a69(0x96)]);_0x2062b7===_0x4c3a69(0x98)&&(_0x35e07a=normalizeLocale(_0x35cc54));if(_0x2062b7===_0x4c3a69(0xad)){_0x35e07a=normalizeEnv(_0x35cc54);if(!isProduction(_0x35e07a)&&!isDaily(_0x35e07a))throw CliErrors[_0x4c3a69(0x92)](_0x4c3a69(0x95),'Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.');}if(_0x2062b7==='appcode'){const _0x5ea5bd=_0x30c2e2[_0x4c3a69(0xbc)]&&typeof _0x30c2e2[_0x4c3a69(0xbc)]==='object'?Object[_0x4c3a69(0xa3)](_0x30c2e2[_0x4c3a69(0xbc)]):[];if(_0x5ea5bd['length']>0x0)throw CliErrors['validation'](_0x4c3a69(0xaa),_0x4c3a69(0xb3)+CLI_BIN_NAME+_0x4c3a69(0x90)+_0x35e07a+_0x4c3a69(0xaf)+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.');const _0x3c7866=buildCanonicalProjectConfig({..._0x30c2e2},{'appCodes':[_0x35e07a],'env':typeof _0x30c2e2[_0x4c3a69(0xad)]===_0x4c3a69(0xa1)?_0x30c2e2[_0x4c3a69(0xad)]:undefined});writeScopedConfig(_0x3c7866,_0x577e4f);const _0x36e260=_0x577e4f===_0x4c3a69(0xa7)?_0x4c3a69(0x99):'Project';return{'ok':!![],'message':'✓\x20'+_0x36e260+_0x4c3a69(0xa9)+_0x35e07a+_0x4c3a69(0x8f)};}_0x30c2e2[_0x7e31a7]=_0x35e07a,writeScopedConfig(_0x30c2e2,_0x577e4f);const _0x5eb478=_0x577e4f==='global'?_0x4c3a69(0x99):_0x4c3a69(0xa6);return{'ok':!![],'message':'✓\x20'+_0x5eb478+'\x20'+_0x7e31a7+_0x4c3a69(0x91)+_0x35e07a};}export const configSetDefinition={'service':'config','command':a63_0x87f442(0xb8),'description':'Set\x20a\x20config\x20value','risk':a63_0x87f442(0x94),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a63_0x87f442(0xbb),'type':a63_0x87f442(0xa1),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a63_0x87f442(0x8d),'type':a63_0x87f442(0xa1),'description':a63_0x87f442(0x9d),'required':!![]},{'name':'global','type':a63_0x87f442(0x9e),'description':'Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','default':![]}],'execute':execute};
1
+ const a63_0x350829=a63_0x4c6f;function a63_0x55d2(){const _0x18bb7b=['set','key','includes','2aMBEdx','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','1357335qMONOw','`,\x20`','keys','app','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','Usage:\x20','88914dXpvXC','global','Set\x20a\x20config\x20value','\x20set\x20to:\x20','104bFJrVw','\x22.\x20Allowed:\x20','228912DlJAqE','266165RHMQEz','value','env','12TFGofw','str','67979osScOA','Invalid\x20value\x20for\x20\x22','validation','string','1324050ARfpdO','join','Top-level\x20key\x20\x22','4182387mxtGEn','Missing\x20key.','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','Missing\x20value.','riskLevel','\x22\x20is\x20not\x20settable.','Config\x20value','20rRQQAY','Use\x20`','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','apps','appcode','Settable\x20top-level\x20keys:\x20','boolean','\x20(stored\x20as\x20a\x20single\x20app\x20profile)','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','length','\x20workspace\x20use\x20--app\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','bool','12PSJccf','Global','locale'];a63_0x55d2=function(){return _0x18bb7b;};return a63_0x55d2();}(function(_0x23a3ae,_0x4251eb){const _0x5f47cf=a63_0x4c6f,_0x356a09=_0x23a3ae();while(!![]){try{const _0x59b735=-parseInt(_0x5f47cf(0x1f8))/0x1*(-parseInt(_0x5f47cf(0x1e3))/0x2)+-parseInt(_0x5f47cf(0x1c7))/0x3+-parseInt(_0x5f47cf(0x1f2))/0x4+parseInt(_0x5f47cf(0x1f3))/0x5*(-parseInt(_0x5f47cf(0x1f6))/0x6)+-parseInt(_0x5f47cf(0x1ec))/0x7*(-parseInt(_0x5f47cf(0x1f0))/0x8)+-parseInt(_0x5f47cf(0x1e5))/0x9*(-parseInt(_0x5f47cf(0x1d1))/0xa)+-parseInt(_0x5f47cf(0x1ca))/0xb*(-parseInt(_0x5f47cf(0x1dd))/0xc);if(_0x59b735===_0x4251eb)break;else _0x356a09['push'](_0x356a09['shift']());}catch(_0x50f393){_0x356a09['push'](_0x356a09['shift']());}}}(a63_0x55d2,0x4ba94));import{CliErrors}from'../../errors.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';import{CLI_BIN_NAME,CONFIG_ENUM_VALUES,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';function a63_0x4c6f(_0xf10d24,_0x280d39){_0xf10d24=_0xf10d24-0x1c6;const _0x55d285=a63_0x55d2();let _0x4c6fd3=_0x55d285[_0xf10d24];return _0x4c6fd3;}import{normalizeEnv,isProduction,isDaily}from'../../constant/env.js';import{DOMAIN_CONFIG_FIELDS,normalizeDomainOrigin}from'../../config/domain-config.js';async function execute(_0x43ebff){const _0x3b2eb8=a63_0x4c6f,_0x2f5478=_0x43ebff[_0x3b2eb8(0x1f7)](_0x3b2eb8(0x1e1)),_0x35024c=_0x43ebff['str'](_0x3b2eb8(0x1f4));if(!_0x2f5478)throw CliErrors[_0x3b2eb8(0x1fa)](_0x3b2eb8(0x1cb),'Usage:\x20'+CLI_BIN_NAME+_0x3b2eb8(0x1e9));if(_0x35024c===undefined||_0x35024c==='')throw CliErrors[_0x3b2eb8(0x1fa)](_0x3b2eb8(0x1cd),_0x3b2eb8(0x1eb)+CLI_BIN_NAME+'\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>');let _0x51fdb0=_0x2f5478,_0x157b6a=_0x35024c;if(_0x35024c[_0x3b2eb8(0x1da)]>0x1f4)throw CliErrors[_0x3b2eb8(0x1fa)](_0x3b2eb8(0x1d9));if(_0x2f5478===_0x3b2eb8(0x1ce))throw CliErrors[_0x3b2eb8(0x1fa)](_0x3b2eb8(0x1d3));if(!isTopLevelConfigKey(_0x2f5478))throw CliErrors[_0x3b2eb8(0x1fa)](_0x3b2eb8(0x1c9)+_0x2f5478+_0x3b2eb8(0x1cf),_0x3b2eb8(0x1d6)+getTopLevelConfigKeySummary());if(CONFIG_ENUM_VALUES[_0x2f5478]&&!CONFIG_ENUM_VALUES[_0x2f5478][_0x3b2eb8(0x1e2)](_0x35024c))throw CliErrors[_0x3b2eb8(0x1fa)](_0x3b2eb8(0x1f9)+_0x2f5478+_0x3b2eb8(0x1f1)+CONFIG_ENUM_VALUES[_0x2f5478][_0x3b2eb8(0x1c8)](',\x20'));if(_0x2f5478===_0x3b2eb8(0x1df)&&!normalizeLocale(_0x35024c))throw CliErrors['validation']('Invalid\x20locale\x20value.',_0x3b2eb8(0x1e4));DOMAIN_CONFIG_FIELDS['includes'](_0x2f5478)&&(_0x157b6a=normalizeDomainOrigin(_0x2f5478,_0x35024c));const _0x4eb9b0={'global':_0x43ebff[_0x3b2eb8(0x1dc)](_0x3b2eb8(0x1ed))},_0x5b1b38=resolveWriteScope(_0x4eb9b0),_0xa1b226=readScopedConfig(_0x5b1b38);_0x2f5478===_0x3b2eb8(0x1e8)&&(_0x51fdb0=_0x3b2eb8(0x1d5),delete _0xa1b226[_0x3b2eb8(0x1e8)]);_0x2f5478==='locale'&&(_0x157b6a=normalizeLocale(_0x35024c));if(_0x2f5478==='env'){_0x157b6a=normalizeEnv(_0x35024c);if(!isProduction(_0x157b6a)&&!isDaily(_0x157b6a))throw CliErrors[_0x3b2eb8(0x1fa)](_0x3b2eb8(0x1cc),'Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.');}if(_0x2f5478==='appcode'){const _0x2a5f5c=_0xa1b226[_0x3b2eb8(0x1d4)]&&typeof _0xa1b226[_0x3b2eb8(0x1d4)]==='object'?Object[_0x3b2eb8(0x1e7)](_0xa1b226[_0x3b2eb8(0x1d4)]):[];if(_0x2a5f5c[_0x3b2eb8(0x1da)]>0x0)throw CliErrors['validation']('Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.',_0x3b2eb8(0x1d2)+CLI_BIN_NAME+'\x20workspace\x20add\x20<name>\x20--appcode\x20'+_0x157b6a+_0x3b2eb8(0x1e6)+CLI_BIN_NAME+_0x3b2eb8(0x1db));const _0x18a0b3=buildCanonicalProjectConfig({..._0xa1b226},{'appCodes':[_0x157b6a],'env':typeof _0xa1b226[_0x3b2eb8(0x1f5)]===_0x3b2eb8(0x1c6)?_0xa1b226['env']:undefined});writeScopedConfig(_0x18a0b3,_0x5b1b38);const _0x5b871d=_0x5b1b38==='global'?_0x3b2eb8(0x1de):'Project';return{'ok':!![],'message':'✓\x20'+_0x5b871d+'\x20appcode\x20set\x20to:\x20'+_0x157b6a+_0x3b2eb8(0x1d8)};}_0xa1b226[_0x51fdb0]=_0x157b6a,writeScopedConfig(_0xa1b226,_0x5b1b38);const _0x1e98fd=_0x5b1b38==='global'?_0x3b2eb8(0x1de):'Project';return{'ok':!![],'message':'✓\x20'+_0x1e98fd+'\x20'+_0x51fdb0+_0x3b2eb8(0x1ef)+_0x157b6a};}export const configSetDefinition={'service':'config','command':a63_0x350829(0x1e0),'description':a63_0x350829(0x1ee),'risk':'write','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a63_0x350829(0x1e1),'type':a63_0x350829(0x1c6),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a63_0x350829(0x1f4),'type':a63_0x350829(0x1c6),'description':a63_0x350829(0x1d0),'required':!![]},{'name':a63_0x350829(0x1ed),'type':a63_0x350829(0x1d7),'description':a63_0x350829(0x1ea),'default':![]}],'execute':execute};
@@ -1 +1 @@
1
- (function(_0x132594,_0x3f20c0){var _0x3b7a66=a64_0xad12,_0x146f5c=_0x132594();while(!![]){try{var _0x392123=-parseInt(_0x3b7a66(0x7d))/0x1+parseInt(_0x3b7a66(0x7e))/0x2+-parseInt(_0x3b7a66(0x7c))/0x3+-parseInt(_0x3b7a66(0x79))/0x4+-parseInt(_0x3b7a66(0x81))/0x5+parseInt(_0x3b7a66(0x7b))/0x6+-parseInt(_0x3b7a66(0x7f))/0x7*(-parseInt(_0x3b7a66(0x80))/0x8);if(_0x392123===_0x3f20c0)break;else _0x146f5c['push'](_0x146f5c['shift']());}catch(_0x907eaa){_0x146f5c['push'](_0x146f5c['shift']());}}}(a64_0x5477,0x33000));import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';import{CliErrors}from'../../errors.js';function a64_0xad12(_0x3d8820,_0x148af8){_0x3d8820=_0x3d8820-0x77;var _0x5477bd=a64_0x5477();var _0xad1208=_0x5477bd[_0x3d8820];return _0xad1208;}import{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';export{CLI_BIN_NAME};function a64_0x5477(){var _0x2c7998=['262228MHWWBf','110380qqLhzm','98yjusrM','465096vfcBol','32370uBvVgb','validation','global','project','483304WtFeCL','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','79224DlhEeV','851664wnTXVd'];a64_0x5477=function(){return _0x2c7998;};return a64_0x5477();}export{normalizeLocale};export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0xa19218){var _0x4b894e=a64_0xad12;if(_0xa19218[_0x4b894e(0x77)])return _0x4b894e(0x77);if(!isInProject())throw CliErrors[_0x4b894e(0x82)](_0x4b894e(0x7a),'Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`'+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20first.');return _0x4b894e(0x78);}export function readScopedConfig(_0x3e757c){return readConfigFile(resolveWriteConfigPath(_0x3e757c));}export function writeScopedConfig(_0x1ea60d,_0x370241){writeConfigFile(resolveWriteConfigPath(_0x370241),_0x1ea60d);}
1
+ (function(_0x5413f9,_0x122f68){var _0x370544=a64_0x8210,_0x35ba96=_0x5413f9();while(!![]){try{var _0x2ffc60=-parseInt(_0x370544(0x1c1))/0x1*(-parseInt(_0x370544(0x1c4))/0x2)+parseInt(_0x370544(0x1cd))/0x3*(-parseInt(_0x370544(0x1c9))/0x4)+-parseInt(_0x370544(0x1cb))/0x5+parseInt(_0x370544(0x1ca))/0x6+parseInt(_0x370544(0x1c5))/0x7+parseInt(_0x370544(0x1ce))/0x8+-parseInt(_0x370544(0x1cc))/0x9;if(_0x2ffc60===_0x122f68)break;else _0x35ba96['push'](_0x35ba96['shift']());}catch(_0x483aa0){_0x35ba96['push'](_0x35ba96['shift']());}}}(a64_0x21b5,0xcdace));import{CLI_BIN_NAME}from'../../constant/cli.js';function a64_0x21b5(){var _0x5798d2=['Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','62fjMDUY','7428841DcitsB','\x20workspace\x20init\x20--appcode\x20<code>`\x20first.','project','global','4PIMdgd','8372904zeBlQS','2054470rzsxmp','13110021nNxuOx','2480793CuOfxX','1628848bdZTYd','28277yMWICc','validation'];a64_0x21b5=function(){return _0x5798d2;};return a64_0x21b5();}import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';function a64_0x8210(_0x556333,_0x211bf2){_0x556333=_0x556333-0x1c1;var _0x21b53f=a64_0x21b5();var _0x8210fc=_0x21b53f[_0x556333];return _0x8210fc;}import{CliErrors}from'../../errors.js';import{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';export{CLI_BIN_NAME};export{normalizeLocale};export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0x212c83){var _0x2c8b6f=a64_0x8210;if(_0x212c83[_0x2c8b6f(0x1c8)])return'global';if(!isInProject())throw CliErrors[_0x2c8b6f(0x1c2)]('Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).',_0x2c8b6f(0x1c3)+CLI_BIN_NAME+_0x2c8b6f(0x1c6));return _0x2c8b6f(0x1c7);}export function readScopedConfig(_0x461242){return readConfigFile(resolveWriteConfigPath(_0x461242));}export function writeScopedConfig(_0x331d06,_0x37b8c8){writeConfigFile(resolveWriteConfigPath(_0x37b8c8),_0x331d06);}
@@ -1 +1 @@
1
- const a65_0x11817b=a65_0x3d75;(function(_0x4e3af7,_0x1914be){const _0x412590=a65_0x3d75,_0x5e3b74=_0x4e3af7();while(!![]){try{const _0x353ce2=parseInt(_0x412590(0x1a1))/0x1+-parseInt(_0x412590(0x180))/0x2*(-parseInt(_0x412590(0x19f))/0x3)+-parseInt(_0x412590(0x1a2))/0x4+-parseInt(_0x412590(0x14f))/0x5+-parseInt(_0x412590(0x18d))/0x6*(-parseInt(_0x412590(0x19e))/0x7)+parseInt(_0x412590(0x183))/0x8*(parseInt(_0x412590(0x16a))/0x9)+-parseInt(_0x412590(0x19d))/0xa*(-parseInt(_0x412590(0x18f))/0xb);if(_0x353ce2===_0x1914be)break;else _0x5e3b74['push'](_0x5e3b74['shift']());}catch(_0x36dbeb){_0x5e3b74['push'](_0x5e3b74['shift']());}}}(a65_0x2255,0xdfc45));import{CliErrors}from'../../errors.js';const LOCAL_KEY=/^[a-z][a-z0-9_]{0,63}$/,SUPPORTED_CARDINALITIES=new Set([a65_0x11817b(0x150),'ONE_TO_ONE']),SUPPORTED_FIELD_TYPES=new Set([a65_0x11817b(0x195),a65_0x11817b(0x13c),a65_0x11817b(0x15e),'BOOLEAN',a65_0x11817b(0x199),a65_0x11817b(0x161),a65_0x11817b(0x181),'USER','ADDRESS',a65_0x11817b(0x172)]);export function isDatasetBatchDesign(_0x3a994b){const _0x3e2399=a65_0x11817b;return isObject(_0x3a994b)&&_0x3a994b[_0x3e2399(0x164)]==='dataset-batch';}export function validateDatasetBatchDesign(_0x59dafb){const _0xb56f5=a65_0x11817b;(!isObject(_0x59dafb)||_0x59dafb['kind']!=='dataset-batch')&&fail(_0xb56f5(0x194));_0x59dafb[_0xb56f5(0x167)]!==0x1&&fail(_0xb56f5(0x158));const _0x144ec7=objectArray(_0x59dafb['datasets'],'datasets',0x1,0x14),_0x3e9001=objectArray(_0x59dafb[_0xb56f5(0x169)],_0xb56f5(0x169),0x0,0xc8),_0x4dcf71=objectArray(_0x59dafb['unresolvedRelations'],'unresolvedRelations',0x0,0xc8),_0x415ac1=new Set(),_0x998e19=new Map();for(const [_0x175730,_0x35348a]of _0x144ec7[_0xb56f5(0x189)]()){const _0x49c70a=requiredString(_0x35348a[_0xb56f5(0x184)],'datasets['+_0x175730+_0xb56f5(0x19c));!LOCAL_KEY[_0xb56f5(0x175)](_0x49c70a)&&fail(_0xb56f5(0x149)+_0x175730+'].localKey\x20must\x20match\x20'+LOCAL_KEY[_0xb56f5(0x19a)]+'.');_0x415ac1['has'](_0x49c70a)&&fail(_0xb56f5(0x165));_0x415ac1[_0xb56f5(0x19b)](_0x49c70a);!isObject(_0x35348a[_0xb56f5(0x17a)])&&fail(_0xb56f5(0x149)+_0x175730+'].design\x20must\x20be\x20an\x20object.');rejectServerDatasetIdentity(_0x35348a['design'],_0xb56f5(0x149)+_0x175730+'].design');if(!isObject(_0x35348a[_0xb56f5(0x17a)][_0xb56f5(0x1a3)]))fail('datasets['+_0x175730+_0xb56f5(0x18c));rejectServerDatasetIdentity(_0x35348a['design']['dataset'],'datasets['+_0x175730+_0xb56f5(0x168)),requiredString(_0x35348a['design'][_0xb56f5(0x1a3)][_0xb56f5(0x18a)],'datasets['+_0x175730+_0xb56f5(0x185));'relations'in _0x35348a['design']&&(!Array[_0xb56f5(0x17f)](_0x35348a[_0xb56f5(0x17a)][_0xb56f5(0x169)])||_0x35348a[_0xb56f5(0x17a)][_0xb56f5(0x169)][_0xb56f5(0x18b)]!==0x0)&&fail('datasets['+_0x175730+_0xb56f5(0x188));const _0x2dbed8=objectArray(_0x35348a[_0xb56f5(0x17a)][_0xb56f5(0x144)],_0xb56f5(0x149)+_0x175730+_0xb56f5(0x159),0x1,0xc8),_0x2a17b4=new Map();for(const [_0x405864,_0x15970e]of _0x2dbed8[_0xb56f5(0x189)]()){const _0x55ea30=fieldName(_0x15970e);if(!_0x55ea30)fail('datasets['+_0x175730+_0xb56f5(0x187)+_0x405864+']\x20must\x20have\x20a\x20non-empty\x20name\x20or\x20code.');const _0x20c9b1=_0x55ea30[_0xb56f5(0x170)]();if(_0x2a17b4[_0xb56f5(0x13d)](_0x20c9b1))fail(_0xb56f5(0x145)+_0x49c70a+_0xb56f5(0x177));const _0x48f0ba=stringValue(_0x15970e[_0xb56f5(0x14c)]??_0x15970e[_0xb56f5(0x16c)])[_0xb56f5(0x17c)]();if(!SUPPORTED_FIELD_TYPES[_0xb56f5(0x13d)](_0x48f0ba))fail(_0xb56f5(0x149)+_0x175730+'].design.fields['+_0x405864+_0xb56f5(0x173));_0x2a17b4[_0xb56f5(0x15f)](_0x20c9b1,_0x48f0ba),[_0x15970e['refTable'],_0x15970e[_0xb56f5(0x14d)],_0x15970e['refTableLabelField']]['some'](_0x2b82ab=>stringValue(_0x2b82ab))&&fail(_0xb56f5(0x149)+_0x175730+'].design.fields['+_0x405864+_0xb56f5(0x13e));}_0x998e19[_0xb56f5(0x15f)](_0x49c70a,_0x2a17b4);}const _0x485657=new Set(),_0x352868=new Set();for(const [_0x1c70eb,_0x354179]of _0x3e9001[_0xb56f5(0x189)]()){const _0x3dd694=validateRelation(_0x354179,_0x1c70eb,_0x415ac1,_0x998e19);if(_0x485657[_0xb56f5(0x13d)](_0x3dd694))fail('Dataset\x20batch\x20relations\x20must\x20be\x20unique.');_0x485657['add'](_0x3dd694);const _0x2ae93f=_0x3dd694[_0xb56f5(0x14a)]('\x00',0x2)[_0xb56f5(0x13f)]('\x00');if(_0x352868[_0xb56f5(0x13d)](_0x2ae93f))fail(_0xb56f5(0x17b));_0x352868[_0xb56f5(0x19b)](_0x2ae93f);}for(const [_0x4ba8fa,_0x4af41e]of _0x4dcf71['entries']()){requiredString(_0x4af41e[_0xb56f5(0x151)],'unresolvedRelations['+_0x4ba8fa+_0xb56f5(0x197)),validateConfidence(_0x4af41e[_0xb56f5(0x162)],'unresolvedRelations['+_0x4ba8fa+_0xb56f5(0x1a4));}return _0x59dafb;}export function reconcileBatchResult(_0x360587){const _0x13b8a5=a65_0x11817b;if(!isObject(_0x360587))return null;try{const _0x104e64=stringArray(_0x360587[_0x13b8a5(0x14e)],_0x13b8a5(0x14e),0x1,0x14),_0x3ea913=new Set(_0x104e64);if(_0x3ea913[_0x13b8a5(0x179)]!==_0x104e64[_0x13b8a5(0x18b)]||_0x104e64[_0x13b8a5(0x196)](_0x1f72c1=>!LOCAL_KEY[_0x13b8a5(0x175)](_0x1f72c1)))return null;const _0x385bcc=objectArray(_0x360587[_0x13b8a5(0x15b)],_0x13b8a5(0x15b),0x1,0x14),_0x589061=new Map(),_0x58e91d=new Set();for(const _0x27392d of _0x385bcc){const _0x158e57=requiredString(_0x27392d[_0x13b8a5(0x184)],_0x13b8a5(0x154)),_0x22c9f2=requiredString(_0x27392d[_0x13b8a5(0x157)]??_0x27392d[_0x13b8a5(0x143)],_0x13b8a5(0x160));if(_0x589061[_0x13b8a5(0x13d)](_0x158e57)||_0x58e91d[_0x13b8a5(0x13d)](_0x22c9f2))return null;_0x589061[_0x13b8a5(0x15f)](_0x158e57,_0x22c9f2),_0x58e91d[_0x13b8a5(0x19b)](_0x22c9f2);}if(!sameSet(_0x3ea913,new Set(_0x589061[_0x13b8a5(0x14b)]())))return null;const _0x218c54=objectArray(_0x360587['expectedRelations'],_0x13b8a5(0x141),0x0,0xc8),_0x1800e6=objectArray(_0x360587['createdRelations'],_0x13b8a5(0x142),0x0,0xc8),_0x3b8403=relationTupleSet(_0x218c54,![],_0x589061),_0x25a276=relationTupleSet(_0x1800e6,!![],_0x589061);if(!_0x3b8403||!_0x25a276||!sameSet(_0x3b8403,_0x25a276))return null;const _0x3ee518=objectArray(_0x360587['unresolvedRelations'],_0x13b8a5(0x198),0x0,0xc8);return{'expectedLocalKeys':_0x104e64,'expectedRelations':_0x218c54,'createdDatasets':_0x385bcc,'createdRelations':_0x1800e6,'unresolvedRelations':_0x3ee518,...isObject(_0x360587[_0x13b8a5(0x1a5)])?{'metrics':_0x360587[_0x13b8a5(0x1a5)]}:{}};}catch{return null;}}function validateRelation(_0x425779,_0x3291a0,_0x37c583,_0x3ba638){const _0x5ad591=a65_0x11817b,_0x1e4183='relations['+_0x3291a0+']',_0x1232fb=requiredString(_0x425779['fromDatasetKey'],_0x1e4183+_0x5ad591(0x16e)),_0x504169=requiredString(_0x425779[_0x5ad591(0x16b)],_0x1e4183+_0x5ad591(0x1a0)),_0x2dbfa3=requiredString(_0x425779['fromField'],_0x1e4183+_0x5ad591(0x16d))[_0x5ad591(0x170)](),_0x48fff4=requiredString(_0x425779[_0x5ad591(0x193)],_0x1e4183+_0x5ad591(0x140))['toLowerCase']();if(!_0x37c583[_0x5ad591(0x13d)](_0x1232fb)||!_0x37c583[_0x5ad591(0x13d)](_0x504169))fail(_0x1e4183+_0x5ad591(0x148));const _0x9e3ae9=_0x3ba638[_0x5ad591(0x15a)](_0x1232fb)?.[_0x5ad591(0x15a)](_0x2dbfa3),_0x51ee14=_0x3ba638['get'](_0x504169)?.[_0x5ad591(0x15a)](_0x48fff4);if(_0x9e3ae9===undefined||_0x51ee14===undefined)fail(_0x1e4183+_0x5ad591(0x146));if(_0x9e3ae9&&_0x51ee14&&_0x9e3ae9!==_0x51ee14)fail(_0x1e4183+_0x5ad591(0x190));const _0x727fd=stringValue(_0x425779[_0x5ad591(0x17d)])||_0x5ad591(0x17e);if(_0x727fd!==_0x5ad591(0x17e))fail(_0x1e4183+_0x5ad591(0x15c));const _0xc3b87=stringValue(_0x425779[_0x5ad591(0x155)])||_0x5ad591(0x150);if(!SUPPORTED_CARDINALITIES[_0x5ad591(0x13d)](_0xc3b87))fail(_0x1e4183+'.cardinality\x20is\x20not\x20supported.');return requiredString(_0x425779[_0x5ad591(0x151)],_0x1e4183+'.reason'),validateConfidence(_0x425779[_0x5ad591(0x162)],_0x1e4183+'.confidence'),tuple(_0x1232fb,_0x2dbfa3,_0x504169,_0x48fff4,'lookup',_0xc3b87);}function relationTupleSet(_0x269194,_0x5449a0,_0x107017){const _0x13d72a=a65_0x11817b,_0x1e7fc9=new Set();for(const _0x2ab02a of _0x269194){const _0x1dfeee=stringValue(_0x2ab02a[_0x13d72a(0x176)]),_0x10b551=stringValue(_0x2ab02a[_0x13d72a(0x16b)]),_0x115a0d=stringValue(_0x2ab02a['fromField'])[_0x13d72a(0x170)](),_0x585be8=stringValue(_0x2ab02a['toField'])[_0x13d72a(0x170)](),_0x10f204=stringValue(_0x2ab02a[_0x13d72a(0x17d)]),_0x1ccda4=stringValue(_0x2ab02a[_0x13d72a(0x155)]);if(!_0x1dfeee||!_0x10b551||!_0x115a0d||!_0x585be8||_0x10f204!=='lookup'||!SUPPORTED_CARDINALITIES['has'](_0x1ccda4))return null;if(!_0x107017[_0x13d72a(0x13d)](_0x1dfeee)||!_0x107017['has'](_0x10b551))return null;if(_0x5449a0&&(stringValue(_0x2ab02a[_0x13d72a(0x191)])!==_0x107017[_0x13d72a(0x15a)](_0x1dfeee)||stringValue(_0x2ab02a['toDatasetCode'])!==_0x107017[_0x13d72a(0x15a)](_0x10b551)))return null;const _0x210ea1=tuple(_0x1dfeee,_0x115a0d,_0x10b551,_0x585be8,_0x10f204,_0x1ccda4);if(_0x1e7fc9[_0x13d72a(0x13d)](_0x210ea1))return null;_0x1e7fc9[_0x13d72a(0x19b)](_0x210ea1);}return _0x1e7fc9;}function rejectServerDatasetIdentity(_0x2eb650,_0xf3dc7c){const _0x1db191=a65_0x11817b;for(const _0x19ed13 of['id',_0x1db191(0x166),_0x1db191(0x156),'code',_0x1db191(0x143),_0x1db191(0x152)]){if(_0x2eb650[_0x19ed13]!==undefined&&_0x2eb650[_0x19ed13]!==null&&_0x2eb650[_0x19ed13]!=='')fail(_0xf3dc7c+'.'+_0x19ed13+_0x1db191(0x147));}}function objectArray(_0x17e311,_0x350544,_0x36f918,_0x2689b4){const _0x55173c=a65_0x11817b;return(!Array['isArray'](_0x17e311)||_0x17e311[_0x55173c(0x18b)]<_0x36f918||_0x17e311['length']>_0x2689b4||_0x17e311[_0x55173c(0x196)](_0x6d8159=>!isObject(_0x6d8159)))&&fail(_0x350544+_0x55173c(0x18e)+_0x36f918+'..'+_0x2689b4+'\x20objects.'),_0x17e311;}function a65_0x2255(){const _0x49645c=['createdDatasets[].code','MULTI_SELECT','confidence','\x20is\x20required.','kind','Dataset\x20batch\x20localKey\x20values\x20must\x20be\x20unique.','datasetId','schemaVersion','].design.dataset','relations','189aNHFYP','toDatasetKey','fieldType','.fromField','.fromDatasetKey','validation','toLowerCase','fieldName','UPLOAD','].type\x20is\x20not\x20supported.','object','test','fromDatasetKey','\x20field\x20names\x20must\x20be\x20unique\x20ignoring\x20case.','number','size','design','Each\x20source\x20field\x20may\x20target\x20at\x20most\x20one\x20relation.','toUpperCase','relationType','lookup','isArray','22OZJmNp','DATE_RANGE','\x20non-empty\x20strings.','245576PBTyAY','localKey','].design.dataset.datasetName','name','].design.fields[','].design.relations\x20must\x20be\x20an\x20empty\x20array;\x20use\x20top-level\x20relations.','entries','datasetName','length','].design.dataset\x20must\x20be\x20an\x20object.','91074unJVgx','\x20must\x20contain\x20','279763UKBmNi','\x20connects\x20incompatible\x20field\x20types.','fromDatasetCode','\x20must\x20be\x20between\x200\x20and\x201.','toField','Batch\x20--design-file\x20must\x20have\x20kind\x20\x22dataset-batch\x22.','TEXT','some','].reason','unresolvedRelations','SELECT','source','add','].localKey','610xqnTKu','49fifElL','172878SqvqCx','.toDatasetKey','308111ROxvbo','7256560Plbauo','dataset','].confidence','metrics','map','NUMBER','has',']\x20must\x20not\x20contain\x20embedded\x20relation\x20references.','join','.toField','expectedRelations','createdRelations','datasetCode','fields','Dataset\x20','\x20references\x20an\x20unknown\x20field.','\x20must\x20not\x20be\x20supplied\x20by\x20the\x20client.','\x20references\x20an\x20unknown\x20dataset\x20localKey.','datasets[','split','keys','type','refTableField','expectedLocalKeys','2568055RpLQdc','MANY_TO_ONE','reason','modelCode','trim','createdDatasets[].localKey','cardinality','modelId','code','Dataset\x20batch\x20schemaVersion\x20must\x20be\x201.','].design.fields','get','createdDatasets','.relationType\x20must\x20be\x20\x22lookup\x22.','fieldCode','DATETIME','set'];a65_0x2255=function(){return _0x49645c;};return a65_0x2255();}function stringArray(_0x48db4a,_0x20dfd2,_0x2ba273,_0x36ac90){const _0x4a69be=a65_0x11817b;return(!Array[_0x4a69be(0x17f)](_0x48db4a)||_0x48db4a[_0x4a69be(0x18b)]<_0x2ba273||_0x48db4a[_0x4a69be(0x18b)]>_0x36ac90||_0x48db4a['some'](_0x1f8a62=>typeof _0x1f8a62!=='string'||!_0x1f8a62[_0x4a69be(0x153)]()))&&fail(_0x20dfd2+_0x4a69be(0x18e)+_0x2ba273+'..'+_0x36ac90+_0x4a69be(0x182)),_0x48db4a;}function requiredString(_0x3080a2,_0x523284){const _0x22bc47=a65_0x11817b,_0x3ee390=stringValue(_0x3080a2);if(!_0x3ee390)fail(_0x523284+_0x22bc47(0x163));return _0x3ee390;}function stringValue(_0x45322e){const _0x2e1158=a65_0x11817b;return typeof _0x45322e==='string'?_0x45322e[_0x2e1158(0x153)]():'';}function fieldName(_0x3f6576){const _0x26e436=a65_0x11817b;return stringValue(_0x3f6576['code']??_0x3f6576[_0x26e436(0x15d)]??_0x3f6576[_0x26e436(0x186)]??_0x3f6576[_0x26e436(0x171)]);}function validateConfidence(_0x3c18f7,_0x319cde){const _0x255109=a65_0x11817b;_0x3c18f7!==undefined&&_0x3c18f7!==null&&(typeof _0x3c18f7!==_0x255109(0x178)||!Number['isFinite'](_0x3c18f7)||_0x3c18f7<0x0||_0x3c18f7>0x1)&&fail(_0x319cde+_0x255109(0x192));}function a65_0x3d75(_0x49209f,_0x2a6681){_0x49209f=_0x49209f-0x13b;const _0x225537=a65_0x2255();let _0x3d75e2=_0x225537[_0x49209f];return _0x3d75e2;}function tuple(..._0x3077b3){const _0x481e6a=a65_0x11817b;return _0x3077b3[_0x481e6a(0x13b)]((_0x2ce4c3,_0x57326a)=>_0x57326a===0x1||_0x57326a===0x3?_0x2ce4c3['toLowerCase']():_0x2ce4c3)[_0x481e6a(0x13f)]('\x00');}function sameSet(_0x160d06,_0x25eecd){const _0x3176a5=a65_0x11817b;return _0x160d06[_0x3176a5(0x179)]===_0x25eecd['size']&&[..._0x160d06]['every'](_0x5ca964=>_0x25eecd[_0x3176a5(0x13d)](_0x5ca964));}function isObject(_0x33de1c){const _0x3259f0=a65_0x11817b;return typeof _0x33de1c===_0x3259f0(0x174)&&_0x33de1c!==null&&!Array[_0x3259f0(0x17f)](_0x33de1c);}function fail(_0x3a3aea){const _0x3c3a69=a65_0x11817b;throw CliErrors[_0x3c3a69(0x16f)](_0x3a3aea);}
1
+ const a65_0x460371=a65_0x38dc;(function(_0x514b02,_0x65c680){const _0x46914e=a65_0x38dc,_0x285152=_0x514b02();while(!![]){try{const _0x443634=-parseInt(_0x46914e(0xa1))/0x1+parseInt(_0x46914e(0x94))/0x2+parseInt(_0x46914e(0x89))/0x3+parseInt(_0x46914e(0xad))/0x4+-parseInt(_0x46914e(0xe3))/0x5+-parseInt(_0x46914e(0xd6))/0x6+-parseInt(_0x46914e(0xc6))/0x7*(-parseInt(_0x46914e(0xda))/0x8);if(_0x443634===_0x65c680)break;else _0x285152['push'](_0x285152['shift']());}catch(_0x350a75){_0x285152['push'](_0x285152['shift']());}}}(a65_0x4bff,0x4e4c6));import{CliErrors}from'../../errors.js';const LOCAL_KEY=/^[a-z][a-z0-9_]{0,63}$/,SUPPORTED_CARDINALITIES=new Set(['MANY_TO_ONE',a65_0x460371(0xd3)]),SUPPORTED_FIELD_TYPES=new Set([a65_0x460371(0xd5),a65_0x460371(0xb2),'DATETIME',a65_0x460371(0x82),a65_0x460371(0x90),'MULTI_SELECT','DATE_RANGE',a65_0x460371(0x8c),a65_0x460371(0x9d),'UPLOAD']);export function isDatasetBatchDesign(_0x4d5df5){const _0x289d94=a65_0x460371;return isObject(_0x4d5df5)&&_0x4d5df5[_0x289d94(0xe7)]===_0x289d94(0xb9);}export function validateDatasetBatchDesign(_0xd37eda){const _0x5b0b20=a65_0x460371;(!isObject(_0xd37eda)||_0xd37eda[_0x5b0b20(0xe7)]!==_0x5b0b20(0xb9))&&fail('Batch\x20--design-file\x20must\x20have\x20kind\x20\x22dataset-batch\x22.');_0xd37eda[_0x5b0b20(0x9c)]!==0x1&&fail('Dataset\x20batch\x20schemaVersion\x20must\x20be\x201.');const _0x12ea52=objectArray(_0xd37eda['datasets'],_0x5b0b20(0xe1),0x1,0x14),_0x136421=objectArray(_0xd37eda[_0x5b0b20(0xd7)],_0x5b0b20(0xd7),0x0,0xc8),_0x11ea5e=objectArray(_0xd37eda['unresolvedRelations'],_0x5b0b20(0xa0),0x0,0xc8),_0x29c39d=new Set(),_0x2a9977=new Map();for(const [_0x1a2926,_0x1f3e6d]of _0x12ea52[_0x5b0b20(0xaf)]()){const _0x495564=requiredString(_0x1f3e6d[_0x5b0b20(0xb0)],_0x5b0b20(0xa4)+_0x1a2926+_0x5b0b20(0x9a));!LOCAL_KEY[_0x5b0b20(0xbf)](_0x495564)&&fail(_0x5b0b20(0xa4)+_0x1a2926+_0x5b0b20(0xd8)+LOCAL_KEY[_0x5b0b20(0xdd)]+'.');_0x29c39d['has'](_0x495564)&&fail(_0x5b0b20(0xb5));_0x29c39d[_0x5b0b20(0x91)](_0x495564);!isObject(_0x1f3e6d[_0x5b0b20(0xc1)])&&fail(_0x5b0b20(0xa4)+_0x1a2926+'].design\x20must\x20be\x20an\x20object.');rejectServerDatasetIdentity(_0x1f3e6d[_0x5b0b20(0xc1)],_0x5b0b20(0xa4)+_0x1a2926+'].design');if(!isObject(_0x1f3e6d[_0x5b0b20(0xc1)][_0x5b0b20(0xd1)]))fail(_0x5b0b20(0xa4)+_0x1a2926+_0x5b0b20(0xeb));rejectServerDatasetIdentity(_0x1f3e6d['design'][_0x5b0b20(0xd1)],'datasets['+_0x1a2926+_0x5b0b20(0xc2)),requiredString(_0x1f3e6d[_0x5b0b20(0xc1)][_0x5b0b20(0xd1)]['datasetName'],_0x5b0b20(0xa4)+_0x1a2926+_0x5b0b20(0xa9));'relations'in _0x1f3e6d[_0x5b0b20(0xc1)]&&(!Array[_0x5b0b20(0xdc)](_0x1f3e6d['design'][_0x5b0b20(0xd7)])||_0x1f3e6d['design']['relations'][_0x5b0b20(0xe4)]!==0x0)&&fail('datasets['+_0x1a2926+_0x5b0b20(0xdb));const _0x50ff55=objectArray(_0x1f3e6d[_0x5b0b20(0xc1)][_0x5b0b20(0x97)],_0x5b0b20(0xa4)+_0x1a2926+_0x5b0b20(0x8b),0x1,0xc8),_0x19390a=new Map();for(const [_0x49153f,_0x4498f6]of _0x50ff55[_0x5b0b20(0xaf)]()){const _0x5aab60=fieldName(_0x4498f6);if(!_0x5aab60)fail(_0x5b0b20(0xa4)+_0x1a2926+_0x5b0b20(0x9f)+_0x49153f+_0x5b0b20(0xa5));const _0x815bab=_0x5aab60[_0x5b0b20(0x93)]();if(_0x19390a[_0x5b0b20(0x86)](_0x815bab))fail(_0x5b0b20(0xc9)+_0x495564+'\x20field\x20names\x20must\x20be\x20unique\x20ignoring\x20case.');const _0x5ea555=stringValue(_0x4498f6[_0x5b0b20(0xac)]??_0x4498f6[_0x5b0b20(0xbc)])[_0x5b0b20(0xbd)]();if(!SUPPORTED_FIELD_TYPES[_0x5b0b20(0x86)](_0x5ea555))fail(_0x5b0b20(0xa4)+_0x1a2926+_0x5b0b20(0x9f)+_0x49153f+_0x5b0b20(0xd4));_0x19390a[_0x5b0b20(0x9b)](_0x815bab,_0x5ea555),[_0x4498f6['refTable'],_0x4498f6[_0x5b0b20(0xd9)],_0x4498f6['refTableLabelField']][_0x5b0b20(0xce)](_0x469993=>stringValue(_0x469993))&&fail('datasets['+_0x1a2926+_0x5b0b20(0x9f)+_0x49153f+_0x5b0b20(0xea));}_0x2a9977[_0x5b0b20(0x9b)](_0x495564,_0x19390a);}const _0x14494e=new Set(),_0x95fc3f=new Set();for(const [_0x28682d,_0x1347a5]of _0x136421[_0x5b0b20(0xaf)]()){const _0x10bba9=validateRelation(_0x1347a5,_0x28682d,_0x29c39d,_0x2a9977);if(_0x14494e[_0x5b0b20(0x86)](_0x10bba9))fail('Dataset\x20batch\x20relations\x20must\x20be\x20unique.');_0x14494e[_0x5b0b20(0x91)](_0x10bba9);const _0x26f102=_0x10bba9[_0x5b0b20(0xae)]('\x00',0x2)[_0x5b0b20(0xe5)]('\x00');if(_0x95fc3f['has'](_0x26f102))fail(_0x5b0b20(0x96));_0x95fc3f[_0x5b0b20(0x91)](_0x26f102);}for(const [_0xcba705,_0x5cc3f3]of _0x11ea5e[_0x5b0b20(0xaf)]()){requiredString(_0x5cc3f3[_0x5b0b20(0xca)],_0x5b0b20(0xa8)+_0xcba705+'].reason'),validateConfidence(_0x5cc3f3[_0x5b0b20(0x8a)],_0x5b0b20(0xa8)+_0xcba705+_0x5b0b20(0xba));}return _0xd37eda;}export function reconcileBatchResult(_0x5b08af){const _0x4a59aa=a65_0x460371;if(!isObject(_0x5b08af))return null;try{const _0x4897a2=stringArray(_0x5b08af[_0x4a59aa(0xbe)],_0x4a59aa(0xbe),0x1,0x14),_0x2064ee=new Set(_0x4897a2);if(_0x2064ee[_0x4a59aa(0x98)]!==_0x4897a2[_0x4a59aa(0xe4)]||_0x4897a2[_0x4a59aa(0xce)](_0x36b06f=>!LOCAL_KEY[_0x4a59aa(0xbf)](_0x36b06f)))return null;const _0x5dee93=objectArray(_0x5b08af['createdDatasets'],_0x4a59aa(0xde),0x1,0x14),_0x269fed=new Map(),_0x28f55c=new Set();for(const _0x59b588 of _0x5dee93){const _0x896ac=requiredString(_0x59b588['localKey'],_0x4a59aa(0xd0)),_0x6648e6=requiredString(_0x59b588[_0x4a59aa(0xaa)]??_0x59b588[_0x4a59aa(0x92)],_0x4a59aa(0xcc));if(_0x269fed[_0x4a59aa(0x86)](_0x896ac)||_0x28f55c[_0x4a59aa(0x86)](_0x6648e6))return null;_0x269fed[_0x4a59aa(0x9b)](_0x896ac,_0x6648e6),_0x28f55c[_0x4a59aa(0x91)](_0x6648e6);}if(!sameSet(_0x2064ee,new Set(_0x269fed[_0x4a59aa(0xb4)]())))return null;const _0x55035f=objectArray(_0x5b08af[_0x4a59aa(0xe6)],_0x4a59aa(0xe6),0x0,0xc8),_0x3b6f3e=objectArray(_0x5b08af['createdRelations'],_0x4a59aa(0xc8),0x0,0xc8),_0x48535a=relationTupleSet(_0x55035f,![],_0x269fed),_0xd86ee7=relationTupleSet(_0x3b6f3e,!![],_0x269fed);if(!_0x48535a||!_0xd86ee7||!sameSet(_0x48535a,_0xd86ee7))return null;const _0x124efe=objectArray(_0x5b08af[_0x4a59aa(0xa0)],_0x4a59aa(0xa0),0x0,0xc8);return{'expectedLocalKeys':_0x4897a2,'expectedRelations':_0x55035f,'createdDatasets':_0x5dee93,'createdRelations':_0x3b6f3e,'unresolvedRelations':_0x124efe,...isObject(_0x5b08af[_0x4a59aa(0xe0)])?{'metrics':_0x5b08af[_0x4a59aa(0xe0)]}:{}};}catch{return null;}}function validateRelation(_0x8013dc,_0x450cd6,_0x261e0a,_0x1dde7e){const _0x13ebc9=a65_0x460371,_0x59770d='relations['+_0x450cd6+']',_0xd48fdd=requiredString(_0x8013dc[_0x13ebc9(0x99)],_0x59770d+_0x13ebc9(0xe9)),_0x5c5d98=requiredString(_0x8013dc[_0x13ebc9(0xa3)],_0x59770d+_0x13ebc9(0x85)),_0x273ad8=requiredString(_0x8013dc[_0x13ebc9(0xe2)],_0x59770d+_0x13ebc9(0xbb))[_0x13ebc9(0x93)](),_0x16fc2c=requiredString(_0x8013dc[_0x13ebc9(0x84)],_0x59770d+_0x13ebc9(0xa2))['toLowerCase']();if(!_0x261e0a[_0x13ebc9(0x86)](_0xd48fdd)||!_0x261e0a['has'](_0x5c5d98))fail(_0x59770d+_0x13ebc9(0xa7));const _0x5d0d14=_0x1dde7e[_0x13ebc9(0xc3)](_0xd48fdd)?.[_0x13ebc9(0xc3)](_0x273ad8),_0x417d8f=_0x1dde7e[_0x13ebc9(0xc3)](_0x5c5d98)?.[_0x13ebc9(0xc3)](_0x16fc2c);if(_0x5d0d14===undefined||_0x417d8f===undefined)fail(_0x59770d+_0x13ebc9(0x95));if(_0x5d0d14&&_0x417d8f&&_0x5d0d14!==_0x417d8f)fail(_0x59770d+_0x13ebc9(0x8d));const _0xa03536=stringValue(_0x8013dc['relationType'])||_0x13ebc9(0xb8);if(_0xa03536!=='lookup')fail(_0x59770d+_0x13ebc9(0x83));const _0x53faf2=stringValue(_0x8013dc[_0x13ebc9(0xab)])||_0x13ebc9(0xb7);if(!SUPPORTED_CARDINALITIES[_0x13ebc9(0x86)](_0x53faf2))fail(_0x59770d+_0x13ebc9(0xcb));return requiredString(_0x8013dc['reason'],_0x59770d+_0x13ebc9(0xb1)),validateConfidence(_0x8013dc[_0x13ebc9(0x8a)],_0x59770d+_0x13ebc9(0x87)),tuple(_0xd48fdd,_0x273ad8,_0x5c5d98,_0x16fc2c,_0x13ebc9(0xb8),_0x53faf2);}function a65_0x4bff(){const _0x2e1e78=['].design.dataset','get','fromDatasetCode','modelCode','10843OUWylm','object','createdRelations','Dataset\x20','reason','.cardinality\x20is\x20not\x20supported.','createdDatasets[].code','\x20non-empty\x20strings.','some','trim','createdDatasets[].localKey','dataset','isFinite','ONE_TO_ONE','].type\x20is\x20not\x20supported.','TEXT','2480130idzqTP','relations','].localKey\x20must\x20match\x20','refTableField','3736vEqzrU','].design.relations\x20must\x20be\x20an\x20empty\x20array;\x20use\x20top-level\x20relations.','isArray','source','createdDatasets','\x20objects.','metrics','datasets','fromField','1550175HimGZq','length','join','expectedRelations','kind','every','.fromDatasetKey',']\x20must\x20not\x20contain\x20embedded\x20relation\x20references.','].design.dataset\x20must\x20be\x20an\x20object.','string','BOOLEAN','.relationType\x20must\x20be\x20\x22lookup\x22.','toField','.toDatasetKey','has','.confidence','name','441606ZJsbsB','confidence','].design.fields','USER','\x20connects\x20incompatible\x20field\x20types.','datasetId','\x20must\x20be\x20between\x200\x20and\x201.','SELECT','add','datasetCode','toLowerCase','692842nQDKyz','\x20references\x20an\x20unknown\x20field.','Each\x20source\x20field\x20may\x20target\x20at\x20most\x20one\x20relation.','fields','size','fromDatasetKey','].localKey','set','schemaVersion','ADDRESS','relationType','].design.fields[','unresolvedRelations','561324XJgZWm','.toField','toDatasetKey','datasets[',']\x20must\x20have\x20a\x20non-empty\x20name\x20or\x20code.','\x20is\x20required.','\x20references\x20an\x20unknown\x20dataset\x20localKey.','unresolvedRelations[','].design.dataset.datasetName','code','cardinality','type','1553672XfTZxe','split','entries','localKey','.reason','NUMBER','map','keys','Dataset\x20batch\x20localKey\x20values\x20must\x20be\x20unique.','fieldName','MANY_TO_ONE','lookup','dataset-batch','].confidence','.fromField','fieldType','toUpperCase','expectedLocalKeys','test','\x20must\x20contain\x20','design'];a65_0x4bff=function(){return _0x2e1e78;};return a65_0x4bff();}function relationTupleSet(_0x594e35,_0x35824b,_0x53e98b){const _0x14d629=a65_0x460371,_0x331485=new Set();for(const _0x3c502f of _0x594e35){const _0x22be2f=stringValue(_0x3c502f[_0x14d629(0x99)]),_0xeeceb1=stringValue(_0x3c502f[_0x14d629(0xa3)]),_0x4548c3=stringValue(_0x3c502f[_0x14d629(0xe2)])[_0x14d629(0x93)](),_0x1df475=stringValue(_0x3c502f[_0x14d629(0x84)])[_0x14d629(0x93)](),_0x549d93=stringValue(_0x3c502f[_0x14d629(0x9e)]),_0x2f4fb8=stringValue(_0x3c502f['cardinality']);if(!_0x22be2f||!_0xeeceb1||!_0x4548c3||!_0x1df475||_0x549d93!==_0x14d629(0xb8)||!SUPPORTED_CARDINALITIES[_0x14d629(0x86)](_0x2f4fb8))return null;if(!_0x53e98b[_0x14d629(0x86)](_0x22be2f)||!_0x53e98b[_0x14d629(0x86)](_0xeeceb1))return null;if(_0x35824b&&(stringValue(_0x3c502f[_0x14d629(0xc4)])!==_0x53e98b[_0x14d629(0xc3)](_0x22be2f)||stringValue(_0x3c502f['toDatasetCode'])!==_0x53e98b[_0x14d629(0xc3)](_0xeeceb1)))return null;const _0x5e8bdb=tuple(_0x22be2f,_0x4548c3,_0xeeceb1,_0x1df475,_0x549d93,_0x2f4fb8);if(_0x331485[_0x14d629(0x86)](_0x5e8bdb))return null;_0x331485[_0x14d629(0x91)](_0x5e8bdb);}return _0x331485;}function rejectServerDatasetIdentity(_0x1bcbac,_0x59bdf4){const _0x556622=a65_0x460371;for(const _0x522c15 of['id',_0x556622(0x8e),'modelId','code',_0x556622(0x92),_0x556622(0xc5)]){if(_0x1bcbac[_0x522c15]!==undefined&&_0x1bcbac[_0x522c15]!==null&&_0x1bcbac[_0x522c15]!=='')fail(_0x59bdf4+'.'+_0x522c15+'\x20must\x20not\x20be\x20supplied\x20by\x20the\x20client.');}}function objectArray(_0x2c3126,_0x392e36,_0x253cdd,_0x4b95a7){const _0x444dd3=a65_0x460371;return(!Array[_0x444dd3(0xdc)](_0x2c3126)||_0x2c3126['length']<_0x253cdd||_0x2c3126[_0x444dd3(0xe4)]>_0x4b95a7||_0x2c3126[_0x444dd3(0xce)](_0x27146e=>!isObject(_0x27146e)))&&fail(_0x392e36+_0x444dd3(0xc0)+_0x253cdd+'..'+_0x4b95a7+_0x444dd3(0xdf)),_0x2c3126;}function stringArray(_0x2e3bdf,_0x484369,_0x1018c5,_0x518f45){const _0x3a7dcd=a65_0x460371;return(!Array[_0x3a7dcd(0xdc)](_0x2e3bdf)||_0x2e3bdf[_0x3a7dcd(0xe4)]<_0x1018c5||_0x2e3bdf[_0x3a7dcd(0xe4)]>_0x518f45||_0x2e3bdf[_0x3a7dcd(0xce)](_0x38228e=>typeof _0x38228e!==_0x3a7dcd(0xec)||!_0x38228e[_0x3a7dcd(0xcf)]()))&&fail(_0x484369+_0x3a7dcd(0xc0)+_0x1018c5+'..'+_0x518f45+_0x3a7dcd(0xcd)),_0x2e3bdf;}function requiredString(_0x40d68e,_0x536efa){const _0x13cc6b=a65_0x460371,_0x5f1fd8=stringValue(_0x40d68e);if(!_0x5f1fd8)fail(_0x536efa+_0x13cc6b(0xa6));return _0x5f1fd8;}function stringValue(_0x4cddb8){const _0x2b9f49=a65_0x460371;return typeof _0x4cddb8===_0x2b9f49(0xec)?_0x4cddb8['trim']():'';}function a65_0x38dc(_0xfc4ff2,_0x3027f6){_0xfc4ff2=_0xfc4ff2-0x82;const _0x4bfff1=a65_0x4bff();let _0x38dc24=_0x4bfff1[_0xfc4ff2];return _0x38dc24;}function fieldName(_0x2d09d2){const _0x35fbb7=a65_0x460371;return stringValue(_0x2d09d2['code']??_0x2d09d2['fieldCode']??_0x2d09d2[_0x35fbb7(0x88)]??_0x2d09d2[_0x35fbb7(0xb6)]);}function validateConfidence(_0xb1bd05,_0x380548){const _0x21cb6c=a65_0x460371;_0xb1bd05!==undefined&&_0xb1bd05!==null&&(typeof _0xb1bd05!=='number'||!Number[_0x21cb6c(0xd2)](_0xb1bd05)||_0xb1bd05<0x0||_0xb1bd05>0x1)&&fail(_0x380548+_0x21cb6c(0x8f));}function tuple(..._0x11bd7f){const _0x248498=a65_0x460371;return _0x11bd7f[_0x248498(0xb3)]((_0x2e1835,_0x1e0fae)=>_0x1e0fae===0x1||_0x1e0fae===0x3?_0x2e1835[_0x248498(0x93)]():_0x2e1835)[_0x248498(0xe5)]('\x00');}function sameSet(_0x4739bc,_0x3e9158){const _0x1a8533=a65_0x460371;return _0x4739bc[_0x1a8533(0x98)]===_0x3e9158[_0x1a8533(0x98)]&&[..._0x4739bc][_0x1a8533(0xe8)](_0x2761ae=>_0x3e9158[_0x1a8533(0x86)](_0x2761ae));}function isObject(_0x34a606){const _0x21e1c1=a65_0x460371;return typeof _0x34a606===_0x21e1c1(0xc7)&&_0x34a606!==null&&!Array[_0x21e1c1(0xdc)](_0x34a606);}function fail(_0x2789c0){throw CliErrors['validation'](_0x2789c0);}
@@ -1 +1 @@
1
- const a66_0x2cfdb3=a66_0x40af;(function(_0x41d35b,_0x4e5557){const _0x242225=a66_0x40af,_0x2940fe=_0x41d35b();while(!![]){try{const _0x5804a4=parseInt(_0x242225(0x1ab))/0x1*(parseInt(_0x242225(0x1c1))/0x2)+-parseInt(_0x242225(0x1b7))/0x3*(parseInt(_0x242225(0x1cb))/0x4)+-parseInt(_0x242225(0x1bc))/0x5*(-parseInt(_0x242225(0x1a2))/0x6)+parseInt(_0x242225(0x1d4))/0x7+parseInt(_0x242225(0x1a3))/0x8+-parseInt(_0x242225(0x1a5))/0x9*(-parseInt(_0x242225(0x1c8))/0xa)+-parseInt(_0x242225(0x19e))/0xb*(parseInt(_0x242225(0x199))/0xc);if(_0x5804a4===_0x4e5557)break;else _0x2940fe['push'](_0x2940fe['shift']());}catch(_0x9a163){_0x2940fe['push'](_0x2940fe['shift']());}}}(a66_0x3d4a,0xc46e6));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_0x2cfdb3(0x1a4),METADATA_BACKEND_PATH='/smartapi/question/er-config/business-group/edit',UNGROUPED_BUSINESS_GROUP='ungrouped';export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x10b002,input:_0x461458,dryRun:_0x1beb2c}){const _0x4f9e4f=a66_0x2cfdb3;validateInput(_0x461458);const _0x5d2bcf=normalizeBusinessGroupArgument(_0x461458[_0x4f9e4f(0x1b2)]),_0x20c17a=await getDatasetDetail(_0x461458[_0x4f9e4f(0x1a0)]),_0x3786ca=resolveBusinessGroupDataset(_0x20c17a,_0x461458[_0x4f9e4f(0x1a0)]);assertBusinessGroupUpdateSupported(_0x3786ca,_0x5d2bcf);const _0x1e591c=loadCurrentBusinessGroup(_0x20c17a,_0x3786ca);assertExpectedBusinessGroup(_0x1e591c,_0x461458[_0x4f9e4f(0x1dd)]);const _0x73bf02=buildBackendPlan(_0x10b002,_0x3786ca,_0x5d2bcf),_0x55bdd0=_0x1e591c!==_0x5d2bcf;let _0x1ce7b9;if(_0x55bdd0&&!_0x1beb2c){_0x73bf02['kind']===_0x4f9e4f(0x1a6)?await updateDbTableBusinessGroup(_0x73bf02[_0x4f9e4f(0x1de)]):await updateErBusinessGroup(_0x73bf02[_0x4f9e4f(0x1de)]);const _0x24868e=await getDatasetDetail(_0x3786ca[_0x4f9e4f(0x1a0)]),_0x439b71=resolveBusinessGroupDataset(_0x24868e,_0x3786ca['code']),_0x5782d7=loadCurrentBusinessGroup(_0x24868e,_0x439b71);if(_0x5782d7!==_0x5d2bcf)throw CliErrors[_0x4f9e4f(0x1be)](_0x4f9e4f(0x1ce),'Expected\x20'+JSON[_0x4f9e4f(0x1b3)](displayBusinessGroup(_0x5d2bcf))+_0x4f9e4f(0x19c)+JSON[_0x4f9e4f(0x1b3)](displayBusinessGroup(_0x5782d7))+'.');_0x1ce7b9={'verified':!![],'status':'matched','afterReadback':{'businessGroup':displayBusinessGroup(_0x5782d7)}};}else!_0x55bdd0&&(_0x1ce7b9={'verified':!![],'status':_0x4f9e4f(0x19a),'afterReadback':{'businessGroup':displayBusinessGroup(_0x1e591c)}});const _0x334e13={'operation':_0x4f9e4f(0x1d8),'appCode':_0x10b002,'selector':{'code':_0x3786ca[_0x4f9e4f(0x1a0)]},'dataset':{'id':_0x3786ca['id'],'code':_0x3786ca['code'],'name':_0x3786ca[_0x4f9e4f(0x1c4)],'sourceType':_0x3786ca[_0x4f9e4f(0x1cf)]},'before':{'businessGroup':displayBusinessGroup(_0x1e591c)},'after':{'businessGroup':displayBusinessGroup(_0x5d2bcf)},'changed':_0x55bdd0,'dryRun':_0x1beb2c,'submitted':_0x55bdd0&&!_0x1beb2c,'backend':{'method':_0x73bf02[_0x4f9e4f(0x1ac)],'path':_0x73bf02[_0x4f9e4f(0x1bd)],'payload':_0x73bf02['payload']},..._0x1ce7b9?{'verification':_0x1ce7b9}:{},'warnings':[]};return{'ok':!![],'data':_0x334e13,'message':_0x55bdd0?_0x1beb2c?'Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20'+_0x3786ca[_0x4f9e4f(0x1a0)]:_0x4f9e4f(0x1dc)+_0x3786ca['code']:'No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20'+_0x3786ca[_0x4f9e4f(0x1a0)]};}function a66_0x3d4a(){const _0x293f88=['source','Expectation\x20mismatch\x20at\x20businessGroup','4578565ehBKdT','path','apiError','found','DB_TABLE','2gkOHju','isFinite','message','name','METADATA','validation','write','1610ToNdrK','appCode','string','4XYupSF','--code\x20is\x20required','dbId','Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.','sourceType','dataset','Clearing\x20business\x20scenario\x20groups\x20is\x20not\x20supported\x20for\x20DB_TABLE\x20datasets.','prototype','keys','7878003BLGNUd','business-group','tableName','DB_TABLE\x20dataset\x20requires\x20dbtableConfig.dbId\x20and\x20tableName.','update','parse','metadata','object','Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20','expectBusinessGroup','payload','isArray','datasetId','Update\x20business\x20scenario\x20group','4320EznJyp','unchanged','expect-business-group',',\x20actual\x20','str','68816UNmjfz','backend','code','trim','6IqTRfX','10097856RtYHtJ','/smartapi/dblink/updateTableBusinessGroup','36963hcUbHt','db-table','POST','dbLinkId','length','business-group-update','366254hgyrCu','method','number','Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.','Run\x20dataset\x20detail\x20and\x20complete\x20database\x20analysis\x20before\x20updating\x20the\x20business\x20group.','dbtableConfig','dbTableSelector','businessGroup','stringify','Expected\x20','toUpperCase','value','3822339FPgEZQ','modelId','data'];a66_0x3d4a=function(){return _0x293f88;};return a66_0x3d4a();}export const datasetBusinessGroupUpdate={'service':a66_0x2cfdb3(0x1d0),'command':a66_0x2cfdb3(0x1aa),'description':a66_0x2cfdb3(0x198),'risk':a66_0x2cfdb3(0x1c7),'flags':[CODE_FLAG,{'name':a66_0x2cfdb3(0x1d5),'type':a66_0x2cfdb3(0x1ca),'required':!![],'description':'Business\x20scenario\x20group\x20(not\x20technical):\x20use\x20<scenario>,\x20<domain>---<scenario>\x20when\x20needed;\x20METADATA\x20accepts\x20ungrouped\x20to\x20clear\x20it'},{'name':'expect-business-group','type':a66_0x2cfdb3(0x1ca),'required':![],'description':'Expected\x20current\x20business\x20scenario\x20group;\x20use\x20ungrouped\x20to\x20expect\x20no\x20group;\x20mismatch\x20aborts\x20without\x20writing'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x353503){validateInput(readBusinessGroupUpdateInput(_0x353503));},async 'dryRun'(_0x29e270){const _0x5242fa=a66_0x2cfdb3,_0x1fa6b7=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x29e270[_0x5242fa(0x1c9)],'input':readBusinessGroupUpdateInput(_0x29e270),'dryRun':!![]});return{'method':_0x1fa6b7['data']['backend'][_0x5242fa(0x1ac)],'url':_0x1fa6b7[_0x5242fa(0x1b9)]['backend']['path'],'body':_0x1fa6b7[_0x5242fa(0x1b9)][_0x5242fa(0x19f)][_0x5242fa(0x1de)],'description':_0x1fa6b7[_0x5242fa(0x1c3)],..._0x1fa6b7[_0x5242fa(0x1b9)]};},async 'execute'(_0x149c00){const _0x2f3596=a66_0x2cfdb3;return buildDatasetBusinessGroupUpdateResult({'appCode':_0x149c00[_0x2f3596(0x1c9)],'input':readBusinessGroupUpdateInput(_0x149c00),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x13989a){const _0x60968a=a66_0x2cfdb3,_0x45b3f3=_0x13989a[_0x60968a(0x19d)](_0x60968a(0x19b));return{'code':trim(_0x13989a[_0x60968a(0x19d)](_0x60968a(0x1a0))),'businessGroup':_0x13989a[_0x60968a(0x19d)](_0x60968a(0x1d5)),'expectBusinessGroup':_0x45b3f3===undefined||_0x45b3f3===''?undefined:_0x45b3f3};}function validateInput(_0x507715){const _0x590728=a66_0x2cfdb3;if(!trim(_0x507715[_0x590728(0x1a0)]))throw CliErrors[_0x590728(0x1c6)](_0x590728(0x1cc));if(_0x507715[_0x590728(0x1b2)]===undefined)throw CliErrors[_0x590728(0x1c6)]('--business-group\x20is\x20required');if(!trim(_0x507715['businessGroup']))throw CliErrors[_0x590728(0x1c6)]('--business-group\x20must\x20not\x20be\x20blank');}function assertBusinessGroupUpdateSupported(_0x53d201,_0x51beac){const _0x506558=a66_0x2cfdb3;if(_0x53d201[_0x506558(0x1cf)]===_0x506558(0x1c0)&&!_0x51beac)throw CliErrors[_0x506558(0x1c6)](_0x506558(0x1d1));}function resolveBusinessGroupDataset(_0x173c20,_0x5e4c32){const _0x5d7028=a66_0x2cfdb3,_0xb4cea3=asPlainObject(_0x173c20['dataset']),_0x4f3d6c=asPlainObject(_0x173c20[_0x5d7028(0x1b0)]),_0x3ac89f=resolveSourceType(_0x173c20,_0xb4cea3,_0x4f3d6c),_0x280c8e=firstString(_0x173c20['modelCode'],_0x173c20[_0x5d7028(0x1a0)],_0xb4cea3['datasetCode'],_0x5e4c32)||_0x5e4c32;return{'id':firstNumber(_0x173c20[_0x5d7028(0x1b8)],_0x173c20['id'],_0xb4cea3[_0x5d7028(0x1e0)])??firstString(_0x173c20['modelId'],_0x173c20['id'],_0xb4cea3[_0x5d7028(0x1e0)])??null,'code':_0x280c8e,'name':firstString(_0x173c20['name'],_0xb4cea3['datasetName'],_0xb4cea3['name'])||null,'sourceType':_0x3ac89f,'dbTableSelector':_0x3ac89f===_0x5d7028(0x1c0)?{'dbLinkId':firstNumber(_0x4f3d6c[_0x5d7028(0x1cd)]),'tableName':firstString(_0x4f3d6c[_0x5d7028(0x1d6)])||null}:null};}function resolveSourceType(_0x1e01be,_0x14d101,_0x531ce2){const _0x36c45d=a66_0x2cfdb3,_0xe1b95=firstString(_0x1e01be[_0x36c45d(0x1ba)],_0x1e01be[_0x36c45d(0x1cf)],_0x14d101[_0x36c45d(0x1ba)],_0x14d101[_0x36c45d(0x1cf)])?.[_0x36c45d(0x1a1)]()[_0x36c45d(0x1b5)]();if(_0xe1b95==='DB_TABLE'||_0xe1b95===_0x36c45d(0x1c5))return _0xe1b95;if(Object[_0x36c45d(0x1d3)](_0x531ce2)[_0x36c45d(0x1a9)]>0x0)return'DB_TABLE';throw CliErrors[_0x36c45d(0x1c6)](_0x36c45d(0x1ae));}function loadCurrentBusinessGroup(_0x3020df,_0x3c2a7b){const _0xbe33ee=a66_0x2cfdb3,_0x3fb3c5=readBusinessGroupFromDatasetDetail(_0x3020df,_0x3c2a7b[_0xbe33ee(0x1cf)]);if(_0x3fb3c5[_0xbe33ee(0x1bf)])return normalizeBusinessGroup(_0x3fb3c5[_0xbe33ee(0x1b6)]);return'';}function readBusinessGroupFromDatasetDetail(_0x5e2a80,_0x1ae79b){const _0xf26be6=a66_0x2cfdb3,_0x2b03d8=asPlainObject(_0x5e2a80[_0xf26be6(0x1d0)]),_0x4a3a18=firstPresent(_0x5e2a80[_0xf26be6(0x1b2)]);if(_0x4a3a18[_0xf26be6(0x1bf)])return _0x4a3a18;const _0x430927=firstPresent(_0x2b03d8[_0xf26be6(0x1b2)]);if(_0x430927[_0xf26be6(0x1bf)])return _0x430927;if(_0x1ae79b===_0xf26be6(0x1c0))return{'found':![]};const _0x3d1d80=readBusinessGroupFromExtend(_0x5e2a80['extend']);if(_0x3d1d80[_0xf26be6(0x1bf)])return _0x3d1d80;return readBusinessGroupFromExtend(_0x2b03d8['extend']);}function readBusinessGroupFromExtend(_0x1470ed){const _0x28982c=a66_0x2cfdb3;if(_0x1470ed===undefined||_0x1470ed===null||_0x1470ed==='')return{'found':![]};if(typeof _0x1470ed===_0x28982c(0x1ca))try{const _0x3b4de3=JSON[_0x28982c(0x1d9)](_0x1470ed);return readBusinessGroupFromExtend(_0x3b4de3);}catch{return{'found':![]};}const _0x3fb090=asPlainObject(_0x1470ed);if(Object[_0x28982c(0x1d2)]['hasOwnProperty']['call'](_0x3fb090,'businessGroup'))return{'found':!![],'value':_0x3fb090[_0x28982c(0x1b2)]};return{'found':![]};}function firstPresent(..._0x436d13){for(const _0x378350 of _0x436d13){if(_0x378350!==undefined&&_0x378350!==null)return{'found':!![],'value':_0x378350};}return{'found':![]};}function assertExpectedBusinessGroup(_0x40d0a1,_0x26d380){const _0x5e0d33=a66_0x2cfdb3;if(_0x26d380===undefined)return;const _0x47cd74=normalizeBusinessGroupArgument(_0x26d380);if(_0x40d0a1!==_0x47cd74)throw CliErrors[_0x5e0d33(0x1c6)](_0x5e0d33(0x1bb),_0x5e0d33(0x1b4)+JSON[_0x5e0d33(0x1b3)](_0x47cd74)+',\x20actual\x20'+JSON[_0x5e0d33(0x1b3)](_0x40d0a1));}function buildBackendPlan(_0x58af8c,_0x3e4662,_0x3fec81){const _0x133002=a66_0x2cfdb3;if(_0x3e4662[_0x133002(0x1cf)]==='DB_TABLE'){if(!_0x3e4662[_0x133002(0x1b1)]||_0x3e4662[_0x133002(0x1b1)]['dbLinkId']===null||!_0x3e4662[_0x133002(0x1b1)][_0x133002(0x1d6)])throw CliErrors[_0x133002(0x1c6)](_0x133002(0x1d7),_0x133002(0x1af));return{'kind':_0x133002(0x1a6),'method':_0x133002(0x1a7),'path':DB_TABLE_BACKEND_PATH,'payload':{'dbLinkId':_0x3e4662['dbTableSelector'][_0x133002(0x1a8)],'tableName':_0x3e4662[_0x133002(0x1b1)][_0x133002(0x1d6)],'businessGroup':_0x3fec81}};}return{'kind':_0x133002(0x1da),'method':'POST','path':METADATA_BACKEND_PATH,'payload':{'appCode':_0x58af8c,'datasetCode':_0x3e4662['code'],'businessGroup':_0x3fec81}};}function normalizeBusinessGroup(_0x372276){const _0x2c90a0=a66_0x2cfdb3;if(_0x372276===undefined||_0x372276===null)return'';return String(_0x372276)[_0x2c90a0(0x1a1)]();}function a66_0x40af(_0x33c7a2,_0x1a3b89){_0x33c7a2=_0x33c7a2-0x198;const _0x3d4afc=a66_0x3d4a();let _0x40af18=_0x3d4afc[_0x33c7a2];return _0x40af18;}function normalizeBusinessGroupArgument(_0xdcb498){const _0x369acd=normalizeBusinessGroup(_0xdcb498);return _0x369acd===UNGROUPED_BUSINESS_GROUP?'':_0x369acd;}function displayBusinessGroup(_0x350a35){return _0x350a35||UNGROUPED_BUSINESS_GROUP;}function asPlainObject(_0x1bc1f0){const _0x98aec7=a66_0x2cfdb3;if(!_0x1bc1f0||typeof _0x1bc1f0!==_0x98aec7(0x1db)||Array[_0x98aec7(0x1df)](_0x1bc1f0))return{};return _0x1bc1f0;}function firstString(..._0x4c821d){const _0x4926e9=a66_0x2cfdb3;for(const _0x33272c of _0x4c821d){if(typeof _0x33272c===_0x4926e9(0x1ca)&&_0x33272c[_0x4926e9(0x1a1)]())return _0x33272c['trim']();if(typeof _0x33272c===_0x4926e9(0x1ad)&&Number[_0x4926e9(0x1c2)](_0x33272c))return String(_0x33272c);}return undefined;}function firstNumber(..._0x21b8b0){const _0x4e02cb=a66_0x2cfdb3;for(const _0x3ea116 of _0x21b8b0){if(typeof _0x3ea116===_0x4e02cb(0x1ad)&&Number[_0x4e02cb(0x1c2)](_0x3ea116))return _0x3ea116;if(typeof _0x3ea116===_0x4e02cb(0x1ca)&&_0x3ea116[_0x4e02cb(0x1a1)]()&&Number[_0x4e02cb(0x1c2)](Number(_0x3ea116)))return Number(_0x3ea116);}return null;}function trim(_0x54fdbe){return String(_0x54fdbe||'')['trim']();}
1
+ const a66_0x376d5c=a66_0x48da;(function(_0x1d9763,_0x540348){const _0xef46e9=a66_0x48da,_0x2b76f4=_0x1d9763();while(!![]){try{const _0x49c69a=-parseInt(_0xef46e9(0x1a2))/0x1*(-parseInt(_0xef46e9(0x1c3))/0x2)+parseInt(_0xef46e9(0x1a3))/0x3*(parseInt(_0xef46e9(0x1be))/0x4)+-parseInt(_0xef46e9(0x1a7))/0x5+-parseInt(_0xef46e9(0x18d))/0x6+-parseInt(_0xef46e9(0x1b4))/0x7+parseInt(_0xef46e9(0x1a5))/0x8*(-parseInt(_0xef46e9(0x192))/0x9)+parseInt(_0xef46e9(0x193))/0xa;if(_0x49c69a===_0x540348)break;else _0x2b76f4['push'](_0x2b76f4['shift']());}catch(_0x3afdeb){_0x2b76f4['push'](_0x2b76f4['shift']());}}}(a66_0x5d60,0xec48a));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='/smartapi/dblink/updateTableBusinessGroup',METADATA_BACKEND_PATH='/smartapi/question/er-config/business-group/edit',UNGROUPED_BUSINESS_GROUP=a66_0x376d5c(0x18f);export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x33f640,input:_0x2a3416,dryRun:_0x4d402e}){const _0x4d7f33=a66_0x376d5c;validateInput(_0x2a3416);const _0x223a9f=normalizeBusinessGroupArgument(_0x2a3416[_0x4d7f33(0x1aa)]),_0x27d4f7=await getDatasetDetail(_0x2a3416[_0x4d7f33(0x1b1)]),_0x47ef79=resolveBusinessGroupDataset(_0x27d4f7,_0x2a3416[_0x4d7f33(0x1b1)]);assertBusinessGroupUpdateSupported(_0x47ef79,_0x223a9f);const _0x2ebc40=loadCurrentBusinessGroup(_0x27d4f7,_0x47ef79);assertExpectedBusinessGroup(_0x2ebc40,_0x2a3416[_0x4d7f33(0x1b7)]);const _0x5acd49=buildBackendPlan(_0x33f640,_0x47ef79,_0x223a9f),_0x48f0a5=_0x2ebc40!==_0x223a9f;let _0xe6f50d;if(_0x48f0a5&&!_0x4d402e){_0x5acd49[_0x4d7f33(0x1c6)]==='db-table'?await updateDbTableBusinessGroup(_0x5acd49['payload']):await updateErBusinessGroup(_0x5acd49[_0x4d7f33(0x17f)]);const _0x355a6c=await getDatasetDetail(_0x47ef79['code']),_0x4d6f15=resolveBusinessGroupDataset(_0x355a6c,_0x47ef79['code']),_0x4b6aa5=loadCurrentBusinessGroup(_0x355a6c,_0x4d6f15);if(_0x4b6aa5!==_0x223a9f)throw CliErrors[_0x4d7f33(0x19c)](_0x4d7f33(0x186),_0x4d7f33(0x1a6)+JSON['stringify'](displayBusinessGroup(_0x223a9f))+',\x20actual\x20'+JSON[_0x4d7f33(0x19f)](displayBusinessGroup(_0x4b6aa5))+'.');_0xe6f50d={'verified':!![],'status':'matched','afterReadback':{'businessGroup':displayBusinessGroup(_0x4b6aa5)}};}else!_0x48f0a5&&(_0xe6f50d={'verified':!![],'status':'unchanged','afterReadback':{'businessGroup':displayBusinessGroup(_0x2ebc40)}});const _0x588a27={'operation':_0x4d7f33(0x190),'appCode':_0x33f640,'selector':{'code':_0x47ef79['code']},'dataset':{'id':_0x47ef79['id'],'code':_0x47ef79[_0x4d7f33(0x1b1)],'name':_0x47ef79[_0x4d7f33(0x182)],'sourceType':_0x47ef79['sourceType']},'before':{'businessGroup':displayBusinessGroup(_0x2ebc40)},'after':{'businessGroup':displayBusinessGroup(_0x223a9f)},'changed':_0x48f0a5,'dryRun':_0x4d402e,'submitted':_0x48f0a5&&!_0x4d402e,'backend':{'method':_0x5acd49['method'],'path':_0x5acd49[_0x4d7f33(0x188)],'payload':_0x5acd49[_0x4d7f33(0x17f)]},..._0xe6f50d?{'verification':_0xe6f50d}:{},'warnings':[]};return{'ok':!![],'data':_0x588a27,'message':_0x48f0a5?_0x4d402e?'Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20'+_0x47ef79[_0x4d7f33(0x1b1)]:_0x4d7f33(0x1b2)+_0x47ef79['code']:_0x4d7f33(0x194)+_0x47ef79['code']};}export const datasetBusinessGroupUpdate={'service':a66_0x376d5c(0x18e),'command':a66_0x376d5c(0x1bc),'description':a66_0x376d5c(0x198),'risk':a66_0x376d5c(0x1ba),'flags':[CODE_FLAG,{'name':a66_0x376d5c(0x1af),'type':'string','required':!![],'description':a66_0x376d5c(0x19a)},{'name':a66_0x376d5c(0x1ab),'type':a66_0x376d5c(0x1a4),'required':![],'description':a66_0x376d5c(0x1ac)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x12d766){validateInput(readBusinessGroupUpdateInput(_0x12d766));},async 'dryRun'(_0x3df471){const _0x24d77c=a66_0x376d5c,_0x3061ff=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x3df471['appCode'],'input':readBusinessGroupUpdateInput(_0x3df471),'dryRun':!![]});return{'method':_0x3061ff[_0x24d77c(0x18b)]['backend'][_0x24d77c(0x19e)],'url':_0x3061ff[_0x24d77c(0x18b)][_0x24d77c(0x1b8)][_0x24d77c(0x188)],'body':_0x3061ff[_0x24d77c(0x18b)][_0x24d77c(0x1b8)][_0x24d77c(0x17f)],'description':_0x3061ff['message'],..._0x3061ff[_0x24d77c(0x18b)]};},async 'execute'(_0x4c26aa){const _0x4c38cf=a66_0x376d5c;return buildDatasetBusinessGroupUpdateResult({'appCode':_0x4c26aa[_0x4c38cf(0x181)],'input':readBusinessGroupUpdateInput(_0x4c26aa),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x5defed){const _0x3fef20=a66_0x376d5c,_0x3cc15a=_0x5defed[_0x3fef20(0x1bb)](_0x3fef20(0x1ab));return{'code':trim(_0x5defed['str'](_0x3fef20(0x1b1))),'businessGroup':_0x5defed[_0x3fef20(0x1bb)]('business-group'),'expectBusinessGroup':_0x3cc15a===undefined||_0x3cc15a===''?undefined:_0x3cc15a};}function validateInput(_0x30362a){const _0x43c46a=a66_0x376d5c;if(!trim(_0x30362a[_0x43c46a(0x1b1)]))throw CliErrors[_0x43c46a(0x18a)]('--code\x20is\x20required');if(_0x30362a[_0x43c46a(0x1aa)]===undefined)throw CliErrors['validation'](_0x43c46a(0x1bf));if(!trim(_0x30362a['businessGroup']))throw CliErrors[_0x43c46a(0x18a)](_0x43c46a(0x19d));}function assertBusinessGroupUpdateSupported(_0x19a5de,_0x5a6ca8){const _0x55f15c=a66_0x376d5c;if(_0x19a5de[_0x55f15c(0x1a9)]===_0x55f15c(0x1b3)&&!_0x5a6ca8)throw CliErrors['validation']('Clearing\x20business\x20scenario\x20groups\x20is\x20not\x20supported\x20for\x20DB_TABLE\x20datasets.');}function resolveBusinessGroupDataset(_0x2d8c09,_0x2df3fc){const _0x2cd50f=a66_0x376d5c,_0x4418f7=asPlainObject(_0x2d8c09[_0x2cd50f(0x18e)]),_0x26756f=asPlainObject(_0x2d8c09[_0x2cd50f(0x1c5)]),_0x14ad80=resolveSourceType(_0x2d8c09,_0x4418f7,_0x26756f),_0x1f6bcc=firstString(_0x2d8c09[_0x2cd50f(0x195)],_0x2d8c09[_0x2cd50f(0x1b1)],_0x4418f7[_0x2cd50f(0x180)],_0x2df3fc)||_0x2df3fc;return{'id':firstNumber(_0x2d8c09[_0x2cd50f(0x1c0)],_0x2d8c09['id'],_0x4418f7['datasetId'])??firstString(_0x2d8c09[_0x2cd50f(0x1c0)],_0x2d8c09['id'],_0x4418f7[_0x2cd50f(0x1b9)])??null,'code':_0x1f6bcc,'name':firstString(_0x2d8c09['name'],_0x4418f7[_0x2cd50f(0x189)],_0x4418f7[_0x2cd50f(0x182)])||null,'sourceType':_0x14ad80,'dbTableSelector':_0x14ad80===_0x2cd50f(0x1b3)?{'dbLinkId':firstNumber(_0x26756f[_0x2cd50f(0x1c4)]),'tableName':firstString(_0x26756f[_0x2cd50f(0x191)])||null}:null};}function resolveSourceType(_0x483b3a,_0x5c4142,_0x2813d3){const _0x1362c3=a66_0x376d5c,_0x2cde4a=firstString(_0x483b3a[_0x1362c3(0x1a1)],_0x483b3a[_0x1362c3(0x1a9)],_0x5c4142[_0x1362c3(0x1a1)],_0x5c4142[_0x1362c3(0x1a9)])?.[_0x1362c3(0x1b5)]()[_0x1362c3(0x1bd)]();if(_0x2cde4a===_0x1362c3(0x1b3)||_0x2cde4a===_0x1362c3(0x1c1))return _0x2cde4a;if(Object['keys'](_0x2813d3)[_0x1362c3(0x1c2)]>0x0)return _0x1362c3(0x1b3);throw CliErrors[_0x1362c3(0x18a)](_0x1362c3(0x199));}function loadCurrentBusinessGroup(_0x5d276a,_0x30f165){const _0x433048=a66_0x376d5c,_0x2211ed=readBusinessGroupFromDatasetDetail(_0x5d276a,_0x30f165[_0x433048(0x1a9)]);if(_0x2211ed[_0x433048(0x1ad)])return normalizeBusinessGroup(_0x2211ed[_0x433048(0x1ae)]);return'';}function a66_0x5d60(){const _0x418e15=['payload','datasetCode','appCode','name','DB_TABLE\x20dataset\x20requires\x20dbtableConfig.dbId\x20and\x20tableName.','prototype','dbTableSelector','Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.','Run\x20dataset\x20detail\x20and\x20complete\x20database\x20analysis\x20before\x20updating\x20the\x20business\x20group.','path','datasetName','validation','data','parse','1819590frmGWi','dataset','ungrouped','update','tableName','63epsWfd','37440900THDQsi','No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20','modelCode','call','dbLinkId','Update\x20business\x20scenario\x20group','Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.','Business\x20scenario\x20group\x20(not\x20technical):\x20use\x20<scenario>,\x20<domain>---<scenario>\x20when\x20needed;\x20METADATA\x20accepts\x20ungrouped\x20to\x20clear\x20it','POST','apiError','--business-group\x20must\x20not\x20be\x20blank','method','stringify','object','source','79549VrzIfr','1047GsFHfZ','string','1970840SkYwBm','Expected\x20','5000360kNKKjf','isFinite','sourceType','businessGroup','expect-business-group','Expected\x20current\x20business\x20scenario\x20group;\x20use\x20ungrouped\x20to\x20expect\x20no\x20group;\x20mismatch\x20aborts\x20without\x20writing','found','value','business-group','extend','code','Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20','DB_TABLE','9021936jmHnDa','trim','db-table','expectBusinessGroup','backend','datasetId','write','str','business-group-update','toUpperCase','332EogLPK','--business-group\x20is\x20required','modelId','METADATA','length','38whfiTq','dbId','dbtableConfig','kind','number',',\x20actual\x20'];a66_0x5d60=function(){return _0x418e15;};return a66_0x5d60();}function readBusinessGroupFromDatasetDetail(_0x5e7f7f,_0x47775b){const _0xe5d084=a66_0x376d5c,_0x2b05bd=asPlainObject(_0x5e7f7f[_0xe5d084(0x18e)]),_0x1a3fb3=firstPresent(_0x5e7f7f[_0xe5d084(0x1aa)]);if(_0x1a3fb3[_0xe5d084(0x1ad)])return _0x1a3fb3;const _0x72d0c9=firstPresent(_0x2b05bd[_0xe5d084(0x1aa)]);if(_0x72d0c9[_0xe5d084(0x1ad)])return _0x72d0c9;if(_0x47775b==='DB_TABLE')return{'found':![]};const _0x379723=readBusinessGroupFromExtend(_0x5e7f7f[_0xe5d084(0x1b0)]);if(_0x379723[_0xe5d084(0x1ad)])return _0x379723;return readBusinessGroupFromExtend(_0x2b05bd[_0xe5d084(0x1b0)]);}function readBusinessGroupFromExtend(_0x2d11b2){const _0x214c73=a66_0x376d5c;if(_0x2d11b2===undefined||_0x2d11b2===null||_0x2d11b2==='')return{'found':![]};if(typeof _0x2d11b2===_0x214c73(0x1a4))try{const _0x26e0e3=JSON[_0x214c73(0x18c)](_0x2d11b2);return readBusinessGroupFromExtend(_0x26e0e3);}catch{return{'found':![]};}const _0x223eb4=asPlainObject(_0x2d11b2);if(Object[_0x214c73(0x184)]['hasOwnProperty'][_0x214c73(0x196)](_0x223eb4,_0x214c73(0x1aa)))return{'found':!![],'value':_0x223eb4['businessGroup']};return{'found':![]};}function firstPresent(..._0x334a5f){for(const _0x261761 of _0x334a5f){if(_0x261761!==undefined&&_0x261761!==null)return{'found':!![],'value':_0x261761};}return{'found':![]};}function assertExpectedBusinessGroup(_0x52d532,_0x5b8697){const _0x5863c7=a66_0x376d5c;if(_0x5b8697===undefined)return;const _0x2b75db=normalizeBusinessGroupArgument(_0x5b8697);if(_0x52d532!==_0x2b75db)throw CliErrors['validation']('Expectation\x20mismatch\x20at\x20businessGroup',_0x5863c7(0x1a6)+JSON[_0x5863c7(0x19f)](_0x2b75db)+_0x5863c7(0x1c8)+JSON[_0x5863c7(0x19f)](_0x52d532));}function buildBackendPlan(_0x1d635f,_0x34daa1,_0x5a5f38){const _0x8dcf36=a66_0x376d5c;if(_0x34daa1[_0x8dcf36(0x1a9)]===_0x8dcf36(0x1b3)){if(!_0x34daa1[_0x8dcf36(0x185)]||_0x34daa1[_0x8dcf36(0x185)]['dbLinkId']===null||!_0x34daa1[_0x8dcf36(0x185)][_0x8dcf36(0x191)])throw CliErrors['validation'](_0x8dcf36(0x183),_0x8dcf36(0x187));return{'kind':_0x8dcf36(0x1b6),'method':_0x8dcf36(0x19b),'path':DB_TABLE_BACKEND_PATH,'payload':{'dbLinkId':_0x34daa1[_0x8dcf36(0x185)][_0x8dcf36(0x197)],'tableName':_0x34daa1[_0x8dcf36(0x185)][_0x8dcf36(0x191)],'businessGroup':_0x5a5f38}};}return{'kind':'metadata','method':'POST','path':METADATA_BACKEND_PATH,'payload':{'appCode':_0x1d635f,'datasetCode':_0x34daa1[_0x8dcf36(0x1b1)],'businessGroup':_0x5a5f38}};}function normalizeBusinessGroup(_0x155422){if(_0x155422===undefined||_0x155422===null)return'';return String(_0x155422)['trim']();}function normalizeBusinessGroupArgument(_0x36d0cf){const _0x48a59a=normalizeBusinessGroup(_0x36d0cf);return _0x48a59a===UNGROUPED_BUSINESS_GROUP?'':_0x48a59a;}function a66_0x48da(_0x5538c8,_0x3104f0){_0x5538c8=_0x5538c8-0x17f;const _0x5d606e=a66_0x5d60();let _0x48da01=_0x5d606e[_0x5538c8];return _0x48da01;}function displayBusinessGroup(_0xadf91f){return _0xadf91f||UNGROUPED_BUSINESS_GROUP;}function asPlainObject(_0x1a4fe3){const _0x34b18d=a66_0x376d5c;if(!_0x1a4fe3||typeof _0x1a4fe3!==_0x34b18d(0x1a0)||Array['isArray'](_0x1a4fe3))return{};return _0x1a4fe3;}function firstString(..._0x4fc570){const _0x3a8241=a66_0x376d5c;for(const _0x85f84f of _0x4fc570){if(typeof _0x85f84f===_0x3a8241(0x1a4)&&_0x85f84f[_0x3a8241(0x1b5)]())return _0x85f84f[_0x3a8241(0x1b5)]();if(typeof _0x85f84f===_0x3a8241(0x1c7)&&Number[_0x3a8241(0x1a8)](_0x85f84f))return String(_0x85f84f);}return undefined;}function firstNumber(..._0x2742d8){const _0x441916=a66_0x376d5c;for(const _0x40cbf3 of _0x2742d8){if(typeof _0x40cbf3===_0x441916(0x1c7)&&Number['isFinite'](_0x40cbf3))return _0x40cbf3;if(typeof _0x40cbf3===_0x441916(0x1a4)&&_0x40cbf3[_0x441916(0x1b5)]()&&Number[_0x441916(0x1a8)](Number(_0x40cbf3)))return Number(_0x40cbf3);}return null;}function trim(_0x4fea7f){const _0x226e21=a66_0x376d5c;return String(_0x4fea7f||'')[_0x226e21(0x1b5)]();}
@@ -1 +1 @@
1
- const a67_0x3168a7=a67_0x31fb;(function(_0x362582,_0x243aa7){const _0x55adf6=a67_0x31fb,_0x12f86f=_0x362582();while(!![]){try{const _0x5bad36=-parseInt(_0x55adf6(0x1fb))/0x1*(-parseInt(_0x55adf6(0x1fe))/0x2)+-parseInt(_0x55adf6(0x1f9))/0x3*(parseInt(_0x55adf6(0x1ff))/0x4)+-parseInt(_0x55adf6(0x203))/0x5+parseInt(_0x55adf6(0x1f4))/0x6+-parseInt(_0x55adf6(0x1fc))/0x7+parseInt(_0x55adf6(0x207))/0x8+-parseInt(_0x55adf6(0x204))/0x9*(-parseInt(_0x55adf6(0x1f8))/0xa);if(_0x5bad36===_0x243aa7)break;else _0x12f86f['push'](_0x12f86f['shift']());}catch(_0x5bc22b){_0x12f86f['push'](_0x12f86f['shift']());}}}(a67_0x57cd,0x5c564));function a67_0x57cd(){const _0x184167=['3447752MevfAM','ungrouped','10ttZuPe','8Ffqojr','groups','length','DB_TABLE','2896885oxztre','666KrkDxO','map','business-groups','3677456jUmoQI','businessGroup','trim','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','List\x20DB_TABLE\x20dataset\x20business\x20groups\x20for\x20a\x20database\x20connection;\x20does\x20not\x20include\x20METADATA','dbid','number','561540MHuCnL','read','appCode','num','87370XWOdeH','475395wFHuPd','\x20business\x20group(s)\x20for\x20database\x20connection\x20','113449KwWBlP'];a67_0x57cd=function(){return _0x184167;};return a67_0x57cd();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a67_0x31fb(_0x1c24ac,_0x846c9e){_0x1c24ac=_0x1c24ac-0x1f0;const _0x57cdf1=a67_0x57cd();let _0x31fb78=_0x57cdf1[_0x1c24ac];return _0x31fb78;}import{getErBusinessGroupSummary}from'../../core/api-client.js';export const datasetBusinessGroups={'service':'dataset','command':a67_0x3168a7(0x206),'description':a67_0x3168a7(0x1f1),'risk':a67_0x3168a7(0x1f5),'flags':[{'name':'dbid','type':a67_0x3168a7(0x1f3),'required':!![],'description':a67_0x3168a7(0x1f0)},APPCODE_FLAG_OPTIONAL],async 'execute'(_0x2da0c7){const _0x3793b5=a67_0x3168a7,_0x37d6b4=_0x2da0c7[_0x3793b5(0x1f7)](_0x3793b5(0x1f2)),_0x2b2bb5=await getErBusinessGroupSummary(_0x2da0c7[_0x3793b5(0x1f6)],_0x37d6b4),_0x40866c=_0x2b2bb5[_0x3793b5(0x200)][_0x3793b5(0x205)](_0x52e5fd=>({..._0x52e5fd,'businessGroup':_0x52e5fd[_0x3793b5(0x208)][_0x3793b5(0x209)]()||_0x3793b5(0x1fd)}));return{'ok':!![],'data':{..._0x2b2bb5,'groups':_0x40866c,'scope':_0x3793b5(0x202)},'message':'Found\x20'+_0x40866c[_0x3793b5(0x201)]+_0x3793b5(0x1fa)+_0x37d6b4};}};
1
+ function a67_0x2abd(){const _0x56289a=['length','8920oWeCnL','dbid','map','388110yyEuwj','10HZMVFV','4390011NpxXOG','6220731wyqVWM','groups','business-groups','\x20business\x20group(s)\x20for\x20database\x20connection\x20','businessGroup','appCode','number','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','List\x20DB_TABLE\x20dataset\x20business\x20groups\x20for\x20a\x20database\x20connection;\x20does\x20not\x20include\x20METADATA','12FkuIka','1572044wBBBJa','6OUjSTv','Found\x20','ungrouped','trim','487770NFsixF','read','num','113301AykXiM','1561GWLzNL'];a67_0x2abd=function(){return _0x56289a;};return a67_0x2abd();}const a67_0x7f4cea=a67_0x5924;function a67_0x5924(_0x31eda9,_0x406cb4){_0x31eda9=_0x31eda9-0x95;const _0x2abdfb=a67_0x2abd();let _0x592495=_0x2abdfb[_0x31eda9];return _0x592495;}(function(_0x256726,_0x4c892d){const _0x301ae8=a67_0x5924,_0x5cbd31=_0x256726();while(!![]){try{const _0x8053d6=-parseInt(_0x301ae8(0x96))/0x1*(parseInt(_0x301ae8(0xaa))/0x2)+-parseInt(_0x301ae8(0xae))/0x3+-parseInt(_0x301ae8(0xa9))/0x4+-parseInt(_0x301ae8(0x9c))/0x5*(parseInt(_0x301ae8(0xa8))/0x6)+parseInt(_0x301ae8(0x97))/0x7*(parseInt(_0x301ae8(0x99))/0x8)+parseInt(_0x301ae8(0x9e))/0x9*(parseInt(_0x301ae8(0x9d))/0xa)+parseInt(_0x301ae8(0x9f))/0xb;if(_0x8053d6===_0x4c892d)break;else _0x5cbd31['push'](_0x5cbd31['shift']());}catch(_0x3e10d3){_0x5cbd31['push'](_0x5cbd31['shift']());}}}(a67_0x2abd,0x3d53d));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getErBusinessGroupSummary}from'../../core/api-client.js';export const datasetBusinessGroups={'service':'dataset','command':a67_0x7f4cea(0xa1),'description':a67_0x7f4cea(0xa7),'risk':a67_0x7f4cea(0xaf),'flags':[{'name':'dbid','type':a67_0x7f4cea(0xa5),'required':!![],'description':a67_0x7f4cea(0xa6)},APPCODE_FLAG_OPTIONAL],async 'execute'(_0x39b16f){const _0x291e01=a67_0x7f4cea,_0x2031fa=_0x39b16f[_0x291e01(0x95)](_0x291e01(0x9a)),_0x1a93f4=await getErBusinessGroupSummary(_0x39b16f[_0x291e01(0xa4)],_0x2031fa),_0x9ee33f=_0x1a93f4[_0x291e01(0xa0)][_0x291e01(0x9b)](_0x2615bc=>({..._0x2615bc,'businessGroup':_0x2615bc[_0x291e01(0xa3)][_0x291e01(0xad)]()||_0x291e01(0xac)}));return{'ok':!![],'data':{..._0x1a93f4,'groups':_0x9ee33f,'scope':'DB_TABLE'},'message':_0x291e01(0xab)+_0x9ee33f[_0x291e01(0x98)]+_0x291e01(0xa2)+_0x2031fa};}};
@@ -1 +1 @@
1
- const a68_0x18d83d=a68_0x10ec;(function(_0x11fc1a,_0x238840){const _0x19a18=a68_0x10ec,_0x2f7304=_0x11fc1a();while(!![]){try{const _0x228107=parseInt(_0x19a18(0xd8))/0x1*(-parseInt(_0x19a18(0xdb))/0x2)+parseInt(_0x19a18(0xeb))/0x3+-parseInt(_0x19a18(0xd4))/0x4*(parseInt(_0x19a18(0xf6))/0x5)+-parseInt(_0x19a18(0xd7))/0x6+-parseInt(_0x19a18(0xf4))/0x7*(parseInt(_0x19a18(0xe8))/0x8)+-parseInt(_0x19a18(0xf3))/0x9+parseInt(_0x19a18(0xe1))/0xa*(parseInt(_0x19a18(0xf7))/0xb);if(_0x228107===_0x238840)break;else _0x2f7304['push'](_0x2f7304['shift']());}catch(_0x5646d3){_0x2f7304['push'](_0x2f7304['shift']());}}}(a68_0x4c54,0xef9a5));import{CliErrors}from'../../errors.js';export const RUNTIME_DATA_ACCESS_COMMANDS={'cli':'lovrabet','filter':a68_0x18d83d(0xf2),'getOne':a68_0x18d83d(0xe9)};export const RUNTIME_DATA_ACCESS_SUMMARY=a68_0x18d83d(0xda);function valueToString(_0x516958){const _0x180f69=a68_0x18d83d;return _0x516958==null?'':String(_0x516958)[_0x180f69(0xde)]();}function getDatasetCode(_0x4c0abd){const _0x45a296=a68_0x18d83d;return valueToString(_0x4c0abd[_0x45a296(0xf9)]??_0x4c0abd[_0x45a296(0xf1)]??_0x4c0abd[_0x45a296(0xef)]?.[_0x45a296(0xe7)]);}function getDatasetName(_0x31edf6){const _0x5782f6=a68_0x18d83d;return valueToString(_0x31edf6[_0x5782f6(0xf8)]??_0x31edf6[_0x5782f6(0xef)]?.[_0x5782f6(0xea)])||_0x5782f6(0xdf);}function getDatasetSource(_0x363143){const _0x40df45=a68_0x18d83d;return valueToString(_0x363143[_0x40df45(0xdc)]??_0x363143[_0x40df45(0xef)]?.[_0x40df45(0xd9)])[_0x40df45(0xd5)]();}function getDbtableConfig(_0x186170){const _0x1bcb41=a68_0x18d83d,_0x19ea01=_0x186170[_0x1bcb41(0xfa)]??_0x186170['dbtable'];return _0x19ea01&&typeof _0x19ea01===_0x1bcb41(0xe5)?_0x19ea01:{};}function a68_0x4c54(){const _0x3370c7=['lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27<json>\x27\x20--format\x20compress','10624572PeXDId','7xejTCC','dbId','3614075FWySeQ','1056bJaJpI','name','code','dbtableConfig','UNKNOWN','8EmoQtU','toUpperCase','METADATA','5371560exSGQI','153OhXtlW','sourceType','Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.','8226zrgcVB','source','Reason:\x20schema\x20introspection\x20and\x20custom\x20SQL\x20require\x20source=DB_TABLE,\x20dbtableConfig.dbId,\x20dbtableConfig.tableName,\x20and\x20a\x20database\x20connection\x20context.','trim','unknown','The\x20current\x20dataset\x20\x22','592260ujdKFS','To\x20inspect\x20real\x20runtime\x20rows,\x20switch\x20to\x20lovrabet\x20CLI:\x20','getOne','filter','object','tableName','datasetCode','6998816knxVlJ','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27\x20--format\x20compress','datasetName','963768iULEUu','SQL\x20schema\x20validation','\x20and\x20has\x20no\x20DB_TABLE\x20data-source\x20context\x20for\x20','\x20is\x20','dataset','join','modelCode'];a68_0x4c54=function(){return _0x3370c7;};return a68_0x4c54();}export function isDbTableBackedDataset(_0x205955){const _0x1237e2=a68_0x18d83d,_0x57fc55=getDatasetSource(_0x205955);if(_0x57fc55===_0x1237e2(0xd6))return![];const _0x36891d=getDbtableConfig(_0x205955),_0x4a973f=_0x36891d[_0x1237e2(0xf5)]??_0x36891d['id'],_0x28c649=valueToString(_0x36891d[_0x1237e2(0xe6)]??_0x205955['tableName']??_0x205955['dataset']?.[_0x1237e2(0xe6)]);return _0x4a973f!==undefined&&_0x4a973f!==null&&_0x28c649['length']>0x0;}export function filterDbTableBackedDatasets(_0x2bcf35){const _0x15bb9e=a68_0x18d83d;return _0x2bcf35[_0x15bb9e(0xe4)](_0x2e0e2a=>isDbTableBackedDataset(_0x2e0e2a));}function a68_0x10ec(_0x11ba73,_0x16baa7){_0x11ba73=_0x11ba73-0xd4;const _0x4c54a1=a68_0x4c54();let _0x10ecfe=_0x4c54a1[_0x11ba73];return _0x10ecfe;}export function buildDbTableBackedRequirementMessage(_0x358a39,_0x24747e=a68_0x18d83d(0xec)){const _0x3439c9=a68_0x18d83d,_0x2949ce=getDatasetSource(_0x358a39)||_0x3439c9(0xfb),_0x37a41d=getDatasetName(_0x358a39),_0x14e197=getDatasetCode(_0x358a39),_0x330407=_0x14e197?'\x20('+_0x14e197+')':'';return[_0x3439c9(0xe0)+_0x37a41d+'\x22'+_0x330407+_0x3439c9(0xee)+_0x2949ce+_0x3439c9(0xed)+_0x24747e+'.',_0x3439c9(0xdd),'Upgrade\x20or\x20migrate\x20this\x20dataset\x20to\x20a\x20DB_TABLE\x20dataset,\x20then\x20continue\x20with\x20the\x20new\x20dataset\x20code.',_0x3439c9(0xe2)+RUNTIME_DATA_ACCESS_COMMANDS[_0x3439c9(0xe4)]+';\x20'+RUNTIME_DATA_ACCESS_COMMANDS[_0x3439c9(0xe3)]+'.'][_0x3439c9(0xf0)]('\x20');}export function assertDatasetIsDbTableBacked(_0x1c774f,_0x39de14){if(!isDbTableBackedDataset(_0x1c774f))throw CliErrors['validation'](buildDbTableBackedRequirementMessage(_0x1c774f,_0x39de14));}
1
+ function a68_0x5819(){const _0x545ba9=['To\x20inspect\x20real\x20runtime\x20rows,\x20switch\x20to\x20lovrabet\x20CLI:\x20','object','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27<json>\x27\x20--format\x20compress','METADATA','7461llemWN','3ZfbBho','source','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27\x20--format\x20compress','The\x20current\x20dataset\x20\x22','10dEeCte','dbId','484878AAvCNA','2616rxlpKm','dbtableConfig','datasetCode','length','sourceType','dbtable','2704584gdDpCd','code','Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.','UNKNOWN','validation','datasetName','trim','tableName','Upgrade\x20or\x20migrate\x20this\x20dataset\x20to\x20a\x20DB_TABLE\x20dataset,\x20then\x20continue\x20with\x20the\x20new\x20dataset\x20code.','2923657gKyKKL','7312214KtxbQn','name','2219KnLFfG','48FENDfP','SQL\x20schema\x20validation','lovrabet','375196fJMGkP','\x20is\x20','getOne','1zOjqut','modelCode','join','toUpperCase','7780JJgeyX','filter','dataset'];a68_0x5819=function(){return _0x545ba9;};return a68_0x5819();}const a68_0x339196=a68_0x2c44;(function(_0x595bf3,_0x35e3da){const _0x3412ca=a68_0x2c44,_0x4879da=_0x595bf3();while(!![]){try{const _0x26be98=parseInt(_0x3412ca(0x1ac))/0x1*(parseInt(_0x3412ca(0x192))/0x2)+parseInt(_0x3412ca(0x18c))/0x3*(-parseInt(_0x3412ca(0x1a9))/0x4)+parseInt(_0x3412ca(0x190))/0x5*(-parseInt(_0x3412ca(0x199))/0x6)+parseInt(_0x3412ca(0x1a5))/0x7*(-parseInt(_0x3412ca(0x193))/0x8)+parseInt(_0x3412ca(0x18b))/0x9*(-parseInt(_0x3412ca(0x1b0))/0xa)+-parseInt(_0x3412ca(0x1a2))/0xb+parseInt(_0x3412ca(0x1a6))/0xc*(parseInt(_0x3412ca(0x1a3))/0xd);if(_0x26be98===_0x35e3da)break;else _0x4879da['push'](_0x4879da['shift']());}catch(_0xf4449){_0x4879da['push'](_0x4879da['shift']());}}}(a68_0x5819,0x75d38));import{CliErrors}from'../../errors.js';export const RUNTIME_DATA_ACCESS_COMMANDS={'cli':a68_0x339196(0x1a8),'filter':a68_0x339196(0x189),'getOne':a68_0x339196(0x18e)};export const RUNTIME_DATA_ACCESS_SUMMARY=a68_0x339196(0x19b);function valueToString(_0xdea3b1){const _0x5af89a=a68_0x339196;return _0xdea3b1==null?'':String(_0xdea3b1)[_0x5af89a(0x19f)]();}function getDatasetCode(_0x9442df){const _0xd07440=a68_0x339196;return valueToString(_0x9442df[_0xd07440(0x19a)]??_0x9442df[_0xd07440(0x1ad)]??_0x9442df['dataset']?.[_0xd07440(0x195)]);}function a68_0x2c44(_0x2e44f5,_0x3de856){_0x2e44f5=_0x2e44f5-0x188;const _0x5819fd=a68_0x5819();let _0x2c4409=_0x5819fd[_0x2e44f5];return _0x2c4409;}function getDatasetName(_0x15cbe1){const _0x3049e7=a68_0x339196;return valueToString(_0x15cbe1[_0x3049e7(0x1a4)]??_0x15cbe1['dataset']?.[_0x3049e7(0x19e)])||'unknown';}function getDatasetSource(_0x574ee3){const _0xcee1c1=a68_0x339196;return valueToString(_0x574ee3[_0xcee1c1(0x18d)]??_0x574ee3[_0xcee1c1(0x1b2)]?.[_0xcee1c1(0x197)])[_0xcee1c1(0x1af)]();}function getDbtableConfig(_0x5caf39){const _0x2ca5cb=a68_0x339196,_0x35a5df=_0x5caf39[_0x2ca5cb(0x194)]??_0x5caf39[_0x2ca5cb(0x198)];return _0x35a5df&&typeof _0x35a5df===_0x2ca5cb(0x188)?_0x35a5df:{};}export function isDbTableBackedDataset(_0x3d42a7){const _0x510b07=a68_0x339196,_0x55bd9d=getDatasetSource(_0x3d42a7);if(_0x55bd9d===_0x510b07(0x18a))return![];const _0x437798=getDbtableConfig(_0x3d42a7),_0x4de2cf=_0x437798[_0x510b07(0x191)]??_0x437798['id'],_0x1f75c4=valueToString(_0x437798[_0x510b07(0x1a0)]??_0x3d42a7[_0x510b07(0x1a0)]??_0x3d42a7[_0x510b07(0x1b2)]?.[_0x510b07(0x1a0)]);return _0x4de2cf!==undefined&&_0x4de2cf!==null&&_0x1f75c4[_0x510b07(0x196)]>0x0;}export function filterDbTableBackedDatasets(_0x513f0a){const _0x1ad9fe=a68_0x339196;return _0x513f0a[_0x1ad9fe(0x1b1)](_0x176ff2=>isDbTableBackedDataset(_0x176ff2));}export function buildDbTableBackedRequirementMessage(_0x3d22d1,_0x30ce12=a68_0x339196(0x1a7)){const _0xdf10cf=a68_0x339196,_0x3497ba=getDatasetSource(_0x3d22d1)||_0xdf10cf(0x19c),_0x2ed8e3=getDatasetName(_0x3d22d1),_0x1f10d4=getDatasetCode(_0x3d22d1),_0x4c3531=_0x1f10d4?'\x20('+_0x1f10d4+')':'';return[_0xdf10cf(0x18f)+_0x2ed8e3+'\x22'+_0x4c3531+_0xdf10cf(0x1aa)+_0x3497ba+'\x20and\x20has\x20no\x20DB_TABLE\x20data-source\x20context\x20for\x20'+_0x30ce12+'.','Reason:\x20schema\x20introspection\x20and\x20custom\x20SQL\x20require\x20source=DB_TABLE,\x20dbtableConfig.dbId,\x20dbtableConfig.tableName,\x20and\x20a\x20database\x20connection\x20context.',_0xdf10cf(0x1a1),_0xdf10cf(0x1b3)+RUNTIME_DATA_ACCESS_COMMANDS[_0xdf10cf(0x1b1)]+';\x20'+RUNTIME_DATA_ACCESS_COMMANDS[_0xdf10cf(0x1ab)]+'.'][_0xdf10cf(0x1ae)]('\x20');}export function assertDatasetIsDbTableBacked(_0x442bc8,_0xe2bbd8){const _0x4a8966=a68_0x339196;if(!isDbTableBackedDataset(_0x442bc8))throw CliErrors[_0x4a8966(0x19d)](buildDbTableBackedRequirementMessage(_0x442bc8,_0xe2bbd8));}
@@ -1 +1 @@
1
- const a69_0x48d26f=a69_0x2e24;(function(_0x367c32,_0x4ff17){const _0x3686bf=a69_0x2e24,_0x38b016=_0x367c32();while(!![]){try{const _0xeff5e9=parseInt(_0x3686bf(0xc2))/0x1*(-parseInt(_0x3686bf(0xc9))/0x2)+-parseInt(_0x3686bf(0xc1))/0x3+-parseInt(_0x3686bf(0xca))/0x4+-parseInt(_0x3686bf(0xbf))/0x5*(parseInt(_0x3686bf(0xc0))/0x6)+-parseInt(_0x3686bf(0xc7))/0x7+-parseInt(_0x3686bf(0xc4))/0x8+parseInt(_0x3686bf(0xc6))/0x9;if(_0xeff5e9===_0x4ff17)break;else _0x38b016['push'](_0x38b016['shift']());}catch(_0x534e0c){_0x38b016['push'](_0x38b016['shift']());}}}(a69_0x85ea,0x7441c));function a69_0x2e24(_0x59e6db,_0x58bb5b){_0x59e6db=_0x59e6db-0xbf;const _0x85ea8f=a69_0x85ea();let _0x2e2421=_0x85ea8f[_0x59e6db];return _0x2e2421;}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';function a69_0x85ea(){const _0xf64887=['create','5037888sDcrxi','dataset','23048316yFVfcd','4868206GdmBdd','write','1086296LlvkFf','22672qsmOjP','15kztVxU','308946HvqDqM','168759bMAGKH','1OYgEty'];a69_0x85ea=function(){return _0xf64887;};return a69_0x85ea();}export const datasetCrossRelationCreate={'service':a69_0x48d26f(0xc5),'command':'cross-relation-create','description':'Create\x20a\x20logical\x20relation\x20between\x20DB_TABLE\x20datasets\x20in\x20different\x20database\x20connections','risk':a69_0x48d26f(0xc8),'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 _0x5d4887=>validateCrossRelation(_0x5d4887,a69_0x48d26f(0xc3)),'dryRun':_0x48404e=>previewCrossRelation(_0x48404e,a69_0x48d26f(0xc3)),'execute':_0x4df82a=>executeCrossRelation(_0x4df82a,a69_0x48d26f(0xc3),createCrossDbRelation)};
1
+ const a69_0x55c4a7=a69_0x2195;(function(_0x364e66,_0x13bb4f){const _0x10c404=a69_0x2195,_0x231c9b=_0x364e66();while(!![]){try{const _0x487a00=-parseInt(_0x10c404(0x1c4))/0x1+-parseInt(_0x10c404(0x1bd))/0x2*(-parseInt(_0x10c404(0x1ca))/0x3)+parseInt(_0x10c404(0x1c7))/0x4+-parseInt(_0x10c404(0x1c0))/0x5+-parseInt(_0x10c404(0x1c9))/0x6*(parseInt(_0x10c404(0x1c3))/0x7)+-parseInt(_0x10c404(0x1c2))/0x8*(parseInt(_0x10c404(0x1c5))/0x9)+parseInt(_0x10c404(0x1c6))/0xa*(parseInt(_0x10c404(0x1cb))/0xb);if(_0x487a00===_0x13bb4f)break;else _0x231c9b['push'](_0x231c9b['shift']());}catch(_0x2e5003){_0x231c9b['push'](_0x231c9b['shift']());}}}(a69_0xdc78,0xd5ee8));function a69_0x2195(_0x52f134,_0x16d827){_0x52f134=_0x52f134-0x1bd;const _0xdc7859=a69_0xdc78();let _0x219543=_0xdc7859[_0x52f134];return _0x219543;}import{createCrossDbRelation}from'../../core/api-client.js';function a69_0xdc78(){const _0x5a787f=['1941XvmOBj','1639wBITLw','cross-relation-create','1228fhqtwS','Create\x20a\x20logical\x20relation\x20between\x20DB_TABLE\x20datasets\x20in\x20different\x20database\x20connections','create','8415500lqoGvH','write','1736jBPakG','70KGaYPV','234968Qnbuiz','8811GSPsZn','234170NRnyYE','3471976AvaeUw','dataset','1048566AteWBj'];a69_0xdc78=function(){return _0x5a787f;};return a69_0xdc78();}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_0x55c4a7(0x1c8),'command':a69_0x55c4a7(0x1cc),'description':a69_0x55c4a7(0x1be),'risk':a69_0x55c4a7(0x1c1),'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 _0xc5cf43=>validateCrossRelation(_0xc5cf43,a69_0x55c4a7(0x1bf)),'dryRun':_0x1f2c9e=>previewCrossRelation(_0x1f2c9e,a69_0x55c4a7(0x1bf)),'execute':_0x2dc74d=>executeCrossRelation(_0x2dc74d,a69_0x55c4a7(0x1bf),createCrossDbRelation)};
@@ -1 +1 @@
1
- const a70_0x33d8e6=a70_0x2350;(function(_0x463808,_0x232d3e){const _0x4a95c2=a70_0x2350,_0x450529=_0x463808();while(!![]){try{const _0x28230d=-parseInt(_0x4a95c2(0x13d))/0x1*(-parseInt(_0x4a95c2(0x144))/0x2)+-parseInt(_0x4a95c2(0x140))/0x3*(parseInt(_0x4a95c2(0x14c))/0x4)+-parseInt(_0x4a95c2(0x13e))/0x5*(-parseInt(_0x4a95c2(0x145))/0x6)+parseInt(_0x4a95c2(0x13f))/0x7*(-parseInt(_0x4a95c2(0x148))/0x8)+parseInt(_0x4a95c2(0x14d))/0x9*(parseInt(_0x4a95c2(0x14a))/0xa)+parseInt(_0x4a95c2(0x147))/0xb*(-parseInt(_0x4a95c2(0x14b))/0xc)+parseInt(_0x4a95c2(0x143))/0xd;if(_0x28230d===_0x232d3e)break;else _0x450529['push'](_0x450529['shift']());}catch(_0x480268){_0x450529['push'](_0x450529['shift']());}}}(a70_0x3b06,0xbd959));function a70_0x2350(_0x63b7a5,_0x51d0ca){_0x63b7a5=_0x63b7a5-0x13d;const _0x3b06b5=a70_0x3b06();let _0x235069=_0x3b06b5[_0x63b7a5];return _0x235069;}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';function a70_0x3b06(){const _0x37d883=['3163659TnXMVj','Delete\x20the\x20single\x20cross-database\x20relation\x20matching\x20a\x20source\x20dataset\x20and\x20field','delete','16192228LkWhdD','506378fpPzrG','4281078IWBKWd','high-risk-write','363ykSNwh','10202952kBSndr','dataset','3170iBxEEW','331572pjpYGs','4DBtoCg','16641LCoEib','3USHopr','10zGMTOT','7RrCoAN'];a70_0x3b06=function(){return _0x37d883;};return a70_0x3b06();}export const datasetCrossRelationDelete={'service':a70_0x33d8e6(0x149),'command':'cross-relation-delete','description':a70_0x33d8e6(0x141),'risk':a70_0x33d8e6(0x146),'strictFlags':!![],'requiresCookieAuth':!![],'structuredErrors':!![],'flags':[CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG,CROSS_RELATION_DBLINK_FLAG,APPCODE_FLAG_OPTIONAL],'validate':async _0x2818c5=>validateCrossRelation(_0x2818c5,'delete'),'dryRun':_0x4937b2=>previewCrossRelation(_0x4937b2,a70_0x33d8e6(0x142)),'execute':_0x16a244=>executeCrossRelation(_0x16a244,a70_0x33d8e6(0x142),deleteCrossDbRelation)};
1
+ const a70_0x457039=a70_0x4ba5;function a70_0x4ba5(_0x214742,_0x2a4ac4){_0x214742=_0x214742-0x1cf;const _0x24ecca=a70_0x24ec();let _0x4ba5d4=_0x24ecca[_0x214742];return _0x4ba5d4;}(function(_0x373b6d,_0x343669){const _0x36bd52=a70_0x4ba5,_0x343ab5=_0x373b6d();while(!![]){try{const _0x43fb58=parseInt(_0x36bd52(0x1d1))/0x1*(parseInt(_0x36bd52(0x1d0))/0x2)+-parseInt(_0x36bd52(0x1dd))/0x3+parseInt(_0x36bd52(0x1d3))/0x4*(parseInt(_0x36bd52(0x1d8))/0x5)+-parseInt(_0x36bd52(0x1d6))/0x6*(parseInt(_0x36bd52(0x1d7))/0x7)+parseInt(_0x36bd52(0x1d5))/0x8*(parseInt(_0x36bd52(0x1db))/0x9)+-parseInt(_0x36bd52(0x1d4))/0xa*(-parseInt(_0x36bd52(0x1da))/0xb)+parseInt(_0x36bd52(0x1de))/0xc;if(_0x43fb58===_0x343669)break;else _0x343ab5['push'](_0x343ab5['shift']());}catch(_0x1b9e99){_0x343ab5['push'](_0x343ab5['shift']());}}}(a70_0x24ec,0x56580));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';function a70_0x24ec(){const _0x2eb624=['2RHfRIF','557537txgTrM','dataset','6332BleDRB','1300FHSREN','8UpuACA','794604ziUyon','28kvYXKF','280xwVnZZ','delete','20702BOVBsI','531594BhOFDO','Delete\x20the\x20single\x20cross-database\x20relation\x20matching\x20a\x20source\x20dataset\x20and\x20field','776211LQLEFq','2306712RimYDb','high-risk-write'];a70_0x24ec=function(){return _0x2eb624;};return a70_0x24ec();}export const datasetCrossRelationDelete={'service':a70_0x457039(0x1d2),'command':'cross-relation-delete','description':a70_0x457039(0x1dc),'risk':a70_0x457039(0x1cf),'strictFlags':!![],'requiresCookieAuth':!![],'structuredErrors':!![],'flags':[CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG,CROSS_RELATION_DBLINK_FLAG,APPCODE_FLAG_OPTIONAL],'validate':async _0x4ed0e2=>validateCrossRelation(_0x4ed0e2,a70_0x457039(0x1d9)),'dryRun':_0x3cb2dc=>previewCrossRelation(_0x3cb2dc,a70_0x457039(0x1d9)),'execute':_0x2c7d30=>executeCrossRelation(_0x2c7d30,a70_0x457039(0x1d9),deleteCrossDbRelation)};
@@ -1 +1 @@
1
- const a71_0x221895=a71_0xeb74;(function(_0x336fb9,_0x21f9f6){const _0x4df136=a71_0xeb74,_0x205b51=_0x336fb9();while(!![]){try{const _0x54cf58=parseInt(_0x4df136(0xee))/0x1+parseInt(_0x4df136(0xf1))/0x2*(-parseInt(_0x4df136(0xf6))/0x3)+-parseInt(_0x4df136(0xfa))/0x4+-parseInt(_0x4df136(0xfc))/0x5*(-parseInt(_0x4df136(0xf9))/0x6)+parseInt(_0x4df136(0xf2))/0x7*(parseInt(_0x4df136(0xfe))/0x8)+-parseInt(_0x4df136(0xf5))/0x9*(-parseInt(_0x4df136(0xf7))/0xa)+-parseInt(_0x4df136(0xf3))/0xb;if(_0x54cf58===_0x21f9f6)break;else _0x205b51['push'](_0x205b51['shift']());}catch(_0x323b04){_0x205b51['push'](_0x205b51['shift']());}}}(a71_0x3dca,0x9997c));import{queryCrossDbRelations}from'../../core/api-client.js';function a71_0x3dca(){const _0xcab4ac=['4470976UgVVbQ','\x20relation(s)','5114995LIcRaX','length','8XmurRP','cross-relation-list','851833kBlKlH','map','appCode','1632UZSvXg','4315241QnebnT','13029148NNytRI','list','3177QklELb','813TvzcdK','18730OOKOfP','Cross-database\x20relations:\x20','6pedpBf'];a71_0x3dca=function(){return _0xcab4ac;};return a71_0x3dca();}function a71_0xeb74(_0x3b567f,_0x567366){_0x3b567f=_0x3b567f-0xee;const _0x3dca13=a71_0x3dca();let _0xeb74e8=_0x3dca13[_0x3b567f];return _0xeb74e8;}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';export const datasetCrossRelationList={'service':'dataset','command':a71_0x221895(0xff),'description':'List\x20outgoing\x20cross-database\x20relations\x20by\x20source\x20dataset\x20or\x20database\x20connection','risk':'read','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 _0x38cee8=>validateCrossRelation(_0x38cee8,a71_0x221895(0xf4)),async 'execute'(_0x293dad){const _0x53a31d=a71_0x221895,_0x4c481b=await resolveCrossRelationQuery(_0x293dad),_0x45e6a9=await queryCrossDbRelations(_0x4c481b);return{'ok':!![],'data':{'appCode':_0x293dad[_0x53a31d(0xf0)],'selector':_0x4c481b,'total':_0x45e6a9[_0x53a31d(0xfd)],'relations':_0x45e6a9[_0x53a31d(0xef)](projectCrossRelation)},'message':_0x53a31d(0xf8)+_0x45e6a9['length']+_0x53a31d(0xfb)};}};
1
+ const a71_0x4320e0=a71_0x70af;function a71_0x1969(){const _0x320d33=['4908352xIFmoq','65dgTKXC','\x20relation(s)','91030KbarTn','length','list','361542FNHTWk','appCode','1384738wEyfcb','dataset','3FDOQFC','1640336MWwGiJ','read','1210goobKs','960435TNAOBu','9vZKsIo','279625uJoLwX'];a71_0x1969=function(){return _0x320d33;};return a71_0x1969();}(function(_0x5e7be,_0x8496ed){const _0x13df10=a71_0x70af,_0x43c129=_0x5e7be();while(!![]){try{const _0x18e0d9=parseInt(_0x13df10(0xb3))/0x1+parseInt(_0x13df10(0xbc))/0x2*(parseInt(_0x13df10(0xbe))/0x3)+-parseInt(_0x13df10(0xbf))/0x4+-parseInt(_0x13df10(0xb5))/0x5*(-parseInt(_0x13df10(0xba))/0x6)+-parseInt(_0x13df10(0xb1))/0x7+-parseInt(_0x13df10(0xb4))/0x8*(-parseInt(_0x13df10(0xb2))/0x9)+parseInt(_0x13df10(0xb7))/0xa*(-parseInt(_0x13df10(0xb0))/0xb);if(_0x18e0d9===_0x8496ed)break;else _0x43c129['push'](_0x43c129['shift']());}catch(_0x4ee71c){_0x43c129['push'](_0x43c129['shift']());}}}(a71_0x1969,0xc8424));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_0x70af(_0x4dcabf,_0x5d7483){_0x4dcabf=_0x4dcabf-0xaf;const _0x1969a2=a71_0x1969();let _0x70af8=_0x1969a2[_0x4dcabf];return _0x70af8;}export const datasetCrossRelationList={'service':a71_0x4320e0(0xbd),'command':'cross-relation-list','description':'List\x20outgoing\x20cross-database\x20relations\x20by\x20source\x20dataset\x20or\x20database\x20connection','risk':a71_0x4320e0(0xaf),'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 _0x19de16=>validateCrossRelation(_0x19de16,a71_0x4320e0(0xb9)),async 'execute'(_0x3ab919){const _0x5b774c=a71_0x4320e0,_0x5aa4f2=await resolveCrossRelationQuery(_0x3ab919),_0x266b65=await queryCrossDbRelations(_0x5aa4f2);return{'ok':!![],'data':{'appCode':_0x3ab919[_0x5b774c(0xbb)],'selector':_0x5aa4f2,'total':_0x266b65[_0x5b774c(0xb8)],'relations':_0x266b65['map'](projectCrossRelation)},'message':'Cross-database\x20relations:\x20'+_0x266b65[_0x5b774c(0xb8)]+_0x5b774c(0xb6)};}};
@@ -1 +1 @@
1
- function a72_0x4428(){const _0x521d07=['update','200bqhDIA','includes','relationId','message','from','matched','multiple\x20cross-database\x20relations\x20matched','POST','from-datasetcode','The\x20write\x20was\x20accepted,\x20but\x20current\x20state\x20could\x20not\x20be\x20confirmed.\x20Run\x20dataset\x20cross-relation-list\x20before\x20attempting\x20another\x20write.','124320NsrKlt','toField','map','\x20must\x20be\x20a\x20DB_TABLE\x20dataset.','from-column','before','--from-dblink-id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','toLowerCase','delete','extend','sourceType','53600FYTtip','storageProfile','expectedCardinality','trim','Cross-database\x20relation\x20not\x20found\x20for\x20this\x20source\x20dataset\x20and\x20field.','27831KHKYwW','catch','data','label_inherited','Cross-database\x20relations\x20require\x20different\x20source\x20and\x20target\x20database\x20connections.','parse','datasetCode','apiError','unconfirmed','toDatasetName','Would\x20','appCode','\x20a\x20cross-database\x20relation\x20for\x20','toDblinkId','to-column','7UFDnSa','toDatasetCode','isSafeInteger','validation','\x20has\x20invalid\x20storage\x20configuration.','2012704ersxjT','dblinkId','fromField','toTableName','from-dblink-id','table','dbId','DB_TABLE','98274MToeyL','query','fromDatasetCode','Run\x20dataset\x20cross-relation-list\x20to\x20inspect\x20the\x20candidates.\x20This\x20command\x20accepts\x20only\x20a\x20source\x20dataset\x20and\x20field.','source','142HuDmYA','fromDblinkId','dbtableConfig','Invalid\x20--cardinality.','string','str','filter','to-datasetcode','list','Provide\x20--from-datasetcode\x20or\x20--from-dblink-id.','to-label-column','refTableLabelName','\x20is\x20missing\x20its\x20database\x20connection\x20or\x20physical\x20table\x20name.','flag','length','519120TWxysM','\x20write\x20was\x20not\x20verified.','Multiple\x20cross-database\x20relations\x20match\x20this\x20source\x20field;\x20update/delete\x20cannot\x20select\x20one\x20target.','defineProperty','\x20verified.','The\x20target\x20display\x20field\x20is\x20inherited.\x20When\x20changing\x20the\x20target\x20dataset,\x20provide\x20--to-label-column\x20explicitly.','relationType','Dataset\x20','expectedLabel','tableName','Cross-database\x20relation\x20','create','enum','cardinality','flagMissing','4277305WWnnXU','some','--from-dblink-id\x20does\x20not\x20match\x20the\x20source\x20dataset\x20connection.','body','Cross-database\x20relation\x20already\x20exists\x20for\x20these\x20source\x20and\x20target\x20endpoints.'];a72_0x4428=function(){return _0x521d07;};return a72_0x4428();}const a72_0x323d66=a72_0x139d;function a72_0x139d(_0x584fec,_0x553118){_0x584fec=_0x584fec-0x167;const _0x4428e7=a72_0x4428();let _0x139da0=_0x4428e7[_0x584fec];return _0x139da0;}(function(_0x4f40ed,_0x5ed2a0){const _0x21de79=a72_0x139d,_0x27ae59=_0x4f40ed();while(!![]){try{const _0x3410d8=parseInt(_0x21de79(0x1b4))/0x1+-parseInt(_0x21de79(0x17b))/0x2*(-parseInt(_0x21de79(0x1b9))/0x3)+-parseInt(_0x21de79(0x16e))/0x4+-parseInt(_0x21de79(0x199))/0x5+-parseInt(_0x21de79(0x176))/0x6*(parseInt(_0x21de79(0x169))/0x7)+parseInt(_0x21de79(0x1a9))/0x8+-parseInt(_0x21de79(0x18a))/0x9*(-parseInt(_0x21de79(0x19f))/0xa);if(_0x3410d8===_0x5ed2a0)break;else _0x27ae59['push'](_0x27ae59['shift']());}catch(_0x542d3f){_0x27ae59['push'](_0x27ae59['shift']());}}}(a72_0x4428,0x7ba17));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(_0x59fc6c,_0x600ac){const _0x45e996=a72_0x139d,_0x2408be=_0x59fc6c[_0x45e996(0x180)](_0x600ac)[_0x45e996(0x1b7)]();if(!_0x2408be)throw CliErrors[_0x45e996(0x198)](_0x600ac);return _0x2408be;}function explicitDblink(_0x38b82e){const _0x422498=a72_0x139d,_0x1d8015=_0x38b82e[_0x422498(0x188)](_0x422498(0x172));if(_0x1d8015===undefined||_0x1d8015===null)return undefined;const _0x422113=Number(_0x1d8015);if(!Number[_0x422498(0x16b)](_0x422113)||_0x422113<=0x0)throw CliErrors['validation'](_0x422498(0x1af));return _0x422113;}export function validateCrossRelation(_0x3b8fd6,_0x41ac01){const _0x43a34a=a72_0x139d,_0xbe1b73=explicitDblink(_0x3b8fd6);if(_0x41ac01===_0x43a34a(0x183)){if(!_0x3b8fd6[_0x43a34a(0x180)]('from-datasetcode')['trim']()&&_0xbe1b73===undefined)throw CliErrors['validation'](_0x43a34a(0x184));return;}required(_0x3b8fd6,_0x43a34a(0x1a7)),required(_0x3b8fd6,_0x43a34a(0x1ad));if(_0x41ac01!=='delete'){required(_0x3b8fd6,'to-datasetcode'),required(_0x3b8fd6,_0x43a34a(0x168));const _0x392a1c=_0x3b8fd6[_0x43a34a(0x180)](_0x43a34a(0x197))[_0x43a34a(0x1b7)]();if(_0x392a1c&&!CROSS_RELATION_CARDINALITY_FLAG[_0x43a34a(0x196)][_0x43a34a(0x1a0)](_0x392a1c))throw CliErrors['validation'](_0x43a34a(0x17e));}}async function resolveEndpoint(_0x304b3d){const _0x1098c0=a72_0x139d,_0x3255ac=await getDatasetDetail(_0x304b3d),_0x15fad9=_0x3255ac?.['dataset']??{};if((_0x3255ac?.[_0x1098c0(0x17a)]??_0x15fad9[_0x1098c0(0x1b3)])!==_0x1098c0(0x175))throw CliErrors[_0x1098c0(0x16c)]('Dataset\x20'+_0x304b3d+_0x1098c0(0x1ac));const _0x431f41=_0x3255ac[_0x1098c0(0x17d)]??_0x3255ac['dbtable']??{};let _0x57f396=_0x3255ac[_0x1098c0(0x1b2)]??_0x15fad9[_0x1098c0(0x1b2)]??{};if(typeof _0x57f396===_0x1098c0(0x17f))try{_0x57f396=_0x57f396[_0x1098c0(0x1b7)]()?JSON[_0x1098c0(0x1be)](_0x57f396):{};}catch{throw CliErrors[_0x1098c0(0x16c)](_0x1098c0(0x191)+_0x304b3d+_0x1098c0(0x16d));}const _0x30feef=Number(_0x57f396?.[_0x1098c0(0x1b5)]?.['dbId']??_0x3255ac[_0x1098c0(0x1b5)]?.[_0x1098c0(0x174)]??_0x15fad9[_0x1098c0(0x1b5)]?.[_0x1098c0(0x174)]??_0x431f41[_0x1098c0(0x174)]??_0x15fad9[_0x1098c0(0x174)]??_0x3255ac[_0x1098c0(0x174)]),_0x2e5c6c=String(_0x3255ac['tableName']??_0x15fad9[_0x1098c0(0x193)]??_0x431f41[_0x1098c0(0x193)]??'')[_0x1098c0(0x1b7)]();if(!Number[_0x1098c0(0x16b)](_0x30feef)||_0x30feef<=0x0||!_0x2e5c6c)throw CliErrors[_0x1098c0(0x16c)](_0x1098c0(0x191)+_0x304b3d+_0x1098c0(0x187));return{'datasetCode':_0x304b3d,'dblinkId':_0x30feef,'table':_0x2e5c6c};}export async function resolveCrossRelationQuery(_0x59a783){const _0x3f9ba6=a72_0x139d,_0x463a60=_0x59a783[_0x3f9ba6(0x180)](_0x3f9ba6(0x1a7))[_0x3f9ba6(0x1b7)](),_0x506d5b=explicitDblink(_0x59a783),_0x67805c=_0x463a60?await resolveEndpoint(_0x463a60):undefined;if(_0x67805c&&_0x506d5b!==undefined&&_0x67805c['dblinkId']!==_0x506d5b)throw CliErrors['validation']('--from-dblink-id\x20does\x20not\x20match\x20the\x20source\x20dataset\x20connection.');const _0x583425=_0x67805c?.[_0x3f9ba6(0x16f)]??_0x506d5b;if(_0x583425===undefined)throw CliErrors[_0x3f9ba6(0x16c)](_0x3f9ba6(0x184));return{'appCode':_0x59a783['appCode'],'fromDblinkId':_0x583425,..._0x463a60?{'fromDatasetCode':_0x463a60}:{},..._0x59a783[_0x3f9ba6(0x180)]('from-column')[_0x3f9ba6(0x1b7)]()?{'fromField':_0x59a783[_0x3f9ba6(0x180)](_0x3f9ba6(0x1ad))[_0x3f9ba6(0x1b7)]()}:{}};}export function projectCrossRelation(_0x155d76){const _0x4d3f34=a72_0x139d;return{'relationId':_0x155d76[_0x4d3f34(0x1a1)],'from':{'source':_0x4d3f34(0x175),'datasetCode':_0x155d76[_0x4d3f34(0x178)],'datasetName':_0x155d76['fromDatasetName'],'dblinkId':_0x155d76[_0x4d3f34(0x17c)],'table':_0x155d76['fromTableName'],'field':_0x155d76[_0x4d3f34(0x170)]},'to':{'source':_0x4d3f34(0x175),'datasetCode':_0x155d76[_0x4d3f34(0x16a)],'datasetName':_0x155d76[_0x4d3f34(0x1c2)],'dblinkId':_0x155d76[_0x4d3f34(0x167)],'table':_0x155d76[_0x4d3f34(0x171)],'field':_0x155d76[_0x4d3f34(0x1aa)],'labelField':_0x155d76['refTableLabelName']},'relation':{'cardinality':_0x155d76[_0x4d3f34(0x197)],'relationType':_0x155d76[_0x4d3f34(0x190)]}};}function ambiguity(_0x1056cb){const _0x3f6f0c=a72_0x139d,_0x1b6e30=CliErrors[_0x3f6f0c(0x16c)](_0x3f6f0c(0x18c),_0x3f6f0c(0x179));return Object[_0x3f6f0c(0x18d)](_0x1b6e30,_0x3f6f0c(0x1bb),{'value':{'candidates':_0x1056cb[_0x3f6f0c(0x1ab)](projectCrossRelation)}}),_0x1b6e30;}const sameName=(_0x1a0447,_0x41b723)=>_0x1a0447[a72_0x323d66(0x1b0)]()===_0x41b723['toLowerCase']();function matchesEndpoint(_0x2a9169,_0x4b5382,_0x173832,_0x3c4d8c,_0x1c4065){const _0xe9f709=a72_0x323d66;return _0x2a9169[_0xe9f709(0x17c)]===_0x4b5382[_0xe9f709(0x16f)]&&sameName(_0x2a9169['fromTableName'],_0x4b5382[_0xe9f709(0x173)])&&sameName(_0x2a9169['fromField'],_0x173832)&&_0x2a9169[_0xe9f709(0x167)]===_0x3c4d8c[_0xe9f709(0x16f)]&&sameName(_0x2a9169[_0xe9f709(0x171)],_0x3c4d8c[_0xe9f709(0x173)])&&sameName(_0x2a9169['toField'],_0x1c4065);}export async function prepareCrossRelation(_0x36888a,_0x4d9422){const _0x53fdd6=a72_0x323d66,_0x38c766=await resolveEndpoint(required(_0x36888a,'from-datasetcode')),_0x41a910=explicitDblink(_0x36888a);if(_0x41a910!==undefined&&_0x38c766[_0x53fdd6(0x16f)]!==_0x41a910)throw CliErrors['validation'](_0x53fdd6(0x19b));const _0xd31595={'appCode':_0x36888a[_0x53fdd6(0x1c4)],'fromDatasetCode':_0x38c766[_0x53fdd6(0x1bf)],'fromField':required(_0x36888a,_0x53fdd6(0x1ad)),..._0x41a910!==undefined?{'fromDblinkId':_0x41a910}:{}},_0x4e0716={'appCode':_0x36888a[_0x53fdd6(0x1c4)],'fromDblinkId':_0x38c766['dblinkId'],'fromDatasetCode':_0x38c766[_0x53fdd6(0x1bf)],'fromField':_0xd31595['fromField']},_0xa00eb6=await queryCrossDbRelations(_0x4e0716);let _0x2f2d63=null;if(_0x4d9422!=='create'){if(_0xa00eb6[_0x53fdd6(0x189)]>0x1)throw ambiguity(_0xa00eb6);_0x2f2d63=_0xa00eb6[0x0]??null;if(!_0x2f2d63)throw CliErrors[_0x53fdd6(0x16c)](_0x53fdd6(0x1b8));}if(_0x4d9422===_0x53fdd6(0x1b1))return{'operation':_0x4d9422,'from':_0x38c766,'query':_0x4e0716,'body':_0xd31595,'before':_0x2f2d63};const _0x50ca07=await resolveEndpoint(required(_0x36888a,_0x53fdd6(0x182)));if(_0x38c766[_0x53fdd6(0x16f)]===_0x50ca07['dblinkId'])throw CliErrors[_0x53fdd6(0x16c)](_0x53fdd6(0x1bd));const _0x3117ca=_0x36888a[_0x53fdd6(0x180)](_0x53fdd6(0x185))['trim'](),_0x1d4194=_0x36888a[_0x53fdd6(0x180)](_0x53fdd6(0x197))['trim'](),_0x563f12={..._0xd31595,'toDatasetCode':_0x50ca07[_0x53fdd6(0x1bf)],'toField':required(_0x36888a,'to-column'),..._0x3117ca?{'refTableLabelName':_0x3117ca}:{},..._0x1d4194?{'cardinality':_0x1d4194}:{}};if(_0xa00eb6[_0x53fdd6(0x19a)](_0x1cca4b=>_0x1cca4b['relationId']!==_0x2f2d63?.[_0x53fdd6(0x1a1)]&&matchesEndpoint(_0x1cca4b,_0x38c766,_0x563f12['fromField'],_0x50ca07,_0x563f12['toField'])))throw CliErrors[_0x53fdd6(0x16c)](_0x53fdd6(0x19d));return{'operation':_0x4d9422,'from':_0x38c766,'to':_0x50ca07,'query':_0x4e0716,'body':_0x563f12,'before':_0x2f2d63,'expectedLabel':_0x3117ca||_0x2f2d63?.[_0x53fdd6(0x186)]||_0x563f12[_0x53fdd6(0x1aa)],'expectedCardinality':_0x1d4194||_0x2f2d63?.[_0x53fdd6(0x197)]||null};}function mutationData(_0x51b2b5,_0x566805,_0x1e669b){const _0x5cd1e4=a72_0x323d66,{operation:_0x1abe8f,body:_0x12e9ee,before:_0x43e68d}=_0x51b2b5;return{'operation':_0x1abe8f,'selector':{'appCode':_0x12e9ee[_0x5cd1e4(0x1c4)],'from':{'datasetCode':_0x12e9ee[_0x5cd1e4(0x178)],'field':_0x12e9ee[_0x5cd1e4(0x170)],'dblinkId':_0x51b2b5['from'][_0x5cd1e4(0x16f)]}},'before':_0x43e68d?projectCrossRelation(_0x43e68d):null,'after':_0x1e669b,'dryRun':_0x566805,'backend':{'method':_0x5cd1e4(0x1a6),'path':CROSS_DB_RELATION_PATHS[_0x1abe8f]},'warnings':_0x1abe8f===_0x5cd1e4(0x19e)&&!_0x12e9ee[_0x5cd1e4(0x186)]?[{'code':_0x5cd1e4(0x1bc),'message':_0x5cd1e4(0x18f)}]:[]};}export async function previewCrossRelation(_0x191ad4,_0x57ed88){const _0x3ac655=a72_0x323d66,_0xfa544f=await prepareCrossRelation(_0x191ad4,_0x57ed88),_0xe369e7=_0xfa544f[_0x3ac655(0x19c)],_0x354015=_0x57ed88==='delete'?null:{..._0xfa544f[_0x3ac655(0x1ae)]?{'relationId':_0xfa544f[_0x3ac655(0x1ae)]['relationId']}:{},'from':{'datasetCode':_0xfa544f['from'][_0x3ac655(0x1bf)],'dblinkId':_0xfa544f['from'][_0x3ac655(0x16f)],'table':_0xfa544f[_0x3ac655(0x1a3)]['table'],'field':_0xe369e7[_0x3ac655(0x170)]},'to':{'datasetCode':_0xfa544f['to']['datasetCode'],'dblinkId':_0xfa544f['to'][_0x3ac655(0x16f)],'table':_0xfa544f['to'][_0x3ac655(0x173)],'field':_0xe369e7[_0x3ac655(0x1aa)],'labelField':_0xfa544f[_0x3ac655(0x192)]},'relation':{'cardinality':_0xfa544f[_0x3ac655(0x1b6)],'relationType':0x2}};return{...mutationData(_0xfa544f,!![],null),'after':_0x354015,'method':_0x3ac655(0x1a6),'url':CROSS_DB_RELATION_PATHS[_0x57ed88],'body':_0xfa544f[_0x3ac655(0x19c)],'description':_0x3ac655(0x1c3)+_0x57ed88+_0x3ac655(0x1c5)+_0xe369e7[_0x3ac655(0x178)]+'.'+_0xe369e7[_0x3ac655(0x170)]};}export async function executeCrossRelation(_0x359621,_0xb492b7,_0x2e48fb){const _0x31c448=a72_0x323d66,_0x15f498=await prepareCrossRelation(_0x359621,_0xb492b7);try{await _0x2e48fb(_0x15f498[_0x31c448(0x19c)]);}catch(_0x26ff03){if(_0x26ff03 instanceof CliError&&_0x26ff03[_0x31c448(0x1a2)][_0x31c448(0x1a0)](_0x31c448(0x1a5))){const _0x3a5a8f=await queryCrossDbRelations(_0x15f498['query'])[_0x31c448(0x1ba)](()=>[]);throw ambiguity(_0x3a5a8f);}throw _0x26ff03;}let _0x1f8ee7=[],_0x4ffeb9,_0x5c4c51=![];try{_0x1f8ee7=await queryCrossDbRelations(_0x15f498[_0x31c448(0x177)]);if(_0xb492b7===_0x31c448(0x1b1))_0x5c4c51=!_0x1f8ee7[_0x31c448(0x19a)](_0x5f9ba2=>_0x5f9ba2['relationId']===_0x15f498[_0x31c448(0x1ae)]['relationId']);else{const _0x89987f=_0x15f498['body'],_0x369b74=_0x1f8ee7[_0x31c448(0x181)](_0x2e5001=>matchesEndpoint(_0x2e5001,_0x15f498[_0x31c448(0x1a3)],_0x89987f[_0x31c448(0x170)],_0x15f498['to'],_0x89987f[_0x31c448(0x1aa)])&&(_0xb492b7===_0x31c448(0x195)||_0x2e5001[_0x31c448(0x1a1)]===_0x15f498[_0x31c448(0x1ae)][_0x31c448(0x1a1)]));_0x4ffeb9=_0x369b74[_0x31c448(0x189)]===0x1?_0x369b74[0x0]:undefined,_0x5c4c51=!!_0x4ffeb9&&_0x4ffeb9[_0x31c448(0x186)]===_0x15f498[_0x31c448(0x192)]&&_0x4ffeb9[_0x31c448(0x197)]===_0x15f498[_0x31c448(0x1b6)]&&_0x4ffeb9[_0x31c448(0x190)]===0x2;}}catch{}const _0x3c6ab7={...mutationData(_0x15f498,![],_0x4ffeb9?projectCrossRelation(_0x4ffeb9):null),'verification':{'status':_0x5c4c51?_0x31c448(0x1a4):_0x31c448(0x1c1),'verified':_0x5c4c51}};if(!_0x5c4c51){const _0x5d1b09=CliErrors[_0x31c448(0x1c0)](_0x31c448(0x194)+_0xb492b7+_0x31c448(0x18b),_0x31c448(0x1a8));Object[_0x31c448(0x18d)](_0x5d1b09,_0x31c448(0x1bb),{'value':{..._0x3c6ab7,'candidates':_0x1f8ee7[_0x31c448(0x1ab)](projectCrossRelation)}});throw _0x5d1b09;}return{'ok':!![],'data':_0x3c6ab7,'message':_0x31c448(0x194)+_0xb492b7+_0x31c448(0x18e)};}
1
+ (function(_0x4a67d6,_0x58fa61){const _0xc581c2=a72_0x1b10,_0x3efda4=_0x4a67d6();while(!![]){try{const _0x4f0b53=-parseInt(_0xc581c2(0x1ee))/0x1+parseInt(_0xc581c2(0x21e))/0x2*(-parseInt(_0xc581c2(0x1e9))/0x3)+-parseInt(_0xc581c2(0x1d3))/0x4*(parseInt(_0xc581c2(0x203))/0x5)+parseInt(_0xc581c2(0x218))/0x6+-parseInt(_0xc581c2(0x223))/0x7+parseInt(_0xc581c2(0x1e8))/0x8+-parseInt(_0xc581c2(0x1fb))/0x9*(-parseInt(_0xc581c2(0x1de))/0xa);if(_0x4f0b53===_0x58fa61)break;else _0x3efda4['push'](_0x3efda4['shift']());}catch(_0x17ab74){_0x3efda4['push'](_0x3efda4['shift']());}}}(a72_0x3746,0x9e03b));import{getDatasetDetail,queryCrossDbRelations}from'../../core/api-client.js';import{CROSS_DB_RELATION_PATHS}from'../../core/cross-db-relation.js';function a72_0x1b10(_0x51492d,_0x3d3a05){_0x51492d=_0x51492d-0x1d3;const _0x37464d=a72_0x3746();let _0x1b1040=_0x37464d[_0x51492d];return _0x1b1040;}import{CliError,CliErrors}from'../../errors.js';import{CROSS_RELATION_CARDINALITY_FLAG}from'../../commands/common/flags.js';function required(_0x5182c6,_0x488dc6){const _0x583c18=a72_0x1b10,_0xc55f7d=_0x5182c6['str'](_0x488dc6)[_0x583c18(0x21c)]();if(!_0xc55f7d)throw CliErrors[_0x583c18(0x1d5)](_0x488dc6);return _0xc55f7d;}function explicitDblink(_0x3ad325){const _0x1bcd3d=a72_0x1b10,_0x40f110=_0x3ad325[_0x1bcd3d(0x1da)]('from-dblink-id');if(_0x40f110===undefined||_0x40f110===null)return undefined;const _0x26ea59=Number(_0x40f110);if(!Number[_0x1bcd3d(0x1ff)](_0x26ea59)||_0x26ea59<=0x0)throw CliErrors[_0x1bcd3d(0x212)]('--from-dblink-id\x20must\x20be\x20a\x20positive\x20safe\x20integer.');return _0x26ea59;}export function validateCrossRelation(_0x50bb5c,_0x29f35b){const _0x7f0aed=a72_0x1b10,_0x43995b=explicitDblink(_0x50bb5c);if(_0x29f35b===_0x7f0aed(0x1ec)){if(!_0x50bb5c[_0x7f0aed(0x1fd)](_0x7f0aed(0x21b))[_0x7f0aed(0x21c)]()&&_0x43995b===undefined)throw CliErrors[_0x7f0aed(0x212)](_0x7f0aed(0x204));return;}required(_0x50bb5c,'from-datasetcode'),required(_0x50bb5c,'from-column');if(_0x29f35b!==_0x7f0aed(0x1ea)){required(_0x50bb5c,_0x7f0aed(0x1fc)),required(_0x50bb5c,_0x7f0aed(0x217));const _0x17c192=_0x50bb5c[_0x7f0aed(0x1fd)]('cardinality')[_0x7f0aed(0x21c)]();if(_0x17c192&&!CROSS_RELATION_CARDINALITY_FLAG['enum'][_0x7f0aed(0x1e4)](_0x17c192))throw CliErrors[_0x7f0aed(0x212)](_0x7f0aed(0x1d4));}}async function resolveEndpoint(_0x2086a8){const _0x53cb90=a72_0x1b10,_0x22383f=await getDatasetDetail(_0x2086a8),_0xc2d51f=_0x22383f?.[_0x53cb90(0x225)]??{};if((_0x22383f?.[_0x53cb90(0x1df)]??_0xc2d51f[_0x53cb90(0x1f0)])!=='DB_TABLE')throw CliErrors[_0x53cb90(0x212)](_0x53cb90(0x214)+_0x2086a8+_0x53cb90(0x205));const _0x166d31=_0x22383f[_0x53cb90(0x20e)]??_0x22383f['dbtable']??{};let _0x1935a5=_0x22383f[_0x53cb90(0x1e7)]??_0xc2d51f[_0x53cb90(0x1e7)]??{};if(typeof _0x1935a5===_0x53cb90(0x227))try{_0x1935a5=_0x1935a5['trim']()?JSON[_0x53cb90(0x1f7)](_0x1935a5):{};}catch{throw CliErrors[_0x53cb90(0x212)](_0x53cb90(0x214)+_0x2086a8+_0x53cb90(0x1e3));}const _0xc80ef5=Number(_0x1935a5?.[_0x53cb90(0x1d7)]?.[_0x53cb90(0x20c)]??_0x22383f[_0x53cb90(0x1d7)]?.[_0x53cb90(0x20c)]??_0xc2d51f[_0x53cb90(0x1d7)]?.[_0x53cb90(0x20c)]??_0x166d31['dbId']??_0xc2d51f[_0x53cb90(0x20c)]??_0x22383f[_0x53cb90(0x20c)]),_0x133fe0=String(_0x22383f[_0x53cb90(0x1db)]??_0xc2d51f[_0x53cb90(0x1db)]??_0x166d31[_0x53cb90(0x1db)]??'')['trim']();if(!Number['isSafeInteger'](_0xc80ef5)||_0xc80ef5<=0x0||!_0x133fe0)throw CliErrors[_0x53cb90(0x212)]('Dataset\x20'+_0x2086a8+_0x53cb90(0x1e5));return{'datasetCode':_0x2086a8,'dblinkId':_0xc80ef5,'table':_0x133fe0};}export async function resolveCrossRelationQuery(_0x1351c6){const _0x4b5cb8=a72_0x1b10,_0x48d68b=_0x1351c6['str']('from-datasetcode')[_0x4b5cb8(0x21c)](),_0x2a0196=explicitDblink(_0x1351c6),_0x31e432=_0x48d68b?await resolveEndpoint(_0x48d68b):undefined;if(_0x31e432&&_0x2a0196!==undefined&&_0x31e432[_0x4b5cb8(0x1f1)]!==_0x2a0196)throw CliErrors[_0x4b5cb8(0x212)](_0x4b5cb8(0x21f));const _0x419d8a=_0x31e432?.['dblinkId']??_0x2a0196;if(_0x419d8a===undefined)throw CliErrors[_0x4b5cb8(0x212)](_0x4b5cb8(0x204));return{'appCode':_0x1351c6[_0x4b5cb8(0x1dd)],'fromDblinkId':_0x419d8a,..._0x48d68b?{'fromDatasetCode':_0x48d68b}:{},..._0x1351c6['str'](_0x4b5cb8(0x206))[_0x4b5cb8(0x21c)]()?{'fromField':_0x1351c6['str'](_0x4b5cb8(0x206))[_0x4b5cb8(0x21c)]()}:{}};}export function projectCrossRelation(_0x374c30){const _0x114691=a72_0x1b10;return{'relationId':_0x374c30[_0x114691(0x1f4)],'from':{'source':_0x114691(0x20b),'datasetCode':_0x374c30[_0x114691(0x201)],'datasetName':_0x374c30[_0x114691(0x21a)],'dblinkId':_0x374c30[_0x114691(0x226)],'table':_0x374c30[_0x114691(0x1d6)],'field':_0x374c30['fromField']},'to':{'source':_0x114691(0x20b),'datasetCode':_0x374c30[_0x114691(0x228)],'datasetName':_0x374c30['toDatasetName'],'dblinkId':_0x374c30['toDblinkId'],'table':_0x374c30[_0x114691(0x202)],'field':_0x374c30[_0x114691(0x200)],'labelField':_0x374c30[_0x114691(0x219)]},'relation':{'cardinality':_0x374c30[_0x114691(0x21d)],'relationType':_0x374c30[_0x114691(0x1fa)]}};}function ambiguity(_0x1a42e6){const _0x4cca20=a72_0x1b10,_0x2d336b=CliErrors[_0x4cca20(0x212)]('Multiple\x20cross-database\x20relations\x20match\x20this\x20source\x20field;\x20update/delete\x20cannot\x20select\x20one\x20target.',_0x4cca20(0x1f9));return Object[_0x4cca20(0x209)](_0x2d336b,_0x4cca20(0x1d9),{'value':{'candidates':_0x1a42e6[_0x4cca20(0x215)](projectCrossRelation)}}),_0x2d336b;}const sameName=(_0x2cb1be,_0x5292be)=>_0x2cb1be['toLowerCase']()===_0x5292be['toLowerCase']();function a72_0x3746(){const _0x520ad5=['dbtableConfig','apiError','label_inherited','to-label-column','validation','Would\x20','Dataset\x20','map','toDblinkId','to-column','4207548rYXzfH','refTableLabelName','fromDatasetName','from-datasetcode','trim','cardinality','934sRfZJh','--from-dblink-id\x20does\x20not\x20match\x20the\x20source\x20dataset\x20connection.','before','The\x20write\x20was\x20accepted,\x20but\x20current\x20state\x20could\x20not\x20be\x20confirmed.\x20Run\x20dataset\x20cross-relation-list\x20before\x20attempting\x20another\x20write.','from','7958769OEYPVH','catch','dataset','fromDblinkId','string','toDatasetCode','4aFMLsQ','Invalid\x20--cardinality.','flagMissing','fromTableName','storageProfile','\x20verified.','data','flag','tableName','matched','appCode','20JzrEQl','source','The\x20target\x20display\x20field\x20is\x20inherited.\x20When\x20changing\x20the\x20target\x20dataset,\x20provide\x20--to-label-column\x20explicitly.','\x20write\x20was\x20not\x20verified.','Cross-database\x20relation\x20','\x20has\x20invalid\x20storage\x20configuration.','includes','\x20is\x20missing\x20its\x20database\x20connection\x20or\x20physical\x20table\x20name.','\x20a\x20cross-database\x20relation\x20for\x20','extend','4520080NykvlO','2865XKnhjJ','delete','expectedCardinality','list','query','786007tqjXpD','table','sourceType','dblinkId','Cross-database\x20relation\x20already\x20exists\x20for\x20these\x20source\x20and\x20target\x20endpoints.','fromField','relationId','expectedLabel','some','parse','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.','relationType','11543013VElZzY','to-datasetcode','str','datasetCode','isSafeInteger','toField','fromDatasetCode','toTableName','4075980IvkNji','Provide\x20--from-datasetcode\x20or\x20--from-dblink-id.','\x20must\x20be\x20a\x20DB_TABLE\x20dataset.','from-column','unconfirmed','body','defineProperty','create','DB_TABLE','dbId','length'];a72_0x3746=function(){return _0x520ad5;};return a72_0x3746();}function matchesEndpoint(_0x17869f,_0x402f58,_0x537a0c,_0xcd8218,_0x4abf52){const _0x348a1e=a72_0x1b10;return _0x17869f[_0x348a1e(0x226)]===_0x402f58[_0x348a1e(0x1f1)]&&sameName(_0x17869f[_0x348a1e(0x1d6)],_0x402f58[_0x348a1e(0x1ef)])&&sameName(_0x17869f[_0x348a1e(0x1f3)],_0x537a0c)&&_0x17869f[_0x348a1e(0x216)]===_0xcd8218[_0x348a1e(0x1f1)]&&sameName(_0x17869f[_0x348a1e(0x202)],_0xcd8218[_0x348a1e(0x1ef)])&&sameName(_0x17869f[_0x348a1e(0x200)],_0x4abf52);}export async function prepareCrossRelation(_0x5ef5e8,_0x59e663){const _0x280cfc=a72_0x1b10,_0x1300b3=await resolveEndpoint(required(_0x5ef5e8,_0x280cfc(0x21b))),_0x515155=explicitDblink(_0x5ef5e8);if(_0x515155!==undefined&&_0x1300b3[_0x280cfc(0x1f1)]!==_0x515155)throw CliErrors[_0x280cfc(0x212)](_0x280cfc(0x21f));const _0xef470f={'appCode':_0x5ef5e8[_0x280cfc(0x1dd)],'fromDatasetCode':_0x1300b3['datasetCode'],'fromField':required(_0x5ef5e8,'from-column'),..._0x515155!==undefined?{'fromDblinkId':_0x515155}:{}},_0x361359={'appCode':_0x5ef5e8['appCode'],'fromDblinkId':_0x1300b3[_0x280cfc(0x1f1)],'fromDatasetCode':_0x1300b3[_0x280cfc(0x1fe)],'fromField':_0xef470f['fromField']},_0x59a454=await queryCrossDbRelations(_0x361359);let _0x3ecd63=null;if(_0x59e663!==_0x280cfc(0x20a)){if(_0x59a454[_0x280cfc(0x20d)]>0x1)throw ambiguity(_0x59a454);_0x3ecd63=_0x59a454[0x0]??null;if(!_0x3ecd63)throw CliErrors[_0x280cfc(0x212)]('Cross-database\x20relation\x20not\x20found\x20for\x20this\x20source\x20dataset\x20and\x20field.');}if(_0x59e663==='delete')return{'operation':_0x59e663,'from':_0x1300b3,'query':_0x361359,'body':_0xef470f,'before':_0x3ecd63};const _0x10fc32=await resolveEndpoint(required(_0x5ef5e8,'to-datasetcode'));if(_0x1300b3[_0x280cfc(0x1f1)]===_0x10fc32[_0x280cfc(0x1f1)])throw CliErrors['validation'](_0x280cfc(0x1f8));const _0x246530=_0x5ef5e8[_0x280cfc(0x1fd)](_0x280cfc(0x211))[_0x280cfc(0x21c)](),_0x308ce0=_0x5ef5e8[_0x280cfc(0x1fd)]('cardinality')['trim'](),_0x2f41d4={..._0xef470f,'toDatasetCode':_0x10fc32[_0x280cfc(0x1fe)],'toField':required(_0x5ef5e8,'to-column'),..._0x246530?{'refTableLabelName':_0x246530}:{},..._0x308ce0?{'cardinality':_0x308ce0}:{}};if(_0x59a454[_0x280cfc(0x1f6)](_0x3a599c=>_0x3a599c[_0x280cfc(0x1f4)]!==_0x3ecd63?.['relationId']&&matchesEndpoint(_0x3a599c,_0x1300b3,_0x2f41d4[_0x280cfc(0x1f3)],_0x10fc32,_0x2f41d4['toField'])))throw CliErrors[_0x280cfc(0x212)](_0x280cfc(0x1f2));return{'operation':_0x59e663,'from':_0x1300b3,'to':_0x10fc32,'query':_0x361359,'body':_0x2f41d4,'before':_0x3ecd63,'expectedLabel':_0x246530||_0x3ecd63?.[_0x280cfc(0x219)]||_0x2f41d4[_0x280cfc(0x200)],'expectedCardinality':_0x308ce0||_0x3ecd63?.['cardinality']||null};}function mutationData(_0x1aeb38,_0x31b8be,_0x4b8a37){const _0x7c55a4=a72_0x1b10,{operation:_0x1992c1,body:_0x638a55,before:_0x514c14}=_0x1aeb38;return{'operation':_0x1992c1,'selector':{'appCode':_0x638a55[_0x7c55a4(0x1dd)],'from':{'datasetCode':_0x638a55['fromDatasetCode'],'field':_0x638a55['fromField'],'dblinkId':_0x1aeb38[_0x7c55a4(0x222)][_0x7c55a4(0x1f1)]}},'before':_0x514c14?projectCrossRelation(_0x514c14):null,'after':_0x4b8a37,'dryRun':_0x31b8be,'backend':{'method':'POST','path':CROSS_DB_RELATION_PATHS[_0x1992c1]},'warnings':_0x1992c1==='update'&&!_0x638a55[_0x7c55a4(0x219)]?[{'code':_0x7c55a4(0x210),'message':_0x7c55a4(0x1e0)}]:[]};}export async function previewCrossRelation(_0x2e9d02,_0x18d46a){const _0x3c8d90=a72_0x1b10,_0x10d096=await prepareCrossRelation(_0x2e9d02,_0x18d46a),_0x97f11b=_0x10d096['body'],_0x41047e=_0x18d46a===_0x3c8d90(0x1ea)?null:{..._0x10d096[_0x3c8d90(0x220)]?{'relationId':_0x10d096[_0x3c8d90(0x220)]['relationId']}:{},'from':{'datasetCode':_0x10d096[_0x3c8d90(0x222)][_0x3c8d90(0x1fe)],'dblinkId':_0x10d096[_0x3c8d90(0x222)][_0x3c8d90(0x1f1)],'table':_0x10d096['from'][_0x3c8d90(0x1ef)],'field':_0x97f11b['fromField']},'to':{'datasetCode':_0x10d096['to'][_0x3c8d90(0x1fe)],'dblinkId':_0x10d096['to'][_0x3c8d90(0x1f1)],'table':_0x10d096['to'][_0x3c8d90(0x1ef)],'field':_0x97f11b[_0x3c8d90(0x200)],'labelField':_0x10d096[_0x3c8d90(0x1f5)]},'relation':{'cardinality':_0x10d096[_0x3c8d90(0x1eb)],'relationType':0x2}};return{...mutationData(_0x10d096,!![],null),'after':_0x41047e,'method':'POST','url':CROSS_DB_RELATION_PATHS[_0x18d46a],'body':_0x10d096[_0x3c8d90(0x208)],'description':_0x3c8d90(0x213)+_0x18d46a+_0x3c8d90(0x1e6)+_0x97f11b['fromDatasetCode']+'.'+_0x97f11b[_0x3c8d90(0x1f3)]};}export async function executeCrossRelation(_0x24e89b,_0x21625e,_0x1f4422){const _0x1410ad=a72_0x1b10,_0x33629b=await prepareCrossRelation(_0x24e89b,_0x21625e);try{await _0x1f4422(_0x33629b[_0x1410ad(0x208)]);}catch(_0x1c3836){if(_0x1c3836 instanceof CliError&&_0x1c3836['message'][_0x1410ad(0x1e4)]('multiple\x20cross-database\x20relations\x20matched')){const _0x10ac78=await queryCrossDbRelations(_0x33629b[_0x1410ad(0x1ed)])[_0x1410ad(0x224)](()=>[]);throw ambiguity(_0x10ac78);}throw _0x1c3836;}let _0xc1fb5d=[],_0x343205,_0x498dc2=![];try{_0xc1fb5d=await queryCrossDbRelations(_0x33629b[_0x1410ad(0x1ed)]);if(_0x21625e===_0x1410ad(0x1ea))_0x498dc2=!_0xc1fb5d[_0x1410ad(0x1f6)](_0x53fa4b=>_0x53fa4b['relationId']===_0x33629b[_0x1410ad(0x220)][_0x1410ad(0x1f4)]);else{const _0x21163f=_0x33629b['body'],_0x54632f=_0xc1fb5d['filter'](_0x3437f9=>matchesEndpoint(_0x3437f9,_0x33629b['from'],_0x21163f[_0x1410ad(0x1f3)],_0x33629b['to'],_0x21163f['toField'])&&(_0x21625e==='create'||_0x3437f9[_0x1410ad(0x1f4)]===_0x33629b['before'][_0x1410ad(0x1f4)]));_0x343205=_0x54632f['length']===0x1?_0x54632f[0x0]:undefined,_0x498dc2=!!_0x343205&&_0x343205[_0x1410ad(0x219)]===_0x33629b[_0x1410ad(0x1f5)]&&_0x343205['cardinality']===_0x33629b['expectedCardinality']&&_0x343205[_0x1410ad(0x1fa)]===0x2;}}catch{}const _0x4cd3f0={...mutationData(_0x33629b,![],_0x343205?projectCrossRelation(_0x343205):null),'verification':{'status':_0x498dc2?_0x1410ad(0x1dc):_0x1410ad(0x207),'verified':_0x498dc2}};if(!_0x498dc2){const _0x3b28ef=CliErrors[_0x1410ad(0x20f)](_0x1410ad(0x1e2)+_0x21625e+_0x1410ad(0x1e1),_0x1410ad(0x221));Object[_0x1410ad(0x209)](_0x3b28ef,'data',{'value':{..._0x4cd3f0,'candidates':_0xc1fb5d[_0x1410ad(0x215)](projectCrossRelation)}});throw _0x3b28ef;}return{'ok':!![],'data':_0x4cd3f0,'message':_0x1410ad(0x1e2)+_0x21625e+_0x1410ad(0x1d8)};}
@@ -1 +1 @@
1
- const a73_0x47ff7d=a73_0xa69e;(function(_0x1c726f,_0x45e0ff){const _0x5b6073=a73_0xa69e,_0x420367=_0x1c726f();while(!![]){try{const _0x5950be=parseInt(_0x5b6073(0x167))/0x1+-parseInt(_0x5b6073(0x15f))/0x2+-parseInt(_0x5b6073(0x166))/0x3*(-parseInt(_0x5b6073(0x164))/0x4)+-parseInt(_0x5b6073(0x168))/0x5*(parseInt(_0x5b6073(0x165))/0x6)+parseInt(_0x5b6073(0x160))/0x7+-parseInt(_0x5b6073(0x16b))/0x8*(parseInt(_0x5b6073(0x161))/0x9)+parseInt(_0x5b6073(0x16a))/0xa*(parseInt(_0x5b6073(0x162))/0xb);if(_0x5950be===_0x45e0ff)break;else _0x420367['push'](_0x420367['shift']());}catch(_0x3fed98){_0x420367['push'](_0x420367['shift']());}}}(a73_0x46b7,0x6588c));import{updateCrossDbRelation}from'../../core/api-client.js';function a73_0xa69e(_0x99bd28,_0x2e7e0d){_0x99bd28=_0x99bd28-0x15e;const _0x46b7f2=a73_0x46b7();let _0xa69e23=_0x46b7f2[_0x99bd28];return _0xa69e23;}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';export const datasetCrossRelationUpdate={'service':'dataset','command':a73_0x47ff7d(0x169),'description':'Update\x20the\x20target\x20or\x20properties\x20of\x20the\x20single\x20cross-database\x20relation\x20matching\x20a\x20source\x20dataset\x20and\x20field','risk':a73_0x47ff7d(0x163),'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 _0x295ab3=>validateCrossRelation(_0x295ab3,a73_0x47ff7d(0x15e)),'dryRun':_0x257e34=>previewCrossRelation(_0x257e34,a73_0x47ff7d(0x15e)),'execute':_0x3babea=>executeCrossRelation(_0x3babea,a73_0x47ff7d(0x15e),updateCrossDbRelation)};function a73_0x46b7(){const _0x7caa94=['1418482jJedUm','937580GZGnBD','18IphUWJ','13173831ZinOTU','write','897248GAZJXb','3971526vAoMGY','6JxaUpx','666339bidIwm','5gdTpQq','cross-relation-update','10jZPJwk','2637912MmGcuM','update'];a73_0x46b7=function(){return _0x7caa94;};return a73_0x46b7();}
1
+ const a73_0x302daa=a73_0x2ae4;function a73_0x4bb7(){const _0x45b608=['260yUnigx','82828LXCanP','14893760ifFkHa','update','1021986IplVGe','dataset','write','cross-relation-update','7874440QQXbfo','71781XzvrHo','3458532IVJPhm','1767572eXPaka','112elDcMN','2olRbDy'];a73_0x4bb7=function(){return _0x45b608;};return a73_0x4bb7();}(function(_0x2d50d1,_0x449640){const _0x310a8b=a73_0x2ae4,_0x32a4b0=_0x2d50d1();while(!![]){try{const _0x1c18d4=parseInt(_0x310a8b(0x7d))/0x1*(-parseInt(_0x310a8b(0x7b))/0x2)+-parseInt(_0x310a8b(0x87))/0x3+parseInt(_0x310a8b(0x7f))/0x4*(parseInt(_0x310a8b(0x7e))/0x5)+parseInt(_0x310a8b(0x7a))/0x6+parseInt(_0x310a8b(0x86))/0x7+parseInt(_0x310a8b(0x7c))/0x8*(-parseInt(_0x310a8b(0x82))/0x9)+parseInt(_0x310a8b(0x80))/0xa;if(_0x1c18d4===_0x449640)break;else _0x32a4b0['push'](_0x32a4b0['shift']());}catch(_0x1b86ce){_0x32a4b0['push'](_0x32a4b0['shift']());}}}(a73_0x4bb7,0xd85d3));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_0x2ae4(_0x2ee250,_0x4b832e){_0x2ee250=_0x2ee250-0x7a;const _0x4bb719=a73_0x4bb7();let _0x2ae4ce=_0x4bb719[_0x2ee250];return _0x2ae4ce;}export const datasetCrossRelationUpdate={'service':a73_0x302daa(0x83),'command':a73_0x302daa(0x85),'description':'Update\x20the\x20target\x20or\x20properties\x20of\x20the\x20single\x20cross-database\x20relation\x20matching\x20a\x20source\x20dataset\x20and\x20field','risk':a73_0x302daa(0x84),'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 _0x7889e0=>validateCrossRelation(_0x7889e0,a73_0x302daa(0x81)),'dryRun':_0x23d701=>previewCrossRelation(_0x23d701,a73_0x302daa(0x81)),'execute':_0xfb9275=>executeCrossRelation(_0xfb9275,a73_0x302daa(0x81),updateCrossDbRelation)};