@nfcard/validation 0.2.1 → 0.4.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;
@@ -1170,6 +1170,7 @@ declare const configurationCreateSchema: z.ZodObject<{
1170
1170
  }>;
1171
1171
  quantity: z.ZodDefault<z.ZodNumber>;
1172
1172
  existingProfileId: z.ZodOptional<z.ZodString>;
1173
+ physicalTemplateId: z.ZodOptional<z.ZodString>;
1173
1174
  }, "strip", z.ZodTypeAny, {
1174
1175
  sessionId: string;
1175
1176
  userData: {
@@ -1244,7 +1245,7 @@ declare const configurationCreateSchema: z.ZodObject<{
1244
1245
  } | undefined;
1245
1246
  };
1246
1247
  digitalConfig: {
1247
- templateId: "minimal" | "bold" | "card";
1248
+ templateId: "minimal" | "bold" | "card" | "aurora";
1248
1249
  accentColor: string;
1249
1250
  fontKey: string;
1250
1251
  showAvatar: boolean;
@@ -1276,6 +1277,7 @@ declare const configurationCreateSchema: z.ZodObject<{
1276
1277
  };
1277
1278
  quantity: number;
1278
1279
  existingProfileId?: string | undefined;
1280
+ physicalTemplateId?: string | undefined;
1279
1281
  }, {
1280
1282
  sessionId: string;
1281
1283
  userData: {
@@ -1350,7 +1352,7 @@ declare const configurationCreateSchema: z.ZodObject<{
1350
1352
  } | undefined;
1351
1353
  };
1352
1354
  digitalConfig: {
1353
- templateId: "minimal" | "bold" | "card";
1355
+ templateId: "minimal" | "bold" | "card" | "aurora";
1354
1356
  accentColor: string;
1355
1357
  fontKey: string;
1356
1358
  showAvatar: boolean;
@@ -1382,6 +1384,7 @@ declare const configurationCreateSchema: z.ZodObject<{
1382
1384
  };
1383
1385
  quantity?: number | undefined;
1384
1386
  existingProfileId?: string | undefined;
1387
+ physicalTemplateId?: string | undefined;
1385
1388
  }>;
1386
1389
  declare const configurationUpdateSchema: z.ZodObject<{
1387
1390
  userData: z.ZodOptional<z.ZodObject<{
@@ -1772,7 +1775,7 @@ declare const configurationUpdateSchema: z.ZodObject<{
1772
1775
  } | undefined;
1773
1776
  }>>;
1774
1777
  digitalConfig: z.ZodOptional<z.ZodObject<{
1775
- templateId: z.ZodEnum<["minimal", "bold", "card"]>;
1778
+ templateId: z.ZodEnum<["minimal", "bold", "card", "aurora"]>;
1776
1779
  accentColor: z.ZodString;
1777
1780
  primaryColor: z.ZodOptional<z.ZodString>;
1778
1781
  secondaryColor: z.ZodOptional<z.ZodString>;
@@ -1840,7 +1843,7 @@ declare const configurationUpdateSchema: z.ZodObject<{
1840
1843
  customUrlLabel?: string | undefined;
1841
1844
  }>>;
1842
1845
  }, "strip", z.ZodTypeAny, {
1843
- templateId: "minimal" | "bold" | "card";
1846
+ templateId: "minimal" | "bold" | "card" | "aurora";
1844
1847
  accentColor: string;
1845
1848
  fontKey: string;
1846
1849
  showAvatar: boolean;
@@ -1870,7 +1873,7 @@ declare const configurationUpdateSchema: z.ZodObject<{
1870
1873
  customUrlLabel?: string | undefined;
1871
1874
  } | undefined;
1872
1875
  }, {
1873
- templateId: "minimal" | "bold" | "card";
1876
+ templateId: "minimal" | "bold" | "card" | "aurora";
1874
1877
  accentColor: string;
1875
1878
  fontKey: string;
1876
1879
  showAvatar: boolean;
@@ -1902,6 +1905,7 @@ declare const configurationUpdateSchema: z.ZodObject<{
1902
1905
  }>>;
1903
1906
  quantity: z.ZodOptional<z.ZodNumber>;
1904
1907
  existingProfileId: z.ZodOptional<z.ZodString>;
1908
+ physicalTemplateId: z.ZodOptional<z.ZodString>;
1905
1909
  }, "strip", z.ZodTypeAny, {
1906
1910
  userData?: {
1907
1911
  email: string;
@@ -1975,7 +1979,7 @@ declare const configurationUpdateSchema: z.ZodObject<{
1975
1979
  } | undefined;
1976
1980
  } | undefined;
1977
1981
  digitalConfig?: {
1978
- templateId: "minimal" | "bold" | "card";
1982
+ templateId: "minimal" | "bold" | "card" | "aurora";
1979
1983
  accentColor: string;
1980
1984
  fontKey: string;
1981
1985
  showAvatar: boolean;
@@ -2007,6 +2011,7 @@ declare const configurationUpdateSchema: z.ZodObject<{
2007
2011
  } | undefined;
2008
2012
  quantity?: number | undefined;
2009
2013
  existingProfileId?: string | undefined;
2014
+ physicalTemplateId?: string | undefined;
2010
2015
  }, {
2011
2016
  userData?: {
2012
2017
  email: string;
@@ -2080,7 +2085,7 @@ declare const configurationUpdateSchema: z.ZodObject<{
2080
2085
  } | undefined;
2081
2086
  } | undefined;
2082
2087
  digitalConfig?: {
2083
- templateId: "minimal" | "bold" | "card";
2088
+ templateId: "minimal" | "bold" | "card" | "aurora";
2084
2089
  accentColor: string;
2085
2090
  fontKey: string;
2086
2091
  showAvatar: boolean;
@@ -2112,6 +2117,7 @@ declare const configurationUpdateSchema: z.ZodObject<{
2112
2117
  } | undefined;
2113
2118
  quantity?: number | undefined;
2114
2119
  existingProfileId?: string | undefined;
2120
+ physicalTemplateId?: string | undefined;
2115
2121
  }>;
2116
2122
  declare const createOrderSchema: z.ZodObject<{
2117
2123
  configurationId: z.ZodString;
@@ -2128,7 +2134,7 @@ declare const createOrderSchema: z.ZodObject<{
2128
2134
  }>;
2129
2135
  declare const cardUpdateSchema: z.ZodObject<{
2130
2136
  digitalConfigOverride: z.ZodOptional<z.ZodObject<{
2131
- templateId: z.ZodOptional<z.ZodOptional<z.ZodEnum<["minimal", "bold", "card"]>>>;
2137
+ templateId: z.ZodOptional<z.ZodOptional<z.ZodEnum<["minimal", "bold", "card", "aurora"]>>>;
2132
2138
  accentColor: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2133
2139
  primaryColor: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
2134
2140
  secondaryColor: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
@@ -2200,7 +2206,7 @@ declare const cardUpdateSchema: z.ZodObject<{
2200
2206
  }, "strip", z.ZodTypeAny, {
2201
2207
  profilePhotoUrl?: string | undefined;
2202
2208
  companyLogoUrl?: string | undefined;
2203
- templateId?: "minimal" | "bold" | "card" | undefined;
2209
+ templateId?: "minimal" | "bold" | "card" | "aurora" | undefined;
2204
2210
  accentColor?: string | undefined;
2205
2211
  primaryColor?: string | undefined;
2206
2212
  secondaryColor?: string | undefined;
@@ -2232,7 +2238,7 @@ declare const cardUpdateSchema: z.ZodObject<{
2232
2238
  }, {
2233
2239
  profilePhotoUrl?: string | undefined;
2234
2240
  companyLogoUrl?: string | undefined;
2235
- templateId?: "minimal" | "bold" | "card" | undefined;
2241
+ templateId?: "minimal" | "bold" | "card" | "aurora" | undefined;
2236
2242
  accentColor?: string | undefined;
2237
2243
  primaryColor?: string | undefined;
2238
2244
  secondaryColor?: string | undefined;
@@ -2268,7 +2274,7 @@ declare const cardUpdateSchema: z.ZodObject<{
2268
2274
  digitalConfigOverride?: {
2269
2275
  profilePhotoUrl?: string | undefined;
2270
2276
  companyLogoUrl?: string | undefined;
2271
- templateId?: "minimal" | "bold" | "card" | undefined;
2277
+ templateId?: "minimal" | "bold" | "card" | "aurora" | undefined;
2272
2278
  accentColor?: string | undefined;
2273
2279
  primaryColor?: string | undefined;
2274
2280
  secondaryColor?: string | undefined;
@@ -2303,7 +2309,7 @@ declare const cardUpdateSchema: z.ZodObject<{
2303
2309
  digitalConfigOverride?: {
2304
2310
  profilePhotoUrl?: string | undefined;
2305
2311
  companyLogoUrl?: string | undefined;
2306
- templateId?: "minimal" | "bold" | "card" | undefined;
2312
+ templateId?: "minimal" | "bold" | "card" | "aurora" | undefined;
2307
2313
  accentColor?: string | undefined;
2308
2314
  primaryColor?: string | undefined;
2309
2315
  secondaryColor?: string | undefined;
@@ -2425,7 +2431,7 @@ declare const adminCardCreateSchema: z.ZodObject<{
2425
2431
  } | undefined;
2426
2432
  }>;
2427
2433
  digitalConfig: z.ZodObject<{
2428
- templateId: z.ZodEnum<["minimal", "bold", "card"]>;
2434
+ templateId: z.ZodEnum<["minimal", "bold", "card", "aurora"]>;
2429
2435
  accentColor: z.ZodString;
2430
2436
  primaryColor: z.ZodOptional<z.ZodString>;
2431
2437
  secondaryColor: z.ZodOptional<z.ZodString>;
@@ -2493,7 +2499,7 @@ declare const adminCardCreateSchema: z.ZodObject<{
2493
2499
  customUrlLabel?: string | undefined;
2494
2500
  }>>;
2495
2501
  }, "strip", z.ZodTypeAny, {
2496
- templateId: "minimal" | "bold" | "card";
2502
+ templateId: "minimal" | "bold" | "card" | "aurora";
2497
2503
  accentColor: string;
2498
2504
  fontKey: string;
2499
2505
  showAvatar: boolean;
@@ -2523,7 +2529,7 @@ declare const adminCardCreateSchema: z.ZodObject<{
2523
2529
  customUrlLabel?: string | undefined;
2524
2530
  } | undefined;
2525
2531
  }, {
2526
- templateId: "minimal" | "bold" | "card";
2532
+ templateId: "minimal" | "bold" | "card" | "aurora";
2527
2533
  accentColor: string;
2528
2534
  fontKey: string;
2529
2535
  showAvatar: boolean;
@@ -2878,7 +2884,7 @@ declare const adminCardCreateSchema: z.ZodObject<{
2878
2884
  } | undefined;
2879
2885
  };
2880
2886
  digitalConfig: {
2881
- templateId: "minimal" | "bold" | "card";
2887
+ templateId: "minimal" | "bold" | "card" | "aurora";
2882
2888
  accentColor: string;
2883
2889
  fontKey: string;
2884
2890
  showAvatar: boolean;
@@ -2982,7 +2988,7 @@ declare const adminCardCreateSchema: z.ZodObject<{
2982
2988
  } | undefined;
2983
2989
  };
2984
2990
  digitalConfig: {
2985
- templateId: "minimal" | "bold" | "card";
2991
+ templateId: "minimal" | "bold" | "card" | "aurora";
2986
2992
  accentColor: string;
2987
2993
  fontKey: string;
2988
2994
  showAvatar: boolean;
@@ -3245,7 +3251,7 @@ declare const profileCreateSchema: z.ZodObject<{
3245
3251
  } | undefined;
3246
3252
  }>;
3247
3253
  digitalConfig: z.ZodObject<{
3248
- templateId: z.ZodEnum<["minimal", "bold", "card"]>;
3254
+ templateId: z.ZodEnum<["minimal", "bold", "card", "aurora"]>;
3249
3255
  accentColor: z.ZodString;
3250
3256
  primaryColor: z.ZodOptional<z.ZodString>;
3251
3257
  secondaryColor: z.ZodOptional<z.ZodString>;
@@ -3313,7 +3319,7 @@ declare const profileCreateSchema: z.ZodObject<{
3313
3319
  customUrlLabel?: string | undefined;
3314
3320
  }>>;
3315
3321
  }, "strip", z.ZodTypeAny, {
3316
- templateId: "minimal" | "bold" | "card";
3322
+ templateId: "minimal" | "bold" | "card" | "aurora";
3317
3323
  accentColor: string;
3318
3324
  fontKey: string;
3319
3325
  showAvatar: boolean;
@@ -3343,7 +3349,7 @@ declare const profileCreateSchema: z.ZodObject<{
3343
3349
  customUrlLabel?: string | undefined;
3344
3350
  } | undefined;
3345
3351
  }, {
3346
- templateId: "minimal" | "bold" | "card";
3352
+ templateId: "minimal" | "bold" | "card" | "aurora";
3347
3353
  accentColor: string;
3348
3354
  fontKey: string;
3349
3355
  showAvatar: boolean;
@@ -3402,7 +3408,7 @@ declare const profileCreateSchema: z.ZodObject<{
3402
3408
  } | undefined;
3403
3409
  };
3404
3410
  digitalConfig: {
3405
- templateId: "minimal" | "bold" | "card";
3411
+ templateId: "minimal" | "bold" | "card" | "aurora";
3406
3412
  accentColor: string;
3407
3413
  fontKey: string;
3408
3414
  showAvatar: boolean;
@@ -3462,7 +3468,7 @@ declare const profileCreateSchema: z.ZodObject<{
3462
3468
  } | undefined;
3463
3469
  };
3464
3470
  digitalConfig: {
3465
- templateId: "minimal" | "bold" | "card";
3471
+ templateId: "minimal" | "bold" | "card" | "aurora";
3466
3472
  accentColor: string;
3467
3473
  fontKey: string;
3468
3474
  showAvatar: boolean;
@@ -3597,7 +3603,7 @@ declare const signupWithProfileSchema: z.ZodObject<{
3597
3603
  } | undefined;
3598
3604
  }>;
3599
3605
  digitalConfig: z.ZodObject<{
3600
- templateId: z.ZodEnum<["minimal", "bold", "card"]>;
3606
+ templateId: z.ZodEnum<["minimal", "bold", "card", "aurora"]>;
3601
3607
  accentColor: z.ZodString;
3602
3608
  primaryColor: z.ZodOptional<z.ZodString>;
3603
3609
  secondaryColor: z.ZodOptional<z.ZodString>;
@@ -3665,7 +3671,7 @@ declare const signupWithProfileSchema: z.ZodObject<{
3665
3671
  customUrlLabel?: string | undefined;
3666
3672
  }>>;
3667
3673
  }, "strip", z.ZodTypeAny, {
3668
- templateId: "minimal" | "bold" | "card";
3674
+ templateId: "minimal" | "bold" | "card" | "aurora";
3669
3675
  accentColor: string;
3670
3676
  fontKey: string;
3671
3677
  showAvatar: boolean;
@@ -3695,7 +3701,7 @@ declare const signupWithProfileSchema: z.ZodObject<{
3695
3701
  customUrlLabel?: string | undefined;
3696
3702
  } | undefined;
3697
3703
  }, {
3698
- templateId: "minimal" | "bold" | "card";
3704
+ templateId: "minimal" | "bold" | "card" | "aurora";
3699
3705
  accentColor: string;
3700
3706
  fontKey: string;
3701
3707
  showAvatar: boolean;
@@ -3752,7 +3758,7 @@ declare const signupWithProfileSchema: z.ZodObject<{
3752
3758
  } | undefined;
3753
3759
  };
3754
3760
  digitalConfig: {
3755
- templateId: "minimal" | "bold" | "card";
3761
+ templateId: "minimal" | "bold" | "card" | "aurora";
3756
3762
  accentColor: string;
3757
3763
  fontKey: string;
3758
3764
  showAvatar: boolean;
@@ -3816,7 +3822,7 @@ declare const signupWithProfileSchema: z.ZodObject<{
3816
3822
  } | undefined;
3817
3823
  };
3818
3824
  digitalConfig: {
3819
- templateId: "minimal" | "bold" | "card";
3825
+ templateId: "minimal" | "bold" | "card" | "aurora";
3820
3826
  accentColor: string;
3821
3827
  fontKey: string;
3822
3828
  showAvatar: boolean;
@@ -3947,7 +3953,7 @@ declare const profileUpdateSchema: z.ZodObject<{
3947
3953
  } | undefined;
3948
3954
  }>>;
3949
3955
  digitalConfig: z.ZodOptional<z.ZodObject<{
3950
- templateId: z.ZodOptional<z.ZodOptional<z.ZodEnum<["minimal", "bold", "card"]>>>;
3956
+ templateId: z.ZodOptional<z.ZodOptional<z.ZodEnum<["minimal", "bold", "card", "aurora"]>>>;
3951
3957
  accentColor: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3952
3958
  primaryColor: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
3953
3959
  secondaryColor: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
@@ -4019,7 +4025,7 @@ declare const profileUpdateSchema: z.ZodObject<{
4019
4025
  }, "strip", z.ZodTypeAny, {
4020
4026
  profilePhotoUrl?: string | undefined;
4021
4027
  companyLogoUrl?: string | undefined;
4022
- templateId?: "minimal" | "bold" | "card" | undefined;
4028
+ templateId?: "minimal" | "bold" | "card" | "aurora" | undefined;
4023
4029
  accentColor?: string | undefined;
4024
4030
  primaryColor?: string | undefined;
4025
4031
  secondaryColor?: string | undefined;
@@ -4051,7 +4057,7 @@ declare const profileUpdateSchema: z.ZodObject<{
4051
4057
  }, {
4052
4058
  profilePhotoUrl?: string | undefined;
4053
4059
  companyLogoUrl?: string | undefined;
4054
- templateId?: "minimal" | "bold" | "card" | undefined;
4060
+ templateId?: "minimal" | "bold" | "card" | "aurora" | undefined;
4055
4061
  accentColor?: string | undefined;
4056
4062
  primaryColor?: string | undefined;
4057
4063
  secondaryColor?: string | undefined;
@@ -4112,7 +4118,7 @@ declare const profileUpdateSchema: z.ZodObject<{
4112
4118
  digitalConfig?: {
4113
4119
  profilePhotoUrl?: string | undefined;
4114
4120
  companyLogoUrl?: string | undefined;
4115
- templateId?: "minimal" | "bold" | "card" | undefined;
4121
+ templateId?: "minimal" | "bold" | "card" | "aurora" | undefined;
4116
4122
  accentColor?: string | undefined;
4117
4123
  primaryColor?: string | undefined;
4118
4124
  secondaryColor?: string | undefined;
@@ -4174,7 +4180,7 @@ declare const profileUpdateSchema: z.ZodObject<{
4174
4180
  digitalConfig?: {
4175
4181
  profilePhotoUrl?: string | undefined;
4176
4182
  companyLogoUrl?: string | undefined;
4177
- templateId?: "minimal" | "bold" | "card" | undefined;
4183
+ templateId?: "minimal" | "bold" | "card" | "aurora" | undefined;
4178
4184
  accentColor?: string | undefined;
4179
4185
  primaryColor?: string | undefined;
4180
4186
  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.4.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);
@@ -417,6 +425,29 @@ describe('validateConfiguration', () => {
417
425
  });
418
426
  expect(r.success).toBe(false);
419
427
  });
428
+
429
+ it('keeps physicalTemplateId when provided (NFCARD-3 Template path)', () => {
430
+ const r = configurationCreateSchema.safeParse({
431
+ sessionId: '550e8400-e29b-41d4-a716-446655440000',
432
+ userData: validUserData,
433
+ physicalConfig: validPhysicalConfig,
434
+ digitalConfig: validDigitalConfig,
435
+ physicalTemplateId: 'tpl-pvc-white',
436
+ });
437
+ expect(r.success).toBe(true);
438
+ if (r.success) expect(r.data.physicalTemplateId).toBe('tpl-pvc-white');
439
+ });
440
+
441
+ it('omits physicalTemplateId for the Custom path (optional)', () => {
442
+ const r = configurationCreateSchema.safeParse({
443
+ sessionId: '550e8400-e29b-41d4-a716-446655440000',
444
+ userData: validUserData,
445
+ physicalConfig: validPhysicalConfig,
446
+ digitalConfig: validDigitalConfig,
447
+ });
448
+ expect(r.success).toBe(true);
449
+ if (r.success) expect(r.data.physicalTemplateId).toBeUndefined();
450
+ });
420
451
  });
421
452
 
422
453
  // ── profileCreateSchema ─────────────────────────────────────────
package/src/index.ts CHANGED
Binary file