@lovrabet/rabetbase-cli 2.1.6 → 2.1.7-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (196) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/data/filter.js +1 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/delete.js +1 -0
  52. package/lib/commands/dataset/detail.js +1 -1
  53. package/lib/commands/dataset/index.js +1 -1
  54. package/lib/commands/dataset/link-create.js +1 -0
  55. package/lib/commands/dataset/link-delete.js +1 -0
  56. package/lib/commands/dataset/link-shared.js +1 -0
  57. package/lib/commands/dataset/link-update.js +1 -0
  58. package/lib/commands/dataset/links.js +1 -1
  59. package/lib/commands/dataset/list.js +1 -1
  60. package/lib/commands/dataset/operations.js +1 -1
  61. package/lib/commands/db/analyze-cancel.js +1 -1
  62. package/lib/commands/db/analyze-start.js +1 -1
  63. package/lib/commands/db/analyze-status.js +1 -1
  64. package/lib/commands/db/create.js +1 -1
  65. package/lib/commands/db/delete.js +1 -1
  66. package/lib/commands/db/detail.js +1 -1
  67. package/lib/commands/db/diff.js +1 -1
  68. package/lib/commands/db/index.js +1 -1
  69. package/lib/commands/db/list.js +1 -1
  70. package/lib/commands/db/shared.js +1 -1
  71. package/lib/commands/db/tables.js +1 -1
  72. package/lib/commands/db/test.js +1 -1
  73. package/lib/commands/db/update.js +1 -1
  74. package/lib/commands/doctor.js +1 -1
  75. package/lib/commands/init/index.js +1 -1
  76. package/lib/commands/issue/index.js +1 -0
  77. package/lib/commands/issue/report.js +1 -0
  78. package/lib/commands/logs/index.js +1 -1
  79. package/lib/commands/menu/index.js +1 -1
  80. package/lib/commands/menu/shared/compare-table.js +1 -1
  81. package/lib/commands/menu/shared/index.js +1 -1
  82. package/lib/commands/menu/shared/inquirer.js +1 -1
  83. package/lib/commands/menu/shared/local-pages.js +1 -1
  84. package/lib/commands/menu/shared/logic.js +1 -1
  85. package/lib/commands/menu/shared/service.js +1 -1
  86. package/lib/commands/menu/shared/sync-core.js +1 -1
  87. package/lib/commands/menu/shared/update-core.js +1 -1
  88. package/lib/commands/menu/shared/valid-url.js +1 -1
  89. package/lib/commands/menu/sync.js +1 -1
  90. package/lib/commands/menu/update.js +1 -1
  91. package/lib/commands/page/generate-start.js +1 -1
  92. package/lib/commands/page/generate-status.js +1 -1
  93. package/lib/commands/page/index.js +1 -1
  94. package/lib/commands/page/pull.js +1 -1
  95. package/lib/commands/page/push.js +1 -1
  96. package/lib/commands/page/shared.js +1 -1
  97. package/lib/commands/page/standard-page-status.js +1 -1
  98. package/lib/commands/page/sync.js +1 -1
  99. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  100. package/lib/commands/project/create/format-elapsed.js +1 -1
  101. package/lib/commands/project/create/main.js +1 -1
  102. package/lib/commands/project/create/non-interactive.js +1 -1
  103. package/lib/commands/project/create/project-template-path.js +1 -1
  104. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  105. package/lib/commands/project/create/use-format-code.js +1 -1
  106. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  107. package/lib/commands/project/index.js +1 -1
  108. package/lib/commands/project/init.js +1 -1
  109. package/lib/commands/project/upgrade.js +1 -1
  110. package/lib/commands/registry.js +1 -1
  111. package/lib/commands/run/index.js +1 -1
  112. package/lib/commands/schema.js +1 -1
  113. package/lib/commands/skill/index.js +1 -1
  114. package/lib/commands/sql/create.js +1 -1
  115. package/lib/commands/sql/delete.js +1 -1
  116. package/lib/commands/sql/detail.js +1 -1
  117. package/lib/commands/sql/exec.js +1 -1
  118. package/lib/commands/sql/index.js +1 -1
  119. package/lib/commands/sql/list.js +1 -1
  120. package/lib/commands/sql/pull.js +1 -1
  121. package/lib/commands/sql/push.js +1 -1
  122. package/lib/commands/sql/save.js +1 -1
  123. package/lib/commands/sql/shared.js +1 -1
  124. package/lib/commands/sql/status.js +1 -1
  125. package/lib/commands/sql/validate.js +1 -1
  126. package/lib/config/schema.js +1 -1
  127. package/lib/constant/cdn.js +1 -1
  128. package/lib/constant/cli.js +1 -1
  129. package/lib/constant/defaults.js +1 -1
  130. package/lib/constant/domain.js +1 -1
  131. package/lib/constant/env.js +1 -1
  132. package/lib/constant/output.js +1 -1
  133. package/lib/constant/paths.js +1 -1
  134. package/lib/constant/risk.js +1 -1
  135. package/lib/context.js +1 -1
  136. package/lib/core/alias-resolver.js +1 -1
  137. package/lib/core/api-client.js +1 -1
  138. package/lib/core/bff/config.js +1 -1
  139. package/lib/core/bff/file-system.js +1 -1
  140. package/lib/core/bff/hash.js +1 -1
  141. package/lib/core/bff/lock.js +1 -1
  142. package/lib/core/bff/utils.js +1 -1
  143. package/lib/core/db-resolver.js +1 -1
  144. package/lib/core/page/file-system.js +1 -1
  145. package/lib/core/page/hash.js +1 -1
  146. package/lib/core/page/lock.js +1 -1
  147. package/lib/core/sql-sync/config.js +1 -1
  148. package/lib/core/sql-sync/file-system.js +1 -1
  149. package/lib/core/sql-sync/hash.js +1 -1
  150. package/lib/core/sql-sync/lock.js +1 -1
  151. package/lib/core/sql-sync/utils.js +1 -1
  152. package/lib/core/sql-validator.js +1 -1
  153. package/lib/errors.js +1 -1
  154. package/lib/framework/build-all-flags.js +1 -1
  155. package/lib/framework/flags.js +1 -1
  156. package/lib/framework/help.js +1 -1
  157. package/lib/framework/index.js +1 -1
  158. package/lib/framework/output.js +1 -1
  159. package/lib/framework/response.js +1 -1
  160. package/lib/framework/runner-alias.js +1 -1
  161. package/lib/framework/runner.js +1 -1
  162. package/lib/framework/schema-export.js +1 -1
  163. package/lib/framework/types.js +1 -1
  164. package/lib/generated/build-info.js +1 -1
  165. package/lib/help.js +1 -1
  166. package/lib/skills/main.js +1 -1
  167. package/lib/skills/npx-skills-add.js +1 -1
  168. package/lib/telemetry/cli-command-trace.js +1 -1
  169. package/lib/telemetry/cli-help-trace.js +1 -1
  170. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  171. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  172. package/lib/telemetry/send-cli-trace-log.js +1 -1
  173. package/lib/telemetry/send-platform-issue-collect-log.js +1 -0
  174. package/lib/utils/ai_config.js +1 -1
  175. package/lib/utils/apply-jq-filter.js +1 -1
  176. package/lib/utils/cdn-config.js +1 -1
  177. package/lib/utils/check-sdk-version.js +1 -1
  178. package/lib/utils/cli-version-check.js +1 -1
  179. package/lib/utils/cli-version-policy.js +1 -1
  180. package/lib/utils/config.js +1 -1
  181. package/lib/utils/copy-directory.js +1 -1
  182. package/lib/utils/entity-with-id.js +1 -1
  183. package/lib/utils/file-utils.js +1 -1
  184. package/lib/utils/guides-cdn.js +1 -1
  185. package/lib/utils/http-client.js +1 -1
  186. package/lib/utils/is-non-interactive.js +1 -1
  187. package/lib/utils/logger.js +1 -1
  188. package/lib/utils/params.js +1 -1
  189. package/lib/utils/platform.js +1 -1
  190. package/lib/utils/rules-cdn.js +1 -1
  191. package/lib/utils/sleep.js +1 -1
  192. package/lib/utils/template-replacer.js +1 -1
  193. package/lib/utils/version.js +1 -1
  194. package/lib/utils/with-active-cookie.js +1 -1
  195. package/lib/utils/write-cli-side-channel.js +1 -1
  196. package/package.json +2 -1
