@ninetailed/experience.js-utils-contentful 2.0.0-beta.7 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,32 +1,2213 @@
1
- import { Distribution, BaselineWithVariants } from '@ninetailed/experience.js';
2
- import { Entry, EntryFields } from 'contentful';
3
- import { AudienceEntry } from './AudienceEntry';
4
- declare type Config = {
5
- scatteredDistribution: Distribution[];
6
- traffic: number;
7
- components: BaselineWithVariants[];
8
- };
9
- declare type ExperienceFields<VariantEntry extends Entry<unknown> = Entry<unknown>> = {
1
+ import { z } from 'zod';
2
+ export declare const ExperienceFields: z.ZodObject<{
10
3
  /**
11
4
  * The name of the experience (Short Text)
12
5
  */
13
- nt_name: EntryFields.Symbol;
6
+ nt_name: z.ZodString;
14
7
  /**
15
8
  * The type if the experience (nt_experiment | nt_personalization)
16
9
  */
17
- nt_type: EntryFields.Symbol;
10
+ nt_type: z.ZodUnion<[z.ZodLiteral<"nt_experiment">, z.ZodLiteral<"nt_personalization">]>;
18
11
  /**
19
12
  * The config of the experience (JSON)
20
13
  */
21
- nt_config?: EntryFields.Object<Config>;
14
+ nt_config: z.ZodNullable<z.ZodOptional<z.ZodObject<{
15
+ distribution: z.ZodArray<z.ZodNumber, "many">;
16
+ traffic: z.ZodNumber;
17
+ components: z.ZodArray<z.ZodObject<{
18
+ baseline: z.ZodObject<{
19
+ id: z.ZodString;
20
+ }, "strip", z.ZodTypeAny, {
21
+ id: string;
22
+ }, {
23
+ id: string;
24
+ }>;
25
+ variants: z.ZodArray<z.ZodObject<{
26
+ id: z.ZodString;
27
+ hidden: z.ZodBoolean;
28
+ }, "strip", z.ZodTypeAny, {
29
+ id: string;
30
+ hidden: boolean;
31
+ }, {
32
+ id: string;
33
+ hidden: boolean;
34
+ }>, "many">;
35
+ }, "strip", z.ZodTypeAny, {
36
+ baseline: {
37
+ id: string;
38
+ };
39
+ variants: {
40
+ id: string;
41
+ hidden: boolean;
42
+ }[];
43
+ }, {
44
+ baseline: {
45
+ id: string;
46
+ };
47
+ variants: {
48
+ id: string;
49
+ hidden: boolean;
50
+ }[];
51
+ }>, "many">;
52
+ }, "strip", z.ZodTypeAny, {
53
+ distribution: number[];
54
+ traffic: number;
55
+ components: {
56
+ baseline: {
57
+ id: string;
58
+ };
59
+ variants: {
60
+ id: string;
61
+ hidden: boolean;
62
+ }[];
63
+ }[];
64
+ }, {
65
+ distribution: number[];
66
+ traffic: number;
67
+ components: {
68
+ baseline: {
69
+ id: string;
70
+ };
71
+ variants: {
72
+ id: string;
73
+ hidden: boolean;
74
+ }[];
75
+ }[];
76
+ }>>>;
22
77
  /**
23
78
  * The audience of the experience (Audience)
24
79
  */
25
- nt_audience?: AudienceEntry;
80
+ nt_audience: z.ZodNullable<z.ZodOptional<z.ZodObject<z.extendShape<{
81
+ sys: z.ZodObject<{
82
+ type: z.ZodString;
83
+ id: z.ZodString;
84
+ createdAt: z.ZodString;
85
+ updatedAt: z.ZodString;
86
+ locale: z.ZodString;
87
+ revision: z.ZodOptional<z.ZodNumber>;
88
+ space: z.ZodOptional<z.ZodObject<{
89
+ sys: z.ZodObject<z.extendShape<{
90
+ type: z.ZodLiteral<"Link">;
91
+ linkType: z.ZodString;
92
+ id: z.ZodString;
93
+ }, {
94
+ linkType: z.ZodLiteral<"Space">;
95
+ }>, "strip", z.ZodTypeAny, {
96
+ type: "Link";
97
+ linkType: "Space";
98
+ id: string;
99
+ }, {
100
+ type: "Link";
101
+ linkType: "Space";
102
+ id: string;
103
+ }>;
104
+ }, "strip", z.ZodTypeAny, {
105
+ sys: {
106
+ type: "Link";
107
+ linkType: "Space";
108
+ id: string;
109
+ };
110
+ }, {
111
+ sys: {
112
+ type: "Link";
113
+ linkType: "Space";
114
+ id: string;
115
+ };
116
+ }>>;
117
+ environment: z.ZodOptional<z.ZodObject<{
118
+ sys: z.ZodObject<z.extendShape<{
119
+ type: z.ZodLiteral<"Link">;
120
+ linkType: z.ZodString;
121
+ id: z.ZodString;
122
+ }, {
123
+ linkType: z.ZodLiteral<"Environment">;
124
+ }>, "strip", z.ZodTypeAny, {
125
+ type: "Link";
126
+ linkType: "Environment";
127
+ id: string;
128
+ }, {
129
+ type: "Link";
130
+ linkType: "Environment";
131
+ id: string;
132
+ }>;
133
+ }, "strip", z.ZodTypeAny, {
134
+ sys: {
135
+ type: "Link";
136
+ linkType: "Environment";
137
+ id: string;
138
+ };
139
+ }, {
140
+ sys: {
141
+ type: "Link";
142
+ linkType: "Environment";
143
+ id: string;
144
+ };
145
+ }>>;
146
+ contentType: z.ZodObject<{
147
+ sys: z.ZodObject<z.extendShape<{
148
+ type: z.ZodLiteral<"Link">;
149
+ linkType: z.ZodString;
150
+ id: z.ZodString;
151
+ }, {
152
+ linkType: z.ZodLiteral<"ContentType">;
153
+ }>, "strip", z.ZodTypeAny, {
154
+ type: "Link";
155
+ linkType: "ContentType";
156
+ id: string;
157
+ }, {
158
+ type: "Link";
159
+ linkType: "ContentType";
160
+ id: string;
161
+ }>;
162
+ }, "strip", z.ZodTypeAny, {
163
+ sys: {
164
+ type: "Link";
165
+ linkType: "ContentType";
166
+ id: string;
167
+ };
168
+ }, {
169
+ sys: {
170
+ type: "Link";
171
+ linkType: "ContentType";
172
+ id: string;
173
+ };
174
+ }>;
175
+ }, "strip", z.ZodTypeAny, {
176
+ revision?: number | undefined;
177
+ space?: {
178
+ sys: {
179
+ type: "Link";
180
+ linkType: "Space";
181
+ id: string;
182
+ };
183
+ } | undefined;
184
+ environment?: {
185
+ sys: {
186
+ type: "Link";
187
+ linkType: "Environment";
188
+ id: string;
189
+ };
190
+ } | undefined;
191
+ type: string;
192
+ id: string;
193
+ createdAt: string;
194
+ updatedAt: string;
195
+ locale: string;
196
+ contentType: {
197
+ sys: {
198
+ type: "Link";
199
+ linkType: "ContentType";
200
+ id: string;
201
+ };
202
+ };
203
+ }, {
204
+ revision?: number | undefined;
205
+ space?: {
206
+ sys: {
207
+ type: "Link";
208
+ linkType: "Space";
209
+ id: string;
210
+ };
211
+ } | undefined;
212
+ environment?: {
213
+ sys: {
214
+ type: "Link";
215
+ linkType: "Environment";
216
+ id: string;
217
+ };
218
+ } | undefined;
219
+ type: string;
220
+ id: string;
221
+ createdAt: string;
222
+ updatedAt: string;
223
+ locale: string;
224
+ contentType: {
225
+ sys: {
226
+ type: "Link";
227
+ linkType: "ContentType";
228
+ id: string;
229
+ };
230
+ };
231
+ }>;
232
+ fields: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
233
+ metadata: z.ZodObject<{
234
+ tags: z.ZodArray<z.ZodObject<{
235
+ sys: z.ZodObject<z.extendShape<{
236
+ type: z.ZodLiteral<"Link">;
237
+ linkType: z.ZodString;
238
+ id: z.ZodString;
239
+ }, {
240
+ linkType: z.ZodLiteral<"Tag">;
241
+ }>, "strip", z.ZodTypeAny, {
242
+ type: "Link";
243
+ linkType: "Tag";
244
+ id: string;
245
+ }, {
246
+ type: "Link";
247
+ linkType: "Tag";
248
+ id: string;
249
+ }>;
250
+ }, "strip", z.ZodTypeAny, {
251
+ sys: {
252
+ type: "Link";
253
+ linkType: "Tag";
254
+ id: string;
255
+ };
256
+ }, {
257
+ sys: {
258
+ type: "Link";
259
+ linkType: "Tag";
260
+ id: string;
261
+ };
262
+ }>, "many">;
263
+ }, "strip", z.ZodTypeAny, {
264
+ tags: {
265
+ sys: {
266
+ type: "Link";
267
+ linkType: "Tag";
268
+ id: string;
269
+ };
270
+ }[];
271
+ }, {
272
+ tags: {
273
+ sys: {
274
+ type: "Link";
275
+ linkType: "Tag";
276
+ id: string;
277
+ };
278
+ }[];
279
+ }>;
280
+ }, {
281
+ fields: z.ZodObject<{
282
+ nt_name: z.ZodString;
283
+ nt_audience_id: z.ZodString;
284
+ }, "strip", z.ZodTypeAny, {
285
+ nt_name: string;
286
+ nt_audience_id: string;
287
+ }, {
288
+ nt_name: string;
289
+ nt_audience_id: string;
290
+ }>;
291
+ }>, "strip", z.ZodTypeAny, {
292
+ sys: {
293
+ revision?: number | undefined;
294
+ space?: {
295
+ sys: {
296
+ type: "Link";
297
+ linkType: "Space";
298
+ id: string;
299
+ };
300
+ } | undefined;
301
+ environment?: {
302
+ sys: {
303
+ type: "Link";
304
+ linkType: "Environment";
305
+ id: string;
306
+ };
307
+ } | undefined;
308
+ type: string;
309
+ id: string;
310
+ createdAt: string;
311
+ updatedAt: string;
312
+ locale: string;
313
+ contentType: {
314
+ sys: {
315
+ type: "Link";
316
+ linkType: "ContentType";
317
+ id: string;
318
+ };
319
+ };
320
+ };
321
+ fields: {
322
+ nt_name: string;
323
+ nt_audience_id: string;
324
+ };
325
+ metadata: {
326
+ tags: {
327
+ sys: {
328
+ type: "Link";
329
+ linkType: "Tag";
330
+ id: string;
331
+ };
332
+ }[];
333
+ };
334
+ }, {
335
+ sys: {
336
+ revision?: number | undefined;
337
+ space?: {
338
+ sys: {
339
+ type: "Link";
340
+ linkType: "Space";
341
+ id: string;
342
+ };
343
+ } | undefined;
344
+ environment?: {
345
+ sys: {
346
+ type: "Link";
347
+ linkType: "Environment";
348
+ id: string;
349
+ };
350
+ } | undefined;
351
+ type: string;
352
+ id: string;
353
+ createdAt: string;
354
+ updatedAt: string;
355
+ locale: string;
356
+ contentType: {
357
+ sys: {
358
+ type: "Link";
359
+ linkType: "ContentType";
360
+ id: string;
361
+ };
362
+ };
363
+ };
364
+ fields: {
365
+ nt_name: string;
366
+ nt_audience_id: string;
367
+ };
368
+ metadata: {
369
+ tags: {
370
+ sys: {
371
+ type: "Link";
372
+ linkType: "Tag";
373
+ id: string;
374
+ };
375
+ }[];
376
+ };
377
+ }>>>;
26
378
  /**
27
379
  * All used variants of the experience (Contentful references to other Content Types)
28
380
  */
29
- nt_variants?: VariantEntry[];
30
- };
31
- export declare type ExperienceEntry = Entry<ExperienceFields>;
32
- export {};
381
+ nt_variants: z.ZodDefault<z.ZodArray<z.ZodObject<{
382
+ sys: z.ZodObject<{
383
+ type: z.ZodString;
384
+ id: z.ZodString;
385
+ createdAt: z.ZodString;
386
+ updatedAt: z.ZodString;
387
+ locale: z.ZodString;
388
+ revision: z.ZodOptional<z.ZodNumber>;
389
+ space: z.ZodOptional<z.ZodObject<{
390
+ sys: z.ZodObject<z.extendShape<{
391
+ type: z.ZodLiteral<"Link">;
392
+ linkType: z.ZodString;
393
+ id: z.ZodString;
394
+ }, {
395
+ linkType: z.ZodLiteral<"Space">;
396
+ }>, "strip", z.ZodTypeAny, {
397
+ type: "Link";
398
+ linkType: "Space";
399
+ id: string;
400
+ }, {
401
+ type: "Link";
402
+ linkType: "Space";
403
+ id: string;
404
+ }>;
405
+ }, "strip", z.ZodTypeAny, {
406
+ sys: {
407
+ type: "Link";
408
+ linkType: "Space";
409
+ id: string;
410
+ };
411
+ }, {
412
+ sys: {
413
+ type: "Link";
414
+ linkType: "Space";
415
+ id: string;
416
+ };
417
+ }>>;
418
+ environment: z.ZodOptional<z.ZodObject<{
419
+ sys: z.ZodObject<z.extendShape<{
420
+ type: z.ZodLiteral<"Link">;
421
+ linkType: z.ZodString;
422
+ id: z.ZodString;
423
+ }, {
424
+ linkType: z.ZodLiteral<"Environment">;
425
+ }>, "strip", z.ZodTypeAny, {
426
+ type: "Link";
427
+ linkType: "Environment";
428
+ id: string;
429
+ }, {
430
+ type: "Link";
431
+ linkType: "Environment";
432
+ id: string;
433
+ }>;
434
+ }, "strip", z.ZodTypeAny, {
435
+ sys: {
436
+ type: "Link";
437
+ linkType: "Environment";
438
+ id: string;
439
+ };
440
+ }, {
441
+ sys: {
442
+ type: "Link";
443
+ linkType: "Environment";
444
+ id: string;
445
+ };
446
+ }>>;
447
+ contentType: z.ZodObject<{
448
+ sys: z.ZodObject<z.extendShape<{
449
+ type: z.ZodLiteral<"Link">;
450
+ linkType: z.ZodString;
451
+ id: z.ZodString;
452
+ }, {
453
+ linkType: z.ZodLiteral<"ContentType">;
454
+ }>, "strip", z.ZodTypeAny, {
455
+ type: "Link";
456
+ linkType: "ContentType";
457
+ id: string;
458
+ }, {
459
+ type: "Link";
460
+ linkType: "ContentType";
461
+ id: string;
462
+ }>;
463
+ }, "strip", z.ZodTypeAny, {
464
+ sys: {
465
+ type: "Link";
466
+ linkType: "ContentType";
467
+ id: string;
468
+ };
469
+ }, {
470
+ sys: {
471
+ type: "Link";
472
+ linkType: "ContentType";
473
+ id: string;
474
+ };
475
+ }>;
476
+ }, "strip", z.ZodTypeAny, {
477
+ revision?: number | undefined;
478
+ space?: {
479
+ sys: {
480
+ type: "Link";
481
+ linkType: "Space";
482
+ id: string;
483
+ };
484
+ } | undefined;
485
+ environment?: {
486
+ sys: {
487
+ type: "Link";
488
+ linkType: "Environment";
489
+ id: string;
490
+ };
491
+ } | undefined;
492
+ type: string;
493
+ id: string;
494
+ createdAt: string;
495
+ updatedAt: string;
496
+ locale: string;
497
+ contentType: {
498
+ sys: {
499
+ type: "Link";
500
+ linkType: "ContentType";
501
+ id: string;
502
+ };
503
+ };
504
+ }, {
505
+ revision?: number | undefined;
506
+ space?: {
507
+ sys: {
508
+ type: "Link";
509
+ linkType: "Space";
510
+ id: string;
511
+ };
512
+ } | undefined;
513
+ environment?: {
514
+ sys: {
515
+ type: "Link";
516
+ linkType: "Environment";
517
+ id: string;
518
+ };
519
+ } | undefined;
520
+ type: string;
521
+ id: string;
522
+ createdAt: string;
523
+ updatedAt: string;
524
+ locale: string;
525
+ contentType: {
526
+ sys: {
527
+ type: "Link";
528
+ linkType: "ContentType";
529
+ id: string;
530
+ };
531
+ };
532
+ }>;
533
+ fields: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
534
+ metadata: z.ZodObject<{
535
+ tags: z.ZodArray<z.ZodObject<{
536
+ sys: z.ZodObject<z.extendShape<{
537
+ type: z.ZodLiteral<"Link">;
538
+ linkType: z.ZodString;
539
+ id: z.ZodString;
540
+ }, {
541
+ linkType: z.ZodLiteral<"Tag">;
542
+ }>, "strip", z.ZodTypeAny, {
543
+ type: "Link";
544
+ linkType: "Tag";
545
+ id: string;
546
+ }, {
547
+ type: "Link";
548
+ linkType: "Tag";
549
+ id: string;
550
+ }>;
551
+ }, "strip", z.ZodTypeAny, {
552
+ sys: {
553
+ type: "Link";
554
+ linkType: "Tag";
555
+ id: string;
556
+ };
557
+ }, {
558
+ sys: {
559
+ type: "Link";
560
+ linkType: "Tag";
561
+ id: string;
562
+ };
563
+ }>, "many">;
564
+ }, "strip", z.ZodTypeAny, {
565
+ tags: {
566
+ sys: {
567
+ type: "Link";
568
+ linkType: "Tag";
569
+ id: string;
570
+ };
571
+ }[];
572
+ }, {
573
+ tags: {
574
+ sys: {
575
+ type: "Link";
576
+ linkType: "Tag";
577
+ id: string;
578
+ };
579
+ }[];
580
+ }>;
581
+ }, "strip", z.ZodTypeAny, {
582
+ sys: {
583
+ revision?: number | undefined;
584
+ space?: {
585
+ sys: {
586
+ type: "Link";
587
+ linkType: "Space";
588
+ id: string;
589
+ };
590
+ } | undefined;
591
+ environment?: {
592
+ sys: {
593
+ type: "Link";
594
+ linkType: "Environment";
595
+ id: string;
596
+ };
597
+ } | undefined;
598
+ type: string;
599
+ id: string;
600
+ createdAt: string;
601
+ updatedAt: string;
602
+ locale: string;
603
+ contentType: {
604
+ sys: {
605
+ type: "Link";
606
+ linkType: "ContentType";
607
+ id: string;
608
+ };
609
+ };
610
+ };
611
+ fields: {};
612
+ metadata: {
613
+ tags: {
614
+ sys: {
615
+ type: "Link";
616
+ linkType: "Tag";
617
+ id: string;
618
+ };
619
+ }[];
620
+ };
621
+ }, {
622
+ sys: {
623
+ revision?: number | undefined;
624
+ space?: {
625
+ sys: {
626
+ type: "Link";
627
+ linkType: "Space";
628
+ id: string;
629
+ };
630
+ } | undefined;
631
+ environment?: {
632
+ sys: {
633
+ type: "Link";
634
+ linkType: "Environment";
635
+ id: string;
636
+ };
637
+ } | undefined;
638
+ type: string;
639
+ id: string;
640
+ createdAt: string;
641
+ updatedAt: string;
642
+ locale: string;
643
+ contentType: {
644
+ sys: {
645
+ type: "Link";
646
+ linkType: "ContentType";
647
+ id: string;
648
+ };
649
+ };
650
+ };
651
+ fields: {};
652
+ metadata: {
653
+ tags: {
654
+ sys: {
655
+ type: "Link";
656
+ linkType: "Tag";
657
+ id: string;
658
+ };
659
+ }[];
660
+ };
661
+ }>, "many">>;
662
+ }, "strip", z.ZodTypeAny, {
663
+ nt_config?: {
664
+ distribution: number[];
665
+ traffic: number;
666
+ components: {
667
+ baseline: {
668
+ id: string;
669
+ };
670
+ variants: {
671
+ id: string;
672
+ hidden: boolean;
673
+ }[];
674
+ }[];
675
+ } | null | undefined;
676
+ nt_audience?: {
677
+ sys: {
678
+ revision?: number | undefined;
679
+ space?: {
680
+ sys: {
681
+ type: "Link";
682
+ linkType: "Space";
683
+ id: string;
684
+ };
685
+ } | undefined;
686
+ environment?: {
687
+ sys: {
688
+ type: "Link";
689
+ linkType: "Environment";
690
+ id: string;
691
+ };
692
+ } | undefined;
693
+ type: string;
694
+ id: string;
695
+ createdAt: string;
696
+ updatedAt: string;
697
+ locale: string;
698
+ contentType: {
699
+ sys: {
700
+ type: "Link";
701
+ linkType: "ContentType";
702
+ id: string;
703
+ };
704
+ };
705
+ };
706
+ fields: {
707
+ nt_name: string;
708
+ nt_audience_id: string;
709
+ };
710
+ metadata: {
711
+ tags: {
712
+ sys: {
713
+ type: "Link";
714
+ linkType: "Tag";
715
+ id: string;
716
+ };
717
+ }[];
718
+ };
719
+ } | null | undefined;
720
+ nt_name: string;
721
+ nt_type: "nt_experiment" | "nt_personalization";
722
+ nt_variants: {
723
+ sys: {
724
+ revision?: number | undefined;
725
+ space?: {
726
+ sys: {
727
+ type: "Link";
728
+ linkType: "Space";
729
+ id: string;
730
+ };
731
+ } | undefined;
732
+ environment?: {
733
+ sys: {
734
+ type: "Link";
735
+ linkType: "Environment";
736
+ id: string;
737
+ };
738
+ } | undefined;
739
+ type: string;
740
+ id: string;
741
+ createdAt: string;
742
+ updatedAt: string;
743
+ locale: string;
744
+ contentType: {
745
+ sys: {
746
+ type: "Link";
747
+ linkType: "ContentType";
748
+ id: string;
749
+ };
750
+ };
751
+ };
752
+ fields: {};
753
+ metadata: {
754
+ tags: {
755
+ sys: {
756
+ type: "Link";
757
+ linkType: "Tag";
758
+ id: string;
759
+ };
760
+ }[];
761
+ };
762
+ }[];
763
+ }, {
764
+ nt_config?: {
765
+ distribution: number[];
766
+ traffic: number;
767
+ components: {
768
+ baseline: {
769
+ id: string;
770
+ };
771
+ variants: {
772
+ id: string;
773
+ hidden: boolean;
774
+ }[];
775
+ }[];
776
+ } | null | undefined;
777
+ nt_audience?: {
778
+ sys: {
779
+ revision?: number | undefined;
780
+ space?: {
781
+ sys: {
782
+ type: "Link";
783
+ linkType: "Space";
784
+ id: string;
785
+ };
786
+ } | undefined;
787
+ environment?: {
788
+ sys: {
789
+ type: "Link";
790
+ linkType: "Environment";
791
+ id: string;
792
+ };
793
+ } | undefined;
794
+ type: string;
795
+ id: string;
796
+ createdAt: string;
797
+ updatedAt: string;
798
+ locale: string;
799
+ contentType: {
800
+ sys: {
801
+ type: "Link";
802
+ linkType: "ContentType";
803
+ id: string;
804
+ };
805
+ };
806
+ };
807
+ fields: {
808
+ nt_name: string;
809
+ nt_audience_id: string;
810
+ };
811
+ metadata: {
812
+ tags: {
813
+ sys: {
814
+ type: "Link";
815
+ linkType: "Tag";
816
+ id: string;
817
+ };
818
+ }[];
819
+ };
820
+ } | null | undefined;
821
+ nt_variants?: {
822
+ sys: {
823
+ revision?: number | undefined;
824
+ space?: {
825
+ sys: {
826
+ type: "Link";
827
+ linkType: "Space";
828
+ id: string;
829
+ };
830
+ } | undefined;
831
+ environment?: {
832
+ sys: {
833
+ type: "Link";
834
+ linkType: "Environment";
835
+ id: string;
836
+ };
837
+ } | undefined;
838
+ type: string;
839
+ id: string;
840
+ createdAt: string;
841
+ updatedAt: string;
842
+ locale: string;
843
+ contentType: {
844
+ sys: {
845
+ type: "Link";
846
+ linkType: "ContentType";
847
+ id: string;
848
+ };
849
+ };
850
+ };
851
+ fields: {};
852
+ metadata: {
853
+ tags: {
854
+ sys: {
855
+ type: "Link";
856
+ linkType: "Tag";
857
+ id: string;
858
+ };
859
+ }[];
860
+ };
861
+ }[] | undefined;
862
+ nt_name: string;
863
+ nt_type: "nt_experiment" | "nt_personalization";
864
+ }>;
865
+ export declare type ExperienceFields = z.infer<typeof ExperienceFields>;
866
+ export declare const ExperienceEntry: z.ZodObject<z.extendShape<{
867
+ sys: z.ZodObject<{
868
+ type: z.ZodString;
869
+ id: z.ZodString;
870
+ createdAt: z.ZodString;
871
+ updatedAt: z.ZodString;
872
+ locale: z.ZodString;
873
+ revision: z.ZodOptional<z.ZodNumber>;
874
+ space: z.ZodOptional<z.ZodObject<{
875
+ sys: z.ZodObject<z.extendShape<{
876
+ type: z.ZodLiteral<"Link">;
877
+ linkType: z.ZodString;
878
+ id: z.ZodString;
879
+ }, {
880
+ linkType: z.ZodLiteral<"Space">;
881
+ }>, "strip", z.ZodTypeAny, {
882
+ type: "Link";
883
+ linkType: "Space";
884
+ id: string;
885
+ }, {
886
+ type: "Link";
887
+ linkType: "Space";
888
+ id: string;
889
+ }>;
890
+ }, "strip", z.ZodTypeAny, {
891
+ sys: {
892
+ type: "Link";
893
+ linkType: "Space";
894
+ id: string;
895
+ };
896
+ }, {
897
+ sys: {
898
+ type: "Link";
899
+ linkType: "Space";
900
+ id: string;
901
+ };
902
+ }>>;
903
+ environment: z.ZodOptional<z.ZodObject<{
904
+ sys: z.ZodObject<z.extendShape<{
905
+ type: z.ZodLiteral<"Link">;
906
+ linkType: z.ZodString;
907
+ id: z.ZodString;
908
+ }, {
909
+ linkType: z.ZodLiteral<"Environment">;
910
+ }>, "strip", z.ZodTypeAny, {
911
+ type: "Link";
912
+ linkType: "Environment";
913
+ id: string;
914
+ }, {
915
+ type: "Link";
916
+ linkType: "Environment";
917
+ id: string;
918
+ }>;
919
+ }, "strip", z.ZodTypeAny, {
920
+ sys: {
921
+ type: "Link";
922
+ linkType: "Environment";
923
+ id: string;
924
+ };
925
+ }, {
926
+ sys: {
927
+ type: "Link";
928
+ linkType: "Environment";
929
+ id: string;
930
+ };
931
+ }>>;
932
+ contentType: z.ZodObject<{
933
+ sys: z.ZodObject<z.extendShape<{
934
+ type: z.ZodLiteral<"Link">;
935
+ linkType: z.ZodString;
936
+ id: z.ZodString;
937
+ }, {
938
+ linkType: z.ZodLiteral<"ContentType">;
939
+ }>, "strip", z.ZodTypeAny, {
940
+ type: "Link";
941
+ linkType: "ContentType";
942
+ id: string;
943
+ }, {
944
+ type: "Link";
945
+ linkType: "ContentType";
946
+ id: string;
947
+ }>;
948
+ }, "strip", z.ZodTypeAny, {
949
+ sys: {
950
+ type: "Link";
951
+ linkType: "ContentType";
952
+ id: string;
953
+ };
954
+ }, {
955
+ sys: {
956
+ type: "Link";
957
+ linkType: "ContentType";
958
+ id: string;
959
+ };
960
+ }>;
961
+ }, "strip", z.ZodTypeAny, {
962
+ revision?: number | undefined;
963
+ space?: {
964
+ sys: {
965
+ type: "Link";
966
+ linkType: "Space";
967
+ id: string;
968
+ };
969
+ } | undefined;
970
+ environment?: {
971
+ sys: {
972
+ type: "Link";
973
+ linkType: "Environment";
974
+ id: string;
975
+ };
976
+ } | undefined;
977
+ type: string;
978
+ id: string;
979
+ createdAt: string;
980
+ updatedAt: string;
981
+ locale: string;
982
+ contentType: {
983
+ sys: {
984
+ type: "Link";
985
+ linkType: "ContentType";
986
+ id: string;
987
+ };
988
+ };
989
+ }, {
990
+ revision?: number | undefined;
991
+ space?: {
992
+ sys: {
993
+ type: "Link";
994
+ linkType: "Space";
995
+ id: string;
996
+ };
997
+ } | undefined;
998
+ environment?: {
999
+ sys: {
1000
+ type: "Link";
1001
+ linkType: "Environment";
1002
+ id: string;
1003
+ };
1004
+ } | undefined;
1005
+ type: string;
1006
+ id: string;
1007
+ createdAt: string;
1008
+ updatedAt: string;
1009
+ locale: string;
1010
+ contentType: {
1011
+ sys: {
1012
+ type: "Link";
1013
+ linkType: "ContentType";
1014
+ id: string;
1015
+ };
1016
+ };
1017
+ }>;
1018
+ fields: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
1019
+ metadata: z.ZodObject<{
1020
+ tags: z.ZodArray<z.ZodObject<{
1021
+ sys: z.ZodObject<z.extendShape<{
1022
+ type: z.ZodLiteral<"Link">;
1023
+ linkType: z.ZodString;
1024
+ id: z.ZodString;
1025
+ }, {
1026
+ linkType: z.ZodLiteral<"Tag">;
1027
+ }>, "strip", z.ZodTypeAny, {
1028
+ type: "Link";
1029
+ linkType: "Tag";
1030
+ id: string;
1031
+ }, {
1032
+ type: "Link";
1033
+ linkType: "Tag";
1034
+ id: string;
1035
+ }>;
1036
+ }, "strip", z.ZodTypeAny, {
1037
+ sys: {
1038
+ type: "Link";
1039
+ linkType: "Tag";
1040
+ id: string;
1041
+ };
1042
+ }, {
1043
+ sys: {
1044
+ type: "Link";
1045
+ linkType: "Tag";
1046
+ id: string;
1047
+ };
1048
+ }>, "many">;
1049
+ }, "strip", z.ZodTypeAny, {
1050
+ tags: {
1051
+ sys: {
1052
+ type: "Link";
1053
+ linkType: "Tag";
1054
+ id: string;
1055
+ };
1056
+ }[];
1057
+ }, {
1058
+ tags: {
1059
+ sys: {
1060
+ type: "Link";
1061
+ linkType: "Tag";
1062
+ id: string;
1063
+ };
1064
+ }[];
1065
+ }>;
1066
+ }, {
1067
+ fields: z.ZodObject<{
1068
+ /**
1069
+ * The name of the experience (Short Text)
1070
+ */
1071
+ nt_name: z.ZodString;
1072
+ /**
1073
+ * The type if the experience (nt_experiment | nt_personalization)
1074
+ */
1075
+ nt_type: z.ZodUnion<[z.ZodLiteral<"nt_experiment">, z.ZodLiteral<"nt_personalization">]>;
1076
+ /**
1077
+ * The config of the experience (JSON)
1078
+ */
1079
+ nt_config: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1080
+ distribution: z.ZodArray<z.ZodNumber, "many">;
1081
+ traffic: z.ZodNumber;
1082
+ components: z.ZodArray<z.ZodObject<{
1083
+ baseline: z.ZodObject<{
1084
+ id: z.ZodString;
1085
+ }, "strip", z.ZodTypeAny, {
1086
+ id: string;
1087
+ }, {
1088
+ id: string;
1089
+ }>;
1090
+ variants: z.ZodArray<z.ZodObject<{
1091
+ id: z.ZodString;
1092
+ hidden: z.ZodBoolean;
1093
+ }, "strip", z.ZodTypeAny, {
1094
+ id: string;
1095
+ hidden: boolean;
1096
+ }, {
1097
+ id: string;
1098
+ hidden: boolean;
1099
+ }>, "many">;
1100
+ }, "strip", z.ZodTypeAny, {
1101
+ baseline: {
1102
+ id: string;
1103
+ };
1104
+ variants: {
1105
+ id: string;
1106
+ hidden: boolean;
1107
+ }[];
1108
+ }, {
1109
+ baseline: {
1110
+ id: string;
1111
+ };
1112
+ variants: {
1113
+ id: string;
1114
+ hidden: boolean;
1115
+ }[];
1116
+ }>, "many">;
1117
+ }, "strip", z.ZodTypeAny, {
1118
+ distribution: number[];
1119
+ traffic: number;
1120
+ components: {
1121
+ baseline: {
1122
+ id: string;
1123
+ };
1124
+ variants: {
1125
+ id: string;
1126
+ hidden: boolean;
1127
+ }[];
1128
+ }[];
1129
+ }, {
1130
+ distribution: number[];
1131
+ traffic: number;
1132
+ components: {
1133
+ baseline: {
1134
+ id: string;
1135
+ };
1136
+ variants: {
1137
+ id: string;
1138
+ hidden: boolean;
1139
+ }[];
1140
+ }[];
1141
+ }>>>;
1142
+ /**
1143
+ * The audience of the experience (Audience)
1144
+ */
1145
+ nt_audience: z.ZodNullable<z.ZodOptional<z.ZodObject<z.extendShape<{
1146
+ sys: z.ZodObject<{
1147
+ type: z.ZodString;
1148
+ id: z.ZodString;
1149
+ createdAt: z.ZodString;
1150
+ updatedAt: z.ZodString;
1151
+ locale: z.ZodString;
1152
+ revision: z.ZodOptional<z.ZodNumber>;
1153
+ space: z.ZodOptional<z.ZodObject<{
1154
+ sys: z.ZodObject<z.extendShape<{
1155
+ type: z.ZodLiteral<"Link">;
1156
+ linkType: z.ZodString;
1157
+ id: z.ZodString;
1158
+ }, {
1159
+ linkType: z.ZodLiteral<"Space">;
1160
+ }>, "strip", z.ZodTypeAny, {
1161
+ type: "Link";
1162
+ linkType: "Space";
1163
+ id: string;
1164
+ }, {
1165
+ type: "Link";
1166
+ linkType: "Space";
1167
+ id: string;
1168
+ }>;
1169
+ }, "strip", z.ZodTypeAny, {
1170
+ sys: {
1171
+ type: "Link";
1172
+ linkType: "Space";
1173
+ id: string;
1174
+ };
1175
+ }, {
1176
+ sys: {
1177
+ type: "Link";
1178
+ linkType: "Space";
1179
+ id: string;
1180
+ };
1181
+ }>>;
1182
+ environment: z.ZodOptional<z.ZodObject<{
1183
+ sys: z.ZodObject<z.extendShape<{
1184
+ type: z.ZodLiteral<"Link">;
1185
+ linkType: z.ZodString;
1186
+ id: z.ZodString;
1187
+ }, {
1188
+ linkType: z.ZodLiteral<"Environment">;
1189
+ }>, "strip", z.ZodTypeAny, {
1190
+ type: "Link";
1191
+ linkType: "Environment";
1192
+ id: string;
1193
+ }, {
1194
+ type: "Link";
1195
+ linkType: "Environment";
1196
+ id: string;
1197
+ }>;
1198
+ }, "strip", z.ZodTypeAny, {
1199
+ sys: {
1200
+ type: "Link";
1201
+ linkType: "Environment";
1202
+ id: string;
1203
+ };
1204
+ }, {
1205
+ sys: {
1206
+ type: "Link";
1207
+ linkType: "Environment";
1208
+ id: string;
1209
+ };
1210
+ }>>;
1211
+ contentType: z.ZodObject<{
1212
+ sys: z.ZodObject<z.extendShape<{
1213
+ type: z.ZodLiteral<"Link">;
1214
+ linkType: z.ZodString;
1215
+ id: z.ZodString;
1216
+ }, {
1217
+ linkType: z.ZodLiteral<"ContentType">;
1218
+ }>, "strip", z.ZodTypeAny, {
1219
+ type: "Link";
1220
+ linkType: "ContentType";
1221
+ id: string;
1222
+ }, {
1223
+ type: "Link";
1224
+ linkType: "ContentType";
1225
+ id: string;
1226
+ }>;
1227
+ }, "strip", z.ZodTypeAny, {
1228
+ sys: {
1229
+ type: "Link";
1230
+ linkType: "ContentType";
1231
+ id: string;
1232
+ };
1233
+ }, {
1234
+ sys: {
1235
+ type: "Link";
1236
+ linkType: "ContentType";
1237
+ id: string;
1238
+ };
1239
+ }>;
1240
+ }, "strip", z.ZodTypeAny, {
1241
+ revision?: number | undefined;
1242
+ space?: {
1243
+ sys: {
1244
+ type: "Link";
1245
+ linkType: "Space";
1246
+ id: string;
1247
+ };
1248
+ } | undefined;
1249
+ environment?: {
1250
+ sys: {
1251
+ type: "Link";
1252
+ linkType: "Environment";
1253
+ id: string;
1254
+ };
1255
+ } | undefined;
1256
+ type: string;
1257
+ id: string;
1258
+ createdAt: string;
1259
+ updatedAt: string;
1260
+ locale: string;
1261
+ contentType: {
1262
+ sys: {
1263
+ type: "Link";
1264
+ linkType: "ContentType";
1265
+ id: string;
1266
+ };
1267
+ };
1268
+ }, {
1269
+ revision?: number | undefined;
1270
+ space?: {
1271
+ sys: {
1272
+ type: "Link";
1273
+ linkType: "Space";
1274
+ id: string;
1275
+ };
1276
+ } | undefined;
1277
+ environment?: {
1278
+ sys: {
1279
+ type: "Link";
1280
+ linkType: "Environment";
1281
+ id: string;
1282
+ };
1283
+ } | undefined;
1284
+ type: string;
1285
+ id: string;
1286
+ createdAt: string;
1287
+ updatedAt: string;
1288
+ locale: string;
1289
+ contentType: {
1290
+ sys: {
1291
+ type: "Link";
1292
+ linkType: "ContentType";
1293
+ id: string;
1294
+ };
1295
+ };
1296
+ }>;
1297
+ fields: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
1298
+ metadata: z.ZodObject<{
1299
+ tags: z.ZodArray<z.ZodObject<{
1300
+ sys: z.ZodObject<z.extendShape<{
1301
+ type: z.ZodLiteral<"Link">;
1302
+ linkType: z.ZodString;
1303
+ id: z.ZodString;
1304
+ }, {
1305
+ linkType: z.ZodLiteral<"Tag">;
1306
+ }>, "strip", z.ZodTypeAny, {
1307
+ type: "Link";
1308
+ linkType: "Tag";
1309
+ id: string;
1310
+ }, {
1311
+ type: "Link";
1312
+ linkType: "Tag";
1313
+ id: string;
1314
+ }>;
1315
+ }, "strip", z.ZodTypeAny, {
1316
+ sys: {
1317
+ type: "Link";
1318
+ linkType: "Tag";
1319
+ id: string;
1320
+ };
1321
+ }, {
1322
+ sys: {
1323
+ type: "Link";
1324
+ linkType: "Tag";
1325
+ id: string;
1326
+ };
1327
+ }>, "many">;
1328
+ }, "strip", z.ZodTypeAny, {
1329
+ tags: {
1330
+ sys: {
1331
+ type: "Link";
1332
+ linkType: "Tag";
1333
+ id: string;
1334
+ };
1335
+ }[];
1336
+ }, {
1337
+ tags: {
1338
+ sys: {
1339
+ type: "Link";
1340
+ linkType: "Tag";
1341
+ id: string;
1342
+ };
1343
+ }[];
1344
+ }>;
1345
+ }, {
1346
+ fields: z.ZodObject<{
1347
+ nt_name: z.ZodString;
1348
+ nt_audience_id: z.ZodString;
1349
+ }, "strip", z.ZodTypeAny, {
1350
+ nt_name: string;
1351
+ nt_audience_id: string;
1352
+ }, {
1353
+ nt_name: string;
1354
+ nt_audience_id: string;
1355
+ }>;
1356
+ }>, "strip", z.ZodTypeAny, {
1357
+ sys: {
1358
+ revision?: number | undefined;
1359
+ space?: {
1360
+ sys: {
1361
+ type: "Link";
1362
+ linkType: "Space";
1363
+ id: string;
1364
+ };
1365
+ } | undefined;
1366
+ environment?: {
1367
+ sys: {
1368
+ type: "Link";
1369
+ linkType: "Environment";
1370
+ id: string;
1371
+ };
1372
+ } | undefined;
1373
+ type: string;
1374
+ id: string;
1375
+ createdAt: string;
1376
+ updatedAt: string;
1377
+ locale: string;
1378
+ contentType: {
1379
+ sys: {
1380
+ type: "Link";
1381
+ linkType: "ContentType";
1382
+ id: string;
1383
+ };
1384
+ };
1385
+ };
1386
+ fields: {
1387
+ nt_name: string;
1388
+ nt_audience_id: string;
1389
+ };
1390
+ metadata: {
1391
+ tags: {
1392
+ sys: {
1393
+ type: "Link";
1394
+ linkType: "Tag";
1395
+ id: string;
1396
+ };
1397
+ }[];
1398
+ };
1399
+ }, {
1400
+ sys: {
1401
+ revision?: number | undefined;
1402
+ space?: {
1403
+ sys: {
1404
+ type: "Link";
1405
+ linkType: "Space";
1406
+ id: string;
1407
+ };
1408
+ } | undefined;
1409
+ environment?: {
1410
+ sys: {
1411
+ type: "Link";
1412
+ linkType: "Environment";
1413
+ id: string;
1414
+ };
1415
+ } | undefined;
1416
+ type: string;
1417
+ id: string;
1418
+ createdAt: string;
1419
+ updatedAt: string;
1420
+ locale: string;
1421
+ contentType: {
1422
+ sys: {
1423
+ type: "Link";
1424
+ linkType: "ContentType";
1425
+ id: string;
1426
+ };
1427
+ };
1428
+ };
1429
+ fields: {
1430
+ nt_name: string;
1431
+ nt_audience_id: string;
1432
+ };
1433
+ metadata: {
1434
+ tags: {
1435
+ sys: {
1436
+ type: "Link";
1437
+ linkType: "Tag";
1438
+ id: string;
1439
+ };
1440
+ }[];
1441
+ };
1442
+ }>>>;
1443
+ /**
1444
+ * All used variants of the experience (Contentful references to other Content Types)
1445
+ */
1446
+ nt_variants: z.ZodDefault<z.ZodArray<z.ZodObject<{
1447
+ sys: z.ZodObject<{
1448
+ type: z.ZodString;
1449
+ id: z.ZodString;
1450
+ createdAt: z.ZodString;
1451
+ updatedAt: z.ZodString;
1452
+ locale: z.ZodString;
1453
+ revision: z.ZodOptional<z.ZodNumber>;
1454
+ space: z.ZodOptional<z.ZodObject<{
1455
+ sys: z.ZodObject<z.extendShape<{
1456
+ type: z.ZodLiteral<"Link">;
1457
+ linkType: z.ZodString;
1458
+ id: z.ZodString;
1459
+ }, {
1460
+ linkType: z.ZodLiteral<"Space">;
1461
+ }>, "strip", z.ZodTypeAny, {
1462
+ type: "Link";
1463
+ linkType: "Space";
1464
+ id: string;
1465
+ }, {
1466
+ type: "Link";
1467
+ linkType: "Space";
1468
+ id: string;
1469
+ }>;
1470
+ }, "strip", z.ZodTypeAny, {
1471
+ sys: {
1472
+ type: "Link";
1473
+ linkType: "Space";
1474
+ id: string;
1475
+ };
1476
+ }, {
1477
+ sys: {
1478
+ type: "Link";
1479
+ linkType: "Space";
1480
+ id: string;
1481
+ };
1482
+ }>>;
1483
+ environment: z.ZodOptional<z.ZodObject<{
1484
+ sys: z.ZodObject<z.extendShape<{
1485
+ type: z.ZodLiteral<"Link">;
1486
+ linkType: z.ZodString;
1487
+ id: z.ZodString;
1488
+ }, {
1489
+ linkType: z.ZodLiteral<"Environment">;
1490
+ }>, "strip", z.ZodTypeAny, {
1491
+ type: "Link";
1492
+ linkType: "Environment";
1493
+ id: string;
1494
+ }, {
1495
+ type: "Link";
1496
+ linkType: "Environment";
1497
+ id: string;
1498
+ }>;
1499
+ }, "strip", z.ZodTypeAny, {
1500
+ sys: {
1501
+ type: "Link";
1502
+ linkType: "Environment";
1503
+ id: string;
1504
+ };
1505
+ }, {
1506
+ sys: {
1507
+ type: "Link";
1508
+ linkType: "Environment";
1509
+ id: string;
1510
+ };
1511
+ }>>;
1512
+ contentType: z.ZodObject<{
1513
+ sys: z.ZodObject<z.extendShape<{
1514
+ type: z.ZodLiteral<"Link">;
1515
+ linkType: z.ZodString;
1516
+ id: z.ZodString;
1517
+ }, {
1518
+ linkType: z.ZodLiteral<"ContentType">;
1519
+ }>, "strip", z.ZodTypeAny, {
1520
+ type: "Link";
1521
+ linkType: "ContentType";
1522
+ id: string;
1523
+ }, {
1524
+ type: "Link";
1525
+ linkType: "ContentType";
1526
+ id: string;
1527
+ }>;
1528
+ }, "strip", z.ZodTypeAny, {
1529
+ sys: {
1530
+ type: "Link";
1531
+ linkType: "ContentType";
1532
+ id: string;
1533
+ };
1534
+ }, {
1535
+ sys: {
1536
+ type: "Link";
1537
+ linkType: "ContentType";
1538
+ id: string;
1539
+ };
1540
+ }>;
1541
+ }, "strip", z.ZodTypeAny, {
1542
+ revision?: number | undefined;
1543
+ space?: {
1544
+ sys: {
1545
+ type: "Link";
1546
+ linkType: "Space";
1547
+ id: string;
1548
+ };
1549
+ } | undefined;
1550
+ environment?: {
1551
+ sys: {
1552
+ type: "Link";
1553
+ linkType: "Environment";
1554
+ id: string;
1555
+ };
1556
+ } | undefined;
1557
+ type: string;
1558
+ id: string;
1559
+ createdAt: string;
1560
+ updatedAt: string;
1561
+ locale: string;
1562
+ contentType: {
1563
+ sys: {
1564
+ type: "Link";
1565
+ linkType: "ContentType";
1566
+ id: string;
1567
+ };
1568
+ };
1569
+ }, {
1570
+ revision?: number | undefined;
1571
+ space?: {
1572
+ sys: {
1573
+ type: "Link";
1574
+ linkType: "Space";
1575
+ id: string;
1576
+ };
1577
+ } | undefined;
1578
+ environment?: {
1579
+ sys: {
1580
+ type: "Link";
1581
+ linkType: "Environment";
1582
+ id: string;
1583
+ };
1584
+ } | undefined;
1585
+ type: string;
1586
+ id: string;
1587
+ createdAt: string;
1588
+ updatedAt: string;
1589
+ locale: string;
1590
+ contentType: {
1591
+ sys: {
1592
+ type: "Link";
1593
+ linkType: "ContentType";
1594
+ id: string;
1595
+ };
1596
+ };
1597
+ }>;
1598
+ fields: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
1599
+ metadata: z.ZodObject<{
1600
+ tags: z.ZodArray<z.ZodObject<{
1601
+ sys: z.ZodObject<z.extendShape<{
1602
+ type: z.ZodLiteral<"Link">;
1603
+ linkType: z.ZodString;
1604
+ id: z.ZodString;
1605
+ }, {
1606
+ linkType: z.ZodLiteral<"Tag">;
1607
+ }>, "strip", z.ZodTypeAny, {
1608
+ type: "Link";
1609
+ linkType: "Tag";
1610
+ id: string;
1611
+ }, {
1612
+ type: "Link";
1613
+ linkType: "Tag";
1614
+ id: string;
1615
+ }>;
1616
+ }, "strip", z.ZodTypeAny, {
1617
+ sys: {
1618
+ type: "Link";
1619
+ linkType: "Tag";
1620
+ id: string;
1621
+ };
1622
+ }, {
1623
+ sys: {
1624
+ type: "Link";
1625
+ linkType: "Tag";
1626
+ id: string;
1627
+ };
1628
+ }>, "many">;
1629
+ }, "strip", z.ZodTypeAny, {
1630
+ tags: {
1631
+ sys: {
1632
+ type: "Link";
1633
+ linkType: "Tag";
1634
+ id: string;
1635
+ };
1636
+ }[];
1637
+ }, {
1638
+ tags: {
1639
+ sys: {
1640
+ type: "Link";
1641
+ linkType: "Tag";
1642
+ id: string;
1643
+ };
1644
+ }[];
1645
+ }>;
1646
+ }, "strip", z.ZodTypeAny, {
1647
+ sys: {
1648
+ revision?: number | undefined;
1649
+ space?: {
1650
+ sys: {
1651
+ type: "Link";
1652
+ linkType: "Space";
1653
+ id: string;
1654
+ };
1655
+ } | undefined;
1656
+ environment?: {
1657
+ sys: {
1658
+ type: "Link";
1659
+ linkType: "Environment";
1660
+ id: string;
1661
+ };
1662
+ } | undefined;
1663
+ type: string;
1664
+ id: string;
1665
+ createdAt: string;
1666
+ updatedAt: string;
1667
+ locale: string;
1668
+ contentType: {
1669
+ sys: {
1670
+ type: "Link";
1671
+ linkType: "ContentType";
1672
+ id: string;
1673
+ };
1674
+ };
1675
+ };
1676
+ fields: {};
1677
+ metadata: {
1678
+ tags: {
1679
+ sys: {
1680
+ type: "Link";
1681
+ linkType: "Tag";
1682
+ id: string;
1683
+ };
1684
+ }[];
1685
+ };
1686
+ }, {
1687
+ sys: {
1688
+ revision?: number | undefined;
1689
+ space?: {
1690
+ sys: {
1691
+ type: "Link";
1692
+ linkType: "Space";
1693
+ id: string;
1694
+ };
1695
+ } | undefined;
1696
+ environment?: {
1697
+ sys: {
1698
+ type: "Link";
1699
+ linkType: "Environment";
1700
+ id: string;
1701
+ };
1702
+ } | undefined;
1703
+ type: string;
1704
+ id: string;
1705
+ createdAt: string;
1706
+ updatedAt: string;
1707
+ locale: string;
1708
+ contentType: {
1709
+ sys: {
1710
+ type: "Link";
1711
+ linkType: "ContentType";
1712
+ id: string;
1713
+ };
1714
+ };
1715
+ };
1716
+ fields: {};
1717
+ metadata: {
1718
+ tags: {
1719
+ sys: {
1720
+ type: "Link";
1721
+ linkType: "Tag";
1722
+ id: string;
1723
+ };
1724
+ }[];
1725
+ };
1726
+ }>, "many">>;
1727
+ }, "strip", z.ZodTypeAny, {
1728
+ nt_config?: {
1729
+ distribution: number[];
1730
+ traffic: number;
1731
+ components: {
1732
+ baseline: {
1733
+ id: string;
1734
+ };
1735
+ variants: {
1736
+ id: string;
1737
+ hidden: boolean;
1738
+ }[];
1739
+ }[];
1740
+ } | null | undefined;
1741
+ nt_audience?: {
1742
+ sys: {
1743
+ revision?: number | undefined;
1744
+ space?: {
1745
+ sys: {
1746
+ type: "Link";
1747
+ linkType: "Space";
1748
+ id: string;
1749
+ };
1750
+ } | undefined;
1751
+ environment?: {
1752
+ sys: {
1753
+ type: "Link";
1754
+ linkType: "Environment";
1755
+ id: string;
1756
+ };
1757
+ } | undefined;
1758
+ type: string;
1759
+ id: string;
1760
+ createdAt: string;
1761
+ updatedAt: string;
1762
+ locale: string;
1763
+ contentType: {
1764
+ sys: {
1765
+ type: "Link";
1766
+ linkType: "ContentType";
1767
+ id: string;
1768
+ };
1769
+ };
1770
+ };
1771
+ fields: {
1772
+ nt_name: string;
1773
+ nt_audience_id: string;
1774
+ };
1775
+ metadata: {
1776
+ tags: {
1777
+ sys: {
1778
+ type: "Link";
1779
+ linkType: "Tag";
1780
+ id: string;
1781
+ };
1782
+ }[];
1783
+ };
1784
+ } | null | undefined;
1785
+ nt_name: string;
1786
+ nt_type: "nt_experiment" | "nt_personalization";
1787
+ nt_variants: {
1788
+ sys: {
1789
+ revision?: number | undefined;
1790
+ space?: {
1791
+ sys: {
1792
+ type: "Link";
1793
+ linkType: "Space";
1794
+ id: string;
1795
+ };
1796
+ } | undefined;
1797
+ environment?: {
1798
+ sys: {
1799
+ type: "Link";
1800
+ linkType: "Environment";
1801
+ id: string;
1802
+ };
1803
+ } | undefined;
1804
+ type: string;
1805
+ id: string;
1806
+ createdAt: string;
1807
+ updatedAt: string;
1808
+ locale: string;
1809
+ contentType: {
1810
+ sys: {
1811
+ type: "Link";
1812
+ linkType: "ContentType";
1813
+ id: string;
1814
+ };
1815
+ };
1816
+ };
1817
+ fields: {};
1818
+ metadata: {
1819
+ tags: {
1820
+ sys: {
1821
+ type: "Link";
1822
+ linkType: "Tag";
1823
+ id: string;
1824
+ };
1825
+ }[];
1826
+ };
1827
+ }[];
1828
+ }, {
1829
+ nt_config?: {
1830
+ distribution: number[];
1831
+ traffic: number;
1832
+ components: {
1833
+ baseline: {
1834
+ id: string;
1835
+ };
1836
+ variants: {
1837
+ id: string;
1838
+ hidden: boolean;
1839
+ }[];
1840
+ }[];
1841
+ } | null | undefined;
1842
+ nt_audience?: {
1843
+ sys: {
1844
+ revision?: number | undefined;
1845
+ space?: {
1846
+ sys: {
1847
+ type: "Link";
1848
+ linkType: "Space";
1849
+ id: string;
1850
+ };
1851
+ } | undefined;
1852
+ environment?: {
1853
+ sys: {
1854
+ type: "Link";
1855
+ linkType: "Environment";
1856
+ id: string;
1857
+ };
1858
+ } | undefined;
1859
+ type: string;
1860
+ id: string;
1861
+ createdAt: string;
1862
+ updatedAt: string;
1863
+ locale: string;
1864
+ contentType: {
1865
+ sys: {
1866
+ type: "Link";
1867
+ linkType: "ContentType";
1868
+ id: string;
1869
+ };
1870
+ };
1871
+ };
1872
+ fields: {
1873
+ nt_name: string;
1874
+ nt_audience_id: string;
1875
+ };
1876
+ metadata: {
1877
+ tags: {
1878
+ sys: {
1879
+ type: "Link";
1880
+ linkType: "Tag";
1881
+ id: string;
1882
+ };
1883
+ }[];
1884
+ };
1885
+ } | null | undefined;
1886
+ nt_variants?: {
1887
+ sys: {
1888
+ revision?: number | undefined;
1889
+ space?: {
1890
+ sys: {
1891
+ type: "Link";
1892
+ linkType: "Space";
1893
+ id: string;
1894
+ };
1895
+ } | undefined;
1896
+ environment?: {
1897
+ sys: {
1898
+ type: "Link";
1899
+ linkType: "Environment";
1900
+ id: string;
1901
+ };
1902
+ } | undefined;
1903
+ type: string;
1904
+ id: string;
1905
+ createdAt: string;
1906
+ updatedAt: string;
1907
+ locale: string;
1908
+ contentType: {
1909
+ sys: {
1910
+ type: "Link";
1911
+ linkType: "ContentType";
1912
+ id: string;
1913
+ };
1914
+ };
1915
+ };
1916
+ fields: {};
1917
+ metadata: {
1918
+ tags: {
1919
+ sys: {
1920
+ type: "Link";
1921
+ linkType: "Tag";
1922
+ id: string;
1923
+ };
1924
+ }[];
1925
+ };
1926
+ }[] | undefined;
1927
+ nt_name: string;
1928
+ nt_type: "nt_experiment" | "nt_personalization";
1929
+ }>;
1930
+ }>, "strip", z.ZodTypeAny, {
1931
+ sys: {
1932
+ revision?: number | undefined;
1933
+ space?: {
1934
+ sys: {
1935
+ type: "Link";
1936
+ linkType: "Space";
1937
+ id: string;
1938
+ };
1939
+ } | undefined;
1940
+ environment?: {
1941
+ sys: {
1942
+ type: "Link";
1943
+ linkType: "Environment";
1944
+ id: string;
1945
+ };
1946
+ } | undefined;
1947
+ type: string;
1948
+ id: string;
1949
+ createdAt: string;
1950
+ updatedAt: string;
1951
+ locale: string;
1952
+ contentType: {
1953
+ sys: {
1954
+ type: "Link";
1955
+ linkType: "ContentType";
1956
+ id: string;
1957
+ };
1958
+ };
1959
+ };
1960
+ fields: {
1961
+ nt_config?: {
1962
+ distribution: number[];
1963
+ traffic: number;
1964
+ components: {
1965
+ baseline: {
1966
+ id: string;
1967
+ };
1968
+ variants: {
1969
+ id: string;
1970
+ hidden: boolean;
1971
+ }[];
1972
+ }[];
1973
+ } | null | undefined;
1974
+ nt_audience?: {
1975
+ sys: {
1976
+ revision?: number | undefined;
1977
+ space?: {
1978
+ sys: {
1979
+ type: "Link";
1980
+ linkType: "Space";
1981
+ id: string;
1982
+ };
1983
+ } | undefined;
1984
+ environment?: {
1985
+ sys: {
1986
+ type: "Link";
1987
+ linkType: "Environment";
1988
+ id: string;
1989
+ };
1990
+ } | undefined;
1991
+ type: string;
1992
+ id: string;
1993
+ createdAt: string;
1994
+ updatedAt: string;
1995
+ locale: string;
1996
+ contentType: {
1997
+ sys: {
1998
+ type: "Link";
1999
+ linkType: "ContentType";
2000
+ id: string;
2001
+ };
2002
+ };
2003
+ };
2004
+ fields: {
2005
+ nt_name: string;
2006
+ nt_audience_id: string;
2007
+ };
2008
+ metadata: {
2009
+ tags: {
2010
+ sys: {
2011
+ type: "Link";
2012
+ linkType: "Tag";
2013
+ id: string;
2014
+ };
2015
+ }[];
2016
+ };
2017
+ } | null | undefined;
2018
+ nt_name: string;
2019
+ nt_type: "nt_experiment" | "nt_personalization";
2020
+ nt_variants: {
2021
+ sys: {
2022
+ revision?: number | undefined;
2023
+ space?: {
2024
+ sys: {
2025
+ type: "Link";
2026
+ linkType: "Space";
2027
+ id: string;
2028
+ };
2029
+ } | undefined;
2030
+ environment?: {
2031
+ sys: {
2032
+ type: "Link";
2033
+ linkType: "Environment";
2034
+ id: string;
2035
+ };
2036
+ } | undefined;
2037
+ type: string;
2038
+ id: string;
2039
+ createdAt: string;
2040
+ updatedAt: string;
2041
+ locale: string;
2042
+ contentType: {
2043
+ sys: {
2044
+ type: "Link";
2045
+ linkType: "ContentType";
2046
+ id: string;
2047
+ };
2048
+ };
2049
+ };
2050
+ fields: {};
2051
+ metadata: {
2052
+ tags: {
2053
+ sys: {
2054
+ type: "Link";
2055
+ linkType: "Tag";
2056
+ id: string;
2057
+ };
2058
+ }[];
2059
+ };
2060
+ }[];
2061
+ };
2062
+ metadata: {
2063
+ tags: {
2064
+ sys: {
2065
+ type: "Link";
2066
+ linkType: "Tag";
2067
+ id: string;
2068
+ };
2069
+ }[];
2070
+ };
2071
+ }, {
2072
+ sys: {
2073
+ revision?: number | undefined;
2074
+ space?: {
2075
+ sys: {
2076
+ type: "Link";
2077
+ linkType: "Space";
2078
+ id: string;
2079
+ };
2080
+ } | undefined;
2081
+ environment?: {
2082
+ sys: {
2083
+ type: "Link";
2084
+ linkType: "Environment";
2085
+ id: string;
2086
+ };
2087
+ } | undefined;
2088
+ type: string;
2089
+ id: string;
2090
+ createdAt: string;
2091
+ updatedAt: string;
2092
+ locale: string;
2093
+ contentType: {
2094
+ sys: {
2095
+ type: "Link";
2096
+ linkType: "ContentType";
2097
+ id: string;
2098
+ };
2099
+ };
2100
+ };
2101
+ fields: {
2102
+ nt_config?: {
2103
+ distribution: number[];
2104
+ traffic: number;
2105
+ components: {
2106
+ baseline: {
2107
+ id: string;
2108
+ };
2109
+ variants: {
2110
+ id: string;
2111
+ hidden: boolean;
2112
+ }[];
2113
+ }[];
2114
+ } | null | undefined;
2115
+ nt_audience?: {
2116
+ sys: {
2117
+ revision?: number | undefined;
2118
+ space?: {
2119
+ sys: {
2120
+ type: "Link";
2121
+ linkType: "Space";
2122
+ id: string;
2123
+ };
2124
+ } | undefined;
2125
+ environment?: {
2126
+ sys: {
2127
+ type: "Link";
2128
+ linkType: "Environment";
2129
+ id: string;
2130
+ };
2131
+ } | undefined;
2132
+ type: string;
2133
+ id: string;
2134
+ createdAt: string;
2135
+ updatedAt: string;
2136
+ locale: string;
2137
+ contentType: {
2138
+ sys: {
2139
+ type: "Link";
2140
+ linkType: "ContentType";
2141
+ id: string;
2142
+ };
2143
+ };
2144
+ };
2145
+ fields: {
2146
+ nt_name: string;
2147
+ nt_audience_id: string;
2148
+ };
2149
+ metadata: {
2150
+ tags: {
2151
+ sys: {
2152
+ type: "Link";
2153
+ linkType: "Tag";
2154
+ id: string;
2155
+ };
2156
+ }[];
2157
+ };
2158
+ } | null | undefined;
2159
+ nt_variants?: {
2160
+ sys: {
2161
+ revision?: number | undefined;
2162
+ space?: {
2163
+ sys: {
2164
+ type: "Link";
2165
+ linkType: "Space";
2166
+ id: string;
2167
+ };
2168
+ } | undefined;
2169
+ environment?: {
2170
+ sys: {
2171
+ type: "Link";
2172
+ linkType: "Environment";
2173
+ id: string;
2174
+ };
2175
+ } | undefined;
2176
+ type: string;
2177
+ id: string;
2178
+ createdAt: string;
2179
+ updatedAt: string;
2180
+ locale: string;
2181
+ contentType: {
2182
+ sys: {
2183
+ type: "Link";
2184
+ linkType: "ContentType";
2185
+ id: string;
2186
+ };
2187
+ };
2188
+ };
2189
+ fields: {};
2190
+ metadata: {
2191
+ tags: {
2192
+ sys: {
2193
+ type: "Link";
2194
+ linkType: "Tag";
2195
+ id: string;
2196
+ };
2197
+ }[];
2198
+ };
2199
+ }[] | undefined;
2200
+ nt_name: string;
2201
+ nt_type: "nt_experiment" | "nt_personalization";
2202
+ };
2203
+ metadata: {
2204
+ tags: {
2205
+ sys: {
2206
+ type: "Link";
2207
+ linkType: "Tag";
2208
+ id: string;
2209
+ };
2210
+ }[];
2211
+ };
2212
+ }>;
2213
+ export declare type ExperienceEntry = z.infer<typeof ExperienceEntry>;