@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.
@@ -766,6 +766,12 @@ export interface App {
766
766
  * @type number
767
767
  */
768
768
  clear?: number;
769
+ /**
770
+ *
771
+ *
772
+ * @type string
773
+ */
774
+ clientSecret?: string;
769
775
  /**
770
776
  *
771
777
  *
@@ -874,12 +880,30 @@ export interface App {
874
880
  * @type string
875
881
  */
876
882
  name?: string;
883
+ /**
884
+ *
885
+ *
886
+ * @type string
887
+ */
888
+ oauth2Scope?: string;
877
889
  /**
878
890
  *
879
891
  *
880
892
  * @type string
881
893
  */
882
894
  pageIcon?: string;
895
+ /**
896
+ *
897
+ *
898
+ * @type boolean
899
+ */
900
+ pubProd?: boolean;
901
+ /**
902
+ *
903
+ *
904
+ * @type string
905
+ */
906
+ redirectUri?: string;
883
907
  /**
884
908
  *
885
909
  *
@@ -940,6 +964,12 @@ export interface App {
940
964
  * @type string
941
965
  */
942
966
  tenantId?: string;
967
+ /**
968
+ *
969
+ *
970
+ * @type string
971
+ */
972
+ testRedirectUri?: string;
943
973
  /**
944
974
  *
945
975
  *
@@ -1161,6 +1191,20 @@ export interface AppGrantedStatisticDTO {
1161
1191
  */
1162
1192
  used?: number;
1163
1193
  }
1194
+ export interface AppGrantedUserBatchRemoveDetailRequest {
1195
+ /**
1196
+ * 源用户id
1197
+ *
1198
+ * @type string
1199
+ */
1200
+ sourceUserId?: string;
1201
+ /**
1202
+ * 目标用户id
1203
+ *
1204
+ * @type string
1205
+ */
1206
+ targetUserId?: string;
1207
+ }
1164
1208
  export interface AppGrantedUserBatchRequest {
1165
1209
  /**
1166
1210
  * 用户id
@@ -2002,6 +2046,12 @@ export interface AppRequest {
2002
2046
  * @type string
2003
2047
  */
2004
2048
  appVersion?: string;
2049
+ /**
2050
+ * 客户端密钥(不传则自动生成)
2051
+ *
2052
+ * @type string
2053
+ */
2054
+ clientSecret?: string;
2005
2055
  /**
2006
2056
  * 应用描述
2007
2057
  *
@@ -2062,12 +2112,24 @@ export interface AppRequest {
2062
2112
  * @type string
2063
2113
  */
2064
2114
  name?: string;
2115
+ /**
2116
+ * 授权范围: basic(用户基本信息)/all(带组织信息的用户信息),默认basic
2117
+ *
2118
+ * @type string
2119
+ */
2120
+ oauth2Scope?: string;
2065
2121
  /**
2066
2122
  * 浏览器icon
2067
2123
  *
2068
2124
  * @type string
2069
2125
  */
2070
2126
  pageIcon?: string;
2127
+ /**
2128
+ * 生产环境回调域名(第三方应用必填)
2129
+ *
2130
+ * @type string
2131
+ */
2132
+ redirectUri?: string;
2071
2133
  /**
2072
2134
  * 应用来源类型:SELF_BUILT/IMPORT
2073
2135
  *
@@ -2092,6 +2154,12 @@ export interface AppRequest {
2092
2154
  * @type string
2093
2155
  */
2094
2156
  tenantId?: string;
2157
+ /**
2158
+ * 验证环境回调域名
2159
+ *
2160
+ * @type string
2161
+ */
2162
+ testRedirectUri?: string;
2095
2163
  /**
2096
2164
  * 应用类型
2097
2165
  *
@@ -2124,6 +2192,12 @@ export interface AppResponse {
2124
2192
  * @type number
2125
2193
  */
2126
2194
  authState?: number;
2195
+ /**
2196
+ * 客户端密钥(第三方应用OAuth2配置)
2197
+ *
2198
+ * @type string
2199
+ */
2200
+ clientSecret?: string;
2127
2201
  /**
2128
2202
  *
2129
2203
  *
@@ -2238,6 +2312,12 @@ export interface AppResponse {
2238
2312
  * @type string
2239
2313
  */
2240
2314
  name?: string;
2315
+ /**
2316
+ * OAuth2授权范围: basic/all
2317
+ *
2318
+ * @type string
2319
+ */
2320
+ oauth2Scope?: string;
2241
2321
  /**
2242
2322
  * 浏览器icon
2243
2323
  *
@@ -2250,6 +2330,12 @@ export interface AppResponse {
2250
2330
  * @type boolean
2251
2331
  */
2252
2332
  pubProd?: boolean;
2333
+ /**
2334
+ * 生产环境回调域名(第三方应用OAuth2配置)
2335
+ *
2336
+ * @type string
2337
+ */
2338
+ redirectUri?: string;
2253
2339
  /**
2254
2340
  *
2255
2341
  *
@@ -2322,6 +2408,18 @@ export interface AppResponse {
2322
2408
  * @type string
2323
2409
  */
2324
2410
  tenantId?: string;
2411
+ /**
2412
+ * 验证环境回调域名(第三方应用OAuth2配置)
2413
+ *
2414
+ * @type string
2415
+ */
2416
+ testRedirectUri?: string;
2417
+ /**
2418
+ * 第三方应用配置是否启用(0 禁用 1 启用)
2419
+ *
2420
+ * @type number
2421
+ */
2422
+ thirdPartyEnabled?: number;
2325
2423
  /**
2326
2424
  * 应用类型
2327
2425
  *
@@ -5608,6 +5706,12 @@ export interface DatasourceMoveDetailRequest {
5608
5706
  * @type string
5609
5707
  */
5610
5708
  name?: string;
5709
+ /**
5710
+ *
5711
+ *
5712
+ * @type IObject
5713
+ */
5714
+ query?: IObject;
5611
5715
  /**
5612
5716
  * 源env
5613
5717
  *
@@ -8889,11 +8993,17 @@ export interface ManagerBean {
8889
8993
  }
8890
8994
  export interface MergeConflictDTO {
8891
8995
  /**
8892
- * 最终选择: SOURCE/TARGET
8996
+ * 最终选择: SOURCE/TARGET/MERGED
8893
8997
  *
8894
8998
  * @type string
8895
8999
  */
8896
9000
  choice?: string;
9001
+ /**
9002
+ * 合并内容json
9003
+ *
9004
+ * @type string
9005
+ */
9006
+ mergeResult?: string;
8897
9007
  /**
8898
9008
  * 主键值
8899
9009
  *
@@ -10126,6 +10236,68 @@ export interface NavPageResponse {
10126
10236
  */
10127
10237
  tenantId?: string;
10128
10238
  }
