@rlvt/contents-openapi-client 1.0.156 → 1.0.159

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.
Files changed (2) hide show
  1. package/build/api.d.ts +362 -193
  2. package/package.json +1 -1
package/build/api.d.ts CHANGED
@@ -18,28 +18,28 @@ export default class {
18
18
  private renderContent;
19
19
  get ContentResource(): {
20
20
  listFonts: (params: {
21
- ids?: string[];
22
- resourceGroupIds?: string[];
23
- }, options?: AxiosRequestConfig<any>) => Promise<import("axios").AxiosResponse<{
21
+ ids?: string[] | undefined;
22
+ resourceGroupIds?: string[] | undefined;
23
+ }, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<{
24
24
  status: "success";
25
25
  program: string;
26
26
  version: string;
27
27
  datetime: string;
28
- code?: number;
28
+ code?: number | undefined;
29
29
  message: string;
30
30
  data: {
31
31
  readonly id: string & {
32
- readonly?: "__readonly";
32
+ readonly?: "__readonly" | undefined;
33
33
  };
34
34
  readonly companyId: string & {
35
- readonly?: "__readonly";
35
+ readonly?: "__readonly" | undefined;
36
36
  };
37
37
  resourceGroupIds: string[];
38
38
  readonly createdAt: Date & {
39
- readonly?: "__readonly";
39
+ readonly?: "__readonly" | undefined;
40
40
  };
41
41
  readonly updatedAt: Date & {
42
- readonly?: "__readonly";
42
+ readonly?: "__readonly" | undefined;
43
43
  };
44
44
  type: "font";
45
45
  family: string;
@@ -54,26 +54,26 @@ export default class {
54
54
  files: {
55
55
  [x: string]: string;
56
56
  };
57
- }, options?: AxiosRequestConfig<any>) => Promise<import("axios").AxiosResponse<{
57
+ }, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<{
58
58
  status: "success";
59
59
  program: string;
60
60
  version: string;
61
61
  datetime: string;
62
- code?: number;
62
+ code?: number | undefined;
63
63
  message: string;
64
64
  data: {
65
65
  readonly id: string & {
66
- readonly?: "__readonly";
66
+ readonly?: "__readonly" | undefined;
67
67
  };
68
68
  readonly companyId: string & {
69
- readonly?: "__readonly";
69
+ readonly?: "__readonly" | undefined;
70
70
  };
71
71
  resourceGroupIds: string[];
72
72
  readonly createdAt: Date & {
73
- readonly?: "__readonly";
73
+ readonly?: "__readonly" | undefined;
74
74
  };
75
75
  readonly updatedAt: Date & {
76
- readonly?: "__readonly";
76
+ readonly?: "__readonly" | undefined;
77
77
  };
78
78
  type: "font";
79
79
  family: string;
@@ -84,26 +84,26 @@ export default class {
84
84
  }, any>>;
85
85
  getFont: (params: {
86
86
  id: string;
87
- }, options?: AxiosRequestConfig<any>) => Promise<import("axios").AxiosResponse<{
87
+ }, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<{
88
88
  status: "success";
89
89
  program: string;
90
90
  version: string;
91
91
  datetime: string;
92
- code?: number;
92
+ code?: number | undefined;
93
93
  message: string;
94
94
  data: {
95
95
  readonly id: string & {
96
- readonly?: "__readonly";
96
+ readonly?: "__readonly" | undefined;
97
97
  };
98
98
  readonly companyId: string & {
99
- readonly?: "__readonly";
99
+ readonly?: "__readonly" | undefined;
100
100
  };
101
101
  resourceGroupIds: string[];
102
102
  readonly createdAt: Date & {
103
- readonly?: "__readonly";
103
+ readonly?: "__readonly" | undefined;
104
104
  };
105
105
  readonly updatedAt: Date & {
106
- readonly?: "__readonly";
106
+ readonly?: "__readonly" | undefined;
107
107
  };
108
108
  type: "font";
109
109
  family: string;
@@ -115,32 +115,44 @@ export default class {
115
115
  updateFont: (params: {
116
116
  id: string;
117
117
  }, data: {
118
- resourceGroupIds?: string[];
119
- type?: "font";
120
- family?: string;
118
+ readonly id?: (string & {
119
+ readonly?: "__readonly" | undefined;
120
+ }) | undefined;
121
+ readonly companyId?: (string & {
122
+ readonly?: "__readonly" | undefined;
123
+ }) | undefined;
124
+ resourceGroupIds?: string[] | undefined;
125
+ readonly createdAt?: (Date & {
126
+ readonly?: "__readonly" | undefined;
127
+ }) | undefined;
128
+ readonly updatedAt?: (Date & {
129
+ readonly?: "__readonly" | undefined;
130
+ }) | undefined;
131
+ type?: "font" | undefined;
132
+ family?: string | undefined;
121
133
  files?: {
122
134
  [x: string]: string;
123
- };
124
- }, options?: AxiosRequestConfig<any>) => Promise<import("axios").AxiosResponse<{
135
+ } | undefined;
136
+ }, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<{
125
137
  status: "success";
126
138
  program: string;
127
139
  version: string;
128
140
  datetime: string;
129
- code?: number;
141
+ code?: number | undefined;
130
142
  message: string;
131
143
  data: {
132
144
  readonly id: string & {
133
- readonly?: "__readonly";
145
+ readonly?: "__readonly" | undefined;
134
146
  };
135
147
  readonly companyId: string & {
136
- readonly?: "__readonly";
148
+ readonly?: "__readonly" | undefined;
137
149
  };
138
150
  resourceGroupIds: string[];
139
151
  readonly createdAt: Date & {
140
- readonly?: "__readonly";
152
+ readonly?: "__readonly" | undefined;
141
153
  };
142
154
  readonly updatedAt: Date & {
143
- readonly?: "__readonly";
155
+ readonly?: "__readonly" | undefined;
144
156
  };
145
157
  type: "font";
146
158
  family: string;
@@ -152,15 +164,15 @@ export default class {
152
164
  };
153
165
  get Content(): {
154
166
  list: (params: {
155
- ids?: string[];
156
- name?: string;
157
- resourceGroupIds?: string[];
158
- status?: ContentStatus[];
159
- sortBy?: "createdAt" | "updatedAt";
160
- sortOrder?: "desc" | "asc";
161
- page?: number;
162
- perPage?: number;
163
- }, options?: AxiosRequestConfig<any>) => Promise<import("axios").AxiosResponse<{
167
+ ids?: string[] | undefined;
168
+ name?: string | undefined;
169
+ resourceGroupIds?: string[] | undefined;
170
+ status?: ContentStatus[] | undefined;
171
+ sortBy?: "createdAt" | "updatedAt" | undefined;
172
+ sortOrder?: "desc" | "asc" | undefined;
173
+ page?: number | undefined;
174
+ perPage?: number | undefined;
175
+ }, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<{
164
176
  paginationCount: number;
165
177
  paginationPage: number;
166
178
  paginationLimit: number;
@@ -168,44 +180,44 @@ export default class {
168
180
  program: string;
169
181
  version: string;
170
182
  datetime: string;
171
- code?: number;
183
+ code?: number | undefined;
172
184
  message: string;
173
185
  data: {
174
- description?: string;
186
+ description?: string | undefined;
175
187
  readonly id: string & {
176
- readonly?: "__readonly";
188
+ readonly?: "__readonly" | undefined;
177
189
  };
178
190
  readonly companyId: string & {
179
- readonly?: "__readonly";
191
+ readonly?: "__readonly" | undefined;
180
192
  };
181
193
  resourceGroupIds: string[];
182
194
  readonly createdAt: Date & {
183
- readonly?: "__readonly";
195
+ readonly?: "__readonly" | undefined;
184
196
  };
185
197
  readonly updatedAt: Date & {
186
- readonly?: "__readonly";
198
+ readonly?: "__readonly" | undefined;
187
199
  };
188
200
  readonly versions: {
189
201
  readonly id: string & {
190
- readonly?: "__readonly";
202
+ readonly?: "__readonly" | undefined;
191
203
  };
192
204
  readonly createdAt: Date & {
193
- readonly?: "__readonly";
205
+ readonly?: "__readonly" | undefined;
194
206
  };
195
207
  readonly updatedAt: Date & {
196
- readonly?: "__readonly";
208
+ readonly?: "__readonly" | undefined;
197
209
  };
198
210
  readonly state: (ContentVersionState.DRAFT & {
199
- readonly?: "__readonly";
211
+ readonly?: "__readonly" | undefined;
200
212
  }) | (ContentVersionState.LIVE & {
201
- readonly?: "__readonly";
213
+ readonly?: "__readonly" | undefined;
202
214
  }) | (ContentVersionState.INACTIVE & {
203
- readonly?: "__readonly";
215
+ readonly?: "__readonly" | undefined;
204
216
  });
205
- previewUrl?: string;
217
+ previewUrl?: string | undefined;
206
218
  metadata?: {
207
219
  [x: string]: unknown;
208
- };
220
+ } | undefined;
209
221
  template: {
210
222
  components: {
211
223
  [x: string]: {
@@ -213,7 +225,7 @@ export default class {
213
225
  options: {
214
226
  [x: string]: unknown;
215
227
  };
216
- name?: string;
228
+ name?: string | undefined;
217
229
  rendered: boolean;
218
230
  };
219
231
  };
@@ -261,12 +273,12 @@ export default class {
261
273
  } | {
262
274
  type: "dependency";
263
275
  value: string;
264
- })[];
276
+ })[] | undefined;
265
277
  };
266
278
  };
267
279
  conditionGroups: {
268
280
  [x: string]: {
269
- name?: string;
281
+ name?: string | undefined;
270
282
  conditions: ({
271
283
  id: string;
272
284
  type: "and" | "or";
@@ -315,7 +327,7 @@ export default class {
315
327
  };
316
328
  componentGroups: {
317
329
  [x: string]: {
318
- name?: string;
330
+ name?: string | undefined;
319
331
  rendered: boolean;
320
332
  };
321
333
  };
@@ -323,63 +335,63 @@ export default class {
323
335
  }[];
324
336
  name: string;
325
337
  readonly status: (ContentStatus.DRAFT & {
326
- readonly?: "__readonly";
338
+ readonly?: "__readonly" | undefined;
327
339
  }) | (ContentStatus.PUBLISHING & {
328
- readonly?: "__readonly";
340
+ readonly?: "__readonly" | undefined;
329
341
  }) | (ContentStatus.PUBLISHED & {
330
- readonly?: "__readonly";
342
+ readonly?: "__readonly" | undefined;
331
343
  }) | (ContentStatus.ERROR & {
332
- readonly?: "__readonly";
344
+ readonly?: "__readonly" | undefined;
333
345
  });
334
346
  }[];
335
347
  }, any>>;
336
348
  create: (params: Record<string, never>, data: {
337
- description?: string;
349
+ description?: string | undefined;
338
350
  resourceGroupIds: string[];
339
351
  name: string;
340
- }, options?: AxiosRequestConfig<any>) => Promise<import("axios").AxiosResponse<{
352
+ }, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<{
341
353
  status: "success";
342
354
  program: string;
343
355
  version: string;
344
356
  datetime: string;
345
- code?: number;
357
+ code?: number | undefined;
346
358
  message: string;
347
359
  data: {
348
- description?: string;
360
+ description?: string | undefined;
349
361
  readonly id: string & {
350
- readonly?: "__readonly";
362
+ readonly?: "__readonly" | undefined;
351
363
  };
352
364
  readonly companyId: string & {
353
- readonly?: "__readonly";
365
+ readonly?: "__readonly" | undefined;
354
366
  };
355
367
  resourceGroupIds: string[];
356
368
  readonly createdAt: Date & {
357
- readonly?: "__readonly";
369
+ readonly?: "__readonly" | undefined;
358
370
  };
359
371
  readonly updatedAt: Date & {
360
- readonly?: "__readonly";
372
+ readonly?: "__readonly" | undefined;
361
373
  };
362
374
  readonly versions: {
363
375
  readonly id: string & {
364
- readonly?: "__readonly";
376
+ readonly?: "__readonly" | undefined;
365
377
  };
366
378
  readonly createdAt: Date & {
367
- readonly?: "__readonly";
379
+ readonly?: "__readonly" | undefined;
368
380
  };
369
381
  readonly updatedAt: Date & {
370
- readonly?: "__readonly";
382
+ readonly?: "__readonly" | undefined;
371
383
  };
372
384
  readonly state: (ContentVersionState.DRAFT & {
373
- readonly?: "__readonly";
385
+ readonly?: "__readonly" | undefined;
374
386
  }) | (ContentVersionState.LIVE & {
375
- readonly?: "__readonly";
387
+ readonly?: "__readonly" | undefined;
376
388
  }) | (ContentVersionState.INACTIVE & {
377
- readonly?: "__readonly";
389
+ readonly?: "__readonly" | undefined;
378
390
  });
379
- previewUrl?: string;
391
+ previewUrl?: string | undefined;
380
392
  metadata?: {
381
393
  [x: string]: unknown;
382
- };
394
+ } | undefined;
383
395
  template: {
384
396
  components: {
385
397
  [x: string]: {
@@ -387,7 +399,7 @@ export default class {
387
399
  options: {
388
400
  [x: string]: unknown;
389
401
  };
390
- name?: string;
402
+ name?: string | undefined;
391
403
  rendered: boolean;
392
404
  };
393
405
  };
@@ -435,12 +447,12 @@ export default class {
435
447
  } | {
436
448
  type: "dependency";
437
449
  value: string;
438
- })[];
450
+ })[] | undefined;
439
451
  };
440
452
  };
441
453
  conditionGroups: {
442
454
  [x: string]: {
443
- name?: string;
455
+ name?: string | undefined;
444
456
  conditions: ({
445
457
  id: string;
446
458
  type: "and" | "or";
@@ -489,7 +501,7 @@ export default class {
489
501
  };
490
502
  componentGroups: {
491
503
  [x: string]: {
492
- name?: string;
504
+ name?: string | undefined;
493
505
  rendered: boolean;
494
506
  };
495
507
  };
@@ -497,62 +509,62 @@ export default class {
497
509
  }[];
498
510
  name: string;
499
511
  readonly status: (ContentStatus.DRAFT & {
500
- readonly?: "__readonly";
512
+ readonly?: "__readonly" | undefined;
501
513
  }) | (ContentStatus.PUBLISHING & {
502
- readonly?: "__readonly";
514
+ readonly?: "__readonly" | undefined;
503
515
  }) | (ContentStatus.PUBLISHED & {
504
- readonly?: "__readonly";
516
+ readonly?: "__readonly" | undefined;
505
517
  }) | (ContentStatus.ERROR & {
506
- readonly?: "__readonly";
518
+ readonly?: "__readonly" | undefined;
507
519
  });
508
520
  };
509
521
  }, any>>;
510
522
  get: (params: {
511
523
  id: string;
512
- versions?: ContentVersionState[];
513
- }, options?: AxiosRequestConfig<any>) => Promise<import("axios").AxiosResponse<{
524
+ versions?: ContentVersionState[] | undefined;
525
+ }, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<{
514
526
  status: "success";
515
527
  program: string;
516
528
  version: string;
517
529
  datetime: string;
518
- code?: number;
530
+ code?: number | undefined;
519
531
  message: string;
520
532
  data: {
521
- description?: string;
533
+ description?: string | undefined;
522
534
  readonly id: string & {
523
- readonly?: "__readonly";
535
+ readonly?: "__readonly" | undefined;
524
536
  };
525
537
  readonly companyId: string & {
526
- readonly?: "__readonly";
538
+ readonly?: "__readonly" | undefined;
527
539
  };
528
540
  resourceGroupIds: string[];
529
541
  readonly createdAt: Date & {
530
- readonly?: "__readonly";
542
+ readonly?: "__readonly" | undefined;
531
543
  };
532
544
  readonly updatedAt: Date & {
533
- readonly?: "__readonly";
545
+ readonly?: "__readonly" | undefined;
534
546
  };
535
547
  readonly versions: {
536
548
  readonly id: string & {
537
- readonly?: "__readonly";
549
+ readonly?: "__readonly" | undefined;
538
550
  };
539
551
  readonly createdAt: Date & {
540
- readonly?: "__readonly";
552
+ readonly?: "__readonly" | undefined;
541
553
  };
542
554
  readonly updatedAt: Date & {
543
- readonly?: "__readonly";
555
+ readonly?: "__readonly" | undefined;
544
556
  };
545
557
  readonly state: (ContentVersionState.DRAFT & {
546
- readonly?: "__readonly";
558
+ readonly?: "__readonly" | undefined;
547
559
  }) | (ContentVersionState.LIVE & {
548
- readonly?: "__readonly";
560
+ readonly?: "__readonly" | undefined;
549
561
  }) | (ContentVersionState.INACTIVE & {
550
- readonly?: "__readonly";
562
+ readonly?: "__readonly" | undefined;
551
563
  });
552
- previewUrl?: string;
564
+ previewUrl?: string | undefined;
553
565
  metadata?: {
554
566
  [x: string]: unknown;
555
- };
567
+ } | undefined;
556
568
  template: {
557
569
  components: {
558
570
  [x: string]: {
@@ -560,7 +572,7 @@ export default class {
560
572
  options: {
561
573
  [x: string]: unknown;
562
574
  };
563
- name?: string;
575
+ name?: string | undefined;
564
576
  rendered: boolean;
565
577
  };
566
578
  };
@@ -608,12 +620,12 @@ export default class {
608
620
  } | {
609
621
  type: "dependency";
610
622
  value: string;
611
- })[];
623
+ })[] | undefined;
612
624
  };
613
625
  };
614
626
  conditionGroups: {
615
627
  [x: string]: {
616
- name?: string;
628
+ name?: string | undefined;
617
629
  conditions: ({
618
630
  id: string;
619
631
  type: "and" | "or";
@@ -662,7 +674,7 @@ export default class {
662
674
  };
663
675
  componentGroups: {
664
676
  [x: string]: {
665
- name?: string;
677
+ name?: string | undefined;
666
678
  rendered: boolean;
667
679
  };
668
680
  };
@@ -670,27 +682,184 @@ export default class {
670
682
  }[];
671
683
  name: string;
672
684
  readonly status: (ContentStatus.DRAFT & {
673
- readonly?: "__readonly";
685
+ readonly?: "__readonly" | undefined;
674
686
  }) | (ContentStatus.PUBLISHING & {
675
- readonly?: "__readonly";
687
+ readonly?: "__readonly" | undefined;
676
688
  }) | (ContentStatus.PUBLISHED & {
677
- readonly?: "__readonly";
689
+ readonly?: "__readonly" | undefined;
678
690
  }) | (ContentStatus.ERROR & {
679
- readonly?: "__readonly";
691
+ readonly?: "__readonly" | undefined;
680
692
  });
681
693
  };
682
694
  }, any>>;
683
695
  update: (params: {
684
696
  id: string;
685
697
  }, data: {
686
- description?: string;
687
- resourceGroupIds?: string[];
688
- name?: string;
698
+ description?: string | undefined;
699
+ readonly id?: (string & {
700
+ readonly?: "__readonly" | undefined;
701
+ }) | undefined;
702
+ readonly companyId?: (string & {
703
+ readonly?: "__readonly" | undefined;
704
+ }) | undefined;
705
+ resourceGroupIds?: string[] | undefined;
706
+ readonly createdAt?: (Date & {
707
+ readonly?: "__readonly" | undefined;
708
+ }) | undefined;
709
+ readonly updatedAt?: (Date & {
710
+ readonly?: "__readonly" | undefined;
711
+ }) | undefined;
712
+ readonly versions?: {
713
+ previewUrl?: string | undefined;
714
+ metadata?: {
715
+ [x: string]: unknown;
716
+ } | undefined;
717
+ template: {
718
+ components: {
719
+ [x: string]: {
720
+ type: string;
721
+ options: {
722
+ [x: string]: unknown;
723
+ };
724
+ name?: string | undefined;
725
+ rendered: boolean;
726
+ };
727
+ };
728
+ dependencies: {
729
+ [x: string]: {
730
+ type: string;
731
+ options: {
732
+ [x: string]: unknown;
733
+ };
734
+ };
735
+ };
736
+ pages: {
737
+ [x: string]: {
738
+ components: {
739
+ id: string;
740
+ width: number;
741
+ height: number;
742
+ x: number;
743
+ y: number;
744
+ skewX: number;
745
+ skewY: number;
746
+ rotation: number;
747
+ }[];
748
+ width: number;
749
+ height: number;
750
+ orderTree: {
751
+ root: string[];
752
+ elements: {
753
+ [x: string]: {
754
+ type: "conditionGroup";
755
+ } | {
756
+ type: "condition";
757
+ children: string[];
758
+ } | {
759
+ type: "component";
760
+ } | {
761
+ type: "componentGroup";
762
+ children: string[];
763
+ };
764
+ };
765
+ };
766
+ url?: ({
767
+ type: "static";
768
+ value: string;
769
+ } | {
770
+ type: "dependency";
771
+ value: string;
772
+ })[] | undefined;
773
+ };
774
+ };
775
+ conditionGroups: {
776
+ [x: string]: {
777
+ name?: string | undefined;
778
+ conditions: ({
779
+ id: string;
780
+ type: "and" | "or";
781
+ rules: {
782
+ value: {
783
+ type: "static";
784
+ value: string | number;
785
+ } | {
786
+ type: "dependency";
787
+ value: string;
788
+ };
789
+ field: {
790
+ type: "static";
791
+ value: string | number;
792
+ } | {
793
+ type: "dependency";
794
+ value: string;
795
+ };
796
+ operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne" | "$contains" | "$notcontains" | "$empty" | "$nempty";
797
+ }[];
798
+ } | {
799
+ id: string;
800
+ type: "and" | "or";
801
+ rules: {
802
+ value: {
803
+ type: "static";
804
+ value: string | number;
805
+ } | {
806
+ type: "dependency";
807
+ value: string;
808
+ };
809
+ field: {
810
+ type: "static";
811
+ value: string | number;
812
+ } | {
813
+ type: "dependency";
814
+ value: string;
815
+ };
816
+ operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne" | "$contains" | "$notcontains" | "$empty" | "$nempty";
817
+ }[];
818
+ } | {
819
+ id: string;
820
+ isElse: true;
821
+ })[];
822
+ };
823
+ };
824
+ componentGroups: {
825
+ [x: string]: {
826
+ name?: string | undefined;
827
+ rendered: boolean;
828
+ };
829
+ };
830
+ };
831
+ }[] | undefined;
832
+ name?: string | undefined;
833
+ readonly status?: (ContentStatus.DRAFT & {
834
+ readonly?: "__readonly" | undefined;
835
+ }) | (ContentStatus.PUBLISHING & {
836
+ readonly?: "__readonly" | undefined;
837
+ }) | (ContentStatus.PUBLISHED & {
838
+ readonly?: "__readonly" | undefined;
839
+ }) | (ContentStatus.ERROR & {
840
+ readonly?: "__readonly" | undefined;
841
+ }) | undefined;
689
842
  } & {
690
- previewUrl?: string;
843
+ readonly id?: (string & {
844
+ readonly?: "__readonly" | undefined;
845
+ }) | undefined;
846
+ readonly createdAt?: (Date & {
847
+ readonly?: "__readonly" | undefined;
848
+ }) | undefined;
849
+ readonly updatedAt?: (Date & {
850
+ readonly?: "__readonly" | undefined;
851
+ }) | undefined;
852
+ readonly state?: (ContentVersionState.DRAFT & {
853
+ readonly?: "__readonly" | undefined;
854
+ }) | (ContentVersionState.LIVE & {
855
+ readonly?: "__readonly" | undefined;
856
+ }) | (ContentVersionState.INACTIVE & {
857
+ readonly?: "__readonly" | undefined;
858
+ }) | undefined;
859
+ previewUrl?: string | undefined;
691
860
  metadata?: {
692
861
  [x: string]: unknown;
693
- };
862
+ } | undefined;
694
863
  template?: {
695
864
  components: {
696
865
  [x: string]: {
@@ -698,7 +867,7 @@ export default class {
698
867
  options: {
699
868
  [x: string]: unknown;
700
869
  };
701
- name?: string;
870
+ name?: string | undefined;
702
871
  rendered: boolean;
703
872
  };
704
873
  };
@@ -746,12 +915,12 @@ export default class {
746
915
  } | {
747
916
  type: "dependency";
748
917
  value: string;
749
- })[];
918
+ })[] | undefined;
750
919
  };
751
920
  };
752
921
  conditionGroups: {
753
922
  [x: string]: {
754
- name?: string;
923
+ name?: string | undefined;
755
924
  conditions: ({
756
925
  id: string;
757
926
  type: "and" | "or";
@@ -800,54 +969,54 @@ export default class {
800
969
  };
801
970
  componentGroups: {
802
971
  [x: string]: {
803
- name?: string;
972
+ name?: string | undefined;
804
973
  rendered: boolean;
805
974
  };
806
975
  };
807
- };
808
- }, options?: AxiosRequestConfig<any>) => Promise<import("axios").AxiosResponse<{
976
+ } | undefined;
977
+ }, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<{
809
978
  status: "success";
810
979
  program: string;
811
980
  version: string;
812
981
  datetime: string;
813
- code?: number;
982
+ code?: number | undefined;
814
983
  message: string;
815
984
  data: {
816
- description?: string;
985
+ description?: string | undefined;
817
986
  readonly id: string & {
818
- readonly?: "__readonly";
987
+ readonly?: "__readonly" | undefined;
819
988
  };
820
989
  readonly companyId: string & {
821
- readonly?: "__readonly";
990
+ readonly?: "__readonly" | undefined;
822
991
  };
823
992
  resourceGroupIds: string[];
824
993
  readonly createdAt: Date & {
825
- readonly?: "__readonly";
994
+ readonly?: "__readonly" | undefined;
826
995
  };
827
996
  readonly updatedAt: Date & {
828
- readonly?: "__readonly";
997
+ readonly?: "__readonly" | undefined;
829
998
  };
830
999
  readonly versions: {
831
1000
  readonly id: string & {
832
- readonly?: "__readonly";
1001
+ readonly?: "__readonly" | undefined;
833
1002
  };
834
1003
  readonly createdAt: Date & {
835
- readonly?: "__readonly";
1004
+ readonly?: "__readonly" | undefined;
836
1005
  };
837
1006
  readonly updatedAt: Date & {
838
- readonly?: "__readonly";
1007
+ readonly?: "__readonly" | undefined;
839
1008
  };
840
1009
  readonly state: (ContentVersionState.DRAFT & {
841
- readonly?: "__readonly";
1010
+ readonly?: "__readonly" | undefined;
842
1011
  }) | (ContentVersionState.LIVE & {
843
- readonly?: "__readonly";
1012
+ readonly?: "__readonly" | undefined;
844
1013
  }) | (ContentVersionState.INACTIVE & {
845
- readonly?: "__readonly";
1014
+ readonly?: "__readonly" | undefined;
846
1015
  });
847
- previewUrl?: string;
1016
+ previewUrl?: string | undefined;
848
1017
  metadata?: {
849
1018
  [x: string]: unknown;
850
- };
1019
+ } | undefined;
851
1020
  template: {
852
1021
  components: {
853
1022
  [x: string]: {
@@ -855,7 +1024,7 @@ export default class {
855
1024
  options: {
856
1025
  [x: string]: unknown;
857
1026
  };
858
- name?: string;
1027
+ name?: string | undefined;
859
1028
  rendered: boolean;
860
1029
  };
861
1030
  };
@@ -903,12 +1072,12 @@ export default class {
903
1072
  } | {
904
1073
  type: "dependency";
905
1074
  value: string;
906
- })[];
1075
+ })[] | undefined;
907
1076
  };
908
1077
  };
909
1078
  conditionGroups: {
910
1079
  [x: string]: {
911
- name?: string;
1080
+ name?: string | undefined;
912
1081
  conditions: ({
913
1082
  id: string;
914
1083
  type: "and" | "or";
@@ -957,7 +1126,7 @@ export default class {
957
1126
  };
958
1127
  componentGroups: {
959
1128
  [x: string]: {
960
- name?: string;
1129
+ name?: string | undefined;
961
1130
  rendered: boolean;
962
1131
  };
963
1132
  };
@@ -965,73 +1134,73 @@ export default class {
965
1134
  }[];
966
1135
  name: string;
967
1136
  readonly status: (ContentStatus.DRAFT & {
968
- readonly?: "__readonly";
1137
+ readonly?: "__readonly" | undefined;
969
1138
  }) | (ContentStatus.PUBLISHING & {
970
- readonly?: "__readonly";
1139
+ readonly?: "__readonly" | undefined;
971
1140
  }) | (ContentStatus.PUBLISHED & {
972
- readonly?: "__readonly";
1141
+ readonly?: "__readonly" | undefined;
973
1142
  }) | (ContentStatus.ERROR & {
974
- readonly?: "__readonly";
1143
+ readonly?: "__readonly" | undefined;
975
1144
  });
976
1145
  };
977
1146
  }, any>>;
978
1147
  delete: (params: {
979
1148
  id: string;
980
- 'dry-run'?: boolean;
981
- }, options?: AxiosRequestConfig<any>) => Promise<import("axios").AxiosResponse<{
1149
+ 'dry-run'?: boolean | undefined;
1150
+ }, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<{
982
1151
  status: "success";
983
1152
  program: string;
984
1153
  version: string;
985
1154
  datetime: string;
986
- code?: number;
1155
+ code?: number | undefined;
987
1156
  message: string;
988
1157
  data: {};
989
1158
  }, any>>;
990
1159
  duplicate: (params: Record<string, never>, data: {
991
1160
  sourceId: string;
992
- }, options?: AxiosRequestConfig<any>) => Promise<import("axios").AxiosResponse<{
1161
+ }, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<{
993
1162
  status: "success";
994
1163
  program: string;
995
1164
  version: string;
996
1165
  datetime: string;
997
- code?: number;
1166
+ code?: number | undefined;
998
1167
  message: string;
999
1168
  data: {
1000
- description?: string;
1169
+ description?: string | undefined;
1001
1170
  readonly id: string & {
1002
- readonly?: "__readonly";
1171
+ readonly?: "__readonly" | undefined;
1003
1172
  };
1004
1173
  readonly companyId: string & {
1005
- readonly?: "__readonly";
1174
+ readonly?: "__readonly" | undefined;
1006
1175
  };
1007
1176
  resourceGroupIds: string[];
1008
1177
  readonly createdAt: Date & {
1009
- readonly?: "__readonly";
1178
+ readonly?: "__readonly" | undefined;
1010
1179
  };
1011
1180
  readonly updatedAt: Date & {
1012
- readonly?: "__readonly";
1181
+ readonly?: "__readonly" | undefined;
1013
1182
  };
1014
1183
  readonly versions: {
1015
1184
  readonly id: string & {
1016
- readonly?: "__readonly";
1185
+ readonly?: "__readonly" | undefined;
1017
1186
  };
1018
1187
  readonly createdAt: Date & {
1019
- readonly?: "__readonly";
1188
+ readonly?: "__readonly" | undefined;
1020
1189
  };
1021
1190
  readonly updatedAt: Date & {
1022
- readonly?: "__readonly";
1191
+ readonly?: "__readonly" | undefined;
1023
1192
  };
1024
1193
  readonly state: (ContentVersionState.DRAFT & {
1025
- readonly?: "__readonly";
1194
+ readonly?: "__readonly" | undefined;
1026
1195
  }) | (ContentVersionState.LIVE & {
1027
- readonly?: "__readonly";
1196
+ readonly?: "__readonly" | undefined;
1028
1197
  }) | (ContentVersionState.INACTIVE & {
1029
- readonly?: "__readonly";
1198
+ readonly?: "__readonly" | undefined;
1030
1199
  });
1031
- previewUrl?: string;
1200
+ previewUrl?: string | undefined;
1032
1201
  metadata?: {
1033
1202
  [x: string]: unknown;
1034
- };
1203
+ } | undefined;
1035
1204
  template: {
1036
1205
  components: {
1037
1206
  [x: string]: {
@@ -1039,7 +1208,7 @@ export default class {
1039
1208
  options: {
1040
1209
  [x: string]: unknown;
1041
1210
  };
1042
- name?: string;
1211
+ name?: string | undefined;
1043
1212
  rendered: boolean;
1044
1213
  };
1045
1214
  };
@@ -1087,12 +1256,12 @@ export default class {
1087
1256
  } | {
1088
1257
  type: "dependency";
1089
1258
  value: string;
1090
- })[];
1259
+ })[] | undefined;
1091
1260
  };
1092
1261
  };
1093
1262
  conditionGroups: {
1094
1263
  [x: string]: {
1095
- name?: string;
1264
+ name?: string | undefined;
1096
1265
  conditions: ({
1097
1266
  id: string;
1098
1267
  type: "and" | "or";
@@ -1141,7 +1310,7 @@ export default class {
1141
1310
  };
1142
1311
  componentGroups: {
1143
1312
  [x: string]: {
1144
- name?: string;
1313
+ name?: string | undefined;
1145
1314
  rendered: boolean;
1146
1315
  };
1147
1316
  };
@@ -1149,61 +1318,61 @@ export default class {
1149
1318
  }[];
1150
1319
  name: string;
1151
1320
  readonly status: (ContentStatus.DRAFT & {
1152
- readonly?: "__readonly";
1321
+ readonly?: "__readonly" | undefined;
1153
1322
  }) | (ContentStatus.PUBLISHING & {
1154
- readonly?: "__readonly";
1323
+ readonly?: "__readonly" | undefined;
1155
1324
  }) | (ContentStatus.PUBLISHED & {
1156
- readonly?: "__readonly";
1325
+ readonly?: "__readonly" | undefined;
1157
1326
  }) | (ContentStatus.ERROR & {
1158
- readonly?: "__readonly";
1327
+ readonly?: "__readonly" | undefined;
1159
1328
  });
1160
1329
  };
1161
1330
  }, any>>;
1162
1331
  publish: (params: {
1163
1332
  id: string;
1164
- }, options?: AxiosRequestConfig<any>) => Promise<import("axios").AxiosResponse<{
1333
+ }, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<{
1165
1334
  status: "success";
1166
1335
  program: string;
1167
1336
  version: string;
1168
1337
  datetime: string;
1169
- code?: number;
1338
+ code?: number | undefined;
1170
1339
  message: string;
1171
1340
  data: {
1172
- description?: string;
1341
+ description?: string | undefined;
1173
1342
  readonly id: string & {
1174
- readonly?: "__readonly";
1343
+ readonly?: "__readonly" | undefined;
1175
1344
  };
1176
1345
  readonly companyId: string & {
1177
- readonly?: "__readonly";
1346
+ readonly?: "__readonly" | undefined;
1178
1347
  };
1179
1348
  resourceGroupIds: string[];
1180
1349
  readonly createdAt: Date & {
1181
- readonly?: "__readonly";
1350
+ readonly?: "__readonly" | undefined;
1182
1351
  };
1183
1352
  readonly updatedAt: Date & {
1184
- readonly?: "__readonly";
1353
+ readonly?: "__readonly" | undefined;
1185
1354
  };
1186
1355
  readonly versions: {
1187
1356
  readonly id: string & {
1188
- readonly?: "__readonly";
1357
+ readonly?: "__readonly" | undefined;
1189
1358
  };
1190
1359
  readonly createdAt: Date & {
1191
- readonly?: "__readonly";
1360
+ readonly?: "__readonly" | undefined;
1192
1361
  };
1193
1362
  readonly updatedAt: Date & {
1194
- readonly?: "__readonly";
1363
+ readonly?: "__readonly" | undefined;
1195
1364
  };
1196
1365
  readonly state: (ContentVersionState.DRAFT & {
1197
- readonly?: "__readonly";
1366
+ readonly?: "__readonly" | undefined;
1198
1367
  }) | (ContentVersionState.LIVE & {
1199
- readonly?: "__readonly";
1368
+ readonly?: "__readonly" | undefined;
1200
1369
  }) | (ContentVersionState.INACTIVE & {
1201
- readonly?: "__readonly";
1370
+ readonly?: "__readonly" | undefined;
1202
1371
  });
1203
- previewUrl?: string;
1372
+ previewUrl?: string | undefined;
1204
1373
  metadata?: {
1205
1374
  [x: string]: unknown;
1206
- };
1375
+ } | undefined;
1207
1376
  template: {
1208
1377
  components: {
1209
1378
  [x: string]: {
@@ -1211,7 +1380,7 @@ export default class {
1211
1380
  options: {
1212
1381
  [x: string]: unknown;
1213
1382
  };
1214
- name?: string;
1383
+ name?: string | undefined;
1215
1384
  rendered: boolean;
1216
1385
  };
1217
1386
  };
@@ -1259,12 +1428,12 @@ export default class {
1259
1428
  } | {
1260
1429
  type: "dependency";
1261
1430
  value: string;
1262
- })[];
1431
+ })[] | undefined;
1263
1432
  };
1264
1433
  };
1265
1434
  conditionGroups: {
1266
1435
  [x: string]: {
1267
- name?: string;
1436
+ name?: string | undefined;
1268
1437
  conditions: ({
1269
1438
  id: string;
1270
1439
  type: "and" | "or";
@@ -1313,7 +1482,7 @@ export default class {
1313
1482
  };
1314
1483
  componentGroups: {
1315
1484
  [x: string]: {
1316
- name?: string;
1485
+ name?: string | undefined;
1317
1486
  rendered: boolean;
1318
1487
  };
1319
1488
  };
@@ -1321,23 +1490,23 @@ export default class {
1321
1490
  }[];
1322
1491
  name: string;
1323
1492
  readonly status: (ContentStatus.DRAFT & {
1324
- readonly?: "__readonly";
1493
+ readonly?: "__readonly" | undefined;
1325
1494
  }) | (ContentStatus.PUBLISHING & {
1326
- readonly?: "__readonly";
1495
+ readonly?: "__readonly" | undefined;
1327
1496
  }) | (ContentStatus.PUBLISHED & {
1328
- readonly?: "__readonly";
1497
+ readonly?: "__readonly" | undefined;
1329
1498
  }) | (ContentStatus.ERROR & {
1330
- readonly?: "__readonly";
1499
+ readonly?: "__readonly" | undefined;
1331
1500
  });
1332
1501
  };
1333
1502
  }, any>>;
1334
1503
  render: (params: {
1335
1504
  id: string;
1336
- 'x-rlvt-no-cache'?: boolean;
1505
+ 'x-rlvt-no-cache'?: boolean | undefined;
1337
1506
  }, data: {
1338
1507
  dependenciesData: {
1339
1508
  [key: string]: unknown;
1340
1509
  };
1341
- }, options?: AxiosRequestConfig<any>) => Promise<import("axios").AxiosResponse<any, any>>;
1510
+ }, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
1342
1511
  };
1343
1512
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rlvt/contents-openapi-client",
3
- "version": "1.0.156+0af4520",
3
+ "version": "1.0.159+2d29da7",
4
4
  "description": "Openapi client for reelevant service",
5
5
  "main": "build/index.js",
6
6
  "repository": "https://github.com/reelevant-tech/openapi-clients",