@postxl/schema 1.1.0 → 1.2.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.
Files changed (36) hide show
  1. package/dist/enum/enum.brands.d.ts +6 -6
  2. package/dist/enum/enum.brands.js +6 -3
  3. package/dist/enum/enum.d.ts +10 -34
  4. package/dist/enum/enum.defaults.d.ts +9 -9
  5. package/dist/enum/enum.json-decoder.d.ts +8 -44
  6. package/dist/enum/enum.json-decoder.js +9 -6
  7. package/dist/enum/enum.transformer.d.ts +4 -4
  8. package/dist/field/defaults.d.ts +5 -5
  9. package/dist/field/discriminated-union.d.ts +13 -49
  10. package/dist/field/enum.d.ts +9 -27
  11. package/dist/field/field.d.ts +80 -300
  12. package/dist/field/id.d.ts +22 -62
  13. package/dist/field/relation.d.ts +10 -32
  14. package/dist/field/relation.js +4 -2
  15. package/dist/field/scalar.d.ts +13 -77
  16. package/dist/field/shared/brands.d.ts +24 -24
  17. package/dist/field/shared/brands.js +28 -10
  18. package/dist/field/shared/decoders.d.ts +4 -4
  19. package/dist/field/shared/decoders.js +8 -6
  20. package/dist/field/shared/seed.d.ts +2 -8
  21. package/dist/model/model.brands.d.ts +4 -4
  22. package/dist/model/model.defaults.d.ts +10 -10
  23. package/dist/model/model.json-decoder.d.ts +10 -80
  24. package/dist/model/model.json-decoder.js +13 -10
  25. package/dist/model/model.transformer.d.ts +32 -30
  26. package/dist/project-schema/project-schema.brands.d.ts +6 -6
  27. package/dist/project-schema/project-schema.brands.js +6 -1
  28. package/dist/project-schema/project-schema.defaults.d.ts +2 -2
  29. package/dist/project-schema/project-schema.json-decoder.d.ts +19 -222
  30. package/dist/project-schema/project-schema.json-decoder.js +10 -8
  31. package/dist/project-schema/project-schema.transformer.d.ts +30 -189
  32. package/dist/samples/portfolex.schema.json +441 -0
  33. package/dist/samples/sample-schemas.d.ts +463 -0
  34. package/dist/samples/sample-schemas.js +4 -0
  35. package/dist/samples/steerex.schema.json +4679 -0
  36. package/package.json +2 -2
@@ -1,11 +1,11 @@
1
1
  import { z } from 'zod';
2
- declare const zEnumName: z.ZodBranded<z.ZodEffects<z.ZodString, string, string>, "PXL.EnumName">;
2
+ declare const zEnumName: z.core.$ZodBranded<z.ZodString, "PXL.EnumName", "out">;
3
3
  export type EnumName = z.infer<typeof zEnumName>;
4
- export declare const toEnumName: (input: string) => string & z.BRAND<"PXL.EnumName">;
5
- declare const zEnumValue: z.ZodBranded<z.ZodString, "PXL.EnumValue">;
4
+ export declare const toEnumName: (input: string) => string & z.core.$brand<"PXL.EnumName">;
5
+ declare const zEnumValue: z.core.$ZodBranded<z.ZodString, "PXL.EnumValue", "out">;
6
6
  export type EnumValue = z.infer<typeof zEnumValue>;
7
- export declare const toEnumValue: (input: string) => string & z.BRAND<"PXL.EnumValue">;
8
- export declare const zDatabaseEnumName: z.ZodBranded<z.ZodString, "PXL.DatabaseEnumName">;
7
+ export declare const toEnumValue: (input: string) => string & z.core.$brand<"PXL.EnumValue">;
8
+ export declare const zDatabaseEnumName: z.core.$ZodBranded<z.ZodString, "PXL.DatabaseEnumName", "out">;
9
9
  export type DatabaseEnumName = z.infer<typeof zDatabaseEnumName>;
10
- export declare const toDatabaseEnumName: (input: string) => string & z.BRAND<"PXL.DatabaseEnumName">;
10
+ export declare const toDatabaseEnumName: (input: string) => string & z.core.$brand<"PXL.DatabaseEnumName">;
11
11
  export {};
@@ -5,9 +5,12 @@ const zod_1 = require("zod");
5
5
  const utils_1 = require("@postxl/utils");
