@nfcard/validation 0.2.1 → 0.3.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/dist/index.d.ts CHANGED
@@ -522,7 +522,7 @@ declare const digitalVisibilitySchema: z.ZodObject<{
522
522
  showSocialLinks?: boolean | undefined;
523
523
  }>;
524
524
  declare const digitalConfigSchema: z.ZodObject<{
525
- templateId: z.ZodEnum<["minimal", "bold", "card"]>;
525
+ templateId: z.ZodEnum<["minimal", "bold", "card", "aurora"]>;
526
526
  accentColor: z.ZodString;
527
527
  primaryColor: z.ZodOptional<z.ZodString>;
528
528
  secondaryColor: z.ZodOptional<z.ZodString>;
@@ -590,7 +590,7 @@ declare const digitalConfigSchema: z.ZodObject<{
590
590
  customUrlLabel?: string | undefined;
591
591
  }>>;
592
592
  }, "strip", z.ZodTypeAny, {
593
- templateId: "minimal" | "bold" | "card";
593
+ templateId: "minimal" | "bold" | "card" | "aurora";
594
594
  accentColor: string;
595
595
  fontKey: string;
596
596
  showAvatar: boolean;
@@ -620,7 +620,7 @@ declare const digitalConfigSchema: z.ZodObject<{
620
620
  customUrlLabel?: string | undefined;
621
621
  } | undefined;
622
622
  }, {
623
- templateId: "minimal" | "bold" | "card";
623
+ templateId: "minimal" | "bold" | "card" | "aurora";
624
624
  accentColor: string;
625
625
  fontKey: string;
626
626
  showAvatar: boolean;
@@ -1040,7 +1040,7 @@ declare const configurationCreateSchema: z.ZodObject<{
1040
1040
  } | undefined;
1041
1041
  }>;
1042
1042
  digitalConfig: z.ZodObject<{
1043
- templateId: z.ZodEnum<["minimal", "bold", "card"]>;
1043
+ templateId: z.ZodEnum<["minimal", "bold", "card", "aurora"]>;
1044
1044
  accentColor: z.ZodString;
1045
1045
  primaryColor: z.ZodOptional<z.ZodString>;
1046
1046
  secondaryColor: z.ZodOptional<z.ZodString>;
@@ -1108,7 +1108,7 @@ declare const configurationCreateSchema: z.ZodObject<{
1108
1108
  customUrlLabel?: string | undefined;
1109
1109
  }>>;
1110
1110
  }, "strip", z.ZodTypeAny, {
1111
- templateId: "minimal" | "bold" | "card";
1111
+ templateId: "minimal" | "bold" | "card" | "aurora";
1112
1112
  accentColor: string;
1113
1113
  fontKey: string;
1114
1114
  showAvatar: boolean;
@@ -1138,7 +1138,7 @@ declare const configurationCreateSchema: z.ZodObject<{
1138
1138
  customUrlLabel?: string | undefined;
1139
1139
  } | undefined;
1140
1140
  }, {
1141
- templateId: "minimal" | "bold" | "card";
1141
+ templateId: "minimal" | "bold" | "card" | "aurora";
1142
1142
  accentColor: string;
1143
1143
  fontKey: string;
1144
1144
  showAvatar: boolean;
@@ -1244,7 +1244,7 @@ declare const configurationCreateSchema: z.ZodObject<{
1244
1244
  } | undefined;
1245
1245
  };
1246
1246
  digitalConfig: {
1247
- templateId: "minimal" | "bold" | "card";
1247
+ templateId: "minimal" | "bold" | "card" | "aurora";
1248
1248
  accentColor: string;
1249
1249
  fontKey: string;
1250
1250
  showAvatar: boolean;
@@ -1350,7 +1350,7 @@ declare const configurationCreateSchema: z.ZodObject<{
1350
1350
  } | undefined;
1351
1351
  };
1352
1352
  digitalConfig: {
1353
- templateId: "minimal" | "bold" | "card";
1353
+ templateId: "minimal" | "bold" | "card" | "aurora";
1354
1354
  accentColor: string;
1355
1355
  fontKey: string;
1356
1356
  showAvatar: boolean;
@@ -1772,7 +1772,7 @@ declare const configurationUpdateSchema: z.ZodObject<{
1772
1772
  } | undefined;
1773
1773
  }>>;
