@lovrabet/rabetbase-cli 2.5.7-beta.1 → 2.5.7

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 (375) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/api-group.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.js +1 -1
  6. package/lib/api/legacy-api-file.js +1 -1
  7. package/lib/api/model-registry-file.js +1 -1
  8. package/lib/api/model-registry-scaffold.js +1 -1
  9. package/lib/api/model-source.js +1 -1
  10. package/lib/auth/auth-server-ui.js +1 -1
  11. package/lib/auth/auth-server.js +1 -1
  12. package/lib/auth/constant.js +1 -1
  13. package/lib/auth/get-cookie.js +1 -1
  14. package/lib/auth/get-session-user.js +1 -1
  15. package/lib/auth/is-session-valid.js +1 -1
  16. package/lib/auth/login-success-html.js +1 -1
  17. package/lib/auth/logout.js +1 -1
  18. package/lib/cli-flags.js +1 -1
  19. package/lib/cli.js +1 -1
  20. package/lib/commands/api/generate.js +1 -1
  21. package/lib/commands/api/index.js +1 -1
  22. package/lib/commands/api/list.js +1 -1
  23. package/lib/commands/api/pull.js +1 -1
  24. package/lib/commands/api/shared.js +1 -1
  25. package/lib/commands/app/detail.js +1 -1
  26. package/lib/commands/app/index.js +1 -1
  27. package/lib/commands/app/list.js +1 -1
  28. package/lib/commands/app/members-list.js +1 -1
  29. package/lib/commands/app/remote-directory.js +1 -1
  30. package/lib/commands/app/shared.js +1 -1
  31. package/lib/commands/app-config/delete.js +1 -1
  32. package/lib/commands/app-config/get.js +1 -1
  33. package/lib/commands/app-config/index.js +1 -1
  34. package/lib/commands/app-config/list.js +1 -1
  35. package/lib/commands/app-config/set.js +1 -1
  36. package/lib/commands/app-config/shared.js +1 -1
  37. package/lib/commands/auth/index.js +1 -1
  38. package/lib/commands/bff/create.js +1 -1
  39. package/lib/commands/bff/delete.js +1 -1
  40. package/lib/commands/bff/detail.js +1 -1
  41. package/lib/commands/bff/index.js +1 -1
  42. package/lib/commands/bff/list.js +1 -1
  43. package/lib/commands/bff/logs.js +1 -1
  44. package/lib/commands/bff/pull.js +1 -1
  45. package/lib/commands/bff/push.js +1 -1
  46. package/lib/commands/bff/status.js +1 -1
  47. package/lib/commands/cli-skill/index.js +1 -1
  48. package/lib/commands/cli-update.js +1 -1
  49. package/lib/commands/codegen/index.js +1 -1
  50. package/lib/commands/codegen/sdk.js +1 -1
  51. package/lib/commands/codegen/sql.js +1 -1
  52. package/lib/commands/common/app-registry.js +1 -1
  53. package/lib/commands/common/app-selector.js +1 -1
  54. package/lib/commands/common/async-task.js +1 -1
  55. package/lib/commands/common/dry-run.js +1 -1
  56. package/lib/commands/common/flags.js +1 -1
  57. package/lib/commands/common/local-file.js +1 -1
  58. package/lib/commands/common/validate.js +1 -1
  59. package/lib/commands/config/delete.js +1 -1
  60. package/lib/commands/config/get.js +1 -1
  61. package/lib/commands/config/index.js +1 -1
  62. package/lib/commands/config/init.js +1 -1
  63. package/lib/commands/config/list.js +1 -1
  64. package/lib/commands/config/set.js +1 -1
  65. package/lib/commands/config/shared.js +1 -1
  66. package/lib/commands/dataset/batch-design.js +1 -1
  67. package/lib/commands/dataset/business-group-update.js +1 -1
  68. package/lib/commands/dataset/business-groups.js +1 -1
  69. package/lib/commands/dataset/capability.js +1 -1
  70. package/lib/commands/dataset/cross-relation-create.js +1 -1
  71. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  72. package/lib/commands/dataset/cross-relation-list.js +1 -1
  73. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  74. package/lib/commands/dataset/cross-relation-update.js +1 -1
  75. package/lib/commands/dataset/delete.js +1 -1
  76. package/lib/commands/dataset/design-context.js +1 -1
  77. package/lib/commands/dataset/design-start.js +1 -1
  78. package/lib/commands/dataset/design-status.js +1 -1
  79. package/lib/commands/dataset/design-sync-retry.js +1 -1
  80. package/lib/commands/dataset/design-sync-status.js +1 -1
  81. package/lib/commands/dataset/design-validate.js +1 -1
  82. package/lib/commands/dataset/detail.js +1 -1
  83. package/lib/commands/dataset/extend-update.js +1 -1
  84. package/lib/commands/dataset/field-restore.js +1 -1
  85. package/lib/commands/dataset/field-update.js +1 -1
  86. package/lib/commands/dataset/generate.js +1 -1
  87. package/lib/commands/dataset/index.js +1 -1
  88. package/lib/commands/dataset/list.js +1 -1
  89. package/lib/commands/dataset/operations.js +1 -1
  90. package/lib/commands/dataset/relation-audit.js +1 -1
  91. package/lib/commands/dataset/relation-create.js +1 -1
  92. package/lib/commands/dataset/relation-delete.js +1 -1
  93. package/lib/commands/dataset/relation-shared.js +1 -1
  94. package/lib/commands/dataset/relation-update.js +1 -1
  95. package/lib/commands/dataset/relations.js +1 -1
  96. package/lib/commands/dataset/rename.js +1 -1
  97. package/lib/commands/dataset/restore.js +1 -1
  98. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  99. package/lib/commands/db/analysis-batching.js +1 -1
  100. package/lib/commands/db/analyze-batch-plan.js +1 -1
  101. package/lib/commands/db/analyze-cancel.js +1 -1
  102. package/lib/commands/db/analyze-start.js +1 -1
  103. package/lib/commands/db/analyze-status.js +1 -1
  104. package/lib/commands/db/create.js +1 -1
  105. package/lib/commands/db/cross-db-analysis-shared.js +1 -1
  106. package/lib/commands/db/cross-db-analyze-latest.js +1 -1
  107. package/lib/commands/db/cross-db-analyze-start.js +1 -1
  108. package/lib/commands/db/cross-db-analyze-status.js +1 -1
  109. package/lib/commands/db/delete.js +1 -1
  110. package/lib/commands/db/detail.js +1 -1
  111. package/lib/commands/db/diff-refresh-start.js +1 -1
  112. package/lib/commands/db/diff-refresh-status.js +1 -1
  113. package/lib/commands/db/diff.js +1 -1
  114. package/lib/commands/db/index.js +1 -1
  115. package/lib/commands/db/list.js +1 -1
  116. package/lib/commands/db/shared.js +1 -1
  117. package/lib/commands/db/table-diff-shared.js +1 -1
  118. package/lib/commands/db/tables.js +1 -1
  119. package/lib/commands/db/test.js +1 -1
  120. package/lib/commands/db/update.js +1 -1
  121. package/lib/commands/deployment/index.js +1 -1
  122. package/lib/commands/deployment/sync-all.js +1 -1
  123. package/lib/commands/deployment/sync-jobs.js +1 -1
  124. package/lib/commands/deployment/sync-status.js +1 -1
  125. package/lib/commands/doctor.js +1 -1
  126. package/lib/commands/file/index.js +1 -1
  127. package/lib/commands/flow/create.js +1 -1
  128. package/lib/commands/flow/detail.js +1 -1
  129. package/lib/commands/flow/index.js +1 -1
  130. package/lib/commands/flow/list.js +1 -1
  131. package/lib/commands/flow/page-list.js +1 -1
  132. package/lib/commands/flow/publish.js +1 -1
  133. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  134. package/lib/commands/flow/runtime-role-list.js +1 -1
  135. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  136. package/lib/commands/flow/runtime-user-search.js +1 -1
  137. package/lib/commands/flow/shared.js +1 -1
  138. package/lib/commands/flow/update.js +1 -1
  139. package/lib/commands/flow/validate.js +1 -1
  140. package/lib/commands/instant-api-policy/current.js +1 -1
  141. package/lib/commands/instant-api-policy/index.js +1 -1
  142. package/lib/commands/instant-api-policy/init.js +1 -1
  143. package/lib/commands/instant-api-policy/publish.js +1 -1
  144. package/lib/commands/instant-api-policy/pull.js +1 -1
  145. package/lib/commands/instant-api-policy/revision.js +1 -1
  146. package/lib/commands/instant-api-policy/revisions.js +1 -1
  147. package/lib/commands/instant-api-policy/rollback.js +1 -1
  148. package/lib/commands/instant-api-policy/shared.js +1 -1
  149. package/lib/commands/instant-api-policy/validate.js +1 -1
  150. package/lib/commands/issue/index.js +1 -1
  151. package/lib/commands/issue/nudge.js +1 -1
  152. package/lib/commands/issue/report.js +1 -1
  153. package/lib/commands/issue/shared.js +1 -1
  154. package/lib/commands/kb/create.js +1 -1
  155. package/lib/commands/kb/delete.js +1 -1
  156. package/lib/commands/kb/detail.js +1 -1
  157. package/lib/commands/kb/index.js +1 -1
  158. package/lib/commands/kb/list.js +1 -1
  159. package/lib/commands/kb/search.js +1 -1
  160. package/lib/commands/kb/shared.js +1 -1
  161. package/lib/commands/kb/update.js +1 -1
  162. package/lib/commands/logs/index.js +1 -1
  163. package/lib/commands/menu/asset-update.js +1 -1
  164. package/lib/commands/menu/delete.js +1 -1
  165. package/lib/commands/menu/external-link-create.js +1 -1
  166. package/lib/commands/menu/external-link-update.js +1 -1
  167. package/lib/commands/menu/group-create.js +1 -1
  168. package/lib/commands/menu/group-update.js +1 -1
  169. package/lib/commands/menu/index.js +1 -1
  170. package/lib/commands/menu/list.js +1 -1
  171. package/lib/commands/menu/move.js +1 -1
  172. package/lib/commands/menu/regroup-start.js +1 -1
  173. package/lib/commands/menu/rename.js +1 -1
  174. package/lib/commands/menu/shared/compare-table.js +1 -1
  175. package/lib/commands/menu/shared/delete-plan.js +1 -1
  176. package/lib/commands/menu/shared/facts.js +1 -1
  177. package/lib/commands/menu/shared/index.js +1 -1
  178. package/lib/commands/menu/shared/inquirer.js +1 -1
  179. package/lib/commands/menu/shared/local-pages.js +1 -1
  180. package/lib/commands/menu/shared/logic.js +1 -1
  181. package/lib/commands/menu/shared/mutations.js +1 -1
  182. package/lib/commands/menu/shared/path.js +1 -1
  183. package/lib/commands/menu/shared/service.js +1 -1
  184. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  185. package/lib/commands/menu/shared/sync-core.js +1 -1
  186. package/lib/commands/menu/shared/update-core.js +1 -1
  187. package/lib/commands/menu/shared/valid-url.js +1 -1
  188. package/lib/commands/menu/subapp-assets-status.js +1 -1
  189. package/lib/commands/menu/subapp-assets-update.js +1 -1
  190. package/lib/commands/menu/sync.js +1 -1
  191. package/lib/commands/menu/visibility-update.js +1 -1
  192. package/lib/commands/notification/config-create.js +1 -1
  193. package/lib/commands/notification/config-delete.js +1 -1
  194. package/lib/commands/notification/config-list.js +1 -1
  195. package/lib/commands/notification/config-update.js +1 -1
  196. package/lib/commands/notification/index.js +1 -1
  197. package/lib/commands/notification/shared.js +1 -1
  198. package/lib/commands/ocr/index.js +1 -1
  199. package/lib/commands/page/create.js +1 -1
  200. package/lib/commands/page/custom/detail.js +1 -1
  201. package/lib/commands/page/custom/list.js +1 -1
  202. package/lib/commands/page/custom/publish.js +1 -1
  203. package/lib/commands/page/custom/shared.js +1 -1
  204. package/lib/commands/page/custom/syntax.js +1 -1
  205. package/lib/commands/page/custom/update.js +1 -1
  206. package/lib/commands/page/data-list-status.js +1 -1
  207. package/lib/commands/page/generate-start.js +1 -1
  208. package/lib/commands/page/generate-status.js +1 -1
  209. package/lib/commands/page/index.js +1 -1
  210. package/lib/commands/page/pull.js +1 -1
  211. package/lib/commands/page/push.js +1 -1
  212. package/lib/commands/page/relation-audit.js +1 -1
  213. package/lib/commands/page/restore.js +1 -1
  214. package/lib/commands/page/shared.js +1 -1
  215. package/lib/commands/page/sync.js +1 -1
  216. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  217. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  218. package/lib/commands/project/create/format-elapsed.js +1 -1
  219. package/lib/commands/project/create/main.js +1 -1
  220. package/lib/commands/project/create/materialize-project-template.js +1 -1
  221. package/lib/commands/project/create/project-name.js +1 -1
  222. package/lib/commands/project/create/project-template-archive.js +1 -1
  223. package/lib/commands/project/create/project-template-path.js +1 -1
  224. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  225. package/lib/commands/project/create/use-format-code.js +1 -1
  226. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  227. package/lib/commands/project/domain-routing-sync.js +1 -1
  228. package/lib/commands/project/index.js +1 -1
  229. package/lib/commands/project/upgrade.js +1 -1
  230. package/lib/commands/registry.js +1 -1
  231. package/lib/commands/role/delete.js +1 -1
  232. package/lib/commands/role/detail.js +1 -1
  233. package/lib/commands/role/index.js +1 -1
  234. package/lib/commands/role/list.js +1 -1
  235. package/lib/commands/role/shared.js +1 -1
  236. package/lib/commands/role/update.js +1 -1
  237. package/lib/commands/role/user-add.js +1 -1
  238. package/lib/commands/role/user-remove.js +1 -1
  239. package/lib/commands/role/user-resolve.js +1 -1
  240. package/lib/commands/rule/get.js +1 -1
  241. package/lib/commands/rule/index.js +1 -1
  242. package/lib/commands/rule/list.js +1 -1
  243. package/lib/commands/rule/set.js +1 -1
  244. package/lib/commands/rule/shared.js +1 -1
  245. package/lib/commands/run/index.js +1 -1
  246. package/lib/commands/schema.js +1 -1
  247. package/lib/commands/sql/create.js +1 -1
  248. package/lib/commands/sql/delete.js +1 -1
  249. package/lib/commands/sql/detail.js +1 -1
  250. package/lib/commands/sql/exec.js +1 -1
  251. package/lib/commands/sql/index.js +1 -1
  252. package/lib/commands/sql/list.js +1 -1
  253. package/lib/commands/sql/pull.js +1 -1
  254. package/lib/commands/sql/push.js +1 -1
  255. package/lib/commands/sql/shared.js +1 -1
  256. package/lib/commands/sql/status.js +1 -1
  257. package/lib/commands/sql/validate.js +1 -1
  258. package/lib/commands/task/index.js +1 -1
  259. package/lib/commands/task/status.js +1 -1
  260. package/lib/commands/tenant/index.js +1 -1
  261. package/lib/commands/tenant/members-list.js +1 -1
  262. package/lib/commands/tenant/shared.js +1 -1
  263. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  264. package/lib/commands/user-account/feishu-bind.js +1 -1
  265. package/lib/commands/user-account/index.js +1 -1
  266. package/lib/commands/workspace/add.js +1 -1
  267. package/lib/commands/workspace/index.js +1 -1
  268. package/lib/commands/workspace/remove.js +1 -1
  269. package/lib/config/domain-config.js +1 -1
  270. package/lib/config/project-domain-routing.js +1 -1
  271. package/lib/config/region-config.js +1 -1
  272. package/lib/config/schema.js +1 -1
  273. package/lib/constant/cdn.js +1 -1
  274. package/lib/constant/cli.js +1 -1
  275. package/lib/constant/defaults.js +1 -1
  276. package/lib/constant/domain.js +1 -1
  277. package/lib/constant/env.js +1 -1
  278. package/lib/constant/output.js +1 -1
  279. package/lib/constant/paths.js +1 -1
  280. package/lib/constant/region.js +1 -1
  281. package/lib/constant/risk.js +1 -1
  282. package/lib/constant/routing-profile.js +1 -1
  283. package/lib/context/app-resolver.js +1 -1
  284. package/lib/context/auth-resolver.js +1 -1
  285. package/lib/context/config-loader.js +1 -1
  286. package/lib/context.js +1 -1
  287. package/lib/core/alias-resolver.js +1 -1
  288. package/lib/core/api-client.js +1 -1
  289. package/lib/core/bff/config.js +1 -1
  290. package/lib/core/bff/file-system.js +1 -1
  291. package/lib/core/bff/hash.js +1 -1
  292. package/lib/core/bff/hook-directory.js +1 -1
  293. package/lib/core/bff/lock.js +1 -1
  294. package/lib/core/bff/utils.js +1 -1
  295. package/lib/core/cross-db-analysis.js +1 -1
  296. package/lib/core/cross-db-relation.js +1 -1
  297. package/lib/core/db-resolver.js +1 -1
  298. package/lib/core/flow-config.js +1 -1
  299. package/lib/core/instant-api-policy/config.js +1 -1
  300. package/lib/core/kb-search-client.js +1 -1
  301. package/lib/core/page/file-system.js +1 -1
  302. package/lib/core/page/hash.js +1 -1
  303. package/lib/core/page/lock.js +1 -1
  304. package/lib/core/page/lr-smart-jsx.js +1 -1
  305. package/lib/core/sql-index-auditor.js +1 -1
  306. package/lib/core/sql-sync/config.js +1 -1
  307. package/lib/core/sql-sync/file-system.js +1 -1
  308. package/lib/core/sql-sync/hash.js +1 -1
  309. package/lib/core/sql-sync/lock.js +1 -1
  310. package/lib/core/sql-sync/utils.js +1 -1
  311. package/lib/core/sql-validator.js +1 -1
  312. package/lib/errors.js +1 -1
  313. package/lib/framework/build-all-flags.js +1 -1
  314. package/lib/framework/error-output.js +1 -1
  315. package/lib/framework/explicit-yes.js +1 -1
  316. package/lib/framework/flags.js +1 -1
  317. package/lib/framework/help.js +1 -1
  318. package/lib/framework/index.js +1 -1
  319. package/lib/framework/output.js +1 -1
  320. package/lib/framework/response.js +1 -1
  321. package/lib/framework/runner-alias.js +1 -1
  322. package/lib/framework/runner.js +1 -1
  323. package/lib/framework/schema-export.js +1 -1
  324. package/lib/framework/supported-flags.js +1 -1
  325. package/lib/framework/types.js +1 -1
  326. package/lib/generated/build-info.d.ts +4 -4
  327. package/lib/generated/build-info.js +1 -1
  328. package/lib/generated/official-routing.js +1 -1
  329. package/lib/generated/routing-contract.js +1 -1
  330. package/lib/help.js +1 -1
  331. package/lib/postinstall.js +1 -1
  332. package/lib/runtime/confirmation.js +1 -1
  333. package/lib/runtime/event.js +1 -1
  334. package/lib/runtime/index.js +1 -1
  335. package/lib/runtime/queue.js +1 -1
  336. package/lib/runtime/resolve.js +1 -1
  337. package/lib/services/dataset-design/checkpoint.js +1 -1
  338. package/lib/services/dataset-design/commands.js +1 -1
  339. package/lib/services/dataset-design/contract.js +1 -1
  340. package/lib/skills/builtin-skill.js +1 -1
  341. package/lib/skills/main.js +1 -1
  342. package/lib/skills/npx-skills-add.js +1 -1
  343. package/lib/skills/skill-presence.js +1 -1
  344. package/lib/telemetry/cli-command-trace.js +1 -1
  345. package/lib/telemetry/cli-help-trace.js +1 -1
  346. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  347. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  348. package/lib/telemetry/send-cli-trace-log.js +1 -1
  349. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  350. package/lib/utils/ai_config.js +1 -1
  351. package/lib/utils/apply-jq-filter.js +1 -1
  352. package/lib/utils/cdn-config.js +1 -1
  353. package/lib/utils/check-sdk-version.js +1 -1
  354. package/lib/utils/cli-version-check.js +1 -1
  355. package/lib/utils/cli-version-policy.js +1 -1
  356. package/lib/utils/config.js +1 -1
  357. package/lib/utils/entity-with-id.js +1 -1
  358. package/lib/utils/file-utils.js +1 -1
  359. package/lib/utils/guides-cdn.js +1 -1
  360. package/lib/utils/http-client.js +1 -1
  361. package/lib/utils/is-non-interactive.js +1 -1
  362. package/lib/utils/logger.js +1 -1
  363. package/lib/utils/params.js +1 -1
  364. package/lib/utils/platform.js +1 -1
  365. package/lib/utils/sleep.js +1 -1
  366. package/lib/utils/template-replacer.js +1 -1
  367. package/lib/utils/update-notice.js +1 -1
  368. package/lib/utils/version.js +1 -1
  369. package/lib/utils/with-active-cookie.js +1 -1
  370. package/lib/utils/write-cli-side-channel.js +1 -1
  371. package/package.json +1 -1
  372. package/skills/rabetbase/SKILL.md +1 -1
  373. package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
  374. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  375. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- const a59_0x29c6b7=a59_0x3cf7;(function(_0x4de076,_0x2a938d){const _0x14cbf9=a59_0x3cf7,_0x356fb8=_0x4de076();while(!![]){try{const _0x3a4638=-parseInt(_0x14cbf9(0xde))/0x1+parseInt(_0x14cbf9(0xd9))/0x2+-parseInt(_0x14cbf9(0xdd))/0x3+-parseInt(_0x14cbf9(0xe4))/0x4+parseInt(_0x14cbf9(0xdf))/0x5*(-parseInt(_0x14cbf9(0xd8))/0x6)+parseInt(_0x14cbf9(0xe6))/0x7+parseInt(_0x14cbf9(0xd7))/0x8;if(_0x3a4638===_0x2a938d)break;else _0x356fb8['push'](_0x356fb8['shift']());}catch(_0x3e9429){_0x356fb8['push'](_0x356fb8['shift']());}}}(a59_0x50ca,0xad494));function a59_0x3cf7(_0x14bc4d,_0x1fd6f0){_0x14bc4d=_0x14bc4d-0xd3;const _0x50cafe=a59_0x50ca();let _0x3cf725=_0x50cafe[_0x14bc4d];return _0x3cf725;}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(_0x2105d){const _0x4d44ef=a59_0x3cf7,_0xebcee0=_0x2105d[_0x4d44ef(0xe3)](_0x4d44ef(0xe5));if(!_0xebcee0)throw CliErrors[_0x4d44ef(0xdc)](_0x4d44ef(0xe2),_0x4d44ef(0xe0)+CLI_BIN_NAME+'\x20config\x20get\x20--key\x20<key>');const _0xcc455c=readConfig(),_0x3ac0a0=_0xebcee0===_0x4d44ef(0xda)?_0x4d44ef(0xe1):_0xebcee0,_0x163951=_0xcc455c[_0x3ac0a0];if(_0x163951===undefined)throw CliErrors[_0x4d44ef(0xdc)]('Key\x20not\x20found:\x20'+_0xebcee0);return{'ok':!![],'data':typeof _0x163951===_0x4d44ef(0xd3)?_0x163951:{[_0x3ac0a0]:_0x163951},'message':typeof _0x163951===_0x4d44ef(0xd3)?undefined:String(_0x163951)};}export const configGetDefinition={'service':a59_0x29c6b7(0xdb),'command':a59_0x29c6b7(0xd4),'description':'Get\x20a\x20config\x20value\x20by\x20key','risk':a59_0x29c6b7(0xd6),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a59_0x29c6b7(0xe5),'type':a59_0x29c6b7(0xd5),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};function a59_0x50ca(){const _0x125c41=['string','read','10560976rfvRic','264UmHzti','1987868DYOXNP','app','config','validation','2566677DuVfZI','948807QdWMfu','19880BSwvXw','Usage:\x20','appcode','Missing\x20key.','str','2448604vctvFp','key','6910295cNydVA','object','get'];a59_0x50ca=function(){return _0x125c41;};return a59_0x50ca();}
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 +1 @@
1
- (function(_0x1cb842,_0x352974){const _0x1c3414=a60_0xb633,_0x90075e=_0x1cb842();while(!![]){try{const _0x690e75=-parseInt(_0x1c3414(0x10c))/0x1+parseInt(_0x1c3414(0x10d))/0x2+parseInt(_0x1c3414(0x10e))/0x3+-parseInt(_0x1c3414(0x113))/0x4*(-parseInt(_0x1c3414(0x10b))/0x5)+parseInt(_0x1c3414(0x10f))/0x6*(-parseInt(_0x1c3414(0x111))/0x7)+parseInt(_0x1c3414(0x110))/0x8*(-parseInt(_0x1c3414(0x112))/0x9)+parseInt(_0x1c3414(0x114))/0xa;if(_0x690e75===_0x352974)break;else _0x90075e['push'](_0x90075e['shift']());}catch(_0x4963c5){_0x90075e['push'](_0x90075e['shift']());}}}(a60_0x53fd,0x95764));import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';import{configSetDefinition}from'../../commands/config/set.js';import{configDeleteDefinition}from'../../commands/config/delete.js';import{configInitDefinition}from'../../commands/config/init.js';function a60_0x53fd(){const _0x81eae6=['100917mwJupI','3244916FgsdNa','1397230NoIQAb','5BobKmb','893222fgAHlk','564104ZHrmwp','1359006edMhRb','14454JvneQD','24zehjGP','427amQkDa'];a60_0x53fd=function(){return _0x81eae6;};return a60_0x53fd();}function a60_0xb633(_0x2ec50f,_0x1b66f8){_0x2ec50f=_0x2ec50f-0x10b;const _0x53fd9d=a60_0x53fd();let _0xb633a1=_0x53fd9d[_0x2ec50f];return _0xb633a1;}export const configDefinitions=[configInitDefinition,configListDefinition,configGetDefinition,configSetDefinition,configDeleteDefinition];
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 +1 @@
1
- const a61_0x233259=a61_0x1f93;(function(_0x33003c,_0x4d71f5){const _0x1f8ae4=a61_0x1f93,_0x546daf=_0x33003c();while(!![]){try{const _0x498314=-parseInt(_0x1f8ae4(0x163))/0x1+-parseInt(_0x1f8ae4(0x179))/0x2+parseInt(_0x1f8ae4(0x161))/0x3+parseInt(_0x1f8ae4(0x188))/0x4+-parseInt(_0x1f8ae4(0x157))/0x5+-parseInt(_0x1f8ae4(0x17e))/0x6+parseInt(_0x1f8ae4(0x17f))/0x7*(parseInt(_0x1f8ae4(0x17b))/0x8);if(_0x498314===_0x4d71f5)break;else _0x546daf['push'](_0x546daf['shift']());}catch(_0x4c0abc){_0x546daf['push'](_0x546daf['shift']());}}}(a61_0x1d05,0xbaf1a));import{select}from'@inquirer/prompts';import{CliErrors}from'../../errors.js';import{readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{DOMAIN_CONFIG_FIELDS,LEGACY_DOMAIN_CONFIG_FIELDS,resolveDomainConfigInput}from'../../config/domain-config.js';import{ENTERPRISE_ROUTING_KIND,ENTERPRISE_ROUTING_PROTOCOL}from'../../generated/routing-contract.js';import{DEFAULT_LOVRABET_REGION,ENABLED_LOVRABET_REGION_VALUES,isEnabledLovrabetRegion}from'../../constant/region.js';import{getOfficialRoutingProfile}from'../../constant/routing-profile.js';import{GLOBAL_SCOPE_FLAG}from'../../commands/common/flags.js';export const configInitFlags=[GLOBAL_SCOPE_FLAG,{'name':a61_0x233259(0x172),'type':a61_0x233259(0x169),'description':a61_0x233259(0x184)+ENABLED_LOVRABET_REGION_VALUES[a61_0x233259(0x166)](',\x20'),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':'domain-config','type':a61_0x233259(0x169),'description':a61_0x233259(0x177)},{'name':'user-domain','type':a61_0x233259(0x169),'description':a61_0x233259(0x15b)},{'name':'api-domain','type':a61_0x233259(0x169),'description':a61_0x233259(0x18d)},{'name':a61_0x233259(0x167),'type':a61_0x233259(0x169),'description':a61_0x233259(0x16f)},{'name':a61_0x233259(0x18c),'type':a61_0x233259(0x169),'description':a61_0x233259(0x175)},{'name':a61_0x233259(0x16a),'type':a61_0x233259(0x169),'description':a61_0x233259(0x170)},{'name':a61_0x233259(0x182),'type':a61_0x233259(0x169),'description':'Custom\x20KB\x20Service\x20HTTPS\x20origin'},{'name':a61_0x233259(0x187),'type':a61_0x233259(0x169),'description':'Custom\x20Lovrabet\x20workspace\x20HTTPS\x20origin'},{'name':a61_0x233259(0x158),'type':a61_0x233259(0x169),'description':a61_0x233259(0x171)},{'name':a61_0x233259(0x183),'type':a61_0x233259(0x169),'description':a61_0x233259(0x15a)}];async function resolveRegion(_0x256bb8){const _0x19f8de=a61_0x233259,_0xa5fd9b=_0x256bb8['str'](_0x19f8de(0x172));if(_0xa5fd9b){if(!isEnabledLovrabetRegion(_0xa5fd9b))throw CliErrors[_0x19f8de(0x168)](_0x19f8de(0x17c)+_0xa5fd9b+_0x19f8de(0x164),_0x19f8de(0x185)+ENABLED_LOVRABET_REGION_VALUES[_0x19f8de(0x166)](',\x20'));return _0xa5fd9b;}if(_0x256bb8[_0x19f8de(0x15d)])return DEFAULT_LOVRABET_REGION;try{return await select({'message':'Select\x20Lovrabet\x20region','default':DEFAULT_LOVRABET_REGION,'choices':ENABLED_LOVRABET_REGION_VALUES[_0x19f8de(0x165)](_0x2701d3=>({'name':getOfficialRoutingProfile(_0x2701d3)[_0x19f8de(0x16b)]+'\x20('+_0x2701d3+')','value':_0x2701d3}))});}catch(_0x1ca2f5){if(_0x1ca2f5?.[_0x19f8de(0x18a)]===_0x19f8de(0x18b))throw CliErrors[_0x19f8de(0x176)]();throw _0x1ca2f5;}}export async function executeConfigInit(_0x2564b5){const _0x40cbbf=a61_0x233259,_0x1f9d0d=resolveDomainConfigInput(_0x2564b5),_0x115627=_0x1f9d0d[_0x40cbbf(0x174)],_0x4806e5=Object[_0x40cbbf(0x16e)](_0x115627)[_0x40cbbf(0x16d)]>0x0;if(_0x4806e5&&_0x2564b5[_0x40cbbf(0x181)]('region'))throw CliErrors['validation']('Choose\x20either\x20an\x20official\x20region\x20or\x20independent-deployment\x20Domains,\x20not\x20both.');if(!!_0x115627[_0x40cbbf(0x162)]!==!!_0x115627['certificateDomain'])throw CliErrors['validation']('Independent\x20deployment\x20requires\x20--local-domain\x20and\x20--certificate-domain\x20together.');const _0x144d46=_0x2564b5[_0x40cbbf(0x186)](_0x40cbbf(0x173))?_0x40cbbf(0x173):'project',_0x5a695b=readScopedConfig(_0x144d46);for(const _0x41c31a of DOMAIN_CONFIG_FIELDS)delete _0x5a695b[_0x41c31a];for(const _0x22e7b5 of LEGACY_DOMAIN_CONFIG_FIELDS)delete _0x5a695b[_0x22e7b5];delete _0x5a695b[_0x40cbbf(0x17a)];let _0x3a3c73=null;if(_0x4806e5)delete _0x5a695b[_0x40cbbf(0x172)],_0x1f9d0d[_0x40cbbf(0x160)]===_0x40cbbf(0x178)?_0x5a695b[_0x40cbbf(0x17a)]={'protocol':ENTERPRISE_ROUTING_PROTOCOL,'kind':ENTERPRISE_ROUTING_KIND,'domains':_0x1f9d0d[_0x40cbbf(0x15c)],'cdn':_0x1f9d0d[_0x40cbbf(0x159)]}:Object[_0x40cbbf(0x15f)](_0x5a695b,_0x115627);else{_0x3a3c73=await resolveRegion(_0x2564b5);if(_0x3a3c73===DEFAULT_LOVRABET_REGION)delete _0x5a695b[_0x40cbbf(0x172)];else _0x5a695b['region']=_0x3a3c73;}return writeScopedConfig(_0x5a695b,_0x144d46),{'ok':!![],'message':_0x4806e5?_0x40cbbf(0x189)+Object[_0x40cbbf(0x16e)](_0x1f9d0d['mode']===_0x40cbbf(0x178)?_0x1f9d0d[_0x40cbbf(0x15c)]:_0x115627)[_0x40cbbf(0x166)](',\x20')+'.':_0x40cbbf(0x15e)+_0x3a3c73+'.','data':{'mode':_0x4806e5?_0x40cbbf(0x17d):'official','protocol':_0x1f9d0d['mode']==='enterprise-v1'?ENTERPRISE_ROUTING_PROTOCOL:undefined,'region':_0x3a3c73,'domains':_0x115627,'cdn':_0x1f9d0d[_0x40cbbf(0x160)]===_0x40cbbf(0x178)?_0x1f9d0d[_0x40cbbf(0x159)]:undefined}};}function a61_0x1f93(_0x2a4186,_0x497dee){_0x2a4186=_0x2a4186-0x157;const _0x1d052a=a61_0x1d05();let _0x1f9354=_0x1d052a[_0x2a4186];return _0x1f9354;}function a61_0x1d05(){const _0xbb71d7=['cancelled','Independent-deployment\x20Domain\x20JSON\x20file','enterprise-v1','1754598FdbNUG','routing','16HBicvC','Region\x20\x22','independent','6044328bnhikc','12079907PKTXQC','Updates\x20the\x20selected\x20Rabetbase\x20region\x20or\x20independent-deployment\x20Domain\x20configuration.\x20Cookie,\x20output\x20format,\x20and\x20app\x20bindings\x20stay\x20unchanged.','str','kb-service-domain','certificate-domain','Official\x20Lovrabet\x20region:\x20','Available\x20regions:\x20','bool','app-domain','1026684pHKiSD','Rabetbase\x20connection\x20configured\x20for\x20independent\x20deployment.\x20Domains:\x20','name','ExitPromptError','skill-domain','Custom\x20platform\x20API\x20HTTPS\x20origin','6064010Nmwuwb','local-domain','cdn','Custom\x20certificate\x20service\x20HTTPS\x20origin','Custom\x20User\x20HTTPS\x20origin','manifestDomains','nonInteractive','Rabetbase\x20connection\x20configured\x20for\x20region:\x20','assign','mode','4245852QfCJnk','localDomain','1260146uiROjW','\x22\x20is\x20not\x20currently\x20available.','map','join','runtime-domain','validation','string','kb-domain','label','Initialize\x20the\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domains','length','keys','Custom\x20Runtime\x20HTTPS\x20origin','Custom\x20knowledge-base\x20HTTPS\x20origin','Custom\x20local\x20callback\x20HTTPS\x20origin','region','global','domains','Custom\x20SkillHub\x20HTTPS\x20origin'];a61_0x1d05=function(){return _0xbb71d7;};return a61_0x1d05();}export const configInitDefinition={'service':'config','command':'init','description':a61_0x233259(0x16c),'risk':'write','confirmationDescription':a61_0x233259(0x180),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':configInitFlags,'execute':executeConfigInit};
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 +1 @@
1
- const a62_0x1a9aa8=a62_0x1cc8;(function(_0x3862bc,_0x2978c4){const _0x311590=a62_0x1cc8,_0x1ed4e9=_0x3862bc();while(!![]){try{const _0x2ed863=parseInt(_0x311590(0x132))/0x1+parseInt(_0x311590(0x127))/0x2+-parseInt(_0x311590(0x138))/0x3*(parseInt(_0x311590(0x12c))/0x4)+parseInt(_0x311590(0x133))/0x5*(parseInt(_0x311590(0x129))/0x6)+-parseInt(_0x311590(0x134))/0x7*(parseInt(_0x311590(0x12b))/0x8)+-parseInt(_0x311590(0x131))/0x9*(-parseInt(_0x311590(0x12a))/0xa)+parseInt(_0x311590(0x126))/0xb*(-parseInt(_0x311590(0x12e))/0xc);if(_0x2ed863===_0x2978c4)break;else _0x1ed4e9['push'](_0x1ed4e9['shift']());}catch(_0x3491af){_0x1ed4e9['push'](_0x1ed4e9['shift']());}}}(a62_0x3cf1,0xe720a));import{readScopedConfig}from'../../commands/config/shared.js';function a62_0x1cc8(_0x1edc8b,_0x374d37){_0x1edc8b=_0x1edc8b-0x126;const _0x3cf114=a62_0x3cf1();let _0x1cc835=_0x3cf114[_0x1edc8b];return _0x1cc835;}import{readConfig}from'../../utils/config.js';async function execute(_0x45f184){const _0x34261f=a62_0x1cc8,_0x4486a6=_0x45f184[_0x34261f(0x136)](_0x34261f(0x12f))?readScopedConfig(_0x34261f(0x12f)):readConfig();return{'ok':!![],'data':_0x4486a6};}function a62_0x3cf1(){const _0x29919f=['global','config','518553bPKHzg','775181IfLkeB','30MwopMe','440692Tztfew','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','bool','read','3GGMdcI','11xkyIpE','564738oMRGbJ','list','981918afUCDi','130gtAohl','56NBGAvK','706148BGELEn','boolean','14694744snTJNl'];a62_0x3cf1=function(){return _0x29919f;};return a62_0x3cf1();}export const configListDefinition={'service':a62_0x1a9aa8(0x130),'command':a62_0x1a9aa8(0x128),'description':'List\x20all\x20config\x20values','risk':a62_0x1a9aa8(0x137),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a62_0x1a9aa8(0x12f),'type':a62_0x1a9aa8(0x12d),'description':a62_0x1a9aa8(0x135),'default':![]}],'execute':execute};
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 +1 @@
1
- const a63_0x3a72bb=a63_0x3c0f;(function(_0x5337a7,_0x102aec){const _0xa165b1=a63_0x3c0f,_0x456b48=_0x5337a7();while(!![]){try{const _0x3a5f57=parseInt(_0xa165b1(0x90))/0x1*(parseInt(_0xa165b1(0xb0))/0x2)+-parseInt(_0xa165b1(0xb4))/0x3*(parseInt(_0xa165b1(0x9d))/0x4)+parseInt(_0xa165b1(0x99))/0x5+-parseInt(_0xa165b1(0x93))/0x6+-parseInt(_0xa165b1(0xa8))/0x7*(parseInt(_0xa165b1(0xa9))/0x8)+parseInt(_0xa165b1(0x9c))/0x9*(-parseInt(_0xa165b1(0xaf))/0xa)+parseInt(_0xa165b1(0xb5))/0xb;if(_0x3a5f57===_0x102aec)break;else _0x456b48['push'](_0x456b48['shift']());}catch(_0x335afe){_0x456b48['push'](_0x456b48['shift']());}}}(a63_0x51aa,0x86d8e));function a63_0x51aa(){const _0x5d217d=['219350fEXHMK','34VyxHRR','riskLevel','apps','Use\x20`','1467nLrIEH','3902657zlqdPN','env','config','appcode','Usage:\x20','Config\x20value','app','\x20workspace\x20use\x20--app\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','26142akGxPi','Set\x20a\x20config\x20value','keys','1184526tvrVGQ','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','boolean','length','Missing\x20key.','Project','5367885zremln','`,\x20`','Top-level\x20key\x20\x22','369SYLjAh','8oAWOEU','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','value','global','\x22\x20is\x20not\x20settable.','validation','locale','string','Global','str','set','1558970mlisKi','8YgTVuO','Missing\x20value.','Invalid\x20value\x20for\x20\x22','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','\x20(stored\x20as\x20a\x20single\x20app\x20profile)','key'];a63_0x51aa=function(){return _0x5d217d;};return a63_0x51aa();}import{CliErrors}from'../../errors.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';import{CLI_BIN_NAME,CONFIG_ENUM_VALUES,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{normalizeEnv,isProduction,isDaily}from'../../constant/env.js';import{DOMAIN_CONFIG_FIELDS,normalizeDomainOrigin}from'../../config/domain-config.js';function a63_0x3c0f(_0x2474be,_0x7bcfc3){_0x2474be=_0x2474be-0x8f;const _0x51aa95=a63_0x51aa();let _0x3c0f3a=_0x51aa95[_0x2474be];return _0x3c0f3a;}async function execute(_0x351c89){const _0x1e14c5=a63_0x3c0f,_0x336b49=_0x351c89['str'](_0x1e14c5(0xae)),_0x4a2ac4=_0x351c89[_0x1e14c5(0xa6)]('value');if(!_0x336b49)throw CliErrors[_0x1e14c5(0xa2)](_0x1e14c5(0x97),_0x1e14c5(0xb9)+CLI_BIN_NAME+_0x1e14c5(0xac));if(_0x4a2ac4===undefined||_0x4a2ac4==='')throw CliErrors[_0x1e14c5(0xa2)](_0x1e14c5(0xaa),_0x1e14c5(0xb9)+CLI_BIN_NAME+_0x1e14c5(0xac));let _0x2222d8=_0x336b49,_0x5579ed=_0x4a2ac4;if(_0x4a2ac4[_0x1e14c5(0x96)]>0x1f4)throw CliErrors[_0x1e14c5(0xa2)]('Config\x20value\x20is\x20invalid\x20or\x20too\x20long.');if(_0x336b49===_0x1e14c5(0xb1))throw CliErrors[_0x1e14c5(0xa2)](_0x1e14c5(0x94));if(!isTopLevelConfigKey(_0x336b49))throw CliErrors[_0x1e14c5(0xa2)](_0x1e14c5(0x9b)+_0x336b49+_0x1e14c5(0xa1),'Settable\x20top-level\x20keys:\x20'+getTopLevelConfigKeySummary());if(CONFIG_ENUM_VALUES[_0x336b49]&&!CONFIG_ENUM_VALUES[_0x336b49]['includes'](_0x4a2ac4))throw CliErrors[_0x1e14c5(0xa2)](_0x1e14c5(0xab)+_0x336b49+'\x22.\x20Allowed:\x20'+CONFIG_ENUM_VALUES[_0x336b49]['join'](',\x20'));if(_0x336b49===_0x1e14c5(0xa3)&&!normalizeLocale(_0x4a2ac4))throw CliErrors[_0x1e14c5(0xa2)]('Invalid\x20locale\x20value.','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US');DOMAIN_CONFIG_FIELDS['includes'](_0x336b49)&&(_0x5579ed=normalizeDomainOrigin(_0x336b49,_0x4a2ac4));const _0x569d7a={'global':_0x351c89['bool'](_0x1e14c5(0xa0))},_0x57cc09=resolveWriteScope(_0x569d7a),_0x451ddb=readScopedConfig(_0x57cc09);_0x336b49===_0x1e14c5(0xbb)&&(_0x2222d8=_0x1e14c5(0xb8),delete _0x451ddb['app']);_0x336b49===_0x1e14c5(0xa3)&&(_0x5579ed=normalizeLocale(_0x4a2ac4));if(_0x336b49===_0x1e14c5(0xb6)){_0x5579ed=normalizeEnv(_0x4a2ac4);if(!isProduction(_0x5579ed)&&!isDaily(_0x5579ed))throw CliErrors[_0x1e14c5(0xa2)]('Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.');}if(_0x336b49===_0x1e14c5(0xb8)){const _0x4350ec=_0x451ddb[_0x1e14c5(0xb2)]&&typeof _0x451ddb[_0x1e14c5(0xb2)]==='object'?Object[_0x1e14c5(0x92)](_0x451ddb['apps']):[];if(_0x4350ec[_0x1e14c5(0x96)]>0x0)throw CliErrors[_0x1e14c5(0xa2)](_0x1e14c5(0x9e),_0x1e14c5(0xb3)+CLI_BIN_NAME+'\x20workspace\x20add\x20<name>\x20--appcode\x20'+_0x5579ed+_0x1e14c5(0x9a)+CLI_BIN_NAME+_0x1e14c5(0x8f));const _0x13bef7=buildCanonicalProjectConfig({..._0x451ddb},{'appCodes':[_0x5579ed],'env':typeof _0x451ddb['env']===_0x1e14c5(0xa4)?_0x451ddb[_0x1e14c5(0xb6)]:undefined});writeScopedConfig(_0x13bef7,_0x57cc09);const _0x5546c9=_0x57cc09===_0x1e14c5(0xa0)?_0x1e14c5(0xa5):_0x1e14c5(0x98);return{'ok':!![],'message':'✓\x20'+_0x5546c9+'\x20appcode\x20set\x20to:\x20'+_0x5579ed+_0x1e14c5(0xad)};}_0x451ddb[_0x2222d8]=_0x5579ed,writeScopedConfig(_0x451ddb,_0x57cc09);const _0x2230db=_0x57cc09===_0x1e14c5(0xa0)?'Global':_0x1e14c5(0x98);return{'ok':!![],'message':'✓\x20'+_0x2230db+'\x20'+_0x2222d8+'\x20set\x20to:\x20'+_0x5579ed};}export const configSetDefinition={'service':a63_0x3a72bb(0xb7),'command':a63_0x3a72bb(0xa7),'description':a63_0x3a72bb(0x91),'risk':'write','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a63_0x3a72bb(0xae),'type':'string','description':getConfigCommandKeyDescription(),'required':!![]},{'name':a63_0x3a72bb(0x9f),'type':'string','description':a63_0x3a72bb(0xba),'required':!![]},{'name':'global','type':a63_0x3a72bb(0x95),'description':'Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','default':![]}],'execute':execute};
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 +1 @@
1
- (function(_0x2ae2c3,_0x460b2f){var _0x5b3e6a=a64_0xdea0,_0x45755a=_0x2ae2c3();while(!![]){try{var _0x39db45=parseInt(_0x5b3e6a(0x1c5))/0x1*(-parseInt(_0x5b3e6a(0x1bc))/0x2)+-parseInt(_0x5b3e6a(0x1c6))/0x3+-parseInt(_0x5b3e6a(0x1c1))/0x4+parseInt(_0x5b3e6a(0x1c8))/0x5*(-parseInt(_0x5b3e6a(0x1bd))/0x6)+parseInt(_0x5b3e6a(0x1bf))/0x7+parseInt(_0x5b3e6a(0x1c7))/0x8+parseInt(_0x5b3e6a(0x1c0))/0x9;if(_0x39db45===_0x460b2f)break;else _0x45755a['push'](_0x45755a['shift']());}catch(_0x151500){_0x45755a['push'](_0x45755a['shift']());}}}(a64_0x3d5f,0x4bc48));import{CLI_BIN_NAME}from'../../constant/cli.js';function a64_0xdea0(_0x407e94,_0x214d83){_0x407e94=_0x407e94-0x1bc;var _0x3d5f3f=a64_0x3d5f();var _0xdea039=_0x3d5f3f[_0x407e94];return _0xdea039;}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};function a64_0x3d5f(){var _0x5a30af=['Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','4846AnXxjs','3330Ujpibh','\x20workspace\x20init\x20--appcode\x20<code>`\x20first.','435015DVeqNr','9564687AWKxgB','732432ACYXsJ','project','global','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','2ewzceF','1566339RDgEGU','1677224jCIKzh','2830HqDrVh'];a64_0x3d5f=function(){return _0x5a30af;};return a64_0x3d5f();}export function resolveWriteScope(_0x413567){var _0x2d3449=a64_0xdea0;if(_0x413567['global'])return _0x2d3449(0x1c3);if(!isInProject())throw CliErrors['validation'](_0x2d3449(0x1c9),_0x2d3449(0x1c4)+CLI_BIN_NAME+_0x2d3449(0x1be));return _0x2d3449(0x1c2);}export function readScopedConfig(_0x435bdb){return readConfigFile(resolveWriteConfigPath(_0x435bdb));}export function writeScopedConfig(_0x2f932d,_0x1a53d0){writeConfigFile(resolveWriteConfigPath(_0x1a53d0),_0x2f932d);}
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 +1 @@
1
- const a65_0x40cc67=a65_0x3897;(function(_0x64c741,_0x2e8481){const _0xde6b29=a65_0x3897,_0x389b38=_0x64c741();while(!![]){try{const _0x27158b=parseInt(_0xde6b29(0xb4))/0x1+-parseInt(_0xde6b29(0xc3))/0x2*(-parseInt(_0xde6b29(0xfc))/0x3)+parseInt(_0xde6b29(0xf3))/0x4*(-parseInt(_0xde6b29(0xa4))/0x5)+-parseInt(_0xde6b29(0x105))/0x6+-parseInt(_0xde6b29(0xdb))/0x7+-parseInt(_0xde6b29(0xd1))/0x8+parseInt(_0xde6b29(0xc0))/0x9;if(_0x27158b===_0x2e8481)break;else _0x389b38['push'](_0x389b38['shift']());}catch(_0x2fe439){_0x389b38['push'](_0x389b38['shift']());}}}(a65_0x2d4a,0x37849));import{CliErrors}from'../../errors.js';const LOCAL_KEY=/^[a-z][a-z0-9_]{0,63}$/,SUPPORTED_CARDINALITIES=new Set([a65_0x40cc67(0x102),'ONE_TO_ONE']),SUPPORTED_FIELD_TYPES=new Set([a65_0x40cc67(0xe1),a65_0x40cc67(0xa9),a65_0x40cc67(0x106),a65_0x40cc67(0xe4),a65_0x40cc67(0xe7),a65_0x40cc67(0xc5),a65_0x40cc67(0x108),a65_0x40cc67(0xca),a65_0x40cc67(0xb0),'UPLOAD']);export function isDatasetBatchDesign(_0x2b7b14){const _0x3ec070=a65_0x40cc67;return isObject(_0x2b7b14)&&_0x2b7b14[_0x3ec070(0xc1)]===_0x3ec070(0x103);}export function validateDatasetBatchDesign(_0x18adf6){const _0x4191bc=a65_0x40cc67;(!isObject(_0x18adf6)||_0x18adf6[_0x4191bc(0xc1)]!==_0x4191bc(0x103))&&fail('Batch\x20--design-file\x20must\x20have\x20kind\x20\x22dataset-batch\x22.');_0x18adf6['schemaVersion']!==0x1&&fail('Dataset\x20batch\x20schemaVersion\x20must\x20be\x201.');const _0x176c51=objectArray(_0x18adf6['datasets'],_0x4191bc(0xa3),0x1,0x14),_0x418c77=objectArray(_0x18adf6[_0x4191bc(0xf5)],_0x4191bc(0xf5),0x0,0xc8),_0xc885e8=objectArray(_0x18adf6[_0x4191bc(0xb7)],_0x4191bc(0xb7),0x0,0xc8),_0x54ff6d=new Set(),_0x4d2bbb=new Map();for(const [_0x551067,_0x232dbe]of _0x176c51[_0x4191bc(0xae)]()){const _0x5012a3=requiredString(_0x232dbe['localKey'],_0x4191bc(0x9f)+_0x551067+_0x4191bc(0xe2));!LOCAL_KEY[_0x4191bc(0x10a)](_0x5012a3)&&fail('datasets['+_0x551067+'].localKey\x20must\x20match\x20'+LOCAL_KEY[_0x4191bc(0xd7)]+'.');_0x54ff6d[_0x4191bc(0xd0)](_0x5012a3)&&fail('Dataset\x20batch\x20localKey\x20values\x20must\x20be\x20unique.');_0x54ff6d[_0x4191bc(0x107)](_0x5012a3);!isObject(_0x232dbe['design'])&&fail(_0x4191bc(0x9f)+_0x551067+'].design\x20must\x20be\x20an\x20object.');rejectServerDatasetIdentity(_0x232dbe[_0x4191bc(0xf9)],_0x4191bc(0x9f)+_0x551067+_0x4191bc(0xc6));if(!isObject(_0x232dbe['design'][_0x4191bc(0xcd)]))fail(_0x4191bc(0x9f)+_0x551067+_0x4191bc(0xed));rejectServerDatasetIdentity(_0x232dbe[_0x4191bc(0xf9)][_0x4191bc(0xcd)],_0x4191bc(0x9f)+_0x551067+_0x4191bc(0xe0)),requiredString(_0x232dbe[_0x4191bc(0xf9)][_0x4191bc(0xcd)]['datasetName'],'datasets['+_0x551067+'].design.dataset.datasetName');_0x4191bc(0xf5)in _0x232dbe[_0x4191bc(0xf9)]&&(!Array['isArray'](_0x232dbe['design'][_0x4191bc(0xf5)])||_0x232dbe[_0x4191bc(0xf9)]['relations'][_0x4191bc(0xe6)]!==0x0)&&fail(_0x4191bc(0x9f)+_0x551067+_0x4191bc(0xa2));const _0x550959=objectArray(_0x232dbe['design'][_0x4191bc(0xc9)],_0x4191bc(0x9f)+_0x551067+_0x4191bc(0xb5),0x1,0xc8),_0x38b18f=new Map();for(const [_0x42c663,_0x399ad1]of _0x550959['entries']()){const _0x1f64d2=fieldName(_0x399ad1);if(!_0x1f64d2)fail(_0x4191bc(0x9f)+_0x551067+'].design.fields['+_0x42c663+_0x4191bc(0xcb));const _0xcf6bb1=_0x1f64d2['toLowerCase']();if(_0x38b18f['has'](_0xcf6bb1))fail(_0x4191bc(0xbf)+_0x5012a3+'\x20field\x20names\x20must\x20be\x20unique\x20ignoring\x20case.');const _0xa48758=stringValue(_0x399ad1[_0x4191bc(0xc8)]??_0x399ad1[_0x4191bc(0xa8)])[_0x4191bc(0xb6)]();if(!SUPPORTED_FIELD_TYPES['has'](_0xa48758))fail(_0x4191bc(0x9f)+_0x551067+_0x4191bc(0xf7)+_0x42c663+_0x4191bc(0xac));_0x38b18f[_0x4191bc(0xbe)](_0xcf6bb1,_0xa48758),[_0x399ad1[_0x4191bc(0xfb)],_0x399ad1['refTableField'],_0x399ad1[_0x4191bc(0xd6)]]['some'](_0x16cb9c=>stringValue(_0x16cb9c))&&fail('datasets['+_0x551067+_0x4191bc(0xf7)+_0x42c663+_0x4191bc(0x100));}_0x4d2bbb['set'](_0x5012a3,_0x38b18f);}const _0x1138cf=new Set(),_0x53e6cd=new Set();for(const [_0x420bbe,_0x4fdf61]of _0x418c77[_0x4191bc(0xae)]()){const _0x16c614=validateRelation(_0x4fdf61,_0x420bbe,_0x54ff6d,_0x4d2bbb);if(_0x1138cf[_0x4191bc(0xd0)](_0x16c614))fail(_0x4191bc(0xab));_0x1138cf[_0x4191bc(0x107)](_0x16c614);const _0x5318e3=_0x16c614[_0x4191bc(0xe5)]('\x00',0x2)['join']('\x00');if(_0x53e6cd[_0x4191bc(0xd0)](_0x5318e3))fail(_0x4191bc(0xdf));_0x53e6cd['add'](_0x5318e3);}for(const [_0x3fd849,_0x55ab84]of _0xc885e8[_0x4191bc(0xae)]()){requiredString(_0x55ab84[_0x4191bc(0xe8)],'unresolvedRelations['+_0x3fd849+_0x4191bc(0xe9)),validateConfidence(_0x55ab84[_0x4191bc(0xcf)],'unresolvedRelations['+_0x3fd849+_0x4191bc(0xf4));}return _0x18adf6;}export function reconcileBatchResult(_0x3d5e4e){const _0x271b0c=a65_0x40cc67;if(!isObject(_0x3d5e4e))return null;try{const _0x1f9c40=stringArray(_0x3d5e4e[_0x271b0c(0xaf)],'expectedLocalKeys',0x1,0x14),_0x278532=new Set(_0x1f9c40);if(_0x278532[_0x271b0c(0xee)]!==_0x1f9c40[_0x271b0c(0xe6)]||_0x1f9c40['some'](_0x5e2b09=>!LOCAL_KEY[_0x271b0c(0x10a)](_0x5e2b09)))return null;const _0x551ab3=objectArray(_0x3d5e4e[_0x271b0c(0xd9)],_0x271b0c(0xd9),0x1,0x14),_0x5e2b61=new Map(),_0x5b29f5=new Set();for(const _0x35a098 of _0x551ab3){const _0x89c297=requiredString(_0x35a098[_0x271b0c(0xfa)],_0x271b0c(0xd3)),_0x29e626=requiredString(_0x35a098[_0x271b0c(0xeb)]??_0x35a098[_0x271b0c(0xad)],'createdDatasets[].code');if(_0x5e2b61[_0x271b0c(0xd0)](_0x89c297)||_0x5b29f5[_0x271b0c(0xd0)](_0x29e626))return null;_0x5e2b61['set'](_0x89c297,_0x29e626),_0x5b29f5[_0x271b0c(0x107)](_0x29e626);}if(!sameSet(_0x278532,new Set(_0x5e2b61[_0x271b0c(0xc7)]())))return null;const _0x497f3b=objectArray(_0x3d5e4e[_0x271b0c(0xa6)],_0x271b0c(0xa6),0x0,0xc8),_0x1751e5=objectArray(_0x3d5e4e[_0x271b0c(0x104)],'createdRelations',0x0,0xc8),_0x43d1d0=relationTupleSet(_0x497f3b,![],_0x5e2b61),_0x55b1f3=relationTupleSet(_0x1751e5,!![],_0x5e2b61);if(!_0x43d1d0||!_0x55b1f3||!sameSet(_0x43d1d0,_0x55b1f3))return null;const _0x3f04ae=objectArray(_0x3d5e4e[_0x271b0c(0xb7)],_0x271b0c(0xb7),0x0,0xc8);return{'expectedLocalKeys':_0x1f9c40,'expectedRelations':_0x497f3b,'createdDatasets':_0x551ab3,'createdRelations':_0x1751e5,'unresolvedRelations':_0x3f04ae,...isObject(_0x3d5e4e[_0x271b0c(0xd2)])?{'metrics':_0x3d5e4e[_0x271b0c(0xd2)]}:{}};}catch{return null;}}function validateRelation(_0x463b03,_0x1732b6,_0x523ec2,_0x40f5d2){const _0x47cd15=a65_0x40cc67,_0x203294=_0x47cd15(0xff)+_0x1732b6+']',_0xa7caa6=requiredString(_0x463b03['fromDatasetKey'],_0x203294+_0x47cd15(0xa5)),_0x115fec=requiredString(_0x463b03[_0x47cd15(0xf8)],_0x203294+_0x47cd15(0xce)),_0x5e0c24=requiredString(_0x463b03['fromField'],_0x203294+'.fromField')[_0x47cd15(0x109)](),_0x483576=requiredString(_0x463b03['toField'],_0x203294+_0x47cd15(0xbc))[_0x47cd15(0x109)]();if(!_0x523ec2['has'](_0xa7caa6)||!_0x523ec2[_0x47cd15(0xd0)](_0x115fec))fail(_0x203294+'\x20references\x20an\x20unknown\x20dataset\x20localKey.');const _0x34d72a=_0x40f5d2[_0x47cd15(0xfd)](_0xa7caa6)?.[_0x47cd15(0xfd)](_0x5e0c24),_0xd5ef96=_0x40f5d2['get'](_0x115fec)?.['get'](_0x483576);if(_0x34d72a===undefined||_0xd5ef96===undefined)fail(_0x203294+_0x47cd15(0xaa));if(_0x34d72a&&_0xd5ef96&&_0x34d72a!==_0xd5ef96)fail(_0x203294+'\x20connects\x20incompatible\x20field\x20types.');const _0x127e71=stringValue(_0x463b03[_0x47cd15(0xc2)])||_0x47cd15(0xb1);if(_0x127e71!==_0x47cd15(0xb1))fail(_0x203294+'.relationType\x20must\x20be\x20\x22lookup\x22.');const _0x2a3d4e=stringValue(_0x463b03[_0x47cd15(0xef)])||_0x47cd15(0x102);if(!SUPPORTED_CARDINALITIES[_0x47cd15(0xd0)](_0x2a3d4e))fail(_0x203294+'.cardinality\x20is\x20not\x20supported.');return requiredString(_0x463b03['reason'],_0x203294+_0x47cd15(0xdc)),validateConfidence(_0x463b03[_0x47cd15(0xcf)],_0x203294+_0x47cd15(0xe3)),tuple(_0xa7caa6,_0x5e0c24,_0x115fec,_0x483576,_0x47cd15(0xb1),_0x2a3d4e);}function relationTupleSet(_0x1e7f8b,_0x135a69,_0x329196){const _0x3f55fb=a65_0x40cc67,_0x25ef81=new Set();for(const _0xb37af3 of _0x1e7f8b){const _0x24edb7=stringValue(_0xb37af3[_0x3f55fb(0xea)]),_0x47c684=stringValue(_0xb37af3['toDatasetKey']),_0x316be3=stringValue(_0xb37af3[_0x3f55fb(0xf6)])[_0x3f55fb(0x109)](),_0x29dfe6=stringValue(_0xb37af3['toField'])[_0x3f55fb(0x109)](),_0x1a5d93=stringValue(_0xb37af3[_0x3f55fb(0xc2)]),_0x3407a8=stringValue(_0xb37af3[_0x3f55fb(0xef)]);if(!_0x24edb7||!_0x47c684||!_0x316be3||!_0x29dfe6||_0x1a5d93!==_0x3f55fb(0xb1)||!SUPPORTED_CARDINALITIES['has'](_0x3407a8))return null;if(!_0x329196[_0x3f55fb(0xd0)](_0x24edb7)||!_0x329196[_0x3f55fb(0xd0)](_0x47c684))return null;if(_0x135a69&&(stringValue(_0xb37af3[_0x3f55fb(0xda)])!==_0x329196[_0x3f55fb(0xfd)](_0x24edb7)||stringValue(_0xb37af3[_0x3f55fb(0xdd)])!==_0x329196[_0x3f55fb(0xfd)](_0x47c684)))return null;const _0x1cf210=tuple(_0x24edb7,_0x316be3,_0x47c684,_0x29dfe6,_0x1a5d93,_0x3407a8);if(_0x25ef81[_0x3f55fb(0xd0)](_0x1cf210))return null;_0x25ef81[_0x3f55fb(0x107)](_0x1cf210);}return _0x25ef81;}function rejectServerDatasetIdentity(_0x1e69d6,_0x52f8c9){const _0x4fba09=a65_0x40cc67;for(const _0x59b50c of['id',_0x4fba09(0xf0),_0x4fba09(0xd4),_0x4fba09(0xeb),_0x4fba09(0xad),_0x4fba09(0xbd)]){if(_0x1e69d6[_0x59b50c]!==undefined&&_0x1e69d6[_0x59b50c]!==null&&_0x1e69d6[_0x59b50c]!=='')fail(_0x52f8c9+'.'+_0x59b50c+_0x4fba09(0xa7));}}function a65_0x2d4a(){const _0x90590c=['\x20references\x20an\x20unknown\x20field.','Dataset\x20batch\x20relations\x20must\x20be\x20unique.','].type\x20is\x20not\x20supported.','datasetCode','entries','expectedLocalKeys','ADDRESS','lookup','string','isFinite','132991BdniAJ','].design.fields','toUpperCase','unresolvedRelations','\x20non-empty\x20strings.','fieldName','name','every','.toField','modelCode','set','Dataset\x20','7060482XPoZzn','kind','relationType','2qJAeVH','\x20must\x20contain\x20','MULTI_SELECT','].design','keys','type','fields','USER',']\x20must\x20have\x20a\x20non-empty\x20name\x20or\x20code.','\x20is\x20required.','dataset','.toDatasetKey','confidence','has','3044776CamRmJ','metrics','createdDatasets[].localKey','modelId','\x20objects.','refTableLabelField','source','join','createdDatasets','fromDatasetCode','948206yczpkR','.reason','toDatasetCode','some','Each\x20source\x20field\x20may\x20target\x20at\x20most\x20one\x20relation.','].design.dataset','TEXT','].localKey','.confidence','BOOLEAN','split','length','SELECT','reason','].reason','fromDatasetKey','code','isArray','].design.dataset\x20must\x20be\x20an\x20object.','size','cardinality','datasetId','validation','fieldCode','4sQmUfT','].confidence','relations','fromField','].design.fields[','toDatasetKey','design','localKey','refTable','1285791hmhurX','get','number','relations[',']\x20must\x20not\x20contain\x20embedded\x20relation\x20references.','trim','MANY_TO_ONE','dataset-batch','createdRelations','1665102TAeWsH','DATETIME','add','DATE_RANGE','toLowerCase','test','datasets[','object','\x20must\x20be\x20between\x200\x20and\x201.','].design.relations\x20must\x20be\x20an\x20empty\x20array;\x20use\x20top-level\x20relations.','datasets','1625565CRiubi','.fromDatasetKey','expectedRelations','\x20must\x20not\x20be\x20supplied\x20by\x20the\x20client.','fieldType','NUMBER'];a65_0x2d4a=function(){return _0x90590c;};return a65_0x2d4a();}function objectArray(_0x31c57e,_0x467acf,_0x57ebcb,_0xc24053){const _0x46f15d=a65_0x40cc67;return(!Array[_0x46f15d(0xec)](_0x31c57e)||_0x31c57e[_0x46f15d(0xe6)]<_0x57ebcb||_0x31c57e[_0x46f15d(0xe6)]>_0xc24053||_0x31c57e[_0x46f15d(0xde)](_0x42d6f8=>!isObject(_0x42d6f8)))&&fail(_0x467acf+_0x46f15d(0xc4)+_0x57ebcb+'..'+_0xc24053+_0x46f15d(0xd5)),_0x31c57e;}function stringArray(_0x314d25,_0x293d72,_0x3a45c7,_0x40fd83){const _0x3dc952=a65_0x40cc67;return(!Array[_0x3dc952(0xec)](_0x314d25)||_0x314d25[_0x3dc952(0xe6)]<_0x3a45c7||_0x314d25[_0x3dc952(0xe6)]>_0x40fd83||_0x314d25[_0x3dc952(0xde)](_0x42d212=>typeof _0x42d212!==_0x3dc952(0xb2)||!_0x42d212[_0x3dc952(0x101)]()))&&fail(_0x293d72+'\x20must\x20contain\x20'+_0x3a45c7+'..'+_0x40fd83+_0x3dc952(0xb8)),_0x314d25;}function a65_0x3897(_0x138e32,_0x3c68ae){_0x138e32=_0x138e32-0x9f;const _0x2d4a59=a65_0x2d4a();let _0x3897ed=_0x2d4a59[_0x138e32];return _0x3897ed;}function requiredString(_0x32f570,_0x412739){const _0x33f9fc=a65_0x40cc67,_0x245979=stringValue(_0x32f570);if(!_0x245979)fail(_0x412739+_0x33f9fc(0xcc));return _0x245979;}function stringValue(_0x11126e){const _0x492af=a65_0x40cc67;return typeof _0x11126e===_0x492af(0xb2)?_0x11126e[_0x492af(0x101)]():'';}function fieldName(_0x46515c){const _0xc74a9=a65_0x40cc67;return stringValue(_0x46515c[_0xc74a9(0xeb)]??_0x46515c[_0xc74a9(0xf2)]??_0x46515c[_0xc74a9(0xba)]??_0x46515c[_0xc74a9(0xb9)]);}function validateConfidence(_0x120235,_0x7844b5){const _0x37d385=a65_0x40cc67;_0x120235!==undefined&&_0x120235!==null&&(typeof _0x120235!==_0x37d385(0xfe)||!Number[_0x37d385(0xb3)](_0x120235)||_0x120235<0x0||_0x120235>0x1)&&fail(_0x7844b5+_0x37d385(0xa1));}function tuple(..._0x33aea9){const _0x1edb50=a65_0x40cc67;return _0x33aea9['map']((_0x1e24e9,_0x2553cb)=>_0x2553cb===0x1||_0x2553cb===0x3?_0x1e24e9['toLowerCase']():_0x1e24e9)[_0x1edb50(0xd8)]('\x00');}function sameSet(_0x8084f1,_0x4c249b){const _0x35c1ae=a65_0x40cc67;return _0x8084f1[_0x35c1ae(0xee)]===_0x4c249b[_0x35c1ae(0xee)]&&[..._0x8084f1][_0x35c1ae(0xbb)](_0x3e3c23=>_0x4c249b[_0x35c1ae(0xd0)](_0x3e3c23));}function isObject(_0x504c68){const _0x15b6eb=a65_0x40cc67;return typeof _0x504c68===_0x15b6eb(0xa0)&&_0x504c68!==null&&!Array[_0x15b6eb(0xec)](_0x504c68);}function fail(_0x54328e){const _0x269233=a65_0x40cc67;throw CliErrors[_0x269233(0xf1)](_0x54328e);}
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 +1 @@
1
- const a66_0xc0e25f=a66_0x3729;(function(_0x54f6be,_0x4b65b7){const _0x384a11=a66_0x3729,_0x2b1af1=_0x54f6be();while(!![]){try{const _0x2db173=parseInt(_0x384a11(0xde))/0x1+-parseInt(_0x384a11(0xcf))/0x2+-parseInt(_0x384a11(0xc2))/0x3*(parseInt(_0x384a11(0xe9))/0x4)+parseInt(_0x384a11(0xf7))/0x5*(parseInt(_0x384a11(0xdf))/0x6)+-parseInt(_0x384a11(0xf1))/0x7*(parseInt(_0x384a11(0xe6))/0x8)+-parseInt(_0x384a11(0xc3))/0x9+parseInt(_0x384a11(0xe5))/0xa;if(_0x2db173===_0x4b65b7)break;else _0x2b1af1['push'](_0x2b1af1['shift']());}catch(_0x9333af){_0x2b1af1['push'](_0x2b1af1['shift']());}}}(a66_0x1914,0x3a6be));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_0xc0e25f(0xd5),METADATA_BACKEND_PATH=a66_0xc0e25f(0xea),UNGROUPED_BUSINESS_GROUP=a66_0xc0e25f(0xf4);export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x4d5b97,input:_0x57f7d8,dryRun:_0x4a3738}){const _0x256b7c=a66_0xc0e25f;validateInput(_0x57f7d8);const _0x3f2834=normalizeBusinessGroupArgument(_0x57f7d8[_0x256b7c(0xdd)]),_0xeb557b=await getDatasetDetail(_0x57f7d8[_0x256b7c(0xd8)]),_0x122210=resolveBusinessGroupDataset(_0xeb557b,_0x57f7d8['code']);assertBusinessGroupUpdateSupported(_0x122210,_0x3f2834);const _0x1f4094=loadCurrentBusinessGroup(_0xeb557b,_0x122210);assertExpectedBusinessGroup(_0x1f4094,_0x57f7d8[_0x256b7c(0xd0)]);const _0x77fadc=buildBackendPlan(_0x4d5b97,_0x122210,_0x3f2834),_0x489289=_0x1f4094!==_0x3f2834;let _0x4ca224;if(_0x489289&&!_0x4a3738){_0x77fadc['kind']==='db-table'?await updateDbTableBusinessGroup(_0x77fadc[_0x256b7c(0xf5)]):await updateErBusinessGroup(_0x77fadc[_0x256b7c(0xf5)]);const _0x22d232=await getDatasetDetail(_0x122210[_0x256b7c(0xd8)]),_0x14a0bd=resolveBusinessGroupDataset(_0x22d232,_0x122210['code']),_0x3cdf4d=loadCurrentBusinessGroup(_0x22d232,_0x14a0bd);if(_0x3cdf4d!==_0x3f2834)throw CliErrors[_0x256b7c(0xcd)](_0x256b7c(0xf3),_0x256b7c(0xba)+JSON[_0x256b7c(0xdb)](displayBusinessGroup(_0x3f2834))+_0x256b7c(0xc1)+JSON['stringify'](displayBusinessGroup(_0x3cdf4d))+'.');_0x4ca224={'verified':!![],'status':'matched','afterReadback':{'businessGroup':displayBusinessGroup(_0x3cdf4d)}};}else!_0x489289&&(_0x4ca224={'verified':!![],'status':_0x256b7c(0xbf),'afterReadback':{'businessGroup':displayBusinessGroup(_0x1f4094)}});const _0xda3e44={'operation':_0x256b7c(0xd2),'appCode':_0x4d5b97,'selector':{'code':_0x122210[_0x256b7c(0xd8)]},'dataset':{'id':_0x122210['id'],'code':_0x122210[_0x256b7c(0xd8)],'name':_0x122210['name'],'sourceType':_0x122210[_0x256b7c(0xd7)]},'before':{'businessGroup':displayBusinessGroup(_0x1f4094)},'after':{'businessGroup':displayBusinessGroup(_0x3f2834)},'changed':_0x489289,'dryRun':_0x4a3738,'submitted':_0x489289&&!_0x4a3738,'backend':{'method':_0x77fadc[_0x256b7c(0xbc)],'path':_0x77fadc[_0x256b7c(0xdc)],'payload':_0x77fadc['payload']},..._0x4ca224?{'verification':_0x4ca224}:{},'warnings':[]};return{'ok':!![],'data':_0xda3e44,'message':_0x489289?_0x4a3738?_0x256b7c(0xe2)+_0x122210['code']:_0x256b7c(0xf2)+_0x122210['code']:'No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20'+_0x122210[_0x256b7c(0xd8)]};}export const datasetBusinessGroupUpdate={'service':a66_0xc0e25f(0xca),'command':a66_0xc0e25f(0xf6),'description':a66_0xc0e25f(0xe7),'risk':'write','flags':[CODE_FLAG,{'name':a66_0xc0e25f(0xee),'type':a66_0xc0e25f(0xc6),'required':!![],'description':a66_0xc0e25f(0xfa)},{'name':a66_0xc0e25f(0xd3),'type':'string','required':![],'description':a66_0xc0e25f(0xe1)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x276d4d){validateInput(readBusinessGroupUpdateInput(_0x276d4d));},async 'dryRun'(_0x264930){const _0x2b97c7=a66_0xc0e25f,_0x58e77c=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x264930['appCode'],'input':readBusinessGroupUpdateInput(_0x264930),'dryRun':!![]});return{'method':_0x58e77c[_0x2b97c7(0xb7)][_0x2b97c7(0xd4)][_0x2b97c7(0xbc)],'url':_0x58e77c[_0x2b97c7(0xb7)][_0x2b97c7(0xd4)][_0x2b97c7(0xdc)],'body':_0x58e77c[_0x2b97c7(0xb7)][_0x2b97c7(0xd4)]['payload'],'description':_0x58e77c[_0x2b97c7(0xe4)],..._0x58e77c[_0x2b97c7(0xb7)]};},async 'execute'(_0x102e10){const _0x36e3a2=a66_0xc0e25f;return buildDatasetBusinessGroupUpdateResult({'appCode':_0x102e10[_0x36e3a2(0xed)],'input':readBusinessGroupUpdateInput(_0x102e10),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x5170be){const _0x33de29=a66_0xc0e25f,_0x41c093=_0x5170be[_0x33de29(0xb9)](_0x33de29(0xd3));return{'code':trim(_0x5170be[_0x33de29(0xb9)](_0x33de29(0xd8))),'businessGroup':_0x5170be[_0x33de29(0xb9)]('business-group'),'expectBusinessGroup':_0x41c093===undefined||_0x41c093===''?undefined:_0x41c093};}function validateInput(_0x16fe54){const _0x4a9930=a66_0xc0e25f;if(!trim(_0x16fe54[_0x4a9930(0xd8)]))throw CliErrors[_0x4a9930(0xb8)](_0x4a9930(0xf9));if(_0x16fe54['businessGroup']===undefined)throw CliErrors[_0x4a9930(0xb8)]('--business-group\x20is\x20required');if(!trim(_0x16fe54[_0x4a9930(0xdd)]))throw CliErrors['validation']('--business-group\x20must\x20not\x20be\x20blank');}function assertBusinessGroupUpdateSupported(_0x95bfce,_0x453be5){const _0x5afe84=a66_0xc0e25f;if(_0x95bfce[_0x5afe84(0xd7)]==='DB_TABLE'&&!_0x453be5)throw CliErrors['validation']('Clearing\x20business\x20scenario\x20groups\x20is\x20not\x20supported\x20for\x20DB_TABLE\x20datasets.');}function resolveBusinessGroupDataset(_0x3f5b9f,_0x10c0f4){const _0x3141f3=a66_0xc0e25f,_0x5bf215=asPlainObject(_0x3f5b9f[_0x3141f3(0xca)]),_0x2babed=asPlainObject(_0x3f5b9f[_0x3141f3(0xc9)]),_0x457323=resolveSourceType(_0x3f5b9f,_0x5bf215,_0x2babed),_0x3ac320=firstString(_0x3f5b9f['modelCode'],_0x3f5b9f[_0x3141f3(0xd8)],_0x5bf215[_0x3141f3(0xbe)],_0x10c0f4)||_0x10c0f4;return{'id':firstNumber(_0x3f5b9f[_0x3141f3(0xe3)],_0x3f5b9f['id'],_0x5bf215[_0x3141f3(0xec)])??firstString(_0x3f5b9f['modelId'],_0x3f5b9f['id'],_0x5bf215[_0x3141f3(0xec)])??null,'code':_0x3ac320,'name':firstString(_0x3f5b9f[_0x3141f3(0xeb)],_0x5bf215['datasetName'],_0x5bf215['name'])||null,'sourceType':_0x457323,'dbTableSelector':_0x457323==='DB_TABLE'?{'dbLinkId':firstNumber(_0x2babed[_0x3141f3(0xef)]),'tableName':firstString(_0x2babed[_0x3141f3(0xc5)])||null}:null};}function resolveSourceType(_0x275467,_0x4e2d24,_0x26c466){const _0x38c660=a66_0xc0e25f,_0x2fec96=firstString(_0x275467[_0x38c660(0xd1)],_0x275467[_0x38c660(0xd7)],_0x4e2d24['source'],_0x4e2d24['sourceType'])?.[_0x38c660(0xe0)]()['toUpperCase']();if(_0x2fec96===_0x38c660(0xb6)||_0x2fec96===_0x38c660(0xcc))return _0x2fec96;if(Object[_0x38c660(0xda)](_0x26c466)[_0x38c660(0xd9)]>0x0)return _0x38c660(0xb6);throw CliErrors[_0x38c660(0xb8)](_0x38c660(0xf8));}function loadCurrentBusinessGroup(_0x2701da,_0x4756ce){const _0x12f749=a66_0xc0e25f,_0x331b1e=readBusinessGroupFromDatasetDetail(_0x2701da,_0x4756ce[_0x12f749(0xd7)]);if(_0x331b1e['found'])return normalizeBusinessGroup(_0x331b1e[_0x12f749(0xe8)]);return'';}function readBusinessGroupFromDatasetDetail(_0x1491ad,_0x1cba9b){const _0x5b9658=a66_0xc0e25f,_0x57068d=asPlainObject(_0x1491ad['dataset']),_0x36ed59=firstPresent(_0x1491ad[_0x5b9658(0xdd)]);if(_0x36ed59[_0x5b9658(0xd6)])return _0x36ed59;const _0x1f8d13=firstPresent(_0x57068d[_0x5b9658(0xdd)]);if(_0x1f8d13[_0x5b9658(0xd6)])return _0x1f8d13;if(_0x1cba9b===_0x5b9658(0xb6))return{'found':![]};const _0x22b536=readBusinessGroupFromExtend(_0x1491ad['extend']);if(_0x22b536[_0x5b9658(0xd6)])return _0x22b536;return readBusinessGroupFromExtend(_0x57068d['extend']);}function readBusinessGroupFromExtend(_0x15628b){const _0x5a1ff6=a66_0xc0e25f;if(_0x15628b===undefined||_0x15628b===null||_0x15628b==='')return{'found':![]};if(typeof _0x15628b==='string')try{const _0x4e3ce3=JSON['parse'](_0x15628b);return readBusinessGroupFromExtend(_0x4e3ce3);}catch{return{'found':![]};}const _0x3052fc=asPlainObject(_0x15628b);if(Object[_0x5a1ff6(0xf0)]['hasOwnProperty'][_0x5a1ff6(0xc0)](_0x3052fc,_0x5a1ff6(0xdd)))return{'found':!![],'value':_0x3052fc[_0x5a1ff6(0xdd)]};return{'found':![]};}function firstPresent(..._0x2c284f){for(const _0x5bd57b of _0x2c284f){if(_0x5bd57b!==undefined&&_0x5bd57b!==null)return{'found':!![],'value':_0x5bd57b};}return{'found':![]};}function assertExpectedBusinessGroup(_0x4ca074,_0x2fb6ff){const _0xa1f91=a66_0xc0e25f;if(_0x2fb6ff===undefined)return;const _0x14d8d6=normalizeBusinessGroupArgument(_0x2fb6ff);if(_0x4ca074!==_0x14d8d6)throw CliErrors[_0xa1f91(0xb8)]('Expectation\x20mismatch\x20at\x20businessGroup',_0xa1f91(0xba)+JSON[_0xa1f91(0xdb)](_0x14d8d6)+_0xa1f91(0xc1)+JSON['stringify'](_0x4ca074));}function buildBackendPlan(_0x199487,_0xfcfc04,_0x54c10b){const _0x4d8c47=a66_0xc0e25f;if(_0xfcfc04[_0x4d8c47(0xd7)]===_0x4d8c47(0xb6)){if(!_0xfcfc04['dbTableSelector']||_0xfcfc04['dbTableSelector'][_0x4d8c47(0xbb)]===null||!_0xfcfc04[_0x4d8c47(0xc7)]['tableName'])throw CliErrors[_0x4d8c47(0xb8)]('DB_TABLE\x20dataset\x20requires\x20dbtableConfig.dbId\x20and\x20tableName.',_0x4d8c47(0xcb));return{'kind':_0x4d8c47(0xce),'method':'POST','path':DB_TABLE_BACKEND_PATH,'payload':{'dbLinkId':_0xfcfc04[_0x4d8c47(0xc7)][_0x4d8c47(0xbb)],'tableName':_0xfcfc04[_0x4d8c47(0xc7)][_0x4d8c47(0xc5)],'businessGroup':_0x54c10b}};}return{'kind':'metadata','method':_0x4d8c47(0xc4),'path':METADATA_BACKEND_PATH,'payload':{'appCode':_0x199487,'datasetCode':_0xfcfc04[_0x4d8c47(0xd8)],'businessGroup':_0x54c10b}};}function normalizeBusinessGroup(_0x1fec36){const _0x14af8a=a66_0xc0e25f;if(_0x1fec36===undefined||_0x1fec36===null)return'';return String(_0x1fec36)[_0x14af8a(0xe0)]();}function normalizeBusinessGroupArgument(_0x24d611){const _0xcd0478=normalizeBusinessGroup(_0x24d611);return _0xcd0478===UNGROUPED_BUSINESS_GROUP?'':_0xcd0478;}function displayBusinessGroup(_0x3841a9){return _0x3841a9||UNGROUPED_BUSINESS_GROUP;}function a66_0x3729(_0x29709e,_0x46caf2){_0x29709e=_0x29709e-0xb5;const _0x191466=a66_0x1914();let _0x37290c=_0x191466[_0x29709e];return _0x37290c;}function asPlainObject(_0x4c2695){const _0x5e69fa=a66_0xc0e25f;if(!_0x4c2695||typeof _0x4c2695!==_0x5e69fa(0xb5)||Array[_0x5e69fa(0xbd)](_0x4c2695))return{};return _0x4c2695;}function a66_0x1914(){const _0x18e224=['trim','Expected\x20current\x20business\x20scenario\x20group;\x20use\x20ungrouped\x20to\x20expect\x20no\x20group;\x20mismatch\x20aborts\x20without\x20writing','Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20','modelId','message','8272990jOVwgj','38992qmHOOJ','Update\x20business\x20scenario\x20group','value','267356GqtZAw','/smartapi/question/er-config/business-group/edit','name','datasetId','appCode','business-group','dbId','prototype','553dFqFVS','Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20','Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.','ungrouped','payload','business-group-update','15BeSfHs','Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.','--code\x20is\x20required','Business\x20scenario\x20group\x20(not\x20technical):\x20use\x20<scenario>,\x20<domain>---<scenario>\x20when\x20needed;\x20METADATA\x20accepts\x20ungrouped\x20to\x20clear\x20it','object','DB_TABLE','data','validation','str','Expected\x20','dbLinkId','method','isArray','datasetCode','unchanged','call',',\x20actual\x20','3piZIfr','2726820BBccMx','POST','tableName','string','dbTableSelector','number','dbtableConfig','dataset','Run\x20dataset\x20detail\x20and\x20complete\x20database\x20analysis\x20before\x20updating\x20the\x20business\x20group.','METADATA','apiError','db-table','937238OycyeK','expectBusinessGroup','source','update','expect-business-group','backend','/smartapi/dblink/updateTableBusinessGroup','found','sourceType','code','length','keys','stringify','path','businessGroup','443170MposwF','384618CcAwWb'];a66_0x1914=function(){return _0x18e224;};return a66_0x1914();}function firstString(..._0x3b54d5){const _0x1a1fbd=a66_0xc0e25f;for(const _0x2b96d8 of _0x3b54d5){if(typeof _0x2b96d8===_0x1a1fbd(0xc6)&&_0x2b96d8[_0x1a1fbd(0xe0)]())return _0x2b96d8[_0x1a1fbd(0xe0)]();if(typeof _0x2b96d8===_0x1a1fbd(0xc8)&&Number['isFinite'](_0x2b96d8))return String(_0x2b96d8);}return undefined;}function firstNumber(..._0x4e0e26){const _0x2d11ec=a66_0xc0e25f;for(const _0x348c26 of _0x4e0e26){if(typeof _0x348c26===_0x2d11ec(0xc8)&&Number['isFinite'](_0x348c26))return _0x348c26;if(typeof _0x348c26===_0x2d11ec(0xc6)&&_0x348c26['trim']()&&Number['isFinite'](Number(_0x348c26)))return Number(_0x348c26);}return null;}function trim(_0xb46a9f){const _0x5f4379=a66_0xc0e25f;return String(_0xb46a9f||'')[_0x5f4379(0xe0)]();}
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 +1 @@
1
- const a67_0x5055c9=a67_0x296e;(function(_0xfbbf84,_0x23899c){const _0x3b90ed=a67_0x296e,_0x14b203=_0xfbbf84();while(!![]){try{const _0x3c525b=parseInt(_0x3b90ed(0x19d))/0x1+-parseInt(_0x3b90ed(0x199))/0x2+-parseInt(_0x3b90ed(0x1ac))/0x3*(parseInt(_0x3b90ed(0x1a3))/0x4)+-parseInt(_0x3b90ed(0x197))/0x5+-parseInt(_0x3b90ed(0x1a6))/0x6*(parseInt(_0x3b90ed(0x1a7))/0x7)+-parseInt(_0x3b90ed(0x1a4))/0x8*(parseInt(_0x3b90ed(0x19f))/0x9)+parseInt(_0x3b90ed(0x19c))/0xa;if(_0x3c525b===_0x23899c)break;else _0x14b203['push'](_0x14b203['shift']());}catch(_0x1b5270){_0x14b203['push'](_0x14b203['shift']());}}}(a67_0x3445,0x3ad40));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a67_0x296e(_0x4ef6d2,_0x18a440){_0x4ef6d2=_0x4ef6d2-0x195;const _0x344559=a67_0x3445();let _0x296e15=_0x344559[_0x4ef6d2];return _0x296e15;}function a67_0x3445(){const _0x33a79b=['8696GSRClo','length','90MaXTWt','115192JlcRCm','businessGroup','dataset','ungrouped','groups','15owdgXB','business-groups','trim','1830585QcMJGD','read','765470aMafzX','DB_TABLE','\x20business\x20group(s)\x20for\x20database\x20connection\x20','18788750CvnNXh','33149uoHsug','number','3339zROWAr','dbid','num','appCode','217676ytlfEA'];a67_0x3445=function(){return _0x33a79b;};return a67_0x3445();}import{getErBusinessGroupSummary}from'../../core/api-client.js';export const datasetBusinessGroups={'service':a67_0x5055c9(0x1a9),'command':a67_0x5055c9(0x195),'description':'List\x20DB_TABLE\x20dataset\x20business\x20groups\x20for\x20a\x20database\x20connection;\x20does\x20not\x20include\x20METADATA','risk':a67_0x5055c9(0x198),'flags':[{'name':a67_0x5055c9(0x1a0),'type':a67_0x5055c9(0x19e),'required':!![],'description':'Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)'},APPCODE_FLAG_OPTIONAL],async 'execute'(_0x164291){const _0x31d74f=a67_0x5055c9,_0x590d00=_0x164291[_0x31d74f(0x1a1)](_0x31d74f(0x1a0)),_0x596a6e=await getErBusinessGroupSummary(_0x164291[_0x31d74f(0x1a2)],_0x590d00),_0xc87442=_0x596a6e[_0x31d74f(0x1ab)]['map'](_0x2094ca=>({..._0x2094ca,'businessGroup':_0x2094ca[_0x31d74f(0x1a8)][_0x31d74f(0x196)]()||_0x31d74f(0x1aa)}));return{'ok':!![],'data':{..._0x596a6e,'groups':_0xc87442,'scope':_0x31d74f(0x19a)},'message':'Found\x20'+_0xc87442[_0x31d74f(0x1a5)]+_0x31d74f(0x19b)+_0x590d00};}};
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 +1 @@
1
- const a68_0x8e6dc5=a68_0x2e16;(function(_0xf7306a,_0x2e9332){const _0x31bb60=a68_0x2e16,_0x25d170=_0xf7306a();while(!![]){try{const _0x3eb356=parseInt(_0x31bb60(0x173))/0x1*(-parseInt(_0x31bb60(0x158))/0x2)+parseInt(_0x31bb60(0x157))/0x3+-parseInt(_0x31bb60(0x15a))/0x4*(parseInt(_0x31bb60(0x16e))/0x5)+-parseInt(_0x31bb60(0x16b))/0x6+-parseInt(_0x31bb60(0x153))/0x7*(parseInt(_0x31bb60(0x16a))/0x8)+-parseInt(_0x31bb60(0x165))/0x9*(-parseInt(_0x31bb60(0x159))/0xa)+parseInt(_0x31bb60(0x167))/0xb*(parseInt(_0x31bb60(0x172))/0xc);if(_0x3eb356===_0x2e9332)break;else _0x25d170['push'](_0x25d170['shift']());}catch(_0x13360a){_0x25d170['push'](_0x25d170['shift']());}}}(a68_0x4c09,0xaabec));function a68_0x4c09(){const _0x55b2ed=['unknown','dbtableConfig','join','datasetName','2538FKjxjV','object','12245189SgGQen','modelCode','trim','944aepquS','4250028yFrwGl','getOne','lovrabet','19850ijeGwm','UNKNOWN','SQL\x20schema\x20validation','sourceType','36yAsTSf','27980hNcbYT','\x20and\x20has\x20no\x20DB_TABLE\x20data-source\x20context\x20for\x20','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27\x20--format\x20compress','Upgrade\x20or\x20migrate\x20this\x20dataset\x20to\x20a\x20DB_TABLE\x20dataset,\x20then\x20continue\x20with\x20the\x20new\x20dataset\x20code.','Reason:\x20schema\x20introspection\x20and\x20custom\x20SQL\x20require\x20source=DB_TABLE,\x20dbtableConfig.dbId,\x20dbtableConfig.tableName,\x20and\x20a\x20database\x20connection\x20context.','63966bJBuQH','length','Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.','source','811263JkvirB','46wbjWlM','2530NHKLsl','556EoZHPJ','name','tableName','filter','\x20is\x20','dataset','toUpperCase'];a68_0x4c09=function(){return _0x55b2ed;};return a68_0x4c09();}import{CliErrors}from'../../errors.js';export const RUNTIME_DATA_ACCESS_COMMANDS={'cli':a68_0x8e6dc5(0x16d),'filter':'lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27<json>\x27\x20--format\x20compress','getOne':a68_0x8e6dc5(0x175)};export const RUNTIME_DATA_ACCESS_SUMMARY=a68_0x8e6dc5(0x155);function valueToString(_0x289361){const _0x1059a5=a68_0x8e6dc5;return _0x289361==null?'':String(_0x289361)[_0x1059a5(0x169)]();}function getDatasetCode(_0x2a53b7){const _0x26b0c5=a68_0x8e6dc5;return valueToString(_0x2a53b7['code']??_0x2a53b7[_0x26b0c5(0x168)]??_0x2a53b7['dataset']?.['datasetCode']);}function getDatasetName(_0x180da5){const _0x2b15ea=a68_0x8e6dc5;return valueToString(_0x180da5[_0x2b15ea(0x15b)]??_0x180da5[_0x2b15ea(0x15f)]?.[_0x2b15ea(0x164)])||_0x2b15ea(0x161);}function a68_0x2e16(_0x28a77a,_0x54bd0d){_0x28a77a=_0x28a77a-0x151;const _0x4c098d=a68_0x4c09();let _0x2e161a=_0x4c098d[_0x28a77a];return _0x2e161a;}function getDatasetSource(_0x4f3d71){const _0x5519f8=a68_0x8e6dc5;return valueToString(_0x4f3d71[_0x5519f8(0x156)]??_0x4f3d71['dataset']?.[_0x5519f8(0x171)])[_0x5519f8(0x160)]();}function getDbtableConfig(_0x2ecfa0){const _0x2f1c57=a68_0x8e6dc5,_0x18aa65=_0x2ecfa0[_0x2f1c57(0x162)]??_0x2ecfa0['dbtable'];return _0x18aa65&&typeof _0x18aa65===_0x2f1c57(0x166)?_0x18aa65:{};}export function isDbTableBackedDataset(_0xeda002){const _0x592ca1=a68_0x8e6dc5,_0x5a2818=getDatasetSource(_0xeda002);if(_0x5a2818==='METADATA')return![];const _0x21e9ec=getDbtableConfig(_0xeda002),_0x53db19=_0x21e9ec['dbId']??_0x21e9ec['id'],_0x76116=valueToString(_0x21e9ec[_0x592ca1(0x15c)]??_0xeda002['tableName']??_0xeda002[_0x592ca1(0x15f)]?.[_0x592ca1(0x15c)]);return _0x53db19!==undefined&&_0x53db19!==null&&_0x76116[_0x592ca1(0x154)]>0x0;}export function filterDbTableBackedDatasets(_0x3a2ddd){const _0x220216=a68_0x8e6dc5;return _0x3a2ddd[_0x220216(0x15d)](_0x509b59=>isDbTableBackedDataset(_0x509b59));}export function buildDbTableBackedRequirementMessage(_0x5df293,_0x5f0406=a68_0x8e6dc5(0x170)){const _0x151a94=a68_0x8e6dc5,_0x1e8135=getDatasetSource(_0x5df293)||_0x151a94(0x16f),_0x13c826=getDatasetName(_0x5df293),_0x2a5303=getDatasetCode(_0x5df293),_0x14f8ed=_0x2a5303?'\x20('+_0x2a5303+')':'';return['The\x20current\x20dataset\x20\x22'+_0x13c826+'\x22'+_0x14f8ed+_0x151a94(0x15e)+_0x1e8135+_0x151a94(0x174)+_0x5f0406+'.',_0x151a94(0x152),_0x151a94(0x151),'To\x20inspect\x20real\x20runtime\x20rows,\x20switch\x20to\x20lovrabet\x20CLI:\x20'+RUNTIME_DATA_ACCESS_COMMANDS[_0x151a94(0x15d)]+';\x20'+RUNTIME_DATA_ACCESS_COMMANDS[_0x151a94(0x16c)]+'.'][_0x151a94(0x163)]('\x20');}export function assertDatasetIsDbTableBacked(_0x20a5de,_0x233bfb){if(!isDbTableBackedDataset(_0x20a5de))throw CliErrors['validation'](buildDbTableBackedRequirementMessage(_0x20a5de,_0x233bfb));}
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 +1 @@
1
- const a69_0x495fc1=a69_0x5ec0;(function(_0x104f9a,_0x38a66e){const _0x203ae7=a69_0x5ec0,_0x53a67a=_0x104f9a();while(!![]){try{const _0xcdfcef=-parseInt(_0x203ae7(0x124))/0x1+-parseInt(_0x203ae7(0x129))/0x2*(-parseInt(_0x203ae7(0x123))/0x3)+parseInt(_0x203ae7(0x126))/0x4*(-parseInt(_0x203ae7(0x127))/0x5)+parseInt(_0x203ae7(0x11e))/0x6+parseInt(_0x203ae7(0x12a))/0x7*(-parseInt(_0x203ae7(0x12b))/0x8)+parseInt(_0x203ae7(0x128))/0x9+-parseInt(_0x203ae7(0x125))/0xa*(-parseInt(_0x203ae7(0x121))/0xb);if(_0xcdfcef===_0x38a66e)break;else _0x53a67a['push'](_0x53a67a['shift']());}catch(_0x12901a){_0x53a67a['push'](_0x53a67a['shift']());}}}(a69_0x961e,0x1fd7f));import{createCrossDbRelation}from'../../core/api-client.js';import{CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG,CROSS_RELATION_TO_DATASET_FLAG,CROSS_RELATION_TO_COLUMN_FLAG,CROSS_RELATION_LABEL_FLAG,CROSS_RELATION_CARDINALITY_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{executeCrossRelation,previewCrossRelation,validateCrossRelation}from'../../commands/dataset/cross-relation-shared.js';function a69_0x5ec0(_0x1ff4e4,_0x1ab22a){_0x1ff4e4=_0x1ff4e4-0x11d;const _0x961eac=a69_0x961e();let _0x5ec000=_0x961eac[_0x1ff4e4];return _0x5ec000;}export const datasetCrossRelationCreate={'service':a69_0x495fc1(0x11d),'command':a69_0x495fc1(0x122),'description':a69_0x495fc1(0x120),'risk':a69_0x495fc1(0x12c),'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 _0x53557e=>validateCrossRelation(_0x53557e,a69_0x495fc1(0x11f)),'dryRun':_0x5639f2=>previewCrossRelation(_0x5639f2,a69_0x495fc1(0x11f)),'execute':_0x7ebe40=>executeCrossRelation(_0x7ebe40,a69_0x495fc1(0x11f),createCrossDbRelation)};function a69_0x961e(){const _0x2a3e96=['44PKEkBb','39595OrGOjf','1100484pyIAfn','291944yUVmpn','7qPOihi','1282024uRgBBc','write','dataset','891378lCbczB','create','Create\x20a\x20logical\x20relation\x20between\x20DB_TABLE\x20datasets\x20in\x20different\x20database\x20connections','11cGqaNL','cross-relation-create','3paJZtk','169105VMidxE','1300870MtkdlW'];a69_0x961e=function(){return _0x2a3e96;};return a69_0x961e();}
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 +1 @@
1
- const a70_0x395418=a70_0x3d9a;(function(_0x45de38,_0x110bd3){const _0x238e1e=a70_0x3d9a,_0x3203c7=_0x45de38();while(!![]){try{const _0x35f59d=parseInt(_0x238e1e(0xac))/0x1*(parseInt(_0x238e1e(0xaf))/0x2)+parseInt(_0x238e1e(0xa6))/0x3*(-parseInt(_0x238e1e(0xa8))/0x4)+-parseInt(_0x238e1e(0xae))/0x5+parseInt(_0x238e1e(0xa9))/0x6+-parseInt(_0x238e1e(0xab))/0x7+-parseInt(_0x238e1e(0xa5))/0x8+-parseInt(_0x238e1e(0xa7))/0x9*(-parseInt(_0x238e1e(0xb0))/0xa);if(_0x35f59d===_0x110bd3)break;else _0x3203c7['push'](_0x3203c7['shift']());}catch(_0x2303f6){_0x3203c7['push'](_0x3203c7['shift']());}}}(a70_0x42db,0x7a46d));import{deleteCrossDbRelation}from'../../core/api-client.js';function a70_0x42db(){const _0x3a7ab1=['2208000vOUDDU','5260BeKAFA','70etEAnf','high-risk-write','1585432xdyJZS','111ULfNGU','263223WWmqRM','35524QZtAit','4998456AXNyIw','delete','883008rqsrdE','212QyfNDz','Delete\x20the\x20single\x20cross-database\x20relation\x20matching\x20a\x20source\x20dataset\x20and\x20field'];a70_0x42db=function(){return _0x3a7ab1;};return a70_0x42db();}function a70_0x3d9a(_0x5484f2,_0x545e42){_0x5484f2=_0x5484f2-0xa5;const _0x42db26=a70_0x42db();let _0x3d9a02=_0x42db26[_0x5484f2];return _0x3d9a02;}import{CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG,CROSS_RELATION_DBLINK_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{executeCrossRelation,previewCrossRelation,validateCrossRelation}from'../../commands/dataset/cross-relation-shared.js';export const datasetCrossRelationDelete={'service':'dataset','command':'cross-relation-delete','description':a70_0x395418(0xad),'risk':a70_0x395418(0xb1),'strictFlags':!![],'requiresCookieAuth':!![],'structuredErrors':!![],'flags':[CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG,CROSS_RELATION_DBLINK_FLAG,APPCODE_FLAG_OPTIONAL],'validate':async _0x122e24=>validateCrossRelation(_0x122e24,'delete'),'dryRun':_0x2cefd5=>previewCrossRelation(_0x2cefd5,'delete'),'execute':_0xf5e863=>executeCrossRelation(_0xf5e863,a70_0x395418(0xaa),deleteCrossDbRelation)};
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 +1 @@
1
- function a71_0xc72a(){const _0x7f2524=['dataset','17121411IfMZPW','530271CrTjya','read','appCode','284KRfvie','Cross-database\x20relations:\x20','map','3346818qQZCFJ','6577072IUnwXZ','7nBRTTd','2469108TSIcIU','cross-relation-list','31580dWzZbI','217514AsiHuW','List\x20outgoing\x20cross-database\x20relations\x20by\x20source\x20dataset\x20or\x20database\x20connection','length','\x20relation(s)','10nZxmpa'];a71_0xc72a=function(){return _0x7f2524;};return a71_0xc72a();}const a71_0x587eaa=a71_0x1cab;(function(_0x1ffef1,_0x39ac48){const _0x24f468=a71_0x1cab,_0x15c4a6=_0x1ffef1();while(!![]){try{const _0x5abe5c=-parseInt(_0x24f468(0x116))/0x1+parseInt(_0x24f468(0x10f))/0x2+-parseInt(_0x24f468(0x10c))/0x3+-parseInt(_0x24f468(0x106))/0x4*(parseInt(_0x24f468(0x10e))/0x5)+-parseInt(_0x24f468(0x109))/0x6+parseInt(_0x24f468(0x10b))/0x7*(parseInt(_0x24f468(0x10a))/0x8)+parseInt(_0x24f468(0x115))/0x9*(parseInt(_0x24f468(0x113))/0xa);if(_0x5abe5c===_0x39ac48)break;else _0x15c4a6['push'](_0x15c4a6['shift']());}catch(_0x2a1ecb){_0x15c4a6['push'](_0x15c4a6['shift']());}}}(a71_0xc72a,0x73a7c));function a71_0x1cab(_0x381934,_0x4d5247){_0x381934=_0x381934-0x104;const _0xc72ae0=a71_0xc72a();let _0x1caba6=_0xc72ae0[_0x381934];return _0x1caba6;}import{queryCrossDbRelations}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,CROSS_RELATION_DBLINK_FLAG,CROSS_RELATION_FROM_DATASET_FLAG,CROSS_RELATION_FROM_COLUMN_FLAG}from'../../commands/common/flags.js';import{projectCrossRelation,resolveCrossRelationQuery,validateCrossRelation}from'../../commands/dataset/cross-relation-shared.js';export const datasetCrossRelationList={'service':a71_0x587eaa(0x114),'command':a71_0x587eaa(0x10d),'description':a71_0x587eaa(0x110),'risk':a71_0x587eaa(0x104),'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 _0x506f15=>validateCrossRelation(_0x506f15,'list'),async 'execute'(_0x3954be){const _0x1cf991=a71_0x587eaa,_0x202b8c=await resolveCrossRelationQuery(_0x3954be),_0x1bea81=await queryCrossDbRelations(_0x202b8c);return{'ok':!![],'data':{'appCode':_0x3954be[_0x1cf991(0x105)],'selector':_0x202b8c,'total':_0x1bea81[_0x1cf991(0x111)],'relations':_0x1bea81[_0x1cf991(0x108)](projectCrossRelation)},'message':_0x1cf991(0x107)+_0x1bea81['length']+_0x1cf991(0x112)};}};
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 +1 @@
1
- const a72_0x4287da=a72_0x2bae;(function(_0x306ec1,_0x359a3f){const _0x8bd7fa=a72_0x2bae,_0x3cc854=_0x306ec1();while(!![]){try{const _0x1eb41e=parseInt(_0x8bd7fa(0x180))/0x1+-parseInt(_0x8bd7fa(0x159))/0x2*(parseInt(_0x8bd7fa(0x176))/0x3)+parseInt(_0x8bd7fa(0x163))/0x4+-parseInt(_0x8bd7fa(0x17b))/0x5+parseInt(_0x8bd7fa(0x175))/0x6*(-parseInt(_0x8bd7fa(0x166))/0x7)+parseInt(_0x8bd7fa(0x154))/0x8+parseInt(_0x8bd7fa(0x17a))/0x9;if(_0x1eb41e===_0x359a3f)break;else _0x3cc854['push'](_0x3cc854['shift']());}catch(_0x13e5fd){_0x3cc854['push'](_0x3cc854['shift']());}}}(a72_0x2b72,0xccef8));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 a72_0x2b72(){const _0x329076=['list','expectedLabel','appCode','Cross-database\x20relation\x20not\x20found\x20for\x20this\x20source\x20dataset\x20and\x20field.','fromDatasetCode','message','toLowerCase','13020840uuLXKJ','The\x20target\x20display\x20field\x20is\x20inherited.\x20When\x20changing\x20the\x20target\x20dataset,\x20provide\x20--to-label-column\x20explicitly.','toDatasetName','flag','update','1704886mgpHXn','sourceType','\x20verified.','dbId','The\x20write\x20was\x20accepted,\x20but\x20current\x20state\x20could\x20not\x20be\x20confirmed.\x20Run\x20dataset\x20cross-relation-list\x20before\x20attempting\x20another\x20write.','\x20must\x20be\x20a\x20DB_TABLE\x20dataset.','create','relationId','dblinkId','extend','3164784OiXdlR','Provide\x20--from-datasetcode\x20or\x20--from-dblink-id.','includes','77MdMpfu','parse','expectedCardinality','--from-dblink-id\x20does\x20not\x20match\x20the\x20source\x20dataset\x20connection.','toField','datasetCode','trim','to-datasetcode','Run\x20dataset\x20cross-relation-list\x20to\x20inspect\x20the\x20candidates.\x20This\x20command\x20accepts\x20only\x20a\x20source\x20dataset\x20and\x20field.','flagMissing','enum','validation','query','data','str','834810YyfonS','3ShWRnT','dbtable','isSafeInteger','\x20has\x20invalid\x20storage\x20configuration.','13166136ujYVlH','6072635FzzMOb','storageProfile','to-column','string','Invalid\x20--cardinality.','555166TOoIGg','refTableLabelName','fromDatasetName','multiple\x20cross-database\x20relations\x20matched','before','catch','Dataset\x20','defineProperty','Cross-database\x20relation\x20','fromDblinkId','Would\x20','fromField','cardinality','some','table','unconfirmed','from-dblink-id','\x20a\x20cross-database\x20relation\x20for\x20','DB_TABLE','tableName','map','from','fromTableName','filter','delete','from-datasetcode','\x20is\x20missing\x20its\x20database\x20connection\x20or\x20physical\x20table\x20name.','length','relationType','body','label_inherited'];a72_0x2b72=function(){return _0x329076;};return a72_0x2b72();}function required(_0x2792e0,_0x542877){const _0x5cf3cc=a72_0x2bae,_0x59dd28=_0x2792e0[_0x5cf3cc(0x174)](_0x542877)[_0x5cf3cc(0x16c)]();if(!_0x59dd28)throw CliErrors[_0x5cf3cc(0x16f)](_0x542877);return _0x59dd28;}function explicitDblink(_0x2bd346){const _0x46d95b=a72_0x2bae,_0x5e4d1a=_0x2bd346[_0x46d95b(0x157)](_0x46d95b(0x13e));if(_0x5e4d1a===undefined||_0x5e4d1a===null)return undefined;const _0x3eb7e4=Number(_0x5e4d1a);if(!Number[_0x46d95b(0x178)](_0x3eb7e4)||_0x3eb7e4<=0x0)throw CliErrors[_0x46d95b(0x171)]('--from-dblink-id\x20must\x20be\x20a\x20positive\x20safe\x20integer.');return _0x3eb7e4;}export function validateCrossRelation(_0x200c87,_0x51ba83){const _0x8cdaca=a72_0x2bae,_0x3fb12a=explicitDblink(_0x200c87);if(_0x51ba83===_0x8cdaca(0x14d)){if(!_0x200c87['str'](_0x8cdaca(0x147))[_0x8cdaca(0x16c)]()&&_0x3fb12a===undefined)throw CliErrors['validation']('Provide\x20--from-datasetcode\x20or\x20--from-dblink-id.');return;}required(_0x200c87,_0x8cdaca(0x147)),required(_0x200c87,'from-column');if(_0x51ba83!==_0x8cdaca(0x146)){required(_0x200c87,_0x8cdaca(0x16d)),required(_0x200c87,_0x8cdaca(0x17d));const _0x42c72a=_0x200c87[_0x8cdaca(0x174)]('cardinality')[_0x8cdaca(0x16c)]();if(_0x42c72a&&!CROSS_RELATION_CARDINALITY_FLAG[_0x8cdaca(0x170)]['includes'](_0x42c72a))throw CliErrors[_0x8cdaca(0x171)](_0x8cdaca(0x17f));}}async function resolveEndpoint(_0x4b90c2){const _0x117336=a72_0x2bae,_0xd99fac=await getDatasetDetail(_0x4b90c2),_0x32f8d7=_0xd99fac?.['dataset']??{};if((_0xd99fac?.['source']??_0x32f8d7[_0x117336(0x15a)])!=='DB_TABLE')throw CliErrors['validation'](_0x117336(0x134)+_0x4b90c2+_0x117336(0x15e));const _0x51fbc7=_0xd99fac['dbtableConfig']??_0xd99fac[_0x117336(0x177)]??{};let _0x2431d7=_0xd99fac[_0x117336(0x162)]??_0x32f8d7['extend']??{};if(typeof _0x2431d7===_0x117336(0x17e))try{_0x2431d7=_0x2431d7[_0x117336(0x16c)]()?JSON[_0x117336(0x167)](_0x2431d7):{};}catch{throw CliErrors[_0x117336(0x171)](_0x117336(0x134)+_0x4b90c2+_0x117336(0x179));}const _0x50ddff=Number(_0x2431d7?.[_0x117336(0x17c)]?.[_0x117336(0x15c)]??_0xd99fac['storageProfile']?.[_0x117336(0x15c)]??_0x32f8d7[_0x117336(0x17c)]?.['dbId']??_0x51fbc7['dbId']??_0x32f8d7['dbId']??_0xd99fac[_0x117336(0x15c)]),_0x5a3009=String(_0xd99fac[_0x117336(0x141)]??_0x32f8d7[_0x117336(0x141)]??_0x51fbc7['tableName']??'')[_0x117336(0x16c)]();if(!Number[_0x117336(0x178)](_0x50ddff)||_0x50ddff<=0x0||!_0x5a3009)throw CliErrors[_0x117336(0x171)]('Dataset\x20'+_0x4b90c2+_0x117336(0x148));return{'datasetCode':_0x4b90c2,'dblinkId':_0x50ddff,'table':_0x5a3009};}export async function resolveCrossRelationQuery(_0xc08a81){const _0x418414=a72_0x2bae,_0x584ed9=_0xc08a81[_0x418414(0x174)]('from-datasetcode')['trim'](),_0x3c9d6f=explicitDblink(_0xc08a81),_0xf6a033=_0x584ed9?await resolveEndpoint(_0x584ed9):undefined;if(_0xf6a033&&_0x3c9d6f!==undefined&&_0xf6a033[_0x418414(0x161)]!==_0x3c9d6f)throw CliErrors['validation'](_0x418414(0x169));const _0x51e5cf=_0xf6a033?.[_0x418414(0x161)]??_0x3c9d6f;if(_0x51e5cf===undefined)throw CliErrors[_0x418414(0x171)](_0x418414(0x164));return{'appCode':_0xc08a81[_0x418414(0x14f)],'fromDblinkId':_0x51e5cf,..._0x584ed9?{'fromDatasetCode':_0x584ed9}:{},..._0xc08a81[_0x418414(0x174)]('from-column')[_0x418414(0x16c)]()?{'fromField':_0xc08a81[_0x418414(0x174)]('from-column')[_0x418414(0x16c)]()}:{}};}export function projectCrossRelation(_0xc2af20){const _0x37526c=a72_0x2bae;return{'relationId':_0xc2af20['relationId'],'from':{'source':_0x37526c(0x140),'datasetCode':_0xc2af20[_0x37526c(0x151)],'datasetName':_0xc2af20[_0x37526c(0x182)],'dblinkId':_0xc2af20[_0x37526c(0x137)],'table':_0xc2af20[_0x37526c(0x144)],'field':_0xc2af20['fromField']},'to':{'source':_0x37526c(0x140),'datasetCode':_0xc2af20['toDatasetCode'],'datasetName':_0xc2af20[_0x37526c(0x156)],'dblinkId':_0xc2af20['toDblinkId'],'table':_0xc2af20['toTableName'],'field':_0xc2af20[_0x37526c(0x16a)],'labelField':_0xc2af20[_0x37526c(0x181)]},'relation':{'cardinality':_0xc2af20[_0x37526c(0x13a)],'relationType':_0xc2af20['relationType']}};}function ambiguity(_0x18a63c){const _0x1eba19=a72_0x2bae,_0x15dc02=CliErrors[_0x1eba19(0x171)]('Multiple\x20cross-database\x20relations\x20match\x20this\x20source\x20field;\x20update/delete\x20cannot\x20select\x20one\x20target.',_0x1eba19(0x16e));return Object[_0x1eba19(0x135)](_0x15dc02,_0x1eba19(0x173),{'value':{'candidates':_0x18a63c[_0x1eba19(0x142)](projectCrossRelation)}}),_0x15dc02;}const sameName=(_0xcbc7,_0x1e53ea)=>_0xcbc7[a72_0x4287da(0x153)]()===_0x1e53ea[a72_0x4287da(0x153)]();function matchesEndpoint(_0x5c8433,_0x28698e,_0x43f38d,_0x2f4df2,_0x244913){const _0x44c1ca=a72_0x4287da;return _0x5c8433['fromDblinkId']===_0x28698e['dblinkId']&&sameName(_0x5c8433['fromTableName'],_0x28698e[_0x44c1ca(0x13c)])&&sameName(_0x5c8433['fromField'],_0x43f38d)&&_0x5c8433['toDblinkId']===_0x2f4df2[_0x44c1ca(0x161)]&&sameName(_0x5c8433['toTableName'],_0x2f4df2[_0x44c1ca(0x13c)])&&sameName(_0x5c8433[_0x44c1ca(0x16a)],_0x244913);}export async function prepareCrossRelation(_0x1fca82,_0x5d0d27){const _0x31ee8f=a72_0x4287da,_0x14ec5b=await resolveEndpoint(required(_0x1fca82,_0x31ee8f(0x147))),_0x2167ca=explicitDblink(_0x1fca82);if(_0x2167ca!==undefined&&_0x14ec5b['dblinkId']!==_0x2167ca)throw CliErrors[_0x31ee8f(0x171)](_0x31ee8f(0x169));const _0x1bf3ad={'appCode':_0x1fca82[_0x31ee8f(0x14f)],'fromDatasetCode':_0x14ec5b[_0x31ee8f(0x16b)],'fromField':required(_0x1fca82,'from-column'),..._0x2167ca!==undefined?{'fromDblinkId':_0x2167ca}:{}},_0x5afc81={'appCode':_0x1fca82[_0x31ee8f(0x14f)],'fromDblinkId':_0x14ec5b[_0x31ee8f(0x161)],'fromDatasetCode':_0x14ec5b['datasetCode'],'fromField':_0x1bf3ad[_0x31ee8f(0x139)]},_0x2a8f2d=await queryCrossDbRelations(_0x5afc81);let _0xb422ba=null;if(_0x5d0d27!==_0x31ee8f(0x15f)){if(_0x2a8f2d[_0x31ee8f(0x149)]>0x1)throw ambiguity(_0x2a8f2d);_0xb422ba=_0x2a8f2d[0x0]??null;if(!_0xb422ba)throw CliErrors[_0x31ee8f(0x171)](_0x31ee8f(0x150));}if(_0x5d0d27==='delete')return{'operation':_0x5d0d27,'from':_0x14ec5b,'query':_0x5afc81,'body':_0x1bf3ad,'before':_0xb422ba};const _0x3279d1=await resolveEndpoint(required(_0x1fca82,_0x31ee8f(0x16d)));if(_0x14ec5b[_0x31ee8f(0x161)]===_0x3279d1[_0x31ee8f(0x161)])throw CliErrors[_0x31ee8f(0x171)]('Cross-database\x20relations\x20require\x20different\x20source\x20and\x20target\x20database\x20connections.');const _0x13bb40=_0x1fca82[_0x31ee8f(0x174)]('to-label-column')['trim'](),_0x21f9a5=_0x1fca82[_0x31ee8f(0x174)](_0x31ee8f(0x13a))[_0x31ee8f(0x16c)](),_0x33a285={..._0x1bf3ad,'toDatasetCode':_0x3279d1[_0x31ee8f(0x16b)],'toField':required(_0x1fca82,'to-column'),..._0x13bb40?{'refTableLabelName':_0x13bb40}:{},..._0x21f9a5?{'cardinality':_0x21f9a5}:{}};if(_0x2a8f2d[_0x31ee8f(0x13b)](_0x9c181d=>_0x9c181d[_0x31ee8f(0x160)]!==_0xb422ba?.[_0x31ee8f(0x160)]&&matchesEndpoint(_0x9c181d,_0x14ec5b,_0x33a285['fromField'],_0x3279d1,_0x33a285[_0x31ee8f(0x16a)])))throw CliErrors[_0x31ee8f(0x171)]('Cross-database\x20relation\x20already\x20exists\x20for\x20these\x20source\x20and\x20target\x20endpoints.');return{'operation':_0x5d0d27,'from':_0x14ec5b,'to':_0x3279d1,'query':_0x5afc81,'body':_0x33a285,'before':_0xb422ba,'expectedLabel':_0x13bb40||_0xb422ba?.[_0x31ee8f(0x181)]||_0x33a285[_0x31ee8f(0x16a)],'expectedCardinality':_0x21f9a5||_0xb422ba?.[_0x31ee8f(0x13a)]||null};}function mutationData(_0x43962f,_0x322482,_0x327bc0){const _0x5d9e22=a72_0x4287da,{operation:_0x5c3d74,body:_0x5715ae,before:_0x42494b}=_0x43962f;return{'operation':_0x5c3d74,'selector':{'appCode':_0x5715ae[_0x5d9e22(0x14f)],'from':{'datasetCode':_0x5715ae[_0x5d9e22(0x151)],'field':_0x5715ae['fromField'],'dblinkId':_0x43962f['from'][_0x5d9e22(0x161)]}},'before':_0x42494b?projectCrossRelation(_0x42494b):null,'after':_0x327bc0,'dryRun':_0x322482,'backend':{'method':'POST','path':CROSS_DB_RELATION_PATHS[_0x5c3d74]},'warnings':_0x5c3d74===_0x5d9e22(0x158)&&!_0x5715ae['refTableLabelName']?[{'code':_0x5d9e22(0x14c),'message':_0x5d9e22(0x155)}]:[]};}function a72_0x2bae(_0x36720e,_0x446f7c){_0x36720e=_0x36720e-0x134;const _0x2b7229=a72_0x2b72();let _0x2baef2=_0x2b7229[_0x36720e];return _0x2baef2;}export async function previewCrossRelation(_0x2fb751,_0x671617){const _0x5ec29e=a72_0x4287da,_0x410583=await prepareCrossRelation(_0x2fb751,_0x671617),_0xc39ad7=_0x410583[_0x5ec29e(0x14b)],_0x5bfba3=_0x671617==='delete'?null:{..._0x410583[_0x5ec29e(0x184)]?{'relationId':_0x410583['before']['relationId']}:{},'from':{'datasetCode':_0x410583[_0x5ec29e(0x143)][_0x5ec29e(0x16b)],'dblinkId':_0x410583['from']['dblinkId'],'table':_0x410583[_0x5ec29e(0x143)]['table'],'field':_0xc39ad7[_0x5ec29e(0x139)]},'to':{'datasetCode':_0x410583['to']['datasetCode'],'dblinkId':_0x410583['to']['dblinkId'],'table':_0x410583['to'][_0x5ec29e(0x13c)],'field':_0xc39ad7[_0x5ec29e(0x16a)],'labelField':_0x410583['expectedLabel']},'relation':{'cardinality':_0x410583[_0x5ec29e(0x168)],'relationType':0x2}};return{...mutationData(_0x410583,!![],null),'after':_0x5bfba3,'method':'POST','url':CROSS_DB_RELATION_PATHS[_0x671617],'body':_0x410583[_0x5ec29e(0x14b)],'description':_0x5ec29e(0x138)+_0x671617+_0x5ec29e(0x13f)+_0xc39ad7[_0x5ec29e(0x151)]+'.'+_0xc39ad7[_0x5ec29e(0x139)]};}export async function executeCrossRelation(_0x3d2f16,_0x250622,_0xb820e){const _0x2e6b22=a72_0x4287da,_0xeee67f=await prepareCrossRelation(_0x3d2f16,_0x250622);try{await _0xb820e(_0xeee67f[_0x2e6b22(0x14b)]);}catch(_0x45f03e){if(_0x45f03e instanceof CliError&&_0x45f03e[_0x2e6b22(0x152)][_0x2e6b22(0x165)](_0x2e6b22(0x183))){const _0x2910fe=await queryCrossDbRelations(_0xeee67f[_0x2e6b22(0x172)])[_0x2e6b22(0x185)](()=>[]);throw ambiguity(_0x2910fe);}throw _0x45f03e;}let _0x18e5b2=[],_0x1da58e,_0x4599b8=![];try{_0x18e5b2=await queryCrossDbRelations(_0xeee67f['query']);if(_0x250622===_0x2e6b22(0x146))_0x4599b8=!_0x18e5b2[_0x2e6b22(0x13b)](_0x41a137=>_0x41a137[_0x2e6b22(0x160)]===_0xeee67f[_0x2e6b22(0x184)][_0x2e6b22(0x160)]);else{const _0x438b95=_0xeee67f['body'],_0x199677=_0x18e5b2[_0x2e6b22(0x145)](_0x5ab2e7=>matchesEndpoint(_0x5ab2e7,_0xeee67f[_0x2e6b22(0x143)],_0x438b95[_0x2e6b22(0x139)],_0xeee67f['to'],_0x438b95[_0x2e6b22(0x16a)])&&(_0x250622===_0x2e6b22(0x15f)||_0x5ab2e7[_0x2e6b22(0x160)]===_0xeee67f[_0x2e6b22(0x184)][_0x2e6b22(0x160)]));_0x1da58e=_0x199677[_0x2e6b22(0x149)]===0x1?_0x199677[0x0]:undefined,_0x4599b8=!!_0x1da58e&&_0x1da58e[_0x2e6b22(0x181)]===_0xeee67f[_0x2e6b22(0x14e)]&&_0x1da58e[_0x2e6b22(0x13a)]===_0xeee67f[_0x2e6b22(0x168)]&&_0x1da58e[_0x2e6b22(0x14a)]===0x2;}}catch{}const _0x1ee50c={...mutationData(_0xeee67f,![],_0x1da58e?projectCrossRelation(_0x1da58e):null),'verification':{'status':_0x4599b8?'matched':_0x2e6b22(0x13d),'verified':_0x4599b8}};if(!_0x4599b8){const _0x1ecf1d=CliErrors['apiError']('Cross-database\x20relation\x20'+_0x250622+'\x20write\x20was\x20not\x20verified.',_0x2e6b22(0x15d));Object['defineProperty'](_0x1ecf1d,'data',{'value':{..._0x1ee50c,'candidates':_0x18e5b2[_0x2e6b22(0x142)](projectCrossRelation)}});throw _0x1ecf1d;}return{'ok':!![],'data':_0x1ee50c,'message':_0x2e6b22(0x136)+_0x250622+_0x2e6b22(0x15b)};}
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 +1 @@
1
- function a73_0x36ed(){const _0xabac57=['Update\x20the\x20target\x20or\x20properties\x20of\x20the\x20single\x20cross-database\x20relation\x20matching\x20a\x20source\x20dataset\x20and\x20field','59888nFAbqL','cross-relation-update','1417605kGEHTY','2933259kWIYTx','4628336LcovhC','3497382LmImOa','3rWMVka','208944HLjCbw','2571630msucQg','write','update','dataset','108iXxupl'];a73_0x36ed=function(){return _0xabac57;};return a73_0x36ed();}const a73_0xa79d74=a73_0x12a5;(function(_0x28d17b,_0x2d2443){const _0x348f01=a73_0x12a5,_0x257b37=_0x28d17b();while(!![]){try{const _0x1769cf=parseInt(_0x348f01(0x6f))/0x1*(-parseInt(_0x348f01(0x70))/0x2)+-parseInt(_0x348f01(0x71))/0x3+parseInt(_0x348f01(0x6d))/0x4+-parseInt(_0x348f01(0x6b))/0x5+parseInt(_0x348f01(0x6e))/0x6+parseInt(_0x348f01(0x6c))/0x7+-parseInt(_0x348f01(0x77))/0x8*(parseInt(_0x348f01(0x75))/0x9);if(_0x1769cf===_0x2d2443)break;else _0x257b37['push'](_0x257b37['shift']());}catch(_0x2263ec){_0x257b37['push'](_0x257b37['shift']());}}}(a73_0x36ed,0x9627f));import{updateCrossDbRelation}from'../../core/api-client.js';function a73_0x12a5(_0x37ae4a,_0x1e13c8){_0x37ae4a=_0x37ae4a-0x6b;const _0x36eda3=a73_0x36ed();let _0x12a5e6=_0x36eda3[_0x37ae4a];return _0x12a5e6;}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_0xa79d74(0x74),'command':a73_0xa79d74(0x78),'description':a73_0xa79d74(0x76),'risk':a73_0xa79d74(0x72),'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 _0x3b9144=>validateCrossRelation(_0x3b9144,a73_0xa79d74(0x73)),'dryRun':_0x3167d8=>previewCrossRelation(_0x3167d8,'update'),'execute':_0x51e0fb=>executeCrossRelation(_0x51e0fb,a73_0xa79d74(0x73),updateCrossDbRelation)};
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)};