@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.
Files changed (36) hide show
  1. package/package.json +1 -1
  2. package/src/contracts/cart.contract.d.ts +6 -140
  3. package/src/contracts/customers.contract.d.ts +3 -3
  4. package/src/contracts/index.d.ts +100 -515
  5. package/src/contracts/manufacturers.contract.d.ts +15 -15
  6. package/src/contracts/orders.contract.d.ts +13 -13
  7. package/src/contracts/organizations.contract.d.ts +3 -3
  8. package/src/contracts/product-categories.contract.d.ts +18 -18
  9. package/src/contracts/products.contract.d.ts +24 -292
  10. package/src/contracts/shipping-methods.contract.d.ts +6 -6
  11. package/src/contracts/shipping.contract.d.ts +15 -28
  12. package/src/db/__generated__/client/internal/prismaNamespace.d.ts +9 -9
  13. package/src/integrations/next.d.ts +1 -0
  14. package/src/integrations/next.js +13 -15
  15. package/src/integrations/next.js.map +1 -1
  16. package/src/lib/better-auth.lib.d.ts +1 -10202
  17. package/src/lib/better-auth.lib.js.map +1 -1
  18. package/src/routers/cart.router.d.ts +6 -140
  19. package/src/routers/manufacturer.router.d.ts +15 -15
  20. package/src/routers/order.router.d.ts +13 -13
  21. package/src/routers/organization.router.d.ts +3 -3
  22. package/src/routers/product-category.router.d.ts +18 -18
  23. package/src/routers/product.router.d.ts +24 -292
  24. package/src/routers/shipping-method.router.d.ts +6 -6
  25. package/src/routers/shipping.router.d.ts +15 -28
  26. package/src/schemas/address.schema.d.ts +9 -16
  27. package/src/schemas/cart.schema.d.ts +6 -140
  28. package/src/schemas/manufacturer.schema.d.ts +3 -3
  29. package/src/schemas/order.schema.d.ts +3 -3
  30. package/src/schemas/organization.schema.d.ts +3 -3
  31. package/src/schemas/params.schema.d.ts +3 -3
  32. package/src/schemas/product-category.schema.d.ts +6 -6
  33. package/src/schemas/product-modifier.schema.d.ts +3 -3
  34. package/src/schemas/product.schema.d.ts +9 -143
  35. package/src/schemas/recipient.schema.d.ts +3 -3
  36. package/src/schemas/shipping-method.schema.d.ts +3 -3
@@ -16,11 +16,8 @@ export declare const buildShippingRouter: (prisma: PrismaClientType, googleMapsA
16
16
  cookie?: string | undefined;
17
17
  }>>;