6
6
  const zEnumName = zod_1.z
7
7
  .string()
8
- .refine((v) => (0, utils_1.isCamelCase)(v) || (0, utils_1.isPascalCase)(v), (v) => ({
9
- message: `Enum name must be camelCase (${(0, utils_1.toCamelCase)(v)} or PascalCase ${(0, utils_1.toPascalCase)(v)})! Received ${v}.`,
10
- }))
8
+ .refine((v) => (0, utils_1.isCamelCase)(v) || (0, utils_1.isPascalCase)(v), {
9
+ error: (issue) => {
10
+ const v = String(issue.input);
11
+ return `Enum name must be camelCase (${(0, utils_1.toCamelCase)(v)} or PascalCase ${(0, utils_1.toPascalCase)(v)})! Received ${v}.`;
12
+ },
13
+ })
11
14
  .brand('PXL.EnumName');
12
15
  const toEnumName = (input) => zEnumName.parse(input);
13
16
  exports.toEnumName = toEnumName;
@@ -1,49 +1,25 @@
1
- export declare const zEnum: import("zod").ZodEffects<import("zod").ZodObject<{
2
- name: import("zod").ZodEffects<import("zod").ZodString, string, string>;
1
+ export declare const zEnum: import("zod").ZodPipe<import("zod").ZodObject<{
2
+ name: import("zod").ZodString;
3
3
  description: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
4
4
  schema: import("zod").ZodOptional<import("zod").ZodString>;
5
5
  databaseName: import("zod").ZodOptional<import("zod").ZodString>;
6
- members: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodObject<{
6
+ members: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
7
7
  value: import("zod").ZodString;
8
8
  description: import("zod").ZodOptional<import("zod").ZodString>;
9
- }, "strip", import("zod").ZodTypeAny, {
10
- value: string;
11
- description?: string | undefined;
12
- }, {
13
- value: string;
14
- description?: string | undefined;
15
- }>, import("zod").ZodString]>, "many">;
16
- }, "strip", import("zod").ZodTypeAny, {
9
+ }, import("zod/v4/core").$strip>, import("zod").ZodString]>>;
10
+ }, import("zod/v4/core").$strip>, import("zod").ZodTransform<{
11
+ name: string & import("zod").$brand<"PXL.EnumName">;
17
12
  description: string;
18
- name: string;
19
- members: (string | {
20
- value: string;
21
- description?: string | undefined;
22
- })[];
23
- schema?: string | undefined;
24
- databaseName?: string | undefined;
13
+ members: Map<string & import("zod").$brand<"PXL.EnumValue">, import("./enum.types").EnumMember>;
14
+ databaseSchema: (string & import("zod").$brand<"PXL.DatabaseSchemaName">) | undefined;
15
+ databaseName: string & import("zod").$brand<"PXL.DatabaseEnumName">;
25
16
  }, {
26
17
  name: string;
27
- members: (string | {
28
- value: string;
29
- description?: string | undefined;
30
- })[];
31
- description?: string | undefined;
32
- schema?: string | undefined;
33
- databaseName?: string | undefined;
34
- }>, {
35
- name: string & import("zod").BRAND<"PXL.EnumName">;
36
18
  description: string;
37
- members: Map<string & import("zod").BRAND<"PXL.EnumValue">, import("./enum.types").EnumMember>;
38
- databaseSchema: (string & import("zod").BRAND<"PXL.DatabaseSchemaName">) | undefined;
39
- databaseName: string & import("zod").BRAND<"PXL.DatabaseEnumName">;
40
- }, {
41
- name: string;
42
19
  members: (string | {
43
20
  value: string;
44
21
  description?: string | undefined;
45
22
  })[];
46
- description?: string | undefined;
47
23
  schema?: string | undefined;
48
24
  databaseName?: string | undefined;
49
- }>;
25
+ }>>;
@@ -1,16 +1,16 @@
1
1
  import * as Branded from './enum.brands';
2
2
  import { EnumJSON } from './enum.json-decoder';