@@ -1 +1 @@
1
- const a34_0x5a5a80=a34_0x1c1d;(function(_0x1dfbe1,_0x568c99){const _0x239e29=a34_0x1c1d,_0x1f30fa=_0x1dfbe1();while(!![]){try{const _0x51e7fa=parseInt(_0x239e29(0x16d))/0x1*(parseInt(_0x239e29(0x143))/0x2)+parseInt(_0x239e29(0x14c))/0x3*(parseInt(_0x239e29(0x16e))/0x4)+parseInt(_0x239e29(0x151))/0x5*(-parseInt(_0x239e29(0x160))/0x6)+parseInt(_0x239e29(0x147))/0x7*(parseInt(_0x239e29(0x149))/0x8)+-parseInt(_0x239e29(0x14a))/0x9*(parseInt(_0x239e29(0x16f))/0xa)+parseInt(_0x239e29(0x141))/0xb*(parseInt(_0x239e29(0x13b))/0xc)+-parseInt(_0x239e29(0x164))/0xd*(parseInt(_0x239e29(0x150))/0xe);if(_0x51e7fa===_0x568c99)break;else _0x1f30fa['push'](_0x1f30fa['shift']());}catch(_0x3ca7fd){_0x1f30fa['push'](_0x1f30fa['shift']());}}}(a34_0x431f,0x5aa8b));import a34_0x370efb from'chalk';import a34_0x5c404e from'ora';import a34_0x25cdb5 from'semver';function a34_0x1c1d(_0x387e76,_0x4b11b7){_0x387e76=_0x387e76-0x13b;const _0x431f2e=a34_0x431f();let _0x1c1d5b=_0x431f2e[_0x387e76];return _0x1c1d5b;}import{execa}from'execa';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getCdnConfig}from'../utils/cdn-config.js';import{resolveNpmBin}from'../utils/platform.js';function getCurrentVersion(){const _0x68e6f8=a34_0x1c1d;return GIT_COMMIT!==_0x68e6f8(0x16c)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x68e6f8(0x144)](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x389e5e=a34_0x1c1d,_0x2440cb=process[_0x389e5e(0x156)][_0x389e5e(0x13d)]();if(_0x2440cb[_0x389e5e(0x142)](_0x389e5e(0x16a)))return'bun';return'npm';}async function fetchLatestNpmVersion(){const _0x24dec2=a34_0x1c1d;try{const _0x5a6af3=await fetch(_0x24dec2(0x13c)+NPM_PACKAGE_NAME+_0x24dec2(0x16b),{'signal':AbortSignal[_0x24dec2(0x14b)](0x2710)});if(!_0x5a6af3['ok'])return null;const _0x461bfa=await _0x5a6af3[_0x24dec2(0x168)]();return _0x461bfa[_0x24dec2(0x15f)]??null;}catch{return null;}}async function fetchLatestVersion(){const _0x5cc468=a34_0x1c1d,_0x1435fb=await fetchLatestNpmVersion();if(_0x1435fb)return _0x1435fb;const _0x1e2811=await getCdnConfig();return _0x1e2811?.[_0x5cc468(0x145)]?.[_0x5cc468(0x140)]??null;}async function execute(_0x19e7a2){const _0x4befbc=a34_0x1c1d,_0x1af424=getCurrentVersion();console[_0x4befbc(0x158)](_0x4befbc(0x152)+_0x1af424);const _0x389b92=a34_0x5c404e(_0x4befbc(0x167))['start'](),_0x5151ec=await fetchLatestVersion();if(!_0x5151ec)return _0x389b92[_0x4befbc(0x15d)]('Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)'),console[_0x4befbc(0x158)](a34_0x370efb['gray'](_0x4befbc(0x154)+NPM_PACKAGE_NAME+_0x4befbc(0x15e))),{'ok':![],'message':'Unable\x20to\x20check\x20for\x20updates'};const _0x263295=a34_0x25cdb5[_0x4befbc(0x153)](_0x1af424),_0x137caf=a34_0x25cdb5[_0x4befbc(0x153)](_0x5151ec);if(!_0x263295||!_0x137caf)return _0x389b92[_0x4befbc(0x15d)](_0x4befbc(0x169)),{'ok':![],'message':'Version\x20comparison\x20failed'};if(!a34_0x25cdb5['lt'](_0x263295,_0x137caf))return _0x389b92['succeed'](_0x4befbc(0x14e)+_0x5151ec+')'),{'ok':!![]};_0x389b92[_0x4befbc(0x15a)](_0x4befbc(0x161)+a34_0x370efb[_0x4befbc(0x148)](_0x1af424)+_0x4befbc(0x157)+a34_0x370efb[_0x4befbc(0x146)](_0x5151ec));const _0xea1ce5=detectPackageManager(),_0x2fa36b=_0xea1ce5===_0x4befbc(0x13f)?resolveNpmBin('npm'):_0xea1ce5,_0x451087=a34_0x5c404e('Updating\x20via\x20'+_0xea1ce5+'...')[_0x4befbc(0x166)]();try{return await execa(_0x2fa36b,['install','-g',NPM_PACKAGE_NAME+'@'+_0x5151ec],{'stdio':'pipe'}),_0x451087[_0x4befbc(0x155)](_0x4befbc(0x165)+_0x5151ec),console[_0x4befbc(0x158)](a34_0x370efb[_0x4befbc(0x14d)]('\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.')),{'ok':!![]};}catch(_0xa12b19){return _0x451087['fail'](_0x4befbc(0x14f)),console['error'](a34_0x370efb[_0x4befbc(0x163)]('\x20\x20'+_0xa12b19[_0x4befbc(0x15c)])),console[_0x4befbc(0x158)](a34_0x370efb[_0x4befbc(0x14d)](_0x4befbc(0x13e)+_0xea1ce5+'\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x5151ec)),{'ok':![],'message':_0xa12b19[_0x4befbc(0x15c)]};}}export const updateDefinition={'service':a34_0x5a5a80(0x159),'command':a34_0x5a5a80(0x15b),'description':'Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','risk':a34_0x5a5a80(0x162),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};function a34_0x431f(){const _0x1da13d=['\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','succeed','execPath','\x20→\x20','log','update','info','run','message','fail','@latest','version','1033716oFAgOG','Update\x20available:\x20','write','red','13LkVoPU','Updated\x20to\x20v','start','Checking\x20for\x20updates...','json','Version\x20comparison\x20failed','bun','/latest','unknown','61547lIgUdC','1778136IWkEPn','259290zmTARU','2285484jGVEoT','https://registry.npmjs.org/','toLowerCase','\x20\x20Try\x20manually:\x20','npm','stableVersion','11xxIFkT','includes','4lQqNBn','slice','cli','green','1157261oGCJzK','yellow','32uiEAqs','171HZtWPU','timeout','3FmBKMg','gray','Already\x20up\x20to\x20date\x20(v','Update\x20failed','5363414AVhwaf','5PgTecB','Current\x20version:\x20','coerce'];a34_0x431f=function(){return _0x1da13d;};return a34_0x431f();}
1
+ const a34_0x4ee59d=a34_0x5b83;(function(_0x4902dc,_0x36ec41){const _0x4a2de1=a34_0x5b83,_0x15e1fc=_0x4902dc();while(!![]){try{const _0x43c170=-parseInt(_0x4a2de1(0x1a8))/0x1*(parseInt(_0x4a2de1(0x1a9))/0x2)+-parseInt(_0x4a2de1(0x1ba))/0x3*(parseInt(_0x4a2de1(0x1bc))/0x4)+parseInt(_0x4a2de1(0x1aa))/0x5+parseInt(_0x4a2de1(0x1dd))/0x6+-parseInt(_0x4a2de1(0x1e1))/0x7*(parseInt(_0x4a2de1(0x1e8))/0x8)+parseInt(_0x4a2de1(0x1b5))/0x9+parseInt(_0x4a2de1(0x1ec))/0xa;if(_0x43c170===_0x36ec41)break;else _0x15e1fc['push'](_0x15e1fc['shift']());}catch(_0x3cccc9){_0x15e1fc['push'](_0x15e1fc['shift']());}}}(a34_0x9a13,0x41983));import a34_0x1c25ae from'chalk';import a34_0x42f482 from'ora';import a34_0x4bbfd1 from'semver';import{execa}from'execa';function a34_0x5b83(_0x2a4454,_0x3b7b82){_0x2a4454=_0x2a4454-0x1a0;const _0x9a13f=a34_0x9a13();let _0x5b83de=_0x9a13f[_0x2a4454];return _0x5b83de;}import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a34_0x9a13(){const _0x47b82e=['gray','run','Skipping\x20official\x20skill\x20package\x20(--no-skills).','\x20install\x20-g\x20','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','update','boolean','object','str','Already\x20up\x20to\x20date\x20(v','cli','835860nKmJwN','fromEntries','length','includes','9667NfePXR','install','\x20\x20Run\x20manually:\x20','\x20\x20Try\x20manually:\x20','Version\x20comparison\x20failed','version','trim','1720ZSouXb','start','toLowerCase','\x20→\x20','5875530PDeIRL','source','Install\x20a\x20specific\x20CLI\x20version','bool','nonInteractive','Unable\x20to\x20resolve\x20beta\x20version\x20from\x20npm','json','Already\x20on\x20requested\x20version\x20(v','fail','string','Invalid\x20version:\x20','\x20\x20Official\x20skill\x20update\x20failed:\x20','Updated\x20to\x20v','filter','unknown','4xOsBCT','160882epUgHQ','1221060XPdGgR','bun','valid','no-skills','Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','green','@latest','Checking\x20for\x20updates...','...','entries','Skip\x20official\x20skill\x20package\x20refresh\x20after\x20updating','1544733twUuvF','log','beta','cwd','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','6SxisGx','Update\x20available:\x20','510716HwejaB','Current\x20version:\x20','\x20\x20Skipped\x20skill\x20install\x20(RABETBASE_SKIP_NPX_SKILLS=1).','skipped','warn','info','https://registry.npmjs.org/-/package/','Updating\x20via\x20','validation','stableVersion','pipe','\x20\x20Official\x20skill\x20package\x20is\x20up\x20to\x20date.','execPath','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','red','succeed','Requested\x20version:\x20','Beta\x20version:\x20','/dist-tags','error','message','latest'];a34_0x9a13=function(){return _0x47b82e;};return a34_0x9a13();}import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{CliErrors}from'../errors.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE,RABETBASE_SKILL_SOURCE,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{getCdnConfig}from'../utils/cdn-config.js';import{resolveNpmBin}from'../utils/platform.js';function getCurrentVersion(){const _0x471b21=a34_0x5b83;return GIT_COMMIT!==_0x471b21(0x1a7)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x58b284=a34_0x5b83,_0x45a3d8=process[_0x58b284(0x1c8)][_0x58b284(0x1ea)]();if(_0x45a3d8[_0x58b284(0x1e0)](_0x58b284(0x1ab)))return'bun';return'npm';}const updateFlags=[{'name':a34_0x4ee59d(0x1b7),'type':'boolean','description':a34_0x4ee59d(0x1b9),'default':![]},{'name':'version','type':'string','description':a34_0x4ee59d(0x1ee)},{'name':'no-skills','type':a34_0x4ee59d(0x1d8),'description':a34_0x4ee59d(0x1b4),'default':![]}];function getRequestedVersion(_0x1d7e6f){const _0x401db5=a34_0x4ee59d;return _0x1d7e6f[_0x401db5(0x1da)]('version')['trim']();}async function validateUpdateFlags(_0x39dca4){const _0x12a1d4=a34_0x4ee59d,_0x5694f9=_0x39dca4[_0x12a1d4(0x1ef)](_0x12a1d4(0x1b7)),_0x1e331f=getRequestedVersion(_0x39dca4);if(_0x5694f9&&_0x1e331f)throw CliErrors[_0x12a1d4(0x1c4)]('--beta\x20and\x20--version\x20cannot\x20be\x20used\x20together.','Choose\x20either\x20npm\x20beta\x20dist-tag\x20or\x20an\x20exact\x20version.');if(_0x1e331f&&!a34_0x4bbfd1[_0x12a1d4(0x1ac)](_0x1e331f))throw CliErrors[_0x12a1d4(0x1c4)](_0x12a1d4(0x1a3)+_0x1e331f,'Use\x20a\x20full\x20semver\x20such\x20as\x202.1.6\x20or\x202.1.6-beta.1.');}async function fetchNpmDistTags(){const _0x10a7f3=a34_0x4ee59d;try{const _0x2866cb=await fetch(_0x10a7f3(0x1c2)+encodeURIComponent(NPM_PACKAGE_NAME)+_0x10a7f3(0x1ce),{'signal':AbortSignal['timeout'](0x2710)});if(!_0x2866cb['ok'])return null;const _0x9106fc=await _0x2866cb[_0x10a7f3(0x1f2)]();if(!_0x9106fc||typeof _0x9106fc!==_0x10a7f3(0x1d9))return null;return Object[_0x10a7f3(0x1de)](Object[_0x10a7f3(0x1b3)](_0x9106fc)[_0x10a7f3(0x1a6)](([,_0x2f5ba2])=>typeof _0x2f5ba2===_0x10a7f3(0x1a2)&&_0x2f5ba2['trim']()[_0x10a7f3(0x1df)]>0x0)['map'](([_0x714e67,_0x383f48])=>[_0x714e67,String(_0x383f48)[_0x10a7f3(0x1e7)]()]));}catch{return null;}}async function fetchNpmDistTagVersion(_0x2f9773){const _0x5038d0=await fetchNpmDistTags();return _0x5038d0?.[_0x2f9773]??null;}async function fetchLatestVersion(){const _0x39fb31=a34_0x4ee59d,_0x427a1b=await fetchNpmDistTagVersion(_0x39fb31(0x1d1));if(_0x427a1b)return _0x427a1b;const _0x1a3f1c=await getCdnConfig();return _0x1a3f1c?.[_0x39fb31(0x1dc)]?.[_0x39fb31(0x1c5)]??null;}async function resolveTargetVersion(_0x1a1fcd){const _0x2f2786=a34_0x4ee59d,_0x33b001=getRequestedVersion(_0x1a1fcd);if(_0x33b001)return{'version':_0x33b001,'source':_0x2f2786(0x1e6)};if(_0x1a1fcd[_0x2f2786(0x1ef)](_0x2f2786(0x1b7))){const _0x4edac3=await fetchNpmDistTagVersion('beta');if(!_0x4edac3)return null;return{'version':_0x4edac3,'source':_0x2f2786(0x1b7)};}const _0xf34bc2=await fetchLatestVersion();if(!_0xf34bc2)return null;return{'version':_0xf34bc2,'source':_0x2f2786(0x1d1)};}function shouldInstallTarget(_0x33c5b0,_0x4fd35a){const _0x5bf30c=a34_0x4ee59d;if(_0x4fd35a[_0x5bf30c(0x1ed)]==='version')return!a34_0x4bbfd1['eq'](_0x33c5b0,_0x4fd35a[_0x5bf30c(0x1e6)]);return a34_0x4bbfd1['lt'](_0x33c5b0,_0x4fd35a['version']);}function getInstallPlanLabel(_0x34ceb7,_0x2b2a79){const _0x860a66=a34_0x4ee59d;switch(_0x2b2a79[_0x860a66(0x1ed)]){case _0x860a66(0x1b7):return _0x860a66(0x1cd)+a34_0x1c25ae['yellow'](_0x34ceb7)+_0x860a66(0x1eb)+a34_0x1c25ae[_0x860a66(0x1af)](_0x2b2a79[_0x860a66(0x1e6)]);case'version':return _0x860a66(0x1cc)+a34_0x1c25ae['yellow'](_0x34ceb7)+_0x860a66(0x1eb)+a34_0x1c25ae[_0x860a66(0x1af)](_0x2b2a79[_0x860a66(0x1e6)]);case'latest':default:return _0x860a66(0x1bb)+a34_0x1c25ae['yellow'](_0x34ceb7)+_0x860a66(0x1eb)+a34_0x1c25ae[_0x860a66(0x1af)](_0x2b2a79[_0x860a66(0x1e6)]);}}async function installOfficialSkill(_0x446006){const _0x4c1e70=a34_0x4ee59d;console[_0x4c1e70(0x1b6)](a34_0x1c25ae['gray']('Checking\x20official\x20skill\x20package...'));const _0x5c060b=runNpxSkillsAddGlobal(process[_0x4c1e70(0x1b8)](),RABETBASE_SKILL_SOURCE,{'stdio':_0x446006?_0x4c1e70(0x1c6):'inherit'});if(_0x5c060b[_0x4c1e70(0x1bf)]){console[_0x4c1e70(0x1b6)](a34_0x1c25ae[_0x4c1e70(0x1d2)](_0x4c1e70(0x1be)));return;}if(_0x5c060b['ok']){console[_0x4c1e70(0x1b6)](a34_0x1c25ae[_0x4c1e70(0x1d2)](_0x4c1e70(0x1c7)));return;}console[_0x4c1e70(0x1c0)](a34_0x1c25ae['yellow'](_0x4c1e70(0x1a4)+(_0x5c060b[_0x4c1e70(0x1cf)]||_0x4c1e70(0x1a7)))),console['log'](a34_0x1c25ae[_0x4c1e70(0x1d2)](_0x4c1e70(0x1e3)+NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE));}async function execute(_0x2a7f6b){const _0x555e78=a34_0x4ee59d;await validateUpdateFlags(_0x2a7f6b);const _0x5cfa13=getCurrentVersion();console[_0x555e78(0x1b6)](_0x555e78(0x1bd)+_0x5cfa13);const _0x418c21=a34_0x42f482(_0x555e78(0x1b1))[_0x555e78(0x1e9)](),_0x2d7529=await resolveTargetVersion(_0x2a7f6b);if(!_0x2d7529){const _0x2f2429=_0x2a7f6b[_0x555e78(0x1ef)](_0x555e78(0x1b7))?_0x555e78(0x1f1):'Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)';return _0x418c21[_0x555e78(0x1a1)](_0x2f2429),console[_0x555e78(0x1b6)](a34_0x1c25ae[_0x555e78(0x1d2)](_0x555e78(0x1d6)+NPM_PACKAGE_NAME+_0x555e78(0x1b0))),{'ok':![],'message':_0x2f2429};}const _0x19a1a6=a34_0x4bbfd1[_0x555e78(0x1ac)](VERSION),_0x4b9ca7=a34_0x4bbfd1['valid'](_0x2d7529[_0x555e78(0x1e6)]);if(!_0x19a1a6||!_0x4b9ca7)return _0x418c21['fail'](_0x555e78(0x1e5)),{'ok':![],'message':_0x555e78(0x1e5)};if(!shouldInstallTarget(_0x19a1a6,_0x2d7529)){const _0x4371b8=_0x2d7529['source']===_0x555e78(0x1e6)?_0x555e78(0x1a0)+_0x2d7529[_0x555e78(0x1e6)]+')':_0x555e78(0x1db)+_0x2d7529[_0x555e78(0x1e6)]+')';return _0x418c21[_0x555e78(0x1cb)](_0x4371b8),!_0x2a7f6b[_0x555e78(0x1ef)](_0x555e78(0x1ad))?await installOfficialSkill(_0x2a7f6b[_0x555e78(0x1f0)]):console[_0x555e78(0x1b6)](a34_0x1c25ae['gray'](_0x555e78(0x1d4))),{'ok':!![]};}_0x418c21[_0x555e78(0x1c1)](getInstallPlanLabel(_0x5cfa13,_0x2d7529));const _0xc02cb4=detectPackageManager(),_0x46a0a8=_0xc02cb4==='npm'?resolveNpmBin('npm'):_0xc02cb4,_0x406d16=a34_0x42f482(_0x555e78(0x1c3)+_0xc02cb4+_0x555e78(0x1b2))[_0x555e78(0x1e9)]();try{return await execa(_0x46a0a8,[_0x555e78(0x1e2),'-g',NPM_PACKAGE_NAME+'@'+_0x2d7529[_0x555e78(0x1e6)]],{'stdio':_0x555e78(0x1c6)}),_0x406d16[_0x555e78(0x1cb)](_0x555e78(0x1a5)+_0x2d7529[_0x555e78(0x1e6)]),console[_0x555e78(0x1b6)](a34_0x1c25ae[_0x555e78(0x1d2)](_0x555e78(0x1c9))),!_0x2a7f6b[_0x555e78(0x1ef)](_0x555e78(0x1ad))?await installOfficialSkill(_0x2a7f6b[_0x555e78(0x1f0)]):console[_0x555e78(0x1b6)](a34_0x1c25ae[_0x555e78(0x1d2)]('Skipping\x20official\x20skill\x20package\x20(--no-skills).')),{'ok':!![]};}catch(_0x165e82){return _0x406d16[_0x555e78(0x1a1)]('Update\x20failed'),console[_0x555e78(0x1cf)](a34_0x1c25ae[_0x555e78(0x1ca)]('\x20\x20'+_0x165e82[_0x555e78(0x1d0)])),console[_0x555e78(0x1b6)](a34_0x1c25ae['gray'](_0x555e78(0x1e4)+_0xc02cb4+_0x555e78(0x1d5)+NPM_PACKAGE_NAME+'@'+_0x2d7529[_0x555e78(0x1e6)])),{'ok':![],'message':_0x165e82['message']};}}export const updateDefinition={'service':a34_0x4ee59d(0x1d7),'command':a34_0x4ee59d(0x1d3),'description':a34_0x4ee59d(0x1ae),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
@@ -1 +1 @@
1
- function a35_0x2232(_0x16d7a0,_0x2a76f6){_0x16d7a0=_0x16d7a0-0x169;const _0x21a582=a35_0x21a5();let _0x22321e=_0x21a582[_0x16d7a0];return _0x22321e;}function a35_0x21a5(){const _0x1cc31e=['2629563tnaaVG','4679050ICSxzz','1527509sZSYbX','6641984LCIieC','8KqlPji','27295541iYsoDH','879176SiDISK','5229642AjXhIJ'];a35_0x21a5=function(){return _0x1cc31e;};return a35_0x21a5();}(function(_0x40a7d9,_0x33b57a){const _0x2aa8d9=a35_0x2232,_0x5a0ede=_0x40a7d9();while(!![]){try{const _0x2ea888=-parseInt(_0x2aa8d9(0x16c))/0x1+-parseInt(_0x2aa8d9(0x170))/0x2+-parseInt(_0x2aa8d9(0x16a))/0x3+parseInt(_0x2aa8d9(0x16d))/0x4+-parseInt(_0x2aa8d9(0x16b))/0x5+-parseInt(_0x2aa8d9(0x169))/0x6+-parseInt(_0x2aa8d9(0x16f))/0x7*(-parseInt(_0x2aa8d9(0x16e))/0x8);if(_0x2ea888===_0x33b57a)break;else _0x5a0ede['push'](_0x5a0ede['shift']());}catch(_0x146ad1){_0x5a0ede['push'](_0x5a0ede['shift']());}}}(a35_0x21a5,0xdde18));import{codegenSdk}from'../../commands/codegen/sdk.js';import{codegenSql}from'../../commands/codegen/sql.js';export const codegenDefinitions=[codegenSdk,codegenSql];
1
+ (function(_0x4b672b,_0x34f9e6){const _0x3d4bb4=a35_0x5a8d,_0x619c62=_0x4b672b();while(!![]){try{const _0x582bce=parseInt(_0x3d4bb4(0xd0))/0x1+parseInt(_0x3d4bb4(0xd3))/0x2+parseInt(_0x3d4bb4(0xd4))/0x3*(parseInt(_0x3d4bb4(0xd6))/0x4)+-parseInt(_0x3d4bb4(0xd5))/0x5*(-parseInt(_0x3d4bb4(0xd2))/0x6)+parseInt(_0x3d4bb4(0xd1))/0x7+parseInt(_0x3d4bb4(0xd8))/0x8*(parseInt(_0x3d4bb4(0xcf))/0x9)+parseInt(_0x3d4bb4(0xd7))/0xa*(-parseInt(_0x3d4bb4(0xce))/0xb);if(_0x582bce===_0x34f9e6)break;else _0x619c62['push'](_0x619c62['shift']());}catch(_0x28aefc){_0x619c62['push'](_0x619c62['shift']());}}}(a35_0x2ea9,0xca300));function a35_0x2ea9(){const _0x22d30c=['140ORQlMJ','568tnNiEi','3126013VNrTre','107631HabXIg','504447CIiIQB','5779312UvbIcn','95052SXtsAF','3182832WAhtVp','8304VUyklG','265LLYvRt','284jRtNQH'];a35_0x2ea9=function(){return _0x22d30c;};return a35_0x2ea9();}import{codegenSdk}from'../../commands/codegen/sdk.js';import{codegenSql}from'../../commands/codegen/sql.js';function a35_0x5a8d(_0xe7ad27,_0x5996ae){_0xe7ad27=_0xe7ad27-0xce;const _0x2ea9ee=a35_0x2ea9();let _0x5a8d85=_0x2ea9ee[_0xe7ad27];return _0x5a8d85;}export const codegenDefinitions=[codegenSdk,codegenSql];
@@ -1 +1 @@
1
- const a36_0x5b43fc=a36_0xb8fd;(function(_0x50bf92,_0x30cec3){const _0x11bd3a=a36_0xb8fd,_0x1ff111=_0x50bf92();while(!![]){try{const _0x2f5be5=parseInt(_0x11bd3a(0x18f))/0x1+-parseInt(_0x11bd3a(0x185))/0x2+-parseInt(_0x11bd3a(0x186))/0x3*(parseInt(_0x11bd3a(0x18e))/0x4)+-parseInt(_0x11bd3a(0x182))/0x5*(parseInt(_0x11bd3a(0x18c))/0x6)+-parseInt(_0x11bd3a(0x187))/0x7+-parseInt(_0x11bd3a(0x18a))/0x8+parseInt(_0x11bd3a(0x184))/0x9*(parseInt(_0x11bd3a(0x191))/0xa);if(_0x2f5be5===_0x30cec3)break;else _0x1ff111['push'](_0x1ff111['shift']());}catch(_0x5cbe28){_0x1ff111['push'](_0x1ff111['shift']());}}}(a36_0x2369,0xd24da));function a36_0x2369(){const _0x58e0e9=['string','12FzThcF','1628223eOpKfg','codegen','2400ObeCmN','tableName','operation','skip-imports','alias','code','str','1146190jqkaKA','Omit\x20import\x20statements\x20from\x20generated\x20code','124182utClqC','1122512knStkx','236217yPNUKy','6503973bEbcTY','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','read','13312120TYJetT','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','18wmklsN'];a36_0x2369=function(){return _0x58e0e9;};return a36_0x2369();}function a36_0xb8fd(_0x4a069a,_0x5f67bb){_0x4a069a=_0x4a069a-0x17c;const _0x236906=a36_0x2369();let _0xb8fd04=_0x236906[_0x4a069a];return _0xb8fd04;}import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const codegenSdk={'service':a36_0x5b43fc(0x190),'command':'sdk','description':'Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','risk':a36_0x5b43fc(0x189),'flags':[CODE_FLAG_OPTIONAL,{'name':a36_0x5b43fc(0x17f),'type':'string','description':a36_0x5b43fc(0x18b)},{'name':a36_0x5b43fc(0x17d),'type':a36_0x5b43fc(0x18d),'required':!![],'description':a36_0x5b43fc(0x188)},{'name':'skip-imports','type':'boolean','description':a36_0x5b43fc(0x183)}],async 'execute'(_0x250b66){const _0x596a18=a36_0x5b43fc,{dataset:_0x53d61b,operation:_0xfd9557}=await getOperationDetail(_0x250b66['appCode'],_0x250b66['str'](_0x596a18(0x180)),_0x250b66[_0x596a18(0x181)](_0x596a18(0x17d))),_0x2fea54=generateSdkCode(_0x53d61b,_0xfd9557,{'includeImports':!_0x250b66['bool'](_0x596a18(0x17e))});return{'ok':!![],'data':{'dataset':{'name':_0x53d61b['name'],'code':_0x53d61b[_0x596a18(0x180)],'tableName':_0x53d61b[_0x596a18(0x17c)]},'operation':_0x250b66[_0x596a18(0x181)]('operation'),'code':_0x2fea54}};}};
1
+ const a36_0x499a31=a36_0x286c;(function(_0x79d635,_0x10b988){const _0x109a9b=a36_0x286c,_0x269400=_0x79d635();while(!![]){try{const _0x5f5ba6=parseInt(_0x109a9b(0x180))/0x1*(parseInt(_0x109a9b(0x16a))/0x2)+-parseInt(_0x109a9b(0x183))/0x3+parseInt(_0x109a9b(0x17e))/0x4*(parseInt(_0x109a9b(0x17b))/0x5)+-parseInt(_0x109a9b(0x176))/0x6+parseInt(_0x109a9b(0x177))/0x7*(parseInt(_0x109a9b(0x178))/0x8)+-parseInt(_0x109a9b(0x175))/0x9*(-parseInt(_0x109a9b(0x16e))/0xa)+parseInt(_0x109a9b(0x17c))/0xb*(-parseInt(_0x109a9b(0x16d))/0xc);if(_0x5f5ba6===_0x10b988)break;else _0x269400['push'](_0x269400['shift']());}catch(_0x4c0b22){_0x269400['push'](_0x269400['shift']());}}}(a36_0x59a5,0x3870f));function a36_0x286c(_0xcdaf82,_0x82bf56){_0xcdaf82=_0xcdaf82-0x16a;const _0x59a5e6=a36_0x59a5();let _0x286cd5=_0x59a5e6[_0xcdaf82];return _0x286cd5;}import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';function a36_0x59a5(){const _0x49c37a=['Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','boolean','1692FEsZat','6520mAgFaq','appCode','code','skip-imports','name','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','sdk','4023OOvzaB','1051884EIdmCL','7SMHaig','1921856bHpZkC','alias','Omit\x20import\x20statements\x20from\x20generated\x20code','24355Tjlten','23463ukPlwW','codegen','124UjnBOc','read','1odJPie','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','operation','857307dImfhh','str','620684XQiwiQ'];a36_0x59a5=function(){return _0x49c37a;};return a36_0x59a5();}import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const codegenSdk={'service':a36_0x499a31(0x17d),'command':a36_0x499a31(0x174),'description':a36_0x499a31(0x16b),'risk':a36_0x499a31(0x17f),'flags':[CODE_FLAG_OPTIONAL,{'name':a36_0x499a31(0x179),'type':'string','description':a36_0x499a31(0x173)},{'name':a36_0x499a31(0x182),'type':'string','required':!![],'description':a36_0x499a31(0x181)},{'name':a36_0x499a31(0x171),'type':a36_0x499a31(0x16c),'description':a36_0x499a31(0x17a)}],async 'execute'(_0x106757){const _0x5ce955=a36_0x499a31,{dataset:_0x2ce867,operation:_0x12d773}=await getOperationDetail(_0x106757[_0x5ce955(0x16f)],_0x106757[_0x5ce955(0x184)](_0x5ce955(0x170)),_0x106757[_0x5ce955(0x184)](_0x5ce955(0x182))),_0x2b565d=generateSdkCode(_0x2ce867,_0x12d773,{'includeImports':!_0x106757['bool'](_0x5ce955(0x171))});return{'ok':!![],'data':{'dataset':{'name':_0x2ce867[_0x5ce955(0x172)],'code':_0x2ce867['code'],'tableName':_0x2ce867['tableName']},'operation':_0x106757[_0x5ce955(0x184)](_0x5ce955(0x182)),'code':_0x2b565d}};}};
@@ -1 +1 @@
1
- const a37_0x6ece07=a37_0x47b2;(function(_0x818c00,_0x6f513b){const _0x3faa4f=a37_0x47b2,_0x5548e2=_0x818c00();while(!![]){try{const _0x3ea432=-parseInt(_0x3faa4f(0x149))/0x1+-parseInt(_0x3faa4f(0x154))/0x2*(parseInt(_0x3faa4f(0x140))/0x3)+parseInt(_0x3faa4f(0x14d))/0x4+parseInt(_0x3faa4f(0x146))/0x5+parseInt(_0x3faa4f(0x148))/0x6*(-parseInt(_0x3faa4f(0x150))/0x7)+-parseInt(_0x3faa4f(0x13f))/0x8+parseInt(_0x3faa4f(0x14b))/0x9;if(_0x3ea432===_0x6f513b)break;else _0x5548e2['push'](_0x5548e2['shift']());}catch(_0x24deac){_0x5548e2['push'](_0x5548e2['shift']());}}}(a37_0x4ade,0xc7688));function a37_0x4ade(){const _0x36dc4f=['bool','10531848rwWHfr','111wTKObf','sql','no-imports','str','read','boolean','4611245DVmfrN','target','8880MohhzA','87672wQLXcO','sdk','19452618MtHcbx','sqlName','1520284kPwoPt','codegen','sqlcode','4137sBsMta','bff','string','Omit\x20import\x20statements\x20from\x20generated\x20code','19898xyMyjQ'];a37_0x4ade=function(){return _0x36dc4f;};return a37_0x4ade();}import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';import{SQLCODE_FLAG}from'../../commands/common/flags.js';function a37_0x47b2(_0x21c7bf,_0x3610f1){_0x21c7bf=_0x21c7bf-0x13e;const _0x4ade35=a37_0x4ade();let _0x47b2f1=_0x4ade35[_0x21c7bf];return _0x47b2f1;}export const codegenSql={'service':a37_0x6ece07(0x14e),'command':a37_0x6ece07(0x141),'description':'Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','risk':a37_0x6ece07(0x144),'flags':[SQLCODE_FLAG,{'name':a37_0x6ece07(0x147),'type':a37_0x6ece07(0x152),'description':'Code\x20target:\x20sdk\x20(default)\x20or\x20bff','default':a37_0x6ece07(0x14a),'enum':['sdk',a37_0x6ece07(0x151)]},{'name':'no-imports','type':a37_0x6ece07(0x145),'description':a37_0x6ece07(0x153)}],async 'execute'(_0xc7a979){const _0xb561da=a37_0x6ece07,_0x1df48a=await getSqlQueryInfo(_0xc7a979['appCode'],_0xc7a979[_0xb561da(0x143)](_0xb561da(0x14f))),_0x128e21=_0xc7a979['str'](_0xb561da(0x147))||_0xb561da(0x14a),_0x8d3aa5=generateSqlCodeTemplate(_0x1df48a,{'target':_0x128e21,'includeImports':!_0xc7a979[_0xb561da(0x13e)](_0xb561da(0x142))});return{'ok':!![],'data':{'sqlCode':_0x1df48a['sqlCode'],'sqlName':_0x1df48a[_0xb561da(0x14c)],'target':_0x128e21,'code':_0x8d3aa5}};}};
1
+ const a37_0x1ab486=a37_0x405f;(function(_0x52f14e,_0x1d6a66){const _0x2090e9=a37_0x405f,_0x334f41=_0x52f14e();while(!![]){try{const _0x241ff5=parseInt(_0x2090e9(0xbb))/0x1+-parseInt(_0x2090e9(0xb5))/0x2+parseInt(_0x2090e9(0xa8))/0x3*(-parseInt(_0x2090e9(0xb3))/0x4)+parseInt(_0x2090e9(0xab))/0x5*(-parseInt(_0x2090e9(0xad))/0x6)+parseInt(_0x2090e9(0xb8))/0x7+-parseInt(_0x2090e9(0xac))/0x8*(parseInt(_0x2090e9(0xae))/0x9)+parseInt(_0x2090e9(0xa2))/0xa*(parseInt(_0x2090e9(0xa9))/0xb);if(_0x241ff5===_0x1d6a66)break;else _0x334f41['push'](_0x334f41['shift']());}catch(_0x4f22e7){_0x334f41['push'](_0x334f41['shift']());}}}(a37_0x1ac0,0x7a8a7));function a37_0x405f(_0x2ea3be,_0x1b12be){_0x2ea3be=_0x2ea3be-0xa2;const _0x1ac068=a37_0x1ac0();let _0x405f74=_0x1ac068[_0x2ea3be];return _0x405f74;}import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';function a37_0x1ac0(){const _0x230a7e=['read','15jRRzgk','272TXrRcw','222828fvJwtD','103725HVAbph','sdk','sqlCode','appCode','bff','4QbuXDK','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','302864OOMrRh','no-imports','sqlName','5521705EVXhyL','string','Omit\x20import\x20statements\x20from\x20generated\x20code','821098eTdUND','410ymCiAN','str','sqlcode','boolean','bool','Code\x20target:\x20sdk\x20(default)\x20or\x20bff','2231079vJgLPs','77913EiBvVu'];a37_0x1ac0=function(){return _0x230a7e;};return a37_0x1ac0();}import{SQLCODE_FLAG}from'../../commands/common/flags.js';export const codegenSql={'service':'codegen','command':'sql','description':a37_0x1ab486(0xb4),'risk':a37_0x1ab486(0xaa),'flags':[SQLCODE_FLAG,{'name':'target','type':a37_0x1ab486(0xb9),'description':a37_0x1ab486(0xa7),'default':a37_0x1ab486(0xaf),'enum':['sdk',a37_0x1ab486(0xb2)]},{'name':a37_0x1ab486(0xb6),'type':a37_0x1ab486(0xa5),'description':a37_0x1ab486(0xba)}],async 'execute'(_0x380342){const _0x451290=a37_0x1ab486,_0x19fead=await getSqlQueryInfo(_0x380342[_0x451290(0xb1)],_0x380342[_0x451290(0xa3)](_0x451290(0xa4))),_0x35c5e2=_0x380342[_0x451290(0xa3)]('target')||_0x451290(0xaf),_0x5ba947=generateSqlCodeTemplate(_0x19fead,{'target':_0x35c5e2,'includeImports':!_0x380342[_0x451290(0xa6)](_0x451290(0xb6))});return{'ok':!![],'data':{'sqlCode':_0x19fead[_0x451290(0xb0)],'sqlName':_0x19fead[_0x451290(0xb7)],'target':_0x35c5e2,'code':_0x5ba947}};}};
@@ -1 +1 @@
1
- (function(_0x108d97,_0x5a977d){const _0x296899=a38_0x4361,_0x485d73=_0x108d97();while(!![]){try{const _0x1c8397=-parseInt(_0x296899(0x14a))/0x1*(-parseInt(_0x296899(0x155))/0x2)+parseInt(_0x296899(0x156))/0x3*(parseInt(_0x296899(0x136))/0x4)+parseInt(_0x296899(0x140))/0x5*(parseInt(_0x296899(0x147))/0x6)+-parseInt(_0x296899(0x14e))/0x7+-parseInt(_0x296899(0x15b))/0x8*(parseInt(_0x296899(0x159))/0x9)+parseInt(_0x296899(0x153))/0xa+parseInt(_0x296899(0x135))/0xb*(parseInt(_0x296899(0x152))/0xc);if(_0x1c8397===_0x5a977d)break;else _0x485d73['push'](_0x485d73['shift']());}catch(_0x16ef15){_0x485d73['push'](_0x485d73['shift']());}}}(a38_0x14fb,0x2c768));import{input,checkbox,select}from'@inquirer/prompts';import a38_0x404c7d from'chalk';import{validateAppcode}from'../../commands/common/validate.js';function a38_0x14fb(){const _0x273e22=['yellow','854824SaDXBV','✎\x20自定义输入\x20appcode','请选择要绑定的应用:','88enwNoP','692blempi','trim','map','skip','length','(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)','正在获取可用应用列表...','App\x20Code:','(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)','appName','5jfZMUO','manual','\x0a无法获取远程应用列表,请手动输入。','valid','未找到可用应用。','custom','appCode','204726UPnJMZ','gray','获取到\x20','2PLQKnW','message','\x20\x20(','无法获取远程应用列表,请手动输入。','1948128ygicnC','Invalid\x20App\x20Code','includes','cyan','19956iANOTk','1332670NvdQGN','\x0a未找到可用应用。','307178nwVxpW','1377ZUpaaf','✎\x20手动输入','\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','9OFnfFK'];a38_0x14fb=function(){return _0x273e22;};return a38_0x14fb();}import{listRemoteApps}from'../../core/api-client.js';import{withActiveCookie}from'../../utils/with-active-cookie.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';export async function promptCustomAppcode(){const _0x507f5b=a38_0x4361,_0x2f470f=await input({'message':'请输入\x20App\x20Code:','validate':_0x58e666=>{const _0x1b7052=a38_0x4361,_0x12a9d8=validateAppcode(_0x58e666['trim']());return _0x12a9d8[_0x1b7052(0x143)]||_0x12a9d8['message']||_0x1b7052(0x14f);}});return _0x2f470f[_0x507f5b(0x137)]();}export async function promptAppSelection(_0x11a6e2){const _0x191b87=a38_0x4361,_0x177fac=[{'name':a38_0x404c7d[_0x191b87(0x15a)](_0x191b87(0x15c)),'value':-0x1},..._0x11a6e2[_0x191b87(0x138)]((_0x5849eb,_0x101e21)=>({'name':_0x5849eb[_0x191b87(0x13f)]+'\x20\x20'+a38_0x404c7d[_0x191b87(0x148)]('('+_0x5849eb['appCode']+')'),'value':_0x101e21}))],_0x329173=await checkbox({'message':_0x191b87(0x149)+a38_0x404c7d[_0x191b87(0x151)](_0x11a6e2[_0x191b87(0x13a)])+_0x191b87(0x158),'choices':_0x177fac,'loop':![]});if(_0x329173[_0x191b87(0x150)](-0x1))return _0x191b87(0x145);if(_0x329173[_0x191b87(0x13a)]===0x0)return _0x191b87(0x145);return _0x329173[_0x191b87(0x138)](_0x214b88=>_0x11a6e2[_0x214b88]);}export async function promptSingleAppSelection(_0x4d092d){const _0x23fa96=a38_0x4361,_0x2b5071=[{'name':a38_0x404c7d[_0x23fa96(0x148)](_0x23fa96(0x13b)),'value':'skip'},{'name':a38_0x404c7d[_0x23fa96(0x15a)](_0x23fa96(0x15c)),'value':_0x23fa96(0x145)},..._0x4d092d[_0x23fa96(0x138)](_0x13147a=>({'name':_0x13147a[_0x23fa96(0x13f)]+'\x20\x20'+a38_0x404c7d['gray']('('+_0x13147a[_0x23fa96(0x146)]+')'),'value':_0x13147a[_0x23fa96(0x146)]}))],_0x4f22cf=await select({'message':_0x23fa96(0x15d),'choices':_0x2b5071});if(_0x4f22cf==='skip')return _0x23fa96(0x139);if(_0x4f22cf===_0x23fa96(0x145))return'custom';return _0x4d092d['find'](_0x119d93=>_0x119d93[_0x23fa96(0x146)]===_0x4f22cf);}export async function selectSingleAppcode(_0x1c4186){const _0x2cae35=a38_0x4361;if(!_0x1c4186)return writeCliSideChannelLine(a38_0x404c7d[_0x2cae35(0x148)](_0x2cae35(0x13e))),_fallbackOrSkip();writeCliSideChannelLine(_0x2cae35(0x13c));let _0x3cedc3;try{_0x3cedc3=await withActiveCookie(_0x1c4186,()=>listRemoteApps());}catch(_0x35a7a0){writeCliSideChannelLine(a38_0x404c7d['yellow'](_0x2cae35(0x14d)));if(_0x35a7a0 instanceof Error)writeCliSideChannelLine(a38_0x404c7d['gray']('\x20\x20('+_0x35a7a0[_0x2cae35(0x14b)]+')'));return _fallbackOrSkip();}if(_0x3cedc3[_0x2cae35(0x13a)]===0x0)return writeCliSideChannelLine(a38_0x404c7d['yellow'](_0x2cae35(0x144))),_fallbackOrSkip();const _0x33bea2=await promptSingleAppSelection(_0x3cedc3);if(_0x33bea2===_0x2cae35(0x139))return'';if(_0x33bea2===_0x2cae35(0x145))return promptCustomAppcode();return _0x33bea2[_0x2cae35(0x146)];}function a38_0x4361(_0x41f30a,_0x338bcd){_0x41f30a=_0x41f30a-0x135;const _0x14fbfc=a38_0x14fb();let _0x436197=_0x14fbfc[_0x41f30a];return _0x436197;}export async function selectMultipleApps(_0x20705c){const _0x39cac7=a38_0x4361;writeCliSideChannelLine(_0x39cac7(0x13c));let _0x21aa72;try{_0x21aa72=await withActiveCookie(_0x20705c,()=>listRemoteApps());}catch(_0x3549e2){writeCliSideChannelLine(_0x39cac7(0x142));if(_0x3549e2 instanceof Error)writeCliSideChannelLine(_0x39cac7(0x14c)+_0x3549e2[_0x39cac7(0x14b)]+')');return _0x39cac7(0x145);}if(_0x21aa72[_0x39cac7(0x13a)]===0x0)return writeCliSideChannelLine(_0x39cac7(0x154)),_0x39cac7(0x145);return promptAppSelection(_0x21aa72);}async function _fallbackOrSkip(){const _0x44a0e2=a38_0x4361,_0x48ff27=await select({'message':_0x44a0e2(0x13d),'choices':[{'name':a38_0x404c7d[_0x44a0e2(0x148)]('(跳过,稍后配置)'),'value':_0x44a0e2(0x139)},{'name':a38_0x404c7d[_0x44a0e2(0x15a)](_0x44a0e2(0x157)),'value':_0x44a0e2(0x141)}]});if(_0x48ff27==='skip')return'';return promptCustomAppcode();}
1
+ (function(_0x170a9f,_0x3eca40){const _0x1496e7=a38_0x10ac,_0x4e8bfe=_0x170a9f();while(!![]){try{const _0x5b58bb=-parseInt(_0x1496e7(0x106))/0x1*(parseInt(_0x1496e7(0xf3))/0x2)+-parseInt(_0x1496e7(0x105))/0x3*(-parseInt(_0x1496e7(0x100))/0x4)+-parseInt(_0x1496e7(0x10b))/0x5+parseInt(_0x1496e7(0x108))/0x6*(-parseInt(_0x1496e7(0xed))/0x7)+parseInt(_0x1496e7(0xf0))/0x8+-parseInt(_0x1496e7(0xf9))/0x9*(-parseInt(_0x1496e7(0xff))/0xa)+-parseInt(_0x1496e7(0xeb))/0xb*(-parseInt(_0x1496e7(0x101))/0xc);if(_0x5b58bb===_0x3eca40)break;else _0x4e8bfe['push'](_0x4e8bfe['shift']());}catch(_0xc5454b){_0x4e8bfe['push'](_0x4e8bfe['shift']());}}}(a38_0x29ec,0x44cb0));import{input,checkbox,select}from'@inquirer/prompts';import a38_0x38cb17 from'chalk';import{validateAppcode}from'../../commands/common/validate.js';import{listRemoteApps}from'../../core/api-client.js';import{withActiveCookie}from'../../utils/with-active-cookie.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';function a38_0x29ec(){const _0x1844f8=['length','10vKZvSh','\x20\x20(','(跳过,稍后配置)','find','(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)','(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)','1503351gPKyjT','appCode','未找到可用应用。','skip','Invalid\x20App\x20Code','appName','20dYokIA','31952DhnrcC','51384XNKoZx','App\x20Code:','yellow','\x0a无法获取远程应用列表,请手动输入。','75YOnctA','47083ULXKPW','获取到\x20','6wmPRcy','请输入\x20App\x20Code:','无法获取远程应用列表,请手动输入。','2212700qlaguL','message','valid','✎\x20自定义输入\x20appcode','✎\x20手动输入','\x0a未找到可用应用。','gray','trim','1749VwFaUs','正在获取可用应用列表...','2224579ffFwNF','map','custom','503296UcBlJA','manual'];a38_0x29ec=function(){return _0x1844f8;};return a38_0x29ec();}export async function promptCustomAppcode(){const _0x266f1c=a38_0x10ac,_0x2666a9=await input({'message':_0x266f1c(0x109),'validate':_0xccb1da=>{const _0x50fff9=_0x266f1c,_0x5c14a7=validateAppcode(_0xccb1da[_0x50fff9(0xea)]());return _0x5c14a7[_0x50fff9(0x10d)]||_0x5c14a7[_0x50fff9(0x10c)]||_0x50fff9(0xfd);}});return _0x2666a9[_0x266f1c(0xea)]();}export async function promptAppSelection(_0x5ef27c){const _0x2553a3=a38_0x10ac,_0x42d503=[{'name':a38_0x38cb17[_0x2553a3(0x103)](_0x2553a3(0x10e)),'value':-0x1},..._0x5ef27c[_0x2553a3(0xee)]((_0x5b5814,_0x391000)=>({'name':_0x5b5814['appName']+'\x20\x20'+a38_0x38cb17[_0x2553a3(0xe9)]('('+_0x5b5814[_0x2553a3(0xfa)]+')'),'value':_0x391000}))],_0x2a012c=await checkbox({'message':_0x2553a3(0x107)+a38_0x38cb17['cyan'](_0x5ef27c[_0x2553a3(0xf2)])+'\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','choices':_0x42d503,'loop':![]});if(_0x2a012c['includes'](-0x1))return _0x2553a3(0xef);if(_0x2a012c['length']===0x0)return'custom';return _0x2a012c[_0x2553a3(0xee)](_0x5eccf0=>_0x5ef27c[_0x5eccf0]);}export async function promptSingleAppSelection(_0x273258){const _0x1c9ce5=a38_0x10ac,_0x114f23=[{'name':a38_0x38cb17[_0x1c9ce5(0xe9)](_0x1c9ce5(0xf8)),'value':_0x1c9ce5(0xfc)},{'name':a38_0x38cb17[_0x1c9ce5(0x103)](_0x1c9ce5(0x10e)),'value':_0x1c9ce5(0xef)},..._0x273258[_0x1c9ce5(0xee)](_0x3fb88e=>({'name':_0x3fb88e[_0x1c9ce5(0xfe)]+'\x20\x20'+a38_0x38cb17[_0x1c9ce5(0xe9)]('('+_0x3fb88e['appCode']+')'),'value':_0x3fb88e[_0x1c9ce5(0xfa)]}))],_0x40212b=await select({'message':'请选择要绑定的应用:','choices':_0x114f23});if(_0x40212b==='skip')return'skip';if(_0x40212b===_0x1c9ce5(0xef))return _0x1c9ce5(0xef);return _0x273258[_0x1c9ce5(0xf6)](_0x49439c=>_0x49439c['appCode']===_0x40212b);}function a38_0x10ac(_0x5377d6,_0x29063d){_0x5377d6=_0x5377d6-0xe9;const _0x29ec36=a38_0x29ec();let _0x10ac64=_0x29ec36[_0x5377d6];return _0x10ac64;}export async function selectSingleAppcode(_0x38792a){const _0x533389=a38_0x10ac;if(!_0x38792a)return writeCliSideChannelLine(a38_0x38cb17[_0x533389(0xe9)](_0x533389(0xf7))),_fallbackOrSkip();writeCliSideChannelLine(_0x533389(0xec));let _0x4ccd5b;try{_0x4ccd5b=await withActiveCookie(_0x38792a,()=>listRemoteApps());}catch(_0x174d6b){writeCliSideChannelLine(a38_0x38cb17[_0x533389(0x103)](_0x533389(0x10a)));if(_0x174d6b instanceof Error)writeCliSideChannelLine(a38_0x38cb17['gray'](_0x533389(0xf4)+_0x174d6b[_0x533389(0x10c)]+')'));return _fallbackOrSkip();}if(_0x4ccd5b[_0x533389(0xf2)]===0x0)return writeCliSideChannelLine(a38_0x38cb17[_0x533389(0x103)](_0x533389(0xfb))),_fallbackOrSkip();const _0x22b4b2=await promptSingleAppSelection(_0x4ccd5b);if(_0x22b4b2===_0x533389(0xfc))return'';if(_0x22b4b2===_0x533389(0xef))return promptCustomAppcode();return _0x22b4b2[_0x533389(0xfa)];}export async function selectMultipleApps(_0x495e1e){const _0x3d828b=a38_0x10ac;writeCliSideChannelLine(_0x3d828b(0xec));let _0x14db9c;try{_0x14db9c=await withActiveCookie(_0x495e1e,()=>listRemoteApps());}catch(_0x38a0b6){writeCliSideChannelLine(_0x3d828b(0x104));if(_0x38a0b6 instanceof Error)writeCliSideChannelLine(_0x3d828b(0xf4)+_0x38a0b6[_0x3d828b(0x10c)]+')');return _0x3d828b(0xef);}if(_0x14db9c[_0x3d828b(0xf2)]===0x0)return writeCliSideChannelLine(_0x3d828b(0x110)),_0x3d828b(0xef);return promptAppSelection(_0x14db9c);}async function _fallbackOrSkip(){const _0x494ab3=a38_0x10ac,_0x2fe21e=await select({'message':_0x494ab3(0x102),'choices':[{'name':a38_0x38cb17['gray'](_0x494ab3(0xf5)),'value':_0x494ab3(0xfc)},{'name':a38_0x38cb17[_0x494ab3(0x103)](_0x494ab3(0x10f)),'value':_0x494ab3(0xf1)}]});if(_0x2fe21e===_0x494ab3(0xfc))return'';return promptCustomAppcode();}
@@ -1 +1 @@
1
- const a39_0x4954b3=a39_0x4952;(function(_0x39fb97,_0x50b41b){const _0x377ee1=a39_0x4952,_0x148cf8=_0x39fb97();while(!![]){try{const _0x28fee6=parseInt(_0x377ee1(0x1b4))/0x1*(-parseInt(_0x377ee1(0x1c4))/0x2)+parseInt(_0x377ee1(0x1b8))/0x3+-parseInt(_0x377ee1(0x1c5))/0x4+-parseInt(_0x377ee1(0x1c6))/0x5+parseInt(_0x377ee1(0x1b9))/0x6*(-parseInt(_0x377ee1(0x1c2))/0x7)+-parseInt(_0x377ee1(0x1c8))/0x8*(-parseInt(_0x377ee1(0x1b7))/0x9)+parseInt(_0x377ee1(0x1bc))/0xa;if(_0x28fee6===_0x50b41b)break;else _0x148cf8['push'](_0x148cf8['shift']());}catch(_0x30843f){_0x148cf8['push'](_0x148cf8['shift']());}}}(a39_0x40ee,0xe35ae));export const DATASET_CODE_PATTERN={'regex':/^[a-f0-9]{32}$/i,'description':a39_0x4954b3(0x1b6)};export const CODE_FLAG={'name':a39_0x4954b3(0x1c1),'type':'string','required':!![],'description':a39_0x4954b3(0x1c3),'pattern':DATASET_CODE_PATTERN};export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const DATASETCODE_FLAG_OPTIONAL={...CODE_FLAG_OPTIONAL,'name':a39_0x4954b3(0x1bb),'description':'Dataset\x20code\x20(32-char\x20hex\x20UUID)'};function a39_0x40ee(){const _0x4905c9=['3043725TjwnxL','2209674bxwRPb','dbtype','datasetcode','44747390xHqEVj','string','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','code','35uNnXsw','Dataset\x20code\x20(32-char\x20hex\x20UUID)','2059684xlwgLQ','3259640lPUClP','7200675KUJqnp','sqlcode','16ZOhwPI','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','1AoLbsT','MYSQL','a\x2032-character\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588)','2556963EMCYPl'];a39_0x40ee=function(){return _0x4905c9;};return a39_0x40ee();}export const SQLCODE_FLAG={'name':a39_0x4954b3(0x1c7),'type':'string','required':!![],'description':a39_0x4954b3(0x1bf),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a39_0x4954b3(0x1c9)}};export const APPCODE_FLAG_OPTIONAL={'name':'appcode','type':a39_0x4954b3(0x1bd),'required':![],'description':a39_0x4954b3(0x1c0)};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};function a39_0x4952(_0x2530a1,_0x1cb955){_0x2530a1=_0x2530a1-0x1b4;const _0x40ee14=a39_0x40ee();let _0x49524f=_0x40ee14[_0x2530a1];return _0x49524f;}export const DBLINK_ID_FLAG={'name':'id','type':'number','required':!![],'description':a39_0x4954b3(0x1be)};export const DB_TYPE_FLAG={'name':a39_0x4954b3(0x1ba),'type':a39_0x4954b3(0x1bd),'required':!![],'description':'Database\x20product\x20type','enum':[a39_0x4954b3(0x1b5),'POSTGRESQL']};
1
+ const a39_0x177c23=a39_0x1483;(function(_0x3ae1ce,_0x3311a4){const _0x1729a7=a39_0x1483,_0x2adc17=_0x3ae1ce();while(!![]){try{const _0x5641cf=parseInt(_0x1729a7(0x81))/0x1+parseInt(_0x1729a7(0x82))/0x2*(-parseInt(_0x1729a7(0x7e))/0x3)+parseInt(_0x1729a7(0x69))/0x4*(parseInt(_0x1729a7(0x6f))/0x5)+-parseInt(_0x1729a7(0x7c))/0x6*(-parseInt(_0x1729a7(0x7a))/0x7)+parseInt(_0x1729a7(0x6b))/0x8*(-parseInt(_0x1729a7(0x73))/0x9)+parseInt(_0x1729a7(0x71))/0xa*(-parseInt(_0x1729a7(0x77))/0xb)+-parseInt(_0x1729a7(0x75))/0xc*(-parseInt(_0x1729a7(0x6c))/0xd);if(_0x5641cf===_0x3311a4)break;else _0x2adc17['push'](_0x2adc17['shift']());}catch(_0x11246d){_0x2adc17['push'](_0x2adc17['shift']());}}}(a39_0x2041,0x1b308));export const DATASET_CODE_PATTERN={'regex':/^[a-f0-9]{32}$/i,'description':a39_0x177c23(0x6d)};export const CODE_FLAG={'name':'code','type':a39_0x177c23(0x76),'required':!![],'description':a39_0x177c23(0x80),'pattern':DATASET_CODE_PATTERN};export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};function a39_0x1483(_0x30dade,_0x124d6f){_0x30dade=_0x30dade-0x69;const _0x20418a=a39_0x2041();let _0x148315=_0x20418a[_0x30dade];return _0x148315;}export const DATASETCODE_FLAG_OPTIONAL={...CODE_FLAG_OPTIONAL,'name':a39_0x177c23(0x78),'description':a39_0x177c23(0x80)};export const SQLCODE_FLAG={'name':a39_0x177c23(0x6a),'type':'string','required':!![],'description':'SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a39_0x177c23(0x6e)}};export const APPCODE_FLAG_OPTIONAL={'name':a39_0x177c23(0x72),'type':a39_0x177c23(0x76),'required':![],'description':a39_0x177c23(0x7b)};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};function a39_0x2041(){const _0x496497=['sqlcode','12008FppneL','13kpzWwh','a\x2032-character\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588)','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','20aktKBc','Database\x20product\x20type','40uxdxTg','appcode','54eELefm','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','237900WcUpWb','string','217877Tkywrq','datasetcode','MYSQL','98133MzBHVO','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','78LhXmXX','dbtype','18SWcHMT','number','Dataset\x20code\x20(32-char\x20hex\x20UUID)','54210vgisCO','23388qeRWLO','POSTGRESQL','13484RspOWx'];a39_0x2041=function(){return _0x496497;};return a39_0x2041();}export const DBLINK_ID_FLAG={'name':'id','type':a39_0x177c23(0x7f),'required':!![],'description':a39_0x177c23(0x74)};export const DB_TYPE_FLAG={'name':a39_0x177c23(0x7d),'type':a39_0x177c23(0x76),'required':!![],'description':a39_0x177c23(0x70),'enum':[a39_0x177c23(0x79),a39_0x177c23(0x83)]};
@@ -1 +1 @@
1
- function a40_0x58ee(_0x2a3840,_0x43d5ce){_0x2a3840=_0x2a3840-0xea;const _0x4df66f=a40_0x4df6();let _0x58ee81=_0x4df66f[_0x2a3840];return _0x58ee81;}(function(_0x5746cf,_0x3d8317){const _0x1a8263=a40_0x58ee,_0x2066da=_0x5746cf();while(!![]){try{const _0x1cbf0d=-parseInt(_0x1a8263(0xf2))/0x1*(parseInt(_0x1a8263(0xf3))/0x2)+parseInt(_0x1a8263(0xf1))/0x3+parseInt(_0x1a8263(0xf4))/0x4*(-parseInt(_0x1a8263(0xf6))/0x5)+parseInt(_0x1a8263(0xf9))/0x6*(parseInt(_0x1a8263(0xee))/0x7)+parseInt(_0x1a8263(0xf8))/0x8*(parseInt(_0x1a8263(0xf0))/0x9)+-parseInt(_0x1a8263(0xf7))/0xa+parseInt(_0x1a8263(0xf5))/0xb*(-parseInt(_0x1a8263(0xeb))/0xc);if(_0x1cbf0d===_0x3d8317)break;else _0x2066da['push'](_0x2066da['shift']());}catch(_0x4ebadc){_0x2066da['push'](_0x2066da['shift']());}}}(a40_0x4df6,0xdee4e));function a40_0x4df6(){const _0x165526=['length','63egbCyJ','690048nGplzH','29005YoZOuZ','54IYOLtV','17588zLmvKB','2606505AgAVDZ','440BOqnhk','7356400WhBMeZ','1992096odlyNt','2712RzOzaN','App\x20Code\x20cannot\x20be\x20empty','test','12ouEFVB','trim','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','16765dyvgnp'];a40_0x4df6=function(){return _0x165526;};return a40_0x4df6();}export function validateAppcode(_0x4e5a40){const _0x1fde91=a40_0x58ee,_0x15163b=_0x4e5a40[_0x1fde91(0xec)]();if(!_0x15163b)return{'valid':![],'message':_0x1fde91(0xfa)};if(_0x15163b[_0x1fde91(0xef)]>0x64)return{'valid':![],'message':'App\x20Code\x20cannot\x20exceed\x20100\x20characters'};if(!/^[A-Za-z0-9_-]+$/[_0x1fde91(0xea)](_0x15163b))return{'valid':![],'message':_0x1fde91(0xed)};return{'valid':!![]};}
1
+ (function(_0x4ec492,_0x180c8e){const _0x25a17c=a40_0x484d,_0x111ef0=_0x4ec492();while(!![]){try{const _0x51680f=parseInt(_0x25a17c(0x1b9))/0x1+-parseInt(_0x25a17c(0x1b4))/0x2+-parseInt(_0x25a17c(0x1b8))/0x3+parseInt(_0x25a17c(0x1bb))/0x4*(parseInt(_0x25a17c(0x1bc))/0x5)+parseInt(_0x25a17c(0x1b7))/0x6+-parseInt(_0x25a17c(0x1be))/0x7*(parseInt(_0x25a17c(0x1ba))/0x8)+-parseInt(_0x25a17c(0x1b6))/0x9;if(_0x51680f===_0x180c8e)break;else _0x111ef0['push'](_0x111ef0['shift']());}catch(_0x6cddcb){_0x111ef0['push'](_0x111ef0['shift']());}}}(a40_0x35ae,0xe740f));export function validateAppcode(_0x7c32a8){const _0x2d171d=a40_0x484d,_0x549382=_0x7c32a8['trim']();if(!_0x549382)return{'valid':![],'message':_0x2d171d(0x1b2)};if(_0x549382[_0x2d171d(0x1b5)]>0x64)return{'valid':![],'message':_0x2d171d(0x1b3)};if(!/^[A-Za-z0-9_-]+$/[_0x2d171d(0x1bd)](_0x549382))return{'valid':![],'message':'Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed'};return{'valid':!![]};}function a40_0x484d(_0x524159,_0x5ede80){_0x524159=_0x524159-0x1b2;const _0x35aebe=a40_0x35ae();let _0x484dce=_0x35aebe[_0x524159];return _0x484dce;}function a40_0x35ae(){const _0x3bfc6e=['301458wlXJdT','length','18505845jcGlEw','3702138CojeRs','290046pwhJSF','1712350pOzoJC','8336MYIKxC','34396hpmYUN','660iWXYkX','test','1435PLrVsS','App\x20Code\x20cannot\x20be\x20empty','App\x20Code\x20cannot\x20exceed\x20100\x20characters'];a40_0x35ae=function(){return _0x3bfc6e;};return a40_0x35ae();}
@@ -1 +1 @@
1
- const a41_0x257266=a41_0x3126;(function(_0x51ebb5,_0x457c36){const _0x3454b5=a41_0x3126,_0x40f48e=_0x51ebb5();while(!![]){try{const _0x31afac=-parseInt(_0x3454b5(0x104))/0x1+-parseInt(_0x3454b5(0x109))/0x2+-parseInt(_0x3454b5(0x100))/0x3+parseInt(_0x3454b5(0x101))/0x4*(-parseInt(_0x3454b5(0x103))/0x5)+-parseInt(_0x3454b5(0x102))/0x6+-parseInt(_0x3454b5(0xfd))/0x7*(-parseInt(_0x3454b5(0x105))/0x8)+parseInt(_0x3454b5(0xfa))/0x9;if(_0x31afac===_0x457c36)break;else _0x40f48e['push'](_0x40f48e['shift']());}catch(_0x322e6f){_0x40f48e['push'](_0x40f48e['shift']());}}}(a41_0x45a0,0xcb156));import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a41_0x3126(_0xec14e4,_0x39d96c){_0xec14e4=_0xec14e4-0xfa;const _0x45a06c=a41_0x45a0();let _0x3126b5=_0x45a06c[_0xec14e4];return _0x3126b5;}function a41_0x45a0(){const _0x39cfef=['2341894GMCcao','object','Missing\x20key.','51241464YGDCkS','Key\x20not\x20found:\x20','app','35NYpSOF','config','Get\x20a\x20config\x20value\x20by\x20key','3905376bqzDaJ','456vXwdNc','8099622qGbclg','6595dsbEIi','1157259ACjBwi','429816ZxhViR','get','read','validation'];a41_0x45a0=function(){return _0x39cfef;};return a41_0x45a0();}import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0xd07874){const _0xdc1bf4=a41_0x3126,_0x5f01e0=_0xd07874['str']('key');if(!_0x5f01e0)throw CliErrors[_0xdc1bf4(0x108)](_0xdc1bf4(0x10b),'Usage:\x20'+CLI_BIN_NAME+'\x20config\x20get\x20--key\x20<key>');const _0x3fe787=readConfig(),_0x4d08d8=_0x5f01e0===_0xdc1bf4(0xfc)?'appcode':_0x5f01e0,_0x1fe034=_0x3fe787[_0x4d08d8];if(_0x1fe034===undefined)throw CliErrors[_0xdc1bf4(0x108)](_0xdc1bf4(0xfb)+_0x5f01e0);return{'ok':!![],'data':typeof _0x1fe034==='object'?_0x1fe034:{[_0x4d08d8]:_0x1fe034},'message':typeof _0x1fe034===_0xdc1bf4(0x10a)?undefined:String(_0x1fe034)};}export const configGetDefinition={'service':a41_0x257266(0xfe),'command':a41_0x257266(0x106),'description':a41_0x257266(0xff),'risk':a41_0x257266(0x107),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'key','type':'string','description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
1
+ const a41_0x3e61bd=a41_0x19fe;(function(_0xe9870c,_0x36a23d){const _0x4cbbda=a41_0x19fe,_0x10b477=_0xe9870c();while(!![]){try{const _0x2abcd1=-parseInt(_0x4cbbda(0x130))/0x1+-parseInt(_0x4cbbda(0x140))/0x2+-parseInt(_0x4cbbda(0x12e))/0x3*(parseInt(_0x4cbbda(0x13e))/0x4)+-parseInt(_0x4cbbda(0x132))/0x5*(parseInt(_0x4cbbda(0x135))/0x6)+parseInt(_0x4cbbda(0x134))/0x7*(-parseInt(_0x4cbbda(0x136))/0x8)+parseInt(_0x4cbbda(0x131))/0x9+-parseInt(_0x4cbbda(0x12c))/0xa*(-parseInt(_0x4cbbda(0x12f))/0xb);if(_0x2abcd1===_0x36a23d)break;else _0x10b477['push'](_0x10b477['shift']());}catch(_0x941865){_0x10b477['push'](_0x10b477['shift']());}}}(a41_0x4478,0x90cb4));import{CliErrors}from'../../errors.js';function a41_0x4478(){const _0x5cbc11=['685528RtCxYP','key','read','\x20config\x20get\x20--key\x20<key>','4346970DBaJOp','string','1308pLLnkG','77sffrSa','53283nXdJOh','2432907pVIhKc','110620HoCgUa','validation','7613137cqYKqR','234UbsksK','8CrStBo','Usage:\x20','get','str','appcode','object','Key\x20not\x20found:\x20','Get\x20a\x20config\x20value\x20by\x20key','3428tRYfIA','config'];a41_0x4478=function(){return _0x5cbc11;};return a41_0x4478();}import{readConfig}from'../../utils/config.js';function a41_0x19fe(_0x11e7a4,_0x2ddfd3){_0x11e7a4=_0x11e7a4-0x129;const _0x4478c0=a41_0x4478();let _0x19fe4e=_0x4478c0[_0x11e7a4];return _0x19fe4e;}import{CLI_BIN_NAME}from'../../constant/cli.js';import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0x1f04ad){const _0x3e5134=a41_0x19fe,_0x5788e1=_0x1f04ad[_0x3e5134(0x139)](_0x3e5134(0x129));if(!_0x5788e1)throw CliErrors[_0x3e5134(0x133)]('Missing\x20key.',_0x3e5134(0x137)+CLI_BIN_NAME+_0x3e5134(0x12b));const _0x5a1bf3=readConfig(),_0x1e2ad0=_0x5788e1==='app'?_0x3e5134(0x13a):_0x5788e1,_0x2e1564=_0x5a1bf3[_0x1e2ad0];if(_0x2e1564===undefined)throw CliErrors[_0x3e5134(0x133)](_0x3e5134(0x13c)+_0x5788e1);return{'ok':!![],'data':typeof _0x2e1564===_0x3e5134(0x13b)?_0x2e1564:{[_0x1e2ad0]:_0x2e1564},'message':typeof _0x2e1564===_0x3e5134(0x13b)?undefined:String(_0x2e1564)};}export const configGetDefinition={'service':a41_0x3e61bd(0x13f),'command':a41_0x3e61bd(0x138),'description':a41_0x3e61bd(0x13d),'risk':a41_0x3e61bd(0x12a),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a41_0x3e61bd(0x129),'type':a41_0x3e61bd(0x12d),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
@@ -1 +1 @@
1
- (function(_0xd000b5,_0x160ed4){const _0x5b904c=a42_0x11b8,_0x4025e4=_0xd000b5();while(!![]){try{const _0x28e98b=parseInt(_0x5b904c(0x12a))/0x1*(parseInt(_0x5b904c(0x128))/0x2)+-parseInt(_0x5b904c(0x129))/0x3+parseInt(_0x5b904c(0x12f))/0x4*(-parseInt(_0x5b904c(0x127))/0x5)+-parseInt(_0x5b904c(0x12e))/0x6*(-parseInt(_0x5b904c(0x130))/0x7)+-parseInt(_0x5b904c(0x131))/0x8*(parseInt(_0x5b904c(0x12b))/0x9)+parseInt(_0x5b904c(0x12c))/0xa*(parseInt(_0x5b904c(0x12d))/0xb)+-parseInt(_0x5b904c(0x126))/0xc;if(_0x28e98b===_0x160ed4)break;else _0x4025e4['push'](_0x4025e4['shift']());}catch(_0x20955d){_0x4025e4['push'](_0x4025e4['shift']());}}}(a42_0x5dad,0x7562b));function a42_0x5dad(){const _0x52ece1=['3752blLjZZ','4248960dMPFpL','5VGhavm','226zjJZdc','1502367XHQcoY','4633fKMora','8046RiygSx','10FxqHUn','7735453KCaWxp','6uIrzEO','646188ODSKcT','4828327OdECnW'];a42_0x5dad=function(){return _0x52ece1;};return a42_0x5dad();}import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';function a42_0x11b8(_0x306bf4,_0x479937){_0x306bf4=_0x306bf4-0x126;const _0x5dad23=a42_0x5dad();let _0x11b88a=_0x5dad23[_0x306bf4];return _0x11b88a;}import{configSetDefinition}from'../../commands/config/set.js';export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
1
+ (function(_0x5130a4,_0x105755){const _0x2bbe18=a42_0x3ea1,_0x2bc9e4=_0x5130a4();while(!![]){try{const _0x142cd8=parseInt(_0x2bbe18(0x147))/0x1+-parseInt(_0x2bbe18(0x149))/0x2*(parseInt(_0x2bbe18(0x142))/0x3)+parseInt(_0x2bbe18(0x144))/0x4*(parseInt(_0x2bbe18(0x141))/0x5)+-parseInt(_0x2bbe18(0x145))/0x6+-parseInt(_0x2bbe18(0x13f))/0x7+parseInt(_0x2bbe18(0x146))/0x8*(parseInt(_0x2bbe18(0x140))/0x9)+-parseInt(_0x2bbe18(0x143))/0xa*(-parseInt(_0x2bbe18(0x148))/0xb);if(_0x142cd8===_0x105755)break;else _0x2bc9e4['push'](_0x2bc9e4['shift']());}catch(_0x20896c){_0x2bc9e4['push'](_0x2bc9e4['shift']());}}}(a42_0x31af,0xc2604));function a42_0x3ea1(_0x491204,_0x48588d){_0x491204=_0x491204-0x13f;const _0x31afba=a42_0x31af();let _0x3ea1f4=_0x31afba[_0x491204];return _0x3ea1f4;}function a42_0x31af(){const _0x427ff8=['743771XMZQqw','471843QnSzuY','4190iziDZh','18ruBySF','10chJTCu','368kgDLJZ','4148820jkMKds','152CWBbjg','992139PpXPIP','6566879MVpgjO','356150VKWaZX'];a42_0x31af=function(){return _0x427ff8;};return a42_0x31af();}import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';import{configSetDefinition}from'../../commands/config/set.js';export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
@@ -1 +1 @@
1
- const a43_0x142f4f=a43_0x5c85;(function(_0xac5e47,_0x2a133f){const _0xef494=a43_0x5c85,_0x4c3bc4=_0xac5e47();while(!![]){try{const _0x251e82=parseInt(_0xef494(0x1bf))/0x1*(-parseInt(_0xef494(0x1ba))/0x2)+-parseInt(_0xef494(0x1c7))/0x3+-parseInt(_0xef494(0x1bb))/0x4*(parseInt(_0xef494(0x1c6))/0x5)+-parseInt(_0xef494(0x1c4))/0x6*(-parseInt(_0xef494(0x1c8))/0x7)+parseInt(_0xef494(0x1b8))/0x8*(-parseInt(_0xef494(0x1c1))/0x9)+parseInt(_0xef494(0x1bd))/0xa+parseInt(_0xef494(0x1be))/0xb;if(_0x251e82===_0x2a133f)break;else _0x4c3bc4['push'](_0x4c3bc4['shift']());}catch(_0x561dbd){_0x4c3bc4['push'](_0x4c3bc4['shift']());}}}(a43_0x3d36,0x87bbf));import{readScopedConfig}from'../../commands/config/shared.js';function a43_0x3d36(){const _0x413e93=['1268jrzfAf','1723144eBDsnm','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','2986820prLiPS','16467638CSqhdp','266lqMGAb','list','288nKOwyQ','boolean','List\x20all\x20config\x20values','5114358ITlOKx','bool','5hGyCPT','3101760WsrMLG','7lbzoPz','114704eCmlPg','global'];a43_0x3d36=function(){return _0x413e93;};return a43_0x3d36();}import{readConfig}from'../../utils/config.js';function a43_0x5c85(_0x52efd0,_0x43d23b){_0x52efd0=_0x52efd0-0x1b8;const _0x3d36df=a43_0x3d36();let _0x5c8585=_0x3d36df[_0x52efd0];return _0x5c8585;}async function execute(_0x1fc79e){const _0x59d843=a43_0x5c85,_0x42b455=_0x1fc79e[_0x59d843(0x1c5)](_0x59d843(0x1b9))?readScopedConfig('global'):readConfig();return{'ok':!![],'data':_0x42b455};}export const configListDefinition={'service':'config','command':a43_0x142f4f(0x1c0),'description':a43_0x142f4f(0x1c3),'risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a43_0x142f4f(0x1b9),'type':a43_0x142f4f(0x1c2),'description':a43_0x142f4f(0x1bc),'default':![]}],'execute':execute};
1
+ const a43_0x48cf30=a43_0x1dd0;(function(_0x656754,_0x58aa26){const _0x2bf5b9=a43_0x1dd0,_0x1094b1=_0x656754();while(!![]){try{const _0x1b4c5d=parseInt(_0x2bf5b9(0xf2))/0x1+parseInt(_0x2bf5b9(0xee))/0x2+parseInt(_0x2bf5b9(0xef))/0x3+-parseInt(_0x2bf5b9(0xf1))/0x4+parseInt(_0x2bf5b9(0xea))/0x5+-parseInt(_0x2bf5b9(0xe9))/0x6+parseInt(_0x2bf5b9(0xe8))/0x7*(-parseInt(_0x2bf5b9(0xed))/0x8);if(_0x1b4c5d===_0x58aa26)break;else _0x1094b1['push'](_0x1094b1['shift']());}catch(_0x5d6fd2){_0x1094b1['push'](_0x1094b1['shift']());}}}(a43_0x1885,0x773dd));import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0x5673ac){const _0x443e62=a43_0x1dd0,_0x4804ae=_0x5673ac['bool'](_0x443e62(0xeb))?readScopedConfig('global'):readConfig();return{'ok':!![],'data':_0x4804ae};}function a43_0x1dd0(_0x519967,_0x1b80a6){_0x519967=_0x519967-0xe7;const _0x1885ab=a43_0x1885();let _0x1dd04b=_0x1885ab[_0x519967];return _0x1dd04b;}function a43_0x1885(){const _0x378f26=['1145046EaJSiS','1923396IhjYHQ','List\x20all\x20config\x20values','3297688epPJUH','518436sdTZno','config','766787noFnCl','2376246DMYtjc','2622450EjooUi','global','boolean','40FIFSgz'];a43_0x1885=function(){return _0x378f26;};return a43_0x1885();}export const configListDefinition={'service':a43_0x48cf30(0xe7),'command':'list','description':a43_0x48cf30(0xf0),'risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a43_0x48cf30(0xeb),'type':a43_0x48cf30(0xec),'description':'Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','default':![]}],'execute':execute};
@@ -1 +1 @@
1
- const a44_0x349841=a44_0x3633;(function(_0x5aa9da,_0x2c7752){const _0x248773=a44_0x3633,_0x4d010d=_0x5aa9da();while(!![]){try{const _0x253b28=-parseInt(_0x248773(0xf1))/0x1+parseInt(_0x248773(0xff))/0x2*(-parseInt(_0x248773(0xeb))/0x3)+parseInt(_0x248773(0xed))/0x4+-parseInt(_0x248773(0x101))/0x5*(-parseInt(_0x248773(0xdd))/0x6)+-parseInt(_0x248773(0x10c))/0x7+parseInt(_0x248773(0x100))/0x8+parseInt(_0x248773(0x102))/0x9;if(_0x253b28===_0x2c7752)break;else _0x4d010d['push'](_0x4d010d['shift']());}catch(_0x2f7e31){_0x4d010d['push'](_0x4d010d['shift']());}}}(a44_0x1996,0x74e22));import{CliErrors}from'../../errors.js';function a44_0x3633(_0x3c3f5e,_0x1d909b){_0x3c3f5e=_0x3c3f5e-0xdb;const _0x19967c=a44_0x1996();let _0x363310=_0x19967c[_0x3c3f5e];return _0x363310;}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';async function execute(_0x3863a6){const _0x4adfa5=a44_0x3633,_0x3241c4=_0x3863a6[_0x4adfa5(0xee)](_0x4adfa5(0xfb)),_0x56b876=_0x3863a6[_0x4adfa5(0xee)]('value');if(!_0x3241c4)throw CliErrors[_0x4adfa5(0xdf)](_0x4adfa5(0xef),_0x4adfa5(0xdc)+CLI_BIN_NAME+'\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>');if(_0x56b876===undefined||_0x56b876==='')throw CliErrors[_0x4adfa5(0xdf)](_0x4adfa5(0x10b),_0x4adfa5(0xdc)+CLI_BIN_NAME+'\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>');if(_0x56b876[_0x4adfa5(0xe7)]>0x1f4)throw CliErrors[_0x4adfa5(0xdf)]('Config\x20value\x20is\x20invalid\x20or\x20too\x20long.');if(!isTopLevelConfigKey(_0x3241c4))throw CliErrors[_0x4adfa5(0xdf)](_0x4adfa5(0x103)+_0x3241c4+_0x4adfa5(0xf0),_0x4adfa5(0xe2)+getTopLevelConfigKeySummary());if(_0x3241c4===_0x4adfa5(0x108))throw CliErrors[_0x4adfa5(0xdf)](_0x4adfa5(0x107));if(CONFIG_ENUM_VALUES[_0x3241c4]&&!CONFIG_ENUM_VALUES[_0x3241c4][_0x4adfa5(0xec)](_0x56b876))throw CliErrors[_0x4adfa5(0xdf)]('Invalid\x20value\x20for\x20\x22'+_0x3241c4+_0x4adfa5(0x106)+CONFIG_ENUM_VALUES[_0x3241c4][_0x4adfa5(0xf6)](',\x20'));if(_0x3241c4===_0x4adfa5(0xe6)&&!normalizeLocale(_0x56b876))throw CliErrors[_0x4adfa5(0xdf)]('Invalid\x20locale\x20value.','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US');const _0x401579={'global':_0x3863a6[_0x4adfa5(0x109)](_0x4adfa5(0xf5))},_0x28b462=resolveWriteScope(_0x401579),_0x25aa63=readScopedConfig(_0x28b462);let _0x342bdc=_0x3241c4,_0x511e47=_0x56b876;_0x3241c4===_0x4adfa5(0xde)&&(_0x342bdc='appcode',delete _0x25aa63[_0x4adfa5(0xde)]);_0x3241c4==='locale'&&(_0x511e47=normalizeLocale(_0x56b876));if(_0x3241c4===_0x4adfa5(0xfa)){_0x511e47=normalizeEnv(_0x56b876);if(!isProduction(_0x511e47)&&!isDaily(_0x511e47))throw CliErrors[_0x4adfa5(0xdf)](_0x4adfa5(0x105),_0x4adfa5(0xe1));}if(_0x3241c4===_0x4adfa5(0xea)){const _0x2d2207=_0x25aa63[_0x4adfa5(0xf3)]&&typeof _0x25aa63[_0x4adfa5(0xf3)]===_0x4adfa5(0xf9)?Object[_0x4adfa5(0xfc)](_0x25aa63['apps']):[];if(_0x2d2207['length']>0x0)throw CliErrors[_0x4adfa5(0xdf)]('Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.',_0x4adfa5(0xf2)+CLI_BIN_NAME+_0x4adfa5(0xe8)+_0x511e47+_0x4adfa5(0xe4)+CLI_BIN_NAME+_0x4adfa5(0xe0));const _0x476e17=buildCanonicalProjectConfig({..._0x25aa63},{'appCodes':[_0x511e47],'env':typeof _0x25aa63[_0x4adfa5(0xfa)]===_0x4adfa5(0xf4)?_0x25aa63['env']:undefined});writeScopedConfig(_0x476e17,_0x28b462);const _0x2303a6=_0x28b462==='global'?_0x4adfa5(0xfe):'Project';return{'ok':!![],'message':'✓\x20'+_0x2303a6+_0x4adfa5(0xdb)+_0x511e47+_0x4adfa5(0xe5)};}_0x25aa63[_0x342bdc]=_0x511e47,writeScopedConfig(_0x25aa63,_0x28b462);const _0x407266=_0x28b462==='global'?_0x4adfa5(0xfe):_0x4adfa5(0xe9);return{'ok':!![],'message':'✓\x20'+_0x407266+'\x20'+_0x342bdc+'\x20set\x20to:\x20'+_0x511e47};}function a44_0x1996(){const _0x5332cf=['write','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','\x22.\x20Allowed:\x20','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','riskLevel','bool','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','Missing\x20value.','1549681jlUkEu','\x20appcode\x20set\x20to:\x20','Usage:\x20','5488206WJXSIn','app','validation','\x20app\x20use\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','Settable\x20top-level\x20keys:\x20','Set\x20a\x20config\x20value','`,\x20`','\x20(stored\x20as\x20apps\x20+\x20defaultApp)','locale','length','\x20app\x20add\x20<name>\x20--appcode\x20','Project','appcode','15tVkBGz','includes','131324WCVTVi','str','Missing\x20key.','\x22\x20is\x20not\x20settable.','743450jUigfg','Use\x20`','apps','string','global','join','boolean','Config\x20value','object','env','key','keys','config','Global','65570SoQTYL','2978040lMQbXm','5IXJAib','2589525YtIybp','Top-level\x20key\x20\x22'];a44_0x1996=function(){return _0x5332cf;};return a44_0x1996();}export const configSetDefinition={'service':a44_0x349841(0xfd),'command':'set','description':a44_0x349841(0xe3),'risk':a44_0x349841(0x104),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'key','type':'string','description':getConfigCommandKeyDescription(),'required':!![]},{'name':'value','type':a44_0x349841(0xf4),'description':a44_0x349841(0xf8),'required':!![]},{'name':a44_0x349841(0xf5),'type':a44_0x349841(0xf7),'description':a44_0x349841(0x10a),'default':![]}],'execute':execute};
1
+ function a44_0x13e2(_0x57ab0e,_0xa2d955){_0x57ab0e=_0x57ab0e-0x1c1;const _0x1af2b9=a44_0x1af2();let _0x13e2e5=_0x1af2b9[_0x57ab0e];return _0x13e2e5;}const a44_0xbf190=a44_0x13e2;(function(_0x2fe264,_0x2afd39){const _0xd70a65=a44_0x13e2,_0x55c6c2=_0x2fe264();while(!![]){try{const _0x52cf4c=-parseInt(_0xd70a65(0x1d3))/0x1+-parseInt(_0xd70a65(0x1d6))/0x2+parseInt(_0xd70a65(0x1d4))/0x3*(-parseInt(_0xd70a65(0x1cb))/0x4)+parseInt(_0xd70a65(0x1ee))/0x5+-parseInt(_0xd70a65(0x1e5))/0x6+-parseInt(_0xd70a65(0x1da))/0x7*(parseInt(_0xd70a65(0x1e0))/0x8)+parseInt(_0xd70a65(0x1d5))/0x9;if(_0x52cf4c===_0x2afd39)break;else _0x55c6c2['push'](_0x55c6c2['shift']());}catch(_0x454995){_0x55c6c2['push'](_0x55c6c2['shift']());}}}(a44_0x1af2,0x81ed0));import{CliErrors}from'../../errors.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';import{CLI_BIN_NAME,CONFIG_ENUM_VALUES,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';function a44_0x1af2(){const _0x8e4551=['string','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','length','5248212ZKUFLP','riskLevel','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','key','Use\x20`','join','\x20set\x20to:\x20','`,\x20`','Usage:\x20','2086255JuBows','app','Top-level\x20key\x20\x22','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','locale','apps','set','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','includes','Missing\x20value.','boolean','28oIWPDC','Config\x20value','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','Set\x20a\x20config\x20value','env','Missing\x20key.','Invalid\x20value\x20for\x20\x22','validation','278503rphIsT','21477fRBAsy','19469646jlrCjn','401856OkDNOP','appcode','config','\x20(stored\x20as\x20apps\x20+\x20defaultApp)','7XzQFkp','\x20app\x20use\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','write','global','Invalid\x20locale\x20value.','Project','5152984mveFiC','\x22.\x20Allowed:\x20'];a44_0x1af2=function(){return _0x8e4551;};return a44_0x1af2();}import{normalizeEnv,isProduction,isDaily}from'../../constant/env.js';async function execute(_0x3d2a39){const _0x52a38e=a44_0x13e2,_0x31241e=_0x3d2a39['str']('key'),_0x368b36=_0x3d2a39['str']('value');if(!_0x31241e)throw CliErrors[_0x52a38e(0x1d2)](_0x52a38e(0x1d0),'Usage:\x20'+CLI_BIN_NAME+_0x52a38e(0x1e3));if(_0x368b36===undefined||_0x368b36==='')throw CliErrors[_0x52a38e(0x1d2)](_0x52a38e(0x1c9),_0x52a38e(0x1ed)+CLI_BIN_NAME+_0x52a38e(0x1e3));if(_0x368b36[_0x52a38e(0x1e4)]>0x1f4)throw CliErrors[_0x52a38e(0x1d2)](_0x52a38e(0x1cd));if(!isTopLevelConfigKey(_0x31241e))throw CliErrors[_0x52a38e(0x1d2)](_0x52a38e(0x1c2)+_0x31241e+'\x22\x20is\x20not\x20settable.','Settable\x20top-level\x20keys:\x20'+getTopLevelConfigKeySummary());if(_0x31241e===_0x52a38e(0x1e6))throw CliErrors[_0x52a38e(0x1d2)](_0x52a38e(0x1e7));if(CONFIG_ENUM_VALUES[_0x31241e]&&!CONFIG_ENUM_VALUES[_0x31241e][_0x52a38e(0x1c8)](_0x368b36))throw CliErrors[_0x52a38e(0x1d2)](_0x52a38e(0x1d1)+_0x31241e+_0x52a38e(0x1e1)+CONFIG_ENUM_VALUES[_0x31241e][_0x52a38e(0x1ea)](',\x20'));if(_0x31241e===_0x52a38e(0x1c4)&&!normalizeLocale(_0x368b36))throw CliErrors[_0x52a38e(0x1d2)](_0x52a38e(0x1de),_0x52a38e(0x1c7));const _0x18690f={'global':_0x3d2a39['bool'](_0x52a38e(0x1dd))},_0x538aae=resolveWriteScope(_0x18690f),_0x11faa2=readScopedConfig(_0x538aae);let _0x58cb98=_0x31241e,_0x30e7e9=_0x368b36;_0x31241e===_0x52a38e(0x1c1)&&(_0x58cb98=_0x52a38e(0x1d7),delete _0x11faa2[_0x52a38e(0x1c1)]);_0x31241e===_0x52a38e(0x1c4)&&(_0x30e7e9=normalizeLocale(_0x368b36));if(_0x31241e==='env'){_0x30e7e9=normalizeEnv(_0x368b36);if(!isProduction(_0x30e7e9)&&!isDaily(_0x30e7e9))throw CliErrors[_0x52a38e(0x1d2)]('Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.',_0x52a38e(0x1c3));}if(_0x31241e===_0x52a38e(0x1d7)){const _0xd3dee7=_0x11faa2[_0x52a38e(0x1c5)]&&typeof _0x11faa2[_0x52a38e(0x1c5)]==='object'?Object['keys'](_0x11faa2[_0x52a38e(0x1c5)]):[];if(_0xd3dee7[_0x52a38e(0x1e4)]>0x0)throw CliErrors[_0x52a38e(0x1d2)]('Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.',_0x52a38e(0x1e9)+CLI_BIN_NAME+'\x20app\x20add\x20<name>\x20--appcode\x20'+_0x30e7e9+_0x52a38e(0x1ec)+CLI_BIN_NAME+_0x52a38e(0x1db));const _0x4f81a9=buildCanonicalProjectConfig({..._0x11faa2},{'appCodes':[_0x30e7e9],'env':typeof _0x11faa2[_0x52a38e(0x1cf)]==='string'?_0x11faa2[_0x52a38e(0x1cf)]:undefined});writeScopedConfig(_0x4f81a9,_0x538aae);const _0x40b1f0=_0x538aae===_0x52a38e(0x1dd)?'Global':_0x52a38e(0x1df);return{'ok':!![],'message':'✓\x20'+_0x40b1f0+'\x20appcode\x20set\x20to:\x20'+_0x30e7e9+_0x52a38e(0x1d9)};}_0x11faa2[_0x58cb98]=_0x30e7e9,writeScopedConfig(_0x11faa2,_0x538aae);const _0x57567c=_0x538aae===_0x52a38e(0x1dd)?'Global':_0x52a38e(0x1df);return{'ok':!![],'message':'✓\x20'+_0x57567c+'\x20'+_0x58cb98+_0x52a38e(0x1eb)+_0x30e7e9};}export const configSetDefinition={'service':a44_0xbf190(0x1d8),'command':a44_0xbf190(0x1c6),'description':a44_0xbf190(0x1ce),'risk':a44_0xbf190(0x1dc),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a44_0xbf190(0x1e8),'type':'string','description':getConfigCommandKeyDescription(),'required':!![]},{'name':'value','type':a44_0xbf190(0x1e2),'description':a44_0xbf190(0x1cc),'required':!![]},{'name':a44_0xbf190(0x1dd),'type':a44_0xbf190(0x1ca),'description':'Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','default':![]}],'execute':execute};
@@ -1 +1 @@
1
- (function(_0x11aced,_0x16febb){var _0xa7ac12=a45_0x4244,_0x1b52fd=_0x11aced();while(!![]){try{var _0x3d1d16=-parseInt(_0xa7ac12(0x1d3))/0x1*(parseInt(_0xa7ac12(0x1d5))/0x2)+parseInt(_0xa7ac12(0x1d1))/0x3*(-parseInt(_0xa7ac12(0x1d0))/0x4)+-parseInt(_0xa7ac12(0x1ce))/0x5+-parseInt(_0xa7ac12(0x1db))/0x6*(parseInt(_0xa7ac12(0x1d4))/0x7)+-parseInt(_0xa7ac12(0x1da))/0x8*(parseInt(_0xa7ac12(0x1d7))/0x9)+-parseInt(_0xa7ac12(0x1cd))/0xa+-parseInt(_0xa7ac12(0x1d9))/0xb*(-parseInt(_0xa7ac12(0x1d6))/0xc);if(_0x3d1d16===_0x16febb)break;else _0x1b52fd['push'](_0x1b52fd['shift']());}catch(_0x31a7d6){_0x1b52fd['push'](_0x1b52fd['shift']());}}}(a45_0x3d5a,0x8c685));import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';import{CliErrors}from'../../errors.js';import{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';export{CLI_BIN_NAME};export{normalizeLocale};function a45_0x4244(_0x44bdf1,_0x18ed76){_0x44bdf1=_0x44bdf1-0x1cc;var _0x3d5a6a=a45_0x3d5a();var _0x424419=_0x3d5a6a[_0x44bdf1];return _0x424419;}function a45_0x3d5a(){var _0x1abf45=['2cVKioa','732hFUrdW','98847nVikPF','\x20init`\x20first.','534710gIYjEP','232gGjLRg','12maJLaw','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','2719940yuMBTr','3300590ZOpMDc','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','3844IswpnW','2310LEgDsM','project','22166ckWSvv','1320711eZnCnL'];a45_0x3d5a=function(){return _0x1abf45;};return a45_0x3d5a();}export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0x297f6f){var _0x547833=a45_0x4244;if(_0x297f6f['global'])return'global';if(!isInProject())throw CliErrors['validation'](_0x547833(0x1cc),_0x547833(0x1cf)+CLI_BIN_NAME+_0x547833(0x1d8));return _0x547833(0x1d2);}export function readScopedConfig(_0x394cb5){return readConfigFile(resolveWriteConfigPath(_0x394cb5));}export function writeScopedConfig(_0x315fa5,_0x8e5271){writeConfigFile(resolveWriteConfigPath(_0x8e5271),_0x315fa5);}
1
+ (function(_0x3ae07c,_0xa0bac1){var _0x5e5e38=a45_0x5736,_0x20b761=_0x3ae07c();while(!![]){try{var _0x52c162=-parseInt(_0x5e5e38(0x103))/0x1+-parseInt(_0x5e5e38(0xfe))/0x2*(parseInt(_0x5e5e38(0xf7))/0x3)+-parseInt(_0x5e5e38(0xf9))/0x4*(parseInt(_0x5e5e38(0x102))/0x5)+-parseInt(_0x5e5e38(0xfd))/0x6+parseInt(_0x5e5e38(0xfa))/0x7+-parseInt(_0x5e5e38(0x100))/0x8*(-parseInt(_0x5e5e38(0x101))/0x9)+parseInt(_0x5e5e38(0xfb))/0xa*(parseInt(_0x5e5e38(0xff))/0xb);if(_0x52c162===_0xa0bac1)break;else _0x20b761['push'](_0x20b761['shift']());}catch(_0x1a59da){_0x20b761['push'](_0x20b761['shift']());}}}(a45_0x2245,0x6b84a));import{CLI_BIN_NAME}from'../../constant/cli.js';function a45_0x5736(_0x44e681,_0x402cdd){_0x44e681=_0x44e681-0xf5;var _0x2245ed=a45_0x2245();var _0x573644=_0x2245ed[_0x44e681];return _0x573644;}import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';import{CliErrors}from'../../errors.js';import{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';export{CLI_BIN_NAME};export{normalizeLocale};export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0x3428a9){var _0x223b6e=a45_0x5736;if(_0x3428a9[_0x223b6e(0xf5)])return _0x223b6e(0xf5);if(!isInProject())throw CliErrors[_0x223b6e(0x104)](_0x223b6e(0xf8),'Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`'+CLI_BIN_NAME+_0x223b6e(0xfc));return _0x223b6e(0xf6);}export function readScopedConfig(_0x33879f){return readConfigFile(resolveWriteConfigPath(_0x33879f));}export function writeScopedConfig(_0x37a6ef,_0x51fcc6){writeConfigFile(resolveWriteConfigPath(_0x51fcc6),_0x37a6ef);}function a45_0x2245(){var _0x367acb=['1119DQwIbL','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','8DYmHDu','3470775hEVBeh','370XMdOIg','\x20init`\x20first.','2832042pNboDX','2938kYGFPv','334345fIWCts','408EjrPoh','19062fIpDmE','580190fyLPqd','36044ThBGWg','validation','global','project'];a45_0x2245=function(){return _0x367acb;};return a45_0x2245();}
@@ -1 +1 @@
1
- const a46_0xc47b82=a46_0x3145;function a46_0x3145(_0x59b820,_0x15b31c){_0x59b820=_0x59b820-0x17c;const _0x5e4abd=a46_0x5e4a();let _0x3145b9=_0x5e4abd[_0x59b820];return _0x3145b9;}(function(_0x1e3288,_0x4c26e4){const _0x23bf4e=a46_0x3145,_0x30ccbe=_0x1e3288();while(!![]){try{const _0x2f5c4d=parseInt(_0x23bf4e(0x182))/0x1*(parseInt(_0x23bf4e(0x187))/0x2)+parseInt(_0x23bf4e(0x180))/0x3*(parseInt(_0x23bf4e(0x18d))/0x4)+parseInt(_0x23bf4e(0x184))/0x5+-parseInt(_0x23bf4e(0x186))/0x6+-parseInt(_0x23bf4e(0x17e))/0x7*(parseInt(_0x23bf4e(0x185))/0x8)+-parseInt(_0x23bf4e(0x18b))/0x9*(parseInt(_0x23bf4e(0x18f))/0xa)+-parseInt(_0x23bf4e(0x18c))/0xb*(parseInt(_0x23bf4e(0x17f))/0xc);if(_0x2f5c4d===_0x4c26e4)break;else _0x30ccbe['push'](_0x30ccbe['shift']());}catch(_0x45ba18){_0x30ccbe['push'](_0x30ccbe['shift']());}}}(a46_0x5e4a,0xcd9c2));import{buildDataCommand}from'../../commands/data/shared.js';function a46_0x5e4a(){const _0x598acb=['\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]','8271rESdKh','66qSgSqB','132ZnGOLo','filter','16570YLSFqq','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','6230CWNdcg','462744smQilJ','65448zIGPIV','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions','71qBmvFb','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','5387015BCzOJE','2728iyEzXP','1821552zPwSRN','39608tmxbNZ','join'];a46_0x5e4a=function(){return _0x598acb;};return a46_0x5e4a();}export const dataFilter=buildDataCommand({'command':'filter','operation':a46_0xc47b82(0x18e),'description':'Filter\x20dataset\x20records\x20with\x20query\x20conditions','paramsRequired':![],'paramsHint':a46_0xc47b82(0x183),'helpExtra':[a46_0xc47b82(0x189),a46_0xc47b82(0x181),a46_0xc47b82(0x17c),a46_0xc47b82(0x18a),a46_0xc47b82(0x17d),'\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page'][a46_0xc47b82(0x188)]('\x0a')});
1
+ function a46_0x2595(_0x57ae6e,_0x55cfa7){_0x57ae6e=_0x57ae6e-0x193;const _0x4e88f1=a46_0x4e88();let _0x259580=_0x4e88f1[_0x57ae6e];return _0x259580;}const a46_0x4e2096=a46_0x2595;(function(_0x495158,_0x234936){const _0x1daff1=a46_0x2595,_0x439d92=_0x495158();while(!![]){try{const _0xd63881=parseInt(_0x1daff1(0x198))/0x1+parseInt(_0x1daff1(0x19e))/0x2*(parseInt(_0x1daff1(0x19d))/0x3)+parseInt(_0x1daff1(0x196))/0x4*(parseInt(_0x1daff1(0x19b))/0x5)+-parseInt(_0x1daff1(0x193))/0x6+parseInt(_0x1daff1(0x19a))/0x7*(-parseInt(_0x1daff1(0x19f))/0x8)+parseInt(_0x1daff1(0x1a1))/0x9*(-parseInt(_0x1daff1(0x1a0))/0xa)+parseInt(_0x1daff1(0x1a2))/0xb*(parseInt(_0x1daff1(0x195))/0xc);if(_0xd63881===_0x234936)break;else _0x439d92['push'](_0x439d92['shift']());}catch(_0x1094cc){_0x439d92['push'](_0x439d92['shift']());}}}(a46_0x4e88,0x2637c));import{buildDataCommand}from'../../commands/data/shared.js';export const dataFilter=buildDataCommand({'command':'filter','operation':'filter','description':a46_0x4e2096(0x194),'paramsRequired':![],'paramsHint':a46_0x4e2096(0x199),'helpExtra':['\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]',a46_0x4e2096(0x19c),a46_0x4e2096(0x197),'\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page']['join']('\x0a')});function a46_0x4e88(){const _0x47f59f=['4520436YiKqzK','12OZrHea','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','20139vuubJg','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','7fzuyYM','394865TFZvnL','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]','3EhhbXO','283726OxBfDG','426016uPXwBl','10CxNAWP','2713338NJICxw','11oNcXiN','1586100cKWdbV','Filter\x20dataset\x20records\x20with\x20query\x20conditions'];a46_0x4e88=function(){return _0x47f59f;};return a46_0x4e88();}
@@ -1 +1 @@
1
- const a47_0x30f14c=a47_0x4987;(function(_0x428b3a,_0x1c835b){const _0x314c01=a47_0x4987,_0x4692fe=_0x428b3a();while(!![]){try{const _0x5ac9a0=parseInt(_0x314c01(0x196))/0x1*(-parseInt(_0x314c01(0x192))/0x2)+parseInt(_0x314c01(0x190))/0x3*(-parseInt(_0x314c01(0x193))/0x4)+parseInt(_0x314c01(0x18b))/0x5*(parseInt(_0x314c01(0x195))/0x6)+parseInt(_0x314c01(0x18e))/0x7*(-parseInt(_0x314c01(0x18d))/0x8)+-parseInt(_0x314c01(0x191))/0x9+parseInt(_0x314c01(0x197))/0xa+parseInt(_0x314c01(0x194))/0xb;if(_0x5ac9a0===_0x1c835b)break;else _0x4692fe['push'](_0x4692fe['shift']());}catch(_0xd554b3){_0x4692fe['push'](_0x4692fe['shift']());}}}(a47_0xe623,0xc9fd1));function a47_0x4987(_0x406ae0,_0x13041c){_0x406ae0=_0x406ae0-0x18a;const _0xe623a3=a47_0xe623();let _0x4987d3=_0xe623a3[_0x406ae0];return _0x4987d3;}import{buildDataCommand}from'../../commands/data/shared.js';export const dataGetOne=buildDataCommand({'command':a47_0x30f14c(0x18c),'operation':a47_0x30f14c(0x18c),'description':a47_0x30f14c(0x18f),'paramsRequired':!![],'paramsHint':a47_0x30f14c(0x18a)});function a47_0xe623(){const _0x3c4090=['6628TwRJab','28102294tMUULA','336wtaaCZ','1wAIliV','4162710gViouz','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','69295VFlUwv','getOne','32YXBCkx','1968358ChxWnJ','Get\x20a\x20single\x20record\x20by\x20ID','573sBRaVr','9113256LxfDxj','931874Txftzk'];a47_0xe623=function(){return _0x3c4090;};return a47_0xe623();}
1
+ const a47_0x553d22=a47_0xd68f;(function(_0x3919f3,_0x36f745){const _0x537be8=a47_0xd68f,_0x530b74=_0x3919f3();while(!![]){try{const _0x386ff6=parseInt(_0x537be8(0x1ac))/0x1+-parseInt(_0x537be8(0x1a9))/0x2*(-parseInt(_0x537be8(0x1ab))/0x3)+-parseInt(_0x537be8(0x1ae))/0x4+parseInt(_0x537be8(0x1ad))/0x5*(-parseInt(_0x537be8(0x1a4))/0x6)+-parseInt(_0x537be8(0x1a6))/0x7*(-parseInt(_0x537be8(0x1a7))/0x8)+parseInt(_0x537be8(0x1a5))/0x9+parseInt(_0x537be8(0x1a2))/0xa*(-parseInt(_0x537be8(0x1a8))/0xb);if(_0x386ff6===_0x36f745)break;else _0x530b74['push'](_0x530b74['shift']());}catch(_0x49bb7c){_0x530b74['push'](_0x530b74['shift']());}}}(a47_0x471a,0x75e1c));import{buildDataCommand}from'../../commands/data/shared.js';function a47_0xd68f(_0x4d58d2,_0x337b92){_0x4d58d2=_0x4d58d2-0x1a2;const _0x471a41=a47_0x471a();let _0xd68fa=_0x471a41[_0x4d58d2];return _0xd68fa;}function a47_0x471a(){const _0x5e4f82=['3SkqVId','758892CxcgZX','5cuMeQs','3267856CjkkzK','30fPHkPT','getOne','1517466YOxvKi','6623685bVzaYm','2422ZuStiK','8912GPXEsS','2287065iKshjC','592326MsgFKQ','Get\x20a\x20single\x20record\x20by\x20ID'];a47_0x471a=function(){return _0x5e4f82;};return a47_0x471a();}export const dataGetOne=buildDataCommand({'command':a47_0x553d22(0x1a3),'operation':'getOne','description':a47_0x553d22(0x1aa),'paramsRequired':!![],'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'});
@@ -1 +1 @@
1
- (function(_0x4c085b,_0x52ab63){const _0x4f435f=a48_0x2f85,_0x153a48=_0x4c085b();while(!![]){try{const _0x49b038=-parseInt(_0x4f435f(0xcd))/0x1*(parseInt(_0x4f435f(0xc5))/0x2)+parseInt(_0x4f435f(0xcc))/0x3*(-parseInt(_0x4f435f(0xc9))/0x4)+parseInt(_0x4f435f(0xc2))/0x5*(parseInt(_0x4f435f(0xc7))/0x6)+-parseInt(_0x4f435f(0xca))/0x7+-parseInt(_0x4f435f(0xc4))/0x8*(parseInt(_0x4f435f(0xc6))/0x9)+-parseInt(_0x4f435f(0xcb))/0xa*(-parseInt(_0x4f435f(0xc3))/0xb)+parseInt(_0x4f435f(0xc8))/0xc;if(_0x49b038===_0x52ab63)break;else _0x153a48['push'](_0x153a48['shift']());}catch(_0x42e540){_0x153a48['push'](_0x153a48['shift']());}}}(a48_0x14e5,0xe2d1a));function a48_0x14e5(){const _0xbc84d6=['16721496cvSpNz','570724cFOYbn','3320114PYeXRF','14041730RrBAqr','9HNligQ','63493WQwTjv','145LfcXww','11AKMkMB','7800ixWxiE','8tzfBNI','11061UdeHHV','100554iGmojN'];a48_0x14e5=function(){return _0xbc84d6;};return a48_0x14e5();}import{dataFilter}from'../../commands/data/filter.js';import{dataGetOne}from'../../commands/data/getOne.js';function a48_0x2f85(_0x5b92c7,_0x319eb1){_0x5b92c7=_0x5b92c7-0xc2;const _0x14e55e=a48_0x14e5();let _0x2f8523=_0x14e55e[_0x5b92c7];return _0x2f8523;}export const dataDefinitions=[dataFilter,dataGetOne];
1
+ function a48_0x752f(){const _0x3960d8=['87878GtheSw','3784716rHAlAc','6593732YTlrPY','20188233aSTmkT','5rnJSmo','22NYNavu','217638bpDVWK','252544PdixjR','10DpwjPE','141633IpuMoK'];a48_0x752f=function(){return _0x3960d8;};return a48_0x752f();}function a48_0x2e51(_0x26999e,_0x4146fe){_0x26999e=_0x26999e-0xbb;const _0x752f87=a48_0x752f();let _0x2e5121=_0x752f87[_0x26999e];return _0x2e5121;}(function(_0x215e5a,_0x4470ca){const _0x5a4e10=a48_0x2e51,_0x194861=_0x215e5a();while(!![]){try{const _0xc354a1=parseInt(_0x5a4e10(0xbd))/0x1+-parseInt(_0x5a4e10(0xc3))/0x2*(-parseInt(_0x5a4e10(0xc4))/0x3)+parseInt(_0x5a4e10(0xc0))/0x4+parseInt(_0x5a4e10(0xc2))/0x5*(parseInt(_0x5a4e10(0xbf))/0x6)+-parseInt(_0x5a4e10(0xbe))/0x7+-parseInt(_0x5a4e10(0xbb))/0x8+parseInt(_0x5a4e10(0xc1))/0x9*(-parseInt(_0x5a4e10(0xbc))/0xa);if(_0xc354a1===_0x4470ca)break;else _0x194861['push'](_0x194861['shift']());}catch(_0x3b8393){_0x194861['push'](_0x194861['shift']());}}}(a48_0x752f,0xe370f));import{dataFilter}from'../../commands/data/filter.js';import{dataGetOne}from'../../commands/data/getOne.js';export const dataDefinitions=[dataFilter,dataGetOne];
@@ -1 +1 @@
1
- (function(_0x329143,_0x213985){const _0x500ece=a49_0x23c7,_0x33f5ee=_0x329143();while(!![]){try{const _0x1233f5=parseInt(_0x500ece(0x13d))/0x1*(-parseInt(_0x500ece(0x14b))/0x2)+-parseInt(_0x500ece(0x14d))/0x3*(-parseInt(_0x500ece(0x14e))/0x4)+parseInt(_0x500ece(0x149))/0x5+-parseInt(_0x500ece(0x143))/0x6+-parseInt(_0x500ece(0x13f))/0x7*(parseInt(_0x500ece(0x148))/0x8)+parseInt(_0x500ece(0x158))/0x9+-parseInt(_0x500ece(0x14c))/0xa;if(_0x1233f5===_0x213985)break;else _0x33f5ee['push'](_0x33f5ee['shift']());}catch(_0x29d8fe){_0x33f5ee['push'](_0x33f5ee['shift']());}}}(a49_0x1c6e,0xe8dc7));import{executeDatasetDataOperation}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a49_0x23c7(_0x23814e,_0x3e10ce){_0x23814e=_0x23814e-0x13c;const _0x1c6ee3=a49_0x1c6e();let _0x23c7bf=_0x1c6ee3[_0x23814e];return _0x23c7bf;}import{CliErrors}from'../../errors.js';import{parseJsonParams}from'../../utils/params.js';function a49_0x1c6e(){const _0x476715=['361320SrauvR','5160870HLrgRj','helpExtra','74078iowQMn','1510870APHgjo','15CYIwdj','295388sevHDu','flagMissing','params','operation','string','paramsRequired','compress','now','command','data\x20','16908966kNZXNu','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','7ZYYJji','\x20completed\x20in\x20','252bXtpmp','Provide\x20--params\x20\x27{\x22id\x22:123}\x27\x20for\x20data\x20getOne.','data\x20getOne\x20requires\x20\x22id\x22\x20in\x20--params','str','1740504lEyYsx','read','description','code','paramsHint'];a49_0x1c6e=function(){return _0x476715;};return a49_0x1c6e();}function assertGetOneId(_0x53cf44){const _0x5d1c2e=a49_0x23c7;if(!_0x53cf44)throw CliErrors[_0x5d1c2e(0x14f)](_0x5d1c2e(0x150),_0x5d1c2e(0x140));const _0xc69d59=_0x53cf44['id'];if(_0xc69d59===undefined||_0xc69d59===null||_0xc69d59==='')throw CliErrors['validation'](_0x5d1c2e(0x141),_0x5d1c2e(0x159));}function parseCommandParams(_0x1322ca){return parseJsonParams(_0x1322ca)??{};}export function buildDataCommand(_0x1c4964){const _0x372b40=a49_0x23c7,_0x5c1b6f=_0x372b40(0x13c);return{'service':'data','command':_0x1c4964['command'],'description':_0x1c4964[_0x372b40(0x145)],'risk':_0x372b40(0x144),'defaultOutputFormat':_0x372b40(0x154),'helpExtra':_0x1c4964[_0x372b40(0x14a)],'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'alias','type':_0x372b40(0x152),'description':_0x5c1b6f},{'name':_0x372b40(0x150),'type':_0x372b40(0x152),'description':_0x1c4964[_0x372b40(0x147)]}],async 'validate'(_0xbf38c2){const _0x5ed1ff=_0x372b40,_0x31df1d=_0xbf38c2['str'](_0x5ed1ff(0x150));if(_0x1c4964[_0x5ed1ff(0x153)]&&!_0x31df1d)throw CliErrors[_0x5ed1ff(0x14f)](_0x5ed1ff(0x150),_0x1c4964[_0x5ed1ff(0x147)]);const _0x3b0d96=parseJsonParams(_0x31df1d);_0x1c4964['operation']==='getOne'&&assertGetOneId(_0x3b0d96);},async 'execute'(_0x1a68cb){const _0x1a71f2=_0x372b40,_0x156415=parseCommandParams(_0x1a68cb[_0x1a71f2(0x142)](_0x1a71f2(0x150))),_0x3b7b85=Date[_0x1a71f2(0x155)](),_0x50b3a3=await executeDatasetDataOperation(_0x1a68cb['appCode'],_0x1a68cb[_0x1a71f2(0x142)](_0x1a71f2(0x146)),_0x1c4964[_0x1a71f2(0x151)],_0x156415),_0x5318f4=Date['now']()-_0x3b7b85;return{'ok':!![],'data':{'result':_0x50b3a3,'elapsed':_0x5318f4},'message':_0x1a71f2(0x157)+_0x1c4964[_0x1a71f2(0x156)]+_0x1a71f2(0x13e)+_0x5318f4+'ms'};}};}
1
+ function a49_0x34ee(){const _0x53f0a5=['string','\x20completed\x20in\x20','paramsRequired','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','data\x20getOne\x20requires\x20\x22id\x22\x20in\x20--params','1330136YXMrmY','operation','description','76ZbWwbE','11mQXcvj','2785865msQkzf','validation','code','80312zisGfh','6ZwUHFw','command','compress','now','4160ZQmDxP','read','str','params','2NFdfSe','helpExtra','paramsHint','2776473iFSWVX','Provide\x20--params\x20\x27{\x22id\x22:123}\x27\x20for\x20data\x20getOne.','5337BntKyT','104883jXHDJa','flagMissing','5359560FokKMs','appCode'];a49_0x34ee=function(){return _0x53f0a5;};return a49_0x34ee();}(function(_0x4161b9,_0x5014be){const _0x143158=a49_0xdb94,_0x50f53e=_0x4161b9();while(!![]){try{const _0x11925d=-parseInt(_0x143158(0x156))/0x1*(-parseInt(_0x143158(0x15f))/0x2)+parseInt(_0x143158(0x165))/0x3*(-parseInt(_0x143158(0x171))/0x4)+-parseInt(_0x143158(0x173))/0x5*(-parseInt(_0x143158(0x157))/0x6)+parseInt(_0x143158(0x162))/0x7+-parseInt(_0x143158(0x16e))/0x8+parseInt(_0x143158(0x164))/0x9*(-parseInt(_0x143158(0x15b))/0xa)+-parseInt(_0x143158(0x172))/0xb*(-parseInt(_0x143158(0x167))/0xc);if(_0x11925d===_0x5014be)break;else _0x50f53e['push'](_0x50f53e['shift']());}catch(_0x77a660){_0x50f53e['push'](_0x50f53e['shift']());}}}(a49_0x34ee,0x62854));import{executeDatasetDataOperation}from'../../core/api-client.js';function a49_0xdb94(_0x337dba,_0x4610aa){_0x337dba=_0x337dba-0x155;const _0x34ee5c=a49_0x34ee();let _0xdb946a=_0x34ee5c[_0x337dba];return _0xdb946a;}import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{parseJsonParams}from'../../utils/params.js';function assertGetOneId(_0x3ca72b){const _0x47fdd7=a49_0xdb94;if(!_0x3ca72b)throw CliErrors['flagMissing'](_0x47fdd7(0x15e),_0x47fdd7(0x163));const _0x102612=_0x3ca72b['id'];if(_0x102612===undefined||_0x102612===null||_0x102612==='')throw CliErrors[_0x47fdd7(0x174)](_0x47fdd7(0x16d),_0x47fdd7(0x16c));}function parseCommandParams(_0x2870bf){return parseJsonParams(_0x2870bf)??{};}export function buildDataCommand(_0x2a82d7){const _0x4419eb=a49_0xdb94,_0x18f10e='Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically';return{'service':'data','command':_0x2a82d7['command'],'description':_0x2a82d7[_0x4419eb(0x170)],'risk':_0x4419eb(0x15c),'defaultOutputFormat':_0x4419eb(0x159),'helpExtra':_0x2a82d7[_0x4419eb(0x160)],'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'alias','type':'string','description':_0x18f10e},{'name':_0x4419eb(0x15e),'type':_0x4419eb(0x169),'description':_0x2a82d7[_0x4419eb(0x161)]}],async 'validate'(_0x108b85){const _0x5362f5=_0x4419eb,_0x2e7abb=_0x108b85[_0x5362f5(0x15d)](_0x5362f5(0x15e));if(_0x2a82d7[_0x5362f5(0x16b)]&&!_0x2e7abb)throw CliErrors[_0x5362f5(0x166)](_0x5362f5(0x15e),_0x2a82d7[_0x5362f5(0x161)]);const _0x8a885=parseJsonParams(_0x2e7abb);_0x2a82d7[_0x5362f5(0x16f)]==='getOne'&&assertGetOneId(_0x8a885);},async 'execute'(_0xc89241){const _0x573870=_0x4419eb,_0x4f92df=parseCommandParams(_0xc89241['str'](_0x573870(0x15e))),_0x4a5235=Date[_0x573870(0x15a)](),_0x1f14fe=await executeDatasetDataOperation(_0xc89241[_0x573870(0x168)],_0xc89241[_0x573870(0x15d)](_0x573870(0x155)),_0x2a82d7[_0x573870(0x16f)],_0x4f92df),_0x5537ad=Date[_0x573870(0x15a)]()-_0x4a5235;return{'ok':!![],'data':{'result':_0x1f14fe,'elapsed':_0x5537ad},'message':'data\x20'+_0x2a82d7[_0x573870(0x158)]+_0x573870(0x16a)+_0x5537ad+'ms'};}};}
@@ -0,0 +1 @@
1
+ const a50_0x3c1603=a50_0x4ff3;(function(_0x53a25f,_0x7220d8){const _0x4f8cd7=a50_0x4ff3,_0x338899=_0x53a25f();while(!![]){try{const _0x16d8a7=-parseInt(_0x4f8cd7(0x102))/0x1*(parseInt(_0x4f8cd7(0x122))/0x2)+parseInt(_0x4f8cd7(0x10f))/0x3*(parseInt(_0x4f8cd7(0x118))/0x4)+-parseInt(_0x4f8cd7(0xf5))/0x5+parseInt(_0x4f8cd7(0xfe))/0x6+parseInt(_0x4f8cd7(0xf2))/0x7+-parseInt(_0x4f8cd7(0x105))/0x8*(parseInt(_0x4f8cd7(0x119))/0x9)+-parseInt(_0x4f8cd7(0xff))/0xa*(parseInt(_0x4f8cd7(0xfa))/0xb);if(_0x16d8a7===_0x7220d8)break;else _0x338899['push'](_0x338899['shift']());}catch(_0x17242a){_0x338899['push'](_0x338899['shift']());}}}(a50_0x304f,0x7a2a3));import{deleteDataset,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';const DATASET_ID_FLAG={'name':'id','type':'number','description':a50_0x3c1603(0x110)},DBID_FLAG={'name':a50_0x3c1603(0x106),'type':'number','description':a50_0x3c1603(0xf1)},CONFIRM_FLAG={'name':a50_0x3c1603(0xfb),'type':a50_0x3c1603(0xed),'description':a50_0x3c1603(0x115)},EXPECTED_COUNT_FLAG={'name':a50_0x3c1603(0x117),'type':a50_0x3c1603(0xfc),'description':a50_0x3c1603(0xf4)};export const datasetDelete={'service':'dataset','command':a50_0x3c1603(0x10a),'description':'Delete\x20dataset\x20metadata\x20by\x20id/code\x20or\x20all\x20datasets\x20under\x20a\x20db\x20id','risk':a50_0x3c1603(0x108),'flags':[DATASET_ID_FLAG,CODE_FLAG_OPTIONAL,DBID_FLAG,CONFIRM_FLAG,EXPECTED_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x2fcd61){const _0x58a30a=a50_0x3c1603,_0x421d63=_0x2fcd61[_0x58a30a(0x100)]('id'),_0x33f169=_0x2fcd61[_0x58a30a(0x114)](_0x58a30a(0xf9)),_0x28409d=_0x2fcd61[_0x58a30a(0x100)]('dbid'),_0x185520=[_0x421d63>0x0,Boolean(_0x33f169),_0x28409d>0x0][_0x58a30a(0x10d)](Boolean);if(_0x185520['length']===0x0)throw CliErrors['validation'](_0x58a30a(0x109));if(_0x185520[_0x58a30a(0x10e)]>0x1)throw CliErrors[_0x58a30a(0x11d)](_0x58a30a(0x11e));},async 'dryRun'(_0x52b43b){const _0x3623b4=a50_0x3c1603,_0x4f3fcd=await resolveTargets(_0x52b43b);return{'method':_0x3623b4(0xf8),'url':_0x3623b4(0xfd),'body':{'appCode':_0x52b43b[_0x3623b4(0x107)],'count':_0x4f3fcd[_0x3623b4(0x10e)],'datasets':_0x4f3fcd},'description':_0x3623b4(0x11f)+_0x4f3fcd[_0x3623b4(0x10e)]+_0x3623b4(0xf3)};},async 'execute'(_0x47bddb){const _0x6c122=a50_0x3c1603;if(!_0x47bddb['bool']('confirm'))throw CliErrors['validation'](_0x6c122(0x121),_0x6c122(0x11a));const _0x5626ce=await resolveTargets(_0x47bddb),_0x2f9d98=[],_0x58fbb5=[];for(const _0x59f3eb of _0x5626ce){try{await deleteDataset(_0x47bddb[_0x6c122(0x107)],_0x59f3eb['id']),_0x2f9d98[_0x6c122(0x11c)](_0x59f3eb);}catch(_0x55c036){_0x58fbb5[_0x6c122(0x11c)]({..._0x59f3eb,'error':_0x55c036 instanceof Error?_0x55c036[_0x6c122(0xf7)]:String(_0x55c036)});}}if(_0x58fbb5[_0x6c122(0x10e)]>0x0)return{'ok':![],'data':{'requested':_0x5626ce[_0x6c122(0x10e)],'deletedCount':_0x2f9d98[_0x6c122(0x10e)],'failedCount':_0x58fbb5[_0x6c122(0x10e)],'deleted':_0x2f9d98,'failed':_0x58fbb5},'message':_0x6c122(0x10b)+_0x2f9d98[_0x6c122(0x10e)]+'/'+_0x5626ce[_0x6c122(0x10e)]+_0x6c122(0x101)+_0x58fbb5[_0x6c122(0x10e)]+_0x6c122(0x11b)};return{'ok':!![],'data':{'requested':_0x5626ce['length'],'deletedCount':_0x2f9d98[_0x6c122(0x10e)],'deleted':_0x2f9d98},'message':'Deleted\x20'+_0x2f9d98[_0x6c122(0x10e)]+'\x20dataset(s)'};}};function a50_0x4ff3(_0x4e33ff,_0x3b6bfa){_0x4e33ff=_0x4e33ff-0xed;const _0x304f6f=a50_0x304f();let _0x4ff3c2=_0x304f6f[_0x4e33ff];return _0x4ff3c2;}function a50_0x304f(){const _0x464852=['relationPages','message','POST','code','11UYhOXO','confirm','number','/smartapi/dataset/delete-dataset','322788xmpubb','5192740Heqmkq','num','\x20dataset(s);\x20','311306aShuXJ','source','dbName','8ciXpFj','dbid','appCode','high-risk-write','One\x20of\x20--id,\x20--code,\x20or\x20--dbid\x20is\x20required.','delete','Deleted\x20','tableName','filter','length','974712oxIMks','Dataset\x20id','name','map','dbtableConfig','str','Required\x20to\x20execute\x20dataset\x20deletion','No\x20undeleted\x20dataset\x20found\x20for\x20','expected-count','8QYshpE','1751481CkQGFL','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm\x20when\x20the\x20target\x20list\x20is\x20correct.','\x20failed','push','validation','Use\x20only\x20one\x20of\x20--id,\x20--code,\x20or\x20--dbid.','Would\x20delete\x20','id=','--confirm\x20is\x20required\x20to\x20delete\x20datasets.','2lEuazy','description','boolean','dbId','isArray','Matched\x20','Delete\x20all\x20datasets\x20under\x20this\x20database\x20connection\x20id','6299783IefqQQ','\x20dataset(s).\x20This\x20only\x20deletes\x20platform\x20dataset\x20metadata\x20and\x20related\x20page/menu\x20records,\x20not\x20physical\x20databases\x20or\x20tables.','Abort\x20unless\x20the\x20matched\x20dataset\x20count\x20equals\x20this\x20value','389995uwgoOy'];a50_0x304f=function(){return _0x464852;};return a50_0x304f();}async function resolveTargets(_0xe3af2a){const _0x345160=a50_0x3c1603,_0x24ba00=_0xe3af2a[_0x345160(0x100)]('id'),_0x22866c=_0xe3af2a['str'](_0x345160(0xf9)),_0x53e78f=_0xe3af2a['num']('dbid');let _0x13ca39;_0x22866c?(_0x13ca39=await listDatasets(_0xe3af2a[_0x345160(0x107)],{'code':_0x22866c}),_0x13ca39=_0x13ca39[_0x345160(0x10d)](_0x56c338=>_0x56c338['code']===_0x22866c)):(_0x13ca39=await listDatasets(_0xe3af2a[_0x345160(0x107)]),_0x24ba00>0x0&&(_0x13ca39=_0x13ca39[_0x345160(0x10d)](_0x57ea5f=>_0x57ea5f['id']===_0x24ba00)),_0x53e78f>0x0&&(_0x13ca39=_0x13ca39[_0x345160(0x10d)](_0x39a808=>_0x39a808[_0x345160(0x113)]?.[_0x345160(0xee)]===_0x53e78f)));const _0xf2d6fc=_0x13ca39[_0x345160(0x112)](normalizeTarget);if(_0xf2d6fc['length']===0x0){const _0x37cdc1=_0x22866c||(_0x24ba00>0x0?_0x345160(0x120)+_0x24ba00:'dbid='+_0x53e78f);throw CliErrors['validation'](_0x345160(0x116)+_0x37cdc1+'.');}const _0x56c669=_0xe3af2a[_0x345160(0x100)]('expected-count');if(_0x56c669>0x0&&_0xf2d6fc['length']!==_0x56c669)throw CliErrors['validation'](_0x345160(0xf0)+_0xf2d6fc[_0x345160(0x10e)]+'\x20dataset(s),\x20but\x20--expected-count\x20is\x20'+_0x56c669+'.');return _0xf2d6fc;}function normalizeTarget(_0x2dd4e1){const _0x34d84c=a50_0x3c1603,_0x806c72=_0x2dd4e1[_0x34d84c(0x113)]??{};return{'id':_0x2dd4e1['id'],'code':_0x2dd4e1[_0x34d84c(0xf9)],'name':_0x2dd4e1[_0x34d84c(0x111)],'description':_0x2dd4e1[_0x34d84c(0x123)],'source':_0x2dd4e1[_0x34d84c(0x103)],'dbId':_0x806c72[_0x34d84c(0xee)],'dbName':_0x806c72[_0x34d84c(0x104)],'tableName':_0x806c72[_0x34d84c(0x10c)],'relatedPageCount':Array[_0x34d84c(0xef)](_0x2dd4e1['relationPages'])?_0x2dd4e1[_0x34d84c(0xf6)][_0x34d84c(0x10e)]:undefined};}
@@ -1 +1 @@
1
- const a50_0xf3fb81=a50_0x5208;function a50_0x5940(){const _0x36cd04=['extend','push','1374875yKmSjr','toDatasetCode','options','type','dataset','4FSuZIz','string','parse','requestFields','responseFields','map','allFields','object','2687109EFHPXZ','toDatasetName','trim','301HCbAlR','responseBody','modifierIdField','datasetKey','creatorNameField','deleted','path','afterScriptId','detail','requestBody','dbId','formatRules','creatorIdField','description','length','filter','modelCode','validateRules','dbtableConfig','1589580quDFPJ','title','displayName','sourceType','name','alias','tableName','isArray','143964DtKwTN','labelField','relatedPageInfoList','columnCodeListWithDeleted','host','2SzchhQ','27fUFViZ','operations','entries','indexes','str','toTableName','method','properties','toFieldLabel','modifierNameField','fields','beforeScriptId','doType','dbName','relations','dataType','pkField','code','1303496oTElGS','10554576SJLxmI','updateTimeField','allFieldNames','modelId','26889357KNsJoq','split','required'];a50_0x5940=function(){return _0x36cd04;};return a50_0x5940();}(function(_0x317d19,_0x2174ab){const _0x3cff8f=a50_0x5208,_0x1a6ccc=_0x317d19();while(!![]){try{const _0x4c133c=-parseInt(_0x3cff8f(0x1be))/0x1*(parseInt(_0x3cff8f(0x1d1))/0x2)+parseInt(_0x3cff8f(0x1e8))/0x3*(-parseInt(_0x3cff8f(0x1e0))/0x4)+-parseInt(_0x3cff8f(0x1db))/0x5+-parseInt(_0x3cff8f(0x1b9))/0x6*(parseInt(_0x3cff8f(0x1eb))/0x7)+parseInt(_0x3cff8f(0x1d2))/0x8+parseInt(_0x3cff8f(0x1bf))/0x9*(parseInt(_0x3cff8f(0x1b1))/0xa)+parseInt(_0x3cff8f(0x1d6))/0xb;if(_0x4c133c===_0x2174ab)break;else _0x1a6ccc['push'](_0x1a6ccc['shift']());}catch(_0x1fc528){_0x1a6ccc['push'](_0x1a6ccc['shift']());}}}(a50_0x5940,0xb362f));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function normalizeField(_0x2d62d9){const _0x5fad1a=a50_0x5208;if(_0x2d62d9['deleted'])return null;const _0x4303de=Boolean(_0x2d62d9[_0x5fad1a(0x1b3)]!==undefined||_0x2d62d9[_0x5fad1a(0x1cb)]!==undefined);let _0x56fbb4={};if(!_0x4303de&&typeof _0x2d62d9[_0x5fad1a(0x1d9)]===_0x5fad1a(0x1e1))try{_0x56fbb4=JSON['parse'](_0x2d62d9[_0x5fad1a(0x1d9)]);}catch{}const _0x662aab=_0x4303de?_0x2d62d9['name']:_0x2d62d9[_0x5fad1a(0x1d0)],_0x131c96=_0x4303de?_0x2d62d9[_0x5fad1a(0x1b3)]:_0x2d62d9[_0x5fad1a(0x1b5)],_0x1ac3d1=_0x4303de?_0x2d62d9[_0x5fad1a(0x1cb)]:_0x2d62d9[_0x5fad1a(0x1de)]||_0x2d62d9[_0x5fad1a(0x1ce)],_0x28ae09=_0x4303de?_0x2d62d9[_0x5fad1a(0x1cf)]===!![]:_0x56fbb4[_0x5fad1a(0x1cf)]===!![],_0x113198=_0x4303de?_0x2d62d9[_0x5fad1a(0x1d8)]===!![]:_0x56fbb4[_0x5fad1a(0x1d8)]===!![],_0x1f8722=_0x4303de?_0x2d62d9[_0x5fad1a(0x1dd)]??null:_0x56fbb4[_0x5fad1a(0x1dd)]??null,_0xeb7a63={'name':_0x662aab,'displayName':_0x131c96||_0x662aab,'type':_0x1ac3d1,'dbType':_0x2d62d9['dbType'],'pk':_0x28ae09,'required':_0x113198,'description':_0x2d62d9[_0x5fad1a(0x1ab)]||undefined};return Array[_0x5fad1a(0x1b8)](_0x1f8722)&&_0x1f8722[_0x5fad1a(0x1ac)]>0x0&&(_0xeb7a63[_0x5fad1a(0x1dd)]=_0x1f8722),_0xeb7a63;}function parseJsonMaybe(_0x548238){const _0x3df905=a50_0x5208;if(typeof _0x548238!==_0x3df905(0x1e1))return _0x548238;try{return JSON[_0x3df905(0x1e2)](_0x548238);}catch{return _0x548238;}}function normalizeOperationEntry(_0x20df94,_0x59991f){const _0x45bc7b=a50_0x5208;if(!_0x59991f||typeof _0x59991f!==_0x45bc7b(0x1e7))return null;if(!_0x59991f[_0x45bc7b(0x1c5)]||!_0x59991f['path'])return null;const _0x404448={'name':_0x20df94,'method':_0x59991f[_0x45bc7b(0x1c5)],'path':_0x59991f[_0x45bc7b(0x1f1)]};if(_0x59991f[_0x45bc7b(0x1bd)])_0x404448[_0x45bc7b(0x1bd)]=_0x59991f['host'];if(_0x59991f[_0x45bc7b(0x1a7)]!=null){const _0x1e9b92=parseJsonMaybe(_0x59991f[_0x45bc7b(0x1a7)]);_0x404448[_0x45bc7b(0x1a7)]=_0x1e9b92;}if(_0x59991f[_0x45bc7b(0x1ec)]!=null){const _0x1f13b2=parseJsonMaybe(_0x59991f[_0x45bc7b(0x1ec)]);_0x404448[_0x45bc7b(0x1ec)]=_0x1f13b2;}if(_0x59991f[_0x45bc7b(0x1ca)]!=null)_0x404448['beforeScriptId']=_0x59991f[_0x45bc7b(0x1ca)];if(_0x59991f[_0x45bc7b(0x1f2)]!=null)_0x404448[_0x45bc7b(0x1f2)]=_0x59991f[_0x45bc7b(0x1f2)];if(Array['isArray'](_0x59991f[_0x45bc7b(0x1e3)]))_0x404448[_0x45bc7b(0x1e3)]=_0x59991f[_0x45bc7b(0x1e3)];if(Array[_0x45bc7b(0x1b8)](_0x59991f[_0x45bc7b(0x1e4)]))_0x404448[_0x45bc7b(0x1e4)]=_0x59991f['responseFields'];return _0x404448;}function summarizeDbtable(_0x28ee48){const _0x5b930f=a50_0x5208,_0x4aeb57={},_0x2aeaa6=[_0x5b930f(0x1a8),_0x5b930f(0x1cc),'tableName','datasetKey',_0x5b930f(0x1cf),_0x5b930f(0x1e6),'logicField','createTimeField',_0x5b930f(0x1d3),_0x5b930f(0x1aa),_0x5b930f(0x1ef),_0x5b930f(0x1ed),_0x5b930f(0x1c8),_0x5b930f(0x1ba),'dblinkInfoDTO'];for(const _0x2f8a96 of _0x2aeaa6){if(_0x28ee48[_0x2f8a96]!==undefined)_0x4aeb57[_0x2f8a96]=_0x28ee48[_0x2f8a96];}return typeof _0x4aeb57['allFields']===_0x5b930f(0x1e1)&&_0x4aeb57['allFields'][_0x5b930f(0x1ac)]>0x0&&(_0x4aeb57[_0x5b930f(0x1d4)]=_0x4aeb57['allFields'][_0x5b930f(0x1d7)](',')[_0x5b930f(0x1e5)](_0x14c4e6=>_0x14c4e6[_0x5b930f(0x1ea)]())[_0x5b930f(0x1ad)](Boolean)),_0x4aeb57;}function a50_0x5208(_0xde9bc5,_0x30cf90){_0xde9bc5=_0xde9bc5-0x1a7;const _0x594078=a50_0x5940();let _0x5208d2=_0x594078[_0xde9bc5];return _0x5208d2;}function normalizeRelatedPages(_0x5f034c){const _0x1cfbab=a50_0x5208;if(!Array['isArray'](_0x5f034c))return[];return _0x5f034c['filter'](_0x5dac1e=>_0x5dac1e&&typeof _0x5dac1e===_0x1cfbab(0x1e7))[_0x1cfbab(0x1e5)](_0x509a08=>({'id':_0x509a08['id'],'type':_0x509a08['type'],'code':_0x509a08['code'],'title':_0x509a08[_0x1cfbab(0x1b2)],'deleted':_0x509a08[_0x1cfbab(0x1f0)]===!![]}));}export const datasetDetail={'service':a50_0xf3fb81(0x1df),'command':a50_0xf3fb81(0x1f3),'description':'Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','risk':'read','flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a50_0xf3fb81(0x1b6),'type':'string','description':'Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically'}],async 'execute'(_0xda1e01){const _0x4dfa2e=a50_0xf3fb81,_0x1ab811=await getDatasetDetail(_0xda1e01[_0x4dfa2e(0x1c3)](_0x4dfa2e(0x1d0))),_0x30d803=Array[_0x4dfa2e(0x1b8)](_0x1ab811[_0x4dfa2e(0x1c9)])?_0x1ab811['fields']:Array[_0x4dfa2e(0x1b8)](_0x1ab811[_0x4dfa2e(0x1c6)])?_0x1ab811['properties']:[],_0xcd4b6c=_0x30d803['map'](_0x323251=>normalizeField(_0x323251))[_0x4dfa2e(0x1ad)](_0x5853f5=>_0x5853f5!==null),_0x21c5ae=_0x1ab811[_0x4dfa2e(0x1c0)]??{},_0x34add9=[];for(const [_0x155534,_0x181300]of Object[_0x4dfa2e(0x1c1)](_0x21c5ae)){const _0x2a087e=normalizeOperationEntry(_0x155534,_0x181300);if(_0x2a087e)_0x34add9[_0x4dfa2e(0x1da)](_0x2a087e);}const _0x13a3e8=_0x1ab811[_0x4dfa2e(0x1b0)]??{},_0x4c0381=_0x1ab811['dataset']??{},_0x5f3be9=_0x13a3e8[_0x4dfa2e(0x1a8)]!=null?{'id':_0x13a3e8['dbId'],'name':_0x13a3e8[_0x4dfa2e(0x1cc)]??null}:undefined;let _0x4f3610;return typeof _0x1ab811['extend']==='string'&&(_0x4f3610=parseJsonMaybe(_0x1ab811['extend'])),{'ok':!![],'data':{'id':_0x1ab811[_0x4dfa2e(0x1d5)]??_0x1ab811['id'],'name':_0x1ab811[_0x4dfa2e(0x1b5)],'code':_0x1ab811[_0x4dfa2e(0x1ae)]||_0x1ab811[_0x4dfa2e(0x1d0)],'doVersion':_0x1ab811['doVersion'],'description':_0x1ab811[_0x4dfa2e(0x1ab)]||_0x4c0381['tableComment']||undefined,'source':_0x1ab811['source']||_0x4c0381[_0x4dfa2e(0x1b4)],'table':_0x13a3e8[_0x4dfa2e(0x1b7)]||_0x4c0381[_0x4dfa2e(0x1b7)],'datasetKey':_0x13a3e8[_0x4dfa2e(0x1ee)],'pk':_0x13a3e8[_0x4dfa2e(0x1cf)],'db':_0x5f3be9,'dbtable':summarizeDbtable(_0x13a3e8),'fields':_0xcd4b6c,'operations':_0x34add9,'indexes':Array[_0x4dfa2e(0x1b8)](_0x4c0381[_0x4dfa2e(0x1c2)])?_0x4c0381['indexes']:[],'relations':Array[_0x4dfa2e(0x1b8)](_0x1ab811[_0x4dfa2e(0x1cd)])?_0x1ab811[_0x4dfa2e(0x1cd)][_0x4dfa2e(0x1e5)](_0xf7a9cf=>({'fromField':_0xf7a9cf['fromField'],'toDataset':_0xf7a9cf[_0x4dfa2e(0x1e9)],'toCode':_0xf7a9cf[_0x4dfa2e(0x1dc)],'toTable':_0xf7a9cf[_0x4dfa2e(0x1c4)],'toField':_0xf7a9cf['toField'],'labelField':_0xf7a9cf[_0x4dfa2e(0x1c7)]||undefined})):[],'relatedPages':normalizeRelatedPages(_0x1ab811[_0x4dfa2e(0x1bb)]),...Array[_0x4dfa2e(0x1b8)](_0x1ab811[_0x4dfa2e(0x1bc)])?{'columnCodeListWithDeleted':_0x1ab811[_0x4dfa2e(0x1bc)]}:{},'formatRules':Array[_0x4dfa2e(0x1b8)](_0x1ab811[_0x4dfa2e(0x1a9)])?_0x1ab811[_0x4dfa2e(0x1a9)]:[],'validateRules':Array[_0x4dfa2e(0x1b8)](_0x1ab811['validateRules'])?_0x1ab811[_0x4dfa2e(0x1af)]:[],..._0x4f3610!==undefined?{'extend':_0x4f3610}:{},'stats':{'fieldCount':_0xcd4b6c[_0x4dfa2e(0x1ac)],'operationCount':_0x34add9[_0x4dfa2e(0x1ac)]}}};}};
1
+ const a51_0x4fd09a=a51_0xbfdd;(function(_0x30c49a,_0x25b33a){const _0x40760a=a51_0xbfdd,_0x264c95=_0x30c49a();while(!![]){try{const _0x3aec1f=-parseInt(_0x40760a(0x1a5))/0x1+parseInt(_0x40760a(0x1bb))/0x2+parseInt(_0x40760a(0x1c8))/0x3+parseInt(_0x40760a(0x1d1))/0x4*(parseInt(_0x40760a(0x1d5))/0x5)+parseInt(_0x40760a(0x19a))/0x6*(-parseInt(_0x40760a(0x1e3))/0x7)+-parseInt(_0x40760a(0x1bf))/0x8*(-parseInt(_0x40760a(0x1bd))/0x9)+parseInt(_0x40760a(0x1b8))/0xa*(-parseInt(_0x40760a(0x19c))/0xb);if(_0x3aec1f===_0x25b33a)break;else _0x264c95['push'](_0x264c95['shift']());}catch(_0x14dc35){_0x264c95['push'](_0x264c95['shift']());}}}(a51_0x31a2,0xad404));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function normalizeField(_0x5e187e){const _0x43db3b=a51_0xbfdd;if(_0x5e187e[_0x43db3b(0x1cc)])return null;const _0x3cfb8c=Boolean(_0x5e187e[_0x43db3b(0x1d9)]!==undefined||_0x5e187e[_0x43db3b(0x1d3)]!==undefined);let _0x306252={};if(!_0x3cfb8c&&typeof _0x5e187e[_0x43db3b(0x1c1)]==='string')try{_0x306252=JSON[_0x43db3b(0x1d7)](_0x5e187e[_0x43db3b(0x1c1)]);}catch{}const _0x409f8b=_0x3cfb8c?_0x5e187e[_0x43db3b(0x1df)]:_0x5e187e[_0x43db3b(0x1b7)],_0x2a75fb=_0x3cfb8c?_0x5e187e[_0x43db3b(0x1d9)]:_0x5e187e['name'],_0x96d611=_0x3cfb8c?_0x5e187e[_0x43db3b(0x1d3)]:_0x5e187e[_0x43db3b(0x1c2)]||_0x5e187e[_0x43db3b(0x1c0)],_0xaebe7f=_0x3cfb8c?_0x5e187e[_0x43db3b(0x199)]===!![]:_0x306252[_0x43db3b(0x199)]===!![],_0x356a80=_0x3cfb8c?_0x5e187e[_0x43db3b(0x1ce)]===!![]:_0x306252[_0x43db3b(0x1ce)]===!![],_0x4ea179=_0x3cfb8c?_0x5e187e[_0x43db3b(0x1ae)]??null:_0x306252[_0x43db3b(0x1ae)]??null,_0x267dad={'name':_0x409f8b,'displayName':_0x2a75fb||_0x409f8b,'type':_0x96d611,'dbType':_0x5e187e['dbType'],'pk':_0xaebe7f,'required':_0x356a80,'description':_0x5e187e[_0x43db3b(0x1d8)]||undefined};return Array[_0x43db3b(0x1dd)](_0x4ea179)&&_0x4ea179[_0x43db3b(0x1cb)]>0x0&&(_0x267dad['options']=_0x4ea179),_0x267dad;}function a51_0xbfdd(_0x2f1d5b,_0x1b19ef){_0x2f1d5b=_0x2f1d5b-0x195;const _0x31a2d4=a51_0x31a2();let _0xbfddbb=_0x31a2d4[_0x2f1d5b];return _0xbfddbb;}function parseJsonMaybe(_0x2f358e){const _0x2bef5f=a51_0xbfdd;if(typeof _0x2f358e!==_0x2bef5f(0x1d0))return _0x2f358e;try{return JSON[_0x2bef5f(0x1d7)](_0x2f358e);}catch{return _0x2f358e;}}function normalizeOperationEntry(_0x25fc98,_0x5c15cf){const _0x20ba33=a51_0xbfdd;if(!_0x5c15cf||typeof _0x5c15cf!==_0x20ba33(0x1b9))return null;if(!_0x5c15cf[_0x20ba33(0x195)]||!_0x5c15cf[_0x20ba33(0x1c7)])return null;const _0x4f1176={'name':_0x25fc98,'method':_0x5c15cf['method'],'path':_0x5c15cf[_0x20ba33(0x1c7)]};if(_0x5c15cf['host'])_0x4f1176[_0x20ba33(0x1be)]=_0x5c15cf['host'];if(_0x5c15cf['requestBody']!=null){const _0x3b763e=parseJsonMaybe(_0x5c15cf['requestBody']);_0x4f1176[_0x20ba33(0x1ab)]=_0x3b763e;}if(_0x5c15cf['responseBody']!=null){const _0x137ccc=parseJsonMaybe(_0x5c15cf['responseBody']);_0x4f1176[_0x20ba33(0x1a1)]=_0x137ccc;}if(_0x5c15cf[_0x20ba33(0x1c4)]!=null)_0x4f1176['beforeScriptId']=_0x5c15cf[_0x20ba33(0x1c4)];if(_0x5c15cf[_0x20ba33(0x1da)]!=null)_0x4f1176[_0x20ba33(0x1da)]=_0x5c15cf[_0x20ba33(0x1da)];if(Array[_0x20ba33(0x1dd)](_0x5c15cf[_0x20ba33(0x1b4)]))_0x4f1176[_0x20ba33(0x1b4)]=_0x5c15cf[_0x20ba33(0x1b4)];if(Array[_0x20ba33(0x1dd)](_0x5c15cf[_0x20ba33(0x1db)]))_0x4f1176[_0x20ba33(0x1db)]=_0x5c15cf[_0x20ba33(0x1db)];return _0x4f1176;}function summarizeDbtable(_0x3ecbb7){const _0x4718ec=a51_0xbfdd,_0x4f9dde={},_0x1ad052=[_0x4718ec(0x1ac),_0x4718ec(0x1e2),_0x4718ec(0x1b5),_0x4718ec(0x1ca),_0x4718ec(0x199),'allFields',_0x4718ec(0x1c9),_0x4718ec(0x1a3),_0x4718ec(0x19d),_0x4718ec(0x1de),_0x4718ec(0x1a8),_0x4718ec(0x197),_0x4718ec(0x1bc),_0x4718ec(0x1b2),_0x4718ec(0x1b1)];for(const _0x107b99 of _0x1ad052){if(_0x3ecbb7[_0x107b99]!==undefined)_0x4f9dde[_0x107b99]=_0x3ecbb7[_0x107b99];}return typeof _0x4f9dde[_0x4718ec(0x19b)]===_0x4718ec(0x1d0)&&_0x4f9dde[_0x4718ec(0x19b)][_0x4718ec(0x1cb)]>0x0&&(_0x4f9dde[_0x4718ec(0x1a4)]=_0x4f9dde[_0x4718ec(0x19b)][_0x4718ec(0x1af)](',')['map'](_0x104cca=>_0x104cca[_0x4718ec(0x19f)]())[_0x4718ec(0x1b0)](Boolean)),_0x4f9dde;}function a51_0x31a2(){const _0x3ccf95=['name','dataset','toField','dbName','8414dFQZVt','method','indexes','modifierIdField','formatRules','pkField','1680ZiCGNe','allFields','77loqEyU','updateTimeField','properties','trim','push','responseBody','fields','createTimeField','allFieldNames','671650CKrZej','dbtableConfig','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','creatorNameField','toDatasetCode','doVersion','requestBody','dbId','relatedPageInfoList','options','split','filter','dblinkInfoDTO','labelField','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','requestFields','tableName','source','code','728730KpWtZF','object','relations','563014xMnKqo','modifierNameField','603QXAawj','host','51256hHfGPc','dataType','extend','type','columnCodeListWithDeleted','beforeScriptId','alias','fromField','path','2499339BCHeSn','logicField','datasetKey','length','deleted','tableComment','required','map','string','17768ZQJGyC','read','doType','toTableName','770lxOVID','entries','parse','description','displayName','afterScriptId','responseFields','validateRules','isArray','creatorIdField'];a51_0x31a2=function(){return _0x3ccf95;};return a51_0x31a2();}function normalizeRelatedPages(_0x21ddfb){const _0xc359e4=a51_0xbfdd;if(!Array[_0xc359e4(0x1dd)](_0x21ddfb))return[];return _0x21ddfb['filter'](_0x471add=>_0x471add&&typeof _0x471add===_0xc359e4(0x1b9))[_0xc359e4(0x1cf)](_0x56b2e1=>({'id':_0x56b2e1['id'],'type':_0x56b2e1[_0xc359e4(0x1c2)],'code':_0x56b2e1[_0xc359e4(0x1b7)],'title':_0x56b2e1['title'],'deleted':_0x56b2e1[_0xc359e4(0x1cc)]===!![]}));}export const datasetDetail={'service':a51_0x4fd09a(0x1e0),'command':'detail','description':a51_0x4fd09a(0x1b3),'risk':a51_0x4fd09a(0x1d2),'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a51_0x4fd09a(0x1c5),'type':'string','description':a51_0x4fd09a(0x1a7)}],async 'execute'(_0x3e7b07){const _0x349c6a=a51_0x4fd09a,_0x398d14=await getDatasetDetail(_0x3e7b07['str']('code')),_0x7d7766=Array[_0x349c6a(0x1dd)](_0x398d14[_0x349c6a(0x1a2)])?_0x398d14[_0x349c6a(0x1a2)]:Array[_0x349c6a(0x1dd)](_0x398d14[_0x349c6a(0x19e)])?_0x398d14['properties']:[],_0x5a8663=_0x7d7766[_0x349c6a(0x1cf)](_0x3edae3=>normalizeField(_0x3edae3))[_0x349c6a(0x1b0)](_0x289521=>_0x289521!==null),_0x38bd5d=_0x398d14['operations']??{},_0x5a7f47=[];for(const [_0x322ecb,_0x550a5e]of Object[_0x349c6a(0x1d6)](_0x38bd5d)){const _0x364e57=normalizeOperationEntry(_0x322ecb,_0x550a5e);if(_0x364e57)_0x5a7f47[_0x349c6a(0x1a0)](_0x364e57);}const _0x200b87=_0x398d14[_0x349c6a(0x1a6)]??{},_0x56b88e=_0x398d14[_0x349c6a(0x1e0)]??{},_0x9cdeb5=_0x200b87[_0x349c6a(0x1ac)]!=null?{'id':_0x200b87[_0x349c6a(0x1ac)],'name':_0x200b87[_0x349c6a(0x1e2)]??null}:undefined;let _0x25d1df;return typeof _0x398d14['extend']===_0x349c6a(0x1d0)&&(_0x25d1df=parseJsonMaybe(_0x398d14[_0x349c6a(0x1c1)])),{'ok':!![],'data':{'id':_0x398d14['modelId']??_0x398d14['id'],'name':_0x398d14[_0x349c6a(0x1df)],'code':_0x398d14['modelCode']||_0x398d14[_0x349c6a(0x1b7)],'doVersion':_0x398d14[_0x349c6a(0x1aa)],'description':_0x398d14[_0x349c6a(0x1d8)]||_0x56b88e[_0x349c6a(0x1cd)]||undefined,'source':_0x398d14[_0x349c6a(0x1b6)]||_0x56b88e['sourceType'],'table':_0x200b87['tableName']||_0x56b88e['tableName'],'datasetKey':_0x200b87[_0x349c6a(0x1ca)],'pk':_0x200b87[_0x349c6a(0x199)],'db':_0x9cdeb5,'dbtable':summarizeDbtable(_0x200b87),'fields':_0x5a8663,'operations':_0x5a7f47,'indexes':Array[_0x349c6a(0x1dd)](_0x56b88e[_0x349c6a(0x196)])?_0x56b88e[_0x349c6a(0x196)]:[],'relations':Array[_0x349c6a(0x1dd)](_0x398d14[_0x349c6a(0x1ba)])?_0x398d14[_0x349c6a(0x1ba)][_0x349c6a(0x1cf)](_0x27f55b=>({'fromField':_0x27f55b[_0x349c6a(0x1c6)],'toDataset':_0x27f55b['toDatasetName'],'toCode':_0x27f55b[_0x349c6a(0x1a9)],'toTable':_0x27f55b[_0x349c6a(0x1d4)],'toField':_0x27f55b[_0x349c6a(0x1e1)],'labelField':_0x27f55b['toFieldLabel']||undefined})):[],'relatedPages':normalizeRelatedPages(_0x398d14[_0x349c6a(0x1ad)]),...Array[_0x349c6a(0x1dd)](_0x398d14[_0x349c6a(0x1c3)])?{'columnCodeListWithDeleted':_0x398d14[_0x349c6a(0x1c3)]}:{},'formatRules':Array[_0x349c6a(0x1dd)](_0x398d14[_0x349c6a(0x198)])?_0x398d14[_0x349c6a(0x198)]:[],'validateRules':Array['isArray'](_0x398d14['validateRules'])?_0x398d14[_0x349c6a(0x1dc)]:[],..._0x25d1df!==undefined?{'extend':_0x25d1df}:{},'stats':{'fieldCount':_0x5a8663[_0x349c6a(0x1cb)],'operationCount':_0x5a7f47[_0x349c6a(0x1cb)]}}};}};
@@ -1 +1 @@
1
- (function(_0x2d40c2,_0x310a35){const _0x3119ae=a51_0x11fe,_0x35aa5c=_0x2d40c2();while(!![]){try{const _0x1b4caa=parseInt(_0x3119ae(0x11c))/0x1*(parseInt(_0x3119ae(0x118))/0x2)+parseInt(_0x3119ae(0x117))/0x3*(parseInt(_0x3119ae(0x116))/0x4)+parseInt(_0x3119ae(0x11a))/0x5*(parseInt(_0x3119ae(0x114))/0x6)+-parseInt(_0x3119ae(0x115))/0x7+-parseInt(_0x3119ae(0x113))/0x8*(-parseInt(_0x3119ae(0x112))/0x9)+parseInt(_0x3119ae(0x119))/0xa+-parseInt(_0x3119ae(0x11b))/0xb;if(_0x1b4caa===_0x310a35)break;else _0x35aa5c['push'](_0x35aa5c['shift']());}catch(_0x24cd3){_0x35aa5c['push'](_0x35aa5c['shift']());}}}(a51_0x2375,0xdfffe));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';function a51_0x11fe(_0x34cbc8,_0x362d80){_0x34cbc8=_0x34cbc8-0x112;const _0x23751f=a51_0x2375();let _0x11fe31=_0x23751f[_0x34cbc8];return _0x11fe31;}function a51_0x2375(){const _0x548850=['9922590pvPIho','20TjamCc','28312911OaKmsu','1203NQciJD','797346VrTmBS','104WmjgXv','447858TagqXH','5807613jVrVyH','68gDfNbD','125364FMiUOV','1942XVrFNx'];a51_0x2375=function(){return _0x548850;};return a51_0x2375();}import{datasetOperations}from'../../commands/dataset/operations.js';import{datasetLinks}from'../../commands/dataset/links.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetOperations,datasetLinks];
1
+ (function(_0x51c531,_0x2e3fa7){const _0x49d1c1=a52_0xcf68,_0x34fd42=_0x51c531();while(!![]){try{const _0x1c083f=-parseInt(_0x49d1c1(0x16b))/0x1*(-parseInt(_0x49d1c1(0x168))/0x2)+-parseInt(_0x49d1c1(0x165))/0x3+parseInt(_0x49d1c1(0x166))/0x4*(parseInt(_0x49d1c1(0x169))/0x5)+parseInt(_0x49d1c1(0x167))/0x6+parseInt(_0x49d1c1(0x16d))/0x7+-parseInt(_0x49d1c1(0x16a))/0x8+-parseInt(_0x49d1c1(0x16c))/0x9;if(_0x1c083f===_0x2e3fa7)break;else _0x34fd42['push'](_0x34fd42['shift']());}catch(_0x3d7945){_0x34fd42['push'](_0x34fd42['shift']());}}}(a52_0x495a,0x8ac88));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetOperations}from'../../commands/dataset/operations.js';import{datasetLinks}from'../../commands/dataset/links.js';import{datasetLinkCreate}from'../../commands/dataset/link-create.js';import{datasetLinkUpdate}from'../../commands/dataset/link-update.js';function a52_0xcf68(_0x28427a,_0x30634d){_0x28427a=_0x28427a-0x165;const _0x495a8a=a52_0x495a();let _0xcf68c7=_0x495a8a[_0x28427a];return _0xcf68c7;}import{datasetLinkDelete}from'../../commands/dataset/link-delete.js';import{datasetDelete}from'../../commands/dataset/delete.js';function a52_0x495a(){const _0x3d6d8a=['646296xgGKey','36584MwJoaa','6377430uJXxaB','737846uQqANc','45ujRKOK','235976AdzWql','3BIEkVr','16208325DCcaRt','2536254hFoCGQ'];a52_0x495a=function(){return _0x3d6d8a;};return a52_0x495a();}export const datasetDefinitions=[datasetList,datasetDetail,datasetOperations,datasetLinks,datasetLinkCreate,datasetLinkUpdate,datasetLinkDelete,datasetDelete];
@@ -0,0 +1 @@
1
+ const a53_0x223dca=a53_0x36e4;(function(_0x12bbaa,_0x34af0d){const _0x11a077=a53_0x36e4,_0x4fe2e6=_0x12bbaa();while(!![]){try{const _0xbcd1d6=-parseInt(_0x11a077(0x11e))/0x1*(parseInt(_0x11a077(0x116))/0x2)+parseInt(_0x11a077(0x10d))/0x3+parseInt(_0x11a077(0x113))/0x4+parseInt(_0x11a077(0x11f))/0x5*(parseInt(_0x11a077(0x111))/0x6)+-parseInt(_0x11a077(0x114))/0x7*(parseInt(_0x11a077(0x117))/0x8)+parseInt(_0x11a077(0x11c))/0x9*(-parseInt(_0x11a077(0x112))/0xa)+-parseInt(_0x11a077(0x124))/0xb*(-parseInt(_0x11a077(0x10f))/0xc);if(_0xbcd1d6===_0x34af0d)break;else _0x4fe2e6['push'](_0x4fe2e6['shift']());}catch(_0x56267f){_0x4fe2e6['push'](_0x4fe2e6['shift']());}}}(a53_0x116b,0x3a494));function a53_0x36e4(_0x39b485,_0x16544a){_0x39b485=_0x39b485-0x10d;const _0x116b4b=a53_0x116b();let _0x36e45b=_0x116b4b[_0x39b485];return _0x36e45b;}import{createErRelation}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a53_0x116b(){const _0x22e7f4=['relationKey','505668aPTVVm','write','766296Kzgxjs','757420rMmWPK','1498664lrwVsu','49rThbkS','Created\x20dataset\x20link:\x20','13258ZyIRkV','156088mukDtU','column','Would\x20create\x20dataset\x20link\x20','str','table','9VOHQcm','POST','63MqBCCY','5DaxBUq','Use\x20dataset\x20link-update\x20for\x20metadata\x20changes.\x20Do\x20not\x20automate\x20delete+create\x20as\x20an\x20atomic\x20edit;\x20confirm\x20both\x20dry-runs\x20with\x20the\x20user\x20before\x20changing\x20relation\x20identity.','/smartapi/question/er-config/erCreate','link-create','appCode','77ozfmyJ','from','Create\x20one\x20dataset\x20link\x20relation\x20in\x20the\x20ER\x20graph','dbId','213993ddnLDT'];a53_0x116b=function(){return _0x22e7f4;};return a53_0x116b();}import{buildMutationData,DB_FLAG,FROM_COLUMN_FLAG,FROM_TABLE_FLAG,CARDINALITY_FLAG,findExistingLink,readLinkInput,relationToBackend,resolveRequiredDb,TO_COLUMN_FLAG,TO_LABEL_COLUMN_FLAG,TO_TABLE_FLAG}from'../../commands/dataset/link-shared.js';const BACKEND_PATH=a53_0x223dca(0x121);export const datasetLinkCreate={'service':'dataset','command':a53_0x223dca(0x122),'description':a53_0x223dca(0x126),'risk':a53_0x223dca(0x110),'flags':[DB_FLAG,FROM_TABLE_FLAG,FROM_COLUMN_FLAG,TO_TABLE_FLAG,TO_COLUMN_FLAG,TO_LABEL_COLUMN_FLAG,CARDINALITY_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x4eecb2){readLinkInput(_0x4eecb2,{'includeLabelAndCardinality':!![]});},async 'dryRun'(_0x2a592a){const _0x4ae161=a53_0x223dca,_0xbb3e11=await resolveRequiredDb(_0x2a592a[_0x4ae161(0x123)],_0x2a592a[_0x4ae161(0x11a)]('db')),_0xbd9c65=readLinkInput(_0x2a592a,{'includeLabelAndCardinality':!![]});return{'method':_0x4ae161(0x11d),'url':BACKEND_PATH,'body':{'appCode':_0x2a592a[_0x4ae161(0x123)],'dblinkId':_0xbb3e11[_0x4ae161(0x127)],'relation':relationToBackend(_0xbd9c65)},'description':_0x4ae161(0x119)+_0xbd9c65['from']['table']+'.'+_0xbd9c65['from'][_0x4ae161(0x118)]+'\x20->\x20'+_0xbd9c65['to'][_0x4ae161(0x11b)]+'.'+_0xbd9c65['to']['column']};},async 'execute'(_0x1a4837){const _0x64a915=a53_0x223dca,_0x29d0f1=await resolveRequiredDb(_0x1a4837[_0x64a915(0x123)],_0x1a4837['str']('db')),_0x274183=readLinkInput(_0x1a4837,{'includeLabelAndCardinality':!![]}),_0x33a339=await findExistingLink(_0x1a4837[_0x64a915(0x123)],_0x29d0f1['dbId'],_0x274183);if(_0x33a339)throw CliErrors['validation']('relation_conflict:\x20relation\x20already\x20exists:\x20'+_0x33a339[_0x64a915(0x10e)],_0x64a915(0x120));return await createErRelation({'appCode':_0x1a4837['appCode'],'dblinkId':_0x29d0f1[_0x64a915(0x127)],'relation':relationToBackend(_0x274183)}),{'ok':!![],'data':buildMutationData({'operation':'create','appCode':_0x1a4837['appCode'],'db':_0x29d0f1,'input':_0x274183,'before':null,'dryRun':![],'backendPath':BACKEND_PATH}),'message':_0x64a915(0x115)+_0x274183[_0x64a915(0x125)][_0x64a915(0x11b)]+'.'+_0x274183[_0x64a915(0x125)][_0x64a915(0x118)]+'\x20->\x20'+_0x274183['to'][_0x64a915(0x11b)]+'.'+_0x274183['to'][_0x64a915(0x118)]};}};
@@ -0,0 +1 @@
1
+ const a54_0x54cdb7=a54_0x3cb4;(function(_0x30ed83,_0x431420){const _0x3278e8=a54_0x3cb4,_0x5f22c7=_0x30ed83();while(!![]){try{const _0x434467=parseInt(_0x3278e8(0xf9))/0x1+parseInt(_0x3278e8(0xf8))/0x2*(parseInt(_0x3278e8(0xfc))/0x3)+parseInt(_0x3278e8(0xfd))/0x4+parseInt(_0x3278e8(0xe7))/0x5*(-parseInt(_0x3278e8(0xe8))/0x6)+parseInt(_0x3278e8(0xe9))/0x7*(parseInt(_0x3278e8(0xed))/0x8)+parseInt(_0x3278e8(0xf2))/0x9+-parseInt(_0x3278e8(0xf3))/0xa*(parseInt(_0x3278e8(0xf0))/0xb);if(_0x434467===_0x431420)break;else _0x5f22c7['push'](_0x5f22c7['shift']());}catch(_0x208f08){_0x5f22c7['push'](_0x5f22c7['shift']());}}}(a54_0x7683,0xf1b29));import{deleteErRelation}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a54_0x7683(){const _0x1c0efa=['256dHAxng','column','high-risk-write','11sQsDzX','link-delete','11450016eeGuKA','23661570wZbgCy','dataset','table','Would\x20delete\x20dataset\x20link\x20','validation','24994UoMaYc','976075AJZpFw','appCode','relation_not_found:\x20','90jdFbQz','2889320nqPMxK','str','\x20->\x20','/smartapi/question/er-config/erDelete','14945cIYDpn','1542aydcSQ','170359lQDQdg','dbId','from','Delete\x20one\x20dataset\x20link\x20relation\x20from\x20the\x20ER\x20graph'];a54_0x7683=function(){return _0x1c0efa;};return a54_0x7683();}import{buildMutationData,DB_FLAG,FROM_COLUMN_FLAG,FROM_TABLE_FLAG,findExistingLink,readLinkInput,relationToBackend,resolveRequiredDb,TO_COLUMN_FLAG,TO_TABLE_FLAG}from'../../commands/dataset/link-shared.js';const BACKEND_PATH=a54_0x54cdb7(0x100);function a54_0x3cb4(_0x54924f,_0x306366){_0x54924f=_0x54924f-0xe7;const _0x768387=a54_0x7683();let _0x3cb492=_0x768387[_0x54924f];return _0x3cb492;}export const datasetLinkDelete={'service':a54_0x54cdb7(0xf4),'command':a54_0x54cdb7(0xf1),'description':a54_0x54cdb7(0xec),'risk':a54_0x54cdb7(0xef),'flags':[DB_FLAG,FROM_TABLE_FLAG,FROM_COLUMN_FLAG,TO_TABLE_FLAG,TO_COLUMN_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3324c7){readLinkInput(_0x3324c7);},async 'dryRun'(_0x181e98){const _0x2c156f=a54_0x54cdb7,_0x42845a=await resolveRequiredDb(_0x181e98[_0x2c156f(0xfa)],_0x181e98[_0x2c156f(0xfe)]('db')),_0x50ccf7=readLinkInput(_0x181e98);return{'method':'POST','url':BACKEND_PATH,'body':{'appCode':_0x181e98[_0x2c156f(0xfa)],'dblinkId':_0x42845a['dbId'],'relation':relationToBackend(_0x50ccf7)},'description':_0x2c156f(0xf6)+_0x50ccf7[_0x2c156f(0xeb)][_0x2c156f(0xf5)]+'.'+_0x50ccf7[_0x2c156f(0xeb)][_0x2c156f(0xee)]+_0x2c156f(0xff)+_0x50ccf7['to'][_0x2c156f(0xf5)]+'.'+_0x50ccf7['to'][_0x2c156f(0xee)]};},async 'execute'(_0x106fc0){const _0x29db1c=a54_0x54cdb7,_0xc56500=await resolveRequiredDb(_0x106fc0[_0x29db1c(0xfa)],_0x106fc0[_0x29db1c(0xfe)]('db')),_0x2d6165=readLinkInput(_0x106fc0),_0x3370a9=await findExistingLink(_0x106fc0[_0x29db1c(0xfa)],_0xc56500[_0x29db1c(0xea)],_0x2d6165);if(!_0x3370a9)throw CliErrors[_0x29db1c(0xf7)](_0x29db1c(0xfb)+_0x2d6165[_0x29db1c(0xeb)]['table']+'.'+_0x2d6165[_0x29db1c(0xeb)]['column']+_0x29db1c(0xff)+_0x2d6165['to'][_0x29db1c(0xf5)]+'.'+_0x2d6165['to'][_0x29db1c(0xee)],'Run\x20dataset\x20links\x20--db\x20first\x20to\x20inspect\x20the\x20current\x20relation\x20graph.');return await deleteErRelation({'appCode':_0x106fc0[_0x29db1c(0xfa)],'dblinkId':_0xc56500['dbId'],'relation':relationToBackend(_0x2d6165)}),{'ok':!![],'data':buildMutationData({'operation':'delete','appCode':_0x106fc0[_0x29db1c(0xfa)],'db':_0xc56500,'input':_0x2d6165,'before':_0x3370a9,'dryRun':![],'backendPath':BACKEND_PATH}),'message':'Deleted\x20dataset\x20link:\x20'+_0x2d6165[_0x29db1c(0xeb)][_0x29db1c(0xf5)]+'.'+_0x2d6165[_0x29db1c(0xeb)][_0x29db1c(0xee)]+_0x29db1c(0xff)+_0x2d6165['to']['table']+'.'+_0x2d6165['to'][_0x29db1c(0xee)]};}};
@@ -0,0 +1 @@
1
+ const a55_0x4d4725=a55_0x87f7;(function(_0x477c85,_0x3a52a4){const _0x493e83=a55_0x87f7,_0x22e1d2=_0x477c85();while(!![]){try{const _0x2ecc88=parseInt(_0x493e83(0x152))/0x1*(parseInt(_0x493e83(0x16b))/0x2)+-parseInt(_0x493e83(0x15b))/0x3*(-parseInt(_0x493e83(0x13f))/0x4)+parseInt(_0x493e83(0x147))/0x5+-parseInt(_0x493e83(0x13b))/0x6*(parseInt(_0x493e83(0x13a))/0x7)+parseInt(_0x493e83(0x171))/0x8+parseInt(_0x493e83(0x166))/0x9+-parseInt(_0x493e83(0x14b))/0xa*(parseInt(_0x493e83(0x167))/0xb);if(_0x2ecc88===_0x3a52a4)break;else _0x22e1d2['push'](_0x22e1d2['shift']());}catch(_0x135e79){_0x22e1d2['push'](_0x22e1d2['shift']());}}}(a55_0x5768,0x2b235));import{getErConfig}from'../../core/api-client.js';function a55_0x5768(){const _0x36ad8b=['387170CTowhR','--to-label-column','to-table','ONE_TO_MANY','Target\x20table\x20name','from-table','to-label-column','206575GiWwPc','\x20is\x20required.','string','trim','cardinality','from-column','str','tableName','table','126qriNUt','--cardinality','map','before','from','fromField','validation','join','--from-column','delete','datasets','1191600JAykJo','88LdxjPB','condition','backendPath','Source\x20column\x20name','2OSCNrp','toField','joinType','Source\x20table\x20name','--to-table','dbName','1177648PgcLNV','datasetCode','--to-column','operation','dataset-link.v1','--from-table','dbId','push','column','input','toUpperCase','MANY_TO_MANY','labelColumn','Allowed\x20values:\x20','Database\x20name\x20or\x20dblink\x20ID\x20from\x20dataset\x20links','255038FaeqCj','42hhcfdJ','Database\x20is\x20required.','toLowerCase','appCode','14668NfTKFt','get','to-column','Current\x20ER\x20read\x20API\x20does\x20not\x20expose\x20refTableLabelName;\x20before.to.labelColumn\x20is\x20unavailable.','ONE_TO_ONE','toDatasetName','Target\x20column\x20name','relations','506360kMXlgC','toDataset','includeLabelAndCardinality','Target\x20display/label\x20column\x20name\x20(editable\x20metadata,\x20not\x20selector)'];a55_0x5768=function(){return _0x36ad8b;};return a55_0x5768();}import{resolveOneDb}from'../../core/db-resolver.js';import{CliErrors}from'../../errors.js';export const DATASET_LINK_PROTOCOL=a55_0x4d4725(0x175);export const CARDINALITIES=[a55_0x4d4725(0x143),a55_0x4d4725(0x14e),'MANY_TO_ONE',a55_0x4d4725(0x17c)];export const DB_FLAG={'name':'db','type':a55_0x4d4725(0x154),'required':!![],'description':a55_0x4d4725(0x139)};export const FROM_TABLE_FLAG={'name':'from-table','type':a55_0x4d4725(0x154),'required':!![],'description':a55_0x4d4725(0x16e)};export const FROM_COLUMN_FLAG={'name':a55_0x4d4725(0x157),'type':a55_0x4d4725(0x154),'required':!![],'description':a55_0x4d4725(0x16a)};export const TO_TABLE_FLAG={'name':a55_0x4d4725(0x14d),'type':a55_0x4d4725(0x154),'required':!![],'description':a55_0x4d4725(0x14f)};export const TO_COLUMN_FLAG={'name':'to-column','type':a55_0x4d4725(0x154),'required':!![],'description':a55_0x4d4725(0x145)};export const TO_LABEL_COLUMN_FLAG={'name':a55_0x4d4725(0x151),'type':a55_0x4d4725(0x154),'required':!![],'description':a55_0x4d4725(0x14a)};function a55_0x87f7(_0x157833,_0x585a5a){_0x157833=_0x157833-0x139;const _0x576894=a55_0x5768();let _0x87f78f=_0x576894[_0x157833];return _0x87f78f;}export const CARDINALITY_FLAG={'name':a55_0x4d4725(0x156),'type':'string','required':!![],'enum':[...CARDINALITIES],'description':'Relation\x20cardinality\x20(editable\x20metadata)'};export function readLinkInput(_0x452514,_0x28a081){const _0x344b8c=a55_0x4d4725,_0x5295f0={'from':{'table':requiredTrim(_0x452514[_0x344b8c(0x158)](_0x344b8c(0x150)),_0x344b8c(0x176)),'column':requiredTrim(_0x452514[_0x344b8c(0x158)](_0x344b8c(0x157)),_0x344b8c(0x163))},'to':{'table':requiredTrim(_0x452514['str'](_0x344b8c(0x14d)),_0x344b8c(0x16f)),'column':requiredTrim(_0x452514['str'](_0x344b8c(0x141)),_0x344b8c(0x173))}};return _0x28a081?.[_0x344b8c(0x149)]&&(_0x5295f0['to']['labelColumn']=requiredTrim(_0x452514[_0x344b8c(0x158)](_0x344b8c(0x151)),_0x344b8c(0x14c)),_0x5295f0[_0x344b8c(0x156)]=normalizeCardinality(_0x452514[_0x344b8c(0x158)](_0x344b8c(0x156)))),_0x5295f0;}export function relationToBackend(_0x4f703d){const _0x5f06c7=a55_0x4d4725;return{'tableName':_0x4f703d['from'][_0x5f06c7(0x15a)],'columnName':_0x4f703d[_0x5f06c7(0x15f)]['column'],'refTableName':_0x4f703d['to'][_0x5f06c7(0x15a)],'refColumnName':_0x4f703d['to'][_0x5f06c7(0x179)],..._0x4f703d['to'][_0x5f06c7(0x17d)]?{'refTableLabelName':_0x4f703d['to'][_0x5f06c7(0x17d)]}:{},..._0x4f703d[_0x5f06c7(0x156)]?{'cardinality':_0x4f703d[_0x5f06c7(0x156)]}:{}};}export async function resolveRequiredDb(_0x4c2e1f,_0x124176){const _0x5479ce=a55_0x4d4725,{db:_0x24982a,error:_0x25fe27}=await resolveOneDb(_0x4c2e1f,_0x124176['trim']());if(_0x25fe27||!_0x24982a)throw CliErrors[_0x5479ce(0x161)](_0x25fe27||_0x5479ce(0x13c));return _0x24982a;}export async function findExistingLink(_0x5502b3,_0x27c185,_0x19fadc){const _0x4f6fc3=await getErConfig(_0x5502b3,_0x27c185);return findLinkInConfig(_0x4f6fc3,_0x27c185,_0x19fadc);}export function findLinkInConfig(_0x128d3c,_0x560435,_0x3baae6){const _0x38008f=a55_0x4d4725,_0x4139ad=new Map((_0x128d3c['datasets']??[])[_0x38008f(0x15d)](_0x9cbc51=>[_0x9cbc51[_0x38008f(0x172)],_0x9cbc51]));for(const _0x5d84dd of _0x128d3c[_0x38008f(0x165)]??[]){const _0x599683=_0x5d84dd[_0x38008f(0x159)];if(!sameName(_0x599683,_0x3baae6[_0x38008f(0x15f)][_0x38008f(0x15a)]))continue;for(const _0x2d6602 of _0x5d84dd[_0x38008f(0x146)]??[]){const _0x117687=_0x4139ad[_0x38008f(0x140)](_0x2d6602[_0x38008f(0x148)]),_0x4e19e1=_0x117687?.[_0x38008f(0x159)];if(!_0x4e19e1)continue;if(sameName(_0x2d6602[_0x38008f(0x160)],_0x3baae6[_0x38008f(0x15f)][_0x38008f(0x179)])&&sameName(_0x4e19e1,_0x3baae6['to']['table'])&&sameName(_0x2d6602['toField'],_0x3baae6['to']['column'])){const _0x5d1dac={'relationKey':buildRelationKey(_0x560435,{'from':{'table':_0x599683,'column':_0x2d6602['fromField']},'to':{'table':_0x4e19e1,'column':_0x2d6602['toField']}}),'from':{'table':_0x599683,'column':_0x2d6602['fromField']},'to':{'table':_0x4e19e1,'column':_0x2d6602[_0x38008f(0x16c)],'labelColumn':null,..._0x117687?.[_0x38008f(0x172)]?{'datasetCode':_0x117687[_0x38008f(0x172)]}:{},..._0x2d6602[_0x38008f(0x144)]?{'datasetName':_0x2d6602[_0x38008f(0x144)]}:{}},'cardinality':_0x2d6602[_0x38008f(0x16d)]||undefined,'condition':_0x2d6602[_0x38008f(0x168)]??null};return _0x5d1dac;}}}return null;}export function buildRelationKey(_0x1dda0e,_0x3473c9){const _0x327a8b=a55_0x4d4725;return _0x1dda0e+':'+_0x3473c9[_0x327a8b(0x15f)][_0x327a8b(0x15a)]+'.'+_0x3473c9[_0x327a8b(0x15f)][_0x327a8b(0x179)]+'->'+_0x3473c9['to'][_0x327a8b(0x15a)]+'.'+_0x3473c9['to'][_0x327a8b(0x179)];}export function buildMutationData(_0x15211a){const _0x30f33b=a55_0x4d4725,_0x498193=_0x15211a[_0x30f33b(0x174)]===_0x30f33b(0x164)?null:{'from':_0x15211a[_0x30f33b(0x17a)][_0x30f33b(0x15f)],'to':_0x15211a['input']['to'],'cardinality':_0x15211a['input'][_0x30f33b(0x156)]},_0x232caa=[];return _0x15211a[_0x30f33b(0x15e)]&&_0x232caa[_0x30f33b(0x178)](_0x30f33b(0x142)),{'protocol':DATASET_LINK_PROTOCOL,'operation':_0x15211a[_0x30f33b(0x174)],'appCode':_0x15211a[_0x30f33b(0x13e)],'db':{'id':_0x15211a['db']['dbId'],'name':_0x15211a['db'][_0x30f33b(0x170)]},'relationKey':buildRelationKey(_0x15211a['db'][_0x30f33b(0x177)],_0x15211a['input']),'before':_0x15211a[_0x30f33b(0x15e)],'after':_0x498193,'dryRun':_0x15211a['dryRun'],'backend':{'method':'POST','path':_0x15211a[_0x30f33b(0x169)]},'warnings':_0x232caa};}function requiredTrim(_0x308f4e,_0x594690){const _0x2a9907=a55_0x4d4725,_0x2f8e2b=_0x308f4e[_0x2a9907(0x155)]();if(!_0x2f8e2b)throw CliErrors['validation'](_0x594690+_0x2a9907(0x153));return _0x2f8e2b;}function normalizeCardinality(_0x5e8965){const _0xb3ff53=a55_0x4d4725,_0x3ad5a3=requiredTrim(_0x5e8965,_0xb3ff53(0x15c))[_0xb3ff53(0x17b)]();if(!CARDINALITIES['includes'](_0x3ad5a3))throw CliErrors[_0xb3ff53(0x161)]('Invalid\x20--cardinality:\x20'+_0x5e8965,_0xb3ff53(0x17e)+CARDINALITIES[_0xb3ff53(0x162)](',\x20'));return _0x3ad5a3;}function sameName(_0x4f21f7,_0x3a5247){const _0x138c8c=a55_0x4d4725;return(_0x4f21f7??'')[_0x138c8c(0x155)]()[_0x138c8c(0x13d)]()===(_0x3a5247??'')['trim']()[_0x138c8c(0x13d)]();}
@@ -0,0 +1 @@
1
+ const a56_0x4f2008=a56_0x3d24;(function(_0x6a8b59,_0x41bd42){const _0x45f6e4=a56_0x3d24,_0x3aa239=_0x6a8b59();while(!![]){try{const _0x5b0b77=-parseInt(_0x45f6e4(0x1ed))/0x1+parseInt(_0x45f6e4(0x1f1))/0x2+-parseInt(_0x45f6e4(0x1fa))/0x3+parseInt(_0x45f6e4(0x1f8))/0x4+-parseInt(_0x45f6e4(0x1f5))/0x5+-parseInt(_0x45f6e4(0x1f3))/0x6+parseInt(_0x45f6e4(0x1f7))/0x7*(parseInt(_0x45f6e4(0x1fd))/0x8);if(_0x5b0b77===_0x41bd42)break;else _0x3aa239['push'](_0x3aa239['shift']());}catch(_0x4318c0){_0x3aa239['push'](_0x3aa239['shift']());}}}(a56_0xf793,0xad23b));import{updateErRelation}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a56_0xf793(){const _0x3c9e36=['dataset','Updated\x20dataset\x20link:\x20','1414800FLajvh','relation_not_found:\x20','442686Yucsoy','update','4973035TFSlHs','/smartapi/question/er-config/update-single','12775iswftO','3538456flzgdg','Would\x20update\x20dataset\x20link\x20','3950316shOLfq','appCode','Use\x20dataset\x20link-create\x20to\x20create\x20a\x20new\x20relation.','11000fXMRSP','table','str','link-update','Update\x20one\x20dataset\x20link\x20relation\x20metadata\x20in\x20the\x20ER\x20graph','dbId','column','validation','1007050kqYiWd','from'];a56_0xf793=function(){return _0x3c9e36;};return a56_0xf793();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a56_0x3d24(_0x142fb3,_0x4988d9){_0x142fb3=_0x142fb3-0x1e9;const _0xf79320=a56_0xf793();let _0x3d2478=_0xf79320[_0x142fb3];return _0x3d2478;}import{buildMutationData,DB_FLAG,FROM_COLUMN_FLAG,FROM_TABLE_FLAG,CARDINALITY_FLAG,findExistingLink,readLinkInput,relationToBackend,resolveRequiredDb,TO_COLUMN_FLAG,TO_LABEL_COLUMN_FLAG,TO_TABLE_FLAG}from'../../commands/dataset/link-shared.js';const BACKEND_PATH=a56_0x4f2008(0x1f6);export const datasetLinkUpdate={'service':a56_0x4f2008(0x1ef),'command':a56_0x4f2008(0x200),'description':a56_0x4f2008(0x1e9),'risk':'write','flags':[DB_FLAG,FROM_TABLE_FLAG,FROM_COLUMN_FLAG,TO_TABLE_FLAG,TO_COLUMN_FLAG,TO_LABEL_COLUMN_FLAG,CARDINALITY_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x472a56){readLinkInput(_0x472a56,{'includeLabelAndCardinality':!![]});},async 'dryRun'(_0x578e8c){const _0x1bfd50=a56_0x4f2008,_0x3f5293=await resolveRequiredDb(_0x578e8c[_0x1bfd50(0x1fb)],_0x578e8c[_0x1bfd50(0x1ff)]('db')),_0x2eed08=readLinkInput(_0x578e8c,{'includeLabelAndCardinality':!![]});return{'method':'POST','url':BACKEND_PATH,'body':{'appCode':_0x578e8c[_0x1bfd50(0x1fb)],'dblinkId':_0x3f5293[_0x1bfd50(0x1ea)],'relation':relationToBackend(_0x2eed08)},'description':_0x1bfd50(0x1f9)+_0x2eed08[_0x1bfd50(0x1ee)][_0x1bfd50(0x1fe)]+'.'+_0x2eed08[_0x1bfd50(0x1ee)][_0x1bfd50(0x1eb)]+'\x20->\x20'+_0x2eed08['to']['table']+'.'+_0x2eed08['to'][_0x1bfd50(0x1eb)]};},async 'execute'(_0x56610a){const _0x20301=a56_0x4f2008,_0x1a2ea7=await resolveRequiredDb(_0x56610a[_0x20301(0x1fb)],_0x56610a[_0x20301(0x1ff)]('db')),_0x3e6aa2=readLinkInput(_0x56610a,{'includeLabelAndCardinality':!![]}),_0x1d22ca=await findExistingLink(_0x56610a['appCode'],_0x1a2ea7['dbId'],_0x3e6aa2);if(!_0x1d22ca)throw CliErrors[_0x20301(0x1ec)](_0x20301(0x1f2)+_0x3e6aa2['from'][_0x20301(0x1fe)]+'.'+_0x3e6aa2[_0x20301(0x1ee)][_0x20301(0x1eb)]+'\x20->\x20'+_0x3e6aa2['to'][_0x20301(0x1fe)]+'.'+_0x3e6aa2['to'][_0x20301(0x1eb)],_0x20301(0x1fc));return await updateErRelation({'appCode':_0x56610a['appCode'],'dblinkId':_0x1a2ea7[_0x20301(0x1ea)],'relation':relationToBackend(_0x3e6aa2)}),{'ok':!![],'data':buildMutationData({'operation':_0x20301(0x1f4),'appCode':_0x56610a[_0x20301(0x1fb)],'db':_0x1a2ea7,'input':_0x3e6aa2,'before':_0x1d22ca,'dryRun':![],'backendPath':BACKEND_PATH}),'message':_0x20301(0x1f0)+_0x3e6aa2['from'][_0x20301(0x1fe)]+'.'+_0x3e6aa2['from']['column']+'\x20->\x20'+_0x3e6aa2['to'][_0x20301(0x1fe)]+'.'+_0x3e6aa2['to']['column']};}};