@rlvt/contents-openapi-client 0.0.0-71d5c30 → 0.0.0-72eda2e
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 +258 -77
- package/build/api.js +24 -2
- package/build/definitions.d.ts +98 -51
- package/build/definitions.js +1 -1
- package/package.json +1 -1
package/build/api.d.ts
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { AxiosInstance, AxiosRequestConfig } from "axios";
|
|
2
2
|
import type { ContentStatus } from "./definitions";
|
|
3
|
-
export { Contents, ContentStatus, Pick_SerializedContent_resourceGroupIds_or_name_or_description_, Partial_SerializedContent_, Partial_SerializedContentVersions_, AnyValue, Readable, WithoutReadonly, WithoutWriteonly } 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
4
|
export default class {
|
|
5
5
|
axios: AxiosInstance;
|
|
6
6
|
constructor(configOrInstance: AxiosRequestConfig | AxiosInstance);
|
|
7
|
+
private listContentFontResource;
|
|
8
|
+
private createContentFontResource;
|
|
9
|
+
private getContentFontResource;
|
|
10
|
+
private updateContentFontResource;
|
|
7
11
|
private listContent;
|
|
8
12
|
private createContent;
|
|
9
13
|
private getContent;
|
|
@@ -11,12 +15,147 @@ export default class {
|
|
|
11
15
|
private deleteContent;
|
|
12
16
|
private publishContent;
|
|
13
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
|
+
};
|
|
14
152
|
get Content(): {
|
|
15
153
|
list: (params: {
|
|
154
|
+
ids?: string[];
|
|
16
155
|
name?: string;
|
|
17
156
|
resourceGroupIds?: string[];
|
|
18
157
|
status?: ContentStatus[];
|
|
19
|
-
sortBy?: "
|
|
158
|
+
sortBy?: "createdAt" | "updatedAt";
|
|
20
159
|
sortOrder?: "desc" | "asc";
|
|
21
160
|
page?: number;
|
|
22
161
|
perPage?: number;
|
|
@@ -32,14 +171,17 @@ export default class {
|
|
|
32
171
|
message: string;
|
|
33
172
|
data: {
|
|
34
173
|
description?: string;
|
|
35
|
-
|
|
174
|
+
resourceGroupIds: string[];
|
|
175
|
+
readonly id: string & {
|
|
36
176
|
readonly?: "__readonly";
|
|
37
177
|
};
|
|
38
178
|
readonly createdAt: Date & {
|
|
39
179
|
readonly?: "__readonly";
|
|
40
180
|
};
|
|
181
|
+
readonly updatedAt: Date & {
|
|
182
|
+
readonly?: "__readonly";
|
|
183
|
+
};
|
|
41
184
|
name: string;
|
|
42
|
-
resourceGroupIds: string[];
|
|
43
185
|
readonly status: (ContentStatus.DRAFT & {
|
|
44
186
|
readonly?: "__readonly";
|
|
45
187
|
}) | (ContentStatus.PUBLISHING & {
|
|
@@ -49,9 +191,6 @@ export default class {
|
|
|
49
191
|
}) | (ContentStatus.ERROR & {
|
|
50
192
|
readonly?: "__readonly";
|
|
51
193
|
});
|
|
52
|
-
readonly id: string & {
|
|
53
|
-
readonly?: "__readonly";
|
|
54
|
-
};
|
|
55
194
|
readonly companyId: string & {
|
|
56
195
|
readonly?: "__readonly";
|
|
57
196
|
};
|
|
@@ -114,6 +253,13 @@ export default class {
|
|
|
114
253
|
};
|
|
115
254
|
};
|
|
116
255
|
};
|
|
256
|
+
url?: ({
|
|
257
|
+
type: "static";
|
|
258
|
+
value: string;
|
|
259
|
+
} | {
|
|
260
|
+
type: "dependency";
|
|
261
|
+
value: string;
|
|
262
|
+
})[];
|
|
117
263
|
};
|
|
118
264
|
};
|
|
119
265
|
conditionGroups: {
|
|
@@ -123,21 +269,21 @@ export default class {
|
|
|
123
269
|
id: string;
|
|
124
270
|
type: "and" | "or";
|
|
125
271
|
rules: {
|
|
126
|
-
|
|
127
|
-
type: "static";
|
|
128
|
-
value: string | number;
|
|
129
|
-
} | {
|
|
272
|
+
value: {
|
|
130
273
|
type: "dependency";
|
|
131
274
|
value: string;
|
|
132
|
-
}
|
|
133
|
-
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
134
|
-
value: {
|
|
275
|
+
} | {
|
|
135
276
|
type: "static";
|
|
136
277
|
value: string | number;
|
|
137
|
-
}
|
|
278
|
+
};
|
|
279
|
+
field: {
|
|
138
280
|
type: "dependency";
|
|
139
281
|
value: string;
|
|
282
|
+
} | {
|
|
283
|
+
type: "static";
|
|
284
|
+
value: string | number;
|
|
140
285
|
};
|
|
286
|
+
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
141
287
|
}[];
|
|
142
288
|
} | {
|
|
143
289
|
id: string;
|
|
@@ -157,8 +303,8 @@ export default class {
|
|
|
157
303
|
}>>;
|
|
158
304
|
create: (data: {
|
|
159
305
|
description?: string;
|
|
160
|
-
name: string;
|
|
161
306
|
resourceGroupIds: string[];
|
|
307
|
+
name: string;
|
|
162
308
|
}, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
|
|
163
309
|
status: "success";
|
|
164
310
|
program: string;
|
|
@@ -168,14 +314,17 @@ export default class {
|
|
|
168
314
|
message: string;
|
|
169
315
|
data: {
|
|
170
316
|
description?: string;
|
|
171
|
-
|
|
317
|
+
resourceGroupIds: string[];
|
|
318
|
+
readonly id: string & {
|
|
172
319
|
readonly?: "__readonly";
|
|
173
320
|
};
|
|
174
321
|
readonly createdAt: Date & {
|
|
175
322
|
readonly?: "__readonly";
|
|
176
323
|
};
|
|
324
|
+
readonly updatedAt: Date & {
|
|
325
|
+
readonly?: "__readonly";
|
|
326
|
+
};
|
|
177
327
|
name: string;
|
|
178
|
-
resourceGroupIds: string[];
|
|
179
328
|
readonly status: (ContentStatus.DRAFT & {
|
|
180
329
|
readonly?: "__readonly";
|
|
181
330
|
}) | (ContentStatus.PUBLISHING & {
|
|
@@ -185,9 +334,6 @@ export default class {
|
|
|
185
334
|
}) | (ContentStatus.ERROR & {
|
|
186
335
|
readonly?: "__readonly";
|
|
187
336
|
});
|
|
188
|
-
readonly id: string & {
|
|
189
|
-
readonly?: "__readonly";
|
|
190
|
-
};
|
|
191
337
|
readonly companyId: string & {
|
|
192
338
|
readonly?: "__readonly";
|
|
193
339
|
};
|
|
@@ -250,6 +396,13 @@ export default class {
|
|
|
250
396
|
};
|
|
251
397
|
};
|
|
252
398
|
};
|
|
399
|
+
url?: ({
|
|
400
|
+
type: "static";
|
|
401
|
+
value: string;
|
|
402
|
+
} | {
|
|
403
|
+
type: "dependency";
|
|
404
|
+
value: string;
|
|
405
|
+
})[];
|
|
253
406
|
};
|
|
254
407
|
};
|
|
255
408
|
conditionGroups: {
|
|
@@ -259,21 +412,21 @@ export default class {
|
|
|
259
412
|
id: string;
|
|
260
413
|
type: "and" | "or";
|
|
261
414
|
rules: {
|
|
262
|
-
|
|
263
|
-
type: "static";
|
|
264
|
-
value: string | number;
|
|
265
|
-
} | {
|
|
415
|
+
value: {
|
|
266
416
|
type: "dependency";
|
|
267
417
|
value: string;
|
|
268
|
-
}
|
|
269
|
-
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
270
|
-
value: {
|
|
418
|
+
} | {
|
|
271
419
|
type: "static";
|
|
272
420
|
value: string | number;
|
|
273
|
-
}
|
|
421
|
+
};
|
|
422
|
+
field: {
|
|
274
423
|
type: "dependency";
|
|
275
424
|
value: string;
|
|
425
|
+
} | {
|
|
426
|
+
type: "static";
|
|
427
|
+
value: string | number;
|
|
276
428
|
};
|
|
429
|
+
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
277
430
|
}[];
|
|
278
431
|
} | {
|
|
279
432
|
id: string;
|
|
@@ -302,14 +455,17 @@ export default class {
|
|
|
302
455
|
message: string;
|
|
303
456
|
data: {
|
|
304
457
|
description?: string;
|
|
305
|
-
|
|
458
|
+
resourceGroupIds: string[];
|
|
459
|
+
readonly id: string & {
|
|
306
460
|
readonly?: "__readonly";
|
|
307
461
|
};
|
|
308
462
|
readonly createdAt: Date & {
|
|
309
463
|
readonly?: "__readonly";
|
|
310
464
|
};
|
|
465
|
+
readonly updatedAt: Date & {
|
|
466
|
+
readonly?: "__readonly";
|
|
467
|
+
};
|
|
311
468
|
name: string;
|
|
312
|
-
resourceGroupIds: string[];
|
|
313
469
|
readonly status: (ContentStatus.DRAFT & {
|
|
314
470
|
readonly?: "__readonly";
|
|
315
471
|
}) | (ContentStatus.PUBLISHING & {
|
|
@@ -319,9 +475,6 @@ export default class {
|
|
|
319
475
|
}) | (ContentStatus.ERROR & {
|
|
320
476
|
readonly?: "__readonly";
|
|
321
477
|
});
|
|
322
|
-
readonly id: string & {
|
|
323
|
-
readonly?: "__readonly";
|
|
324
|
-
};
|
|
325
478
|
readonly companyId: string & {
|
|
326
479
|
readonly?: "__readonly";
|
|
327
480
|
};
|
|
@@ -384,6 +537,13 @@ export default class {
|
|
|
384
537
|
};
|
|
385
538
|
};
|
|
386
539
|
};
|
|
540
|
+
url?: ({
|
|
541
|
+
type: "static";
|
|
542
|
+
value: string;
|
|
543
|
+
} | {
|
|
544
|
+
type: "dependency";
|
|
545
|
+
value: string;
|
|
546
|
+
})[];
|
|
387
547
|
};
|
|
388
548
|
};
|
|
389
549
|
conditionGroups: {
|
|
@@ -393,21 +553,21 @@ export default class {
|
|
|
393
553
|
id: string;
|
|
394
554
|
type: "and" | "or";
|
|
395
555
|
rules: {
|
|
396
|
-
|
|
397
|
-
type: "static";
|
|
398
|
-
value: string | number;
|
|
399
|
-
} | {
|
|
556
|
+
value: {
|
|
400
557
|
type: "dependency";
|
|
401
558
|
value: string;
|
|
402
|
-
}
|
|
403
|
-
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
404
|
-
value: {
|
|
559
|
+
} | {
|
|
405
560
|
type: "static";
|
|
406
561
|
value: string | number;
|
|
407
|
-
}
|
|
562
|
+
};
|
|
563
|
+
field: {
|
|
408
564
|
type: "dependency";
|
|
409
565
|
value: string;
|
|
566
|
+
} | {
|
|
567
|
+
type: "static";
|
|
568
|
+
value: string | number;
|
|
410
569
|
};
|
|
570
|
+
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
411
571
|
}[];
|
|
412
572
|
} | {
|
|
413
573
|
id: string;
|
|
@@ -429,8 +589,8 @@ export default class {
|
|
|
429
589
|
id: string;
|
|
430
590
|
}, data: {
|
|
431
591
|
description?: string;
|
|
432
|
-
name?: string;
|
|
433
592
|
resourceGroupIds?: string[];
|
|
593
|
+
name?: string;
|
|
434
594
|
} & {
|
|
435
595
|
previewUrl?: string;
|
|
436
596
|
metadata?: {
|
|
@@ -483,6 +643,13 @@ export default class {
|
|
|
483
643
|
};
|
|
484
644
|
};
|
|
485
645
|
};
|
|
646
|
+
url?: ({
|
|
647
|
+
type: "static";
|
|
648
|
+
value: string;
|
|
649
|
+
} | {
|
|
650
|
+
type: "dependency";
|
|
651
|
+
value: string;
|
|
652
|
+
})[];
|
|
486
653
|
};
|
|
487
654
|
};
|
|
488
655
|
conditionGroups: {
|
|
@@ -492,21 +659,21 @@ export default class {
|
|
|
492
659
|
id: string;
|
|
493
660
|
type: "and" | "or";
|
|
494
661
|
rules: {
|
|
495
|
-
|
|
496
|
-
type: "static";
|
|
497
|
-
value: string | number;
|
|
498
|
-
} | {
|
|
662
|
+
value: {
|
|
499
663
|
type: "dependency";
|
|
500
664
|
value: string;
|
|
501
|
-
}
|
|
502
|
-
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
503
|
-
value: {
|
|
665
|
+
} | {
|
|
504
666
|
type: "static";
|
|
505
667
|
value: string | number;
|
|
506
|
-
}
|
|
668
|
+
};
|
|
669
|
+
field: {
|
|
507
670
|
type: "dependency";
|
|
508
671
|
value: string;
|
|
672
|
+
} | {
|
|
673
|
+
type: "static";
|
|
674
|
+
value: string | number;
|
|
509
675
|
};
|
|
676
|
+
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
510
677
|
}[];
|
|
511
678
|
} | {
|
|
512
679
|
id: string;
|
|
@@ -530,14 +697,17 @@ export default class {
|
|
|
530
697
|
message: string;
|
|
531
698
|
data: {
|
|
532
699
|
description?: string;
|
|
533
|
-
|
|
700
|
+
resourceGroupIds: string[];
|
|
701
|
+
readonly id: string & {
|
|
534
702
|
readonly?: "__readonly";
|
|
535
703
|
};
|
|
536
704
|
readonly createdAt: Date & {
|
|
537
705
|
readonly?: "__readonly";
|
|
538
706
|
};
|
|
707
|
+
readonly updatedAt: Date & {
|
|
708
|
+
readonly?: "__readonly";
|
|
709
|
+
};
|
|
539
710
|
name: string;
|
|
540
|
-
resourceGroupIds: string[];
|
|
541
711
|
readonly status: (ContentStatus.DRAFT & {
|
|
542
712
|
readonly?: "__readonly";
|
|
543
713
|
}) | (ContentStatus.PUBLISHING & {
|
|
@@ -547,9 +717,6 @@ export default class {
|
|
|
547
717
|
}) | (ContentStatus.ERROR & {
|
|
548
718
|
readonly?: "__readonly";
|
|
549
719
|
});
|
|
550
|
-
readonly id: string & {
|
|
551
|
-
readonly?: "__readonly";
|
|
552
|
-
};
|
|
553
720
|
readonly companyId: string & {
|
|
554
721
|
readonly?: "__readonly";
|
|
555
722
|
};
|
|
@@ -612,6 +779,13 @@ export default class {
|
|
|
612
779
|
};
|
|
613
780
|
};
|
|
614
781
|
};
|
|
782
|
+
url?: ({
|
|
783
|
+
type: "static";
|
|
784
|
+
value: string;
|
|
785
|
+
} | {
|
|
786
|
+
type: "dependency";
|
|
787
|
+
value: string;
|
|
788
|
+
})[];
|
|
615
789
|
};
|
|
616
790
|
};
|
|
617
791
|
conditionGroups: {
|
|
@@ -621,21 +795,21 @@ export default class {
|
|
|
621
795
|
id: string;
|
|
622
796
|
type: "and" | "or";
|
|
623
797
|
rules: {
|
|
624
|
-
|
|
625
|
-
type: "static";
|
|
626
|
-
value: string | number;
|
|
627
|
-
} | {
|
|
798
|
+
value: {
|
|
628
799
|
type: "dependency";
|
|
629
800
|
value: string;
|
|
630
|
-
}
|
|
631
|
-
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
632
|
-
value: {
|
|
801
|
+
} | {
|
|
633
802
|
type: "static";
|
|
634
803
|
value: string | number;
|
|
635
|
-
}
|
|
804
|
+
};
|
|
805
|
+
field: {
|
|
636
806
|
type: "dependency";
|
|
637
807
|
value: string;
|
|
808
|
+
} | {
|
|
809
|
+
type: "static";
|
|
810
|
+
value: string | number;
|
|
638
811
|
};
|
|
812
|
+
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
639
813
|
}[];
|
|
640
814
|
} | {
|
|
641
815
|
id: string;
|
|
@@ -676,14 +850,17 @@ export default class {
|
|
|
676
850
|
message: string;
|
|
677
851
|
data: {
|
|
678
852
|
description?: string;
|
|
679
|
-
|
|
853
|
+
resourceGroupIds: string[];
|
|
854
|
+
readonly id: string & {
|
|
680
855
|
readonly?: "__readonly";
|
|
681
856
|
};
|
|
682
857
|
readonly createdAt: Date & {
|
|
683
858
|
readonly?: "__readonly";
|
|
684
859
|
};
|
|
860
|
+
readonly updatedAt: Date & {
|
|
861
|
+
readonly?: "__readonly";
|
|
862
|
+
};
|
|
685
863
|
name: string;
|
|
686
|
-
resourceGroupIds: string[];
|
|
687
864
|
readonly status: (ContentStatus.DRAFT & {
|
|
688
865
|
readonly?: "__readonly";
|
|
689
866
|
}) | (ContentStatus.PUBLISHING & {
|
|
@@ -693,9 +870,6 @@ export default class {
|
|
|
693
870
|
}) | (ContentStatus.ERROR & {
|
|
694
871
|
readonly?: "__readonly";
|
|
695
872
|
});
|
|
696
|
-
readonly id: string & {
|
|
697
|
-
readonly?: "__readonly";
|
|
698
|
-
};
|
|
699
873
|
readonly companyId: string & {
|
|
700
874
|
readonly?: "__readonly";
|
|
701
875
|
};
|
|
@@ -758,6 +932,13 @@ export default class {
|
|
|
758
932
|
};
|
|
759
933
|
};
|
|
760
934
|
};
|
|
935
|
+
url?: ({
|
|
936
|
+
type: "static";
|
|
937
|
+
value: string;
|
|
938
|
+
} | {
|
|
939
|
+
type: "dependency";
|
|
940
|
+
value: string;
|
|
941
|
+
})[];
|
|
761
942
|
};
|
|
762
943
|
};
|
|
763
944
|
conditionGroups: {
|
|
@@ -767,21 +948,21 @@ export default class {
|
|
|
767
948
|
id: string;
|
|
768
949
|
type: "and" | "or";
|
|
769
950
|
rules: {
|
|
770
|
-
|
|
771
|
-
type: "static";
|
|
772
|
-
value: string | number;
|
|
773
|
-
} | {
|
|
951
|
+
value: {
|
|
774
952
|
type: "dependency";
|
|
775
953
|
value: string;
|
|
776
|
-
}
|
|
777
|
-
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
778
|
-
value: {
|
|
954
|
+
} | {
|
|
779
955
|
type: "static";
|
|
780
956
|
value: string | number;
|
|
781
|
-
}
|
|
957
|
+
};
|
|
958
|
+
field: {
|
|
782
959
|
type: "dependency";
|
|
783
960
|
value: string;
|
|
961
|
+
} | {
|
|
962
|
+
type: "static";
|
|
963
|
+
value: string | number;
|
|
784
964
|
};
|
|
965
|
+
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
785
966
|
}[];
|
|
786
967
|
} | {
|
|
787
968
|
id: string;
|
package/build/api.js
CHANGED
|
@@ -15,9 +15,23 @@ class default_1 {
|
|
|
15
15
|
? configOrInstance
|
|
16
16
|
: axios_1.default.create(configOrInstance);
|
|
17
17
|
}
|
|
18
|
+
listContentFontResource(params, options) {
|
|
19
|
+
return this.axios.get("/contents/fonts", Object.assign({}, {
|
|
20
|
+
params: pick(params, "ids", "resourceGroupIds"),
|
|
21
|
+
}, options));
|
|
22
|
+
}
|
|
23
|
+
createContentFontResource(data, options) {
|
|
24
|
+
return this.axios.post("/contents/fonts", data, options);
|
|
25
|
+
}
|
|
26
|
+
getContentFontResource(params, options) {
|
|
27
|
+
return this.axios.get("/contents/fonts/{id}".replace(/{id}/, String(params["id"])), options);
|
|
28
|
+
}
|
|
29
|
+
updateContentFontResource(params, data, options) {
|
|
30
|
+
return this.axios.patch("/contents/fonts/{id}".replace(/{id}/, String(params["id"])), data, options);
|
|
31
|
+
}
|
|
18
32
|
listContent(params, options) {
|
|
19
33
|
return this.axios.get("/contents", Object.assign({}, {
|
|
20
|
-
params: pick(params, "name", "resourceGroupIds", "status", "sortBy", "sortOrder", "page", "perPage"),
|
|
34
|
+
params: pick(params, "ids", "name", "resourceGroupIds", "status", "sortBy", "sortOrder", "page", "perPage"),
|
|
21
35
|
}, options));
|
|
22
36
|
}
|
|
23
37
|
createContent(data, options) {
|
|
@@ -42,6 +56,14 @@ class default_1 {
|
|
|
42
56
|
headers: pick(params, "x-rlvt-no-cache"),
|
|
43
57
|
}, options));
|
|
44
58
|
}
|
|
59
|
+
get ContentResource() {
|
|
60
|
+
return {
|
|
61
|
+
listContentFontResource: this.listContentFontResource.bind(this),
|
|
62
|
+
createContentFontResource: this.createContentFontResource.bind(this),
|
|
63
|
+
getContentFontResource: this.getContentFontResource.bind(this),
|
|
64
|
+
updateContentFontResource: this.updateContentFontResource.bind(this)
|
|
65
|
+
};
|
|
66
|
+
}
|
|
45
67
|
get Content() {
|
|
46
68
|
return {
|
|
47
69
|
list: this.listContent.bind(this),
|
|
@@ -63,4 +85,4 @@ function pick(obj, ...keys) {
|
|
|
63
85
|
});
|
|
64
86
|
return ret;
|
|
65
87
|
}
|
|
66
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
88
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBpLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxvQkFBb0I7QUFDcEIsb0JBQW9COzs7Ozs7QUFFcEIsa0RBQWlFO0FBR2pFLDZDQUF1WDtBQUE3Tiw0R0FBQSxhQUFhLE9BQUE7QUFFdks7SUFHSSxZQUFZLGdCQUFvRDtRQUM1RCxJQUFJLENBQUMsS0FBSyxHQUFHLGNBQWMsSUFBSSxnQkFBZ0I7WUFDM0MsQ0FBQyxDQUFDLGdCQUFnQjtZQUNsQixDQUFDLENBQUMsZUFBSyxDQUFDLE1BQU0sQ0FBQyxnQkFBZ0IsQ0FBQyxDQUFBO0lBQ3hDLENBQUM7SUFFTyx1QkFBdUIsQ0FBQyxNQUcvQixFQUFFLE9BQTRCO1FBQzNCLE9BQU8sSUFBSSxDQUFDLEtBQUssQ0FBQyxHQUFHLENBU2pCLGlCQUFpQixFQUNqQixNQUFNLENBQUMsTUFBTSxDQUNULEVBQUUsRUFDRjtZQUNJLE1BQU0sRUFBRSxJQUFJLENBQUMsTUFBTSxFQUFFLEtBQUssRUFBRSxrQkFBa0IsQ0FBQztTQUNsRCxFQUNELE9BQU8sQ0FDVixDQUNKLENBQUM7SUFDTixDQUFDO0lBRU8seUJBQXlCLENBQUMsSUFBOEYsRUFBRSxPQUE0QjtRQUMxSixPQUFPLElBQUksQ0FBQyxLQUFLLENBQUMsSUFBSSxDQVNsQixpQkFBaUIsRUFBRSxJQUFJLEVBQUUsT0FBTyxDQUNuQyxDQUFDO0lBQ04sQ0FBQztJQUVPLHN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UksQ0FBQyxJQUFJLENBQUM7WUFDL0IsTUFBTSxFQUFFLElBQUksQ0FBQyxhQUFhLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQztZQUNyQyxNQUFNLEVBQUUsSUFBSSxDQUFDLGFBQWEsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDO1lBQ3JDLE9BQU8sRUFBRSxJQUFJLENBQUMsY0FBYyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUM7WUFDdkMsTUFBTSxFQUFFLElBQUksQ0FBQyxhQUFhLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQztTQUN4QyxDQUFDO0lBQ04sQ0FBQztDQUNKO0FBOU9ELDRCQThPQztBQUVELFNBQVMsSUFBSSxDQUF1QixHQUFNLEVBQUUsR0FBRyxJQUFTO0lBQ3BELE1BQU0sR0FBRyxHQUFlLEVBQWdCLENBQUM7SUFDekMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxHQUFHLENBQUMsRUFBRTtRQUNmLElBQUksR0FBRyxJQUFJLE1BQU0sQ0FBQyxJQUFJLENBQUMsR0FBRyxDQUFDLENBQUMsUUFBUSxDQUFDLEdBQWEsQ0FBQztZQUMvQyxHQUFHLENBQUMsR0FBRyxDQUFDLEdBQUcsR0FBRyxDQUFDLEdBQUcsQ0FBQyxDQUFDO0lBQzVCLENBQUMsQ0FBQyxDQUFDO0lBQ0gsT0FBTyxHQUFHLENBQUM7QUFDZixDQUFDIn0=
|
package/build/definitions.d.ts
CHANGED
|
@@ -17,13 +17,47 @@ declare type PropsWithoutWriteonly<T> = {
|
|
|
17
17
|
export declare type WithoutWriteonly<T> = T extends any ? T extends Primitive ? T : T extends Array<infer U> ? WithoutWriteonly<U>[] : {
|
|
18
18
|
[key in keyof Pick<T, PropsWithoutWriteonly<T>>]: Pick<T, PropsWithoutWriteonly<T>>[key] extends any ? WithoutWriteonly<Pick<T, PropsWithoutWriteonly<T>>[key]> : never;
|
|
19
19
|
} : never;
|
|
20
|
+
export declare type SerializedContentResource = {
|
|
21
|
+
readonly id: (string) & readonlyP;
|
|
22
|
+
readonly companyId: (string) & readonlyP;
|
|
23
|
+
resourceGroupIds: string[];
|
|
24
|
+
readonly createdAt: (Date) & readonlyP;
|
|
25
|
+
readonly updatedAt: (Date) & readonlyP;
|
|
26
|
+
};
|
|
27
|
+
export declare type Pick_ContentFontResources_type_or_family_or_files_ = {
|
|
28
|
+
type: "font";
|
|
29
|
+
family: string;
|
|
30
|
+
files: {
|
|
31
|
+
[key: string]: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
export declare type ContentFontResources = SerializedContentResource & Pick_ContentFontResources_type_or_family_or_files_;
|
|
35
|
+
export declare type Pick_SerializedContentFontResource_resourceGroupIds_or_family_or_files_ = {
|
|
36
|
+
resourceGroupIds: string[];
|
|
37
|
+
family: string;
|
|
38
|
+
files: {
|
|
39
|
+
[key: string]: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
export declare type Partial_SerializedContentFontResource_ = {
|
|
43
|
+
readonly id?: (string) & readonlyP;
|
|
44
|
+
readonly companyId?: (string) & readonlyP;
|
|
45
|
+
resourceGroupIds?: string[];
|
|
46
|
+
readonly createdAt?: (Date) & readonlyP;
|
|
47
|
+
readonly updatedAt?: (Date) & readonlyP;
|
|
48
|
+
type?: "font";
|
|
49
|
+
family?: string;
|
|
50
|
+
files?: {
|
|
51
|
+
[key: string]: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
20
54
|
export declare enum ContentVersionState {
|
|
21
55
|
DRAFT = "draft",
|
|
22
56
|
LIVE = "live",
|
|
23
57
|
INACTIVE = "inactive"
|
|
24
58
|
}
|
|
25
59
|
export declare type AnyValue = any | null;
|
|
26
|
-
export declare type
|
|
60
|
+
export declare type _id_string_x_number_y_number_width_number_height_number_rotation_number__ = {
|
|
27
61
|
id: string;
|
|
28
62
|
x: number;
|
|
29
63
|
y: number;
|
|
@@ -31,61 +65,80 @@ export declare type PageComponent = {
|
|
|
31
65
|
height: number;
|
|
32
66
|
rotation: number;
|
|
33
67
|
};
|
|
34
|
-
export declare type
|
|
68
|
+
export declare type _type_conditionGroup__ = {
|
|
69
|
+
type: "conditionGroup";
|
|
70
|
+
};
|
|
71
|
+
export declare type _type_condition_children_string_Array__ = {
|
|
72
|
+
type: "condition";
|
|
73
|
+
children: string[];
|
|
74
|
+
};
|
|
75
|
+
export declare type _type_component__ = {
|
|
76
|
+
type: "component";
|
|
77
|
+
};
|
|
78
|
+
export declare type _type_componentGroup_children_string_Array__ = {
|
|
79
|
+
type: "componentGroup";
|
|
80
|
+
children: string[];
|
|
81
|
+
};
|
|
82
|
+
export declare type __x_string___type_conditionGroup___or__type_condition_children_string_Array___or__type_component___or__type_componentGroup_children_string_Array____ = {
|
|
83
|
+
[key: string]: _type_conditionGroup__ | _type_condition_children_string_Array__ | _type_component__ | _type_componentGroup_children_string_Array__;
|
|
84
|
+
};
|
|
85
|
+
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______ = {
|
|
35
86
|
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
|
-
};
|
|
87
|
+
elements: __x_string___type_conditionGroup___or__type_condition_children_string_Array___or__type_component___or__type_componentGroup_children_string_Array____;
|
|
49
88
|
};
|
|
50
|
-
export declare type
|
|
89
|
+
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________ = {
|
|
51
90
|
width: number;
|
|
52
91
|
height: number;
|
|
53
|
-
components:
|
|
54
|
-
orderTree:
|
|
92
|
+
components: _id_string_x_number_y_number_width_number_height_number_rotation_number__[];
|
|
93
|
+
orderTree: _root_string_Array_elements___x_string___type_conditionGroup___or__type_condition_children_string_Array___or__type_component___or__type_componentGroup_children_string_Array______;
|
|
94
|
+
};
|
|
95
|
+
export declare type _type_static_value_string__ = {
|
|
96
|
+
type: "static";
|
|
97
|
+
value: string;
|
|
98
|
+
};
|
|
99
|
+
export declare type _type_dependency_value_string__ = {
|
|
100
|
+
type: "dependency";
|
|
101
|
+
value: string;
|
|
102
|
+
};
|
|
103
|
+
export declare type _url___type_static_value_string___or__type_dependency_value_string____Array_or_undefined__ = {
|
|
104
|
+
url?: (_type_static_value_string__ | _type_dependency_value_string__)[];
|
|
105
|
+
};
|
|
106
|
+
export declare type __x_string___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_________and__url___type_static_value_string___or__type_dependency_value_string____Array_or_undefined____ = {
|
|
107
|
+
[key: string]: _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__;
|
|
108
|
+
};
|
|
109
|
+
export declare type _name_string_or_undefined__ = {
|
|
110
|
+
name?: string;
|
|
111
|
+
};
|
|
112
|
+
export declare type _type_static_value_string_or_number__ = {
|
|
113
|
+
type: "static";
|
|
114
|
+
value: string | number;
|
|
55
115
|
};
|
|
56
|
-
export declare type
|
|
116
|
+
export declare type _field__type_static_value_string_or_number___or__type_dependency_value_string___operator_24gte_or_24gt_or_24lt_or_24lte_or_24eq_or_24ne_value__type_static_value_string_or_number___or__type_dependency_value_string____ = {
|
|
117
|
+
field: _type_static_value_string_or_number__ | _type_dependency_value_string__;
|
|
118
|
+
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
119
|
+
value: _type_static_value_string_or_number__ | _type_dependency_value_string__;
|
|
120
|
+
};
|
|
121
|
+
export declare type _id_string_type_and_or_or_rules__field__type_static_value_string_or_number___or__type_dependency_value_string___operator_24gte_or_24gt_or_24lt_or_24lte_or_24eq_or_24ne_value__type_static_value_string_or_number___or__type_dependency_value_string_____Array__ = {
|
|
57
122
|
id: string;
|
|
58
123
|
type: "and" | "or";
|
|
59
|
-
rules:
|
|
60
|
-
field: {
|
|
61
|
-
type: "static";
|
|
62
|
-
value: string | number;
|
|
63
|
-
} | {
|
|
64
|
-
type: "dependency";
|
|
65
|
-
value: string;
|
|
66
|
-
};
|
|
67
|
-
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
68
|
-
value: {
|
|
69
|
-
type: "static";
|
|
70
|
-
value: string | number;
|
|
71
|
-
} | {
|
|
72
|
-
type: "dependency";
|
|
73
|
-
value: string;
|
|
74
|
-
};
|
|
75
|
-
}[];
|
|
124
|
+
rules: _field__type_static_value_string_or_number___or__type_dependency_value_string___operator_24gte_or_24gt_or_24lt_or_24lte_or_24eq_or_24ne_value__type_static_value_string_or_number___or__type_dependency_value_string____[];
|
|
76
125
|
};
|
|
77
|
-
export declare type
|
|
126
|
+
export declare type _id_string_isElse_true__ = {
|
|
78
127
|
id: string;
|
|
79
128
|
isElse: true;
|
|
80
129
|
};
|
|
81
|
-
export declare type
|
|
82
|
-
|
|
83
|
-
conditions: (Condition | Condition | ElseCondition)[];
|
|
130
|
+
export declare type _conditions____id_string_type_and_or_or_rules__field__type_static_value_string_or_number___or__type_dependency_value_string___operator_24gte_or_24gt_or_24lt_or_24lte_or_24eq_or_24ne_value__type_static_value_string_or_number___or__type_dependency_value_string_____Array___Array__id_string_type_and_or_or_rules__field__type_static_value_string_or_number___or__type_dependency_value_string___operator_24gte_or_24gt_or_24lt_or_24lte_or_24eq_or_24ne_value__type_static_value_string_or_number___or__type_dependency_value_string_____Array____id_string_isElse_true_____ = {
|
|
131
|
+
conditions: (_id_string_type_and_or_or_rules__field__type_static_value_string_or_number___or__type_dependency_value_string___operator_24gte_or_24gt_or_24lt_or_24lte_or_24eq_or_24ne_value__type_static_value_string_or_number___or__type_dependency_value_string_____Array__ | _id_string_type_and_or_or_rules__field__type_static_value_string_or_number___or__type_dependency_value_string___operator_24gte_or_24gt_or_24lt_or_24lte_or_24eq_or_24ne_value__type_static_value_string_or_number___or__type_dependency_value_string_____Array__ | _id_string_isElse_true__)[];
|
|
84
132
|
};
|
|
85
|
-
export declare type
|
|
86
|
-
|
|
133
|
+
export declare type __x_string___name_string_or_undefined___and__conditions____id_string_type_and_or_or_rules__field__type_static_value_string_or_number___or__type_dependency_value_string___operator_24gte_or_24gt_or_24lt_or_24lte_or_24eq_or_24ne_value__type_static_value_string_or_number___or__type_dependency_value_string_____Array___Array__id_string_type_and_or_or_rules__field__type_static_value_string_or_number___or__type_dependency_value_string___operator_24gte_or_24gt_or_24lt_or_24lte_or_24eq_or_24ne_value__type_static_value_string_or_number___or__type_dependency_value_string_____Array____id_string_isElse_true_______ = {
|
|
134
|
+
[key: string]: _name_string_or_undefined__ & _conditions____id_string_type_and_or_or_rules__field__type_static_value_string_or_number___or__type_dependency_value_string___operator_24gte_or_24gt_or_24lt_or_24lte_or_24eq_or_24ne_value__type_static_value_string_or_number___or__type_dependency_value_string_____Array___Array__id_string_type_and_or_or_rules__field__type_static_value_string_or_number___or__type_dependency_value_string___operator_24gte_or_24gt_or_24lt_or_24lte_or_24eq_or_24ne_value__type_static_value_string_or_number___or__type_dependency_value_string_____Array____id_string_isElse_true_____;
|
|
135
|
+
};
|
|
136
|
+
export declare type _rendered_boolean__ = {
|
|
87
137
|
rendered: boolean;
|
|
88
138
|
};
|
|
139
|
+
export declare type __x_string___name_string_or_undefined___and__rendered_boolean____ = {
|
|
140
|
+
[key: string]: _name_string_or_undefined__ & _rendered_boolean__;
|
|
141
|
+
};
|
|
89
142
|
export declare type BaseTemplate = {
|
|
90
143
|
components: {
|
|
91
144
|
[key: string]: {
|
|
@@ -105,15 +158,9 @@ export declare type BaseTemplate = {
|
|
|
105
158
|
};
|
|
106
159
|
};
|
|
107
160
|
};
|
|
108
|
-
pages:
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
conditionGroups: {
|
|
112
|
-
[key: string]: ConditionGroup;
|
|
113
|
-
};
|
|
114
|
-
componentGroups: {
|
|
115
|
-
[key: string]: ComponentGroup;
|
|
116
|
-
};
|
|
161
|
+
pages: __x_string___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_________and__url___type_static_value_string___or__type_dependency_value_string____Array_or_undefined____;
|
|
162
|
+
conditionGroups: __x_string___name_string_or_undefined___and__conditions____id_string_type_and_or_or_rules__field__type_static_value_string_or_number___or__type_dependency_value_string___operator_24gte_or_24gt_or_24lt_or_24lte_or_24eq_or_24ne_value__type_static_value_string_or_number___or__type_dependency_value_string_____Array___Array__id_string_type_and_or_or_rules__field__type_static_value_string_or_number___or__type_dependency_value_string___operator_24gte_or_24gt_or_24lt_or_24lte_or_24eq_or_24ne_value__type_static_value_string_or_number___or__type_dependency_value_string_____Array____id_string_isElse_true_______;
|
|
163
|
+
componentGroups: __x_string___name_string_or_undefined___and__rendered_boolean____;
|
|
117
164
|
};
|
|
118
165
|
export declare type SerializedContentVersions = {
|
|
119
166
|
readonly state: (ContentVersionState) & readonlyP;
|
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmaW5pdGlvbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9kZWZpbml0aW9ucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsb0JBQW9CO0FBQ3BCLG9CQUFvQjs7O0FBa0VwQixJQUFZLG1CQUlYO0FBSkQsV0FBWSxtQkFBbUI7SUFDM0Isc0NBQWUsQ0FBQTtJQUNmLG9DQUFhLENBQUE7SUFDYiw0Q0FBcUIsQ0FBQTtBQUN6QixDQUFDLEVBSlcsbUJBQW1CLEdBQW5CLDJCQUFtQixLQUFuQiwyQkFBbUIsUUFJOUI7QUFzSEQsSUFBWSxhQUtYO0FBTEQsV0FBWSxhQUFhO0lBQ3JCLGdDQUFlLENBQUE7SUFDZiwwQ0FBeUIsQ0FBQTtJQUN6Qix3Q0FBdUIsQ0FBQTtJQUN2QixnQ0FBZSxDQUFBO0FBQ25CLENBQUMsRUFMVyxhQUFhLEdBQWIscUJBQWEsS0FBYixxQkFBYSxRQUt4QiJ9
|
package/package.json
CHANGED