@lovrabet/rabetbase-cli 2.3.3-beta.2 → 2.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/add.js +1 -1
- package/lib/commands/app/discover.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/remove.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app/use.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/filter.js +1 -1
- package/lib/commands/data/getOne.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/data/shared.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/update.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/standard-page-status.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/non-interactive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/init.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/save.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/copy-directory.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/rules-cdn.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a72_0x5877ce=a72_0x59c6;function a72_0x59c6(_0x18ab92,_0x294834){_0x18ab92=_0x18ab92-0xe2;const _0x4821a2=a72_0x4821();let _0x59c641=_0x4821a2[_0x18ab92];return _0x59c641;}(function(_0x5e6e12,_0x2a8a2e){const _0xa77115=a72_0x59c6,_0x33724d=_0x5e6e12();while(!![]){try{const _0x4c984b=-parseInt(_0xa77115(0x11f))/0x1*(parseInt(_0xa77115(0x124))/0x2)+-parseInt(_0xa77115(0xed))/0x3*(-parseInt(_0xa77115(0x10f))/0x4)+parseInt(_0xa77115(0xe3))/0x5*(parseInt(_0xa77115(0x108))/0x6)+-parseInt(_0xa77115(0x11a))/0x7+parseInt(_0xa77115(0x10b))/0x8*(parseInt(_0xa77115(0x105))/0x9)+-parseInt(_0xa77115(0xe7))/0xa*(-parseInt(_0xa77115(0x125))/0xb)+-parseInt(_0xa77115(0xfc))/0xc;if(_0x4c984b===_0x2a8a2e)break;else _0x33724d['push'](_0x33724d['shift']());}catch(_0xc937a6){_0x33724d['push'](_0x33724d['shift']());}}}(a72_0x4821,0x924ff));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';export const SOURCE_TYPES=[a72_0x5877ce(0xe4),a72_0x5877ce(0x11b)];const DEFAULT_DO_VERSION='v2';export const datasetRelations={'service':a72_0x5877ce(0xe6),'command':'relations','description':'List\x20V2\x20dataset\x20relation\x20facts\x20using\x20datasetCode\x20+\x20field\x20as\x20the\x20primary\x20locator.\x20'+a72_0x5877ce(0xf2),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a72_0x5877ce(0x10a),'type':a72_0x5877ce(0xff),'required':![],'enum':[...SOURCE_TYPES],'description':a72_0x5877ce(0x127)},{'name':a72_0x5877ce(0x119),'type':a72_0x5877ce(0xff),'required':![],'enum':[...SOURCE_TYPES],'description':a72_0x5877ce(0xe2)},{'name':a72_0x5877ce(0x106),'type':a72_0x5877ce(0xff),'required':![],'enum':['v1','v2'],'description':'Legacy\x20troubleshooting\x20filter\x20for\x20dataset\x20version;\x20defaults\x20to\x20v2'}],async 'validate'(_0x22ecaf){const _0x279a50=a72_0x5877ce;readSourceFilter(_0x22ecaf[_0x279a50(0x104)](_0x279a50(0x10a)),_0x279a50(0x122)),readSourceFilter(_0x22ecaf[_0x279a50(0x104)](_0x279a50(0x119)),_0x279a50(0xe8)),rejectUnsupportedDirection(readSourceFilter(_0x22ecaf[_0x279a50(0x104)](_0x279a50(0x10a)),_0x279a50(0x122)),readSourceFilter(_0x22ecaf[_0x279a50(0x104)](_0x279a50(0x119)),_0x279a50(0xe8)));},async 'execute'(_0x149a6a){const _0x57b752=a72_0x5877ce,_0x3b34ee=await collectDatasetRelationFacts(_0x149a6a);return{'ok':!![],'data':{'appCode':_0x149a6a[_0x57b752(0xee)],'total':_0x3b34ee[_0x57b752(0xf6)][_0x57b752(0xeb)],'relations':_0x3b34ee[_0x57b752(0xf6)]},'message':_0x57b752(0x11d)+_0x3b34ee['relations'][_0x57b752(0xeb)]+_0x57b752(0xf1)};}};export async function collectDatasetRelationFacts(_0x5c059a,_0x38881e){const _0x426392=a72_0x5877ce,_0x34b395=trim(_0x5c059a[_0x426392(0x104)]('datasetcode')),_0x556bf8=readSourceFilter(_0x5c059a[_0x426392(0x104)](_0x426392(0x10a)),_0x426392(0x122)),_0x370e10=readSourceFilter(_0x5c059a[_0x426392(0x104)](_0x426392(0x119)),_0x426392(0xe8)),_0x115ade=trim(_0x5c059a['str'](_0x426392(0x106))||DEFAULT_DO_VERSION)[_0x426392(0x103)]();!_0x38881e?.[_0x426392(0x116)]&&rejectUnsupportedDirection(_0x556bf8,_0x370e10);const _0x2de63d=await listDatasets(_0x5c059a[_0x426392(0xee)],{..._0x34b395?{'code':_0x34b395}:{}}),_0x304575=new Map();for(const _0x36c8b3 of _0x2de63d){const _0x3f233b=datasetCodeOf(_0x36c8b3);if(_0x3f233b)_0x304575['set'](_0x3f233b,_0x36c8b3);}const _0x2200a1=_0x34b395?[toDatasetInfo(await getDatasetDetail(_0x34b395),_0x304575['get'](_0x34b395))]:await Promise[_0x426392(0x102)](_0x2de63d[_0x426392(0xf4)](async _0x35051a=>toDatasetInfo(await getDatasetDetail(datasetCodeOf(_0x35051a)),_0x35051a))),_0x222ba1=_0x2200a1[_0x426392(0x101)](_0xbc33ca=>{const _0x5701a0=_0x426392;if(_0x115ade&&normalizeDoVersion(_0xbc33ca[_0x5701a0(0xea)])!==_0x115ade)return![];return!![];}),_0x4aebe1=new Map(_0x222ba1[_0x426392(0xf4)](_0x434e95=>[_0x434e95[_0x426392(0xfb)],_0x434e95])),_0x29af13=_0x222ba1[_0x426392(0xf0)](_0x2e6a90=>{const _0x429c9a=_0x426392,_0xb4563a=Array['isArray'](_0x2e6a90[_0x429c9a(0xf3)][_0x429c9a(0xf6)])?_0x2e6a90[_0x429c9a(0xf3)][_0x429c9a(0xf6)]:[];return _0xb4563a[_0x429c9a(0xf0)](_0x3122e9=>{const _0x97b69f=_0x429c9a,_0x4f8b18=trim(_0x3122e9[_0x97b69f(0x126)]??_0x3122e9[_0x97b69f(0x10d)]??_0x3122e9[_0x97b69f(0x100)]),_0x503519=trim(_0x3122e9[_0x97b69f(0x121)]??_0x3122e9['toCode']??_0x3122e9[_0x97b69f(0x11e)]??_0x3122e9[_0x97b69f(0x109)]),_0x5944a7=trim(_0x3122e9['toField']??_0x3122e9[_0x97b69f(0x111)]??_0x3122e9['targetField']);if(!_0x4f8b18||!_0x503519||!_0x5944a7)return[];const _0x5e5753=_0x4aebe1['get'](_0x503519)??(_0x304575[_0x97b69f(0xf8)](_0x503519)?toDatasetInfo(_0x304575['get'](_0x503519)??{},_0x304575[_0x97b69f(0x10c)](_0x503519)):undefined),_0x5a9f02=_0x5e5753?.[_0x97b69f(0x118)]??sourceOf(_0x3122e9['toSourceType']??_0x3122e9['toSource']??_0x3122e9['sourceType'],_0x3122e9[_0x97b69f(0xfa)]);if(_0x2e6a90[_0x97b69f(0x118)]===_0x97b69f(0x11b)&&_0x5a9f02===_0x97b69f(0xe4)&&!_0x38881e?.[_0x97b69f(0x116)])return[];if(_0x556bf8&&_0x2e6a90[_0x97b69f(0x118)]!==_0x556bf8)return[];if(_0x370e10&&_0x5a9f02!==_0x370e10)return[];const _0x3ac20f=readRelationLabelField(_0x3122e9),_0x89386=normalizeCardinality(_0x3122e9[_0x97b69f(0xfd)]??_0x3122e9[_0x97b69f(0x112)]);return[{'from':{'source':_0x2e6a90[_0x97b69f(0x118)],'datasetCode':_0x2e6a90[_0x97b69f(0xfb)],..._0x2e6a90[_0x97b69f(0x115)]?{'datasetName':_0x2e6a90[_0x97b69f(0x115)]}:{},..._0x2e6a90[_0x97b69f(0xf5)]?{'table':_0x2e6a90[_0x97b69f(0xf5)]}:{},'field':_0x4f8b18},'to':{'source':_0x5a9f02,'datasetCode':_0x503519,'datasetName':_0x5e5753?.['name']??trim(_0x3122e9[_0x97b69f(0x113)]),..._0x5e5753?.[_0x97b69f(0xf5)]?{'table':_0x5e5753[_0x97b69f(0xf5)]}:{},'field':_0x5944a7,..._0x3ac20f?{'labelField':_0x3ac20f}:{}},..._0x89386?{'relation':{'cardinality':_0x89386}}:{}}];});});return{'appCode':_0x5c059a[_0x426392(0xee)],..._0x34b395?{'datasetCode':_0x34b395}:{},'relations':_0x29af13,'detailByCode':_0x4aebe1,'listByCode':_0x304575};}function a72_0x4821(){const _0x583f85=['length','sourceType','174KKEJRK','appCode','modelCode','flatMap','\x20relation(s)','Supports\x20DB_TABLE\x20->\x20DB_TABLE,\x20DB_TABLE\x20->\x20METADATA,\x20and\x20METADATA\x20->\x20METADATA.','detail','map','table','relations','toFieldLabel','has','ONE_TO_MANY','toTableName','code','4176900efMINU','joinType','toUpperCase','string','field','filter','all','toLowerCase','str','4455423HRLcMU','do-version','refTableLabelName','6szggwb','targetDatasetCode','from-source','8oJYyEC','get','fromColumn','tableName','33976oWyrmY','MANY_TO_ONE','toColumn','cardinality','toDatasetName','trim','name','includeUnsupportedDirections','METADATA\x20to\x20DB_TABLE\x20dataset\x20relation\x20is\x20not\x20supported','source','to-source','7507605tCgGfO','METADATA','Allowed\x20values:\x20DB_TABLE,\x20METADATA.','Dataset\x20relations:\x20','toDataset','51459jCZnQM','dbtableConfig','toDatasetCode','--from-source','validation','4gUXIUP','55hfnbjj','fromField','Filter\x20source\x20dataset\x20type:\x20DB_TABLE\x20or\x20METADATA','Filter\x20target\x20dataset\x20type:\x20DB_TABLE\x20or\x20METADATA','1691945qONxaJ','DB_TABLE','ONE_TO_ONE','dataset','1593430vKgnUA','--to-source','datasetCode','doVersion'];a72_0x4821=function(){return _0x583f85;};return a72_0x4821();}export function toDatasetInfo(_0x11e44c,_0x256c7e){const _0x129390=a72_0x5877ce,_0x47e0ba=_0x11e44c[_0x129390(0xe6)]??{},_0x28373f=_0x11e44c[_0x129390(0x120)]??_0x256c7e?.['dbtableConfig']??{},_0x3386b5=datasetCodeOf(_0x11e44c)||datasetCodeOf(_0x256c7e??{});return{'code':_0x3386b5,'name':_0x11e44c['name']??_0x47e0ba['datasetName']??_0x256c7e?.['name'],'source':sourceOf(_0x11e44c['source']??_0x47e0ba[_0x129390(0xec)]??_0x256c7e?.[_0x129390(0x118)],_0x28373f[_0x129390(0x10e)]),'table':_0x28373f[_0x129390(0x10e)]??_0x47e0ba[_0x129390(0x10e)],'doVersion':_0x11e44c[_0x129390(0xea)]??_0x47e0ba[_0x129390(0xea)]??_0x256c7e?.['doVersion'],'detail':_0x11e44c};}export function datasetCodeOf(_0x1be5a5){const _0x139086=a72_0x5877ce;return trim(_0x1be5a5[_0x139086(0xef)]??_0x1be5a5[_0x139086(0xfb)]??_0x1be5a5[_0x139086(0xe9)]);}export function sourceOf(_0x244287,_0x3b4f10){const _0x5ca5e1=a72_0x5877ce,_0x2f5bed=trim(_0x244287)['toUpperCase']();if(_0x2f5bed==='DB_TABLE'||_0x2f5bed===_0x5ca5e1(0x11b))return _0x2f5bed;return _0x3b4f10?_0x5ca5e1(0xe4):_0x5ca5e1(0x11b);}export function readSourceFilter(_0xdf57c0,_0x187440){const _0x3d0b6a=a72_0x5877ce,_0x3734be=trim(_0xdf57c0)['toUpperCase']();if(!_0x3734be)return undefined;if(_0x3734be==='DB_TABLE'||_0x3734be==='METADATA')return _0x3734be;throw CliErrors['validation']('Invalid\x20'+_0x187440+':\x20'+_0xdf57c0,_0x3d0b6a(0x11c));}function rejectUnsupportedDirection(_0xc2f45b,_0x5a7f6d){const _0x526d12=a72_0x5877ce;if(_0xc2f45b===_0x526d12(0x11b)&&_0x5a7f6d===_0x526d12(0xe4))throw CliErrors[_0x526d12(0x123)](_0x526d12(0x117));}function normalizeDoVersion(_0x406883){const _0x8c2855=a72_0x5877ce;return trim(_0x406883)[_0x8c2855(0x103)]();}function normalizeCardinality(_0x32e2c6){const _0x7647d7=a72_0x5877ce,_0x5db08f=trim(_0x32e2c6)[_0x7647d7(0xfe)]();if(!_0x5db08f)return undefined;return[_0x7647d7(0xe5),_0x7647d7(0xf9),_0x7647d7(0x110),'MANY_TO_MANY']['includes'](_0x5db08f)?_0x5db08f:undefined;}function readRelationLabelField(_0x2cdba7){const _0x18a285=a72_0x5877ce;return trim(_0x2cdba7[_0x18a285(0xf7)]??_0x2cdba7[_0x18a285(0x107)]??_0x2cdba7['labelField']);}export function trim(_0x11b068){const _0x3d0062=a72_0x5877ce;return typeof _0x11b068===_0x3d0062(0xff)?_0x11b068[_0x3d0062(0x114)]():'';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a73_0x139488=a73_0x1775;(function(_0x15685d,_0x1da139){const _0x2fb9cc=a73_0x1775,_0x42417c=_0x15685d();while(!![]){try{const _0x4e9abd=-parseInt(_0x2fb9cc(0x135))/0x1+-parseInt(_0x2fb9cc(0x124))/0x2+parseInt(_0x2fb9cc(0x132))/0x3+-parseInt(_0x2fb9cc(0x115))/0x4*(parseInt(_0x2fb9cc(0x114))/0x5)+-parseInt(_0x2fb9cc(0x128))/0x6+-parseInt(_0x2fb9cc(0x11a))/0x7*(parseInt(_0x2fb9cc(0x122))/0x8)+parseInt(_0x2fb9cc(0x126))/0x9*(parseInt(_0x2fb9cc(0x11e))/0xa);if(_0x4e9abd===_0x1da139)break;else _0x42417c['push'](_0x42417c['shift']());}catch(_0x1aa1d1){_0x42417c['push'](_0x42417c['shift']());}}}(a73_0x2825,0xb23dd));import{getDatasetDetail,updateDrivenData}from'../../core/api-client.js';function a73_0x2825(){const _0x178520=['20nsxBZA','write','\x20to\x20','stringify','validation','154eEKuyC','rename','dataset','expect-name','5339030yDhdyt','Dataset\x20detail\x20does\x20not\x20contain\x20dataset\x20code','Dry-run:\x20dataset\x20','Dataset\x20detail\x20does\x20not\x20contain\x20dataset\x20id','454168uEcUeW','--code\x20is\x20required','733700HPUOxW','str','90FWeQSf','Renamed\x20dataset\x20','2849676qlzMwx','string','\x20would\x20be\x20renamed\x20to\x20','modelCode','message','datasetCode','modelId','data','trim','expectName','10728QeapNk','Expected\x20','name','1148416WWSczJ','/smartapi/dataset/update-driven-data','datasetName','request','Expected\x20current\x20dataset\x20display\x20name;\x20mismatch\x20aborts\x20without\x20writing','code','Expectation\x20mismatch\x20at\x20dataset.name','datasetId','1373355XrdBSr'];a73_0x2825=function(){return _0x178520;};return a73_0x2825();}import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a73_0x1775(_0x5deffa,_0x1ae09b){_0x5deffa=_0x5deffa-0x10d;const _0x282573=a73_0x2825();let _0x1775b9=_0x282573[_0x5deffa];return _0x1775b9;}import{CliErrors}from'../../errors.js';export async function buildDatasetRenameResult({input:_0x1a1ef9,dryRun:_0x42867d}){const _0x35e349=a73_0x1775;validateInput(_0x1a1ef9);const _0x34c7e3=await getDatasetDetail(_0x1a1ef9['code']),_0x2409d6=resolveCurrentName(_0x34c7e3);if(_0x2409d6!==_0x1a1ef9[_0x35e349(0x131)])throw CliErrors[_0x35e349(0x119)](_0x35e349(0x112),_0x35e349(0x133)+JSON[_0x35e349(0x118)](_0x1a1ef9[_0x35e349(0x131)])+',\x20actual\x20'+JSON[_0x35e349(0x118)](_0x2409d6));const _0x1f981c=buildRenameRequest(_0x34c7e3,_0x1a1ef9),_0x269c3a=_0x2409d6!==_0x1a1ef9[_0x35e349(0x134)];let _0xb90830;return _0x269c3a&&!_0x42867d&&(_0xb90830=await updateDrivenData(_0x1f981c)),{'ok':!![],'data':{'dataset':{'id':_0x1f981c['modelId'],'code':_0x1f981c[_0x35e349(0x12b)]},'dryRun':_0x42867d,'changed':_0x269c3a,'before':{'name':_0x2409d6},'after':{'name':_0x1a1ef9['name']},'request':_0x1f981c,'submitted':_0x269c3a&&!_0x42867d,..._0xb90830!==undefined?{'version':_0xb90830}:{}},'message':_0x269c3a?_0x42867d?_0x35e349(0x120)+_0x1f981c['modelCode']+_0x35e349(0x12a)+_0x1a1ef9[_0x35e349(0x134)]:_0x35e349(0x127)+_0x1f981c[_0x35e349(0x12b)]+_0x35e349(0x117)+_0x1a1ef9['name']:'No\x20changes\x20for\x20dataset\x20'+_0x1f981c[_0x35e349(0x12b)]};}export const datasetRename={'service':a73_0x139488(0x11c),'command':a73_0x139488(0x11b),'description':'Rename\x20dataset\x20display\x20name\x20safely','risk':a73_0x139488(0x116),'flags':[CODE_FLAG,{'name':a73_0x139488(0x134),'type':a73_0x139488(0x129),'required':!![],'description':'New\x20dataset\x20display\x20name'},{'name':a73_0x139488(0x11d),'type':a73_0x139488(0x129),'required':!![],'description':a73_0x139488(0x110)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x46b640){validateInput(readDatasetRenameInput(_0x46b640));},async 'dryRun'(_0x31cdca){const _0x4ae498=a73_0x139488,_0x1e2c56=await buildDatasetRenameResult({'input':readDatasetRenameInput(_0x31cdca),'dryRun':!![]});return{'method':'POST','url':_0x4ae498(0x10d),'body':_0x1e2c56[_0x4ae498(0x12f)][_0x4ae498(0x10f)],'description':_0x1e2c56[_0x4ae498(0x12c)],..._0x1e2c56[_0x4ae498(0x12f)]};},async 'execute'(_0x2c76c2){return buildDatasetRenameResult({'input':readDatasetRenameInput(_0x2c76c2),'dryRun':![]});}};function readDatasetRenameInput(_0x57324f){const _0x3f4ca4=a73_0x139488;return{'code':trim(_0x57324f['str'](_0x3f4ca4(0x111))),'name':trim(_0x57324f['str'](_0x3f4ca4(0x134))),'expectName':trim(_0x57324f[_0x3f4ca4(0x125)](_0x3f4ca4(0x11d)))};}function validateInput(_0xa7e98b){const _0x1dd059=a73_0x139488;if(!_0xa7e98b[_0x1dd059(0x111)])throw CliErrors[_0x1dd059(0x119)](_0x1dd059(0x123));if(!_0xa7e98b[_0x1dd059(0x134)])throw CliErrors[_0x1dd059(0x119)]('--name\x20is\x20required');if(!_0xa7e98b[_0x1dd059(0x131)])throw CliErrors[_0x1dd059(0x119)]('--expect-name\x20is\x20required');}function resolveCurrentName(_0x5537ef){const _0x3744c1=a73_0x139488;return String(_0x5537ef[_0x3744c1(0x11c)]?.[_0x3744c1(0x10e)]??_0x5537ef[_0x3744c1(0x134)]??'')['trim']();}function buildRenameRequest(_0x337bf5,_0x49e22e){const _0xcaee3d=a73_0x139488,_0x3e5656=isPlainObject(_0x337bf5[_0xcaee3d(0x11c)])?_0x337bf5[_0xcaee3d(0x11c)]:{},_0x3b8696=_0x337bf5[_0xcaee3d(0x12e)]??_0x337bf5['id']??_0x3e5656[_0xcaee3d(0x113)];if(_0x3b8696===undefined||_0x3b8696===null||_0x3b8696==='')throw CliErrors[_0xcaee3d(0x119)](_0xcaee3d(0x121));const _0x2fe441=String(_0x337bf5[_0xcaee3d(0x12b)]??_0x337bf5['code']??_0x3e5656[_0xcaee3d(0x12d)]??_0x49e22e[_0xcaee3d(0x111)])['trim']();if(!_0x2fe441)throw CliErrors[_0xcaee3d(0x119)](_0xcaee3d(0x11f));return{'modelId':_0x3b8696,'modelCode':_0x2fe441,'name':_0x49e22e[_0xcaee3d(0x134)],'dataset':{'datasetId':_0x3b8696,'datasetCode':_0x2fe441,'datasetName':_0x49e22e[_0xcaee3d(0x134)]}};}function isPlainObject(_0x292554){return Boolean(_0x292554)&&typeof _0x292554==='object'&&!Array['isArray'](_0x292554);}function trim(_0x1c63c7){const _0x16e03b=a73_0x139488;return String(_0x1c63c7||'')[_0x16e03b(0x130)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a74_0x250d8b=a74_0x3b56;(function(_0x1f419f,_0x4b9dca){const _0x193da5=a74_0x3b56,_0x3394a5=_0x1f419f();while(!![]){try{const _0x298c6b=parseInt(_0x193da5(0xf9))/0x1*(-parseInt(_0x193da5(0x10d))/0x2)+parseInt(_0x193da5(0x124))/0x3+parseInt(_0x193da5(0x113))/0x4+parseInt(_0x193da5(0x103))/0x5*(parseInt(_0x193da5(0x10e))/0x6)+parseInt(_0x193da5(0x111))/0x7+-parseInt(_0x193da5(0x10a))/0x8*(parseInt(_0x193da5(0x117))/0x9)+-parseInt(_0x193da5(0x107))/0xa;if(_0x298c6b===_0x4b9dca)break;else _0x3394a5['push'](_0x3394a5['shift']());}catch(_0x5d4c81){_0x3394a5['push'](_0x3394a5['shift']());}}}(a74_0x12b9,0xc2a24));import{listDatasets,restoreDataset}from'../../core/api-client.js';function a74_0x12b9(){const _0x147d2f=['\x20dataset(s)','bool','appCode','num','dbId','source','No\x20deleted\x20dataset\x20found\x20for\x20','relationPages','Use\x20only\x20one\x20of\x20--id,\x20--code,\x20or\x20--dbid.','5cWXUnW','restore','expected-count','validation','7404000etdCLe','\x20deleted\x20dataset(s)\x20and\x20related\x20deleted\x20page/menu\x20records.','Matched\x20','8CbiZou','code','Restored\x20','5342wmnhsY','6721950OgcGdN','description','high-risk-write','3529183uhPDVm','number','3109992LWdUzw','isArray','push','tableName','6319134YRAlTj','/smartapi/dataset/restore-dataset','boolean','confirm','str','Required\x20to\x20execute\x20dataset\x20restore','Abort\x20unless\x20the\x20matched\x20dataset\x20count\x20equals\x20this\x20value','dbtableConfig','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm\x20when\x20the\x20target\x20list\x20is\x20correct.','\x20failed','filter','name','dbid','1059771xaKDJk','id=','--confirm\x20is\x20required\x20to\x20restore\x20datasets.','Dataset\x20id','Restore\x20all\x20deleted\x20datasets\x20under\x20this\x20database\x20connection\x20id','map','length','193SNGlCu'];a74_0x12b9=function(){return _0x147d2f;};return a74_0x12b9();}function a74_0x3b56(_0x7448d5,_0x43a81){_0x7448d5=_0x7448d5-0xf3;const _0x12b9b0=a74_0x12b9();let _0x3b5654=_0x12b9b0[_0x7448d5];return _0x3b5654;}import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';const DATASET_ID_FLAG={'name':'id','type':a74_0x250d8b(0x112),'description':a74_0x250d8b(0xf5)},DBID_FLAG={'name':a74_0x250d8b(0x123),'type':a74_0x250d8b(0x112),'description':a74_0x250d8b(0xf6)},CONFIRM_FLAG={'name':a74_0x250d8b(0x11a),'type':a74_0x250d8b(0x119),'description':a74_0x250d8b(0x11c)},EXPECTED_COUNT_FLAG={'name':a74_0x250d8b(0x105),'type':'number','description':a74_0x250d8b(0x11d)};export const datasetRestore={'service':'dataset','command':a74_0x250d8b(0x104),'description':'Restore\x20deleted\x20dataset\x20metadata\x20by\x20id/code\x20or\x20all\x20deleted\x20datasets\x20under\x20a\x20db\x20id','risk':a74_0x250d8b(0x110),'flags':[DATASET_ID_FLAG,CODE_FLAG_OPTIONAL,DBID_FLAG,CONFIRM_FLAG,EXPECTED_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x7a9017){const _0x421e90=a74_0x250d8b,_0x595255=_0x7a9017[_0x421e90(0xfd)]('id'),_0x24ceaa=_0x7a9017[_0x421e90(0x11b)](_0x421e90(0x10b)),_0x482347=_0x7a9017['num'](_0x421e90(0x123)),_0x55dda=[_0x595255>0x0,Boolean(_0x24ceaa),_0x482347>0x0][_0x421e90(0x121)](Boolean);if(_0x55dda[_0x421e90(0xf8)]===0x0)throw CliErrors[_0x421e90(0x106)]('One\x20of\x20--id,\x20--code,\x20or\x20--dbid\x20is\x20required.');if(_0x55dda[_0x421e90(0xf8)]>0x1)throw CliErrors[_0x421e90(0x106)](_0x421e90(0x102));},async 'dryRun'(_0xfa3805){const _0x4c48f2=a74_0x250d8b,_0x18fa44=await resolveTargets(_0xfa3805);return{'method':'POST','url':_0x4c48f2(0x118),'body':{'appCode':_0xfa3805[_0x4c48f2(0xfc)],'count':_0x18fa44[_0x4c48f2(0xf8)],'datasets':_0x18fa44},'description':'Would\x20restore\x20'+_0x18fa44[_0x4c48f2(0xf8)]+_0x4c48f2(0x108)};},async 'execute'(_0x14a6ed){const _0x5e341d=a74_0x250d8b;if(!_0x14a6ed[_0x5e341d(0xfb)](_0x5e341d(0x11a)))throw CliErrors[_0x5e341d(0x106)](_0x5e341d(0xf4),_0x5e341d(0x11f));const _0xbf4347=await resolveTargets(_0x14a6ed),_0x183559=[],_0x2a5d64=[];for(const _0x5dea0f of _0xbf4347){try{await restoreDataset(_0x14a6ed[_0x5e341d(0xfc)],_0x5dea0f['id']),_0x183559[_0x5e341d(0x115)](_0x5dea0f);}catch(_0x4020e2){_0x2a5d64[_0x5e341d(0x115)]({..._0x5dea0f,'error':_0x4020e2 instanceof Error?_0x4020e2['message']:String(_0x4020e2)});}}if(_0x2a5d64[_0x5e341d(0xf8)]>0x0)return{'ok':![],'data':{'requested':_0xbf4347['length'],'restoredCount':_0x183559[_0x5e341d(0xf8)],'failedCount':_0x2a5d64[_0x5e341d(0xf8)],'restored':_0x183559,'failed':_0x2a5d64},'message':_0x5e341d(0x10c)+_0x183559[_0x5e341d(0xf8)]+'/'+_0xbf4347[_0x5e341d(0xf8)]+'\x20dataset(s);\x20'+_0x2a5d64[_0x5e341d(0xf8)]+_0x5e341d(0x120)};return{'ok':!![],'data':{'requested':_0xbf4347[_0x5e341d(0xf8)],'restoredCount':_0x183559[_0x5e341d(0xf8)],'restored':_0x183559},'message':_0x5e341d(0x10c)+_0x183559['length']+_0x5e341d(0xfa)};}};async function resolveTargets(_0x4229d9){const _0x301aeb=a74_0x250d8b,_0xa6987b=_0x4229d9[_0x301aeb(0xfd)]('id'),_0x29344f=_0x4229d9[_0x301aeb(0x11b)](_0x301aeb(0x10b)),_0x1dc5ad=_0x4229d9['num'](_0x301aeb(0x123));let _0x8d6da2;_0x29344f?(_0x8d6da2=await listDatasets(_0x4229d9[_0x301aeb(0xfc)],{'code':_0x29344f,'deleted':!![]}),_0x8d6da2=_0x8d6da2[_0x301aeb(0x121)](_0x270a38=>_0x270a38[_0x301aeb(0x10b)]===_0x29344f)):(_0x8d6da2=await listDatasets(_0x4229d9['appCode'],{'deleted':!![]}),_0xa6987b>0x0&&(_0x8d6da2=_0x8d6da2['filter'](_0x38bd41=>_0x38bd41['id']===_0xa6987b)),_0x1dc5ad>0x0&&(_0x8d6da2=_0x8d6da2[_0x301aeb(0x121)](_0x2b0045=>_0x2b0045[_0x301aeb(0x11e)]?.[_0x301aeb(0xfe)]===_0x1dc5ad)));const _0x2bf809=_0x8d6da2[_0x301aeb(0xf7)](normalizeTarget);if(_0x2bf809[_0x301aeb(0xf8)]===0x0){const _0xfdfddb=_0x29344f||(_0xa6987b>0x0?_0x301aeb(0xf3)+_0xa6987b:'dbid='+_0x1dc5ad);throw CliErrors[_0x301aeb(0x106)](_0x301aeb(0x100)+_0xfdfddb+'.');}const _0x27871d=_0x4229d9[_0x301aeb(0xfd)](_0x301aeb(0x105));if(_0x27871d>0x0&&_0x2bf809['length']!==_0x27871d)throw CliErrors[_0x301aeb(0x106)](_0x301aeb(0x109)+_0x2bf809['length']+'\x20dataset(s),\x20but\x20--expected-count\x20is\x20'+_0x27871d+'.');return _0x2bf809;}function normalizeTarget(_0x1c0318){const _0x4d63fd=a74_0x250d8b,_0x1e03ab=_0x1c0318[_0x4d63fd(0x11e)]??{};return{'id':_0x1c0318['id'],'code':_0x1c0318['code'],'name':_0x1c0318[_0x4d63fd(0x122)],'description':_0x1c0318[_0x4d63fd(0x10f)],'source':_0x1c0318[_0x4d63fd(0xff)],'dbId':_0x1e03ab['dbId'],'dbName':_0x1e03ab['dbName'],'tableName':_0x1e03ab[_0x4d63fd(0x116)],'relatedPageCount':Array[_0x4d63fd(0x114)](_0x1c0318[_0x4d63fd(0x101)])?_0x1c0318[_0x4d63fd(0x101)][_0x4d63fd(0xf8)]:undefined};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a75_0x41038d=a75_0x3cea;(function(_0x373f7a,_0x4ffa30){const _0x36aca6=a75_0x3cea,_0x19092d=_0x373f7a();while(!![]){try{const _0x275787=-parseInt(_0x36aca6(0x128))/0x1*(parseInt(_0x36aca6(0x129))/0x2)+-parseInt(_0x36aca6(0x12d))/0x3+-parseInt(_0x36aca6(0x125))/0x4*(parseInt(_0x36aca6(0x122))/0x5)+parseInt(_0x36aca6(0x121))/0x6+parseInt(_0x36aca6(0x12a))/0x7+parseInt(_0x36aca6(0x126))/0x8+-parseInt(_0x36aca6(0x124))/0x9;if(_0x275787===_0x4ffa30)break;else _0x19092d['push'](_0x19092d['shift']());}catch(_0x25cfae){_0x19092d['push'](_0x19092d['shift']());}}}(a75_0x53da,0x56e9d));import{cancelDbAnalysis,getDbLinkInfo}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a75_0x3cea(_0x2ca31f,_0x5ee8a1){_0x2ca31f=_0x2ca31f-0x11e;const _0x53da88=a75_0x53da();let _0x3cea0b=_0x53da88[_0x2ca31f];return _0x3cea0b;}import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a75_0x53da(){const _0x4f5c92=['1196769xBxGSR','latestAnalysisTraceId','plan','No\x20latestAnalysisTraceId\x20on\x20this\x20link.\x20Pass\x20--plan\x20<traceId>\x20from\x20db\x20list/detail.','num','analyze-cancel','write','2326260rLBGda','383710dnKHHR','string','2052900yrWmJJ','8GapyFR','4205640qxfutz','Cancel\x20requested\x20for\x20plan\x20','16PzmhnC','34130ZPUIxU','3472903wPnbxf','str','Analysis\x20may\x20already\x20be\x20finished\x20or\x20never\x20started.'];a75_0x53da=function(){return _0x4f5c92;};return a75_0x53da();}export const dbAnalyzeCancel={'service':'db','command':a75_0x41038d(0x11f),'description':'Cancel\x20a\x20running\x20schema\x20analysis.\x20Omit\x20--plan\x20to\x20use\x20latestAnalysisTraceId\x20from\x20the\x20link','risk':a75_0x41038d(0x120),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a75_0x41038d(0x12f),'type':a75_0x41038d(0x123),'description':'Analysis\x20plan\x20/\x20trace\x20id\x20(optional\x20—\x20defaults\x20to\x20latest\x20trace\x20from\x20db\x20list/detail)'}],async 'execute'(_0x19e8de){const _0x21a03c=a75_0x41038d,_0x1bac00=_0x19e8de[_0x21a03c(0x11e)]('id');let _0x105dfb=_0x19e8de[_0x21a03c(0x12b)]('plan')||undefined;if(!_0x105dfb){const _0x2fabf1=await getDbLinkInfo(_0x1bac00);_0x105dfb=_0x2fabf1[_0x21a03c(0x12e)]??undefined;if(!_0x105dfb)throw CliErrors['validation'](_0x21a03c(0x130),_0x21a03c(0x12c));}return await cancelDbAnalysis(_0x105dfb),{'ok':!![],'data':{'dbLinkId':_0x1bac00,'planId':_0x105dfb},'message':_0x21a03c(0x127)+_0x105dfb};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a76_0x19e2b4=a76_0x5061;(function(_0x243e33,_0x3d79c6){const _0x4d183f=a76_0x5061,_0x2cd11a=_0x243e33();while(!![]){try{const _0x344bba=parseInt(_0x4d183f(0xea))/0x1*(parseInt(_0x4d183f(0xdb))/0x2)+-parseInt(_0x4d183f(0xe7))/0x3+-parseInt(_0x4d183f(0xec))/0x4*(parseInt(_0x4d183f(0xe5))/0x5)+-parseInt(_0x4d183f(0xdd))/0x6+-parseInt(_0x4d183f(0xdc))/0x7+parseInt(_0x4d183f(0xdf))/0x8+parseInt(_0x4d183f(0xe2))/0x9;if(_0x344bba===_0x3d79c6)break;else _0x2cd11a['push'](_0x2cd11a['shift']());}catch(_0x25c4d0){_0x2cd11a['push'](_0x2cd11a['shift']());}}}(a76_0x4f53,0xd7209));import{startDbAnalysis}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks}from'../../commands/db/shared.js';function a76_0x5061(_0x1da4e4,_0x4ff42f){_0x1da4e4=_0x1da4e4-0xdb;const _0x4f53e0=a76_0x4f53();let _0x5061fa=_0x4f53e0[_0x1da4e4];return _0x5061fa;}export const dbAnalyzeStart={'service':'db','command':a76_0x19e2b4(0xe8),'description':a76_0x19e2b4(0xeb),'risk':'write','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':'tables','type':'string','description':'Comma-separated\x20table\x20names\x20for\x20incremental\x20analysis\x20(omit\x20for\x20full\x20analysis)'}],async 'execute'(_0x1a8a14){const _0x2a7954=a76_0x19e2b4,_0x44ceda=_0x1a8a14['num']('id'),_0x122f01=_0x1a8a14[_0x2a7954(0xde)](_0x2a7954(0xe3)),_0x46fdfb=_0x122f01?_0x122f01[_0x2a7954(0xe4)](',')[_0x2a7954(0xe0)](_0x1d5442=>_0x1d5442[_0x2a7954(0xe6)]())[_0x2a7954(0xe9)](Boolean):undefined,_0x294973=await startDbAnalysis(_0x44ceda,_0x46fdfb),_0x4ef4ac=buildDbPageLinks(_0x1a8a14['appCode'],_0x44ceda);return{'ok':!![],'data':{'dbLinkId':_0x44ceda,'planId':_0x294973,'tableNames':_0x46fdfb??[],..._0x4ef4ac?{'links':_0x4ef4ac}:{}},'message':_0x2a7954(0xe1)+_0x44ceda};}};function a76_0x4f53(){const _0x23a50f=['map','Started\x20analysis\x20for\x20db\x20link\x20','26125128TjMdEC','tables','split','60MHZWlB','trim','1065033aGxuSZ','analyze-start','filter','3269cuZZka','Start\x20schema\x20analysis\x20(full\x20or\x20incremental\x20table\x20list).\x20Returns\x20planId\x20for\x20analyze-status','335532gbcPtY','826KlaBSk','9051392ubQPsl','9654168RVnNSE','str','7135704kjwAnQ'];a76_0x4f53=function(){return _0x23a50f;};return a76_0x4f53();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a77_0x22ea(_0x10843a,_0x375ee7){_0x10843a=_0x10843a-0x1b2;const _0x5245a1=a77_0x5245();let _0x22eaf3=_0x5245a1[_0x10843a];return _0x22eaf3;}const a77_0x4e3025=a77_0x22ea;(function(_0x1f6fcc,_0x18130d){const _0x38e030=a77_0x22ea,_0x253602=_0x1f6fcc();while(!![]){try{const _0x43eb80=parseInt(_0x38e030(0x1b2))/0x1+parseInt(_0x38e030(0x1c1))/0x2*(parseInt(_0x38e030(0x1b5))/0x3)+parseInt(_0x38e030(0x1c0))/0x4+-parseInt(_0x38e030(0x1c2))/0x5*(parseInt(_0x38e030(0x1bf))/0x6)+-parseInt(_0x38e030(0x1b9))/0x7*(-parseInt(_0x38e030(0x1b6))/0x8)+parseInt(_0x38e030(0x1ba))/0x9+-parseInt(_0x38e030(0x1bc))/0xa;if(_0x43eb80===_0x18130d)break;else _0x253602['push'](_0x253602['shift']());}catch(_0x101580){_0x253602['push'](_0x253602['shift']());}}}(a77_0x5245,0x36882));function a77_0x5245(){const _0x570df0=['4992PgNwUu','Fetch\x20schema\x20analysis\x20job\x20status\x20by\x20plan\x20/\x20trace\x20id','analyze-status','1379rmXlUw','3632040rCyKGv','str','3745400JwYFsY','plan','Analysis\x20plan\x20/\x20trace\x20id\x20(from\x20analyze-start\x20or\x20db\x20list\x20latestAnalysisTraceId)','3786qsqHZw','1401160ZWIQUU','8HylOSW','3145bjSZFj','113947rgMaMq','Analysis\x20status\x20for\x20','num','3057GisVJo'];a77_0x5245=function(){return _0x570df0;};return a77_0x5245();}import{getDbAnalysisStatus}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks}from'../../commands/db/shared.js';export const dbAnalyzeStatus={'service':'db','command':a77_0x4e3025(0x1b8),'description':a77_0x4e3025(0x1b7),'risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a77_0x4e3025(0x1bd),'type':'string','required':!![],'description':a77_0x4e3025(0x1be)}],async 'execute'(_0x175a14){const _0x183a1f=a77_0x4e3025,_0x231308=_0x175a14[_0x183a1f(0x1b4)]('id'),_0x3c0afc=_0x175a14[_0x183a1f(0x1bb)](_0x183a1f(0x1bd)),_0x4f8b94=await getDbAnalysisStatus(_0x3c0afc),_0x1a17ea=buildDbPageLinks(_0x175a14['appCode'],_0x231308);return{'ok':!![],'data':{'dbLinkId':_0x231308,'planId':_0x3c0afc,'status':_0x4f8b94,..._0x1a17ea?{'links':_0x1a17ea}:{}},'message':_0x183a1f(0x1b3)+_0x3c0afc};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a78_0x230a(_0x1d5205,_0x15bf15){_0x1d5205=_0x1d5205-0xe3;const _0x1a93a3=a78_0x1a93();let _0x230acb=_0x1a93a3[_0x1d5205];return _0x230acb;}const a78_0x182bf8=a78_0x230a;(function(_0x5c620a,_0x5e031d){const _0x18d578=a78_0x230a,_0x36d9d4=_0x5c620a();while(!![]){try{const _0x1779b1=parseInt(_0x18d578(0xfb))/0x1*(parseInt(_0x18d578(0xe3))/0x2)+-parseInt(_0x18d578(0x100))/0x3*(parseInt(_0x18d578(0xeb))/0x4)+parseInt(_0x18d578(0x102))/0x5*(-parseInt(_0x18d578(0xe4))/0x6)+-parseInt(_0x18d578(0x109))/0x7*(parseInt(_0x18d578(0x103))/0x8)+parseInt(_0x18d578(0x10d))/0x9*(parseInt(_0x18d578(0xf3))/0xa)+-parseInt(_0x18d578(0xe7))/0xb+parseInt(_0x18d578(0xea))/0xc*(parseInt(_0x18d578(0x10c))/0xd);if(_0x1779b1===_0x5e031d)break;else _0x36d9d4['push'](_0x36d9d4['shift']());}catch(_0x3f5b7){_0x36d9d4['push'](_0x36d9d4['shift']());}}}(a78_0x1a93,0x4d3b4));import{createDbLink,startDbAnalysis}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DB_TYPE_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';function a78_0x1a93(){const _0x4a4fad=['dbdesc','boolean','/smartapi/dblink/create','autostart','3007PZKEiX','Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22','validation','join','Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','111saPTYb','password','1200050nBqXko','2264mfxFxt',';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning','dbname','Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id','8.0','Database\x20username','10234JTUSmt','appCode','Created\x20db\x20link\x20','2568436SyGfOH','9rXcKSH','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.','username','8dXJGFP','12RebMcN','[redacted]','No\x20follow-up\x20analysis','3872869VVKagQ','bool','Extra\x20JDBC-style\x20connection\x20parameters\x20string','84mrcoGG','6068axLGgl','write','Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server','trim','string','message','dbversion','databasePage','2232820lmJboq','str','Host\x20and\x20port:\x20host:port','dbparam'];a78_0x1a93=function(){return _0x4a4fad;};return a78_0x1a93();}export const dbCreate={'service':'db','command':'create','description':'Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','risk':a78_0x182bf8(0xec),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a78_0x182bf8(0x105),'type':a78_0x182bf8(0xef),'required':!![],'description':a78_0x182bf8(0xed)},DB_TYPE_FLAG,{'name':a78_0x182bf8(0xf1),'type':'string','description':a78_0x182bf8(0xff),'default':a78_0x182bf8(0x107)},{'name':'dburl','type':a78_0x182bf8(0xef),'required':!![],'description':a78_0x182bf8(0xf5)},{'name':a78_0x182bf8(0x10f),'type':a78_0x182bf8(0xef),'required':!![],'description':a78_0x182bf8(0x108)},{'name':'password','type':a78_0x182bf8(0xef),'required':!![],'description':'Database\x20password'},{'name':'dbparam','type':a78_0x182bf8(0xef),'description':a78_0x182bf8(0xe9)},{'name':a78_0x182bf8(0xf7),'type':'string','description':'Human-readable\x20description'},{'name':'autostart','type':a78_0x182bf8(0xf8),'description':'After\x20create,\x20start\x20schema\x20analysis','default':![]}],async 'validate'(_0x15715b){const _0x452a51=a78_0x182bf8,_0x1eec91=_0x15715b['str']('dburl')[_0x452a51(0xee)]();if(!validateDbUrl(_0x1eec91))throw CliErrors[_0x452a51(0xfd)](_0x452a51(0xfc)+_0x1eec91+'\x22',_0x452a51(0x10e));},async 'dryRun'(_0x2520b5){const _0x4c1e65=a78_0x182bf8,_0x25bab4={'appCode':_0x2520b5['appCode'],'dbName':_0x2520b5[_0x4c1e65(0xf4)](_0x4c1e65(0x105)),'dbType':_0x2520b5['str']('dbtype'),'dbVersion':_0x2520b5[_0x4c1e65(0xf4)](_0x4c1e65(0xf1))||'8.0','dbUrl':_0x2520b5['str']('dburl')[_0x4c1e65(0xee)](),'username':_0x2520b5[_0x4c1e65(0xf4)]('username'),'password':_0x4c1e65(0xe5),..._0x2520b5['str'](_0x4c1e65(0xf6))?{'dbParam':_0x2520b5[_0x4c1e65(0xf4)](_0x4c1e65(0xf6))}:{},..._0x2520b5[_0x4c1e65(0xf4)](_0x4c1e65(0xf7))?{'dbDesc':_0x2520b5[_0x4c1e65(0xf4)]('dbdesc')}:{}};return{'method':'POST','url':_0x4c1e65(0xf9),'body':_0x25bab4,'description':['Create\x20dblink',_0x2520b5[_0x4c1e65(0xe8)]('autostart')?_0x4c1e65(0x106):_0x4c1e65(0xe6)][_0x4c1e65(0xfe)]('\x0a')};},async 'execute'(_0x57d51b){const _0x13acb2=a78_0x182bf8,_0x58b001={'appCode':_0x57d51b[_0x13acb2(0x10a)],'dbName':_0x57d51b[_0x13acb2(0xf4)](_0x13acb2(0x105)),'dbType':_0x57d51b[_0x13acb2(0xf4)]('dbtype'),'dbVersion':_0x57d51b['str'](_0x13acb2(0xf1))||_0x13acb2(0x107),'dbUrl':_0x57d51b[_0x13acb2(0xf4)]('dburl')['trim'](),'username':_0x57d51b[_0x13acb2(0xf4)](_0x13acb2(0x10f)),'password':_0x57d51b[_0x13acb2(0xf4)](_0x13acb2(0x101)),..._0x57d51b[_0x13acb2(0xf4)]('dbparam')?{'dbParam':_0x57d51b[_0x13acb2(0xf4)](_0x13acb2(0xf6))}:{},..._0x57d51b[_0x13acb2(0xf4)](_0x13acb2(0xf7))?{'dbDesc':_0x57d51b[_0x13acb2(0xf4)](_0x13acb2(0xf7))}:{}},{id:_0x24a359,entity:_0x3d779d}=normalizeEntityWithIdResponse(await createDbLink(_0x58b001));if(!_0x24a359)return{'ok':![],'message':'Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','data':sanitizeDbLinkForOutput(_0x3d779d)};let _0xb24060,_0x4a1cfd;if(_0x57d51b[_0x13acb2(0xe8)](_0x13acb2(0xfa)))try{_0xb24060=await startDbAnalysis(_0x24a359);}catch(_0x29765d){_0x4a1cfd=_0x29765d instanceof Error?_0x29765d[_0x13acb2(0xf0)]:String(_0x29765d);}const _0x7e166f=buildDbPageLinks(_0x57d51b[_0x13acb2(0x10a)],_0x24a359),_0x10e367={'connection':sanitizeDbLinkForOutput(_0x3d779d),..._0x7e166f?{'links':{'databasePage':_0x7e166f[_0x13acb2(0xf2)]}}:{},..._0xb24060?{'analysisPlanId':_0xb24060}:{},..._0x4a1cfd?{'analysisStartWarning':_0x4a1cfd}:{}};let _0x12482b;return _0x57d51b[_0x13acb2(0xe8)](_0x13acb2(0xfa))?_0x4a1cfd?_0x12482b=_0x13acb2(0x10b)+_0x24a359+_0x13acb2(0x104):_0x12482b=_0x13acb2(0x10b)+_0x24a359+'\x20and\x20started\x20analysis':_0x12482b=_0x13acb2(0x10b)+_0x24a359,{'ok':!![],'data':_0x10e367,'message':_0x12482b};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a79_0x10a124=a79_0x40f0;(function(_0x373d04,_0x5cf3c9){const _0x50e92e=a79_0x40f0,_0x484244=_0x373d04();while(!![]){try{const _0x28a125=-parseInt(_0x50e92e(0x155))/0x1+-parseInt(_0x50e92e(0x15e))/0x2+-parseInt(_0x50e92e(0x159))/0x3+parseInt(_0x50e92e(0x156))/0x4+parseInt(_0x50e92e(0x153))/0x5*(-parseInt(_0x50e92e(0x15b))/0x6)+parseInt(_0x50e92e(0x15c))/0x7*(parseInt(_0x50e92e(0x157))/0x8)+parseInt(_0x50e92e(0x15d))/0x9;if(_0x28a125===_0x5cf3c9)break;else _0x484244['push'](_0x484244['shift']());}catch(_0x294fa3){_0x484244['push'](_0x484244['shift']());}}}(a79_0x429f,0x2703e));function a79_0x40f0(_0x381607,_0x4848ba){_0x381607=_0x381607-0x153;const _0x429f82=a79_0x429f();let _0x40f084=_0x429f82[_0x381607];return _0x40f084;}function a79_0x429f(){const _0x391206=['1224NxRFSU','delete','525840bwhXAr','high-risk-write','12LaMCTt','9289nWwhZR','184275mGksmp','94204TUfUXA','13310KSnIKr','Deleted\x20db\x20link\x20','17773zaqCxc','727116xYUOAk'];a79_0x429f=function(){return _0x391206;};return a79_0x429f();}import{deleteDbLink}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbDelete={'service':'db','command':a79_0x10a124(0x158),'description':'Delete\x20a\x20database\x20connection\x20(dblink)\x20permanently','risk':a79_0x10a124(0x15a),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x536c57){const _0x176010=a79_0x10a124,_0x5edc7f=_0x536c57['num']('id');return await deleteDbLink(_0x5edc7f),{'ok':!![],'data':{'id':_0x5edc7f,'deleted':!![]},'message':_0x176010(0x154)+_0x5edc7f};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a80_0x1fca1a=a80_0x51bd;function a80_0x2216(){const _0x4272a0=['7302708auDZBH','349784Uqmprx','4kMmosb','133990EKScRB','10984008RuqCpe','dbName','5153841hMgowo','db\x20link\x20','12636386PbEGGr','1355807JzNJKp','num','Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)'];a80_0x2216=function(){return _0x4272a0;};return a80_0x2216();}(function(_0x509c9d,_0x3f2555){const _0x2c38e0=a80_0x51bd,_0x342b43=_0x509c9d();while(!![]){try{const _0x50a5b7=-parseInt(_0x2c38e0(0x16b))/0x1+-parseInt(_0x2c38e0(0x16f))/0x2+parseInt(_0x2c38e0(0x168))/0x3+parseInt(_0x2c38e0(0x164))/0x4*(-parseInt(_0x2c38e0(0x165))/0x5)+parseInt(_0x2c38e0(0x16e))/0x6+-parseInt(_0x2c38e0(0x16a))/0x7+parseInt(_0x2c38e0(0x166))/0x8;if(_0x50a5b7===_0x3f2555)break;else _0x342b43['push'](_0x342b43['shift']());}catch(_0x5df781){_0x342b43['push'](_0x342b43['shift']());}}}(a80_0x2216,0xe6cdb));import{getDbLinkInfo}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a80_0x51bd(_0x3b831f,_0x51f342){_0x3b831f=_0x3b831f-0x164;const _0x2216f1=a80_0x2216();let _0x51bd9e=_0x2216f1[_0x3b831f];return _0x51bd9e;}import{sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbDetail={'service':'db','command':'detail','description':a80_0x1fca1a(0x16d),'risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x17d4ff){const _0x1a23a6=a80_0x1fca1a,_0x336dd0=_0x17d4ff[_0x1a23a6(0x16c)]('id'),_0x572f6f=await getDbLinkInfo(_0x336dd0);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x572f6f),'message':_0x1a23a6(0x169)+_0x336dd0+':\x20'+_0x572f6f[_0x1a23a6(0x167)]};}};
|
package/lib/commands/db/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a81_0x3eb900=a81_0x409c;(function(_0x25a01e,_0x50f0e9){const _0x57879d=a81_0x409c,_0x39971a=_0x25a01e();while(!![]){try{const _0x3d971f=-parseInt(_0x57879d(0x10f))/0x1+-parseInt(_0x57879d(0x118))/0x2+parseInt(_0x57879d(0x10e))/0x3+-parseInt(_0x57879d(0x111))/0x4*(-parseInt(_0x57879d(0x122))/0x5)+-parseInt(_0x57879d(0x120))/0x6+-parseInt(_0x57879d(0x115))/0x7*(parseInt(_0x57879d(0x121))/0x8)+-parseInt(_0x57879d(0x11c))/0x9*(-parseInt(_0x57879d(0x116))/0xa);if(_0x3d971f===_0x50f0e9)break;else _0x39971a['push'](_0x39971a['shift']());}catch(_0x564ddc){_0x39971a['push'](_0x39971a['shift']());}}}(a81_0x39a2,0x1c0d0));function a81_0x39a2(){const _0x220c0d=['16NVafdp','25STPeby','table','Page\x20size','179052jmTZic','67193dNMaoW','number','168236JRSNtO','appCode','diff','num','559769MBGRMa','672620vYQMXQ','length','440680yNzhLL','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','page','\x20row(s),\x20total\x20','63DucEhl','pagesize','\x20(db\x20link\x20','string','1070700KsMIob'];a81_0x39a2=function(){return _0x220c0d;};return a81_0x39a2();}import{getDbTableDiff}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a81_0x409c(_0x194ba3,_0x5feab8){_0x194ba3=_0x194ba3-0x10d;const _0x39a207=a81_0x39a2();let _0x409c05=_0x39a207[_0x194ba3];return _0x409c05;}export const dbDiff={'service':'db','command':a81_0x3eb900(0x113),'description':'Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a81_0x3eb900(0x123),'type':a81_0x3eb900(0x11f),'description':a81_0x3eb900(0x119)},{'name':a81_0x3eb900(0x11a),'type':'number','description':'Page\x20index\x20(1-based)','default':0x1},{'name':a81_0x3eb900(0x11d),'type':a81_0x3eb900(0x110),'description':a81_0x3eb900(0x10d),'default':0x14}],async 'execute'(_0x3a1eaa){const _0x32cb69=a81_0x3eb900,_0x3d7440=_0x3a1eaa[_0x32cb69(0x114)]('id'),_0x262f3c=_0x3a1eaa[_0x32cb69(0x114)](_0x32cb69(0x11a),0x1)||0x1,_0x213e6=_0x3a1eaa['num']('pagesize',0x14)||0x14,_0x23f281=_0x3a1eaa['str'](_0x32cb69(0x123))||undefined,{totalCount:_0x447f8b,physicalTableCount:_0x33d421,datasetTableCount:_0x3f38e8,summary:_0x1bdab3,tableList:_0x5b43d4}=await getDbTableDiff(_0x3a1eaa[_0x32cb69(0x112)],_0x3d7440,{'pageIndex':_0x262f3c,'pageSize':_0x213e6,'tableName':_0x23f281});return{'ok':!![],'data':{'dbLinkId':_0x3d7440,'page':_0x262f3c,'pageSize':_0x213e6,'totalCount':_0x447f8b,'physicalTableCount':_0x33d421,'datasetTableCount':_0x3f38e8,..._0x1bdab3?{'summary':_0x1bdab3}:{},'tables':_0x5b43d4,'tableList':_0x5b43d4},'message':_0x5b43d4[_0x32cb69(0x117)]+_0x32cb69(0x11b)+_0x447f8b+_0x32cb69(0x11e)+_0x3d7440+')'};}};
|
package/lib/commands/db/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3760ad,_0x537f77){const _0x166b50=a82_0x405e,_0x163e8f=_0x3760ad();while(!![]){try{const _0x1fa852=-parseInt(_0x166b50(0x1e2))/0x1+parseInt(_0x166b50(0x1dc))/0x2+parseInt(_0x166b50(0x1df))/0x3+-parseInt(_0x166b50(0x1e1))/0x4+parseInt(_0x166b50(0x1e3))/0x5*(-parseInt(_0x166b50(0x1dd))/0x6)+parseInt(_0x166b50(0x1de))/0x7*(-parseInt(_0x166b50(0x1db))/0x8)+parseInt(_0x166b50(0x1e0))/0x9;if(_0x1fa852===_0x537f77)break;else _0x163e8f['push'](_0x163e8f['shift']());}catch(_0x52d648){_0x163e8f['push'](_0x163e8f['shift']());}}}(a82_0x269b,0x288c3));import{dbList}from'../../commands/db/list.js';import{dbDetail}from'../../commands/db/detail.js';import{dbCreate}from'../../commands/db/create.js';import{dbUpdate}from'../../commands/db/update.js';import{dbDelete}from'../../commands/db/delete.js';function a82_0x269b(){const _0xb7376e=['126509MfeJux','5iAvKOt','1215600sQqdys','418002QmJxwA','1110378VcDzCS','14BKhsYc','538752xrlTId','5144463pWQNqZ','714548LXnQLP'];a82_0x269b=function(){return _0xb7376e;};return a82_0x269b();}import{dbTest}from'../../commands/db/test.js';import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';function a82_0x405e(_0x3b3825,_0x18175e){_0x3b3825=_0x3b3825-0x1db;const _0x269bcf=a82_0x269b();let _0x405ecf=_0x269bcf[_0x3b3825];return _0x405ecf;}import{dbTables}from'../../commands/db/tables.js';import{dbDiff}from'../../commands/db/diff.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff];
|
package/lib/commands/db/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a83_0x53aea0=a83_0x593a;function a83_0x593a(_0x37784b,_0x43ef96){_0x37784b=_0x37784b-0xd0;const _0x4e0ba5=a83_0x4e0b();let _0x593a92=_0x4e0ba5[_0x37784b];return _0x593a92;}(function(_0x181295,_0x4d4e0c){const _0x2d40e3=a83_0x593a,_0x52e413=_0x181295();while(!![]){try{const _0x5ae20d=parseInt(_0x2d40e3(0xe1))/0x1*(-parseInt(_0x2d40e3(0xe6))/0x2)+-parseInt(_0x2d40e3(0xdf))/0x3*(-parseInt(_0x2d40e3(0xd6))/0x4)+-parseInt(_0x2d40e3(0xdb))/0x5+parseInt(_0x2d40e3(0xe3))/0x6*(-parseInt(_0x2d40e3(0xe5))/0x7)+-parseInt(_0x2d40e3(0xd2))/0x8+-parseInt(_0x2d40e3(0xdd))/0x9*(parseInt(_0x2d40e3(0xe8))/0xa)+parseInt(_0x2d40e3(0xd8))/0xb;if(_0x5ae20d===_0x4d4e0c)break;else _0x52e413['push'](_0x52e413['shift']());}catch(_0x393589){_0x52e413['push'](_0x52e413['shift']());}}}(a83_0x4e0b,0x7f488));import{listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{sanitizeDbLinkList}from'../../commands/db/shared.js';export const dbList={'service':'db','command':a83_0x53aea0(0xe2),'description':a83_0x53aea0(0xd9),'risk':a83_0x53aea0(0xe0),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a83_0x53aea0(0xd1),'type':a83_0x53aea0(0xd0),'description':a83_0x53aea0(0xd5),'default':0x1},{'name':a83_0x53aea0(0xde),'type':a83_0x53aea0(0xd0),'description':a83_0x53aea0(0xda),'default':0x64}],async 'execute'(_0x25da61){const _0x3c687d=a83_0x53aea0,_0xa51e41=_0x25da61[_0x3c687d(0xd3)]('page',0x1)||0x1,_0x36ee3c=_0x25da61[_0x3c687d(0xd3)]('pagesize',0x64)||0x64,{items:_0xbb2f5a,paging:_0x445ee0}=await listDbLinks(_0x25da61[_0x3c687d(0xe7)],{'currentPage':_0xa51e41,'pageSize':_0x36ee3c}),_0x4ba530=sanitizeDbLinkList(_0xbb2f5a),_0x4f1f1d=_0x445ee0?_0x445ee0:{'currentPage':_0xa51e41,'pageSize':_0x36ee3c,'rowsOnPage':_0x4ba530[_0x3c687d(0xd4)],'totalCount':null,'note':_0x3c687d(0xe4)};return{'ok':!![],'data':{'connections':_0x4ba530,'paging':_0x4f1f1d},'message':_0x3c687d(0xdc)+_0x4ba530[_0x3c687d(0xd4)]+_0x3c687d(0xd7)};}};function a83_0x4e0b(){const _0x147ee5=['number','page','2340384LkLpox','num','length','Page\x20index\x20(1-based)','1888gpWnKa','\x20database\x20connection(s)','20222103goIpjq','List\x20database\x20connections\x20(dblinks)\x20for\x20the\x20current\x20app\x20with\x20analysis\x20status\x20—\x20for\x20AI\x20to\x20pick\x20ids\x20before\x20db\x20detail\x20/\x20analyze\x20/\x20tables','Page\x20size','3059360EypNnR','Found\x20','4419qgPXaf','pagesize','5847qpwBla','read','155cMsAgo','list','228QpLzzL','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','86457aDBGRx','5398cKHkyU','appCode','9060MfHsyx'];a83_0x4e0b=function(){return _0x147ee5;};return a83_0x4e0b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1aae5c,_0x226401){const _0x1dcaee=a84_0x2661,_0x3e8800=_0x1aae5c();while(!![]){try{const _0x3a5500=-parseInt(_0x1dcaee(0x1b5))/0x1+-parseInt(_0x1dcaee(0x1b6))/0x2*(-parseInt(_0x1dcaee(0x1c3))/0x3)+parseInt(_0x1dcaee(0x1bc))/0x4+parseInt(_0x1dcaee(0x1bd))/0x5*(-parseInt(_0x1dcaee(0x1c4))/0x6)+parseInt(_0x1dcaee(0x1c6))/0x7*(parseInt(_0x1dcaee(0x1c2))/0x8)+-parseInt(_0x1dcaee(0x1c8))/0x9*(-parseInt(_0x1dcaee(0x1be))/0xa)+parseInt(_0x1dcaee(0x1c5))/0xb*(-parseInt(_0x1dcaee(0x1c0))/0xc);if(_0x3a5500===_0x226401)break;else _0x3e8800['push'](_0x3e8800['shift']());}catch(_0xf9989c){_0x3e8800['push'](_0x3e8800['shift']());}}}(a84_0x162a,0x38bc6));import{getAppBaseUrl}from'../../constant/domain.js';function shouldRedactKey(_0x34801b){const _0x35fbd9=a84_0x2661,_0x3792e2=_0x34801b[_0x35fbd9(0x1bf)]();if(_0x3792e2===_0x35fbd9(0x1cb)||_0x3792e2==='passwd'||_0x3792e2==='dbpassword')return!![];if(_0x3792e2[_0x35fbd9(0x1c7)](_0x35fbd9(0x1bb))||_0x3792e2[_0x35fbd9(0x1c7)](_0x35fbd9(0x1cf))||_0x3792e2[_0x35fbd9(0x1c7)](_0x35fbd9(0x1b9)))return!![];if(_0x3792e2[_0x35fbd9(0x1c7)]('privatekey')||_0x3792e2['includes'](_0x35fbd9(0x1b7)))return!![];if(_0x3792e2===_0x35fbd9(0x1cd)||_0x3792e2===_0x35fbd9(0x1ce)||_0x3792e2===_0x35fbd9(0x1b8))return!![];return![];}export function sanitizeDbLinkForOutput(_0x94850d){const _0x2935c3=a84_0x2661,_0x3cc09a={..._0x94850d};for(const _0x514228 of Object['keys'](_0x3cc09a)){if(!shouldRedactKey(_0x514228))continue;const _0x349c71=_0x3cc09a[_0x514228];_0x349c71!=null&&String(_0x349c71)['length']>0x0&&(_0x3cc09a[_0x514228]=_0x2935c3(0x1cc));}return _0x3cc09a;}export function sanitizeDbLinkList(_0x299770){return _0x299770['map'](_0x2cb962=>sanitizeDbLinkForOutput(_0x2cb962));}function a84_0x162a(){const _0x2b7ea3=['accesskey','jdbcurl','credential','trim','secret','407496XgExdP','1515PGDfMz','710170EhcgtC','toLowerCase','4572GowwUu','test','24ibAwmZ','3lOxpSk','6918MYjrWJ','1078OXSWpE','670817OfPQhC','includes','45UYzZCo','number','/data/database','password','[redacted]','authorization','connectionstring','token','168838ZLEZHM','86946oNfVrb'];a84_0x162a=function(){return _0x2b7ea3;};return a84_0x162a();}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;function a84_0x2661(_0x1a4cf7,_0x1442dd){_0x1a4cf7=_0x1a4cf7-0x1b5;const _0x162af9=a84_0x162a();let _0x2661ef=_0x162af9[_0x1a4cf7];return _0x2661ef;}export function validateDbUrl(_0x5df8d7){const _0x35cbcb=a84_0x2661,_0x41dc3e=_0x5df8d7[_0x35cbcb(0x1ba)]();if(!_0x41dc3e)return![];return DB_URL_PATTERN[_0x35cbcb(0x1c1)](_0x41dc3e);}export function buildDbPageLinks(_0x261c77,_0x294290){const _0x46681c=a84_0x2661,_0x133742=_0x261c77?.['trim']();if(!_0x133742)return undefined;const _0x2a7863=typeof _0x294290===_0x46681c(0x1c9)?String(_0x294290):String(_0x294290??'')[_0x46681c(0x1ba)]();if(!_0x2a7863)return undefined;const _0x5563a4=Number(_0x2a7863);if(!Number['isFinite'](_0x5563a4)||_0x5563a4<=0x0)return undefined;const _0x53d7f6=getAppBaseUrl(_0x133742),_0x127861=encodeURIComponent(String(_0x5563a4));return{'databasePage':_0x53d7f6+_0x46681c(0x1ca),'erPage':_0x53d7f6+'/data/er?dbId='+_0x127861};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a85_0x14ae17=a85_0x4fab;(function(_0x3e83ec,_0x3af01a){const _0x301071=a85_0x4fab,_0x239601=_0x3e83ec();while(!![]){try{const _0x1d8c13=-parseInt(_0x301071(0x16a))/0x1*(parseInt(_0x301071(0x16f))/0x2)+parseInt(_0x301071(0x175))/0x3*(parseInt(_0x301071(0x173))/0x4)+parseInt(_0x301071(0x170))/0x5+-parseInt(_0x301071(0x172))/0x6*(parseInt(_0x301071(0x171))/0x7)+parseInt(_0x301071(0x169))/0x8*(-parseInt(_0x301071(0x16d))/0x9)+parseInt(_0x301071(0x16c))/0xa+-parseInt(_0x301071(0x16b))/0xb*(-parseInt(_0x301071(0x16e))/0xc);if(_0x1d8c13===_0x3af01a)break;else _0x239601['push'](_0x239601['shift']());}catch(_0x36ba4b){_0x239601['push'](_0x239601['shift']());}}}(a85_0x180c,0xdb459));function a85_0x4fab(_0x5f4b26,_0x4d87bb){_0x5f4b26=_0x5f4b26-0x165;const _0x180c0e=a85_0x180c();let _0x4fab94=_0x180c0e[_0x5f4b26];return _0x4fab94;}import{getDbAllTableList}from'../../core/api-client.js';function a85_0x180c(){const _0xd4d5b3=['52fhbXfk','length','102081soKioC','appCode','\x20table(s)\x20on\x20db\x20link\x20','num','read','List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','23960DSTELB','13581vwTRTt','20284ZVzcpT','2511410owfstL','4491ykFkRs','17856UOQpas','162VIXMlN','5560335ojQwMq','1849274JZCmjw','24ynjcHA'];a85_0x180c=function(){return _0xd4d5b3;};return a85_0x180c();}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbTables={'service':'db','command':'tables','description':a85_0x14ae17(0x168),'risk':a85_0x14ae17(0x167),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x3565f7){const _0x2dec19=a85_0x14ae17,_0x4de827=_0x3565f7[_0x2dec19(0x166)]('id'),_0x2d4288=await getDbAllTableList(_0x3565f7[_0x2dec19(0x176)],_0x4de827);return{'ok':!![],'data':{'dbLinkId':_0x4de827,'total':_0x2d4288[_0x2dec19(0x174)],'tables':_0x2d4288},'message':_0x2d4288['length']+_0x2dec19(0x165)+_0x4de827};}};
|
package/lib/commands/db/test.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a86_0x38b94e=a86_0x291f;(function(_0x2da819,_0x4c25d9){const _0x8c9b39=a86_0x291f,_0x356c46=_0x2da819();while(!![]){try{const _0x20c20f=-parseInt(_0x8c9b39(0x155))/0x1*(parseInt(_0x8c9b39(0x161))/0x2)+-parseInt(_0x8c9b39(0x14f))/0x3*(parseInt(_0x8c9b39(0x162))/0x4)+-parseInt(_0x8c9b39(0x149))/0x5*(parseInt(_0x8c9b39(0x14a))/0x6)+-parseInt(_0x8c9b39(0x160))/0x7+-parseInt(_0x8c9b39(0x156))/0x8*(parseInt(_0x8c9b39(0x14e))/0x9)+parseInt(_0x8c9b39(0x14b))/0xa*(parseInt(_0x8c9b39(0x15a))/0xb)+parseInt(_0x8c9b39(0x148))/0xc;if(_0x20c20f===_0x4c25d9)break;else _0x356c46['push'](_0x356c46['shift']());}catch(_0x3923cb){_0x356c46['push'](_0x356c46['shift']());}}}(a86_0x2481,0x33c6e));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x1227cd){const _0x3f8cde=a86_0x291f;if(_0x1227cd===!![]||_0x1227cd===![])return{'success':_0x1227cd};if(_0x1227cd===null||_0x1227cd===undefined)return{'type':typeof _0x1227cd};if(typeof _0x1227cd!=='object')return{'type':typeof _0x1227cd};const _0x217a38=_0x1227cd,_0x4ea820=[_0x3f8cde(0x159),'message',_0x3f8cde(0x14c),_0x3f8cde(0x15e),_0x3f8cde(0x157),_0x3f8cde(0x153)],_0x3ddd07={};for(const _0x2fdc04 of _0x4ea820){if(_0x2fdc04 in _0x217a38)_0x3ddd07[_0x2fdc04]=_0x217a38[_0x2fdc04];}return Object[_0x3f8cde(0x14d)](_0x3ddd07)[_0x3f8cde(0x15c)]===0x0&&(_0x3ddd07['keys']=Object[_0x3f8cde(0x14d)](_0x217a38)[_0x3f8cde(0x15d)](0x0,0x14)),_0x3ddd07;}function a86_0x2481(){const _0x20e67b=['object','read','Connection\x20OK\x20for\x20db\x20link\x20','data','num','3fGFQXV','8EfdnUR','msg','\x20(see\x20data.result)','success','11aSofpZ','Connection\x20check\x20finished\x20for\x20db\x20link\x20','length','slice','error','test','74704YFhrGF','194314eUJlQK','63592qcIDRe','10739232SRplGu','2260cERUCu','564UHkfJz','1377240TfScrG','code','keys','2709657nzXLId','33RBGwPV'];a86_0x2481=function(){return _0x20e67b;};return a86_0x2481();}function a86_0x291f(_0x164318,_0x653959){_0x164318=_0x164318-0x148;const _0x248182=a86_0x2481();let _0x291f0e=_0x248182[_0x164318];return _0x291f0e;}export const dbTest={'service':'db','command':a86_0x38b94e(0x15f),'description':'Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','risk':a86_0x38b94e(0x151),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x5c1592){const _0x51abdb=a86_0x38b94e,_0xbc9c56=_0x5c1592[_0x51abdb(0x154)]('id'),_0x1769d8=await testDbLinkConnect(_0xbc9c56),_0x974e0e=_0x1769d8===!![]||typeof _0x1769d8===_0x51abdb(0x150)&&_0x1769d8!==null&&_0x1769d8[_0x51abdb(0x159)]===!![],_0x222dc7=summarizeTestConnectResult(_0x1769d8);return{'ok':!![],'data':{'id':_0xbc9c56,'connected':Boolean(_0x974e0e),'result':_0x222dc7},'message':_0x974e0e?_0x51abdb(0x152)+_0xbc9c56:_0x51abdb(0x15b)+_0xbc9c56+_0x51abdb(0x158)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a87_0x5a0c(){const _0x556de6=['validation','num','dbParam','dbName','734208RGiZTg','/smartapi/dblink/update','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','1105728zinlZI','password','trim','dbUrl','dbparam','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','dburl','22175xmkOqV','31192gQfgUt','New\x20host:port','Updated\x20db\x20link\x20','dbDesc','12knzFxw','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','string','New\x20connection\x20parameter\x20string','username','305902UbPNmh','update','str','POST','New\x20description','New\x20database\x20name','New\x20username','dbdesc','dbname','156YCsfxt','375964bmJRzM','2504700AtLDJa'];a87_0x5a0c=function(){return _0x556de6;};return a87_0x5a0c();}const a87_0x446370=a87_0x21bf;(function(_0x40c4d6,_0x1c9306){const _0x504a40=a87_0x21bf,_0x1d53b5=_0x40c4d6();while(!![]){try{const _0xc5093a=-parseInt(_0x504a40(0xeb))/0x1+-parseInt(_0x504a40(0xfb))/0x2+parseInt(_0x504a40(0xe6))/0x3*(parseInt(_0x504a40(0xf5))/0x4)+parseInt(_0x504a40(0x106))/0x5*(parseInt(_0x504a40(0xf4))/0x6)+-parseInt(_0x504a40(0x107))/0x7+parseInt(_0x504a40(0xff))/0x8+parseInt(_0x504a40(0xf6))/0x9;if(_0xc5093a===_0x1c9306)break;else _0x1d53b5['push'](_0x1d53b5['shift']());}catch(_0x1468b5){_0x1d53b5['push'](_0x1d53b5['shift']());}}}(a87_0x5a0c,0x383b8));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';function a87_0x21bf(_0x2a99f8,_0x1a0a99){_0x2a99f8=_0x2a99f8-0xe4;const _0x5a0cc3=a87_0x5a0c();let _0x21bf0d=_0x5a0cc3[_0x2a99f8];return _0x21bf0d;}import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbUpdate={'service':'db','command':a87_0x446370(0xec),'description':a87_0x446370(0xfd),'risk':'write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':a87_0x446370(0xe8),'description':a87_0x446370(0xf0)},{'name':a87_0x446370(0x105),'type':'string','description':a87_0x446370(0x108)},{'name':a87_0x446370(0xea),'type':a87_0x446370(0xe8),'description':a87_0x446370(0xf1)},{'name':a87_0x446370(0x100),'type':'string','description':a87_0x446370(0xfe)},{'name':a87_0x446370(0x103),'type':'string','description':a87_0x446370(0xe9)},{'name':'dbdesc','type':a87_0x446370(0xe8),'description':a87_0x446370(0xef)}],async 'validate'(_0x183d29){const _0x38119b=a87_0x446370,_0xb64612=_0x183d29[_0x38119b(0xed)]('dburl');if(_0xb64612&&!validateDbUrl(_0xb64612[_0x38119b(0x101)]()))throw CliErrors[_0x38119b(0xf7)](_0x38119b(0xe7)+_0xb64612+'\x22');},async 'dryRun'(_0x278c87){const _0xe66e5e=a87_0x446370,_0x3ddf92=_0x278c87[_0xe66e5e(0xf8)]('id'),_0x5cb157=await getDbLinkInfo(_0x3ddf92),_0x39343c={..._0x5cb157},_0x26e173=_0x278c87[_0xe66e5e(0xed)]('dbname');if(_0x26e173)_0x39343c['dbName']=_0x26e173;const _0x19df34=_0x278c87[_0xe66e5e(0xed)](_0xe66e5e(0x105));if(_0x19df34)_0x39343c[_0xe66e5e(0x102)]=_0x19df34[_0xe66e5e(0x101)]();const _0x224c56=_0x278c87[_0xe66e5e(0xed)]('username');if(_0x224c56)_0x39343c[_0xe66e5e(0xea)]=_0x224c56;const _0x444b9f=_0x278c87[_0xe66e5e(0xed)](_0xe66e5e(0x100));if(_0x444b9f)_0x39343c[_0xe66e5e(0x100)]=_0x444b9f;const _0x370492=_0x278c87[_0xe66e5e(0xed)](_0xe66e5e(0x103));if(_0x370492)_0x39343c[_0xe66e5e(0xf9)]=_0x370492;const _0x2aa862=_0x278c87[_0xe66e5e(0xed)](_0xe66e5e(0xf2));if(_0x2aa862)_0x39343c[_0xe66e5e(0xe5)]=_0x2aa862;const _0x4aa3c5=sanitizeDbLinkForOutput(_0x39343c);return{'method':_0xe66e5e(0xee),'url':_0xe66e5e(0xfc),'body':_0x4aa3c5,'description':_0xe66e5e(0x104)};},async 'execute'(_0x1b3cb3){const _0x40d27a=a87_0x446370,_0x2b9d85=_0x1b3cb3[_0x40d27a(0xf8)]('id'),_0x4e6faf=await getDbLinkInfo(_0x2b9d85),_0x4d6e84={..._0x4e6faf},_0x2076ab=_0x1b3cb3[_0x40d27a(0xed)](_0x40d27a(0xf3));if(_0x2076ab)_0x4d6e84[_0x40d27a(0xfa)]=_0x2076ab;const _0x2b1a38=_0x1b3cb3[_0x40d27a(0xed)](_0x40d27a(0x105));if(_0x2b1a38)_0x4d6e84[_0x40d27a(0x102)]=_0x2b1a38[_0x40d27a(0x101)]();const _0x56b2a3=_0x1b3cb3[_0x40d27a(0xed)](_0x40d27a(0xea));if(_0x56b2a3)_0x4d6e84[_0x40d27a(0xea)]=_0x56b2a3;const _0x4a970c=_0x1b3cb3[_0x40d27a(0xed)](_0x40d27a(0x100));if(_0x4a970c)_0x4d6e84['password']=_0x4a970c;const _0x10b138=_0x1b3cb3[_0x40d27a(0xed)](_0x40d27a(0x103));if(_0x10b138)_0x4d6e84['dbParam']=_0x10b138;const _0x2c9a8d=_0x1b3cb3[_0x40d27a(0xed)]('dbdesc');if(_0x2c9a8d)_0x4d6e84[_0x40d27a(0xe5)]=_0x2c9a8d;const {id:_0xdff4cd,entity:_0x26f020}=normalizeEntityWithIdResponse(await updateDbLink(_0x4d6e84));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x26f020),'message':_0x40d27a(0xe4)+(_0xdff4cd??_0x2b9d85)};}};
|