@gct-paas/api 6.0.0-dev.0 → 6.0.0-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.
Files changed (43) hide show
  1. package/dist/index.esm.min.js +1 -1
  2. package/es/apaas/service/api-config.mjs +99 -123
  3. package/es/apaas/service/apis/ai.service.d.ts +129 -0
  4. package/es/apaas/service/apis/alex-test.service.d.ts +16 -0
  5. package/es/apaas/service/apis/api.service.d.ts +35 -0
  6. package/es/apaas/service/apis/app-global-settings.service.d.ts +8 -0
  7. package/es/apaas/service/apis/app-granted-user.service.d.ts +21 -0
  8. package/es/apaas/service/apis/category.service.d.ts +8 -0
  9. package/es/apaas/service/apis/dhr.service.d.ts +4 -0
  10. package/es/apaas/service/apis/edhr-instance.service.d.ts +16 -0
  11. package/es/apaas/service/apis/field-meta.service.d.ts +8 -0
  12. package/es/apaas/service/apis/online-form-instance.service.d.ts +16 -45
  13. package/es/apaas/service/apis/online-form.service.d.ts +18 -0
  14. package/es/apaas/service/apis/page-designer-log.service.d.ts +1 -1
  15. package/es/apaas/service/entities.d.ts +1215 -131
  16. package/es/apaas/service/index.d.ts +4 -4
  17. package/es/ipaas/service/api-config.mjs +381 -0
  18. package/es/ipaas/service/apis/app.service.d.ts +26 -0
  19. package/es/ipaas/service/apis/bff.service.d.ts +15 -0
  20. package/es/ipaas/service/apis/categories.service.d.ts +9 -0
  21. package/es/ipaas/service/apis/category.service.d.ts +33 -1
  22. package/es/ipaas/service/apis/file.service.d.ts +17 -0
  23. package/es/ipaas/service/apis/flow.service.d.ts +234 -1
  24. package/es/ipaas/service/apis/knowledge.service.d.ts +196 -0
  25. package/es/ipaas/service/apis/variable-def.service.d.ts +87 -0
  26. package/es/ipaas/service/apis/variable-inst.service.d.ts +63 -0
  27. package/es/ipaas/service/entities.d.ts +1386 -37
  28. package/es/ipaas/service/index.d.ts +14 -0
  29. package/es/platform/service/api-config.mjs +96 -4
  30. package/es/platform/service/apis/api.service.d.ts +94 -1
  31. package/es/platform/service/apis/app.service.d.ts +30 -0
  32. package/es/platform/service/apis/license.service.d.ts +10 -1
  33. package/es/platform/service/apis/print-log.service.d.ts +4 -0
  34. package/es/platform/service/apis/third-party-app.service.d.ts +110 -0
  35. package/es/platform/service/entities.d.ts +393 -1
  36. package/es/platform/service/index.d.ts +2 -0
  37. package/es/service/api-service.interface.d.ts +9 -0
  38. package/es/service/http.error.mjs +3 -0
  39. package/es/service/index.mjs +2 -0
  40. package/package.json +5 -5
  41. package/es/apaas/service/apis/med-pro.service.d.ts +0 -76
  42. package/es/apaas/service/apis/medPro.service.d.ts +0 -184
  43. package/es/apaas/service/apis/ss.service.d.ts +0 -42
@@ -1,23 +1,37 @@
1
+ import type { AppService } from './apis/app.service';
1
2
  import type { AuthService } from './apis/auth.service';
3
+ import type { BffService } from './apis/bff.service';
2
4
  import type { CamelService } from './apis/camel.service';
5
+ import type { CategoriesService } from './apis/categories.service';
3
6
  import type { CategoryService } from './apis/category.service';
4
7
  import type { ConnectorConfigService } from './apis/connector-config.service';
5
8
  import type { ConnectorLogService } from './apis/connector-log.service';
9
+ import type { FileService } from './apis/file.service';
6
10
  import type { FlowAppService } from './apis/flow-app.service';
7
11
  import type { FlowCategoryService } from './apis/flow-category.service';
