@ninetailed/experience.js-utils-contentful 7.6.0 → 7.6.1

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,14 +1,14 @@
1
1
  {
2
2
  "name": "@ninetailed/experience.js-utils-contentful",
3
- "version": "7.6.0",
3
+ "version": "7.6.1",
4
4
  "description": "Contentful utilities for Experience.js",
5
5
  "dependencies": {
6
6
  "contentful": "^9.1.32",
7
7
  "@contentful/rich-text-types": "16.2.0",
8
- "@ninetailed/experience.js-utils": "7.6.0",
9
- "@ninetailed/experience.js": "7.6.0",
10
- "@ninetailed/experience.js-shared": "7.6.0",
11
- "zod": "3.21.4"
8
+ "@ninetailed/experience.js-utils": "7.6.1",
9
+ "@ninetailed/experience.js": "7.6.1",
10
+ "@ninetailed/experience.js-shared": "7.6.1",
11
+ "zod": "3.23.0"
12
12
  },
13
13
  "license": "MIT",
14
14
  "repository": {
@@ -1,9 +1,18 @@
1
1
  import { z } from 'zod';
2
- export declare const AudienceEntryFields: z.ZodObject<{
2
+ export declare const AudienceEntryFields: z.ZodObject<z.objectUtil.extendShape<{}, {
3
+ /**
4
+ * The name of the audience (Short Text)
5
+ */
3
6
  nt_name: z.ZodString;
7
+ /**
8
+ * The description of the audience (Short Text)
9
+ */
4
10
  nt_description: z.ZodOptional<z.ZodString>;
11
+ /**
12
+ * The internal id of the audience (Short Text)
13
+ */
5
14
  nt_audience_id: z.ZodString;
6
- }, z.UnknownKeysParam, z.ZodTypeAny, {
15
+ }>, z.UnknownKeysParam, z.ZodTypeAny, {
7
16
  nt_name: string;
8
17
  nt_audience_id: string;
9
18
  nt_description?: string | undefined;
@@ -13,7 +22,7 @@ export declare const AudienceEntryFields: z.ZodObject<{
13
22
  nt_description?: string | undefined;
14
23
  }>;
15
24
  export type AudienceEntryFields = z.infer<typeof AudienceEntryFields>;
16
- export declare const AudienceEntry: z.ZodObject<{
25
+ export declare const AudienceEntry: z.ZodObject<z.objectUtil.extendShape<{
17
26
  sys: z.ZodObject<{
18
27
  type: z.ZodOptional<z.ZodString>;
19
28
  id: z.ZodString;
@@ -159,13 +168,16 @@ export declare const AudienceEntry: z.ZodObject<{
159
168
  };
160
169
  } | undefined;
161
170
  }>;
171
+ fields: z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>;
162
172
  metadata: z.ZodOptional<z.ZodObject<{
163
173
  tags: z.ZodArray<z.ZodObject<{
164
- sys: z.ZodObject<{
174
+ sys: z.ZodObject<z.objectUtil.extendShape<{
165
175
  type: z.ZodOptional<z.ZodString>;
176
+ linkType: z.ZodOptional<z.ZodString>;
166
177
  id: z.ZodString;
178
+ }, {
167
179
  linkType: z.ZodString;
168
- }, "strip", z.ZodTypeAny, {
180
+ }>, "strip", z.ZodTypeAny, {
169
181
  id: string;
170
182
  linkType: string;
171
183
  type?: string | undefined;
@@ -204,11 +216,21 @@ export declare const AudienceEntry: z.ZodObject<{
204
216
  };
205
217
  }[];
206
218
  }>>;
207
- fields: z.ZodObject<{
219
+ }, {
220
+ fields: z.ZodObject<z.objectUtil.extendShape<{}, {
221
+ /**
222
+ * The name of the audience (Short Text)
223
+ */
208
224
  nt_name: z.ZodString;
225
+ /**
226
+ * The description of the audience (Short Text)
227
+ */
209
228
  nt_description: z.ZodOptional<z.ZodString>;
229
+ /**
230
+ * The internal id of the audience (Short Text)
231
+ */
210
232
  nt_audience_id: z.ZodString;
211
- }, z.UnknownKeysParam, z.ZodTypeAny, {
233
+ }>, z.UnknownKeysParam, z.ZodTypeAny, {
212
234
  nt_name: string;
213
235
  nt_audience_id: string;
214
236
  nt_description?: string | undefined;
@@ -217,7 +239,7 @@ export declare const AudienceEntry: z.ZodObject<{
217
239
  nt_audience_id: string;
218
240
  nt_description?: string | undefined;
219
241
  }>;
220
- }, "strip", z.ZodTypeAny, {
242
+ }>, "strip", z.ZodTypeAny, {
221
243
  sys: {
222
244
  id: string;
223
245
  type?: string | undefined;
@@ -2,8 +2,8 @@ import { z } from 'zod';
2
2
  import { EntryFields } from './EntryFields';
3
3
  import { ExperienceEntry, ExperienceEntryLike } from './ExperienceEntry';
4
4
  import { FieldsOverride } from './FieldsOverride';
5
- declare const BaselineWithExperiencesEntryFields: z.ZodObject<{
6
- nt_experiences: z.ZodArray<z.ZodObject<{
5
+ declare const BaselineWithExperiencesEntryFields: z.ZodObject<z.objectUtil.extendShape<{}, {
6
+ nt_experiences: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
7
7
  sys: z.ZodObject<{
8
8
  type: z.ZodOptional<z.ZodString>;
9
9
  id: z.ZodString;
@@ -149,13 +149,16 @@ declare const BaselineWithExperiencesEntryFields: z.ZodObject<{
149
149
  };
150
150
  } | undefined;
151
151
  }>;
152
+ fields: z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>;
152
153
  metadata: z.ZodOptional<z.ZodObject<{
153
154
  tags: z.ZodArray<z.ZodObject<{
154
- sys: z.ZodObject<{
155
+ sys: z.ZodObject<z.objectUtil.extendShape<{
155
156
  type: z.ZodOptional<z.ZodString>;
157
+ linkType: z.ZodOptional<z.ZodString>;
156
158
  id: z.ZodString;
159
+ }, {
157
160
  linkType: z.ZodString;
158
- }, "strip", z.ZodTypeAny, {
161
+ }>, "strip", z.ZodTypeAny, {
159
162
  id: string;
160
163
  linkType: string;
161
164
  type?: string | undefined;
@@ -194,6 +197,7 @@ declare const BaselineWithExperiencesEntryFields: z.ZodObject<{
194
197
  };
195
198
  }[];
196
199
  }>>;
200
+ }, {
197
201
  fields: z.ZodObject<{
198
202
  nt_name: z.ZodString;
199
203
  nt_description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -290,7 +294,7 @@ declare const BaselineWithExperiencesEntryFields: z.ZodObject<{
290
294
  }[] | undefined;
291
295
  sticky?: boolean | undefined;
292
296
  } | null | undefined>;
293
- nt_audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
297
+ nt_audience: z.ZodNullable<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
294
298
  sys: z.ZodObject<{
295
299
  type: z.ZodOptional<z.ZodString>;
296
300
  id: z.ZodString;
@@ -436,13 +440,16 @@ declare const BaselineWithExperiencesEntryFields: z.ZodObject<{
436
440
  };
437
441
  } | undefined;
438
442
  }>;
443
+ fields: z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>;
439
444
  metadata: z.ZodOptional<z.ZodObject<{
440
445
  tags: z.ZodArray<z.ZodObject<{
441
- sys: z.ZodObject<{
446
+ sys: z.ZodObject<z.objectUtil.extendShape<{
442
447
  type: z.ZodOptional<z.ZodString>;
448
+ linkType: z.ZodOptional<z.ZodString>;
443
449
  id: z.ZodString;
450
+ }, {
444
451
  linkType: z.ZodString;
445
- }, "strip", z.ZodTypeAny, {
452
+ }>, "strip", z.ZodTypeAny, {
446
453
  id: string;
447
454
  linkType: string;
448
455
  type?: string | undefined;
@@ -481,11 +488,12 @@ declare const BaselineWithExperiencesEntryFields: z.ZodObject<{
481
488
  };
482
489
  }[];
483
490
  }>>;
484
- fields: z.ZodObject<{
491
+ }, {
492
+ fields: z.ZodObject<z.objectUtil.extendShape<{}, {
485
493
  nt_name: z.ZodString;
486
494
  nt_description: z.ZodOptional<z.ZodString>;
487
495
  nt_audience_id: z.ZodString;
488
- }, z.UnknownKeysParam, z.ZodTypeAny, {
496
+ }>, z.UnknownKeysParam, z.ZodTypeAny, {
489
497
  nt_name: string;
490
498
  nt_audience_id: string;
491
499
  nt_description?: string | undefined;
@@ -494,7 +502,7 @@ declare const BaselineWithExperiencesEntryFields: z.ZodObject<{
494
502
  nt_audience_id: string;
495
503
  nt_description?: string | undefined;
496
504
  }>;
497
- }, "strip", z.ZodTypeAny, {
505
+ }>, "strip", z.ZodTypeAny, {
498
506
  sys: {
499
507
  id: string;
500
508
  type?: string | undefined;
@@ -732,11 +740,13 @@ declare const BaselineWithExperiencesEntryFields: z.ZodObject<{
732
740
  fields: z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>;
733
741
  metadata: z.ZodOptional<z.ZodObject<{
734
742
  tags: z.ZodArray<z.ZodObject<{
735
- sys: z.ZodObject<{
743
+ sys: z.ZodObject<z.objectUtil.extendShape<{
736
744
  type: z.ZodOptional<z.ZodString>;
745
+ linkType: z.ZodOptional<z.ZodString>;
737
746
  id: z.ZodString;
747
+ }, {
738
748
  linkType: z.ZodString;
739
- }, "strip", z.ZodTypeAny, {
749
+ }>, "strip", z.ZodTypeAny, {
740
750
  id: string;
741
751
  linkType: string;
742
752
  type?: string | undefined;
@@ -1065,7 +1075,7 @@ declare const BaselineWithExperiencesEntryFields: z.ZodObject<{
1065
1075
  } | undefined;
1066
1076
  }[] | undefined;
1067
1077
  }>;
1068
- }, "strip", z.ZodTypeAny, {
1078
+ }>, "strip", z.ZodTypeAny, {
1069
1079
  sys: {
1070
1080
  id: string;
1071
1081
  type?: string | undefined;
@@ -1354,7 +1364,7 @@ declare const BaselineWithExperiencesEntryFields: z.ZodObject<{
1354
1364
  }[];
1355
1365
  } | undefined;
1356
1366
  }>, "many">;
1357
- }, z.UnknownKeysParam, z.ZodTypeAny, {
1367
+ }>, z.UnknownKeysParam, z.ZodTypeAny, {
1358
1368
  nt_experiences: {
1359
1369
  sys: {
1360
1370
  id: string;
@@ -1653,7 +1663,7 @@ export type BaselineWithExperiencesEntryFieldsLike<VariantFields extends EntryFi
1653
1663
  export type BaselineWithExperiencesEntryFields<VariantFields extends EntryFields = EntryFields> = Omit<z.infer<typeof BaselineWithExperiencesEntryFields>, 'nt_experiences'> & {
1654
1664
  nt_experiences: ExperienceEntryLike<VariantFields>[];
1655
1665
  };
1656
- export declare const BaselineWithExperiencesEntrySchema: z.ZodObject<{
1666
+ export declare const BaselineWithExperiencesEntrySchema: z.ZodObject<z.objectUtil.extendShape<{
1657
1667
  sys: z.ZodObject<{
1658
1668
  type: z.ZodOptional<z.ZodString>;
1659
1669
  id: z.ZodString;
@@ -1799,13 +1809,16 @@ export declare const BaselineWithExperiencesEntrySchema: z.ZodObject<{
1799
1809
  };
1800
1810
  } | undefined;
1801
1811
  }>;
1812
+ fields: z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>;
1802
1813
  metadata: z.ZodOptional<z.ZodObject<{
1803
1814
  tags: z.ZodArray<z.ZodObject<{
1804
- sys: z.ZodObject<{
1815
+ sys: z.ZodObject<z.objectUtil.extendShape<{
1805
1816
  type: z.ZodOptional<z.ZodString>;
1817
+ linkType: z.ZodOptional<z.ZodString>;
1806
1818
  id: z.ZodString;
1819
+ }, {
1807
1820
  linkType: z.ZodString;
1808
- }, "strip", z.ZodTypeAny, {
1821
+ }>, "strip", z.ZodTypeAny, {
1809
1822
  id: string;
1810
1823
  linkType: string;
1811
1824
  type?: string | undefined;
@@ -1844,8 +1857,9 @@ export declare const BaselineWithExperiencesEntrySchema: z.ZodObject<{
1844
1857
  };
1845
1858
  }[];
1846
1859
  }>>;
1847
- fields: z.ZodObject<{
1848
- nt_experiences: z.ZodArray<z.ZodObject<{
1860
+ }, {
1861
+ fields: z.ZodObject<z.objectUtil.extendShape<{}, {
1862
+ nt_experiences: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
1849
1863
  sys: z.ZodObject<{
1850
1864
  type: z.ZodOptional<z.ZodString>;
1851
1865
  id: z.ZodString;
@@ -1991,13 +2005,16 @@ export declare const BaselineWithExperiencesEntrySchema: z.ZodObject<{
1991
2005
  };
1992
2006
  } | undefined;
1993
2007
  }>;
2008
+ fields: z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>;
1994
2009
  metadata: z.ZodOptional<z.ZodObject<{
1995
2010
  tags: z.ZodArray<z.ZodObject<{
1996
- sys: z.ZodObject<{
2011
+ sys: z.ZodObject<z.objectUtil.extendShape<{
1997
2012
  type: z.ZodOptional<z.ZodString>;
2013
+ linkType: z.ZodOptional<z.ZodString>;
1998
2014
  id: z.ZodString;
2015
+ }, {
1999
2016
  linkType: z.ZodString;
2000
- }, "strip", z.ZodTypeAny, {
2017
+ }>, "strip", z.ZodTypeAny, {
2001
2018
  id: string;
2002
2019
  linkType: string;
2003
2020
  type?: string | undefined;
@@ -2036,6 +2053,7 @@ export declare const BaselineWithExperiencesEntrySchema: z.ZodObject<{
2036
2053
  };
2037
2054
  }[];
2038
2055
  }>>;
2056
+ }, {
2039
2057
  fields: z.ZodObject<{
2040
2058
  nt_name: z.ZodString;
2041
2059
  nt_description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -2132,7 +2150,7 @@ export declare const BaselineWithExperiencesEntrySchema: z.ZodObject<{
2132
2150
  }[] | undefined;
2133
2151
  sticky?: boolean | undefined;
2134
2152
  } | null | undefined>;
2135
- nt_audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2153
+ nt_audience: z.ZodNullable<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
2136
2154
  sys: z.ZodObject<{
2137
2155
  type: z.ZodOptional<z.ZodString>;
2138
2156
  id: z.ZodString;
@@ -2278,13 +2296,16 @@ export declare const BaselineWithExperiencesEntrySchema: z.ZodObject<{
2278
2296
  };
2279
2297
  } | undefined;
2280
2298
  }>;
2299
+ fields: z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>;
2281
2300
  metadata: z.ZodOptional<z.ZodObject<{
2282
2301
  tags: z.ZodArray<z.ZodObject<{
2283
- sys: z.ZodObject<{
2302
+ sys: z.ZodObject<z.objectUtil.extendShape<{
2284
2303
  type: z.ZodOptional<z.ZodString>;
2304
+ linkType: z.ZodOptional<z.ZodString>;
2285
2305
  id: z.ZodString;
2306
+ }, {
2286
2307
  linkType: z.ZodString;
2287
- }, "strip", z.ZodTypeAny, {
2308
+ }>, "strip", z.ZodTypeAny, {
2288
2309
  id: string;
2289
2310
  linkType: string;
2290
2311
  type?: string | undefined;
@@ -2323,11 +2344,12 @@ export declare const BaselineWithExperiencesEntrySchema: z.ZodObject<{
2323
2344
  };
2324
2345
  }[];
2325
2346
  }>>;
2326
- fields: z.ZodObject<{
2347
+ }, {
2348
+ fields: z.ZodObject<z.objectUtil.extendShape<{}, {
2327
2349
  nt_name: z.ZodString;
2328
2350
  nt_description: z.ZodOptional<z.ZodString>;
2329
2351
  nt_audience_id: z.ZodString;
2330
- }, z.UnknownKeysParam, z.ZodTypeAny, {
2352
+ }>, z.UnknownKeysParam, z.ZodTypeAny, {
2331
2353
  nt_name: string;
2332
2354
  nt_audience_id: string;
2333
2355
  nt_description?: string | undefined;
@@ -2336,7 +2358,7 @@ export declare const BaselineWithExperiencesEntrySchema: z.ZodObject<{
2336
2358
  nt_audience_id: string;
2337
2359
  nt_description?: string | undefined;
2338
2360
  }>;
2339
- }, "strip", z.ZodTypeAny, {
2361
+ }>, "strip", z.ZodTypeAny, {
2340
2362
  sys: {
2341
2363
  id: string;
2342
2364
  type?: string | undefined;
@@ -2574,11 +2596,13 @@ export declare const BaselineWithExperiencesEntrySchema: z.ZodObject<{
2574
2596
  fields: z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>;
2575
2597
  metadata: z.ZodOptional<z.ZodObject<{
2576
2598
  tags: z.ZodArray<z.ZodObject<{
2577
- sys: z.ZodObject<{
2599
+ sys: z.ZodObject<z.objectUtil.extendShape<{
2578
2600
  type: z.ZodOptional<z.ZodString>;
2601
+ linkType: z.ZodOptional<z.ZodString>;
2579
2602
  id: z.ZodString;
2603
+ }, {
2580
2604
  linkType: z.ZodString;
2581
- }, "strip", z.ZodTypeAny, {
2605
+ }>, "strip", z.ZodTypeAny, {
2582
2606
  id: string;
2583
2607
  linkType: string;
2584
2608
  type?: string | undefined;
@@ -2907,7 +2931,7 @@ export declare const BaselineWithExperiencesEntrySchema: z.ZodObject<{
2907
2931
  } | undefined;
2908
2932
  }[] | undefined;
2909
2933
  }>;
2910
- }, "strip", z.ZodTypeAny, {
2934
+ }>, "strip", z.ZodTypeAny, {
2911
2935
  sys: {
2912
2936
  id: string;
2913
2937
  type?: string | undefined;
@@ -3196,7 +3220,7 @@ export declare const BaselineWithExperiencesEntrySchema: z.ZodObject<{
3196
3220
  }[];
3197
3221
  } | undefined;
3198
3222
  }>, "many">;
3199
- }, z.UnknownKeysParam, z.ZodTypeAny, {
3223
+ }>, z.UnknownKeysParam, z.ZodTypeAny, {
3200
3224
  nt_experiences: {
3201
3225
  sys: {
3202
3226
  id: string;
@@ -3489,7 +3513,7 @@ export declare const BaselineWithExperiencesEntrySchema: z.ZodObject<{
3489
3513
  } | undefined;
3490
3514
  }[];
3491
3515
  }>;
3492
- }, "strip", z.ZodTypeAny, {
3516
+ }>, "strip", z.ZodTypeAny, {
3493
3517
  sys: {
3494
3518
  id: string;
3495
3519
  type?: string | undefined;