@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
|
@@ -356,7 +356,7 @@ export declare const productsContract: {
|
|
|
356
356
|
}[] | undefined;
|
|
357
357
|
}[] | undefined;
|
|
358
358
|
manufacturerId?: string | null | undefined;
|
|
359
|
-
}>, z.ZodObject<Omit<
|
|
359
|
+
}>, z.ZodObject<Omit<{
|
|
360
360
|
id: z.ZodString;
|
|
361
361
|
slug: z.ZodOptional<z.ZodString>;
|
|
362
362
|
sku: z.ZodOptional<z.ZodString>;
|
|
@@ -382,140 +382,6 @@ export declare const productsContract: {
|
|
|
382
382
|
filename: string;
|
|
383
383
|
url: string;
|
|
384
384
|
}>, "many">>;
|
|
385
|
-
modifierGroups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
386
|
-
id: z.ZodString;
|
|
387
|
-
selectMin: z.ZodNumber;
|
|
388
|
-
selectMax: z.ZodNumber;
|
|
389
|
-
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"]>>;
|
|
390
|
-
modifiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
391
|
-
id: z.ZodOptional<z.ZodString>;
|
|
392
|
-
title: z.ZodString;
|
|
393
|
-
sku: z.ZodOptional<z.ZodString>;
|
|
394
|
-
price: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
395
|
-
}, "strip", z.ZodTypeAny, {
|
|
396
|
-
title: string;
|
|
397
|
-
price: number;
|
|
398
|
-
id?: string | undefined;
|
|
399
|
-
sku?: string | undefined;
|
|
400
|
-
}, {
|
|
401
|
-
title: string;
|
|
402
|
-
id?: string | undefined;
|
|
403
|
-
sku?: string | undefined;
|
|
404
|
-
price?: number | undefined;
|
|
405
|
-
}>, "many">>;
|
|
406
|
-
translations: z.ZodArray<z.ZodObject<{
|
|
407
|
-
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"]>;
|
|
408
|
-
title: z.ZodOptional<z.ZodString>;
|
|
409
|
-
}, "strip", z.ZodTypeAny, {
|
|
410
|
-
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";
|
|
411
|
-
title?: string | undefined;
|
|
412
|
-
}, {
|
|
413
|
-
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";
|
|
414
|
-
title?: string | undefined;
|
|
415
|
-
}>, "many">;
|
|
416
|
-
}, "strip", z.ZodTypeAny, {
|
|
417
|
-
translations: {
|
|
418
|
-
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";
|
|
419
|
-
title?: string | undefined;
|
|
420
|
-
}[];
|
|
421
|
-
id: string;
|
|
422
|
-
selectMin: number;
|
|
423
|
-
selectMax: number;
|
|
424
|
-
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;
|
|
425
|
-
modifiers?: {
|
|
426
|
-
title: string;
|
|
427
|
-
price: number;
|
|
428
|
-
id?: string | undefined;
|
|
429
|
-
sku?: string | undefined;
|
|
430
|
-
}[] | undefined;
|
|
431
|
-
}, {
|
|
432
|
-
translations: {
|
|
433
|
-
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";
|
|
434
|
-
title?: string | undefined;
|
|
435
|
-
}[];
|
|
436
|
-
id: string;
|
|
437
|
-
selectMin: number;
|
|
438
|
-
selectMax: number;
|
|
439
|
-
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;
|
|
440
|
-
modifiers?: {
|
|
441
|
-
title: string;
|
|
442
|
-
id?: string | undefined;
|
|
443
|
-
sku?: string | undefined;
|
|
444
|
-
price?: number | undefined;
|
|
445
|
-
}[] | undefined;
|
|
446
|
-
}>, "many">>;
|
|
447
|
-
categories: z.ZodArray<z.ZodObject<{
|
|
448
|
-
id: z.ZodString;
|
|
449
|
-
slug: z.ZodString;
|
|
450
|
-
image: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
451
|
-
id: z.ZodString;
|
|
452
|
-
url: z.ZodString;
|
|
453
|
-
mimeType: z.ZodString;
|
|
454
|
-
size: z.ZodNumber;
|
|
455
|
-
filename: z.ZodString;
|
|
456
|
-
}, "strip", z.ZodTypeAny, {
|
|
457
|
-
id: string;
|
|
458
|
-
mimeType: string;
|
|
459
|
-
size: number;
|
|
460
|
-
filename: string;
|
|
461
|
-
url: string;
|
|
462
|
-
}, {
|
|
463
|
-
id: string;
|
|
464
|
-
mimeType: string;
|
|
465
|
-
size: number;
|
|
466
|
-
filename: string;
|
|
467
|
-
url: string;
|
|
468
|
-
}>>>;
|
|
469
|
-
createdAt: z.ZodDate;
|
|
470
|
-
publishedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
471
|
-
translations: z.ZodArray<z.ZodObject<{
|
|
472
|
-
locale: z.ZodString;
|
|
473
|
-
title: z.ZodDefault<z.ZodString>;
|
|
474
|
-
description: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
|
|
475
|
-
}, "strip", z.ZodTypeAny, {
|
|
476
|
-
locale: string;
|
|
477
|
-
title: string;
|
|
478
|
-
description?: string | null | undefined;
|
|
479
|
-
}, {
|
|
480
|
-
locale: string;
|
|
481
|
-
title?: string | undefined;
|
|
482
|
-
description?: string | null | undefined;
|
|
483
|
-
}>, "many">;
|
|
484
|
-
}, "strip", z.ZodTypeAny, {
|
|
485
|
-
translations: {
|
|
486
|
-
locale: string;
|
|
487
|
-
title: string;
|
|
488
|
-
description?: string | null | undefined;
|
|
489
|
-
}[];
|
|
490
|
-
id: string;
|
|
491
|
-
slug: string;
|
|
492
|
-
createdAt: Date;
|
|
493
|
-
image?: {
|
|
494
|
-
id: string;
|
|
495
|
-
mimeType: string;
|
|
496
|
-
size: number;
|
|
497
|
-
filename: string;
|
|
498
|
-
url: string;
|
|
499
|
-
} | null | undefined;
|
|
500
|
-
publishedAt?: Date | null | undefined;
|
|
501
|
-
}, {
|
|
502
|
-
translations: {
|
|
503
|
-
locale: string;
|
|
504
|
-
title?: string | undefined;
|
|
505
|
-
description?: string | null | undefined;
|
|
506
|
-
}[];
|
|
507
|
-
id: string;
|
|
508
|
-
slug: string;
|
|
509
|
-
createdAt: Date;
|
|
510
|
-
image?: {
|
|
511
|
-
id: string;
|
|
512
|
-
mimeType: string;
|
|
513
|
-
size: number;
|
|
514
|
-
filename: string;
|
|
515
|
-
url: string;
|
|
516
|
-
} | null | undefined;
|
|
517
|
-
publishedAt?: Date | null | undefined;
|
|
518
|
-
}>, "many">;
|
|
519
385
|
manufacturerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
520
386
|
createdAt: z.ZodDate;
|
|
521
387
|
publishedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
@@ -532,10 +398,10 @@ export declare const productsContract: {
|
|
|
532
398
|
title?: string | undefined;
|
|
533
399
|
description?: string | null | undefined;
|
|
534
400
|
}>, "many">>;
|
|
535
|
-
}
|
|
401
|
+
} & {
|
|
536
402
|
title: z.ZodDefault<z.ZodString>;
|
|
537
403
|
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
538
|
-
modifierGroups: z.ZodArray<z.ZodObject<Omit<
|
|
404
|
+
modifierGroups: z.ZodArray<z.ZodObject<Omit<{
|
|
539
405
|
id: z.ZodString;
|
|
540
406
|
selectMin: z.ZodNumber;
|
|
541
407
|
selectMax: z.ZodNumber;
|
|
@@ -566,9 +432,9 @@ export declare const productsContract: {
|
|
|
566
432
|
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";
|
|
567
433
|
title?: string | undefined;
|
|
568
434
|
}>, "many">;
|
|
569
|
-
}
|
|
435
|
+
} & {
|
|
570
436
|
title: z.ZodNullable<z.ZodDefault<z.ZodString>>;
|
|
571
|
-
}
|
|
437
|
+
}, "translations">, "strip", z.ZodTypeAny, {
|
|
572
438
|
id: string;
|
|
573
439
|
title: string | null;
|
|
574
440
|
selectMin: number;
|
|
@@ -600,7 +466,7 @@ export declare const productsContract: {
|
|
|
600
466
|
}, {
|
|
601
467
|
id: string;
|
|
602
468
|
}>, "many">>;
|
|
603
|
-
}
|
|
469
|
+
}, "translations">, "strip", z.ZodTypeAny, {
|
|
604
470
|
id: string;
|
|
605
471
|
createdAt: Date;
|
|
606
472
|
title: string;
|
|
@@ -901,11 +767,11 @@ export declare const productsContract: {
|
|
|
901
767
|
getProduct: {
|
|
902
768
|
description: "Fetches a specific product by ID";
|
|
903
769
|
method: "GET";
|
|
904
|
-
pathParams: z.ZodObject<
|
|
770
|
+
pathParams: z.ZodObject<{
|
|
905
771
|
organizationId: z.ZodString;
|
|
906
|
-
}
|
|
772
|
+
} & {
|
|
907
773
|
id: z.ZodString;
|
|
908
|
-
}
|
|
774
|
+
}, "strip", z.ZodTypeAny, {
|
|
909
775
|
id: string;
|
|
910
776
|
organizationId: string;
|
|
911
777
|
}, {
|
|
@@ -1220,7 +1086,7 @@ export declare const productsContract: {
|
|
|
1220
1086
|
}[] | undefined;
|
|
1221
1087
|
}[] | undefined;
|
|
1222
1088
|
manufacturerId?: string | null | undefined;
|
|
1223
|
-
}>, z.ZodObject<Omit<
|
|
1089
|
+
}>, z.ZodObject<Omit<{
|
|
1224
1090
|
id: z.ZodString;
|
|
1225
1091
|
slug: z.ZodOptional<z.ZodString>;
|
|
1226
1092
|
sku: z.ZodOptional<z.ZodString>;
|
|
@@ -1246,140 +1112,6 @@ export declare const productsContract: {
|
|
|
1246
1112
|
filename: string;
|
|
1247
1113
|
url: string;
|
|
1248
1114
|
}>, "many">>;
|
|
1249
|
-
modifierGroups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1250
|
-
id: z.ZodString;
|
|
1251
|
-
selectMin: z.ZodNumber;
|
|
1252
|
-
selectMax: z.ZodNumber;
|
|
1253
|
-
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"]>>;
|
|
1254
|
-
modifiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1255
|
-
id: z.ZodOptional<z.ZodString>;
|
|
1256
|
-
title: z.ZodString;
|
|
1257
|
-
sku: z.ZodOptional<z.ZodString>;
|
|
1258
|
-
price: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1259
|
-
}, "strip", z.ZodTypeAny, {
|
|
1260
|
-
title: string;
|
|
1261
|
-
price: number;
|
|
1262
|
-
id?: string | undefined;
|
|
1263
|
-
sku?: string | undefined;
|
|
1264
|
-
}, {
|
|
1265
|
-
title: string;
|
|
1266
|
-
id?: string | undefined;
|
|
1267
|
-
sku?: string | undefined;
|
|
1268
|
-
price?: number | undefined;
|
|
1269
|
-
}>, "many">>;
|
|
1270
|
-
translations: z.ZodArray<z.ZodObject<{
|
|
1271
|
-
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"]>;
|
|
1272
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1273
|
-
}, "strip", z.ZodTypeAny, {
|
|
1274
|
-
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";
|
|
1275
|
-
title?: string | undefined;
|
|
1276
|
-
}, {
|
|
1277
|
-
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";
|
|
1278
|
-
title?: string | undefined;
|
|
1279
|
-
}>, "many">;
|
|
1280
|
-
}, "strip", z.ZodTypeAny, {
|
|
1281
|
-
translations: {
|
|
1282
|
-
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";
|
|
1283
|
-
title?: string | undefined;
|
|
1284
|
-
}[];
|
|
1285
|
-
id: string;
|
|
1286
|
-
selectMin: number;
|
|
1287
|
-
selectMax: number;
|
|
1288
|
-
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;
|
|
1289
|
-
modifiers?: {
|
|
1290
|
-
title: string;
|
|
1291
|
-
price: number;
|
|
1292
|
-
id?: string | undefined;
|
|
1293
|
-
sku?: string | undefined;
|
|
1294
|
-
}[] | undefined;
|
|
1295
|
-
}, {
|
|
1296
|
-
translations: {
|
|
1297
|
-
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";
|
|
1298
|
-
title?: string | undefined;
|
|
1299
|
-
}[];
|
|
1300
|
-
id: string;
|
|
1301
|
-
selectMin: number;
|
|
1302
|
-
selectMax: number;
|
|
1303
|
-
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;
|
|
1304
|
-
modifiers?: {
|
|
1305
|
-
title: string;
|
|
1306
|
-
id?: string | undefined;
|
|
1307
|
-
sku?: string | undefined;
|
|
1308
|
-
price?: number | undefined;
|
|
1309
|
-
}[] | undefined;
|
|
1310
|
-
}>, "many">>;
|
|
1311
|
-
categories: z.ZodArray<z.ZodObject<{
|
|
1312
|
-
id: z.ZodString;
|
|
1313
|
-
slug: z.ZodString;
|
|
1314
|
-
image: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1315
|
-
id: z.ZodString;
|
|
1316
|
-
url: z.ZodString;
|
|
1317
|
-
mimeType: z.ZodString;
|
|
1318
|
-
size: z.ZodNumber;
|
|
1319
|
-
filename: z.ZodString;
|
|
1320
|
-
}, "strip", z.ZodTypeAny, {
|
|
1321
|
-
id: string;
|
|
1322
|
-
mimeType: string;
|
|
1323
|
-
size: number;
|
|
1324
|
-
filename: string;
|
|
1325
|
-
url: string;
|
|
1326
|
-
}, {
|
|
1327
|
-
id: string;
|
|
1328
|
-
mimeType: string;
|
|
1329
|
-
size: number;
|
|
1330
|
-
filename: string;
|
|
1331
|
-
url: string;
|
|
1332
|
-
}>>>;
|
|
1333
|
-
createdAt: z.ZodDate;
|
|
1334
|
-
publishedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1335
|
-
translations: z.ZodArray<z.ZodObject<{
|
|
1336
|
-
locale: z.ZodString;
|
|
1337
|
-
title: z.ZodDefault<z.ZodString>;
|
|
1338
|
-
description: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
|
|
1339
|
-
}, "strip", z.ZodTypeAny, {
|
|
1340
|
-
locale: string;
|
|
1341
|
-
title: string;
|
|
1342
|
-
description?: string | null | undefined;
|
|
1343
|
-
}, {
|
|
1344
|
-
locale: string;
|
|
1345
|
-
title?: string | undefined;
|
|
1346
|
-
description?: string | null | undefined;
|
|
1347
|
-
}>, "many">;
|
|
1348
|
-
}, "strip", z.ZodTypeAny, {
|
|
1349
|
-
translations: {
|
|
1350
|
-
locale: string;
|
|
1351
|
-
title: string;
|
|
1352
|
-
description?: string | null | undefined;
|
|
1353
|
-
}[];
|
|
1354
|
-
id: string;
|
|
1355
|
-
slug: string;
|
|
1356
|
-
createdAt: Date;
|
|
1357
|
-
image?: {
|
|
1358
|
-
id: string;
|
|
1359
|
-
mimeType: string;
|
|
1360
|
-
size: number;
|
|
1361
|
-
filename: string;
|
|
1362
|
-
url: string;
|
|
1363
|
-
} | null | undefined;
|
|
1364
|
-
publishedAt?: Date | null | undefined;
|
|
1365
|
-
}, {
|
|
1366
|
-
translations: {
|
|
1367
|
-
locale: string;
|
|
1368
|
-
title?: string | undefined;
|
|
1369
|
-
description?: string | null | undefined;
|
|
1370
|
-
}[];
|
|
1371
|
-
id: string;
|
|
1372
|
-
slug: string;
|
|
1373
|
-
createdAt: Date;
|
|
1374
|
-
image?: {
|
|
1375
|
-
id: string;
|
|
1376
|
-
mimeType: string;
|
|
1377
|
-
size: number;
|
|
1378
|
-
filename: string;
|
|
1379
|
-
url: string;
|
|
1380
|
-
} | null | undefined;
|
|
1381
|
-
publishedAt?: Date | null | undefined;
|
|
1382
|
-
}>, "many">;
|
|
1383
1115
|
manufacturerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1384
1116
|
createdAt: z.ZodDate;
|
|
1385
1117
|
publishedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
@@ -1396,10 +1128,10 @@ export declare const productsContract: {
|
|
|
1396
1128
|
title?: string | undefined;
|
|
1397
1129
|
description?: string | null | undefined;
|
|
1398
1130
|
}>, "many">>;
|
|
1399
|
-
}
|
|
1131
|
+
} & {
|
|
1400
1132
|
title: z.ZodDefault<z.ZodString>;
|
|
1401
1133
|
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1402
|
-
modifierGroups: z.ZodArray<z.ZodObject<Omit<
|
|
1134
|
+
modifierGroups: z.ZodArray<z.ZodObject<Omit<{
|
|
1403
1135
|
id: z.ZodString;
|
|
1404
1136
|
selectMin: z.ZodNumber;
|
|
1405
1137
|
selectMax: z.ZodNumber;
|
|
@@ -1430,9 +1162,9 @@ export declare const productsContract: {
|
|
|
1430
1162
|
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";
|
|
1431
1163
|
title?: string | undefined;
|
|
1432
1164
|
}>, "many">;
|
|
1433
|
-
}
|
|
1165
|
+
} & {
|
|
1434
1166
|
title: z.ZodNullable<z.ZodDefault<z.ZodString>>;
|
|
1435
|
-
}
|
|
1167
|
+
}, "translations">, "strip", z.ZodTypeAny, {
|
|
1436
1168
|
id: string;
|
|
1437
1169
|
title: string | null;
|
|
1438
1170
|
selectMin: number;
|
|
@@ -1464,7 +1196,7 @@ export declare const productsContract: {
|
|
|
1464
1196
|
}, {
|
|
1465
1197
|
id: string;
|
|
1466
1198
|
}>, "many">>;
|
|
1467
|
-
}
|
|
1199
|
+
}, "translations">, "strip", z.ZodTypeAny, {
|
|
1468
1200
|
id: string;
|
|
1469
1201
|
createdAt: Date;
|
|
1470
1202
|
title: string;
|
|
@@ -1560,11 +1292,11 @@ export declare const productsContract: {
|
|
|
1560
1292
|
updateProduct: {
|
|
1561
1293
|
description: "Updates a specific product by ID";
|
|
1562
1294
|
method: "PATCH";
|
|
1563
|
-
pathParams: z.ZodObject<
|
|
1295
|
+
pathParams: z.ZodObject<{
|
|
1564
1296
|
organizationId: z.ZodString;
|
|
1565
|
-
}
|
|
1297
|
+
} & {
|
|
1566
1298
|
id: z.ZodString;
|
|
1567
|
-
}
|
|
1299
|
+
}, "strip", z.ZodTypeAny, {
|
|
1568
1300
|
id: string;
|
|
1569
1301
|
organizationId: string;
|
|
1570
1302
|
}, {
|
|
@@ -2245,7 +1977,7 @@ export declare const productsContract: {
|
|
|
2245
1977
|
organizationId: string;
|
|
2246
1978
|
}>;
|
|
2247
1979
|
summary: "Create Product";
|
|
2248
|
-
body: z.ZodEffects<z.ZodObject<
|
|
1980
|
+
body: z.ZodEffects<z.ZodObject<Pick<{
|
|
2249
1981
|
id: z.ZodString;
|
|
2250
1982
|
slug: z.ZodOptional<z.ZodString>;
|
|
2251
1983
|
sku: z.ZodOptional<z.ZodString>;
|
|
@@ -2421,7 +2153,7 @@ export declare const productsContract: {
|
|
|
2421
2153
|
title?: string | undefined;
|
|
2422
2154
|
description?: string | null | undefined;
|
|
2423
2155
|
}>, "many">>;
|
|
2424
|
-
}, "translations" | "slug" | "sku" | "basePrice" | "discountedBasePrice" | "currency" | "images" | "manufacturerId"
|
|
2156
|
+
}, "translations" | "slug" | "sku" | "basePrice" | "discountedBasePrice" | "currency" | "images" | "manufacturerId"> & {
|
|
2425
2157
|
defaultLocale: z.ZodString;
|
|
2426
2158
|
modifierGroups: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
2427
2159
|
selectMin: z.ZodNumber;
|
|
@@ -2567,7 +2299,7 @@ export declare const productsContract: {
|
|
|
2567
2299
|
}[] | undefined;
|
|
2568
2300
|
}>, "many">>;
|
|
2569
2301
|
categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2570
|
-
}
|
|
2302
|
+
}, "strip", z.ZodTypeAny, {
|
|
2571
2303
|
defaultLocale: string;
|
|
2572
2304
|
basePrice: number;
|
|
2573
2305
|
discountedBasePrice: number | null;
|
|
@@ -3399,11 +3131,11 @@ export declare const productsContract: {
|
|
|
3399
3131
|
deleteProduct: {
|
|
3400
3132
|
description: "Deletes a specific product by ID";
|
|
3401
3133
|
method: "DELETE";
|
|
3402
|
-
pathParams: z.ZodObject<
|
|
3134
|
+
pathParams: z.ZodObject<{
|
|
3403
3135
|
organizationId: z.ZodString;
|
|
3404
|
-
}
|
|
3136
|
+
} & {
|
|
3405
3137
|
id: z.ZodString;
|
|
3406
|
-
}
|
|
3138
|
+
}, "strip", z.ZodTypeAny, {
|
|
3407
3139
|
id: string;
|
|
3408
3140
|
organizationId: string;
|
|
3409
3141
|
}, {
|
|
@@ -2,11 +2,11 @@ import { z } from "zod";
|
|
|
2
2
|
export declare const shippingMethodsContract: {
|
|
3
3
|
getShippingMethod: {
|
|
4
4
|
method: "GET";
|
|
5
|
-
pathParams: z.ZodObject<
|
|
5
|
+
pathParams: z.ZodObject<{
|
|
6
6
|
organizationId: z.ZodString;
|
|
7
|
-
}
|
|
7
|
+
} & {
|
|
8
8
|
id: z.ZodString;
|
|
9
|
-
}
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
10
|
id: string;
|
|
11
11
|
organizationId: string;
|
|
12
12
|
}, {
|
|
@@ -650,7 +650,7 @@ export declare const shippingMethodsContract: {
|
|
|
650
650
|
organizationId: string;
|
|
651
651
|
}>;
|
|
652
652
|
summary: "Create Shipping Method";
|
|
653
|
-
body: z.ZodObject<
|
|
653
|
+
body: z.ZodObject<Pick<{
|
|
654
654
|
id: z.ZodString;
|
|
655
655
|
title: z.ZodString;
|
|
656
656
|
providerName: z.ZodString;
|
|
@@ -720,9 +720,9 @@ export declare const shippingMethodsContract: {
|
|
|
720
720
|
}>>;
|
|
721
721
|
createdAt: z.ZodDate;
|
|
722
722
|
updatedAt: z.ZodDate;
|
|
723
|
-
}, "title" | "providerName" | "providerLogo" | "requireDateOfDelivery" | "shippingZones"
|
|
723
|
+
}, "title" | "providerName" | "providerLogo" | "requireDateOfDelivery" | "shippingZones"> & {
|
|
724
724
|
providerLogoId: z.ZodOptional<z.ZodString>;
|
|
725
|
-
}
|
|
725
|
+
}, "strip", z.ZodTypeAny, {
|
|
726
726
|
title: string;
|
|
727
727
|
providerName: string;
|
|
728
728
|
shippingZones: {
|