@shophost/rest-api 0.1.16 → 0.1.18
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/package.json +1 -1
- package/src/contracts/cart.contract.d.ts +6 -140
- package/src/contracts/customers.contract.d.ts +3 -3
- package/src/contracts/index.d.ts +100 -515
- package/src/contracts/manufacturers.contract.d.ts +15 -15
- package/src/contracts/orders.contract.d.ts +13 -13
- package/src/contracts/organizations.contract.d.ts +3 -3
- package/src/contracts/product-categories.contract.d.ts +18 -18
- package/src/contracts/products.contract.d.ts +24 -292
- package/src/contracts/shipping-methods.contract.d.ts +6 -6
- package/src/contracts/shipping.contract.d.ts +15 -28
- package/src/db/__generated__/client/internal/prismaNamespace.d.ts +9 -9
- package/src/integrations/next.d.ts +1 -0
- package/src/integrations/next.js +13 -15
- package/src/integrations/next.js.map +1 -1
- package/src/lib/better-auth.lib.d.ts +1 -10202
- package/src/lib/better-auth.lib.js.map +1 -1
- package/src/routers/cart.router.d.ts +6 -140
- package/src/routers/manufacturer.router.d.ts +15 -15
- package/src/routers/order.router.d.ts +13 -13
- package/src/routers/organization.router.d.ts +3 -3
- package/src/routers/product-category.router.d.ts +18 -18
- package/src/routers/product.router.d.ts +24 -292
- package/src/routers/shipping-method.router.d.ts +6 -6
- package/src/routers/shipping.router.d.ts +15 -28
- package/src/schemas/address.schema.d.ts +9 -16
- package/src/schemas/cart.schema.d.ts +6 -140
- package/src/schemas/manufacturer.schema.d.ts +3 -3
- package/src/schemas/order.schema.d.ts +3 -3
- package/src/schemas/organization.schema.d.ts +3 -3
- package/src/schemas/params.schema.d.ts +3 -3
- package/src/schemas/product-category.schema.d.ts +6 -6
- package/src/schemas/product-modifier.schema.d.ts +3 -3
- package/src/schemas/product.schema.d.ts +9 -143
- package/src/schemas/recipient.schema.d.ts +3 -3
- package/src/schemas/shipping-method.schema.d.ts +3 -3
|
@@ -288,7 +288,7 @@ export declare const ProductSchema: z.ZodObject<{
|
|
|
288
288
|
}[] | undefined;
|
|
289
289
|
manufacturerId?: string | null | undefined;
|
|
290
290
|
}>;
|
|
291
|
-
export declare const LocalizedProductSchema: z.ZodObject<Omit<
|
|
291
|
+
export declare const LocalizedProductSchema: z.ZodObject<Omit<{
|
|
292
292
|
id: z.ZodString;
|
|
293
293
|
slug: z.ZodOptional<z.ZodString>;
|
|
294
294
|
sku: z.ZodOptional<z.ZodString>;
|
|
@@ -314,140 +314,6 @@ export declare const LocalizedProductSchema: z.ZodObject<Omit<z.objectUtil.exten
|
|
|
314
314
|
filename: string;
|
|
315
315
|
url: string;
|
|
316
316
|
}>, "many">>;
|
|
317
|
-
modifierGroups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
318
|
-
id: z.ZodString;
|
|
319
|
-
selectMin: z.ZodNumber;
|
|
320
|
-
selectMax: z.ZodNumber;
|
|
321
|
-
defaultLocale: z.ZodOptional<z.ZodEnum<["af", "sq", "ar_dz", "ar_bh", "ar_eg", "ar_iq", "ar_jo", "ar_kw", "ar_lb", "ar_ly", "ar_ma", "ar_om", "ar_qa", "ar_sa", "ar_sy", "ar_tn", "ar_ae", "ar_ye", "eu", "be", "bg", "ca", "zh_hk", "zh_cn", "zh_sg", "zh_tw", "hr", "cs", "da", "nl_be", "nl", "en", "en_au", "en_bz", "en_ca", "en_ie", "en_jm", "en_nz", "en_za", "en_tt", "en_gb", "en_us", "et", "fo", "fa", "fi", "fr_be", "fr_ca", "fr_lu", "fr", "fr_ch", "gd", "de_at", "de_li", "de_lu", "de", "de_ch", "el", "he", "hi", "hu", "is", "id", "ga", "it", "it_ch", "ja", "ko", "ku", "lv", "lt", "mk", "ml", "ms", "mt", "no", "nb", "nn", "pl", "pt_br", "pt", "pa", "rm", "ro", "ro_md", "ru", "ru_md", "sr", "sk", "sl", "sb", "es_ar", "es_bo", "es_cl", "es_co", "es_cr", "es_do", "es_ec", "es_sv", "es_gt", "es_hn", "es_mx", "es", "sv", "sv_fi", "th", "tr", "uk", "ur", "vi", "cy", "ji", "zu"]>>;
|
|
322
|
-
modifiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
323
|
-
id: z.ZodOptional<z.ZodString>;
|
|
324
|
-
title: z.ZodString;
|
|
325
|
-
sku: z.ZodOptional<z.ZodString>;
|
|
326
|
-
price: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
327
|
-
}, "strip", z.ZodTypeAny, {
|
|
328
|
-
title: string;
|
|
329
|
-
price: number;
|
|
330
|
-
id?: string | undefined;
|
|
331
|
-
sku?: string | undefined;
|
|
332
|
-
}, {
|
|
333
|
-
title: string;
|
|
334
|
-
id?: string | undefined;
|
|
335
|
-
sku?: string | undefined;
|
|
336
|
-
price?: number | undefined;
|
|
337
|
-
}>, "many">>;
|
|
338
|
-
translations: z.ZodArray<z.ZodObject<{
|
|
339
|
-
locale: z.ZodEnum<["af", "sq", "ar_dz", "ar_bh", "ar_eg", "ar_iq", "ar_jo", "ar_kw", "ar_lb", "ar_ly", "ar_ma", "ar_om", "ar_qa", "ar_sa", "ar_sy", "ar_tn", "ar_ae", "ar_ye", "eu", "be", "bg", "ca", "zh_hk", "zh_cn", "zh_sg", "zh_tw", "hr", "cs", "da", "nl_be", "nl", "en", "en_au", "en_bz", "en_ca", "en_ie", "en_jm", "en_nz", "en_za", "en_tt", "en_gb", "en_us", "et", "fo", "fa", "fi", "fr_be", "fr_ca", "fr_lu", "fr", "fr_ch", "gd", "de_at", "de_li", "de_lu", "de", "de_ch", "el", "he", "hi", "hu", "is", "id", "ga", "it", "it_ch", "ja", "ko", "ku", "lv", "lt", "mk", "ml", "ms", "mt", "no", "nb", "nn", "pl", "pt_br", "pt", "pa", "rm", "ro", "ro_md", "ru", "ru_md", "sr", "sk", "sl", "sb", "es_ar", "es_bo", "es_cl", "es_co", "es_cr", "es_do", "es_ec", "es_sv", "es_gt", "es_hn", "es_mx", "es", "sv", "sv_fi", "th", "tr", "uk", "ur", "vi", "cy", "ji", "zu"]>;
|
|
340
|
-
title: z.ZodOptional<z.ZodString>;
|
|
341
|
-
}, "strip", z.ZodTypeAny, {
|
|
342
|
-
locale: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
|
|
343
|
-
title?: string | undefined;
|
|
344
|
-
}, {
|
|
345
|
-
locale: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
|
|
346
|
-
title?: string | undefined;
|
|
347
|
-
}>, "many">;
|
|
348
|
-
}, "strip", z.ZodTypeAny, {
|
|
349
|
-
translations: {
|
|
350
|
-
locale: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
|
|
351
|
-
title?: string | undefined;
|
|
352
|
-
}[];
|
|
353
|
-
id: string;
|
|
354
|
-
selectMin: number;
|
|
355
|
-
selectMax: number;
|
|
356
|
-
defaultLocale?: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu" | undefined;
|
|
357
|
-
modifiers?: {
|
|
358
|
-
title: string;
|
|
359
|
-
price: number;
|
|
360
|
-
id?: string | undefined;
|
|
361
|
-
sku?: string | undefined;
|
|
362
|
-
}[] | undefined;
|
|
363
|
-
}, {
|
|
364
|
-
translations: {
|
|
365
|
-
locale: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
|
|
366
|
-
title?: string | undefined;
|
|
367
|
-
}[];
|
|
368
|
-
id: string;
|
|
369
|
-
selectMin: number;
|
|
370
|
-
selectMax: number;
|
|
371
|
-
defaultLocale?: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu" | undefined;
|
|
372
|
-
modifiers?: {
|
|
373
|
-
title: string;
|
|
374
|
-
id?: string | undefined;
|
|
375
|
-
sku?: string | undefined;
|
|
376
|
-
price?: number | undefined;
|
|
377
|
-
}[] | undefined;
|
|
378
|
-
}>, "many">>;
|
|
379
|
-
categories: z.ZodArray<z.ZodObject<{
|
|
380
|
-
id: z.ZodString;
|
|
381
|
-
slug: z.ZodString;
|
|
382
|
-
image: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
383
|
-
id: z.ZodString;
|
|
384
|
-
url: z.ZodString;
|
|
385
|
-
mimeType: z.ZodString;
|
|
386
|
-
size: z.ZodNumber;
|
|
387
|
-
filename: z.ZodString;
|
|
388
|
-
}, "strip", z.ZodTypeAny, {
|
|
389
|
-
id: string;
|
|
390
|
-
mimeType: string;
|
|
391
|
-
size: number;
|
|
392
|
-
filename: string;
|
|
393
|
-
url: string;
|
|
394
|
-
}, {
|
|
395
|
-
id: string;
|
|
396
|
-
mimeType: string;
|
|
397
|
-
size: number;
|
|
398
|
-
filename: string;
|
|
399
|
-
url: string;
|
|
400
|
-
}>>>;
|
|
401
|
-
createdAt: z.ZodDate;
|
|
402
|
-
publishedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
403
|
-
translations: z.ZodArray<z.ZodObject<{
|
|
404
|
-
locale: z.ZodString;
|
|
405
|
-
title: z.ZodDefault<z.ZodString>;
|
|
406
|
-
description: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
|
|
407
|
-
}, "strip", z.ZodTypeAny, {
|
|
408
|
-
locale: string;
|
|
409
|
-
title: string;
|
|
410
|
-
description?: string | null | undefined;
|
|
411
|
-
}, {
|
|
412
|
-
locale: string;
|
|
413
|
-
title?: string | undefined;
|
|
414
|
-
description?: string | null | undefined;
|
|
415
|
-
}>, "many">;
|
|
416
|
-
}, "strip", z.ZodTypeAny, {
|
|
417
|
-
translations: {
|
|
418
|
-
locale: string;
|
|
419
|
-
title: string;
|
|
420
|
-
description?: string | null | undefined;
|
|
421
|
-
}[];
|
|
422
|
-
id: string;
|
|
423
|
-
slug: string;
|
|
424
|
-
createdAt: Date;
|
|
425
|
-
image?: {
|
|
426
|
-
id: string;
|
|
427
|
-
mimeType: string;
|
|
428
|
-
size: number;
|
|
429
|
-
filename: string;
|
|
430
|
-
url: string;
|
|
431
|
-
} | null | undefined;
|
|
432
|
-
publishedAt?: Date | null | undefined;
|
|
433
|
-
}, {
|
|
434
|
-
translations: {
|
|
435
|
-
locale: string;
|
|
436
|
-
title?: string | undefined;
|
|
437
|
-
description?: string | null | undefined;
|
|
438
|
-
}[];
|
|
439
|
-
id: string;
|
|
440
|
-
slug: string;
|
|
441
|
-
createdAt: Date;
|
|
442
|
-
image?: {
|
|
443
|
-
id: string;
|
|
444
|
-
mimeType: string;
|
|
445
|
-
size: number;
|
|
446
|
-
filename: string;
|
|
447
|
-
url: string;
|
|
448
|
-
} | null | undefined;
|
|
449
|
-
publishedAt?: Date | null | undefined;
|
|
450
|
-
}>, "many">;
|
|
451
317
|
manufacturerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
452
318
|
createdAt: z.ZodDate;
|
|
453
319
|
publishedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
@@ -464,10 +330,10 @@ export declare const LocalizedProductSchema: z.ZodObject<Omit<z.objectUtil.exten
|
|
|
464
330
|
title?: string | undefined;
|
|
465
331
|
description?: string | null | undefined;
|
|
466
332
|
}>, "many">>;
|
|
467
|
-
}
|
|
333
|
+
} & {
|
|
468
334
|
title: z.ZodDefault<z.ZodString>;
|
|
469
335
|
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
470
|
-
modifierGroups: z.ZodArray<z.ZodObject<Omit<
|
|
336
|
+
modifierGroups: z.ZodArray<z.ZodObject<Omit<{
|
|
471
337
|
id: z.ZodString;
|
|
472
338
|
selectMin: z.ZodNumber;
|
|
473
339
|
selectMax: z.ZodNumber;
|
|
@@ -498,9 +364,9 @@ export declare const LocalizedProductSchema: z.ZodObject<Omit<z.objectUtil.exten
|
|
|
498
364
|
locale: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
|
|
499
365
|
title?: string | undefined;
|
|
500
366
|
}>, "many">;
|
|
501
|
-
}
|
|
367
|
+
} & {
|
|
502
368
|
title: z.ZodNullable<z.ZodDefault<z.ZodString>>;
|
|
503
|
-
}
|
|
369
|
+
}, "translations">, "strip", z.ZodTypeAny, {
|
|
504
370
|
id: string;
|
|
505
371
|
title: string | null;
|
|
506
372
|
selectMin: number;
|
|
@@ -532,7 +398,7 @@ export declare const LocalizedProductSchema: z.ZodObject<Omit<z.objectUtil.exten
|
|
|
532
398
|
}, {
|
|
533
399
|
id: string;
|
|
534
400
|
}>, "many">>;
|
|
535
|
-
}
|
|
401
|
+
}, "translations">, "strip", z.ZodTypeAny, {
|
|
536
402
|
id: string;
|
|
537
403
|
createdAt: Date;
|
|
538
404
|
title: string;
|
|
@@ -603,7 +469,7 @@ export declare const LocalizedProductSchema: z.ZodObject<Omit<z.objectUtil.exten
|
|
|
603
469
|
}[] | undefined;
|
|
604
470
|
manufacturerId?: string | null | undefined;
|
|
605
471
|
}>;
|
|
606
|
-
export declare const CreateProductSchema: z.ZodEffects<z.ZodObject<
|
|
472
|
+
export declare const CreateProductSchema: z.ZodEffects<z.ZodObject<Pick<{
|
|
607
473
|
id: z.ZodString;
|
|
608
474
|
slug: z.ZodOptional<z.ZodString>;
|
|
609
475
|
sku: z.ZodOptional<z.ZodString>;
|
|
@@ -779,7 +645,7 @@ export declare const CreateProductSchema: z.ZodEffects<z.ZodObject<z.objectUtil.
|
|
|
779
645
|
title?: string | undefined;
|
|
780
646
|
description?: string | null | undefined;
|
|
781
647
|
}>, "many">>;
|
|
782
|
-
}, "translations" | "slug" | "sku" | "basePrice" | "discountedBasePrice" | "currency" | "images" | "manufacturerId"
|
|
648
|
+
}, "translations" | "slug" | "sku" | "basePrice" | "discountedBasePrice" | "currency" | "images" | "manufacturerId"> & {
|
|
783
649
|
defaultLocale: z.ZodString;
|
|
784
650
|
modifierGroups: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
785
651
|
selectMin: z.ZodNumber;
|
|
@@ -925,7 +791,7 @@ export declare const CreateProductSchema: z.ZodEffects<z.ZodObject<z.objectUtil.
|
|
|
925
791
|
}[] | undefined;
|
|
926
792
|
}>, "many">>;
|
|
927
793
|
categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
928
|
-
}
|
|
794
|
+
}, "strip", z.ZodTypeAny, {
|
|
929
795
|
defaultLocale: string;
|
|
930
796
|
basePrice: number;
|
|
931
797
|
discountedBasePrice: number | null;
|
|
@@ -89,7 +89,7 @@ export declare const RecipientSchema: z.ZodObject<{
|
|
|
89
89
|
deliveryInstructions?: string | null | undefined;
|
|
90
90
|
} | null | undefined;
|
|
91
91
|
}>;
|
|
92
|
-
export declare const CreateRecipientSchema: z.ZodObject<
|
|
92
|
+
export declare const CreateRecipientSchema: z.ZodObject<Pick<{
|
|
93
93
|
id: z.ZodString;
|
|
94
94
|
firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
95
95
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -136,7 +136,7 @@ export declare const CreateRecipientSchema: z.ZodObject<z.objectUtil.extendShape
|
|
|
136
136
|
}>>>;
|
|
137
137
|
createdAt: z.ZodDate;
|
|
138
138
|
updatedAt: z.ZodDate;
|
|
139
|
-
}, "email" | "firstname" | "phone"
|
|
139
|
+
}, "email" | "firstname" | "phone"> & {
|
|
140
140
|
address: z.ZodObject<Pick<{
|
|
141
141
|
id: z.ZodString;
|
|
142
142
|
firstname: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -167,7 +167,7 @@ export declare const CreateRecipientSchema: z.ZodObject<z.objectUtil.extendShape
|
|
|
167
167
|
addressLineTwo?: string | null | undefined;
|
|
168
168
|
zipCode?: string | undefined;
|
|
169
169
|
}>;
|
|
170
|
-
}
|
|
170
|
+
}, "strip", z.ZodTypeAny, {
|
|
171
171
|
address: {
|
|
172
172
|
addressLineOne: string;
|
|
173
173
|
city: string;
|
|
@@ -130,7 +130,7 @@ export declare const ShippingMethodSchema: z.ZodObject<{
|
|
|
130
130
|
minimumOrderAmount?: string | number | null | undefined;
|
|
131
131
|
} | undefined;
|
|
132
132
|
}>;
|
|
133
|
-
export declare const CreateShippingMethodSchema: z.ZodObject<
|
|
133
|
+
export declare const CreateShippingMethodSchema: z.ZodObject<Pick<{
|
|
134
134
|
id: z.ZodString;
|
|
135
135
|
title: z.ZodString;
|
|
136
136
|
providerName: z.ZodString;
|
|
@@ -200,9 +200,9 @@ export declare const CreateShippingMethodSchema: z.ZodObject<z.objectUtil.extend
|
|
|
200
200
|
}>>;
|
|
201
201
|
createdAt: z.ZodDate;
|
|
202
202
|
updatedAt: z.ZodDate;
|
|
203
|
-
}, "title" | "providerName" | "providerLogo" | "requireDateOfDelivery" | "shippingZones"
|
|
203
|
+
}, "title" | "providerName" | "providerLogo" | "requireDateOfDelivery" | "shippingZones"> & {
|
|
204
204
|
providerLogoId: z.ZodOptional<z.ZodString>;
|
|
205
|
-
}
|
|
205
|
+
}, "strip", z.ZodTypeAny, {
|
|
206
206
|
title: string;
|
|
207
207
|
providerName: string;
|
|
208
208
|
shippingZones: {
|