@gct-paas/api 0.1.6-dev.0 → 0.1.6-dev.10
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/dist/index.esm.min.js +1 -4
- package/es/apaas/service/api-config.mjs +91 -0
- package/es/apaas/service/apis/api.service.d.ts +4 -0
- package/es/apaas/service/apis/app-org.service.d.ts +4 -0
- package/es/apaas/service/apis/category.service.d.ts +8 -0
- package/es/apaas/service/apis/detail-page.service.d.ts +96 -0
- package/es/apaas/service/apis/edhr-instance.service.d.ts +12 -0
- package/es/apaas/service/apis/medPro.service.d.ts +108 -0
- package/es/apaas/service/apis/online-form-instance.service.d.ts +4 -4
- package/es/apaas/service/apis/online-form-tmpl.service.d.ts +18 -1
- package/es/apaas/service/apis/ss.service.d.ts +9 -0
- package/es/apaas/service/apis/transaction.service.d.ts +157 -0
- package/es/apaas/service/apis/user.service.d.ts +31 -0
- package/es/apaas/service/entities.d.ts +24 -37
- package/es/platform/service/api-config.mjs +4 -2
- package/es/platform/service/apis/api.service.d.ts +10 -1
- package/es/platform/service/apis/app.service.d.ts +4 -0
- package/es/platform/service/apis/dashboard.service.d.ts +0 -4
- package/es/platform/service/apis/license.service.d.ts +10 -1
- package/es/platform/service/apis/org.service.d.ts +0 -4
- package/es/platform/service/apis/tenant.service.d.ts +0 -4
- package/es/platform/service/entities.d.ts +0 -1
- package/es/service/index.mjs +0 -2
- package/es/types/index.d.ts +8 -0
- package/es/utils/index.d.ts +0 -1
- package/es/utils/index.mjs +0 -1
- package/lib/apaas/index.cjs +12 -0
- package/lib/apaas/service/api-config.cjs +6377 -0
- package/lib/apaas/service/apis/api.service.d.ts +733 -0
- package/lib/apaas/service/apis/app-branch.service.d.ts +70 -0
- package/lib/apaas/service/apis/app-global-settings.service.d.ts +81 -0
- package/lib/apaas/service/apis/app-granted-user.service.d.ts +86 -0
- package/lib/apaas/service/apis/app-org.service.d.ts +184 -0
- package/lib/apaas/service/apis/app-publish-log.service.d.ts +72 -0
- package/lib/apaas/service/apis/app-state.service.d.ts +11 -0
- package/lib/apaas/service/apis/app-user.service.d.ts +142 -0
- package/lib/apaas/service/apis/approval-log.service.d.ts +70 -0
- package/lib/apaas/service/apis/audit-log.service.d.ts +59 -0
- package/lib/apaas/service/apis/basic-config.service.d.ts +72 -0
- package/lib/apaas/service/apis/biz-event.service.d.ts +83 -0
- package/lib/apaas/service/apis/biz-process-definition-version.service.d.ts +89 -0
- package/lib/apaas/service/apis/biz-process-definition.service.d.ts +91 -0
- package/lib/apaas/service/apis/biz-service-crud.service.d.ts +182 -0
- package/lib/apaas/service/apis/biz-service.service.d.ts +58 -0
- package/lib/apaas/service/apis/bom.service.d.ts +7 -0
- package/lib/apaas/service/apis/category-relation.service.d.ts +108 -0
- package/lib/apaas/service/apis/category.service.d.ts +323 -0
- package/lib/apaas/service/apis/chat.service.d.ts +20 -0
- package/lib/apaas/service/apis/code-ts.service.d.ts +8 -0
- package/lib/apaas/service/apis/commit-log.service.d.ts +147 -0
- package/lib/apaas/service/apis/common-info-card.service.d.ts +94 -0
- package/lib/apaas/service/apis/control-config.service.d.ts +123 -0
- package/lib/apaas/service/apis/customer-complaint.service.d.ts +108 -0
- package/lib/apaas/service/apis/dashboard.service.d.ts +90 -0
- package/lib/apaas/service/apis/data-model.service.d.ts +125 -0
- package/lib/apaas/service/apis/data-source.service.d.ts +33 -0
- package/lib/apaas/service/apis/data-trace.service.d.ts +75 -0
- package/lib/apaas/service/apis/designer-common.service.d.ts +446 -0
- package/lib/apaas/service/apis/designer-lock.service.d.ts +50 -0
- package/lib/apaas/service/apis/designer-operate-log.service.d.ts +46 -0
- package/lib/apaas/service/apis/devops.service.d.ts +18 -0
- package/lib/apaas/service/apis/dhr.service.d.ts +83 -0
- package/lib/apaas/service/apis/dify-chat.service.d.ts +19 -0
- package/lib/apaas/service/apis/doc-control-started.service.d.ts +76 -0
- package/lib/apaas/service/apis/doc-control-task-done.service.d.ts +76 -0
- package/lib/apaas/service/apis/doc-control-task-todo.service.d.ts +121 -0
- package/lib/apaas/service/apis/doc-control.service.d.ts +101 -0
- package/lib/apaas/service/apis/doc-outline.service.d.ts +156 -0
- package/lib/apaas/service/apis/document.service.d.ts +197 -0
- package/lib/apaas/service/apis/edhr-category.service.d.ts +84 -0
- package/lib/apaas/service/apis/edhr-circulationFormRelateModel.service.d.ts +93 -0
- package/lib/apaas/service/apis/edhr-instance-relation.service.d.ts +54 -0
- package/lib/apaas/service/apis/edhr-instance-search-history.service.d.ts +31 -0
- package/lib/apaas/service/apis/edhr-instance.service.d.ts +277 -0
- package/lib/apaas/service/apis/edhr-tmpl.service.d.ts +138 -0
- package/lib/apaas/service/apis/ele-search.service.d.ts +18 -0
- package/lib/apaas/service/apis/enum-model-field.service.d.ts +124 -0
- package/lib/apaas/service/apis/enum-model.service.d.ts +133 -0
- package/lib/apaas/service/apis/event-log.service.d.ts +52 -0
- package/lib/apaas/service/apis/event.service.d.ts +83 -0
- package/lib/apaas/service/apis/excel-tmpl.service.d.ts +191 -0
- package/lib/apaas/service/apis/excel.service.d.ts +144 -0
- package/lib/apaas/service/apis/field-meta.service.d.ts +181 -0
- package/lib/apaas/service/apis/field.service.d.ts +16 -0
- package/lib/apaas/service/apis/file-resource.service.d.ts +40 -0
- package/lib/apaas/service/apis/file-task.service.d.ts +23 -0
- package/lib/apaas/service/apis/file.service.d.ts +44 -0
- package/lib/apaas/service/apis/form.service.d.ts +54 -0
- package/lib/apaas/service/apis/formRelate.service.d.ts +243 -0
- package/lib/apaas/service/apis/front-operate-log.service.d.ts +46 -0
- package/lib/apaas/service/apis/global-method.service.d.ts +80 -0
- package/lib/apaas/service/apis/i18n-info.service.d.ts +84 -0
- package/lib/apaas/service/apis/import-report.service.d.ts +41 -0
- package/lib/apaas/service/apis/instance-relation.service.d.ts +89 -0
- package/lib/apaas/service/apis/ipaas.service.d.ts +12 -0
- package/lib/apaas/service/apis/job-log.service.d.ts +63 -0
- package/lib/apaas/service/apis/job.service.d.ts +133 -0
- package/lib/apaas/service/apis/js-engine.service.d.ts +37 -0
- package/lib/apaas/service/apis/label-log.service.d.ts +90 -0
- package/lib/apaas/service/apis/label.service.d.ts +351 -0
- package/lib/apaas/service/apis/login-log.service.d.ts +12 -0
- package/lib/apaas/service/apis/med-pro.service.d.ts +76 -0
- package/lib/apaas/service/apis/medPro.service.d.ts +48 -0
- package/lib/apaas/service/apis/menu-config.service.d.ts +86 -0
- package/lib/apaas/service/apis/merge-log.service.d.ts +53 -0
- package/lib/apaas/service/apis/message-record.service.d.ts +101 -0
- package/lib/apaas/service/apis/message-setting.service.d.ts +25 -0
- package/lib/apaas/service/apis/message-tmpl.service.d.ts +116 -0
- package/lib/apaas/service/apis/mobile-homepage.service.d.ts +100 -0
- package/lib/apaas/service/apis/mobile-page.service.d.ts +133 -0
- package/lib/apaas/service/apis/model-comprehensive.service.d.ts +450 -0
- package/lib/apaas/service/apis/model-data.service.d.ts +70 -0
- package/lib/apaas/service/apis/model-meta.service.d.ts +342 -0
- package/lib/apaas/service/apis/model-method.service.d.ts +91 -0
- package/lib/apaas/service/apis/model-permission-relation.service.d.ts +75 -0
- package/lib/apaas/service/apis/model.service.d.ts +16 -0
- package/lib/apaas/service/apis/ocr.service.d.ts +7 -0
- package/lib/apaas/service/apis/office.service.d.ts +7 -0
- package/lib/apaas/service/apis/online-form-category.service.d.ts +84 -0
- package/lib/apaas/service/apis/online-form-change-history.service.d.ts +26 -0
- package/lib/apaas/service/apis/online-form-instance.service.d.ts +803 -0
- package/lib/apaas/service/apis/online-form-log.service.d.ts +30 -0
- package/lib/apaas/service/apis/online-form-tmpl-log.service.d.ts +86 -0
- package/lib/apaas/service/apis/online-form-tmpl.service.d.ts +286 -0
- package/lib/apaas/service/apis/online-form.service.d.ts +180 -0
- package/lib/apaas/service/apis/online-user-summary.service.d.ts +75 -0
- package/lib/apaas/service/apis/online.service.d.ts +89 -0
- package/lib/apaas/service/apis/openapi.service.d.ts +99 -0
- package/lib/apaas/service/apis/pad-page.service.d.ts +132 -0
- package/lib/apaas/service/apis/page-designer-log.service.d.ts +107 -0
- package/lib/apaas/service/apis/permission.service.d.ts +79 -0
- package/lib/apaas/service/apis/plat.service.d.ts +45 -0
- package/lib/apaas/service/apis/pm-process-definition-version.service.d.ts +97 -0
- package/lib/apaas/service/apis/pm-process-definition.service.d.ts +121 -0
- package/lib/apaas/service/apis/pm-process-engine.service.d.ts +208 -0
- package/lib/apaas/service/apis/print-designer.service.d.ts +126 -0
- package/lib/apaas/service/apis/print-log.service.d.ts +23 -0
- package/lib/apaas/service/apis/print.service.d.ts +45 -0
- package/lib/apaas/service/apis/process-approval-log.service.d.ts +89 -0
- package/lib/apaas/service/apis/process-approve-user.service.d.ts +75 -0
- package/lib/apaas/service/apis/process-definition-version.service.d.ts +96 -0
- package/lib/apaas/service/apis/process-definition.service.d.ts +85 -0
- package/lib/apaas/service/apis/process-engine.service.d.ts +75 -0
- package/lib/apaas/service/apis/process-event.service.d.ts +72 -0
- package/lib/apaas/service/apis/process-graph.service.d.ts +18 -0
- package/lib/apaas/service/apis/process-instance-relation-.service.d.ts +75 -0
- package/lib/apaas/service/apis/process-instance.service.d.ts +75 -0
- package/lib/apaas/service/apis/process-message-user.service.d.ts +75 -0
- package/lib/apaas/service/apis/process-node-definition.service.d.ts +75 -0
- package/lib/apaas/service/apis/process-path-user.service.d.ts +75 -0
- package/lib/apaas/service/apis/process-path.service.d.ts +44 -0
- package/lib/apaas/service/apis/process-task-done.service.d.ts +118 -0
- package/lib/apaas/service/apis/process-task-todo.service.d.ts +231 -0
- package/lib/apaas/service/apis/process-version.service.d.ts +76 -0
- package/lib/apaas/service/apis/process.service.d.ts +66 -0
- package/lib/apaas/service/apis/processTest.service.d.ts +106 -0
- package/lib/apaas/service/apis/product-release.service.d.ts +118 -0
- package/lib/apaas/service/apis/publish-log.service.d.ts +101 -0
- package/lib/apaas/service/apis/regexp.service.d.ts +94 -0
- package/lib/apaas/service/apis/report-data-set.service.d.ts +127 -0
- package/lib/apaas/service/apis/report-data.service.d.ts +30 -0
- package/lib/apaas/service/apis/report.service.d.ts +164 -0
- package/lib/apaas/service/apis/role-permission.service.d.ts +47 -0
- package/lib/apaas/service/apis/role.service.d.ts +91 -0
- package/lib/apaas/service/apis/sandbox-config.service.d.ts +112 -0
- package/lib/apaas/service/apis/script-assistant.service.d.ts +16 -0
- package/lib/apaas/service/apis/script-version-log.service.d.ts +82 -0
- package/lib/apaas/service/apis/script-version.service.d.ts +115 -0
- package/lib/apaas/service/apis/script.service.d.ts +115 -0
- package/lib/apaas/service/apis/service-orchestration-version-log.service.d.ts +88 -0
- package/lib/apaas/service/apis/service-orchestration-version.service.d.ts +115 -0
- package/lib/apaas/service/apis/service-orchestration.service.d.ts +120 -0
- package/lib/apaas/service/apis/sign-history.service.d.ts +70 -0
- package/lib/apaas/service/apis/sign-log.service.d.ts +19 -0
- package/lib/apaas/service/apis/signature.service.d.ts +19 -0
- package/lib/apaas/service/apis/sql-view-model.service.d.ts +65 -0
- package/lib/apaas/service/apis/sql-view.service.d.ts +18 -0
- package/lib/apaas/service/apis/ss.service.d.ts +25 -0
- package/lib/apaas/service/apis/stash.service.d.ts +62 -0
- package/lib/apaas/service/apis/sub-model-process.service.d.ts +9 -0
- package/lib/apaas/service/apis/sys-config.service.d.ts +70 -0
- package/lib/apaas/service/apis/system-var.service.d.ts +126 -0
- package/lib/apaas/service/apis/trace-log-details.service.d.ts +134 -0
- package/lib/apaas/service/apis/trace-log.service.d.ts +115 -0
- package/lib/apaas/service/apis/trace-mainline-ext.service.d.ts +75 -0
- package/lib/apaas/service/apis/trace-mainline.service.d.ts +72 -0
- package/lib/apaas/service/apis/trace-setting.service.d.ts +48 -0
- package/lib/apaas/service/apis/user-group-relation.service.d.ts +46 -0
- package/lib/apaas/service/apis/user-group.service.d.ts +87 -0
- package/lib/apaas/service/apis/view-model.service.d.ts +166 -0
- package/lib/apaas/service/apis/wash.service.d.ts +11 -0
- package/lib/apaas/service/apis/webpage.service.d.ts +169 -0
- package/lib/apaas/service/entities.d.ts +33950 -0
- package/lib/apaas/service/index.d.ts +323 -0
- package/lib/index.cjs +16 -0
- package/lib/ipaas/index.cjs +12 -0
- package/lib/ipaas/service/api-config.cjs +322 -0
- package/lib/ipaas/service/apis/auth.service.d.ts +36 -0
- package/lib/ipaas/service/apis/camel.service.d.ts +63 -0
- package/lib/ipaas/service/apis/category.service.d.ts +12 -0
- package/lib/ipaas/service/apis/connector-config.service.d.ts +119 -0
- package/lib/ipaas/service/apis/connector-log.service.d.ts +46 -0
- package/lib/ipaas/service/apis/flow-app.service.d.ts +75 -0
- package/lib/ipaas/service/apis/flow-category.service.d.ts +192 -0
- package/lib/ipaas/service/apis/flow-ext.service.d.ts +100 -0
- package/lib/ipaas/service/apis/flow.service.d.ts +96 -0
- package/lib/ipaas/service/apis/runtime.service.d.ts +29 -0
- package/lib/ipaas/service/entities.d.ts +1762 -0
- package/lib/ipaas/service/index.d.ts +23 -0
- package/lib/platform/index.cjs +12 -0
- package/lib/platform/service/api-config.cjs +5288 -0
- package/lib/platform/service/apis/agent.service.d.ts +70 -0
- package/lib/platform/service/apis/api.service.d.ts +1597 -0
- package/lib/platform/service/apis/apk.service.d.ts +61 -0
- package/lib/platform/service/apis/app-member.service.d.ts +102 -0
- package/lib/platform/service/apis/app-setting.service.d.ts +107 -0
- package/lib/platform/service/apis/app.service.d.ts +723 -0
- package/lib/platform/service/apis/assets.service.d.ts +102 -0
- package/lib/platform/service/apis/attachmentResourceTransfer.service.d.ts +13 -0
- package/lib/platform/service/apis/audit-log.service.d.ts +48 -0
- package/lib/platform/service/apis/bi-app.service.d.ts +14 -0
- package/lib/platform/service/apis/bi-data-set.service.d.ts +82 -0
- package/lib/platform/service/apis/bi-file-dataset-config.service.d.ts +92 -0
- package/lib/platform/service/apis/bi-file.service.d.ts +20 -0
- package/lib/platform/service/apis/bi-share.service.d.ts +83 -0
- package/lib/platform/service/apis/buildEnshrineCompLibrary.service.d.ts +8 -0
- package/lib/platform/service/apis/category.service.d.ts +135 -0
- package/lib/platform/service/apis/clearLogLogin.service.d.ts +8 -0
- package/lib/platform/service/apis/clearLogOperate.service.d.ts +8 -0
- package/lib/platform/service/apis/clearTempDir.service.d.ts +8 -0
- package/lib/platform/service/apis/copyFilter.service.d.ts +13 -0
- package/lib/platform/service/apis/dashboard.service.d.ts +94 -0
- package/lib/platform/service/apis/data-source.service.d.ts +144 -0
- package/lib/platform/service/apis/data-trace.service.d.ts +75 -0
- package/lib/platform/service/apis/database.service.d.ts +211 -0
- package/lib/platform/service/apis/dataset-log.service.d.ts +79 -0
- package/lib/platform/service/apis/dataset.service.d.ts +247 -0
- package/lib/platform/service/apis/datasource-devops.service.d.ts +66 -0
- package/lib/platform/service/apis/datasource-move-data.service.d.ts +86 -0
- package/lib/platform/service/apis/datasource-move-detail.service.d.ts +82 -0
- package/lib/platform/service/apis/datasource-move.service.d.ts +72 -0
- package/lib/platform/service/apis/deleteCompInfo.service.d.ts +17 -0
- package/lib/platform/service/apis/deleteCompInfoType.service.d.ts +17 -0
- package/lib/platform/service/apis/deleteCsvDatasource.service.d.ts +17 -0
- package/lib/platform/service/apis/deleteEchartTheme.service.d.ts +17 -0
- package/lib/platform/service/apis/deleteEnshrineComp.service.d.ts +17 -0
- package/lib/platform/service/apis/deleteEnshrineCompGroup.service.d.ts +17 -0
- package/lib/platform/service/apis/deleteFilter.service.d.ts +17 -0
- package/lib/platform/service/apis/deleteLogOperateById.service.d.ts +17 -0
- package/lib/platform/service/apis/deleteMapGeoJson.service.d.ts +17 -0
- package/lib/platform/service/apis/deleteNotUseDir.service.d.ts +8 -0
- package/lib/platform/service/apis/deletePageSnapshoot.service.d.ts +17 -0
- package/lib/platform/service/apis/deletePageTemplate.service.d.ts +17 -0
- package/lib/platform/service/apis/deletePnResource.service.d.ts +17 -0
- package/lib/platform/service/apis/deletePnResourceGroup.service.d.ts +17 -0
- package/lib/platform/service/apis/device-interconnection-param.service.d.ts +88 -0
- package/lib/platform/service/apis/device-interconnection.service.d.ts +101 -0
- package/lib/platform/service/apis/device-param-ref.service.d.ts +41 -0
- package/lib/platform/service/apis/exportTemplate.service.d.ts +80 -0
- package/lib/platform/service/apis/external-message.service.d.ts +75 -0
- package/lib/platform/service/apis/file-task.service.d.ts +131 -0
- package/lib/platform/service/apis/file.service.d.ts +42 -0
- package/lib/platform/service/apis/front-release.service.d.ts +7 -0
- package/lib/platform/service/apis/getAdCodeByAliasName.service.d.ts +14 -0
- package/lib/platform/service/apis/getAllCompInfo.service.d.ts +8 -0
- package/lib/platform/service/apis/getAllCompInfoByTypeId.service.d.ts +14 -0
- package/lib/platform/service/apis/getAllCompInfoType.service.d.ts +8 -0
- package/lib/platform/service/apis/getAllCsvDatasource.service.d.ts +14 -0
- package/lib/platform/service/apis/getAllEchartTheme.service.d.ts +8 -0
- package/lib/platform/service/apis/getAllEnshrineCompGroups.service.d.ts +8 -0
- package/lib/platform/service/apis/getAllFilter.service.d.ts +8 -0
- package/lib/platform/service/apis/getAllPageTemplate.service.d.ts +8 -0
- package/lib/platform/service/apis/getAttachmentInfoByPage.service.d.ts +13 -0
- package/lib/platform/service/apis/getCompInfoById.service.d.ts +14 -0
- package/lib/platform/service/apis/getCompInfoByPage.service.d.ts +13 -0
- package/lib/platform/service/apis/getCompInfoTypeById.service.d.ts +14 -0
- package/lib/platform/service/apis/getCompInfoTypeByPage.service.d.ts +13 -0
- package/lib/platform/service/apis/getContentToArray.service.d.ts +18 -0
- package/lib/platform/service/apis/getCsvDatasourceById.service.d.ts +14 -0
- package/lib/platform/service/apis/getCsvDatasourceByName.service.d.ts +14 -0
- package/lib/platform/service/apis/getCsvDatasourceByPage.service.d.ts +13 -0
- package/lib/platform/service/apis/getDesignerData.service.d.ts +14 -0
- package/lib/platform/service/apis/getEchartThemeById.service.d.ts +14 -0
- package/lib/platform/service/apis/getEchartThemeByPage.service.d.ts +13 -0
- package/lib/platform/service/apis/getEnshrineCompByPage.service.d.ts +13 -0
- package/lib/platform/service/apis/getEnshrineCompGroupById.service.d.ts +14 -0
- package/lib/platform/service/apis/getEnshrineCompGroupByPage.service.d.ts +13 -0
- package/lib/platform/service/apis/getFilterById.service.d.ts +14 -0
- package/lib/platform/service/apis/getGeoJsonByAdCode.service.d.ts +14 -0
- package/lib/platform/service/apis/getLayoutItemObjById.service.d.ts +14 -0
- package/lib/platform/service/apis/getLogLoginByPage.service.d.ts +13 -0
- package/lib/platform/service/apis/getMapBaseInfoByLevel.service.d.ts +14 -0
- package/lib/platform/service/apis/getMapGeoJsonById.service.d.ts +14 -0
- package/lib/platform/service/apis/getMapGeoJsonByPage.service.d.ts +13 -0
- package/lib/platform/service/apis/getMyAllPnResourceGroup.service.d.ts +8 -0
- package/lib/platform/service/apis/getMyEchartThemes.service.d.ts +8 -0
- package/lib/platform/service/apis/getMyPnResourceByPage.service.d.ts +10 -0
- package/lib/platform/service/apis/getMyShareCustomCompByPage.service.d.ts +13 -0
- package/lib/platform/service/apis/getPageSnapshootByEnabled.service.d.ts +18 -0
- package/lib/platform/service/apis/getPageSnapshootById.service.d.ts +14 -0
- package/lib/platform/service/apis/getPageSnapshootsByPageId.service.d.ts +14 -0
- package/lib/platform/service/apis/getPageTemplateById.service.d.ts +14 -0
- package/lib/platform/service/apis/getPageTemplateByPage.service.d.ts +13 -0
- package/lib/platform/service/apis/getPageTemplateForCreatePageForm.service.d.ts +13 -0
- package/lib/platform/service/apis/getPageTemplateLayout.service.d.ts +14 -0
- package/lib/platform/service/apis/getPageTemplateThemeJson.service.d.ts +14 -0
- package/lib/platform/service/apis/getPageTotalCount.service.d.ts +8 -0
- package/lib/platform/service/apis/getPnLogOperateByPage.service.d.ts +13 -0
- package/lib/platform/service/apis/getPnResourceGroupById.service.d.ts +14 -0
- package/lib/platform/service/apis/getProjectTotalCount.service.d.ts +8 -0
- package/lib/platform/service/apis/getShareCustomCompById.service.d.ts +14 -0
- package/lib/platform/service/apis/getShareCustomCompByPage.service.d.ts +13 -0
- package/lib/platform/service/apis/getSysEchartThemes.service.d.ts +8 -0
- package/lib/platform/service/apis/httpQuery.service.d.ts +10 -0
- package/lib/platform/service/apis/i18n-config.service.d.ts +29 -0
- package/lib/platform/service/apis/i18n-info.service.d.ts +115 -0
- package/lib/platform/service/apis/importCompInfoJson.service.d.ts +13 -0
- package/lib/platform/service/apis/importTemplate.service.d.ts +32 -0
- package/lib/platform/service/apis/internal-message.service.d.ts +96 -0
- package/lib/platform/service/apis/invoke-log.service.d.ts +73 -0
- package/lib/platform/service/apis/knowledge-base-chunk.service.d.ts +75 -0
- package/lib/platform/service/apis/knowledge-base-doc.service.d.ts +75 -0
- package/lib/platform/service/apis/knowledge-base.service.d.ts +72 -0
- package/lib/platform/service/apis/ldap.service.d.ts +7 -0
- package/lib/platform/service/apis/license-unbind-log.service.d.ts +12 -0
- package/lib/platform/service/apis/license.service.d.ts +248 -0
- package/lib/platform/service/apis/login-log.service.d.ts +38 -0
- package/lib/platform/service/apis/login.service.d.ts +73 -0
- package/lib/platform/service/apis/manager.service.d.ts +39 -0
- package/lib/platform/service/apis/message-setting.service.d.ts +148 -0
- package/lib/platform/service/apis/minio-file.service.d.ts +26 -0
- package/lib/platform/service/apis/model-provider.service.d.ts +72 -0
- package/lib/platform/service/apis/model.service.d.ts +70 -0
- package/lib/platform/service/apis/nav-menu.service.d.ts +98 -0
- package/lib/platform/service/apis/nav-page.service.d.ts +81 -0
- package/lib/platform/service/apis/openapi-group.service.d.ts +186 -0
- package/lib/platform/service/apis/openapi-key-grant.service.d.ts +97 -0
- package/lib/platform/service/apis/org-user-picker.service.d.ts +70 -0
- package/lib/platform/service/apis/org.service.d.ts +215 -0
- package/lib/platform/service/apis/parseCsvOrExcel.service.d.ts +18 -0
- package/lib/platform/service/apis/permission.service.d.ts +57 -0
- package/lib/platform/service/apis/plat.service.d.ts +190 -0
- package/lib/platform/service/apis/plugin-version.service.d.ts +73 -0
- package/lib/platform/service/apis/plugin.service.d.ts +185 -0
- package/lib/platform/service/apis/pm-process-delegate-detail.service.d.ts +75 -0
- package/lib/platform/service/apis/pm-process-delegate.service.d.ts +75 -0
- package/lib/platform/service/apis/pm-process-instance.service.d.ts +92 -0
- package/lib/platform/service/apis/pm-task-done.service.d.ts +90 -0
- package/lib/platform/service/apis/pm-task-todo.service.d.ts +86 -0
- package/lib/platform/service/apis/pn-page.service.d.ts +70 -0
- package/lib/platform/service/apis/pn-project.service.d.ts +173 -0
- package/lib/platform/service/apis/print-log.service.d.ts +107 -0
- package/lib/platform/service/apis/print-resource.service.d.ts +131 -0
- package/lib/platform/service/apis/regexp.service.d.ts +94 -0
- package/lib/platform/service/apis/released.service.d.ts +96 -0
- package/lib/platform/service/apis/resourceTransferToPage.service.d.ts +13 -0
- package/lib/platform/service/apis/role-permission.service.d.ts +59 -0
- package/lib/platform/service/apis/role.service.d.ts +147 -0
- package/lib/platform/service/apis/saveCompInfo.service.d.ts +13 -0
- package/lib/platform/service/apis/saveCompInfoType.service.d.ts +13 -0
- package/lib/platform/service/apis/saveCsvDatasource.service.d.ts +13 -0
- package/lib/platform/service/apis/saveEchartTheme.service.d.ts +13 -0
- package/lib/platform/service/apis/saveEnshrineComp.service.d.ts +13 -0
- package/lib/platform/service/apis/saveEnshrineCompGroup.service.d.ts +13 -0
- package/lib/platform/service/apis/saveFilter.service.d.ts +13 -0
- package/lib/platform/service/apis/saveMapGeoJson.service.d.ts +13 -0
- package/lib/platform/service/apis/savePageSnapshoot.service.d.ts +13 -0
- package/lib/platform/service/apis/savePageTemplate.service.d.ts +13 -0
- package/lib/platform/service/apis/savePnResourceGroup.service.d.ts +13 -0
- package/lib/platform/service/apis/saveShareCustomComp.service.d.ts +13 -0
- package/lib/platform/service/apis/seal-management.service.d.ts +85 -0
- package/lib/platform/service/apis/searchEnshrineComp.service.d.ts +13 -0
- package/lib/platform/service/apis/seat-message.service.d.ts +13 -0
- package/lib/platform/service/apis/seat.service.d.ts +100 -0
- package/lib/platform/service/apis/setPageSnapshootEnabled.service.d.ts +13 -0
- package/lib/platform/service/apis/setPageSnapshootEnabledByPageId.service.d.ts +13 -0
- package/lib/platform/service/apis/shortcut.service.d.ts +129 -0
- package/lib/platform/service/apis/sign-log.service.d.ts +72 -0
- package/lib/platform/service/apis/sms.service.d.ts +19 -0
- package/lib/platform/service/apis/started-process.service.d.ts +64 -0
- package/lib/platform/service/apis/task-delegate.service.d.ts +101 -0
- package/lib/platform/service/apis/task-done.service.d.ts +60 -0
- package/lib/platform/service/apis/task-todo.service.d.ts +60 -0
- package/lib/platform/service/apis/tenant-developer.service.d.ts +119 -0
- package/lib/platform/service/apis/tenant.service.d.ts +482 -0
- package/lib/platform/service/apis/toggleEnabled.service.d.ts +13 -0
- package/lib/platform/service/apis/uncompressLogOperateLayoutStr.service.d.ts +13 -0
- package/lib/platform/service/apis/uploadFiles.service.d.ts +108 -0
- package/lib/platform/service/apis/user-extra.service.d.ts +70 -0
- package/lib/platform/service/apis/user-info-log.service.d.ts +74 -0
- package/lib/platform/service/apis/user-password-history.service.d.ts +75 -0
- package/lib/platform/service/apis/user.service.d.ts +281 -0
- package/lib/platform/service/apis/workbench-component-relation.service.d.ts +115 -0
- package/lib/platform/service/apis/workbench-component.service.d.ts +86 -0
- package/lib/platform/service/entities.d.ts +23348 -0
- package/lib/platform/service/index.d.ts +369 -0
- package/lib/service/api-manage.cjs +34 -0
- package/lib/service/api-service.cjs +165 -0
- package/lib/service/api-service.interface.cjs +1 -0
- package/lib/service/http.enum.cjs +66 -0
- package/lib/service/http.error.cjs +46 -0
- package/lib/service/http.util.cjs +245 -0
- package/lib/service/index.cjs +54 -0
- package/lib/types/index.d.ts +171 -0
- package/lib/utils/index.cjs +16 -0
- package/package.json +20 -24
- package/dist/index.system.min.js +0 -4
- package/es/service/request.client.d.ts +0 -6
- package/es/service/request.client.mjs +0 -35
- package/es/utils/native-http/native-http.d.ts +0 -6
- package/es/utils/native-http/native-http.mjs +0 -63
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.BackendError = void 0;
|
|
7
|
+
class BackendError extends Error {
|
|
8
|
+
/**
|
|
9
|
+
* 错误代码
|
|
10
|
+
*
|
|
11
|
+
* @type {number}
|
|
12
|
+
*/
|
|
13
|
+
code;
|
|
14
|
+
/**
|
|
15
|
+
* 响应数据
|
|
16
|
+
*
|
|
17
|
+
* @type {T}
|
|
18
|
+
*/
|
|
19
|
+
data;
|
|
20
|
+
/**
|
|
21
|
+
* 子状态码
|
|
22
|
+
*
|
|
23
|
+
* @type {number}
|
|
24
|
+
*/
|
|
25
|
+
subCode;
|
|
26
|
+
/**
|
|
27
|
+
* 子状态消息
|
|
28
|
+
*
|
|
29
|
+
* @type {string}
|
|
30
|
+
*/
|
|
31
|
+
subMessage;
|
|
32
|
+
/**
|
|
33
|
+
* 创建 BackendError 实例
|
|
34
|
+
*
|
|
35
|
+
* @param {IHttpResponse<T>} response HTTP 响应对象
|
|
36
|
+
*/
|
|
37
|
+
constructor(response) {
|
|
38
|
+
super(response.message);
|
|
39
|
+
this.name = "BackendError";
|
|
40
|
+
this.code = response.code;
|
|
41
|
+
this.data = response.data;
|
|
42
|
+
this.subCode = response.subCode;
|
|
43
|
+
this.subMessage = response.subMessage;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.BackendError = BackendError;
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.HttpUtil = void 0;
|
|
7
|
+
var _axios = _interopRequireDefault(require("axios"));
|
|
8
|
+
var _http = require("./http.enum.cjs");
|
|
9
|
+
var _http2 = require("./http.error.cjs");
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
const instance = _axios.default.create();
|
|
12
|
+
class HttpUtil {
|
|
13
|
+
/**
|
|
14
|
+
* 挂载中间件
|
|
15
|
+
*
|
|
16
|
+
* @static
|
|
17
|
+
* @param {(_axios: AxiosInstance) => void} fn 中间件函数
|
|
18
|
+
*/
|
|
19
|
+
static use(fn) {
|
|
20
|
+
fn(instance);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* GET 请求方法
|
|
24
|
+
*
|
|
25
|
+
* @static
|
|
26
|
+
* @template T
|
|
27
|
+
* @param {string} url 请求地址
|
|
28
|
+
* @param {IObject} [path={}] 路径参数
|
|
29
|
+
* @param {IObject} [data={}] 请求数据
|
|
30
|
+
* @param {IParams} [query={}] 查询参数
|
|
31
|
+
* @param {AxiosRequestConfig} [config={}] 请求配置
|
|
32
|
+
* @returns {Promise<T>} 请求结果
|
|
33
|
+
*/
|
|
34
|
+
static get(url, path = {}, data = {}, query = {}, config = {}) {
|
|
35
|
+
return this.request(url, path, data, query, {
|
|
36
|
+
...config,
|
|
37
|
+
method: "GET"
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* POST 请求方法
|
|
42
|
+
*
|
|
43
|
+
* @static
|
|
44
|
+
* @template T
|
|
45
|
+
* @param {string} url 请求地址
|
|
46
|
+
* @param {IObject} [path={}] 路径参数
|
|
47
|
+
* @param {IObject} [data={}] 请求数据
|
|
48
|
+
* @param {IParams} [query={}] 查询参数
|
|
49
|
+
* @param {AxiosRequestConfig} [config={}] 请求配置
|
|
50
|
+
* @returns {Promise<T>} 请求结果
|
|
51
|
+
*/
|
|
52
|
+
static post(url, path = {}, data = {}, query = {}, config = {}) {
|
|
53
|
+
return this.request(url, path, data, query, {
|
|
54
|
+
...config,
|
|
55
|
+
method: "POST"
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* PUT 请求方法
|
|
60
|
+
*
|
|
61
|
+
* @static
|
|
62
|
+
* @template T
|
|
63
|
+
* @param {string} url 请求地址
|
|
64
|
+
* @param {IObject} [path={}] 路径参数
|
|
65
|
+
* @param {IObject} [data={}] 请求数据
|
|
66
|
+
* @param {IParams} [query={}] 查询参数
|
|
67
|
+
* @param {AxiosRequestConfig} [config={}] 请求配置
|
|
68
|
+
* @returns {Promise<T>} 请求结果
|
|
69
|
+
*/
|
|
70
|
+
static put(url, path = {}, data = {}, query = {}, config = {}) {
|
|
71
|
+
return this.request(url, path, data, query, {
|
|
72
|
+
...config,
|
|
73
|
+
method: "PUT"
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* DELETE 请求方法
|
|
78
|
+
*
|
|
79
|
+
* @static
|
|
80
|
+
* @template T
|
|
81
|
+
* @param {string} url 请求地址
|
|
82
|
+
* @param {IObject} [path={}] 路径参数
|
|
83
|
+
* @param {IObject} [data={}] 请求数据
|
|
84
|
+
* @param {IParams} [query={}] 查询参数
|
|
85
|
+
* @param {AxiosRequestConfig} [config={}] 请求配置
|
|
86
|
+
* @returns {Promise<T>} 请求结果
|
|
87
|
+
*/
|
|
88
|
+
static delete(url, path = {}, data = {}, query = {}, config = {}) {
|
|
89
|
+
return this.request(url, path, data, query, {
|
|
90
|
+
...config,
|
|
91
|
+
method: "DELETE"
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* OPTIONS 请求方法
|
|
96
|
+
*
|
|
97
|
+
* @static
|
|
98
|
+
* @template T
|
|
99
|
+
* @param {string} url 请求地址
|
|
100
|
+
* @param {IObject} [path={}] 路径参数
|
|
101
|
+
* @param {IObject} [data={}] 请求数据
|
|
102
|
+
* @param {IParams} [query={}] 查询参数
|
|
103
|
+
* @param {AxiosRequestConfig} [config={}] 请求配置
|
|
104
|
+
* @returns {Promise<T>} 请求结果
|
|
105
|
+
*/
|
|
106
|
+
static options(url, path = {}, data = {}, query = {}, config = {}) {
|
|
107
|
+
return this.request(url, path, data, query, {
|
|
108
|
+
...config,
|
|
109
|
+
method: "OPTIONS"
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* PATCH 请求方法
|
|
114
|
+
*
|
|
115
|
+
* @static
|
|
116
|
+
* @template T
|
|
117
|
+
* @param {string} url 请求地址
|
|
118
|
+
* @param {IObject} [path={}] 路径参数
|
|
119
|
+
* @param {IObject} [data={}] 请求数据
|
|
120
|
+
* @param {IParams} [query={}] 查询参数
|
|
121
|
+
* @param {AxiosRequestConfig} [config={}] 请求配置
|
|
122
|
+
* @returns {Promise<T>} 请求结果
|
|
123
|
+
*/
|
|
124
|
+
static patch(url, path = {}, data = {}, query = {}, config = {}) {
|
|
125
|
+
return this.request(url, path, data, query, {
|
|
126
|
+
...config,
|
|
127
|
+
method: "PATCH"
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* HEAD 请求方法
|
|
132
|
+
*
|
|
133
|
+
* @static
|
|
134
|
+
* @template T
|
|
135
|
+
* @param {string} url 请求地址
|
|
136
|
+
* @param {IObject} [path={}] 路径参数
|
|
137
|
+
* @param {IObject} [data={}] 请求数据
|
|
138
|
+
* @param {IParams} [query={}] 查询参数
|
|
139
|
+
* @param {AxiosRequestConfig} [config={}] 请求配置
|
|
140
|
+
* @returns {Promise<T>} 请求结果
|
|
141
|
+
*/
|
|
142
|
+
static head(url, path = {}, data = {}, query = {}, config = {}) {
|
|
143
|
+
return this.request(url, path, data, query, {
|
|
144
|
+
...config,
|
|
145
|
+
method: "HEAD"
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* 文件上传方法
|
|
150
|
+
*
|
|
151
|
+
* @static
|
|
152
|
+
* @template T
|
|
153
|
+
* @param {string} url 请求地址
|
|
154
|
+
* @param {IObject} [path={}] 路径参数
|
|
155
|
+
* @param {UploadFileData} [data={}] 额外的请求数据
|
|
156
|
+
* @param {IParams} [query={}] 查询参数
|
|
157
|
+
* @param {AxiosRequestConfig} [config={}] 请求配置
|
|
158
|
+
* @returns {Promise<T>} 请求结果
|
|
159
|
+
*/
|
|
160
|
+
static upload(url, path = {}, data = {}, query = {}, config = {}) {
|
|
161
|
+
const formData = new FormData();
|
|
162
|
+
const {
|
|
163
|
+
name,
|
|
164
|
+
filename,
|
|
165
|
+
file
|
|
166
|
+
} = data;
|
|
167
|
+
const fileArray = Array.isArray(file) ? file : [file];
|
|
168
|
+
fileArray.forEach(file2 => {
|
|
169
|
+
if (filename) {
|
|
170
|
+
formData.append(name || "file", file2, filename);
|
|
171
|
+
} else {
|
|
172
|
+
formData.append(name || "file", file2);
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
if (data.data) {
|
|
176
|
+
for (const [key, value] of Object.entries(data.data)) {
|
|
177
|
+
if (value !== null && value !== void 0) {
|
|
178
|
+
if (Array.isArray(value)) {
|
|
179
|
+
value.forEach(item => {
|
|
180
|
+
formData.append(`${key}[]`, item);
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
formData.append(key, value);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
return this.request(url, path, formData, query, {
|
|
188
|
+
...config,
|
|
189
|
+
method: "POST",
|
|
190
|
+
headers: {
|
|
191
|
+
"Content-Type": _http.ContentTypeEnum.FORM_DATA,
|
|
192
|
+
...config.headers
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* 转换 URL 中的路径参数
|
|
198
|
+
*
|
|
199
|
+
* @protected
|
|
200
|
+
* @param {string} url
|
|
201
|
+
* @param {IObject} path
|
|
202
|
+
* @return {*} {string}
|
|
203
|
+
*/
|
|
204
|
+
static transformUrl(url, path) {
|
|
205
|
+
let transformedUrl = url;
|
|
206
|
+
for (const [key, value] of Object.entries(path)) {
|
|
207
|
+
transformedUrl = transformedUrl.replace(`{${key}}`, encodeURIComponent(String(value)));
|
|
208
|
+
}
|
|
209
|
+
return transformedUrl;
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* 通用请求方法
|
|
213
|
+
*
|
|
214
|
+
* @static
|
|
215
|
+
* @template T
|
|
216
|
+
* @param {string} url 请求地址
|
|
217
|
+
* @param {(IObject | null)} path 路径参数
|
|
218
|
+
* @param {(IObject | null)} data 请求数据
|
|
219
|
+
* @param {(IParams | null)} query 查询参数
|
|
220
|
+
* @param {AxiosRequestConfig} [config={}] 请求配置
|
|
221
|
+
* @returns {Promise<T>} 请求结果
|
|
222
|
+
*/
|
|
223
|
+
static async request(url, path, data, query, config = {}) {
|
|
224
|
+
const res = await instance.request({
|
|
225
|
+
url: this.transformUrl(url, path || {}),
|
|
226
|
+
data: data instanceof FormData ? data : JSON.stringify(data ? data : {}),
|
|
227
|
+
params: query,
|
|
228
|
+
timeout: 2 * 60 * 1e3,
|
|
229
|
+
headers: {
|
|
230
|
+
"Content-Type": _http.ContentTypeEnum.JSON,
|
|
231
|
+
...config.headers
|
|
232
|
+
},
|
|
233
|
+
...config
|
|
234
|
+
});
|
|
235
|
+
if (res.status >= 200 && res.status < 300) {
|
|
236
|
+
const data2 = res.data;
|
|
237
|
+
if (data2.ok === true) {
|
|
238
|
+
return data2.data;
|
|
239
|
+
}
|
|
240
|
+
throw new _http2.BackendError(data2);
|
|
241
|
+
}
|
|
242
|
+
throw res;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
exports.HttpUtil = HttpUtil;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "BackendError", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _http2.BackendError;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "BizServiceEnum", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _http.BizServiceEnum;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "ContentTypeEnum", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _http.ContentTypeEnum;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "HttpUtil", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () {
|
|
27
|
+
return _http3.HttpUtil;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "RequestEnum", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () {
|
|
33
|
+
return _http.RequestEnum;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "ResultEnum", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () {
|
|
39
|
+
return _http.ResultEnum;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
exports.api = void 0;
|
|
43
|
+
var _apaas = require("../apaas/index.cjs");
|
|
44
|
+
var _platform = require("../platform/index.cjs");
|
|
45
|
+
var _ipaas = require("../ipaas/index.cjs");
|
|
46
|
+
var _apiManage = require("./api-manage.cjs");
|
|
47
|
+
var _http = require("./http.enum.cjs");
|
|
48
|
+
var _http2 = require("./http.error.cjs");
|
|
49
|
+
var _http3 = require("./http.util.cjs");
|
|
50
|
+
const api = exports.api = {
|
|
51
|
+
apaas: new _apiManage.ApiManage("/gct-apaas/api", _apaas.apiConfig),
|
|
52
|
+
platform: new _apiManage.ApiManage("/gct-platform/api", _platform.apiConfig),
|
|
53
|
+
ipaas: new _apiManage.ApiManage("/gct-ipaas/api", _ipaas.apiConfig)
|
|
54
|
+
};
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
|
|
3
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
4
|
+
declare global {
|
|
5
|
+
/**
|
|
6
|
+
* 任意参数对象
|
|
7
|
+
*
|
|
8
|
+
* @author zhanghanrui
|
|
9
|
+
* @date 2024-03-19 19:03:20
|
|
10
|
+
* @interface IParams
|
|
11
|
+
*/
|
|
12
|
+
type IParams = Record<string | symbol, any>;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* 任意数据对象
|
|
16
|
+
*
|
|
17
|
+
* @author zhanghanrui
|
|
18
|
+
* @date 2024-03-19 19:03:25
|
|
19
|
+
* @interface IData
|
|
20
|
+
*/
|
|
21
|
+
type IData = Record<string | symbol, any>;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* 任意对象结构
|
|
25
|
+
*
|
|
26
|
+
* @author zhanghanrui
|
|
27
|
+
* @date 2024-03-19 19:03:46
|
|
28
|
+
* @interface IObject
|
|
29
|
+
*/
|
|
30
|
+
type IObject = Record<string | symbol, any>;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* 查询分页对象
|
|
34
|
+
*
|
|
35
|
+
* @author chitanda
|
|
36
|
+
* @date 2025-08-13 16:08:24
|
|
37
|
+
* @interface IPage
|
|
38
|
+
* @template T
|
|
39
|
+
*/
|
|
40
|
+
interface IPage<T = IObject> {
|
|
41
|
+
/**
|
|
42
|
+
* 当前页码
|
|
43
|
+
*
|
|
44
|
+
* @author chitanda
|
|
45
|
+
* @date 2025-08-13 16:08:38
|
|
46
|
+
* @type {number}
|
|
47
|
+
*/
|
|
48
|
+
pageNo: number;
|
|
49
|
+
/**
|
|
50
|
+
* 每页数据条数
|
|
51
|
+
*
|
|
52
|
+
* @author chitanda
|
|
53
|
+
* @date 2025-08-13 16:08:48
|
|
54
|
+
* @type {number}
|
|
55
|
+
*/
|
|
56
|
+
pageSize: number;
|
|
57
|
+
/**
|
|
58
|
+
* 总数据条数
|
|
59
|
+
*
|
|
60
|
+
* @author chitanda
|
|
61
|
+
* @date 2025-08-13 16:08:56
|
|
62
|
+
* @type {number}
|
|
63
|
+
*/
|
|
64
|
+
totalCount: number;
|
|
65
|
+
/**
|
|
66
|
+
* 总页数
|
|
67
|
+
*
|
|
68
|
+
* @author chitanda
|
|
69
|
+
* @date 2025-08-13 16:08:02
|
|
70
|
+
* @type {number}
|
|
71
|
+
*/
|
|
72
|
+
totalPage: number;
|
|
73
|
+
/**
|
|
74
|
+
* 当前页数据
|
|
75
|
+
*
|
|
76
|
+
* @author chitanda
|
|
77
|
+
* @date 2025-08-13 16:08:15
|
|
78
|
+
* @type {T[]}
|
|
79
|
+
*/
|
|
80
|
+
data: T[];
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
interface IHttpResponse<T = any> {
|
|
84
|
+
/**
|
|
85
|
+
* 请求状态码
|
|
86
|
+
*
|
|
87
|
+
* @type {number}
|
|
88
|
+
*/
|
|
89
|
+
code: number;
|
|
90
|
+
/**
|
|
91
|
+
* 响应数据
|
|
92
|
+
*
|
|
93
|
+
* @type {T}
|
|
94
|
+
*/
|
|
95
|
+
data: T;
|
|
96
|
+
/**
|
|
97
|
+
* 是否请求成功
|
|
98
|
+
*
|
|
99
|
+
* @type {boolean}
|
|
100
|
+
*/
|
|
101
|
+
ok: boolean;
|
|
102
|
+
/**
|
|
103
|
+
* 响应消息
|
|
104
|
+
*
|
|
105
|
+
* @type {string}
|
|
106
|
+
*/
|
|
107
|
+
message: string;
|
|
108
|
+
/**
|
|
109
|
+
* 子状态码
|
|
110
|
+
*
|
|
111
|
+
* @type {number}
|
|
112
|
+
* @memberof IHttpResponse
|
|
113
|
+
*/
|
|
114
|
+
subCode?: number;
|
|
115
|
+
/**
|
|
116
|
+
* 子状态消息
|
|
117
|
+
*
|
|
118
|
+
* @type {string}
|
|
119
|
+
* @memberof IHttpResponse
|
|
120
|
+
*/
|
|
121
|
+
subMessage?: string;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* 上传文件 Body 参数结构
|
|
126
|
+
*
|
|
127
|
+
* @interface UploadFileData
|
|
128
|
+
*/
|
|
129
|
+
interface UploadFileData {
|
|
130
|
+
/**
|
|
131
|
+
* 附加数据
|
|
132
|
+
*
|
|
133
|
+
* @type {IObject}
|
|
134
|
+
*/
|
|
135
|
+
data?: IObject;
|
|
136
|
+
/**
|
|
137
|
+
* 文件字段名
|
|
138
|
+
*
|
|
139
|
+
* @type {string}
|
|
140
|
+
*/
|
|
141
|
+
name?: string;
|
|
142
|
+
/**
|
|
143
|
+
* 文件对象
|
|
144
|
+
*
|
|
145
|
+
* @type {(File | Blob | File[] | Blob[])}
|
|
146
|
+
*/
|
|
147
|
+
file: File | Blob | File[] | Blob[];
|
|
148
|
+
/**
|
|
149
|
+
* 文件名称
|
|
150
|
+
*
|
|
151
|
+
* @type {string}
|
|
152
|
+
*/
|
|
153
|
+
filename?: string;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
// 扩展的对象类型
|
|
157
|
+
interface ITripleObject<T = any, U = any, V = any> {
|
|
158
|
+
left?: T;
|
|
159
|
+
center?: U;
|
|
160
|
+
right?: V;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
interface LocalDateTime {
|
|
164
|
+
code: number;
|
|
165
|
+
data?: string;
|
|
166
|
+
message: string;
|
|
167
|
+
ok?: boolean;
|
|
168
|
+
subCode?: string;
|
|
169
|
+
subMessage?: string;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.deepMerge = deepMerge;
|
|
7
|
+
var _lodashEs = require("lodash-es");
|
|
8
|
+
function deepMerge(target, source) {
|
|
9
|
+
return (0, _lodashEs.mergeWith)((0, _lodashEs.cloneDeep)(target), source, (objValue, srcValue) => {
|
|
10
|
+
if (typeof objValue === "object" && typeof srcValue === "object") {
|
|
11
|
+
return (0, _lodashEs.mergeWith)((0, _lodashEs.cloneDeep)(objValue), srcValue, (prevValue, nextValue) => {
|
|
12
|
+
return Array.isArray(prevValue) ? (0, _lodashEs.unionWith)(prevValue, nextValue, _lodashEs.isEqual) : void 0;
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gct-paas/api",
|
|
3
|
-
"version": "0.1.6-dev.
|
|
3
|
+
"version": "0.1.6-dev.10",
|
|
4
4
|
"description": "paas 平台底包",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"lib"
|
|
55
55
|
],
|
|
56
56
|
"scripts": {
|
|
57
|
-
"build": "
|
|
57
|
+
"build": "vite build && unbuild",
|
|
58
58
|
"lint": "eslint './src' --fix",
|
|
59
59
|
"test": "vitest",
|
|
60
60
|
"test:run": "vitest run",
|
|
@@ -69,39 +69,35 @@
|
|
|
69
69
|
"gen-api:test": "./script/gen-api.sh"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"axios": "^1.
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"qs": "^6.14.1"
|
|
72
|
+
"axios": "^1.16.0",
|
|
73
|
+
"lodash-es": "^4.18.1",
|
|
74
|
+
"qs": "^6.15.1"
|
|
76
75
|
},
|
|
77
76
|
"peerDependencies": {
|
|
78
77
|
"axios": "^1.13.x"
|
|
79
78
|
},
|
|
80
79
|
"devDependencies": {
|
|
81
|
-
"@babel/preset-env": "^7.
|
|
82
|
-
"@commitlint/cli": "^20.3
|
|
83
|
-
"@gct-paas/build": "^0.1.
|
|
84
|
-
"@gct-paas/cli": "^0.1.
|
|
85
|
-
"@rollup/plugin-commonjs": "^29.0.0",
|
|
86
|
-
"@rollup/plugin-json": "^6.1.0",
|
|
87
|
-
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
88
|
-
"@rollup/plugin-typescript": "^12.3.0",
|
|
80
|
+
"@babel/preset-env": "^7.29.5",
|
|
81
|
+
"@commitlint/cli": "^20.5.3",
|
|
82
|
+
"@gct-paas/build": "^0.1.14",
|
|
83
|
+
"@gct-paas/cli": "^0.1.21",
|
|
89
84
|
"@types/fs-extra": "^11.0.4",
|
|
90
85
|
"@types/lodash-es": "^4.17.12",
|
|
91
|
-
"@types/node": "^25.
|
|
92
|
-
"@types/qs": "^6.
|
|
86
|
+
"@types/node": "^25.6.2",
|
|
87
|
+
"@types/qs": "^6.15.1",
|
|
93
88
|
"@types/systemjs": "^6.15.4",
|
|
94
89
|
"@vue/tsconfig": "^0.8.1",
|
|
95
|
-
"eslint": "^9.39.
|
|
90
|
+
"eslint": "^9.39.4",
|
|
91
|
+
"eslint-config-prettier": "^10.1.8",
|
|
92
|
+
"eslint-plugin-prettier": "^5.5.5",
|
|
93
|
+
"eslint-plugin-unused-imports": "^4.4.1",
|
|
96
94
|
"husky": "^9.1.7",
|
|
97
|
-
"lint-staged": "^16.
|
|
98
|
-
"prettier": "^3.8.
|
|
99
|
-
"
|
|
100
|
-
"rollup": "^4.56.0",
|
|
101
|
-
"rollup-plugin-esbuild": "^6.2.1",
|
|
95
|
+
"lint-staged": "^16.4.0",
|
|
96
|
+
"prettier": "^3.8.3",
|
|
97
|
+
"terser": "^5.47.1",
|
|
102
98
|
"ts-node": "^10.9.2",
|
|
103
|
-
"tsdown": "^0.21.4",
|
|
104
99
|
"typescript": "^5.9.3",
|
|
105
|
-
"unbuild": "^3.6.1"
|
|
100
|
+
"unbuild": "^3.6.1",
|
|
101
|
+
"vite": "^8.0.12"
|
|
106
102
|
}
|
|
107
103
|
}
|