@gct-paas/core 0.0.1-dev.26 → 0.0.1-dev.28

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.
@@ -15,6 +15,7 @@ export interface getUserQuery {
15
15
  pageSize?: number;
16
16
  sortField?: string;
17
17
  sortType?: string;
18
+ source?: number;
18
19
  startTime?: string;
19
20
  username?: string;
20
21
  }
@@ -4,15 +4,12 @@ import { AuditLogSearchRequest, AuditLogResponse, UserBaseInfo, AuditLogRequest
4
4
  export interface getInfoQuery {
5
5
  id: string;
6
6
  }
7
- export interface getOperateTypesQuery {
8
- module: string;
9
- }
10
7
  export declare class AuditLogService extends ApaasBaseService {
11
8
  constructor();
12
9
  postExport(data: AuditLogSearchRequest, config?: Record<string, string>): Promise<IHttpResponse<string>>;
13
10
  getInfo(query: getInfoQuery, config?: Record<string, string>): Promise<IHttpResponse<AuditLogResponse>>;
14
11
  getModules(config?: Record<string, string>): Promise<IHttpResponse<string>>;
15
- getOperateTypes(query: getOperateTypesQuery, config?: Record<string, string>): Promise<IHttpResponse<string>>;
12
+ getOperateTypes(config?: Record<string, string>): Promise<IHttpResponse<string>>;
16
13
  getOperators(config?: Record<string, string>): Promise<IHttpResponse<UserBaseInfo>>;
17
14
  postPage(data: AuditLogSearchRequest, config?: Record<string, string>): Promise<IHttpResponse<AuditLogResponse>>;
18
15
  postSave(data: AuditLogRequest, config?: Record<string, string>): Promise<IHttpResponse<string>>;
@@ -18,8 +18,8 @@ class AuditLogService extends ApaasBaseService {
18
18
  return this._get("modules", null, null, config);
19
19
  }
20
20
  // 操作类型
21
- async getOperateTypes(query, config = {}) {
22
- return this._get("operateTypes", null, query, config);
21
+ async getOperateTypes(config = {}) {
22
+ return this._get("operateTypes", null, null, config);
23
23
  }
24
24
  // 操作人
25
25
  async getOperators(config = {}) {
@@ -10,7 +10,6 @@ export interface getGetListRdoOrNdoQuery {
10
10
  }
11
11
  export interface getListQuery {
12
12
  endTime?: string;
13
- module?: string;
14
13
  name?: string;
15
14
  pageNo?: number;
16
15
  pageSize?: number;
@@ -30,6 +29,7 @@ export interface getListCompleteQuery {
30
29
  modifyTime?: string;
31
30
  modifyUserId?: string;
32
31
  modifyUserName?: string;
32
+ module?: string;
33
33
  name?: string;
34
34
  pageId?: string;
35
35
  parentId?: string;
@@ -40,7 +40,6 @@ export interface getListCompleteQuery {
40
40
  }
41
41
  export interface getPageQuery {
42
42
  endTime?: string;
43
- module?: string;
44
43
  name?: string;
45
44
  pageNo?: number;
46
45
  pageSize?: number;
@@ -21372,6 +21372,208 @@ export interface RelationResponse {
21372
21372
  */
21373
21373
  type?: string;
21374
21374
  }
21375
+ export interface ReportRequest {
21376
+ /**
21377
+ * 备注
21378
+ *
21379
+ * @type string
21380
+ */
21381
+ description?: string;
21382
+ /**
21383
+ * 设计json
21384
+ *
21385
+ * @type string
21386
+ */
21387
+ designerJson?: string;
21388
+ /**
21389
+ * 是否为草稿 0: 非草稿 1: 草稿
21390
+ *
21391
+ * @type number
21392
+ */
21393
+ draft?: number;
21394
+ /**
21395
+ * 初始提交 id
21396
+ *
21397
+ * @type string
21398
+ */
21399
+ initCommitId?: string;
21400
+ /**
21401
+ * 报表key
21402
+ *
21403
+ * @type string
21404
+ */
21405
+ key?: string;
21406
+ /**
21407
+ * 报表名称
21408
+ *
21409
+ * @type string
21410
+ */
21411
+ name?: string;
21412
+ /**
21413
+ * 是否已发布
21414
+ *
21415
+ * @type number
21416
+ */
21417
+ publish?: number;
21418
+ /**
21419
+ * 运行时json
21420
+ *
21421
+ * @type string
21422
+ */
21423
+ runtimeJson?: string;
21424
+ /**
21425
+ * 缩略图
21426
+ *
21427
+ * @type string
21428
+ */
21429
+ screenShoot?: string;
21430
+ /**
21431
+ * 来源(前台/后台)
21432
+ *
21433
+ * @type string
21434
+ */
21435
+ source?: string;
21436
+ /**
21437
+ * 是否内置(1:内置菜单,0:用户创建)
21438
+ *
21439
+ * @type number
21440
+ */
21441
+ sysBuiltin?: number;
21442
+ /**
21443
+ * 报表类型
21444
+ *
21445
+ * @type string
21446
+ */
21447
+ type?: string;
21448
+ /**
21449
+ * 可见范围
21450
+ *
21451
+ * @type string
21452
+ */
21453
+ visibleRange?: string;
21454
+ }
21455
+ export interface ReportResponse {
21456
+ /**
21457
+ *
21458
+ *
21459
+ * @type string
21460
+ */
21461
+ createTime?: string;
21462
+ /**
21463
+ *
21464
+ *
21465
+ * @type string
21466
+ */
21467
+ createUserId?: string;
21468
+ /**
21469
+ *
21470
+ *
21471
+ * @type string
21472
+ */
21473
+ createUserName?: string;
21474
+ /**
21475
+ * 备注
21476
+ *
21477
+ * @type string
21478
+ */
21479
+ description?: string;
21480
+ /**
21481
+ * 设计json
21482
+ *
21483
+ * @type string
21484
+ */
21485
+ designerJson?: string;
21486
+ /**
21487
+ * 是否为草稿 0: 非草稿 1: 草稿
21488
+ *
21489
+ * @type number
21490
+ */
21491
+ draft?: number;
21492
+ /**
21493
+ * ID
21494
+ *
21495
+ * @type string
21496
+ */
21497
+ id?: string;
21498
+ /**
21499
+ * 初始提交 id
21500
+ *
21501
+ * @type string
21502
+ */
21503
+ initCommitId?: string;
21504
+ /**
21505
+ * 报表key
21506
+ *
21507
+ * @type string
21508
+ */
21509
+ key?: string;
21510
+ /**
21511
+ *
21512
+ *
21513
+ * @type string
21514
+ */
21515
+ modifyTime?: string;
21516
+ /**
21517
+ *
21518
+ *
21519
+ * @type string
21520
+ */
21521
+ modifyUserId?: string;
21522
+ /**
21523
+ *
21524
+ *
21525
+ * @type string
21526
+ */
21527
+ modifyUserName?: string;
21528
+ /**
21529
+ * 报表名称
21530
+ *
21531
+ * @type string
21532
+ */
21533
+ name?: string;
21534
+ /**
21535
+ * 是否已发布
21536
+ *
21537
+ * @type number
21538
+ */
21539
+ publish?: number;
21540
+ /**
21541
+ * 运行时json
21542
+ *
21543
+ * @type string
21544
+ */
21545
+ runtimeJson?: string;
21546
+ /**
21547
+ * 缩略图
21548
+ *
21549
+ * @type string
21550
+ */
21551
+ screenShoot?: string;
21552
+ /**
21553
+ * 来源(前台/后台)
21554
+ *
21555
+ * @type string
21556
+ */
21557
+ source?: string;
21558
+ /**
21559
+ * 是否内置(1:内置菜单,0:用户创建)
21560
+ *
21561
+ * @type number
21562
+ */
21563
+ sysBuiltin?: number;
21564
+ /**
21565
+ * 报表类型
21566
+ *
21567
+ * @type string
21568
+ */
21569
+ type?: string;
21570
+ /**
21571
+ * 可见范围
21572
+ *
21573
+ * @type string
21574
+ */
21575
+ visibleRange?: string;
21576
+ }
21375
21577
  export interface ResponseEntity {
21376
21578
  /**
21377
21579
  * 执行结果状态码
@@ -108,6 +108,7 @@ import { ProcessTestService } from './processTest.service';
108
108
  import { ProductReleaseService } from './product-release.service';
109
109
  import { PublishLogService } from './publish-log.service';
110
110
  import { RegexpService } from './regexp.service';
111
+ import { ReportService } from './report.service';
111
112
  import { RoleService } from './role.service';
112
113
  import { RolePermissionService } from './role-permission.service';
113
114
  import { ScriptService } from './script.service';
@@ -246,6 +247,7 @@ export declare class ApiManage {
246
247
  productRelease: ProductReleaseService;
247
248
  publishLog: PublishLogService;
248
249
  regexp: RegexpService;
250
+ report: ReportService;
249
251
  role: RoleService;
250
252
  rolePermission: RolePermissionService;
251
253
  script: ScriptService;
@@ -108,6 +108,7 @@ import { ProcessTestService } from './processTest.service.mjs';
108
108
  import { ProductReleaseService } from './product-release.service.mjs';
109
109
  import { PublishLogService } from './publish-log.service.mjs';
110
110
  import { RegexpService } from './regexp.service.mjs';
111
+ import { ReportService } from './report.service.mjs';
111
112
  import { RoleService } from './role.service.mjs';
112
113
  import { RolePermissionService } from './role-permission.service.mjs';
113
114
  import { ScriptService } from './script.service.mjs';
@@ -248,6 +249,7 @@ class ApiManage {
248
249
  productRelease = new ProductReleaseService();
249
250
  publishLog = new PublishLogService();
250
251
  regexp = new RegexpService();
252
+ report = new ReportService();
251
253
  role = new RoleService();
252
254
  rolePermission = new RolePermissionService();
253
255
  script = new ScriptService();
@@ -0,0 +1,25 @@
1
+ import { IHttpResponse } from '../../interface';
2
+ import { ApaasBaseService } from '../base/apaas-base.service';
3
+ import { ReportRequest, ReportResponse } from './entities';
4
+ export interface deleteQuery {
5
+ ids: string;
6
+ }
7
+ export interface getInfoQuery {
8
+ id: string;
9
+ }
10
+ export interface getPageQuery {
11
+ pageNo?: number;
12
+ pageSize?: number;
13
+ }
14
+ export interface putIdQuery {
15
+ id: string;
16
+ }
17
+ export declare class ReportService extends ApaasBaseService {
18
+ constructor();
19
+ post(data: ReportRequest, config?: Record<string, string>): Promise<IHttpResponse<string>>;
20
+ delete(query: deleteQuery, config?: Record<string, string>): Promise<IHttpResponse<string>>;
21
+ getInfo(query: getInfoQuery, config?: Record<string, string>): Promise<IHttpResponse<ReportResponse>>;
22
+ getList(config?: Record<string, string>): Promise<IHttpResponse<ReportResponse>>;
23
+ getPage(query: getPageQuery, config?: Record<string, string>): Promise<IHttpResponse<ReportResponse>>;
24
+ putId(query: putIdQuery, data: ReportRequest, config?: Record<string, string>): Promise<IHttpResponse<string>>;
25
+ }
@@ -0,0 +1,34 @@
1
+ import { ApaasBaseService } from '../base/apaas-base.service.mjs';
2
+
3
+ "use strict";
4
+ class ReportService extends ApaasBaseService {
5
+ constructor() {
6
+ super("report");
7
+ }
8
+ // 保存
9
+ async post(data, config = {}) {
10
+ return this._post("", data, null, config);
11
+ }
12
+ // 删除
13
+ async delete(query, config = {}) {
14
+ return this._delete("", null, query, config);
15
+ }
16
+ // 详情
17
+ async getInfo(query, config = {}) {
18
+ return this._get("info", null, query, config);
19
+ }
20
+ // 列表
21
+ async getList(config = {}) {
22
+ return this._get("list", null, null, config);
23
+ }
24
+ // 分页列表
25
+ async getPage(query, config = {}) {
26
+ return this._get("page", null, query, config);
27
+ }
28
+ // 修改
29
+ async putId(query, data, config = {}) {
30
+ return this._put("", data, query, config);
31
+ }
32
+ }
33
+
34
+ export { ReportService };
@@ -40,6 +40,7 @@ export interface getModelMetaQuery {
40
40
  modifyTime?: string;
41
41
  modifyUserId?: string;
42
42
  modifyUserName?: string;
43
+ module?: string;
43
44
  name?: string;
44
45
  pageId?: string;
45
46
  parentId?: string;
@@ -0,0 +1,25 @@
1
+ import { IHttpResponse } from '../../interface';
2
+ import { PlatformBaseService } from '../base/platform-base.service';
3
+ import { DataTraceRequest, DataTraceResponse } from './entities';
4
+ export interface deleteQuery {
5
+ ids: string;
6
+ }
7
+ export interface getInfoQuery {
8
+ id: string;
9
+ }
10
+ export interface getPageQuery {
11
+ pageNo?: number;
12
+ pageSize?: number;
13
+ }
14
+ export interface putIdQuery {
15
+ id: string;
16
+ }
17
+ export declare class DataTraceService extends PlatformBaseService {
18
+ constructor();
19
+ post(data: DataTraceRequest, config?: Record<string, string>): Promise<IHttpResponse<string>>;
20
+ delete(query: deleteQuery, config?: Record<string, string>): Promise<IHttpResponse<string>>;
21
+ getInfo(query: getInfoQuery, config?: Record<string, string>): Promise<IHttpResponse<DataTraceResponse>>;
22
+ getList(config?: Record<string, string>): Promise<IHttpResponse<DataTraceResponse>>;
23
+ getPage(query: getPageQuery, config?: Record<string, string>): Promise<IHttpResponse<DataTraceResponse>>;
24
+ putId(query: putIdQuery, data: DataTraceRequest, config?: Record<string, string>): Promise<IHttpResponse<string>>;
25
+ }
@@ -0,0 +1,34 @@
1
+ import { PlatformBaseService } from '../base/platform-base.service.mjs';
2
+
3
+ "use strict";
4
+ class DataTraceService extends PlatformBaseService {
5
+ constructor() {
6
+ super("data-trace");
7
+ }
8
+ // 保存
9
+ async post(data, config = {}) {
10
+ return this._post("", data, null, config);
11
+ }
12
+ // 删除
13
+ async delete(query, config = {}) {
14
+ return this._delete("", null, query, config);
15
+ }
16
+ // 详情
17
+ async getInfo(query, config = {}) {
18
+ return this._get("info", null, query, config);
19
+ }
20
+ // 列表
21
+ async getList(config = {}) {
22
+ return this._get("list", null, null, config);
23
+ }
24
+ // 分页列表
25
+ async getPage(query, config = {}) {
26
+ return this._get("page", null, query, config);
27
+ }
28
+ // 修改
29
+ async putId(query, data, config = {}) {
30
+ return this._put("", data, query, config);
31
+ }
32
+ }
33
+
34
+ export { DataTraceService };
@@ -3052,6 +3052,148 @@ export interface DataSourceMainResponse {
3052
3052
  */
3053
3053
  type?: string;
3054
3054
  }
3055
+ export interface DataTraceRequest {
3056
+ /**
3057
+ * 应用类型id
3058
+ *
3059
+ * @type string
3060
+ */
3061
+ appId?: string;
3062
+ /**
3063
+ * 数据Id
3064
+ *
3065
+ * @type string
3066
+ */
3067
+ dataId?: string;
3068
+ /**
3069
+ * 详细数据
3070
+ *
3071
+ * @type string
3072
+ */
3073
+ detail?: string;
3074
+ /**
3075
+ * 模块名称
3076
+ *
3077
+ * @type string
3078
+ */
3079
+ module?: string;
3080
+ /**
3081
+ * 操作类型
3082
+ *
3083
+ * @type string
3084
+ */
3085
+ operateType?: string;
3086
+ /**
3087
+ * 租户ID
3088
+ *
3089
+ * @type string
3090
+ */
3091
+ tenantId?: string;
3092
+ /**
3093
+ * 触发方式
3094
+ *
3095
+ * @type number
3096
+ */
3097
+ triggerType?: number;
3098
+ /**
3099
+ * 修改内容
3100
+ *
3101
+ * @type string
3102
+ */
3103
+ updateJson?: string;
3104
+ }
3105
+ export interface DataTraceResponse {
3106
+ /**
3107
+ * 应用类型id
3108
+ *
3109
+ * @type string
3110
+ */
3111
+ appId?: string;
3112
+ /**
3113
+ *
3114
+ *
3115
+ * @type string
3116
+ */
3117
+ createTime?: string;
3118
+ /**
3119
+ *
3120
+ *
3121
+ * @type string
3122
+ */
3123
+ createUserId?: string;
3124
+ /**
3125
+ *
3126
+ *
3127
+ * @type string
3128
+ */
3129
+ createUserName?: string;
3130
+ /**
3131
+ * 数据Id
3132
+ *
3133
+ * @type string
3134
+ */
3135
+ dataId?: string;
3136
+ /**
3137
+ * 详细数据
3138
+ *
3139
+ * @type string
3140
+ */
3141
+ detail?: string;
3142
+ /**
3143
+ * 主键
3144
+ *
3145
+ * @type string
3146
+ */
3147
+ id?: string;
3148
+ /**
3149
+ *
3150
+ *
3151
+ * @type string
3152
+ */
3153
+ modifyTime?: string;
3154
+ /**
3155
+ *
3156
+ *
3157
+ * @type string
3158
+ */
3159
+ modifyUserId?: string;
3160
+ /**
3161
+ *
3162
+ *
3163
+ * @type string
3164
+ */
3165
+ modifyUserName?: string;
3166
+ /**
3167
+ * 模块名称
3168
+ *
3169
+ * @type string
3170
+ */
3171
+ module?: string;
3172
+ /**
3173
+ * 操作类型
3174
+ *
3175
+ * @type string
3176
+ */
3177
+ operateType?: string;
3178
+ /**
3179
+ * 租户ID
3180
+ *
3181
+ * @type string
3182
+ */
3183
+ tenantId?: string;
3184
+ /**
3185
+ * 触发方式
3186
+ *
3187
+ * @type number
3188
+ */
3189
+ triggerType?: number;
3190
+ /**
3191
+ * 修改内容
3192
+ *
3193
+ * @type string
3194
+ */
3195
+ updateJson?: string;
3196
+ }
3055
3197
  export interface DatasourceDevopsRequest {
3056
3198
  /**
3057
3199
  * 应用id
@@ -6,6 +6,7 @@ import { AssetsService } from './assets.service';
6
6
  import { AuditLogService } from './audit-log.service';
7
7
  import { CategoryService } from './category.service';
8
8
  import { DataSourceService } from './data-source.service';
9
+ import { DataTraceService } from './data-trace.service';
9
10
  import { DatasourceDevopsService } from './datasource-devops.service';
10
11
  import { DatasourceMoveService } from './datasource-move.service';
11
12
  import { DatasourceMoveDataService } from './datasource-move-data.service';
@@ -72,6 +73,7 @@ export declare class ApiManage {
72
73
  auditLog: AuditLogService;
73
74
  category: CategoryService;
74
75
  dataSource: DataSourceService;
76
+ dataTrace: DataTraceService;
75
77
  datasourceDevops: DatasourceDevopsService;
76
78
  datasourceMove: DatasourceMoveService;
77
79
  datasourceMoveData: DatasourceMoveDataService;
@@ -6,6 +6,7 @@ import { AssetsService } from './assets.service.mjs';
6
6
  import { AuditLogService } from './audit-log.service.mjs';
7
7
  import { CategoryService } from './category.service.mjs';
8
8
  import { DataSourceService } from './data-source.service.mjs';
9
+ import { DataTraceService } from './data-trace.service.mjs';
9
10
  import { DatasourceDevopsService } from './datasource-devops.service.mjs';
10
11
  import { DatasourceMoveService } from './datasource-move.service.mjs';
11
12
  import { DatasourceMoveDataService } from './datasource-move-data.service.mjs';
@@ -74,6 +75,7 @@ class ApiManage {
74
75
  auditLog = new AuditLogService();
75
76
  category = new CategoryService();
76
77
  dataSource = new DataSourceService();
78
+ dataTrace = new DataTraceService();
77
79
  datasourceDevops = new DatasourceDevopsService();
78
80
  datasourceMove = new DatasourceMoveService();
79
81
  datasourceMoveData = new DatasourceMoveDataService();
@@ -39,7 +39,7 @@ export declare class PluginService extends PlatformBaseService {
39
39
  delete(query: deleteQuery, config?: Record<string, string>): Promise<IHttpResponse<string>>;
40
40
  postCancelUpload(data: PackageJson, config?: Record<string, string>): Promise<IHttpResponse<boolean>>;
41
41
  getGetImages(query: getGetImagesQuery, config?: Record<string, string>): Promise<IHttpResponse<unknown>>;
42
- getGetTenantCompList(config?: Record<string, string>): Promise<IHttpResponse<PluginTenant>>;
42
+ postGetTenantCompList(data: PluginRequest, config?: Record<string, string>): Promise<IHttpResponse<PluginTenant>>;
43
43
  getInfo(query: getInfoQuery, config?: Record<string, string>): Promise<IHttpResponse<PluginResponse>>;
44
44
  getList(config?: Record<string, string>): Promise<IHttpResponse<PluginResponse>>;
45
45
  postPage(data: PluginRequest, config?: Record<string, string>): Promise<IHttpResponse<PluginResponse>>;
@@ -22,8 +22,8 @@ class PluginService extends PlatformBaseService {
22
22
  return this._get("getImages", null, query, config);
23
23
  }
24
24
  // 获取租户下的所有组件信息
25
- async getGetTenantCompList(config = {}) {
26
- return this._get("getTenantCompList", null, null, config);
25
+ async postGetTenantCompList(data, config = {}) {
26
+ return this._post("getTenantCompList", data, null, config);
27
27
  }
28
28
  // 详情
29
29
  async getInfo(query, config = {}) {
@@ -67,19 +67,30 @@ export declare class PluginPgkUtil {
67
67
  */
68
68
  static loadDesignPlugin(_app: App, platform: Platform, kit?: string[]): Promise<LoadPluginResult>;
69
69
  /**
70
- * 加载绘制态移动端插件包
70
+ * 加载设计态中,已经被从配置中移除的插件
71
+ *
72
+ * @static
73
+ * @param {Platform} platform
74
+ * @param {IObject[]} configs
75
+ * @returns {*} {Promise<void>}
76
+ */
77
+ static loadDesignDeletedPlugins(platform: Platform, configs?: IObject[]): Promise<void>;
78
+ /**
79
+ * 加载设计态移动端插件包
71
80
  *
72
81
  * @static
73
82
  * @param {App} app
74
- * @returns {*} {Promise<LoadPluginResult>}
83
+ * @param {IObject[]} configs 界面用到的插件集合
84
+ * @returns {*} {Promise<void>}
75
85
  */
76
- static loadMobilePlugin(app: App, kit?: string[]): Promise<LoadPluginResult>;
86
+ static loadMobilePlugin(app: App, configs?: IObject[]): Promise<void>;
77
87
  /**
78
- * 加载绘制态网页端端插件包
88
+ * 加载设计态网页端插件包
79
89
  *
80
90
  * @static
81
91
  * @param {App} app
92
+ * @param {IObject[]} configs 界面用到的插件集合
82
93
  * @returns {*} {Promise<LoadPluginResult>}
83
94
  */
84
- static loadWebPlugin(app: App, kit?: string[]): Promise<LoadPluginResult>;
95
+ static loadWebPlugin(app: App, configs?: IObject[]): Promise<LoadPluginResult>;
85
96
  }