@nfcard/validation 0.1.0 → 0.1.1

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
@@ -32,6 +32,34 @@ declare const socialLinksSchema: z.ZodObject<{
32
32
  customUrl?: string | undefined;
33
33
  customUrlLabel?: string | undefined;
34
34
  }>;
35
+ declare const socialOverridesSchema: z.ZodObject<{
36
+ facebook: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
37
+ linkedin: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
38
+ instagram: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
39
+ x: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
40
+ youtube: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
41
+ tiktok: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
42
+ customUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
43
+ customUrlLabel: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
44
+ }, "strip", z.ZodTypeAny, {
45
+ facebook?: string | undefined;
46
+ linkedin?: string | undefined;
47
+ instagram?: string | undefined;
48
+ x?: string | undefined;
49
+ youtube?: string | undefined;
50
+ tiktok?: string | undefined;
51
+ customUrl?: string | undefined;
52
+ customUrlLabel?: string | undefined;
53
+ }, {
54
+ facebook?: string | undefined;
55
+ linkedin?: string | undefined;
56
+ instagram?: string | undefined;
57
+ x?: string | undefined;
58
+ youtube?: string | undefined;
59
+ tiktok?: string | undefined;
60
+ customUrl?: string | undefined;
61
+ customUrlLabel?: string | undefined;
62
+ }>;
35
63
  declare const userDataSchema: z.ZodObject<{
36
64
  firstName: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
37
65
  lastName: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
@@ -565,17 +593,19 @@ declare const digitalConfigSchema: z.ZodObject<{
565
593
  showSocialLinks?: boolean | undefined;
566
594
  }>>;
567
595
  socialOverrides: z.ZodOptional<z.ZodObject<{
568
- facebook: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
569
- linkedin: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
570
- instagram: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
571
- youtube: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
572
- tiktok: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
573
- customUrl: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
574
- customUrlLabel: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
596
+ facebook: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
597
+ linkedin: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
598
+ instagram: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
599
+ x: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
600
+ youtube: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
601
+ tiktok: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
602
+ customUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
603
+ customUrlLabel: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
575
604
  }, "strip", z.ZodTypeAny, {
576
605
  facebook?: string | undefined;
577
606
  linkedin?: string | undefined;
578
607
  instagram?: string | undefined;
608
+ x?: string | undefined;
579
609
  youtube?: string | undefined;
580
610
  tiktok?: string | undefined;
581
611
  customUrl?: string | undefined;
@@ -584,6 +614,7 @@ declare const digitalConfigSchema: z.ZodObject<{
584
614
  facebook?: string | undefined;
585
615
  linkedin?: string | undefined;
586
616
  instagram?: string | undefined;
617
+ x?: string | undefined;
587
618
  youtube?: string | undefined;
588
619
  tiktok?: string | undefined;
589
620
  customUrl?: string | undefined;
@@ -614,6 +645,7 @@ declare const digitalConfigSchema: z.ZodObject<{
614
645
  facebook?: string | undefined;
615
646
  linkedin?: string | undefined;
616
647
  instagram?: string | undefined;
648
+ x?: string | undefined;
617
649
  youtube?: string | undefined;
618
650
  tiktok?: string | undefined;
619
651
  customUrl?: string | undefined;
@@ -644,6 +676,7 @@ declare const digitalConfigSchema: z.ZodObject<{
644
676
  facebook?: string | undefined;
645
677
  linkedin?: string | undefined;
646
678
  instagram?: string | undefined;
679
+ x?: string | undefined;
647
680
  youtube?: string | undefined;
648
681
  tiktok?: string | undefined;
649
682
  customUrl?: string | undefined;
@@ -1083,17 +1116,19 @@ declare const configurationCreateSchema: z.ZodObject<{
1083
1116
  showSocialLinks?: boolean | undefined;
1084
1117
  }>>;
1085
1118
  socialOverrides: z.ZodOptional<z.ZodObject<{
1086
- facebook: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
1087
- linkedin: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
1088
- instagram: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
1089
- youtube: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
1090
- tiktok: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
1091
- customUrl: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
1092
- customUrlLabel: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
1119
+ facebook: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1120
+ linkedin: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1121
+ instagram: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1122
+ x: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1123
+ youtube: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1124
+ tiktok: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1125
+ customUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1126
+ customUrlLabel: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1093
1127
  }, "strip", z.ZodTypeAny, {
1094
1128
  facebook?: string | undefined;
1095
1129
  linkedin?: string | undefined;
1096
1130
  instagram?: string | undefined;
1131
+ x?: string | undefined;
1097
1132
  youtube?: string | undefined;
1098
1133
  tiktok?: string | undefined;
1099
1134
  customUrl?: string | undefined;
@@ -1102,6 +1137,7 @@ declare const configurationCreateSchema: z.ZodObject<{
1102
1137
  facebook?: string | undefined;
1103
1138
  linkedin?: string | undefined;
1104
1139
  instagram?: string | undefined;
1140
+ x?: string | undefined;
1105
1141
  youtube?: string | undefined;
1106
1142
  tiktok?: string | undefined;
1107
1143
  customUrl?: string | undefined;
@@ -1132,6 +1168,7 @@ declare const configurationCreateSchema: z.ZodObject<{
1132
1168
  facebook?: string | undefined;
1133
1169
  linkedin?: string | undefined;
1134
1170
  instagram?: string | undefined;
1171
+ x?: string | undefined;
1135
1172
  youtube?: string | undefined;
1136
1173
  tiktok?: string | undefined;
1137
1174
  customUrl?: string | undefined;
@@ -1162,6 +1199,7 @@ declare const configurationCreateSchema: z.ZodObject<{
1162
1199
  facebook?: string | undefined;
1163
1200
  linkedin?: string | undefined;
1164
1201
  instagram?: string | undefined;
1202
+ x?: string | undefined;
1165
1203
  youtube?: string | undefined;
1166
1204
  tiktok?: string | undefined;
1167
1205
  customUrl?: string | undefined;
@@ -1268,6 +1306,7 @@ declare const configurationCreateSchema: z.ZodObject<{
1268
1306
  facebook?: string | undefined;
1269
1307
  linkedin?: string | undefined;
1270
1308
  instagram?: string | undefined;
1309
+ x?: string | undefined;
1271
1310
  youtube?: string | undefined;
1272
1311
  tiktok?: string | undefined;
1273
1312
  customUrl?: string | undefined;
@@ -1374,6 +1413,7 @@ declare const configurationCreateSchema: z.ZodObject<{
1374
1413
  facebook?: string | undefined;
1375
1414
  linkedin?: string | undefined;
1376
1415
  instagram?: string | undefined;
1416
+ x?: string | undefined;
1377
1417
  youtube?: string | undefined;
1378
1418
  tiktok?: string | undefined;
1379
1419
  customUrl?: string | undefined;
@@ -1815,17 +1855,19 @@ declare const configurationUpdateSchema: z.ZodObject<{
1815
1855
  showSocialLinks?: boolean | undefined;
1816
1856
  }>>;
1817
1857
  socialOverrides: z.ZodOptional<z.ZodObject<{
1818
- facebook: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
1819
- linkedin: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
1820
- instagram: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
1821
- youtube: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
1822
- tiktok: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
1823
- customUrl: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
1824
- customUrlLabel: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
1858
+ facebook: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1859
+ linkedin: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1860
+ instagram: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1861
+ x: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1862
+ youtube: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1863
+ tiktok: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1864
+ customUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1865
+ customUrlLabel: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1825
1866
  }, "strip", z.ZodTypeAny, {
1826
1867
  facebook?: string | undefined;
1827
1868
  linkedin?: string | undefined;
1828
1869
  instagram?: string | undefined;
1870
+ x?: string | undefined;
1829
1871
  youtube?: string | undefined;
1830
1872
  tiktok?: string | undefined;
1831
1873
  customUrl?: string | undefined;
@@ -1834,6 +1876,7 @@ declare const configurationUpdateSchema: z.ZodObject<{
1834
1876
  facebook?: string | undefined;
1835
1877
  linkedin?: string | undefined;
1836
1878
  instagram?: string | undefined;
1879
+ x?: string | undefined;
1837
1880
  youtube?: string | undefined;
1838
1881
  tiktok?: string | undefined;
1839
1882
  customUrl?: string | undefined;
@@ -1864,6 +1907,7 @@ declare const configurationUpdateSchema: z.ZodObject<{
1864
1907
  facebook?: string | undefined;
1865
1908
  linkedin?: string | undefined;
1866
1909
  instagram?: string | undefined;
1910
+ x?: string | undefined;
1867
1911
  youtube?: string | undefined;
1868
1912
  tiktok?: string | undefined;
1869
1913
  customUrl?: string | undefined;
@@ -1894,6 +1938,7 @@ declare const configurationUpdateSchema: z.ZodObject<{
1894
1938
  facebook?: string | undefined;
1895
1939
  linkedin?: string | undefined;
1896
1940
  instagram?: string | undefined;
1941
+ x?: string | undefined;
1897
1942
  youtube?: string | undefined;
1898
1943
  tiktok?: string | undefined;
1899
1944
  customUrl?: string | undefined;
@@ -1999,6 +2044,7 @@ declare const configurationUpdateSchema: z.ZodObject<{
1999
2044
  facebook?: string | undefined;
2000
2045
  linkedin?: string | undefined;
2001
2046
  instagram?: string | undefined;
2047
+ x?: string | undefined;
2002
2048
  youtube?: string | undefined;
2003
2049
  tiktok?: string | undefined;
2004
2050
  customUrl?: string | undefined;
@@ -2104,6 +2150,7 @@ declare const configurationUpdateSchema: z.ZodObject<{
2104
2150
  facebook?: string | undefined;
2105
2151
  linkedin?: string | undefined;
2106
2152
  instagram?: string | undefined;
2153
+ x?: string | undefined;
2107
2154
  youtube?: string | undefined;
2108
2155
  tiktok?: string | undefined;
2109
2156
  customUrl?: string | undefined;
@@ -2168,17 +2215,19 @@ declare const cardUpdateSchema: z.ZodObject<{
2168
2215
  showSocialLinks?: boolean | undefined;
2169
2216
  }>>>>;
2170
2217
  socialOverrides: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodObject<{
2171
- facebook: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
2172
- linkedin: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
2173
- instagram: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
2174
- youtube: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
2175
- tiktok: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
2176
- customUrl: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
2177
- customUrlLabel: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
2218
+ facebook: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2219
+ linkedin: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2220
+ instagram: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2221
+ x: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2222
+ youtube: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2223
+ tiktok: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2224
+ customUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2225
+ customUrlLabel: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2178
2226
  }, "strip", z.ZodTypeAny, {
2179
2227
  facebook?: string | undefined;
2180
2228
  linkedin?: string | undefined;
2181
2229
  instagram?: string | undefined;
2230
+ x?: string | undefined;
2182
2231
  youtube?: string | undefined;
2183
2232
  tiktok?: string | undefined;
2184
2233
  customUrl?: string | undefined;
@@ -2187,6 +2236,7 @@ declare const cardUpdateSchema: z.ZodObject<{
2187
2236
  facebook?: string | undefined;
2188
2237
  linkedin?: string | undefined;
2189
2238
  instagram?: string | undefined;
2239
+ x?: string | undefined;
2190
2240
  youtube?: string | undefined;
2191
2241
  tiktok?: string | undefined;
2192
2242
  customUrl?: string | undefined;
@@ -2221,6 +2271,7 @@ declare const cardUpdateSchema: z.ZodObject<{
2221
2271
  facebook?: string | undefined;
2222
2272
  linkedin?: string | undefined;
2223
2273
  instagram?: string | undefined;
2274
+ x?: string | undefined;
2224
2275
  youtube?: string | undefined;
2225
2276
  tiktok?: string | undefined;
2226
2277
  customUrl?: string | undefined;
@@ -2253,6 +2304,7 @@ declare const cardUpdateSchema: z.ZodObject<{
2253
2304
  facebook?: string | undefined;
2254
2305
  linkedin?: string | undefined;
2255
2306
  instagram?: string | undefined;
2307
+ x?: string | undefined;
2256
2308
  youtube?: string | undefined;
2257
2309
  tiktok?: string | undefined;
2258
2310
  customUrl?: string | undefined;
@@ -2289,6 +2341,7 @@ declare const cardUpdateSchema: z.ZodObject<{
2289
2341
  facebook?: string | undefined;
2290
2342
  linkedin?: string | undefined;
2291
2343
  instagram?: string | undefined;
2344
+ x?: string | undefined;
2292
2345
  youtube?: string | undefined;
2293
2346
  tiktok?: string | undefined;
2294
2347
  customUrl?: string | undefined;
@@ -2324,6 +2377,7 @@ declare const cardUpdateSchema: z.ZodObject<{
2324
2377
  facebook?: string | undefined;
2325
2378
  linkedin?: string | undefined;
2326
2379
  instagram?: string | undefined;
2380
+ x?: string | undefined;
2327
2381
  youtube?: string | undefined;
2328
2382
  tiktok?: string | undefined;
2329
2383
  customUrl?: string | undefined;
@@ -2465,17 +2519,19 @@ declare const adminCardCreateSchema: z.ZodObject<{
2465
2519
  showSocialLinks?: boolean | undefined;
2466
2520
  }>>;
2467
2521
  socialOverrides: z.ZodOptional<z.ZodObject<{
2468
- facebook: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
2469
- linkedin: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
2470
- instagram: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
2471
- youtube: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
2472
- tiktok: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
2473
- customUrl: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
2474
- customUrlLabel: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
2522
+ facebook: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2523
+ linkedin: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2524
+ instagram: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2525
+ x: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2526
+ youtube: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2527
+ tiktok: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2528
+ customUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2529
+ customUrlLabel: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2475
2530
  }, "strip", z.ZodTypeAny, {
2476
2531
  facebook?: string | undefined;
2477
2532
  linkedin?: string | undefined;
2478
2533
  instagram?: string | undefined;
2534
+ x?: string | undefined;
2479
2535
  youtube?: string | undefined;
2480
2536
  tiktok?: string | undefined;
2481
2537
  customUrl?: string | undefined;
@@ -2484,6 +2540,7 @@ declare const adminCardCreateSchema: z.ZodObject<{
2484
2540
  facebook?: string | undefined;
2485
2541
  linkedin?: string | undefined;
2486
2542
  instagram?: string | undefined;
2543
+ x?: string | undefined;
2487
2544
  youtube?: string | undefined;
2488
2545
  tiktok?: string | undefined;
2489
2546
  customUrl?: string | undefined;
@@ -2514,6 +2571,7 @@ declare const adminCardCreateSchema: z.ZodObject<{
2514
2571
  facebook?: string | undefined;
2515
2572
  linkedin?: string | undefined;
2516
2573
  instagram?: string | undefined;
2574
+ x?: string | undefined;
2517
2575
  youtube?: string | undefined;
2518
2576
  tiktok?: string | undefined;
2519
2577
  customUrl?: string | undefined;
@@ -2544,6 +2602,7 @@ declare const adminCardCreateSchema: z.ZodObject<{
2544
2602
  facebook?: string | undefined;
2545
2603
  linkedin?: string | undefined;
2546
2604
  instagram?: string | undefined;
2605
+ x?: string | undefined;
2547
2606
  youtube?: string | undefined;
2548
2607
  tiktok?: string | undefined;
2549
2608
  customUrl?: string | undefined;
@@ -2899,6 +2958,7 @@ declare const adminCardCreateSchema: z.ZodObject<{
2899
2958
  facebook?: string | undefined;
2900
2959
  linkedin?: string | undefined;
2901
2960
  instagram?: string | undefined;
2961
+ x?: string | undefined;
2902
2962
  youtube?: string | undefined;
2903
2963
  tiktok?: string | undefined;
2904
2964
  customUrl?: string | undefined;
@@ -3003,6 +3063,7 @@ declare const adminCardCreateSchema: z.ZodObject<{
3003
3063
  facebook?: string | undefined;
3004
3064
  linkedin?: string | undefined;
3005
3065
  instagram?: string | undefined;
3066
+ x?: string | undefined;
3006
3067
  youtube?: string | undefined;
3007
3068
  tiktok?: string | undefined;
3008
3069
  customUrl?: string | undefined;
@@ -3285,17 +3346,19 @@ declare const profileCreateSchema: z.ZodObject<{
3285
3346
  showSocialLinks?: boolean | undefined;
3286
3347
  }>>;
3287
3348
  socialOverrides: z.ZodOptional<z.ZodObject<{
3288
- facebook: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
3289
- linkedin: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
3290
- instagram: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
3291
- youtube: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
3292
- tiktok: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
3293
- customUrl: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
3294
- customUrlLabel: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
3349
+ facebook: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
3350
+ linkedin: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
3351
+ instagram: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
3352
+ x: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
3353
+ youtube: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
3354
+ tiktok: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
3355
+ customUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
3356
+ customUrlLabel: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
3295
3357
  }, "strip", z.ZodTypeAny, {
3296
3358
  facebook?: string | undefined;
3297
3359
  linkedin?: string | undefined;
3298
3360
  instagram?: string | undefined;
3361
+ x?: string | undefined;
3299
3362
  youtube?: string | undefined;
3300
3363
  tiktok?: string | undefined;
3301
3364
  customUrl?: string | undefined;
@@ -3304,6 +3367,7 @@ declare const profileCreateSchema: z.ZodObject<{
3304
3367
  facebook?: string | undefined;
3305
3368
  linkedin?: string | undefined;
3306
3369
  instagram?: string | undefined;
3370
+ x?: string | undefined;
3307
3371
  youtube?: string | undefined;
3308
3372
  tiktok?: string | undefined;
3309
3373
  customUrl?: string | undefined;
@@ -3334,6 +3398,7 @@ declare const profileCreateSchema: z.ZodObject<{
3334
3398
  facebook?: string | undefined;
3335
3399
  linkedin?: string | undefined;
3336
3400
  instagram?: string | undefined;
3401
+ x?: string | undefined;
3337
3402
  youtube?: string | undefined;
3338
3403
  tiktok?: string | undefined;
3339
3404
  customUrl?: string | undefined;
@@ -3364,6 +3429,7 @@ declare const profileCreateSchema: z.ZodObject<{
3364
3429
  facebook?: string | undefined;
3365
3430
  linkedin?: string | undefined;
3366
3431
  instagram?: string | undefined;
3432
+ x?: string | undefined;
3367
3433
  youtube?: string | undefined;
3368
3434
  tiktok?: string | undefined;
3369
3435
  customUrl?: string | undefined;
@@ -3423,6 +3489,7 @@ declare const profileCreateSchema: z.ZodObject<{
3423
3489
  facebook?: string | undefined;
3424
3490
  linkedin?: string | undefined;
3425
3491
  instagram?: string | undefined;
3492
+ x?: string | undefined;
3426
3493
  youtube?: string | undefined;
3427
3494
  tiktok?: string | undefined;
3428
3495
  customUrl?: string | undefined;
@@ -3483,6 +3550,7 @@ declare const profileCreateSchema: z.ZodObject<{
3483
3550
  facebook?: string | undefined;
3484
3551
  linkedin?: string | undefined;
3485
3552
  instagram?: string | undefined;
3553
+ x?: string | undefined;
3486
3554
  youtube?: string | undefined;
3487
3555
  tiktok?: string | undefined;
3488
3556
  customUrl?: string | undefined;
@@ -3637,17 +3705,19 @@ declare const signupWithProfileSchema: z.ZodObject<{
3637
3705
  showSocialLinks?: boolean | undefined;
3638
3706
  }>>;
3639
3707
  socialOverrides: z.ZodOptional<z.ZodObject<{
3640
- facebook: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
3641
- linkedin: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
3642
- instagram: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
3643
- youtube: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
3644
- tiktok: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
3645
- customUrl: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
3646
- customUrlLabel: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
3708
+ facebook: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
3709
+ linkedin: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
3710
+ instagram: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
3711
+ x: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
3712
+ youtube: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
3713
+ tiktok: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
3714
+ customUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
3715
+ customUrlLabel: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
3647
3716
  }, "strip", z.ZodTypeAny, {
3648
3717
  facebook?: string | undefined;
3649
3718
  linkedin?: string | undefined;
3650
3719
  instagram?: string | undefined;
3720
+ x?: string | undefined;
3651
3721
  youtube?: string | undefined;
3652
3722
  tiktok?: string | undefined;
3653
3723
  customUrl?: string | undefined;
@@ -3656,6 +3726,7 @@ declare const signupWithProfileSchema: z.ZodObject<{
3656
3726
  facebook?: string | undefined;
3657
3727
  linkedin?: string | undefined;
3658
3728
  instagram?: string | undefined;
3729
+ x?: string | undefined;
3659
3730
  youtube?: string | undefined;
3660
3731
  tiktok?: string | undefined;
3661
3732
  customUrl?: string | undefined;
@@ -3686,6 +3757,7 @@ declare const signupWithProfileSchema: z.ZodObject<{
3686
3757
  facebook?: string | undefined;
3687
3758
  linkedin?: string | undefined;
3688
3759
  instagram?: string | undefined;
3760
+ x?: string | undefined;
3689
3761
  youtube?: string | undefined;
3690
3762
  tiktok?: string | undefined;
3691
3763
  customUrl?: string | undefined;
@@ -3716,6 +3788,7 @@ declare const signupWithProfileSchema: z.ZodObject<{
3716
3788
  facebook?: string | undefined;
3717
3789
  linkedin?: string | undefined;
3718
3790
  instagram?: string | undefined;
3791
+ x?: string | undefined;
3719
3792
  youtube?: string | undefined;
3720
3793
  tiktok?: string | undefined;
3721
3794
  customUrl?: string | undefined;
@@ -3773,6 +3846,7 @@ declare const signupWithProfileSchema: z.ZodObject<{
3773
3846
  facebook?: string | undefined;
3774
3847
  linkedin?: string | undefined;
3775
3848
  instagram?: string | undefined;
3849
+ x?: string | undefined;
3776
3850
  youtube?: string | undefined;
3777
3851
  tiktok?: string | undefined;
3778
3852
  customUrl?: string | undefined;
@@ -3837,6 +3911,7 @@ declare const signupWithProfileSchema: z.ZodObject<{
3837
3911
  facebook?: string | undefined;
3838
3912
  linkedin?: string | undefined;
3839
3913
  instagram?: string | undefined;
3914
+ x?: string | undefined;
3840
3915
  youtube?: string | undefined;
3841
3916
  tiktok?: string | undefined;
3842
3917
  customUrl?: string | undefined;
@@ -3987,17 +4062,19 @@ declare const profileUpdateSchema: z.ZodObject<{
3987
4062
  showSocialLinks?: boolean | undefined;
3988
4063
  }>>>>;
3989
4064
  socialOverrides: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodObject<{
3990
- facebook: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
3991
- linkedin: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
3992
- instagram: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
3993
- youtube: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
3994
- tiktok: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
3995
- customUrl: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
3996
- customUrlLabel: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
4065
+ facebook: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
4066
+ linkedin: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
4067
+ instagram: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
4068
+ x: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
4069
+ youtube: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
4070
+ tiktok: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
4071
+ customUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
4072
+ customUrlLabel: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
3997
4073
  }, "strip", z.ZodTypeAny, {
3998
4074
  facebook?: string | undefined;
3999
4075
  linkedin?: string | undefined;
4000
4076
  instagram?: string | undefined;
4077
+ x?: string | undefined;
4001
4078
  youtube?: string | undefined;
4002
4079
  tiktok?: string | undefined;
4003
4080
  customUrl?: string | undefined;
@@ -4006,6 +4083,7 @@ declare const profileUpdateSchema: z.ZodObject<{
4006
4083
  facebook?: string | undefined;
4007
4084
  linkedin?: string | undefined;
4008
4085
  instagram?: string | undefined;
4086
+ x?: string | undefined;
4009
4087
  youtube?: string | undefined;
4010
4088
  tiktok?: string | undefined;
4011
4089
  customUrl?: string | undefined;
@@ -4040,6 +4118,7 @@ declare const profileUpdateSchema: z.ZodObject<{
4040
4118
  facebook?: string | undefined;
4041
4119
  linkedin?: string | undefined;
4042
4120
  instagram?: string | undefined;
4121
+ x?: string | undefined;
4043
4122
  youtube?: string | undefined;
4044
4123
  tiktok?: string | undefined;
4045
4124
  customUrl?: string | undefined;
@@ -4072,6 +4151,7 @@ declare const profileUpdateSchema: z.ZodObject<{
4072
4151
  facebook?: string | undefined;
4073
4152
  linkedin?: string | undefined;
4074
4153
  instagram?: string | undefined;
4154
+ x?: string | undefined;
4075
4155
  youtube?: string | undefined;
4076
4156
  tiktok?: string | undefined;
4077
4157
  customUrl?: string | undefined;
@@ -4133,6 +4213,7 @@ declare const profileUpdateSchema: z.ZodObject<{
4133
4213
  facebook?: string | undefined;
4134
4214
  linkedin?: string | undefined;
4135
4215
  instagram?: string | undefined;
4216
+ x?: string | undefined;
4136
4217
  youtube?: string | undefined;
4137
4218
  tiktok?: string | undefined;
4138
4219
  customUrl?: string | undefined;
@@ -4195,6 +4276,7 @@ declare const profileUpdateSchema: z.ZodObject<{
4195
4276
  facebook?: string | undefined;
4196
4277
  linkedin?: string | undefined;
4197
4278
  instagram?: string | undefined;
4279
+ x?: string | undefined;
4198
4280
  youtube?: string | undefined;
4199
4281
  tiktok?: string | undefined;
4200
4282
  customUrl?: string | undefined;
@@ -4349,4 +4431,4 @@ declare function validatePhysicalConfig(data: unknown): ValidationResult<z.infer
4349
4431
  declare function validateDigitalConfig(data: unknown): ValidationResult<z.infer<typeof digitalConfigSchema>>;
4350
4432
  declare function validateConfiguration(data: unknown): ValidationResult<z.infer<typeof configurationCreateSchema>>;
4351
4433
 
4352
- export { type ValidationResult, adminCardCreateSchema, cardElementsSchema, cardProfileUpdateSchema, cardUpdateSchema, comboIdSchema, configurationCreateSchema, configurationUpdateSchema, contactDetailTogglesSchema, contactExchangeSchema, createOrderSchema, digitalConfigSchema, digitalVisibilitySchema, hubConfigSchema, hubProfilesUpdateSchema, materialSchema, physicalConfigSchema, physicalContentOverridesSchema, profileAccessTokenCreateSchema, profileCreateSchema, profilePinVerifySchema, profileUpdateSchema, profileUserDataSchema, profileVisibilitySchema, sanitizeHttpUrl, sanitizeText, signupWithProfileSchema, socialLinksSchema, userDataSchema, validateConfiguration, validateDigitalConfig, validatePhysicalConfig, validateUserData, webAddressSchema };
4434
+ export { type ValidationResult, adminCardCreateSchema, cardElementsSchema, cardProfileUpdateSchema, cardUpdateSchema, comboIdSchema, configurationCreateSchema, configurationUpdateSchema, contactDetailTogglesSchema, contactExchangeSchema, createOrderSchema, digitalConfigSchema, digitalVisibilitySchema, hubConfigSchema, hubProfilesUpdateSchema, materialSchema, physicalConfigSchema, physicalContentOverridesSchema, profileAccessTokenCreateSchema, profileCreateSchema, profilePinVerifySchema, profileUpdateSchema, profileUserDataSchema, profileVisibilitySchema, sanitizeHttpUrl, sanitizeText, signupWithProfileSchema, socialLinksSchema, socialOverridesSchema, userDataSchema, validateConfiguration, validateDigitalConfig, validatePhysicalConfig, validateUserData, webAddressSchema };
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.1.0",
3
+ "version": "0.1.1",
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.1.0"
20
+ "@nfcard/types": "0.3.0"
21
21
  },
22
22
  "devDependencies": {
23
23
  "tsup": "^8.0.0"