@gct-paas/api 0.1.0-dev.4 → 0.1.0-dev.6
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/gct-api.esm.min.js +1 -25
- package/dist/gct-api.system.min.js +1 -25
- package/es/apaas/service/api-config.mjs +1062 -2013
- package/es/apaas/service/apis/api.service.d.ts +130 -95
- package/es/apaas/service/apis/app-branch.service.d.ts +15 -16
- package/es/apaas/service/apis/app-global-settings.service.d.ts +14 -14
- package/es/apaas/service/apis/app-granted-user.service.d.ts +14 -15
- package/es/apaas/service/apis/app-org.service.d.ts +34 -34
- package/es/apaas/service/apis/app-publish-log.service.d.ts +16 -15
- package/es/apaas/service/apis/app-state.service.d.ts +3 -2
- package/es/apaas/service/apis/app-user.service.d.ts +28 -23
- package/es/apaas/service/apis/approval-log.service.d.ts +15 -16
- package/es/apaas/service/apis/audit-log.service.d.ts +13 -14
- package/es/apaas/service/apis/basic-config.service.d.ts +18 -15
- package/es/apaas/service/apis/biz-event.service.d.ts +16 -15
- package/es/apaas/service/apis/biz-process-definition-version.service.d.ts +25 -18
- package/es/apaas/service/apis/biz-process-definition.service.d.ts +16 -15
- package/es/apaas/service/apis/biz-service-crud.service.d.ts +22 -21
- package/es/apaas/service/apis/biz-service.service.d.ts +29 -8
- package/es/apaas/service/apis/bom.service.d.ts +2 -1
- package/es/apaas/service/apis/category-relation.service.d.ts +22 -17
- package/es/apaas/service/apis/category.service.d.ts +28 -23
- package/es/apaas/service/apis/chat.service.d.ts +3 -2
- package/es/apaas/service/apis/code-ts.service.d.ts +2 -1
- package/es/apaas/service/apis/commit-log.service.d.ts +30 -33
- package/es/apaas/service/apis/common-info-card.service.d.ts +20 -19
- package/es/apaas/service/apis/control-config.service.d.ts +25 -19
- package/es/apaas/service/apis/customer-complaint.service.d.ts +19 -18
- package/es/apaas/service/apis/dashboard.service.d.ts +18 -17
- package/es/apaas/service/apis/data-model.service.d.ts +43 -24
- package/es/apaas/service/apis/data-source.service.d.ts +5 -4
- package/es/apaas/service/apis/data-trace.service.d.ts +18 -21
- package/es/apaas/service/apis/designer-common.service.d.ts +26 -31
- package/es/apaas/service/apis/designer-lock.service.d.ts +11 -10
- package/es/apaas/service/apis/designer-operate-log.service.d.ts +3 -2
- package/es/apaas/service/apis/devops.service.d.ts +5 -4
- package/es/apaas/service/apis/dhr.service.d.ts +29 -14
- package/es/apaas/service/apis/dify-chat.service.d.ts +5 -4
- package/es/apaas/service/apis/doc-control-started.service.d.ts +7 -6
- package/es/apaas/service/apis/doc-control-task-done.service.d.ts +7 -6
- package/es/apaas/service/apis/doc-control-task-todo.service.d.ts +10 -9
- package/es/apaas/service/apis/doc-control.service.d.ts +19 -18
- package/es/apaas/service/apis/doc-outline.service.d.ts +28 -27
- package/es/apaas/service/apis/document.service.d.ts +45 -34
- package/es/apaas/service/apis/edhr-category.service.d.ts +18 -17
- package/es/apaas/service/apis/edhr-circulationFormRelateModel.service.d.ts +18 -17
- package/es/apaas/service/apis/edhr-instance-relation.service.d.ts +9 -8
- package/es/apaas/service/apis/edhr-instance-search-history.service.d.ts +5 -4
- package/es/apaas/service/apis/edhr-instance.service.d.ts +25 -20
- package/es/apaas/service/apis/edhr-tmpl.service.d.ts +41 -24
- package/es/apaas/service/apis/ele-search.service.d.ts +3 -2
- package/es/apaas/service/apis/enum-model-field.service.d.ts +22 -17
- package/es/apaas/service/apis/enum-model.service.d.ts +33 -22
- package/es/apaas/service/apis/event-log.service.d.ts +8 -9
- package/es/apaas/service/apis/event.service.d.ts +16 -15
- package/es/apaas/service/apis/excel-tmpl.service.d.ts +38 -29
- package/es/apaas/service/apis/excel.service.d.ts +13 -12
- package/es/apaas/service/apis/field-meta.service.d.ts +56 -31
- package/es/apaas/service/apis/field.service.d.ts +3 -2
- package/es/apaas/service/apis/file-resource.service.d.ts +7 -6
- package/es/apaas/service/apis/file-task.service.d.ts +6 -5
- package/es/apaas/service/apis/file.service.d.ts +7 -6
- package/es/apaas/service/apis/form.service.d.ts +13 -12
- package/es/apaas/service/apis/formRelate.service.d.ts +29 -24
- package/es/apaas/service/apis/front-operate-log.service.d.ts +3 -2
- package/es/apaas/service/apis/global-method.service.d.ts +17 -18
- package/es/apaas/service/apis/i18n-info.service.d.ts +17 -12
- package/es/apaas/service/apis/instance-relation.service.d.ts +13 -12
- package/es/apaas/service/apis/ipaas.service.d.ts +3 -2
- package/es/apaas/service/apis/job-log.service.d.ts +6 -7
- package/es/apaas/service/apis/job.service.d.ts +25 -23
- package/es/apaas/service/apis/js-engine.service.d.ts +15 -6
- package/es/apaas/service/apis/label-log.service.d.ts +15 -16
- package/es/apaas/service/apis/label.service.d.ts +74 -63
- package/es/apaas/service/apis/login-log.service.d.ts +3 -2
- package/es/apaas/service/apis/med-pro.service.d.ts +48 -0
- package/es/apaas/service/apis/medPro.service.d.ts +30 -3
- package/es/apaas/service/apis/menu-config.service.d.ts +18 -17
- package/es/apaas/service/apis/merge-log.service.d.ts +13 -14
- package/es/apaas/service/apis/message-record.service.d.ts +11 -10
- package/es/apaas/service/apis/message-setting.service.d.ts +5 -4
- package/es/apaas/service/apis/message-tmpl.service.d.ts +21 -22
- package/es/apaas/service/apis/mobile-homepage.service.d.ts +26 -21
- package/es/apaas/service/apis/mobile-page.service.d.ts +27 -20
- package/es/apaas/service/apis/model-comprehensive.service.d.ts +143 -54
- package/es/apaas/service/apis/model-data.service.d.ts +11 -10
- package/es/apaas/service/apis/model-meta.service.d.ts +82 -58
- package/es/apaas/service/apis/model-method.service.d.ts +20 -19
- package/es/apaas/service/apis/model-permission-relation.service.d.ts +16 -15
- package/es/apaas/service/apis/model.service.d.ts +3 -2
- package/es/apaas/service/apis/ocr.service.d.ts +5 -0
- package/es/apaas/service/apis/office.service.d.ts +5 -0
- package/es/apaas/service/apis/online-form-category.service.d.ts +18 -17
- package/es/apaas/service/apis/online-form-change-history.service.d.ts +3 -2
- package/es/apaas/service/apis/online-form-instance.service.d.ts +125 -78
- package/es/apaas/service/apis/online-form-log.service.d.ts +3 -2
- package/es/apaas/service/apis/online-form-tmpl-log.service.d.ts +16 -15
- package/es/apaas/service/apis/online-form-tmpl.service.d.ts +101 -43
- package/es/apaas/service/apis/online-form.service.d.ts +51 -40
- package/es/apaas/service/apis/online-user-summary.service.d.ts +16 -15
- package/es/apaas/service/apis/online.service.d.ts +9 -8
- package/es/apaas/service/apis/openapi.service.d.ts +18 -21
- package/es/apaas/service/apis/pad-page.service.d.ts +27 -20
- package/es/apaas/service/apis/page-designer-log.service.d.ts +16 -15
- package/es/apaas/service/apis/permission.service.d.ts +16 -15
- package/es/apaas/service/apis/plat.service.d.ts +11 -10
- package/es/apaas/service/apis/pm-process-definition-version.service.d.ts +27 -20
- package/es/apaas/service/apis/pm-process-definition.service.d.ts +18 -17
- package/es/apaas/service/apis/pm-process-engine.service.d.ts +35 -34
- package/es/apaas/service/apis/print-designer.service.d.ts +11 -10
- package/es/apaas/service/apis/print-log.service.d.ts +5 -4
- package/es/apaas/service/apis/print.service.d.ts +11 -10
- package/es/apaas/service/apis/process-approval-log.service.d.ts +18 -17
- package/es/apaas/service/apis/process-approve-user.service.d.ts +16 -15
- package/es/apaas/service/apis/process-definition-version.service.d.ts +32 -21
- package/es/apaas/service/apis/process-definition.service.d.ts +22 -17
- package/es/apaas/service/apis/process-engine.service.d.ts +13 -12
- package/es/apaas/service/apis/process-event.service.d.ts +16 -15
- package/es/apaas/service/apis/process-graph.service.d.ts +3 -2
- package/es/apaas/service/apis/process-instance-relation-.service.d.ts +16 -15
- package/es/apaas/service/apis/process-instance.service.d.ts +16 -15
- package/es/apaas/service/apis/process-message-user.service.d.ts +16 -15
- package/es/apaas/service/apis/process-node-definition.service.d.ts +16 -15
- package/es/apaas/service/apis/process-path-user.service.d.ts +16 -15
- package/es/apaas/service/apis/process-path.service.d.ts +7 -6
- package/es/apaas/service/apis/process-task-done.service.d.ts +3 -2
- package/es/apaas/service/apis/process-task-todo.service.d.ts +5 -4
- package/es/apaas/service/apis/process-version.service.d.ts +17 -12
- package/es/apaas/service/apis/process.service.d.ts +14 -13
- package/es/apaas/service/apis/processTest.service.d.ts +15 -14
- package/es/apaas/service/apis/product-release.service.d.ts +11 -8
- package/es/apaas/service/apis/publish-log.service.d.ts +21 -22
- package/es/apaas/service/apis/regexp.service.d.ts +15 -16
- package/es/apaas/service/apis/report-data-set.service.d.ts +26 -25
- package/es/apaas/service/apis/report-data.service.d.ts +7 -6
- package/es/apaas/service/apis/report.service.d.ts +42 -35
- package/es/apaas/service/apis/role-permission.service.d.ts +9 -8
- package/es/apaas/service/apis/role.service.d.ts +19 -11
- package/es/apaas/service/apis/sandbox-config.service.d.ts +24 -23
- package/es/apaas/service/apis/script-assistant.service.d.ts +4 -3
- package/es/apaas/service/apis/script-version-log.service.d.ts +9 -8
- package/es/apaas/service/apis/script-version.service.d.ts +18 -17
- package/es/apaas/service/apis/script.service.d.ts +17 -18
- package/es/apaas/service/apis/service-orchestration-version-log.service.d.ts +11 -10
- package/es/apaas/service/apis/service-orchestration-version.service.d.ts +18 -17
- package/es/apaas/service/apis/service-orchestration.service.d.ts +18 -17
- package/es/apaas/service/apis/sign-history.service.d.ts +15 -16
- package/es/apaas/service/apis/sign-log.service.d.ts +5 -4
- package/es/apaas/service/apis/signature.service.d.ts +5 -4
- package/es/apaas/service/apis/sql-view-model.service.d.ts +14 -13
- package/es/apaas/service/apis/sql-view.service.d.ts +8 -2
- package/es/apaas/service/apis/ss.service.d.ts +3 -2
- package/es/apaas/service/apis/stash.service.d.ts +14 -13
- package/es/apaas/service/apis/sub-model-process.service.d.ts +3 -2
- package/es/apaas/service/apis/sys-config.service.d.ts +15 -16
- package/es/apaas/service/apis/system-var.service.d.ts +21 -22
- package/es/apaas/service/apis/trace-log-details.service.d.ts +25 -26
- package/es/apaas/service/apis/trace-log.service.d.ts +17 -18
- package/es/apaas/service/apis/trace-mainline-ext.service.d.ts +16 -15
- package/es/apaas/service/apis/trace-mainline.service.d.ts +16 -15
- package/es/apaas/service/apis/trace-setting.service.d.ts +12 -11
- package/es/apaas/service/apis/user-group-relation.service.d.ts +12 -11
- package/es/apaas/service/apis/user-group.service.d.ts +19 -20
- package/es/apaas/service/apis/view-model.service.d.ts +54 -30
- package/es/apaas/service/apis/wash.service.d.ts +3 -6
- package/es/apaas/service/apis/webpage.service.d.ts +37 -30
- package/es/apaas/service/entities.d.ts +391 -1
- package/es/apaas/service/index.d.ts +10 -4
- package/es/ipaas/service/api-config.mjs +46 -109
- package/es/ipaas/service/apis/auth.service.d.ts +7 -6
- package/es/ipaas/service/apis/camel.service.d.ts +12 -15
- package/es/ipaas/service/apis/category.service.d.ts +3 -2
- package/es/ipaas/service/apis/connector-config.service.d.ts +22 -23
- package/es/ipaas/service/apis/connector-log.service.d.ts +8 -7
- package/es/ipaas/service/apis/flow-app.service.d.ts +14 -18
- package/es/ipaas/service/apis/flow-category.service.d.ts +20 -19
- package/es/ipaas/service/apis/flow-ext.service.d.ts +19 -20
- package/es/ipaas/service/apis/flow.service.d.ts +18 -15
- package/es/ipaas/service/apis/runtime.service.d.ts +6 -7
- package/es/platform/service/api-config.mjs +687 -1645
- package/es/platform/service/apis/agent.service.d.ts +15 -16
- package/es/platform/service/apis/api.service.d.ts +274 -252
- package/es/platform/service/apis/apk.service.d.ts +15 -23
- package/es/platform/service/apis/app-member.service.d.ts +26 -13
- package/es/platform/service/apis/app-setting.service.d.ts +16 -17
- package/es/platform/service/apis/app.service.d.ts +173 -80
- package/es/platform/service/apis/assets.service.d.ts +22 -12
- package/es/platform/service/apis/attachmentResourceTransfer.service.d.ts +3 -2
- package/es/platform/service/apis/audit-log.service.d.ts +10 -13
- package/es/platform/service/apis/bi-app.service.d.ts +7 -2
- package/es/platform/service/apis/bi-data-set.service.d.ts +17 -18
- package/es/platform/service/apis/bi-file-dataset-config.service.d.ts +18 -17
- package/es/platform/service/apis/bi-file.service.d.ts +3 -2
- package/es/platform/service/apis/bi-share.service.d.ts +16 -15
- package/es/platform/service/apis/buildEnshrineCompLibrary.service.d.ts +2 -1
- package/es/platform/service/apis/category.service.d.ts +25 -26
- package/es/platform/service/apis/clearLogLogin.service.d.ts +2 -1
- package/es/platform/service/apis/clearLogOperate.service.d.ts +2 -1
- package/es/platform/service/apis/clearTempDir.service.d.ts +2 -1
- package/es/platform/service/apis/copyFilter.service.d.ts +3 -2
- package/es/platform/service/apis/dashboard.service.d.ts +18 -18
- package/es/platform/service/apis/data-source.service.d.ts +23 -22
- package/es/platform/service/apis/data-trace.service.d.ts +18 -21
- package/es/platform/service/apis/database.service.d.ts +37 -38
- package/es/platform/service/apis/dataset-log.service.d.ts +16 -15
- package/es/platform/service/apis/dataset.service.d.ts +39 -40
- package/es/platform/service/apis/datasource-devops.service.d.ts +16 -15
- package/es/platform/service/apis/datasource-move-data.service.d.ts +16 -15
- package/es/platform/service/apis/datasource-move-detail.service.d.ts +16 -15
- package/es/platform/service/apis/datasource-move.service.d.ts +18 -17
- package/es/platform/service/apis/deleteCompInfo.service.d.ts +3 -2
- package/es/platform/service/apis/deleteCompInfoType.service.d.ts +3 -2
- package/es/platform/service/apis/deleteCsvDatasource.service.d.ts +3 -2
- package/es/platform/service/apis/deleteEchartTheme.service.d.ts +3 -2
- package/es/platform/service/apis/deleteEnshrineComp.service.d.ts +3 -2
- package/es/platform/service/apis/deleteEnshrineCompGroup.service.d.ts +3 -2
- package/es/platform/service/apis/deleteFilter.service.d.ts +3 -2
- package/es/platform/service/apis/deleteLogOperateById.service.d.ts +3 -2
- package/es/platform/service/apis/deleteMapGeoJson.service.d.ts +3 -2
- package/es/platform/service/apis/deleteNotUseDir.service.d.ts +2 -1
- package/es/platform/service/apis/deletePageSnapshoot.service.d.ts +3 -2
- package/es/platform/service/apis/deletePageTemplate.service.d.ts +3 -2
- package/es/platform/service/apis/deletePnResource.service.d.ts +3 -2
- package/es/platform/service/apis/deletePnResourceGroup.service.d.ts +3 -2
- package/es/platform/service/apis/device-interconnection-param.service.d.ts +18 -19
- package/es/platform/service/apis/device-interconnection.service.d.ts +20 -19
- package/es/platform/service/apis/device-param-ref.service.d.ts +7 -6
- package/es/platform/service/apis/exportTemplate.service.d.ts +13 -18
- package/es/platform/service/apis/external-message.service.d.ts +16 -15
- package/es/platform/service/apis/file-task.service.d.ts +18 -17
- package/es/platform/service/apis/file.service.d.ts +8 -9
- package/es/platform/service/apis/front-release.service.d.ts +2 -3
- package/es/platform/service/apis/getAdCodeByAliasName.service.d.ts +2 -4
- package/es/platform/service/apis/getAllCompInfo.service.d.ts +2 -1
- package/es/platform/service/apis/getAllCompInfoByTypeId.service.d.ts +2 -4
- package/es/platform/service/apis/getAllCompInfoType.service.d.ts +2 -1
- package/es/platform/service/apis/getAllCsvDatasource.service.d.ts +2 -4
- package/es/platform/service/apis/getAllEchartTheme.service.d.ts +2 -1
- package/es/platform/service/apis/getAllEnshrineCompGroups.service.d.ts +2 -1
- package/es/platform/service/apis/getAllFilter.service.d.ts +2 -1
- package/es/platform/service/apis/getAllPageTemplate.service.d.ts +2 -1
- package/es/platform/service/apis/getAttachmentInfoByPage.service.d.ts +3 -2
- package/es/platform/service/apis/getCompInfoById.service.d.ts +2 -4
- package/es/platform/service/apis/getCompInfoByPage.service.d.ts +3 -2
- package/es/platform/service/apis/getCompInfoTypeById.service.d.ts +2 -4
- package/es/platform/service/apis/getCompInfoTypeByPage.service.d.ts +3 -2
- package/es/platform/service/apis/getContentToArray.service.d.ts +2 -4
- package/es/platform/service/apis/getCsvDatasourceById.service.d.ts +2 -4
- package/es/platform/service/apis/getCsvDatasourceByName.service.d.ts +2 -4
- package/es/platform/service/apis/getCsvDatasourceByPage.service.d.ts +3 -2
- package/es/platform/service/apis/getDesignerData.service.d.ts +2 -4
- package/es/platform/service/apis/getEchartThemeById.service.d.ts +2 -4
- package/es/platform/service/apis/getEchartThemeByPage.service.d.ts +3 -2
- package/es/platform/service/apis/getEnshrineCompByPage.service.d.ts +3 -2
- package/es/platform/service/apis/getEnshrineCompGroupById.service.d.ts +2 -4
- package/es/platform/service/apis/getEnshrineCompGroupByPage.service.d.ts +3 -2
- package/es/platform/service/apis/getFilterById.service.d.ts +2 -4
- package/es/platform/service/apis/getGeoJsonByAdCode.service.d.ts +2 -4
- package/es/platform/service/apis/getLayoutItemObjById.service.d.ts +2 -4
- package/es/platform/service/apis/getLogLoginByPage.service.d.ts +3 -2
- package/es/platform/service/apis/getMapBaseInfoByLevel.service.d.ts +2 -4
- package/es/platform/service/apis/getMapGeoJsonById.service.d.ts +2 -4
- package/es/platform/service/apis/getMapGeoJsonByPage.service.d.ts +3 -2
- package/es/platform/service/apis/getMyAllPnResourceGroup.service.d.ts +2 -1
- package/es/platform/service/apis/getMyEchartThemes.service.d.ts +2 -1
- package/es/platform/service/apis/getMyPnResourceByPage.service.d.ts +3 -2
- package/es/platform/service/apis/getMyShareCustomCompByPage.service.d.ts +3 -2
- package/es/platform/service/apis/getPageSnapshootByEnabled.service.d.ts +2 -4
- package/es/platform/service/apis/getPageSnapshootById.service.d.ts +2 -4
- package/es/platform/service/apis/getPageSnapshootsByPageId.service.d.ts +2 -4
- package/es/platform/service/apis/getPageTemplateById.service.d.ts +2 -4
- package/es/platform/service/apis/getPageTemplateByPage.service.d.ts +3 -2
- package/es/platform/service/apis/getPageTemplateForCreatePageForm.service.d.ts +3 -2
- package/es/platform/service/apis/getPageTemplateLayout.service.d.ts +2 -4
- package/es/platform/service/apis/getPageTemplateThemeJson.service.d.ts +2 -4
- package/es/platform/service/apis/getPageTotalCount.service.d.ts +2 -1
- package/es/platform/service/apis/getPnLogOperateByPage.service.d.ts +3 -2
- package/es/platform/service/apis/getPnResourceGroupById.service.d.ts +2 -4
- package/es/platform/service/apis/getProjectTotalCount.service.d.ts +2 -1
- package/es/platform/service/apis/getShareCustomCompById.service.d.ts +2 -4
- package/es/platform/service/apis/getShareCustomCompByPage.service.d.ts +3 -2
- package/es/platform/service/apis/getSysEchartThemes.service.d.ts +2 -1
- package/es/platform/service/apis/httpQuery.service.d.ts +3 -2
- package/es/platform/service/apis/i18n-config.service.d.ts +8 -7
- package/es/platform/service/apis/i18n-info.service.d.ts +20 -17
- package/es/platform/service/apis/importCompInfoJson.service.d.ts +3 -2
- package/es/platform/service/apis/importTemplate.service.d.ts +8 -7
- package/es/platform/service/apis/internal-message.service.d.ts +18 -13
- package/es/platform/service/apis/invoke-log.service.d.ts +7 -6
- package/es/platform/service/apis/knowledge-base-chunk.service.d.ts +16 -15
- package/es/platform/service/apis/knowledge-base-doc.service.d.ts +16 -15
- package/es/platform/service/apis/knowledge-base.service.d.ts +16 -15
- package/es/platform/service/apis/ldap.service.d.ts +2 -3
- package/es/platform/service/apis/license-unbind-log.service.d.ts +3 -2
- package/es/platform/service/apis/license.service.d.ts +29 -36
- package/es/platform/service/apis/login-log.service.d.ts +3 -2
- package/es/platform/service/apis/login.service.d.ts +11 -10
- package/es/platform/service/apis/manager.service.d.ts +5 -4
- package/es/platform/service/apis/message-setting.service.d.ts +24 -23
- package/es/platform/service/apis/minio-file.service.d.ts +5 -4
- package/es/platform/service/apis/model-provider.service.d.ts +16 -15
- package/es/platform/service/apis/model.service.d.ts +15 -16
- package/es/platform/service/apis/nav-menu.service.d.ts +25 -22
- package/es/platform/service/apis/nav-page.service.d.ts +21 -18
- package/es/platform/service/apis/openapi-group.service.d.ts +24 -23
- package/es/platform/service/apis/openapi-key-grant.service.d.ts +19 -18
- package/es/platform/service/apis/org-user-picker.service.d.ts +9 -8
- package/es/platform/service/apis/org.service.d.ts +40 -40
- package/es/platform/service/apis/parseCsvOrExcel.service.d.ts +2 -4
- package/es/platform/service/apis/permission.service.d.ts +13 -14
- package/es/platform/service/apis/plat.service.d.ts +50 -49
- package/es/platform/service/apis/plugin-version.service.d.ts +16 -15
- package/es/platform/service/apis/plugin.service.d.ts +25 -26
- package/es/platform/service/apis/pm-process-delegate-detail.service.d.ts +16 -15
- package/es/platform/service/apis/pm-process-delegate.service.d.ts +16 -15
- package/es/platform/service/apis/pm-process-instance.service.d.ts +17 -18
- package/es/platform/service/apis/pm-task-done.service.d.ts +16 -19
- package/es/platform/service/apis/pm-task-todo.service.d.ts +16 -19
- package/es/platform/service/apis/pn-page.service.d.ts +15 -16
- package/es/platform/service/apis/pn-project.service.d.ts +29 -30
- package/es/platform/service/apis/print-log.service.d.ts +9 -8
- package/es/platform/service/apis/print-resource.service.d.ts +29 -26
- package/es/platform/service/apis/regexp.service.d.ts +15 -16
- package/es/platform/service/apis/released.service.d.ts +19 -10
- package/es/platform/service/apis/resourceTransferToPage.service.d.ts +3 -2
- package/es/platform/service/apis/role-permission.service.d.ts +13 -12
- package/es/platform/service/apis/role.service.d.ts +32 -23
- package/es/platform/service/apis/saveCompInfo.service.d.ts +3 -2
- package/es/platform/service/apis/saveCompInfoType.service.d.ts +3 -2
- package/es/platform/service/apis/saveCsvDatasource.service.d.ts +3 -2
- package/es/platform/service/apis/saveEchartTheme.service.d.ts +3 -2
- package/es/platform/service/apis/saveEnshrineComp.service.d.ts +3 -2
- package/es/platform/service/apis/saveEnshrineCompGroup.service.d.ts +3 -2
- package/es/platform/service/apis/saveFilter.service.d.ts +3 -2
- package/es/platform/service/apis/saveMapGeoJson.service.d.ts +3 -2
- package/es/platform/service/apis/savePageSnapshoot.service.d.ts +3 -2
- package/es/platform/service/apis/savePageTemplate.service.d.ts +3 -2
- package/es/platform/service/apis/savePnResourceGroup.service.d.ts +3 -2
- package/es/platform/service/apis/saveShareCustomComp.service.d.ts +3 -2
- package/es/platform/service/apis/seal-management.service.d.ts +20 -19
- package/es/platform/service/apis/searchEnshrineComp.service.d.ts +3 -2
- package/es/platform/service/apis/seat-message.service.d.ts +8 -1
- package/es/platform/service/apis/seat.service.d.ts +15 -16
- package/es/platform/service/apis/setPageSnapshootEnabled.service.d.ts +3 -2
- package/es/platform/service/apis/setPageSnapshootEnabledByPageId.service.d.ts +3 -2
- package/es/platform/service/apis/shortcut.service.d.ts +20 -17
- package/es/platform/service/apis/sign-log.service.d.ts +17 -18
- package/es/platform/service/apis/sms.service.d.ts +5 -4
- package/es/platform/service/apis/started-process.service.d.ts +8 -9
- package/es/platform/service/apis/task-delegate.service.d.ts +24 -19
- package/es/platform/service/apis/task-done.service.d.ts +8 -9
- package/es/platform/service/apis/task-todo.service.d.ts +8 -9
- package/es/platform/service/apis/tenant-developer.service.d.ts +19 -20
- package/es/platform/service/apis/tenant.service.d.ts +111 -76
- package/es/platform/service/apis/toggleEnabled.service.d.ts +3 -2
- package/es/platform/service/apis/uncompressLogOperateLayoutStr.service.d.ts +3 -2
- package/es/platform/service/apis/uploadFiles.service.d.ts +13 -18
- package/es/platform/service/apis/user-extra.service.d.ts +15 -16
- package/es/platform/service/apis/user-info-log.service.d.ts +15 -16
- package/es/platform/service/apis/user-password-history.service.d.ts +16 -15
- package/es/platform/service/apis/user.service.d.ts +57 -62
- package/es/platform/service/apis/workbench-component-relation.service.d.ts +26 -21
- package/es/platform/service/apis/workbench-component.service.d.ts +16 -15
- package/es/platform/service/entities.d.ts +98 -0
- package/es/service/api-service.d.ts +44 -36
- package/es/service/api-service.interface.d.ts +8 -6
- package/es/service/api-service.mjs +110 -56
- package/es/service/http.error.d.ts +40 -0
- package/es/service/http.error.mjs +39 -0
- package/es/service/http.util.d.ts +33 -17
- package/es/service/http.util.mjs +62 -36
- package/es/service/index.d.ts +1 -0
- package/es/service/index.mjs +1 -0
- package/lib/apaas/service/api-config.cjs +1024 -2003
- package/lib/apaas/service/apis/api.service.d.ts +130 -95
- package/lib/apaas/service/apis/app-branch.service.d.ts +15 -16
- package/lib/apaas/service/apis/app-global-settings.service.d.ts +14 -14
- package/lib/apaas/service/apis/app-granted-user.service.d.ts +14 -15
- package/lib/apaas/service/apis/app-org.service.d.ts +34 -34
- package/lib/apaas/service/apis/app-publish-log.service.d.ts +16 -15
- package/lib/apaas/service/apis/app-state.service.d.ts +3 -2
- package/lib/apaas/service/apis/app-user.service.d.ts +28 -23
- package/lib/apaas/service/apis/approval-log.service.d.ts +15 -16
- package/lib/apaas/service/apis/audit-log.service.d.ts +13 -14
- package/lib/apaas/service/apis/basic-config.service.d.ts +18 -15
- package/lib/apaas/service/apis/biz-event.service.d.ts +16 -15
- package/lib/apaas/service/apis/biz-process-definition-version.service.d.ts +25 -18
- package/lib/apaas/service/apis/biz-process-definition.service.d.ts +16 -15
- package/lib/apaas/service/apis/biz-service-crud.service.d.ts +22 -21
- package/lib/apaas/service/apis/biz-service.service.d.ts +29 -8
- package/lib/apaas/service/apis/bom.service.d.ts +2 -1
- package/lib/apaas/service/apis/category-relation.service.d.ts +22 -17
- package/lib/apaas/service/apis/category.service.d.ts +28 -23
- package/lib/apaas/service/apis/chat.service.d.ts +3 -2
- package/lib/apaas/service/apis/code-ts.service.d.ts +2 -1
- package/lib/apaas/service/apis/commit-log.service.d.ts +30 -33
- package/lib/apaas/service/apis/common-info-card.service.d.ts +20 -19
- package/lib/apaas/service/apis/control-config.service.d.ts +25 -19
- package/lib/apaas/service/apis/customer-complaint.service.d.ts +19 -18
- package/lib/apaas/service/apis/dashboard.service.d.ts +18 -17
- package/lib/apaas/service/apis/data-model.service.d.ts +43 -24
- package/lib/apaas/service/apis/data-source.service.d.ts +5 -4
- package/lib/apaas/service/apis/data-trace.service.d.ts +18 -21
- package/lib/apaas/service/apis/designer-common.service.d.ts +26 -31
- package/lib/apaas/service/apis/designer-lock.service.d.ts +11 -10
- package/lib/apaas/service/apis/designer-operate-log.service.d.ts +3 -2
- package/lib/apaas/service/apis/devops.service.d.ts +5 -4
- package/lib/apaas/service/apis/dhr.service.d.ts +29 -14
- package/lib/apaas/service/apis/dify-chat.service.d.ts +5 -4
- package/lib/apaas/service/apis/doc-control-started.service.d.ts +7 -6
- package/lib/apaas/service/apis/doc-control-task-done.service.d.ts +7 -6
- package/lib/apaas/service/apis/doc-control-task-todo.service.d.ts +10 -9
- package/lib/apaas/service/apis/doc-control.service.d.ts +19 -18
- package/lib/apaas/service/apis/doc-outline.service.d.ts +28 -27
- package/lib/apaas/service/apis/document.service.d.ts +45 -34
- package/lib/apaas/service/apis/edhr-category.service.d.ts +18 -17
- package/lib/apaas/service/apis/edhr-circulationFormRelateModel.service.d.ts +18 -17
- package/lib/apaas/service/apis/edhr-instance-relation.service.d.ts +9 -8
- package/lib/apaas/service/apis/edhr-instance-search-history.service.d.ts +5 -4
- package/lib/apaas/service/apis/edhr-instance.service.d.ts +25 -20
- package/lib/apaas/service/apis/edhr-tmpl.service.d.ts +41 -24
- package/lib/apaas/service/apis/ele-search.service.d.ts +3 -2
- package/lib/apaas/service/apis/enum-model-field.service.d.ts +22 -17
- package/lib/apaas/service/apis/enum-model.service.d.ts +33 -22
- package/lib/apaas/service/apis/event-log.service.d.ts +8 -9
- package/lib/apaas/service/apis/event.service.d.ts +16 -15
- package/lib/apaas/service/apis/excel-tmpl.service.d.ts +38 -29
- package/lib/apaas/service/apis/excel.service.d.ts +13 -12
- package/lib/apaas/service/apis/field-meta.service.d.ts +56 -31
- package/lib/apaas/service/apis/field.service.d.ts +3 -2
- package/lib/apaas/service/apis/file-resource.service.d.ts +7 -6
- package/lib/apaas/service/apis/file-task.service.d.ts +6 -5
- package/lib/apaas/service/apis/file.service.d.ts +7 -6
- package/lib/apaas/service/apis/form.service.d.ts +13 -12
- package/lib/apaas/service/apis/formRelate.service.d.ts +29 -24
- package/lib/apaas/service/apis/front-operate-log.service.d.ts +3 -2
- package/lib/apaas/service/apis/global-method.service.d.ts +17 -18
- package/lib/apaas/service/apis/i18n-info.service.d.ts +17 -12
- package/lib/apaas/service/apis/instance-relation.service.d.ts +13 -12
- package/lib/apaas/service/apis/ipaas.service.d.ts +3 -2
- package/lib/apaas/service/apis/job-log.service.d.ts +6 -7
- package/lib/apaas/service/apis/job.service.d.ts +25 -23
- package/lib/apaas/service/apis/js-engine.service.d.ts +15 -6
- package/lib/apaas/service/apis/label-log.service.d.ts +15 -16
- package/lib/apaas/service/apis/label.service.d.ts +74 -63
- package/lib/apaas/service/apis/login-log.service.d.ts +3 -2
- package/lib/apaas/service/apis/med-pro.service.d.ts +48 -0
- package/lib/apaas/service/apis/medPro.service.d.ts +30 -3
- package/lib/apaas/service/apis/menu-config.service.d.ts +18 -17
- package/lib/apaas/service/apis/merge-log.service.d.ts +13 -14
- package/lib/apaas/service/apis/message-record.service.d.ts +11 -10
- package/lib/apaas/service/apis/message-setting.service.d.ts +5 -4
- package/lib/apaas/service/apis/message-tmpl.service.d.ts +21 -22
- package/lib/apaas/service/apis/mobile-homepage.service.d.ts +26 -21
- package/lib/apaas/service/apis/mobile-page.service.d.ts +27 -20
- package/lib/apaas/service/apis/model-comprehensive.service.d.ts +143 -54
- package/lib/apaas/service/apis/model-data.service.d.ts +11 -10
- package/lib/apaas/service/apis/model-meta.service.d.ts +82 -58
- package/lib/apaas/service/apis/model-method.service.d.ts +20 -19
- package/lib/apaas/service/apis/model-permission-relation.service.d.ts +16 -15
- package/lib/apaas/service/apis/model.service.d.ts +3 -2
- package/lib/apaas/service/apis/ocr.service.d.ts +5 -0
- package/lib/apaas/service/apis/office.service.d.ts +5 -0
- package/lib/apaas/service/apis/online-form-category.service.d.ts +18 -17
- package/lib/apaas/service/apis/online-form-change-history.service.d.ts +3 -2
- package/lib/apaas/service/apis/online-form-instance.service.d.ts +125 -78
- package/lib/apaas/service/apis/online-form-log.service.d.ts +3 -2
- package/lib/apaas/service/apis/online-form-tmpl-log.service.d.ts +16 -15
- package/lib/apaas/service/apis/online-form-tmpl.service.d.ts +101 -43
- package/lib/apaas/service/apis/online-form.service.d.ts +51 -40
- package/lib/apaas/service/apis/online-user-summary.service.d.ts +16 -15
- package/lib/apaas/service/apis/online.service.d.ts +9 -8
- package/lib/apaas/service/apis/openapi.service.d.ts +18 -21
- package/lib/apaas/service/apis/pad-page.service.d.ts +27 -20
- package/lib/apaas/service/apis/page-designer-log.service.d.ts +16 -15
- package/lib/apaas/service/apis/permission.service.d.ts +16 -15
- package/lib/apaas/service/apis/plat.service.d.ts +11 -10
- package/lib/apaas/service/apis/pm-process-definition-version.service.d.ts +27 -20
- package/lib/apaas/service/apis/pm-process-definition.service.d.ts +18 -17
- package/lib/apaas/service/apis/pm-process-engine.service.d.ts +35 -34
- package/lib/apaas/service/apis/print-designer.service.d.ts +11 -10
- package/lib/apaas/service/apis/print-log.service.d.ts +5 -4
- package/lib/apaas/service/apis/print.service.d.ts +11 -10
- package/lib/apaas/service/apis/process-approval-log.service.d.ts +18 -17
- package/lib/apaas/service/apis/process-approve-user.service.d.ts +16 -15
- package/lib/apaas/service/apis/process-definition-version.service.d.ts +32 -21
- package/lib/apaas/service/apis/process-definition.service.d.ts +22 -17
- package/lib/apaas/service/apis/process-engine.service.d.ts +13 -12
- package/lib/apaas/service/apis/process-event.service.d.ts +16 -15
- package/lib/apaas/service/apis/process-graph.service.d.ts +3 -2
- package/lib/apaas/service/apis/process-instance-relation-.service.d.ts +16 -15
- package/lib/apaas/service/apis/process-instance.service.d.ts +16 -15
- package/lib/apaas/service/apis/process-message-user.service.d.ts +16 -15
- package/lib/apaas/service/apis/process-node-definition.service.d.ts +16 -15
- package/lib/apaas/service/apis/process-path-user.service.d.ts +16 -15
- package/lib/apaas/service/apis/process-path.service.d.ts +7 -6
- package/lib/apaas/service/apis/process-task-done.service.d.ts +3 -2
- package/lib/apaas/service/apis/process-task-todo.service.d.ts +5 -4
- package/lib/apaas/service/apis/process-version.service.d.ts +17 -12
- package/lib/apaas/service/apis/process.service.d.ts +14 -13
- package/lib/apaas/service/apis/processTest.service.d.ts +15 -14
- package/lib/apaas/service/apis/product-release.service.d.ts +11 -8
- package/lib/apaas/service/apis/publish-log.service.d.ts +21 -22
- package/lib/apaas/service/apis/regexp.service.d.ts +15 -16
- package/lib/apaas/service/apis/report-data-set.service.d.ts +26 -25
- package/lib/apaas/service/apis/report-data.service.d.ts +7 -6
- package/lib/apaas/service/apis/report.service.d.ts +42 -35
- package/lib/apaas/service/apis/role-permission.service.d.ts +9 -8
- package/lib/apaas/service/apis/role.service.d.ts +19 -11
- package/lib/apaas/service/apis/sandbox-config.service.d.ts +24 -23
- package/lib/apaas/service/apis/script-assistant.service.d.ts +4 -3
- package/lib/apaas/service/apis/script-version-log.service.d.ts +9 -8
- package/lib/apaas/service/apis/script-version.service.d.ts +18 -17
- package/lib/apaas/service/apis/script.service.d.ts +17 -18
- package/lib/apaas/service/apis/service-orchestration-version-log.service.d.ts +11 -10
- package/lib/apaas/service/apis/service-orchestration-version.service.d.ts +18 -17
- package/lib/apaas/service/apis/service-orchestration.service.d.ts +18 -17
- package/lib/apaas/service/apis/sign-history.service.d.ts +15 -16
- package/lib/apaas/service/apis/sign-log.service.d.ts +5 -4
- package/lib/apaas/service/apis/signature.service.d.ts +5 -4
- package/lib/apaas/service/apis/sql-view-model.service.d.ts +14 -13
- package/lib/apaas/service/apis/sql-view.service.d.ts +8 -2
- package/lib/apaas/service/apis/ss.service.d.ts +3 -2
- package/lib/apaas/service/apis/stash.service.d.ts +14 -13
- package/lib/apaas/service/apis/sub-model-process.service.d.ts +3 -2
- package/lib/apaas/service/apis/sys-config.service.d.ts +15 -16
- package/lib/apaas/service/apis/system-var.service.d.ts +21 -22
- package/lib/apaas/service/apis/trace-log-details.service.d.ts +25 -26
- package/lib/apaas/service/apis/trace-log.service.d.ts +17 -18
- package/lib/apaas/service/apis/trace-mainline-ext.service.d.ts +16 -15
- package/lib/apaas/service/apis/trace-mainline.service.d.ts +16 -15
- package/lib/apaas/service/apis/trace-setting.service.d.ts +12 -11
- package/lib/apaas/service/apis/user-group-relation.service.d.ts +12 -11
- package/lib/apaas/service/apis/user-group.service.d.ts +19 -20
- package/lib/apaas/service/apis/view-model.service.d.ts +54 -30
- package/lib/apaas/service/apis/wash.service.d.ts +3 -6
- package/lib/apaas/service/apis/webpage.service.d.ts +37 -30
- package/lib/apaas/service/entities.d.ts +391 -1
- package/lib/apaas/service/index.d.ts +10 -4
- package/lib/ipaas/service/api-config.cjs +46 -109
- package/lib/ipaas/service/apis/auth.service.d.ts +7 -6
- package/lib/ipaas/service/apis/camel.service.d.ts +12 -15
- package/lib/ipaas/service/apis/category.service.d.ts +3 -2
- package/lib/ipaas/service/apis/connector-config.service.d.ts +22 -23
- package/lib/ipaas/service/apis/connector-log.service.d.ts +8 -7
- package/lib/ipaas/service/apis/flow-app.service.d.ts +14 -18
- package/lib/ipaas/service/apis/flow-category.service.d.ts +20 -19
- package/lib/ipaas/service/apis/flow-ext.service.d.ts +19 -20
- package/lib/ipaas/service/apis/flow.service.d.ts +18 -15
- package/lib/ipaas/service/apis/runtime.service.d.ts +6 -7
- package/lib/platform/service/api-config.cjs +686 -1645
- package/lib/platform/service/apis/agent.service.d.ts +15 -16
- package/lib/platform/service/apis/api.service.d.ts +274 -252
- package/lib/platform/service/apis/apk.service.d.ts +15 -23
- package/lib/platform/service/apis/app-member.service.d.ts +26 -13
- package/lib/platform/service/apis/app-setting.service.d.ts +16 -17
- package/lib/platform/service/apis/app.service.d.ts +173 -80
- package/lib/platform/service/apis/assets.service.d.ts +22 -12
- package/lib/platform/service/apis/attachmentResourceTransfer.service.d.ts +3 -2
- package/lib/platform/service/apis/audit-log.service.d.ts +10 -13
- package/lib/platform/service/apis/bi-app.service.d.ts +7 -2
- package/lib/platform/service/apis/bi-data-set.service.d.ts +17 -18
- package/lib/platform/service/apis/bi-file-dataset-config.service.d.ts +18 -17
- package/lib/platform/service/apis/bi-file.service.d.ts +3 -2
- package/lib/platform/service/apis/bi-share.service.d.ts +16 -15
- package/lib/platform/service/apis/buildEnshrineCompLibrary.service.d.ts +2 -1
- package/lib/platform/service/apis/category.service.d.ts +25 -26
- package/lib/platform/service/apis/clearLogLogin.service.d.ts +2 -1
- package/lib/platform/service/apis/clearLogOperate.service.d.ts +2 -1
- package/lib/platform/service/apis/clearTempDir.service.d.ts +2 -1
- package/lib/platform/service/apis/copyFilter.service.d.ts +3 -2
- package/lib/platform/service/apis/dashboard.service.d.ts +18 -18
- package/lib/platform/service/apis/data-source.service.d.ts +23 -22
- package/lib/platform/service/apis/data-trace.service.d.ts +18 -21
- package/lib/platform/service/apis/database.service.d.ts +37 -38
- package/lib/platform/service/apis/dataset-log.service.d.ts +16 -15
- package/lib/platform/service/apis/dataset.service.d.ts +39 -40
- package/lib/platform/service/apis/datasource-devops.service.d.ts +16 -15
- package/lib/platform/service/apis/datasource-move-data.service.d.ts +16 -15
- package/lib/platform/service/apis/datasource-move-detail.service.d.ts +16 -15
- package/lib/platform/service/apis/datasource-move.service.d.ts +18 -17
- package/lib/platform/service/apis/deleteCompInfo.service.d.ts +3 -2
- package/lib/platform/service/apis/deleteCompInfoType.service.d.ts +3 -2
- package/lib/platform/service/apis/deleteCsvDatasource.service.d.ts +3 -2
- package/lib/platform/service/apis/deleteEchartTheme.service.d.ts +3 -2
- package/lib/platform/service/apis/deleteEnshrineComp.service.d.ts +3 -2
- package/lib/platform/service/apis/deleteEnshrineCompGroup.service.d.ts +3 -2
- package/lib/platform/service/apis/deleteFilter.service.d.ts +3 -2
- package/lib/platform/service/apis/deleteLogOperateById.service.d.ts +3 -2
- package/lib/platform/service/apis/deleteMapGeoJson.service.d.ts +3 -2
- package/lib/platform/service/apis/deleteNotUseDir.service.d.ts +2 -1
- package/lib/platform/service/apis/deletePageSnapshoot.service.d.ts +3 -2
- package/lib/platform/service/apis/deletePageTemplate.service.d.ts +3 -2
- package/lib/platform/service/apis/deletePnResource.service.d.ts +3 -2
- package/lib/platform/service/apis/deletePnResourceGroup.service.d.ts +3 -2
- package/lib/platform/service/apis/device-interconnection-param.service.d.ts +18 -19
- package/lib/platform/service/apis/device-interconnection.service.d.ts +20 -19
- package/lib/platform/service/apis/device-param-ref.service.d.ts +7 -6
- package/lib/platform/service/apis/exportTemplate.service.d.ts +13 -18
- package/lib/platform/service/apis/external-message.service.d.ts +16 -15
- package/lib/platform/service/apis/file-task.service.d.ts +18 -17
- package/lib/platform/service/apis/file.service.d.ts +8 -9
- package/lib/platform/service/apis/front-release.service.d.ts +2 -3
- package/lib/platform/service/apis/getAdCodeByAliasName.service.d.ts +2 -4
- package/lib/platform/service/apis/getAllCompInfo.service.d.ts +2 -1
- package/lib/platform/service/apis/getAllCompInfoByTypeId.service.d.ts +2 -4
- package/lib/platform/service/apis/getAllCompInfoType.service.d.ts +2 -1
- package/lib/platform/service/apis/getAllCsvDatasource.service.d.ts +2 -4
- package/lib/platform/service/apis/getAllEchartTheme.service.d.ts +2 -1
- package/lib/platform/service/apis/getAllEnshrineCompGroups.service.d.ts +2 -1
- package/lib/platform/service/apis/getAllFilter.service.d.ts +2 -1
- package/lib/platform/service/apis/getAllPageTemplate.service.d.ts +2 -1
- package/lib/platform/service/apis/getAttachmentInfoByPage.service.d.ts +3 -2
- package/lib/platform/service/apis/getCompInfoById.service.d.ts +2 -4
- package/lib/platform/service/apis/getCompInfoByPage.service.d.ts +3 -2
- package/lib/platform/service/apis/getCompInfoTypeById.service.d.ts +2 -4
- package/lib/platform/service/apis/getCompInfoTypeByPage.service.d.ts +3 -2
- package/lib/platform/service/apis/getContentToArray.service.d.ts +2 -4
- package/lib/platform/service/apis/getCsvDatasourceById.service.d.ts +2 -4
- package/lib/platform/service/apis/getCsvDatasourceByName.service.d.ts +2 -4
- package/lib/platform/service/apis/getCsvDatasourceByPage.service.d.ts +3 -2
- package/lib/platform/service/apis/getDesignerData.service.d.ts +2 -4
- package/lib/platform/service/apis/getEchartThemeById.service.d.ts +2 -4
- package/lib/platform/service/apis/getEchartThemeByPage.service.d.ts +3 -2
- package/lib/platform/service/apis/getEnshrineCompByPage.service.d.ts +3 -2
- package/lib/platform/service/apis/getEnshrineCompGroupById.service.d.ts +2 -4
- package/lib/platform/service/apis/getEnshrineCompGroupByPage.service.d.ts +3 -2
- package/lib/platform/service/apis/getFilterById.service.d.ts +2 -4
- package/lib/platform/service/apis/getGeoJsonByAdCode.service.d.ts +2 -4
- package/lib/platform/service/apis/getLayoutItemObjById.service.d.ts +2 -4
- package/lib/platform/service/apis/getLogLoginByPage.service.d.ts +3 -2
- package/lib/platform/service/apis/getMapBaseInfoByLevel.service.d.ts +2 -4
- package/lib/platform/service/apis/getMapGeoJsonById.service.d.ts +2 -4
- package/lib/platform/service/apis/getMapGeoJsonByPage.service.d.ts +3 -2
- package/lib/platform/service/apis/getMyAllPnResourceGroup.service.d.ts +2 -1
- package/lib/platform/service/apis/getMyEchartThemes.service.d.ts +2 -1
- package/lib/platform/service/apis/getMyPnResourceByPage.service.d.ts +3 -2
- package/lib/platform/service/apis/getMyShareCustomCompByPage.service.d.ts +3 -2
- package/lib/platform/service/apis/getPageSnapshootByEnabled.service.d.ts +2 -4
- package/lib/platform/service/apis/getPageSnapshootById.service.d.ts +2 -4
- package/lib/platform/service/apis/getPageSnapshootsByPageId.service.d.ts +2 -4
- package/lib/platform/service/apis/getPageTemplateById.service.d.ts +2 -4
- package/lib/platform/service/apis/getPageTemplateByPage.service.d.ts +3 -2
- package/lib/platform/service/apis/getPageTemplateForCreatePageForm.service.d.ts +3 -2
- package/lib/platform/service/apis/getPageTemplateLayout.service.d.ts +2 -4
- package/lib/platform/service/apis/getPageTemplateThemeJson.service.d.ts +2 -4
- package/lib/platform/service/apis/getPageTotalCount.service.d.ts +2 -1
- package/lib/platform/service/apis/getPnLogOperateByPage.service.d.ts +3 -2
- package/lib/platform/service/apis/getPnResourceGroupById.service.d.ts +2 -4
- package/lib/platform/service/apis/getProjectTotalCount.service.d.ts +2 -1
- package/lib/platform/service/apis/getShareCustomCompById.service.d.ts +2 -4
- package/lib/platform/service/apis/getShareCustomCompByPage.service.d.ts +3 -2
- package/lib/platform/service/apis/getSysEchartThemes.service.d.ts +2 -1
- package/lib/platform/service/apis/httpQuery.service.d.ts +3 -2
- package/lib/platform/service/apis/i18n-config.service.d.ts +8 -7
- package/lib/platform/service/apis/i18n-info.service.d.ts +20 -17
- package/lib/platform/service/apis/importCompInfoJson.service.d.ts +3 -2
- package/lib/platform/service/apis/importTemplate.service.d.ts +8 -7
- package/lib/platform/service/apis/internal-message.service.d.ts +18 -13
- package/lib/platform/service/apis/invoke-log.service.d.ts +7 -6
- package/lib/platform/service/apis/knowledge-base-chunk.service.d.ts +16 -15
- package/lib/platform/service/apis/knowledge-base-doc.service.d.ts +16 -15
- package/lib/platform/service/apis/knowledge-base.service.d.ts +16 -15
- package/lib/platform/service/apis/ldap.service.d.ts +2 -3
- package/lib/platform/service/apis/license-unbind-log.service.d.ts +3 -2
- package/lib/platform/service/apis/license.service.d.ts +29 -36
- package/lib/platform/service/apis/login-log.service.d.ts +3 -2
- package/lib/platform/service/apis/login.service.d.ts +11 -10
- package/lib/platform/service/apis/manager.service.d.ts +5 -4
- package/lib/platform/service/apis/message-setting.service.d.ts +24 -23
- package/lib/platform/service/apis/minio-file.service.d.ts +5 -4
- package/lib/platform/service/apis/model-provider.service.d.ts +16 -15
- package/lib/platform/service/apis/model.service.d.ts +15 -16
- package/lib/platform/service/apis/nav-menu.service.d.ts +25 -22
- package/lib/platform/service/apis/nav-page.service.d.ts +21 -18
- package/lib/platform/service/apis/openapi-group.service.d.ts +24 -23
- package/lib/platform/service/apis/openapi-key-grant.service.d.ts +19 -18
- package/lib/platform/service/apis/org-user-picker.service.d.ts +9 -8
- package/lib/platform/service/apis/org.service.d.ts +40 -40
- package/lib/platform/service/apis/parseCsvOrExcel.service.d.ts +2 -4
- package/lib/platform/service/apis/permission.service.d.ts +13 -14
- package/lib/platform/service/apis/plat.service.d.ts +50 -49
- package/lib/platform/service/apis/plugin-version.service.d.ts +16 -15
- package/lib/platform/service/apis/plugin.service.d.ts +25 -26
- package/lib/platform/service/apis/pm-process-delegate-detail.service.d.ts +16 -15
- package/lib/platform/service/apis/pm-process-delegate.service.d.ts +16 -15
- package/lib/platform/service/apis/pm-process-instance.service.d.ts +17 -18
- package/lib/platform/service/apis/pm-task-done.service.d.ts +16 -19
- package/lib/platform/service/apis/pm-task-todo.service.d.ts +16 -19
- package/lib/platform/service/apis/pn-page.service.d.ts +15 -16
- package/lib/platform/service/apis/pn-project.service.d.ts +29 -30
- package/lib/platform/service/apis/print-log.service.d.ts +9 -8
- package/lib/platform/service/apis/print-resource.service.d.ts +29 -26
- package/lib/platform/service/apis/regexp.service.d.ts +15 -16
- package/lib/platform/service/apis/released.service.d.ts +19 -10
- package/lib/platform/service/apis/resourceTransferToPage.service.d.ts +3 -2
- package/lib/platform/service/apis/role-permission.service.d.ts +13 -12
- package/lib/platform/service/apis/role.service.d.ts +32 -23
- package/lib/platform/service/apis/saveCompInfo.service.d.ts +3 -2
- package/lib/platform/service/apis/saveCompInfoType.service.d.ts +3 -2
- package/lib/platform/service/apis/saveCsvDatasource.service.d.ts +3 -2
- package/lib/platform/service/apis/saveEchartTheme.service.d.ts +3 -2
- package/lib/platform/service/apis/saveEnshrineComp.service.d.ts +3 -2
- package/lib/platform/service/apis/saveEnshrineCompGroup.service.d.ts +3 -2
- package/lib/platform/service/apis/saveFilter.service.d.ts +3 -2
- package/lib/platform/service/apis/saveMapGeoJson.service.d.ts +3 -2
- package/lib/platform/service/apis/savePageSnapshoot.service.d.ts +3 -2
- package/lib/platform/service/apis/savePageTemplate.service.d.ts +3 -2
- package/lib/platform/service/apis/savePnResourceGroup.service.d.ts +3 -2
- package/lib/platform/service/apis/saveShareCustomComp.service.d.ts +3 -2
- package/lib/platform/service/apis/seal-management.service.d.ts +20 -19
- package/lib/platform/service/apis/searchEnshrineComp.service.d.ts +3 -2
- package/lib/platform/service/apis/seat-message.service.d.ts +8 -1
- package/lib/platform/service/apis/seat.service.d.ts +15 -16
- package/lib/platform/service/apis/setPageSnapshootEnabled.service.d.ts +3 -2
- package/lib/platform/service/apis/setPageSnapshootEnabledByPageId.service.d.ts +3 -2
- package/lib/platform/service/apis/shortcut.service.d.ts +20 -17
- package/lib/platform/service/apis/sign-log.service.d.ts +17 -18
- package/lib/platform/service/apis/sms.service.d.ts +5 -4
- package/lib/platform/service/apis/started-process.service.d.ts +8 -9
- package/lib/platform/service/apis/task-delegate.service.d.ts +24 -19
- package/lib/platform/service/apis/task-done.service.d.ts +8 -9
- package/lib/platform/service/apis/task-todo.service.d.ts +8 -9
- package/lib/platform/service/apis/tenant-developer.service.d.ts +19 -20
- package/lib/platform/service/apis/tenant.service.d.ts +111 -76
- package/lib/platform/service/apis/toggleEnabled.service.d.ts +3 -2
- package/lib/platform/service/apis/uncompressLogOperateLayoutStr.service.d.ts +3 -2
- package/lib/platform/service/apis/uploadFiles.service.d.ts +13 -18
- package/lib/platform/service/apis/user-extra.service.d.ts +15 -16
- package/lib/platform/service/apis/user-info-log.service.d.ts +15 -16
- package/lib/platform/service/apis/user-password-history.service.d.ts +16 -15
- package/lib/platform/service/apis/user.service.d.ts +57 -62
- package/lib/platform/service/apis/workbench-component-relation.service.d.ts +26 -21
- package/lib/platform/service/apis/workbench-component.service.d.ts +16 -15
- package/lib/platform/service/entities.d.ts +98 -0
- package/lib/service/api-service.cjs +71 -48
- package/lib/service/http.error.cjs +46 -0
- package/lib/service/http.util.cjs +53 -38
- package/lib/service/index.cjs +9 -2
- package/package.json +12 -5
|
@@ -80,22 +80,24 @@ export interface ApiItem {
|
|
|
80
80
|
* @type {string}
|
|
81
81
|
*/
|
|
82
82
|
path: string;
|
|
83
|
+
/**
|
|
84
|
+
* 是否有路径参数
|
|
85
|
+
*
|
|
86
|
+
* @type {boolean}
|
|
87
|
+
*/
|
|
88
|
+
hasPathParams?: boolean;
|
|
83
89
|
/**
|
|
84
90
|
* 是否有查询参数
|
|
85
91
|
*
|
|
86
|
-
* @author chitanda
|
|
87
|
-
* @date 2025-08-21 19:08:35
|
|
88
92
|
* @type {boolean}
|
|
89
93
|
*/
|
|
90
|
-
hasQuery
|
|
94
|
+
hasQuery?: boolean;
|
|
91
95
|
/**
|
|
92
96
|
* 是否有请求体
|
|
93
97
|
*
|
|
94
|
-
* @author chitanda
|
|
95
|
-
* @date 2025-08-21 19:08:41
|
|
96
98
|
* @type {boolean}
|
|
97
99
|
*/
|
|
98
|
-
hasData
|
|
100
|
+
hasData?: boolean;
|
|
99
101
|
}
|
|
100
102
|
/**
|
|
101
103
|
* 接口配置项
|
|
@@ -17,21 +17,61 @@ export class ApiService {
|
|
|
17
17
|
const cfg = config.apis.find((item) => item.method === property);
|
|
18
18
|
if (cfg) {
|
|
19
19
|
const modeFn = `_${cfg.mode}`;
|
|
20
|
-
if (cfg.hasData && cfg.hasQuery) {
|
|
21
|
-
api[property] = (
|
|
22
|
-
return api[modeFn](cfg.path, query, data, config2);
|
|
20
|
+
if (cfg.hasPathParams && cfg.hasData && cfg.hasQuery) {
|
|
21
|
+
api[property] = (path2, query, data, config2) => {
|
|
22
|
+
return api[modeFn](cfg.path, path2, query, data, config2);
|
|
23
|
+
};
|
|
24
|
+
} else if (cfg.hasPathParams && cfg.hasData) {
|
|
25
|
+
api[property] = function(path2, data, config2) {
|
|
26
|
+
return api[modeFn](cfg.path, path2, void 0, data, config2);
|
|
27
|
+
};
|
|
28
|
+
} else if (cfg.hasPathParams && cfg.hasQuery) {
|
|
29
|
+
api[property] = function(path2, query, config2) {
|
|
30
|
+
return api[modeFn](cfg.path, path2, query, void 0, config2);
|
|
31
|
+
};
|
|
32
|
+
} else if (cfg.hasPathParams) {
|
|
33
|
+
api[property] = function(path2, config2) {
|
|
34
|
+
return api[modeFn](
|
|
35
|
+
cfg.path,
|
|
36
|
+
path2,
|
|
37
|
+
void 0,
|
|
38
|
+
void 0,
|
|
39
|
+
config2
|
|
40
|
+
);
|
|
41
|
+
};
|
|
42
|
+
} else if (cfg.hasData && cfg.hasQuery) {
|
|
43
|
+
api[property] = function(query, data, config2) {
|
|
44
|
+
return api[modeFn](cfg.path, void 0, query, data, config2);
|
|
23
45
|
};
|
|
24
46
|
} else if (cfg.hasData) {
|
|
25
47
|
api[property] = function(data, config2) {
|
|
26
|
-
return api[modeFn](
|
|
48
|
+
return api[modeFn](
|
|
49
|
+
cfg.path,
|
|
50
|
+
void 0,
|
|
51
|
+
void 0,
|
|
52
|
+
data,
|
|
53
|
+
config2
|
|
54
|
+
);
|
|
27
55
|
};
|
|
28
56
|
} else if (cfg.hasQuery) {
|
|
29
57
|
api[property] = function(query, config2) {
|
|
30
|
-
return api[modeFn](
|
|
58
|
+
return api[modeFn](
|
|
59
|
+
cfg.path,
|
|
60
|
+
void 0,
|
|
61
|
+
query,
|
|
62
|
+
void 0,
|
|
63
|
+
config2
|
|
64
|
+
);
|
|
31
65
|
};
|
|
32
66
|
} else {
|
|
33
67
|
api[property] = function(config2) {
|
|
34
|
-
return api[modeFn](
|
|
68
|
+
return api[modeFn](
|
|
69
|
+
cfg.path,
|
|
70
|
+
void 0,
|
|
71
|
+
void 0,
|
|
72
|
+
void 0,
|
|
73
|
+
config2
|
|
74
|
+
);
|
|
35
75
|
};
|
|
36
76
|
}
|
|
37
77
|
}
|
|
@@ -45,16 +85,18 @@ export class ApiService {
|
|
|
45
85
|
*
|
|
46
86
|
* @protected
|
|
47
87
|
* @param {string} method 请求方法路径
|
|
48
|
-
* @param {(
|
|
49
|
-
* @param {(
|
|
50
|
-
* @param {IParams}
|
|
51
|
-
* @
|
|
88
|
+
* @param {(IParams)} pathParams 路径参数
|
|
89
|
+
* @param {(IObject)} data 请求数据
|
|
90
|
+
* @param {(IParams)} query 查询参数
|
|
91
|
+
* @param {Partial<AxiosRequestConfig>} [config] 请求配置
|
|
92
|
+
* @returns {Promise<T>} 请求结果
|
|
52
93
|
*/
|
|
53
|
-
_put(method,
|
|
94
|
+
_put(method, pathParams, query, data, config) {
|
|
54
95
|
return HttpUtil.put(
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
96
|
+
path.join(this.url, method),
|
|
97
|
+
pathParams,
|
|
98
|
+
data,
|
|
99
|
+
query,
|
|
58
100
|
config
|
|
59
101
|
);
|
|
60
102
|
}
|
|
@@ -63,16 +105,18 @@ export class ApiService {
|
|
|
63
105
|
*
|
|
64
106
|
* @protected
|
|
65
107
|
* @param {string} method 请求方法路径
|
|
66
|
-
* @param {(
|
|
67
|
-
* @param {(
|
|
68
|
-
* @param {IParams}
|
|
69
|
-
* @
|
|
108
|
+
* @param {(IParams)} pathParams 路径参数
|
|
109
|
+
* @param {(IObject)} data 请求数据
|
|
110
|
+
* @param {(IParams)} query 查询参数
|
|
111
|
+
* @param {Partial<AxiosRequestConfig>} [config] 请求配置
|
|
112
|
+
* @returns {Promise<T>} 请求结果
|
|
70
113
|
*/
|
|
71
|
-
_get(method,
|
|
114
|
+
_get(method, pathParams, query, data, config) {
|
|
72
115
|
return HttpUtil.get(
|
|
73
116
|
path.join(this.url, method),
|
|
74
|
-
|
|
75
|
-
|
|
117
|
+
pathParams,
|
|
118
|
+
data,
|
|
119
|
+
query,
|
|
76
120
|
config
|
|
77
121
|
);
|
|
78
122
|
}
|
|
@@ -81,16 +125,18 @@ export class ApiService {
|
|
|
81
125
|
*
|
|
82
126
|
* @protected
|
|
83
127
|
* @param {string} method 请求方法路径
|
|
84
|
-
* @param {(
|
|
85
|
-
* @param {(
|
|
86
|
-
* @param {IParams}
|
|
87
|
-
* @
|
|
128
|
+
* @param {(IParams)} pathParams 路径参数
|
|
129
|
+
* @param {(IObject)} data 请求数据
|
|
130
|
+
* @param {(IParams)} query 查询参数
|
|
131
|
+
* @param {Partial<AxiosRequestConfig>} [config] 请求配置
|
|
132
|
+
* @returns {Promise<T>} 请求结果
|
|
88
133
|
*/
|
|
89
|
-
_delete(method,
|
|
134
|
+
_delete(method, pathParams, query, data, config) {
|
|
90
135
|
return HttpUtil.delete(
|
|
91
136
|
path.join(this.url, method),
|
|
92
|
-
|
|
93
|
-
|
|
137
|
+
pathParams,
|
|
138
|
+
data,
|
|
139
|
+
query,
|
|
94
140
|
config
|
|
95
141
|
);
|
|
96
142
|
}
|
|
@@ -99,16 +145,18 @@ export class ApiService {
|
|
|
99
145
|
*
|
|
100
146
|
* @protected
|
|
101
147
|
* @param {string} method 请求方法路径
|
|
102
|
-
* @param {(
|
|
103
|
-
* @param {(
|
|
104
|
-
* @param {IParams}
|
|
105
|
-
* @
|
|
148
|
+
* @param {(IParams)} pathParams 路径参数
|
|
149
|
+
* @param {(IObject)} data 请求数据
|
|
150
|
+
* @param {(IParams)} query 查询参数
|
|
151
|
+
* @param {Partial<AxiosRequestConfig>} [config] 请求配置
|
|
152
|
+
* @returns {Promise<T>} 请求结果
|
|
106
153
|
*/
|
|
107
|
-
_post(method,
|
|
154
|
+
_post(method, pathParams, query, data, config) {
|
|
108
155
|
return HttpUtil.post(
|
|
109
156
|
path.join(this.url, method),
|
|
110
|
-
|
|
111
|
-
|
|
157
|
+
pathParams,
|
|
158
|
+
data,
|
|
159
|
+
query,
|
|
112
160
|
config
|
|
113
161
|
);
|
|
114
162
|
}
|
|
@@ -117,16 +165,18 @@ export class ApiService {
|
|
|
117
165
|
*
|
|
118
166
|
* @protected
|
|
119
167
|
* @param {string} method 请求方法路径
|
|
120
|
-
* @param {(
|
|
121
|
-
* @param {(
|
|
122
|
-
* @param {IParams}
|
|
123
|
-
* @
|
|
168
|
+
* @param {(IParams)} pathParams 路径参数
|
|
169
|
+
* @param {(IObject)} data 请求数据
|
|
170
|
+
* @param {(IParams)} query 查询参数
|
|
171
|
+
* @param {Partial<AxiosRequestConfig>} [config] 请求配置
|
|
172
|
+
* @returns {Promise<T>} 请求结果
|
|
124
173
|
*/
|
|
125
|
-
_options(method,
|
|
174
|
+
_options(method, pathParams, query, data, config) {
|
|
126
175
|
return HttpUtil.options(
|
|
127
176
|
path.join(this.url, method),
|
|
128
|
-
|
|
129
|
-
|
|
177
|
+
pathParams,
|
|
178
|
+
data,
|
|
179
|
+
query,
|
|
130
180
|
config
|
|
131
181
|
);
|
|
132
182
|
}
|
|
@@ -135,16 +185,18 @@ export class ApiService {
|
|
|
135
185
|
*
|
|
136
186
|
* @protected
|
|
137
187
|
* @param {string} method 请求方法路径
|
|
138
|
-
* @param {(
|
|
139
|
-
* @param {(
|
|
140
|
-
* @param {IParams}
|
|
141
|
-
* @
|
|
188
|
+
* @param {(IParams)} pathParams 路径参数
|
|
189
|
+
* @param {(IObject)} data 请求数据
|
|
190
|
+
* @param {(IParams)} query 查询参数
|
|
191
|
+
* @param {Partial<AxiosRequestConfig>} [config] 请求配置
|
|
192
|
+
* @returns {Promise<T>} 请求结果
|
|
142
193
|
*/
|
|
143
|
-
_patch(method,
|
|
194
|
+
_patch(method, pathParams, query, data, config) {
|
|
144
195
|
return HttpUtil.patch(
|
|
145
196
|
path.join(this.url, method),
|
|
146
|
-
|
|
147
|
-
|
|
197
|
+
pathParams,
|
|
198
|
+
data,
|
|
199
|
+
query,
|
|
148
200
|
config
|
|
149
201
|
);
|
|
150
202
|
}
|
|
@@ -153,16 +205,18 @@ export class ApiService {
|
|
|
153
205
|
*
|
|
154
206
|
* @protected
|
|
155
207
|
* @param {string} method 请求方法路径
|
|
156
|
-
* @param {(
|
|
157
|
-
* @param {(
|
|
158
|
-
* @param {IParams}
|
|
159
|
-
* @
|
|
208
|
+
* @param {(IParams)} pathParams 路径参数
|
|
209
|
+
* @param {(IObject)} data 请求数据
|
|
210
|
+
* @param {(IParams)} query 查询参数
|
|
211
|
+
* @param {Partial<AxiosRequestConfig>} [config] 请求配置
|
|
212
|
+
* @returns {Promise<T>} 请求结果
|
|
160
213
|
*/
|
|
161
|
-
_head(method,
|
|
214
|
+
_head(method, pathParams, query, data, config) {
|
|
162
215
|
return HttpUtil.head(
|
|
163
216
|
path.join(this.url, method),
|
|
164
|
-
|
|
165
|
-
|
|
217
|
+
pathParams,
|
|
218
|
+
data,
|
|
219
|
+
query,
|
|
166
220
|
config
|
|
167
221
|
);
|
|
168
222
|
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HTTP 请求错误类
|
|
3
|
+
*
|
|
4
|
+
* @export
|
|
5
|
+
* @class HttpError
|
|
6
|
+
* @extends {Error}
|
|
7
|
+
* @template T
|
|
8
|
+
*/
|
|
9
|
+
export declare class BackendError<T = unknown> extends Error {
|
|
10
|
+
/**
|
|
11
|
+
* 错误代码
|
|
12
|
+
*
|
|
13
|
+
* @type {number}
|
|
14
|
+
*/
|
|
15
|
+
code: number;
|
|
16
|
+
/**
|
|
17
|
+
* 响应数据
|
|
18
|
+
*
|
|
19
|
+
* @type {T}
|
|
20
|
+
*/
|
|
21
|
+
data: T;
|
|
22
|
+
/**
|
|
23
|
+
* 子状态码
|
|
24
|
+
*
|
|
25
|
+
* @type {number}
|
|
26
|
+
*/
|
|
27
|
+
subCode?: number;
|
|
28
|
+
/**
|
|
29
|
+
* 子状态消息
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
*/
|
|
33
|
+
subMessage?: string;
|
|
34
|
+
/**
|
|
35
|
+
* 创建 BackendError 实例
|
|
36
|
+
*
|
|
37
|
+
* @param {IHttpResponse<T>} response HTTP 响应对象
|
|
38
|
+
*/
|
|
39
|
+
constructor(response: IHttpResponse<T>);
|
|
40
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export class BackendError extends Error {
|
|
2
|
+
/**
|
|
3
|
+
* 错误代码
|
|
4
|
+
*
|
|
5
|
+
* @type {number}
|
|
6
|
+
*/
|
|
7
|
+
code;
|
|
8
|
+
/**
|
|
9
|
+
* 响应数据
|
|
10
|
+
*
|
|
11
|
+
* @type {T}
|
|
12
|
+
*/
|
|
13
|
+
data;
|
|
14
|
+
/**
|
|
15
|
+
* 子状态码
|
|
16
|
+
*
|
|
17
|
+
* @type {number}
|
|
18
|
+
*/
|
|
19
|
+
subCode;
|
|
20
|
+
/**
|
|
21
|
+
* 子状态消息
|
|
22
|
+
*
|
|
23
|
+
* @type {string}
|
|
24
|
+
*/
|
|
25
|
+
subMessage;
|
|
26
|
+
/**
|
|
27
|
+
* 创建 BackendError 实例
|
|
28
|
+
*
|
|
29
|
+
* @param {IHttpResponse<T>} response HTTP 响应对象
|
|
30
|
+
*/
|
|
31
|
+
constructor(response) {
|
|
32
|
+
super(response.message);
|
|
33
|
+
this.name = "BackendError";
|
|
34
|
+
this.code = response.code;
|
|
35
|
+
this.data = response.data;
|
|
36
|
+
this.subCode = response.subCode;
|
|
37
|
+
this.subMessage = response.subMessage;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
2
|
-
import type { IHttpResponse } from './api-service.interface';
|
|
3
2
|
/**
|
|
4
3
|
* 全局请求工具类
|
|
5
4
|
*
|
|
@@ -20,94 +19,111 @@ export declare class HttpUtil {
|
|
|
20
19
|
* @static
|
|
21
20
|
* @template T
|
|
22
21
|
* @param {string} url 请求地址
|
|
22
|
+
* @param {IObject} [path={}] 路径参数
|
|
23
23
|
* @param {IObject} [data={}] 请求数据
|
|
24
24
|
* @param {IParams} [query={}] 查询参数
|
|
25
25
|
* @param {AxiosRequestConfig} [config={}] 请求配置
|
|
26
|
-
* @returns {Promise<
|
|
26
|
+
* @returns {Promise<T>} 请求结果
|
|
27
27
|
*/
|
|
28
|
-
static get<T = unknown>(url: string, data?: IObject, query?: IParams, config?: AxiosRequestConfig): Promise<
|
|
28
|
+
static get<T = unknown>(url: string, path?: IObject, data?: IObject, query?: IParams, config?: AxiosRequestConfig): Promise<T>;
|
|
29
29
|
/**
|
|
30
30
|
* POST 请求方法
|
|
31
31
|
*
|
|
32
32
|
* @static
|
|
33
33
|
* @template T
|
|
34
34
|
* @param {string} url 请求地址
|
|
35
|
+
* @param {IObject} [path={}] 路径参数
|
|
35
36
|
* @param {IObject} [data={}] 请求数据
|
|
36
37
|
* @param {IParams} [query={}] 查询参数
|
|
37
38
|
* @param {AxiosRequestConfig} [config={}] 请求配置
|
|
38
|
-
* @returns {Promise<
|
|
39
|
+
* @returns {Promise<T>} 请求结果
|
|
39
40
|
*/
|
|
40
|
-
static post<T = unknown>(url: string, data?: IObject, query?: IParams, config?: AxiosRequestConfig): Promise<
|
|
41
|
+
static post<T = unknown>(url: string, path?: IObject, data?: IObject, query?: IParams, config?: AxiosRequestConfig): Promise<T>;
|
|
41
42
|
/**
|
|
42
43
|
* PUT 请求方法
|
|
43
44
|
*
|
|
44
45
|
* @static
|
|
45
46
|
* @template T
|
|
46
47
|
* @param {string} url 请求地址
|
|
48
|
+
* @param {IObject} [path={}] 路径参数
|
|
47
49
|
* @param {IObject} [data={}] 请求数据
|
|
48
50
|
* @param {IParams} [query={}] 查询参数
|
|
49
51
|
* @param {AxiosRequestConfig} [config={}] 请求配置
|
|
50
|
-
* @returns {Promise<
|
|
52
|
+
* @returns {Promise<T>} 请求结果
|
|
51
53
|
*/
|
|
52
|
-
static put<T = unknown>(url: string, data?: IObject, query?: IParams, config?: AxiosRequestConfig): Promise<
|
|
54
|
+
static put<T = unknown>(url: string, path?: IObject, data?: IObject, query?: IParams, config?: AxiosRequestConfig): Promise<T>;
|
|
53
55
|
/**
|
|
54
56
|
* DELETE 请求方法
|
|
55
57
|
*
|
|
56
58
|
* @static
|
|
57
59
|
* @template T
|
|
58
60
|
* @param {string} url 请求地址
|
|
61
|
+
* @param {IObject} [path={}] 路径参数
|
|
59
62
|
* @param {IObject} [data={}] 请求数据
|
|
60
63
|
* @param {IParams} [query={}] 查询参数
|
|
61
64
|
* @param {AxiosRequestConfig} [config={}] 请求配置
|
|
62
|
-
* @returns {Promise<
|
|
65
|
+
* @returns {Promise<T>} 请求结果
|
|
63
66
|
*/
|
|
64
|
-
static delete<T = unknown>(url: string, data?: IObject, query?: IParams, config?: AxiosRequestConfig): Promise<
|
|
67
|
+
static delete<T = unknown>(url: string, path?: IObject, data?: IObject, query?: IParams, config?: AxiosRequestConfig): Promise<T>;
|
|
65
68
|
/**
|
|
66
69
|
* OPTIONS 请求方法
|
|
67
70
|
*
|
|
68
71
|
* @static
|
|
69
72
|
* @template T
|
|
70
73
|
* @param {string} url 请求地址
|
|
74
|
+
* @param {IObject} [path={}] 路径参数
|
|
71
75
|
* @param {IObject} [data={}] 请求数据
|
|
72
76
|
* @param {IParams} [query={}] 查询参数
|
|
73
77
|
* @param {AxiosRequestConfig} [config={}] 请求配置
|
|
74
|
-
* @returns {Promise<
|
|
78
|
+
* @returns {Promise<T>} 请求结果
|
|
75
79
|
*/
|
|
76
|
-
static options<T = unknown>(url: string, data?: IObject, query?: IParams, config?: AxiosRequestConfig): Promise<
|
|
80
|
+
static options<T = unknown>(url: string, path?: IObject, data?: IObject, query?: IParams, config?: AxiosRequestConfig): Promise<T>;
|
|
77
81
|
/**
|
|
78
82
|
* PATCH 请求方法
|
|
79
83
|
*
|
|
80
84
|
* @static
|
|
81
85
|
* @template T
|
|
82
86
|
* @param {string} url 请求地址
|
|
87
|
+
* @param {IObject} [path={}] 路径参数
|
|
83
88
|
* @param {IObject} [data={}] 请求数据
|
|
84
89
|
* @param {IParams} [query={}] 查询参数
|
|
85
90
|
* @param {AxiosRequestConfig} [config={}] 请求配置
|
|
86
|
-
* @returns {Promise<
|
|
91
|
+
* @returns {Promise<T>} 请求结果
|
|
87
92
|
*/
|
|
88
|
-
static patch<T = unknown>(url: string, data?: IObject, query?: IParams, config?: AxiosRequestConfig): Promise<
|
|
93
|
+
static patch<T = unknown>(url: string, path?: IObject, data?: IObject, query?: IParams, config?: AxiosRequestConfig): Promise<T>;
|
|
89
94
|
/**
|
|
90
95
|
* HEAD 请求方法
|
|
91
96
|
*
|
|
92
97
|
* @static
|
|
93
98
|
* @template T
|
|
94
99
|
* @param {string} url 请求地址
|
|
100
|
+
* @param {IObject} [path={}] 路径参数
|
|
95
101
|
* @param {IObject} [data={}] 请求数据
|
|
96
102
|
* @param {IParams} [query={}] 查询参数
|
|
97
103
|
* @param {AxiosRequestConfig} [config={}] 请求配置
|
|
98
|
-
* @returns {Promise<
|
|
104
|
+
* @returns {Promise<T>} 请求结果
|
|
99
105
|
*/
|
|
100
|
-
static head<T = unknown>(url: string, data?: IObject, query?: IParams, config?: AxiosRequestConfig): Promise<
|
|
106
|
+
static head<T = unknown>(url: string, path?: IObject, data?: IObject, query?: IParams, config?: AxiosRequestConfig): Promise<T>;
|
|
107
|
+
/**
|
|
108
|
+
* 转换 URL 中的路径参数
|
|
109
|
+
*
|
|
110
|
+
* @protected
|
|
111
|
+
* @param {string} url
|
|
112
|
+
* @param {IObject} path
|
|
113
|
+
* @return {*} {string}
|
|
114
|
+
*/
|
|
115
|
+
protected static transformUrl(url: string, path: IObject): string;
|
|
101
116
|
/**
|
|
102
117
|
* 通用请求方法
|
|
103
118
|
*
|
|
104
119
|
* @static
|
|
105
120
|
* @template T
|
|
106
121
|
* @param {string} url 请求地址
|
|
122
|
+
* @param {(IObject | null)} path 路径参数
|
|
107
123
|
* @param {(IObject | null)} data 请求数据
|
|
108
124
|
* @param {(IParams | null)} query 查询参数
|
|
109
125
|
* @param {AxiosRequestConfig} [config={}] 请求配置
|
|
110
|
-
* @returns {Promise<
|
|
126
|
+
* @returns {Promise<T>} 请求结果
|
|
111
127
|
*/
|
|
112
|
-
static request<T = unknown>(url: string, data: IObject | null, query: IParams | null, config?: AxiosRequestConfig): Promise<
|
|
128
|
+
static request<T = unknown>(url: string, path: IObject | null, data: IObject | null, query: IParams | null, config?: AxiosRequestConfig): Promise<T>;
|
|
113
129
|
}
|