@rlvt/contents-openapi-client 0.0.0-342dc2d → 0.0.0-4240586

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_, AnyValue, 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
  };
@@ -233,68 +94,64 @@ export default class {
233
94
  height: number;
234
95
  x: number;
235
96
  y: number;
97
+ z: number;
236
98
  rotation: number;
237
99
  }[];
238
100
  width: number;
239
101
  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
102
  };
264
103
  };
265
104
  conditionGroups: {
266
105
  [x: string]: {
267
106
  name?: string;
107
+ parent?: {
108
+ id: string;
109
+ type: "conditionGroup";
110
+ conditionId: string;
111
+ } | {
112
+ id: string;
113
+ type: "componentGroup";
114
+ };
268
115
  conditions: ({
269
116
  id: string;
117
+ components: string[];
270
118
  type: "and" | "or";
271
119
  rules: {
272
- value: {
273
- type: "dependency";
274
- value: string;
275
- } | {
120
+ field: {
276
121
  type: "static";
277
122
  value: string | number;
278
- };
279
- field: {
123
+ } | {
280
124
  type: "dependency";
281
125
  value: string;
282
- } | {
126
+ };
127
+ operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
128
+ value: {
283
129
  type: "static";
284
130
  value: string | number;
131
+ } | {
132
+ type: "dependency";
133
+ value: string;
285
134
  };
286
- operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
287
135
  }[];
288
136
  } | {
289
- id: string;
290
- isElse: true;
137
+ id: "else";
138
+ components: string[];
291
139
  })[];
292
140
  };
293
141
  };
294
142
  componentGroups: {
295
143
  [x: string]: {
296
144
  name?: string;
145
+ components: string[];
297
146
  rendered: boolean;
147
+ parent?: {
148
+ id: string;
149
+ type: "conditionGroup";
150
+ conditionId: string;
151
+ } | {
152
+ id: string;
153
+ type: "componentGroup";
154
+ };
298
155
  };
299
156
  };
300
157
  };
@@ -303,8 +160,8 @@ export default class {
303
160
  }>>;
