@rlvt/contents-openapi-client 0.0.0-9a2e8d9 → 0.0.0-a908855
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 +109 -126
- package/build/api.js +4 -2
- package/build/definitions.d.ts +19 -21
- package/build/definitions.js +1 -1
- package/package.json +1 -1
package/build/api.d.ts
CHANGED
|
@@ -94,27 +94,33 @@ export default class {
|
|
|
94
94
|
height: number;
|
|
95
95
|
x: number;
|
|
96
96
|
y: number;
|
|
97
|
-
z: number;
|
|
98
97
|
rotation: number;
|
|
99
98
|
}[];
|
|
100
99
|
width: number;
|
|
101
100
|
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
|
+
};
|
|
102
117
|
};
|
|
103
118
|
};
|
|
104
119
|
conditionGroups: {
|
|
105
120
|
[x: string]: {
|
|
106
121
|
name?: string;
|
|
107
|
-
parent?: {
|
|
108
|
-
id: string;
|
|
109
|
-
type: "conditionGroup";
|
|
110
|
-
conditionId: string;
|
|
111
|
-
} | {
|
|
112
|
-
id: string;
|
|
113
|
-
type: "componentGroup";
|
|
114
|
-
};
|
|
115
122
|
conditions: ({
|
|
116
123
|
id: string;
|
|
117
|
-
components: string[];
|
|
118
124
|
type: "and" | "or";
|
|
119
125
|
rules: {
|
|
120
126
|
field: {
|
|
@@ -134,24 +140,15 @@ export default class {
|
|
|
134
140
|
};
|
|
135
141
|
}[];
|
|
136
142
|
} | {
|
|
137
|
-
id:
|
|
138
|
-
|
|
143
|
+
id: string;
|
|
144
|
+
isElse: true;
|
|
139
145
|
})[];
|
|
140
146
|
};
|
|
141
147
|
};
|
|
142
148
|
componentGroups: {
|
|
143
149
|
[x: string]: {
|
|
144
150
|
name?: string;
|
|
145
|
-
components: string[];
|
|
146
151
|
rendered: boolean;
|
|
147
|
-
parent?: {
|
|
148
|
-
id: string;
|
|
149
|
-
type: "conditionGroup";
|
|
150
|
-
conditionId: string;
|
|
151
|
-
} | {
|
|
152
|
-
id: string;
|
|
153
|
-
type: "componentGroup";
|
|
154
|
-
};
|
|
155
152
|
};
|
|
156
153
|
};
|
|
157
154
|
};
|
|
@@ -233,27 +230,33 @@ export default class {
|
|
|
233
230
|
height: number;
|
|
234
231
|
x: number;
|
|
235
232
|
y: number;
|
|
236
|
-
z: number;
|
|
237
233
|
rotation: number;
|
|
238
234
|
}[];
|
|
239
235
|
width: number;
|
|
240
236
|
height: number;
|
|
237
|
+
orderTree: {
|
|
238
|
+
root: string[];
|
|
239
|
+
elements: {
|
|
240
|
+
[x: string]: {
|
|
241
|
+
type: "conditionGroup";
|
|
242
|
+
} | {
|
|
243
|
+
type: "condition";
|
|
244
|
+
children: string[];
|
|
245
|
+
} | {
|
|
246
|
+
type: "component";
|
|
247
|
+
} | {
|
|
248
|
+
type: "componentGroup";
|
|
249
|
+
children: string[];
|
|
250
|
+
};
|
|
251
|
+
};
|
|
252
|
+
};
|
|
241
253
|
};
|
|
242
254
|
};
|
|
243
255
|
conditionGroups: {
|
|
244
256
|
[x: string]: {
|
|
245
257
|
name?: string;
|
|
246
|
-
parent?: {
|
|
247
|
-
id: string;
|
|
248
|
-
type: "conditionGroup";
|
|
249
|
-
conditionId: string;
|
|
250
|
-
} | {
|
|
251
|
-
id: string;
|
|
252
|
-
type: "componentGroup";
|
|
253
|
-
};
|
|
254
258
|
conditions: ({
|
|
255
259
|
id: string;
|
|
256
|
-
components: string[];
|
|
257
260
|
type: "and" | "or";
|
|
258
261
|
rules: {
|
|
259
262
|
field: {
|
|
@@ -273,24 +276,15 @@ export default class {
|
|
|
273
276
|
};
|
|
274
277
|
}[];
|
|
275
278
|
} | {
|
|
276
|
-
id:
|
|
277
|
-
|
|
279
|
+
id: string;
|
|
280
|
+
isElse: true;
|
|
278
281
|
})[];
|
|
279
282
|
};
|
|
280
283
|
};
|
|
281
284
|
componentGroups: {
|
|
282
285
|
[x: string]: {
|
|
283
286
|
name?: string;
|
|
284
|
-
components: string[];
|
|
285
287
|
rendered: boolean;
|
|
286
|
-
parent?: {
|
|
287
|
-
id: string;
|
|
288
|
-
type: "conditionGroup";
|
|
289
|
-
conditionId: string;
|
|
290
|
-
} | {
|
|
291
|
-
id: string;
|
|
292
|
-
type: "componentGroup";
|
|
293
|
-
};
|
|
294
288
|
};
|
|
295
289
|
};
|
|
296
290
|
};
|
|
@@ -370,27 +364,33 @@ export default class {
|
|
|
370
364
|
height: number;
|
|
371
365
|
x: number;
|
|
372
366
|
y: number;
|
|
373
|
-
z: number;
|
|
374
367
|
rotation: number;
|
|
375
368
|
}[];
|
|
376
369
|
width: number;
|
|
377
370
|
height: number;
|
|
371
|
+
orderTree: {
|
|
372
|
+
root: string[];
|
|
373
|
+
elements: {
|
|
374
|
+
[x: string]: {
|
|
375
|
+
type: "conditionGroup";
|
|
376
|
+
} | {
|
|
377
|
+
type: "condition";
|
|
378
|
+
children: string[];
|
|
379
|
+
} | {
|
|
380
|
+
type: "component";
|
|
381
|
+
} | {
|
|
382
|
+
type: "componentGroup";
|
|
383
|
+
children: string[];
|
|
384
|
+
};
|
|
385
|
+
};
|
|
386
|
+
};
|
|
378
387
|
};
|
|
379
388
|
};
|
|
380
389
|
conditionGroups: {
|
|
381
390
|
[x: string]: {
|
|
382
391
|
name?: string;
|
|
383
|
-
parent?: {
|
|
384
|
-
id: string;
|
|
385
|
-
type: "conditionGroup";
|
|
386
|
-
conditionId: string;
|
|
387
|
-
} | {
|
|
388
|
-
id: string;
|
|
389
|
-
type: "componentGroup";
|
|
390
|
-
};
|
|
391
392
|
conditions: ({
|
|
392
393
|
id: string;
|
|
393
|
-
components: string[];
|
|
394
394
|
type: "and" | "or";
|
|
395
395
|
rules: {
|
|
396
396
|
field: {
|
|
@@ -410,24 +410,15 @@ export default class {
|
|
|
410
410
|
};
|
|
411
411
|
}[];
|
|
412
412
|
} | {
|
|
413
|
-
id:
|
|
414
|
-
|
|
413
|
+
id: string;
|
|
414
|
+
isElse: true;
|
|
415
415
|
})[];
|
|
416
416
|
};
|
|
417
417
|
};
|
|
418
418
|
componentGroups: {
|
|
419
419
|
[x: string]: {
|
|
420
420
|
name?: string;
|
|
421
|
-
components: string[];
|
|
422
421
|
rendered: boolean;
|
|
423
|
-
parent?: {
|
|
424
|
-
id: string;
|
|
425
|
-
type: "conditionGroup";
|
|
426
|
-
conditionId: string;
|
|
427
|
-
} | {
|
|
428
|
-
id: string;
|
|
429
|
-
type: "componentGroup";
|
|
430
|
-
};
|
|
431
422
|
};
|
|
432
423
|
};
|
|
433
424
|
};
|
|
@@ -472,27 +463,33 @@ export default class {
|
|
|
472
463
|
height: number;
|
|
473
464
|
x: number;
|
|
474
465
|
y: number;
|
|
475
|
-
z: number;
|
|
476
466
|
rotation: number;
|
|
477
467
|
}[];
|
|
478
468
|
width: number;
|
|
479
469
|
height: number;
|
|
470
|
+
orderTree: {
|
|
471
|
+
root: string[];
|
|
472
|
+
elements: {
|
|
473
|
+
[x: string]: {
|
|
474
|
+
type: "conditionGroup";
|
|
475
|
+
} | {
|
|
476
|
+
type: "condition";
|
|
477
|
+
children: string[];
|
|
478
|
+
} | {
|
|
479
|
+
type: "component";
|
|
480
|
+
} | {
|
|
481
|
+
type: "componentGroup";
|
|
482
|
+
children: string[];
|
|
483
|
+
};
|
|
484
|
+
};
|
|
485
|
+
};
|
|
480
486
|
};
|
|
481
487
|
};
|
|
482
488
|
conditionGroups: {
|
|
483
489
|
[x: string]: {
|
|
484
490
|
name?: string;
|
|
485
|
-
parent?: {
|
|
486
|
-
id: string;
|
|
487
|
-
type: "conditionGroup";
|
|
488
|
-
conditionId: string;
|
|
489
|
-
} | {
|
|
490
|
-
id: string;
|
|
491
|
-
type: "componentGroup";
|
|
492
|
-
};
|
|
493
491
|
conditions: ({
|
|
494
492
|
id: string;
|
|
495
|
-
components: string[];
|
|
496
493
|
type: "and" | "or";
|
|
497
494
|
rules: {
|
|
498
495
|
field: {
|
|
@@ -512,24 +509,15 @@ export default class {
|
|
|
512
509
|
};
|
|
513
510
|
}[];
|
|
514
511
|
} | {
|
|
515
|
-
id:
|
|
516
|
-
|
|
512
|
+
id: string;
|
|
513
|
+
isElse: true;
|
|
517
514
|
})[];
|
|
518
515
|
};
|
|
519
516
|
};
|
|
520
517
|
componentGroups: {
|
|
521
518
|
[x: string]: {
|
|
522
519
|
name?: string;
|
|
523
|
-
components: string[];
|
|
524
520
|
rendered: boolean;
|
|
525
|
-
parent?: {
|
|
526
|
-
id: string;
|
|
527
|
-
type: "conditionGroup";
|
|
528
|
-
conditionId: string;
|
|
529
|
-
} | {
|
|
530
|
-
id: string;
|
|
531
|
-
type: "componentGroup";
|
|
532
|
-
};
|
|
533
521
|
};
|
|
534
522
|
};
|
|
535
523
|
};
|
|
@@ -604,27 +592,33 @@ export default class {
|
|
|
604
592
|
height: number;
|
|
605
593
|
x: number;
|
|
606
594
|
y: number;
|
|
607
|
-
z: number;
|
|
608
595
|
rotation: number;
|
|
609
596
|
}[];
|
|
610
597
|
width: number;
|
|
611
598
|
height: number;
|
|
599
|
+
orderTree: {
|
|
600
|
+
root: string[];
|
|
601
|
+
elements: {
|
|
602
|
+
[x: string]: {
|
|
603
|
+
type: "conditionGroup";
|
|
604
|
+
} | {
|
|
605
|
+
type: "condition";
|
|
606
|
+
children: string[];
|
|
607
|
+
} | {
|
|
608
|
+
type: "component";
|
|
609
|
+
} | {
|
|
610
|
+
type: "componentGroup";
|
|
611
|
+
children: string[];
|
|
612
|
+
};
|
|
613
|
+
};
|
|
614
|
+
};
|
|
612
615
|
};
|
|
613
616
|
};
|
|
614
617
|
conditionGroups: {
|
|
615
618
|
[x: string]: {
|
|
616
619
|
name?: string;
|
|
617
|
-
parent?: {
|
|
618
|
-
id: string;
|
|
619
|
-
type: "conditionGroup";
|
|
620
|
-
conditionId: string;
|
|
621
|
-
} | {
|
|
622
|
-
id: string;
|
|
623
|
-
type: "componentGroup";
|
|
624
|
-
};
|
|
625
620
|
conditions: ({
|
|
626
621
|
id: string;
|
|
627
|
-
components: string[];
|
|
628
622
|
type: "and" | "or";
|
|
629
623
|
rules: {
|
|
630
624
|
field: {
|
|
@@ -644,24 +638,15 @@ export default class {
|
|
|
644
638
|
};
|
|
645
639
|
}[];
|
|
646
640
|
} | {
|
|
647
|
-
id:
|
|
648
|
-
|
|
641
|
+
id: string;
|
|
642
|
+
isElse: true;
|
|
649
643
|
})[];
|
|
650
644
|
};
|
|
651
645
|
};
|
|
652
646
|
componentGroups: {
|
|
653
647
|
[x: string]: {
|
|
654
648
|
name?: string;
|
|
655
|
-
components: string[];
|
|
656
649
|
rendered: boolean;
|
|
657
|
-
parent?: {
|
|
658
|
-
id: string;
|
|
659
|
-
type: "conditionGroup";
|
|
660
|
-
conditionId: string;
|
|
661
|
-
} | {
|
|
662
|
-
id: string;
|
|
663
|
-
type: "componentGroup";
|
|
664
|
-
};
|
|
665
650
|
};
|
|
666
651
|
};
|
|
667
652
|
};
|
|
@@ -670,6 +655,7 @@ export default class {
|
|
|
670
655
|
}>>;
|
|
671
656
|
delete: (params: {
|
|
672
657
|
id: string;
|
|
658
|
+
'dry-run'?: boolean;
|
|
673
659
|
}, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
|
|
674
660
|
status: "success";
|
|
675
661
|
program: string;
|
|
@@ -752,27 +738,33 @@ export default class {
|
|
|
752
738
|
height: number;
|
|
753
739
|
x: number;
|
|
754
740
|
y: number;
|
|
755
|
-
z: number;
|
|
756
741
|
rotation: number;
|
|
757
742
|
}[];
|
|
758
743
|
width: number;
|
|
759
744
|
height: number;
|
|
745
|
+
orderTree: {
|
|
746
|
+
root: string[];
|
|
747
|
+
elements: {
|
|
748
|
+
[x: string]: {
|
|
749
|
+
type: "conditionGroup";
|
|
750
|
+
} | {
|
|
751
|
+
type: "condition";
|
|
752
|
+
children: string[];
|
|
753
|
+
} | {
|
|
754
|
+
type: "component";
|
|
755
|
+
} | {
|
|
756
|
+
type: "componentGroup";
|
|
757
|
+
children: string[];
|
|
758
|
+
};
|
|
759
|
+
};
|
|
760
|
+
};
|
|
760
761
|
};
|
|
761
762
|
};
|
|
762
763
|
conditionGroups: {
|
|
763
764
|
[x: string]: {
|
|
764
765
|
name?: string;
|
|
765
|
-
parent?: {
|
|
766
|
-
id: string;
|
|
767
|
-
type: "conditionGroup";
|
|
768
|
-
conditionId: string;
|
|
769
|
-
} | {
|
|
770
|
-
id: string;
|
|
771
|
-
type: "componentGroup";
|
|
772
|
-
};
|
|
773
766
|
conditions: ({
|
|
774
767
|
id: string;
|
|
775
|
-
components: string[];
|
|
776
768
|
type: "and" | "or";
|
|
777
769
|
rules: {
|
|
778
770
|
field: {
|
|
@@ -792,24 +784,15 @@ export default class {
|
|
|
792
784
|
};
|
|
793
785
|
}[];
|
|
794
786
|
} | {
|
|
795
|
-
id:
|
|
796
|
-
|
|
787
|
+
id: string;
|
|
788
|
+
isElse: true;
|
|
797
789
|
})[];
|
|
798
790
|
};
|
|
799
791
|
};
|
|
800
792
|
componentGroups: {
|
|
801
793
|
[x: string]: {
|
|
802
794
|
name?: string;
|
|
803
|
-
components: string[];
|
|
804
795
|
rendered: boolean;
|
|
805
|
-
parent?: {
|
|
806
|
-
id: string;
|
|
807
|
-
type: "conditionGroup";
|
|
808
|
-
conditionId: string;
|
|
809
|
-
} | {
|
|
810
|
-
id: string;
|
|
811
|
-
type: "componentGroup";
|
|
812
|
-
};
|
|
813
796
|
};
|
|
814
797
|
};
|
|
815
798
|
};
|
package/build/api.js
CHANGED
|
@@ -30,7 +30,9 @@ 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"])),
|
|
33
|
+
return this.axios.delete("/contents/{id}".replace(/{id}/, String(params["id"])), Object.assign({}, {
|
|
34
|
+
params: pick(params, "dry-run"),
|
|
35
|
+
}, options));
|
|
34
36
|
}
|
|
35
37
|
publishContent(params, options) {
|
|
36
38
|
return this.axios.post("/contents/{id}/publish".replace(/{id}/, String(params["id"])), {}, options);
|
|
@@ -61,4 +63,4 @@ function pick(obj, ...keys) {
|
|
|
61
63
|
});
|
|
62
64
|
return ret;
|
|
63
65
|
}
|
|
64
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
66
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBpLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxvQkFBb0I7QUFDcEIsb0JBQW9COzs7Ozs7QUFFcEIsa0RBQWlFO0FBR2pFLDZDQUFnUDtBQUE3Tiw0R0FBQSxhQUFhLE9BQUE7QUFFaEM7SUFHSSxZQUFZLGdCQUFvRDtRQUM1RCxJQUFJLENBQUMsS0FBSyxHQUFHLGNBQWMsSUFBSSxnQkFBZ0I7WUFDM0MsQ0FBQyxDQUFDLGdCQUFnQjtZQUNsQixDQUFDLENBQUMsZUFBSyxDQUFDLE1BQU0sQ0FBQyxnQkFBZ0IsQ0FBQyxDQUFBO0lBQ3hDLENBQUM7SUFFTyxXQUFXLENBQUMsTUFRbkIsRUFBRSxPQUE0QjtRQUMzQixPQUFPLElBQUksQ0FBQyxLQUFLLENBQUMsR0FBRyxDQVlqQixXQUFXLEVBQ1gsTUFBTSxDQUFDLE1BQU0sQ0FDVCxFQUFFLEVBQ0Y7WUFDSSxNQUFNLEVBQUUsSUFBSSxDQUFDLE1BQU0sRUFB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FDLGFBQWEsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDO1lBQ3JDLE1BQU0sRUFBRSxJQUFJLENBQUMsYUFBYSxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUM7WUFDckMsT0FBTyxFQUFFLElBQUksQ0FBQyxjQUFjLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQztZQUN2QyxNQUFNLEVBQUUsSUFBSSxDQUFDLGFBQWEsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDO1NBQ3hDLENBQUM7SUFDTixDQUFDO0NBQ0o7QUE5SkQsNEJBOEpDO0FBRUQsU0FBUyxJQUFJLENBQXVCLEdBQU0sRUFBRSxHQUFHLElBQVM7SUFDcEQsTUFBTSxHQUFHLEdBQWUsRUFBZ0IsQ0FBQztJQUN6QyxJQUFJLENBQUMsT0FBTyxDQUFDLEdBQUcsQ0FBQyxFQUFFO1FBQ2YsSUFBSSxHQUFHLElBQUksTUFBTSxDQUFDLElBQUksQ0FBQyxHQUFHLENBQUMsQ0FBQyxRQUFRLENBQUMsR0FBYSxDQUFDO1lBQy9DLEdBQUcsQ0FBQyxHQUFHLENBQUMsR0FBRyxHQUFHLENBQUMsR0FBRyxDQUFDLENBQUM7SUFDNUIsQ0FBQyxDQUFDLENBQUM7SUFDSCxPQUFPLEdBQUcsQ0FBQztBQUNmLENBQUMifQ==
|
package/build/definitions.d.ts
CHANGED
|
@@ -27,15 +27,31 @@ export declare type PageComponent = {
|
|
|
27
27
|
id: string;
|
|
28
28
|
x: number;
|
|
29
29
|
y: number;
|
|
30
|
-
z: number;
|
|
31
30
|
width: number;
|
|
32
31
|
height: number;
|
|
33
32
|
rotation: number;
|
|
34
33
|
};
|
|
34
|
+
export declare type OrderTree = {
|
|
35
|
+
root: string[];
|
|
36
|
+
elements: {
|
|
37
|
+
[key: string]: {
|
|
38
|
+
type: "conditionGroup";
|
|
39
|
+
} | {
|
|
40
|
+
type: "condition";
|
|
41
|
+
children: string[];
|
|
42
|
+
} | {
|
|
43
|
+
type: "component";
|
|
44
|
+
} | {
|
|
45
|
+
type: "componentGroup";
|
|
46
|
+
children: string[];
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
};
|
|
35
50
|
export declare type Page = {
|
|
36
51
|
width: number;
|
|
37
52
|
height: number;
|
|
38
53
|
components: PageComponent[];
|
|
54
|
+
orderTree: OrderTree;
|
|
39
55
|
};
|
|
40
56
|
export declare type Condition = {
|
|
41
57
|
id: string;
|
|
@@ -57,35 +73,17 @@ export declare type Condition = {
|
|
|
57
73
|
value: string;
|
|
58
74
|
};
|
|
59
75
|
}[];
|
|
60
|
-
components: string[];
|
|
61
76
|
};
|
|
62
77
|
export declare type ElseCondition = {
|
|
63
|
-
id:
|
|
64
|
-
|
|
78
|
+
id: string;
|
|
79
|
+
isElse: true;
|
|
65
80
|
};
|
|
66
81
|
export declare type ConditionGroup = {
|
|
67
|
-
parent?: {
|
|
68
|
-
type: "conditionGroup";
|
|
69
|
-
id: string;
|
|
70
|
-
conditionId: string;
|
|
71
|
-
} | {
|
|
72
|
-
type: "componentGroup";
|
|
73
|
-
id: string;
|
|
74
|
-
};
|
|
75
82
|
name?: string;
|
|
76
83
|
conditions: (Condition | Condition | ElseCondition)[];
|
|
77
84
|
};
|
|
78
85
|
export declare type ComponentGroup = {
|
|
79
86
|
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
87
|
rendered: boolean;
|
|
90
88
|
};
|
|
91
89
|
export declare type BaseTemplate = {
|
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmaW5pdGlvbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9kZWZpbml0aW9ucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsb0JBQW9CO0FBQ3BCLG9CQUFvQjs7O0FBZ0NwQixJQUFZLG1CQUlYO0FBSkQsV0FBWSxtQkFBbUI7SUFDM0Isc0NBQWUsQ0FBQTtJQUNmLG9DQUFhLENBQUE7SUFDYiw0Q0FBcUIsQ0FBQTtBQUN6QixDQUFDLEVBSlcsbUJBQW1CLEdBQW5CLDJCQUFtQixLQUFuQiwyQkFBbUIsUUFJOUI7QUF5R0QsSUFBWSxhQUtYO0FBTEQsV0FBWSxhQUFhO0lBQ3JCLGdDQUFlLENBQUE7SUFDZiwwQ0FBeUIsQ0FBQTtJQUN6Qix3Q0FBdUIsQ0FBQTtJQUN2QixnQ0FBZSxDQUFBO0FBQ25CLENBQUMsRUFMVyxhQUFhLEdBQWIscUJBQWEsS0FBYixxQkFBYSxRQUt4QiJ9
|
package/package.json
CHANGED