@lovrabet/rabetbase-cli 2.1.7-beta.2 → 2.1.7-beta.4
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
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a51_0x1203e1=a51_0x24d6;function a51_0x5c4b(){const _0x3ef4fd=['updateTimeField','pkField','relatedPageInfoList','doType','required','9xLmAFT','path','read','createTimeField','828900pyfDss','type','toDatasetCode','code','doVersion','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','detail','creatorNameField','tableName','entries','131EnOLTU','dbType','filter','parse','dataType','requestBody','2488815MVDdfy','map','requestFields','columnCodeListWithDeleted','length','dbtableConfig','modifierNameField','beforeScriptId','dblinkInfoDTO','logicField','responseBody','sourceType','allFields','properties','255264xZkORP','277431Beqzgz','6GQoSxl','5ycKRxd','deleted','isArray','1200188AEfaAm','title','indexes','extend','fields','string','labelField','dataset','relations','toField','214RuQblm','displayName','host','split','alias','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','options','object','toFieldLabel','toTableName','trim','datasetKey','2325944wZTjJh','validateRules','responseFields','84JIPbRS','formatRules','name','modelId','str','modifierIdField','dbId','allFieldNames','dbName','creatorIdField','afterScriptId','description'];a51_0x5c4b=function(){return _0x3ef4fd;};return a51_0x5c4b();}(function(_0x2c76bb,_0x2fbfdb){const _0x5947ab=a51_0x24d6,_0x417533=_0x2c76bb();while(!![]){try{const _0x2c36a6=-parseInt(_0x5947ab(0x1f5))/0x1*(-parseInt(_0x5947ab(0x1c7))/0x2)+-parseInt(_0x5947ab(0x1b7))/0x3+parseInt(_0x5947ab(0x1bd))/0x4*(-parseInt(_0x5947ab(0x1ba))/0x5)+parseInt(_0x5947ab(0x1b9))/0x6*(parseInt(_0x5947ab(0x1fb))/0x7)+parseInt(_0x5947ab(0x1d3))/0x8*(parseInt(_0x5947ab(0x1e7))/0x9)+parseInt(_0x5947ab(0x1eb))/0xa+parseInt(_0x5947ab(0x1b8))/0xb*(-parseInt(_0x5947ab(0x1d6))/0xc);if(_0x2c36a6===_0x2fbfdb)break;else _0x417533['push'](_0x417533['shift']());}catch(_0xd7846f){_0x417533['push'](_0x417533['shift']());}}}(a51_0x5c4b,0x2c509));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function normalizeField(_0x1ec5d8){const _0x428201=a51_0x24d6;if(_0x1ec5d8[_0x428201(0x1bb)])return null;const _0x274d88=Boolean(_0x1ec5d8[_0x428201(0x1c8)]!==undefined||_0x1ec5d8[_0x428201(0x1e5)]!==undefined);let _0x135203={};if(!_0x274d88&&typeof _0x1ec5d8[_0x428201(0x1c0)]===_0x428201(0x1c2))try{_0x135203=JSON[_0x428201(0x1f8)](_0x1ec5d8[_0x428201(0x1c0)]);}catch{}const _0x1d2c9c=_0x274d88?_0x1ec5d8['name']:_0x1ec5d8[_0x428201(0x1ee)],_0x34cd63=_0x274d88?_0x1ec5d8[_0x428201(0x1c8)]:_0x1ec5d8[_0x428201(0x1d8)],_0x2f4545=_0x274d88?_0x1ec5d8[_0x428201(0x1e5)]:_0x1ec5d8[_0x428201(0x1ec)]||_0x1ec5d8[_0x428201(0x1f9)],_0x109fa5=_0x274d88?_0x1ec5d8[_0x428201(0x1e3)]===!![]:_0x135203[_0x428201(0x1e3)]===!![],_0x55bbb8=_0x274d88?_0x1ec5d8[_0x428201(0x1e6)]===!![]:_0x135203[_0x428201(0x1e6)]===!![],_0x578553=_0x274d88?_0x1ec5d8[_0x428201(0x1cd)]??null:_0x135203[_0x428201(0x1cd)]??null,_0x5e4083={'name':_0x1d2c9c,'displayName':_0x34cd63||_0x1d2c9c,'type':_0x2f4545,'dbType':_0x1ec5d8[_0x428201(0x1f6)],'pk':_0x109fa5,'required':_0x55bbb8,'description':_0x1ec5d8[_0x428201(0x1e1)]||undefined};return Array[_0x428201(0x1bc)](_0x578553)&&_0x578553[_0x428201(0x1ff)]>0x0&&(_0x5e4083['options']=_0x578553),_0x5e4083;}function a51_0x24d6(_0x260362,_0x445830){_0x260362=_0x260362-0x1af;const _0x5c4bc7=a51_0x5c4b();let _0x24d6a3=_0x5c4bc7[_0x260362];return _0x24d6a3;}function parseJsonMaybe(_0x721227){const _0x44b1e4=a51_0x24d6;if(typeof _0x721227!=='string')return _0x721227;try{return JSON[_0x44b1e4(0x1f8)](_0x721227);}catch{return _0x721227;}}function normalizeOperationEntry(_0x7a6767,_0xafb612){const _0x48febc=a51_0x24d6;if(!_0xafb612||typeof _0xafb612!==_0x48febc(0x1ce))return null;if(!_0xafb612['method']||!_0xafb612[_0x48febc(0x1e8)])return null;const _0x3d8a12={'name':_0x7a6767,'method':_0xafb612['method'],'path':_0xafb612['path']};if(_0xafb612['host'])_0x3d8a12[_0x48febc(0x1c9)]=_0xafb612[_0x48febc(0x1c9)];if(_0xafb612[_0x48febc(0x1fa)]!=null){const _0x35653b=parseJsonMaybe(_0xafb612[_0x48febc(0x1fa)]);_0x3d8a12[_0x48febc(0x1fa)]=_0x35653b;}if(_0xafb612[_0x48febc(0x1b3)]!=null){const _0x1de2ed=parseJsonMaybe(_0xafb612[_0x48febc(0x1b3)]);_0x3d8a12[_0x48febc(0x1b3)]=_0x1de2ed;}if(_0xafb612[_0x48febc(0x1b0)]!=null)_0x3d8a12['beforeScriptId']=_0xafb612['beforeScriptId'];if(_0xafb612['afterScriptId']!=null)_0x3d8a12[_0x48febc(0x1e0)]=_0xafb612[_0x48febc(0x1e0)];if(Array['isArray'](_0xafb612[_0x48febc(0x1fd)]))_0x3d8a12[_0x48febc(0x1fd)]=_0xafb612['requestFields'];if(Array['isArray'](_0xafb612['responseFields']))_0x3d8a12[_0x48febc(0x1d5)]=_0xafb612[_0x48febc(0x1d5)];return _0x3d8a12;}function summarizeDbtable(_0x510618){const _0x599f30=a51_0x24d6,_0x375ed5={},_0x34ac24=[_0x599f30(0x1dc),_0x599f30(0x1de),_0x599f30(0x1f3),_0x599f30(0x1d2),_0x599f30(0x1e3),_0x599f30(0x1b5),_0x599f30(0x1b2),_0x599f30(0x1ea),_0x599f30(0x1e2),_0x599f30(0x1df),_0x599f30(0x1f2),_0x599f30(0x1db),_0x599f30(0x1af),_0x599f30(0x1c3),_0x599f30(0x1b1)];for(const _0x6c56b6 of _0x34ac24){if(_0x510618[_0x6c56b6]!==undefined)_0x375ed5[_0x6c56b6]=_0x510618[_0x6c56b6];}return typeof _0x375ed5[_0x599f30(0x1b5)]===_0x599f30(0x1c2)&&_0x375ed5[_0x599f30(0x1b5)][_0x599f30(0x1ff)]>0x0&&(_0x375ed5[_0x599f30(0x1dd)]=_0x375ed5[_0x599f30(0x1b5)][_0x599f30(0x1ca)](',')[_0x599f30(0x1fc)](_0x505ba7=>_0x505ba7[_0x599f30(0x1d1)]())[_0x599f30(0x1f7)](Boolean)),_0x375ed5;}function normalizeRelatedPages(_0x4727bb){const _0xd9acf=a51_0x24d6;if(!Array[_0xd9acf(0x1bc)](_0x4727bb))return[];return _0x4727bb[_0xd9acf(0x1f7)](_0x28d2ca=>_0x28d2ca&&typeof _0x28d2ca===_0xd9acf(0x1ce))[_0xd9acf(0x1fc)](_0x3bd940=>({'id':_0x3bd940['id'],'type':_0x3bd940[_0xd9acf(0x1ec)],'code':_0x3bd940[_0xd9acf(0x1ee)],'title':_0x3bd940[_0xd9acf(0x1be)],'deleted':_0x3bd940[_0xd9acf(0x1bb)]===!![]}));}export const datasetDetail={'service':a51_0x1203e1(0x1c4),'command':a51_0x1203e1(0x1f1),'description':a51_0x1203e1(0x1cc),'risk':a51_0x1203e1(0x1e9),'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a51_0x1203e1(0x1cb),'type':a51_0x1203e1(0x1c2),'description':a51_0x1203e1(0x1f0)}],async 'execute'(_0x3703a7){const _0x526e58=a51_0x1203e1,_0x4be17c=await getDatasetDetail(_0x3703a7[_0x526e58(0x1da)](_0x526e58(0x1ee))),_0x3816fd=Array[_0x526e58(0x1bc)](_0x4be17c[_0x526e58(0x1c1)])?_0x4be17c[_0x526e58(0x1c1)]:Array[_0x526e58(0x1bc)](_0x4be17c['properties'])?_0x4be17c[_0x526e58(0x1b6)]:[],_0x538ad6=_0x3816fd[_0x526e58(0x1fc)](_0xe9561e=>normalizeField(_0xe9561e))['filter'](_0x558142=>_0x558142!==null),_0x1a2d3a=_0x4be17c['operations']??{},_0x50bfe8=[];for(const [_0x3ad5b7,_0x5cb8f2]of Object[_0x526e58(0x1f4)](_0x1a2d3a)){const _0x1eb2c0=normalizeOperationEntry(_0x3ad5b7,_0x5cb8f2);if(_0x1eb2c0)_0x50bfe8['push'](_0x1eb2c0);}const _0x13ac22=_0x4be17c[_0x526e58(0x200)]??{},_0x1dadc2=_0x4be17c['dataset']??{},_0x4373bd=_0x13ac22[_0x526e58(0x1dc)]!=null?{'id':_0x13ac22['dbId'],'name':_0x13ac22[_0x526e58(0x1de)]??null}:undefined;let _0x573535;return typeof _0x4be17c[_0x526e58(0x1c0)]===_0x526e58(0x1c2)&&(_0x573535=parseJsonMaybe(_0x4be17c[_0x526e58(0x1c0)])),{'ok':!![],'data':{'id':_0x4be17c[_0x526e58(0x1d9)]??_0x4be17c['id'],'name':_0x4be17c[_0x526e58(0x1d8)],'code':_0x4be17c['modelCode']||_0x4be17c[_0x526e58(0x1ee)],'doVersion':_0x4be17c[_0x526e58(0x1ef)],'description':_0x4be17c['description']||_0x1dadc2['tableComment']||undefined,'source':_0x4be17c['source']||_0x1dadc2[_0x526e58(0x1b4)],'table':_0x13ac22['tableName']||_0x1dadc2[_0x526e58(0x1f3)],'datasetKey':_0x13ac22[_0x526e58(0x1d2)],'pk':_0x13ac22[_0x526e58(0x1e3)],'db':_0x4373bd,'dbtable':summarizeDbtable(_0x13ac22),'fields':_0x538ad6,'operations':_0x50bfe8,'indexes':Array['isArray'](_0x1dadc2[_0x526e58(0x1bf)])?_0x1dadc2[_0x526e58(0x1bf)]:[],'relations':Array[_0x526e58(0x1bc)](_0x4be17c[_0x526e58(0x1c5)])?_0x4be17c['relations']['map'](_0x19d568=>({'fromField':_0x19d568['fromField'],'toDataset':_0x19d568['toDatasetName'],'toCode':_0x19d568[_0x526e58(0x1ed)],'toTable':_0x19d568[_0x526e58(0x1d0)],'toField':_0x19d568[_0x526e58(0x1c6)],'labelField':_0x19d568[_0x526e58(0x1cf)]||undefined})):[],'relatedPages':normalizeRelatedPages(_0x4be17c[_0x526e58(0x1e4)]),...Array[_0x526e58(0x1bc)](_0x4be17c['columnCodeListWithDeleted'])?{'columnCodeListWithDeleted':_0x4be17c[_0x526e58(0x1fe)]}:{},'formatRules':Array[_0x526e58(0x1bc)](_0x4be17c[_0x526e58(0x1d7)])?_0x4be17c[_0x526e58(0x1d7)]:[],'validateRules':Array['isArray'](_0x4be17c[_0x526e58(0x1d4)])?_0x4be17c[_0x526e58(0x1d4)]:[],..._0x573535!==undefined?{'extend':_0x573535}:{},'stats':{'fieldCount':_0x538ad6[_0x526e58(0x1ff)],'operationCount':_0x50bfe8['length']}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3b064,_0x35f08a){const _0x3b1b63=a52_0x8115,_0x445f4f=_0x3b064();while(!![]){try{const _0x565e30=-parseInt(_0x3b1b63(0x199))/0x1+-parseInt(_0x3b1b63(0x197))/0x2+-parseInt(_0x3b1b63(0x1a0))/0x3+-parseInt(_0x3b1b63(0x19f))/0x4*(parseInt(_0x3b1b63(0x19b))/0x5)+parseInt(_0x3b1b63(0x198))/0x6+parseInt(_0x3b1b63(0x19d))/0x7*(-parseInt(_0x3b1b63(0x19a))/0x8)+-parseInt(_0x3b1b63(0x19e))/0x9*(-parseInt(_0x3b1b63(0x19c))/0xa);if(_0x565e30===_0x35f08a)break;else _0x445f4f['push'](_0x445f4f['shift']());}catch(_0x57a63c){_0x445f4f['push'](_0x445f4f['shift']());}}}(a52_0x2f3d,0x5e97a));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetOperations}from'../../commands/dataset/operations.js';function a52_0x8115(_0x506cec,_0x136403){_0x506cec=_0x506cec-0x197;const _0x2f3d88=a52_0x2f3d();let _0x8115da=_0x2f3d88[_0x506cec];return _0x8115da;}import{datasetLinks}from'../../commands/dataset/links.js';import{datasetLinkCreate}from'../../commands/dataset/link-create.js';import{datasetLinkUpdate}from'../../commands/dataset/link-update.js';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];function a52_0x2f3d(){const _0x295d57=['2394896NhbJUB','10IqmjRC','2933570ZEWOaJ','7BEcQVo','45clJJbU','419076kOiDTL','1599804muUBCo','799282rwOAFj','4548882ZLOrvq','395673SMUwgR'];a52_0x2f3d=function(){return _0x295d57;};return a52_0x2f3d();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a53_0x577e(){const _0x26b252=['56584BWYZrr','column','from','dbId','POST','8WryefF','dataset','appCode','write','11dBYzYd','\x20->\x20','validation','158890stehmx','172VowbWL','str','47218IlEhVu','1169028QHhAhm','3766340qDzAkz','create','Create\x20one\x20dataset\x20link\x20relation\x20in\x20the\x20ER\x20graph','table','relation_conflict:\x20relation\x20already\x20exists:\x20','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.','7cODvEz','Would\x20create\x20dataset\x20link\x20','relationKey','Created\x20dataset\x20link:\x20','4467XtKwhy','1564569NCysIU'];a53_0x577e=function(){return _0x26b252;};return a53_0x577e();}const a53_0xc01c2d=a53_0x30dc;function a53_0x30dc(_0x1ae5c1,_0x1cec73){_0x1ae5c1=_0x1ae5c1-0xcd;const _0x577e74=a53_0x577e();let _0x30dc52=_0x577e74[_0x1ae5c1];return _0x30dc52;}(function(_0x3af483,_0x115e75){const _0x268196=a53_0x30dc,_0x1c6d01=_0x3af483();while(!![]){try{const _0x2681ed=-parseInt(_0x268196(0xd6))/0x1*(parseInt(_0x268196(0xe0))/0x2)+parseInt(_0x268196(0xcf))/0x3*(-parseInt(_0x268196(0xde))/0x4)+parseInt(_0x268196(0xdd))/0x5+-parseInt(_0x268196(0xe1))/0x6+parseInt(_0x268196(0xe8))/0x7*(-parseInt(_0x268196(0xd1))/0x8)+parseInt(_0x268196(0xd0))/0x9+-parseInt(_0x268196(0xe2))/0xa*(-parseInt(_0x268196(0xda))/0xb);if(_0x2681ed===_0x115e75)break;else _0x1c6d01['push'](_0x1c6d01['shift']());}catch(_0x3e7484){_0x1c6d01['push'](_0x1c6d01['shift']());}}}(a53_0x577e,0x1f1d3));import{createErRelation}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';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='/smartapi/question/er-config/erCreate';export const datasetLinkCreate={'service':a53_0xc01c2d(0xd7),'command':'link-create','description':a53_0xc01c2d(0xe4),'risk':a53_0xc01c2d(0xd9),'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'(_0xa0956f){readLinkInput(_0xa0956f,{'includeLabelAndCardinality':!![]});},async 'dryRun'(_0x237083){const _0xae8b29=a53_0xc01c2d,_0x166f33=await resolveRequiredDb(_0x237083[_0xae8b29(0xd8)],_0x237083[_0xae8b29(0xdf)]('db')),_0x65f91f=readLinkInput(_0x237083,{'includeLabelAndCardinality':!![]});return{'method':_0xae8b29(0xd5),'url':BACKEND_PATH,'body':{'appCode':_0x237083[_0xae8b29(0xd8)],'dblinkId':_0x166f33[_0xae8b29(0xd4)],'relation':relationToBackend(_0x65f91f)},'description':_0xae8b29(0xe9)+_0x65f91f['from'][_0xae8b29(0xe5)]+'.'+_0x65f91f[_0xae8b29(0xd3)][_0xae8b29(0xd2)]+_0xae8b29(0xdb)+_0x65f91f['to'][_0xae8b29(0xe5)]+'.'+_0x65f91f['to'][_0xae8b29(0xd2)]};},async 'execute'(_0x183d81){const _0x5e3bf0=a53_0xc01c2d,_0x6d692f=await resolveRequiredDb(_0x183d81[_0x5e3bf0(0xd8)],_0x183d81[_0x5e3bf0(0xdf)]('db')),_0x1627e1=readLinkInput(_0x183d81,{'includeLabelAndCardinality':!![]}),_0x1760d1=await findExistingLink(_0x183d81[_0x5e3bf0(0xd8)],_0x6d692f[_0x5e3bf0(0xd4)],_0x1627e1);if(_0x1760d1)throw CliErrors[_0x5e3bf0(0xdc)](_0x5e3bf0(0xe6)+_0x1760d1[_0x5e3bf0(0xcd)],_0x5e3bf0(0xe7));return await createErRelation({'appCode':_0x183d81[_0x5e3bf0(0xd8)],'dblinkId':_0x6d692f[_0x5e3bf0(0xd4)],'relation':relationToBackend(_0x1627e1)}),{'ok':!![],'data':buildMutationData({'operation':_0x5e3bf0(0xe3),'appCode':_0x183d81[_0x5e3bf0(0xd8)],'db':_0x6d692f,'input':_0x1627e1,'before':null,'dryRun':![],'backendPath':BACKEND_PATH}),'message':_0x5e3bf0(0xce)+_0x1627e1['from'][_0x5e3bf0(0xe5)]+'.'+_0x1627e1[_0x5e3bf0(0xd3)]['column']+_0x5e3bf0(0xdb)+_0x1627e1['to'][_0x5e3bf0(0xe5)]+'.'+_0x1627e1['to'][_0x5e3bf0(0xd2)]};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a54_0x1a81fe=a54_0x10ca;(function(_0x589aa1,_0xc0f278){const _0x4278df=a54_0x10ca,_0x3acc9e=_0x589aa1();while(!![]){try{const _0x1ee481=parseInt(_0x4278df(0xa9))/0x1+parseInt(_0x4278df(0x9f))/0x2*(-parseInt(_0x4278df(0xa0))/0x3)+parseInt(_0x4278df(0xa2))/0x4*(parseInt(_0x4278df(0xaa))/0x5)+parseInt(_0x4278df(0xa7))/0x6*(-parseInt(_0x4278df(0x9a))/0x7)+-parseInt(_0x4278df(0xa4))/0x8+-parseInt(_0x4278df(0xab))/0x9+parseInt(_0x4278df(0xb4))/0xa*(parseInt(_0x4278df(0x9b))/0xb);if(_0x1ee481===_0xc0f278)break;else _0x3acc9e['push'](_0x3acc9e['shift']());}catch(_0x4b7db3){_0x3acc9e['push'](_0x3acc9e['shift']());}}}(a54_0x33df,0x92f23));import{deleteErRelation}from'../../core/api-client.js';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';const BACKEND_PATH=a54_0x1a81fe(0xb5);function a54_0x33df(){const _0x4c905e=['relation_not_found:\x20','dbId','delete','60guGVVR','59208aEXnGL','Delete\x20one\x20dataset\x20link\x20relation\x20from\x20the\x20ER\x20graph','76AHZmzC','str','6671688SoHBdX','dataset','appCode','141402mUepTy','from','1156532TrqWxO','67910VuBfOQ','8042697hdzRCa','high-risk-write','column','link-delete','Deleted\x20dataset\x20link:\x20','POST','Would\x20delete\x20dataset\x20link\x20','\x20->\x20','Run\x20dataset\x20links\x20--db\x20first\x20to\x20inspect\x20the\x20current\x20relation\x20graph.','244030ATOePz','/smartapi/question/er-config/erDelete','table','154VEMdOz','913oSiLGB'];a54_0x33df=function(){return _0x4c905e;};return a54_0x33df();}function a54_0x10ca(_0x204ce4,_0x1c537b){_0x204ce4=_0x204ce4-0x9a;const _0x33dfa6=a54_0x33df();let _0x10ca08=_0x33dfa6[_0x204ce4];return _0x10ca08;}export const datasetLinkDelete={'service':a54_0x1a81fe(0xa5),'command':a54_0x1a81fe(0xae),'description':a54_0x1a81fe(0xa1),'risk':a54_0x1a81fe(0xac),'flags':[DB_FLAG,FROM_TABLE_FLAG,FROM_COLUMN_FLAG,TO_TABLE_FLAG,TO_COLUMN_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x5b746){readLinkInput(_0x5b746);},async 'dryRun'(_0x4e5532){const _0x1174df=a54_0x1a81fe,_0xd239a5=await resolveRequiredDb(_0x4e5532[_0x1174df(0xa6)],_0x4e5532[_0x1174df(0xa3)]('db')),_0x516028=readLinkInput(_0x4e5532);return{'method':_0x1174df(0xb0),'url':BACKEND_PATH,'body':{'appCode':_0x4e5532[_0x1174df(0xa6)],'dblinkId':_0xd239a5['dbId'],'relation':relationToBackend(_0x516028)},'description':_0x1174df(0xb1)+_0x516028['from'][_0x1174df(0xb6)]+'.'+_0x516028[_0x1174df(0xa8)][_0x1174df(0xad)]+_0x1174df(0xb2)+_0x516028['to'][_0x1174df(0xb6)]+'.'+_0x516028['to'][_0x1174df(0xad)]};},async 'execute'(_0x54828d){const _0x5ac061=a54_0x1a81fe,_0x117c07=await resolveRequiredDb(_0x54828d['appCode'],_0x54828d[_0x5ac061(0xa3)]('db')),_0x2be4f6=readLinkInput(_0x54828d),_0x3cde9f=await findExistingLink(_0x54828d[_0x5ac061(0xa6)],_0x117c07[_0x5ac061(0x9d)],_0x2be4f6);if(!_0x3cde9f)throw CliErrors['validation'](_0x5ac061(0x9c)+_0x2be4f6[_0x5ac061(0xa8)][_0x5ac061(0xb6)]+'.'+_0x2be4f6[_0x5ac061(0xa8)][_0x5ac061(0xad)]+'\x20->\x20'+_0x2be4f6['to'][_0x5ac061(0xb6)]+'.'+_0x2be4f6['to']['column'],_0x5ac061(0xb3));return await deleteErRelation({'appCode':_0x54828d[_0x5ac061(0xa6)],'dblinkId':_0x117c07[_0x5ac061(0x9d)],'relation':relationToBackend(_0x2be4f6)}),{'ok':!![],'data':buildMutationData({'operation':_0x5ac061(0x9e),'appCode':_0x54828d[_0x5ac061(0xa6)],'db':_0x117c07,'input':_0x2be4f6,'before':_0x3cde9f,'dryRun':![],'backendPath':BACKEND_PATH}),'message':_0x5ac061(0xaf)+_0x2be4f6[_0x5ac061(0xa8)][_0x5ac061(0xb6)]+'.'+_0x2be4f6[_0x5ac061(0xa8)]['column']+_0x5ac061(0xb2)+_0x2be4f6['to'][_0x5ac061(0xb6)]+'.'+_0x2be4f6['to'][_0x5ac061(0xad)]};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a55_0x52c2b8=a55_0x3309;(function(_0x45d9b4,_0x1ee16c){const _0x85e191=a55_0x3309,_0x16242b=_0x45d9b4();while(!![]){try{const _0x16dfd5=parseInt(_0x85e191(0x1c1))/0x1+parseInt(_0x85e191(0x1ae))/0x2*(parseInt(_0x85e191(0x1a9))/0x3)+-parseInt(_0x85e191(0x1cb))/0x4*(parseInt(_0x85e191(0x1be))/0x5)+-parseInt(_0x85e191(0x1c2))/0x6+parseInt(_0x85e191(0x1cc))/0x7+-parseInt(_0x85e191(0x1de))/0x8*(parseInt(_0x85e191(0x1cd))/0x9)+-parseInt(_0x85e191(0x1af))/0xa;if(_0x16dfd5===_0x1ee16c)break;else _0x16242b['push'](_0x16242b['shift']());}catch(_0x46acba){_0x16242b['push'](_0x16242b['shift']());}}}(a55_0x207f,0x34249));import{getErConfig}from'../../core/api-client.js';import{resolveOneDb}from'../../core/db-resolver.js';import{CliErrors}from'../../errors.js';export const DATASET_LINK_PROTOCOL='dataset-link.v1';export const CARDINALITIES=[a55_0x52c2b8(0x1aa),'ONE_TO_MANY',a55_0x52c2b8(0x1d3),a55_0x52c2b8(0x1ba)];export const DB_FLAG={'name':'db','type':a55_0x52c2b8(0x1b0),'required':!![],'description':a55_0x52c2b8(0x1c5)};export const FROM_TABLE_FLAG={'name':'from-table','type':'string','required':!![],'description':a55_0x52c2b8(0x1b9)};export const FROM_COLUMN_FLAG={'name':a55_0x52c2b8(0x1d9),'type':'string','required':!![],'description':'Source\x20column\x20name'};export const TO_TABLE_FLAG={'name':'to-table','type':'string','required':!![],'description':a55_0x52c2b8(0x1ad)};export const TO_COLUMN_FLAG={'name':a55_0x52c2b8(0x1d2),'type':a55_0x52c2b8(0x1b0),'required':!![],'description':a55_0x52c2b8(0x1b3)};export const TO_LABEL_COLUMN_FLAG={'name':a55_0x52c2b8(0x1df),'type':'string','required':!![],'description':a55_0x52c2b8(0x1c9)};export const CARDINALITY_FLAG={'name':a55_0x52c2b8(0x1da),'type':a55_0x52c2b8(0x1b0),'required':!![],'enum':[...CARDINALITIES],'description':'Relation\x20cardinality\x20(editable\x20metadata)'};export function readLinkInput(_0xf2eb19,_0x42840f){const _0x202d4a=a55_0x52c2b8,_0x5c3af2={'from':{'table':requiredTrim(_0xf2eb19[_0x202d4a(0x1c3)](_0x202d4a(0x1b2)),'--from-table'),'column':requiredTrim(_0xf2eb19[_0x202d4a(0x1c3)](_0x202d4a(0x1d9)),'--from-column')},'to':{'table':requiredTrim(_0xf2eb19[_0x202d4a(0x1c3)]('to-table'),_0x202d4a(0x1dc)),'column':requiredTrim(_0xf2eb19[_0x202d4a(0x1c3)](_0x202d4a(0x1d2)),_0x202d4a(0x1d4))}};return _0x42840f?.[_0x202d4a(0x1ab)]&&(_0x5c3af2['to'][_0x202d4a(0x1bc)]=requiredTrim(_0xf2eb19[_0x202d4a(0x1c3)]('to-label-column'),_0x202d4a(0x1c8)),_0x5c3af2[_0x202d4a(0x1da)]=normalizeCardinality(_0xf2eb19[_0x202d4a(0x1c3)](_0x202d4a(0x1da)))),_0x5c3af2;}export function relationToBackend(_0x5ebb7f){const _0x51cffb=a55_0x52c2b8;return{'tableName':_0x5ebb7f[_0x51cffb(0x1c7)]['table'],'columnName':_0x5ebb7f[_0x51cffb(0x1c7)]['column'],'refTableName':_0x5ebb7f['to'][_0x51cffb(0x1b5)],'refColumnName':_0x5ebb7f['to']['column'],..._0x5ebb7f['to'][_0x51cffb(0x1bc)]?{'refTableLabelName':_0x5ebb7f['to'][_0x51cffb(0x1bc)]}:{},..._0x5ebb7f[_0x51cffb(0x1da)]?{'cardinality':_0x5ebb7f[_0x51cffb(0x1da)]}:{}};}export async function resolveRequiredDb(_0x1d17ed,_0x559b8){const _0x287f08=a55_0x52c2b8,{db:_0x4cdb14,error:_0x4e3baf}=await resolveOneDb(_0x1d17ed,_0x559b8[_0x287f08(0x1c6)]());if(_0x4e3baf||!_0x4cdb14)throw CliErrors['validation'](_0x4e3baf||'Database\x20is\x20required.');return _0x4cdb14;}export async function findExistingLink(_0x6196bd,_0x8c774d,_0x33e208){const _0x35a5c6=await getErConfig(_0x6196bd,_0x8c774d);return findLinkInConfig(_0x35a5c6,_0x8c774d,_0x33e208);}export function findLinkInConfig(_0x6d1c60,_0x1fb6bb,_0x3b7464){const _0x58793e=a55_0x52c2b8,_0x1907bf=new Map((_0x6d1c60['datasets']??[])[_0x58793e(0x1db)](_0xe85a41=>[_0xe85a41[_0x58793e(0x1d0)],_0xe85a41]));for(const _0x2ab8d7 of _0x6d1c60[_0x58793e(0x1cf)]??[]){const _0x1ae3a6=_0x2ab8d7['tableName'];if(!sameName(_0x1ae3a6,_0x3b7464[_0x58793e(0x1c7)][_0x58793e(0x1b5)]))continue;for(const _0x1ad8f5 of _0x2ab8d7[_0x58793e(0x1d7)]??[]){const _0x2dd709=_0x1907bf['get'](_0x1ad8f5[_0x58793e(0x1bb)]),_0x45838e=_0x2dd709?.['tableName'];if(!_0x45838e)continue;if(sameName(_0x1ad8f5[_0x58793e(0x1c4)],_0x3b7464[_0x58793e(0x1c7)][_0x58793e(0x1bf)])&&sameName(_0x45838e,_0x3b7464['to'][_0x58793e(0x1b5)])&&sameName(_0x1ad8f5[_0x58793e(0x1a8)],_0x3b7464['to'][_0x58793e(0x1bf)])){const _0x3dcfaa={'relationKey':buildRelationKey(_0x1fb6bb,{'from':{'table':_0x1ae3a6,'column':_0x1ad8f5[_0x58793e(0x1c4)]},'to':{'table':_0x45838e,'column':_0x1ad8f5[_0x58793e(0x1a8)]}}),'from':{'table':_0x1ae3a6,'column':_0x1ad8f5[_0x58793e(0x1c4)]},'to':{'table':_0x45838e,'column':_0x1ad8f5['toField'],..._0x2dd709?.[_0x58793e(0x1d0)]?{'datasetCode':_0x2dd709[_0x58793e(0x1d0)]}:{},..._0x1ad8f5[_0x58793e(0x1b1)]?{'datasetName':_0x1ad8f5[_0x58793e(0x1b1)]}:{}},'cardinality':_0x1ad8f5[_0x58793e(0x1ce)]||undefined,'condition':_0x1ad8f5[_0x58793e(0x1e0)]??null};return _0x3dcfaa;}}}return null;}function a55_0x207f(){const _0x166a14=['operation','toField','3MvZLmK','ONE_TO_ONE','includeLabelAndCardinality','--cardinality','Target\x20table\x20name','841630zdpzcB','621710obQJMG','string','toDatasetName','from-table','Target\x20column\x20name','dryRun','table','dbName','Invalid\x20--cardinality:\x20','\x20is\x20required.','Source\x20table\x20name','MANY_TO_MANY','toDataset','labelColumn','delete','1578770qLyNdF','column','input','237453AAazPz','964164ZlovKg','str','fromField','Database\x20name\x20or\x20dblink\x20ID\x20from\x20dataset\x20links','trim','from','--to-label-column','Target\x20display/label\x20column\x20name\x20(editable\x20metadata,\x20not\x20selector)','Allowed\x20values:\x20','4jYQFgY','2589405LDNurN','9fuVqHA','joinType','datasets','datasetCode','join','to-column','MANY_TO_ONE','--to-column','dbId','validation','relations','POST','from-column','cardinality','map','--to-table','toLowerCase','2207896fEPeNZ','to-label-column','condition'];a55_0x207f=function(){return _0x166a14;};return a55_0x207f();}export function buildRelationKey(_0x4259db,_0x3ab3b9){const _0x2c4396=a55_0x52c2b8;return _0x4259db+':'+_0x3ab3b9[_0x2c4396(0x1c7)][_0x2c4396(0x1b5)]+'.'+_0x3ab3b9[_0x2c4396(0x1c7)][_0x2c4396(0x1bf)]+'->'+_0x3ab3b9['to'][_0x2c4396(0x1b5)]+'.'+_0x3ab3b9['to'][_0x2c4396(0x1bf)];}function a55_0x3309(_0x3c7a37,_0x116fa1){_0x3c7a37=_0x3c7a37-0x1a7;const _0x207f0a=a55_0x207f();let _0x3309ff=_0x207f0a[_0x3c7a37];return _0x3309ff;}export function buildMutationData(_0x2bf9eb){const _0x48a921=a55_0x52c2b8,_0x343d67=_0x2bf9eb[_0x48a921(0x1a7)]===_0x48a921(0x1bd)?null:{'from':_0x2bf9eb['input']['from'],'to':_0x2bf9eb[_0x48a921(0x1c0)]['to'],'cardinality':_0x2bf9eb[_0x48a921(0x1c0)][_0x48a921(0x1da)]};return{'protocol':DATASET_LINK_PROTOCOL,'operation':_0x2bf9eb[_0x48a921(0x1a7)],'appCode':_0x2bf9eb['appCode'],'db':{'id':_0x2bf9eb['db'][_0x48a921(0x1d5)],'name':_0x2bf9eb['db'][_0x48a921(0x1b6)]},'relationKey':buildRelationKey(_0x2bf9eb['db'][_0x48a921(0x1d5)],_0x2bf9eb[_0x48a921(0x1c0)]),'before':_0x2bf9eb['before'],'after':_0x343d67,'dryRun':_0x2bf9eb[_0x48a921(0x1b4)],'backend':{'method':_0x48a921(0x1d8),'path':_0x2bf9eb['backendPath']},'warnings':[]};}function requiredTrim(_0x47e3c6,_0x319e77){const _0xe6acac=a55_0x52c2b8,_0x3a6176=_0x47e3c6['trim']();if(!_0x3a6176)throw CliErrors[_0xe6acac(0x1d6)](_0x319e77+_0xe6acac(0x1b8));return _0x3a6176;}function normalizeCardinality(_0x2457f7){const _0xadb4f=a55_0x52c2b8,_0x174bb0=requiredTrim(_0x2457f7,_0xadb4f(0x1ac))['toUpperCase']();if(!CARDINALITIES['includes'](_0x174bb0))throw CliErrors['validation'](_0xadb4f(0x1b7)+_0x2457f7,_0xadb4f(0x1ca)+CARDINALITIES[_0xadb4f(0x1d1)](',\x20'));return _0x174bb0;}function sameName(_0x5b05ee,_0x5ccca2){const _0x4e677e=a55_0x52c2b8;return(_0x5b05ee??'')[_0x4e677e(0x1c6)]()[_0x4e677e(0x1dd)]()===(_0x5ccca2??'')[_0x4e677e(0x1c6)]()[_0x4e677e(0x1dd)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a56_0x13e2(){const _0x1384a1=['validation','11309574YoMkEZ','str','from','/smartapi/question/er-config/update-single','34532008CbVXQC','appCode','2uIjyXO','Update\x20one\x20dataset\x20link\x20relation\x20metadata\x20in\x20the\x20ER\x20graph','POST','Would\x20update\x20dataset\x20link\x20','92022btOWsq','3980320KAuQTI','Updated\x20dataset\x20link:\x20','6115368AoGqAt','dbId','update','1848040zTwEkx','dataset','9VvYwra','table','Use\x20dataset\x20link-create\x20to\x20create\x20a\x20new\x20relation.','2335907ElxbyP','relation_not_found:\x20','\x20->\x20','column'];a56_0x13e2=function(){return _0x1384a1;};return a56_0x13e2();}const a56_0x5e97ec=a56_0x40d4;function a56_0x40d4(_0x2b7ef7,_0x49faa9){_0x2b7ef7=_0x2b7ef7-0x1c3;const _0x13e2d5=a56_0x13e2();let _0x40d4b2=_0x13e2d5[_0x2b7ef7];return _0x40d4b2;}(function(_0x1de4a7,_0xe763f7){const _0x1526c6=a56_0x40d4,_0x37545a=_0x1de4a7();while(!![]){try{const _0x548a91=-parseInt(_0x1526c6(0x1d9))/0x1+parseInt(_0x1526c6(0x1cf))/0x2*(-parseInt(_0x1526c6(0x1d3))/0x3)+parseInt(_0x1526c6(0x1d6))/0x4+-parseInt(_0x1526c6(0x1d4))/0x5+-parseInt(_0x1526c6(0x1c9))/0x6+-parseInt(_0x1526c6(0x1c4))/0x7+-parseInt(_0x1526c6(0x1cd))/0x8*(-parseInt(_0x1526c6(0x1db))/0x9);if(_0x548a91===_0xe763f7)break;else _0x37545a['push'](_0x37545a['shift']());}catch(_0x4a1d62){_0x37545a['push'](_0x37545a['shift']());}}}(a56_0x13e2,0xe867f));import{updateErRelation}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';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_0x5e97ec(0x1cc);export const datasetLinkUpdate={'service':a56_0x5e97ec(0x1da),'command':'link-update','description':a56_0x5e97ec(0x1d0),'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'(_0x2817fa){readLinkInput(_0x2817fa,{'includeLabelAndCardinality':!![]});},async 'dryRun'(_0x25d357){const _0x1a8c71=a56_0x5e97ec,_0x2fcb1d=await resolveRequiredDb(_0x25d357[_0x1a8c71(0x1ce)],_0x25d357[_0x1a8c71(0x1ca)]('db')),_0x429cd2=readLinkInput(_0x25d357,{'includeLabelAndCardinality':!![]});return{'method':_0x1a8c71(0x1d1),'url':BACKEND_PATH,'body':{'appCode':_0x25d357['appCode'],'dblinkId':_0x2fcb1d[_0x1a8c71(0x1d7)],'relation':relationToBackend(_0x429cd2)},'description':_0x1a8c71(0x1d2)+_0x429cd2[_0x1a8c71(0x1cb)][_0x1a8c71(0x1dc)]+'.'+_0x429cd2[_0x1a8c71(0x1cb)]['column']+_0x1a8c71(0x1c6)+_0x429cd2['to'][_0x1a8c71(0x1dc)]+'.'+_0x429cd2['to'][_0x1a8c71(0x1c7)]};},async 'execute'(_0x99fa4b){const _0x1e6683=a56_0x5e97ec,_0x524838=await resolveRequiredDb(_0x99fa4b[_0x1e6683(0x1ce)],_0x99fa4b['str']('db')),_0x4c6d14=readLinkInput(_0x99fa4b,{'includeLabelAndCardinality':!![]}),_0x4a06f5=await findExistingLink(_0x99fa4b[_0x1e6683(0x1ce)],_0x524838[_0x1e6683(0x1d7)],_0x4c6d14);if(!_0x4a06f5)throw CliErrors[_0x1e6683(0x1c8)](_0x1e6683(0x1c5)+_0x4c6d14[_0x1e6683(0x1cb)][_0x1e6683(0x1dc)]+'.'+_0x4c6d14['from'][_0x1e6683(0x1c7)]+_0x1e6683(0x1c6)+_0x4c6d14['to'][_0x1e6683(0x1dc)]+'.'+_0x4c6d14['to'][_0x1e6683(0x1c7)],_0x1e6683(0x1c3));return await updateErRelation({'appCode':_0x99fa4b['appCode'],'dblinkId':_0x524838['dbId'],'relation':relationToBackend(_0x4c6d14)}),{'ok':!![],'data':buildMutationData({'operation':_0x1e6683(0x1d8),'appCode':_0x99fa4b[_0x1e6683(0x1ce)],'db':_0x524838,'input':_0x4c6d14,'before':_0x4a06f5,'dryRun':![],'backendPath':BACKEND_PATH}),'message':_0x1e6683(0x1d5)+_0x4c6d14['from'][_0x1e6683(0x1dc)]+'.'+_0x4c6d14['from'][_0x1e6683(0x1c7)]+_0x1e6683(0x1c6)+_0x4c6d14['to'][_0x1e6683(0x1dc)]+'.'+_0x4c6d14['to'][_0x1e6683(0x1c7)]};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a57_0x4dc532=a57_0x38ad;(function(_0x12e03f,_0x39c3ea){const _0x446fef=a57_0x38ad,_0x2bdcf3=_0x12e03f();while(!![]){try{const _0x451d0f=parseInt(_0x446fef(0x1b9))/0x1*(-parseInt(_0x446fef(0x1b6))/0x2)+parseInt(_0x446fef(0x1a2))/0x3+parseInt(_0x446fef(0x199))/0x4+parseInt(_0x446fef(0x1c5))/0x5*(parseInt(_0x446fef(0x1ac))/0x6)+-parseInt(_0x446fef(0x1ca))/0x7*(parseInt(_0x446fef(0x1ce))/0x8)+parseInt(_0x446fef(0x1b2))/0x9+parseInt(_0x446fef(0x1b7))/0xa*(parseInt(_0x446fef(0x1ab))/0xb);if(_0x451d0f===_0x39c3ea)break;else _0x2bdcf3['push'](_0x2bdcf3['shift']());}catch(_0x1b415f){_0x2bdcf3['push'](_0x2bdcf3['shift']());}}}(a57_0x433c,0xb00e3));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':a57_0x4dc532(0x1ba),'command':a57_0x4dc532(0x19e),'description':a57_0x4dc532(0x1a1)+a57_0x4dc532(0x1a0)+a57_0x4dc532(0x1bd),'risk':a57_0x4dc532(0x1a4),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'db','type':a57_0x4dc532(0x1bf),'description':a57_0x4dc532(0x1aa)+'Defaults\x20to\x20auto-detect\x20all\x20linked\x20databases.'},{'name':'verbose','type':'boolean','description':'Return\x20full\x20raw\x20ER\x20response\x20from\x20API'}],async 'execute'(_0x592ca6){const _0x333864=a57_0x4dc532,_0x2ced01=_0x592ca6[_0x333864(0x1a6)](_0x333864(0x1a8)),{resolved:_0x18b0c2,error:_0x45e525}=await resolveDb(_0x592ca6['appCode'],_0x592ca6[_0x333864(0x1af)]('db')||undefined);if(_0x45e525)return{'ok':![],'message':_0x45e525};const _0x21ab9d=_0x18b0c2[_0x333864(0x1c4)](_0x35a5a2=>_0x35a5a2[_0x333864(0x1c6)]),_0x5a7d3=await Promise[_0x333864(0x1cb)](_0x21ab9d[_0x333864(0x1c4)](_0x239a3e=>getErConfig(_0x592ca6[_0x333864(0x1b1)],_0x239a3e)));if(_0x2ced01)return{'ok':!![],'data':_0x5a7d3[_0x333864(0x1cd)]===0x1?_0x5a7d3[0x0]:_0x5a7d3,'message':_0x333864(0x1a5)+_0x21ab9d['length']+_0x333864(0x198)};const _0x31caa5=_0x5a7d3[_0x333864(0x1c4)](_0xeeee07=>{const _0xc5ec36=_0x333864,_0x1fe3df=new Map((_0xeeee07['datasets']??[])[_0xc5ec36(0x1c4)](_0x219988=>[_0x219988[_0xc5ec36(0x1c0)],_0x219988['tableName']])),_0x2a4cbf=(_0xeeee07[_0xc5ec36(0x1bb)]??[])['map'](_0x217a5e=>{const _0x58fd6d=_0xc5ec36,_0x75e722=_0x217a5e[_0x58fd6d(0x1bc)]?.[_0x58fd6d(0x1c2)](_0x226565=>_0x226565[_0x58fd6d(0x1c1)])[_0x58fd6d(0x1c4)](_0xb43bc8=>_0xb43bc8['name'])??[],_0x245484=_0x217a5e['fields']?.[_0x58fd6d(0x1c2)](_0x199c87=>_0x199c87['isForeignKey'])['map'](_0x194ff4=>_0x194ff4[_0x58fd6d(0x1c9)])??[],_0x496d4a=(_0x217a5e['relations']??[])['flatMap'](_0x3d3a15=>{const _0x30ffe0=_0x58fd6d;if(!_0x3d3a15[_0x30ffe0(0x1a3)]||!_0x3d3a15[_0x30ffe0(0x1b0)]||!_0x3d3a15[_0x30ffe0(0x1b4)])return[];const _0xc0ac06=_0x217a5e[_0x30ffe0(0x1be)],_0x193b98=_0x3d3a15[_0x30ffe0(0x1a3)],_0x52c53b=_0x1fe3df['get'](_0x3d3a15[_0x30ffe0(0x1b0)]);if(!_0x52c53b)return[];const _0x4a93f7=_0x3d3a15[_0x30ffe0(0x1b4)],_0x33c040=normalizeCardinality(_0x3d3a15['joinType']);return[{'fromTable':_0xc0ac06,'fromColumn':_0x193b98,'toTable':_0x52c53b,'toColumn':_0x4a93f7,'cardinality':_0x33c040,'from':_0x193b98,'toDataset':_0x3d3a15[_0x30ffe0(0x1b5)],'toCode':_0x3d3a15['toDataset'],'toField':_0x4a93f7,'joinType':_0x3d3a15[_0x30ffe0(0x19a)]||_0x30ffe0(0x19b)}];});return{'id':_0x217a5e['datasetId'],'name':_0x217a5e[_0x58fd6d(0x1b8)],'code':_0x217a5e[_0x58fd6d(0x1c0)],'table':_0x217a5e[_0x58fd6d(0x1be)],'comment':_0x217a5e['tableComment']||undefined,'fields':(_0x217a5e[_0x58fd6d(0x1bc)]??[])[_0x58fd6d(0x1c4)](_0x4fb393=>({'name':_0x4fb393[_0x58fd6d(0x1c9)],'displayName':_0x4fb393[_0x58fd6d(0x19c)],'type':_0x4fb393[_0x58fd6d(0x1c7)],'pk':_0x4fb393['isPrimaryKey'],'fk':_0x4fb393['isForeignKey']})),'relations':_0x496d4a,'stats':{'fieldCount':_0x217a5e[_0x58fd6d(0x1bc)]?.[_0x58fd6d(0x1cd)]??0x0,'pkCount':_0x75e722[_0x58fd6d(0x1cd)],'fkCount':_0x245484[_0x58fd6d(0x1cd)],'relationCount':_0x496d4a['length']}};}),_0x4f0606=_0x2a4cbf[_0xc5ec36(0x1c2)](_0x88d8d9=>_0x88d8d9[_0xc5ec36(0x1a7)][_0xc5ec36(0x1c3)]>0x0)['map'](_0x2730a0=>_0x2730a0[_0xc5ec36(0x1c9)]);return{'db':_0xeeee07['meta']?.['dbName'],'dbId':_0xeeee07['meta']?.[_0xc5ec36(0x1c6)],'appCode':_0xeeee07[_0xc5ec36(0x19d)]?.[_0xc5ec36(0x1b1)],'datasetCount':_0x2a4cbf[_0xc5ec36(0x1cd)],'connectedDatasets':_0x4f0606,'datasets':_0x2a4cbf};}),_0xaaa089=_0x31caa5[_0x333864(0x19f)]((_0x2dcb95,_0x5a2225)=>_0x2dcb95+_0x5a2225[_0x333864(0x1ad)],0x0),_0x2ae3d8=_0x31caa5[_0x333864(0x19f)]((_0x54e2b8,_0x8b1a05)=>_0x54e2b8+_0x8b1a05[_0x333864(0x1bb)][_0x333864(0x19f)]((_0xa1b4e6,_0x38a06d)=>_0xa1b4e6+_0x38a06d['stats']['relationCount'],0x0),0x0);return{'ok':!![],'data':_0x31caa5[_0x333864(0x1cd)]===0x1?_0x31caa5[0x0]:{'databases':_0x31caa5},'message':_0x333864(0x1a9)+_0x31caa5['length']+_0x333864(0x1b3)+_0xaaa089+_0x333864(0x1cc)+_0x2ae3d8+'\x20relation(s)'};}};function a57_0x38ad(_0x4b5863,_0x3db4a4){_0x4b5863=_0x4b5863-0x198;const _0x433c31=a57_0x433c();let _0x38ad6a=_0x433c31[_0x4b5863];return _0x38ad6a;}function a57_0x433c(){const _0x187e40=['\x20database(s)','1153548BrlBeM','joinType','LEFT','displayName','meta','links','reduce','Returns\x20datasets,\x20fields,\x20and\x20explicit\x20relation\x20selectors\x20(fromTable/fromColumn/toTable/toColumn).\x20','Get\x20the\x20link\x20graph\x20(entity-relationship)\x20for\x20the\x20app\x27s\x20datasets.\x20','3226485iNgNEU','fromField','read','Fetched\x20link\x20graph\x20for\x20','bool','stats','verbose','Link\x20graph:\x20','Filter\x20by\x20database\x20—\x20accepts\x20a\x20numeric\x20dblink\x20ID\x20or\x20a\x20database\x20name\x20(e.g.\x20ecommerce_db).\x20','4565eMQohn','229452KXrtBr','datasetCount','ONE_TO_ONE','str','toDataset','appCode','5180652nXRxuu','\x20database(s),\x20','toField','toDatasetName','154CxUxAA','890fOZGFe','datasetName','5402MOJaRl','dataset','datasets','fields','Ideal\x20for\x20AI\x20to\x20understand\x20the\x20full\x20data\x20model\x20before\x20writing\x20queries,\x20BFF\x20scripts,\x20or\x20dataset\x20link\x20mutations.','tableName','string','datasetCode','isPrimaryKey','filter','relationCount','map','15sNBjxC','dbId','dbType','trim','name','14ucxysU','all','\x20dataset(s),\x20','length','3816376yrEQsf'];a57_0x433c=function(){return _0x187e40;};return a57_0x433c();}function normalizeCardinality(_0x5dcf88){const _0x547881=a57_0x4dc532,_0x35f2ea=_0x5dcf88?.[_0x547881(0x1c8)]()['toUpperCase']();if(!_0x35f2ea)return undefined;return[_0x547881(0x1ae),'ONE_TO_MANY','MANY_TO_ONE','MANY_TO_MANY']['includes'](_0x35f2ea)?_0x35f2ea:undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a58_0x185b(_0x5f333d,_0x277978){_0x5f333d=_0x5f333d-0x14c;const _0x2d5329=a58_0x2d53();let _0x185b10=_0x2d5329[_0x5f333d];return _0x185b10;}const a58_0x2e7103=a58_0x185b;(function(_0x5275f9,_0x1a22c7){const _0x5a28b8=a58_0x185b,_0x1a16e9=_0x5275f9();while(!![]){try{const _0x4f067c=parseInt(_0x5a28b8(0x14d))/0x1*(parseInt(_0x5a28b8(0x157))/0x2)+parseInt(_0x5a28b8(0x156))/0x3+parseInt(_0x5a28b8(0x159))/0x4+-parseInt(_0x5a28b8(0x152))/0x5*(-parseInt(_0x5a28b8(0x15e))/0x6)+parseInt(_0x5a28b8(0x15d))/0x7*(-parseInt(_0x5a28b8(0x154))/0x8)+parseInt(_0x5a28b8(0x155))/0x9+parseInt(_0x5a28b8(0x14f))/0xa*(-parseInt(_0x5a28b8(0x15f))/0xb);if(_0x4f067c===_0x1a22c7)break;else _0x1a16e9['push'](_0x1a16e9['shift']());}catch(_0x1403ea){_0x1a16e9['push'](_0x1a16e9['shift']());}}}(a58_0x2d53,0x8b048));import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const datasetList={'service':a58_0x2e7103(0x15a),'command':'list','description':'List\x20all\x20datasets\x20with\x20metadata','risk':a58_0x2e7103(0x153),'flags':[{'name':a58_0x2e7103(0x158),'type':a58_0x2e7103(0x160),'description':a58_0x2e7103(0x163)},CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x3fe488){const _0x31189=a58_0x2e7103,_0x56afb9=_0x3fe488[_0x31189(0x165)](_0x31189(0x158)),_0x4f1975=_0x3fe488[_0x31189(0x165)](_0x31189(0x167)),_0x85c62f=await listDatasets(_0x3fe488['appCode'],{..._0x56afb9&&{'name':_0x56afb9},..._0x4f1975&&{'code':_0x4f1975}}),_0x3140ce=_0x85c62f['map'](_0x120ca5=>{const _0x4eb960=_0x31189,_0x477fc0=_0x120ca5[_0x4eb960(0x15c)]??{};return{'id':_0x120ca5['id'],'name':_0x120ca5['name'],'code':_0x120ca5[_0x4eb960(0x167)],'description':_0x120ca5['description'],'source':_0x120ca5['source'],'db':_0x477fc0[_0x4eb960(0x15b)],'table':_0x477fc0[_0x4eb960(0x162)],'datasetKey':_0x477fc0[_0x4eb960(0x14c)],'pk':_0x477fc0[_0x4eb960(0x14e)],'fields':_0x477fc0[_0x4eb960(0x151)]?_0x477fc0[_0x4eb960(0x151)][_0x4eb960(0x164)](',')[_0x4eb960(0x150)](_0x44b2c1=>_0x44b2c1['trim']()):[]};});return{'ok':!![],'data':{'total':_0x3140ce['length'],'datasets':_0x3140ce},'message':_0x31189(0x166)+_0x3140ce[_0x31189(0x161)]+'\x20dataset(s)'};}};function a58_0x2d53(){const _0x11e168=['split','str','Found\x20','code','datasetKey','172133lzGNFG','pkField','481810jtnkKh','map','allFields','3463765phGshh','read','364968fmNexR','8007426IQVxlm','2087580xOvRDB','6fkbmkt','name','216392MDoYoh','dataset','dbName','dbtableConfig','91OPqbrT','6kWrGQu','385HgxJqP','string','length','tableName','Filter\x20datasets\x20by\x20name\x20(server-side\x20fuzzy\x20match)'];a58_0x2d53=function(){return _0x11e168;};return a58_0x2d53();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a59_0x4792(_0x1fc67d,_0x14d37a){_0x1fc67d=_0x1fc67d-0x1f3;const _0x1a058a=a59_0x1a05();let _0x479206=_0x1a058a[_0x1fc67d];return _0x479206;}const a59_0x4f30ef=a59_0x4792;(function(_0x3ce943,_0x20c8ee){const _0x2df91c=a59_0x4792,_0x3fab6e=_0x3ce943();while(!![]){try{const _0x4676e4=parseInt(_0x2df91c(0x1f8))/0x1*(parseInt(_0x2df91c(0x1fe))/0x2)+parseInt(_0x2df91c(0x201))/0x3+parseInt(_0x2df91c(0x1fa))/0x4+parseInt(_0x2df91c(0x20a))/0x5+parseInt(_0x2df91c(0x202))/0x6+-parseInt(_0x2df91c(0x209))/0x7+-parseInt(_0x2df91c(0x208))/0x8;if(_0x4676e4===_0x20c8ee)break;else _0x3fab6e['push'](_0x3fab6e['shift']());}catch(_0x53cb85){_0x3fab6e['push'](_0x3fab6e['shift']());}}}(a59_0x1a05,0x51e55));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':a59_0x4f30ef(0x206),'risk':a59_0x4f30ef(0x205),'flags':[CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL,{'name':a59_0x4f30ef(0x1f4),'type':'string','description':a59_0x4f30ef(0x20d)},{'name':a59_0x4f30ef(0x20b),'type':a59_0x4f30ef(0x1f9),'description':a59_0x4f30ef(0x203)},{'name':a59_0x4f30ef(0x1fd),'type':a59_0x4f30ef(0x1ff),'description':a59_0x4f30ef(0x20c)}],async 'execute'(_0x1258bb){const _0x32ba03=a59_0x4f30ef,_0x552906=_0x1258bb[_0x32ba03(0x1fb)]('code'),_0x434568=_0x1258bb[_0x32ba03(0x1fb)](_0x32ba03(0x20b)),_0xf19141=_0x1258bb[_0x32ba03(0x1fc)]('verbose');if(_0x434568){const {dataset:_0x5bde40,operation:_0x304cf0}=await getOperationDetail(_0x1258bb[_0x32ba03(0x207)],_0x552906,_0x434568);return{'ok':!![],'data':{'dataset':_0x5bde40,'operation':_0x304cf0}};}const {dataset:_0x1ce713,operations:_0x196a3f}=await getDatasetOperations(_0x552906);return{'ok':!![],'data':{'dataset':_0x1ce713,'total':_0x196a3f['length'],'operations':_0xf19141?_0x196a3f:_0x196a3f[_0x32ba03(0x200)](_0x4cdc6f=>({'name':_0x4cdc6f[_0x32ba03(0x1f3)],'displayName':_0x4cdc6f[_0x32ba03(0x1f7)],'type':_0x4cdc6f[_0x32ba03(0x1f6)],'method':_0x4cdc6f[_0x32ba03(0x204)],'enabled':_0x4cdc6f[_0x32ba03(0x1f5)]}))}};}};function a59_0x1a05(){const _0x52773b=['read','Get\x20operations\x20for\x20a\x20dataset,\x20optionally\x20with\x20full\x20detail\x20for\x20one\x20operation','appCode','10999888TsnpYo','1123899ABDBaI','1915855GuRdJr','operation','Return\x20full\x20operation\x20objects\x20including\x20requestFields\x20and\x20responseFields','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','name','alias','enabled','type','displayName','4pOSutq','string','2125772ncmbZA','str','bool','verbose','104952CyUDrP','boolean','map','235413ZycFiG','4007994OmtRyW','Operation\x20name\x20to\x20get\x20full\x20detail\x20(e.g.\x20filter,\x20getOne,\x20create)','method'];a59_0x1a05=function(){return _0x52773b;};return a59_0x1a05();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a60_0x4b9b1d=a60_0x3af0;function a60_0x3af0(_0x221340,_0x3fae83){_0x221340=_0x221340-0x18f;const _0x3e6463=a60_0x3e64();let _0x3af0d1=_0x3e6463[_0x221340];return _0x3af0d1;}function a60_0x3e64(){const _0x342539=['3041ilXaSW','85685mAnqeX','write','152SCbmrM','plan','20dKpJHf','4213944kABOoI','920055oAykyq','num','317673boiFFN','4JinYoj','No\x20latestAnalysisTraceId\x20on\x20this\x20link.\x20Pass\x20--plan\x20<traceId>\x20from\x20db\x20list/detail.','36nipgOL','Cancel\x20a\x20running\x20schema\x20analysis.\x20Omit\x20--plan\x20to\x20use\x20latestAnalysisTraceId\x20from\x20the\x20link','Analysis\x20plan\x20/\x20trace\x20id\x20(optional\x20—\x20defaults\x20to\x20latest\x20trace\x20from\x20db\x20list/detail)','2270301LvCCfr','validation','3627596ERoaam','str','latestAnalysisTraceId','string'];a60_0x3e64=function(){return _0x342539;};return a60_0x3e64();}(function(_0x155500,_0x4e8ea1){const _0xe91afa=a60_0x3af0,_0x47968a=_0x155500();while(!![]){try{const _0x5f0311=parseInt(_0xe91afa(0x1a2))/0x1*(parseInt(_0xe91afa(0x190))/0x2)+parseInt(_0xe91afa(0x194))/0x3*(parseInt(_0xe91afa(0x197))/0x4)+-parseInt(_0xe91afa(0x1a3))/0x5*(parseInt(_0xe91afa(0x199))/0x6)+-parseInt(_0xe91afa(0x19e))/0x7+parseInt(_0xe91afa(0x193))/0x8+-parseInt(_0xe91afa(0x196))/0x9*(-parseInt(_0xe91afa(0x192))/0xa)+-parseInt(_0xe91afa(0x19c))/0xb;if(_0x5f0311===_0x4e8ea1)break;else _0x47968a['push'](_0x47968a['shift']());}catch(_0x5440f8){_0x47968a['push'](_0x47968a['shift']());}}}(a60_0x3e64,0x4b1f1));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':'analyze-cancel','description':a60_0x4b9b1d(0x19a),'risk':a60_0x4b9b1d(0x18f),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a60_0x4b9b1d(0x191),'type':a60_0x4b9b1d(0x1a1),'description':a60_0x4b9b1d(0x19b)}],async 'execute'(_0x136eb1){const _0x135c86=a60_0x4b9b1d,_0x2fbe67=_0x136eb1[_0x135c86(0x195)]('id');let _0x3946d0=_0x136eb1[_0x135c86(0x19f)](_0x135c86(0x191))||undefined;if(!_0x3946d0){const _0x23b8e9=await getDbLinkInfo(_0x2fbe67);_0x3946d0=_0x23b8e9[_0x135c86(0x1a0)]??undefined;if(!_0x3946d0)throw CliErrors[_0x135c86(0x19d)](_0x135c86(0x198),'Analysis\x20may\x20already\x20be\x20finished\x20or\x20never\x20started.');}return await cancelDbAnalysis(_0x3946d0),{'ok':!![],'data':{'dbLinkId':_0x2fbe67,'planId':_0x3946d0},'message':'Cancel\x20requested\x20for\x20plan\x20'+_0x3946d0};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a61_0x2ef5(){const _0x104c8d=['18610273OnQscj','Started\x20analysis\x20for\x20db\x20link\x20','117009FyBoQO','1298796RCgZRC','5adPkGY','4389188EHxVzU','num','filter','12eRzoxi','9SFrWjX','7981720CcswTQ','Comma-separated\x20table\x20names\x20for\x20incremental\x20analysis\x20(omit\x20for\x20full\x20analysis)','18LiJrrY','string','split','map','Start\x20schema\x20analysis\x20(full\x20or\x20incremental\x20table\x20list).\x20Returns\x20planId\x20for\x20analyze-status','4136466xBWYyG','10420670pnyrXl','appCode','write','trim','tables','analyze-start','7VOtdzM'];a61_0x2ef5=function(){return _0x104c8d;};return a61_0x2ef5();}function a61_0xf04a(_0x471844,_0x6da613){_0x471844=_0x471844-0x184;const _0x2ef5f7=a61_0x2ef5();let _0xf04a88=_0x2ef5f7[_0x471844];return _0xf04a88;}const a61_0x400abe=a61_0xf04a;(function(_0x4900e1,_0x1d4817){const _0x4d37a2=a61_0xf04a,_0x5d62f9=_0x4900e1();while(!![]){try{const _0x1d0d3e=parseInt(_0x4d37a2(0x191))/0x1*(parseInt(_0x4d37a2(0x19b))/0x2)+-parseInt(_0x4d37a2(0x192))/0x3+-parseInt(_0x4d37a2(0x194))/0x4*(parseInt(_0x4d37a2(0x193))/0x5)+-parseInt(_0x4d37a2(0x187))/0x6*(-parseInt(_0x4d37a2(0x18e))/0x7)+parseInt(_0x4d37a2(0x199))/0x8+parseInt(_0x4d37a2(0x198))/0x9*(parseInt(_0x4d37a2(0x188))/0xa)+-parseInt(_0x4d37a2(0x18f))/0xb*(parseInt(_0x4d37a2(0x197))/0xc);if(_0x1d0d3e===_0x1d4817)break;else _0x5d62f9['push'](_0x5d62f9['shift']());}catch(_0x405f90){_0x5d62f9['push'](_0x5d62f9['shift']());}}}(a61_0x2ef5,0x88c4a));import{startDbAnalysis}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbWorkbenchLinks}from'../../commands/db/shared.js';export const dbAnalyzeStart={'service':'db','command':a61_0x400abe(0x18d),'description':a61_0x400abe(0x186),'risk':a61_0x400abe(0x18a),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a61_0x400abe(0x18c),'type':a61_0x400abe(0x19c),'description':a61_0x400abe(0x19a)}],async 'execute'(_0x71914){const _0x3b473a=a61_0x400abe,_0x599667=_0x71914[_0x3b473a(0x195)]('id'),_0x1ae8e8=_0x71914['str'](_0x3b473a(0x18c)),_0x20b122=_0x1ae8e8?_0x1ae8e8[_0x3b473a(0x184)](',')[_0x3b473a(0x185)](_0x4259d0=>_0x4259d0[_0x3b473a(0x18b)]())[_0x3b473a(0x196)](Boolean):undefined,_0x195f75=await startDbAnalysis(_0x599667,_0x20b122),_0x4899dd=buildDbWorkbenchLinks(_0x71914[_0x3b473a(0x189)],_0x599667);return{'ok':!![],'data':{'dbLinkId':_0x599667,'planId':_0x195f75,'tableNames':_0x20b122??[],..._0x4899dd?{'links':_0x4899dd}:{}},'message':_0x3b473a(0x190)+_0x599667};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a62_0x59b7f9=a62_0x15b5;function a62_0x191a(){const _0x21ed03=['plan','3758419fIgpVQ','222dEDOsT','20LzOUpi','13346GIpxEQ','Analysis\x20plan\x20/\x20trace\x20id\x20(from\x20analyze-start\x20or\x20db\x20list\x20latestAnalysisTraceId)','read','156192QoevNy','44649XRQCRM','appCode','2123142JnwZOw','688ajndSi','374732GswtfR','string','Analysis\x20status\x20for\x20','analyze-status','2410MthguG','num','Fetch\x20schema\x20analysis\x20job\x20status\x20by\x20plan\x20/\x20trace\x20id','str','1100hMQfyA'];a62_0x191a=function(){return _0x21ed03;};return a62_0x191a();}(function(_0x26fc23,_0x5ae2e1){const _0x2f95d5=a62_0x15b5,_0x402742=_0x26fc23();while(!![]){try{const _0x589ae6=-parseInt(_0x2f95d5(0x136))/0x1+-parseInt(_0x2f95d5(0x12e))/0x2*(-parseInt(_0x2f95d5(0x12c))/0x3)+parseInt(_0x2f95d5(0x131))/0x4*(-parseInt(_0x2f95d5(0x12d))/0x5)+parseInt(_0x2f95d5(0x134))/0x6+parseInt(_0x2f95d5(0x12b))/0x7+parseInt(_0x2f95d5(0x135))/0x8*(-parseInt(_0x2f95d5(0x132))/0x9)+-parseInt(_0x2f95d5(0x13a))/0xa*(-parseInt(_0x2f95d5(0x129))/0xb);if(_0x589ae6===_0x5ae2e1)break;else _0x402742['push'](_0x402742['shift']());}catch(_0x19cafa){_0x402742['push'](_0x402742['shift']());}}}(a62_0x191a,0x6e222));import{getDbAnalysisStatus}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbWorkbenchLinks}from'../../commands/db/shared.js';function a62_0x15b5(_0xe56da4,_0x99234f){_0xe56da4=_0xe56da4-0x126;const _0x191a4c=a62_0x191a();let _0x15b56c=_0x191a4c[_0xe56da4];return _0x15b56c;}export const dbAnalyzeStatus={'service':'db','command':a62_0x59b7f9(0x139),'description':a62_0x59b7f9(0x127),'risk':a62_0x59b7f9(0x130),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a62_0x59b7f9(0x12a),'type':a62_0x59b7f9(0x137),'required':!![],'description':a62_0x59b7f9(0x12f)}],async 'execute'(_0x46d8e1){const _0x57f33e=a62_0x59b7f9,_0x27c8a5=_0x46d8e1[_0x57f33e(0x126)]('id'),_0x4ac838=_0x46d8e1[_0x57f33e(0x128)](_0x57f33e(0x12a)),_0x1ca45b=await getDbAnalysisStatus(_0x4ac838),_0x233cf8=buildDbWorkbenchLinks(_0x46d8e1[_0x57f33e(0x133)],_0x27c8a5);return{'ok':!![],'data':{'dbLinkId':_0x27c8a5,'planId':_0x4ac838,'status':_0x1ca45b,..._0x233cf8?{'links':_0x233cf8}:{}},'message':_0x57f33e(0x138)+_0x4ac838};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a63_0x5670d8=a63_0x2ec6;(function(_0x5ee3bc,_0x559fa0){const _0x37cc60=a63_0x2ec6,_0xc1d5e2=_0x5ee3bc();while(!![]){try{const _0x152ce1=-parseInt(_0x37cc60(0xa2))/0x1*(-parseInt(_0x37cc60(0xbe))/0x2)+-parseInt(_0x37cc60(0x9e))/0x3+parseInt(_0x37cc60(0xc3))/0x4*(-parseInt(_0x37cc60(0xc6))/0x5)+parseInt(_0x37cc60(0x9a))/0x6+parseInt(_0x37cc60(0x9c))/0x7*(parseInt(_0x37cc60(0xb5))/0x8)+-parseInt(_0x37cc60(0xb9))/0x9*(-parseInt(_0x37cc60(0xb8))/0xa)+parseInt(_0x37cc60(0xa1))/0xb;if(_0x152ce1===_0x559fa0)break;else _0xc1d5e2['push'](_0xc1d5e2['shift']());}catch(_0x18c84f){_0xc1d5e2['push'](_0xc1d5e2['shift']());}}}(a63_0x1c30,0xb5580));import{createDbLink,startDbAnalysis}from'../../core/api-client.js';function a63_0x2ec6(_0x400b63,_0x506bf0){_0x400b63=_0x400b63-0x9a;const _0x1c3023=a63_0x1c30();let _0x2ec661=_0x1c3023[_0x400b63];return _0x2ec661;}import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DB_TYPE_FLAG}from'../../commands/common/flags.js';function a63_0x1c30(){const _0x88ad62=['8.0','join','Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server',';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning','dbversion','Created\x20db\x20link\x20','username','Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','8dNxWOY','validation','dbtype','10OdUmzs','2890206kyAOLV','password','boolean','dbdesc','Create\x20dblink','244QbEbGP','\x20and\x20started\x20analysis','/smartapi/dblink/create','trim','dbname','569020GDKdop','Extra\x20JDBC-style\x20connection\x20parameters\x20string','bool','25zuFRlU','create','appCode','5083218lDZAnC','dbparam','723541pJOqMX','str','3612978NGpFGc','string','No\x20follow-up\x20analysis','12393733nkPRFx','2131fNwKOz','Host\x20and\x20port:\x20host:port','autostart','After\x20create,\x20start\x20schema\x20analysis\x20(same\x20as\x20workbench\x20flow)','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.','Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22','databasePage','Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','[redacted]','dburl','write'];a63_0x1c30=function(){return _0x88ad62;};return a63_0x1c30();}import{buildDbWorkbenchLinks,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbCreate={'service':'db','command':a63_0x5670d8(0xc7),'description':a63_0x5670d8(0xb4),'risk':a63_0x5670d8(0xac),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a63_0x5670d8(0xc2),'type':a63_0x5670d8(0x9f),'required':!![],'description':a63_0x5670d8(0xaf)},DB_TYPE_FLAG,{'name':a63_0x5670d8(0xb1),'type':'string','description':a63_0x5670d8(0xa9),'default':a63_0x5670d8(0xad)},{'name':'dburl','type':'string','required':!![],'description':a63_0x5670d8(0xa3)},{'name':a63_0x5670d8(0xb3),'type':a63_0x5670d8(0x9f),'required':!![],'description':'Database\x20username'},{'name':a63_0x5670d8(0xba),'type':a63_0x5670d8(0x9f),'required':!![],'description':'Database\x20password'},{'name':a63_0x5670d8(0x9b),'type':'string','description':a63_0x5670d8(0xc4)},{'name':a63_0x5670d8(0xbc),'type':'string','description':'Human-readable\x20description'},{'name':a63_0x5670d8(0xa4),'type':a63_0x5670d8(0xbb),'description':a63_0x5670d8(0xa5),'default':![]}],async 'validate'(_0x46de64){const _0x2aeea6=a63_0x5670d8,_0x138bee=_0x46de64['str'](_0x2aeea6(0xab))[_0x2aeea6(0xc1)]();if(!validateDbUrl(_0x138bee))throw CliErrors[_0x2aeea6(0xb6)](_0x2aeea6(0xa7)+_0x138bee+'\x22',_0x2aeea6(0xa6));},async 'dryRun'(_0x3d2ec3){const _0x320db6=a63_0x5670d8,_0x5171fd={'appCode':_0x3d2ec3[_0x320db6(0xc8)],'dbName':_0x3d2ec3['str'](_0x320db6(0xc2)),'dbType':_0x3d2ec3[_0x320db6(0x9d)]('dbtype'),'dbVersion':_0x3d2ec3[_0x320db6(0x9d)](_0x320db6(0xb1))||_0x320db6(0xad),'dbUrl':_0x3d2ec3['str'](_0x320db6(0xab))[_0x320db6(0xc1)](),'username':_0x3d2ec3[_0x320db6(0x9d)](_0x320db6(0xb3)),'password':_0x320db6(0xaa),..._0x3d2ec3[_0x320db6(0x9d)](_0x320db6(0x9b))?{'dbParam':_0x3d2ec3[_0x320db6(0x9d)]('dbparam')}:{},..._0x3d2ec3[_0x320db6(0x9d)](_0x320db6(0xbc))?{'dbDesc':_0x3d2ec3[_0x320db6(0x9d)](_0x320db6(0xbc))}:{}};return{'method':'POST','url':_0x320db6(0xc0),'body':_0x5171fd,'description':[_0x320db6(0xbd),_0x3d2ec3[_0x320db6(0xc5)]('autostart')?'Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id':_0x320db6(0xa0)][_0x320db6(0xae)]('\x0a')};},async 'execute'(_0x3a7cd7){const _0x1e0d7a=a63_0x5670d8,_0x2ffa3c={'appCode':_0x3a7cd7[_0x1e0d7a(0xc8)],'dbName':_0x3a7cd7['str'](_0x1e0d7a(0xc2)),'dbType':_0x3a7cd7[_0x1e0d7a(0x9d)](_0x1e0d7a(0xb7)),'dbVersion':_0x3a7cd7[_0x1e0d7a(0x9d)]('dbversion')||_0x1e0d7a(0xad),'dbUrl':_0x3a7cd7[_0x1e0d7a(0x9d)](_0x1e0d7a(0xab))[_0x1e0d7a(0xc1)](),'username':_0x3a7cd7[_0x1e0d7a(0x9d)](_0x1e0d7a(0xb3)),'password':_0x3a7cd7[_0x1e0d7a(0x9d)]('password'),..._0x3a7cd7['str'](_0x1e0d7a(0x9b))?{'dbParam':_0x3a7cd7[_0x1e0d7a(0x9d)](_0x1e0d7a(0x9b))}:{},..._0x3a7cd7[_0x1e0d7a(0x9d)](_0x1e0d7a(0xbc))?{'dbDesc':_0x3a7cd7[_0x1e0d7a(0x9d)]('dbdesc')}:{}},{id:_0x4aac25,entity:_0x44f174}=normalizeEntityWithIdResponse(await createDbLink(_0x2ffa3c));if(!_0x4aac25)return{'ok':![],'message':'Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','data':sanitizeDbLinkForOutput(_0x44f174)};let _0x3456f2,_0x2c21af;if(_0x3a7cd7['bool']('autostart'))try{_0x3456f2=await startDbAnalysis(_0x4aac25);}catch(_0x57877b){_0x2c21af=_0x57877b instanceof Error?_0x57877b['message']:String(_0x57877b);}const _0x4d553d=buildDbWorkbenchLinks(_0x3a7cd7[_0x1e0d7a(0xc8)],_0x4aac25),_0x3fc3c0={'connection':sanitizeDbLinkForOutput(_0x44f174),..._0x4d553d?{'links':{'databasePage':_0x4d553d[_0x1e0d7a(0xa8)]}}:{},..._0x3456f2?{'analysisPlanId':_0x3456f2}:{},..._0x2c21af?{'analysisStartWarning':_0x2c21af}:{}};let _0x10c4f;return _0x3a7cd7[_0x1e0d7a(0xc5)]('autostart')?_0x2c21af?_0x10c4f=_0x1e0d7a(0xb2)+_0x4aac25+_0x1e0d7a(0xb0):_0x10c4f=_0x1e0d7a(0xb2)+_0x4aac25+_0x1e0d7a(0xbf):_0x10c4f='Created\x20db\x20link\x20'+_0x4aac25,{'ok':!![],'data':_0x3fc3c0,'message':_0x10c4f};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a64_0x5a1255=a64_0x1bc3;(function(_0xec12dc,_0x289e80){const _0x8ba402=a64_0x1bc3,_0x190027=_0xec12dc();while(!![]){try{const _0x712f80=parseInt(_0x8ba402(0x188))/0x1+-parseInt(_0x8ba402(0x190))/0x2+parseInt(_0x8ba402(0x186))/0x3+parseInt(_0x8ba402(0x187))/0x4+-parseInt(_0x8ba402(0x191))/0x5+parseInt(_0x8ba402(0x18e))/0x6+-parseInt(_0x8ba402(0x18d))/0x7;if(_0x712f80===_0x289e80)break;else _0x190027['push'](_0x190027['shift']());}catch(_0x230331){_0x190027['push'](_0x190027['shift']());}}}(a64_0x2cf3,0x50640));function a64_0x2cf3(){const _0x358bcf=['1220284ofwdNM','1206575HofwdZ','1500153IiVqtH','537156yhJUeM','155548kKFNMI','high-risk-write','delete','Deleted\x20db\x20link\x20','Delete\x20a\x20database\x20connection\x20(dblink)\x20permanently','133490OABHlA','2459514mKkLOc','num'];a64_0x2cf3=function(){return _0x358bcf;};return a64_0x2cf3();}import{deleteDbLink}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a64_0x1bc3(_0x104a40,_0x4dde9f){_0x104a40=_0x104a40-0x186;const _0x2cf349=a64_0x2cf3();let _0x1bc301=_0x2cf349[_0x104a40];return _0x1bc301;}export const dbDelete={'service':'db','command':a64_0x5a1255(0x18a),'description':a64_0x5a1255(0x18c),'risk':a64_0x5a1255(0x189),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x5d7d1d){const _0x27c9b2=a64_0x5a1255,_0x1e7799=_0x5d7d1d[_0x27c9b2(0x18f)]('id');return await deleteDbLink(_0x1e7799),{'ok':!![],'data':{'id':_0x1e7799,'deleted':!![]},'message':_0x27c9b2(0x18b)+_0x1e7799};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a65_0x31ec(){const _0x88f5de=['3HUfOcE','12kGHctj','44706inetJf','10653799mTTocY','181593qpGXgL','215nDKaTY','dbName','Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','2237037rcICVR','883296WbZuOK','db\x20link\x20','8qgxCBF','detail','20cFkLUM','1536899nvfXyc','10COsBAh','read','44374gLCyif'];a65_0x31ec=function(){return _0x88f5de;};return a65_0x31ec();}const a65_0x2942f9=a65_0x37f9;(function(_0x18c526,_0x3e91fd){const _0x28a52e=a65_0x37f9,_0x1c259e=_0x18c526();while(!![]){try{const _0x141047=parseInt(_0x28a52e(0x1ad))/0x1*(-parseInt(_0x28a52e(0x1ac))/0x2)+parseInt(_0x28a52e(0x19f))/0x3*(parseInt(_0x28a52e(0x1a8))/0x4)+-parseInt(_0x28a52e(0x1a0))/0x5*(-parseInt(_0x28a52e(0x1af))/0x6)+parseInt(_0x28a52e(0x1a9))/0x7*(parseInt(_0x28a52e(0x1a6))/0x8)+parseInt(_0x28a52e(0x1a4))/0x9+parseInt(_0x28a52e(0x1aa))/0xa*(parseInt(_0x28a52e(0x1a3))/0xb)+-parseInt(_0x28a52e(0x1ae))/0xc*(parseInt(_0x28a52e(0x19e))/0xd);if(_0x141047===_0x3e91fd)break;else _0x1c259e['push'](_0x1c259e['shift']());}catch(_0x3b86b9){_0x1c259e['push'](_0x1c259e['shift']());}}}(a65_0x31ec,0x3eff0));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';function a65_0x37f9(_0x4e9137,_0x37c406){_0x4e9137=_0x4e9137-0x19e;const _0x31ec22=a65_0x31ec();let _0x37f96f=_0x31ec22[_0x4e9137];return _0x37f96f;}export const dbDetail={'service':'db','command':a65_0x2942f9(0x1a7),'description':a65_0x2942f9(0x1a2),'risk':a65_0x2942f9(0x1ab),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x5309e1){const _0x1c4ade=a65_0x2942f9,_0x3f55dd=_0x5309e1['num']('id'),_0x546f85=await getDbLinkInfo(_0x3f55dd);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x546f85),'message':_0x1c4ade(0x1a5)+_0x3f55dd+':\x20'+_0x546f85[_0x1c4ade(0x1a1)]};}};
|
package/lib/commands/db/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a66_0x4e776c=a66_0x2634;(function(_0x56b73d,_0x28ff3a){const _0x10e417=a66_0x2634,_0x1d5a03=_0x56b73d();while(!![]){try{const _0xe30dc0=parseInt(_0x10e417(0x197))/0x1*(-parseInt(_0x10e417(0x1a7))/0x2)+parseInt(_0x10e417(0x19e))/0x3+parseInt(_0x10e417(0x199))/0x4*(-parseInt(_0x10e417(0x192))/0x5)+parseInt(_0x10e417(0x1a1))/0x6+parseInt(_0x10e417(0x19b))/0x7+-parseInt(_0x10e417(0x1a6))/0x8+-parseInt(_0x10e417(0x195))/0x9*(-parseInt(_0x10e417(0x194))/0xa);if(_0xe30dc0===_0x28ff3a)break;else _0x1d5a03['push'](_0x1d5a03['shift']());}catch(_0x3f556e){_0x1d5a03['push'](_0x1d5a03['shift']());}}}(a66_0x3846,0x7a159));import{getDbTableDiff}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a66_0x3846(){const _0x1b104c=['1103730XoZzkP','9dVQppE','appCode','15371XdHiSc','number','343004hNWpfI','pagesize','3804598LqIdmv','table','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','1569447tYFWsy','Page\x20size','diff','2882682nENTDF','num','read','page','string','5007328hSOqcz','58QaTvYv','\x20(db\x20link\x20','Paged\x20diff\x20between\x20live\x20database\x20schema\x20and\x20last\x20analyzed\x20snapshot\x20(new\x20/\x20deleted\x20/\x20modified\x20tables)','5NzGcYK','\x20row(s),\x20total\x20'];a66_0x3846=function(){return _0x1b104c;};return a66_0x3846();}function a66_0x2634(_0x2fd6c3,_0x379e24){_0x2fd6c3=_0x2fd6c3-0x192;const _0x3846b5=a66_0x3846();let _0x263411=_0x3846b5[_0x2fd6c3];return _0x263411;}export const dbDiff={'service':'db','command':a66_0x4e776c(0x1a0),'description':a66_0x4e776c(0x1a9),'risk':a66_0x4e776c(0x1a3),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a66_0x4e776c(0x19c),'type':a66_0x4e776c(0x1a5),'description':a66_0x4e776c(0x19d)},{'name':a66_0x4e776c(0x1a4),'type':a66_0x4e776c(0x198),'description':'Page\x20index\x20(1-based)','default':0x1},{'name':a66_0x4e776c(0x19a),'type':a66_0x4e776c(0x198),'description':a66_0x4e776c(0x19f),'default':0x14}],async 'execute'(_0x1c87ee){const _0x519c62=a66_0x4e776c,_0xc9bac1=_0x1c87ee[_0x519c62(0x1a2)]('id'),_0x232585=_0x1c87ee['num'](_0x519c62(0x1a4),0x1)||0x1,_0x256d4d=_0x1c87ee[_0x519c62(0x1a2)](_0x519c62(0x19a),0x14)||0x14,_0x30eae8=_0x1c87ee['str'](_0x519c62(0x19c))||undefined,{totalCount:_0x24fdcb,tableList:_0x360fbe}=await getDbTableDiff(_0x1c87ee[_0x519c62(0x196)],_0xc9bac1,{'pageIndex':_0x232585,'pageSize':_0x256d4d,'tableName':_0x30eae8});return{'ok':!![],'data':{'dbLinkId':_0xc9bac1,'page':_0x232585,'pageSize':_0x256d4d,'totalCount':_0x24fdcb,'tableList':_0x360fbe},'message':_0x360fbe['length']+_0x519c62(0x193)+_0x24fdcb+_0x519c62(0x1a8)+_0xc9bac1+')'};}};
|
package/lib/commands/db/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xed1a19,_0x5c3c74){const _0x44b19e=a67_0xce1b,_0x5bc6db=_0xed1a19();while(!![]){try{const _0x1af81f=parseInt(_0x44b19e(0x141))/0x1+parseInt(_0x44b19e(0x142))/0x2*(-parseInt(_0x44b19e(0x13b))/0x3)+-parseInt(_0x44b19e(0x13e))/0x4+parseInt(_0x44b19e(0x140))/0x5*(parseInt(_0x44b19e(0x13a))/0x6)+parseInt(_0x44b19e(0x13c))/0x7*(-parseInt(_0x44b19e(0x13d))/0x8)+-parseInt(_0x44b19e(0x139))/0x9+parseInt(_0x44b19e(0x13f))/0xa;if(_0x1af81f===_0x5c3c74)break;else _0x5bc6db['push'](_0x5bc6db['shift']());}catch(_0x58e889){_0x5bc6db['push'](_0x5bc6db['shift']());}}}(a67_0x3bb7,0x6dd7e));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';function a67_0xce1b(_0x255029,_0x5467cb){_0x255029=_0x255029-0x139;const _0x3bb754=a67_0x3bb7();let _0xce1be0=_0x3bb754[_0x255029];return _0xce1be0;}import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';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];function a67_0x3bb7(){const _0x434fcb=['2259861jBcYVw','20167lxHJSg','488QdKszP','1032304TiObtb','11436510TvZCff','5ZbAWmc','500109rEhdYu','2VcPWEA','6466536uqIylu','4270596gsmavg'];a67_0x3bb7=function(){return _0x434fcb;};return a67_0x3bb7();}
|