10239
+ export interface OAuth2用户信息响应 {
10240
+ /**
10241
+ * 应用管理员列表(scope=all 时返回)
10242
+ *
10243
+ * @type 管理员信息[]
10244
+ */
10245
+ admins?: 管理员信息[];
10246
+ /**
10247
+ * 头像
10248
+ *
10249
+ * @type string
10250
+ */
10251
+ avatar?: string;
10252
+ /**
10253
+ * 邮箱
10254
+ *
10255
+ * @type string
10256
+ */
10257
+ email?: string;
10258
+ /**
10259
+ * 姓名
10260
+ *
10261
+ * @type string
10262
+ */
10263
+ fullname?: string;
10264
+ /**
10265
+ * 手机号
10266
+ *
10267
+ * @type string
10268
+ */
10269
+ mobile?: string;
10270
+ /**
10271
+ * 授权范围: basic / all
10272
+ *
10273
+ * @type string
10274
+ */
10275
+ scope?: string;
10276
+ /**
10277
+ * 租户ID
10278
+ *
10279
+ * @type string
10280
+ */
10281
+ tenantId?: string;
10282
+ /**
10283
+ * 租户列表(scope=all 时返回)
10284
+ *
10285
+ * @type UserTenantDTO[]
10286
+ */
10287
+ tenantList?: UserTenantDTO[];
10288
+ /**
10289
+ * 用户ID
10290
+ *
10291
+ * @type string
10292
+ */
10293
+ userId?: string;
10294
+ /**
10295
+ * 用户名
10296
+ *
10297
+ * @type string
10298
+ */
10299
+ username?: string;
10300
+ }
10129
10301
  export interface OpenapiAggregateByModelTreeResponse {
10130
10302
  /**
10131
10303
  * 模型key
@@ -15223,6 +15395,12 @@ export interface PrintAdapterDTO {
15223
15395
  * @type string
15224
15396
  */
15225
15397
  env?: string;
15398
+ /**
15399
+ * 打印控制参数
15400
+ *
15401
+ * @type IObject
15402
+ */
15403
+ param?: IObject;
15226
15404
  /**
15227
15405
  * 触发打印的应用id
15228
15406
  *
@@ -15317,6 +15495,12 @@ export interface PrintLogDto {
15317
15495
  * @type string
15318
15496
  */
15319
15497
  macAddress?: string;
15498
+ /**
15499
+ *
15500
+ *
15501
+ * @type IObject
15502
+ */
15503
+ param?: IObject;
15320
15504
  /**
15321
15505
  *
15322
15506
  *
@@ -15543,6 +15727,12 @@ export interface PrintLogResponse {
15543
15727
  * @type string
15544
15728
  */
15545
15729
  modifyUserName?: string;
15730
+ /**
15731
+ * 打印控制参数
15732
+ *
15733
+ * @type IObject
15734
+ */
15735
+ param?: IObject;
15546
15736
  /**
15547
15737
  * 触发打印的应用id
15548
15738
  *
@@ -15759,6 +15949,12 @@ export interface PrintResourceMapping {
15759
15949
  * @type string
15760
15950
  */
15761
15951
  printName?: string;
15952
+ /**
15953
+ *
15954
+ *
15955
+ * @type number
15956
+ */
15957
+ status?: number;
15762
15958
  }
