@rlvt/contents-openapi-client 0.0.0-067de1a

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 ADDED
@@ -0,0 +1,1039 @@
1
+ import { AxiosInstance, AxiosRequestConfig } from "axios";
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";
4
+ export default class {
5
+ axios: AxiosInstance;
6
+ constructor(configOrInstance: AxiosRequestConfig | AxiosInstance);
7
+ private listContentFontResource;
8
+ private createContentFontResource;
9
+ private getContentFontResource;
10
+ private updateContentFontResource;
11
+ private listContent;
12
+ private createContent;
13
+ private getContent;
14
+ private updateContent;
15
+ private deleteContent;
16
+ private publishContent;
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
+ };
152
+ get Content(): {
153
+ list: (params: {
154
+ ids?: string[];
155
+ name?: string;
156
+ resourceGroupIds?: string[];
157
+ status?: ContentStatus[];
158
+ sortBy?: "createdAt" | "updatedAt";
159
+ sortOrder?: "desc" | "asc";
160
+ page?: number;
161
+ perPage?: number;
162
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
163
+ paginationCount: number;
164
+ paginationPage: number;
165
+ paginationLimit: number;
166
+ status: "success";
167
+ program: string;
168
+ version: string;
169
+ datetime: string;
170
+ code?: number;
171
+ message: string;
172
+ data: {
173
+ description?: string;
174
+ resourceGroupIds: string[];
175
+ readonly id: string & {
176
+ readonly?: "__readonly";
177
+ };
178
+ readonly createdAt: Date & {
179
+ readonly?: "__readonly";
180
+ };
181
+ readonly updatedAt: Date & {
182
+ readonly?: "__readonly";
183
+ };
184
+ name: string;
185
+ readonly status: (ContentStatus.DRAFT & {
186
+ readonly?: "__readonly";
187
+ }) | (ContentStatus.PUBLISHING & {
188
+ readonly?: "__readonly";
189
+ }) | (ContentStatus.PUBLISHED & {
190
+ readonly?: "__readonly";
191
+ }) | (ContentStatus.ERROR & {
192
+ readonly?: "__readonly";
193
+ });
194
+ readonly companyId: string & {
195
+ readonly?: "__readonly";
196
+ };
197
+ readonly versions: {
198
+ readonly state: (import("./definitions").ContentVersionState.DRAFT & {
199
+ readonly?: "__readonly";
200
+ }) | (import("./definitions").ContentVersionState.LIVE & {
201
+ readonly?: "__readonly";
202
+ }) | (import("./definitions").ContentVersionState.INACTIVE & {
203
+ readonly?: "__readonly";
204
+ });
205
+ previewUrl?: string;
206
+ metadata?: {
207
+ [x: string]: any;
208
+ };
209
+ 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
+ };
300
+ };
301
+ }[];
302
+ }[];
303
+ }>>;
304
+ create: (data: {
305
+ description?: string;
306
+ resourceGroupIds: string[];
307
+ name: string;
308
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
309
+ status: "success";
310
+ program: string;
311
+ version: string;
312
+ datetime: string;
313
+ code?: number;
314
+ message: string;
315
+ data: {
316
+ description?: string;
317
+ resourceGroupIds: string[];
318
+ readonly id: string & {
319
+ readonly?: "__readonly";
320
+ };
321
+ readonly createdAt: Date & {
322
+ readonly?: "__readonly";
323
+ };
324
+ readonly updatedAt: Date & {
325
+ readonly?: "__readonly";
326
+ };
327
+ name: string;
328
+ readonly status: (ContentStatus.DRAFT & {
329
+ readonly?: "__readonly";
330
+ }) | (ContentStatus.PUBLISHING & {
331
+ readonly?: "__readonly";
332
+ }) | (ContentStatus.PUBLISHED & {
333
+ readonly?: "__readonly";
334
+ }) | (ContentStatus.ERROR & {
335
+ readonly?: "__readonly";
336
+ });
337
+ readonly companyId: string & {
338
+ readonly?: "__readonly";
339
+ };
340
+ readonly versions: {
341
+ readonly state: (import("./definitions").ContentVersionState.DRAFT & {
342
+ readonly?: "__readonly";
343
+ }) | (import("./definitions").ContentVersionState.LIVE & {
344
+ readonly?: "__readonly";
345
+ }) | (import("./definitions").ContentVersionState.INACTIVE & {
346
+ readonly?: "__readonly";
347
+ });
348
+ previewUrl?: string;
349
+ metadata?: {
350
+ [x: string]: any;
351
+ };
352
+ 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
+ };
443
+ };
444
+ }[];
445
+ };
446
+ }>>;
447
+ get: (params: {
448
+ id: string;
449
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
450
+ status: "success";
451
+ program: string;
452
+ version: string;
453
+ datetime: string;
454
+ code?: number;
455
+ message: string;
456
+ data: {
457
+ description?: string;
458
+ resourceGroupIds: string[];
459
+ readonly id: string & {
460
+ readonly?: "__readonly";
461
+ };
462
+ readonly createdAt: Date & {
463
+ readonly?: "__readonly";
464
+ };
465
+ readonly updatedAt: Date & {
466
+ readonly?: "__readonly";
467
+ };
468
+ name: string;
469
+ readonly status: (ContentStatus.DRAFT & {
470
+ readonly?: "__readonly";
471
+ }) | (ContentStatus.PUBLISHING & {
472
+ readonly?: "__readonly";
473
+ }) | (ContentStatus.PUBLISHED & {
474
+ readonly?: "__readonly";
475
+ }) | (ContentStatus.ERROR & {
476
+ readonly?: "__readonly";
477
+ });
478
+ readonly companyId: string & {
479
+ readonly?: "__readonly";
480
+ };
481
+ readonly versions: {
482
+ readonly state: (import("./definitions").ContentVersionState.DRAFT & {
483
+ readonly?: "__readonly";
484
+ }) | (import("./definitions").ContentVersionState.LIVE & {
485
+ readonly?: "__readonly";
486
+ }) | (import("./definitions").ContentVersionState.INACTIVE & {
487
+ readonly?: "__readonly";
488
+ });
489
+ previewUrl?: string;
490
+ metadata?: {
491
+ [x: string]: any;
492
+ };
493
+ 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
+ };
584
+ };
585
+ }[];
586
+ };
587
+ }>>;
588
+ update: (params: {
589
+ id: string;
590
+ }, data: {
591
+ description?: string;
592
+ resourceGroupIds?: string[];
593
+ name?: string;
594
+ } & {
595
+ previewUrl?: string;
596
+ metadata?: {
597
+ [x: string]: any;
598
+ };
599
+ 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
+ };
690
+ };
691
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
692
+ status: "success";
693
+ program: string;
694
+ version: string;
695
+ datetime: string;
696
+ code?: number;
697
+ message: string;
698
+ data: {
699
+ description?: string;
700
+ resourceGroupIds: string[];
701
+ readonly id: string & {
702
+ readonly?: "__readonly";
703
+ };
704
+ readonly createdAt: Date & {
705
+ readonly?: "__readonly";
706
+ };
707
+ readonly updatedAt: Date & {
708
+ readonly?: "__readonly";
709
+ };
710
+ name: string;
711
+ readonly status: (ContentStatus.DRAFT & {
712
+ readonly?: "__readonly";
713
+ }) | (ContentStatus.PUBLISHING & {
714
+ readonly?: "__readonly";
715
+ }) | (ContentStatus.PUBLISHED & {
716
+ readonly?: "__readonly";
717
+ }) | (ContentStatus.ERROR & {
718
+ readonly?: "__readonly";
719
+ });
720
+ readonly companyId: string & {
721
+ readonly?: "__readonly";
722
+ };
723
+ readonly versions: {
724
+ readonly state: (import("./definitions").ContentVersionState.DRAFT & {
725
+ readonly?: "__readonly";
726
+ }) | (import("./definitions").ContentVersionState.LIVE & {
727
+ readonly?: "__readonly";
728
+ }) | (import("./definitions").ContentVersionState.INACTIVE & {
729
+ readonly?: "__readonly";
730
+ });
731
+ previewUrl?: string;
732
+ metadata?: {
733
+ [x: string]: any;
734
+ };
735
+ 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
+ };
826
+ };
827
+ }[];
828
+ };
829
+ }>>;
830
+ delete: (params: {
831
+ id: string;
832
+ 'dry-run'?: boolean;
833
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
834
+ status: "success";
835
+ program: string;
836
+ version: string;
837
+ datetime: string;
838
+ code?: number;
839
+ message: string;
840
+ data: {};
841
+ }>>;
842
+ publish: (params: {
843
+ id: string;
844
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
845
+ status: "success";
846
+ program: string;
847
+ version: string;
848
+ datetime: string;
849
+ code?: number;
850
+ message: string;
851
+ data: {
852
+ description?: string;
853
+ resourceGroupIds: string[];
854
+ readonly id: string & {
855
+ readonly?: "__readonly";
856
+ };
857
+ readonly createdAt: Date & {
858
+ readonly?: "__readonly";
859
+ };
860
+ readonly updatedAt: Date & {
861
+ readonly?: "__readonly";
862
+ };
863
+ name: string;
864
+ readonly status: (ContentStatus.DRAFT & {
865
+ readonly?: "__readonly";
866
+ }) | (ContentStatus.PUBLISHING & {
867
+ readonly?: "__readonly";
868
+ }) | (ContentStatus.PUBLISHED & {
869
+ readonly?: "__readonly";
870
+ }) | (ContentStatus.ERROR & {
871
+ readonly?: "__readonly";
872
+ });
873
+ readonly companyId: string & {
874
+ readonly?: "__readonly";
875
+ };
876
+ readonly versions: {
877
+ readonly state: (import("./definitions").ContentVersionState.DRAFT & {
878
+ readonly?: "__readonly";
879
+ }) | (import("./definitions").ContentVersionState.LIVE & {
880
+ readonly?: "__readonly";
881
+ }) | (import("./definitions").ContentVersionState.INACTIVE & {
882
+ readonly?: "__readonly";
883
+ });
884
+ previewUrl?: string;
885
+ metadata?: {
886
+ [x: string]: any;
887
+ };
888
+ 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
+ };
979
+ };
980
+ }[];
981
+ };
982
+ }>>;
983
+ render: (params: {
984
+ id: string;
985
+ 'x-rlvt-no-cache'?: boolean;
986
+ }, data: {
987
+ dependenciesData: {
988
+ [key: string]: any;
989
+ };
990
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
991
+ readable: boolean;
992
+ readonly readableEncoding: ("ascii" & {
993
+ readonly?: "__readonly";
994
+ }) | ("utf8" & {
995
+ readonly?: "__readonly";
996
+ }) | ("utf-8" & {
997
+ readonly?: "__readonly";
998
+ }) | ("utf16le" & {
999
+ readonly?: "__readonly";
1000
+ }) | ("ucs2" & {
1001
+ readonly?: "__readonly";
1002
+ }) | ("ucs-2" & {
1003
+ readonly?: "__readonly";
1004
+ }) | ("base64" & {
1005
+ readonly?: "__readonly";
1006
+ }) | ("base64url" & {
1007
+ readonly?: "__readonly";
1008
+ }) | ("latin1" & {
1009
+ readonly?: "__readonly";
1010
+ }) | ("binary" & {
1011
+ readonly?: "__readonly";
1012
+ }) | ("hex" & {
1013
+ readonly?: "__readonly";
1014
+ });
1015
+ readonly readableEnded: (false & {
1016
+ readonly?: "__readonly";
1017
+ }) | (true & {
1018
+ readonly?: "__readonly";
1019
+ });
1020
+ readonly readableFlowing: (false & {
1021
+ readonly?: "__readonly";
1022
+ }) | (true & {
1023
+ readonly?: "__readonly";
1024
+ });
1025
+ readonly readableHighWaterMark: number & {
1026
+ readonly?: "__readonly";
1027
+ };
1028
+ readonly readableLength: number & {
1029
+ readonly?: "__readonly";
1030
+ };
1031
+ readonly readableObjectMode: (false & {
1032
+ readonly?: "__readonly";
1033
+ }) | (true & {
1034
+ readonly?: "__readonly";
1035
+ });
1036
+ destroyed: boolean;
1037
+ }>>;
1038
+ };
1039
+ }