@gct-paas/api 6.0.0-dev.7 → 6.0.0-dev.9

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.
@@ -239,6 +239,10 @@ export interface getAppModelMetaListQuery extends IObject {
239
239
  * env
240
240
  */
241
241
  env: string;
242
+ /**
243
+ * module
244
+ */
245
+ module: string;
242
246
  }
243
247
  export interface getAppPublishLogInfoQuery extends IObject {
244
248
  /**
@@ -29,6 +29,10 @@ export interface getListQuery extends IObject {
29
29
  * 查询全量信息时传 true,否则只查询简要信息
30
30
  */
31
31
  fullInfo?: boolean;
32
+ /**
33
+ * 来源
34
+ */
35
+ source?: string;
32
36
  /**
33
37
  * 所属模块
34
38
  */
@@ -42,7 +42,7 @@ export interface getPageListQuery extends IObject {
42
42
  */
43
43
  relationId?: string;
44
44
  /**
45
- * 类型(1 web、2 pda 、3 pad、4 详情页面)
45
+ * 类型(1 web、2 pda 、3 pad、4 详情页面,5 事务)
46
46
  */
47
47
  relationType?: number;
48
48
  /**
@@ -11919,6 +11919,12 @@ export interface GetAppResponse {
11919
11919
  * @type string
11920
11920
  */
11921
11921
  initFailReason?: string;
11922
+ /**
11923
+ *
11924
+ *
11925
+ * @type string
11926
+ */
11927
+ lastVisitTime?: string;
11922
11928
  /**
11923
11929
  *
11924
11930
  *
@@ -12075,6 +12081,12 @@ export interface GetAppResponse {
12075
12081
  * @type string
12076
12082
  */
12077
12083
  tenantId?: string;
12084
+ /**
12085
+ *
12086
+ *
12087
+ * @type string
12088
+ */
12089
+ testLastVisitTime?: string;
12078
12090
  /**
12079
12091
  *
12080
12092
  *
@@ -22547,6 +22559,18 @@ export interface PageDesignerLogResponse {
22547
22559
  * @type string
22548
22560
  */
22549
22561
  designerJson?: string;
22562
+ /**
22563
+ * 详情页设计Json
22564
+ *
22565
+ * @type string
22566
+ */
22567
+ detailDesignerJson?: string;
22568
+ /**
22569
+ * 详情页运行时json
22570
+ *
22571
+ * @type string
22572
+ */
22573
+ detailRuntimeJson?: string;
22550
22574
  /**
22551
22575
  * 主键
22552
22576
  *
@@ -36165,6 +36189,12 @@ export interface TransactionRequest {
36165
36189
  * @type string
36166
36190
  */
36167
36191
  key?: string;
36192
+ /**
36193
+ * logId
36194
+ *
36195
+ * @type string
36196
+ */
36197
+ logId?: string;
36168
36198
  /**
36169
36199
  * 绑定模型key
36170
36200
  *
@@ -1,4 +1,23 @@
1
1
  export const apiConfig = [
2
+ {
3
+ name: "app",
4
+ entityName: "app",
5
+ apis: [
6
+ {
7
+ mode: "put",
8
+ method: "putAid",
9
+ path: "{aid}",
10
+ hasPathParams: true,
11
+ hasData: true
12
+ },
13
+ {
14
+ mode: "delete",
15
+ method: "deleteAid",
16
+ path: "{aid}",
17
+ hasPathParams: true
18
+ }
19
+ ]
20
+ },
2
21
  {
3
22
  name: "auth",
4
23
  entityName: "auth",
@@ -23,6 +42,18 @@ export const apiConfig = [
23
42
  }
24
43
  ]
25
44
  },
45
+ {
46
+ name: "bff",
47
+ entityName: "bff",
48
+ apis: [
49
+ {
50
+ mode: "get",
51
+ method: "getFlowFuuid",
52
+ path: "flow/{fuuid}",
53
+ hasPathParams: true
54
+ }
55
+ ]
56
+ },
26
57
  {
27
58
  name: "camel",
28
59
  entityName: "camel",
@@ -69,15 +100,49 @@ export const apiConfig = [
69
100
  }
70
101
  ]
71
102
  },
103
+ {
104
+ name: "categories",
105
+ entityName: "categories",
106
+ apis: [
107
+ {
108
+ mode: "get",
109
+ method: "get",
110
+ path: ""
111
+ }
112
+ ]
113
+ },
72
114
  {
73
115
  name: "category",
74
116
  entityName: "category",
75
117
  apis: [
118
+ {
119
+ mode: "post",
120
+ method: "postApp",
121
+ path: "app",
122
+ hasData: true
123
+ },
124
+ {
125
+ mode: "get",
126
+ method: "getApps",
127
+ path: "apps"
128
+ },
76
129
  {
77
130
  mode: "post",
78
131
  method: "postFlow",
79
132
  path: "flow",
80
133
  hasData: true
134
+ },
135
+ {
136
+ mode: "get",
137
+ method: "getTree",
138
+ path: "tree"
139
+ },
140
+ {
141
+ mode: "put",
142
+ method: "putCidDrag",
143
+ path: "{cid}/drag",
144
+ hasPathParams: true,
145
+ hasData: true
81
146
  }
82
147
  ]
83
148
  },
@@ -177,6 +242,20 @@ export const apiConfig = [
177
242
  }
178
243
  ]
179
244
  },
245
+ {
246
+ name: "file",
247
+ entityName: "file",
248
+ apis: [
249
+ {
250
+ mode: "post",
251
+ method: "postUpload",
252
+ path: "upload",
253
+ hasUpload: true,
254
+ hasQuery: true,
255
+ hasData: true
256
+ }
257
+ ]
258
+ },
180
259
  {
181
260
  name: "flowApp",
182
261
  entityName: "flow-app",
@@ -332,6 +411,29 @@ export const apiConfig = [
332
411
  name: "flow",
333
412
  entityName: "flow",
334
413
  apis: [
414
+ {
415
+ mode: "post",
416
+ method: "postDef",
417
+ path: "def"
418
+ },
419
+ {
420
+ mode: "post",
421
+ method: "postDefCopy",
422
+ path: "def/copy",
423
+ hasData: true
424
+ },
425
+ {
426
+ mode: "put",
427
+ method: "putDefFuuid",
428
+ path: "def/{fuuid}",
429
+ hasPathParams: true
430
+ },
431
+ {
432
+ mode: "get",
433
+ method: "getDefFuuidVersion",
434
+ path: "def/{fuuid}/{version}",
435
+ hasPathParams: true
436
+ },
335
437
  {
336
438
  mode: "post",
337
439
  method: "postExport",
@@ -350,6 +452,22 @@ export const apiConfig = [
350
452
  hasQuery: true,
351
453
  hasData: true
352
454
  },
455
+ {
456
+ mode: "get",
457
+ method: "getInvokeMethods",
458
+ path: "invoke/methods"
459
+ },
460
+ {
461
+ mode: "get",
462
+ method: "getInvokeStatus",
463
+ path: "invoke/status"
464
+ },
465
+ {
466
+ mode: "get",
467
+ method: "getList",
468
+ path: "list",
469
+ hasQuery: true
470
+ },
353
471
  {
354
472
  mode: "get",
355
473
  method: "getListCategoryOnline",
@@ -362,30 +480,226 @@ export const apiConfig = [
362
480
  path: "list/online",
363
481
  hasQuery: true
364
482
  },
483
+ {
484
+ mode: "get",
485
+ method: "getLogExport",
486
+ path: "log/export",
487
+ hasQuery: true
488
+ },
489
+ {
490
+ mode: "get",
491
+ method: "getLogPageList",
492
+ path: "log/page/list",
493
+ hasQuery: true
494
+ },
365
495
  {
366
496
  mode: "get",
367
497
  method: "getLogPageSearch",
368
498
  path: "log/page/search",
369
499
  hasQuery: true
370
500
  },
501
+ {
502
+ mode: "post",
503
+ method: "postNodeLog",
504
+ path: "node/log",
505
+ hasData: true
506
+ },
371
507
  {
372
508
  mode: "get",
373
509
  method: "getNodeLogReqId",
374
510
  path: "node/log/{reqId}",
375
511
  hasPathParams: true
376
512
  },
513
+ {
514
+ mode: "put",
515
+ method: "putOffline",
516
+ path: "offline",
517
+ hasData: true
518
+ },
519
+ {
520
+ mode: "put",
521
+ method: "putOnline",
522
+ path: "online",
523
+ hasData: true
524
+ },
525
+ {
526
+ mode: "get",
527
+ method: "getOnlineFuuid",
528
+ path: "online/{fuuid}",
529
+ hasPathParams: true,
530
+ hasQuery: true
531
+ },
532
+ {
533
+ mode: "put",
534
+ method: "putOnofflineFuuid",
535
+ path: "onoffline/{fuuid}",
536
+ hasPathParams: true
537
+ },
377
538
  {
378
539
  mode: "get",
379
540
  method: "getPageList",
380
541
  path: "page/list",
381
542
  hasQuery: true
382
543
  },
544
+ {
545
+ mode: "put",
546
+ method: "putPublish",
547
+ path: "publish",
548
+ hasData: true
549
+ },
550
+ {
551
+ mode: "get",
552
+ method: "getFuuid",
553
+ path: "{fuuid}",
554
+ hasPathParams: true
555
+ },
383
556
  {
384
557
  mode: "put",
385
558
  method: "putFuuid",
386
559
  path: "{fuuid}",
387
560
  hasPathParams: true,
388
561
  hasData: true
562
+ },
563
+ {
564
+ mode: "delete",
565
+ method: "deleteFuuid",
566
+ path: "{fuuid}",
567
+ hasPathParams: true
568
+ },
569
+ {
570
+ mode: "delete",
571
+ method: "deleteFuuidVersionVersion",
572
+ path: "{fuuid}/version/{version}",
573
+ hasPathParams: true
574
+ }
575
+ ]
576
+ },
577
+ {
578
+ name: "knowledge",
579
+ entityName: "knowledge",
580
+ apis: [
581
+ {
582
+ mode: "post",
583
+ method: "postApp",
584
+ path: "app",
585
+ hasData: true
586
+ },
587
+ {
588
+ mode: "post",
589
+ method: "postBizinterface",
590
+ path: "bizinterface",
591
+ hasData: true
592
+ },
593
+ {
594
+ mode: "put",
595
+ method: "putBizinterface",
596
+ path: "bizinterface",
597
+ hasData: true
598
+ },
599
+ {
600
+ mode: "post",
601
+ method: "postBizinterfaceSearch",
602
+ path: "bizinterface/search",
603
+ hasQuery: true,
604
+ hasData: true
605
+ },
606
+ {
607
+ mode: "get",
608
+ method: "getBizinterfaceId",
609
+ path: "bizinterface/{id}",
610
+ hasPathParams: true
611
+ },
612
+ {
613
+ mode: "delete",
614
+ method: "deleteBizinterfaceId",
615
+ path: "bizinterface/{id}",
616
+ hasPathParams: true
617
+ },
618
+ {
619
+ mode: "post",
620
+ method: "postBrand",
621
+ path: "brand",
622
+ hasData: true
623
+ },
624
+ {
625
+ mode: "get",
626
+ method: "getCategoriesApps",
627
+ path: "categories/apps"
628
+ },
629
+ {
630
+ mode: "get",
631
+ method: "getCategoriesCategory",
632
+ path: "categories/category"
633
+ },
634
+ {
635
+ mode: "get",
636
+ method: "getCategoriesList",
637
+ path: "categories/list"
638
+ },
639
+ {
640
+ mode: "get",
641
+ method: "getCategoriesTree",
642
+ path: "categories/tree"
643
+ },
644
+ {
645
+ mode: "post",
646
+ method: "postCategory",
647
+ path: "category",
648
+ hasData: true
649
+ },
650
+ {
651
+ mode: "post",
652
+ method: "postCategorySearch",
653
+ path: "category/search",
654
+ hasQuery: true,
655
+ hasData: true
656
+ },
657
+ {
658
+ mode: "get",
659
+ method: "getCategoryVersionVid",
660
+ path: "category/version/{vid}",
661
+ hasPathParams: true
662
+ },
663
+ {
664
+ mode: "post",
665
+ method: "postDesc",
666
+ path: "desc",
667
+ hasData: true
668
+ },
669
+ {
670
+ mode: "delete",
671
+ method: "deleteDescCid",
672
+ path: "desc/{cid}",
673
+ hasPathParams: true
674
+ },
675
+ {
676
+ mode: "delete",
677
+ method: "deletePicCid",
678
+ path: "pic/{cid}",
679
+ hasPathParams: true
680
+ },
681
+ {
682
+ mode: "post",
683
+ method: "postTag",
684
+ path: "tag",
685
+ hasData: true
686
+ },
687
+ {
688
+ mode: "delete",
689
+ method: "deleteTag",
690
+ path: "tag",
691
+ hasData: true
692
+ },
693
+ {
694
+ mode: "get",
695
+ method: "getTags",
696
+ path: "tags"
697
+ },
698
+ {
699
+ mode: "post",
700
+ method: "postVersion",
701
+ path: "version",
702
+ hasData: true
389
703
  }
390
704
  ]
391
705
  },
@@ -417,5 +731,72 @@ export const apiConfig = [
417
731
  hasData: true
418
732
  }
419
733
  ]
734
+ },
735
+ {
736
+ name: "variableDef",
737
+ entityName: "variable-def",
738
+ apis: [
739
+ {
740
+ mode: "post",
741
+ method: "post",
742
+ path: "",
743
+ hasData: true
744
+ },
745
+ {
746
+ mode: "delete",
747
+ method: "delete",
748
+ path: "",
749
+ hasQuery: true
750
+ },
751
+ {
752
+ mode: "get",
753
+ method: "getInfo",
754
+ path: "info",
755
+ hasQuery: true
756
+ },
757
+ {
758
+ mode: "get",
759
+ method: "getInstanceCount",
760
+ path: "instance-count",
761
+ hasQuery: true
762
+ },
763
+ {
764
+ mode: "get",
765
+ method: "getPageList",
766
+ path: "page/list",
767
+ hasQuery: true
768
+ },
769
+ {
770
+ mode: "put",
771
+ method: "putId",
772
+ path: "{id}",
773
+ hasPathParams: true,
774
+ hasData: true
775
+ }
776
+ ]
777
+ },
778
+ {
779
+ name: "variableInst",
780
+ entityName: "variable-inst",
781
+ apis: [
782
+ {
783
+ mode: "delete",
784
+ method: "delete",
785
+ path: "",
786
+ hasQuery: true
787
+ },
788
+ {
789
+ mode: "get",
790
+ method: "getInfo",
791
+ path: "info",
792
+ hasQuery: true
793
+ },
794
+ {
795
+ mode: "get",
796
+ method: "getPageList",
797
+ path: "page/list",
798
+ hasQuery: true
799
+ }
800
+ ]
420
801
  }
421
802
  ];
@@ -0,0 +1,26 @@
1
+ import type { AxiosRequestConfig } from 'axios';
2
+ import type { FlowAppUpdateReq } from '../entities';
3
+
4
+ export interface putAidPathParams {
5
+ aid: string;
6
+ }
7
+ export interface deleteAidPathParams {
8
+ aid: string;
9
+ }
10
+ export interface AppService {
11
+ /**
12
+ * 更新应用
13
+ */
14
+ putAid(
15
+ path: putAidPathParams,
16
+ data: FlowAppUpdateReq,
17
+ config?: Partial<AxiosRequestConfig>,
18
+ ): Promise<string>;
19
+ /**
20
+ * 删除应用
21
+ */
22
+ deleteAid(
23
+ path: deleteAidPathParams,
24
+ config?: Partial<AxiosRequestConfig>,
25
+ ): Promise<string>;
26
+ }
@@ -0,0 +1,15 @@
1
+ import type { AxiosRequestConfig } from 'axios';
2
+ import type { BizFlowMainResp } from '../entities';
3
+
4
+ export interface getFlowFuuidPathParams {
5
+ fuuid: string;
6
+ }
7
+ export interface BffService {
8
+ /**
9
+ * 获取流程
10
+ */
11
+ getFlowFuuid(
12
+ path: getFlowFuuidPathParams,
13
+ config?: Partial<AxiosRequestConfig>,
14
+ ): Promise<BizFlowMainResp>;
15
+ }
@@ -0,0 +1,9 @@
1
+ import type { AxiosRequestConfig } from 'axios';
2
+ import type { CategoryResp } from '../entities';
3
+
4
+ export interface CategoriesService {
5
+ /**
6
+ * 获取分类列表
7
+ */
8
+ get(config?: Partial<AxiosRequestConfig>): Promise<CategoryResp[]>;
9
+ }
@@ -1,7 +1,27 @@
1
1
  import type { AxiosRequestConfig } from 'axios';
2
- import type { FlowCreateWithCategoryReq } from '../entities';
2
+ import type {
3
+ FlowAppReq,
4
+ FlowAppResp,
5
+ FlowCreateWithCategoryReq,
6
+ CategoryTreeResp,
7
+ FlowCategoryDragReq,
8
+ } from '../entities';
3
9
 
10
+ export interface putCidDragPathParams {
11
+ cid: string;
12
+ }
4
13
  export interface CategoryService {
14
+ /**
15
+ * 新建应用
16
+ */
17
+ postApp(
18
+ data: FlowAppReq,
19
+ config?: Partial<AxiosRequestConfig>,
20
+ ): Promise<string>;
21
+ /**
22
+ * 获取应用列表
23
+ */
24
+ getApps(config?: Partial<AxiosRequestConfig>): Promise<FlowAppResp[]>;
5
25
  /**
6
26
  * 新建数据流
7
27
  */
@@ -9,4 +29,16 @@ export interface CategoryService {
9
29
  data: FlowCreateWithCategoryReq,
10
30
  config?: Partial<AxiosRequestConfig>,
11
31
  ): Promise<string>;
32
+ /**
33
+ * 获取分类树
34
+ */
35
+ getTree(config?: Partial<AxiosRequestConfig>): Promise<CategoryTreeResp[]>;
36
+ /**
37
+ * 分类拖拽
38
+ */
39
+ putCidDrag(
40
+ path: putCidDragPathParams,
41
+ data: FlowCategoryDragReq,
42
+ config?: Partial<AxiosRequestConfig>,
43
+ ): Promise<string>;
12
44
  }
@@ -0,0 +1,17 @@
1
+ import type { AxiosRequestConfig } from 'axios';
2
+ export interface postUploadQuery extends IObject {
3
+ /**
4
+ * args
5
+ */
6
+ args: string;
7
+ }
8
+ export interface FileService {
9
+ /**
10
+ * 上传
11
+ */
12
+ postUpload(
13
+ query: postUploadQuery,
14
+ data: UploadFileData,
15
+ config?: Partial<AxiosRequestConfig>,
16
+ ): Promise<IHttpResponse<string>>;
17
+ }