3
- export declare const defaultEnumName_ActionStatus: string & import("zod").BRAND<"PXL.EnumName">;
4
- export declare const defaultEnumName_MutationStatus: string & import("zod").BRAND<"PXL.EnumName">;
5
- export declare const defaultEnumName_MutationKind: string & import("zod").BRAND<"PXL.EnumName">;
3
+ export declare const defaultEnumName_ActionStatus: string & import("zod").$brand<"PXL.EnumName">;
4
+ export declare const defaultEnumName_MutationStatus: string & import("zod").$brand<"PXL.EnumName">;
5
+ export declare const defaultEnumName_MutationKind: string & import("zod").$brand<"PXL.EnumName">;
6
6
  export declare const defaultEnumNames: {
7
- actionStatus: string & import("zod").BRAND<"PXL.EnumName">;
8
- mutationStatus: string & import("zod").BRAND<"PXL.EnumName">;
9
- mutationKind: string & import("zod").BRAND<"PXL.EnumName">;
7
+ actionStatus: string & import("zod").$brand<"PXL.EnumName">;
8
+ mutationStatus: string & import("zod").$brand<"PXL.EnumName">;
9
+ mutationKind: string & import("zod").$brand<"PXL.EnumName">;
10
10
  };
11
11
  export declare const defaultEnumJson_ActionStatus: {
12
- description: string;
13
12
  name: string;
13
+ description: string;
14
14
  members: (string | {
15
15
  value: string;
16
16
  description?: string | undefined;
@@ -19,8 +19,8 @@ export declare const defaultEnumJson_ActionStatus: {
19
19
  databaseName?: string | undefined;
20
20
  };
21
21
  export declare const defaultEnumJson_MutationStatus: {
22
- description: string;
23
22
  name: string;
23
+ description: string;
24
24
  members: (string | {
25
25
  value: string;
26
26
  description?: string | undefined;
@@ -29,8 +29,8 @@ export declare const defaultEnumJson_MutationStatus: {
29
29
  databaseName?: string | undefined;
30
30
  };
31
31
  export declare const defaultEnumJson_MutationKind: {
32
- description: string;
33
32
  name: string;
33
+ description: string;
34
34
  members: (string | {
35
35
  value: string;
36
36
  description?: string | undefined;
@@ -4,58 +4,22 @@ export declare const zEnumMemberDescriptionJSON: z.ZodOptional<z.ZodString>;
4
4
  export declare const zEnumMemberJSONDetailed: z.ZodObject<{
5
5
  value: z.ZodString;
6
6
  description: z.ZodOptional<z.ZodString>;
7
- }, "strip", z.ZodTypeAny, {
8
- value: string;
9
- description?: string | undefined;
10
- }, {
11
- value: string;
12
- description?: string | undefined;
13
- }>;
7
+ }, z.core.$strip>;
14
8
  export declare const zEnumMemberCompact: z.ZodString;
15
- export declare const zEnumMemberJSON: z.ZodUnion<[z.ZodObject<{
9
+ export declare const zEnumMemberJSON: z.ZodUnion<readonly [z.ZodObject<{
16
10
  value: z.ZodString;
17
11
  description: z.ZodOptional<z.ZodString>;
18
- }, "strip", z.ZodTypeAny, {
19
- value: string;
20
- description?: string | undefined;
21
- }, {
22
- value: string;
23
- description?: string | undefined;
24
- }>, z.ZodString]>;
12
+ }, z.core.$strip>, z.ZodString]>;
25
13
  export type EnumMemberJSON = z.infer<typeof zEnumMemberJSON>;
26
- export declare const zEnumNameJSON: z.ZodEffects<z.ZodString, string, string>;
14
+ export declare const zEnumNameJSON: z.ZodString;
27
15
  export declare const zEnumJSON: z.ZodObject<{
28
- name: z.ZodEffects<z.ZodString, string, string>;
16
+ name: z.ZodString;
29
17
  description: z.ZodDefault<z.ZodOptional<z.ZodString>>;
30
18
  schema: z.ZodOptional<z.ZodString>;
31
19
  databaseName: z.ZodOptional<z.ZodString>;
32
- members: z.ZodArray<z.ZodUnion<[z.ZodObject<{
20
+ members: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
33
21
  value: z.ZodString;
34
22
  description: z.ZodOptional<z.ZodString>;
35
- }, "strip", z.ZodTypeAny, {
36
- value: string;
37
- description?: string | undefined;
38
- }, {
39
- value: string;
40
- description?: string | undefined;
41
- }>, z.ZodString]>, "many">;
42
- }, "strip", z.ZodTypeAny, {
43
- description: string;
44
- name: string;
45
- members: (string | {
46
- value: string;
47
- description?: string | undefined;
48
- })[];
49
- schema?: string | undefined;
50
- databaseName?: string | undefined;
51
- }, {
52
- name: string;
53
- members: (string | {
54
- value: string;
55
- description?: string | undefined;
56
- })[];
57
- description?: string | undefined;
58
- schema?: string | undefined;
59
- databaseName?: string | undefined;
60
- }>;
23
+ }, z.core.$strip>, z.ZodString]>>;
24
+ }, z.core.$strip>;
61
25
  export type EnumJSON = z.infer<typeof zEnumJSON>;
@@ -6,7 +6,7 @@ const utils_1 = require("@postxl/utils");
6
6
  exports.zEnumMemberNameJSON = zod_1.z
7
7
  //
8
8
  .string()
9
- .min(1, 'Value of the enum member must not be empty')
9
+ .min(1, { error: 'Value of the enum member must not be empty' })
10
10
  .describe('The value of the enum member.');
11
11
  exports.zEnumMemberDescriptionJSON = zod_1.z
12
12
  //
@@ -22,10 +22,13 @@ exports.zEnumMemberJSON = zod_1.z.union([exports.zEnumMemberJSONDetailed, export
22
22
  exports.zEnumNameJSON = zod_1.z
23
23
  //
24
24
  .string()
25
- .min(1, 'Name of the enum must not be empty')
26
- .refine((v) => (0, utils_1.isCamelCase)(v) || (0, utils_1.isPascalCase)(v), (v) => ({
27
- message: `Enum name must be camelCase (${(0, utils_1.toCamelCase)(v)} or PascalCase ${(0, utils_1.toPascalCase)(v)})! Received ${v}.`,
28
- }))
25
+ .min(1, { error: 'Name of the enum must not be empty' })
26
+ .refine((v) => (0, utils_1.isCamelCase)(v) || (0, utils_1.isPascalCase)(v), {
27
+ error: (issue) => {
28
+ const v = String(issue.input);
29
+ return `Enum name must be camelCase (${(0, utils_1.toCamelCase)(v)} or PascalCase ${(0, utils_1.toPascalCase)(v)})! Received ${v}.`;
30
+ },
31
+ })
29
32
  .describe('Name of the enum.');
30
33
  exports.zEnumJSON = zod_1.z.object({
31
34
  name: exports.zEnumNameJSON,
@@ -47,5 +50,5 @@ exports.zEnumJSON = zod_1.z.object({
47
50
  members: zod_1.z
48
51
  //
49
52
  .array(exports.zEnumMemberJSON)
50
- .min(1, 'Enum must have at least one member.'),
53
+ .min(1, { error: 'Enum must have at least one member.' }),
51
54
  });
@@ -4,9 +4,9 @@ import type { EnumMember } from './enum.types';
4
4
  export declare function enumMemberTransformer(input: EnumMemberJSON): EnumMember;
5
5
  export type EnumEnriched = ReturnType<typeof enumTransformer>;
6
6
  export declare function enumTransformer(input: EnumJSON, ctx: z.RefinementCtx): {
7
- name: string & z.BRAND<"PXL.EnumName">;
7
+ name: string & z.core.$brand<"PXL.EnumName">;
8
8
  description: string;
9
- members: Map<string & z.BRAND<"PXL.EnumValue">, EnumMember>;
10
- databaseSchema: (string & z.BRAND<"PXL.DatabaseSchemaName">) | undefined;
11
- databaseName: string & z.BRAND<"PXL.DatabaseEnumName">;
9
+ members: Map<string & z.core.$brand<"PXL.EnumValue">, EnumMember>;
10
+ databaseSchema: (string & z.core.$brand<"PXL.DatabaseSchemaName">) | undefined;
11
+ databaseName: string & z.core.$brand<"PXL.DatabaseEnumName">;
12
12
  };
@@ -1,10 +1,10 @@
1
1
  import * as Branded from './shared/brands';
2
2
  import { FieldJSONInput } from './field';
3
- export declare const standardFieldName_id: "id" & import("zod").BRAND<"PXL.FieldName"> & import("zod").BRAND<"PXL.FieldName.Id">;
4
- export declare const standardFieldName_createdAt: string & import("zod").BRAND<"PXL.FieldName">;
5
- export declare const standardFieldName_updatedAt: string & import("zod").BRAND<"PXL.FieldName">;
6
- export declare const standardFieldName_name: string & import("zod").BRAND<"PXL.FieldName">;
7
- export declare const standardFieldNames: (string & import("zod").BRAND<"PXL.FieldName">)[];
3
+ export declare const standardFieldName_id: "id" & import("zod").$brand<"PXL.FieldName"> & import("zod").$brand<"PXL.FieldName.Id">;
4
+ export declare const standardFieldName_createdAt: string & import("zod").$brand<"PXL.FieldName">;
5
+ export declare const standardFieldName_updatedAt: string & import("zod").$brand<"PXL.FieldName">;
6
+ export declare const standardFieldName_name: string & import("zod").$brand<"PXL.FieldName">;
7
+ export declare const standardFieldNames: (string & import("zod").$brand<"PXL.FieldName">)[];
8
8
  export declare const standardField_id: FieldJSONInput;
9
9
  export declare const standardField_createdAt: FieldJSONInput;
10
10
  export declare const standardField_updatedAt: FieldJSONInput;
@@ -44,73 +44,37 @@ export type FieldDiscriminatedUnion = FieldCommon<FieldKindDiscriminatedUnion> &
44
44
  members: Map<Discriminator, DiscriminatedUnionMember>;
45
45
  };
46
46
  export type FieldDiscriminatedUnionEnriched = ReturnType<typeof fieldDiscriminatedUnionJSONTransformer>;
47
- declare const zDiscriminator: z.ZodBranded<z.ZodString, "PXL.Discriminator">;
47
+ declare const zDiscriminator: z.core.$ZodBranded<z.ZodString, "PXL.Discriminator", "out">;
48
48
  export type Discriminator = z.infer<typeof zDiscriminator>;
49
- declare const zDiscriminatorLabel: z.ZodBranded<z.ZodString, "PXL.DiscriminatorLabel">;
49
+ declare const zDiscriminatorLabel: z.core.$ZodBranded<z.ZodString, "PXL.DiscriminatorLabel", "out">;
50
50
  type DiscriminatorLabel = z.infer<typeof zDiscriminatorLabel>;
51
51
  export declare const zField: z.ZodRecord<z.ZodString, z.ZodAny>;
52
52
  /**
53
53
  * JSON Schema for an Discriminated Union field
54
54
  */
55
55
  export declare const zFieldDiscriminatedUnionJSON: z.ZodObject<{
56
- name: z.ZodEffects<z.ZodString, string, string>;
56
+ name: z.ZodString;
57
57
  type: z.ZodUnion<[z.ZodLiteral<"DiscriminatedUnion">, z.ZodLiteral<"DiscriminatedUnion?">]>;
58
58
  label: z.ZodOptional<z.ZodString>;
59
59
  description: z.ZodOptional<z.ZodString>;
60
60
  databaseName: z.ZodOptional<z.ZodString>;
61
- excelName: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>;
61
+ excelName: z.ZodOptional<z.ZodString>;
62
62
  members: z.ZodArray<z.ZodObject<{
63
- type: z.ZodEffects<z.ZodString, string, string>;
63
+ type: z.ZodString;
64
64
  label: z.ZodOptional<z.ZodString>;
65
- fields: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">>;
66
- }, "strip", z.ZodTypeAny, {
67
- type: string;
68
- label?: string | undefined;
69
- fields?: Record<string, any>[] | undefined;
70
- }, {
71
- type: string;
72
- label?: string | undefined;
73
- fields?: Record<string, any>[] | undefined;
74
- }>, "many">;
75
- commonFields: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">>;
65
+ fields: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>;
66
+ }, z.core.$strip>>;
67
+ commonFields: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>;
76
68
  isReadonly: z.ZodOptional<z.ZodBoolean>;
77
- }, "strip", z.ZodTypeAny, {
78
- type: "DiscriminatedUnion" | "DiscriminatedUnion?";
79
- name: string;
80
- members: {
81
- type: string;
82
- label?: string | undefined;
83
- fields?: Record<string, any>[] | undefined;
84
- }[];
85
- description?: string | undefined;
86
- databaseName?: string | undefined;
87
- excelName?: string | undefined;
88
- label?: string | undefined;
89
- isReadonly?: boolean | undefined;
90
- commonFields?: Record<string, any>[] | undefined;
91
- }, {
92
- type: "DiscriminatedUnion" | "DiscriminatedUnion?";
93
- name: string;
94
- members: {
95
- type: string;
96
- label?: string | undefined;
97
- fields?: Record<string, any>[] | undefined;
98
- }[];
99
- description?: string | undefined;
100
- databaseName?: string | undefined;
101
- excelName?: string | undefined;
102
- label?: string | undefined;
103
- isReadonly?: boolean | undefined;
104
- commonFields?: Record<string, any>[] | undefined;
105
- }>;
69
+ }, z.core.$strip>;
106
70
  export type FieldDiscriminatedUnionJSON = z.infer<typeof zFieldDiscriminatedUnionJSON>;
107
71
  export declare function fieldDiscriminatedUnionJSONTransformer(fieldInput: FieldDiscriminatedUnionJSON): {
108
72
  kind: "discriminatedUnion";
109
- name: string & z.BRAND<"PXL.FieldName">;
110
- discriminatorFieldName: string & z.BRAND<"PXL.FieldName">;
73
+ name: string & z.core.$brand<"PXL.FieldName">;
74
+ discriminatorFieldName: string & z.core.$brand<"PXL.FieldName">;
111
75
  label: string;
112
- databaseName: string & z.BRAND<"PXL.DatabaseFieldName">;
113
- excelName: string & z.BRAND<"PXL.ExcelColumnName">;
76
+ databaseName: string & z.core.$brand<"PXL.DatabaseFieldName">;
77
+ excelName: string & z.core.$brand<"PXL.ExcelColumnName">;
114
78
  description: string | undefined;
115
79
  members: {
116
80
  type: string;
@@ -20,42 +20,24 @@ export type FieldEnum = Omit<FieldCommon<FieldKindEnum>, 'databaseType'> & {
20
20
  export declare const createEnumJSONDecoder: ({ enumNames }: {
21
21
  enumNames: Enum.EnumName[];
22
22
  }) => z.ZodObject<{
23
- name: z.ZodEffects<z.ZodString, string, string>;
24
- type: z.ZodEffects<z.ZodString, string, string>;
23
+ name: z.ZodString;
24
+ type: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
25
25
  databaseName: z.ZodOptional<z.ZodString>;
26
- excelName: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>;
26
+ excelName: z.ZodOptional<z.ZodString>;
27
27
  label: z.ZodOptional<z.ZodString>;
28
28
  description: z.ZodOptional<z.ZodString>;
29
29
  isReadonly: z.ZodOptional<z.ZodBoolean>;
30
30
  isUnique: z.ZodOptional<z.ZodBoolean>;
31
- }, "strip", z.ZodTypeAny, {
32
- type: string;
33
- name: string;
34
- description?: string | undefined;
35
- databaseName?: string | undefined;
36
- excelName?: string | undefined;
37
- label?: string | undefined;
38
- isReadonly?: boolean | undefined;
39
- isUnique?: boolean | undefined;
40
- }, {
41
- type: string;
42
- name: string;
43
- description?: string | undefined;
44
- databaseName?: string | undefined;
45
- excelName?: string | undefined;
46
- label?: string | undefined;
47
- isReadonly?: boolean | undefined;
48
- isUnique?: boolean | undefined;
49
- }>;
31
+ }, z.core.$strip>;
50
32
  export type FieldEnumJSON = z.infer<ReturnType<typeof createEnumJSONDecoder>>;
51
33
  export declare function fieldEnumJSONTransformer(fieldInput: FieldEnumJSON): {
52
34
  kind: "enum";
53
- type: string & z.BRAND<"PXL.EnumType"> & z.BRAND<"PXL.Type">;
54
- name: string & z.BRAND<"PXL.FieldName">;
55
- referencedEnumName: string & z.BRAND<"PXL.EnumName">;
35
+ type: string & z.core.$brand<"PXL.EnumType"> & z.core.$brand<"PXL.Type">;
36
+ name: string & z.core.$brand<"PXL.FieldName">;
37
+ referencedEnumName: string & z.core.$brand<"PXL.EnumName">;
56
38
  label: string;
57
- databaseName: string & z.BRAND<"PXL.DatabaseFieldName">;
58
- excelName: string & z.BRAND<"PXL.ExcelColumnName">;
39
+ databaseName: string & z.core.$brand<"PXL.DatabaseFieldName">;
40
+ excelName: string & z.core.$brand<"PXL.ExcelColumnName">;
59
41
  description: string | undefined;
60
42
  isRequired: boolean;
61
43
  isReadonly: boolean;