@lovrabet/rabetbase-cli 2.1.7-beta.6 → 2.1.7-beta.7
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/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/link-create.js +1 -1
- package/lib/commands/dataset/link-delete.js +1 -1
- package/lib/commands/dataset/link-shared.js +1 -1
- package/lib/commands/dataset/link-update.js +1 -1
- package/lib/commands/dataset/links.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/update.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/standard-page-status.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/non-interactive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/init.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/save.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/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/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
- package/templates/projects/sub-app-react-demo/README.md +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a51_0x2ac1(_0x46982d,_0x3fc707){_0x46982d=_0x46982d-0x1b1;const _0x306b3f=a51_0x306b();let _0x2ac171=_0x306b3f[_0x46982d];return _0x2ac171;}const a51_0x16eb98=a51_0x2ac1;(function(_0x31182e,_0x20df52){const _0x5c0a60=a51_0x2ac1,_0x478d6c=_0x31182e();while(!![]){try{const _0xbaa93c=-parseInt(_0x5c0a60(0x1d1))/0x1+-parseInt(_0x5c0a60(0x1ea))/0x2*(parseInt(_0x5c0a60(0x1e5))/0x3)+parseInt(_0x5c0a60(0x1ec))/0x4+-parseInt(_0x5c0a60(0x1cf))/0x5*(-parseInt(_0x5c0a60(0x1bc))/0x6)+-parseInt(_0x5c0a60(0x1fb))/0x7+-parseInt(_0x5c0a60(0x1d8))/0x8*(-parseInt(_0x5c0a60(0x1c9))/0x9)+parseInt(_0x5c0a60(0x1c1))/0xa;if(_0xbaa93c===_0x20df52)break;else _0x478d6c['push'](_0x478d6c['shift']());}catch(_0x56568a){_0x478d6c['push'](_0x478d6c['shift']());}}}(a51_0x306b,0xee5ad));import{getDatasetDetail}from'../../core/api-client.js';function a51_0x306b(){const _0x2ac78f=['deleted','dbtableConfig','type','15168152olXGTP','doType','formatRules','requestBody','tableName','string','requestFields','creatorIdField','responseBody','createTimeField','dataType','object','read','12777jjBPVE','modelId','options','length','toDatasetName','290yKVZTo','map','5819404ZaLlyY','host','isArray','datasetKey','logicField','creatorNameField','fields','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','modelCode','allFields','title','entries','updateTimeField','filter','required','6537090hOtYPw','afterScriptId','properties','description','parse','dbId','toDatasetCode','alias','validateRules','code','fromField','push','indexes','trim','source','pkField','174qUqgCk','responseFields','beforeScriptId','tableComment','toFieldLabel','8095480rZVgcA','relatedPageInfoList','name','modifierIdField','modifierNameField','dbType','dataset','toTableName','9vENBuh','extend','dblinkInfoDTO','relations','detail','path','18580EQwNdA','columnCodeListWithDeleted','1740456CkMzAz','method','split','dbName'];a51_0x306b=function(){return _0x2ac78f;};return a51_0x306b();}import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function normalizeField(_0x3d0bfb){const _0x17e7dd=a51_0x2ac1;if(_0x3d0bfb[_0x17e7dd(0x1d5)])return null;const _0x291f8e=Boolean(_0x3d0bfb['displayName']!==undefined||_0x3d0bfb[_0x17e7dd(0x1d9)]!==undefined);let _0x4a28ad={};if(!_0x291f8e&&typeof _0x3d0bfb[_0x17e7dd(0x1ca)]==='string')try{_0x4a28ad=JSON[_0x17e7dd(0x1ff)](_0x3d0bfb[_0x17e7dd(0x1ca)]);}catch{}const _0x2a91b8=_0x291f8e?_0x3d0bfb[_0x17e7dd(0x1c3)]:_0x3d0bfb[_0x17e7dd(0x1b5)],_0x4e5b81=_0x291f8e?_0x3d0bfb['displayName']:_0x3d0bfb[_0x17e7dd(0x1c3)],_0x28d125=_0x291f8e?_0x3d0bfb['doType']:_0x3d0bfb[_0x17e7dd(0x1d7)]||_0x3d0bfb[_0x17e7dd(0x1e2)],_0x33c0d3=_0x291f8e?_0x3d0bfb[_0x17e7dd(0x1bb)]===!![]:_0x4a28ad['pkField']===!![],_0x31ef57=_0x291f8e?_0x3d0bfb['required']===!![]:_0x4a28ad[_0x17e7dd(0x1fa)]===!![],_0x27382c=_0x291f8e?_0x3d0bfb[_0x17e7dd(0x1e7)]??null:_0x4a28ad['options']??null,_0x50f1c3={'name':_0x2a91b8,'displayName':_0x4e5b81||_0x2a91b8,'type':_0x28d125,'dbType':_0x3d0bfb[_0x17e7dd(0x1c6)],'pk':_0x33c0d3,'required':_0x31ef57,'description':_0x3d0bfb[_0x17e7dd(0x1fe)]||undefined};return Array[_0x17e7dd(0x1ee)](_0x27382c)&&_0x27382c[_0x17e7dd(0x1e8)]>0x0&&(_0x50f1c3['options']=_0x27382c),_0x50f1c3;}function parseJsonMaybe(_0x9def05){const _0x5e8311=a51_0x2ac1;if(typeof _0x9def05!==_0x5e8311(0x1dd))return _0x9def05;try{return JSON[_0x5e8311(0x1ff)](_0x9def05);}catch{return _0x9def05;}}function normalizeOperationEntry(_0x480750,_0x710751){const _0x4bc666=a51_0x2ac1;if(!_0x710751||typeof _0x710751!==_0x4bc666(0x1e3))return null;if(!_0x710751[_0x4bc666(0x1d2)]||!_0x710751['path'])return null;const _0x5a24ca={'name':_0x480750,'method':_0x710751['method'],'path':_0x710751[_0x4bc666(0x1ce)]};if(_0x710751[_0x4bc666(0x1ed)])_0x5a24ca[_0x4bc666(0x1ed)]=_0x710751[_0x4bc666(0x1ed)];if(_0x710751[_0x4bc666(0x1db)]!=null){const _0x24bb9d=parseJsonMaybe(_0x710751[_0x4bc666(0x1db)]);_0x5a24ca[_0x4bc666(0x1db)]=_0x24bb9d;}if(_0x710751[_0x4bc666(0x1e0)]!=null){const _0x3da532=parseJsonMaybe(_0x710751[_0x4bc666(0x1e0)]);_0x5a24ca['responseBody']=_0x3da532;}if(_0x710751['beforeScriptId']!=null)_0x5a24ca[_0x4bc666(0x1be)]=_0x710751[_0x4bc666(0x1be)];if(_0x710751[_0x4bc666(0x1fc)]!=null)_0x5a24ca[_0x4bc666(0x1fc)]=_0x710751['afterScriptId'];if(Array[_0x4bc666(0x1ee)](_0x710751[_0x4bc666(0x1de)]))_0x5a24ca[_0x4bc666(0x1de)]=_0x710751['requestFields'];if(Array[_0x4bc666(0x1ee)](_0x710751[_0x4bc666(0x1bd)]))_0x5a24ca['responseFields']=_0x710751[_0x4bc666(0x1bd)];return _0x5a24ca;}function summarizeDbtable(_0x2cb7c9){const _0x53dbaf=a51_0x2ac1,_0x3b8ed7={},_0x27f430=[_0x53dbaf(0x1b1),_0x53dbaf(0x1d4),_0x53dbaf(0x1dc),_0x53dbaf(0x1ef),_0x53dbaf(0x1bb),_0x53dbaf(0x1f5),_0x53dbaf(0x1f0),_0x53dbaf(0x1e1),_0x53dbaf(0x1f8),_0x53dbaf(0x1df),_0x53dbaf(0x1f1),_0x53dbaf(0x1c4),_0x53dbaf(0x1c5),'labelField',_0x53dbaf(0x1cb)];for(const _0x4d09eb of _0x27f430){if(_0x2cb7c9[_0x4d09eb]!==undefined)_0x3b8ed7[_0x4d09eb]=_0x2cb7c9[_0x4d09eb];}return typeof _0x3b8ed7[_0x53dbaf(0x1f5)]===_0x53dbaf(0x1dd)&&_0x3b8ed7['allFields'][_0x53dbaf(0x1e8)]>0x0&&(_0x3b8ed7['allFieldNames']=_0x3b8ed7['allFields'][_0x53dbaf(0x1d3)](',')[_0x53dbaf(0x1eb)](_0x1864a2=>_0x1864a2[_0x53dbaf(0x1b9)]())[_0x53dbaf(0x1f9)](Boolean)),_0x3b8ed7;}function normalizeRelatedPages(_0x329d91){const _0x56813e=a51_0x2ac1;if(!Array[_0x56813e(0x1ee)](_0x329d91))return[];return _0x329d91[_0x56813e(0x1f9)](_0x1af132=>_0x1af132&&typeof _0x1af132===_0x56813e(0x1e3))['map'](_0x3eeb5f=>({'id':_0x3eeb5f['id'],'type':_0x3eeb5f[_0x56813e(0x1d7)],'code':_0x3eeb5f[_0x56813e(0x1b5)],'title':_0x3eeb5f[_0x56813e(0x1f6)],'deleted':_0x3eeb5f['deleted']===!![]}));}export const datasetDetail={'service':'dataset','command':a51_0x16eb98(0x1cd),'description':'Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','risk':a51_0x16eb98(0x1e4),'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a51_0x16eb98(0x1b3),'type':'string','description':a51_0x16eb98(0x1f3)}],async 'execute'(_0x715429){const _0x39d52b=a51_0x16eb98,_0x21a838=await getDatasetDetail(_0x715429['str'](_0x39d52b(0x1b5))),_0x2f3ea1=Array[_0x39d52b(0x1ee)](_0x21a838[_0x39d52b(0x1f2)])?_0x21a838[_0x39d52b(0x1f2)]:Array[_0x39d52b(0x1ee)](_0x21a838[_0x39d52b(0x1fd)])?_0x21a838[_0x39d52b(0x1fd)]:[],_0x46dd76=_0x2f3ea1['map'](_0xa29c0c=>normalizeField(_0xa29c0c))[_0x39d52b(0x1f9)](_0x291921=>_0x291921!==null),_0xc22d51=_0x21a838['operations']??{},_0xf5dbd6=[];for(const [_0x12acd9,_0x13d694]of Object[_0x39d52b(0x1f7)](_0xc22d51)){const _0x2c842d=normalizeOperationEntry(_0x12acd9,_0x13d694);if(_0x2c842d)_0xf5dbd6[_0x39d52b(0x1b7)](_0x2c842d);}const _0x40899f=_0x21a838[_0x39d52b(0x1d6)]??{},_0x539b1e=_0x21a838[_0x39d52b(0x1c7)]??{},_0x33d394=_0x40899f[_0x39d52b(0x1b1)]!=null?{'id':_0x40899f[_0x39d52b(0x1b1)],'name':_0x40899f[_0x39d52b(0x1d4)]??null}:undefined;let _0x44a5c0;return typeof _0x21a838['extend']==='string'&&(_0x44a5c0=parseJsonMaybe(_0x21a838[_0x39d52b(0x1ca)])),{'ok':!![],'data':{'id':_0x21a838[_0x39d52b(0x1e6)]??_0x21a838['id'],'name':_0x21a838[_0x39d52b(0x1c3)],'code':_0x21a838[_0x39d52b(0x1f4)]||_0x21a838[_0x39d52b(0x1b5)],'doVersion':_0x21a838['doVersion'],'description':_0x21a838['description']||_0x539b1e[_0x39d52b(0x1bf)]||undefined,'source':_0x21a838[_0x39d52b(0x1ba)]||_0x539b1e['sourceType'],'table':_0x40899f['tableName']||_0x539b1e[_0x39d52b(0x1dc)],'datasetKey':_0x40899f[_0x39d52b(0x1ef)],'pk':_0x40899f[_0x39d52b(0x1bb)],'db':_0x33d394,'dbtable':summarizeDbtable(_0x40899f),'fields':_0x46dd76,'operations':_0xf5dbd6,'indexes':Array[_0x39d52b(0x1ee)](_0x539b1e['indexes'])?_0x539b1e[_0x39d52b(0x1b8)]:[],'relations':Array['isArray'](_0x21a838[_0x39d52b(0x1cc)])?_0x21a838['relations'][_0x39d52b(0x1eb)](_0x416e45=>({'fromField':_0x416e45[_0x39d52b(0x1b6)],'toDataset':_0x416e45[_0x39d52b(0x1e9)],'toCode':_0x416e45[_0x39d52b(0x1b2)],'toTable':_0x416e45[_0x39d52b(0x1c8)],'toField':_0x416e45['toField'],'labelField':_0x416e45[_0x39d52b(0x1c0)]||undefined})):[],'relatedPages':normalizeRelatedPages(_0x21a838[_0x39d52b(0x1c2)]),...Array[_0x39d52b(0x1ee)](_0x21a838[_0x39d52b(0x1d0)])?{'columnCodeListWithDeleted':_0x21a838[_0x39d52b(0x1d0)]}:{},'formatRules':Array[_0x39d52b(0x1ee)](_0x21a838[_0x39d52b(0x1da)])?_0x21a838[_0x39d52b(0x1da)]:[],'validateRules':Array[_0x39d52b(0x1ee)](_0x21a838[_0x39d52b(0x1b4)])?_0x21a838[_0x39d52b(0x1b4)]:[],..._0x44a5c0!==undefined?{'extend':_0x44a5c0}:{},'stats':{'fieldCount':_0x46dd76[_0x39d52b(0x1e8)],'operationCount':_0xf5dbd6[_0x39d52b(0x1e8)]}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1d7a70,_0x1f822a){const _0xe4587f=a52_0x4b70,_0x4865de=_0x1d7a70();while(!![]){try{const _0x143e41=parseInt(_0xe4587f(0x1ae))/0x1*(parseInt(_0xe4587f(0x1ab))/0x2)+parseInt(_0xe4587f(0x1ad))/0x3+parseInt(_0xe4587f(0x1ac))/0x4*(-parseInt(_0xe4587f(0x1b5))/0x5)+parseInt(_0xe4587f(0x1b1))/0x6+-parseInt(_0xe4587f(0x1b2))/0x7*(-parseInt(_0xe4587f(0x1b3))/0x8)+-parseInt(_0xe4587f(0x1b0))/0x9+-parseInt(_0xe4587f(0x1b4))/0xa*(-parseInt(_0xe4587f(0x1af))/0xb);if(_0x143e41===_0x1f822a)break;else _0x4865de['push'](_0x4865de['shift']());}catch(_0xe1fc85){_0x4865de['push'](_0x4865de['shift']());}}}(a52_0x7755,0xf3f79));function a52_0x7755(){const _0x5b03b9=['287ysUXBb','150584oQsaue','1058740VJKhDT','5tyvXvl','7672yCVhfI','7691672lcvwGR','573948pHYKAl','232PBRqDK','33VnnbQh','10117899qBtMQD','11254710XEskrc'];a52_0x7755=function(){return _0x5b03b9;};return a52_0x7755();}import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetOperations}from'../../commands/dataset/operations.js';import{datasetLinks}from'../../commands/dataset/links.js';import{datasetLinkCreate}from'../../commands/dataset/link-create.js';import{datasetLinkUpdate}from'../../commands/dataset/link-update.js';function a52_0x4b70(_0x47ab30,_0x554548){_0x47ab30=_0x47ab30-0x1ab;const _0x7755d5=a52_0x7755();let _0x4b7013=_0x7755d5[_0x47ab30];return _0x4b7013;}import{datasetLinkDelete}from'../../commands/dataset/link-delete.js';import{datasetDelete}from'../../commands/dataset/delete.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetOperations,datasetLinks,datasetLinkCreate,datasetLinkUpdate,datasetLinkDelete,datasetDelete];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a53_0xd185(){const _0xd214da=['\x20->\x20','str','relation_conflict:\x20relation\x20already\x20exists:\x20','2PhqmCA','dbId','appCode','503530IgFPYh','10867940nOcFUx','935207tpFAIP','dataset','9mcpPUy','18sTAASV','2070435vWdXPF','Use\x20dataset\x20link-update\x20for\x20metadata\x20changes.\x20Do\x20not\x20automate\x20delete+create\x20as\x20an\x20atomic\x20edit;\x20confirm\x20both\x20dry-runs\x20with\x20the\x20user\x20before\x20changing\x20relation\x20identity.','link-create','column','Created\x20dataset\x20link:\x20','validation','table','from','Would\x20create\x20dataset\x20link\x20','3434504bxQILD','1993100TWqqNV','205440mJEmeH'];a53_0xd185=function(){return _0xd214da;};return a53_0xd185();}const a53_0x12d61b=a53_0x1c8b;(function(_0xce05eb,_0x518028){const _0xa02635=a53_0x1c8b,_0x51222e=_0xce05eb();while(!![]){try{const _0x2e4114=-parseInt(_0xa02635(0x6e))/0x1+-parseInt(_0xa02635(0x6b))/0x2*(-parseInt(_0xa02635(0x74))/0x3)+parseInt(_0xa02635(0x66))/0x4+parseInt(_0xa02635(0x67))/0x5+-parseInt(_0xa02635(0x73))/0x6*(-parseInt(_0xa02635(0x70))/0x7)+parseInt(_0xa02635(0x65))/0x8*(parseInt(_0xa02635(0x72))/0x9)+-parseInt(_0xa02635(0x6f))/0xa;if(_0x2e4114===_0x518028)break;else _0x51222e['push'](_0x51222e['shift']());}catch(_0x5023e4){_0x51222e['push'](_0x51222e['shift']());}}}(a53_0xd185,0x72934));import{createErRelation}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a53_0x1c8b(_0x4849da,_0x41b59d){_0x4849da=_0x4849da-0x64;const _0xd1852b=a53_0xd185();let _0x1c8b55=_0xd1852b[_0x4849da];return _0x1c8b55;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{buildMutationData,DB_FLAG,FROM_COLUMN_FLAG,FROM_TABLE_FLAG,CARDINALITY_FLAG,findExistingLink,formatRelationSelector,readLinkInput,relationToBackend,resolveRequiredDb,TO_COLUMN_FLAG,TO_LABEL_COLUMN_FLAG,TO_TABLE_FLAG}from'../../commands/dataset/link-shared.js';const BACKEND_PATH='/smartapi/question/er-config/erCreate';export const datasetLinkCreate={'service':a53_0x12d61b(0x71),'command':a53_0x12d61b(0x76),'description':'Create\x20one\x20dataset\x20link\x20relation\x20in\x20the\x20ER\x20graph','risk':'write','flags':[DB_FLAG,FROM_TABLE_FLAG,FROM_COLUMN_FLAG,TO_TABLE_FLAG,TO_COLUMN_FLAG,TO_LABEL_COLUMN_FLAG,CARDINALITY_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x58a5e2){readLinkInput(_0x58a5e2,{'includeLabelAndCardinality':!![]});},async 'dryRun'(_0x1b32ac){const _0x20c8fc=a53_0x12d61b,_0x407a47=await resolveRequiredDb(_0x1b32ac['appCode'],_0x1b32ac[_0x20c8fc(0x69)]('db')),_0x11998d=readLinkInput(_0x1b32ac,{'includeLabelAndCardinality':!![]});return{'method':'POST','url':BACKEND_PATH,'body':{'appCode':_0x1b32ac['appCode'],'dblinkId':_0x407a47[_0x20c8fc(0x6c)],'relation':relationToBackend(_0x11998d)},'description':_0x20c8fc(0x64)+_0x11998d['from'][_0x20c8fc(0x7a)]+'.'+_0x11998d[_0x20c8fc(0x7b)]['column']+_0x20c8fc(0x68)+_0x11998d['to']['table']+'.'+_0x11998d['to'][_0x20c8fc(0x77)]};},async 'execute'(_0x5216ae){const _0x3c6758=a53_0x12d61b,_0x139b36=await resolveRequiredDb(_0x5216ae['appCode'],_0x5216ae[_0x3c6758(0x69)]('db')),_0xcd96d6=readLinkInput(_0x5216ae,{'includeLabelAndCardinality':!![]}),_0x49bc4f=await findExistingLink(_0x5216ae[_0x3c6758(0x6d)],_0x139b36[_0x3c6758(0x6c)],_0xcd96d6);if(_0x49bc4f)throw CliErrors[_0x3c6758(0x79)](_0x3c6758(0x6a)+formatRelationSelector(_0xcd96d6),_0x3c6758(0x75));return await createErRelation({'appCode':_0x5216ae[_0x3c6758(0x6d)],'dblinkId':_0x139b36['dbId'],'relation':relationToBackend(_0xcd96d6)}),{'ok':!![],'data':buildMutationData({'operation':'create','appCode':_0x5216ae[_0x3c6758(0x6d)],'db':_0x139b36,'input':_0xcd96d6,'before':null,'dryRun':![],'backendPath':BACKEND_PATH}),'message':_0x3c6758(0x78)+_0xcd96d6[_0x3c6758(0x7b)]['table']+'.'+_0xcd96d6[_0x3c6758(0x7b)][_0x3c6758(0x77)]+_0x3c6758(0x68)+_0xcd96d6['to']['table']+'.'+_0xcd96d6['to'][_0x3c6758(0x77)]};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a54_0x3dc036=a54_0x489c;(function(_0x51f7c0,_0x52e404){const _0x229fd6=a54_0x489c,_0x12cc04=_0x51f7c0();while(!![]){try{const _0x5e176c=-parseInt(_0x229fd6(0x96))/0x1*(parseInt(_0x229fd6(0x8d))/0x2)+-parseInt(_0x229fd6(0x90))/0x3*(-parseInt(_0x229fd6(0x9c))/0x4)+parseInt(_0x229fd6(0x9e))/0x5+parseInt(_0x229fd6(0x91))/0x6*(parseInt(_0x229fd6(0xa2))/0x7)+parseInt(_0x229fd6(0x94))/0x8*(parseInt(_0x229fd6(0xa7))/0x9)+-parseInt(_0x229fd6(0x92))/0xa+-parseInt(_0x229fd6(0x9d))/0xb;if(_0x5e176c===_0x52e404)break;else _0x12cc04['push'](_0x12cc04['shift']());}catch(_0x140312){_0x12cc04['push'](_0x12cc04['shift']());}}}(a54_0x24a9,0xad0a1));import{deleteErRelation}from'../../core/api-client.js';function a54_0x24a9(){const _0x4972f8=['str','Deleted\x20dataset\x20link:\x20','validation','9tEbiZA','\x20->\x20','626LlXTUN','table','dataset','204588kUnmOU','6742446cSpNWb','5391600wlYJes','/smartapi/question/er-config/erDelete','6166520ChinNK','delete','2820XDoiwi','appCode','Would\x20delete\x20dataset\x20link\x20','high-risk-write','link-delete','dbId','12ZMVvQj','9045861SZdlWt','4268980CqqXDV','Run\x20dataset\x20links\x20--db\x20first\x20to\x20inspect\x20the\x20current\x20relation\x20graph.','from','relation_not_found:\x20','7WERtyH','column'];a54_0x24a9=function(){return _0x4972f8;};return a54_0x24a9();}import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{buildMutationData,DB_FLAG,FROM_COLUMN_FLAG,FROM_TABLE_FLAG,findExistingLink,readLinkInput,relationToBackend,resolveRequiredDb,TO_COLUMN_FLAG,TO_TABLE_FLAG}from'../../commands/dataset/link-shared.js';function a54_0x489c(_0x49f961,_0x5ca3b4){_0x49f961=_0x49f961-0x8d;const _0x24a9c9=a54_0x24a9();let _0x489c2a=_0x24a9c9[_0x49f961];return _0x489c2a;}const BACKEND_PATH=a54_0x3dc036(0x93);export const datasetLinkDelete={'service':a54_0x3dc036(0x8f),'command':a54_0x3dc036(0x9a),'description':'Delete\x20one\x20dataset\x20link\x20relation\x20from\x20the\x20ER\x20graph','risk':a54_0x3dc036(0x99),'flags':[DB_FLAG,FROM_TABLE_FLAG,FROM_COLUMN_FLAG,TO_TABLE_FLAG,TO_COLUMN_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x198fdf){readLinkInput(_0x198fdf);},async 'dryRun'(_0x2c58ed){const _0x255abf=a54_0x3dc036,_0x40b4a1=await resolveRequiredDb(_0x2c58ed['appCode'],_0x2c58ed[_0x255abf(0xa4)]('db')),_0x1431a3=readLinkInput(_0x2c58ed);return{'method':'POST','url':BACKEND_PATH,'body':{'appCode':_0x2c58ed['appCode'],'dblinkId':_0x40b4a1['dbId'],'relation':relationToBackend(_0x1431a3)},'description':_0x255abf(0x98)+_0x1431a3[_0x255abf(0xa0)]['table']+'.'+_0x1431a3[_0x255abf(0xa0)][_0x255abf(0xa3)]+_0x255abf(0xa8)+_0x1431a3['to'][_0x255abf(0x8e)]+'.'+_0x1431a3['to'][_0x255abf(0xa3)]};},async 'execute'(_0x48ec87){const _0x450836=a54_0x3dc036,_0xf46628=await resolveRequiredDb(_0x48ec87[_0x450836(0x97)],_0x48ec87[_0x450836(0xa4)]('db')),_0x3cb267=readLinkInput(_0x48ec87),_0x21b84e=await findExistingLink(_0x48ec87[_0x450836(0x97)],_0xf46628[_0x450836(0x9b)],_0x3cb267);if(!_0x21b84e)throw CliErrors[_0x450836(0xa6)](_0x450836(0xa1)+_0x3cb267['from'][_0x450836(0x8e)]+'.'+_0x3cb267[_0x450836(0xa0)][_0x450836(0xa3)]+_0x450836(0xa8)+_0x3cb267['to'][_0x450836(0x8e)]+'.'+_0x3cb267['to'][_0x450836(0xa3)],_0x450836(0x9f));return await deleteErRelation({'appCode':_0x48ec87[_0x450836(0x97)],'dblinkId':_0xf46628[_0x450836(0x9b)],'relation':relationToBackend(_0x3cb267)}),{'ok':!![],'data':buildMutationData({'operation':_0x450836(0x95),'appCode':_0x48ec87[_0x450836(0x97)],'db':_0xf46628,'input':_0x3cb267,'before':_0x21b84e,'dryRun':![],'backendPath':BACKEND_PATH}),'message':_0x450836(0xa5)+_0x3cb267[_0x450836(0xa0)][_0x450836(0x8e)]+'.'+_0x3cb267[_0x450836(0xa0)]['column']+_0x450836(0xa8)+_0x3cb267['to'][_0x450836(0x8e)]+'.'+_0x3cb267['to']['column']};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a55_0x6fe18c=a55_0x57e1;(function(_0x358efa,_0x24d041){const _0xbefb6e=a55_0x57e1,_0x364a59=_0x358efa();while(!![]){try{const _0x8a4dcb=parseInt(_0xbefb6e(0x14f))/0x1+-parseInt(_0xbefb6e(0x144))/0x2+-parseInt(_0xbefb6e(0x14d))/0x3*(parseInt(_0xbefb6e(0x13e))/0x4)+parseInt(_0xbefb6e(0x121))/0x5*(-parseInt(_0xbefb6e(0x15c))/0x6)+-parseInt(_0xbefb6e(0x11f))/0x7*(parseInt(_0xbefb6e(0x11d))/0x8)+parseInt(_0xbefb6e(0x150))/0x9+-parseInt(_0xbefb6e(0x125))/0xa*(-parseInt(_0xbefb6e(0x15a))/0xb);if(_0x8a4dcb===_0x24d041)break;else _0x364a59['push'](_0x364a59['shift']());}catch(_0x368621){_0x364a59['push'](_0x364a59['shift']());}}}(a55_0x5b7a,0xf2452));import{getErConfig}from'../../core/api-client.js';import{resolveOneDb}from'../../core/db-resolver.js';import{CliErrors}from'../../errors.js';export const DATASET_LINK_PROTOCOL=a55_0x6fe18c(0x13f);export const CARDINALITIES=[a55_0x6fe18c(0x11c),a55_0x6fe18c(0x149),a55_0x6fe18c(0x158),a55_0x6fe18c(0x135)];export const DB_FLAG={'name':'db','type':a55_0x6fe18c(0x12c),'required':!![],'description':a55_0x6fe18c(0x137)};export const FROM_TABLE_FLAG={'name':a55_0x6fe18c(0x147),'type':a55_0x6fe18c(0x12c),'required':!![],'description':a55_0x6fe18c(0x11e)};export const FROM_COLUMN_FLAG={'name':a55_0x6fe18c(0x134),'type':'string','required':!![],'description':a55_0x6fe18c(0x133)};export const TO_TABLE_FLAG={'name':a55_0x6fe18c(0x14c),'type':a55_0x6fe18c(0x12c),'required':!![],'description':a55_0x6fe18c(0x120)};export const TO_COLUMN_FLAG={'name':a55_0x6fe18c(0x148),'type':a55_0x6fe18c(0x12c),'required':!![],'description':'Target\x20column\x20name'};export const TO_LABEL_COLUMN_FLAG={'name':'to-label-column','type':a55_0x6fe18c(0x12c),'required':!![],'description':a55_0x6fe18c(0x145)};export const CARDINALITY_FLAG={'name':a55_0x6fe18c(0x14b),'type':a55_0x6fe18c(0x12c),'required':!![],'enum':[...CARDINALITIES],'description':a55_0x6fe18c(0x11b)};export function readLinkInput(_0x3f5837,_0x1c750e){const _0xf61067=a55_0x6fe18c,_0x2c6ba7={'from':{'table':requiredTrim(_0x3f5837[_0xf61067(0x156)]('from-table'),_0xf61067(0x12b)),'column':requiredTrim(_0x3f5837['str'](_0xf61067(0x134)),_0xf61067(0x157))},'to':{'table':requiredTrim(_0x3f5837[_0xf61067(0x156)](_0xf61067(0x14c)),_0xf61067(0x159)),'column':requiredTrim(_0x3f5837[_0xf61067(0x156)](_0xf61067(0x148)),_0xf61067(0x136))}};return _0x1c750e?.[_0xf61067(0x138)]&&(_0x2c6ba7['to'][_0xf61067(0x12f)]=requiredTrim(_0x3f5837[_0xf61067(0x156)](_0xf61067(0x129)),_0xf61067(0x155)),_0x2c6ba7[_0xf61067(0x14b)]=normalizeCardinality(_0x3f5837[_0xf61067(0x156)](_0xf61067(0x14b)))),_0x2c6ba7;}function a55_0x5b7a(){const _0x4480fd=['toLowerCase','before','25729490TKuTRF','input','operation','joinType','to-label-column','trim','--from-table','string','delete','join','labelColumn','dbId','condition','tableName','Source\x20column\x20name','from-column','MANY_TO_MANY','--to-column','Database\x20name\x20or\x20dblink\x20ID\x20from\x20dataset\x20links','includeLabelAndCardinality','datasetCode','\x20->\x20','Database\x20is\x20required.','fromField','validation','5696812ZNfbQg','dataset-link.v1','toDatasetName','dryRun','datasets','dbName','509858hoziJP','Target\x20display/label\x20column\x20name\x20(editable\x20metadata,\x20not\x20selector)','table','from-table','to-column','ONE_TO_MANY','column','cardinality','to-table','3VQQhww','Allowed\x20values:\x20','1826386lWufaO','3836250YlESEl','map','backendPath','get','Invalid\x20--cardinality:\x20','--to-label-column','str','--from-column','MANY_TO_ONE','--to-table','11igaAeG','toField','6mnqihL','Relation\x20cardinality\x20(editable\x20metadata)','ONE_TO_ONE','48eHuXzj','Source\x20table\x20name','243271RiqTHC','Target\x20table\x20name','9727985qBnZEn','from'];a55_0x5b7a=function(){return _0x4480fd;};return a55_0x5b7a();}export function relationToBackend(_0x2b63c9){const _0x2089f1=a55_0x6fe18c;return{'tableName':_0x2b63c9[_0x2089f1(0x122)][_0x2089f1(0x146)],'columnName':_0x2b63c9[_0x2089f1(0x122)][_0x2089f1(0x14a)],'refTableName':_0x2b63c9['to'][_0x2089f1(0x146)],'refColumnName':_0x2b63c9['to'][_0x2089f1(0x14a)],..._0x2b63c9['to'][_0x2089f1(0x12f)]?{'refTableLabelName':_0x2b63c9['to'][_0x2089f1(0x12f)]}:{},..._0x2b63c9[_0x2089f1(0x14b)]?{'cardinality':_0x2b63c9[_0x2089f1(0x14b)]}:{}};}export async function resolveRequiredDb(_0x65ef6,_0xb9a01){const _0x1db894=a55_0x6fe18c,{db:_0x4f84c0,error:_0x49bd58}=await resolveOneDb(_0x65ef6,_0xb9a01[_0x1db894(0x12a)]());if(_0x49bd58||!_0x4f84c0)throw CliErrors[_0x1db894(0x13d)](_0x49bd58||_0x1db894(0x13b));return _0x4f84c0;}export async function findExistingLink(_0x18667b,_0x121db2,_0x4aaae6){const _0x320676=await getErConfig(_0x18667b,_0x121db2);return findLinkInConfig(_0x320676,_0x4aaae6);}export function findLinkInConfig(_0x14feae,_0x252e5d){const _0xb21b03=a55_0x6fe18c,_0x983faf=new Map((_0x14feae[_0xb21b03(0x142)]??[])[_0xb21b03(0x151)](_0x450ab7=>[_0x450ab7[_0xb21b03(0x139)],_0x450ab7]));for(const _0x46542b of _0x14feae[_0xb21b03(0x142)]??[]){const _0x579897=_0x46542b[_0xb21b03(0x132)];if(!sameName(_0x579897,_0x252e5d[_0xb21b03(0x122)][_0xb21b03(0x146)]))continue;for(const _0x8fe324 of _0x46542b['relations']??[]){const _0x44ea1d=_0x983faf[_0xb21b03(0x153)](_0x8fe324['toDataset']),_0x1acf6d=_0x44ea1d?.['tableName'];if(!_0x1acf6d)continue;if(sameName(_0x8fe324[_0xb21b03(0x13c)],_0x252e5d[_0xb21b03(0x122)][_0xb21b03(0x14a)])&&sameName(_0x1acf6d,_0x252e5d['to'][_0xb21b03(0x146)])&&sameName(_0x8fe324[_0xb21b03(0x15b)],_0x252e5d['to'][_0xb21b03(0x14a)])){const _0x25360e={'from':{'table':_0x579897,'column':_0x8fe324[_0xb21b03(0x13c)]},'to':{'table':_0x1acf6d,'column':_0x8fe324[_0xb21b03(0x15b)],..._0x44ea1d?.[_0xb21b03(0x139)]?{'datasetCode':_0x44ea1d[_0xb21b03(0x139)]}:{},..._0x8fe324[_0xb21b03(0x140)]?{'datasetName':_0x8fe324[_0xb21b03(0x140)]}:{}},'cardinality':_0x8fe324[_0xb21b03(0x128)]||undefined,'condition':_0x8fe324[_0xb21b03(0x131)]??null};return _0x25360e;}}}return null;}export function buildMutationData(_0x289d5c){const _0x14210b=a55_0x6fe18c,_0x36c3ac=_0x289d5c[_0x14210b(0x127)]===_0x14210b(0x12d)?null:{'from':_0x289d5c[_0x14210b(0x126)]['from'],'to':_0x289d5c[_0x14210b(0x126)]['to'],'cardinality':_0x289d5c[_0x14210b(0x126)][_0x14210b(0x14b)]};return{'protocol':DATASET_LINK_PROTOCOL,'operation':_0x289d5c[_0x14210b(0x127)],'appCode':_0x289d5c['appCode'],'db':{'id':_0x289d5c['db'][_0x14210b(0x130)],'name':_0x289d5c['db'][_0x14210b(0x143)]},'before':_0x289d5c[_0x14210b(0x124)],'after':_0x36c3ac,'dryRun':_0x289d5c[_0x14210b(0x141)],'backend':{'method':'POST','path':_0x289d5c[_0x14210b(0x152)]},'warnings':[]};}function requiredTrim(_0xe0f7c1,_0x4df9b1){const _0x18174d=a55_0x6fe18c,_0x47862f=_0xe0f7c1[_0x18174d(0x12a)]();if(!_0x47862f)throw CliErrors[_0x18174d(0x13d)](_0x4df9b1+'\x20is\x20required.');return _0x47862f;}function normalizeCardinality(_0xaf7cf4){const _0xa2f0b3=a55_0x6fe18c,_0x5ed786=requiredTrim(_0xaf7cf4,'--cardinality')['toUpperCase']();if(!CARDINALITIES['includes'](_0x5ed786))throw CliErrors[_0xa2f0b3(0x13d)](_0xa2f0b3(0x154)+_0xaf7cf4,_0xa2f0b3(0x14e)+CARDINALITIES[_0xa2f0b3(0x12e)](',\x20'));return _0x5ed786;}function a55_0x57e1(_0x57d55f,_0xb8a519){_0x57d55f=_0x57d55f-0x11b;const _0x5b7a10=a55_0x5b7a();let _0x57e1ee=_0x5b7a10[_0x57d55f];return _0x57e1ee;}export function formatRelationSelector(_0x355c98){const _0x2cf6b7=a55_0x6fe18c;return _0x355c98['from'][_0x2cf6b7(0x146)]+'.'+_0x355c98[_0x2cf6b7(0x122)]['column']+_0x2cf6b7(0x13a)+_0x355c98['to'][_0x2cf6b7(0x146)]+'.'+_0x355c98['to'][_0x2cf6b7(0x14a)];}function sameName(_0x4d15b0,_0x345e15){const _0x117e9c=a55_0x6fe18c;return(_0x4d15b0??'')[_0x117e9c(0x12a)]()[_0x117e9c(0x123)]()===(_0x345e15??'')['trim']()[_0x117e9c(0x123)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a56_0xed5d8b=a56_0x1f2e;function a56_0x1f2e(_0x1b7a63,_0x472274){_0x1b7a63=_0x1b7a63-0x121;const _0x18b92f=a56_0x18b9();let _0x1f2ed7=_0x18b92f[_0x1b7a63];return _0x1f2ed7;}(function(_0x2a8efc,_0x4f14f6){const _0x246e9d=a56_0x1f2e,_0x4e84f9=_0x2a8efc();while(!![]){try{const _0x322bf3=parseInt(_0x246e9d(0x130))/0x1*(-parseInt(_0x246e9d(0x133))/0x2)+parseInt(_0x246e9d(0x128))/0x3+parseInt(_0x246e9d(0x129))/0x4+-parseInt(_0x246e9d(0x139))/0x5*(parseInt(_0x246e9d(0x138))/0x6)+-parseInt(_0x246e9d(0x12b))/0x7+-parseInt(_0x246e9d(0x122))/0x8*(parseInt(_0x246e9d(0x134))/0x9)+parseInt(_0x246e9d(0x124))/0xa;if(_0x322bf3===_0x4f14f6)break;else _0x4e84f9['push'](_0x4e84f9['shift']());}catch(_0xc09ce9){_0x4e84f9['push'](_0x4e84f9['shift']());}}}(a56_0x18b9,0x4597d));import{updateErRelation}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a56_0x18b9(){const _0x38a7b7=['2564912PCzFxk','POST','appCode','str','dbId','147302VsPgZO','column','/smartapi/question/er-config/update-single','4kJUoHy','9hFfqog','from','\x20->\x20','link-update','42qOAFUa','62395JPIOgI','write','3575928dhwQIy','validation','8741850NiCnwV','table','Updated\x20dataset\x20link:\x20','dataset','982890WwSJDP','1114408smOTNe','Would\x20update\x20dataset\x20link\x20'];a56_0x18b9=function(){return _0x38a7b7;};return a56_0x18b9();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{buildMutationData,DB_FLAG,FROM_COLUMN_FLAG,FROM_TABLE_FLAG,CARDINALITY_FLAG,findExistingLink,readLinkInput,relationToBackend,resolveRequiredDb,TO_COLUMN_FLAG,TO_LABEL_COLUMN_FLAG,TO_TABLE_FLAG}from'../../commands/dataset/link-shared.js';const BACKEND_PATH=a56_0xed5d8b(0x132);export const datasetLinkUpdate={'service':a56_0xed5d8b(0x127),'command':a56_0xed5d8b(0x137),'description':'Update\x20one\x20dataset\x20link\x20relation\x20metadata\x20in\x20the\x20ER\x20graph','risk':a56_0xed5d8b(0x121),'flags':[DB_FLAG,FROM_TABLE_FLAG,FROM_COLUMN_FLAG,TO_TABLE_FLAG,TO_COLUMN_FLAG,TO_LABEL_COLUMN_FLAG,CARDINALITY_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x14735e){readLinkInput(_0x14735e,{'includeLabelAndCardinality':!![]});},async 'dryRun'(_0x1c9ed6){const _0x16ddf6=a56_0xed5d8b,_0x39768a=await resolveRequiredDb(_0x1c9ed6[_0x16ddf6(0x12d)],_0x1c9ed6[_0x16ddf6(0x12e)]('db')),_0x58d203=readLinkInput(_0x1c9ed6,{'includeLabelAndCardinality':!![]});return{'method':_0x16ddf6(0x12c),'url':BACKEND_PATH,'body':{'appCode':_0x1c9ed6[_0x16ddf6(0x12d)],'dblinkId':_0x39768a[_0x16ddf6(0x12f)],'relation':relationToBackend(_0x58d203)},'description':_0x16ddf6(0x12a)+_0x58d203[_0x16ddf6(0x135)][_0x16ddf6(0x125)]+'.'+_0x58d203['from'][_0x16ddf6(0x131)]+'\x20->\x20'+_0x58d203['to'][_0x16ddf6(0x125)]+'.'+_0x58d203['to']['column']};},async 'execute'(_0x3edf7b){const _0x3160b1=a56_0xed5d8b,_0x48112e=await resolveRequiredDb(_0x3edf7b[_0x3160b1(0x12d)],_0x3edf7b['str']('db')),_0x455921=readLinkInput(_0x3edf7b,{'includeLabelAndCardinality':!![]}),_0x111d99=await findExistingLink(_0x3edf7b[_0x3160b1(0x12d)],_0x48112e[_0x3160b1(0x12f)],_0x455921);if(!_0x111d99)throw CliErrors[_0x3160b1(0x123)]('relation_not_found:\x20'+_0x455921[_0x3160b1(0x135)][_0x3160b1(0x125)]+'.'+_0x455921[_0x3160b1(0x135)][_0x3160b1(0x131)]+_0x3160b1(0x136)+_0x455921['to'][_0x3160b1(0x125)]+'.'+_0x455921['to']['column'],'Use\x20dataset\x20link-create\x20to\x20create\x20a\x20new\x20relation.');return await updateErRelation({'appCode':_0x3edf7b[_0x3160b1(0x12d)],'dblinkId':_0x48112e[_0x3160b1(0x12f)],'relation':relationToBackend(_0x455921)}),{'ok':!![],'data':buildMutationData({'operation':'update','appCode':_0x3edf7b[_0x3160b1(0x12d)],'db':_0x48112e,'input':_0x455921,'before':_0x111d99,'dryRun':![],'backendPath':BACKEND_PATH}),'message':_0x3160b1(0x126)+_0x455921[_0x3160b1(0x135)][_0x3160b1(0x125)]+'.'+_0x455921['from'][_0x3160b1(0x131)]+_0x3160b1(0x136)+_0x455921['to'][_0x3160b1(0x125)]+'.'+_0x455921['to'][_0x3160b1(0x131)]};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a57_0x16a01e=a57_0x5bc5;function a57_0x46b9(){const _0x2d1478=['384021LEMDGM','relationCount','\x20relation(s)','datasets','8TGlmOX','493774YFXTVK','tableName','datasetId','3940036kTbGEl','trim','bool','isPrimaryKey','Return\x20full\x20raw\x20ER\x20response\x20from\x20API','includes','meta','datasetCode','Defaults\x20to\x20auto-detect\x20all\x20linked\x20databases.','3fDtdbx','fields','1510201IDrOZI','dbId','MANY_TO_ONE','LEFT','string','appCode','320JYsPcm','links','read','filter','length','dbType','\x20database(s)','toField','\x20dataset(s),\x20','ONE_TO_MANY','relations','Get\x20the\x20link\x20graph\x20(entity-relationship)\x20for\x20the\x20app\x27s\x20datasets.\x20','ONE_TO_ONE','10097923ODZqNg','flatMap','name','reduce','3383526vBvKwS','toDataset','1dOElyR','MANY_TO_MANY','isForeignKey','9102028xAvaFi','12fDvqSV','5JGcXqd','Ideal\x20for\x20AI\x20to\x20understand\x20the\x20full\x20data\x20model\x20before\x20writing\x20queries,\x20BFF\x20scripts,\x20or\x20dataset\x20link\x20mutations.','joinType','map','fromField','verbose','toDatasetName','all','\x20database(s),\x20','stats','get'];a57_0x46b9=function(){return _0x2d1478;};return a57_0x46b9();}(function(_0x402bf3,_0x5a8002){const _0x365d04=a57_0x5bc5,_0x1bd34d=_0x402bf3();while(!![]){try{const _0x3757ac=parseInt(_0x365d04(0x155))/0x1*(parseInt(_0x365d04(0x12e))/0x2)+parseInt(_0x365d04(0x13a))/0x3*(parseInt(_0x365d04(0x131))/0x4)+parseInt(_0x365d04(0x11e))/0x5*(-parseInt(_0x365d04(0x153))/0x6)+parseInt(_0x365d04(0x13c))/0x7*(-parseInt(_0x365d04(0x12d))/0x8)+parseInt(_0x365d04(0x129))/0x9*(-parseInt(_0x365d04(0x142))/0xa)+-parseInt(_0x365d04(0x14f))/0xb*(-parseInt(_0x365d04(0x11d))/0xc)+parseInt(_0x365d04(0x11c))/0xd;if(_0x3757ac===_0x5a8002)break;else _0x1bd34d['push'](_0x1bd34d['shift']());}catch(_0x1f99af){_0x1bd34d['push'](_0x1bd34d['shift']());}}}(a57_0x46b9,0xac1cd));function a57_0x5bc5(_0x2b9862,_0x483b2d){_0x2b9862=_0x2b9862-0x11a;const _0x46b97d=a57_0x46b9();let _0x5bc507=_0x46b97d[_0x2b9862];return _0x5bc507;}import{getErConfig}from'../../core/api-client.js';import{resolveDb}from'../../core/db-resolver.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const datasetLinks={'service':'dataset','command':a57_0x16a01e(0x143),'description':a57_0x16a01e(0x14d)+'Returns\x20datasets,\x20fields,\x20and\x20explicit\x20relation\x20selectors\x20(fromTable/fromColumn/toTable/toColumn).\x20'+a57_0x16a01e(0x11f),'risk':a57_0x16a01e(0x144),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'db','type':a57_0x16a01e(0x140),'description':'Filter\x20by\x20database\x20—\x20accepts\x20a\x20numeric\x20dblink\x20ID\x20or\x20a\x20database\x20name\x20(e.g.\x20ecommerce_db).\x20'+a57_0x16a01e(0x139)},{'name':'verbose','type':'boolean','description':a57_0x16a01e(0x135)}],async 'execute'(_0x120f9b){const _0x39650a=a57_0x16a01e,_0x306f34=_0x120f9b[_0x39650a(0x133)](_0x39650a(0x123)),{resolved:_0x5d352b,error:_0x3d282e}=await resolveDb(_0x120f9b['appCode'],_0x120f9b['str']('db')||undefined);if(_0x3d282e)return{'ok':![],'message':_0x3d282e};const _0x862046=_0x5d352b[_0x39650a(0x121)](_0x2aa6e5=>_0x2aa6e5[_0x39650a(0x13d)]),_0x31015c=await Promise[_0x39650a(0x125)](_0x862046['map'](_0x2ef297=>getErConfig(_0x120f9b[_0x39650a(0x141)],_0x2ef297)));if(_0x306f34)return{'ok':!![],'data':_0x31015c['length']===0x1?_0x31015c[0x0]:_0x31015c,'message':'Fetched\x20link\x20graph\x20for\x20'+_0x862046[_0x39650a(0x146)]+_0x39650a(0x148)};const _0x3acd5e=_0x31015c['map'](_0x57ccc4=>{const _0x2e997b=_0x39650a,_0x2dc533=new Map((_0x57ccc4[_0x2e997b(0x12c)]??[])[_0x2e997b(0x121)](_0x42e555=>[_0x42e555[_0x2e997b(0x138)],_0x42e555[_0x2e997b(0x12f)]])),_0x3b1ef9=(_0x57ccc4[_0x2e997b(0x12c)]??[])[_0x2e997b(0x121)](_0x268343=>{const _0x15b5d8=_0x2e997b,_0x1c4c60=_0x268343[_0x15b5d8(0x13b)]?.['filter'](_0x38d97c=>_0x38d97c[_0x15b5d8(0x134)])[_0x15b5d8(0x121)](_0x43e4f5=>_0x43e4f5[_0x15b5d8(0x151)])??[],_0x5c5254=_0x268343[_0x15b5d8(0x13b)]?.[_0x15b5d8(0x145)](_0x288ac5=>_0x288ac5[_0x15b5d8(0x11b)])[_0x15b5d8(0x121)](_0x22088d=>_0x22088d[_0x15b5d8(0x151)])??[],_0x243597=(_0x268343[_0x15b5d8(0x14c)]??[])[_0x15b5d8(0x150)](_0x2e8095=>{const _0x4a4f88=_0x15b5d8;if(!_0x2e8095['fromField']||!_0x2e8095[_0x4a4f88(0x154)]||!_0x2e8095[_0x4a4f88(0x149)])return[];const _0x20d605=_0x268343[_0x4a4f88(0x12f)],_0x552158=_0x2e8095[_0x4a4f88(0x122)],_0x3b3185=_0x2dc533[_0x4a4f88(0x128)](_0x2e8095[_0x4a4f88(0x154)]);if(!_0x3b3185)return[];const _0x11a923=_0x2e8095[_0x4a4f88(0x149)],_0x12c099=normalizeCardinality(_0x2e8095[_0x4a4f88(0x120)]);return[{'fromTable':_0x20d605,'fromColumn':_0x552158,'toTable':_0x3b3185,'toColumn':_0x11a923,'cardinality':_0x12c099,'from':_0x552158,'toDataset':_0x2e8095[_0x4a4f88(0x124)],'toCode':_0x2e8095[_0x4a4f88(0x154)],'toField':_0x11a923,'joinType':_0x2e8095['joinType']||_0x4a4f88(0x13f)}];});return{'id':_0x268343[_0x15b5d8(0x130)],'name':_0x268343['datasetName'],'code':_0x268343[_0x15b5d8(0x138)],'table':_0x268343[_0x15b5d8(0x12f)],'comment':_0x268343['tableComment']||undefined,'fields':(_0x268343['fields']??[])[_0x15b5d8(0x121)](_0x377368=>({'name':_0x377368[_0x15b5d8(0x151)],'displayName':_0x377368['displayName'],'type':_0x377368[_0x15b5d8(0x147)],'pk':_0x377368[_0x15b5d8(0x134)],'fk':_0x377368[_0x15b5d8(0x11b)]})),'relations':_0x243597,'stats':{'fieldCount':_0x268343[_0x15b5d8(0x13b)]?.[_0x15b5d8(0x146)]??0x0,'pkCount':_0x1c4c60['length'],'fkCount':_0x5c5254[_0x15b5d8(0x146)],'relationCount':_0x243597[_0x15b5d8(0x146)]}};}),_0x19ca52=_0x3b1ef9[_0x2e997b(0x145)](_0x1b79f8=>_0x1b79f8[_0x2e997b(0x127)][_0x2e997b(0x12a)]>0x0)[_0x2e997b(0x121)](_0x29ac91=>_0x29ac91[_0x2e997b(0x151)]);return{'db':_0x57ccc4[_0x2e997b(0x137)]?.['dbName'],'dbId':_0x57ccc4[_0x2e997b(0x137)]?.[_0x2e997b(0x13d)],'appCode':_0x57ccc4['meta']?.[_0x2e997b(0x141)],'datasetCount':_0x3b1ef9[_0x2e997b(0x146)],'connectedDatasets':_0x19ca52,'datasets':_0x3b1ef9};}),_0x4159d0=_0x3acd5e[_0x39650a(0x152)]((_0x3ee5d6,_0x9ac6ff)=>_0x3ee5d6+_0x9ac6ff['datasetCount'],0x0),_0x599372=_0x3acd5e['reduce']((_0x29a228,_0x507db5)=>_0x29a228+_0x507db5[_0x39650a(0x12c)][_0x39650a(0x152)]((_0x5efd77,_0x104392)=>_0x5efd77+_0x104392[_0x39650a(0x127)][_0x39650a(0x12a)],0x0),0x0);return{'ok':!![],'data':_0x3acd5e['length']===0x1?_0x3acd5e[0x0]:{'databases':_0x3acd5e},'message':'Link\x20graph:\x20'+_0x3acd5e[_0x39650a(0x146)]+_0x39650a(0x126)+_0x4159d0+_0x39650a(0x14a)+_0x599372+_0x39650a(0x12b)};}};function normalizeCardinality(_0x2c4d3f){const _0x5e844f=a57_0x16a01e,_0x2e1e76=_0x2c4d3f?.[_0x5e844f(0x132)]()['toUpperCase']();if(!_0x2e1e76)return undefined;return[_0x5e844f(0x14e),_0x5e844f(0x14b),_0x5e844f(0x13e),_0x5e844f(0x11a)][_0x5e844f(0x136)](_0x2e1e76)?_0x2e1e76:undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a58_0x106079=a58_0x3551;(function(_0x5cf220,_0x47f47a){const _0x598329=a58_0x3551,_0x220136=_0x5cf220();while(!![]){try{const _0x1f14a7=-parseInt(_0x598329(0x1e2))/0x1*(-parseInt(_0x598329(0x1df))/0x2)+parseInt(_0x598329(0x1d2))/0x3+-parseInt(_0x598329(0x1d5))/0x4*(parseInt(_0x598329(0x1eb))/0x5)+-parseInt(_0x598329(0x1e4))/0x6+-parseInt(_0x598329(0x1ea))/0x7+-parseInt(_0x598329(0x1d4))/0x8+parseInt(_0x598329(0x1dd))/0x9*(parseInt(_0x598329(0x1de))/0xa);if(_0x1f14a7===_0x47f47a)break;else _0x220136['push'](_0x220136['shift']());}catch(_0x2cb8d7){_0x220136['push'](_0x220136['shift']());}}}(a58_0xb82e,0xd4c22));import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a58_0xb82e(){const _0x4e967c=['name','Filter\x20datasets\x20by\x20name\x20(server-side\x20fuzzy\x20match)','54819fffkhN','1870SuhBfp','22HtMqXs','list','map','133061EvoLbO','string','4451412RaGojH','str','trim','code','dbtableConfig','description','7198107KapYlN','5vsIbMG','length','allFields','dataset','2847099RPeqka','appCode','375352KYCJQQ','3452564mbXaZx','List\x20all\x20datasets\x20with\x20metadata','pkField','datasetKey','\x20dataset(s)','tableName'];a58_0xb82e=function(){return _0x4e967c;};return a58_0xb82e();}function a58_0x3551(_0x16a5e5,_0x4d1247){_0x16a5e5=_0x16a5e5-0x1d1;const _0xb82e8d=a58_0xb82e();let _0x35518d=_0xb82e8d[_0x16a5e5];return _0x35518d;}export const datasetList={'service':a58_0x106079(0x1d1),'command':a58_0x106079(0x1e0),'description':a58_0x106079(0x1d6),'risk':'read','flags':[{'name':a58_0x106079(0x1db),'type':a58_0x106079(0x1e3),'description':a58_0x106079(0x1dc)},CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x272705){const _0x2dc0bb=a58_0x106079,_0x4d9308=_0x272705['str']('name'),_0x3f7dd7=_0x272705[_0x2dc0bb(0x1e5)]('code'),_0x18af38=await listDatasets(_0x272705[_0x2dc0bb(0x1d3)],{..._0x4d9308&&{'name':_0x4d9308},..._0x3f7dd7&&{'code':_0x3f7dd7}}),_0x4cfee2=_0x18af38[_0x2dc0bb(0x1e1)](_0x1cf00e=>{const _0xbdd4b8=_0x2dc0bb,_0x14e2f3=_0x1cf00e[_0xbdd4b8(0x1e8)]??{};return{'id':_0x1cf00e['id'],'name':_0x1cf00e[_0xbdd4b8(0x1db)],'code':_0x1cf00e[_0xbdd4b8(0x1e7)],'description':_0x1cf00e[_0xbdd4b8(0x1e9)],'source':_0x1cf00e['source'],'db':_0x14e2f3['dbName'],'table':_0x14e2f3[_0xbdd4b8(0x1da)],'datasetKey':_0x14e2f3[_0xbdd4b8(0x1d8)],'pk':_0x14e2f3[_0xbdd4b8(0x1d7)],'fields':_0x14e2f3[_0xbdd4b8(0x1ed)]?_0x14e2f3[_0xbdd4b8(0x1ed)]['split'](',')[_0xbdd4b8(0x1e1)](_0x302916=>_0x302916[_0xbdd4b8(0x1e6)]()):[]};});return{'ok':!![],'data':{'total':_0x4cfee2['length'],'datasets':_0x4cfee2},'message':'Found\x20'+_0x4cfee2[_0x2dc0bb(0x1ec)]+_0x2dc0bb(0x1d9)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a59_0x28b175=a59_0x1a97;(function(_0x11e450,_0x3dd7ec){const _0x1a748a=a59_0x1a97,_0x38a4fc=_0x11e450();while(!![]){try{const _0x3290e9=-parseInt(_0x1a748a(0x150))/0x1+-parseInt(_0x1a748a(0x154))/0x2+parseInt(_0x1a748a(0x14d))/0x3+-parseInt(_0x1a748a(0x153))/0x4*(parseInt(_0x1a748a(0x152))/0x5)+parseInt(_0x1a748a(0x149))/0x6+parseInt(_0x1a748a(0x14f))/0x7+parseInt(_0x1a748a(0x14a))/0x8;if(_0x3290e9===_0x3dd7ec)break;else _0x38a4fc['push'](_0x38a4fc['shift']());}catch(_0xde143c){_0x38a4fc['push'](_0x38a4fc['shift']());}}}(a59_0x15bc,0x19010));function a59_0x1a97(_0x300f33,_0x512b91){_0x300f33=_0x300f33-0x147;const _0x15bcf9=a59_0x15bc();let _0x1a971f=_0x15bcf9[_0x300f33];return _0x1a971f;}function a59_0x15bc(){const _0xb27074=['1245062mbOPnT','1867UZzrKw','length','862745ptgVRS','4dqHMLD','265252MdIcoH','operation','Return\x20full\x20operation\x20objects\x20including\x20requestFields\x20and\x20responseFields','verbose','string','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','type','bool','enabled','str','181260XgpRIY','1141072pGpZTV','appCode','boolean','176244uXqTHo','method'];a59_0x15bc=function(){return _0xb27074;};return a59_0x15bc();}import{getDatasetOperations,getOperationDetail}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const datasetOperations={'service':'dataset','command':'operations','description':'Get\x20operations\x20for\x20a\x20dataset,\x20optionally\x20with\x20full\x20detail\x20for\x20one\x20operation','risk':'read','flags':[CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL,{'name':'alias','type':'string','description':a59_0x28b175(0x159)},{'name':a59_0x28b175(0x155),'type':a59_0x28b175(0x158),'description':'Operation\x20name\x20to\x20get\x20full\x20detail\x20(e.g.\x20filter,\x20getOne,\x20create)'},{'name':a59_0x28b175(0x157),'type':a59_0x28b175(0x14c),'description':a59_0x28b175(0x156)}],async 'execute'(_0x2c1f4e){const _0x356100=a59_0x28b175,_0x38ea7e=_0x2c1f4e[_0x356100(0x148)]('code'),_0x439d73=_0x2c1f4e['str']('operation'),_0x153cfd=_0x2c1f4e[_0x356100(0x15b)]('verbose');if(_0x439d73){const {dataset:_0x1a459d,operation:_0x39f641}=await getOperationDetail(_0x2c1f4e[_0x356100(0x14b)],_0x38ea7e,_0x439d73);return{'ok':!![],'data':{'dataset':_0x1a459d,'operation':_0x39f641}};}const {dataset:_0x3aa875,operations:_0x516c73}=await getDatasetOperations(_0x38ea7e);return{'ok':!![],'data':{'dataset':_0x3aa875,'total':_0x516c73[_0x356100(0x151)],'operations':_0x153cfd?_0x516c73:_0x516c73['map'](_0x34e28b=>({'name':_0x34e28b['name'],'displayName':_0x34e28b['displayName'],'type':_0x34e28b[_0x356100(0x15a)],'method':_0x34e28b[_0x356100(0x14e)],'enabled':_0x34e28b[_0x356100(0x147)]}))}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a60_0x289a(_0x1b60ae,_0x73349d){_0x1b60ae=_0x1b60ae-0x114;const _0x3fc186=a60_0x3fc1();let _0x289afc=_0x3fc186[_0x1b60ae];return _0x289afc;}const a60_0x28bd25=a60_0x289a;(function(_0x5f56d0,_0x3ebf3a){const _0x61bd7a=a60_0x289a,_0x423f8c=_0x5f56d0();while(!![]){try{const _0x4afec3=-parseInt(_0x61bd7a(0x116))/0x1+-parseInt(_0x61bd7a(0x114))/0x2*(parseInt(_0x61bd7a(0x121))/0x3)+-parseInt(_0x61bd7a(0x123))/0x4*(-parseInt(_0x61bd7a(0x117))/0x5)+-parseInt(_0x61bd7a(0x11d))/0x6*(parseInt(_0x61bd7a(0x11a))/0x7)+parseInt(_0x61bd7a(0x122))/0x8*(parseInt(_0x61bd7a(0x124))/0x9)+-parseInt(_0x61bd7a(0x126))/0xa+parseInt(_0x61bd7a(0x11f))/0xb;if(_0x4afec3===_0x3ebf3a)break;else _0x423f8c['push'](_0x423f8c['shift']());}catch(_0x2928b7){_0x423f8c['push'](_0x423f8c['shift']());}}}(a60_0x3fc1,0x653eb));function a60_0x3fc1(){const _0x11a590=['32067PVgzOX','No\x20latestAnalysisTraceId\x20on\x20this\x20link.\x20Pass\x20--plan\x20<traceId>\x20from\x20db\x20list/detail.','3873120TwPcxG','Cancel\x20a\x20running\x20schema\x20analysis.\x20Omit\x20--plan\x20to\x20use\x20latestAnalysisTraceId\x20from\x20the\x20link','plan','string','41252omifUf','Cancel\x20requested\x20for\x20plan\x20','441071TSZfwG','3225485ztbITJ','str','Analysis\x20may\x20already\x20be\x20finished\x20or\x20never\x20started.','304857JLbWYU','num','latestAnalysisTraceId','54HfYvQn','analyze-cancel','8700681PXrzqq','validation','12lanxRz','632cKxepD','4FDKVNR'];a60_0x3fc1=function(){return _0x11a590;};return a60_0x3fc1();}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':a60_0x28bd25(0x11e),'description':a60_0x28bd25(0x127),'risk':'write','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':'plan','type':a60_0x28bd25(0x129),'description':'Analysis\x20plan\x20/\x20trace\x20id\x20(optional\x20—\x20defaults\x20to\x20latest\x20trace\x20from\x20db\x20list/detail)'}],async 'execute'(_0x73f7e6){const _0x28581b=a60_0x28bd25,_0x2cf01a=_0x73f7e6[_0x28581b(0x11b)]('id');let _0x2a8888=_0x73f7e6[_0x28581b(0x118)](_0x28581b(0x128))||undefined;if(!_0x2a8888){const _0x8acaa1=await getDbLinkInfo(_0x2cf01a);_0x2a8888=_0x8acaa1[_0x28581b(0x11c)]??undefined;if(!_0x2a8888)throw CliErrors[_0x28581b(0x120)](_0x28581b(0x125),_0x28581b(0x119));}return await cancelDbAnalysis(_0x2a8888),{'ok':!![],'data':{'dbLinkId':_0x2cf01a,'planId':_0x2a8888},'message':_0x28581b(0x115)+_0x2a8888};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a61_0x2f34(){const _0x29e311=['1224120wINYzI','22HlYHBC','map','2291842kVuSMq','Start\x20schema\x20analysis\x20(full\x20or\x20incremental\x20table\x20list).\x20Returns\x20planId\x20for\x20analyze-status','analyze-start','6jQKqmr','filter','632405eHBxDe','9OnymOf','1lIDsEw','570040bCrkMt','str','8367720JhffGI','tables','appCode','string','Comma-separated\x20table\x20names\x20for\x20incremental\x20analysis\x20(omit\x20for\x20full\x20analysis)','1789986UItqld','3627608pveXNw'];a61_0x2f34=function(){return _0x29e311;};return a61_0x2f34();}const a61_0x2b6b56=a61_0xe412;function a61_0xe412(_0x572776,_0x30f8a5){_0x572776=_0x572776-0x115;const _0x2f3448=a61_0x2f34();let _0xe41213=_0x2f3448[_0x572776];return _0xe41213;}(function(_0x2b9c6d,_0x121acd){const _0x342132=a61_0xe412,_0x4f6bc4=_0x2b9c6d();while(!![]){try{const _0x3588b8=-parseInt(_0x342132(0x11e))/0x1*(parseInt(_0x342132(0x128))/0x2)+-parseInt(_0x342132(0x126))/0x3+-parseInt(_0x342132(0x11f))/0x4+-parseInt(_0x342132(0x11c))/0x5*(-parseInt(_0x342132(0x11a))/0x6)+parseInt(_0x342132(0x117))/0x7+-parseInt(_0x342132(0x127))/0x8*(parseInt(_0x342132(0x11d))/0x9)+parseInt(_0x342132(0x121))/0xa*(parseInt(_0x342132(0x115))/0xb);if(_0x3588b8===_0x121acd)break;else _0x4f6bc4['push'](_0x4f6bc4['shift']());}catch(_0x394417){_0x4f6bc4['push'](_0x4f6bc4['shift']());}}}(a61_0x2f34,0x4ecbc));import{startDbAnalysis}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks}from'../../commands/db/shared.js';export const dbAnalyzeStart={'service':'db','command':a61_0x2b6b56(0x119),'description':a61_0x2b6b56(0x118),'risk':'write','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':'tables','type':a61_0x2b6b56(0x124),'description':a61_0x2b6b56(0x125)}],async 'execute'(_0x19363f){const _0x1f05c4=a61_0x2b6b56,_0x203582=_0x19363f['num']('id'),_0x811a12=_0x19363f[_0x1f05c4(0x120)](_0x1f05c4(0x122)),_0x595925=_0x811a12?_0x811a12['split'](',')[_0x1f05c4(0x116)](_0x7f1ef7=>_0x7f1ef7['trim']())[_0x1f05c4(0x11b)](Boolean):undefined,_0x504ec8=await startDbAnalysis(_0x203582,_0x595925),_0x1b2e70=buildDbPageLinks(_0x19363f[_0x1f05c4(0x123)],_0x203582);return{'ok':!![],'data':{'dbLinkId':_0x203582,'planId':_0x504ec8,'tableNames':_0x595925??[],..._0x1b2e70?{'links':_0x1b2e70}:{}},'message':'Started\x20analysis\x20for\x20db\x20link\x20'+_0x203582};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a62_0xd066(_0x16daf7,_0x442315){_0x16daf7=_0x16daf7-0xf6;const _0x2cdbc3=a62_0x2cdb();let _0xd0669b=_0x2cdbc3[_0x16daf7];return _0xd0669b;}const a62_0x33a893=a62_0xd066;(function(_0x22138b,_0x3aba85){const _0x3eeb60=a62_0xd066,_0x3cd9ab=_0x22138b();while(!![]){try{const _0x3359df=-parseInt(_0x3eeb60(0xf9))/0x1*(parseInt(_0x3eeb60(0x102))/0x2)+-parseInt(_0x3eeb60(0xfd))/0x3+-parseInt(_0x3eeb60(0x104))/0x4*(parseInt(_0x3eeb60(0x101))/0x5)+parseInt(_0x3eeb60(0x10b))/0x6*(-parseInt(_0x3eeb60(0x106))/0x7)+parseInt(_0x3eeb60(0xfa))/0x8*(parseInt(_0x3eeb60(0xfe))/0x9)+-parseInt(_0x3eeb60(0xf6))/0xa*(parseInt(_0x3eeb60(0x100))/0xb)+-parseInt(_0x3eeb60(0xf8))/0xc*(-parseInt(_0x3eeb60(0x103))/0xd);if(_0x3359df===_0x3aba85)break;else _0x3cd9ab['push'](_0x3cd9ab['shift']());}catch(_0x118b8d){_0x3cd9ab['push'](_0x3cd9ab['shift']());}}}(a62_0x2cdb,0x35e2a));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':a62_0x33a893(0x108),'description':'Fetch\x20schema\x20analysis\x20job\x20status\x20by\x20plan\x20/\x20trace\x20id','risk':a62_0x33a893(0xfc),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a62_0x33a893(0xf7),'type':a62_0x33a893(0x10a),'required':!![],'description':a62_0x33a893(0x107)}],async 'execute'(_0x4c0560){const _0x11e5db=a62_0x33a893,_0x4eea52=_0x4c0560[_0x11e5db(0x105)]('id'),_0x1f766b=_0x4c0560[_0x11e5db(0x109)](_0x11e5db(0xf7)),_0x23de78=await getDbAnalysisStatus(_0x1f766b),_0x31aea9=buildDbPageLinks(_0x4c0560[_0x11e5db(0xfb)],_0x4eea52);return{'ok':!![],'data':{'dbLinkId':_0x4eea52,'planId':_0x1f766b,'status':_0x23de78,..._0x31aea9?{'links':_0x31aea9}:{}},'message':_0x11e5db(0xff)+_0x1f766b};}};function a62_0x2cdb(){const _0x5cedcf=['10AGcyLg','plan','120wIutBj','274NUbHRA','157576BWydmA','appCode','read','317379ChaDNN','9UxpAJF','Analysis\x20status\x20for\x20','3650141vjLzmZ','20frNAYl','698zktYWW','1584739xdrWQS','326444poNvlR','num','147AEaoES','Analysis\x20plan\x20/\x20trace\x20id\x20(from\x20analyze-start\x20or\x20db\x20list\x20latestAnalysisTraceId)','analyze-status','str','string','45234ubntRa'];a62_0x2cdb=function(){return _0x5cedcf;};return a62_0x2cdb();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a63_0x2f12(_0xa1be5b,_0x39864f){_0xa1be5b=_0xa1be5b-0xd6;const _0x49ea8c=a63_0x49ea();let _0x2f12c0=_0x49ea8c[_0xa1be5b];return _0x2f12c0;}const a63_0x22662b=a63_0x2f12;(function(_0x29813a,_0xf2635c){const _0xebe663=a63_0x2f12,_0x55d3a7=_0x29813a();while(!![]){try{const _0x3cb653=parseInt(_0xebe663(0xd7))/0x1+parseInt(_0xebe663(0x102))/0x2+parseInt(_0xebe663(0xf2))/0x3*(-parseInt(_0xebe663(0xe7))/0x4)+-parseInt(_0xebe663(0x103))/0x5*(parseInt(_0xebe663(0xea))/0x6)+parseInt(_0xebe663(0xd6))/0x7*(parseInt(_0xebe663(0xe1))/0x8)+parseInt(_0xebe663(0xdc))/0x9+-parseInt(_0xebe663(0xf1))/0xa*(-parseInt(_0xebe663(0x100))/0xb);if(_0x3cb653===_0xf2635c)break;else _0x55d3a7['push'](_0x55d3a7['shift']());}catch(_0x3b617e){_0x55d3a7['push'](_0x55d3a7['shift']());}}}(a63_0x49ea,0xe1473));import{createDbLink,startDbAnalysis}from'../../core/api-client.js';function a63_0x49ea(){const _0x91379e=[';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning','Database\x20password','autostart','Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','dbdesc','Extra\x20JDBC-style\x20connection\x20parameters\x20string','dbparam','22JbszfT','Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','1944112mkgWjf','5YjwBQp','\x20and\x20started\x20analysis','bool','29449mWEkMS','599702Gqsdks','POST','[redacted]','Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22','Created\x20db\x20link\x20','3001878bNHLuh','boolean','Database\x20username','Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server','validation','1928GTJgdN','trim','message','appCode','No\x20follow-up\x20analysis','dburl','132164Goqdyv','join','Host\x20and\x20port:\x20host:port','10611294rJYkGv','write','dbversion','Human-readable\x20description','databasePage','str','password','4973090eFZLho','111nRIDpF','Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id','Create\x20dblink','create','Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','8.0','string'];a63_0x49ea=function(){return _0x91379e;};return a63_0x49ea();}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';export const dbCreate={'service':'db','command':a63_0x22662b(0xf5),'description':a63_0x22662b(0x101),'risk':a63_0x22662b(0xeb),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':a63_0x22662b(0xf8),'required':!![],'description':a63_0x22662b(0xdf)},DB_TYPE_FLAG,{'name':a63_0x22662b(0xec),'type':'string','description':a63_0x22662b(0xf6),'default':a63_0x22662b(0xf7)},{'name':'dburl','type':'string','required':!![],'description':a63_0x22662b(0xe9)},{'name':'username','type':'string','required':!![],'description':a63_0x22662b(0xde)},{'name':a63_0x22662b(0xf0),'type':'string','required':!![],'description':a63_0x22662b(0xfa)},{'name':a63_0x22662b(0xff),'type':'string','description':a63_0x22662b(0xfe)},{'name':a63_0x22662b(0xfd),'type':a63_0x22662b(0xf8),'description':a63_0x22662b(0xed)},{'name':a63_0x22662b(0xfb),'type':a63_0x22662b(0xdd),'description':'After\x20create,\x20start\x20schema\x20analysis','default':![]}],async 'validate'(_0x5c925b){const _0x5b5daf=a63_0x22662b,_0x12514d=_0x5c925b[_0x5b5daf(0xef)](_0x5b5daf(0xe6))['trim']();if(!validateDbUrl(_0x12514d))throw CliErrors[_0x5b5daf(0xe0)](_0x5b5daf(0xda)+_0x12514d+'\x22','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.');},async 'dryRun'(_0x3d3d1f){const _0x14c733=a63_0x22662b,_0x38f556={'appCode':_0x3d3d1f[_0x14c733(0xe4)],'dbName':_0x3d3d1f[_0x14c733(0xef)]('dbname'),'dbType':_0x3d3d1f['str']('dbtype'),'dbVersion':_0x3d3d1f[_0x14c733(0xef)]('dbversion')||_0x14c733(0xf7),'dbUrl':_0x3d3d1f[_0x14c733(0xef)]('dburl')[_0x14c733(0xe2)](),'username':_0x3d3d1f[_0x14c733(0xef)]('username'),'password':_0x14c733(0xd9),..._0x3d3d1f[_0x14c733(0xef)](_0x14c733(0xff))?{'dbParam':_0x3d3d1f[_0x14c733(0xef)](_0x14c733(0xff))}:{},..._0x3d3d1f[_0x14c733(0xef)]('dbdesc')?{'dbDesc':_0x3d3d1f[_0x14c733(0xef)](_0x14c733(0xfd))}:{}};return{'method':_0x14c733(0xd8),'url':'/smartapi/dblink/create','body':_0x38f556,'description':[_0x14c733(0xf4),_0x3d3d1f[_0x14c733(0x105)](_0x14c733(0xfb))?_0x14c733(0xf3):_0x14c733(0xe5)][_0x14c733(0xe8)]('\x0a')};},async 'execute'(_0x58e912){const _0x3e72e4=a63_0x22662b,_0x6eef7f={'appCode':_0x58e912[_0x3e72e4(0xe4)],'dbName':_0x58e912[_0x3e72e4(0xef)]('dbname'),'dbType':_0x58e912[_0x3e72e4(0xef)]('dbtype'),'dbVersion':_0x58e912[_0x3e72e4(0xef)](_0x3e72e4(0xec))||'8.0','dbUrl':_0x58e912[_0x3e72e4(0xef)]('dburl')[_0x3e72e4(0xe2)](),'username':_0x58e912[_0x3e72e4(0xef)]('username'),'password':_0x58e912['str'](_0x3e72e4(0xf0)),..._0x58e912[_0x3e72e4(0xef)](_0x3e72e4(0xff))?{'dbParam':_0x58e912['str'](_0x3e72e4(0xff))}:{},..._0x58e912['str'](_0x3e72e4(0xfd))?{'dbDesc':_0x58e912[_0x3e72e4(0xef)](_0x3e72e4(0xfd))}:{}},{id:_0x193e1b,entity:_0x216891}=normalizeEntityWithIdResponse(await createDbLink(_0x6eef7f));if(!_0x193e1b)return{'ok':![],'message':_0x3e72e4(0xfc),'data':sanitizeDbLinkForOutput(_0x216891)};let _0x84155,_0x3537dd;if(_0x58e912['bool'](_0x3e72e4(0xfb)))try{_0x84155=await startDbAnalysis(_0x193e1b);}catch(_0x2a1624){_0x3537dd=_0x2a1624 instanceof Error?_0x2a1624[_0x3e72e4(0xe3)]:String(_0x2a1624);}const _0xc6871=buildDbPageLinks(_0x58e912[_0x3e72e4(0xe4)],_0x193e1b),_0xf1efee={'connection':sanitizeDbLinkForOutput(_0x216891),..._0xc6871?{'links':{'databasePage':_0xc6871[_0x3e72e4(0xee)]}}:{},..._0x84155?{'analysisPlanId':_0x84155}:{},..._0x3537dd?{'analysisStartWarning':_0x3537dd}:{}};let _0x35c7d2;return _0x58e912['bool'](_0x3e72e4(0xfb))?_0x3537dd?_0x35c7d2='Created\x20db\x20link\x20'+_0x193e1b+_0x3e72e4(0xf9):_0x35c7d2=_0x3e72e4(0xdb)+_0x193e1b+_0x3e72e4(0x104):_0x35c7d2='Created\x20db\x20link\x20'+_0x193e1b,{'ok':!![],'data':_0xf1efee,'message':_0x35c7d2};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a64_0x5bdc(){const _0x6ef8d1=['1437242ktGedT','471246KZyrTl','high-risk-write','Delete\x20a\x20database\x20connection\x20(dblink)\x20permanently','Deleted\x20db\x20link\x20','946444aRIhmO','537074CCjBIL','272823OvusYj','delete','num','2902445zSXHph','42MRKptS','10659288LcZofF'];a64_0x5bdc=function(){return _0x6ef8d1;};return a64_0x5bdc();}const a64_0x570001=a64_0x4dd1;(function(_0x93ba94,_0x255e15){const _0x587d79=a64_0x4dd1,_0x50efa3=_0x93ba94();while(!![]){try{const _0xade751=parseInt(_0x587d79(0x1a3))/0x1+-parseInt(_0x587d79(0x1aa))/0x2+parseInt(_0x587d79(0x1a4))/0x3+parseInt(_0x587d79(0x1af))/0x4+-parseInt(_0x587d79(0x1a7))/0x5+-parseInt(_0x587d79(0x1ab))/0x6*(parseInt(_0x587d79(0x1a8))/0x7)+parseInt(_0x587d79(0x1a9))/0x8;if(_0xade751===_0x255e15)break;else _0x50efa3['push'](_0x50efa3['shift']());}catch(_0x5f206b){_0x50efa3['push'](_0x50efa3['shift']());}}}(a64_0x5bdc,0x682b9));import{deleteDbLink}from'../../core/api-client.js';function a64_0x4dd1(_0x3ec60b,_0x14fba5){_0x3ec60b=_0x3ec60b-0x1a3;const _0x5bdc39=a64_0x5bdc();let _0x4dd1b7=_0x5bdc39[_0x3ec60b];return _0x4dd1b7;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbDelete={'service':'db','command':a64_0x570001(0x1a5),'description':a64_0x570001(0x1ad),'risk':a64_0x570001(0x1ac),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x43dd33){const _0x2b4d88=a64_0x570001,_0x4c6779=_0x43dd33[_0x2b4d88(0x1a6)]('id');return await deleteDbLink(_0x4c6779),{'ok':!![],'data':{'id':_0x4c6779,'deleted':!![]},'message':_0x2b4d88(0x1ae)+_0x4c6779};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a65_0x479edc=a65_0x5566;function a65_0x5566(_0x540246,_0x49536f){_0x540246=_0x540246-0x1e7;const _0x43ebfa=a65_0x43eb();let _0x556672=_0x43ebfa[_0x540246];return _0x556672;}(function(_0x40e459,_0x1fcc5d){const _0x2ccb40=a65_0x5566,_0x5dae84=_0x40e459();while(!![]){try{const _0x23aa31=-parseInt(_0x2ccb40(0x1ef))/0x1*(parseInt(_0x2ccb40(0x1ec))/0x2)+-parseInt(_0x2ccb40(0x1eb))/0x3*(parseInt(_0x2ccb40(0x1f0))/0x4)+parseInt(_0x2ccb40(0x1ea))/0x5*(-parseInt(_0x2ccb40(0x1ed))/0x6)+-parseInt(_0x2ccb40(0x1e7))/0x7+-parseInt(_0x2ccb40(0x1e9))/0x8*(parseInt(_0x2ccb40(0x1f1))/0x9)+-parseInt(_0x2ccb40(0x1f5))/0xa*(-parseInt(_0x2ccb40(0x1ee))/0xb)+parseInt(_0x2ccb40(0x1f2))/0xc*(parseInt(_0x2ccb40(0x1f4))/0xd);if(_0x23aa31===_0x1fcc5d)break;else _0x5dae84['push'](_0x5dae84['shift']());}catch(_0x2a7933){_0x5dae84['push'](_0x5dae84['shift']());}}}(a65_0x43eb,0x6d57c));import{getDbLinkInfo}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbDetail={'service':'db','command':a65_0x479edc(0x1e8),'description':a65_0x479edc(0x1f8),'risk':a65_0x479edc(0x1f9),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x9480b0){const _0x3e8464=a65_0x479edc,_0xf2560e=_0x9480b0[_0x3e8464(0x1f6)]('id'),_0x332b82=await getDbLinkInfo(_0xf2560e);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x332b82),'message':_0x3e8464(0x1f7)+_0xf2560e+':\x20'+_0x332b82[_0x3e8464(0x1f3)]};}};function a65_0x43eb(){const _0x197683=['9VxuFOw','180HiIYbp','dbName','2970006oyuwQH','10XFfAIy','num','db\x20link\x20','Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','read','118797CGvheu','detail','6634352RTbXpq','909135FlbYAZ','2359521nLnhEU','4NjVTra','24SfGXcQ','1234178quOAEp','365590QiqwVl','4oKQUOc'];a65_0x43eb=function(){return _0x197683;};return a65_0x43eb();}
|
package/lib/commands/db/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a66_0x5c7324=a66_0x4b8c;(function(_0x38ca52,_0x1f513f){const _0x19ffd4=a66_0x4b8c,_0x2c02ef=_0x38ca52();while(!![]){try{const _0x271fe7=-parseInt(_0x19ffd4(0x1ea))/0x1*(-parseInt(_0x19ffd4(0x1fd))/0x2)+parseInt(_0x19ffd4(0x1ee))/0x3*(-parseInt(_0x19ffd4(0x1f0))/0x4)+-parseInt(_0x19ffd4(0x1f4))/0x5*(-parseInt(_0x19ffd4(0x200))/0x6)+parseInt(_0x19ffd4(0x1e6))/0x7*(parseInt(_0x19ffd4(0x1ec))/0x8)+parseInt(_0x19ffd4(0x1f8))/0x9*(parseInt(_0x19ffd4(0x1f1))/0xa)+-parseInt(_0x19ffd4(0x1f3))/0xb+-parseInt(_0x19ffd4(0x1f9))/0xc;if(_0x271fe7===_0x1f513f)break;else _0x2c02ef['push'](_0x2c02ef['shift']());}catch(_0x5a9b9e){_0x2c02ef['push'](_0x2c02ef['shift']());}}}(a66_0x3809,0x77104));import{getDbTableDiff}from'../../core/api-client.js';function a66_0x3809(){const _0x2c41a6=['table','281898TAfCPa','23657952UptoDf','num','\x20row(s),\x20total\x20','number','22rOJUNS','Page\x20index\x20(1-based)','length','95856ssGXqG','6000687CTpGdO','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','str','page','69189tYitSE','appCode','8GXuoYn','Page\x20size','3ZciAFX','pagesize','1713884KetmZW','150CmdHTT','Paged\x20diff\x20between\x20live\x20database\x20schema\x20and\x20last\x20analyzed\x20snapshot\x20(new\x20/\x20deleted\x20/\x20modified\x20tables)','343761LxSIIE','260uxqgDS','\x20(db\x20link\x20','read'];a66_0x3809=function(){return _0x2c41a6;};return a66_0x3809();}function a66_0x4b8c(_0x41571d,_0x13f399){_0x41571d=_0x41571d-0x1e6;const _0x38090f=a66_0x3809();let _0x4b8cf8=_0x38090f[_0x41571d];return _0x4b8cf8;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbDiff={'service':'db','command':'diff','description':a66_0x5c7324(0x1f2),'risk':a66_0x5c7324(0x1f6),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'table','type':'string','description':a66_0x5c7324(0x1e7)},{'name':'page','type':a66_0x5c7324(0x1fc),'description':a66_0x5c7324(0x1fe),'default':0x1},{'name':a66_0x5c7324(0x1ef),'type':a66_0x5c7324(0x1fc),'description':a66_0x5c7324(0x1ed),'default':0x14}],async 'execute'(_0x28b81c){const _0x304c3f=a66_0x5c7324,_0x2f6b57=_0x28b81c[_0x304c3f(0x1fa)]('id'),_0x237636=_0x28b81c['num'](_0x304c3f(0x1e9),0x1)||0x1,_0x152a14=_0x28b81c[_0x304c3f(0x1fa)]('pagesize',0x14)||0x14,_0x29642f=_0x28b81c[_0x304c3f(0x1e8)](_0x304c3f(0x1f7))||undefined,{totalCount:_0x3138b9,tableList:_0x55ea5f}=await getDbTableDiff(_0x28b81c[_0x304c3f(0x1eb)],_0x2f6b57,{'pageIndex':_0x237636,'pageSize':_0x152a14,'tableName':_0x29642f});return{'ok':!![],'data':{'dbLinkId':_0x2f6b57,'page':_0x237636,'pageSize':_0x152a14,'totalCount':_0x3138b9,'tableList':_0x55ea5f},'message':_0x55ea5f[_0x304c3f(0x1ff)]+_0x304c3f(0x1fb)+_0x3138b9+_0x304c3f(0x1f5)+_0x2f6b57+')'};}};
|
package/lib/commands/db/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5a9c29,_0x354dfa){const _0x41f165=a67_0x3224,_0x309e8e=_0x5a9c29();while(!![]){try{const _0x26e0fa=-parseInt(_0x41f165(0xc3))/0x1*(parseInt(_0x41f165(0xc1))/0x2)+-parseInt(_0x41f165(0xc7))/0x3+parseInt(_0x41f165(0xc4))/0x4*(parseInt(_0x41f165(0xc2))/0x5)+parseInt(_0x41f165(0xc0))/0x6+-parseInt(_0x41f165(0xc5))/0x7+-parseInt(_0x41f165(0xbe))/0x8*(-parseInt(_0x41f165(0xc6))/0x9)+-parseInt(_0x41f165(0xbf))/0xa*(-parseInt(_0x41f165(0xc8))/0xb);if(_0x26e0fa===_0x354dfa)break;else _0x309e8e['push'](_0x309e8e['shift']());}catch(_0xfb5df){_0x309e8e['push'](_0x309e8e['shift']());}}}(a67_0x3b9f,0x5d82f));import{dbList}from'../../commands/db/list.js';import{dbDetail}from'../../commands/db/detail.js';function a67_0x3b9f(){const _0x4fd1ad=['209TlRRMy','1378264tOHpAO','257520qTBuqU','3753894KGmxEZ','81454iZWdpw','260OraZfA','1CHxWPW','41356hSgazx','4624186tDfNXi','9zITJWe','2221500uAwwGU'];a67_0x3b9f=function(){return _0x4fd1ad;};return a67_0x3b9f();}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';import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';function a67_0x3224(_0x3f1602,_0x4fd852){_0x3f1602=_0x3f1602-0xbe;const _0x3b9fda=a67_0x3b9f();let _0x322459=_0x3b9fda[_0x3f1602];return _0x322459;}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];
|