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