@jaicome/contracts 0.0.73 → 0.0.76
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/fulfillment-states.d.mts +43 -3
- package/dist/fulfillment-states.mjs +67 -2
- package/dist/index.d.mts +2673 -317
- package/dist/index.mjs +450 -68
- package/dist/{orders-yFOPRYZw.d.mts → orders-CHXvc7L7.d.mts} +810 -255
- package/dist/payments-Qea5Yb_X.d.mts +387 -0
- package/dist/schema/index.d.mts +1266 -554
- package/dist/schema/index.mjs +2 -2
- package/dist/utils/payment-resolver.d.mts +87 -0
- package/dist/utils/payment-resolver.mjs +118 -0
- package/dist/{schema-0qCwa7QX.mjs → zatca-CEInGWOH.mjs} +761 -274
- package/package.json +9 -3
package/dist/schema/index.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { $ as orderModifierSchema, A as ValidatePromoCodeForOrderResult, B as orderByIdOutputSchema, C as OrderPromocodeInput, D as ScheduleType, E as OrderSummary, F as getOrderByIdInputSchema, G as orderFulfillmentHistorySchema, H as orderCustomerSchema, I as getOrderConfigInputSchema, J as orderFulfillmentStateValues, K as orderFulfillmentOutputSchema, L as listOrdersInputSchema, M as createOrderInputSchema, N as defaultOrderSort, O as UpdateFulfillmentInput, P as fetchOrderByIdOutputSchema, Q as orderLineItemSchema, R as listOrdersOutputSchema, S as OrderOutput, T as OrderSource, U as orderEntitiesSchema, V as orderConfigSchema, W as orderFilterSchema, X as orderGatewayIds, Y as orderFulfillmentTypes, Z as orderLineItemInputSchema, _ as OrderFulfillmentHistory, a as GetOrderByIdInput, at as orderSummarySchema, b as OrderLineItemInput, c as ListOrdersOutput, ct as upsertOrderConfigInputSchema, d as OrderByIdOutput, et as orderOutputSchema, f as OrderConfig, g as OrderFulfillment, h as OrderFilter, i as FulfillmentState, it as orderSourceSchema, j as checkoutResultSchema, k as UpsertOrderConfigInput, l as Order, lt as validatePromoCodeForOrderResultSchema, m as OrderEntities, n as CreateOrderInput, nt as orderPromocodeSummarySchema, o as GetOrderConfigInput, ot as scheduleTypeEnum, p as OrderCustomer, q as orderFulfillmentSchema, r as FetchOrderByIdOutput, rt as orderSchema, s as ListOrdersInput, st as updateFulfillmentInputSchema, t as CheckoutResult, tt as orderPromocodeInputSchema, u as OrderAmount, v as OrderFulfillmentOutput, w as OrderPromocodeSummary, x as OrderModifier, y as OrderLineItem, z as orderAmountSchema } from "../orders-
|
|
1
|
+
import { $ as orderModifierSchema, A as ValidatePromoCodeForOrderResult, B as orderByIdOutputSchema, C as OrderPromocodeInput, D as ScheduleType, E as OrderSummary, F as getOrderByIdInputSchema, G as orderFulfillmentHistorySchema, H as orderCustomerSchema, I as getOrderConfigInputSchema, J as orderFulfillmentStateValues, K as orderFulfillmentOutputSchema, L as listOrdersInputSchema, M as createOrderInputSchema, N as defaultOrderSort, O as UpdateFulfillmentInput, P as fetchOrderByIdOutputSchema, Q as orderLineItemSchema, R as listOrdersOutputSchema, S as OrderOutput, T as OrderSource, U as orderEntitiesSchema, V as orderConfigSchema, W as orderFilterSchema, X as orderGatewayIds, Y as orderFulfillmentTypes, Z as orderLineItemInputSchema, _ as OrderFulfillmentHistory, a as GetOrderByIdInput, at as orderSummarySchema, b as OrderLineItemInput, c as ListOrdersOutput, ct as upsertOrderConfigInputSchema, d as OrderByIdOutput, et as orderOutputSchema, f as OrderConfig, g as OrderFulfillment, h as OrderFilter, i as FulfillmentState, it as orderSourceSchema, j as checkoutResultSchema, k as UpsertOrderConfigInput, l as Order, lt as validatePromoCodeForOrderResultSchema, m as OrderEntities, n as CreateOrderInput, nt as orderPromocodeSummarySchema, o as GetOrderConfigInput, ot as scheduleTypeEnum, p as OrderCustomer, q as orderFulfillmentSchema, r as FetchOrderByIdOutput, rt as orderSchema, s as ListOrdersInput, st as updateFulfillmentInputSchema, t as CheckoutResult, tt as orderPromocodeInputSchema, u as OrderAmount, v as OrderFulfillmentOutput, w as OrderPromocodeSummary, x as OrderModifier, y as OrderLineItem, z as orderAmountSchema } from "../orders-CHXvc7L7.mjs";
|
|
2
|
+
import { A as recordPaymentInputSchema, B as paymentGatewayIds, C as listPaymentsInputSchema, D as paymentOutputSchema, E as paymentListItemSchema, F as setPaidOutputSchema, I as AcceptedPaymentMethod, L as PaymentGateway, M as refundOrderOutputSchema, N as refundPaymentInputSchema, O as paymentSourceSchema, P as setPaidInputSchema, R as PaymentMethod, S as initiatePaymentOutputSchema, T as paymentFilterSchema, V as paymentMethodIds, _ as SetPaidOutput, a as ListPaymentsInput, b as getPaymentInputSchema, c as PaymentListItem, d as PaymentStatus, f as RecordPaymentInput, g as SetPaidInput, h as RefundPaymentInput, i as InitiatePaymentOutput, j as refundOrderInputSchema, k as paymentStatuses, l as PaymentOutput, m as RefundOrderOutput, n as GetPaymentInput, o as ListPaymentsOutput, p as RefundOrderInput, r as InitiatePaymentInput, s as PaymentFilter, t as CodPaymentType, u as PaymentSource, v as codPaymentTypeIds, w as listPaymentsOutputSchema, x as initiatePaymentInputSchema, y as gatewayIds, z as acceptedPaymentIds } from "../payments-Qea5Yb_X.mjs";
|
|
2
3
|
import z$1, { z } from "zod";
|
|
3
4
|
|
|
4
5
|
//#region src/schema/banners.d.ts
|
|
@@ -252,10 +253,12 @@ declare const businessHoursSchema: z$1.ZodObject<{
|
|
|
252
253
|
type BusinessHours = z$1.infer<typeof businessHoursSchema>;
|
|
253
254
|
//#endregion
|
|
254
255
|
//#region src/schema/catalog.d.ts
|
|
255
|
-
declare const catalogAmountSchema: z.
|
|
256
|
+
declare const catalogAmountSchema: z.ZodCoercedBigInt<unknown>;
|
|
256
257
|
type CatalogAmount = z.infer<typeof catalogAmountSchema>;
|
|
257
258
|
declare const catalogAvailabilityValues: readonly ["AVAILABLE", "SOLDOUT", "UNAVAILABLE"];
|
|
259
|
+
type CatalogAvailability = (typeof catalogAvailabilityValues)[number];
|
|
258
260
|
declare const catalogSelectionTypeValues: readonly ["SINGLE", "MULTIPLE"];
|
|
261
|
+
type CatalogSelectionType = (typeof catalogSelectionTypeValues)[number];
|
|
259
262
|
declare const catalogFoodIngredientValues: readonly ["CELERY", "CRUSTACEANS", "EGGS", "FISH", "GLUTEN", "LUPIN", "MILK", "MOLLUSCS", "MUSTARD", "PEANUTS", "SESAME", "SOY", "SULPHITES", "TREE_NUTS"];
|
|
260
263
|
declare const catalogDietaryPreferenceValues: readonly ["DAIRY_FREE", "GLUTEN_FREE", "SPICY", "HIGH_SALT", "NUT_FREE", "VEGAN", "VEGETARIAN"];
|
|
261
264
|
declare const catalogCategoryBaseSchema: z.ZodObject<{
|
|
@@ -266,15 +269,15 @@ declare const catalogCategoryBaseSchema: z.ZodObject<{
|
|
|
266
269
|
}, z.core.$strip>;
|
|
267
270
|
type CatalogCategory = z.infer<typeof catalogCategoryBaseSchema>;
|
|
268
271
|
declare const catalogPriceRangeSchema: z.ZodObject<{
|
|
269
|
-
minAmount: z.
|
|
270
|
-
maxAmount: z.
|
|
272
|
+
minAmount: z.ZodCoercedBigInt<unknown>;
|
|
273
|
+
maxAmount: z.ZodCoercedBigInt<unknown>;
|
|
271
274
|
currency: z.ZodString;
|
|
272
275
|
}, z.core.$strip>;
|
|
273
276
|
type CatalogPriceRange = z.infer<typeof catalogPriceRangeSchema>;
|
|
274
277
|
declare const catalogModifierBaseSchema: z.ZodObject<{
|
|
275
278
|
id: z.ZodString;
|
|
276
279
|
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
277
|
-
priceAmount: z.
|
|
280
|
+
priceAmount: z.ZodCoercedBigInt<unknown>;
|
|
278
281
|
currency: z.ZodString;
|
|
279
282
|
availability: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
280
283
|
AVAILABLE: "AVAILABLE";
|
|
@@ -296,7 +299,7 @@ declare const catalogModifierListBaseSchema: z.ZodObject<{
|
|
|
296
299
|
modifiers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
297
300
|
id: z.ZodString;
|
|
298
301
|
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
299
|
-
priceAmount: z.
|
|
302
|
+
priceAmount: z.ZodCoercedBigInt<unknown>;
|
|
300
303
|
currency: z.ZodString;
|
|
301
304
|
availability: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
302
305
|
AVAILABLE: "AVAILABLE";
|
|
@@ -311,7 +314,7 @@ type CatalogModifierListBase = z.infer<typeof catalogModifierListBaseSchema>;
|
|
|
311
314
|
declare const catalogVariationBaseSchema: z.ZodObject<{
|
|
312
315
|
id: z.ZodString;
|
|
313
316
|
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
314
|
-
priceAmount: z.
|
|
317
|
+
priceAmount: z.ZodCoercedBigInt<unknown>;
|
|
315
318
|
currency: z.ZodString;
|
|
316
319
|
availability: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
317
320
|
AVAILABLE: "AVAILABLE";
|
|
@@ -324,7 +327,7 @@ type CatalogVariationBase = z.infer<typeof catalogVariationBaseSchema>;
|
|
|
324
327
|
declare const catalogVariationWithDefaultSchema: z.ZodObject<{
|
|
325
328
|
id: z.ZodString;
|
|
326
329
|
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
327
|
-
priceAmount: z.
|
|
330
|
+
priceAmount: z.ZodCoercedBigInt<unknown>;
|
|
328
331
|
currency: z.ZodString;
|
|
329
332
|
availability: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
330
333
|
AVAILABLE: "AVAILABLE";
|
|
@@ -349,8 +352,8 @@ declare const catalogItemSummarySchema: z.ZodObject<{
|
|
|
349
352
|
ordinal: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
350
353
|
currency: z.ZodString;
|
|
351
354
|
priceRange: z.ZodObject<{
|
|
352
|
-
minAmount: z.
|
|
353
|
-
maxAmount: z.
|
|
355
|
+
minAmount: z.ZodCoercedBigInt<unknown>;
|
|
356
|
+
maxAmount: z.ZodCoercedBigInt<unknown>;
|
|
354
357
|
currency: z.ZodString;
|
|
355
358
|
}, z.core.$strip>;
|
|
356
359
|
categories: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -363,7 +366,10 @@ declare const catalogItemDetailSchema: z.ZodObject<{
|
|
|
363
366
|
id: z.ZodString;
|
|
364
367
|
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
365
368
|
description: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
366
|
-
|
|
369
|
+
images: z.ZodArray<z.ZodObject<{
|
|
370
|
+
id: z.ZodString;
|
|
371
|
+
url: z.ZodString;
|
|
372
|
+
}, z.core.$strip>>;
|
|
367
373
|
foodAndBeverageDetails: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
368
374
|
calorie: z.ZodNumber;
|
|
369
375
|
ingredients: z.ZodArray<z.ZodEnum<{
|
|
@@ -395,7 +401,7 @@ declare const catalogItemDetailSchema: z.ZodObject<{
|
|
|
395
401
|
variations: z.ZodArray<z.ZodObject<{
|
|
396
402
|
id: z.ZodString;
|
|
397
403
|
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
398
|
-
priceAmount: z.
|
|
404
|
+
priceAmount: z.ZodCoercedBigInt<unknown>;
|
|
399
405
|
currency: z.ZodString;
|
|
400
406
|
availability: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
401
407
|
AVAILABLE: "AVAILABLE";
|
|
@@ -415,7 +421,7 @@ declare const catalogItemDetailSchema: z.ZodObject<{
|
|
|
415
421
|
modifiers: z.ZodArray<z.ZodObject<{
|
|
416
422
|
id: z.ZodString;
|
|
417
423
|
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
418
|
-
priceAmount: z.
|
|
424
|
+
priceAmount: z.ZodCoercedBigInt<unknown>;
|
|
419
425
|
currency: z.ZodString;
|
|
420
426
|
availability: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
421
427
|
AVAILABLE: "AVAILABLE";
|
|
@@ -440,8 +446,8 @@ declare const catalogItemDetailSchema: z.ZodObject<{
|
|
|
440
446
|
ordinal: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
441
447
|
currency: z.ZodString;
|
|
442
448
|
priceRange: z.ZodObject<{
|
|
443
|
-
minAmount: z.
|
|
444
|
-
maxAmount: z.
|
|
449
|
+
minAmount: z.ZodCoercedBigInt<unknown>;
|
|
450
|
+
maxAmount: z.ZodCoercedBigInt<unknown>;
|
|
445
451
|
currency: z.ZodString;
|
|
446
452
|
}, z.core.$strip>;
|
|
447
453
|
}, z.core.$strip>;
|
|
@@ -467,8 +473,8 @@ declare const catalogCategorySchema: z.ZodObject<{
|
|
|
467
473
|
ordinal: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
468
474
|
currency: z.ZodString;
|
|
469
475
|
priceRange: z.ZodObject<{
|
|
470
|
-
minAmount: z.
|
|
471
|
-
maxAmount: z.
|
|
476
|
+
minAmount: z.ZodCoercedBigInt<unknown>;
|
|
477
|
+
maxAmount: z.ZodCoercedBigInt<unknown>;
|
|
472
478
|
currency: z.ZodString;
|
|
473
479
|
}, z.core.$strip>;
|
|
474
480
|
categories: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -489,8 +495,8 @@ declare const catalogItemFilterSchema: z.ZodObject<{
|
|
|
489
495
|
UNAVAILABLE: "UNAVAILABLE";
|
|
490
496
|
}>>>;
|
|
491
497
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
492
|
-
priceMin: z.ZodOptional<z.ZodNullable<z.
|
|
493
|
-
priceMax: z.ZodOptional<z.ZodNullable<z.
|
|
498
|
+
priceMin: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
|
|
499
|
+
priceMax: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
|
|
494
500
|
}, z.core.$strip>;
|
|
495
501
|
type CatalogItemFilter = z.infer<typeof catalogItemFilterSchema>;
|
|
496
502
|
declare const listCatalogItemsInputSchema: z.ZodObject<{
|
|
@@ -509,8 +515,8 @@ declare const listCatalogItemsInputSchema: z.ZodObject<{
|
|
|
509
515
|
UNAVAILABLE: "UNAVAILABLE";
|
|
510
516
|
}>>>;
|
|
511
517
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
512
|
-
priceMin: z.ZodOptional<z.ZodNullable<z.
|
|
513
|
-
priceMax: z.ZodOptional<z.ZodNullable<z.
|
|
518
|
+
priceMin: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
|
|
519
|
+
priceMax: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
|
|
514
520
|
}, z.core.$strip>>;
|
|
515
521
|
sort: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
516
522
|
asc: "asc";
|
|
@@ -533,8 +539,8 @@ declare const listCatalogItemsOutputSchema: z.ZodObject<{
|
|
|
533
539
|
ordinal: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
534
540
|
currency: z.ZodString;
|
|
535
541
|
priceRange: z.ZodObject<{
|
|
536
|
-
minAmount: z.
|
|
537
|
-
maxAmount: z.
|
|
542
|
+
minAmount: z.ZodCoercedBigInt<unknown>;
|
|
543
|
+
maxAmount: z.ZodCoercedBigInt<unknown>;
|
|
538
544
|
currency: z.ZodString;
|
|
539
545
|
}, z.core.$strip>;
|
|
540
546
|
categories: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -559,7 +565,10 @@ declare const getCatalogItemOutputSchema: z.ZodObject<{
|
|
|
559
565
|
id: z.ZodString;
|
|
560
566
|
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
561
567
|
description: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
562
|
-
|
|
568
|
+
images: z.ZodArray<z.ZodObject<{
|
|
569
|
+
id: z.ZodString;
|
|
570
|
+
url: z.ZodString;
|
|
571
|
+
}, z.core.$strip>>;
|
|
563
572
|
foodAndBeverageDetails: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
564
573
|
calorie: z.ZodNumber;
|
|
565
574
|
ingredients: z.ZodArray<z.ZodEnum<{
|
|
@@ -591,7 +600,7 @@ declare const getCatalogItemOutputSchema: z.ZodObject<{
|
|
|
591
600
|
variations: z.ZodArray<z.ZodObject<{
|
|
592
601
|
id: z.ZodString;
|
|
593
602
|
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
594
|
-
priceAmount: z.
|
|
603
|
+
priceAmount: z.ZodCoercedBigInt<unknown>;
|
|
595
604
|
currency: z.ZodString;
|
|
596
605
|
availability: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
597
606
|
AVAILABLE: "AVAILABLE";
|
|
@@ -611,7 +620,7 @@ declare const getCatalogItemOutputSchema: z.ZodObject<{
|
|
|
611
620
|
modifiers: z.ZodArray<z.ZodObject<{
|
|
612
621
|
id: z.ZodString;
|
|
613
622
|
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
614
|
-
priceAmount: z.
|
|
623
|
+
priceAmount: z.ZodCoercedBigInt<unknown>;
|
|
615
624
|
currency: z.ZodString;
|
|
616
625
|
availability: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
617
626
|
AVAILABLE: "AVAILABLE";
|
|
@@ -636,8 +645,8 @@ declare const getCatalogItemOutputSchema: z.ZodObject<{
|
|
|
636
645
|
ordinal: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
637
646
|
currency: z.ZodString;
|
|
638
647
|
priceRange: z.ZodObject<{
|
|
639
|
-
minAmount: z.
|
|
640
|
-
maxAmount: z.
|
|
648
|
+
minAmount: z.ZodCoercedBigInt<unknown>;
|
|
649
|
+
maxAmount: z.ZodCoercedBigInt<unknown>;
|
|
641
650
|
currency: z.ZodString;
|
|
642
651
|
}, z.core.$strip>;
|
|
643
652
|
}, z.core.$strip>;
|
|
@@ -653,8 +662,8 @@ declare const catalogVariationFilterSchema: z.ZodObject<{
|
|
|
653
662
|
UNAVAILABLE: "UNAVAILABLE";
|
|
654
663
|
}>>>;
|
|
655
664
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
656
|
-
priceMin: z.ZodOptional<z.ZodNullable<z.
|
|
657
|
-
priceMax: z.ZodOptional<z.ZodNullable<z.
|
|
665
|
+
priceMin: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
|
|
666
|
+
priceMax: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
|
|
658
667
|
}, z.core.$strip>;
|
|
659
668
|
type CatalogVariationFilter = z.infer<typeof catalogVariationFilterSchema>;
|
|
660
669
|
declare const listCatalogVariationsInputSchema: z.ZodObject<{
|
|
@@ -673,8 +682,8 @@ declare const listCatalogVariationsInputSchema: z.ZodObject<{
|
|
|
673
682
|
UNAVAILABLE: "UNAVAILABLE";
|
|
674
683
|
}>>>;
|
|
675
684
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
676
|
-
priceMin: z.ZodOptional<z.ZodNullable<z.
|
|
677
|
-
priceMax: z.ZodOptional<z.ZodNullable<z.
|
|
685
|
+
priceMin: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
|
|
686
|
+
priceMax: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
|
|
678
687
|
}, z.core.$strip>>;
|
|
679
688
|
sort: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
680
689
|
asc: "asc";
|
|
@@ -686,7 +695,7 @@ declare const listCatalogVariationsOutputSchema: z.ZodObject<{
|
|
|
686
695
|
items: z.ZodArray<z.ZodObject<{
|
|
687
696
|
id: z.ZodString;
|
|
688
697
|
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
689
|
-
priceAmount: z.
|
|
698
|
+
priceAmount: z.ZodCoercedBigInt<unknown>;
|
|
690
699
|
currency: z.ZodString;
|
|
691
700
|
availability: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
692
701
|
AVAILABLE: "AVAILABLE";
|
|
@@ -714,8 +723,8 @@ declare const catalogModifierFilterSchema: z.ZodObject<{
|
|
|
714
723
|
UNAVAILABLE: "UNAVAILABLE";
|
|
715
724
|
}>>>;
|
|
716
725
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
717
|
-
priceMin: z.ZodOptional<z.ZodNullable<z.
|
|
718
|
-
priceMax: z.ZodOptional<z.ZodNullable<z.
|
|
726
|
+
priceMin: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
|
|
727
|
+
priceMax: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
|
|
719
728
|
}, z.core.$strip>;
|
|
720
729
|
type CatalogModifierFilter = z.infer<typeof catalogModifierFilterSchema>;
|
|
721
730
|
declare const listCatalogModifiersInputSchema: z.ZodObject<{
|
|
@@ -733,8 +742,8 @@ declare const listCatalogModifiersInputSchema: z.ZodObject<{
|
|
|
733
742
|
UNAVAILABLE: "UNAVAILABLE";
|
|
734
743
|
}>>>;
|
|
735
744
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
736
|
-
priceMin: z.ZodOptional<z.ZodNullable<z.
|
|
737
|
-
priceMax: z.ZodOptional<z.ZodNullable<z.
|
|
745
|
+
priceMin: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
|
|
746
|
+
priceMax: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
|
|
738
747
|
}, z.core.$strip>>;
|
|
739
748
|
sort: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
740
749
|
asc: "asc";
|
|
@@ -746,7 +755,7 @@ declare const listCatalogModifiersOutputSchema: z.ZodObject<{
|
|
|
746
755
|
items: z.ZodArray<z.ZodObject<{
|
|
747
756
|
id: z.ZodString;
|
|
748
757
|
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
749
|
-
priceAmount: z.
|
|
758
|
+
priceAmount: z.ZodCoercedBigInt<unknown>;
|
|
750
759
|
currency: z.ZodString;
|
|
751
760
|
availability: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
752
761
|
AVAILABLE: "AVAILABLE";
|
|
@@ -767,6 +776,7 @@ type ListCatalogModifiersOutput = z.infer<typeof listCatalogModifiersOutputSchem
|
|
|
767
776
|
declare const catalogModifierListFilterSchema: z.ZodObject<{
|
|
768
777
|
startTime: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
769
778
|
endTime: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
779
|
+
merchantId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
770
780
|
itemId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
771
781
|
locationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
772
782
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -784,6 +794,7 @@ declare const listCatalogModifierListsInputSchema: z.ZodObject<{
|
|
|
784
794
|
filter: z.ZodOptional<z.ZodObject<{
|
|
785
795
|
startTime: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
786
796
|
endTime: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
797
|
+
merchantId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
787
798
|
itemId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
788
799
|
locationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
789
800
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -798,6 +809,16 @@ declare const listCatalogModifierListsInputSchema: z.ZodObject<{
|
|
|
798
809
|
}>>>;
|
|
799
810
|
}, z.core.$strip>;
|
|
800
811
|
type ListCatalogModifierListsInput = z.infer<typeof listCatalogModifierListsInputSchema>;
|
|
812
|
+
declare const catalogModifierListSummarySchema: z.ZodObject<{
|
|
813
|
+
id: z.ZodString;
|
|
814
|
+
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
815
|
+
selectionType: z.ZodEnum<{
|
|
816
|
+
SINGLE: "SINGLE";
|
|
817
|
+
MULTIPLE: "MULTIPLE";
|
|
818
|
+
}>;
|
|
819
|
+
ordinal: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
820
|
+
}, z.core.$strip>;
|
|
821
|
+
type CatalogModifierListSummary = z.infer<typeof catalogModifierListSummarySchema>;
|
|
801
822
|
declare const listCatalogModifierListsOutputSchema: z.ZodObject<{
|
|
802
823
|
items: z.ZodArray<z.ZodObject<{
|
|
803
824
|
id: z.ZodString;
|
|
@@ -864,8 +885,8 @@ declare const listCatalogCategoriesWithItemsOutputSchema: z.ZodObject<{
|
|
|
864
885
|
ordinal: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
865
886
|
currency: z.ZodString;
|
|
866
887
|
priceRange: z.ZodObject<{
|
|
867
|
-
minAmount: z.
|
|
868
|
-
maxAmount: z.
|
|
888
|
+
minAmount: z.ZodCoercedBigInt<unknown>;
|
|
889
|
+
maxAmount: z.ZodCoercedBigInt<unknown>;
|
|
869
890
|
currency: z.ZodString;
|
|
870
891
|
}, z.core.$strip>;
|
|
871
892
|
categories: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -978,7 +999,7 @@ type UpsertModifierLocationOverrideInput = z.infer<typeof upsertModifierLocation
|
|
|
978
999
|
declare const upsertModifierInputSchema: z.ZodObject<{
|
|
979
1000
|
modifierListId: z.ZodString;
|
|
980
1001
|
name: z.ZodString;
|
|
981
|
-
priceAmount: z.
|
|
1002
|
+
priceAmount: z.ZodCoercedBigInt<unknown>;
|
|
982
1003
|
onByDefault: z.ZodBoolean;
|
|
983
1004
|
ordinal: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
984
1005
|
modifierId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1004,7 +1025,7 @@ declare const createItemInputSchema: z.ZodObject<{
|
|
|
1004
1025
|
merchantId: z.ZodOptional<z.ZodString>;
|
|
1005
1026
|
variation: z.ZodObject<{
|
|
1006
1027
|
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1007
|
-
priceAmount: z.
|
|
1028
|
+
priceAmount: z.ZodCoercedBigInt<unknown>;
|
|
1008
1029
|
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1009
1030
|
ordinal: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1010
1031
|
}, z.core.$strip>;
|
|
@@ -1026,6 +1047,7 @@ declare const updateItemInputSchema: z.ZodObject<{
|
|
|
1026
1047
|
SOLDOUT: "SOLDOUT";
|
|
1027
1048
|
UNAVAILABLE: "UNAVAILABLE";
|
|
1028
1049
|
}>>>;
|
|
1050
|
+
ordinal: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1029
1051
|
}, z.core.$strip>;
|
|
1030
1052
|
}, z.core.$strip>;
|
|
1031
1053
|
type UpdateItemInput = z.infer<typeof updateItemInputSchema>;
|
|
@@ -1059,7 +1081,7 @@ type DeleteVariationOutput = z.infer<typeof deleteVariationOutputSchema>;
|
|
|
1059
1081
|
declare const createVariationInputSchema: z.ZodObject<{
|
|
1060
1082
|
itemId: z.ZodString;
|
|
1061
1083
|
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1062
|
-
priceAmount: z.
|
|
1084
|
+
priceAmount: z.ZodCoercedBigInt<unknown>;
|
|
1063
1085
|
availability: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1064
1086
|
AVAILABLE: "AVAILABLE";
|
|
1065
1087
|
SOLDOUT: "SOLDOUT";
|
|
@@ -1074,7 +1096,7 @@ declare const createVariationOutputSchema: z.ZodObject<{
|
|
|
1074
1096
|
id: z.ZodString;
|
|
1075
1097
|
itemId: z.ZodString;
|
|
1076
1098
|
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1077
|
-
priceAmount: z.
|
|
1099
|
+
priceAmount: z.ZodCoercedBigInt<unknown>;
|
|
1078
1100
|
availability: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1079
1101
|
AVAILABLE: "AVAILABLE";
|
|
1080
1102
|
SOLDOUT: "SOLDOUT";
|
|
@@ -1086,7 +1108,7 @@ declare const updateVariationInputSchema: z.ZodObject<{
|
|
|
1086
1108
|
variationId: z.ZodString;
|
|
1087
1109
|
update: z.ZodObject<{
|
|
1088
1110
|
name: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
1089
|
-
priceAmount: z.ZodOptional<z.ZodNullable<z.
|
|
1111
|
+
priceAmount: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
|
|
1090
1112
|
availability: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1091
1113
|
AVAILABLE: "AVAILABLE";
|
|
1092
1114
|
SOLDOUT: "SOLDOUT";
|
|
@@ -1129,7 +1151,7 @@ type CreateModifierListOutput = z.infer<typeof createModifierListOutputSchema>;
|
|
|
1129
1151
|
declare const createModifierInputSchema: z.ZodObject<{
|
|
1130
1152
|
modifierListId: z.ZodString;
|
|
1131
1153
|
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1132
|
-
priceAmount: z.
|
|
1154
|
+
priceAmount: z.ZodCoercedBigInt<unknown>;
|
|
1133
1155
|
onByDefault: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1134
1156
|
ordinal: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1135
1157
|
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1139,7 +1161,7 @@ type CreateModifierInput = z.infer<typeof createModifierInputSchema>;
|
|
|
1139
1161
|
declare const createModifierOutputSchema: z.ZodObject<{
|
|
1140
1162
|
id: z.ZodString;
|
|
1141
1163
|
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1142
|
-
priceAmount: z.
|
|
1164
|
+
priceAmount: z.ZodCoercedBigInt<unknown>;
|
|
1143
1165
|
modifierListId: z.ZodString;
|
|
1144
1166
|
onByDefault: z.ZodBoolean;
|
|
1145
1167
|
}, z.core.$strip>;
|
|
@@ -1231,7 +1253,7 @@ type CatalogModifierDefaultLocationOverride = z.infer<typeof catalogModifierDefa
|
|
|
1231
1253
|
declare const getModifierOutputSchema: z.ZodObject<{
|
|
1232
1254
|
id: z.ZodString;
|
|
1233
1255
|
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1234
|
-
priceAmount: z.
|
|
1256
|
+
priceAmount: z.ZodCoercedBigInt<unknown>;
|
|
1235
1257
|
currency: z.ZodString;
|
|
1236
1258
|
availability: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1237
1259
|
AVAILABLE: "AVAILABLE";
|
|
@@ -1279,7 +1301,7 @@ declare const catalogModifierListDetailSchema: z.ZodObject<{
|
|
|
1279
1301
|
modifiers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1280
1302
|
id: z.ZodString;
|
|
1281
1303
|
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1282
|
-
priceAmount: z.
|
|
1304
|
+
priceAmount: z.ZodCoercedBigInt<unknown>;
|
|
1283
1305
|
currency: z.ZodString;
|
|
1284
1306
|
availability: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1285
1307
|
AVAILABLE: "AVAILABLE";
|
|
@@ -1323,7 +1345,7 @@ declare const getModifierListOutputSchema: z.ZodObject<{
|
|
|
1323
1345
|
modifiers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1324
1346
|
id: z.ZodString;
|
|
1325
1347
|
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1326
|
-
priceAmount: z.
|
|
1348
|
+
priceAmount: z.ZodCoercedBigInt<unknown>;
|
|
1327
1349
|
currency: z.ZodString;
|
|
1328
1350
|
availability: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1329
1351
|
AVAILABLE: "AVAILABLE";
|
|
@@ -1358,8 +1380,8 @@ declare const getModifierListOutputSchema: z.ZodObject<{
|
|
|
1358
1380
|
type GetModifierListOutput = z.infer<typeof getModifierListOutputSchema>;
|
|
1359
1381
|
declare const updateModifierInputSchema: z.ZodObject<{
|
|
1360
1382
|
modifierId: z.ZodString;
|
|
1361
|
-
name: z.ZodString
|
|
1362
|
-
priceAmount: z.
|
|
1383
|
+
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1384
|
+
priceAmount: z.ZodCoercedBigInt<unknown>;
|
|
1363
1385
|
onByDefault: z.ZodBoolean;
|
|
1364
1386
|
ordinal: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1365
1387
|
merchantId: z.ZodOptional<z.ZodString>;
|
|
@@ -1371,7 +1393,7 @@ declare const updateModifierOutputSchema: z.ZodObject<{
|
|
|
1371
1393
|
type UpdateModifierOutput = z.infer<typeof updateModifierOutputSchema>;
|
|
1372
1394
|
declare const updateModifierListInputSchema: z.ZodObject<{
|
|
1373
1395
|
modifierListId: z.ZodString;
|
|
1374
|
-
name: z.ZodString
|
|
1396
|
+
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1375
1397
|
selectionType: z.ZodEnum<{
|
|
1376
1398
|
SINGLE: "SINGLE";
|
|
1377
1399
|
MULTIPLE: "MULTIPLE";
|
|
@@ -2069,9 +2091,9 @@ declare const discountOutputSchema: z.ZodObject<{
|
|
|
2069
2091
|
*/
|
|
2070
2092
|
declare const anbPaymentStatusSchema: z.ZodEnum<{
|
|
2071
2093
|
FAILED: "FAILED";
|
|
2072
|
-
PENDING: "PENDING";
|
|
2073
|
-
PAID: "PAID";
|
|
2074
2094
|
INITIATED: "INITIATED";
|
|
2095
|
+
PAID: "PAID";
|
|
2096
|
+
PENDING: "PENDING";
|
|
2075
2097
|
PROCESSING: "PROCESSING";
|
|
2076
2098
|
RETURNED: "RETURNED";
|
|
2077
2099
|
CANCELED: "CANCELED";
|
|
@@ -2129,9 +2151,9 @@ declare const anbSinglePaymentInitiationResponseSchema: z.ZodObject<{
|
|
|
2129
2151
|
externalReferenceNumber: z.ZodOptional<z.ZodString>;
|
|
2130
2152
|
status: z.ZodOptional<z.ZodEnum<{
|
|
2131
2153
|
FAILED: "FAILED";
|
|
2132
|
-
PENDING: "PENDING";
|
|
2133
|
-
PAID: "PAID";
|
|
2134
2154
|
INITIATED: "INITIATED";
|
|
2155
|
+
PAID: "PAID";
|
|
2156
|
+
PENDING: "PENDING";
|
|
2135
2157
|
PROCESSING: "PROCESSING";
|
|
2136
2158
|
RETURNED: "RETURNED";
|
|
2137
2159
|
CANCELED: "CANCELED";
|
|
@@ -2154,9 +2176,9 @@ declare const anbSinglePaymentResponseSchema: z.ZodObject<{
|
|
|
2154
2176
|
externalReferenceNumber: z.ZodOptional<z.ZodString>;
|
|
2155
2177
|
status: z.ZodOptional<z.ZodEnum<{
|
|
2156
2178
|
FAILED: "FAILED";
|
|
2157
|
-
PENDING: "PENDING";
|
|
2158
|
-
PAID: "PAID";
|
|
2159
2179
|
INITIATED: "INITIATED";
|
|
2180
|
+
PAID: "PAID";
|
|
2181
|
+
PENDING: "PENDING";
|
|
2160
2182
|
PROCESSING: "PROCESSING";
|
|
2161
2183
|
RETURNED: "RETURNED";
|
|
2162
2184
|
CANCELED: "CANCELED";
|
|
@@ -2178,9 +2200,9 @@ declare const anbPaymentStatusResponseSchema: z.ZodObject<{
|
|
|
2178
2200
|
externalReferenceNumber: z.ZodOptional<z.ZodString>;
|
|
2179
2201
|
status: z.ZodEnum<{
|
|
2180
2202
|
FAILED: "FAILED";
|
|
2181
|
-
PENDING: "PENDING";
|
|
2182
|
-
PAID: "PAID";
|
|
2183
2203
|
INITIATED: "INITIATED";
|
|
2204
|
+
PAID: "PAID";
|
|
2205
|
+
PENDING: "PENDING";
|
|
2184
2206
|
PROCESSING: "PROCESSING";
|
|
2185
2207
|
RETURNED: "RETURNED";
|
|
2186
2208
|
CANCELED: "CANCELED";
|
|
@@ -2202,9 +2224,9 @@ declare const anbWebhookPayloadSchema: z.ZodObject<{
|
|
|
2202
2224
|
externalReferenceNumber: z.ZodOptional<z.ZodString>;
|
|
2203
2225
|
status: z.ZodEnum<{
|
|
2204
2226
|
FAILED: "FAILED";
|
|
2205
|
-
PENDING: "PENDING";
|
|
2206
|
-
PAID: "PAID";
|
|
2207
2227
|
INITIATED: "INITIATED";
|
|
2228
|
+
PAID: "PAID";
|
|
2229
|
+
PENDING: "PENDING";
|
|
2208
2230
|
PROCESSING: "PROCESSING";
|
|
2209
2231
|
RETURNED: "RETURNED";
|
|
2210
2232
|
CANCELED: "CANCELED";
|
|
@@ -2236,7 +2258,7 @@ type PreferredContactTime = z.infer<typeof preferredContactTimeSchema>;
|
|
|
2236
2258
|
* Input schema for creating a lead as admin
|
|
2237
2259
|
* Includes all merchant creation fields plus lead-specific fields
|
|
2238
2260
|
*/
|
|
2239
|
-
declare const
|
|
2261
|
+
declare const createLeadInputSchema: z.ZodObject<{
|
|
2240
2262
|
name: z.ZodString;
|
|
2241
2263
|
email: z.ZodEmail;
|
|
2242
2264
|
phoneNumber: z.ZodString;
|
|
@@ -2251,12 +2273,12 @@ declare const createLeadForAdminInputSchema: z.ZodObject<{
|
|
|
2251
2273
|
evening: "evening";
|
|
2252
2274
|
}>;
|
|
2253
2275
|
}, z.core.$strip>;
|
|
2254
|
-
type
|
|
2276
|
+
type CreateLeadInput = z.infer<typeof createLeadInputSchema>;
|
|
2255
2277
|
/**
|
|
2256
2278
|
* Output schema for lead creation
|
|
2257
2279
|
* Returns the created merchant and optional CRM lead ID
|
|
2258
2280
|
*/
|
|
2259
|
-
declare const
|
|
2281
|
+
declare const createLeadOutputSchema: z.ZodObject<{
|
|
2260
2282
|
merchant: z.ZodObject<{
|
|
2261
2283
|
id: z.ZodUUID;
|
|
2262
2284
|
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
@@ -2276,7 +2298,6 @@ declare const createLeadForAdminOutputSchema: z.ZodObject<{
|
|
|
2276
2298
|
integrations: z.ZodArray<z.ZodObject<{
|
|
2277
2299
|
id: z.ZodUUID;
|
|
2278
2300
|
merchantId: z.ZodUUID;
|
|
2279
|
-
accountId: z.ZodString;
|
|
2280
2301
|
provider: z.ZodString;
|
|
2281
2302
|
createdAt: z.ZodDate;
|
|
2282
2303
|
updatedAt: z.ZodDate;
|
|
@@ -2298,20 +2319,16 @@ declare const createLeadForAdminOutputSchema: z.ZodObject<{
|
|
|
2298
2319
|
updatedAt: z.ZodDate;
|
|
2299
2320
|
}, z.core.$strip>>;
|
|
2300
2321
|
legalDetails: z.ZodNullable<z.ZodObject<{
|
|
2301
|
-
id: z.ZodUUID;
|
|
2302
|
-
merchantId: z.ZodUUID;
|
|
2303
2322
|
CRNNumber: z.ZodString;
|
|
2304
2323
|
VATName: z.ZodNullable<z.ZodString>;
|
|
2305
2324
|
VATNumber: z.ZodNullable<z.ZodString>;
|
|
2306
2325
|
crnDocUrl: z.ZodNullable<z.ZodString>;
|
|
2307
2326
|
vatDocUrl: z.ZodNullable<z.ZodString>;
|
|
2308
|
-
createdAt: z.ZodDate;
|
|
2309
|
-
updatedAt: z.ZodDate;
|
|
2310
2327
|
}, z.core.$strip>>;
|
|
2311
2328
|
}, z.core.$strip>;
|
|
2312
2329
|
crmLeadId: z.ZodNullable<z.ZodString>;
|
|
2313
2330
|
}, z.core.$strip>;
|
|
2314
|
-
type
|
|
2331
|
+
type CreateLeadOutput = z.infer<typeof createLeadOutputSchema>;
|
|
2315
2332
|
//#endregion
|
|
2316
2333
|
//#region src/schema/locations.d.ts
|
|
2317
2334
|
declare const fulfillmentTypeEnum: z$1.ZodEnum<{
|
|
@@ -2362,8 +2379,8 @@ declare const locationFilterSchema: z$1.ZodObject<{
|
|
|
2362
2379
|
HIDDEN: "HIDDEN";
|
|
2363
2380
|
}>>>>;
|
|
2364
2381
|
type: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodEnum<{
|
|
2365
|
-
PHYSICAL: "PHYSICAL";
|
|
2366
2382
|
ONLINE: "ONLINE";
|
|
2383
|
+
PHYSICAL: "PHYSICAL";
|
|
2367
2384
|
}>>>;
|
|
2368
2385
|
name: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
2369
2386
|
slug: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
@@ -2391,8 +2408,8 @@ declare const listLocationsInputSchema: z$1.ZodObject<{
|
|
|
2391
2408
|
HIDDEN: "HIDDEN";
|
|
2392
2409
|
}>>>>;
|
|
2393
2410
|
type: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodEnum<{
|
|
2394
|
-
PHYSICAL: "PHYSICAL";
|
|
2395
2411
|
ONLINE: "ONLINE";
|
|
2412
|
+
PHYSICAL: "PHYSICAL";
|
|
2396
2413
|
}>>>;
|
|
2397
2414
|
name: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
2398
2415
|
slug: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
@@ -2467,10 +2484,10 @@ declare const createDeliveryWindowInputSchema: z$1.ZodObject<{
|
|
|
2467
2484
|
type CreateDeliveryWindowInput = z$1.infer<typeof createDeliveryWindowInputSchema>;
|
|
2468
2485
|
declare const providerPricingConfigSchema: z$1.ZodObject<{
|
|
2469
2486
|
provider: z$1.ZodEnum<{
|
|
2470
|
-
LOCAL: "LOCAL";
|
|
2471
|
-
QMILE: "QMILE";
|
|
2472
2487
|
LEAJLAK: "LEAJLAK";
|
|
2473
2488
|
PARCEL: "PARCEL";
|
|
2489
|
+
QMILE: "QMILE";
|
|
2490
|
+
LOCAL: "LOCAL";
|
|
2474
2491
|
}>;
|
|
2475
2492
|
isEnabled: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
2476
2493
|
priority: z$1.ZodDefault<z$1.ZodNumber>;
|
|
@@ -2492,10 +2509,10 @@ declare const createDeliveryConfigInputSchema: z$1.ZodObject<{
|
|
|
2492
2509
|
isEnabled: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
2493
2510
|
providers: z$1.ZodArray<z$1.ZodObject<{
|
|
2494
2511
|
provider: z$1.ZodEnum<{
|
|
2495
|
-
LOCAL: "LOCAL";
|
|
2496
|
-
QMILE: "QMILE";
|
|
2497
2512
|
LEAJLAK: "LEAJLAK";
|
|
2498
2513
|
PARCEL: "PARCEL";
|
|
2514
|
+
QMILE: "QMILE";
|
|
2515
|
+
LOCAL: "LOCAL";
|
|
2499
2516
|
}>;
|
|
2500
2517
|
isEnabled: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
2501
2518
|
priority: z$1.ZodDefault<z$1.ZodNumber>;
|
|
@@ -2528,7 +2545,7 @@ declare const createDeliveryConfigInputSchema: z$1.ZodObject<{
|
|
|
2528
2545
|
minDeliveryAmount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodBigInt>>;
|
|
2529
2546
|
acceptedPayments: z$1.ZodDefault<z$1.ZodArray<z$1.ZodEnum<{
|
|
2530
2547
|
COD: "COD";
|
|
2531
|
-
|
|
2548
|
+
ONLINE: "ONLINE";
|
|
2532
2549
|
}>>>;
|
|
2533
2550
|
}, z$1.core.$strip>;
|
|
2534
2551
|
type CreateDeliveryConfigInput = z$1.infer<typeof createDeliveryConfigInputSchema>;
|
|
@@ -2536,10 +2553,10 @@ declare const deliveryConfigSchema: z$1.ZodObject<{
|
|
|
2536
2553
|
isEnabled: z$1.ZodBoolean;
|
|
2537
2554
|
providers: z$1.ZodArray<z$1.ZodObject<{
|
|
2538
2555
|
provider: z$1.ZodEnum<{
|
|
2539
|
-
LOCAL: "LOCAL";
|
|
2540
|
-
QMILE: "QMILE";
|
|
2541
2556
|
LEAJLAK: "LEAJLAK";
|
|
2542
2557
|
PARCEL: "PARCEL";
|
|
2558
|
+
QMILE: "QMILE";
|
|
2559
|
+
LOCAL: "LOCAL";
|
|
2543
2560
|
}>;
|
|
2544
2561
|
isEnabled: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
2545
2562
|
priority: z$1.ZodDefault<z$1.ZodNumber>;
|
|
@@ -2572,7 +2589,7 @@ declare const deliveryConfigSchema: z$1.ZodObject<{
|
|
|
2572
2589
|
minDeliveryAmount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodBigInt>>;
|
|
2573
2590
|
acceptedPayments: z$1.ZodArray<z$1.ZodEnum<{
|
|
2574
2591
|
COD: "COD";
|
|
2575
|
-
|
|
2592
|
+
ONLINE: "ONLINE";
|
|
2576
2593
|
}>>;
|
|
2577
2594
|
}, z$1.core.$strip>;
|
|
2578
2595
|
type DeliveryConfig = z$1.infer<typeof deliveryConfigSchema>;
|
|
@@ -2580,10 +2597,10 @@ declare const addProviderInputSchema: z$1.ZodObject<{
|
|
|
2580
2597
|
locationId: z$1.ZodUUID;
|
|
2581
2598
|
provider: z$1.ZodObject<{
|
|
2582
2599
|
provider: z$1.ZodEnum<{
|
|
2583
|
-
LOCAL: "LOCAL";
|
|
2584
|
-
QMILE: "QMILE";
|
|
2585
2600
|
LEAJLAK: "LEAJLAK";
|
|
2586
2601
|
PARCEL: "PARCEL";
|
|
2602
|
+
QMILE: "QMILE";
|
|
2603
|
+
LOCAL: "LOCAL";
|
|
2587
2604
|
}>;
|
|
2588
2605
|
isEnabled: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
2589
2606
|
priority: z$1.ZodDefault<z$1.ZodNumber>;
|
|
@@ -2605,27 +2622,27 @@ type AddProviderInput = z$1.infer<typeof addProviderInputSchema>;
|
|
|
2605
2622
|
declare const removeProviderInputSchema: z$1.ZodObject<{
|
|
2606
2623
|
locationId: z$1.ZodUUID;
|
|
2607
2624
|
provider: z$1.ZodEnum<{
|
|
2608
|
-
LOCAL: "LOCAL";
|
|
2609
|
-
QMILE: "QMILE";
|
|
2610
2625
|
LEAJLAK: "LEAJLAK";
|
|
2611
2626
|
PARCEL: "PARCEL";
|
|
2627
|
+
QMILE: "QMILE";
|
|
2628
|
+
LOCAL: "LOCAL";
|
|
2612
2629
|
}>;
|
|
2613
2630
|
}, z$1.core.$strip>;
|
|
2614
2631
|
type RemoveProviderInput = z$1.infer<typeof removeProviderInputSchema>;
|
|
2615
2632
|
declare const updateProviderInputSchema: z$1.ZodObject<{
|
|
2616
2633
|
locationId: z$1.ZodUUID;
|
|
2617
2634
|
provider: z$1.ZodEnum<{
|
|
2618
|
-
LOCAL: "LOCAL";
|
|
2619
|
-
QMILE: "QMILE";
|
|
2620
2635
|
LEAJLAK: "LEAJLAK";
|
|
2621
2636
|
PARCEL: "PARCEL";
|
|
2637
|
+
QMILE: "QMILE";
|
|
2638
|
+
LOCAL: "LOCAL";
|
|
2622
2639
|
}>;
|
|
2623
2640
|
updates: z$1.ZodObject<{
|
|
2624
2641
|
provider: z$1.ZodOptional<z$1.ZodEnum<{
|
|
2625
|
-
LOCAL: "LOCAL";
|
|
2626
|
-
QMILE: "QMILE";
|
|
2627
2642
|
LEAJLAK: "LEAJLAK";
|
|
2628
2643
|
PARCEL: "PARCEL";
|
|
2644
|
+
QMILE: "QMILE";
|
|
2645
|
+
LOCAL: "LOCAL";
|
|
2629
2646
|
}>>;
|
|
2630
2647
|
isEnabled: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
|
|
2631
2648
|
priority: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodNumber>>;
|
|
@@ -2671,7 +2688,7 @@ declare const pickupConfigSchema: z$1.ZodObject<{
|
|
|
2671
2688
|
preparationTimeMinutes: z$1.ZodNumber;
|
|
2672
2689
|
acceptedPayments: z$1.ZodArray<z$1.ZodEnum<{
|
|
2673
2690
|
COD: "COD";
|
|
2674
|
-
|
|
2691
|
+
ONLINE: "ONLINE";
|
|
2675
2692
|
}>>;
|
|
2676
2693
|
}, z$1.core.$strip>;
|
|
2677
2694
|
declare const dineInConfigSchema: z$1.ZodObject<{
|
|
@@ -2679,7 +2696,7 @@ declare const dineInConfigSchema: z$1.ZodObject<{
|
|
|
2679
2696
|
numberOfTables: z$1.ZodNumber;
|
|
2680
2697
|
acceptedPayments: z$1.ZodArray<z$1.ZodEnum<{
|
|
2681
2698
|
COD: "COD";
|
|
2682
|
-
|
|
2699
|
+
ONLINE: "ONLINE";
|
|
2683
2700
|
}>>;
|
|
2684
2701
|
}, z$1.core.$strip>;
|
|
2685
2702
|
declare const curbsideSpotSchema: z$1.ZodObject<{
|
|
@@ -2700,9 +2717,22 @@ declare const curbsideConfigSchema: z$1.ZodObject<{
|
|
|
2700
2717
|
}, z$1.core.$strip>>>;
|
|
2701
2718
|
acceptedPayments: z$1.ZodArray<z$1.ZodEnum<{
|
|
2702
2719
|
COD: "COD";
|
|
2703
|
-
|
|
2720
|
+
ONLINE: "ONLINE";
|
|
2704
2721
|
}>>;
|
|
2705
2722
|
}, z$1.core.$strip>;
|
|
2723
|
+
declare const temporaryClosureInputSchema: z$1.ZodObject<{
|
|
2724
|
+
duration: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2725
|
+
closedUntil: z$1.ZodOptional<z$1.ZodString>;
|
|
2726
|
+
reason: z$1.ZodOptional<z$1.ZodString>;
|
|
2727
|
+
}, z$1.core.$strip>;
|
|
2728
|
+
type TemporaryClosureInput = z$1.infer<typeof temporaryClosureInputSchema>;
|
|
2729
|
+
declare const temporaryClosureOutputSchema: z$1.ZodObject<{
|
|
2730
|
+
closedAt: z$1.ZodString;
|
|
2731
|
+
reopensAt: z$1.ZodString;
|
|
2732
|
+
reason: z$1.ZodOptional<z$1.ZodString>;
|
|
2733
|
+
remainingSeconds: z$1.ZodNumber;
|
|
2734
|
+
}, z$1.core.$strip>;
|
|
2735
|
+
type TemporaryClosureOutput = z$1.infer<typeof temporaryClosureOutputSchema>;
|
|
2706
2736
|
declare const locationSchema: z$1.ZodObject<{
|
|
2707
2737
|
id: z$1.ZodString;
|
|
2708
2738
|
merchantId: z$1.ZodString;
|
|
@@ -2787,10 +2817,10 @@ declare const locationSchema: z$1.ZodObject<{
|
|
|
2787
2817
|
isEnabled: z$1.ZodBoolean;
|
|
2788
2818
|
providers: z$1.ZodArray<z$1.ZodObject<{
|
|
2789
2819
|
provider: z$1.ZodEnum<{
|
|
2790
|
-
LOCAL: "LOCAL";
|
|
2791
|
-
QMILE: "QMILE";
|
|
2792
2820
|
LEAJLAK: "LEAJLAK";
|
|
2793
2821
|
PARCEL: "PARCEL";
|
|
2822
|
+
QMILE: "QMILE";
|
|
2823
|
+
LOCAL: "LOCAL";
|
|
2794
2824
|
}>;
|
|
2795
2825
|
isEnabled: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
2796
2826
|
priority: z$1.ZodDefault<z$1.ZodNumber>;
|
|
@@ -2823,7 +2853,7 @@ declare const locationSchema: z$1.ZodObject<{
|
|
|
2823
2853
|
minDeliveryAmount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodBigInt>>;
|
|
2824
2854
|
acceptedPayments: z$1.ZodArray<z$1.ZodEnum<{
|
|
2825
2855
|
COD: "COD";
|
|
2826
|
-
|
|
2856
|
+
ONLINE: "ONLINE";
|
|
2827
2857
|
}>>;
|
|
2828
2858
|
}, z$1.core.$strip>>>;
|
|
2829
2859
|
pickup: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
|
|
@@ -2831,7 +2861,7 @@ declare const locationSchema: z$1.ZodObject<{
|
|
|
2831
2861
|
preparationTimeMinutes: z$1.ZodNumber;
|
|
2832
2862
|
acceptedPayments: z$1.ZodArray<z$1.ZodEnum<{
|
|
2833
2863
|
COD: "COD";
|
|
2834
|
-
|
|
2864
|
+
ONLINE: "ONLINE";
|
|
2835
2865
|
}>>;
|
|
2836
2866
|
}, z$1.core.$strip>>>;
|
|
2837
2867
|
dinein: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
|
|
@@ -2839,7 +2869,7 @@ declare const locationSchema: z$1.ZodObject<{
|
|
|
2839
2869
|
numberOfTables: z$1.ZodNumber;
|
|
2840
2870
|
acceptedPayments: z$1.ZodArray<z$1.ZodEnum<{
|
|
2841
2871
|
COD: "COD";
|
|
2842
|
-
|
|
2872
|
+
ONLINE: "ONLINE";
|
|
2843
2873
|
}>>;
|
|
2844
2874
|
}, z$1.core.$strip>>>;
|
|
2845
2875
|
curbside: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
|
|
@@ -2853,7 +2883,7 @@ declare const locationSchema: z$1.ZodObject<{
|
|
|
2853
2883
|
}, z$1.core.$strip>>>;
|
|
2854
2884
|
acceptedPayments: z$1.ZodArray<z$1.ZodEnum<{
|
|
2855
2885
|
COD: "COD";
|
|
2856
|
-
|
|
2886
|
+
ONLINE: "ONLINE";
|
|
2857
2887
|
}>>;
|
|
2858
2888
|
}, z$1.core.$strip>>>;
|
|
2859
2889
|
acceptedFulfillment: z$1.ZodArray<z$1.ZodEnum<{
|
|
@@ -2885,7 +2915,7 @@ declare const locationSchema: z$1.ZodObject<{
|
|
|
2885
2915
|
mcc: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
2886
2916
|
paymentTypes: z$1.ZodArray<z$1.ZodEnum<{
|
|
2887
2917
|
COD: "COD";
|
|
2888
|
-
|
|
2918
|
+
ONLINE: "ONLINE";
|
|
2889
2919
|
}>>;
|
|
2890
2920
|
theme: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
|
|
2891
2921
|
colors: z$1.ZodObject<{
|
|
@@ -2925,6 +2955,14 @@ declare const locationSchema: z$1.ZodObject<{
|
|
|
2925
2955
|
}>>;
|
|
2926
2956
|
autoCancelAfterMinutes: z$1.ZodNumber;
|
|
2927
2957
|
}, z$1.core.$strip>;
|
|
2958
|
+
isTemporarilyClosed: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
2959
|
+
isClosed: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
2960
|
+
temporaryClosure: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
|
|
2961
|
+
closedAt: z$1.ZodString;
|
|
2962
|
+
reopensAt: z$1.ZodString;
|
|
2963
|
+
reason: z$1.ZodOptional<z$1.ZodString>;
|
|
2964
|
+
remainingSeconds: z$1.ZodNumber;
|
|
2965
|
+
}, z$1.core.$strip>>>;
|
|
2928
2966
|
}, z$1.core.$strip>;
|
|
2929
2967
|
type Location = z$1.infer<typeof locationSchema>;
|
|
2930
2968
|
declare const locationSummarySchema: z$1.ZodObject<{
|
|
@@ -3011,10 +3049,10 @@ declare const locationSummarySchema: z$1.ZodObject<{
|
|
|
3011
3049
|
isEnabled: z$1.ZodBoolean;
|
|
3012
3050
|
providers: z$1.ZodArray<z$1.ZodObject<{
|
|
3013
3051
|
provider: z$1.ZodEnum<{
|
|
3014
|
-
LOCAL: "LOCAL";
|
|
3015
|
-
QMILE: "QMILE";
|
|
3016
3052
|
LEAJLAK: "LEAJLAK";
|
|
3017
3053
|
PARCEL: "PARCEL";
|
|
3054
|
+
QMILE: "QMILE";
|
|
3055
|
+
LOCAL: "LOCAL";
|
|
3018
3056
|
}>;
|
|
3019
3057
|
isEnabled: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
3020
3058
|
priority: z$1.ZodDefault<z$1.ZodNumber>;
|
|
@@ -3047,7 +3085,7 @@ declare const locationSummarySchema: z$1.ZodObject<{
|
|
|
3047
3085
|
minDeliveryAmount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodBigInt>>;
|
|
3048
3086
|
acceptedPayments: z$1.ZodArray<z$1.ZodEnum<{
|
|
3049
3087
|
COD: "COD";
|
|
3050
|
-
|
|
3088
|
+
ONLINE: "ONLINE";
|
|
3051
3089
|
}>>;
|
|
3052
3090
|
}, z$1.core.$strip>>>;
|
|
3053
3091
|
pickup: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
|
|
@@ -3055,7 +3093,7 @@ declare const locationSummarySchema: z$1.ZodObject<{
|
|
|
3055
3093
|
preparationTimeMinutes: z$1.ZodNumber;
|
|
3056
3094
|
acceptedPayments: z$1.ZodArray<z$1.ZodEnum<{
|
|
3057
3095
|
COD: "COD";
|
|
3058
|
-
|
|
3096
|
+
ONLINE: "ONLINE";
|
|
3059
3097
|
}>>;
|
|
3060
3098
|
}, z$1.core.$strip>>>;
|
|
3061
3099
|
dinein: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
|
|
@@ -3063,7 +3101,7 @@ declare const locationSummarySchema: z$1.ZodObject<{
|
|
|
3063
3101
|
numberOfTables: z$1.ZodNumber;
|
|
3064
3102
|
acceptedPayments: z$1.ZodArray<z$1.ZodEnum<{
|
|
3065
3103
|
COD: "COD";
|
|
3066
|
-
|
|
3104
|
+
ONLINE: "ONLINE";
|
|
3067
3105
|
}>>;
|
|
3068
3106
|
}, z$1.core.$strip>>>;
|
|
3069
3107
|
curbside: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
|
|
@@ -3077,7 +3115,7 @@ declare const locationSummarySchema: z$1.ZodObject<{
|
|
|
3077
3115
|
}, z$1.core.$strip>>>;
|
|
3078
3116
|
acceptedPayments: z$1.ZodArray<z$1.ZodEnum<{
|
|
3079
3117
|
COD: "COD";
|
|
3080
|
-
|
|
3118
|
+
ONLINE: "ONLINE";
|
|
3081
3119
|
}>>;
|
|
3082
3120
|
}, z$1.core.$strip>>>;
|
|
3083
3121
|
acceptedFulfillment: z$1.ZodArray<z$1.ZodEnum<{
|
|
@@ -3095,7 +3133,7 @@ declare const locationSummarySchema: z$1.ZodObject<{
|
|
|
3095
3133
|
numberOfTables: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3096
3134
|
acceptedPayments: z$1.ZodArray<z$1.ZodEnum<{
|
|
3097
3135
|
COD: "COD";
|
|
3098
|
-
|
|
3136
|
+
ONLINE: "ONLINE";
|
|
3099
3137
|
}>>;
|
|
3100
3138
|
theme: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
|
|
3101
3139
|
colors: z$1.ZodObject<{
|
|
@@ -3125,6 +3163,14 @@ declare const locationSummarySchema: z$1.ZodObject<{
|
|
|
3125
3163
|
butcherName: z$1.ZodString;
|
|
3126
3164
|
contactInformation: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
3127
3165
|
}, z$1.core.$strip>>>>;
|
|
3166
|
+
isTemporarilyClosed: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
3167
|
+
isClosed: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
3168
|
+
temporaryClosure: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
|
|
3169
|
+
closedAt: z$1.ZodString;
|
|
3170
|
+
reopensAt: z$1.ZodString;
|
|
3171
|
+
reason: z$1.ZodOptional<z$1.ZodString>;
|
|
3172
|
+
remainingSeconds: z$1.ZodNumber;
|
|
3173
|
+
}, z$1.core.$strip>>>;
|
|
3128
3174
|
}, z$1.core.$strip>;
|
|
3129
3175
|
type LocationSummary = z$1.infer<typeof locationSummarySchema>;
|
|
3130
3176
|
declare const listLocationsOutputSchema: z$1.ZodObject<{
|
|
@@ -3212,10 +3258,10 @@ declare const listLocationsOutputSchema: z$1.ZodObject<{
|
|
|
3212
3258
|
isEnabled: z$1.ZodBoolean;
|
|
3213
3259
|
providers: z$1.ZodArray<z$1.ZodObject<{
|
|
3214
3260
|
provider: z$1.ZodEnum<{
|
|
3215
|
-
LOCAL: "LOCAL";
|
|
3216
|
-
QMILE: "QMILE";
|
|
3217
3261
|
LEAJLAK: "LEAJLAK";
|
|
3218
3262
|
PARCEL: "PARCEL";
|
|
3263
|
+
QMILE: "QMILE";
|
|
3264
|
+
LOCAL: "LOCAL";
|
|
3219
3265
|
}>;
|
|
3220
3266
|
isEnabled: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
3221
3267
|
priority: z$1.ZodDefault<z$1.ZodNumber>;
|
|
@@ -3248,7 +3294,7 @@ declare const listLocationsOutputSchema: z$1.ZodObject<{
|
|
|
3248
3294
|
minDeliveryAmount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodBigInt>>;
|
|
3249
3295
|
acceptedPayments: z$1.ZodArray<z$1.ZodEnum<{
|
|
3250
3296
|
COD: "COD";
|
|
3251
|
-
|
|
3297
|
+
ONLINE: "ONLINE";
|
|
3252
3298
|
}>>;
|
|
3253
3299
|
}, z$1.core.$strip>>>;
|
|
3254
3300
|
pickup: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
|
|
@@ -3256,7 +3302,7 @@ declare const listLocationsOutputSchema: z$1.ZodObject<{
|
|
|
3256
3302
|
preparationTimeMinutes: z$1.ZodNumber;
|
|
3257
3303
|
acceptedPayments: z$1.ZodArray<z$1.ZodEnum<{
|
|
3258
3304
|
COD: "COD";
|
|
3259
|
-
|
|
3305
|
+
ONLINE: "ONLINE";
|
|
3260
3306
|
}>>;
|
|
3261
3307
|
}, z$1.core.$strip>>>;
|
|
3262
3308
|
dinein: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
|
|
@@ -3264,7 +3310,7 @@ declare const listLocationsOutputSchema: z$1.ZodObject<{
|
|
|
3264
3310
|
numberOfTables: z$1.ZodNumber;
|
|
3265
3311
|
acceptedPayments: z$1.ZodArray<z$1.ZodEnum<{
|
|
3266
3312
|
COD: "COD";
|
|
3267
|
-
|
|
3313
|
+
ONLINE: "ONLINE";
|
|
3268
3314
|
}>>;
|
|
3269
3315
|
}, z$1.core.$strip>>>;
|
|
3270
3316
|
curbside: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
|
|
@@ -3278,7 +3324,7 @@ declare const listLocationsOutputSchema: z$1.ZodObject<{
|
|
|
3278
3324
|
}, z$1.core.$strip>>>;
|
|
3279
3325
|
acceptedPayments: z$1.ZodArray<z$1.ZodEnum<{
|
|
3280
3326
|
COD: "COD";
|
|
3281
|
-
|
|
3327
|
+
ONLINE: "ONLINE";
|
|
3282
3328
|
}>>;
|
|
3283
3329
|
}, z$1.core.$strip>>>;
|
|
3284
3330
|
acceptedFulfillment: z$1.ZodArray<z$1.ZodEnum<{
|
|
@@ -3296,7 +3342,7 @@ declare const listLocationsOutputSchema: z$1.ZodObject<{
|
|
|
3296
3342
|
numberOfTables: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3297
3343
|
acceptedPayments: z$1.ZodArray<z$1.ZodEnum<{
|
|
3298
3344
|
COD: "COD";
|
|
3299
|
-
|
|
3345
|
+
ONLINE: "ONLINE";
|
|
3300
3346
|
}>>;
|
|
3301
3347
|
theme: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
|
|
3302
3348
|
colors: z$1.ZodObject<{
|
|
@@ -3326,6 +3372,14 @@ declare const listLocationsOutputSchema: z$1.ZodObject<{
|
|
|
3326
3372
|
butcherName: z$1.ZodString;
|
|
3327
3373
|
contactInformation: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
3328
3374
|
}, z$1.core.$strip>>>>;
|
|
3375
|
+
isTemporarilyClosed: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
3376
|
+
isClosed: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
3377
|
+
temporaryClosure: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
|
|
3378
|
+
closedAt: z$1.ZodString;
|
|
3379
|
+
reopensAt: z$1.ZodString;
|
|
3380
|
+
reason: z$1.ZodOptional<z$1.ZodString>;
|
|
3381
|
+
remainingSeconds: z$1.ZodNumber;
|
|
3382
|
+
}, z$1.core.$strip>>>;
|
|
3329
3383
|
}, z$1.core.$strip>>;
|
|
3330
3384
|
pagination: z$1.ZodObject<{
|
|
3331
3385
|
page: z$1.ZodNumber;
|
|
@@ -3344,8 +3398,8 @@ declare const createLocationInputSchema: z$1.ZodObject<{
|
|
|
3344
3398
|
phoneNumber: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
3345
3399
|
description: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>>;
|
|
3346
3400
|
type: z$1.ZodDefault<z$1.ZodEnum<{
|
|
3347
|
-
PHYSICAL: "PHYSICAL";
|
|
3348
3401
|
ONLINE: "ONLINE";
|
|
3402
|
+
PHYSICAL: "PHYSICAL";
|
|
3349
3403
|
}>>;
|
|
3350
3404
|
status: z$1.ZodDefault<z$1.ZodEnum<{
|
|
3351
3405
|
ACTIVE: "ACTIVE";
|
|
@@ -3374,8 +3428,8 @@ declare const updateLocationInputSchema: z$1.ZodObject<{
|
|
|
3374
3428
|
phoneNumber: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
|
|
3375
3429
|
description: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>>>;
|
|
3376
3430
|
type: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodEnum<{
|
|
3377
|
-
PHYSICAL: "PHYSICAL";
|
|
3378
3431
|
ONLINE: "ONLINE";
|
|
3432
|
+
PHYSICAL: "PHYSICAL";
|
|
3379
3433
|
}>>>;
|
|
3380
3434
|
status: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodEnum<{
|
|
3381
3435
|
ACTIVE: "ACTIVE";
|
|
@@ -3424,10 +3478,10 @@ declare const createDeliveryConfigForLocationInputSchema: z$1.ZodObject<{
|
|
|
3424
3478
|
isEnabled: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
3425
3479
|
providers: z$1.ZodArray<z$1.ZodObject<{
|
|
3426
3480
|
provider: z$1.ZodEnum<{
|
|
3427
|
-
LOCAL: "LOCAL";
|
|
3428
|
-
QMILE: "QMILE";
|
|
3429
3481
|
LEAJLAK: "LEAJLAK";
|
|
3430
3482
|
PARCEL: "PARCEL";
|
|
3483
|
+
QMILE: "QMILE";
|
|
3484
|
+
LOCAL: "LOCAL";
|
|
3431
3485
|
}>;
|
|
3432
3486
|
isEnabled: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
3433
3487
|
priority: z$1.ZodDefault<z$1.ZodNumber>;
|
|
@@ -3460,7 +3514,7 @@ declare const createDeliveryConfigForLocationInputSchema: z$1.ZodObject<{
|
|
|
3460
3514
|
minDeliveryAmount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodBigInt>>;
|
|
3461
3515
|
acceptedPayments: z$1.ZodDefault<z$1.ZodArray<z$1.ZodEnum<{
|
|
3462
3516
|
COD: "COD";
|
|
3463
|
-
|
|
3517
|
+
ONLINE: "ONLINE";
|
|
3464
3518
|
}>>>;
|
|
3465
3519
|
}, z$1.core.$strip>;
|
|
3466
3520
|
}, z$1.core.$strip>;
|
|
@@ -3518,7 +3572,7 @@ declare const upsertDineInInputSchema: z$1.ZodObject<{
|
|
|
3518
3572
|
}, z$1.core.$strip>>>;
|
|
3519
3573
|
acceptedPayments: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
|
|
3520
3574
|
COD: "COD";
|
|
3521
|
-
|
|
3575
|
+
ONLINE: "ONLINE";
|
|
3522
3576
|
}>>>;
|
|
3523
3577
|
}, z$1.core.$strip>;
|
|
3524
3578
|
}, z$1.core.$strip>;
|
|
@@ -3529,10 +3583,10 @@ declare const upsertDeliveryInputSchema: z$1.ZodObject<{
|
|
|
3529
3583
|
isEnabled: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
|
|
3530
3584
|
providers: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
3531
3585
|
provider: z$1.ZodEnum<{
|
|
3532
|
-
LOCAL: "LOCAL";
|
|
3533
|
-
QMILE: "QMILE";
|
|
3534
3586
|
LEAJLAK: "LEAJLAK";
|
|
3535
3587
|
PARCEL: "PARCEL";
|
|
3588
|
+
QMILE: "QMILE";
|
|
3589
|
+
LOCAL: "LOCAL";
|
|
3536
3590
|
}>;
|
|
3537
3591
|
isEnabled: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
3538
3592
|
priority: z$1.ZodDefault<z$1.ZodNumber>;
|
|
@@ -3565,7 +3619,7 @@ declare const upsertDeliveryInputSchema: z$1.ZodObject<{
|
|
|
3565
3619
|
minDeliveryAmount: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodBigInt>>>;
|
|
3566
3620
|
acceptedPayments: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodArray<z$1.ZodEnum<{
|
|
3567
3621
|
COD: "COD";
|
|
3568
|
-
|
|
3622
|
+
ONLINE: "ONLINE";
|
|
3569
3623
|
}>>>>;
|
|
3570
3624
|
}, z$1.core.$strip>;
|
|
3571
3625
|
}, z$1.core.$strip>;
|
|
@@ -3612,7 +3666,7 @@ declare const upsertPickupInputSchema: z$1.ZodObject<{
|
|
|
3612
3666
|
}, z$1.core.$strip>>>;
|
|
3613
3667
|
acceptedPayments: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
|
|
3614
3668
|
COD: "COD";
|
|
3615
|
-
|
|
3669
|
+
ONLINE: "ONLINE";
|
|
3616
3670
|
}>>>;
|
|
3617
3671
|
}, z$1.core.$strip>;
|
|
3618
3672
|
}, z$1.core.$strip>;
|
|
@@ -3636,7 +3690,7 @@ declare const upsertCurbsideInputSchema: z$1.ZodObject<{
|
|
|
3636
3690
|
}, z$1.core.$strip>>>;
|
|
3637
3691
|
acceptedPayments: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
|
|
3638
3692
|
COD: "COD";
|
|
3639
|
-
|
|
3693
|
+
ONLINE: "ONLINE";
|
|
3640
3694
|
}>>>;
|
|
3641
3695
|
}, z$1.core.$strip>;
|
|
3642
3696
|
}, z$1.core.$strip>;
|
|
@@ -3729,6 +3783,7 @@ declare const createWhatsAppGroupOutputSchema: z$1.ZodObject<{
|
|
|
3729
3783
|
id: z$1.ZodString;
|
|
3730
3784
|
groupJid: z$1.ZodString;
|
|
3731
3785
|
groupName: z$1.ZodString;
|
|
3786
|
+
inviteLink: z$1.ZodOptional<z$1.ZodString>;
|
|
3732
3787
|
}, z$1.core.$strip>;
|
|
3733
3788
|
type CreateWhatsAppGroupOutput = z$1.infer<typeof createWhatsAppGroupOutputSchema>;
|
|
3734
3789
|
/**
|
|
@@ -3744,6 +3799,7 @@ declare const linkWhatsAppGroupOutputSchema: z$1.ZodObject<{
|
|
|
3744
3799
|
id: z$1.ZodString;
|
|
3745
3800
|
groupJid: z$1.ZodString;
|
|
3746
3801
|
groupName: z$1.ZodString;
|
|
3802
|
+
inviteLink: z$1.ZodOptional<z$1.ZodString>;
|
|
3747
3803
|
}, z$1.core.$strip>;
|
|
3748
3804
|
type LinkWhatsAppGroupOutput = z$1.infer<typeof linkWhatsAppGroupOutputSchema>;
|
|
3749
3805
|
/**
|
|
@@ -3860,6 +3916,375 @@ declare const deleteLocationBusinessHoursInputSchema: z$1.ZodObject<{
|
|
|
3860
3916
|
locationId: z$1.ZodUUID;
|
|
3861
3917
|
}, z$1.core.$strip>;
|
|
3862
3918
|
type DeleteLocationBusinessHoursInput = z$1.infer<typeof deleteLocationBusinessHoursInputSchema>;
|
|
3919
|
+
declare const deleteLocationInputSchema: z$1.ZodObject<{
|
|
3920
|
+
locationId: z$1.ZodUUID;
|
|
3921
|
+
}, z$1.core.$strip>;
|
|
3922
|
+
type DeleteLocationInput = z$1.infer<typeof deleteLocationInputSchema>;
|
|
3923
|
+
declare const deleteLocationOutputSchema: z$1.ZodObject<{
|
|
3924
|
+
success: z$1.ZodLiteral<true>;
|
|
3925
|
+
locationId: z$1.ZodUUID;
|
|
3926
|
+
deletedAt: z$1.ZodDate;
|
|
3927
|
+
}, z$1.core.$strip>;
|
|
3928
|
+
type DeleteLocationOutput = z$1.infer<typeof deleteLocationOutputSchema>;
|
|
3929
|
+
//#endregion
|
|
3930
|
+
//#region src/schema/merchant-integrations.d.ts
|
|
3931
|
+
declare const deliveryProviderSchema: z.ZodEnum<{
|
|
3932
|
+
LEAJLAK: "LEAJLAK";
|
|
3933
|
+
PARCEL: "PARCEL";
|
|
3934
|
+
QMILE: "QMILE";
|
|
3935
|
+
LOCAL: "LOCAL";
|
|
3936
|
+
}>;
|
|
3937
|
+
type DeliveryProvider = z.infer<typeof deliveryProviderSchema>;
|
|
3938
|
+
declare const posProviderSchema: z.ZodEnum<{
|
|
3939
|
+
SQUARE: "SQUARE";
|
|
3940
|
+
}>;
|
|
3941
|
+
type PosProvider = z.infer<typeof posProviderSchema>;
|
|
3942
|
+
declare const integrationProviderSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
3943
|
+
LEAJLAK: "LEAJLAK";
|
|
3944
|
+
PARCEL: "PARCEL";
|
|
3945
|
+
QMILE: "QMILE";
|
|
3946
|
+
LOCAL: "LOCAL";
|
|
3947
|
+
}>, z.ZodEnum<{
|
|
3948
|
+
SQUARE: "SQUARE";
|
|
3949
|
+
}>]>;
|
|
3950
|
+
type IntegrationProvider = z.infer<typeof integrationProviderSchema>;
|
|
3951
|
+
declare const integrationTypeSchema: z.ZodEnum<{
|
|
3952
|
+
delivery: "delivery";
|
|
3953
|
+
pos: "pos";
|
|
3954
|
+
}>;
|
|
3955
|
+
type IntegrationType = z.infer<typeof integrationTypeSchema>;
|
|
3956
|
+
declare const integrationStatusSchema: z.ZodEnum<{
|
|
3957
|
+
active: "active";
|
|
3958
|
+
inactive: "inactive";
|
|
3959
|
+
}>;
|
|
3960
|
+
type IntegrationStatus = z.infer<typeof integrationStatusSchema>;
|
|
3961
|
+
declare const leajlakConfigSchema: z.ZodObject<{
|
|
3962
|
+
type: z.ZodLiteral<"LEAJLAK">;
|
|
3963
|
+
accessToken: z.ZodString;
|
|
3964
|
+
}, z.core.$strip>;
|
|
3965
|
+
type LeajlakConfig = z.infer<typeof leajlakConfigSchema>;
|
|
3966
|
+
declare const parcelConfigSchema: z.ZodObject<{
|
|
3967
|
+
type: z.ZodLiteral<"PARCEL">;
|
|
3968
|
+
apiKey: z.ZodString;
|
|
3969
|
+
region: z.ZodString;
|
|
3970
|
+
}, z.core.$strip>;
|
|
3971
|
+
type ParcelConfig = z.infer<typeof parcelConfigSchema>;
|
|
3972
|
+
declare const qmileConfigSchema: z.ZodObject<{
|
|
3973
|
+
type: z.ZodLiteral<"QMILE">;
|
|
3974
|
+
apiKey: z.ZodString;
|
|
3975
|
+
}, z.core.$strip>;
|
|
3976
|
+
type QMileConfig = z.infer<typeof qmileConfigSchema>;
|
|
3977
|
+
declare const localConfigSchema: z.ZodObject<{
|
|
3978
|
+
type: z.ZodLiteral<"LOCAL">;
|
|
3979
|
+
}, z.core.$strip>;
|
|
3980
|
+
type LocalConfig = z.infer<typeof localConfigSchema>;
|
|
3981
|
+
declare const providerConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3982
|
+
type: z.ZodLiteral<"LEAJLAK">;
|
|
3983
|
+
accessToken: z.ZodString;
|
|
3984
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3985
|
+
type: z.ZodLiteral<"PARCEL">;
|
|
3986
|
+
apiKey: z.ZodString;
|
|
3987
|
+
region: z.ZodString;
|
|
3988
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3989
|
+
type: z.ZodLiteral<"QMILE">;
|
|
3990
|
+
apiKey: z.ZodString;
|
|
3991
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3992
|
+
type: z.ZodLiteral<"LOCAL">;
|
|
3993
|
+
}, z.core.$strip>], "type">;
|
|
3994
|
+
type ProviderConfig = z.infer<typeof providerConfigSchema>;
|
|
3995
|
+
declare const merchantIntegrationBaseSchema: z.ZodObject<{
|
|
3996
|
+
id: z.ZodUUID;
|
|
3997
|
+
merchantId: z.ZodUUID;
|
|
3998
|
+
type: z.ZodEnum<{
|
|
3999
|
+
delivery: "delivery";
|
|
4000
|
+
pos: "pos";
|
|
4001
|
+
}>;
|
|
4002
|
+
provider: z.ZodString;
|
|
4003
|
+
status: z.ZodEnum<{
|
|
4004
|
+
active: "active";
|
|
4005
|
+
inactive: "inactive";
|
|
4006
|
+
}>;
|
|
4007
|
+
credentials: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4008
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4009
|
+
accessTokenExpiresAt: z.ZodNullable<z.ZodDate>;
|
|
4010
|
+
refreshTokenExpiresAt: z.ZodNullable<z.ZodDate>;
|
|
4011
|
+
externalMerchantId: z.ZodNullable<z.ZodString>;
|
|
4012
|
+
scope: z.ZodNullable<z.ZodString>;
|
|
4013
|
+
createdAt: z.ZodDate;
|
|
4014
|
+
updatedAt: z.ZodDate;
|
|
4015
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
4016
|
+
}, z.core.$strip>;
|
|
4017
|
+
type MerchantIntegrationBase = z.infer<typeof merchantIntegrationBaseSchema>;
|
|
4018
|
+
declare const createIntegrationInputSchema: z.ZodObject<{
|
|
4019
|
+
merchantId: z.ZodUUID;
|
|
4020
|
+
provider: z.ZodEnum<{
|
|
4021
|
+
LEAJLAK: "LEAJLAK";
|
|
4022
|
+
PARCEL: "PARCEL";
|
|
4023
|
+
QMILE: "QMILE";
|
|
4024
|
+
LOCAL: "LOCAL";
|
|
4025
|
+
}>;
|
|
4026
|
+
data: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4027
|
+
type: z.ZodLiteral<"LEAJLAK">;
|
|
4028
|
+
accessToken: z.ZodString;
|
|
4029
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4030
|
+
type: z.ZodLiteral<"PARCEL">;
|
|
4031
|
+
apiKey: z.ZodString;
|
|
4032
|
+
region: z.ZodString;
|
|
4033
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4034
|
+
type: z.ZodLiteral<"QMILE">;
|
|
4035
|
+
apiKey: z.ZodString;
|
|
4036
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4037
|
+
type: z.ZodLiteral<"LOCAL">;
|
|
4038
|
+
}, z.core.$strip>], "type">;
|
|
4039
|
+
}, z.core.$strip>;
|
|
4040
|
+
type CreateIntegrationInput = z.infer<typeof createIntegrationInputSchema>;
|
|
4041
|
+
declare const createIntegrationOutputSchema: z.ZodObject<{
|
|
4042
|
+
id: z.ZodUUID;
|
|
4043
|
+
merchantId: z.ZodUUID;
|
|
4044
|
+
type: z.ZodEnum<{
|
|
4045
|
+
delivery: "delivery";
|
|
4046
|
+
pos: "pos";
|
|
4047
|
+
}>;
|
|
4048
|
+
provider: z.ZodString;
|
|
4049
|
+
status: z.ZodEnum<{
|
|
4050
|
+
active: "active";
|
|
4051
|
+
inactive: "inactive";
|
|
4052
|
+
}>;
|
|
4053
|
+
credentials: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4054
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4055
|
+
accessTokenExpiresAt: z.ZodNullable<z.ZodDate>;
|
|
4056
|
+
refreshTokenExpiresAt: z.ZodNullable<z.ZodDate>;
|
|
4057
|
+
externalMerchantId: z.ZodNullable<z.ZodString>;
|
|
4058
|
+
scope: z.ZodNullable<z.ZodString>;
|
|
4059
|
+
createdAt: z.ZodDate;
|
|
4060
|
+
updatedAt: z.ZodDate;
|
|
4061
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
4062
|
+
}, z.core.$strip>;
|
|
4063
|
+
type CreateIntegrationOutput = z.infer<typeof createIntegrationOutputSchema>;
|
|
4064
|
+
declare const getIntegrationInputSchema: z.ZodObject<{
|
|
4065
|
+
merchantId: z.ZodOptional<z.ZodUUID>;
|
|
4066
|
+
provider: z.ZodUnion<readonly [z.ZodEnum<{
|
|
4067
|
+
LEAJLAK: "LEAJLAK";
|
|
4068
|
+
PARCEL: "PARCEL";
|
|
4069
|
+
QMILE: "QMILE";
|
|
4070
|
+
LOCAL: "LOCAL";
|
|
4071
|
+
}>, z.ZodEnum<{
|
|
4072
|
+
SQUARE: "SQUARE";
|
|
4073
|
+
}>]>;
|
|
4074
|
+
}, z.core.$strip>;
|
|
4075
|
+
type GetIntegrationInput = z.infer<typeof getIntegrationInputSchema>;
|
|
4076
|
+
declare const getIntegrationOutputSchema: z.ZodNullable<z.ZodObject<{
|
|
4077
|
+
id: z.ZodUUID;
|
|
4078
|
+
merchantId: z.ZodUUID;
|
|
4079
|
+
type: z.ZodEnum<{
|
|
4080
|
+
delivery: "delivery";
|
|
4081
|
+
pos: "pos";
|
|
4082
|
+
}>;
|
|
4083
|
+
provider: z.ZodString;
|
|
4084
|
+
status: z.ZodEnum<{
|
|
4085
|
+
active: "active";
|
|
4086
|
+
inactive: "inactive";
|
|
4087
|
+
}>;
|
|
4088
|
+
credentials: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4089
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4090
|
+
accessTokenExpiresAt: z.ZodNullable<z.ZodDate>;
|
|
4091
|
+
refreshTokenExpiresAt: z.ZodNullable<z.ZodDate>;
|
|
4092
|
+
externalMerchantId: z.ZodNullable<z.ZodString>;
|
|
4093
|
+
scope: z.ZodNullable<z.ZodString>;
|
|
4094
|
+
createdAt: z.ZodDate;
|
|
4095
|
+
updatedAt: z.ZodDate;
|
|
4096
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
4097
|
+
}, z.core.$strip>>;
|
|
4098
|
+
type GetIntegrationOutput = z.infer<typeof getIntegrationOutputSchema>;
|
|
4099
|
+
declare const listIntegrationsInputSchema: z.ZodObject<{
|
|
4100
|
+
merchantId: z.ZodOptional<z.ZodUUID>;
|
|
4101
|
+
}, z.core.$strip>;
|
|
4102
|
+
type ListIntegrationsInput = z.infer<typeof listIntegrationsInputSchema>;
|
|
4103
|
+
declare const listIntegrationsOutputSchema: z.ZodArray<z.ZodObject<{
|
|
4104
|
+
id: z.ZodUUID;
|
|
4105
|
+
merchantId: z.ZodUUID;
|
|
4106
|
+
type: z.ZodEnum<{
|
|
4107
|
+
delivery: "delivery";
|
|
4108
|
+
pos: "pos";
|
|
4109
|
+
}>;
|
|
4110
|
+
provider: z.ZodString;
|
|
4111
|
+
status: z.ZodEnum<{
|
|
4112
|
+
active: "active";
|
|
4113
|
+
inactive: "inactive";
|
|
4114
|
+
}>;
|
|
4115
|
+
credentials: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4116
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4117
|
+
accessTokenExpiresAt: z.ZodNullable<z.ZodDate>;
|
|
4118
|
+
refreshTokenExpiresAt: z.ZodNullable<z.ZodDate>;
|
|
4119
|
+
externalMerchantId: z.ZodNullable<z.ZodString>;
|
|
4120
|
+
scope: z.ZodNullable<z.ZodString>;
|
|
4121
|
+
createdAt: z.ZodDate;
|
|
4122
|
+
updatedAt: z.ZodDate;
|
|
4123
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
4124
|
+
}, z.core.$strip>>;
|
|
4125
|
+
type ListIntegrationsOutput = z.infer<typeof listIntegrationsOutputSchema>;
|
|
4126
|
+
declare const setIntegrationStatusInputSchema: z.ZodObject<{
|
|
4127
|
+
integrationId: z.ZodUUID;
|
|
4128
|
+
status: z.ZodEnum<{
|
|
4129
|
+
active: "active";
|
|
4130
|
+
inactive: "inactive";
|
|
4131
|
+
}>;
|
|
4132
|
+
}, z.core.$strip>;
|
|
4133
|
+
type SetIntegrationStatusInput = z.infer<typeof setIntegrationStatusInputSchema>;
|
|
4134
|
+
declare const setIntegrationStatusOutputSchema: z.ZodObject<{
|
|
4135
|
+
id: z.ZodUUID;
|
|
4136
|
+
merchantId: z.ZodUUID;
|
|
4137
|
+
type: z.ZodEnum<{
|
|
4138
|
+
delivery: "delivery";
|
|
4139
|
+
pos: "pos";
|
|
4140
|
+
}>;
|
|
4141
|
+
provider: z.ZodString;
|
|
4142
|
+
status: z.ZodEnum<{
|
|
4143
|
+
active: "active";
|
|
4144
|
+
inactive: "inactive";
|
|
4145
|
+
}>;
|
|
4146
|
+
credentials: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4147
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4148
|
+
accessTokenExpiresAt: z.ZodNullable<z.ZodDate>;
|
|
4149
|
+
refreshTokenExpiresAt: z.ZodNullable<z.ZodDate>;
|
|
4150
|
+
externalMerchantId: z.ZodNullable<z.ZodString>;
|
|
4151
|
+
scope: z.ZodNullable<z.ZodString>;
|
|
4152
|
+
createdAt: z.ZodDate;
|
|
4153
|
+
updatedAt: z.ZodDate;
|
|
4154
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
4155
|
+
}, z.core.$strip>;
|
|
4156
|
+
type SetIntegrationStatusOutput = z.infer<typeof setIntegrationStatusOutputSchema>;
|
|
4157
|
+
declare const deleteIntegrationInputSchema: z.ZodObject<{
|
|
4158
|
+
integrationId: z.ZodUUID;
|
|
4159
|
+
}, z.core.$strip>;
|
|
4160
|
+
type DeleteIntegrationInput = z.infer<typeof deleteIntegrationInputSchema>;
|
|
4161
|
+
declare const deliveryStatusSchema: z.ZodEnum<{
|
|
4162
|
+
failed: "failed";
|
|
4163
|
+
pending: "pending";
|
|
4164
|
+
assigned: "assigned";
|
|
4165
|
+
accepted: "accepted";
|
|
4166
|
+
in_progress: "in_progress";
|
|
4167
|
+
arrived: "arrived";
|
|
4168
|
+
picked_up: "picked_up";
|
|
4169
|
+
shipped: "shipped";
|
|
4170
|
+
delivered: "delivered";
|
|
4171
|
+
cancelled: "cancelled";
|
|
4172
|
+
}>;
|
|
4173
|
+
type DeliveryStatus = z.infer<typeof deliveryStatusSchema>;
|
|
4174
|
+
declare const connectIntegrationInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4175
|
+
merchantId: z.ZodOptional<z.ZodUUID>;
|
|
4176
|
+
provider: z.ZodLiteral<"SQUARE">;
|
|
4177
|
+
redirectUrl: z.ZodString;
|
|
4178
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4179
|
+
merchantId: z.ZodOptional<z.ZodUUID>;
|
|
4180
|
+
provider: z.ZodLiteral<"LEAJLAK">;
|
|
4181
|
+
accessToken: z.ZodString;
|
|
4182
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4183
|
+
merchantId: z.ZodOptional<z.ZodUUID>;
|
|
4184
|
+
provider: z.ZodLiteral<"PARCEL">;
|
|
4185
|
+
apiKey: z.ZodString;
|
|
4186
|
+
region: z.ZodString;
|
|
4187
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4188
|
+
merchantId: z.ZodOptional<z.ZodUUID>;
|
|
4189
|
+
provider: z.ZodLiteral<"QMILE">;
|
|
4190
|
+
apiKey: z.ZodString;
|
|
4191
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4192
|
+
merchantId: z.ZodOptional<z.ZodUUID>;
|
|
4193
|
+
provider: z.ZodLiteral<"LOCAL">;
|
|
4194
|
+
}, z.core.$strip>], "provider">;
|
|
4195
|
+
type ConnectIntegrationInput = z.infer<typeof connectIntegrationInputSchema>;
|
|
4196
|
+
declare const connectIntegrationOutputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4197
|
+
kind: z.ZodLiteral<"oauth_redirect">;
|
|
4198
|
+
provider: z.ZodLiteral<"SQUARE">;
|
|
4199
|
+
url: z.ZodString;
|
|
4200
|
+
redirect: z.ZodDefault<z.ZodBoolean>;
|
|
4201
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4202
|
+
kind: z.ZodLiteral<"connected">;
|
|
4203
|
+
integration: z.ZodObject<{
|
|
4204
|
+
id: z.ZodUUID;
|
|
4205
|
+
merchantId: z.ZodUUID;
|
|
4206
|
+
type: z.ZodEnum<{
|
|
4207
|
+
delivery: "delivery";
|
|
4208
|
+
pos: "pos";
|
|
4209
|
+
}>;
|
|
4210
|
+
provider: z.ZodString;
|
|
4211
|
+
status: z.ZodEnum<{
|
|
4212
|
+
active: "active";
|
|
4213
|
+
inactive: "inactive";
|
|
4214
|
+
}>;
|
|
4215
|
+
credentials: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4216
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4217
|
+
accessTokenExpiresAt: z.ZodNullable<z.ZodDate>;
|
|
4218
|
+
refreshTokenExpiresAt: z.ZodNullable<z.ZodDate>;
|
|
4219
|
+
externalMerchantId: z.ZodNullable<z.ZodString>;
|
|
4220
|
+
scope: z.ZodNullable<z.ZodString>;
|
|
4221
|
+
createdAt: z.ZodDate;
|
|
4222
|
+
updatedAt: z.ZodDate;
|
|
4223
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
4224
|
+
}, z.core.$strip>;
|
|
4225
|
+
}, z.core.$strip>], "kind">;
|
|
4226
|
+
type ConnectIntegrationOutput = z.infer<typeof connectIntegrationOutputSchema>;
|
|
4227
|
+
declare const disconnectIntegrationInputSchema: z.ZodObject<{
|
|
4228
|
+
merchantId: z.ZodOptional<z.ZodUUID>;
|
|
4229
|
+
provider: z.ZodUnion<readonly [z.ZodEnum<{
|
|
4230
|
+
LEAJLAK: "LEAJLAK";
|
|
4231
|
+
PARCEL: "PARCEL";
|
|
4232
|
+
QMILE: "QMILE";
|
|
4233
|
+
LOCAL: "LOCAL";
|
|
4234
|
+
}>, z.ZodEnum<{
|
|
4235
|
+
SQUARE: "SQUARE";
|
|
4236
|
+
}>]>;
|
|
4237
|
+
}, z.core.$strip>;
|
|
4238
|
+
type DisconnectIntegrationInput = z.infer<typeof disconnectIntegrationInputSchema>;
|
|
4239
|
+
declare const deliveryBaseSchema: z.ZodObject<{
|
|
4240
|
+
id: z.ZodUUID;
|
|
4241
|
+
orderId: z.ZodUUID;
|
|
4242
|
+
merchantId: z.ZodUUID;
|
|
4243
|
+
locationId: z.ZodUUID;
|
|
4244
|
+
provider: z.ZodEnum<{
|
|
4245
|
+
LEAJLAK: "LEAJLAK";
|
|
4246
|
+
PARCEL: "PARCEL";
|
|
4247
|
+
QMILE: "QMILE";
|
|
4248
|
+
LOCAL: "LOCAL";
|
|
4249
|
+
}>;
|
|
4250
|
+
providerOrderId: z.ZodNullable<z.ZodString>;
|
|
4251
|
+
status: z.ZodEnum<{
|
|
4252
|
+
failed: "failed";
|
|
4253
|
+
pending: "pending";
|
|
4254
|
+
assigned: "assigned";
|
|
4255
|
+
accepted: "accepted";
|
|
4256
|
+
in_progress: "in_progress";
|
|
4257
|
+
arrived: "arrived";
|
|
4258
|
+
picked_up: "picked_up";
|
|
4259
|
+
shipped: "shipped";
|
|
4260
|
+
delivered: "delivered";
|
|
4261
|
+
cancelled: "cancelled";
|
|
4262
|
+
}>;
|
|
4263
|
+
trackingUrl: z.ZodNullable<z.ZodString>;
|
|
4264
|
+
deliveryData: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4265
|
+
createdAt: z.ZodDate;
|
|
4266
|
+
updatedAt: z.ZodDate;
|
|
4267
|
+
}, z.core.$strip>;
|
|
4268
|
+
type DeliveryBase = z.infer<typeof deliveryBaseSchema>;
|
|
4269
|
+
declare const integrateLocationInputSchema: z.ZodObject<{
|
|
4270
|
+
merchantId: z.ZodOptional<z.ZodUUID>;
|
|
4271
|
+
provider: z.ZodEnum<{
|
|
4272
|
+
LEAJLAK: "LEAJLAK";
|
|
4273
|
+
PARCEL: "PARCEL";
|
|
4274
|
+
QMILE: "QMILE";
|
|
4275
|
+
LOCAL: "LOCAL";
|
|
4276
|
+
}>;
|
|
4277
|
+
locationId: z.ZodUUID;
|
|
4278
|
+
contactPerson: z.ZodOptional<z.ZodString>;
|
|
4279
|
+
email: z.ZodOptional<z.ZodString>;
|
|
4280
|
+
}, z.core.$strip>;
|
|
4281
|
+
type IntegrateLocationInput = z.infer<typeof integrateLocationInputSchema>;
|
|
4282
|
+
declare const integrateLocationOutputSchema: z.ZodObject<{
|
|
4283
|
+
success: z.ZodBoolean;
|
|
4284
|
+
providerLocationId: z.ZodString;
|
|
4285
|
+
providerMetadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4286
|
+
}, z.core.$strip>;
|
|
4287
|
+
type IntegrateLocationOutput = z.infer<typeof integrateLocationOutputSchema>;
|
|
3863
4288
|
//#endregion
|
|
3864
4289
|
//#region src/schema/merchant-subscriptions.d.ts
|
|
3865
4290
|
declare const subscriptionPlanSchema: z.ZodObject<{
|
|
@@ -3941,9 +4366,9 @@ declare const merchantInvoiceSchema: z.ZodObject<{
|
|
|
3941
4366
|
status: z.ZodEnum<{
|
|
3942
4367
|
CANCELLED: "CANCELLED";
|
|
3943
4368
|
FAILED: "FAILED";
|
|
4369
|
+
PAID: "PAID";
|
|
3944
4370
|
DRAFT: "DRAFT";
|
|
3945
4371
|
PENDING: "PENDING";
|
|
3946
|
-
PAID: "PAID";
|
|
3947
4372
|
}>;
|
|
3948
4373
|
dueDate: z.ZodNullable<z.ZodDate>;
|
|
3949
4374
|
paidAt: z.ZodNullable<z.ZodDate>;
|
|
@@ -3976,13 +4401,13 @@ declare const merchantBaseSchema: z.ZodObject<{
|
|
|
3976
4401
|
id: z.ZodUUID;
|
|
3977
4402
|
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
3978
4403
|
description: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
3979
|
-
slug: z.ZodString
|
|
4404
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
3980
4405
|
ownerId: z.ZodString;
|
|
3981
4406
|
country: z.ZodString;
|
|
3982
|
-
businessEmail: z.ZodString
|
|
3983
|
-
phoneNumber: z.ZodString
|
|
3984
|
-
logoUrl: z.ZodString
|
|
3985
|
-
bannerUrl: z.ZodString
|
|
4407
|
+
businessEmail: z.ZodNullable<z.ZodString>;
|
|
4408
|
+
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
4409
|
+
logoUrl: z.ZodNullable<z.ZodString>;
|
|
4410
|
+
bannerUrl: z.ZodNullable<z.ZodString>;
|
|
3986
4411
|
createdAt: z.ZodDate;
|
|
3987
4412
|
updatedAt: z.ZodDate;
|
|
3988
4413
|
}, z.core.$strip>;
|
|
@@ -4000,22 +4425,17 @@ type createMerchantInput = z.infer<typeof createMerchantInputSchema>;
|
|
|
4000
4425
|
declare const merchantIntegrationSchema: z.ZodObject<{
|
|
4001
4426
|
id: z.ZodUUID;
|
|
4002
4427
|
merchantId: z.ZodUUID;
|
|
4003
|
-
accountId: z.ZodString;
|
|
4004
4428
|
provider: z.ZodString;
|
|
4005
4429
|
createdAt: z.ZodDate;
|
|
4006
4430
|
updatedAt: z.ZodDate;
|
|
4007
4431
|
}, z.core.$strip>;
|
|
4008
4432
|
type MerchantIntegration = z.infer<typeof merchantIntegrationSchema>;
|
|
4009
4433
|
declare const merchantLegalDetailsSchema: z.ZodObject<{
|
|
4010
|
-
id: z.ZodUUID;
|
|
4011
|
-
merchantId: z.ZodUUID;
|
|
4012
4434
|
CRNNumber: z.ZodString;
|
|
4013
4435
|
VATName: z.ZodNullable<z.ZodString>;
|
|
4014
4436
|
VATNumber: z.ZodNullable<z.ZodString>;
|
|
4015
4437
|
crnDocUrl: z.ZodNullable<z.ZodString>;
|
|
4016
4438
|
vatDocUrl: z.ZodNullable<z.ZodString>;
|
|
4017
|
-
createdAt: z.ZodDate;
|
|
4018
|
-
updatedAt: z.ZodDate;
|
|
4019
4439
|
}, z.core.$strip>;
|
|
4020
4440
|
type MerchantLegalDetails = z.infer<typeof merchantLegalDetailsSchema>;
|
|
4021
4441
|
declare const merchantFullDetailsSchema: z.ZodObject<{
|
|
@@ -4037,7 +4457,6 @@ declare const merchantFullDetailsSchema: z.ZodObject<{
|
|
|
4037
4457
|
integrations: z.ZodArray<z.ZodObject<{
|
|
4038
4458
|
id: z.ZodUUID;
|
|
4039
4459
|
merchantId: z.ZodUUID;
|
|
4040
|
-
accountId: z.ZodString;
|
|
4041
4460
|
provider: z.ZodString;
|
|
4042
4461
|
createdAt: z.ZodDate;
|
|
4043
4462
|
updatedAt: z.ZodDate;
|
|
@@ -4059,15 +4478,11 @@ declare const merchantFullDetailsSchema: z.ZodObject<{
|
|
|
4059
4478
|
updatedAt: z.ZodDate;
|
|
4060
4479
|
}, z.core.$strip>>;
|
|
4061
4480
|
legalDetails: z.ZodNullable<z.ZodObject<{
|
|
4062
|
-
id: z.ZodUUID;
|
|
4063
|
-
merchantId: z.ZodUUID;
|
|
4064
4481
|
CRNNumber: z.ZodString;
|
|
4065
4482
|
VATName: z.ZodNullable<z.ZodString>;
|
|
4066
4483
|
VATNumber: z.ZodNullable<z.ZodString>;
|
|
4067
4484
|
crnDocUrl: z.ZodNullable<z.ZodString>;
|
|
4068
4485
|
vatDocUrl: z.ZodNullable<z.ZodString>;
|
|
4069
|
-
createdAt: z.ZodDate;
|
|
4070
|
-
updatedAt: z.ZodDate;
|
|
4071
4486
|
}, z.core.$strip>>;
|
|
4072
4487
|
}, z.core.$strip>;
|
|
4073
4488
|
type MerchantFullDetails = z.infer<typeof merchantFullDetailsSchema>;
|
|
@@ -4076,13 +4491,13 @@ declare const merchantSummarySchema: z.ZodObject<{
|
|
|
4076
4491
|
id: z.ZodUUID;
|
|
4077
4492
|
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
4078
4493
|
description: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
4079
|
-
slug: z.ZodString
|
|
4494
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
4080
4495
|
ownerId: z.ZodString;
|
|
4081
4496
|
country: z.ZodString;
|
|
4082
|
-
businessEmail: z.ZodString
|
|
4083
|
-
phoneNumber: z.ZodString
|
|
4084
|
-
logoUrl: z.ZodString
|
|
4085
|
-
bannerUrl: z.ZodString
|
|
4497
|
+
businessEmail: z.ZodNullable<z.ZodString>;
|
|
4498
|
+
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
4499
|
+
logoUrl: z.ZodNullable<z.ZodString>;
|
|
4500
|
+
bannerUrl: z.ZodNullable<z.ZodString>;
|
|
4086
4501
|
createdAt: z.ZodDate;
|
|
4087
4502
|
updatedAt: z.ZodDate;
|
|
4088
4503
|
}, z.core.$strip>;
|
|
@@ -4105,21 +4520,15 @@ declare const merchantIdInputSchema: z.ZodObject<{
|
|
|
4105
4520
|
merchantId: z.ZodString;
|
|
4106
4521
|
}, z.core.$strip>;
|
|
4107
4522
|
type MerchantIdInput = z.infer<typeof merchantIdInputSchema>;
|
|
4523
|
+
declare const getMerchantInputSchema: z.ZodObject<{
|
|
4524
|
+
merchantId: z.ZodOptional<z.ZodString>;
|
|
4525
|
+
}, z.core.$strip>;
|
|
4526
|
+
type GetMerchantInput = z.infer<typeof getMerchantInputSchema>;
|
|
4108
4527
|
declare const createMerchantOutputSchema: z.ZodObject<{
|
|
4109
4528
|
merchantId: z.ZodString;
|
|
4110
4529
|
userId: z.ZodString;
|
|
4111
4530
|
}, z.core.$strip>;
|
|
4112
4531
|
type CreateMerchantOutput = z.infer<typeof createMerchantOutputSchema>;
|
|
4113
|
-
declare const linkSquareIntegrationInputSchema: z.ZodObject<{
|
|
4114
|
-
redirectUrl: z.ZodString;
|
|
4115
|
-
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4116
|
-
}, z.core.$strip>;
|
|
4117
|
-
type LinkSquareIntegrationInput = z.infer<typeof linkSquareIntegrationInputSchema>;
|
|
4118
|
-
declare const linkSquareIntegrationOutputSchema: z.ZodObject<{
|
|
4119
|
-
url: z.ZodString;
|
|
4120
|
-
redirect: z.ZodDefault<z.ZodBoolean>;
|
|
4121
|
-
}, z.core.$strip>;
|
|
4122
|
-
type LinkSquareIntegrationOutput = z.infer<typeof linkSquareIntegrationOutputSchema>;
|
|
4123
4532
|
declare const merchantFilterSchema: z.ZodObject<{
|
|
4124
4533
|
startTime: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
4125
4534
|
endTime: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
@@ -4151,6 +4560,7 @@ declare const merchantListItemSchema: z.ZodObject<{
|
|
|
4151
4560
|
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
4152
4561
|
businessEmail: z.ZodNullable<z.ZodString>;
|
|
4153
4562
|
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
4563
|
+
logoUrl: z.ZodNullable<z.ZodString>;
|
|
4154
4564
|
country: z.ZodString;
|
|
4155
4565
|
createdAt: z.ZodDate;
|
|
4156
4566
|
}, z.core.$strip>;
|
|
@@ -4161,6 +4571,7 @@ declare const listMerchantsOutputSchema: z.ZodObject<{
|
|
|
4161
4571
|
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
4162
4572
|
businessEmail: z.ZodNullable<z.ZodString>;
|
|
4163
4573
|
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
4574
|
+
logoUrl: z.ZodNullable<z.ZodString>;
|
|
4164
4575
|
country: z.ZodString;
|
|
4165
4576
|
createdAt: z.ZodDate;
|
|
4166
4577
|
}, z.core.$strip>>;
|
|
@@ -4172,35 +4583,42 @@ declare const listMerchantsOutputSchema: z.ZodObject<{
|
|
|
4172
4583
|
}, z.core.$strip>;
|
|
4173
4584
|
}, z.core.$strip>;
|
|
4174
4585
|
type ListMerchantsOutput = z.infer<typeof listMerchantsOutputSchema>;
|
|
4175
|
-
declare const
|
|
4586
|
+
declare const uploadMerchantCrnDocInputSchema: z.ZodObject<{
|
|
4176
4587
|
merchantId: z.ZodUUID;
|
|
4177
|
-
|
|
4178
|
-
VATName: z.ZodOptional<z.ZodString>;
|
|
4179
|
-
VATNumber: z.ZodOptional<z.ZodString>;
|
|
4180
|
-
crnDoc: z.ZodOptional<z.ZodCustom<File, File>>;
|
|
4181
|
-
vatDoc: z.ZodOptional<z.ZodCustom<File, File>>;
|
|
4588
|
+
crnDoc: z.ZodCustom<File, File>;
|
|
4182
4589
|
}, z.core.$strip>;
|
|
4183
|
-
type
|
|
4184
|
-
declare const
|
|
4590
|
+
type UploadMerchantCrnDocInput = z.infer<typeof uploadMerchantCrnDocInputSchema>;
|
|
4591
|
+
declare const uploadMerchantVatDocInputSchema: z.ZodObject<{
|
|
4185
4592
|
merchantId: z.ZodUUID;
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
crnDoc: z.ZodOptional<z.ZodNullable<z.ZodCustom<File, File>>>;
|
|
4191
|
-
vatDoc: z.ZodOptional<z.ZodNullable<z.ZodCustom<File, File>>>;
|
|
4192
|
-
}, z.core.$strip>;
|
|
4193
|
-
type UpdateMerchantLegalDetailsInput = z.infer<typeof updateMerchantLegalDetailsInputSchema>;
|
|
4194
|
-
declare const uploadCrnDocumentInputSchema: z.ZodObject<{
|
|
4593
|
+
vatDoc: z.ZodCustom<File, File>;
|
|
4594
|
+
}, z.core.$strip>;
|
|
4595
|
+
type UploadMerchantVatDocInput = z.infer<typeof uploadMerchantVatDocInputSchema>;
|
|
4596
|
+
declare const updateMerchantInputSchema: z.ZodObject<{
|
|
4195
4597
|
merchantId: z.ZodUUID;
|
|
4196
|
-
|
|
4598
|
+
name: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
4599
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
4600
|
+
businessEmail: z.ZodOptional<z.ZodString>;
|
|
4601
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
4602
|
+
logo: z.ZodOptional<z.ZodNullable<z.ZodCustom<File, File>>>;
|
|
4603
|
+
banner: z.ZodOptional<z.ZodNullable<z.ZodCustom<File, File>>>;
|
|
4604
|
+
legalDetails: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4605
|
+
CRNNumber: z.ZodOptional<z.ZodString>;
|
|
4606
|
+
VATName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4607
|
+
VATNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4608
|
+
}, z.core.$strip>>>;
|
|
4197
4609
|
}, z.core.$strip>;
|
|
4198
|
-
type
|
|
4199
|
-
declare const
|
|
4610
|
+
type UpdateMerchantInput = z.infer<typeof updateMerchantInputSchema>;
|
|
4611
|
+
declare const deleteMerchantAccountInputSchema: z.ZodObject<{
|
|
4612
|
+
password: z.ZodString;
|
|
4613
|
+
confirmSoftDelete: z.ZodLiteral<true>;
|
|
4614
|
+
}, z.core.$strip>;
|
|
4615
|
+
type DeleteMerchantAccountInput = z.infer<typeof deleteMerchantAccountInputSchema>;
|
|
4616
|
+
declare const deleteMerchantAccountOutputSchema: z.ZodObject<{
|
|
4617
|
+
success: z.ZodLiteral<true>;
|
|
4200
4618
|
merchantId: z.ZodUUID;
|
|
4201
|
-
|
|
4619
|
+
deletedAt: z.ZodDate;
|
|
4202
4620
|
}, z.core.$strip>;
|
|
4203
|
-
type
|
|
4621
|
+
type DeleteMerchantAccountOutput = z.infer<typeof deleteMerchantAccountOutputSchema>;
|
|
4204
4622
|
//#endregion
|
|
4205
4623
|
//#region src/schema/message-templates.d.ts
|
|
4206
4624
|
declare const messageTemplateProviderEnum: readonly ["whatsapp", "email", "push", "sms"];
|
|
@@ -4222,8 +4640,9 @@ declare const messageTemplateBaseSchema: z.ZodObject<{
|
|
|
4222
4640
|
}, z.core.$strip>;
|
|
4223
4641
|
type MessageTemplate = z.infer<typeof messageTemplateBaseSchema>;
|
|
4224
4642
|
declare const createMessageTemplateInputSchema: z.ZodObject<{
|
|
4225
|
-
name: z.ZodString;
|
|
4226
4643
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4644
|
+
language: z.ZodDefault<z.ZodString>;
|
|
4645
|
+
name: z.ZodString;
|
|
4227
4646
|
provider: z.ZodEnum<{
|
|
4228
4647
|
email: "email";
|
|
4229
4648
|
push: "push";
|
|
@@ -4231,13 +4650,13 @@ declare const createMessageTemplateInputSchema: z.ZodObject<{
|
|
|
4231
4650
|
sms: "sms";
|
|
4232
4651
|
}>;
|
|
4233
4652
|
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
4234
|
-
language: z.ZodDefault<z.ZodString>;
|
|
4235
4653
|
template: z.ZodString;
|
|
4236
4654
|
}, z.core.$strip>;
|
|
4237
4655
|
type CreateMessageTemplateInput = z.infer<typeof createMessageTemplateInputSchema>;
|
|
4238
4656
|
declare const updateMessageTemplateInputSchema: z.ZodObject<{
|
|
4239
|
-
name: z.ZodOptional<z.ZodString>;
|
|
4240
4657
|
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
4658
|
+
language: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
4659
|
+
name: z.ZodOptional<z.ZodString>;
|
|
4241
4660
|
provider: z.ZodOptional<z.ZodEnum<{
|
|
4242
4661
|
email: "email";
|
|
4243
4662
|
push: "push";
|
|
@@ -4245,7 +4664,6 @@ declare const updateMessageTemplateInputSchema: z.ZodObject<{
|
|
|
4245
4664
|
sms: "sms";
|
|
4246
4665
|
}>>;
|
|
4247
4666
|
isActive: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
4248
|
-
language: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
4249
4667
|
template: z.ZodOptional<z.ZodString>;
|
|
4250
4668
|
}, z.core.$strip>;
|
|
4251
4669
|
type UpdateMessageTemplateInput = z.infer<typeof updateMessageTemplateInputSchema>;
|
|
@@ -4555,334 +4973,12 @@ declare const paginationSchema: z.ZodObject<{
|
|
|
4555
4973
|
}, z.core.$strip>;
|
|
4556
4974
|
type Pagination = z.infer<typeof paginationSchema>;
|
|
4557
4975
|
//#endregion
|
|
4558
|
-
//#region src/schema/payment-methods.d.ts
|
|
4559
|
-
/**
|
|
4560
|
-
* Payment Method: What the user/customer chooses to pay with (user-facing).
|
|
4561
|
-
* - COD: Cash on Delivery/Pickup
|
|
4562
|
-
* - CARD: Online card payment
|
|
4563
|
-
*/
|
|
4564
|
-
declare const paymentMethodIds: readonly ["COD", "CARD"];
|
|
4565
|
-
type PaymentMethod = (typeof paymentMethodIds)[number];
|
|
4566
|
-
/**
|
|
4567
|
-
* Accepted Payments: Payment methods a location/fulfillment accepts.
|
|
4568
|
-
* Used in fulfillment configuration (pickup, delivery, dinein, curbside).
|
|
4569
|
-
* Must always be COD and/or CARD - no legacy CASH or ONLINE values.
|
|
4570
|
-
*/
|
|
4571
|
-
declare const acceptedPaymentIds: readonly ["COD", "CARD"];
|
|
4572
|
-
type AcceptedPaymentMethod = (typeof acceptedPaymentIds)[number];
|
|
4573
|
-
/**
|
|
4574
|
-
* Payment Gateway: Which backend processor handled the payment (backend/storage).
|
|
4575
|
-
* - MOYASAR: Moyasar payment gateway
|
|
4576
|
-
* - null: Internal/offline payment (COD, manual, etc)
|
|
4577
|
-
*/
|
|
4578
|
-
declare const paymentGatewayIds: readonly ["MOYASAR"];
|
|
4579
|
-
type PaymentGateway = (typeof paymentGatewayIds)[number] | null;
|
|
4580
|
-
//#endregion
|
|
4581
|
-
//#region src/schema/payments.d.ts
|
|
4582
|
-
declare const gatewayIds: readonly ["MOYASAR"];
|
|
4583
|
-
declare const paymentStatuses: readonly ["INITIATED", "PAID", "AUTHORIZED", "FAILED", "REFUNDED", "CAPTURED", "VOIDED", "VERIFIED"];
|
|
4584
|
-
declare const initiatePaymentInputSchema: z.ZodObject<{
|
|
4585
|
-
entities: z.ZodObject<{
|
|
4586
|
-
merchantId: z.ZodString;
|
|
4587
|
-
customerId: z.ZodString;
|
|
4588
|
-
}, z.core.$strip>;
|
|
4589
|
-
payment: z.ZodObject<{
|
|
4590
|
-
method: z.ZodEnum<{
|
|
4591
|
-
COD: "COD";
|
|
4592
|
-
CARD: "CARD";
|
|
4593
|
-
}>;
|
|
4594
|
-
orderId: z.ZodString;
|
|
4595
|
-
amount: z.ZodNumber;
|
|
4596
|
-
currency: z.ZodString;
|
|
4597
|
-
description: z.ZodString;
|
|
4598
|
-
language: z.ZodString;
|
|
4599
|
-
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4600
|
-
success_url: z.ZodString;
|
|
4601
|
-
}, z.core.$strip>;
|
|
4602
|
-
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
4603
|
-
}, z.core.$strip>;
|
|
4604
|
-
type InitiatePaymentInput = z.infer<typeof initiatePaymentInputSchema>;
|
|
4605
|
-
declare const initiatePaymentOutputSchema: z.ZodObject<{
|
|
4606
|
-
url: z.ZodString;
|
|
4607
|
-
}, z.core.$strip>;
|
|
4608
|
-
type InitiatePaymentOutput = z.infer<typeof initiatePaymentOutputSchema>;
|
|
4609
|
-
declare const paymentSourceSchema: z.ZodObject<{
|
|
4610
|
-
type: z.ZodOptional<z.ZodString>;
|
|
4611
|
-
company: z.ZodOptional<z.ZodString>;
|
|
4612
|
-
entryMethod: z.ZodOptional<z.ZodString>;
|
|
4613
|
-
card: z.ZodOptional<z.ZodObject<{
|
|
4614
|
-
bin: z.ZodOptional<z.ZodString>;
|
|
4615
|
-
expMonth: z.ZodOptional<z.ZodNumber>;
|
|
4616
|
-
expYear: z.ZodOptional<z.ZodNumber>;
|
|
4617
|
-
fingerprint: z.ZodOptional<z.ZodString>;
|
|
4618
|
-
last4: z.ZodOptional<z.ZodString>;
|
|
4619
|
-
}, z.core.$strip>>;
|
|
4620
|
-
digitalWalletDetails: z.ZodOptional<z.ZodObject<{
|
|
4621
|
-
type: z.ZodOptional<z.ZodString>;
|
|
4622
|
-
brand: z.ZodOptional<z.ZodString>;
|
|
4623
|
-
applicationDetails: z.ZodOptional<z.ZodUnknown>;
|
|
4624
|
-
}, z.core.$strip>>;
|
|
4625
|
-
receivedMoney: z.ZodOptional<z.ZodUnknown>;
|
|
4626
|
-
changeMoney: z.ZodOptional<z.ZodUnknown>;
|
|
4627
|
-
}, z.core.$strip>;
|
|
4628
|
-
type PaymentSource = z.infer<typeof paymentSourceSchema>;
|
|
4629
|
-
declare const recordPaymentInputSchema: z.ZodObject<{
|
|
4630
|
-
merchantId: z.ZodString;
|
|
4631
|
-
orderId: z.ZodString;
|
|
4632
|
-
payment: z.ZodObject<{
|
|
4633
|
-
paymentId: z.ZodString;
|
|
4634
|
-
amount: z.ZodNumber;
|
|
4635
|
-
currency: z.ZodString;
|
|
4636
|
-
fee: z.ZodNumber;
|
|
4637
|
-
status: z.ZodEnum<{
|
|
4638
|
-
FAILED: "FAILED";
|
|
4639
|
-
REFUNDED: "REFUNDED";
|
|
4640
|
-
PAID: "PAID";
|
|
4641
|
-
INITIATED: "INITIATED";
|
|
4642
|
-
AUTHORIZED: "AUTHORIZED";
|
|
4643
|
-
CAPTURED: "CAPTURED";
|
|
4644
|
-
VOIDED: "VOIDED";
|
|
4645
|
-
VERIFIED: "VERIFIED";
|
|
4646
|
-
}>;
|
|
4647
|
-
gateway: z.ZodNullable<z.ZodEnum<{
|
|
4648
|
-
MOYASAR: "MOYASAR";
|
|
4649
|
-
}>>;
|
|
4650
|
-
source: z.ZodObject<{
|
|
4651
|
-
type: z.ZodOptional<z.ZodString>;
|
|
4652
|
-
company: z.ZodOptional<z.ZodString>;
|
|
4653
|
-
entryMethod: z.ZodOptional<z.ZodString>;
|
|
4654
|
-
card: z.ZodOptional<z.ZodObject<{
|
|
4655
|
-
bin: z.ZodOptional<z.ZodString>;
|
|
4656
|
-
expMonth: z.ZodOptional<z.ZodNumber>;
|
|
4657
|
-
expYear: z.ZodOptional<z.ZodNumber>;
|
|
4658
|
-
fingerprint: z.ZodOptional<z.ZodString>;
|
|
4659
|
-
last4: z.ZodOptional<z.ZodString>;
|
|
4660
|
-
}, z.core.$strip>>;
|
|
4661
|
-
digitalWalletDetails: z.ZodOptional<z.ZodObject<{
|
|
4662
|
-
type: z.ZodOptional<z.ZodString>;
|
|
4663
|
-
brand: z.ZodOptional<z.ZodString>;
|
|
4664
|
-
applicationDetails: z.ZodOptional<z.ZodUnknown>;
|
|
4665
|
-
}, z.core.$strip>>;
|
|
4666
|
-
receivedMoney: z.ZodOptional<z.ZodUnknown>;
|
|
4667
|
-
changeMoney: z.ZodOptional<z.ZodUnknown>;
|
|
4668
|
-
}, z.core.$strip>;
|
|
4669
|
-
metadata: z.ZodUnknown;
|
|
4670
|
-
ip: z.ZodOptional<z.ZodString>;
|
|
4671
|
-
}, z.core.$strip>;
|
|
4672
|
-
}, z.core.$strip>;
|
|
4673
|
-
type RecordPaymentInput = z.infer<typeof recordPaymentInputSchema>;
|
|
4674
|
-
declare const refundPaymentInputSchema: z.ZodObject<{
|
|
4675
|
-
paymentId: z.ZodString;
|
|
4676
|
-
amount: z.ZodNumber;
|
|
4677
|
-
}, z.core.$strip>;
|
|
4678
|
-
type RefundPaymentInput = z.infer<typeof refundPaymentInputSchema>;
|
|
4679
|
-
declare const paymentOutputSchema: z.ZodObject<{
|
|
4680
|
-
id: z.ZodString;
|
|
4681
|
-
amount: z.ZodNumber;
|
|
4682
|
-
currency: z.ZodString;
|
|
4683
|
-
fee: z.ZodNumber;
|
|
4684
|
-
status: z.ZodEnum<{
|
|
4685
|
-
FAILED: "FAILED";
|
|
4686
|
-
REFUNDED: "REFUNDED";
|
|
4687
|
-
PAID: "PAID";
|
|
4688
|
-
INITIATED: "INITIATED";
|
|
4689
|
-
AUTHORIZED: "AUTHORIZED";
|
|
4690
|
-
CAPTURED: "CAPTURED";
|
|
4691
|
-
VOIDED: "VOIDED";
|
|
4692
|
-
VERIFIED: "VERIFIED";
|
|
4693
|
-
}>;
|
|
4694
|
-
gateway: z.ZodNullable<z.ZodEnum<{
|
|
4695
|
-
MOYASAR: "MOYASAR";
|
|
4696
|
-
}>>;
|
|
4697
|
-
source: z.ZodObject<{
|
|
4698
|
-
type: z.ZodOptional<z.ZodString>;
|
|
4699
|
-
company: z.ZodOptional<z.ZodString>;
|
|
4700
|
-
entryMethod: z.ZodOptional<z.ZodString>;
|
|
4701
|
-
card: z.ZodOptional<z.ZodObject<{
|
|
4702
|
-
bin: z.ZodOptional<z.ZodString>;
|
|
4703
|
-
expMonth: z.ZodOptional<z.ZodNumber>;
|
|
4704
|
-
expYear: z.ZodOptional<z.ZodNumber>;
|
|
4705
|
-
fingerprint: z.ZodOptional<z.ZodString>;
|
|
4706
|
-
last4: z.ZodOptional<z.ZodString>;
|
|
4707
|
-
}, z.core.$strip>>;
|
|
4708
|
-
digitalWalletDetails: z.ZodOptional<z.ZodObject<{
|
|
4709
|
-
type: z.ZodOptional<z.ZodString>;
|
|
4710
|
-
brand: z.ZodOptional<z.ZodString>;
|
|
4711
|
-
applicationDetails: z.ZodOptional<z.ZodUnknown>;
|
|
4712
|
-
}, z.core.$strip>>;
|
|
4713
|
-
receivedMoney: z.ZodOptional<z.ZodUnknown>;
|
|
4714
|
-
changeMoney: z.ZodOptional<z.ZodUnknown>;
|
|
4715
|
-
}, z.core.$strip>;
|
|
4716
|
-
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
4717
|
-
ip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4718
|
-
orderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4719
|
-
createdAt: z.ZodDate;
|
|
4720
|
-
updatedAt: z.ZodDate;
|
|
4721
|
-
}, z.core.$strip>;
|
|
4722
|
-
type PaymentOutput = z.infer<typeof paymentOutputSchema>;
|
|
4723
|
-
declare const paymentListItemSchema: z.ZodObject<{
|
|
4724
|
-
id: z.ZodString;
|
|
4725
|
-
amount: z.ZodNumber;
|
|
4726
|
-
currency: z.ZodString;
|
|
4727
|
-
fee: z.ZodNumber;
|
|
4728
|
-
status: z.ZodEnum<{
|
|
4729
|
-
FAILED: "FAILED";
|
|
4730
|
-
REFUNDED: "REFUNDED";
|
|
4731
|
-
PAID: "PAID";
|
|
4732
|
-
INITIATED: "INITIATED";
|
|
4733
|
-
AUTHORIZED: "AUTHORIZED";
|
|
4734
|
-
CAPTURED: "CAPTURED";
|
|
4735
|
-
VOIDED: "VOIDED";
|
|
4736
|
-
VERIFIED: "VERIFIED";
|
|
4737
|
-
}>;
|
|
4738
|
-
gateway: z.ZodNullable<z.ZodEnum<{
|
|
4739
|
-
MOYASAR: "MOYASAR";
|
|
4740
|
-
}>>;
|
|
4741
|
-
source: z.ZodObject<{
|
|
4742
|
-
type: z.ZodOptional<z.ZodString>;
|
|
4743
|
-
company: z.ZodOptional<z.ZodString>;
|
|
4744
|
-
entryMethod: z.ZodOptional<z.ZodString>;
|
|
4745
|
-
card: z.ZodOptional<z.ZodObject<{
|
|
4746
|
-
bin: z.ZodOptional<z.ZodString>;
|
|
4747
|
-
expMonth: z.ZodOptional<z.ZodNumber>;
|
|
4748
|
-
expYear: z.ZodOptional<z.ZodNumber>;
|
|
4749
|
-
fingerprint: z.ZodOptional<z.ZodString>;
|
|
4750
|
-
last4: z.ZodOptional<z.ZodString>;
|
|
4751
|
-
}, z.core.$strip>>;
|
|
4752
|
-
digitalWalletDetails: z.ZodOptional<z.ZodObject<{
|
|
4753
|
-
type: z.ZodOptional<z.ZodString>;
|
|
4754
|
-
brand: z.ZodOptional<z.ZodString>;
|
|
4755
|
-
applicationDetails: z.ZodOptional<z.ZodUnknown>;
|
|
4756
|
-
}, z.core.$strip>>;
|
|
4757
|
-
receivedMoney: z.ZodOptional<z.ZodUnknown>;
|
|
4758
|
-
changeMoney: z.ZodOptional<z.ZodUnknown>;
|
|
4759
|
-
}, z.core.$strip>;
|
|
4760
|
-
orderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4761
|
-
createdAt: z.ZodDate;
|
|
4762
|
-
}, z.core.$strip>;
|
|
4763
|
-
type PaymentListItem = z.infer<typeof paymentListItemSchema>;
|
|
4764
|
-
declare const paymentFilterSchema: z.ZodObject<{
|
|
4765
|
-
merchantId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
4766
|
-
orderId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
4767
|
-
status: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
4768
|
-
FAILED: "FAILED";
|
|
4769
|
-
REFUNDED: "REFUNDED";
|
|
4770
|
-
PAID: "PAID";
|
|
4771
|
-
INITIATED: "INITIATED";
|
|
4772
|
-
AUTHORIZED: "AUTHORIZED";
|
|
4773
|
-
CAPTURED: "CAPTURED";
|
|
4774
|
-
VOIDED: "VOIDED";
|
|
4775
|
-
VERIFIED: "VERIFIED";
|
|
4776
|
-
}>>>;
|
|
4777
|
-
gateway: z.ZodOptional<z.ZodNullable<z.ZodNullable<z.ZodEnum<{
|
|
4778
|
-
MOYASAR: "MOYASAR";
|
|
4779
|
-
}>>>>;
|
|
4780
|
-
startTime: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
4781
|
-
endTime: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
4782
|
-
}, z.core.$strip>;
|
|
4783
|
-
type PaymentFilter = z.infer<typeof paymentFilterSchema>;
|
|
4784
|
-
declare const listPaymentsInputSchema: z.ZodObject<{
|
|
4785
|
-
pagination: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
4786
|
-
page: z.ZodDefault<z.ZodNumber>;
|
|
4787
|
-
pageSize: z.ZodDefault<z.ZodNumber>;
|
|
4788
|
-
}, z.core.$strip>>>;
|
|
4789
|
-
filter: z.ZodOptional<z.ZodObject<{
|
|
4790
|
-
merchantId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
4791
|
-
orderId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
4792
|
-
status: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
4793
|
-
FAILED: "FAILED";
|
|
4794
|
-
REFUNDED: "REFUNDED";
|
|
4795
|
-
PAID: "PAID";
|
|
4796
|
-
INITIATED: "INITIATED";
|
|
4797
|
-
AUTHORIZED: "AUTHORIZED";
|
|
4798
|
-
CAPTURED: "CAPTURED";
|
|
4799
|
-
VOIDED: "VOIDED";
|
|
4800
|
-
VERIFIED: "VERIFIED";
|
|
4801
|
-
}>>>;
|
|
4802
|
-
gateway: z.ZodOptional<z.ZodNullable<z.ZodNullable<z.ZodEnum<{
|
|
4803
|
-
MOYASAR: "MOYASAR";
|
|
4804
|
-
}>>>>;
|
|
4805
|
-
startTime: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
4806
|
-
endTime: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
4807
|
-
}, z.core.$strip>>;
|
|
4808
|
-
sort: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
4809
|
-
asc: "asc";
|
|
4810
|
-
desc: "desc";
|
|
4811
|
-
}>>>;
|
|
4812
|
-
}, z.core.$strip>;
|
|
4813
|
-
type ListPaymentsInput = z.infer<typeof listPaymentsInputSchema>;
|
|
4814
|
-
declare const listPaymentsOutputSchema: z.ZodObject<{
|
|
4815
|
-
items: z.ZodArray<z.ZodObject<{
|
|
4816
|
-
id: z.ZodString;
|
|
4817
|
-
amount: z.ZodNumber;
|
|
4818
|
-
currency: z.ZodString;
|
|
4819
|
-
fee: z.ZodNumber;
|
|
4820
|
-
status: z.ZodEnum<{
|
|
4821
|
-
FAILED: "FAILED";
|
|
4822
|
-
REFUNDED: "REFUNDED";
|
|
4823
|
-
PAID: "PAID";
|
|
4824
|
-
INITIATED: "INITIATED";
|
|
4825
|
-
AUTHORIZED: "AUTHORIZED";
|
|
4826
|
-
CAPTURED: "CAPTURED";
|
|
4827
|
-
VOIDED: "VOIDED";
|
|
4828
|
-
VERIFIED: "VERIFIED";
|
|
4829
|
-
}>;
|
|
4830
|
-
gateway: z.ZodNullable<z.ZodEnum<{
|
|
4831
|
-
MOYASAR: "MOYASAR";
|
|
4832
|
-
}>>;
|
|
4833
|
-
source: z.ZodObject<{
|
|
4834
|
-
type: z.ZodOptional<z.ZodString>;
|
|
4835
|
-
company: z.ZodOptional<z.ZodString>;
|
|
4836
|
-
entryMethod: z.ZodOptional<z.ZodString>;
|
|
4837
|
-
card: z.ZodOptional<z.ZodObject<{
|
|
4838
|
-
bin: z.ZodOptional<z.ZodString>;
|
|
4839
|
-
expMonth: z.ZodOptional<z.ZodNumber>;
|
|
4840
|
-
expYear: z.ZodOptional<z.ZodNumber>;
|
|
4841
|
-
fingerprint: z.ZodOptional<z.ZodString>;
|
|
4842
|
-
last4: z.ZodOptional<z.ZodString>;
|
|
4843
|
-
}, z.core.$strip>>;
|
|
4844
|
-
digitalWalletDetails: z.ZodOptional<z.ZodObject<{
|
|
4845
|
-
type: z.ZodOptional<z.ZodString>;
|
|
4846
|
-
brand: z.ZodOptional<z.ZodString>;
|
|
4847
|
-
applicationDetails: z.ZodOptional<z.ZodUnknown>;
|
|
4848
|
-
}, z.core.$strip>>;
|
|
4849
|
-
receivedMoney: z.ZodOptional<z.ZodUnknown>;
|
|
4850
|
-
changeMoney: z.ZodOptional<z.ZodUnknown>;
|
|
4851
|
-
}, z.core.$strip>;
|
|
4852
|
-
orderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4853
|
-
createdAt: z.ZodDate;
|
|
4854
|
-
}, z.core.$strip>>;
|
|
4855
|
-
pagination: z.ZodObject<{
|
|
4856
|
-
page: z.ZodNumber;
|
|
4857
|
-
pageSize: z.ZodNumber;
|
|
4858
|
-
totalItems: z.ZodNumber;
|
|
4859
|
-
totalPages: z.ZodNumber;
|
|
4860
|
-
}, z.core.$strip>;
|
|
4861
|
-
}, z.core.$strip>;
|
|
4862
|
-
type ListPaymentsOutput = z.infer<typeof listPaymentsOutputSchema>;
|
|
4863
|
-
declare const getPaymentInputSchema: z.ZodObject<{
|
|
4864
|
-
paymentId: z.ZodUUID;
|
|
4865
|
-
}, z.core.$strip>;
|
|
4866
|
-
type GetPaymentInput = z.infer<typeof getPaymentInputSchema>;
|
|
4867
|
-
declare const refundOrderInputSchema: z.ZodObject<{
|
|
4868
|
-
orderId: z.ZodUUID;
|
|
4869
|
-
amount: z.ZodOptional<z.ZodNumber>;
|
|
4870
|
-
}, z.core.$strip>;
|
|
4871
|
-
type RefundOrderInput = z.infer<typeof refundOrderInputSchema>;
|
|
4872
|
-
declare const refundOrderOutputSchema: z.ZodObject<{
|
|
4873
|
-
orderId: z.ZodString;
|
|
4874
|
-
refundInitiated: z.ZodBoolean;
|
|
4875
|
-
paymentIds: z.ZodArray<z.ZodString>;
|
|
4876
|
-
message: z.ZodString;
|
|
4877
|
-
}, z.core.$strip>;
|
|
4878
|
-
type RefundOrderOutput = z.infer<typeof refundOrderOutputSchema>;
|
|
4879
|
-
//#endregion
|
|
4880
4976
|
//#region src/schema/payouts.d.ts
|
|
4881
4977
|
declare const payoutStatusSchema: z.ZodEnum<{
|
|
4882
4978
|
CANCELLED: "CANCELLED";
|
|
4883
4979
|
FAILED: "FAILED";
|
|
4884
|
-
PENDING: "PENDING";
|
|
4885
4980
|
PAID: "PAID";
|
|
4981
|
+
PENDING: "PENDING";
|
|
4886
4982
|
QUEUED: "QUEUED";
|
|
4887
4983
|
PROCESSING: "PROCESSING";
|
|
4888
4984
|
}>;
|
|
@@ -4917,8 +5013,8 @@ declare const payoutSchema: z.ZodObject<{
|
|
|
4917
5013
|
status: z.ZodEnum<{
|
|
4918
5014
|
CANCELLED: "CANCELLED";
|
|
4919
5015
|
FAILED: "FAILED";
|
|
4920
|
-
PENDING: "PENDING";
|
|
4921
5016
|
PAID: "PAID";
|
|
5017
|
+
PENDING: "PENDING";
|
|
4922
5018
|
QUEUED: "QUEUED";
|
|
4923
5019
|
PROCESSING: "PROCESSING";
|
|
4924
5020
|
}>;
|
|
@@ -4945,8 +5041,8 @@ declare const listPayoutsInputSchema: z.ZodObject<{
|
|
|
4945
5041
|
status: z.ZodOptional<z.ZodEnum<{
|
|
4946
5042
|
CANCELLED: "CANCELLED";
|
|
4947
5043
|
FAILED: "FAILED";
|
|
4948
|
-
PENDING: "PENDING";
|
|
4949
5044
|
PAID: "PAID";
|
|
5045
|
+
PENDING: "PENDING";
|
|
4950
5046
|
QUEUED: "QUEUED";
|
|
4951
5047
|
PROCESSING: "PROCESSING";
|
|
4952
5048
|
}>>;
|
|
@@ -4961,8 +5057,8 @@ declare const listPayoutsOutputSchema: z.ZodObject<{
|
|
|
4961
5057
|
status: z.ZodEnum<{
|
|
4962
5058
|
CANCELLED: "CANCELLED";
|
|
4963
5059
|
FAILED: "FAILED";
|
|
4964
|
-
PENDING: "PENDING";
|
|
4965
5060
|
PAID: "PAID";
|
|
5061
|
+
PENDING: "PENDING";
|
|
4966
5062
|
QUEUED: "QUEUED";
|
|
4967
5063
|
PROCESSING: "PROCESSING";
|
|
4968
5064
|
}>;
|
|
@@ -5166,7 +5262,7 @@ declare const payoutReportPaymentSchema: z.ZodObject<{
|
|
|
5166
5262
|
id: z.ZodString;
|
|
5167
5263
|
method: z.ZodEnum<{
|
|
5168
5264
|
COD: "COD";
|
|
5169
|
-
|
|
5265
|
+
ONLINE: "ONLINE";
|
|
5170
5266
|
}>;
|
|
5171
5267
|
gateway: z.ZodNullable<z.ZodEnum<{
|
|
5172
5268
|
MOYASAR: "MOYASAR";
|
|
@@ -5176,8 +5272,8 @@ declare const payoutReportPaymentSchema: z.ZodObject<{
|
|
|
5176
5272
|
status: z.ZodEnum<{
|
|
5177
5273
|
FAILED: "FAILED";
|
|
5178
5274
|
REFUNDED: "REFUNDED";
|
|
5179
|
-
PAID: "PAID";
|
|
5180
5275
|
INITIATED: "INITIATED";
|
|
5276
|
+
PAID: "PAID";
|
|
5181
5277
|
AUTHORIZED: "AUTHORIZED";
|
|
5182
5278
|
CAPTURED: "CAPTURED";
|
|
5183
5279
|
VOIDED: "VOIDED";
|
|
@@ -5273,11 +5369,12 @@ declare const payoutReportOrderSchema: z.ZodObject<{
|
|
|
5273
5369
|
platformFee: z.ZodBigInt;
|
|
5274
5370
|
paymentFee: z.ZodBigInt;
|
|
5275
5371
|
netPayout: z.ZodBigInt;
|
|
5372
|
+
platformFeeDiscount: z.ZodBigInt;
|
|
5276
5373
|
payments: z.ZodArray<z.ZodObject<{
|
|
5277
5374
|
id: z.ZodString;
|
|
5278
5375
|
method: z.ZodEnum<{
|
|
5279
5376
|
COD: "COD";
|
|
5280
|
-
|
|
5377
|
+
ONLINE: "ONLINE";
|
|
5281
5378
|
}>;
|
|
5282
5379
|
gateway: z.ZodNullable<z.ZodEnum<{
|
|
5283
5380
|
MOYASAR: "MOYASAR";
|
|
@@ -5287,8 +5384,8 @@ declare const payoutReportOrderSchema: z.ZodObject<{
|
|
|
5287
5384
|
status: z.ZodEnum<{
|
|
5288
5385
|
FAILED: "FAILED";
|
|
5289
5386
|
REFUNDED: "REFUNDED";
|
|
5290
|
-
PAID: "PAID";
|
|
5291
5387
|
INITIATED: "INITIATED";
|
|
5388
|
+
PAID: "PAID";
|
|
5292
5389
|
AUTHORIZED: "AUTHORIZED";
|
|
5293
5390
|
CAPTURED: "CAPTURED";
|
|
5294
5391
|
VOIDED: "VOIDED";
|
|
@@ -5304,12 +5401,24 @@ type PayoutReportOrder = z.infer<typeof payoutReportOrderSchema>;
|
|
|
5304
5401
|
*/
|
|
5305
5402
|
declare const payoutReportOverallSchema: z.ZodObject<{
|
|
5306
5403
|
totalRevenue: z.ZodBigInt;
|
|
5404
|
+
totalHeldAmount: z.ZodBigInt;
|
|
5307
5405
|
totalPlatformFee: z.ZodBigInt;
|
|
5406
|
+
totalCancelledPlatformFee: z.ZodBigInt;
|
|
5308
5407
|
totalPaymentFee: z.ZodBigInt;
|
|
5309
5408
|
totalNetPayout: z.ZodBigInt;
|
|
5409
|
+
totalPayoutAmount: z.ZodBigInt;
|
|
5410
|
+
totalDueAmount: z.ZodBigInt;
|
|
5310
5411
|
orderCount: z.ZodNumber;
|
|
5311
5412
|
onlinePaymentCount: z.ZodNumber;
|
|
5312
5413
|
cashPaymentCount: z.ZodNumber;
|
|
5414
|
+
totalDineInPlatformFeeDiscount: z.ZodBigInt;
|
|
5415
|
+
dineInOrderCount: z.ZodNumber;
|
|
5416
|
+
completedRevenueMinor: z.ZodBigInt;
|
|
5417
|
+
cancelledRevenueMinor: z.ZodBigInt;
|
|
5418
|
+
failedRevenueMinor: z.ZodBigInt;
|
|
5419
|
+
missingRevenueMinor: z.ZodBigInt;
|
|
5420
|
+
dineInRevenueMinor: z.ZodBigInt;
|
|
5421
|
+
dineInGatewayFeeMinor: z.ZodBigInt;
|
|
5313
5422
|
}, z.core.$strip>;
|
|
5314
5423
|
type PayoutReportOverall = z.infer<typeof payoutReportOverallSchema>;
|
|
5315
5424
|
/**
|
|
@@ -5332,11 +5441,13 @@ declare const payoutReportSummarySchema: z.ZodObject<{
|
|
|
5332
5441
|
canceledCount: z.ZodNumber;
|
|
5333
5442
|
refundedCount: z.ZodNumber;
|
|
5334
5443
|
otherCount: z.ZodNumber;
|
|
5444
|
+
newCount: z.ZodNumber;
|
|
5445
|
+
failedCount: z.ZodNumber;
|
|
5335
5446
|
}, z.core.$strip>;
|
|
5336
5447
|
byPaymentMethod: z.ZodArray<z.ZodObject<{
|
|
5337
5448
|
method: z.ZodEnum<{
|
|
5338
5449
|
COD: "COD";
|
|
5339
|
-
|
|
5450
|
+
ONLINE: "ONLINE";
|
|
5340
5451
|
}>;
|
|
5341
5452
|
orderCount: z.ZodNumber;
|
|
5342
5453
|
revenue: z.ZodBigInt;
|
|
@@ -5349,6 +5460,7 @@ declare const payoutReportSummarySchema: z.ZodObject<{
|
|
|
5349
5460
|
netPayout: z.ZodBigInt;
|
|
5350
5461
|
}, z.core.$strip>>;
|
|
5351
5462
|
averageOrderValue: z.ZodBigInt;
|
|
5463
|
+
completionRate: z.ZodNumber;
|
|
5352
5464
|
topItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5353
5465
|
itemId: z.ZodString;
|
|
5354
5466
|
name: z.ZodString;
|
|
@@ -5363,12 +5475,24 @@ type PayoutReportSummary = z.infer<typeof payoutReportSummarySchema>;
|
|
|
5363
5475
|
declare const payoutReportOutputSchema: z.ZodObject<{
|
|
5364
5476
|
overall: z.ZodObject<{
|
|
5365
5477
|
totalRevenue: z.ZodBigInt;
|
|
5478
|
+
totalHeldAmount: z.ZodBigInt;
|
|
5366
5479
|
totalPlatformFee: z.ZodBigInt;
|
|
5480
|
+
totalCancelledPlatformFee: z.ZodBigInt;
|
|
5367
5481
|
totalPaymentFee: z.ZodBigInt;
|
|
5368
5482
|
totalNetPayout: z.ZodBigInt;
|
|
5483
|
+
totalPayoutAmount: z.ZodBigInt;
|
|
5484
|
+
totalDueAmount: z.ZodBigInt;
|
|
5369
5485
|
orderCount: z.ZodNumber;
|
|
5370
5486
|
onlinePaymentCount: z.ZodNumber;
|
|
5371
5487
|
cashPaymentCount: z.ZodNumber;
|
|
5488
|
+
totalDineInPlatformFeeDiscount: z.ZodBigInt;
|
|
5489
|
+
dineInOrderCount: z.ZodNumber;
|
|
5490
|
+
completedRevenueMinor: z.ZodBigInt;
|
|
5491
|
+
cancelledRevenueMinor: z.ZodBigInt;
|
|
5492
|
+
failedRevenueMinor: z.ZodBigInt;
|
|
5493
|
+
missingRevenueMinor: z.ZodBigInt;
|
|
5494
|
+
dineInRevenueMinor: z.ZodBigInt;
|
|
5495
|
+
dineInGatewayFeeMinor: z.ZodBigInt;
|
|
5372
5496
|
}, z.core.$strip>;
|
|
5373
5497
|
summary: z.ZodObject<{
|
|
5374
5498
|
byFulfillmentType: z.ZodArray<z.ZodObject<{
|
|
@@ -5387,11 +5511,13 @@ declare const payoutReportOutputSchema: z.ZodObject<{
|
|
|
5387
5511
|
canceledCount: z.ZodNumber;
|
|
5388
5512
|
refundedCount: z.ZodNumber;
|
|
5389
5513
|
otherCount: z.ZodNumber;
|
|
5514
|
+
newCount: z.ZodNumber;
|
|
5515
|
+
failedCount: z.ZodNumber;
|
|
5390
5516
|
}, z.core.$strip>;
|
|
5391
5517
|
byPaymentMethod: z.ZodArray<z.ZodObject<{
|
|
5392
5518
|
method: z.ZodEnum<{
|
|
5393
5519
|
COD: "COD";
|
|
5394
|
-
|
|
5520
|
+
ONLINE: "ONLINE";
|
|
5395
5521
|
}>;
|
|
5396
5522
|
orderCount: z.ZodNumber;
|
|
5397
5523
|
revenue: z.ZodBigInt;
|
|
@@ -5404,6 +5530,7 @@ declare const payoutReportOutputSchema: z.ZodObject<{
|
|
|
5404
5530
|
netPayout: z.ZodBigInt;
|
|
5405
5531
|
}, z.core.$strip>>;
|
|
5406
5532
|
averageOrderValue: z.ZodBigInt;
|
|
5533
|
+
completionRate: z.ZodNumber;
|
|
5407
5534
|
topItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5408
5535
|
itemId: z.ZodString;
|
|
5409
5536
|
name: z.ZodString;
|
|
@@ -5468,11 +5595,12 @@ declare const payoutReportOutputSchema: z.ZodObject<{
|
|
|
5468
5595
|
platformFee: z.ZodBigInt;
|
|
5469
5596
|
paymentFee: z.ZodBigInt;
|
|
5470
5597
|
netPayout: z.ZodBigInt;
|
|
5598
|
+
platformFeeDiscount: z.ZodBigInt;
|
|
5471
5599
|
payments: z.ZodArray<z.ZodObject<{
|
|
5472
5600
|
id: z.ZodString;
|
|
5473
5601
|
method: z.ZodEnum<{
|
|
5474
5602
|
COD: "COD";
|
|
5475
|
-
|
|
5603
|
+
ONLINE: "ONLINE";
|
|
5476
5604
|
}>;
|
|
5477
5605
|
gateway: z.ZodNullable<z.ZodEnum<{
|
|
5478
5606
|
MOYASAR: "MOYASAR";
|
|
@@ -5482,8 +5610,8 @@ declare const payoutReportOutputSchema: z.ZodObject<{
|
|
|
5482
5610
|
status: z.ZodEnum<{
|
|
5483
5611
|
FAILED: "FAILED";
|
|
5484
5612
|
REFUNDED: "REFUNDED";
|
|
5485
|
-
PAID: "PAID";
|
|
5486
5613
|
INITIATED: "INITIATED";
|
|
5614
|
+
PAID: "PAID";
|
|
5487
5615
|
AUTHORIZED: "AUTHORIZED";
|
|
5488
5616
|
CAPTURED: "CAPTURED";
|
|
5489
5617
|
VOIDED: "VOIDED";
|
|
@@ -5497,7 +5625,7 @@ declare const payoutReportOutputSchema: z.ZodObject<{
|
|
|
5497
5625
|
type PayoutReportOutput = z.infer<typeof payoutReportOutputSchema>;
|
|
5498
5626
|
//#endregion
|
|
5499
5627
|
//#region src/schema/promocodes.d.ts
|
|
5500
|
-
declare const promoCodeAmountSchema: z.
|
|
5628
|
+
declare const promoCodeAmountSchema: z.ZodCoercedBigInt<unknown>;
|
|
5501
5629
|
declare const promoCodeScopes: readonly ["APP", "LOCATION"];
|
|
5502
5630
|
declare const promoCodeDiscountTypes: readonly ["PERCENTAGE", "FIXED_AMOUNT"];
|
|
5503
5631
|
declare const promoCodeApplicationTargets: readonly ["DELIVERY", "PICKUP", "CURBSIDE", "DINEIN", "SHIPPING"];
|
|
@@ -5510,7 +5638,7 @@ declare const promoCodeConfigurationSchema: z.ZodObject<{
|
|
|
5510
5638
|
CURBSIDE: "CURBSIDE";
|
|
5511
5639
|
SHIPPING: "SHIPPING";
|
|
5512
5640
|
}>>>>>;
|
|
5513
|
-
minOrderAmount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.
|
|
5641
|
+
minOrderAmount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>>;
|
|
5514
5642
|
maxDiscountAmount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
5515
5643
|
}, z.core.$strip>;
|
|
5516
5644
|
declare const promoCodeBaseSchema: z.ZodObject<{
|
|
@@ -5538,7 +5666,7 @@ declare const promoCodeBaseSchema: z.ZodObject<{
|
|
|
5538
5666
|
CURBSIDE: "CURBSIDE";
|
|
5539
5667
|
SHIPPING: "SHIPPING";
|
|
5540
5668
|
}>>>>>;
|
|
5541
|
-
minOrderAmount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.
|
|
5669
|
+
minOrderAmount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>>;
|
|
5542
5670
|
maxDiscountAmount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
5543
5671
|
}, z.core.$strip>>>;
|
|
5544
5672
|
isActive: z.ZodBoolean;
|
|
@@ -5572,7 +5700,7 @@ declare const createPromoCodeInputSchema: z.ZodObject<{
|
|
|
5572
5700
|
CURBSIDE: "CURBSIDE";
|
|
5573
5701
|
SHIPPING: "SHIPPING";
|
|
5574
5702
|
}>>>>>;
|
|
5575
|
-
minOrderAmount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.
|
|
5703
|
+
minOrderAmount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>>;
|
|
5576
5704
|
maxDiscountAmount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
5577
5705
|
}, z.core.$strip>>>;
|
|
5578
5706
|
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -5604,7 +5732,7 @@ declare const updatePromoCodeInputSchema: z.ZodObject<{
|
|
|
5604
5732
|
CURBSIDE: "CURBSIDE";
|
|
5605
5733
|
SHIPPING: "SHIPPING";
|
|
5606
5734
|
}>>>>>;
|
|
5607
|
-
minOrderAmount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.
|
|
5735
|
+
minOrderAmount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>>;
|
|
5608
5736
|
maxDiscountAmount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
5609
5737
|
}, z.core.$strip>>>>;
|
|
5610
5738
|
isActive: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
@@ -5668,7 +5796,7 @@ declare const promoCodeValidationInputSchema: z.ZodObject<{
|
|
|
5668
5796
|
code: z.ZodString;
|
|
5669
5797
|
merchantId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
5670
5798
|
locationId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
5671
|
-
orderTotalAmount: z.ZodOptional<z.ZodNullable<z.
|
|
5799
|
+
orderTotalAmount: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
|
|
5672
5800
|
orderType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
5673
5801
|
PICKUP: "PICKUP";
|
|
5674
5802
|
DELIVERY: "DELIVERY";
|
|
@@ -5706,7 +5834,7 @@ declare const promoCodeValidationResultSchema: z.ZodObject<{
|
|
|
5706
5834
|
CURBSIDE: "CURBSIDE";
|
|
5707
5835
|
SHIPPING: "SHIPPING";
|
|
5708
5836
|
}>>>>>;
|
|
5709
|
-
minOrderAmount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.
|
|
5837
|
+
minOrderAmount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>>;
|
|
5710
5838
|
maxDiscountAmount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
5711
5839
|
}, z.core.$strip>>>;
|
|
5712
5840
|
isActive: z.ZodBoolean;
|
|
@@ -5715,9 +5843,9 @@ declare const promoCodeValidationResultSchema: z.ZodObject<{
|
|
|
5715
5843
|
createdAt: z.ZodDate;
|
|
5716
5844
|
updatedAt: z.ZodDate;
|
|
5717
5845
|
}, z.core.$strip>>>;
|
|
5718
|
-
discountAmount: z.ZodOptional<z.ZodNullable<z.
|
|
5719
|
-
totalAmount: z.ZodOptional<z.ZodNullable<z.
|
|
5720
|
-
originalAmount: z.ZodOptional<z.ZodNullable<z.
|
|
5846
|
+
discountAmount: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
|
|
5847
|
+
totalAmount: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
|
|
5848
|
+
originalAmount: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
|
|
5721
5849
|
}, z.core.$strip>;
|
|
5722
5850
|
declare const promoCodeListOutputSchema: z.ZodObject<{
|
|
5723
5851
|
items: z.ZodArray<z.ZodObject<{
|
|
@@ -5745,7 +5873,7 @@ declare const promoCodeListOutputSchema: z.ZodObject<{
|
|
|
5745
5873
|
CURBSIDE: "CURBSIDE";
|
|
5746
5874
|
SHIPPING: "SHIPPING";
|
|
5747
5875
|
}>>>>>;
|
|
5748
|
-
minOrderAmount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.
|
|
5876
|
+
minOrderAmount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>>;
|
|
5749
5877
|
maxDiscountAmount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
5750
5878
|
}, z.core.$strip>>>;
|
|
5751
5879
|
isActive: z.ZodBoolean;
|
|
@@ -5787,7 +5915,7 @@ declare const promoCodeOutputSchema: z.ZodObject<{
|
|
|
5787
5915
|
CURBSIDE: "CURBSIDE";
|
|
5788
5916
|
SHIPPING: "SHIPPING";
|
|
5789
5917
|
}>>>>>;
|
|
5790
|
-
minOrderAmount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.
|
|
5918
|
+
minOrderAmount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>>;
|
|
5791
5919
|
maxDiscountAmount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
5792
5920
|
}, z.core.$strip>>>;
|
|
5793
5921
|
isActive: z.ZodBoolean;
|
|
@@ -5801,31 +5929,187 @@ declare const defaultPromoCodeSort: {
|
|
|
5801
5929
|
createdAt: "desc";
|
|
5802
5930
|
};
|
|
5803
5931
|
//#endregion
|
|
5804
|
-
//#region src/schema/
|
|
5805
|
-
|
|
5806
|
-
|
|
5807
|
-
|
|
5808
|
-
declare const
|
|
5809
|
-
|
|
5810
|
-
|
|
5811
|
-
|
|
5812
|
-
|
|
5813
|
-
|
|
5814
|
-
|
|
5815
|
-
|
|
5816
|
-
|
|
5817
|
-
|
|
5818
|
-
|
|
5819
|
-
|
|
5820
|
-
|
|
5821
|
-
|
|
5822
|
-
|
|
5823
|
-
|
|
5824
|
-
|
|
5825
|
-
|
|
5826
|
-
|
|
5827
|
-
|
|
5828
|
-
|
|
5932
|
+
//#region src/schema/service-charges.d.ts
|
|
5933
|
+
declare const chargeScopes: readonly ["ORDER", "LINE_ITEM"];
|
|
5934
|
+
declare const chargeTypes: readonly ["PERCENTAGE", "FIXED_AMOUNT"];
|
|
5935
|
+
declare const chargeAutoApplyScopes: readonly ["ALL_ITEMS", "CATEGORY", "SELECTED_ITEMS"];
|
|
5936
|
+
declare const serviceChargeBaseSchema: z.ZodObject<{
|
|
5937
|
+
id: z.ZodString;
|
|
5938
|
+
merchantId: z.ZodString;
|
|
5939
|
+
locationId: z.ZodString;
|
|
5940
|
+
name: z.ZodString;
|
|
5941
|
+
scope: z.ZodEnum<{
|
|
5942
|
+
ORDER: "ORDER";
|
|
5943
|
+
LINE_ITEM: "LINE_ITEM";
|
|
5944
|
+
}>;
|
|
5945
|
+
chargeType: z.ZodEnum<{
|
|
5946
|
+
PERCENTAGE: "PERCENTAGE";
|
|
5947
|
+
FIXED_AMOUNT: "FIXED_AMOUNT";
|
|
5948
|
+
}>;
|
|
5949
|
+
value: z.ZodNumber;
|
|
5950
|
+
autoApplyScope: z.ZodEnum<{
|
|
5951
|
+
ALL_ITEMS: "ALL_ITEMS";
|
|
5952
|
+
CATEGORY: "CATEGORY";
|
|
5953
|
+
SELECTED_ITEMS: "SELECTED_ITEMS";
|
|
5954
|
+
}>;
|
|
5955
|
+
isActive: z.ZodBoolean;
|
|
5956
|
+
taxable: z.ZodBoolean;
|
|
5957
|
+
startsAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
5958
|
+
endsAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
5959
|
+
createdAt: z.ZodDate;
|
|
5960
|
+
updatedAt: z.ZodDate;
|
|
5961
|
+
itemIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
5962
|
+
categoryIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
5963
|
+
}, z.core.$strip>;
|
|
5964
|
+
type ServiceCharge = z.infer<typeof serviceChargeBaseSchema>;
|
|
5965
|
+
declare const createServiceChargeInputSchema: z.ZodObject<{
|
|
5966
|
+
merchantId: z.ZodString;
|
|
5967
|
+
locationId: z.ZodString;
|
|
5968
|
+
name: z.ZodString;
|
|
5969
|
+
scope: z.ZodEnum<{
|
|
5970
|
+
ORDER: "ORDER";
|
|
5971
|
+
LINE_ITEM: "LINE_ITEM";
|
|
5972
|
+
}>;
|
|
5973
|
+
chargeType: z.ZodEnum<{
|
|
5974
|
+
PERCENTAGE: "PERCENTAGE";
|
|
5975
|
+
FIXED_AMOUNT: "FIXED_AMOUNT";
|
|
5976
|
+
}>;
|
|
5977
|
+
value: z.ZodNumber;
|
|
5978
|
+
autoApplyScope: z.ZodDefault<z.ZodEnum<{
|
|
5979
|
+
ALL_ITEMS: "ALL_ITEMS";
|
|
5980
|
+
CATEGORY: "CATEGORY";
|
|
5981
|
+
SELECTED_ITEMS: "SELECTED_ITEMS";
|
|
5982
|
+
}>>;
|
|
5983
|
+
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
5984
|
+
taxable: z.ZodDefault<z.ZodBoolean>;
|
|
5985
|
+
startsAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
5986
|
+
endsAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
5987
|
+
itemIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
5988
|
+
categoryIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
5989
|
+
}, z.core.$strip>;
|
|
5990
|
+
type CreateServiceChargeInput = z.infer<typeof createServiceChargeInputSchema>;
|
|
5991
|
+
declare const updateServiceChargeInputSchema: z.ZodObject<{
|
|
5992
|
+
serviceChargeId: z.ZodString;
|
|
5993
|
+
update: z.ZodObject<{
|
|
5994
|
+
merchantId: z.ZodOptional<z.ZodString>;
|
|
5995
|
+
locationId: z.ZodOptional<z.ZodString>;
|
|
5996
|
+
name: z.ZodOptional<z.ZodString>;
|
|
5997
|
+
scope: z.ZodOptional<z.ZodEnum<{
|
|
5998
|
+
ORDER: "ORDER";
|
|
5999
|
+
LINE_ITEM: "LINE_ITEM";
|
|
6000
|
+
}>>;
|
|
6001
|
+
chargeType: z.ZodOptional<z.ZodEnum<{
|
|
6002
|
+
PERCENTAGE: "PERCENTAGE";
|
|
6003
|
+
FIXED_AMOUNT: "FIXED_AMOUNT";
|
|
6004
|
+
}>>;
|
|
6005
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
6006
|
+
autoApplyScope: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
6007
|
+
ALL_ITEMS: "ALL_ITEMS";
|
|
6008
|
+
CATEGORY: "CATEGORY";
|
|
6009
|
+
SELECTED_ITEMS: "SELECTED_ITEMS";
|
|
6010
|
+
}>>>;
|
|
6011
|
+
isActive: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
6012
|
+
taxable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
6013
|
+
startsAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDate>>>;
|
|
6014
|
+
endsAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDate>>>;
|
|
6015
|
+
itemIds: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>>;
|
|
6016
|
+
categoryIds: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>>;
|
|
6017
|
+
}, z.core.$strip>;
|
|
6018
|
+
}, z.core.$strip>;
|
|
6019
|
+
type UpdateServiceChargeInput = z.infer<typeof updateServiceChargeInputSchema>;
|
|
6020
|
+
declare const listServiceChargesInputSchema: z.ZodObject<{
|
|
6021
|
+
merchantId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6022
|
+
locationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6023
|
+
isActive: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
6024
|
+
}, z.core.$strip>;
|
|
6025
|
+
type ListServiceChargesInput = z.infer<typeof listServiceChargesInputSchema>;
|
|
6026
|
+
declare const serviceChargeIdInputSchema: z.ZodObject<{
|
|
6027
|
+
serviceChargeId: z.ZodString;
|
|
6028
|
+
}, z.core.$strip>;
|
|
6029
|
+
declare const serviceChargeListOutputSchema: z.ZodObject<{
|
|
6030
|
+
serviceCharges: z.ZodArray<z.ZodObject<{
|
|
6031
|
+
id: z.ZodString;
|
|
6032
|
+
merchantId: z.ZodString;
|
|
6033
|
+
locationId: z.ZodString;
|
|
6034
|
+
name: z.ZodString;
|
|
6035
|
+
scope: z.ZodEnum<{
|
|
6036
|
+
ORDER: "ORDER";
|
|
6037
|
+
LINE_ITEM: "LINE_ITEM";
|
|
6038
|
+
}>;
|
|
6039
|
+
chargeType: z.ZodEnum<{
|
|
6040
|
+
PERCENTAGE: "PERCENTAGE";
|
|
6041
|
+
FIXED_AMOUNT: "FIXED_AMOUNT";
|
|
6042
|
+
}>;
|
|
6043
|
+
value: z.ZodNumber;
|
|
6044
|
+
autoApplyScope: z.ZodEnum<{
|
|
6045
|
+
ALL_ITEMS: "ALL_ITEMS";
|
|
6046
|
+
CATEGORY: "CATEGORY";
|
|
6047
|
+
SELECTED_ITEMS: "SELECTED_ITEMS";
|
|
6048
|
+
}>;
|
|
6049
|
+
isActive: z.ZodBoolean;
|
|
6050
|
+
taxable: z.ZodBoolean;
|
|
6051
|
+
startsAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
6052
|
+
endsAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
6053
|
+
createdAt: z.ZodDate;
|
|
6054
|
+
updatedAt: z.ZodDate;
|
|
6055
|
+
itemIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
6056
|
+
categoryIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
6057
|
+
}, z.core.$strip>>;
|
|
6058
|
+
}, z.core.$strip>;
|
|
6059
|
+
declare const serviceChargeOutputSchema: z.ZodObject<{
|
|
6060
|
+
id: z.ZodString;
|
|
6061
|
+
merchantId: z.ZodString;
|
|
6062
|
+
locationId: z.ZodString;
|
|
6063
|
+
name: z.ZodString;
|
|
6064
|
+
scope: z.ZodEnum<{
|
|
6065
|
+
ORDER: "ORDER";
|
|
6066
|
+
LINE_ITEM: "LINE_ITEM";
|
|
6067
|
+
}>;
|
|
6068
|
+
chargeType: z.ZodEnum<{
|
|
6069
|
+
PERCENTAGE: "PERCENTAGE";
|
|
6070
|
+
FIXED_AMOUNT: "FIXED_AMOUNT";
|
|
6071
|
+
}>;
|
|
6072
|
+
value: z.ZodNumber;
|
|
6073
|
+
autoApplyScope: z.ZodEnum<{
|
|
6074
|
+
ALL_ITEMS: "ALL_ITEMS";
|
|
6075
|
+
CATEGORY: "CATEGORY";
|
|
6076
|
+
SELECTED_ITEMS: "SELECTED_ITEMS";
|
|
6077
|
+
}>;
|
|
6078
|
+
isActive: z.ZodBoolean;
|
|
6079
|
+
taxable: z.ZodBoolean;
|
|
6080
|
+
startsAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
6081
|
+
endsAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
6082
|
+
createdAt: z.ZodDate;
|
|
6083
|
+
updatedAt: z.ZodDate;
|
|
6084
|
+
itemIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
6085
|
+
categoryIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
6086
|
+
}, z.core.$strip>;
|
|
6087
|
+
//#endregion
|
|
6088
|
+
//#region src/schema/shared.d.ts
|
|
6089
|
+
/**
|
|
6090
|
+
* Base filter schema with common time-based filtering
|
|
6091
|
+
*/
|
|
6092
|
+
declare const baseFilterSchema: z.ZodObject<{
|
|
6093
|
+
startTime: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
6094
|
+
endTime: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
6095
|
+
}, z.core.$strip>;
|
|
6096
|
+
type BaseFilter = z.infer<typeof baseFilterSchema>;
|
|
6097
|
+
/**
|
|
6098
|
+
* Sort direction enum
|
|
6099
|
+
*/
|
|
6100
|
+
declare const sortDirectionSchema: z.ZodEnum<{
|
|
6101
|
+
asc: "asc";
|
|
6102
|
+
desc: "desc";
|
|
6103
|
+
}>;
|
|
6104
|
+
type SortDirection = z.infer<typeof sortDirectionSchema>;
|
|
6105
|
+
/**
|
|
6106
|
+
* Generic sort schema - accepts any string keys but enforces "asc" | "desc" values
|
|
6107
|
+
*/
|
|
6108
|
+
declare const sortSchema: z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
6109
|
+
asc: "asc";
|
|
6110
|
+
desc: "desc";
|
|
6111
|
+
}>>;
|
|
6112
|
+
/**
|
|
5829
6113
|
* Base list input schema with pagination, filters, and sorting
|
|
5830
6114
|
*/
|
|
5831
6115
|
declare const baseListInputSchema: <T extends z.ZodRawShape>(filterSchema: z.ZodObject<T>) => z.ZodObject<{
|
|
@@ -5934,6 +6218,162 @@ declare const socialIdInputSchema: z.ZodObject<{
|
|
|
5934
6218
|
}, z.core.$strip>;
|
|
5935
6219
|
type SocialIdInput = z.infer<typeof socialIdInputSchema>;
|
|
5936
6220
|
//#endregion
|
|
6221
|
+
//#region src/schema/taxes.d.ts
|
|
6222
|
+
declare const taxScopes: readonly ["ORDER", "LINE_ITEM"];
|
|
6223
|
+
declare const taxTypes: readonly ["ADDITIVE", "INCLUSIVE"];
|
|
6224
|
+
declare const taxAutoApplyScopes: readonly ["ALL_ITEMS", "CATEGORY", "SELECTED_ITEMS"];
|
|
6225
|
+
declare const taxBaseSchema: z.ZodObject<{
|
|
6226
|
+
id: z.ZodString;
|
|
6227
|
+
merchantId: z.ZodString;
|
|
6228
|
+
locationId: z.ZodString;
|
|
6229
|
+
name: z.ZodString;
|
|
6230
|
+
scope: z.ZodEnum<{
|
|
6231
|
+
ORDER: "ORDER";
|
|
6232
|
+
LINE_ITEM: "LINE_ITEM";
|
|
6233
|
+
}>;
|
|
6234
|
+
taxType: z.ZodEnum<{
|
|
6235
|
+
ADDITIVE: "ADDITIVE";
|
|
6236
|
+
INCLUSIVE: "INCLUSIVE";
|
|
6237
|
+
}>;
|
|
6238
|
+
value: z.ZodNumber;
|
|
6239
|
+
autoApplyScope: z.ZodEnum<{
|
|
6240
|
+
ALL_ITEMS: "ALL_ITEMS";
|
|
6241
|
+
CATEGORY: "CATEGORY";
|
|
6242
|
+
SELECTED_ITEMS: "SELECTED_ITEMS";
|
|
6243
|
+
}>;
|
|
6244
|
+
isActive: z.ZodBoolean;
|
|
6245
|
+
taxable: z.ZodBoolean;
|
|
6246
|
+
startsAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
6247
|
+
endsAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
6248
|
+
createdAt: z.ZodDate;
|
|
6249
|
+
updatedAt: z.ZodDate;
|
|
6250
|
+
itemIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
6251
|
+
categoryIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
6252
|
+
}, z.core.$strip>;
|
|
6253
|
+
type Tax = z.infer<typeof taxBaseSchema>;
|
|
6254
|
+
declare const createTaxInputSchema: z.ZodObject<{
|
|
6255
|
+
merchantId: z.ZodString;
|
|
6256
|
+
locationId: z.ZodString;
|
|
6257
|
+
name: z.ZodString;
|
|
6258
|
+
scope: z.ZodEnum<{
|
|
6259
|
+
ORDER: "ORDER";
|
|
6260
|
+
LINE_ITEM: "LINE_ITEM";
|
|
6261
|
+
}>;
|
|
6262
|
+
taxType: z.ZodEnum<{
|
|
6263
|
+
ADDITIVE: "ADDITIVE";
|
|
6264
|
+
INCLUSIVE: "INCLUSIVE";
|
|
6265
|
+
}>;
|
|
6266
|
+
value: z.ZodNumber;
|
|
6267
|
+
autoApplyScope: z.ZodDefault<z.ZodEnum<{
|
|
6268
|
+
ALL_ITEMS: "ALL_ITEMS";
|
|
6269
|
+
CATEGORY: "CATEGORY";
|
|
6270
|
+
SELECTED_ITEMS: "SELECTED_ITEMS";
|
|
6271
|
+
}>>;
|
|
6272
|
+
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
6273
|
+
taxable: z.ZodDefault<z.ZodBoolean>;
|
|
6274
|
+
startsAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
6275
|
+
endsAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
6276
|
+
itemIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
6277
|
+
categoryIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
6278
|
+
}, z.core.$strip>;
|
|
6279
|
+
type CreateTaxInput = z.infer<typeof createTaxInputSchema>;
|
|
6280
|
+
declare const updateTaxInputSchema: z.ZodObject<{
|
|
6281
|
+
taxId: z.ZodString;
|
|
6282
|
+
update: z.ZodObject<{
|
|
6283
|
+
merchantId: z.ZodOptional<z.ZodString>;
|
|
6284
|
+
locationId: z.ZodOptional<z.ZodString>;
|
|
6285
|
+
name: z.ZodOptional<z.ZodString>;
|
|
6286
|
+
scope: z.ZodOptional<z.ZodEnum<{
|
|
6287
|
+
ORDER: "ORDER";
|
|
6288
|
+
LINE_ITEM: "LINE_ITEM";
|
|
6289
|
+
}>>;
|
|
6290
|
+
taxType: z.ZodOptional<z.ZodEnum<{
|
|
6291
|
+
ADDITIVE: "ADDITIVE";
|
|
6292
|
+
INCLUSIVE: "INCLUSIVE";
|
|
6293
|
+
}>>;
|
|
6294
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
6295
|
+
autoApplyScope: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
6296
|
+
ALL_ITEMS: "ALL_ITEMS";
|
|
6297
|
+
CATEGORY: "CATEGORY";
|
|
6298
|
+
SELECTED_ITEMS: "SELECTED_ITEMS";
|
|
6299
|
+
}>>>;
|
|
6300
|
+
isActive: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
6301
|
+
taxable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
6302
|
+
startsAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDate>>>;
|
|
6303
|
+
endsAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDate>>>;
|
|
6304
|
+
itemIds: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>>;
|
|
6305
|
+
categoryIds: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>>;
|
|
6306
|
+
}, z.core.$strip>;
|
|
6307
|
+
}, z.core.$strip>;
|
|
6308
|
+
type UpdateTaxInput = z.infer<typeof updateTaxInputSchema>;
|
|
6309
|
+
declare const listTaxesInputSchema: z.ZodObject<{
|
|
6310
|
+
merchantId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6311
|
+
locationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6312
|
+
isActive: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
6313
|
+
}, z.core.$strip>;
|
|
6314
|
+
type ListTaxesInput = z.infer<typeof listTaxesInputSchema>;
|
|
6315
|
+
declare const taxIdInputSchema: z.ZodObject<{
|
|
6316
|
+
taxId: z.ZodString;
|
|
6317
|
+
}, z.core.$strip>;
|
|
6318
|
+
declare const taxListOutputSchema: z.ZodObject<{
|
|
6319
|
+
taxes: z.ZodArray<z.ZodObject<{
|
|
6320
|
+
id: z.ZodString;
|
|
6321
|
+
merchantId: z.ZodString;
|
|
6322
|
+
locationId: z.ZodString;
|
|
6323
|
+
name: z.ZodString;
|
|
6324
|
+
scope: z.ZodEnum<{
|
|
6325
|
+
ORDER: "ORDER";
|
|
6326
|
+
LINE_ITEM: "LINE_ITEM";
|
|
6327
|
+
}>;
|
|
6328
|
+
taxType: z.ZodEnum<{
|
|
6329
|
+
ADDITIVE: "ADDITIVE";
|
|
6330
|
+
INCLUSIVE: "INCLUSIVE";
|
|
6331
|
+
}>;
|
|
6332
|
+
value: z.ZodNumber;
|
|
6333
|
+
autoApplyScope: z.ZodEnum<{
|
|
6334
|
+
ALL_ITEMS: "ALL_ITEMS";
|
|
6335
|
+
CATEGORY: "CATEGORY";
|
|
6336
|
+
SELECTED_ITEMS: "SELECTED_ITEMS";
|
|
6337
|
+
}>;
|
|
6338
|
+
isActive: z.ZodBoolean;
|
|
6339
|
+
taxable: z.ZodBoolean;
|
|
6340
|
+
startsAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
6341
|
+
endsAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
6342
|
+
createdAt: z.ZodDate;
|
|
6343
|
+
updatedAt: z.ZodDate;
|
|
6344
|
+
itemIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
6345
|
+
categoryIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
6346
|
+
}, z.core.$strip>>;
|
|
6347
|
+
}, z.core.$strip>;
|
|
6348
|
+
declare const taxOutputSchema: z.ZodObject<{
|
|
6349
|
+
id: z.ZodString;
|
|
6350
|
+
merchantId: z.ZodString;
|
|
6351
|
+
locationId: z.ZodString;
|
|
6352
|
+
name: z.ZodString;
|
|
6353
|
+
scope: z.ZodEnum<{
|
|
6354
|
+
ORDER: "ORDER";
|
|
6355
|
+
LINE_ITEM: "LINE_ITEM";
|
|
6356
|
+
}>;
|
|
6357
|
+
taxType: z.ZodEnum<{
|
|
6358
|
+
ADDITIVE: "ADDITIVE";
|
|
6359
|
+
INCLUSIVE: "INCLUSIVE";
|
|
6360
|
+
}>;
|
|
6361
|
+
value: z.ZodNumber;
|
|
6362
|
+
autoApplyScope: z.ZodEnum<{
|
|
6363
|
+
ALL_ITEMS: "ALL_ITEMS";
|
|
6364
|
+
CATEGORY: "CATEGORY";
|
|
6365
|
+
SELECTED_ITEMS: "SELECTED_ITEMS";
|
|
6366
|
+
}>;
|
|
6367
|
+
isActive: z.ZodBoolean;
|
|
6368
|
+
taxable: z.ZodBoolean;
|
|
6369
|
+
startsAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
6370
|
+
endsAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
6371
|
+
createdAt: z.ZodDate;
|
|
6372
|
+
updatedAt: z.ZodDate;
|
|
6373
|
+
itemIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
6374
|
+
categoryIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
6375
|
+
}, z.core.$strip>;
|
|
6376
|
+
//#endregion
|
|
5937
6377
|
//#region src/schema/translations.d.ts
|
|
5938
6378
|
/**
|
|
5939
6379
|
* TranslationField represents a multilingual field with language-specific values.
|
|
@@ -5944,4 +6384,276 @@ type SocialIdInput = z.infer<typeof socialIdInputSchema>;
|
|
|
5944
6384
|
type TranslationField = Record<string, string>;
|
|
5945
6385
|
declare const translationFieldSchema: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
5946
6386
|
//#endregion
|
|
5947
|
-
export { ANBPaymentStatus, ANBPaymentStatusResponse, ANBSinglePaymentInitiationResponse, ANBSinglePaymentRequest, ANBSinglePaymentResponse, ANBWebhookPayload, AcceptedPaymentMethod, ActiveBannerListOutput, ActiveBannerOutput, AddCurbsideSpotInput, AddProviderInput, Amount, ApproveBannerInput, type AvailableTemplateResources, AvailableWhatsAppGroup, BankAccount, Banner, BannerIdInput, BannerListOutput, BannerOutput, BaseFilter, BulkCustomerExportInput, BulkCustomerExportResult, BulkCustomerExportRow, BulkCustomerImportError, BulkCustomerImportInput, BulkCustomerImportResult, BulkCustomerImportRow, BulkCustomerImportRowClient, BusinessHours, BusinessHoursPeriod, CalculatePayoutOutput, CatalogAmount, CatalogCategory, CatalogCategoryFilter, CatalogCategoryWithItems, CatalogItemDetail, CatalogItemFilter, CatalogItemSummary, CatalogModifierBase, CatalogModifierDefaultLocationOverride, CatalogModifierFilter, CatalogModifierItemOverride, CatalogModifierListBase, CatalogModifierListDetail, CatalogModifierListFilter, CatalogModifierLocationOverride, CatalogPriceRange, CatalogVariationBase, CatalogVariationFilter, CatalogVariationWithDefault, CheckoutResult, CompanyPayoutAccount, CreateAddressForLocationInput, CreateAddressInput, CreateBannerInput, CreateCategoryInput, CreateCategoryOutput, CreateCompanyPayoutAccountInput, CreateCustomerAddressInput, CreateCustomerManualInput, CreateCustomerManualOutput, CreateDeliveryConfigForLocationInput, CreateDeliveryConfigInput, CreateDeliveryWindowInput, CreateDiscountInput, CreateImageInput, CreateImageOutput, CreateItemInput, CreateItemOutput, CreateLeadForAdminInput, CreateLeadForAdminOutput, CreateLocationInput, CreateMerchantCustomerManualInput, CreateMerchantCustomerManualOutput, CreateMerchantInvoiceInput, CreateMerchantLegalDetailsInput, CreateMerchantOutput, CreateMessageTemplateInput, CreateModifierInput, CreateModifierListInput, CreateModifierListOutput, CreateModifierOutput, CreateOrderInput, CreatePayoutInput, CreatePromoCodeInput, CreateSocialInput, CreateSubscriptionPlanInput, CreateVariationInput, CreateVariationOutput, CreateWhatsAppGroupInput, CreateWhatsAppGroupOutput, CurbsideSpot, Customer, CustomerAddress, CustomerAddressByIdInput, CustomerAddressFilter, CustomerByIdInput, CustomerFilter, DeleteCategoryInput, DeleteCategoryOutput, DeleteCompanyPayoutAccountInput, DeleteCustomerInput, DeleteFulfillmentBusinessHoursInput, DeleteItemInput, DeleteItemOutput, DeleteLocationBusinessHoursInput, DeleteMerchantCustomerInput, DeleteModifierInput, DeleteModifierListInput, DeleteModifierListOutput, DeleteModifierOutput, DeleteModifierOverrideInput, DeleteModifierOverrideOutput, DeleteVariationInput, DeleteVariationOutput, DeleteWhatsAppGroupInput, DeliveryConfig, Discount, FetchOrderByIdOutput, FulfillmentBusinessHoursOutput, type FulfillmentState, GetBankAccountInput, GetBankAccountOutput, GetCatalogItemInput, GetCatalogItemOutput, GetCategoryInput, GetCategoryOutput, GetCompanyPayoutAccountInput, GetEffectiveBankAccountInput, GetEffectiveBankAccountOutput, GetLocationBalanceInput, GetLocationBalanceOutput, GetModifierInput, GetModifierListInput, GetModifierListOutput, GetModifierOutput, GetOrderByIdInput, GetOrderConfigInput, GetPaymentInput, GetPayoutInput, InitiatePaymentInput, InitiatePaymentOutput, LinkItemWithCategoryInput, LinkItemWithImageInput, LinkItemWithModifierListInput, LinkOperationOutput, LinkSquareIntegrationInput, LinkSquareIntegrationOutput, LinkWhatsAppGroupInput, LinkWhatsAppGroupOutput, ListActiveBannersInput, ListAvailableWhatsAppGroupsInput, ListAvailableWhatsAppGroupsOutput, ListBannersInput, ListCatalogCategoriesInput, ListCatalogCategoriesOutput, ListCatalogCategoriesWithItemsInput, ListCatalogCategoriesWithItemsOutput, ListCatalogItemsInput, ListCatalogItemsOutput, ListCatalogModifierListsInput, ListCatalogModifierListsOutput, ListCatalogModifiersInput, ListCatalogModifiersOutput, ListCatalogVariationsInput, ListCatalogVariationsOutput, ListCompanyPayoutAccountsInput, ListCustomerAddressesInput, ListCustomerAddressesOutput, ListCustomersInput, ListCustomersOutput, ListDiscountsInput, ListLocationWhatsAppGroupsInput, ListLocationWhatsAppGroupsOutput, ListLocationsInput, ListLocationsOutput, ListMerchantCustomersInput, ListMerchantCustomersOutput, ListMerchantsInput, ListMerchantsOutput, ListMessageTemplatesInput, ListMessageTemplatesOutput, ListOrdersInput, ListOrdersOutput, ListPaymentsInput, ListPaymentsOutput, ListPayoutsInput, ListPayoutsOutput, ListPromoCodesInput, Location, LocationAddress, LocationBalance, LocationFilter, LocationIdInput, LocationList, LocationMeatSource, LocationMutationOutput, LocationSummary, LocationWhatsAppGroup, Merchant, MerchantCustomer, MerchantCustomerByIdInput, MerchantCustomerFilter, MerchantFilter, MerchantFullDetails, MerchantIdInput, MerchantIntegration, MerchantInvoice, MerchantLegalDetails, MerchantListItem, MerchantSubscription, MerchantSummary, MerchantSyncEvent, MessageTemplate, MessageTemplateByIdInput, MessageTemplateFilter, MutationIdOutput, Order, OrderAmount, OrderByIdOutput, OrderConfig, OrderCustomer, OrderEntities, OrderFilter, OrderFulfillment, OrderFulfillmentHistory, OrderFulfillmentOutput, OrderLineItem, OrderLineItemInput, OrderModifier, OrderOutput, OrderPromocodeInput, OrderPromocodeSummary, OrderSource, OrderSummary, Pagination, PaymentFilter, PaymentGateway, PaymentListItem, PaymentMethod, PaymentOutput, PaymentSource, Payout, PayoutProvider, PayoutReportFulfillment, PayoutReportInput, PayoutReportOrder, PayoutReportOutput, PayoutReportOverall, PayoutReportPayment, PayoutReportSummary, PayoutStatus, PreferredContactTime, PromoCode, PromoCodeFilter, PromoCodeIdInput, PromoCodeListOutput, PromoCodeOutput, PromoCodeValidationInput, ProviderPricingConfig, ProviderStrategy, RecordPaymentInput, RefundOrderInput, RefundOrderOutput, RefundPaymentInput, RemoveCurbsideSpotInput, RemoveDeliveryInput, RemoveLocationThemeInput, RemoveProviderInput, ScheduleType, SendDirectMessageInput, SendDirectMessageOutput, SendMerchantInvoiceInput, SendMessageInput, SendMessageOutput, Social, SocialIdInput, SocialPlatform, SortDirection, SubscriptionPlan, Theme, TranslationField, UnlinkItemWithCategoryInput, UnlinkItemWithImageInput, UnlinkItemWithModifierListInput, UnsettledBalance, UnsettledBalanceItem, UpdateBannerInput, UpdateCategoryInput, UpdateCategoryOutput, UpdateCompanyPayoutAccountInput, UpdateDeliveryConfigInput, UpdateDiscountInput, UpdateFulfillmentInput, UpdateItemInput, UpdateItemOutput, UpdateLocationInput, UpdateMerchantLegalDetailsInput, UpdateMessageTemplateInput, UpdateModifierInput, UpdateModifierListInput, UpdateModifierListOutput, UpdateModifierOutput, UpdatePromoCodeInput, UpdateProviderInput, UpdateSocialInput, UpdateSubscriptionPlanInput, UpdateVariationInput, UpdateVariationOutput, UpdateWhatsAppGroupInput, UploadCatalogItemPhotoInput, UploadCatalogItemPhotoOutput, UploadCrnDocumentInput, UploadLocationBannerInput, UploadLocationBannerOutput, UploadLocationPhotoInput, UploadLocationPhotoOutput, UploadVatDocumentInput, UpsertBankAccountInput, UpsertCurbsideInput, UpsertCustomerInput, UpsertDeliveryInput, UpsertDineInInput, UpsertFulfillmentBusinessHoursInput, UpsertItemLocationOverrideInput, UpsertItemModifierOverrideInput, UpsertLocationBusinessHoursInput, UpsertLocationThemeInput, UpsertModifierDefaultLocationOverrideInput, UpsertModifierInput, UpsertModifierLocationOverrideInput, UpsertModifierOverrideInput, UpsertModifierOverrideOutput, UpsertOrderConfigInput, UpsertPickupInput, UpsertVariationLocationOverrideInput, ValidatePromoCodeForOrderResult, acceptedPaymentIds, activeBannerListOutputSchema, activeBannerOutputSchema, addCurbsideSpotInputSchema, addProviderInputSchema, anbPaymentStatusResponseSchema, anbPaymentStatusSchema, anbSinglePaymentInitiationResponseSchema, anbSinglePaymentRequestSchema, anbSinglePaymentResponseSchema, anbWebhookPayloadSchema, approveBannerInputSchema, availableTemplateResourcesSchema, availableWhatsAppGroupSchema, bankAccountSchema, bannerIdInputSchema, bannerListOutputSchema, bannerOutputSchema, bannerStatusSchema, baseFilterSchema, baseListInputSchema, baseListOutputSchema, bulkCustomerExportInputSchema, bulkCustomerExportResultSchema, bulkCustomerExportRowSchema, bulkCustomerImportErrorSchema, bulkCustomerImportInputSchema, bulkCustomerImportResultSchema, bulkCustomerImportRowClientSchema, bulkCustomerImportRowSchema, businessHoursPeriodSchema, businessHoursSchema, calculatePayoutOutputSchema, calculateSmsCostInputSchema, calculateSmsCostOutputSchema, catalogAmountSchema, catalogAvailabilityValues, catalogCategoryBaseSchema, catalogCategoryFilterSchema, catalogCategorySchema, catalogDietaryPreferenceValues, catalogFoodIngredientValues, catalogItemDetailSchema, catalogItemFilterSchema, catalogItemSummarySchema, catalogModifierBaseSchema, catalogModifierDefaultLocationOverrideSchema, catalogModifierFilterSchema, catalogModifierItemOverrideSchema, catalogModifierListBaseSchema, catalogModifierListDetailSchema, catalogModifierListFilterSchema, catalogModifierLocationOverrideSchema, catalogPriceRangeSchema, catalogSelectionTypeValues, catalogVariationBaseSchema, catalogVariationFilterSchema, catalogVariationWithDefaultSchema, checkoutResultSchema, companyPayoutAccountSchema, createAddressForLocationInputSchema, createAddressInputSchema, createBannerInputSchema, createCategoryInputSchema, createCategoryOutputSchema, createCompanyPayoutAccountInputSchema, createCustomerAddressInputSchema, createCustomerManualInputSchema, createCustomerManualOutputSchema, createDeliveryConfigForLocationInputSchema, createDeliveryConfigInputSchema, createDeliveryWindowInputSchema, createDiscountInputSchema, createImageInputSchema, createImageOutputSchema, createItemInputSchema, createItemOutputSchema, createLeadForAdminInputSchema, createLeadForAdminOutputSchema, createLocationInputSchema, createMerchantCustomerManualInputSchema, createMerchantCustomerManualOutputSchema, createMerchantInput, createMerchantInputSchema, createMerchantInvoiceInputSchema, createMerchantLegalDetailsInputSchema, createMerchantOutputSchema, createMessageTemplateInputSchema, createModifierInputSchema, createModifierListInputSchema, createModifierListOutputSchema, createModifierOutputSchema, createOrderInputSchema, createPayoutInputSchema, createPromoCodeInputSchema, createSocialInputSchema, createSubscriptionPlanInputSchema, createVariationInputSchema, createVariationOutputSchema, createWhatsAppGroupInputSchema, createWhatsAppGroupOutputSchema, curbsideConfigSchema, curbsideSpotSchema, customerAddressBaseSchema, customerAddressByIdInputSchema, customerAddressFilterSchema, customerAddressOutputSchema, customerBaseSchema, customerByIdInputSchema, customerFilterSchema, customerOutputSchema, defaultCustomerAddressSort, defaultCustomerSort, defaultLocationSort, defaultMerchantCustomerSort, defaultMessageTemplateSort, defaultOrderSort, defaultPromoCodeSort, defaultTimeSort, deleteCategoryInputSchema, deleteCategoryOutputSchema, deleteCompanyPayoutAccountInputSchema, deleteCustomerInputSchema, deleteFulfillmentBusinessHoursInputSchema, deleteItemInputSchema, deleteItemOutputSchema, deleteLocationBusinessHoursInputSchema, deleteMerchantCustomerInputSchema, deleteModifierInputSchema, deleteModifierListInputSchema, deleteModifierListOutputSchema, deleteModifierOutputSchema, deleteModifierOverrideInputSchema, deleteModifierOverrideOutputSchema, deleteVariationInputSchema, deleteVariationOutputSchema, deleteWhatsAppGroupInputSchema, deliveryConfigSchema, dineInConfigSchema, discountAutoApplyScopes, discountBaseSchema, discountIdInputSchema, discountListOutputSchema, discountOutputSchema, discountScopes, discountTypes, fetchOrderByIdOutputSchema, fulfillmentBusinessHoursOutputSchema, fulfillmentTypeEnum, gatewayIds, getBankAccountInputSchema, getBankAccountOutputSchema, getCatalogItemInputSchema, getCatalogItemOutputSchema, getCategoryInputSchema, getCategoryOutputSchema, getCompanyPayoutAccountInputSchema, getEffectiveBankAccountInputSchema, getEffectiveBankAccountOutputSchema, getLocationBalanceInputSchema, getLocationBalanceOutputSchema, getModifierInputSchema, getModifierListInputSchema, getModifierListOutputSchema, getModifierOutputSchema, getOrderByIdInputSchema, getOrderConfigInputSchema, getPaymentInputSchema, getPayoutInputSchema, getSmsBalanceInputSchema, getSmsBalanceOutputSchema, initiatePaymentInputSchema, initiatePaymentOutputSchema, linkItemWithCategoryInputSchema, linkItemWithImageInputSchema, linkItemWithModifierListInputSchema, linkOperationOutputSchema, linkSquareIntegrationInputSchema, linkSquareIntegrationOutputSchema, linkWhatsAppGroupInputSchema, linkWhatsAppGroupOutputSchema, listActiveBannersInputSchema, listAvailableWhatsAppGroupsInputSchema, listAvailableWhatsAppGroupsOutputSchema, listBannersInputSchema, listCatalogCategoriesInputSchema, listCatalogCategoriesOutputSchema, listCatalogCategoriesWithItemsInputSchema, listCatalogCategoriesWithItemsOutputSchema, listCatalogItemsInputSchema, listCatalogItemsOutputSchema, listCatalogModifierListsInputSchema, listCatalogModifierListsOutputSchema, listCatalogModifiersInputSchema, listCatalogModifiersOutputSchema, listCatalogVariationsInputSchema, listCatalogVariationsOutputSchema, listCompanyPayoutAccountsInputSchema, listCustomerAddressesInputSchema, listCustomerAddressesOutputSchema, listCustomersInputSchema, listCustomersOutputSchema, listDiscountsInputSchema, listLocationWhatsAppGroupsInputSchema, listLocationWhatsAppGroupsOutputSchema, listLocationsInputSchema, listLocationsOutputSchema, listMerchantCustomersInputSchema, listMerchantCustomersOutputSchema, listMerchantsInputSchema, listMerchantsOutputSchema, listMessageTemplatesInputSchema, listMessageTemplatesOutputSchema, listOrdersInputSchema, listOrdersOutputSchema, listPaymentsInputSchema, listPaymentsOutputSchema, listPayoutsInputSchema, listPayoutsOutputSchema, listPromoCodesInputSchema, locationAddressSchema, locationBalanceSchema, locationFilterSchema, locationIdInputSchema, locationListSchema, locationMeatSourceSchema, locationMutationOutputSchema, locationSchema, locationStatusFilterSchema, locationWhatsAppGroupSchema, mapAnbStatusToPayoutStatus, merchantBaseSchema, merchantCustomerBaseSchema, merchantCustomerByIdInputSchema, merchantCustomerFilterSchema, merchantCustomerOutputSchema, merchantFilterSchema, merchantFullDetailsSchema, merchantIdInputSchema, merchantIntegrationSchema, merchantInvoiceSchema, merchantLegalDetailsSchema, merchantListItemSchema, merchantSubscriptionSchema, merchantSummarySchema, merchantSyncEventSchema, messageProviderEnum, messageScopeEnum, messageTemplateBaseSchema, messageTemplateByIdInputSchema, messageTemplateFilterSchema, messageTemplateOutputSchema, messageTemplateProviderEnum, modifierOverrideTypeValues, mutationIdOutputSchema, orderAmountSchema, orderByIdOutputSchema, orderConfigSchema, orderCustomerSchema, orderEntitiesSchema, orderFilterSchema, orderFulfillmentHistorySchema, orderFulfillmentOutputSchema, orderFulfillmentSchema, orderFulfillmentStateValues, orderFulfillmentTypes, orderGatewayIds, orderLineItemInputSchema, orderLineItemSchema, orderModifierSchema, orderOutputSchema, orderPromocodeInputSchema, orderPromocodeSummarySchema, orderSchema, orderSourceSchema, orderSummarySchema, paginationSchema, paymentFilterSchema, paymentGatewayIds, paymentListItemSchema, paymentMethodIds, paymentOutputSchema, paymentSourceSchema, paymentStatuses, payoutProviderSchema, payoutReportFulfillmentSchema, payoutReportInputSchema, payoutReportOrderSchema, payoutReportOutputSchema, payoutReportOverallSchema, payoutReportPaymentSchema, payoutReportSummarySchema, payoutSchema, payoutStatusSchema, pickupConfigSchema, placementSchema, preferredContactTimeSchema, promoCodeAmountSchema, promoCodeApplicationTargets, promoCodeBaseSchema, promoCodeConfigurationSchema, promoCodeDiscountTypes, promoCodeFilterSchema, promoCodeIdInputSchema, promoCodeListOutputSchema, promoCodeOutputSchema, promoCodeScopes, promoCodeValidationInputSchema, promoCodeValidationResultSchema, providerPricingConfigSchema, providerStrategyEnum, recordPaymentInputSchema, refundOrderInputSchema, refundOrderOutputSchema, refundPaymentInputSchema, removeCurbsideSpotInputSchema, removeDeliveryInputSchema, removeLocationThemeInputSchema, removeProviderInputSchema, scheduleTypeEnum, sendDirectMessageInputSchema, sendDirectMessageOutputSchema, sendMerchantInvoiceInputSchema, sendMessageInputSchema, sendMessageOutputSchema, smsProviderEnum, socialBaseSchema, socialIdInputSchema, socialPlatformsEnum, sortDirectionSchema, sortSchema, subscriptionPlanSchema, templateHelperSchema, templateVariableCategorySchema, templateVariableSchema, themeSchema, translationFieldSchema, unlinkItemWithCategoryInputSchema, unlinkItemWithImageInputSchema, unlinkItemWithModifierListInputSchema, unsettledBalanceItemSchema, unsettledBalanceSchema, updateBannerInputSchema, updateCategoryInputSchema, updateCategoryOutputSchema, updateCompanyPayoutAccountInputSchema, updateDeliveryConfigInputSchema, updateDiscountInputSchema, updateFulfillmentInputSchema, updateItemInputSchema, updateItemOutputSchema, updateLocationInputSchema, updateMerchantLegalDetailsInputSchema, updateMessageTemplateInputSchema, updateModifierInputSchema, updateModifierListInputSchema, updateModifierListOutputSchema, updateModifierOutputSchema, updatePromoCodeInputSchema, updateProviderInputSchema, updateSocialInputSchema, updateSubscriptionPlanInputSchema, updateVariationInputSchema, updateVariationOutputSchema, updateWhatsAppGroupInputSchema, uploadCatalogItemPhotoInputSchema, uploadCatalogItemPhotoOutputSchema, uploadCrnDocumentInputSchema, uploadLocationBannerInputSchema, uploadLocationBannerOutputSchema, uploadLocationPhotoInputSchema, uploadLocationPhotoOutputSchema, uploadVatDocumentInputSchema, upsertBankAccountInputSchema, upsertCurbsideInputSchema, upsertCustomerInputSchema, upsertDeliveryInputSchema, upsertDineInInputSchema, upsertFulfillmentBusinessHoursInputSchema, upsertItemLocationOverrideInputSchema, upsertItemModifierOverrideInputSchema, upsertLocationBusinessHoursInputSchema, upsertLocationThemeInputSchema, upsertModifierDefaultLocationOverrideInputSchema, upsertModifierInputSchema, upsertModifierLocationOverrideInputSchema, upsertModifierOverrideInputSchema, upsertModifierOverrideOutputSchema, upsertOrderConfigInputSchema, upsertPickupInputSchema, upsertVariationLocationOverrideInputSchema, validatePromoCodeForOrderResultSchema };
|
|
6387
|
+
//#region src/schema/zatca.d.ts
|
|
6388
|
+
declare const egsLocationSchema: z.ZodObject<{
|
|
6389
|
+
city: z.ZodString;
|
|
6390
|
+
district: z.ZodString;
|
|
6391
|
+
street: z.ZodString;
|
|
6392
|
+
building: z.ZodString;
|
|
6393
|
+
postalCode: z.ZodString;
|
|
6394
|
+
additionalNumber: z.ZodOptional<z.ZodString>;
|
|
6395
|
+
}, z.core.$strip>;
|
|
6396
|
+
type EgsLocation = z.infer<typeof egsLocationSchema>;
|
|
6397
|
+
declare const egsInfoSchema: z.ZodObject<{
|
|
6398
|
+
id: z.ZodUUID;
|
|
6399
|
+
name: z.ZodString;
|
|
6400
|
+
model: z.ZodString;
|
|
6401
|
+
branchName: z.ZodString;
|
|
6402
|
+
branchIndustry: z.ZodString;
|
|
6403
|
+
vatName: z.ZodString;
|
|
6404
|
+
vatNumber: z.ZodString;
|
|
6405
|
+
location: z.ZodOptional<z.ZodObject<{
|
|
6406
|
+
city: z.ZodString;
|
|
6407
|
+
district: z.ZodString;
|
|
6408
|
+
street: z.ZodString;
|
|
6409
|
+
building: z.ZodString;
|
|
6410
|
+
postalCode: z.ZodString;
|
|
6411
|
+
additionalNumber: z.ZodOptional<z.ZodString>;
|
|
6412
|
+
}, z.core.$strip>>;
|
|
6413
|
+
}, z.core.$strip>;
|
|
6414
|
+
type EgsInfo = z.infer<typeof egsInfoSchema>;
|
|
6415
|
+
declare const onboardEgsInputSchema: z.ZodObject<{
|
|
6416
|
+
locationId: z.ZodUUID;
|
|
6417
|
+
otp: z.ZodString;
|
|
6418
|
+
}, z.core.$strip>;
|
|
6419
|
+
type OnboardEgsInput = z.infer<typeof onboardEgsInputSchema>;
|
|
6420
|
+
declare const onboardEgsOutputSchema: z.ZodObject<{
|
|
6421
|
+
egsId: z.ZodUUID;
|
|
6422
|
+
lastInvoiceHash: z.ZodString;
|
|
6423
|
+
nextInvoiceCounter: z.ZodNumber;
|
|
6424
|
+
}, z.core.$strip>;
|
|
6425
|
+
type OnboardEgsOutput = z.infer<typeof onboardEgsOutputSchema>;
|
|
6426
|
+
declare const zatcaLineItemSchema: z.ZodObject<{
|
|
6427
|
+
id: z.ZodString;
|
|
6428
|
+
name: z.ZodString;
|
|
6429
|
+
quantity: z.ZodNumber;
|
|
6430
|
+
taxExclusivePrice: z.ZodNumber;
|
|
6431
|
+
vatPercent: z.ZodNumber;
|
|
6432
|
+
discounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6433
|
+
amount: z.ZodNumber;
|
|
6434
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
6435
|
+
}, z.core.$strip>>>;
|
|
6436
|
+
vatCategory: z.ZodOptional<z.ZodString>;
|
|
6437
|
+
}, z.core.$strip>;
|
|
6438
|
+
type ZatcaLineItem = z.infer<typeof zatcaLineItemSchema>;
|
|
6439
|
+
declare const zatcaInvoicePropsSchema: z.ZodObject<{
|
|
6440
|
+
invoiceCode: z.ZodString;
|
|
6441
|
+
invoiceType: z.ZodString;
|
|
6442
|
+
crnNumber: z.ZodString;
|
|
6443
|
+
invoiceCounterNumber: z.ZodNumber;
|
|
6444
|
+
invoiceSerialNumber: z.ZodString;
|
|
6445
|
+
issueDate: z.ZodDate;
|
|
6446
|
+
previousInvoiceHash: z.ZodString;
|
|
6447
|
+
lineItems: z.ZodArray<z.ZodObject<{
|
|
6448
|
+
id: z.ZodString;
|
|
6449
|
+
name: z.ZodString;
|
|
6450
|
+
quantity: z.ZodNumber;
|
|
6451
|
+
taxExclusivePrice: z.ZodNumber;
|
|
6452
|
+
vatPercent: z.ZodNumber;
|
|
6453
|
+
discounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6454
|
+
amount: z.ZodNumber;
|
|
6455
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
6456
|
+
}, z.core.$strip>>>;
|
|
6457
|
+
vatCategory: z.ZodOptional<z.ZodString>;
|
|
6458
|
+
}, z.core.$strip>>;
|
|
6459
|
+
customerInfo: z.ZodOptional<z.ZodObject<{
|
|
6460
|
+
vatName: z.ZodOptional<z.ZodString>;
|
|
6461
|
+
vatNumber: z.ZodOptional<z.ZodString>;
|
|
6462
|
+
}, z.core.$strip>>;
|
|
6463
|
+
}, z.core.$strip>;
|
|
6464
|
+
type ZatcaInvoiceProps = z.infer<typeof zatcaInvoicePropsSchema>;
|
|
6465
|
+
declare const reportInvoiceInputSchema: z.ZodObject<{
|
|
6466
|
+
egsId: z.ZodUUID;
|
|
6467
|
+
invoiceProps: z.ZodObject<{
|
|
6468
|
+
invoiceCode: z.ZodString;
|
|
6469
|
+
invoiceType: z.ZodString;
|
|
6470
|
+
crnNumber: z.ZodString;
|
|
6471
|
+
invoiceCounterNumber: z.ZodNumber;
|
|
6472
|
+
invoiceSerialNumber: z.ZodString;
|
|
6473
|
+
issueDate: z.ZodDate;
|
|
6474
|
+
previousInvoiceHash: z.ZodString;
|
|
6475
|
+
lineItems: z.ZodArray<z.ZodObject<{
|
|
6476
|
+
id: z.ZodString;
|
|
6477
|
+
name: z.ZodString;
|
|
6478
|
+
quantity: z.ZodNumber;
|
|
6479
|
+
taxExclusivePrice: z.ZodNumber;
|
|
6480
|
+
vatPercent: z.ZodNumber;
|
|
6481
|
+
discounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6482
|
+
amount: z.ZodNumber;
|
|
6483
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
6484
|
+
}, z.core.$strip>>>;
|
|
6485
|
+
vatCategory: z.ZodOptional<z.ZodString>;
|
|
6486
|
+
}, z.core.$strip>>;
|
|
6487
|
+
customerInfo: z.ZodOptional<z.ZodObject<{
|
|
6488
|
+
vatName: z.ZodOptional<z.ZodString>;
|
|
6489
|
+
vatNumber: z.ZodOptional<z.ZodString>;
|
|
6490
|
+
}, z.core.$strip>>;
|
|
6491
|
+
}, z.core.$strip>;
|
|
6492
|
+
invoiceHash: z.ZodString;
|
|
6493
|
+
}, z.core.$strip>;
|
|
6494
|
+
type ReportInvoiceInput = z.infer<typeof reportInvoiceInputSchema>;
|
|
6495
|
+
declare const reportInvoiceOutputSchema: z.ZodObject<{
|
|
6496
|
+
success: z.ZodBoolean;
|
|
6497
|
+
invoiceHash: z.ZodString;
|
|
6498
|
+
reportingStatus: z.ZodString;
|
|
6499
|
+
}, z.core.$strip>;
|
|
6500
|
+
type ReportInvoiceOutput = z.infer<typeof reportInvoiceOutputSchema>;
|
|
6501
|
+
declare const batchReportInputSchema: z.ZodObject<{
|
|
6502
|
+
egsId: z.ZodUUID;
|
|
6503
|
+
invoices: z.ZodArray<z.ZodObject<{
|
|
6504
|
+
invoiceCode: z.ZodString;
|
|
6505
|
+
invoiceType: z.ZodString;
|
|
6506
|
+
crnNumber: z.ZodString;
|
|
6507
|
+
invoiceCounterNumber: z.ZodNumber;
|
|
6508
|
+
invoiceSerialNumber: z.ZodString;
|
|
6509
|
+
issueDate: z.ZodDate;
|
|
6510
|
+
previousInvoiceHash: z.ZodString;
|
|
6511
|
+
lineItems: z.ZodArray<z.ZodObject<{
|
|
6512
|
+
id: z.ZodString;
|
|
6513
|
+
name: z.ZodString;
|
|
6514
|
+
quantity: z.ZodNumber;
|
|
6515
|
+
taxExclusivePrice: z.ZodNumber;
|
|
6516
|
+
vatPercent: z.ZodNumber;
|
|
6517
|
+
discounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6518
|
+
amount: z.ZodNumber;
|
|
6519
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
6520
|
+
}, z.core.$strip>>>;
|
|
6521
|
+
vatCategory: z.ZodOptional<z.ZodString>;
|
|
6522
|
+
}, z.core.$strip>>;
|
|
6523
|
+
customerInfo: z.ZodOptional<z.ZodObject<{
|
|
6524
|
+
vatName: z.ZodOptional<z.ZodString>;
|
|
6525
|
+
vatNumber: z.ZodOptional<z.ZodString>;
|
|
6526
|
+
}, z.core.$strip>>;
|
|
6527
|
+
}, z.core.$strip>>;
|
|
6528
|
+
}, z.core.$strip>;
|
|
6529
|
+
type BatchReportInput = z.infer<typeof batchReportInputSchema>;
|
|
6530
|
+
declare const batchReportOutputSchema: z.ZodObject<{
|
|
6531
|
+
results: z.ZodArray<z.ZodObject<{
|
|
6532
|
+
success: z.ZodBoolean;
|
|
6533
|
+
invoiceHash: z.ZodString;
|
|
6534
|
+
reportingStatus: z.ZodString;
|
|
6535
|
+
}, z.core.$strip>>;
|
|
6536
|
+
total: z.ZodNumber;
|
|
6537
|
+
succeeded: z.ZodNumber;
|
|
6538
|
+
failed: z.ZodNumber;
|
|
6539
|
+
}, z.core.$strip>;
|
|
6540
|
+
type BatchReportOutput = z.infer<typeof batchReportOutputSchema>;
|
|
6541
|
+
declare const zatcaInvoiceLocalSchema: z.ZodObject<{
|
|
6542
|
+
id: z.ZodUUID;
|
|
6543
|
+
orderId: z.ZodOptional<z.ZodString>;
|
|
6544
|
+
egsId: z.ZodString;
|
|
6545
|
+
invoiceHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6546
|
+
signedInvoiceB64: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6547
|
+
invoiceQrData: z.ZodString;
|
|
6548
|
+
invoiceCounterNumber: z.ZodNumber;
|
|
6549
|
+
invoiceSerialNumber: z.ZodString;
|
|
6550
|
+
issueDate: z.ZodDate;
|
|
6551
|
+
previousInvoiceHash: z.ZodString;
|
|
6552
|
+
locationId: z.ZodString;
|
|
6553
|
+
lineItems: z.ZodArray<z.ZodObject<{
|
|
6554
|
+
id: z.ZodString;
|
|
6555
|
+
name: z.ZodString;
|
|
6556
|
+
quantity: z.ZodNumber;
|
|
6557
|
+
taxExclusivePrice: z.ZodNumber;
|
|
6558
|
+
vatPercent: z.ZodNumber;
|
|
6559
|
+
discounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6560
|
+
amount: z.ZodNumber;
|
|
6561
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
6562
|
+
}, z.core.$strip>>>;
|
|
6563
|
+
vatCategory: z.ZodOptional<z.ZodString>;
|
|
6564
|
+
}, z.core.$strip>>;
|
|
6565
|
+
customer: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
6566
|
+
vatName: z.ZodOptional<z.ZodString>;
|
|
6567
|
+
vatNumber: z.ZodOptional<z.ZodString>;
|
|
6568
|
+
}, z.core.$strip>>>;
|
|
6569
|
+
cancelation: z.ZodNullable<z.ZodUnknown>;
|
|
6570
|
+
syncStatus: z.ZodEnum<{
|
|
6571
|
+
failed: "failed";
|
|
6572
|
+
pending: "pending";
|
|
6573
|
+
draft: "draft";
|
|
6574
|
+
synced: "synced";
|
|
6575
|
+
}>;
|
|
6576
|
+
syncedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
6577
|
+
serverInvoiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6578
|
+
paymentId: z.ZodOptional<z.ZodString>;
|
|
6579
|
+
createdAt: z.ZodDate;
|
|
6580
|
+
}, z.core.$strip>;
|
|
6581
|
+
type ZatcaInvoiceLocal = z.infer<typeof zatcaInvoiceLocalSchema>;
|
|
6582
|
+
declare const syncInvoicesInputSchema: z.ZodObject<{
|
|
6583
|
+
egsId: z.ZodUUID;
|
|
6584
|
+
invoices: z.ZodArray<z.ZodObject<{
|
|
6585
|
+
id: z.ZodUUID;
|
|
6586
|
+
orderId: z.ZodOptional<z.ZodString>;
|
|
6587
|
+
egsId: z.ZodString;
|
|
6588
|
+
invoiceHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6589
|
+
signedInvoiceB64: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6590
|
+
invoiceQrData: z.ZodString;
|
|
6591
|
+
invoiceCounterNumber: z.ZodNumber;
|
|
6592
|
+
invoiceSerialNumber: z.ZodString;
|
|
6593
|
+
issueDate: z.ZodDate;
|
|
6594
|
+
previousInvoiceHash: z.ZodString;
|
|
6595
|
+
locationId: z.ZodString;
|
|
6596
|
+
lineItems: z.ZodArray<z.ZodObject<{
|
|
6597
|
+
id: z.ZodString;
|
|
6598
|
+
name: z.ZodString;
|
|
6599
|
+
quantity: z.ZodNumber;
|
|
6600
|
+
taxExclusivePrice: z.ZodNumber;
|
|
6601
|
+
vatPercent: z.ZodNumber;
|
|
6602
|
+
discounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6603
|
+
amount: z.ZodNumber;
|
|
6604
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
6605
|
+
}, z.core.$strip>>>;
|
|
6606
|
+
vatCategory: z.ZodOptional<z.ZodString>;
|
|
6607
|
+
}, z.core.$strip>>;
|
|
6608
|
+
customer: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
6609
|
+
vatName: z.ZodOptional<z.ZodString>;
|
|
6610
|
+
vatNumber: z.ZodOptional<z.ZodString>;
|
|
6611
|
+
}, z.core.$strip>>>;
|
|
6612
|
+
cancelation: z.ZodNullable<z.ZodUnknown>;
|
|
6613
|
+
syncStatus: z.ZodEnum<{
|
|
6614
|
+
failed: "failed";
|
|
6615
|
+
pending: "pending";
|
|
6616
|
+
draft: "draft";
|
|
6617
|
+
synced: "synced";
|
|
6618
|
+
}>;
|
|
6619
|
+
syncedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
6620
|
+
serverInvoiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6621
|
+
paymentId: z.ZodOptional<z.ZodString>;
|
|
6622
|
+
createdAt: z.ZodDate;
|
|
6623
|
+
}, z.core.$strip>>;
|
|
6624
|
+
}, z.core.$strip>;
|
|
6625
|
+
type SyncInvoicesInput = z.infer<typeof syncInvoicesInputSchema>;
|
|
6626
|
+
declare const egsStatusOutputSchema: z.ZodObject<{
|
|
6627
|
+
egsId: z.ZodUUID;
|
|
6628
|
+
deviceId: z.ZodString;
|
|
6629
|
+
isOnboarded: z.ZodBoolean;
|
|
6630
|
+
lastInvoiceHash: z.ZodNullable<z.ZodString>;
|
|
6631
|
+
nextInvoiceCounter: z.ZodNullable<z.ZodNumber>;
|
|
6632
|
+
}, z.core.$strip>;
|
|
6633
|
+
type EgsStatusOutput = z.infer<typeof egsStatusOutputSchema>;
|
|
6634
|
+
declare const onboardingDataOutputSchema: z.ZodObject<{
|
|
6635
|
+
vatName: z.ZodNullable<z.ZodString>;
|
|
6636
|
+
vatNumber: z.ZodNullable<z.ZodString>;
|
|
6637
|
+
locationName: z.ZodNullable<z.ZodString>;
|
|
6638
|
+
locationAddress: z.ZodNullable<z.ZodObject<{
|
|
6639
|
+
city: z.ZodString;
|
|
6640
|
+
district: z.ZodString;
|
|
6641
|
+
street: z.ZodString;
|
|
6642
|
+
building: z.ZodString;
|
|
6643
|
+
postalCode: z.ZodString;
|
|
6644
|
+
additionalNumber: z.ZodOptional<z.ZodString>;
|
|
6645
|
+
}, z.core.$strip>>;
|
|
6646
|
+
}, z.core.$strip>;
|
|
6647
|
+
type OnboardingDataOutput = z.infer<typeof onboardingDataOutputSchema>;
|
|
6648
|
+
declare const invoiceByPaymentOutputSchema: z.ZodNullable<z.ZodObject<{
|
|
6649
|
+
invoiceHash: z.ZodString;
|
|
6650
|
+
invoiceQrData: z.ZodString;
|
|
6651
|
+
invoiceSerialNumber: z.ZodString;
|
|
6652
|
+
invoiceCounterNumber: z.ZodNumber;
|
|
6653
|
+
issueDate: z.ZodDate;
|
|
6654
|
+
syncStatus: z.ZodString;
|
|
6655
|
+
reportedAt: z.ZodNullable<z.ZodDate>;
|
|
6656
|
+
}, z.core.$strip>>;
|
|
6657
|
+
type InvoiceByPaymentOutput = z.infer<typeof invoiceByPaymentOutputSchema>;
|
|
6658
|
+
//#endregion
|
|
6659
|
+
export { ANBPaymentStatus, ANBPaymentStatusResponse, ANBSinglePaymentInitiationResponse, ANBSinglePaymentRequest, ANBSinglePaymentResponse, ANBWebhookPayload, AcceptedPaymentMethod, ActiveBannerListOutput, ActiveBannerOutput, AddCurbsideSpotInput, AddProviderInput, Amount, ApproveBannerInput, type AvailableTemplateResources, AvailableWhatsAppGroup, BankAccount, Banner, BannerIdInput, BannerListOutput, BannerOutput, BaseFilter, BatchReportInput, BatchReportOutput, BulkCustomerExportInput, BulkCustomerExportResult, BulkCustomerExportRow, BulkCustomerImportError, BulkCustomerImportInput, BulkCustomerImportResult, BulkCustomerImportRow, BulkCustomerImportRowClient, BusinessHours, BusinessHoursPeriod, CalculatePayoutOutput, CatalogAmount, CatalogAvailability, CatalogCategory, CatalogCategoryFilter, CatalogCategoryWithItems, CatalogItemDetail, CatalogItemFilter, CatalogItemSummary, CatalogModifierBase, CatalogModifierDefaultLocationOverride, CatalogModifierFilter, CatalogModifierItemOverride, CatalogModifierListBase, CatalogModifierListDetail, CatalogModifierListFilter, CatalogModifierListSummary, CatalogModifierLocationOverride, CatalogPriceRange, CatalogSelectionType, CatalogVariationBase, CatalogVariationFilter, CatalogVariationWithDefault, CheckoutResult, CodPaymentType, CompanyPayoutAccount, ConnectIntegrationInput, ConnectIntegrationOutput, CreateAddressForLocationInput, CreateAddressInput, CreateBannerInput, CreateCategoryInput, CreateCategoryOutput, CreateCompanyPayoutAccountInput, CreateCustomerAddressInput, CreateCustomerManualInput, CreateCustomerManualOutput, CreateDeliveryConfigForLocationInput, CreateDeliveryConfigInput, CreateDeliveryWindowInput, CreateDiscountInput, CreateImageInput, CreateImageOutput, CreateIntegrationInput, CreateIntegrationOutput, CreateItemInput, CreateItemOutput, CreateLeadInput, CreateLeadOutput, CreateLocationInput, CreateMerchantCustomerManualInput, CreateMerchantCustomerManualOutput, CreateMerchantInvoiceInput, CreateMerchantOutput, CreateMessageTemplateInput, CreateModifierInput, CreateModifierListInput, CreateModifierListOutput, CreateModifierOutput, CreateOrderInput, CreatePayoutInput, CreatePromoCodeInput, CreateServiceChargeInput, CreateSocialInput, CreateSubscriptionPlanInput, CreateTaxInput, CreateVariationInput, CreateVariationOutput, CreateWhatsAppGroupInput, CreateWhatsAppGroupOutput, CurbsideSpot, Customer, CustomerAddress, CustomerAddressByIdInput, CustomerAddressFilter, CustomerByIdInput, CustomerFilter, DeleteCategoryInput, DeleteCategoryOutput, DeleteCompanyPayoutAccountInput, DeleteCustomerInput, DeleteFulfillmentBusinessHoursInput, DeleteIntegrationInput, DeleteItemInput, DeleteItemOutput, DeleteLocationBusinessHoursInput, DeleteLocationInput, DeleteLocationOutput, DeleteMerchantAccountInput, DeleteMerchantAccountOutput, DeleteMerchantCustomerInput, DeleteModifierInput, DeleteModifierListInput, DeleteModifierListOutput, DeleteModifierOutput, DeleteModifierOverrideInput, DeleteModifierOverrideOutput, DeleteVariationInput, DeleteVariationOutput, DeleteWhatsAppGroupInput, DeliveryBase, DeliveryConfig, DeliveryProvider, DeliveryStatus, DisconnectIntegrationInput, Discount, EgsInfo, EgsLocation, EgsStatusOutput, FetchOrderByIdOutput, FulfillmentBusinessHoursOutput, type FulfillmentState, GetBankAccountInput, GetBankAccountOutput, GetCatalogItemInput, GetCatalogItemOutput, GetCategoryInput, GetCategoryOutput, GetCompanyPayoutAccountInput, GetEffectiveBankAccountInput, GetEffectiveBankAccountOutput, GetIntegrationInput, GetIntegrationOutput, GetLocationBalanceInput, GetLocationBalanceOutput, GetMerchantInput, GetModifierInput, GetModifierListInput, GetModifierListOutput, GetModifierOutput, GetOrderByIdInput, GetOrderConfigInput, GetPaymentInput, GetPayoutInput, InitiatePaymentInput, InitiatePaymentOutput, IntegrateLocationInput, IntegrateLocationOutput, IntegrationProvider, IntegrationStatus, IntegrationType, InvoiceByPaymentOutput, LeajlakConfig, LinkItemWithCategoryInput, LinkItemWithImageInput, LinkItemWithModifierListInput, LinkOperationOutput, LinkWhatsAppGroupInput, LinkWhatsAppGroupOutput, ListActiveBannersInput, ListAvailableWhatsAppGroupsInput, ListAvailableWhatsAppGroupsOutput, ListBannersInput, ListCatalogCategoriesInput, ListCatalogCategoriesOutput, ListCatalogCategoriesWithItemsInput, ListCatalogCategoriesWithItemsOutput, ListCatalogItemsInput, ListCatalogItemsOutput, ListCatalogModifierListsInput, ListCatalogModifierListsOutput, ListCatalogModifiersInput, ListCatalogModifiersOutput, ListCatalogVariationsInput, ListCatalogVariationsOutput, ListCompanyPayoutAccountsInput, ListCustomerAddressesInput, ListCustomerAddressesOutput, ListCustomersInput, ListCustomersOutput, ListDiscountsInput, ListIntegrationsInput, ListIntegrationsOutput, ListLocationWhatsAppGroupsInput, ListLocationWhatsAppGroupsOutput, ListLocationsInput, ListLocationsOutput, ListMerchantCustomersInput, ListMerchantCustomersOutput, ListMerchantsInput, ListMerchantsOutput, ListMessageTemplatesInput, ListMessageTemplatesOutput, ListOrdersInput, ListOrdersOutput, ListPaymentsInput, ListPaymentsOutput, ListPayoutsInput, ListPayoutsOutput, ListPromoCodesInput, ListServiceChargesInput, ListTaxesInput, LocalConfig, Location, LocationAddress, LocationBalance, LocationFilter, LocationIdInput, LocationList, LocationMeatSource, LocationMutationOutput, LocationSummary, LocationWhatsAppGroup, Merchant, MerchantCustomer, MerchantCustomerByIdInput, MerchantCustomerFilter, MerchantFilter, MerchantFullDetails, MerchantIdInput, MerchantIntegration, MerchantIntegrationBase, MerchantInvoice, MerchantLegalDetails, MerchantListItem, MerchantSubscription, MerchantSummary, MerchantSyncEvent, MessageTemplate, MessageTemplateByIdInput, MessageTemplateFilter, MutationIdOutput, OnboardEgsInput, OnboardEgsOutput, OnboardingDataOutput, Order, OrderAmount, OrderByIdOutput, OrderConfig, OrderCustomer, OrderEntities, OrderFilter, OrderFulfillment, OrderFulfillmentHistory, OrderFulfillmentOutput, OrderLineItem, OrderLineItemInput, OrderModifier, OrderOutput, OrderPromocodeInput, OrderPromocodeSummary, OrderSource, OrderSummary, Pagination, ParcelConfig, PaymentFilter, PaymentGateway, PaymentListItem, PaymentMethod, PaymentOutput, PaymentSource, PaymentStatus, Payout, PayoutProvider, PayoutReportFulfillment, PayoutReportInput, PayoutReportOrder, PayoutReportOutput, PayoutReportOverall, PayoutReportPayment, PayoutReportSummary, PayoutStatus, PosProvider, PreferredContactTime, PromoCode, PromoCodeFilter, PromoCodeIdInput, PromoCodeListOutput, PromoCodeOutput, PromoCodeValidationInput, ProviderConfig, ProviderPricingConfig, ProviderStrategy, QMileConfig, RecordPaymentInput, RefundOrderInput, RefundOrderOutput, RefundPaymentInput, RemoveCurbsideSpotInput, RemoveDeliveryInput, RemoveLocationThemeInput, RemoveProviderInput, ReportInvoiceInput, ReportInvoiceOutput, ScheduleType, SendDirectMessageInput, SendDirectMessageOutput, SendMerchantInvoiceInput, SendMessageInput, SendMessageOutput, ServiceCharge, SetIntegrationStatusInput, SetIntegrationStatusOutput, SetPaidInput, SetPaidOutput, Social, SocialIdInput, SocialPlatform, SortDirection, SubscriptionPlan, SyncInvoicesInput, Tax, TemporaryClosureInput, TemporaryClosureOutput, Theme, TranslationField, UnlinkItemWithCategoryInput, UnlinkItemWithImageInput, UnlinkItemWithModifierListInput, UnsettledBalance, UnsettledBalanceItem, UpdateBannerInput, UpdateCategoryInput, UpdateCategoryOutput, UpdateCompanyPayoutAccountInput, UpdateDeliveryConfigInput, UpdateDiscountInput, UpdateFulfillmentInput, UpdateItemInput, UpdateItemOutput, UpdateLocationInput, UpdateMerchantInput, UpdateMessageTemplateInput, UpdateModifierInput, UpdateModifierListInput, UpdateModifierListOutput, UpdateModifierOutput, UpdatePromoCodeInput, UpdateProviderInput, UpdateServiceChargeInput, UpdateSocialInput, UpdateSubscriptionPlanInput, UpdateTaxInput, UpdateVariationInput, UpdateVariationOutput, UpdateWhatsAppGroupInput, UploadCatalogItemPhotoInput, UploadCatalogItemPhotoOutput, UploadLocationBannerInput, UploadLocationBannerOutput, UploadLocationPhotoInput, UploadLocationPhotoOutput, UploadMerchantCrnDocInput, UploadMerchantVatDocInput, UpsertBankAccountInput, UpsertCurbsideInput, UpsertCustomerInput, UpsertDeliveryInput, UpsertDineInInput, UpsertFulfillmentBusinessHoursInput, UpsertItemLocationOverrideInput, UpsertItemModifierOverrideInput, UpsertLocationBusinessHoursInput, UpsertLocationThemeInput, UpsertModifierDefaultLocationOverrideInput, UpsertModifierInput, UpsertModifierLocationOverrideInput, UpsertModifierOverrideInput, UpsertModifierOverrideOutput, UpsertOrderConfigInput, UpsertPickupInput, UpsertVariationLocationOverrideInput, ValidatePromoCodeForOrderResult, ZatcaInvoiceLocal, ZatcaInvoiceProps, ZatcaLineItem, acceptedPaymentIds, activeBannerListOutputSchema, activeBannerOutputSchema, addCurbsideSpotInputSchema, addProviderInputSchema, anbPaymentStatusResponseSchema, anbPaymentStatusSchema, anbSinglePaymentInitiationResponseSchema, anbSinglePaymentRequestSchema, anbSinglePaymentResponseSchema, anbWebhookPayloadSchema, approveBannerInputSchema, availableTemplateResourcesSchema, availableWhatsAppGroupSchema, bankAccountSchema, bannerIdInputSchema, bannerListOutputSchema, bannerOutputSchema, bannerStatusSchema, baseFilterSchema, baseListInputSchema, baseListOutputSchema, batchReportInputSchema, batchReportOutputSchema, bulkCustomerExportInputSchema, bulkCustomerExportResultSchema, bulkCustomerExportRowSchema, bulkCustomerImportErrorSchema, bulkCustomerImportInputSchema, bulkCustomerImportResultSchema, bulkCustomerImportRowClientSchema, bulkCustomerImportRowSchema, businessHoursPeriodSchema, businessHoursSchema, calculatePayoutOutputSchema, calculateSmsCostInputSchema, calculateSmsCostOutputSchema, catalogAmountSchema, catalogAvailabilityValues, catalogCategoryBaseSchema, catalogCategoryFilterSchema, catalogCategorySchema, catalogDietaryPreferenceValues, catalogFoodIngredientValues, catalogItemDetailSchema, catalogItemFilterSchema, catalogItemSummarySchema, catalogModifierBaseSchema, catalogModifierDefaultLocationOverrideSchema, catalogModifierFilterSchema, catalogModifierItemOverrideSchema, catalogModifierListBaseSchema, catalogModifierListDetailSchema, catalogModifierListFilterSchema, catalogModifierListSummarySchema, catalogModifierLocationOverrideSchema, catalogPriceRangeSchema, catalogSelectionTypeValues, catalogVariationBaseSchema, catalogVariationFilterSchema, catalogVariationWithDefaultSchema, chargeAutoApplyScopes, chargeScopes, chargeTypes, checkoutResultSchema, codPaymentTypeIds, companyPayoutAccountSchema, connectIntegrationInputSchema, connectIntegrationOutputSchema, createAddressForLocationInputSchema, createAddressInputSchema, createBannerInputSchema, createCategoryInputSchema, createCategoryOutputSchema, createCompanyPayoutAccountInputSchema, createCustomerAddressInputSchema, createCustomerManualInputSchema, createCustomerManualOutputSchema, createDeliveryConfigForLocationInputSchema, createDeliveryConfigInputSchema, createDeliveryWindowInputSchema, createDiscountInputSchema, createImageInputSchema, createImageOutputSchema, createIntegrationInputSchema, createIntegrationOutputSchema, createItemInputSchema, createItemOutputSchema, createLeadInputSchema, createLeadOutputSchema, createLocationInputSchema, createMerchantCustomerManualInputSchema, createMerchantCustomerManualOutputSchema, createMerchantInput, createMerchantInputSchema, createMerchantInvoiceInputSchema, createMerchantOutputSchema, createMessageTemplateInputSchema, createModifierInputSchema, createModifierListInputSchema, createModifierListOutputSchema, createModifierOutputSchema, createOrderInputSchema, createPayoutInputSchema, createPromoCodeInputSchema, createServiceChargeInputSchema, createSocialInputSchema, createSubscriptionPlanInputSchema, createTaxInputSchema, createVariationInputSchema, createVariationOutputSchema, createWhatsAppGroupInputSchema, createWhatsAppGroupOutputSchema, curbsideConfigSchema, curbsideSpotSchema, customerAddressBaseSchema, customerAddressByIdInputSchema, customerAddressFilterSchema, customerAddressOutputSchema, customerBaseSchema, customerByIdInputSchema, customerFilterSchema, customerOutputSchema, defaultCustomerAddressSort, defaultCustomerSort, defaultLocationSort, defaultMerchantCustomerSort, defaultMessageTemplateSort, defaultOrderSort, defaultPromoCodeSort, defaultTimeSort, deleteCategoryInputSchema, deleteCategoryOutputSchema, deleteCompanyPayoutAccountInputSchema, deleteCustomerInputSchema, deleteFulfillmentBusinessHoursInputSchema, deleteIntegrationInputSchema, deleteItemInputSchema, deleteItemOutputSchema, deleteLocationBusinessHoursInputSchema, deleteLocationInputSchema, deleteLocationOutputSchema, deleteMerchantAccountInputSchema, deleteMerchantAccountOutputSchema, deleteMerchantCustomerInputSchema, deleteModifierInputSchema, deleteModifierListInputSchema, deleteModifierListOutputSchema, deleteModifierOutputSchema, deleteModifierOverrideInputSchema, deleteModifierOverrideOutputSchema, deleteVariationInputSchema, deleteVariationOutputSchema, deleteWhatsAppGroupInputSchema, deliveryBaseSchema, deliveryConfigSchema, deliveryProviderSchema, deliveryStatusSchema, dineInConfigSchema, disconnectIntegrationInputSchema, discountAutoApplyScopes, discountBaseSchema, discountIdInputSchema, discountListOutputSchema, discountOutputSchema, discountScopes, discountTypes, egsInfoSchema, egsLocationSchema, egsStatusOutputSchema, fetchOrderByIdOutputSchema, fulfillmentBusinessHoursOutputSchema, fulfillmentTypeEnum, gatewayIds, getBankAccountInputSchema, getBankAccountOutputSchema, getCatalogItemInputSchema, getCatalogItemOutputSchema, getCategoryInputSchema, getCategoryOutputSchema, getCompanyPayoutAccountInputSchema, getEffectiveBankAccountInputSchema, getEffectiveBankAccountOutputSchema, getIntegrationInputSchema, getIntegrationOutputSchema, getLocationBalanceInputSchema, getLocationBalanceOutputSchema, getMerchantInputSchema, getModifierInputSchema, getModifierListInputSchema, getModifierListOutputSchema, getModifierOutputSchema, getOrderByIdInputSchema, getOrderConfigInputSchema, getPaymentInputSchema, getPayoutInputSchema, getSmsBalanceInputSchema, getSmsBalanceOutputSchema, initiatePaymentInputSchema, initiatePaymentOutputSchema, integrateLocationInputSchema, integrateLocationOutputSchema, integrationProviderSchema, integrationStatusSchema, integrationTypeSchema, invoiceByPaymentOutputSchema, leajlakConfigSchema, linkItemWithCategoryInputSchema, linkItemWithImageInputSchema, linkItemWithModifierListInputSchema, linkOperationOutputSchema, linkWhatsAppGroupInputSchema, linkWhatsAppGroupOutputSchema, listActiveBannersInputSchema, listAvailableWhatsAppGroupsInputSchema, listAvailableWhatsAppGroupsOutputSchema, listBannersInputSchema, listCatalogCategoriesInputSchema, listCatalogCategoriesOutputSchema, listCatalogCategoriesWithItemsInputSchema, listCatalogCategoriesWithItemsOutputSchema, listCatalogItemsInputSchema, listCatalogItemsOutputSchema, listCatalogModifierListsInputSchema, listCatalogModifierListsOutputSchema, listCatalogModifiersInputSchema, listCatalogModifiersOutputSchema, listCatalogVariationsInputSchema, listCatalogVariationsOutputSchema, listCompanyPayoutAccountsInputSchema, listCustomerAddressesInputSchema, listCustomerAddressesOutputSchema, listCustomersInputSchema, listCustomersOutputSchema, listDiscountsInputSchema, listIntegrationsInputSchema, listIntegrationsOutputSchema, listLocationWhatsAppGroupsInputSchema, listLocationWhatsAppGroupsOutputSchema, listLocationsInputSchema, listLocationsOutputSchema, listMerchantCustomersInputSchema, listMerchantCustomersOutputSchema, listMerchantsInputSchema, listMerchantsOutputSchema, listMessageTemplatesInputSchema, listMessageTemplatesOutputSchema, listOrdersInputSchema, listOrdersOutputSchema, listPaymentsInputSchema, listPaymentsOutputSchema, listPayoutsInputSchema, listPayoutsOutputSchema, listPromoCodesInputSchema, listServiceChargesInputSchema, listTaxesInputSchema, localConfigSchema, locationAddressSchema, locationBalanceSchema, locationFilterSchema, locationIdInputSchema, locationListSchema, locationMeatSourceSchema, locationMutationOutputSchema, locationSchema, locationStatusFilterSchema, locationWhatsAppGroupSchema, mapAnbStatusToPayoutStatus, merchantBaseSchema, merchantCustomerBaseSchema, merchantCustomerByIdInputSchema, merchantCustomerFilterSchema, merchantCustomerOutputSchema, merchantFilterSchema, merchantFullDetailsSchema, merchantIdInputSchema, merchantIntegrationBaseSchema, merchantIntegrationSchema, merchantInvoiceSchema, merchantLegalDetailsSchema, merchantListItemSchema, merchantSubscriptionSchema, merchantSummarySchema, merchantSyncEventSchema, messageProviderEnum, messageScopeEnum, messageTemplateBaseSchema, messageTemplateByIdInputSchema, messageTemplateFilterSchema, messageTemplateOutputSchema, messageTemplateProviderEnum, modifierOverrideTypeValues, mutationIdOutputSchema, onboardEgsInputSchema, onboardEgsOutputSchema, onboardingDataOutputSchema, orderAmountSchema, orderByIdOutputSchema, orderConfigSchema, orderCustomerSchema, orderEntitiesSchema, orderFilterSchema, orderFulfillmentHistorySchema, orderFulfillmentOutputSchema, orderFulfillmentSchema, orderFulfillmentStateValues, orderFulfillmentTypes, orderGatewayIds, orderLineItemInputSchema, orderLineItemSchema, orderModifierSchema, orderOutputSchema, orderPromocodeInputSchema, orderPromocodeSummarySchema, orderSchema, orderSourceSchema, orderSummarySchema, paginationSchema, parcelConfigSchema, paymentFilterSchema, paymentGatewayIds, paymentListItemSchema, paymentMethodIds, paymentOutputSchema, paymentSourceSchema, paymentStatuses, payoutProviderSchema, payoutReportFulfillmentSchema, payoutReportInputSchema, payoutReportOrderSchema, payoutReportOutputSchema, payoutReportOverallSchema, payoutReportPaymentSchema, payoutReportSummarySchema, payoutSchema, payoutStatusSchema, pickupConfigSchema, placementSchema, posProviderSchema, preferredContactTimeSchema, promoCodeAmountSchema, promoCodeApplicationTargets, promoCodeBaseSchema, promoCodeConfigurationSchema, promoCodeDiscountTypes, promoCodeFilterSchema, promoCodeIdInputSchema, promoCodeListOutputSchema, promoCodeOutputSchema, promoCodeScopes, promoCodeValidationInputSchema, promoCodeValidationResultSchema, providerConfigSchema, providerPricingConfigSchema, providerStrategyEnum, qmileConfigSchema, recordPaymentInputSchema, refundOrderInputSchema, refundOrderOutputSchema, refundPaymentInputSchema, removeCurbsideSpotInputSchema, removeDeliveryInputSchema, removeLocationThemeInputSchema, removeProviderInputSchema, reportInvoiceInputSchema, reportInvoiceOutputSchema, scheduleTypeEnum, sendDirectMessageInputSchema, sendDirectMessageOutputSchema, sendMerchantInvoiceInputSchema, sendMessageInputSchema, sendMessageOutputSchema, serviceChargeBaseSchema, serviceChargeIdInputSchema, serviceChargeListOutputSchema, serviceChargeOutputSchema, setIntegrationStatusInputSchema, setIntegrationStatusOutputSchema, setPaidInputSchema, setPaidOutputSchema, smsProviderEnum, socialBaseSchema, socialIdInputSchema, socialPlatformsEnum, sortDirectionSchema, sortSchema, subscriptionPlanSchema, syncInvoicesInputSchema, taxAutoApplyScopes, taxBaseSchema, taxIdInputSchema, taxListOutputSchema, taxOutputSchema, taxScopes, taxTypes, templateHelperSchema, templateVariableCategorySchema, templateVariableSchema, temporaryClosureInputSchema, temporaryClosureOutputSchema, themeSchema, translationFieldSchema, unlinkItemWithCategoryInputSchema, unlinkItemWithImageInputSchema, unlinkItemWithModifierListInputSchema, unsettledBalanceItemSchema, unsettledBalanceSchema, updateBannerInputSchema, updateCategoryInputSchema, updateCategoryOutputSchema, updateCompanyPayoutAccountInputSchema, updateDeliveryConfigInputSchema, updateDiscountInputSchema, updateFulfillmentInputSchema, updateItemInputSchema, updateItemOutputSchema, updateLocationInputSchema, updateMerchantInputSchema, updateMessageTemplateInputSchema, updateModifierInputSchema, updateModifierListInputSchema, updateModifierListOutputSchema, updateModifierOutputSchema, updatePromoCodeInputSchema, updateProviderInputSchema, updateServiceChargeInputSchema, updateSocialInputSchema, updateSubscriptionPlanInputSchema, updateTaxInputSchema, updateVariationInputSchema, updateVariationOutputSchema, updateWhatsAppGroupInputSchema, uploadCatalogItemPhotoInputSchema, uploadCatalogItemPhotoOutputSchema, uploadLocationBannerInputSchema, uploadLocationBannerOutputSchema, uploadLocationPhotoInputSchema, uploadLocationPhotoOutputSchema, uploadMerchantCrnDocInputSchema, uploadMerchantVatDocInputSchema, upsertBankAccountInputSchema, upsertCurbsideInputSchema, upsertCustomerInputSchema, upsertDeliveryInputSchema, upsertDineInInputSchema, upsertFulfillmentBusinessHoursInputSchema, upsertItemLocationOverrideInputSchema, upsertItemModifierOverrideInputSchema, upsertLocationBusinessHoursInputSchema, upsertLocationThemeInputSchema, upsertModifierDefaultLocationOverrideInputSchema, upsertModifierInputSchema, upsertModifierLocationOverrideInputSchema, upsertModifierOverrideInputSchema, upsertModifierOverrideOutputSchema, upsertOrderConfigInputSchema, upsertPickupInputSchema, upsertVariationLocationOverrideInputSchema, validatePromoCodeForOrderResultSchema, zatcaInvoiceLocalSchema, zatcaInvoicePropsSchema, zatcaLineItemSchema };
|