@rlvt/contents-openapi-client 0.0.0-342dc2d → 0.0.0-4a833b4
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 +65 -203
- package/build/api.js +1 -23
- package/build/definitions.d.ts +38 -71
- package/build/definitions.js +1 -1
- package/package.json +1 -1
package/build/api.d.ts
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { AxiosInstance, AxiosRequestConfig } from "axios";
|
|
2
2
|
import type { ContentStatus } from "./definitions";
|
|
3
|
-
export {
|
|
3
|
+
export { 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;
|
|
11
7
|
private listContent;
|
|
12
8
|
private createContent;
|
|
13
9
|
private getContent;
|
|
@@ -15,147 +11,13 @@ export default class {
|
|
|
15
11
|
private deleteContent;
|
|
16
12
|
private publishContent;
|
|
17
13
|
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
|
-
};
|
|
152
14
|
get Content(): {
|
|
153
15
|
list: (params: {
|
|
154
16
|
ids?: string[];
|
|
155
17
|
name?: string;
|
|
156
18
|
resourceGroupIds?: string[];
|
|
157
19
|
status?: ContentStatus[];
|
|
158
|
-
sortBy?: "
|
|
20
|
+
sortBy?: "updatedAt" | "createdAt";
|
|
159
21
|
sortOrder?: "desc" | "asc";
|
|
160
22
|
page?: number;
|
|
161
23
|
perPage?: number;
|
|
@@ -171,17 +33,14 @@ export default class {
|
|
|
171
33
|
message: string;
|
|
172
34
|
data: {
|
|
173
35
|
description?: string;
|
|
174
|
-
|
|
175
|
-
readonly id: string & {
|
|
36
|
+
readonly updatedAt: Date & {
|
|
176
37
|
readonly?: "__readonly";
|
|
177
38
|
};
|
|
178
39
|
readonly createdAt: Date & {
|
|
179
40
|
readonly?: "__readonly";
|
|
180
41
|
};
|
|
181
|
-
readonly updatedAt: Date & {
|
|
182
|
-
readonly?: "__readonly";
|
|
183
|
-
};
|
|
184
42
|
name: string;
|
|
43
|
+
resourceGroupIds: string[];
|
|
185
44
|
readonly status: (ContentStatus.DRAFT & {
|
|
186
45
|
readonly?: "__readonly";
|
|
187
46
|
}) | (ContentStatus.PUBLISHING & {
|
|
@@ -191,6 +50,9 @@ export default class {
|
|
|
191
50
|
}) | (ContentStatus.ERROR & {
|
|
192
51
|
readonly?: "__readonly";
|
|
193
52
|
});
|
|
53
|
+
readonly id: string & {
|
|
54
|
+
readonly?: "__readonly";
|
|
55
|
+
};
|
|
194
56
|
readonly companyId: string & {
|
|
195
57
|
readonly?: "__readonly";
|
|
196
58
|
};
|
|
@@ -270,18 +132,18 @@ export default class {
|
|
|
270
132
|
type: "and" | "or";
|
|
271
133
|
rules: {
|
|
272
134
|
value: {
|
|
273
|
-
type: "dependency";
|
|
274
|
-
value: string;
|
|
275
|
-
} | {
|
|
276
135
|
type: "static";
|
|
277
136
|
value: string | number;
|
|
278
|
-
}
|
|
279
|
-
field: {
|
|
137
|
+
} | {
|
|
280
138
|
type: "dependency";
|
|
281
139
|
value: string;
|
|
282
|
-
}
|
|
140
|
+
};
|
|
141
|
+
field: {
|
|
283
142
|
type: "static";
|
|
284
143
|
value: string | number;
|
|
144
|
+
} | {
|
|
145
|
+
type: "dependency";
|
|
146
|
+
value: string;
|
|
285
147
|
};
|
|
286
148
|
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
287
149
|
}[];
|
|
@@ -303,8 +165,8 @@ export default class {
|
|
|
303
165
|
}>>;
|
|
304
166
|
create: (data: {
|
|
305
167
|
description?: string;
|
|
306
|
-
resourceGroupIds: string[];
|
|
307
168
|
name: string;
|
|
169
|
+
resourceGroupIds: string[];
|
|
308
170
|
}, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
|
|
309
171
|
status: "success";
|
|
310
172
|
program: string;
|
|
@@ -314,17 +176,14 @@ export default class {
|
|
|
314
176
|
message: string;
|
|
315
177
|
data: {
|
|
316
178
|
description?: string;
|
|
317
|
-
|
|
318
|
-
readonly id: string & {
|
|
179
|
+
readonly updatedAt: Date & {
|
|
319
180
|
readonly?: "__readonly";
|
|
320
181
|
};
|
|
321
182
|
readonly createdAt: Date & {
|
|
322
183
|
readonly?: "__readonly";
|
|
323
184
|
};
|
|
324
|
-
readonly updatedAt: Date & {
|
|
325
|
-
readonly?: "__readonly";
|
|
326
|
-
};
|
|
327
185
|
name: string;
|
|
186
|
+
resourceGroupIds: string[];
|
|
328
187
|
readonly status: (ContentStatus.DRAFT & {
|
|
329
188
|
readonly?: "__readonly";
|
|
330
189
|
}) | (ContentStatus.PUBLISHING & {
|
|
@@ -334,6 +193,9 @@ export default class {
|
|
|
334
193
|
}) | (ContentStatus.ERROR & {
|
|
335
194
|
readonly?: "__readonly";
|
|
336
195
|
});
|
|
196
|
+
readonly id: string & {
|
|
197
|
+
readonly?: "__readonly";
|
|
198
|
+
};
|
|
337
199
|
readonly companyId: string & {
|
|
338
200
|
readonly?: "__readonly";
|
|
339
201
|
};
|
|
@@ -413,18 +275,18 @@ export default class {
|
|
|
413
275
|
type: "and" | "or";
|
|
414
276
|
rules: {
|
|
415
277
|
value: {
|
|
416
|
-
type: "dependency";
|
|
417
|
-
value: string;
|
|
418
|
-
} | {
|
|
419
278
|
type: "static";
|
|
420
279
|
value: string | number;
|
|
421
|
-
}
|
|
422
|
-
field: {
|
|
280
|
+
} | {
|
|
423
281
|
type: "dependency";
|
|
424
282
|
value: string;
|
|
425
|
-
}
|
|
283
|
+
};
|
|
284
|
+
field: {
|
|
426
285
|
type: "static";
|
|
427
286
|
value: string | number;
|
|
287
|
+
} | {
|
|
288
|
+
type: "dependency";
|
|
289
|
+
value: string;
|
|
428
290
|
};
|
|
429
291
|
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
430
292
|
}[];
|
|
@@ -455,17 +317,14 @@ export default class {
|
|
|
455
317
|
message: string;
|
|
456
318
|
data: {
|
|
457
319
|
description?: string;
|
|
458
|
-
|
|
459
|
-
readonly id: string & {
|
|
320
|
+
readonly updatedAt: Date & {
|
|
460
321
|
readonly?: "__readonly";
|
|
461
322
|
};
|
|
462
323
|
readonly createdAt: Date & {
|
|
463
324
|
readonly?: "__readonly";
|
|
464
325
|
};
|
|
465
|
-
readonly updatedAt: Date & {
|
|
466
|
-
readonly?: "__readonly";
|
|
467
|
-
};
|
|
468
326
|
name: string;
|
|
327
|
+
resourceGroupIds: string[];
|
|
469
328
|
readonly status: (ContentStatus.DRAFT & {
|
|
470
329
|
readonly?: "__readonly";
|
|
471
330
|
}) | (ContentStatus.PUBLISHING & {
|
|
@@ -475,6 +334,9 @@ export default class {
|
|
|
475
334
|
}) | (ContentStatus.ERROR & {
|
|
476
335
|
readonly?: "__readonly";
|
|
477
336
|
});
|
|
337
|
+
readonly id: string & {
|
|
338
|
+
readonly?: "__readonly";
|
|
339
|
+
};
|
|
478
340
|
readonly companyId: string & {
|
|
479
341
|
readonly?: "__readonly";
|
|
480
342
|
};
|
|
@@ -554,18 +416,18 @@ export default class {
|
|
|
554
416
|
type: "and" | "or";
|
|
555
417
|
rules: {
|
|
556
418
|
value: {
|
|
557
|
-
type: "dependency";
|
|
558
|
-
value: string;
|
|
559
|
-
} | {
|
|
560
419
|
type: "static";
|
|
561
420
|
value: string | number;
|
|
562
|
-
}
|
|
563
|
-
field: {
|
|
421
|
+
} | {
|
|
564
422
|
type: "dependency";
|
|
565
423
|
value: string;
|
|
566
|
-
}
|
|
424
|
+
};
|
|
425
|
+
field: {
|
|
567
426
|
type: "static";
|
|
568
427
|
value: string | number;
|
|
428
|
+
} | {
|
|
429
|
+
type: "dependency";
|
|
430
|
+
value: string;
|
|
569
431
|
};
|
|
570
432
|
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
571
433
|
}[];
|
|
@@ -589,8 +451,8 @@ export default class {
|
|
|
589
451
|
id: string;
|
|
590
452
|
}, data: {
|
|
591
453
|
description?: string;
|
|
592
|
-
resourceGroupIds?: string[];
|
|
593
454
|
name?: string;
|
|
455
|
+
resourceGroupIds?: string[];
|
|
594
456
|
} & {
|
|
595
457
|
previewUrl?: string;
|
|
596
458
|
metadata?: {
|
|
@@ -660,18 +522,18 @@ export default class {
|
|
|
660
522
|
type: "and" | "or";
|
|
661
523
|
rules: {
|
|
662
524
|
value: {
|
|
663
|
-
type: "dependency";
|
|
664
|
-
value: string;
|
|
665
|
-
} | {
|
|
666
525
|
type: "static";
|
|
667
526
|
value: string | number;
|
|
668
|
-
}
|
|
669
|
-
field: {
|
|
527
|
+
} | {
|
|
670
528
|
type: "dependency";
|
|
671
529
|
value: string;
|
|
672
|
-
}
|
|
530
|
+
};
|
|
531
|
+
field: {
|
|
673
532
|
type: "static";
|
|
674
533
|
value: string | number;
|
|
534
|
+
} | {
|
|
535
|
+
type: "dependency";
|
|
536
|
+
value: string;
|
|
675
537
|
};
|
|
676
538
|
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
677
539
|
}[];
|
|
@@ -697,17 +559,14 @@ export default class {
|
|
|
697
559
|
message: string;
|
|
698
560
|
data: {
|
|
699
561
|
description?: string;
|
|
700
|
-
|
|
701
|
-
readonly id: string & {
|
|
562
|
+
readonly updatedAt: Date & {
|
|
702
563
|
readonly?: "__readonly";
|
|
703
564
|
};
|
|
704
565
|
readonly createdAt: Date & {
|
|
705
566
|
readonly?: "__readonly";
|
|
706
567
|
};
|
|
707
|
-
readonly updatedAt: Date & {
|
|
708
|
-
readonly?: "__readonly";
|
|
709
|
-
};
|
|
710
568
|
name: string;
|
|
569
|
+
resourceGroupIds: string[];
|
|
711
570
|
readonly status: (ContentStatus.DRAFT & {
|
|
712
571
|
readonly?: "__readonly";
|
|
713
572
|
}) | (ContentStatus.PUBLISHING & {
|
|
@@ -717,6 +576,9 @@ export default class {
|
|
|
717
576
|
}) | (ContentStatus.ERROR & {
|
|
718
577
|
readonly?: "__readonly";
|
|
719
578
|
});
|
|
579
|
+
readonly id: string & {
|
|
580
|
+
readonly?: "__readonly";
|
|
581
|
+
};
|
|
720
582
|
readonly companyId: string & {
|
|
721
583
|
readonly?: "__readonly";
|
|
722
584
|
};
|
|
@@ -796,18 +658,18 @@ export default class {
|
|
|
796
658
|
type: "and" | "or";
|
|
797
659
|
rules: {
|
|
798
660
|
value: {
|
|
799
|
-
type: "dependency";
|
|
800
|
-
value: string;
|
|
801
|
-
} | {
|
|
802
661
|
type: "static";
|
|
803
662
|
value: string | number;
|
|
804
|
-
}
|
|
805
|
-
field: {
|
|
663
|
+
} | {
|
|
806
664
|
type: "dependency";
|
|
807
665
|
value: string;
|
|
808
|
-
}
|
|
666
|
+
};
|
|
667
|
+
field: {
|
|
809
668
|
type: "static";
|
|
810
669
|
value: string | number;
|
|
670
|
+
} | {
|
|
671
|
+
type: "dependency";
|
|
672
|
+
value: string;
|
|
811
673
|
};
|
|
812
674
|
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
813
675
|
}[];
|
|
@@ -850,17 +712,14 @@ export default class {
|
|
|
850
712
|
message: string;
|
|
851
713
|
data: {
|
|
852
714
|
description?: string;
|
|
853
|
-
|
|
854
|
-
readonly id: string & {
|
|
715
|
+
readonly updatedAt: Date & {
|
|
855
716
|
readonly?: "__readonly";
|
|
856
717
|
};
|
|
857
718
|
readonly createdAt: Date & {
|
|
858
719
|
readonly?: "__readonly";
|
|
859
720
|
};
|
|
860
|
-
readonly updatedAt: Date & {
|
|
861
|
-
readonly?: "__readonly";
|
|
862
|
-
};
|
|
863
721
|
name: string;
|
|
722
|
+
resourceGroupIds: string[];
|
|
864
723
|
readonly status: (ContentStatus.DRAFT & {
|
|
865
724
|
readonly?: "__readonly";
|
|
866
725
|
}) | (ContentStatus.PUBLISHING & {
|
|
@@ -870,6 +729,9 @@ export default class {
|
|
|
870
729
|
}) | (ContentStatus.ERROR & {
|
|
871
730
|
readonly?: "__readonly";
|
|
872
731
|
});
|
|
732
|
+
readonly id: string & {
|
|
733
|
+
readonly?: "__readonly";
|
|
734
|
+
};
|
|
873
735
|
readonly companyId: string & {
|
|
874
736
|
readonly?: "__readonly";
|
|
875
737
|
};
|
|
@@ -949,18 +811,18 @@ export default class {
|
|
|
949
811
|
type: "and" | "or";
|
|
950
812
|
rules: {
|
|
951
813
|
value: {
|
|
952
|
-
type: "dependency";
|
|
953
|
-
value: string;
|
|
954
|
-
} | {
|
|
955
814
|
type: "static";
|
|
956
815
|
value: string | number;
|
|
957
|
-
}
|
|
958
|
-
field: {
|
|
816
|
+
} | {
|
|
959
817
|
type: "dependency";
|
|
960
818
|
value: string;
|
|
961
|
-
}
|
|
819
|
+
};
|
|
820
|
+
field: {
|
|
962
821
|
type: "static";
|
|
963
822
|
value: string | number;
|
|
823
|
+
} | {
|
|
824
|
+
type: "dependency";
|
|
825
|
+
value: string;
|
|
964
826
|
};
|
|
965
827
|
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
966
828
|
}[];
|
package/build/api.js
CHANGED
|
@@ -15,20 +15,6 @@ 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
|
-
}
|
|
32
18
|
listContent(params, options) {
|
|
33
19
|
return this.axios.get("/contents", Object.assign({}, {
|
|
34
20
|
params: pick(params, "ids", "name", "resourceGroupIds", "status", "sortBy", "sortOrder", "page", "perPage"),
|
|
@@ -56,14 +42,6 @@ class default_1 {
|
|
|
56
42
|
headers: pick(params, "x-rlvt-no-cache"),
|
|
57
43
|
}, options));
|
|
58
44
|
}
|
|
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
|
-
}
|
|
67
45
|
get Content() {
|
|
68
46
|
return {
|
|
69
47
|
list: this.listContent.bind(this),
|
|
@@ -85,4 +63,4 @@ function pick(obj, ...keys) {
|
|
|
85
63
|
});
|
|
86
64
|
return ret;
|
|
87
65
|
}
|
|
88
|
-
//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VMsSUFBSSxDQUF1QixHQUFNLEVBQUUsR0FBRyxJQUFTO0lBQ3BELE1BQU0sR0FBRyxHQUFlLEVBQWdCLENBQUM7SUFDekMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxHQUFHLENBQUMsRUFBRTtRQUNmLElBQUksR0FBRyxJQUFJLE1BQU0sQ0FBQyxJQUFJLENBQUMsR0FBRyxDQUFDLENBQUMsUUFBUSxDQUFDLEdBQWEsQ0FBQztZQUMvQyxHQUFHLENBQUMsR0FBRyxDQUFDLEdBQUcsR0FBRyxDQUFDLEdBQUcsQ0FBQyxDQUFDO0lBQzVCLENBQUMsQ0FBQyxDQUFDO0lBQ0gsT0FBTyxHQUFHLENBQUM7QUFDZixDQUFDIn0=
|
package/build/definitions.d.ts
CHANGED
|
@@ -17,40 +17,6 @@ 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
|
-
};
|
|
54
20
|
export declare enum ContentVersionState {
|
|
55
21
|
DRAFT = "draft",
|
|
56
22
|
LIVE = "live",
|
|
@@ -86,12 +52,6 @@ export declare type _root_string_Array_elements___x_string___type_conditionGroup
|
|
|
86
52
|
root: string[];
|
|
87
53
|
elements: __x_string___type_conditionGroup___or__type_condition_children_string_Array___or__type_component___or__type_componentGroup_children_string_Array____;
|
|
88
54
|
};
|
|
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________ = {
|
|
90
|
-
width: number;
|
|
91
|
-
height: number;
|
|
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
55
|
export declare type _type_static_value_string__ = {
|
|
96
56
|
type: "static";
|
|
97
57
|
value: string;
|
|
@@ -100,45 +60,46 @@ export declare type _type_dependency_value_string__ = {
|
|
|
100
60
|
type: "dependency";
|
|
101
61
|
value: string;
|
|
102
62
|
};
|
|
103
|
-
export declare type
|
|
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__ = {
|
|
64
|
+
width: number;
|
|
65
|
+
height: number;
|
|
66
|
+
components: _id_string_x_number_y_number_width_number_height_number_rotation_number__[];
|
|
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______;
|
|
104
68
|
url?: (_type_static_value_string__ | _type_dependency_value_string__)[];
|
|
105
69
|
};
|
|
106
|
-
export declare type
|
|
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;
|
|
115
|
-
};
|
|
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__ = {
|
|
70
|
+
export declare type Condition = {
|
|
122
71
|
id: string;
|
|
123
72
|
type: "and" | "or";
|
|
124
|
-
rules:
|
|
73
|
+
rules: {
|
|
74
|
+
field: {
|
|
75
|
+
type: "static";
|
|
76
|
+
value: string | number;
|
|
77
|
+
} | {
|
|
78
|
+
type: "dependency";
|
|
79
|
+
value: string;
|
|
80
|
+
};
|
|
81
|
+
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
82
|
+
value: {
|
|
83
|
+
type: "static";
|
|
84
|
+
value: string | number;
|
|
85
|
+
} | {
|
|
86
|
+
type: "dependency";
|
|
87
|
+
value: string;
|
|
88
|
+
};
|
|
89
|
+
}[];
|
|
125
90
|
};
|
|
126
|
-
export declare type
|
|
91
|
+
export declare type ElseCondition = {
|
|
127
92
|
id: string;
|
|
128
93
|
isElse: true;
|
|
129
94
|
};
|
|
130
|
-
export declare type
|
|
131
|
-
|
|
132
|
-
|
|
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_____;
|
|
95
|
+
export declare type ConditionGroup = {
|
|
96
|
+
name?: string;
|
|
97
|
+
conditions: (Condition | Condition | ElseCondition)[];
|
|
135
98
|
};
|
|
136
|
-
export declare type
|
|
99
|
+
export declare type ComponentGroup = {
|
|
100
|
+
name?: string;
|
|
137
101
|
rendered: boolean;
|
|
138
102
|
};
|
|
139
|
-
export declare type __x_string___name_string_or_undefined___and__rendered_boolean____ = {
|
|
140
|
-
[key: string]: _name_string_or_undefined__ & _rendered_boolean__;
|
|
141
|
-
};
|
|
142
103
|
export declare type BaseTemplate = {
|
|
143
104
|
components: {
|
|
144
105
|
[key: string]: {
|
|
@@ -158,9 +119,15 @@ export declare type BaseTemplate = {
|
|
|
158
119
|
};
|
|
159
120
|
};
|
|
160
121
|
};
|
|
161
|
-
pages:
|
|
162
|
-
|
|
163
|
-
|
|
122
|
+
pages: {
|
|
123
|
+
[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__;
|
|
124
|
+
};
|
|
125
|
+
conditionGroups: {
|
|
126
|
+
[key: string]: ConditionGroup;
|
|
127
|
+
};
|
|
128
|
+
componentGroups: {
|
|
129
|
+
[key: string]: ComponentGroup;
|
|
130
|
+
};
|
|
164
131
|
};
|
|
165
132
|
export declare type SerializedContentVersions = {
|
|
166
133
|
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmaW5pdGlvbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9kZWZpbml0aW9ucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsb0JBQW9CO0FBQ3BCLG9CQUFvQjs7O0FBZ0NwQixJQUFZLG1CQUlYO0FBSkQsV0FBWSxtQkFBbUI7SUFDM0Isc0NBQWUsQ0FBQTtJQUNmLG9DQUFhLENBQUE7SUFDYiw0Q0FBcUIsQ0FBQTtBQUN6QixDQUFDLEVBSlcsbUJBQW1CLEdBQW5CLDJCQUFtQixLQUFuQiwyQkFBbUIsUUFJOUI7QUF1SEQsSUFBWSxhQUtYO0FBTEQsV0FBWSxhQUFhO0lBQ3JCLGdDQUFlLENBQUE7SUFDZiwwQ0FBeUIsQ0FBQTtJQUN6Qix3Q0FBdUIsQ0FBQTtJQUN2QixnQ0FBZSxDQUFBO0FBQ25CLENBQUMsRUFMVyxhQUFhLEdBQWIscUJBQWEsS0FBYixxQkFBYSxRQUt4QiJ9
|
package/package.json
CHANGED