restale 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -3,6 +3,710 @@ import { ContractRouterClient, InferContractRouterInputs, InferContractRouterOut
3
3
  import * as z from "zod";
4
4
  import * as _$zod_v4_core0 from "zod/v4/core";
5
5
 
6
+ //#region src/customers/addresses/schemas.d.ts
7
+ declare const addressSchema: z.ZodObject<{
8
+ id: z.ZodUUID;
9
+ label: z.ZodNullable<z.ZodString>;
10
+ recipientName: z.ZodString;
11
+ phone: z.ZodString;
12
+ line1: z.ZodString;
13
+ line2: z.ZodNullable<z.ZodString>;
14
+ city: z.ZodString;
15
+ state: z.ZodString;
16
+ postalCode: z.ZodString;
17
+ country: z.ZodString;
18
+ lat: z.ZodNullable<z.ZodString>;
19
+ lng: z.ZodNullable<z.ZodString>;
20
+ notes: z.ZodNullable<z.ZodString>;
21
+ isDefault: z.ZodBoolean;
22
+ createdAt: z.ZodString;
23
+ updatedAt: z.ZodString;
24
+ }, z.core.$strip>;
25
+ declare const addressInputSchema: z.ZodObject<{
26
+ label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ recipientName: z.ZodString;
28
+ phone: z.ZodString;
29
+ line1: z.ZodString;
30
+ line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ city: z.ZodString;
32
+ state: z.ZodString;
33
+ postalCode: z.ZodString;
34
+ country: z.ZodString;
35
+ lat: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodUnion<readonly [z.ZodPipe<z.ZodLiteral<"">, z.ZodTransform<undefined, "">>, z.ZodPipe<z.ZodCoercedNumber<string>, z.ZodTransform<string, number>>]>>>>;
36
+ lng: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodUnion<readonly [z.ZodPipe<z.ZodLiteral<"">, z.ZodTransform<undefined, "">>, z.ZodPipe<z.ZodCoercedNumber<string>, z.ZodTransform<string, number>>]>>>>;
37
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
+ isDefault: z.ZodOptional<z.ZodBoolean>;
39
+ }, z.core.$strip>;
40
+ declare const addressUpdateInputSchema: z.ZodObject<{
41
+ label: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
42
+ recipientName: z.ZodOptional<z.ZodString>;
43
+ phone: z.ZodOptional<z.ZodString>;
44
+ line1: z.ZodOptional<z.ZodString>;
45
+ line2: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
46
+ city: z.ZodOptional<z.ZodString>;
47
+ state: z.ZodOptional<z.ZodString>;
48
+ postalCode: z.ZodOptional<z.ZodString>;
49
+ country: z.ZodOptional<z.ZodString>;
50
+ lat: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodUnion<readonly [z.ZodPipe<z.ZodLiteral<"">, z.ZodTransform<undefined, "">>, z.ZodPipe<z.ZodCoercedNumber<string>, z.ZodTransform<string, number>>]>>>>>;
51
+ lng: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodUnion<readonly [z.ZodPipe<z.ZodLiteral<"">, z.ZodTransform<undefined, "">>, z.ZodPipe<z.ZodCoercedNumber<string>, z.ZodTransform<string, number>>]>>>>>;
52
+ notes: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
53
+ isDefault: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
54
+ }, z.core.$strip>;
55
+ type Address = z.infer<typeof addressSchema>;
56
+ type AddressInput = z.infer<typeof addressInputSchema>;
57
+ type AddressUpdateInput = z.infer<typeof addressUpdateInputSchema>;
58
+ //#endregion
59
+ //#region src/customers/schemas.d.ts
60
+ declare const customerSchema: z.ZodObject<{
61
+ id: z.ZodString;
62
+ email: z.ZodEmail;
63
+ name: z.ZodString;
64
+ emailVerified: z.ZodBoolean;
65
+ image: z.ZodNullable<z.ZodString>;
66
+ createdAt: z.ZodString;
67
+ updatedAt: z.ZodString;
68
+ }, z.core.$strip>;
69
+ declare const otpTokenResponseSchema: z.ZodObject<{
70
+ token: z.ZodString;
71
+ expiresAt: z.ZodString;
72
+ customer: z.ZodObject<{
73
+ id: z.ZodString;
74
+ email: z.ZodEmail;
75
+ name: z.ZodString;
76
+ emailVerified: z.ZodBoolean;
77
+ image: z.ZodNullable<z.ZodString>;
78
+ createdAt: z.ZodString;
79
+ updatedAt: z.ZodString;
80
+ }, z.core.$strip>;
81
+ }, z.core.$strip>;
82
+ declare const okSchema: z.ZodObject<{
83
+ ok: z.ZodLiteral<true>;
84
+ }, z.core.$strip>;
85
+ type Customer = z.infer<typeof customerSchema>;
86
+ type OtpTokenResponse = z.infer<typeof otpTokenResponseSchema>;
87
+ //#endregion
88
+ //#region src/orders/schemas.d.ts
89
+ declare const orderStatusSchema: z.ZodEnum<{
90
+ pending: "pending";
91
+ confirmed: "confirmed";
92
+ preparing: "preparing";
93
+ out_for_delivery: "out_for_delivery";
94
+ completed: "completed";
95
+ cancelled: "cancelled";
96
+ }>;
97
+ declare const orderPaymentStatusSchema: z.ZodEnum<{
98
+ pending: "pending";
99
+ paid: "paid";
100
+ refunded: "refunded";
101
+ failed: "failed";
102
+ }>;
103
+ declare const orderChannelSchema: z.ZodEnum<{
104
+ storefront: "storefront";
105
+ pos: "pos";
106
+ api: "api";
107
+ }>;
108
+ declare const orderFulfillmentTypeSchema: z.ZodEnum<{
109
+ delivery: "delivery";
110
+ pickup: "pickup";
111
+ }>;
112
+ declare const orderPaymentProviderSchema: z.ZodEnum<{
113
+ cod: "cod";
114
+ }>;
115
+ declare const cartVariantModifierSchema: z.ZodObject<{
116
+ modifierId: z.ZodUUID;
117
+ quantity: z.ZodDefault<z.ZodNumber>;
118
+ }, z.core.$strip>;
119
+ declare const cartVariantItemSchema: z.ZodObject<{
120
+ kind: z.ZodLiteral<"variant">;
121
+ variantId: z.ZodUUID;
122
+ quantity: z.ZodNumber;
123
+ modifiers: z.ZodDefault<z.ZodArray<z.ZodObject<{
124
+ modifierId: z.ZodUUID;
125
+ quantity: z.ZodDefault<z.ZodNumber>;
126
+ }, z.core.$strip>>>;
127
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
128
+ }, z.core.$strip>;
129
+ declare const cartDealChoiceSchema: z.ZodObject<{
130
+ dealChoiceGroupId: z.ZodUUID;
131
+ variantId: z.ZodUUID;
132
+ quantity: z.ZodDefault<z.ZodNumber>;
133
+ }, z.core.$strip>;
134
+ declare const cartDealItemSchema: z.ZodObject<{
135
+ kind: z.ZodLiteral<"deal">;
136
+ dealId: z.ZodUUID;
137
+ quantity: z.ZodNumber;
138
+ choices: z.ZodDefault<z.ZodArray<z.ZodObject<{
139
+ dealChoiceGroupId: z.ZodUUID;
140
+ variantId: z.ZodUUID;
141
+ quantity: z.ZodDefault<z.ZodNumber>;
142
+ }, z.core.$strip>>>;
143
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
144
+ }, z.core.$strip>;
145
+ declare const cartItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
146
+ kind: z.ZodLiteral<"variant">;
147
+ variantId: z.ZodUUID;
148
+ quantity: z.ZodNumber;
149
+ modifiers: z.ZodDefault<z.ZodArray<z.ZodObject<{
150
+ modifierId: z.ZodUUID;
151
+ quantity: z.ZodDefault<z.ZodNumber>;
152
+ }, z.core.$strip>>>;
153
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
154
+ }, z.core.$strip>, z.ZodObject<{
155
+ kind: z.ZodLiteral<"deal">;
156
+ dealId: z.ZodUUID;
157
+ quantity: z.ZodNumber;
158
+ choices: z.ZodDefault<z.ZodArray<z.ZodObject<{
159
+ dealChoiceGroupId: z.ZodUUID;
160
+ variantId: z.ZodUUID;
161
+ quantity: z.ZodDefault<z.ZodNumber>;
162
+ }, z.core.$strip>>>;
163
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
164
+ }, z.core.$strip>], "kind">;
165
+ declare const createOrderBaseInputSchema: z.ZodObject<{
166
+ items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
167
+ kind: z.ZodLiteral<"variant">;
168
+ variantId: z.ZodUUID;
169
+ quantity: z.ZodNumber;
170
+ modifiers: z.ZodDefault<z.ZodArray<z.ZodObject<{
171
+ modifierId: z.ZodUUID;
172
+ quantity: z.ZodDefault<z.ZodNumber>;
173
+ }, z.core.$strip>>>;
174
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
175
+ }, z.core.$strip>, z.ZodObject<{
176
+ kind: z.ZodLiteral<"deal">;
177
+ dealId: z.ZodUUID;
178
+ quantity: z.ZodNumber;
179
+ choices: z.ZodDefault<z.ZodArray<z.ZodObject<{
180
+ dealChoiceGroupId: z.ZodUUID;
181
+ variantId: z.ZodUUID;
182
+ quantity: z.ZodDefault<z.ZodNumber>;
183
+ }, z.core.$strip>>>;
184
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
185
+ }, z.core.$strip>], "kind">>;
186
+ paymentMethodId: z.ZodUUID;
187
+ contactPhone: z.ZodString;
188
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
189
+ }, z.core.$strip>;
190
+ declare const createDeliveryOrderInputSchema: z.ZodObject<{
191
+ items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
192
+ kind: z.ZodLiteral<"variant">;
193
+ variantId: z.ZodUUID;
194
+ quantity: z.ZodNumber;
195
+ modifiers: z.ZodDefault<z.ZodArray<z.ZodObject<{
196
+ modifierId: z.ZodUUID;
197
+ quantity: z.ZodDefault<z.ZodNumber>;
198
+ }, z.core.$strip>>>;
199
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
200
+ }, z.core.$strip>, z.ZodObject<{
201
+ kind: z.ZodLiteral<"deal">;
202
+ dealId: z.ZodUUID;
203
+ quantity: z.ZodNumber;
204
+ choices: z.ZodDefault<z.ZodArray<z.ZodObject<{
205
+ dealChoiceGroupId: z.ZodUUID;
206
+ variantId: z.ZodUUID;
207
+ quantity: z.ZodDefault<z.ZodNumber>;
208
+ }, z.core.$strip>>>;
209
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
210
+ }, z.core.$strip>], "kind">>;
211
+ paymentMethodId: z.ZodUUID;
212
+ contactPhone: z.ZodString;
213
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
214
+ fulfillmentType: z.ZodLiteral<"delivery">;
215
+ delivery: z.ZodObject<{
216
+ customerAddressId: z.ZodUUID;
217
+ deliveryNotes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
218
+ }, z.core.$strip>;
219
+ }, z.core.$strip>;
220
+ declare const createPickupOrderInputSchema: z.ZodObject<{
221
+ items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
222
+ kind: z.ZodLiteral<"variant">;
223
+ variantId: z.ZodUUID;
224
+ quantity: z.ZodNumber;
225
+ modifiers: z.ZodDefault<z.ZodArray<z.ZodObject<{
226
+ modifierId: z.ZodUUID;
227
+ quantity: z.ZodDefault<z.ZodNumber>;
228
+ }, z.core.$strip>>>;
229
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
230
+ }, z.core.$strip>, z.ZodObject<{
231
+ kind: z.ZodLiteral<"deal">;
232
+ dealId: z.ZodUUID;
233
+ quantity: z.ZodNumber;
234
+ choices: z.ZodDefault<z.ZodArray<z.ZodObject<{
235
+ dealChoiceGroupId: z.ZodUUID;
236
+ variantId: z.ZodUUID;
237
+ quantity: z.ZodDefault<z.ZodNumber>;
238
+ }, z.core.$strip>>>;
239
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
240
+ }, z.core.$strip>], "kind">>;
241
+ paymentMethodId: z.ZodUUID;
242
+ contactPhone: z.ZodString;
243
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
244
+ fulfillmentType: z.ZodLiteral<"pickup">;
245
+ }, z.core.$strip>;
246
+ declare const createOrderInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
247
+ items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
248
+ kind: z.ZodLiteral<"variant">;
249
+ variantId: z.ZodUUID;
250
+ quantity: z.ZodNumber;
251
+ modifiers: z.ZodDefault<z.ZodArray<z.ZodObject<{
252
+ modifierId: z.ZodUUID;
253
+ quantity: z.ZodDefault<z.ZodNumber>;
254
+ }, z.core.$strip>>>;
255
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
256
+ }, z.core.$strip>, z.ZodObject<{
257
+ kind: z.ZodLiteral<"deal">;
258
+ dealId: z.ZodUUID;
259
+ quantity: z.ZodNumber;
260
+ choices: z.ZodDefault<z.ZodArray<z.ZodObject<{
261
+ dealChoiceGroupId: z.ZodUUID;
262
+ variantId: z.ZodUUID;
263
+ quantity: z.ZodDefault<z.ZodNumber>;
264
+ }, z.core.$strip>>>;
265
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
266
+ }, z.core.$strip>], "kind">>;
267
+ paymentMethodId: z.ZodUUID;
268
+ contactPhone: z.ZodString;
269
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
270
+ fulfillmentType: z.ZodLiteral<"delivery">;
271
+ delivery: z.ZodObject<{
272
+ customerAddressId: z.ZodUUID;
273
+ deliveryNotes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
274
+ }, z.core.$strip>;
275
+ }, z.core.$strip>, z.ZodObject<{
276
+ items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
277
+ kind: z.ZodLiteral<"variant">;
278
+ variantId: z.ZodUUID;
279
+ quantity: z.ZodNumber;
280
+ modifiers: z.ZodDefault<z.ZodArray<z.ZodObject<{
281
+ modifierId: z.ZodUUID;
282
+ quantity: z.ZodDefault<z.ZodNumber>;
283
+ }, z.core.$strip>>>;
284
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
285
+ }, z.core.$strip>, z.ZodObject<{
286
+ kind: z.ZodLiteral<"deal">;
287
+ dealId: z.ZodUUID;
288
+ quantity: z.ZodNumber;
289
+ choices: z.ZodDefault<z.ZodArray<z.ZodObject<{
290
+ dealChoiceGroupId: z.ZodUUID;
291
+ variantId: z.ZodUUID;
292
+ quantity: z.ZodDefault<z.ZodNumber>;
293
+ }, z.core.$strip>>>;
294
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
295
+ }, z.core.$strip>], "kind">>;
296
+ paymentMethodId: z.ZodUUID;
297
+ contactPhone: z.ZodString;
298
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
299
+ fulfillmentType: z.ZodLiteral<"pickup">;
300
+ }, z.core.$strip>], "fulfillmentType">;
301
+ declare const createdOrderRowSchema: z.ZodObject<{
302
+ id: z.ZodUUID;
303
+ organizationId: z.ZodString;
304
+ customerId: z.ZodNullable<z.ZodString>;
305
+ orderNumber: z.ZodString;
306
+ channel: z.ZodEnum<{
307
+ storefront: "storefront";
308
+ pos: "pos";
309
+ api: "api";
310
+ }>;
311
+ fulfillmentType: z.ZodEnum<{
312
+ delivery: "delivery";
313
+ pickup: "pickup";
314
+ }>;
315
+ status: z.ZodEnum<{
316
+ pending: "pending";
317
+ confirmed: "confirmed";
318
+ preparing: "preparing";
319
+ out_for_delivery: "out_for_delivery";
320
+ completed: "completed";
321
+ cancelled: "cancelled";
322
+ }>;
323
+ paymentStatus: z.ZodEnum<{
324
+ pending: "pending";
325
+ paid: "paid";
326
+ refunded: "refunded";
327
+ failed: "failed";
328
+ }>;
329
+ paymentMethodId: z.ZodNullable<z.ZodUUID>;
330
+ paymentProvider: z.ZodEnum<{
331
+ cod: "cod";
332
+ }>;
333
+ subtotal: z.ZodString;
334
+ deliveryFee: z.ZodString;
335
+ grandTotal: z.ZodString;
336
+ currency: z.ZodString;
337
+ contactName: z.ZodString;
338
+ contactPhone: z.ZodString;
339
+ contactEmail: z.ZodNullable<z.ZodString>;
340
+ notes: z.ZodNullable<z.ZodString>;
341
+ placedAt: z.ZodDate;
342
+ confirmedAt: z.ZodNullable<z.ZodDate>;
343
+ completedAt: z.ZodNullable<z.ZodDate>;
344
+ cancelledAt: z.ZodNullable<z.ZodDate>;
345
+ createdAt: z.ZodDate;
346
+ updatedAt: z.ZodDate;
347
+ }, z.core.$strip>;
348
+ declare const createdOrderItemSchema: z.ZodObject<{
349
+ id: z.ZodUUID;
350
+ orderId: z.ZodUUID;
351
+ organizationId: z.ZodString;
352
+ kind: z.ZodEnum<{
353
+ variant: "variant";
354
+ deal: "deal";
355
+ }>;
356
+ variantId: z.ZodNullable<z.ZodUUID>;
357
+ dealId: z.ZodNullable<z.ZodUUID>;
358
+ productName: z.ZodNullable<z.ZodString>;
359
+ variantName: z.ZodNullable<z.ZodString>;
360
+ dealName: z.ZodNullable<z.ZodString>;
361
+ sku: z.ZodNullable<z.ZodString>;
362
+ imageUrl: z.ZodNullable<z.ZodString>;
363
+ unitPrice: z.ZodString;
364
+ quantity: z.ZodNumber;
365
+ modifiersTotal: z.ZodString;
366
+ lineSubtotal: z.ZodString;
367
+ notes: z.ZodNullable<z.ZodString>;
368
+ sortOrder: z.ZodNumber;
369
+ createdAt: z.ZodDate;
370
+ }, z.core.$strip>;
371
+ declare const createdOrderDealPartSchema: z.ZodObject<{
372
+ id: z.ZodUUID;
373
+ orderItemId: z.ZodUUID;
374
+ kind: z.ZodEnum<{
375
+ included: "included";
376
+ chosen: "chosen";
377
+ }>;
378
+ dealIncludedItemId: z.ZodNullable<z.ZodUUID>;
379
+ dealChoiceGroupId: z.ZodNullable<z.ZodUUID>;
380
+ variantId: z.ZodNullable<z.ZodUUID>;
381
+ groupName: z.ZodNullable<z.ZodString>;
382
+ variantName: z.ZodString;
383
+ priceDelta: z.ZodString;
384
+ quantity: z.ZodNumber;
385
+ sortOrder: z.ZodNumber;
386
+ createdAt: z.ZodDate;
387
+ }, z.core.$strip>;
388
+ declare const orderDeliveryOutputSchema: z.ZodObject<{
389
+ customerAddressId: z.ZodNullable<z.ZodUUID>;
390
+ recipientName: z.ZodString;
391
+ phone: z.ZodString;
392
+ line1: z.ZodString;
393
+ line2: z.ZodNullable<z.ZodString>;
394
+ city: z.ZodString;
395
+ state: z.ZodString;
396
+ postalCode: z.ZodString;
397
+ country: z.ZodString;
398
+ lat: z.ZodNullable<z.ZodString>;
399
+ lng: z.ZodNullable<z.ZodString>;
400
+ deliveryNotes: z.ZodNullable<z.ZodString>;
401
+ }, z.core.$strip>;
402
+ declare const createOrderOutputSchema: z.ZodObject<{
403
+ order: z.ZodObject<{
404
+ id: z.ZodUUID;
405
+ organizationId: z.ZodString;
406
+ customerId: z.ZodNullable<z.ZodString>;
407
+ orderNumber: z.ZodString;
408
+ channel: z.ZodEnum<{
409
+ storefront: "storefront";
410
+ pos: "pos";
411
+ api: "api";
412
+ }>;
413
+ fulfillmentType: z.ZodEnum<{
414
+ delivery: "delivery";
415
+ pickup: "pickup";
416
+ }>;
417
+ status: z.ZodEnum<{
418
+ pending: "pending";
419
+ confirmed: "confirmed";
420
+ preparing: "preparing";
421
+ out_for_delivery: "out_for_delivery";
422
+ completed: "completed";
423
+ cancelled: "cancelled";
424
+ }>;
425
+ paymentStatus: z.ZodEnum<{
426
+ pending: "pending";
427
+ paid: "paid";
428
+ refunded: "refunded";
429
+ failed: "failed";
430
+ }>;
431
+ paymentMethodId: z.ZodNullable<z.ZodUUID>;
432
+ paymentProvider: z.ZodEnum<{
433
+ cod: "cod";
434
+ }>;
435
+ subtotal: z.ZodString;
436
+ deliveryFee: z.ZodString;
437
+ grandTotal: z.ZodString;
438
+ currency: z.ZodString;
439
+ contactName: z.ZodString;
440
+ contactPhone: z.ZodString;
441
+ contactEmail: z.ZodNullable<z.ZodString>;
442
+ notes: z.ZodNullable<z.ZodString>;
443
+ placedAt: z.ZodDate;
444
+ confirmedAt: z.ZodNullable<z.ZodDate>;
445
+ completedAt: z.ZodNullable<z.ZodDate>;
446
+ cancelledAt: z.ZodNullable<z.ZodDate>;
447
+ createdAt: z.ZodDate;
448
+ updatedAt: z.ZodDate;
449
+ }, z.core.$strip>;
450
+ delivery: z.ZodNullable<z.ZodObject<{
451
+ customerAddressId: z.ZodNullable<z.ZodUUID>;
452
+ recipientName: z.ZodString;
453
+ phone: z.ZodString;
454
+ line1: z.ZodString;
455
+ line2: z.ZodNullable<z.ZodString>;
456
+ city: z.ZodString;
457
+ state: z.ZodString;
458
+ postalCode: z.ZodString;
459
+ country: z.ZodString;
460
+ lat: z.ZodNullable<z.ZodString>;
461
+ lng: z.ZodNullable<z.ZodString>;
462
+ deliveryNotes: z.ZodNullable<z.ZodString>;
463
+ }, z.core.$strip>>;
464
+ items: z.ZodArray<z.ZodObject<{
465
+ id: z.ZodUUID;
466
+ orderId: z.ZodUUID;
467
+ organizationId: z.ZodString;
468
+ kind: z.ZodEnum<{
469
+ variant: "variant";
470
+ deal: "deal";
471
+ }>;
472
+ variantId: z.ZodNullable<z.ZodUUID>;
473
+ dealId: z.ZodNullable<z.ZodUUID>;
474
+ productName: z.ZodNullable<z.ZodString>;
475
+ variantName: z.ZodNullable<z.ZodString>;
476
+ dealName: z.ZodNullable<z.ZodString>;
477
+ sku: z.ZodNullable<z.ZodString>;
478
+ imageUrl: z.ZodNullable<z.ZodString>;
479
+ unitPrice: z.ZodString;
480
+ quantity: z.ZodNumber;
481
+ modifiersTotal: z.ZodString;
482
+ lineSubtotal: z.ZodString;
483
+ notes: z.ZodNullable<z.ZodString>;
484
+ sortOrder: z.ZodNumber;
485
+ createdAt: z.ZodDate;
486
+ }, z.core.$strip>>;
487
+ dealParts: z.ZodArray<z.ZodObject<{
488
+ id: z.ZodUUID;
489
+ orderItemId: z.ZodUUID;
490
+ kind: z.ZodEnum<{
491
+ included: "included";
492
+ chosen: "chosen";
493
+ }>;
494
+ dealIncludedItemId: z.ZodNullable<z.ZodUUID>;
495
+ dealChoiceGroupId: z.ZodNullable<z.ZodUUID>;
496
+ variantId: z.ZodNullable<z.ZodUUID>;
497
+ groupName: z.ZodNullable<z.ZodString>;
498
+ variantName: z.ZodString;
499
+ priceDelta: z.ZodString;
500
+ quantity: z.ZodNumber;
501
+ sortOrder: z.ZodNumber;
502
+ createdAt: z.ZodDate;
503
+ }, z.core.$strip>>;
504
+ }, z.core.$strip>;
505
+ declare const orderItemModifierOutputSchema: z.ZodObject<{
506
+ id: z.ZodUUID;
507
+ modifierId: z.ZodNullable<z.ZodUUID>;
508
+ modifierGroupId: z.ZodNullable<z.ZodUUID>;
509
+ groupName: z.ZodString;
510
+ modifierName: z.ZodString;
511
+ priceDelta: z.ZodString;
512
+ quantity: z.ZodNumber;
513
+ }, z.core.$strip>;
514
+ declare const orderItemDealPartOutputSchema: z.ZodObject<{
515
+ id: z.ZodUUID;
516
+ kind: z.ZodEnum<{
517
+ included: "included";
518
+ chosen: "chosen";
519
+ }>;
520
+ dealIncludedItemId: z.ZodNullable<z.ZodUUID>;
521
+ dealChoiceGroupId: z.ZodNullable<z.ZodUUID>;
522
+ variantId: z.ZodNullable<z.ZodUUID>;
523
+ groupName: z.ZodNullable<z.ZodString>;
524
+ variantName: z.ZodString;
525
+ priceDelta: z.ZodString;
526
+ quantity: z.ZodNumber;
527
+ }, z.core.$strip>;
528
+ declare const orderItemOutputSchema: z.ZodObject<{
529
+ id: z.ZodUUID;
530
+ kind: z.ZodEnum<{
531
+ variant: "variant";
532
+ deal: "deal";
533
+ }>;
534
+ variantId: z.ZodNullable<z.ZodUUID>;
535
+ dealId: z.ZodNullable<z.ZodUUID>;
536
+ productName: z.ZodNullable<z.ZodString>;
537
+ variantName: z.ZodNullable<z.ZodString>;
538
+ dealName: z.ZodNullable<z.ZodString>;
539
+ sku: z.ZodNullable<z.ZodString>;
540
+ imageUrl: z.ZodNullable<z.ZodString>;
541
+ unitPrice: z.ZodString;
542
+ quantity: z.ZodNumber;
543
+ modifiersTotal: z.ZodString;
544
+ lineSubtotal: z.ZodString;
545
+ notes: z.ZodNullable<z.ZodString>;
546
+ modifiers: z.ZodArray<z.ZodObject<{
547
+ id: z.ZodUUID;
548
+ modifierId: z.ZodNullable<z.ZodUUID>;
549
+ modifierGroupId: z.ZodNullable<z.ZodUUID>;
550
+ groupName: z.ZodString;
551
+ modifierName: z.ZodString;
552
+ priceDelta: z.ZodString;
553
+ quantity: z.ZodNumber;
554
+ }, z.core.$strip>>;
555
+ dealParts: z.ZodArray<z.ZodObject<{
556
+ id: z.ZodUUID;
557
+ kind: z.ZodEnum<{
558
+ included: "included";
559
+ chosen: "chosen";
560
+ }>;
561
+ dealIncludedItemId: z.ZodNullable<z.ZodUUID>;
562
+ dealChoiceGroupId: z.ZodNullable<z.ZodUUID>;
563
+ variantId: z.ZodNullable<z.ZodUUID>;
564
+ groupName: z.ZodNullable<z.ZodString>;
565
+ variantName: z.ZodString;
566
+ priceDelta: z.ZodString;
567
+ quantity: z.ZodNumber;
568
+ }, z.core.$strip>>;
569
+ }, z.core.$strip>;
570
+ declare const orderSummarySchema: z.ZodObject<{
571
+ id: z.ZodUUID;
572
+ orderNumber: z.ZodString;
573
+ status: z.ZodEnum<{
574
+ pending: "pending";
575
+ confirmed: "confirmed";
576
+ preparing: "preparing";
577
+ out_for_delivery: "out_for_delivery";
578
+ completed: "completed";
579
+ cancelled: "cancelled";
580
+ }>;
581
+ paymentStatus: z.ZodEnum<{
582
+ pending: "pending";
583
+ paid: "paid";
584
+ refunded: "refunded";
585
+ failed: "failed";
586
+ }>;
587
+ fulfillmentType: z.ZodEnum<{
588
+ delivery: "delivery";
589
+ pickup: "pickup";
590
+ }>;
591
+ subtotal: z.ZodString;
592
+ deliveryFee: z.ZodString;
593
+ grandTotal: z.ZodString;
594
+ currency: z.ZodString;
595
+ placedAt: z.ZodString;
596
+ createdAt: z.ZodString;
597
+ }, z.core.$strip>;
598
+ declare const orderDetailSchema: z.ZodObject<{
599
+ id: z.ZodUUID;
600
+ orderNumber: z.ZodString;
601
+ status: z.ZodEnum<{
602
+ pending: "pending";
603
+ confirmed: "confirmed";
604
+ preparing: "preparing";
605
+ out_for_delivery: "out_for_delivery";
606
+ completed: "completed";
607
+ cancelled: "cancelled";
608
+ }>;
609
+ paymentStatus: z.ZodEnum<{
610
+ pending: "pending";
611
+ paid: "paid";
612
+ refunded: "refunded";
613
+ failed: "failed";
614
+ }>;
615
+ fulfillmentType: z.ZodEnum<{
616
+ delivery: "delivery";
617
+ pickup: "pickup";
618
+ }>;
619
+ subtotal: z.ZodString;
620
+ deliveryFee: z.ZodString;
621
+ grandTotal: z.ZodString;
622
+ currency: z.ZodString;
623
+ placedAt: z.ZodString;
624
+ createdAt: z.ZodString;
625
+ channel: z.ZodEnum<{
626
+ storefront: "storefront";
627
+ pos: "pos";
628
+ api: "api";
629
+ }>;
630
+ paymentProvider: z.ZodEnum<{
631
+ cod: "cod";
632
+ }>;
633
+ paymentMethodId: z.ZodNullable<z.ZodUUID>;
634
+ contactName: z.ZodString;
635
+ contactPhone: z.ZodString;
636
+ contactEmail: z.ZodNullable<z.ZodString>;
637
+ notes: z.ZodNullable<z.ZodString>;
638
+ confirmedAt: z.ZodNullable<z.ZodString>;
639
+ completedAt: z.ZodNullable<z.ZodString>;
640
+ cancelledAt: z.ZodNullable<z.ZodString>;
641
+ delivery: z.ZodNullable<z.ZodObject<{
642
+ customerAddressId: z.ZodNullable<z.ZodUUID>;
643
+ recipientName: z.ZodString;
644
+ phone: z.ZodString;
645
+ line1: z.ZodString;
646
+ line2: z.ZodNullable<z.ZodString>;
647
+ city: z.ZodString;
648
+ state: z.ZodString;
649
+ postalCode: z.ZodString;
650
+ country: z.ZodString;
651
+ lat: z.ZodNullable<z.ZodString>;
652
+ lng: z.ZodNullable<z.ZodString>;
653
+ deliveryNotes: z.ZodNullable<z.ZodString>;
654
+ }, z.core.$strip>>;
655
+ items: z.ZodArray<z.ZodObject<{
656
+ id: z.ZodUUID;
657
+ kind: z.ZodEnum<{
658
+ variant: "variant";
659
+ deal: "deal";
660
+ }>;
661
+ variantId: z.ZodNullable<z.ZodUUID>;
662
+ dealId: z.ZodNullable<z.ZodUUID>;
663
+ productName: z.ZodNullable<z.ZodString>;
664
+ variantName: z.ZodNullable<z.ZodString>;
665
+ dealName: z.ZodNullable<z.ZodString>;
666
+ sku: z.ZodNullable<z.ZodString>;
667
+ imageUrl: z.ZodNullable<z.ZodString>;
668
+ unitPrice: z.ZodString;
669
+ quantity: z.ZodNumber;
670
+ modifiersTotal: z.ZodString;
671
+ lineSubtotal: z.ZodString;
672
+ notes: z.ZodNullable<z.ZodString>;
673
+ modifiers: z.ZodArray<z.ZodObject<{
674
+ id: z.ZodUUID;
675
+ modifierId: z.ZodNullable<z.ZodUUID>;
676
+ modifierGroupId: z.ZodNullable<z.ZodUUID>;
677
+ groupName: z.ZodString;
678
+ modifierName: z.ZodString;
679
+ priceDelta: z.ZodString;
680
+ quantity: z.ZodNumber;
681
+ }, z.core.$strip>>;
682
+ dealParts: z.ZodArray<z.ZodObject<{
683
+ id: z.ZodUUID;
684
+ kind: z.ZodEnum<{
685
+ included: "included";
686
+ chosen: "chosen";
687
+ }>;
688
+ dealIncludedItemId: z.ZodNullable<z.ZodUUID>;
689
+ dealChoiceGroupId: z.ZodNullable<z.ZodUUID>;
690
+ variantId: z.ZodNullable<z.ZodUUID>;
691
+ groupName: z.ZodNullable<z.ZodString>;
692
+ variantName: z.ZodString;
693
+ priceDelta: z.ZodString;
694
+ quantity: z.ZodNumber;
695
+ }, z.core.$strip>>;
696
+ }, z.core.$strip>>;
697
+ }, z.core.$strip>;
698
+ type OrderStatus = z.infer<typeof orderStatusSchema>;
699
+ type OrderPaymentStatus = z.infer<typeof orderPaymentStatusSchema>;
700
+ type OrderFulfillmentType = z.infer<typeof orderFulfillmentTypeSchema>;
701
+ type CartVariantItem = z.infer<typeof cartVariantItemSchema>;
702
+ type CartDealItem = z.infer<typeof cartDealItemSchema>;
703
+ type CartItem = z.infer<typeof cartItemSchema>;
704
+ type CreateOrderInput = z.infer<typeof createOrderInputSchema>;
705
+ type CreateOrderOutput = z.infer<typeof createOrderOutputSchema>;
706
+ type OrderSummary = z.infer<typeof orderSummarySchema>;
707
+ type OrderDetail = z.infer<typeof orderDetailSchema>;
708
+ type OrderItemOutput = z.infer<typeof orderItemOutputSchema>;
709
+ //#endregion
6
710
  //#region src/products/schemas.d.ts