1774
1774
  digitalConfig: z.ZodOptional<z.ZodObject<{
1775
- templateId: z.ZodEnum<["minimal", "bold", "card"]>;
1775
+ templateId: z.ZodEnum<["minimal", "bold", "card", "aurora"]>;
1776
1776
  accentColor: z.ZodString;
1777
1777
  primaryColor: z.ZodOptional<z.ZodString>;
1778
1778
  secondaryColor: z.ZodOptional<z.ZodString>;
@@ -1840,7 +1840,7 @@ declare const configurationUpdateSchema: z.ZodObject<{
1840
1840
  customUrlLabel?: string | undefined;
1841
1841
  }>>;
1842
1842
  }, "strip", z.ZodTypeAny, {
1843
- templateId: "minimal" | "bold" | "card";
1843
+ templateId: "minimal" | "bold" | "card" | "aurora";
1844
1844
  accentColor: string;
1845
1845
  fontKey: string;
1846
1846
  showAvatar: boolean;
@@ -1870,7 +1870,7 @@ declare const configurationUpdateSchema: z.ZodObject<{
1870
1870
  customUrlLabel?: string | undefined;
1871
1871
  } | undefined;
1872
1872
  }, {
1873
- templateId: "minimal" | "bold" | "card";
1873
+ templateId: "minimal" | "bold" | "card" | "aurora";
1874
1874
  accentColor: string;
1875
1875
  fontKey: string;
1876
1876
  showAvatar: boolean;
@@ -1975,7 +1975,7 @@ declare const configurationUpdateSchema: z.ZodObject<{
1975
1975
  } | undefined;
1976
1976
  } | undefined;
1977
1977
  digitalConfig?: {
1978
- templateId: "minimal" | "bold" | "card";
1978
+ templateId: "minimal" | "bold" | "card" | "aurora";
1979
1979
  accentColor: string;
1980
1980
  fontKey: string;
1981
1981
  showAvatar: boolean;
@@ -2080,7 +2080,7 @@ declare const configurationUpdateSchema: z.ZodObject<{
2080
2080
  } | undefined;
2081
2081
  } | undefined;