304
161
  create: (data: {
305
162
  description?: string;
306
- resourceGroupIds: string[];
307
163
  name: string;
164
+ resourceGroupIds: string[];
308
165
  }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
309
166
  status: "success";
310
167
  program: string;
@@ -314,17 +171,14 @@ export default class {
314
171
  message: string;
315
172
  data: {
316
173
  description?: string;
317
- resourceGroupIds: string[];
318
- readonly id: string & {
174
+ readonly updatedAt: Date & {
319
175
  readonly?: "__readonly";
320
176
  };
321
177
  readonly createdAt: Date & {
322
178
  readonly?: "__readonly";
323
179
  };
324
- readonly updatedAt: Date & {
325
- readonly?: "__readonly";
326
- };
327
180
  name: string;
181
+ resourceGroupIds: string[];
328
182
  readonly status: (ContentStatus.DRAFT & {
329
183
  readonly?: "__readonly";
330
184
  }) | (ContentStatus.PUBLISHING & {
@@ -334,6 +188,9 @@ export default class {
334
188
  }) | (ContentStatus.ERROR & {
335
189
  readonly?: "__readonly";
336
190
  });
191
+ readonly id: string & {
192
+ readonly?: "__readonly";
193
+ };
337
194
  readonly companyId: string & {
338
195
  readonly?: "__readonly";
339
196
  };
@@ -376,68 +233,64 @@ export default class {
376
233
  height: number;
377
234
  x: number;
378
235
  y: number;
236
+ z: number;
379
237
  rotation: number;
380
238
  }[];
381
239
  width: number;
382
240
  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
241
  };
407
242
  };
408
243
  conditionGroups: {
409
244
  [x: string]: {
410
245
  name?: string;
246
+ parent?: {
247
+ id: string;
248
+ type: "conditionGroup";
249
+ conditionId: string;
250
+ } | {
251
+ id: string;
252
+ type: "componentGroup";
253
+ };
411
254
  conditions: ({
412
255
  id: string;
256
+ components: string[];
413
257
  type: "and" | "or";
414
258
  rules: {
415
- value: {
416
- type: "dependency";
417
- value: string;
418
- } | {
259
+ field: {
419
260
  type: "static";
420
261
  value: string | number;
421
- };
422
- field: {
262
+ } | {
423
263
  type: "dependency";
424
264
  value: string;
425
- } | {
265
+ };
266
+ operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
267
+ value: {
426
268
  type: "static";
427
269
  value: string | number;
270
+ } | {
271
+ type: "dependency";
272
+ value: string;
428
273
  };
429
- operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
430
274
  }[];
431
275
  } | {
432
- id: string;
433
- isElse: true;
276
+ id: "else";
277
+ components: string[];
434
278
  })[];
435
279
  };
436
280
  };
437
281
  componentGroups: {
438
282
  [x: string]: {
439
283
  name?: string;
284
+ components: string[];
440
285
  rendered: boolean;
286
+ parent?: {
287
+ id: string;
288
+ type: "conditionGroup";
289
+ conditionId: string;
290
+ } | {
291
+ id: string;
292
+ type: "componentGroup";
293
+ };
441
294
  };
442
295
  };
443
296
  };
@@ -455,17 +308,14 @@ export default class {
455
308
  message: string;
456
309
  data: {
457
310
  description?: string;
458
- resourceGroupIds: string[];
459
- readonly id: string & {
311
+ readonly updatedAt: Date & {
460
312
  readonly?: "__readonly";
461
313
  };
462
314
  readonly createdAt: Date & {
463
315
  readonly?: "__readonly";
464
316
  };
465
- readonly updatedAt: Date & {
466
- readonly?: "__readonly";
467
- };
468
317
  name: string;
318
+ resourceGroupIds: string[];
469
319
  readonly status: (ContentStatus.DRAFT & {
470
320
  readonly?: "__readonly";
471
321
  }) | (ContentStatus.PUBLISHING & {
@@ -475,6 +325,9 @@ export default class {
475
325
  }) | (ContentStatus.ERROR & {
476
326
  readonly?: "__readonly";
477
327
  });
328
+ readonly id: string & {
329
+ readonly?: "__readonly";
330
+ };
478
331
  readonly companyId: string & {
479
332
  readonly?: "__readonly";
480
333
  };
@@ -517,68 +370,64 @@ export default class {
517
370
  height: number;
518
371
  x: number;
519
372
  y: number;
373
+ z: number;
520
374
  rotation: number;
521
375
  }[];
522
376
  width: number;
523
377
  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
378
  };
548
379
  };
549
380
  conditionGroups: {
550
381
  [x: string]: {
551
382
  name?: string;
383
+ parent?: {
384
+ id: string;
385
+ type: "conditionGroup";
386
+ conditionId: string;
387
+ } | {
388
+ id: string;
389
+ type: "componentGroup";
390
+ };
552
391
  conditions: ({
553
392
  id: string;
393
+ components: string[];
554
394
  type: "and" | "or";
555
395
  rules: {
556
- value: {
557
- type: "dependency";
558
- value: string;
559
- } | {
396
+ field: {
560
397
  type: "static";
561
398
  value: string | number;
562
- };
563
- field: {
399
+ } | {
564
400
  type: "dependency";
565
401
  value: string;
566
- } | {
402
+ };
403
+ operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
404
+ value: {
567
405
  type: "static";
568
406
  value: string | number;
407
+ } | {
408
+ type: "dependency";
409
+ value: string;
569
410
  };
570
- operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
571
411
  }[];
572
412
  } | {
573
- id: string;
574
- isElse: true;
413
+ id: "else";
414
+ components: string[];
575
415
  })[];
576
416
  };
577
417
  };
578
418
  componentGroups: {
579
419
  [x: string]: {
580
420
  name?: string;
421
+ components: string[];
581
422
  rendered: boolean;
423
+ parent?: {
424
+ id: string;
425
+ type: "conditionGroup";
426
+ conditionId: string;
427
+ } | {
428
+ id: string;
429
+ type: "componentGroup";
430
+ };
582
431
  };
583
432
  };
584
433
  };
@@ -589,8 +438,8 @@ export default class {
589
438
  id: string;
590
439
  }, data: {
591
440
  description?: string;
592
- resourceGroupIds?: string[];
593
441
  name?: string;
442
+ resourceGroupIds?: string[];
594
443
  } & {
595
444
  previewUrl?: string;
596
445
  metadata?: {
@@ -623,68 +472,64 @@ export default class {
623
472
  height: number;
624
473
  x: number;
625
474
  y: number;
475
+ z: number;
626
476
  rotation: number;
627
477
  }[];
628
478
  width: number;
629
479
  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
480
  };
654
481
  };
655
482
  conditionGroups: {
656
483
  [x: string]: {
657
484
  name?: string;
485
+ parent?: {
486
+ id: string;
487
+ type: "conditionGroup";
488
+ conditionId: string;
489
+ } | {
490
+ id: string;
491
+ type: "componentGroup";
492
+ };
658
493
  conditions: ({
659
494
  id: string;
495
+ components: string[];
660
496
  type: "and" | "or";
661
497
  rules: {
662
- value: {
663
- type: "dependency";
664
- value: string;
665
- } | {
498
+ field: {
666
499
  type: "static";
667
500
  value: string | number;
668
- };
669
- field: {
501
+ } | {
670
502
  type: "dependency";
671
503
  value: string;
672
- } | {
504
+ };
505
+ operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
506
+ value: {
673
507
  type: "static";
674
508
  value: string | number;
509
+ } | {
510
+ type: "dependency";
511
+ value: string;
675
512
  };
676
- operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
677
513
  }[];
678
514
  } | {
679
- id: string;
680
- isElse: true;
515
+ id: "else";
516
+ components: string[];
681
517
  })[];
682
518
  };
683
519
  };
684
520
  componentGroups: {
685
521
  [x: string]: {
686
522
  name?: string;
523
+ components: string[];
687
524
  rendered: boolean;
525
+ parent?: {
526
+ id: string;
527
+ type: "conditionGroup";
528
+ conditionId: string;
529
+ } | {
530
+ id: string;
531
+ type: "componentGroup";
532
+ };
688
533
  };
689
534
  };
690
535
  };
@@ -697,17 +542,14 @@ export default class {
697
542
  message: string;
698
543
  data: {
699
544
  description?: string;
700
- resourceGroupIds: string[];
701
- readonly id: string & {
545
+ readonly updatedAt: Date & {
702
546
  readonly?: "__readonly";
703
547
  };
704
548
  readonly createdAt: Date & {
705
549
  readonly?: "__readonly";
706
550
  };
707
- readonly updatedAt: Date & {
708
- readonly?: "__readonly";
709
- };
710
551
  name: string;
552
+ resourceGroupIds: string[];
711
553
  readonly status: (ContentStatus.DRAFT & {
712
554
  readonly?: "__readonly";
713
555
  }) | (ContentStatus.PUBLISHING & {
@@ -717,6 +559,9 @@ export default class {
717
559
  }) | (ContentStatus.ERROR & {
718
560
  readonly?: "__readonly";
719
561
  });
562
+ readonly id: string & {
563
+ readonly?: "__readonly";
564
+ };
720
565
  readonly companyId: string & {
721
566
  readonly?: "__readonly";
722
567
  };
@@ -759,68 +604,64 @@ export default class {
759
604
  height: number;
760
605
  x: number;
761
606
  y: number;
607
+ z: number;
762
608
  rotation: number;
763
609
  }[];
764
610
  width: number;
765
611
  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
612
  };
790
613
  };
791
614
  conditionGroups: {
792
615
  [x: string]: {
793
616
  name?: string;
617
+ parent?: {
618
+ id: string;
619
+ type: "conditionGroup";
620
+ conditionId: string;
621
+ } | {
622
+ id: string;
623
+ type: "componentGroup";
624
+ };
794
625
  conditions: ({
795
626
  id: string;
627
+ components: string[];
796
628
  type: "and" | "or";
797
629
  rules: {
798
- value: {
799
- type: "dependency";
800
- value: string;
801
- } | {
630
+ field: {
802
631
  type: "static";
803
632
  value: string | number;
804
- };
805
- field: {
633
+ } | {
806
634
  type: "dependency";
807
635
  value: string;
808
- } | {
636
+ };
637
+ operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
638
+ value: {
809
639
  type: "static";
810
640
  value: string | number;
641
+ } | {
642
+ type: "dependency";
643
+ value: string;
811
644
  };
812
- operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
813
645
  }[];
814
646
  } | {
815
- id: string;
816
- isElse: true;
647
+ id: "else";
648
+ components: string[];
817
649
  })[];
818
650
  };
819
651
  };
820
652
  componentGroups: {
821
653
  [x: string]: {
822
654
  name?: string;
655
+ components: string[];
823
656
  rendered: boolean;
657
+ parent?: {
658
+ id: string;
659
+ type: "conditionGroup";
660
+ conditionId: string;
661
+ } | {
662
+ id: string;
663
+ type: "componentGroup";
664
+ };
824
665
  };
825
666
  };
826
667
  };
@@ -829,7 +670,6 @@ export default class {
829
670
  }>>;
830
671
  delete: (params: {
831
672
  id: string;
832
- 'dry-run'?: boolean;
833
673
  }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
834
674
  status: "success";
835
675
  program: string;
@@ -850,17 +690,14 @@ export default class {
850
690
  message: string;
851
691
  data: {
852
692
  description?: string;
853
- resourceGroupIds: string[];
854
- readonly id: string & {
693
+ readonly updatedAt: Date & {
855
694
  readonly?: "__readonly";
856
695
  };
857
696
  readonly createdAt: Date & {
858
697
  readonly?: "__readonly";
859
698
  };
860
- readonly updatedAt: Date & {
861
- readonly?: "__readonly";
862
- };
863
699
  name: string;
700
+ resourceGroupIds: string[];
864
701
  readonly status: (ContentStatus.DRAFT & {
865
702
  readonly?: "__readonly";
866
703
  }) | (ContentStatus.PUBLISHING & {
@@ -870,6 +707,9 @@ export default class {
870
707
  }) | (ContentStatus.ERROR & {
871
708
  readonly?: "__readonly";
872
709
  });
710
+ readonly id: string & {
711
+ readonly?: "__readonly";
712
+ };
873
713
  readonly companyId: string & {
874
714
  readonly?: "__readonly";
875
715
  };
@@ -912,68 +752,64 @@ export default class {
912
752
  height: number;
913
753
  x: number;
914
754
  y: number;
755
+ z: number;
915
756
  rotation: number;
916
757
  }[];
917
758
  width: number;
918
759
  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
760
  };
943
761
  };
944
762
  conditionGroups: {
945
763
  [x: string]: {
946
764
  name?: string;
765
+ parent?: {
766
+ id: string;
767
+ type: "conditionGroup";
768
+ conditionId: string;
769
+ } | {
770
+ id: string;
771
+ type: "componentGroup";
772
+ };
947
773
  conditions: ({
948
774
  id: string;
775
+ components: string[];
949
776
  type: "and" | "or";
950
777
  rules: {
951
- value: {
952
- type: "dependency";
953
- value: string;
954
- } | {
778
+ field: {
955
779
  type: "static";
956
780
  value: string | number;
957
- };
958
- field: {
781
+ } | {
959
782
  type: "dependency";
960
783
  value: string;
961
- } | {
784
+ };
785
+ operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
786
+ value: {
962
787
  type: "static";
963
788
  value: string | number;
789
+ } | {
790
+ type: "dependency";
791
+ value: string;
964
792
  };
965
- operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
966
793
  }[];
967
794
  } | {
968
- id: string;
969
- isElse: true;
795
+ id: "else";
796
+ components: string[];
970
797
  })[];
971
798
  };
972
799
  };
973
800
  componentGroups: {
974
801
  [x: string]: {
975
802
  name?: string;
803
+ components: string[];
976
804
  rendered: boolean;
805
+ parent?: {
806
+ id: string;
807
+ type: "conditionGroup";
808
+ conditionId: string;
809
+ } | {
810
+ id: string;
811
+ type: "componentGroup";
812
+ };
977
813
  };
978
814
  };
979
815
  };
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),
@@ -85,4 +61,4 @@ function pick(obj, ...keys) {
85
61
  });
86
62
  return ret;
87
63
  }
88
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBpLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxvQkFBb0I7QUFDcEIsb0JBQW9COzs7Ozs7QUFFcEIsa0RBQWlFO0FBR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ENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQztZQUNyQyxPQUFPLEVBQUUsSUFBSSxDQUFDLGNBQWMsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDO1lBQ3ZDLE1BQU0sRUFBRSxJQUFJLENBQUMsYUFBYSxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUM7U0FDeEMsQ0FBQztJQUNOLENBQUM7Q0FDSjtBQXRKRCw0QkFzSkM7QUFFRCxTQUFTLElBQUksQ0FBdUIsR0FBTSxFQUFFLEdBQUcsSUFBUztJQUNwRCxNQUFNLEdBQUcsR0FBZSxFQUFnQixDQUFDO0lBQ3pDLElBQUksQ0FBQyxPQUFPLENBQUMsR0FBRyxDQUFDLEVBQUU7UUFDZixJQUFJLEdBQUcsSUFBSSxNQUFNLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxDQUFDLFFBQVEsQ0FBQyxHQUFhLENBQUM7WUFDL0MsR0FBRyxDQUFDLEdBQUcsQ0FBQyxHQUFHLEdBQUcsQ0FBQyxHQUFHLENBQUMsQ0FBQztJQUM1QixDQUFDLENBQUMsQ0FBQztJQUNILE9BQU8sR0FBRyxDQUFDO0FBQ2YsQ0FBQyJ9
@@ -17,128 +17,77 @@ 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 _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________ = {
35
+ export declare type Page = {
90
36
  width: number;
91
37
  height: number;
92
- components: _id_string_x_number_y_number_width_number_height_number_rotation_number__[];
93
- orderTree: _root_string_Array_elements___x_string___type_conditionGroup___or__type_condition_children_string_Array___or__type_component___or__type_componentGroup_children_string_Array______;
94
- };
95
- export declare type _type_static_value_string__ = {
96
- type: "static";
97
- value: string;
98
- };
99
- export declare type _type_dependency_value_string__ = {
100
- type: "dependency";
101
- value: string;
102
- };
103
- export declare type _url___type_static_value_string___or__type_dependency_value_string____Array_or_undefined__ = {
104
- url?: (_type_static_value_string__ | _type_dependency_value_string__)[];
105
- };
106
- export declare type __x_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_________and__url___type_static_value_string___or__type_dependency_value_string____Array_or_undefined____ = {
107
- [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__;
108
- };
109
- export declare type _name_string_or_undefined__ = {
110
- name?: string;
111
- };
112
- export declare type _type_static_value_string_or_number__ = {
113
- type: "static";
114
- value: string | number;
115
- };
116
- export declare type _field__type_static_value_string_or_number___or__type_dependency_value_string___operator_24gte_or_24gt_or_24lt_or_24lte_or_24eq_or_24ne_value__type_static_value_string_or_number___or__type_dependency_value_string____ = {
117
- field: _type_static_value_string_or_number__ | _type_dependency_value_string__;
118
- operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
119
- value: _type_static_value_string_or_number__ | _type_dependency_value_string__;
38
+ components: PageComponent[];
120
39
  };
121
- export declare type _id_string_type_and_or_or_rules__field__type_static_value_string_or_number___or__type_dependency_value_string___operator_24gte_or_24gt_or_24lt_or_24lte_or_24eq_or_24ne_value__type_static_value_string_or_number___or__type_dependency_value_string_____Array__ = {
40
+ export declare type Condition = {
122
41
  id: string;
123
42
  type: "and" | "or";
124
- rules: _field__type_static_value_string_or_number___or__type_dependency_value_string___operator_24gte_or_24gt_or_24lt_or_24lte_or_24eq_or_24ne_value__type_static_value_string_or_number___or__type_dependency_value_string____[];
125
- };
126
- export declare type _id_string_isElse_true__ = {
127
- id: string;
128
- isElse: true;
129
- };
130
- export declare type _conditions____id_string_type_and_or_or_rules__field__type_static_value_string_or_number___or__type_dependency_value_string___operator_24gte_or_24gt_or_24lt_or_24lte_or_24eq_or_24ne_value__type_static_value_string_or_number___or__type_dependency_value_string_____Array___Array__id_string_type_and_or_or_rules__field__type_static_value_string_or_number___or__type_dependency_value_string___operator_24gte_or_24gt_or_24lt_or_24lte_or_24eq_or_24ne_value__type_static_value_string_or_number___or__type_dependency_value_string_____Array____id_string_isElse_true_____ = {
131
- conditions: (_id_string_type_and_or_or_rules__field__type_static_value_string_or_number___or__type_dependency_value_string___operator_24gte_or_24gt_or_24lt_or_24lte_or_24eq_or_24ne_value__type_static_value_string_or_number___or__type_dependency_value_string_____Array__ | _id_string_type_and_or_or_rules__field__type_static_value_string_or_number___or__type_dependency_value_string___operator_24gte_or_24gt_or_24lt_or_24lte_or_24eq_or_24ne_value__type_static_value_string_or_number___or__type_dependency_value_string_____Array__ | _id_string_isElse_true__)[];
132
- };
133
- export declare type __x_string___name_string_or_undefined___and__conditions____id_string_type_and_or_or_rules__field__type_static_value_string_or_number___or__type_dependency_value_string___operator_24gte_or_24gt_or_24lt_or_24lte_or_24eq_or_24ne_value__type_static_value_string_or_number___or__type_dependency_value_string_____Array___Array__id_string_type_and_or_or_rules__field__type_static_value_string_or_number___or__type_dependency_value_string___operator_24gte_or_24gt_or_24lt_or_24lte_or_24eq_or_24ne_value__type_static_value_string_or_number___or__type_dependency_value_string_____Array____id_string_isElse_true_______ = {
134
- [key: string]: _name_string_or_undefined__ & _conditions____id_string_type_and_or_or_rules__field__type_static_value_string_or_number___or__type_dependency_value_string___operator_24gte_or_24gt_or_24lt_or_24lte_or_24eq_or_24ne_value__type_static_value_string_or_number___or__type_dependency_value_string_____Array___Array__id_string_type_and_or_or_rules__field__type_static_value_string_or_number___or__type_dependency_value_string___operator_24gte_or_24gt_or_24lt_or_24lte_or_24eq_or_24ne_value__type_static_value_string_or_number___or__type_dependency_value_string_____Array____id_string_isElse_true_____;
43
+ rules: {
44
+ field: {
45
+ type: "static";
46
+ value: string | number;
47
+ } | {
48
+ type: "dependency";
49
+ value: string;
50
+ };
51
+ operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
52
+ value: {
53
+ type: "static";
54
+ value: string | number;
55
+ } | {
56
+ type: "dependency";
57
+ value: string;
58
+ };
59
+ }[];
60
+ components: string[];
61
+ };
62
+ export declare type ElseCondition = {
63
+ id: "else";
64
+ components: string[];
65
+ };
66
+ export declare type ConditionGroup = {
67
+ parent?: {
68
+ type: "conditionGroup";
69
+ id: string;
70
+ conditionId: string;
71
+ } | {
72
+ type: "componentGroup";
73
+ id: string;
74
+ };
75
+ name?: string;
76
+ conditions: (Condition | Condition | ElseCondition)[];
135
77
  };
136
- export declare type _rendered_boolean__ = {
78
+ export declare type ComponentGroup = {
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[];
137
89
  rendered: boolean;
138
90
  };
139
- export declare type __x_string___name_string_or_undefined___and__rendered_boolean____ = {
140
- [key: string]: _name_string_or_undefined__ & _rendered_boolean__;
141
- };
142
91
  export declare type BaseTemplate = {
143
92
  components: {
144
93
  [key: string]: {
@@ -158,9 +107,15 @@ export declare type BaseTemplate = {
158
107
  };
159
108
  };
160
109
  };
161
- pages: __x_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_________and__url___type_static_value_string___or__type_dependency_value_string____Array_or_undefined____;
162
- conditionGroups: __x_string___name_string_or_undefined___and__conditions____id_string_type_and_or_or_rules__field__type_static_value_string_or_number___or__type_dependency_value_string___operator_24gte_or_24gt_or_24lt_or_24lte_or_24eq_or_24ne_value__type_static_value_string_or_number___or__type_dependency_value_string_____Array___Array__id_string_type_and_or_or_rules__field__type_static_value_string_or_number___or__type_dependency_value_string___operator_24gte_or_24gt_or_24lt_or_24lte_or_24eq_or_24ne_value__type_static_value_string_or_number___or__type_dependency_value_string_____Array____id_string_isElse_true_______;
163
- componentGroups: __x_string___name_string_or_undefined___and__rendered_boolean____;
110
+ pages: {
111
+ [key: string]: Page;
112
+ };
113
+ conditionGroups: {
114
+ [key: string]: ConditionGroup;
115
+ };
116
+ componentGroups: {
117
+ [key: string]: ComponentGroup;
118
+ };
164
119
  };
165
120
  export declare type SerializedContentVersions = {
166
121
  readonly state: (ContentVersionState) & readonlyP;
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmaW5pdGlvbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9kZWZpbml0aW9ucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsb0JBQW9CO0FBQ3BCLG9CQUFvQjs7O0FBa0VwQixJQUFZLG1CQUlYO0FBSkQsV0FBWSxtQkFBbUI7SUFDM0Isc0NBQWUsQ0FBQTtJQUNmLG9DQUFhLENBQUE7SUFDYiw0Q0FBcUIsQ0FBQTtBQUN6QixDQUFDLEVBSlcsbUJBQW1CLEdBQW5CLDJCQUFtQixLQUFuQiwyQkFBbUIsUUFJOUI7QUFzSEQsSUFBWSxhQUtYO0FBTEQsV0FBWSxhQUFhO0lBQ3JCLGdDQUFlLENBQUE7SUFDZiwwQ0FBeUIsQ0FBQTtJQUN6Qix3Q0FBdUIsQ0FBQTtJQUN2QixnQ0FBZSxDQUFBO0FBQ25CLENBQUMsRUFMVyxhQUFhLEdBQWIscUJBQWEsS0FBYixxQkFBYSxRQUt4QiJ9
19
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmaW5pdGlvbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9kZWZpbml0aW9ucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsb0JBQW9CO0FBQ3BCLG9CQUFvQjs7O0FBZ0NwQixJQUFZLG1CQUlYO0FBSkQsV0FBWSxtQkFBbUI7SUFDM0Isc0NBQWUsQ0FBQTtJQUNmLG9DQUFhLENBQUE7SUFDYiw0Q0FBcUIsQ0FBQTtBQUN6QixDQUFDLEVBSlcsbUJBQW1CLEdBQW5CLDJCQUFtQixLQUFuQiwyQkFBbUIsUUFJOUI7QUEyR0QsSUFBWSxhQUtYO0FBTEQsV0FBWSxhQUFhO0lBQ3JCLGdDQUFlLENBQUE7SUFDZiwwQ0FBeUIsQ0FBQTtJQUN6Qix3Q0FBdUIsQ0FBQTtJQUN2QixnQ0FBZSxDQUFBO0FBQ25CLENBQUMsRUFMVyxhQUFhLEdBQWIscUJBQWEsS0FBYixxQkFBYSxRQUt4QiJ9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rlvt/contents-openapi-client",
3
- "version": "0.0.0-342dc2d",
3
+ "version": "0.0.0-4240586",
4
4
  "description": "Openapi client for reelevant service",
5
5
  "main": "build/index.js",
6
6
  "repository": "https://github.com/reelevant-tech/openapi-clients",