@lovrabet/rabetbase-cli 2.2.4-beta.2 → 2.2.4-beta.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/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/filter.js +1 -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/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/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-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/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/skill/index.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/save.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/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 a61_0x302661=a61_0x57ed;(function(_0x128cde,_0xfd2a89){const _0x48597a=a61_0x57ed,_0x4b1c22=_0x128cde();while(!![]){try{const _0x1905e1=-parseInt(_0x48597a(0x1bf))/0x1*(parseInt(_0x48597a(0x1b6))/0x2)+parseInt(_0x48597a(0x1b1))/0x3*(-parseInt(_0x48597a(0x1ba))/0x4)+-parseInt(_0x48597a(0x1b3))/0x5*(-parseInt(_0x48597a(0x1ab))/0x6)+parseInt(_0x48597a(0x1b9))/0x7+-parseInt(_0x48597a(0x1c2))/0x8+-parseInt(_0x48597a(0x1aa))/0x9*(parseInt(_0x48597a(0x1c8))/0xa)+parseInt(_0x48597a(0x1bd))/0xb;if(_0x1905e1===_0xfd2a89)break;else _0x4b1c22['push'](_0x4b1c22['shift']());}catch(_0x1c8193){_0x4b1c22['push'](_0x4b1c22['shift']());}}}(a61_0x29e5,0x98586));import{updateErRelation}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a61_0x57ed(_0x43d50c,_0x3d9f7b){_0x43d50c=_0x43d50c-0x1aa;const _0x29e5e3=a61_0x29e5();let _0x57edc2=_0x29e5e3[_0x43d50c];return _0x57edc2;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{buildMutationData,CARDINALITY_FLAG_OPTIONAL,DB_FLAG_OPTIONAL,EXPECT_TO_LABEL_COLUMN_FLAG,FROM_CODE_FLAG,FROM_COLUMN_FLAG,FROM_SOURCE_FLAG,FROM_TABLE_FLAG_OPTIONAL,findExistingRelation,formatRelationSelector,hydrateExistingRelationLabel,isMetadataInvolved,readRelationInput,relationToBackend,resolveDbForInput,TO_CODE_FLAG,TO_COLUMN_FLAG,TO_LABEL_COLUMN_FLAG_OPTIONAL,TO_SOURCE_FLAG,TO_TABLE_FLAG_OPTIONAL,verifyRelationMutation}from'../../commands/dataset/relation-shared.js';const BACKEND_PATH='/smartapi/question/er-config/update-single';export const datasetRelationUpdate={'service':'dataset','command':a61_0x302661(0x1c5),'description':a61_0x302661(0x1b5),'risk':a61_0x302661(0x1af),'flags':[FROM_SOURCE_FLAG,TO_SOURCE_FLAG,DB_FLAG_OPTIONAL,FROM_TABLE_FLAG_OPTIONAL,FROM_CODE_FLAG,FROM_COLUMN_FLAG,TO_TABLE_FLAG_OPTIONAL,TO_CODE_FLAG,TO_COLUMN_FLAG,TO_LABEL_COLUMN_FLAG_OPTIONAL,EXPECT_TO_LABEL_COLUMN_FLAG,CARDINALITY_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x95caf6){readRelationInput(_0x95caf6,{'includeLabelAndCardinality':!![]});},async 'dryRun'(_0x159128){const _0x4ff202=a61_0x302661,_0x286c55=readRelationInput(_0x159128,{'includeLabelAndCardinality':!![]}),_0x213dce=await resolveDbForInput(_0x159128[_0x4ff202(0x1ac)],_0x286c55,_0x159128[_0x4ff202(0x1b8)]('db'));if(!isMetadataInvolved(_0x286c55))return{'operation':'update','appCode':_0x159128['appCode'],'dbId':_0x213dce['dbId'],'dbName':_0x213dce[_0x4ff202(0x1ae)],'method':'POST','url':BACKEND_PATH,'body':{'appCode':_0x159128['appCode'],'dblinkId':_0x213dce[_0x4ff202(0x1c9)],'relation':relationToBackend(_0x286c55)},'description':_0x4ff202(0x1c1)+formatRelationSelector(_0x286c55)};const _0x3fad9b=await loadExistingRelationForUpdate(_0x159128[_0x4ff202(0x1ac)],_0x213dce?.[_0x4ff202(0x1c9)]??null,_0x286c55,{'hydrateLabel':!![]}),{warnings:_0x377550,suggestedExpectFlags:_0x203344}=buildDriftWarnings(_0x159128[_0x4ff202(0x1b8)]('expect-to-label-column'),_0x3fad9b,_0x286c55);return{'method':_0x4ff202(0x1c4),'url':BACKEND_PATH,'body':{'appCode':_0x159128[_0x4ff202(0x1ac)],'dblinkId':_0x213dce?.[_0x4ff202(0x1c9)]??null,'relation':relationToBackend(_0x286c55)},...buildMutationData({'operation':_0x4ff202(0x1b0),'appCode':_0x159128[_0x4ff202(0x1ac)],'db':_0x213dce,'input':_0x286c55,'before':_0x3fad9b,'dryRun':!![],'backendPath':BACKEND_PATH,'warnings':_0x377550,'suggestedExpectFlags':_0x203344})};},async 'execute'(_0x22ca4b){const _0x107868=a61_0x302661,_0x596e85=readRelationInput(_0x22ca4b,{'includeLabelAndCardinality':!![]}),_0x33a7ee=await resolveDbForInput(_0x22ca4b['appCode'],_0x596e85,_0x22ca4b[_0x107868(0x1b8)]('db')),_0x303d43=_0x22ca4b[_0x107868(0x1b8)](_0x107868(0x1b4)),_0x239281=await loadExistingRelationForUpdate(_0x22ca4b['appCode'],_0x33a7ee?.[_0x107868(0x1c9)]??null,_0x596e85,{'hydrateLabel':isMetadataInvolved(_0x596e85)||Boolean(_0x303d43[_0x107868(0x1c3)]())});validateExpectedLabel(_0x303d43,_0x239281);const {warnings:_0x1d365d,suggestedExpectFlags:_0x572c3f}=buildDriftWarnings(_0x303d43,_0x239281,_0x596e85);await updateErRelation({'appCode':_0x22ca4b[_0x107868(0x1ac)],'dblinkId':_0x33a7ee?.[_0x107868(0x1c9)]??null,'relation':relationToBackend(_0x596e85)});const _0x16a827=await verifyRelationMutation({'operation':'update','appCode':_0x22ca4b[_0x107868(0x1ac)],'dbId':_0x33a7ee?.[_0x107868(0x1c9)]??null,'input':_0x596e85,'before':_0x239281});return{'ok':!![],'data':buildMutationData({'operation':_0x107868(0x1b0),'appCode':_0x22ca4b[_0x107868(0x1ac)],'db':_0x33a7ee,'input':_0x596e85,'before':_0x239281,'dryRun':![],'backendPath':BACKEND_PATH,'after':_0x16a827[_0x107868(0x1b7)],'verification':_0x16a827,'warnings':_0x1d365d,'suggestedExpectFlags':_0x572c3f}),'message':_0x107868(0x1c7)+formatRelationSelector(_0x596e85)};}};async function loadExistingRelationForUpdate(_0x2555f6,_0x215c28,_0x46155a,_0x5b3e6b){const _0x699eb7=a61_0x302661,_0x32d33b=await findExistingRelation(_0x2555f6,_0x215c28,_0x46155a);if(!_0x32d33b)throw CliErrors[_0x699eb7(0x1c6)](_0x699eb7(0x1bc)+formatRelationSelector(_0x46155a),_0x699eb7(0x1b2));if(!_0x5b3e6b?.[_0x699eb7(0x1c0)])return _0x32d33b;return hydrateExistingRelationLabel(_0x46155a,_0x32d33b,{'includeDbTable':!![]});}function validateExpectedLabel(_0x3bebfe,_0x105ba1){const _0x2d63e9=a61_0x302661,_0x323c87=_0x3bebfe[_0x2d63e9(0x1c3)]();if(!_0x323c87)return;const _0x22a2a3=_0x105ba1['to'][_0x2d63e9(0x1ad)];if(_0x22a2a3!==_0x323c87)throw CliErrors[_0x2d63e9(0x1c6)]('Expectation\x20mismatch:\x20current\x20to-label-column\x20is\x20'+(_0x22a2a3??'(unknown)')+_0x2d63e9(0x1be)+_0x323c87+'.');}function buildDriftWarnings(_0x54bad5,_0x37ae6a,_0x5f1534){const _0x452b74=a61_0x302661;if(!isMetadataInvolved(_0x5f1534)||_0x54bad5['trim']()||!_0x37ae6a['to']['labelColumn'])return{'warnings':[],'suggestedExpectFlags':undefined};return{'warnings':[{'code':_0x452b74(0x1bb),'message':_0x452b74(0x1ca)}],'suggestedExpectFlags':{'--expect-to-label-column':_0x37ae6a['to']['labelColumn']}};}function a61_0x29e5(){const _0xec561e=['update','18uAoyax','Use\x20dataset\x20relation-create\x20to\x20create\x20a\x20new\x20relation.','172435eVfWPi','expect-to-label-column','Update\x20one\x20dataset\x20relation','1931248iaEgxj','afterReadback','str','2829519RevYwB','658504rZHqyR','no_drift_check_applied','relation_not_found:\x20','27600056SwWrOP',',\x20expected\x20','1XeCYsL','hydrateLabel','Would\x20update\x20dataset\x20relation\x20','1469688Ebdnmx','trim','POST','relation-update','validation','Updated\x20dataset\x20relation:\x20','10KqiEwN','dbId','No\x20--expect-to-label-column\x20was\x20provided.\x20Pass\x20the\x20suggested\x20expect\x20flag\x20for\x20optimistic\x20concurrency\x20control.','6025689ubKHBC','90IZVAof','appCode','labelColumn','dbName','write'];a61_0x29e5=function(){return _0xec561e;};return a61_0x29e5();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a62_0x23848f=a62_0x5172;(function(_0x270f25,_0x5b2ff1){const _0x356f49=a62_0x5172,_0x42774b=_0x270f25();while(!![]){try{const _0x202d83=-parseInt(_0x356f49(0x166))/0x1*(parseInt(_0x356f49(0x177))/0x2)+-parseInt(_0x356f49(0x15d))/0x3*(-parseInt(_0x356f49(0x192))/0x4)+-parseInt(_0x356f49(0x186))/0x5+-parseInt(_0x356f49(0x194))/0x6*(parseInt(_0x356f49(0x16a))/0x7)+-parseInt(_0x356f49(0x185))/0x8*(-parseInt(_0x356f49(0x19b))/0x9)+-parseInt(_0x356f49(0x19c))/0xa+parseInt(_0x356f49(0x165))/0xb;if(_0x202d83===_0x5b2ff1)break;else _0x42774b['push'](_0x42774b['shift']());}catch(_0x298100){_0x42774b['push'](_0x42774b['shift']());}}}(a62_0x5d71,0x674ab));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';const SOURCE_TYPES=['DB_TABLE',a62_0x23848f(0x198)],DEFAULT_DO_VERSION='v2';export const DATASET_RELATIONS_PROTOCOL='dataset-relations.v1';export const datasetRelations={'service':a62_0x23848f(0x18d),'command':'relations','description':a62_0x23848f(0x16b)+a62_0x23848f(0x169),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a62_0x23848f(0x188),'type':'string','required':![],'enum':[...SOURCE_TYPES],'description':a62_0x23848f(0x15f)},{'name':a62_0x23848f(0x17a),'type':a62_0x23848f(0x162),'required':![],'enum':[...SOURCE_TYPES],'description':a62_0x23848f(0x16c)},{'name':a62_0x23848f(0x19f),'type':'string','required':![],'enum':['v1','v2'],'description':a62_0x23848f(0x1a2)}],async 'validate'(_0x3e0768){const _0x1f29f5=a62_0x23848f;readSourceFilter(_0x3e0768[_0x1f29f5(0x175)](_0x1f29f5(0x188)),_0x1f29f5(0x1a3)),readSourceFilter(_0x3e0768[_0x1f29f5(0x175)](_0x1f29f5(0x17a)),_0x1f29f5(0x17b)),rejectUnsupportedDirection(readSourceFilter(_0x3e0768['str'](_0x1f29f5(0x188)),_0x1f29f5(0x1a3)),readSourceFilter(_0x3e0768['str'](_0x1f29f5(0x17a)),_0x1f29f5(0x17b)));},async 'execute'(_0xabe388){const _0x283d3f=a62_0x23848f,_0xee350f=trim(_0xabe388[_0x283d3f(0x175)](_0x283d3f(0x180))),_0x5cde71=readSourceFilter(_0xabe388[_0x283d3f(0x175)](_0x283d3f(0x188)),_0x283d3f(0x1a3)),_0x284322=readSourceFilter(_0xabe388[_0x283d3f(0x175)]('to-source'),_0x283d3f(0x17b)),_0x12d8f5=trim(_0xabe388[_0x283d3f(0x175)]('do-version')||DEFAULT_DO_VERSION)[_0x283d3f(0x197)]();rejectUnsupportedDirection(_0x5cde71,_0x284322);const _0x2dd185=await listDatasets(_0xabe388[_0x283d3f(0x17c)],{..._0xee350f?{'code':_0xee350f}:{}}),_0x331ade=new Map();for(const _0x205ae1 of _0x2dd185){const _0x1e1e42=datasetCodeOf(_0x205ae1);if(_0x1e1e42)_0x331ade[_0x283d3f(0x18e)](_0x1e1e42,_0x205ae1);}const _0x187f65=_0xee350f?[toDatasetInfo(await getDatasetDetail(_0xee350f),_0x331ade[_0x283d3f(0x187)](_0xee350f))]:await Promise[_0x283d3f(0x181)](_0x2dd185[_0x283d3f(0x18f)](async _0x45175f=>toDatasetInfo(await getDatasetDetail(datasetCodeOf(_0x45175f)),_0x45175f))),_0xe75e0c=_0x187f65[_0x283d3f(0x1a1)](_0x10612b=>{const _0x2b5f4d=_0x283d3f;if(_0x12d8f5&&normalizeDoVersion(_0x10612b[_0x2b5f4d(0x18a)])!==_0x12d8f5)return![];return!![];}),_0x260035=new Map(_0xe75e0c[_0x283d3f(0x18f)](_0x149438=>[_0x149438[_0x283d3f(0x19e)],_0x149438])),_0x54be7b=_0xe75e0c[_0x283d3f(0x179)](_0x1e3168=>{const _0x1723af=_0x283d3f,_0x144dc1=Array[_0x1723af(0x1a6)](_0x1e3168[_0x1723af(0x1a5)][_0x1723af(0x1a0)])?_0x1e3168['detail']['relations']:[];return _0x144dc1[_0x1723af(0x179)](_0x4a39f2=>{const _0x2a0a7f=_0x1723af,_0x1d6eec=trim(_0x4a39f2[_0x2a0a7f(0x163)]??_0x4a39f2['fromColumn']??_0x4a39f2['field']),_0x573f6d=trim(_0x4a39f2[_0x2a0a7f(0x18c)]??_0x4a39f2['toCode']??_0x4a39f2[_0x2a0a7f(0x18b)]??_0x4a39f2[_0x2a0a7f(0x19d)]),_0x3454af=trim(_0x4a39f2[_0x2a0a7f(0x173)]??_0x4a39f2['toColumn']??_0x4a39f2[_0x2a0a7f(0x16f)]);if(!_0x1d6eec||!_0x573f6d||!_0x3454af)return[];const _0x39abd0=_0x260035['get'](_0x573f6d)??(_0x331ade[_0x2a0a7f(0x170)](_0x573f6d)?toDatasetInfo(_0x331ade['get'](_0x573f6d)??{},_0x331ade[_0x2a0a7f(0x187)](_0x573f6d)):undefined),_0x52a1fb=_0x39abd0?.['source']??sourceOf(_0x4a39f2[_0x2a0a7f(0x191)]??_0x4a39f2[_0x2a0a7f(0x176)]??_0x4a39f2[_0x2a0a7f(0x17d)],_0x4a39f2[_0x2a0a7f(0x19a)]);if(_0x1e3168[_0x2a0a7f(0x16e)]===_0x2a0a7f(0x198)&&_0x52a1fb==='DB_TABLE')return[];if(_0x5cde71&&_0x1e3168[_0x2a0a7f(0x16e)]!==_0x5cde71)return[];if(_0x284322&&_0x52a1fb!==_0x284322)return[];const _0xf611f7=readRelationLabelField(_0x4a39f2),_0x49c5ac=normalizeCardinality(_0x4a39f2[_0x2a0a7f(0x164)]??_0x4a39f2[_0x2a0a7f(0x17f)]);return[{'from':{'source':_0x1e3168[_0x2a0a7f(0x16e)],'datasetCode':_0x1e3168[_0x2a0a7f(0x19e)],..._0x1e3168[_0x2a0a7f(0x171)]?{'datasetName':_0x1e3168[_0x2a0a7f(0x171)]}:{},..._0x1e3168['table']?{'table':_0x1e3168[_0x2a0a7f(0x161)]}:{},'field':_0x1d6eec},'to':{'source':_0x52a1fb,'datasetCode':_0x573f6d,'datasetName':_0x39abd0?.['name']??trim(_0x4a39f2['toDatasetName']),..._0x39abd0?.['table']?{'table':_0x39abd0['table']}:{},'field':_0x3454af,..._0xf611f7?{'labelField':_0xf611f7}:{}},..._0x49c5ac?{'relation':{'cardinality':_0x49c5ac}}:{}}];});});return{'ok':!![],'data':{'protocol':DATASET_RELATIONS_PROTOCOL,'appCode':_0xabe388['appCode'],'total':_0x54be7b['length'],'relations':_0x54be7b},'message':_0x283d3f(0x178)+_0x54be7b[_0x283d3f(0x16d)]+'\x20relation(s)'};}};function a62_0x5d71(){const _0x40cf5f=['833798ySfOCD','List\x20V2\x20dataset\x20relation\x20facts\x20using\x20datasetCode\x20+\x20field\x20as\x20the\x20primary\x20locator.\x20','Filter\x20target\x20dataset\x20type:\x20DB_TABLE\x20or\x20METADATA','length','source','targetField','has','name','validation','toField','refTableLabelName','str','toSource','88PmmqrE','Dataset\x20relations:\x20','flatMap','to-source','--to-source','appCode','sourceType','Invalid\x20','cardinality','datasetcode','all','datasetCode','DB_TABLE','modelCode','8WSuGxD','1745765oosRZO','get','from-source','ONE_TO_MANY','doVersion','toDataset','toDatasetCode','dataset','set','map','tableName','toSourceType','16JrgOZL','trim','6ZmTKlz','toUpperCase','METADATA\x20to\x20DB_TABLE\x20dataset\x20relation\x20is\x20not\x20supported','toLowerCase','METADATA','toFieldLabel','toTableName','6645627lzXWuh','4319250SombRR','targetDatasetCode','code','do-version','relations','filter','Legacy\x20troubleshooting\x20filter\x20for\x20dataset\x20version;\x20defaults\x20to\x20v2','--from-source','datasetName','detail','isArray','MANY_TO_MANY','145227xXKcTy','ONE_TO_ONE','Filter\x20source\x20dataset\x20type:\x20DB_TABLE\x20or\x20METADATA','dbtableConfig','table','string','fromField','joinType','7158228nONvxU','5898ZbcvkC','MANY_TO_ONE','Allowed\x20values:\x20DB_TABLE,\x20METADATA.','Supports\x20DB_TABLE\x20->\x20DB_TABLE,\x20DB_TABLE\x20->\x20METADATA,\x20and\x20METADATA\x20->\x20METADATA.'];a62_0x5d71=function(){return _0x40cf5f;};return a62_0x5d71();}function toDatasetInfo(_0x30e595,_0x397637){const _0x580d0c=a62_0x23848f,_0x1ba45e=_0x30e595['dataset']??{},_0x1b6f6f=_0x30e595[_0x580d0c(0x160)]??_0x397637?.['dbtableConfig']??{},_0x59fc3d=datasetCodeOf(_0x30e595)||datasetCodeOf(_0x397637??{});return{'code':_0x59fc3d,'name':_0x30e595['name']??_0x1ba45e[_0x580d0c(0x1a4)]??_0x397637?.[_0x580d0c(0x171)],'source':sourceOf(_0x30e595[_0x580d0c(0x16e)]??_0x1ba45e[_0x580d0c(0x17d)]??_0x397637?.[_0x580d0c(0x16e)],_0x1b6f6f[_0x580d0c(0x190)]),'table':_0x1b6f6f[_0x580d0c(0x190)]??_0x1ba45e[_0x580d0c(0x190)],'doVersion':_0x30e595['doVersion']??_0x1ba45e[_0x580d0c(0x18a)]??_0x397637?.[_0x580d0c(0x18a)],'detail':_0x30e595};}function datasetCodeOf(_0x22ae56){const _0x39c55d=a62_0x23848f;return trim(_0x22ae56[_0x39c55d(0x184)]??_0x22ae56['code']??_0x22ae56[_0x39c55d(0x182)]);}function sourceOf(_0x3fe1e8,_0x18e5e5){const _0x36d2c3=a62_0x23848f,_0x2e8212=trim(_0x3fe1e8)[_0x36d2c3(0x195)]();if(_0x2e8212===_0x36d2c3(0x183)||_0x2e8212===_0x36d2c3(0x198))return _0x2e8212;return _0x18e5e5?_0x36d2c3(0x183):_0x36d2c3(0x198);}function readSourceFilter(_0x99793d,_0x2ae9ee){const _0x14d7dc=a62_0x23848f,_0xb209de=trim(_0x99793d)['toUpperCase']();if(!_0xb209de)return undefined;if(_0xb209de===_0x14d7dc(0x183)||_0xb209de===_0x14d7dc(0x198))return _0xb209de;throw CliErrors[_0x14d7dc(0x172)](_0x14d7dc(0x17e)+_0x2ae9ee+':\x20'+_0x99793d,_0x14d7dc(0x168));}function rejectUnsupportedDirection(_0x199b6c,_0x591607){const _0x24fff0=a62_0x23848f;if(_0x199b6c===_0x24fff0(0x198)&&_0x591607===_0x24fff0(0x183))throw CliErrors[_0x24fff0(0x172)](_0x24fff0(0x196));}function a62_0x5172(_0x243557,_0x198056){_0x243557=_0x243557-0x15c;const _0x5d7153=a62_0x5d71();let _0x517241=_0x5d7153[_0x243557];return _0x517241;}function normalizeDoVersion(_0x4f58d2){const _0x232fb0=a62_0x23848f;return trim(_0x4f58d2)[_0x232fb0(0x197)]();}function normalizeCardinality(_0xc5837b){const _0x355164=a62_0x23848f,_0x1d1f70=trim(_0xc5837b)[_0x355164(0x195)]();if(!_0x1d1f70)return undefined;return[_0x355164(0x15e),_0x355164(0x189),_0x355164(0x167),_0x355164(0x15c)]['includes'](_0x1d1f70)?_0x1d1f70:undefined;}function readRelationLabelField(_0x5ebdc8){const _0x3a9441=a62_0x23848f;return trim(_0x5ebdc8[_0x3a9441(0x199)]??_0x5ebdc8[_0x3a9441(0x174)]??_0x5ebdc8['labelField']);}function trim(_0x34db65){const _0x4c41c1=a62_0x23848f;return typeof _0x34db65===_0x4c41c1(0x162)?_0x34db65[_0x4c41c1(0x193)]():'';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a63_0x40cc91=a63_0x24f8;(function(_0x558946,_0x1f2b7c){const _0x4d6813=a63_0x24f8,_0x2ac9be=_0x558946();while(!![]){try{const _0x540602=parseInt(_0x4d6813(0xd4))/0x1+parseInt(_0x4d6813(0xd0))/0x2+parseInt(_0x4d6813(0xd1))/0x3*(-parseInt(_0x4d6813(0xd8))/0x4)+parseInt(_0x4d6813(0xf0))/0x5*(parseInt(_0x4d6813(0xd9))/0x6)+parseInt(_0x4d6813(0xdd))/0x7*(-parseInt(_0x4d6813(0xce))/0x8)+-parseInt(_0x4d6813(0xef))/0x9+-parseInt(_0x4d6813(0xd6))/0xa;if(_0x540602===_0x1f2b7c)break;else _0x2ac9be['push'](_0x2ac9be['shift']());}catch(_0x1eab62){_0x2ac9be['push'](_0x2ac9be['shift']());}}}(a63_0x5c19,0x6a1f2));import{getDatasetDetail,updateDrivenData}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';export async function buildDatasetRenameResult({input:_0x432a02,dryRun:_0x6f96e1}){const _0xaeec94=a63_0x24f8;validateInput(_0x432a02);const _0x2ea2cc=await getDatasetDetail(_0x432a02['code']),_0x5ab451=resolveCurrentName(_0x2ea2cc);if(_0x5ab451!==_0x432a02[_0xaeec94(0xe9)])throw CliErrors[_0xaeec94(0xea)](_0xaeec94(0xe5),_0xaeec94(0xed)+JSON['stringify'](_0x432a02[_0xaeec94(0xe9)])+_0xaeec94(0xdc)+JSON[_0xaeec94(0xcc)](_0x5ab451));const _0x3e1ecc=buildRenameRequest(_0x2ea2cc,_0x432a02),_0x5ccc5c=_0x5ab451!==_0x432a02[_0xaeec94(0xe6)];let _0x129aab;return _0x5ccc5c&&!_0x6f96e1&&(_0x129aab=await updateDrivenData(_0x3e1ecc)),{'ok':!![],'data':{'protocol':_0xaeec94(0xd3),'dataset':{'id':_0x3e1ecc[_0xaeec94(0xf7)],'code':_0x3e1ecc[_0xaeec94(0xf5)]},'dryRun':_0x6f96e1,'changed':_0x5ccc5c,'before':{'name':_0x5ab451},'after':{'name':_0x432a02[_0xaeec94(0xe6)]},'request':_0x3e1ecc,'submitted':_0x5ccc5c&&!_0x6f96e1,..._0x129aab!==undefined?{'version':_0x129aab}:{}},'message':_0x5ccc5c?_0x6f96e1?_0xaeec94(0xe2)+_0x3e1ecc[_0xaeec94(0xf5)]+'\x20would\x20be\x20renamed\x20to\x20'+_0x432a02['name']:_0xaeec94(0xdb)+_0x3e1ecc['modelCode']+_0xaeec94(0xca)+_0x432a02[_0xaeec94(0xe6)]:_0xaeec94(0xe4)+_0x3e1ecc[_0xaeec94(0xf5)]};}export const datasetRename={'service':a63_0x40cc91(0xe8),'command':'rename','description':a63_0x40cc91(0xeb),'risk':'write','flags':[CODE_FLAG,{'name':a63_0x40cc91(0xe6),'type':a63_0x40cc91(0xe7),'required':!![],'description':a63_0x40cc91(0xf6)},{'name':a63_0x40cc91(0xde),'type':a63_0x40cc91(0xe7),'required':!![],'description':a63_0x40cc91(0xda)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x182117){validateInput(readDatasetRenameInput(_0x182117));},async 'dryRun'(_0x1fc399){const _0x3eec94=a63_0x40cc91,_0x593ad3=await buildDatasetRenameResult({'input':readDatasetRenameInput(_0x1fc399),'dryRun':!![]});return{'method':_0x3eec94(0xd7),'url':_0x3eec94(0xf1),'body':_0x593ad3[_0x3eec94(0xe0)]['request'],'description':_0x593ad3[_0x3eec94(0xee)]};},async 'execute'(_0x2a5c9f){return buildDatasetRenameResult({'input':readDatasetRenameInput(_0x2a5c9f),'dryRun':![]});}};function readDatasetRenameInput(_0x49020e){const _0x34abc6=a63_0x40cc91;return{'code':trim(_0x49020e[_0x34abc6(0xcf)]('code')),'name':trim(_0x49020e[_0x34abc6(0xcf)]('name')),'expectName':trim(_0x49020e['str'](_0x34abc6(0xde)))};}function validateInput(_0x1f5407){const _0x15acdc=a63_0x40cc91;if(!_0x1f5407[_0x15acdc(0xdf)])throw CliErrors['validation'](_0x15acdc(0xec));if(!_0x1f5407['name'])throw CliErrors['validation'](_0x15acdc(0xcd));if(!_0x1f5407['expectName'])throw CliErrors[_0x15acdc(0xea)](_0x15acdc(0xf4));}function a63_0x24f8(_0x539c9b,_0x256280){_0x539c9b=_0x539c9b-0xca;const _0x5c199b=a63_0x5c19();let _0x24f857=_0x5c199b[_0x539c9b];return _0x24f857;}function a63_0x5c19(){const _0x3beb42=['string','dataset','expectName','validation','Rename\x20dataset\x20display\x20name\x20safely','--code\x20is\x20required','Expected\x20','message','2646432xenlnC','5NdGcHN','/smartapi/dataset/update-driven-data','object','trim','--expect-name\x20is\x20required','modelCode','New\x20dataset\x20display\x20name','modelId','\x20to\x20','datasetId','stringify','--name\x20is\x20required','267880kibNQi','str','1302622iduaJt','6ZndwiI','datasetName','dataset-rename.v1','494067IGhuDs','Dataset\x20detail\x20does\x20not\x20contain\x20dataset\x20code','4583200IopvJf','POST','209744iwEdDk','1883766HeeVkg','Expected\x20current\x20dataset\x20display\x20name;\x20mismatch\x20aborts\x20without\x20writing','Renamed\x20dataset\x20',',\x20actual\x20','35FRXpDQ','expect-name','code','data','Dataset\x20detail\x20does\x20not\x20contain\x20dataset\x20id','Dry-run:\x20dataset\x20','isArray','No\x20changes\x20for\x20dataset\x20','Expectation\x20mismatch\x20at\x20dataset.name','name'];a63_0x5c19=function(){return _0x3beb42;};return a63_0x5c19();}function resolveCurrentName(_0x2afbd9){const _0x17e70e=a63_0x40cc91;return String(_0x2afbd9[_0x17e70e(0xe8)]?.[_0x17e70e(0xd2)]??_0x2afbd9['name']??'')[_0x17e70e(0xf3)]();}function buildRenameRequest(_0x8623eb,_0xb5a336){const _0x10e171=a63_0x40cc91,_0x2b1872=isPlainObject(_0x8623eb['dataset'])?_0x8623eb[_0x10e171(0xe8)]:{},_0x16e2c7=_0x8623eb[_0x10e171(0xf7)]??_0x8623eb['id']??_0x2b1872[_0x10e171(0xcb)];if(_0x16e2c7===undefined||_0x16e2c7===null||_0x16e2c7==='')throw CliErrors[_0x10e171(0xea)](_0x10e171(0xe1));const _0x3c8ad4=String(_0x8623eb[_0x10e171(0xf5)]??_0x8623eb['code']??_0x2b1872['datasetCode']??_0xb5a336[_0x10e171(0xdf)])[_0x10e171(0xf3)]();if(!_0x3c8ad4)throw CliErrors['validation'](_0x10e171(0xd5));return{'modelId':_0x16e2c7,'modelCode':_0x3c8ad4,'name':_0xb5a336[_0x10e171(0xe6)],'dataset':{'datasetId':_0x16e2c7,'datasetCode':_0x3c8ad4,'datasetName':_0xb5a336['name']}};}function isPlainObject(_0x541065){const _0x15770f=a63_0x40cc91;return Boolean(_0x541065)&&typeof _0x541065===_0x15770f(0xf2)&&!Array[_0x15770f(0xe3)](_0x541065);}function trim(_0x18d0f4){const _0x1b82a2=a63_0x40cc91;return String(_0x18d0f4||'')[_0x1b82a2(0xf3)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a64_0x429d(){const _0x2fc8e3=['7194270SzBNgE','2OyWZzd','3861531oegCtq','Analysis\x20plan\x20/\x20trace\x20id\x20(optional\x20—\x20defaults\x20to\x20latest\x20trace\x20from\x20db\x20list/detail)','6308244BWSOqY','Cancel\x20requested\x20for\x20plan\x20','No\x20latestAnalysisTraceId\x20on\x20this\x20link.\x20Pass\x20--plan\x20<traceId>\x20from\x20db\x20list/detail.','51450003dBHyiK','160alLaTU','num','1599826jbhSfH','Cancel\x20a\x20running\x20schema\x20analysis.\x20Omit\x20--plan\x20to\x20use\x20latestAnalysisTraceId\x20from\x20the\x20link','latestAnalysisTraceId','string','527905ygLXYd','validation','plan','analyze-cancel','str','4408385ymMptI','write'];a64_0x429d=function(){return _0x2fc8e3;};return a64_0x429d();}const a64_0x52656c=a64_0xfb95;(function(_0x253f42,_0x26d094){const _0x13e9f2=a64_0xfb95,_0x576863=_0x253f42();while(!![]){try{const _0xb5e7b1=-parseInt(_0x13e9f2(0x13b))/0x1*(parseInt(_0x13e9f2(0x147))/0x2)+-parseInt(_0x13e9f2(0x148))/0x3+parseInt(_0x13e9f2(0x14a))/0x4+-parseInt(_0x13e9f2(0x144))/0x5+-parseInt(_0x13e9f2(0x146))/0x6+parseInt(_0x13e9f2(0x13f))/0x7*(-parseInt(_0x13e9f2(0x14e))/0x8)+parseInt(_0x13e9f2(0x14d))/0x9;if(_0xb5e7b1===_0x26d094)break;else _0x576863['push'](_0x576863['shift']());}catch(_0x583b4c){_0x576863['push'](_0x576863['shift']());}}}(a64_0x429d,0xc7a27));function a64_0xfb95(_0x34a0e2,_0x2de89a){_0x34a0e2=_0x34a0e2-0x13b;const _0x429da0=a64_0x429d();let _0xfb95fd=_0x429da0[_0x34a0e2];return _0xfb95fd;}import{cancelDbAnalysis,getDbLinkInfo}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbAnalyzeCancel={'service':'db','command':a64_0x52656c(0x142),'description':a64_0x52656c(0x13c),'risk':a64_0x52656c(0x145),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a64_0x52656c(0x141),'type':a64_0x52656c(0x13e),'description':a64_0x52656c(0x149)}],async 'execute'(_0x3dbeae){const _0x1ae849=a64_0x52656c,_0x47a90a=_0x3dbeae[_0x1ae849(0x14f)]('id');let _0x418f9e=_0x3dbeae[_0x1ae849(0x143)](_0x1ae849(0x141))||undefined;if(!_0x418f9e){const _0xd54112=await getDbLinkInfo(_0x47a90a);_0x418f9e=_0xd54112[_0x1ae849(0x13d)]??undefined;if(!_0x418f9e)throw CliErrors[_0x1ae849(0x140)](_0x1ae849(0x14c),'Analysis\x20may\x20already\x20be\x20finished\x20or\x20never\x20started.');}return await cancelDbAnalysis(_0x418f9e),{'ok':!![],'data':{'dbLinkId':_0x47a90a,'planId':_0x418f9e},'message':_0x1ae849(0x14b)+_0x418f9e};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a65_0x2fb823=a65_0x3016;function a65_0x3016(_0x5b8ea6,_0x14410a){_0x5b8ea6=_0x5b8ea6-0x6d;const _0x54057d=a65_0x5405();let _0x3016fc=_0x54057d[_0x5b8ea6];return _0x3016fc;}(function(_0x524146,_0x53116b){const _0x47bb5c=a65_0x3016,_0x4ce92e=_0x524146();while(!![]){try{const _0x570db0=-parseInt(_0x47bb5c(0x78))/0x1+-parseInt(_0x47bb5c(0x7f))/0x2+parseInt(_0x47bb5c(0x76))/0x3+-parseInt(_0x47bb5c(0x7d))/0x4+-parseInt(_0x47bb5c(0x7c))/0x5*(parseInt(_0x47bb5c(0x73))/0x6)+parseInt(_0x47bb5c(0x7b))/0x7+parseInt(_0x47bb5c(0x7a))/0x8;if(_0x570db0===_0x53116b)break;else _0x4ce92e['push'](_0x4ce92e['shift']());}catch(_0x269af3){_0x4ce92e['push'](_0x4ce92e['shift']());}}}(a65_0x5405,0xe35c0));import{startDbAnalysis}from'../../core/api-client.js';function a65_0x5405(){const _0x187be9=['trim','2791036SwSYTE','Start\x20schema\x20analysis\x20(full\x20or\x20incremental\x20table\x20list).\x20Returns\x20planId\x20for\x20analyze-status','filter','str','tables','string','Started\x20analysis\x20for\x20db\x20link\x20','analyze-start','23898EdWgSm','num','map','2191860WjzZhJ','appCode','877381gXDStl','write','39480328kEndzn','2909347TxjHLP','2225bvrPjf','4418736TZntrd'];a65_0x5405=function(){return _0x187be9;};return a65_0x5405();}import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks}from'../../commands/db/shared.js';export const dbAnalyzeStart={'service':'db','command':a65_0x2fb823(0x72),'description':a65_0x2fb823(0x80),'risk':a65_0x2fb823(0x79),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a65_0x2fb823(0x6f),'type':a65_0x2fb823(0x70),'description':'Comma-separated\x20table\x20names\x20for\x20incremental\x20analysis\x20(omit\x20for\x20full\x20analysis)'}],async 'execute'(_0x560c81){const _0x2c936c=a65_0x2fb823,_0x3715bb=_0x560c81[_0x2c936c(0x74)]('id'),_0x7ed69f=_0x560c81[_0x2c936c(0x6e)](_0x2c936c(0x6f)),_0x1cc436=_0x7ed69f?_0x7ed69f['split'](',')[_0x2c936c(0x75)](_0x1f3993=>_0x1f3993[_0x2c936c(0x7e)]())[_0x2c936c(0x6d)](Boolean):undefined,_0x429e83=await startDbAnalysis(_0x3715bb,_0x1cc436),_0x3e8740=buildDbPageLinks(_0x560c81[_0x2c936c(0x77)],_0x3715bb);return{'ok':!![],'data':{'dbLinkId':_0x3715bb,'planId':_0x429e83,'tableNames':_0x1cc436??[],..._0x3e8740?{'links':_0x3e8740}:{}},'message':_0x2c936c(0x71)+_0x3715bb};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a66_0x365bed=a66_0x2a67;(function(_0x3d2fbc,_0x44de4f){const _0x2a1d4c=a66_0x2a67,_0x36252d=_0x3d2fbc();while(!![]){try{const _0x4910e3=parseInt(_0x2a1d4c(0x196))/0x1*(-parseInt(_0x2a1d4c(0x195))/0x2)+parseInt(_0x2a1d4c(0x18e))/0x3*(parseInt(_0x2a1d4c(0x197))/0x4)+parseInt(_0x2a1d4c(0x188))/0x5*(parseInt(_0x2a1d4c(0x19b))/0x6)+-parseInt(_0x2a1d4c(0x186))/0x7*(-parseInt(_0x2a1d4c(0x199))/0x8)+-parseInt(_0x2a1d4c(0x194))/0x9*(-parseInt(_0x2a1d4c(0x19a))/0xa)+-parseInt(_0x2a1d4c(0x18c))/0xb+parseInt(_0x2a1d4c(0x189))/0xc;if(_0x4910e3===_0x44de4f)break;else _0x36252d['push'](_0x36252d['shift']());}catch(_0x2408dc){_0x36252d['push'](_0x36252d['shift']());}}}(a66_0x29c2,0x7acbb));import{getDbAnalysisStatus}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a66_0x2a67(_0xf2a1bd,_0x21d739){_0xf2a1bd=_0xf2a1bd-0x186;const _0x29c2ef=a66_0x29c2();let _0x2a67b2=_0x29c2ef[_0xf2a1bd];return _0x2a67b2;}import{buildDbPageLinks}from'../../commands/db/shared.js';export const dbAnalyzeStatus={'service':'db','command':a66_0x365bed(0x18b),'description':a66_0x365bed(0x18d),'risk':a66_0x365bed(0x18f),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a66_0x365bed(0x198),'type':a66_0x365bed(0x18a),'required':!![],'description':a66_0x365bed(0x187)}],async 'execute'(_0x63eb61){const _0x6c7783=a66_0x365bed,_0x51b787=_0x63eb61[_0x6c7783(0x192)]('id'),_0x17fb20=_0x63eb61[_0x6c7783(0x191)](_0x6c7783(0x198)),_0x3c35d7=await getDbAnalysisStatus(_0x17fb20),_0x4c7f4b=buildDbPageLinks(_0x63eb61[_0x6c7783(0x193)],_0x51b787);return{'ok':!![],'data':{'dbLinkId':_0x51b787,'planId':_0x17fb20,'status':_0x3c35d7,..._0x4c7f4b?{'links':_0x4c7f4b}:{}},'message':_0x6c7783(0x190)+_0x17fb20};}};function a66_0x29c2(){const _0x29e9c8=['str','num','appCode','1362249rTPFld','4aRnLHX','467855tEfogD','255828zuySjJ','plan','32WSYKcb','20arcyMz','957840yPKgyS','429415emOxfb','Analysis\x20plan\x20/\x20trace\x20id\x20(from\x20analyze-start\x20or\x20db\x20list\x20latestAnalysisTraceId)','5cMhMLa','9343872BeFvZW','string','analyze-status','2635468RikoMZ','Fetch\x20schema\x20analysis\x20job\x20status\x20by\x20plan\x20/\x20trace\x20id','9ZOKTgW','read','Analysis\x20status\x20for\x20'];a66_0x29c2=function(){return _0x29e9c8;};return a66_0x29c2();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a67_0xa7b90=a67_0x2e2a;(function(_0x6746f0,_0x479146){const _0x21b0e2=a67_0x2e2a,_0x15d0be=_0x6746f0();while(!![]){try{const _0x4d7662=-parseInt(_0x21b0e2(0x126))/0x1*(-parseInt(_0x21b0e2(0x12e))/0x2)+-parseInt(_0x21b0e2(0x11a))/0x3*(parseInt(_0x21b0e2(0x131))/0x4)+parseInt(_0x21b0e2(0x117))/0x5*(parseInt(_0x21b0e2(0x137))/0x6)+-parseInt(_0x21b0e2(0x119))/0x7+-parseInt(_0x21b0e2(0x134))/0x8+-parseInt(_0x21b0e2(0x114))/0x9*(-parseInt(_0x21b0e2(0x12f))/0xa)+parseInt(_0x21b0e2(0x11b))/0xb;if(_0x4d7662===_0x479146)break;else _0x15d0be['push'](_0x15d0be['shift']());}catch(_0x630147){_0x15d0be['push'](_0x15d0be['shift']());}}}(a67_0x1457,0xe275c));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';function a67_0x2e2a(_0x134e85,_0x2ea963){_0x134e85=_0x134e85-0x10f;const _0x145798=a67_0x1457();let _0x2e2a7=_0x145798[_0x134e85];return _0x2e2a7;}import{buildDbPageLinks,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';function a67_0x1457(){const _0x794b77=['dbdesc','username','14480896MNFlAr',';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning','Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22','392298TnYUND','password','string','dbversion','Host\x20and\x20port:\x20host:port','Extra\x20JDBC-style\x20connection\x20parameters\x20string','dburl','Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server','dbname','boolean','write','[redacted]','18CgwkVS','\x20and\x20started\x20analysis','Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id','135cYAGsh','create','12935426auOLAu','10173YclrMM','14018224eKGgej','Database\x20password','bool','After\x20create,\x20start\x20schema\x20analysis','dbtype','dbparam','message','Database\x20username','8.0','POST','Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','1pAmdfh','databasePage','No\x20follow-up\x20analysis','autostart','appCode','str','trim','Created\x20db\x20link\x20','2679368hUNlza','6575290ldrwSS','Create\x20dblink','1308jUPfEJ'];a67_0x1457=function(){return _0x794b77;};return a67_0x1457();}export const dbCreate={'service':'db','command':a67_0xa7b90(0x118),'description':a67_0xa7b90(0x125),'risk':a67_0xa7b90(0x112),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':a67_0xa7b90(0x139),'required':!![],'description':a67_0xa7b90(0x10f)},DB_TYPE_FLAG,{'name':a67_0xa7b90(0x13a),'type':a67_0xa7b90(0x139),'description':'Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','default':a67_0xa7b90(0x123)},{'name':a67_0xa7b90(0x13d),'type':'string','required':!![],'description':a67_0xa7b90(0x13b)},{'name':a67_0xa7b90(0x133),'type':a67_0xa7b90(0x139),'required':!![],'description':a67_0xa7b90(0x122)},{'name':a67_0xa7b90(0x138),'type':a67_0xa7b90(0x139),'required':!![],'description':a67_0xa7b90(0x11c)},{'name':a67_0xa7b90(0x120),'type':a67_0xa7b90(0x139),'description':a67_0xa7b90(0x13c)},{'name':a67_0xa7b90(0x132),'type':a67_0xa7b90(0x139),'description':'Human-readable\x20description'},{'name':a67_0xa7b90(0x129),'type':a67_0xa7b90(0x111),'description':a67_0xa7b90(0x11e),'default':![]}],async 'validate'(_0x31543b){const _0x50ddd2=a67_0xa7b90,_0x603534=_0x31543b[_0x50ddd2(0x12b)](_0x50ddd2(0x13d))[_0x50ddd2(0x12c)]();if(!validateDbUrl(_0x603534))throw CliErrors['validation'](_0x50ddd2(0x136)+_0x603534+'\x22','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.');},async 'dryRun'(_0x395f2f){const _0x3a8ac0=a67_0xa7b90,_0x4dd6d3={'appCode':_0x395f2f['appCode'],'dbName':_0x395f2f[_0x3a8ac0(0x12b)](_0x3a8ac0(0x110)),'dbType':_0x395f2f['str'](_0x3a8ac0(0x11f)),'dbVersion':_0x395f2f[_0x3a8ac0(0x12b)](_0x3a8ac0(0x13a))||_0x3a8ac0(0x123),'dbUrl':_0x395f2f[_0x3a8ac0(0x12b)](_0x3a8ac0(0x13d))['trim'](),'username':_0x395f2f[_0x3a8ac0(0x12b)](_0x3a8ac0(0x133)),'password':_0x3a8ac0(0x113),..._0x395f2f['str'](_0x3a8ac0(0x120))?{'dbParam':_0x395f2f[_0x3a8ac0(0x12b)](_0x3a8ac0(0x120))}:{},..._0x395f2f[_0x3a8ac0(0x12b)]('dbdesc')?{'dbDesc':_0x395f2f[_0x3a8ac0(0x12b)](_0x3a8ac0(0x132))}:{}};return{'method':_0x3a8ac0(0x124),'url':'/smartapi/dblink/create','body':_0x4dd6d3,'description':[_0x3a8ac0(0x130),_0x395f2f[_0x3a8ac0(0x11d)](_0x3a8ac0(0x129))?_0x3a8ac0(0x116):_0x3a8ac0(0x128)]['join']('\x0a')};},async 'execute'(_0x2f700e){const _0x13ee15=a67_0xa7b90,_0x18b94c={'appCode':_0x2f700e[_0x13ee15(0x12a)],'dbName':_0x2f700e['str']('dbname'),'dbType':_0x2f700e[_0x13ee15(0x12b)]('dbtype'),'dbVersion':_0x2f700e[_0x13ee15(0x12b)](_0x13ee15(0x13a))||_0x13ee15(0x123),'dbUrl':_0x2f700e['str'](_0x13ee15(0x13d))['trim'](),'username':_0x2f700e['str']('username'),'password':_0x2f700e[_0x13ee15(0x12b)](_0x13ee15(0x138)),..._0x2f700e['str'](_0x13ee15(0x120))?{'dbParam':_0x2f700e[_0x13ee15(0x12b)](_0x13ee15(0x120))}:{},..._0x2f700e[_0x13ee15(0x12b)](_0x13ee15(0x132))?{'dbDesc':_0x2f700e['str'](_0x13ee15(0x132))}:{}},{id:_0xead489,entity:_0x145923}=normalizeEntityWithIdResponse(await createDbLink(_0x18b94c));if(!_0xead489)return{'ok':![],'message':'Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','data':sanitizeDbLinkForOutput(_0x145923)};let _0x1f1cdf,_0x2328fd;if(_0x2f700e[_0x13ee15(0x11d)](_0x13ee15(0x129)))try{_0x1f1cdf=await startDbAnalysis(_0xead489);}catch(_0xdc326c){_0x2328fd=_0xdc326c instanceof Error?_0xdc326c[_0x13ee15(0x121)]:String(_0xdc326c);}const _0x5a938c=buildDbPageLinks(_0x2f700e[_0x13ee15(0x12a)],_0xead489),_0x3db31c={'connection':sanitizeDbLinkForOutput(_0x145923),..._0x5a938c?{'links':{'databasePage':_0x5a938c[_0x13ee15(0x127)]}}:{},..._0x1f1cdf?{'analysisPlanId':_0x1f1cdf}:{},..._0x2328fd?{'analysisStartWarning':_0x2328fd}:{}};let _0x57bfdd;return _0x2f700e[_0x13ee15(0x11d)](_0x13ee15(0x129))?_0x2328fd?_0x57bfdd=_0x13ee15(0x12d)+_0xead489+_0x13ee15(0x135):_0x57bfdd=_0x13ee15(0x12d)+_0xead489+_0x13ee15(0x115):_0x57bfdd='Created\x20db\x20link\x20'+_0xead489,{'ok':!![],'data':_0x3db31c,'message':_0x57bfdd};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a68_0x3f0850=a68_0x30ff;function a68_0x30ff(_0x327ca1,_0x143eff){_0x327ca1=_0x327ca1-0x1cd;const _0x418bcb=a68_0x418b();let _0x30ffcf=_0x418bcb[_0x327ca1];return _0x30ffcf;}(function(_0x3f5633,_0x440dbe){const _0x1091ef=a68_0x30ff,_0x2a9942=_0x3f5633();while(!![]){try{const _0x41bd65=parseInt(_0x1091ef(0x1d1))/0x1*(parseInt(_0x1091ef(0x1da))/0x2)+-parseInt(_0x1091ef(0x1d9))/0x3+parseInt(_0x1091ef(0x1cd))/0x4+-parseInt(_0x1091ef(0x1d3))/0x5+-parseInt(_0x1091ef(0x1d4))/0x6+-parseInt(_0x1091ef(0x1d6))/0x7+parseInt(_0x1091ef(0x1ce))/0x8*(parseInt(_0x1091ef(0x1d2))/0x9);if(_0x41bd65===_0x440dbe)break;else _0x2a9942['push'](_0x2a9942['shift']());}catch(_0x4dd24c){_0x2a9942['push'](_0x2a9942['shift']());}}}(a68_0x418b,0x75a14));function a68_0x418b(){const _0x3e80bc=['1222VVUrVI','2979960jdsIrb','15544opjrVC','Delete\x20a\x20database\x20connection\x20(dblink)\x20permanently','delete','989xlAoja','10629CeavfR','4749630MIbPqf','4478046zdouEo','num','5217800ilQSwI','Deleted\x20db\x20link\x20','high-risk-write','2161419CxzavH'];a68_0x418b=function(){return _0x3e80bc;};return a68_0x418b();}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':a68_0x3f0850(0x1d0),'description':a68_0x3f0850(0x1cf),'risk':a68_0x3f0850(0x1d8),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x3f389b){const _0x54d167=a68_0x3f0850,_0x26ec67=_0x3f389b[_0x54d167(0x1d5)]('id');return await deleteDbLink(_0x26ec67),{'ok':!![],'data':{'id':_0x26ec67,'deleted':!![]},'message':_0x54d167(0x1d7)+_0x26ec67};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a69_0x1051a8=a69_0x1d53;function a69_0x3cd7(){const _0xda413f=['87432HLRnNX','3193660tfEOub','791169jxiUVV','dbName','161lBeqNL','9HQsFGN','1269745PNjhqX','877rFzOeD','4YKtMup','1408200StDfJI','1581272QPSCOe','506LFCZVz','num','22mUwrJm','read'];a69_0x3cd7=function(){return _0xda413f;};return a69_0x3cd7();}(function(_0x5e0e1a,_0x201191){const _0x4816ca=a69_0x1d53,_0x223528=_0x5e0e1a();while(!![]){try{const _0x1e0a90=parseInt(_0x4816ca(0x178))/0x1*(parseInt(_0x4816ca(0x17c))/0x2)+parseInt(_0x4816ca(0x182))/0x3+-parseInt(_0x4816ca(0x179))/0x4*(parseInt(_0x4816ca(0x177))/0x5)+-parseInt(_0x4816ca(0x180))/0x6*(parseInt(_0x4816ca(0x184))/0x7)+parseInt(_0x4816ca(0x17b))/0x8+-parseInt(_0x4816ca(0x185))/0x9*(-parseInt(_0x4816ca(0x181))/0xa)+parseInt(_0x4816ca(0x17e))/0xb*(-parseInt(_0x4816ca(0x17a))/0xc);if(_0x1e0a90===_0x201191)break;else _0x223528['push'](_0x223528['shift']());}catch(_0x300c32){_0x223528['push'](_0x223528['shift']());}}}(a69_0x3cd7,0x2ba88));import{getDbLinkInfo}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a69_0x1d53(_0x1fd86a,_0x3f1be6){_0x1fd86a=_0x1fd86a-0x177;const _0x3cd7ed=a69_0x3cd7();let _0x1d5380=_0x3cd7ed[_0x1fd86a];return _0x1d5380;}import{sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbDetail={'service':'db','command':'detail','description':'Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','risk':a69_0x1051a8(0x17f),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x2b7f01){const _0x352a7c=a69_0x1051a8,_0x524a7d=_0x2b7f01[_0x352a7c(0x17d)]('id'),_0x113dee=await getDbLinkInfo(_0x524a7d);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x113dee),'message':'db\x20link\x20'+_0x524a7d+':\x20'+_0x113dee[_0x352a7c(0x183)]};}};
|
package/lib/commands/db/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a70_0x2249(){const _0x1173c3=['559580ehjvpV','9FdJgMW','pagesize','551082ukaIIT','diff','page','length','196228QhTBak','num','2239570LgnKlk','367849SOIkqo','Page\x20index\x20(1-based)','number','str','table','32455wRxetY','Paged\x20diff\x20between\x20live\x20database\x20schema\x20and\x20last\x20analyzed\x20snapshot\x20(new\x20/\x20deleted\x20/\x20modified\x20tables)','Page\x20size','851808RgJADl','24bnDfcB','150DsBjyl','string'];a70_0x2249=function(){return _0x1173c3;};return a70_0x2249();}const a70_0x2f316a=a70_0x574f;(function(_0x1eb66c,_0x4e937b){const _0x4dbb5b=a70_0x574f,_0x490667=_0x1eb66c();while(!![]){try{const _0x7b80e6=parseInt(_0x4dbb5b(0x1ea))/0x1+parseInt(_0x4dbb5b(0x1dc))/0x2+parseInt(_0x4dbb5b(0x1e3))/0x3+-parseInt(_0x4dbb5b(0x1e7))/0x4+-parseInt(_0x4dbb5b(0x1d9))/0x5*(-parseInt(_0x4dbb5b(0x1de))/0x6)+-parseInt(_0x4dbb5b(0x1e0))/0x7*(parseInt(_0x4dbb5b(0x1dd))/0x8)+parseInt(_0x4dbb5b(0x1e1))/0x9*(-parseInt(_0x4dbb5b(0x1e9))/0xa);if(_0x7b80e6===_0x4e937b)break;else _0x490667['push'](_0x490667['shift']());}catch(_0x5c6981){_0x490667['push'](_0x490667['shift']());}}}(a70_0x2249,0x990c8));function a70_0x574f(_0x3bc94c,_0x428916){_0x3bc94c=_0x3bc94c-0x1d7;const _0x224989=a70_0x2249();let _0x574fec=_0x224989[_0x3bc94c];return _0x574fec;}import{getDbTableDiff}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbDiff={'service':'db','command':a70_0x2f316a(0x1e4),'description':a70_0x2f316a(0x1da),'risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a70_0x2f316a(0x1d8),'type':a70_0x2f316a(0x1df),'description':'Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)'},{'name':'page','type':a70_0x2f316a(0x1ec),'description':a70_0x2f316a(0x1eb),'default':0x1},{'name':a70_0x2f316a(0x1e2),'type':a70_0x2f316a(0x1ec),'description':a70_0x2f316a(0x1db),'default':0x14}],async 'execute'(_0xed1b8c){const _0x152ece=a70_0x2f316a,_0x149c56=_0xed1b8c['num']('id'),_0x875b09=_0xed1b8c[_0x152ece(0x1e8)](_0x152ece(0x1e5),0x1)||0x1,_0x5d5b94=_0xed1b8c[_0x152ece(0x1e8)](_0x152ece(0x1e2),0x14)||0x14,_0xe946b6=_0xed1b8c[_0x152ece(0x1d7)](_0x152ece(0x1d8))||undefined,{totalCount:_0x5a7d59,tableList:_0x3ddabe}=await getDbTableDiff(_0xed1b8c['appCode'],_0x149c56,{'pageIndex':_0x875b09,'pageSize':_0x5d5b94,'tableName':_0xe946b6});return{'ok':!![],'data':{'dbLinkId':_0x149c56,'page':_0x875b09,'pageSize':_0x5d5b94,'totalCount':_0x5a7d59,'tableList':_0x3ddabe},'message':_0x3ddabe[_0x152ece(0x1e6)]+'\x20row(s),\x20total\x20'+_0x5a7d59+'\x20(db\x20link\x20'+_0x149c56+')'};}};
|
package/lib/commands/db/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1daec2,_0x19cd61){const _0xf12457=a71_0x5653,_0x1d93f8=_0x1daec2();while(!![]){try{const _0x575fd4=-parseInt(_0xf12457(0x12d))/0x1*(parseInt(_0xf12457(0x132))/0x2)+parseInt(_0xf12457(0x130))/0x3+parseInt(_0xf12457(0x134))/0x4+-parseInt(_0xf12457(0x12f))/0x5*(parseInt(_0xf12457(0x136))/0x6)+-parseInt(_0xf12457(0x12c))/0x7*(-parseInt(_0xf12457(0x12e))/0x8)+parseInt(_0xf12457(0x131))/0x9*(-parseInt(_0xf12457(0x133))/0xa)+-parseInt(_0xf12457(0x135))/0xb;if(_0x575fd4===_0x19cd61)break;else _0x1d93f8['push'](_0x1d93f8['shift']());}catch(_0x51346a){_0x1d93f8['push'](_0x1d93f8['shift']());}}}(a71_0x5ac2,0x3d80f));function a71_0x5ac2(){const _0x15ce06=['80630xYqocc','965164rcPaDJ','543015QDgCdh','90996XvHmhf','7YQyWaa','1doEUSR','3521248Dmgqvz','65rhjUOA','1485792qpfxhe','495NSwuad','469608cQGMUw'];a71_0x5ac2=function(){return _0x15ce06;};return a71_0x5ac2();}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';import{dbTest}from'../../commands/db/test.js';import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';function a71_0x5653(_0x10e1cc,_0x220185){_0x10e1cc=_0x10e1cc-0x12c;const _0x5ac2f6=a71_0x5ac2();let _0x56539e=_0x5ac2f6[_0x10e1cc];return _0x56539e;}import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';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 a72_0x49d545=a72_0x362b;(function(_0xfb691a,_0x2e2eda){const _0x6c99fc=a72_0x362b,_0x4e611c=_0xfb691a();while(!![]){try{const _0x4cd11f=-parseInt(_0x6c99fc(0xa3))/0x1+parseInt(_0x6c99fc(0xab))/0x2+-parseInt(_0x6c99fc(0xa0))/0x3*(-parseInt(_0x6c99fc(0xa5))/0x4)+-parseInt(_0x6c99fc(0xa1))/0x5*(-parseInt(_0x6c99fc(0xa2))/0x6)+-parseInt(_0x6c99fc(0xa7))/0x7*(parseInt(_0x6c99fc(0xa4))/0x8)+-parseInt(_0x6c99fc(0xae))/0x9+-parseInt(_0x6c99fc(0xaa))/0xa*(-parseInt(_0x6c99fc(0xa6))/0xb);if(_0x4cd11f===_0x2e2eda)break;else _0x4e611c['push'](_0x4e611c['shift']());}catch(_0x1ab384){_0x4e611c['push'](_0x4e611c['shift']());}}}(a72_0x2c8b,0x2cbd0));import{listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{sanitizeDbLinkList}from'../../commands/db/shared.js';function a72_0x362b(_0x342b51,_0x5543f4){_0x342b51=_0x342b51-0xa0;const _0x2c8baa=a72_0x2c8b();let _0x362b30=_0x2c8baa[_0x342b51];return _0x362b30;}export const dbList={'service':'db','command':a72_0x49d545(0xb2),'description':a72_0x49d545(0xb0),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':a72_0x49d545(0xa8),'type':'number','description':a72_0x49d545(0xac),'default':0x1},{'name':a72_0x49d545(0xad),'type':'number','description':a72_0x49d545(0xa9),'default':0x64}],async 'execute'(_0x56d09e){const _0x377f0e=a72_0x49d545,_0x534c42=_0x56d09e[_0x377f0e(0xb4)](_0x377f0e(0xa8),0x1)||0x1,_0x10e264=_0x56d09e[_0x377f0e(0xb4)](_0x377f0e(0xad),0x64)||0x64,{items:_0x4b46d2,paging:_0x5c087d}=await listDbLinks(_0x56d09e['appCode'],{'currentPage':_0x534c42,'pageSize':_0x10e264}),_0xc40c9a=sanitizeDbLinkList(_0x4b46d2),_0x5605d6=_0x5c087d?_0x5c087d:{'currentPage':_0x534c42,'pageSize':_0x10e264,'rowsOnPage':_0xc40c9a[_0x377f0e(0xaf)],'totalCount':null,'note':_0x377f0e(0xb3)};return{'ok':!![],'data':{'connections':_0xc40c9a,'paging':_0x5605d6},'message':_0x377f0e(0xb1)+_0xc40c9a[_0x377f0e(0xaf)]+'\x20database\x20connection(s)'};}};function a72_0x2c8b(){const _0x55d6ef=['499970CtXHjH','Page\x20index\x20(1-based)','pagesize','2100213Hdmwkk','length','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','Found\x20','list','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','num','266124hLKILI','85ZkRFJU','59298WYgUVk','8819vtPYVO','5232QLjkSP','4chSGTg','3773dpdMAp','1428QaMZAf','page','Page\x20size','1520xwghNm'];a72_0x2c8b=function(){return _0x55d6ef;};return a72_0x2c8b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1db38e,_0x505066){const _0x2d64cc=a73_0x3e42,_0x1f047d=_0x1db38e();while(!![]){try{const _0x48c630=-parseInt(_0x2d64cc(0x77))/0x1*(-parseInt(_0x2d64cc(0x7b))/0x2)+-parseInt(_0x2d64cc(0x72))/0x3+parseInt(_0x2d64cc(0x82))/0x4+parseInt(_0x2d64cc(0x80))/0x5+parseInt(_0x2d64cc(0x7f))/0x6*(-parseInt(_0x2d64cc(0x7d))/0x7)+parseInt(_0x2d64cc(0x70))/0x8+-parseInt(_0x2d64cc(0x6d))/0x9;if(_0x48c630===_0x505066)break;else _0x1f047d['push'](_0x1f047d['shift']());}catch(_0x40852d){_0x1f047d['push'](_0x1f047d['shift']());}}}(a73_0x415e,0x40050));import{getAppBaseUrl}from'../../constant/domain.js';function shouldRedactKey(_0x443053){const _0x2cc863=a73_0x3e42,_0x19beb7=_0x443053[_0x2cc863(0x76)]();if(_0x19beb7===_0x2cc863(0x7e)||_0x19beb7==='passwd'||_0x19beb7===_0x2cc863(0x79))return!![];if(_0x19beb7['includes']('secret')||_0x19beb7[_0x2cc863(0x85)]('token')||_0x19beb7[_0x2cc863(0x85)](_0x2cc863(0x78)))return!![];if(_0x19beb7['includes'](_0x2cc863(0x74))||_0x19beb7[_0x2cc863(0x85)](_0x2cc863(0x73)))return!![];if(_0x19beb7===_0x2cc863(0x71)||_0x19beb7===_0x2cc863(0x84)||_0x19beb7===_0x2cc863(0x6f))return!![];return![];}export function sanitizeDbLinkForOutput(_0x3e61be){const _0x5385ee=a73_0x3e42,_0x5c384f={..._0x3e61be};for(const _0x2536f0 of Object[_0x5385ee(0x83)](_0x5c384f)){if(!shouldRedactKey(_0x2536f0))continue;const _0x17c030=_0x5c384f[_0x2536f0];_0x17c030!=null&&String(_0x17c030)[_0x5385ee(0x81)]>0x0&&(_0x5c384f[_0x2536f0]='[redacted]');}return _0x5c384f;}export function sanitizeDbLinkList(_0xfe3b7a){const _0x2bf3ed=a73_0x3e42;return _0xfe3b7a[_0x2bf3ed(0x6c)](_0x468e29=>sanitizeDbLinkForOutput(_0x468e29));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x185daf){const _0x493097=a73_0x3e42,_0x233430=_0x185daf[_0x493097(0x6b)]();if(!_0x233430)return![];return DB_URL_PATTERN[_0x493097(0x75)](_0x233430);}export function buildDbPageLinks(_0x1e45f2,_0x12519){const _0x12cb84=a73_0x3e42,_0x2ceaff=_0x1e45f2?.[_0x12cb84(0x6b)]();if(!_0x2ceaff)return undefined;const _0x51b003=typeof _0x12519===_0x12cb84(0x7a)?String(_0x12519):String(_0x12519??'')[_0x12cb84(0x6b)]();if(!_0x51b003)return undefined;const _0x424361=Number(_0x51b003);if(!Number[_0x12cb84(0x7c)](_0x424361)||_0x424361<=0x0)return undefined;const _0x2713b2=getAppBaseUrl(_0x2ceaff),_0x322021=encodeURIComponent(String(_0x424361));return{'databasePage':_0x2713b2+'/data/database','erPage':_0x2713b2+_0x12cb84(0x6e)+_0x322021};}function a73_0x3e42(_0x29b911,_0x1356ae){_0x29b911=_0x29b911-0x6b;const _0x415e88=a73_0x415e();let _0x3e42cf=_0x415e88[_0x29b911];return _0x3e42cf;}function a73_0x415e(){const _0x360ad1=['number','9818tUIdXZ','isFinite','63903wMMzqV','password','282zVOuce','814870ZPSfoC','length','1875040ysuMJr','keys','connectionstring','includes','trim','map','1300212gPausy','/data/er?dbId=','jdbcurl','651656VhFpsl','authorization','1046100rfZZIb','accesskey','privatekey','test','toLowerCase','96WtGyiX','credential','dbpassword'];a73_0x415e=function(){return _0x360ad1;};return a73_0x415e();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a74_0x581e(_0xf3b4f8,_0x2daf64){_0xf3b4f8=_0xf3b4f8-0x84;const _0x1b04bd=a74_0x1b04();let _0x581e31=_0x1b04bd[_0xf3b4f8];return _0x581e31;}const a74_0x146f5b=a74_0x581e;(function(_0x123694,_0x1278ee){const _0x4a2d28=a74_0x581e,_0xd98756=_0x123694();while(!![]){try{const _0x334507=-parseInt(_0x4a2d28(0x8e))/0x1*(-parseInt(_0x4a2d28(0x8d))/0x2)+-parseInt(_0x4a2d28(0x94))/0x3*(-parseInt(_0x4a2d28(0x89))/0x4)+parseInt(_0x4a2d28(0x87))/0x5+-parseInt(_0x4a2d28(0x93))/0x6*(-parseInt(_0x4a2d28(0x8a))/0x7)+parseInt(_0x4a2d28(0x85))/0x8+-parseInt(_0x4a2d28(0x84))/0x9+-parseInt(_0x4a2d28(0x90))/0xa*(parseInt(_0x4a2d28(0x88))/0xb);if(_0x334507===_0x1278ee)break;else _0xd98756['push'](_0xd98756['shift']());}catch(_0x252d5d){_0xd98756['push'](_0xd98756['shift']());}}}(a74_0x1b04,0xb5e25));import{getDbAllTableList}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a74_0x1b04(){const _0x368ed3=['161321ouSNKB','tables','17630440lRjClq','appCode','read','7026aQdcJp','4758fypqFn','10009800uXBhus','2267656YlJnyq','num','6060460Omccxt','11TJAxXE','532sZdiuI','8547CuHTPT','length','List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','6aJTBDv'];a74_0x1b04=function(){return _0x368ed3;};return a74_0x1b04();}export const dbTables={'service':'db','command':a74_0x146f5b(0x8f),'description':a74_0x146f5b(0x8c),'risk':a74_0x146f5b(0x92),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x38a5b6){const _0x4d7977=a74_0x146f5b,_0x55da64=_0x38a5b6[_0x4d7977(0x86)]('id'),_0x24dd5c=await getDbAllTableList(_0x38a5b6[_0x4d7977(0x91)],_0x55da64);return{'ok':!![],'data':{'dbLinkId':_0x55da64,'total':_0x24dd5c['length'],'tables':_0x24dd5c},'message':_0x24dd5c[_0x4d7977(0x8b)]+'\x20table(s)\x20on\x20db\x20link\x20'+_0x55da64};}};
|
package/lib/commands/db/test.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a75_0x2a555f=a75_0xa1c4;(function(_0x4086bc,_0x543ff7){const _0x2102ed=a75_0xa1c4,_0x4a62b0=_0x4086bc();while(!![]){try{const _0x4a8cec=-parseInt(_0x2102ed(0x1fc))/0x1*(-parseInt(_0x2102ed(0x1e8))/0x2)+parseInt(_0x2102ed(0x1f3))/0x3*(parseInt(_0x2102ed(0x1f6))/0x4)+-parseInt(_0x2102ed(0x1e7))/0x5+parseInt(_0x2102ed(0x1fb))/0x6*(-parseInt(_0x2102ed(0x1ff))/0x7)+-parseInt(_0x2102ed(0x1ec))/0x8*(-parseInt(_0x2102ed(0x1f1))/0x9)+-parseInt(_0x2102ed(0x1ef))/0xa+parseInt(_0x2102ed(0x1ea))/0xb*(parseInt(_0x2102ed(0x1e9))/0xc);if(_0x4a8cec===_0x543ff7)break;else _0x4a62b0['push'](_0x4a62b0['shift']());}catch(_0x1b6bbd){_0x4a62b0['push'](_0x4a62b0['shift']());}}}(a75_0x2f5d,0xa6454));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a75_0x2f5d(){const _0x56f62c=['keys','24579mYsgtL','slice','2442SGXNbt','\x20(see\x20data.result)','Connection\x20OK\x20for\x20db\x20link\x20','116HiaoFf','message','success','object','num','7326PYIvzo','99557EIZiIL','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','length','2849Swztwl','read','5076650EzNOUZ','24OBVByc','3855756LmUYnl','22HMbNgF','Connection\x20check\x20finished\x20for\x20db\x20link\x20','1688fXpVpg','error','code','2438360ffFkCR'];a75_0x2f5d=function(){return _0x56f62c;};return a75_0x2f5d();}function a75_0xa1c4(_0x1e0cfd,_0x44ea3e){_0x1e0cfd=_0x1e0cfd-0x1e7;const _0x2f5d3b=a75_0x2f5d();let _0xa1c4be=_0x2f5d3b[_0x1e0cfd];return _0xa1c4be;}function summarizeTestConnectResult(_0x4ab74b){const _0x3076f2=a75_0xa1c4;if(_0x4ab74b===!![]||_0x4ab74b===![])return{'success':_0x4ab74b};if(_0x4ab74b===null||_0x4ab74b===undefined)return{'type':typeof _0x4ab74b};if(typeof _0x4ab74b!==_0x3076f2(0x1f9))return{'type':typeof _0x4ab74b};const _0x2d7a62=_0x4ab74b,_0x407d76=[_0x3076f2(0x1f8),_0x3076f2(0x1f7),_0x3076f2(0x1ee),_0x3076f2(0x1ed),'msg','data'],_0x4dd27c={};for(const _0x12597a of _0x407d76){if(_0x12597a in _0x2d7a62)_0x4dd27c[_0x12597a]=_0x2d7a62[_0x12597a];}return Object[_0x3076f2(0x1f0)](_0x4dd27c)[_0x3076f2(0x1fe)]===0x0&&(_0x4dd27c[_0x3076f2(0x1f0)]=Object[_0x3076f2(0x1f0)](_0x2d7a62)[_0x3076f2(0x1f2)](0x0,0x14)),_0x4dd27c;}export const dbTest={'service':'db','command':'test','description':a75_0x2a555f(0x1fd),'risk':a75_0x2a555f(0x200),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x242372){const _0x5a9d97=a75_0x2a555f,_0x15763a=_0x242372[_0x5a9d97(0x1fa)]('id'),_0x21eb80=await testDbLinkConnect(_0x15763a),_0x36c294=_0x21eb80===!![]||typeof _0x21eb80==='object'&&_0x21eb80!==null&&_0x21eb80['success']===!![],_0x4557ba=summarizeTestConnectResult(_0x21eb80);return{'ok':!![],'data':{'id':_0x15763a,'connected':Boolean(_0x36c294),'result':_0x4557ba},'message':_0x36c294?_0x5a9d97(0x1f5)+_0x15763a:_0x5a9d97(0x1eb)+_0x15763a+_0x5a9d97(0x1f4)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a76_0x26ab8f=a76_0x2726;(function(_0x29a409,_0x3b81b1){const _0x27302e=a76_0x2726,_0x316fc7=_0x29a409();while(!![]){try{const _0x5ee94f=-parseInt(_0x27302e(0xf0))/0x1*(parseInt(_0x27302e(0xea))/0x2)+parseInt(_0x27302e(0xf3))/0x3*(parseInt(_0x27302e(0xf9))/0x4)+-parseInt(_0x27302e(0xfe))/0x5*(parseInt(_0x27302e(0x102))/0x6)+parseInt(_0x27302e(0xe8))/0x7+parseInt(_0x27302e(0xf1))/0x8+-parseInt(_0x27302e(0xf7))/0x9+-parseInt(_0x27302e(0xe9))/0xa;if(_0x5ee94f===_0x3b81b1)break;else _0x316fc7['push'](_0x316fc7['shift']());}catch(_0x33de9c){_0x316fc7['push'](_0x316fc7['shift']());}}}(a76_0x3947,0xc3147));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';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';function a76_0x2726(_0x3f2ffd,_0xd765a5){_0x3f2ffd=_0x3f2ffd-0xe5;const _0x394749=a76_0x3947();let _0x272633=_0x394749[_0x3f2ffd];return _0x272633;}function a76_0x3947(){const _0x42f80e=['dbdesc','dbDesc','New\x20username','3744945CeAUAw','New\x20connection\x20parameter\x20string','4kWnVXk','/smartapi/dblink/update','dbname','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','205435qmQckJ','trim','New\x20host:port','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','186kxOpzj','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','password','dburl','username','Updated\x20db\x20link\x20','dbParam','update','write','3613582PMopmi','205070oqgQKr','6FqgbNr','dbUrl','num','string','str','POST','134190hfsGny','6716128DCeAbJ','dbparam','4668552bTZxNg'];a76_0x3947=function(){return _0x42f80e;};return a76_0x3947();}export const dbUpdate={'service':'db','command':a76_0x26ab8f(0xe6),'description':a76_0x26ab8f(0xfc),'risk':a76_0x26ab8f(0xe7),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a76_0x26ab8f(0xfb),'type':a76_0x26ab8f(0xed),'description':'New\x20database\x20name'},{'name':a76_0x26ab8f(0x105),'type':a76_0x26ab8f(0xed),'description':a76_0x26ab8f(0x100)},{'name':'username','type':a76_0x26ab8f(0xed),'description':a76_0x26ab8f(0xf6)},{'name':a76_0x26ab8f(0x104),'type':a76_0x26ab8f(0xed),'description':a76_0x26ab8f(0xfd)},{'name':a76_0x26ab8f(0xf2),'type':a76_0x26ab8f(0xed),'description':a76_0x26ab8f(0xf8)},{'name':a76_0x26ab8f(0xf4),'type':a76_0x26ab8f(0xed),'description':'New\x20description'}],async 'validate'(_0x55738c){const _0x59e678=a76_0x26ab8f,_0xff1c2e=_0x55738c[_0x59e678(0xee)](_0x59e678(0x105));if(_0xff1c2e&&!validateDbUrl(_0xff1c2e[_0x59e678(0xff)]()))throw CliErrors['validation'](_0x59e678(0x101)+_0xff1c2e+'\x22');},async 'dryRun'(_0x2ed955){const _0x2ec766=a76_0x26ab8f,_0x574931=_0x2ed955[_0x2ec766(0xec)]('id'),_0x2feb85=await getDbLinkInfo(_0x574931),_0x24fff3={..._0x2feb85},_0x52a347=_0x2ed955[_0x2ec766(0xee)](_0x2ec766(0xfb));if(_0x52a347)_0x24fff3['dbName']=_0x52a347;const _0x245fe9=_0x2ed955[_0x2ec766(0xee)](_0x2ec766(0x105));if(_0x245fe9)_0x24fff3[_0x2ec766(0xeb)]=_0x245fe9['trim']();const _0x1bb72a=_0x2ed955[_0x2ec766(0xee)](_0x2ec766(0x106));if(_0x1bb72a)_0x24fff3[_0x2ec766(0x106)]=_0x1bb72a;const _0x1ad5d8=_0x2ed955[_0x2ec766(0xee)]('password');if(_0x1ad5d8)_0x24fff3[_0x2ec766(0x104)]=_0x1ad5d8;const _0x10b9e9=_0x2ed955['str'](_0x2ec766(0xf2));if(_0x10b9e9)_0x24fff3[_0x2ec766(0xe5)]=_0x10b9e9;const _0x15332d=_0x2ed955[_0x2ec766(0xee)](_0x2ec766(0xf4));if(_0x15332d)_0x24fff3[_0x2ec766(0xf5)]=_0x15332d;const _0x557945=sanitizeDbLinkForOutput(_0x24fff3);return{'method':_0x2ec766(0xef),'url':_0x2ec766(0xfa),'body':_0x557945,'description':_0x2ec766(0x103)};},async 'execute'(_0x2ba641){const _0x1d58da=a76_0x26ab8f,_0x135490=_0x2ba641[_0x1d58da(0xec)]('id'),_0x171a6e=await getDbLinkInfo(_0x135490),_0x19e7fb={..._0x171a6e},_0x5e08ba=_0x2ba641[_0x1d58da(0xee)](_0x1d58da(0xfb));if(_0x5e08ba)_0x19e7fb['dbName']=_0x5e08ba;const _0x37e4e=_0x2ba641['str'](_0x1d58da(0x105));if(_0x37e4e)_0x19e7fb['dbUrl']=_0x37e4e[_0x1d58da(0xff)]();const _0x592091=_0x2ba641[_0x1d58da(0xee)]('username');if(_0x592091)_0x19e7fb['username']=_0x592091;const _0x54e13a=_0x2ba641[_0x1d58da(0xee)](_0x1d58da(0x104));if(_0x54e13a)_0x19e7fb['password']=_0x54e13a;const _0x59e66d=_0x2ba641[_0x1d58da(0xee)]('dbparam');if(_0x59e66d)_0x19e7fb[_0x1d58da(0xe5)]=_0x59e66d;const _0x58203a=_0x2ba641['str'](_0x1d58da(0xf4));if(_0x58203a)_0x19e7fb[_0x1d58da(0xf5)]=_0x58203a;const {id:_0x1fdf22,entity:_0x5249c1}=normalizeEntityWithIdResponse(await updateDbLink(_0x19e7fb));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x5249c1),'message':_0x1d58da(0x107)+(_0x1fdf22??_0x135490)};}};
|