2082
2082
  digitalConfig?: {
2083
- templateId: "minimal" | "bold" | "card";
2083
+ templateId: "minimal" | "bold" | "card" | "aurora";
2084
2084
  accentColor: string;
2085
2085
  fontKey: string;
2086
2086
  showAvatar: boolean;
@@ -2128,7 +2128,7 @@ declare const createOrderSchema: z.ZodObject<{
2128
2128
  }>;
2129
2129
  declare const cardUpdateSchema: z.ZodObject<{
2130
2130
  digitalConfigOverride: z.ZodOptional<z.ZodObject<{
2131
- templateId: z.ZodOptional<z.ZodOptional<z.ZodEnum<["minimal", "bold", "card"]>>>;
2131
+ templateId: z.ZodOptional<z.ZodOptional<z.ZodEnum<["minimal", "bold", "card", "aurora"]>>>;
2132
2132
  accentColor: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2133
2133
  primaryColor: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
2134
2134
  secondaryColor: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
@@ -2200,7 +2200,7 @@ declare const cardUpdateSchema: z.ZodObject<{
2200
2200
  }, "strip", z.ZodTypeAny, {
2201
2201
  profilePhotoUrl?: string | undefined;
2202
2202
  companyLogoUrl?: string | undefined;
2203
- templateId?: "minimal" | "bold" | "card" | undefined;
2203
+ templateId?: "minimal" | "bold" | "card" | "aurora" | undefined;
2204
2204
  accentColor?: string | undefined;
2205
2205
  primaryColor?: string | undefined;
2206
2206
  secondaryColor?: string | undefined;
@@ -2232,7 +2232,7 @@ declare const cardUpdateSchema: z.ZodObject<{
2232
2232
  }, {
2233
2233
  profilePhotoUrl?: string | undefined;
2234
2234
  companyLogoUrl?: string | undefined;
2235
- templateId?: "minimal" | "bold" | "card" | undefined;
2235
+ templateId?: "minimal" | "bold" | "card" | "aurora" | undefined;
2236
2236
  accentColor?: string | undefined;
2237
2237
  primaryColor?: string | undefined;
2238
2238
  secondaryColor?: string | undefined;
@@ -2268,7 +2268,7 @@ declare const cardUpdateSchema: z.ZodObject<{
2268
2268
  digitalConfigOverride?: {
2269
2269
  profilePhotoUrl?: string | undefined;
2270
2270
  companyLogoUrl?: string | undefined;
2271
- templateId?: "minimal" | "bold" | "card" | undefined;
2271
+ templateId?: "minimal" | "bold" | "card" | "aurora" | undefined;
2272
2272
  accentColor?: string | undefined;
2273
2273
  primaryColor?: string | undefined;
2274
2274
  secondaryColor?: string | undefined;
@@ -2303,7 +2303,7 @@ declare const cardUpdateSchema: z.ZodObject<{
2303
2303
  digitalConfigOverride?: {
2304
2304
  profilePhotoUrl?: string | undefined;
2305
2305
  companyLogoUrl?: string | undefined;
2306
- templateId?: "minimal" | "bold" | "card" | undefined;
2306
+ templateId?: "minimal" | "bold" | "card" | "aurora" | undefined;
2307
2307
  accentColor?: string | undefined;
2308
2308
  primaryColor?: string | undefined;
2309
2309
  secondaryColor?: string | undefined;
@@ -2425,7 +2425,7 @@ declare const adminCardCreateSchema: z.ZodObject<{
2425
2425
  } | undefined;
2426
2426
  }>;
2427
2427
  digitalConfig: z.ZodObject<{
2428
- templateId: z.ZodEnum<["minimal", "bold", "card"]>;
2428
+ templateId: z.ZodEnum<["minimal", "bold", "card", "aurora"]>;
2429
2429
  accentColor: z.ZodString;
2430
2430
  primaryColor: z.ZodOptional<z.ZodString>;
2431
2431
  secondaryColor: z.ZodOptional<z.ZodString>;
@@ -2493,7 +2493,7 @@ declare const adminCardCreateSchema: z.ZodObject<{
2493
2493
  customUrlLabel?: string | undefined;
2494
2494
  }>>;
2495
2495
  }, "strip", z.ZodTypeAny, {
2496
- templateId: "minimal" | "bold" | "card";
2496
+ templateId: "minimal" | "bold" | "card" | "aurora";
2497
2497
  accentColor: string;
2498
2498
  fontKey: string;
2499
2499
  showAvatar: boolean;
@@ -2523,7 +2523,7 @@ declare const adminCardCreateSchema: z.ZodObject<{
2523
2523
  customUrlLabel?: string | undefined;
2524
2524
  } | undefined;
2525
2525
  }, {
2526
- templateId: "minimal" | "bold" | "card";
2526
+ templateId: "minimal" | "bold" | "card" | "aurora";
2527
2527
  accentColor: string;
2528
2528
  fontKey: string;
2529
2529
  showAvatar: boolean;
@@ -2878,7 +2878,7 @@ declare const adminCardCreateSchema: z.ZodObject<{
2878
2878
  } | undefined;
2879
2879
  };
2880
2880
  digitalConfig: {
2881
- templateId: "minimal" | "bold" | "card";
2881
+ templateId: "minimal" | "bold" | "card" | "aurora";
2882
2882
  accentColor: string;
2883
2883
  fontKey: string;
2884
2884
  showAvatar: boolean;
@@ -2982,7 +2982,7 @@ declare const adminCardCreateSchema: z.ZodObject<{
2982
2982
  } | undefined;
2983
2983
  };
2984
2984
  digitalConfig: {
2985
- templateId: "minimal" | "bold" | "card";
2985
+ templateId: "minimal" | "bold" | "card" | "aurora";
2986
2986
  accentColor: string;
2987
2987
  fontKey: string;
2988
2988
  showAvatar: boolean;
@@ -3245,7 +3245,7 @@ declare const profileCreateSchema: z.ZodObject<{
3245
3245
  } | undefined;
3246
3246
  }>;
3247
3247
  digitalConfig: z.ZodObject<{
3248
- templateId: z.ZodEnum<["minimal", "bold", "card"]>;
3248
+ templateId: z.ZodEnum<["minimal", "bold", "card", "aurora"]>;
3249
3249
  accentColor: z.ZodString;
3250
3250
  primaryColor: z.ZodOptional<z.ZodString>;
3251
3251
  secondaryColor: z.ZodOptional<z.ZodString>;
@@ -3313,7 +3313,7 @@ declare const profileCreateSchema: z.ZodObject<{
3313
3313
  customUrlLabel?: string | undefined;
3314
3314
  }>>;
3315
3315
  }, "strip", z.ZodTypeAny, {
3316
- templateId: "minimal" | "bold" | "card";
3316
+ templateId: "minimal" | "bold" | "card" | "aurora";
3317
3317
  accentColor: string;
3318
3318
  fontKey: string;
3319
3319
  showAvatar: boolean;
@@ -3343,7 +3343,7 @@ declare const profileCreateSchema: z.ZodObject<{
3343
3343
  customUrlLabel?: string | undefined;
3344
3344
  } | undefined;
3345
3345
  }, {
3346
- templateId: "minimal" | "bold" | "card";
3346
+ templateId: "minimal" | "bold" | "card" | "aurora";
3347
3347
  accentColor: string;
3348
3348
  fontKey: string;
3349
3349
  showAvatar: boolean;
@@ -3402,7 +3402,7 @@ declare const profileCreateSchema: z.ZodObject<{
3402
3402
  } | undefined;
3403
3403
  };
3404
3404
  digitalConfig: {
3405
- templateId: "minimal" | "bold" | "card";
3405
+ templateId: "minimal" | "bold" | "card" | "aurora";
3406
3406
  accentColor: string;
3407
3407
  fontKey: string;
3408
3408
  showAvatar: boolean;
@@ -3462,7 +3462,7 @@ declare const profileCreateSchema: z.ZodObject<{
3462
3462
  } | undefined;
3463
3463
  };
3464
3464
  digitalConfig: {
3465
- templateId: "minimal" | "bold" | "card";
3465
+ templateId: "minimal" | "bold" | "card" | "aurora";
3466
3466
  accentColor: string;
3467
3467
  fontKey: string;
3468
3468
  showAvatar: boolean;
@@ -3597,7 +3597,7 @@ declare const signupWithProfileSchema: z.ZodObject<{
3597
3597
  } | undefined;
3598
3598
  }>;
3599
3599
  digitalConfig: z.ZodObject<{
3600
- templateId: z.ZodEnum<["minimal", "bold", "card"]>;
3600
+ templateId: z.ZodEnum<["minimal", "bold", "card", "aurora"]>;
3601
3601
  accentColor: z.ZodString;
3602
3602
  primaryColor: z.ZodOptional<z.ZodString>;
3603
3603
  secondaryColor: z.ZodOptional<z.ZodString>;
@@ -3665,7 +3665,7 @@ declare const signupWithProfileSchema: z.ZodObject<{
3665
3665
  customUrlLabel?: string | undefined;
3666
3666
  }>>;
3667
3667
  }, "strip", z.ZodTypeAny, {
3668
- templateId: "minimal" | "bold" | "card";
3668
+ templateId: "minimal" | "bold" | "card" | "aurora";
3669
3669
  accentColor: string;
3670
3670
  fontKey: string;
3671
3671
  showAvatar: boolean;
@@ -3695,7 +3695,7 @@ declare const signupWithProfileSchema: z.ZodObject<{
3695
3695
  customUrlLabel?: string | undefined;
3696
3696
  } | undefined;
3697
3697
  }, {
3698
- templateId: "minimal" | "bold" | "card";
3698
+ templateId: "minimal" | "bold" | "card" | "aurora";
3699
3699
  accentColor: string;
3700
3700
  fontKey: string;
3701
3701
  showAvatar: boolean;
@@ -3752,7 +3752,7 @@ declare const signupWithProfileSchema: z.ZodObject<{
3752
3752
  } | undefined;
3753
3753
  };
3754
3754
  digitalConfig: {
3755
- templateId: "minimal" | "bold" | "card";
3755
+ templateId: "minimal" | "bold" | "card" | "aurora";
3756
3756
  accentColor: string;
3757
3757
  fontKey: string;
3758
3758
  showAvatar: boolean;
@@ -3816,7 +3816,7 @@ declare const signupWithProfileSchema: z.ZodObject<{
3816
3816
  } | undefined;
3817
3817
  };
3818
3818
  digitalConfig: {
3819
- templateId: "minimal" | "bold" | "card";
3819
+ templateId: "minimal" | "bold" | "card" | "aurora";
3820
3820
  accentColor: string;
3821
3821
  fontKey: string;
3822
3822
  showAvatar: boolean;
@@ -3947,7 +3947,7 @@ declare const profileUpdateSchema: z.ZodObject<{
3947
3947
  } | undefined;
3948
3948
  }>>;
3949
3949
  digitalConfig: z.ZodOptional<z.ZodObject<{
3950
- templateId: z.ZodOptional<z.ZodOptional<z.ZodEnum<["minimal", "bold", "card"]>>>;
3950
+ templateId: z.ZodOptional<z.ZodOptional<z.ZodEnum<["minimal", "bold", "card", "aurora"]>>>;
3951
3951
  accentColor: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3952
3952
  primaryColor: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
3953
3953
  secondaryColor: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
@@ -4019,7 +4019,7 @@ declare const profileUpdateSchema: z.ZodObject<{
4019
4019
  }, "strip", z.ZodTypeAny, {
4020
4020
  profilePhotoUrl?: string | undefined;
4021
4021
  companyLogoUrl?: string | undefined;
4022
- templateId?: "minimal" | "bold" | "card" | undefined;
4022
+ templateId?: "minimal" | "bold" | "card" | "aurora" | undefined;
4023
4023
  accentColor?: string | undefined;
4024
4024
  primaryColor?: string | undefined;
4025
4025
  secondaryColor?: string | undefined;
@@ -4051,7 +4051,7 @@ declare const profileUpdateSchema: z.ZodObject<{
4051
4051
  }, {
4052
4052
  profilePhotoUrl?: string | undefined;
4053
4053
  companyLogoUrl?: string | undefined;
4054
- templateId?: "minimal" | "bold" | "card" | undefined;
4054
+ templateId?: "minimal" | "bold" | "card" | "aurora" | undefined;
4055
4055
  accentColor?: string | undefined;
4056
4056
  primaryColor?: string | undefined;
4057
4057
  secondaryColor?: string | undefined;
@@ -4112,7 +4112,7 @@ declare const profileUpdateSchema: z.ZodObject<{
4112
4112
  digitalConfig?: {
4113
4113
  profilePhotoUrl?: string | undefined;
4114
4114
  companyLogoUrl?: string | undefined;
4115
- templateId?: "minimal" | "bold" | "card" | undefined;
4115
+ templateId?: "minimal" | "bold" | "card" | "aurora" | undefined;
4116
4116
  accentColor?: string | undefined;
4117
4117
  primaryColor?: string | undefined;
4118
4118
  secondaryColor?: string | undefined;
@@ -4174,7 +4174,7 @@ declare const profileUpdateSchema: z.ZodObject<{
4174
4174
  digitalConfig?: {
4175
4175
  profilePhotoUrl?: string | undefined;
4176
4176
  companyLogoUrl?: string | undefined;
4177
- templateId?: "minimal" | "bold" | "card" | undefined;
4177
+ templateId?: "minimal" | "bold" | "card" | "aurora" | undefined;
4178
4178
  accentColor?: string | undefined;
4179
4179
  primaryColor?: string | undefined;
4180
4180
  secondaryColor?: string | undefined;
package/dist/index.js CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nfcard/validation",
3
- "version": "0.2.1",
3
+ "version": "0.3.0",
4
4
  "description": "Shared Zod validation schemas for the NFCard product family.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -17,7 +17,7 @@
17
17
  ],
18
18
  "dependencies": {
19
19
  "zod": "^3.24.0",
20
- "@nfcard/types": "0.3.0"
20
+ "@nfcard/types": "0.4.0"
21
21
  },
22
22
  "devDependencies": {
23
23
  "tsup": "^8.0.0"
package/src/index.test.ts CHANGED
@@ -366,6 +366,14 @@ describe('digitalConfigSchema / validateDigitalConfig', () => {
366
366
  expect(r.success).toBe(false);
367
367
  });
368
368
 
369
+ it('accepts the aurora templateId', () => {
370
+ const r = validateDigitalConfig({
371
+ ...validDigitalConfig,
372
+ templateId: 'aurora',
373
+ });
374
+ expect(r.success).toBe(true);
375
+ });
376
+
369
377
  it('rejects an empty fontKey', () => {
370
378
  const r = validateDigitalConfig({ ...validDigitalConfig, fontKey: '' });
371
379
  expect(r.success).toBe(false);
package/src/index.ts CHANGED
Binary file