@ninetailed/experience.js-utils-contentful 3.5.0 → 3.6.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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ninetailed/experience.js-utils-contentful",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"contentful": "^9.1.32"
|
|
6
6
|
},
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
"type": "module",
|
|
10
10
|
"types": "./index.d.ts",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@ninetailed/experience.js-utils": "3.
|
|
13
|
-
"@ninetailed/experience.js": "3.
|
|
14
|
-
"@ninetailed/experience.js-shared": "3.
|
|
12
|
+
"@ninetailed/experience.js-utils": "3.6.0",
|
|
13
|
+
"@ninetailed/experience.js": "3.6.0",
|
|
14
|
+
"@ninetailed/experience.js-shared": "3.6.0",
|
|
15
15
|
"zod": "3.20.2"
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { EntryFields } from './EntryFields';
|
|
3
|
-
import { ExperienceEntry, ExperienceEntryLike
|
|
3
|
+
import { ExperienceEntry, ExperienceEntryLike } from './ExperienceEntry';
|
|
4
|
+
import { FieldsOverride } from './FieldsOverride';
|
|
4
5
|
declare const BaselineWithExperiencesEntryFields: z.ZodObject<z.extendShape<{}, {
|
|
5
6
|
nt_experiences: z.ZodArray<z.ZodObject<z.extendShape<{
|
|
6
7
|
sys: z.ZodObject<{
|
|
@@ -1663,7 +1664,12 @@ declare const BaselineWithExperiencesEntryFields: z.ZodObject<z.extendShape<{},
|
|
|
1663
1664
|
};
|
|
1664
1665
|
}[];
|
|
1665
1666
|
}>;
|
|
1666
|
-
export type
|
|
1667
|
+
export type BaselineWithExperiencesEntryFieldsLike<VariantFields extends EntryFields = EntryFields> = Omit<z.input<typeof BaselineWithExperiencesEntryFields>, 'nt_experiences'> & {
|
|
1668
|
+
nt_experiences?: ExperienceEntryLike<VariantFields>[];
|
|
1669
|
+
};
|
|
1670
|
+
export type BaselineWithExperiencesEntryFields<VariantFields extends EntryFields = EntryFields> = Omit<z.infer<typeof BaselineWithExperiencesEntryFields>, 'nt_experiences'> & {
|
|
1671
|
+
nt_experiences: ExperienceEntryLike<VariantFields>[];
|
|
1672
|
+
};
|
|
1667
1673
|
export declare const BaselineWithExperiencesEntrySchema: z.ZodObject<z.extendShape<{
|
|
1668
1674
|
sys: z.ZodObject<{
|
|
1669
1675
|
type: z.ZodOptional<z.ZodString>;
|
|
@@ -3898,10 +3904,8 @@ export declare const BaselineWithExperiencesEntrySchema: z.ZodObject<z.extendSha
|
|
|
3898
3904
|
}[];
|
|
3899
3905
|
};
|
|
3900
3906
|
}>;
|
|
3901
|
-
type BaselineWithExperiencesEntryInput = z.input<typeof
|
|
3902
|
-
export type BaselineWithExperiencesEntryLike<VariantFields extends EntryFields = EntryFields> =
|
|
3903
|
-
nt_experiences: ExperienceEntryLike<VariantFields>[];
|
|
3904
|
-
};
|
|
3907
|
+
type BaselineWithExperiencesEntryInput = z.input<typeof BaselineWithExperiencesEntrySchema>;
|
|
3908
|
+
export type BaselineWithExperiencesEntryLike<VariantFields extends EntryFields = EntryFields> = FieldsOverride<BaselineWithExperiencesEntryInput, BaselineWithExperiencesEntryFieldsLike<VariantFields>>;
|
|
3905
3909
|
type BaselineWithExperiencesEntryOutput = z.infer<typeof BaselineWithExperiencesEntrySchema>;
|
|
3906
3910
|
export type BaselineWithExperiencesEntry<VariantFields extends EntryFields = EntryFields> = Omit<BaselineWithExperiencesEntryOutput, 'nt_experiences'> & {
|
|
3907
3911
|
nt_experiences: ExperienceEntry<VariantFields>[];
|
|
@@ -202,6 +202,7 @@ export declare const ExperimentEntry: z.ZodObject<z.extendShape<z.extendShape<{
|
|
|
202
202
|
}, {
|
|
203
203
|
fields: z.ZodObject<{
|
|
204
204
|
nt_name: z.ZodString;
|
|
205
|
+
nt_description: z.ZodOptional<z.ZodString>;
|
|
205
206
|
nt_type: z.ZodUnion<[z.ZodString, z.ZodString]>;
|
|
206
207
|
nt_config: z.ZodEffects<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
207
208
|
distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
|
|
@@ -493,11 +494,14 @@ export declare const ExperimentEntry: z.ZodObject<z.extendShape<z.extendShape<{
|
|
|
493
494
|
}, {
|
|
494
495
|
fields: z.ZodObject<z.extendShape<{}, {
|
|
495
496
|
nt_name: z.ZodString;
|
|
497
|
+
nt_description: z.ZodOptional<z.ZodString>;
|
|
496
498
|
nt_audience_id: z.ZodString;
|
|
497
499
|
}>, "passthrough", z.ZodTypeAny, {
|
|
500
|
+
nt_description?: string | undefined;
|
|
498
501
|
nt_name: string;
|
|
499
502
|
nt_audience_id: string;
|
|
500
503
|
}, {
|
|
504
|
+
nt_description?: string | undefined;
|
|
501
505
|
nt_name: string;
|
|
502
506
|
nt_audience_id: string;
|
|
503
507
|
}>;
|
|
@@ -541,6 +545,7 @@ export declare const ExperimentEntry: z.ZodObject<z.extendShape<z.extendShape<{
|
|
|
541
545
|
id: string;
|
|
542
546
|
};
|
|
543
547
|
fields: {
|
|
548
|
+
nt_description?: string | undefined;
|
|
544
549
|
nt_name: string;
|
|
545
550
|
nt_audience_id: string;
|
|
546
551
|
};
|
|
@@ -584,6 +589,7 @@ export declare const ExperimentEntry: z.ZodObject<z.extendShape<z.extendShape<{
|
|
|
584
589
|
id: string;
|
|
585
590
|
};
|
|
586
591
|
fields: {
|
|
592
|
+
nt_description?: string | undefined;
|
|
587
593
|
nt_name: string;
|
|
588
594
|
nt_audience_id: string;
|
|
589
595
|
};
|
|
@@ -870,6 +876,7 @@ export declare const ExperimentEntry: z.ZodObject<z.extendShape<z.extendShape<{
|
|
|
870
876
|
fields: {};
|
|
871
877
|
}>, "many">>;
|
|
872
878
|
}, "strip", z.ZodTypeAny, {
|
|
879
|
+
nt_description?: string | undefined;
|
|
873
880
|
nt_audience?: {
|
|
874
881
|
metadata?: {
|
|
875
882
|
tags: {
|
|
@@ -910,6 +917,7 @@ export declare const ExperimentEntry: z.ZodObject<z.extendShape<z.extendShape<{
|
|
|
910
917
|
id: string;
|
|
911
918
|
};
|
|
912
919
|
fields: {
|
|
920
|
+
nt_description?: string | undefined;
|
|
913
921
|
nt_name: string;
|
|
914
922
|
nt_audience_id: string;
|
|
915
923
|
};
|
|
@@ -971,6 +979,7 @@ export declare const ExperimentEntry: z.ZodObject<z.extendShape<z.extendShape<{
|
|
|
971
979
|
}[];
|
|
972
980
|
};
|
|
973
981
|
}, {
|
|
982
|
+
nt_description?: string | undefined;
|
|
974
983
|
nt_config?: {
|
|
975
984
|
distribution?: number[] | undefined;
|
|
976
985
|
traffic?: number | undefined;
|
|
@@ -1024,6 +1033,7 @@ export declare const ExperimentEntry: z.ZodObject<z.extendShape<z.extendShape<{
|
|
|
1024
1033
|
id: string;
|
|
1025
1034
|
};
|
|
1026
1035
|
fields: {
|
|
1036
|
+
nt_description?: string | undefined;
|
|
1027
1037
|
nt_name: string;
|
|
1028
1038
|
nt_audience_id: string;
|
|
1029
1039
|
};
|
|
@@ -1075,6 +1085,7 @@ export declare const ExperimentEntry: z.ZodObject<z.extendShape<z.extendShape<{
|
|
|
1075
1085
|
}>, {
|
|
1076
1086
|
fields: z.ZodObject<z.extendShape<{
|
|
1077
1087
|
nt_name: z.ZodString;
|
|
1088
|
+
nt_description: z.ZodOptional<z.ZodString>;
|
|
1078
1089
|
nt_type: z.ZodUnion<[z.ZodString, z.ZodString]>;
|
|
1079
1090
|
nt_config: z.ZodEffects<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
1080
1091
|
distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
|
|
@@ -1366,11 +1377,14 @@ export declare const ExperimentEntry: z.ZodObject<z.extendShape<z.extendShape<{
|
|
|
1366
1377
|
}, {
|
|
1367
1378
|
fields: z.ZodObject<z.extendShape<{}, {
|
|
1368
1379
|
nt_name: z.ZodString;
|
|
1380
|
+
nt_description: z.ZodOptional<z.ZodString>;
|
|
1369
1381
|
nt_audience_id: z.ZodString;
|
|
1370
1382
|
}>, "passthrough", z.ZodTypeAny, {
|
|
1383
|
+
nt_description?: string | undefined;
|
|
1371
1384
|
nt_name: string;
|
|
1372
1385
|
nt_audience_id: string;
|
|
1373
1386
|
}, {
|
|
1387
|
+
nt_description?: string | undefined;
|
|
1374
1388
|
nt_name: string;
|
|
1375
1389
|
nt_audience_id: string;
|
|
1376
1390
|
}>;
|
|
@@ -1414,6 +1428,7 @@ export declare const ExperimentEntry: z.ZodObject<z.extendShape<z.extendShape<{
|
|
|
1414
1428
|
id: string;
|
|
1415
1429
|
};
|
|
1416
1430
|
fields: {
|
|
1431
|
+
nt_description?: string | undefined;
|
|
1417
1432
|
nt_name: string;
|
|
1418
1433
|
nt_audience_id: string;
|
|
1419
1434
|
};
|
|
@@ -1457,6 +1472,7 @@ export declare const ExperimentEntry: z.ZodObject<z.extendShape<z.extendShape<{
|
|
|
1457
1472
|
id: string;
|
|
1458
1473
|
};
|
|
1459
1474
|
fields: {
|
|
1475
|
+
nt_description?: string | undefined;
|
|
1460
1476
|
nt_name: string;
|
|
1461
1477
|
nt_audience_id: string;
|
|
1462
1478
|
};
|
|
@@ -1745,6 +1761,7 @@ export declare const ExperimentEntry: z.ZodObject<z.extendShape<z.extendShape<{
|
|
|
1745
1761
|
}, {
|
|
1746
1762
|
nt_type: z.ZodString;
|
|
1747
1763
|
}>, "strip", z.ZodTypeAny, {
|
|
1764
|
+
nt_description?: string | undefined;
|
|
1748
1765
|
nt_audience?: {
|
|
1749
1766
|
metadata?: {
|
|
1750
1767
|
tags: {
|
|
@@ -1785,6 +1802,7 @@ export declare const ExperimentEntry: z.ZodObject<z.extendShape<z.extendShape<{
|
|
|
1785
1802
|
id: string;
|
|
1786
1803
|
};
|
|
1787
1804
|
fields: {
|
|
1805
|
+
nt_description?: string | undefined;
|
|
1788
1806
|
nt_name: string;
|
|
1789
1807
|
nt_audience_id: string;
|
|
1790
1808
|
};
|
|
@@ -1846,6 +1864,7 @@ export declare const ExperimentEntry: z.ZodObject<z.extendShape<z.extendShape<{
|
|
|
1846
1864
|
}[];
|
|
1847
1865
|
};
|
|
1848
1866
|
}, {
|
|
1867
|
+
nt_description?: string | undefined;
|
|
1849
1868
|
nt_config?: {
|
|
1850
1869
|
distribution?: number[] | undefined;
|
|
1851
1870
|
traffic?: number | undefined;
|
|
@@ -1899,6 +1918,7 @@ export declare const ExperimentEntry: z.ZodObject<z.extendShape<z.extendShape<{
|
|
|
1899
1918
|
id: string;
|
|
1900
1919
|
};
|
|
1901
1920
|
fields: {
|
|
1921
|
+
nt_description?: string | undefined;
|
|
1902
1922
|
nt_name: string;
|
|
1903
1923
|
nt_audience_id: string;
|
|
1904
1924
|
};
|
|
@@ -1987,6 +2007,7 @@ export declare const ExperimentEntry: z.ZodObject<z.extendShape<z.extendShape<{
|
|
|
1987
2007
|
id: string;
|
|
1988
2008
|
};
|
|
1989
2009
|
fields: {
|
|
2010
|
+
nt_description?: string | undefined;
|
|
1990
2011
|
nt_audience?: {
|
|
1991
2012
|
metadata?: {
|
|
1992
2013
|
tags: {
|
|
@@ -2027,6 +2048,7 @@ export declare const ExperimentEntry: z.ZodObject<z.extendShape<z.extendShape<{
|
|
|
2027
2048
|
id: string;
|
|
2028
2049
|
};
|
|
2029
2050
|
fields: {
|
|
2051
|
+
nt_description?: string | undefined;
|
|
2030
2052
|
nt_name: string;
|
|
2031
2053
|
nt_audience_id: string;
|
|
2032
2054
|
};
|
|
@@ -2128,6 +2150,7 @@ export declare const ExperimentEntry: z.ZodObject<z.extendShape<z.extendShape<{
|
|
|
2128
2150
|
id: string;
|
|
2129
2151
|
};
|
|
2130
2152
|
fields: {
|
|
2153
|
+
nt_description?: string | undefined;
|
|
2131
2154
|
nt_config?: {
|
|
2132
2155
|
distribution?: number[] | undefined;
|
|
2133
2156
|
traffic?: number | undefined;
|
|
@@ -2181,6 +2204,7 @@ export declare const ExperimentEntry: z.ZodObject<z.extendShape<z.extendShape<{
|
|
|
2181
2204
|
id: string;
|
|
2182
2205
|
};
|
|
2183
2206
|
fields: {
|
|
2207
|
+
nt_description?: string | undefined;
|
|
2184
2208
|
nt_name: string;
|
|
2185
2209
|
nt_audience_id: string;
|
|
2186
2210
|
};
|