@rlvt/contents-openapi-client 0.0.0-5b24dcc → 0.0.0-650ceb3

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