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