@rlvt/contents-openapi-client 0.0.0-ff83b1f → 1.0.0
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 +745 -83
- package/build/api.js +29 -9
- package/build/definitions.d.ts +129 -58
- package/build/definitions.js +1 -1
- package/package.json +2 -3
package/build/api.d.ts
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { AxiosInstance, AxiosRequestConfig } from "axios";
|
|
2
2
|
import type { ContentStatus } from "./definitions";
|
|
3
|
-
export { Contents, ContentStatus, Pick_SerializedContent_resourceGroupIds_or_name_or_description_, Partial_SerializedContent_, Partial_SerializedContentVersions_, Readable, WithoutReadonly, WithoutWriteonly } from "./definitions";
|
|
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 listContentFontResource;
|
|
8
|
+
private createContentFontResource;
|
|
9
|
+
private getContentFontResource;
|
|
10
|
+
private updateContentFontResource;
|
|
7
11
|
private listContent;
|
|
8
12
|
private createContent;
|
|
9
13
|
private getContent;
|
|
@@ -11,16 +15,151 @@ export default class {
|
|
|
11
15
|
private deleteContent;
|
|
12
16
|
private publishContent;
|
|
13
17
|
private renderContent;
|
|
18
|
+
get ContentResource(): {
|
|
19
|
+
listContentFontResource: (params: {
|
|
20
|
+
ids?: string[];
|
|
21
|
+
resourceGroupIds?: string[];
|
|
22
|
+
}, options?: AxiosRequestConfig<any>) => 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
|
+
}, any>>;
|
|
50
|
+
createContentFontResource: (data: {
|
|
51
|
+
resourceGroupIds: string[];
|
|
52
|
+
family: string;
|
|
53
|
+
files: {
|
|
54
|
+
[x: string]: string;
|
|
55
|
+
};
|
|
56
|
+
}, options?: AxiosRequestConfig<any>) => 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
|
+
}, any>>;
|
|
84
|
+
getContentFontResource: (params: {
|
|
85
|
+
id: string;
|
|
86
|
+
}, options?: AxiosRequestConfig<any>) => 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
|
+
}, any>>;
|
|
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<any>) => 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
|
+
}, any>>;
|
|
151
|
+
};
|
|
14
152
|
get Content(): {
|
|
15
153
|
list: (params: {
|
|
154
|
+
ids?: string[];
|
|
16
155
|
name?: string;
|
|
17
156
|
resourceGroupIds?: string[];
|
|
18
157
|
status?: ContentStatus[];
|
|
19
|
-
sortBy?: "
|
|
158
|
+
sortBy?: "createdAt" | "updatedAt";
|
|
20
159
|
sortOrder?: "desc" | "asc";
|
|
21
160
|
page?: number;
|
|
22
161
|
perPage?: number;
|
|
23
|
-
}, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
|
|
162
|
+
}, options?: AxiosRequestConfig<any>) => Promise<import("axios").AxiosResponse<{
|
|
24
163
|
paginationCount: number;
|
|
25
164
|
paginationPage: number;
|
|
26
165
|
paginationLimit: number;
|
|
@@ -32,14 +171,17 @@ export default class {
|
|
|
32
171
|
message: string;
|
|
33
172
|
data: {
|
|
34
173
|
description?: string;
|
|
35
|
-
|
|
174
|
+
resourceGroupIds: string[];
|
|
175
|
+
readonly id: string & {
|
|
36
176
|
readonly?: "__readonly";
|
|
37
177
|
};
|
|
38
178
|
readonly createdAt: Date & {
|
|
39
179
|
readonly?: "__readonly";
|
|
40
180
|
};
|
|
181
|
+
readonly updatedAt: Date & {
|
|
182
|
+
readonly?: "__readonly";
|
|
183
|
+
};
|
|
41
184
|
name: string;
|
|
42
|
-
resourceGroupIds: string[];
|
|
43
185
|
readonly status: (ContentStatus.DRAFT & {
|
|
44
186
|
readonly?: "__readonly";
|
|
45
187
|
}) | (ContentStatus.PUBLISHING & {
|
|
@@ -49,9 +191,6 @@ export default class {
|
|
|
49
191
|
}) | (ContentStatus.ERROR & {
|
|
50
192
|
readonly?: "__readonly";
|
|
51
193
|
});
|
|
52
|
-
readonly id: string & {
|
|
53
|
-
readonly?: "__readonly";
|
|
54
|
-
};
|
|
55
194
|
readonly companyId: string & {
|
|
56
195
|
readonly?: "__readonly";
|
|
57
196
|
};
|
|
@@ -64,22 +203,109 @@ export default class {
|
|
|
64
203
|
readonly?: "__readonly";
|
|
65
204
|
});
|
|
66
205
|
previewUrl?: string;
|
|
67
|
-
metadata?: {
|
|
206
|
+
metadata?: {
|
|
207
|
+
[x: string]: {};
|
|
208
|
+
};
|
|
68
209
|
template: {
|
|
69
|
-
components: {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
210
|
+
components: {
|
|
211
|
+
[x: string]: {
|
|
212
|
+
options: {
|
|
213
|
+
[x: string]: {};
|
|
214
|
+
};
|
|
215
|
+
name?: string;
|
|
216
|
+
type: string;
|
|
217
|
+
rendered: boolean;
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
dependencies: {
|
|
221
|
+
[x: string]: {
|
|
222
|
+
options: {
|
|
223
|
+
[x: string]: {};
|
|
224
|
+
};
|
|
225
|
+
type: string;
|
|
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: "dependency";
|
|
274
|
+
value: string;
|
|
275
|
+
} | {
|
|
276
|
+
type: "static";
|
|
277
|
+
value: string | number;
|
|
278
|
+
};
|
|
279
|
+
field: {
|
|
280
|
+
type: "dependency";
|
|
281
|
+
value: string;
|
|
282
|
+
} | {
|
|
283
|
+
type: "static";
|
|
284
|
+
value: string | number;
|
|
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
|
+
};
|
|
74
300
|
};
|
|
75
301
|
}[];
|
|
76
302
|
}[];
|
|
77
|
-
}>>;
|
|
303
|
+
}, any>>;
|
|
78
304
|
create: (data: {
|
|
79
305
|
description?: string;
|
|
80
|
-
name: string;
|
|
81
306
|
resourceGroupIds: string[];
|
|
82
|
-
|
|
307
|
+
name: string;
|
|
308
|
+
}, options?: AxiosRequestConfig<any>) => Promise<import("axios").AxiosResponse<{
|
|
83
309
|
status: "success";
|
|
84
310
|
program: string;
|
|
85
311
|
version: string;
|
|
@@ -88,14 +314,17 @@ export default class {
|
|
|
88
314
|
message: string;
|
|
89
315
|
data: {
|
|
90
316
|
description?: string;
|
|
91
|
-
|
|
317
|
+
resourceGroupIds: string[];
|
|
318
|
+
readonly id: string & {
|
|
92
319
|
readonly?: "__readonly";
|
|
93
320
|
};
|
|
94
321
|
readonly createdAt: Date & {
|
|
95
322
|
readonly?: "__readonly";
|
|
96
323
|
};
|
|
324
|
+
readonly updatedAt: Date & {
|
|
325
|
+
readonly?: "__readonly";
|
|
326
|
+
};
|
|
97
327
|
name: string;
|
|
98
|
-
resourceGroupIds: string[];
|
|
99
328
|
readonly status: (ContentStatus.DRAFT & {
|
|
100
329
|
readonly?: "__readonly";
|
|
101
330
|
}) | (ContentStatus.PUBLISHING & {
|
|
@@ -105,9 +334,6 @@ export default class {
|
|
|
105
334
|
}) | (ContentStatus.ERROR & {
|
|
106
335
|
readonly?: "__readonly";
|
|
107
336
|
});
|
|
108
|
-
readonly id: string & {
|
|
109
|
-
readonly?: "__readonly";
|
|
110
|
-
};
|
|
111
337
|
readonly companyId: string & {
|
|
112
338
|
readonly?: "__readonly";
|
|
113
339
|
};
|
|
@@ -120,20 +346,107 @@ export default class {
|
|
|
120
346
|
readonly?: "__readonly";
|
|
121
347
|
});
|
|
122
348
|
previewUrl?: string;
|
|
123
|
-
metadata?: {
|
|
349
|
+
metadata?: {
|
|
350
|
+
[x: string]: {};
|
|
351
|
+
};
|
|
124
352
|
template: {
|
|
125
|
-
components: {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
353
|
+
components: {
|
|
354
|
+
[x: string]: {
|
|
355
|
+
options: {
|
|
356
|
+
[x: string]: {};
|
|
357
|
+
};
|
|
358
|
+
name?: string;
|
|
359
|
+
type: string;
|
|
360
|
+
rendered: boolean;
|
|
361
|
+
};
|
|
362
|
+
};
|
|
363
|
+
dependencies: {
|
|
364
|
+
[x: string]: {
|
|
365
|
+
options: {
|
|
366
|
+
[x: string]: {};
|
|
367
|
+
};
|
|
368
|
+
type: string;
|
|
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: "dependency";
|
|
417
|
+
value: string;
|
|
418
|
+
} | {
|
|
419
|
+
type: "static";
|
|
420
|
+
value: string | number;
|
|
421
|
+
};
|
|
422
|
+
field: {
|
|
423
|
+
type: "dependency";
|
|
424
|
+
value: string;
|
|
425
|
+
} | {
|
|
426
|
+
type: "static";
|
|
427
|
+
value: string | number;
|
|
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
|
+
};
|
|
130
443
|
};
|
|
131
444
|
}[];
|
|
132
445
|
};
|
|
133
|
-
}>>;
|
|
446
|
+
}, any>>;
|
|
134
447
|
get: (params: {
|
|
135
448
|
id: string;
|
|
136
|
-
}, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
|
|
449
|
+
}, options?: AxiosRequestConfig<any>) => Promise<import("axios").AxiosResponse<{
|
|
137
450
|
status: "success";
|
|
138
451
|
program: string;
|
|
139
452
|
version: string;
|
|
@@ -142,14 +455,17 @@ export default class {
|
|
|
142
455
|
message: string;
|
|
143
456
|
data: {
|
|
144
457
|
description?: string;
|
|
145
|
-
|
|
458
|
+
resourceGroupIds: string[];
|
|
459
|
+
readonly id: string & {
|
|
146
460
|
readonly?: "__readonly";
|
|
147
461
|
};
|
|
148
462
|
readonly createdAt: Date & {
|
|
149
463
|
readonly?: "__readonly";
|
|
150
464
|
};
|
|
465
|
+
readonly updatedAt: Date & {
|
|
466
|
+
readonly?: "__readonly";
|
|
467
|
+
};
|
|
151
468
|
name: string;
|
|
152
|
-
resourceGroupIds: string[];
|
|
153
469
|
readonly status: (ContentStatus.DRAFT & {
|
|
154
470
|
readonly?: "__readonly";
|
|
155
471
|
}) | (ContentStatus.PUBLISHING & {
|
|
@@ -159,9 +475,6 @@ export default class {
|
|
|
159
475
|
}) | (ContentStatus.ERROR & {
|
|
160
476
|
readonly?: "__readonly";
|
|
161
477
|
});
|
|
162
|
-
readonly id: string & {
|
|
163
|
-
readonly?: "__readonly";
|
|
164
|
-
};
|
|
165
478
|
readonly companyId: string & {
|
|
166
479
|
readonly?: "__readonly";
|
|
167
480
|
};
|
|
@@ -174,34 +487,208 @@ export default class {
|
|
|
174
487
|
readonly?: "__readonly";
|
|
175
488
|
});
|
|
176
489
|
previewUrl?: string;
|
|
177
|
-
metadata?: {
|
|
490
|
+
metadata?: {
|
|
491
|
+
[x: string]: {};
|
|
492
|
+
};
|
|
178
493
|
template: {
|
|
179
|
-
components: {
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
494
|
+
components: {
|
|
495
|
+
[x: string]: {
|
|
496
|
+
options: {
|
|
497
|
+
[x: string]: {};
|
|
498
|
+
};
|
|
499
|
+
name?: string;
|
|
500
|
+
type: string;
|
|
501
|
+
rendered: boolean;
|
|
502
|
+
};
|
|
503
|
+
};
|
|
504
|
+
dependencies: {
|
|
505
|
+
[x: string]: {
|
|
506
|
+
options: {
|
|
507
|
+
[x: string]: {};
|
|
508
|
+
};
|
|
509
|
+
type: string;
|
|
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: "dependency";
|
|
558
|
+
value: string;
|
|
559
|
+
} | {
|
|
560
|
+
type: "static";
|
|
561
|
+
value: string | number;
|
|
562
|
+
};
|
|
563
|
+
field: {
|
|
564
|
+
type: "dependency";
|
|
565
|
+
value: string;
|
|
566
|
+
} | {
|
|
567
|
+
type: "static";
|
|
568
|
+
value: string | number;
|
|
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
|
+
};
|
|
184
584
|
};
|
|
185
585
|
}[];
|
|
186
586
|
};
|
|
187
|
-
}>>;
|
|
587
|
+
}, any>>;
|
|
188
588
|
update: (params: {
|
|
189
589
|
id: string;
|
|
190
590
|
}, data: {
|
|
191
591
|
description?: string;
|
|
192
|
-
name?: string;
|
|
193
592
|
resourceGroupIds?: string[];
|
|
593
|
+
name?: string;
|
|
194
594
|
} & {
|
|
195
595
|
previewUrl?: string;
|
|
196
|
-
metadata?: {
|
|
596
|
+
metadata?: {
|
|
597
|
+
[x: string]: {};
|
|
598
|
+
};
|
|
197
599
|
template?: {
|
|
198
|
-
components: {
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
600
|
+
components: {
|
|
601
|
+
[x: string]: {
|
|
602
|
+
options: {
|
|
603
|
+
[x: string]: {};
|
|
604
|
+
};
|
|
605
|
+
name?: string;
|
|
606
|
+
type: string;
|
|
607
|
+
rendered: boolean;
|
|
608
|
+
};
|
|
609
|
+
};
|
|
610
|
+
dependencies: {
|
|
611
|
+
[x: string]: {
|
|
612
|
+
options: {
|
|
613
|
+
[x: string]: {};
|
|
614
|
+
};
|
|
615
|
+
type: string;
|
|
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: "dependency";
|
|
664
|
+
value: string;
|
|
665
|
+
} | {
|
|
666
|
+
type: "static";
|
|
667
|
+
value: string | number;
|
|
668
|
+
};
|
|
669
|
+
field: {
|
|
670
|
+
type: "dependency";
|
|
671
|
+
value: string;
|
|
672
|
+
} | {
|
|
673
|
+
type: "static";
|
|
674
|
+
value: string | number;
|
|
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
|
+
};
|
|
203
690
|
};
|
|
204
|
-
}, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
|
|
691
|
+
}, options?: AxiosRequestConfig<any>) => Promise<import("axios").AxiosResponse<{
|
|
205
692
|
status: "success";
|
|
206
693
|
program: string;
|
|
207
694
|
version: string;
|
|
@@ -210,14 +697,17 @@ export default class {
|
|
|
210
697
|
message: string;
|
|
211
698
|
data: {
|
|
212
699
|
description?: string;
|
|
213
|
-
|
|
700
|
+
resourceGroupIds: string[];
|
|
701
|
+
readonly id: string & {
|
|
214
702
|
readonly?: "__readonly";
|
|
215
703
|
};
|
|
216
704
|
readonly createdAt: Date & {
|
|
217
705
|
readonly?: "__readonly";
|
|
218
706
|
};
|
|
707
|
+
readonly updatedAt: Date & {
|
|
708
|
+
readonly?: "__readonly";
|
|
709
|
+
};
|
|
219
710
|
name: string;
|
|
220
|
-
resourceGroupIds: string[];
|
|
221
711
|
readonly status: (ContentStatus.DRAFT & {
|
|
222
712
|
readonly?: "__readonly";
|
|
223
713
|
}) | (ContentStatus.PUBLISHING & {
|
|
@@ -227,9 +717,6 @@ export default class {
|
|
|
227
717
|
}) | (ContentStatus.ERROR & {
|
|
228
718
|
readonly?: "__readonly";
|
|
229
719
|
});
|
|
230
|
-
readonly id: string & {
|
|
231
|
-
readonly?: "__readonly";
|
|
232
|
-
};
|
|
233
720
|
readonly companyId: string & {
|
|
234
721
|
readonly?: "__readonly";
|
|
235
722
|
};
|
|
@@ -242,20 +729,108 @@ export default class {
|
|
|
242
729
|
readonly?: "__readonly";
|
|
243
730
|
});
|
|
244
731
|
previewUrl?: string;
|
|
245
|
-
metadata?: {
|
|
732
|
+
metadata?: {
|
|
733
|
+
[x: string]: {};
|
|
734
|
+
};
|
|
246
735
|
template: {
|
|
247
|
-
components: {
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
736
|
+
components: {
|
|
737
|
+
[x: string]: {
|
|
738
|
+
options: {
|
|
739
|
+
[x: string]: {};
|
|
740
|
+
};
|
|
741
|
+
name?: string;
|
|
742
|
+
type: string;
|
|
743
|
+
rendered: boolean;
|
|
744
|
+
};
|
|
745
|
+
};
|
|
746
|
+
dependencies: {
|
|
747
|
+
[x: string]: {
|
|
748
|
+
options: {
|
|
749
|
+
[x: string]: {};
|
|
750
|
+
};
|
|
751
|
+
type: string;
|
|
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: "dependency";
|
|
800
|
+
value: string;
|
|
801
|
+
} | {
|
|
802
|
+
type: "static";
|
|
803
|
+
value: string | number;
|
|
804
|
+
};
|
|
805
|
+
field: {
|
|
806
|
+
type: "dependency";
|
|
807
|
+
value: string;
|
|
808
|
+
} | {
|
|
809
|
+
type: "static";
|
|
810
|
+
value: string | number;
|
|
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
|
+
};
|
|
252
826
|
};
|
|
253
827
|
}[];
|
|
254
828
|
};
|
|
255
|
-
}>>;
|
|
829
|
+
}, any>>;
|
|
256
830
|
delete: (params: {
|
|
257
831
|
id: string;
|
|
258
|
-
|
|
832
|
+
'dry-run'?: boolean;
|
|
833
|
+
}, options?: AxiosRequestConfig<any>) => Promise<import("axios").AxiosResponse<{
|
|
259
834
|
status: "success";
|
|
260
835
|
program: string;
|
|
261
836
|
version: string;
|
|
@@ -263,10 +838,10 @@ export default class {
|
|
|
263
838
|
code?: number;
|
|
264
839
|
message: string;
|
|
265
840
|
data: {};
|
|
266
|
-
}>>;
|
|
841
|
+
}, any>>;
|
|
267
842
|
publish: (params: {
|
|
268
843
|
id: string;
|
|
269
|
-
}, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
|
|
844
|
+
}, options?: AxiosRequestConfig<any>) => Promise<import("axios").AxiosResponse<{
|
|
270
845
|
status: "success";
|
|
271
846
|
program: string;
|
|
272
847
|
version: string;
|
|
@@ -275,14 +850,17 @@ export default class {
|
|
|
275
850
|
message: string;
|
|
276
851
|
data: {
|
|
277
852
|
description?: string;
|
|
278
|
-
|
|
853
|
+
resourceGroupIds: string[];
|
|
854
|
+
readonly id: string & {
|
|
279
855
|
readonly?: "__readonly";
|
|
280
856
|
};
|
|
281
857
|
readonly createdAt: Date & {
|
|
282
858
|
readonly?: "__readonly";
|
|
283
859
|
};
|
|
860
|
+
readonly updatedAt: Date & {
|
|
861
|
+
readonly?: "__readonly";
|
|
862
|
+
};
|
|
284
863
|
name: string;
|
|
285
|
-
resourceGroupIds: string[];
|
|
286
864
|
readonly status: (ContentStatus.DRAFT & {
|
|
287
865
|
readonly?: "__readonly";
|
|
288
866
|
}) | (ContentStatus.PUBLISHING & {
|
|
@@ -292,9 +870,6 @@ export default class {
|
|
|
292
870
|
}) | (ContentStatus.ERROR & {
|
|
293
871
|
readonly?: "__readonly";
|
|
294
872
|
});
|
|
295
|
-
readonly id: string & {
|
|
296
|
-
readonly?: "__readonly";
|
|
297
|
-
};
|
|
298
873
|
readonly companyId: string & {
|
|
299
874
|
readonly?: "__readonly";
|
|
300
875
|
};
|
|
@@ -307,25 +882,112 @@ export default class {
|
|
|
307
882
|
readonly?: "__readonly";
|
|
308
883
|
});
|
|
309
884
|
previewUrl?: string;
|
|
310
|
-
metadata?: {
|
|
885
|
+
metadata?: {
|
|
886
|
+
[x: string]: {};
|
|
887
|
+
};
|
|
311
888
|
template: {
|
|
312
|
-
components: {
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
889
|
+
components: {
|
|
890
|
+
[x: string]: {
|
|
891
|
+
options: {
|
|
892
|
+
[x: string]: {};
|
|
893
|
+
};
|
|
894
|
+
name?: string;
|
|
895
|
+
type: string;
|
|
896
|
+
rendered: boolean;
|
|
897
|
+
};
|
|
898
|
+
};
|
|
899
|
+
dependencies: {
|
|
900
|
+
[x: string]: {
|
|
901
|
+
options: {
|
|
902
|
+
[x: string]: {};
|
|
903
|
+
};
|
|
904
|
+
type: string;
|
|
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: "dependency";
|
|
953
|
+
value: string;
|
|
954
|
+
} | {
|
|
955
|
+
type: "static";
|
|
956
|
+
value: string | number;
|
|
957
|
+
};
|
|
958
|
+
field: {
|
|
959
|
+
type: "dependency";
|
|
960
|
+
value: string;
|
|
961
|
+
} | {
|
|
962
|
+
type: "static";
|
|
963
|
+
value: string | number;
|
|
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
|
+
};
|
|
317
979
|
};
|
|
318
980
|
}[];
|
|
319
981
|
};
|
|
320
|
-
}>>;
|
|
321
|
-
|
|
322
|
-
get Render(): {
|
|
323
|
-
Content: (params: {
|
|
982
|
+
}, any>>;
|
|
983
|
+
render: (params: {
|
|
324
984
|
id: string;
|
|
325
985
|
'x-rlvt-no-cache'?: boolean;
|
|
326
986
|
}, data: {
|
|
327
|
-
dependenciesData: {
|
|
328
|
-
|
|
987
|
+
dependenciesData: {
|
|
988
|
+
[key: string]: {};
|
|
989
|
+
};
|
|
990
|
+
}, options?: AxiosRequestConfig<any>) => Promise<import("axios").AxiosResponse<{
|
|
329
991
|
readable: boolean;
|
|
330
992
|
readonly readableEncoding: ("ascii" & {
|
|
331
993
|
readonly?: "__readonly";
|
|
@@ -372,6 +1034,6 @@ export default class {
|
|
|
372
1034
|
readonly?: "__readonly";
|
|
373
1035
|
});
|
|
374
1036
|
destroyed: boolean;
|
|
375
|
-
}>>;
|
|
1037
|
+
}, any>>;
|
|
376
1038
|
};
|
|
377
1039
|
}
|