@rlvt/contents-openapi-client 0.0.0-a6f2a5c → 0.0.0-c099523
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 +144 -169
- package/build/api.js +2 -4
- package/build/definitions.d.ts +25 -37
- package/build/definitions.js +1 -1
- package/package.json +1 -1
package/build/api.d.ts
CHANGED
|
@@ -94,68 +94,64 @@ export default class {
|
|
|
94
94
|
height: number;
|
|
95
95
|
x: number;
|
|
96
96
|
y: number;
|
|
97
|
+
z: number;
|
|
97
98
|
rotation: number;
|
|
98
99
|
}[];
|
|
99
100
|
width: number;
|
|
100
101
|
height: number;
|
|
101
|
-
orderTree: {
|
|
102
|
-
root: string[];
|
|
103
|
-
elements: {
|
|
104
|
-
[x: string]: {
|
|
105
|
-
type: "conditionGroup";
|
|
106
|
-
} | {
|
|
107
|
-
type: "condition";
|
|
108
|
-
children: string[];
|
|
109
|
-
} | {
|
|
110
|
-
type: "component";
|
|
111
|
-
} | {
|
|
112
|
-
type: "componentGroup";
|
|
113
|
-
children: string[];
|
|
114
|
-
};
|
|
115
|
-
};
|
|
116
|
-
};
|
|
117
|
-
url?: ({
|
|
118
|
-
type: "static";
|
|
119
|
-
value: string;
|
|
120
|
-
} | {
|
|
121
|
-
type: "dependency";
|
|
122
|
-
value: string;
|
|
123
|
-
})[];
|
|
124
102
|
};
|
|
125
103
|
};
|
|
126
104
|
conditionGroups: {
|
|
127
105
|
[x: string]: {
|
|
128
106
|
name?: string;
|
|
107
|
+
parent?: {
|
|
108
|
+
id: string;
|
|
109
|
+
type: "conditionGroup";
|
|
110
|
+
conditionId: string;
|
|
111
|
+
} | {
|
|
112
|
+
id: string;
|
|
113
|
+
type: "componentGroup";
|
|
114
|
+
};
|
|
129
115
|
conditions: ({
|
|
130
116
|
id: string;
|
|
117
|
+
components: string[];
|
|
131
118
|
type: "and" | "or";
|
|
132
119
|
rules: {
|
|
133
|
-
|
|
120
|
+
field: {
|
|
134
121
|
type: "static";
|
|
135
122
|
value: string | number;
|
|
136
123
|
} | {
|
|
137
124
|
type: "dependency";
|
|
138
125
|
value: string;
|
|
139
126
|
};
|
|
140
|
-
|
|
127
|
+
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
128
|
+
value: {
|
|
141
129
|
type: "static";
|
|
142
130
|
value: string | number;
|
|
143
131
|
} | {
|
|
144
132
|
type: "dependency";
|
|
145
133
|
value: string;
|
|
146
134
|
};
|
|
147
|
-
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
148
135
|
}[];
|
|
149
136
|
} | {
|
|
150
|
-
id:
|
|
151
|
-
|
|
137
|
+
id: "else";
|
|
138
|
+
components: string[];
|
|
152
139
|
})[];
|
|
153
140
|
};
|
|
154
141
|
};
|
|
155
142
|
componentGroups: {
|
|
156
143
|
[x: string]: {
|
|
157
144
|
name?: string;
|
|
145
|
+
components: string[];
|
|
158
146
|
rendered: boolean;
|
|
147
|
+
parent?: {
|
|
148
|
+
id: string;
|
|
149
|
+
type: "conditionGroup";
|
|
150
|
+
conditionId: string;
|
|
151
|
+
} | {
|
|
152
|
+
id: string;
|
|
153
|
+
type: "componentGroup";
|
|
154
|
+
};
|
|
159
155
|
};
|
|
160
156
|
};
|
|
161
157
|
};
|
|
@@ -237,68 +233,64 @@ export default class {
|
|
|
237
233
|
height: number;
|
|
238
234
|
x: number;
|
|
239
235
|
y: number;
|
|
236
|
+
z: number;
|
|
240
237
|
rotation: number;
|
|
241
238
|
}[];
|
|
242
239
|
width: number;
|
|
243
240
|
height: number;
|
|
244
|
-
orderTree: {
|
|
245
|
-
root: string[];
|
|
246
|
-
elements: {
|
|
247
|
-
[x: string]: {
|
|
248
|
-
type: "conditionGroup";
|
|
249
|
-
} | {
|
|
250
|
-
type: "condition";
|
|
251
|
-
children: string[];
|
|
252
|
-
} | {
|
|
253
|
-
type: "component";
|
|
254
|
-
} | {
|
|
255
|
-
type: "componentGroup";
|
|
256
|
-
children: string[];
|
|
257
|
-
};
|
|
258
|
-
};
|
|
259
|
-
};
|
|
260
|
-
url?: ({
|
|
261
|
-
type: "static";
|
|
262
|
-
value: string;
|
|
263
|
-
} | {
|
|
264
|
-
type: "dependency";
|
|
265
|
-
value: string;
|
|
266
|
-
})[];
|
|
267
241
|
};
|
|
268
242
|
};
|
|
269
243
|
conditionGroups: {
|
|
270
244
|
[x: string]: {
|
|
271
245
|
name?: string;
|
|
246
|
+
parent?: {
|
|
247
|
+
id: string;
|
|
248
|
+
type: "conditionGroup";
|
|
249
|
+
conditionId: string;
|
|
250
|
+
} | {
|
|
251
|
+
id: string;
|
|
252
|
+
type: "componentGroup";
|
|
253
|
+
};
|
|
272
254
|
conditions: ({
|
|
273
255
|
id: string;
|
|
256
|
+
components: string[];
|
|
274
257
|
type: "and" | "or";
|
|
275
258
|
rules: {
|
|
276
|
-
|
|
259
|
+
field: {
|
|
277
260
|
type: "static";
|
|
278
261
|
value: string | number;
|
|
279
262
|
} | {
|
|
280
263
|
type: "dependency";
|
|
281
264
|
value: string;
|
|
282
265
|
};
|
|
283
|
-
|
|
266
|
+
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
267
|
+
value: {
|
|
284
268
|
type: "static";
|
|
285
269
|
value: string | number;
|
|
286
270
|
} | {
|
|
287
271
|
type: "dependency";
|
|
288
272
|
value: string;
|
|
289
273
|
};
|
|
290
|
-
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
291
274
|
}[];
|
|
292
275
|
} | {
|
|
293
|
-
id:
|
|
294
|
-
|
|
276
|
+
id: "else";
|
|
277
|
+
components: string[];
|
|
295
278
|
})[];
|
|
296
279
|
};
|
|
297
280
|
};
|
|
298
281
|
componentGroups: {
|
|
299
282
|
[x: string]: {
|
|
300
283
|
name?: string;
|
|
284
|
+
components: string[];
|
|
301
285
|
rendered: boolean;
|
|
286
|
+
parent?: {
|
|
287
|
+
id: string;
|
|
288
|
+
type: "conditionGroup";
|
|
289
|
+
conditionId: string;
|
|
290
|
+
} | {
|
|
291
|
+
id: string;
|
|
292
|
+
type: "componentGroup";
|
|
293
|
+
};
|
|
302
294
|
};
|
|
303
295
|
};
|
|
304
296
|
};
|
|
@@ -378,68 +370,64 @@ export default class {
|
|
|
378
370
|
height: number;
|
|
379
371
|
x: number;
|
|
380
372
|
y: number;
|
|
373
|
+
z: number;
|
|
381
374
|
rotation: number;
|
|
382
375
|
}[];
|
|
383
376
|
width: number;
|
|
384
377
|
height: number;
|
|
385
|
-
orderTree: {
|
|
386
|
-
root: string[];
|
|
387
|
-
elements: {
|
|
388
|
-
[x: string]: {
|
|
389
|
-
type: "conditionGroup";
|
|
390
|
-
} | {
|
|
391
|
-
type: "condition";
|
|
392
|
-
children: string[];
|
|
393
|
-
} | {
|
|
394
|
-
type: "component";
|
|
395
|
-
} | {
|
|
396
|
-
type: "componentGroup";
|
|
397
|
-
children: string[];
|
|
398
|
-
};
|
|
399
|
-
};
|
|
400
|
-
};
|
|
401
|
-
url?: ({
|
|
402
|
-
type: "static";
|
|
403
|
-
value: string;
|
|
404
|
-
} | {
|
|
405
|
-
type: "dependency";
|
|
406
|
-
value: string;
|
|
407
|
-
})[];
|
|
408
378
|
};
|
|
409
379
|
};
|
|
410
380
|
conditionGroups: {
|
|
411
381
|
[x: string]: {
|
|
412
382
|
name?: string;
|
|
383
|
+
parent?: {
|
|
384
|
+
id: string;
|
|
385
|
+
type: "conditionGroup";
|
|
386
|
+
conditionId: string;
|
|
387
|
+
} | {
|
|
388
|
+
id: string;
|
|
389
|
+
type: "componentGroup";
|
|
390
|
+
};
|
|
413
391
|
conditions: ({
|
|
414
392
|
id: string;
|
|
393
|
+
components: string[];
|
|
415
394
|
type: "and" | "or";
|
|
416
395
|
rules: {
|
|
417
|
-
|
|
396
|
+
field: {
|
|
418
397
|
type: "static";
|
|
419
398
|
value: string | number;
|
|
420
399
|
} | {
|
|
421
400
|
type: "dependency";
|
|
422
401
|
value: string;
|
|
423
402
|
};
|
|
424
|
-
|
|
403
|
+
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
404
|
+
value: {
|
|
425
405
|
type: "static";
|
|
426
406
|
value: string | number;
|
|
427
407
|
} | {
|
|
428
408
|
type: "dependency";
|
|
429
409
|
value: string;
|
|
430
410
|
};
|
|
431
|
-
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
432
411
|
}[];
|
|
433
412
|
} | {
|
|
434
|
-
id:
|
|
435
|
-
|
|
413
|
+
id: "else";
|
|
414
|
+
components: string[];
|
|
436
415
|
})[];
|
|
437
416
|
};
|
|
438
417
|
};
|
|
439
418
|
componentGroups: {
|
|
440
419
|
[x: string]: {
|
|
441
420
|
name?: string;
|
|
421
|
+
components: string[];
|
|
442
422
|
rendered: boolean;
|
|
423
|
+
parent?: {
|
|
424
|
+
id: string;
|
|
425
|
+
type: "conditionGroup";
|
|
426
|
+
conditionId: string;
|
|
427
|
+
} | {
|
|
428
|
+
id: string;
|
|
429
|
+
type: "componentGroup";
|
|
430
|
+
};
|
|
443
431
|
};
|
|
444
432
|
};
|
|
445
433
|
};
|
|
@@ -484,68 +472,64 @@ export default class {
|
|
|
484
472
|
height: number;
|
|
485
473
|
x: number;
|
|
486
474
|
y: number;
|
|
475
|
+
z: number;
|
|
487
476
|
rotation: number;
|
|
488
477
|
}[];
|
|
489
478
|
width: number;
|
|
490
479
|
height: number;
|
|
491
|
-
orderTree: {
|
|
492
|
-
root: string[];
|
|
493
|
-
elements: {
|
|
494
|
-
[x: string]: {
|
|
495
|
-
type: "conditionGroup";
|
|
496
|
-
} | {
|
|
497
|
-
type: "condition";
|
|
498
|
-
children: string[];
|
|
499
|
-
} | {
|
|
500
|
-
type: "component";
|
|
501
|
-
} | {
|
|
502
|
-
type: "componentGroup";
|
|
503
|
-
children: string[];
|
|
504
|
-
};
|
|
505
|
-
};
|
|
506
|
-
};
|
|
507
|
-
url?: ({
|
|
508
|
-
type: "static";
|
|
509
|
-
value: string;
|
|
510
|
-
} | {
|
|
511
|
-
type: "dependency";
|
|
512
|
-
value: string;
|
|
513
|
-
})[];
|
|
514
480
|
};
|
|
515
481
|
};
|
|
516
482
|
conditionGroups: {
|
|
517
483
|
[x: string]: {
|
|
518
484
|
name?: string;
|
|
485
|
+
parent?: {
|
|
486
|
+
id: string;
|
|
487
|
+
type: "conditionGroup";
|
|
488
|
+
conditionId: string;
|
|
489
|
+
} | {
|
|
490
|
+
id: string;
|
|
491
|
+
type: "componentGroup";
|
|
492
|
+
};
|
|
519
493
|
conditions: ({
|
|
520
494
|
id: string;
|
|
495
|
+
components: string[];
|
|
521
496
|
type: "and" | "or";
|
|
522
497
|
rules: {
|
|
523
|
-
|
|
498
|
+
field: {
|
|
524
499
|
type: "static";
|
|
525
500
|
value: string | number;
|
|
526
501
|
} | {
|
|
527
502
|
type: "dependency";
|
|
528
503
|
value: string;
|
|
529
504
|
};
|
|
530
|
-
|
|
505
|
+
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
506
|
+
value: {
|
|
531
507
|
type: "static";
|
|
532
508
|
value: string | number;
|
|
533
509
|
} | {
|
|
534
510
|
type: "dependency";
|
|
535
511
|
value: string;
|
|
536
512
|
};
|
|
537
|
-
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
538
513
|
}[];
|
|
539
514
|
} | {
|
|
540
|
-
id:
|
|
541
|
-
|
|
515
|
+
id: "else";
|
|
516
|
+
components: string[];
|
|
542
517
|
})[];
|
|
543
518
|
};
|
|
544
519
|
};
|
|
545
520
|
componentGroups: {
|
|
546
521
|
[x: string]: {
|
|
547
522
|
name?: string;
|
|
523
|
+
components: string[];
|
|
548
524
|
rendered: boolean;
|
|
525
|
+
parent?: {
|
|
526
|
+
id: string;
|
|
527
|
+
type: "conditionGroup";
|
|
528
|
+
conditionId: string;
|
|
529
|
+
} | {
|
|
530
|
+
id: string;
|
|
531
|
+
type: "componentGroup";
|
|
532
|
+
};
|
|
549
533
|
};
|
|
550
534
|
};
|
|
551
535
|
};
|
|
@@ -620,68 +604,64 @@ export default class {
|
|
|
620
604
|
height: number;
|
|
621
605
|
x: number;
|
|
622
606
|
y: number;
|
|
607
|
+
z: number;
|
|
623
608
|
rotation: number;
|
|
624
609
|
}[];
|
|
625
610
|
width: number;
|
|
626
611
|
height: number;
|
|
627
|
-
orderTree: {
|
|
628
|
-
root: string[];
|
|
629
|
-
elements: {
|
|
630
|
-
[x: string]: {
|
|
631
|
-
type: "conditionGroup";
|
|
632
|
-
} | {
|
|
633
|
-
type: "condition";
|
|
634
|
-
children: string[];
|
|
635
|
-
} | {
|
|
636
|
-
type: "component";
|
|
637
|
-
} | {
|
|
638
|
-
type: "componentGroup";
|
|
639
|
-
children: string[];
|
|
640
|
-
};
|
|
641
|
-
};
|
|
642
|
-
};
|
|
643
|
-
url?: ({
|
|
644
|
-
type: "static";
|
|
645
|
-
value: string;
|
|
646
|
-
} | {
|
|
647
|
-
type: "dependency";
|
|
648
|
-
value: string;
|
|
649
|
-
})[];
|
|
650
612
|
};
|
|
651
613
|
};
|
|
652
614
|
conditionGroups: {
|
|
653
615
|
[x: string]: {
|
|
654
616
|
name?: string;
|
|
617
|
+
parent?: {
|
|
618
|
+
id: string;
|
|
619
|
+
type: "conditionGroup";
|
|
620
|
+
conditionId: string;
|
|
621
|
+
} | {
|
|
622
|
+
id: string;
|
|
623
|
+
type: "componentGroup";
|
|
624
|
+
};
|
|
655
625
|
conditions: ({
|
|
656
626
|
id: string;
|
|
627
|
+
components: string[];
|
|
657
628
|
type: "and" | "or";
|
|
658
629
|
rules: {
|
|
659
|
-
|
|
630
|
+
field: {
|
|
660
631
|
type: "static";
|
|
661
632
|
value: string | number;
|
|
662
633
|
} | {
|
|
663
634
|
type: "dependency";
|
|
664
635
|
value: string;
|
|
665
636
|
};
|
|
666
|
-
|
|
637
|
+
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
638
|
+
value: {
|
|
667
639
|
type: "static";
|
|
668
640
|
value: string | number;
|
|
669
641
|
} | {
|
|
670
642
|
type: "dependency";
|
|
671
643
|
value: string;
|
|
672
644
|
};
|
|
673
|
-
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
674
645
|
}[];
|
|
675
646
|
} | {
|
|
676
|
-
id:
|
|
677
|
-
|
|
647
|
+
id: "else";
|
|
648
|
+
components: string[];
|
|
678
649
|
})[];
|
|
679
650
|
};
|
|
680
651
|
};
|
|
681
652
|
componentGroups: {
|
|
682
653
|
[x: string]: {
|
|
683
654
|
name?: string;
|
|
655
|
+
components: string[];
|
|
684
656
|
rendered: boolean;
|
|
657
|
+
parent?: {
|
|
658
|
+
id: string;
|
|
659
|
+
type: "conditionGroup";
|
|
660
|
+
conditionId: string;
|
|
661
|
+
} | {
|
|
662
|
+
id: string;
|
|
663
|
+
type: "componentGroup";
|
|
664
|
+
};
|
|
685
665
|
};
|
|
686
666
|
};
|
|
687
667
|
};
|
|
@@ -690,7 +670,6 @@ export default class {
|
|
|
690
670
|
}>>;
|
|
691
671
|
delete: (params: {
|
|
692
672
|
id: string;
|
|
693
|
-
'dry-run'?: boolean;
|
|
694
673
|
}, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
|
|
695
674
|
status: "success";
|
|
696
675
|
program: string;
|
|
@@ -773,68 +752,64 @@ export default class {
|
|
|
773
752
|
height: number;
|
|
774
753
|
x: number;
|
|
775
754
|
y: number;
|
|
755
|
+
z: number;
|
|
776
756
|
rotation: number;
|
|
777
757
|
}[];
|
|
778
758
|
width: number;
|
|
779
759
|
height: number;
|
|
780
|
-
orderTree: {
|
|
781
|
-
root: string[];
|
|
782
|
-
elements: {
|
|
783
|
-
[x: string]: {
|
|
784
|
-
type: "conditionGroup";
|
|
785
|
-
} | {
|
|
786
|
-
type: "condition";
|
|
787
|
-
children: string[];
|
|
788
|
-
} | {
|
|
789
|
-
type: "component";
|
|
790
|
-
} | {
|
|
791
|
-
type: "componentGroup";
|
|
792
|
-
children: string[];
|
|
793
|
-
};
|
|
794
|
-
};
|
|
795
|
-
};
|
|
796
|
-
url?: ({
|
|
797
|
-
type: "static";
|
|
798
|
-
value: string;
|
|
799
|
-
} | {
|
|
800
|
-
type: "dependency";
|
|
801
|
-
value: string;
|
|
802
|
-
})[];
|
|
803
760
|
};
|
|
804
761
|
};
|
|
805
762
|
conditionGroups: {
|
|
806
763
|
[x: string]: {
|
|
807
764
|
name?: string;
|
|
765
|
+
parent?: {
|
|
766
|
+
id: string;
|
|
767
|
+
type: "conditionGroup";
|
|
768
|
+
conditionId: string;
|
|
769
|
+
} | {
|
|
770
|
+
id: string;
|
|
771
|
+
type: "componentGroup";
|
|
772
|
+
};
|
|
808
773
|
conditions: ({
|
|
809
774
|
id: string;
|
|
775
|
+
components: string[];
|
|
810
776
|
type: "and" | "or";
|
|
811
777
|
rules: {
|
|
812
|
-
|
|
778
|
+
field: {
|
|
813
779
|
type: "static";
|
|
814
780
|
value: string | number;
|
|
815
781
|
} | {
|
|
816
782
|
type: "dependency";
|
|
817
783
|
value: string;
|
|
818
784
|
};
|
|
819
|
-
|
|
785
|
+
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
786
|
+
value: {
|
|
820
787
|
type: "static";
|
|
821
788
|
value: string | number;
|
|
822
789
|
} | {
|
|
823
790
|
type: "dependency";
|
|
824
791
|
value: string;
|
|
825
792
|
};
|
|
826
|
-
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
827
793
|
}[];
|
|
828
794
|
} | {
|
|
829
|
-
id:
|
|
830
|
-
|
|
795
|
+
id: "else";
|
|
796
|
+
components: string[];
|
|
831
797
|
})[];
|
|
832
798
|
};
|
|
833
799
|
};
|
|
834
800
|
componentGroups: {
|
|
835
801
|
[x: string]: {
|
|
836
802
|
name?: string;
|
|
803
|
+
components: string[];
|
|
837
804
|
rendered: boolean;
|
|
805
|
+
parent?: {
|
|
806
|
+
id: string;
|
|
807
|
+
type: "conditionGroup";
|
|
808
|
+
conditionId: string;
|
|
809
|
+
} | {
|
|
810
|
+
id: string;
|
|
811
|
+
type: "componentGroup";
|
|
812
|
+
};
|
|
838
813
|
};
|
|
839
814
|
};
|
|
840
815
|
};
|
package/build/api.js
CHANGED
|
@@ -30,9 +30,7 @@ class default_1 {
|
|
|
30
30
|
return this.axios.patch("/contents/{id}".replace(/{id}/, String(params["id"])), data, options);
|
|
31
31
|
}
|
|
32
32
|
deleteContent(params, options) {
|
|
33
|
-
return this.axios.delete("/contents/{id}".replace(/{id}/, String(params["id"])),
|
|
34
|
-
params: pick(params, "dry-run"),
|
|
35
|
-
}, options));
|
|
33
|
+
return this.axios.delete("/contents/{id}".replace(/{id}/, String(params["id"])), options);
|
|
36
34
|
}
|
|
37
35
|
publishContent(params, options) {
|
|
38
36
|
return this.axios.post("/contents/{id}/publish".replace(/{id}/, String(params["id"])), {}, options);
|
|
@@ -63,4 +61,4 @@ function pick(obj, ...keys) {
|
|
|
63
61
|
});
|
|
64
62
|
return ret;
|
|
65
63
|
}
|
|
66
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
64
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBpLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxvQkFBb0I7QUFDcEIsb0JBQW9COzs7Ozs7QUFFcEIsa0RBQWlFO0FBR2pFLDZDQUFnUDtBQUE3Tiw0R0FBQSxhQUFhLE9BQUE7QUFFaEM7SUFHSSxZQUFZLGdCQUFvRDtRQUM1RCxJQUFJLENBQUMsS0FBSyxHQUFHLGNBQWMsSUFBSSxnQkFBZ0I7WUFDM0MsQ0FBQyxDQUFDLGdCQUFnQjtZQUNsQixDQUFDLENBQUMsZUFBSyxD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SxDQUFDLElBQUksQ0FBQztZQUNyQyxHQUFHLEVBQUUsSUFBSSxDQUFDLFVBQVUsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDO1lBQy9CLE1BQU0sRUFBRSxJQUFJLENBQUMsYUFBYSxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUM7WUFDckMsTUFBTSxFQUFFLElBQUksQ0FBQyxhQUFhLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQztZQUNyQyxPQUFPLEVBQUUsSUFBSSxDQUFDLGNBQWMsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDO1lBQ3ZDLE1BQU0sRUFBRSxJQUFJLENBQUMsYUFBYSxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUM7U0FDeEMsQ0FBQztJQUNOLENBQUM7Q0FDSjtBQXRKRCw0QkFzSkM7QUFFRCxTQUFTLElBQUksQ0FBdUIsR0FBTSxFQUFFLEdBQUcsSUFBUztJQUNwRCxNQUFNLEdBQUcsR0FBZSxFQUFnQixDQUFDO0lBQ3pDLElBQUksQ0FBQyxPQUFPLENBQUMsR0FBRyxDQUFDLEVBQUU7UUFDZixJQUFJLEdBQUcsSUFBSSxNQUFNLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxDQUFDLFFBQVEsQ0FBQyxHQUFhLENBQUM7WUFDL0MsR0FBRyxDQUFDLEdBQUcsQ0FBQyxHQUFHLEdBQUcsQ0FBQyxHQUFHLENBQUMsQ0FBQztJQUM1QixDQUFDLENBQUMsQ0FBQztJQUNILE9BQU8sR0FBRyxDQUFDO0FBQ2YsQ0FBQyJ9
|
package/build/definitions.d.ts
CHANGED
|
@@ -23,49 +23,19 @@ export declare enum ContentVersionState {
|
|
|
23
23
|
INACTIVE = "inactive"
|
|
24
24
|
}
|
|
25
25
|
export declare type AnyValue = any | null;
|
|
26
|
-
export declare type
|
|
26
|
+
export declare type PageComponent = {
|
|
27
27
|
id: string;
|
|
28
28
|
x: number;
|
|
29
29
|
y: number;
|
|
30
|
+
z: number;
|
|
30
31
|
width: number;
|
|
31
32
|
height: number;
|
|
32
33
|
rotation: number;
|
|
33
34
|
};
|
|
34
|
-
export declare type
|
|
35
|
-
type: "conditionGroup";
|
|
36
|
-
};
|
|
37
|
-
export declare type _type_condition_children_string_Array__ = {
|
|
38
|
-
type: "condition";
|
|
39
|
-
children: string[];
|
|
40
|
-
};
|
|
41
|
-
export declare type _type_component__ = {
|
|
42
|
-
type: "component";
|
|
43
|
-
};
|
|
44
|
-
export declare type _type_componentGroup_children_string_Array__ = {
|
|
45
|
-
type: "componentGroup";
|
|
46
|
-
children: string[];
|
|
47
|
-
};
|
|
48
|
-
export declare type __x_string___type_conditionGroup___or__type_condition_children_string_Array___or__type_component___or__type_componentGroup_children_string_Array____ = {
|
|
49
|
-
[key: string]: _type_conditionGroup__ | _type_condition_children_string_Array__ | _type_component__ | _type_componentGroup_children_string_Array__;
|
|
50
|
-
};
|
|
51
|
-
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______ = {
|
|
52
|
-
root: string[];
|
|
53
|
-
elements: __x_string___type_conditionGroup___or__type_condition_children_string_Array___or__type_component___or__type_componentGroup_children_string_Array____;
|
|
54
|
-
};
|
|
55
|
-
export declare type _type_static_value_string__ = {
|
|
56
|
-
type: "static";
|
|
57
|
-
value: string;
|
|
58
|
-
};
|
|
59
|
-
export declare type _type_dependency_value_string__ = {
|
|
60
|
-
type: "dependency";
|
|
61
|
-
value: string;
|
|
62
|
-
};
|
|
63
|
-
export declare type _width_number_height_number_components__id_string_x_number_y_number_width_number_height_number_rotation_number___Array_orderTree__root_string_Array_elements___x_string___type_conditionGroup___or__type_condition_children_string_Array___or__type_component___or__type_componentGroup_children_string_Array_______url___type_static_value_string___or__type_dependency_value_string____Array_or_undefined__ = {
|
|
35
|
+
export declare type Page = {
|
|
64
36
|
width: number;
|
|
65
37
|
height: number;
|
|
66
|
-
components:
|
|
67
|
-
orderTree: _root_string_Array_elements___x_string___type_conditionGroup___or__type_condition_children_string_Array___or__type_component___or__type_componentGroup_children_string_Array______;
|
|
68
|
-
url?: (_type_static_value_string__ | _type_dependency_value_string__)[];
|
|
38
|
+
components: PageComponent[];
|
|
69
39
|
};
|
|
70
40
|
export declare type Condition = {
|
|
71
41
|
id: string;
|
|
@@ -87,17 +57,35 @@ export declare type Condition = {
|
|
|
87
57
|
value: string;
|
|
88
58
|
};
|
|
89
59
|
}[];
|
|
60
|
+
components: string[];
|
|
90
61
|
};
|
|
91
62
|
export declare type ElseCondition = {
|
|
92
|
-
id:
|
|
93
|
-
|
|
63
|
+
id: "else";
|
|
64
|
+
components: string[];
|
|
94
65
|
};
|
|
95
66
|
export declare type ConditionGroup = {
|
|
67
|
+
parent?: {
|
|
68
|
+
type: "conditionGroup";
|
|
69
|
+
id: string;
|
|
70
|
+
conditionId: string;
|
|
71
|
+
} | {
|
|
72
|
+
type: "componentGroup";
|
|
73
|
+
id: string;
|
|
74
|
+
};
|
|
96
75
|
name?: string;
|
|
97
76
|
conditions: (Condition | Condition | ElseCondition)[];
|
|
98
77
|
};
|
|
99
78
|
export declare type ComponentGroup = {
|
|
100
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[];
|
|
101
89
|
rendered: boolean;
|
|
102
90
|
};
|
|
103
91
|
export declare type BaseTemplate = {
|
|
@@ -120,7 +108,7 @@ export declare type BaseTemplate = {
|
|
|
120
108
|
};
|
|
121
109
|
};
|
|
122
110
|
pages: {
|
|
123
|
-
[key: string]:
|
|
111
|
+
[key: string]: Page;
|
|
124
112
|
};
|
|
125
113
|
conditionGroups: {
|
|
126
114
|
[key: string]: ConditionGroup;
|
package/build/definitions.js
CHANGED
|
@@ -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,
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmaW5pdGlvbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9kZWZpbml0aW9ucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsb0JBQW9CO0FBQ3BCLG9CQUFvQjs7O0FBZ0NwQixJQUFZLG1CQUlYO0FBSkQsV0FBWSxtQkFBbUI7SUFDM0Isc0NBQWUsQ0FBQTtJQUNmLG9DQUFhLENBQUE7SUFDYiw0Q0FBcUIsQ0FBQTtBQUN6QixDQUFDLEVBSlcsbUJBQW1CLEdBQW5CLDJCQUFtQixLQUFuQiwyQkFBbUIsUUFJOUI7QUEyR0QsSUFBWSxhQUtYO0FBTEQsV0FBWSxhQUFhO0lBQ3JCLGdDQUFlLENBQUE7SUFDZiwwQ0FBeUIsQ0FBQTtJQUN6Qix3Q0FBdUIsQ0FBQTtJQUN2QixnQ0FBZSxDQUFBO0FBQ25CLENBQUMsRUFMVyxhQUFhLEdBQWIscUJBQWEsS0FBYixxQkFBYSxRQUt4QiJ9
|
package/package.json
CHANGED