@rlvt/contents-openapi-client 0.0.0-4fb86d8 → 0.0.0-548e775

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