8
12
  import type { FlowExtService } from './apis/flow-ext.service';
9
13
  import type { FlowService } from './apis/flow.service';
14
+ import type { KnowledgeService } from './apis/knowledge.service';
10
15
  import type { RuntimeService } from './apis/runtime.service';
16
+ import type { VariableDefService } from './apis/variable-def.service';
17
+ import type { VariableInstService } from './apis/variable-inst.service';
11
18
 
12
19
  export interface ApiManage {
20
+ readonly app: AppService;
13
21
  readonly auth: AuthService;
22
+ readonly bff: BffService;
14
23
  readonly camel: CamelService;
24
+ readonly categories: CategoriesService;
15
25
  readonly category: CategoryService;
16
26
  readonly connectorConfig: ConnectorConfigService;
17
27
  readonly connectorLog: ConnectorLogService;
28
+ readonly file: FileService;
18
29
  readonly flowApp: FlowAppService;
19
30
  readonly flowCategory: FlowCategoryService;
20
31
  readonly flowExt: FlowExtService;
21
32
  readonly flow: FlowService;
33
+ readonly knowledge: KnowledgeService;
22
34
  readonly runtime: RuntimeService;
35
+ readonly variableDef: VariableDefService;
36
+ readonly variableInst: VariableInstService;
23
37
  }
@@ -143,13 +143,15 @@ export const apiConfig = [
143
143
  mode: "put",
144
144
  method: "putDisableId",
145
145
  path: "disable/{id}",
146
- hasPathParams: true
146
+ hasPathParams: true,
147
+ hasQuery: true
147
148
  },
148
149
  {
149
150
  mode: "put",
150
151
  method: "putEnableId",
151
152
  path: "enable/{id}",
152
- hasPathParams: true
153
+ hasPathParams: true,
154
+ hasQuery: true
153
155
  },
