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

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 (382) 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.d.ts +1 -1
  149. package/lib/commands/instant-api-policy/shared.js +1 -1
  150. package/lib/commands/instant-api-policy/validate.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/issue/shared.js +1 -1
  155. package/lib/commands/kb/create.js +1 -1
  156. package/lib/commands/kb/delete.js +1 -1
  157. package/lib/commands/kb/detail.js +1 -1
  158. package/lib/commands/kb/index.js +1 -1
  159. package/lib/commands/kb/list.js +1 -1
  160. package/lib/commands/kb/search.js +1 -1
  161. package/lib/commands/kb/shared.js +1 -1
  162. package/lib/commands/kb/update.js +1 -1
  163. package/lib/commands/logs/index.js +1 -1
  164. package/lib/commands/menu/asset-update.js +1 -1
  165. package/lib/commands/menu/delete.js +1 -1
  166. package/lib/commands/menu/external-link-create.js +1 -1
  167. package/lib/commands/menu/external-link-update.js +1 -1
  168. package/lib/commands/menu/group-create.js +1 -1
  169. package/lib/commands/menu/group-update.js +1 -1
  170. package/lib/commands/menu/index.js +1 -1
  171. package/lib/commands/menu/list.js +1 -1
  172. package/lib/commands/menu/move.js +1 -1
  173. package/lib/commands/menu/regroup-start.js +1 -1
  174. package/lib/commands/menu/rename.js +1 -1
  175. package/lib/commands/menu/shared/compare-table.js +1 -1
  176. package/lib/commands/menu/shared/delete-plan.js +1 -1
  177. package/lib/commands/menu/shared/facts.js +1 -1
  178. package/lib/commands/menu/shared/index.js +1 -1
  179. package/lib/commands/menu/shared/inquirer.js +1 -1
  180. package/lib/commands/menu/shared/local-pages.js +1 -1
  181. package/lib/commands/menu/shared/logic.js +1 -1
  182. package/lib/commands/menu/shared/mutations.js +1 -1
  183. package/lib/commands/menu/shared/path.js +1 -1
  184. package/lib/commands/menu/shared/service.js +1 -1
  185. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  186. package/lib/commands/menu/shared/sync-core.js +1 -1
  187. package/lib/commands/menu/shared/update-core.js +1 -1
  188. package/lib/commands/menu/shared/valid-url.js +1 -1
  189. package/lib/commands/menu/subapp-assets-status.js +1 -1
  190. package/lib/commands/menu/subapp-assets-update.js +1 -1
  191. package/lib/commands/menu/sync.js +1 -1
  192. package/lib/commands/menu/visibility-update.js +1 -1
  193. package/lib/commands/notification/config-create.js +1 -1
  194. package/lib/commands/notification/config-delete.js +1 -1
  195. package/lib/commands/notification/config-list.js +1 -1
  196. package/lib/commands/notification/config-update.js +1 -1
  197. package/lib/commands/notification/index.js +1 -1
  198. package/lib/commands/notification/shared.js +1 -1
  199. package/lib/commands/ocr/index.js +1 -1
  200. package/lib/commands/page/create.js +1 -1
  201. package/lib/commands/page/custom/detail.js +1 -1
  202. package/lib/commands/page/custom/list.js +1 -1
  203. package/lib/commands/page/custom/publish.js +1 -1
  204. package/lib/commands/page/custom/shared.js +1 -1
  205. package/lib/commands/page/custom/syntax.js +1 -1
  206. package/lib/commands/page/custom/update.js +1 -1
  207. package/lib/commands/page/data-list-status.js +1 -1
  208. package/lib/commands/page/generate-start.js +1 -1
  209. package/lib/commands/page/generate-status.js +1 -1
  210. package/lib/commands/page/index.js +1 -1
  211. package/lib/commands/page/pull.js +1 -1
  212. package/lib/commands/page/push.js +1 -1
  213. package/lib/commands/page/relation-audit.js +1 -1
  214. package/lib/commands/page/restore.js +1 -1
  215. package/lib/commands/page/shared.js +1 -1
  216. package/lib/commands/page/sync.js +1 -1
  217. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  218. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  219. package/lib/commands/project/create/format-elapsed.js +1 -1
  220. package/lib/commands/project/create/main.js +1 -1
  221. package/lib/commands/project/create/materialize-project-template.js +1 -1
  222. package/lib/commands/project/create/project-name.js +1 -1
  223. package/lib/commands/project/create/project-template-archive.js +1 -1
  224. package/lib/commands/project/create/project-template-path.js +1 -1
  225. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  226. package/lib/commands/project/create/use-format-code.js +1 -1
  227. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  228. package/lib/commands/project/domain-routing-sync.js +1 -1
  229. package/lib/commands/project/index.js +1 -1
  230. package/lib/commands/project/upgrade.js +1 -1
  231. package/lib/commands/registry.js +1 -1
  232. package/lib/commands/role/delete.js +1 -1
  233. package/lib/commands/role/detail.js +1 -1
  234. package/lib/commands/role/index.js +1 -1
  235. package/lib/commands/role/list.js +1 -1
  236. package/lib/commands/role/shared.js +1 -1
  237. package/lib/commands/role/update.js +1 -1
  238. package/lib/commands/role/user-add.js +1 -1
  239. package/lib/commands/role/user-remove.js +1 -1
  240. package/lib/commands/role/user-resolve.js +1 -1
  241. package/lib/commands/rule/get.js +1 -1
  242. package/lib/commands/rule/index.js +1 -1
  243. package/lib/commands/rule/list.js +1 -1
  244. package/lib/commands/rule/set.js +1 -1
  245. package/lib/commands/rule/shared.js +1 -1
  246. package/lib/commands/run/index.js +1 -1
  247. package/lib/commands/schema.js +1 -1
  248. package/lib/commands/sql/create.js +1 -1
  249. package/lib/commands/sql/delete.js +1 -1
  250. package/lib/commands/sql/detail.js +1 -1
  251. package/lib/commands/sql/exec.js +1 -1
  252. package/lib/commands/sql/index.js +1 -1
  253. package/lib/commands/sql/list.js +1 -1
  254. package/lib/commands/sql/pull.js +1 -1
  255. package/lib/commands/sql/push.js +1 -1
  256. package/lib/commands/sql/shared.js +1 -1
  257. package/lib/commands/sql/status.js +1 -1
  258. package/lib/commands/sql/validate.js +1 -1
  259. package/lib/commands/task/index.js +1 -1
  260. package/lib/commands/task/status.js +1 -1
  261. package/lib/commands/tenant/index.js +1 -1
  262. package/lib/commands/tenant/members-list.js +1 -1
  263. package/lib/commands/tenant/shared.js +1 -1
  264. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  265. package/lib/commands/user-account/feishu-bind.js +1 -1
  266. package/lib/commands/user-account/index.js +1 -1
  267. package/lib/commands/workspace/add.js +1 -1
  268. package/lib/commands/workspace/index.js +1 -1
  269. package/lib/commands/workspace/remove.js +1 -1
  270. package/lib/config/domain-config.js +1 -1
  271. package/lib/config/project-domain-routing.js +1 -1
  272. package/lib/config/region-config.js +1 -1
  273. package/lib/config/schema.js +1 -1
  274. package/lib/constant/cdn.js +1 -1
  275. package/lib/constant/cli.js +1 -1
  276. package/lib/constant/defaults.js +1 -1
  277. package/lib/constant/domain.js +1 -1
  278. package/lib/constant/env.js +1 -1
  279. package/lib/constant/output.js +1 -1
  280. package/lib/constant/paths.js +1 -1
  281. package/lib/constant/region.js +1 -1
  282. package/lib/constant/risk.js +1 -1
  283. package/lib/constant/routing-profile.js +1 -1
  284. package/lib/context/app-resolver.js +1 -1
  285. package/lib/context/auth-resolver.js +1 -1
  286. package/lib/context/config-loader.js +1 -1
  287. package/lib/context.js +1 -1
  288. package/lib/core/alias-resolver.js +1 -1
  289. package/lib/core/api-client.d.ts +0 -28
  290. package/lib/core/api-client.js +1 -1
  291. package/lib/core/bff/config.js +1 -1
  292. package/lib/core/bff/file-system.js +1 -1
  293. package/lib/core/bff/hash.js +1 -1
  294. package/lib/core/bff/hook-directory.js +1 -1
  295. package/lib/core/bff/lock.js +1 -1
  296. package/lib/core/bff/utils.js +1 -1
  297. package/lib/core/cross-db-analysis.js +1 -1
  298. package/lib/core/cross-db-relation.js +1 -1
  299. package/lib/core/db-resolver.js +1 -1
  300. package/lib/core/flow-config.js +1 -1
  301. package/lib/core/instant-api-policy/config.js +1 -1
  302. package/lib/core/instant-api-policy/endpoints.d.ts +8 -0
  303. package/lib/core/instant-api-policy/endpoints.js +1 -0
  304. package/lib/core/kb-management-client.d.ts +3 -9
  305. package/lib/core/kb-management-client.js +1 -1
  306. package/lib/core/kb-search-client.d.ts +1 -4
  307. package/lib/core/kb-search-client.js +1 -1
  308. package/lib/core/page/file-system.js +1 -1
  309. package/lib/core/page/hash.js +1 -1
  310. package/lib/core/page/lock.js +1 -1
  311. package/lib/core/page/lr-smart-jsx.js +1 -1
  312. package/lib/core/sql-index-auditor.js +1 -1
  313. package/lib/core/sql-sync/config.js +1 -1
  314. package/lib/core/sql-sync/file-system.js +1 -1
  315. package/lib/core/sql-sync/hash.js +1 -1
  316. package/lib/core/sql-sync/lock.js +1 -1
  317. package/lib/core/sql-sync/utils.js +1 -1
  318. package/lib/core/sql-validator.js +1 -1
  319. package/lib/errors.js +1 -1
  320. package/lib/framework/build-all-flags.js +1 -1
  321. package/lib/framework/error-output.js +1 -1
  322. package/lib/framework/explicit-yes.js +1 -1
  323. package/lib/framework/flags.js +1 -1
  324. package/lib/framework/help.js +1 -1
  325. package/lib/framework/index.js +1 -1
  326. package/lib/framework/output.js +1 -1
  327. package/lib/framework/response.js +1 -1
  328. package/lib/framework/runner-alias.js +1 -1
  329. package/lib/framework/runner.js +1 -1
  330. package/lib/framework/schema-export.js +1 -1
  331. package/lib/framework/supported-flags.js +1 -1
  332. package/lib/framework/types.js +1 -1
  333. package/lib/generated/build-info.d.ts +4 -4
  334. package/lib/generated/build-info.js +1 -1
  335. package/lib/generated/official-routing.js +1 -1
  336. package/lib/generated/routing-contract.js +1 -1
  337. package/lib/help.js +1 -1
  338. package/lib/postinstall.js +1 -1
  339. package/lib/runtime/confirmation.js +1 -1
  340. package/lib/runtime/event.js +1 -1
  341. package/lib/runtime/index.js +1 -1
  342. package/lib/runtime/queue.js +1 -1
  343. package/lib/runtime/resolve.js +1 -1
  344. package/lib/services/dataset-design/checkpoint.js +1 -1
  345. package/lib/services/dataset-design/commands.js +1 -1
  346. package/lib/services/dataset-design/contract.js +1 -1
  347. package/lib/skills/builtin-skill.js +1 -1
  348. package/lib/skills/main.js +1 -1
  349. package/lib/skills/npx-skills-add.js +1 -1
  350. package/lib/skills/skill-presence.js +1 -1
  351. package/lib/telemetry/cli-command-trace.js +1 -1
  352. package/lib/telemetry/cli-help-trace.js +1 -1
  353. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  354. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  355. package/lib/telemetry/send-cli-trace-log.js +1 -1
  356. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  357. package/lib/utils/ai_config.js +1 -1
  358. package/lib/utils/apply-jq-filter.js +1 -1
  359. package/lib/utils/cdn-config.js +1 -1
  360. package/lib/utils/check-sdk-version.js +1 -1
  361. package/lib/utils/cli-version-check.js +1 -1
  362. package/lib/utils/cli-version-policy.js +1 -1
  363. package/lib/utils/config.js +1 -1
  364. package/lib/utils/entity-with-id.js +1 -1
  365. package/lib/utils/file-utils.js +1 -1
  366. package/lib/utils/guides-cdn.js +1 -1
  367. package/lib/utils/http-client.js +1 -1
  368. package/lib/utils/is-non-interactive.js +1 -1
  369. package/lib/utils/logger.js +1 -1
  370. package/lib/utils/params.js +1 -1
  371. package/lib/utils/platform.js +1 -1
  372. package/lib/utils/sleep.js +1 -1
  373. package/lib/utils/template-replacer.js +1 -1
  374. package/lib/utils/update-notice.js +1 -1
  375. package/lib/utils/version.js +1 -1
  376. package/lib/utils/with-active-cookie.js +1 -1
  377. package/lib/utils/write-cli-side-channel.js +1 -1
  378. package/package.json +2 -1
  379. package/skills/rabetbase/SKILL.md +1 -1
  380. package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
  381. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  382. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- function a59_0x1980(_0x69c8ea,_0x13e49b){_0x69c8ea=_0x69c8ea-0x169;const _0xb737c9=a59_0xb737();let _0x19807f=_0xb737c9[_0x69c8ea];return _0x19807f;}const a59_0x585527=a59_0x1980;(function(_0x4adf61,_0x13a8ba){const _0xc4d8b6=a59_0x1980,_0xb59afe=_0x4adf61();while(!![]){try{const _0x1c5751=parseInt(_0xc4d8b6(0x176))/0x1*(-parseInt(_0xc4d8b6(0x17a))/0x2)+parseInt(_0xc4d8b6(0x17d))/0x3+parseInt(_0xc4d8b6(0x16e))/0x4+-parseInt(_0xc4d8b6(0x179))/0x5*(parseInt(_0xc4d8b6(0x177))/0x6)+-parseInt(_0xc4d8b6(0x16c))/0x7*(-parseInt(_0xc4d8b6(0x16f))/0x8)+-parseInt(_0xc4d8b6(0x16a))/0x9*(-parseInt(_0xc4d8b6(0x169))/0xa)+parseInt(_0xc4d8b6(0x173))/0xb*(-parseInt(_0xc4d8b6(0x170))/0xc);if(_0x1c5751===_0x13a8ba)break;else _0xb59afe['push'](_0xb59afe['shift']());}catch(_0x4c66fb){_0xb59afe['push'](_0xb59afe['shift']());}}}(a59_0xb737,0x40c5b));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(_0x4615b5){const _0x90d9ed=a59_0x1980,_0x1bfe22=_0x4615b5[_0x90d9ed(0x178)](_0x90d9ed(0x171));if(!_0x1bfe22)throw CliErrors[_0x90d9ed(0x175)](_0x90d9ed(0x16b),_0x90d9ed(0x17f)+CLI_BIN_NAME+'\x20config\x20get\x20--key\x20<key>');const _0x2977fc=readConfig(),_0x4e3874=_0x1bfe22===_0x90d9ed(0x17b)?'appcode':_0x1bfe22,_0x32c7d8=_0x2977fc[_0x4e3874];if(_0x32c7d8===undefined)throw CliErrors[_0x90d9ed(0x175)]('Key\x20not\x20found:\x20'+_0x1bfe22);return{'ok':!![],'data':typeof _0x32c7d8===_0x90d9ed(0x17c)?_0x32c7d8:{[_0x4e3874]:_0x32c7d8},'message':typeof _0x32c7d8===_0x90d9ed(0x17c)?undefined:String(_0x32c7d8)};}function a59_0xb737(){const _0x375abf=['931425aoUVYL','get','validation','20217cYEfDH','198912lrRyCC','str','70swBOkB','2eSASlo','app','object','922449DZXsMZ','Get\x20a\x20config\x20value\x20by\x20key','Usage:\x20','10usiVoa','36684bHcgcD','Missing\x20key.','3019051JXlobM','string','1043300dRYLjE','8BIwsAo','36FdKlue','key','read'];a59_0xb737=function(){return _0x375abf;};return a59_0xb737();}export const configGetDefinition={'service':'config','command':a59_0x585527(0x174),'description':a59_0x585527(0x17e),'risk':a59_0x585527(0x172),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a59_0x585527(0x171),'type':a59_0x585527(0x16d),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
1
+ function a59_0x885d(){const _0x9300b3=['816KRBcvs','1588842FOCnrD','\x20config\x20get\x20--key\x20<key>','501819zkJigI','string','2891418ZiJxZG','2367239MchDJP','key','config','10DVIWth','validation','18336070eYJMcg','2iAVTPQ','Get\x20a\x20config\x20value\x20by\x20key','8088oHTotr','9764024SwqsYC','Key\x20not\x20found:\x20','appcode','get','app','object'];a59_0x885d=function(){return _0x9300b3;};return a59_0x885d();}const a59_0x520401=a59_0x1a8b;(function(_0x11a320,_0x723a1e){const _0x98459f=a59_0x1a8b,_0x3cdbd6=_0x11a320();while(!![]){try{const _0x3f3d93=parseInt(_0x98459f(0xba))/0x1*(parseInt(_0x98459f(0xc3))/0x2)+-parseInt(_0x98459f(0xb7))/0x3*(-parseInt(_0x98459f(0xb0))/0x4)+parseInt(_0x98459f(0xc0))/0x5*(parseInt(_0x98459f(0xbc))/0x6)+-parseInt(_0x98459f(0xbd))/0x7+parseInt(_0x98459f(0xb1))/0x8+-parseInt(_0x98459f(0xb8))/0x9+-parseInt(_0x98459f(0xc2))/0xa;if(_0x3f3d93===_0x723a1e)break;else _0x3cdbd6['push'](_0x3cdbd6['shift']());}catch(_0x1446b7){_0x3cdbd6['push'](_0x3cdbd6['shift']());}}}(a59_0x885d,0xd8bee));import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a59_0x1a8b(_0x13fba4,_0x5e411a){_0x13fba4=_0x13fba4-0xaf;const _0x885da7=a59_0x885d();let _0x1a8be3=_0x885da7[_0x13fba4];return _0x1a8be3;}import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0x1dfa9f){const _0x4d7849=a59_0x1a8b,_0xb7deaa=_0x1dfa9f['str']('key');if(!_0xb7deaa)throw CliErrors[_0x4d7849(0xc1)]('Missing\x20key.','Usage:\x20'+CLI_BIN_NAME+_0x4d7849(0xb9));const _0x1d8348=readConfig(),_0x13cf56=_0xb7deaa===_0x4d7849(0xb5)?_0x4d7849(0xb3):_0xb7deaa,_0x170709=_0x1d8348[_0x13cf56];if(_0x170709===undefined)throw CliErrors[_0x4d7849(0xc1)](_0x4d7849(0xb2)+_0xb7deaa);return{'ok':!![],'data':typeof _0x170709===_0x4d7849(0xb6)?_0x170709:{[_0x13cf56]:_0x170709},'message':typeof _0x170709===_0x4d7849(0xb6)?undefined:String(_0x170709)};}export const configGetDefinition={'service':a59_0x520401(0xbf),'command':a59_0x520401(0xb4),'description':a59_0x520401(0xaf),'risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a59_0x520401(0xbe),'type':a59_0x520401(0xbb),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
@@ -1 +1 @@
1
- (function(_0x1fab85,_0x406641){const _0x3d35e2=a60_0x4f5a,_0x156305=_0x1fab85();while(!![]){try{const _0x101b7b=parseInt(_0x3d35e2(0xb0))/0x1+-parseInt(_0x3d35e2(0xac))/0x2+-parseInt(_0x3d35e2(0xae))/0x3+-parseInt(_0x3d35e2(0xb1))/0x4+parseInt(_0x3d35e2(0xaf))/0x5*(-parseInt(_0x3d35e2(0xaa))/0x6)+parseInt(_0x3d35e2(0xab))/0x7+parseInt(_0x3d35e2(0xad))/0x8;if(_0x101b7b===_0x406641)break;else _0x156305['push'](_0x156305['shift']());}catch(_0x1b1760){_0x156305['push'](_0x156305['shift']());}}}(a60_0x192b,0x60752));import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';function a60_0x192b(){const _0x564543=['16092608UkJJuU','2325078kmLghO','95725YZWfMg','149430TFKNCa','2973664SUCIOM','6zHfbSR','3856006zXOnvy','1558374GEEiua'];a60_0x192b=function(){return _0x564543;};return a60_0x192b();}function a60_0x4f5a(_0x346fb0,_0x17d3b3){_0x346fb0=_0x346fb0-0xaa;const _0x192b91=a60_0x192b();let _0x4f5a1f=_0x192b91[_0x346fb0];return _0x4f5a1f;}import{configSetDefinition}from'../../commands/config/set.js';import{configDeleteDefinition}from'../../commands/config/delete.js';import{configInitDefinition}from'../../commands/config/init.js';export const configDefinitions=[configInitDefinition,configListDefinition,configGetDefinition,configSetDefinition,configDeleteDefinition];
1
+ (function(_0x544129,_0x57e1c5){const _0xb74bd1=a60_0x5163,_0x142ab=_0x544129();while(!![]){try{const _0x2569d8=-parseInt(_0xb74bd1(0xe8))/0x1+-parseInt(_0xb74bd1(0xe9))/0x2*(-parseInt(_0xb74bd1(0xee))/0x3)+-parseInt(_0xb74bd1(0xea))/0x4*(parseInt(_0xb74bd1(0xef))/0x5)+-parseInt(_0xb74bd1(0xed))/0x6*(parseInt(_0xb74bd1(0xe7))/0x7)+parseInt(_0xb74bd1(0xec))/0x8*(-parseInt(_0xb74bd1(0xe4))/0x9)+-parseInt(_0xb74bd1(0xeb))/0xa+parseInt(_0xb74bd1(0xe6))/0xb*(parseInt(_0xb74bd1(0xe5))/0xc);if(_0x2569d8===_0x57e1c5)break;else _0x142ab['push'](_0x142ab['shift']());}catch(_0x42a5bb){_0x142ab['push'](_0x142ab['shift']());}}}(a60_0x463c,0x2b23a));import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';function a60_0x463c(){const _0x425b25=['107948IYscgf','1680420QMmjBe','2584BytbdH','30036vvRhuE','192CdkcBz','25MaJBba','7605AYzUFd','36ekcGAJ','2908917VamoMD','91KVyOTu','99493nOhhMB','3870eYMcZU'];a60_0x463c=function(){return _0x425b25;};return a60_0x463c();}function a60_0x5163(_0x3bb60f,_0x3df3a4){_0x3bb60f=_0x3bb60f-0xe4;const _0x463c1f=a60_0x463c();let _0x5163cc=_0x463c1f[_0x3bb60f];return _0x5163cc;}import{configSetDefinition}from'../../commands/config/set.js';import{configDeleteDefinition}from'../../commands/config/delete.js';import{configInitDefinition}from'../../commands/config/init.js';export const configDefinitions=[configInitDefinition,configListDefinition,configGetDefinition,configSetDefinition,configDeleteDefinition];
@@ -1 +1 @@
1
- const a61_0xfffd88=a61_0x27b1;function a61_0x27b1(_0x5c71c7,_0x4ba1b4){_0x5c71c7=_0x5c71c7-0x18e;const _0x2fd68a=a61_0x2fd6();let _0x27b1ab=_0x2fd68a[_0x5c71c7];return _0x27b1ab;}(function(_0x948b0c,_0x304505){const _0x43c1ad=a61_0x27b1,_0x60ffcc=_0x948b0c();while(!![]){try{const _0x88c73=parseInt(_0x43c1ad(0x198))/0x1+-parseInt(_0x43c1ad(0x1b0))/0x2+parseInt(_0x43c1ad(0x193))/0x3+parseInt(_0x43c1ad(0x18e))/0x4*(parseInt(_0x43c1ad(0x1ad))/0x5)+-parseInt(_0x43c1ad(0x1a6))/0x6+parseInt(_0x43c1ad(0x1af))/0x7*(parseInt(_0x43c1ad(0x1bc))/0x8)+-parseInt(_0x43c1ad(0x191))/0x9*(parseInt(_0x43c1ad(0x1c3))/0xa);if(_0x88c73===_0x304505)break;else _0x60ffcc['push'](_0x60ffcc['shift']());}catch(_0x2eb10c){_0x60ffcc['push'](_0x60ffcc['shift']());}}}(a61_0x2fd6,0xa33b1));import{select}from'@inquirer/prompts';function a61_0x2fd6(){const _0x1c08e6=['write','map','Independent-deployment\x20Domain\x20JSON\x20file','Custom\x20KB\x20Service\x20HTTPS\x20origin','str','mode','Updates\x20the\x20selected\x20Rabetbase\x20region\x20or\x20independent-deployment\x20Domain\x20configuration.\x20Cookie,\x20output\x20format,\x20and\x20app\x20bindings\x20stay\x20unchanged.','assign','region','Choose\x20either\x20an\x20official\x20region\x20or\x20independent-deployment\x20Domains,\x20not\x20both.','Custom\x20platform\x20API\x20HTTPS\x20origin','certificate-domain','routing','1091448xMKnwU','Region\x20\x22','\x22\x20is\x20not\x20currently\x20available.','runtime-domain','api-domain','certificateDomain','cancelled','3380lPubiC','Custom\x20User\x20HTTPS\x20origin','1153817hYhhaX','136664ByHdOM','length','skill-domain','cdn','label','official','validation','bool','string','Custom\x20knowledge-base\x20HTTPS\x20origin','Custom\x20SkillHub\x20HTTPS\x20origin','Independent\x20deployment\x20requires\x20--local-domain\x20and\x20--certificate-domain\x20together.','8euGrXC','Custom\x20certificate\x20service\x20HTTPS\x20origin','Official\x20Lovrabet\x20region:\x20','global','manifestDomains','join','keys','1510swbTrx','project','enterprise-v1','kb-service-domain','1908CMHqtz','init','localDomain','26352puqGra','Rabetbase\x20connection\x20configured\x20for\x20region:\x20','2022057hkwFYN','Custom\x20Lovrabet\x20workspace\x20HTTPS\x20origin','nonInteractive','independent','Custom\x20local\x20callback\x20HTTPS\x20origin','199659gnliJq'];a61_0x2fd6=function(){return _0x1c08e6;};return a61_0x2fd6();}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':a61_0xfffd88(0x1a1),'type':a61_0xfffd88(0x1b8),'description':a61_0xfffd88(0x1be)+ENABLED_LOVRABET_REGION_VALUES[a61_0xfffd88(0x1c1)](',\x20'),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':'domain-config','type':a61_0xfffd88(0x1b8),'description':a61_0xfffd88(0x19b)},{'name':'user-domain','type':a61_0xfffd88(0x1b8),'description':a61_0xfffd88(0x1ae)},{'name':a61_0xfffd88(0x1aa),'type':a61_0xfffd88(0x1b8),'description':a61_0xfffd88(0x1a3)},{'name':a61_0xfffd88(0x1a9),'type':a61_0xfffd88(0x1b8),'description':'Custom\x20Runtime\x20HTTPS\x20origin'},{'name':a61_0xfffd88(0x1b2),'type':a61_0xfffd88(0x1b8),'description':a61_0xfffd88(0x1ba)},{'name':'kb-domain','type':'string','description':a61_0xfffd88(0x1b9)},{'name':a61_0xfffd88(0x1c6),'type':a61_0xfffd88(0x1b8),'description':a61_0xfffd88(0x19c)},{'name':'app-domain','type':'string','description':a61_0xfffd88(0x194)},{'name':'local-domain','type':a61_0xfffd88(0x1b8),'description':a61_0xfffd88(0x197)},{'name':a61_0xfffd88(0x1a4),'type':'string','description':a61_0xfffd88(0x1bd)}];async function resolveRegion(_0x15a350){const _0x3d3ba6=a61_0xfffd88,_0x510bc4=_0x15a350[_0x3d3ba6(0x19d)]('region');if(_0x510bc4){if(!isEnabledLovrabetRegion(_0x510bc4))throw CliErrors[_0x3d3ba6(0x1b6)](_0x3d3ba6(0x1a7)+_0x510bc4+_0x3d3ba6(0x1a8),'Available\x20regions:\x20'+ENABLED_LOVRABET_REGION_VALUES[_0x3d3ba6(0x1c1)](',\x20'));return _0x510bc4;}if(_0x15a350[_0x3d3ba6(0x195)])return DEFAULT_LOVRABET_REGION;try{return await select({'message':'Select\x20Lovrabet\x20region','default':DEFAULT_LOVRABET_REGION,'choices':ENABLED_LOVRABET_REGION_VALUES[_0x3d3ba6(0x19a)](_0x5f361d=>({'name':getOfficialRoutingProfile(_0x5f361d)[_0x3d3ba6(0x1b4)]+'\x20('+_0x5f361d+')','value':_0x5f361d}))});}catch(_0xe4eb1e){if(_0xe4eb1e?.['name']==='ExitPromptError')throw CliErrors[_0x3d3ba6(0x1ac)]();throw _0xe4eb1e;}}export async function executeConfigInit(_0x37af1d){const _0x7ee924=a61_0xfffd88,_0x23c5dc=resolveDomainConfigInput(_0x37af1d),_0x42e2ea=_0x23c5dc['domains'],_0x2a6755=Object[_0x7ee924(0x1c2)](_0x42e2ea)[_0x7ee924(0x1b1)]>0x0;if(_0x2a6755&&_0x37af1d[_0x7ee924(0x19d)](_0x7ee924(0x1a1)))throw CliErrors['validation'](_0x7ee924(0x1a2));if(!!_0x42e2ea[_0x7ee924(0x190)]!==!!_0x42e2ea[_0x7ee924(0x1ab)])throw CliErrors[_0x7ee924(0x1b6)](_0x7ee924(0x1bb));const _0x27dcc1=_0x37af1d[_0x7ee924(0x1b7)](_0x7ee924(0x1bf))?'global':_0x7ee924(0x1c4),_0x259b19=readScopedConfig(_0x27dcc1);for(const _0x407198 of DOMAIN_CONFIG_FIELDS)delete _0x259b19[_0x407198];for(const _0x4b49ae of LEGACY_DOMAIN_CONFIG_FIELDS)delete _0x259b19[_0x4b49ae];delete _0x259b19[_0x7ee924(0x1a5)];let _0x370887=null;if(_0x2a6755)delete _0x259b19['region'],_0x23c5dc[_0x7ee924(0x19e)]===_0x7ee924(0x1c5)?_0x259b19[_0x7ee924(0x1a5)]={'protocol':ENTERPRISE_ROUTING_PROTOCOL,'kind':ENTERPRISE_ROUTING_KIND,'domains':_0x23c5dc[_0x7ee924(0x1c0)],'cdn':_0x23c5dc[_0x7ee924(0x1b3)]}:Object[_0x7ee924(0x1a0)](_0x259b19,_0x42e2ea);else{_0x370887=await resolveRegion(_0x37af1d);if(_0x370887===DEFAULT_LOVRABET_REGION)delete _0x259b19['region'];else _0x259b19[_0x7ee924(0x1a1)]=_0x370887;}return writeScopedConfig(_0x259b19,_0x27dcc1),{'ok':!![],'message':_0x2a6755?'Rabetbase\x20connection\x20configured\x20for\x20independent\x20deployment.\x20Domains:\x20'+Object[_0x7ee924(0x1c2)](_0x23c5dc[_0x7ee924(0x19e)]===_0x7ee924(0x1c5)?_0x23c5dc['manifestDomains']:_0x42e2ea)[_0x7ee924(0x1c1)](',\x20')+'.':_0x7ee924(0x192)+_0x370887+'.','data':{'mode':_0x2a6755?_0x7ee924(0x196):_0x7ee924(0x1b5),'protocol':_0x23c5dc[_0x7ee924(0x19e)]===_0x7ee924(0x1c5)?ENTERPRISE_ROUTING_PROTOCOL:undefined,'region':_0x370887,'domains':_0x42e2ea,'cdn':_0x23c5dc[_0x7ee924(0x19e)]===_0x7ee924(0x1c5)?_0x23c5dc['cdn']:undefined}};}export const configInitDefinition={'service':'config','command':a61_0xfffd88(0x18f),'description':'Initialize\x20the\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domains','risk':a61_0xfffd88(0x199),'confirmationDescription':a61_0xfffd88(0x19f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':configInitFlags,'execute':executeConfigInit};
1
+ const a61_0x5528bc=a61_0x5814;function a61_0x5814(_0x143250,_0x54dded){_0x143250=_0x143250-0x67;const _0x13d6f9=a61_0x13d6();let _0x581400=_0x13d6f9[_0x143250];return _0x581400;}(function(_0x144a7d,_0x59fab7){const _0x365c66=a61_0x5814,_0x189901=_0x144a7d();while(!![]){try{const _0x42588e=parseInt(_0x365c66(0x92))/0x1*(-parseInt(_0x365c66(0x8f))/0x2)+parseInt(_0x365c66(0x98))/0x3+parseInt(_0x365c66(0x6f))/0x4*(-parseInt(_0x365c66(0x99))/0x5)+-parseInt(_0x365c66(0x7e))/0x6+parseInt(_0x365c66(0x85))/0x7+-parseInt(_0x365c66(0x7c))/0x8+parseInt(_0x365c66(0x7b))/0x9;if(_0x42588e===_0x59fab7)break;else _0x189901['push'](_0x189901['shift']());}catch(_0x5a8b28){_0x189901['push'](_0x189901['shift']());}}}(a61_0x13d6,0x3cc8f));import{select}from'@inquirer/prompts';import{CliErrors}from'../../errors.js';import{readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{DOMAIN_CONFIG_FIELDS,LEGACY_DOMAIN_CONFIG_FIELDS,resolveDomainConfigInput}from'../../config/domain-config.js';import{ENTERPRISE_ROUTING_KIND,ENTERPRISE_ROUTING_PROTOCOL}from'../../generated/routing-contract.js';function a61_0x13d6(){const _0x4eafbe=['map','project','3731391dSITIo','1948280ZahnKN','enterprise-v1','816660yXicKv','Custom\x20SkillHub\x20HTTPS\x20origin','local-domain','join','Rabetbase\x20connection\x20configured\x20for\x20independent\x20deployment.\x20Domains:\x20','kb-domain','Custom\x20Runtime\x20HTTPS\x20origin','2692977HzpnGk','certificateDomain','length','config','manifestDomains','routing','Select\x20Lovrabet\x20region','Custom\x20User\x20HTTPS\x20origin','Region\x20\x22','nonInteractive','706516JspmQF','localDomain','global','1iZAsOI','user-domain','app-domain','string','mode','region','1002222rEoeKV','10aLCxkj','name','Custom\x20Lovrabet\x20workspace\x20HTTPS\x20origin','label','cancelled','validation','keys','str','Independent-deployment\x20Domain\x20JSON\x20file','official','ExitPromptError','cdn','303012KXhhjU','Choose\x20either\x20an\x20official\x20region\x20or\x20independent-deployment\x20Domains,\x20not\x20both.','domains','api-domain','domain-config','Custom\x20knowledge-base\x20HTTPS\x20origin','Custom\x20platform\x20API\x20HTTPS\x20origin','runtime-domain','assign','Available\x20regions:\x20'];a61_0x13d6=function(){return _0x4eafbe;};return a61_0x13d6();}import{DEFAULT_LOVRABET_REGION,ENABLED_LOVRABET_REGION_VALUES,isEnabledLovrabetRegion}from'../../constant/region.js';import{getOfficialRoutingProfile}from'../../constant/routing-profile.js';import{GLOBAL_SCOPE_FLAG}from'../../commands/common/flags.js';export const configInitFlags=[GLOBAL_SCOPE_FLAG,{'name':'region','type':'string','description':'Official\x20Lovrabet\x20region:\x20'+ENABLED_LOVRABET_REGION_VALUES[a61_0x5528bc(0x81)](',\x20'),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':a61_0x5528bc(0x73),'type':a61_0x5528bc(0x95),'description':a61_0x5528bc(0x6b)},{'name':a61_0x5528bc(0x93),'type':a61_0x5528bc(0x95),'description':a61_0x5528bc(0x8c)},{'name':a61_0x5528bc(0x72),'type':a61_0x5528bc(0x95),'description':a61_0x5528bc(0x75)},{'name':a61_0x5528bc(0x76),'type':a61_0x5528bc(0x95),'description':a61_0x5528bc(0x84)},{'name':'skill-domain','type':a61_0x5528bc(0x95),'description':a61_0x5528bc(0x7f)},{'name':a61_0x5528bc(0x83),'type':a61_0x5528bc(0x95),'description':a61_0x5528bc(0x74)},{'name':'kb-service-domain','type':a61_0x5528bc(0x95),'description':'Custom\x20KB\x20Service\x20HTTPS\x20origin'},{'name':a61_0x5528bc(0x94),'type':'string','description':a61_0x5528bc(0x9b)},{'name':a61_0x5528bc(0x80),'type':a61_0x5528bc(0x95),'description':'Custom\x20local\x20callback\x20HTTPS\x20origin'},{'name':'certificate-domain','type':'string','description':'Custom\x20certificate\x20service\x20HTTPS\x20origin'}];async function resolveRegion(_0x1504d5){const _0xc13648=a61_0x5528bc,_0x59f9e9=_0x1504d5[_0xc13648(0x6a)](_0xc13648(0x97));if(_0x59f9e9){if(!isEnabledLovrabetRegion(_0x59f9e9))throw CliErrors[_0xc13648(0x68)](_0xc13648(0x8d)+_0x59f9e9+'\x22\x20is\x20not\x20currently\x20available.',_0xc13648(0x78)+ENABLED_LOVRABET_REGION_VALUES[_0xc13648(0x81)](',\x20'));return _0x59f9e9;}if(_0x1504d5[_0xc13648(0x8e)])return DEFAULT_LOVRABET_REGION;try{return await select({'message':_0xc13648(0x8b),'default':DEFAULT_LOVRABET_REGION,'choices':ENABLED_LOVRABET_REGION_VALUES[_0xc13648(0x79)](_0x3943f1=>({'name':getOfficialRoutingProfile(_0x3943f1)[_0xc13648(0x9c)]+'\x20('+_0x3943f1+')','value':_0x3943f1}))});}catch(_0x1b2741){if(_0x1b2741?.[_0xc13648(0x9a)]===_0xc13648(0x6d))throw CliErrors[_0xc13648(0x67)]();throw _0x1b2741;}}export async function executeConfigInit(_0x2a005d){const _0x2eeaa0=a61_0x5528bc,_0xb2910=resolveDomainConfigInput(_0x2a005d),_0x5e6edb=_0xb2910[_0x2eeaa0(0x71)],_0x2b4bcf=Object[_0x2eeaa0(0x69)](_0x5e6edb)[_0x2eeaa0(0x87)]>0x0;if(_0x2b4bcf&&_0x2a005d['str'](_0x2eeaa0(0x97)))throw CliErrors[_0x2eeaa0(0x68)](_0x2eeaa0(0x70));if(!!_0x5e6edb[_0x2eeaa0(0x90)]!==!!_0x5e6edb[_0x2eeaa0(0x86)])throw CliErrors['validation']('Independent\x20deployment\x20requires\x20--local-domain\x20and\x20--certificate-domain\x20together.');const _0xda109c=_0x2a005d['bool'](_0x2eeaa0(0x91))?_0x2eeaa0(0x91):_0x2eeaa0(0x7a),_0x36b4ce=readScopedConfig(_0xda109c);for(const _0x3dec55 of DOMAIN_CONFIG_FIELDS)delete _0x36b4ce[_0x3dec55];for(const _0x53eef1 of LEGACY_DOMAIN_CONFIG_FIELDS)delete _0x36b4ce[_0x53eef1];delete _0x36b4ce[_0x2eeaa0(0x8a)];let _0x2e3752=null;if(_0x2b4bcf)delete _0x36b4ce[_0x2eeaa0(0x97)],_0xb2910[_0x2eeaa0(0x96)]===_0x2eeaa0(0x7d)?_0x36b4ce[_0x2eeaa0(0x8a)]={'protocol':ENTERPRISE_ROUTING_PROTOCOL,'kind':ENTERPRISE_ROUTING_KIND,'domains':_0xb2910['manifestDomains'],'cdn':_0xb2910['cdn']}:Object[_0x2eeaa0(0x77)](_0x36b4ce,_0x5e6edb);else{_0x2e3752=await resolveRegion(_0x2a005d);if(_0x2e3752===DEFAULT_LOVRABET_REGION)delete _0x36b4ce[_0x2eeaa0(0x97)];else _0x36b4ce['region']=_0x2e3752;}return writeScopedConfig(_0x36b4ce,_0xda109c),{'ok':!![],'message':_0x2b4bcf?_0x2eeaa0(0x82)+Object[_0x2eeaa0(0x69)](_0xb2910[_0x2eeaa0(0x96)]===_0x2eeaa0(0x7d)?_0xb2910[_0x2eeaa0(0x89)]:_0x5e6edb)[_0x2eeaa0(0x81)](',\x20')+'.':'Rabetbase\x20connection\x20configured\x20for\x20region:\x20'+_0x2e3752+'.','data':{'mode':_0x2b4bcf?'independent':_0x2eeaa0(0x6c),'protocol':_0xb2910[_0x2eeaa0(0x96)]==='enterprise-v1'?ENTERPRISE_ROUTING_PROTOCOL:undefined,'region':_0x2e3752,'domains':_0x5e6edb,'cdn':_0xb2910[_0x2eeaa0(0x96)]==='enterprise-v1'?_0xb2910[_0x2eeaa0(0x6e)]:undefined}};}export const configInitDefinition={'service':a61_0x5528bc(0x88),'command':'init','description':'Initialize\x20the\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domains','risk':'write','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_0x232acf=a62_0x5d6e;function a62_0x3d44(){const _0x7cf395=['3651vayjko','2320xzdfTm','list','716XqBYTA','bool','372338kDIMOm','config','306PbQwUQ','global','2304bJqHpQ','List\x20all\x20config\x20values','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','378216ZdBIch','2475415QBiVyz','907890axkqjR','5404qsgvGD'];a62_0x3d44=function(){return _0x7cf395;};return a62_0x3d44();}(function(_0x71db49,_0x531f71){const _0x1518aa=a62_0x5d6e,_0x3bc89c=_0x71db49();while(!![]){try{const _0x471d11=-parseInt(_0x1518aa(0x1cd))/0x1+-parseInt(_0x1518aa(0x1d6))/0x2+parseInt(_0x1518aa(0x1d1))/0x3*(parseInt(_0x1518aa(0x1d4))/0x4)+parseInt(_0x1518aa(0x1ce))/0x5+parseInt(_0x1518aa(0x1cf))/0x6+-parseInt(_0x1518aa(0x1d0))/0x7*(-parseInt(_0x1518aa(0x1ca))/0x8)+parseInt(_0x1518aa(0x1c8))/0x9*(-parseInt(_0x1518aa(0x1d2))/0xa);if(_0x471d11===_0x531f71)break;else _0x3bc89c['push'](_0x3bc89c['shift']());}catch(_0x48b24a){_0x3bc89c['push'](_0x3bc89c['shift']());}}}(a62_0x3d44,0x7d900));import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0x470d5c){const _0x475902=a62_0x5d6e,_0x50ce49=_0x470d5c[_0x475902(0x1d5)]('global')?readScopedConfig(_0x475902(0x1c9)):readConfig();return{'ok':!![],'data':_0x50ce49};}function a62_0x5d6e(_0x14ad4f,_0x15786d){_0x14ad4f=_0x14ad4f-0x1c7;const _0x3d440f=a62_0x3d44();let _0x5d6e20=_0x3d440f[_0x14ad4f];return _0x5d6e20;}export const configListDefinition={'service':a62_0x232acf(0x1c7),'command':a62_0x232acf(0x1d3),'description':a62_0x232acf(0x1cb),'risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'global','type':'boolean','description':a62_0x232acf(0x1cc),'default':![]}],'execute':execute};
1
+ const a62_0x47a635=a62_0x48a3;(function(_0x4b1089,_0x39bbf0){const _0x4cbd4b=a62_0x48a3,_0x13578b=_0x4b1089();while(!![]){try{const _0x534ed2=parseInt(_0x4cbd4b(0x12f))/0x1*(-parseInt(_0x4cbd4b(0x130))/0x2)+parseInt(_0x4cbd4b(0x12e))/0x3+parseInt(_0x4cbd4b(0x13d))/0x4*(parseInt(_0x4cbd4b(0x13a))/0x5)+-parseInt(_0x4cbd4b(0x13b))/0x6*(parseInt(_0x4cbd4b(0x138))/0x7)+-parseInt(_0x4cbd4b(0x131))/0x8*(parseInt(_0x4cbd4b(0x13e))/0x9)+parseInt(_0x4cbd4b(0x13c))/0xa+parseInt(_0x4cbd4b(0x12d))/0xb;if(_0x534ed2===_0x39bbf0)break;else _0x13578b['push'](_0x13578b['shift']());}catch(_0x4c5d89){_0x13578b['push'](_0x13578b['shift']());}}}(a62_0x5c1b,0xee427));function a62_0x5c1b(){const _0x483ee2=['read','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','list','7xLqMpP','List\x20all\x20config\x20values','65Iokdca','3716016QOlgBL','9922580JyliXQ','85588FKOZeY','17083071oPbyPO','28345955KSIxXE','2943603YXLdgV','445053bPCzMS','6jfPXRJ','8pISfxO','bool','global','config'];a62_0x5c1b=function(){return _0x483ee2;};return a62_0x5c1b();}import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';function a62_0x48a3(_0xb4cfd2,_0x172d51){_0xb4cfd2=_0xb4cfd2-0x12d;const _0x5c1b6f=a62_0x5c1b();let _0x48a324=_0x5c1b6f[_0xb4cfd2];return _0x48a324;}async function execute(_0x333e8a){const _0x57bf3f=a62_0x48a3,_0x2f3de1=_0x333e8a[_0x57bf3f(0x132)]('global')?readScopedConfig(_0x57bf3f(0x133)):readConfig();return{'ok':!![],'data':_0x2f3de1};}export const configListDefinition={'service':a62_0x47a635(0x134),'command':a62_0x47a635(0x137),'description':a62_0x47a635(0x139),'risk':a62_0x47a635(0x135),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a62_0x47a635(0x133),'type':'boolean','description':a62_0x47a635(0x136),'default':![]}],'execute':execute};
@@ -1 +1 @@
1
- const a63_0x17f4b2=a63_0x1214;(function(_0x13c2ca,_0x46e092){const _0x4b89e7=a63_0x1214,_0x206e57=_0x13c2ca();while(!![]){try{const _0x1fb2ac=parseInt(_0x4b89e7(0x156))/0x1+-parseInt(_0x4b89e7(0x147))/0x2+-parseInt(_0x4b89e7(0x153))/0x3*(-parseInt(_0x4b89e7(0x127))/0x4)+-parseInt(_0x4b89e7(0x139))/0x5+parseInt(_0x4b89e7(0x123))/0x6+-parseInt(_0x4b89e7(0x13b))/0x7*(-parseInt(_0x4b89e7(0x14b))/0x8)+-parseInt(_0x4b89e7(0x13e))/0x9;if(_0x1fb2ac===_0x46e092)break;else _0x206e57['push'](_0x206e57['shift']());}catch(_0x424f40){_0x206e57['push'](_0x206e57['shift']());}}}(a63_0x3195,0x4d188));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';function a63_0x1214(_0x401603,_0x5e9eda){_0x401603=_0x401603-0x123;const _0x319592=a63_0x3195();let _0x121440=_0x319592[_0x401603];return _0x121440;}import{DOMAIN_CONFIG_FIELDS,normalizeDomainOrigin}from'../../config/domain-config.js';async function execute(_0x17762b){const _0x4d5c8a=a63_0x1214,_0x272ec3=_0x17762b[_0x4d5c8a(0x140)](_0x4d5c8a(0x13a)),_0x5ee77e=_0x17762b['str'](_0x4d5c8a(0x12f));if(!_0x272ec3)throw CliErrors[_0x4d5c8a(0x13c)](_0x4d5c8a(0x12a),_0x4d5c8a(0x12b)+CLI_BIN_NAME+_0x4d5c8a(0x129));if(_0x5ee77e===undefined||_0x5ee77e==='')throw CliErrors[_0x4d5c8a(0x13c)](_0x4d5c8a(0x155),_0x4d5c8a(0x12b)+CLI_BIN_NAME+_0x4d5c8a(0x129));let _0x270c85=_0x272ec3,_0x21ca82=_0x5ee77e;if(_0x5ee77e[_0x4d5c8a(0x13f)]>0x1f4)throw CliErrors['validation'](_0x4d5c8a(0x151));if(_0x272ec3===_0x4d5c8a(0x146))throw CliErrors[_0x4d5c8a(0x13c)](_0x4d5c8a(0x142));if(!isTopLevelConfigKey(_0x272ec3))throw CliErrors[_0x4d5c8a(0x13c)](_0x4d5c8a(0x14e)+_0x272ec3+_0x4d5c8a(0x154),'Settable\x20top-level\x20keys:\x20'+getTopLevelConfigKeySummary());if(CONFIG_ENUM_VALUES[_0x272ec3]&&!CONFIG_ENUM_VALUES[_0x272ec3][_0x4d5c8a(0x135)](_0x5ee77e))throw CliErrors['validation'](_0x4d5c8a(0x12c)+_0x272ec3+_0x4d5c8a(0x149)+CONFIG_ENUM_VALUES[_0x272ec3][_0x4d5c8a(0x14f)](',\x20'));if(_0x272ec3==='locale'&&!normalizeLocale(_0x5ee77e))throw CliErrors['validation'](_0x4d5c8a(0x152),_0x4d5c8a(0x145));DOMAIN_CONFIG_FIELDS[_0x4d5c8a(0x135)](_0x272ec3)&&(_0x21ca82=normalizeDomainOrigin(_0x272ec3,_0x5ee77e));const _0x429cd1={'global':_0x17762b[_0x4d5c8a(0x148)]('global')},_0x3d549a=resolveWriteScope(_0x429cd1),_0x115c54=readScopedConfig(_0x3d549a);_0x272ec3===_0x4d5c8a(0x137)&&(_0x270c85=_0x4d5c8a(0x132),delete _0x115c54['app']);_0x272ec3===_0x4d5c8a(0x133)&&(_0x21ca82=normalizeLocale(_0x5ee77e));if(_0x272ec3===_0x4d5c8a(0x136)){_0x21ca82=normalizeEnv(_0x5ee77e);if(!isProduction(_0x21ca82)&&!isDaily(_0x21ca82))throw CliErrors[_0x4d5c8a(0x13c)]('Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.');}if(_0x272ec3===_0x4d5c8a(0x132)){const _0x3e3953=_0x115c54[_0x4d5c8a(0x124)]&&typeof _0x115c54[_0x4d5c8a(0x124)]===_0x4d5c8a(0x150)?Object['keys'](_0x115c54[_0x4d5c8a(0x124)]):[];if(_0x3e3953[_0x4d5c8a(0x13f)]>0x0)throw CliErrors[_0x4d5c8a(0x13c)](_0x4d5c8a(0x128),_0x4d5c8a(0x12d)+CLI_BIN_NAME+_0x4d5c8a(0x144)+_0x21ca82+'`,\x20`'+CLI_BIN_NAME+_0x4d5c8a(0x126));const _0x41aaf3=buildCanonicalProjectConfig({..._0x115c54},{'appCodes':[_0x21ca82],'env':typeof _0x115c54[_0x4d5c8a(0x136)]==='string'?_0x115c54[_0x4d5c8a(0x136)]:undefined});writeScopedConfig(_0x41aaf3,_0x3d549a);const _0x356a16=_0x3d549a===_0x4d5c8a(0x130)?_0x4d5c8a(0x14c):_0x4d5c8a(0x141);return{'ok':!![],'message':'✓\x20'+_0x356a16+_0x4d5c8a(0x138)+_0x21ca82+_0x4d5c8a(0x14a)};}_0x115c54[_0x270c85]=_0x21ca82,writeScopedConfig(_0x115c54,_0x3d549a);const _0x54eed3=_0x3d549a===_0x4d5c8a(0x130)?_0x4d5c8a(0x14c):_0x4d5c8a(0x141);return{'ok':!![],'message':'✓\x20'+_0x54eed3+'\x20'+_0x270c85+'\x20set\x20to:\x20'+_0x21ca82};}export const configSetDefinition={'service':a63_0x17f4b2(0x125),'command':a63_0x17f4b2(0x14d),'description':a63_0x17f4b2(0x134),'risk':a63_0x17f4b2(0x143),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a63_0x17f4b2(0x13a),'type':'string','description':getConfigCommandKeyDescription(),'required':!![]},{'name':'value','type':a63_0x17f4b2(0x13d),'description':a63_0x17f4b2(0x131),'required':!![]},{'name':a63_0x17f4b2(0x130),'type':a63_0x17f4b2(0x12e),'description':'Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','default':![]}],'execute':execute};function a63_0x3195(){const _0x44df32=['220735LVcSGK','3055470CRWlaA','apps','config','\x20workspace\x20use\x20--app\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','30556fUZhdx','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','Missing\x20key.','Usage:\x20','Invalid\x20value\x20for\x20\x22','Use\x20`','boolean','value','global','Config\x20value','appcode','locale','Set\x20a\x20config\x20value','includes','env','app','\x20appcode\x20set\x20to:\x20','1330670lOhHtZ','key','770vIZSGT','validation','string','2073402yWpgHs','length','str','Project','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','write','\x20workspace\x20add\x20<name>\x20--appcode\x20','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','riskLevel','691270SgWdvl','bool','\x22.\x20Allowed:\x20','\x20(stored\x20as\x20a\x20single\x20app\x20profile)','20568sgckyc','Global','set','Top-level\x20key\x20\x22','join','object','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','Invalid\x20locale\x20value.','57LZTXGB','\x22\x20is\x20not\x20settable.','Missing\x20value.'];a63_0x3195=function(){return _0x44df32;};return a63_0x3195();}
1
+ const a63_0x5d7732=a63_0x229b;function a63_0x34aa(){const _0x4a95ce=['key','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','length','validation','5117442LEwzwV','str','global','760348SYmQtG','value','apps','Use\x20`','\x22\x20is\x20not\x20settable.','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','638496sXabWK','locale','Invalid\x20locale\x20value.','join','10465263PWImNs','\x20appcode\x20set\x20to:\x20','\x20set\x20to:\x20','\x20workspace\x20use\x20--app\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','\x22.\x20Allowed:\x20','Invalid\x20value\x20for\x20\x22','Settable\x20top-level\x20keys:\x20','config','Project','includes','49947740yhMnMO','18ptYhEM','bool','appcode','\x20(stored\x20as\x20a\x20single\x20app\x20profile)','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','Config\x20value','Top-level\x20key\x20\x22','set','45rYaZXO','1865408futngg','66889QaVwOu','Global','app','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','keys','`,\x20`','35ejKonY','Missing\x20value.','string','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','\x20workspace\x20add\x20<name>\x20--appcode\x20','Usage:\x20','object','env'];a63_0x34aa=function(){return _0x4a95ce;};return a63_0x34aa();}(function(_0x207ee5,_0x33b928){const _0x12e92c=a63_0x229b,_0x2293d7=_0x207ee5();while(!![]){try{const _0x15b74b=-parseInt(_0x12e92c(0x18d))/0x1*(parseInt(_0x12e92c(0x183))/0x2)+-parseInt(_0x12e92c(0x174))/0x3+-parseInt(_0x12e92c(0x1a2))/0x4*(parseInt(_0x12e92c(0x18b))/0x5)+parseInt(_0x12e92c(0x19f))/0x6+-parseInt(_0x12e92c(0x193))/0x7*(parseInt(_0x12e92c(0x18c))/0x8)+-parseInt(_0x12e92c(0x178))/0x9+parseInt(_0x12e92c(0x182))/0xa;if(_0x15b74b===_0x33b928)break;else _0x2293d7['push'](_0x2293d7['shift']());}catch(_0x5d7a2d){_0x2293d7['push'](_0x2293d7['shift']());}}}(a63_0x34aa,0xf2862));import{CliErrors}from'../../errors.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';import{CLI_BIN_NAME,CONFIG_ENUM_VALUES,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{normalizeEnv,isProduction,isDaily}from'../../constant/env.js';import{DOMAIN_CONFIG_FIELDS,normalizeDomainOrigin}from'../../config/domain-config.js';async function execute(_0x4eac5c){const _0x3edf17=a63_0x229b,_0x44ecaf=_0x4eac5c[_0x3edf17(0x1a0)](_0x3edf17(0x19b)),_0x366e8d=_0x4eac5c[_0x3edf17(0x1a0)](_0x3edf17(0x1a3));if(!_0x44ecaf)throw CliErrors[_0x3edf17(0x19e)]('Missing\x20key.','Usage:\x20'+CLI_BIN_NAME+_0x3edf17(0x173));if(_0x366e8d===undefined||_0x366e8d==='')throw CliErrors[_0x3edf17(0x19e)](_0x3edf17(0x194),_0x3edf17(0x198)+CLI_BIN_NAME+_0x3edf17(0x173));let _0x2684c8=_0x44ecaf,_0x2e9485=_0x366e8d;if(_0x366e8d[_0x3edf17(0x19d)]>0x1f4)throw CliErrors['validation']('Config\x20value\x20is\x20invalid\x20or\x20too\x20long.');if(_0x44ecaf==='riskLevel')throw CliErrors[_0x3edf17(0x19e)](_0x3edf17(0x190));if(!isTopLevelConfigKey(_0x44ecaf))throw CliErrors[_0x3edf17(0x19e)](_0x3edf17(0x189)+_0x44ecaf+_0x3edf17(0x172),_0x3edf17(0x17e)+getTopLevelConfigKeySummary());if(CONFIG_ENUM_VALUES[_0x44ecaf]&&!CONFIG_ENUM_VALUES[_0x44ecaf]['includes'](_0x366e8d))throw CliErrors[_0x3edf17(0x19e)](_0x3edf17(0x17d)+_0x44ecaf+_0x3edf17(0x17c)+CONFIG_ENUM_VALUES[_0x44ecaf][_0x3edf17(0x177)](',\x20'));if(_0x44ecaf===_0x3edf17(0x175)&&!normalizeLocale(_0x366e8d))throw CliErrors[_0x3edf17(0x19e)](_0x3edf17(0x176),_0x3edf17(0x19c));DOMAIN_CONFIG_FIELDS[_0x3edf17(0x181)](_0x44ecaf)&&(_0x2e9485=normalizeDomainOrigin(_0x44ecaf,_0x366e8d));const _0x1762e9={'global':_0x4eac5c[_0x3edf17(0x184)](_0x3edf17(0x1a1))},_0x48b073=resolveWriteScope(_0x1762e9),_0x2d3847=readScopedConfig(_0x48b073);_0x44ecaf===_0x3edf17(0x18f)&&(_0x2684c8='appcode',delete _0x2d3847['app']);_0x44ecaf===_0x3edf17(0x175)&&(_0x2e9485=normalizeLocale(_0x366e8d));if(_0x44ecaf==='env'){_0x2e9485=normalizeEnv(_0x366e8d);if(!isProduction(_0x2e9485)&&!isDaily(_0x2e9485))throw CliErrors[_0x3edf17(0x19e)](_0x3edf17(0x196),'Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.');}if(_0x44ecaf===_0x3edf17(0x185)){const _0x35a02a=_0x2d3847[_0x3edf17(0x1a4)]&&typeof _0x2d3847[_0x3edf17(0x1a4)]===_0x3edf17(0x199)?Object[_0x3edf17(0x191)](_0x2d3847['apps']):[];if(_0x35a02a[_0x3edf17(0x19d)]>0x0)throw CliErrors['validation']('Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.',_0x3edf17(0x171)+CLI_BIN_NAME+_0x3edf17(0x197)+_0x2e9485+_0x3edf17(0x192)+CLI_BIN_NAME+_0x3edf17(0x17b));const _0x349dd2=buildCanonicalProjectConfig({..._0x2d3847},{'appCodes':[_0x2e9485],'env':typeof _0x2d3847['env']===_0x3edf17(0x195)?_0x2d3847[_0x3edf17(0x19a)]:undefined});writeScopedConfig(_0x349dd2,_0x48b073);const _0x116bfc=_0x48b073==='global'?_0x3edf17(0x18e):'Project';return{'ok':!![],'message':'✓\x20'+_0x116bfc+_0x3edf17(0x179)+_0x2e9485+_0x3edf17(0x186)};}_0x2d3847[_0x2684c8]=_0x2e9485,writeScopedConfig(_0x2d3847,_0x48b073);const _0x1ac86d=_0x48b073===_0x3edf17(0x1a1)?_0x3edf17(0x18e):_0x3edf17(0x180);return{'ok':!![],'message':'✓\x20'+_0x1ac86d+'\x20'+_0x2684c8+_0x3edf17(0x17a)+_0x2e9485};}function a63_0x229b(_0x246862,_0x30bd3d){_0x246862=_0x246862-0x171;const _0x34aa60=a63_0x34aa();let _0x229b4b=_0x34aa60[_0x246862];return _0x229b4b;}export const configSetDefinition={'service':a63_0x5d7732(0x17f),'command':a63_0x5d7732(0x18a),'description':'Set\x20a\x20config\x20value','risk':'write','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a63_0x5d7732(0x19b),'type':a63_0x5d7732(0x195),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':'value','type':a63_0x5d7732(0x195),'description':a63_0x5d7732(0x188),'required':!![]},{'name':a63_0x5d7732(0x1a1),'type':'boolean','description':a63_0x5d7732(0x187),'default':![]}],'execute':execute};
@@ -1 +1 @@
1
- (function(_0x350ee7,_0x3dafa4){var _0xdba1cb=a64_0x3c11,_0x2019b3=_0x350ee7();while(!![]){try{var _0xbd13d=parseInt(_0xdba1cb(0x194))/0x1+parseInt(_0xdba1cb(0x19a))/0x2*(parseInt(_0xdba1cb(0x190))/0x3)+parseInt(_0xdba1cb(0x199))/0x4+parseInt(_0xdba1cb(0x191))/0x5+-parseInt(_0xdba1cb(0x193))/0x6+parseInt(_0xdba1cb(0x19c))/0x7+-parseInt(_0xdba1cb(0x196))/0x8;if(_0xbd13d===_0x3dafa4)break;else _0x2019b3['push'](_0x2019b3['shift']());}catch(_0x2129b6){_0x2019b3['push'](_0x2019b3['shift']());}}}(a64_0x4a73,0xee00d));import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';function a64_0x4a73(){var _0x5cbae0=['8354472BrjMhe','1527519ZAFqQF','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','18167536RDgBEw','\x20workspace\x20init\x20--appcode\x20<code>`\x20first.','global','2381568wJoXSv','2338MTpYMw','project','7576821SyNdce','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','1956ezWzxs','3353565ztHjrh','validation'];a64_0x4a73=function(){return _0x5cbae0;};return a64_0x4a73();}import{CliErrors}from'../../errors.js';import{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';export{CLI_BIN_NAME};function a64_0x3c11(_0x13b65a,_0x4ecd70){_0x13b65a=_0x13b65a-0x190;var _0x4a7388=a64_0x4a73();var _0x3c116f=_0x4a7388[_0x13b65a];return _0x3c116f;}export{normalizeLocale};export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0x49590a){var _0x3ce17e=a64_0x3c11;if(_0x49590a[_0x3ce17e(0x198)])return _0x3ce17e(0x198);if(!isInProject())throw CliErrors[_0x3ce17e(0x192)](_0x3ce17e(0x19d),_0x3ce17e(0x195)+CLI_BIN_NAME+_0x3ce17e(0x197));return _0x3ce17e(0x19b);}export function readScopedConfig(_0x3c50a1){return readConfigFile(resolveWriteConfigPath(_0x3c50a1));}export function writeScopedConfig(_0x4fe55d,_0x498b19){writeConfigFile(resolveWriteConfigPath(_0x498b19),_0x4fe55d);}
1
+ (function(_0x25906d,_0x2f4afc){var _0x11acd2=a64_0x2dac,_0x3dd268=_0x25906d();while(!![]){try{var _0x35589f=parseInt(_0x11acd2(0x15e))/0x1+-parseInt(_0x11acd2(0x162))/0x2+-parseInt(_0x11acd2(0x164))/0x3*(-parseInt(_0x11acd2(0x163))/0x4)+parseInt(_0x11acd2(0x15c))/0x5+parseInt(_0x11acd2(0x165))/0x6+parseInt(_0x11acd2(0x161))/0x7+-parseInt(_0x11acd2(0x160))/0x8;if(_0x35589f===_0x2f4afc)break;else _0x3dd268['push'](_0x3dd268['shift']());}catch(_0x54e91a){_0x3dd268['push'](_0x3dd268['shift']());}}}(a64_0x2d86,0x9fd24));import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';import{CliErrors}from'../../errors.js';import{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';export{CLI_BIN_NAME};export{normalizeLocale};export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0x26fe67){var _0xbd5c3a=a64_0x2dac;if(_0x26fe67['global'])return'global';if(!isInProject())throw CliErrors[_0xbd5c3a(0x15f)]('Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`'+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20first.');return _0xbd5c3a(0x15d);}function a64_0x2d86(){var _0x69ef6=['362038fUiPNG','8656ZueebO','1356DCiwxc','3367494YCEerI','1505395VHHLFQ','project','604886MTdPqO','validation','17628248tUlxdv','4156852UpImVN'];a64_0x2d86=function(){return _0x69ef6;};return a64_0x2d86();}function a64_0x2dac(_0x576514,_0x224784){_0x576514=_0x576514-0x15c;var _0x2d8669=a64_0x2d86();var _0x2dac4e=_0x2d8669[_0x576514];return _0x2dac4e;}export function readScopedConfig(_0x88ccaa){return readConfigFile(resolveWriteConfigPath(_0x88ccaa));}export function writeScopedConfig(_0x5a1700,_0x41525e){writeConfigFile(resolveWriteConfigPath(_0x41525e),_0x5a1700);}
@@ -1 +1 @@
1
- const a65_0x4f1afe=a65_0x4f9c;(function(_0x550778,_0x485a89){const _0x29f6fe=a65_0x4f9c,_0x1deeb0=_0x550778();while(!![]){try{const _0x5133b5=parseInt(_0x29f6fe(0x100))/0x1*(-parseInt(_0x29f6fe(0x116))/0x2)+-parseInt(_0x29f6fe(0xdc))/0x3+parseInt(_0x29f6fe(0xd8))/0x4+parseInt(_0x29f6fe(0xdb))/0x5+parseInt(_0x29f6fe(0xf0))/0x6+-parseInt(_0x29f6fe(0xf6))/0x7+parseInt(_0x29f6fe(0xfd))/0x8;if(_0x5133b5===_0x485a89)break;else _0x1deeb0['push'](_0x1deeb0['shift']());}catch(_0x3c5ed1){_0x1deeb0['push'](_0x1deeb0['shift']());}}}(a65_0x45ea,0xf2d5a));import{CliErrors}from'../../errors.js';const LOCAL_KEY=/^[a-z][a-z0-9_]{0,63}$/,SUPPORTED_CARDINALITIES=new Set(['MANY_TO_ONE',a65_0x4f1afe(0xf1)]),SUPPORTED_FIELD_TYPES=new Set([a65_0x4f1afe(0xfa),a65_0x4f1afe(0x133),a65_0x4f1afe(0x112),a65_0x4f1afe(0xe5),a65_0x4f1afe(0x12f),a65_0x4f1afe(0x10d),a65_0x4f1afe(0x124),a65_0x4f1afe(0x143),'ADDRESS',a65_0x4f1afe(0x137)]);export function isDatasetBatchDesign(_0x50f05b){const _0x49dc28=a65_0x4f1afe;return isObject(_0x50f05b)&&_0x50f05b[_0x49dc28(0x119)]==='dataset-batch';}export function validateDatasetBatchDesign(_0x3083e2){const _0x5ee6f9=a65_0x4f1afe;(!isObject(_0x3083e2)||_0x3083e2[_0x5ee6f9(0x119)]!==_0x5ee6f9(0xe9))&&fail(_0x5ee6f9(0x125));_0x3083e2[_0x5ee6f9(0x11f)]!==0x1&&fail('Dataset\x20batch\x20schemaVersion\x20must\x20be\x201.');const _0x2838ef=objectArray(_0x3083e2[_0x5ee6f9(0xef)],_0x5ee6f9(0xef),0x1,0x14),_0x2a9e66=objectArray(_0x3083e2[_0x5ee6f9(0x139)],_0x5ee6f9(0x139),0x0,0xc8),_0x2976b4=objectArray(_0x3083e2[_0x5ee6f9(0xf8)],'unresolvedRelations',0x0,0xc8),_0x4abc43=new Set(),_0x4ba735=new Map();for(const [_0x26db7f,_0x4dff0c]of _0x2838ef[_0x5ee6f9(0x126)]()){const _0xef2377=requiredString(_0x4dff0c[_0x5ee6f9(0x130)],_0x5ee6f9(0x105)+_0x26db7f+'].localKey');!LOCAL_KEY[_0x5ee6f9(0x13d)](_0xef2377)&&fail('datasets['+_0x26db7f+_0x5ee6f9(0x109)+LOCAL_KEY['source']+'.');_0x4abc43['has'](_0xef2377)&&fail(_0x5ee6f9(0xe8));_0x4abc43[_0x5ee6f9(0xeb)](_0xef2377);!isObject(_0x4dff0c[_0x5ee6f9(0xf4)])&&fail(_0x5ee6f9(0x105)+_0x26db7f+_0x5ee6f9(0xdf));rejectServerDatasetIdentity(_0x4dff0c[_0x5ee6f9(0xf4)],_0x5ee6f9(0x105)+_0x26db7f+'].design');if(!isObject(_0x4dff0c['design'][_0x5ee6f9(0x110)]))fail(_0x5ee6f9(0x105)+_0x26db7f+_0x5ee6f9(0xd9));rejectServerDatasetIdentity(_0x4dff0c[_0x5ee6f9(0xf4)][_0x5ee6f9(0x110)],_0x5ee6f9(0x105)+_0x26db7f+_0x5ee6f9(0x10e)),requiredString(_0x4dff0c[_0x5ee6f9(0xf4)]['dataset'][_0x5ee6f9(0xf3)],_0x5ee6f9(0x105)+_0x26db7f+'].design.dataset.datasetName');_0x5ee6f9(0x139)in _0x4dff0c['design']&&(!Array[_0x5ee6f9(0x122)](_0x4dff0c['design'][_0x5ee6f9(0x139)])||_0x4dff0c['design']['relations']['length']!==0x0)&&fail(_0x5ee6f9(0x105)+_0x26db7f+_0x5ee6f9(0x11d));const _0x12eb21=objectArray(_0x4dff0c[_0x5ee6f9(0xf4)][_0x5ee6f9(0x120)],_0x5ee6f9(0x105)+_0x26db7f+_0x5ee6f9(0x141),0x1,0xc8),_0x4d9230=new Map();for(const [_0x37a3fd,_0x4ba34c]of _0x12eb21[_0x5ee6f9(0x126)]()){const _0x4ad068=fieldName(_0x4ba34c);if(!_0x4ad068)fail(_0x5ee6f9(0x105)+_0x26db7f+_0x5ee6f9(0x13b)+_0x37a3fd+_0x5ee6f9(0xe1));const _0x21f33c=_0x4ad068['toLowerCase']();if(_0x4d9230[_0x5ee6f9(0x10f)](_0x21f33c))fail(_0x5ee6f9(0x138)+_0xef2377+_0x5ee6f9(0x131));const _0x12a847=stringValue(_0x4ba34c[_0x5ee6f9(0x13a)]??_0x4ba34c[_0x5ee6f9(0xfb)])[_0x5ee6f9(0x104)]();if(!SUPPORTED_FIELD_TYPES[_0x5ee6f9(0x10f)](_0x12a847))fail(_0x5ee6f9(0x105)+_0x26db7f+_0x5ee6f9(0x13b)+_0x37a3fd+_0x5ee6f9(0x12b));_0x4d9230[_0x5ee6f9(0x113)](_0x21f33c,_0x12a847),[_0x4ba34c[_0x5ee6f9(0xfc)],_0x4ba34c[_0x5ee6f9(0x12c)],_0x4ba34c['refTableLabelField']][_0x5ee6f9(0x11c)](_0x31124a=>stringValue(_0x31124a))&&fail(_0x5ee6f9(0x105)+_0x26db7f+_0x5ee6f9(0x13b)+_0x37a3fd+']\x20must\x20not\x20contain\x20embedded\x20relation\x20references.');}_0x4ba735[_0x5ee6f9(0x113)](_0xef2377,_0x4d9230);}const _0x9dbfbe=new Set(),_0x259b24=new Set();for(const [_0x375dfa,_0x36c2a6]of _0x2a9e66[_0x5ee6f9(0x126)]()){const _0x36d3e0=validateRelation(_0x36c2a6,_0x375dfa,_0x4abc43,_0x4ba735);if(_0x9dbfbe['has'](_0x36d3e0))fail(_0x5ee6f9(0x121));_0x9dbfbe['add'](_0x36d3e0);const _0x1f801b=_0x36d3e0[_0x5ee6f9(0x12d)]('\x00',0x2)[_0x5ee6f9(0xed)]('\x00');if(_0x259b24[_0x5ee6f9(0x10f)](_0x1f801b))fail(_0x5ee6f9(0xf2));_0x259b24['add'](_0x1f801b);}for(const [_0x5a3ab9,_0x513bff]of _0x2976b4[_0x5ee6f9(0x126)]()){requiredString(_0x513bff[_0x5ee6f9(0x144)],_0x5ee6f9(0xff)+_0x5a3ab9+'].reason'),validateConfidence(_0x513bff[_0x5ee6f9(0xe6)],_0x5ee6f9(0xff)+_0x5a3ab9+'].confidence');}return _0x3083e2;}export function reconcileBatchResult(_0x47d2ed){const _0xcc91eb=a65_0x4f1afe;if(!isObject(_0x47d2ed))return null;try{const _0x542114=stringArray(_0x47d2ed['expectedLocalKeys'],_0xcc91eb(0x114),0x1,0x14),_0xde096c=new Set(_0x542114);if(_0xde096c[_0xcc91eb(0xfe)]!==_0x542114[_0xcc91eb(0x10b)]||_0x542114[_0xcc91eb(0x11c)](_0x50af02=>!LOCAL_KEY[_0xcc91eb(0x13d)](_0x50af02)))return null;const _0x18f20d=objectArray(_0x47d2ed['createdDatasets'],_0xcc91eb(0xdd),0x1,0x14),_0x55bc02=new Map(),_0x383a6c=new Set();for(const _0x9b1852 of _0x18f20d){const _0x4caf53=requiredString(_0x9b1852[_0xcc91eb(0x130)],_0xcc91eb(0x12a)),_0x55ced7=requiredString(_0x9b1852[_0xcc91eb(0xe3)]??_0x9b1852[_0xcc91eb(0x140)],_0xcc91eb(0xd7));if(_0x55bc02[_0xcc91eb(0x10f)](_0x4caf53)||_0x383a6c['has'](_0x55ced7))return null;_0x55bc02['set'](_0x4caf53,_0x55ced7),_0x383a6c[_0xcc91eb(0xeb)](_0x55ced7);}if(!sameSet(_0xde096c,new Set(_0x55bc02['keys']())))return null;const _0x2dafe4=objectArray(_0x47d2ed[_0xcc91eb(0x10c)],'expectedRelations',0x0,0xc8),_0x41c887=objectArray(_0x47d2ed[_0xcc91eb(0x13c)],_0xcc91eb(0x13c),0x0,0xc8),_0x19813e=relationTupleSet(_0x2dafe4,![],_0x55bc02),_0x26eff0=relationTupleSet(_0x41c887,!![],_0x55bc02);if(!_0x19813e||!_0x26eff0||!sameSet(_0x19813e,_0x26eff0))return null;const _0x43531b=objectArray(_0x47d2ed['unresolvedRelations'],_0xcc91eb(0xf8),0x0,0xc8);return{'expectedLocalKeys':_0x542114,'expectedRelations':_0x2dafe4,'createdDatasets':_0x18f20d,'createdRelations':_0x41c887,'unresolvedRelations':_0x43531b,...isObject(_0x47d2ed[_0xcc91eb(0xe7)])?{'metrics':_0x47d2ed[_0xcc91eb(0xe7)]}:{}};}catch{return null;}}function validateRelation(_0x5d5c8a,_0x1565d8,_0x127ab0,_0x3bd608){const _0x52bbf2=a65_0x4f1afe,_0x355725=_0x52bbf2(0x117)+_0x1565d8+']',_0x34cb7b=requiredString(_0x5d5c8a[_0x52bbf2(0xe0)],_0x355725+_0x52bbf2(0x103)),_0x33d144=requiredString(_0x5d5c8a[_0x52bbf2(0xf9)],_0x355725+_0x52bbf2(0x142)),_0x552721=requiredString(_0x5d5c8a[_0x52bbf2(0x132)],_0x355725+_0x52bbf2(0x136))['toLowerCase'](),_0x536d92=requiredString(_0x5d5c8a['toField'],_0x355725+'.toField')[_0x52bbf2(0xda)]();if(!_0x127ab0[_0x52bbf2(0x10f)](_0x34cb7b)||!_0x127ab0[_0x52bbf2(0x10f)](_0x33d144))fail(_0x355725+_0x52bbf2(0x129));const _0x617ce8=_0x3bd608['get'](_0x34cb7b)?.[_0x52bbf2(0xde)](_0x552721),_0x5b9567=_0x3bd608[_0x52bbf2(0xde)](_0x33d144)?.[_0x52bbf2(0xde)](_0x536d92);if(_0x617ce8===undefined||_0x5b9567===undefined)fail(_0x355725+'\x20references\x20an\x20unknown\x20field.');if(_0x617ce8&&_0x5b9567&&_0x617ce8!==_0x5b9567)fail(_0x355725+_0x52bbf2(0x107));const _0x26f2be=stringValue(_0x5d5c8a[_0x52bbf2(0xea)])||_0x52bbf2(0x12e);if(_0x26f2be!=='lookup')fail(_0x355725+_0x52bbf2(0xee));const _0x362c31=stringValue(_0x5d5c8a[_0x52bbf2(0x106)])||_0x52bbf2(0x111);if(!SUPPORTED_CARDINALITIES[_0x52bbf2(0x10f)](_0x362c31))fail(_0x355725+_0x52bbf2(0x127));return requiredString(_0x5d5c8a[_0x52bbf2(0x144)],_0x355725+_0x52bbf2(0x123)),validateConfidence(_0x5d5c8a[_0x52bbf2(0xe6)],_0x355725+_0x52bbf2(0xe4)),tuple(_0x34cb7b,_0x552721,_0x33d144,_0x536d92,_0x52bbf2(0x12e),_0x362c31);}function relationTupleSet(_0x21e1c6,_0x57348e,_0x56a7c4){const _0x5b3397=a65_0x4f1afe,_0x39cdec=new Set();for(const _0x591ced of _0x21e1c6){const _0x30195a=stringValue(_0x591ced[_0x5b3397(0xe0)]),_0x33f3a6=stringValue(_0x591ced[_0x5b3397(0xf9)]),_0x530ce8=stringValue(_0x591ced[_0x5b3397(0x132)])[_0x5b3397(0xda)](),_0x3f57bd=stringValue(_0x591ced['toField'])[_0x5b3397(0xda)](),_0x446b3e=stringValue(_0x591ced[_0x5b3397(0xea)]),_0x18483b=stringValue(_0x591ced['cardinality']);if(!_0x30195a||!_0x33f3a6||!_0x530ce8||!_0x3f57bd||_0x446b3e!=='lookup'||!SUPPORTED_CARDINALITIES['has'](_0x18483b))return null;if(!_0x56a7c4[_0x5b3397(0x10f)](_0x30195a)||!_0x56a7c4['has'](_0x33f3a6))return null;if(_0x57348e&&(stringValue(_0x591ced[_0x5b3397(0xec)])!==_0x56a7c4[_0x5b3397(0xde)](_0x30195a)||stringValue(_0x591ced[_0x5b3397(0x118)])!==_0x56a7c4[_0x5b3397(0xde)](_0x33f3a6)))return null;const _0x4b592b=tuple(_0x30195a,_0x530ce8,_0x33f3a6,_0x3f57bd,_0x446b3e,_0x18483b);if(_0x39cdec[_0x5b3397(0x10f)](_0x4b592b))return null;_0x39cdec[_0x5b3397(0xeb)](_0x4b592b);}return _0x39cdec;}function rejectServerDatasetIdentity(_0x393d0e,_0x180db2){const _0x12b554=a65_0x4f1afe;for(const _0x115a75 of['id',_0x12b554(0x102),_0x12b554(0x108),_0x12b554(0xe3),_0x12b554(0x140),'modelCode']){if(_0x393d0e[_0x115a75]!==undefined&&_0x393d0e[_0x115a75]!==null&&_0x393d0e[_0x115a75]!=='')fail(_0x180db2+'.'+_0x115a75+_0x12b554(0x13f));}}function objectArray(_0xaa21ce,_0x3010f4,_0x27df86,_0x4546ca){const _0x466065=a65_0x4f1afe;return(!Array[_0x466065(0x122)](_0xaa21ce)||_0xaa21ce[_0x466065(0x10b)]<_0x27df86||_0xaa21ce['length']>_0x4546ca||_0xaa21ce['some'](_0x379f61=>!isObject(_0x379f61)))&&fail(_0x3010f4+_0x466065(0x134)+_0x27df86+'..'+_0x4546ca+_0x466065(0xe2)),_0xaa21ce;}function stringArray(_0x2d67f5,_0x4cbfa2,_0x46904b,_0x225480){const _0x376e17=a65_0x4f1afe;return(!Array['isArray'](_0x2d67f5)||_0x2d67f5[_0x376e17(0x10b)]<_0x46904b||_0x2d67f5[_0x376e17(0x10b)]>_0x225480||_0x2d67f5[_0x376e17(0x11c)](_0x35fb07=>typeof _0x35fb07!==_0x376e17(0x101)||!_0x35fb07[_0x376e17(0x128)]()))&&fail(_0x4cbfa2+_0x376e17(0x134)+_0x46904b+'..'+_0x225480+_0x376e17(0x11e)),_0x2d67f5;}function requiredString(_0x9ed561,_0x2525e){const _0x425baa=a65_0x4f1afe,_0x41884c=stringValue(_0x9ed561);if(!_0x41884c)fail(_0x2525e+_0x425baa(0xf7));return _0x41884c;}function a65_0x45ea(){const _0x5b26e4=['size','unresolvedRelations[','100301XseEoL','string','datasetId','.fromDatasetKey','toUpperCase','datasets[','cardinality','\x20connects\x20incompatible\x20field\x20types.','modelId','].localKey\x20must\x20match\x20','isFinite','length','expectedRelations','MULTI_SELECT','].design.dataset','has','dataset','MANY_TO_ONE','DATETIME','set','expectedLocalKeys','map','38YGLgBn','relations[','toDatasetCode','kind','\x20must\x20be\x20between\x200\x20and\x201.','name','some','].design.relations\x20must\x20be\x20an\x20empty\x20array;\x20use\x20top-level\x20relations.','\x20non-empty\x20strings.','schemaVersion','fields','Dataset\x20batch\x20relations\x20must\x20be\x20unique.','isArray','.reason','DATE_RANGE','Batch\x20--design-file\x20must\x20have\x20kind\x20\x22dataset-batch\x22.','entries','.cardinality\x20is\x20not\x20supported.','trim','\x20references\x20an\x20unknown\x20dataset\x20localKey.','createdDatasets[].localKey','].type\x20is\x20not\x20supported.','refTableField','split','lookup','SELECT','localKey','\x20field\x20names\x20must\x20be\x20unique\x20ignoring\x20case.','fromField','NUMBER','\x20must\x20contain\x20','every','.fromField','UPLOAD','Dataset\x20','relations','type','].design.fields[','createdRelations','test','fieldName','\x20must\x20not\x20be\x20supplied\x20by\x20the\x20client.','datasetCode','].design.fields','.toDatasetKey','USER','reason','createdDatasets[].code','82108bXrMOg','].design.dataset\x20must\x20be\x20an\x20object.','toLowerCase','7885460rKhLLl','1245495orkPxO','createdDatasets','get','].design\x20must\x20be\x20an\x20object.','fromDatasetKey',']\x20must\x20have\x20a\x20non-empty\x20name\x20or\x20code.','\x20objects.','code','.confidence','BOOLEAN','confidence','metrics','Dataset\x20batch\x20localKey\x20values\x20must\x20be\x20unique.','dataset-batch','relationType','add','fromDatasetCode','join','.relationType\x20must\x20be\x20\x22lookup\x22.','datasets','5957100pLIUpI','ONE_TO_ONE','Each\x20source\x20field\x20may\x20target\x20at\x20most\x20one\x20relation.','datasetName','design','validation','9704226hdpeIr','\x20is\x20required.','unresolvedRelations','toDatasetKey','TEXT','fieldType','refTable','16891064tjvEga'];a65_0x45ea=function(){return _0x5b26e4;};return a65_0x45ea();}function stringValue(_0x23768b){const _0x1e3b0d=a65_0x4f1afe;return typeof _0x23768b===_0x1e3b0d(0x101)?_0x23768b[_0x1e3b0d(0x128)]():'';}function fieldName(_0x544e09){const _0x5684ca=a65_0x4f1afe;return stringValue(_0x544e09[_0x5684ca(0xe3)]??_0x544e09['fieldCode']??_0x544e09[_0x5684ca(0x11b)]??_0x544e09[_0x5684ca(0x13e)]);}function validateConfidence(_0x3ea8ae,_0x35776f){const _0x1891ee=a65_0x4f1afe;_0x3ea8ae!==undefined&&_0x3ea8ae!==null&&(typeof _0x3ea8ae!=='number'||!Number[_0x1891ee(0x10a)](_0x3ea8ae)||_0x3ea8ae<0x0||_0x3ea8ae>0x1)&&fail(_0x35776f+_0x1891ee(0x11a));}function a65_0x4f9c(_0x192b1d,_0xb8f743){_0x192b1d=_0x192b1d-0xd7;const _0x45ea44=a65_0x45ea();let _0x4f9ce7=_0x45ea44[_0x192b1d];return _0x4f9ce7;}function tuple(..._0x45ecee){const _0x9216c9=a65_0x4f1afe;return _0x45ecee[_0x9216c9(0x115)]((_0xebfa8d,_0x54ece8)=>_0x54ece8===0x1||_0x54ece8===0x3?_0xebfa8d[_0x9216c9(0xda)]():_0xebfa8d)['join']('\x00');}function sameSet(_0x373b8c,_0xffd236){const _0x581156=a65_0x4f1afe;return _0x373b8c[_0x581156(0xfe)]===_0xffd236['size']&&[..._0x373b8c][_0x581156(0x135)](_0x10ddfc=>_0xffd236[_0x581156(0x10f)](_0x10ddfc));}function isObject(_0x56968b){const _0x146d43=a65_0x4f1afe;return typeof _0x56968b==='object'&&_0x56968b!==null&&!Array[_0x146d43(0x122)](_0x56968b);}function fail(_0x4865ba){const _0x8a8787=a65_0x4f1afe;throw CliErrors[_0x8a8787(0xf5)](_0x4865ba);}
1
+ const a65_0x2fce65=a65_0x5952;(function(_0x465937,_0x1b0be7){const _0x3b2b25=a65_0x5952,_0x3f4b86=_0x465937();while(!![]){try{const _0xc75430=parseInt(_0x3b2b25(0xb8))/0x1*(parseInt(_0x3b2b25(0xc6))/0x2)+-parseInt(_0x3b2b25(0x9d))/0x3+parseInt(_0x3b2b25(0xc1))/0x4+parseInt(_0x3b2b25(0x6c))/0x5*(parseInt(_0x3b2b25(0xb5))/0x6)+parseInt(_0x3b2b25(0xae))/0x7+parseInt(_0x3b2b25(0xa6))/0x8*(-parseInt(_0x3b2b25(0xa9))/0x9)+parseInt(_0x3b2b25(0x9e))/0xa*(-parseInt(_0x3b2b25(0x72))/0xb);if(_0xc75430===_0x1b0be7)break;else _0x3f4b86['push'](_0x3f4b86['shift']());}catch(_0x26fabe){_0x3f4b86['push'](_0x3f4b86['shift']());}}}(a65_0x1a84,0x3f361));import{CliErrors}from'../../errors.js';const LOCAL_KEY=/^[a-z][a-z0-9_]{0,63}$/,SUPPORTED_CARDINALITIES=new Set([a65_0x2fce65(0xbb),a65_0x2fce65(0xb9)]),SUPPORTED_FIELD_TYPES=new Set(['TEXT',a65_0x2fce65(0xa2),a65_0x2fce65(0xce),'BOOLEAN',a65_0x2fce65(0xc9),'MULTI_SELECT',a65_0x2fce65(0x7b),a65_0x2fce65(0xb6),a65_0x2fce65(0x90),a65_0x2fce65(0xc4)]);export function isDatasetBatchDesign(_0x5b67ea){const _0x3f1202=a65_0x2fce65;return isObject(_0x5b67ea)&&_0x5b67ea[_0x3f1202(0x8c)]===_0x3f1202(0x7f);}export function validateDatasetBatchDesign(_0x5bf200){const _0x585812=a65_0x2fce65;(!isObject(_0x5bf200)||_0x5bf200[_0x585812(0x8c)]!=='dataset-batch')&&fail(_0x585812(0xd1));_0x5bf200['schemaVersion']!==0x1&&fail(_0x585812(0xb3));const _0x53abd2=objectArray(_0x5bf200['datasets'],_0x585812(0x74),0x1,0x14),_0x28e944=objectArray(_0x5bf200[_0x585812(0xcd)],_0x585812(0xcd),0x0,0xc8),_0x2b8e5d=objectArray(_0x5bf200[_0x585812(0x92)],'unresolvedRelations',0x0,0xc8),_0x5273f4=new Set(),_0x4c6bb0=new Map();for(const [_0x3c5591,_0x3cdaf3]of _0x53abd2[_0x585812(0xa8)]()){const _0x230b5d=requiredString(_0x3cdaf3[_0x585812(0x8d)],'datasets['+_0x3c5591+_0x585812(0xac));!LOCAL_KEY[_0x585812(0xc0)](_0x230b5d)&&fail('datasets['+_0x3c5591+_0x585812(0xbc)+LOCAL_KEY[_0x585812(0x73)]+'.');_0x5273f4[_0x585812(0x93)](_0x230b5d)&&fail(_0x585812(0x9f));_0x5273f4[_0x585812(0x6f)](_0x230b5d);!isObject(_0x3cdaf3['design'])&&fail('datasets['+_0x3c5591+'].design\x20must\x20be\x20an\x20object.');rejectServerDatasetIdentity(_0x3cdaf3[_0x585812(0xcf)],_0x585812(0x87)+_0x3c5591+_0x585812(0x91));if(!isObject(_0x3cdaf3['design'][_0x585812(0x70)]))fail(_0x585812(0x87)+_0x3c5591+_0x585812(0x94));rejectServerDatasetIdentity(_0x3cdaf3['design'][_0x585812(0x70)],_0x585812(0x87)+_0x3c5591+_0x585812(0x85)),requiredString(_0x3cdaf3[_0x585812(0xcf)][_0x585812(0x70)][_0x585812(0x9a)],_0x585812(0x87)+_0x3c5591+_0x585812(0x8f));_0x585812(0xcd)in _0x3cdaf3['design']&&(!Array[_0x585812(0xa0)](_0x3cdaf3['design'][_0x585812(0xcd)])||_0x3cdaf3['design'][_0x585812(0xcd)][_0x585812(0xc5)]!==0x0)&&fail(_0x585812(0x87)+_0x3c5591+_0x585812(0x82));const _0x3769ba=objectArray(_0x3cdaf3['design'][_0x585812(0x89)],_0x585812(0x87)+_0x3c5591+_0x585812(0xcb),0x1,0xc8),_0x80dcdd=new Map();for(const [_0x447082,_0x15845e]of _0x3769ba[_0x585812(0xa8)]()){const _0xcc6f39=fieldName(_0x15845e);if(!_0xcc6f39)fail(_0x585812(0x87)+_0x3c5591+_0x585812(0xb1)+_0x447082+_0x585812(0xd6));const _0x3648a7=_0xcc6f39[_0x585812(0xa3)]();if(_0x80dcdd[_0x585812(0x93)](_0x3648a7))fail('Dataset\x20'+_0x230b5d+_0x585812(0x78));const _0x2843cb=stringValue(_0x15845e['type']??_0x15845e[_0x585812(0xb7)])['toUpperCase']();if(!SUPPORTED_FIELD_TYPES[_0x585812(0x93)](_0x2843cb))fail(_0x585812(0x87)+_0x3c5591+_0x585812(0xb1)+_0x447082+'].type\x20is\x20not\x20supported.');_0x80dcdd['set'](_0x3648a7,_0x2843cb),[_0x15845e[_0x585812(0xa1)],_0x15845e[_0x585812(0xbf)],_0x15845e['refTableLabelField']][_0x585812(0xb0)](_0x212e42=>stringValue(_0x212e42))&&fail(_0x585812(0x87)+_0x3c5591+_0x585812(0xb1)+_0x447082+_0x585812(0x84));}_0x4c6bb0['set'](_0x230b5d,_0x80dcdd);}const _0x4770a9=new Set(),_0x5aa06f=new Set();for(const [_0x4a9bd8,_0x22d706]of _0x28e944[_0x585812(0xa8)]()){const _0x387bc6=validateRelation(_0x22d706,_0x4a9bd8,_0x5273f4,_0x4c6bb0);if(_0x4770a9[_0x585812(0x93)](_0x387bc6))fail(_0x585812(0xa7));_0x4770a9[_0x585812(0x6f)](_0x387bc6);const _0x2fb129=_0x387bc6[_0x585812(0xcc)]('\x00',0x2)[_0x585812(0x6d)]('\x00');if(_0x5aa06f[_0x585812(0x93)](_0x2fb129))fail(_0x585812(0xd3));_0x5aa06f[_0x585812(0x6f)](_0x2fb129);}for(const [_0x51d806,_0x36e2b1]of _0x2b8e5d['entries']()){requiredString(_0x36e2b1[_0x585812(0x75)],'unresolvedRelations['+_0x51d806+_0x585812(0x76)),validateConfidence(_0x36e2b1['confidence'],_0x585812(0xb2)+_0x51d806+_0x585812(0x86));}return _0x5bf200;}export function reconcileBatchResult(_0x13740e){const _0x30d0be=a65_0x2fce65;if(!isObject(_0x13740e))return null;try{const _0x2111f1=stringArray(_0x13740e[_0x30d0be(0xaf)],_0x30d0be(0xaf),0x1,0x14),_0x4f7082=new Set(_0x2111f1);if(_0x4f7082[_0x30d0be(0x6a)]!==_0x2111f1[_0x30d0be(0xc5)]||_0x2111f1[_0x30d0be(0xb0)](_0xda54a=>!LOCAL_KEY[_0x30d0be(0xc0)](_0xda54a)))return null;const _0x59e5ce=objectArray(_0x13740e[_0x30d0be(0xaa)],_0x30d0be(0xaa),0x1,0x14),_0x4c6cea=new Map(),_0xeb9709=new Set();for(const _0x20a9e4 of _0x59e5ce){const _0x155527=requiredString(_0x20a9e4[_0x30d0be(0x8d)],_0x30d0be(0x95)),_0x488d2c=requiredString(_0x20a9e4[_0x30d0be(0x71)]??_0x20a9e4['datasetCode'],_0x30d0be(0x7a));if(_0x4c6cea['has'](_0x155527)||_0xeb9709[_0x30d0be(0x93)](_0x488d2c))return null;_0x4c6cea[_0x30d0be(0x67)](_0x155527,_0x488d2c),_0xeb9709[_0x30d0be(0x6f)](_0x488d2c);}if(!sameSet(_0x4f7082,new Set(_0x4c6cea[_0x30d0be(0xd0)]())))return null;const _0x12a243=objectArray(_0x13740e[_0x30d0be(0xc7)],_0x30d0be(0xc7),0x0,0xc8),_0x505edf=objectArray(_0x13740e[_0x30d0be(0xad)],_0x30d0be(0xad),0x0,0xc8),_0x1732b7=relationTupleSet(_0x12a243,![],_0x4c6cea),_0x59dd97=relationTupleSet(_0x505edf,!![],_0x4c6cea);if(!_0x1732b7||!_0x59dd97||!sameSet(_0x1732b7,_0x59dd97))return null;const _0x3fe043=objectArray(_0x13740e[_0x30d0be(0x92)],_0x30d0be(0x92),0x0,0xc8);return{'expectedLocalKeys':_0x2111f1,'expectedRelations':_0x12a243,'createdDatasets':_0x59e5ce,'createdRelations':_0x505edf,'unresolvedRelations':_0x3fe043,...isObject(_0x13740e[_0x30d0be(0xd2)])?{'metrics':_0x13740e[_0x30d0be(0xd2)]}:{}};}catch{return null;}}function a65_0x5952(_0x22c3ba,_0x27fb62){_0x22c3ba=_0x22c3ba-0x65;const _0x1a848a=a65_0x1a84();let _0x595262=_0x1a848a[_0x22c3ba];return _0x595262;}function validateRelation(_0x6f8eb4,_0x108e4f,_0x141e9a,_0x5e4e13){const _0x51a72b=a65_0x2fce65,_0x3d0624=_0x51a72b(0xc3)+_0x108e4f+']',_0x51c450=requiredString(_0x6f8eb4[_0x51a72b(0x6e)],_0x3d0624+_0x51a72b(0xd4)),_0x4d68ed=requiredString(_0x6f8eb4[_0x51a72b(0x97)],_0x3d0624+'.toDatasetKey'),_0x34f460=requiredString(_0x6f8eb4[_0x51a72b(0x98)],_0x3d0624+_0x51a72b(0x7e))[_0x51a72b(0xa3)](),_0x4022bf=requiredString(_0x6f8eb4['toField'],_0x3d0624+_0x51a72b(0xbd))['toLowerCase']();if(!_0x141e9a[_0x51a72b(0x93)](_0x51c450)||!_0x141e9a[_0x51a72b(0x93)](_0x4d68ed))fail(_0x3d0624+_0x51a72b(0xbe));const _0x194ea2=_0x5e4e13[_0x51a72b(0x69)](_0x51c450)?.[_0x51a72b(0x69)](_0x34f460),_0xf4db9a=_0x5e4e13[_0x51a72b(0x69)](_0x4d68ed)?.[_0x51a72b(0x69)](_0x4022bf);if(_0x194ea2===undefined||_0xf4db9a===undefined)fail(_0x3d0624+'\x20references\x20an\x20unknown\x20field.');if(_0x194ea2&&_0xf4db9a&&_0x194ea2!==_0xf4db9a)fail(_0x3d0624+'\x20connects\x20incompatible\x20field\x20types.');const _0x580da0=stringValue(_0x6f8eb4[_0x51a72b(0xb4)])||_0x51a72b(0x80);if(_0x580da0!==_0x51a72b(0x80))fail(_0x3d0624+_0x51a72b(0x9b));const _0x3637af=stringValue(_0x6f8eb4[_0x51a72b(0xab)])||'MANY_TO_ONE';if(!SUPPORTED_CARDINALITIES['has'](_0x3637af))fail(_0x3d0624+_0x51a72b(0x88));return requiredString(_0x6f8eb4[_0x51a72b(0x75)],_0x3d0624+'.reason'),validateConfidence(_0x6f8eb4[_0x51a72b(0x66)],_0x3d0624+_0x51a72b(0x99)),tuple(_0x51c450,_0x34f460,_0x4d68ed,_0x4022bf,_0x51a72b(0x80),_0x3637af);}function relationTupleSet(_0x18a4bc,_0x1aedd9,_0x5bbc22){const _0x31c3ec=a65_0x2fce65,_0x508f84=new Set();for(const _0x3fcde9 of _0x18a4bc){const _0x1981c1=stringValue(_0x3fcde9[_0x31c3ec(0x6e)]),_0x58af73=stringValue(_0x3fcde9['toDatasetKey']),_0x73ed17=stringValue(_0x3fcde9[_0x31c3ec(0x98)])[_0x31c3ec(0xa3)](),_0x3a4b68=stringValue(_0x3fcde9[_0x31c3ec(0x65)])[_0x31c3ec(0xa3)](),_0x3a70f0=stringValue(_0x3fcde9[_0x31c3ec(0xb4)]),_0x393cb1=stringValue(_0x3fcde9[_0x31c3ec(0xab)]);if(!_0x1981c1||!_0x58af73||!_0x73ed17||!_0x3a4b68||_0x3a70f0!=='lookup'||!SUPPORTED_CARDINALITIES[_0x31c3ec(0x93)](_0x393cb1))return null;if(!_0x5bbc22[_0x31c3ec(0x93)](_0x1981c1)||!_0x5bbc22['has'](_0x58af73))return null;if(_0x1aedd9&&(stringValue(_0x3fcde9[_0x31c3ec(0x6b)])!==_0x5bbc22['get'](_0x1981c1)||stringValue(_0x3fcde9['toDatasetCode'])!==_0x5bbc22[_0x31c3ec(0x69)](_0x58af73)))return null;const _0x2b2f75=tuple(_0x1981c1,_0x73ed17,_0x58af73,_0x3a4b68,_0x3a70f0,_0x393cb1);if(_0x508f84[_0x31c3ec(0x93)](_0x2b2f75))return null;_0x508f84[_0x31c3ec(0x6f)](_0x2b2f75);}return _0x508f84;}function rejectServerDatasetIdentity(_0x244244,_0x108009){const _0x1d1810=a65_0x2fce65;for(const _0x2cdb12 of['id',_0x1d1810(0xca),_0x1d1810(0xa4),'code',_0x1d1810(0x8a),_0x1d1810(0xba)]){if(_0x244244[_0x2cdb12]!==undefined&&_0x244244[_0x2cdb12]!==null&&_0x244244[_0x2cdb12]!=='')fail(_0x108009+'.'+_0x2cdb12+_0x1d1810(0x9c));}}function objectArray(_0x7621c9,_0x39d8b4,_0x139cea,_0x4b1572){const _0x5df249=a65_0x2fce65;return(!Array['isArray'](_0x7621c9)||_0x7621c9[_0x5df249(0xc5)]<_0x139cea||_0x7621c9[_0x5df249(0xc5)]>_0x4b1572||_0x7621c9[_0x5df249(0xb0)](_0x45848f=>!isObject(_0x45848f)))&&fail(_0x39d8b4+_0x5df249(0x8e)+_0x139cea+'..'+_0x4b1572+_0x5df249(0x96)),_0x7621c9;}function a65_0x1a84(){const _0x506e49=['some','].design.fields[','unresolvedRelations[','Dataset\x20batch\x20schemaVersion\x20must\x20be\x201.','relationType','78OhIfrw','USER','fieldType','78eDiDdq','ONE_TO_ONE','modelCode','MANY_TO_ONE','].localKey\x20must\x20match\x20','.toField','\x20references\x20an\x20unknown\x20dataset\x20localKey.','refTableField','test','119804WSqMzg','trim','relations[','UPLOAD','length','9062HHPhYV','expectedRelations','name','SELECT','datasetId','].design.fields','split','relations','DATETIME','design','keys','Batch\x20--design-file\x20must\x20have\x20kind\x20\x22dataset-batch\x22.','metrics','Each\x20source\x20field\x20may\x20target\x20at\x20most\x20one\x20relation.','.fromDatasetKey','validation',']\x20must\x20have\x20a\x20non-empty\x20name\x20or\x20code.','toField','confidence','set','fieldCode','get','size','fromDatasetCode','131515AbHzQU','join','fromDatasetKey','add','dataset','code','3863486eZtijL','source','datasets','reason','].reason','object','\x20field\x20names\x20must\x20be\x20unique\x20ignoring\x20case.','\x20non-empty\x20strings.','createdDatasets[].code','DATE_RANGE','number','\x20must\x20be\x20between\x200\x20and\x201.','.fromField','dataset-batch','lookup','map','].design.relations\x20must\x20be\x20an\x20empty\x20array;\x20use\x20top-level\x20relations.','string',']\x20must\x20not\x20contain\x20embedded\x20relation\x20references.','].design.dataset','].confidence','datasets[','.cardinality\x20is\x20not\x20supported.','fields','datasetCode','every','kind','localKey','\x20must\x20contain\x20','].design.dataset.datasetName','ADDRESS','].design','unresolvedRelations','has','].design.dataset\x20must\x20be\x20an\x20object.','createdDatasets[].localKey','\x20objects.','toDatasetKey','fromField','.confidence','datasetName','.relationType\x20must\x20be\x20\x22lookup\x22.','\x20must\x20not\x20be\x20supplied\x20by\x20the\x20client.','183399KWuMYe','10Risghd','Dataset\x20batch\x20localKey\x20values\x20must\x20be\x20unique.','isArray','refTable','NUMBER','toLowerCase','modelId','\x20is\x20required.','14216tGSmKN','Dataset\x20batch\x20relations\x20must\x20be\x20unique.','entries','306UHTkam','createdDatasets','cardinality','].localKey','createdRelations','44674rYLPqG','expectedLocalKeys'];a65_0x1a84=function(){return _0x506e49;};return a65_0x1a84();}function stringArray(_0x1ea4e7,_0x27e4c7,_0x2bbff8,_0x1d6058){const _0x1e3671=a65_0x2fce65;return(!Array['isArray'](_0x1ea4e7)||_0x1ea4e7['length']<_0x2bbff8||_0x1ea4e7[_0x1e3671(0xc5)]>_0x1d6058||_0x1ea4e7['some'](_0x4b5edc=>typeof _0x4b5edc!==_0x1e3671(0x83)||!_0x4b5edc[_0x1e3671(0xc2)]()))&&fail(_0x27e4c7+'\x20must\x20contain\x20'+_0x2bbff8+'..'+_0x1d6058+_0x1e3671(0x79)),_0x1ea4e7;}function requiredString(_0x4064d5,_0x231916){const _0x1b879a=a65_0x2fce65,_0x1c9998=stringValue(_0x4064d5);if(!_0x1c9998)fail(_0x231916+_0x1b879a(0xa5));return _0x1c9998;}function stringValue(_0x58874c){const _0x59c24d=a65_0x2fce65;return typeof _0x58874c===_0x59c24d(0x83)?_0x58874c[_0x59c24d(0xc2)]():'';}function fieldName(_0x2a10fd){const _0x5ed86d=a65_0x2fce65;return stringValue(_0x2a10fd['code']??_0x2a10fd[_0x5ed86d(0x68)]??_0x2a10fd[_0x5ed86d(0xc8)]??_0x2a10fd['fieldName']);}function validateConfidence(_0x5dd14a,_0xebfdcb){const _0x464fd9=a65_0x2fce65;_0x5dd14a!==undefined&&_0x5dd14a!==null&&(typeof _0x5dd14a!==_0x464fd9(0x7c)||!Number['isFinite'](_0x5dd14a)||_0x5dd14a<0x0||_0x5dd14a>0x1)&&fail(_0xebfdcb+_0x464fd9(0x7d));}function tuple(..._0x4ae796){const _0x337737=a65_0x2fce65;return _0x4ae796[_0x337737(0x81)]((_0x27a5be,_0x3eb65a)=>_0x3eb65a===0x1||_0x3eb65a===0x3?_0x27a5be['toLowerCase']():_0x27a5be)[_0x337737(0x6d)]('\x00');}function sameSet(_0x170e85,_0xf04224){const _0x3aacfc=a65_0x2fce65;return _0x170e85[_0x3aacfc(0x6a)]===_0xf04224[_0x3aacfc(0x6a)]&&[..._0x170e85][_0x3aacfc(0x8b)](_0x282bf5=>_0xf04224['has'](_0x282bf5));}function isObject(_0x43482c){const _0x3e1a26=a65_0x2fce65;return typeof _0x43482c===_0x3e1a26(0x77)&&_0x43482c!==null&&!Array[_0x3e1a26(0xa0)](_0x43482c);}function fail(_0x14b1e7){const _0x5f42ac=a65_0x2fce65;throw CliErrors[_0x5f42ac(0xd5)](_0x14b1e7);}
@@ -1 +1 @@
1
- const a66_0x50260f=a66_0x21fd;(function(_0xd315ec,_0x1479bc){const _0x420262=a66_0x21fd,_0x48d044=_0xd315ec();while(!![]){try{const _0x341d47=parseInt(_0x420262(0x20a))/0x1*(-parseInt(_0x420262(0x23c))/0x2)+-parseInt(_0x420262(0x1f3))/0x3*(parseInt(_0x420262(0x1f5))/0x4)+parseInt(_0x420262(0x229))/0x5*(-parseInt(_0x420262(0x211))/0x6)+parseInt(_0x420262(0x1f6))/0x7*(-parseInt(_0x420262(0x228))/0x8)+parseInt(_0x420262(0x222))/0x9*(parseInt(_0x420262(0x21a))/0xa)+-parseInt(_0x420262(0x23a))/0xb*(-parseInt(_0x420262(0x215))/0xc)+parseInt(_0x420262(0x1fc))/0xd;if(_0x341d47===_0x1479bc)break;else _0x48d044['push'](_0x48d044['shift']());}catch(_0x3575e4){_0x48d044['push'](_0x48d044['shift']());}}}(a66_0x3f07,0x1ab37));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_0x50260f(0x1fd),METADATA_BACKEND_PATH=a66_0x50260f(0x21e),UNGROUPED_BUSINESS_GROUP=a66_0x50260f(0x238);export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x46495c,input:_0x4206a5,dryRun:_0x4339bc}){const _0x4dac90=a66_0x50260f;validateInput(_0x4206a5);const _0x1e939b=normalizeBusinessGroupArgument(_0x4206a5['businessGroup']),_0xda1229=await getDatasetDetail(_0x4206a5[_0x4dac90(0x1ee)]),_0x1ed0b0=resolveBusinessGroupDataset(_0xda1229,_0x4206a5['code']);assertBusinessGroupUpdateSupported(_0x1ed0b0,_0x1e939b);const _0x3483c5=loadCurrentBusinessGroup(_0xda1229,_0x1ed0b0);assertExpectedBusinessGroup(_0x3483c5,_0x4206a5[_0x4dac90(0x1f8)]);const _0x1473d8=buildBackendPlan(_0x46495c,_0x1ed0b0,_0x1e939b),_0x48ff4f=_0x3483c5!==_0x1e939b;let _0x3aa166;if(_0x48ff4f&&!_0x4339bc){_0x1473d8[_0x4dac90(0x21c)]===_0x4dac90(0x210)?await updateDbTableBusinessGroup(_0x1473d8[_0x4dac90(0x239)]):await updateErBusinessGroup(_0x1473d8['payload']);const _0x5f270a=await getDatasetDetail(_0x1ed0b0['code']),_0x277ea6=resolveBusinessGroupDataset(_0x5f270a,_0x1ed0b0[_0x4dac90(0x1ee)]),_0x1709ab=loadCurrentBusinessGroup(_0x5f270a,_0x277ea6);if(_0x1709ab!==_0x1e939b)throw CliErrors[_0x4dac90(0x1ef)]('Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.',_0x4dac90(0x235)+JSON[_0x4dac90(0x22b)](displayBusinessGroup(_0x1e939b))+_0x4dac90(0x221)+JSON['stringify'](displayBusinessGroup(_0x1709ab))+'.');_0x3aa166={'verified':!![],'status':_0x4dac90(0x21b),'afterReadback':{'businessGroup':displayBusinessGroup(_0x1709ab)}};}else!_0x48ff4f&&(_0x3aa166={'verified':!![],'status':'unchanged','afterReadback':{'businessGroup':displayBusinessGroup(_0x3483c5)}});const _0x219a83={'operation':'update','appCode':_0x46495c,'selector':{'code':_0x1ed0b0[_0x4dac90(0x1ee)]},'dataset':{'id':_0x1ed0b0['id'],'code':_0x1ed0b0[_0x4dac90(0x1ee)],'name':_0x1ed0b0[_0x4dac90(0x232)],'sourceType':_0x1ed0b0[_0x4dac90(0x231)]},'before':{'businessGroup':displayBusinessGroup(_0x3483c5)},'after':{'businessGroup':displayBusinessGroup(_0x1e939b)},'changed':_0x48ff4f,'dryRun':_0x4339bc,'submitted':_0x48ff4f&&!_0x4339bc,'backend':{'method':_0x1473d8[_0x4dac90(0x1ed)],'path':_0x1473d8[_0x4dac90(0x1eb)],'payload':_0x1473d8['payload']},..._0x3aa166?{'verification':_0x3aa166}:{},'warnings':[]};return{'ok':!![],'data':_0x219a83,'message':_0x48ff4f?_0x4339bc?_0x4dac90(0x23b)+_0x1ed0b0['code']:_0x4dac90(0x206)+_0x1ed0b0['code']:'No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20'+_0x1ed0b0['code']};}export const datasetBusinessGroupUpdate={'service':a66_0x50260f(0x226),'command':a66_0x50260f(0x216),'description':a66_0x50260f(0x200),'risk':a66_0x50260f(0x20c),'flags':[CODE_FLAG,{'name':a66_0x50260f(0x208),'type':a66_0x50260f(0x214),'required':!![],'description':a66_0x50260f(0x1f7)},{'name':'expect-business-group','type':'string','required':![],'description':'Expected\x20current\x20business\x20scenario\x20group;\x20use\x20ungrouped\x20to\x20expect\x20no\x20group;\x20mismatch\x20aborts\x20without\x20writing'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x5a2515){validateInput(readBusinessGroupUpdateInput(_0x5a2515));},async 'dryRun'(_0x24d579){const _0x3b676d=a66_0x50260f,_0x101b7f=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x24d579[_0x3b676d(0x22a)],'input':readBusinessGroupUpdateInput(_0x24d579),'dryRun':!![]});return{'method':_0x101b7f[_0x3b676d(0x20e)][_0x3b676d(0x236)][_0x3b676d(0x1ed)],'url':_0x101b7f[_0x3b676d(0x20e)][_0x3b676d(0x236)][_0x3b676d(0x1eb)],'body':_0x101b7f[_0x3b676d(0x20e)][_0x3b676d(0x236)][_0x3b676d(0x239)],'description':_0x101b7f[_0x3b676d(0x237)],..._0x101b7f['data']};},async 'execute'(_0x1e7746){const _0x6502e1=a66_0x50260f;return buildDatasetBusinessGroupUpdateResult({'appCode':_0x1e7746[_0x6502e1(0x22a)],'input':readBusinessGroupUpdateInput(_0x1e7746),'dryRun':![]});}};function a66_0x3f07(){const _0x550355=['stringify','prototype','datasetCode','modelId','--business-group\x20is\x20required','keys','sourceType','name','--business-group\x20must\x20not\x20be\x20blank','isFinite','Expected\x20','backend','message','ungrouped','payload','260249cXwvco','Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20','15104KUoahv','path','length','method','code','apiError','dbLinkId','toUpperCase','DB_TABLE\x20dataset\x20requires\x20dbtableConfig.dbId\x20and\x20tableName.','249TSiCjk','dbtableConfig','2412JAsozc','38990tczzGG','Business\x20scenario\x20group\x20(not\x20technical):\x20use\x20<scenario>,\x20<domain>---<scenario>\x20when\x20needed;\x20METADATA\x20accepts\x20ungrouped\x20to\x20clear\x20it','expectBusinessGroup','number','Expectation\x20mismatch\x20at\x20businessGroup','call','2352311OUAfyI','/smartapi/dblink/updateTableBusinessGroup','found','value','Update\x20business\x20scenario\x20group','datasetName','trim','Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.','extend','str','Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20','dbId','business-group','DB_TABLE','1KrRXED','Run\x20dataset\x20detail\x20and\x20complete\x20database\x20analysis\x20before\x20updating\x20the\x20business\x20group.','write','tableName','data','metadata','db-table','208140mMmzUK','parse','businessGroup','string','36VNKXOe','business-group-update','POST','source','datasetId','40WqfjyK','matched','kind','METADATA','/smartapi/question/er-config/business-group/edit','validation','modelCode',',\x20actual\x20','225279SRcWOD','isArray','dbTableSelector','object','dataset','--code\x20is\x20required','216kyxuXm','5zfFKOB','appCode'];a66_0x3f07=function(){return _0x550355;};return a66_0x3f07();}function readBusinessGroupUpdateInput(_0x4ab757){const _0x176f61=a66_0x50260f,_0x303e0e=_0x4ab757[_0x176f61(0x205)]('expect-business-group');return{'code':trim(_0x4ab757[_0x176f61(0x205)](_0x176f61(0x1ee))),'businessGroup':_0x4ab757[_0x176f61(0x205)](_0x176f61(0x208)),'expectBusinessGroup':_0x303e0e===undefined||_0x303e0e===''?undefined:_0x303e0e};}function validateInput(_0x4b487b){const _0x2c8be4=a66_0x50260f;if(!trim(_0x4b487b['code']))throw CliErrors[_0x2c8be4(0x21f)](_0x2c8be4(0x227));if(_0x4b487b['businessGroup']===undefined)throw CliErrors[_0x2c8be4(0x21f)](_0x2c8be4(0x22f));if(!trim(_0x4b487b[_0x2c8be4(0x213)]))throw CliErrors['validation'](_0x2c8be4(0x233));}function assertBusinessGroupUpdateSupported(_0x399991,_0x4b17c1){const _0x4d7dd4=a66_0x50260f;if(_0x399991['sourceType']==='DB_TABLE'&&!_0x4b17c1)throw CliErrors[_0x4d7dd4(0x21f)]('Clearing\x20business\x20scenario\x20groups\x20is\x20not\x20supported\x20for\x20DB_TABLE\x20datasets.');}function resolveBusinessGroupDataset(_0xd5e587,_0x1492e0){const _0x219d65=a66_0x50260f,_0x5e204d=asPlainObject(_0xd5e587['dataset']),_0x473ee1=asPlainObject(_0xd5e587[_0x219d65(0x1f4)]),_0x584dd2=resolveSourceType(_0xd5e587,_0x5e204d,_0x473ee1),_0x4b6593=firstString(_0xd5e587[_0x219d65(0x220)],_0xd5e587[_0x219d65(0x1ee)],_0x5e204d[_0x219d65(0x22d)],_0x1492e0)||_0x1492e0;return{'id':firstNumber(_0xd5e587['modelId'],_0xd5e587['id'],_0x5e204d[_0x219d65(0x219)])??firstString(_0xd5e587[_0x219d65(0x22e)],_0xd5e587['id'],_0x5e204d[_0x219d65(0x219)])??null,'code':_0x4b6593,'name':firstString(_0xd5e587[_0x219d65(0x232)],_0x5e204d[_0x219d65(0x201)],_0x5e204d['name'])||null,'sourceType':_0x584dd2,'dbTableSelector':_0x584dd2===_0x219d65(0x209)?{'dbLinkId':firstNumber(_0x473ee1[_0x219d65(0x207)]),'tableName':firstString(_0x473ee1[_0x219d65(0x20d)])||null}:null};}function resolveSourceType(_0x46c483,_0x5071a4,_0x31e9e1){const _0x4f7130=a66_0x50260f,_0x2e019c=firstString(_0x46c483[_0x4f7130(0x218)],_0x46c483['sourceType'],_0x5071a4[_0x4f7130(0x218)],_0x5071a4[_0x4f7130(0x231)])?.[_0x4f7130(0x202)]()[_0x4f7130(0x1f1)]();if(_0x2e019c==='DB_TABLE'||_0x2e019c===_0x4f7130(0x21d))return _0x2e019c;if(Object[_0x4f7130(0x230)](_0x31e9e1)[_0x4f7130(0x1ec)]>0x0)return'DB_TABLE';throw CliErrors[_0x4f7130(0x21f)](_0x4f7130(0x203));}function loadCurrentBusinessGroup(_0xfa8f80,_0x32281d){const _0x40a6a2=a66_0x50260f,_0x28040e=readBusinessGroupFromDatasetDetail(_0xfa8f80,_0x32281d[_0x40a6a2(0x231)]);if(_0x28040e[_0x40a6a2(0x1fe)])return normalizeBusinessGroup(_0x28040e[_0x40a6a2(0x1ff)]);return'';}function readBusinessGroupFromDatasetDetail(_0x13cb05,_0x529ffc){const _0x40f857=a66_0x50260f,_0x597047=asPlainObject(_0x13cb05[_0x40f857(0x226)]),_0x5addbc=firstPresent(_0x13cb05[_0x40f857(0x213)]);if(_0x5addbc['found'])return _0x5addbc;const _0x54b583=firstPresent(_0x597047[_0x40f857(0x213)]);if(_0x54b583['found'])return _0x54b583;if(_0x529ffc===_0x40f857(0x209))return{'found':![]};const _0x2f2259=readBusinessGroupFromExtend(_0x13cb05['extend']);if(_0x2f2259[_0x40f857(0x1fe)])return _0x2f2259;return readBusinessGroupFromExtend(_0x597047[_0x40f857(0x204)]);}function readBusinessGroupFromExtend(_0x438842){const _0x82d55e=a66_0x50260f;if(_0x438842===undefined||_0x438842===null||_0x438842==='')return{'found':![]};if(typeof _0x438842==='string')try{const _0x55a9ed=JSON[_0x82d55e(0x212)](_0x438842);return readBusinessGroupFromExtend(_0x55a9ed);}catch{return{'found':![]};}const _0x1247b6=asPlainObject(_0x438842);if(Object[_0x82d55e(0x22c)]['hasOwnProperty'][_0x82d55e(0x1fb)](_0x1247b6,_0x82d55e(0x213)))return{'found':!![],'value':_0x1247b6[_0x82d55e(0x213)]};return{'found':![]};}function firstPresent(..._0x55e6d6){for(const _0x10308b of _0x55e6d6){if(_0x10308b!==undefined&&_0x10308b!==null)return{'found':!![],'value':_0x10308b};}return{'found':![]};}function assertExpectedBusinessGroup(_0xd3d17b,_0x492ef3){const _0x1a0cb5=a66_0x50260f;if(_0x492ef3===undefined)return;const _0x4e2358=normalizeBusinessGroupArgument(_0x492ef3);if(_0xd3d17b!==_0x4e2358)throw CliErrors[_0x1a0cb5(0x21f)](_0x1a0cb5(0x1fa),_0x1a0cb5(0x235)+JSON['stringify'](_0x4e2358)+',\x20actual\x20'+JSON[_0x1a0cb5(0x22b)](_0xd3d17b));}function buildBackendPlan(_0x1e9d1f,_0x41b41b,_0x82b6e6){const _0x17ea8a=a66_0x50260f;if(_0x41b41b['sourceType']===_0x17ea8a(0x209)){if(!_0x41b41b['dbTableSelector']||_0x41b41b[_0x17ea8a(0x224)][_0x17ea8a(0x1f0)]===null||!_0x41b41b['dbTableSelector'][_0x17ea8a(0x20d)])throw CliErrors[_0x17ea8a(0x21f)](_0x17ea8a(0x1f2),_0x17ea8a(0x20b));return{'kind':'db-table','method':'POST','path':DB_TABLE_BACKEND_PATH,'payload':{'dbLinkId':_0x41b41b['dbTableSelector'][_0x17ea8a(0x1f0)],'tableName':_0x41b41b[_0x17ea8a(0x224)][_0x17ea8a(0x20d)],'businessGroup':_0x82b6e6}};}return{'kind':_0x17ea8a(0x20f),'method':_0x17ea8a(0x217),'path':METADATA_BACKEND_PATH,'payload':{'appCode':_0x1e9d1f,'datasetCode':_0x41b41b[_0x17ea8a(0x1ee)],'businessGroup':_0x82b6e6}};}function a66_0x21fd(_0x1812bc,_0x3e7fcd){_0x1812bc=_0x1812bc-0x1eb;const _0x3f0718=a66_0x3f07();let _0x21fd23=_0x3f0718[_0x1812bc];return _0x21fd23;}function normalizeBusinessGroup(_0x39a0d9){const _0x13fd36=a66_0x50260f;if(_0x39a0d9===undefined||_0x39a0d9===null)return'';return String(_0x39a0d9)[_0x13fd36(0x202)]();}function normalizeBusinessGroupArgument(_0x2d8757){const _0x1c6db4=normalizeBusinessGroup(_0x2d8757);return _0x1c6db4===UNGROUPED_BUSINESS_GROUP?'':_0x1c6db4;}function displayBusinessGroup(_0x56bbdb){return _0x56bbdb||UNGROUPED_BUSINESS_GROUP;}function asPlainObject(_0x5e1a75){const _0x59fd37=a66_0x50260f;if(!_0x5e1a75||typeof _0x5e1a75!==_0x59fd37(0x225)||Array[_0x59fd37(0x223)](_0x5e1a75))return{};return _0x5e1a75;}function firstString(..._0x3ada02){const _0x5e64f8=a66_0x50260f;for(const _0x22d7d8 of _0x3ada02){if(typeof _0x22d7d8===_0x5e64f8(0x214)&&_0x22d7d8[_0x5e64f8(0x202)]())return _0x22d7d8['trim']();if(typeof _0x22d7d8===_0x5e64f8(0x1f9)&&Number[_0x5e64f8(0x234)](_0x22d7d8))return String(_0x22d7d8);}return undefined;}function firstNumber(..._0x5d7a38){const _0x2a419a=a66_0x50260f;for(const _0x4126db of _0x5d7a38){if(typeof _0x4126db==='number'&&Number[_0x2a419a(0x234)](_0x4126db))return _0x4126db;if(typeof _0x4126db===_0x2a419a(0x214)&&_0x4126db['trim']()&&Number[_0x2a419a(0x234)](Number(_0x4126db)))return Number(_0x4126db);}return null;}function trim(_0x368e40){const _0x290dd9=a66_0x50260f;return String(_0x368e40||'')[_0x290dd9(0x202)]();}
1
+ const a66_0x83cc80=a66_0x35db;(function(_0xa2a5d8,_0x3eb964){const _0x1e2bc2=a66_0x35db,_0x233a23=_0xa2a5d8();while(!![]){try{const _0x245735=parseInt(_0x1e2bc2(0x1b4))/0x1*(parseInt(_0x1e2bc2(0x1c6))/0x2)+parseInt(_0x1e2bc2(0x196))/0x3*(parseInt(_0x1e2bc2(0x1c5))/0x4)+parseInt(_0x1e2bc2(0x1d7))/0x5*(parseInt(_0x1e2bc2(0x1ca))/0x6)+parseInt(_0x1e2bc2(0x1b6))/0x7*(-parseInt(_0x1e2bc2(0x1d6))/0x8)+-parseInt(_0x1e2bc2(0x1a0))/0x9+parseInt(_0x1e2bc2(0x194))/0xa*(-parseInt(_0x1e2bc2(0x1da))/0xb)+-parseInt(_0x1e2bc2(0x193))/0xc*(-parseInt(_0x1e2bc2(0x1b8))/0xd);if(_0x245735===_0x3eb964)break;else _0x233a23['push'](_0x233a23['shift']());}catch(_0x5df54a){_0x233a23['push'](_0x233a23['shift']());}}}(a66_0x221b,0x3c345));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='ungrouped';export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x21b913,input:_0x4ed464,dryRun:_0x17f099}){const _0x13137c=a66_0x35db;validateInput(_0x4ed464);const _0x422d37=normalizeBusinessGroupArgument(_0x4ed464['businessGroup']),_0x385d14=await getDatasetDetail(_0x4ed464[_0x13137c(0x1aa)]),_0x450107=resolveBusinessGroupDataset(_0x385d14,_0x4ed464['code']);assertBusinessGroupUpdateSupported(_0x450107,_0x422d37);const _0x2cc32e=loadCurrentBusinessGroup(_0x385d14,_0x450107);assertExpectedBusinessGroup(_0x2cc32e,_0x4ed464[_0x13137c(0x1d9)]);const _0x3420d1=buildBackendPlan(_0x21b913,_0x450107,_0x422d37),_0x3d095a=_0x2cc32e!==_0x422d37;let _0x3dc6f8;if(_0x3d095a&&!_0x17f099){_0x3420d1[_0x13137c(0x1bb)]===_0x13137c(0x1a5)?await updateDbTableBusinessGroup(_0x3420d1[_0x13137c(0x1c2)]):await updateErBusinessGroup(_0x3420d1[_0x13137c(0x1c2)]);const _0x46808c=await getDatasetDetail(_0x450107[_0x13137c(0x1aa)]),_0x218ffc=resolveBusinessGroupDataset(_0x46808c,_0x450107[_0x13137c(0x1aa)]),_0x33c589=loadCurrentBusinessGroup(_0x46808c,_0x218ffc);if(_0x33c589!==_0x422d37)throw CliErrors['apiError'](_0x13137c(0x1af),_0x13137c(0x1b1)+JSON[_0x13137c(0x19a)](displayBusinessGroup(_0x422d37))+_0x13137c(0x1cc)+JSON[_0x13137c(0x19a)](displayBusinessGroup(_0x33c589))+'.');_0x3dc6f8={'verified':!![],'status':_0x13137c(0x1ce),'afterReadback':{'businessGroup':displayBusinessGroup(_0x33c589)}};}else!_0x3d095a&&(_0x3dc6f8={'verified':!![],'status':_0x13137c(0x1ab),'afterReadback':{'businessGroup':displayBusinessGroup(_0x2cc32e)}});const _0x6a9448={'operation':_0x13137c(0x1a6),'appCode':_0x21b913,'selector':{'code':_0x450107[_0x13137c(0x1aa)]},'dataset':{'id':_0x450107['id'],'code':_0x450107[_0x13137c(0x1aa)],'name':_0x450107[_0x13137c(0x1bd)],'sourceType':_0x450107[_0x13137c(0x1b9)]},'before':{'businessGroup':displayBusinessGroup(_0x2cc32e)},'after':{'businessGroup':displayBusinessGroup(_0x422d37)},'changed':_0x3d095a,'dryRun':_0x17f099,'submitted':_0x3d095a&&!_0x17f099,'backend':{'method':_0x3420d1[_0x13137c(0x1cf)],'path':_0x3420d1[_0x13137c(0x1c4)],'payload':_0x3420d1[_0x13137c(0x1c2)]},..._0x3dc6f8?{'verification':_0x3dc6f8}:{},'warnings':[]};return{'ok':!![],'data':_0x6a9448,'message':_0x3d095a?_0x17f099?'Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20'+_0x450107[_0x13137c(0x1aa)]:'Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20'+_0x450107[_0x13137c(0x1aa)]:_0x13137c(0x1bf)+_0x450107['code']};}export const datasetBusinessGroupUpdate={'service':'dataset','command':'business-group-update','description':'Update\x20business\x20scenario\x20group','risk':a66_0x83cc80(0x19c),'flags':[CODE_FLAG,{'name':a66_0x83cc80(0x1d2),'type':a66_0x83cc80(0x1a3),'required':!![],'description':a66_0x83cc80(0x19d)},{'name':a66_0x83cc80(0x1a7),'type':a66_0x83cc80(0x1a3),'required':![],'description':a66_0x83cc80(0x1ac)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x274a75){validateInput(readBusinessGroupUpdateInput(_0x274a75));},async 'dryRun'(_0x9abfff){const _0x4ec3a4=a66_0x83cc80,_0x1b3503=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x9abfff[_0x4ec3a4(0x1a4)],'input':readBusinessGroupUpdateInput(_0x9abfff),'dryRun':!![]});return{'method':_0x1b3503[_0x4ec3a4(0x1ae)]['backend'][_0x4ec3a4(0x1cf)],'url':_0x1b3503['data'][_0x4ec3a4(0x199)][_0x4ec3a4(0x1c4)],'body':_0x1b3503['data'][_0x4ec3a4(0x199)][_0x4ec3a4(0x1c2)],'description':_0x1b3503[_0x4ec3a4(0x1d1)],..._0x1b3503[_0x4ec3a4(0x1ae)]};},async 'execute'(_0x2b406e){const _0x2bf6e6=a66_0x83cc80;return buildDatasetBusinessGroupUpdateResult({'appCode':_0x2b406e[_0x2bf6e6(0x1a4)],'input':readBusinessGroupUpdateInput(_0x2b406e),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x34a740){const _0x3edf79=a66_0x83cc80,_0x573a9d=_0x34a740[_0x3edf79(0x1c0)]('expect-business-group');return{'code':trim(_0x34a740[_0x3edf79(0x1c0)](_0x3edf79(0x1aa))),'businessGroup':_0x34a740[_0x3edf79(0x1c0)](_0x3edf79(0x1d2)),'expectBusinessGroup':_0x573a9d===undefined||_0x573a9d===''?undefined:_0x573a9d};}function validateInput(_0x4a0bc4){const _0x242c2b=a66_0x83cc80;if(!trim(_0x4a0bc4[_0x242c2b(0x1aa)]))throw CliErrors[_0x242c2b(0x19f)](_0x242c2b(0x1cd));if(_0x4a0bc4['businessGroup']===undefined)throw CliErrors['validation']('--business-group\x20is\x20required');if(!trim(_0x4a0bc4[_0x242c2b(0x1b3)]))throw CliErrors[_0x242c2b(0x19f)](_0x242c2b(0x1d4));}function assertBusinessGroupUpdateSupported(_0xbd4a25,_0xf68f45){const _0x2ad1b3=a66_0x83cc80;if(_0xbd4a25['sourceType']===_0x2ad1b3(0x1c7)&&!_0xf68f45)throw CliErrors[_0x2ad1b3(0x19f)](_0x2ad1b3(0x1be));}function resolveBusinessGroupDataset(_0x40d59f,_0x1315ed){const _0x2bf37f=a66_0x83cc80,_0x4859b5=asPlainObject(_0x40d59f[_0x2bf37f(0x1a9)]),_0x4412b3=asPlainObject(_0x40d59f[_0x2bf37f(0x1c1)]),_0x4e41e9=resolveSourceType(_0x40d59f,_0x4859b5,_0x4412b3),_0x5ea5c4=firstString(_0x40d59f[_0x2bf37f(0x19e)],_0x40d59f[_0x2bf37f(0x1aa)],_0x4859b5['datasetCode'],_0x1315ed)||_0x1315ed;return{'id':firstNumber(_0x40d59f[_0x2bf37f(0x1cb)],_0x40d59f['id'],_0x4859b5[_0x2bf37f(0x19b)])??firstString(_0x40d59f[_0x2bf37f(0x1cb)],_0x40d59f['id'],_0x4859b5[_0x2bf37f(0x19b)])??null,'code':_0x5ea5c4,'name':firstString(_0x40d59f[_0x2bf37f(0x1bd)],_0x4859b5['datasetName'],_0x4859b5[_0x2bf37f(0x1bd)])||null,'sourceType':_0x4e41e9,'dbTableSelector':_0x4e41e9===_0x2bf37f(0x1c7)?{'dbLinkId':firstNumber(_0x4412b3[_0x2bf37f(0x1b0)]),'tableName':firstString(_0x4412b3[_0x2bf37f(0x1b7)])||null}:null};}function resolveSourceType(_0x844c83,_0x306bd3,_0x2a14b5){const _0x5ac8a0=a66_0x83cc80,_0x2fc9ae=firstString(_0x844c83['source'],_0x844c83[_0x5ac8a0(0x1b9)],_0x306bd3[_0x5ac8a0(0x1d3)],_0x306bd3['sourceType'])?.[_0x5ac8a0(0x198)]()[_0x5ac8a0(0x1d0)]();if(_0x2fc9ae===_0x5ac8a0(0x1c7)||_0x2fc9ae===_0x5ac8a0(0x1c9))return _0x2fc9ae;if(Object['keys'](_0x2a14b5)['length']>0x0)return _0x5ac8a0(0x1c7);throw CliErrors['validation'](_0x5ac8a0(0x1bc));}function loadCurrentBusinessGroup(_0x24e138,_0x354a7f){const _0x187664=a66_0x83cc80,_0x1fd23=readBusinessGroupFromDatasetDetail(_0x24e138,_0x354a7f[_0x187664(0x1b9)]);if(_0x1fd23['found'])return normalizeBusinessGroup(_0x1fd23[_0x187664(0x1a8)]);return'';}function readBusinessGroupFromDatasetDetail(_0x7741f4,_0xe5b5fe){const _0x481855=a66_0x83cc80,_0x4084bd=asPlainObject(_0x7741f4[_0x481855(0x1a9)]),_0xb016a1=firstPresent(_0x7741f4['businessGroup']);if(_0xb016a1[_0x481855(0x1b5)])return _0xb016a1;const _0x3642ee=firstPresent(_0x4084bd[_0x481855(0x1b3)]);if(_0x3642ee[_0x481855(0x1b5)])return _0x3642ee;if(_0xe5b5fe===_0x481855(0x1c7))return{'found':![]};const _0x42092f=readBusinessGroupFromExtend(_0x7741f4['extend']);if(_0x42092f[_0x481855(0x1b5)])return _0x42092f;return readBusinessGroupFromExtend(_0x4084bd[_0x481855(0x1a1)]);}function readBusinessGroupFromExtend(_0x206e72){const _0x241950=a66_0x83cc80;if(_0x206e72===undefined||_0x206e72===null||_0x206e72==='')return{'found':![]};if(typeof _0x206e72===_0x241950(0x1a3))try{const _0x4b21a3=JSON[_0x241950(0x1b2)](_0x206e72);return readBusinessGroupFromExtend(_0x4b21a3);}catch{return{'found':![]};}const _0x246d10=asPlainObject(_0x206e72);if(Object[_0x241950(0x1c3)]['hasOwnProperty']['call'](_0x246d10,'businessGroup'))return{'found':!![],'value':_0x246d10[_0x241950(0x1b3)]};return{'found':![]};}function a66_0x35db(_0x392e7f,_0x4b8ed0){_0x392e7f=_0x392e7f-0x191;const _0x221bed=a66_0x221b();let _0x35dbc2=_0x221bed[_0x392e7f];return _0x35dbc2;}function a66_0x221b(){const _0x58a15d=['11mrhWTn','isFinite','isArray','3693720caVtXY','2498840DedMSW','dbLinkId','1974xQCmzA','number','trim','backend','stringify','datasetId','write','Business\x20scenario\x20group\x20(not\x20technical):\x20use\x20<scenario>,\x20<domain>---<scenario>\x20when\x20needed;\x20METADATA\x20accepts\x20ungrouped\x20to\x20clear\x20it','modelCode','validation','2110680GWWhAU','extend','metadata','string','appCode','db-table','update','expect-business-group','value','dataset','code','unchanged','Expected\x20current\x20business\x20scenario\x20group;\x20use\x20ungrouped\x20to\x20expect\x20no\x20group;\x20mismatch\x20aborts\x20without\x20writing','Expectation\x20mismatch\x20at\x20businessGroup','data','Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.','dbId','Expected\x20','parse','businessGroup','143866yBffgm','found','189qgOVdu','tableName','26SfyRpN','sourceType','dbTableSelector','kind','Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.','name','Clearing\x20business\x20scenario\x20groups\x20is\x20not\x20supported\x20for\x20DB_TABLE\x20datasets.','No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20','str','dbtableConfig','payload','prototype','path','484ZHOwpZ','2idmGqF','DB_TABLE','Run\x20dataset\x20detail\x20and\x20complete\x20database\x20analysis\x20before\x20updating\x20the\x20business\x20group.','METADATA','1002810PNfTYJ','modelId',',\x20actual\x20','--code\x20is\x20required','matched','method','toUpperCase','message','business-group','source','--business-group\x20must\x20not\x20be\x20blank','POST','81552OSuWag','5DduYEl','object','expectBusinessGroup'];a66_0x221b=function(){return _0x58a15d;};return a66_0x221b();}function firstPresent(..._0x1ffb2e){for(const _0x4433d1 of _0x1ffb2e){if(_0x4433d1!==undefined&&_0x4433d1!==null)return{'found':!![],'value':_0x4433d1};}return{'found':![]};}function assertExpectedBusinessGroup(_0x1e4a5e,_0xdef533){const _0x1a5b89=a66_0x83cc80;if(_0xdef533===undefined)return;const _0x5e94ad=normalizeBusinessGroupArgument(_0xdef533);if(_0x1e4a5e!==_0x5e94ad)throw CliErrors[_0x1a5b89(0x19f)](_0x1a5b89(0x1ad),_0x1a5b89(0x1b1)+JSON[_0x1a5b89(0x19a)](_0x5e94ad)+_0x1a5b89(0x1cc)+JSON[_0x1a5b89(0x19a)](_0x1e4a5e));}function buildBackendPlan(_0x1aa2be,_0x2a5dc3,_0x1fb183){const _0x8a7a6a=a66_0x83cc80;if(_0x2a5dc3[_0x8a7a6a(0x1b9)]===_0x8a7a6a(0x1c7)){if(!_0x2a5dc3[_0x8a7a6a(0x1ba)]||_0x2a5dc3[_0x8a7a6a(0x1ba)]['dbLinkId']===null||!_0x2a5dc3[_0x8a7a6a(0x1ba)][_0x8a7a6a(0x1b7)])throw CliErrors['validation']('DB_TABLE\x20dataset\x20requires\x20dbtableConfig.dbId\x20and\x20tableName.',_0x8a7a6a(0x1c8));return{'kind':'db-table','method':_0x8a7a6a(0x1d5),'path':DB_TABLE_BACKEND_PATH,'payload':{'dbLinkId':_0x2a5dc3['dbTableSelector'][_0x8a7a6a(0x195)],'tableName':_0x2a5dc3[_0x8a7a6a(0x1ba)][_0x8a7a6a(0x1b7)],'businessGroup':_0x1fb183}};}return{'kind':_0x8a7a6a(0x1a2),'method':_0x8a7a6a(0x1d5),'path':METADATA_BACKEND_PATH,'payload':{'appCode':_0x1aa2be,'datasetCode':_0x2a5dc3[_0x8a7a6a(0x1aa)],'businessGroup':_0x1fb183}};}function normalizeBusinessGroup(_0x49891b){const _0x1bad4d=a66_0x83cc80;if(_0x49891b===undefined||_0x49891b===null)return'';return String(_0x49891b)[_0x1bad4d(0x198)]();}function normalizeBusinessGroupArgument(_0x3d3334){const _0x287bce=normalizeBusinessGroup(_0x3d3334);return _0x287bce===UNGROUPED_BUSINESS_GROUP?'':_0x287bce;}function displayBusinessGroup(_0x53d54e){return _0x53d54e||UNGROUPED_BUSINESS_GROUP;}function asPlainObject(_0x27c189){const _0x2c216a=a66_0x83cc80;if(!_0x27c189||typeof _0x27c189!==_0x2c216a(0x1d8)||Array[_0x2c216a(0x192)](_0x27c189))return{};return _0x27c189;}function firstString(..._0x244a65){const _0x1f1817=a66_0x83cc80;for(const _0x4fd12b of _0x244a65){if(typeof _0x4fd12b===_0x1f1817(0x1a3)&&_0x4fd12b[_0x1f1817(0x198)]())return _0x4fd12b[_0x1f1817(0x198)]();if(typeof _0x4fd12b===_0x1f1817(0x197)&&Number[_0x1f1817(0x191)](_0x4fd12b))return String(_0x4fd12b);}return undefined;}function firstNumber(..._0x51ddb0){const _0x501bdb=a66_0x83cc80;for(const _0x2dac35 of _0x51ddb0){if(typeof _0x2dac35===_0x501bdb(0x197)&&Number[_0x501bdb(0x191)](_0x2dac35))return _0x2dac35;if(typeof _0x2dac35===_0x501bdb(0x1a3)&&_0x2dac35[_0x501bdb(0x198)]()&&Number[_0x501bdb(0x191)](Number(_0x2dac35)))return Number(_0x2dac35);}return null;}function trim(_0x3b3185){return String(_0x3b3185||'')['trim']();}
@@ -1 +1 @@
1
- const a67_0x2845a7=a67_0x5988;(function(_0x2adfe6,_0x1e3c1e){const _0x317680=a67_0x5988,_0x4a2c11=_0x2adfe6();while(!![]){try{const _0x3a698e=parseInt(_0x317680(0x9a))/0x1+-parseInt(_0x317680(0x8b))/0x2*(parseInt(_0x317680(0x93))/0x3)+-parseInt(_0x317680(0x8d))/0x4*(parseInt(_0x317680(0x96))/0x5)+-parseInt(_0x317680(0x99))/0x6+parseInt(_0x317680(0x9b))/0x7*(-parseInt(_0x317680(0x97))/0x8)+-parseInt(_0x317680(0x9e))/0x9+-parseInt(_0x317680(0x9d))/0xa*(-parseInt(_0x317680(0x98))/0xb);if(_0x3a698e===_0x1e3c1e)break;else _0x4a2c11['push'](_0x4a2c11['shift']());}catch(_0x493f8d){_0x4a2c11['push'](_0x4a2c11['shift']());}}}(a67_0x50fc,0x1bdcd));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a67_0x50fc(){const _0x12e86f=['501552YWZNOC','number','business-groups','List\x20DB_TABLE\x20dataset\x20business\x20groups\x20for\x20a\x20database\x20connection;\x20does\x20not\x20include\x20METADATA','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','num','\x20business\x20group(s)\x20for\x20database\x20connection\x20','902cgPsoC','DB_TABLE','8xIjnYD','ungrouped','dbid','dataset','Found\x20','businessGroup','33cvAvQC','length','map','325945GamNbD','25672bQfOlX','11jaSnvd','851406ALwCxu','155000hVNjRk','413UNCXhT','groups','4814240SpTlDM'];a67_0x50fc=function(){return _0x12e86f;};return a67_0x50fc();}function a67_0x5988(_0xcead42,_0x115e73){_0xcead42=_0xcead42-0x8a;const _0x50fc33=a67_0x50fc();let _0x5988e5=_0x50fc33[_0xcead42];return _0x5988e5;}import{getErBusinessGroupSummary}from'../../core/api-client.js';export const datasetBusinessGroups={'service':a67_0x2845a7(0x90),'command':a67_0x2845a7(0xa0),'description':a67_0x2845a7(0xa1),'risk':'read','flags':[{'name':a67_0x2845a7(0x8f),'type':a67_0x2845a7(0x9f),'required':!![],'description':a67_0x2845a7(0xa2)},APPCODE_FLAG_OPTIONAL],async 'execute'(_0x5c3a10){const _0xbe3f6a=a67_0x2845a7,_0x6d993a=_0x5c3a10[_0xbe3f6a(0xa3)](_0xbe3f6a(0x8f)),_0x30bb3f=await getErBusinessGroupSummary(_0x5c3a10['appCode'],_0x6d993a),_0x39af31=_0x30bb3f[_0xbe3f6a(0x9c)][_0xbe3f6a(0x95)](_0x5c61c5=>({..._0x5c61c5,'businessGroup':_0x5c61c5[_0xbe3f6a(0x92)]['trim']()||_0xbe3f6a(0x8e)}));return{'ok':!![],'data':{..._0x30bb3f,'groups':_0x39af31,'scope':_0xbe3f6a(0x8c)},'message':_0xbe3f6a(0x91)+_0x39af31[_0xbe3f6a(0x94)]+_0xbe3f6a(0x8a)+_0x6d993a};}};
1
+ function a67_0x3ec0(){const _0x27c263=['number','appCode','3597424zSUjAd','290deCDQY','22719AjtESp','num','12393alkLJp','groups','\x20business\x20group(s)\x20for\x20database\x20connection\x20','469866fHZQZv','map','read','ungrouped','4481380hVtVpD','86iXIihK','length','24175Wcghty','21lqQpei','dbid','866540xHTahU','DB_TABLE','List\x20DB_TABLE\x20dataset\x20business\x20groups\x20for\x20a\x20database\x20connection;\x20does\x20not\x20include\x20METADATA','businessGroup'];a67_0x3ec0=function(){return _0x27c263;};return a67_0x3ec0();}const a67_0x39f364=a67_0x16be;(function(_0x501777,_0x7790){const _0x4f3a21=a67_0x16be,_0x4dad52=_0x501777();while(!![]){try{const _0x2c9f95=parseInt(_0x4f3a21(0x12e))/0x1+-parseInt(_0x4f3a21(0x12c))/0x2*(parseInt(_0x4f3a21(0x122))/0x3)+parseInt(_0x4f3a21(0x131))/0x4+parseInt(_0x4f3a21(0x12b))/0x5+-parseInt(_0x4f3a21(0x127))/0x6*(-parseInt(_0x4f3a21(0x12f))/0x7)+-parseInt(_0x4f3a21(0x120))/0x8+-parseInt(_0x4f3a21(0x124))/0x9*(-parseInt(_0x4f3a21(0x121))/0xa);if(_0x2c9f95===_0x7790)break;else _0x4dad52['push'](_0x4dad52['shift']());}catch(_0x2985d0){_0x4dad52['push'](_0x4dad52['shift']());}}}(a67_0x3ec0,0x9b6db));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getErBusinessGroupSummary}from'../../core/api-client.js';function a67_0x16be(_0x3f3c7d,_0x212967){_0x3f3c7d=_0x3f3c7d-0x120;const _0x3ec057=a67_0x3ec0();let _0x16be56=_0x3ec057[_0x3f3c7d];return _0x16be56;}export const datasetBusinessGroups={'service':'dataset','command':'business-groups','description':a67_0x39f364(0x133),'risk':a67_0x39f364(0x129),'flags':[{'name':a67_0x39f364(0x130),'type':a67_0x39f364(0x135),'required':!![],'description':'Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)'},APPCODE_FLAG_OPTIONAL],async 'execute'(_0x3d1cc8){const _0x374af1=a67_0x39f364,_0x3081b5=_0x3d1cc8[_0x374af1(0x123)](_0x374af1(0x130)),_0x2369ff=await getErBusinessGroupSummary(_0x3d1cc8[_0x374af1(0x136)],_0x3081b5),_0x54a554=_0x2369ff[_0x374af1(0x125)][_0x374af1(0x128)](_0x277599=>({..._0x277599,'businessGroup':_0x277599[_0x374af1(0x134)]['trim']()||_0x374af1(0x12a)}));return{'ok':!![],'data':{..._0x2369ff,'groups':_0x54a554,'scope':_0x374af1(0x132)},'message':'Found\x20'+_0x54a554[_0x374af1(0x12d)]+_0x374af1(0x126)+_0x3081b5};}};
@@ -1 +1 @@
1
- const a68_0x10666e=a68_0x1cc7;(function(_0x474f3e,_0x364e27){const _0x475611=a68_0x1cc7,_0x5e3098=_0x474f3e();while(!![]){try{const _0x1fb4a7=-parseInt(_0x475611(0x104))/0x1*(-parseInt(_0x475611(0x117))/0x2)+parseInt(_0x475611(0x119))/0x3*(-parseInt(_0x475611(0xff))/0x4)+parseInt(_0x475611(0x116))/0x5*(parseInt(_0x475611(0xfc))/0x6)+parseInt(_0x475611(0x101))/0x7+parseInt(_0x475611(0x10e))/0x8*(-parseInt(_0x475611(0x100))/0x9)+parseInt(_0x475611(0x118))/0xa+-parseInt(_0x475611(0xf9))/0xb*(parseInt(_0x475611(0x10c))/0xc);if(_0x1fb4a7===_0x364e27)break;else _0x5e3098['push'](_0x5e3098['shift']());}catch(_0x10d13d){_0x5e3098['push'](_0x5e3098['shift']());}}}(a68_0x4514,0xb2d32));import{CliErrors}from'../../errors.js';export const RUNTIME_DATA_ACCESS_COMMANDS={'cli':'lovrabet','filter':a68_0x10666e(0x112),'getOne':a68_0x10666e(0xf8)};export const RUNTIME_DATA_ACCESS_SUMMARY=a68_0x10666e(0x10f);function valueToString(_0x37b3c1){return _0x37b3c1==null?'':String(_0x37b3c1)['trim']();}function getDatasetCode(_0x1e909b){const _0x1e3944=a68_0x10666e;return valueToString(_0x1e909b[_0x1e3944(0xfd)]??_0x1e909b['modelCode']??_0x1e909b[_0x1e3944(0xfe)]?.[_0x1e3944(0xfa)]);}function getDatasetName(_0x25d6c0){const _0x3d70be=a68_0x10666e;return valueToString(_0x25d6c0['name']??_0x25d6c0['dataset']?.[_0x3d70be(0x107)])||'unknown';}function getDatasetSource(_0x48bc2e){const _0x36d409=a68_0x10666e;return valueToString(_0x48bc2e[_0x36d409(0x10a)]??_0x48bc2e[_0x36d409(0xfe)]?.[_0x36d409(0x103)])[_0x36d409(0x108)]();}function getDbtableConfig(_0x29d80d){const _0x5be100=a68_0x10666e,_0x44c1d9=_0x29d80d[_0x5be100(0xf6)]??_0x29d80d[_0x5be100(0x110)];return _0x44c1d9&&typeof _0x44c1d9===_0x5be100(0x10b)?_0x44c1d9:{};}export function isDbTableBackedDataset(_0x55ac63){const _0xa49ec3=a68_0x10666e,_0x31b873=getDatasetSource(_0x55ac63);if(_0x31b873===_0xa49ec3(0x106))return![];const _0x4a5361=getDbtableConfig(_0x55ac63),_0x42108d=_0x4a5361[_0xa49ec3(0x115)]??_0x4a5361['id'],_0x697a8d=valueToString(_0x4a5361[_0xa49ec3(0x10d)]??_0x55ac63['tableName']??_0x55ac63[_0xa49ec3(0xfe)]?.[_0xa49ec3(0x10d)]);return _0x42108d!==undefined&&_0x42108d!==null&&_0x697a8d['length']>0x0;}export function filterDbTableBackedDatasets(_0x32f694){const _0x20c81d=a68_0x10666e;return _0x32f694[_0x20c81d(0x105)](_0x15c3b=>isDbTableBackedDataset(_0x15c3b));}export function buildDbTableBackedRequirementMessage(_0x1cc4ea,_0x5361d0=a68_0x10666e(0x102)){const _0x16eeaa=a68_0x10666e,_0x4e9246=getDatasetSource(_0x1cc4ea)||_0x16eeaa(0x111),_0x587ed3=getDatasetName(_0x1cc4ea),_0x49a22c=getDatasetCode(_0x1cc4ea),_0xb98c99=_0x49a22c?'\x20('+_0x49a22c+')':'';return[_0x16eeaa(0x11b)+_0x587ed3+'\x22'+_0xb98c99+_0x16eeaa(0xf7)+_0x4e9246+_0x16eeaa(0xfb)+_0x5361d0+'.',_0x16eeaa(0x114),'Upgrade\x20or\x20migrate\x20this\x20dataset\x20to\x20a\x20DB_TABLE\x20dataset,\x20then\x20continue\x20with\x20the\x20new\x20dataset\x20code.',_0x16eeaa(0x11a)+RUNTIME_DATA_ACCESS_COMMANDS[_0x16eeaa(0x105)]+';\x20'+RUNTIME_DATA_ACCESS_COMMANDS[_0x16eeaa(0x109)]+'.'][_0x16eeaa(0x113)]('\x20');}function a68_0x4514(){const _0x24160e=['Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.','dbtable','UNKNOWN','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27<json>\x27\x20--format\x20compress','join','Reason:\x20schema\x20introspection\x20and\x20custom\x20SQL\x20require\x20source=DB_TABLE,\x20dbtableConfig.dbId,\x20dbtableConfig.tableName,\x20and\x20a\x20database\x20connection\x20context.','dbId','6215fDeXdb','4SxMXrb','9825210NYBeZE','1785756gzEvys','To\x20inspect\x20real\x20runtime\x20rows,\x20switch\x20to\x20lovrabet\x20CLI:\x20','The\x20current\x20dataset\x20\x22','dbtableConfig','\x20is\x20','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27\x20--format\x20compress','517nTBrdg','datasetCode','\x20and\x20has\x20no\x20DB_TABLE\x20data-source\x20context\x20for\x20','4788uRvofn','code','dataset','8dyyMWC','11810385WlTNYE','7520926plFnRd','SQL\x20schema\x20validation','sourceType','463222CPpmGO','filter','METADATA','datasetName','toUpperCase','getOne','source','object','188952QHlPFK','tableName','8EgifEl'];a68_0x4514=function(){return _0x24160e;};return a68_0x4514();}function a68_0x1cc7(_0x2eda4f,_0x1acd93){_0x2eda4f=_0x2eda4f-0xf6;const _0x4514ad=a68_0x4514();let _0x1cc754=_0x4514ad[_0x2eda4f];return _0x1cc754;}export function assertDatasetIsDbTableBacked(_0x4f2f9d,_0x593080){if(!isDbTableBackedDataset(_0x4f2f9d))throw CliErrors['validation'](buildDbTableBackedRequirementMessage(_0x4f2f9d,_0x593080));}
1
+ const a68_0x5b6e01=a68_0x42c5;function a68_0x42c5(_0x363e2a,_0xe46d2e){_0x363e2a=_0x363e2a-0x1b3;const _0x5b2591=a68_0x5b25();let _0x42c5ca=_0x5b2591[_0x363e2a];return _0x42c5ca;}(function(_0x480312,_0x4aaeab){const _0x4988a5=a68_0x42c5,_0x1bd61b=_0x480312();while(!![]){try{const _0x43e169=-parseInt(_0x4988a5(0x1be))/0x1*(parseInt(_0x4988a5(0x1c1))/0x2)+-parseInt(_0x4988a5(0x1b6))/0x3*(-parseInt(_0x4988a5(0x1bf))/0x4)+parseInt(_0x4988a5(0x1cb))/0x5+parseInt(_0x4988a5(0x1c8))/0x6*(-parseInt(_0x4988a5(0x1b5))/0x7)+parseInt(_0x4988a5(0x1b9))/0x8*(parseInt(_0x4988a5(0x1bb))/0x9)+-parseInt(_0x4988a5(0x1c4))/0xa*(parseInt(_0x4988a5(0x1d3))/0xb)+parseInt(_0x4988a5(0x1d1))/0xc;if(_0x43e169===_0x4aaeab)break;else _0x1bd61b['push'](_0x1bd61b['shift']());}catch(_0x2017b5){_0x1bd61b['push'](_0x1bd61b['shift']());}}}(a68_0x5b25,0xeef50));import{CliErrors}from'../../errors.js';export const RUNTIME_DATA_ACCESS_COMMANDS={'cli':a68_0x5b6e01(0x1c7),'filter':a68_0x5b6e01(0x1ba),'getOne':a68_0x5b6e01(0x1c2)};export const RUNTIME_DATA_ACCESS_SUMMARY='Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.';function valueToString(_0x286d70){return _0x286d70==null?'':String(_0x286d70)['trim']();}function getDatasetCode(_0x4e926e){const _0x45c1e9=a68_0x5b6e01;return valueToString(_0x4e926e[_0x45c1e9(0x1b7)]??_0x4e926e[_0x45c1e9(0x1d0)]??_0x4e926e['dataset']?.[_0x45c1e9(0x1cd)]);}function getDatasetName(_0x44336a){const _0x2e59be=a68_0x5b6e01;return valueToString(_0x44336a['name']??_0x44336a[_0x2e59be(0x1ca)]?.[_0x2e59be(0x1cf)])||_0x2e59be(0x1bc);}function getDatasetSource(_0x5c663c){const _0x218517=a68_0x5b6e01;return valueToString(_0x5c663c[_0x218517(0x1b8)]??_0x5c663c['dataset']?.[_0x218517(0x1cc)])[_0x218517(0x1c0)]();}function getDbtableConfig(_0x3268ce){const _0x4434a7=a68_0x5b6e01,_0x4ccb6d=_0x3268ce[_0x4434a7(0x1ce)]??_0x3268ce[_0x4434a7(0x1c3)];return _0x4ccb6d&&typeof _0x4ccb6d==='object'?_0x4ccb6d:{};}export function isDbTableBackedDataset(_0x468ecb){const _0x2c3314=a68_0x5b6e01,_0x1c23c9=getDatasetSource(_0x468ecb);if(_0x1c23c9==='METADATA')return![];const _0x32fd19=getDbtableConfig(_0x468ecb),_0xe09b5a=_0x32fd19['dbId']??_0x32fd19['id'],_0x21ca77=valueToString(_0x32fd19[_0x2c3314(0x1b4)]??_0x468ecb[_0x2c3314(0x1b4)]??_0x468ecb['dataset']?.['tableName']);return _0xe09b5a!==undefined&&_0xe09b5a!==null&&_0x21ca77['length']>0x0;}function a68_0x5b25(){const _0x14d200=['datasetCode','dbtableConfig','datasetName','modelCode','25462404iGDNNt','validation','5080801RqrlTS','\x20and\x20has\x20no\x20DB_TABLE\x20data-source\x20context\x20for\x20','tableName','132636yxOsVm','33WeaAGa','code','source','241608FdnCsg','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27<json>\x27\x20--format\x20compress','387fiGtLP','unknown','\x20is\x20','194781fIgxwT','234004aKkhuK','toUpperCase','12mUFaID','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27\x20--format\x20compress','dbtable','10GbnByQ','filter','The\x20current\x20dataset\x20\x22','lovrabet','582crvjDm','To\x20inspect\x20real\x20runtime\x20rows,\x20switch\x20to\x20lovrabet\x20CLI:\x20','dataset','1916400QTgFOR','sourceType'];a68_0x5b25=function(){return _0x14d200;};return a68_0x5b25();}export function filterDbTableBackedDatasets(_0x57f13b){const _0x15bf1c=a68_0x5b6e01;return _0x57f13b[_0x15bf1c(0x1c5)](_0x4941b2=>isDbTableBackedDataset(_0x4941b2));}export function buildDbTableBackedRequirementMessage(_0x66c2bf,_0x2a0de5='SQL\x20schema\x20validation'){const _0x33919a=a68_0x5b6e01,_0x6114dd=getDatasetSource(_0x66c2bf)||'UNKNOWN',_0x4adee3=getDatasetName(_0x66c2bf),_0x2127cf=getDatasetCode(_0x66c2bf),_0xb8537f=_0x2127cf?'\x20('+_0x2127cf+')':'';return[_0x33919a(0x1c6)+_0x4adee3+'\x22'+_0xb8537f+_0x33919a(0x1bd)+_0x6114dd+_0x33919a(0x1b3)+_0x2a0de5+'.','Reason:\x20schema\x20introspection\x20and\x20custom\x20SQL\x20require\x20source=DB_TABLE,\x20dbtableConfig.dbId,\x20dbtableConfig.tableName,\x20and\x20a\x20database\x20connection\x20context.','Upgrade\x20or\x20migrate\x20this\x20dataset\x20to\x20a\x20DB_TABLE\x20dataset,\x20then\x20continue\x20with\x20the\x20new\x20dataset\x20code.',_0x33919a(0x1c9)+RUNTIME_DATA_ACCESS_COMMANDS[_0x33919a(0x1c5)]+';\x20'+RUNTIME_DATA_ACCESS_COMMANDS['getOne']+'.']['join']('\x20');}export function assertDatasetIsDbTableBacked(_0x2af058,_0xcc4d75){const _0x2f1a92=a68_0x5b6e01;if(!isDbTableBackedDataset(_0x2af058))throw CliErrors[_0x2f1a92(0x1d2)](buildDbTableBackedRequirementMessage(_0x2af058,_0xcc4d75));}
@@ -1 +1 @@
1
- const a69_0x4f63c5=a69_0x3fb4;(function(_0x4f73b1,_0x388bf6){const _0x1e312c=a69_0x3fb4,_0x392f41=_0x4f73b1();while(!![]){try{const _0xd54c1d=-parseInt(_0x1e312c(0x1ee))/0x1+-parseInt(_0x1e312c(0x1f1))/0x2*(parseInt(_0x1e312c(0x1f0))/0x3)+-parseInt(_0x1e312c(0x1ef))/0x4+-parseInt(_0x1e312c(0x1f6))/0x5+-parseInt(_0x1e312c(0x1f4))/0x6*(parseInt(_0x1e312c(0x1f3))/0x7)+parseInt(_0x1e312c(0x1f2))/0x8+parseInt(_0x1e312c(0x1ed))/0x9;if(_0xd54c1d===_0x388bf6)break;else _0x392f41['push'](_0x392f41['shift']());}catch(_0x1e5312){_0x392f41['push'](_0x392f41['shift']());}}}(a69_0x4dc5,0xb086d));import{createCrossDbRelation}from'../../core/api-client.js';function a69_0x3fb4(_0x4df1a1,_0x208c72){_0x4df1a1=_0x4df1a1-0x1ed;const _0x4dc51c=a69_0x4dc5();let _0x3fb468=_0x4dc51c[_0x4df1a1];return _0x3fb468;}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_0x4dc5(){const _0x581bbe=['26337MoIQHf','26MQaDJt','3104840oUawtm','67333CnNWgo','852WWbzUr','create','2177370xDstnc','dataset','write','33060519PggSoL','902822eNAQVG','2080488FZBaNn'];a69_0x4dc5=function(){return _0x581bbe;};return a69_0x4dc5();}export const datasetCrossRelationCreate={'service':a69_0x4f63c5(0x1f7),'command':'cross-relation-create','description':'Create\x20a\x20logical\x20relation\x20between\x20DB_TABLE\x20datasets\x20in\x20different\x20database\x20connections','risk':a69_0x4f63c5(0x1f8),'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 _0x4aa200=>validateCrossRelation(_0x4aa200,a69_0x4f63c5(0x1f5)),'dryRun':_0x48a23e=>previewCrossRelation(_0x48a23e,a69_0x4f63c5(0x1f5)),'execute':_0x183dd4=>executeCrossRelation(_0x183dd4,a69_0x4f63c5(0x1f5),createCrossDbRelation)};
1
+ const a69_0x35aef5=a69_0x2657;(function(_0x383963,_0x2cd8ee){const _0x4fbd55=a69_0x2657,_0x85332f=_0x383963();while(!![]){try{const _0x1e0284=-parseInt(_0x4fbd55(0x8e))/0x1+-parseInt(_0x4fbd55(0x8b))/0x2*(parseInt(_0x4fbd55(0x94))/0x3)+-parseInt(_0x4fbd55(0x91))/0x4+-parseInt(_0x4fbd55(0x89))/0x5*(parseInt(_0x4fbd55(0x93))/0x6)+-parseInt(_0x4fbd55(0x8a))/0x7*(parseInt(_0x4fbd55(0x95))/0x8)+parseInt(_0x4fbd55(0x90))/0x9+parseInt(_0x4fbd55(0x92))/0xa;if(_0x1e0284===_0x2cd8ee)break;else _0x85332f['push'](_0x85332f['shift']());}catch(_0x2fb674){_0x85332f['push'](_0x85332f['shift']());}}}(a69_0x568d,0xba00b));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';function a69_0x568d(){const _0x48e58c=['803088ixryiM','3784600LeuLDM','37647930htRHeq','102wGOdGM','6yljGcM','230664prkZeH','29195EFJdco','217IVZJuQ','614794gfmNyF','create','cross-relation-create','538128qLmnnQ','write'];a69_0x568d=function(){return _0x48e58c;};return a69_0x568d();}function a69_0x2657(_0x51ebe6,_0x19a005){_0x51ebe6=_0x51ebe6-0x89;const _0x568d53=a69_0x568d();let _0x26574c=_0x568d53[_0x51ebe6];return _0x26574c;}import{executeCrossRelation,previewCrossRelation,validateCrossRelation}from'../../commands/dataset/cross-relation-shared.js';export const datasetCrossRelationCreate={'service':'dataset','command':a69_0x35aef5(0x8d),'description':'Create\x20a\x20logical\x20relation\x20between\x20DB_TABLE\x20datasets\x20in\x20different\x20database\x20connections','risk':a69_0x35aef5(0x8f),'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 _0x1b2626=>validateCrossRelation(_0x1b2626,a69_0x35aef5(0x8c)),'dryRun':_0x3711b8=>previewCrossRelation(_0x3711b8,'create'),'execute':_0x2dd619=>executeCrossRelation(_0x2dd619,a69_0x35aef5(0x8c),createCrossDbRelation)};
@@ -1 +1 @@
1
- function a70_0x3742(_0x38797c,_0x28a1e9){_0x38797c=_0x38797c-0x68;const _0x230d91=a70_0x230d();let _0x3742b0=_0x230d91[_0x38797c];return _0x3742b0;}const a70_0x1e3346=a70_0x3742;(function(_0x4ebfe5,_0x510123){const _0x2e7d64=a70_0x3742,_0x38f91c=_0x4ebfe5();while(!![]){try{const _0x2e87dc=-parseInt(_0x2e7d64(0x71))/0x1+-parseInt(_0x2e7d64(0x68))/0x2+parseInt(_0x2e7d64(0x74))/0x3+-parseInt(_0x2e7d64(0x6f))/0x4*(-parseInt(_0x2e7d64(0x6b))/0x5)+-parseInt(_0x2e7d64(0x6c))/0x6+-parseInt(_0x2e7d64(0x6e))/0x7*(-parseInt(_0x2e7d64(0x72))/0x8)+parseInt(_0x2e7d64(0x69))/0x9;if(_0x2e87dc===_0x510123)break;else _0x38f91c['push'](_0x38f91c['shift']());}catch(_0xc4426){_0x38f91c['push'](_0x38f91c['shift']());}}}(a70_0x230d,0xebe6e));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_0x230d(){const _0x287d26=['1070462nVngmZ','12943800lzEose','delete','235dZjWAh','249792OQtsvs','high-risk-write','14LaFpVP','22084bCXAlj','dataset','964897GGKPPP','2878640dFSctZ','Delete\x20the\x20single\x20cross-database\x20relation\x20matching\x20a\x20source\x20dataset\x20and\x20field','272001lSbeDI'];a70_0x230d=function(){return _0x287d26;};return a70_0x230d();}export const datasetCrossRelationDelete={'service':a70_0x1e3346(0x70),'command':'cross-relation-delete','description':a70_0x1e3346(0x73),'risk':a70_0x1e3346(0x6d),'strictFlags':!![],'requiresCookieAuth':!![],'structuredErrors':!![],'flags':[CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG,CROSS_RELATION_DBLINK_FLAG,APPCODE_FLAG_OPTIONAL],'validate':async _0x4d36ca=>validateCrossRelation(_0x4d36ca,a70_0x1e3346(0x6a)),'dryRun':_0x2a0aad=>previewCrossRelation(_0x2a0aad,a70_0x1e3346(0x6a)),'execute':_0x212cca=>executeCrossRelation(_0x212cca,a70_0x1e3346(0x6a),deleteCrossDbRelation)};
1
+ function a70_0x317e(_0x5ef45c,_0x5bef1f){_0x5ef45c=_0x5ef45c-0x94;const _0x347e67=a70_0x347e();let _0x317e9f=_0x347e67[_0x5ef45c];return _0x317e9f;}const a70_0x47fdf6=a70_0x317e;(function(_0xc49563,_0x495227){const _0x4abfd4=a70_0x317e,_0xcc3ffc=_0xc49563();while(!![]){try{const _0x1ce7e7=parseInt(_0x4abfd4(0x9d))/0x1*(parseInt(_0x4abfd4(0x9a))/0x2)+-parseInt(_0x4abfd4(0xa0))/0x3*(-parseInt(_0x4abfd4(0x99))/0x4)+parseInt(_0x4abfd4(0x98))/0x5+parseInt(_0x4abfd4(0x94))/0x6*(-parseInt(_0x4abfd4(0xa1))/0x7)+-parseInt(_0x4abfd4(0x9c))/0x8+-parseInt(_0x4abfd4(0x9e))/0x9+-parseInt(_0x4abfd4(0x9b))/0xa*(-parseInt(_0x4abfd4(0x95))/0xb);if(_0x1ce7e7===_0x495227)break;else _0xcc3ffc['push'](_0xcc3ffc['shift']());}catch(_0xfe49c){_0xcc3ffc['push'](_0xcc3ffc['shift']());}}}(a70_0x347e,0xebd9f));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_0x347e(){const _0x302cde=['3477970WZTxzi','2628TMsyFn','2378510REWiwc','20stoeki','11737496wTfMbk','1KRouFK','6088311KgMnTN','dataset','3621dvENeS','20797WdhQnq','1122XqJMGR','5430931PrOOdJ','delete','high-risk-write'];a70_0x347e=function(){return _0x302cde;};return a70_0x347e();}export const datasetCrossRelationDelete={'service':a70_0x47fdf6(0x9f),'command':'cross-relation-delete','description':'Delete\x20the\x20single\x20cross-database\x20relation\x20matching\x20a\x20source\x20dataset\x20and\x20field','risk':a70_0x47fdf6(0x97),'strictFlags':!![],'requiresCookieAuth':!![],'structuredErrors':!![],'flags':[CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG,CROSS_RELATION_DBLINK_FLAG,APPCODE_FLAG_OPTIONAL],'validate':async _0x5109e0=>validateCrossRelation(_0x5109e0,a70_0x47fdf6(0x96)),'dryRun':_0x5109b7=>previewCrossRelation(_0x5109b7,a70_0x47fdf6(0x96)),'execute':_0x439fdb=>executeCrossRelation(_0x439fdb,a70_0x47fdf6(0x96),deleteCrossDbRelation)};
@@ -1 +1 @@
1
- function a71_0x3db0(_0x52fad7,_0x15ae98){_0x52fad7=_0x52fad7-0x1f0;const _0x1d1c4e=a71_0x1d1c();let _0x3db086=_0x1d1c4e[_0x52fad7];return _0x3db086;}const a71_0x94b84c=a71_0x3db0;(function(_0x311b50,_0x9186b3){const _0x1fe585=a71_0x3db0,_0x4a8fdd=_0x311b50();while(!![]){try{const _0x2c471c=parseInt(_0x1fe585(0x201))/0x1*(parseInt(_0x1fe585(0x1f7))/0x2)+-parseInt(_0x1fe585(0x1f2))/0x3+parseInt(_0x1fe585(0x1f4))/0x4*(-parseInt(_0x1fe585(0x1ff))/0x5)+-parseInt(_0x1fe585(0x200))/0x6+parseInt(_0x1fe585(0x1f8))/0x7+parseInt(_0x1fe585(0x1f1))/0x8*(parseInt(_0x1fe585(0x1f9))/0x9)+-parseInt(_0x1fe585(0x1f0))/0xa*(-parseInt(_0x1fe585(0x1f3))/0xb);if(_0x2c471c===_0x9186b3)break;else _0x4a8fdd['push'](_0x4a8fdd['shift']());}catch(_0x346955){_0x4a8fdd['push'](_0x4a8fdd['shift']());}}}(a71_0x1d1c,0xd4c57));function a71_0x1d1c(){const _0x5342b7=['3300630oXWdyk','326936dHYxHl','20IhRbxj','11544oAWbQd','4195146EPRKfc','4772405fVhRii','906148vrvDBP','map','appCode','2HwSiKZ','10609298RocybS','7749EExMsG','length','\x20relation(s)','list','Cross-database\x20relations:\x20','dataset','25rjEtgy'];a71_0x1d1c=function(){return _0x5342b7;};return a71_0x1d1c();}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';export const datasetCrossRelationList={'service':a71_0x94b84c(0x1fe),'command':'cross-relation-list','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 _0x4fc01a=>validateCrossRelation(_0x4fc01a,a71_0x94b84c(0x1fc)),async 'execute'(_0x4b4ed3){const _0x247e66=a71_0x94b84c,_0x1a7e92=await resolveCrossRelationQuery(_0x4b4ed3),_0x324d0c=await queryCrossDbRelations(_0x1a7e92);return{'ok':!![],'data':{'appCode':_0x4b4ed3[_0x247e66(0x1f6)],'selector':_0x1a7e92,'total':_0x324d0c[_0x247e66(0x1fa)],'relations':_0x324d0c[_0x247e66(0x1f5)](projectCrossRelation)},'message':_0x247e66(0x1fd)+_0x324d0c['length']+_0x247e66(0x1fb)};}};
1
+ function a71_0x1af9(_0x50c079,_0x3624e4){_0x50c079=_0x50c079-0x1d8;const _0x351d3d=a71_0x351d();let _0x1af9f8=_0x351d3d[_0x50c079];return _0x1af9f8;}const a71_0xa02975=a71_0x1af9;function a71_0x351d(){const _0x4b531a=['list','10840rOXtmy','\x20relation(s)','read','Cross-database\x20relations:\x20','938356eWTZDS','2958360CPBDJn','length','6myKfXF','1252235Fxlpgy','1334872ggYfUa','2033787AnwNYL','16inBtdf','531FmJEIx','appCode','2224206qKztSM'];a71_0x351d=function(){return _0x4b531a;};return a71_0x351d();}(function(_0x1374df,_0x2bf82b){const _0x246f49=a71_0x1af9,_0x44a72f=_0x1374df();while(!![]){try{const _0x102f95=parseInt(_0x246f49(0x1e5))/0x1+parseInt(_0x246f49(0x1e0))/0x2*(parseInt(_0x246f49(0x1e3))/0x3)+-parseInt(_0x246f49(0x1e1))/0x4+parseInt(_0x246f49(0x1e4))/0x5+-parseInt(_0x246f49(0x1da))/0x6+parseInt(_0x246f49(0x1e6))/0x7*(-parseInt(_0x246f49(0x1e7))/0x8)+-parseInt(_0x246f49(0x1d8))/0x9*(parseInt(_0x246f49(0x1dc))/0xa);if(_0x102f95===_0x2bf82b)break;else _0x44a72f['push'](_0x44a72f['shift']());}catch(_0x219ad0){_0x44a72f['push'](_0x44a72f['shift']());}}}(a71_0x351d,0xbb95a));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';export const datasetCrossRelationList={'service':'dataset','command':'cross-relation-list','description':'List\x20outgoing\x20cross-database\x20relations\x20by\x20source\x20dataset\x20or\x20database\x20connection','risk':a71_0xa02975(0x1de),'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 _0x1cd2f0=>validateCrossRelation(_0x1cd2f0,a71_0xa02975(0x1db)),async 'execute'(_0x987019){const _0x36e7a9=a71_0xa02975,_0x1cb3a8=await resolveCrossRelationQuery(_0x987019),_0x2195ae=await queryCrossDbRelations(_0x1cb3a8);return{'ok':!![],'data':{'appCode':_0x987019[_0x36e7a9(0x1d9)],'selector':_0x1cb3a8,'total':_0x2195ae['length'],'relations':_0x2195ae['map'](projectCrossRelation)},'message':_0x36e7a9(0x1df)+_0x2195ae[_0x36e7a9(0x1e2)]+_0x36e7a9(0x1dd)};}};
@@ -1 +1 @@
1
- const a72_0x107bd7=a72_0x1733;(function(_0x57f14b,_0x4f9407){const _0x3e6dd7=a72_0x1733,_0x52c57c=_0x57f14b();while(!![]){try{const _0x1e4b74=-parseInt(_0x3e6dd7(0x8f))/0x1*(parseInt(_0x3e6dd7(0xa2))/0x2)+-parseInt(_0x3e6dd7(0xd1))/0x3*(-parseInt(_0x3e6dd7(0xb1))/0x4)+-parseInt(_0x3e6dd7(0xc4))/0x5*(parseInt(_0x3e6dd7(0xc5))/0x6)+parseInt(_0x3e6dd7(0x84))/0x7*(-parseInt(_0x3e6dd7(0x81))/0x8)+-parseInt(_0x3e6dd7(0xb5))/0x9+parseInt(_0x3e6dd7(0xb2))/0xa+parseInt(_0x3e6dd7(0x7c))/0xb;if(_0x1e4b74===_0x4f9407)break;else _0x52c57c['push'](_0x52c57c['shift']());}catch(_0x17c3a6){_0x52c57c['push'](_0x52c57c['shift']());}}}(a72_0x40c1,0xd3c76));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';function a72_0x40c1(){const _0x36b4ac=['fromDblinkId','from-dblink-id','fromTableName','fromField','data','\x20is\x20missing\x20its\x20database\x20connection\x20or\x20physical\x20table\x20name.','\x20a\x20cross-database\x20relation\x20for\x20','9HWVcRA','Invalid\x20--cardinality.','to-label-column','Would\x20','toDatasetName','dblinkId','relationId','POST','enum','relationType','cardinality','catch','table','defineProperty','toField','dbtable','datasetCode','--from-dblink-id\x20does\x20not\x20match\x20the\x20source\x20dataset\x20connection.','before','211274OVwwoC','trim','expectedLabel','DB_TABLE','string','dataset','tableName','dbtableConfig','toDblinkId','expectedCardinality','body','\x20has\x20invalid\x20storage\x20configuration.','includes','\x20must\x20be\x20a\x20DB_TABLE\x20dataset.','refTableLabelName','1712WDOHGZ','274720XbcEdb','Cross-database\x20relation\x20','storageProfile','2448009KcYEcL','Multiple\x20cross-database\x20relations\x20match\x20this\x20source\x20field;\x20update/delete\x20cannot\x20select\x20one\x20target.','appCode','toTableName','length','Cross-database\x20relation\x20not\x20found\x20for\x20this\x20source\x20dataset\x20and\x20field.','message','apiError','matched','some','isSafeInteger','\x20verified.','list','from','fromDatasetCode','75aAiSfn','356244uQHBCo','toLowerCase','to-datasetcode','Cross-database\x20relations\x20require\x20different\x20source\x20and\x20target\x20database\x20connections.','--from-dblink-id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','extend','map','multiple\x20cross-database\x20relations\x20matched','parse','Run\x20dataset\x20cross-relation-list\x20to\x20inspect\x20the\x20candidates.\x20This\x20command\x20accepts\x20only\x20a\x20source\x20dataset\x20and\x20field.','dbId','flagMissing','11787IhIUJz','delete','from-datasetcode','source','Provide\x20--from-datasetcode\x20or\x20--from-dblink-id.','\x20write\x20was\x20not\x20verified.','unconfirmed','create','24870087TRSRHh','validation','fromDatasetName','Cross-database\x20relation\x20already\x20exists\x20for\x20these\x20source\x20and\x20target\x20endpoints.','Dataset\x20','17704pswgUf','from-column','query','3129ddSVza','to-column','label_inherited','str'];a72_0x40c1=function(){return _0x36b4ac;};return a72_0x40c1();}import{CROSS_RELATION_CARDINALITY_FLAG}from'../../commands/common/flags.js';function required(_0x5f3b13,_0x421bbc){const _0x3651d2=a72_0x1733,_0x40d5ae=_0x5f3b13[_0x3651d2(0x87)](_0x421bbc)[_0x3651d2(0xa3)]();if(!_0x40d5ae)throw CliErrors[_0x3651d2(0xd0)](_0x421bbc);return _0x40d5ae;}function explicitDblink(_0x35e8bb){const _0x211992=a72_0x1733,_0x1338b6=_0x35e8bb['flag'](_0x211992(0x89));if(_0x1338b6===undefined||_0x1338b6===null)return undefined;const _0x44dc74=Number(_0x1338b6);if(!Number[_0x211992(0xbf)](_0x44dc74)||_0x44dc74<=0x0)throw CliErrors[_0x211992(0x7d)](_0x211992(0xc9));return _0x44dc74;}export function validateCrossRelation(_0x5bf8b6,_0x1613bb){const _0x1bd0fd=a72_0x1733,_0x5b0d92=explicitDblink(_0x5bf8b6);if(_0x1613bb===_0x1bd0fd(0xc1)){if(!_0x5bf8b6[_0x1bd0fd(0x87)](_0x1bd0fd(0x76))[_0x1bd0fd(0xa3)]()&&_0x5b0d92===undefined)throw CliErrors['validation'](_0x1bd0fd(0x78));return;}required(_0x5bf8b6,_0x1bd0fd(0x76)),required(_0x5bf8b6,_0x1bd0fd(0x82));if(_0x1613bb!==_0x1bd0fd(0x75)){required(_0x5bf8b6,_0x1bd0fd(0xc7)),required(_0x5bf8b6,_0x1bd0fd(0x85));const _0x355eff=_0x5bf8b6[_0x1bd0fd(0x87)]('cardinality')['trim']();if(_0x355eff&&!CROSS_RELATION_CARDINALITY_FLAG[_0x1bd0fd(0x97)][_0x1bd0fd(0xae)](_0x355eff))throw CliErrors[_0x1bd0fd(0x7d)](_0x1bd0fd(0x90));}}async function resolveEndpoint(_0xc8f956){const _0x40564d=a72_0x1733,_0x2dc884=await getDatasetDetail(_0xc8f956),_0x43b1bf=_0x2dc884?.[_0x40564d(0xa7)]??{};if((_0x2dc884?.[_0x40564d(0x77)]??_0x43b1bf['sourceType'])!==_0x40564d(0xa5))throw CliErrors[_0x40564d(0x7d)]('Dataset\x20'+_0xc8f956+_0x40564d(0xaf));const _0x23327b=_0x2dc884[_0x40564d(0xa9)]??_0x2dc884[_0x40564d(0x9e)]??{};let _0x531e0d=_0x2dc884[_0x40564d(0xca)]??_0x43b1bf['extend']??{};if(typeof _0x531e0d===_0x40564d(0xa6))try{_0x531e0d=_0x531e0d[_0x40564d(0xa3)]()?JSON[_0x40564d(0xcd)](_0x531e0d):{};}catch{throw CliErrors[_0x40564d(0x7d)](_0x40564d(0x80)+_0xc8f956+_0x40564d(0xad));}const _0x324295=Number(_0x531e0d?.[_0x40564d(0xb4)]?.[_0x40564d(0xcf)]??_0x2dc884[_0x40564d(0xb4)]?.['dbId']??_0x43b1bf[_0x40564d(0xb4)]?.['dbId']??_0x23327b[_0x40564d(0xcf)]??_0x43b1bf[_0x40564d(0xcf)]??_0x2dc884['dbId']),_0x3a573b=String(_0x2dc884[_0x40564d(0xa8)]??_0x43b1bf[_0x40564d(0xa8)]??_0x23327b[_0x40564d(0xa8)]??'')[_0x40564d(0xa3)]();if(!Number[_0x40564d(0xbf)](_0x324295)||_0x324295<=0x0||!_0x3a573b)throw CliErrors[_0x40564d(0x7d)](_0x40564d(0x80)+_0xc8f956+_0x40564d(0x8d));return{'datasetCode':_0xc8f956,'dblinkId':_0x324295,'table':_0x3a573b};}export async function resolveCrossRelationQuery(_0x4a9fcb){const _0x50df0a=a72_0x1733,_0x5db7d9=_0x4a9fcb[_0x50df0a(0x87)](_0x50df0a(0x76))[_0x50df0a(0xa3)](),_0x2bdcb2=explicitDblink(_0x4a9fcb),_0x4ad5a4=_0x5db7d9?await resolveEndpoint(_0x5db7d9):undefined;if(_0x4ad5a4&&_0x2bdcb2!==undefined&&_0x4ad5a4[_0x50df0a(0x94)]!==_0x2bdcb2)throw CliErrors[_0x50df0a(0x7d)]('--from-dblink-id\x20does\x20not\x20match\x20the\x20source\x20dataset\x20connection.');const _0x33c3dc=_0x4ad5a4?.[_0x50df0a(0x94)]??_0x2bdcb2;if(_0x33c3dc===undefined)throw CliErrors[_0x50df0a(0x7d)]('Provide\x20--from-datasetcode\x20or\x20--from-dblink-id.');return{'appCode':_0x4a9fcb[_0x50df0a(0xb7)],'fromDblinkId':_0x33c3dc,..._0x5db7d9?{'fromDatasetCode':_0x5db7d9}:{},..._0x4a9fcb['str'](_0x50df0a(0x82))[_0x50df0a(0xa3)]()?{'fromField':_0x4a9fcb[_0x50df0a(0x87)](_0x50df0a(0x82))[_0x50df0a(0xa3)]()}:{}};}export function projectCrossRelation(_0x6dc410){const _0x1cd7ac=a72_0x1733;return{'relationId':_0x6dc410[_0x1cd7ac(0x95)],'from':{'source':_0x1cd7ac(0xa5),'datasetCode':_0x6dc410[_0x1cd7ac(0xc3)],'datasetName':_0x6dc410[_0x1cd7ac(0x7e)],'dblinkId':_0x6dc410['fromDblinkId'],'table':_0x6dc410[_0x1cd7ac(0x8a)],'field':_0x6dc410['fromField']},'to':{'source':'DB_TABLE','datasetCode':_0x6dc410['toDatasetCode'],'datasetName':_0x6dc410[_0x1cd7ac(0x93)],'dblinkId':_0x6dc410[_0x1cd7ac(0xaa)],'table':_0x6dc410[_0x1cd7ac(0xb8)],'field':_0x6dc410[_0x1cd7ac(0x9d)],'labelField':_0x6dc410[_0x1cd7ac(0xb0)]},'relation':{'cardinality':_0x6dc410[_0x1cd7ac(0x99)],'relationType':_0x6dc410[_0x1cd7ac(0x98)]}};}function ambiguity(_0x15bcfd){const _0x2441df=a72_0x1733,_0x2c3c5b=CliErrors['validation'](_0x2441df(0xb6),_0x2441df(0xce));return Object[_0x2441df(0x9c)](_0x2c3c5b,_0x2441df(0x8c),{'value':{'candidates':_0x15bcfd['map'](projectCrossRelation)}}),_0x2c3c5b;}const sameName=(_0x2c0e7f,_0x441ac3)=>_0x2c0e7f[a72_0x107bd7(0xc6)]()===_0x441ac3['toLowerCase']();function a72_0x1733(_0x343a96,_0x865b95){_0x343a96=_0x343a96-0x75;const _0x40c1b5=a72_0x40c1();let _0x17336f=_0x40c1b5[_0x343a96];return _0x17336f;}function matchesEndpoint(_0x4d5773,_0x10fcea,_0x1bc6db,_0x1b6e24,_0x209bad){const _0x2820d6=a72_0x107bd7;return _0x4d5773[_0x2820d6(0x88)]===_0x10fcea[_0x2820d6(0x94)]&&sameName(_0x4d5773[_0x2820d6(0x8a)],_0x10fcea[_0x2820d6(0x9b)])&&sameName(_0x4d5773[_0x2820d6(0x8b)],_0x1bc6db)&&_0x4d5773[_0x2820d6(0xaa)]===_0x1b6e24[_0x2820d6(0x94)]&&sameName(_0x4d5773[_0x2820d6(0xb8)],_0x1b6e24['table'])&&sameName(_0x4d5773[_0x2820d6(0x9d)],_0x209bad);}export async function prepareCrossRelation(_0x424770,_0x5d15bd){const _0x7f7fbd=a72_0x107bd7,_0x1257e4=await resolveEndpoint(required(_0x424770,'from-datasetcode')),_0x62995b=explicitDblink(_0x424770);if(_0x62995b!==undefined&&_0x1257e4[_0x7f7fbd(0x94)]!==_0x62995b)throw CliErrors[_0x7f7fbd(0x7d)](_0x7f7fbd(0xa0));const _0x3cedab={'appCode':_0x424770[_0x7f7fbd(0xb7)],'fromDatasetCode':_0x1257e4[_0x7f7fbd(0x9f)],'fromField':required(_0x424770,_0x7f7fbd(0x82)),..._0x62995b!==undefined?{'fromDblinkId':_0x62995b}:{}},_0x3c33f1={'appCode':_0x424770[_0x7f7fbd(0xb7)],'fromDblinkId':_0x1257e4[_0x7f7fbd(0x94)],'fromDatasetCode':_0x1257e4[_0x7f7fbd(0x9f)],'fromField':_0x3cedab[_0x7f7fbd(0x8b)]},_0x44875a=await queryCrossDbRelations(_0x3c33f1);let _0xced112=null;if(_0x5d15bd!==_0x7f7fbd(0x7b)){if(_0x44875a['length']>0x1)throw ambiguity(_0x44875a);_0xced112=_0x44875a[0x0]??null;if(!_0xced112)throw CliErrors[_0x7f7fbd(0x7d)](_0x7f7fbd(0xba));}if(_0x5d15bd===_0x7f7fbd(0x75))return{'operation':_0x5d15bd,'from':_0x1257e4,'query':_0x3c33f1,'body':_0x3cedab,'before':_0xced112};const _0x3178b5=await resolveEndpoint(required(_0x424770,_0x7f7fbd(0xc7)));if(_0x1257e4[_0x7f7fbd(0x94)]===_0x3178b5['dblinkId'])throw CliErrors['validation'](_0x7f7fbd(0xc8));const _0x1dbfc7=_0x424770[_0x7f7fbd(0x87)](_0x7f7fbd(0x91))[_0x7f7fbd(0xa3)](),_0x1cd7b9=_0x424770[_0x7f7fbd(0x87)](_0x7f7fbd(0x99))['trim'](),_0x59d5f1={..._0x3cedab,'toDatasetCode':_0x3178b5[_0x7f7fbd(0x9f)],'toField':required(_0x424770,_0x7f7fbd(0x85)),..._0x1dbfc7?{'refTableLabelName':_0x1dbfc7}:{},..._0x1cd7b9?{'cardinality':_0x1cd7b9}:{}};if(_0x44875a[_0x7f7fbd(0xbe)](_0x54e1a5=>_0x54e1a5['relationId']!==_0xced112?.[_0x7f7fbd(0x95)]&&matchesEndpoint(_0x54e1a5,_0x1257e4,_0x59d5f1[_0x7f7fbd(0x8b)],_0x3178b5,_0x59d5f1[_0x7f7fbd(0x9d)])))throw CliErrors[_0x7f7fbd(0x7d)](_0x7f7fbd(0x7f));return{'operation':_0x5d15bd,'from':_0x1257e4,'to':_0x3178b5,'query':_0x3c33f1,'body':_0x59d5f1,'before':_0xced112,'expectedLabel':_0x1dbfc7||_0xced112?.[_0x7f7fbd(0xb0)]||_0x59d5f1[_0x7f7fbd(0x9d)],'expectedCardinality':_0x1cd7b9||_0xced112?.['cardinality']||null};}function mutationData(_0x1cc994,_0x3afd1c,_0x53c96d){const _0x40136d=a72_0x107bd7,{operation:_0x34883b,body:_0x71cec3,before:_0x237e1f}=_0x1cc994;return{'operation':_0x34883b,'selector':{'appCode':_0x71cec3[_0x40136d(0xb7)],'from':{'datasetCode':_0x71cec3[_0x40136d(0xc3)],'field':_0x71cec3['fromField'],'dblinkId':_0x1cc994[_0x40136d(0xc2)][_0x40136d(0x94)]}},'before':_0x237e1f?projectCrossRelation(_0x237e1f):null,'after':_0x53c96d,'dryRun':_0x3afd1c,'backend':{'method':_0x40136d(0x96),'path':CROSS_DB_RELATION_PATHS[_0x34883b]},'warnings':_0x34883b==='update'&&!_0x71cec3['refTableLabelName']?[{'code':_0x40136d(0x86),'message':'The\x20target\x20display\x20field\x20is\x20inherited.\x20When\x20changing\x20the\x20target\x20dataset,\x20provide\x20--to-label-column\x20explicitly.'}]:[]};}export async function previewCrossRelation(_0x3b2403,_0x2460ee){const _0x20933d=a72_0x107bd7,_0xc5ee0f=await prepareCrossRelation(_0x3b2403,_0x2460ee),_0x26dd0d=_0xc5ee0f['body'],_0x2b5f8b=_0x2460ee==='delete'?null:{..._0xc5ee0f[_0x20933d(0xa1)]?{'relationId':_0xc5ee0f[_0x20933d(0xa1)][_0x20933d(0x95)]}:{},'from':{'datasetCode':_0xc5ee0f[_0x20933d(0xc2)][_0x20933d(0x9f)],'dblinkId':_0xc5ee0f['from']['dblinkId'],'table':_0xc5ee0f[_0x20933d(0xc2)][_0x20933d(0x9b)],'field':_0x26dd0d['fromField']},'to':{'datasetCode':_0xc5ee0f['to']['datasetCode'],'dblinkId':_0xc5ee0f['to'][_0x20933d(0x94)],'table':_0xc5ee0f['to'][_0x20933d(0x9b)],'field':_0x26dd0d['toField'],'labelField':_0xc5ee0f[_0x20933d(0xa4)]},'relation':{'cardinality':_0xc5ee0f[_0x20933d(0xab)],'relationType':0x2}};return{...mutationData(_0xc5ee0f,!![],null),'after':_0x2b5f8b,'method':_0x20933d(0x96),'url':CROSS_DB_RELATION_PATHS[_0x2460ee],'body':_0xc5ee0f[_0x20933d(0xac)],'description':_0x20933d(0x92)+_0x2460ee+_0x20933d(0x8e)+_0x26dd0d[_0x20933d(0xc3)]+'.'+_0x26dd0d['fromField']};}export async function executeCrossRelation(_0x3faeb9,_0x10bbb5,_0x1d0961){const _0x4932c9=a72_0x107bd7,_0x36c796=await prepareCrossRelation(_0x3faeb9,_0x10bbb5);try{await _0x1d0961(_0x36c796['body']);}catch(_0x2ddc29){if(_0x2ddc29 instanceof CliError&&_0x2ddc29[_0x4932c9(0xbb)]['includes'](_0x4932c9(0xcc))){const _0x1975c1=await queryCrossDbRelations(_0x36c796[_0x4932c9(0x83)])[_0x4932c9(0x9a)](()=>[]);throw ambiguity(_0x1975c1);}throw _0x2ddc29;}let _0x3780e6=[],_0xaf90de,_0x46e9c4=![];try{_0x3780e6=await queryCrossDbRelations(_0x36c796[_0x4932c9(0x83)]);if(_0x10bbb5===_0x4932c9(0x75))_0x46e9c4=!_0x3780e6[_0x4932c9(0xbe)](_0x3d66ee=>_0x3d66ee[_0x4932c9(0x95)]===_0x36c796['before'][_0x4932c9(0x95)]);else{const _0x4fdf71=_0x36c796[_0x4932c9(0xac)],_0x2ee255=_0x3780e6['filter'](_0x1ab27b=>matchesEndpoint(_0x1ab27b,_0x36c796[_0x4932c9(0xc2)],_0x4fdf71[_0x4932c9(0x8b)],_0x36c796['to'],_0x4fdf71[_0x4932c9(0x9d)])&&(_0x10bbb5===_0x4932c9(0x7b)||_0x1ab27b[_0x4932c9(0x95)]===_0x36c796[_0x4932c9(0xa1)][_0x4932c9(0x95)]));_0xaf90de=_0x2ee255[_0x4932c9(0xb9)]===0x1?_0x2ee255[0x0]:undefined,_0x46e9c4=!!_0xaf90de&&_0xaf90de['refTableLabelName']===_0x36c796['expectedLabel']&&_0xaf90de['cardinality']===_0x36c796[_0x4932c9(0xab)]&&_0xaf90de[_0x4932c9(0x98)]===0x2;}}catch{}const _0x58697c={...mutationData(_0x36c796,![],_0xaf90de?projectCrossRelation(_0xaf90de):null),'verification':{'status':_0x46e9c4?_0x4932c9(0xbd):_0x4932c9(0x7a),'verified':_0x46e9c4}};if(!_0x46e9c4){const _0x4117d6=CliErrors[_0x4932c9(0xbc)](_0x4932c9(0xb3)+_0x10bbb5+_0x4932c9(0x79),'The\x20write\x20was\x20accepted,\x20but\x20current\x20state\x20could\x20not\x20be\x20confirmed.\x20Run\x20dataset\x20cross-relation-list\x20before\x20attempting\x20another\x20write.');Object['defineProperty'](_0x4117d6,_0x4932c9(0x8c),{'value':{..._0x58697c,'candidates':_0x3780e6[_0x4932c9(0xcb)](projectCrossRelation)}});throw _0x4117d6;}return{'ok':!![],'data':_0x58697c,'message':_0x4932c9(0xb3)+_0x10bbb5+_0x4932c9(0xc0)};}
1
+ const a72_0x166e3e=a72_0x321d;(function(_0x552d92,_0x4035a0){const _0x21e5db=a72_0x321d,_0x3021ea=_0x552d92();while(!![]){try{const _0x284ad7=parseInt(_0x21e5db(0x208))/0x1*(-parseInt(_0x21e5db(0x227))/0x2)+-parseInt(_0x21e5db(0x1f9))/0x3+parseInt(_0x21e5db(0x23c))/0x4*(-parseInt(_0x21e5db(0x22c))/0x5)+parseInt(_0x21e5db(0x21e))/0x6*(-parseInt(_0x21e5db(0x216))/0x7)+-parseInt(_0x21e5db(0x232))/0x8*(-parseInt(_0x21e5db(0x1f3))/0x9)+parseInt(_0x21e5db(0x22e))/0xa+-parseInt(_0x21e5db(0x23b))/0xb*(-parseInt(_0x21e5db(0x21d))/0xc);if(_0x284ad7===_0x4035a0)break;else _0x3021ea['push'](_0x3021ea['shift']());}catch(_0xe08fd0){_0x3021ea['push'](_0x3021ea['shift']());}}}(a72_0x1048,0x761d7));function a72_0x321d(_0x3819ad,_0x23ee05){_0x3819ad=_0x3819ad-0x1f3;const _0x104884=a72_0x1048();let _0x321d28=_0x104884[_0x3819ad];return _0x321d28;}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(_0x4d087e,_0x53f54d){const _0x198c93=_0x4d087e['str'](_0x53f54d)['trim']();if(!_0x198c93)throw CliErrors['flagMissing'](_0x53f54d);return _0x198c93;}function explicitDblink(_0x10ff90){const _0x43eb53=a72_0x321d,_0x456427=_0x10ff90[_0x43eb53(0x226)]('from-dblink-id');if(_0x456427===undefined||_0x456427===null)return undefined;const _0x3af663=Number(_0x456427);if(!Number[_0x43eb53(0x246)](_0x3af663)||_0x3af663<=0x0)throw CliErrors[_0x43eb53(0x1fb)](_0x43eb53(0x240));return _0x3af663;}export function validateCrossRelation(_0x18b5a6,_0x25582d){const _0x502643=a72_0x321d,_0x4cd6fd=explicitDblink(_0x18b5a6);if(_0x25582d===_0x502643(0x218)){if(!_0x18b5a6[_0x502643(0x236)](_0x502643(0x228))[_0x502643(0x212)]()&&_0x4cd6fd===undefined)throw CliErrors[_0x502643(0x1fb)](_0x502643(0x200));return;}required(_0x18b5a6,_0x502643(0x228)),required(_0x18b5a6,'from-column');if(_0x25582d!=='delete'){required(_0x18b5a6,_0x502643(0x204)),required(_0x18b5a6,_0x502643(0x20b));const _0x4e5ae0=_0x18b5a6['str']('cardinality')[_0x502643(0x212)]();if(_0x4e5ae0&&!CROSS_RELATION_CARDINALITY_FLAG[_0x502643(0x243)]['includes'](_0x4e5ae0))throw CliErrors[_0x502643(0x1fb)]('Invalid\x20--cardinality.');}}async function resolveEndpoint(_0xd35af4){const _0x63ffc0=a72_0x321d,_0x2b3ab0=await getDatasetDetail(_0xd35af4),_0x5096cc=_0x2b3ab0?.[_0x63ffc0(0x219)]??{};if((_0x2b3ab0?.[_0x63ffc0(0x221)]??_0x5096cc[_0x63ffc0(0x248)])!=='DB_TABLE')throw CliErrors[_0x63ffc0(0x1fb)](_0x63ffc0(0x23f)+_0xd35af4+_0x63ffc0(0x20f));const _0x185101=_0x2b3ab0['dbtableConfig']??_0x2b3ab0[_0x63ffc0(0x24a)]??{};let _0x4f9374=_0x2b3ab0[_0x63ffc0(0x1fd)]??_0x5096cc['extend']??{};if(typeof _0x4f9374===_0x63ffc0(0x21f))try{_0x4f9374=_0x4f9374[_0x63ffc0(0x212)]()?JSON[_0x63ffc0(0x20d)](_0x4f9374):{};}catch{throw CliErrors[_0x63ffc0(0x1fb)](_0x63ffc0(0x23f)+_0xd35af4+_0x63ffc0(0x1f8));}const _0x3bbfc8=Number(_0x4f9374?.[_0x63ffc0(0x209)]?.[_0x63ffc0(0x1ff)]??_0x2b3ab0['storageProfile']?.[_0x63ffc0(0x1ff)]??_0x5096cc[_0x63ffc0(0x209)]?.['dbId']??_0x185101[_0x63ffc0(0x1ff)]??_0x5096cc[_0x63ffc0(0x1ff)]??_0x2b3ab0[_0x63ffc0(0x1ff)]),_0x23799a=String(_0x2b3ab0[_0x63ffc0(0x24b)]??_0x5096cc['tableName']??_0x185101['tableName']??'')['trim']();if(!Number[_0x63ffc0(0x246)](_0x3bbfc8)||_0x3bbfc8<=0x0||!_0x23799a)throw CliErrors[_0x63ffc0(0x1fb)]('Dataset\x20'+_0xd35af4+_0x63ffc0(0x233));return{'datasetCode':_0xd35af4,'dblinkId':_0x3bbfc8,'table':_0x23799a};}export async function resolveCrossRelationQuery(_0x54d174){const _0x35d0b9=a72_0x321d,_0x578ddd=_0x54d174['str'](_0x35d0b9(0x228))['trim'](),_0x54a2cb=explicitDblink(_0x54d174),_0x229f39=_0x578ddd?await resolveEndpoint(_0x578ddd):undefined;if(_0x229f39&&_0x54a2cb!==undefined&&_0x229f39[_0x35d0b9(0x247)]!==_0x54a2cb)throw CliErrors[_0x35d0b9(0x1fb)](_0x35d0b9(0x203));const _0x43c895=_0x229f39?.[_0x35d0b9(0x247)]??_0x54a2cb;if(_0x43c895===undefined)throw CliErrors['validation'](_0x35d0b9(0x200));return{'appCode':_0x54d174[_0x35d0b9(0x222)],'fromDblinkId':_0x43c895,..._0x578ddd?{'fromDatasetCode':_0x578ddd}:{},..._0x54d174[_0x35d0b9(0x236)](_0x35d0b9(0x21c))[_0x35d0b9(0x212)]()?{'fromField':_0x54d174['str'](_0x35d0b9(0x21c))[_0x35d0b9(0x212)]()}:{}};}export function projectCrossRelation(_0x208c96){const _0x5c6b18=a72_0x321d;return{'relationId':_0x208c96['relationId'],'from':{'source':_0x5c6b18(0x249),'datasetCode':_0x208c96[_0x5c6b18(0x23d)],'datasetName':_0x208c96[_0x5c6b18(0x1fa)],'dblinkId':_0x208c96[_0x5c6b18(0x202)],'table':_0x208c96[_0x5c6b18(0x1fe)],'field':_0x208c96['fromField']},'to':{'source':'DB_TABLE','datasetCode':_0x208c96['toDatasetCode'],'datasetName':_0x208c96[_0x5c6b18(0x210)],'dblinkId':_0x208c96[_0x5c6b18(0x23e)],'table':_0x208c96[_0x5c6b18(0x217)],'field':_0x208c96['toField'],'labelField':_0x208c96['refTableLabelName']},'relation':{'cardinality':_0x208c96['cardinality'],'relationType':_0x208c96[_0x5c6b18(0x211)]}};}function ambiguity(_0x4b6857){const _0x7b13b=a72_0x321d,_0x436eb6=CliErrors['validation']('Multiple\x20cross-database\x20relations\x20match\x20this\x20source\x20field;\x20update/delete\x20cannot\x20select\x20one\x20target.',_0x7b13b(0x207));return Object[_0x7b13b(0x223)](_0x436eb6,_0x7b13b(0x1f7),{'value':{'candidates':_0x4b6857['map'](projectCrossRelation)}}),_0x436eb6;}const sameName=(_0x21ff57,_0x353fa9)=>_0x21ff57[a72_0x166e3e(0x230)]()===_0x353fa9['toLowerCase']();function matchesEndpoint(_0x59420d,_0x4638fe,_0x8c0ba,_0x530e8a,_0x87956b){const _0x20d178=a72_0x166e3e;return _0x59420d[_0x20d178(0x202)]===_0x4638fe[_0x20d178(0x247)]&&sameName(_0x59420d[_0x20d178(0x1fe)],_0x4638fe[_0x20d178(0x231)])&&sameName(_0x59420d['fromField'],_0x8c0ba)&&_0x59420d[_0x20d178(0x23e)]===_0x530e8a['dblinkId']&&sameName(_0x59420d['toTableName'],_0x530e8a['table'])&&sameName(_0x59420d[_0x20d178(0x20a)],_0x87956b);}export async function prepareCrossRelation(_0x25e003,_0x55d5b9){const _0x571596=a72_0x166e3e,_0x97657a=await resolveEndpoint(required(_0x25e003,'from-datasetcode')),_0x3b0409=explicitDblink(_0x25e003);if(_0x3b0409!==undefined&&_0x97657a[_0x571596(0x247)]!==_0x3b0409)throw CliErrors[_0x571596(0x1fb)](_0x571596(0x203));const _0x4e7920={'appCode':_0x25e003[_0x571596(0x222)],'fromDatasetCode':_0x97657a['datasetCode'],'fromField':required(_0x25e003,_0x571596(0x21c)),..._0x3b0409!==undefined?{'fromDblinkId':_0x3b0409}:{}},_0x420f65={'appCode':_0x25e003[_0x571596(0x222)],'fromDblinkId':_0x97657a[_0x571596(0x247)],'fromDatasetCode':_0x97657a[_0x571596(0x22b)],'fromField':_0x4e7920[_0x571596(0x234)]},_0x4a11f3=await queryCrossDbRelations(_0x420f65);let _0x4af9ac=null;if(_0x55d5b9!==_0x571596(0x1f4)){if(_0x4a11f3[_0x571596(0x242)]>0x1)throw ambiguity(_0x4a11f3);_0x4af9ac=_0x4a11f3[0x0]??null;if(!_0x4af9ac)throw CliErrors[_0x571596(0x1fb)](_0x571596(0x20e));}if(_0x55d5b9===_0x571596(0x241))return{'operation':_0x55d5b9,'from':_0x97657a,'query':_0x420f65,'body':_0x4e7920,'before':_0x4af9ac};const _0x50e266=await resolveEndpoint(required(_0x25e003,_0x571596(0x204)));if(_0x97657a[_0x571596(0x247)]===_0x50e266[_0x571596(0x247)])throw CliErrors['validation'](_0x571596(0x205));const _0x4541d3=_0x25e003['str'](_0x571596(0x224))[_0x571596(0x212)](),_0x1d9571=_0x25e003['str'](_0x571596(0x213))[_0x571596(0x212)](),_0x375e29={..._0x4e7920,'toDatasetCode':_0x50e266[_0x571596(0x22b)],'toField':required(_0x25e003,_0x571596(0x20b)),..._0x4541d3?{'refTableLabelName':_0x4541d3}:{},..._0x1d9571?{'cardinality':_0x1d9571}:{}};if(_0x4a11f3[_0x571596(0x1f6)](_0x37418d=>_0x37418d[_0x571596(0x229)]!==_0x4af9ac?.[_0x571596(0x229)]&&matchesEndpoint(_0x37418d,_0x97657a,_0x375e29[_0x571596(0x234)],_0x50e266,_0x375e29[_0x571596(0x20a)])))throw CliErrors[_0x571596(0x1fb)]('Cross-database\x20relation\x20already\x20exists\x20for\x20these\x20source\x20and\x20target\x20endpoints.');return{'operation':_0x55d5b9,'from':_0x97657a,'to':_0x50e266,'query':_0x420f65,'body':_0x375e29,'before':_0x4af9ac,'expectedLabel':_0x4541d3||_0x4af9ac?.[_0x571596(0x22f)]||_0x375e29[_0x571596(0x20a)],'expectedCardinality':_0x1d9571||_0x4af9ac?.[_0x571596(0x213)]||null};}function mutationData(_0x536515,_0x874b01,_0x102c46){const _0x21aea4=a72_0x166e3e,{operation:_0x23d3e8,body:_0x4658b5,before:_0x372a9a}=_0x536515;return{'operation':_0x23d3e8,'selector':{'appCode':_0x4658b5['appCode'],'from':{'datasetCode':_0x4658b5[_0x21aea4(0x23d)],'field':_0x4658b5['fromField'],'dblinkId':_0x536515[_0x21aea4(0x21a)][_0x21aea4(0x247)]}},'before':_0x372a9a?projectCrossRelation(_0x372a9a):null,'after':_0x102c46,'dryRun':_0x874b01,'backend':{'method':_0x21aea4(0x238),'path':CROSS_DB_RELATION_PATHS[_0x23d3e8]},'warnings':_0x23d3e8==='update'&&!_0x4658b5['refTableLabelName']?[{'code':_0x21aea4(0x21b),'message':_0x21aea4(0x23a)}]:[]};}export async function previewCrossRelation(_0x55815a,_0x197116){const _0x10c018=a72_0x166e3e,_0x3f36ef=await prepareCrossRelation(_0x55815a,_0x197116),_0x42935c=_0x3f36ef[_0x10c018(0x237)],_0x1b6a55=_0x197116===_0x10c018(0x241)?null:{..._0x3f36ef['before']?{'relationId':_0x3f36ef[_0x10c018(0x220)][_0x10c018(0x229)]}:{},'from':{'datasetCode':_0x3f36ef[_0x10c018(0x21a)][_0x10c018(0x22b)],'dblinkId':_0x3f36ef[_0x10c018(0x21a)][_0x10c018(0x247)],'table':_0x3f36ef[_0x10c018(0x21a)][_0x10c018(0x231)],'field':_0x42935c['fromField']},'to':{'datasetCode':_0x3f36ef['to'][_0x10c018(0x22b)],'dblinkId':_0x3f36ef['to'][_0x10c018(0x247)],'table':_0x3f36ef['to'][_0x10c018(0x231)],'field':_0x42935c[_0x10c018(0x20a)],'labelField':_0x3f36ef[_0x10c018(0x244)]},'relation':{'cardinality':_0x3f36ef[_0x10c018(0x206)],'relationType':0x2}};return{...mutationData(_0x3f36ef,!![],null),'after':_0x1b6a55,'method':_0x10c018(0x238),'url':CROSS_DB_RELATION_PATHS[_0x197116],'body':_0x3f36ef[_0x10c018(0x237)],'description':_0x10c018(0x235)+_0x197116+'\x20a\x20cross-database\x20relation\x20for\x20'+_0x42935c['fromDatasetCode']+'.'+_0x42935c['fromField']};}export async function executeCrossRelation(_0x20cef4,_0x2067c6,_0xd7a744){const _0x2e9149=a72_0x166e3e,_0x2e1b27=await prepareCrossRelation(_0x20cef4,_0x2067c6);try{await _0xd7a744(_0x2e1b27['body']);}catch(_0xc38982){if(_0xc38982 instanceof CliError&&_0xc38982[_0x2e9149(0x245)][_0x2e9149(0x214)](_0x2e9149(0x22d))){const _0x3b00b1=await queryCrossDbRelations(_0x2e1b27[_0x2e9149(0x239)])[_0x2e9149(0x1fc)](()=>[]);throw ambiguity(_0x3b00b1);}throw _0xc38982;}let _0x5336fd=[],_0x542afe,_0x120686=![];try{_0x5336fd=await queryCrossDbRelations(_0x2e1b27[_0x2e9149(0x239)]);if(_0x2067c6===_0x2e9149(0x241))_0x120686=!_0x5336fd[_0x2e9149(0x1f6)](_0x1ebde7=>_0x1ebde7[_0x2e9149(0x229)]===_0x2e1b27[_0x2e9149(0x220)][_0x2e9149(0x229)]);else{const _0x2d1a1a=_0x2e1b27[_0x2e9149(0x237)],_0x3c34ba=_0x5336fd[_0x2e9149(0x225)](_0x438d7b=>matchesEndpoint(_0x438d7b,_0x2e1b27[_0x2e9149(0x21a)],_0x2d1a1a['fromField'],_0x2e1b27['to'],_0x2d1a1a['toField'])&&(_0x2067c6===_0x2e9149(0x1f4)||_0x438d7b[_0x2e9149(0x229)]===_0x2e1b27[_0x2e9149(0x220)][_0x2e9149(0x229)]));_0x542afe=_0x3c34ba['length']===0x1?_0x3c34ba[0x0]:undefined,_0x120686=!!_0x542afe&&_0x542afe[_0x2e9149(0x22f)]===_0x2e1b27[_0x2e9149(0x244)]&&_0x542afe['cardinality']===_0x2e1b27['expectedCardinality']&&_0x542afe['relationType']===0x2;}}catch{}const _0x4afefc={...mutationData(_0x2e1b27,![],_0x542afe?projectCrossRelation(_0x542afe):null),'verification':{'status':_0x120686?'matched':_0x2e9149(0x22a),'verified':_0x120686}};if(!_0x120686){const _0x319675=CliErrors[_0x2e9149(0x201)](_0x2e9149(0x215)+_0x2067c6+_0x2e9149(0x20c),_0x2e9149(0x1f5));Object[_0x2e9149(0x223)](_0x319675,_0x2e9149(0x1f7),{'value':{..._0x4afefc,'candidates':_0x5336fd['map'](projectCrossRelation)}});throw _0x319675;}return{'ok':!![],'data':_0x4afefc,'message':_0x2e9149(0x215)+_0x2067c6+'\x20verified.'};}function a72_0x1048(){const _0x1ed7f8=['fromDatasetName','validation','catch','extend','fromTableName','dbId','Provide\x20--from-datasetcode\x20or\x20--from-dblink-id.','apiError','fromDblinkId','--from-dblink-id\x20does\x20not\x20match\x20the\x20source\x20dataset\x20connection.','to-datasetcode','Cross-database\x20relations\x20require\x20different\x20source\x20and\x20target\x20database\x20connections.','expectedCardinality','Run\x20dataset\x20cross-relation-list\x20to\x20inspect\x20the\x20candidates.\x20This\x20command\x20accepts\x20only\x20a\x20source\x20dataset\x20and\x20field.','2RKwcFt','storageProfile','toField','to-column','\x20write\x20was\x20not\x20verified.','parse','Cross-database\x20relation\x20not\x20found\x20for\x20this\x20source\x20dataset\x20and\x20field.','\x20must\x20be\x20a\x20DB_TABLE\x20dataset.','toDatasetName','relationType','trim','cardinality','includes','Cross-database\x20relation\x20','665574xqDnkI','toTableName','list','dataset','from','label_inherited','from-column','14746764pYvAwS','6orSBYf','string','before','source','appCode','defineProperty','to-label-column','filter','flag','608206DEkbeg','from-datasetcode','relationId','unconfirmed','datasetCode','10AJPeba','multiple\x20cross-database\x20relations\x20matched','3944620kjhhxG','refTableLabelName','toLowerCase','table','160RCebWZ','\x20is\x20missing\x20its\x20database\x20connection\x20or\x20physical\x20table\x20name.','fromField','Would\x20','str','body','POST','query','The\x20target\x20display\x20field\x20is\x20inherited.\x20When\x20changing\x20the\x20target\x20dataset,\x20provide\x20--to-label-column\x20explicitly.','11neNSfd','872856estvUO','fromDatasetCode','toDblinkId','Dataset\x20','--from-dblink-id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','delete','length','enum','expectedLabel','message','isSafeInteger','dblinkId','sourceType','DB_TABLE','dbtable','tableName','262116MtxGTc','create','The\x20write\x20was\x20accepted,\x20but\x20current\x20state\x20could\x20not\x20be\x20confirmed.\x20Run\x20dataset\x20cross-relation-list\x20before\x20attempting\x20another\x20write.','some','data','\x20has\x20invalid\x20storage\x20configuration.','1746972UWTsnF'];a72_0x1048=function(){return _0x1ed7f8;};return a72_0x1048();}
@@ -1 +1 @@
1
- const a73_0x123f12=a73_0x3166;(function(_0x379552,_0x4885b3){const _0x37d07b=a73_0x3166,_0x5e372f=_0x379552();while(!![]){try{const _0x5eed6b=-parseInt(_0x37d07b(0x196))/0x1+parseInt(_0x37d07b(0x199))/0x2*(-parseInt(_0x37d07b(0x18f))/0x3)+-parseInt(_0x37d07b(0x18d))/0x4+parseInt(_0x37d07b(0x198))/0x5*(parseInt(_0x37d07b(0x190))/0x6)+-parseInt(_0x37d07b(0x19a))/0x7*(-parseInt(_0x37d07b(0x191))/0x8)+-parseInt(_0x37d07b(0x195))/0x9+parseInt(_0x37d07b(0x197))/0xa;if(_0x5eed6b===_0x4885b3)break;else _0x5e372f['push'](_0x5e372f['shift']());}catch(_0x55acd3){_0x5e372f['push'](_0x5e372f['shift']());}}}(a73_0xe735,0xd46b5));import{updateCrossDbRelation}from'../../core/api-client.js';function a73_0x3166(_0x3330f0,_0x4f7447){_0x3330f0=_0x3330f0-0x18d;const _0xe73537=a73_0xe735();let _0x316659=_0xe73537[_0x3330f0];return _0x316659;}function a73_0xe735(){const _0x518862=['3901910eisTWc','2628750RSgRvf','47159bzOJQQ','2663540ieGazR','dataset','3DNgguS','6XgTOfg','1544YsLIpG','cross-relation-update','update','write','12359043YRAuNy','286137slyBIM','24290700SOGyMy'];a73_0xe735=function(){return _0x518862;};return a73_0xe735();}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':a73_0x123f12(0x18e),'command':a73_0x123f12(0x192),'description':'Update\x20the\x20target\x20or\x20properties\x20of\x20the\x20single\x20cross-database\x20relation\x20matching\x20a\x20source\x20dataset\x20and\x20field','risk':a73_0x123f12(0x194),'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 _0x1c0f1f=>validateCrossRelation(_0x1c0f1f,a73_0x123f12(0x193)),'dryRun':_0x5a1445=>previewCrossRelation(_0x5a1445,a73_0x123f12(0x193)),'execute':_0x14b936=>executeCrossRelation(_0x14b936,'update',updateCrossDbRelation)};
1
+ function a73_0x598f(_0x3ae44a,_0x2655cd){_0x3ae44a=_0x3ae44a-0x83;const _0x282ebf=a73_0x282e();let _0x598fc9=_0x282ebf[_0x3ae44a];return _0x598fc9;}const a73_0x1c8037=a73_0x598f;function a73_0x282e(){const _0x28a227=['205452dTOExC','dataset','4bKzMKi','143nEIdJt','write','6kXzEYj','5ptyzam','11HzFXTD','11646170dFAcXz','update','3549756iTDGEo','cross-relation-update','3226578rCCzzi','2732772vxhmBf','9196502yunUKB','311537dyKQCY','424juuHqW','Update\x20the\x20target\x20or\x20properties\x20of\x20the\x20single\x20cross-database\x20relation\x20matching\x20a\x20source\x20dataset\x20and\x20field'];a73_0x282e=function(){return _0x28a227;};return a73_0x282e();}(function(_0x3215ec,_0x2e3f9f){const _0x26aa97=a73_0x598f,_0x482ed8=_0x3215ec();while(!![]){try{const _0x279fe2=-parseInt(_0x26aa97(0x8f))/0x1*(parseInt(_0x26aa97(0x94))/0x2)+parseInt(_0x26aa97(0x8c))/0x3+parseInt(_0x26aa97(0x8a))/0x4*(-parseInt(_0x26aa97(0x86))/0x5)+parseInt(_0x26aa97(0x85))/0x6*(-parseInt(_0x26aa97(0x8e))/0x7)+-parseInt(_0x26aa97(0x90))/0x8*(-parseInt(_0x26aa97(0x92))/0x9)+parseInt(_0x26aa97(0x88))/0xa*(-parseInt(_0x26aa97(0x87))/0xb)+parseInt(_0x26aa97(0x8d))/0xc*(parseInt(_0x26aa97(0x83))/0xd);if(_0x279fe2===_0x2e3f9f)break;else _0x482ed8['push'](_0x482ed8['shift']());}catch(_0x4ca500){_0x482ed8['push'](_0x482ed8['shift']());}}}(a73_0x282e,0xc3aff));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';export const datasetCrossRelationUpdate={'service':a73_0x1c8037(0x93),'command':a73_0x1c8037(0x8b),'description':a73_0x1c8037(0x91),'risk':a73_0x1c8037(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 _0x17da0f=>validateCrossRelation(_0x17da0f,a73_0x1c8037(0x89)),'dryRun':_0x5795b4=>previewCrossRelation(_0x5795b4,a73_0x1c8037(0x89)),'execute':_0x5635d6=>executeCrossRelation(_0x5635d6,a73_0x1c8037(0x89),updateCrossDbRelation)};