@lovrabet/lovrabet-cli 2.1.14 → 2.1.15-beta.1
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/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.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/update.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.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/product.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.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/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.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/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/lib/commands/app-config/shared.js +0 -1
package/lib/commands/bff/exec.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a14_0x1e747d=a14_0x13ef;(function(_0x3f4e60,_0x554404){const _0x3a6a6c=a14_0x13ef,_0x392637=_0x3f4e60();while(!![]){try{const _0x38531e=-parseInt(_0x3a6a6c(0x12d))/0x1*(-parseInt(_0x3a6a6c(0x130))/0x2)+-parseInt(_0x3a6a6c(0x12b))/0x3*(parseInt(_0x3a6a6c(0x127))/0x4)+parseInt(_0x3a6a6c(0x136))/0x5*(-parseInt(_0x3a6a6c(0x135))/0x6)+parseInt(_0x3a6a6c(0x12c))/0x7+parseInt(_0x3a6a6c(0x12a))/0x8*(parseInt(_0x3a6a6c(0x128))/0x9)+-parseInt(_0x3a6a6c(0x134))/0xa+parseInt(_0x3a6a6c(0x138))/0xb;if(_0x38531e===_0x554404)break;else _0x392637['push'](_0x392637['shift']());}catch(_0x3bc30d){_0x392637['push'](_0x392637['shift']());}}}(a14_0x4c51,0x2ba3b));import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a14_0x4c51(){const _0x2c4c76=['2tHsWUk','exec','now','name','1919780rPzRRm','462KSztIr','3355uAbrEB','read','574761umWyUA','588704NyJhSM','2680227qKEPkl','params','8SQaINk','3NdzhmX','1330217wgqfMN','29483CXQMek','BFF\x20function\x20name\x20to\x20execute','str'];a14_0x4c51=function(){return _0x2c4c76;};return a14_0x4c51();}function a14_0x13ef(_0x159341,_0x33640c){_0x159341=_0x159341-0x127;const _0x4c513e=a14_0x4c51();let _0x13ef9e=_0x4c513e[_0x159341];return _0x13ef9e;}export const bffExec={'service':'bff','command':a14_0x1e747d(0x131),'description':'Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','risk':a14_0x1e747d(0x137),'flags':[{...NAME_FLAG,'required':!![],'description':a14_0x1e747d(0x12e)},PARAMS_FLAG],async 'execute'(_0x20a419){const _0x34c932=a14_0x1e747d,_0x35ffb9=parseJsonParams(_0x20a419[_0x34c932(0x12f)](_0x34c932(0x129))),_0x32a473=Date['now'](),_0x5c4e0e=await executeSdkBff(_0x20a419[_0x34c932(0x12f)](_0x34c932(0x133)),_0x35ffb9),_0x5bc471=Date[_0x34c932(0x132)]()-_0x32a473;return{'ok':!![],'data':{'result':_0x5c4e0e,'elapsed':_0x5bc471},'message':'BFF\x20executed\x20in\x20'+_0x5bc471+'ms'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a15_0x1c49(_0x303957,_0x4deaf6){_0x303957=_0x303957-0x1f4;const _0x2dd749=a15_0x2dd7();let _0x1c49a7=_0x2dd749[_0x303957];return _0x1c49a7;}(function(_0x26b4aa,_0x177e19){const _0x19646d=a15_0x1c49,_0x20de81=_0x26b4aa();while(!![]){try{const _0xe42058=-parseInt(_0x19646d(0x1f4))/0x1+parseInt(_0x19646d(0x1fa))/0x2+-parseInt(_0x19646d(0x1f7))/0x3+parseInt(_0x19646d(0x1f6))/0x4+-parseInt(_0x19646d(0x1f5))/0x5+parseInt(_0x19646d(0x1f9))/0x6+-parseInt(_0x19646d(0x1f8))/0x7*(parseInt(_0x19646d(0x1fb))/0x8);if(_0xe42058===_0x177e19)break;else _0x20de81['push'](_0x20de81['shift']());}catch(_0x9c26ca){_0x20de81['push'](_0x20de81['shift']());}}}(a15_0x2dd7,0x2dd69));function a15_0x2dd7(){const _0x221141=['657644ufdBcF','1736bkxpou','3689VjilJj','877660FAxoDm','1239496DokQge','1056933HqOeSU','7798MTeBME','1933962jlmPcb'];a15_0x2dd7=function(){return _0x221141;};return a15_0x2dd7();}import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a16_0x3d7709=a16_0x11b0;function a16_0x11b0(_0x291cfe,_0x2989b8){_0x291cfe=_0x291cfe-0x137;const _0x319135=a16_0x3191();let _0x11b0b8=_0x319135[_0x291cfe];return _0x11b0b8;}(function(_0x1412e0,_0x2e8913){const _0x2809bf=a16_0x11b0,_0x3868ef=_0x1412e0();while(!![]){try{const _0x52dd87=-parseInt(_0x2809bf(0x141))/0x1+parseInt(_0x2809bf(0x14e))/0x2+parseInt(_0x2809bf(0x14b))/0x3+-parseInt(_0x2809bf(0x138))/0x4+-parseInt(_0x2809bf(0x151))/0x5*(parseInt(_0x2809bf(0x13d))/0x6)+parseInt(_0x2809bf(0x145))/0x7+-parseInt(_0x2809bf(0x148))/0x8*(-parseInt(_0x2809bf(0x14c))/0x9);if(_0x52dd87===_0x2e8913)break;else _0x3868ef['push'](_0x3868ef['shift']());}catch(_0xc7f07a){_0x3868ef['push'](_0x3868ef['shift']());}}}(a16_0x3191,0x41f07));import{CliErrors}from'../../errors.js';import{logger}from'../../utils/logger.js';function a16_0x3191(){const _0x3b91b1=['write','cli-skill','92046RvIGne','8865loBdkS','nonInteractive','16350ZNxZZl','Skipped\x20npx\x20(','setLogPath','5GRhLcK','apiError','429016KuyjiS','unknown','=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.','error','../../skills/npx-skills-add.js','2884884fuuMnT','install','cwd','log','25789NFNhIj','\x20-g\x20-y)...','Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20','2102674PDkDZA','skipped','cli-skill-install','4424TvrXUJ'];a16_0x3191=function(){return _0x3b91b1;};return a16_0x3191();}export const cliSkillDefinitions=[{'service':a16_0x3d7709(0x14a),'command':a16_0x3d7709(0x13e),'description':'Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','risk':a16_0x3d7709(0x149),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x35ea44){const _0x486135=a16_0x3d7709;logger[_0x486135(0x150)](process[_0x486135(0x13f)]()),logger['info'](_0x486135(0x147),'Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.');const {LOVRABET_SKILL_SOURCE:_0x3ca850,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x57b390,runNpxSkillsAddGlobal:_0x3069c0}=await import(_0x486135(0x13c)),_0x4d250c=_0x35ea44[_0x486135(0x14d)]?'pipe':'inherit';console['log'](_0x486135(0x144)+_0x3ca850+_0x486135(0x142));const _0x501c26=_0x3069c0(process[_0x486135(0x13f)](),_0x3ca850,{'stdio':_0x4d250c});if(_0x501c26[_0x486135(0x146)])console[_0x486135(0x140)](_0x486135(0x14f)+_0x57b390+_0x486135(0x13a));else{if(_0x501c26['ok'])console[_0x486135(0x140)]('CLI\x20Built-in\x20Skill\x20installed');else throw CliErrors[_0x486135(0x137)]('npx\x20skills\x20add\x20failed:\x20'+(_0x501c26[_0x486135(0x13b)]||_0x486135(0x139)),_0x486135(0x143)+_0x3ca850+'\x20-g\x20-y');}return{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5e273c,_0x320fc6){const _0x1c4a0d=a17_0x4487,_0x5a5f16=_0x5e273c();while(!![]){try{const _0x5972f3=-parseInt(_0x1c4a0d(0x8f))/0x1*(parseInt(_0x1c4a0d(0x82))/0x2)+-parseInt(_0x1c4a0d(0x87))/0x3*(parseInt(_0x1c4a0d(0x8c))/0x4)+-parseInt(_0x1c4a0d(0x8d))/0x5+-parseInt(_0x1c4a0d(0x8b))/0x6*(-parseInt(_0x1c4a0d(0x85))/0x7)+-parseInt(_0x1c4a0d(0x8e))/0x8+-parseInt(_0x1c4a0d(0x95))/0x9*(parseInt(_0x1c4a0d(0x83))/0xa)+parseInt(_0x1c4a0d(0x90))/0xb;if(_0x5972f3===_0x320fc6)break;else _0x5a5f16['push'](_0x5a5f16['shift']());}catch(_0x4fca2a){_0x5a5f16['push'](_0x5a5f16['shift']());}}}(a17_0x2aeb,0x70e25));import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG}from'../../constant/product.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';export{RUNTIME_ENV_VALUES}from'../../constant/env.js';export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';function a17_0x2aeb(){const _0x5eeeea=['Not\x20inside\x20a\x20project\x20(no\x20','52QTkwcX','550aJbaEF','inProject','1628753fhOKyN','global-default','6YImmnl','project-or-global-explicit','project-default','newConfigFileName','12NndVlG','1435516ZCVzCd','2510600tHoRQH','5015160TAYPSI','15934HZXCcp','33206547xlsqTS','project',',\x20or\x20run\x20`','global','\x20(global)','124479CYlQsM'];a17_0x2aeb=function(){return _0x5eeeea;};return a17_0x2aeb();}function a17_0x4487(_0xcbfbce,_0x232071){_0xcbfbce=_0xcbfbce-0x82;const _0x2aeb8a=a17_0x2aeb();let _0x44873e=_0x2aeb8a[_0xcbfbce];return _0x44873e;}import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';export{buildAppProfileListFields,CONFIG_ENUM_VALUES,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isLegacyCompatConfigKey,isTopLevelConfigKey}from'../../config/schema.js';export function resolveConfigScope(_0x111b23){const _0x3bff97=a17_0x4487,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x210f38}=_0x111b23;if(explicitGlobal&&explicitProject)throw CliErrors['validation']('Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','Use\x20only\x20one\x20config\x20scope\x20flag.');if(explicitGlobal)return _0x3bff97(0x93);if(explicitProject)return _0x3bff97(0x91);switch(_0x210f38){case _0x3bff97(0x86):return _0x3bff97(0x93);case _0x3bff97(0x89):return _0x111b23['inProject']??isInProject()?_0x3bff97(0x91):'global';case _0x3bff97(0x88):if(!(_0x111b23[_0x3bff97(0x84)]??isInProject()))throw CliErrors['validation'](_0x3bff97(0x96)+PRODUCT_CONFIG[_0x3bff97(0x8a)]+'\x20found).','Add\x20--global\x20to\x20write\x20to\x20~/'+PRODUCT_CONFIG[_0x3bff97(0x8a)]+_0x3bff97(0x92)+CLI_BIN_NAME+'\x20init`\x20first.');return'project';}}export function toScopeFlags(_0x121424){const _0x52e720=a17_0x4487;return{'global':_0x121424===_0x52e720(0x93)};}export function formatScopeLabel(_0x4dcb5e){const _0x3c8285=a17_0x4487;return _0x4dcb5e==='global'?_0x3c8285(0x94):'';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x31a448,_0x151dad){const _0x23afef=a18_0x1c19,_0x432e6a=_0x31a448();while(!![]){try{const _0x3c3241=parseInt(_0x23afef(0xe2))/0x1+parseInt(_0x23afef(0xdc))/0x2*(parseInt(_0x23afef(0xf0))/0x3)+parseInt(_0x23afef(0xf1))/0x4+-parseInt(_0x23afef(0xe4))/0x5*(parseInt(_0x23afef(0xea))/0x6)+parseInt(_0x23afef(0xdf))/0x7+parseInt(_0x23afef(0xdd))/0x8*(-parseInt(_0x23afef(0xe1))/0x9)+parseInt(_0x23afef(0xe3))/0xa;if(_0x3c3241===_0x151dad)break;else _0x432e6a['push'](_0x432e6a['shift']());}catch(_0x205f96){_0x432e6a['push'](_0x432e6a['shift']());}}}(a18_0x5f30,0x77b20));import{CliErrors}from'../../errors.js';function a18_0x5f30(){const _0x14adc4=['\x20are\x20mutually\x20exclusive\x20for\x20`','Exactly\x20one\x20of\x20','Only\x20one\x20of\x20','flag','4gUXMms','24ybIXRW','Flags\x20','551817HNjHIY','\x20is\x20allowed,\x20found:\x20','2183940HbLFhO','174556ytjduc','3238220FaQoUL','5iehMOp','validation','filter',',\x20got\x20\x22','Invalid\x20--','Provide\x20one\x20of:\x20','1945074KswmhX','join','At\x20least\x20one\x20of\x20','str','\x20is\x20required\x20for\x20`','length','857814xmRPQV','1573384eGsBvX'];a18_0x5f30=function(){return _0x14adc4;};return a18_0x5f30();}function isSet(_0x2318db,_0xf86a33){const _0x40196b=a18_0x1c19,_0x57ec86=_0x2318db[_0x40196b(0xdb)](_0xf86a33);return _0x57ec86!==undefined&&_0x57ec86!==''&&_0x57ec86!==![]&&_0x57ec86!==0x0;}function fmtNames(_0x57f061){const _0x3335d6=a18_0x1c19;return _0x57f061['map'](_0x31b7dd=>'--'+_0x31b7dd)[_0x3335d6(0xeb)](',\x20');}export function requireOneOf(_0x59c6c5,_0x17b21e,_0x46afcf){const _0x5efda0=a18_0x1c19,_0x97a62a=_0x17b21e[_0x5efda0(0xe6)](_0xf52815=>isSet(_0x59c6c5,_0xf52815));if(_0x97a62a[_0x5efda0(0xef)]!==0x1)throw CliErrors[_0x5efda0(0xe5)](_0x97a62a[_0x5efda0(0xef)]===0x0?_0x5efda0(0xd9)+fmtNames(_0x17b21e)+_0x5efda0(0xee)+_0x46afcf+'`.':_0x5efda0(0xda)+fmtNames(_0x17b21e)+_0x5efda0(0xe0)+fmtNames(_0x97a62a)+'.',_0x97a62a[_0x5efda0(0xef)]===0x0?_0x5efda0(0xe9)+fmtNames(_0x17b21e):'Remove\x20all\x20but\x20one.');}export function requireAnyOf(_0x2f0c1e,_0xa472cb,_0x209809){const _0x293ac0=a18_0x1c19;if(!_0xa472cb['some'](_0x504bd5=>isSet(_0x2f0c1e,_0x504bd5)))throw CliErrors[_0x293ac0(0xe5)](_0x293ac0(0xec)+fmtNames(_0xa472cb)+_0x293ac0(0xee)+_0x209809+'`.','Provide\x20one\x20of:\x20'+fmtNames(_0xa472cb));}function a18_0x1c19(_0x4c34cb,_0x44c302){_0x4c34cb=_0x4c34cb-0xd9;const _0x5f30b9=a18_0x5f30();let _0x1c1907=_0x5f30b9[_0x4c34cb];return _0x1c1907;}export function mutuallyExclusive(_0x5969b0,_0x3e719b,_0x3957de){const _0x187298=a18_0x1c19,_0x2ae1b0=_0x3e719b[_0x187298(0xe6)](_0x1ee263=>isSet(_0x5969b0,_0x1ee263));if(_0x2ae1b0[_0x187298(0xef)]>0x1)throw CliErrors['validation'](_0x187298(0xde)+fmtNames(_0x2ae1b0)+_0x187298(0xf2)+_0x3957de+'`.','Use\x20only\x20one\x20of:\x20'+fmtNames(_0x3e719b));}export function validatePattern(_0x4ab2e2,_0x46abce,_0x469271,_0x4edd56){const _0x36799d=a18_0x1c19,_0x93221f=_0x4ab2e2[_0x36799d(0xed)](_0x46abce);if(_0x93221f&&!_0x469271['test'](_0x93221f))throw CliErrors['validation'](_0x36799d(0xe8)+_0x46abce+':\x20expected\x20'+_0x4edd56+_0x36799d(0xe7)+_0x93221f+'\x22.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a19_0x27d918=a19_0x56b9;(function(_0x1071c4,_0x5ec7c6){const _0x288357=a19_0x56b9,_0xe2b32e=_0x1071c4();while(!![]){try{const _0x1c9dd8=-parseInt(_0x288357(0x99))/0x1*(-parseInt(_0x288357(0x98))/0x2)+parseInt(_0x288357(0x8c))/0x3+-parseInt(_0x288357(0x84))/0x4*(-parseInt(_0x288357(0x95))/0x5)+parseInt(_0x288357(0x87))/0x6+parseInt(_0x288357(0x88))/0x7*(parseInt(_0x288357(0x8f))/0x8)+parseInt(_0x288357(0x94))/0x9+-parseInt(_0x288357(0x92))/0xa*(parseInt(_0x288357(0x8b))/0xb);if(_0x1c9dd8===_0x5ec7c6)break;else _0xe2b32e['push'](_0xe2b32e['shift']());}catch(_0x565142){_0xe2b32e['push'](_0xe2b32e['shift']());}}}(a19_0x248a,0x3970f));function a19_0x56b9(_0xab93e6,_0x1f932c){_0xab93e6=_0xab93e6-0x82;const _0x248ae6=a19_0x248a();let _0x56b911=_0x248ae6[_0xab93e6];return _0x56b911;}function a19_0x248a(){const _0x348901=['129555YPAFIE','10sHlzvL','Resource\x20ID','string','38EOJrSx','16904PgkbHu','Dataset\x20code\x20(32-char\x20hex\x20UUID)','boolean','291420NxjDUB','params','code','113100MutCZZ','7deViqP','name','Resource\x20name\x20for\x20lookup','3321549MUurhR','749442qZJIpU','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','Return\x20full\x20raw\x20response\x20object','3129688aYzSnp','number','sqlcode','30zMorKg','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)'];a19_0x248a=function(){return _0x348901;};return a19_0x248a();}export const CODE_FLAG={'name':a19_0x27d918(0x86),'type':a19_0x27d918(0x97),'required':!![],'description':a19_0x27d918(0x82),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':'a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)'}};export const SQLCODE_FLAG={'name':a19_0x27d918(0x91),'type':a19_0x27d918(0x97),'required':!![],'description':a19_0x27d918(0x93),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':'SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)'}};export const VERBOSE_FLAG={'name':'verbose','type':a19_0x27d918(0x83),'description':a19_0x27d918(0x8e)};export const PARAMS_FLAG={'name':a19_0x27d918(0x85),'type':'string','description':a19_0x27d918(0x8d)};export const NAME_FLAG={'name':a19_0x27d918(0x89),'type':'string','description':a19_0x27d918(0x8a)};export const ID_FLAG={'name':'id','type':a19_0x27d918(0x90),'required':!![],'description':a19_0x27d918(0x96)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x55784d,_0x4a498c){const _0x113240=a20_0x3931,_0x561b19=_0x55784d();while(!![]){try{const _0x35a9cf=parseInt(_0x113240(0x18d))/0x1*(parseInt(_0x113240(0x193))/0x2)+parseInt(_0x113240(0x195))/0x3*(-parseInt(_0x113240(0x197))/0x4)+parseInt(_0x113240(0x190))/0x5*(-parseInt(_0x113240(0x18c))/0x6)+parseInt(_0x113240(0x19e))/0x7*(-parseInt(_0x113240(0x1a0))/0x8)+parseInt(_0x113240(0x192))/0x9+parseInt(_0x113240(0x19c))/0xa+parseInt(_0x113240(0x191))/0xb*(parseInt(_0x113240(0x19f))/0xc);if(_0x35a9cf===_0x4a498c)break;else _0x561b19['push'](_0x561b19['shift']());}catch(_0x3ba7da){_0x561b19['push'](_0x561b19['shift']());}}}(a20_0x5a44,0x25efb));import{existsSync,statSync}from'node:fs';import{CliErrors}from'../../errors.js';function a20_0x3931(_0x339b8c,_0x49c195){_0x339b8c=_0x339b8c-0x18c;const _0x5a443e=a20_0x5a44();let _0x3931fe=_0x5a443e[_0x339b8c];return _0x3931fe;}function a20_0x5a44(){const _0x3699a7=['1034830fecjsI','File\x20not\x20found:\x20','1998017UvpRwW','60iBwSyC','8MrpSEZ','6QZQalF','34sUiBqm','File\x20is\x20not\x20a\x20regular\x20file:\x20','\x20path\x20is\x20required.','1120270ZnYOCz','1027147dSekzd','2755080fernnH','3774hAQzuL','validation','3zwmbkB','File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20','1103096abDFhi','isFile','size','trim','toFixed'];a20_0x5a44=function(){return _0x3699a7;};return a20_0x5a44();}const BYTES_PER_MB=0x400*0x400;export const RUNTIME_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x569d2e){const _0x19721b=a20_0x3931;if(_0x569d2e>=BYTES_PER_MB){const _0x1463df=Math['ceil'](_0x569d2e/BYTES_PER_MB*0x64)/0x64;return _0x1463df[_0x19721b(0x19b)](0x2)+'\x20MB';}return _0x569d2e+'\x20B';}export function requireRuntimeUploadFile(_0x564abf,_0x356504){const _0x25880b=a20_0x3931,_0x31d39c=_0x564abf[_0x25880b(0x19a)]();if(!_0x31d39c)throw CliErrors['validation'](_0x356504+_0x25880b(0x18f));if(!existsSync(_0x31d39c))throw CliErrors['validation'](_0x25880b(0x19d)+_0x31d39c);const _0x1c6268=statSync(_0x31d39c);if(!_0x1c6268[_0x25880b(0x198)]())throw CliErrors['validation'](_0x25880b(0x18e)+_0x31d39c);if(_0x1c6268[_0x25880b(0x199)]>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors[_0x25880b(0x194)](_0x25880b(0x196)+_0x31d39c+'\x20('+formatBytes(_0x1c6268[_0x25880b(0x199)])+')');return{'path':_0x31d39c,'size':_0x1c6268['size']};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a22_0x3296e2=a22_0x1702;(function(_0x9fc1cf,_0x13686f){const _0x3477c1=a22_0x1702,_0x395c23=_0x9fc1cf();while(!![]){try{const _0x41b2b2=-parseInt(_0x3477c1(0x18d))/0x1*(parseInt(_0x3477c1(0x19a))/0x2)+-parseInt(_0x3477c1(0x19e))/0x3+-parseInt(_0x3477c1(0x1b1))/0x4+parseInt(_0x3477c1(0x1b3))/0x5+-parseInt(_0x3477c1(0x185))/0x6*(parseInt(_0x3477c1(0x1aa))/0x7)+-parseInt(_0x3477c1(0x19b))/0x8+parseInt(_0x3477c1(0x1a7))/0x9;if(_0x41b2b2===_0x13686f)break;else _0x395c23['push'](_0x395c23['shift']());}catch(_0x362cd8){_0x395c23['push'](_0x395c23['shift']());}}}(a22_0x32be,0x3d167));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,readScopedConfig,writeScopedConfig,resolveWriteScope,toScopeFlags}from'../../commands/config/shared.js';import{resolveWriteConfigPath,getProjectConfigPath}from'../../context.js';const GLOBAL_FLAG={'name':'global','type':a22_0x3296e2(0x18c),'description':a22_0x3296e2(0x1a3),'default':![]};function parseAliasAppcodeSetKey(_0x2ad4fb){const _0x273207=a22_0x3296e2,_0x2b12be=_0x2ad4fb[_0x273207(0x182)]('.');if(_0x2b12be[_0x273207(0x19c)]!==0x3||_0x2b12be[0x0]!==_0x273207(0x17b)||_0x2b12be[0x2]!=='appcode')return undefined;const _0x23effa=_0x2b12be[0x1]?.['trim']();return _0x23effa?_0x23effa:undefined;}function parseAliasDeleteKey(_0x7f156){const _0x1e58eb=a22_0x3296e2,_0x27191f=_0x7f156[_0x1e58eb(0x182)]('.');if(_0x27191f[_0x1e58eb(0x19c)]===0x2&&_0x27191f[0x0]===_0x1e58eb(0x17b)){const _0x50ad47=_0x27191f[0x1]?.['trim']();return _0x50ad47?{'alias':_0x50ad47}:undefined;}if(_0x27191f[_0x1e58eb(0x19c)]===0x3&&_0x27191f[0x0]===_0x1e58eb(0x17b)&&_0x27191f[0x2]===_0x1e58eb(0x178)){const _0x4c3a8e=_0x27191f[0x1]?.[_0x1e58eb(0x17f)]();return _0x4c3a8e?{'alias':_0x4c3a8e,'field':_0x1e58eb(0x178)}:undefined;}return undefined;}function setLocalAppAlias(_0x132950,_0xfeb674,_0x51d0b9){const _0x676449=a22_0x3296e2,_0x248bea=_0x132950[_0x676449(0x17b)]&&typeof _0x132950[_0x676449(0x17b)]===_0x676449(0x1b5)&&!Array[_0x676449(0x184)](_0x132950[_0x676449(0x17b)])?_0x132950[_0x676449(0x17b)]:{},_0x352023=_0x248bea[_0xfeb674]&&typeof _0x248bea[_0xfeb674]===_0x676449(0x1b5)&&!Array['isArray'](_0x248bea[_0xfeb674])?_0x248bea[_0xfeb674]:{};_0x352023[_0x676449(0x178)]=_0x51d0b9,_0x248bea[_0xfeb674]=_0x352023,_0x132950[_0x676449(0x17b)]=_0x248bea;}function deleteLocalAppAlias(_0x120c93,_0x39face){const _0x231837=a22_0x3296e2;if(!_0x120c93[_0x231837(0x17b)]||typeof _0x120c93[_0x231837(0x17b)]!==_0x231837(0x1b5)||Array[_0x231837(0x184)](_0x120c93[_0x231837(0x17b)]))return![];const _0x4db4ac=_0x120c93[_0x231837(0x17b)],_0x2d3624=_0x4db4ac[_0x39face[_0x231837(0x1b2)]];if(!_0x2d3624||typeof _0x2d3624!==_0x231837(0x1b5)||Array[_0x231837(0x184)](_0x2d3624))return![];if(!_0x39face[_0x231837(0x187)])return delete _0x4db4ac[_0x39face[_0x231837(0x1b2)]],!![];if(!(_0x39face[_0x231837(0x187)]in _0x2d3624))return![];return delete _0x2d3624[_0x39face[_0x231837(0x187)]],Object[_0x231837(0x1ad)](_0x2d3624)['length']===0x0&&delete _0x4db4ac[_0x39face[_0x231837(0x1b2)]],!![];}function a22_0x1702(_0x353b0f,_0x54e6e4){_0x353b0f=_0x353b0f-0x177;const _0x32be33=a22_0x32be();let _0x17022c=_0x32be33[_0x353b0f];return _0x17022c;}function a22_0x32be(){const _0x19706a=['value','read','Usage:\x20','trim','stringify','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','split','\x22\x20is\x20not\x20settable.','isArray','597144mteEWM',';\x20apps.<alias>.appcode','field','bool','pageSize','\x20(global)','\x22\x20not\x20found\x20at\x20top\x20level.','boolean','1lWIvMD','Key\x20\x22','config','format','Delete\x20a\x20config\x20value','raw','../../context.js','\x22.\x20Allowed:\x20','Set\x20a\x20config\x20value','Settable\x20keys:\x20','Key\x20not\x20found:\x20','key','List\x20current\x20config','219010pFIIaR','2750296iqJEqm','length','project-or-global-explicit','584079DrCktv','Set\x20`','Missing\x20key\x20or\x20value.','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','\x20config\x20get\x20<key>','Write\x20to\x20global\x20config','Invalid\x20value\x20for\x20\x22','`\x20=\x20\x22','includes','11083707NhqRpm','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','validation','14ZHdZDw','write','Missing\x20key\x20argument.','keys','args','log','Value\x20to\x20assign','1024396GQggNY','alias','609120OmLPEX','delete','object','\x20\x20project:\x20','global','riskLevel','Deleted\x20`','Top-level\x20key\x20\x22','pretty','pageSize\x20must\x20be\x20a\x20positive\x20number','appcode','Config\x20files:\x0a','join','apps'];a22_0x32be=function(){return _0x19706a;};return a22_0x32be();}const listDef={'service':'config','command':'list','description':a22_0x3296e2(0x199),'risk':a22_0x3296e2(0x17d),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x19e26c){const _0x1ad9a0=a22_0x3296e2,{buildConfigFromFlags:_0x49f30a}=await import(_0x1ad9a0(0x193)),_0x3c74e7=_0x49f30a({}),_0x50e2c8=getProjectConfigPath(),_0x39b9cd=resolveWriteConfigPath(_0x1ad9a0(0x1b7));if(_0x19e26c[_0x1ad9a0(0x190)]===_0x1ad9a0(0x1bb))return{'ok':!![],'message':_0x1ad9a0(0x1a1)+(JSON[_0x1ad9a0(0x180)](_0x3c74e7['raw'],null,0x2)+'\x0a\x0a')+_0x1ad9a0(0x179)+(_0x1ad9a0(0x1b6)+(_0x50e2c8??'(none)')+'\x0a')+('\x20\x20global:\x20\x20'+_0x39b9cd)};return{'ok':!![],'data':{'effective':_0x3c74e7[_0x1ad9a0(0x192)],'configFiles':{'project':_0x50e2c8??null,'global':_0x39b9cd}}};}},getDef={'service':a22_0x3296e2(0x18f),'command':'get','description':'Get\x20a\x20config\x20value','risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':a22_0x3296e2(0x181),'required':!![]}],'flags':[],async 'execute'(_0x41f37b){const _0x378b5a=a22_0x3296e2,_0x5a9943=_0x41f37b[_0x378b5a(0x1ae)][0x0];if(!_0x5a9943)throw CliErrors[_0x378b5a(0x1a9)](_0x378b5a(0x1ac),_0x378b5a(0x17e)+CLI_BIN_NAME+_0x378b5a(0x1a2));const {buildConfigFromFlags:_0x1ed65e}=await import('../../context.js'),{raw:_0x281523}=_0x1ed65e({});if(_0x5a9943['includes']('.')){const _0x18e458=_0x5a9943[_0x378b5a(0x182)]('.');let _0x2db43d=_0x281523;for(const _0x47fab2 of _0x18e458){if(_0x2db43d==null||typeof _0x2db43d!==_0x378b5a(0x1b5))throw CliErrors['validation']('Key\x20not\x20found:\x20'+_0x5a9943);_0x2db43d=_0x2db43d[_0x47fab2];}if(_0x2db43d===undefined)throw CliErrors[_0x378b5a(0x1a9)](_0x378b5a(0x197)+_0x5a9943);return console[_0x378b5a(0x1af)](typeof _0x2db43d==='object'?JSON[_0x378b5a(0x180)](_0x2db43d,null,0x2):String(_0x2db43d)),{'ok':!![]};}const _0x138bc9=_0x281523[_0x5a9943];if(_0x138bc9===undefined)throw CliErrors[_0x378b5a(0x1a9)](_0x378b5a(0x197)+_0x5a9943);return console[_0x378b5a(0x1af)](typeof _0x138bc9===_0x378b5a(0x1b5)?JSON[_0x378b5a(0x180)](_0x138bc9,null,0x2):String(_0x138bc9)),{'ok':!![]};}},setDef={'service':a22_0x3296e2(0x18f),'command':'set','description':a22_0x3296e2(0x195),'risk':a22_0x3296e2(0x1ab),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x3296e2(0x198),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a22_0x3296e2(0x17c),'description':a22_0x3296e2(0x1b0),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x442738){const _0x1660ee=a22_0x3296e2,_0xd35bd2=_0x442738[_0x1660ee(0x1ae)][0x0],_0x35b163=_0x442738[_0x1660ee(0x1ae)][0x1];if(!_0xd35bd2||_0x35b163===undefined)throw CliErrors[_0x1660ee(0x1a9)](_0x1660ee(0x1a0),_0x1660ee(0x17e)+CLI_BIN_NAME+'\x20config\x20set\x20<key>\x20<value>\x20[--global]');if(ENUM_KEYS[_0xd35bd2]&&!ENUM_KEYS[_0xd35bd2][_0x1660ee(0x1a6)](_0x35b163))throw CliErrors['validation'](_0x1660ee(0x1a4)+_0xd35bd2+_0x1660ee(0x194)+ENUM_KEYS[_0xd35bd2][_0x1660ee(0x17a)](',\x20'));if(_0xd35bd2===_0x1660ee(0x1b8))throw CliErrors[_0x1660ee(0x1a9)](_0x1660ee(0x1a8));if(_0xd35bd2===_0x1660ee(0x189)){const _0x124d9e=Number(_0x35b163);if(isNaN(_0x124d9e)||_0x124d9e<=0x0)throw CliErrors['validation'](_0x1660ee(0x177));}const _0x5db644=resolveWriteScope({'explicitGlobal':_0x442738[_0x1660ee(0x188)]('global'),'policy':'project-or-global-explicit'}),_0x1a2c9a=toScopeFlags(_0x5db644),_0x452ca7=readScopedConfig(_0x1a2c9a),_0x5f1090=parseAliasAppcodeSetKey(_0xd35bd2);if(!_0x5f1090&&!isTopLevelConfigKey(_0xd35bd2))throw CliErrors[_0x1660ee(0x1a9)](_0x1660ee(0x1ba)+_0xd35bd2+_0x1660ee(0x183),_0x1660ee(0x196)+getTopLevelConfigKeySummary()+_0x1660ee(0x186));return _0x5f1090?setLocalAppAlias(_0x452ca7,_0x5f1090,_0x35b163):_0x452ca7[_0xd35bd2]=_0xd35bd2==='pageSize'?Number(_0x35b163):_0x35b163,console[_0x1660ee(0x1af)](_0x1660ee(0x19f)+_0xd35bd2+_0x1660ee(0x1a5)+_0x35b163+'\x22'+(_0x5db644===_0x1660ee(0x1b7)?_0x1660ee(0x18a):'')),writeScopedConfig(_0x452ca7,_0x1a2c9a),{'ok':!![]};}},deleteDef={'service':'config','command':a22_0x3296e2(0x1b4),'description':a22_0x3296e2(0x191),'risk':a22_0x3296e2(0x1ab),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x3296e2(0x198),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x4ac283){const _0x4fff08=a22_0x3296e2,_0x56538e=_0x4ac283[_0x4fff08(0x1ae)][0x0];if(!_0x56538e)throw CliErrors[_0x4fff08(0x1a9)](_0x4fff08(0x1ac),'Usage:\x20'+CLI_BIN_NAME+'\x20config\x20delete\x20<key>\x20[--global]');const _0x2a7166=resolveWriteScope({'explicitGlobal':_0x4ac283[_0x4fff08(0x188)](_0x4fff08(0x1b7)),'policy':_0x4fff08(0x19d)}),_0x49d02c=toScopeFlags(_0x2a7166),_0x4a7a3b=readScopedConfig(_0x49d02c),_0x151cfb=parseAliasDeleteKey(_0x56538e);if(_0x151cfb){if(!deleteLocalAppAlias(_0x4a7a3b,_0x151cfb))throw CliErrors[_0x4fff08(0x1a9)](_0x4fff08(0x197)+_0x56538e);return console[_0x4fff08(0x1af)](_0x4fff08(0x1b9)+_0x56538e+'`'+(_0x2a7166===_0x4fff08(0x1b7)?_0x4fff08(0x18a):'')),writeScopedConfig(_0x4a7a3b,_0x49d02c),{'ok':!![]};}if(_0x4a7a3b[_0x56538e]===undefined)throw CliErrors[_0x4fff08(0x1a9)](_0x4fff08(0x18e)+_0x56538e+_0x4fff08(0x18b));return delete _0x4a7a3b[_0x56538e],console[_0x4fff08(0x1af)](_0x4fff08(0x1b9)+_0x56538e+'`'+(_0x2a7166===_0x4fff08(0x1b7)?_0x4fff08(0x18a):'')),writeScopedConfig(_0x4a7a3b,_0x49d02c),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
|
|
1
|
+
const a21_0x54d412=a21_0x3947;(function(_0x5baece,_0x4845cf){const _0x506fdd=a21_0x3947,_0x4e8664=_0x5baece();while(!![]){try{const _0x3fa6a0=parseInt(_0x506fdd(0xa7))/0x1+parseInt(_0x506fdd(0x83))/0x2*(-parseInt(_0x506fdd(0x90))/0x3)+parseInt(_0x506fdd(0xac))/0x4+parseInt(_0x506fdd(0x6b))/0x5+-parseInt(_0x506fdd(0x70))/0x6*(parseInt(_0x506fdd(0x6a))/0x7)+-parseInt(_0x506fdd(0xa8))/0x8*(-parseInt(_0x506fdd(0x6d))/0x9)+parseInt(_0x506fdd(0x67))/0xa*(parseInt(_0x506fdd(0xaa))/0xb);if(_0x3fa6a0===_0x4845cf)break;else _0x4e8664['push'](_0x4e8664['shift']());}catch(_0x3b961e){_0x4e8664['push'](_0x4e8664['shift']());}}}(a21_0x372d,0x38def));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,readScopedConfig,writeScopedConfig,resolveWriteScope,toScopeFlags}from'../../commands/config/shared.js';import{resolveWriteConfigPath,getProjectConfigPath}from'../../context.js';const GLOBAL_FLAG={'name':a21_0x54d412(0x8e),'type':a21_0x54d412(0x86),'description':a21_0x54d412(0x7f),'default':![]};function parseAliasAppcodeSetKey(_0xd38aa2){const _0x40ecee=a21_0x54d412,_0x16f7e4=_0xd38aa2[_0x40ecee(0x7e)]('.');if(_0x16f7e4[_0x40ecee(0x7c)]!==0x3||_0x16f7e4[0x0]!=='apps'||_0x16f7e4[0x2]!==_0x40ecee(0x88))return undefined;const _0x3c04a3=_0x16f7e4[0x1]?.['trim']();return _0x3c04a3?_0x3c04a3:undefined;}function parseAliasDeleteKey(_0x7f01d1){const _0x384d80=a21_0x54d412,_0x443050=_0x7f01d1[_0x384d80(0x7e)]('.');if(_0x443050[_0x384d80(0x7c)]===0x2&&_0x443050[0x0]==='apps'){const _0x4735af=_0x443050[0x1]?.[_0x384d80(0x7b)]();return _0x4735af?{'alias':_0x4735af}:undefined;}if(_0x443050['length']===0x3&&_0x443050[0x0]===_0x384d80(0x7d)&&_0x443050[0x2]===_0x384d80(0x88)){const _0x46a94b=_0x443050[0x1]?.['trim']();return _0x46a94b?{'alias':_0x46a94b,'field':_0x384d80(0x88)}:undefined;}return undefined;}function a21_0x3947(_0x515015,_0x2209fb){_0x515015=_0x515015-0x66;const _0x372dff=a21_0x372d();let _0x3947ae=_0x372dff[_0x515015];return _0x3947ae;}function setLocalAppAlias(_0x2bfad5,_0x355fcb,_0x28ef9e){const _0x2b4b62=a21_0x54d412,_0x56ece8=_0x2bfad5[_0x2b4b62(0x7d)]&&typeof _0x2bfad5[_0x2b4b62(0x7d)]===_0x2b4b62(0x98)&&!Array[_0x2b4b62(0x6e)](_0x2bfad5[_0x2b4b62(0x7d)])?_0x2bfad5[_0x2b4b62(0x7d)]:{},_0x46e89d=_0x56ece8[_0x355fcb]&&typeof _0x56ece8[_0x355fcb]==='object'&&!Array[_0x2b4b62(0x6e)](_0x56ece8[_0x355fcb])?_0x56ece8[_0x355fcb]:{};_0x46e89d[_0x2b4b62(0x88)]=_0x28ef9e,_0x56ece8[_0x355fcb]=_0x46e89d,_0x2bfad5['apps']=_0x56ece8;}function a21_0x372d(){const _0x283355=['bool','trim','length','apps','split','Write\x20to\x20global\x20config','\x20config\x20set\x20<key>\x20<value>\x20[--global]','Missing\x20key\x20or\x20value.','field','315398AFZwEz','Missing\x20key\x20argument.','Key\x20not\x20found:\x20','boolean','Delete\x20a\x20config\x20value','appcode','key','\x22.\x20Allowed:\x20','pageSize','args','includes','global','write','3DOJXHa','riskLevel','Invalid\x20value\x20for\x20\x22','alias','set',';\x20apps.<alias>.appcode','Key\x20\x22','\x20config\x20delete\x20<key>\x20[--global]','object','get','log','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','read','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','Get\x20a\x20config\x20value','`\x20=\x20\x22','value','stringify','validation','join','pretty','\x20\x20global:\x20\x20','config','202805iBtqgV','2328USoBXC','../../context.js','1394140uDtypm','pageSize\x20must\x20be\x20a\x20positive\x20number','36376kqgalW','Settable\x20keys:\x20','20vWUHTT','raw','Config\x20files:\x0a','1615586fpihgL','76260wXglvv','\x20(global)','11493heZjyv','isArray','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','12NZQnaF','List\x20current\x20config','\x22\x20not\x20found\x20at\x20top\x20level.','Set\x20`','\x22\x20is\x20not\x20settable.','Usage:\x20','format','delete','\x20\x20project:\x20','Deleted\x20`'];a21_0x372d=function(){return _0x283355;};return a21_0x372d();}function deleteLocalAppAlias(_0x3567ef,_0x5d785c){const _0x13661b=a21_0x54d412;if(!_0x3567ef[_0x13661b(0x7d)]||typeof _0x3567ef['apps']!==_0x13661b(0x98)||Array['isArray'](_0x3567ef[_0x13661b(0x7d)]))return![];const _0x2fa03b=_0x3567ef['apps'],_0x49a833=_0x2fa03b[_0x5d785c[_0x13661b(0x93)]];if(!_0x49a833||typeof _0x49a833!=='object'||Array[_0x13661b(0x6e)](_0x49a833))return![];if(!_0x5d785c[_0x13661b(0x82)])return delete _0x2fa03b[_0x5d785c[_0x13661b(0x93)]],!![];if(!(_0x5d785c[_0x13661b(0x82)]in _0x49a833))return![];return delete _0x49a833[_0x5d785c[_0x13661b(0x82)]],Object['keys'](_0x49a833)[_0x13661b(0x7c)]===0x0&&delete _0x2fa03b[_0x5d785c[_0x13661b(0x93)]],!![];}const listDef={'service':a21_0x54d412(0xa6),'command':'list','description':a21_0x54d412(0x71),'risk':a21_0x54d412(0x9c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x2a891d){const _0x507dc3=a21_0x54d412,{buildConfigFromFlags:_0x1ea643}=await import(_0x507dc3(0xa9)),_0x3269db=_0x1ea643({}),_0xf6d375=getProjectConfigPath(),_0x23ea41=resolveWriteConfigPath('global');if(_0x2a891d[_0x507dc3(0x76)]===_0x507dc3(0xa4))return{'ok':!![],'message':_0x507dc3(0x9d)+(JSON[_0x507dc3(0xa1)](_0x3269db[_0x507dc3(0x68)],null,0x2)+'\x0a\x0a')+_0x507dc3(0x69)+(_0x507dc3(0x78)+(_0xf6d375??'(none)')+'\x0a')+(_0x507dc3(0xa5)+_0x23ea41)};return{'ok':!![],'data':{'effective':_0x3269db[_0x507dc3(0x68)],'configFiles':{'project':_0xf6d375??null,'global':_0x23ea41}}};}},getDef={'service':'config','command':a21_0x54d412(0x99),'description':a21_0x54d412(0x9e),'risk':a21_0x54d412(0x9c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a21_0x54d412(0x89),'description':a21_0x54d412(0x9b),'required':!![]}],'flags':[],async 'execute'(_0x5d56de){const _0x50dff4=a21_0x54d412,_0x595240=_0x5d56de[_0x50dff4(0x8c)][0x0];if(!_0x595240)throw CliErrors[_0x50dff4(0xa2)](_0x50dff4(0x84),_0x50dff4(0x75)+CLI_BIN_NAME+'\x20config\x20get\x20<key>');const {buildConfigFromFlags:_0x500978}=await import(_0x50dff4(0xa9)),{raw:_0x38aaab}=_0x500978({});if(_0x595240[_0x50dff4(0x8d)]('.')){const _0xed93ef=_0x595240[_0x50dff4(0x7e)]('.');let _0x441ada=_0x38aaab;for(const _0x516f45 of _0xed93ef){if(_0x441ada==null||typeof _0x441ada!=='object')throw CliErrors[_0x50dff4(0xa2)](_0x50dff4(0x85)+_0x595240);_0x441ada=_0x441ada[_0x516f45];}if(_0x441ada===undefined)throw CliErrors[_0x50dff4(0xa2)]('Key\x20not\x20found:\x20'+_0x595240);return console[_0x50dff4(0x9a)](typeof _0x441ada==='object'?JSON[_0x50dff4(0xa1)](_0x441ada,null,0x2):String(_0x441ada)),{'ok':!![]};}const _0x4edde3=_0x38aaab[_0x595240];if(_0x4edde3===undefined)throw CliErrors[_0x50dff4(0xa2)](_0x50dff4(0x85)+_0x595240);return console[_0x50dff4(0x9a)](typeof _0x4edde3===_0x50dff4(0x98)?JSON[_0x50dff4(0xa1)](_0x4edde3,null,0x2):String(_0x4edde3)),{'ok':!![]};}},setDef={'service':'config','command':a21_0x54d412(0x94),'description':'Set\x20a\x20config\x20value','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a21_0x54d412(0x89),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a21_0x54d412(0xa0),'description':'Value\x20to\x20assign','required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0xe69925){const _0x395e9a=a21_0x54d412,_0x5debf9=_0xe69925[_0x395e9a(0x8c)][0x0],_0x1664f5=_0xe69925[_0x395e9a(0x8c)][0x1];if(!_0x5debf9||_0x1664f5===undefined)throw CliErrors['validation'](_0x395e9a(0x81),'Usage:\x20'+CLI_BIN_NAME+_0x395e9a(0x80));if(ENUM_KEYS[_0x5debf9]&&!ENUM_KEYS[_0x5debf9][_0x395e9a(0x8d)](_0x1664f5))throw CliErrors['validation'](_0x395e9a(0x92)+_0x5debf9+_0x395e9a(0x8a)+ENUM_KEYS[_0x5debf9][_0x395e9a(0xa3)](',\x20'));if(_0x5debf9===_0x395e9a(0x91))throw CliErrors[_0x395e9a(0xa2)](_0x395e9a(0x6f));if(_0x5debf9===_0x395e9a(0x8b)){const _0x174526=Number(_0x1664f5);if(isNaN(_0x174526)||_0x174526<=0x0)throw CliErrors[_0x395e9a(0xa2)](_0x395e9a(0xab));}const _0x2d9850=resolveWriteScope({'explicitGlobal':_0xe69925[_0x395e9a(0x7a)](_0x395e9a(0x8e)),'policy':'project-or-global-explicit'}),_0x72250=toScopeFlags(_0x2d9850),_0x24e4f6=readScopedConfig(_0x72250),_0x3a9608=parseAliasAppcodeSetKey(_0x5debf9);if(!_0x3a9608&&!isTopLevelConfigKey(_0x5debf9))throw CliErrors[_0x395e9a(0xa2)]('Top-level\x20key\x20\x22'+_0x5debf9+_0x395e9a(0x74),_0x395e9a(0x66)+getTopLevelConfigKeySummary()+_0x395e9a(0x95));return _0x3a9608?setLocalAppAlias(_0x24e4f6,_0x3a9608,_0x1664f5):_0x24e4f6[_0x5debf9]=_0x5debf9===_0x395e9a(0x8b)?Number(_0x1664f5):_0x1664f5,console['log'](_0x395e9a(0x73)+_0x5debf9+_0x395e9a(0x9f)+_0x1664f5+'\x22'+(_0x2d9850==='global'?_0x395e9a(0x6c):'')),writeScopedConfig(_0x24e4f6,_0x72250),{'ok':!![]};}},deleteDef={'service':a21_0x54d412(0xa6),'command':a21_0x54d412(0x77),'description':a21_0x54d412(0x87),'risk':a21_0x54d412(0x8f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a21_0x54d412(0x89),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x1464b0){const _0x5e821c=a21_0x54d412,_0x63c27e=_0x1464b0['args'][0x0];if(!_0x63c27e)throw CliErrors[_0x5e821c(0xa2)](_0x5e821c(0x84),_0x5e821c(0x75)+CLI_BIN_NAME+_0x5e821c(0x97));const _0x5b8c63=resolveWriteScope({'explicitGlobal':_0x1464b0[_0x5e821c(0x7a)](_0x5e821c(0x8e)),'policy':'project-or-global-explicit'}),_0x32df05=toScopeFlags(_0x5b8c63),_0x6101ca=readScopedConfig(_0x32df05),_0x11640d=parseAliasDeleteKey(_0x63c27e);if(_0x11640d){if(!deleteLocalAppAlias(_0x6101ca,_0x11640d))throw CliErrors[_0x5e821c(0xa2)]('Key\x20not\x20found:\x20'+_0x63c27e);return console[_0x5e821c(0x9a)](_0x5e821c(0x79)+_0x63c27e+'`'+(_0x5b8c63===_0x5e821c(0x8e)?'\x20(global)':'')),writeScopedConfig(_0x6101ca,_0x32df05),{'ok':!![]};}if(_0x6101ca[_0x63c27e]===undefined)throw CliErrors[_0x5e821c(0xa2)](_0x5e821c(0x96)+_0x63c27e+_0x5e821c(0x72));return delete _0x6101ca[_0x63c27e],console['log'](_0x5e821c(0x79)+_0x63c27e+'`'+(_0x5b8c63===_0x5e821c(0x8e)?_0x5e821c(0x6c):'')),writeScopedConfig(_0x6101ca,_0x32df05),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x59c210,_0x432571){var _0x22ec74=a22_0x3519,_0x2983b4=_0x59c210();while(!![]){try{var _0x56e5a2=parseInt(_0x22ec74(0x1f4))/0x1*(parseInt(_0x22ec74(0x1fb))/0x2)+parseInt(_0x22ec74(0x1f8))/0x3*(parseInt(_0x22ec74(0x1f5))/0x4)+parseInt(_0x22ec74(0x1f3))/0x5+-parseInt(_0x22ec74(0x1f1))/0x6*(parseInt(_0x22ec74(0x1f9))/0x7)+parseInt(_0x22ec74(0x1f6))/0x8*(parseInt(_0x22ec74(0x1f2))/0x9)+-parseInt(_0x22ec74(0x1f7))/0xa*(-parseInt(_0x22ec74(0x1fa))/0xb)+-parseInt(_0x22ec74(0x1fc))/0xc;if(_0x56e5a2===_0x432571)break;else _0x2983b4['push'](_0x2983b4['shift']());}catch(_0x159aae){_0x2983b4['push'](_0x2983b4['shift']());}}}(a22_0x3c2c,0x4ddf7));import{CLI_BIN_NAME}from'../../constant/cli.js';export{CLI_BIN_NAME};function a22_0x3519(_0x1f4f0e,_0x5a0099){_0x1f4f0e=_0x1f4f0e-0x1f1;var _0x3c2c19=a22_0x3c2c();var _0x3519a3=_0x3c2c19[_0x1f4f0e];return _0x3519a3;}function a22_0x3c2c(){var _0x2839a7=['7801896NMrAkw','3627276ZCSrhx','2367qJmhoF','2642900mHpidv','338011qUoAHJ','788PmWQJN','4216CHYykn','3290HJcYFa','6663LyhzVt','7Qaorwi','4378QBFwfc','2vUFHfm'];a22_0x3c2c=function(){return _0x2839a7;};return a22_0x3c2c();}export{readScopedConfig,writeScopedConfig}from'../../context.js';export{resolveConfigScope as resolveWriteScope,TOP_LEVEL_CONFIG_KEYS as TOP_LEVEL_KEYS,CONFIG_ENUM_VALUES as ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,toScopeFlags}from'../../commands/common/config-policy.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a24_0x2cb561=a24_0x3eb9;(function(_0x13883f,_0x1a84ca){const _0x361041=a24_0x3eb9,_0x3bcdf2=_0x13883f();while(!![]){try{const _0x4233bd=parseInt(_0x361041(0x1e1))/0x1*(-parseInt(_0x361041(0x212))/0x2)+-parseInt(_0x361041(0x237))/0x3+-parseInt(_0x361041(0x1e7))/0x4*(-parseInt(_0x361041(0x222))/0x5)+-parseInt(_0x361041(0x231))/0x6+-parseInt(_0x361041(0x1e3))/0x7+-parseInt(_0x361041(0x22a))/0x8*(parseInt(_0x361041(0x20f))/0x9)+parseInt(_0x361041(0x1f5))/0xa;if(_0x4233bd===_0x1a84ca)break;else _0x3bcdf2['push'](_0x3bcdf2['shift']());}catch(_0x5a41d4){_0x3bcdf2['push'](_0x3bcdf2['shift']());}}}(a24_0x4a25,0x73c7d));import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a24_0x4a25(){const _0x39d38c=['25168070lkjqLY','\x20\x20\x20\x20$endWith\x20\x20\x20\x20\x20Ends\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22email\x22:{\x22$endWith\x22:\x22@example.com\x22}}','dryRun','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','delete','data','paramsRequired','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','Preview:\x20data\x20','batchCreate','code','\x20on\x20dataset\x20','\x20\x20\x20\x20MIN\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Minimum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\x22}','str','create','\x20\x20AGGREGATE\x20TYPES','command','filter','paramsHint','now','Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27','\x20\x20PARAMS\x20STRUCTURE','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','aggregate','2295rvpbUm','\x20\x20\x20\x20$lt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lt\x22:1000}}','\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','1229104rKwzlt','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','description','\x20\x20\x20\x20$startWith\x20\x20\x20Starts\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$startWith\x22:\x22Mr.\x22}}','high-risk-write','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','\x20\x20LOGICAL\x20COMBINATORS','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]','body','\x20\x20\x20\x20$gte\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20or\x20equal\x20\x20{\x22amount\x22:{\x22$gte\x22:100}}','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','Update\x20an\x20existing\x20record','update','\x20\x20\x20\x20$gt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$gt\x22:100}}','length','20bgAFpC','\x20\x20\x20\x20having\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Post-aggregation\x20filters,\x20e.g.\x20[{\x22columnName\x22:\x22total\x22,\x22condition\x22:{\x22$gt\x22:1000}}]','\x20\x20\x20\x20$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}','\x20\x20\x20\x20$in\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Value\x20in\x20set\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22country\x22:{\x22$in\x22:[\x22CN\x22,\x22US\x22]}}','\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','build','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20','14968HceEdg','\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}]','/api/{appCode}/','getOne','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','data\x20','POST','5120826ObJzqA','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','params','\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\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','291807pGqLSN','\x20\x20\x20\x20$or\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Any\x20condition\x20matches\x20\x20{\x22$or\x22:[{\x22status\x22:{\x22$eq\x22:\x22active\x22}},{\x22status\x22:{\x22$eq\x22:\x22pending\x22}}]}','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\x20\x20\x20\x20$and\x20\x20\x20\x20\x20\x20\x20\x20\x20All\x20conditions\x20match\x20\x20\x20{\x22$and\x22:[{\x22age\x22:{\x22$gte\x22:18}},{\x22status\x22:{\x22$eq\x22:\x22active\x22}}]}','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','1Jyermx','\x20completed\x20in\x20','2471343lyNHFt','\x20\x20WHERE\x20OPERATORS','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[\x22region\x22],\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}}}\x27','352876BXHSXb','join','risk','read','batch','operation','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20distinct\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22,\x22distinct\x22:true}','\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20column\x20values\x20\x20\x20\x20\x20{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}','\x20\x20\x20\x20$eq\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22age\x22:{\x22$eq\x22:18}}','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','\x20\x20\x20\x20$lte\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20or\x20equal\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lte\x22:1000}}','\x20\x20\x20\x20$ne\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Not\x20equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22status\x22:{\x22$ne\x22:\x22deleted\x22}}','write','\x20\x20\x20\x20MAX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Maximum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}'];a24_0x4a25=function(){return _0x39d38c;};return a24_0x4a25();}import{requireAnyOf}from'../../commands/common/constraints.js';import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams,parseUpdateIdsFromParams,normalizeUpdateParamsForRuntime}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':a24_0x2cb561(0x208),'operation':a24_0x2cb561(0x208),'risk':a24_0x2cb561(0x1ea),'paramsRequired':![],'description':'Filter\x20dataset\x20records\x20with\x20query\x20conditions','paramsHint':a24_0x2cb561(0x1fe)+a24_0x2cb561(0x236),'helpExtra':[a24_0x2cb561(0x1e4),a24_0x2cb561(0x1ef),a24_0x2cb561(0x1f2),a24_0x2cb561(0x220),a24_0x2cb561(0x21c),a24_0x2cb561(0x210),a24_0x2cb561(0x1f1),a24_0x2cb561(0x225),a24_0x2cb561(0x224),a24_0x2cb561(0x216),a24_0x2cb561(0x1f6),'',a24_0x2cb561(0x219),a24_0x2cb561(0x1df),a24_0x2cb561(0x1dd),'',a24_0x2cb561(0x1de),a24_0x2cb561(0x22e),a24_0x2cb561(0x234),a24_0x2cb561(0x22b),a24_0x2cb561(0x21d),'\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','','\x20\x20PAGINATION',a24_0x2cb561(0x226),a24_0x2cb561(0x211),a24_0x2cb561(0x227)][a24_0x2cb561(0x1e8)]('\x0a')},{'command':a24_0x2cb561(0x22d),'operation':a24_0x2cb561(0x22d),'risk':'read','paramsRequired':!![],'description':'Get\x20a\x20single\x20record\x20by\x20ID','paramsHint':a24_0x2cb561(0x214)},{'command':a24_0x2cb561(0x205),'operation':a24_0x2cb561(0x205),'risk':'write','paramsRequired':!![],'description':'Create\x20a\x20new\x20record\x20in\x20a\x20dataset','paramsHint':a24_0x2cb561(0x1e5)},{'command':'batchCreate','operation':a24_0x2cb561(0x200),'risk':'write','paramsRequired':!![],'description':'Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','paramsHint':'JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27'},{'command':a24_0x2cb561(0x21f),'operation':a24_0x2cb561(0x21f),'risk':a24_0x2cb561(0x1f3),'paramsRequired':!![],'description':a24_0x2cb561(0x21e),'paramsHint':a24_0x2cb561(0x229)+a24_0x2cb561(0x20b)},{'command':a24_0x2cb561(0x1fa),'operation':a24_0x2cb561(0x1fa),'risk':a24_0x2cb561(0x217),'paramsRequired':!![],'description':'Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','paramsHint':a24_0x2cb561(0x214)},{'command':a24_0x2cb561(0x20e),'operation':a24_0x2cb561(0x20e),'risk':a24_0x2cb561(0x1ea),'paramsRequired':![],'description':a24_0x2cb561(0x218),'paramsHint':'JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20'+a24_0x2cb561(0x20d),'helpExtra':[a24_0x2cb561(0x206),a24_0x2cb561(0x1ee),'\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20of\x20records\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}',a24_0x2cb561(0x1ed),'\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rounded\x20average\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg\x22,\x22round\x22:true,\x22precision\x22:2}',a24_0x2cb561(0x1f4),a24_0x2cb561(0x203),'',a24_0x2cb561(0x20c),a24_0x2cb561(0x21a),a24_0x2cb561(0x213),a24_0x2cb561(0x1fd),a24_0x2cb561(0x232),a24_0x2cb561(0x223),a24_0x2cb561(0x1f9),'','\x20\x20EXAMPLES',a24_0x2cb561(0x1f8),a24_0x2cb561(0x1e0),'',a24_0x2cb561(0x1f0),a24_0x2cb561(0x1e6),'',a24_0x2cb561(0x235)]['join']('\x0a')}];function a24_0x3eb9(_0x21e03e,_0x4d6aa1){_0x21e03e=_0x21e03e-0x1dd;const _0x4a2590=a24_0x4a25();let _0x3eb9b2=_0x4a2590[_0x21e03e];return _0x3eb9b2;}function makeDataCommand(_0xbf071b){const _0x32acc3=a24_0x2cb561,_0xb26c7a=_0x32acc3(0x22f)+_0xbf071b['command'],_0x471953={'service':_0x32acc3(0x1fb),'command':_0xbf071b[_0x32acc3(0x207)],'description':_0xbf071b['description'],'risk':_0xbf071b[_0x32acc3(0x1e9)],'helpExtra':_0xbf071b['helpExtra'],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0xbf071b[_0x32acc3(0x209)]}],'validate':async _0x33c97b=>{const _0x58100b=_0x32acc3;_0xbf071b[_0x58100b(0x1fc)]&&requireAnyOf(_0x33c97b,['params'],_0xb26c7a),_0xbf071b[_0x58100b(0x1ec)]==='batchCreate'&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x33c97b[_0x58100b(0x204)](_0x58100b(0x233)))),_0xbf071b[_0x58100b(0x1ec)]===_0x58100b(0x21f)&&parseUpdateIdsFromParams(parseJsonParams(_0x33c97b[_0x58100b(0x204)]('params'))??{});},async 'execute'(_0x2efcdb){const _0x1aa20b=_0x32acc3,_0x38b609=_0x2efcdb[_0x1aa20b(0x204)](_0x1aa20b(0x201)),_0x41f2ff=_0xbf071b[_0x1aa20b(0x1ec)]===_0x1aa20b(0x200)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x2efcdb[_0x1aa20b(0x204)](_0x1aa20b(0x233)))):parseJsonParams(_0x2efcdb['str']('params'))??{},_0x5ee737=_0xbf071b['operation']==='update'?parseUpdateIdsFromParams(_0x41f2ff):undefined,_0xd1e717=_0x5ee737?normalizeUpdateParamsForRuntime(_0x41f2ff,_0x5ee737):_0x41f2ff,_0x54a224=Date['now'](),_0x545dc9=await executeData(_0x38b609,_0xbf071b['operation'],_0xd1e717),_0x4aa2bf=Date[_0x1aa20b(0x20a)]()-_0x54a224,_0x24c52f=_0x5ee737&&_0x5ee737[_0x1aa20b(0x221)]>0x1?buildBatchUpdateResult(_0x5ee737,_0x545dc9):_0x545dc9;return{'ok':!![],'data':{'result':_0x24c52f,'elapsed':_0x4aa2bf},'message':_0x1aa20b(0x22f)+_0xbf071b[_0x1aa20b(0x207)]+_0x1aa20b(0x1e2)+_0x4aa2bf+'ms'};}};return _0xbf071b[_0x32acc3(0x1e9)]!==_0x32acc3(0x1ea)&&(_0x471953[_0x32acc3(0x1f7)]=async _0x250d74=>{const _0x1a6b96=_0x32acc3,_0x138536=_0x250d74[_0x1a6b96(0x204)](_0x1a6b96(0x201)),_0x4f2b97=_0xbf071b[_0x1a6b96(0x1ec)]==='batchCreate'?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x250d74[_0x1a6b96(0x204)](_0x1a6b96(0x233)))):parseJsonParams(_0x250d74[_0x1a6b96(0x204)](_0x1a6b96(0x233)))??{};let _0x190cfd=_0x4f2b97;if(_0xbf071b['operation']===_0x1a6b96(0x21f)){const _0x1202ed=parseUpdateIdsFromParams(_0x4f2b97);_0x190cfd=normalizeUpdateParamsForRuntime(_0x4f2b97,_0x1202ed);}return dryRun(_0x1a6b96(0x230),_0x1a6b96(0x22c)+_0x138536+'/'+_0xbf071b[_0x1a6b96(0x1ec)])[_0x1a6b96(0x21b)](_0x190cfd)[_0x1a6b96(0x215)](_0x1a6b96(0x1ff)+_0xbf071b[_0x1a6b96(0x207)]+_0x1a6b96(0x202)+_0x138536)[_0x1a6b96(0x228)]();}),_0x471953;}export const dataDefinitions=specs['map'](makeDataCommand);function buildBatchUpdateResult(_0x41d869,_0x43a6d4){const _0x4e75ef=a24_0x2cb561;return{'operation':_0x4e75ef(0x21f),'mode':_0x4e75ef(0x1eb),'ids':_0x41d869,'total':_0x41d869[_0x4e75ef(0x221)],'result':_0x43a6d4};}
|
|
1
|
+
const a23_0x569520=a23_0x3106;(function(_0x5ca900,_0x113df6){const _0x200584=a23_0x3106,_0x273ee1=_0x5ca900();while(!![]){try{const _0x2aee1f=parseInt(_0x200584(0x16d))/0x1*(-parseInt(_0x200584(0x139))/0x2)+-parseInt(_0x200584(0x149))/0x3*(-parseInt(_0x200584(0x154))/0x4)+-parseInt(_0x200584(0x14c))/0x5+parseInt(_0x200584(0x15e))/0x6+parseInt(_0x200584(0x18c))/0x7+parseInt(_0x200584(0x156))/0x8*(parseInt(_0x200584(0x191))/0x9)+parseInt(_0x200584(0x178))/0xa;if(_0x2aee1f===_0x113df6)break;else _0x273ee1['push'](_0x273ee1['shift']());}catch(_0xda128f){_0x273ee1['push'](_0x273ee1['shift']());}}}(a23_0x45b9,0x43905));import{executeData}from'../../core/sdk-client.js';function a23_0x45b9(){const _0x26d327=['\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}','batchCreate','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20','map','Update\x20an\x20existing\x20record','str','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','delete','6JlDkjZ','\x20\x20PAGINATION','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','1667500klZxkB','read','create','body','risk','data','Get\x20a\x20single\x20record\x20by\x20ID','filter','734348JTljbS','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20distinct\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22,\x22distinct\x22:true}','48XZxPoS','batch','\x20\x20\x20\x20$lt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lt\x22:1000}}','\x20\x20WHERE\x20OPERATORS','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','\x20\x20\x20\x20$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}','\x20\x20\x20\x20$ne\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Not\x20equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22status\x22:{\x22$ne\x22:\x22deleted\x22}}','\x20\x20\x20\x20$startWith\x20\x20\x20Starts\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$startWith\x22:\x22Mr.\x22}}','351462sXitcu','POST','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','\x20\x20\x20\x20having\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Post-aggregation\x20filters,\x20e.g.\x20[{\x22columnName\x22:\x22total\x22,\x22condition\x22:{\x22$gt\x22:1000}}]','\x20\x20EXAMPLES','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','\x20\x20\x20\x20$lte\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20or\x20equal\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lte\x22:1000}}','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','\x20\x20\x20\x20$endWith\x20\x20\x20\x20\x20Ends\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22email\x22:{\x22$endWith\x22:\x22@example.com\x22}}','\x20\x20\x20\x20$gte\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20or\x20equal\x20\x20{\x22amount\x22:{\x22$gte\x22:100}}','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','paramsHint','\x20\x20\x20\x20$eq\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22age\x22:{\x22$eq\x22:18}}','252247oNjeLK','build','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20of\x20records\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20completed\x20in\x20','\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}]','Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','now','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','274300ZwxqwJ','\x20\x20\x20\x20$and\x20\x20\x20\x20\x20\x20\x20\x20\x20All\x20conditions\x20match\x20\x20\x20{\x22$and\x22:[{\x22age\x22:{\x22$gte\x22:18}},{\x22status\x22:{\x22$eq\x22:\x22active\x22}}]}','params','dryRun','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','Preview:\x20data\x20','\x20\x20AGGREGATE\x20TYPES','\x20on\x20dataset\x20','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','high-risk-write','\x20\x20\x20\x20$or\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Any\x20condition\x20matches\x20\x20{\x22$or\x22:[{\x22status\x22:{\x22$eq\x22:\x22active\x22}},{\x22status\x22:{\x22$eq\x22:\x22pending\x22}}]}','length','write','update','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','\x20\x20\x20\x20MIN\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Minimum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\x22}','/api/{appCode}/','\x20\x20LOGICAL\x20COMBINATORS','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rounded\x20average\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg\x22,\x22round\x22:true,\x22precision\x22:2}','2278535KibTdL','command','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','aggregate','\x20\x20\x20\x20$gt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$gt\x22:100}}','125703rpSKer','helpExtra','2dEQSOg','\x20\x20\x20\x20MAX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Maximum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}','\x20\x20PARAMS\x20STRUCTURE','\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20column\x20values\x20\x20\x20\x20\x20{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}','code','join','operation','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)'];a23_0x45b9=function(){return _0x26d327;};return a23_0x45b9();}import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a23_0x3106(_0x50686d,_0x310dd8){_0x50686d=_0x50686d-0x139;const _0x45b97c=a23_0x45b9();let _0x3106b5=_0x45b97c[_0x50686d];return _0x3106b5;}import{requireAnyOf}from'../../commands/common/constraints.js';import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams,parseUpdateIdsFromParams,normalizeUpdateParamsForRuntime}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':a23_0x569520(0x153),'operation':a23_0x569520(0x153),'risk':a23_0x569520(0x14d),'paramsRequired':![],'description':'Filter\x20dataset\x20records\x20with\x20query\x20conditions','paramsHint':'JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20'+a23_0x569520(0x170),'helpExtra':[a23_0x569520(0x159),a23_0x569520(0x16c),a23_0x569520(0x15c),a23_0x569520(0x190),a23_0x569520(0x168),a23_0x569520(0x158),a23_0x569520(0x165),'\x20\x20\x20\x20$in\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Value\x20in\x20set\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22country\x22:{\x22$in\x22:[\x22CN\x22,\x22US\x22]}}',a23_0x569520(0x15b),a23_0x569520(0x15d),a23_0x569520(0x167),'',a23_0x569520(0x18a),a23_0x569520(0x179),a23_0x569520(0x183),'',a23_0x569520(0x175),'\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','\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]',a23_0x569520(0x173),a23_0x569520(0x180),a23_0x569520(0x187),'',a23_0x569520(0x14a),'\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)'][a23_0x569520(0x13e)]('\x0a')},{'command':'getOne','operation':'getOne','risk':'read','paramsRequired':!![],'description':a23_0x569520(0x152),'paramsHint':a23_0x569520(0x16a)},{'command':a23_0x569520(0x14e),'operation':a23_0x569520(0x14e),'risk':a23_0x569520(0x185),'paramsRequired':!![],'description':a23_0x569520(0x18e),'paramsHint':a23_0x569520(0x14b)},{'command':a23_0x569520(0x142),'operation':'batchCreate','risk':'write','paramsRequired':!![],'description':a23_0x569520(0x166),'paramsHint':'JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27'},{'command':'update','operation':a23_0x569520(0x186),'risk':a23_0x569520(0x185),'paramsRequired':!![],'description':a23_0x569520(0x145),'paramsHint':a23_0x569520(0x143)+a23_0x569520(0x174)},{'command':a23_0x569520(0x148),'operation':a23_0x569520(0x148),'risk':a23_0x569520(0x182),'paramsRequired':!![],'description':a23_0x569520(0x17c),'paramsHint':a23_0x569520(0x16a)},{'command':a23_0x569520(0x18f),'operation':a23_0x569520(0x18f),'risk':a23_0x569520(0x14d),'paramsRequired':![],'description':a23_0x569520(0x169),'paramsHint':a23_0x569520(0x161)+a23_0x569520(0x147),'helpExtra':[a23_0x569520(0x17e),a23_0x569520(0x13c),a23_0x569520(0x16f),a23_0x569520(0x155),a23_0x569520(0x141),a23_0x569520(0x18b),a23_0x569520(0x13a),a23_0x569520(0x188),'',a23_0x569520(0x13b),a23_0x569520(0x171),a23_0x569520(0x140),a23_0x569520(0x164),a23_0x569520(0x177),a23_0x569520(0x162),a23_0x569520(0x181),'',a23_0x569520(0x163),a23_0x569520(0x15a),'\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','',a23_0x569520(0x160),'\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[\x22region\x22],\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}}}\x27','','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.'][a23_0x569520(0x13e)]('\x0a')}];function makeDataCommand(_0xe51dc9){const _0x878c33=a23_0x569520,_0xa8797='data\x20'+_0xe51dc9[_0x878c33(0x18d)],_0x217136={'service':_0x878c33(0x151),'command':_0xe51dc9[_0x878c33(0x18d)],'description':_0xe51dc9['description'],'risk':_0xe51dc9['risk'],'helpExtra':_0xe51dc9[_0x878c33(0x192)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0xe51dc9[_0x878c33(0x16b)]}],'validate':async _0x18c6c1=>{const _0x2b55ab=_0x878c33;_0xe51dc9['paramsRequired']&&requireAnyOf(_0x18c6c1,[_0x2b55ab(0x17a)],_0xa8797),_0xe51dc9['operation']===_0x2b55ab(0x142)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x18c6c1[_0x2b55ab(0x146)]('params'))),_0xe51dc9['operation']===_0x2b55ab(0x186)&&parseUpdateIdsFromParams(parseJsonParams(_0x18c6c1[_0x2b55ab(0x146)](_0x2b55ab(0x17a)))??{});},async 'execute'(_0x4bf3b7){const _0x471a1e=_0x878c33,_0x2566bc=_0x4bf3b7[_0x471a1e(0x146)](_0x471a1e(0x13d)),_0x27efb0=_0xe51dc9[_0x471a1e(0x13f)]===_0x471a1e(0x142)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x4bf3b7[_0x471a1e(0x146)](_0x471a1e(0x17a)))):parseJsonParams(_0x4bf3b7[_0x471a1e(0x146)]('params'))??{},_0x5eb91e=_0xe51dc9['operation']===_0x471a1e(0x186)?parseUpdateIdsFromParams(_0x27efb0):undefined,_0x2982aa=_0x5eb91e?normalizeUpdateParamsForRuntime(_0x27efb0,_0x5eb91e):_0x27efb0,_0x2ed660=Date[_0x471a1e(0x176)](),_0x4d3581=await executeData(_0x2566bc,_0xe51dc9[_0x471a1e(0x13f)],_0x2982aa),_0xd2df97=Date[_0x471a1e(0x176)]()-_0x2ed660,_0x3d08a0=_0x5eb91e&&_0x5eb91e[_0x471a1e(0x184)]>0x1?buildBatchUpdateResult(_0x5eb91e,_0x4d3581):_0x4d3581;return{'ok':!![],'data':{'result':_0x3d08a0,'elapsed':_0xd2df97},'message':'data\x20'+_0xe51dc9[_0x471a1e(0x18d)]+_0x471a1e(0x172)+_0xd2df97+'ms'};}};return _0xe51dc9[_0x878c33(0x150)]!==_0x878c33(0x14d)&&(_0x217136[_0x878c33(0x17b)]=async _0x59f70d=>{const _0x3ef7d7=_0x878c33,_0x4b17d6=_0x59f70d[_0x3ef7d7(0x146)](_0x3ef7d7(0x13d)),_0x2bafa4=_0xe51dc9[_0x3ef7d7(0x13f)]==='batchCreate'?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x59f70d[_0x3ef7d7(0x146)]('params'))):parseJsonParams(_0x59f70d[_0x3ef7d7(0x146)]('params'))??{};let _0x4fab86=_0x2bafa4;if(_0xe51dc9[_0x3ef7d7(0x13f)]===_0x3ef7d7(0x186)){const _0x49a4ad=parseUpdateIdsFromParams(_0x2bafa4);_0x4fab86=normalizeUpdateParamsForRuntime(_0x2bafa4,_0x49a4ad);}return dryRun(_0x3ef7d7(0x15f),_0x3ef7d7(0x189)+_0x4b17d6+'/'+_0xe51dc9[_0x3ef7d7(0x13f)])[_0x3ef7d7(0x14f)](_0x4fab86)['description'](_0x3ef7d7(0x17d)+_0xe51dc9[_0x3ef7d7(0x18d)]+_0x3ef7d7(0x17f)+_0x4b17d6)[_0x3ef7d7(0x16e)]();}),_0x217136;}export const dataDefinitions=specs[a23_0x569520(0x144)](makeDataCommand);function buildBatchUpdateResult(_0x2b0bbd,_0xbf78a6){const _0x22e9ee=a23_0x569520;return{'operation':_0x22e9ee(0x186),'mode':_0x22e9ee(0x157),'ids':_0x2b0bbd,'total':_0x2b0bbd[_0x22e9ee(0x184)],'result':_0xbf78a6};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a24_0x55f327=a24_0x33c3;function a24_0x2c2c(){const _0x2cd5ea=['split','allFields','dataType','sourceType','deleted','dbId','push','334182BFfJyT','length','object','appCode','responseFields','relatedPageInfoList','dblinkInfoDTO','map','parse','code','type','description','231qDgjic','creatorIdField','8805774ZXmhPF','formatRules','modelId','displayName','1KanuST','trim','datasetKey','108SrRVWK','requestFields','read','doType','operations','modelCode','host','dataset','isArray','source','requestBody','fields','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','afterScriptId','str','78015HGkixC','creatorNameField','tableComment','filter','options','indexes','entries','modifierNameField','title','path','tableName','labelField','4357152sHcQku','createTimeField','find','logicField','columnCodeListWithDeleted','required','properties','pkField','581tJHiRZ','dbtableConfig','70456yfXGtz','dbName','responseBody','extend','relations','340Pbosii','dbType','validateRules','beforeScriptId','string','name','2441244vyTugL','updateTimeField','190593MLghVx','method'];a24_0x2c2c=function(){return _0x2cd5ea;};return a24_0x2c2c();}(function(_0x467555,_0x3cc21c){const _0x53e067=a24_0x33c3,_0x3800e0=_0x467555();while(!![]){try{const _0x1a5929=parseInt(_0x53e067(0x84))/0x1*(-parseInt(_0x53e067(0xc2))/0x2)+-parseInt(_0x53e067(0xa2))/0x3+parseInt(_0x53e067(0x87))/0x4*(-parseInt(_0x53e067(0x96))/0x5)+-parseInt(_0x53e067(0x80))/0x6+-parseInt(_0x53e067(0xaa))/0x7*(-parseInt(_0x53e067(0xac))/0x8)+parseInt(_0x53e067(0xb9))/0x9*(-parseInt(_0x53e067(0xb1))/0xa)+parseInt(_0x53e067(0x7e))/0xb*(parseInt(_0x53e067(0xb7))/0xc);if(_0x1a5929===_0x3cc21c)break;else _0x3800e0['push'](_0x3800e0['shift']());}catch(_0x4650f9){_0x3800e0['push'](_0x3800e0['shift']());}}}(a24_0x2c2c,0xbd263));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';function a24_0x33c3(_0x4f08ba,_0x446a55){_0x4f08ba=_0x4f08ba-0x7c;const _0x2c2ceb=a24_0x2c2c();let _0x33c39e=_0x2c2ceb[_0x4f08ba];return _0x33c39e;}import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x525872){const _0x1729ba=a24_0x33c3;if(_0x525872[_0x1729ba(0xbf)])return null;const _0x479ad1=Boolean(_0x525872['displayName']!==undefined||_0x525872[_0x1729ba(0x8a)]!==undefined);let _0xe086b9={};if(!_0x479ad1&&typeof _0x525872[_0x1729ba(0xaf)]===_0x1729ba(0xb5))try{_0xe086b9=JSON[_0x1729ba(0xca)](_0x525872[_0x1729ba(0xaf)]);}catch{}const _0x1c57b8=_0x479ad1?_0x525872[_0x1729ba(0xb6)]:_0x525872[_0x1729ba(0xcb)],_0x1e2c03=_0x479ad1?_0x525872[_0x1729ba(0x83)]:_0x525872[_0x1729ba(0xb6)],_0x593e6e=_0x479ad1?_0x525872[_0x1729ba(0x8a)]:_0x525872['type']||_0x525872[_0x1729ba(0xbd)],_0x224cc2=_0x479ad1?_0x525872[_0x1729ba(0xa9)]===!![]:_0xe086b9[_0x1729ba(0xa9)]===!![],_0x681095=_0x479ad1?_0x525872[_0x1729ba(0xa7)]===!![]:_0xe086b9[_0x1729ba(0xa7)]===!![],_0x2223c2=_0x479ad1?_0x525872['options']??null:_0xe086b9[_0x1729ba(0x9a)]??null,_0x54e0a9={'name':_0x1c57b8,'displayName':_0x1e2c03||_0x1c57b8,'type':_0x593e6e,'dbType':_0x525872[_0x1729ba(0xb2)],'pk':_0x224cc2,'required':_0x681095,'description':_0x525872[_0x1729ba(0x7d)]||undefined};return Array['isArray'](_0x2223c2)&&_0x2223c2[_0x1729ba(0xc3)]>0x0&&(_0x54e0a9['options']=_0x2223c2),_0x54e0a9;}function parseJsonMaybe(_0x20369e){const _0x2df15d=a24_0x33c3;if(typeof _0x20369e!==_0x2df15d(0xb5))return _0x20369e;try{return JSON['parse'](_0x20369e);}catch{return _0x20369e;}}function normalizeOperationEntry(_0x234259,_0x4bb36a){const _0x23f340=a24_0x33c3;if(!_0x4bb36a||typeof _0x4bb36a!==_0x23f340(0xc4))return null;if(!_0x4bb36a['method']||!_0x4bb36a[_0x23f340(0x9f)])return null;const _0x7121f5={'name':_0x234259,'method':_0x4bb36a[_0x23f340(0xba)],'path':_0x4bb36a[_0x23f340(0x9f)]};if(_0x4bb36a['host'])_0x7121f5[_0x23f340(0x8d)]=_0x4bb36a[_0x23f340(0x8d)];if(_0x4bb36a[_0x23f340(0x91)]!=null)_0x7121f5[_0x23f340(0x91)]=parseJsonMaybe(_0x4bb36a[_0x23f340(0x91)]);if(_0x4bb36a[_0x23f340(0xae)]!=null)_0x7121f5['responseBody']=parseJsonMaybe(_0x4bb36a['responseBody']);if(_0x4bb36a['beforeScriptId']!=null)_0x7121f5['beforeScriptId']=_0x4bb36a[_0x23f340(0xb4)];if(_0x4bb36a[_0x23f340(0x94)]!=null)_0x7121f5[_0x23f340(0x94)]=_0x4bb36a[_0x23f340(0x94)];if(Array[_0x23f340(0x8f)](_0x4bb36a[_0x23f340(0x88)]))_0x7121f5[_0x23f340(0x88)]=_0x4bb36a[_0x23f340(0x88)];if(Array[_0x23f340(0x8f)](_0x4bb36a[_0x23f340(0xc6)]))_0x7121f5['responseFields']=_0x4bb36a[_0x23f340(0xc6)];return _0x7121f5;}function summarizeDbtable(_0x4daa9c){const _0x593d0b=a24_0x33c3,_0x4a84b2={},_0x4cc75f=[_0x593d0b(0xc0),_0x593d0b(0xad),_0x593d0b(0xa0),_0x593d0b(0x86),'pkField',_0x593d0b(0xbc),_0x593d0b(0xa5),_0x593d0b(0xa3),_0x593d0b(0xb8),_0x593d0b(0x7f),_0x593d0b(0x97),'modifierIdField',_0x593d0b(0x9d),_0x593d0b(0xa1),_0x593d0b(0xc8)];for(const _0x488296 of _0x4cc75f){if(_0x4daa9c[_0x488296]!==undefined)_0x4a84b2[_0x488296]=_0x4daa9c[_0x488296];}return typeof _0x4a84b2[_0x593d0b(0xbc)]===_0x593d0b(0xb5)&&_0x4a84b2[_0x593d0b(0xbc)][_0x593d0b(0xc3)]>0x0&&(_0x4a84b2['allFieldNames']=_0x4a84b2[_0x593d0b(0xbc)]['split'](',')[_0x593d0b(0xc9)](_0x22a8d4=>_0x22a8d4[_0x593d0b(0x85)]())[_0x593d0b(0x99)](Boolean)),_0x4a84b2;}function normalizeRelatedPages(_0x209c2d){const _0x4df7d6=a24_0x33c3;if(!Array[_0x4df7d6(0x8f)](_0x209c2d))return[];return _0x209c2d[_0x4df7d6(0x99)](_0x46799d=>_0x46799d&&typeof _0x46799d===_0x4df7d6(0xc4))[_0x4df7d6(0xc9)](_0xa78b08=>({'id':_0xa78b08['id'],'type':_0xa78b08[_0x4df7d6(0x7c)],'code':_0xa78b08[_0x4df7d6(0xcb)],'title':_0xa78b08[_0x4df7d6(0x9e)],'deleted':_0xa78b08['deleted']===!![]}));}function normalizeFallbackFieldName(_0x3b5b77,_0x3186ba){const _0x3f27e2=a24_0x33c3,_0x1d31b2=_0x3b5b77[_0x3f27e2(0x85)]();if(!_0x1d31b2)return null;return{'name':_0x1d31b2,'displayName':_0x1d31b2,'type':undefined,'dbType':undefined,'pk':_0x1d31b2===_0x3186ba,'required':![],'description':undefined};}async function loadListFieldFallback(_0x213f8d,_0x53743c){const _0x39513c=a24_0x33c3;if(!_0x213f8d||!_0x53743c)return[];try{const _0x59929f=await listDatasets(_0x213f8d,{'code':_0x53743c}),_0x9d9927=_0x59929f[_0x39513c(0xa4)](_0x2c3029=>_0x2c3029['code']===_0x53743c)??_0x59929f[0x0],_0x34f267=_0x9d9927?.['dbtableConfig']??{},_0x2df9ee=typeof _0x34f267[_0x39513c(0xbc)]==='string'?_0x34f267['allFields'][_0x39513c(0xbb)](','):[];return _0x2df9ee['map'](_0x14e91d=>normalizeFallbackFieldName(_0x14e91d,_0x34f267['pkField']))[_0x39513c(0x99)](_0x1a5e97=>_0x1a5e97!==null);}catch{return[];}}export const datasetDetail={'service':a24_0x55f327(0x8e),'command':'detail','description':a24_0x55f327(0x93),'risk':a24_0x55f327(0x89),'flags':[CODE_FLAG],async 'execute'(_0x2ebd9b){const _0x3c3e24=a24_0x55f327,_0x5150af=await getDatasetDetail(_0x2ebd9b[_0x3c3e24(0x95)](_0x3c3e24(0xcb))),_0x5b712f=Array['isArray'](_0x5150af[_0x3c3e24(0x92)])?_0x5150af[_0x3c3e24(0x92)]:Array[_0x3c3e24(0x8f)](_0x5150af[_0x3c3e24(0xa8)])?_0x5150af[_0x3c3e24(0xa8)]:[];let _0x112a8e=_0x5b712f[_0x3c3e24(0xc9)](_0x218750=>normalizeField(_0x218750))[_0x3c3e24(0x99)](_0x39e56b=>_0x39e56b!==null);_0x112a8e[_0x3c3e24(0xc3)]===0x0&&(_0x112a8e=await loadListFieldFallback(_0x2ebd9b[_0x3c3e24(0xc5)],_0x2ebd9b[_0x3c3e24(0x95)](_0x3c3e24(0xcb))));const _0x202a3f=_0x5150af[_0x3c3e24(0x8b)]??{},_0x217da8=[];for(const [_0x26a8b0,_0x5b57c2]of Object[_0x3c3e24(0x9c)](_0x202a3f)){const _0x5ca966=normalizeOperationEntry(_0x26a8b0,_0x5b57c2);if(_0x5ca966)_0x217da8[_0x3c3e24(0xc1)](_0x5ca966);}const _0x3caf1c=_0x5150af[_0x3c3e24(0xab)]??{},_0x385eb3=_0x5150af[_0x3c3e24(0x8e)]??{},_0x2892c=_0x3caf1c['dbId']!=null?{'id':_0x3caf1c['dbId'],'name':_0x3caf1c['dbName']??null}:undefined;let _0x4fa559;return typeof _0x5150af[_0x3c3e24(0xaf)]===_0x3c3e24(0xb5)&&(_0x4fa559=parseJsonMaybe(_0x5150af[_0x3c3e24(0xaf)])),{'ok':!![],'data':{'id':_0x5150af[_0x3c3e24(0x82)]??_0x5150af['id'],'name':_0x5150af[_0x3c3e24(0xb6)],'code':_0x5150af[_0x3c3e24(0x8c)]||_0x5150af[_0x3c3e24(0xcb)],'doVersion':_0x5150af['doVersion'],'description':_0x5150af[_0x3c3e24(0x7d)]||_0x385eb3[_0x3c3e24(0x98)]||undefined,'source':_0x5150af[_0x3c3e24(0x90)]||_0x385eb3[_0x3c3e24(0xbe)],'table':_0x3caf1c[_0x3c3e24(0xa0)]||_0x385eb3['tableName'],'datasetKey':_0x3caf1c[_0x3c3e24(0x86)],'pk':_0x3caf1c[_0x3c3e24(0xa9)],'db':_0x2892c,'dbtable':summarizeDbtable(_0x3caf1c),'fields':_0x112a8e,'operations':_0x217da8,'indexes':Array[_0x3c3e24(0x8f)](_0x385eb3[_0x3c3e24(0x9b)])?_0x385eb3[_0x3c3e24(0x9b)]:[],'relations':_0x5150af[_0x3c3e24(0xb0)]??null,'relatedPages':normalizeRelatedPages(_0x5150af[_0x3c3e24(0xc7)]),...Array[_0x3c3e24(0x8f)](_0x5150af['columnCodeListWithDeleted'])?{'columnCodeListWithDeleted':_0x5150af[_0x3c3e24(0xa6)]}:{},'formatRules':Array['isArray'](_0x5150af[_0x3c3e24(0x81)])?_0x5150af[_0x3c3e24(0x81)]:[],'validateRules':Array[_0x3c3e24(0x8f)](_0x5150af['validateRules'])?_0x5150af[_0x3c3e24(0xb3)]:[],..._0x4fa559!==undefined?{'extend':_0x4fa559}:{},'stats':{'fieldCount':_0x112a8e[_0x3c3e24(0xc3)],'operationCount':_0x217da8[_0x3c3e24(0xc3)]}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5bf0d4,_0x26c314){const _0x2cda7c=a25_0x57a5,_0x5eb803=_0x5bf0d4();while(!![]){try{const _0x516bc8=-parseInt(_0x2cda7c(0x90))/0x1*(parseInt(_0x2cda7c(0x98))/0x2)+-parseInt(_0x2cda7c(0x9b))/0x3*(parseInt(_0x2cda7c(0x95))/0x4)+-parseInt(_0x2cda7c(0x99))/0x5*(-parseInt(_0x2cda7c(0x9a))/0x6)+parseInt(_0x2cda7c(0x91))/0x7*(parseInt(_0x2cda7c(0x92))/0x8)+parseInt(_0x2cda7c(0x9c))/0x9*(-parseInt(_0x2cda7c(0x97))/0xa)+parseInt(_0x2cda7c(0x93))/0xb*(parseInt(_0x2cda7c(0x9d))/0xc)+parseInt(_0x2cda7c(0x94))/0xd*(parseInt(_0x2cda7c(0x96))/0xe);if(_0x516bc8===_0x26c314)break;else _0x5eb803['push'](_0x5eb803['shift']());}catch(_0x5209ce){_0x5eb803['push'](_0x5eb803['shift']());}}}(a25_0x3bb0,0x727ac));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';function a25_0x57a5(_0x1b4b9b,_0x20c8c5){_0x1b4b9b=_0x1b4b9b-0x90;const _0x3bb007=a25_0x3bb0();let _0x57a535=_0x3bb007[_0x1b4b9b];return _0x57a535;}import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];function a25_0x3bb0(){const _0x5dd4f4=['29352xTHDgb','125641OvXLSE','292817sGYMMr','88Gzvmyg','902uHqcYU','208IcdRLI','3279772oiWrtd','841666oJSGdl','10bKGSIn','14jjTzSN','5xxNrqE','4554078JIBwNo','3oweBKl','1919628oABEMC'];a25_0x3bb0=function(){return _0x5dd4f4;};return a25_0x3bb0();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a26_0x48ca(){const _0x463edd=['description','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','1444242CwvjfJ','split','dataset','code','6771556BaNCsn','map','dbtableConfig','4ZJovuo','2711560EyByCt','read','10zBYasi','2920915XjKMaP','str','4yuaXld','source','list','name','length','9879327lvTJvC','7614649RGgMwo','6CQaGFv','allFields','string','pkField','tableName','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','76654RDDivo'];a26_0x48ca=function(){return _0x463edd;};return a26_0x48ca();}const a26_0x5acfa8=a26_0x10de;(function(_0x215fb8,_0x31b412){const _0x34a395=a26_0x10de,_0x42426f=_0x215fb8();while(!![]){try{const _0x26bd3d=parseInt(_0x34a395(0x1f3))/0x1*(parseInt(_0x34a395(0x1fd))/0x2)+-parseInt(_0x34a395(0x1f6))/0x3*(-parseInt(_0x34a395(0x203))/0x4)+parseInt(_0x34a395(0x201))/0x5*(parseInt(_0x34a395(0x20a))/0x6)+parseInt(_0x34a395(0x209))/0x7+parseInt(_0x34a395(0x1fe))/0x8+parseInt(_0x34a395(0x208))/0x9*(-parseInt(_0x34a395(0x200))/0xa)+-parseInt(_0x34a395(0x1fa))/0xb;if(_0x26bd3d===_0x31b412)break;else _0x42426f['push'](_0x42426f['shift']());}catch(_0xd5a95b){_0x42426f['push'](_0x42426f['shift']());}}}(a26_0x48ca,0xe3a06));import{listDatasets}from'../../core/api-client.js';function a26_0x10de(_0x288089,_0x192b58){_0x288089=_0x288089-0x1f2;const _0x48ca3f=a26_0x48ca();let _0x10ded2=_0x48ca3f[_0x288089];return _0x10ded2;}import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a26_0x5acfa8(0x1f8),'command':a26_0x5acfa8(0x205),'description':a26_0x5acfa8(0x1f5),'risk':a26_0x5acfa8(0x1ff),'flags':[{'name':a26_0x5acfa8(0x206),'type':a26_0x5acfa8(0x20c),'description':a26_0x5acfa8(0x1f2)},{...CODE_FLAG,'required':![],'description':'Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)'}],async 'execute'(_0x67959e){const _0x3f9310=a26_0x5acfa8,_0x4507d7=_0x67959e[_0x3f9310(0x202)]('name'),_0x2d461e=_0x67959e[_0x3f9310(0x202)]('code'),_0x128d0c=await listDatasets(_0x67959e['appCode'],{..._0x4507d7&&{'name':_0x4507d7},..._0x2d461e&&{'code':_0x2d461e}});return{'ok':!![],'data':{'total':_0x128d0c[_0x3f9310(0x207)],'datasets':_0x128d0c[_0x3f9310(0x1fb)](_0x17f7a3=>{const _0x144117=_0x3f9310,_0x423875=_0x17f7a3[_0x144117(0x1fc)]??{};return{'id':_0x17f7a3['id'],'code':_0x17f7a3[_0x144117(0x1f9)],'name':_0x17f7a3[_0x144117(0x206)],'source':_0x17f7a3[_0x144117(0x204)],'description':_0x17f7a3[_0x144117(0x1f4)],'table':_0x423875[_0x144117(0x20e)],'datasetKey':_0x423875['datasetKey'],'pk':_0x423875[_0x144117(0x20d)],'fields':_0x423875['allFields']?_0x423875[_0x144117(0x20b)][_0x144117(0x1f7)](',')[_0x144117(0x1fb)](_0x14d214=>_0x14d214['trim']()):[]};})}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a27_0x54d9(_0x3fa2ac,_0x1a17ca){_0x3fa2ac=_0x3fa2ac-0x11e;const _0x2f5375=a27_0x2f53();let _0x54d9ed=_0x2f5375[_0x3fa2ac];return _0x54d9ed;}const a27_0x3a1349=a27_0x54d9;(function(_0x567250,_0x3089cc){const _0x368dcf=a27_0x54d9,_0x54ebf5=_0x567250();while(!![]){try{const _0x5766b3=-parseInt(_0x368dcf(0x127))/0x1+-parseInt(_0x368dcf(0x123))/0x2+parseInt(_0x368dcf(0x124))/0x3+parseInt(_0x368dcf(0x11f))/0x4+parseInt(_0x368dcf(0x11e))/0x5+parseInt(_0x368dcf(0x121))/0x6*(-parseInt(_0x368dcf(0x125))/0x7)+parseInt(_0x368dcf(0x126))/0x8;if(_0x5766b3===_0x3089cc)break;else _0x54ebf5['push'](_0x54ebf5['shift']());}catch(_0x5e8bd1){_0x54ebf5['push'](_0x54ebf5['shift']());}}}(a27_0x2f53,0x4a0a2));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';function a27_0x2f53(){const _0x3d4891=['1897791xiGKUk','5763464DtkFjq','512090LbnHTj','str','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','code','read','dataset','1688205DILyIX','581408EgsRxM','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','6xnuGEW','appCode','1025676VCEgfF','1187643ydIFYS'];a27_0x2f53=function(){return _0x3d4891;};return a27_0x2f53();}import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN='#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档';export function formatDatasetSdkMarkdown(_0x54114f){const _0x54291e=typeof _0x54114f==='string'?_0x54114f['trim']():'';return _0x54291e||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a27_0x3a1349(0x12c),'command':'sdk-doc','description':a27_0x3a1349(0x120),'risk':a27_0x3a1349(0x12b),'flags':[{...CODE_FLAG,'description':a27_0x3a1349(0x129)}],async 'execute'(_0x1bcd53){const _0x13fd58=a27_0x3a1349,_0x58e52d=_0x1bcd53[_0x13fd58(0x128)](_0x13fd58(0x12a)),_0x503b6e=await getDatasetSdkUsageDoc(_0x58e52d,_0x1bcd53['appCode']);return{'ok':!![],'data':{'code':_0x58e52d,'appCode':_0x1bcd53[_0x13fd58(0x122)],'markdown':formatDatasetSdkMarkdown(_0x503b6e)}};}};
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a28_0x542fe1=a28_0x3b63;(function(_0x25b7b8,_0x1ba1a6){const _0x44be17=a28_0x3b63,_0x48ca35=_0x25b7b8();while(!![]){try{const _0x4e92d4=parseInt(_0x44be17(0x138))/0x1*(parseInt(_0x44be17(0x166))/0x2)+-parseInt(_0x44be17(0x14f))/0x3*(parseInt(_0x44be17(0x16c))/0x4)+-parseInt(_0x44be17(0x131))/0x5*(-parseInt(_0x44be17(0x171))/0x6)+-parseInt(_0x44be17(0x13b))/0x7*(-parseInt(_0x44be17(0x151))/0x8)+parseInt(_0x44be17(0x15b))/0x9*(-parseInt(_0x44be17(0x167))/0xa)+parseInt(_0x44be17(0x150))/0xb+-parseInt(_0x44be17(0x165))/0xc*(parseInt(_0x44be17(0x155))/0xd);if(_0x4e92d4===_0x1ba1a6)break;else _0x48ca35['push'](_0x48ca35['shift']());}catch(_0x442004){_0x48ca35['push'](_0x48ca35['shift']());}}}(a28_0x1eff,0x8e95d));function a28_0x3b63(_0x192d08,_0x980781){_0x192d08=_0x192d08-0x12f;const _0x1effc7=a28_0x1eff();let _0x3b63d9=_0x1effc7[_0x192d08];return _0x3b63d9;}import a28_0xc34001 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{getCliVersion}from'../utils/version.js';import{getApiDomain,getRuntimeDomain,getUserDomain}from'../constant/domain.js';import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{isLegacyCompatConfigKey}from'../config/schema.js';import{inspectServiceRegistry}from'../commands/service/registry.js';function a28_0x1eff(){const _0x3f5f89=['\x20(accessKey)','version','serviceCode','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','repeat','red','\x20\x20Session\x20check:\x20\x20\x20','\x20\x20API\x20Endpoints','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','pageSize','currentApp','1971415OTPrTO','verbose','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','format','\x20(legacy/compat\x20only)','(missing)','log','1lDbLhy','path','\x20\x20Merged\x20Config','2743678OpcUob','Diagnose\x20CLI\x20configuration\x20and\x20environment','(default:\x20','\x20doctor','\x20Imported\x20from:\x20','Global','Project','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','status','commandCount','\x20\x20─','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20auth\x20(effective):\x20','(no\x20file)','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','defaultApp','(default)','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','14367oFegxj','11299464Jxyhkf','8oSFKGu','\x20\x20Config\x20Files','message','bold','3993782fauaxK','padEnd','yellow','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','locale','⚠\x20Empty','27jhNXEX','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20Service\x20Tree','✓\x20Valid\x20JSON','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','registryPath','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','env','\x20commands)','length','36oFFYOF','1978142RpRceQ','1066350qYlsgK','accessKey','serviceCount','✓\x20Loaded','gray','816GwVPGY','empty','\x20\x20Auth','✗\x20Invalid\x20JSON','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','6xnJKrp','⚠\x20Empty\x20(treated\x20as\x20{})','missing','ClientAk','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','(not\x20found)','(none)','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Invalid','green','(removed\x20—\x20cookie\x20auth\x20disabled)','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','(set,\x20length=','check'];a28_0x1eff=function(){return _0x3f5f89;};return a28_0x1eff();}async function execute(_0x1d5691){const _0x2166dd=a28_0x3b63,_0x58888a=getCliVersion(),_0x5246fa=buildConfigFromFlags({});await initGlobalEnvironment(_0x5246fa),console['log'](),console[_0x2166dd(0x137)](a28_0xc34001[_0x2166dd(0x154)](CLI_BIN_NAME+_0x2166dd(0x13e))),console['log'](a28_0xc34001['gray']('─'[_0x2166dd(0x185)](0x32))),console[_0x2166dd(0x137)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x58888a),console[_0x2166dd(0x137)](_0x2166dd(0x158)+process[_0x2166dd(0x182)]),console[_0x2166dd(0x137)](_0x2166dd(0x17e)+process['platform']+'\x20'+process['arch']),console[_0x2166dd(0x137)](),console[_0x2166dd(0x137)](a28_0xc34001[_0x2166dd(0x154)](_0x2166dd(0x152))),console[_0x2166dd(0x137)](a28_0xc34001[_0x2166dd(0x16b)](_0x2166dd(0x146)[_0x2166dd(0x185)](0x1e)));const _0x525024=getGlobalConfigPath(),_0x18210b=getProjectConfigPath();console['log'](_0x2166dd(0x14b)+(_0x525024||a28_0xc34001[_0x2166dd(0x16b)]('(not\x20found)'))),console[_0x2166dd(0x137)](_0x2166dd(0x178)+(_0x18210b||a28_0xc34001['gray'](_0x2166dd(0x176)))),console[_0x2166dd(0x137)](),console[_0x2166dd(0x137)](a28_0xc34001[_0x2166dd(0x154)]('\x20\x20Config\x20JSON')),console[_0x2166dd(0x137)](a28_0xc34001['gray']('\x20\x20─'[_0x2166dd(0x185)](0x1e)));const _0x2e64e4=(_0x1261cc,_0xfffc9)=>{const _0x2bbe27=_0x2166dd;if(!_0xfffc9){console['log']('\x20\x20'+_0x1261cc[_0x2bbe27(0x156)](0x11)+'\x20'+a28_0xc34001[_0x2bbe27(0x16b)](_0x2bbe27(0x149)));return;}const _0x4e4653=inspectCliConfigJsonFile(_0xfffc9);if(_0x4e4653[_0x2bbe27(0x144)]==='ok')console[_0x2bbe27(0x137)]('\x20\x20'+_0x1261cc[_0x2bbe27(0x156)](0x11)+'\x20'+a28_0xc34001[_0x2bbe27(0x17c)](_0x2bbe27(0x15e)));else{if(_0x4e4653[_0x2bbe27(0x144)]===_0x2bbe27(0x16d))console[_0x2bbe27(0x137)]('\x20\x20'+_0x1261cc[_0x2bbe27(0x156)](0x11)+'\x20'+a28_0xc34001['yellow'](_0x2bbe27(0x172)));else _0x4e4653[_0x2bbe27(0x144)]===_0x2bbe27(0x173)?console[_0x2bbe27(0x137)]('\x20\x20'+_0x1261cc['padEnd'](0x11)+'\x20'+a28_0xc34001[_0x2bbe27(0x16b)](_0x2bbe27(0x136))):(console[_0x2bbe27(0x137)]('\x20\x20'+_0x1261cc['padEnd'](0x11)+'\x20'+a28_0xc34001['red'](_0x2bbe27(0x16f))),console[_0x2bbe27(0x137)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a28_0xc34001[_0x2bbe27(0x186)](_0x4e4653[_0x2bbe27(0x153)])));}};_0x2e64e4(_0x2166dd(0x140),_0x525024),_0x2e64e4(_0x2166dd(0x141),_0x18210b),console[_0x2166dd(0x137)](),console[_0x2166dd(0x137)](a28_0xc34001['bold'](_0x2166dd(0x13a))),console[_0x2166dd(0x137)](a28_0xc34001[_0x2166dd(0x16b)](_0x2166dd(0x146)[_0x2166dd(0x185)](0x1e))),console[_0x2166dd(0x137)](_0x2166dd(0x17a)+(_0x5246fa['appCode']||a28_0xc34001[_0x2166dd(0x186)]('(not\x20set)'))),console['log'](_0x2166dd(0x184)+_0x5246fa[_0x2166dd(0x162)]);const _0x5069ba=isLegacyCompatConfigKey(_0x2166dd(0x159))?a28_0xc34001[_0x2166dd(0x16b)](_0x5246fa['locale']+_0x2166dd(0x135)):_0x5246fa[_0x2166dd(0x159)];console[_0x2166dd(0x137)](_0x2166dd(0x143)+_0x5069ba),console[_0x2166dd(0x137)](_0x2166dd(0x175)+(_0x5246fa[_0x2166dd(0x14c)]||a28_0xc34001[_0x2166dd(0x16b)](_0x2166dd(0x177)))),console['log'](_0x2166dd(0x170)+(_0x5246fa[_0x2166dd(0x130)]||a28_0xc34001[_0x2166dd(0x16b)](_0x2166dd(0x177)))),console[_0x2166dd(0x137)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5246fa[_0x2166dd(0x134)]||a28_0xc34001['gray'](_0x2166dd(0x13d)+DEFAULT_CONFIG_VALUES['format']+')'))),console[_0x2166dd(0x137)](_0x2166dd(0x14e)+(_0x5246fa[_0x2166dd(0x12f)]??a28_0xc34001[_0x2166dd(0x16b)](_0x2166dd(0x14d)))),console[_0x2166dd(0x137)]('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x5246fa['riskLevel']),console[_0x2166dd(0x137)](_0x2166dd(0x161)+_0x5246fa[_0x2166dd(0x132)]),console['log'](_0x2166dd(0x148)+AUTH_MODE[_0x2166dd(0x174)]),console[_0x2166dd(0x137)](_0x2166dd(0x15f)+(_0x5246fa[_0x2166dd(0x168)]?a28_0xc34001[_0x2166dd(0x17c)](_0x2166dd(0x17f)+_0x5246fa['accessKey'][_0x2166dd(0x164)]+')'):a28_0xc34001[_0x2166dd(0x16b)](_0x2166dd(0x177)))),console[_0x2166dd(0x137)](),console[_0x2166dd(0x137)](a28_0xc34001[_0x2166dd(0x154)](_0x2166dd(0x188))),console['log'](a28_0xc34001[_0x2166dd(0x16b)]('\x20\x20─'[_0x2166dd(0x185)](0x1e))),console[_0x2166dd(0x137)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x2166dd(0x137)](_0x2166dd(0x15c)+getUserDomain()),console[_0x2166dd(0x137)](_0x2166dd(0x14a)+getRuntimeDomain()),console[_0x2166dd(0x137)](),console[_0x2166dd(0x137)](a28_0xc34001[_0x2166dd(0x154)](_0x2166dd(0x15d))),console[_0x2166dd(0x137)](a28_0xc34001['gray'](_0x2166dd(0x146)['repeat'](0x1e)));const _0x52c8c=inspectServiceRegistry();console[_0x2166dd(0x137)](_0x2166dd(0x142)+_0x52c8c[_0x2166dd(0x160)]),console['log'](_0x2166dd(0x147)+formatServiceRegistryStatus(_0x52c8c)),console['log'](_0x2166dd(0x133)+_0x52c8c[_0x2166dd(0x169)]),console[_0x2166dd(0x137)](_0x2166dd(0x179)+_0x52c8c[_0x2166dd(0x145)]);for(const _0x2954ee of _0x52c8c['services']){console['log']('\x20\x20'+(_0x2954ee[_0x2166dd(0x183)]+':')['padEnd'](0x11)+'\x20'+(_0x2954ee['name']||a28_0xc34001[_0x2166dd(0x16b)]('(unnamed)'))+'\x20('+_0x2954ee[_0x2166dd(0x145)]+_0x2166dd(0x163)),console['log']('\x20\x20'+''['padEnd'](0x11)+_0x2166dd(0x13f)+_0x2954ee['source'][_0x2166dd(0x139)]);}return console[_0x2166dd(0x137)](),console['log'](a28_0xc34001['bold'](_0x2166dd(0x16e))),console['log'](a28_0xc34001[_0x2166dd(0x16b)](_0x2166dd(0x146)['repeat'](0x1e))),console[_0x2166dd(0x137)](_0x2166dd(0x189)+a28_0xc34001[_0x2166dd(0x17c)](AUTH_MODE[_0x2166dd(0x174)]+_0x2166dd(0x181))),console[_0x2166dd(0x137)](_0x2166dd(0x187)+a28_0xc34001[_0x2166dd(0x16b)](_0x2166dd(0x17d))),console[_0x2166dd(0x137)](),{'ok':!![]};}function formatServiceRegistryStatus(_0x556e50){const _0x480dd0=a28_0x3b63;if(_0x556e50['status']==='ok')return a28_0xc34001[_0x480dd0(0x17c)](_0x480dd0(0x16a));if(_0x556e50[_0x480dd0(0x144)]===_0x480dd0(0x173))return a28_0xc34001['gray'](_0x480dd0(0x176));if(_0x556e50[_0x480dd0(0x144)]==='empty')return a28_0xc34001[_0x480dd0(0x157)](_0x480dd0(0x15a));return a28_0xc34001['red'](_0x480dd0(0x17b)+(_0x556e50[_0x480dd0(0x153)]?':\x20'+_0x556e50[_0x480dd0(0x153)]:''));}export const doctorDefinition={'service':'doctor','command':a28_0x542fe1(0x180),'description':a28_0x542fe1(0x13c),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a29_0x50b876=a29_0x3ae9;(function(_0x3cb7cb,_0x525435){const _0x62ded7=a29_0x3ae9,_0x3cde37=_0x3cb7cb();while(!![]){try{const _0x43b79f=parseInt(_0x62ded7(0x1d9))/0x1*(parseInt(_0x62ded7(0x1bf))/0x2)+-parseInt(_0x62ded7(0x1c4))/0x3*(-parseInt(_0x62ded7(0x1d5))/0x4)+parseInt(_0x62ded7(0x1b9))/0x5*(parseInt(_0x62ded7(0x1be))/0x6)+-parseInt(_0x62ded7(0x1bb))/0x7+parseInt(_0x62ded7(0x1d3))/0x8+-parseInt(_0x62ded7(0x1cf))/0x9+-parseInt(_0x62ded7(0x1d0))/0xa;if(_0x43b79f===_0x525435)break;else _0x3cde37['push'](_0x3cde37['shift']());}catch(_0x4aab9b){_0x3cde37['push'](_0x3cde37['shift']());}}}(a29_0x1787,0xc4b34));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,uploadRuntimeFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const FILE_FLAG={'name':a29_0x50b876(0x1db),'type':a29_0x50b876(0x1d7),'required':!![],'description':a29_0x50b876(0x1bd)},FILEPATH_FLAG={'name':a29_0x50b876(0x1d4),'type':a29_0x50b876(0x1d7),'required':!![],'description':a29_0x50b876(0x1ba)},DOWNLOAD_FLAG={'name':'download','type':a29_0x50b876(0x1c6),'description':a29_0x50b876(0x1d6)},LONG_TERM_FLAG={'name':a29_0x50b876(0x1de),'type':a29_0x50b876(0x1c6),'description':a29_0x50b876(0x1c8)};function requireFilePath(_0x18e8a7){const _0x4d69a9=a29_0x50b876,_0x368e34=_0x18e8a7[_0x4d69a9(0x1d2)]();if(!_0x368e34)throw CliErrors[_0x4d69a9(0x1dc)](_0x4d69a9(0x1c9));return _0x368e34;}const fileUpload={'service':a29_0x50b876(0x1db),'command':'upload','description':a29_0x50b876(0x1cb),'risk':'write','flags':[FILE_FLAG],async 'dryRun'(_0x458f88){const _0x1ea2e0=a29_0x50b876,_0x54da51=requireRuntimeUploadFile(_0x458f88['str'](_0x1ea2e0(0x1db)),_0x1ea2e0(0x1df));return dryRun(_0x1ea2e0(0x1dd),_0x1ea2e0(0x1d1))[_0x1ea2e0(0x1da)]({'appCode':_0x458f88[_0x1ea2e0(0x1c0)],'multipart':{'file':_0x54da51}})[_0x1ea2e0(0x1c1)](_0x1ea2e0(0x1c2)+_0x54da51[_0x1ea2e0(0x1ca)]+'\x20to\x20runtime\x20app\x20'+_0x458f88[_0x1ea2e0(0x1c0)])[_0x1ea2e0(0x1bc)]();},async 'execute'(_0x508055){const _0x554e12=a29_0x50b876,_0x2b7a14=requireRuntimeUploadFile(_0x508055[_0x554e12(0x1c3)]('file'),'File'),_0x53e842=await uploadRuntimeFile(_0x508055['appCode'],_0x2b7a14[_0x554e12(0x1ca)]);return{'ok':!![],'data':_0x53e842,'message':_0x53e842[_0x554e12(0x1ce)]?_0x554e12(0x1c7)+_0x53e842[_0x554e12(0x1ce)]+'.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.':_0x554e12(0x1d8)};}},fileQueryUrl={'service':'file','command':'query-url','description':a29_0x50b876(0x1cd),'risk':a29_0x50b876(0x1c5),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x20134d){const _0x319c81=a29_0x50b876,_0x251cac=requireFilePath(_0x20134d[_0x319c81(0x1c3)]('filepath')),_0x573761=await queryRuntimeFileUrl(_0x251cac,{'download':_0x20134d[_0x319c81(0x1cc)]('download'),'longTerm':_0x20134d['bool'](_0x319c81(0x1de))});return{'ok':!![],'data':_0x573761};}};function a29_0x1787(){const _0x1146f1=['str','179373MbGLKT','read','boolean','Uploaded\x20file:\x20','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','filePath\x20is\x20required.','path','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','bool','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20OCR,\x20or\x20immediate\x20access','filePath','2622888xfPorS','18621780xHxkAh','/client/uploadFile','trim','11746944YkSOXr','filepath','80EgMgtL','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','string','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','10ZeCmNd','body','file','validation','POST','long-term','File','1010455LnQIgy','Runtime\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','4143216oSaubD','build','Path\x20to\x20the\x20local\x20file\x20to\x20upload','24YtKkVE','15726NBJVlN','appCode','description','Preview:\x20upload\x20'];a29_0x1787=function(){return _0x1146f1;};return a29_0x1787();}function a29_0x3ae9(_0x461cb,_0x1ef8a3){_0x461cb=_0x461cb-0x1b9;const _0x1787ed=a29_0x1787();let _0x3ae908=_0x1787ed[_0x461cb];return _0x3ae908;}export const fileDefinitions=[fileUpload,fileQueryUrl];
|