15763
15959
  export interface PrintResourceRemarkRequest {
15764
15960
  /**
@@ -17403,6 +17599,18 @@ export interface SelectItem {
17403
17599
  * @type boolean
17404
17600
  */
17405
17601
  includeNull?: boolean;
17602
+ /**
17603
+ * 交叉表-自定义排序
17604
+ *
17605
+ * @type string[]
17606
+ */
17607
+ orderValues?: string[];
17608
+ /**
17609
+ * 交叉表-字段排序规则
17610
+ *
17611
+ * @type string
17612
+ */
17613
+ sortType?: string;
17406
17614
  /**
17407
17615
  * 数据类型
17408
17616
  *
@@ -19196,6 +19404,82 @@ export interface ThirdAppConfigReq {
19196
19404
  */
19197
19405
  secret?: string;
19198
19406
  }
19407
+ export interface ThirdPartyAppRequest {
19408
+ /**
19409
+ * 应用ID(必填)
19410
+ *
19411
+ * @type string
19412
+ */
19413
+ appId?: string;
19414
+ /**
19415
+ * 客户端密钥(不传则自动生成)
19416
+ *
19417
+ * @type string
19418
+ */
19419
+ clientSecret?: string;
19420
+ /**
19421
+ * 生产环境回调域名
19422
+ *
19423
+ * @type string
19424
+ */
19425
+ redirectUri?: string;
19426
+ /**
19427
+ * 授权范围: basic(用户基本信息)/all(带组织部门得用户信息)
19428
+ *
19429
+ * @type string
19430
+ */
19431
+ scope?: string;
19432
+ /**
19433
+ * 验证环境回调域名
19434
+ *
19435
+ * @type string
19436
+ */
19437
+ testRedirectUri?: string;
19438
+ }
19439
+ export interface ThirdPartyAppResp {
19440
+ /**
19441
+ * 应用ID
19442
+ *
19443
+ * @type string
19444
+ */
19445
+ appId?: string;
19446
+ /**
19447
+ * 客户端ID(即appId)
19448
+ *
19449
+ * @type string
19450
+ */
19451
+ clientId?: string;
19452
+ /**
19453
+ * 客户端密钥(脱敏)
19454
+ *
19455
+ * @type string
19456
+ */
19457
+ clientSecret?: string;
19458
+ /**
19459
+ * 是否启用
19460
+ *
19461
+ * @type boolean
19462
+ */
19463
+ enabled?: boolean;
19464
+ /**
19465
+ * 生产环境回调域名
19466
+ *
19467
+ * @type string
19468
+ */
19469
+ redirectUri?: string;
19470
+ /**
19471
+ * 授权范围
19472
+ *
19473
+ * @type string
19474
+ */
19475
+ scope?: string;
19476
+ /**
19477
+ * 验证环境回调域名
19478
+ *
19479
+ * @type string
19480
+ */
19481
+ testRedirectUri?: string;
19482
+ }
19199
19483
  export interface ThirdPartyInvokeLogResponse {
19200
19484
  /**
19201
19485
  * 所属应用key
@@ -19460,6 +19744,20 @@ export interface ThirdPartyLoginConfig {
19460
19744
  */
19461
19745
  secret?: string;
19462
19746
  }
