@rlvt/contents-openapi-client 0.0.0-548e775 → 0.0.0-55240b1

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 CHANGED
@@ -1,21 +1,161 @@
1
1
  import { AxiosInstance, AxiosRequestConfig } from "axios";
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 };
2
+ import type { ContentStatus } 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;
10
14
  private updateContent;
11
15
  private deleteContent;
12
16
  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
+ };
13
152
  get Content(): {
14
153
  list: (params: {
154
+ ids?: string[];
15
155
  name?: string;
16
156
  resourceGroupIds?: string[];
17
157
  status?: ContentStatus[];
18
- sortBy?: "updatedAt" | "createdAt";
158
+ sortBy?: "createdAt" | "updatedAt";
19
159
  sortOrder?: "desc" | "asc";
20
160
  page?: number;
21
161
  perPage?: number;
@@ -29,20 +169,19 @@ export default class {
29
169
  datetime: string;
30
170
  code?: number;
31
171
  message: string;
32
- data: ({
33
- id?: any;
34
- _id?: any;
35
- __v?: any;
36
- } & {
172
+ data: {
37
173
  description?: string;
38
- readonly updatedAt: Date & {
174
+ resourceGroupIds: string[];
175
+ readonly id: string & {
39
176
  readonly?: "__readonly";
40
177
  };
41
178
  readonly createdAt: Date & {
42
179
  readonly?: "__readonly";
43
180
  };
181
+ readonly updatedAt: Date & {
182
+ readonly?: "__readonly";
183
+ };
44
184
  name: string;
45
- resourceGroupIds: string[];
46
185
  readonly status: (ContentStatus.DRAFT & {
47
186
  readonly?: "__readonly";
48
187
  }) | (ContentStatus.PUBLISHING & {
@@ -52,9 +191,6 @@ export default class {
52
191
  }) | (ContentStatus.ERROR & {
53
192
  readonly?: "__readonly";
54
193
  });
55
- readonly id: string & {
56
- readonly?: "__readonly";
57
- };
58
194
  readonly companyId: string & {
59
195
  readonly?: "__readonly";
60
196
  };
@@ -66,20 +202,109 @@ export default class {
66
202
  }) | (import("./definitions").ContentVersionState.INACTIVE & {
67
203
  readonly?: "__readonly";
68
204
  });
69
- metadata?: {};
205
+ previewUrl?: string;
206
+ metadata?: {
207
+ [x: string]: any;
208
+ };
70
209
  template: {
71
- components: {};
72
- dependencies: {};
73
- pages: {};
74
- conditionGroups: {};
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
+ 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
+ };
75
300
  };
76
301
  }[];
77
- } & {})[];
302
+ }[];
78
303
  }>>;
79
304
  create: (data: {
80
305
  description?: string;
81
- name: string;
82
306
  resourceGroupIds: string[];
307
+ name: string;
83
308
  }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
84
309
  status: "success";
85
310
  program: string;
@@ -89,14 +314,17 @@ export default class {
89
314
  message: string;
90
315
  data: {
91
316
  description?: string;
92
- readonly updatedAt: Date & {
317
+ resourceGroupIds: string[];
318
+ readonly id: string & {
93
319
  readonly?: "__readonly";
94
320
  };
95
321
  readonly createdAt: Date & {
96
322
  readonly?: "__readonly";
97
323
  };
324
+ readonly updatedAt: Date & {
325
+ readonly?: "__readonly";
326
+ };
98
327
  name: string;
99
- resourceGroupIds: string[];
100
328
  readonly status: (ContentStatus.DRAFT & {
101
329
  readonly?: "__readonly";
102
330
  }) | (ContentStatus.PUBLISHING & {
@@ -106,9 +334,6 @@ export default class {
106
334
  }) | (ContentStatus.ERROR & {
107
335
  readonly?: "__readonly";
108
336
  });
109
- readonly id: string & {
110
- readonly?: "__readonly";
111
- };
112
337
  readonly companyId: string & {
113
338
  readonly?: "__readonly";
114
339
  };
@@ -120,12 +345,101 @@ export default class {
120
345
  }) | (import("./definitions").ContentVersionState.INACTIVE & {
121
346
  readonly?: "__readonly";
122
347
  });
123
- metadata?: {};
348
+ previewUrl?: string;
349
+ metadata?: {
350
+ [x: string]: any;
351
+ };
124
352
  template: {
125
- components: {};
126
- dependencies: {};
127
- pages: {};
128
- conditionGroups: {};
353
+ components: {
354
+ [x: string]: {
355
+ name?: string;
356
+ type: string;
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
+ };
129
443
  };
130
444
  }[];
131
445
  };
@@ -141,14 +455,17 @@ export default class {
141
455
  message: string;
142
456
  data: {
143
457
  description?: string;
144
- readonly updatedAt: Date & {
458
+ resourceGroupIds: string[];
459
+ readonly id: string & {
145
460
  readonly?: "__readonly";
146
461
  };
147
462
  readonly createdAt: Date & {
148
463
  readonly?: "__readonly";
149
464
  };
465
+ readonly updatedAt: Date & {
466
+ readonly?: "__readonly";
467
+ };
150
468
  name: string;
151
- resourceGroupIds: string[];
152
469
  readonly status: (ContentStatus.DRAFT & {
153
470
  readonly?: "__readonly";
154
471
  }) | (ContentStatus.PUBLISHING & {
@@ -158,9 +475,6 @@ export default class {
158
475
  }) | (ContentStatus.ERROR & {
159
476
  readonly?: "__readonly";
160
477
  });
161
- readonly id: string & {
162
- readonly?: "__readonly";
163
- };
164
478
  readonly companyId: string & {
165
479
  readonly?: "__readonly";
166
480
  };
@@ -172,12 +486,101 @@ export default class {
172
486
  }) | (import("./definitions").ContentVersionState.INACTIVE & {
173
487
  readonly?: "__readonly";
174
488
  });
175
- metadata?: {};
489
+ previewUrl?: string;
490
+ metadata?: {
491
+ [x: string]: any;
492
+ };
176
493
  template: {
177
- components: {};
178
- dependencies: {};
179
- pages: {};
180
- conditionGroups: {};
494
+ components: {
495
+ [x: string]: {
496
+ name?: string;
497
+ type: string;
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
+ };
181
584
  };
182
585
  }[];
183
586
  };
@@ -186,15 +589,104 @@ export default class {
186
589
  id: string;
187
590
  }, data: {
188
591
  description?: string;
189
- name?: string;
190
592
  resourceGroupIds?: string[];
593
+ name?: string;
191
594
  } & {
192
- metadata?: {};
595
+ previewUrl?: string;
596
+ metadata?: {
597
+ [x: string]: any;
598
+ };
193
599
  template?: {
194
- components: {};
195
- dependencies: {};
196
- pages: {};
197
- conditionGroups: {};
600
+ components: {
601
+ [x: string]: {
602
+ name?: string;
603
+ type: string;
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
+ };
198
690
  };
199
691
  }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
200
692
  status: "success";
@@ -205,14 +697,17 @@ export default class {
205
697
  message: string;
206
698
  data: {
207
699
  description?: string;
208
- readonly updatedAt: Date & {
700
+ resourceGroupIds: string[];
701
+ readonly id: string & {
209
702
  readonly?: "__readonly";
210
703
  };
211
704
  readonly createdAt: Date & {
212
705
  readonly?: "__readonly";
213
706
  };
707
+ readonly updatedAt: Date & {
708
+ readonly?: "__readonly";
709
+ };
214
710
  name: string;
215
- resourceGroupIds: string[];
216
711
  readonly status: (ContentStatus.DRAFT & {
217
712
  readonly?: "__readonly";
218
713
  }) | (ContentStatus.PUBLISHING & {
@@ -222,9 +717,6 @@ export default class {
222
717
  }) | (ContentStatus.ERROR & {
223
718
  readonly?: "__readonly";
224
719
  });
225
- readonly id: string & {
226
- readonly?: "__readonly";
227
- };
228
720
  readonly companyId: string & {
229
721
  readonly?: "__readonly";
230
722
  };
@@ -236,18 +728,108 @@ export default class {
236
728
  }) | (import("./definitions").ContentVersionState.INACTIVE & {
237
729
  readonly?: "__readonly";
238
730
  });
239
- metadata?: {};
731
+ previewUrl?: string;
732
+ metadata?: {
733
+ [x: string]: any;
734
+ };
240
735
  template: {
241
- components: {};
242
- dependencies: {};
243
- pages: {};
244
- conditionGroups: {};
736
+ components: {
737
+ [x: string]: {
738
+ name?: string;
739
+ type: string;
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
+ };
245
826
  };
246
827
  }[];
247
828
  };
248
829
  }>>;
249
830
  delete: (params: {
250
831
  id: string;
832
+ 'dry-run'?: boolean;
251
833
  }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
252
834
  status: "success";
253
835
  program: string;
@@ -268,14 +850,17 @@ export default class {
268
850
  message: string;
269
851
  data: {
270
852
  description?: string;
271
- readonly updatedAt: Date & {
853
+ resourceGroupIds: string[];
854
+ readonly id: string & {
272
855
  readonly?: "__readonly";
273
856
  };
274
857
  readonly createdAt: Date & {
275
858
  readonly?: "__readonly";
276
859
  };
860
+ readonly updatedAt: Date & {
861
+ readonly?: "__readonly";
862
+ };
277
863
  name: string;
278
- resourceGroupIds: string[];
279
864
  readonly status: (ContentStatus.DRAFT & {
280
865
  readonly?: "__readonly";
281
866
  }) | (ContentStatus.PUBLISHING & {
@@ -285,9 +870,6 @@ export default class {
285
870
  }) | (ContentStatus.ERROR & {
286
871
  readonly?: "__readonly";
287
872
  });
288
- readonly id: string & {
289
- readonly?: "__readonly";
290
- };
291
873
  readonly companyId: string & {
292
874
  readonly?: "__readonly";
293
875
  };
@@ -299,15 +881,159 @@ export default class {
299
881
  }) | (import("./definitions").ContentVersionState.INACTIVE & {
300
882
  readonly?: "__readonly";
301
883
  });
302
- metadata?: {};
884
+ previewUrl?: string;
885
+ metadata?: {
886
+ [x: string]: any;
887
+ };
303
888
  template: {
304
- components: {};
305
- dependencies: {};
306
- pages: {};
307
- conditionGroups: {};
889
+ components: {
890
+ [x: string]: {
891
+ name?: string;
892
+ type: string;
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
+ };
308
979
  };
309
980
  }[];
310
981
  };
311
982
  }>>;
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
+ }>>;
312
1038
  };
313
1039
  }
package/build/api.js CHANGED
@@ -5,16 +5,33 @@ 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
12
15
  ? configOrInstance
13
16
  : axios_1.default.create(configOrInstance);
14
17
  }
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
+ }
15
32
  listContent(params, options) {
16
33
  return this.axios.get("/contents", Object.assign({}, {
17
- params: pick(params, "name", "resourceGroupIds", "status", "sortBy", "sortOrder", "page", "perPage"),
34
+ params: pick(params, "ids", "name", "resourceGroupIds", "status", "sortBy", "sortOrder", "page", "perPage"),
18
35
  }, options));
19
36
  }
20
37
  createContent(data, options) {
@@ -27,11 +44,26 @@ class default_1 {
27
44
  return this.axios.patch("/contents/{id}".replace(/{id}/, String(params["id"])), data, options);
28
45
  }
29
46
  deleteContent(params, options) {
30
- return this.axios.delete("/contents/{id}".replace(/{id}/, String(params["id"])), options);
47
+ return this.axios.delete("/contents/{id}".replace(/{id}/, String(params["id"])), Object.assign({}, {
48
+ params: pick(params, "dry-run"),
49
+ }, options));
31
50
  }
32
51
  publishContent(params, options) {
33
52
  return this.axios.post("/contents/{id}/publish".replace(/{id}/, String(params["id"])), {}, options);
34
53
  }
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
+ }
35
67
  get Content() {
36
68
  return {
37
69
  list: this.listContent.bind(this),
@@ -39,7 +71,8 @@ class default_1 {
39
71
  get: this.getContent.bind(this),
40
72
  update: this.updateContent.bind(this),
41
73
  delete: this.deleteContent.bind(this),
42
- publish: this.publishContent.bind(this)
74
+ publish: this.publishContent.bind(this),
75
+ render: this.renderContent.bind(this)
43
76
  };
44
77
  }
45
78
  }
@@ -52,4 +85,4 @@ function pick(obj, ...keys) {
52
85
  });
53
86
  return ret;
54
87
  }
55
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBpLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxvQkFBb0I7QUFDcEIsb0JBQW9COzs7OztBQUVwQixrREFBaUU7QUFlakU7SUFHSSxZQUFZLGdCQUFvRDtRQUM1RCxJQUFJLENBQUMsS0FBSyxHQUFHLGNBQWMsSUFBSSxnQkFBZ0I7WUFDM0MsQ0FBQyxDQUFDLGdCQUFnQjtZQUNsQixDQUFDLENBQUMsZUFBSyxDQUFDLE1BQU0sQ0FBQyxnQkFBZ0IsQ0FBQyxDQUFBO0lBQ3hDLENBQUM7SUFFTyxXQUFXLENBQUMsTUFRbkIsRUFBRSxPQUE0QjtRQUMzQixPQUFPLElBQUksQ0FBQyxLQUFLLENBQUMsR0FBRyxDQVlqQixXQUFXLEVBQ1gsTUFBTSxD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LENBQUMsSUFBSSxDQUFDO1lBQ3JDLEdBQUcsRUFBRSxJQUFJLENBQUMsVUFBVSxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUM7WUFDL0IsTUFBTSxFQUFFLElBQUksQ0FBQyxhQUFhLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQztZQUNyQyxNQUFNLEVBQUUsSUFBSSxDQUFDLGFBQWEsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDO1lBQ3JDLE9BQU8sRUFBRSxJQUFJLENBQUMsY0FBYyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUM7WUFDdkMsTUFBTSxFQUFFLElBQUksQ0FBQyxhQUFhLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQztTQUN4QyxDQUFDO0lBQ04sQ0FBQztDQUNKO0FBOU9ELDRCQThPQztBQUVELFNBQVMsSUFBSSxDQUF1QixHQUFNLEVBQUUsR0FBRyxJQUFTO0lBQ3BELE1BQU0sR0FBRyxHQUFlLEVBQWdCLENBQUM7SUFDekMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxHQUFHLENBQUMsRUFBRTtRQUNmLElBQUksR0FBRyxJQUFJLE1BQU0sQ0FBQyxJQUFJLENBQUMsR0FBRyxDQUFDLENBQUMsUUFBUSxDQUFDLEdBQWEsQ0FBQztZQUMvQyxHQUFHLENBQUMsR0FBRyxDQUFDLEdBQUcsR0FBRyxDQUFDLEdBQUcsQ0FBQyxDQUFDO0lBQzVCLENBQUMsQ0FBQyxDQUFDO0lBQ0gsT0FBTyxHQUFHLENBQUM7QUFDZixDQUFDIn0=
@@ -17,10 +17,39 @@ declare type PropsWithoutWriteonly<T> = {
17
17
  export declare type WithoutWriteonly<T> = T extends any ? T extends Primitive ? T : T extends Array<infer U> ? WithoutWriteonly<U>[] : {
18
18
  [key in keyof Pick<T, PropsWithoutWriteonly<T>>]: Pick<T, PropsWithoutWriteonly<T>>[key] extends any ? WithoutWriteonly<Pick<T, PropsWithoutWriteonly<T>>[key]> : never;
19
19
  } : never;
20
- export declare type 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;
20
+ export declare type SerializedContentResource = {
21
+ readonly id: (string) & readonlyP;
22
+ readonly companyId: (string) & readonlyP;
23
+ resourceGroupIds: string[];
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
+ };
24
53
  };
25
54
  export declare enum ContentVersionState {
26
55
  DRAFT = "draft",
@@ -28,19 +57,49 @@ export declare enum ContentVersionState {
28
57
  INACTIVE = "inactive"
29
58
  }
30
59
  export declare type AnyValue = any | null;
31
- export declare type PageComponent = {
60
+ export declare type _id_string_x_number_y_number_width_number_height_number_rotation_number__ = {
32
61
  id: string;
33
62
  x: number;
34
63
  y: number;
35
- z: number;
36
64
  width: number;
37
65
  height: number;
38
66
  rotation: number;
39
67
  };
40
- export declare type Page = {
68
+ export declare type _type_conditionGroup__ = {
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__ = {
41
98
  width: number;
42
99
  height: number;
43
- components: PageComponent[];
100
+ components: _id_string_x_number_y_number_width_number_height_number_rotation_number__[];
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__)[];
44
103
  };
45
104
  export declare type Condition = {
46
105
  id: string;
@@ -53,7 +112,7 @@ export declare type Condition = {
53
112
  type: "dependency";
54
113
  value: string;
55
114
  };
56
- operator: ">=" | ">" | "<" | "<=" | "==" | "=" | "!=" | "!==";
115
+ operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne";
57
116
  value: {
58
117
  type: "static";
59
118
  value: string | number;
@@ -62,29 +121,54 @@ export declare type Condition = {
62
121
  value: string;
63
122
  };
64
123
  }[];
65
- components: string[];
66
124
  };
67
125
  export declare type ElseCondition = {
68
- id: "else";
69
- components: string[];
126
+ id: string;
127
+ isElse: true;
70
128
  };
71
129
  export declare type ConditionGroup = {
72
- parent?: {
73
- id: string;
74
- conditionId: string;
75
- };
76
- name: string;
77
- conditions: (Condition | ElseCondition)[];
130
+ name?: string;
131
+ conditions: (Condition | Condition | ElseCondition)[];
132
+ };
133
+ export declare type ComponentGroup = {
134
+ name?: string;
135
+ rendered: boolean;
78
136
  };
79
137
  export declare type BaseTemplate = {
80
- components: {};
81
- dependencies: {};
82
- pages: {};
83
- conditionGroups: {};
138
+ components: {
139
+ [key: string]: {
140
+ name?: string;
141
+ type: string;
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
+ };
84
165
  };
85
166
  export declare type SerializedContentVersions = {
86
167
  readonly state: (ContentVersionState) & readonlyP;
87
- metadata?: {};
168
+ previewUrl?: string;
169
+ metadata?: {
170
+ [key: string]: AnyValue;
171
+ };
88
172
  template: BaseTemplate;
89
173
  };
90
174
  export declare type ContentVersions = SerializedContentVersions;
@@ -106,7 +190,6 @@ export declare type SerializedContent = {
106
190
  readonly status: (ContentStatus) & readonlyP;
107
191
  };
108
192
  export declare type Contents = SerializedContent;
109
- export declare type IObjectWithTypegooseFunction = {};
110
193
  export declare type Pick_SerializedContent_resourceGroupIds_or_name_or_description_ = {
111
194
  resourceGroupIds: string[];
112
195
  name: string;
@@ -125,7 +208,20 @@ export declare type Partial_SerializedContent_ = {
125
208
  };
126
209
  export declare type Partial_SerializedContentVersions_ = {
127
210
  readonly state?: (ContentVersionState) & readonlyP;
128
- metadata?: {};
211
+ previewUrl?: string;
212
+ metadata?: {
213
+ [key: string]: AnyValue;
214
+ };
129
215
  template?: BaseTemplate;
130
216
  };
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
+ };
131
227
  export {};
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZG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0FBQTtJQUN2QixnQ0FBZSxDQUFBO0FBQ25CLENBQUMsRUFMVyxhQUFhLEdBQWIscUJBQWEsS0FBYixxQkFBYSxRQUt4QiJ9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rlvt/contents-openapi-client",
3
- "version": "0.0.0-548e775",
3
+ "version": "0.0.0-55240b1",
4
4
  "description": "Openapi client for reelevant service",
5
5
  "main": "build/index.js",
6
6
  "repository": "https://github.com/reelevant-tech/openapi-clients",