18
18
  responses: {
19
- 200: import("zod").ZodNullable<import("zod").ZodObject<import("zod").objectUtil.extendShape<{
19
+ 200: import("zod").ZodNullable<import("zod").ZodObject<{
20
20
  id: import("zod").ZodString;
21
- firstname: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
22
- lastname: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
23
- phone: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
24
21
  addressLineOne: import("zod").ZodString;
25
22
  doorNumber: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
26
23
  addressLineTwo: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
@@ -29,11 +26,11 @@ export declare const buildShippingRouter: (prisma: PrismaClientType, googleMapsA
29
26
  country: import("zod").ZodString;
30
27
  placeId: import("zod").ZodString;
31
28
  deliveryInstructions: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
32
- }, {
29
+ } & {
33
30
  firstname: import("zod").ZodString;
34
31
  lastname: import("zod").ZodString;
35
32
  phone: import("zod").ZodString;
36
- }>, "strip", import("zod").ZodTypeAny, {
33
+ }, "strip", import("zod").ZodTypeAny, {
37
34
  id: string;
38
35
  firstname: string;
39
36
  lastname: string;
@@ -76,11 +73,8 @@ export declare const buildShippingRouter: (prisma: PrismaClientType, googleMapsA
76
73
  description: "Creates a new shipping address for the user";
77
74
  method: "POST";
78
75
  summary: "Create Shipping Address";
79
- body: import("zod").ZodObject<Pick<import("zod").objectUtil.extendShape<{
76
+ body: import("zod").ZodObject<Pick<{
80
77
  id: import("zod").ZodString;
81
- firstname: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
82
- lastname: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
83
- phone: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
84
78
  addressLineOne: import("zod").ZodString;
85
79
  doorNumber: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
86
80
  addressLineTwo: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
@@ -89,11 +83,11 @@ export declare const buildShippingRouter: (prisma: PrismaClientType, googleMapsA
89
83
  country: import("zod").ZodString;
90
84
  placeId: import("zod").ZodString;
91
85
  deliveryInstructions: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
92
- }, {
86
+ } & {
93
87
  firstname: import("zod").ZodString;
94
88
  lastname: import("zod").ZodString;
95
89
  phone: import("zod").ZodString;
96
- }>, "firstname" | "lastname" | "phone" | "addressLineOne" | "doorNumber" | "addressLineTwo" | "zipCode" | "city" | "country" | "placeId" | "deliveryInstructions">, "strip", import("zod").ZodTypeAny, {
90
+ }, "firstname" | "lastname" | "phone" | "addressLineOne" | "doorNumber" | "addressLineTwo" | "zipCode" | "city" | "country" | "placeId" | "deliveryInstructions">, "strip", import("zod").ZodTypeAny, {
97
91
  firstname: string;
98
92
  lastname: string;
99
93
  phone: string;
@@ -130,11 +124,8 @@ export declare const buildShippingRouter: (prisma: PrismaClientType, googleMapsA
130
124
  cookie?: string | undefined;
131
125
  }>>;
132
126
  responses: {
133
- 201: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
127
+ 201: import("zod").ZodObject<{
134
128
  id: import("zod").ZodString;
135
- firstname: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
136
- lastname: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
137
- phone: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
138
129
  addressLineOne: import("zod").ZodString;
139
130
  doorNumber: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
140
131
  addressLineTwo: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
@@ -143,11 +134,11 @@ export declare const buildShippingRouter: (prisma: PrismaClientType, googleMapsA
143
134
  country: import("zod").ZodString;
144
135
  placeId: import("zod").ZodString;
145
136
  deliveryInstructions: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
146
- }, {
137
+ } & {
147
138
  firstname: import("zod").ZodString;
148
139
  lastname: import("zod").ZodString;
149
140
  phone: import("zod").ZodString;
150
- }>, "strip", import("zod").ZodTypeAny, {
141
+ }, "strip", import("zod").ZodTypeAny, {
151
142
  id: string;
152
143
  firstname: string;
153
144
  lastname: string;
@@ -200,7 +191,7 @@ export declare const buildShippingRouter: (prisma: PrismaClientType, googleMapsA
200
191
  description: "Updates the shipping address for the user";
201
192
  method: "PUT";
202
193
  summary: "Update Shipping Address";
203
- body: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
194
+ body: import("zod").ZodObject<{
204
195
  firstname: import("zod").ZodOptional<import("zod").ZodString>;
205
196
  lastname: import("zod").ZodOptional<import("zod").ZodString>;
206
197
  phone: import("zod").ZodOptional<import("zod").ZodString>;
@@ -210,11 +201,10 @@ export declare const buildShippingRouter: (prisma: PrismaClientType, googleMapsA
210
201
  zipCode: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
211
202
  city: import("zod").ZodOptional<import("zod").ZodString>;
212
203
  country: import("zod").ZodOptional<import("zod").ZodString>;
213
- placeId: import("zod").ZodOptional<import("zod").ZodString>;
214
204
  deliveryInstructions: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>>;
215
- }, {
205
+ } & {
216
206
  placeId: import("zod").ZodString;
217
- }>, "strip", import("zod").ZodTypeAny, {
207
+ }, "strip", import("zod").ZodTypeAny, {
218
208
  placeId: string;
219
209
  firstname?: string | undefined;
220
210
  lastname?: string | undefined;
@@ -251,11 +241,8 @@ export declare const buildShippingRouter: (prisma: PrismaClientType, googleMapsA
251
241
  cookie?: string | undefined;
252
242
  }>>;
253
243
  responses: {
254
- 200: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
244
+ 200: import("zod").ZodObject<{
255
245
  id: import("zod").ZodString;
256
- firstname: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
257
- lastname: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
258
- phone: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
259
246
  addressLineOne: import("zod").ZodString;
260
247
  doorNumber: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
261
248
  addressLineTwo: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
@@ -264,11 +251,11 @@ export declare const buildShippingRouter: (prisma: PrismaClientType, googleMapsA
264
251
  country: import("zod").ZodString;
265
252
  placeId: import("zod").ZodString;
266
253
  deliveryInstructions: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
267
- }, {
254
+ } & {
268
255
  firstname: import("zod").ZodString;
269
256
  lastname: import("zod").ZodString;
270
257
  phone: import("zod").ZodString;
271
- }>, "strip", import("zod").ZodTypeAny, {
258
+ }, "strip", import("zod").ZodTypeAny, {
272
259
  id: string;
273
260
  firstname: string;
274
261
  lastname: string;
@@ -105,11 +105,8 @@ export type UpdateAddressInput = z.infer<typeof UpdateAddressSchema>;
105
105
  * Shipping address schema
106
106
  * Extends the address schema with additional fields for shipping
107
107
  */
108
- export declare const ShippingAddressSchema: z.ZodObject<z.objectUtil.extendShape<{
108
+ export declare const ShippingAddressSchema: z.ZodObject<{
109
109
  id: z.ZodString;
110
- firstname: z.ZodNullable<z.ZodOptional<z.ZodString>>;
111
- lastname: z.ZodNullable<z.ZodOptional<z.ZodString>>;
112
- phone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
113
110
  addressLineOne: z.ZodString;
114
111
  doorNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
115
112
  addressLineTwo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -118,11 +115,11 @@ export declare const ShippingAddressSchema: z.ZodObject<z.objectUtil.extendShape
118
115
  country: z.ZodString;
119
116
  placeId: z.ZodString;
120
117
  deliveryInstructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
121
- }, {
118
+ } & {
122
119
  firstname: z.ZodString;
123
120
  lastname: z.ZodString;
124
121
  phone: z.ZodString;
125
- }>, "strip", z.ZodTypeAny, {
122
+ }, "strip", z.ZodTypeAny, {
126
123
  id: string;
127
124
  firstname: string;
128
125
  lastname: string;
@@ -149,11 +146,8 @@ export declare const ShippingAddressSchema: z.ZodObject<z.objectUtil.extendShape
149
146
  zipCode?: string | undefined;
150
147
  deliveryInstructions?: string | null | undefined;
151
148
  }>;
152
- export declare const CreateShippingAddressSchema: z.ZodObject<Pick<z.objectUtil.extendShape<{
149
+ export declare const CreateShippingAddressSchema: z.ZodObject<Pick<{
153
150
  id: z.ZodString;
154
- firstname: z.ZodNullable<z.ZodOptional<z.ZodString>>;
155
- lastname: z.ZodNullable<z.ZodOptional<z.ZodString>>;
156
- phone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
157
151
  addressLineOne: z.ZodString;
158
152
  doorNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
159
153
  addressLineTwo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -162,11 +156,11 @@ export declare const CreateShippingAddressSchema: z.ZodObject<Pick<z.objectUtil.
162
156
  country: z.ZodString;
163
157
  placeId: z.ZodString;
164
158
  deliveryInstructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
165
- }, {
159
+ } & {
166
160
  firstname: z.ZodString;
167
161
  lastname: z.ZodString;
168
162
  phone: z.ZodString;
169
- }>, "firstname" | "lastname" | "phone" | "addressLineOne" | "doorNumber" | "addressLineTwo" | "zipCode" | "city" | "country" | "placeId" | "deliveryInstructions">, "strip", z.ZodTypeAny, {
163
+ }, "firstname" | "lastname" | "phone" | "addressLineOne" | "doorNumber" | "addressLineTwo" | "zipCode" | "city" | "country" | "placeId" | "deliveryInstructions">, "strip", z.ZodTypeAny, {
170
164
  firstname: string;
171
165
  lastname: string;
172
166
  phone: string;
@@ -191,7 +185,7 @@ export declare const CreateShippingAddressSchema: z.ZodObject<Pick<z.objectUtil.
191
185
  zipCode?: string | undefined;
192
186
  deliveryInstructions?: string | null | undefined;
193
187
  }>;
194
- export declare const UpdateShippingAddressSchema: z.ZodObject<z.objectUtil.extendShape<{
188
+ export declare const UpdateShippingAddressSchema: z.ZodObject<{
195
189
  firstname: z.ZodOptional<z.ZodString>;
196
190
  lastname: z.ZodOptional<z.ZodString>;
197
191
  phone: z.ZodOptional<z.ZodString>;
@@ -201,11 +195,10 @@ export declare const UpdateShippingAddressSchema: z.ZodObject<z.objectUtil.exten
201
195
  zipCode: z.ZodOptional<z.ZodOptional<z.ZodString>>;
202
196
  city: z.ZodOptional<z.ZodString>;
203
197
  country: z.ZodOptional<z.ZodString>;
204
- placeId: z.ZodOptional<z.ZodString>;
205
198
  deliveryInstructions: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
206
- }, {
199
+ } & {
207
200
  placeId: z.ZodString;
208
- }>, "strip", z.ZodTypeAny, {
201
+ }, "strip", z.ZodTypeAny, {
209
202
  placeId: string;
210
203
  firstname?: string | undefined;
211
204
  lastname?: string | undefined;
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- export declare const CartProductsMappingSchema: z.ZodRecord<z.ZodString, z.ZodObject<Omit<z.objectUtil.extendShape<{
2
+ export declare const CartProductsMappingSchema: z.ZodRecord<z.ZodString, z.ZodObject<Omit<{
3
3
  id: z.ZodString;
4
4
  slug: z.ZodOptional<z.ZodString>;
5
5
  sku: z.ZodOptional<z.ZodString>;
@@ -25,140 +25,6 @@ export declare const CartProductsMappingSchema: z.ZodRecord<z.ZodString, z.ZodOb
25
25
  filename: string;
26
26
  url: string;
27
27
  }>, "many">>;
28
- modifierGroups: z.ZodOptional<z.ZodArray<z.ZodObject<{
29
- id: z.ZodString;
30
- selectMin: z.ZodNumber;
31
- selectMax: z.ZodNumber;
32
- 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"]>>;
33
- modifiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
34
- id: z.ZodOptional<z.ZodString>;
35
- title: z.ZodString;
36
- sku: z.ZodOptional<z.ZodString>;
37
- price: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
38
- }, "strip", z.ZodTypeAny, {
39
- title: string;
40
- price: number;
41
- id?: string | undefined;
42
- sku?: string | undefined;
43
- }, {
44
- title: string;
45
- id?: string | undefined;
46
- sku?: string | undefined;
47
- price?: number | undefined;
48
- }>, "many">>;
49
- translations: z.ZodArray<z.ZodObject<{
50
- 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"]>;
51
- title: z.ZodOptional<z.ZodString>;
52
- }, "strip", z.ZodTypeAny, {
53
- 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";
54
- title?: string | undefined;
55
- }, {
56
- 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";
57
- title?: string | undefined;
58
- }>, "many">;
59
- }, "strip", z.ZodTypeAny, {
60
- translations: {
61
- 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";
62
- title?: string | undefined;
63
- }[];
64
- id: string;
65
- selectMin: number;
66
- selectMax: number;
67
- 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;
68
- modifiers?: {
69
- title: string;
70
- price: number;
71
- id?: string | undefined;
72
- sku?: string | undefined;
73
- }[] | undefined;
74
- }, {
75
- translations: {
76
- 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";
77
- title?: string | undefined;
78
- }[];
79
- id: string;
80
- selectMin: number;
81
- selectMax: number;
82
- 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;
83
- modifiers?: {
84
- title: string;
85
- id?: string | undefined;
86
- sku?: string | undefined;
87
- price?: number | undefined;
88
- }[] | undefined;
89
- }>, "many">>;
90
- categories: z.ZodArray<z.ZodObject<{
91
- id: z.ZodString;
92
- slug: z.ZodString;
93
- image: z.ZodOptional<z.ZodNullable<z.ZodObject<{
94
- id: z.ZodString;
95
- url: z.ZodString;
96
- mimeType: z.ZodString;
97
- size: z.ZodNumber;
98
- filename: z.ZodString;
99
- }, "strip", z.ZodTypeAny, {
100
- id: string;
101
- mimeType: string;
102
- size: number;
103
- filename: string;
104
- url: string;
105
- }, {
106
- id: string;
107
- mimeType: string;
108
- size: number;
109
- filename: string;
110
- url: string;
111
- }>>>;
112
- createdAt: z.ZodDate;
113
- publishedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
114
- translations: z.ZodArray<z.ZodObject<{
115
- locale: z.ZodString;
116
- title: z.ZodDefault<z.ZodString>;
117
- description: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
118
- }, "strip", z.ZodTypeAny, {
119
- locale: string;
120
- title: string;
121
- description?: string | null | undefined;
122
- }, {
123
- locale: string;
124
- title?: string | undefined;
125
- description?: string | null | undefined;
126
- }>, "many">;
127
- }, "strip", z.ZodTypeAny, {
128
- translations: {
129
- locale: string;
130
- title: string;
131
- description?: string | null | undefined;
132
- }[];
133
- id: string;
134
- slug: string;
135
- createdAt: Date;
136
- image?: {
137
- id: string;
138
- mimeType: string;
139
- size: number;
140
- filename: string;
141
- url: string;
142
- } | null | undefined;
143
- publishedAt?: Date | null | undefined;
144
- }, {
145
- translations: {
146
- locale: string;
147
- title?: string | undefined;
148
- description?: string | null | undefined;
149
- }[];
150
- id: string;
151
- slug: string;
152
- createdAt: Date;
153
- image?: {
154
- id: string;
155
- mimeType: string;
156
- size: number;
157
- filename: string;
158
- url: string;
159
- } | null | undefined;
160
- publishedAt?: Date | null | undefined;
161
- }>, "many">;
162
28
  manufacturerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
163
29
  createdAt: z.ZodDate;
164
30
  publishedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
@@ -175,10 +41,10 @@ export declare const CartProductsMappingSchema: z.ZodRecord<z.ZodString, z.ZodOb
175
41
  title?: string | undefined;
176
42
  description?: string | null | undefined;
177
43
  }>, "many">>;
178
- }, {
44
+ } & {
179
45
  title: z.ZodDefault<z.ZodString>;
180
46
  description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
181
- modifierGroups: z.ZodArray<z.ZodObject<Omit<z.objectUtil.extendShape<{
47
+ modifierGroups: z.ZodArray<z.ZodObject<Omit<{
182
48
  id: z.ZodString;
183
49
  selectMin: z.ZodNumber;
184
50
  selectMax: z.ZodNumber;
@@ -209,9 +75,9 @@ export declare const CartProductsMappingSchema: z.ZodRecord<z.ZodString, z.ZodOb
209
75
  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";
210
76
  title?: string | undefined;
211
77
  }>, "many">;
212
- }, {
78
+ } & {
213
79
  title: z.ZodNullable<z.ZodDefault<z.ZodString>>;
214
- }>, "translations">, "strip", z.ZodTypeAny, {
80
+ }, "translations">, "strip", z.ZodTypeAny, {
215
81
  id: string;
216
82
  title: string | null;
217
83
  selectMin: number;
@@ -243,7 +109,7 @@ export declare const CartProductsMappingSchema: z.ZodRecord<z.ZodString, z.ZodOb
243
109
  }, {
244
110
  id: string;
245
111
  }>, "many">>;
246
- }>, "translations">, "strip", z.ZodTypeAny, {
112
+ }, "translations">, "strip", z.ZodTypeAny, {
247
113
  id: string;
248
114
  createdAt: Date;
249
115
  title: string;
@@ -63,7 +63,7 @@ export declare const ManufacturerSchema: z.ZodObject<{
63
63
  url: string;
64
64
  } | null | undefined;
65
65
  }>;
66
- export declare const LocalizedManufacturerSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
66
+ export declare const LocalizedManufacturerSchema: z.ZodObject<Omit<{
67
67
  id: z.ZodString;
68
68
  name: z.ZodString;
69
69
  logo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -96,9 +96,9 @@ export declare const LocalizedManufacturerSchema: z.ZodObject<z.objectUtil.exten
96
96
  locale: string;
97
97
  about?: string | null | undefined;
98
98
  }>, "many">>;
99
- }, "translations">, {
99
+ }, "translations"> & {
100
100
  about: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
101
- }>, "strip", z.ZodTypeAny, {
101
+ }, "strip", z.ZodTypeAny, {
102
102
  id: string;
103
103
  createdAt: Date;
104
104
  name: string;
@@ -899,7 +899,7 @@ export declare const OrderSchema: z.ZodEffects<z.ZodObject<{
899
899
  deliveryInstructions?: string | null | undefined;
900
900
  } | null | undefined;
901
901
  }>;
902
- export declare const CreateOrderSchema: z.ZodEffects<z.ZodObject<z.objectUtil.extendShape<{
902
+ export declare const CreateOrderSchema: z.ZodEffects<z.ZodObject<{
903
903
  items: z.ZodArray<z.ZodObject<{
904
904
  productId: z.ZodString;
905
905
  quantity: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
@@ -950,7 +950,7 @@ export declare const CreateOrderSchema: z.ZodEffects<z.ZodObject<z.objectUtil.ex
950
950
  quantity?: number | undefined;
951
951
  }>, "many">;
952
952
  shippingMethodId: z.ZodOptional<z.ZodString>;
953
- }, {
953
+ } & {
954
954
  fulfilmentMethod: z.ZodDefault<z.ZodEnum<["delivery", "pickup"]>>;
955
955
  payment: z.ZodObject<{
956
956
  provider: z.ZodEnum<["stripe", "revolut", "payu", "not_applicable"]>;
@@ -963,7 +963,7 @@ export declare const CreateOrderSchema: z.ZodEffects<z.ZodObject<z.objectUtil.ex
963
963
  method: "card" | "blik" | "cash_on_delivery" | "paypal";
964
964
  }>;
965
965
  checkoutBaseUrl: z.ZodString;
966
- }>, "strip", z.ZodTypeAny, {
966
+ }, "strip", z.ZodTypeAny, {
967
967
  items: {
968
968
  modifierGroups: {
969
969
  id: string;
@@ -330,7 +330,7 @@ export declare const OrganizationSchema: z.ZodObject<{
330
330
  url: string;
331
331
  } | null | undefined;
332
332
  }>;
333
- export declare const CreateOrganizationSchema: z.ZodObject<z.objectUtil.extendShape<Pick<{
333
+ export declare const CreateOrganizationSchema: z.ZodObject<Pick<{
334
334
  id: z.ZodString;
335
335
  name: z.ZodString;
336
336
  phone: z.ZodString;
@@ -532,7 +532,7 @@ export declare const CreateOrganizationSchema: z.ZodObject<z.objectUtil.extendSh
532
532
  filename: string;
533
533
  url: string;
534
534
  }>>>;
535
- }, "email" | "name" | "phone" | "logoFile">, {
535
+ }, "email" | "name" | "phone" | "logoFile"> & {
536
536
  logoId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
537
537
  address: z.ZodObject<Pick<{
538
538
  id: z.ZodString;
@@ -564,7 +564,7 @@ export declare const CreateOrganizationSchema: z.ZodObject<z.objectUtil.extendSh
564
564
  addressLineTwo?: string | null | undefined;
565
565
  zipCode?: string | undefined;
566
566
  }>;
567
- }>, "strip", z.ZodTypeAny, {
567
+ }, "strip", z.ZodTypeAny, {
568
568
  name: string;
569
569
  phone: string;
570
570
  address: {
@@ -6,11 +6,11 @@ export declare const OrganizationParams: z.ZodObject<{
6
6
  }, {
7
7
  organizationId: string;
8
8
  }>;
9
- export declare const OrganizationWithIdParams: z.ZodObject<z.objectUtil.extendShape<{
9
+ export declare const OrganizationWithIdParams: z.ZodObject<{
10
10
  organizationId: z.ZodString;
11
- }, {
11
+ } & {
12
12
  id: z.ZodString;
13
- }>, "strip", z.ZodTypeAny, {
13
+ }, "strip", z.ZodTypeAny, {
14
14
  id: string;
15
15
  organizationId: string;
16
16
  }, {
@@ -71,7 +71,7 @@ export declare const ProductCategorySchema: z.ZodObject<{
71
71
  } | null | undefined;
72
72
  publishedAt?: Date | null | undefined;
73
73
  }>;
74
- export declare const LocalizedProductCategorySchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
74
+ export declare const LocalizedProductCategorySchema: z.ZodObject<Omit<{
75
75
  id: z.ZodString;
76
76
  slug: z.ZodString;
77
77
  image: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -108,10 +108,10 @@ export declare const LocalizedProductCategorySchema: z.ZodObject<z.objectUtil.ex
108
108
  title?: string | undefined;
109
109
  description?: string | null | undefined;
110
110
  }>, "many">;
111
- }, "translations">, {
111
+ }, "translations"> & {
112
112
  title: z.ZodDefault<z.ZodString>;
113
113
  description: z.ZodDefault<z.ZodString>;
114
- }>, "strip", z.ZodTypeAny, {
114
+ }, "strip", z.ZodTypeAny, {
115
115
  id: string;
116
116
  slug: string;
117
117
  createdAt: Date;
@@ -140,7 +140,7 @@ export declare const LocalizedProductCategorySchema: z.ZodObject<z.objectUtil.ex
140
140
  title?: string | undefined;
141
141
  description?: string | undefined;
142
142
  }>;
143
- export declare const CreateProductCategorySchema: z.ZodEffects<z.ZodObject<z.objectUtil.extendShape<Pick<{
143
+ export declare const CreateProductCategorySchema: z.ZodEffects<z.ZodObject<Pick<{
144
144
  id: z.ZodString;
145
145
  slug: z.ZodString;
146
146
  image: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -177,10 +177,10 @@ export declare const CreateProductCategorySchema: z.ZodEffects<z.ZodObject<z.obj
177
177
  title?: string | undefined;
178
178
  description?: string | null | undefined;
179
179
  }>, "many">;
180
- }, "translations" | "slug" | "image">, {
180
+ }, "translations" | "slug" | "image"> & {
181
181
  defaultLocale: z.ZodString;
182
182
  imageId: z.ZodOptional<z.ZodString>;
183
- }>, "strip", z.ZodTypeAny, {
183
+ }, "strip", z.ZodTypeAny, {
184
184
  translations: {
185
185
  locale: string;
186
186
  title: string;
@@ -77,7 +77,7 @@ export declare const ModifierGroupSchema: z.ZodObject<{
77
77
  price?: number | undefined;
78
78
  }[] | undefined;
79
79
  }>;
80
- export declare const LocalizedModifierGroupSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
80
+ export declare const LocalizedModifierGroupSchema: z.ZodObject<Omit<{
81
81
  id: z.ZodString;
82
82
  selectMin: z.ZodNumber;
83
83
  selectMax: z.ZodNumber;
@@ -108,9 +108,9 @@ export declare const LocalizedModifierGroupSchema: z.ZodObject<Omit<z.objectUtil
108
108
  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";
109
109
  title?: string | undefined;
110
110
  }>, "many">;
111
- }, {
111
+ } & {
112
112
  title: z.ZodNullable<z.ZodDefault<z.ZodString>>;
113
- }>, "translations">, "strip", z.ZodTypeAny, {
113
+ }, "translations">, "strip", z.ZodTypeAny, {
114
114
  id: string;
115
115
  title: string | null;
116
116
  selectMin: number;