restale 0.1.1 → 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 +652 -126
- package/dist/index.mjs +188 -41
- package/dist/index.mjs.map +1 -1
- package/package.json +22 -17
package/dist/index.d.mts
CHANGED
|
@@ -108,7 +108,6 @@ declare const orderChannelSchema: z.ZodEnum<{
|
|
|
108
108
|
declare const orderFulfillmentTypeSchema: z.ZodEnum<{
|
|
109
109
|
delivery: "delivery";
|
|
110
110
|
pickup: "pickup";
|
|
111
|
-
dine_in: "dine_in";
|
|
112
111
|
}>;
|
|
113
112
|
declare const orderPaymentProviderSchema: z.ZodEnum<{
|
|
114
113
|
cod: "cod";
|
|
@@ -163,7 +162,7 @@ declare const cartItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
163
162
|
}, z.core.$strip>>>;
|
|
164
163
|
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
165
164
|
}, z.core.$strip>], "kind">;
|
|
166
|
-
declare const
|
|
165
|
+
declare const createOrderBaseInputSchema: z.ZodObject<{
|
|
167
166
|
items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
168
167
|
kind: z.ZodLiteral<"variant">;
|
|
169
168
|
variantId: z.ZodUUID;
|
|
@@ -185,27 +184,323 @@ declare const createOrderInputSchema: z.ZodObject<{
|
|
|
185
184
|
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
186
185
|
}, z.core.$strip>], "kind">>;
|
|
187
186
|
paymentMethodId: z.ZodUUID;
|
|
188
|
-
saveAddress: z.ZodOptional<z.ZodBoolean>;
|
|
189
|
-
contactName: z.ZodString;
|
|
190
187
|
contactPhone: z.ZodString;
|
|
191
|
-
contactEmail: z.ZodEmail;
|
|
192
188
|
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
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>;
|
|
196
452
|
recipientName: z.ZodString;
|
|
197
453
|
phone: z.ZodString;
|
|
198
454
|
line1: z.ZodString;
|
|
199
|
-
line2: z.
|
|
455
|
+
line2: z.ZodNullable<z.ZodString>;
|
|
200
456
|
city: z.ZodString;
|
|
201
457
|
state: z.ZodString;
|
|
202
458
|
postalCode: z.ZodString;
|
|
203
459
|
country: z.ZodString;
|
|
204
|
-
lat: z.
|
|
205
|
-
lng: z.
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
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>>;
|
|
209
504
|
}, z.core.$strip>;
|
|
210
505
|
declare const orderItemModifierOutputSchema: z.ZodObject<{
|
|
211
506
|
id: z.ZodUUID;
|
|
@@ -272,20 +567,6 @@ declare const orderItemOutputSchema: z.ZodObject<{
|
|
|
272
567
|
quantity: z.ZodNumber;
|
|
273
568
|
}, z.core.$strip>>;
|
|
274
569
|
}, z.core.$strip>;
|
|
275
|
-
declare const orderDeliveryOutputSchema: z.ZodObject<{
|
|
276
|
-
customerAddressId: z.ZodNullable<z.ZodUUID>;
|
|
277
|
-
recipientName: z.ZodString;
|
|
278
|
-
phone: z.ZodString;
|
|
279
|
-
line1: z.ZodString;
|
|
280
|
-
line2: z.ZodNullable<z.ZodString>;
|
|
281
|
-
city: z.ZodString;
|
|
282
|
-
state: z.ZodString;
|
|
283
|
-
postalCode: z.ZodString;
|
|
284
|
-
country: z.ZodString;
|
|
285
|
-
lat: z.ZodNullable<z.ZodString>;
|
|
286
|
-
lng: z.ZodNullable<z.ZodString>;
|
|
287
|
-
deliveryNotes: z.ZodNullable<z.ZodString>;
|
|
288
|
-
}, z.core.$strip>;
|
|
289
570
|
declare const orderSummarySchema: z.ZodObject<{
|
|
290
571
|
id: z.ZodUUID;
|
|
291
572
|
orderNumber: z.ZodString;
|
|
@@ -306,7 +587,6 @@ declare const orderSummarySchema: z.ZodObject<{
|
|
|
306
587
|
fulfillmentType: z.ZodEnum<{
|
|
307
588
|
delivery: "delivery";
|
|
308
589
|
pickup: "pickup";
|
|
309
|
-
dine_in: "dine_in";
|
|
310
590
|
}>;
|
|
311
591
|
subtotal: z.ZodString;
|
|
312
592
|
deliveryFee: z.ZodString;
|
|
@@ -335,7 +615,6 @@ declare const orderDetailSchema: z.ZodObject<{
|
|
|
335
615
|
fulfillmentType: z.ZodEnum<{
|
|
336
616
|
delivery: "delivery";
|
|
337
617
|
pickup: "pickup";
|
|
338
|
-
dine_in: "dine_in";
|
|
339
618
|
}>;
|
|
340
619
|
subtotal: z.ZodString;
|
|
341
620
|
deliveryFee: z.ZodString;
|
|
@@ -423,6 +702,7 @@ type CartVariantItem = z.infer<typeof cartVariantItemSchema>;
|
|
|
423
702
|
type CartDealItem = z.infer<typeof cartDealItemSchema>;
|
|
424
703
|
type CartItem = z.infer<typeof cartItemSchema>;
|
|
425
704
|
type CreateOrderInput = z.infer<typeof createOrderInputSchema>;
|
|
705
|
+
type CreateOrderOutput = z.infer<typeof createOrderOutputSchema>;
|
|
426
706
|
type OrderSummary = z.infer<typeof orderSummarySchema>;
|
|
427
707
|
type OrderDetail = z.infer<typeof orderDetailSchema>;
|
|
428
708
|
type OrderItemOutput = z.infer<typeof orderItemOutputSchema>;
|
|
@@ -441,7 +721,7 @@ declare const modifierStatusSchema: z.ZodEnum<{
|
|
|
441
721
|
}>;
|
|
442
722
|
declare const productMediaSchema: z.ZodObject<{
|
|
443
723
|
id: z.ZodUUID;
|
|
444
|
-
|
|
724
|
+
objectKey: z.ZodNullable<z.ZodString>;
|
|
445
725
|
optionValueId: z.ZodNullable<z.ZodUUID>;
|
|
446
726
|
type: z.ZodString;
|
|
447
727
|
sortOrder: z.ZodNumber;
|
|
@@ -537,7 +817,7 @@ declare const productListItemSchema: z.ZodObject<{
|
|
|
537
817
|
}>;
|
|
538
818
|
media: z.ZodArray<z.ZodObject<{
|
|
539
819
|
id: z.ZodUUID;
|
|
540
|
-
|
|
820
|
+
objectKey: z.ZodNullable<z.ZodString>;
|
|
541
821
|
optionValueId: z.ZodNullable<z.ZodUUID>;
|
|
542
822
|
type: z.ZodString;
|
|
543
823
|
sortOrder: z.ZodNumber;
|
|
@@ -572,7 +852,7 @@ declare const productDetailsSchema: z.ZodObject<{
|
|
|
572
852
|
}>;
|
|
573
853
|
media: z.ZodArray<z.ZodObject<{
|
|
574
854
|
id: z.ZodUUID;
|
|
575
|
-
|
|
855
|
+
objectKey: z.ZodNullable<z.ZodString>;
|
|
576
856
|
optionValueId: z.ZodNullable<z.ZodUUID>;
|
|
577
857
|
type: z.ZodString;
|
|
578
858
|
sortOrder: z.ZodNumber;
|
|
@@ -625,6 +905,147 @@ type ProductVariantWithModifiers = z.infer<typeof productVariantWithModifiersSch
|
|
|
625
905
|
type ProductListItem = z.infer<typeof productListItemSchema>;
|
|
626
906
|
type ProductDetails = z.infer<typeof productDetailsSchema>;
|
|
627
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
|
|
628
1049
|
//#region src/index.d.ts
|
|
629
1050
|
declare const contract: {
|
|
630
1051
|
customers: {
|
|
@@ -797,7 +1218,7 @@ declare const contract: {
|
|
|
797
1218
|
};
|
|
798
1219
|
};
|
|
799
1220
|
orders: {
|
|
800
|
-
create: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1221
|
+
create: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
801
1222
|
items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
802
1223
|
kind: z.ZodLiteral<"variant">;
|
|
803
1224
|
variantId: z.ZodUUID;
|
|
@@ -819,71 +1240,86 @@ declare const contract: {
|
|
|
819
1240
|
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
820
1241
|
}, _$zod_v4_core0.$strip>], "kind">>;
|
|
821
1242
|
paymentMethodId: z.ZodUUID;
|
|
822
|
-
saveAddress: z.ZodOptional<z.ZodBoolean>;
|
|
823
|
-
contactName: z.ZodString;
|
|
824
1243
|
contactPhone: z.ZodString;
|
|
825
|
-
contactEmail: z.ZodEmail;
|
|
826
1244
|
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
line1: z.ZodString;
|
|
833
|
-
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
834
|
-
city: z.ZodString;
|
|
835
|
-
state: z.ZodString;
|
|
836
|
-
postalCode: z.ZodString;
|
|
837
|
-
country: z.ZodString;
|
|
838
|
-
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>>]>>>>;
|
|
839
|
-
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>>]>>>>;
|
|
840
|
-
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
841
|
-
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
842
|
-
}, _$zod_v4_core0.$strip>>>;
|
|
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>;
|
|
843
1250
|
}, _$zod_v4_core0.$strip>, z.ZodObject<{
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
}
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
subtotal: z.ZodString;
|
|
866
|
-
deliveryFee: z.ZodString;
|
|
867
|
-
grandTotal: z.ZodString;
|
|
868
|
-
currency: z.ZodString;
|
|
869
|
-
placedAt: z.ZodString;
|
|
870
|
-
createdAt: z.ZodString;
|
|
871
|
-
channel: z.ZodEnum<{
|
|
872
|
-
storefront: "storefront";
|
|
873
|
-
pos: "pos";
|
|
874
|
-
api: "api";
|
|
875
|
-
}>;
|
|
876
|
-
paymentProvider: z.ZodEnum<{
|
|
877
|
-
cod: "cod";
|
|
878
|
-
}>;
|
|
879
|
-
paymentMethodId: z.ZodNullable<z.ZodUUID>;
|
|
880
|
-
contactName: z.ZodString;
|
|
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;
|
|
881
1272
|
contactPhone: z.ZodString;
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
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>;
|
|
887
1323
|
delivery: z.ZodNullable<z.ZodObject<{
|
|
888
1324
|
customerAddressId: z.ZodNullable<z.ZodUUID>;
|
|
889
1325
|
recipientName: z.ZodString;
|
|
@@ -900,6 +1336,8 @@ declare const contract: {
|
|
|
900
1336
|
}, _$zod_v4_core0.$strip>>;
|
|
901
1337
|
items: z.ZodArray<z.ZodObject<{
|
|
902
1338
|
id: z.ZodUUID;
|
|
1339
|
+
orderId: z.ZodUUID;
|
|
1340
|
+
organizationId: z.ZodString;
|
|
903
1341
|
kind: z.ZodEnum<{
|
|
904
1342
|
variant: "variant";
|
|
905
1343
|
deal: "deal";
|
|
@@ -916,34 +1354,30 @@ declare const contract: {
|
|
|
916
1354
|
modifiersTotal: z.ZodString;
|
|
917
1355
|
lineSubtotal: z.ZodString;
|
|
918
1356
|
notes: z.ZodNullable<z.ZodString>;
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
variantName: z.ZodString;
|
|
939
|
-
priceDelta: z.ZodString;
|
|
940
|
-
quantity: z.ZodNumber;
|
|
941
|
-
}, _$zod_v4_core0.$strip>>;
|
|
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;
|
|
942
1376
|
}, _$zod_v4_core0.$strip>>;
|
|
943
1377
|
}, _$zod_v4_core0.$strip>, Record<never, never>, Record<never, never>>;
|
|
944
1378
|
list: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodOptional<z.ZodObject<{
|
|
945
|
-
|
|
946
|
-
|
|
1379
|
+
page: z.ZodDefault<z.ZodNumber>;
|
|
1380
|
+
pageSize: z.ZodDefault<z.ZodNumber>;
|
|
947
1381
|
}, _$zod_v4_core0.$strip>>, z.ZodObject<{
|
|
948
1382
|
items: z.ZodArray<z.ZodObject<{
|
|
949
1383
|
id: z.ZodUUID;
|
|
@@ -965,7 +1399,6 @@ declare const contract: {
|
|
|
965
1399
|
fulfillmentType: z.ZodEnum<{
|
|
966
1400
|
delivery: "delivery";
|
|
967
1401
|
pickup: "pickup";
|
|
968
|
-
dine_in: "dine_in";
|
|
969
1402
|
}>;
|
|
970
1403
|
subtotal: z.ZodString;
|
|
971
1404
|
deliveryFee: z.ZodString;
|
|
@@ -974,7 +1407,9 @@ declare const contract: {
|
|
|
974
1407
|
placedAt: z.ZodString;
|
|
975
1408
|
createdAt: z.ZodString;
|
|
976
1409
|
}, _$zod_v4_core0.$strip>>;
|
|
977
|
-
|
|
1410
|
+
page: z.ZodNumber;
|
|
1411
|
+
pageSize: z.ZodNumber;
|
|
1412
|
+
hasNextPage: z.ZodBoolean;
|
|
978
1413
|
}, _$zod_v4_core0.$strip>, Record<never, never>, Record<never, never>>;
|
|
979
1414
|
get: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
980
1415
|
id: z.ZodUUID;
|
|
@@ -998,7 +1433,6 @@ declare const contract: {
|
|
|
998
1433
|
fulfillmentType: z.ZodEnum<{
|
|
999
1434
|
delivery: "delivery";
|
|
1000
1435
|
pickup: "pickup";
|
|
1001
|
-
dine_in: "dine_in";
|
|
1002
1436
|
}>;
|
|
1003
1437
|
subtotal: z.ZodString;
|
|
1004
1438
|
deliveryFee: z.ZodString;
|
|
@@ -1094,7 +1528,7 @@ declare const contract: {
|
|
|
1094
1528
|
}>;
|
|
1095
1529
|
media: z.ZodArray<z.ZodObject<{
|
|
1096
1530
|
id: z.ZodUUID;
|
|
1097
|
-
|
|
1531
|
+
objectKey: z.ZodNullable<z.ZodString>;
|
|
1098
1532
|
optionValueId: z.ZodNullable<z.ZodUUID>;
|
|
1099
1533
|
type: z.ZodString;
|
|
1100
1534
|
sortOrder: z.ZodNumber;
|
|
@@ -1131,7 +1565,7 @@ declare const contract: {
|
|
|
1131
1565
|
}>;
|
|
1132
1566
|
media: z.ZodArray<z.ZodObject<{
|
|
1133
1567
|
id: z.ZodUUID;
|
|
1134
|
-
|
|
1568
|
+
objectKey: z.ZodNullable<z.ZodString>;
|
|
1135
1569
|
optionValueId: z.ZodNullable<z.ZodUUID>;
|
|
1136
1570
|
type: z.ZodString;
|
|
1137
1571
|
sortOrder: z.ZodNumber;
|
|
@@ -1173,6 +1607,97 @@ declare const contract: {
|
|
|
1173
1607
|
}, _$zod_v4_core0.$strip>>;
|
|
1174
1608
|
}, _$zod_v4_core0.$strip>>, Record<never, never>, Record<never, never>>;
|
|
1175
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
|
+
};
|
|
1176
1701
|
};
|
|
1177
1702
|
type Contract = typeof contract;
|
|
1178
1703
|
type ContractInputs = InferContractRouterInputs<Contract>;
|
|
@@ -1188,8 +1713,9 @@ declare class Restale {
|
|
|
1188
1713
|
readonly customers: RestaleClient["customers"];
|
|
1189
1714
|
readonly orders: RestaleClient["orders"];
|
|
1190
1715
|
readonly products: RestaleClient["products"];
|
|
1716
|
+
readonly store: RestaleClient["store"];
|
|
1191
1717
|
constructor(apiKey: string, options?: RestaleOptions);
|
|
1192
1718
|
}
|
|
1193
1719
|
//#endregion
|
|
1194
|
-
export { Address, AddressInput, AddressUpdateInput, CartDealItem, CartItem, CartVariantItem, Contract, ContractInputs, ContractOutputs, CreateOrderInput, Customer, Modifier, ModifierGroup, ModifierStatus, OrderDetail, OrderFulfillmentType, OrderItemOutput, OrderPaymentStatus, OrderStatus, OrderSummary, OtpTokenResponse, ProductDetails, ProductListItem, ProductMedia, ProductOption, ProductOptionValue, ProductStatus, ProductVariant, ProductVariantWithModifiers, Restale, RestaleClient, RestaleOptions, addressInputSchema, addressSchema, addressUpdateInputSchema, cartDealChoiceSchema, cartDealItemSchema, cartItemSchema, cartVariantItemSchema, cartVariantModifierSchema, contract, createOrderInputSchema, createRestaleClient, 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 };
|
|
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 };
|
|
1195
1721
|
//# sourceMappingURL=index.d.mts.map
|