@rlvt/contents-openapi-client 0.0.0-548e775 → 0.0.0-647c7e5
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 +600 -38
- package/build/api.js +11 -2
- package/build/definitions.d.ts +65 -15
- package/build/definitions.js +1 -1
- package/package.json +1 -1
package/build/api.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AxiosInstance, AxiosRequestConfig } from "axios";
|
|
2
|
-
import type {
|
|
3
|
-
export
|
|
2
|
+
import type { ContentStatus } from "./definitions";
|
|
3
|
+
export { Contents, ContentStatus, Pick_SerializedContent_resourceGroupIds_or_name_or_description_, Partial_SerializedContent_, Partial_SerializedContentVersions_, AnyValue, Readable, WithoutReadonly, WithoutWriteonly } from "./definitions";
|
|
4
4
|
export default class {
|
|
5
5
|
axios: AxiosInstance;
|
|
6
6
|
constructor(configOrInstance: AxiosRequestConfig | AxiosInstance);
|
|
@@ -10,6 +10,7 @@ export default class {
|
|
|
10
10
|
private updateContent;
|
|
11
11
|
private deleteContent;
|
|
12
12
|
private publishContent;
|
|
13
|
+
private renderContent;
|
|
13
14
|
get Content(): {
|
|
14
15
|
list: (params: {
|
|
15
16
|
name?: string;
|
|
@@ -29,11 +30,7 @@ export default class {
|
|
|
29
30
|
datetime: string;
|
|
30
31
|
code?: number;
|
|
31
32
|
message: string;
|
|
32
|
-
data:
|
|
33
|
-
id?: any;
|
|
34
|
-
_id?: any;
|
|
35
|
-
__v?: any;
|
|
36
|
-
} & {
|
|
33
|
+
data: {
|
|
37
34
|
description?: string;
|
|
38
35
|
readonly updatedAt: Date & {
|
|
39
36
|
readonly?: "__readonly";
|
|
@@ -66,15 +63,100 @@ export default class {
|
|
|
66
63
|
}) | (import("./definitions").ContentVersionState.INACTIVE & {
|
|
67
64
|
readonly?: "__readonly";
|
|
68
65
|
});
|
|
69
|
-
|
|
66
|
+
previewUrl?: string;
|
|
67
|
+
metadata?: {
|
|
68
|
+
[x: string]: any;
|
|
69
|
+
};
|
|
70
70
|
template: {
|
|
71
|
-
components: {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
71
|
+
components: {
|
|
72
|
+
[x: string]: {
|
|
73
|
+
name?: string;
|
|
74
|
+
type: string;
|
|
75
|
+
rendered: boolean;
|
|
76
|
+
options: {
|
|
77
|
+
[x: string]: any;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
dependencies: {
|
|
82
|
+
[x: string]: {
|
|
83
|
+
type: string;
|
|
84
|
+
options: {
|
|
85
|
+
[x: string]: any;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
pages: {
|
|
90
|
+
[x: string]: {
|
|
91
|
+
components: {
|
|
92
|
+
id: string;
|
|
93
|
+
width: number;
|
|
94
|
+
height: number;
|
|
95
|
+
x: number;
|
|
96
|
+
y: number;
|
|
97
|
+
z: number;
|
|
98
|
+
rotation: number;
|
|
99
|
+
}[];
|
|
100
|
+
width: number;
|
|
101
|
+
height: number;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
conditionGroups: {
|
|
105
|
+
[x: string]: {
|
|
106
|
+
name?: string;
|
|
107
|
+
parent?: {
|
|
108
|
+
id: string;
|
|
109
|
+
type: "conditionGroup";
|
|
110
|
+
conditionId: string;
|
|
111
|
+
} | {
|
|
112
|
+
id: string;
|
|
113
|
+
type: "componentGroup";
|
|
114
|
+
};
|
|
115
|
+
conditions: ({
|
|
116
|
+
id: string;
|
|
117
|
+
components: string[];
|
|
118
|
+
type: "and" | "or";
|
|
119
|
+
rules: {
|
|
120
|
+
field: {
|
|
121
|
+
type: "static";
|
|
122
|
+
value: string | number;
|
|
123
|
+
} | {
|
|
124
|
+
type: "dependency";
|
|
125
|
+
value: string;
|
|
126
|
+
};
|
|
127
|
+
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
128
|
+
value: {
|
|
129
|
+
type: "static";
|
|
130
|
+
value: string | number;
|
|
131
|
+
} | {
|
|
132
|
+
type: "dependency";
|
|
133
|
+
value: string;
|
|
134
|
+
};
|
|
135
|
+
}[];
|
|
136
|
+
} | {
|
|
137
|
+
id: "else";
|
|
138
|
+
components: string[];
|
|
139
|
+
})[];
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
componentGroups: {
|
|
143
|
+
[x: string]: {
|
|
144
|
+
name?: string;
|
|
145
|
+
components: string[];
|
|
146
|
+
rendered: boolean;
|
|
147
|
+
parent?: {
|
|
148
|
+
id: string;
|
|
149
|
+
type: "conditionGroup";
|
|
150
|
+
conditionId: string;
|
|
151
|
+
} | {
|
|
152
|
+
id: string;
|
|
153
|
+
type: "componentGroup";
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
};
|
|
75
157
|
};
|
|
76
158
|
}[];
|
|
77
|
-
}
|
|
159
|
+
}[];
|
|
78
160
|
}>>;
|
|
79
161
|
create: (data: {
|
|
80
162
|
description?: string;
|
|
@@ -120,12 +202,97 @@ export default class {
|
|
|
120
202
|
}) | (import("./definitions").ContentVersionState.INACTIVE & {
|
|
121
203
|
readonly?: "__readonly";
|
|
122
204
|
});
|
|
123
|
-
|
|
205
|
+
previewUrl?: string;
|
|
206
|
+
metadata?: {
|
|
207
|
+
[x: string]: any;
|
|
208
|
+
};
|
|
124
209
|
template: {
|
|
125
|
-
components: {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
210
|
+
components: {
|
|
211
|
+
[x: string]: {
|
|
212
|
+
name?: string;
|
|
213
|
+
type: string;
|
|
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
|
+
z: number;
|
|
237
|
+
rotation: number;
|
|
238
|
+
}[];
|
|
239
|
+
width: number;
|
|
240
|
+
height: number;
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
conditionGroups: {
|
|
244
|
+
[x: string]: {
|
|
245
|
+
name?: string;
|
|
246
|
+
parent?: {
|
|
247
|
+
id: string;
|
|
248
|
+
type: "conditionGroup";
|
|
249
|
+
conditionId: string;
|
|
250
|
+
} | {
|
|
251
|
+
id: string;
|
|
252
|
+
type: "componentGroup";
|
|
253
|
+
};
|
|
254
|
+
conditions: ({
|
|
255
|
+
id: string;
|
|
256
|
+
components: string[];
|
|
257
|
+
type: "and" | "or";
|
|
258
|
+
rules: {
|
|
259
|
+
field: {
|
|
260
|
+
type: "static";
|
|
261
|
+
value: string | number;
|
|
262
|
+
} | {
|
|
263
|
+
type: "dependency";
|
|
264
|
+
value: string;
|
|
265
|
+
};
|
|
266
|
+
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
267
|
+
value: {
|
|
268
|
+
type: "static";
|
|
269
|
+
value: string | number;
|
|
270
|
+
} | {
|
|
271
|
+
type: "dependency";
|
|
272
|
+
value: string;
|
|
273
|
+
};
|
|
274
|
+
}[];
|
|
275
|
+
} | {
|
|
276
|
+
id: "else";
|
|
277
|
+
components: string[];
|
|
278
|
+
})[];
|
|
279
|
+
};
|
|
280
|
+
};
|
|
281
|
+
componentGroups: {
|
|
282
|
+
[x: string]: {
|
|
283
|
+
name?: string;
|
|
284
|
+
components: string[];
|
|
285
|
+
rendered: boolean;
|
|
286
|
+
parent?: {
|
|
287
|
+
id: string;
|
|
288
|
+
type: "conditionGroup";
|
|
289
|
+
conditionId: string;
|
|
290
|
+
} | {
|
|
291
|
+
id: string;
|
|
292
|
+
type: "componentGroup";
|
|
293
|
+
};
|
|
294
|
+
};
|
|
295
|
+
};
|
|
129
296
|
};
|
|
130
297
|
}[];
|
|
131
298
|
};
|
|
@@ -172,12 +339,97 @@ export default class {
|
|
|
172
339
|
}) | (import("./definitions").ContentVersionState.INACTIVE & {
|
|
173
340
|
readonly?: "__readonly";
|
|
174
341
|
});
|
|
175
|
-
|
|
342
|
+
previewUrl?: string;
|
|
343
|
+
metadata?: {
|
|
344
|
+
[x: string]: any;
|
|
345
|
+
};
|
|
176
346
|
template: {
|
|
177
|
-
components: {
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
347
|
+
components: {
|
|
348
|
+
[x: string]: {
|
|
349
|
+
name?: string;
|
|
350
|
+
type: string;
|
|
351
|
+
rendered: boolean;
|
|
352
|
+
options: {
|
|
353
|
+
[x: string]: any;
|
|
354
|
+
};
|
|
355
|
+
};
|
|
356
|
+
};
|
|
357
|
+
dependencies: {
|
|
358
|
+
[x: string]: {
|
|
359
|
+
type: string;
|
|
360
|
+
options: {
|
|
361
|
+
[x: string]: any;
|
|
362
|
+
};
|
|
363
|
+
};
|
|
364
|
+
};
|
|
365
|
+
pages: {
|
|
366
|
+
[x: string]: {
|
|
367
|
+
components: {
|
|
368
|
+
id: string;
|
|
369
|
+
width: number;
|
|
370
|
+
height: number;
|
|
371
|
+
x: number;
|
|
372
|
+
y: number;
|
|
373
|
+
z: number;
|
|
374
|
+
rotation: number;
|
|
375
|
+
}[];
|
|
376
|
+
width: number;
|
|
377
|
+
height: number;
|
|
378
|
+
};
|
|
379
|
+
};
|
|
380
|
+
conditionGroups: {
|
|
381
|
+
[x: string]: {
|
|
382
|
+
name?: string;
|
|
383
|
+
parent?: {
|
|
384
|
+
id: string;
|
|
385
|
+
type: "conditionGroup";
|
|
386
|
+
conditionId: string;
|
|
387
|
+
} | {
|
|
388
|
+
id: string;
|
|
389
|
+
type: "componentGroup";
|
|
390
|
+
};
|
|
391
|
+
conditions: ({
|
|
392
|
+
id: string;
|
|
393
|
+
components: string[];
|
|
394
|
+
type: "and" | "or";
|
|
395
|
+
rules: {
|
|
396
|
+
field: {
|
|
397
|
+
type: "static";
|
|
398
|
+
value: string | number;
|
|
399
|
+
} | {
|
|
400
|
+
type: "dependency";
|
|
401
|
+
value: string;
|
|
402
|
+
};
|
|
403
|
+
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
404
|
+
value: {
|
|
405
|
+
type: "static";
|
|
406
|
+
value: string | number;
|
|
407
|
+
} | {
|
|
408
|
+
type: "dependency";
|
|
409
|
+
value: string;
|
|
410
|
+
};
|
|
411
|
+
}[];
|
|
412
|
+
} | {
|
|
413
|
+
id: "else";
|
|
414
|
+
components: string[];
|
|
415
|
+
})[];
|
|
416
|
+
};
|
|
417
|
+
};
|
|
418
|
+
componentGroups: {
|
|
419
|
+
[x: string]: {
|
|
420
|
+
name?: string;
|
|
421
|
+
components: string[];
|
|
422
|
+
rendered: boolean;
|
|
423
|
+
parent?: {
|
|
424
|
+
id: string;
|
|
425
|
+
type: "conditionGroup";
|
|
426
|
+
conditionId: string;
|
|
427
|
+
} | {
|
|
428
|
+
id: string;
|
|
429
|
+
type: "componentGroup";
|
|
430
|
+
};
|
|
431
|
+
};
|
|
432
|
+
};
|
|
181
433
|
};
|
|
182
434
|
}[];
|
|
183
435
|
};
|
|
@@ -189,12 +441,97 @@ export default class {
|
|
|
189
441
|
name?: string;
|
|
190
442
|
resourceGroupIds?: string[];
|
|
191
443
|
} & {
|
|
192
|
-
|
|
444
|
+
previewUrl?: string;
|
|
445
|
+
metadata?: {
|
|
446
|
+
[x: string]: any;
|
|
447
|
+
};
|
|
193
448
|
template?: {
|
|
194
|
-
components: {
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
449
|
+
components: {
|
|
450
|
+
[x: string]: {
|
|
451
|
+
name?: string;
|
|
452
|
+
type: string;
|
|
453
|
+
rendered: boolean;
|
|
454
|
+
options: {
|
|
455
|
+
[x: string]: any;
|
|
456
|
+
};
|
|
457
|
+
};
|
|
458
|
+
};
|
|
459
|
+
dependencies: {
|
|
460
|
+
[x: string]: {
|
|
461
|
+
type: string;
|
|
462
|
+
options: {
|
|
463
|
+
[x: string]: any;
|
|
464
|
+
};
|
|
465
|
+
};
|
|
466
|
+
};
|
|
467
|
+
pages: {
|
|
468
|
+
[x: string]: {
|
|
469
|
+
components: {
|
|
470
|
+
id: string;
|
|
471
|
+
width: number;
|
|
472
|
+
height: number;
|
|
473
|
+
x: number;
|
|
474
|
+
y: number;
|
|
475
|
+
z: number;
|
|
476
|
+
rotation: number;
|
|
477
|
+
}[];
|
|
478
|
+
width: number;
|
|
479
|
+
height: number;
|
|
480
|
+
};
|
|
481
|
+
};
|
|
482
|
+
conditionGroups: {
|
|
483
|
+
[x: string]: {
|
|
484
|
+
name?: string;
|
|
485
|
+
parent?: {
|
|
486
|
+
id: string;
|
|
487
|
+
type: "conditionGroup";
|
|
488
|
+
conditionId: string;
|
|
489
|
+
} | {
|
|
490
|
+
id: string;
|
|
491
|
+
type: "componentGroup";
|
|
492
|
+
};
|
|
493
|
+
conditions: ({
|
|
494
|
+
id: string;
|
|
495
|
+
components: string[];
|
|
496
|
+
type: "and" | "or";
|
|
497
|
+
rules: {
|
|
498
|
+
field: {
|
|
499
|
+
type: "static";
|
|
500
|
+
value: string | number;
|
|
501
|
+
} | {
|
|
502
|
+
type: "dependency";
|
|
503
|
+
value: string;
|
|
504
|
+
};
|
|
505
|
+
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
506
|
+
value: {
|
|
507
|
+
type: "static";
|
|
508
|
+
value: string | number;
|
|
509
|
+
} | {
|
|
510
|
+
type: "dependency";
|
|
511
|
+
value: string;
|
|
512
|
+
};
|
|
513
|
+
}[];
|
|
514
|
+
} | {
|
|
515
|
+
id: "else";
|
|
516
|
+
components: string[];
|
|
517
|
+
})[];
|
|
518
|
+
};
|
|
519
|
+
};
|
|
520
|
+
componentGroups: {
|
|
521
|
+
[x: string]: {
|
|
522
|
+
name?: string;
|
|
523
|
+
components: string[];
|
|
524
|
+
rendered: boolean;
|
|
525
|
+
parent?: {
|
|
526
|
+
id: string;
|
|
527
|
+
type: "conditionGroup";
|
|
528
|
+
conditionId: string;
|
|
529
|
+
} | {
|
|
530
|
+
id: string;
|
|
531
|
+
type: "componentGroup";
|
|
532
|
+
};
|
|
533
|
+
};
|
|
534
|
+
};
|
|
198
535
|
};
|
|
199
536
|
}, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
|
|
200
537
|
status: "success";
|
|
@@ -236,12 +573,97 @@ export default class {
|
|
|
236
573
|
}) | (import("./definitions").ContentVersionState.INACTIVE & {
|
|
237
574
|
readonly?: "__readonly";
|
|
238
575
|
});
|
|
239
|
-
|
|
576
|
+
previewUrl?: string;
|
|
577
|
+
metadata?: {
|
|
578
|
+
[x: string]: any;
|
|
579
|
+
};
|
|
240
580
|
template: {
|
|
241
|
-
components: {
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
581
|
+
components: {
|
|
582
|
+
[x: string]: {
|
|
583
|
+
name?: string;
|
|
584
|
+
type: string;
|
|
585
|
+
rendered: boolean;
|
|
586
|
+
options: {
|
|
587
|
+
[x: string]: any;
|
|
588
|
+
};
|
|
589
|
+
};
|
|
590
|
+
};
|
|
591
|
+
dependencies: {
|
|
592
|
+
[x: string]: {
|
|
593
|
+
type: string;
|
|
594
|
+
options: {
|
|
595
|
+
[x: string]: any;
|
|
596
|
+
};
|
|
597
|
+
};
|
|
598
|
+
};
|
|
599
|
+
pages: {
|
|
600
|
+
[x: string]: {
|
|
601
|
+
components: {
|
|
602
|
+
id: string;
|
|
603
|
+
width: number;
|
|
604
|
+
height: number;
|
|
605
|
+
x: number;
|
|
606
|
+
y: number;
|
|
607
|
+
z: number;
|
|
608
|
+
rotation: number;
|
|
609
|
+
}[];
|
|
610
|
+
width: number;
|
|
611
|
+
height: number;
|
|
612
|
+
};
|
|
613
|
+
};
|
|
614
|
+
conditionGroups: {
|
|
615
|
+
[x: string]: {
|
|
616
|
+
name?: string;
|
|
617
|
+
parent?: {
|
|
618
|
+
id: string;
|
|
619
|
+
type: "conditionGroup";
|
|
620
|
+
conditionId: string;
|
|
621
|
+
} | {
|
|
622
|
+
id: string;
|
|
623
|
+
type: "componentGroup";
|
|
624
|
+
};
|
|
625
|
+
conditions: ({
|
|
626
|
+
id: string;
|
|
627
|
+
components: string[];
|
|
628
|
+
type: "and" | "or";
|
|
629
|
+
rules: {
|
|
630
|
+
field: {
|
|
631
|
+
type: "static";
|
|
632
|
+
value: string | number;
|
|
633
|
+
} | {
|
|
634
|
+
type: "dependency";
|
|
635
|
+
value: string;
|
|
636
|
+
};
|
|
637
|
+
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
638
|
+
value: {
|
|
639
|
+
type: "static";
|
|
640
|
+
value: string | number;
|
|
641
|
+
} | {
|
|
642
|
+
type: "dependency";
|
|
643
|
+
value: string;
|
|
644
|
+
};
|
|
645
|
+
}[];
|
|
646
|
+
} | {
|
|
647
|
+
id: "else";
|
|
648
|
+
components: string[];
|
|
649
|
+
})[];
|
|
650
|
+
};
|
|
651
|
+
};
|
|
652
|
+
componentGroups: {
|
|
653
|
+
[x: string]: {
|
|
654
|
+
name?: string;
|
|
655
|
+
components: string[];
|
|
656
|
+
rendered: boolean;
|
|
657
|
+
parent?: {
|
|
658
|
+
id: string;
|
|
659
|
+
type: "conditionGroup";
|
|
660
|
+
conditionId: string;
|
|
661
|
+
} | {
|
|
662
|
+
id: string;
|
|
663
|
+
type: "componentGroup";
|
|
664
|
+
};
|
|
665
|
+
};
|
|
666
|
+
};
|
|
245
667
|
};
|
|
246
668
|
}[];
|
|
247
669
|
};
|
|
@@ -299,15 +721,155 @@ export default class {
|
|
|
299
721
|
}) | (import("./definitions").ContentVersionState.INACTIVE & {
|
|
300
722
|
readonly?: "__readonly";
|
|
301
723
|
});
|
|
302
|
-
|
|
724
|
+
previewUrl?: string;
|
|
725
|
+
metadata?: {
|
|
726
|
+
[x: string]: any;
|
|
727
|
+
};
|
|
303
728
|
template: {
|
|
304
|
-
components: {
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
729
|
+
components: {
|
|
730
|
+
[x: string]: {
|
|
731
|
+
name?: string;
|
|
732
|
+
type: string;
|
|
733
|
+
rendered: boolean;
|
|
734
|
+
options: {
|
|
735
|
+
[x: string]: any;
|
|
736
|
+
};
|
|
737
|
+
};
|
|
738
|
+
};
|
|
739
|
+
dependencies: {
|
|
740
|
+
[x: string]: {
|
|
741
|
+
type: string;
|
|
742
|
+
options: {
|
|
743
|
+
[x: string]: any;
|
|
744
|
+
};
|
|
745
|
+
};
|
|
746
|
+
};
|
|
747
|
+
pages: {
|
|
748
|
+
[x: string]: {
|
|
749
|
+
components: {
|
|
750
|
+
id: string;
|
|
751
|
+
width: number;
|
|
752
|
+
height: number;
|
|
753
|
+
x: number;
|
|
754
|
+
y: number;
|
|
755
|
+
z: number;
|
|
756
|
+
rotation: number;
|
|
757
|
+
}[];
|
|
758
|
+
width: number;
|
|
759
|
+
height: number;
|
|
760
|
+
};
|
|
761
|
+
};
|
|
762
|
+
conditionGroups: {
|
|
763
|
+
[x: string]: {
|
|
764
|
+
name?: string;
|
|
765
|
+
parent?: {
|
|
766
|
+
id: string;
|
|
767
|
+
type: "conditionGroup";
|
|
768
|
+
conditionId: string;
|
|
769
|
+
} | {
|
|
770
|
+
id: string;
|
|
771
|
+
type: "componentGroup";
|
|
772
|
+
};
|
|
773
|
+
conditions: ({
|
|
774
|
+
id: string;
|
|
775
|
+
components: string[];
|
|
776
|
+
type: "and" | "or";
|
|
777
|
+
rules: {
|
|
778
|
+
field: {
|
|
779
|
+
type: "static";
|
|
780
|
+
value: string | number;
|
|
781
|
+
} | {
|
|
782
|
+
type: "dependency";
|
|
783
|
+
value: string;
|
|
784
|
+
};
|
|
785
|
+
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
786
|
+
value: {
|
|
787
|
+
type: "static";
|
|
788
|
+
value: string | number;
|
|
789
|
+
} | {
|
|
790
|
+
type: "dependency";
|
|
791
|
+
value: string;
|
|
792
|
+
};
|
|
793
|
+
}[];
|
|
794
|
+
} | {
|
|
795
|
+
id: "else";
|
|
796
|
+
components: string[];
|
|
797
|
+
})[];
|
|
798
|
+
};
|
|
799
|
+
};
|
|
800
|
+
componentGroups: {
|
|
801
|
+
[x: string]: {
|
|
802
|
+
name?: string;
|
|
803
|
+
components: string[];
|
|
804
|
+
rendered: boolean;
|
|
805
|
+
parent?: {
|
|
806
|
+
id: string;
|
|
807
|
+
type: "conditionGroup";
|
|
808
|
+
conditionId: string;
|
|
809
|
+
} | {
|
|
810
|
+
id: string;
|
|
811
|
+
type: "componentGroup";
|
|
812
|
+
};
|
|
813
|
+
};
|
|
814
|
+
};
|
|
308
815
|
};
|
|
309
816
|
}[];
|
|
310
817
|
};
|
|
311
818
|
}>>;
|
|
819
|
+
render: (params: {
|
|
820
|
+
id: string;
|
|
821
|
+
'x-rlvt-no-cache'?: boolean;
|
|
822
|
+
}, data: {
|
|
823
|
+
dependenciesData: {
|
|
824
|
+
[key: string]: any;
|
|
825
|
+
};
|
|
826
|
+
}, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
|
|
827
|
+
readable: boolean;
|
|
828
|
+
readonly readableEncoding: ("ascii" & {
|
|
829
|
+
readonly?: "__readonly";
|
|
830
|
+
}) | ("utf8" & {
|
|
831
|
+
readonly?: "__readonly";
|
|
832
|
+
}) | ("utf-8" & {
|
|
833
|
+
readonly?: "__readonly";
|
|
834
|
+
}) | ("utf16le" & {
|
|
835
|
+
readonly?: "__readonly";
|
|
836
|
+
}) | ("ucs2" & {
|
|
837
|
+
readonly?: "__readonly";
|
|
838
|
+
}) | ("ucs-2" & {
|
|
839
|
+
readonly?: "__readonly";
|
|
840
|
+
}) | ("base64" & {
|
|
841
|
+
readonly?: "__readonly";
|
|
842
|
+
}) | ("base64url" & {
|
|
843
|
+
readonly?: "__readonly";
|
|
844
|
+
}) | ("latin1" & {
|
|
845
|
+
readonly?: "__readonly";
|
|
846
|
+
}) | ("binary" & {
|
|
847
|
+
readonly?: "__readonly";
|
|
848
|
+
}) | ("hex" & {
|
|
849
|
+
readonly?: "__readonly";
|
|
850
|
+
});
|
|
851
|
+
readonly readableEnded: (false & {
|
|
852
|
+
readonly?: "__readonly";
|
|
853
|
+
}) | (true & {
|
|
854
|
+
readonly?: "__readonly";
|
|
855
|
+
});
|
|
856
|
+
readonly readableFlowing: (false & {
|
|
857
|
+
readonly?: "__readonly";
|
|
858
|
+
}) | (true & {
|
|
859
|
+
readonly?: "__readonly";
|
|
860
|
+
});
|
|
861
|
+
readonly readableHighWaterMark: number & {
|
|
862
|
+
readonly?: "__readonly";
|
|
863
|
+
};
|
|
864
|
+
readonly readableLength: number & {
|
|
865
|
+
readonly?: "__readonly";
|
|
866
|
+
};
|
|
867
|
+
readonly readableObjectMode: (false & {
|
|
868
|
+
readonly?: "__readonly";
|
|
869
|
+
}) | (true & {
|
|
870
|
+
readonly?: "__readonly";
|
|
871
|
+
});
|
|
872
|
+
destroyed: boolean;
|
|
873
|
+
}>>;
|
|
312
874
|
};
|
|
313
875
|
}
|
package/build/api.js
CHANGED
|
@@ -5,7 +5,10 @@ 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;
|
|
8
9
|
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; } });
|
|
9
12
|
class default_1 {
|
|
10
13
|
constructor(configOrInstance) {
|
|
11
14
|
this.axios = 'interceptors' in configOrInstance
|
|
@@ -32,6 +35,11 @@ class default_1 {
|
|
|
32
35
|
publishContent(params, options) {
|
|
33
36
|
return this.axios.post("/contents/{id}/publish".replace(/{id}/, String(params["id"])), {}, options);
|
|
34
37
|
}
|
|
38
|
+
renderContent(params, data, options) {
|
|
39
|
+
return this.axios.post("/contents/render/{id}".replace(/{id}/, String(params["id"])), data, Object.assign({}, {
|
|
40
|
+
headers: pick(params, "x-rlvt-no-cache"),
|
|
41
|
+
}, options));
|
|
42
|
+
}
|
|
35
43
|
get Content() {
|
|
36
44
|
return {
|
|
37
45
|
list: this.listContent.bind(this),
|
|
@@ -39,7 +47,8 @@ class default_1 {
|
|
|
39
47
|
get: this.getContent.bind(this),
|
|
40
48
|
update: this.updateContent.bind(this),
|
|
41
49
|
delete: this.deleteContent.bind(this),
|
|
42
|
-
publish: this.publishContent.bind(this)
|
|
50
|
+
publish: this.publishContent.bind(this),
|
|
51
|
+
render: this.renderContent.bind(this)
|
|
43
52
|
};
|
|
44
53
|
}
|
|
45
54
|
}
|
|
@@ -52,4 +61,4 @@ function pick(obj, ...keys) {
|
|
|
52
61
|
});
|
|
53
62
|
return ret;
|
|
54
63
|
}
|
|
55
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
64
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBpLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxvQkFBb0I7QUFDcEIsb0JBQW9COzs7Ozs7QUFFcEIsa0RBQWlFO0FBR2pFLDZDQUFnUDtBQUE3Tiw0R0FBQSxhQUFhLE9BQUE7QUFFaEM7SUFHSSxZQUFZLGdCQUFvRDtRQUM1RCxJQUFJLENBQUMsS0FBSyxHQUFHLGNBQWMsSUFBSSxnQkFBZ0I7WUFDM0MsQ0FBQyxDQUFDLGdCQUFnQjtZQUNs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FBQyxhQUFhLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQztZQUNyQyxHQUFHLEVBQUUsSUFBSSxDQUFDLFVBQVUsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDO1lBQy9CLE1BQU0sRUFBRSxJQUFJLENBQUMsYUFBYSxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUM7WUFDckMsTUFBTSxFQUFFLElBQUksQ0FBQyxhQUFhLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQztZQUNyQyxPQUFPLEVBQUUsSUFBSSxDQUFDLGNBQWMsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDO1lBQ3ZDLE1BQU0sRUFBRSxJQUFJLENBQUMsYUFBYSxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUM7U0FDeEMsQ0FBQztJQUNOLENBQUM7Q0FDSjtBQXRKRCw0QkFzSkM7QUFFRCxTQUFTLElBQUksQ0FBdUIsR0FBTSxFQUFFLEdBQUcsSUFBUztJQUNwRCxNQUFNLEdBQUcsR0FBZSxFQUFnQixDQUFDO0lBQ3pDLElBQUksQ0FBQyxPQUFPLENBQUMsR0FBRyxDQUFDLEVBQUU7UUFDZixJQUFJLEdBQUcsSUFBSSxNQUFNLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxDQUFDLFFBQVEsQ0FBQyxHQUFhLENBQUM7WUFDL0MsR0FBRyxDQUFDLEdBQUcsQ0FBQyxHQUFHLEdBQUcsQ0FBQyxHQUFHLENBQUMsQ0FBQztJQUM1QixDQUFDLENBQUMsQ0FBQztJQUNILE9BQU8sR0FBRyxDQUFDO0FBQ2YsQ0FBQyJ9
|
package/build/definitions.d.ts
CHANGED
|
@@ -17,11 +17,6 @@ declare type PropsWithoutWriteonly<T> = {
|
|
|
17
17
|
export declare type WithoutWriteonly<T> = T extends any ? T extends Primitive ? T : T extends Array<infer U> ? WithoutWriteonly<U>[] : {
|
|
18
18
|
[key in keyof Pick<T, PropsWithoutWriteonly<T>>]: Pick<T, PropsWithoutWriteonly<T>>[key] extends any ? WithoutWriteonly<Pick<T, PropsWithoutWriteonly<T>>[key]> : never;
|
|
19
19
|
} : never;
|
|
20
|
-
export declare type 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;
|
|
24
|
-
};
|
|
25
20
|
export declare enum ContentVersionState {
|
|
26
21
|
DRAFT = "draft",
|
|
27
22
|
LIVE = "live",
|
|
@@ -53,7 +48,7 @@ export declare type Condition = {
|
|
|
53
48
|
type: "dependency";
|
|
54
49
|
value: string;
|
|
55
50
|
};
|
|
56
|
-
operator: "
|
|
51
|
+
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
|
|
57
52
|
value: {
|
|
58
53
|
type: "static";
|
|
59
54
|
value: string | number;
|
|
@@ -70,21 +65,64 @@ export declare type ElseCondition = {
|
|
|
70
65
|
};
|
|
71
66
|
export declare type ConditionGroup = {
|
|
72
67
|
parent?: {
|
|
68
|
+
type: "conditionGroup";
|
|
73
69
|
id: string;
|
|
74
70
|
conditionId: string;
|
|
71
|
+
} | {
|
|
72
|
+
type: "componentGroup";
|
|
73
|
+
id: string;
|
|
75
74
|
};
|
|
76
|
-
name
|
|
77
|
-
conditions: (Condition | ElseCondition)[];
|
|
75
|
+
name?: string;
|
|
76
|
+
conditions: (Condition | Condition | ElseCondition)[];
|
|
77
|
+
};
|
|
78
|
+
export declare type ComponentGroup = {
|
|
79
|
+
name?: string;
|
|
80
|
+
parent?: {
|
|
81
|
+
type: "conditionGroup";
|
|
82
|
+
id: string;
|
|
83
|
+
conditionId: string;
|
|
84
|
+
} | {
|
|
85
|
+
type: "componentGroup";
|
|
86
|
+
id: string;
|
|
87
|
+
};
|
|
88
|
+
components: string[];
|
|
89
|
+
rendered: boolean;
|
|
78
90
|
};
|
|
79
91
|
export declare type BaseTemplate = {
|
|
80
|
-
components: {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
92
|
+
components: {
|
|
93
|
+
[key: string]: {
|
|
94
|
+
name?: string;
|
|
95
|
+
type: string;
|
|
96
|
+
rendered: boolean;
|
|
97
|
+
options: {
|
|
98
|
+
[key: string]: AnyValue;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
dependencies: {
|
|
103
|
+
[key: string]: {
|
|
104
|
+
type: string;
|
|
105
|
+
options: {
|
|
106
|
+
[key: string]: AnyValue;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
pages: {
|
|
111
|
+
[key: string]: Page;
|
|
112
|
+
};
|
|
113
|
+
conditionGroups: {
|
|
114
|
+
[key: string]: ConditionGroup;
|
|
115
|
+
};
|
|
116
|
+
componentGroups: {
|
|
117
|
+
[key: string]: ComponentGroup;
|
|
118
|
+
};
|
|
84
119
|
};
|
|
85
120
|
export declare type SerializedContentVersions = {
|
|
86
121
|
readonly state: (ContentVersionState) & readonlyP;
|
|
87
|
-
|
|
122
|
+
previewUrl?: string;
|
|
123
|
+
metadata?: {
|
|
124
|
+
[key: string]: AnyValue;
|
|
125
|
+
};
|
|
88
126
|
template: BaseTemplate;
|
|
89
127
|
};
|
|
90
128
|
export declare type ContentVersions = SerializedContentVersions;
|
|
@@ -106,7 +144,6 @@ export declare type SerializedContent = {
|
|
|
106
144
|
readonly status: (ContentStatus) & readonlyP;
|
|
107
145
|
};
|
|
108
146
|
export declare type Contents = SerializedContent;
|
|
109
|
-
export declare type IObjectWithTypegooseFunction = {};
|
|
110
147
|
export declare type Pick_SerializedContent_resourceGroupIds_or_name_or_description_ = {
|
|
111
148
|
resourceGroupIds: string[];
|
|
112
149
|
name: string;
|
|
@@ -125,7 +162,20 @@ export declare type Partial_SerializedContent_ = {
|
|
|
125
162
|
};
|
|
126
163
|
export declare type Partial_SerializedContentVersions_ = {
|
|
127
164
|
readonly state?: (ContentVersionState) & readonlyP;
|
|
128
|
-
|
|
165
|
+
previewUrl?: string;
|
|
166
|
+
metadata?: {
|
|
167
|
+
[key: string]: AnyValue;
|
|
168
|
+
};
|
|
129
169
|
template?: BaseTemplate;
|
|
130
170
|
};
|
|
171
|
+
export declare type Readable = {
|
|
172
|
+
readable: boolean;
|
|
173
|
+
readonly readableEncoding: ("ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex") & readonlyP;
|
|
174
|
+
readonly readableEnded: (boolean) & readonlyP;
|
|
175
|
+
readonly readableFlowing: (boolean | null) & readonlyP;
|
|
176
|
+
readonly readableHighWaterMark: (number) & readonlyP;
|
|
177
|
+
readonly readableLength: (number) & readonlyP;
|
|
178
|
+
readonly readableObjectMode: (boolean) & readonlyP;
|
|
179
|
+
destroyed: boolean;
|
|
180
|
+
};
|
|
131
181
|
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmaW5pdGlvbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9kZWZpbml0aW9ucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsb0JBQW9CO0FBQ3BCLG9CQUFvQjs7O0FBZ0NwQixJQUFZLG1CQUlYO0FBSkQsV0FBWSxtQkFBbUI7SUFDM0Isc0NBQWUsQ0FBQTtJQUNmLG9DQUFhLENBQUE7SUFDYiw0Q0FBcUIsQ0FBQTtBQUN6QixDQUFDLEVBSlcsbUJBQW1CLEdBQW5CLDJCQUFtQixLQUFuQiwyQkFBbUIsUUFJOUI7QUEyR0QsSUFBWSxhQUtYO0FBTEQsV0FBWSxhQUFhO0lBQ3JCLGdDQUFlLENBQUE7SUFDZiwwQ0FBeUIsQ0FBQTtJQUN6Qix3Q0FBdUIsQ0FBQTtJQUN2QixnQ0FBZSxDQUFBO0FBQ25CLENBQUMsRUFMVyxhQUFhLEdBQWIscUJBQWEsS0FBYixxQkFBYSxRQUt4QiJ9
|
package/package.json
CHANGED