7
711
  declare const productStatusSchema: z.ZodEnum<{
8
712
  draft: "draft";
@@ -17,7 +721,7 @@ declare const modifierStatusSchema: z.ZodEnum<{
17
721
  }>;
18
722
  declare const productMediaSchema: z.ZodObject<{
19
723
  id: z.ZodUUID;
20
- url: z.ZodString;
724
+ objectKey: z.ZodNullable<z.ZodString>;
21
725
  optionValueId: z.ZodNullable<z.ZodUUID>;
22
726
  type: z.ZodString;
23
727
  sortOrder: z.ZodNumber;
@@ -113,7 +817,7 @@ declare const productListItemSchema: z.ZodObject<{
113
817
  }>;
114
818
  media: z.ZodArray<z.ZodObject<{
115
819
  id: z.ZodUUID;
116
- url: z.ZodString;
820
+ objectKey: z.ZodNullable<z.ZodString>;
117
821
  optionValueId: z.ZodNullable<z.ZodUUID>;
118
822
  type: z.ZodString;
119
823
  sortOrder: z.ZodNumber;
@@ -148,7 +852,7 @@ declare const productDetailsSchema: z.ZodObject<{
148
852
  }>;
149
853
  media: z.ZodArray<z.ZodObject<{
150
854
  id: z.ZodUUID;
151
- url: z.ZodString;
855
+ objectKey: z.ZodNullable<z.ZodString>;
152
856
  optionValueId: z.ZodNullable<z.ZodUUID>;
153
857
  type: z.ZodString;
154
858
  sortOrder: z.ZodNumber;
@@ -201,8 +905,615 @@ type ProductVariantWithModifiers = z.infer<typeof productVariantWithModifiersSch
201
905
  type ProductListItem = z.infer<typeof productListItemSchema>;
202
906
  type ProductDetails = z.infer<typeof productDetailsSchema>;
203
907
  //#endregion
908
+ //#region src/store/schemas.d.ts
909
+ declare const storeAvailabilityStatusSchema: z.ZodEnum<{
910
+ open: "open";
911
+ closed: "closed";
912
+ }>;
913
+ declare const storeAvailabilityReasonSchema: z.ZodEnum<{
914
+ open: "open";
915
+ paused: "paused";
916
+ outside_hours: "outside_hours";
917
+ not_configured: "not_configured";
918
+ }>;
919
+ declare const storeFulfillmentTypeSchema: z.ZodEnum<{
920
+ delivery: "delivery";
921
+ pickup: "pickup";
922
+ }>;
923
+ declare const storePaymentProviderSchema: z.ZodEnum<{
924
+ cod: "cod";
925
+ }>;
926
+ declare const storeTimingIntervalSchema: z.ZodObject<{
927
+ dayOfWeek: z.ZodNumber;
928
+ opensAtMinute: z.ZodNumber;
929
+ closesAtMinute: z.ZodNumber;
930
+ sortOrder: z.ZodNumber;
931
+ }, z.core.$strip>;
932
+ declare const storeAvailabilitySchema: z.ZodObject<{
933
+ status: z.ZodEnum<{
934
+ open: "open";
935
+ closed: "closed";
936
+ }>;
937
+ reason: z.ZodEnum<{
938
+ open: "open";
939
+ paused: "paused";
940
+ outside_hours: "outside_hours";
941
+ not_configured: "not_configured";
942
+ }>;
943
+ timeZone: z.ZodString;
944
+ serverTime: z.ZodString;
945
+ pause: z.ZodObject<{
946
+ onlineOrderingPaused: z.ZodBoolean;
947
+ pausedUntil: z.ZodNullable<z.ZodString>;
948
+ }, z.core.$strip>;
949
+ weeklySchedule: z.ZodArray<z.ZodObject<{
950
+ dayOfWeek: z.ZodNumber;
951
+ opensAtMinute: z.ZodNumber;
952
+ closesAtMinute: z.ZodNumber;
953
+ sortOrder: z.ZodNumber;
954
+ }, z.core.$strip>>;
955
+ }, z.core.$strip>;
956
+ declare const storeFulfillmentConfigSchema: z.ZodObject<{
957
+ fulfillmentType: z.ZodEnum<{
958
+ delivery: "delivery";
959
+ pickup: "pickup";
960
+ }>;
961
+ enabled: z.ZodBoolean;
962
+ }, z.core.$strip>;
963
+ declare const storeDeliveryConfigSchema: z.ZodObject<{
964
+ fee: z.ZodString;
965
+ }, z.core.$strip>;
966
+ declare const storePickupConfigSchema: z.ZodObject<{
967
+ instructions: z.ZodNullable<z.ZodString>;
968
+ }, z.core.$strip>;
969
+ declare const storeFulfillmentSettingsSchema: z.ZodObject<{
970
+ fulfillments: z.ZodObject<{
971
+ delivery: z.ZodNullable<z.ZodObject<{
972
+ fulfillmentType: z.ZodEnum<{
973
+ delivery: "delivery";
974
+ pickup: "pickup";
975
+ }>;
976
+ enabled: z.ZodBoolean;
977
+ }, z.core.$strip>>;
978
+ pickup: z.ZodNullable<z.ZodObject<{
979
+ fulfillmentType: z.ZodEnum<{
980
+ delivery: "delivery";
981
+ pickup: "pickup";
982
+ }>;
983
+ enabled: z.ZodBoolean;
984
+ }, z.core.$strip>>;
985
+ }, z.core.$strip>;
986
+ enabledFulfillmentTypes: z.ZodArray<z.ZodEnum<{
987
+ delivery: "delivery";
988
+ pickup: "pickup";
989
+ }>>;
990
+ deliveryConfig: z.ZodNullable<z.ZodObject<{
991
+ fee: z.ZodString;
992
+ }, z.core.$strip>>;
993
+ pickupConfig: z.ZodNullable<z.ZodObject<{
994
+ instructions: z.ZodNullable<z.ZodString>;
995
+ }, z.core.$strip>>;
996
+ }, z.core.$strip>;
997
+ declare const storePaymentMethodFulfillmentConfigSchema: z.ZodObject<{
998
+ fulfillmentType: z.ZodEnum<{
999
+ delivery: "delivery";
1000
+ pickup: "pickup";
1001
+ }>;
1002
+ enabled: z.ZodBoolean;
1003
+ }, z.core.$strip>;
1004
+ declare const storePaymentMethodSchema: z.ZodObject<{
1005
+ id: z.ZodUUID;
1006
+ provider: z.ZodEnum<{
1007
+ cod: "cod";
1008
+ }>;
1009
+ displayName: z.ZodString;
1010
+ instructions: z.ZodNullable<z.ZodString>;
1011
+ supportedFulfillmentTypes: z.ZodArray<z.ZodEnum<{
1012
+ delivery: "delivery";
1013
+ pickup: "pickup";
1014
+ }>>;
1015
+ enabledFulfillmentTypes: z.ZodArray<z.ZodEnum<{
1016
+ delivery: "delivery";
1017
+ pickup: "pickup";
1018
+ }>>;
1019
+ fulfillments: z.ZodObject<{
1020
+ delivery: z.ZodNullable<z.ZodObject<{
1021
+ fulfillmentType: z.ZodEnum<{
1022
+ delivery: "delivery";
1023
+ pickup: "pickup";
1024
+ }>;
1025
+ enabled: z.ZodBoolean;
1026
+ }, z.core.$strip>>;
1027
+ pickup: z.ZodNullable<z.ZodObject<{
1028
+ fulfillmentType: z.ZodEnum<{
1029
+ delivery: "delivery";
1030
+ pickup: "pickup";
1031
+ }>;
1032
+ enabled: z.ZodBoolean;
1033
+ }, z.core.$strip>>;
1034
+ }, z.core.$strip>;
1035
+ }, z.core.$strip>;
1036
+ type StoreAvailabilityStatus = z.infer<typeof storeAvailabilityStatusSchema>;
1037
+ type StoreAvailabilityReason = z.infer<typeof storeAvailabilityReasonSchema>;
1038
+ type StoreFulfillmentType = z.infer<typeof storeFulfillmentTypeSchema>;
1039
+ type StorePaymentProvider = z.infer<typeof storePaymentProviderSchema>;
1040
+ type StoreTimingInterval = z.infer<typeof storeTimingIntervalSchema>;
1041
+ type StoreAvailability = z.infer<typeof storeAvailabilitySchema>;
1042
+ type StoreFulfillmentConfig = z.infer<typeof storeFulfillmentConfigSchema>;
1043
+ type StoreDeliveryConfig = z.infer<typeof storeDeliveryConfigSchema>;
1044
+ type StorePickupConfig = z.infer<typeof storePickupConfigSchema>;
1045
+ type StoreFulfillmentSettings = z.infer<typeof storeFulfillmentSettingsSchema>;
1046
+ type StorePaymentMethodFulfillmentConfig = z.infer<typeof storePaymentMethodFulfillmentConfigSchema>;
1047
+ type StorePaymentMethod = z.infer<typeof storePaymentMethodSchema>;
1048
+ //#endregion
204
1049
  //#region src/index.d.ts
205
1050
  declare const contract: {
1051
+ customers: {
1052
+ otp: {
1053
+ request: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1054
+ email: z.ZodEmail;
1055
+ }, _$zod_v4_core0.$strip>, z.ZodObject<{
1056
+ ok: z.ZodLiteral<true>;
1057
+ }, _$zod_v4_core0.$strip>, Record<never, never>, Record<never, never>>;
1058
+ verify: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1059
+ email: z.ZodEmail;
1060
+ otp: z.ZodString;
1061
+ }, _$zod_v4_core0.$strip>, z.ZodObject<{
1062
+ token: z.ZodString;
1063
+ expiresAt: z.ZodString;
1064
+ customer: z.ZodObject<{
1065
+ id: z.ZodString;
1066
+ email: z.ZodEmail;
1067
+ name: z.ZodString;
1068
+ emailVerified: z.ZodBoolean;
1069
+ image: z.ZodNullable<z.ZodString>;
1070
+ createdAt: z.ZodString;
1071
+ updatedAt: z.ZodString;
1072
+ }, _$zod_v4_core0.$strip>;
1073
+ }, _$zod_v4_core0.$strip>, Record<never, never>, Record<never, never>>;
1074
+ };
1075
+ logout: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>, z.ZodObject<{
1076
+ ok: z.ZodLiteral<true>;
1077
+ }, _$zod_v4_core0.$strip>, Record<never, never>, Record<never, never>>;
1078
+ me: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>, z.ZodObject<{
1079
+ id: z.ZodString;
1080
+ email: z.ZodEmail;
1081
+ name: z.ZodString;
1082
+ emailVerified: z.ZodBoolean;
1083
+ image: z.ZodNullable<z.ZodString>;
1084
+ createdAt: z.ZodString;
1085
+ updatedAt: z.ZodString;
1086
+ }, _$zod_v4_core0.$strip>, Record<never, never>, Record<never, never>>;
1087
+ addresses: {
1088
+ list: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>, z.ZodArray<z.ZodObject<{
1089
+ id: z.ZodUUID;
1090
+ label: z.ZodNullable<z.ZodString>;
1091
+ recipientName: z.ZodString;
1092
+ phone: z.ZodString;
1093
+ line1: z.ZodString;
1094
+ line2: z.ZodNullable<z.ZodString>;
1095
+ city: z.ZodString;
1096
+ state: z.ZodString;
1097
+ postalCode: z.ZodString;
1098
+ country: z.ZodString;
1099
+ lat: z.ZodNullable<z.ZodString>;
1100
+ lng: z.ZodNullable<z.ZodString>;
1101
+ notes: z.ZodNullable<z.ZodString>;
1102
+ isDefault: z.ZodBoolean;
1103
+ createdAt: z.ZodString;
1104
+ updatedAt: z.ZodString;
1105
+ }, _$zod_v4_core0.$strip>>, Record<never, never>, Record<never, never>>;
1106
+ get: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1107
+ id: z.ZodUUID;
1108
+ }, _$zod_v4_core0.$strip>, z.ZodObject<{
1109
+ id: z.ZodUUID;
1110
+ label: z.ZodNullable<z.ZodString>;
1111
+ recipientName: z.ZodString;
1112
+ phone: z.ZodString;
1113
+ line1: z.ZodString;
1114
+ line2: z.ZodNullable<z.ZodString>;
1115
+ city: z.ZodString;
1116
+ state: z.ZodString;
1117
+ postalCode: z.ZodString;
1118
+ country: z.ZodString;
1119
+ lat: z.ZodNullable<z.ZodString>;
1120
+ lng: z.ZodNullable<z.ZodString>;
1121
+ notes: z.ZodNullable<z.ZodString>;
1122
+ isDefault: z.ZodBoolean;
1123
+ createdAt: z.ZodString;
1124
+ updatedAt: z.ZodString;
1125
+ }, _$zod_v4_core0.$strip>, Record<never, never>, Record<never, never>>;
1126
+ create: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1127
+ label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1128
+ recipientName: z.ZodString;
1129
+ phone: z.ZodString;
1130
+ line1: z.ZodString;
1131
+ line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1132
+ city: z.ZodString;
1133
+ state: z.ZodString;
1134
+ postalCode: z.ZodString;
1135
+ country: z.ZodString;
1136
+ lat: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodUnion<readonly [z.ZodPipe<z.ZodLiteral<"">, z.ZodTransform<undefined, "">>, z.ZodPipe<z.ZodCoercedNumber<string>, z.ZodTransform<string, number>>]>>>>;
1137
+ lng: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodUnion<readonly [z.ZodPipe<z.ZodLiteral<"">, z.ZodTransform<undefined, "">>, z.ZodPipe<z.ZodCoercedNumber<string>, z.ZodTransform<string, number>>]>>>>;
1138
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1139
+ isDefault: z.ZodOptional<z.ZodBoolean>;
1140
+ }, _$zod_v4_core0.$strip>, z.ZodObject<{
1141
+ id: z.ZodUUID;
1142
+ label: z.ZodNullable<z.ZodString>;
1143
+ recipientName: z.ZodString;
1144
+ phone: z.ZodString;
1145
+ line1: z.ZodString;
1146
+ line2: z.ZodNullable<z.ZodString>;
1147
+ city: z.ZodString;
1148
+ state: z.ZodString;
1149
+ postalCode: z.ZodString;
1150
+ country: z.ZodString;
1151
+ lat: z.ZodNullable<z.ZodString>;
1152
+ lng: z.ZodNullable<z.ZodString>;
1153
+ notes: z.ZodNullable<z.ZodString>;
1154
+ isDefault: z.ZodBoolean;
1155
+ createdAt: z.ZodString;
1156
+ updatedAt: z.ZodString;
1157
+ }, _$zod_v4_core0.$strip>, Record<never, never>, Record<never, never>>;
1158
+ update: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1159
+ id: z.ZodUUID;
1160
+ data: z.ZodObject<{
1161
+ label: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1162
+ recipientName: z.ZodOptional<z.ZodString>;
1163
+ phone: z.ZodOptional<z.ZodString>;
1164
+ line1: z.ZodOptional<z.ZodString>;
1165
+ line2: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1166
+ city: z.ZodOptional<z.ZodString>;
1167
+ state: z.ZodOptional<z.ZodString>;
1168
+ postalCode: z.ZodOptional<z.ZodString>;
1169
+ country: z.ZodOptional<z.ZodString>;
1170
+ lat: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodUnion<readonly [z.ZodPipe<z.ZodLiteral<"">, z.ZodTransform<undefined, "">>, z.ZodPipe<z.ZodCoercedNumber<string>, z.ZodTransform<string, number>>]>>>>>;
1171
+ lng: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodUnion<readonly [z.ZodPipe<z.ZodLiteral<"">, z.ZodTransform<undefined, "">>, z.ZodPipe<z.ZodCoercedNumber<string>, z.ZodTransform<string, number>>]>>>>>;
1172
+ notes: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1173
+ isDefault: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1174
+ }, _$zod_v4_core0.$strip>;
1175
+ }, _$zod_v4_core0.$strip>, z.ZodObject<{
1176
+ id: z.ZodUUID;
1177
+ label: z.ZodNullable<z.ZodString>;
1178
+ recipientName: z.ZodString;
1179
+ phone: z.ZodString;
1180
+ line1: z.ZodString;
1181
+ line2: z.ZodNullable<z.ZodString>;
1182
+ city: z.ZodString;
1183
+ state: z.ZodString;
1184
+ postalCode: z.ZodString;
1185
+ country: z.ZodString;
1186
+ lat: z.ZodNullable<z.ZodString>;
1187
+ lng: z.ZodNullable<z.ZodString>;
1188
+ notes: z.ZodNullable<z.ZodString>;
1189
+ isDefault: z.ZodBoolean;
1190
+ createdAt: z.ZodString;
1191
+ updatedAt: z.ZodString;
1192
+ }, _$zod_v4_core0.$strip>, Record<never, never>, Record<never, never>>;
1193
+ delete: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1194
+ id: z.ZodUUID;
1195
+ }, _$zod_v4_core0.$strip>, z.ZodObject<{
1196
+ ok: z.ZodLiteral<true>;
1197
+ }, _$zod_v4_core0.$strip>, Record<never, never>, Record<never, never>>;
1198
+ setDefault: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1199
+ id: z.ZodUUID;
1200
+ }, _$zod_v4_core0.$strip>, z.ZodObject<{
1201
+ id: z.ZodUUID;
1202
+ label: z.ZodNullable<z.ZodString>;
1203
+ recipientName: z.ZodString;
1204
+ phone: z.ZodString;
1205
+ line1: z.ZodString;
1206
+ line2: z.ZodNullable<z.ZodString>;
1207
+ city: z.ZodString;
1208
+ state: z.ZodString;
1209
+ postalCode: z.ZodString;
1210
+ country: z.ZodString;
1211
+ lat: z.ZodNullable<z.ZodString>;
1212
+ lng: z.ZodNullable<z.ZodString>;
1213
+ notes: z.ZodNullable<z.ZodString>;
1214
+ isDefault: z.ZodBoolean;
1215
+ createdAt: z.ZodString;
1216
+ updatedAt: z.ZodString;
1217
+ }, _$zod_v4_core0.$strip>, Record<never, never>, Record<never, never>>;
1218
+ };
1219
+ };
1220
+ orders: {
1221
+ create: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodDiscriminatedUnion<[z.ZodObject<{
1222
+ items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1223
+ kind: z.ZodLiteral<"variant">;
1224
+ variantId: z.ZodUUID;
1225
+ quantity: z.ZodNumber;
1226
+ modifiers: z.ZodDefault<z.ZodArray<z.ZodObject<{
1227
+ modifierId: z.ZodUUID;
1228
+ quantity: z.ZodDefault<z.ZodNumber>;
1229
+ }, _$zod_v4_core0.$strip>>>;
1230
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1231
+ }, _$zod_v4_core0.$strip>, z.ZodObject<{
1232
+ kind: z.ZodLiteral<"deal">;
1233
+ dealId: z.ZodUUID;
1234
+ quantity: z.ZodNumber;
1235
+ choices: z.ZodDefault<z.ZodArray<z.ZodObject<{
1236
+ dealChoiceGroupId: z.ZodUUID;
1237
+ variantId: z.ZodUUID;
1238
+ quantity: z.ZodDefault<z.ZodNumber>;
1239
+ }, _$zod_v4_core0.$strip>>>;
1240
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1241
+ }, _$zod_v4_core0.$strip>], "kind">>;
1242
+ paymentMethodId: z.ZodUUID;
1243
+ contactPhone: z.ZodString;
1244
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1245
+ fulfillmentType: z.ZodLiteral<"delivery">;
1246
+ delivery: z.ZodObject<{
1247
+ customerAddressId: z.ZodUUID;
1248
+ deliveryNotes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1249
+ }, _$zod_v4_core0.$strip>;
1250
+ }, _$zod_v4_core0.$strip>, z.ZodObject<{
1251
+ items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1252
+ kind: z.ZodLiteral<"variant">;
1253
+ variantId: z.ZodUUID;
1254
+ quantity: z.ZodNumber;
1255
+ modifiers: z.ZodDefault<z.ZodArray<z.ZodObject<{
1256
+ modifierId: z.ZodUUID;
1257
+ quantity: z.ZodDefault<z.ZodNumber>;
1258
+ }, _$zod_v4_core0.$strip>>>;
1259
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1260
+ }, _$zod_v4_core0.$strip>, z.ZodObject<{
1261
+ kind: z.ZodLiteral<"deal">;
1262
+ dealId: z.ZodUUID;
1263
+ quantity: z.ZodNumber;
1264
+ choices: z.ZodDefault<z.ZodArray<z.ZodObject<{
1265
+ dealChoiceGroupId: z.ZodUUID;
1266
+ variantId: z.ZodUUID;
1267
+ quantity: z.ZodDefault<z.ZodNumber>;
1268
+ }, _$zod_v4_core0.$strip>>>;
1269
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1270
+ }, _$zod_v4_core0.$strip>], "kind">>;
1271
+ paymentMethodId: z.ZodUUID;
1272
+ contactPhone: z.ZodString;
1273
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1274
+ fulfillmentType: z.ZodLiteral<"pickup">;
1275
+ }, _$zod_v4_core0.$strip>], "fulfillmentType">, z.ZodObject<{
1276
+ order: z.ZodObject<{
1277
+ id: z.ZodUUID;
1278
+ organizationId: z.ZodString;
1279
+ customerId: z.ZodNullable<z.ZodString>;
1280
+ orderNumber: z.ZodString;
1281
+ channel: z.ZodEnum<{
1282
+ storefront: "storefront";
1283
+ pos: "pos";
1284
+ api: "api";
1285
+ }>;
1286
+ fulfillmentType: z.ZodEnum<{
1287
+ delivery: "delivery";
1288
+ pickup: "pickup";
1289
+ }>;
1290
+ status: z.ZodEnum<{
1291
+ pending: "pending";
1292
+ confirmed: "confirmed";
1293
+ preparing: "preparing";
1294
+ out_for_delivery: "out_for_delivery";
1295
+ completed: "completed";
1296
+ cancelled: "cancelled";
1297
+ }>;
1298
+ paymentStatus: z.ZodEnum<{
1299
+ pending: "pending";
1300
+ paid: "paid";
1301
+ refunded: "refunded";
1302
+ failed: "failed";
1303
+ }>;
1304
+ paymentMethodId: z.ZodNullable<z.ZodUUID>;
1305
+ paymentProvider: z.ZodEnum<{
1306
+ cod: "cod";
1307
+ }>;
1308
+ subtotal: z.ZodString;
1309
+ deliveryFee: z.ZodString;
1310
+ grandTotal: z.ZodString;
1311
+ currency: z.ZodString;
1312
+ contactName: z.ZodString;
1313
+ contactPhone: z.ZodString;
1314
+ contactEmail: z.ZodNullable<z.ZodString>;
1315
+ notes: z.ZodNullable<z.ZodString>;
1316
+ placedAt: z.ZodDate;
1317
+ confirmedAt: z.ZodNullable<z.ZodDate>;
1318
+ completedAt: z.ZodNullable<z.ZodDate>;
1319
+ cancelledAt: z.ZodNullable<z.ZodDate>;
1320
+ createdAt: z.ZodDate;
1321
+ updatedAt: z.ZodDate;
1322
+ }, _$zod_v4_core0.$strip>;
1323
+ delivery: z.ZodNullable<z.ZodObject<{
1324
+ customerAddressId: z.ZodNullable<z.ZodUUID>;
1325
+ recipientName: z.ZodString;
1326
+ phone: z.ZodString;
1327
+ line1: z.ZodString;
1328
+ line2: z.ZodNullable<z.ZodString>;
1329
+ city: z.ZodString;
1330
+ state: z.ZodString;
1331
+ postalCode: z.ZodString;
1332
+ country: z.ZodString;
1333
+ lat: z.ZodNullable<z.ZodString>;
1334
+ lng: z.ZodNullable<z.ZodString>;
1335
+ deliveryNotes: z.ZodNullable<z.ZodString>;
1336
+ }, _$zod_v4_core0.$strip>>;
1337
+ items: z.ZodArray<z.ZodObject<{
1338
+ id: z.ZodUUID;
1339
+ orderId: z.ZodUUID;
1340
+ organizationId: z.ZodString;
1341
+ kind: z.ZodEnum<{
1342
+ variant: "variant";
1343
+ deal: "deal";
1344
+ }>;
1345
+ variantId: z.ZodNullable<z.ZodUUID>;
1346
+ dealId: z.ZodNullable<z.ZodUUID>;
1347
+ productName: z.ZodNullable<z.ZodString>;
1348
+ variantName: z.ZodNullable<z.ZodString>;
1349
+ dealName: z.ZodNullable<z.ZodString>;
1350
+ sku: z.ZodNullable<z.ZodString>;
1351
+ imageUrl: z.ZodNullable<z.ZodString>;
1352
+ unitPrice: z.ZodString;
1353
+ quantity: z.ZodNumber;
1354
+ modifiersTotal: z.ZodString;
1355
+ lineSubtotal: z.ZodString;
1356
+ notes: z.ZodNullable<z.ZodString>;
1357
+ sortOrder: z.ZodNumber;
1358
+ createdAt: z.ZodDate;
1359
+ }, _$zod_v4_core0.$strip>>;
1360
+ dealParts: z.ZodArray<z.ZodObject<{
1361
+ id: z.ZodUUID;
1362
+ orderItemId: z.ZodUUID;
1363
+ kind: z.ZodEnum<{
1364
+ included: "included";
1365
+ chosen: "chosen";
1366
+ }>;
1367
+ dealIncludedItemId: z.ZodNullable<z.ZodUUID>;
1368
+ dealChoiceGroupId: z.ZodNullable<z.ZodUUID>;
1369
+ variantId: z.ZodNullable<z.ZodUUID>;
1370
+ groupName: z.ZodNullable<z.ZodString>;
1371
+ variantName: z.ZodString;
1372
+ priceDelta: z.ZodString;
1373
+ quantity: z.ZodNumber;
1374
+ sortOrder: z.ZodNumber;
1375
+ createdAt: z.ZodDate;
1376
+ }, _$zod_v4_core0.$strip>>;
1377
+ }, _$zod_v4_core0.$strip>, Record<never, never>, Record<never, never>>;
1378
+ list: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodOptional<z.ZodObject<{
1379
+ page: z.ZodDefault<z.ZodNumber>;
1380
+ pageSize: z.ZodDefault<z.ZodNumber>;
1381
+ }, _$zod_v4_core0.$strip>>, z.ZodObject<{
1382
+ items: z.ZodArray<z.ZodObject<{
1383
+ id: z.ZodUUID;
1384
+ orderNumber: z.ZodString;
1385
+ status: z.ZodEnum<{
1386
+ pending: "pending";
1387
+ confirmed: "confirmed";
1388
+ preparing: "preparing";
1389
+ out_for_delivery: "out_for_delivery";
1390
+ completed: "completed";
1391
+ cancelled: "cancelled";
1392
+ }>;
1393
+ paymentStatus: z.ZodEnum<{
1394
+ pending: "pending";
1395
+ paid: "paid";
1396
+ refunded: "refunded";
1397
+ failed: "failed";
1398
+ }>;
1399
+ fulfillmentType: z.ZodEnum<{
1400
+ delivery: "delivery";
1401
+ pickup: "pickup";
1402
+ }>;
1403
+ subtotal: z.ZodString;
1404
+ deliveryFee: z.ZodString;
1405
+ grandTotal: z.ZodString;
1406
+ currency: z.ZodString;
1407
+ placedAt: z.ZodString;
1408
+ createdAt: z.ZodString;
1409
+ }, _$zod_v4_core0.$strip>>;
1410
+ page: z.ZodNumber;
1411
+ pageSize: z.ZodNumber;
1412
+ hasNextPage: z.ZodBoolean;
1413
+ }, _$zod_v4_core0.$strip>, Record<never, never>, Record<never, never>>;
1414
+ get: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1415
+ id: z.ZodUUID;
1416
+ }, _$zod_v4_core0.$strip>, z.ZodObject<{
1417
+ id: z.ZodUUID;
1418
+ orderNumber: z.ZodString;
1419
+ status: z.ZodEnum<{
1420
+ pending: "pending";
1421
+ confirmed: "confirmed";
1422
+ preparing: "preparing";
1423
+ out_for_delivery: "out_for_delivery";
1424
+ completed: "completed";
1425
+ cancelled: "cancelled";
1426
+ }>;
1427
+ paymentStatus: z.ZodEnum<{
1428
+ pending: "pending";
1429
+ paid: "paid";
1430
+ refunded: "refunded";
1431
+ failed: "failed";
1432
+ }>;
1433
+ fulfillmentType: z.ZodEnum<{
1434
+ delivery: "delivery";
1435
+ pickup: "pickup";
1436
+ }>;
1437
+ subtotal: z.ZodString;
1438
+ deliveryFee: z.ZodString;
1439
+ grandTotal: z.ZodString;
1440
+ currency: z.ZodString;
1441
+ placedAt: z.ZodString;
1442
+ createdAt: z.ZodString;
1443
+ channel: z.ZodEnum<{
1444
+ storefront: "storefront";
1445
+ pos: "pos";
1446
+ api: "api";
1447
+ }>;
1448
+ paymentProvider: z.ZodEnum<{
1449
+ cod: "cod";
1450
+ }>;
1451
+ paymentMethodId: z.ZodNullable<z.ZodUUID>;
1452
+ contactName: z.ZodString;
1453
+ contactPhone: z.ZodString;
1454
+ contactEmail: z.ZodNullable<z.ZodString>;
1455
+ notes: z.ZodNullable<z.ZodString>;
1456
+ confirmedAt: z.ZodNullable<z.ZodString>;
1457
+ completedAt: z.ZodNullable<z.ZodString>;
1458
+ cancelledAt: z.ZodNullable<z.ZodString>;
1459
+ delivery: z.ZodNullable<z.ZodObject<{
1460
+ customerAddressId: z.ZodNullable<z.ZodUUID>;
1461
+ recipientName: z.ZodString;
1462
+ phone: z.ZodString;
1463
+ line1: z.ZodString;
1464
+ line2: z.ZodNullable<z.ZodString>;
1465
+ city: z.ZodString;
1466
+ state: z.ZodString;
1467
+ postalCode: z.ZodString;
1468
+ country: z.ZodString;
1469
+ lat: z.ZodNullable<z.ZodString>;
1470
+ lng: z.ZodNullable<z.ZodString>;
1471
+ deliveryNotes: z.ZodNullable<z.ZodString>;
1472
+ }, _$zod_v4_core0.$strip>>;
1473
+ items: z.ZodArray<z.ZodObject<{
1474
+ id: z.ZodUUID;
1475
+ kind: z.ZodEnum<{
1476
+ variant: "variant";
1477
+ deal: "deal";
1478
+ }>;
1479
+ variantId: z.ZodNullable<z.ZodUUID>;
1480
+ dealId: z.ZodNullable<z.ZodUUID>;
1481
+ productName: z.ZodNullable<z.ZodString>;
1482
+ variantName: z.ZodNullable<z.ZodString>;
1483
+ dealName: z.ZodNullable<z.ZodString>;
1484
+ sku: z.ZodNullable<z.ZodString>;
1485
+ imageUrl: z.ZodNullable<z.ZodString>;
1486
+ unitPrice: z.ZodString;
1487
+ quantity: z.ZodNumber;
1488
+ modifiersTotal: z.ZodString;
1489
+ lineSubtotal: z.ZodString;
1490
+ notes: z.ZodNullable<z.ZodString>;
1491
+ modifiers: z.ZodArray<z.ZodObject<{
1492
+ id: z.ZodUUID;
1493
+ modifierId: z.ZodNullable<z.ZodUUID>;
1494
+ modifierGroupId: z.ZodNullable<z.ZodUUID>;
1495
+ groupName: z.ZodString;
1496
+ modifierName: z.ZodString;
1497
+ priceDelta: z.ZodString;
1498
+ quantity: z.ZodNumber;
1499
+ }, _$zod_v4_core0.$strip>>;
1500
+ dealParts: z.ZodArray<z.ZodObject<{
1501
+ id: z.ZodUUID;
1502
+ kind: z.ZodEnum<{
1503
+ included: "included";
1504
+ chosen: "chosen";
1505
+ }>;
1506
+ dealIncludedItemId: z.ZodNullable<z.ZodUUID>;
1507
+ dealChoiceGroupId: z.ZodNullable<z.ZodUUID>;
1508
+ variantId: z.ZodNullable<z.ZodUUID>;
1509
+ groupName: z.ZodNullable<z.ZodString>;
1510
+ variantName: z.ZodString;
1511
+ priceDelta: z.ZodString;
1512
+ quantity: z.ZodNumber;
1513
+ }, _$zod_v4_core0.$strip>>;
1514
+ }, _$zod_v4_core0.$strip>>;
1515
+ }, _$zod_v4_core0.$strip>, Record<never, never>, Record<never, never>>;
1516
+ };
206
1517
  products: {
207
1518
  list: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>, z.ZodArray<z.ZodObject<{
208
1519
  id: z.ZodUUID;
@@ -217,7 +1528,7 @@ declare const contract: {
217
1528
  }>;
218
1529
  media: z.ZodArray<z.ZodObject<{
219
1530
  id: z.ZodUUID;
220
- url: z.ZodString;
1531
+ objectKey: z.ZodNullable<z.ZodString>;
221
1532
  optionValueId: z.ZodNullable<z.ZodUUID>;
222
1533
  type: z.ZodString;
223
1534
  sortOrder: z.ZodNumber;
@@ -254,7 +1565,7 @@ declare const contract: {
254
1565
  }>;
255
1566
  media: z.ZodArray<z.ZodObject<{
256
1567
  id: z.ZodUUID;
257
- url: z.ZodString;
1568
+ objectKey: z.ZodNullable<z.ZodString>;
258
1569
  optionValueId: z.ZodNullable<z.ZodUUID>;
259
1570
  type: z.ZodString;
260
1571
  sortOrder: z.ZodNumber;
@@ -296,6 +1607,97 @@ declare const contract: {
296
1607
  }, _$zod_v4_core0.$strip>>;
297
1608
  }, _$zod_v4_core0.$strip>>, Record<never, never>, Record<never, never>>;
298
1609
  };
1610
+ store: {
1611
+ getAvailability: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>, z.ZodObject<{
1612
+ status: z.ZodEnum<{
1613
+ open: "open";
1614
+ closed: "closed";
1615
+ }>;
1616
+ reason: z.ZodEnum<{
1617
+ open: "open";
1618
+ paused: "paused";
1619
+ outside_hours: "outside_hours";
1620
+ not_configured: "not_configured";
1621
+ }>;
1622
+ timeZone: z.ZodString;
1623
+ serverTime: z.ZodString;
1624
+ pause: z.ZodObject<{
1625
+ onlineOrderingPaused: z.ZodBoolean;
1626
+ pausedUntil: z.ZodNullable<z.ZodString>;
1627
+ }, _$zod_v4_core0.$strip>;
1628
+ weeklySchedule: z.ZodArray<z.ZodObject<{
1629
+ dayOfWeek: z.ZodNumber;
1630
+ opensAtMinute: z.ZodNumber;
1631
+ closesAtMinute: z.ZodNumber;
1632
+ sortOrder: z.ZodNumber;
1633
+ }, _$zod_v4_core0.$strip>>;
1634
+ }, _$zod_v4_core0.$strip>, Record<never, never>, Record<never, never>>;
1635
+ getFulfillments: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>, z.ZodObject<{
1636
+ fulfillments: z.ZodObject<{
1637
+ delivery: z.ZodNullable<z.ZodObject<{
1638
+ fulfillmentType: z.ZodEnum<{
1639
+ delivery: "delivery";
1640
+ pickup: "pickup";
1641
+ }>;
1642
+ enabled: z.ZodBoolean;
1643
+ }, _$zod_v4_core0.$strip>>;
1644
+ pickup: z.ZodNullable<z.ZodObject<{
1645
+ fulfillmentType: z.ZodEnum<{
1646
+ delivery: "delivery";
1647
+ pickup: "pickup";
1648
+ }>;
1649
+ enabled: z.ZodBoolean;
1650
+ }, _$zod_v4_core0.$strip>>;
1651
+ }, _$zod_v4_core0.$strip>;
1652
+ enabledFulfillmentTypes: z.ZodArray<z.ZodEnum<{
1653
+ delivery: "delivery";
1654
+ pickup: "pickup";
1655
+ }>>;
1656
+ deliveryConfig: z.ZodNullable<z.ZodObject<{
1657
+ fee: z.ZodString;
1658
+ }, _$zod_v4_core0.$strip>>;
1659
+ pickupConfig: z.ZodNullable<z.ZodObject<{
1660
+ instructions: z.ZodNullable<z.ZodString>;
1661
+ }, _$zod_v4_core0.$strip>>;
1662
+ }, _$zod_v4_core0.$strip>, Record<never, never>, Record<never, never>>;
1663
+ listPaymentMethods: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodOptional<z.ZodObject<{
1664
+ fulfillmentType: z.ZodOptional<z.ZodEnum<{
1665
+ delivery: "delivery";
1666
+ pickup: "pickup";
1667
+ }>>;
1668
+ }, _$zod_v4_core0.$strip>>, z.ZodArray<z.ZodObject<{
1669
+ id: z.ZodUUID;
1670
+ provider: z.ZodEnum<{
1671
+ cod: "cod";
1672
+ }>;
1673
+ displayName: z.ZodString;
1674
+ instructions: z.ZodNullable<z.ZodString>;
1675
+ supportedFulfillmentTypes: z.ZodArray<z.ZodEnum<{
1676
+ delivery: "delivery";
1677
+ pickup: "pickup";
1678
+ }>>;
1679
+ enabledFulfillmentTypes: z.ZodArray<z.ZodEnum<{
1680
+ delivery: "delivery";
1681
+ pickup: "pickup";
1682
+ }>>;
1683
+ fulfillments: z.ZodObject<{
1684
+ delivery: z.ZodNullable<z.ZodObject<{
1685
+ fulfillmentType: z.ZodEnum<{
1686
+ delivery: "delivery";
1687
+ pickup: "pickup";
1688
+ }>;
1689
+ enabled: z.ZodBoolean;
1690
+ }, _$zod_v4_core0.$strip>>;
1691
+ pickup: z.ZodNullable<z.ZodObject<{
1692
+ fulfillmentType: z.ZodEnum<{
1693
+ delivery: "delivery";
1694
+ pickup: "pickup";
1695
+ }>;
1696
+ enabled: z.ZodBoolean;
1697
+ }, _$zod_v4_core0.$strip>>;
1698
+ }, _$zod_v4_core0.$strip>;
1699
+ }, _$zod_v4_core0.$strip>>, Record<never, never>, Record<never, never>>;
1700
+ };
299
1701
  };
300
1702
  type Contract = typeof contract;
301
1703
  type ContractInputs = InferContractRouterInputs<Contract>;
@@ -308,9 +1710,12 @@ type RestaleOptions = {
308
1710
  };
309
1711
  declare function createRestaleClient(apiKey: string, options?: RestaleOptions): RestaleClient;
310
1712
  declare class Restale {
1713
+ readonly customers: RestaleClient["customers"];
1714
+ readonly orders: RestaleClient["orders"];
311
1715
  readonly products: RestaleClient["products"];
1716
+ readonly store: RestaleClient["store"];
312
1717
  constructor(apiKey: string, options?: RestaleOptions);
313
1718
  }
314
1719
  //#endregion
315
- export { Contract, ContractInputs, ContractOutputs, Modifier, ModifierGroup, ModifierStatus, ProductDetails, ProductListItem, ProductMedia, ProductOption, ProductOptionValue, ProductStatus, ProductVariant, ProductVariantWithModifiers, Restale, RestaleClient, RestaleOptions, contract, createRestaleClient, modifierGroupSchema, modifierSchema, modifierStatusSchema, productDetailsSchema, productListItemSchema, productMediaSchema, productOptionSchema, productOptionValueSchema, productStatusSchema, productVariantSchema, productVariantWithModifiersSchema };
1720
+ export { Address, AddressInput, AddressUpdateInput, CartDealItem, CartItem, CartVariantItem, Contract, ContractInputs, ContractOutputs, CreateOrderInput, CreateOrderOutput, Customer, Modifier, ModifierGroup, ModifierStatus, OrderDetail, OrderFulfillmentType, OrderItemOutput, OrderPaymentStatus, OrderStatus, OrderSummary, OtpTokenResponse, ProductDetails, ProductListItem, ProductMedia, ProductOption, ProductOptionValue, ProductStatus, ProductVariant, ProductVariantWithModifiers, Restale, RestaleClient, RestaleOptions, StoreAvailability, StoreAvailabilityReason, StoreAvailabilityStatus, StoreDeliveryConfig, StoreFulfillmentConfig, StoreFulfillmentSettings, StoreFulfillmentType, StorePaymentMethod, StorePaymentMethodFulfillmentConfig, StorePaymentProvider, StorePickupConfig, StoreTimingInterval, addressInputSchema, addressSchema, addressUpdateInputSchema, cartDealChoiceSchema, cartDealItemSchema, cartItemSchema, cartVariantItemSchema, cartVariantModifierSchema, contract, createDeliveryOrderInputSchema, createOrderBaseInputSchema, createOrderInputSchema, createOrderOutputSchema, createPickupOrderInputSchema, createRestaleClient, createdOrderDealPartSchema, createdOrderItemSchema, createdOrderRowSchema, customerSchema, modifierGroupSchema, modifierSchema, modifierStatusSchema, okSchema, orderChannelSchema, orderDeliveryOutputSchema, orderDetailSchema, orderFulfillmentTypeSchema, orderItemDealPartOutputSchema, orderItemModifierOutputSchema, orderItemOutputSchema, orderPaymentProviderSchema, orderPaymentStatusSchema, orderStatusSchema, orderSummarySchema, otpTokenResponseSchema, productDetailsSchema, productListItemSchema, productMediaSchema, productOptionSchema, productOptionValueSchema, productStatusSchema, productVariantSchema, productVariantWithModifiersSchema, storeAvailabilityReasonSchema, storeAvailabilitySchema, storeAvailabilityStatusSchema, storeDeliveryConfigSchema, storeFulfillmentConfigSchema, storeFulfillmentSettingsSchema, storeFulfillmentTypeSchema, storePaymentMethodFulfillmentConfigSchema, storePaymentMethodSchema, storePaymentProviderSchema, storePickupConfigSchema, storeTimingIntervalSchema };
316
1721
  //# sourceMappingURL=index.d.mts.map