19747
+ export interface TokenResponse {
19748
+ /**
19749
+ *
19750
+ *
19751
+ * @type string
19752
+ */
19753
+ accessToken?: string;
19754
+ /**
19755
+ *
19756
+ *
19757
+ * @type string
19758
+ */
19759
+ scope?: string;
19760
+ }
19463
19761
  export interface User {
19464
19762
  /**
19465
19763
  *
@@ -23332,6 +23630,44 @@ export interface 登录日志查询参数 {
23332
23630
  */
23333
23631
  username?: string;
23334
23632
  }
23633
+ export interface 管理员信息 {
23634
+ /**
23635
+ * 头像
23636
+ *
23637
+ * @type string
23638
+ */
23639
+ avatar?: string;
23640
+ /**
23641
+ * 邮箱
23642
+ *
23643
+ * @type string
23644
+ */
23645
+ email?: string;
23646
+ /**
23647
+ * 管理员姓名
23648
+ *
23649
+ * @type string
23650
+ */
23651
+ fullname?: string;
23652
+ /**
23653
+ * 手机号
23654
+ *
23655
+ * @type string
23656
+ */
23657
+ mobile?: string;
23658
+ /**
23659
+ * 管理员用户ID
23660
+ *
23661
+ * @type string
23662
+ */
23663
+ userId?: string;
23664
+ /**
23665
+ * 管理员用户名
23666
+ *
23667
+ * @type string
23668
+ */
23669
+ username?: string;
23670
+ }
23335
23671
  export interface 组件信息查询参数 {
23336
23672
  /**
23337
23673
  *
@@ -80,6 +80,7 @@ import type { TaskDoneService } from './apis/task-done.service';
80
80
  import type { TaskTodoService } from './apis/task-todo.service';
81
81
  import type { TenantDeveloperService } from './apis/tenant-developer.service';
82
82
  import type { TenantService } from './apis/tenant.service';
83
+ import type { ThirdPartyAppService } from './apis/third-party-app.service';
83
84
  import type { UserService } from './apis/user.service';
84
85
  import type { UserExtraService } from './apis/user-extra.service';
85
86
  import type { UserInfoLogService } from './apis/user-info-log.service';
@@ -265,6 +266,7 @@ export interface ApiManage {
265
266
  readonly taskTodo: TaskTodoService;
266
267
  readonly tenantDeveloper: TenantDeveloperService;
267
268
  readonly tenant: TenantService;
269
+ readonly thirdPartyApp: ThirdPartyAppService;
268
270
  readonly user: UserService;
269
271
  readonly userExtra: UserExtraService;
270
272
  readonly userInfoLog: UserInfoLogService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gct-paas/api",
3
- "version": "6.0.0-dev.2",
3
+ "version": "6.0.0-dev.3",
4
4
  "description": "paas 平台底包",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -73,8 +73,8 @@
73
73
  "publish:beta": "npm publish --access public --tag=beta --registry=https://registry.npmjs.org/",
74
74
  "publish:npm": "npm publish --access public --registry=https://registry.npmjs.org/",
75
75
  "gen-api:alpha": "./script/gen-api.sh http://paas.alpha.gct-paas.com",
76
- "gen-api:dev": "./script/gen-api.sh http://paas.paasdev.gct-paas.com",
77
- "gen-api:test": "./script/gen-api.sh"
76
+ "gen-api:dev": "./script/gen-api.sh http://paas.paasdevsix.gct-paas.com",
77
+ "gen-api:test": "./script/gen-api.sh http://paas.paastestsix.gct-paas.com"
78
78
  },
79
79
  "dependencies": {
80
80
  "axios": "^1.16.0",
@@ -87,8 +87,8 @@
87
87
  "devDependencies": {
88
88
  "@babel/preset-env": "^7.29.5",
89
89
  "@commitlint/cli": "^20.5.3",
90
- "@gct-paas/build": "^0.1.17",
91
- "@gct-paas/cli": "^0.1.23",
90
+ "@gct-paas/build": "^0.1.23",
91
+ "@gct-paas/cli": "^0.2.0",
92
92
  "@types/fs-extra": "^11.0.4",
93
93
  "@types/lodash-es": "^4.17.12",
94
94
  "@types/node": "^25.6.2",