@ninetailed/experience.js-utils-contentful 3.2.1 → 3.2.2
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/index.cjs +2 -2
- package/index.js +2 -2
- package/lib/AudienceMapper.d.ts +0 -1
- package/lib/ExperienceMapper.d.ts +2 -4
- package/lib/__test__/contentful-generated-types.d.ts +83 -0
- package/lib/__test__/ctfHero.d.ts +2 -0
- package/lib/isEntry.d.ts +1 -1
- package/package.json +4 -4
- package/types/AudienceEntry.d.ts +3 -13
- package/types/BaselineWithExperiencesEntry.d.ts +37 -129
- package/types/Entry.d.ts +33 -137
- package/types/EntryFields.d.ts +2 -6
- package/types/ExperienceEntry.d.ts +606 -1197
- package/types/ExperimentEntry.d.ts +25 -79
package/types/Entry.d.ts
CHANGED
|
@@ -153,11 +153,7 @@ export declare const EntrySchema: z.ZodObject<{
|
|
|
153
153
|
} | undefined;
|
|
154
154
|
id: string;
|
|
155
155
|
}>;
|
|
156
|
-
fields: z.ZodObject<{}, "
|
|
157
|
-
[x: string]: unknown;
|
|
158
|
-
}, {
|
|
159
|
-
[x: string]: unknown;
|
|
160
|
-
}>;
|
|
156
|
+
fields: z.ZodObject<{}, "passthrough", z.ZodTypeAny, {}, {}>;
|
|
161
157
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
162
158
|
tags: z.ZodArray<z.ZodObject<{
|
|
163
159
|
sys: z.ZodObject<z.extendShape<{
|
|
@@ -244,9 +240,7 @@ export declare const EntrySchema: z.ZodObject<{
|
|
|
244
240
|
} | undefined;
|
|
245
241
|
id: string;
|
|
246
242
|
};
|
|
247
|
-
fields: {
|
|
248
|
-
[x: string]: unknown;
|
|
249
|
-
};
|
|
243
|
+
fields: {};
|
|
250
244
|
}, {
|
|
251
245
|
metadata?: {
|
|
252
246
|
tags: {
|
|
@@ -286,15 +280,13 @@ export declare const EntrySchema: z.ZodObject<{
|
|
|
286
280
|
} | undefined;
|
|
287
281
|
id: string;
|
|
288
282
|
};
|
|
289
|
-
fields: {
|
|
290
|
-
[x: string]: unknown;
|
|
291
|
-
};
|
|
283
|
+
fields: {};
|
|
292
284
|
}>;
|
|
293
285
|
export type EntryLike<T extends EntryFields = EntryFields> = FieldsOverride<z.input<typeof EntrySchema>, T>;
|
|
294
286
|
export type Entry<T extends EntryFields = EntryFields> = FieldsOverride<z.infer<typeof EntrySchema>, T>;
|
|
295
287
|
export declare const Entry: {
|
|
296
|
-
parse: <T extends
|
|
297
|
-
safeParse: <T_1 extends
|
|
288
|
+
parse: <T extends {}>(input: EntryLike<T>) => Entry<T>;
|
|
289
|
+
safeParse: <T_1 extends {}>(input: EntryLike<T_1>) => z.SafeParseError<{
|
|
298
290
|
metadata?: {
|
|
299
291
|
tags: {
|
|
300
292
|
sys: {
|
|
@@ -333,9 +325,7 @@ export declare const Entry: {
|
|
|
333
325
|
} | undefined;
|
|
334
326
|
id: string;
|
|
335
327
|
};
|
|
336
|
-
fields: {
|
|
337
|
-
[x: string]: unknown;
|
|
338
|
-
};
|
|
328
|
+
fields: {};
|
|
339
329
|
}> | {
|
|
340
330
|
data: {
|
|
341
331
|
fields: T_1;
|
|
@@ -532,11 +522,7 @@ export declare const Entry: {
|
|
|
532
522
|
} | undefined;
|
|
533
523
|
id: string;
|
|
534
524
|
}>;
|
|
535
|
-
fields: z.ZodObject<{}, "
|
|
536
|
-
[x: string]: unknown;
|
|
537
|
-
}, {
|
|
538
|
-
[x: string]: unknown;
|
|
539
|
-
}>;
|
|
525
|
+
fields: z.ZodObject<{}, "passthrough", z.ZodTypeAny, {}, {}>;
|
|
540
526
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
541
527
|
tags: z.ZodArray<z.ZodObject<{
|
|
542
528
|
sys: z.ZodObject<z.extendShape<{
|
|
@@ -623,9 +609,7 @@ export declare const Entry: {
|
|
|
623
609
|
} | undefined;
|
|
624
610
|
id: string;
|
|
625
611
|
};
|
|
626
|
-
fields: {
|
|
627
|
-
[x: string]: unknown;
|
|
628
|
-
};
|
|
612
|
+
fields: {};
|
|
629
613
|
}, {
|
|
630
614
|
metadata?: {
|
|
631
615
|
tags: {
|
|
@@ -665,9 +649,7 @@ export declare const Entry: {
|
|
|
665
649
|
} | undefined;
|
|
666
650
|
id: string;
|
|
667
651
|
};
|
|
668
|
-
fields: {
|
|
669
|
-
[x: string]: unknown;
|
|
670
|
-
};
|
|
652
|
+
fields: {};
|
|
671
653
|
}>;
|
|
672
654
|
augment: <Augmentation extends z.ZodRawShape>(augmentation: Augmentation) => z.ZodObject<z.extendShape<{
|
|
673
655
|
sys: z.ZodObject<{
|
|
@@ -821,11 +803,7 @@ export declare const Entry: {
|
|
|
821
803
|
} | undefined;
|
|
822
804
|
id: string;
|
|
823
805
|
}>;
|
|
824
|
-
fields: z.ZodObject<{}, "
|
|
825
|
-
[x: string]: unknown;
|
|
826
|
-
}, {
|
|
827
|
-
[x: string]: unknown;
|
|
828
|
-
}>;
|
|
806
|
+
fields: z.ZodObject<{}, "passthrough", z.ZodTypeAny, {}, {}>;
|
|
829
807
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
830
808
|
tags: z.ZodArray<z.ZodObject<{
|
|
831
809
|
sys: z.ZodObject<z.extendShape<{
|
|
@@ -1025,11 +1003,7 @@ export declare const Entry: {
|
|
|
1025
1003
|
} | undefined;
|
|
1026
1004
|
id: string;
|
|
1027
1005
|
}>;
|
|
1028
|
-
fields: z.ZodObject<{}, "
|
|
1029
|
-
[x: string]: unknown;
|
|
1030
|
-
}, {
|
|
1031
|
-
[x: string]: unknown;
|
|
1032
|
-
}>;
|
|
1006
|
+
fields: z.ZodObject<{}, "passthrough", z.ZodTypeAny, {}, {}>;
|
|
1033
1007
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
1034
1008
|
tags: z.ZodArray<z.ZodObject<{
|
|
1035
1009
|
sys: z.ZodObject<z.extendShape<{
|
|
@@ -1229,11 +1203,7 @@ export declare const Entry: {
|
|
|
1229
1203
|
} | undefined;
|
|
1230
1204
|
id: string;
|
|
1231
1205
|
}>;
|
|
1232
|
-
fields: z.ZodObject<{}, "
|
|
1233
|
-
[x: string]: unknown;
|
|
1234
|
-
}, {
|
|
1235
|
-
[x: string]: unknown;
|
|
1236
|
-
}>;
|
|
1206
|
+
fields: z.ZodObject<{}, "passthrough", z.ZodTypeAny, {}, {}>;
|
|
1237
1207
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
1238
1208
|
tags: z.ZodArray<z.ZodObject<{
|
|
1239
1209
|
sys: z.ZodObject<z.extendShape<{
|
|
@@ -1433,11 +1403,7 @@ export declare const Entry: {
|
|
|
1433
1403
|
} | undefined;
|
|
1434
1404
|
id: string;
|
|
1435
1405
|
}>;
|
|
1436
|
-
fields: z.ZodObject<{}, "
|
|
1437
|
-
[x: string]: unknown;
|
|
1438
|
-
}, {
|
|
1439
|
-
[x: string]: unknown;
|
|
1440
|
-
}>;
|
|
1406
|
+
fields: z.ZodObject<{}, "passthrough", z.ZodTypeAny, {}, {}>;
|
|
1441
1407
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
1442
1408
|
tags: z.ZodArray<z.ZodObject<{
|
|
1443
1409
|
sys: z.ZodObject<z.extendShape<{
|
|
@@ -1637,11 +1603,7 @@ export declare const Entry: {
|
|
|
1637
1603
|
} | undefined;
|
|
1638
1604
|
id: string;
|
|
1639
1605
|
}>;
|
|
1640
|
-
fields: z.ZodObject<{}, "
|
|
1641
|
-
[x: string]: unknown;
|
|
1642
|
-
}, {
|
|
1643
|
-
[x: string]: unknown;
|
|
1644
|
-
}>;
|
|
1606
|
+
fields: z.ZodObject<{}, "passthrough", z.ZodTypeAny, {}, {}>;
|
|
1645
1607
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
1646
1608
|
tags: z.ZodArray<z.ZodObject<{
|
|
1647
1609
|
sys: z.ZodObject<z.extendShape<{
|
|
@@ -1841,11 +1803,7 @@ export declare const Entry: {
|
|
|
1841
1803
|
} | undefined;
|
|
1842
1804
|
id: string;
|
|
1843
1805
|
}>;
|
|
1844
|
-
fields: z.ZodObject<{}, "
|
|
1845
|
-
[x: string]: unknown;
|
|
1846
|
-
}, {
|
|
1847
|
-
[x: string]: unknown;
|
|
1848
|
-
}>;
|
|
1806
|
+
fields: z.ZodObject<{}, "passthrough", z.ZodTypeAny, {}, {}>;
|
|
1849
1807
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
1850
1808
|
tags: z.ZodArray<z.ZodObject<{
|
|
1851
1809
|
sys: z.ZodObject<z.extendShape<{
|
|
@@ -2045,11 +2003,7 @@ export declare const Entry: {
|
|
|
2045
2003
|
} | undefined;
|
|
2046
2004
|
id: string;
|
|
2047
2005
|
}>;
|
|
2048
|
-
fields: z.ZodObject<{}, "
|
|
2049
|
-
[x: string]: unknown;
|
|
2050
|
-
}, {
|
|
2051
|
-
[x: string]: unknown;
|
|
2052
|
-
}>;
|
|
2006
|
+
fields: z.ZodObject<{}, "passthrough", z.ZodTypeAny, {}, {}>;
|
|
2053
2007
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
2054
2008
|
tags: z.ZodArray<z.ZodObject<{
|
|
2055
2009
|
sys: z.ZodObject<z.extendShape<{
|
|
@@ -2249,11 +2203,7 @@ export declare const Entry: {
|
|
|
2249
2203
|
} | undefined;
|
|
2250
2204
|
id: string;
|
|
2251
2205
|
}>;
|
|
2252
|
-
fields: z.ZodObject<{}, "
|
|
2253
|
-
[x: string]: unknown;
|
|
2254
|
-
}, {
|
|
2255
|
-
[x: string]: unknown;
|
|
2256
|
-
}>;
|
|
2206
|
+
fields: z.ZodObject<{}, "passthrough", z.ZodTypeAny, {}, {}>;
|
|
2257
2207
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
2258
2208
|
tags: z.ZodArray<z.ZodObject<{
|
|
2259
2209
|
sys: z.ZodObject<z.extendShape<{
|
|
@@ -2453,11 +2403,7 @@ export declare const Entry: {
|
|
|
2453
2403
|
} | undefined;
|
|
2454
2404
|
id: string;
|
|
2455
2405
|
}>;
|
|
2456
|
-
fields: z.ZodObject<{}, "
|
|
2457
|
-
[x: string]: unknown;
|
|
2458
|
-
}, {
|
|
2459
|
-
[x: string]: unknown;
|
|
2460
|
-
}>;
|
|
2406
|
+
fields: z.ZodObject<{}, "passthrough", z.ZodTypeAny, {}, {}>;
|
|
2461
2407
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
2462
2408
|
tags: z.ZodArray<z.ZodObject<{
|
|
2463
2409
|
sys: z.ZodObject<z.extendShape<{
|
|
@@ -2658,11 +2604,7 @@ export declare const Entry: {
|
|
|
2658
2604
|
} | undefined;
|
|
2659
2605
|
id: string;
|
|
2660
2606
|
}>;
|
|
2661
|
-
fields: z.ZodObject<{}, "
|
|
2662
|
-
[x: string]: unknown;
|
|
2663
|
-
}, {
|
|
2664
|
-
[x: string]: unknown;
|
|
2665
|
-
}>;
|
|
2607
|
+
fields: z.ZodObject<{}, "passthrough", z.ZodTypeAny, {}, {}>;
|
|
2666
2608
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
2667
2609
|
tags: z.ZodArray<z.ZodObject<{
|
|
2668
2610
|
sys: z.ZodObject<z.extendShape<{
|
|
@@ -2862,11 +2804,7 @@ export declare const Entry: {
|
|
|
2862
2804
|
} | undefined;
|
|
2863
2805
|
id: string;
|
|
2864
2806
|
}>;
|
|
2865
|
-
fields: z.ZodObject<{}, "
|
|
2866
|
-
[x: string]: unknown;
|
|
2867
|
-
}, {
|
|
2868
|
-
[x: string]: unknown;
|
|
2869
|
-
}>;
|
|
2807
|
+
fields: z.ZodObject<{}, "passthrough", z.ZodTypeAny, {}, {}>;
|
|
2870
2808
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
2871
2809
|
tags: z.ZodArray<z.ZodObject<{
|
|
2872
2810
|
sys: z.ZodObject<z.extendShape<{
|
|
@@ -3066,11 +3004,7 @@ export declare const Entry: {
|
|
|
3066
3004
|
} | undefined;
|
|
3067
3005
|
id: string;
|
|
3068
3006
|
}>;
|
|
3069
|
-
fields: z.ZodObject<{}, "
|
|
3070
|
-
[x: string]: unknown;
|
|
3071
|
-
}, {
|
|
3072
|
-
[x: string]: unknown;
|
|
3073
|
-
}>;
|
|
3007
|
+
fields: z.ZodObject<{}, "passthrough", z.ZodTypeAny, {}, {}>;
|
|
3074
3008
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
3075
3009
|
tags: z.ZodArray<z.ZodObject<{
|
|
3076
3010
|
sys: z.ZodObject<z.extendShape<{
|
|
@@ -3270,11 +3204,7 @@ export declare const Entry: {
|
|
|
3270
3204
|
} | undefined;
|
|
3271
3205
|
id: string;
|
|
3272
3206
|
}>;
|
|
3273
|
-
fields: z.ZodObject<{}, "
|
|
3274
|
-
[x: string]: unknown;
|
|
3275
|
-
}, {
|
|
3276
|
-
[x: string]: unknown;
|
|
3277
|
-
}>;
|
|
3207
|
+
fields: z.ZodObject<{}, "passthrough", z.ZodTypeAny, {}, {}>;
|
|
3278
3208
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
3279
3209
|
tags: z.ZodArray<z.ZodObject<{
|
|
3280
3210
|
sys: z.ZodObject<z.extendShape<{
|
|
@@ -3474,11 +3404,7 @@ export declare const Entry: {
|
|
|
3474
3404
|
} | undefined;
|
|
3475
3405
|
id: string;
|
|
3476
3406
|
}>;
|
|
3477
|
-
fields: z.ZodObject<{}, "
|
|
3478
|
-
[x: string]: unknown;
|
|
3479
|
-
}, {
|
|
3480
|
-
[x: string]: unknown;
|
|
3481
|
-
}>;
|
|
3407
|
+
fields: z.ZodObject<{}, "passthrough", z.ZodTypeAny, {}, {}>;
|
|
3482
3408
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
3483
3409
|
tags: z.ZodArray<z.ZodObject<{
|
|
3484
3410
|
sys: z.ZodObject<z.extendShape<{
|
|
@@ -3678,11 +3604,7 @@ export declare const Entry: {
|
|
|
3678
3604
|
} | undefined;
|
|
3679
3605
|
id: string;
|
|
3680
3606
|
}>;
|
|
3681
|
-
fields: z.ZodObject<{}, "
|
|
3682
|
-
[x: string]: unknown;
|
|
3683
|
-
}, {
|
|
3684
|
-
[x: string]: unknown;
|
|
3685
|
-
}>;
|
|
3607
|
+
fields: z.ZodObject<{}, "passthrough", z.ZodTypeAny, {}, {}>;
|
|
3686
3608
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
3687
3609
|
tags: z.ZodArray<z.ZodObject<{
|
|
3688
3610
|
sys: z.ZodObject<z.extendShape<{
|
|
@@ -3882,11 +3804,7 @@ export declare const Entry: {
|
|
|
3882
3804
|
} | undefined;
|
|
3883
3805
|
id: string;
|
|
3884
3806
|
}>;
|
|
3885
|
-
fields: z.ZodObject<{}, "
|
|
3886
|
-
[x: string]: unknown;
|
|
3887
|
-
}, {
|
|
3888
|
-
[x: string]: unknown;
|
|
3889
|
-
}>;
|
|
3807
|
+
fields: z.ZodObject<{}, "passthrough", z.ZodTypeAny, {}, {}>;
|
|
3890
3808
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
3891
3809
|
tags: z.ZodArray<z.ZodObject<{
|
|
3892
3810
|
sys: z.ZodObject<z.extendShape<{
|
|
@@ -4086,11 +4004,7 @@ export declare const Entry: {
|
|
|
4086
4004
|
} | undefined;
|
|
4087
4005
|
id: string;
|
|
4088
4006
|
}>;
|
|
4089
|
-
fields: z.ZodObject<{}, "
|
|
4090
|
-
[x: string]: unknown;
|
|
4091
|
-
}, {
|
|
4092
|
-
[x: string]: unknown;
|
|
4093
|
-
}>;
|
|
4007
|
+
fields: z.ZodObject<{}, "passthrough", z.ZodTypeAny, {}, {}>;
|
|
4094
4008
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
4095
4009
|
tags: z.ZodArray<z.ZodObject<{
|
|
4096
4010
|
sys: z.ZodObject<z.extendShape<{
|
|
@@ -4290,11 +4204,7 @@ export declare const Entry: {
|
|
|
4290
4204
|
} | undefined;
|
|
4291
4205
|
id: string;
|
|
4292
4206
|
}>;
|
|
4293
|
-
fields: z.ZodObject<{}, "
|
|
4294
|
-
[x: string]: unknown;
|
|
4295
|
-
}, {
|
|
4296
|
-
[x: string]: unknown;
|
|
4297
|
-
}>;
|
|
4207
|
+
fields: z.ZodObject<{}, "passthrough", z.ZodTypeAny, {}, {}>;
|
|
4298
4208
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
4299
4209
|
tags: z.ZodArray<z.ZodObject<{
|
|
4300
4210
|
sys: z.ZodObject<z.extendShape<{
|
|
@@ -4382,9 +4292,7 @@ export declare const Entry: {
|
|
|
4382
4292
|
} | undefined;
|
|
4383
4293
|
id: string;
|
|
4384
4294
|
};
|
|
4385
|
-
fields: {
|
|
4386
|
-
[x: string]: unknown;
|
|
4387
|
-
};
|
|
4295
|
+
fields: {};
|
|
4388
4296
|
};
|
|
4389
4297
|
_output: {
|
|
4390
4298
|
metadata?: {
|
|
@@ -4425,9 +4333,7 @@ export declare const Entry: {
|
|
|
4425
4333
|
} | undefined;
|
|
4426
4334
|
id: string;
|
|
4427
4335
|
};
|
|
4428
|
-
fields: {
|
|
4429
|
-
[x: string]: unknown;
|
|
4430
|
-
};
|
|
4336
|
+
fields: {};
|
|
4431
4337
|
};
|
|
4432
4338
|
_input: {
|
|
4433
4339
|
metadata?: {
|
|
@@ -4468,9 +4374,7 @@ export declare const Entry: {
|
|
|
4468
4374
|
} | undefined;
|
|
4469
4375
|
id: string;
|
|
4470
4376
|
};
|
|
4471
|
-
fields: {
|
|
4472
|
-
[x: string]: unknown;
|
|
4473
|
-
};
|
|
4377
|
+
fields: {};
|
|
4474
4378
|
};
|
|
4475
4379
|
_def: z.ZodObjectDef<{
|
|
4476
4380
|
sys: z.ZodObject<{
|
|
@@ -4624,11 +4528,7 @@ export declare const Entry: {
|
|
|
4624
4528
|
} | undefined;
|
|
4625
4529
|
id: string;
|
|
4626
4530
|
}>;
|
|
4627
|
-
fields: z.ZodObject<{}, "
|
|
4628
|
-
[x: string]: unknown;
|
|
4629
|
-
}, {
|
|
4630
|
-
[x: string]: unknown;
|
|
4631
|
-
}>;
|
|
4531
|
+
fields: z.ZodObject<{}, "passthrough", z.ZodTypeAny, {}, {}>;
|
|
4632
4532
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
4633
4533
|
tags: z.ZodArray<z.ZodObject<{
|
|
4634
4534
|
sys: z.ZodObject<z.extendShape<{
|
|
@@ -4716,9 +4616,7 @@ export declare const Entry: {
|
|
|
4716
4616
|
} | undefined;
|
|
4717
4617
|
id: string;
|
|
4718
4618
|
};
|
|
4719
|
-
fields: {
|
|
4720
|
-
[x: string]: unknown;
|
|
4721
|
-
};
|
|
4619
|
+
fields: {};
|
|
4722
4620
|
}, {
|
|
4723
4621
|
metadata?: {
|
|
4724
4622
|
tags: {
|
|
@@ -4758,8 +4656,6 @@ export declare const Entry: {
|
|
|
4758
4656
|
} | undefined;
|
|
4759
4657
|
id: string;
|
|
4760
4658
|
};
|
|
4761
|
-
fields: {
|
|
4762
|
-
[x: string]: unknown;
|
|
4763
|
-
};
|
|
4659
|
+
fields: {};
|
|
4764
4660
|
}>>;
|
|
4765
4661
|
};
|
package/types/EntryFields.d.ts
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const EntryFields: z.ZodObject<{}, "
|
|
3
|
-
|
|
4
|
-
}, {
|
|
5
|
-
[x: string]: unknown;
|
|
6
|
-
}>;
|
|
7
|
-
export type EntryFields = object;
|
|
2
|
+
export declare const EntryFields: z.ZodObject<{}, "passthrough", z.ZodTypeAny, {}, {}>;
|
|
3
|
+
export type EntryFields = z.infer<typeof EntryFields>;
|