@rlvt/contents-openapi-client 0.0.0-fbfad7f → 0.0.0-ff83b1f

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.
package/build/api.d.ts CHANGED
@@ -1,13 +1,9 @@
1
1
  import { AxiosInstance, AxiosRequestConfig } from "axios";
2
2
  import type { ContentStatus } from "./definitions";
3
- export { ContentFontResources, Pick_SerializedContentFontResource_resourceGroupIds_or_family_or_files_, Partial_SerializedContentFontResource_, Contents, ContentStatus, Pick_SerializedContent_resourceGroupIds_or_name_or_description_, Partial_SerializedContent_, Partial_SerializedContentVersions_, AnyValue, Readable, WithoutReadonly, WithoutWriteonly } from "./definitions";
3
+ export { Contents, ContentStatus, Pick_SerializedContent_resourceGroupIds_or_name_or_description_, Partial_SerializedContent_, Partial_SerializedContentVersions_, Readable, WithoutReadonly, WithoutWriteonly } from "./definitions";
4
4
  export default class {
5
5
  axios: AxiosInstance;
6
6
  constructor(configOrInstance: AxiosRequestConfig | AxiosInstance);
7
- private listContentFontResource;
8
- private createContentFontResource;
9
- private getContentFontResource;
10
- private updateContentFontResource;
11
7
  private listContent;
12
8
  private createContent;
13
9
  private getContent;
@@ -15,147 +11,12 @@ export default class {
15
11
  private deleteContent;
16
12
  private publishContent;
17
13
  private renderContent;
18
- get ContentResource(): {
19
- listContentFontResource: (params: {
20
- ids?: string[];
21
- resourceGroupIds?: string[];
22
- }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
23
- status: "success";
24
- program: string;
25
- version: string;
26
- datetime: string;
27
- code?: number;
28
- message: string;
29
- data: {
30
- resourceGroupIds: string[];
31
- readonly id: string & {
32
- readonly?: "__readonly";
33
- };
34
- readonly createdAt: Date & {
35
- readonly?: "__readonly";
36
- };
37
- readonly updatedAt: Date & {
38
- readonly?: "__readonly";
39
- };
40
- family: string;
41
- files: {
42
- [x: string]: string;
43
- };
44
- readonly companyId: string & {
45
- readonly?: "__readonly";
46
- };
47
- type: "font";
48
- }[];
49
- }>>;
50
- createContentFontResource: (data: {
51
- resourceGroupIds: string[];
52
- family: string;
53
- files: {
54
- [x: string]: string;
55
- };
56
- }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
57
- status: "success";
58
- program: string;
59
- version: string;
60
- datetime: string;
61
- code?: number;
62
- message: string;
63
- data: {
64
- resourceGroupIds: string[];
65
- readonly id: string & {
66
- readonly?: "__readonly";
67
- };
68
- readonly createdAt: Date & {
69
- readonly?: "__readonly";
70
- };
71
- readonly updatedAt: Date & {
72
- readonly?: "__readonly";
73
- };
74
- family: string;
75
- files: {
76
- [x: string]: string;
77
- };
78
- readonly companyId: string & {
79
- readonly?: "__readonly";
80
- };
81
- type: "font";
82
- };
83
- }>>;
84
- getContentFontResource: (params: {
85
- id: string;
86
- }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
87
- status: "success";
88
- program: string;
89
- version: string;
90
- datetime: string;
91
- code?: number;
92
- message: string;
93
- data: {
94
- resourceGroupIds: string[];
95
- readonly id: string & {
96
- readonly?: "__readonly";
97
- };
98
- readonly createdAt: Date & {
99
- readonly?: "__readonly";
100
- };
101
- readonly updatedAt: Date & {
102
- readonly?: "__readonly";
103
- };
104
- family: string;
105
- files: {
106
- [x: string]: string;
107
- };
108
- readonly companyId: string & {
109
- readonly?: "__readonly";
110
- };
111
- type: "font";
112
- };
113
- }>>;
114
- updateContentFontResource: (params: {
115
- id: string;
116
- }, data: {
117
- resourceGroupIds?: string[];
118
- family?: string;
119
- files?: {
120
- [x: string]: string;
121
- };
122
- type?: "font";
123
- }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
124
- status: "success";
125
- program: string;
126
- version: string;
127
- datetime: string;
128
- code?: number;
129
- message: string;
130
- data: {
131
- resourceGroupIds: string[];
132
- readonly id: string & {
133
- readonly?: "__readonly";
134
- };
135
- readonly createdAt: Date & {
136
- readonly?: "__readonly";
137
- };
138
- readonly updatedAt: Date & {
139
- readonly?: "__readonly";
140
- };
141
- family: string;
142
- files: {
143
- [x: string]: string;
144
- };
145
- readonly companyId: string & {
146
- readonly?: "__readonly";
147
- };
148
- type: "font";
149
- };
150
- }>>;
151
- };
152
14
  get Content(): {
153
15
  list: (params: {
154
- ids?: string[];
155
16
  name?: string;
156
17
  resourceGroupIds?: string[];
157
18
  status?: ContentStatus[];
158
- sortBy?: "createdAt" | "updatedAt";
19
+ sortBy?: "updatedAt" | "createdAt";
159
20
  sortOrder?: "desc" | "asc";
160
21
  page?: number;
161
22
  perPage?: number;
@@ -171,17 +32,14 @@ export default class {
171
32
  message: string;
172
33
  data: {
173
34
  description?: string;
174
- resourceGroupIds: string[];
175
- readonly id: string & {
35
+ readonly updatedAt: Date & {
176
36
  readonly?: "__readonly";
177
37
  };
178
38
  readonly createdAt: Date & {
179
39
  readonly?: "__readonly";
180
40
  };
181
- readonly updatedAt: Date & {
182
- readonly?: "__readonly";
183
- };
184
41
  name: string;
42
+ resourceGroupIds: string[];
185
43
  readonly status: (ContentStatus.DRAFT & {
186
44
  readonly?: "__readonly";
187
45
  }) | (ContentStatus.PUBLISHING & {
@@ -191,6 +49,9 @@ export default class {
191
49
  }) | (ContentStatus.ERROR & {
192
50
  readonly?: "__readonly";
193
51
  });
52
+ readonly id: string & {
53
+ readonly?: "__readonly";
54
+ };
194
55
  readonly companyId: string & {
195
56
  readonly?: "__readonly";
196
57
  };
@@ -203,108 +64,21 @@ export default class {
203
64
  readonly?: "__readonly";
204
65
  });
205
66
  previewUrl?: string;
206
- metadata?: {
207
- [x: string]: any;
208
- };
67
+ metadata?: {};
209
68
  template: {
210
- components: {
211
- [x: string]: {
212
- name?: string;
213
- type: string;
214
- rendered: boolean;
215
- options: {
216
- [x: string]: any;
217
- };
218
- };
219
- };
220
- dependencies: {
221
- [x: string]: {
222
- type: string;
223
- options: {
224
- [x: string]: any;
225
- };
226
- };
227
- };
228
- pages: {
229
- [x: string]: {
230
- components: {
231
- id: string;
232
- width: number;
233
- height: number;
234
- x: number;
235
- y: number;
236
- rotation: number;
237
- }[];
238
- width: number;
239
- height: number;
240
- orderTree: {
241
- root: string[];
242
- elements: {
243
- [x: string]: {
244
- type: "conditionGroup";
245
- } | {
246
- type: "condition";
247
- children: string[];
248
- } | {
249
- type: "component";
250
- } | {
251
- type: "componentGroup";
252
- children: string[];
253
- };
254
- };
255
- };
256
- url?: ({
257
- type: "static";
258
- value: string;
259
- } | {
260
- type: "dependency";
261
- value: string;
262
- })[];
263
- };
264
- };
265
- conditionGroups: {
266
- [x: string]: {
267
- name?: string;
268
- conditions: ({
269
- id: string;
270
- type: "and" | "or";
271
- rules: {
272
- value: {
273
- type: "static";
274
- value: string | number;
275
- } | {
276
- type: "dependency";
277
- value: string;
278
- };
279
- field: {
280
- type: "static";
281
- value: string | number;
282
- } | {
283
- type: "dependency";
284
- value: string;
285
- };
286
- operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
287
- }[];
288
- } | {
289
- id: string;
290
- isElse: true;
291
- })[];
292
- };
293
- };
294
- componentGroups: {
295
- [x: string]: {
296
- name?: string;
297
- rendered: boolean;
298
- };
299
- };
69
+ components: {};
70
+ dependencies: {};
71
+ pages: {};
72
+ conditionGroups: {};
73
+ componentGroups: {};
300
74
  };
301
75
  }[];
302
76
  }[];
303
77
  }>>;
304
78
  create: (data: {
305
79
  description?: string;
306
- resourceGroupIds: string[];
307
80
  name: string;
81
+ resourceGroupIds: string[];
308
82
  }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
309
83
  status: "success";
310
84
  program: string;
@@ -314,17 +88,14 @@ export default class {
314
88
  message: string;
315
89
  data: {
316
90
  description?: string;
317
- resourceGroupIds: string[];
318
- readonly id: string & {
91
+ readonly updatedAt: Date & {
319
92
  readonly?: "__readonly";
320
93
  };
321
94
  readonly createdAt: Date & {
322
95
  readonly?: "__readonly";
323
96
  };
324
- readonly updatedAt: Date & {
325
- readonly?: "__readonly";
326
- };
327
97
  name: string;
98
+ resourceGroupIds: string[];
328
99
  readonly status: (ContentStatus.DRAFT & {
329
100
  readonly?: "__readonly";
330
101
  }) | (ContentStatus.PUBLISHING & {
@@ -334,6 +105,9 @@ export default class {
334
105
  }) | (ContentStatus.ERROR & {
335
106
  readonly?: "__readonly";
336
107
  });
108
+ readonly id: string & {
109
+ readonly?: "__readonly";
110
+ };
337
111
  readonly companyId: string & {
338
112
  readonly?: "__readonly";
339
113
  };
@@ -346,100 +120,13 @@ export default class {
346
120
  readonly?: "__readonly";
347
121
  });
348
122
  previewUrl?: string;
349
- metadata?: {
350
- [x: string]: any;
351
- };
123
+ metadata?: {};
352
124
  template: {
353
- components: {
354
- [x: string]: {
355
- name?: string;
356
- type: string;
357
- rendered: boolean;
358
- options: {
359
- [x: string]: any;
360
- };
361
- };
362
- };
363
- dependencies: {
364
- [x: string]: {
365
- type: string;
366
- options: {
367
- [x: string]: any;
368
- };
369
- };
370
- };
371
- pages: {
372
- [x: string]: {
373
- components: {
374
- id: string;
375
- width: number;
376
- height: number;
377
- x: number;
378
- y: number;
379
- rotation: number;
380
- }[];
381
- width: number;
382
- height: number;
383
- orderTree: {
384
- root: string[];
385
- elements: {
386
- [x: string]: {
387
- type: "conditionGroup";
388
- } | {
389
- type: "condition";
390
- children: string[];
391
- } | {
392
- type: "component";
393
- } | {
394
- type: "componentGroup";
395
- children: string[];
396
- };
397
- };
398
- };
399
- url?: ({
400
- type: "static";
401
- value: string;
402
- } | {
403
- type: "dependency";
404
- value: string;
405
- })[];
406
- };
407
- };
408
- conditionGroups: {
409
- [x: string]: {
410
- name?: string;
411
- conditions: ({
412
- id: string;
413
- type: "and" | "or";
414
- rules: {
415
- value: {
416
- type: "static";
417
- value: string | number;
418
- } | {
419
- type: "dependency";
420
- value: string;
421
- };
422
- field: {
423
- type: "static";
424
- value: string | number;
425
- } | {
426
- type: "dependency";
427
- value: string;
428
- };
429
- operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
430
- }[];
431
- } | {
432
- id: string;
433
- isElse: true;
434
- })[];
435
- };
436
- };
437
- componentGroups: {
438
- [x: string]: {
439
- name?: string;
440
- rendered: boolean;
441
- };
442
- };
125
+ components: {};
126
+ dependencies: {};
127
+ pages: {};
128
+ conditionGroups: {};
129
+ componentGroups: {};
443
130
  };
444
131
  }[];
445
132
  };
@@ -455,17 +142,14 @@ export default class {
455
142
  message: string;
456
143
  data: {
457
144
  description?: string;
458
- resourceGroupIds: string[];
459
- readonly id: string & {
145
+ readonly updatedAt: Date & {
460
146
  readonly?: "__readonly";
461
147
  };
462
148
  readonly createdAt: Date & {
463
149
  readonly?: "__readonly";
464
150
  };
465
- readonly updatedAt: Date & {
466
- readonly?: "__readonly";
467
- };
468
151
  name: string;
152
+ resourceGroupIds: string[];
469
153
  readonly status: (ContentStatus.DRAFT & {
470
154
  readonly?: "__readonly";
471
155
  }) | (ContentStatus.PUBLISHING & {
@@ -475,6 +159,9 @@ export default class {
475
159
  }) | (ContentStatus.ERROR & {
476
160
  readonly?: "__readonly";
477
161
  });
162
+ readonly id: string & {
163
+ readonly?: "__readonly";
164
+ };
478
165
  readonly companyId: string & {
479
166
  readonly?: "__readonly";
480
167
  };
@@ -487,100 +174,13 @@ export default class {
487
174
  readonly?: "__readonly";
488
175
  });
489
176
  previewUrl?: string;
490
- metadata?: {
491
- [x: string]: any;
492
- };
177
+ metadata?: {};
493
178
  template: {
494
- components: {
495
- [x: string]: {
496
- name?: string;
497
- type: string;
498
- rendered: boolean;
499
- options: {
500
- [x: string]: any;
501
- };
502
- };
503
- };
504
- dependencies: {
505
- [x: string]: {
506
- type: string;
507
- options: {
508
- [x: string]: any;
509
- };
510
- };
511
- };
512
- pages: {
513
- [x: string]: {
514
- components: {
515
- id: string;
516
- width: number;
517
- height: number;
518
- x: number;
519
- y: number;
520
- rotation: number;
521
- }[];
522
- width: number;
523
- height: number;
524
- orderTree: {
525
- root: string[];
526
- elements: {
527
- [x: string]: {
528
- type: "conditionGroup";
529
- } | {
530
- type: "condition";
531
- children: string[];
532
- } | {
533
- type: "component";
534
- } | {
535
- type: "componentGroup";
536
- children: string[];
537
- };
538
- };
539
- };
540
- url?: ({
541
- type: "static";
542
- value: string;
543
- } | {
544
- type: "dependency";
545
- value: string;
546
- })[];
547
- };
548
- };
549
- conditionGroups: {
550
- [x: string]: {
551
- name?: string;
552
- conditions: ({
553
- id: string;
554
- type: "and" | "or";
555
- rules: {
556
- value: {
557
- type: "static";
558
- value: string | number;
559
- } | {
560
- type: "dependency";
561
- value: string;
562
- };
563
- field: {
564
- type: "static";
565
- value: string | number;
566
- } | {
567
- type: "dependency";
568
- value: string;
569
- };
570
- operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
571
- }[];
572
- } | {
573
- id: string;
574
- isElse: true;
575
- })[];
576
- };
577
- };
578
- componentGroups: {
579
- [x: string]: {
580
- name?: string;
581
- rendered: boolean;
582
- };
583
- };
179
+ components: {};
180
+ dependencies: {};
181
+ pages: {};
182
+ conditionGroups: {};
183
+ componentGroups: {};
584
184
  };
585
185
  }[];
586
186
  };
@@ -589,104 +189,17 @@ export default class {
589
189
  id: string;
590
190
  }, data: {
591
191
  description?: string;
592
- resourceGroupIds?: string[];
593
192
  name?: string;
193
+ resourceGroupIds?: string[];
594
194
  } & {
595
195
  previewUrl?: string;
596
- metadata?: {
597
- [x: string]: any;
598
- };
196
+ metadata?: {};
599
197
  template?: {
600
- components: {
601
- [x: string]: {
602
- name?: string;
603
- type: string;
604
- rendered: boolean;
605
- options: {
606
- [x: string]: any;
607
- };
608
- };
609
- };
610
- dependencies: {
611
- [x: string]: {
612
- type: string;
613
- options: {
614
- [x: string]: any;
615
- };
616
- };
617
- };
618
- pages: {
619
- [x: string]: {
620
- components: {
621
- id: string;
622
- width: number;
623
- height: number;
624
- x: number;
625
- y: number;
626
- rotation: number;
627
- }[];
628
- width: number;
629
- height: number;
630
- orderTree: {
631
- root: string[];
632
- elements: {
633
- [x: string]: {
634
- type: "conditionGroup";
635
- } | {
636
- type: "condition";
637
- children: string[];
638
- } | {
639
- type: "component";
640
- } | {
641
- type: "componentGroup";
642
- children: string[];
643
- };
644
- };
645
- };
646
- url?: ({
647
- type: "static";
648
- value: string;
649
- } | {
650
- type: "dependency";
651
- value: string;
652
- })[];
653
- };
654
- };
655
- conditionGroups: {
656
- [x: string]: {
657
- name?: string;
658
- conditions: ({
659
- id: string;
660
- type: "and" | "or";
661
- rules: {
662
- value: {
663
- type: "static";
664
- value: string | number;
665
- } | {
666
- type: "dependency";
667
- value: string;
668
- };
669
- field: {
670
- type: "static";
671
- value: string | number;
672
- } | {
673
- type: "dependency";
674
- value: string;
675
- };
676
- operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
677
- }[];
678
- } | {
679
- id: string;
680
- isElse: true;
681
- })[];
682
- };
683
- };
684
- componentGroups: {
685
- [x: string]: {
686
- name?: string;
687
- rendered: boolean;
688
- };
689
- };
198
+ components: {};
199
+ dependencies: {};
200
+ pages: {};
201
+ conditionGroups: {};
202
+ componentGroups: {};
690
203
  };
691
204
  }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
692
205
  status: "success";
@@ -697,17 +210,14 @@ export default class {
697
210
  message: string;
698
211
  data: {
699
212
  description?: string;
700
- resourceGroupIds: string[];
701
- readonly id: string & {
213
+ readonly updatedAt: Date & {
702
214
  readonly?: "__readonly";
703
215
  };
704
216
  readonly createdAt: Date & {
705
217
  readonly?: "__readonly";
706
218
  };
707
- readonly updatedAt: Date & {
708
- readonly?: "__readonly";
709
- };
710
219
  name: string;
220
+ resourceGroupIds: string[];
711
221
  readonly status: (ContentStatus.DRAFT & {
712
222
  readonly?: "__readonly";
713
223
  }) | (ContentStatus.PUBLISHING & {
@@ -717,6 +227,9 @@ export default class {
717
227
  }) | (ContentStatus.ERROR & {
718
228
  readonly?: "__readonly";
719
229
  });
230
+ readonly id: string & {
231
+ readonly?: "__readonly";
232
+ };
720
233
  readonly companyId: string & {
721
234
  readonly?: "__readonly";
722
235
  };
@@ -729,107 +242,19 @@ export default class {
729
242
  readonly?: "__readonly";
730
243
  });
731
244
  previewUrl?: string;
732
- metadata?: {
733
- [x: string]: any;
734
- };
245
+ metadata?: {};
735
246
  template: {
736
- components: {
737
- [x: string]: {
738
- name?: string;
739
- type: string;
740
- rendered: boolean;
741
- options: {
742
- [x: string]: any;
743
- };
744
- };
745
- };
746
- dependencies: {
747
- [x: string]: {
748
- type: string;
749
- options: {
750
- [x: string]: any;
751
- };
752
- };
753
- };
754
- pages: {
755
- [x: string]: {
756
- components: {
757
- id: string;
758
- width: number;
759
- height: number;
760
- x: number;
761
- y: number;
762
- rotation: number;
763
- }[];
764
- width: number;
765
- height: number;
766
- orderTree: {
767
- root: string[];
768
- elements: {
769
- [x: string]: {
770
- type: "conditionGroup";
771
- } | {
772
- type: "condition";
773
- children: string[];
774
- } | {
775
- type: "component";
776
- } | {
777
- type: "componentGroup";
778
- children: string[];
779
- };
780
- };
781
- };
782
- url?: ({
783
- type: "static";
784
- value: string;
785
- } | {
786
- type: "dependency";
787
- value: string;
788
- })[];
789
- };
790
- };
791
- conditionGroups: {
792
- [x: string]: {
793
- name?: string;
794
- conditions: ({
795
- id: string;
796
- type: "and" | "or";
797
- rules: {
798
- value: {
799
- type: "static";
800
- value: string | number;
801
- } | {
802
- type: "dependency";
803
- value: string;
804
- };
805
- field: {
806
- type: "static";
807
- value: string | number;
808
- } | {
809
- type: "dependency";
810
- value: string;
811
- };
812
- operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
813
- }[];
814
- } | {
815
- id: string;
816
- isElse: true;
817
- })[];
818
- };
819
- };
820
- componentGroups: {
821
- [x: string]: {
822
- name?: string;
823
- rendered: boolean;
824
- };
825
- };
247
+ components: {};
248
+ dependencies: {};
249
+ pages: {};
250
+ conditionGroups: {};
251
+ componentGroups: {};
826
252
  };
827
253
  }[];
828
254
  };
829
255
  }>>;
830
256
  delete: (params: {
831
257
  id: string;
832
- 'dry-run'?: boolean;
833
258
  }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
834
259
  status: "success";
835
260
  program: string;
@@ -850,17 +275,14 @@ export default class {
850
275
  message: string;
851
276
  data: {
852
277
  description?: string;
853
- resourceGroupIds: string[];
854
- readonly id: string & {
278
+ readonly updatedAt: Date & {
855
279
  readonly?: "__readonly";
856
280
  };
857
281
  readonly createdAt: Date & {
858
282
  readonly?: "__readonly";
859
283
  };
860
- readonly updatedAt: Date & {
861
- readonly?: "__readonly";
862
- };
863
284
  name: string;
285
+ resourceGroupIds: string[];
864
286
  readonly status: (ContentStatus.DRAFT & {
865
287
  readonly?: "__readonly";
866
288
  }) | (ContentStatus.PUBLISHING & {
@@ -870,6 +292,9 @@ export default class {
870
292
  }) | (ContentStatus.ERROR & {
871
293
  readonly?: "__readonly";
872
294
  });
295
+ readonly id: string & {
296
+ readonly?: "__readonly";
297
+ };
873
298
  readonly companyId: string & {
874
299
  readonly?: "__readonly";
875
300
  };
@@ -882,111 +307,24 @@ export default class {
882
307
  readonly?: "__readonly";
883
308
  });
884
309
  previewUrl?: string;
885
- metadata?: {
886
- [x: string]: any;
887
- };
310
+ metadata?: {};
888
311
  template: {
889
- components: {
890
- [x: string]: {
891
- name?: string;
892
- type: string;
893
- rendered: boolean;
894
- options: {
895
- [x: string]: any;
896
- };
897
- };
898
- };
899
- dependencies: {
900
- [x: string]: {
901
- type: string;
902
- options: {
903
- [x: string]: any;
904
- };
905
- };
906
- };
907
- pages: {
908
- [x: string]: {
909
- components: {
910
- id: string;
911
- width: number;
912
- height: number;
913
- x: number;
914
- y: number;
915
- rotation: number;
916
- }[];
917
- width: number;
918
- height: number;
919
- orderTree: {
920
- root: string[];
921
- elements: {
922
- [x: string]: {
923
- type: "conditionGroup";
924
- } | {
925
- type: "condition";
926
- children: string[];
927
- } | {
928
- type: "component";
929
- } | {
930
- type: "componentGroup";
931
- children: string[];
932
- };
933
- };
934
- };
935
- url?: ({
936
- type: "static";
937
- value: string;
938
- } | {
939
- type: "dependency";
940
- value: string;
941
- })[];
942
- };
943
- };
944
- conditionGroups: {
945
- [x: string]: {
946
- name?: string;
947
- conditions: ({
948
- id: string;
949
- type: "and" | "or";
950
- rules: {
951
- value: {
952
- type: "static";
953
- value: string | number;
954
- } | {
955
- type: "dependency";
956
- value: string;
957
- };
958
- field: {
959
- type: "static";
960
- value: string | number;
961
- } | {
962
- type: "dependency";
963
- value: string;
964
- };
965
- operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
966
- }[];
967
- } | {
968
- id: string;
969
- isElse: true;
970
- })[];
971
- };
972
- };
973
- componentGroups: {
974
- [x: string]: {
975
- name?: string;
976
- rendered: boolean;
977
- };
978
- };
312
+ components: {};
313
+ dependencies: {};
314
+ pages: {};
315
+ conditionGroups: {};
316
+ componentGroups: {};
979
317
  };
980
318
  }[];
981
319
  };
982
320
  }>>;
983
- render: (params: {
321
+ };
322
+ get Render(): {
323
+ Content: (params: {
984
324
  id: string;
985
325
  'x-rlvt-no-cache'?: boolean;
986
326
  }, data: {
987
- dependenciesData: {
988
- [key: string]: any;
989
- };
327
+ dependenciesData: {};
990
328
  }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
991
329
  readable: boolean;
992
330
  readonly readableEncoding: ("ascii" & {
package/build/api.js CHANGED
@@ -15,23 +15,9 @@ class default_1 {
15
15
  ? configOrInstance
16
16
  : axios_1.default.create(configOrInstance);
17
17
  }
18
- listContentFontResource(params, options) {
19
- return this.axios.get("/contents/fonts", Object.assign({}, {
20
- params: pick(params, "ids", "resourceGroupIds"),
21
- }, options));
22
- }
23
- createContentFontResource(data, options) {
24
- return this.axios.post("/contents/fonts", data, options);
25
- }
26
- getContentFontResource(params, options) {
27
- return this.axios.get("/contents/fonts/{id}".replace(/{id}/, String(params["id"])), options);
28
- }
29
- updateContentFontResource(params, data, options) {
30
- return this.axios.patch("/contents/fonts/{id}".replace(/{id}/, String(params["id"])), data, options);
31
- }
32
18
  listContent(params, options) {
33
19
  return this.axios.get("/contents", Object.assign({}, {
34
- params: pick(params, "ids", "name", "resourceGroupIds", "status", "sortBy", "sortOrder", "page", "perPage"),
20
+ params: pick(params, "name", "resourceGroupIds", "status", "sortBy", "sortOrder", "page", "perPage"),
35
21
  }, options));
36
22
  }
37
23
  createContent(data, options) {
@@ -44,9 +30,7 @@ class default_1 {
44
30
  return this.axios.patch("/contents/{id}".replace(/{id}/, String(params["id"])), data, options);
45
31
  }
46
32
  deleteContent(params, options) {
47
- return this.axios.delete("/contents/{id}".replace(/{id}/, String(params["id"])), Object.assign({}, {
48
- params: pick(params, "dry-run"),
49
- }, options));
33
+ return this.axios.delete("/contents/{id}".replace(/{id}/, String(params["id"])), options);
50
34
  }
51
35
  publishContent(params, options) {
52
36
  return this.axios.post("/contents/{id}/publish".replace(/{id}/, String(params["id"])), {}, options);
@@ -56,14 +40,6 @@ class default_1 {
56
40
  headers: pick(params, "x-rlvt-no-cache"),
57
41
  }, options));
58
42
  }
59
- get ContentResource() {
60
- return {
61
- listContentFontResource: this.listContentFontResource.bind(this),
62
- createContentFontResource: this.createContentFontResource.bind(this),
63
- getContentFontResource: this.getContentFontResource.bind(this),
64
- updateContentFontResource: this.updateContentFontResource.bind(this)
65
- };
66
- }
67
43
  get Content() {
68
44
  return {
69
45
  list: this.listContent.bind(this),
@@ -71,8 +47,12 @@ class default_1 {
71
47
  get: this.getContent.bind(this),
72
48
  update: this.updateContent.bind(this),
73
49
  delete: this.deleteContent.bind(this),
74
- publish: this.publishContent.bind(this),
75
- render: this.renderContent.bind(this)
50
+ publish: this.publishContent.bind(this)
51
+ };
52
+ }
53
+ get Render() {
54
+ return {
55
+ Content: this.renderContent.bind(this)
76
56
  };
77
57
  }
78
58
  }
@@ -85,4 +65,4 @@ function pick(obj, ...keys) {
85
65
  });
86
66
  return ret;
87
67
  }
88
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBpLmpzIiwic291cmNlUm9vdCI6IiIsIn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SSxDQUFDO1lBQy9CLE1BQU0sRUFBRSxJQUFJLENBQUMsYUFBYSxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUM7WUFDckMsTUFBTSxFQUFFLElBQUksQ0FBQyxhQUFhLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQztZQUNyQyxPQUFPLEVBQUUsSUFBSSxDQUFDLGNBQWMsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDO1NBQzFDLENBQUM7SUFDTixDQUFDO0lBRUQsSUFBSSxNQUFNO1FBQ04sT0FBTztZQUNILE9BQU8sRUFBRSxJQUFJLENBQUMsYUFBYSxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUM7U0FDekMsQ0FBQztJQUNOLENBQUM7Q0FDSjtBQXpKRCw0QkF5SkM7QUFFRCxTQUFTLElBQUksQ0FBdUIsR0FBTSxFQUFFLEdBQUcsSUFBUztJQUNwRCxNQUFNLEdBQUcsR0FBZSxFQUFnQixDQUFDO0lBQ3pDLElBQUksQ0FBQyxPQUFPLENBQUMsR0FBRyxDQUFDLEVBQUU7UUFDZixJQUFJLEdBQUcsSUFBSSxNQUFNLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxDQUFDLFFBQVEsQ0FBQyxHQUFhLENBQUM7WUFDL0MsR0FBRyxDQUFDLEdBQUcsQ0FBQyxHQUFHLEdBQUcsQ0FBQyxHQUFHLENBQUMsQ0FBQztJQUM1QixDQUFDLENBQUMsQ0FBQztJQUNILE9BQU8sR0FBRyxDQUFDO0FBQ2YsQ0FBQyJ9
@@ -17,89 +17,25 @@ declare type PropsWithoutWriteonly<T> = {
17
17
  export declare type WithoutWriteonly<T> = T extends any ? T extends Primitive ? T : T extends Array<infer U> ? WithoutWriteonly<U>[] : {
18
18
  [key in keyof Pick<T, PropsWithoutWriteonly<T>>]: Pick<T, PropsWithoutWriteonly<T>>[key] extends any ? WithoutWriteonly<Pick<T, PropsWithoutWriteonly<T>>[key]> : never;
19
19
  } : never;
20
- export declare type SerializedContentResource = {
21
- readonly id: (string) & readonlyP;
22
- readonly companyId: (string) & readonlyP;
23
- resourceGroupIds: string[];
24
- readonly createdAt: (Date) & readonlyP;
25
- readonly updatedAt: (Date) & readonlyP;
26
- };
27
- export declare type Pick_ContentFontResources_type_or_family_or_files_ = {
28
- type: "font";
29
- family: string;
30
- files: {
31
- [key: string]: string;
32
- };
33
- };
34
- export declare type ContentFontResources = SerializedContentResource & Pick_ContentFontResources_type_or_family_or_files_;
35
- export declare type Pick_SerializedContentFontResource_resourceGroupIds_or_family_or_files_ = {
36
- resourceGroupIds: string[];
37
- family: string;
38
- files: {
39
- [key: string]: string;
40
- };
41
- };
42
- export declare type Partial_SerializedContentFontResource_ = {
43
- readonly id?: (string) & readonlyP;
44
- readonly companyId?: (string) & readonlyP;
45
- resourceGroupIds?: string[];
46
- readonly createdAt?: (Date) & readonlyP;
47
- readonly updatedAt?: (Date) & readonlyP;
48
- type?: "font";
49
- family?: string;
50
- files?: {
51
- [key: string]: string;
52
- };
53
- };
54
20
  export declare enum ContentVersionState {
55
21
  DRAFT = "draft",
56
22
  LIVE = "live",
57
23
  INACTIVE = "inactive"
58
24
  }
59
25
  export declare type AnyValue = any | null;
60
- export declare type _id_string_x_number_y_number_width_number_height_number_rotation_number__ = {
26
+ export declare type PageComponent = {
61
27
  id: string;
62
28
  x: number;
63
29
  y: number;
30
+ z: number;
64
31
  width: number;
65
32
  height: number;
66
33
  rotation: number;
67
34
  };
68
- export declare type _type_conditionGroup__ = {
69
- type: "conditionGroup";
70
- };
71
- export declare type _type_condition_children_string_Array__ = {
72
- type: "condition";
73
- children: string[];
74
- };
75
- export declare type _type_component__ = {
76
- type: "component";
77
- };
78
- export declare type _type_componentGroup_children_string_Array__ = {
79
- type: "componentGroup";
80
- children: string[];
81
- };
82
- export declare type __x_string___type_conditionGroup___or__type_condition_children_string_Array___or__type_component___or__type_componentGroup_children_string_Array____ = {
83
- [key: string]: _type_conditionGroup__ | _type_condition_children_string_Array__ | _type_component__ | _type_componentGroup_children_string_Array__;
84
- };
85
- export declare type _root_string_Array_elements___x_string___type_conditionGroup___or__type_condition_children_string_Array___or__type_component___or__type_componentGroup_children_string_Array______ = {
86
- root: string[];
87
- elements: __x_string___type_conditionGroup___or__type_condition_children_string_Array___or__type_component___or__type_componentGroup_children_string_Array____;
88
- };
89
- export declare type _type_static_value_string__ = {
90
- type: "static";
91
- value: string;
92
- };
93
- export declare type _type_dependency_value_string__ = {
94
- type: "dependency";
95
- value: string;
96
- };
97
- export declare type _width_number_height_number_components__id_string_x_number_y_number_width_number_height_number_rotation_number___Array_orderTree__root_string_Array_elements___x_string___type_conditionGroup___or__type_condition_children_string_Array___or__type_component___or__type_componentGroup_children_string_Array_______url___type_static_value_string___or__type_dependency_value_string____Array_or_undefined__ = {
35
+ export declare type Page = {
98
36
  width: number;
99
37
  height: number;
100
- components: _id_string_x_number_y_number_width_number_height_number_rotation_number__[];
101
- orderTree: _root_string_Array_elements___x_string___type_conditionGroup___or__type_condition_children_string_Array___or__type_component___or__type_componentGroup_children_string_Array______;
102
- url?: (_type_static_value_string__ | _type_dependency_value_string__)[];
38
+ components: PageComponent[];
103
39
  };
104
40
  export declare type Condition = {
105
41
  id: string;
@@ -121,54 +57,48 @@ export declare type Condition = {
121
57
  value: string;
122
58
  };
123
59
  }[];
60
+ components: string[];
124
61
  };
125
62
  export declare type ElseCondition = {
126
- id: string;
127
- isElse: true;
63
+ id: "else";
64
+ components: string[];
128
65
  };
129
66
  export declare type ConditionGroup = {
67
+ parent?: {
68
+ type: "conditionGroup";
69
+ id: string;
70
+ conditionId: string;
71
+ } | {
72
+ type: "componentGroup";
73
+ id: string;
74
+ };
130
75
  name?: string;
131
76
  conditions: (Condition | Condition | ElseCondition)[];
132
77
  };
133
78
  export declare type ComponentGroup = {
134
79
  name?: string;
80
+ parent?: {
81
+ type: "conditionGroup";
82
+ id: string;
83
+ conditionId: string;
84
+ } | {
85
+ type: "componentGroup";
86
+ id: string;
87
+ };
88
+ components: string[];
135
89
  rendered: boolean;
136
90
  };
137
91
  export declare type BaseTemplate = {
138
- components: {
139
- [key: string]: {
140
- name?: string;
141
- type: string;
142
- rendered: boolean;
143
- options: {
144
- [key: string]: AnyValue;
145
- };
146
- };
147
- };
148
- dependencies: {
149
- [key: string]: {
150
- type: string;
151
- options: {
152
- [key: string]: AnyValue;
153
- };
154
- };
155
- };
156
- pages: {
157
- [key: string]: _width_number_height_number_components__id_string_x_number_y_number_width_number_height_number_rotation_number___Array_orderTree__root_string_Array_elements___x_string___type_conditionGroup___or__type_condition_children_string_Array___or__type_component___or__type_componentGroup_children_string_Array_______url___type_static_value_string___or__type_dependency_value_string____Array_or_undefined__;
158
- };
159
- conditionGroups: {
160
- [key: string]: ConditionGroup;
161
- };
162
- componentGroups: {
163
- [key: string]: ComponentGroup;
164
- };
92
+ components: {};
93
+ dependencies: {};
94
+ pages: {};
95
+ conditionGroups: {};
96
+ componentGroups: {};
165
97
  };
166
98
  export declare type SerializedContentVersions = {
167
99
  readonly state: (ContentVersionState) & readonlyP;
168
100
  previewUrl?: string;
169
- metadata?: {
170
- [key: string]: AnyValue;
171
- };
101
+ metadata?: {};
172
102
  template: BaseTemplate;
173
103
  };
174
104
  export declare type ContentVersions = SerializedContentVersions;
@@ -209,9 +139,7 @@ export declare type Partial_SerializedContent_ = {
209
139
  export declare type Partial_SerializedContentVersions_ = {
210
140
  readonly state?: (ContentVersionState) & readonlyP;
211
141
  previewUrl?: string;
212
- metadata?: {
213
- [key: string]: AnyValue;
214
- };
142
+ metadata?: {};
215
143
  template?: BaseTemplate;
216
144
  };
217
145
  export declare type Readable = {
@@ -16,4 +16,4 @@ var ContentStatus;
16
16
  ContentStatus["PUBLISHED"] = "published";
17
17
  ContentStatus["ERROR"] = "error";
18
18
  })(ContentStatus = exports.ContentStatus || (exports.ContentStatus = {}));
19
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmaW5pdGlvbnMuanMiLCJzb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SxDQUFBO0FBQ25CLENBQUMsRUFMVyxhQUFhLEdBQWIscUJBQWEsS0FBYixxQkFBYSxRQUt4QiJ9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rlvt/contents-openapi-client",
3
- "version": "0.0.0-fbfad7f",
3
+ "version": "0.0.0-ff83b1f",
4
4
  "description": "Openapi client for reelevant service",
5
5
  "main": "build/index.js",
6
6
  "repository": "https://github.com/reelevant-tech/openapi-clients",