@lovrabet/rabetbase-cli 2.1.4 → 2.1.6-beta.0
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.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/add.js +1 -1
- package/lib/commands/app/discover.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/remove.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app/use.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/filter.js +1 -0
- package/lib/commands/data/getOne.js +1 -0
- package/lib/commands/data/index.js +1 -0
- package/lib/commands/data/shared.js +1 -0
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/links.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/update.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/standard-page-status.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/non-interactive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/init.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/save.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/copy-directory.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -0
- package/lib/utils/platform.js +1 -1
- package/lib/utils/rules-cdn.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +4 -4
- package/templates/skill/SKILL.md.tpl +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a34_0xb0e82b=a34_0x5897;function a34_0x44bb(){const _0x48917b=['https://registry.npmjs.org/','version','execPath','/latest','succeed','coerce','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','npm','Unable\x20to\x20check\x20for\x20updates','Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)','\x20→\x20','cli','stableVersion','Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','\x20\x20Try\x20manually:\x20','5542038QpaapE','3745dShJzA','Version\x20comparison\x20failed','timeout','error','message','16886250IYYfnw','write','8835248AdAkOQ','13380iqeMlJ','176003mMlZKn','unknown','red','gray','log','10620mUQJOf','bun','@latest','Current\x20version:\x20','1161kibHeF','start','json','...','3462515XbNBzw','includes','\x20install\x20-g\x20','4GhaWKW','toLowerCase','fail'];a34_0x44bb=function(){return _0x48917b;};return a34_0x44bb();}(function(_0x11770d,_0xabe4c4){const _0x3917dc=a34_0x5897,_0x5603d4=_0x11770d();while(!![]){try{const _0x30c3f9=-parseInt(_0x3917dc(0x219))/0x1*(parseInt(_0x3917dc(0x1fc))/0x2)+-parseInt(_0x3917dc(0x1f5))/0x3*(parseInt(_0x3917dc(0x1f1))/0x4)+-parseInt(_0x3917dc(0x210))/0x5*(parseInt(_0x3917dc(0x218))/0x6)+parseInt(_0x3917dc(0x1f9))/0x7+parseInt(_0x3917dc(0x217))/0x8+parseInt(_0x3917dc(0x20f))/0x9+parseInt(_0x3917dc(0x215))/0xa;if(_0x30c3f9===_0xabe4c4)break;else _0x5603d4['push'](_0x5603d4['shift']());}catch(_0x5a3f4f){_0x5603d4['push'](_0x5603d4['shift']());}}}(a34_0x44bb,0xd06c1));import a34_0x5a4c7b from'chalk';import a34_0x12ccd5 from'ora';import a34_0x2ecfe3 from'semver';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 a34_0x5897(_0x4949e1,_0x33704f){_0x4949e1=_0x4949e1-0x1f0;const _0x44bbc8=a34_0x44bb();let _0x58971f=_0x44bbc8[_0x4949e1];return _0x58971f;}function getCurrentVersion(){const _0x3b7d72=a34_0x5897;return GIT_COMMIT!==_0x3b7d72(0x21a)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x4e45d5=a34_0x5897,_0x136947=process[_0x4e45d5(0x201)][_0x4e45d5(0x1fd)]();if(_0x136947[_0x4e45d5(0x1fa)](_0x4e45d5(0x1f2)))return'bun';return _0x4e45d5(0x207);}async function fetchLatestNpmVersion(){const _0x1e70e0=a34_0x5897;try{const _0x239594=await fetch(_0x1e70e0(0x1ff)+NPM_PACKAGE_NAME+_0x1e70e0(0x202),{'signal':AbortSignal[_0x1e70e0(0x212)](0x2710)});if(!_0x239594['ok'])return null;const _0x36bf4f=await _0x239594[_0x1e70e0(0x1f7)]();return _0x36bf4f[_0x1e70e0(0x200)]??null;}catch{return null;}}async function fetchLatestVersion(){const _0x382e52=a34_0x5897,_0x373327=await fetchLatestNpmVersion();if(_0x373327)return _0x373327;const _0x5d5ac6=await getCdnConfig();return _0x5d5ac6?.[_0x382e52(0x20b)]?.[_0x382e52(0x20c)]??null;}async function execute(_0x467c55){const _0x944aec=a34_0x5897,_0x5efe78=getCurrentVersion();console[_0x944aec(0x1f0)](_0x944aec(0x1f4)+_0x5efe78);const _0x14910c=a34_0x12ccd5('Checking\x20for\x20updates...')[_0x944aec(0x1f6)](),_0x2dfcfa=await fetchLatestVersion();if(!_0x2dfcfa)return _0x14910c[_0x944aec(0x1fe)](_0x944aec(0x209)),console[_0x944aec(0x1f0)](a34_0x5a4c7b[_0x944aec(0x21c)](_0x944aec(0x206)+NPM_PACKAGE_NAME+_0x944aec(0x1f3))),{'ok':![],'message':_0x944aec(0x208)};const _0x29f86b=a34_0x2ecfe3['coerce'](_0x5efe78),_0x3e56bb=a34_0x2ecfe3[_0x944aec(0x204)](_0x2dfcfa);if(!_0x29f86b||!_0x3e56bb)return _0x14910c[_0x944aec(0x1fe)](_0x944aec(0x211)),{'ok':![],'message':_0x944aec(0x211)};if(!a34_0x2ecfe3['lt'](_0x29f86b,_0x3e56bb))return _0x14910c[_0x944aec(0x203)]('Already\x20up\x20to\x20date\x20(v'+_0x2dfcfa+')'),{'ok':!![]};_0x14910c['info']('Update\x20available:\x20'+a34_0x5a4c7b['yellow'](_0x5efe78)+_0x944aec(0x20a)+a34_0x5a4c7b['green'](_0x2dfcfa));const _0x51f0ca=detectPackageManager(),_0x123634=_0x51f0ca==='npm'?resolveNpmBin('npm'):_0x51f0ca,_0x27b4bb=a34_0x12ccd5('Updating\x20via\x20'+_0x51f0ca+_0x944aec(0x1f8))['start']();try{return await execa(_0x123634,['install','-g',NPM_PACKAGE_NAME+'@'+_0x2dfcfa],{'stdio':'pipe'}),_0x27b4bb[_0x944aec(0x203)]('Updated\x20to\x20v'+_0x2dfcfa),console[_0x944aec(0x1f0)](a34_0x5a4c7b[_0x944aec(0x21c)](_0x944aec(0x205))),{'ok':!![]};}catch(_0x343670){return _0x27b4bb['fail']('Update\x20failed'),console[_0x944aec(0x213)](a34_0x5a4c7b[_0x944aec(0x21b)]('\x20\x20'+_0x343670[_0x944aec(0x214)])),console[_0x944aec(0x1f0)](a34_0x5a4c7b[_0x944aec(0x21c)](_0x944aec(0x20e)+_0x51f0ca+_0x944aec(0x1fb)+NPM_PACKAGE_NAME+'@'+_0x2dfcfa)),{'ok':![],'message':_0x343670[_0x944aec(0x214)]};}}export const updateDefinition={'service':'update','command':'run','description':a34_0xb0e82b(0x20d),'risk':a34_0xb0e82b(0x216),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xe4c6e8,_0x501d0c){const _0x111ca5=a35_0x5b29,_0x585992=_0xe4c6e8();while(!![]){try{const _0x1be3f7=-parseInt(_0x111ca5(0x1de))/0x1+-parseInt(_0x111ca5(0x1e4))/0x2*(-parseInt(_0x111ca5(0x1e2))/0x3)+-parseInt(_0x111ca5(0x1dd))/0x4*(parseInt(_0x111ca5(0x1da))/0x5)+parseInt(_0x111ca5(0x1e3))/0x6*(-parseInt(_0x111ca5(0x1e6))/0x7)+parseInt(_0x111ca5(0x1e0))/0x8*(-parseInt(_0x111ca5(0x1df))/0x9)+-parseInt(_0x111ca5(0x1e5))/0xa*(parseInt(_0x111ca5(0x1db))/0xb)+-parseInt(_0x111ca5(0x1dc))/0xc*(-parseInt(_0x111ca5(0x1e1))/0xd);if(_0x1be3f7===_0x501d0c)break;else _0x585992['push'](_0x585992['shift']());}catch(_0x5e16ea){_0x585992['push'](_0x585992['shift']());}}}(a35_0x6383,0xa6e53));import{codegenSdk}from'../../commands/codegen/sdk.js';function a35_0x5b29(_0x1eadd8,_0x3421e4){_0x1eadd8=_0x1eadd8-0x1da;const _0x6383d8=a35_0x6383();let _0x5b2911=_0x6383d8[_0x1eadd8];return _0x5b2911;}import{codegenSql}from'../../commands/codegen/sql.js';function a35_0x6383(){const _0x2bf70b=['13540CkTkix','357iLIeUB','226915OSGGKX','7238MzHmFY','168KFGPOi','76jiJPOW','968772WfGcFG','27657xPRwLP','3000WbooUx','3806114cqzAvN','331764durHuk','89106pvatXE','22XhjAcQ'];a35_0x6383=function(){return _0x2bf70b;};return a35_0x6383();}export const codegenDefinitions=[codegenSdk,codegenSql];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a36_0x32bd9e=a36_0x52ba;function a36_0x5259(){const _0x535041=['4104240COQzCd','tableName','string','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','codegen','4342hVhUfo','191868OJRTTR','read','1169518KwVZMv','alias','operation','Omit\x20import\x20statements\x20from\x20generated\x20code','334230gYksfX','267UNTpba','bool','skip-imports','appCode','392409afGsof','5PJDnfZ','sdk','str','24LoXJDi','85910pejoBE','boolean'];a36_0x5259=function(){return _0x535041;};return a36_0x5259();}(function(_0x247210,_0x48a025){const _0x6be485=a36_0x52ba,_0x444f3=_0x247210();while(!![]){try{const _0x323bb3=-parseInt(_0x6be485(0x1bc))/0x1+parseInt(_0x6be485(0x1c3))/0x2*(-parseInt(_0x6be485(0x1cb))/0x3)+-parseInt(_0x6be485(0x1c4))/0x4*(parseInt(_0x6be485(0x1d0))/0x5)+parseInt(_0x6be485(0x1ca))/0x6+-parseInt(_0x6be485(0x1c6))/0x7+parseInt(_0x6be485(0x1bb))/0x8*(parseInt(_0x6be485(0x1cf))/0x9)+parseInt(_0x6be485(0x1be))/0xa;if(_0x323bb3===_0x48a025)break;else _0x444f3['push'](_0x444f3['shift']());}catch(_0x1c2d2c){_0x444f3['push'](_0x444f3['shift']());}}}(a36_0x5259,0x1916a));function a36_0x52ba(_0x10d659,_0x1c9a95){_0x10d659=_0x10d659-0x1ba;const _0x52590b=a36_0x5259();let _0x52ba4f=_0x52590b[_0x10d659];return _0x52ba4f;}import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const codegenSdk={'service':a36_0x32bd9e(0x1c2),'command':a36_0x32bd9e(0x1d1),'description':'Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','risk':a36_0x32bd9e(0x1c5),'flags':[CODE_FLAG_OPTIONAL,{'name':a36_0x32bd9e(0x1c7),'type':a36_0x32bd9e(0x1c0),'description':'Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)'},{'name':a36_0x32bd9e(0x1c8),'type':a36_0x32bd9e(0x1c0),'required':!![],'description':a36_0x32bd9e(0x1c1)},{'name':'skip-imports','type':a36_0x32bd9e(0x1bd),'description':a36_0x32bd9e(0x1c9)}],async 'execute'(_0x13fb6b){const _0x18c1e4=a36_0x32bd9e,{dataset:_0x4c7244,operation:_0x42a644}=await getOperationDetail(_0x13fb6b[_0x18c1e4(0x1ce)],_0x13fb6b[_0x18c1e4(0x1ba)]('code'),_0x13fb6b[_0x18c1e4(0x1ba)]('operation')),_0x4bb8ca=generateSdkCode(_0x4c7244,_0x42a644,{'includeImports':!_0x13fb6b[_0x18c1e4(0x1cc)](_0x18c1e4(0x1cd))});return{'ok':!![],'data':{'dataset':{'name':_0x4c7244['name'],'code':_0x4c7244['code'],'tableName':_0x4c7244[_0x18c1e4(0x1bf)]},'operation':_0x13fb6b[_0x18c1e4(0x1ba)](_0x18c1e4(0x1c8)),'code':_0x4bb8ca}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a37_0x12072d=a37_0x185e;(function(_0x3f5d04,_0xffb8d7){const _0x587f8c=a37_0x185e,_0x52f110=_0x3f5d04();while(!![]){try{const _0x20e8b8=-parseInt(_0x587f8c(0xe3))/0x1+-parseInt(_0x587f8c(0xf6))/0x2+-parseInt(_0x587f8c(0xf0))/0x3*(-parseInt(_0x587f8c(0xf2))/0x4)+-parseInt(_0x587f8c(0xf7))/0x5*(-parseInt(_0x587f8c(0xe8))/0x6)+-parseInt(_0x587f8c(0xf3))/0x7+parseInt(_0x587f8c(0xec))/0x8+parseInt(_0x587f8c(0xeb))/0x9;if(_0x20e8b8===_0xffb8d7)break;else _0x52f110['push'](_0x52f110['shift']());}catch(_0x11ba1c){_0x52f110['push'](_0x52f110['shift']());}}}(a37_0x3060,0xf0593));function a37_0x185e(_0x7a8db6,_0x4aa777){_0x7a8db6=_0x7a8db6-0xde;const _0x306018=a37_0x3060();let _0x185ed9=_0x306018[_0x7a8db6];return _0x185ed9;}import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';import{SQLCODE_FLAG}from'../../commands/common/flags.js';export const codegenSql={'service':a37_0x12072d(0xef),'command':a37_0x12072d(0xe4),'description':'Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','risk':a37_0x12072d(0xde),'flags':[SQLCODE_FLAG,{'name':a37_0x12072d(0xe2),'type':a37_0x12072d(0xf1),'description':a37_0x12072d(0xe5),'default':a37_0x12072d(0xea),'enum':[a37_0x12072d(0xea),a37_0x12072d(0xf4)]},{'name':a37_0x12072d(0xe0),'type':a37_0x12072d(0xe6),'description':a37_0x12072d(0xe7)}],async 'execute'(_0x268983){const _0x2e8fea=a37_0x12072d,_0x13f413=await getSqlQueryInfo(_0x268983[_0x2e8fea(0xf5)],_0x268983[_0x2e8fea(0xed)](_0x2e8fea(0xdf))),_0x40bfe8=_0x268983[_0x2e8fea(0xed)](_0x2e8fea(0xe2))||_0x2e8fea(0xea),_0xd2b03f=generateSqlCodeTemplate(_0x13f413,{'target':_0x40bfe8,'includeImports':!_0x268983[_0x2e8fea(0xee)](_0x2e8fea(0xe0))});return{'ok':!![],'data':{'sqlCode':_0x13f413[_0x2e8fea(0xe1)],'sqlName':_0x13f413[_0x2e8fea(0xe9)],'target':_0x40bfe8,'code':_0xd2b03f}};}};function a37_0x3060(){const _0x4b04d8=['sqlcode','no-imports','sqlCode','target','780189Yvulfj','sql','Code\x20target:\x20sdk\x20(default)\x20or\x20bff','boolean','Omit\x20import\x20statements\x20from\x20generated\x20code','6wXEYIq','sqlName','sdk','16586973akFYBX','3781704NwBkTr','str','bool','codegen','530562OHZHcd','string','12tLJnET','2798908jVosZg','bff','appCode','3496860tfRUMw','5333290XUgUbN','read'];a37_0x3060=function(){return _0x4b04d8;};return a37_0x3060();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x33092c,_0x2ac198){const _0x2666f4=a38_0x21f3,_0x3a3101=_0x33092c();while(!![]){try{const _0x3681fb=-parseInt(_0x2666f4(0xd8))/0x1*(parseInt(_0x2666f4(0xea))/0x2)+parseInt(_0x2666f4(0xd9))/0x3*(parseInt(_0x2666f4(0xeb))/0x4)+-parseInt(_0x2666f4(0xe3))/0x5+parseInt(_0x2666f4(0xce))/0x6+parseInt(_0x2666f4(0xc8))/0x7*(parseInt(_0x2666f4(0xcb))/0x8)+-parseInt(_0x2666f4(0xd6))/0x9*(parseInt(_0x2666f4(0xe9))/0xa)+-parseInt(_0x2666f4(0xd2))/0xb*(-parseInt(_0x2666f4(0xd4))/0xc);if(_0x3681fb===_0x2ac198)break;else _0x3a3101['push'](_0x3a3101['shift']());}catch(_0x1fbe80){_0x3a3101['push'](_0x3a3101['shift']());}}}(a38_0x528e,0xda22d));import{input,checkbox,select}from'@inquirer/prompts';import a38_0x5e597e from'chalk';import{validateAppcode}from'../../commands/common/validate.js';function a38_0x21f3(_0x5bc543,_0x2c637d){_0x5bc543=_0x5bc543-0xc4;const _0x528e60=a38_0x528e();let _0x21f3f=_0x528e60[_0x5bc543];return _0x21f3f;}import{listRemoteApps}from'../../core/api-client.js';import{withActiveCookie}from'../../utils/with-active-cookie.js';function a38_0x528e(){const _0x1ff07f=['\x0a无法获取远程应用列表,请手动输入。','skip','(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)','cyan','(跳过,稍后配置)','获取到\x20','length','7632790UfTirL','gray','appCode','\x0a未找到可用应用。','custom','无法获取远程应用列表,请手动输入。','10rHRWSD','154OqqHmB','11048lrysgG','message','appName','未找到可用应用。','map','正在获取可用应用列表...','21378XZkLrH','trim','✎\x20手动输入','1912YkJHEw','yellow','Invalid\x20App\x20Code','262188uqfBQZ','manual','App\x20Code:','\x20\x20(','5397601vmIyjn','请输入\x20App\x20Code:','84AeYYlL','请选择要绑定的应用:','3144573LeZgnB','(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)','22921zgGCih','354ypVGfm','valid','\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):'];a38_0x528e=function(){return _0x1ff07f;};return a38_0x528e();}import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';export async function promptCustomAppcode(){const _0x3ce3e4=a38_0x21f3,_0x1a5338=await input({'message':_0x3ce3e4(0xd3),'validate':_0x50ea6e=>{const _0x79b5ab=_0x3ce3e4,_0x4ed497=validateAppcode(_0x50ea6e[_0x79b5ab(0xc9)]());return _0x4ed497[_0x79b5ab(0xda)]||_0x4ed497['message']||_0x79b5ab(0xcd);}});return _0x1a5338[_0x3ce3e4(0xc9)]();}export async function promptAppSelection(_0x52f4e0){const _0x3a4e17=a38_0x21f3,_0x25b7bc=[{'name':a38_0x5e597e['yellow']('✎\x20自定义输入\x20appcode'),'value':-0x1},..._0x52f4e0['map']((_0x30e57f,_0x360745)=>({'name':_0x30e57f[_0x3a4e17(0xc4)]+'\x20\x20'+a38_0x5e597e[_0x3a4e17(0xe4)]('('+_0x30e57f[_0x3a4e17(0xe5)]+')'),'value':_0x360745}))],_0x41ca12=await checkbox({'message':_0x3a4e17(0xe1)+a38_0x5e597e[_0x3a4e17(0xdf)](_0x52f4e0[_0x3a4e17(0xe2)])+_0x3a4e17(0xdb),'choices':_0x25b7bc,'loop':![]});if(_0x41ca12['includes'](-0x1))return'custom';if(_0x41ca12[_0x3a4e17(0xe2)]===0x0)return _0x3a4e17(0xe7);return _0x41ca12['map'](_0x341744=>_0x52f4e0[_0x341744]);}export async function promptSingleAppSelection(_0x58162e){const _0x2c5af1=a38_0x21f3,_0x592381=[{'name':a38_0x5e597e[_0x2c5af1(0xe4)](_0x2c5af1(0xde)),'value':_0x2c5af1(0xdd)},{'name':a38_0x5e597e['yellow']('✎\x20自定义输入\x20appcode'),'value':_0x2c5af1(0xe7)},..._0x58162e[_0x2c5af1(0xc6)](_0x1164e1=>({'name':_0x1164e1[_0x2c5af1(0xc4)]+'\x20\x20'+a38_0x5e597e[_0x2c5af1(0xe4)]('('+_0x1164e1['appCode']+')'),'value':_0x1164e1[_0x2c5af1(0xe5)]}))],_0xfd8bf6=await select({'message':_0x2c5af1(0xd5),'choices':_0x592381});if(_0xfd8bf6===_0x2c5af1(0xdd))return _0x2c5af1(0xdd);if(_0xfd8bf6===_0x2c5af1(0xe7))return'custom';return _0x58162e['find'](_0x3c6427=>_0x3c6427['appCode']===_0xfd8bf6);}export async function selectSingleAppcode(_0x103ab0){const _0x5ca5b7=a38_0x21f3;if(!_0x103ab0)return writeCliSideChannelLine(a38_0x5e597e[_0x5ca5b7(0xe4)](_0x5ca5b7(0xd7))),_fallbackOrSkip();writeCliSideChannelLine(_0x5ca5b7(0xc7));let _0x597f9c;try{_0x597f9c=await withActiveCookie(_0x103ab0,()=>listRemoteApps());}catch(_0x531e96){writeCliSideChannelLine(a38_0x5e597e[_0x5ca5b7(0xcc)](_0x5ca5b7(0xe8)));if(_0x531e96 instanceof Error)writeCliSideChannelLine(a38_0x5e597e[_0x5ca5b7(0xe4)](_0x5ca5b7(0xd1)+_0x531e96[_0x5ca5b7(0xec)]+')'));return _fallbackOrSkip();}if(_0x597f9c[_0x5ca5b7(0xe2)]===0x0)return writeCliSideChannelLine(a38_0x5e597e['yellow'](_0x5ca5b7(0xc5))),_fallbackOrSkip();const _0x410928=await promptSingleAppSelection(_0x597f9c);if(_0x410928===_0x5ca5b7(0xdd))return'';if(_0x410928===_0x5ca5b7(0xe7))return promptCustomAppcode();return _0x410928[_0x5ca5b7(0xe5)];}export async function selectMultipleApps(_0x545b4f){const _0x174f52=a38_0x21f3;writeCliSideChannelLine(_0x174f52(0xc7));let _0x26b804;try{_0x26b804=await withActiveCookie(_0x545b4f,()=>listRemoteApps());}catch(_0x28ea0a){writeCliSideChannelLine(_0x174f52(0xdc));if(_0x28ea0a instanceof Error)writeCliSideChannelLine(_0x174f52(0xd1)+_0x28ea0a[_0x174f52(0xec)]+')');return _0x174f52(0xe7);}if(_0x26b804['length']===0x0)return writeCliSideChannelLine(_0x174f52(0xe6)),_0x174f52(0xe7);return promptAppSelection(_0x26b804);}async function _fallbackOrSkip(){const _0x4a3f1e=a38_0x21f3,_0x291d9c=await select({'message':_0x4a3f1e(0xd0),'choices':[{'name':a38_0x5e597e['gray'](_0x4a3f1e(0xe0)),'value':_0x4a3f1e(0xdd)},{'name':a38_0x5e597e[_0x4a3f1e(0xcc)](_0x4a3f1e(0xca)),'value':_0x4a3f1e(0xcf)}]});if(_0x291d9c===_0x4a3f1e(0xdd))return'';return promptCustomAppcode();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a39_0x2b6d(){const _0x45b0fa=['4603533fEqQRt','289585pARlZf','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','Dataset\x20code\x20(32-char\x20hex\x20UUID)','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','a\x2032-character\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588)','1349106tqRXSj','29519ZJPjIk','dbtype','60LBRQao','sqlcode','appcode','number','949752JiFzhh','1416uoPXgL','2223836ioqBio','string','MYSQL','336136MSAEcE','datasetcode','Database\x20product\x20type','280nFDIeM'];a39_0x2b6d=function(){return _0x45b0fa;};return a39_0x2b6d();}const a39_0x1918a7=a39_0x19f4;function a39_0x19f4(_0x26f5e7,_0x2353a2){_0x26f5e7=_0x26f5e7-0x8b;const _0x2b6da4=a39_0x2b6d();let _0x19f4e1=_0x2b6da4[_0x26f5e7];return _0x19f4e1;}(function(_0x2dae0b,_0x278ceb){const _0x3650a1=a39_0x19f4,_0x2472ba=_0x2dae0b();while(!![]){try{const _0x594f21=-parseInt(_0x3650a1(0x95))/0x1+-parseInt(_0x3650a1(0x9e))/0x2+-parseInt(_0x3650a1(0x8f))/0x3+parseInt(_0x3650a1(0x98))/0x4*(parseInt(_0x3650a1(0x90))/0x5)+parseInt(_0x3650a1(0x9d))/0x6*(parseInt(_0x3650a1(0x96))/0x7)+-parseInt(_0x3650a1(0x8b))/0x8+-parseInt(_0x3650a1(0x9c))/0x9*(-parseInt(_0x3650a1(0x8e))/0xa);if(_0x594f21===_0x278ceb)break;else _0x2472ba['push'](_0x2472ba['shift']());}catch(_0x36ae4d){_0x2472ba['push'](_0x2472ba['shift']());}}}(a39_0x2b6d,0xbeb8f));export const DATASET_CODE_PATTERN={'regex':/^[a-f0-9]{32}$/i,'description':a39_0x1918a7(0x94)};export const CODE_FLAG={'name':'code','type':a39_0x1918a7(0x9f),'required':!![],'description':a39_0x1918a7(0x92),'pattern':DATASET_CODE_PATTERN};export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const DATASETCODE_FLAG_OPTIONAL={...CODE_FLAG_OPTIONAL,'name':a39_0x1918a7(0x8c),'description':a39_0x1918a7(0x92)};export const SQLCODE_FLAG={'name':a39_0x1918a7(0x99),'type':a39_0x1918a7(0x9f),'required':!![],'description':a39_0x1918a7(0x93),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a39_0x1918a7(0x91)}};export const APPCODE_FLAG_OPTIONAL={'name':a39_0x1918a7(0x9a),'type':a39_0x1918a7(0x9f),'required':![],'description':'App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)'};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};export const DBLINK_ID_FLAG={'name':'id','type':a39_0x1918a7(0x9b),'required':!![],'description':'Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)'};export const DB_TYPE_FLAG={'name':a39_0x1918a7(0x97),'type':a39_0x1918a7(0x9f),'required':!![],'description':a39_0x1918a7(0x8d),'enum':[a39_0x1918a7(0xa0),'POSTGRESQL']};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2a24ce,_0x5732a5){const _0x31f1d6=a40_0x1e47,_0x5aa452=_0x2a24ce();while(!![]){try{const _0x3bb5a6=-parseInt(_0x31f1d6(0x1ed))/0x1+parseInt(_0x31f1d6(0x1f2))/0x2+-parseInt(_0x31f1d6(0x1ec))/0x3*(parseInt(_0x31f1d6(0x1f3))/0x4)+-parseInt(_0x31f1d6(0x1f0))/0x5*(parseInt(_0x31f1d6(0x1ee))/0x6)+parseInt(_0x31f1d6(0x1f8))/0x7*(parseInt(_0x31f1d6(0x1f1))/0x8)+-parseInt(_0x31f1d6(0x1eb))/0x9*(-parseInt(_0x31f1d6(0x1f6))/0xa)+parseInt(_0x31f1d6(0x1f7))/0xb*(parseInt(_0x31f1d6(0x1f4))/0xc);if(_0x3bb5a6===_0x5732a5)break;else _0x5aa452['push'](_0x5aa452['shift']());}catch(_0x10faf4){_0x5aa452['push'](_0x5aa452['shift']());}}}(a40_0x4f1b,0x41110));function a40_0x1e47(_0x2d9061,_0x19a640){_0x2d9061=_0x2d9061-0x1e9;const _0x4f1bac=a40_0x4f1b();let _0x1e4776=_0x4f1bac[_0x2d9061];return _0x1e4776;}export function validateAppcode(_0x382a36){const _0x2e5a26=a40_0x1e47,_0x24f971=_0x382a36['trim']();if(!_0x24f971)return{'valid':![],'message':_0x2e5a26(0x1f5)};if(_0x24f971[_0x2e5a26(0x1ea)]>0x64)return{'valid':![],'message':'App\x20Code\x20cannot\x20exceed\x20100\x20characters'};if(!/^[A-Za-z0-9_-]+$/[_0x2e5a26(0x1e9)](_0x24f971))return{'valid':![],'message':_0x2e5a26(0x1ef)};return{'valid':!![]};}function a40_0x4f1b(){const _0xe3adfd=['81xedkCI','6UlSpaa','398882YslHpK','6HILyyQ','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','2600540rFlYgZ','56rNefAV','991084PrbURC','802832tYbCcp','12WpIdzE','App\x20Code\x20cannot\x20be\x20empty','509090QOuTpE','3686254AMAhNs','298081ktyIZA','test','length'];a40_0x4f1b=function(){return _0xe3adfd;};return a40_0x4f1b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a41_0x592a(){const _0x162c5a=['app','config','read','str','4XnqYxB','object','2063110QyNSWg','3233229vSyqNn','validation','3349192NnHyUY','2049219AjFhXb','120cihopk','97643xEHaGy','367021mfkaJT','\x20config\x20get\x20--key\x20<key>','Get\x20a\x20config\x20value\x20by\x20key','string','Usage:\x20','Missing\x20key.','1324892rxdzGR','key','Key\x20not\x20found:\x20'];a41_0x592a=function(){return _0x162c5a;};return a41_0x592a();}const a41_0x33273d=a41_0x1c21;(function(_0x3eaa5a,_0x35bfd6){const _0x2b5282=a41_0x1c21,_0x4f1129=_0x3eaa5a();while(!![]){try{const _0x3d4850=parseInt(_0x2b5282(0x8c))/0x1*(parseInt(_0x2b5282(0x83))/0x2)+parseInt(_0x2b5282(0x86))/0x3+-parseInt(_0x2b5282(0x92))/0x4+-parseInt(_0x2b5282(0x85))/0x5+parseInt(_0x2b5282(0x8a))/0x6*(-parseInt(_0x2b5282(0x8b))/0x7)+-parseInt(_0x2b5282(0x88))/0x8+parseInt(_0x2b5282(0x89))/0x9;if(_0x3d4850===_0x35bfd6)break;else _0x4f1129['push'](_0x4f1129['shift']());}catch(_0x2744bb){_0x4f1129['push'](_0x4f1129['shift']());}}}(a41_0x592a,0x91ff2));import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';function a41_0x1c21(_0x32d9b7,_0x6bf610){_0x32d9b7=_0x32d9b7-0x7d;const _0x592af1=a41_0x592a();let _0x1c217f=_0x592af1[_0x32d9b7];return _0x1c217f;}import{CLI_BIN_NAME}from'../../constant/cli.js';import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0x5a150b){const _0x31c75d=a41_0x1c21,_0x5a19df=_0x5a150b[_0x31c75d(0x82)](_0x31c75d(0x7d));if(!_0x5a19df)throw CliErrors[_0x31c75d(0x87)](_0x31c75d(0x91),_0x31c75d(0x90)+CLI_BIN_NAME+_0x31c75d(0x8d));const _0x1de027=readConfig(),_0x307ab3=_0x5a19df===_0x31c75d(0x7f)?'appcode':_0x5a19df,_0x4d3710=_0x1de027[_0x307ab3];if(_0x4d3710===undefined)throw CliErrors[_0x31c75d(0x87)](_0x31c75d(0x7e)+_0x5a19df);return{'ok':!![],'data':typeof _0x4d3710===_0x31c75d(0x84)?_0x4d3710:{[_0x307ab3]:_0x4d3710},'message':typeof _0x4d3710===_0x31c75d(0x84)?undefined:String(_0x4d3710)};}export const configGetDefinition={'service':a41_0x33273d(0x80),'command':'get','description':a41_0x33273d(0x8e),'risk':a41_0x33273d(0x81),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a41_0x33273d(0x7d),'type':a41_0x33273d(0x8f),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x59a097,_0x50e433){const _0x5f5175=a42_0x1ea1,_0x46c95c=_0x59a097();while(!![]){try{const _0x37c04f=parseInt(_0x5f5175(0x13e))/0x1*(-parseInt(_0x5f5175(0x13b))/0x2)+-parseInt(_0x5f5175(0x139))/0x3+parseInt(_0x5f5175(0x13d))/0x4*(parseInt(_0x5f5175(0x13f))/0x5)+parseInt(_0x5f5175(0x137))/0x6*(-parseInt(_0x5f5175(0x13c))/0x7)+-parseInt(_0x5f5175(0x13a))/0x8*(parseInt(_0x5f5175(0x135))/0x9)+parseInt(_0x5f5175(0x136))/0xa+parseInt(_0x5f5175(0x138))/0xb;if(_0x37c04f===_0x50e433)break;else _0x46c95c['push'](_0x46c95c['shift']());}catch(_0x2ef99a){_0x46c95c['push'](_0x46c95c['shift']());}}}(a42_0x2bb6,0x58245));import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';function a42_0x1ea1(_0x530e55,_0x438d07){_0x530e55=_0x530e55-0x135;const _0x2bb632=a42_0x2bb6();let _0x1ea1ec=_0x2bb632[_0x530e55];return _0x1ea1ec;}import{configSetDefinition}from'../../commands/config/set.js';export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];function a42_0x2bb6(){const _0x24a31d=['12662375bFRwhP','1072269cGlgQH','291016KGgczS','14HiTWDz','7HcCGed','5504zeIhuE','81687MTExWh','995szQfjT','45dMBapo','1686360bQOsHh','728634FTTqLt'];a42_0x2bb6=function(){return _0x24a31d;};return a42_0x2bb6();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a43_0x32052f=a43_0x1f4a;(function(_0x3d40a7,_0x22a3ec){const _0x14b0bc=a43_0x1f4a,_0x2a0722=_0x3d40a7();while(!![]){try{const _0x18a14f=-parseInt(_0x14b0bc(0x7f))/0x1*(parseInt(_0x14b0bc(0x7b))/0x2)+-parseInt(_0x14b0bc(0x84))/0x3*(-parseInt(_0x14b0bc(0x87))/0x4)+parseInt(_0x14b0bc(0x86))/0x5+parseInt(_0x14b0bc(0x83))/0x6+parseInt(_0x14b0bc(0x7d))/0x7*(parseInt(_0x14b0bc(0x81))/0x8)+-parseInt(_0x14b0bc(0x7c))/0x9*(parseInt(_0x14b0bc(0x7e))/0xa)+-parseInt(_0x14b0bc(0x85))/0xb;if(_0x18a14f===_0x22a3ec)break;else _0x2a0722['push'](_0x2a0722['shift']());}catch(_0x1869c7){_0x2a0722['push'](_0x2a0722['shift']());}}}(a43_0x1f11,0xd2cc8));import{readScopedConfig}from'../../commands/config/shared.js';function a43_0x1f4a(_0x5d4e02,_0x3b1bb8){_0x5d4e02=_0x5d4e02-0x7b;const _0x1f112c=a43_0x1f11();let _0x1f4a0d=_0x1f112c[_0x5d4e02];return _0x1f4a0d;}import{readConfig}from'../../utils/config.js';async function execute(_0x5884b3){const _0x19055a=a43_0x1f4a,_0x343848=_0x5884b3[_0x19055a(0x82)](_0x19055a(0x8b))?readScopedConfig(_0x19055a(0x8b)):readConfig();return{'ok':!![],'data':_0x343848};}export const configListDefinition={'service':a43_0x32052f(0x88),'command':a43_0x32052f(0x89),'description':a43_0x32052f(0x80),'risk':a43_0x32052f(0x8a),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a43_0x32052f(0x8b),'type':'boolean','description':'Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','default':![]}],'execute':execute};function a43_0x1f11(){const _0x90b73c=['1357930lONmNY','1032317FrNbPx','List\x20all\x20config\x20values','16760OncmRy','bool','6601764uIxoNW','255dQnHxZ','12142328ikRUXh','3188695txJlAz','25516MJJUkS','config','list','read','global','2EkSJhy','18tgFNYC','3311jdALmc'];a43_0x1f11=function(){return _0x90b73c;};return a43_0x1f11();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a44_0x548580=a44_0x2591;(function(_0x346d69,_0x524579){const _0x1fdad7=a44_0x2591,_0x44b695=_0x346d69();while(!![]){try{const _0x36855f=-parseInt(_0x1fdad7(0x89))/0x1*(parseInt(_0x1fdad7(0x8c))/0x2)+parseInt(_0x1fdad7(0x8b))/0x3*(-parseInt(_0x1fdad7(0x99))/0x4)+-parseInt(_0x1fdad7(0x7c))/0x5+-parseInt(_0x1fdad7(0x93))/0x6+parseInt(_0x1fdad7(0x84))/0x7*(-parseInt(_0x1fdad7(0x87))/0x8)+-parseInt(_0x1fdad7(0x8f))/0x9*(-parseInt(_0x1fdad7(0x95))/0xa)+-parseInt(_0x1fdad7(0x9d))/0xb*(-parseInt(_0x1fdad7(0x86))/0xc);if(_0x36855f===_0x524579)break;else _0x44b695['push'](_0x44b695['shift']());}catch(_0x49f810){_0x44b695['push'](_0x44b695['shift']());}}}(a44_0x58ac,0x521ec));import{CliErrors}from'../../errors.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';import{CLI_BIN_NAME,CONFIG_ENUM_VALUES,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{normalizeEnv,isProduction,isDaily}from'../../constant/env.js';function a44_0x58ac(){const _0x61c8f7=['38848QSOHel','object','Missing\x20key.','9vYuSJO','length','`,\x20`','validation','1814358aWqpIj','\x20appcode\x20set\x20to:\x20','4047450vwOvNy','Project','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','\x20app\x20use\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','4nFZTYs','keys','boolean','apps','11ZtMBbw','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','appcode','set','Missing\x20value.','value','Use\x20`','\x20app\x20add\x20<name>\x20--appcode\x20','global','includes','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','\x22.\x20Allowed:\x20','Config\x20value','locale','\x20(stored\x20as\x20apps\x20+\x20defaultApp)','1438715snQRdd','key','Top-level\x20key\x20\x22','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','string','str','Usage:\x20','Invalid\x20value\x20for\x20\x22','222103KHqMAH','env','13729272UyFHLW','40LOnyIo','\x22\x20is\x20not\x20settable.','6zjFtfP','Set\x20a\x20config\x20value','1041486KOqtfE'];a44_0x58ac=function(){return _0x61c8f7;};return a44_0x58ac();}function a44_0x2591(_0x5c0a14,_0x110ec4){_0x5c0a14=_0x5c0a14-0x72;const _0x58ac40=a44_0x58ac();let _0x2591a4=_0x58ac40[_0x5c0a14];return _0x2591a4;}async function execute(_0x480593){const _0x313863=a44_0x2591,_0x2ac777=_0x480593[_0x313863(0x81)](_0x313863(0x7d)),_0x1967ac=_0x480593[_0x313863(0x81)](_0x313863(0x72));if(!_0x2ac777)throw CliErrors[_0x313863(0x92)](_0x313863(0x8e),'Usage:\x20'+CLI_BIN_NAME+_0x313863(0x97));if(_0x1967ac===undefined||_0x1967ac==='')throw CliErrors[_0x313863(0x92)](_0x313863(0xa1),_0x313863(0x82)+CLI_BIN_NAME+_0x313863(0x97));if(_0x1967ac[_0x313863(0x90)]>0x1f4)throw CliErrors[_0x313863(0x92)]('Config\x20value\x20is\x20invalid\x20or\x20too\x20long.');if(!isTopLevelConfigKey(_0x2ac777))throw CliErrors[_0x313863(0x92)](_0x313863(0x7e)+_0x2ac777+_0x313863(0x88),'Settable\x20top-level\x20keys:\x20'+getTopLevelConfigKeySummary());if(_0x2ac777==='riskLevel')throw CliErrors[_0x313863(0x92)]('\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.');if(CONFIG_ENUM_VALUES[_0x2ac777]&&!CONFIG_ENUM_VALUES[_0x2ac777][_0x313863(0x76)](_0x1967ac))throw CliErrors[_0x313863(0x92)](_0x313863(0x83)+_0x2ac777+_0x313863(0x78)+CONFIG_ENUM_VALUES[_0x2ac777]['join'](',\x20'));if(_0x2ac777===_0x313863(0x7a)&&!normalizeLocale(_0x1967ac))throw CliErrors[_0x313863(0x92)]('Invalid\x20locale\x20value.','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US');const _0x222e75={'global':_0x480593['bool'](_0x313863(0x75))},_0x786571=resolveWriteScope(_0x222e75),_0x5e7e0d=readScopedConfig(_0x786571);let _0x4f65cb=_0x2ac777,_0x55a634=_0x1967ac;_0x2ac777==='app'&&(_0x4f65cb=_0x313863(0x9f),delete _0x5e7e0d['app']);_0x2ac777===_0x313863(0x7a)&&(_0x55a634=normalizeLocale(_0x1967ac));if(_0x2ac777===_0x313863(0x85)){_0x55a634=normalizeEnv(_0x1967ac);if(!isProduction(_0x55a634)&&!isDaily(_0x55a634))throw CliErrors[_0x313863(0x92)](_0x313863(0x7f),_0x313863(0x77));}if(_0x2ac777==='appcode'){const _0x49faee=_0x5e7e0d[_0x313863(0x9c)]&&typeof _0x5e7e0d[_0x313863(0x9c)]===_0x313863(0x8d)?Object[_0x313863(0x9a)](_0x5e7e0d[_0x313863(0x9c)]):[];if(_0x49faee[_0x313863(0x90)]>0x0)throw CliErrors[_0x313863(0x92)]('Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.',_0x313863(0x73)+CLI_BIN_NAME+_0x313863(0x74)+_0x55a634+_0x313863(0x91)+CLI_BIN_NAME+_0x313863(0x98));const _0x5e4ea2=buildCanonicalProjectConfig({..._0x5e7e0d},{'appCodes':[_0x55a634],'env':typeof _0x5e7e0d[_0x313863(0x85)]==='string'?_0x5e7e0d[_0x313863(0x85)]:undefined});writeScopedConfig(_0x5e4ea2,_0x786571);const _0x4be6b0=_0x786571==='global'?'Global':_0x313863(0x96);return{'ok':!![],'message':'✓\x20'+_0x4be6b0+_0x313863(0x94)+_0x55a634+_0x313863(0x7b)};}_0x5e7e0d[_0x4f65cb]=_0x55a634,writeScopedConfig(_0x5e7e0d,_0x786571);const _0x34fc11=_0x786571===_0x313863(0x75)?'Global':_0x313863(0x96);return{'ok':!![],'message':'✓\x20'+_0x34fc11+'\x20'+_0x4f65cb+'\x20set\x20to:\x20'+_0x55a634};}export const configSetDefinition={'service':'config','command':a44_0x548580(0xa0),'description':a44_0x548580(0x8a),'risk':'write','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a44_0x548580(0x7d),'type':a44_0x548580(0x80),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':'value','type':a44_0x548580(0x80),'description':a44_0x548580(0x79),'required':!![]},{'name':a44_0x548580(0x75),'type':a44_0x548580(0x9b),'description':a44_0x548580(0x9e),'default':![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4d31fc,_0x448699){var _0x57a7a8=a45_0x8d1e,_0x128721=_0x4d31fc();while(!![]){try{var _0x5ca372=parseInt(_0x57a7a8(0x1e4))/0x1*(parseInt(_0x57a7a8(0x1e5))/0x2)+parseInt(_0x57a7a8(0x1ec))/0x3+-parseInt(_0x57a7a8(0x1ef))/0x4*(-parseInt(_0x57a7a8(0x1f2))/0x5)+-parseInt(_0x57a7a8(0x1ed))/0x6+parseInt(_0x57a7a8(0x1e8))/0x7+-parseInt(_0x57a7a8(0x1e6))/0x8+parseInt(_0x57a7a8(0x1e7))/0x9;if(_0x5ca372===_0x448699)break;else _0x128721['push'](_0x128721['shift']());}catch(_0x4815d6){_0x128721['push'](_0x128721['shift']());}}}(a45_0x493a,0x731aa));function a45_0x493a(){var _0x7f0315=['Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','754065NAnKtY','5069406OyBXaq','project','3209852AEzwMy','\x20init`\x20first.','global','5Hlmekl','103067knXxTH','2ZLZhfz','7084128enydmG','6199893CUvOUy','2492847JixXlN','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','validation'];a45_0x493a=function(){return _0x7f0315;};return a45_0x493a();}import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';import{CliErrors}from'../../errors.js';function a45_0x8d1e(_0x3138a6,_0x4d3eb6){_0x3138a6=_0x3138a6-0x1e4;var _0x493a33=a45_0x493a();var _0x8d1e3c=_0x493a33[_0x3138a6];return _0x8d1e3c;}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(_0x6bd4c7){var _0x1556f3=a45_0x8d1e;if(_0x6bd4c7[_0x1556f3(0x1f1)])return _0x1556f3(0x1f1);if(!isInProject())throw CliErrors[_0x1556f3(0x1ea)](_0x1556f3(0x1e9),_0x1556f3(0x1eb)+CLI_BIN_NAME+_0x1556f3(0x1f0));return _0x1556f3(0x1ee);}export function readScopedConfig(_0x4ba19d){return readConfigFile(resolveWriteConfigPath(_0x4ba19d));}export function writeScopedConfig(_0x4e5820,_0x3f18df){writeConfigFile(resolveWriteConfigPath(_0x3f18df),_0x4e5820);}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a46_0x28ecbe=a46_0x2106;function a46_0x2106(_0xad9010,_0x2e465a){_0xad9010=_0xad9010-0xa3;const _0x1af7e9=a46_0x1af7();let _0x210660=_0x1af7e9[_0xad9010];return _0x210660;}function a46_0x1af7(){const _0x1c1e97=['\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}]','108941edmmDI','429dOurKa','28QamEPb','61288oBeyUd','\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]','595YCxtCW','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page','3160680VAnzYK','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','filter','315930DExGWX','6BKxFEo','11714724zSJiJp','join','1764510ktbIlr','688914nclGgy'];a46_0x1af7=function(){return _0x1c1e97;};return a46_0x1af7();}(function(_0x9668a9,_0xa2efe5){const _0x5b24bd=a46_0x2106,_0x185001=_0x9668a9();while(!![]){try{const _0x144a94=parseInt(_0x5b24bd(0xa5))/0x1+parseInt(_0x5b24bd(0xa3))/0x2*(-parseInt(_0x5b24bd(0xb0))/0x3)+parseInt(_0x5b24bd(0xa8))/0x4*(-parseInt(_0x5b24bd(0xaa))/0x5)+parseInt(_0x5b24bd(0xb3))/0x6*(parseInt(_0x5b24bd(0xa7))/0x7)+-parseInt(_0x5b24bd(0xac))/0x8+parseInt(_0x5b24bd(0xb1))/0x9+parseInt(_0x5b24bd(0xaf))/0xa*(parseInt(_0x5b24bd(0xa6))/0xb);if(_0x144a94===_0xa2efe5)break;else _0x185001['push'](_0x185001['shift']());}catch(_0x3898ff){_0x185001['push'](_0x185001['shift']());}}}(a46_0x1af7,0xde96f));import{buildDataCommand}from'../../commands/data/shared.js';export const dataFilter=buildDataCommand({'command':a46_0x28ecbe(0xae),'operation':a46_0x28ecbe(0xae),'description':'Filter\x20dataset\x20records\x20with\x20query\x20conditions','paramsRequired':![],'paramsHint':'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','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',a46_0x28ecbe(0xa9),a46_0x28ecbe(0xa4),a46_0x28ecbe(0xad),a46_0x28ecbe(0xab)][a46_0x28ecbe(0xb2)]('\x0a')});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a47_0x51418f=a47_0x56f6;function a47_0x2cb7(){const _0x51dd5d=['23450lsvbxZ','20YxQgOt','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','2233206fasSzF','192bmcCUw','16kzyhYy','1796241nOzSFu','Get\x20a\x20single\x20record\x20by\x20ID','763552socemy','10673564CRRzNE','getOne','52504ddcSOM','8KSiQAu','241311UAhvDW'];a47_0x2cb7=function(){return _0x51dd5d;};return a47_0x2cb7();}(function(_0xfe827c,_0x580488){const _0x2af6ae=a47_0x56f6,_0x43e331=_0xfe827c();while(!![]){try{const _0xd2a36b=parseInt(_0x2af6ae(0x1a2))/0x1*(-parseInt(_0x2af6ae(0x19a))/0x2)+-parseInt(_0x2af6ae(0x195))/0x3+parseInt(_0x2af6ae(0x197))/0x4+parseInt(_0x2af6ae(0x19d))/0x5*(-parseInt(_0x2af6ae(0x1a1))/0x6)+parseInt(_0x2af6ae(0x19c))/0x7*(parseInt(_0x2af6ae(0x19b))/0x8)+-parseInt(_0x2af6ae(0x1a0))/0x9*(-parseInt(_0x2af6ae(0x19e))/0xa)+parseInt(_0x2af6ae(0x198))/0xb;if(_0xd2a36b===_0x580488)break;else _0x43e331['push'](_0x43e331['shift']());}catch(_0x4b0958){_0x43e331['push'](_0x43e331['shift']());}}}(a47_0x2cb7,0x7fb56));function a47_0x56f6(_0xe1550f,_0x19daa9){_0xe1550f=_0xe1550f-0x195;const _0x2cb783=a47_0x2cb7();let _0x56f623=_0x2cb783[_0xe1550f];return _0x56f623;}import{buildDataCommand}from'../../commands/data/shared.js';export const dataGetOne=buildDataCommand({'command':'getOne','operation':a47_0x51418f(0x199),'description':a47_0x51418f(0x196),'paramsRequired':!![],'paramsHint':a47_0x51418f(0x19f)});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a48_0x1ed2(){const _0x3d70b7=['198745qGHiGx','1324411OkHhwv','4zfjUwg','2152032FePiSx','13738sVhiNw','278286pxRKcc','543735MvXyQt','7BBebRI','20PWvQZE','1436052AfmGQt','1sNMRIC'];a48_0x1ed2=function(){return _0x3d70b7;};return a48_0x1ed2();}(function(_0x3f59df,_0x2a04d8){const _0xb17d56=a48_0x1d9d,_0x12fc56=_0x3f59df();while(!![]){try{const _0x43e6a3=parseInt(_0xb17d56(0x198))/0x1*(-parseInt(_0xb17d56(0x19d))/0x2)+-parseInt(_0xb17d56(0x19e))/0x3+parseInt(_0xb17d56(0x19b))/0x4*(parseInt(_0xb17d56(0x199))/0x5)+-parseInt(_0xb17d56(0x197))/0x6*(-parseInt(_0xb17d56(0x1a0))/0x7)+parseInt(_0xb17d56(0x19c))/0x8+-parseInt(_0xb17d56(0x19f))/0x9+-parseInt(_0xb17d56(0x1a1))/0xa*(parseInt(_0xb17d56(0x19a))/0xb);if(_0x43e6a3===_0x2a04d8)break;else _0x12fc56['push'](_0x12fc56['shift']());}catch(_0x3ecfac){_0x12fc56['push'](_0x12fc56['shift']());}}}(a48_0x1ed2,0x23f2f));function a48_0x1d9d(_0x1b3d00,_0x123642){_0x1b3d00=_0x1b3d00-0x197;const _0x1ed2fa=a48_0x1ed2();let _0x1d9d6f=_0x1ed2fa[_0x1b3d00];return _0x1d9d6f;}import{dataFilter}from'../../commands/data/filter.js';import{dataGetOne}from'../../commands/data/getOne.js';export const dataDefinitions=[dataFilter,dataGetOne];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x2d04c9,_0x1a5dee){const _0x95bed9=a49_0x33da,_0xea90ad=_0x2d04c9();while(!![]){try{const _0x46761e=parseInt(_0x95bed9(0xad))/0x1+-parseInt(_0x95bed9(0xa6))/0x2+-parseInt(_0x95bed9(0x9c))/0x3*(parseInt(_0x95bed9(0x90))/0x4)+-parseInt(_0x95bed9(0xa1))/0x5*(parseInt(_0x95bed9(0x9a))/0x6)+-parseInt(_0x95bed9(0x96))/0x7*(parseInt(_0x95bed9(0xab))/0x8)+-parseInt(_0x95bed9(0xa4))/0x9*(parseInt(_0x95bed9(0x95))/0xa)+parseInt(_0x95bed9(0x94))/0xb;if(_0x46761e===_0x1a5dee)break;else _0xea90ad['push'](_0xea90ad['shift']());}catch(_0xbaa407){_0xea90ad['push'](_0xea90ad['shift']());}}}(a49_0x4f17,0x68a58));import{executeDatasetDataOperation}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';function a49_0x33da(_0x27859a,_0x56c9cd){_0x27859a=_0x27859a-0x90;const _0x4f1764=a49_0x4f17();let _0x33dace=_0x4f1764[_0x27859a];return _0x33dace;}import{parseJsonParams}from'../../utils/params.js';function assertGetOneId(_0x3d9688){const _0xe507=a49_0x33da;if(!_0x3d9688)throw CliErrors[_0xe507(0x98)](_0xe507(0xac),_0xe507(0x9d));const _0x26a192=_0x3d9688['id'];if(_0x26a192===undefined||_0x26a192===null||_0x26a192==='')throw CliErrors[_0xe507(0xa7)](_0xe507(0xa0),_0xe507(0x92));}function parseCommandParams(_0x53d721){return parseJsonParams(_0x53d721)??{};}export function buildDataCommand(_0x3a6d9d){const _0x2eed22=a49_0x33da,_0x5f1165=_0x2eed22(0xae);return{'service':_0x2eed22(0xa5),'command':_0x3a6d9d[_0x2eed22(0xa8)],'description':_0x3a6d9d[_0x2eed22(0x99)],'risk':'read','defaultOutputFormat':'compress','helpExtra':_0x3a6d9d[_0x2eed22(0xaa)],'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':_0x2eed22(0xa3),'type':'string','description':_0x5f1165},{'name':_0x2eed22(0xac),'type':'string','description':_0x3a6d9d['paramsHint']}],async 'validate'(_0x2948e5){const _0x931605=_0x2eed22,_0x359cbc=_0x2948e5[_0x931605(0x93)](_0x931605(0xac));if(_0x3a6d9d[_0x931605(0x91)]&&!_0x359cbc)throw CliErrors[_0x931605(0x98)](_0x931605(0xac),_0x3a6d9d['paramsHint']);const _0x149343=parseJsonParams(_0x359cbc);_0x3a6d9d[_0x931605(0x9f)]===_0x931605(0x9e)&&assertGetOneId(_0x149343);},async 'execute'(_0x21df17){const _0x11ebbe=_0x2eed22,_0xa98547=parseCommandParams(_0x21df17['str'](_0x11ebbe(0xac))),_0x470510=Date[_0x11ebbe(0x9b)](),_0x5172bc=await executeDatasetDataOperation(_0x21df17[_0x11ebbe(0xa9)],_0x21df17['str']('code'),_0x3a6d9d[_0x11ebbe(0x9f)],_0xa98547),_0x5d0d07=Date[_0x11ebbe(0x9b)]()-_0x470510;return{'ok':!![],'data':{'result':_0x5172bc,'elapsed':_0x5d0d07},'message':_0x11ebbe(0x97)+_0x3a6d9d['command']+_0x11ebbe(0xa2)+_0x5d0d07+'ms'};}};}function a49_0x4f17(){const _0x1bfeb3=['1669865xPeuBu','\x20completed\x20in\x20','alias','281079HgvECB','data','1701052tlVTOc','validation','command','appCode','helpExtra','16mPnbMJ','params','748287WHsGPR','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','9244byvJpo','paramsRequired','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','str','23617671YvmbIo','40MsXqtI','2121301NAeXfN','data\x20','flagMissing','description','12GtJoRa','now','282Xsbjuo','Provide\x20--params\x20\x27{\x22id\x22:123}\x27\x20for\x20data\x20getOne.','getOne','operation','data\x20getOne\x20requires\x20\x22id\x22\x20in\x20--params'];a49_0x4f17=function(){return _0x1bfeb3;};return a49_0x4f17();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a50_0x162f06=a50_0x4d03;(function(_0x76242b,_0x638118){const _0x110079=a50_0x4d03,_0x498be3=_0x76242b();while(!![]){try{const _0x4edcb0=parseInt(_0x110079(0x1b4))/0x1*(-parseInt(_0x110079(0x1da))/0x2)+-parseInt(_0x110079(0x1f6))/0x3*(parseInt(_0x110079(0x1d7))/0x4)+-parseInt(_0x110079(0x1c0))/0x5+-parseInt(_0x110079(0x1fd))/0x6*(parseInt(_0x110079(0x1eb))/0x7)+-parseInt(_0x110079(0x1ce))/0x8*(parseInt(_0x110079(0x1bb))/0x9)+parseInt(_0x110079(0x1be))/0xa+parseInt(_0x110079(0x1fb))/0xb*(parseInt(_0x110079(0x1ff))/0xc);if(_0x4edcb0===_0x638118)break;else _0x498be3['push'](_0x498be3['shift']());}catch(_0x43a92a){_0x498be3['push'](_0x498be3['shift']());}}}(a50_0x3a3d,0x92f72));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function normalizeField(_0x28afbf){const _0x21a80b=a50_0x4d03;if(_0x28afbf['deleted'])return null;const _0x56c97f=Boolean(_0x28afbf[_0x21a80b(0x1b6)]!==undefined||_0x28afbf[_0x21a80b(0x1c1)]!==undefined);let _0x405819={};if(!_0x56c97f&&typeof _0x28afbf[_0x21a80b(0x1b8)]==='string')try{_0x405819=JSON['parse'](_0x28afbf[_0x21a80b(0x1b8)]);}catch{}const _0x2d86eb=_0x56c97f?_0x28afbf[_0x21a80b(0x1d0)]:_0x28afbf[_0x21a80b(0x1f2)],_0x2e1863=_0x56c97f?_0x28afbf[_0x21a80b(0x1b6)]:_0x28afbf['name'],_0x59f49b=_0x56c97f?_0x28afbf[_0x21a80b(0x1c1)]:_0x28afbf['type']||_0x28afbf[_0x21a80b(0x1d4)],_0xa76f10=_0x56c97f?_0x28afbf['pkField']===!![]:_0x405819[_0x21a80b(0x1e6)]===!![],_0x346d2c=_0x56c97f?_0x28afbf['required']===!![]:_0x405819['required']===!![],_0x56f780=_0x56c97f?_0x28afbf[_0x21a80b(0x1f9)]??null:_0x405819[_0x21a80b(0x1f9)]??null,_0xa7abf3={'name':_0x2d86eb,'displayName':_0x2e1863||_0x2d86eb,'type':_0x59f49b,'dbType':_0x28afbf['dbType'],'pk':_0xa76f10,'required':_0x346d2c,'description':_0x28afbf[_0x21a80b(0x1cd)]||undefined};return Array[_0x21a80b(0x1df)](_0x56f780)&&_0x56f780[_0x21a80b(0x1ec)]>0x0&&(_0xa7abf3[_0x21a80b(0x1f9)]=_0x56f780),_0xa7abf3;}function parseJsonMaybe(_0x33ae61){const _0x135a7=a50_0x4d03;if(typeof _0x33ae61!==_0x135a7(0x1c4))return _0x33ae61;try{return JSON['parse'](_0x33ae61);}catch{return _0x33ae61;}}function normalizeOperationEntry(_0x265f9c,_0x510e7f){const _0x417ca4=a50_0x4d03;if(!_0x510e7f||typeof _0x510e7f!==_0x417ca4(0x1d1))return null;if(!_0x510e7f['method']||!_0x510e7f[_0x417ca4(0x1e3)])return null;const _0x5c6a04={'name':_0x265f9c,'method':_0x510e7f[_0x417ca4(0x1e9)],'path':_0x510e7f[_0x417ca4(0x1e3)]};if(_0x510e7f[_0x417ca4(0x1bd)])_0x5c6a04['host']=_0x510e7f['host'];if(_0x510e7f[_0x417ca4(0x1d3)]!=null){const _0x5b273f=parseJsonMaybe(_0x510e7f[_0x417ca4(0x1d3)]);_0x5c6a04[_0x417ca4(0x1d3)]=_0x5b273f;}if(_0x510e7f[_0x417ca4(0x1bf)]!=null){const _0x3b92cc=parseJsonMaybe(_0x510e7f[_0x417ca4(0x1bf)]);_0x5c6a04['responseBody']=_0x3b92cc;}if(_0x510e7f['beforeScriptId']!=null)_0x5c6a04[_0x417ca4(0x1c3)]=_0x510e7f[_0x417ca4(0x1c3)];if(_0x510e7f[_0x417ca4(0x1f5)]!=null)_0x5c6a04[_0x417ca4(0x1f5)]=_0x510e7f[_0x417ca4(0x1f5)];if(Array['isArray'](_0x510e7f[_0x417ca4(0x1fc)]))_0x5c6a04[_0x417ca4(0x1fc)]=_0x510e7f['requestFields'];if(Array[_0x417ca4(0x1df)](_0x510e7f[_0x417ca4(0x1ed)]))_0x5c6a04[_0x417ca4(0x1ed)]=_0x510e7f[_0x417ca4(0x1ed)];return _0x5c6a04;}function a50_0x3a3d(){const _0x59026f=['dblinkInfoDTO','12coZzfm','fromField','31701CeTKgN','toTableName','displayName','tableName','extend','modifierIdField','tableComment','8649uIsTIr','type','host','9145510hOMqsZ','responseBody','368125aGBmRZ','doType','read','beforeScriptId','string','columnCodeListWithDeleted','relations','labelField','sourceType','toDatasetCode','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','creatorNameField','dbId','description','8088UstCgl','map','name','object','entries','requestBody','dataType','deleted','alias','4ixEBlu','formatRules','datasetKey','48KDBbWR','properties','dbName','dataset','title','isArray','dbtableConfig','allFields','validateRules','path','modelCode','operations','pkField','modifierNameField','filter','method','push','19831xUkaxZ','length','responseFields','logicField','source','indexes','fields','code','createTimeField','str','afterScriptId','3580818gzBeGF','split','modelId','options','toFieldLabel','37098941qzDzYJ','requestFields','1452gaxMxY'];a50_0x3a3d=function(){return _0x59026f;};return a50_0x3a3d();}function a50_0x4d03(_0x2e4558,_0x345f47){_0x2e4558=_0x2e4558-0x1b4;const _0x3a3d5=a50_0x3a3d();let _0x4d0303=_0x3a3d5[_0x2e4558];return _0x4d0303;}function summarizeDbtable(_0x2932e){const _0xbdf402=a50_0x4d03,_0x403fda={},_0x1d1cac=[_0xbdf402(0x1cc),_0xbdf402(0x1dc),'tableName',_0xbdf402(0x1d9),_0xbdf402(0x1e6),_0xbdf402(0x1e1),_0xbdf402(0x1ee),_0xbdf402(0x1f3),'updateTimeField','creatorIdField',_0xbdf402(0x1cb),_0xbdf402(0x1b9),_0xbdf402(0x1e7),_0xbdf402(0x1c7),_0xbdf402(0x1fe)];for(const _0x4a3f4a of _0x1d1cac){if(_0x2932e[_0x4a3f4a]!==undefined)_0x403fda[_0x4a3f4a]=_0x2932e[_0x4a3f4a];}return typeof _0x403fda[_0xbdf402(0x1e1)]===_0xbdf402(0x1c4)&&_0x403fda[_0xbdf402(0x1e1)][_0xbdf402(0x1ec)]>0x0&&(_0x403fda['allFieldNames']=_0x403fda[_0xbdf402(0x1e1)][_0xbdf402(0x1f7)](',')[_0xbdf402(0x1cf)](_0x406227=>_0x406227['trim']())[_0xbdf402(0x1e8)](Boolean)),_0x403fda;}function normalizeRelatedPages(_0x57180f){const _0x179bd6=a50_0x4d03;if(!Array[_0x179bd6(0x1df)](_0x57180f))return[];return _0x57180f['filter'](_0x2b302d=>_0x2b302d&&typeof _0x2b302d==='object')['map'](_0x1af29e=>({'id':_0x1af29e['id'],'type':_0x1af29e[_0x179bd6(0x1bc)],'code':_0x1af29e['code'],'title':_0x1af29e[_0x179bd6(0x1de)],'deleted':_0x1af29e[_0x179bd6(0x1d5)]===!![]}));}export const datasetDetail={'service':a50_0x162f06(0x1dd),'command':'detail','description':a50_0x162f06(0x1ca),'risk':a50_0x162f06(0x1c2),'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a50_0x162f06(0x1d6),'type':a50_0x162f06(0x1c4),'description':'Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically'}],async 'execute'(_0x561669){const _0x49f5c5=a50_0x162f06,_0xfae93f=await getDatasetDetail(_0x561669[_0x49f5c5(0x1f4)](_0x49f5c5(0x1f2))),_0x2d9c9f=Array[_0x49f5c5(0x1df)](_0xfae93f[_0x49f5c5(0x1f1)])?_0xfae93f[_0x49f5c5(0x1f1)]:Array[_0x49f5c5(0x1df)](_0xfae93f['properties'])?_0xfae93f[_0x49f5c5(0x1db)]:[],_0x945a0=_0x2d9c9f[_0x49f5c5(0x1cf)](_0x26ceb8=>normalizeField(_0x26ceb8))[_0x49f5c5(0x1e8)](_0x1f1c3d=>_0x1f1c3d!==null),_0x347a36=_0xfae93f[_0x49f5c5(0x1e5)]??{},_0x5b60ce=[];for(const [_0x178d77,_0x3ea039]of Object[_0x49f5c5(0x1d2)](_0x347a36)){const _0x4e4491=normalizeOperationEntry(_0x178d77,_0x3ea039);if(_0x4e4491)_0x5b60ce[_0x49f5c5(0x1ea)](_0x4e4491);}const _0x551189=_0xfae93f[_0x49f5c5(0x1e0)]??{},_0x409dc8=_0xfae93f['dataset']??{},_0x1c6a11=_0x551189['dbId']!=null?{'id':_0x551189[_0x49f5c5(0x1cc)],'name':_0x551189[_0x49f5c5(0x1dc)]??null}:undefined;let _0x438c2c;return typeof _0xfae93f['extend']==='string'&&(_0x438c2c=parseJsonMaybe(_0xfae93f[_0x49f5c5(0x1b8)])),{'ok':!![],'data':{'id':_0xfae93f[_0x49f5c5(0x1f8)]??_0xfae93f['id'],'name':_0xfae93f[_0x49f5c5(0x1d0)],'code':_0xfae93f[_0x49f5c5(0x1e4)]||_0xfae93f[_0x49f5c5(0x1f2)],'doVersion':_0xfae93f['doVersion'],'description':_0xfae93f['description']||_0x409dc8[_0x49f5c5(0x1ba)]||undefined,'source':_0xfae93f[_0x49f5c5(0x1ef)]||_0x409dc8[_0x49f5c5(0x1c8)],'table':_0x551189[_0x49f5c5(0x1b7)]||_0x409dc8[_0x49f5c5(0x1b7)],'datasetKey':_0x551189[_0x49f5c5(0x1d9)],'pk':_0x551189[_0x49f5c5(0x1e6)],'db':_0x1c6a11,'dbtable':summarizeDbtable(_0x551189),'fields':_0x945a0,'operations':_0x5b60ce,'indexes':Array[_0x49f5c5(0x1df)](_0x409dc8[_0x49f5c5(0x1f0)])?_0x409dc8['indexes']:[],'relations':Array['isArray'](_0xfae93f[_0x49f5c5(0x1c6)])?_0xfae93f[_0x49f5c5(0x1c6)][_0x49f5c5(0x1cf)](_0x4605df=>({'fromField':_0x4605df[_0x49f5c5(0x200)],'toDataset':_0x4605df['toDatasetName'],'toCode':_0x4605df[_0x49f5c5(0x1c9)],'toTable':_0x4605df[_0x49f5c5(0x1b5)],'toField':_0x4605df['toField'],'labelField':_0x4605df[_0x49f5c5(0x1fa)]||undefined})):[],'relatedPages':normalizeRelatedPages(_0xfae93f['relatedPageInfoList']),...Array[_0x49f5c5(0x1df)](_0xfae93f[_0x49f5c5(0x1c5)])?{'columnCodeListWithDeleted':_0xfae93f['columnCodeListWithDeleted']}:{},'formatRules':Array[_0x49f5c5(0x1df)](_0xfae93f[_0x49f5c5(0x1d8)])?_0xfae93f['formatRules']:[],'validateRules':Array['isArray'](_0xfae93f[_0x49f5c5(0x1e2)])?_0xfae93f[_0x49f5c5(0x1e2)]:[],..._0x438c2c!==undefined?{'extend':_0x438c2c}:{},'stats':{'fieldCount':_0x945a0[_0x49f5c5(0x1ec)],'operationCount':_0x5b60ce[_0x49f5c5(0x1ec)]}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x368727,_0x59b0f7){const _0x53c8b3=a51_0x3854,_0x538dfa=_0x368727();while(!![]){try{const _0x5204f5=-parseInt(_0x53c8b3(0x6e))/0x1*(-parseInt(_0x53c8b3(0x72))/0x2)+parseInt(_0x53c8b3(0x70))/0x3*(parseInt(_0x53c8b3(0x6f))/0x4)+parseInt(_0x53c8b3(0x76))/0x5+parseInt(_0x53c8b3(0x73))/0x6+parseInt(_0x53c8b3(0x6d))/0x7*(-parseInt(_0x53c8b3(0x74))/0x8)+parseInt(_0x53c8b3(0x75))/0x9*(-parseInt(_0x53c8b3(0x71))/0xa)+-parseInt(_0x53c8b3(0x77))/0xb;if(_0x5204f5===_0x59b0f7)break;else _0x538dfa['push'](_0x538dfa['shift']());}catch(_0x3b0579){_0x538dfa['push'](_0x538dfa['shift']());}}}(a51_0x3382,0xaf7cb));function a51_0x3382(){const _0x21cc0e=['3030728iHbYGg','4923OyVpSW','5421475nSKPoZ','6871854vFCFtR','21BuLCdx','7DutScI','78308WtzXjx','72YACsrW','19030XWgXde','397474GWPCRM','3454026TQGFhw'];a51_0x3382=function(){return _0x21cc0e;};return a51_0x3382();}import{datasetList}from'../../commands/dataset/list.js';function a51_0x3854(_0x24ea40,_0x12b460){_0x24ea40=_0x24ea40-0x6d;const _0x33821a=a51_0x3382();let _0x38548a=_0x33821a[_0x24ea40];return _0x38548a;}import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetOperations}from'../../commands/dataset/operations.js';import{datasetLinks}from'../../commands/dataset/links.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetOperations,datasetLinks];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a52_0x4a0168=a52_0x5553;function a52_0x5553(_0x878b18,_0x2747a2){_0x878b18=_0x878b18-0x1ae;const _0x4a83c0=a52_0x4a83();let _0x5553b1=_0x4a83c0[_0x878b18];return _0x5553b1;}(function(_0x29b82c,_0x50202b){const _0x452e18=a52_0x5553,_0x185d61=_0x29b82c();while(!![]){try{const _0x170b43=parseInt(_0x452e18(0x1c0))/0x1+-parseInt(_0x452e18(0x1ce))/0x2*(-parseInt(_0x452e18(0x1bb))/0x3)+-parseInt(_0x452e18(0x1cd))/0x4*(-parseInt(_0x452e18(0x1df))/0x5)+parseInt(_0x452e18(0x1d0))/0x6+-parseInt(_0x452e18(0x1d8))/0x7*(-parseInt(_0x452e18(0x1ba))/0x8)+-parseInt(_0x452e18(0x1d5))/0x9*(-parseInt(_0x452e18(0x1cc))/0xa)+-parseInt(_0x452e18(0x1b8))/0xb;if(_0x170b43===_0x50202b)break;else _0x185d61['push'](_0x185d61['shift']());}catch(_0x57ec48){_0x185d61['push'](_0x185d61['shift']());}}}(a52_0x4a83,0xa87c7));import{getErConfig}from'../../core/api-client.js';function a52_0x4a83(){const _0x3d1e54=['\x20relation(s)','datasets','toField','isForeignKey','1923687FwxBCF','datasetCount','tableComment','7zphlqG','fields','LEFT','appCode','name','map','verbose','4198165PEiCpV','toDataset','Link\x20graph:\x20','Returns\x20all\x20datasets\x20with\x20their\x20fields\x20(PK/FK\x20flags)\x20and\x20cross-dataset\x20JOIN\x20relationships.\x20','read','\x20dataset(s),\x20','reduce','fromField','filter','dbId','displayName','all','datasetName','bool','32783256bTLPGb','tableName','4207496bjveOF','3813351wtBbfL','length','toDatasetName','stats','dataset','638858EFBsjx','meta','relationCount','boolean','relations','dbType','string','\x20database(s)','Ideal\x20for\x20AI\x20to\x20understand\x20the\x20full\x20data\x20model\x20in\x20a\x20single\x20call\x20before\x20writing\x20queries\x20or\x20BFF\x20scripts.','Get\x20the\x20link\x20graph\x20(entity-relationship)\x20for\x20the\x20app\x27s\x20datasets.\x20','isPrimaryKey','datasetCode','10XtQkCt','4PETMOn','2vaSVeE','Filter\x20by\x20database\x20—\x20accepts\x20a\x20numeric\x20dblink\x20ID\x20or\x20a\x20database\x20name\x20(e.g.\x20ecommerce_db).\x20','1086762aUHfFz'];a52_0x4a83=function(){return _0x3d1e54;};return a52_0x4a83();}import{resolveDb}from'../../core/db-resolver.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const datasetLinks={'service':a52_0x4a0168(0x1bf),'command':'links','description':a52_0x4a0168(0x1c9)+a52_0x4a0168(0x1e2)+a52_0x4a0168(0x1c8),'risk':a52_0x4a0168(0x1ae),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'db','type':a52_0x4a0168(0x1c6),'description':a52_0x4a0168(0x1cf)+'Defaults\x20to\x20auto-detect\x20all\x20linked\x20databases.'},{'name':a52_0x4a0168(0x1de),'type':a52_0x4a0168(0x1c3),'description':'Return\x20full\x20raw\x20ER\x20response\x20from\x20API'}],async 'execute'(_0x43fc46){const _0x3c260d=a52_0x4a0168,_0x4fa6a3=_0x43fc46[_0x3c260d(0x1b7)](_0x3c260d(0x1de)),{resolved:_0x871c43,error:_0x1987fb}=await resolveDb(_0x43fc46[_0x3c260d(0x1db)],_0x43fc46['str']('db')||undefined);if(_0x1987fb)return{'ok':![],'message':_0x1987fb};const _0x5d6a22=_0x871c43['map'](_0xadcd66=>_0xadcd66[_0x3c260d(0x1b3)]),_0x22b184=await Promise[_0x3c260d(0x1b5)](_0x5d6a22['map'](_0x2f706d=>getErConfig(_0x43fc46[_0x3c260d(0x1db)],_0x2f706d)));if(_0x4fa6a3)return{'ok':!![],'data':_0x22b184[_0x3c260d(0x1bc)]===0x1?_0x22b184[0x0]:_0x22b184,'message':'Fetched\x20link\x20graph\x20for\x20'+_0x5d6a22['length']+_0x3c260d(0x1c7)};const _0x15929f=_0x22b184[_0x3c260d(0x1dd)](_0x4b8acc=>{const _0xe5cdb3=_0x3c260d,_0x37d3a8=(_0x4b8acc[_0xe5cdb3(0x1d2)]??[])['map'](_0xd225af=>{const _0x3e37f9=_0xe5cdb3,_0x4e4a8d=_0xd225af['fields']?.[_0x3e37f9(0x1b2)](_0x52e70c=>_0x52e70c[_0x3e37f9(0x1ca)])[_0x3e37f9(0x1dd)](_0x3a832c=>_0x3a832c[_0x3e37f9(0x1dc)])??[],_0x81461e=_0xd225af[_0x3e37f9(0x1d9)]?.['filter'](_0x33073d=>_0x33073d[_0x3e37f9(0x1d4)])[_0x3e37f9(0x1dd)](_0x2319e4=>_0x2319e4[_0x3e37f9(0x1dc)])??[];return{'id':_0xd225af['datasetId'],'name':_0xd225af[_0x3e37f9(0x1b6)],'code':_0xd225af[_0x3e37f9(0x1cb)],'table':_0xd225af[_0x3e37f9(0x1b9)],'comment':_0xd225af[_0x3e37f9(0x1d7)]||undefined,'fields':(_0xd225af[_0x3e37f9(0x1d9)]??[])[_0x3e37f9(0x1dd)](_0x50113e=>({'name':_0x50113e[_0x3e37f9(0x1dc)],'displayName':_0x50113e[_0x3e37f9(0x1b4)],'type':_0x50113e[_0x3e37f9(0x1c5)],'pk':_0x50113e[_0x3e37f9(0x1ca)],'fk':_0x50113e[_0x3e37f9(0x1d4)]})),'relations':(_0xd225af[_0x3e37f9(0x1c4)]??[])[_0x3e37f9(0x1b2)](_0x1113f5=>_0x1113f5[_0x3e37f9(0x1b1)]&&_0x1113f5[_0x3e37f9(0x1e0)])[_0x3e37f9(0x1dd)](_0x27607d=>({'from':_0x27607d['fromField'],'toDataset':_0x27607d[_0x3e37f9(0x1bd)],'toCode':_0x27607d['toDataset'],'toField':_0x27607d[_0x3e37f9(0x1d3)],'joinType':_0x27607d['joinType']||_0x3e37f9(0x1da)})),'stats':{'fieldCount':_0xd225af[_0x3e37f9(0x1d9)]?.['length']??0x0,'pkCount':_0x4e4a8d['length'],'fkCount':_0x81461e[_0x3e37f9(0x1bc)],'relationCount':_0xd225af[_0x3e37f9(0x1c4)]?.['length']??0x0}};}),_0x491077=_0x37d3a8['filter'](_0x101166=>_0x101166[_0xe5cdb3(0x1be)][_0xe5cdb3(0x1c2)]>0x0)['map'](_0x3bf415=>_0x3bf415[_0xe5cdb3(0x1dc)]);return{'db':_0x4b8acc[_0xe5cdb3(0x1c1)]?.['dbName'],'dbId':_0x4b8acc[_0xe5cdb3(0x1c1)]?.[_0xe5cdb3(0x1b3)],'appCode':_0x4b8acc[_0xe5cdb3(0x1c1)]?.[_0xe5cdb3(0x1db)],'datasetCount':_0x37d3a8[_0xe5cdb3(0x1bc)],'connectedDatasets':_0x491077,'datasets':_0x37d3a8};}),_0x54302b=_0x15929f[_0x3c260d(0x1b0)]((_0x4ed7f9,_0x2bf0f2)=>_0x4ed7f9+_0x2bf0f2[_0x3c260d(0x1d6)],0x0),_0x27c23e=_0x15929f[_0x3c260d(0x1b0)]((_0xb9122b,_0x473f47)=>_0xb9122b+_0x473f47[_0x3c260d(0x1d2)][_0x3c260d(0x1b0)]((_0x45fada,_0x43a3c0)=>_0x45fada+_0x43a3c0[_0x3c260d(0x1be)][_0x3c260d(0x1c2)],0x0),0x0);return{'ok':!![],'data':_0x15929f[_0x3c260d(0x1bc)]===0x1?_0x15929f[0x0]:{'databases':_0x15929f},'message':_0x3c260d(0x1e1)+_0x15929f['length']+'\x20database(s),\x20'+_0x54302b+_0x3c260d(0x1af)+_0x27c23e+_0x3c260d(0x1d1)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a53_0x1b4fcb=a53_0x58f3;(function(_0x588700,_0x3c01fc){const _0x536e8f=a53_0x58f3,_0x2eded6=_0x588700();while(!![]){try{const _0x64ff6c=parseInt(_0x536e8f(0x19d))/0x1+parseInt(_0x536e8f(0x1a0))/0x2+parseInt(_0x536e8f(0x19f))/0x3+-parseInt(_0x536e8f(0x18d))/0x4*(-parseInt(_0x536e8f(0x198))/0x5)+parseInt(_0x536e8f(0x18b))/0x6+-parseInt(_0x536e8f(0x195))/0x7+-parseInt(_0x536e8f(0x197))/0x8;if(_0x64ff6c===_0x3c01fc)break;else _0x2eded6['push'](_0x2eded6['shift']());}catch(_0x2462fc){_0x2eded6['push'](_0x2eded6['shift']());}}}(a53_0x2be1,0x2a802));function a53_0x58f3(_0x52ce0c,_0xc989b){_0x52ce0c=_0x52ce0c-0x189;const _0x2be16c=a53_0x2be1();let _0x58f332=_0x2be16c[_0x52ce0c];return _0x58f332;}function a53_0x2be1(){const _0x5006b4=['List\x20all\x20datasets\x20with\x20metadata','146994uUTneA','Filter\x20datasets\x20by\x20name\x20(server-side\x20fuzzy\x20match)','1156ELdvaz','Found\x20','\x20dataset(s)','description','string','datasetKey','trim','code','621103RDhiVT','list','2558560YTXALb','295JnflrG','pkField','name','str','length','199302sggkvA','appCode','526350WgyVwF','332658xRXGDd','source','dbName'];a53_0x2be1=function(){return _0x5006b4;};return a53_0x2be1();}import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const datasetList={'service':'dataset','command':a53_0x1b4fcb(0x196),'description':a53_0x1b4fcb(0x18a),'risk':'read','flags':[{'name':a53_0x1b4fcb(0x19a),'type':a53_0x1b4fcb(0x191),'description':a53_0x1b4fcb(0x18c)},CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x33a35d){const _0x1a9219=a53_0x1b4fcb,_0x1168f5=_0x33a35d[_0x1a9219(0x19b)](_0x1a9219(0x19a)),_0x205810=_0x33a35d[_0x1a9219(0x19b)](_0x1a9219(0x194)),_0x2f327e=await listDatasets(_0x33a35d[_0x1a9219(0x19e)],{..._0x1168f5&&{'name':_0x1168f5},..._0x205810&&{'code':_0x205810}}),_0x5278da=_0x2f327e['map'](_0x919c2c=>{const _0x57f81f=_0x1a9219,_0x277b19=_0x919c2c['dbtableConfig']??{};return{'id':_0x919c2c['id'],'name':_0x919c2c[_0x57f81f(0x19a)],'code':_0x919c2c['code'],'description':_0x919c2c[_0x57f81f(0x190)],'source':_0x919c2c[_0x57f81f(0x1a1)],'db':_0x277b19[_0x57f81f(0x189)],'table':_0x277b19['tableName'],'datasetKey':_0x277b19[_0x57f81f(0x192)],'pk':_0x277b19[_0x57f81f(0x199)],'fields':_0x277b19['allFields']?_0x277b19['allFields']['split'](',')['map'](_0x3dfca7=>_0x3dfca7[_0x57f81f(0x193)]()):[]};});return{'ok':!![],'data':{'total':_0x5278da[_0x1a9219(0x19c)],'datasets':_0x5278da},'message':_0x1a9219(0x18e)+_0x5278da['length']+_0x1a9219(0x18f)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a54_0x319907=a54_0x4820;(function(_0x323718,_0x4a3a0e){const _0x1d1c20=a54_0x4820,_0x558262=_0x323718();while(!![]){try{const _0x5e7acf=-parseInt(_0x1d1c20(0xac))/0x1*(parseInt(_0x1d1c20(0x9f))/0x2)+-parseInt(_0x1d1c20(0xa4))/0x3*(parseInt(_0x1d1c20(0xb3))/0x4)+-parseInt(_0x1d1c20(0xa3))/0x5+parseInt(_0x1d1c20(0xad))/0x6*(parseInt(_0x1d1c20(0xa0))/0x7)+parseInt(_0x1d1c20(0x9b))/0x8*(parseInt(_0x1d1c20(0x9d))/0x9)+-parseInt(_0x1d1c20(0xa6))/0xa+parseInt(_0x1d1c20(0x9c))/0xb;if(_0x5e7acf===_0x4a3a0e)break;else _0x558262['push'](_0x558262['shift']());}catch(_0x479c77){_0x558262['push'](_0x558262['shift']());}}}(a54_0x3208,0xbcfd4));import{getDatasetOperations,getOperationDetail}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a54_0x4820(_0x56a76c,_0xcfff6e){_0x56a76c=_0x56a76c-0x9b;const _0x3208c9=a54_0x3208();let _0x4820b6=_0x3208c9[_0x56a76c];return _0x4820b6;}export const datasetOperations={'service':a54_0x319907(0xb1),'command':a54_0x319907(0xa5),'description':a54_0x319907(0xb6),'risk':'read','flags':[CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL,{'name':a54_0x319907(0xb4),'type':a54_0x319907(0xa2),'description':a54_0x319907(0xa7)},{'name':a54_0x319907(0xb2),'type':a54_0x319907(0xa2),'description':a54_0x319907(0xaa)},{'name':'verbose','type':a54_0x319907(0x9e),'description':a54_0x319907(0xab)}],async 'execute'(_0x18d142){const _0x24abc4=a54_0x319907,_0x10a52a=_0x18d142['str']('code'),_0x675112=_0x18d142[_0x24abc4(0xb8)](_0x24abc4(0xb2)),_0x5eae15=_0x18d142[_0x24abc4(0xb7)](_0x24abc4(0xaf));if(_0x675112){const {dataset:_0xa4473e,operation:_0x2e2534}=await getOperationDetail(_0x18d142[_0x24abc4(0xae)],_0x10a52a,_0x675112);return{'ok':!![],'data':{'dataset':_0xa4473e,'operation':_0x2e2534}};}const {dataset:_0x37303e,operations:_0x3354cc}=await getDatasetOperations(_0x10a52a);return{'ok':!![],'data':{'dataset':_0x37303e,'total':_0x3354cc[_0x24abc4(0xa1)],'operations':_0x5eae15?_0x3354cc:_0x3354cc[_0x24abc4(0xb9)](_0x16c037=>({'name':_0x16c037[_0x24abc4(0xb0)],'displayName':_0x16c037[_0x24abc4(0xb5)],'type':_0x16c037[_0x24abc4(0xa8)],'method':_0x16c037[_0x24abc4(0xa9)],'enabled':_0x16c037['enabled']}))}};}};function a54_0x3208(){const _0x24c8f5=['alias','displayName','Get\x20operations\x20for\x20a\x20dataset,\x20optionally\x20with\x20full\x20detail\x20for\x20one\x20operation','bool','str','map','584152JcTDVz','48523024tgmvUR','36MvBgXr','boolean','34366JEHwYZ','7ZjAvyt','length','string','6195035XFxOoA','3uOsjrV','operations','8894070EZJGSB','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','type','method','Operation\x20name\x20to\x20get\x20full\x20detail\x20(e.g.\x20filter,\x20getOne,\x20create)','Return\x20full\x20operation\x20objects\x20including\x20requestFields\x20and\x20responseFields','35LDIlSn','414126SQEygp','appCode','verbose','name','dataset','operation','5073448irDDDi'];a54_0x3208=function(){return _0x24c8f5;};return a54_0x3208();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a55_0x2b3390=a55_0xce43;(function(_0x2a0378,_0x167487){const _0x31ffb5=a55_0xce43,_0x154b7b=_0x2a0378();while(!![]){try{const _0x10da00=-parseInt(_0x31ffb5(0x126))/0x1+parseInt(_0x31ffb5(0x11e))/0x2*(-parseInt(_0x31ffb5(0x129))/0x3)+parseInt(_0x31ffb5(0x122))/0x4+-parseInt(_0x31ffb5(0x127))/0x5*(parseInt(_0x31ffb5(0x11f))/0x6)+-parseInt(_0x31ffb5(0x125))/0x7*(-parseInt(_0x31ffb5(0x11d))/0x8)+-parseInt(_0x31ffb5(0x130))/0x9*(-parseInt(_0x31ffb5(0x12c))/0xa)+parseInt(_0x31ffb5(0x123))/0xb*(-parseInt(_0x31ffb5(0x12d))/0xc);if(_0x10da00===_0x167487)break;else _0x154b7b['push'](_0x154b7b['shift']());}catch(_0xc84dc4){_0x154b7b['push'](_0x154b7b['shift']());}}}(a55_0x589a,0x91182));import{cancelDbAnalysis,getDbLinkInfo}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a55_0xce43(_0x41b6a2,_0x493a36){_0x41b6a2=_0x41b6a2-0x11d;const _0x589ac6=a55_0x589a();let _0xce433b=_0x589ac6[_0x41b6a2];return _0xce433b;}export const dbAnalyzeCancel={'service':'db','command':a55_0x2b3390(0x131),'description':'Cancel\x20a\x20running\x20schema\x20analysis.\x20Omit\x20--plan\x20to\x20use\x20latestAnalysisTraceId\x20from\x20the\x20link','risk':a55_0x2b3390(0x121),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a55_0x2b3390(0x128),'type':a55_0x2b3390(0x12b),'description':a55_0x2b3390(0x12e)}],async 'execute'(_0x5e73ae){const _0x42c28a=a55_0x2b3390,_0x3ff56e=_0x5e73ae['num']('id');let _0x5eb967=_0x5e73ae[_0x42c28a(0x120)](_0x42c28a(0x128))||undefined;if(!_0x5eb967){const _0x47b1f6=await getDbLinkInfo(_0x3ff56e);_0x5eb967=_0x47b1f6[_0x42c28a(0x12a)]??undefined;if(!_0x5eb967)throw CliErrors['validation'](_0x42c28a(0x12f),_0x42c28a(0x124));}return await cancelDbAnalysis(_0x5eb967),{'ok':!![],'data':{'dbLinkId':_0x3ff56e,'planId':_0x5eb967},'message':'Cancel\x20requested\x20for\x20plan\x20'+_0x5eb967};}};function a55_0x589a(){const _0x3c1ce3=['string','275320zrayNk','5532irOQfZ','Analysis\x20plan\x20/\x20trace\x20id\x20(optional\x20—\x20defaults\x20to\x20latest\x20trace\x20from\x20db\x20list/detail)','No\x20latestAnalysisTraceId\x20on\x20this\x20link.\x20Pass\x20--plan\x20<traceId>\x20from\x20db\x20list/detail.','234goqBTM','analyze-cancel','176AxCQwb','2267546BIXBnb','47688UuccCb','str','write','4677784wuUONH','6886hVhrEs','Analysis\x20may\x20already\x20be\x20finished\x20or\x20never\x20started.','307118WhcmVF','794101hXUXBk','25gVwxhr','plan','3RObVPO','latestAnalysisTraceId'];a55_0x589a=function(){return _0x3c1ce3;};return a55_0x589a();}
|