@ninetailed/experience.js-utils-contentful 3.0.2 → 3.0.3-beta.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.
@@ -4,7 +4,7 @@ import { EntryLike } from '../types/Entry';
4
4
  import type { EntryFields } from '../types/EntryFields';
5
5
  import { ExperienceEntry, ExperienceEntryLike } from '../types/ExperienceEntry';
6
6
  import { ExperimentEntry } from '../types/ExperimentEntry';
7
- export declare type MapVariantFunction<In extends EntryFields, Out extends Reference> = (input: EntryLike<In> & {
7
+ export type MapVariantFunction<In extends EntryFields, Out extends Reference> = (input: EntryLike<In> & {
8
8
  fields: In;
9
9
  }) => Out;
10
10
  export declare class ExperienceMapper {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ninetailed/experience.js-utils-contentful",
3
- "version": "3.0.2",
3
+ "version": "3.0.3-beta.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.0.2",
13
- "@ninetailed/experience.js": "3.0.2",
14
- "@ninetailed/experience.js-shared": "3.0.2",
12
+ "@ninetailed/experience.js-utils": "3.0.3-beta.0",
13
+ "@ninetailed/experience.js": "3.0.3-beta.0",
14
+ "@ninetailed/experience.js-shared": "3.0.3-beta.0",
15
15
  "zod": "3.20.2"
16
16
  }
17
17
  }
@@ -17,7 +17,7 @@ export declare const AudienceEntryFields: z.ZodObject<z.extendShape<{}, {
17
17
  nt_name: string;
18
18
  nt_audience_id: string;
19
19
  }>;
20
- export declare type AudienceEntryFields = z.infer<typeof AudienceEntryFields>;
20
+ export type AudienceEntryFields = z.infer<typeof AudienceEntryFields>;
21
21
  export declare const AudienceEntry: z.ZodObject<z.extendShape<{
22
22
  sys: z.ZodObject<{
23
23
  type: z.ZodOptional<z.ZodString>;
@@ -330,5 +330,5 @@ export declare const AudienceEntry: z.ZodObject<z.extendShape<{
330
330
  nt_audience_id: string;
331
331
  };
332
332
  }>;
333
- export declare type AudienceEntryLike = z.input<typeof AudienceEntry>;
334
- export declare type AudienceEntry = z.infer<typeof AudienceEntry>;
333
+ export type AudienceEntryLike = z.input<typeof AudienceEntry>;
334
+ export type AudienceEntry = z.infer<typeof AudienceEntry>;
@@ -1685,7 +1685,7 @@ declare const BaselineWithExperiencesEntryFields: z.ZodObject<z.extendShape<{},
1685
1685
  };
1686
1686
  }[];
1687
1687
  }>;
1688
- export declare type BaselineWithExperiencesEntryFields = z.infer<typeof BaselineWithExperiencesEntryFields>;
1688
+ export type BaselineWithExperiencesEntryFields = z.infer<typeof BaselineWithExperiencesEntryFields>;
1689
1689
  export declare const BaselineWithExperiencesEntrySchema: z.ZodObject<z.extendShape<{
1690
1690
  sys: z.ZodObject<{
1691
1691
  type: z.ZodOptional<z.ZodString>;
@@ -3950,12 +3950,12 @@ export declare const BaselineWithExperiencesEntrySchema: z.ZodObject<z.extendSha
3950
3950
  }[];
3951
3951
  };
3952
3952
  }>;
