@nocobase/plugin-client 2.1.0-alpha.1 → 2.1.0-alpha.11

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.
@@ -0,0 +1,892 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ declare const _default: {
10
+ openapi: string;
11
+ info: {
12
+ title: string;
13
+ version: string;
14
+ };
15
+ paths: {
16
+ '/roles/{roleName}/desktopRoutes:add': {
17
+ post: {
18
+ tags: string[];
19
+ summary: string;
20
+ parameters: {
21
+ $ref: string;
22
+ }[];
23
+ requestBody: {
24
+ required: boolean;
25
+ content: {
26
+ 'application/json': {
27
+ schema: {
28
+ $ref: string;
29
+ };
30
+ };
31
+ };
32
+ };
33
+ responses: {
34
+ 200: {
35
+ description: string;
36
+ };
37
+ };
38
+ };
39
+ };
40
+ '/roles/{roleName}/desktopRoutes:remove': {
41
+ post: {
42
+ tags: string[];
43
+ summary: string;
44
+ parameters: {
45
+ $ref: string;
46
+ }[];
47
+ requestBody: {
48
+ required: boolean;
49
+ content: {
50
+ 'application/json': {
51
+ schema: {
52
+ $ref: string;
53
+ };
54
+ };
55
+ };
56
+ };
57
+ responses: {
58
+ 200: {
59
+ description: string;
60
+ };
61
+ };
62
+ };
63
+ };
64
+ '/roles/{roleName}/desktopRoutes:set': {
65
+ post: {
66
+ tags: string[];
67
+ summary: string;
68
+ parameters: {
69
+ $ref: string;
70
+ }[];
71
+ requestBody: {
72
+ required: boolean;
73
+ content: {
74
+ 'application/json': {
75
+ schema: {
76
+ $ref: string;
77
+ };
78
+ };
79
+ };
80
+ };
81
+ responses: {
82
+ 200: {
83
+ description: string;
84
+ };
85
+ };
86
+ };
87
+ };
88
+ '/roles/{roleName}/desktopRoutes:list': {
89
+ get: {
90
+ tags: string[];
91
+ summary: string;
92
+ parameters: {
93
+ $ref: string;
94
+ }[];
95
+ responses: {
96
+ 200: {
97
+ description: string;
98
+ content: {
99
+ 'application/json': {
100
+ schema: {
101
+ type: string;
102
+ properties: {
103
+ data: {
104
+ type: string;
105
+ items: {
106
+ $ref: string;
107
+ };
108
+ };
109
+ meta: {
110
+ type: string;
111
+ additionalProperties: boolean;
112
+ };
113
+ };
114
+ };
115
+ };
116
+ };
117
+ };
118
+ };
119
+ };
120
+ };
121
+ '/desktopRoutes:listAccessible': {
122
+ get: {
123
+ tags: string[];
124
+ summary: string;
125
+ description: string;
126
+ parameters: {
127
+ $ref: string;
128
+ }[];
129
+ responses: {
130
+ 200: {
131
+ description: string;
132
+ content: {
133
+ 'application/json': {
134
+ schema: {
135
+ $ref: string;
136
+ };
137
+ };
138
+ };
139
+ };
140
+ };
141
+ };
142
+ };
143
+ '/desktopRoutes:getAccessible': {
144
+ get: {
145
+ tags: string[];
146
+ summary: string;
147
+ description: string;
148
+ parameters: {
149
+ $ref: string;
150
+ }[];
151
+ responses: {
152
+ 200: {
153
+ description: string;
154
+ content: {
155
+ 'application/json': {
156
+ schema: {
157
+ $ref: string;
158
+ };
159
+ };
160
+ };
161
+ };
162
+ };
163
+ };
164
+ };
165
+ '/desktopRoutes:create': {
166
+ post: {
167
+ tags: string[];
168
+ summary: string;
169
+ description: string;
170
+ requestBody: {
171
+ required: boolean;
172
+ content: {
173
+ 'application/json': {
174
+ schema: {
175
+ $ref: string;
176
+ };
177
+ };
178
+ };
179
+ };
180
+ responses: {
181
+ 200: {
182
+ description: string;
183
+ content: {
184
+ 'application/json': {
185
+ schema: {
186
+ $ref: string;
187
+ };
188
+ };
189
+ };
190
+ };
191
+ };
192
+ };
193
+ };
194
+ '/desktopRoutes:update': {
195
+ post: {
196
+ tags: string[];
197
+ summary: string;
198
+ description: string;
199
+ parameters: {
200
+ $ref: string;
201
+ }[];
202
+ requestBody: {
203
+ required: boolean;
204
+ content: {
205
+ 'application/json': {
206
+ schema: {
207
+ $ref: string;
208
+ };
209
+ };
210
+ };
211
+ };
212
+ responses: {
213
+ 200: {
214
+ description: string;
215
+ content: {
216
+ 'application/json': {
217
+ schema: {
218
+ $ref: string;
219
+ };
220
+ };
221
+ };
222
+ };
223
+ };
224
+ };
225
+ };
226
+ '/desktopRoutes:updateOrCreate': {
227
+ post: {
228
+ tags: string[];
229
+ summary: string;
230
+ description: string;
231
+ parameters: {
232
+ $ref: string;
233
+ }[];
234
+ requestBody: {
235
+ required: boolean;
236
+ content: {
237
+ 'application/json': {
238
+ schema: {
239
+ $ref: string;
240
+ };
241
+ };
242
+ };
243
+ };
244
+ responses: {
245
+ 200: {
246
+ description: string;
247
+ content: {
248
+ 'application/json': {
249
+ schema: {
250
+ $ref: string;
251
+ };
252
+ };
253
+ };
254
+ };
255
+ };
256
+ };
257
+ };
258
+ '/desktopRoutes:move': {
259
+ post: {
260
+ tags: string[];
261
+ summary: string;
262
+ description: string;
263
+ parameters: {
264
+ $ref: string;
265
+ }[];
266
+ responses: {
267
+ 200: {
268
+ description: string;
269
+ };
270
+ };
271
+ };
272
+ };
273
+ '/desktopRoutes:destroy': {
274
+ post: {
275
+ tags: string[];
276
+ summary: string;
277
+ description: string;
278
+ parameters: {
279
+ $ref: string;
280
+ }[];
281
+ responses: {
282
+ 200: {
283
+ description: string;
284
+ };
285
+ };
286
+ };
287
+ };
288
+ '/desktopRoutes:createV2': {
289
+ post: {
290
+ tags: string[];
291
+ summary: string;
292
+ description: string;
293
+ requestBody: {
294
+ required: boolean;
295
+ content: {
296
+ 'application/json': {
297
+ schema: {
298
+ $ref: string;
299
+ };
300
+ examples: {
301
+ createV2: {
302
+ summary: string;
303
+ value: {
304
+ schemaUid: string;
305
+ parentId: any;
306
+ title: string;
307
+ icon: string;
308
+ };
309
+ };
310
+ };
311
+ };
312
+ };
313
+ };
314
+ responses: {
315
+ 200: {
316
+ description: string;
317
+ content: {
318
+ 'application/json': {
319
+ schema: {
320
+ $ref: string;
321
+ };
322
+ };
323
+ };
324
+ };
325
+ 400: {
326
+ description: string;
327
+ content: {
328
+ 'application/json': {
329
+ schema: {
330
+ $ref: string;
331
+ };
332
+ };
333
+ };
334
+ };
335
+ 409: {
336
+ description: string;
337
+ content: {
338
+ 'application/json': {
339
+ schema: {
340
+ $ref: string;
341
+ };
342
+ };
343
+ };
344
+ };
345
+ };
346
+ };
347
+ };
348
+ '/desktopRoutes:destroyV2': {
349
+ post: {
350
+ tags: string[];
351
+ summary: string;
352
+ description: string;
353
+ requestBody: {
354
+ required: boolean;
355
+ content: {
356
+ 'application/json': {
357
+ schema: {
358
+ $ref: string;
359
+ };
360
+ examples: {
361
+ destroyV2: {
362
+ summary: string;
363
+ value: {
364
+ schemaUid: string;
365
+ };
366
+ };
367
+ };
368
+ };
369
+ };
370
+ };
371
+ responses: {
372
+ 200: {
373
+ description: string;
374
+ content: {
375
+ 'application/json': {
376
+ schema: {
377
+ $ref: string;
378
+ };
379
+ };
380
+ };
381
+ };
382
+ 400: {
383
+ description: string;
384
+ content: {
385
+ 'application/json': {
386
+ schema: {
387
+ $ref: string;
388
+ };
389
+ };
390
+ };
391
+ };
392
+ };
393
+ };
394
+ };
395
+ };
396
+ components: {
397
+ parameters: {
398
+ RoleNamePath: {
399
+ name: string;
400
+ in: string;
401
+ description: string;
402
+ required: boolean;
403
+ schema: {
404
+ type: string;
405
+ };
406
+ };
407
+ PaginateQuery: {
408
+ name: string;
409
+ in: string;
410
+ description: string;
411
+ required: boolean;
412
+ schema: {
413
+ type: string;
414
+ };
415
+ };
416
+ TreeQuery: {
417
+ name: string;
418
+ in: string;
419
+ description: string;
420
+ required: boolean;
421
+ schema: {
422
+ type: string;
423
+ };
424
+ };
425
+ SortScalarQuery: {
426
+ name: string;
427
+ in: string;
428
+ description: string;
429
+ required: boolean;
430
+ schema: {
431
+ type: string;
432
+ };
433
+ };
434
+ FilterQuery: {
435
+ name: string;
436
+ in: string;
437
+ description: string;
438
+ required: boolean;
439
+ content: {
440
+ 'application/json': {
441
+ schema: {
442
+ type: string;
443
+ additionalProperties: boolean;
444
+ };
445
+ };
446
+ };
447
+ };
448
+ FilterByTkQuery: {
449
+ name: string;
450
+ in: string;
451
+ description: string;
452
+ required: boolean;
453
+ schema: {
454
+ type: string;
455
+ };
456
+ };
457
+ FilterKeysQuery: {
458
+ name: string;
459
+ in: string;
460
+ description: string;
461
+ required: boolean;
462
+ schema: {
463
+ type: string;
464
+ items: {
465
+ type: string;
466
+ };
467
+ };
468
+ };
469
+ SourceIdQuery: {
470
+ name: string;
471
+ in: string;
472
+ description: string;
473
+ required: boolean;
474
+ schema: {
475
+ type: string;
476
+ };
477
+ };
478
+ TargetIdQuery: {
479
+ name: string;
480
+ in: string;
481
+ description: string;
482
+ required: boolean;
483
+ schema: {
484
+ type: string;
485
+ };
486
+ };
487
+ MethodQuery: {
488
+ name: string;
489
+ in: string;
490
+ description: string;
491
+ required: boolean;
492
+ schema: {
493
+ type: string;
494
+ };
495
+ };
496
+ SortFieldQuery: {
497
+ name: string;
498
+ in: string;
499
+ description: string;
500
+ required: boolean;
501
+ schema: {
502
+ type: string;
503
+ };
504
+ };
505
+ TargetScopeQuery: {
506
+ name: string;
507
+ in: string;
508
+ description: string;
509
+ required: boolean;
510
+ content: {
511
+ 'application/json': {
512
+ schema: {
513
+ type: string;
514
+ additionalProperties: boolean;
515
+ };
516
+ };
517
+ };
518
+ };
519
+ StickyQuery: {
520
+ name: string;
521
+ in: string;
522
+ description: string;
523
+ required: boolean;
524
+ schema: {
525
+ type: string;
526
+ };
527
+ };
528
+ };
529
+ schemas: {
530
+ RouteIdList: {
531
+ type: string;
532
+ description: string;
533
+ items: {
534
+ type: string;
535
+ };
536
+ };
537
+ ErrorItem: {
538
+ type: string;
539
+ required: string[];
540
+ properties: {
541
+ code: {
542
+ type: string;
543
+ };
544
+ message: {
545
+ type: string;
546
+ };
547
+ details: {
548
+ type: string;
549
+ additionalProperties: boolean;
550
+ };
551
+ opId: {
552
+ type: string;
553
+ };
554
+ opIndex: {
555
+ type: string;
556
+ };
557
+ };
558
+ additionalProperties: boolean;
559
+ };
560
+ ErrorResponse: {
561
+ type: string;
562
+ required: string[];
563
+ properties: {
564
+ errors: {
565
+ type: string;
566
+ items: {
567
+ $ref: string;
568
+ };
569
+ };
570
+ };
571
+ additionalProperties: boolean;
572
+ };
573
+ DataWrappedDesktopRouteListResponse: {
574
+ type: string;
575
+ properties: {
576
+ data: {
577
+ type: string;
578
+ items: {
579
+ $ref: string;
580
+ };
581
+ };
582
+ };
583
+ additionalProperties: boolean;
584
+ };
585
+ DataWrappedNullableDesktopRouteResponse: {
586
+ type: string;
587
+ properties: {
588
+ data: {
589
+ anyOf: ({
590
+ $ref: string;
591
+ type?: undefined;
592
+ } | {
593
+ type: string;
594
+ $ref?: undefined;
595
+ })[];
596
+ };
597
+ };
598
+ additionalProperties: boolean;
599
+ };
600
+ DataWrappedDesktopRouteResponse: {
601
+ type: string;
602
+ properties: {
603
+ data: {
604
+ $ref: string;
605
+ };
606
+ };
607
+ additionalProperties: boolean;
608
+ };
609
+ DataWrappedDesktopRouteOrListResponse: {
610
+ type: string;
611
+ properties: {
612
+ data: {
613
+ anyOf: ({
614
+ $ref: string;
615
+ type?: undefined;
616
+ items?: undefined;
617
+ } | {
618
+ type: string;
619
+ items: {
620
+ $ref: string;
621
+ };
622
+ $ref?: undefined;
623
+ })[];
624
+ };
625
+ };
626
+ additionalProperties: boolean;
627
+ };
628
+ DataWrappedDesktopRouteCreateV2Response: {
629
+ type: string;
630
+ properties: {
631
+ data: {
632
+ $ref: string;
633
+ };
634
+ };
635
+ additionalProperties: boolean;
636
+ };
637
+ DataWrappedOkResponse: {
638
+ type: string;
639
+ properties: {
640
+ data: {
641
+ $ref: string;
642
+ };
643
+ };
644
+ additionalProperties: boolean;
645
+ };
646
+ DesktopRoute: {
647
+ type: string;
648
+ properties: {
649
+ id: {
650
+ oneOf: {
651
+ type: string;
652
+ }[];
653
+ };
654
+ title: {
655
+ type: string;
656
+ };
657
+ tooltip: {
658
+ type: string;
659
+ nullable: boolean;
660
+ };
661
+ type: {
662
+ type: string;
663
+ };
664
+ icon: {
665
+ type: string;
666
+ nullable: boolean;
667
+ };
668
+ path: {
669
+ type: string;
670
+ nullable: boolean;
671
+ };
672
+ parentId: {
673
+ anyOf: {
674
+ type: string;
675
+ }[];
676
+ };
677
+ schemaUid: {
678
+ type: string;
679
+ nullable: boolean;
680
+ };
681
+ menuSchemaUid: {
682
+ type: string;
683
+ nullable: boolean;
684
+ };
685
+ tabSchemaName: {
686
+ type: string;
687
+ nullable: boolean;
688
+ };
689
+ hideInMenu: {
690
+ type: string;
691
+ nullable: boolean;
692
+ };
693
+ enableTabs: {
694
+ type: string;
695
+ nullable: boolean;
696
+ };
697
+ enableHeader: {
698
+ type: string;
699
+ nullable: boolean;
700
+ };
701
+ displayTitle: {
702
+ type: string;
703
+ nullable: boolean;
704
+ };
705
+ hidden: {
706
+ type: string;
707
+ nullable: boolean;
708
+ };
709
+ sort: {
710
+ type: string;
711
+ nullable: boolean;
712
+ };
713
+ options: {
714
+ type: string;
715
+ additionalProperties: boolean;
716
+ nullable: boolean;
717
+ };
718
+ children: {
719
+ type: string;
720
+ items: {
721
+ $ref: string;
722
+ };
723
+ };
724
+ };
725
+ additionalProperties: boolean;
726
+ };
727
+ DesktopRouteCreateValues: {
728
+ type: string;
729
+ properties: {
730
+ type: {
731
+ type: string;
732
+ };
733
+ title: {
734
+ type: string;
735
+ };
736
+ tooltip: {
737
+ type: string;
738
+ };
739
+ icon: {
740
+ type: string;
741
+ };
742
+ parentId: {
743
+ anyOf: {
744
+ type: string;
745
+ }[];
746
+ };
747
+ schemaUid: {
748
+ type: string;
749
+ };
750
+ menuSchemaUid: {
751
+ type: string;
752
+ };
753
+ tabSchemaName: {
754
+ type: string;
755
+ };
756
+ hideInMenu: {
757
+ type: string;
758
+ };
759
+ enableTabs: {
760
+ type: string;
761
+ };
762
+ enableHeader: {
763
+ type: string;
764
+ };
765
+ displayTitle: {
766
+ type: string;
767
+ };
768
+ hidden: {
769
+ type: string;
770
+ };
771
+ sort: {
772
+ type: string;
773
+ };
774
+ options: {
775
+ type: string;
776
+ additionalProperties: boolean;
777
+ };
778
+ children: {
779
+ type: string;
780
+ items: {
781
+ type: string;
782
+ additionalProperties: boolean;
783
+ };
784
+ };
785
+ };
786
+ additionalProperties: boolean;
787
+ };
788
+ DesktopRouteUpdateValues: {
789
+ type: string;
790
+ additionalProperties: boolean;
791
+ };
792
+ DesktopRouteCreateV2Request: {
793
+ type: string;
794
+ required: string[];
795
+ properties: {
796
+ schemaUid: {
797
+ type: string;
798
+ };
799
+ parentId: {
800
+ anyOf: {
801
+ type: string;
802
+ }[];
803
+ };
804
+ title: {
805
+ type: string;
806
+ };
807
+ icon: {
808
+ type: string;
809
+ };
810
+ };
811
+ additionalProperties: boolean;
812
+ };
813
+ DesktopRouteCreateV2Response: {
814
+ type: string;
815
+ required: string[];
816
+ properties: {
817
+ page: {
818
+ type: string;
819
+ properties: {
820
+ id: {
821
+ oneOf: {
822
+ type: string;
823
+ }[];
824
+ };
825
+ schemaUid: {
826
+ type: string;
827
+ };
828
+ title: {
829
+ type: string;
830
+ };
831
+ icon: {
832
+ type: string;
833
+ nullable: boolean;
834
+ };
835
+ parentId: {
836
+ anyOf: {
837
+ type: string;
838
+ }[];
839
+ };
840
+ menuSchemaUid: {
841
+ type: string;
842
+ nullable: boolean;
843
+ };
844
+ };
845
+ additionalProperties: boolean;
846
+ };
847
+ defaultTab: {
848
+ type: string;
849
+ nullable: boolean;
850
+ properties: {
851
+ id: {
852
+ oneOf: {
853
+ type: string;
854
+ }[];
855
+ };
856
+ schemaUid: {
857
+ type: string;
858
+ };
859
+ tabSchemaName: {
860
+ type: string;
861
+ nullable: boolean;
862
+ };
863
+ };
864
+ additionalProperties: boolean;
865
+ };
866
+ };
867
+ additionalProperties: boolean;
868
+ };
869
+ DesktopRouteDestroyV2Request: {
870
+ type: string;
871
+ required: string[];
872
+ properties: {
873
+ schemaUid: {
874
+ type: string;
875
+ };
876
+ };
877
+ additionalProperties: boolean;
878
+ };
879
+ OkResponse: {
880
+ type: string;
881
+ required: string[];
882
+ properties: {
883
+ ok: {
884
+ type: string;
885
+ };
886
+ };
887
+ additionalProperties: boolean;
888
+ };
889
+ };
890
+ };
891
+ };
892
+ export default _default;