154
156
  {
155
157
  mode: "get",
@@ -2023,7 +2025,8 @@ export const apiConfig = [
2023
2025
  {
2024
2026
  mode: "get",
2025
2027
  method: "getModuleAuth",
2026
- path: "moduleAuth"
2028
+ path: "moduleAuth",
2029
+ hasQuery: true
2027
2030
  },
2028
2031
  {
2029
2032
  mode: "get",
@@ -4270,6 +4273,65 @@ export const apiConfig = [
4270
4273
  }
4271
4274
  ]
4272
4275
  },
4276
+ {
4277
+ name: "thirdPartyApp",
4278
+ entityName: "third-party-app",
4279
+ apis: [
4280
+ {
4281
+ mode: "post",
4282
+ method: "post",
4283
+ path: "",
4284
+ hasData: true
4285
+ },
4286
+ {
4287
+ mode: "get",
4288
+ method: "getList",
4289
+ path: "list",
4290
+ hasQuery: true
4291
+ },
4292
+ {
4293
+ mode: "get",
4294
+ method: "getSecretGenerate",
4295
+ path: "secret/generate"
4296
+ },
4297
+ {
4298
+ mode: "put",
4299
+ method: "putUpdate",
4300
+ path: "update",
4301
+ hasData: true
4302
+ },
4303
+ {
4304
+ mode: "get",
4305
+ method: "getAppId",
4306
+ path: "{appId}",
4307
+ hasPathParams: true
4308
+ },
4309
+ {
4310
+ mode: "delete",
4311
+ method: "deleteAppId",
4312
+ path: "{appId}",
4313
+ hasPathParams: true
4314
+ },
4315
+ {
4316
+ mode: "put",
4317
+ method: "putAppIdDisable",
4318
+ path: "{appId}/disable",
4319
+ hasPathParams: true
4320
+ },
4321
+ {
4322
+ mode: "put",
4323
+ method: "putAppIdEnable",
4324
+ path: "{appId}/enable",
4325
+ hasPathParams: true
4326
+ },
4327
+ {
4328
+ mode: "post",
4329
+ method: "postAppIdSecretRegenerate",
4330
+ path: "{appId}/secret/regenerate",
4331
+ hasPathParams: true
4332
+ }
4333
+ ]
4334
+ },
4273
4335
  {
4274
4336
  name: "user",
4275
4337
  entityName: "user",
@@ -5267,6 +5329,12 @@ export const apiConfig = [
5267
5329
  hasQuery: true,
5268
5330
  hasData: true
5269
5331
  },
5332
+ {
5333
+ mode: "post",
5334
+ method: "postAppGrantedUserBatchRemoveAndTransfer",
5335
+ path: "app-granted-user/batchRemoveAndTransfer",
5336
+ hasQuery: true
5337
+ },
5270
5338
  {
5271
5339
  mode: "get",
5272
5340
  method: "getAppGrantedUserFindAllByDeleted",
@@ -5628,7 +5696,8 @@ export const apiConfig = [
5628
5696
  {
5629
5697
  mode: "get",
5630
5698
  method: "getLicenseModuleAuth",
5631
- path: "license/moduleAuth"
5699
+ path: "license/moduleAuth",
5700
+ hasQuery: true
5632
5701
  },
5633
5702
  {
5634
5703
  mode: "post",
@@ -5677,6 +5746,23 @@ export const apiConfig = [
5677
5746
  path: "msg/sendMessage",
5678
5747
  hasData: true
5679
5748
  },
5749
+ {
5750
+ mode: "get",
5751
+ method: "getOauth2Authorize",
5752
+ path: "oauth2/authorize",
5753
+ hasQuery: true
5754
+ },
5755
+ {
5756
+ mode: "post",
5757
+ method: "postOauth2Token",
5758
+ path: "oauth2/token",
5759
+ hasQuery: true
5760
+ },
5761
+ {
5762
+ mode: "get",
5763
+ method: "getOauth2Userinfo",
5764
+ path: "oauth2/userinfo"
5765
+ },
5680
5766
  {
5681
5767
  mode: "post",
5682
5768
  method: "postOpenapiGroup",
@@ -5823,6 +5909,12 @@ export const apiConfig = [
5823
5909
  method: "postPrintExchangePrinterName4Btw",
5824
5910
  path: "print/exchangePrinterName4Btw"
5825
5911
  },
5912
+ {
5913
+ mode: "get",
5914
+ method: "getPrintInfo",
5915
+ path: "print/info",
5916
+ hasQuery: true
5917
+ },
5826
5918
  {
5827
5919
  mode: "post",
5828
5920
  method: "postPrintSendPrintData",
@@ -48,6 +48,8 @@ import type {
48
48
  消息设置VO,
49
49
  SendEmailMessageRequest,
50
50
  SendMessageRequest,
51
+ TokenResponse,
52
+ OAuth2用户信息响应,
51
53
  OpenapiGroupRequest,
52
54
  PickerOrgDTO,
53
55
  AppOrgUserPageRequest,
@@ -208,6 +210,16 @@ export interface postAppGrantedUserBatchQuery extends IObject {
208
210
  */
209
211
  env: string;
210
212
  }
213
+ export interface postAppGrantedUserBatchRemoveAndTransferQuery extends IObject {
214
+ /**
215
+ * appId
216
+ */
217
+ appId: string;
218
+ /**
219
+ * env
220
+ */
221
+ env: string;
222
+ }
211
223
  export interface getAppGrantedUserFindAllByDeletedQuery extends IObject {
212
224
  /**
213
225
  * appId
@@ -534,6 +546,12 @@ export interface getLicenseGetAppEffectiveLicenseQuery extends IObject {
534
546
  */
535
547
  env: string;
536
548
  }
549
+ export interface getLicenseModuleAuthQuery extends IObject {
550
+ /**
551
+ * 授权模块
552
+ */
553
+ module?: string;
554
+ }
537
555
  export interface getLoginSettingGetQuery extends IObject {
538
556
  /**
539
557
  * code
@@ -562,6 +580,38 @@ export interface getMsgFindAllByTypeQuery extends IObject {
562
580
  */
563
581
  type: string;
564
582
  }
583
+ export interface getOauth2AuthorizeQuery extends IObject {
584
+ /**
585
+ * 应用ID
586
+ */
587
+ appId: string;
588
+ /**
589
+ * 环境参数:test/prod
590
+ */
591
+ env?: string;
592
+ }
593
+ export interface postOauth2TokenQuery extends IObject {
594
+ /**
595
+ * 客户端ID
596
+ */
597
+ clientId: string;
598
+ /**
599
+ * 客户端密钥
600
+ */
601
+ clientSecret: string;
602
+ /**
603
+ * 授权码
604
+ */
605
+ code: string;
606
+ /**
607
+ * 授权类型
608
+ */
609
+ grantType: string;
610
+ /**
611
+ * 回调地址
612
+ */
613
+ redirectUri: string;
614
+ }
565
615
  export interface putOpenapiGroupEnabledQuery extends IObject {
566
616
  /**
567
617
  * 应用标识
@@ -679,6 +729,12 @@ export interface getPrintExchangePrinterNameQuery extends IObject {
679
729
  */
680
730
  printKeys: string[];
681
731
  }
732
+ export interface getPrintInfoQuery extends IObject {
733
+ /**
734
+ * printKey
735
+ */
736
+ printKey: string;
737
+ }
682
738
  export interface deleteRegexpDeleteQuery extends IObject {
683
739
  /**
684
740
  * 删除的id,多个按','分割
@@ -899,6 +955,13 @@ export interface ApiService {
899
955
  data: AppGrantedUserBatchRequest,
900
956
  config?: Partial<AxiosRequestConfig>,
901
957
  ): Promise<string>;
958
+ /**
959
+ * 批量席位移除和转移
960
+ */
961
+ postAppGrantedUserBatchRemoveAndTransfer(
962
+ query: postAppGrantedUserBatchRemoveAndTransferQuery,
963
+ config?: Partial<AxiosRequestConfig>,
964
+ ): Promise<string>;
902
965
  /**
903
966
  * 查询应用下人员席位:由deleted控制是否查询处被移出席位的人员
904
967
  */
@@ -1304,7 +1367,10 @@ export interface ApiService {
1304
1367
  /**
1305
1368
  * 判断对应模块是否已进行授权
1306
1369
  */
1307
- getLicenseModuleAuth(config?: Partial<AxiosRequestConfig>): Promise<boolean>;
1370
+ getLicenseModuleAuth(
1371
+ query: getLicenseModuleAuthQuery,
1372
+ config?: Partial<AxiosRequestConfig>,
1373
+ ): Promise<boolean>;
1308
1374
  /**
1309
1375
  * 用户登录日志分页查询
1310
1376
  */
@@ -1358,6 +1424,26 @@ export interface ApiService {
1358
1424
  data: SendMessageRequest,
1359
1425
  config?: Partial<AxiosRequestConfig>,
1360
1426
  ): Promise<boolean>;
1427
+ /**
1428
+ * OAuth2授权端点
1429
+ */
1430
+ getOauth2Authorize(
1431
+ query: getOauth2AuthorizeQuery,
1432
+ config?: Partial<AxiosRequestConfig>,
1433
+ ): Promise<any>;
1434
+ /**
1435
+ * OAuth2 Token端点-用授权码兑换access_token
1436
+ */
1437
+ postOauth2Token(
1438
+ query: postOauth2TokenQuery,
1439
+ config?: Partial<AxiosRequestConfig>,
1440
+ ): Promise<TokenResponse>;
1441
+ /**
1442
+ * OAuth2用户信息端点-通过access_token获取授权用户信息
1443
+ */
1444
+ getOauth2Userinfo(
1445
+ config?: Partial<AxiosRequestConfig>,
1446
+ ): Promise<OAuth2用户信息响应>;
1361
1447
  /**
1362
1448
  * 保存
1363
1449
  */
@@ -1525,6 +1611,13 @@ export interface ApiService {
1525
1611
  postPrintExchangePrinterName4Btw(
1526
1612
  config?: Partial<AxiosRequestConfig>,
1527
1613
  ): Promise<PrintResourceMapping[]>;
1614
+ /**
1615
+ * 根据打印机唯一标识key兑换打印机信息
1616
+ */
1617
+ getPrintInfo(
1618
+ query: getPrintInfoQuery,
1619
+ config?: Partial<AxiosRequestConfig>,
1620
+ ): Promise<PrintResourceMapping>;
1528
1621
  /**
1529
1622
  * 执行打印
1530
1623
  */
@@ -24,6 +24,10 @@ export interface deleteQuery extends IObject {
24
24
  * 删除的id,多个按','分割
25
25
  */
26
26
  ids: string;
27
+ /**
28
+ * type
29
+ */
30
+ type?: string;
27
31
  }
28
32
  export interface putAppCleanUpIdPathParams {
29
33
  id: string;
@@ -38,9 +42,21 @@ export interface getCheckAppMaintainerInTenantAppIdPathParams {
38
42
  export interface postCreateBranchAppIdPathParams {
39
43
  appId: string;
40
44
  }
45
+ export interface putDisableIdQuery extends IObject {
46
+ /**
47
+ * type
48
+ */
49
+ type?: string;
50
+ }
41
51
  export interface putDisableIdPathParams {
42
52
  id: string;
43
53
  }
54
+ export interface putEnableIdQuery extends IObject {
55
+ /**
56
+ * type
57
+ */
58
+ type?: string;
59
+ }
44
60
  export interface putEnableIdPathParams {
45
61
  id: string;
46
62
  }
@@ -203,6 +219,10 @@ export interface getModelMetaListQuery extends IObject {
203
219
  *
204
220
  */
205
221
  modifyUserName?: string;
222
+ /**
223
+ * 所属模块(实体、枚举、web页面 、view_model_module/视图模型模块 、data_model/数据模型模块、document_module/单据)
224
+ */
225
+ module?: string;
206
226
  /**
207
227
  *
208
228
  */
@@ -403,6 +423,14 @@ export interface getTenantAppsQuery extends IObject {
403
423
  * deleted
404
424
  */
405
425
  deleted: number;
426
+ /**
427
+ * id
428
+ */
429
+ id?: string;
430
+ /**
431
+ * name
432
+ */
433
+ name?: string;
406
434
  /**
407
435
  * pageNo
408
436
  */
@@ -507,6 +535,7 @@ export interface AppService {
507
535
  */
508
536
  putDisableId(
509
537
  path: putDisableIdPathParams,
538
+ query: putDisableIdQuery,
510
539
  config?: Partial<AxiosRequestConfig>,
511
540
  ): Promise<string>;
512
541
  /**
@@ -514,6 +543,7 @@ export interface AppService {
514
543
  */
515
544
  putEnableId(
516
545
  path: putEnableIdPathParams,
546
+ query: putEnableIdQuery,
517
547
  config?: Partial<AxiosRequestConfig>,
518
548
  ): Promise<string>;
519
549
  /**
@@ -98,6 +98,12 @@ export interface getInfoQuery extends IObject {
98
98
  */
99
99
  licenseId: string;
100
100
  }
101
+ export interface getModuleAuthQuery extends IObject {
102
+ /**
103
+ * 授权模块
104
+ */
105
+ moduleType?: string;
106
+ }
101
107
  export interface getPageListQuery extends IObject {
102
108
  /**
103
109
  * 应用id
@@ -218,7 +224,10 @@ export interface LicenseService {
218
224
  /**
219
225
  * 判断对应模块是否已进行授权
220
226
  */
221
- getModuleAuth(config?: Partial<AxiosRequestConfig>): Promise<boolean>;
227
+ getModuleAuth(
228
+ query: getModuleAuthQuery,
229
+ config?: Partial<AxiosRequestConfig>,
230
+ ): Promise<boolean>;
222
231
  /**
223
232
  * 平台/应用,授权列表
224
233
  */
@@ -74,6 +74,10 @@ export interface getPageListQuery extends IObject {
74
74
  * 开始时间
75
75
  */
76
76
  startTime?: string;
77
+ /**
78
+ * 标签名称
79
+ */
80
+ tagName?: string;
77
81
  }
78
82
  export interface PrintLogService {
79
83
  /**
@@ -0,0 +1,110 @@
1
+ import type { AxiosRequestConfig } from 'axios';
2
+ import type {
3
+ ThirdPartyAppRequest,
4
+ ThirdPartyAppResp,
5
+ ThirdPartyAppListResponse,
6
+ } from '../entities';
7
+
8
+ export interface getListQuery extends IObject {
9
+ /**
10
+ * 应用标识(模糊查询)
11
+ */
12
+ appId?: string;
13
+ /**
14
+ * 应用名称(模糊查询)
15
+ */
16
+ appName?: string;
17
+ /**
18
+ * 页码
19
+ */
20
+ pageNo?: number;
21
+ /**
22
+ * 分页大小
23
+ */
24
+ pageSize?: number;
25
+ /**
26
+ * 排序字段
27
+ */
28
+ sortField?: string;
29
+ /**
30
+ * 排序方式:ASC/DESC, 不传默认 ASC
31
+ */
32
+ sortType?: string;
33
+ }
34
+ export interface getAppIdPathParams {
35
+ appId: string;
36
+ }
37
+ export interface deleteAppIdPathParams {
38
+ appId: string;
39
+ }
40
+ export interface putAppIdDisablePathParams {
41
+ appId: string;
42
+ }
43
+ export interface putAppIdEnablePathParams {
44
+ appId: string;
45
+ }
46
+ export interface postAppIdSecretRegeneratePathParams {
47
+ appId: string;
48
+ }
49
+ export interface ThirdPartyAppService {
50
+ /**
51
+ * 创建第三方应用配置
52
+ */
53
+ post(
54
+ data: ThirdPartyAppRequest,
55
+ config?: Partial<AxiosRequestConfig>,
56
+ ): Promise<ThirdPartyAppResp>;
57
+ /**
58
+ * 获取第三方应用列表
59
+ */
60
+ getList(
61
+ query: getListQuery,
62
+ config?: Partial<AxiosRequestConfig>,
63
+ ): Promise<IPage<ThirdPartyAppListResponse>>;
64
+ /**
65
+ * 生成客户端密钥
66
+ */
67
+ getSecretGenerate(config?: Partial<AxiosRequestConfig>): Promise<string>;
68
+ /**
69
+ * 更新第三方应用配置
70
+ */
71
+ putUpdate(
72
+ data: ThirdPartyAppRequest,
73
+ config?: Partial<AxiosRequestConfig>,
74
+ ): Promise<ThirdPartyAppResp>;
75
+ /**
76
+ * 查询第三方应用配置
77
+ */
78
+ getAppId(
79
+ path: getAppIdPathParams,
80
+ config?: Partial<AxiosRequestConfig>,
81
+ ): Promise<ThirdPartyAppResp>;
82
+ /**
83
+ * 删除第三方应用配置
84
+ */
85
+ deleteAppId(
86
+ path: deleteAppIdPathParams,
87
+ config?: Partial<AxiosRequestConfig>,
88
+ ): Promise<string>;
89
+ /**
90
+ * 禁用第三方应用配置
91
+ */
92
+ putAppIdDisable(
93
+ path: putAppIdDisablePathParams,
94
+ config?: Partial<AxiosRequestConfig>,
95
+ ): Promise<string>;
96
+ /**
97
+ * 启用第三方应用配置
98
+ */
99
+ putAppIdEnable(
100
+ path: putAppIdEnablePathParams,
101
+ config?: Partial<AxiosRequestConfig>,
102
+ ): Promise<string>;
103
+ /**
104
+ * 重新生成客户端密钥
105
+ */
106
+ postAppIdSecretRegenerate(
107
+ path: postAppIdSecretRegeneratePathParams,
108
+ config?: Partial<AxiosRequestConfig>,
109
+ ): Promise<ThirdPartyAppResp>;
110
+ }