@gct-paas/api 6.0.0-dev.2 → 6.0.0-dev.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) 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 +31 -4
  6. package/es/apaas/service/apis/app-global-settings.service.d.ts +4 -0
  7. package/es/apaas/service/apis/app-granted-user.service.d.ts +21 -0
  8. package/es/apaas/service/apis/app-org.service.d.ts +4 -0
  9. package/es/apaas/service/apis/category.service.d.ts +0 -8
  10. package/es/apaas/service/apis/dhr.service.d.ts +4 -0
  11. package/es/apaas/service/apis/edhr-instance.service.d.ts +16 -0
  12. package/es/apaas/service/apis/field-meta.service.d.ts +8 -0
  13. package/es/apaas/service/apis/online-form-instance.service.d.ts +8 -45
  14. package/es/apaas/service/apis/online-form.service.d.ts +18 -0
  15. package/es/apaas/service/apis/page-designer-log.service.d.ts +1 -1
  16. package/es/apaas/service/entities.d.ts +1292 -274
  17. package/es/apaas/service/index.d.ts +4 -4
  18. package/es/platform/service/api-config.mjs +90 -4
  19. package/es/platform/service/apis/api.service.d.ts +98 -1
  20. package/es/platform/service/apis/app.service.d.ts +26 -4
  21. package/es/platform/service/apis/license.service.d.ts +10 -1
  22. package/es/platform/service/apis/third-party-app.service.d.ts +73 -0
  23. package/es/platform/service/entities.d.ts +361 -1
  24. package/es/platform/service/index.d.ts +2 -0
  25. package/package.json +5 -5
  26. package/es/apaas/service/apis/med-pro.service.d.ts +0 -76
  27. package/es/apaas/service/apis/medPro.service.d.ts +0 -184
  28. package/es/apaas/service/apis/ss.service.d.ts +0 -42
@@ -1,4 +1,5 @@
1
- import type { MedProService } from './apis/medPro.service';
1
+ import type { AiService } from './apis/ai.service';
2
+ import type { AlexTestService } from './apis/alex-test.service';
2
3
  import type { AppBranchService } from './apis/app-branch.service';
3
4
  import type { AppGlobalSettingsService } from './apis/app-global-settings.service';
4
5
  import type { AppGrantedUserService } from './apis/app-granted-user.service';
@@ -150,7 +151,6 @@ import type { SignLogService } from './apis/sign-log.service';
150
151
  import type { SignatureService } from './apis/signature.service';
151
152
  import type { SqlViewModelService } from './apis/sql-view-model.service';
152
153
  import type { SqlViewService } from './apis/sql-view.service';
153
- import type { SsService } from './apis/ss.service';
154
154
  import type { StashService } from './apis/stash.service';
155
155
  import type { SubModelProcessService } from './apis/sub-model-process.service';
156
156
  import type { SysConfigService } from './apis/sys-config.service';
@@ -170,7 +170,8 @@ import type { WebpageService } from './apis/webpage.service';
170
170
  import type { ApiService } from './apis/api.service';
171
171
 
