@nfcard/validation 0.13.0 → 0.14.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
@@ -5143,7 +5143,7 @@ declare const ctaButtonsSchema: z.ZodEffects<z.ZodArray<z.ZodObject<{
5143
5143
  label?: string | undefined;
5144
5144
  }[]>;
5145
5145
  declare const digitalConfigSchema: z.ZodObject<{
5146
- templateId: z.ZodEnum<["minimal", "bold", "card", "aurora"]>;
5146
+ templateId: z.ZodEnum<["minimal", "bold", "card", "aurora", "classic", "spotlight", "marquee", "riso"]>;
5147
5147
  accentColor: z.ZodString;
5148
5148
  primaryColor: z.ZodOptional<z.ZodString>;
5149
5149
  secondaryColor: z.ZodOptional<z.ZodString>;
@@ -5231,7 +5231,7 @@ declare const digitalConfigSchema: z.ZodObject<{
5231
5231
  }[]>>;
5232
5232
  }, "strip", z.ZodTypeAny, {
5233
5233
  fontKey: string;
5234
- templateId: "minimal" | "bold" | "card" | "aurora";
5234
+ templateId: "minimal" | "bold" | "card" | "aurora" | "classic" | "spotlight" | "marquee" | "riso";
5235
5235
  accentColor: string;
5236
5236
  showAvatar: boolean;
5237
5237
  primaryColor?: string | undefined;
@@ -5266,7 +5266,7 @@ declare const digitalConfigSchema: z.ZodObject<{
5266
5266
  }[] | undefined;
5267
5267
  }, {
5268
5268
  fontKey: string;
5269
- templateId: "minimal" | "bold" | "card" | "aurora";
5269
+ templateId: "minimal" | "bold" | "card" | "aurora" | "classic" | "spotlight" | "marquee" | "riso";
5270
5270
  accentColor: string;
5271
5271
  showAvatar: boolean;
5272
5272
  primaryColor?: string | undefined;
@@ -8678,7 +8678,7 @@ declare const configurationCreateSchema: z.ZodObject<{
8678
8678
  } | undefined;
8679
8679
  }>;
