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

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.
@@ -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;
@@ -4270,6 +4270,59 @@ export const apiConfig = [
4270
4270
  }
4271
4271
  ]
4272
4272
  },
4273
+ {
4274
+ name: "thirdPartyApp",
4275
+ entityName: "third-party-app",
4276
+ apis: [
4277
+ {
4278
+ mode: "post",
4279
+ method: "post",
4280
+ path: "",
4281
+ hasData: true
4282
+ },
4283
+ {
4284
+ mode: "get",
4285
+ method: "getSecretGenerate",
4286
+ path: "secret/generate"
4287
+ },
4288
+ {
4289
+ mode: "put",
4290
+ method: "putUpdate",
4291
+ path: "update",
4292
+ hasData: true
4293
+ },
4294
+ {
4295
+ mode: "get",
4296
+ method: "getAppId",
4297
+ path: "{appId}",
4298
+ hasPathParams: true
4299
+ },
4300
+ {
4301
+ mode: "delete",
4302
+ method: "deleteAppId",
4303
+ path: "{appId}",
4304
+ hasPathParams: true
4305
+ },
4306
+ {
4307
+ mode: "put",
4308
+ method: "putAppIdDisable",
4309
+ path: "{appId}/disable",
4310
+ hasPathParams: true
4311
+ },
4312
+ {
4313
+ mode: "put",
4314
+ method: "putAppIdEnable",
4315
+ path: "{appId}/enable",
4316
+ hasPathParams: true
4317
+ },
4318
+ {
4319
+ mode: "post",
4320
+ method: "postAppIdSecretRegenerate",
4321
+ path: "{appId}/secret/regenerate",
4322
+ hasPathParams: true
4323
+ }
4324
+ ]
4325
+ },
4273
4326
  {
4274
4327
  name: "user",
4275
4328
  entityName: "user",
@@ -5267,6 +5320,12 @@ export const apiConfig = [
5267
5320
  hasQuery: true,
5268
5321
  hasData: true
5269
5322
  },
5323
+ {
5324
+ mode: "post",
5325
+ method: "postAppGrantedUserBatchRemoveAndTransfer",
5326
+ path: "app-granted-user/batchRemoveAndTransfer",
5327
+ hasQuery: true
5328
+ },
5270
5329
  {
5271
5330
  mode: "get",
5272
5331
  method: "getAppGrantedUserFindAllByDeleted",
@@ -5677,6 +5736,23 @@ export const apiConfig = [
5677
5736
  path: "msg/sendMessage",
5678
5737
  hasData: true
5679
5738
  },
5739
+ {
5740
+ mode: "get",
5741
+ method: "getOauth2Authorize",
5742
+ path: "oauth2/authorize",
5743
+ hasQuery: true
5744
+ },
5745
+ {
5746
+ mode: "post",
5747
+ method: "postOauth2Token",
5748
+ path: "oauth2/token",
5749
+ hasQuery: true
5750
+ },
5751
+ {
5752
+ mode: "get",
5753
+ method: "getOauth2Userinfo",
5754
+ path: "oauth2/userinfo"
5755
+ },
5680
5756
  {
5681
5757
  mode: "post",
5682
5758
  method: "postOpenapiGroup",
@@ -5823,6 +5899,12 @@ export const apiConfig = [
5823
5899
  method: "postPrintExchangePrinterName4Btw",
5824
5900
  path: "print/exchangePrinterName4Btw"
5825
5901
  },
5902
+ {
5903
+ mode: "get",
5904
+ method: "getPrintInfo",
5905
+ path: "print/info",
5906
+ hasQuery: true
5907
+ },
5826
5908
  {
5827
5909
  mode: "post",
5828
5910
  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
@@ -562,6 +574,38 @@ export interface getMsgFindAllByTypeQuery extends IObject {
562
574
  */
563
575
  type: string;
564
576
  }
577
+ export interface getOauth2AuthorizeQuery extends IObject {
578
+ /**
579
+ * 应用ID
580
+ */
581
+ appId: string;
582
+ /**
583
+ * 环境参数:test/prod
584
+ */
585
+ env?: string;
586
+ }
587
+ export interface postOauth2TokenQuery extends IObject {
588
+ /**
589
+ * 客户端ID
590
+ */
591
+ clientId: string;
592
+ /**
593
+ * 客户端密钥
594
+ */
595
+ clientSecret: string;
596
+ /**
597
+ * 授权码
598
+ */
599
+ code: string;
600
+ /**
601
+ * 授权类型
602
+ */
603
+ grantType: string;
604
+ /**
605
+ * 回调地址
606
+ */
607
+ redirectUri: string;
608
+ }
565
609
  export interface putOpenapiGroupEnabledQuery extends IObject {
566
610
  /**
567
611
  * 应用标识
@@ -679,6 +723,12 @@ export interface getPrintExchangePrinterNameQuery extends IObject {
679
723
  */
680
724
  printKeys: string[];
681
725
  }
726
+ export interface getPrintInfoQuery extends IObject {
727
+ /**
728
+ * printKey
729
+ */
730
+ printKey: string;
731
+ }
682
732
  export interface deleteRegexpDeleteQuery extends IObject {
683
733
  /**
684
734
  * 删除的id,多个按','分割
@@ -899,6 +949,13 @@ export interface ApiService {
899
949
  data: AppGrantedUserBatchRequest,
900
950
  config?: Partial<AxiosRequestConfig>,
901
951
  ): Promise<string>;
952
+ /**
953
+ * 批量席位移除和转移
954
+ */
955
+ postAppGrantedUserBatchRemoveAndTransfer(
956
+ query: postAppGrantedUserBatchRemoveAndTransferQuery,
957
+ config?: Partial<AxiosRequestConfig>,
958
+ ): Promise<string>;
902
959
  /**
903
960
  * 查询应用下人员席位:由deleted控制是否查询处被移出席位的人员
904
961
  */
@@ -1358,6 +1415,26 @@ export interface ApiService {
1358
1415
  data: SendMessageRequest,
1359
1416
  config?: Partial<AxiosRequestConfig>,
1360
1417
  ): Promise<boolean>;
1418
+ /**
1419
+ * OAuth2授权端点
1420
+ */
1421
+ getOauth2Authorize(
1422
+ query: getOauth2AuthorizeQuery,
1423
+ config?: Partial<AxiosRequestConfig>,
1424
+ ): Promise<any>;
1425
+ /**
1426
+ * OAuth2 Token端点-用授权码兑换access_token
1427
+ */
1428
+ postOauth2Token(
1429
+ query: postOauth2TokenQuery,
1430
+ config?: Partial<AxiosRequestConfig>,
1431
+ ): Promise<TokenResponse>;
1432
+ /**
1433
+ * OAuth2用户信息端点-通过access_token获取授权用户信息
1434
+ */
1435
+ getOauth2Userinfo(
1436
+ config?: Partial<AxiosRequestConfig>,
1437
+ ): Promise<OAuth2用户信息响应>;
1361
1438
  /**
1362
1439
  * 保存
1363
1440
  */
@@ -1525,6 +1602,13 @@ export interface ApiService {
1525
1602
  postPrintExchangePrinterName4Btw(
1526
1603
  config?: Partial<AxiosRequestConfig>,
1527
1604
  ): Promise<PrintResourceMapping[]>;
1605
+ /**
1606
+ * 根据打印机唯一标识key兑换打印机信息
1607
+ */
1608
+ getPrintInfo(
1609
+ query: getPrintInfoQuery,
1610
+ config?: Partial<AxiosRequestConfig>,
1611
+ ): Promise<PrintResourceMapping>;
1528
1612
  /**
1529
1613
  * 执行打印
1530
1614
  */
@@ -32,6 +32,10 @@ export interface getPageListQuery extends IObject {
32
32
  * 每页数据条数
33
33
  */
34
34
  pageSize?: number;
35
+ /**
36
+ * 仪表盘来源
37
+ */
38
+ source?: number;
35
39
  }
36
40
  export interface putIdPathParams {
37
41
  id: string;
@@ -81,6 +81,10 @@ export interface getUserPageListQuery extends IObject {
81
81
  * 排序方式:ASC/DESC, 不传默认 ASC
82
82
  */
83
83
  sortType?: string;
84
+ /**
85
+ * 参数来源,0企业后台管理、1租户后台管理
86
+ */
87
+ source?: number;
84
88
  /**
85
89
  * 创建开始时间
86
90
  */
@@ -131,6 +131,10 @@ export interface getManagementOrgUserPageListQuery extends IObject {
131
131
  * 排序方式:ASC/DESC, 不传默认 ASC
132
132
  */
133
133
  sortType?: string;
134
+ /**
135
+ * 参数来源,0企业后台管理、1租户后台管理
136
+ */
137
+ source?: number;
134
138
  /**
135
139
  * 创建开始时间
136
140
  */
@@ -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
+ }