172
172
  export interface ApiManage {
173
- readonly medPro: MedProService;
173
+ readonly ai: AiService;
174
+ readonly alexTest: AlexTestService;
174
175
  readonly appBranch: AppBranchService;
175
176
  readonly appGlobalSettings: AppGlobalSettingsService;
176
177
  readonly appGrantedUser: AppGrantedUserService;
@@ -322,7 +323,6 @@ export interface ApiManage {
322
323
  readonly signature: SignatureService;
323
324
  readonly sqlViewModel: SqlViewModelService;
324
325
  readonly sqlView: SqlViewService;
325
- readonly ss: SsService;
326
326
  readonly stash: StashService;
327
327
  readonly subModelProcess: SubModelProcessService;
328
328
  readonly sysConfig: SysConfigService;
@@ -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,59 @@ 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: "getSecretGenerate",
4289
+ path: "secret/generate"
4290
+ },
4291
+ {
4292
+ mode: "put",
4293
+ method: "putUpdate",
4294
+ path: "update",
4295
+ hasData: true
4296
+ },
4297
+ {
4298
+ mode: "get",
4299
+ method: "getAppId",
4300
+ path: "{appId}",
4301
+ hasPathParams: true
4302
+ },
4303
+ {
4304
+ mode: "delete",
4305
+ method: "deleteAppId",
4306
+ path: "{appId}",
4307
+ hasPathParams: true
4308
+ },
4309
+ {
4310
+ mode: "put",
4311
+ method: "putAppIdDisable",
4312
+ path: "{appId}/disable",
4313
+ hasPathParams: true
4314
+ },
4315
+ {
4316
+ mode: "put",
4317
+ method: "putAppIdEnable",
4318
+ path: "{appId}/enable",
4319
+ hasPathParams: true
4320
+ },
4321
+ {
4322
+ mode: "post",
4323
+ method: "postAppIdSecretRegenerate",
4324
+ path: "{appId}/secret/regenerate",
4325
+ hasPathParams: true
4326
+ }
4327
+ ]
4328
+ },
4273
4329
  {
4274
4330
  name: "user",
4275
4331
  entityName: "user",
@@ -5267,6 +5323,12 @@ export const apiConfig = [
5267
5323
  hasQuery: true,
5268
5324
  hasData: true
5269
5325
  },
5326
+ {
5327
+ mode: "post",
5328
+ method: "postAppGrantedUserBatchRemoveAndTransfer",
5329
+ path: "app-granted-user/batchRemoveAndTransfer",
5330
+ hasQuery: true
5331
+ },
5270
5332
  {
5271
5333
  mode: "get",
5272
5334
  method: "getAppGrantedUserFindAllByDeleted",
@@ -5628,7 +5690,8 @@ export const apiConfig = [
5628
5690
  {
5629
5691
  mode: "get",
5630
5692
  method: "getLicenseModuleAuth",
5631
- path: "license/moduleAuth"
5693
+ path: "license/moduleAuth",
5694
+ hasQuery: true
5632
5695
  },
5633
5696
  {
5634
5697
  mode: "post",
@@ -5677,6 +5740,23 @@ export const apiConfig = [
5677
5740
  path: "msg/sendMessage",
5678
5741
  hasData: true
5679
5742
  },
5743
+ {
5744
+ mode: "get",
5745
+ method: "getOauth2Authorize",
5746
+ path: "oauth2/authorize",
5747
+ hasQuery: true
5748
+ },
5749
+ {
5750
+ mode: "post",
5751
+ method: "postOauth2Token",
5752
+ path: "oauth2/token",
5753
+ hasQuery: true
5754
+ },
5755
+ {
5756
+ mode: "get",
5757
+ method: "getOauth2Userinfo",
5758
+ path: "oauth2/userinfo"
5759
+ },
5680
5760
  {
5681
5761
  mode: "post",
5682
5762
  method: "postOpenapiGroup",
@@ -5823,6 +5903,12 @@ export const apiConfig = [
5823
5903
  method: "postPrintExchangePrinterName4Btw",
5824
5904
  path: "print/exchangePrinterName4Btw"
5825
5905
  },
5906
+ {
5907
+ mode: "get",
5908
+ method: "getPrintInfo",
5909
+ path: "print/info",
5910
+ hasQuery: true
5911
+ },
5826
5912
  {
5827
5913
  mode: "post",
5828
5914
  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,42 @@ 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
+ * 用户登录Token
594
+ */
595
+ token: string;
596
+ }
597
+ export interface postOauth2TokenQuery extends IObject {
598
+ /**
599
+ * 客户端ID
600
+ */
601
+ clientId: string;
602
+ /**
603
+ * 客户端密钥
604
+ */
605
+ clientSecret: string;
606
+ /**
607
+ * 授权码
608
+ */
609
+ code: string;
610
+ /**
611
+ * 授权类型
612
+ */
613
+ grantType: string;
614
+ /**
615
+ * 回调地址
616
+ */
617
+ redirectUri: string;
618
+ }
565
619
  export interface putOpenapiGroupEnabledQuery extends IObject {
566
620
  /**
567
621
  * 应用标识
@@ -679,6 +733,12 @@ export interface getPrintExchangePrinterNameQuery extends IObject {
679
733
  */
680
734
  printKeys: string[];
681
735
  }
736
+ export interface getPrintInfoQuery extends IObject {
737
+ /**
738
+ * printKey
739
+ */
740
+ printKey: string;
741
+ }
682
742
  export interface deleteRegexpDeleteQuery extends IObject {
683
743
  /**
684
744
  * 删除的id,多个按','分割
@@ -899,6 +959,13 @@ export interface ApiService {
899
959
  data: AppGrantedUserBatchRequest,
900
960
  config?: Partial<AxiosRequestConfig>,
901
961
  ): Promise<string>;
962
+ /**
963
+ * 批量席位移除和转移
964
+ */
965
+ postAppGrantedUserBatchRemoveAndTransfer(
966
+ query: postAppGrantedUserBatchRemoveAndTransferQuery,
967
+ config?: Partial<AxiosRequestConfig>,
968
+ ): Promise<string>;
902
969
  /**
903
970
  * 查询应用下人员席位:由deleted控制是否查询处被移出席位的人员
904
971
  */
@@ -1304,7 +1371,10 @@ export interface ApiService {
1304
1371
  /**
1305
1372
  * 判断对应模块是否已进行授权
1306
1373
  */
1307
- getLicenseModuleAuth(config?: Partial<AxiosRequestConfig>): Promise<boolean>;
1374
+ getLicenseModuleAuth(
1375
+ query: getLicenseModuleAuthQuery,
1376
+ config?: Partial<AxiosRequestConfig>,
1377
+ ): Promise<boolean>;
1308
1378
  /**
1309
1379
  * 用户登录日志分页查询
1310
1380
  */
@@ -1358,6 +1428,26 @@ export interface ApiService {
1358
1428
  data: SendMessageRequest,
1359
1429
  config?: Partial<AxiosRequestConfig>,
1360
1430
  ): Promise<boolean>;
1431
+ /**
1432
+ * OAuth2授权端点
1433
+ */
1434
+ getOauth2Authorize(
1435
+ query: getOauth2AuthorizeQuery,
1436
+ config?: Partial<AxiosRequestConfig>,
1437
+ ): Promise<any>;
1438
+ /**
1439
+ * OAuth2 Token端点-用授权码兑换access_token
1440
+ */
1441
+ postOauth2Token(
1442
+ query: postOauth2TokenQuery,
1443
+ config?: Partial<AxiosRequestConfig>,
1444
+ ): Promise<TokenResponse>;
1445
+ /**
1446
+ * OAuth2用户信息端点-通过access_token获取授权用户信息
1447
+ */
1448
+ getOauth2Userinfo(
1449
+ config?: Partial<AxiosRequestConfig>,
1450
+ ): Promise<OAuth2用户信息响应>;
1361
1451
  /**
1362
1452
  * 保存
1363
1453
  */
@@ -1525,6 +1615,13 @@ export interface ApiService {
1525
1615
  postPrintExchangePrinterName4Btw(
1526
1616
  config?: Partial<AxiosRequestConfig>,
1527
1617
  ): Promise<PrintResourceMapping[]>;
1618
+ /**
1619
+ * 根据打印机唯一标识key兑换打印机信息
1620
+ */
1621
+ getPrintInfo(
1622
+ query: getPrintInfoQuery,
1623
+ config?: Partial<AxiosRequestConfig>,
1624
+ ): Promise<PrintResourceMapping>;
1528
1625
  /**
1529
1626
  * 执行打印
1530
1627
  */
@@ -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,10 +219,6 @@ export interface getModelMetaListQuery extends IObject {
203
219
  *
204
220
  */
205
221
  modifyUserName?: string;
206
- /**
207
- * 所属模块(实体、枚举、web页面 、view_model_module/视图模型模块 、data_model/数据模型模块、document_module/单据)
208
- */
209
- module?: string;
210
222
  /**
211
223
  *
212
224
  */
@@ -407,6 +419,14 @@ export interface getTenantAppsQuery extends IObject {
407
419
  * deleted
408
420
  */
409
421
  deleted: number;
422
+ /**
423
+ * id
424
+ */
425
+ id?: string;
426
+ /**
427
+ * name
428
+ */
429
+ name?: string;
410
430
  /**
411
431
  * pageNo
412
432
  */
@@ -511,6 +531,7 @@ export interface AppService {
511
531
  */
512
532
  putDisableId(
513
533
  path: putDisableIdPathParams,
534
+ query: putDisableIdQuery,
514
535
  config?: Partial<AxiosRequestConfig>,
515
536
  ): Promise<string>;
516
537
  /**
@@ -518,6 +539,7 @@ export interface AppService {
518
539
  */
519
540
  putEnableId(
520
541
  path: putEnableIdPathParams,
542
+ query: putEnableIdQuery,
521
543
  config?: Partial<AxiosRequestConfig>,
522
544
  ): Promise<string>;
523
545
  /**
@@ -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
+ module?: 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
  */
@@ -0,0 +1,73 @@
1
+ import type { AxiosRequestConfig } from 'axios';
2
+ import type { ThirdPartyAppRequest, ThirdPartyAppResp } from '../entities';
3
+
4
+ export interface getAppIdPathParams {
5
+ appId: string;
6
+ }
7
+ export interface deleteAppIdPathParams {
8
+ appId: string;
9
+ }
10
+ export interface putAppIdDisablePathParams {
11
+ appId: string;
12
+ }
13
+ export interface putAppIdEnablePathParams {
14
+ appId: string;
15
+ }
16
+ export interface postAppIdSecretRegeneratePathParams {
17
+ appId: string;
18
+ }
19
+ export interface ThirdPartyAppService {
20
+ /**
21
+ * 创建第三方应用配置
22
+ */
23
+ post(
24
+ data: ThirdPartyAppRequest,
25
+ config?: Partial<AxiosRequestConfig>,
26
+ ): Promise<ThirdPartyAppResp>;
27
+ /**
28
+ * 生成客户端密钥
29
+ */
30
+ getSecretGenerate(config?: Partial<AxiosRequestConfig>): Promise<string>;
31
+ /**
32
+ * 更新第三方应用配置
33
+ */
34
+ putUpdate(
35
+ data: ThirdPartyAppRequest,
36
+ config?: Partial<AxiosRequestConfig>,
37
+ ): Promise<ThirdPartyAppResp>;
38
+ /**
39
+ * 查询第三方应用配置
40
+ */
41
+ getAppId(
42
+ path: getAppIdPathParams,
43
+ config?: Partial<AxiosRequestConfig>,
44
+ ): Promise<ThirdPartyAppResp>;
45
+ /**
46
+ * 删除第三方应用配置
47
+ */
48
+ deleteAppId(
49
+ path: deleteAppIdPathParams,
50
+ config?: Partial<AxiosRequestConfig>,
51
+ ): Promise<string>;
52
+ /**
53
+ * 禁用第三方应用配置
54
+ */
55
+ putAppIdDisable(
56
+ path: putAppIdDisablePathParams,
57
+ config?: Partial<AxiosRequestConfig>,
58
+ ): Promise<string>;
59
+ /**
60
+ * 启用第三方应用配置
61
+ */
62
+ putAppIdEnable(
63
+ path: putAppIdEnablePathParams,
64
+ config?: Partial<AxiosRequestConfig>,
65
+ ): Promise<string>;
66
+ /**
67
+ * 重新生成客户端密钥
68
+ */
69
+ postAppIdSecretRegenerate(
70
+ path: postAppIdSecretRegeneratePathParams,
71
+ config?: Partial<AxiosRequestConfig>,
72
+ ): Promise<ThirdPartyAppResp>;
73
+ }