@rlvt/contents-openapi-client 0.0.0-45d05fe → 0.0.0-548e775
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 +66 -792
- package/build/api.js +4 -37
- package/build/definitions.d.ts +25 -121
- package/build/definitions.js +1 -1
- package/package.json +1 -1
package/build/api.d.ts
CHANGED
|
@@ -1,161 +1,21 @@
|
|
|
1
1
|
import { AxiosInstance, AxiosRequestConfig } from "axios";
|
|
2
|
-
import type { ContentStatus } from "./definitions";
|
|
3
|
-
export {
|
|
2
|
+
import type { Pick__LeanDocument_this__Exclude_keyofthis_24getAllSubdocs_or_24ignore_or_24isDefault_or_24isDeleted_or_24getPopulatedDocs_or_24isEmpty_or_24isValid_or_24locals_or_24markValid_or_24op_or_24session_or_24set_or_24where_or_baseModelName_or_collection_or_db_or_delete_or_deleteOne_or_depopulate_or_directModifiedPaths_or_equals_or_errors_or_execPopulate_or_get_or_getChanges_or_increment_or_init_or_invalidate_or_isDirectModified_or_isDirectSelected_or_isInit_or_isModified_or_isNew_or_isSelected_or_markModified_or_modifiedPaths_or_model_or_modelName_or_overwrite_or_24parent_or_populate_or_populated_or_remove_or_replaceOne_or_save_or_schema_or_set_or_toJSON_or_toObject_or_unmarkModified_or_update_or_updateOne_or_validate_or_validateSync_or_24isSingleNested__, Contents, IObjectWithTypegooseFunction, ContentStatus, Pick_SerializedContent_resourceGroupIds_or_name_or_description_, Partial_SerializedContent_, Partial_SerializedContentVersions_, WithoutReadonly, WithoutWriteonly } from "./definitions";
|
|
3
|
+
export type { Pick__LeanDocument_this__Exclude_keyofthis_24getAllSubdocs_or_24ignore_or_24isDefault_or_24isDeleted_or_24getPopulatedDocs_or_24isEmpty_or_24isValid_or_24locals_or_24markValid_or_24op_or_24session_or_24set_or_24where_or_baseModelName_or_collection_or_db_or_delete_or_deleteOne_or_depopulate_or_directModifiedPaths_or_equals_or_errors_or_execPopulate_or_get_or_getChanges_or_increment_or_init_or_invalidate_or_isDirectModified_or_isDirectSelected_or_isInit_or_isModified_or_isNew_or_isSelected_or_markModified_or_modifiedPaths_or_model_or_modelName_or_overwrite_or_24parent_or_populate_or_populated_or_remove_or_replaceOne_or_save_or_schema_or_set_or_toJSON_or_toObject_or_unmarkModified_or_update_or_updateOne_or_validate_or_validateSync_or_24isSingleNested__, Contents, IObjectWithTypegooseFunction, ContentStatus, Pick_SerializedContent_resourceGroupIds_or_name_or_description_, Partial_SerializedContent_, Partial_SerializedContentVersions_, WithoutReadonly, WithoutWriteonly };
|
|
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;
|
|
14
10
|
private updateContent;
|
|
15
11
|
private deleteContent;
|
|
16
12
|
private publishContent;
|
|
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
|
-
};
|
|
152
13
|
get Content(): {
|
|
153
14
|
list: (params: {
|
|
154
|
-
ids?: string[];
|
|
155
15
|
name?: string;
|
|
156
16
|
resourceGroupIds?: string[];
|
|
157
17
|
status?: ContentStatus[];
|
|
158
|
-
sortBy?: "
|
|
18
|
+
sortBy?: "updatedAt" | "createdAt";
|
|
159
19
|
sortOrder?: "desc" | "asc";
|
|
160
20
|
page?: number;
|
|
161
21
|
perPage?: number;
|
|
@@ -169,19 +29,20 @@ export default class {
|
|
|
169
29
|
datetime: string;
|
|
170
30
|
code?: number;
|
|
171
31
|
message: string;
|
|
172
|
-
data: {
|
|
32
|
+
data: ({
|
|
33
|
+
id?: any;
|
|
34
|
+
_id?: any;
|
|
35
|
+
__v?: any;
|
|
36
|
+
} & {
|
|
173
37
|
description?: string;
|
|
174
|
-
|
|
175
|
-
readonly id: string & {
|
|
38
|
+
readonly updatedAt: Date & {
|
|
176
39
|
readonly?: "__readonly";
|
|
177
40
|
};
|
|
178
41
|
readonly createdAt: Date & {
|
|
179
42
|
readonly?: "__readonly";
|
|
180
43
|
};
|
|
181
|
-
readonly updatedAt: Date & {
|
|
182
|
-
readonly?: "__readonly";
|
|
183
|
-
};
|
|
184
44
|
name: string;
|
|
45
|
+
resourceGroupIds: string[];
|
|
185
46
|
readonly status: (ContentStatus.DRAFT & {
|
|
186
47
|
readonly?: "__readonly";
|
|
187
48
|
}) | (ContentStatus.PUBLISHING & {
|
|
@@ -191,6 +52,9 @@ export default class {
|
|
|
191
52
|
}) | (ContentStatus.ERROR & {
|
|
192
53
|
readonly?: "__readonly";
|
|
193
54
|
});
|
|
55
|
+
readonly id: string & {
|
|
56
|
+
readonly?: "__readonly";
|
|
57
|
+
};
|
|
194
58
|
readonly companyId: string & {
|
|
195
59
|
readonly?: "__readonly";
|
|
196
60
|
};
|
|
@@ -202,109 +66,20 @@ export default class {
|
|
|
202
66
|
}) | (import("./definitions").ContentVersionState.INACTIVE & {
|
|
203
67
|
readonly?: "__readonly";
|
|
204
68
|
});
|
|
205
|
-
|
|
206
|
-
metadata?: {
|
|
207
|
-
[x: string]: any;
|
|
208
|
-
};
|
|
69
|
+
metadata?: {};
|
|
209
70
|
template: {
|
|
210
|
-
components: {
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
rendered: boolean;
|
|
215
|
-
options: {
|
|
216
|
-
[x: string]: any;
|
|
217
|
-
};
|
|
218
|
-
};
|
|
219
|
-
};
|
|
220
|
-
dependencies: {
|
|
221
|
-
[x: string]: {
|
|
222
|
-
type: string;
|
|
223
|
-
options: {
|
|
224
|
-
[x: string]: any;
|
|
225
|
-
};
|
|
226
|
-
};
|
|
227
|
-
};
|
|
228
|
-
pages: {
|
|
229
|
-
[x: string]: {
|
|
230
|
-
components: {
|
|
231
|
-
id: string;
|
|
232
|
-
width: number;
|
|
233
|
-
height: number;
|
|
234
|
-
x: number;
|
|
235
|
-
y: number;
|
|
236
|
-
rotation: number;
|
|
237
|
-
}[];
|
|
238
|
-
width: number;
|
|
239
|
-
height: number;
|
|
240
|
-
orderTree: {
|
|
241
|
-
root: string[];
|
|
242
|
-
elements: {
|
|
243
|
-
[x: string]: {
|
|
244
|
-
type: "conditionGroup";
|
|
245
|
-
} | {
|
|
246
|
-
type: "condition";
|
|
247
|
-
children: string[];
|
|
248
|
-
} | {
|
|
249
|
-
type: "component";
|
|
250
|
-
} | {
|
|
251
|
-
type: "componentGroup";
|
|
252
|
-
children: string[];
|
|
253
|
-
};
|
|
254
|
-
};
|
|
255
|
-
};
|
|
256
|
-
url?: ({
|
|
257
|
-
type: "static";
|
|
258
|
-
value: string;
|
|
259
|
-
} | {
|
|
260
|
-
type: "dependency";
|
|
261
|
-
value: string;
|
|
262
|
-
})[];
|
|
263
|
-
};
|
|
264
|
-
};
|
|
265
|
-
conditionGroups: {
|
|
266
|
-
[x: string]: {
|
|
267
|
-
name?: string;
|
|
268
|
-
conditions: ({
|
|
269
|
-
id: string;
|
|
270
|
-
type: "and" | "or";
|
|
271
|
-
rules: {
|
|
272
|
-
value: {
|
|
273
|
-
type: "static";
|
|
274
|
-
value: string | number;
|
|
275
|
-
} | {
|
|
276
|
-
type: "dependency";
|
|
277
|
-
value: string;
|
|
278
|
-
};
|
|
279
|
-
field: {
|
|
280
|
-
type: "static";
|
|
281
|
-
value: string | number;
|
|
282
|
-
} | {
|
|
283
|
-
type: "dependency";
|
|
284
|
-
value: string;
|
|
285
|
-
};
|
|
286
|
-
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
287
|
-
}[];
|
|
288
|
-
} | {
|
|
289
|
-
id: string;
|
|
290
|
-
isElse: true;
|
|
291
|
-
})[];
|
|
292
|
-
};
|
|
293
|
-
};
|
|
294
|
-
componentGroups: {
|
|
295
|
-
[x: string]: {
|
|
296
|
-
name?: string;
|
|
297
|
-
rendered: boolean;
|
|
298
|
-
};
|
|
299
|
-
};
|
|
71
|
+
components: {};
|
|
72
|
+
dependencies: {};
|
|
73
|
+
pages: {};
|
|
74
|
+
conditionGroups: {};
|
|
300
75
|
};
|
|
301
76
|
}[];
|
|
302
|
-
}[];
|
|
77
|
+
} & {})[];
|
|
303
78
|
}>>;
|
|
304
79
|
create: (data: {
|
|
305
80
|
description?: string;
|
|
306
|
-
resourceGroupIds: string[];
|
|
307
81
|
name: string;
|
|
82
|
+
resourceGroupIds: string[];
|
|
308
83
|
}, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
|
|
309
84
|
status: "success";
|
|
310
85
|
program: string;
|
|
@@ -314,17 +89,14 @@ export default class {
|
|
|
314
89
|
message: string;
|
|
315
90
|
data: {
|
|
316
91
|
description?: string;
|
|
317
|
-
|
|
318
|
-
readonly id: string & {
|
|
92
|
+
readonly updatedAt: Date & {
|
|
319
93
|
readonly?: "__readonly";
|
|
320
94
|
};
|
|
321
95
|
readonly createdAt: Date & {
|
|
322
96
|
readonly?: "__readonly";
|
|
323
97
|
};
|
|
324
|
-
readonly updatedAt: Date & {
|
|
325
|
-
readonly?: "__readonly";
|
|
326
|
-
};
|
|
327
98
|
name: string;
|
|
99
|
+
resourceGroupIds: string[];
|
|
328
100
|
readonly status: (ContentStatus.DRAFT & {
|
|
329
101
|
readonly?: "__readonly";
|
|
330
102
|
}) | (ContentStatus.PUBLISHING & {
|
|
@@ -334,6 +106,9 @@ export default class {
|
|
|
334
106
|
}) | (ContentStatus.ERROR & {
|
|
335
107
|
readonly?: "__readonly";
|
|
336
108
|
});
|
|
109
|
+
readonly id: string & {
|
|
110
|
+
readonly?: "__readonly";
|
|
111
|
+
};
|
|
337
112
|
readonly companyId: string & {
|
|
338
113
|
readonly?: "__readonly";
|
|
339
114
|
};
|
|
@@ -345,101 +120,12 @@ export default class {
|
|
|
345
120
|
}) | (import("./definitions").ContentVersionState.INACTIVE & {
|
|
346
121
|
readonly?: "__readonly";
|
|
347
122
|
});
|
|
348
|
-
|
|
349
|
-
metadata?: {
|
|
350
|
-
[x: string]: any;
|
|
351
|
-
};
|
|
123
|
+
metadata?: {};
|
|
352
124
|
template: {
|
|
353
|
-
components: {
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
rendered: boolean;
|
|
358
|
-
options: {
|
|
359
|
-
[x: string]: any;
|
|
360
|
-
};
|
|
361
|
-
};
|
|
362
|
-
};
|
|
363
|
-
dependencies: {
|
|
364
|
-
[x: string]: {
|
|
365
|
-
type: string;
|
|
366
|
-
options: {
|
|
367
|
-
[x: string]: any;
|
|
368
|
-
};
|
|
369
|
-
};
|
|
370
|
-
};
|
|
371
|
-
pages: {
|
|
372
|
-
[x: string]: {
|
|
373
|
-
components: {
|
|
374
|
-
id: string;
|
|
375
|
-
width: number;
|
|
376
|
-
height: number;
|
|
377
|
-
x: number;
|
|
378
|
-
y: number;
|
|
379
|
-
rotation: number;
|
|
380
|
-
}[];
|
|
381
|
-
width: number;
|
|
382
|
-
height: number;
|
|
383
|
-
orderTree: {
|
|
384
|
-
root: string[];
|
|
385
|
-
elements: {
|
|
386
|
-
[x: string]: {
|
|
387
|
-
type: "conditionGroup";
|
|
388
|
-
} | {
|
|
389
|
-
type: "condition";
|
|
390
|
-
children: string[];
|
|
391
|
-
} | {
|
|
392
|
-
type: "component";
|
|
393
|
-
} | {
|
|
394
|
-
type: "componentGroup";
|
|
395
|
-
children: string[];
|
|
396
|
-
};
|
|
397
|
-
};
|
|
398
|
-
};
|
|
399
|
-
url?: ({
|
|
400
|
-
type: "static";
|
|
401
|
-
value: string;
|
|
402
|
-
} | {
|
|
403
|
-
type: "dependency";
|
|
404
|
-
value: string;
|
|
405
|
-
})[];
|
|
406
|
-
};
|
|
407
|
-
};
|
|
408
|
-
conditionGroups: {
|
|
409
|
-
[x: string]: {
|
|
410
|
-
name?: string;
|
|
411
|
-
conditions: ({
|
|
412
|
-
id: string;
|
|
413
|
-
type: "and" | "or";
|
|
414
|
-
rules: {
|
|
415
|
-
value: {
|
|
416
|
-
type: "static";
|
|
417
|
-
value: string | number;
|
|
418
|
-
} | {
|
|
419
|
-
type: "dependency";
|
|
420
|
-
value: string;
|
|
421
|
-
};
|
|
422
|
-
field: {
|
|
423
|
-
type: "static";
|
|
424
|
-
value: string | number;
|
|
425
|
-
} | {
|
|
426
|
-
type: "dependency";
|
|
427
|
-
value: string;
|
|
428
|
-
};
|
|
429
|
-
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
430
|
-
}[];
|
|
431
|
-
} | {
|
|
432
|
-
id: string;
|
|
433
|
-
isElse: true;
|
|
434
|
-
})[];
|
|
435
|
-
};
|
|
436
|
-
};
|
|
437
|
-
componentGroups: {
|
|
438
|
-
[x: string]: {
|
|
439
|
-
name?: string;
|
|
440
|
-
rendered: boolean;
|
|
441
|
-
};
|
|
442
|
-
};
|
|
125
|
+
components: {};
|
|
126
|
+
dependencies: {};
|
|
127
|
+
pages: {};
|
|
128
|
+
conditionGroups: {};
|
|
443
129
|
};
|
|
444
130
|
}[];
|
|
445
131
|
};
|
|
@@ -455,17 +141,14 @@ export default class {
|
|
|
455
141
|
message: string;
|
|
456
142
|
data: {
|
|
457
143
|
description?: string;
|
|
458
|
-
|
|
459
|
-
readonly id: string & {
|
|
144
|
+
readonly updatedAt: Date & {
|
|
460
145
|
readonly?: "__readonly";
|
|
461
146
|
};
|
|
462
147
|
readonly createdAt: Date & {
|
|
463
148
|
readonly?: "__readonly";
|
|
464
149
|
};
|
|
465
|
-
readonly updatedAt: Date & {
|
|
466
|
-
readonly?: "__readonly";
|
|
467
|
-
};
|
|
468
150
|
name: string;
|
|
151
|
+
resourceGroupIds: string[];
|
|
469
152
|
readonly status: (ContentStatus.DRAFT & {
|
|
470
153
|
readonly?: "__readonly";
|
|
471
154
|
}) | (ContentStatus.PUBLISHING & {
|
|
@@ -475,6 +158,9 @@ export default class {
|
|
|
475
158
|
}) | (ContentStatus.ERROR & {
|
|
476
159
|
readonly?: "__readonly";
|
|
477
160
|
});
|
|
161
|
+
readonly id: string & {
|
|
162
|
+
readonly?: "__readonly";
|
|
163
|
+
};
|
|
478
164
|
readonly companyId: string & {
|
|
479
165
|
readonly?: "__readonly";
|
|
480
166
|
};
|
|
@@ -486,101 +172,12 @@ export default class {
|
|
|
486
172
|
}) | (import("./definitions").ContentVersionState.INACTIVE & {
|
|
487
173
|
readonly?: "__readonly";
|
|
488
174
|
});
|
|
489
|
-
|
|
490
|
-
metadata?: {
|
|
491
|
-
[x: string]: any;
|
|
492
|
-
};
|
|
175
|
+
metadata?: {};
|
|
493
176
|
template: {
|
|
494
|
-
components: {
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
rendered: boolean;
|
|
499
|
-
options: {
|
|
500
|
-
[x: string]: any;
|
|
501
|
-
};
|
|
502
|
-
};
|
|
503
|
-
};
|
|
504
|
-
dependencies: {
|
|
505
|
-
[x: string]: {
|
|
506
|
-
type: string;
|
|
507
|
-
options: {
|
|
508
|
-
[x: string]: any;
|
|
509
|
-
};
|
|
510
|
-
};
|
|
511
|
-
};
|
|
512
|
-
pages: {
|
|
513
|
-
[x: string]: {
|
|
514
|
-
components: {
|
|
515
|
-
id: string;
|
|
516
|
-
width: number;
|
|
517
|
-
height: number;
|
|
518
|
-
x: number;
|
|
519
|
-
y: number;
|
|
520
|
-
rotation: number;
|
|
521
|
-
}[];
|
|
522
|
-
width: number;
|
|
523
|
-
height: number;
|
|
524
|
-
orderTree: {
|
|
525
|
-
root: string[];
|
|
526
|
-
elements: {
|
|
527
|
-
[x: string]: {
|
|
528
|
-
type: "conditionGroup";
|
|
529
|
-
} | {
|
|
530
|
-
type: "condition";
|
|
531
|
-
children: string[];
|
|
532
|
-
} | {
|
|
533
|
-
type: "component";
|
|
534
|
-
} | {
|
|
535
|
-
type: "componentGroup";
|
|
536
|
-
children: string[];
|
|
537
|
-
};
|
|
538
|
-
};
|
|
539
|
-
};
|
|
540
|
-
url?: ({
|
|
541
|
-
type: "static";
|
|
542
|
-
value: string;
|
|
543
|
-
} | {
|
|
544
|
-
type: "dependency";
|
|
545
|
-
value: string;
|
|
546
|
-
})[];
|
|
547
|
-
};
|
|
548
|
-
};
|
|
549
|
-
conditionGroups: {
|
|
550
|
-
[x: string]: {
|
|
551
|
-
name?: string;
|
|
552
|
-
conditions: ({
|
|
553
|
-
id: string;
|
|
554
|
-
type: "and" | "or";
|
|
555
|
-
rules: {
|
|
556
|
-
value: {
|
|
557
|
-
type: "static";
|
|
558
|
-
value: string | number;
|
|
559
|
-
} | {
|
|
560
|
-
type: "dependency";
|
|
561
|
-
value: string;
|
|
562
|
-
};
|
|
563
|
-
field: {
|
|
564
|
-
type: "static";
|
|
565
|
-
value: string | number;
|
|
566
|
-
} | {
|
|
567
|
-
type: "dependency";
|
|
568
|
-
value: string;
|
|
569
|
-
};
|
|
570
|
-
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
571
|
-
}[];
|
|
572
|
-
} | {
|
|
573
|
-
id: string;
|
|
574
|
-
isElse: true;
|
|
575
|
-
})[];
|
|
576
|
-
};
|
|
577
|
-
};
|
|
578
|
-
componentGroups: {
|
|
579
|
-
[x: string]: {
|
|
580
|
-
name?: string;
|
|
581
|
-
rendered: boolean;
|
|
582
|
-
};
|
|
583
|
-
};
|
|
177
|
+
components: {};
|
|
178
|
+
dependencies: {};
|
|
179
|
+
pages: {};
|
|
180
|
+
conditionGroups: {};
|
|
584
181
|
};
|
|
585
182
|
}[];
|
|
586
183
|
};
|
|
@@ -589,104 +186,15 @@ export default class {
|
|
|
589
186
|
id: string;
|
|
590
187
|
}, data: {
|
|
591
188
|
description?: string;
|
|
592
|
-
resourceGroupIds?: string[];
|
|
593
189
|
name?: string;
|
|
190
|
+
resourceGroupIds?: string[];
|
|
594
191
|
} & {
|
|
595
|
-
|
|
596
|
-
metadata?: {
|
|
597
|
-
[x: string]: any;
|
|
598
|
-
};
|
|
192
|
+
metadata?: {};
|
|
599
193
|
template?: {
|
|
600
|
-
components: {
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
rendered: boolean;
|
|
605
|
-
options: {
|
|
606
|
-
[x: string]: any;
|
|
607
|
-
};
|
|
608
|
-
};
|
|
609
|
-
};
|
|
610
|
-
dependencies: {
|
|
611
|
-
[x: string]: {
|
|
612
|
-
type: string;
|
|
613
|
-
options: {
|
|
614
|
-
[x: string]: any;
|
|
615
|
-
};
|
|
616
|
-
};
|
|
617
|
-
};
|
|
618
|
-
pages: {
|
|
619
|
-
[x: string]: {
|
|
620
|
-
components: {
|
|
621
|
-
id: string;
|
|
622
|
-
width: number;
|
|
623
|
-
height: number;
|
|
624
|
-
x: number;
|
|
625
|
-
y: number;
|
|
626
|
-
rotation: number;
|
|
627
|
-
}[];
|
|
628
|
-
width: number;
|
|
629
|
-
height: number;
|
|
630
|
-
orderTree: {
|
|
631
|
-
root: string[];
|
|
632
|
-
elements: {
|
|
633
|
-
[x: string]: {
|
|
634
|
-
type: "conditionGroup";
|
|
635
|
-
} | {
|
|
636
|
-
type: "condition";
|
|
637
|
-
children: string[];
|
|
638
|
-
} | {
|
|
639
|
-
type: "component";
|
|
640
|
-
} | {
|
|
641
|
-
type: "componentGroup";
|
|
642
|
-
children: string[];
|
|
643
|
-
};
|
|
644
|
-
};
|
|
645
|
-
};
|
|
646
|
-
url?: ({
|
|
647
|
-
type: "static";
|
|
648
|
-
value: string;
|
|
649
|
-
} | {
|
|
650
|
-
type: "dependency";
|
|
651
|
-
value: string;
|
|
652
|
-
})[];
|
|
653
|
-
};
|
|
654
|
-
};
|
|
655
|
-
conditionGroups: {
|
|
656
|
-
[x: string]: {
|
|
657
|
-
name?: string;
|
|
658
|
-
conditions: ({
|
|
659
|
-
id: string;
|
|
660
|
-
type: "and" | "or";
|
|
661
|
-
rules: {
|
|
662
|
-
value: {
|
|
663
|
-
type: "static";
|
|
664
|
-
value: string | number;
|
|
665
|
-
} | {
|
|
666
|
-
type: "dependency";
|
|
667
|
-
value: string;
|
|
668
|
-
};
|
|
669
|
-
field: {
|
|
670
|
-
type: "static";
|
|
671
|
-
value: string | number;
|
|
672
|
-
} | {
|
|
673
|
-
type: "dependency";
|
|
674
|
-
value: string;
|
|
675
|
-
};
|
|
676
|
-
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
677
|
-
}[];
|
|
678
|
-
} | {
|
|
679
|
-
id: string;
|
|
680
|
-
isElse: true;
|
|
681
|
-
})[];
|
|
682
|
-
};
|
|
683
|
-
};
|
|
684
|
-
componentGroups: {
|
|
685
|
-
[x: string]: {
|
|
686
|
-
name?: string;
|
|
687
|
-
rendered: boolean;
|
|
688
|
-
};
|
|
689
|
-
};
|
|
194
|
+
components: {};
|
|
195
|
+
dependencies: {};
|
|
196
|
+
pages: {};
|
|
197
|
+
conditionGroups: {};
|
|
690
198
|
};
|
|
691
199
|
}, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
|
|
692
200
|
status: "success";
|
|
@@ -697,17 +205,14 @@ export default class {
|
|
|
697
205
|
message: string;
|
|
698
206
|
data: {
|
|
699
207
|
description?: string;
|
|
700
|
-
|
|
701
|
-
readonly id: string & {
|
|
208
|
+
readonly updatedAt: Date & {
|
|
702
209
|
readonly?: "__readonly";
|
|
703
210
|
};
|
|
704
211
|
readonly createdAt: Date & {
|
|
705
212
|
readonly?: "__readonly";
|
|
706
213
|
};
|
|
707
|
-
readonly updatedAt: Date & {
|
|
708
|
-
readonly?: "__readonly";
|
|
709
|
-
};
|
|
710
214
|
name: string;
|
|
215
|
+
resourceGroupIds: string[];
|
|
711
216
|
readonly status: (ContentStatus.DRAFT & {
|
|
712
217
|
readonly?: "__readonly";
|
|
713
218
|
}) | (ContentStatus.PUBLISHING & {
|
|
@@ -717,6 +222,9 @@ export default class {
|
|
|
717
222
|
}) | (ContentStatus.ERROR & {
|
|
718
223
|
readonly?: "__readonly";
|
|
719
224
|
});
|
|
225
|
+
readonly id: string & {
|
|
226
|
+
readonly?: "__readonly";
|
|
227
|
+
};
|
|
720
228
|
readonly companyId: string & {
|
|
721
229
|
readonly?: "__readonly";
|
|
722
230
|
};
|
|
@@ -728,108 +236,18 @@ export default class {
|
|
|
728
236
|
}) | (import("./definitions").ContentVersionState.INACTIVE & {
|
|
729
237
|
readonly?: "__readonly";
|
|
730
238
|
});
|
|
731
|
-
|
|
732
|
-
metadata?: {
|
|
733
|
-
[x: string]: any;
|
|
734
|
-
};
|
|
239
|
+
metadata?: {};
|
|
735
240
|
template: {
|
|
736
|
-
components: {
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
rendered: boolean;
|
|
741
|
-
options: {
|
|
742
|
-
[x: string]: any;
|
|
743
|
-
};
|
|
744
|
-
};
|
|
745
|
-
};
|
|
746
|
-
dependencies: {
|
|
747
|
-
[x: string]: {
|
|
748
|
-
type: string;
|
|
749
|
-
options: {
|
|
750
|
-
[x: string]: any;
|
|
751
|
-
};
|
|
752
|
-
};
|
|
753
|
-
};
|
|
754
|
-
pages: {
|
|
755
|
-
[x: string]: {
|
|
756
|
-
components: {
|
|
757
|
-
id: string;
|
|
758
|
-
width: number;
|
|
759
|
-
height: number;
|
|
760
|
-
x: number;
|
|
761
|
-
y: number;
|
|
762
|
-
rotation: number;
|
|
763
|
-
}[];
|
|
764
|
-
width: number;
|
|
765
|
-
height: number;
|
|
766
|
-
orderTree: {
|
|
767
|
-
root: string[];
|
|
768
|
-
elements: {
|
|
769
|
-
[x: string]: {
|
|
770
|
-
type: "conditionGroup";
|
|
771
|
-
} | {
|
|
772
|
-
type: "condition";
|
|
773
|
-
children: string[];
|
|
774
|
-
} | {
|
|
775
|
-
type: "component";
|
|
776
|
-
} | {
|
|
777
|
-
type: "componentGroup";
|
|
778
|
-
children: string[];
|
|
779
|
-
};
|
|
780
|
-
};
|
|
781
|
-
};
|
|
782
|
-
url?: ({
|
|
783
|
-
type: "static";
|
|
784
|
-
value: string;
|
|
785
|
-
} | {
|
|
786
|
-
type: "dependency";
|
|
787
|
-
value: string;
|
|
788
|
-
})[];
|
|
789
|
-
};
|
|
790
|
-
};
|
|
791
|
-
conditionGroups: {
|
|
792
|
-
[x: string]: {
|
|
793
|
-
name?: string;
|
|
794
|
-
conditions: ({
|
|
795
|
-
id: string;
|
|
796
|
-
type: "and" | "or";
|
|
797
|
-
rules: {
|
|
798
|
-
value: {
|
|
799
|
-
type: "static";
|
|
800
|
-
value: string | number;
|
|
801
|
-
} | {
|
|
802
|
-
type: "dependency";
|
|
803
|
-
value: string;
|
|
804
|
-
};
|
|
805
|
-
field: {
|
|
806
|
-
type: "static";
|
|
807
|
-
value: string | number;
|
|
808
|
-
} | {
|
|
809
|
-
type: "dependency";
|
|
810
|
-
value: string;
|
|
811
|
-
};
|
|
812
|
-
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
813
|
-
}[];
|
|
814
|
-
} | {
|
|
815
|
-
id: string;
|
|
816
|
-
isElse: true;
|
|
817
|
-
})[];
|
|
818
|
-
};
|
|
819
|
-
};
|
|
820
|
-
componentGroups: {
|
|
821
|
-
[x: string]: {
|
|
822
|
-
name?: string;
|
|
823
|
-
rendered: boolean;
|
|
824
|
-
};
|
|
825
|
-
};
|
|
241
|
+
components: {};
|
|
242
|
+
dependencies: {};
|
|
243
|
+
pages: {};
|
|
244
|
+
conditionGroups: {};
|
|
826
245
|
};
|
|
827
246
|
}[];
|
|
828
247
|
};
|
|
829
248
|
}>>;
|
|
830
249
|
delete: (params: {
|
|
831
250
|
id: string;
|
|
832
|
-
'dry-run'?: boolean;
|
|
833
251
|
}, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
|
|
834
252
|
status: "success";
|
|
835
253
|
program: string;
|
|
@@ -850,17 +268,14 @@ export default class {
|
|
|
850
268
|
message: string;
|
|
851
269
|
data: {
|
|
852
270
|
description?: string;
|
|
853
|
-
|
|
854
|
-
readonly id: string & {
|
|
271
|
+
readonly updatedAt: Date & {
|
|
855
272
|
readonly?: "__readonly";
|
|
856
273
|
};
|
|
857
274
|
readonly createdAt: Date & {
|
|
858
275
|
readonly?: "__readonly";
|
|
859
276
|
};
|
|
860
|
-
readonly updatedAt: Date & {
|
|
861
|
-
readonly?: "__readonly";
|
|
862
|
-
};
|
|
863
277
|
name: string;
|
|
278
|
+
resourceGroupIds: string[];
|
|
864
279
|
readonly status: (ContentStatus.DRAFT & {
|
|
865
280
|
readonly?: "__readonly";
|
|
866
281
|
}) | (ContentStatus.PUBLISHING & {
|
|
@@ -870,6 +285,9 @@ export default class {
|
|
|
870
285
|
}) | (ContentStatus.ERROR & {
|
|
871
286
|
readonly?: "__readonly";
|
|
872
287
|
});
|
|
288
|
+
readonly id: string & {
|
|
289
|
+
readonly?: "__readonly";
|
|
290
|
+
};
|
|
873
291
|
readonly companyId: string & {
|
|
874
292
|
readonly?: "__readonly";
|
|
875
293
|
};
|
|
@@ -881,159 +299,15 @@ export default class {
|
|
|
881
299
|
}) | (import("./definitions").ContentVersionState.INACTIVE & {
|
|
882
300
|
readonly?: "__readonly";
|
|
883
301
|
});
|
|
884
|
-
|
|
885
|
-
metadata?: {
|
|
886
|
-
[x: string]: any;
|
|
887
|
-
};
|
|
302
|
+
metadata?: {};
|
|
888
303
|
template: {
|
|
889
|
-
components: {
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
rendered: boolean;
|
|
894
|
-
options: {
|
|
895
|
-
[x: string]: any;
|
|
896
|
-
};
|
|
897
|
-
};
|
|
898
|
-
};
|
|
899
|
-
dependencies: {
|
|
900
|
-
[x: string]: {
|
|
901
|
-
type: string;
|
|
902
|
-
options: {
|
|
903
|
-
[x: string]: any;
|
|
904
|
-
};
|
|
905
|
-
};
|
|
906
|
-
};
|
|
907
|
-
pages: {
|
|
908
|
-
[x: string]: {
|
|
909
|
-
components: {
|
|
910
|
-
id: string;
|
|
911
|
-
width: number;
|
|
912
|
-
height: number;
|
|
913
|
-
x: number;
|
|
914
|
-
y: number;
|
|
915
|
-
rotation: number;
|
|
916
|
-
}[];
|
|
917
|
-
width: number;
|
|
918
|
-
height: number;
|
|
919
|
-
orderTree: {
|
|
920
|
-
root: string[];
|
|
921
|
-
elements: {
|
|
922
|
-
[x: string]: {
|
|
923
|
-
type: "conditionGroup";
|
|
924
|
-
} | {
|
|
925
|
-
type: "condition";
|
|
926
|
-
children: string[];
|
|
927
|
-
} | {
|
|
928
|
-
type: "component";
|
|
929
|
-
} | {
|
|
930
|
-
type: "componentGroup";
|
|
931
|
-
children: string[];
|
|
932
|
-
};
|
|
933
|
-
};
|
|
934
|
-
};
|
|
935
|
-
url?: ({
|
|
936
|
-
type: "static";
|
|
937
|
-
value: string;
|
|
938
|
-
} | {
|
|
939
|
-
type: "dependency";
|
|
940
|
-
value: string;
|
|
941
|
-
})[];
|
|
942
|
-
};
|
|
943
|
-
};
|
|
944
|
-
conditionGroups: {
|
|
945
|
-
[x: string]: {
|
|
946
|
-
name?: string;
|
|
947
|
-
conditions: ({
|
|
948
|
-
id: string;
|
|
949
|
-
type: "and" | "or";
|
|
950
|
-
rules: {
|
|
951
|
-
value: {
|
|
952
|
-
type: "static";
|
|
953
|
-
value: string | number;
|
|
954
|
-
} | {
|
|
955
|
-
type: "dependency";
|
|
956
|
-
value: string;
|
|
957
|
-
};
|
|
958
|
-
field: {
|
|
959
|
-
type: "static";
|
|
960
|
-
value: string | number;
|
|
961
|
-
} | {
|
|
962
|
-
type: "dependency";
|
|
963
|
-
value: string;
|
|
964
|
-
};
|
|
965
|
-
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
966
|
-
}[];
|
|
967
|
-
} | {
|
|
968
|
-
id: string;
|
|
969
|
-
isElse: true;
|
|
970
|
-
})[];
|
|
971
|
-
};
|
|
972
|
-
};
|
|
973
|
-
componentGroups: {
|
|
974
|
-
[x: string]: {
|
|
975
|
-
name?: string;
|
|
976
|
-
rendered: boolean;
|
|
977
|
-
};
|
|
978
|
-
};
|
|
304
|
+
components: {};
|
|
305
|
+
dependencies: {};
|
|
306
|
+
pages: {};
|
|
307
|
+
conditionGroups: {};
|
|
979
308
|
};
|
|
980
309
|
}[];
|
|
981
310
|
};
|
|
982
311
|
}>>;
|
|
983
|
-
render: (params: {
|
|
984
|
-
id: string;
|
|
985
|
-
'x-rlvt-no-cache'?: boolean;
|
|
986
|
-
}, data: {
|
|
987
|
-
dependenciesData: {
|
|
988
|
-
[key: string]: any;
|
|
989
|
-
};
|
|
990
|
-
}, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
|
|
991
|
-
readable: boolean;
|
|
992
|
-
readonly readableEncoding: ("ascii" & {
|
|
993
|
-
readonly?: "__readonly";
|
|
994
|
-
}) | ("utf8" & {
|
|
995
|
-
readonly?: "__readonly";
|
|
996
|
-
}) | ("utf-8" & {
|
|
997
|
-
readonly?: "__readonly";
|
|
998
|
-
}) | ("utf16le" & {
|
|
999
|
-
readonly?: "__readonly";
|
|
1000
|
-
}) | ("ucs2" & {
|
|
1001
|
-
readonly?: "__readonly";
|
|
1002
|
-
}) | ("ucs-2" & {
|
|
1003
|
-
readonly?: "__readonly";
|
|
1004
|
-
}) | ("base64" & {
|
|
1005
|
-
readonly?: "__readonly";
|
|
1006
|
-
}) | ("base64url" & {
|
|
1007
|
-
readonly?: "__readonly";
|
|
1008
|
-
}) | ("latin1" & {
|
|
1009
|
-
readonly?: "__readonly";
|
|
1010
|
-
}) | ("binary" & {
|
|
1011
|
-
readonly?: "__readonly";
|
|
1012
|
-
}) | ("hex" & {
|
|
1013
|
-
readonly?: "__readonly";
|
|
1014
|
-
});
|
|
1015
|
-
readonly readableEnded: (false & {
|
|
1016
|
-
readonly?: "__readonly";
|
|
1017
|
-
}) | (true & {
|
|
1018
|
-
readonly?: "__readonly";
|
|
1019
|
-
});
|
|
1020
|
-
readonly readableFlowing: (false & {
|
|
1021
|
-
readonly?: "__readonly";
|
|
1022
|
-
}) | (true & {
|
|
1023
|
-
readonly?: "__readonly";
|
|
1024
|
-
});
|
|
1025
|
-
readonly readableHighWaterMark: number & {
|
|
1026
|
-
readonly?: "__readonly";
|
|
1027
|
-
};
|
|
1028
|
-
readonly readableLength: number & {
|
|
1029
|
-
readonly?: "__readonly";
|
|
1030
|
-
};
|
|
1031
|
-
readonly readableObjectMode: (false & {
|
|
1032
|
-
readonly?: "__readonly";
|
|
1033
|
-
}) | (true & {
|
|
1034
|
-
readonly?: "__readonly";
|
|
1035
|
-
});
|
|
1036
|
-
destroyed: boolean;
|
|
1037
|
-
}>>;
|
|
1038
312
|
};
|
|
1039
313
|
}
|
package/build/api.js
CHANGED
|
@@ -5,33 +5,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
6
6
|
};
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.ContentStatus = void 0;
|
|
9
8
|
const axios_1 = __importDefault(require("axios"));
|
|
10
|
-
var definitions_1 = require("./definitions");
|
|
11
|
-
Object.defineProperty(exports, "ContentStatus", { enumerable: true, get: function () { return definitions_1.ContentStatus; } });
|
|
12
9
|
class default_1 {
|
|
13
10
|
constructor(configOrInstance) {
|
|
14
11
|
this.axios = 'interceptors' in configOrInstance
|
|
15
12
|
? configOrInstance
|
|
16
13
|
: axios_1.default.create(configOrInstance);
|
|
17
14
|
}
|
|
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
15
|
listContent(params, options) {
|
|
33
16
|
return this.axios.get("/contents", Object.assign({}, {
|
|
34
|
-
params: pick(params, "
|
|
17
|
+
params: pick(params, "name", "resourceGroupIds", "status", "sortBy", "sortOrder", "page", "perPage"),
|
|
35
18
|
}, options));
|
|
36
19
|
}
|
|
37
20
|
createContent(data, options) {
|
|
@@ -44,26 +27,11 @@ class default_1 {
|
|
|
44
27
|
return this.axios.patch("/contents/{id}".replace(/{id}/, String(params["id"])), data, options);
|
|
45
28
|
}
|
|
46
29
|
deleteContent(params, options) {
|
|
47
|
-
return this.axios.delete("/contents/{id}".replace(/{id}/, String(params["id"])),
|
|
48
|
-
params: pick(params, "dry-run"),
|
|
49
|
-
}, options));
|
|
30
|
+
return this.axios.delete("/contents/{id}".replace(/{id}/, String(params["id"])), options);
|
|
50
31
|
}
|
|
51
32
|
publishContent(params, options) {
|
|
52
33
|
return this.axios.post("/contents/{id}/publish".replace(/{id}/, String(params["id"])), {}, options);
|
|
53
34
|
}
|
|
54
|
-
renderContent(params, data, options) {
|
|
55
|
-
return this.axios.post("/contents/render/{id}".replace(/{id}/, String(params["id"])), data, Object.assign({}, {
|
|
56
|
-
headers: pick(params, "x-rlvt-no-cache"),
|
|
57
|
-
}, options));
|
|
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
35
|
get Content() {
|
|
68
36
|
return {
|
|
69
37
|
list: this.listContent.bind(this),
|
|
@@ -71,8 +39,7 @@ class default_1 {
|
|
|
71
39
|
get: this.getContent.bind(this),
|
|
72
40
|
update: this.updateContent.bind(this),
|
|
73
41
|
delete: this.deleteContent.bind(this),
|
|
74
|
-
publish: this.publishContent.bind(this)
|
|
75
|
-
render: this.renderContent.bind(this)
|
|
42
|
+
publish: this.publishContent.bind(this)
|
|
76
43
|
};
|
|
77
44
|
}
|
|
78
45
|
}
|
|
@@ -85,4 +52,4 @@ function pick(obj, ...keys) {
|
|
|
85
52
|
});
|
|
86
53
|
return ret;
|
|
87
54
|
}
|
|
88
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
55
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBpLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxvQkFBb0I7QUFDcEIsb0JBQW9COzs7OztBQUVwQixrREFBaUU7QUFlakU7SUFHSSxZQUFZLGdCQUFvRDtRQUM1RCxJQUFJLENBQUMsS0FBSyxHQUFHLGNBQWMsSUFBSSxnQkFBZ0I7WUFDM0MsQ0FBQyxDQUFDLGdCQUFnQjtZQUNsQixDQUFDLENBQUMsZUFBSyxDQUFDLE1BQU0sQ0FBQyxnQkFBZ0IsQ0FBQyxDQUFBO0lBQ3hDLENBQUM7SUFFTyxXQUFXLENBQUMsTUFRbkIsRUFBRSxPQUE0QjtRQUMzQixPQUFPLElBQUksQ0FBQyxLQUFLLENBQUMsR0FBRyxDQVlqQixXQUFXLEVBQ1gsTUFBTSxDQUFDLE1BQU0sQ0FDVCxFQUFFLEVBQ0Y7WUFDSSxNQUFNLEVBQUUsSUFBSSxDQUFDLE1BQU0sRUFBRSxNQUFNLEVBQUUsa0JBQWtCLEVBQUUsUUFBUSxFQUFFLFFBQVEsRUFBRSxXQUFXLEVBQUUsTUFBTSxFQUFFLFNBQVMsQ0FBQztTQUN2RyxFQUNELE9BQU8sQ0FDVixDQUNKLENBQUM7SUFDTixDQUFDO0lBRU8sYUFBYSxDQUFDLElBQXNGLEVBQUUsT0FBNEI7UUFDdEksT0FBTyxJQUFJLENBQUMsS0FBSyxDQUFDLElBQUksQ0FTbEIsV0FBVyxFQUFFLElBQUksRUFBRSxPQUFPLENBQzdCLENBQUM7SUFDTixDQUFDO0lBRU8sVUFBVSxDQUFDLE1BRWxCLEVBQUUsT0FBNEI7UUFDM0IsT0FBTyxJQUFJLENBQUMsS0FBSyxDQUFDLEdBQUcsQ0FTakIsZ0JBQWdCLENBQUMsT0FBTyxDQUFDLE1BQU0sRUFBRSxNQUFNLENBQUMsTUFBTSxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsRUFBRSxPQUFPLENBQ2xFLENBQUM7SUFDTixDQUFDO0lBRU8sYUFBYSxDQUFDLE1BRXJCLEVBQUUsSUFBdUcsRUFBRSxPQUE0QjtRQUNwSSxPQUFPLElBQUksQ0FBQyxLQUFLLENBQUMsS0FBSyxDQVNuQixnQkFBZ0IsQ0FBQyxPQUFPLENBQUMsTUFBTSxFQUFFLE1BQU0sQ0FBQyxNQUFNLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxFQUFFLElBQUksRUFBRSxPQUFPLENBQ3hFLENBQUM7SUFDTixDQUFDO0lBRU8sYUFBYSxDQUFDLE1BRXJCLEVBQUUsT0FBNEI7UUFDM0IsT0FBTyxJQUFJLENBQUMsS0FBSyxDQUFDLE1BQU0sQ0FTcEIsZ0JBQWdCLENBQUMsT0FBTyxDQUFDLE1BQU0sRUFBRSxNQUFNLENBQUMsTUFBTSxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsRUFBRSxPQUFPLENBQ2xFLENBQUM7SUFDTixDQUFDO0lBRU8sY0FBYyxDQUFDLE1BRXRCLEVBQUUsT0FBNEI7UUFDM0IsT0FBTyxJQUFJLENBQUMsS0FBSyxDQUFDLElBQUksQ0FTbEIsd0JBQXdCLENBQUMsT0FBTyxDQUFDLE1BQU0sRUFBRSxNQUFNLENBQUMsTUFBTSxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsRUFBRSxFQUFFLEVBQUUsT0FBTyxDQUM5RSxDQUFDO0lBQ04sQ0FBQztJQUVELElBQUksT0FBTztRQUNQLE9BQU87WUFDSCxJQUFJLEVBQUUsSUFBSSxDQUFDLFdBQVcsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDO1lBQ2pDLE1BQU0sRUFBRSxJQUFJLENBQUMsYUFBYSxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUM7WUFDckMsR0FBRyxFQUFFLElBQUksQ0FBQyxVQUFVLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQztZQUMvQixNQUFNLEVBQUUsSUFBSSxDQUFDLGFBQWEsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDO1lBQ3JDLE1BQU0sRUFBRSxJQUFJLENBQUMsYUFBYSxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUM7WUFDckMsT0FBTyxFQUFFLElBQUksQ0FBQyxjQUFjLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQztTQUMxQyxDQUFDO0lBQ04sQ0FBQztDQUNKO0FBaklELDRCQWlJQztBQUVELFNBQVMsSUFBSSxDQUF1QixHQUFNLEVBQUUsR0FBRyxJQUFTO0lBQ3BELE1BQU0sR0FBRyxHQUFlLEVBQWdCLENBQUM7SUFDekMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxHQUFHLENBQUMsRUFBRTtRQUNmLElBQUksR0FBRyxJQUFJLE1BQU0sQ0FBQyxJQUFJLENBQUMsR0FBRyxDQUFDLENBQUMsUUFBUSxDQUFDLEdBQWEsQ0FBQztZQUMvQyxHQUFHLENBQUMsR0FBRyxDQUFDLEdBQUcsR0FBRyxDQUFDLEdBQUcsQ0FBQyxDQUFDO0lBQzVCLENBQUMsQ0FBQyxDQUFDO0lBQ0gsT0FBTyxHQUFHLENBQUM7QUFDZixDQUFDIn0=
|
package/build/definitions.d.ts
CHANGED
|
@@ -17,39 +17,10 @@ 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
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
-
};
|
|
20
|
+
export declare type Pick__LeanDocument_this__Exclude_keyofthis_24getAllSubdocs_or_24ignore_or_24isDefault_or_24isDeleted_or_24getPopulatedDocs_or_24isEmpty_or_24isValid_or_24locals_or_24markValid_or_24op_or_24session_or_24set_or_24where_or_baseModelName_or_collection_or_db_or_delete_or_deleteOne_or_depopulate_or_directModifiedPaths_or_equals_or_errors_or_execPopulate_or_get_or_getChanges_or_increment_or_init_or_invalidate_or_isDirectModified_or_isDirectSelected_or_isInit_or_isModified_or_isNew_or_isSelected_or_markModified_or_modifiedPaths_or_model_or_modelName_or_overwrite_or_24parent_or_populate_or_populated_or_remove_or_replaceOne_or_save_or_schema_or_set_or_toJSON_or_toObject_or_unmarkModified_or_update_or_updateOne_or_validate_or_validateSync_or_24isSingleNested__ = {
|
|
21
|
+
_id?: any;
|
|
22
|
+
__v?: any;
|
|
23
|
+
id?: any;
|
|
53
24
|
};
|
|
54
25
|
export declare enum ContentVersionState {
|
|
55
26
|
DRAFT = "draft",
|
|
@@ -57,49 +28,19 @@ export declare enum ContentVersionState {
|
|
|
57
28
|
INACTIVE = "inactive"
|
|
58
29
|
}
|
|
59
30
|
export declare type AnyValue = any | null;
|
|
60
|
-
export declare type
|
|
31
|
+
export declare type PageComponent = {
|
|
61
32
|
id: string;
|
|
62
33
|
x: number;
|
|
63
34
|
y: number;
|
|
35
|
+
z: number;
|
|
64
36
|
width: number;
|
|
65
37
|
height: number;
|
|
66
38
|
rotation: number;
|
|
67
39
|
};
|
|
68
|
-
export declare type
|
|
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______ = {
|
|
86
|
-
root: string[];
|
|
87
|
-
elements: __x_string___type_conditionGroup___or__type_condition_children_string_Array___or__type_component___or__type_componentGroup_children_string_Array____;
|
|
88
|
-
};
|
|
89
|
-
export declare type _type_static_value_string__ = {
|
|
90
|
-
type: "static";
|
|
91
|
-
value: string;
|
|
92
|
-
};
|
|
93
|
-
export declare type _type_dependency_value_string__ = {
|
|
94
|
-
type: "dependency";
|
|
95
|
-
value: string;
|
|
96
|
-
};
|
|
97
|
-
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__ = {
|
|
40
|
+
export declare type Page = {
|
|
98
41
|
width: number;
|
|
99
42
|
height: number;
|
|
100
|
-
components:
|
|
101
|
-
orderTree: _root_string_Array_elements___x_string___type_conditionGroup___or__type_condition_children_string_Array___or__type_component___or__type_componentGroup_children_string_Array______;
|
|
102
|
-
url?: (_type_static_value_string__ | _type_dependency_value_string__)[];
|
|
43
|
+
components: PageComponent[];
|
|
103
44
|
};
|
|
104
45
|
export declare type Condition = {
|
|
105
46
|
id: string;
|
|
@@ -112,7 +53,7 @@ export declare type Condition = {
|
|
|
112
53
|
type: "dependency";
|
|
113
54
|
value: string;
|
|
114
55
|
};
|
|
115
|
-
operator: "
|
|
56
|
+
operator: ">=" | ">" | "<" | "<=" | "==" | "=" | "!=" | "!==";
|
|
116
57
|
value: {
|
|
117
58
|
type: "static";
|
|
118
59
|
value: string | number;
|
|
@@ -121,54 +62,29 @@ export declare type Condition = {
|
|
|
121
62
|
value: string;
|
|
122
63
|
};
|
|
123
64
|
}[];
|
|
65
|
+
components: string[];
|
|
124
66
|
};
|
|
125
67
|
export declare type ElseCondition = {
|
|
126
|
-
id:
|
|
127
|
-
|
|
68
|
+
id: "else";
|
|
69
|
+
components: string[];
|
|
128
70
|
};
|
|
129
71
|
export declare type ConditionGroup = {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
name
|
|
135
|
-
|
|
72
|
+
parent?: {
|
|
73
|
+
id: string;
|
|
74
|
+
conditionId: string;
|
|
75
|
+
};
|
|
76
|
+
name: string;
|
|
77
|
+
conditions: (Condition | ElseCondition)[];
|
|
136
78
|
};
|
|
137
79
|
export declare type BaseTemplate = {
|
|
138
|
-
components: {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
rendered: boolean;
|
|
143
|
-
options: {
|
|
144
|
-
[key: string]: AnyValue;
|
|
145
|
-
};
|
|
146
|
-
};
|
|
147
|
-
};
|
|
148
|
-
dependencies: {
|
|
149
|
-
[key: string]: {
|
|
150
|
-
type: string;
|
|
151
|
-
options: {
|
|
152
|
-
[key: string]: AnyValue;
|
|
153
|
-
};
|
|
154
|
-
};
|
|
155
|
-
};
|
|
156
|
-
pages: {
|
|
157
|
-
[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__;
|
|
158
|
-
};
|
|
159
|
-
conditionGroups: {
|
|
160
|
-
[key: string]: ConditionGroup;
|
|
161
|
-
};
|
|
162
|
-
componentGroups: {
|
|
163
|
-
[key: string]: ComponentGroup;
|
|
164
|
-
};
|
|
80
|
+
components: {};
|
|
81
|
+
dependencies: {};
|
|
82
|
+
pages: {};
|
|
83
|
+
conditionGroups: {};
|
|
165
84
|
};
|
|
166
85
|
export declare type SerializedContentVersions = {
|
|
167
86
|
readonly state: (ContentVersionState) & readonlyP;
|
|
168
|
-
|
|
169
|
-
metadata?: {
|
|
170
|
-
[key: string]: AnyValue;
|
|
171
|
-
};
|
|
87
|
+
metadata?: {};
|
|
172
88
|
template: BaseTemplate;
|
|
173
89
|
};
|
|
174
90
|
export declare type ContentVersions = SerializedContentVersions;
|
|
@@ -190,6 +106,7 @@ export declare type SerializedContent = {
|
|
|
190
106
|
readonly status: (ContentStatus) & readonlyP;
|
|
191
107
|
};
|
|
192
108
|
export declare type Contents = SerializedContent;
|
|
109
|
+
export declare type IObjectWithTypegooseFunction = {};
|
|
193
110
|
export declare type Pick_SerializedContent_resourceGroupIds_or_name_or_description_ = {
|
|
194
111
|
resourceGroupIds: string[];
|
|
195
112
|
name: string;
|
|
@@ -208,20 +125,7 @@ export declare type Partial_SerializedContent_ = {
|
|
|
208
125
|
};
|
|
209
126
|
export declare type Partial_SerializedContentVersions_ = {
|
|
210
127
|
readonly state?: (ContentVersionState) & readonlyP;
|
|
211
|
-
|
|
212
|
-
metadata?: {
|
|
213
|
-
[key: string]: AnyValue;
|
|
214
|
-
};
|
|
128
|
+
metadata?: {};
|
|
215
129
|
template?: BaseTemplate;
|
|
216
130
|
};
|
|
217
|
-
export declare type Readable = {
|
|
218
|
-
readable: boolean;
|
|
219
|
-
readonly readableEncoding: ("ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex") & readonlyP;
|
|
220
|
-
readonly readableEnded: (boolean) & readonlyP;
|
|
221
|
-
readonly readableFlowing: (boolean | null) & readonlyP;
|
|
222
|
-
readonly readableHighWaterMark: (number) & readonlyP;
|
|
223
|
-
readonly readableLength: (number) & readonlyP;
|
|
224
|
-
readonly readableObjectMode: (boolean) & readonlyP;
|
|
225
|
-
destroyed: boolean;
|
|
226
|
-
};
|
|
227
131
|
export {};
|
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmaW5pdGlvbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9kZWZpbml0aW9ucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsb0JBQW9CO0FBQ3BCLG9CQUFvQjs7O0FBcUNwQixJQUFZLG1CQUlYO0FBSkQsV0FBWSxtQkFBbUI7SUFDM0Isc0NBQWUsQ0FBQTtJQUNmLG9DQUFhLENBQUE7SUFDYiw0Q0FBcUIsQ0FBQTtBQUN6QixDQUFDLEVBSlcsbUJBQW1CLEdBQW5CLDJCQUFtQixLQUFuQiwyQkFBbUIsUUFJOUI7QUFnRUQsSUFBWSxhQUtYO0FBTEQsV0FBWSxhQUFhO0lBQ3JCLGdDQUFlLENBQUE7SUFDZiwwQ0FBeUIsQ0FBQTtJQUN6Qix3Q0FBdUIsQ0FBQTtJQUN2QixnQ0FBZSxDQUFBO0FBQ25CLENBQUMsRUFMVyxhQUFhLEdBQWIscUJBQWEsS0FBYixxQkFBYSxRQUt4QiJ9
|
package/package.json
CHANGED