@lovrabet/rabetbase-cli 2.5.7 → 2.5.8-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 (381) hide show
  1. package/README.md +7 -0
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/api-group.js +1 -1
  4. package/lib/api/fetch-model-list.js +1 -1
  5. package/lib/api/generate-api-file.js +1 -1
  6. package/lib/api/generate-sdk-config-file.js +1 -1
  7. package/lib/api/legacy-api-file.js +1 -1
  8. package/lib/api/model-registry-file.js +1 -1
  9. package/lib/api/model-registry-scaffold.js +1 -1
  10. package/lib/api/model-source.js +1 -1
  11. package/lib/auth/auth-server-ui.js +1 -1
  12. package/lib/auth/auth-server.js +1 -1
  13. package/lib/auth/constant.js +1 -1
  14. package/lib/auth/get-cookie.js +1 -1
  15. package/lib/auth/get-session-user.js +1 -1
  16. package/lib/auth/is-session-valid.js +1 -1
  17. package/lib/auth/login-success-html.js +1 -1
  18. package/lib/auth/logout.js +1 -1
  19. package/lib/cli-flags.js +1 -1
  20. package/lib/cli.js +1 -1
  21. package/lib/commands/api/generate.js +1 -1
  22. package/lib/commands/api/index.js +1 -1
  23. package/lib/commands/api/list.js +1 -1
  24. package/lib/commands/api/pull.js +1 -1
  25. package/lib/commands/api/shared.js +1 -1
  26. package/lib/commands/app/detail.js +1 -1
  27. package/lib/commands/app/index.js +1 -1
  28. package/lib/commands/app/list.js +1 -1
  29. package/lib/commands/app/members-list.js +1 -1
  30. package/lib/commands/app/remote-directory.js +1 -1
  31. package/lib/commands/app/shared.js +1 -1
  32. package/lib/commands/app-config/delete.js +1 -1
  33. package/lib/commands/app-config/get.js +1 -1
  34. package/lib/commands/app-config/index.js +1 -1
  35. package/lib/commands/app-config/list.js +1 -1
  36. package/lib/commands/app-config/set.js +1 -1
  37. package/lib/commands/app-config/shared.js +1 -1
  38. package/lib/commands/auth/index.js +1 -1
  39. package/lib/commands/bff/create.js +1 -1
  40. package/lib/commands/bff/delete.js +1 -1
  41. package/lib/commands/bff/detail.js +1 -1
  42. package/lib/commands/bff/index.js +1 -1
  43. package/lib/commands/bff/list.js +1 -1
  44. package/lib/commands/bff/logs.js +1 -1
  45. package/lib/commands/bff/pull.js +1 -1
  46. package/lib/commands/bff/push.js +1 -1
  47. package/lib/commands/bff/status.js +1 -1
  48. package/lib/commands/cli-skill/index.js +1 -1
  49. package/lib/commands/cli-update.js +1 -1
  50. package/lib/commands/codegen/index.js +1 -1
  51. package/lib/commands/codegen/sdk.js +1 -1
  52. package/lib/commands/codegen/sql.js +1 -1
  53. package/lib/commands/common/app-registry.js +1 -1
  54. package/lib/commands/common/app-selector.js +1 -1
  55. package/lib/commands/common/async-task.js +1 -1
  56. package/lib/commands/common/dry-run.js +1 -1
  57. package/lib/commands/common/flags.js +1 -1
  58. package/lib/commands/common/local-file.js +1 -1
  59. package/lib/commands/common/validate.js +1 -1
  60. package/lib/commands/config/delete.js +1 -1
  61. package/lib/commands/config/get.js +1 -1
  62. package/lib/commands/config/index.js +1 -1
  63. package/lib/commands/config/init.js +1 -1
  64. package/lib/commands/config/list.js +1 -1
  65. package/lib/commands/config/set.js +1 -1
  66. package/lib/commands/config/shared.js +1 -1
  67. package/lib/commands/dataset/batch-design.js +1 -1
  68. package/lib/commands/dataset/business-group-update.js +1 -1
  69. package/lib/commands/dataset/business-groups.js +1 -1
  70. package/lib/commands/dataset/capability.js +1 -1
  71. package/lib/commands/dataset/cross-relation-create.js +1 -1
  72. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  73. package/lib/commands/dataset/cross-relation-list.js +1 -1
  74. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  75. package/lib/commands/dataset/cross-relation-update.js +1 -1
  76. package/lib/commands/dataset/delete.js +1 -1
  77. package/lib/commands/dataset/design-context.js +1 -1
  78. package/lib/commands/dataset/design-start.js +1 -1
  79. package/lib/commands/dataset/design-status.js +1 -1
  80. package/lib/commands/dataset/design-sync-retry.js +1 -1
  81. package/lib/commands/dataset/design-sync-status.js +1 -1
  82. package/lib/commands/dataset/design-validate.js +1 -1
  83. package/lib/commands/dataset/detail.js +1 -1
  84. package/lib/commands/dataset/extend-update.js +1 -1
  85. package/lib/commands/dataset/field-restore.js +1 -1
  86. package/lib/commands/dataset/field-update.js +1 -1
  87. package/lib/commands/dataset/generate.js +1 -1
  88. package/lib/commands/dataset/index.js +1 -1
  89. package/lib/commands/dataset/list.js +1 -1
  90. package/lib/commands/dataset/operations.js +1 -1
  91. package/lib/commands/dataset/relation-audit.js +1 -1
  92. package/lib/commands/dataset/relation-create.js +1 -1
  93. package/lib/commands/dataset/relation-delete.js +1 -1
  94. package/lib/commands/dataset/relation-shared.js +1 -1
  95. package/lib/commands/dataset/relation-update.js +1 -1
  96. package/lib/commands/dataset/relations.js +1 -1
  97. package/lib/commands/dataset/rename.js +1 -1
  98. package/lib/commands/dataset/restore.js +1 -1
  99. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  100. package/lib/commands/db/analysis-batching.js +1 -1
  101. package/lib/commands/db/analyze-batch-plan.js +1 -1
  102. package/lib/commands/db/analyze-cancel.js +1 -1
  103. package/lib/commands/db/analyze-start.js +1 -1
  104. package/lib/commands/db/analyze-status.js +1 -1
  105. package/lib/commands/db/create.js +1 -1
  106. package/lib/commands/db/cross-db-analysis-shared.js +1 -1
  107. package/lib/commands/db/cross-db-analyze-latest.js +1 -1
  108. package/lib/commands/db/cross-db-analyze-start.js +1 -1
  109. package/lib/commands/db/cross-db-analyze-status.js +1 -1
  110. package/lib/commands/db/delete.js +1 -1
  111. package/lib/commands/db/detail.js +1 -1
  112. package/lib/commands/db/diff-refresh-start.js +1 -1
  113. package/lib/commands/db/diff-refresh-status.js +1 -1
  114. package/lib/commands/db/diff.js +1 -1
  115. package/lib/commands/db/index.js +1 -1
  116. package/lib/commands/db/list.js +1 -1
  117. package/lib/commands/db/shared.js +1 -1
  118. package/lib/commands/db/table-diff-shared.js +1 -1
  119. package/lib/commands/db/tables.js +1 -1
  120. package/lib/commands/db/test.js +1 -1
  121. package/lib/commands/db/update.js +1 -1
  122. package/lib/commands/deployment/index.js +1 -1
  123. package/lib/commands/deployment/sync-all.js +1 -1
  124. package/lib/commands/deployment/sync-jobs.js +1 -1
  125. package/lib/commands/deployment/sync-status.js +1 -1
  126. package/lib/commands/doctor.js +1 -1
  127. package/lib/commands/file/index.js +1 -1
  128. package/lib/commands/flow/create.js +1 -1
  129. package/lib/commands/flow/detail.js +1 -1
  130. package/lib/commands/flow/index.js +1 -1
  131. package/lib/commands/flow/list.js +1 -1
  132. package/lib/commands/flow/page-list.js +1 -1
  133. package/lib/commands/flow/publish.js +1 -1
  134. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  135. package/lib/commands/flow/runtime-role-list.js +1 -1
  136. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  137. package/lib/commands/flow/runtime-user-search.js +1 -1
  138. package/lib/commands/flow/shared.js +1 -1
  139. package/lib/commands/flow/update.js +1 -1
  140. package/lib/commands/flow/validate.js +1 -1
  141. package/lib/commands/instant-api-policy/current.js +1 -1
  142. package/lib/commands/instant-api-policy/index.js +1 -1
  143. package/lib/commands/instant-api-policy/init.js +1 -1
  144. package/lib/commands/instant-api-policy/publish.js +1 -1
  145. package/lib/commands/instant-api-policy/pull.js +1 -1
  146. package/lib/commands/instant-api-policy/revision.js +1 -1
  147. package/lib/commands/instant-api-policy/revisions.js +1 -1
  148. package/lib/commands/instant-api-policy/rollback.js +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.d.ts +1 -1
  278. package/lib/constant/domain.js +1 -1
  279. package/lib/constant/env.js +1 -1
  280. package/lib/constant/output.js +1 -1
  281. package/lib/constant/paths.js +1 -1
  282. package/lib/constant/region.js +1 -1
  283. package/lib/constant/risk.js +1 -1
  284. package/lib/constant/routing-profile.js +1 -1
  285. package/lib/context/app-resolver.js +1 -1
  286. package/lib/context/auth-resolver.js +1 -1
  287. package/lib/context/config-loader.js +1 -1
  288. package/lib/context.js +1 -1
  289. package/lib/core/alias-resolver.js +1 -1
  290. package/lib/core/api-client.d.ts +2 -2
  291. package/lib/core/api-client.js +1 -1
  292. package/lib/core/bff/config.js +1 -1
  293. package/lib/core/bff/file-system.js +1 -1
  294. package/lib/core/bff/hash.js +1 -1
  295. package/lib/core/bff/hook-directory.js +1 -1
  296. package/lib/core/bff/lock.js +1 -1
  297. package/lib/core/bff/utils.js +1 -1
  298. package/lib/core/cross-db-analysis.js +1 -1
  299. package/lib/core/cross-db-relation.js +1 -1
  300. package/lib/core/db-resolver.js +1 -1
  301. package/lib/core/flow-config.js +1 -1
  302. package/lib/core/instant-api-policy/config.js +1 -1
  303. package/lib/core/kb-management-client.d.ts +19 -0
  304. package/lib/core/kb-management-client.js +1 -0
  305. package/lib/core/kb-search-client.js +1 -1
  306. package/lib/core/page/file-system.js +1 -1
  307. package/lib/core/page/hash.js +1 -1
  308. package/lib/core/page/lock.js +1 -1
  309. package/lib/core/page/lr-smart-jsx.js +1 -1
  310. package/lib/core/sql-index-auditor.js +1 -1
  311. package/lib/core/sql-sync/config.js +1 -1
  312. package/lib/core/sql-sync/file-system.js +1 -1
  313. package/lib/core/sql-sync/hash.js +1 -1
  314. package/lib/core/sql-sync/lock.js +1 -1
  315. package/lib/core/sql-sync/utils.js +1 -1
  316. package/lib/core/sql-validator.js +1 -1
  317. package/lib/errors.js +1 -1
  318. package/lib/framework/build-all-flags.js +1 -1
  319. package/lib/framework/error-output.js +1 -1
  320. package/lib/framework/explicit-yes.js +1 -1
  321. package/lib/framework/flags.js +1 -1
  322. package/lib/framework/help.js +1 -1
  323. package/lib/framework/index.js +1 -1
  324. package/lib/framework/output.js +1 -1
  325. package/lib/framework/response.js +1 -1
  326. package/lib/framework/runner-alias.js +1 -1
  327. package/lib/framework/runner.js +1 -1
  328. package/lib/framework/schema-export.js +1 -1
  329. package/lib/framework/supported-flags.js +1 -1
  330. package/lib/framework/types.js +1 -1
  331. package/lib/generated/build-info.d.ts +4 -4
  332. package/lib/generated/build-info.js +1 -1
  333. package/lib/generated/official-routing.js +1 -1
  334. package/lib/generated/routing-contract.js +1 -1
  335. package/lib/help.js +1 -1
  336. package/lib/postinstall.js +1 -1
  337. package/lib/runtime/confirmation.js +1 -1
  338. package/lib/runtime/event.js +1 -1
  339. package/lib/runtime/index.js +1 -1
  340. package/lib/runtime/queue.js +1 -1
  341. package/lib/runtime/resolve.js +1 -1
  342. package/lib/services/dataset-design/checkpoint.js +1 -1
  343. package/lib/services/dataset-design/commands.js +1 -1
  344. package/lib/services/dataset-design/contract.js +1 -1
  345. package/lib/skills/builtin-skill.js +1 -1
  346. package/lib/skills/main.js +1 -1
  347. package/lib/skills/npx-skills-add.js +1 -1
  348. package/lib/skills/skill-presence.js +1 -1
  349. package/lib/telemetry/cli-command-trace.js +1 -1
  350. package/lib/telemetry/cli-help-trace.js +1 -1
  351. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  352. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  353. package/lib/telemetry/send-cli-trace-log.js +1 -1
  354. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  355. package/lib/utils/ai_config.js +1 -1
  356. package/lib/utils/apply-jq-filter.js +1 -1
  357. package/lib/utils/cdn-config.js +1 -1
  358. package/lib/utils/check-sdk-version.js +1 -1
  359. package/lib/utils/cli-version-check.js +1 -1
  360. package/lib/utils/cli-version-policy.js +1 -1
  361. package/lib/utils/config.js +1 -1
  362. package/lib/utils/entity-with-id.js +1 -1
  363. package/lib/utils/file-utils.js +1 -1
  364. package/lib/utils/guides-cdn.js +1 -1
  365. package/lib/utils/http-client.js +1 -1
  366. package/lib/utils/is-non-interactive.js +1 -1
  367. package/lib/utils/logger.js +1 -1
  368. package/lib/utils/params.js +1 -1
  369. package/lib/utils/platform.js +1 -1
  370. package/lib/utils/sleep.js +1 -1
  371. package/lib/utils/template-replacer.js +1 -1
  372. package/lib/utils/update-notice.js +1 -1
  373. package/lib/utils/version.js +1 -1
  374. package/lib/utils/with-active-cookie.js +1 -1
  375. package/lib/utils/write-cli-side-channel.js +1 -1
  376. package/package.json +1 -1
  377. package/skills/rabetbase/SKILL.md +2 -2
  378. package/skills/rabetbase/references/rabetbase-kb.md +7 -6
  379. package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
  380. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  381. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- function a59_0x1e1e(_0x5d6d2a,_0x359670){_0x5d6d2a=_0x5d6d2a-0x1a7;const _0x3e104b=a59_0x3e10();let _0x1e1eb3=_0x3e104b[_0x5d6d2a];return _0x1e1eb3;}function a59_0x3e10(){const _0x231ca5=['str','config','get','420759oxzRmp','436mVwcPO','37583986bTPMLp','string','validation','\x20config\x20get\x20--key\x20<key>','app','key','35FxgLRC','1VZZEPj','1114257typIoK','object','821544PBmroQ','2528166dzmFAX','25325ayJdLB','12vdPyqr','3120000DxpDPT','160Hulosr','Missing\x20key.'];a59_0x3e10=function(){return _0x231ca5;};return a59_0x3e10();}const a59_0x2b6e2d=a59_0x1e1e;(function(_0x22d31a,_0x18610f){const _0x2eda55=a59_0x1e1e,_0x308b34=_0x22d31a();while(!![]){try{const _0x41ccef=-parseInt(_0x2eda55(0x1af))/0x1*(parseInt(_0x2eda55(0x1b3))/0x2)+-parseInt(_0x2eda55(0x1b0))/0x3+-parseInt(_0x2eda55(0x1a7))/0x4*(parseInt(_0x2eda55(0x1b4))/0x5)+parseInt(_0x2eda55(0x1b2))/0x6*(-parseInt(_0x2eda55(0x1ae))/0x7)+-parseInt(_0x2eda55(0x1b6))/0x8+parseInt(_0x2eda55(0x1bc))/0x9*(parseInt(_0x2eda55(0x1b7))/0xa)+parseInt(_0x2eda55(0x1a8))/0xb*(parseInt(_0x2eda55(0x1b5))/0xc);if(_0x41ccef===_0x18610f)break;else _0x308b34['push'](_0x308b34['shift']());}catch(_0x3de546){_0x308b34['push'](_0x308b34['shift']());}}}(a59_0x3e10,0xdc587));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(_0x26387d){const _0x27d6ca=a59_0x1e1e,_0x28832f=_0x26387d[_0x27d6ca(0x1b9)](_0x27d6ca(0x1ad));if(!_0x28832f)throw CliErrors[_0x27d6ca(0x1aa)](_0x27d6ca(0x1b8),'Usage:\x20'+CLI_BIN_NAME+_0x27d6ca(0x1ab));const _0x8232bf=readConfig(),_0xdfed81=_0x28832f===_0x27d6ca(0x1ac)?'appcode':_0x28832f,_0x500d5d=_0x8232bf[_0xdfed81];if(_0x500d5d===undefined)throw CliErrors[_0x27d6ca(0x1aa)]('Key\x20not\x20found:\x20'+_0x28832f);return{'ok':!![],'data':typeof _0x500d5d===_0x27d6ca(0x1b1)?_0x500d5d:{[_0xdfed81]:_0x500d5d},'message':typeof _0x500d5d===_0x27d6ca(0x1b1)?undefined:String(_0x500d5d)};}export const configGetDefinition={'service':a59_0x2b6e2d(0x1ba),'command':a59_0x2b6e2d(0x1bb),'description':'Get\x20a\x20config\x20value\x20by\x20key','risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a59_0x2b6e2d(0x1ad),'type':a59_0x2b6e2d(0x1a9),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
1
+ const a59_0x2adc35=a59_0x19bf;(function(_0x50bc49,_0x55a1f1){const _0x531370=a59_0x19bf,_0x39045f=_0x50bc49();while(!![]){try{const _0x169b52=-parseInt(_0x531370(0x92))/0x1+-parseInt(_0x531370(0x8e))/0x2*(-parseInt(_0x531370(0x90))/0x3)+parseInt(_0x531370(0x99))/0x4*(parseInt(_0x531370(0x94))/0x5)+parseInt(_0x531370(0x9a))/0x6+-parseInt(_0x531370(0x8d))/0x7+-parseInt(_0x531370(0x9c))/0x8+parseInt(_0x531370(0x8c))/0x9*(parseInt(_0x531370(0x96))/0xa);if(_0x169b52===_0x55a1f1)break;else _0x39045f['push'](_0x39045f['shift']());}catch(_0x3aa31e){_0x39045f['push'](_0x39045f['shift']());}}}(a59_0x465c,0x4e4dc));import{CliErrors}from'../../errors.js';function a59_0x19bf(_0x98718c,_0x5dd4a8){_0x98718c=_0x98718c-0x89;const _0x465c16=a59_0x465c();let _0x19bf1a=_0x465c16[_0x98718c];return _0x19bf1a;}function a59_0x465c(){const _0x1cf658=['358548JYXDvz','string','1811165MlPHCi','\x20config\x20get\x20--key\x20<key>','10VMYmLy','key','appcode','4uyBiJn','424566aHbfMp','get','4323384ljsOxC','Get\x20a\x20config\x20value\x20by\x20key','validation','Missing\x20key.','str','read','11036241XuJyPV','3264373IpEjVr','6yZSPzY','object','26799BtdjuJ','config'];a59_0x465c=function(){return _0x1cf658;};return a59_0x465c();}import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0x1fe929){const _0x509a6c=a59_0x19bf,_0x56e01c=_0x1fe929[_0x509a6c(0x8a)](_0x509a6c(0x97));if(!_0x56e01c)throw CliErrors[_0x509a6c(0x9e)](_0x509a6c(0x89),'Usage:\x20'+CLI_BIN_NAME+_0x509a6c(0x95));const _0x63bbf=readConfig(),_0x11c0e4=_0x56e01c==='app'?_0x509a6c(0x98):_0x56e01c,_0xbdacea=_0x63bbf[_0x11c0e4];if(_0xbdacea===undefined)throw CliErrors[_0x509a6c(0x9e)]('Key\x20not\x20found:\x20'+_0x56e01c);return{'ok':!![],'data':typeof _0xbdacea===_0x509a6c(0x8f)?_0xbdacea:{[_0x11c0e4]:_0xbdacea},'message':typeof _0xbdacea===_0x509a6c(0x8f)?undefined:String(_0xbdacea)};}export const configGetDefinition={'service':a59_0x2adc35(0x91),'command':a59_0x2adc35(0x9b),'description':a59_0x2adc35(0x9d),'risk':a59_0x2adc35(0x8b),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a59_0x2adc35(0x97),'type':a59_0x2adc35(0x93),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
@@ -1 +1 @@
1
- function a60_0x5776(_0x437c10,_0x2589af){_0x437c10=_0x437c10-0x82;const _0x187a9a=a60_0x187a();let _0x57764b=_0x187a9a[_0x437c10];return _0x57764b;}(function(_0x32a9dd,_0x128db5){const _0x19e667=a60_0x5776,_0x45f9ba=_0x32a9dd();while(!![]){try{const _0x2492cc=parseInt(_0x19e667(0x86))/0x1+-parseInt(_0x19e667(0x82))/0x2+-parseInt(_0x19e667(0x87))/0x3*(-parseInt(_0x19e667(0x85))/0x4)+parseInt(_0x19e667(0x88))/0x5+parseInt(_0x19e667(0x83))/0x6+parseInt(_0x19e667(0x84))/0x7+-parseInt(_0x19e667(0x89))/0x8;if(_0x2492cc===_0x128db5)break;else _0x45f9ba['push'](_0x45f9ba['shift']());}catch(_0x464ba4){_0x45f9ba['push'](_0x45f9ba['shift']());}}}(a60_0x187a,0x7ebbb));import{configListDefinition}from'../../commands/config/list.js';function a60_0x187a(){const _0x125787=['4643380CYlwca','13524640QzyTob','1612852TZmjDL','1917048YdajXh','2771636JCliyP','1540QgYJTk','871088KxNbGx','3903mxlgiy'];a60_0x187a=function(){return _0x125787;};return a60_0x187a();}import{configGetDefinition}from'../../commands/config/get.js';import{configSetDefinition}from'../../commands/config/set.js';import{configDeleteDefinition}from'../../commands/config/delete.js';import{configInitDefinition}from'../../commands/config/init.js';export const configDefinitions=[configInitDefinition,configListDefinition,configGetDefinition,configSetDefinition,configDeleteDefinition];
1
+ function a60_0x3acf(_0x15ed84,_0x31f498){_0x15ed84=_0x15ed84-0x88;const _0x39aab7=a60_0x39aa();let _0x3acf48=_0x39aab7[_0x15ed84];return _0x3acf48;}(function(_0x453c43,_0x36b5bc){const _0x5962a0=a60_0x3acf,_0x3c3556=_0x453c43();while(!![]){try{const _0x4e3e1c=parseInt(_0x5962a0(0x90))/0x1*(parseInt(_0x5962a0(0x8a))/0x2)+-parseInt(_0x5962a0(0x8d))/0x3*(parseInt(_0x5962a0(0x89))/0x4)+parseInt(_0x5962a0(0x88))/0x5+parseInt(_0x5962a0(0x8f))/0x6*(parseInt(_0x5962a0(0x8b))/0x7)+-parseInt(_0x5962a0(0x8e))/0x8+-parseInt(_0x5962a0(0x91))/0x9+parseInt(_0x5962a0(0x8c))/0xa;if(_0x4e3e1c===_0x36b5bc)break;else _0x3c3556['push'](_0x3c3556['shift']());}catch(_0x46f26e){_0x3c3556['push'](_0x3c3556['shift']());}}}(a60_0x39aa,0xe3d3d));import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';import{configSetDefinition}from'../../commands/config/set.js';import{configDeleteDefinition}from'../../commands/config/delete.js';import{configInitDefinition}from'../../commands/config/init.js';export const configDefinitions=[configInitDefinition,configListDefinition,configGetDefinition,configSetDefinition,configDeleteDefinition];function a60_0x39aa(){const _0x30548d=['2450885TNhTWt','3614820GOXIYz','3958HtweRS','220171kYZvui','22202240OLtObQ','3JYStcx','14829720oclMAX','90IlWlGK','790ijNfGx','9495045futCcZ'];a60_0x39aa=function(){return _0x30548d;};return a60_0x39aa();}
@@ -1 +1 @@
1
- const a61_0x4bf344=a61_0x3cb5;(function(_0x3f0795,_0x4f33cf){const _0x13ad13=a61_0x3cb5,_0x47751d=_0x3f0795();while(!![]){try{const _0x4c60be=-parseInt(_0x13ad13(0x1c7))/0x1*(-parseInt(_0x13ad13(0x1da))/0x2)+parseInt(_0x13ad13(0x1d6))/0x3*(-parseInt(_0x13ad13(0x1c1))/0x4)+-parseInt(_0x13ad13(0x1c8))/0x5*(parseInt(_0x13ad13(0x1ce))/0x6)+parseInt(_0x13ad13(0x1bd))/0x7+-parseInt(_0x13ad13(0x1bb))/0x8*(-parseInt(_0x13ad13(0x1cf))/0x9)+-parseInt(_0x13ad13(0x1b7))/0xa*(-parseInt(_0x13ad13(0x1ac))/0xb)+parseInt(_0x13ad13(0x1dc))/0xc;if(_0x4c60be===_0x4f33cf)break;else _0x47751d['push'](_0x47751d['shift']());}catch(_0x1b2b1c){_0x47751d['push'](_0x47751d['shift']());}}}(a61_0x4070,0xd4adf));function a61_0x4070(){const _0xe8e980=['8931192JjCUNN','config','Custom\x20local\x20callback\x20HTTPS\x20origin','Custom\x20platform\x20API\x20HTTPS\x20origin','independent','Initialize\x20the\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domains','ExitPromptError','validation','5071ExqxCa','mode','join','Custom\x20Lovrabet\x20workspace\x20HTTPS\x20origin','official','manifestDomains','user-domain','runtime-domain','assign','Available\x20regions:\x20','certificateDomain','12380sAmotJ','str','project','localDomain','8TCWQbi','enterprise-v1','3953600uFfFqu','Custom\x20certificate\x20service\x20HTTPS\x20origin','api-domain','skill-domain','115124gYAXpy','Region\x20\x22','keys','Choose\x20either\x20an\x20official\x20region\x20or\x20independent-deployment\x20Domains,\x20not\x20both.','cancelled','global','2003qYjcga','4435twzbxq','domains','Custom\x20knowledge-base\x20HTTPS\x20origin','Official\x20Lovrabet\x20region:\x20','name','kb-domain','930EIZHGh','3178233JqdyWi','region','kb-service-domain','write','cdn','string','label','132MBOYGC','app-domain','routing','Custom\x20Runtime\x20HTTPS\x20origin','42hZJnrK','Custom\x20KB\x20Service\x20HTTPS\x20origin'];a61_0x4070=function(){return _0xe8e980;};return a61_0x4070();}import{select}from'@inquirer/prompts';import{CliErrors}from'../../errors.js';import{readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{DOMAIN_CONFIG_FIELDS,LEGACY_DOMAIN_CONFIG_FIELDS,resolveDomainConfigInput}from'../../config/domain-config.js';import{ENTERPRISE_ROUTING_KIND,ENTERPRISE_ROUTING_PROTOCOL}from'../../generated/routing-contract.js';import{DEFAULT_LOVRABET_REGION,ENABLED_LOVRABET_REGION_VALUES,isEnabledLovrabetRegion}from'../../constant/region.js';import{getOfficialRoutingProfile}from'../../constant/routing-profile.js';import{GLOBAL_SCOPE_FLAG}from'../../commands/common/flags.js';function a61_0x3cb5(_0x3f4aa7,_0x287fbe){_0x3f4aa7=_0x3f4aa7-0x1a5;const _0x407067=a61_0x4070();let _0x3cb597=_0x407067[_0x3f4aa7];return _0x3cb597;}export const configInitFlags=[GLOBAL_SCOPE_FLAG,{'name':a61_0x4bf344(0x1d0),'type':'string','description':a61_0x4bf344(0x1cb)+ENABLED_LOVRABET_REGION_VALUES[a61_0x4bf344(0x1ae)](',\x20'),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':'domain-config','type':a61_0x4bf344(0x1d4),'description':'Independent-deployment\x20Domain\x20JSON\x20file'},{'name':a61_0x4bf344(0x1b2),'type':'string','description':'Custom\x20User\x20HTTPS\x20origin'},{'name':a61_0x4bf344(0x1bf),'type':a61_0x4bf344(0x1d4),'description':a61_0x4bf344(0x1a7)},{'name':a61_0x4bf344(0x1b3),'type':a61_0x4bf344(0x1d4),'description':a61_0x4bf344(0x1d9)},{'name':a61_0x4bf344(0x1c0),'type':a61_0x4bf344(0x1d4),'description':'Custom\x20SkillHub\x20HTTPS\x20origin'},{'name':a61_0x4bf344(0x1cd),'type':a61_0x4bf344(0x1d4),'description':a61_0x4bf344(0x1ca)},{'name':a61_0x4bf344(0x1d1),'type':a61_0x4bf344(0x1d4),'description':a61_0x4bf344(0x1db)},{'name':a61_0x4bf344(0x1d7),'type':a61_0x4bf344(0x1d4),'description':a61_0x4bf344(0x1af)},{'name':'local-domain','type':a61_0x4bf344(0x1d4),'description':a61_0x4bf344(0x1a6)},{'name':'certificate-domain','type':a61_0x4bf344(0x1d4),'description':a61_0x4bf344(0x1be)}];async function resolveRegion(_0x1d1906){const _0x146baf=a61_0x4bf344,_0xa5ba32=_0x1d1906[_0x146baf(0x1b8)](_0x146baf(0x1d0));if(_0xa5ba32){if(!isEnabledLovrabetRegion(_0xa5ba32))throw CliErrors['validation'](_0x146baf(0x1c2)+_0xa5ba32+'\x22\x20is\x20not\x20currently\x20available.',_0x146baf(0x1b5)+ENABLED_LOVRABET_REGION_VALUES[_0x146baf(0x1ae)](',\x20'));return _0xa5ba32;}if(_0x1d1906['nonInteractive'])return DEFAULT_LOVRABET_REGION;try{return await select({'message':'Select\x20Lovrabet\x20region','default':DEFAULT_LOVRABET_REGION,'choices':ENABLED_LOVRABET_REGION_VALUES['map'](_0x4abdf5=>({'name':getOfficialRoutingProfile(_0x4abdf5)[_0x146baf(0x1d5)]+'\x20('+_0x4abdf5+')','value':_0x4abdf5}))});}catch(_0x161311){if(_0x161311?.[_0x146baf(0x1cc)]===_0x146baf(0x1aa))throw CliErrors[_0x146baf(0x1c5)]();throw _0x161311;}}export async function executeConfigInit(_0x598c8e){const _0x14b3a1=a61_0x4bf344,_0x33f985=resolveDomainConfigInput(_0x598c8e),_0x1ea64e=_0x33f985[_0x14b3a1(0x1c9)],_0x5ca95e=Object[_0x14b3a1(0x1c3)](_0x1ea64e)['length']>0x0;if(_0x5ca95e&&_0x598c8e[_0x14b3a1(0x1b8)](_0x14b3a1(0x1d0)))throw CliErrors[_0x14b3a1(0x1ab)](_0x14b3a1(0x1c4));if(!!_0x1ea64e[_0x14b3a1(0x1ba)]!==!!_0x1ea64e[_0x14b3a1(0x1b6)])throw CliErrors[_0x14b3a1(0x1ab)]('Independent\x20deployment\x20requires\x20--local-domain\x20and\x20--certificate-domain\x20together.');const _0x6baba7=_0x598c8e['bool'](_0x14b3a1(0x1c6))?_0x14b3a1(0x1c6):_0x14b3a1(0x1b9),_0x150d6b=readScopedConfig(_0x6baba7);for(const _0x537599 of DOMAIN_CONFIG_FIELDS)delete _0x150d6b[_0x537599];for(const _0x4f59fd of LEGACY_DOMAIN_CONFIG_FIELDS)delete _0x150d6b[_0x4f59fd];delete _0x150d6b['routing'];let _0x1c2b3f=null;if(_0x5ca95e)delete _0x150d6b[_0x14b3a1(0x1d0)],_0x33f985[_0x14b3a1(0x1ad)]===_0x14b3a1(0x1bc)?_0x150d6b[_0x14b3a1(0x1d8)]={'protocol':ENTERPRISE_ROUTING_PROTOCOL,'kind':ENTERPRISE_ROUTING_KIND,'domains':_0x33f985[_0x14b3a1(0x1b1)],'cdn':_0x33f985[_0x14b3a1(0x1d3)]}:Object[_0x14b3a1(0x1b4)](_0x150d6b,_0x1ea64e);else{_0x1c2b3f=await resolveRegion(_0x598c8e);if(_0x1c2b3f===DEFAULT_LOVRABET_REGION)delete _0x150d6b[_0x14b3a1(0x1d0)];else _0x150d6b[_0x14b3a1(0x1d0)]=_0x1c2b3f;}return writeScopedConfig(_0x150d6b,_0x6baba7),{'ok':!![],'message':_0x5ca95e?'Rabetbase\x20connection\x20configured\x20for\x20independent\x20deployment.\x20Domains:\x20'+Object[_0x14b3a1(0x1c3)](_0x33f985[_0x14b3a1(0x1ad)]===_0x14b3a1(0x1bc)?_0x33f985[_0x14b3a1(0x1b1)]:_0x1ea64e)[_0x14b3a1(0x1ae)](',\x20')+'.':'Rabetbase\x20connection\x20configured\x20for\x20region:\x20'+_0x1c2b3f+'.','data':{'mode':_0x5ca95e?_0x14b3a1(0x1a8):_0x14b3a1(0x1b0),'protocol':_0x33f985[_0x14b3a1(0x1ad)]===_0x14b3a1(0x1bc)?ENTERPRISE_ROUTING_PROTOCOL:undefined,'region':_0x1c2b3f,'domains':_0x1ea64e,'cdn':_0x33f985[_0x14b3a1(0x1ad)]===_0x14b3a1(0x1bc)?_0x33f985['cdn']:undefined}};}export const configInitDefinition={'service':a61_0x4bf344(0x1a5),'command':'init','description':a61_0x4bf344(0x1a9),'risk':a61_0x4bf344(0x1d2),'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
+ const a61_0x4381bd=a61_0x1f6e;(function(_0x14a7b8,_0xeb896a){const _0xbfd35c=a61_0x1f6e,_0x29fe68=_0x14a7b8();while(!![]){try{const _0x2daf96=parseInt(_0xbfd35c(0x162))/0x1*(parseInt(_0xbfd35c(0x185))/0x2)+parseInt(_0xbfd35c(0x17f))/0x3*(-parseInt(_0xbfd35c(0x196))/0x4)+parseInt(_0xbfd35c(0x190))/0x5*(-parseInt(_0xbfd35c(0x19c))/0x6)+parseInt(_0xbfd35c(0x19d))/0x7*(parseInt(_0xbfd35c(0x176))/0x8)+-parseInt(_0xbfd35c(0x18f))/0x9+parseInt(_0xbfd35c(0x16d))/0xa+parseInt(_0xbfd35c(0x182))/0xb*(-parseInt(_0xbfd35c(0x1a0))/0xc);if(_0x2daf96===_0xeb896a)break;else _0x29fe68['push'](_0x29fe68['shift']());}catch(_0x512c9){_0x29fe68['push'](_0x29fe68['shift']());}}}(a61_0x5d7a,0x59a53));import{select}from'@inquirer/prompts';import{CliErrors}from'../../errors.js';import{readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{DOMAIN_CONFIG_FIELDS,LEGACY_DOMAIN_CONFIG_FIELDS,resolveDomainConfigInput}from'../../config/domain-config.js';import{ENTERPRISE_ROUTING_KIND,ENTERPRISE_ROUTING_PROTOCOL}from'../../generated/routing-contract.js';import{DEFAULT_LOVRABET_REGION,ENABLED_LOVRABET_REGION_VALUES,isEnabledLovrabetRegion}from'../../constant/region.js';import{getOfficialRoutingProfile}from'../../constant/routing-profile.js';import{GLOBAL_SCOPE_FLAG}from'../../commands/common/flags.js';function a61_0x5d7a(){const _0x3163b4=['cdn','enterprise-v1','write','str','kb-service-domain','135EXRnBD','Official\x20Lovrabet\x20region:\x20','Independent-deployment\x20Domain\x20JSON\x20file','5764rcCXIu','certificate-domain','Available\x20regions:\x20','207652ydgBCx','global','mode','local-domain','runtime-domain','official','Rabetbase\x20connection\x20configured\x20for\x20independent\x20deployment.\x20Domains:\x20','Updates\x20the\x20selected\x20Rabetbase\x20region\x20or\x20independent-deployment\x20Domain\x20configuration.\x20Cookie,\x20output\x20format,\x20and\x20app\x20bindings\x20stay\x20unchanged.','join','cancelled','1471968FocAal','184235ckeqzU','project','certificateDomain','Initialize\x20the\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domains','length','Custom\x20certificate\x20service\x20HTTPS\x20origin','17224NVnZwu','validation','skill-domain','Custom\x20Lovrabet\x20workspace\x20HTTPS\x20origin','domain-config','keys','102DuikUr','81998FdxmDJ','Independent\x20deployment\x20requires\x20--local-domain\x20and\x20--certificate-domain\x20together.','map','10008QJSggr','Custom\x20Runtime\x20HTTPS\x20origin','config','7zVlUsx','init','label','kb-domain','localDomain','routing','nonInteractive','Custom\x20knowledge-base\x20HTTPS\x20origin','ExitPromptError','independent','string','5574400aHtmMD','manifestDomains','Custom\x20local\x20callback\x20HTTPS\x20origin','Region\x20\x22','name','user-domain','region','Select\x20Lovrabet\x20region','Rabetbase\x20connection\x20configured\x20for\x20region:\x20','344KADLdh','Choose\x20either\x20an\x20official\x20region\x20or\x20independent-deployment\x20Domains,\x20not\x20both.','domains','Custom\x20User\x20HTTPS\x20origin'];a61_0x5d7a=function(){return _0x3163b4;};return a61_0x5d7a();}function a61_0x1f6e(_0x3053ac,_0x4512c9){_0x3053ac=_0x3053ac-0x162;const _0x5d7a60=a61_0x5d7a();let _0x1f6e36=_0x5d7a60[_0x3053ac];return _0x1f6e36;}export const configInitFlags=[GLOBAL_SCOPE_FLAG,{'name':'region','type':a61_0x4381bd(0x16c),'description':a61_0x4381bd(0x180)+ENABLED_LOVRABET_REGION_VALUES['join'](',\x20'),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':a61_0x4381bd(0x19a),'type':a61_0x4381bd(0x16c),'description':a61_0x4381bd(0x181)},{'name':a61_0x4381bd(0x172),'type':a61_0x4381bd(0x16c),'description':a61_0x4381bd(0x179)},{'name':'api-domain','type':a61_0x4381bd(0x16c),'description':'Custom\x20platform\x20API\x20HTTPS\x20origin'},{'name':a61_0x4381bd(0x189),'type':a61_0x4381bd(0x16c),'description':a61_0x4381bd(0x1a1)},{'name':a61_0x4381bd(0x198),'type':a61_0x4381bd(0x16c),'description':'Custom\x20SkillHub\x20HTTPS\x20origin'},{'name':a61_0x4381bd(0x165),'type':a61_0x4381bd(0x16c),'description':a61_0x4381bd(0x169)},{'name':a61_0x4381bd(0x17e),'type':a61_0x4381bd(0x16c),'description':'Custom\x20KB\x20Service\x20HTTPS\x20origin'},{'name':'app-domain','type':'string','description':a61_0x4381bd(0x199)},{'name':a61_0x4381bd(0x188),'type':a61_0x4381bd(0x16c),'description':a61_0x4381bd(0x16f)},{'name':a61_0x4381bd(0x183),'type':a61_0x4381bd(0x16c),'description':a61_0x4381bd(0x195)}];async function resolveRegion(_0x32c799){const _0x3b7eba=a61_0x4381bd,_0x584fe4=_0x32c799['str']('region');if(_0x584fe4){if(!isEnabledLovrabetRegion(_0x584fe4))throw CliErrors[_0x3b7eba(0x197)](_0x3b7eba(0x170)+_0x584fe4+'\x22\x20is\x20not\x20currently\x20available.',_0x3b7eba(0x184)+ENABLED_LOVRABET_REGION_VALUES[_0x3b7eba(0x18d)](',\x20'));return _0x584fe4;}if(_0x32c799[_0x3b7eba(0x168)])return DEFAULT_LOVRABET_REGION;try{return await select({'message':_0x3b7eba(0x174),'default':DEFAULT_LOVRABET_REGION,'choices':ENABLED_LOVRABET_REGION_VALUES[_0x3b7eba(0x19f)](_0x56a479=>({'name':getOfficialRoutingProfile(_0x56a479)[_0x3b7eba(0x164)]+'\x20('+_0x56a479+')','value':_0x56a479}))});}catch(_0x23f947){if(_0x23f947?.[_0x3b7eba(0x171)]===_0x3b7eba(0x16a))throw CliErrors[_0x3b7eba(0x18e)]();throw _0x23f947;}}export async function executeConfigInit(_0x551e2a){const _0x5627b3=a61_0x4381bd,_0x3c223a=resolveDomainConfigInput(_0x551e2a),_0x5072f5=_0x3c223a[_0x5627b3(0x178)],_0x29216c=Object['keys'](_0x5072f5)[_0x5627b3(0x194)]>0x0;if(_0x29216c&&_0x551e2a[_0x5627b3(0x17d)](_0x5627b3(0x173)))throw CliErrors[_0x5627b3(0x197)](_0x5627b3(0x177));if(!!_0x5072f5[_0x5627b3(0x166)]!==!!_0x5072f5[_0x5627b3(0x192)])throw CliErrors['validation'](_0x5627b3(0x19e));const _0x1b83d6=_0x551e2a['bool'](_0x5627b3(0x186))?_0x5627b3(0x186):_0x5627b3(0x191),_0x736f8b=readScopedConfig(_0x1b83d6);for(const _0x2d7685 of DOMAIN_CONFIG_FIELDS)delete _0x736f8b[_0x2d7685];for(const _0x2261ea of LEGACY_DOMAIN_CONFIG_FIELDS)delete _0x736f8b[_0x2261ea];delete _0x736f8b[_0x5627b3(0x167)];let _0x7717c7=null;if(_0x29216c)delete _0x736f8b[_0x5627b3(0x173)],_0x3c223a[_0x5627b3(0x187)]===_0x5627b3(0x17b)?_0x736f8b[_0x5627b3(0x167)]={'protocol':ENTERPRISE_ROUTING_PROTOCOL,'kind':ENTERPRISE_ROUTING_KIND,'domains':_0x3c223a[_0x5627b3(0x16e)],'cdn':_0x3c223a[_0x5627b3(0x17a)]}:Object['assign'](_0x736f8b,_0x5072f5);else{_0x7717c7=await resolveRegion(_0x551e2a);if(_0x7717c7===DEFAULT_LOVRABET_REGION)delete _0x736f8b[_0x5627b3(0x173)];else _0x736f8b[_0x5627b3(0x173)]=_0x7717c7;}return writeScopedConfig(_0x736f8b,_0x1b83d6),{'ok':!![],'message':_0x29216c?_0x5627b3(0x18b)+Object[_0x5627b3(0x19b)](_0x3c223a[_0x5627b3(0x187)]===_0x5627b3(0x17b)?_0x3c223a[_0x5627b3(0x16e)]:_0x5072f5)[_0x5627b3(0x18d)](',\x20')+'.':_0x5627b3(0x175)+_0x7717c7+'.','data':{'mode':_0x29216c?_0x5627b3(0x16b):_0x5627b3(0x18a),'protocol':_0x3c223a['mode']===_0x5627b3(0x17b)?ENTERPRISE_ROUTING_PROTOCOL:undefined,'region':_0x7717c7,'domains':_0x5072f5,'cdn':_0x3c223a[_0x5627b3(0x187)]==='enterprise-v1'?_0x3c223a[_0x5627b3(0x17a)]:undefined}};}export const configInitDefinition={'service':a61_0x4381bd(0x1a2),'command':a61_0x4381bd(0x163),'description':a61_0x4381bd(0x193),'risk':a61_0x4381bd(0x17c),'confirmationDescription':a61_0x4381bd(0x18c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':configInitFlags,'execute':executeConfigInit};
@@ -1 +1 @@
1
- const a62_0x40b553=a62_0x238f;(function(_0x3f06b1,_0x3105bd){const _0x4c5baf=a62_0x238f,_0x57d70f=_0x3f06b1();while(!![]){try{const _0x4c04e6=parseInt(_0x4c5baf(0x13f))/0x1+-parseInt(_0x4c5baf(0x141))/0x2*(parseInt(_0x4c5baf(0x140))/0x3)+parseInt(_0x4c5baf(0x145))/0x4*(parseInt(_0x4c5baf(0x13e))/0x5)+-parseInt(_0x4c5baf(0x142))/0x6*(-parseInt(_0x4c5baf(0x13d))/0x7)+parseInt(_0x4c5baf(0x14b))/0x8+-parseInt(_0x4c5baf(0x147))/0x9+-parseInt(_0x4c5baf(0x146))/0xa;if(_0x4c04e6===_0x3105bd)break;else _0x57d70f['push'](_0x57d70f['shift']());}catch(_0x624b4c){_0x57d70f['push'](_0x57d70f['shift']());}}}(a62_0x283f,0xaf554));import{readScopedConfig}from'../../commands/config/shared.js';function a62_0x283f(){const _0xc8318c=['List\x20all\x20config\x20values','bool','config','4654800WjAuWn','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','list','10997AAFFTz','2090255tSKtEv','1368176czwdiq','3GIfUok','344334MRwsqN','4578MzGdyf','read','global','4HCdHiW','22553140zSUWkN','3789945uDfivn'];a62_0x283f=function(){return _0xc8318c;};return a62_0x283f();}import{readConfig}from'../../utils/config.js';async function execute(_0x525b8f){const _0x3089d4=a62_0x238f,_0x38d1ba=_0x525b8f[_0x3089d4(0x149)](_0x3089d4(0x144))?readScopedConfig(_0x3089d4(0x144)):readConfig();return{'ok':!![],'data':_0x38d1ba};}function a62_0x238f(_0x3ce7e5,_0x36f5ff){_0x3ce7e5=_0x3ce7e5-0x13d;const _0x283f1f=a62_0x283f();let _0x238f8a=_0x283f1f[_0x3ce7e5];return _0x238f8a;}export const configListDefinition={'service':a62_0x40b553(0x14a),'command':a62_0x40b553(0x14d),'description':a62_0x40b553(0x148),'risk':a62_0x40b553(0x143),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'global','type':'boolean','description':a62_0x40b553(0x14c),'default':![]}],'execute':execute};
1
+ const a62_0x5a0e80=a62_0x252b;(function(_0x3a5d15,_0x37a883){const _0x160fe5=a62_0x252b,_0x18553c=_0x3a5d15();while(!![]){try{const _0x1eef4e=parseInt(_0x160fe5(0x159))/0x1+parseInt(_0x160fe5(0x150))/0x2*(parseInt(_0x160fe5(0x14c))/0x3)+-parseInt(_0x160fe5(0x155))/0x4*(-parseInt(_0x160fe5(0x151))/0x5)+parseInt(_0x160fe5(0x156))/0x6+parseInt(_0x160fe5(0x14b))/0x7*(-parseInt(_0x160fe5(0x15c))/0x8)+-parseInt(_0x160fe5(0x158))/0x9*(-parseInt(_0x160fe5(0x15a))/0xa)+-parseInt(_0x160fe5(0x153))/0xb;if(_0x1eef4e===_0x37a883)break;else _0x18553c['push'](_0x18553c['shift']());}catch(_0x397bd2){_0x18553c['push'](_0x18553c['shift']());}}}(a62_0x2443,0xb26dd));import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0x4b3cc3){const _0xeb1739=a62_0x252b,_0x5b63be=_0x4b3cc3[_0xeb1739(0x154)](_0xeb1739(0x15b))?readScopedConfig('global'):readConfig();return{'ok':!![],'data':_0x5b63be};}function a62_0x252b(_0x2b042a,_0x2a6de6){_0x2b042a=_0x2b042a-0x14b;const _0x2443d0=a62_0x2443();let _0x252bd8=_0x2443d0[_0x2b042a];return _0x252bd8;}function a62_0x2443(){const _0x5dff12=['20979002SxHIQg','bool','1423868YsSawq','6901614pEyALn','read','9GNowpK','1135823GUaLbu','1040210DWIfXB','global','5883736SOMUif','7DTYdTx','814341FKGiDf','config','list','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','2JaGFxO','10KwIvXf','List\x20all\x20config\x20values'];a62_0x2443=function(){return _0x5dff12;};return a62_0x2443();}export const configListDefinition={'service':a62_0x5a0e80(0x14d),'command':a62_0x5a0e80(0x14e),'description':a62_0x5a0e80(0x152),'risk':a62_0x5a0e80(0x157),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a62_0x5a0e80(0x15b),'type':'boolean','description':a62_0x5a0e80(0x14f),'default':![]}],'execute':execute};
@@ -1 +1 @@
1
- function a63_0x4f5f(){const _0x1c35b4=['466300fUJVrF','Set\x20a\x20config\x20value','length','config','964899RdldPP','locale','633402IPVDna','Config\x20value','56886EbfsZh','\x20workspace\x20add\x20<name>\x20--appcode\x20','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','21FXICTY','join','Global','object','keys','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','str','env','Missing\x20value.','appcode','bool','value','Invalid\x20locale\x20value.','string','Usage:\x20','app','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','\x22.\x20Allowed:\x20','Missing\x20key.','key','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','\x20set\x20to:\x20','\x20(stored\x20as\x20a\x20single\x20app\x20profile)','25014630hSmeeM','8535pcQtOQ','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','Settable\x20top-level\x20keys:\x20','Top-level\x20key\x20\x22','validation','Project','global','1885016BeZPAD','3lQRODU','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','1668JpbMUw','apps','`,\x20`','boolean','\x20appcode\x20set\x20to:\x20','riskLevel','includes','set'];a63_0x4f5f=function(){return _0x1c35b4;};return a63_0x4f5f();}const a63_0x3f3fd3=a63_0x479b;(function(_0x18bcf9,_0x4f342e){const _0x124179=a63_0x479b,_0x274a68=_0x18bcf9();while(!![]){try{const _0x3922d1=parseInt(_0x124179(0x1ca))/0x1*(-parseInt(_0x124179(0x1d4))/0x2)+-parseInt(_0x124179(0x1a6))/0x3+-parseInt(_0x124179(0x1cc))/0x4*(parseInt(_0x124179(0x1c2))/0x5)+-parseInt(_0x124179(0x1a4))/0x6+-parseInt(_0x124179(0x1a9))/0x7*(parseInt(_0x124179(0x1c9))/0x8)+parseInt(_0x124179(0x1d8))/0x9+parseInt(_0x124179(0x1c1))/0xa;if(_0x3922d1===_0x4f342e)break;else _0x274a68['push'](_0x274a68['shift']());}catch(_0x5a8532){_0x274a68['push'](_0x274a68['shift']());}}}(a63_0x4f5f,0x595ab));import{CliErrors}from'../../errors.js';function a63_0x479b(_0x3afac1,_0x1c4ca7){_0x3afac1=_0x3afac1-0x1a3;const _0x4f5f80=a63_0x4f5f();let _0x479b31=_0x4f5f80[_0x3afac1];return _0x479b31;}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(_0x4fd83f){const _0x242fe6=a63_0x479b,_0x524b06=_0x4fd83f[_0x242fe6(0x1af)](_0x242fe6(0x1bc)),_0x4e97f9=_0x4fd83f[_0x242fe6(0x1af)](_0x242fe6(0x1b4));if(!_0x524b06)throw CliErrors[_0x242fe6(0x1c6)](_0x242fe6(0x1bb),_0x242fe6(0x1b7)+CLI_BIN_NAME+_0x242fe6(0x1bd));if(_0x4e97f9===undefined||_0x4e97f9==='')throw CliErrors['validation'](_0x242fe6(0x1b1),_0x242fe6(0x1b7)+CLI_BIN_NAME+'\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>');let _0x3c5610=_0x524b06,_0x13f78b=_0x4e97f9;if(_0x4e97f9[_0x242fe6(0x1d6)]>0x1f4)throw CliErrors[_0x242fe6(0x1c6)](_0x242fe6(0x1be));if(_0x524b06===_0x242fe6(0x1d1))throw CliErrors[_0x242fe6(0x1c6)](_0x242fe6(0x1ae));if(!isTopLevelConfigKey(_0x524b06))throw CliErrors[_0x242fe6(0x1c6)](_0x242fe6(0x1c5)+_0x524b06+'\x22\x20is\x20not\x20settable.',_0x242fe6(0x1c4)+getTopLevelConfigKeySummary());if(CONFIG_ENUM_VALUES[_0x524b06]&&!CONFIG_ENUM_VALUES[_0x524b06]['includes'](_0x4e97f9))throw CliErrors[_0x242fe6(0x1c6)]('Invalid\x20value\x20for\x20\x22'+_0x524b06+_0x242fe6(0x1ba)+CONFIG_ENUM_VALUES[_0x524b06][_0x242fe6(0x1aa)](',\x20'));if(_0x524b06===_0x242fe6(0x1a3)&&!normalizeLocale(_0x4e97f9))throw CliErrors[_0x242fe6(0x1c6)](_0x242fe6(0x1b5),'Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US');DOMAIN_CONFIG_FIELDS[_0x242fe6(0x1d2)](_0x524b06)&&(_0x13f78b=normalizeDomainOrigin(_0x524b06,_0x4e97f9));const _0xca217b={'global':_0x4fd83f[_0x242fe6(0x1b3)](_0x242fe6(0x1c8))},_0x239300=resolveWriteScope(_0xca217b),_0x577de0=readScopedConfig(_0x239300);_0x524b06==='app'&&(_0x3c5610='appcode',delete _0x577de0[_0x242fe6(0x1b8)]);_0x524b06===_0x242fe6(0x1a3)&&(_0x13f78b=normalizeLocale(_0x4e97f9));if(_0x524b06===_0x242fe6(0x1b0)){_0x13f78b=normalizeEnv(_0x4e97f9);if(!isProduction(_0x13f78b)&&!isDaily(_0x13f78b))throw CliErrors[_0x242fe6(0x1c6)](_0x242fe6(0x1a8),_0x242fe6(0x1c3));}if(_0x524b06===_0x242fe6(0x1b2)){const _0x3ea5ad=_0x577de0['apps']&&typeof _0x577de0[_0x242fe6(0x1cd)]===_0x242fe6(0x1ac)?Object[_0x242fe6(0x1ad)](_0x577de0[_0x242fe6(0x1cd)]):[];if(_0x3ea5ad[_0x242fe6(0x1d6)]>0x0)throw CliErrors['validation'](_0x242fe6(0x1b9),'Use\x20`'+CLI_BIN_NAME+_0x242fe6(0x1a7)+_0x13f78b+_0x242fe6(0x1ce)+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.');const _0x475607=buildCanonicalProjectConfig({..._0x577de0},{'appCodes':[_0x13f78b],'env':typeof _0x577de0[_0x242fe6(0x1b0)]==='string'?_0x577de0[_0x242fe6(0x1b0)]:undefined});writeScopedConfig(_0x475607,_0x239300);const _0x1bea79=_0x239300===_0x242fe6(0x1c8)?'Global':_0x242fe6(0x1c7);return{'ok':!![],'message':'✓\x20'+_0x1bea79+_0x242fe6(0x1d0)+_0x13f78b+_0x242fe6(0x1c0)};}_0x577de0[_0x3c5610]=_0x13f78b,writeScopedConfig(_0x577de0,_0x239300);const _0x41be92=_0x239300===_0x242fe6(0x1c8)?_0x242fe6(0x1ab):_0x242fe6(0x1c7);return{'ok':!![],'message':'✓\x20'+_0x41be92+'\x20'+_0x3c5610+_0x242fe6(0x1bf)+_0x13f78b};}export const configSetDefinition={'service':a63_0x3f3fd3(0x1d7),'command':a63_0x3f3fd3(0x1d3),'description':a63_0x3f3fd3(0x1d5),'risk':'write','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a63_0x3f3fd3(0x1bc),'type':a63_0x3f3fd3(0x1b6),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a63_0x3f3fd3(0x1b4),'type':'string','description':a63_0x3f3fd3(0x1a5),'required':!![]},{'name':'global','type':a63_0x3f3fd3(0x1cf),'description':a63_0x3f3fd3(0x1cb),'default':![]}],'execute':execute};
1
+ const a63_0x281822=a63_0x31fe;(function(_0x53db19,_0x2f49de){const _0x3b3f38=a63_0x31fe,_0x4922b8=_0x53db19();while(!![]){try{const _0x12e77f=-parseInt(_0x3b3f38(0x1a4))/0x1+-parseInt(_0x3b3f38(0x1a0))/0x2+parseInt(_0x3b3f38(0x18f))/0x3*(parseInt(_0x3b3f38(0x19b))/0x4)+parseInt(_0x3b3f38(0x19a))/0x5*(parseInt(_0x3b3f38(0x189))/0x6)+-parseInt(_0x3b3f38(0x1af))/0x7+-parseInt(_0x3b3f38(0x196))/0x8*(parseInt(_0x3b3f38(0x18e))/0x9)+parseInt(_0x3b3f38(0x192))/0xa*(parseInt(_0x3b3f38(0x184))/0xb);if(_0x12e77f===_0x2f49de)break;else _0x4922b8['push'](_0x4922b8['shift']());}catch(_0x500e5c){_0x4922b8['push'](_0x4922b8['shift']());}}}(a63_0x2657,0xd219b));import{CliErrors}from'../../errors.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';import{CLI_BIN_NAME,CONFIG_ENUM_VALUES,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';function a63_0x2657(){const _0x115c7b=['Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','Missing\x20value.','includes','Invalid\x20locale\x20value.','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','22qQzrKJ','app','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','global','`,\x20`','366846vwmXkv','Usage:\x20','Set\x20a\x20config\x20value','write','\x22\x20is\x20not\x20settable.','1602vvoIEW','3413493DbsNBK','\x20workspace\x20use\x20--app\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','boolean','13579160FgMKLD','env','value','Global','69544qBpWZc','riskLevel','appcode','\x20(stored\x20as\x20a\x20single\x20app\x20profile)','115pwPrEq','4xPgjAA','config','keys','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','Config\x20value','2607118TTaSaX','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','string','key','331612ZsUVkB','Use\x20`','Top-level\x20key\x20\x22','validation','\x20set\x20to:\x20','Project','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','Settable\x20top-level\x20keys:\x20','str','bool','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','8517670vSzZNr','Missing\x20key.','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','apps','length'];a63_0x2657=function(){return _0x115c7b;};return a63_0x2657();}import{normalizeEnv,isProduction,isDaily}from'../../constant/env.js';function a63_0x31fe(_0x1d3714,_0x473854){_0x1d3714=_0x1d3714-0x17d;const _0x2657ec=a63_0x2657();let _0x31fee0=_0x2657ec[_0x1d3714];return _0x31fee0;}import{DOMAIN_CONFIG_FIELDS,normalizeDomainOrigin}from'../../config/domain-config.js';async function execute(_0xa42b3b){const _0x1831fe=a63_0x31fe,_0x470e62=_0xa42b3b[_0x1831fe(0x1ac)](_0x1831fe(0x1a3)),_0x22b736=_0xa42b3b['str'](_0x1831fe(0x194));if(!_0x470e62)throw CliErrors[_0x1831fe(0x1a7)](_0x1831fe(0x1b0),_0x1831fe(0x18a)+CLI_BIN_NAME+_0x1831fe(0x1aa));if(_0x22b736===undefined||_0x22b736==='')throw CliErrors[_0x1831fe(0x1a7)](_0x1831fe(0x180),_0x1831fe(0x18a)+CLI_BIN_NAME+_0x1831fe(0x1aa));let _0x18c4ce=_0x470e62,_0x58e3d8=_0x22b736;if(_0x22b736['length']>0x1f4)throw CliErrors[_0x1831fe(0x1a7)](_0x1831fe(0x183));if(_0x470e62===_0x1831fe(0x197))throw CliErrors[_0x1831fe(0x1a7)](_0x1831fe(0x186));if(!isTopLevelConfigKey(_0x470e62))throw CliErrors['validation'](_0x1831fe(0x1a6)+_0x470e62+_0x1831fe(0x18d),_0x1831fe(0x1ab)+getTopLevelConfigKeySummary());if(CONFIG_ENUM_VALUES[_0x470e62]&&!CONFIG_ENUM_VALUES[_0x470e62][_0x1831fe(0x181)](_0x22b736))throw CliErrors[_0x1831fe(0x1a7)]('Invalid\x20value\x20for\x20\x22'+_0x470e62+'\x22.\x20Allowed:\x20'+CONFIG_ENUM_VALUES[_0x470e62]['join'](',\x20'));if(_0x470e62==='locale'&&!normalizeLocale(_0x22b736))throw CliErrors[_0x1831fe(0x1a7)](_0x1831fe(0x182),_0x1831fe(0x19e));DOMAIN_CONFIG_FIELDS['includes'](_0x470e62)&&(_0x58e3d8=normalizeDomainOrigin(_0x470e62,_0x22b736));const _0x34b8d9={'global':_0xa42b3b[_0x1831fe(0x1ad)](_0x1831fe(0x187))},_0x395df4=resolveWriteScope(_0x34b8d9),_0x2f03fe=readScopedConfig(_0x395df4);_0x470e62==='app'&&(_0x18c4ce=_0x1831fe(0x198),delete _0x2f03fe[_0x1831fe(0x185)]);_0x470e62==='locale'&&(_0x58e3d8=normalizeLocale(_0x22b736));if(_0x470e62==='env'){_0x58e3d8=normalizeEnv(_0x22b736);if(!isProduction(_0x58e3d8)&&!isDaily(_0x58e3d8))throw CliErrors[_0x1831fe(0x1a7)](_0x1831fe(0x17f),_0x1831fe(0x1ae));}if(_0x470e62===_0x1831fe(0x198)){const _0x1178ea=_0x2f03fe[_0x1831fe(0x17d)]&&typeof _0x2f03fe[_0x1831fe(0x17d)]==='object'?Object[_0x1831fe(0x19d)](_0x2f03fe[_0x1831fe(0x17d)]):[];if(_0x1178ea[_0x1831fe(0x17e)]>0x0)throw CliErrors[_0x1831fe(0x1a7)](_0x1831fe(0x1a1),_0x1831fe(0x1a5)+CLI_BIN_NAME+'\x20workspace\x20add\x20<name>\x20--appcode\x20'+_0x58e3d8+_0x1831fe(0x188)+CLI_BIN_NAME+_0x1831fe(0x190));const _0x484854=buildCanonicalProjectConfig({..._0x2f03fe},{'appCodes':[_0x58e3d8],'env':typeof _0x2f03fe[_0x1831fe(0x193)]===_0x1831fe(0x1a2)?_0x2f03fe[_0x1831fe(0x193)]:undefined});writeScopedConfig(_0x484854,_0x395df4);const _0xcb122a=_0x395df4===_0x1831fe(0x187)?_0x1831fe(0x195):_0x1831fe(0x1a9);return{'ok':!![],'message':'✓\x20'+_0xcb122a+'\x20appcode\x20set\x20to:\x20'+_0x58e3d8+_0x1831fe(0x199)};}_0x2f03fe[_0x18c4ce]=_0x58e3d8,writeScopedConfig(_0x2f03fe,_0x395df4);const _0x594120=_0x395df4===_0x1831fe(0x187)?_0x1831fe(0x195):_0x1831fe(0x1a9);return{'ok':!![],'message':'✓\x20'+_0x594120+'\x20'+_0x18c4ce+_0x1831fe(0x1a8)+_0x58e3d8};}export const configSetDefinition={'service':a63_0x281822(0x19c),'command':'set','description':a63_0x281822(0x18b),'risk':a63_0x281822(0x18c),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a63_0x281822(0x1a3),'type':a63_0x281822(0x1a2),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a63_0x281822(0x194),'type':a63_0x281822(0x1a2),'description':a63_0x281822(0x19f),'required':!![]},{'name':a63_0x281822(0x187),'type':a63_0x281822(0x191),'description':a63_0x281822(0x1b1),'default':![]}],'execute':execute};
@@ -1 +1 @@
1
- (function(_0x125d65,_0x3a2a60){var _0x4d141d=a64_0x1a85,_0x5cf90a=_0x125d65();while(!![]){try{var _0x432680=parseInt(_0x4d141d(0xae))/0x1*(-parseInt(_0x4d141d(0xa9))/0x2)+-parseInt(_0x4d141d(0xac))/0x3*(-parseInt(_0x4d141d(0xa4))/0x4)+parseInt(_0x4d141d(0xaf))/0x5+parseInt(_0x4d141d(0xa3))/0x6*(-parseInt(_0x4d141d(0xb2))/0x7)+-parseInt(_0x4d141d(0xa8))/0x8*(-parseInt(_0x4d141d(0xad))/0x9)+parseInt(_0x4d141d(0xa6))/0xa*(-parseInt(_0x4d141d(0xb3))/0xb)+parseInt(_0x4d141d(0xa5))/0xc;if(_0x432680===_0x3a2a60)break;else _0x5cf90a['push'](_0x5cf90a['shift']());}catch(_0x46012c){_0x5cf90a['push'](_0x5cf90a['shift']());}}}(a64_0x325e,0x8052f));function a64_0x1a85(_0x16561d,_0x55e6c1){_0x16561d=_0x16561d-0xa3;var _0x325e49=a64_0x325e();var _0x1a854d=_0x325e49[_0x16561d];return _0x1a854d;}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};function a64_0x325e(){var _0x28972c=['583TmibkB','56604WRkEwG','8mvvVle','6723000hvALkv','135230QJRFed','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','68648bHKGWw','1390MIkAFz','global','\x20workspace\x20init\x20--appcode\x20<code>`\x20first.','892383GnIVbT','342guHlrY','267brSLwQ','2516275KryhlL','project','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','413UYgcKE'];a64_0x325e=function(){return _0x28972c;};return a64_0x325e();}export{normalizeLocale};export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0x203a68){var _0x2f3341=a64_0x1a85;if(_0x203a68[_0x2f3341(0xaa)])return _0x2f3341(0xaa);if(!isInProject())throw CliErrors['validation'](_0x2f3341(0xb1),_0x2f3341(0xa7)+CLI_BIN_NAME+_0x2f3341(0xab));return _0x2f3341(0xb0);}export function readScopedConfig(_0x3b7e9c){return readConfigFile(resolveWriteConfigPath(_0x3b7e9c));}export function writeScopedConfig(_0x1afca4,_0xf55afa){writeConfigFile(resolveWriteConfigPath(_0xf55afa),_0x1afca4);}
1
+ (function(_0x3d1224,_0x3636cf){var _0x45e051=a64_0x3c5e,_0x58b263=_0x3d1224();while(!![]){try{var _0x1f23c8=-parseInt(_0x45e051(0x146))/0x1*(-parseInt(_0x45e051(0x13f))/0x2)+-parseInt(_0x45e051(0x143))/0x3+parseInt(_0x45e051(0x141))/0x4*(-parseInt(_0x45e051(0x149))/0x5)+parseInt(_0x45e051(0x147))/0x6*(parseInt(_0x45e051(0x148))/0x7)+parseInt(_0x45e051(0x14d))/0x8*(parseInt(_0x45e051(0x150))/0x9)+parseInt(_0x45e051(0x14c))/0xa+parseInt(_0x45e051(0x140))/0xb*(parseInt(_0x45e051(0x14f))/0xc);if(_0x1f23c8===_0x3636cf)break;else _0x58b263['push'](_0x58b263['shift']());}catch(_0xdbee14){_0x58b263['push'](_0x58b263['shift']());}}}(a64_0x3911,0x3da6f));import{CLI_BIN_NAME}from'../../constant/cli.js';function a64_0x3911(){var _0x249d6d=['2lYbTkr','8261BnQbIO','1860900zJickh','\x20workspace\x20init\x20--appcode\x20<code>`\x20first.','391353GJimnn','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','global','200917DiTOgb','19212uyNKGZ','7cKjpkW','5bRvywX','validation','project','2098620oYaVIH','1416mcLWum','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','4704FKUyGz','7110QZhEiH'];a64_0x3911=function(){return _0x249d6d;};return a64_0x3911();}function a64_0x3c5e(_0x2b0f36,_0x23b2db){_0x2b0f36=_0x2b0f36-0x13f;var _0x3911e5=a64_0x3911();var _0x3c5e42=_0x3911e5[_0x2b0f36];return _0x3c5e42;}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(_0x401739){var _0x4be867=a64_0x3c5e;if(_0x401739[_0x4be867(0x145)])return _0x4be867(0x145);if(!isInProject())throw CliErrors[_0x4be867(0x14a)](_0x4be867(0x144),_0x4be867(0x14e)+CLI_BIN_NAME+_0x4be867(0x142));return _0x4be867(0x14b);}export function readScopedConfig(_0x45681f){return readConfigFile(resolveWriteConfigPath(_0x45681f));}export function writeScopedConfig(_0x1fe805,_0x421f56){writeConfigFile(resolveWriteConfigPath(_0x421f56),_0x1fe805);}
@@ -1 +1 @@
1
- const a65_0x306f5e=a65_0xf5e6;(function(_0x18411a,_0x4177b0){const _0x292b4e=a65_0xf5e6,_0x40f023=_0x18411a();while(!![]){try{const _0x90acce=-parseInt(_0x292b4e(0x1fa))/0x1*(parseInt(_0x292b4e(0x221))/0x2)+parseInt(_0x292b4e(0x1f6))/0x3+parseInt(_0x292b4e(0x23a))/0x4*(-parseInt(_0x292b4e(0x1dd))/0x5)+-parseInt(_0x292b4e(0x242))/0x6*(-parseInt(_0x292b4e(0x20f))/0x7)+-parseInt(_0x292b4e(0x219))/0x8*(-parseInt(_0x292b4e(0x1e2))/0x9)+-parseInt(_0x292b4e(0x1f7))/0xa*(-parseInt(_0x292b4e(0x1fc))/0xb)+-parseInt(_0x292b4e(0x1e3))/0xc*(parseInt(_0x292b4e(0x215))/0xd);if(_0x90acce===_0x4177b0)break;else _0x40f023['push'](_0x40f023['shift']());}catch(_0x47a4be){_0x40f023['push'](_0x40f023['shift']());}}}(a65_0x2668,0x39c1b));import{CliErrors}from'../../errors.js';const LOCAL_KEY=/^[a-z][a-z0-9_]{0,63}$/,SUPPORTED_CARDINALITIES=new Set([a65_0x306f5e(0x216),a65_0x306f5e(0x202)]),SUPPORTED_FIELD_TYPES=new Set([a65_0x306f5e(0x1eb),a65_0x306f5e(0x220),a65_0x306f5e(0x21c),a65_0x306f5e(0x235),a65_0x306f5e(0x1e6),'MULTI_SELECT',a65_0x306f5e(0x212),a65_0x306f5e(0x241),a65_0x306f5e(0x226),a65_0x306f5e(0x22b)]);export function isDatasetBatchDesign(_0x179a82){const _0x3e11b0=a65_0x306f5e;return isObject(_0x179a82)&&_0x179a82[_0x3e11b0(0x225)]===_0x3e11b0(0x224);}export function validateDatasetBatchDesign(_0x238438){const _0x2e8ea4=a65_0x306f5e;(!isObject(_0x238438)||_0x238438[_0x2e8ea4(0x225)]!==_0x2e8ea4(0x224))&&fail(_0x2e8ea4(0x234));_0x238438[_0x2e8ea4(0x222)]!==0x1&&fail(_0x2e8ea4(0x20c));const _0x2dcfa2=objectArray(_0x238438['datasets'],_0x2e8ea4(0x236),0x1,0x14),_0x31e861=objectArray(_0x238438['relations'],_0x2e8ea4(0x1f9),0x0,0xc8),_0x5c4b5e=objectArray(_0x238438['unresolvedRelations'],_0x2e8ea4(0x233),0x0,0xc8),_0x5774c6=new Set(),_0x525275=new Map();for(const [_0x5822c3,_0x5bc160]of _0x2dcfa2['entries']()){const _0x465c5c=requiredString(_0x5bc160[_0x2e8ea4(0x246)],_0x2e8ea4(0x1f4)+_0x5822c3+_0x2e8ea4(0x1ef));!LOCAL_KEY['test'](_0x465c5c)&&fail(_0x2e8ea4(0x1f4)+_0x5822c3+_0x2e8ea4(0x240)+LOCAL_KEY[_0x2e8ea4(0x21d)]+'.');_0x5774c6[_0x2e8ea4(0x1db)](_0x465c5c)&&fail(_0x2e8ea4(0x248));_0x5774c6[_0x2e8ea4(0x213)](_0x465c5c);!isObject(_0x5bc160[_0x2e8ea4(0x1fe)])&&fail(_0x2e8ea4(0x1f4)+_0x5822c3+_0x2e8ea4(0x23e));rejectServerDatasetIdentity(_0x5bc160['design'],_0x2e8ea4(0x1f4)+_0x5822c3+_0x2e8ea4(0x22a));if(!isObject(_0x5bc160[_0x2e8ea4(0x1fe)][_0x2e8ea4(0x237)]))fail('datasets['+_0x5822c3+'].design.dataset\x20must\x20be\x20an\x20object.');rejectServerDatasetIdentity(_0x5bc160[_0x2e8ea4(0x1fe)][_0x2e8ea4(0x237)],_0x2e8ea4(0x1f4)+_0x5822c3+'].design.dataset'),requiredString(_0x5bc160[_0x2e8ea4(0x1fe)][_0x2e8ea4(0x237)][_0x2e8ea4(0x1fd)],_0x2e8ea4(0x1f4)+_0x5822c3+'].design.dataset.datasetName');_0x2e8ea4(0x1f9)in _0x5bc160['design']&&(!Array[_0x2e8ea4(0x244)](_0x5bc160[_0x2e8ea4(0x1fe)]['relations'])||_0x5bc160[_0x2e8ea4(0x1fe)][_0x2e8ea4(0x1f9)]['length']!==0x0)&&fail(_0x2e8ea4(0x1f4)+_0x5822c3+_0x2e8ea4(0x218));const _0x238602=objectArray(_0x5bc160['design']['fields'],'datasets['+_0x5822c3+_0x2e8ea4(0x1f0),0x1,0xc8),_0x3a797c=new Map();for(const [_0x2c7662,_0x5718b7]of _0x238602[_0x2e8ea4(0x21b)]()){const _0xcf02e=fieldName(_0x5718b7);if(!_0xcf02e)fail(_0x2e8ea4(0x1f4)+_0x5822c3+_0x2e8ea4(0x249)+_0x2c7662+']\x20must\x20have\x20a\x20non-empty\x20name\x20or\x20code.');const _0x2cf3d9=_0xcf02e['toLowerCase']();if(_0x3a797c[_0x2e8ea4(0x1db)](_0x2cf3d9))fail(_0x2e8ea4(0x207)+_0x465c5c+_0x2e8ea4(0x23f));const _0x215d4c=stringValue(_0x5718b7[_0x2e8ea4(0x206)]??_0x5718b7[_0x2e8ea4(0x217)])[_0x2e8ea4(0x1ff)]();if(!SUPPORTED_FIELD_TYPES[_0x2e8ea4(0x1db)](_0x215d4c))fail('datasets['+_0x5822c3+_0x2e8ea4(0x249)+_0x2c7662+_0x2e8ea4(0x214));_0x3a797c['set'](_0x2cf3d9,_0x215d4c),[_0x5718b7['refTable'],_0x5718b7[_0x2e8ea4(0x1e4)],_0x5718b7['refTableLabelField']]['some'](_0x529045=>stringValue(_0x529045))&&fail(_0x2e8ea4(0x1f4)+_0x5822c3+_0x2e8ea4(0x249)+_0x2c7662+_0x2e8ea4(0x205));}_0x525275[_0x2e8ea4(0x1de)](_0x465c5c,_0x3a797c);}const _0x24c49d=new Set(),_0x8d6f01=new Set();for(const [_0x4b79a6,_0x5eb37f]of _0x31e861['entries']()){const _0x437d2d=validateRelation(_0x5eb37f,_0x4b79a6,_0x5774c6,_0x525275);if(_0x24c49d[_0x2e8ea4(0x1db)](_0x437d2d))fail(_0x2e8ea4(0x238));_0x24c49d[_0x2e8ea4(0x213)](_0x437d2d);const _0x18eefb=_0x437d2d[_0x2e8ea4(0x20b)]('\x00',0x2)[_0x2e8ea4(0x1f5)]('\x00');if(_0x8d6f01[_0x2e8ea4(0x1db)](_0x18eefb))fail(_0x2e8ea4(0x231));_0x8d6f01[_0x2e8ea4(0x213)](_0x18eefb);}for(const [_0x10a4a6,_0x3fed39]of _0x5c4b5e[_0x2e8ea4(0x21b)]()){requiredString(_0x3fed39['reason'],_0x2e8ea4(0x245)+_0x10a4a6+'].reason'),validateConfidence(_0x3fed39[_0x2e8ea4(0x229)],_0x2e8ea4(0x245)+_0x10a4a6+_0x2e8ea4(0x200));}return _0x238438;}export function reconcileBatchResult(_0x34c750){const _0x4b066f=a65_0x306f5e;if(!isObject(_0x34c750))return null;try{const _0xd63298=stringArray(_0x34c750[_0x4b066f(0x228)],_0x4b066f(0x228),0x1,0x14),_0x4f8d7a=new Set(_0xd63298);if(_0x4f8d7a[_0x4b066f(0x21f)]!==_0xd63298[_0x4b066f(0x1ee)]||_0xd63298[_0x4b066f(0x1e8)](_0x540756=>!LOCAL_KEY['test'](_0x540756)))return null;const _0x2d7c1a=objectArray(_0x34c750[_0x4b066f(0x1ea)],_0x4b066f(0x1ea),0x1,0x14),_0x4d30df=new Map(),_0x577ee4=new Set();for(const _0x3ca115 of _0x2d7c1a){const _0x2d4b0e=requiredString(_0x3ca115[_0x4b066f(0x246)],'createdDatasets[].localKey'),_0x372c60=requiredString(_0x3ca115[_0x4b066f(0x1f1)]??_0x3ca115[_0x4b066f(0x21e)],_0x4b066f(0x211));if(_0x4d30df['has'](_0x2d4b0e)||_0x577ee4[_0x4b066f(0x1db)](_0x372c60))return null;_0x4d30df['set'](_0x2d4b0e,_0x372c60),_0x577ee4['add'](_0x372c60);}if(!sameSet(_0x4f8d7a,new Set(_0x4d30df['keys']())))return null;const _0x439eb9=objectArray(_0x34c750[_0x4b066f(0x22d)],_0x4b066f(0x22d),0x0,0xc8),_0x247918=objectArray(_0x34c750['createdRelations'],_0x4b066f(0x1f3),0x0,0xc8),_0x3203e1=relationTupleSet(_0x439eb9,![],_0x4d30df),_0x4b6a7b=relationTupleSet(_0x247918,!![],_0x4d30df);if(!_0x3203e1||!_0x4b6a7b||!sameSet(_0x3203e1,_0x4b6a7b))return null;const _0x50d4d5=objectArray(_0x34c750[_0x4b066f(0x233)],'unresolvedRelations',0x0,0xc8);return{'expectedLocalKeys':_0xd63298,'expectedRelations':_0x439eb9,'createdDatasets':_0x2d7c1a,'createdRelations':_0x247918,'unresolvedRelations':_0x50d4d5,...isObject(_0x34c750['metrics'])?{'metrics':_0x34c750[_0x4b066f(0x23d)]}:{}};}catch{return null;}}function validateRelation(_0x2ec26a,_0x45b263,_0x402c02,_0x3f6b3e){const _0x1c6919=a65_0x306f5e,_0xbc7f7=_0x1c6919(0x1e1)+_0x45b263+']',_0x1d9a15=requiredString(_0x2ec26a[_0x1c6919(0x1fb)],_0xbc7f7+'.fromDatasetKey'),_0x4db681=requiredString(_0x2ec26a[_0x1c6919(0x23c)],_0xbc7f7+'.toDatasetKey'),_0x213658=requiredString(_0x2ec26a[_0x1c6919(0x1f8)],_0xbc7f7+_0x1c6919(0x1f2))[_0x1c6919(0x21a)](),_0x14833a=requiredString(_0x2ec26a[_0x1c6919(0x208)],_0xbc7f7+_0x1c6919(0x20a))['toLowerCase']();if(!_0x402c02[_0x1c6919(0x1db)](_0x1d9a15)||!_0x402c02[_0x1c6919(0x1db)](_0x4db681))fail(_0xbc7f7+_0x1c6919(0x232));const _0x1534e9=_0x3f6b3e[_0x1c6919(0x22c)](_0x1d9a15)?.[_0x1c6919(0x22c)](_0x213658),_0x8023b4=_0x3f6b3e[_0x1c6919(0x22c)](_0x4db681)?.[_0x1c6919(0x22c)](_0x14833a);if(_0x1534e9===undefined||_0x8023b4===undefined)fail(_0xbc7f7+_0x1c6919(0x1dc));if(_0x1534e9&&_0x8023b4&&_0x1534e9!==_0x8023b4)fail(_0xbc7f7+_0x1c6919(0x230));const _0xaeebb0=stringValue(_0x2ec26a[_0x1c6919(0x209)])||_0x1c6919(0x203);if(_0xaeebb0!==_0x1c6919(0x203))fail(_0xbc7f7+_0x1c6919(0x22f));const _0x50e203=stringValue(_0x2ec26a[_0x1c6919(0x22e)])||_0x1c6919(0x216);if(!SUPPORTED_CARDINALITIES[_0x1c6919(0x1db)](_0x50e203))fail(_0xbc7f7+'.cardinality\x20is\x20not\x20supported.');return requiredString(_0x2ec26a['reason'],_0xbc7f7+_0x1c6919(0x1e5)),validateConfidence(_0x2ec26a[_0x1c6919(0x229)],_0xbc7f7+_0x1c6919(0x1ed)),tuple(_0x1d9a15,_0x213658,_0x4db681,_0x14833a,_0x1c6919(0x203),_0x50e203);}function relationTupleSet(_0x4b85c9,_0x2c2512,_0x4df29d){const _0x3d3256=a65_0x306f5e,_0xceed8e=new Set();for(const _0x505262 of _0x4b85c9){const _0x4d4822=stringValue(_0x505262[_0x3d3256(0x1fb)]),_0x528b74=stringValue(_0x505262['toDatasetKey']),_0x3a1fe4=stringValue(_0x505262[_0x3d3256(0x1f8)])[_0x3d3256(0x21a)](),_0x4914ba=stringValue(_0x505262['toField'])[_0x3d3256(0x21a)](),_0x8a40d=stringValue(_0x505262[_0x3d3256(0x209)]),_0x1de28b=stringValue(_0x505262[_0x3d3256(0x22e)]);if(!_0x4d4822||!_0x528b74||!_0x3a1fe4||!_0x4914ba||_0x8a40d!=='lookup'||!SUPPORTED_CARDINALITIES[_0x3d3256(0x1db)](_0x1de28b))return null;if(!_0x4df29d[_0x3d3256(0x1db)](_0x4d4822)||!_0x4df29d[_0x3d3256(0x1db)](_0x528b74))return null;if(_0x2c2512&&(stringValue(_0x505262[_0x3d3256(0x1df)])!==_0x4df29d[_0x3d3256(0x22c)](_0x4d4822)||stringValue(_0x505262[_0x3d3256(0x20e)])!==_0x4df29d[_0x3d3256(0x22c)](_0x528b74)))return null;const _0x46d145=tuple(_0x4d4822,_0x3a1fe4,_0x528b74,_0x4914ba,_0x8a40d,_0x1de28b);if(_0xceed8e[_0x3d3256(0x1db)](_0x46d145))return null;_0xceed8e[_0x3d3256(0x213)](_0x46d145);}return _0xceed8e;}function rejectServerDatasetIdentity(_0x59872b,_0xb888e8){const _0x2a3e72=a65_0x306f5e;for(const _0x12a2e4 of['id','datasetId',_0x2a3e72(0x1e9),_0x2a3e72(0x1f1),_0x2a3e72(0x21e),'modelCode']){if(_0x59872b[_0x12a2e4]!==undefined&&_0x59872b[_0x12a2e4]!==null&&_0x59872b[_0x12a2e4]!=='')fail(_0xb888e8+'.'+_0x12a2e4+_0x2a3e72(0x210));}}function objectArray(_0x128255,_0xbf70ef,_0x20b588,_0x270722){const _0x1dde4b=a65_0x306f5e;return(!Array['isArray'](_0x128255)||_0x128255[_0x1dde4b(0x1ee)]<_0x20b588||_0x128255[_0x1dde4b(0x1ee)]>_0x270722||_0x128255['some'](_0x556d6b=>!isObject(_0x556d6b)))&&fail(_0xbf70ef+_0x1dde4b(0x1e7)+_0x20b588+'..'+_0x270722+'\x20objects.'),_0x128255;}function stringArray(_0x5cdf21,_0xff1f22,_0x391731,_0x9aa248){const _0x595455=a65_0x306f5e;return(!Array['isArray'](_0x5cdf21)||_0x5cdf21[_0x595455(0x1ee)]<_0x391731||_0x5cdf21[_0x595455(0x1ee)]>_0x9aa248||_0x5cdf21[_0x595455(0x1e8)](_0x2d1349=>typeof _0x2d1349!=='string'||!_0x2d1349[_0x595455(0x239)]()))&&fail(_0xff1f22+_0x595455(0x1e7)+_0x391731+'..'+_0x9aa248+'\x20non-empty\x20strings.'),_0x5cdf21;}function requiredString(_0x2eaf66,_0x354e59){const _0x5ed33e=a65_0x306f5e,_0x662cc0=stringValue(_0x2eaf66);if(!_0x662cc0)fail(_0x354e59+_0x5ed33e(0x1ec));return _0x662cc0;}function a65_0x2668(){const _0x1379dc=['Each\x20source\x20field\x20may\x20target\x20at\x20most\x20one\x20relation.','\x20references\x20an\x20unknown\x20dataset\x20localKey.','unresolvedRelations','Batch\x20--design-file\x20must\x20have\x20kind\x20\x22dataset-batch\x22.','BOOLEAN','datasets','dataset','Dataset\x20batch\x20relations\x20must\x20be\x20unique.','trim','13956ScUGyg','map','toDatasetKey','metrics','].design\x20must\x20be\x20an\x20object.','\x20field\x20names\x20must\x20be\x20unique\x20ignoring\x20case.','].localKey\x20must\x20match\x20','USER','6HEYKlx','object','isArray','unresolvedRelations[','localKey','every','Dataset\x20batch\x20localKey\x20values\x20must\x20be\x20unique.','].design.fields[','has','\x20references\x20an\x20unknown\x20field.','395AMAtqX','set','fromDatasetCode','isFinite','relations[','919719oCZsnq','23808aJxmHI','refTableField','.reason','SELECT','\x20must\x20contain\x20','some','modelId','createdDatasets','TEXT','\x20is\x20required.','.confidence','length','].localKey','].design.fields','code','.fromField','createdRelations','datasets[','join','104157kkYrQS','48670nJWFFf','fromField','relations','3mimlSf','fromDatasetKey','781sjtjGV','datasetName','design','toUpperCase','].confidence','string','ONE_TO_ONE','lookup','\x20must\x20be\x20between\x200\x20and\x201.',']\x20must\x20not\x20contain\x20embedded\x20relation\x20references.','type','Dataset\x20','toField','relationType','.toField','split','Dataset\x20batch\x20schemaVersion\x20must\x20be\x201.','fieldName','toDatasetCode','771575yEfomi','\x20must\x20not\x20be\x20supplied\x20by\x20the\x20client.','createdDatasets[].code','DATE_RANGE','add','].type\x20is\x20not\x20supported.','533mgrSRg','MANY_TO_ONE','fieldType','].design.relations\x20must\x20be\x20an\x20empty\x20array;\x20use\x20top-level\x20relations.','16uQhEYt','toLowerCase','entries','DATETIME','source','datasetCode','size','NUMBER','67558kiKSfX','schemaVersion','validation','dataset-batch','kind','ADDRESS','name','expectedLocalKeys','confidence','].design','UPLOAD','get','expectedRelations','cardinality','.relationType\x20must\x20be\x20\x22lookup\x22.','\x20connects\x20incompatible\x20field\x20types.'];a65_0x2668=function(){return _0x1379dc;};return a65_0x2668();}function a65_0xf5e6(_0x18ed93,_0x32d35f){_0x18ed93=_0x18ed93-0x1db;const _0x266813=a65_0x2668();let _0xf5e6d6=_0x266813[_0x18ed93];return _0xf5e6d6;}function stringValue(_0xf146ef){const _0x1330fd=a65_0x306f5e;return typeof _0xf146ef===_0x1330fd(0x201)?_0xf146ef[_0x1330fd(0x239)]():'';}function fieldName(_0x236a0a){const _0x59ef1e=a65_0x306f5e;return stringValue(_0x236a0a[_0x59ef1e(0x1f1)]??_0x236a0a['fieldCode']??_0x236a0a[_0x59ef1e(0x227)]??_0x236a0a[_0x59ef1e(0x20d)]);}function validateConfidence(_0x23f888,_0x336419){const _0xe5e112=a65_0x306f5e;_0x23f888!==undefined&&_0x23f888!==null&&(typeof _0x23f888!=='number'||!Number[_0xe5e112(0x1e0)](_0x23f888)||_0x23f888<0x0||_0x23f888>0x1)&&fail(_0x336419+_0xe5e112(0x204));}function tuple(..._0x500e61){const _0x5b15f2=a65_0x306f5e;return _0x500e61[_0x5b15f2(0x23b)]((_0x631329,_0xd79d77)=>_0xd79d77===0x1||_0xd79d77===0x3?_0x631329['toLowerCase']():_0x631329)[_0x5b15f2(0x1f5)]('\x00');}function sameSet(_0x340960,_0x31a730){const _0x3c6da5=a65_0x306f5e;return _0x340960[_0x3c6da5(0x21f)]===_0x31a730[_0x3c6da5(0x21f)]&&[..._0x340960][_0x3c6da5(0x247)](_0x265b5a=>_0x31a730[_0x3c6da5(0x1db)](_0x265b5a));}function isObject(_0x2492ef){const _0x3317dd=a65_0x306f5e;return typeof _0x2492ef===_0x3317dd(0x243)&&_0x2492ef!==null&&!Array['isArray'](_0x2492ef);}function fail(_0x4de733){const _0x58809c=a65_0x306f5e;throw CliErrors[_0x58809c(0x223)](_0x4de733);}
1
+ const a65_0x40be2e=a65_0x58f4;(function(_0x3803ab,_0xf3d775){const _0x335de1=a65_0x58f4,_0x33351c=_0x3803ab();while(!![]){try{const _0x5abd0b=parseInt(_0x335de1(0x152))/0x1*(-parseInt(_0x335de1(0x161))/0x2)+parseInt(_0x335de1(0x13f))/0x3+-parseInt(_0x335de1(0x111))/0x4*(-parseInt(_0x335de1(0x12a))/0x5)+parseInt(_0x335de1(0x11f))/0x6+parseInt(_0x335de1(0x16f))/0x7+parseInt(_0x335de1(0x118))/0x8*(parseInt(_0x335de1(0x16c))/0x9)+-parseInt(_0x335de1(0x17e))/0xa*(parseInt(_0x335de1(0x174))/0xb);if(_0x5abd0b===_0xf3d775)break;else _0x33351c['push'](_0x33351c['shift']());}catch(_0x149c50){_0x33351c['push'](_0x33351c['shift']());}}}(a65_0x17b0,0x9b28d));import{CliErrors}from'../../errors.js';const LOCAL_KEY=/^[a-z][a-z0-9_]{0,63}$/,SUPPORTED_CARDINALITIES=new Set([a65_0x40be2e(0x126),a65_0x40be2e(0x155)]),SUPPORTED_FIELD_TYPES=new Set([a65_0x40be2e(0x11c),'NUMBER',a65_0x40be2e(0x167),a65_0x40be2e(0x146),a65_0x40be2e(0x170),a65_0x40be2e(0x132),a65_0x40be2e(0x17f),a65_0x40be2e(0x130),'ADDRESS',a65_0x40be2e(0x17c)]);export function isDatasetBatchDesign(_0x3abc2c){const _0x5e974c=a65_0x40be2e;return isObject(_0x3abc2c)&&_0x3abc2c[_0x5e974c(0x136)]==='dataset-batch';}export function validateDatasetBatchDesign(_0x489687){const _0x5411b2=a65_0x40be2e;(!isObject(_0x489687)||_0x489687['kind']!==_0x5411b2(0x163))&&fail(_0x5411b2(0x10f));_0x489687[_0x5411b2(0x144)]!==0x1&&fail(_0x5411b2(0x15d));const _0x4ee7ce=objectArray(_0x489687[_0x5411b2(0x129)],_0x5411b2(0x129),0x1,0x14),_0x305cfe=objectArray(_0x489687[_0x5411b2(0x11b)],_0x5411b2(0x11b),0x0,0xc8),_0x571bb3=objectArray(_0x489687[_0x5411b2(0x178)],'unresolvedRelations',0x0,0xc8),_0x52fe5f=new Set(),_0x272656=new Map();for(const [_0x3e65dc,_0x23d628]of _0x4ee7ce['entries']()){const _0x252298=requiredString(_0x23d628['localKey'],_0x5411b2(0x12d)+_0x3e65dc+_0x5411b2(0x164));!LOCAL_KEY[_0x5411b2(0x145)](_0x252298)&&fail('datasets['+_0x3e65dc+_0x5411b2(0x180)+LOCAL_KEY[_0x5411b2(0x12e)]+'.');_0x52fe5f[_0x5411b2(0x11a)](_0x252298)&&fail(_0x5411b2(0x115));_0x52fe5f['add'](_0x252298);!isObject(_0x23d628[_0x5411b2(0x175)])&&fail(_0x5411b2(0x12d)+_0x3e65dc+_0x5411b2(0x14c));rejectServerDatasetIdentity(_0x23d628[_0x5411b2(0x175)],'datasets['+_0x3e65dc+_0x5411b2(0x15b));if(!isObject(_0x23d628[_0x5411b2(0x175)][_0x5411b2(0x10e)]))fail(_0x5411b2(0x12d)+_0x3e65dc+_0x5411b2(0x17a));rejectServerDatasetIdentity(_0x23d628[_0x5411b2(0x175)][_0x5411b2(0x10e)],_0x5411b2(0x12d)+_0x3e65dc+_0x5411b2(0x12b)),requiredString(_0x23d628[_0x5411b2(0x175)][_0x5411b2(0x10e)][_0x5411b2(0x162)],_0x5411b2(0x12d)+_0x3e65dc+_0x5411b2(0x172));_0x5411b2(0x11b)in _0x23d628[_0x5411b2(0x175)]&&(!Array['isArray'](_0x23d628[_0x5411b2(0x175)][_0x5411b2(0x11b)])||_0x23d628[_0x5411b2(0x175)][_0x5411b2(0x11b)][_0x5411b2(0x15e)]!==0x0)&&fail(_0x5411b2(0x12d)+_0x3e65dc+_0x5411b2(0x13a));const _0x40c0ec=objectArray(_0x23d628['design'][_0x5411b2(0x128)],_0x5411b2(0x12d)+_0x3e65dc+_0x5411b2(0x125),0x1,0xc8),_0x57b90d=new Map();for(const [_0x45af29,_0x6294c3]of _0x40c0ec[_0x5411b2(0x120)]()){const _0x147b3a=fieldName(_0x6294c3);if(!_0x147b3a)fail(_0x5411b2(0x12d)+_0x3e65dc+'].design.fields['+_0x45af29+_0x5411b2(0x11d));const _0x3e09d9=_0x147b3a[_0x5411b2(0x149)]();if(_0x57b90d[_0x5411b2(0x11a)](_0x3e09d9))fail(_0x5411b2(0x14f)+_0x252298+_0x5411b2(0x12f));const _0x28bb9a=stringValue(_0x6294c3[_0x5411b2(0x166)]??_0x6294c3[_0x5411b2(0x114)])[_0x5411b2(0x143)]();if(!SUPPORTED_FIELD_TYPES['has'](_0x28bb9a))fail('datasets['+_0x3e65dc+_0x5411b2(0x157)+_0x45af29+_0x5411b2(0x16a));_0x57b90d['set'](_0x3e09d9,_0x28bb9a),[_0x6294c3[_0x5411b2(0x153)],_0x6294c3[_0x5411b2(0x13c)],_0x6294c3[_0x5411b2(0x173)]][_0x5411b2(0x124)](_0x187684=>stringValue(_0x187684))&&fail(_0x5411b2(0x12d)+_0x3e65dc+_0x5411b2(0x157)+_0x45af29+_0x5411b2(0x119));}_0x272656['set'](_0x252298,_0x57b90d);}const _0x5caa75=new Set(),_0x13fe77=new Set();for(const [_0x34d8b0,_0x1d0b41]of _0x305cfe['entries']()){const _0x27273a=validateRelation(_0x1d0b41,_0x34d8b0,_0x52fe5f,_0x272656);if(_0x5caa75[_0x5411b2(0x11a)](_0x27273a))fail(_0x5411b2(0x154));_0x5caa75[_0x5411b2(0x13b)](_0x27273a);const _0x9db294=_0x27273a[_0x5411b2(0x15c)]('\x00',0x2)[_0x5411b2(0x16b)]('\x00');if(_0x13fe77[_0x5411b2(0x11a)](_0x9db294))fail('Each\x20source\x20field\x20may\x20target\x20at\x20most\x20one\x20relation.');_0x13fe77['add'](_0x9db294);}for(const [_0x1b373b,_0x7444dc]of _0x571bb3[_0x5411b2(0x120)]()){requiredString(_0x7444dc['reason'],_0x5411b2(0x165)+_0x1b373b+_0x5411b2(0x14e)),validateConfidence(_0x7444dc[_0x5411b2(0x122)],_0x5411b2(0x165)+_0x1b373b+_0x5411b2(0x17b));}return _0x489687;}export function reconcileBatchResult(_0x438f11){const _0x30f0b4=a65_0x40be2e;if(!isObject(_0x438f11))return null;try{const _0x4988e2=stringArray(_0x438f11['expectedLocalKeys'],_0x30f0b4(0x179),0x1,0x14),_0x16d76c=new Set(_0x4988e2);if(_0x16d76c[_0x30f0b4(0x15f)]!==_0x4988e2[_0x30f0b4(0x15e)]||_0x4988e2[_0x30f0b4(0x124)](_0xf73c28=>!LOCAL_KEY[_0x30f0b4(0x145)](_0xf73c28)))return null;const _0x369bd6=objectArray(_0x438f11[_0x30f0b4(0x133)],_0x30f0b4(0x133),0x1,0x14),_0x1a3513=new Map(),_0x44a9ca=new Set();for(const _0x5d9b18 of _0x369bd6){const _0x1f20a7=requiredString(_0x5d9b18[_0x30f0b4(0x14b)],_0x30f0b4(0x13d)),_0x2d03ee=requiredString(_0x5d9b18[_0x30f0b4(0x140)]??_0x5d9b18[_0x30f0b4(0x121)],_0x30f0b4(0x117));if(_0x1a3513['has'](_0x1f20a7)||_0x44a9ca[_0x30f0b4(0x11a)](_0x2d03ee))return null;_0x1a3513[_0x30f0b4(0x138)](_0x1f20a7,_0x2d03ee),_0x44a9ca[_0x30f0b4(0x13b)](_0x2d03ee);}if(!sameSet(_0x16d76c,new Set(_0x1a3513['keys']())))return null;const _0x228cb5=objectArray(_0x438f11[_0x30f0b4(0x177)],_0x30f0b4(0x177),0x0,0xc8),_0x16b216=objectArray(_0x438f11['createdRelations'],_0x30f0b4(0x171),0x0,0xc8),_0x493d21=relationTupleSet(_0x228cb5,![],_0x1a3513),_0xb32102=relationTupleSet(_0x16b216,!![],_0x1a3513);if(!_0x493d21||!_0xb32102||!sameSet(_0x493d21,_0xb32102))return null;const _0x3ccd83=objectArray(_0x438f11[_0x30f0b4(0x178)],_0x30f0b4(0x178),0x0,0xc8);return{'expectedLocalKeys':_0x4988e2,'expectedRelations':_0x228cb5,'createdDatasets':_0x369bd6,'createdRelations':_0x16b216,'unresolvedRelations':_0x3ccd83,...isObject(_0x438f11['metrics'])?{'metrics':_0x438f11['metrics']}:{}};}catch{return null;}}function validateRelation(_0x4c034a,_0x1c93b9,_0x2b21da,_0x504d5d){const _0x44463d=a65_0x40be2e,_0x147772='relations['+_0x1c93b9+']',_0xe9e2b9=requiredString(_0x4c034a['fromDatasetKey'],_0x147772+_0x44463d(0x15a)),_0x56b5be=requiredString(_0x4c034a['toDatasetKey'],_0x147772+_0x44463d(0x112)),_0x50891e=requiredString(_0x4c034a[_0x44463d(0x147)],_0x147772+'.fromField')[_0x44463d(0x149)](),_0x59f4e6=requiredString(_0x4c034a[_0x44463d(0x16d)],_0x147772+_0x44463d(0x13e))['toLowerCase']();if(!_0x2b21da[_0x44463d(0x11a)](_0xe9e2b9)||!_0x2b21da[_0x44463d(0x11a)](_0x56b5be))fail(_0x147772+_0x44463d(0x176));const _0x24d9ef=_0x504d5d[_0x44463d(0x141)](_0xe9e2b9)?.[_0x44463d(0x141)](_0x50891e),_0x1d867c=_0x504d5d[_0x44463d(0x141)](_0x56b5be)?.[_0x44463d(0x141)](_0x59f4e6);if(_0x24d9ef===undefined||_0x1d867c===undefined)fail(_0x147772+'\x20references\x20an\x20unknown\x20field.');if(_0x24d9ef&&_0x1d867c&&_0x24d9ef!==_0x1d867c)fail(_0x147772+_0x44463d(0x151));const _0x5f35ff=stringValue(_0x4c034a[_0x44463d(0x10d)])||'lookup';if(_0x5f35ff!==_0x44463d(0x12c))fail(_0x147772+'.relationType\x20must\x20be\x20\x22lookup\x22.');const _0x197195=stringValue(_0x4c034a[_0x44463d(0x148)])||_0x44463d(0x126);if(!SUPPORTED_CARDINALITIES[_0x44463d(0x11a)](_0x197195))fail(_0x147772+_0x44463d(0x139));return requiredString(_0x4c034a[_0x44463d(0x142)],_0x147772+_0x44463d(0x150)),validateConfidence(_0x4c034a[_0x44463d(0x122)],_0x147772+'.confidence'),tuple(_0xe9e2b9,_0x50891e,_0x56b5be,_0x59f4e6,_0x44463d(0x12c),_0x197195);}function relationTupleSet(_0x1f4057,_0x4f8901,_0x21000d){const _0x44f768=a65_0x40be2e,_0x1c05fb=new Set();for(const _0x414afd of _0x1f4057){const _0xe4745=stringValue(_0x414afd[_0x44f768(0x14a)]),_0x4d28a4=stringValue(_0x414afd[_0x44f768(0x17d)]),_0xa4e56a=stringValue(_0x414afd[_0x44f768(0x147)])['toLowerCase'](),_0x310888=stringValue(_0x414afd[_0x44f768(0x16d)])[_0x44f768(0x149)](),_0x319224=stringValue(_0x414afd[_0x44f768(0x10d)]),_0x1707b4=stringValue(_0x414afd[_0x44f768(0x148)]);if(!_0xe4745||!_0x4d28a4||!_0xa4e56a||!_0x310888||_0x319224!==_0x44f768(0x12c)||!SUPPORTED_CARDINALITIES[_0x44f768(0x11a)](_0x1707b4))return null;if(!_0x21000d[_0x44f768(0x11a)](_0xe4745)||!_0x21000d['has'](_0x4d28a4))return null;if(_0x4f8901&&(stringValue(_0x414afd['fromDatasetCode'])!==_0x21000d[_0x44f768(0x141)](_0xe4745)||stringValue(_0x414afd[_0x44f768(0x134)])!==_0x21000d[_0x44f768(0x141)](_0x4d28a4)))return null;const _0x1b9fa5=tuple(_0xe4745,_0xa4e56a,_0x4d28a4,_0x310888,_0x319224,_0x1707b4);if(_0x1c05fb['has'](_0x1b9fa5))return null;_0x1c05fb[_0x44f768(0x13b)](_0x1b9fa5);}return _0x1c05fb;}function rejectServerDatasetIdentity(_0x3cd403,_0x50a950){const _0x3fcba7=a65_0x40be2e;for(const _0x363191 of['id',_0x3fcba7(0x169),_0x3fcba7(0x159),_0x3fcba7(0x140),'datasetCode',_0x3fcba7(0x137)]){if(_0x3cd403[_0x363191]!==undefined&&_0x3cd403[_0x363191]!==null&&_0x3cd403[_0x363191]!=='')fail(_0x50a950+'.'+_0x363191+_0x3fcba7(0x127));}}function a65_0x58f4(_0x3bc290,_0x29837a){_0x3bc290=_0x3bc290-0x10d;const _0x17b06e=a65_0x17b0();let _0x58f4aa=_0x17b06e[_0x3bc290];return _0x58f4aa;}function a65_0x17b0(){const _0x2cf9ac=['some','].design.fields','MANY_TO_ONE','\x20must\x20not\x20be\x20supplied\x20by\x20the\x20client.','fields','datasets','5aswecp','].design.dataset','lookup','datasets[','source','\x20field\x20names\x20must\x20be\x20unique\x20ignoring\x20case.','USER','object','MULTI_SELECT','createdDatasets','toDatasetCode','\x20objects.','kind','modelCode','set','.cardinality\x20is\x20not\x20supported.','].design.relations\x20must\x20be\x20an\x20empty\x20array;\x20use\x20top-level\x20relations.','add','refTableField','createdDatasets[].localKey','.toField','695190jWSJse','code','get','reason','toUpperCase','schemaVersion','test','BOOLEAN','fromField','cardinality','toLowerCase','fromDatasetKey','localKey','].design\x20must\x20be\x20an\x20object.','fieldName','].reason','Dataset\x20','.reason','\x20connects\x20incompatible\x20field\x20types.','163653reqDbV','refTable','Dataset\x20batch\x20relations\x20must\x20be\x20unique.','ONE_TO_ONE','trim','].design.fields[','isFinite','modelId','.fromDatasetKey','].design','split','Dataset\x20batch\x20schemaVersion\x20must\x20be\x201.','length','size','\x20is\x20required.','10HiBWWB','datasetName','dataset-batch','].localKey','unresolvedRelations[','type','DATETIME','every','datasetId','].type\x20is\x20not\x20supported.','join','1143gCdvAG','toField','isArray','2677479HrRuWV','SELECT','createdRelations','].design.dataset.datasetName','refTableLabelField','1254YwhtNu','design','\x20references\x20an\x20unknown\x20dataset\x20localKey.','expectedRelations','unresolvedRelations','expectedLocalKeys','].design.dataset\x20must\x20be\x20an\x20object.','].confidence','UPLOAD','toDatasetKey','92510VmwqBA','DATE_RANGE','].localKey\x20must\x20match\x20','relationType','dataset','Batch\x20--design-file\x20must\x20have\x20kind\x20\x22dataset-batch\x22.','map','1216232rNXEku','.toDatasetKey','\x20must\x20contain\x20','fieldType','Dataset\x20batch\x20localKey\x20values\x20must\x20be\x20unique.','string','createdDatasets[].code','53744DQitXi',']\x20must\x20not\x20contain\x20embedded\x20relation\x20references.','has','relations','TEXT',']\x20must\x20have\x20a\x20non-empty\x20name\x20or\x20code.','fieldCode','4421646aJhFCB','entries','datasetCode','confidence','name'];a65_0x17b0=function(){return _0x2cf9ac;};return a65_0x17b0();}function objectArray(_0x1c85b9,_0x593580,_0x433544,_0x3298bd){const _0x39b434=a65_0x40be2e;return(!Array['isArray'](_0x1c85b9)||_0x1c85b9[_0x39b434(0x15e)]<_0x433544||_0x1c85b9[_0x39b434(0x15e)]>_0x3298bd||_0x1c85b9[_0x39b434(0x124)](_0x4788d2=>!isObject(_0x4788d2)))&&fail(_0x593580+_0x39b434(0x113)+_0x433544+'..'+_0x3298bd+_0x39b434(0x135)),_0x1c85b9;}function stringArray(_0x4df20e,_0x504b6a,_0x577be7,_0xadbd21){const _0x5dd16f=a65_0x40be2e;return(!Array['isArray'](_0x4df20e)||_0x4df20e[_0x5dd16f(0x15e)]<_0x577be7||_0x4df20e[_0x5dd16f(0x15e)]>_0xadbd21||_0x4df20e[_0x5dd16f(0x124)](_0x38753f=>typeof _0x38753f!==_0x5dd16f(0x116)||!_0x38753f['trim']()))&&fail(_0x504b6a+_0x5dd16f(0x113)+_0x577be7+'..'+_0xadbd21+'\x20non-empty\x20strings.'),_0x4df20e;}function requiredString(_0x2f6a61,_0x2c2649){const _0x441d8f=a65_0x40be2e,_0x3347be=stringValue(_0x2f6a61);if(!_0x3347be)fail(_0x2c2649+_0x441d8f(0x160));return _0x3347be;}function stringValue(_0x4382ae){const _0x32fedb=a65_0x40be2e;return typeof _0x4382ae===_0x32fedb(0x116)?_0x4382ae[_0x32fedb(0x156)]():'';}function fieldName(_0x5eb3a5){const _0x53916f=a65_0x40be2e;return stringValue(_0x5eb3a5[_0x53916f(0x140)]??_0x5eb3a5[_0x53916f(0x11e)]??_0x5eb3a5[_0x53916f(0x123)]??_0x5eb3a5[_0x53916f(0x14d)]);}function validateConfidence(_0x51fea5,_0x1cb6aa){const _0x219250=a65_0x40be2e;_0x51fea5!==undefined&&_0x51fea5!==null&&(typeof _0x51fea5!=='number'||!Number[_0x219250(0x158)](_0x51fea5)||_0x51fea5<0x0||_0x51fea5>0x1)&&fail(_0x1cb6aa+'\x20must\x20be\x20between\x200\x20and\x201.');}function tuple(..._0x44a8e8){const _0x4bb0da=a65_0x40be2e;return _0x44a8e8[_0x4bb0da(0x110)]((_0x20e1f5,_0x1b6391)=>_0x1b6391===0x1||_0x1b6391===0x3?_0x20e1f5['toLowerCase']():_0x20e1f5)[_0x4bb0da(0x16b)]('\x00');}function sameSet(_0xe0e202,_0x55d05c){const _0x5b0943=a65_0x40be2e;return _0xe0e202[_0x5b0943(0x15f)]===_0x55d05c[_0x5b0943(0x15f)]&&[..._0xe0e202][_0x5b0943(0x168)](_0x8bbfd8=>_0x55d05c[_0x5b0943(0x11a)](_0x8bbfd8));}function isObject(_0x22c497){const _0x1eee84=a65_0x40be2e;return typeof _0x22c497===_0x1eee84(0x131)&&_0x22c497!==null&&!Array[_0x1eee84(0x16e)](_0x22c497);}function fail(_0x49433d){throw CliErrors['validation'](_0x49433d);}
@@ -1 +1 @@
1
- const a66_0x32c37d=a66_0x4b78;(function(_0x2a33b2,_0xb629b9){const _0x5412ae=a66_0x4b78,_0x369abc=_0x2a33b2();while(!![]){try{const _0x526c34=-parseInt(_0x5412ae(0x170))/0x1*(parseInt(_0x5412ae(0x18a))/0x2)+parseInt(_0x5412ae(0x175))/0x3*(-parseInt(_0x5412ae(0x192))/0x4)+parseInt(_0x5412ae(0x17c))/0x5*(-parseInt(_0x5412ae(0x1a5))/0x6)+-parseInt(_0x5412ae(0x1a2))/0x7*(parseInt(_0x5412ae(0x198))/0x8)+-parseInt(_0x5412ae(0x177))/0x9+-parseInt(_0x5412ae(0x16e))/0xa*(parseInt(_0x5412ae(0x189))/0xb)+-parseInt(_0x5412ae(0x18d))/0xc*(-parseInt(_0x5412ae(0x19d))/0xd);if(_0x526c34===_0xb629b9)break;else _0x369abc['push'](_0x369abc['shift']());}catch(_0x158279){_0x369abc['push'](_0x369abc['shift']());}}}(a66_0x4ac5,0xa64d5));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_0x32c37d(0x190),METADATA_BACKEND_PATH=a66_0x32c37d(0x193),UNGROUPED_BUSINESS_GROUP=a66_0x32c37d(0x166);export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x2896db,input:_0x3d1144,dryRun:_0x44c120}){const _0x2c9316=a66_0x32c37d;validateInput(_0x3d1144);const _0x33926c=normalizeBusinessGroupArgument(_0x3d1144[_0x2c9316(0x188)]),_0x2a54db=await getDatasetDetail(_0x3d1144[_0x2c9316(0x184)]),_0x20cf90=resolveBusinessGroupDataset(_0x2a54db,_0x3d1144[_0x2c9316(0x184)]);assertBusinessGroupUpdateSupported(_0x20cf90,_0x33926c);const _0xfc160b=loadCurrentBusinessGroup(_0x2a54db,_0x20cf90);assertExpectedBusinessGroup(_0xfc160b,_0x3d1144[_0x2c9316(0x173)]);const _0x455238=buildBackendPlan(_0x2896db,_0x20cf90,_0x33926c),_0x4e21f5=_0xfc160b!==_0x33926c;let _0x32aed1;if(_0x4e21f5&&!_0x44c120){_0x455238[_0x2c9316(0x1a0)]==='db-table'?await updateDbTableBusinessGroup(_0x455238[_0x2c9316(0x174)]):await updateErBusinessGroup(_0x455238[_0x2c9316(0x174)]);const _0x191668=await getDatasetDetail(_0x20cf90['code']),_0x9e57ff=resolveBusinessGroupDataset(_0x191668,_0x20cf90[_0x2c9316(0x184)]),_0x2d6c83=loadCurrentBusinessGroup(_0x191668,_0x9e57ff);if(_0x2d6c83!==_0x33926c)throw CliErrors[_0x2c9316(0x19b)](_0x2c9316(0x187),'Expected\x20'+JSON[_0x2c9316(0x1a8)](displayBusinessGroup(_0x33926c))+_0x2c9316(0x1a3)+JSON['stringify'](displayBusinessGroup(_0x2d6c83))+'.');_0x32aed1={'verified':!![],'status':_0x2c9316(0x182),'afterReadback':{'businessGroup':displayBusinessGroup(_0x2d6c83)}};}else!_0x4e21f5&&(_0x32aed1={'verified':!![],'status':_0x2c9316(0x196),'afterReadback':{'businessGroup':displayBusinessGroup(_0xfc160b)}});const _0x2ecf4c={'operation':_0x2c9316(0x1a7),'appCode':_0x2896db,'selector':{'code':_0x20cf90[_0x2c9316(0x184)]},'dataset':{'id':_0x20cf90['id'],'code':_0x20cf90[_0x2c9316(0x184)],'name':_0x20cf90[_0x2c9316(0x194)],'sourceType':_0x20cf90[_0x2c9316(0x191)]},'before':{'businessGroup':displayBusinessGroup(_0xfc160b)},'after':{'businessGroup':displayBusinessGroup(_0x33926c)},'changed':_0x4e21f5,'dryRun':_0x44c120,'submitted':_0x4e21f5&&!_0x44c120,'backend':{'method':_0x455238['method'],'path':_0x455238[_0x2c9316(0x169)],'payload':_0x455238[_0x2c9316(0x174)]},..._0x32aed1?{'verification':_0x32aed1}:{},'warnings':[]};return{'ok':!![],'data':_0x2ecf4c,'message':_0x4e21f5?_0x44c120?_0x2c9316(0x16b)+_0x20cf90[_0x2c9316(0x184)]:_0x2c9316(0x160)+_0x20cf90[_0x2c9316(0x184)]:'No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20'+_0x20cf90[_0x2c9316(0x184)]};}export const datasetBusinessGroupUpdate={'service':a66_0x32c37d(0x17a),'command':a66_0x32c37d(0x195),'description':'Update\x20business\x20scenario\x20group','risk':'write','flags':[CODE_FLAG,{'name':'business-group','type':a66_0x32c37d(0x180),'required':!![],'description':a66_0x32c37d(0x165)},{'name':'expect-business-group','type':a66_0x32c37d(0x180),'required':![],'description':a66_0x32c37d(0x18e)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x42af37){validateInput(readBusinessGroupUpdateInput(_0x42af37));},async 'dryRun'(_0x2c2964){const _0x2f935f=a66_0x32c37d,_0x3774f8=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x2c2964[_0x2f935f(0x17e)],'input':readBusinessGroupUpdateInput(_0x2c2964),'dryRun':!![]});return{'method':_0x3774f8[_0x2f935f(0x172)]['backend']['method'],'url':_0x3774f8[_0x2f935f(0x172)][_0x2f935f(0x19c)][_0x2f935f(0x169)],'body':_0x3774f8[_0x2f935f(0x172)][_0x2f935f(0x19c)][_0x2f935f(0x174)],'description':_0x3774f8[_0x2f935f(0x186)],..._0x3774f8[_0x2f935f(0x172)]};},async 'execute'(_0x461920){const _0x3e4f10=a66_0x32c37d;return buildDatasetBusinessGroupUpdateResult({'appCode':_0x461920[_0x3e4f10(0x17e)],'input':readBusinessGroupUpdateInput(_0x461920),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x32f9d3){const _0x395ed8=a66_0x32c37d,_0x5c2587=_0x32f9d3[_0x395ed8(0x15f)]('expect-business-group');return{'code':trim(_0x32f9d3[_0x395ed8(0x15f)](_0x395ed8(0x184))),'businessGroup':_0x32f9d3[_0x395ed8(0x15f)](_0x395ed8(0x17d)),'expectBusinessGroup':_0x5c2587===undefined||_0x5c2587===''?undefined:_0x5c2587};}function a66_0x4ac5(){const _0x36c5e8=['apiError','backend','18493553ZrhSQW','db-table','--business-group\x20is\x20required','kind','modelCode','168gjsOiP',',\x20actual\x20','dbId','18xkBJqg','--code\x20is\x20required','update','stringify','DB_TABLE','Run\x20dataset\x20detail\x20and\x20complete\x20database\x20analysis\x20before\x20updating\x20the\x20business\x20group.','call','number','metadata','str','Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20','dbLinkId','found','DB_TABLE\x20dataset\x20requires\x20dbtableConfig.dbId\x20and\x20tableName.','hasOwnProperty','Business\x20scenario\x20group\x20(not\x20technical):\x20use\x20<scenario>,\x20<domain>---<scenario>\x20when\x20needed;\x20METADATA\x20accepts\x20ungrouped\x20to\x20clear\x20it','ungrouped','METADATA','toUpperCase','path','source','Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20','datasetId','extend','1748970vncAVp','POST','2KJneuI','prototype','data','expectBusinessGroup','payload','607077CCBfPo','dbtableConfig','9800892egdcOI','datasetCode','length','dataset','--business-group\x20must\x20not\x20be\x20blank','1090365QTsPoY','business-group','appCode','dbTableSelector','string','tableName','matched','validation','code','trim','message','Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.','businessGroup','55FSAxbk','406336sZCQgc','keys','Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.','36maRKXb','Expected\x20current\x20business\x20scenario\x20group;\x20use\x20ungrouped\x20to\x20expect\x20no\x20group;\x20mismatch\x20aborts\x20without\x20writing','datasetName','/smartapi/dblink/updateTableBusinessGroup','sourceType','8AHBLca','/smartapi/question/er-config/business-group/edit','name','business-group-update','unchanged','isFinite','52608joqbZJ','modelId','value'];a66_0x4ac5=function(){return _0x36c5e8;};return a66_0x4ac5();}function validateInput(_0x505b36){const _0x556fc0=a66_0x32c37d;if(!trim(_0x505b36[_0x556fc0(0x184)]))throw CliErrors[_0x556fc0(0x183)](_0x556fc0(0x1a6));if(_0x505b36[_0x556fc0(0x188)]===undefined)throw CliErrors[_0x556fc0(0x183)](_0x556fc0(0x19f));if(!trim(_0x505b36[_0x556fc0(0x188)]))throw CliErrors[_0x556fc0(0x183)](_0x556fc0(0x17b));}function a66_0x4b78(_0x197ac7,_0x245a77){_0x197ac7=_0x197ac7-0x15c;const _0x4ac5a9=a66_0x4ac5();let _0x4b7895=_0x4ac5a9[_0x197ac7];return _0x4b7895;}function assertBusinessGroupUpdateSupported(_0x52bc83,_0x85912e){const _0x3b1169=a66_0x32c37d;if(_0x52bc83[_0x3b1169(0x191)]==='DB_TABLE'&&!_0x85912e)throw CliErrors['validation']('Clearing\x20business\x20scenario\x20groups\x20is\x20not\x20supported\x20for\x20DB_TABLE\x20datasets.');}function resolveBusinessGroupDataset(_0x49cd3a,_0x5efb15){const _0x4ef393=a66_0x32c37d,_0x581bad=asPlainObject(_0x49cd3a[_0x4ef393(0x17a)]),_0x4baa97=asPlainObject(_0x49cd3a[_0x4ef393(0x176)]),_0x2e5c4e=resolveSourceType(_0x49cd3a,_0x581bad,_0x4baa97),_0x2d9ba4=firstString(_0x49cd3a[_0x4ef393(0x1a1)],_0x49cd3a[_0x4ef393(0x184)],_0x581bad[_0x4ef393(0x178)],_0x5efb15)||_0x5efb15;return{'id':firstNumber(_0x49cd3a['modelId'],_0x49cd3a['id'],_0x581bad['datasetId'])??firstString(_0x49cd3a[_0x4ef393(0x199)],_0x49cd3a['id'],_0x581bad[_0x4ef393(0x16c)])??null,'code':_0x2d9ba4,'name':firstString(_0x49cd3a['name'],_0x581bad[_0x4ef393(0x18f)],_0x581bad[_0x4ef393(0x194)])||null,'sourceType':_0x2e5c4e,'dbTableSelector':_0x2e5c4e===_0x4ef393(0x1a9)?{'dbLinkId':firstNumber(_0x4baa97[_0x4ef393(0x1a4)]),'tableName':firstString(_0x4baa97['tableName'])||null}:null};}function resolveSourceType(_0x8376c8,_0x5feb86,_0x4b86b4){const _0x2367d7=a66_0x32c37d,_0x194db8=firstString(_0x8376c8[_0x2367d7(0x16a)],_0x8376c8[_0x2367d7(0x191)],_0x5feb86[_0x2367d7(0x16a)],_0x5feb86[_0x2367d7(0x191)])?.[_0x2367d7(0x185)]()[_0x2367d7(0x168)]();if(_0x194db8===_0x2367d7(0x1a9)||_0x194db8===_0x2367d7(0x167))return _0x194db8;if(Object[_0x2367d7(0x18b)](_0x4b86b4)[_0x2367d7(0x179)]>0x0)return'DB_TABLE';throw CliErrors[_0x2367d7(0x183)](_0x2367d7(0x18c));}function loadCurrentBusinessGroup(_0x3875ce,_0x9e92c2){const _0x43e7d2=a66_0x32c37d,_0x587fcc=readBusinessGroupFromDatasetDetail(_0x3875ce,_0x9e92c2[_0x43e7d2(0x191)]);if(_0x587fcc[_0x43e7d2(0x162)])return normalizeBusinessGroup(_0x587fcc[_0x43e7d2(0x19a)]);return'';}function readBusinessGroupFromDatasetDetail(_0x18a232,_0x348250){const _0x2cb87d=a66_0x32c37d,_0x5fcbf8=asPlainObject(_0x18a232[_0x2cb87d(0x17a)]),_0x358589=firstPresent(_0x18a232[_0x2cb87d(0x188)]);if(_0x358589[_0x2cb87d(0x162)])return _0x358589;const _0x7a26d3=firstPresent(_0x5fcbf8[_0x2cb87d(0x188)]);if(_0x7a26d3[_0x2cb87d(0x162)])return _0x7a26d3;if(_0x348250===_0x2cb87d(0x1a9))return{'found':![]};const _0x7b9c81=readBusinessGroupFromExtend(_0x18a232[_0x2cb87d(0x16d)]);if(_0x7b9c81[_0x2cb87d(0x162)])return _0x7b9c81;return readBusinessGroupFromExtend(_0x5fcbf8[_0x2cb87d(0x16d)]);}function readBusinessGroupFromExtend(_0x4c4550){const _0x453161=a66_0x32c37d;if(_0x4c4550===undefined||_0x4c4550===null||_0x4c4550==='')return{'found':![]};if(typeof _0x4c4550===_0x453161(0x180))try{const _0x3da45c=JSON['parse'](_0x4c4550);return readBusinessGroupFromExtend(_0x3da45c);}catch{return{'found':![]};}const _0x523946=asPlainObject(_0x4c4550);if(Object[_0x453161(0x171)][_0x453161(0x164)][_0x453161(0x15c)](_0x523946,'businessGroup'))return{'found':!![],'value':_0x523946[_0x453161(0x188)]};return{'found':![]};}function firstPresent(..._0x50d71c){for(const _0xad4c6b of _0x50d71c){if(_0xad4c6b!==undefined&&_0xad4c6b!==null)return{'found':!![],'value':_0xad4c6b};}return{'found':![]};}function assertExpectedBusinessGroup(_0x3788a0,_0x1365bb){const _0x38f7dd=a66_0x32c37d;if(_0x1365bb===undefined)return;const _0x36bc2f=normalizeBusinessGroupArgument(_0x1365bb);if(_0x3788a0!==_0x36bc2f)throw CliErrors[_0x38f7dd(0x183)]('Expectation\x20mismatch\x20at\x20businessGroup','Expected\x20'+JSON[_0x38f7dd(0x1a8)](_0x36bc2f)+_0x38f7dd(0x1a3)+JSON['stringify'](_0x3788a0));}function buildBackendPlan(_0x3ff8bf,_0x54d0c9,_0x5e8b6c){const _0x192085=a66_0x32c37d;if(_0x54d0c9[_0x192085(0x191)]===_0x192085(0x1a9)){if(!_0x54d0c9[_0x192085(0x17f)]||_0x54d0c9[_0x192085(0x17f)][_0x192085(0x161)]===null||!_0x54d0c9[_0x192085(0x17f)]['tableName'])throw CliErrors[_0x192085(0x183)](_0x192085(0x163),_0x192085(0x1aa));return{'kind':_0x192085(0x19e),'method':_0x192085(0x16f),'path':DB_TABLE_BACKEND_PATH,'payload':{'dbLinkId':_0x54d0c9['dbTableSelector'][_0x192085(0x161)],'tableName':_0x54d0c9[_0x192085(0x17f)][_0x192085(0x181)],'businessGroup':_0x5e8b6c}};}return{'kind':_0x192085(0x15e),'method':_0x192085(0x16f),'path':METADATA_BACKEND_PATH,'payload':{'appCode':_0x3ff8bf,'datasetCode':_0x54d0c9['code'],'businessGroup':_0x5e8b6c}};}function normalizeBusinessGroup(_0x510ff1){const _0x75bc98=a66_0x32c37d;if(_0x510ff1===undefined||_0x510ff1===null)return'';return String(_0x510ff1)[_0x75bc98(0x185)]();}function normalizeBusinessGroupArgument(_0x49044a){const _0x4959cb=normalizeBusinessGroup(_0x49044a);return _0x4959cb===UNGROUPED_BUSINESS_GROUP?'':_0x4959cb;}function displayBusinessGroup(_0x573c09){return _0x573c09||UNGROUPED_BUSINESS_GROUP;}function asPlainObject(_0xcc0719){if(!_0xcc0719||typeof _0xcc0719!=='object'||Array['isArray'](_0xcc0719))return{};return _0xcc0719;}function firstString(..._0x403da2){const _0x21cc2f=a66_0x32c37d;for(const _0x1c3879 of _0x403da2){if(typeof _0x1c3879===_0x21cc2f(0x180)&&_0x1c3879['trim']())return _0x1c3879[_0x21cc2f(0x185)]();if(typeof _0x1c3879===_0x21cc2f(0x15d)&&Number[_0x21cc2f(0x197)](_0x1c3879))return String(_0x1c3879);}return undefined;}function firstNumber(..._0x9aaea1){const _0x513f8d=a66_0x32c37d;for(const _0x98d0d of _0x9aaea1){if(typeof _0x98d0d===_0x513f8d(0x15d)&&Number[_0x513f8d(0x197)](_0x98d0d))return _0x98d0d;if(typeof _0x98d0d===_0x513f8d(0x180)&&_0x98d0d['trim']()&&Number[_0x513f8d(0x197)](Number(_0x98d0d)))return Number(_0x98d0d);}return null;}function trim(_0x5df6ec){const _0x100e56=a66_0x32c37d;return String(_0x5df6ec||'')[_0x100e56(0x185)]();}
1
+ const a66_0x30f605=a66_0x28db;(function(_0x3a0edd,_0x41896d){const _0x3e1e2e=a66_0x28db,_0x13e221=_0x3a0edd();while(!![]){try{const _0x5885f5=-parseInt(_0x3e1e2e(0x215))/0x1+-parseInt(_0x3e1e2e(0x219))/0x2+-parseInt(_0x3e1e2e(0x202))/0x3*(-parseInt(_0x3e1e2e(0x1f9))/0x4)+parseInt(_0x3e1e2e(0x227))/0x5*(parseInt(_0x3e1e2e(0x1ee))/0x6)+parseInt(_0x3e1e2e(0x1e1))/0x7*(-parseInt(_0x3e1e2e(0x1f1))/0x8)+parseInt(_0x3e1e2e(0x1f3))/0x9*(-parseInt(_0x3e1e2e(0x20f))/0xa)+parseInt(_0x3e1e2e(0x1eb))/0xb;if(_0x5885f5===_0x41896d)break;else _0x13e221['push'](_0x13e221['shift']());}catch(_0xd1c909){_0x13e221['push'](_0x13e221['shift']());}}}(a66_0x12fc,0x6b94b));function a66_0x28db(_0x436eae,_0x3074e3){_0x436eae=_0x436eae-0x1e0;const _0x12fc38=a66_0x12fc();let _0x28db0f=_0x12fc38[_0x436eae];return _0x28db0f;}import{APPCODE_FLAG_OPTIONAL,CODE_FLAG}from'../../commands/common/flags.js';import{getDatasetDetail,updateDbTableBusinessGroup,updateErBusinessGroup}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const DB_TABLE_BACKEND_PATH='/smartapi/dblink/updateTableBusinessGroup',METADATA_BACKEND_PATH='/smartapi/question/er-config/business-group/edit',UNGROUPED_BUSINESS_GROUP=a66_0x30f605(0x229);export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x4cbc52,input:_0x39db72,dryRun:_0x4cbc82}){const _0x337c3f=a66_0x30f605;validateInput(_0x39db72);const _0x5e3875=normalizeBusinessGroupArgument(_0x39db72[_0x337c3f(0x1e0)]),_0xb6334c=await getDatasetDetail(_0x39db72['code']),_0x1809cb=resolveBusinessGroupDataset(_0xb6334c,_0x39db72['code']);assertBusinessGroupUpdateSupported(_0x1809cb,_0x5e3875);const _0x4180e8=loadCurrentBusinessGroup(_0xb6334c,_0x1809cb);assertExpectedBusinessGroup(_0x4180e8,_0x39db72[_0x337c3f(0x1e2)]);const _0x2d3c01=buildBackendPlan(_0x4cbc52,_0x1809cb,_0x5e3875),_0x17aaf2=_0x4180e8!==_0x5e3875;let _0x3ad97d;if(_0x17aaf2&&!_0x4cbc82){_0x2d3c01[_0x337c3f(0x203)]===_0x337c3f(0x20a)?await updateDbTableBusinessGroup(_0x2d3c01[_0x337c3f(0x1e5)]):await updateErBusinessGroup(_0x2d3c01[_0x337c3f(0x1e5)]);const _0x9fa106=await getDatasetDetail(_0x1809cb[_0x337c3f(0x228)]),_0x26cd3a=resolveBusinessGroupDataset(_0x9fa106,_0x1809cb['code']),_0x3c7eb6=loadCurrentBusinessGroup(_0x9fa106,_0x26cd3a);if(_0x3c7eb6!==_0x5e3875)throw CliErrors['apiError'](_0x337c3f(0x1fc),_0x337c3f(0x1ff)+JSON[_0x337c3f(0x1ed)](displayBusinessGroup(_0x5e3875))+_0x337c3f(0x201)+JSON[_0x337c3f(0x1ed)](displayBusinessGroup(_0x3c7eb6))+'.');_0x3ad97d={'verified':!![],'status':_0x337c3f(0x21e),'afterReadback':{'businessGroup':displayBusinessGroup(_0x3c7eb6)}};}else!_0x17aaf2&&(_0x3ad97d={'verified':!![],'status':_0x337c3f(0x210),'afterReadback':{'businessGroup':displayBusinessGroup(_0x4180e8)}});const _0x25d4a8={'operation':_0x337c3f(0x204),'appCode':_0x4cbc52,'selector':{'code':_0x1809cb['code']},'dataset':{'id':_0x1809cb['id'],'code':_0x1809cb[_0x337c3f(0x228)],'name':_0x1809cb[_0x337c3f(0x226)],'sourceType':_0x1809cb[_0x337c3f(0x1fb)]},'before':{'businessGroup':displayBusinessGroup(_0x4180e8)},'after':{'businessGroup':displayBusinessGroup(_0x5e3875)},'changed':_0x17aaf2,'dryRun':_0x4cbc82,'submitted':_0x17aaf2&&!_0x4cbc82,'backend':{'method':_0x2d3c01[_0x337c3f(0x200)],'path':_0x2d3c01['path'],'payload':_0x2d3c01[_0x337c3f(0x1e5)]},..._0x3ad97d?{'verification':_0x3ad97d}:{},'warnings':[]};return{'ok':!![],'data':_0x25d4a8,'message':_0x17aaf2?_0x4cbc82?'Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20'+_0x1809cb[_0x337c3f(0x228)]:_0x337c3f(0x1f6)+_0x1809cb[_0x337c3f(0x228)]:'No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20'+_0x1809cb[_0x337c3f(0x228)]};}export const datasetBusinessGroupUpdate={'service':'dataset','command':a66_0x30f605(0x21d),'description':'Update\x20business\x20scenario\x20group','risk':a66_0x30f605(0x216),'flags':[CODE_FLAG,{'name':a66_0x30f605(0x1e9),'type':'string','required':!![],'description':a66_0x30f605(0x211)},{'name':'expect-business-group','type':a66_0x30f605(0x222),'required':![],'description':a66_0x30f605(0x21f)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x550e83){validateInput(readBusinessGroupUpdateInput(_0x550e83));},async 'dryRun'(_0xf91c4f){const _0x1df7eb=a66_0x30f605,_0xb27b1d=await buildDatasetBusinessGroupUpdateResult({'appCode':_0xf91c4f[_0x1df7eb(0x212)],'input':readBusinessGroupUpdateInput(_0xf91c4f),'dryRun':!![]});return{'method':_0xb27b1d[_0x1df7eb(0x206)]['backend'][_0x1df7eb(0x200)],'url':_0xb27b1d[_0x1df7eb(0x206)][_0x1df7eb(0x1f5)][_0x1df7eb(0x205)],'body':_0xb27b1d['data'][_0x1df7eb(0x1f5)][_0x1df7eb(0x1e5)],'description':_0xb27b1d[_0x1df7eb(0x224)],..._0xb27b1d[_0x1df7eb(0x206)]};},async 'execute'(_0x371ea2){const _0x1f56ec=a66_0x30f605;return buildDatasetBusinessGroupUpdateResult({'appCode':_0x371ea2[_0x1f56ec(0x212)],'input':readBusinessGroupUpdateInput(_0x371ea2),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x2f205a){const _0x2c2c60=a66_0x30f605,_0x4da06e=_0x2f205a[_0x2c2c60(0x1f7)](_0x2c2c60(0x1f0));return{'code':trim(_0x2f205a[_0x2c2c60(0x1f7)](_0x2c2c60(0x228))),'businessGroup':_0x2f205a['str'](_0x2c2c60(0x1e9)),'expectBusinessGroup':_0x4da06e===undefined||_0x4da06e===''?undefined:_0x4da06e};}function a66_0x12fc(){const _0x331ae5=['source','18578868tDDteb','metadata','stringify','2899188jHzNjR','DB_TABLE','expect-business-group','1024RPDVls','trim','4149hLgZvU','value','backend','Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20','str','isFinite','28yucOBF','Run\x20dataset\x20detail\x20and\x20complete\x20database\x20analysis\x20before\x20updating\x20the\x20business\x20group.','sourceType','Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.','dbId','hasOwnProperty','Expected\x20','method',',\x20actual\x20','112203TjONmp','kind','update','path','data','call','POST','isArray','db-table','toUpperCase','DB_TABLE\x20dataset\x20requires\x20dbtableConfig.dbId\x20and\x20tableName.','extend','dbTableSelector','16110fXRlFJ','unchanged','Business\x20scenario\x20group\x20(not\x20technical):\x20use\x20<scenario>,\x20<domain>---<scenario>\x20when\x20needed;\x20METADATA\x20accepts\x20ungrouped\x20to\x20clear\x20it','appCode','dataset','datasetName','427147CITiWm','write','tableName','modelCode','558792RKersF','keys','parse','found','business-group-update','matched','Expected\x20current\x20business\x20scenario\x20group;\x20use\x20ungrouped\x20to\x20expect\x20no\x20group;\x20mismatch\x20aborts\x20without\x20writing','dbtableConfig','object','string','datasetId','message','Expectation\x20mismatch\x20at\x20businessGroup','name','5EzjwbB','code','ungrouped','businessGroup','29757eewtMr','expectBusinessGroup','length','Clearing\x20business\x20scenario\x20groups\x20is\x20not\x20supported\x20for\x20DB_TABLE\x20datasets.','payload','Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.','number','validation','business-group'];a66_0x12fc=function(){return _0x331ae5;};return a66_0x12fc();}function validateInput(_0x3abba7){const _0x3b8c69=a66_0x30f605;if(!trim(_0x3abba7[_0x3b8c69(0x228)]))throw CliErrors[_0x3b8c69(0x1e8)]('--code\x20is\x20required');if(_0x3abba7['businessGroup']===undefined)throw CliErrors[_0x3b8c69(0x1e8)]('--business-group\x20is\x20required');if(!trim(_0x3abba7['businessGroup']))throw CliErrors['validation']('--business-group\x20must\x20not\x20be\x20blank');}function assertBusinessGroupUpdateSupported(_0x120fcd,_0x1d7662){const _0x24be27=a66_0x30f605;if(_0x120fcd[_0x24be27(0x1fb)]===_0x24be27(0x1ef)&&!_0x1d7662)throw CliErrors['validation'](_0x24be27(0x1e4));}function resolveBusinessGroupDataset(_0x4befb0,_0x20962f){const _0x476ad7=a66_0x30f605,_0x23ae6c=asPlainObject(_0x4befb0[_0x476ad7(0x213)]),_0x47bd16=asPlainObject(_0x4befb0[_0x476ad7(0x220)]),_0x4c0962=resolveSourceType(_0x4befb0,_0x23ae6c,_0x47bd16),_0x1341b4=firstString(_0x4befb0[_0x476ad7(0x218)],_0x4befb0[_0x476ad7(0x228)],_0x23ae6c['datasetCode'],_0x20962f)||_0x20962f;return{'id':firstNumber(_0x4befb0['modelId'],_0x4befb0['id'],_0x23ae6c['datasetId'])??firstString(_0x4befb0['modelId'],_0x4befb0['id'],_0x23ae6c[_0x476ad7(0x223)])??null,'code':_0x1341b4,'name':firstString(_0x4befb0['name'],_0x23ae6c[_0x476ad7(0x214)],_0x23ae6c[_0x476ad7(0x226)])||null,'sourceType':_0x4c0962,'dbTableSelector':_0x4c0962==='DB_TABLE'?{'dbLinkId':firstNumber(_0x47bd16[_0x476ad7(0x1fd)]),'tableName':firstString(_0x47bd16[_0x476ad7(0x217)])||null}:null};}function resolveSourceType(_0x3d2fcd,_0x738f33,_0x42fe8a){const _0x42cc1f=a66_0x30f605,_0x434e28=firstString(_0x3d2fcd[_0x42cc1f(0x1ea)],_0x3d2fcd[_0x42cc1f(0x1fb)],_0x738f33[_0x42cc1f(0x1ea)],_0x738f33[_0x42cc1f(0x1fb)])?.[_0x42cc1f(0x1f2)]()[_0x42cc1f(0x20b)]();if(_0x434e28===_0x42cc1f(0x1ef)||_0x434e28==='METADATA')return _0x434e28;if(Object[_0x42cc1f(0x21a)](_0x42fe8a)[_0x42cc1f(0x1e3)]>0x0)return _0x42cc1f(0x1ef);throw CliErrors[_0x42cc1f(0x1e8)](_0x42cc1f(0x1e6));}function loadCurrentBusinessGroup(_0x118256,_0x642d50){const _0x23a1bf=a66_0x30f605,_0x571ed7=readBusinessGroupFromDatasetDetail(_0x118256,_0x642d50[_0x23a1bf(0x1fb)]);if(_0x571ed7['found'])return normalizeBusinessGroup(_0x571ed7[_0x23a1bf(0x1f4)]);return'';}function readBusinessGroupFromDatasetDetail(_0x31a191,_0x2fdf1f){const _0x285fdd=a66_0x30f605,_0x3f6af5=asPlainObject(_0x31a191[_0x285fdd(0x213)]),_0x595a48=firstPresent(_0x31a191[_0x285fdd(0x1e0)]);if(_0x595a48[_0x285fdd(0x21c)])return _0x595a48;const _0x1b19ff=firstPresent(_0x3f6af5['businessGroup']);if(_0x1b19ff[_0x285fdd(0x21c)])return _0x1b19ff;if(_0x2fdf1f===_0x285fdd(0x1ef))return{'found':![]};const _0x12c5a2=readBusinessGroupFromExtend(_0x31a191[_0x285fdd(0x20d)]);if(_0x12c5a2['found'])return _0x12c5a2;return readBusinessGroupFromExtend(_0x3f6af5['extend']);}function readBusinessGroupFromExtend(_0x5cff75){const _0x1e45c3=a66_0x30f605;if(_0x5cff75===undefined||_0x5cff75===null||_0x5cff75==='')return{'found':![]};if(typeof _0x5cff75===_0x1e45c3(0x222))try{const _0x3f789f=JSON[_0x1e45c3(0x21b)](_0x5cff75);return readBusinessGroupFromExtend(_0x3f789f);}catch{return{'found':![]};}const _0xf4bdaa=asPlainObject(_0x5cff75);if(Object['prototype'][_0x1e45c3(0x1fe)][_0x1e45c3(0x207)](_0xf4bdaa,'businessGroup'))return{'found':!![],'value':_0xf4bdaa[_0x1e45c3(0x1e0)]};return{'found':![]};}function firstPresent(..._0x2a8442){for(const _0x2312f8 of _0x2a8442){if(_0x2312f8!==undefined&&_0x2312f8!==null)return{'found':!![],'value':_0x2312f8};}return{'found':![]};}function assertExpectedBusinessGroup(_0x5274bb,_0x55cf23){const _0x2fac50=a66_0x30f605;if(_0x55cf23===undefined)return;const _0x30ada3=normalizeBusinessGroupArgument(_0x55cf23);if(_0x5274bb!==_0x30ada3)throw CliErrors['validation'](_0x2fac50(0x225),_0x2fac50(0x1ff)+JSON[_0x2fac50(0x1ed)](_0x30ada3)+_0x2fac50(0x201)+JSON['stringify'](_0x5274bb));}function buildBackendPlan(_0x5de5af,_0x5164fc,_0x4beb61){const _0x2f81d4=a66_0x30f605;if(_0x5164fc['sourceType']==='DB_TABLE'){if(!_0x5164fc[_0x2f81d4(0x20e)]||_0x5164fc[_0x2f81d4(0x20e)]['dbLinkId']===null||!_0x5164fc[_0x2f81d4(0x20e)][_0x2f81d4(0x217)])throw CliErrors[_0x2f81d4(0x1e8)](_0x2f81d4(0x20c),_0x2f81d4(0x1fa));return{'kind':'db-table','method':_0x2f81d4(0x208),'path':DB_TABLE_BACKEND_PATH,'payload':{'dbLinkId':_0x5164fc[_0x2f81d4(0x20e)]['dbLinkId'],'tableName':_0x5164fc[_0x2f81d4(0x20e)][_0x2f81d4(0x217)],'businessGroup':_0x4beb61}};}return{'kind':_0x2f81d4(0x1ec),'method':_0x2f81d4(0x208),'path':METADATA_BACKEND_PATH,'payload':{'appCode':_0x5de5af,'datasetCode':_0x5164fc[_0x2f81d4(0x228)],'businessGroup':_0x4beb61}};}function normalizeBusinessGroup(_0x489afe){const _0x5e8fff=a66_0x30f605;if(_0x489afe===undefined||_0x489afe===null)return'';return String(_0x489afe)[_0x5e8fff(0x1f2)]();}function normalizeBusinessGroupArgument(_0x3887cb){const _0x1292aa=normalizeBusinessGroup(_0x3887cb);return _0x1292aa===UNGROUPED_BUSINESS_GROUP?'':_0x1292aa;}function displayBusinessGroup(_0x3ed7f1){return _0x3ed7f1||UNGROUPED_BUSINESS_GROUP;}function asPlainObject(_0x3352e1){const _0x2351bf=a66_0x30f605;if(!_0x3352e1||typeof _0x3352e1!==_0x2351bf(0x221)||Array[_0x2351bf(0x209)](_0x3352e1))return{};return _0x3352e1;}function firstString(..._0x3364c0){const _0x3b8f71=a66_0x30f605;for(const _0x4560db of _0x3364c0){if(typeof _0x4560db===_0x3b8f71(0x222)&&_0x4560db[_0x3b8f71(0x1f2)]())return _0x4560db[_0x3b8f71(0x1f2)]();if(typeof _0x4560db==='number'&&Number[_0x3b8f71(0x1f8)](_0x4560db))return String(_0x4560db);}return undefined;}function firstNumber(..._0x24b58c){const _0x236db4=a66_0x30f605;for(const _0x5db8d2 of _0x24b58c){if(typeof _0x5db8d2===_0x236db4(0x1e7)&&Number[_0x236db4(0x1f8)](_0x5db8d2))return _0x5db8d2;if(typeof _0x5db8d2===_0x236db4(0x222)&&_0x5db8d2['trim']()&&Number['isFinite'](Number(_0x5db8d2)))return Number(_0x5db8d2);}return null;}function trim(_0x1925f9){const _0x4f3287=a66_0x30f605;return String(_0x1925f9||'')[_0x4f3287(0x1f2)]();}
@@ -1 +1 @@
1
- function a67_0x299f(_0x818499,_0x22060b){_0x818499=_0x818499-0x15e;const _0x290b4b=a67_0x290b();let _0x299f40=_0x290b4b[_0x818499];return _0x299f40;}function a67_0x290b(){const _0x40ecab=['read','623VEaGOK','9Plwidn','number','7978280ViVNDx','length','85bkkrDJ','dataset','groups','businessGroup','num','356810giiusk','trim','543977GpRiSi','Found\x20','List\x20DB_TABLE\x20dataset\x20business\x20groups\x20for\x20a\x20database\x20connection;\x20does\x20not\x20include\x20METADATA','dbid','627804fwDjce','map','34376xRHjSN','6125152rykaaO','29028ncaGkr','\x20business\x20group(s)\x20for\x20database\x20connection\x20','appCode'];a67_0x290b=function(){return _0x40ecab;};return a67_0x290b();}const a67_0x5955d3=a67_0x299f;(function(_0x1410b3,_0x309c2d){const _0x1a454d=a67_0x299f,_0x451651=_0x1410b3();while(!![]){try{const _0x32f010=parseInt(_0x1a454d(0x15f))/0x1+-parseInt(_0x1a454d(0x175))/0x2+-parseInt(_0x1a454d(0x163))/0x3+parseInt(_0x1a454d(0x165))/0x4*(-parseInt(_0x1a454d(0x170))/0x5)+-parseInt(_0x1a454d(0x167))/0x6*(-parseInt(_0x1a454d(0x16b))/0x7)+parseInt(_0x1a454d(0x166))/0x8+parseInt(_0x1a454d(0x16c))/0x9*(-parseInt(_0x1a454d(0x16e))/0xa);if(_0x32f010===_0x309c2d)break;else _0x451651['push'](_0x451651['shift']());}catch(_0x464d0f){_0x451651['push'](_0x451651['shift']());}}}(a67_0x290b,0x63c1c));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getErBusinessGroupSummary}from'../../core/api-client.js';export const datasetBusinessGroups={'service':a67_0x5955d3(0x171),'command':'business-groups','description':a67_0x5955d3(0x161),'risk':a67_0x5955d3(0x16a),'flags':[{'name':a67_0x5955d3(0x162),'type':a67_0x5955d3(0x16d),'required':!![],'description':'Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)'},APPCODE_FLAG_OPTIONAL],async 'execute'(_0x13e80f){const _0x3ee237=a67_0x5955d3,_0x2d8718=_0x13e80f[_0x3ee237(0x174)](_0x3ee237(0x162)),_0x19f52f=await getErBusinessGroupSummary(_0x13e80f[_0x3ee237(0x169)],_0x2d8718),_0x3e3ebc=_0x19f52f[_0x3ee237(0x172)][_0x3ee237(0x164)](_0xb002b=>({..._0xb002b,'businessGroup':_0xb002b[_0x3ee237(0x173)][_0x3ee237(0x15e)]()||'ungrouped'}));return{'ok':!![],'data':{..._0x19f52f,'groups':_0x3e3ebc,'scope':'DB_TABLE'},'message':_0x3ee237(0x160)+_0x3e3ebc[_0x3ee237(0x16f)]+_0x3ee237(0x168)+_0x2d8718};}};
1
+ const a67_0x29690e=a67_0x12ee;function a67_0xa1a2(){const _0xde78ec=['\x20business\x20group(s)\x20for\x20database\x20connection\x20','map','DB_TABLE','ungrouped','dbid','num','1082433hgVkkb','groups','appCode','60NNZGfR','212TmbdHg','39466LcCoiU','156610IcEKEX','business-groups','number','Found\x20','businessGroup','2DCrhye','length','List\x20DB_TABLE\x20dataset\x20business\x20groups\x20for\x20a\x20database\x20connection;\x20does\x20not\x20include\x20METADATA','144NiFVwp','226174UTIiGC','478473RoQyEF','190ooPapR','9108242LHCzEx','1845amazCR','38960wQPgYx'];a67_0xa1a2=function(){return _0xde78ec;};return a67_0xa1a2();}(function(_0x269758,_0x291448){const _0x8ff9a9=a67_0x12ee,_0x516bf7=_0x269758();while(!![]){try{const _0x5109f0=parseInt(_0x8ff9a9(0xa0))/0x1+-parseInt(_0x8ff9a9(0x9c))/0x2*(parseInt(_0x8ff9a9(0xa1))/0x3)+parseInt(_0x8ff9a9(0x95))/0x4*(parseInt(_0x8ff9a9(0x97))/0x5)+-parseInt(_0x8ff9a9(0x9f))/0x6*(parseInt(_0x8ff9a9(0x96))/0x7)+parseInt(_0x8ff9a9(0xa5))/0x8*(parseInt(_0x8ff9a9(0xa4))/0x9)+parseInt(_0x8ff9a9(0xa2))/0xa*(parseInt(_0x8ff9a9(0x91))/0xb)+parseInt(_0x8ff9a9(0x94))/0xc*(-parseInt(_0x8ff9a9(0xa3))/0xd);if(_0x5109f0===_0x291448)break;else _0x516bf7['push'](_0x516bf7['shift']());}catch(_0x44baed){_0x516bf7['push'](_0x516bf7['shift']());}}}(a67_0xa1a2,0xe9772));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a67_0x12ee(_0x3b3083,_0x30b16f){_0x3b3083=_0x3b3083-0x90;const _0xa1a2d0=a67_0xa1a2();let _0x12ee1e=_0xa1a2d0[_0x3b3083];return _0x12ee1e;}import{getErBusinessGroupSummary}from'../../core/api-client.js';export const datasetBusinessGroups={'service':'dataset','command':a67_0x29690e(0x98),'description':a67_0x29690e(0x9e),'risk':'read','flags':[{'name':a67_0x29690e(0xaa),'type':a67_0x29690e(0x99),'required':!![],'description':'Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)'},APPCODE_FLAG_OPTIONAL],async 'execute'(_0x5d77e2){const _0x36ed25=a67_0x29690e,_0x2f4b75=_0x5d77e2[_0x36ed25(0x90)](_0x36ed25(0xaa)),_0x4945a7=await getErBusinessGroupSummary(_0x5d77e2[_0x36ed25(0x93)],_0x2f4b75),_0x53e11d=_0x4945a7[_0x36ed25(0x92)][_0x36ed25(0xa7)](_0x5495b5=>({..._0x5495b5,'businessGroup':_0x5495b5[_0x36ed25(0x9b)]['trim']()||_0x36ed25(0xa9)}));return{'ok':!![],'data':{..._0x4945a7,'groups':_0x53e11d,'scope':_0x36ed25(0xa8)},'message':_0x36ed25(0x9a)+_0x53e11d[_0x36ed25(0x9d)]+_0x36ed25(0xa6)+_0x2f4b75};}};
@@ -1 +1 @@
1
- function a68_0x857b(_0x53b8c4,_0x41edb1){_0x53b8c4=_0x53b8c4-0x188;const _0x765c67=a68_0x765c();let _0x857b14=_0x765c67[_0x53b8c4];return _0x857b14;}function a68_0x765c(){const _0xe275a9=['Reason:\x20schema\x20introspection\x20and\x20custom\x20SQL\x20require\x20source=DB_TABLE,\x20dbtableConfig.dbId,\x20dbtableConfig.tableName,\x20and\x20a\x20database\x20connection\x20context.','METADATA','sourceType','SQL\x20schema\x20validation','Upgrade\x20or\x20migrate\x20this\x20dataset\x20to\x20a\x20DB_TABLE\x20dataset,\x20then\x20continue\x20with\x20the\x20new\x20dataset\x20code.','7976458HDSkGM','tableName','datasetName','unknown','dataset','Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27<json>\x27\x20--format\x20compress','filter','\x20and\x20has\x20no\x20DB_TABLE\x20data-source\x20context\x20for\x20','source','\x20is\x20','To\x20inspect\x20real\x20runtime\x20rows,\x20switch\x20to\x20lovrabet\x20CLI:\x20','787132vibyfc','3243570fWcKCv','datasetCode','9544455ImFqVj','The\x20current\x20dataset\x20\x22','4275APTSGF','1658452PkmfmN','76290iKhSFv','11287832xJsxqo','code','dbtable','join','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27\x20--format\x20compress','2lbVBAE','trim','dbId','6chZDTT','length','dbtableConfig'];a68_0x765c=function(){return _0xe275a9;};return a68_0x765c();}const a68_0x7d1eb6=a68_0x857b;(function(_0x4e5614,_0x3542d5){const _0x44ab03=a68_0x857b,_0x45c13b=_0x4e5614();while(!![]){try{const _0x3635fc=parseInt(_0x44ab03(0x18f))/0x1+parseInt(_0x44ab03(0x19c))/0x2*(-parseInt(_0x44ab03(0x190))/0x3)+parseInt(_0x44ab03(0x195))/0x4+parseInt(_0x44ab03(0x192))/0x5*(parseInt(_0x44ab03(0x19f))/0x6)+parseInt(_0x44ab03(0x1a7))/0x7+parseInt(_0x44ab03(0x197))/0x8+parseInt(_0x44ab03(0x194))/0x9*(-parseInt(_0x44ab03(0x196))/0xa);if(_0x3635fc===_0x3542d5)break;else _0x45c13b['push'](_0x45c13b['shift']());}catch(_0x3a4b4a){_0x45c13b['push'](_0x45c13b['shift']());}}}(a68_0x765c,0xe96f0));import{CliErrors}from'../../errors.js';export const RUNTIME_DATA_ACCESS_COMMANDS={'cli':'lovrabet','filter':a68_0x7d1eb6(0x189),'getOne':a68_0x7d1eb6(0x19b)};export const RUNTIME_DATA_ACCESS_SUMMARY=a68_0x7d1eb6(0x188);function valueToString(_0x2c2777){const _0x43b5db=a68_0x7d1eb6;return _0x2c2777==null?'':String(_0x2c2777)[_0x43b5db(0x19d)]();}function getDatasetCode(_0x24aa6a){const _0x5e3cdd=a68_0x7d1eb6;return valueToString(_0x24aa6a[_0x5e3cdd(0x198)]??_0x24aa6a['modelCode']??_0x24aa6a[_0x5e3cdd(0x1ab)]?.[_0x5e3cdd(0x191)]);}function getDatasetName(_0x17a192){const _0x223ff8=a68_0x7d1eb6;return valueToString(_0x17a192['name']??_0x17a192[_0x223ff8(0x1ab)]?.[_0x223ff8(0x1a9)])||_0x223ff8(0x1aa);}function getDatasetSource(_0x523e88){const _0x5cedc0=a68_0x7d1eb6;return valueToString(_0x523e88[_0x5cedc0(0x18c)]??_0x523e88[_0x5cedc0(0x1ab)]?.[_0x5cedc0(0x1a4)])['toUpperCase']();}function getDbtableConfig(_0x4118eb){const _0x16d5eb=a68_0x7d1eb6,_0x5016d5=_0x4118eb[_0x16d5eb(0x1a1)]??_0x4118eb[_0x16d5eb(0x199)];return _0x5016d5&&typeof _0x5016d5==='object'?_0x5016d5:{};}export function isDbTableBackedDataset(_0x42434a){const _0x3db7eb=a68_0x7d1eb6,_0x2f259e=getDatasetSource(_0x42434a);if(_0x2f259e===_0x3db7eb(0x1a3))return![];const _0x462a6e=getDbtableConfig(_0x42434a),_0x1e199e=_0x462a6e[_0x3db7eb(0x19e)]??_0x462a6e['id'],_0x5f45ed=valueToString(_0x462a6e['tableName']??_0x42434a[_0x3db7eb(0x1a8)]??_0x42434a[_0x3db7eb(0x1ab)]?.[_0x3db7eb(0x1a8)]);return _0x1e199e!==undefined&&_0x1e199e!==null&&_0x5f45ed[_0x3db7eb(0x1a0)]>0x0;}export function filterDbTableBackedDatasets(_0x5b5cdc){const _0x55c652=a68_0x7d1eb6;return _0x5b5cdc[_0x55c652(0x18a)](_0x239506=>isDbTableBackedDataset(_0x239506));}export function buildDbTableBackedRequirementMessage(_0x576308,_0x1cfdd7=a68_0x7d1eb6(0x1a5)){const _0x1ac8e3=a68_0x7d1eb6,_0x17baf3=getDatasetSource(_0x576308)||'UNKNOWN',_0x2f93de=getDatasetName(_0x576308),_0x1c8ee3=getDatasetCode(_0x576308),_0x28a853=_0x1c8ee3?'\x20('+_0x1c8ee3+')':'';return[_0x1ac8e3(0x193)+_0x2f93de+'\x22'+_0x28a853+_0x1ac8e3(0x18d)+_0x17baf3+_0x1ac8e3(0x18b)+_0x1cfdd7+'.',_0x1ac8e3(0x1a2),_0x1ac8e3(0x1a6),_0x1ac8e3(0x18e)+RUNTIME_DATA_ACCESS_COMMANDS['filter']+';\x20'+RUNTIME_DATA_ACCESS_COMMANDS['getOne']+'.'][_0x1ac8e3(0x19a)]('\x20');}export function assertDatasetIsDbTableBacked(_0x2b2431,_0x254ffd){if(!isDbTableBackedDataset(_0x2b2431))throw CliErrors['validation'](buildDbTableBackedRequirementMessage(_0x2b2431,_0x254ffd));}
1
+ const a68_0x32e2ed=a68_0x3805;(function(_0x4c232d,_0x84894){const _0x1beb41=a68_0x3805,_0x4e58fd=_0x4c232d();while(!![]){try{const _0x162e31=-parseInt(_0x1beb41(0x149))/0x1*(parseInt(_0x1beb41(0x145))/0x2)+parseInt(_0x1beb41(0x13a))/0x3+parseInt(_0x1beb41(0x14b))/0x4*(-parseInt(_0x1beb41(0x136))/0x5)+parseInt(_0x1beb41(0x153))/0x6*(parseInt(_0x1beb41(0x133))/0x7)+parseInt(_0x1beb41(0x134))/0x8*(parseInt(_0x1beb41(0x13e))/0x9)+-parseInt(_0x1beb41(0x13b))/0xa*(parseInt(_0x1beb41(0x14c))/0xb)+-parseInt(_0x1beb41(0x154))/0xc*(parseInt(_0x1beb41(0x151))/0xd);if(_0x162e31===_0x84894)break;else _0x4e58fd['push'](_0x4e58fd['shift']());}catch(_0x38d5e3){_0x4e58fd['push'](_0x4e58fd['shift']());}}}(a68_0x2004,0xbac06));import{CliErrors}from'../../errors.js';export const RUNTIME_DATA_ACCESS_COMMANDS={'cli':a68_0x32e2ed(0x137),'filter':'lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27<json>\x27\x20--format\x20compress','getOne':'lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27\x20--format\x20compress'};function a68_0x3805(_0x1d9a39,_0x414331){_0x1d9a39=_0x1d9a39-0x133;const _0x2004b3=a68_0x2004();let _0x3805da=_0x2004b3[_0x1d9a39];return _0x3805da;}export const RUNTIME_DATA_ACCESS_SUMMARY=a68_0x32e2ed(0x14d);function valueToString(_0x416a07){const _0x3b426e=a68_0x32e2ed;return _0x416a07==null?'':String(_0x416a07)[_0x3b426e(0x13c)]();}function getDatasetCode(_0x56c3e9){const _0x51ff86=a68_0x32e2ed;return valueToString(_0x56c3e9[_0x51ff86(0x138)]??_0x56c3e9[_0x51ff86(0x142)]??_0x56c3e9[_0x51ff86(0x14f)]?.[_0x51ff86(0x150)]);}function getDatasetName(_0xe2d70e){const _0x4fc197=a68_0x32e2ed;return valueToString(_0xe2d70e['name']??_0xe2d70e['dataset']?.[_0x4fc197(0x144)])||_0x4fc197(0x141);}function getDatasetSource(_0x43cdf0){const _0x3ee68f=a68_0x32e2ed;return valueToString(_0x43cdf0['source']??_0x43cdf0[_0x3ee68f(0x14f)]?.[_0x3ee68f(0x139)])['toUpperCase']();}function getDbtableConfig(_0x35df41){const _0x3ffb9c=a68_0x32e2ed,_0x56cb05=_0x35df41['dbtableConfig']??_0x35df41[_0x3ffb9c(0x13f)];return _0x56cb05&&typeof _0x56cb05===_0x3ffb9c(0x140)?_0x56cb05:{};}export function isDbTableBackedDataset(_0x2ba5e0){const _0x1cef41=a68_0x32e2ed,_0x42a63b=getDatasetSource(_0x2ba5e0);if(_0x42a63b==='METADATA')return![];const _0x30bd08=getDbtableConfig(_0x2ba5e0),_0x222077=_0x30bd08[_0x1cef41(0x148)]??_0x30bd08['id'],_0x5f4289=valueToString(_0x30bd08[_0x1cef41(0x14e)]??_0x2ba5e0[_0x1cef41(0x14e)]??_0x2ba5e0[_0x1cef41(0x14f)]?.[_0x1cef41(0x14e)]);return _0x222077!==undefined&&_0x222077!==null&&_0x5f4289[_0x1cef41(0x14a)]>0x0;}export function filterDbTableBackedDatasets(_0x310dfa){const _0x58bcb3=a68_0x32e2ed;return _0x310dfa[_0x58bcb3(0x143)](_0x1c3e7f=>isDbTableBackedDataset(_0x1c3e7f));}export function buildDbTableBackedRequirementMessage(_0x2905d6,_0x214d01=a68_0x32e2ed(0x146)){const _0x5e7b6f=a68_0x32e2ed,_0x1ce372=getDatasetSource(_0x2905d6)||'UNKNOWN',_0x5cc034=getDatasetName(_0x2905d6),_0x43558=getDatasetCode(_0x2905d6),_0x49ab90=_0x43558?'\x20('+_0x43558+')':'';return['The\x20current\x20dataset\x20\x22'+_0x5cc034+'\x22'+_0x49ab90+'\x20is\x20'+_0x1ce372+_0x5e7b6f(0x13d)+_0x214d01+'.',_0x5e7b6f(0x152),_0x5e7b6f(0x147),_0x5e7b6f(0x135)+RUNTIME_DATA_ACCESS_COMMANDS[_0x5e7b6f(0x143)]+';\x20'+RUNTIME_DATA_ACCESS_COMMANDS['getOne']+'.']['join']('\x20');}export function assertDatasetIsDbTableBacked(_0x457c18,_0x5a9174){if(!isDbTableBackedDataset(_0x457c18))throw CliErrors['validation'](buildDbTableBackedRequirementMessage(_0x457c18,_0x5a9174));}function a68_0x2004(){const _0x415516=['121ErOZID','Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.','tableName','dataset','datasetCode','35113kKxuqu','Reason:\x20schema\x20introspection\x20and\x20custom\x20SQL\x20require\x20source=DB_TABLE,\x20dbtableConfig.dbId,\x20dbtableConfig.tableName,\x20and\x20a\x20database\x20connection\x20context.','3564xwqBpe','1596JPpuuv','2296liRYar','8WPDCeX','To\x20inspect\x20real\x20runtime\x20rows,\x20switch\x20to\x20lovrabet\x20CLI:\x20','1775wTixur','lovrabet','code','sourceType','1760655iUKOKB','207650MOAPwc','trim','\x20and\x20has\x20no\x20DB_TABLE\x20data-source\x20context\x20for\x20','10794105dIidea','dbtable','object','unknown','modelCode','filter','datasetName','10474OcqnGH','SQL\x20schema\x20validation','Upgrade\x20or\x20migrate\x20this\x20dataset\x20to\x20a\x20DB_TABLE\x20dataset,\x20then\x20continue\x20with\x20the\x20new\x20dataset\x20code.','dbId','55BLJyPe','length','3836CjHRNO'];a68_0x2004=function(){return _0x415516;};return a68_0x2004();}
@@ -1 +1 @@
1
- const a69_0x2fec55=a69_0x4e4e;function a69_0x4e4e(_0x5d28ed,_0x47d130){_0x5d28ed=_0x5d28ed-0x1ef;const _0x53d44e=a69_0x53d4();let _0x4e4e42=_0x53d44e[_0x5d28ed];return _0x4e4e42;}(function(_0xa9382d,_0x59e29b){const _0xf54b3f=a69_0x4e4e,_0x14ab4f=_0xa9382d();while(!![]){try{const _0x5dd51e=parseInt(_0xf54b3f(0x1f2))/0x1*(parseInt(_0xf54b3f(0x1f4))/0x2)+-parseInt(_0xf54b3f(0x1f5))/0x3*(-parseInt(_0xf54b3f(0x1fb))/0x4)+-parseInt(_0xf54b3f(0x1f3))/0x5*(parseInt(_0xf54b3f(0x1f8))/0x6)+parseInt(_0xf54b3f(0x1fc))/0x7+-parseInt(_0xf54b3f(0x1f1))/0x8*(-parseInt(_0xf54b3f(0x1f0))/0x9)+-parseInt(_0xf54b3f(0x1fa))/0xa+-parseInt(_0xf54b3f(0x1f7))/0xb;if(_0x5dd51e===_0x59e29b)break;else _0x14ab4f['push'](_0x14ab4f['shift']());}catch(_0x258525){_0x14ab4f['push'](_0x14ab4f['shift']());}}}(a69_0x53d4,0x31224));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_0x53d4(){const _0x53a766=['1363915MxUQHE','4rhauDc','360546XSeAHb','cross-relation-create','4266152fAhwXu','6cPUdOe','dataset','432860gODUah','12ppAVGk','2691780rmdSev','create','8685WwvOmZ','216VOswUD','67006zvxdDQ'];a69_0x53d4=function(){return _0x53a766;};return a69_0x53d4();}import{executeCrossRelation,previewCrossRelation,validateCrossRelation}from'../../commands/dataset/cross-relation-shared.js';export const datasetCrossRelationCreate={'service':a69_0x2fec55(0x1f9),'command':a69_0x2fec55(0x1f6),'description':'Create\x20a\x20logical\x20relation\x20between\x20DB_TABLE\x20datasets\x20in\x20different\x20database\x20connections','risk':'write','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 _0x5df924=>validateCrossRelation(_0x5df924,a69_0x2fec55(0x1ef)),'dryRun':_0x2298b9=>previewCrossRelation(_0x2298b9,a69_0x2fec55(0x1ef)),'execute':_0x3608b9=>executeCrossRelation(_0x3608b9,a69_0x2fec55(0x1ef),createCrossDbRelation)};
1
+ const a69_0x595fcb=a69_0x3f3b;(function(_0x389eee,_0x500a74){const _0x1818f2=a69_0x3f3b,_0x31c38d=_0x389eee();while(!![]){try{const _0x1b6784=-parseInt(_0x1818f2(0x1d4))/0x1+-parseInt(_0x1818f2(0x1cd))/0x2+parseInt(_0x1818f2(0x1c8))/0x3+parseInt(_0x1818f2(0x1d5))/0x4+parseInt(_0x1818f2(0x1cc))/0x5*(-parseInt(_0x1818f2(0x1d2))/0x6)+parseInt(_0x1818f2(0x1d0))/0x7*(parseInt(_0x1818f2(0x1d6))/0x8)+-parseInt(_0x1818f2(0x1ca))/0x9*(-parseInt(_0x1818f2(0x1cb))/0xa);if(_0x1b6784===_0x500a74)break;else _0x31c38d['push'](_0x31c38d['shift']());}catch(_0x30b4c7){_0x31c38d['push'](_0x31c38d['shift']());}}}(a69_0x35e3,0x86116));import{createCrossDbRelation}from'../../core/api-client.js';import{CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG,CROSS_RELATION_TO_DATASET_FLAG,CROSS_RELATION_TO_COLUMN_FLAG,CROSS_RELATION_LABEL_FLAG,CROSS_RELATION_CARDINALITY_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{executeCrossRelation,previewCrossRelation,validateCrossRelation}from'../../commands/dataset/cross-relation-shared.js';export const datasetCrossRelationCreate={'service':a69_0x595fcb(0x1d3),'command':a69_0x595fcb(0x1d1),'description':a69_0x595fcb(0x1ce),'risk':a69_0x595fcb(0x1c9),'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 _0x49efe2=>validateCrossRelation(_0x49efe2,a69_0x595fcb(0x1cf)),'dryRun':_0x13b3c4=>previewCrossRelation(_0x13b3c4,'create'),'execute':_0x44d1e1=>executeCrossRelation(_0x44d1e1,a69_0x595fcb(0x1cf),createCrossDbRelation)};function a69_0x3f3b(_0x3e45c9,_0x4214c8){_0x3e45c9=_0x3e45c9-0x1c8;const _0x35e3e8=a69_0x35e3();let _0x3f3b74=_0x35e3e8[_0x3e45c9];return _0x3f3b74;}function a69_0x35e3(){const _0x413461=['1188gLOLnM','40VGsdgc','5vxCwyF','861676ruQqwK','Create\x20a\x20logical\x20relation\x20between\x20DB_TABLE\x20datasets\x20in\x20different\x20database\x20connections','create','650069Icndgv','cross-relation-create','745086eRHyky','dataset','288253ujGSGH','1368028OtWqez','40nbjcjV','1756632SDQaCt','write'];a69_0x35e3=function(){return _0x413461;};return a69_0x35e3();}
@@ -1 +1 @@
1
- function a70_0x3ac9(_0x1d304e,_0x3e826c){_0x1d304e=_0x1d304e-0x89;const _0x1d5e46=a70_0x1d5e();let _0x3ac9d3=_0x1d5e46[_0x1d304e];return _0x3ac9d3;}const a70_0x4118a3=a70_0x3ac9;(function(_0x2957dd,_0x42259f){const _0x2e151c=a70_0x3ac9,_0x1805c0=_0x2957dd();while(!![]){try{const _0x5cff62=parseInt(_0x2e151c(0x89))/0x1*(-parseInt(_0x2e151c(0x8e))/0x2)+parseInt(_0x2e151c(0x91))/0x3*(parseInt(_0x2e151c(0x8f))/0x4)+-parseInt(_0x2e151c(0x8c))/0x5+parseInt(_0x2e151c(0x90))/0x6*(parseInt(_0x2e151c(0x98))/0x7)+-parseInt(_0x2e151c(0x95))/0x8*(parseInt(_0x2e151c(0x92))/0x9)+parseInt(_0x2e151c(0x8a))/0xa*(-parseInt(_0x2e151c(0x8b))/0xb)+parseInt(_0x2e151c(0x96))/0xc;if(_0x5cff62===_0x42259f)break;else _0x1805c0['push'](_0x1805c0['shift']());}catch(_0x3bda8a){_0x1805c0['push'](_0x1805c0['shift']());}}}(a70_0x1d5e,0x1fff8));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_0x1d5e(){const _0x17a773=['delete','cross-relation-delete','32EIXEYH','5081484QjGIIq','dataset','347522AGyRzd','1XsupRb','80YVsUMH','170434IZbslj','506745FsjrTV','Delete\x20the\x20single\x20cross-database\x20relation\x20matching\x20a\x20source\x20dataset\x20and\x20field','432458onLJTu','1012516KZzayl','12YAhHlB','3nWClVj','457389IaYhbV'];a70_0x1d5e=function(){return _0x17a773;};return a70_0x1d5e();}export const datasetCrossRelationDelete={'service':a70_0x4118a3(0x97),'command':a70_0x4118a3(0x94),'description':a70_0x4118a3(0x8d),'risk':'high-risk-write','strictFlags':!![],'requiresCookieAuth':!![],'structuredErrors':!![],'flags':[CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG,CROSS_RELATION_DBLINK_FLAG,APPCODE_FLAG_OPTIONAL],'validate':async _0x5a4fec=>validateCrossRelation(_0x5a4fec,a70_0x4118a3(0x93)),'dryRun':_0x254dfd=>previewCrossRelation(_0x254dfd,a70_0x4118a3(0x93)),'execute':_0x575dec=>executeCrossRelation(_0x575dec,a70_0x4118a3(0x93),deleteCrossDbRelation)};
1
+ const a70_0x3b0f8f=a70_0x4d9b;(function(_0x3c33ec,_0x396128){const _0x4e1c18=a70_0x4d9b,_0x52172c=_0x3c33ec();while(!![]){try{const _0x2d8380=parseInt(_0x4e1c18(0xd2))/0x1*(-parseInt(_0x4e1c18(0xd5))/0x2)+parseInt(_0x4e1c18(0xcd))/0x3*(-parseInt(_0x4e1c18(0xd4))/0x4)+-parseInt(_0x4e1c18(0xd0))/0x5+-parseInt(_0x4e1c18(0xdb))/0x6+-parseInt(_0x4e1c18(0xd8))/0x7+-parseInt(_0x4e1c18(0xd1))/0x8+parseInt(_0x4e1c18(0xd7))/0x9*(parseInt(_0x4e1c18(0xcf))/0xa);if(_0x2d8380===_0x396128)break;else _0x52172c['push'](_0x52172c['shift']());}catch(_0x35761c){_0x52172c['push'](_0x52172c['shift']());}}}(a70_0x4b8e,0x2a24a));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_0x4d9b(_0x5a3e61,_0xaa0aa9){_0x5a3e61=_0x5a3e61-0xcd;const _0x4b8ede=a70_0x4b8e();let _0x4d9b55=_0x4b8ede[_0x5a3e61];return _0x4d9b55;}function a70_0x4b8e(){const _0x307d8e=['400432AstXoJ','11892nYrwGJ','high-risk-write','292MujTON','56iwxvGw','cross-relation-delete','81945ZUcngA','637133YZljeM','Delete\x20the\x20single\x20cross-database\x20relation\x20matching\x20a\x20source\x20dataset\x20and\x20field','delete','1304706oBPjPM','3525uwnkpM','dataset','1090KQGhYx','212760Oqqafz'];a70_0x4b8e=function(){return _0x307d8e;};return a70_0x4b8e();}export const datasetCrossRelationDelete={'service':a70_0x3b0f8f(0xce),'command':a70_0x3b0f8f(0xd6),'description':a70_0x3b0f8f(0xd9),'risk':a70_0x3b0f8f(0xd3),'strictFlags':!![],'requiresCookieAuth':!![],'structuredErrors':!![],'flags':[CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG,CROSS_RELATION_DBLINK_FLAG,APPCODE_FLAG_OPTIONAL],'validate':async _0x50649e=>validateCrossRelation(_0x50649e,'delete'),'dryRun':_0x3fc3bb=>previewCrossRelation(_0x3fc3bb,a70_0x3b0f8f(0xda)),'execute':_0x3e3ff1=>executeCrossRelation(_0x3e3ff1,a70_0x3b0f8f(0xda),deleteCrossDbRelation)};
@@ -1 +1 @@
1
- const a71_0x4d0182=a71_0x316f;(function(_0x444a1a,_0x538991){const _0x3dac3b=a71_0x316f,_0x48573f=_0x444a1a();while(!![]){try{const _0x3d66ea=-parseInt(_0x3dac3b(0x147))/0x1*(parseInt(_0x3dac3b(0x13e))/0x2)+parseInt(_0x3dac3b(0x149))/0x3*(-parseInt(_0x3dac3b(0x145))/0x4)+parseInt(_0x3dac3b(0x141))/0x5+-parseInt(_0x3dac3b(0x142))/0x6+parseInt(_0x3dac3b(0x143))/0x7+-parseInt(_0x3dac3b(0x146))/0x8*(parseInt(_0x3dac3b(0x13f))/0x9)+parseInt(_0x3dac3b(0x148))/0xa;if(_0x3d66ea===_0x538991)break;else _0x48573f['push'](_0x48573f['shift']());}catch(_0x1c8e3a){_0x48573f['push'](_0x48573f['shift']());}}}(a71_0x4f81,0xbddbc));function a71_0x316f(_0x19db01,_0x541307){_0x19db01=_0x19db01-0x13c;const _0x4f81e2=a71_0x4f81();let _0x316fb5=_0x4f81e2[_0x19db01];return _0x316fb5;}import{queryCrossDbRelations}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,CROSS_RELATION_DBLINK_FLAG,CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG}from'../../commands/common/flags.js';import{projectCrossRelation,resolveCrossRelationQuery,validateCrossRelation}from'../../commands/dataset/cross-relation-shared.js';function a71_0x4f81(){const _0x37f64c=['map','638165DppifL','6823194QLgiEj','9399593tKaLRx','list','3452PzBdKN','11952248QXFMpW','166HPBkbk','27115750XfmeEw','1167VYAJRn','cross-relation-list','\x20relation(s)','List\x20outgoing\x20cross-database\x20relations\x20by\x20source\x20dataset\x20or\x20database\x20connection','length','appCode','Cross-database\x20relations:\x20','read','5270aEpwOB','9zIPtYy'];a71_0x4f81=function(){return _0x37f64c;};return a71_0x4f81();}export const datasetCrossRelationList={'service':'dataset','command':a71_0x4d0182(0x14a),'description':a71_0x4d0182(0x14c),'risk':a71_0x4d0182(0x13d),'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 _0x1798c8=>validateCrossRelation(_0x1798c8,a71_0x4d0182(0x144)),async 'execute'(_0x21bf02){const _0x157172=a71_0x4d0182,_0x13dfd1=await resolveCrossRelationQuery(_0x21bf02),_0x451c7f=await queryCrossDbRelations(_0x13dfd1);return{'ok':!![],'data':{'appCode':_0x21bf02[_0x157172(0x14e)],'selector':_0x13dfd1,'total':_0x451c7f[_0x157172(0x14d)],'relations':_0x451c7f[_0x157172(0x140)](projectCrossRelation)},'message':_0x157172(0x13c)+_0x451c7f[_0x157172(0x14d)]+_0x157172(0x14b)};}};
1
+ const a71_0x511bc2=a71_0x2a9a;function a71_0x13da(){const _0x500e72=['length','6662qxwhIW','1133AHpzvE','read','681948RpMGIW','157656fBIJdd','cross-relation-list','List\x20outgoing\x20cross-database\x20relations\x20by\x20source\x20dataset\x20or\x20database\x20connection','dataset','119RdVcEI','list','1775576pRrCRX','121368MfKSpk','Cross-database\x20relations:\x20','10dbEATZ','\x20relation(s)','275733IqDKtg','686540CNcPsD','appCode','map','12eCckrT','24baznfe'];a71_0x13da=function(){return _0x500e72;};return a71_0x13da();}(function(_0x1b8173,_0x11c50e){const _0x1473ab=a71_0x2a9a,_0x446a7a=_0x1b8173();while(!![]){try{const _0x1317bc=-parseInt(_0x1473ab(0xcf))/0x1*(-parseInt(_0x1473ab(0xcd))/0x2)+parseInt(_0x1473ab(0xde))/0x3+parseInt(_0x1473ab(0xd9))/0x4+parseInt(_0x1473ab(0xdf))/0x5*(parseInt(_0x1473ab(0xe2))/0x6)+-parseInt(_0x1473ab(0xd7))/0x7*(-parseInt(_0x1473ab(0xd3))/0x8)+-parseInt(_0x1473ab(0xd2))/0x9*(-parseInt(_0x1473ab(0xdc))/0xa)+-parseInt(_0x1473ab(0xd0))/0xb*(parseInt(_0x1473ab(0xda))/0xc);if(_0x1317bc===_0x11c50e)break;else _0x446a7a['push'](_0x446a7a['shift']());}catch(_0x5042b1){_0x446a7a['push'](_0x446a7a['shift']());}}}(a71_0x13da,0x3f556));import{queryCrossDbRelations}from'../../core/api-client.js';function a71_0x2a9a(_0x399fb5,_0x467156){_0x399fb5=_0x399fb5-0xcd;const _0x13dabb=a71_0x13da();let _0x2a9a16=_0x13dabb[_0x399fb5];return _0x2a9a16;}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_0x511bc2(0xd6),'command':a71_0x511bc2(0xd4),'description':a71_0x511bc2(0xd5),'risk':a71_0x511bc2(0xd1),'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 _0x30bb7b=>validateCrossRelation(_0x30bb7b,a71_0x511bc2(0xd8)),async 'execute'(_0x2d34a4){const _0x62e818=a71_0x511bc2,_0x2494a3=await resolveCrossRelationQuery(_0x2d34a4),_0x5530ce=await queryCrossDbRelations(_0x2494a3);return{'ok':!![],'data':{'appCode':_0x2d34a4[_0x62e818(0xe0)],'selector':_0x2494a3,'total':_0x5530ce[_0x62e818(0xce)],'relations':_0x5530ce[_0x62e818(0xe1)](projectCrossRelation)},'message':_0x62e818(0xdb)+_0x5530ce[_0x62e818(0xce)]+_0x62e818(0xdd)};}};
@@ -1 +1 @@
1
- const a72_0x4b8dac=a72_0x4345;(function(_0x31ea1b,_0x4169f4){const _0x4f060f=a72_0x4345,_0x327a9a=_0x31ea1b();while(!![]){try{const _0x1846d1=-parseInt(_0x4f060f(0xb5))/0x1+parseInt(_0x4f060f(0x92))/0x2*(-parseInt(_0x4f060f(0xb6))/0x3)+parseInt(_0x4f060f(0xba))/0x4+-parseInt(_0x4f060f(0xbf))/0x5+-parseInt(_0x4f060f(0x8e))/0x6*(-parseInt(_0x4f060f(0x81))/0x7)+-parseInt(_0x4f060f(0x80))/0x8+parseInt(_0x4f060f(0x9e))/0x9;if(_0x1846d1===_0x4169f4)break;else _0x327a9a['push'](_0x327a9a['shift']());}catch(_0x4942f0){_0x327a9a['push'](_0x327a9a['shift']());}}}(a72_0x1d54,0xdd1b1));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(_0x51f10c,_0x4a1cf8){const _0x53e78b=a72_0x4345,_0x5565a7=_0x51f10c[_0x53e78b(0x9b)](_0x4a1cf8)[_0x53e78b(0xa3)]();if(!_0x5565a7)throw CliErrors['flagMissing'](_0x4a1cf8);return _0x5565a7;}function explicitDblink(_0x16aacc){const _0x18cf67=a72_0x4345,_0x2e92a1=_0x16aacc[_0x18cf67(0x6f)]('from-dblink-id');if(_0x2e92a1===undefined||_0x2e92a1===null)return undefined;const _0x3ef955=Number(_0x2e92a1);if(!Number['isSafeInteger'](_0x3ef955)||_0x3ef955<=0x0)throw CliErrors[_0x18cf67(0x95)](_0x18cf67(0x71));return _0x3ef955;}export function validateCrossRelation(_0x4f61a5,_0x48468c){const _0x5c23a1=a72_0x4345,_0x248aa7=explicitDblink(_0x4f61a5);if(_0x48468c===_0x5c23a1(0xb1)){if(!_0x4f61a5['str'](_0x5c23a1(0xc1))[_0x5c23a1(0xa3)]()&&_0x248aa7===undefined)throw CliErrors[_0x5c23a1(0x95)](_0x5c23a1(0xc0));return;}required(_0x4f61a5,'from-datasetcode'),required(_0x4f61a5,_0x5c23a1(0xbd));if(_0x48468c!==_0x5c23a1(0x79)){required(_0x4f61a5,_0x5c23a1(0xb4)),required(_0x4f61a5,'to-column');const _0xe335c1=_0x4f61a5['str'](_0x5c23a1(0x72))[_0x5c23a1(0xa3)]();if(_0xe335c1&&!CROSS_RELATION_CARDINALITY_FLAG[_0x5c23a1(0xa4)][_0x5c23a1(0x96)](_0xe335c1))throw CliErrors[_0x5c23a1(0x95)](_0x5c23a1(0x7a));}}async function resolveEndpoint(_0x3aab81){const _0x3ac733=a72_0x4345,_0x22ec23=await getDatasetDetail(_0x3aab81),_0x55bedb=_0x22ec23?.[_0x3ac733(0x8d)]??{};if((_0x22ec23?.[_0x3ac733(0xbb)]??_0x55bedb[_0x3ac733(0x99)])!=='DB_TABLE')throw CliErrors[_0x3ac733(0x95)](_0x3ac733(0xbc)+_0x3aab81+_0x3ac733(0xb3));const _0x5c2916=_0x22ec23[_0x3ac733(0xa7)]??_0x22ec23[_0x3ac733(0x88)]??{};let _0x225989=_0x22ec23[_0x3ac733(0xb9)]??_0x55bedb[_0x3ac733(0xb9)]??{};if(typeof _0x225989===_0x3ac733(0xa1))try{_0x225989=_0x225989[_0x3ac733(0xa3)]()?JSON[_0x3ac733(0xb2)](_0x225989):{};}catch{throw CliErrors[_0x3ac733(0x95)]('Dataset\x20'+_0x3aab81+_0x3ac733(0x70));}const _0x550bd5=Number(_0x225989?.[_0x3ac733(0xa2)]?.[_0x3ac733(0x74)]??_0x22ec23['storageProfile']?.[_0x3ac733(0x74)]??_0x55bedb[_0x3ac733(0xa2)]?.[_0x3ac733(0x74)]??_0x5c2916[_0x3ac733(0x74)]??_0x55bedb['dbId']??_0x22ec23[_0x3ac733(0x74)]),_0x57a26d=String(_0x22ec23['tableName']??_0x55bedb[_0x3ac733(0x89)]??_0x5c2916[_0x3ac733(0x89)]??'')[_0x3ac733(0xa3)]();if(!Number[_0x3ac733(0xb8)](_0x550bd5)||_0x550bd5<=0x0||!_0x57a26d)throw CliErrors[_0x3ac733(0x95)](_0x3ac733(0xbc)+_0x3aab81+'\x20is\x20missing\x20its\x20database\x20connection\x20or\x20physical\x20table\x20name.');return{'datasetCode':_0x3aab81,'dblinkId':_0x550bd5,'table':_0x57a26d};}export async function resolveCrossRelationQuery(_0x479a82){const _0x257d6b=a72_0x4345,_0x50f360=_0x479a82[_0x257d6b(0x9b)](_0x257d6b(0xc1))[_0x257d6b(0xa3)](),_0x4630c2=explicitDblink(_0x479a82),_0x3ff78e=_0x50f360?await resolveEndpoint(_0x50f360):undefined;if(_0x3ff78e&&_0x4630c2!==undefined&&_0x3ff78e[_0x257d6b(0xab)]!==_0x4630c2)throw CliErrors['validation'](_0x257d6b(0x87));const _0x1792b3=_0x3ff78e?.[_0x257d6b(0xab)]??_0x4630c2;if(_0x1792b3===undefined)throw CliErrors['validation']('Provide\x20--from-datasetcode\x20or\x20--from-dblink-id.');return{'appCode':_0x479a82[_0x257d6b(0xb7)],'fromDblinkId':_0x1792b3,..._0x50f360?{'fromDatasetCode':_0x50f360}:{},..._0x479a82['str']('from-column')['trim']()?{'fromField':_0x479a82[_0x257d6b(0x9b)](_0x257d6b(0xbd))[_0x257d6b(0xa3)]()}:{}};}function a72_0x4345(_0x378cd2,_0x52269e){_0x378cd2=_0x378cd2-0x6f;const _0x1d54e4=a72_0x1d54();let _0x43457d=_0x1d54e4[_0x378cd2];return _0x43457d;}export function projectCrossRelation(_0xce22b5){const _0x393b27=a72_0x4345;return{'relationId':_0xce22b5[_0x393b27(0x8f)],'from':{'source':_0x393b27(0xad),'datasetCode':_0xce22b5[_0x393b27(0xae)],'datasetName':_0xce22b5[_0x393b27(0x77)],'dblinkId':_0xce22b5[_0x393b27(0xaf)],'table':_0xce22b5[_0x393b27(0x85)],'field':_0xce22b5['fromField']},'to':{'source':_0x393b27(0xad),'datasetCode':_0xce22b5[_0x393b27(0x76)],'datasetName':_0xce22b5['toDatasetName'],'dblinkId':_0xce22b5[_0x393b27(0xa9)],'table':_0xce22b5[_0x393b27(0xac)],'field':_0xce22b5[_0x393b27(0x90)],'labelField':_0xce22b5['refTableLabelName']},'relation':{'cardinality':_0xce22b5[_0x393b27(0x72)],'relationType':_0xce22b5[_0x393b27(0x97)]}};}function ambiguity(_0x101ca6){const _0xa617b8=a72_0x4345,_0x36dc4a=CliErrors[_0xa617b8(0x95)](_0xa617b8(0xbe),_0xa617b8(0x7b));return Object[_0xa617b8(0x8c)](_0x36dc4a,_0xa617b8(0xaa),{'value':{'candidates':_0x101ca6[_0xa617b8(0x7d)](projectCrossRelation)}}),_0x36dc4a;}const sameName=(_0x59cd2a,_0x551b0d)=>_0x59cd2a['toLowerCase']()===_0x551b0d[a72_0x4b8dac(0x9c)]();function matchesEndpoint(_0x244d90,_0x3f1274,_0x49ef65,_0x2c8712,_0x5c95b2){const _0x1b3bb3=a72_0x4b8dac;return _0x244d90[_0x1b3bb3(0xaf)]===_0x3f1274[_0x1b3bb3(0xab)]&&sameName(_0x244d90[_0x1b3bb3(0x85)],_0x3f1274[_0x1b3bb3(0x8a)])&&sameName(_0x244d90['fromField'],_0x49ef65)&&_0x244d90[_0x1b3bb3(0xa9)]===_0x2c8712[_0x1b3bb3(0xab)]&&sameName(_0x244d90[_0x1b3bb3(0xac)],_0x2c8712[_0x1b3bb3(0x8a)])&&sameName(_0x244d90[_0x1b3bb3(0x90)],_0x5c95b2);}function a72_0x1d54(){const _0x5bbbd0=['flag','\x20has\x20invalid\x20storage\x20configuration.','--from-dblink-id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','cardinality','expectedCardinality','dbId','refTableLabelName','toDatasetCode','fromDatasetName','body','delete','Invalid\x20--cardinality.','Run\x20dataset\x20cross-relation-list\x20to\x20inspect\x20the\x20candidates.\x20This\x20command\x20accepts\x20only\x20a\x20source\x20dataset\x20and\x20field.','filter','map','Cross-database\x20relation\x20already\x20exists\x20for\x20these\x20source\x20and\x20target\x20endpoints.','POST','2004296xPUrJe','322iaxDIb','The\x20write\x20was\x20accepted,\x20but\x20current\x20state\x20could\x20not\x20be\x20confirmed.\x20Run\x20dataset\x20cross-relation-list\x20before\x20attempting\x20another\x20write.','fromField','expectedLabel','fromTableName','message','--from-dblink-id\x20does\x20not\x20match\x20the\x20source\x20dataset\x20connection.','dbtable','tableName','table','create','defineProperty','dataset','153666XcLeEx','relationId','toField','some','54JUTdkF','query','catch','validation','includes','relationType','to-label-column','sourceType','\x20a\x20cross-database\x20relation\x20for\x20','str','toLowerCase','The\x20target\x20display\x20field\x20is\x20inherited.\x20When\x20changing\x20the\x20target\x20dataset,\x20provide\x20--to-label-column\x20explicitly.','5408550kdESdq','matched','from','string','storageProfile','trim','enum','label_inherited','to-column','dbtableConfig','length','toDblinkId','data','dblinkId','toTableName','DB_TABLE','fromDatasetCode','fromDblinkId','datasetCode','list','parse','\x20must\x20be\x20a\x20DB_TABLE\x20dataset.','to-datasetcode','75449tXFqgo','53067VGGSKV','appCode','isSafeInteger','extend','3904372IHdwFp','source','Dataset\x20','from-column','Multiple\x20cross-database\x20relations\x20match\x20this\x20source\x20field;\x20update/delete\x20cannot\x20select\x20one\x20target.','5229555Mhmvfw','Provide\x20--from-datasetcode\x20or\x20--from-dblink-id.','from-datasetcode','before','Cross-database\x20relation\x20not\x20found\x20for\x20this\x20source\x20dataset\x20and\x20field.','Would\x20','Cross-database\x20relation\x20'];a72_0x1d54=function(){return _0x5bbbd0;};return a72_0x1d54();}export async function prepareCrossRelation(_0x49308a,_0x1e7df1){const _0x2f6795=a72_0x4b8dac,_0x43e042=await resolveEndpoint(required(_0x49308a,_0x2f6795(0xc1))),_0x6bfaf5=explicitDblink(_0x49308a);if(_0x6bfaf5!==undefined&&_0x43e042[_0x2f6795(0xab)]!==_0x6bfaf5)throw CliErrors[_0x2f6795(0x95)](_0x2f6795(0x87));const _0x2e6290={'appCode':_0x49308a[_0x2f6795(0xb7)],'fromDatasetCode':_0x43e042[_0x2f6795(0xb0)],'fromField':required(_0x49308a,_0x2f6795(0xbd)),..._0x6bfaf5!==undefined?{'fromDblinkId':_0x6bfaf5}:{}},_0x4a7a7c={'appCode':_0x49308a[_0x2f6795(0xb7)],'fromDblinkId':_0x43e042[_0x2f6795(0xab)],'fromDatasetCode':_0x43e042[_0x2f6795(0xb0)],'fromField':_0x2e6290[_0x2f6795(0x83)]},_0xc8f174=await queryCrossDbRelations(_0x4a7a7c);let _0x3b0dc9=null;if(_0x1e7df1!==_0x2f6795(0x8b)){if(_0xc8f174[_0x2f6795(0xa8)]>0x1)throw ambiguity(_0xc8f174);_0x3b0dc9=_0xc8f174[0x0]??null;if(!_0x3b0dc9)throw CliErrors[_0x2f6795(0x95)](_0x2f6795(0xc3));}if(_0x1e7df1==='delete')return{'operation':_0x1e7df1,'from':_0x43e042,'query':_0x4a7a7c,'body':_0x2e6290,'before':_0x3b0dc9};const _0x9a5244=await resolveEndpoint(required(_0x49308a,_0x2f6795(0xb4)));if(_0x43e042[_0x2f6795(0xab)]===_0x9a5244['dblinkId'])throw CliErrors[_0x2f6795(0x95)]('Cross-database\x20relations\x20require\x20different\x20source\x20and\x20target\x20database\x20connections.');const _0x2b67f5=_0x49308a[_0x2f6795(0x9b)](_0x2f6795(0x98))[_0x2f6795(0xa3)](),_0x22c2ec=_0x49308a[_0x2f6795(0x9b)](_0x2f6795(0x72))[_0x2f6795(0xa3)](),_0x4f66cb={..._0x2e6290,'toDatasetCode':_0x9a5244[_0x2f6795(0xb0)],'toField':required(_0x49308a,_0x2f6795(0xa6)),..._0x2b67f5?{'refTableLabelName':_0x2b67f5}:{},..._0x22c2ec?{'cardinality':_0x22c2ec}:{}};if(_0xc8f174[_0x2f6795(0x91)](_0x30c6d7=>_0x30c6d7[_0x2f6795(0x8f)]!==_0x3b0dc9?.[_0x2f6795(0x8f)]&&matchesEndpoint(_0x30c6d7,_0x43e042,_0x4f66cb[_0x2f6795(0x83)],_0x9a5244,_0x4f66cb[_0x2f6795(0x90)])))throw CliErrors['validation'](_0x2f6795(0x7e));return{'operation':_0x1e7df1,'from':_0x43e042,'to':_0x9a5244,'query':_0x4a7a7c,'body':_0x4f66cb,'before':_0x3b0dc9,'expectedLabel':_0x2b67f5||_0x3b0dc9?.[_0x2f6795(0x75)]||_0x4f66cb[_0x2f6795(0x90)],'expectedCardinality':_0x22c2ec||_0x3b0dc9?.['cardinality']||null};}function mutationData(_0x1784c8,_0x3a58d9,_0x2970d9){const _0x439876=a72_0x4b8dac,{operation:_0x5147b5,body:_0x1bb9d8,before:_0x2f7666}=_0x1784c8;return{'operation':_0x5147b5,'selector':{'appCode':_0x1bb9d8['appCode'],'from':{'datasetCode':_0x1bb9d8['fromDatasetCode'],'field':_0x1bb9d8['fromField'],'dblinkId':_0x1784c8['from'][_0x439876(0xab)]}},'before':_0x2f7666?projectCrossRelation(_0x2f7666):null,'after':_0x2970d9,'dryRun':_0x3a58d9,'backend':{'method':_0x439876(0x7f),'path':CROSS_DB_RELATION_PATHS[_0x5147b5]},'warnings':_0x5147b5==='update'&&!_0x1bb9d8[_0x439876(0x75)]?[{'code':_0x439876(0xa5),'message':_0x439876(0x9d)}]:[]};}export async function previewCrossRelation(_0x25cdbe,_0x15e964){const _0x4f0077=a72_0x4b8dac,_0x494ec6=await prepareCrossRelation(_0x25cdbe,_0x15e964),_0x4c404a=_0x494ec6[_0x4f0077(0x78)],_0x3d169f=_0x15e964===_0x4f0077(0x79)?null:{..._0x494ec6['before']?{'relationId':_0x494ec6[_0x4f0077(0xc2)]['relationId']}:{},'from':{'datasetCode':_0x494ec6[_0x4f0077(0xa0)]['datasetCode'],'dblinkId':_0x494ec6['from'][_0x4f0077(0xab)],'table':_0x494ec6['from'][_0x4f0077(0x8a)],'field':_0x4c404a['fromField']},'to':{'datasetCode':_0x494ec6['to']['datasetCode'],'dblinkId':_0x494ec6['to'][_0x4f0077(0xab)],'table':_0x494ec6['to'][_0x4f0077(0x8a)],'field':_0x4c404a[_0x4f0077(0x90)],'labelField':_0x494ec6[_0x4f0077(0x84)]},'relation':{'cardinality':_0x494ec6[_0x4f0077(0x73)],'relationType':0x2}};return{...mutationData(_0x494ec6,!![],null),'after':_0x3d169f,'method':_0x4f0077(0x7f),'url':CROSS_DB_RELATION_PATHS[_0x15e964],'body':_0x494ec6[_0x4f0077(0x78)],'description':_0x4f0077(0xc4)+_0x15e964+_0x4f0077(0x9a)+_0x4c404a['fromDatasetCode']+'.'+_0x4c404a[_0x4f0077(0x83)]};}export async function executeCrossRelation(_0x51e0c4,_0x53c041,_0x5b3084){const _0x5d170e=a72_0x4b8dac,_0x39ba96=await prepareCrossRelation(_0x51e0c4,_0x53c041);try{await _0x5b3084(_0x39ba96['body']);}catch(_0x52808f){if(_0x52808f instanceof CliError&&_0x52808f[_0x5d170e(0x86)][_0x5d170e(0x96)]('multiple\x20cross-database\x20relations\x20matched')){const _0x461772=await queryCrossDbRelations(_0x39ba96['query'])[_0x5d170e(0x94)](()=>[]);throw ambiguity(_0x461772);}throw _0x52808f;}let _0x313c22=[],_0x5a5b75,_0x17396d=![];try{_0x313c22=await queryCrossDbRelations(_0x39ba96[_0x5d170e(0x93)]);if(_0x53c041==='delete')_0x17396d=!_0x313c22['some'](_0x34f19a=>_0x34f19a[_0x5d170e(0x8f)]===_0x39ba96[_0x5d170e(0xc2)]['relationId']);else{const _0xed3c65=_0x39ba96[_0x5d170e(0x78)],_0x1f6bdb=_0x313c22[_0x5d170e(0x7c)](_0x238fc8=>matchesEndpoint(_0x238fc8,_0x39ba96[_0x5d170e(0xa0)],_0xed3c65[_0x5d170e(0x83)],_0x39ba96['to'],_0xed3c65[_0x5d170e(0x90)])&&(_0x53c041===_0x5d170e(0x8b)||_0x238fc8['relationId']===_0x39ba96[_0x5d170e(0xc2)][_0x5d170e(0x8f)]));_0x5a5b75=_0x1f6bdb[_0x5d170e(0xa8)]===0x1?_0x1f6bdb[0x0]:undefined,_0x17396d=!!_0x5a5b75&&_0x5a5b75[_0x5d170e(0x75)]===_0x39ba96['expectedLabel']&&_0x5a5b75[_0x5d170e(0x72)]===_0x39ba96['expectedCardinality']&&_0x5a5b75['relationType']===0x2;}}catch{}const _0x2ba5e8={...mutationData(_0x39ba96,![],_0x5a5b75?projectCrossRelation(_0x5a5b75):null),'verification':{'status':_0x17396d?_0x5d170e(0x9f):'unconfirmed','verified':_0x17396d}};if(!_0x17396d){const _0x26d2f2=CliErrors['apiError'](_0x5d170e(0xc5)+_0x53c041+'\x20write\x20was\x20not\x20verified.',_0x5d170e(0x82));Object['defineProperty'](_0x26d2f2,'data',{'value':{..._0x2ba5e8,'candidates':_0x313c22[_0x5d170e(0x7d)](projectCrossRelation)}});throw _0x26d2f2;}return{'ok':!![],'data':_0x2ba5e8,'message':_0x5d170e(0xc5)+_0x53c041+'\x20verified.'};}
1
+ const a72_0x31ca6c=a72_0xe622;(function(_0x39f5f7,_0x1ea992){const _0x348efe=a72_0xe622,_0x9efa4f=_0x39f5f7();while(!![]){try{const _0x4192ed=-parseInt(_0x348efe(0x19c))/0x1+parseInt(_0x348efe(0x187))/0x2*(-parseInt(_0x348efe(0x18a))/0x3)+parseInt(_0x348efe(0x194))/0x4*(-parseInt(_0x348efe(0x175))/0x5)+parseInt(_0x348efe(0x1a0))/0x6*(parseInt(_0x348efe(0x17a))/0x7)+-parseInt(_0x348efe(0x192))/0x8*(-parseInt(_0x348efe(0x189))/0x9)+parseInt(_0x348efe(0x1ba))/0xa+parseInt(_0x348efe(0x1a7))/0xb;if(_0x4192ed===_0x1ea992)break;else _0x9efa4f['push'](_0x9efa4f['shift']());}catch(_0x5ee759){_0x9efa4f['push'](_0x9efa4f['shift']());}}}(a72_0x31ac,0xb9381));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(_0x3bb325,_0x5d4501){const _0x3c829c=a72_0xe622,_0x3fd6e9=_0x3bb325[_0x3c829c(0x182)](_0x5d4501)[_0x3c829c(0x1b1)]();if(!_0x3fd6e9)throw CliErrors[_0x3c829c(0x19f)](_0x5d4501);return _0x3fd6e9;}function a72_0xe622(_0x169b8d,_0x59ad0f){_0x169b8d=_0x169b8d-0x16e;const _0x31ace8=a72_0x31ac();let _0xe6227f=_0x31ace8[_0x169b8d];return _0xe6227f;}function explicitDblink(_0x398d8c){const _0x162378=a72_0xe622,_0x454e27=_0x398d8c[_0x162378(0x1be)](_0x162378(0x193));if(_0x454e27===undefined||_0x454e27===null)return undefined;const _0x112085=Number(_0x454e27);if(!Number[_0x162378(0x19e)](_0x112085)||_0x112085<=0x0)throw CliErrors[_0x162378(0x1c3)](_0x162378(0x1af));return _0x112085;}function a72_0x31ac(){const _0x350f95=['includes','relationId','sourceType','4809270YyueeG','enum','toDatasetCode','The\x20target\x20display\x20field\x20is\x20inherited.\x20When\x20changing\x20the\x20target\x20dataset,\x20provide\x20--to-label-column\x20explicitly.','\x20must\x20be\x20a\x20DB_TABLE\x20dataset.','7ShgtPP','map','delete','to-datasetcode','filter','from-column','catch','tableName','str','parse','\x20write\x20was\x20not\x20verified.','dbtable','storageProfile','2WJHiWJ','fromField','18TbkqKz','3885498YBUAzK','defineProperty','The\x20write\x20was\x20accepted,\x20but\x20current\x20state\x20could\x20not\x20be\x20confirmed.\x20Run\x20dataset\x20cross-relation-list\x20before\x20attempting\x20another\x20write.','before','dataset','Cross-database\x20relation\x20already\x20exists\x20for\x20these\x20source\x20and\x20target\x20endpoints.','message','update','2017488zPUPhU','from-dblink-id','4AGIKwY','source','body','expectedCardinality','DB_TABLE','multiple\x20cross-database\x20relations\x20matched','query','Invalid\x20--cardinality.','579969xPukqD','apiError','isSafeInteger','flagMissing','642378YsGuIc','--from-dblink-id\x20does\x20not\x20match\x20the\x20source\x20dataset\x20connection.','Would\x20','appCode','some','fromTableName','expectedLabel','23778920dAduEv','\x20verified.','data','fromDatasetCode','dbId','refTableLabelName','relationType','POST','--from-dblink-id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','datasetCode','trim','toTableName','label_inherited','table','toLowerCase','fromDblinkId','unconfirmed','string','dbtableConfig','8224910CdGVBU','Cross-database\x20relation\x20','from','cardinality','flag','\x20is\x20missing\x20its\x20database\x20connection\x20or\x20physical\x20table\x20name.','toDblinkId','to-label-column','toField','validation','fromDatasetName','extend','from-datasetcode','length','Dataset\x20','dblinkId','\x20a\x20cross-database\x20relation\x20for\x20','Provide\x20--from-datasetcode\x20or\x20--from-dblink-id.'];a72_0x31ac=function(){return _0x350f95;};return a72_0x31ac();}export function validateCrossRelation(_0x4ae527,_0x59f762){const _0x15f967=a72_0xe622,_0x3967d4=explicitDblink(_0x4ae527);if(_0x59f762==='list'){if(!_0x4ae527[_0x15f967(0x182)]('from-datasetcode')['trim']()&&_0x3967d4===undefined)throw CliErrors[_0x15f967(0x1c3)](_0x15f967(0x171));return;}required(_0x4ae527,_0x15f967(0x1c6)),required(_0x4ae527,_0x15f967(0x17f));if(_0x59f762!==_0x15f967(0x17c)){required(_0x4ae527,'to-datasetcode'),required(_0x4ae527,'to-column');const _0x1c0766=_0x4ae527[_0x15f967(0x182)](_0x15f967(0x1bd))[_0x15f967(0x1b1)]();if(_0x1c0766&&!CROSS_RELATION_CARDINALITY_FLAG[_0x15f967(0x176)][_0x15f967(0x172)](_0x1c0766))throw CliErrors[_0x15f967(0x1c3)](_0x15f967(0x19b));}}async function resolveEndpoint(_0x269472){const _0x32b9f3=a72_0xe622,_0x5a3b06=await getDatasetDetail(_0x269472),_0x478b91=_0x5a3b06?.[_0x32b9f3(0x18e)]??{};if((_0x5a3b06?.[_0x32b9f3(0x195)]??_0x478b91[_0x32b9f3(0x174)])!==_0x32b9f3(0x198))throw CliErrors['validation'](_0x32b9f3(0x16e)+_0x269472+_0x32b9f3(0x179));const _0x375edd=_0x5a3b06[_0x32b9f3(0x1b9)]??_0x5a3b06[_0x32b9f3(0x185)]??{};let _0x6d78a2=_0x5a3b06[_0x32b9f3(0x1c5)]??_0x478b91['extend']??{};if(typeof _0x6d78a2===_0x32b9f3(0x1b8))try{_0x6d78a2=_0x6d78a2[_0x32b9f3(0x1b1)]()?JSON[_0x32b9f3(0x183)](_0x6d78a2):{};}catch{throw CliErrors['validation'](_0x32b9f3(0x16e)+_0x269472+'\x20has\x20invalid\x20storage\x20configuration.');}const _0x34c90e=Number(_0x6d78a2?.[_0x32b9f3(0x186)]?.[_0x32b9f3(0x1ab)]??_0x5a3b06[_0x32b9f3(0x186)]?.[_0x32b9f3(0x1ab)]??_0x478b91[_0x32b9f3(0x186)]?.[_0x32b9f3(0x1ab)]??_0x375edd['dbId']??_0x478b91[_0x32b9f3(0x1ab)]??_0x5a3b06[_0x32b9f3(0x1ab)]),_0x5ded3d=String(_0x5a3b06[_0x32b9f3(0x181)]??_0x478b91['tableName']??_0x375edd[_0x32b9f3(0x181)]??'')['trim']();if(!Number[_0x32b9f3(0x19e)](_0x34c90e)||_0x34c90e<=0x0||!_0x5ded3d)throw CliErrors[_0x32b9f3(0x1c3)](_0x32b9f3(0x16e)+_0x269472+_0x32b9f3(0x1bf));return{'datasetCode':_0x269472,'dblinkId':_0x34c90e,'table':_0x5ded3d};}export async function resolveCrossRelationQuery(_0x4906f7){const _0x403197=a72_0xe622,_0x2cb8d1=_0x4906f7['str'](_0x403197(0x1c6))[_0x403197(0x1b1)](),_0x3d7c1b=explicitDblink(_0x4906f7),_0x45a039=_0x2cb8d1?await resolveEndpoint(_0x2cb8d1):undefined;if(_0x45a039&&_0x3d7c1b!==undefined&&_0x45a039['dblinkId']!==_0x3d7c1b)throw CliErrors[_0x403197(0x1c3)](_0x403197(0x1a1));const _0x4aa298=_0x45a039?.[_0x403197(0x16f)]??_0x3d7c1b;if(_0x4aa298===undefined)throw CliErrors[_0x403197(0x1c3)]('Provide\x20--from-datasetcode\x20or\x20--from-dblink-id.');return{'appCode':_0x4906f7[_0x403197(0x1a3)],'fromDblinkId':_0x4aa298,..._0x2cb8d1?{'fromDatasetCode':_0x2cb8d1}:{},..._0x4906f7[_0x403197(0x182)]('from-column')[_0x403197(0x1b1)]()?{'fromField':_0x4906f7['str'](_0x403197(0x17f))['trim']()}:{}};}export function projectCrossRelation(_0x34c45f){const _0x4569e6=a72_0xe622;return{'relationId':_0x34c45f[_0x4569e6(0x173)],'from':{'source':_0x4569e6(0x198),'datasetCode':_0x34c45f[_0x4569e6(0x1aa)],'datasetName':_0x34c45f[_0x4569e6(0x1c4)],'dblinkId':_0x34c45f[_0x4569e6(0x1b6)],'table':_0x34c45f['fromTableName'],'field':_0x34c45f[_0x4569e6(0x188)]},'to':{'source':_0x4569e6(0x198),'datasetCode':_0x34c45f[_0x4569e6(0x177)],'datasetName':_0x34c45f['toDatasetName'],'dblinkId':_0x34c45f['toDblinkId'],'table':_0x34c45f[_0x4569e6(0x1b2)],'field':_0x34c45f[_0x4569e6(0x1c2)],'labelField':_0x34c45f[_0x4569e6(0x1ac)]},'relation':{'cardinality':_0x34c45f[_0x4569e6(0x1bd)],'relationType':_0x34c45f[_0x4569e6(0x1ad)]}};}function ambiguity(_0x5896b0){const _0x571ed5=a72_0xe622,_0x1e3e2f=CliErrors[_0x571ed5(0x1c3)]('Multiple\x20cross-database\x20relations\x20match\x20this\x20source\x20field;\x20update/delete\x20cannot\x20select\x20one\x20target.','Run\x20dataset\x20cross-relation-list\x20to\x20inspect\x20the\x20candidates.\x20This\x20command\x20accepts\x20only\x20a\x20source\x20dataset\x20and\x20field.');return Object[_0x571ed5(0x18b)](_0x1e3e2f,_0x571ed5(0x1a9),{'value':{'candidates':_0x5896b0[_0x571ed5(0x17b)](projectCrossRelation)}}),_0x1e3e2f;}const sameName=(_0x418055,_0x477cb3)=>_0x418055['toLowerCase']()===_0x477cb3[a72_0x31ca6c(0x1b5)]();function matchesEndpoint(_0x48ee0b,_0x275a15,_0x53e28d,_0x220236,_0x326e83){const _0x45458a=a72_0x31ca6c;return _0x48ee0b['fromDblinkId']===_0x275a15[_0x45458a(0x16f)]&&sameName(_0x48ee0b[_0x45458a(0x1a5)],_0x275a15['table'])&&sameName(_0x48ee0b['fromField'],_0x53e28d)&&_0x48ee0b[_0x45458a(0x1c0)]===_0x220236[_0x45458a(0x16f)]&&sameName(_0x48ee0b[_0x45458a(0x1b2)],_0x220236[_0x45458a(0x1b4)])&&sameName(_0x48ee0b[_0x45458a(0x1c2)],_0x326e83);}export async function prepareCrossRelation(_0x2acdc8,_0x40433b){const _0x4d3fc8=a72_0x31ca6c,_0x35f403=await resolveEndpoint(required(_0x2acdc8,_0x4d3fc8(0x1c6))),_0xb7f5dc=explicitDblink(_0x2acdc8);if(_0xb7f5dc!==undefined&&_0x35f403[_0x4d3fc8(0x16f)]!==_0xb7f5dc)throw CliErrors['validation'](_0x4d3fc8(0x1a1));const _0x5b6788={'appCode':_0x2acdc8['appCode'],'fromDatasetCode':_0x35f403[_0x4d3fc8(0x1b0)],'fromField':required(_0x2acdc8,'from-column'),..._0xb7f5dc!==undefined?{'fromDblinkId':_0xb7f5dc}:{}},_0x5c6c8a={'appCode':_0x2acdc8[_0x4d3fc8(0x1a3)],'fromDblinkId':_0x35f403[_0x4d3fc8(0x16f)],'fromDatasetCode':_0x35f403[_0x4d3fc8(0x1b0)],'fromField':_0x5b6788[_0x4d3fc8(0x188)]},_0x38eec7=await queryCrossDbRelations(_0x5c6c8a);let _0x5236e4=null;if(_0x40433b!=='create'){if(_0x38eec7[_0x4d3fc8(0x1c7)]>0x1)throw ambiguity(_0x38eec7);_0x5236e4=_0x38eec7[0x0]??null;if(!_0x5236e4)throw CliErrors[_0x4d3fc8(0x1c3)]('Cross-database\x20relation\x20not\x20found\x20for\x20this\x20source\x20dataset\x20and\x20field.');}if(_0x40433b===_0x4d3fc8(0x17c))return{'operation':_0x40433b,'from':_0x35f403,'query':_0x5c6c8a,'body':_0x5b6788,'before':_0x5236e4};const _0x2db6dc=await resolveEndpoint(required(_0x2acdc8,_0x4d3fc8(0x17d)));if(_0x35f403[_0x4d3fc8(0x16f)]===_0x2db6dc['dblinkId'])throw CliErrors[_0x4d3fc8(0x1c3)]('Cross-database\x20relations\x20require\x20different\x20source\x20and\x20target\x20database\x20connections.');const _0xd48e6f=_0x2acdc8['str'](_0x4d3fc8(0x1c1))[_0x4d3fc8(0x1b1)](),_0x245b6a=_0x2acdc8[_0x4d3fc8(0x182)](_0x4d3fc8(0x1bd))['trim'](),_0x3ef4e4={..._0x5b6788,'toDatasetCode':_0x2db6dc[_0x4d3fc8(0x1b0)],'toField':required(_0x2acdc8,'to-column'),..._0xd48e6f?{'refTableLabelName':_0xd48e6f}:{},..._0x245b6a?{'cardinality':_0x245b6a}:{}};if(_0x38eec7[_0x4d3fc8(0x1a4)](_0x5c81a3=>_0x5c81a3[_0x4d3fc8(0x173)]!==_0x5236e4?.['relationId']&&matchesEndpoint(_0x5c81a3,_0x35f403,_0x3ef4e4[_0x4d3fc8(0x188)],_0x2db6dc,_0x3ef4e4[_0x4d3fc8(0x1c2)])))throw CliErrors[_0x4d3fc8(0x1c3)](_0x4d3fc8(0x18f));return{'operation':_0x40433b,'from':_0x35f403,'to':_0x2db6dc,'query':_0x5c6c8a,'body':_0x3ef4e4,'before':_0x5236e4,'expectedLabel':_0xd48e6f||_0x5236e4?.['refTableLabelName']||_0x3ef4e4[_0x4d3fc8(0x1c2)],'expectedCardinality':_0x245b6a||_0x5236e4?.[_0x4d3fc8(0x1bd)]||null};}function mutationData(_0x80a4cb,_0x33f571,_0x425129){const _0x19fcc8=a72_0x31ca6c,{operation:_0x1b9dfb,body:_0x4c0983,before:_0xb9254a}=_0x80a4cb;return{'operation':_0x1b9dfb,'selector':{'appCode':_0x4c0983[_0x19fcc8(0x1a3)],'from':{'datasetCode':_0x4c0983[_0x19fcc8(0x1aa)],'field':_0x4c0983['fromField'],'dblinkId':_0x80a4cb[_0x19fcc8(0x1bc)][_0x19fcc8(0x16f)]}},'before':_0xb9254a?projectCrossRelation(_0xb9254a):null,'after':_0x425129,'dryRun':_0x33f571,'backend':{'method':_0x19fcc8(0x1ae),'path':CROSS_DB_RELATION_PATHS[_0x1b9dfb]},'warnings':_0x1b9dfb===_0x19fcc8(0x191)&&!_0x4c0983[_0x19fcc8(0x1ac)]?[{'code':_0x19fcc8(0x1b3),'message':_0x19fcc8(0x178)}]:[]};}export async function previewCrossRelation(_0x3ffd93,_0x2a76e8){const _0x31258e=a72_0x31ca6c,_0x152047=await prepareCrossRelation(_0x3ffd93,_0x2a76e8),_0x54afb1=_0x152047[_0x31258e(0x196)],_0x98739d=_0x2a76e8===_0x31258e(0x17c)?null:{..._0x152047['before']?{'relationId':_0x152047[_0x31258e(0x18d)][_0x31258e(0x173)]}:{},'from':{'datasetCode':_0x152047['from']['datasetCode'],'dblinkId':_0x152047['from'][_0x31258e(0x16f)],'table':_0x152047[_0x31258e(0x1bc)][_0x31258e(0x1b4)],'field':_0x54afb1[_0x31258e(0x188)]},'to':{'datasetCode':_0x152047['to'][_0x31258e(0x1b0)],'dblinkId':_0x152047['to']['dblinkId'],'table':_0x152047['to']['table'],'field':_0x54afb1[_0x31258e(0x1c2)],'labelField':_0x152047[_0x31258e(0x1a6)]},'relation':{'cardinality':_0x152047[_0x31258e(0x197)],'relationType':0x2}};return{...mutationData(_0x152047,!![],null),'after':_0x98739d,'method':'POST','url':CROSS_DB_RELATION_PATHS[_0x2a76e8],'body':_0x152047[_0x31258e(0x196)],'description':_0x31258e(0x1a2)+_0x2a76e8+_0x31258e(0x170)+_0x54afb1['fromDatasetCode']+'.'+_0x54afb1['fromField']};}export async function executeCrossRelation(_0x1e5081,_0x3a72eb,_0x3bc4fa){const _0x5a2c54=a72_0x31ca6c,_0x211914=await prepareCrossRelation(_0x1e5081,_0x3a72eb);try{await _0x3bc4fa(_0x211914[_0x5a2c54(0x196)]);}catch(_0x213292){if(_0x213292 instanceof CliError&&_0x213292[_0x5a2c54(0x190)][_0x5a2c54(0x172)](_0x5a2c54(0x199))){const _0x343dec=await queryCrossDbRelations(_0x211914[_0x5a2c54(0x19a)])[_0x5a2c54(0x180)](()=>[]);throw ambiguity(_0x343dec);}throw _0x213292;}let _0x3557d5=[],_0x3bcdcc,_0x832922=![];try{_0x3557d5=await queryCrossDbRelations(_0x211914['query']);if(_0x3a72eb==='delete')_0x832922=!_0x3557d5[_0x5a2c54(0x1a4)](_0x267c63=>_0x267c63['relationId']===_0x211914[_0x5a2c54(0x18d)][_0x5a2c54(0x173)]);else{const _0x881e12=_0x211914[_0x5a2c54(0x196)],_0x489ed1=_0x3557d5[_0x5a2c54(0x17e)](_0x35c2b5=>matchesEndpoint(_0x35c2b5,_0x211914[_0x5a2c54(0x1bc)],_0x881e12[_0x5a2c54(0x188)],_0x211914['to'],_0x881e12[_0x5a2c54(0x1c2)])&&(_0x3a72eb==='create'||_0x35c2b5[_0x5a2c54(0x173)]===_0x211914[_0x5a2c54(0x18d)][_0x5a2c54(0x173)]));_0x3bcdcc=_0x489ed1[_0x5a2c54(0x1c7)]===0x1?_0x489ed1[0x0]:undefined,_0x832922=!!_0x3bcdcc&&_0x3bcdcc[_0x5a2c54(0x1ac)]===_0x211914[_0x5a2c54(0x1a6)]&&_0x3bcdcc[_0x5a2c54(0x1bd)]===_0x211914[_0x5a2c54(0x197)]&&_0x3bcdcc[_0x5a2c54(0x1ad)]===0x2;}}catch{}const _0x1d6d45={...mutationData(_0x211914,![],_0x3bcdcc?projectCrossRelation(_0x3bcdcc):null),'verification':{'status':_0x832922?'matched':_0x5a2c54(0x1b7),'verified':_0x832922}};if(!_0x832922){const _0x572446=CliErrors[_0x5a2c54(0x19d)](_0x5a2c54(0x1bb)+_0x3a72eb+_0x5a2c54(0x184),_0x5a2c54(0x18c));Object[_0x5a2c54(0x18b)](_0x572446,'data',{'value':{..._0x1d6d45,'candidates':_0x3557d5[_0x5a2c54(0x17b)](projectCrossRelation)}});throw _0x572446;}return{'ok':!![],'data':_0x1d6d45,'message':_0x5a2c54(0x1bb)+_0x3a72eb+_0x5a2c54(0x1a8)};}
@@ -1 +1 @@
1
- const a73_0x1f8664=a73_0x5347;function a73_0x5347(_0x2f73de,_0x2d1c67){_0x2f73de=_0x2f73de-0x125;const _0x11a895=a73_0x11a8();let _0x534796=_0x11a895[_0x2f73de];return _0x534796;}(function(_0x49232e,_0x34c2cc){const _0x2f6e86=a73_0x5347,_0x3085e1=_0x49232e();while(!![]){try{const _0x5014bf=parseInt(_0x2f6e86(0x12d))/0x1+parseInt(_0x2f6e86(0x12e))/0x2+-parseInt(_0x2f6e86(0x12c))/0x3+-parseInt(_0x2f6e86(0x128))/0x4*(-parseInt(_0x2f6e86(0x12b))/0x5)+parseInt(_0x2f6e86(0x12f))/0x6*(parseInt(_0x2f6e86(0x125))/0x7)+-parseInt(_0x2f6e86(0x126))/0x8*(parseInt(_0x2f6e86(0x12a))/0x9)+parseInt(_0x2f6e86(0x131))/0xa*(-parseInt(_0x2f6e86(0x127))/0xb);if(_0x5014bf===_0x34c2cc)break;else _0x3085e1['push'](_0x3085e1['shift']());}catch(_0x57251a){_0x3085e1['push'](_0x3085e1['shift']());}}}(a73_0x11a8,0x36930));import{updateCrossDbRelation}from'../../core/api-client.js';import{CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG,CROSS_RELATION_TO_DATASET_FLAG,CROSS_RELATION_TO_COLUMN_FLAG,CROSS_RELATION_LABEL_FLAG,CROSS_RELATION_CARDINALITY_FLAG,CROSS_RELATION_DBLINK_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{executeCrossRelation,previewCrossRelation,validateCrossRelation}from'../../commands/dataset/cross-relation-shared.js';function a73_0x11a8(){const _0x28c93c=['195952YQMaeF','183865nikVuU','39908IXNdVL','Update\x20the\x20target\x20or\x20properties\x20of\x20the\x20single\x20cross-database\x20relation\x20matching\x20a\x20source\x20dataset\x20and\x20field','117gFVZlD','115gAbhkd','204741RJrVYl','275059yECtne','561324SDEsRr','1156458ukXzsB','update','220XfOUdm','dataset','write','7TsHwUU'];a73_0x11a8=function(){return _0x28c93c;};return a73_0x11a8();}export const datasetCrossRelationUpdate={'service':a73_0x1f8664(0x132),'command':'cross-relation-update','description':a73_0x1f8664(0x129),'risk':a73_0x1f8664(0x133),'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 _0x3f4392=>validateCrossRelation(_0x3f4392,a73_0x1f8664(0x130)),'dryRun':_0x291cbc=>previewCrossRelation(_0x291cbc,a73_0x1f8664(0x130)),'execute':_0x14126d=>executeCrossRelation(_0x14126d,a73_0x1f8664(0x130),updateCrossDbRelation)};
1
+ const a73_0x2716cb=a73_0x5a07;function a73_0x5a07(_0x14fbd2,_0x4c2b51){_0x14fbd2=_0x14fbd2-0x1c9;const _0x4485a2=a73_0x4485();let _0x5a07ad=_0x4485a2[_0x14fbd2];return _0x5a07ad;}function a73_0x4485(){const _0x550463=['update','cross-relation-update','809085ZdXyfX','1039212jcSWXQ','24gYElkC','1913298xWsCSr','932292YDjpzb','dataset','430879qwgcOC','2980642uhOUIP','Update\x20the\x20target\x20or\x20properties\x20of\x20the\x20single\x20cross-database\x20relation\x20matching\x20a\x20source\x20dataset\x20and\x20field','454656RWoalA'];a73_0x4485=function(){return _0x550463;};return a73_0x4485();}(function(_0x46ab94,_0x49fd31){const _0x3d852f=a73_0x5a07,_0x171486=_0x46ab94();while(!![]){try{const _0x112bad=parseInt(_0x3d852f(0x1cf))/0x1+-parseInt(_0x3d852f(0x1cd))/0x2+-parseInt(_0x3d852f(0x1ca))/0x3+-parseInt(_0x3d852f(0x1d2))/0x4+-parseInt(_0x3d852f(0x1c9))/0x5+-parseInt(_0x3d852f(0x1cc))/0x6+-parseInt(_0x3d852f(0x1d0))/0x7*(-parseInt(_0x3d852f(0x1cb))/0x8);if(_0x112bad===_0x49fd31)break;else _0x171486['push'](_0x171486['shift']());}catch(_0x531eeb){_0x171486['push'](_0x171486['shift']());}}}(a73_0x4485,0x49947));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_0x2716cb(0x1ce),'command':a73_0x2716cb(0x1d4),'description':a73_0x2716cb(0x1d1),'risk':'write','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 _0x1c1a77=>validateCrossRelation(_0x1c1a77,a73_0x2716cb(0x1d3)),'dryRun':_0x57c480=>previewCrossRelation(_0x57c480,a73_0x2716cb(0x1d3)),'execute':_0x4dc275=>executeCrossRelation(_0x4dc275,a73_0x2716cb(0x1d3),updateCrossDbRelation)};