3953
- declare type BaselineWithExperiencesEntryInput = z.input<typeof ExperienceEntrySchema>;
3954
- export declare type BaselineWithExperiencesEntryLike<VariantFields extends EntryFields = EntryFields> = Omit<BaselineWithExperiencesEntryInput, 'nt_experiences'> & {
3953
+ type BaselineWithExperiencesEntryInput = z.input<typeof ExperienceEntrySchema>;
3954
+ export type BaselineWithExperiencesEntryLike<VariantFields extends EntryFields = EntryFields> = Omit<BaselineWithExperiencesEntryInput, 'nt_experiences'> & {
3955
3955
  nt_experiences: ExperienceEntryLike<VariantFields>[];
3956
3956
  };
3957
- declare type BaselineWithExperiencesEntryOutput = z.infer<typeof BaselineWithExperiencesEntrySchema>;
3958
- export declare type BaselineWithExperiencesEntry<VariantFields extends EntryFields = EntryFields> = Omit<BaselineWithExperiencesEntryOutput, 'nt_experiences'> & {
3957
+ type BaselineWithExperiencesEntryOutput = z.infer<typeof BaselineWithExperiencesEntrySchema>;
3958
+ export type BaselineWithExperiencesEntry<VariantFields extends EntryFields = EntryFields> = Omit<BaselineWithExperiencesEntryOutput, 'nt_experiences'> & {
3959
3959
  nt_experiences: ExperienceEntry<VariantFields>[];
3960
3960
  };
3961
3961
  export {};
package/types/Entry.d.ts CHANGED
@@ -290,8 +290,8 @@ export declare const EntrySchema: z.ZodObject<{
290
290
  [x: string]: unknown;
291
291
  };
292
292
  }>;
293
- export declare type EntryLike<T extends EntryFields = EntryFields> = FieldsOverride<z.input<typeof EntrySchema>, T>;
294
- export declare type Entry<T extends EntryFields = EntryFields> = FieldsOverride<z.infer<typeof EntrySchema>, T>;
293
+ export type EntryLike<T extends EntryFields = EntryFields> = FieldsOverride<z.input<typeof EntrySchema>, T>;
294
+ export type Entry<T extends EntryFields = EntryFields> = FieldsOverride<z.infer<typeof EntrySchema>, T>;
295
295
  export declare const Entry: {
296
296
  parse: <T extends object>(input: EntryLike<T>) => Entry<T>;
297
297
  safeParse: <T_1 extends object>(input: EntryLike<T_1>) => z.SafeParseError<{
@@ -4,4 +4,4 @@ export declare const EntryFields: z.ZodObject<{}, "strip", z.ZodUnknown, {
4
4
  }, {
5
5
  [x: string]: unknown;
6
6
  }>;
7
- export declare type EntryFields = object;
7
+ export type EntryFields = object;
@@ -918,10 +918,10 @@ export declare const ExperienceEntryFields: z.ZodObject<{
918
918
  nt_name: string;
919
919
  nt_type: string;
920
920
  }>;
921
- export declare type ExperienceFieldsLike<VariantFields extends EntryFields = EntryFields> = Omit<z.infer<typeof ExperienceEntryFields>, 'nt_variants'> & {
921
+ export type ExperienceFieldsLike<VariantFields extends EntryFields = EntryFields> = Omit<z.infer<typeof ExperienceEntryFields>, 'nt_variants'> & {
922
922
  nt_variants?: EntryLike<VariantFields>[];
923
923
  };
924
- export declare type ExperienceFields<VariantFields extends EntryFields = EntryFields> = Omit<z.infer<typeof ExperienceEntryFields>, 'nt_variants'> & {
924
+ export type ExperienceFields<VariantFields extends EntryFields = EntryFields> = Omit<z.infer<typeof ExperienceEntryFields>, 'nt_variants'> & {
925
925
  nt_variants: EntryLike<VariantFields>[];
926
926
  };
927
927
  export declare const ExperienceEntrySchema: z.ZodObject<z.extendShape<{
@@ -2339,10 +2339,10 @@ export declare const ExperienceEntrySchema: z.ZodObject<z.extendShape<{
2339
2339
  nt_type: string;
2340
2340
  };
2341
2341
  }>;
2342
- declare type ExperienceEntryInput = z.input<typeof ExperienceEntrySchema>;
2343
- export declare type ExperienceEntryLike<VariantFields extends EntryFields = EntryFields> = FieldsOverride<ExperienceEntryInput, ExperienceFieldsLike<VariantFields>>;
2344
- declare type ExperienceEntryOutput = z.infer<typeof ExperienceEntrySchema>;
2345
- export declare type ExperienceEntry<VariantFields extends EntryFields = EntryFields> = FieldsOverride<ExperienceEntryOutput, ExperienceFields<VariantFields>>;
2342
+ type ExperienceEntryInput = z.input<typeof ExperienceEntrySchema>;
2343
+ export type ExperienceEntryLike<VariantFields extends EntryFields = EntryFields> = FieldsOverride<ExperienceEntryInput, ExperienceFieldsLike<VariantFields>>;
2344
+ type ExperienceEntryOutput = z.infer<typeof ExperienceEntrySchema>;
2345
+ export type ExperienceEntry<VariantFields extends EntryFields = EntryFields> = FieldsOverride<ExperienceEntryOutput, ExperienceFields<VariantFields>>;
2346
2346
  export declare const ExperienceEntry: {
2347
2347
  parse: <T extends object>(input: ExperienceEntryLike<T>) => ExperienceEntry<T>;
2348
2348
  safeParse: <T_1 extends object>(input: ExperienceEntryLike<T_1>) => SafeParseError<ExperienceEntryLike<T_1>> | SafeParseSuccess<ExperienceEntry<T_1>>;
@@ -2284,5 +2284,5 @@ export declare const ExperimentEntry: z.ZodObject<z.extendShape<z.extendShape<{
2284
2284
  nt_type: string;
2285
2285
  };
2286
2286
  }>;
2287
- export declare type ExperimentEntryLike = z.input<typeof ExperimentEntry>;
2288
- export declare type ExperimentEntry = z.infer<typeof ExperimentEntry>;
2287
+ export type ExperimentEntryLike = z.input<typeof ExperimentEntry>;
2288
+ export type ExperimentEntry = z.infer<typeof ExperimentEntry>;
@@ -1,4 +1,4 @@
1
1
  import { EntryFields } from './EntryFields';
2
- export declare type FieldsOverride<Entry, Fields extends EntryFields> = Omit<Entry, 'fields'> & {
2
+ export type FieldsOverride<Entry, Fields extends EntryFields> = Omit<Entry, 'fields'> & {
3
3
  fields: Fields;
4
4
  };