@rlvt/contents-openapi-client 0.0.0-963a765 → 0.0.0-9a2e8d9
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 -170
- package/build/api.js +3 -5
- package/build/definitions.d.ts +25 -37
- package/build/definitions.js +1 -1
- package/package.json +1 -1
package/build/api.d.ts
CHANGED
|
@@ -13,7 +13,6 @@ export default class {
|
|
|
13
13
|
private renderContent;
|
|
14
14
|
get Content(): {
|
|
15
15
|
list: (params: {
|
|
16
|
-
ids?: string[];
|
|
17
16
|
name?: string;
|
|
18
17
|
resourceGroupIds?: string[];
|
|
19
18
|
status?: ContentStatus[];
|
|
@@ -95,68 +94,64 @@ export default class {
|
|
|
95
94
|
height: number;
|
|
96
95
|
x: number;
|
|
97
96
|
y: number;
|
|
97
|
+
z: number;
|
|
98
98
|
rotation: number;
|
|
99
99
|
}[];
|
|
100
100
|
width: number;
|
|
101
101
|
height: number;
|
|
102
|
-
orderTree: {
|
|
103
|
-
root: string[];
|
|
104
|
-
elements: {
|
|
105
|
-
[x: string]: {
|
|
106
|
-
type: "conditionGroup";
|
|
107
|
-
} | {
|
|
108
|
-
type: "condition";
|
|
109
|
-
children: string[];
|
|
110
|
-
} | {
|
|
111
|
-
type: "component";
|
|
112
|
-
} | {
|
|
113
|
-
type: "componentGroup";
|
|
114
|
-
children: string[];
|
|
115
|
-
};
|
|
116
|
-
};
|
|
117
|
-
};
|
|
118
|
-
url?: ({
|
|
119
|
-
type: "static";
|
|
120
|
-
value: string;
|
|
121
|
-
} | {
|
|
122
|
-
type: "dependency";
|
|
123
|
-
value: string;
|
|
124
|
-
})[];
|
|
125
102
|
};
|
|
126
103
|
};
|
|
127
104
|
conditionGroups: {
|
|
128
105
|
[x: string]: {
|
|
129
106
|
name?: string;
|
|
107
|
+
parent?: {
|
|
108
|
+
id: string;
|
|
109
|
+
type: "conditionGroup";
|
|
110
|
+
conditionId: string;
|
|
111
|
+
} | {
|
|
112
|
+
id: string;
|
|
113
|
+
type: "componentGroup";
|
|
114
|
+
};
|
|
130
115
|
conditions: ({
|
|
131
116
|
id: string;
|
|
117
|
+
components: string[];
|
|
132
118
|
type: "and" | "or";
|
|
133
119
|
rules: {
|
|
134
|
-
|
|
120
|
+
field: {
|
|
135
121
|
type: "static";
|
|
136
122
|
value: string | number;
|
|
137
123
|
} | {
|
|
138
124
|
type: "dependency";
|
|
139
125
|
value: string;
|
|
140
126
|
};
|
|
141
|
-
|
|
127
|
+
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
128
|
+
value: {
|
|
142
129
|
type: "static";
|
|
143
130
|
value: string | number;
|
|
144
131
|
} | {
|
|
145
132
|
type: "dependency";
|
|
146
133
|
value: string;
|
|
147
134
|
};
|
|
148
|
-
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
149
135
|
}[];
|
|
150
136
|
} | {
|
|
151
|
-
id:
|
|
152
|
-
|
|
137
|
+
id: "else";
|
|
138
|
+
components: string[];
|
|
153
139
|
})[];
|
|
154
140
|
};
|
|
155
141
|
};
|
|
156
142
|
componentGroups: {
|
|
157
143
|
[x: string]: {
|
|
158
144
|
name?: string;
|
|
145
|
+
components: string[];
|
|
159
146
|
rendered: boolean;
|
|
147
|
+
parent?: {
|
|
148
|
+
id: string;
|
|
149
|
+
type: "conditionGroup";
|
|
150
|
+
conditionId: string;
|
|
151
|
+
} | {
|
|
152
|
+
id: string;
|
|
153
|
+
type: "componentGroup";
|
|
154
|
+
};
|
|
160
155
|
};
|
|
161
156
|
};
|
|
162
157
|
};
|
|
@@ -238,68 +233,64 @@ export default class {
|
|
|
238
233
|
height: number;
|
|
239
234
|
x: number;
|
|
240
235
|
y: number;
|
|
236
|
+
z: number;
|
|
241
237
|
rotation: number;
|
|
242
238
|
}[];
|
|
243
239
|
width: number;
|
|
244
240
|
height: number;
|
|
245
|
-
orderTree: {
|
|
246
|
-
root: string[];
|
|
247
|
-
elements: {
|
|
248
|
-
[x: string]: {
|
|
249
|
-
type: "conditionGroup";
|
|
250
|
-
} | {
|
|
251
|
-
type: "condition";
|
|
252
|
-
children: string[];
|
|
253
|
-
} | {
|
|
254
|
-
type: "component";
|
|
255
|
-
} | {
|
|
256
|
-
type: "componentGroup";
|
|
257
|
-
children: string[];
|
|
258
|
-
};
|
|
259
|
-
};
|
|
260
|
-
};
|
|
261
|
-
url?: ({
|
|
262
|
-
type: "static";
|
|
263
|
-
value: string;
|
|
264
|
-
} | {
|
|
265
|
-
type: "dependency";
|
|
266
|
-
value: string;
|
|
267
|
-
})[];
|
|
268
241
|
};
|
|
269
242
|
};
|
|
270
243
|
conditionGroups: {
|
|
271
244
|
[x: string]: {
|
|
272
245
|
name?: string;
|
|
246
|
+
parent?: {
|
|
247
|
+
id: string;
|
|
248
|
+
type: "conditionGroup";
|
|
249
|
+
conditionId: string;
|
|
250
|
+
} | {
|
|
251
|
+
id: string;
|
|
252
|
+
type: "componentGroup";
|
|
253
|
+
};
|
|
273
254
|
conditions: ({
|
|
274
255
|
id: string;
|
|
256
|
+
components: string[];
|
|
275
257
|
type: "and" | "or";
|
|
276
258
|
rules: {
|
|
277
|
-
|
|
259
|
+
field: {
|
|
278
260
|
type: "static";
|
|
279
261
|
value: string | number;
|
|
280
262
|
} | {
|
|
281
263
|
type: "dependency";
|
|
282
264
|
value: string;
|
|
283
265
|
};
|
|
284
|
-
|
|
266
|
+
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
267
|
+
value: {
|
|
285
268
|
type: "static";
|
|
286
269
|
value: string | number;
|
|
287
270
|
} | {
|
|
288
271
|
type: "dependency";
|
|
289
272
|
value: string;
|
|
290
273
|
};
|
|
291
|
-
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
292
274
|
}[];
|
|
293
275
|
} | {
|
|
294
|
-
id:
|
|
295
|
-
|
|
276
|
+
id: "else";
|
|
277
|
+
components: string[];
|
|
296
278
|
})[];
|
|
297
279
|
};
|
|
298
280
|
};
|
|
299
281
|
componentGroups: {
|
|
300
282
|
[x: string]: {
|
|
301
283
|
name?: string;
|
|
284
|
+
components: string[];
|
|
302
285
|
rendered: boolean;
|
|
286
|
+
parent?: {
|
|
287
|
+
id: string;
|
|
288
|
+
type: "conditionGroup";
|
|
289
|
+
conditionId: string;
|
|
290
|
+
} | {
|
|
291
|
+
id: string;
|
|
292
|
+
type: "componentGroup";
|
|
293
|
+
};
|
|
303
294
|
};
|
|
304
295
|
};
|
|
305
296
|
};
|
|
@@ -379,68 +370,64 @@ export default class {
|
|
|
379
370
|
height: number;
|
|
380
371
|
x: number;
|
|
381
372
|
y: number;
|
|
373
|
+
z: number;
|
|
382
374
|
rotation: number;
|
|
383
375
|
}[];
|
|
384
376
|
width: number;
|
|
385
377
|
height: number;
|
|
386
|
-
orderTree: {
|
|
387
|
-
root: string[];
|
|
388
|
-
elements: {
|
|
389
|
-
[x: string]: {
|
|
390
|
-
type: "conditionGroup";
|
|
391
|
-
} | {
|
|
392
|
-
type: "condition";
|
|
393
|
-
children: string[];
|
|
394
|
-
} | {
|
|
395
|
-
type: "component";
|
|
396
|
-
} | {
|
|
397
|
-
type: "componentGroup";
|
|
398
|
-
children: string[];
|
|
399
|
-
};
|
|
400
|
-
};
|
|
401
|
-
};
|
|
402
|
-
url?: ({
|
|
403
|
-
type: "static";
|
|
404
|
-
value: string;
|
|
405
|
-
} | {
|
|
406
|
-
type: "dependency";
|
|
407
|
-
value: string;
|
|
408
|
-
})[];
|
|
409
378
|
};
|
|
410
379
|
};
|
|
411
380
|
conditionGroups: {
|
|
412
381
|
[x: string]: {
|
|
413
382
|
name?: string;
|
|
383
|
+
parent?: {
|
|
384
|
+
id: string;
|
|
385
|
+
type: "conditionGroup";
|
|
386
|
+
conditionId: string;
|
|
387
|
+
} | {
|
|
388
|
+
id: string;
|
|
389
|
+
type: "componentGroup";
|
|
390
|
+
};
|
|
414
391
|
conditions: ({
|
|
415
392
|
id: string;
|
|
393
|
+
components: string[];
|
|
416
394
|
type: "and" | "or";
|
|
417
395
|
rules: {
|
|
418
|
-
|
|
396
|
+
field: {
|
|
419
397
|
type: "static";
|
|
420
398
|
value: string | number;
|
|
421
399
|
} | {
|
|
422
400
|
type: "dependency";
|
|
423
401
|
value: string;
|
|
424
402
|
};
|
|
425
|
-
|
|
403
|
+
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
404
|
+
value: {
|
|
426
405
|
type: "static";
|
|
427
406
|
value: string | number;
|
|
428
407
|
} | {
|
|
429
408
|
type: "dependency";
|
|
430
409
|
value: string;
|
|
431
410
|
};
|
|
432
|
-
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
433
411
|
}[];
|
|
434
412
|
} | {
|
|
435
|
-
id:
|
|
436
|
-
|
|
413
|
+
id: "else";
|
|
414
|
+
components: string[];
|
|
437
415
|
})[];
|
|
438
416
|
};
|
|
439
417
|
};
|
|
440
418
|
componentGroups: {
|
|
441
419
|
[x: string]: {
|
|
442
420
|
name?: string;
|
|
421
|
+
components: string[];
|
|
443
422
|
rendered: boolean;
|
|
423
|
+
parent?: {
|
|
424
|
+
id: string;
|
|
425
|
+
type: "conditionGroup";
|
|
426
|
+
conditionId: string;
|
|
427
|
+
} | {
|
|
428
|
+
id: string;
|
|
429
|
+
type: "componentGroup";
|
|
430
|
+
};
|
|
444
431
|
};
|
|
445
432
|
};
|
|
446
433
|
};
|
|
@@ -485,68 +472,64 @@ export default class {
|
|
|
485
472
|
height: number;
|
|
486
473
|
x: number;
|
|
487
474
|
y: number;
|
|
475
|
+
z: number;
|
|
488
476
|
rotation: number;
|
|
489
477
|
}[];
|
|
490
478
|
width: number;
|
|
491
479
|
height: number;
|
|
492
|
-
orderTree: {
|
|
493
|
-
root: string[];
|
|
494
|
-
elements: {
|
|
495
|
-
[x: string]: {
|
|
496
|
-
type: "conditionGroup";
|
|
497
|
-
} | {
|
|
498
|
-
type: "condition";
|
|
499
|
-
children: string[];
|
|
500
|
-
} | {
|
|
501
|
-
type: "component";
|
|
502
|
-
} | {
|
|
503
|
-
type: "componentGroup";
|
|
504
|
-
children: string[];
|
|
505
|
-
};
|
|
506
|
-
};
|
|
507
|
-
};
|
|
508
|
-
url?: ({
|
|
509
|
-
type: "static";
|
|
510
|
-
value: string;
|
|
511
|
-
} | {
|
|
512
|
-
type: "dependency";
|
|
513
|
-
value: string;
|
|
514
|
-
})[];
|
|
515
480
|
};
|
|
516
481
|
};
|
|
517
482
|
conditionGroups: {
|
|
518
483
|
[x: string]: {
|
|
519
484
|
name?: string;
|
|
485
|
+
parent?: {
|
|
486
|
+
id: string;
|
|
487
|
+
type: "conditionGroup";
|
|
488
|
+
conditionId: string;
|
|
489
|
+
} | {
|
|
490
|
+
id: string;
|
|
491
|
+
type: "componentGroup";
|
|
492
|
+
};
|
|
520
493
|
conditions: ({
|
|
521
494
|
id: string;
|
|
495
|
+
components: string[];
|
|
522
496
|
type: "and" | "or";
|
|
523
497
|
rules: {
|
|
524
|
-
|
|
498
|
+
field: {
|
|
525
499
|
type: "static";
|
|
526
500
|
value: string | number;
|
|
527
501
|
} | {
|
|
528
502
|
type: "dependency";
|
|
529
503
|
value: string;
|
|
530
504
|
};
|
|
531
|
-
|
|
505
|
+
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
506
|
+
value: {
|
|
532
507
|
type: "static";
|
|
533
508
|
value: string | number;
|
|
534
509
|
} | {
|
|
535
510
|
type: "dependency";
|
|
536
511
|
value: string;
|
|
537
512
|
};
|
|
538
|
-
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
539
513
|
}[];
|
|
540
514
|
} | {
|
|
541
|
-
id:
|
|
542
|
-
|
|
515
|
+
id: "else";
|
|
516
|
+
components: string[];
|
|
543
517
|
})[];
|
|
544
518
|
};
|
|
545
519
|
};
|
|
546
520
|
componentGroups: {
|
|
547
521
|
[x: string]: {
|
|
548
522
|
name?: string;
|
|
523
|
+
components: string[];
|
|
549
524
|
rendered: boolean;
|
|
525
|
+
parent?: {
|
|
526
|
+
id: string;
|
|
527
|
+
type: "conditionGroup";
|
|
528
|
+
conditionId: string;
|
|
529
|
+
} | {
|
|
530
|
+
id: string;
|
|
531
|
+
type: "componentGroup";
|
|
532
|
+
};
|
|
550
533
|
};
|
|
551
534
|
};
|
|
552
535
|
};
|
|
@@ -621,68 +604,64 @@ export default class {
|
|
|
621
604
|
height: number;
|
|
622
605
|
x: number;
|
|
623
606
|
y: number;
|
|
607
|
+
z: number;
|
|
624
608
|
rotation: number;
|
|
625
609
|
}[];
|
|
626
610
|
width: number;
|
|
627
611
|
height: number;
|
|
628
|
-
orderTree: {
|
|
629
|
-
root: string[];
|
|
630
|
-
elements: {
|
|
631
|
-
[x: string]: {
|
|
632
|
-
type: "conditionGroup";
|
|
633
|
-
} | {
|
|
634
|
-
type: "condition";
|
|
635
|
-
children: string[];
|
|
636
|
-
} | {
|
|
637
|
-
type: "component";
|
|
638
|
-
} | {
|
|
639
|
-
type: "componentGroup";
|
|
640
|
-
children: string[];
|
|
641
|
-
};
|
|
642
|
-
};
|
|
643
|
-
};
|
|
644
|
-
url?: ({
|
|
645
|
-
type: "static";
|
|
646
|
-
value: string;
|
|
647
|
-
} | {
|
|
648
|
-
type: "dependency";
|
|
649
|
-
value: string;
|
|
650
|
-
})[];
|
|
651
612
|
};
|
|
652
613
|
};
|
|
653
614
|
conditionGroups: {
|
|
654
615
|
[x: string]: {
|
|
655
616
|
name?: string;
|
|
617
|
+
parent?: {
|
|
618
|
+
id: string;
|
|
619
|
+
type: "conditionGroup";
|
|
620
|
+
conditionId: string;
|
|
621
|
+
} | {
|
|
622
|
+
id: string;
|
|
623
|
+
type: "componentGroup";
|
|
624
|
+
};
|
|
656
625
|
conditions: ({
|
|
657
626
|
id: string;
|
|
627
|
+
components: string[];
|
|
658
628
|
type: "and" | "or";
|
|
659
629
|
rules: {
|
|
660
|
-
|
|
630
|
+
field: {
|
|
661
631
|
type: "static";
|
|
662
632
|
value: string | number;
|
|
663
633
|
} | {
|
|
664
634
|
type: "dependency";
|
|
665
635
|
value: string;
|
|
666
636
|
};
|
|
667
|
-
|
|
637
|
+
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
638
|
+
value: {
|
|
668
639
|
type: "static";
|
|
669
640
|
value: string | number;
|
|
670
641
|
} | {
|
|
671
642
|
type: "dependency";
|
|
672
643
|
value: string;
|
|
673
644
|
};
|
|
674
|
-
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
675
645
|
}[];
|
|
676
646
|
} | {
|
|
677
|
-
id:
|
|
678
|
-
|
|
647
|
+
id: "else";
|
|
648
|
+
components: string[];
|
|
679
649
|
})[];
|
|
680
650
|
};
|
|
681
651
|
};
|
|
682
652
|
componentGroups: {
|
|
683
653
|
[x: string]: {
|
|
684
654
|
name?: string;
|
|
655
|
+
components: string[];
|
|
685
656
|
rendered: boolean;
|
|
657
|
+
parent?: {
|
|
658
|
+
id: string;
|
|
659
|
+
type: "conditionGroup";
|
|
660
|
+
conditionId: string;
|
|
661
|
+
} | {
|
|
662
|
+
id: string;
|
|
663
|
+
type: "componentGroup";
|
|
664
|
+
};
|
|
686
665
|
};
|
|
687
666
|
};
|
|
688
667
|
};
|
|
@@ -691,7 +670,6 @@ export default class {
|
|
|
691
670
|
}>>;
|
|
692
671
|
delete: (params: {
|
|
693
672
|
id: string;
|
|
694
|
-
'dry-run'?: boolean;
|
|
695
673
|
}, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
|
|
696
674
|
status: "success";
|
|
697
675
|
program: string;
|
|
@@ -774,68 +752,64 @@ export default class {
|
|
|
774
752
|
height: number;
|
|
775
753
|
x: number;
|
|
776
754
|
y: number;
|
|
755
|
+
z: number;
|
|
777
756
|
rotation: number;
|
|
778
757
|
}[];
|
|
779
758
|
width: number;
|
|
780
759
|
height: number;
|
|
781
|
-
orderTree: {
|
|
782
|
-
root: string[];
|
|
783
|
-
elements: {
|
|
784
|
-
[x: string]: {
|
|
785
|
-
type: "conditionGroup";
|
|
786
|
-
} | {
|
|
787
|
-
type: "condition";
|
|
788
|
-
children: string[];
|
|
789
|
-
} | {
|
|
790
|
-
type: "component";
|
|
791
|
-
} | {
|
|
792
|
-
type: "componentGroup";
|
|
793
|
-
children: string[];
|
|
794
|
-
};
|
|
795
|
-
};
|
|
796
|
-
};
|
|
797
|
-
url?: ({
|
|
798
|
-
type: "static";
|
|
799
|
-
value: string;
|
|
800
|
-
} | {
|
|
801
|
-
type: "dependency";
|
|
802
|
-
value: string;
|
|
803
|
-
})[];
|
|
804
760
|
};
|
|
805
761
|
};
|
|
806
762
|
conditionGroups: {
|
|
807
763
|
[x: string]: {
|
|
808
764
|
name?: string;
|
|
765
|
+
parent?: {
|
|
766
|
+
id: string;
|
|
767
|
+
type: "conditionGroup";
|
|
768
|
+
conditionId: string;
|
|
769
|
+
} | {
|
|
770
|
+
id: string;
|
|
771
|
+
type: "componentGroup";
|
|
772
|
+
};
|
|
809
773
|
conditions: ({
|
|
810
774
|
id: string;
|
|
775
|
+
components: string[];
|
|
811
776
|
type: "and" | "or";
|
|
812
777
|
rules: {
|
|
813
|
-
|
|
778
|
+
field: {
|
|
814
779
|
type: "static";
|
|
815
780
|
value: string | number;
|
|
816
781
|
} | {
|
|
817
782
|
type: "dependency";
|
|
818
783
|
value: string;
|
|
819
784
|
};
|
|
820
|
-
|
|
785
|
+
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
786
|
+
value: {
|
|
821
787
|
type: "static";
|
|
822
788
|
value: string | number;
|
|
823
789
|
} | {
|
|
824
790
|
type: "dependency";
|
|
825
791
|
value: string;
|
|
826
792
|
};
|
|
827
|
-
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
828
793
|
}[];
|
|
829
794
|
} | {
|
|
830
|
-
id:
|
|
831
|
-
|
|
795
|
+
id: "else";
|
|
796
|
+
components: string[];
|
|
832
797
|
})[];
|
|
833
798
|
};
|
|
834
799
|
};
|
|
835
800
|
componentGroups: {
|
|
836
801
|
[x: string]: {
|
|
837
802
|
name?: string;
|
|
803
|
+
components: string[];
|
|
838
804
|
rendered: boolean;
|
|
805
|
+
parent?: {
|
|
806
|
+
id: string;
|
|
807
|
+
type: "conditionGroup";
|
|
808
|
+
conditionId: string;
|
|
809
|
+
} | {
|
|
810
|
+
id: string;
|
|
811
|
+
type: "componentGroup";
|
|
812
|
+
};
|
|
839
813
|
};
|
|
840
814
|
};
|
|
841
815
|
};
|
package/build/api.js
CHANGED
|
@@ -17,7 +17,7 @@ class default_1 {
|
|
|
17
17
|
}
|
|
18
18
|
listContent(params, options) {
|
|
19
19
|
return this.axios.get("/contents", Object.assign({}, {
|
|
20
|
-
params: pick(params, "
|
|
20
|
+
params: pick(params, "name", "resourceGroupIds", "status", "sortBy", "sortOrder", "page", "perPage"),
|
|
21
21
|
}, options));
|
|
22
22
|
}
|
|
23
23
|
createContent(data, options) {
|
|
@@ -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;base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DQUFDLFFBQVEsQ0FBQyxHQUFhLENBQUM7WUFDL0MsR0FBRyxDQUFDLEdBQUcsQ0FBQyxHQUFHLEdBQUcsQ0FBQyxHQUFHLENBQUMsQ0FBQztJQUM1QixDQUFDLENBQUMsQ0FBQztJQUNILE9BQU8sR0FBRyxDQUFDO0FBQ2YsQ0FBQyJ9
|
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