@rlvt/contents-openapi-client 0.0.0-16fe936 → 0.0.0-2471995
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 +50 -52
- package/build/api.js +9 -13
- package/build/definitions.d.ts +51 -52
- package/build/definitions.js +1 -1
- package/package.json +1 -1
package/build/api.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { AxiosInstance, AxiosRequestConfig } from "axios";
|
|
2
2
|
import type { ContentStatus } from "./definitions";
|
|
3
|
-
export {
|
|
3
|
+
export { FontResource, Pick_SerializedFontResource_resourceGroupIds_or_family_or_files_, Partial_SerializedFontResource_, 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
|
|
8
|
-
private
|
|
9
|
-
private
|
|
10
|
-
private
|
|
7
|
+
private listFontResource;
|
|
8
|
+
private createFontResource;
|
|
9
|
+
private getFontResource;
|
|
10
|
+
private updateFontResource;
|
|
11
11
|
private listContent;
|
|
12
12
|
private createContent;
|
|
13
13
|
private getContent;
|
|
@@ -15,8 +15,8 @@ export default class {
|
|
|
15
15
|
private deleteContent;
|
|
16
16
|
private publishContent;
|
|
17
17
|
private renderContent;
|
|
18
|
-
get
|
|
19
|
-
|
|
18
|
+
get Content(): {
|
|
19
|
+
listFontResource: (params: {
|
|
20
20
|
ids?: string[];
|
|
21
21
|
resourceGroupIds?: string[];
|
|
22
22
|
}, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
|
|
@@ -41,13 +41,13 @@ export default class {
|
|
|
41
41
|
files: {
|
|
42
42
|
[x: string]: string;
|
|
43
43
|
};
|
|
44
|
+
type: "font";
|
|
44
45
|
readonly companyId: string & {
|
|
45
46
|
readonly?: "__readonly";
|
|
46
47
|
};
|
|
47
|
-
type: "font";
|
|
48
48
|
}[];
|
|
49
49
|
}>>;
|
|
50
|
-
|
|
50
|
+
createFontResource: (data: {
|
|
51
51
|
resourceGroupIds: string[];
|
|
52
52
|
family: string;
|
|
53
53
|
files: {
|
|
@@ -75,13 +75,13 @@ export default class {
|
|
|
75
75
|
files: {
|
|
76
76
|
[x: string]: string;
|
|
77
77
|
};
|
|
78
|
+
type: "font";
|
|
78
79
|
readonly companyId: string & {
|
|
79
80
|
readonly?: "__readonly";
|
|
80
81
|
};
|
|
81
|
-
type: "font";
|
|
82
82
|
};
|
|
83
83
|
}>>;
|
|
84
|
-
|
|
84
|
+
getFontResource: (params: {
|
|
85
85
|
id: string;
|
|
86
86
|
}, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
|
|
87
87
|
status: "success";
|
|
@@ -105,13 +105,13 @@ export default class {
|
|
|
105
105
|
files: {
|
|
106
106
|
[x: string]: string;
|
|
107
107
|
};
|
|
108
|
+
type: "font";
|
|
108
109
|
readonly companyId: string & {
|
|
109
110
|
readonly?: "__readonly";
|
|
110
111
|
};
|
|
111
|
-
type: "font";
|
|
112
112
|
};
|
|
113
113
|
}>>;
|
|
114
|
-
|
|
114
|
+
updateFontResource: (params: {
|
|
115
115
|
id: string;
|
|
116
116
|
}, data: {
|
|
117
117
|
resourceGroupIds?: string[];
|
|
@@ -142,14 +142,12 @@ export default class {
|
|
|
142
142
|
files: {
|
|
143
143
|
[x: string]: string;
|
|
144
144
|
};
|
|
145
|
+
type: "font";
|
|
145
146
|
readonly companyId: string & {
|
|
146
147
|
readonly?: "__readonly";
|
|
147
148
|
};
|
|
148
|
-
type: "font";
|
|
149
149
|
};
|
|
150
150
|
}>>;
|
|
151
|
-
};
|
|
152
|
-
get Content(): {
|
|
153
151
|
list: (params: {
|
|
154
152
|
ids?: string[];
|
|
155
153
|
name?: string;
|
|
@@ -270,18 +268,18 @@ export default class {
|
|
|
270
268
|
type: "and" | "or";
|
|
271
269
|
rules: {
|
|
272
270
|
value: {
|
|
273
|
-
type: "dependency";
|
|
274
|
-
value: string;
|
|
275
|
-
} | {
|
|
276
271
|
type: "static";
|
|
277
272
|
value: string | number;
|
|
278
|
-
}
|
|
279
|
-
field: {
|
|
273
|
+
} | {
|
|
280
274
|
type: "dependency";
|
|
281
275
|
value: string;
|
|
282
|
-
}
|
|
276
|
+
};
|
|
277
|
+
field: {
|
|
283
278
|
type: "static";
|
|
284
279
|
value: string | number;
|
|
280
|
+
} | {
|
|
281
|
+
type: "dependency";
|
|
282
|
+
value: string;
|
|
285
283
|
};
|
|
286
284
|
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
287
285
|
}[];
|
|
@@ -413,18 +411,18 @@ export default class {
|
|
|
413
411
|
type: "and" | "or";
|
|
414
412
|
rules: {
|
|
415
413
|
value: {
|
|
416
|
-
type: "dependency";
|
|
417
|
-
value: string;
|
|
418
|
-
} | {
|
|
419
414
|
type: "static";
|
|
420
415
|
value: string | number;
|
|
421
|
-
}
|
|
422
|
-
field: {
|
|
416
|
+
} | {
|
|
423
417
|
type: "dependency";
|
|
424
418
|
value: string;
|
|
425
|
-
}
|
|
419
|
+
};
|
|
420
|
+
field: {
|
|
426
421
|
type: "static";
|
|
427
422
|
value: string | number;
|
|
423
|
+
} | {
|
|
424
|
+
type: "dependency";
|
|
425
|
+
value: string;
|
|
428
426
|
};
|
|
429
427
|
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
430
428
|
}[];
|
|
@@ -554,18 +552,18 @@ export default class {
|
|
|
554
552
|
type: "and" | "or";
|
|
555
553
|
rules: {
|
|
556
554
|
value: {
|
|
557
|
-
type: "dependency";
|
|
558
|
-
value: string;
|
|
559
|
-
} | {
|
|
560
555
|
type: "static";
|
|
561
556
|
value: string | number;
|
|
562
|
-
}
|
|
563
|
-
field: {
|
|
557
|
+
} | {
|
|
564
558
|
type: "dependency";
|
|
565
559
|
value: string;
|
|
566
|
-
}
|
|
560
|
+
};
|
|
561
|
+
field: {
|
|
567
562
|
type: "static";
|
|
568
563
|
value: string | number;
|
|
564
|
+
} | {
|
|
565
|
+
type: "dependency";
|
|
566
|
+
value: string;
|
|
569
567
|
};
|
|
570
568
|
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
571
569
|
}[];
|
|
@@ -660,18 +658,18 @@ export default class {
|
|
|
660
658
|
type: "and" | "or";
|
|
661
659
|
rules: {
|
|
662
660
|
value: {
|
|
663
|
-
type: "dependency";
|
|
664
|
-
value: string;
|
|
665
|
-
} | {
|
|
666
661
|
type: "static";
|
|
667
662
|
value: string | number;
|
|
668
|
-
}
|
|
669
|
-
field: {
|
|
663
|
+
} | {
|
|
670
664
|
type: "dependency";
|
|
671
665
|
value: string;
|
|
672
|
-
}
|
|
666
|
+
};
|
|
667
|
+
field: {
|
|
673
668
|
type: "static";
|
|
674
669
|
value: string | number;
|
|
670
|
+
} | {
|
|
671
|
+
type: "dependency";
|
|
672
|
+
value: string;
|
|
675
673
|
};
|
|
676
674
|
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
677
675
|
}[];
|
|
@@ -796,18 +794,18 @@ export default class {
|
|
|
796
794
|
type: "and" | "or";
|
|
797
795
|
rules: {
|
|
798
796
|
value: {
|
|
799
|
-
type: "dependency";
|
|
800
|
-
value: string;
|
|
801
|
-
} | {
|
|
802
797
|
type: "static";
|
|
803
798
|
value: string | number;
|
|
804
|
-
}
|
|
805
|
-
field: {
|
|
799
|
+
} | {
|
|
806
800
|
type: "dependency";
|
|
807
801
|
value: string;
|
|
808
|
-
}
|
|
802
|
+
};
|
|
803
|
+
field: {
|
|
809
804
|
type: "static";
|
|
810
805
|
value: string | number;
|
|
806
|
+
} | {
|
|
807
|
+
type: "dependency";
|
|
808
|
+
value: string;
|
|
811
809
|
};
|
|
812
810
|
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
813
811
|
}[];
|
|
@@ -949,18 +947,18 @@ export default class {
|
|
|
949
947
|
type: "and" | "or";
|
|
950
948
|
rules: {
|
|
951
949
|
value: {
|
|
952
|
-
type: "dependency";
|
|
953
|
-
value: string;
|
|
954
|
-
} | {
|
|
955
950
|
type: "static";
|
|
956
951
|
value: string | number;
|
|
957
|
-
}
|
|
958
|
-
field: {
|
|
952
|
+
} | {
|
|
959
953
|
type: "dependency";
|
|
960
954
|
value: string;
|
|
961
|
-
}
|
|
955
|
+
};
|
|
956
|
+
field: {
|
|
962
957
|
type: "static";
|
|
963
958
|
value: string | number;
|
|
959
|
+
} | {
|
|
960
|
+
type: "dependency";
|
|
961
|
+
value: string;
|
|
964
962
|
};
|
|
965
963
|
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
966
964
|
}[];
|
package/build/api.js
CHANGED
|
@@ -15,18 +15,18 @@ class default_1 {
|
|
|
15
15
|
? configOrInstance
|
|
16
16
|
: axios_1.default.create(configOrInstance);
|
|
17
17
|
}
|
|
18
|
-
|
|
18
|
+
listFontResource(params, options) {
|
|
19
19
|
return this.axios.get("/contents/fonts", Object.assign({}, {
|
|
20
20
|
params: pick(params, "ids", "resourceGroupIds"),
|
|
21
21
|
}, options));
|
|
22
22
|
}
|
|
23
|
-
|
|
23
|
+
createFontResource(data, options) {
|
|
24
24
|
return this.axios.post("/contents/fonts", data, options);
|
|
25
25
|
}
|
|
26
|
-
|
|
26
|
+
getFontResource(params, options) {
|
|
27
27
|
return this.axios.get("/contents/fonts/{id}".replace(/{id}/, String(params["id"])), options);
|
|
28
28
|
}
|
|
29
|
-
|
|
29
|
+
updateFontResource(params, data, options) {
|
|
30
30
|
return this.axios.patch("/contents/fonts/{id}".replace(/{id}/, String(params["id"])), data, options);
|
|
31
31
|
}
|
|
32
32
|
listContent(params, options) {
|
|
@@ -56,16 +56,12 @@ class default_1 {
|
|
|
56
56
|
headers: pick(params, "x-rlvt-no-cache"),
|
|
57
57
|
}, options));
|
|
58
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
|
-
}
|
|
67
59
|
get Content() {
|
|
68
60
|
return {
|
|
61
|
+
listFontResource: this.listFontResource.bind(this),
|
|
62
|
+
createFontResource: this.createFontResource.bind(this),
|
|
63
|
+
getFontResource: this.getFontResource.bind(this),
|
|
64
|
+
updateFontResource: this.updateFontResource.bind(this),
|
|
69
65
|
list: this.listContent.bind(this),
|
|
70
66
|
create: this.createContent.bind(this),
|
|
71
67
|
get: this.getContent.bind(this),
|
|
@@ -85,4 +81,4 @@ function pick(obj, ...keys) {
|
|
|
85
81
|
});
|
|
86
82
|
return ret;
|
|
87
83
|
}
|
|
88
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
84
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBpLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxvQkFBb0I7QUFDcEIsb0JBQW9COzs7Ozs7QUFFcEIsa0RBQWlFO0FBR2pFLDZDQUFpVztBQUE3Tiw0R0FBQSxhQUFhLE9BQUE7QUFFako7SUFHSSxZQUFZLGdCQUFvRDtRQUM1RCxJQUFJLENBQUMsS0FBSyxHQUFHLGNBQWMsSUFBSSxnQkFBZ0I7WUFDM0MsQ0FBQyxDQUFDLGdCQUFnQjtZQUNsQixDQUFDLENBQUMsZUFBSyxDQUFDLE1BQU0sQ0FBQyxnQkFBZ0IsQ0FBQyxD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BRyxDQUFDLEdBQUcsR0FBRyxDQUFDLEdBQUcsQ0FBQyxDQUFDO0lBQzVCLENBQUMsQ0FBQyxDQUFDO0lBQ0gsT0FBTyxHQUFHLENBQUM7QUFDZixDQUFDIn0=
|
package/build/definitions.d.ts
CHANGED
|
@@ -17,39 +17,37 @@ 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
|
|
20
|
+
export declare type SerializedFontResource = {
|
|
21
|
+
type: "font";
|
|
22
|
+
family: string;
|
|
23
|
+
files: {
|
|
24
|
+
[key: string]: string;
|
|
25
|
+
};
|
|
21
26
|
readonly id: (string) & readonlyP;
|
|
22
27
|
readonly companyId: (string) & readonlyP;
|
|
23
28
|
resourceGroupIds: string[];
|
|
24
29
|
readonly createdAt: (Date) & readonlyP;
|
|
25
30
|
readonly updatedAt: (Date) & readonlyP;
|
|
26
31
|
};
|
|
27
|
-
export declare type
|
|
28
|
-
|
|
32
|
+
export declare type FontResource = SerializedFontResource;
|
|
33
|
+
export declare type Pick_SerializedFontResource_resourceGroupIds_or_family_or_files_ = {
|
|
34
|
+
resourceGroupIds: string[];
|
|
29
35
|
family: string;
|
|
30
36
|
files: {
|
|
31
37
|
[key: string]: string;
|
|
32
38
|
};
|
|
33
39
|
};
|
|
34
|
-
export declare type
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
files: {
|
|
40
|
+
export declare type Partial_SerializedFontResource_ = {
|
|
41
|
+
type?: "font";
|
|
42
|
+
family?: string;
|
|
43
|
+
files?: {
|
|
39
44
|
[key: string]: string;
|
|
40
45
|
};
|
|
41
|
-
};
|
|
42
|
-
export declare type Partial_SerializedContentFontResource_ = {
|
|
43
46
|
readonly id?: (string) & readonlyP;
|
|
44
47
|
readonly companyId?: (string) & readonlyP;
|
|
45
48
|
resourceGroupIds?: string[];
|
|
46
49
|
readonly createdAt?: (Date) & readonlyP;
|
|
47
50
|
readonly updatedAt?: (Date) & readonlyP;
|
|
48
|
-
type?: "font";
|
|
49
|
-
family?: string;
|
|
50
|
-
files?: {
|
|
51
|
-
[key: string]: string;
|
|
52
|
-
};
|
|
53
51
|
};
|
|
54
52
|
export declare enum ContentVersionState {
|
|
55
53
|
DRAFT = "draft",
|
|
@@ -86,12 +84,6 @@ export declare type _root_string_Array_elements___x_string___type_conditionGroup
|
|
|
86
84
|
root: string[];
|
|
87
85
|
elements: __x_string___type_conditionGroup___or__type_condition_children_string_Array___or__type_component___or__type_componentGroup_children_string_Array____;
|
|
88
86
|
};
|
|
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
87
|
export declare type _type_static_value_string__ = {
|
|
96
88
|
type: "static";
|
|
97
89
|
value: string;
|
|
@@ -100,45 +92,46 @@ export declare type _type_dependency_value_string__ = {
|
|
|
100
92
|
type: "dependency";
|
|
101
93
|
value: string;
|
|
102
94
|
};
|
|
103
|
-
export declare type
|
|
95
|
+
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__ = {
|
|
96
|
+
width: number;
|
|
97
|
+
height: number;
|
|
98
|
+
components: _id_string_x_number_y_number_width_number_height_number_rotation_number__[];
|
|
99
|
+
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
100
|
url?: (_type_static_value_string__ | _type_dependency_value_string__)[];
|
|
105
101
|
};
|
|
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__ = {
|
|
102
|
+
export declare type Condition = {
|
|
122
103
|
id: string;
|
|
123
104
|
type: "and" | "or";
|
|
124
|
-
rules:
|
|
105
|
+
rules: {
|
|
106
|
+
field: {
|
|
107
|
+
type: "static";
|
|
108
|
+
value: string | number;
|
|
109
|
+
} | {
|
|
110
|
+
type: "dependency";
|
|
111
|
+
value: string;
|
|
112
|
+
};
|
|
113
|
+
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
114
|
+
value: {
|
|
115
|
+
type: "static";
|
|
116
|
+
value: string | number;
|
|
117
|
+
} | {
|
|
118
|
+
type: "dependency";
|
|
119
|
+
value: string;
|
|
120
|
+
};
|
|
121
|
+
}[];
|
|
125
122
|
};
|
|
126
|
-
export declare type
|
|
123
|
+
export declare type ElseCondition = {
|
|
127
124
|
id: string;
|
|
128
125
|
isElse: true;
|
|
129
126
|
};
|
|
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_____;
|
|
127
|
+
export declare type ConditionGroup = {
|
|
128
|
+
name?: string;
|
|
129
|
+
conditions: (Condition | Condition | ElseCondition)[];
|
|
135
130
|
};
|
|
136
|
-
export declare type
|
|
131
|
+
export declare type ComponentGroup = {
|
|
132
|
+
name?: string;
|
|
137
133
|
rendered: boolean;
|
|
138
134
|
};
|
|
139
|
-
export declare type __x_string___name_string_or_undefined___and__rendered_boolean____ = {
|
|
140
|
-
[key: string]: _name_string_or_undefined__ & _rendered_boolean__;
|
|
141
|
-
};
|
|
142
135
|
export declare type BaseTemplate = {
|
|
143
136
|
components: {
|
|
144
137
|
[key: string]: {
|
|
@@ -158,9 +151,15 @@ export declare type BaseTemplate = {
|
|
|
158
151
|
};
|
|
159
152
|
};
|
|
160
153
|
};
|
|
161
|
-
pages:
|
|
162
|
-
|
|
163
|
-
|
|
154
|
+
pages: {
|
|
155
|
+
[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__;
|
|
156
|
+
};
|
|
157
|
+
conditionGroups: {
|
|
158
|
+
[key: string]: ConditionGroup;
|
|
159
|
+
};
|
|
160
|
+
componentGroups: {
|
|
161
|
+
[key: string]: ComponentGroup;
|
|
162
|
+
};
|
|
164
163
|
};
|
|
165
164
|
export declare type SerializedContentVersions = {
|
|
166
165
|
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmaW5pdGlvbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9kZWZpbml0aW9ucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsb0JBQW9CO0FBQ3BCLG9CQUFvQjs7O0FBZ0VwQixJQUFZLG1CQUlYO0FBSkQsV0FBWSxtQkFBbUI7SUFDM0Isc0NBQWUsQ0FBQTtJQUNmLG9DQUFhLENBQUE7SUFDYiw0Q0FBcUIsQ0FBQTtBQUN6QixDQUFDLEVBSlcsbUJBQW1CLEdBQW5CLDJCQUFtQixLQUFuQiwyQkFBbUIsUUFJOUI7QUF1SEQsSUFBWSxhQUtYO0FBTEQsV0FBWSxhQUFhO0lBQ3JCLGdDQUFlLENBQUE7SUFDZiwwQ0FBeUIsQ0FBQTtJQUN6Qix3Q0FBdUIsQ0FBQTtJQUN2QixnQ0FBZSxDQUFBO0FBQ25CLENBQUMsRUFMVyxhQUFhLEdBQWIscUJBQWEsS0FBYixxQkFBYSxRQUt4QiJ9
|
package/package.json
CHANGED