8680
8680
  digitalConfig: z.ZodObject<{
8681
- templateId: z.ZodEnum<["minimal", "bold", "card", "aurora"]>;
8681
+ templateId: z.ZodEnum<["minimal", "bold", "card", "aurora", "classic", "spotlight", "marquee", "riso"]>;
8682
8682
  accentColor: z.ZodString;
8683
8683
  primaryColor: z.ZodOptional<z.ZodString>;
8684
8684
  secondaryColor: z.ZodOptional<z.ZodString>;
@@ -8766,7 +8766,7 @@ declare const configurationCreateSchema: z.ZodObject<{
8766
8766
  }[]>>;
8767
8767
  }, "strip", z.ZodTypeAny, {
8768
8768
  fontKey: string;
8769
- templateId: "minimal" | "bold" | "card" | "aurora";
8769
+ templateId: "minimal" | "bold" | "card" | "aurora" | "classic" | "spotlight" | "marquee" | "riso";
8770
8770
  accentColor: string;
8771
8771
  showAvatar: boolean;
8772
8772
  primaryColor?: string | undefined;
@@ -8801,7 +8801,7 @@ declare const configurationCreateSchema: z.ZodObject<{
8801
8801
  }[] | undefined;
8802
8802
  }, {
8803
8803
  fontKey: string;
8804
- templateId: "minimal" | "bold" | "card" | "aurora";
8804
+ templateId: "minimal" | "bold" | "card" | "aurora" | "classic" | "spotlight" | "marquee" | "riso";
8805
8805
  accentColor: string;
8806
8806
  showAvatar: boolean;
8807
8807
  primaryColor?: string | undefined;
@@ -9157,7 +9157,7 @@ declare const configurationCreateSchema: z.ZodObject<{
9157
9157
  };
9158
9158
  digitalConfig: {
9159
9159
  fontKey: string;
9160
- templateId: "minimal" | "bold" | "card" | "aurora";
9160
+ templateId: "minimal" | "bold" | "card" | "aurora" | "classic" | "spotlight" | "marquee" | "riso";
9161
9161
  accentColor: string;
9162
9162
  showAvatar: boolean;
9163
9163
  primaryColor?: string | undefined;
@@ -9513,7 +9513,7 @@ declare const configurationCreateSchema: z.ZodObject<{
9513
9513
  };
9514
9514
  digitalConfig: {
9515
9515
  fontKey: string;
9516
- templateId: "minimal" | "bold" | "card" | "aurora";
9516
+ templateId: "minimal" | "bold" | "card" | "aurora" | "classic" | "spotlight" | "marquee" | "riso";
9517
9517
  accentColor: string;
9518
9518
  showAvatar: boolean;
9519
9519
  primaryColor?: string | undefined;
@@ -12928,7 +12928,7 @@ declare const configurationUpdateSchema: z.ZodObject<{
12928
12928
  } | undefined;
12929
12929
  }>>;
12930
12930
  digitalConfig: z.ZodOptional<z.ZodObject<{
12931
- templateId: z.ZodEnum<["minimal", "bold", "card", "aurora"]>;
12931
+ templateId: z.ZodEnum<["minimal", "bold", "card", "aurora", "classic", "spotlight", "marquee", "riso"]>;
12932
12932
  accentColor: z.ZodString;
12933
12933
  primaryColor: z.ZodOptional<z.ZodString>;
12934
12934
  secondaryColor: z.ZodOptional<z.ZodString>;
@@ -13016,7 +13016,7 @@ declare const configurationUpdateSchema: z.ZodObject<{
13016
13016
  }[]>>;
13017
13017
  }, "strip", z.ZodTypeAny, {
13018
13018
  fontKey: string;
13019
- templateId: "minimal" | "bold" | "card" | "aurora";
13019
+ templateId: "minimal" | "bold" | "card" | "aurora" | "classic" | "spotlight" | "marquee" | "riso";
13020
13020
  accentColor: string;
13021
13021
  showAvatar: boolean;
13022
13022
  primaryColor?: string | undefined;
@@ -13051,7 +13051,7 @@ declare const configurationUpdateSchema: z.ZodObject<{
13051
13051
  }[] | undefined;
13052
13052
  }, {
13053
13053
  fontKey: string;
13054
- templateId: "minimal" | "bold" | "card" | "aurora";
13054
+ templateId: "minimal" | "bold" | "card" | "aurora" | "classic" | "spotlight" | "marquee" | "riso";
13055
13055
  accentColor: string;
13056
13056
  showAvatar: boolean;
13057
13057
  primaryColor?: string | undefined;
@@ -13406,7 +13406,7 @@ declare const configurationUpdateSchema: z.ZodObject<{
13406
13406
  } | undefined;
13407
13407
  digitalConfig?: {
13408
13408
  fontKey: string;
13409
- templateId: "minimal" | "bold" | "card" | "aurora";
13409
+ templateId: "minimal" | "bold" | "card" | "aurora" | "classic" | "spotlight" | "marquee" | "riso";
13410
13410
  accentColor: string;
13411
13411
  showAvatar: boolean;
13412
13412
  primaryColor?: string | undefined;
@@ -13761,7 +13761,7 @@ declare const configurationUpdateSchema: z.ZodObject<{
13761
13761
  } | undefined;
13762
13762
  digitalConfig?: {
13763
13763
  fontKey: string;
13764
- templateId: "minimal" | "bold" | "card" | "aurora";
13764
+ templateId: "minimal" | "bold" | "card" | "aurora" | "classic" | "spotlight" | "marquee" | "riso";
13765
13765
  accentColor: string;
13766
13766
  showAvatar: boolean;
13767
13767
  primaryColor?: string | undefined;
@@ -13814,7 +13814,7 @@ declare const createOrderSchema: z.ZodObject<{
13814
13814
  }>;
13815
13815
  declare const cardUpdateSchema: z.ZodObject<{
13816
13816
  digitalConfigOverride: z.ZodOptional<z.ZodObject<{
13817
- templateId: z.ZodOptional<z.ZodOptional<z.ZodEnum<["minimal", "bold", "card", "aurora"]>>>;
13817
+ templateId: z.ZodOptional<z.ZodOptional<z.ZodEnum<["minimal", "bold", "card", "aurora", "classic", "spotlight", "marquee", "riso"]>>>;
13818
13818
  accentColor: z.ZodOptional<z.ZodOptional<z.ZodString>>;
13819
13819
  primaryColor: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
13820
13820
  secondaryColor: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
@@ -13906,7 +13906,7 @@ declare const cardUpdateSchema: z.ZodObject<{
13906
13906
  profilePhotoUrl?: string | undefined;
13907
13907
  companyLogoUrl?: string | undefined;
13908
13908
  fontKey?: string | undefined;
13909
- templateId?: "minimal" | "bold" | "card" | "aurora" | undefined;
13909
+ templateId?: "minimal" | "bold" | "card" | "aurora" | "classic" | "spotlight" | "marquee" | "riso" | undefined;
13910
13910
  accentColor?: string | undefined;
13911
13911
  primaryColor?: string | undefined;
13912
13912
  secondaryColor?: string | undefined;
@@ -13943,7 +13943,7 @@ declare const cardUpdateSchema: z.ZodObject<{
13943
13943
  profilePhotoUrl?: string | undefined;
13944
13944
  companyLogoUrl?: string | undefined;
13945
13945
  fontKey?: string | undefined;
13946
- templateId?: "minimal" | "bold" | "card" | "aurora" | undefined;
13946
+ templateId?: "minimal" | "bold" | "card" | "aurora" | "classic" | "spotlight" | "marquee" | "riso" | undefined;
13947
13947
  accentColor?: string | undefined;
13948
13948
  primaryColor?: string | undefined;
13949
13949
  secondaryColor?: string | undefined;
@@ -13984,7 +13984,7 @@ declare const cardUpdateSchema: z.ZodObject<{
13984
13984
  profilePhotoUrl?: string | undefined;
13985
13985
  companyLogoUrl?: string | undefined;
13986
13986
  fontKey?: string | undefined;
13987
- templateId?: "minimal" | "bold" | "card" | "aurora" | undefined;
13987
+ templateId?: "minimal" | "bold" | "card" | "aurora" | "classic" | "spotlight" | "marquee" | "riso" | undefined;
13988
13988
  accentColor?: string | undefined;
13989
13989
  primaryColor?: string | undefined;
13990
13990
  secondaryColor?: string | undefined;
@@ -14024,7 +14024,7 @@ declare const cardUpdateSchema: z.ZodObject<{
14024
14024
  profilePhotoUrl?: string | undefined;
14025
14025
  companyLogoUrl?: string | undefined;
14026
14026
  fontKey?: string | undefined;
14027
- templateId?: "minimal" | "bold" | "card" | "aurora" | undefined;
14027
+ templateId?: "minimal" | "bold" | "card" | "aurora" | "classic" | "spotlight" | "marquee" | "riso" | undefined;
14028
14028
  accentColor?: string | undefined;
14029
14029
  primaryColor?: string | undefined;
14030
14030
  secondaryColor?: string | undefined;
@@ -14150,7 +14150,7 @@ declare const adminCardCreateSchema: z.ZodObject<{
14150
14150
  } | undefined;
14151
14151
  }>;
14152
14152
  digitalConfig: z.ZodObject<{
14153
- templateId: z.ZodEnum<["minimal", "bold", "card", "aurora"]>;
14153
+ templateId: z.ZodEnum<["minimal", "bold", "card", "aurora", "classic", "spotlight", "marquee", "riso"]>;
14154
14154
  accentColor: z.ZodString;
14155
14155
  primaryColor: z.ZodOptional<z.ZodString>;
14156
14156
  secondaryColor: z.ZodOptional<z.ZodString>;
@@ -14238,7 +14238,7 @@ declare const adminCardCreateSchema: z.ZodObject<{
14238
14238
  }[]>>;
14239
14239
  }, "strip", z.ZodTypeAny, {
14240
14240
  fontKey: string;
14241
- templateId: "minimal" | "bold" | "card" | "aurora";
14241
+ templateId: "minimal" | "bold" | "card" | "aurora" | "classic" | "spotlight" | "marquee" | "riso";
14242
14242
  accentColor: string;
14243
14243
  showAvatar: boolean;
14244
14244
  primaryColor?: string | undefined;
@@ -14273,7 +14273,7 @@ declare const adminCardCreateSchema: z.ZodObject<{
14273
14273
  }[] | undefined;
14274
14274
  }, {
14275
14275
  fontKey: string;
14276
- templateId: "minimal" | "bold" | "card" | "aurora";
14276
+ templateId: "minimal" | "bold" | "card" | "aurora" | "classic" | "spotlight" | "marquee" | "riso";
14277
14277
  accentColor: string;
14278
14278
  showAvatar: boolean;
14279
14279
  primaryColor?: string | undefined;
@@ -17621,7 +17621,7 @@ declare const adminCardCreateSchema: z.ZodObject<{
17621
17621
  };
17622
17622
  digitalConfig: {
17623
17623
  fontKey: string;
17624
- templateId: "minimal" | "bold" | "card" | "aurora";
17624
+ templateId: "minimal" | "bold" | "card" | "aurora" | "classic" | "spotlight" | "marquee" | "riso";
17625
17625
  accentColor: string;
17626
17626
  showAvatar: boolean;
17627
17627
  primaryColor?: string | undefined;
@@ -17974,7 +17974,7 @@ declare const adminCardCreateSchema: z.ZodObject<{
17974
17974
  };
17975
17975
  digitalConfig: {
17976
17976
  fontKey: string;
17977
- templateId: "minimal" | "bold" | "card" | "aurora";
17977
+ templateId: "minimal" | "bold" | "card" | "aurora" | "classic" | "spotlight" | "marquee" | "riso";
17978
17978
  accentColor: string;
17979
17979
  showAvatar: boolean;
17980
17980
  primaryColor?: string | undefined;
@@ -18485,7 +18485,7 @@ declare const profileCreateSchema: z.ZodObject<{
18485
18485
  } | undefined;
18486
18486
  }>;
18487
18487
  digitalConfig: z.ZodObject<{
18488
- templateId: z.ZodEnum<["minimal", "bold", "card", "aurora"]>;
18488
+ templateId: z.ZodEnum<["minimal", "bold", "card", "aurora", "classic", "spotlight", "marquee", "riso"]>;
18489
18489
  accentColor: z.ZodString;
18490
18490
  primaryColor: z.ZodOptional<z.ZodString>;
18491
18491
  secondaryColor: z.ZodOptional<z.ZodString>;
@@ -18573,7 +18573,7 @@ declare const profileCreateSchema: z.ZodObject<{
18573
18573
  }[]>>;
18574
18574
  }, "strip", z.ZodTypeAny, {
18575
18575
  fontKey: string;
18576
- templateId: "minimal" | "bold" | "card" | "aurora";
18576
+ templateId: "minimal" | "bold" | "card" | "aurora" | "classic" | "spotlight" | "marquee" | "riso";
18577
18577
  accentColor: string;
18578
18578
  showAvatar: boolean;
18579
18579
  primaryColor?: string | undefined;
@@ -18608,7 +18608,7 @@ declare const profileCreateSchema: z.ZodObject<{
18608
18608
  }[] | undefined;
18609
18609
  }, {
18610
18610
  fontKey: string;
18611
- templateId: "minimal" | "bold" | "card" | "aurora";
18611
+ templateId: "minimal" | "bold" | "card" | "aurora" | "classic" | "spotlight" | "marquee" | "riso";
18612
18612
  accentColor: string;
18613
18613
  showAvatar: boolean;
18614
18614
  primaryColor?: string | undefined;
@@ -18672,7 +18672,7 @@ declare const profileCreateSchema: z.ZodObject<{
18672
18672
  };
18673
18673
  digitalConfig: {
18674
18674
  fontKey: string;
18675
- templateId: "minimal" | "bold" | "card" | "aurora";
18675
+ templateId: "minimal" | "bold" | "card" | "aurora" | "classic" | "spotlight" | "marquee" | "riso";
18676
18676
  accentColor: string;
18677
18677
  showAvatar: boolean;
18678
18678
  primaryColor?: string | undefined;
@@ -18737,7 +18737,7 @@ declare const profileCreateSchema: z.ZodObject<{
18737
18737
  };
18738
18738
  digitalConfig: {
18739
18739
  fontKey: string;
18740
- templateId: "minimal" | "bold" | "card" | "aurora";
18740
+ templateId: "minimal" | "bold" | "card" | "aurora" | "classic" | "spotlight" | "marquee" | "riso";
18741
18741
  accentColor: string;
18742
18742
  showAvatar: boolean;
18743
18743
  primaryColor?: string | undefined;
@@ -18876,7 +18876,7 @@ declare const signupWithProfileSchema: z.ZodObject<{
18876
18876
  } | undefined;
18877
18877
  }>;
18878
18878
  digitalConfig: z.ZodObject<{
18879
- templateId: z.ZodEnum<["minimal", "bold", "card", "aurora"]>;
18879
+ templateId: z.ZodEnum<["minimal", "bold", "card", "aurora", "classic", "spotlight", "marquee", "riso"]>;
18880
18880
  accentColor: z.ZodString;
18881
18881
  primaryColor: z.ZodOptional<z.ZodString>;
18882
18882
  secondaryColor: z.ZodOptional<z.ZodString>;
@@ -18964,7 +18964,7 @@ declare const signupWithProfileSchema: z.ZodObject<{
18964
18964
  }[]>>;
18965
18965
  }, "strip", z.ZodTypeAny, {
18966
18966
  fontKey: string;
18967
- templateId: "minimal" | "bold" | "card" | "aurora";
18967
+ templateId: "minimal" | "bold" | "card" | "aurora" | "classic" | "spotlight" | "marquee" | "riso";
18968
18968
  accentColor: string;
18969
18969
  showAvatar: boolean;
18970
18970
  primaryColor?: string | undefined;
@@ -18999,7 +18999,7 @@ declare const signupWithProfileSchema: z.ZodObject<{
18999
18999
  }[] | undefined;
19000
19000
  }, {
19001
19001
  fontKey: string;
19002
- templateId: "minimal" | "bold" | "card" | "aurora";
19002
+ templateId: "minimal" | "bold" | "card" | "aurora" | "classic" | "spotlight" | "marquee" | "riso";
19003
19003
  accentColor: string;
19004
19004
  showAvatar: boolean;
19005
19005
  primaryColor?: string | undefined;
@@ -19061,7 +19061,7 @@ declare const signupWithProfileSchema: z.ZodObject<{
19061
19061
  };
19062
19062
  digitalConfig: {
19063
19063
  fontKey: string;
19064
- templateId: "minimal" | "bold" | "card" | "aurora";
19064
+ templateId: "minimal" | "bold" | "card" | "aurora" | "classic" | "spotlight" | "marquee" | "riso";
19065
19065
  accentColor: string;
19066
19066
  showAvatar: boolean;
19067
19067
  primaryColor?: string | undefined;
@@ -19130,7 +19130,7 @@ declare const signupWithProfileSchema: z.ZodObject<{
19130
19130
  };
19131
19131
  digitalConfig: {
19132
19132
  fontKey: string;
19133
- templateId: "minimal" | "bold" | "card" | "aurora";
19133
+ templateId: "minimal" | "bold" | "card" | "aurora" | "classic" | "spotlight" | "marquee" | "riso";
19134
19134
  accentColor: string;
19135
19135
  showAvatar: boolean;
19136
19136
  primaryColor?: string | undefined;
@@ -19265,7 +19265,7 @@ declare const profileUpdateSchema: z.ZodObject<{
19265
19265
  } | undefined;
19266
19266
  }>>;
19267
19267
  digitalConfig: z.ZodOptional<z.ZodObject<{
19268
- templateId: z.ZodOptional<z.ZodOptional<z.ZodEnum<["minimal", "bold", "card", "aurora"]>>>;
19268
+ templateId: z.ZodOptional<z.ZodOptional<z.ZodEnum<["minimal", "bold", "card", "aurora", "classic", "spotlight", "marquee", "riso"]>>>;
19269
19269
  accentColor: z.ZodOptional<z.ZodOptional<z.ZodString>>;
19270
19270
  primaryColor: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
19271
19271
  secondaryColor: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
@@ -19357,7 +19357,7 @@ declare const profileUpdateSchema: z.ZodObject<{
19357
19357
  profilePhotoUrl?: string | undefined;
19358
19358
  companyLogoUrl?: string | undefined;
19359
19359
  fontKey?: string | undefined;
19360
- templateId?: "minimal" | "bold" | "card" | "aurora" | undefined;
19360
+ templateId?: "minimal" | "bold" | "card" | "aurora" | "classic" | "spotlight" | "marquee" | "riso" | undefined;
19361
19361
  accentColor?: string | undefined;
19362
19362
  primaryColor?: string | undefined;
19363
19363
  secondaryColor?: string | undefined;
@@ -19394,7 +19394,7 @@ declare const profileUpdateSchema: z.ZodObject<{
19394
19394
  profilePhotoUrl?: string | undefined;
19395
19395
  companyLogoUrl?: string | undefined;
19396
19396
  fontKey?: string | undefined;
19397
- templateId?: "minimal" | "bold" | "card" | "aurora" | undefined;
19397
+ templateId?: "minimal" | "bold" | "card" | "aurora" | "classic" | "spotlight" | "marquee" | "riso" | undefined;
19398
19398
  accentColor?: string | undefined;
19399
19399
  primaryColor?: string | undefined;
19400
19400
  secondaryColor?: string | undefined;
@@ -19461,7 +19461,7 @@ declare const profileUpdateSchema: z.ZodObject<{
19461
19461
  profilePhotoUrl?: string | undefined;
19462
19462
  companyLogoUrl?: string | undefined;
19463
19463
  fontKey?: string | undefined;
19464
- templateId?: "minimal" | "bold" | "card" | "aurora" | undefined;
19464
+ templateId?: "minimal" | "bold" | "card" | "aurora" | "classic" | "spotlight" | "marquee" | "riso" | undefined;
19465
19465
  accentColor?: string | undefined;
19466
19466
  primaryColor?: string | undefined;
19467
19467
  secondaryColor?: string | undefined;
@@ -19528,7 +19528,7 @@ declare const profileUpdateSchema: z.ZodObject<{
19528
19528
  profilePhotoUrl?: string | undefined;
19529
19529
  companyLogoUrl?: string | undefined;
19530
19530
  fontKey?: string | undefined;
19531
- templateId?: "minimal" | "bold" | "card" | "aurora" | undefined;
19531
+ templateId?: "minimal" | "bold" | "card" | "aurora" | "classic" | "spotlight" | "marquee" | "riso" | undefined;
19532
19532
  accentColor?: string | undefined;
19533
19533
  primaryColor?: string | undefined;
19534
19534
  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.13.0",
3
+ "version": "0.14.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.12.0"
20
+ "@nfcard/types": "0.13.0"
21
21
  },
22
22
  "devDependencies": {
23
23
  "tsup": "^8.0.0"
package/src/index.test.ts CHANGED
@@ -549,6 +549,13 @@ describe('digitalConfigSchema / validateDigitalConfig', () => {
549
549
  expect(r.success).toBe(true);
550
550
  });
551
551
 
552
+ it('accepts the new family templateIds (classic/spotlight/marquee/riso)', () => {
553
+ for (const templateId of ['classic', 'spotlight', 'marquee', 'riso']) {
554
+ const r = validateDigitalConfig({ ...validDigitalConfig, templateId });
555
+ expect(r.success).toBe(true);
556
+ }
557
+ });
558
+
552
559
  it('rejects an empty fontKey', () => {
553
560
  const r = validateDigitalConfig({ ...validDigitalConfig, fontKey: '' });
554
561
  expect(r.success).toBe(false);
package/src/index.ts CHANGED
Binary file