@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/index.d.mts
CHANGED
|
@@ -1,10 +1,32 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { Actor, FulfillmentState, FulfillmentStateMachine, FulfillmentStateValues, TerminalStates, assertCanTransition, canTransition, getAllowedTransitions, getAllowedUserTransitions, isTerminalState } from "./fulfillment-states.mjs";
|
|
1
|
+
import { Actor, FulfillmentState, FulfillmentStateMachine, FulfillmentStateValues, OrderFulfillmentType, STATUS_LABELS, TerminalStates, assertCanTransition, canTransition, getAllowedTransitions, getAllowedUserTransitions, getAvailableUserTransitions, isTerminalState } from "./fulfillment-states.mjs";
|
|
3
2
|
import * as _orpc_contract0 from "@orpc/contract";
|
|
4
3
|
import { ContractRouterClient, InferContractRouterInputs, InferContractRouterOutputs } from "@orpc/contract";
|
|
5
4
|
import { z } from "zod";
|
|
6
|
-
import * as _orpc_shared0 from "@orpc/shared";
|
|
7
5
|
|
|
6
|
+
//#region ../../node_modules/@orpc/shared/dist/index.d.mts
|
|
7
|
+
interface AsyncIteratorClassNextFn<T, TReturn> {
|
|
8
|
+
(): Promise<IteratorResult<T, TReturn>>;
|
|
9
|
+
}
|
|
10
|
+
interface AsyncIteratorClassCleanupFn {
|
|
11
|
+
(reason: 'return' | 'throw' | 'next' | 'dispose'): Promise<void>;
|
|
12
|
+
}
|
|
13
|
+
declare const fallbackAsyncDisposeSymbol: unique symbol;
|
|
14
|
+
declare const asyncDisposeSymbol: typeof Symbol extends {
|
|
15
|
+
asyncDispose: infer T;
|
|
16
|
+
} ? T : typeof fallbackAsyncDisposeSymbol;
|
|
17
|
+
declare class AsyncIteratorClass<T, TReturn = unknown, TNext = unknown> implements AsyncIteratorObject<T, TReturn, TNext>, AsyncGenerator<T, TReturn, TNext> {
|
|
18
|
+
#private;
|
|
19
|
+
constructor(next: AsyncIteratorClassNextFn<T, TReturn>, cleanup: AsyncIteratorClassCleanupFn);
|
|
20
|
+
next(): Promise<IteratorResult<T, TReturn>>;
|
|
21
|
+
return(value?: any): Promise<IteratorResult<T, TReturn>>;
|
|
22
|
+
throw(err: any): Promise<IteratorResult<T, TReturn>>;
|
|
23
|
+
/**
|
|
24
|
+
* asyncDispose symbol only available in esnext, we should fallback to Symbol.for('asyncDispose')
|
|
25
|
+
*/
|
|
26
|
+
[asyncDisposeSymbol](): Promise<void>;
|
|
27
|
+
[Symbol.asyncIterator](): this;
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
8
30
|
//#region src/contract/index.d.ts
|
|
9
31
|
declare const appContract: {
|
|
10
32
|
healthCheck: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodVoid, z.ZodString, Record<never, never>, Record<never, never>>;
|
|
@@ -302,7 +324,7 @@ declare const appContract: {
|
|
|
302
324
|
userId: z.ZodString;
|
|
303
325
|
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
304
326
|
get: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
305
|
-
merchantId: z.ZodString
|
|
327
|
+
merchantId: z.ZodOptional<z.ZodString>;
|
|
306
328
|
}, z.core.$strip>, z.ZodObject<{
|
|
307
329
|
id: z.ZodUUID;
|
|
308
330
|
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
@@ -322,7 +344,6 @@ declare const appContract: {
|
|
|
322
344
|
integrations: z.ZodArray<z.ZodObject<{
|
|
323
345
|
id: z.ZodUUID;
|
|
324
346
|
merchantId: z.ZodUUID;
|
|
325
|
-
accountId: z.ZodString;
|
|
326
347
|
provider: z.ZodString;
|
|
327
348
|
createdAt: z.ZodDate;
|
|
328
349
|
updatedAt: z.ZodDate;
|
|
@@ -344,17 +365,48 @@ declare const appContract: {
|
|
|
344
365
|
updatedAt: z.ZodDate;
|
|
345
366
|
}, z.core.$strip>>;
|
|
346
367
|
legalDetails: z.ZodNullable<z.ZodObject<{
|
|
347
|
-
id: z.ZodUUID;
|
|
348
|
-
merchantId: z.ZodUUID;
|
|
349
368
|
CRNNumber: z.ZodString;
|
|
350
369
|
VATName: z.ZodNullable<z.ZodString>;
|
|
351
370
|
VATNumber: z.ZodNullable<z.ZodString>;
|
|
352
371
|
crnDocUrl: z.ZodNullable<z.ZodString>;
|
|
353
372
|
vatDocUrl: z.ZodNullable<z.ZodString>;
|
|
354
|
-
createdAt: z.ZodDate;
|
|
355
|
-
updatedAt: z.ZodDate;
|
|
356
373
|
}, z.core.$strip>>;
|
|
357
374
|
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
375
|
+
update: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
376
|
+
merchantId: z.ZodUUID;
|
|
377
|
+
name: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
378
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
379
|
+
businessEmail: z.ZodOptional<z.ZodString>;
|
|
380
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
381
|
+
logo: z.ZodOptional<z.ZodNullable<z.ZodCustom<File, File>>>;
|
|
382
|
+
banner: z.ZodOptional<z.ZodNullable<z.ZodCustom<File, File>>>;
|
|
383
|
+
legalDetails: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
384
|
+
CRNNumber: z.ZodOptional<z.ZodString>;
|
|
385
|
+
VATName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
386
|
+
VATNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
387
|
+
}, z.core.$strip>>>;
|
|
388
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
389
|
+
id: z.ZodUUID;
|
|
390
|
+
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
391
|
+
description: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
392
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
393
|
+
ownerId: z.ZodString;
|
|
394
|
+
country: z.ZodString;
|
|
395
|
+
businessEmail: z.ZodNullable<z.ZodString>;
|
|
396
|
+
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
397
|
+
logoUrl: z.ZodNullable<z.ZodString>;
|
|
398
|
+
bannerUrl: z.ZodNullable<z.ZodString>;
|
|
399
|
+
createdAt: z.ZodDate;
|
|
400
|
+
updatedAt: z.ZodDate;
|
|
401
|
+
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
402
|
+
deleteAccount: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
403
|
+
password: z.ZodString;
|
|
404
|
+
confirmSoftDelete: z.ZodLiteral<true>;
|
|
405
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
406
|
+
success: z.ZodLiteral<true>;
|
|
407
|
+
merchantId: z.ZodUUID;
|
|
408
|
+
deletedAt: z.ZodDate;
|
|
409
|
+
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
358
410
|
list: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
359
411
|
pagination: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
360
412
|
pageSize: z.ZodDefault<z.ZodNumber>;
|
|
@@ -377,6 +429,7 @@ declare const appContract: {
|
|
|
377
429
|
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
378
430
|
businessEmail: z.ZodNullable<z.ZodString>;
|
|
379
431
|
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
432
|
+
logoUrl: z.ZodNullable<z.ZodString>;
|
|
380
433
|
country: z.ZodString;
|
|
381
434
|
createdAt: z.ZodDate;
|
|
382
435
|
}, z.core.$strip>>;
|
|
@@ -390,13 +443,6 @@ declare const appContract: {
|
|
|
390
443
|
syncSquare: _orpc_contract0.ContractProcedure<z.ZodVoid, z.ZodObject<{
|
|
391
444
|
message: z.ZodString;
|
|
392
445
|
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
393
|
-
linkSquareIntegration: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
394
|
-
redirectUrl: z.ZodString;
|
|
395
|
-
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
396
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
397
|
-
url: z.ZodString;
|
|
398
|
-
redirect: z.ZodDefault<z.ZodBoolean>;
|
|
399
|
-
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
400
446
|
invoices: {
|
|
401
447
|
create: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
402
448
|
merchantId: z.ZodUUID;
|
|
@@ -414,9 +460,9 @@ declare const appContract: {
|
|
|
414
460
|
status: z.ZodEnum<{
|
|
415
461
|
CANCELLED: "CANCELLED";
|
|
416
462
|
FAILED: "FAILED";
|
|
463
|
+
PAID: "PAID";
|
|
417
464
|
DRAFT: "DRAFT";
|
|
418
465
|
PENDING: "PENDING";
|
|
419
|
-
PAID: "PAID";
|
|
420
466
|
}>;
|
|
421
467
|
dueDate: z.ZodNullable<z.ZodDate>;
|
|
422
468
|
paidAt: z.ZodNullable<z.ZodDate>;
|
|
@@ -442,9 +488,9 @@ declare const appContract: {
|
|
|
442
488
|
status: z.ZodEnum<{
|
|
443
489
|
CANCELLED: "CANCELLED";
|
|
444
490
|
FAILED: "FAILED";
|
|
491
|
+
PAID: "PAID";
|
|
445
492
|
DRAFT: "DRAFT";
|
|
446
493
|
PENDING: "PENDING";
|
|
447
|
-
PAID: "PAID";
|
|
448
494
|
}>;
|
|
449
495
|
dueDate: z.ZodNullable<z.ZodDate>;
|
|
450
496
|
paidAt: z.ZodNullable<z.ZodDate>;
|
|
@@ -469,9 +515,9 @@ declare const appContract: {
|
|
|
469
515
|
status: z.ZodEnum<{
|
|
470
516
|
CANCELLED: "CANCELLED";
|
|
471
517
|
FAILED: "FAILED";
|
|
518
|
+
PAID: "PAID";
|
|
472
519
|
DRAFT: "DRAFT";
|
|
473
520
|
PENDING: "PENDING";
|
|
474
|
-
PAID: "PAID";
|
|
475
521
|
}>;
|
|
476
522
|
dueDate: z.ZodNullable<z.ZodDate>;
|
|
477
523
|
paidAt: z.ZodNullable<z.ZodDate>;
|
|
@@ -583,68 +629,685 @@ declare const appContract: {
|
|
|
583
629
|
socialId: z.ZodUUID;
|
|
584
630
|
}, z.core.$strip>, z.ZodVoid, _orpc_contract0.MergedErrorMap<Record<never, never>, _orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>>, Record<never, never>>;
|
|
585
631
|
};
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
632
|
+
uploadCrn: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
633
|
+
merchantId: z.ZodUUID;
|
|
634
|
+
crnDoc: z.ZodCustom<File, File>;
|
|
635
|
+
}, z.core.$strip>, z.ZodString, _orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
636
|
+
uploadVat: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
637
|
+
merchantId: z.ZodUUID;
|
|
638
|
+
vatDoc: z.ZodCustom<File, File>;
|
|
639
|
+
}, z.core.$strip>, z.ZodString, _orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
640
|
+
integrations: {
|
|
641
|
+
connect: _orpc_contract0.ContractProcedure<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
642
|
+
merchantId: z.ZodOptional<z.ZodUUID>;
|
|
643
|
+
provider: z.ZodLiteral<"SQUARE">;
|
|
644
|
+
redirectUrl: z.ZodString;
|
|
645
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
646
|
+
merchantId: z.ZodOptional<z.ZodUUID>;
|
|
647
|
+
provider: z.ZodLiteral<"LEAJLAK">;
|
|
648
|
+
accessToken: z.ZodString;
|
|
649
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
650
|
+
merchantId: z.ZodOptional<z.ZodUUID>;
|
|
651
|
+
provider: z.ZodLiteral<"PARCEL">;
|
|
652
|
+
apiKey: z.ZodString;
|
|
653
|
+
region: z.ZodString;
|
|
654
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
655
|
+
merchantId: z.ZodOptional<z.ZodUUID>;
|
|
656
|
+
provider: z.ZodLiteral<"QMILE">;
|
|
657
|
+
apiKey: z.ZodString;
|
|
658
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
659
|
+
merchantId: z.ZodOptional<z.ZodUUID>;
|
|
660
|
+
provider: z.ZodLiteral<"LOCAL">;
|
|
661
|
+
}, z.core.$strip>], "provider">, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
662
|
+
kind: z.ZodLiteral<"oauth_redirect">;
|
|
663
|
+
provider: z.ZodLiteral<"SQUARE">;
|
|
664
|
+
url: z.ZodString;
|
|
665
|
+
redirect: z.ZodDefault<z.ZodBoolean>;
|
|
594
666
|
}, z.core.$strip>, z.ZodObject<{
|
|
667
|
+
kind: z.ZodLiteral<"connected">;
|
|
668
|
+
integration: z.ZodObject<{
|
|
669
|
+
id: z.ZodUUID;
|
|
670
|
+
merchantId: z.ZodUUID;
|
|
671
|
+
type: z.ZodEnum<{
|
|
672
|
+
delivery: "delivery";
|
|
673
|
+
pos: "pos";
|
|
674
|
+
}>;
|
|
675
|
+
provider: z.ZodString;
|
|
676
|
+
status: z.ZodEnum<{
|
|
677
|
+
active: "active";
|
|
678
|
+
inactive: "inactive";
|
|
679
|
+
}>;
|
|
680
|
+
credentials: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
681
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
682
|
+
accessTokenExpiresAt: z.ZodNullable<z.ZodDate>;
|
|
683
|
+
refreshTokenExpiresAt: z.ZodNullable<z.ZodDate>;
|
|
684
|
+
externalMerchantId: z.ZodNullable<z.ZodString>;
|
|
685
|
+
scope: z.ZodNullable<z.ZodString>;
|
|
686
|
+
createdAt: z.ZodDate;
|
|
687
|
+
updatedAt: z.ZodDate;
|
|
688
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
689
|
+
}, z.core.$strip>;
|
|
690
|
+
}, z.core.$strip>], "kind">, _orpc_contract0.MergedErrorMap<Record<never, never>, _orpc_contract0.MergedErrorMap<Record<never, never>, _orpc_contract0.MergedErrorMap<Record<never, never>, _orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
691
|
+
readonly DELIVERY_NOT_FOUND: {
|
|
692
|
+
readonly status: 404;
|
|
693
|
+
readonly message: "Delivery not found";
|
|
694
|
+
readonly data: z.ZodObject<{
|
|
695
|
+
deliveryId: z.ZodString;
|
|
696
|
+
}, z.core.$strip>;
|
|
697
|
+
};
|
|
698
|
+
readonly DELIVERY_ORDER_NOT_FOUND: {
|
|
699
|
+
readonly status: 404;
|
|
700
|
+
readonly message: "Order not found";
|
|
701
|
+
readonly data: z.ZodObject<{
|
|
702
|
+
orderId: z.ZodString;
|
|
703
|
+
}, z.core.$strip>;
|
|
704
|
+
};
|
|
705
|
+
readonly DELIVERY_INTEGRATION_NOT_FOUND: {
|
|
706
|
+
readonly status: 404;
|
|
707
|
+
readonly message: "No active integration found for delivery provider";
|
|
708
|
+
readonly data: z.ZodObject<{
|
|
709
|
+
merchantId: z.ZodOptional<z.ZodString>;
|
|
710
|
+
provider: z.ZodEnum<{
|
|
711
|
+
LEAJLAK: "LEAJLAK";
|
|
712
|
+
PARCEL: "PARCEL";
|
|
713
|
+
QMILE: "QMILE";
|
|
714
|
+
LOCAL: "LOCAL";
|
|
715
|
+
}>;
|
|
716
|
+
}, z.core.$strip>;
|
|
717
|
+
};
|
|
718
|
+
readonly DELIVERY_INVALID_OPERATION: {
|
|
719
|
+
readonly status: 400;
|
|
720
|
+
readonly message: "Operation not supported for this delivery provider";
|
|
721
|
+
readonly data: z.ZodObject<{
|
|
722
|
+
operation: z.ZodEnum<{
|
|
723
|
+
create: "create";
|
|
724
|
+
get: "get";
|
|
725
|
+
list: "list";
|
|
726
|
+
update: "update";
|
|
727
|
+
cancel: "cancel";
|
|
728
|
+
}>;
|
|
729
|
+
provider: z.ZodEnum<{
|
|
730
|
+
LEAJLAK: "LEAJLAK";
|
|
731
|
+
PARCEL: "PARCEL";
|
|
732
|
+
QMILE: "QMILE";
|
|
733
|
+
LOCAL: "LOCAL";
|
|
734
|
+
}>;
|
|
735
|
+
}, z.core.$strip>;
|
|
736
|
+
};
|
|
737
|
+
readonly DELIVERY_PROVIDER_ERROR: {
|
|
738
|
+
readonly status: 502;
|
|
739
|
+
readonly message: "Delivery provider error";
|
|
740
|
+
readonly data: z.ZodObject<{
|
|
741
|
+
provider: z.ZodEnum<{
|
|
742
|
+
LEAJLAK: "LEAJLAK";
|
|
743
|
+
PARCEL: "PARCEL";
|
|
744
|
+
QMILE: "QMILE";
|
|
745
|
+
LOCAL: "LOCAL";
|
|
746
|
+
}>;
|
|
747
|
+
message: z.ZodString;
|
|
748
|
+
}, z.core.$strip>;
|
|
749
|
+
};
|
|
750
|
+
readonly LOCATION_INTEGRATION_NOT_SUPPORTED: {
|
|
751
|
+
readonly status: 400;
|
|
752
|
+
readonly message: "This provider does not support location integration";
|
|
753
|
+
readonly data: z.ZodObject<{
|
|
754
|
+
provider: z.ZodEnum<{
|
|
755
|
+
LEAJLAK: "LEAJLAK";
|
|
756
|
+
PARCEL: "PARCEL";
|
|
757
|
+
QMILE: "QMILE";
|
|
758
|
+
LOCAL: "LOCAL";
|
|
759
|
+
}>;
|
|
760
|
+
}, z.core.$strip>;
|
|
761
|
+
};
|
|
762
|
+
}>>>>, Record<never, never>>;
|
|
763
|
+
disconnect: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
764
|
+
merchantId: z.ZodOptional<z.ZodUUID>;
|
|
765
|
+
provider: z.ZodUnion<readonly [z.ZodEnum<{
|
|
766
|
+
LEAJLAK: "LEAJLAK";
|
|
767
|
+
PARCEL: "PARCEL";
|
|
768
|
+
QMILE: "QMILE";
|
|
769
|
+
LOCAL: "LOCAL";
|
|
770
|
+
}>, z.ZodEnum<{
|
|
771
|
+
SQUARE: "SQUARE";
|
|
772
|
+
}>]>;
|
|
773
|
+
}, z.core.$strip>, z.ZodVoid, _orpc_contract0.MergedErrorMap<Record<never, never>, _orpc_contract0.MergedErrorMap<Record<never, never>, _orpc_contract0.MergedErrorMap<Record<never, never>, _orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
774
|
+
readonly DELIVERY_NOT_FOUND: {
|
|
775
|
+
readonly status: 404;
|
|
776
|
+
readonly message: "Delivery not found";
|
|
777
|
+
readonly data: z.ZodObject<{
|
|
778
|
+
deliveryId: z.ZodString;
|
|
779
|
+
}, z.core.$strip>;
|
|
780
|
+
};
|
|
781
|
+
readonly DELIVERY_ORDER_NOT_FOUND: {
|
|
782
|
+
readonly status: 404;
|
|
783
|
+
readonly message: "Order not found";
|
|
784
|
+
readonly data: z.ZodObject<{
|
|
785
|
+
orderId: z.ZodString;
|
|
786
|
+
}, z.core.$strip>;
|
|
787
|
+
};
|
|
788
|
+
readonly DELIVERY_INTEGRATION_NOT_FOUND: {
|
|
789
|
+
readonly status: 404;
|
|
790
|
+
readonly message: "No active integration found for delivery provider";
|
|
791
|
+
readonly data: z.ZodObject<{
|
|
792
|
+
merchantId: z.ZodOptional<z.ZodString>;
|
|
793
|
+
provider: z.ZodEnum<{
|
|
794
|
+
LEAJLAK: "LEAJLAK";
|
|
795
|
+
PARCEL: "PARCEL";
|
|
796
|
+
QMILE: "QMILE";
|
|
797
|
+
LOCAL: "LOCAL";
|
|
798
|
+
}>;
|
|
799
|
+
}, z.core.$strip>;
|
|
800
|
+
};
|
|
801
|
+
readonly DELIVERY_INVALID_OPERATION: {
|
|
802
|
+
readonly status: 400;
|
|
803
|
+
readonly message: "Operation not supported for this delivery provider";
|
|
804
|
+
readonly data: z.ZodObject<{
|
|
805
|
+
operation: z.ZodEnum<{
|
|
806
|
+
create: "create";
|
|
807
|
+
get: "get";
|
|
808
|
+
list: "list";
|
|
809
|
+
update: "update";
|
|
810
|
+
cancel: "cancel";
|
|
811
|
+
}>;
|
|
812
|
+
provider: z.ZodEnum<{
|
|
813
|
+
LEAJLAK: "LEAJLAK";
|
|
814
|
+
PARCEL: "PARCEL";
|
|
815
|
+
QMILE: "QMILE";
|
|
816
|
+
LOCAL: "LOCAL";
|
|
817
|
+
}>;
|
|
818
|
+
}, z.core.$strip>;
|
|
819
|
+
};
|
|
820
|
+
readonly DELIVERY_PROVIDER_ERROR: {
|
|
821
|
+
readonly status: 502;
|
|
822
|
+
readonly message: "Delivery provider error";
|
|
823
|
+
readonly data: z.ZodObject<{
|
|
824
|
+
provider: z.ZodEnum<{
|
|
825
|
+
LEAJLAK: "LEAJLAK";
|
|
826
|
+
PARCEL: "PARCEL";
|
|
827
|
+
QMILE: "QMILE";
|
|
828
|
+
LOCAL: "LOCAL";
|
|
829
|
+
}>;
|
|
830
|
+
message: z.ZodString;
|
|
831
|
+
}, z.core.$strip>;
|
|
832
|
+
};
|
|
833
|
+
readonly LOCATION_INTEGRATION_NOT_SUPPORTED: {
|
|
834
|
+
readonly status: 400;
|
|
835
|
+
readonly message: "This provider does not support location integration";
|
|
836
|
+
readonly data: z.ZodObject<{
|
|
837
|
+
provider: z.ZodEnum<{
|
|
838
|
+
LEAJLAK: "LEAJLAK";
|
|
839
|
+
PARCEL: "PARCEL";
|
|
840
|
+
QMILE: "QMILE";
|
|
841
|
+
LOCAL: "LOCAL";
|
|
842
|
+
}>;
|
|
843
|
+
}, z.core.$strip>;
|
|
844
|
+
};
|
|
845
|
+
}>>>>, Record<never, never>>;
|
|
846
|
+
get: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
847
|
+
merchantId: z.ZodOptional<z.ZodUUID>;
|
|
848
|
+
provider: z.ZodUnion<readonly [z.ZodEnum<{
|
|
849
|
+
LEAJLAK: "LEAJLAK";
|
|
850
|
+
PARCEL: "PARCEL";
|
|
851
|
+
QMILE: "QMILE";
|
|
852
|
+
LOCAL: "LOCAL";
|
|
853
|
+
}>, z.ZodEnum<{
|
|
854
|
+
SQUARE: "SQUARE";
|
|
855
|
+
}>]>;
|
|
856
|
+
}, z.core.$strip>, z.ZodNullable<z.ZodObject<{
|
|
595
857
|
id: z.ZodUUID;
|
|
596
858
|
merchantId: z.ZodUUID;
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
859
|
+
type: z.ZodEnum<{
|
|
860
|
+
delivery: "delivery";
|
|
861
|
+
pos: "pos";
|
|
862
|
+
}>;
|
|
863
|
+
provider: z.ZodString;
|
|
864
|
+
status: z.ZodEnum<{
|
|
865
|
+
active: "active";
|
|
866
|
+
inactive: "inactive";
|
|
867
|
+
}>;
|
|
868
|
+
credentials: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
869
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
870
|
+
accessTokenExpiresAt: z.ZodNullable<z.ZodDate>;
|
|
871
|
+
refreshTokenExpiresAt: z.ZodNullable<z.ZodDate>;
|
|
872
|
+
externalMerchantId: z.ZodNullable<z.ZodString>;
|
|
873
|
+
scope: z.ZodNullable<z.ZodString>;
|
|
602
874
|
createdAt: z.ZodDate;
|
|
603
875
|
updatedAt: z.ZodDate;
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
876
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
877
|
+
}, z.core.$strip>>, _orpc_contract0.MergedErrorMap<Record<never, never>, _orpc_contract0.MergedErrorMap<Record<never, never>, _orpc_contract0.MergedErrorMap<Record<never, never>, _orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
878
|
+
readonly DELIVERY_NOT_FOUND: {
|
|
879
|
+
readonly status: 404;
|
|
880
|
+
readonly message: "Delivery not found";
|
|
881
|
+
readonly data: z.ZodObject<{
|
|
882
|
+
deliveryId: z.ZodString;
|
|
883
|
+
}, z.core.$strip>;
|
|
884
|
+
};
|
|
885
|
+
readonly DELIVERY_ORDER_NOT_FOUND: {
|
|
886
|
+
readonly status: 404;
|
|
887
|
+
readonly message: "Order not found";
|
|
888
|
+
readonly data: z.ZodObject<{
|
|
889
|
+
orderId: z.ZodString;
|
|
890
|
+
}, z.core.$strip>;
|
|
891
|
+
};
|
|
892
|
+
readonly DELIVERY_INTEGRATION_NOT_FOUND: {
|
|
893
|
+
readonly status: 404;
|
|
894
|
+
readonly message: "No active integration found for delivery provider";
|
|
895
|
+
readonly data: z.ZodObject<{
|
|
896
|
+
merchantId: z.ZodOptional<z.ZodString>;
|
|
897
|
+
provider: z.ZodEnum<{
|
|
898
|
+
LEAJLAK: "LEAJLAK";
|
|
899
|
+
PARCEL: "PARCEL";
|
|
900
|
+
QMILE: "QMILE";
|
|
901
|
+
LOCAL: "LOCAL";
|
|
902
|
+
}>;
|
|
903
|
+
}, z.core.$strip>;
|
|
904
|
+
};
|
|
905
|
+
readonly DELIVERY_INVALID_OPERATION: {
|
|
906
|
+
readonly status: 400;
|
|
907
|
+
readonly message: "Operation not supported for this delivery provider";
|
|
908
|
+
readonly data: z.ZodObject<{
|
|
909
|
+
operation: z.ZodEnum<{
|
|
910
|
+
create: "create";
|
|
911
|
+
get: "get";
|
|
912
|
+
list: "list";
|
|
913
|
+
update: "update";
|
|
914
|
+
cancel: "cancel";
|
|
915
|
+
}>;
|
|
916
|
+
provider: z.ZodEnum<{
|
|
917
|
+
LEAJLAK: "LEAJLAK";
|
|
918
|
+
PARCEL: "PARCEL";
|
|
919
|
+
QMILE: "QMILE";
|
|
920
|
+
LOCAL: "LOCAL";
|
|
921
|
+
}>;
|
|
922
|
+
}, z.core.$strip>;
|
|
923
|
+
};
|
|
924
|
+
readonly DELIVERY_PROVIDER_ERROR: {
|
|
925
|
+
readonly status: 502;
|
|
926
|
+
readonly message: "Delivery provider error";
|
|
927
|
+
readonly data: z.ZodObject<{
|
|
928
|
+
provider: z.ZodEnum<{
|
|
929
|
+
LEAJLAK: "LEAJLAK";
|
|
930
|
+
PARCEL: "PARCEL";
|
|
931
|
+
QMILE: "QMILE";
|
|
932
|
+
LOCAL: "LOCAL";
|
|
933
|
+
}>;
|
|
934
|
+
message: z.ZodString;
|
|
935
|
+
}, z.core.$strip>;
|
|
936
|
+
};
|
|
937
|
+
readonly LOCATION_INTEGRATION_NOT_SUPPORTED: {
|
|
938
|
+
readonly status: 400;
|
|
939
|
+
readonly message: "This provider does not support location integration";
|
|
940
|
+
readonly data: z.ZodObject<{
|
|
941
|
+
provider: z.ZodEnum<{
|
|
942
|
+
LEAJLAK: "LEAJLAK";
|
|
943
|
+
PARCEL: "PARCEL";
|
|
944
|
+
QMILE: "QMILE";
|
|
945
|
+
LOCAL: "LOCAL";
|
|
946
|
+
}>;
|
|
947
|
+
}, z.core.$strip>;
|
|
948
|
+
};
|
|
949
|
+
}>>>>, Record<never, never>>;
|
|
950
|
+
list: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
951
|
+
merchantId: z.ZodOptional<z.ZodUUID>;
|
|
952
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
608
953
|
id: z.ZodUUID;
|
|
609
954
|
merchantId: z.ZodUUID;
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
955
|
+
type: z.ZodEnum<{
|
|
956
|
+
delivery: "delivery";
|
|
957
|
+
pos: "pos";
|
|
958
|
+
}>;
|
|
959
|
+
provider: z.ZodString;
|
|
960
|
+
status: z.ZodEnum<{
|
|
961
|
+
active: "active";
|
|
962
|
+
inactive: "inactive";
|
|
963
|
+
}>;
|
|
964
|
+
credentials: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
965
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
966
|
+
accessTokenExpiresAt: z.ZodNullable<z.ZodDate>;
|
|
967
|
+
refreshTokenExpiresAt: z.ZodNullable<z.ZodDate>;
|
|
968
|
+
externalMerchantId: z.ZodNullable<z.ZodString>;
|
|
969
|
+
scope: z.ZodNullable<z.ZodString>;
|
|
615
970
|
createdAt: z.ZodDate;
|
|
616
971
|
updatedAt: z.ZodDate;
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
972
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
973
|
+
}, z.core.$strip>>, _orpc_contract0.MergedErrorMap<Record<never, never>, _orpc_contract0.MergedErrorMap<Record<never, never>, _orpc_contract0.MergedErrorMap<Record<never, never>, _orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
974
|
+
readonly DELIVERY_NOT_FOUND: {
|
|
975
|
+
readonly status: 404;
|
|
976
|
+
readonly message: "Delivery not found";
|
|
977
|
+
readonly data: z.ZodObject<{
|
|
978
|
+
deliveryId: z.ZodString;
|
|
979
|
+
}, z.core.$strip>;
|
|
980
|
+
};
|
|
981
|
+
readonly DELIVERY_ORDER_NOT_FOUND: {
|
|
982
|
+
readonly status: 404;
|
|
983
|
+
readonly message: "Order not found";
|
|
984
|
+
readonly data: z.ZodObject<{
|
|
985
|
+
orderId: z.ZodString;
|
|
986
|
+
}, z.core.$strip>;
|
|
987
|
+
};
|
|
988
|
+
readonly DELIVERY_INTEGRATION_NOT_FOUND: {
|
|
989
|
+
readonly status: 404;
|
|
990
|
+
readonly message: "No active integration found for delivery provider";
|
|
991
|
+
readonly data: z.ZodObject<{
|
|
992
|
+
merchantId: z.ZodOptional<z.ZodString>;
|
|
993
|
+
provider: z.ZodEnum<{
|
|
994
|
+
LEAJLAK: "LEAJLAK";
|
|
995
|
+
PARCEL: "PARCEL";
|
|
996
|
+
QMILE: "QMILE";
|
|
997
|
+
LOCAL: "LOCAL";
|
|
998
|
+
}>;
|
|
999
|
+
}, z.core.$strip>;
|
|
1000
|
+
};
|
|
1001
|
+
readonly DELIVERY_INVALID_OPERATION: {
|
|
1002
|
+
readonly status: 400;
|
|
1003
|
+
readonly message: "Operation not supported for this delivery provider";
|
|
1004
|
+
readonly data: z.ZodObject<{
|
|
1005
|
+
operation: z.ZodEnum<{
|
|
1006
|
+
create: "create";
|
|
1007
|
+
get: "get";
|
|
1008
|
+
list: "list";
|
|
1009
|
+
update: "update";
|
|
1010
|
+
cancel: "cancel";
|
|
1011
|
+
}>;
|
|
1012
|
+
provider: z.ZodEnum<{
|
|
1013
|
+
LEAJLAK: "LEAJLAK";
|
|
1014
|
+
PARCEL: "PARCEL";
|
|
1015
|
+
QMILE: "QMILE";
|
|
1016
|
+
LOCAL: "LOCAL";
|
|
1017
|
+
}>;
|
|
1018
|
+
}, z.core.$strip>;
|
|
1019
|
+
};
|
|
1020
|
+
readonly DELIVERY_PROVIDER_ERROR: {
|
|
1021
|
+
readonly status: 502;
|
|
1022
|
+
readonly message: "Delivery provider error";
|
|
1023
|
+
readonly data: z.ZodObject<{
|
|
1024
|
+
provider: z.ZodEnum<{
|
|
1025
|
+
LEAJLAK: "LEAJLAK";
|
|
1026
|
+
PARCEL: "PARCEL";
|
|
1027
|
+
QMILE: "QMILE";
|
|
1028
|
+
LOCAL: "LOCAL";
|
|
1029
|
+
}>;
|
|
1030
|
+
message: z.ZodString;
|
|
1031
|
+
}, z.core.$strip>;
|
|
1032
|
+
};
|
|
1033
|
+
readonly LOCATION_INTEGRATION_NOT_SUPPORTED: {
|
|
1034
|
+
readonly status: 400;
|
|
1035
|
+
readonly message: "This provider does not support location integration";
|
|
1036
|
+
readonly data: z.ZodObject<{
|
|
1037
|
+
provider: z.ZodEnum<{
|
|
1038
|
+
LEAJLAK: "LEAJLAK";
|
|
1039
|
+
PARCEL: "PARCEL";
|
|
1040
|
+
QMILE: "QMILE";
|
|
1041
|
+
LOCAL: "LOCAL";
|
|
1042
|
+
}>;
|
|
1043
|
+
}, z.core.$strip>;
|
|
1044
|
+
};
|
|
1045
|
+
}>>>>, Record<never, never>>;
|
|
1046
|
+
setStatus: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
1047
|
+
integrationId: z.ZodUUID;
|
|
1048
|
+
status: z.ZodEnum<{
|
|
1049
|
+
active: "active";
|
|
1050
|
+
inactive: "inactive";
|
|
1051
|
+
}>;
|
|
626
1052
|
}, z.core.$strip>, z.ZodObject<{
|
|
627
1053
|
id: z.ZodUUID;
|
|
628
1054
|
merchantId: z.ZodUUID;
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
1055
|
+
type: z.ZodEnum<{
|
|
1056
|
+
delivery: "delivery";
|
|
1057
|
+
pos: "pos";
|
|
1058
|
+
}>;
|
|
1059
|
+
provider: z.ZodString;
|
|
1060
|
+
status: z.ZodEnum<{
|
|
1061
|
+
active: "active";
|
|
1062
|
+
inactive: "inactive";
|
|
1063
|
+
}>;
|
|
1064
|
+
credentials: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1065
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1066
|
+
accessTokenExpiresAt: z.ZodNullable<z.ZodDate>;
|
|
1067
|
+
refreshTokenExpiresAt: z.ZodNullable<z.ZodDate>;
|
|
1068
|
+
externalMerchantId: z.ZodNullable<z.ZodString>;
|
|
1069
|
+
scope: z.ZodNullable<z.ZodString>;
|
|
634
1070
|
createdAt: z.ZodDate;
|
|
635
1071
|
updatedAt: z.ZodDate;
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
1072
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
1073
|
+
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, _orpc_contract0.MergedErrorMap<Record<never, never>, _orpc_contract0.MergedErrorMap<Record<never, never>, _orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
1074
|
+
readonly DELIVERY_NOT_FOUND: {
|
|
1075
|
+
readonly status: 404;
|
|
1076
|
+
readonly message: "Delivery not found";
|
|
1077
|
+
readonly data: z.ZodObject<{
|
|
1078
|
+
deliveryId: z.ZodString;
|
|
1079
|
+
}, z.core.$strip>;
|
|
1080
|
+
};
|
|
1081
|
+
readonly DELIVERY_ORDER_NOT_FOUND: {
|
|
1082
|
+
readonly status: 404;
|
|
1083
|
+
readonly message: "Order not found";
|
|
1084
|
+
readonly data: z.ZodObject<{
|
|
1085
|
+
orderId: z.ZodString;
|
|
1086
|
+
}, z.core.$strip>;
|
|
1087
|
+
};
|
|
1088
|
+
readonly DELIVERY_INTEGRATION_NOT_FOUND: {
|
|
1089
|
+
readonly status: 404;
|
|
1090
|
+
readonly message: "No active integration found for delivery provider";
|
|
1091
|
+
readonly data: z.ZodObject<{
|
|
1092
|
+
merchantId: z.ZodOptional<z.ZodString>;
|
|
1093
|
+
provider: z.ZodEnum<{
|
|
1094
|
+
LEAJLAK: "LEAJLAK";
|
|
1095
|
+
PARCEL: "PARCEL";
|
|
1096
|
+
QMILE: "QMILE";
|
|
1097
|
+
LOCAL: "LOCAL";
|
|
1098
|
+
}>;
|
|
1099
|
+
}, z.core.$strip>;
|
|
1100
|
+
};
|
|
1101
|
+
readonly DELIVERY_INVALID_OPERATION: {
|
|
1102
|
+
readonly status: 400;
|
|
1103
|
+
readonly message: "Operation not supported for this delivery provider";
|
|
1104
|
+
readonly data: z.ZodObject<{
|
|
1105
|
+
operation: z.ZodEnum<{
|
|
1106
|
+
create: "create";
|
|
1107
|
+
get: "get";
|
|
1108
|
+
list: "list";
|
|
1109
|
+
update: "update";
|
|
1110
|
+
cancel: "cancel";
|
|
1111
|
+
}>;
|
|
1112
|
+
provider: z.ZodEnum<{
|
|
1113
|
+
LEAJLAK: "LEAJLAK";
|
|
1114
|
+
PARCEL: "PARCEL";
|
|
1115
|
+
QMILE: "QMILE";
|
|
1116
|
+
LOCAL: "LOCAL";
|
|
1117
|
+
}>;
|
|
1118
|
+
}, z.core.$strip>;
|
|
1119
|
+
};
|
|
1120
|
+
readonly DELIVERY_PROVIDER_ERROR: {
|
|
1121
|
+
readonly status: 502;
|
|
1122
|
+
readonly message: "Delivery provider error";
|
|
1123
|
+
readonly data: z.ZodObject<{
|
|
1124
|
+
provider: z.ZodEnum<{
|
|
1125
|
+
LEAJLAK: "LEAJLAK";
|
|
1126
|
+
PARCEL: "PARCEL";
|
|
1127
|
+
QMILE: "QMILE";
|
|
1128
|
+
LOCAL: "LOCAL";
|
|
1129
|
+
}>;
|
|
1130
|
+
message: z.ZodString;
|
|
1131
|
+
}, z.core.$strip>;
|
|
1132
|
+
};
|
|
1133
|
+
readonly LOCATION_INTEGRATION_NOT_SUPPORTED: {
|
|
1134
|
+
readonly status: 400;
|
|
1135
|
+
readonly message: "This provider does not support location integration";
|
|
1136
|
+
readonly data: z.ZodObject<{
|
|
1137
|
+
provider: z.ZodEnum<{
|
|
1138
|
+
LEAJLAK: "LEAJLAK";
|
|
1139
|
+
PARCEL: "PARCEL";
|
|
1140
|
+
QMILE: "QMILE";
|
|
1141
|
+
LOCAL: "LOCAL";
|
|
1142
|
+
}>;
|
|
1143
|
+
}, z.core.$strip>;
|
|
1144
|
+
};
|
|
1145
|
+
}>>>>, Record<never, never>>;
|
|
1146
|
+
delete: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
1147
|
+
integrationId: z.ZodUUID;
|
|
1148
|
+
}, z.core.$strip>, z.ZodVoid, _orpc_contract0.MergedErrorMap<Record<never, never>, _orpc_contract0.MergedErrorMap<Record<never, never>, _orpc_contract0.MergedErrorMap<Record<never, never>, _orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
1149
|
+
readonly DELIVERY_NOT_FOUND: {
|
|
1150
|
+
readonly status: 404;
|
|
1151
|
+
readonly message: "Delivery not found";
|
|
1152
|
+
readonly data: z.ZodObject<{
|
|
1153
|
+
deliveryId: z.ZodString;
|
|
1154
|
+
}, z.core.$strip>;
|
|
1155
|
+
};
|
|
1156
|
+
readonly DELIVERY_ORDER_NOT_FOUND: {
|
|
1157
|
+
readonly status: 404;
|
|
1158
|
+
readonly message: "Order not found";
|
|
1159
|
+
readonly data: z.ZodObject<{
|
|
1160
|
+
orderId: z.ZodString;
|
|
1161
|
+
}, z.core.$strip>;
|
|
1162
|
+
};
|
|
1163
|
+
readonly DELIVERY_INTEGRATION_NOT_FOUND: {
|
|
1164
|
+
readonly status: 404;
|
|
1165
|
+
readonly message: "No active integration found for delivery provider";
|
|
1166
|
+
readonly data: z.ZodObject<{
|
|
1167
|
+
merchantId: z.ZodOptional<z.ZodString>;
|
|
1168
|
+
provider: z.ZodEnum<{
|
|
1169
|
+
LEAJLAK: "LEAJLAK";
|
|
1170
|
+
PARCEL: "PARCEL";
|
|
1171
|
+
QMILE: "QMILE";
|
|
1172
|
+
LOCAL: "LOCAL";
|
|
1173
|
+
}>;
|
|
1174
|
+
}, z.core.$strip>;
|
|
1175
|
+
};
|
|
1176
|
+
readonly DELIVERY_INVALID_OPERATION: {
|
|
1177
|
+
readonly status: 400;
|
|
1178
|
+
readonly message: "Operation not supported for this delivery provider";
|
|
1179
|
+
readonly data: z.ZodObject<{
|
|
1180
|
+
operation: z.ZodEnum<{
|
|
1181
|
+
create: "create";
|
|
1182
|
+
get: "get";
|
|
1183
|
+
list: "list";
|
|
1184
|
+
update: "update";
|
|
1185
|
+
cancel: "cancel";
|
|
1186
|
+
}>;
|
|
1187
|
+
provider: z.ZodEnum<{
|
|
1188
|
+
LEAJLAK: "LEAJLAK";
|
|
1189
|
+
PARCEL: "PARCEL";
|
|
1190
|
+
QMILE: "QMILE";
|
|
1191
|
+
LOCAL: "LOCAL";
|
|
1192
|
+
}>;
|
|
1193
|
+
}, z.core.$strip>;
|
|
1194
|
+
};
|
|
1195
|
+
readonly DELIVERY_PROVIDER_ERROR: {
|
|
1196
|
+
readonly status: 502;
|
|
1197
|
+
readonly message: "Delivery provider error";
|
|
1198
|
+
readonly data: z.ZodObject<{
|
|
1199
|
+
provider: z.ZodEnum<{
|
|
1200
|
+
LEAJLAK: "LEAJLAK";
|
|
1201
|
+
PARCEL: "PARCEL";
|
|
1202
|
+
QMILE: "QMILE";
|
|
1203
|
+
LOCAL: "LOCAL";
|
|
1204
|
+
}>;
|
|
1205
|
+
message: z.ZodString;
|
|
1206
|
+
}, z.core.$strip>;
|
|
1207
|
+
};
|
|
1208
|
+
readonly LOCATION_INTEGRATION_NOT_SUPPORTED: {
|
|
1209
|
+
readonly status: 400;
|
|
1210
|
+
readonly message: "This provider does not support location integration";
|
|
1211
|
+
readonly data: z.ZodObject<{
|
|
1212
|
+
provider: z.ZodEnum<{
|
|
1213
|
+
LEAJLAK: "LEAJLAK";
|
|
1214
|
+
PARCEL: "PARCEL";
|
|
1215
|
+
QMILE: "QMILE";
|
|
1216
|
+
LOCAL: "LOCAL";
|
|
1217
|
+
}>;
|
|
1218
|
+
}, z.core.$strip>;
|
|
1219
|
+
};
|
|
1220
|
+
}>>>>, Record<never, never>>;
|
|
1221
|
+
locations: {
|
|
1222
|
+
create: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
1223
|
+
merchantId: z.ZodOptional<z.ZodUUID>;
|
|
1224
|
+
provider: z.ZodEnum<{
|
|
1225
|
+
LEAJLAK: "LEAJLAK";
|
|
1226
|
+
PARCEL: "PARCEL";
|
|
1227
|
+
QMILE: "QMILE";
|
|
1228
|
+
LOCAL: "LOCAL";
|
|
1229
|
+
}>;
|
|
1230
|
+
locationId: z.ZodUUID;
|
|
1231
|
+
contactPerson: z.ZodOptional<z.ZodString>;
|
|
1232
|
+
email: z.ZodOptional<z.ZodString>;
|
|
1233
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1234
|
+
success: z.ZodBoolean;
|
|
1235
|
+
providerLocationId: z.ZodString;
|
|
1236
|
+
providerMetadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1237
|
+
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, _orpc_contract0.MergedErrorMap<Record<never, never>, _orpc_contract0.MergedErrorMap<Record<never, never>, _orpc_contract0.MergedErrorMap<Record<never, never>, _orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
1238
|
+
readonly DELIVERY_NOT_FOUND: {
|
|
1239
|
+
readonly status: 404;
|
|
1240
|
+
readonly message: "Delivery not found";
|
|
1241
|
+
readonly data: z.ZodObject<{
|
|
1242
|
+
deliveryId: z.ZodString;
|
|
1243
|
+
}, z.core.$strip>;
|
|
1244
|
+
};
|
|
1245
|
+
readonly DELIVERY_ORDER_NOT_FOUND: {
|
|
1246
|
+
readonly status: 404;
|
|
1247
|
+
readonly message: "Order not found";
|
|
1248
|
+
readonly data: z.ZodObject<{
|
|
1249
|
+
orderId: z.ZodString;
|
|
1250
|
+
}, z.core.$strip>;
|
|
1251
|
+
};
|
|
1252
|
+
readonly DELIVERY_INTEGRATION_NOT_FOUND: {
|
|
1253
|
+
readonly status: 404;
|
|
1254
|
+
readonly message: "No active integration found for delivery provider";
|
|
1255
|
+
readonly data: z.ZodObject<{
|
|
1256
|
+
merchantId: z.ZodOptional<z.ZodString>;
|
|
1257
|
+
provider: z.ZodEnum<{
|
|
1258
|
+
LEAJLAK: "LEAJLAK";
|
|
1259
|
+
PARCEL: "PARCEL";
|
|
1260
|
+
QMILE: "QMILE";
|
|
1261
|
+
LOCAL: "LOCAL";
|
|
1262
|
+
}>;
|
|
1263
|
+
}, z.core.$strip>;
|
|
1264
|
+
};
|
|
1265
|
+
readonly DELIVERY_INVALID_OPERATION: {
|
|
1266
|
+
readonly status: 400;
|
|
1267
|
+
readonly message: "Operation not supported for this delivery provider";
|
|
1268
|
+
readonly data: z.ZodObject<{
|
|
1269
|
+
operation: z.ZodEnum<{
|
|
1270
|
+
create: "create";
|
|
1271
|
+
get: "get";
|
|
1272
|
+
list: "list";
|
|
1273
|
+
update: "update";
|
|
1274
|
+
cancel: "cancel";
|
|
1275
|
+
}>;
|
|
1276
|
+
provider: z.ZodEnum<{
|
|
1277
|
+
LEAJLAK: "LEAJLAK";
|
|
1278
|
+
PARCEL: "PARCEL";
|
|
1279
|
+
QMILE: "QMILE";
|
|
1280
|
+
LOCAL: "LOCAL";
|
|
1281
|
+
}>;
|
|
1282
|
+
}, z.core.$strip>;
|
|
1283
|
+
};
|
|
1284
|
+
readonly DELIVERY_PROVIDER_ERROR: {
|
|
1285
|
+
readonly status: 502;
|
|
1286
|
+
readonly message: "Delivery provider error";
|
|
1287
|
+
readonly data: z.ZodObject<{
|
|
1288
|
+
provider: z.ZodEnum<{
|
|
1289
|
+
LEAJLAK: "LEAJLAK";
|
|
1290
|
+
PARCEL: "PARCEL";
|
|
1291
|
+
QMILE: "QMILE";
|
|
1292
|
+
LOCAL: "LOCAL";
|
|
1293
|
+
}>;
|
|
1294
|
+
message: z.ZodString;
|
|
1295
|
+
}, z.core.$strip>;
|
|
1296
|
+
};
|
|
1297
|
+
readonly LOCATION_INTEGRATION_NOT_SUPPORTED: {
|
|
1298
|
+
readonly status: 400;
|
|
1299
|
+
readonly message: "This provider does not support location integration";
|
|
1300
|
+
readonly data: z.ZodObject<{
|
|
1301
|
+
provider: z.ZodEnum<{
|
|
1302
|
+
LEAJLAK: "LEAJLAK";
|
|
1303
|
+
PARCEL: "PARCEL";
|
|
1304
|
+
QMILE: "QMILE";
|
|
1305
|
+
LOCAL: "LOCAL";
|
|
1306
|
+
}>;
|
|
1307
|
+
}, z.core.$strip>;
|
|
1308
|
+
};
|
|
1309
|
+
}>>>>>, Record<never, never>>;
|
|
1310
|
+
};
|
|
648
1311
|
};
|
|
649
1312
|
};
|
|
650
1313
|
locations: {
|
|
@@ -668,8 +1331,8 @@ declare const appContract: {
|
|
|
668
1331
|
HIDDEN: "HIDDEN";
|
|
669
1332
|
}>>>>;
|
|
670
1333
|
type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
671
|
-
PHYSICAL: "PHYSICAL";
|
|
672
1334
|
ONLINE: "ONLINE";
|
|
1335
|
+
PHYSICAL: "PHYSICAL";
|
|
673
1336
|
}>>>;
|
|
674
1337
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
675
1338
|
slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -765,10 +1428,10 @@ declare const appContract: {
|
|
|
765
1428
|
isEnabled: z.ZodBoolean;
|
|
766
1429
|
providers: z.ZodArray<z.ZodObject<{
|
|
767
1430
|
provider: z.ZodEnum<{
|
|
768
|
-
LOCAL: "LOCAL";
|
|
769
|
-
QMILE: "QMILE";
|
|
770
1431
|
LEAJLAK: "LEAJLAK";
|
|
771
1432
|
PARCEL: "PARCEL";
|
|
1433
|
+
QMILE: "QMILE";
|
|
1434
|
+
LOCAL: "LOCAL";
|
|
772
1435
|
}>;
|
|
773
1436
|
isEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
774
1437
|
priority: z.ZodDefault<z.ZodNumber>;
|
|
@@ -801,7 +1464,7 @@ declare const appContract: {
|
|
|
801
1464
|
minDeliveryAmount: z.ZodOptional<z.ZodNullable<z.ZodBigInt>>;
|
|
802
1465
|
acceptedPayments: z.ZodArray<z.ZodEnum<{
|
|
803
1466
|
COD: "COD";
|
|
804
|
-
|
|
1467
|
+
ONLINE: "ONLINE";
|
|
805
1468
|
}>>;
|
|
806
1469
|
}, z.core.$strip>>>;
|
|
807
1470
|
pickup: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -809,7 +1472,7 @@ declare const appContract: {
|
|
|
809
1472
|
preparationTimeMinutes: z.ZodNumber;
|
|
810
1473
|
acceptedPayments: z.ZodArray<z.ZodEnum<{
|
|
811
1474
|
COD: "COD";
|
|
812
|
-
|
|
1475
|
+
ONLINE: "ONLINE";
|
|
813
1476
|
}>>;
|
|
814
1477
|
}, z.core.$strip>>>;
|
|
815
1478
|
dinein: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -817,7 +1480,7 @@ declare const appContract: {
|
|
|
817
1480
|
numberOfTables: z.ZodNumber;
|
|
818
1481
|
acceptedPayments: z.ZodArray<z.ZodEnum<{
|
|
819
1482
|
COD: "COD";
|
|
820
|
-
|
|
1483
|
+
ONLINE: "ONLINE";
|
|
821
1484
|
}>>;
|
|
822
1485
|
}, z.core.$strip>>>;
|
|
823
1486
|
curbside: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -831,7 +1494,7 @@ declare const appContract: {
|
|
|
831
1494
|
}, z.core.$strip>>>;
|
|
832
1495
|
acceptedPayments: z.ZodArray<z.ZodEnum<{
|
|
833
1496
|
COD: "COD";
|
|
834
|
-
|
|
1497
|
+
ONLINE: "ONLINE";
|
|
835
1498
|
}>>;
|
|
836
1499
|
}, z.core.$strip>>>;
|
|
837
1500
|
acceptedFulfillment: z.ZodArray<z.ZodEnum<{
|
|
@@ -849,7 +1512,7 @@ declare const appContract: {
|
|
|
849
1512
|
numberOfTables: z.ZodDefault<z.ZodNumber>;
|
|
850
1513
|
acceptedPayments: z.ZodArray<z.ZodEnum<{
|
|
851
1514
|
COD: "COD";
|
|
852
|
-
|
|
1515
|
+
ONLINE: "ONLINE";
|
|
853
1516
|
}>>;
|
|
854
1517
|
theme: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
855
1518
|
colors: z.ZodObject<{
|
|
@@ -879,6 +1542,14 @@ declare const appContract: {
|
|
|
879
1542
|
butcherName: z.ZodString;
|
|
880
1543
|
contactInformation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
881
1544
|
}, z.core.$strip>>>>;
|
|
1545
|
+
isTemporarilyClosed: z.ZodOptional<z.ZodBoolean>;
|
|
1546
|
+
isClosed: z.ZodOptional<z.ZodBoolean>;
|
|
1547
|
+
temporaryClosure: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1548
|
+
closedAt: z.ZodString;
|
|
1549
|
+
reopensAt: z.ZodString;
|
|
1550
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1551
|
+
remainingSeconds: z.ZodNumber;
|
|
1552
|
+
}, z.core.$strip>>>;
|
|
882
1553
|
}, z.core.$strip>>;
|
|
883
1554
|
pagination: z.ZodObject<{
|
|
884
1555
|
page: z.ZodNumber;
|
|
@@ -973,10 +1644,10 @@ declare const appContract: {
|
|
|
973
1644
|
isEnabled: z.ZodBoolean;
|
|
974
1645
|
providers: z.ZodArray<z.ZodObject<{
|
|
975
1646
|
provider: z.ZodEnum<{
|
|
976
|
-
LOCAL: "LOCAL";
|
|
977
|
-
QMILE: "QMILE";
|
|
978
1647
|
LEAJLAK: "LEAJLAK";
|
|
979
1648
|
PARCEL: "PARCEL";
|
|
1649
|
+
QMILE: "QMILE";
|
|
1650
|
+
LOCAL: "LOCAL";
|
|
980
1651
|
}>;
|
|
981
1652
|
isEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
982
1653
|
priority: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1009,7 +1680,7 @@ declare const appContract: {
|
|
|
1009
1680
|
minDeliveryAmount: z.ZodOptional<z.ZodNullable<z.ZodBigInt>>;
|
|
1010
1681
|
acceptedPayments: z.ZodArray<z.ZodEnum<{
|
|
1011
1682
|
COD: "COD";
|
|
1012
|
-
|
|
1683
|
+
ONLINE: "ONLINE";
|
|
1013
1684
|
}>>;
|
|
1014
1685
|
}, z.core.$strip>>>;
|
|
1015
1686
|
pickup: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -1017,7 +1688,7 @@ declare const appContract: {
|
|
|
1017
1688
|
preparationTimeMinutes: z.ZodNumber;
|
|
1018
1689
|
acceptedPayments: z.ZodArray<z.ZodEnum<{
|
|
1019
1690
|
COD: "COD";
|
|
1020
|
-
|
|
1691
|
+
ONLINE: "ONLINE";
|
|
1021
1692
|
}>>;
|
|
1022
1693
|
}, z.core.$strip>>>;
|
|
1023
1694
|
dinein: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -1025,7 +1696,7 @@ declare const appContract: {
|
|
|
1025
1696
|
numberOfTables: z.ZodNumber;
|
|
1026
1697
|
acceptedPayments: z.ZodArray<z.ZodEnum<{
|
|
1027
1698
|
COD: "COD";
|
|
1028
|
-
|
|
1699
|
+
ONLINE: "ONLINE";
|
|
1029
1700
|
}>>;
|
|
1030
1701
|
}, z.core.$strip>>>;
|
|
1031
1702
|
curbside: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -1039,7 +1710,7 @@ declare const appContract: {
|
|
|
1039
1710
|
}, z.core.$strip>>>;
|
|
1040
1711
|
acceptedPayments: z.ZodArray<z.ZodEnum<{
|
|
1041
1712
|
COD: "COD";
|
|
1042
|
-
|
|
1713
|
+
ONLINE: "ONLINE";
|
|
1043
1714
|
}>>;
|
|
1044
1715
|
}, z.core.$strip>>>;
|
|
1045
1716
|
acceptedFulfillment: z.ZodArray<z.ZodEnum<{
|
|
@@ -1071,7 +1742,7 @@ declare const appContract: {
|
|
|
1071
1742
|
mcc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1072
1743
|
paymentTypes: z.ZodArray<z.ZodEnum<{
|
|
1073
1744
|
COD: "COD";
|
|
1074
|
-
|
|
1745
|
+
ONLINE: "ONLINE";
|
|
1075
1746
|
}>>;
|
|
1076
1747
|
theme: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1077
1748
|
colors: z.ZodObject<{
|
|
@@ -1111,6 +1782,14 @@ declare const appContract: {
|
|
|
1111
1782
|
}>>;
|
|
1112
1783
|
autoCancelAfterMinutes: z.ZodNumber;
|
|
1113
1784
|
}, z.core.$strip>;
|
|
1785
|
+
isTemporarilyClosed: z.ZodOptional<z.ZodBoolean>;
|
|
1786
|
+
isClosed: z.ZodOptional<z.ZodBoolean>;
|
|
1787
|
+
temporaryClosure: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1788
|
+
closedAt: z.ZodString;
|
|
1789
|
+
reopensAt: z.ZodString;
|
|
1790
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1791
|
+
remainingSeconds: z.ZodNumber;
|
|
1792
|
+
}, z.core.$strip>>>;
|
|
1114
1793
|
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
1115
1794
|
create: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
1116
1795
|
name: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -1118,8 +1797,8 @@ declare const appContract: {
|
|
|
1118
1797
|
phoneNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1119
1798
|
description: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
1120
1799
|
type: z.ZodDefault<z.ZodEnum<{
|
|
1121
|
-
PHYSICAL: "PHYSICAL";
|
|
1122
1800
|
ONLINE: "ONLINE";
|
|
1801
|
+
PHYSICAL: "PHYSICAL";
|
|
1123
1802
|
}>>;
|
|
1124
1803
|
status: z.ZodDefault<z.ZodEnum<{
|
|
1125
1804
|
ACTIVE: "ACTIVE";
|
|
@@ -1150,8 +1829,8 @@ declare const appContract: {
|
|
|
1150
1829
|
phoneNumber: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1151
1830
|
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>>;
|
|
1152
1831
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
1153
|
-
PHYSICAL: "PHYSICAL";
|
|
1154
1832
|
ONLINE: "ONLINE";
|
|
1833
|
+
PHYSICAL: "PHYSICAL";
|
|
1155
1834
|
}>>>;
|
|
1156
1835
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
1157
1836
|
ACTIVE: "ACTIVE";
|
|
@@ -1175,6 +1854,13 @@ declare const appContract: {
|
|
|
1175
1854
|
}, z.core.$strip>, z.ZodObject<{
|
|
1176
1855
|
id: z.ZodString;
|
|
1177
1856
|
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
1857
|
+
delete: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
1858
|
+
locationId: z.ZodUUID;
|
|
1859
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1860
|
+
success: z.ZodLiteral<true>;
|
|
1861
|
+
locationId: z.ZodUUID;
|
|
1862
|
+
deletedAt: z.ZodDate;
|
|
1863
|
+
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
1178
1864
|
createAddress: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
1179
1865
|
locationId: z.ZodString;
|
|
1180
1866
|
address: z.ZodObject<{
|
|
@@ -1279,6 +1965,32 @@ declare const appContract: {
|
|
|
1279
1965
|
success: z.ZodBoolean;
|
|
1280
1966
|
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, _orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>>, Record<never, never>>;
|
|
1281
1967
|
};
|
|
1968
|
+
temporaryClosure: {
|
|
1969
|
+
create: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
1970
|
+
locationId: z.ZodString;
|
|
1971
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
1972
|
+
closedUntil: z.ZodOptional<z.ZodString>;
|
|
1973
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1974
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1975
|
+
closedAt: z.ZodString;
|
|
1976
|
+
reopensAt: z.ZodString;
|
|
1977
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1978
|
+
remainingSeconds: z.ZodNumber;
|
|
1979
|
+
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, _orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>>, Record<never, never>>;
|
|
1980
|
+
delete: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
1981
|
+
locationId: z.ZodString;
|
|
1982
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1983
|
+
success: z.ZodBoolean;
|
|
1984
|
+
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, _orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>>, Record<never, never>>;
|
|
1985
|
+
get: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
1986
|
+
locationId: z.ZodString;
|
|
1987
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1988
|
+
closedAt: z.ZodString;
|
|
1989
|
+
reopensAt: z.ZodString;
|
|
1990
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1991
|
+
remainingSeconds: z.ZodNumber;
|
|
1992
|
+
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, _orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>>, Record<never, never>>;
|
|
1993
|
+
};
|
|
1282
1994
|
fulfillments: {
|
|
1283
1995
|
delivery: {
|
|
1284
1996
|
upsert: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
@@ -1287,10 +1999,10 @@ declare const appContract: {
|
|
|
1287
1999
|
isEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1288
2000
|
providers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1289
2001
|
provider: z.ZodEnum<{
|
|
1290
|
-
LOCAL: "LOCAL";
|
|
1291
|
-
QMILE: "QMILE";
|
|
1292
2002
|
LEAJLAK: "LEAJLAK";
|
|
1293
2003
|
PARCEL: "PARCEL";
|
|
2004
|
+
QMILE: "QMILE";
|
|
2005
|
+
LOCAL: "LOCAL";
|
|
1294
2006
|
}>;
|
|
1295
2007
|
isEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
1296
2008
|
priority: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1323,17 +2035,161 @@ declare const appContract: {
|
|
|
1323
2035
|
minDeliveryAmount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodBigInt>>>;
|
|
1324
2036
|
acceptedPayments: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
1325
2037
|
COD: "COD";
|
|
1326
|
-
|
|
2038
|
+
ONLINE: "ONLINE";
|
|
1327
2039
|
}>>>>;
|
|
1328
2040
|
}, z.core.$strip>;
|
|
1329
2041
|
}, z.core.$strip>, z.ZodObject<{
|
|
1330
2042
|
id: z.ZodString;
|
|
1331
|
-
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, _orpc_contract0.MergedErrorMap<Record<never, never>, _orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never
|
|
2043
|
+
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, _orpc_contract0.MergedErrorMap<Record<never, never>, _orpc_contract0.MergedErrorMap<Record<never, never>, _orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
2044
|
+
readonly DELIVERY_NOT_FOUND: {
|
|
2045
|
+
readonly status: 404;
|
|
2046
|
+
readonly message: "Delivery not found";
|
|
2047
|
+
readonly data: z.ZodObject<{
|
|
2048
|
+
deliveryId: z.ZodString;
|
|
2049
|
+
}, z.core.$strip>;
|
|
2050
|
+
};
|
|
2051
|
+
readonly DELIVERY_ORDER_NOT_FOUND: {
|
|
2052
|
+
readonly status: 404;
|
|
2053
|
+
readonly message: "Order not found";
|
|
2054
|
+
readonly data: z.ZodObject<{
|
|
2055
|
+
orderId: z.ZodString;
|
|
2056
|
+
}, z.core.$strip>;
|
|
2057
|
+
};
|
|
2058
|
+
readonly DELIVERY_INTEGRATION_NOT_FOUND: {
|
|
2059
|
+
readonly status: 404;
|
|
2060
|
+
readonly message: "No active integration found for delivery provider";
|
|
2061
|
+
readonly data: z.ZodObject<{
|
|
2062
|
+
merchantId: z.ZodOptional<z.ZodString>;
|
|
2063
|
+
provider: z.ZodEnum<{
|
|
2064
|
+
LEAJLAK: "LEAJLAK";
|
|
2065
|
+
PARCEL: "PARCEL";
|
|
2066
|
+
QMILE: "QMILE";
|
|
2067
|
+
LOCAL: "LOCAL";
|
|
2068
|
+
}>;
|
|
2069
|
+
}, z.core.$strip>;
|
|
2070
|
+
};
|
|
2071
|
+
readonly DELIVERY_INVALID_OPERATION: {
|
|
2072
|
+
readonly status: 400;
|
|
2073
|
+
readonly message: "Operation not supported for this delivery provider";
|
|
2074
|
+
readonly data: z.ZodObject<{
|
|
2075
|
+
operation: z.ZodEnum<{
|
|
2076
|
+
create: "create";
|
|
2077
|
+
get: "get";
|
|
2078
|
+
list: "list";
|
|
2079
|
+
update: "update";
|
|
2080
|
+
cancel: "cancel";
|
|
2081
|
+
}>;
|
|
2082
|
+
provider: z.ZodEnum<{
|
|
2083
|
+
LEAJLAK: "LEAJLAK";
|
|
2084
|
+
PARCEL: "PARCEL";
|
|
2085
|
+
QMILE: "QMILE";
|
|
2086
|
+
LOCAL: "LOCAL";
|
|
2087
|
+
}>;
|
|
2088
|
+
}, z.core.$strip>;
|
|
2089
|
+
};
|
|
2090
|
+
readonly DELIVERY_PROVIDER_ERROR: {
|
|
2091
|
+
readonly status: 502;
|
|
2092
|
+
readonly message: "Delivery provider error";
|
|
2093
|
+
readonly data: z.ZodObject<{
|
|
2094
|
+
provider: z.ZodEnum<{
|
|
2095
|
+
LEAJLAK: "LEAJLAK";
|
|
2096
|
+
PARCEL: "PARCEL";
|
|
2097
|
+
QMILE: "QMILE";
|
|
2098
|
+
LOCAL: "LOCAL";
|
|
2099
|
+
}>;
|
|
2100
|
+
message: z.ZodString;
|
|
2101
|
+
}, z.core.$strip>;
|
|
2102
|
+
};
|
|
2103
|
+
readonly LOCATION_INTEGRATION_NOT_SUPPORTED: {
|
|
2104
|
+
readonly status: 400;
|
|
2105
|
+
readonly message: "This provider does not support location integration";
|
|
2106
|
+
readonly data: z.ZodObject<{
|
|
2107
|
+
provider: z.ZodEnum<{
|
|
2108
|
+
LEAJLAK: "LEAJLAK";
|
|
2109
|
+
PARCEL: "PARCEL";
|
|
2110
|
+
QMILE: "QMILE";
|
|
2111
|
+
LOCAL: "LOCAL";
|
|
2112
|
+
}>;
|
|
2113
|
+
}, z.core.$strip>;
|
|
2114
|
+
};
|
|
2115
|
+
}>>>>, Record<never, never>>;
|
|
1332
2116
|
remove: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
1333
2117
|
locationId: z.ZodUUID;
|
|
1334
2118
|
}, z.core.$strip>, z.ZodObject<{
|
|
1335
2119
|
id: z.ZodString;
|
|
1336
|
-
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, _orpc_contract0.MergedErrorMap<Record<never, never>, _orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never
|
|
2120
|
+
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, _orpc_contract0.MergedErrorMap<Record<never, never>, _orpc_contract0.MergedErrorMap<Record<never, never>, _orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
2121
|
+
readonly DELIVERY_NOT_FOUND: {
|
|
2122
|
+
readonly status: 404;
|
|
2123
|
+
readonly message: "Delivery not found";
|
|
2124
|
+
readonly data: z.ZodObject<{
|
|
2125
|
+
deliveryId: z.ZodString;
|
|
2126
|
+
}, z.core.$strip>;
|
|
2127
|
+
};
|
|
2128
|
+
readonly DELIVERY_ORDER_NOT_FOUND: {
|
|
2129
|
+
readonly status: 404;
|
|
2130
|
+
readonly message: "Order not found";
|
|
2131
|
+
readonly data: z.ZodObject<{
|
|
2132
|
+
orderId: z.ZodString;
|
|
2133
|
+
}, z.core.$strip>;
|
|
2134
|
+
};
|
|
2135
|
+
readonly DELIVERY_INTEGRATION_NOT_FOUND: {
|
|
2136
|
+
readonly status: 404;
|
|
2137
|
+
readonly message: "No active integration found for delivery provider";
|
|
2138
|
+
readonly data: z.ZodObject<{
|
|
2139
|
+
merchantId: z.ZodOptional<z.ZodString>;
|
|
2140
|
+
provider: z.ZodEnum<{
|
|
2141
|
+
LEAJLAK: "LEAJLAK";
|
|
2142
|
+
PARCEL: "PARCEL";
|
|
2143
|
+
QMILE: "QMILE";
|
|
2144
|
+
LOCAL: "LOCAL";
|
|
2145
|
+
}>;
|
|
2146
|
+
}, z.core.$strip>;
|
|
2147
|
+
};
|
|
2148
|
+
readonly DELIVERY_INVALID_OPERATION: {
|
|
2149
|
+
readonly status: 400;
|
|
2150
|
+
readonly message: "Operation not supported for this delivery provider";
|
|
2151
|
+
readonly data: z.ZodObject<{
|
|
2152
|
+
operation: z.ZodEnum<{
|
|
2153
|
+
create: "create";
|
|
2154
|
+
get: "get";
|
|
2155
|
+
list: "list";
|
|
2156
|
+
update: "update";
|
|
2157
|
+
cancel: "cancel";
|
|
2158
|
+
}>;
|
|
2159
|
+
provider: z.ZodEnum<{
|
|
2160
|
+
LEAJLAK: "LEAJLAK";
|
|
2161
|
+
PARCEL: "PARCEL";
|
|
2162
|
+
QMILE: "QMILE";
|
|
2163
|
+
LOCAL: "LOCAL";
|
|
2164
|
+
}>;
|
|
2165
|
+
}, z.core.$strip>;
|
|
2166
|
+
};
|
|
2167
|
+
readonly DELIVERY_PROVIDER_ERROR: {
|
|
2168
|
+
readonly status: 502;
|
|
2169
|
+
readonly message: "Delivery provider error";
|
|
2170
|
+
readonly data: z.ZodObject<{
|
|
2171
|
+
provider: z.ZodEnum<{
|
|
2172
|
+
LEAJLAK: "LEAJLAK";
|
|
2173
|
+
PARCEL: "PARCEL";
|
|
2174
|
+
QMILE: "QMILE";
|
|
2175
|
+
LOCAL: "LOCAL";
|
|
2176
|
+
}>;
|
|
2177
|
+
message: z.ZodString;
|
|
2178
|
+
}, z.core.$strip>;
|
|
2179
|
+
};
|
|
2180
|
+
readonly LOCATION_INTEGRATION_NOT_SUPPORTED: {
|
|
2181
|
+
readonly status: 400;
|
|
2182
|
+
readonly message: "This provider does not support location integration";
|
|
2183
|
+
readonly data: z.ZodObject<{
|
|
2184
|
+
provider: z.ZodEnum<{
|
|
2185
|
+
LEAJLAK: "LEAJLAK";
|
|
2186
|
+
PARCEL: "PARCEL";
|
|
2187
|
+
QMILE: "QMILE";
|
|
2188
|
+
LOCAL: "LOCAL";
|
|
2189
|
+
}>;
|
|
2190
|
+
}, z.core.$strip>;
|
|
2191
|
+
};
|
|
2192
|
+
}>>>>, Record<never, never>>;
|
|
1337
2193
|
};
|
|
1338
2194
|
pickup: {
|
|
1339
2195
|
upsert: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
@@ -1356,7 +2212,7 @@ declare const appContract: {
|
|
|
1356
2212
|
}, z.core.$strip>>>;
|
|
1357
2213
|
acceptedPayments: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1358
2214
|
COD: "COD";
|
|
1359
|
-
|
|
2215
|
+
ONLINE: "ONLINE";
|
|
1360
2216
|
}>>>;
|
|
1361
2217
|
}, z.core.$strip>;
|
|
1362
2218
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1384,7 +2240,7 @@ declare const appContract: {
|
|
|
1384
2240
|
}, z.core.$strip>>>;
|
|
1385
2241
|
acceptedPayments: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1386
2242
|
COD: "COD";
|
|
1387
|
-
|
|
2243
|
+
ONLINE: "ONLINE";
|
|
1388
2244
|
}>>>;
|
|
1389
2245
|
}, z.core.$strip>;
|
|
1390
2246
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1411,7 +2267,7 @@ declare const appContract: {
|
|
|
1411
2267
|
}, z.core.$strip>>>;
|
|
1412
2268
|
acceptedPayments: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1413
2269
|
COD: "COD";
|
|
1414
|
-
|
|
2270
|
+
ONLINE: "ONLINE";
|
|
1415
2271
|
}>>>;
|
|
1416
2272
|
}, z.core.$strip>;
|
|
1417
2273
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1513,6 +2369,7 @@ declare const appContract: {
|
|
|
1513
2369
|
id: z.ZodString;
|
|
1514
2370
|
groupJid: z.ZodString;
|
|
1515
2371
|
groupName: z.ZodString;
|
|
2372
|
+
inviteLink: z.ZodOptional<z.ZodString>;
|
|
1516
2373
|
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, _orpc_contract0.MergedErrorMap<Record<never, never>, _orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>>>, Record<never, never>>;
|
|
1517
2374
|
link: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
1518
2375
|
locationId: z.ZodString;
|
|
@@ -1522,6 +2379,7 @@ declare const appContract: {
|
|
|
1522
2379
|
id: z.ZodString;
|
|
1523
2380
|
groupJid: z.ZodString;
|
|
1524
2381
|
groupName: z.ZodString;
|
|
2382
|
+
inviteLink: z.ZodOptional<z.ZodString>;
|
|
1525
2383
|
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, _orpc_contract0.MergedErrorMap<Record<never, never>, _orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>>>, Record<never, never>>;
|
|
1526
2384
|
update: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
1527
2385
|
locationId: z.ZodString;
|
|
@@ -1627,8 +2485,8 @@ declare const appContract: {
|
|
|
1627
2485
|
UNAVAILABLE: "UNAVAILABLE";
|
|
1628
2486
|
}>>>;
|
|
1629
2487
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1630
|
-
priceMin: z.ZodOptional<z.ZodNullable<z.
|
|
1631
|
-
priceMax: z.ZodOptional<z.ZodNullable<z.
|
|
2488
|
+
priceMin: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
|
|
2489
|
+
priceMax: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
|
|
1632
2490
|
}, z.core.$strip>>;
|
|
1633
2491
|
sort: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1634
2492
|
asc: "asc";
|
|
@@ -1649,8 +2507,8 @@ declare const appContract: {
|
|
|
1649
2507
|
ordinal: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1650
2508
|
currency: z.ZodString;
|
|
1651
2509
|
priceRange: z.ZodObject<{
|
|
1652
|
-
minAmount: z.
|
|
1653
|
-
maxAmount: z.
|
|
2510
|
+
minAmount: z.ZodCoercedBigInt<unknown>;
|
|
2511
|
+
maxAmount: z.ZodCoercedBigInt<unknown>;
|
|
1654
2512
|
currency: z.ZodString;
|
|
1655
2513
|
}, z.core.$strip>;
|
|
1656
2514
|
categories: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -1672,7 +2530,10 @@ declare const appContract: {
|
|
|
1672
2530
|
id: z.ZodString;
|
|
1673
2531
|
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1674
2532
|
description: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
1675
|
-
|
|
2533
|
+
images: z.ZodArray<z.ZodObject<{
|
|
2534
|
+
id: z.ZodString;
|
|
2535
|
+
url: z.ZodString;
|
|
2536
|
+
}, z.core.$strip>>;
|
|
1676
2537
|
foodAndBeverageDetails: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1677
2538
|
calorie: z.ZodNumber;
|
|
1678
2539
|
ingredients: z.ZodArray<z.ZodEnum<{
|
|
@@ -1704,7 +2565,7 @@ declare const appContract: {
|
|
|
1704
2565
|
variations: z.ZodArray<z.ZodObject<{
|
|
1705
2566
|
id: z.ZodString;
|
|
1706
2567
|
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1707
|
-
priceAmount: z.
|
|
2568
|
+
priceAmount: z.ZodCoercedBigInt<unknown>;
|
|
1708
2569
|
currency: z.ZodString;
|
|
1709
2570
|
availability: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1710
2571
|
AVAILABLE: "AVAILABLE";
|
|
@@ -1724,7 +2585,7 @@ declare const appContract: {
|
|
|
1724
2585
|
modifiers: z.ZodArray<z.ZodObject<{
|
|
1725
2586
|
id: z.ZodString;
|
|
1726
2587
|
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1727
|
-
priceAmount: z.
|
|
2588
|
+
priceAmount: z.ZodCoercedBigInt<unknown>;
|
|
1728
2589
|
currency: z.ZodString;
|
|
1729
2590
|
availability: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1730
2591
|
AVAILABLE: "AVAILABLE";
|
|
@@ -1749,8 +2610,8 @@ declare const appContract: {
|
|
|
1749
2610
|
ordinal: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1750
2611
|
currency: z.ZodString;
|
|
1751
2612
|
priceRange: z.ZodObject<{
|
|
1752
|
-
minAmount: z.
|
|
1753
|
-
maxAmount: z.
|
|
2613
|
+
minAmount: z.ZodCoercedBigInt<unknown>;
|
|
2614
|
+
maxAmount: z.ZodCoercedBigInt<unknown>;
|
|
1754
2615
|
currency: z.ZodString;
|
|
1755
2616
|
}, z.core.$strip>;
|
|
1756
2617
|
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, _orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>>, Record<never, never>>;
|
|
@@ -1761,7 +2622,7 @@ declare const appContract: {
|
|
|
1761
2622
|
merchantId: z.ZodOptional<z.ZodString>;
|
|
1762
2623
|
variation: z.ZodObject<{
|
|
1763
2624
|
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1764
|
-
priceAmount: z.
|
|
2625
|
+
priceAmount: z.ZodCoercedBigInt<unknown>;
|
|
1765
2626
|
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1766
2627
|
ordinal: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1767
2628
|
}, z.core.$strip>;
|
|
@@ -1780,6 +2641,7 @@ declare const appContract: {
|
|
|
1780
2641
|
SOLDOUT: "SOLDOUT";
|
|
1781
2642
|
UNAVAILABLE: "UNAVAILABLE";
|
|
1782
2643
|
}>>>;
|
|
2644
|
+
ordinal: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1783
2645
|
}, z.core.$strip>;
|
|
1784
2646
|
}, z.core.$strip>, z.ZodObject<{
|
|
1785
2647
|
id: z.ZodString;
|
|
@@ -1813,8 +2675,8 @@ declare const appContract: {
|
|
|
1813
2675
|
UNAVAILABLE: "UNAVAILABLE";
|
|
1814
2676
|
}>>>;
|
|
1815
2677
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1816
|
-
priceMin: z.ZodOptional<z.ZodNullable<z.
|
|
1817
|
-
priceMax: z.ZodOptional<z.ZodNullable<z.
|
|
2678
|
+
priceMin: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
|
|
2679
|
+
priceMax: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
|
|
1818
2680
|
}, z.core.$strip>>;
|
|
1819
2681
|
sort: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1820
2682
|
asc: "asc";
|
|
@@ -1824,7 +2686,7 @@ declare const appContract: {
|
|
|
1824
2686
|
items: z.ZodArray<z.ZodObject<{
|
|
1825
2687
|
id: z.ZodString;
|
|
1826
2688
|
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1827
|
-
priceAmount: z.
|
|
2689
|
+
priceAmount: z.ZodCoercedBigInt<unknown>;
|
|
1828
2690
|
currency: z.ZodString;
|
|
1829
2691
|
availability: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1830
2692
|
AVAILABLE: "AVAILABLE";
|
|
@@ -1844,7 +2706,7 @@ declare const appContract: {
|
|
|
1844
2706
|
create: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
1845
2707
|
itemId: z.ZodString;
|
|
1846
2708
|
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1847
|
-
priceAmount: z.
|
|
2709
|
+
priceAmount: z.ZodCoercedBigInt<unknown>;
|
|
1848
2710
|
availability: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1849
2711
|
AVAILABLE: "AVAILABLE";
|
|
1850
2712
|
SOLDOUT: "SOLDOUT";
|
|
@@ -1857,7 +2719,7 @@ declare const appContract: {
|
|
|
1857
2719
|
id: z.ZodString;
|
|
1858
2720
|
itemId: z.ZodString;
|
|
1859
2721
|
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1860
|
-
priceAmount: z.
|
|
2722
|
+
priceAmount: z.ZodCoercedBigInt<unknown>;
|
|
1861
2723
|
availability: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1862
2724
|
AVAILABLE: "AVAILABLE";
|
|
1863
2725
|
SOLDOUT: "SOLDOUT";
|
|
@@ -1868,7 +2730,7 @@ declare const appContract: {
|
|
|
1868
2730
|
variationId: z.ZodString;
|
|
1869
2731
|
update: z.ZodObject<{
|
|
1870
2732
|
name: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
1871
|
-
priceAmount: z.ZodOptional<z.ZodNullable<z.
|
|
2733
|
+
priceAmount: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
|
|
1872
2734
|
availability: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1873
2735
|
AVAILABLE: "AVAILABLE";
|
|
1874
2736
|
SOLDOUT: "SOLDOUT";
|
|
@@ -1908,8 +2770,8 @@ declare const appContract: {
|
|
|
1908
2770
|
UNAVAILABLE: "UNAVAILABLE";
|
|
1909
2771
|
}>>>;
|
|
1910
2772
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1911
|
-
priceMin: z.ZodOptional<z.ZodNullable<z.
|
|
1912
|
-
priceMax: z.ZodOptional<z.ZodNullable<z.
|
|
2773
|
+
priceMin: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
|
|
2774
|
+
priceMax: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
|
|
1913
2775
|
}, z.core.$strip>>;
|
|
1914
2776
|
sort: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1915
2777
|
asc: "asc";
|
|
@@ -1919,7 +2781,7 @@ declare const appContract: {
|
|
|
1919
2781
|
items: z.ZodArray<z.ZodObject<{
|
|
1920
2782
|
id: z.ZodString;
|
|
1921
2783
|
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1922
|
-
priceAmount: z.
|
|
2784
|
+
priceAmount: z.ZodCoercedBigInt<unknown>;
|
|
1923
2785
|
currency: z.ZodString;
|
|
1924
2786
|
availability: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1925
2787
|
AVAILABLE: "AVAILABLE";
|
|
@@ -1941,7 +2803,7 @@ declare const appContract: {
|
|
|
1941
2803
|
}, z.core.$strip>, z.ZodObject<{
|
|
1942
2804
|
id: z.ZodString;
|
|
1943
2805
|
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1944
|
-
priceAmount: z.
|
|
2806
|
+
priceAmount: z.ZodCoercedBigInt<unknown>;
|
|
1945
2807
|
currency: z.ZodString;
|
|
1946
2808
|
availability: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1947
2809
|
AVAILABLE: "AVAILABLE";
|
|
@@ -1975,7 +2837,7 @@ declare const appContract: {
|
|
|
1975
2837
|
create: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
1976
2838
|
modifierListId: z.ZodString;
|
|
1977
2839
|
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1978
|
-
priceAmount: z.
|
|
2840
|
+
priceAmount: z.ZodCoercedBigInt<unknown>;
|
|
1979
2841
|
onByDefault: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1980
2842
|
ordinal: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1981
2843
|
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1983,14 +2845,14 @@ declare const appContract: {
|
|
|
1983
2845
|
}, z.core.$strip>, z.ZodObject<{
|
|
1984
2846
|
id: z.ZodString;
|
|
1985
2847
|
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1986
|
-
priceAmount: z.
|
|
2848
|
+
priceAmount: z.ZodCoercedBigInt<unknown>;
|
|
1987
2849
|
modifierListId: z.ZodString;
|
|
1988
2850
|
onByDefault: z.ZodBoolean;
|
|
1989
2851
|
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, _orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>>, Record<never, never>>;
|
|
1990
2852
|
update: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
1991
2853
|
modifierId: z.ZodString;
|
|
1992
|
-
name: z.ZodString
|
|
1993
|
-
priceAmount: z.
|
|
2854
|
+
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2855
|
+
priceAmount: z.ZodCoercedBigInt<unknown>;
|
|
1994
2856
|
onByDefault: z.ZodBoolean;
|
|
1995
2857
|
ordinal: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1996
2858
|
merchantId: z.ZodOptional<z.ZodString>;
|
|
@@ -2011,6 +2873,7 @@ declare const appContract: {
|
|
|
2011
2873
|
filter: z.ZodOptional<z.ZodObject<{
|
|
2012
2874
|
startTime: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
2013
2875
|
endTime: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
2876
|
+
merchantId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2014
2877
|
itemId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2015
2878
|
locationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2016
2879
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -2054,7 +2917,7 @@ declare const appContract: {
|
|
|
2054
2917
|
modifiers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
2055
2918
|
id: z.ZodString;
|
|
2056
2919
|
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2057
|
-
priceAmount: z.
|
|
2920
|
+
priceAmount: z.ZodCoercedBigInt<unknown>;
|
|
2058
2921
|
currency: z.ZodString;
|
|
2059
2922
|
availability: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2060
2923
|
AVAILABLE: "AVAILABLE";
|
|
@@ -2105,7 +2968,7 @@ declare const appContract: {
|
|
|
2105
2968
|
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, _orpc_contract0.MergedErrorMap<Record<never, never>, _orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>>>, Record<never, never>>;
|
|
2106
2969
|
update: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
2107
2970
|
modifierListId: z.ZodString;
|
|
2108
|
-
name: z.ZodString
|
|
2971
|
+
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2109
2972
|
selectionType: z.ZodEnum<{
|
|
2110
2973
|
SINGLE: "SINGLE";
|
|
2111
2974
|
MULTIPLE: "MULTIPLE";
|
|
@@ -2223,8 +3086,8 @@ declare const appContract: {
|
|
|
2223
3086
|
ordinal: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2224
3087
|
currency: z.ZodString;
|
|
2225
3088
|
priceRange: z.ZodObject<{
|
|
2226
|
-
minAmount: z.
|
|
2227
|
-
maxAmount: z.
|
|
3089
|
+
minAmount: z.ZodCoercedBigInt<unknown>;
|
|
3090
|
+
maxAmount: z.ZodCoercedBigInt<unknown>;
|
|
2228
3091
|
currency: z.ZodString;
|
|
2229
3092
|
}, z.core.$strip>;
|
|
2230
3093
|
categories: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -2326,7 +3189,7 @@ declare const appContract: {
|
|
|
2326
3189
|
upsertModifier: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
2327
3190
|
modifierListId: z.ZodString;
|
|
2328
3191
|
name: z.ZodString;
|
|
2329
|
-
priceAmount: z.
|
|
3192
|
+
priceAmount: z.ZodCoercedBigInt<unknown>;
|
|
2330
3193
|
onByDefault: z.ZodBoolean;
|
|
2331
3194
|
ordinal: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2332
3195
|
modifierId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -2397,11 +3260,30 @@ declare const appContract: {
|
|
|
2397
3260
|
type: z.ZodLiteral<"DINEIN">;
|
|
2398
3261
|
tableNumber: z.ZodString;
|
|
2399
3262
|
}, z.core.$strip>], "type">;
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
3263
|
+
paymentSource: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3264
|
+
type: z.ZodOptional<z.ZodString>;
|
|
3265
|
+
company: z.ZodOptional<z.ZodString>;
|
|
3266
|
+
entryMethod: z.ZodOptional<z.ZodString>;
|
|
3267
|
+
card: z.ZodOptional<z.ZodObject<{
|
|
3268
|
+
bin: z.ZodOptional<z.ZodString>;
|
|
3269
|
+
expMonth: z.ZodOptional<z.ZodNumber>;
|
|
3270
|
+
expYear: z.ZodOptional<z.ZodNumber>;
|
|
3271
|
+
fingerprint: z.ZodOptional<z.ZodString>;
|
|
3272
|
+
last4: z.ZodOptional<z.ZodString>;
|
|
3273
|
+
}, z.core.$strip>>;
|
|
3274
|
+
digitalWalletDetails: z.ZodOptional<z.ZodObject<{
|
|
3275
|
+
type: z.ZodOptional<z.ZodString>;
|
|
3276
|
+
brand: z.ZodOptional<z.ZodString>;
|
|
3277
|
+
applicationDetails: z.ZodOptional<z.ZodUnknown>;
|
|
3278
|
+
}, z.core.$strip>>;
|
|
3279
|
+
receivedMoney: z.ZodOptional<z.ZodUnknown>;
|
|
3280
|
+
changeMoney: z.ZodOptional<z.ZodUnknown>;
|
|
3281
|
+
}, z.core.$strip>>>;
|
|
3282
|
+
paymentMethod: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
3283
|
+
COD: "COD";
|
|
3284
|
+
ONLINE: "ONLINE";
|
|
3285
|
+
}>>>;
|
|
3286
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
2405
3287
|
successUrl: z.ZodString;
|
|
2406
3288
|
promocode: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2407
3289
|
code: z.ZodString;
|
|
@@ -2429,17 +3311,20 @@ declare const appContract: {
|
|
|
2429
3311
|
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2430
3312
|
variationName: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2431
3313
|
imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2432
|
-
unitPriceAmount: z.
|
|
3314
|
+
unitPriceAmount: z.ZodCoercedBigInt<unknown>;
|
|
2433
3315
|
currency: z.ZodString;
|
|
2434
3316
|
modifiers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
2435
3317
|
id: z.ZodString;
|
|
2436
|
-
unitPriceAmount: z.
|
|
2437
|
-
totalAmount: z.
|
|
3318
|
+
unitPriceAmount: z.ZodCoercedBigInt<unknown>;
|
|
3319
|
+
totalAmount: z.ZodCoercedBigInt<unknown>;
|
|
2438
3320
|
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2439
3321
|
quantity: z.ZodNumber;
|
|
2440
3322
|
}, z.core.$strip>>>>;
|
|
2441
|
-
totalAmount: z.
|
|
3323
|
+
totalAmount: z.ZodCoercedBigInt<unknown>;
|
|
2442
3324
|
note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3325
|
+
categoryIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
3326
|
+
itemId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3327
|
+
variationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2443
3328
|
}, z.core.$strip>>;
|
|
2444
3329
|
fulfillments: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2445
3330
|
type: z.ZodLiteral<"DELIVERY">;
|
|
@@ -2461,6 +3346,34 @@ declare const appContract: {
|
|
|
2461
3346
|
customerAddress: z.ZodString;
|
|
2462
3347
|
duration: z.ZodNumber;
|
|
2463
3348
|
distance: z.ZodNumber;
|
|
3349
|
+
history: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3350
|
+
id: z.ZodString;
|
|
3351
|
+
fulfillmentId: z.ZodString;
|
|
3352
|
+
oldState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
3353
|
+
NEW: "NEW";
|
|
3354
|
+
AWAITING_DELIVERY: "AWAITING_DELIVERY";
|
|
3355
|
+
CONFIRMED: "CONFIRMED";
|
|
3356
|
+
READY: "READY";
|
|
3357
|
+
ON_THE_WAY: "ON_THE_WAY";
|
|
3358
|
+
COMPLETED: "COMPLETED";
|
|
3359
|
+
CANCELLED: "CANCELLED";
|
|
3360
|
+
FAILED: "FAILED";
|
|
3361
|
+
REFUNDED: "REFUNDED";
|
|
3362
|
+
}>>>;
|
|
3363
|
+
newState: z.ZodEnum<{
|
|
3364
|
+
NEW: "NEW";
|
|
3365
|
+
AWAITING_DELIVERY: "AWAITING_DELIVERY";
|
|
3366
|
+
CONFIRMED: "CONFIRMED";
|
|
3367
|
+
READY: "READY";
|
|
3368
|
+
ON_THE_WAY: "ON_THE_WAY";
|
|
3369
|
+
COMPLETED: "COMPLETED";
|
|
3370
|
+
CANCELLED: "CANCELLED";
|
|
3371
|
+
FAILED: "FAILED";
|
|
3372
|
+
REFUNDED: "REFUNDED";
|
|
3373
|
+
}>;
|
|
3374
|
+
version: z.ZodNumber;
|
|
3375
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
3376
|
+
}, z.core.$strip>>>;
|
|
2464
3377
|
}, z.core.$strip>, z.ZodObject<{
|
|
2465
3378
|
type: z.ZodLiteral<"PICKUP">;
|
|
2466
3379
|
state: z.ZodEnum<{
|
|
@@ -2474,6 +3387,34 @@ declare const appContract: {
|
|
|
2474
3387
|
FAILED: "FAILED";
|
|
2475
3388
|
REFUNDED: "REFUNDED";
|
|
2476
3389
|
}>;
|
|
3390
|
+
history: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3391
|
+
id: z.ZodString;
|
|
3392
|
+
fulfillmentId: z.ZodString;
|
|
3393
|
+
oldState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
3394
|
+
NEW: "NEW";
|
|
3395
|
+
AWAITING_DELIVERY: "AWAITING_DELIVERY";
|
|
3396
|
+
CONFIRMED: "CONFIRMED";
|
|
3397
|
+
READY: "READY";
|
|
3398
|
+
ON_THE_WAY: "ON_THE_WAY";
|
|
3399
|
+
COMPLETED: "COMPLETED";
|
|
3400
|
+
CANCELLED: "CANCELLED";
|
|
3401
|
+
FAILED: "FAILED";
|
|
3402
|
+
REFUNDED: "REFUNDED";
|
|
3403
|
+
}>>>;
|
|
3404
|
+
newState: z.ZodEnum<{
|
|
3405
|
+
NEW: "NEW";
|
|
3406
|
+
AWAITING_DELIVERY: "AWAITING_DELIVERY";
|
|
3407
|
+
CONFIRMED: "CONFIRMED";
|
|
3408
|
+
READY: "READY";
|
|
3409
|
+
ON_THE_WAY: "ON_THE_WAY";
|
|
3410
|
+
COMPLETED: "COMPLETED";
|
|
3411
|
+
CANCELLED: "CANCELLED";
|
|
3412
|
+
FAILED: "FAILED";
|
|
3413
|
+
REFUNDED: "REFUNDED";
|
|
3414
|
+
}>;
|
|
3415
|
+
version: z.ZodNumber;
|
|
3416
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
3417
|
+
}, z.core.$strip>>>;
|
|
2477
3418
|
}, z.core.$strip>, z.ZodObject<{
|
|
2478
3419
|
type: z.ZodLiteral<"CURBSIDE">;
|
|
2479
3420
|
state: z.ZodEnum<{
|
|
@@ -2489,6 +3430,34 @@ declare const appContract: {
|
|
|
2489
3430
|
}>;
|
|
2490
3431
|
carPlateNumber: z.ZodString;
|
|
2491
3432
|
parkingNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3433
|
+
history: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3434
|
+
id: z.ZodString;
|
|
3435
|
+
fulfillmentId: z.ZodString;
|
|
3436
|
+
oldState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
3437
|
+
NEW: "NEW";
|
|
3438
|
+
AWAITING_DELIVERY: "AWAITING_DELIVERY";
|
|
3439
|
+
CONFIRMED: "CONFIRMED";
|
|
3440
|
+
READY: "READY";
|
|
3441
|
+
ON_THE_WAY: "ON_THE_WAY";
|
|
3442
|
+
COMPLETED: "COMPLETED";
|
|
3443
|
+
CANCELLED: "CANCELLED";
|
|
3444
|
+
FAILED: "FAILED";
|
|
3445
|
+
REFUNDED: "REFUNDED";
|
|
3446
|
+
}>>>;
|
|
3447
|
+
newState: z.ZodEnum<{
|
|
3448
|
+
NEW: "NEW";
|
|
3449
|
+
AWAITING_DELIVERY: "AWAITING_DELIVERY";
|
|
3450
|
+
CONFIRMED: "CONFIRMED";
|
|
3451
|
+
READY: "READY";
|
|
3452
|
+
ON_THE_WAY: "ON_THE_WAY";
|
|
3453
|
+
COMPLETED: "COMPLETED";
|
|
3454
|
+
CANCELLED: "CANCELLED";
|
|
3455
|
+
FAILED: "FAILED";
|
|
3456
|
+
REFUNDED: "REFUNDED";
|
|
3457
|
+
}>;
|
|
3458
|
+
version: z.ZodNumber;
|
|
3459
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
3460
|
+
}, z.core.$strip>>>;
|
|
2492
3461
|
}, z.core.$strip>, z.ZodObject<{
|
|
2493
3462
|
type: z.ZodLiteral<"DINEIN">;
|
|
2494
3463
|
state: z.ZodEnum<{
|
|
@@ -2503,18 +3472,75 @@ declare const appContract: {
|
|
|
2503
3472
|
REFUNDED: "REFUNDED";
|
|
2504
3473
|
}>;
|
|
2505
3474
|
tableNumber: z.ZodString;
|
|
3475
|
+
history: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3476
|
+
id: z.ZodString;
|
|
3477
|
+
fulfillmentId: z.ZodString;
|
|
3478
|
+
oldState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
3479
|
+
NEW: "NEW";
|
|
3480
|
+
AWAITING_DELIVERY: "AWAITING_DELIVERY";
|
|
3481
|
+
CONFIRMED: "CONFIRMED";
|
|
3482
|
+
READY: "READY";
|
|
3483
|
+
ON_THE_WAY: "ON_THE_WAY";
|
|
3484
|
+
COMPLETED: "COMPLETED";
|
|
3485
|
+
CANCELLED: "CANCELLED";
|
|
3486
|
+
FAILED: "FAILED";
|
|
3487
|
+
REFUNDED: "REFUNDED";
|
|
3488
|
+
}>>>;
|
|
3489
|
+
newState: z.ZodEnum<{
|
|
3490
|
+
NEW: "NEW";
|
|
3491
|
+
AWAITING_DELIVERY: "AWAITING_DELIVERY";
|
|
3492
|
+
CONFIRMED: "CONFIRMED";
|
|
3493
|
+
READY: "READY";
|
|
3494
|
+
ON_THE_WAY: "ON_THE_WAY";
|
|
3495
|
+
COMPLETED: "COMPLETED";
|
|
3496
|
+
CANCELLED: "CANCELLED";
|
|
3497
|
+
FAILED: "FAILED";
|
|
3498
|
+
REFUNDED: "REFUNDED";
|
|
3499
|
+
}>;
|
|
3500
|
+
version: z.ZodNumber;
|
|
3501
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
3502
|
+
}, z.core.$strip>>>;
|
|
2506
3503
|
}, z.core.$strip>], "type">>;
|
|
2507
|
-
|
|
3504
|
+
paymentSource: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3505
|
+
type: z.ZodOptional<z.ZodString>;
|
|
3506
|
+
company: z.ZodOptional<z.ZodString>;
|
|
3507
|
+
entryMethod: z.ZodOptional<z.ZodString>;
|
|
3508
|
+
card: z.ZodOptional<z.ZodObject<{
|
|
3509
|
+
bin: z.ZodOptional<z.ZodString>;
|
|
3510
|
+
expMonth: z.ZodOptional<z.ZodNumber>;
|
|
3511
|
+
expYear: z.ZodOptional<z.ZodNumber>;
|
|
3512
|
+
fingerprint: z.ZodOptional<z.ZodString>;
|
|
3513
|
+
last4: z.ZodOptional<z.ZodString>;
|
|
3514
|
+
}, z.core.$strip>>;
|
|
3515
|
+
digitalWalletDetails: z.ZodOptional<z.ZodObject<{
|
|
3516
|
+
type: z.ZodOptional<z.ZodString>;
|
|
3517
|
+
brand: z.ZodOptional<z.ZodString>;
|
|
3518
|
+
applicationDetails: z.ZodOptional<z.ZodUnknown>;
|
|
3519
|
+
}, z.core.$strip>>;
|
|
3520
|
+
receivedMoney: z.ZodOptional<z.ZodUnknown>;
|
|
3521
|
+
changeMoney: z.ZodOptional<z.ZodUnknown>;
|
|
3522
|
+
}, z.core.$strip>>>;
|
|
3523
|
+
paymentStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
3524
|
+
FAILED: "FAILED";
|
|
3525
|
+
REFUNDED: "REFUNDED";
|
|
3526
|
+
INITIATED: "INITIATED";
|
|
3527
|
+
PAID: "PAID";
|
|
3528
|
+
AUTHORIZED: "AUTHORIZED";
|
|
3529
|
+
CAPTURED: "CAPTURED";
|
|
3530
|
+
VOIDED: "VOIDED";
|
|
3531
|
+
VERIFIED: "VERIFIED";
|
|
3532
|
+
}>>>;
|
|
3533
|
+
paymentMethod: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2508
3534
|
COD: "COD";
|
|
2509
|
-
|
|
2510
|
-
}
|
|
3535
|
+
ONLINE: "ONLINE";
|
|
3536
|
+
}>>>;
|
|
2511
3537
|
taxes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
2512
3538
|
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2513
3539
|
catalogObjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2514
3540
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2515
3541
|
percentage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2516
3542
|
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2517
|
-
appliedAmount: z.ZodOptional<z.ZodNullable<z.
|
|
3543
|
+
appliedAmount: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
|
|
2518
3544
|
scope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2519
3545
|
autoApplied: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2520
3546
|
}, z.core.$strip>>>>;
|
|
@@ -2523,39 +3549,39 @@ declare const appContract: {
|
|
|
2523
3549
|
catalogObjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2524
3550
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2525
3551
|
percentage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2526
|
-
appliedAmount: z.ZodOptional<z.ZodNullable<z.
|
|
3552
|
+
appliedAmount: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
|
|
2527
3553
|
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2528
3554
|
scope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2529
3555
|
}, z.core.$strip>>>>;
|
|
2530
|
-
createdAt: z.
|
|
2531
|
-
updatedAt: z.
|
|
2532
|
-
discountAmount: z.ZodDefault<z.
|
|
2533
|
-
subtotalAmount: z.ZodDefault<z.
|
|
2534
|
-
taxAmount: z.ZodDefault<z.
|
|
2535
|
-
serviceChargeAmount: z.ZodDefault<z.
|
|
2536
|
-
tipAmount: z.ZodDefault<z.
|
|
2537
|
-
totalAmount: z.ZodDefault<z.
|
|
3556
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
3557
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
3558
|
+
discountAmount: z.ZodDefault<z.ZodCoercedBigInt<unknown>>;
|
|
3559
|
+
subtotalAmount: z.ZodDefault<z.ZodCoercedBigInt<unknown>>;
|
|
3560
|
+
taxAmount: z.ZodDefault<z.ZodCoercedBigInt<unknown>>;
|
|
3561
|
+
serviceChargeAmount: z.ZodDefault<z.ZodCoercedBigInt<unknown>>;
|
|
3562
|
+
tipAmount: z.ZodDefault<z.ZodCoercedBigInt<unknown>>;
|
|
3563
|
+
totalAmount: z.ZodDefault<z.ZodCoercedBigInt<unknown>>;
|
|
2538
3564
|
serviceCharges: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2539
3565
|
name: z.ZodString;
|
|
2540
|
-
totalAmount: z.ZodDefault<z.
|
|
2541
|
-
appliedAmount: z.ZodDefault<z.
|
|
3566
|
+
totalAmount: z.ZodDefault<z.ZodCoercedBigInt<unknown>>;
|
|
3567
|
+
appliedAmount: z.ZodDefault<z.ZodCoercedBigInt<unknown>>;
|
|
2542
3568
|
calculationPhase: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2543
3569
|
taxable: z.ZodDefault<z.ZodBoolean>;
|
|
2544
3570
|
scope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2545
3571
|
}, z.core.$strip>>>;
|
|
2546
3572
|
netAmounts: z.ZodObject<{
|
|
2547
|
-
subtotalAmount: z.ZodDefault<z.
|
|
2548
|
-
taxAmount: z.ZodDefault<z.
|
|
2549
|
-
discountAmount: z.ZodDefault<z.
|
|
2550
|
-
tipAmount: z.ZodDefault<z.
|
|
2551
|
-
serviceChargeAmount: z.ZodDefault<z.
|
|
2552
|
-
totalAmount: z.ZodDefault<z.
|
|
3573
|
+
subtotalAmount: z.ZodDefault<z.ZodCoercedBigInt<unknown>>;
|
|
3574
|
+
taxAmount: z.ZodDefault<z.ZodCoercedBigInt<unknown>>;
|
|
3575
|
+
discountAmount: z.ZodDefault<z.ZodCoercedBigInt<unknown>>;
|
|
3576
|
+
tipAmount: z.ZodDefault<z.ZodCoercedBigInt<unknown>>;
|
|
3577
|
+
serviceChargeAmount: z.ZodDefault<z.ZodCoercedBigInt<unknown>>;
|
|
3578
|
+
totalAmount: z.ZodDefault<z.ZodCoercedBigInt<unknown>>;
|
|
2553
3579
|
}, z.core.$strip>;
|
|
2554
3580
|
pricingOptions: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2555
3581
|
autoApplyDiscounts: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2556
3582
|
autoApplyTaxes: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2557
3583
|
}, z.core.$strip>>>;
|
|
2558
|
-
amountDue: z.ZodOptional<z.ZodNullable<z.
|
|
3584
|
+
amountDue: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
|
|
2559
3585
|
currency: z.ZodString;
|
|
2560
3586
|
note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2561
3587
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
@@ -2572,9 +3598,9 @@ declare const appContract: {
|
|
|
2572
3598
|
FIXED_AMOUNT: "FIXED_AMOUNT";
|
|
2573
3599
|
}>>>;
|
|
2574
3600
|
discountValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2575
|
-
discountAmount: z.ZodOptional<z.ZodNullable<z.
|
|
2576
|
-
totalAmount: z.ZodOptional<z.ZodNullable<z.
|
|
2577
|
-
originalAmount: z.ZodOptional<z.ZodNullable<z.
|
|
3601
|
+
discountAmount: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
|
|
3602
|
+
totalAmount: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
|
|
3603
|
+
originalAmount: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
|
|
2578
3604
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2579
3605
|
}, z.core.$strip>>>;
|
|
2580
3606
|
paymentIds: z.ZodArray<z.ZodUUID>;
|
|
@@ -2590,34 +3616,6 @@ declare const appContract: {
|
|
|
2590
3616
|
SQUARE: "SQUARE";
|
|
2591
3617
|
}>;
|
|
2592
3618
|
}, z.core.$strip>], "type">>>;
|
|
2593
|
-
fulfillmentHistory: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2594
|
-
id: z.ZodString;
|
|
2595
|
-
fulfillmentId: z.ZodString;
|
|
2596
|
-
oldState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2597
|
-
NEW: "NEW";
|
|
2598
|
-
AWAITING_DELIVERY: "AWAITING_DELIVERY";
|
|
2599
|
-
CONFIRMED: "CONFIRMED";
|
|
2600
|
-
READY: "READY";
|
|
2601
|
-
ON_THE_WAY: "ON_THE_WAY";
|
|
2602
|
-
COMPLETED: "COMPLETED";
|
|
2603
|
-
CANCELLED: "CANCELLED";
|
|
2604
|
-
FAILED: "FAILED";
|
|
2605
|
-
REFUNDED: "REFUNDED";
|
|
2606
|
-
}>>>;
|
|
2607
|
-
newState: z.ZodEnum<{
|
|
2608
|
-
NEW: "NEW";
|
|
2609
|
-
AWAITING_DELIVERY: "AWAITING_DELIVERY";
|
|
2610
|
-
CONFIRMED: "CONFIRMED";
|
|
2611
|
-
READY: "READY";
|
|
2612
|
-
ON_THE_WAY: "ON_THE_WAY";
|
|
2613
|
-
COMPLETED: "COMPLETED";
|
|
2614
|
-
CANCELLED: "CANCELLED";
|
|
2615
|
-
FAILED: "FAILED";
|
|
2616
|
-
REFUNDED: "REFUNDED";
|
|
2617
|
-
}>;
|
|
2618
|
-
version: z.ZodNumber;
|
|
2619
|
-
createdAt: z.ZodDate;
|
|
2620
|
-
}, z.core.$strip>>>;
|
|
2621
3619
|
}, z.core.$strip>;
|
|
2622
3620
|
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
2623
3621
|
checkout: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
@@ -2652,10 +3650,29 @@ declare const appContract: {
|
|
|
2652
3650
|
type: z.ZodLiteral<"DINEIN">;
|
|
2653
3651
|
tableNumber: z.ZodString;
|
|
2654
3652
|
}, z.core.$strip>], "type">;
|
|
2655
|
-
|
|
3653
|
+
paymentSource: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3654
|
+
type: z.ZodOptional<z.ZodString>;
|
|
3655
|
+
company: z.ZodOptional<z.ZodString>;
|
|
3656
|
+
entryMethod: z.ZodOptional<z.ZodString>;
|
|
3657
|
+
card: z.ZodOptional<z.ZodObject<{
|
|
3658
|
+
bin: z.ZodOptional<z.ZodString>;
|
|
3659
|
+
expMonth: z.ZodOptional<z.ZodNumber>;
|
|
3660
|
+
expYear: z.ZodOptional<z.ZodNumber>;
|
|
3661
|
+
fingerprint: z.ZodOptional<z.ZodString>;
|
|
3662
|
+
last4: z.ZodOptional<z.ZodString>;
|
|
3663
|
+
}, z.core.$strip>>;
|
|
3664
|
+
digitalWalletDetails: z.ZodOptional<z.ZodObject<{
|
|
3665
|
+
type: z.ZodOptional<z.ZodString>;
|
|
3666
|
+
brand: z.ZodOptional<z.ZodString>;
|
|
3667
|
+
applicationDetails: z.ZodOptional<z.ZodUnknown>;
|
|
3668
|
+
}, z.core.$strip>>;
|
|
3669
|
+
receivedMoney: z.ZodOptional<z.ZodUnknown>;
|
|
3670
|
+
changeMoney: z.ZodOptional<z.ZodUnknown>;
|
|
3671
|
+
}, z.core.$strip>>>;
|
|
3672
|
+
paymentMethod: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2656
3673
|
COD: "COD";
|
|
2657
|
-
|
|
2658
|
-
}
|
|
3674
|
+
ONLINE: "ONLINE";
|
|
3675
|
+
}>>>;
|
|
2659
3676
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
2660
3677
|
successUrl: z.ZodString;
|
|
2661
3678
|
promocode: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -2696,9 +3713,15 @@ declare const appContract: {
|
|
|
2696
3713
|
CURBSIDE: "CURBSIDE";
|
|
2697
3714
|
SHIPPING: "SHIPPING";
|
|
2698
3715
|
}>>>;
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
3716
|
+
paymentStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
3717
|
+
FAILED: "FAILED";
|
|
3718
|
+
REFUNDED: "REFUNDED";
|
|
3719
|
+
INITIATED: "INITIATED";
|
|
3720
|
+
PAID: "PAID";
|
|
3721
|
+
AUTHORIZED: "AUTHORIZED";
|
|
3722
|
+
CAPTURED: "CAPTURED";
|
|
3723
|
+
VOIDED: "VOIDED";
|
|
3724
|
+
VERIFIED: "VERIFIED";
|
|
2702
3725
|
}>>>;
|
|
2703
3726
|
coordinates: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2704
3727
|
latitude: z.ZodNumber;
|
|
@@ -2717,21 +3740,50 @@ declare const appContract: {
|
|
|
2717
3740
|
locationId: z.ZodString;
|
|
2718
3741
|
customerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2719
3742
|
customerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2720
|
-
|
|
3743
|
+
paymentSource: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3744
|
+
type: z.ZodOptional<z.ZodString>;
|
|
3745
|
+
company: z.ZodOptional<z.ZodString>;
|
|
3746
|
+
entryMethod: z.ZodOptional<z.ZodString>;
|
|
3747
|
+
card: z.ZodOptional<z.ZodObject<{
|
|
3748
|
+
bin: z.ZodOptional<z.ZodString>;
|
|
3749
|
+
expMonth: z.ZodOptional<z.ZodNumber>;
|
|
3750
|
+
expYear: z.ZodOptional<z.ZodNumber>;
|
|
3751
|
+
fingerprint: z.ZodOptional<z.ZodString>;
|
|
3752
|
+
last4: z.ZodOptional<z.ZodString>;
|
|
3753
|
+
}, z.core.$strip>>;
|
|
3754
|
+
digitalWalletDetails: z.ZodOptional<z.ZodObject<{
|
|
3755
|
+
type: z.ZodOptional<z.ZodString>;
|
|
3756
|
+
brand: z.ZodOptional<z.ZodString>;
|
|
3757
|
+
applicationDetails: z.ZodOptional<z.ZodUnknown>;
|
|
3758
|
+
}, z.core.$strip>>;
|
|
3759
|
+
receivedMoney: z.ZodOptional<z.ZodUnknown>;
|
|
3760
|
+
changeMoney: z.ZodOptional<z.ZodUnknown>;
|
|
3761
|
+
}, z.core.$strip>>>;
|
|
3762
|
+
paymentStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
3763
|
+
FAILED: "FAILED";
|
|
3764
|
+
REFUNDED: "REFUNDED";
|
|
3765
|
+
INITIATED: "INITIATED";
|
|
3766
|
+
PAID: "PAID";
|
|
3767
|
+
AUTHORIZED: "AUTHORIZED";
|
|
3768
|
+
CAPTURED: "CAPTURED";
|
|
3769
|
+
VOIDED: "VOIDED";
|
|
3770
|
+
VERIFIED: "VERIFIED";
|
|
3771
|
+
}>>>;
|
|
3772
|
+
paymentMethod: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2721
3773
|
COD: "COD";
|
|
2722
|
-
|
|
2723
|
-
}
|
|
3774
|
+
ONLINE: "ONLINE";
|
|
3775
|
+
}>>>;
|
|
2724
3776
|
paymentIds: z.ZodArray<z.ZodUUID>;
|
|
2725
3777
|
currency: z.ZodString;
|
|
2726
|
-
totalAmount: z.
|
|
2727
|
-
discountAmount: z.ZodOptional<z.ZodNullable<z.
|
|
2728
|
-
subtotalAmount: z.ZodOptional<z.ZodNullable<z.
|
|
2729
|
-
taxAmount: z.ZodOptional<z.ZodNullable<z.
|
|
2730
|
-
serviceChargeAmount: z.ZodOptional<z.ZodNullable<z.
|
|
2731
|
-
tipAmount: z.ZodOptional<z.ZodNullable<z.
|
|
2732
|
-
amountDue: z.ZodOptional<z.ZodNullable<z.
|
|
2733
|
-
createdAt: z.
|
|
2734
|
-
updatedAt: z.
|
|
3778
|
+
totalAmount: z.ZodCoercedBigInt<unknown>;
|
|
3779
|
+
discountAmount: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
|
|
3780
|
+
subtotalAmount: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
|
|
3781
|
+
taxAmount: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
|
|
3782
|
+
serviceChargeAmount: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
|
|
3783
|
+
tipAmount: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
|
|
3784
|
+
amountDue: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
|
|
3785
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
3786
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
2735
3787
|
fulfillmentState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2736
3788
|
NEW: "NEW";
|
|
2737
3789
|
AWAITING_DELIVERY: "AWAITING_DELIVERY";
|
|
@@ -2782,18 +3834,21 @@ declare const appContract: {
|
|
|
2782
3834
|
quantity: number;
|
|
2783
3835
|
name: Record<string, string>;
|
|
2784
3836
|
variationName: Record<string, string>;
|
|
2785
|
-
unitPriceAmount:
|
|
3837
|
+
unitPriceAmount: unknown;
|
|
2786
3838
|
currency: string;
|
|
2787
|
-
totalAmount:
|
|
3839
|
+
totalAmount: unknown;
|
|
2788
3840
|
imageUrl?: string | null | undefined;
|
|
2789
3841
|
modifiers?: {
|
|
2790
3842
|
id: string;
|
|
2791
|
-
unitPriceAmount:
|
|
2792
|
-
totalAmount:
|
|
3843
|
+
unitPriceAmount: unknown;
|
|
3844
|
+
totalAmount: unknown;
|
|
2793
3845
|
name: Record<string, string>;
|
|
2794
3846
|
quantity: number;
|
|
2795
3847
|
}[] | null | undefined;
|
|
2796
3848
|
note?: string | null | undefined;
|
|
3849
|
+
categoryIds?: string[] | null | undefined;
|
|
3850
|
+
itemId?: string | null | undefined;
|
|
3851
|
+
variationId?: string | null | undefined;
|
|
2797
3852
|
}[];
|
|
2798
3853
|
fulfillments: ({
|
|
2799
3854
|
type: "DELIVERY";
|
|
@@ -2805,29 +3860,60 @@ declare const appContract: {
|
|
|
2805
3860
|
customerAddress: string;
|
|
2806
3861
|
duration: number;
|
|
2807
3862
|
distance: number;
|
|
3863
|
+
history?: {
|
|
3864
|
+
id: string;
|
|
3865
|
+
fulfillmentId: string;
|
|
3866
|
+
newState: "NEW" | "AWAITING_DELIVERY" | "CONFIRMED" | "READY" | "ON_THE_WAY" | "COMPLETED" | "CANCELLED" | "FAILED" | "REFUNDED";
|
|
3867
|
+
version: number;
|
|
3868
|
+
createdAt: unknown;
|
|
3869
|
+
oldState?: "NEW" | "AWAITING_DELIVERY" | "CONFIRMED" | "READY" | "ON_THE_WAY" | "COMPLETED" | "CANCELLED" | "FAILED" | "REFUNDED" | null | undefined;
|
|
3870
|
+
}[] | undefined;
|
|
2808
3871
|
} | {
|
|
2809
3872
|
type: "PICKUP";
|
|
2810
3873
|
state: "NEW" | "AWAITING_DELIVERY" | "CONFIRMED" | "READY" | "ON_THE_WAY" | "COMPLETED" | "CANCELLED" | "FAILED" | "REFUNDED";
|
|
3874
|
+
history?: {
|
|
3875
|
+
id: string;
|
|
3876
|
+
fulfillmentId: string;
|
|
3877
|
+
newState: "NEW" | "AWAITING_DELIVERY" | "CONFIRMED" | "READY" | "ON_THE_WAY" | "COMPLETED" | "CANCELLED" | "FAILED" | "REFUNDED";
|
|
3878
|
+
version: number;
|
|
3879
|
+
createdAt: unknown;
|
|
3880
|
+
oldState?: "NEW" | "AWAITING_DELIVERY" | "CONFIRMED" | "READY" | "ON_THE_WAY" | "COMPLETED" | "CANCELLED" | "FAILED" | "REFUNDED" | null | undefined;
|
|
3881
|
+
}[] | undefined;
|
|
2811
3882
|
} | {
|
|
2812
3883
|
type: "CURBSIDE";
|
|
2813
3884
|
state: "NEW" | "AWAITING_DELIVERY" | "CONFIRMED" | "READY" | "ON_THE_WAY" | "COMPLETED" | "CANCELLED" | "FAILED" | "REFUNDED";
|
|
2814
3885
|
carPlateNumber: string;
|
|
2815
3886
|
parkingNumber?: string | null | undefined;
|
|
3887
|
+
history?: {
|
|
3888
|
+
id: string;
|
|
3889
|
+
fulfillmentId: string;
|
|
3890
|
+
newState: "NEW" | "AWAITING_DELIVERY" | "CONFIRMED" | "READY" | "ON_THE_WAY" | "COMPLETED" | "CANCELLED" | "FAILED" | "REFUNDED";
|
|
3891
|
+
version: number;
|
|
3892
|
+
createdAt: unknown;
|
|
3893
|
+
oldState?: "NEW" | "AWAITING_DELIVERY" | "CONFIRMED" | "READY" | "ON_THE_WAY" | "COMPLETED" | "CANCELLED" | "FAILED" | "REFUNDED" | null | undefined;
|
|
3894
|
+
}[] | undefined;
|
|
2816
3895
|
} | {
|
|
2817
3896
|
type: "DINEIN";
|
|
2818
3897
|
state: "NEW" | "AWAITING_DELIVERY" | "CONFIRMED" | "READY" | "ON_THE_WAY" | "COMPLETED" | "CANCELLED" | "FAILED" | "REFUNDED";
|
|
2819
3898
|
tableNumber: string;
|
|
3899
|
+
history?: {
|
|
3900
|
+
id: string;
|
|
3901
|
+
fulfillmentId: string;
|
|
3902
|
+
newState: "NEW" | "AWAITING_DELIVERY" | "CONFIRMED" | "READY" | "ON_THE_WAY" | "COMPLETED" | "CANCELLED" | "FAILED" | "REFUNDED";
|
|
3903
|
+
version: number;
|
|
3904
|
+
createdAt: unknown;
|
|
3905
|
+
oldState?: "NEW" | "AWAITING_DELIVERY" | "CONFIRMED" | "READY" | "ON_THE_WAY" | "COMPLETED" | "CANCELLED" | "FAILED" | "REFUNDED" | null | undefined;
|
|
3906
|
+
}[] | undefined;
|
|
2820
3907
|
})[];
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
updatedAt: Date;
|
|
3908
|
+
createdAt: unknown;
|
|
3909
|
+
updatedAt: unknown;
|
|
2824
3910
|
netAmounts: {
|
|
2825
|
-
subtotalAmount?:
|
|
2826
|
-
taxAmount?:
|
|
2827
|
-
discountAmount?:
|
|
2828
|
-
tipAmount?:
|
|
2829
|
-
serviceChargeAmount?:
|
|
2830
|
-
totalAmount?:
|
|
3911
|
+
subtotalAmount?: unknown;
|
|
3912
|
+
taxAmount?: unknown;
|
|
3913
|
+
discountAmount?: unknown;
|
|
3914
|
+
tipAmount?: unknown;
|
|
3915
|
+
serviceChargeAmount?: unknown;
|
|
3916
|
+
totalAmount?: unknown;
|
|
2831
3917
|
};
|
|
2832
3918
|
currency: string;
|
|
2833
3919
|
paymentIds: string[];
|
|
@@ -2841,13 +3927,34 @@ declare const appContract: {
|
|
|
2841
3927
|
emailVerified?: boolean | undefined;
|
|
2842
3928
|
image?: string | null | undefined;
|
|
2843
3929
|
} | null | undefined;
|
|
3930
|
+
paymentSource?: {
|
|
3931
|
+
type?: string | undefined;
|
|
3932
|
+
company?: string | undefined;
|
|
3933
|
+
entryMethod?: string | undefined;
|
|
3934
|
+
card?: {
|
|
3935
|
+
bin?: string | undefined;
|
|
3936
|
+
expMonth?: number | undefined;
|
|
3937
|
+
expYear?: number | undefined;
|
|
3938
|
+
fingerprint?: string | undefined;
|
|
3939
|
+
last4?: string | undefined;
|
|
3940
|
+
} | undefined;
|
|
3941
|
+
digitalWalletDetails?: {
|
|
3942
|
+
type?: string | undefined;
|
|
3943
|
+
brand?: string | undefined;
|
|
3944
|
+
applicationDetails?: unknown;
|
|
3945
|
+
} | undefined;
|
|
3946
|
+
receivedMoney?: unknown;
|
|
3947
|
+
changeMoney?: unknown;
|
|
3948
|
+
} | null | undefined;
|
|
3949
|
+
paymentStatus?: "FAILED" | "REFUNDED" | "INITIATED" | "PAID" | "AUTHORIZED" | "CAPTURED" | "VOIDED" | "VERIFIED" | null | undefined;
|
|
3950
|
+
paymentMethod?: "COD" | "ONLINE" | null | undefined;
|
|
2844
3951
|
taxes?: {
|
|
2845
3952
|
id?: string | null | undefined;
|
|
2846
3953
|
catalogObjectId?: string | null | undefined;
|
|
2847
3954
|
name?: string | null | undefined;
|
|
2848
3955
|
percentage?: string | null | undefined;
|
|
2849
3956
|
type?: string | null | undefined;
|
|
2850
|
-
appliedAmount?:
|
|
3957
|
+
appliedAmount?: unknown;
|
|
2851
3958
|
scope?: string | null | undefined;
|
|
2852
3959
|
autoApplied?: boolean | null | undefined;
|
|
2853
3960
|
}[] | null | undefined;
|
|
@@ -2856,20 +3963,20 @@ declare const appContract: {
|
|
|
2856
3963
|
catalogObjectId?: string | null | undefined;
|
|
2857
3964
|
name?: string | null | undefined;
|
|
2858
3965
|
percentage?: string | null | undefined;
|
|
2859
|
-
appliedAmount?:
|
|
3966
|
+
appliedAmount?: unknown;
|
|
2860
3967
|
type?: string | null | undefined;
|
|
2861
3968
|
scope?: string | null | undefined;
|
|
2862
3969
|
}[] | null | undefined;
|
|
2863
|
-
discountAmount?:
|
|
2864
|
-
subtotalAmount?:
|
|
2865
|
-
taxAmount?:
|
|
2866
|
-
serviceChargeAmount?:
|
|
2867
|
-
tipAmount?:
|
|
2868
|
-
totalAmount?:
|
|
3970
|
+
discountAmount?: unknown;
|
|
3971
|
+
subtotalAmount?: unknown;
|
|
3972
|
+
taxAmount?: unknown;
|
|
3973
|
+
serviceChargeAmount?: unknown;
|
|
3974
|
+
tipAmount?: unknown;
|
|
3975
|
+
totalAmount?: unknown;
|
|
2869
3976
|
serviceCharges?: {
|
|
2870
3977
|
name: string;
|
|
2871
|
-
totalAmount?:
|
|
2872
|
-
appliedAmount?:
|
|
3978
|
+
totalAmount?: unknown;
|
|
3979
|
+
appliedAmount?: unknown;
|
|
2873
3980
|
calculationPhase?: string | null | undefined;
|
|
2874
3981
|
taxable?: boolean | undefined;
|
|
2875
3982
|
scope?: string | null | undefined;
|
|
@@ -2878,7 +3985,7 @@ declare const appContract: {
|
|
|
2878
3985
|
autoApplyDiscounts?: boolean | null | undefined;
|
|
2879
3986
|
autoApplyTaxes?: boolean | null | undefined;
|
|
2880
3987
|
} | null | undefined;
|
|
2881
|
-
amountDue?:
|
|
3988
|
+
amountDue?: unknown;
|
|
2882
3989
|
note?: string | null | undefined;
|
|
2883
3990
|
metadata?: Record<string, any> | null | undefined;
|
|
2884
3991
|
promocode?: {
|
|
@@ -2888,9 +3995,9 @@ declare const appContract: {
|
|
|
2888
3995
|
scope?: "LOCATION" | "APP" | null | undefined;
|
|
2889
3996
|
discountType?: "PERCENTAGE" | "FIXED_AMOUNT" | null | undefined;
|
|
2890
3997
|
discountValue?: number | null | undefined;
|
|
2891
|
-
discountAmount?:
|
|
2892
|
-
totalAmount?:
|
|
2893
|
-
originalAmount?:
|
|
3998
|
+
discountAmount?: unknown;
|
|
3999
|
+
totalAmount?: unknown;
|
|
4000
|
+
originalAmount?: unknown;
|
|
2894
4001
|
message?: string | null | undefined;
|
|
2895
4002
|
} | null | undefined;
|
|
2896
4003
|
source?: {
|
|
@@ -2900,16 +4007,8 @@ declare const appContract: {
|
|
|
2900
4007
|
type: "EXTERNAL";
|
|
2901
4008
|
app: "SQUARE";
|
|
2902
4009
|
} | null | undefined;
|
|
2903
|
-
fulfillmentHistory?: {
|
|
2904
|
-
id: string;
|
|
2905
|
-
fulfillmentId: string;
|
|
2906
|
-
newState: "NEW" | "AWAITING_DELIVERY" | "CONFIRMED" | "READY" | "ON_THE_WAY" | "COMPLETED" | "CANCELLED" | "FAILED" | "REFUNDED";
|
|
2907
|
-
version: number;
|
|
2908
|
-
createdAt: Date;
|
|
2909
|
-
oldState?: "NEW" | "AWAITING_DELIVERY" | "CONFIRMED" | "READY" | "ON_THE_WAY" | "COMPLETED" | "CANCELLED" | "FAILED" | "REFUNDED" | null | undefined;
|
|
2910
|
-
}[] | undefined;
|
|
2911
4010
|
};
|
|
2912
|
-
}, unknown, void>,
|
|
4011
|
+
}, unknown, void>, AsyncIteratorClass<{
|
|
2913
4012
|
order: {
|
|
2914
4013
|
id: string;
|
|
2915
4014
|
locationId: string;
|
|
@@ -2931,6 +4030,9 @@ declare const appContract: {
|
|
|
2931
4030
|
quantity: number;
|
|
2932
4031
|
}[] | null | undefined;
|
|
2933
4032
|
note?: string | null | undefined;
|
|
4033
|
+
categoryIds?: string[] | null | undefined;
|
|
4034
|
+
itemId?: string | null | undefined;
|
|
4035
|
+
variationId?: string | null | undefined;
|
|
2934
4036
|
}[];
|
|
2935
4037
|
fulfillments: ({
|
|
2936
4038
|
type: "DELIVERY";
|
|
@@ -2942,20 +4044,51 @@ declare const appContract: {
|
|
|
2942
4044
|
customerAddress: string;
|
|
2943
4045
|
duration: number;
|
|
2944
4046
|
distance: number;
|
|
4047
|
+
history: {
|
|
4048
|
+
id: string;
|
|
4049
|
+
fulfillmentId: string;
|
|
4050
|
+
newState: "NEW" | "AWAITING_DELIVERY" | "CONFIRMED" | "READY" | "ON_THE_WAY" | "COMPLETED" | "CANCELLED" | "FAILED" | "REFUNDED";
|
|
4051
|
+
version: number;
|
|
4052
|
+
createdAt: Date;
|
|
4053
|
+
oldState?: "NEW" | "AWAITING_DELIVERY" | "CONFIRMED" | "READY" | "ON_THE_WAY" | "COMPLETED" | "CANCELLED" | "FAILED" | "REFUNDED" | null | undefined;
|
|
4054
|
+
}[];
|
|
2945
4055
|
} | {
|
|
2946
4056
|
type: "PICKUP";
|
|
2947
4057
|
state: "NEW" | "AWAITING_DELIVERY" | "CONFIRMED" | "READY" | "ON_THE_WAY" | "COMPLETED" | "CANCELLED" | "FAILED" | "REFUNDED";
|
|
4058
|
+
history: {
|
|
4059
|
+
id: string;
|
|
4060
|
+
fulfillmentId: string;
|
|
4061
|
+
newState: "NEW" | "AWAITING_DELIVERY" | "CONFIRMED" | "READY" | "ON_THE_WAY" | "COMPLETED" | "CANCELLED" | "FAILED" | "REFUNDED";
|
|
4062
|
+
version: number;
|
|
4063
|
+
createdAt: Date;
|
|
4064
|
+
oldState?: "NEW" | "AWAITING_DELIVERY" | "CONFIRMED" | "READY" | "ON_THE_WAY" | "COMPLETED" | "CANCELLED" | "FAILED" | "REFUNDED" | null | undefined;
|
|
4065
|
+
}[];
|
|
2948
4066
|
} | {
|
|
2949
4067
|
type: "CURBSIDE";
|
|
2950
4068
|
state: "NEW" | "AWAITING_DELIVERY" | "CONFIRMED" | "READY" | "ON_THE_WAY" | "COMPLETED" | "CANCELLED" | "FAILED" | "REFUNDED";
|
|
2951
4069
|
carPlateNumber: string;
|
|
4070
|
+
history: {
|
|
4071
|
+
id: string;
|
|
4072
|
+
fulfillmentId: string;
|
|
4073
|
+
newState: "NEW" | "AWAITING_DELIVERY" | "CONFIRMED" | "READY" | "ON_THE_WAY" | "COMPLETED" | "CANCELLED" | "FAILED" | "REFUNDED";
|
|
4074
|
+
version: number;
|
|
4075
|
+
createdAt: Date;
|
|
4076
|
+
oldState?: "NEW" | "AWAITING_DELIVERY" | "CONFIRMED" | "READY" | "ON_THE_WAY" | "COMPLETED" | "CANCELLED" | "FAILED" | "REFUNDED" | null | undefined;
|
|
4077
|
+
}[];
|
|
2952
4078
|
parkingNumber?: string | null | undefined;
|
|
2953
4079
|
} | {
|
|
2954
4080
|
type: "DINEIN";
|
|
2955
4081
|
state: "NEW" | "AWAITING_DELIVERY" | "CONFIRMED" | "READY" | "ON_THE_WAY" | "COMPLETED" | "CANCELLED" | "FAILED" | "REFUNDED";
|
|
2956
4082
|
tableNumber: string;
|
|
4083
|
+
history: {
|
|
4084
|
+
id: string;
|
|
4085
|
+
fulfillmentId: string;
|
|
4086
|
+
newState: "NEW" | "AWAITING_DELIVERY" | "CONFIRMED" | "READY" | "ON_THE_WAY" | "COMPLETED" | "CANCELLED" | "FAILED" | "REFUNDED";
|
|
4087
|
+
version: number;
|
|
4088
|
+
createdAt: Date;
|
|
4089
|
+
oldState?: "NEW" | "AWAITING_DELIVERY" | "CONFIRMED" | "READY" | "ON_THE_WAY" | "COMPLETED" | "CANCELLED" | "FAILED" | "REFUNDED" | null | undefined;
|
|
4090
|
+
}[];
|
|
2957
4091
|
})[];
|
|
2958
|
-
paymentMethod: "COD" | "CARD";
|
|
2959
4092
|
createdAt: Date;
|
|
2960
4093
|
updatedAt: Date;
|
|
2961
4094
|
discountAmount: bigint;
|
|
@@ -2982,14 +4115,6 @@ declare const appContract: {
|
|
|
2982
4115
|
};
|
|
2983
4116
|
currency: string;
|
|
2984
4117
|
paymentIds: string[];
|
|
2985
|
-
fulfillmentHistory: {
|
|
2986
|
-
id: string;
|
|
2987
|
-
fulfillmentId: string;
|
|
2988
|
-
newState: "NEW" | "AWAITING_DELIVERY" | "CONFIRMED" | "READY" | "ON_THE_WAY" | "COMPLETED" | "CANCELLED" | "FAILED" | "REFUNDED";
|
|
2989
|
-
version: number;
|
|
2990
|
-
createdAt: Date;
|
|
2991
|
-
oldState?: "NEW" | "AWAITING_DELIVERY" | "CONFIRMED" | "READY" | "ON_THE_WAY" | "COMPLETED" | "CANCELLED" | "FAILED" | "REFUNDED" | null | undefined;
|
|
2992
|
-
}[];
|
|
2993
4118
|
merchantName?: Record<string, string> | null | undefined;
|
|
2994
4119
|
customerId?: string | null | undefined;
|
|
2995
4120
|
customer?: {
|
|
@@ -3000,6 +4125,27 @@ declare const appContract: {
|
|
|
3000
4125
|
phoneNumber?: string | null | undefined;
|
|
3001
4126
|
image?: string | null | undefined;
|
|
3002
4127
|
} | null | undefined;
|
|
4128
|
+
paymentSource?: {
|
|
4129
|
+
type?: string | undefined;
|
|
4130
|
+
company?: string | undefined;
|
|
4131
|
+
entryMethod?: string | undefined;
|
|
4132
|
+
card?: {
|
|
4133
|
+
bin?: string | undefined;
|
|
4134
|
+
expMonth?: number | undefined;
|
|
4135
|
+
expYear?: number | undefined;
|
|
4136
|
+
fingerprint?: string | undefined;
|
|
4137
|
+
last4?: string | undefined;
|
|
4138
|
+
} | undefined;
|
|
4139
|
+
digitalWalletDetails?: {
|
|
4140
|
+
type?: string | undefined;
|
|
4141
|
+
brand?: string | undefined;
|
|
4142
|
+
applicationDetails?: unknown;
|
|
4143
|
+
} | undefined;
|
|
4144
|
+
receivedMoney?: unknown;
|
|
4145
|
+
changeMoney?: unknown;
|
|
4146
|
+
} | null | undefined;
|
|
4147
|
+
paymentStatus?: "FAILED" | "REFUNDED" | "INITIATED" | "PAID" | "AUTHORIZED" | "CAPTURED" | "VOIDED" | "VERIFIED" | null | undefined;
|
|
4148
|
+
paymentMethod?: "COD" | "ONLINE" | null | undefined;
|
|
3003
4149
|
taxes?: {
|
|
3004
4150
|
id?: string | null | undefined;
|
|
3005
4151
|
catalogObjectId?: string | null | undefined;
|
|
@@ -3061,10 +4207,10 @@ declare const appContract: {
|
|
|
3061
4207
|
REFUNDED: "REFUNDED";
|
|
3062
4208
|
}>;
|
|
3063
4209
|
deliveryProvider: z.ZodOptional<z.ZodEnum<{
|
|
3064
|
-
LOCAL: "LOCAL";
|
|
3065
|
-
QMILE: "QMILE";
|
|
3066
4210
|
LEAJLAK: "LEAJLAK";
|
|
3067
4211
|
PARCEL: "PARCEL";
|
|
4212
|
+
QMILE: "QMILE";
|
|
4213
|
+
LOCAL: "LOCAL";
|
|
3068
4214
|
}>>;
|
|
3069
4215
|
}, z.core.$strip>, z.ZodVoid, _orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
3070
4216
|
refund: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
@@ -3162,7 +4308,7 @@ declare const appContract: {
|
|
|
3162
4308
|
CURBSIDE: "CURBSIDE";
|
|
3163
4309
|
SHIPPING: "SHIPPING";
|
|
3164
4310
|
}>>>>>;
|
|
3165
|
-
minOrderAmount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.
|
|
4311
|
+
minOrderAmount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>>;
|
|
3166
4312
|
maxDiscountAmount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
3167
4313
|
}, z.core.$strip>>>;
|
|
3168
4314
|
isActive: z.ZodBoolean;
|
|
@@ -3202,7 +4348,7 @@ declare const appContract: {
|
|
|
3202
4348
|
CURBSIDE: "CURBSIDE";
|
|
3203
4349
|
SHIPPING: "SHIPPING";
|
|
3204
4350
|
}>>>>>;
|
|
3205
|
-
minOrderAmount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.
|
|
4351
|
+
minOrderAmount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>>;
|
|
3206
4352
|
maxDiscountAmount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
3207
4353
|
}, z.core.$strip>>>;
|
|
3208
4354
|
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -3233,7 +4379,7 @@ declare const appContract: {
|
|
|
3233
4379
|
CURBSIDE: "CURBSIDE";
|
|
3234
4380
|
SHIPPING: "SHIPPING";
|
|
3235
4381
|
}>>>>>;
|
|
3236
|
-
minOrderAmount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.
|
|
4382
|
+
minOrderAmount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>>;
|
|
3237
4383
|
maxDiscountAmount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
3238
4384
|
}, z.core.$strip>>>;
|
|
3239
4385
|
isActive: z.ZodBoolean;
|
|
@@ -3268,7 +4414,7 @@ declare const appContract: {
|
|
|
3268
4414
|
CURBSIDE: "CURBSIDE";
|
|
3269
4415
|
SHIPPING: "SHIPPING";
|
|
3270
4416
|
}>>>>>;
|
|
3271
|
-
minOrderAmount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.
|
|
4417
|
+
minOrderAmount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>>;
|
|
3272
4418
|
maxDiscountAmount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
3273
4419
|
}, z.core.$strip>>>>;
|
|
3274
4420
|
isActive: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
@@ -3300,7 +4446,7 @@ declare const appContract: {
|
|
|
3300
4446
|
CURBSIDE: "CURBSIDE";
|
|
3301
4447
|
SHIPPING: "SHIPPING";
|
|
3302
4448
|
}>>>>>;
|
|
3303
|
-
minOrderAmount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.
|
|
4449
|
+
minOrderAmount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>>;
|
|
3304
4450
|
maxDiscountAmount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
3305
4451
|
}, z.core.$strip>>>;
|
|
3306
4452
|
isActive: z.ZodBoolean;
|
|
@@ -3339,7 +4485,7 @@ declare const appContract: {
|
|
|
3339
4485
|
CURBSIDE: "CURBSIDE";
|
|
3340
4486
|
SHIPPING: "SHIPPING";
|
|
3341
4487
|
}>>>>>;
|
|
3342
|
-
minOrderAmount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.
|
|
4488
|
+
minOrderAmount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>>;
|
|
3343
4489
|
maxDiscountAmount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
3344
4490
|
}, z.core.$strip>>>;
|
|
3345
4491
|
isActive: z.ZodBoolean;
|
|
@@ -3352,7 +4498,7 @@ declare const appContract: {
|
|
|
3352
4498
|
code: z.ZodString;
|
|
3353
4499
|
merchantId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
3354
4500
|
locationId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
3355
|
-
orderTotalAmount: z.ZodOptional<z.ZodNullable<z.
|
|
4501
|
+
orderTotalAmount: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
|
|
3356
4502
|
orderType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
3357
4503
|
PICKUP: "PICKUP";
|
|
3358
4504
|
DELIVERY: "DELIVERY";
|
|
@@ -3388,7 +4534,7 @@ declare const appContract: {
|
|
|
3388
4534
|
CURBSIDE: "CURBSIDE";
|
|
3389
4535
|
SHIPPING: "SHIPPING";
|
|
3390
4536
|
}>>>>>;
|
|
3391
|
-
minOrderAmount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.
|
|
4537
|
+
minOrderAmount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>>;
|
|
3392
4538
|
maxDiscountAmount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
3393
4539
|
}, z.core.$strip>>>;
|
|
3394
4540
|
isActive: z.ZodBoolean;
|
|
@@ -3397,9 +4543,9 @@ declare const appContract: {
|
|
|
3397
4543
|
createdAt: z.ZodDate;
|
|
3398
4544
|
updatedAt: z.ZodDate;
|
|
3399
4545
|
}, z.core.$strip>>>;
|
|
3400
|
-
discountAmount: z.ZodOptional<z.ZodNullable<z.
|
|
3401
|
-
totalAmount: z.ZodOptional<z.ZodNullable<z.
|
|
3402
|
-
originalAmount: z.ZodOptional<z.ZodNullable<z.
|
|
4546
|
+
discountAmount: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
|
|
4547
|
+
totalAmount: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
|
|
4548
|
+
originalAmount: z.ZodOptional<z.ZodNullable<z.ZodCoercedBigInt<unknown>>>;
|
|
3403
4549
|
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
3404
4550
|
};
|
|
3405
4551
|
discounts: {
|
|
@@ -3922,8 +5068,9 @@ declare const appContract: {
|
|
|
3922
5068
|
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
3923
5069
|
templates: {
|
|
3924
5070
|
create: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
3925
|
-
name: z.ZodString;
|
|
3926
5071
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5072
|
+
language: z.ZodDefault<z.ZodString>;
|
|
5073
|
+
name: z.ZodString;
|
|
3927
5074
|
provider: z.ZodEnum<{
|
|
3928
5075
|
email: "email";
|
|
3929
5076
|
push: "push";
|
|
@@ -3931,7 +5078,6 @@ declare const appContract: {
|
|
|
3931
5078
|
sms: "sms";
|
|
3932
5079
|
}>;
|
|
3933
5080
|
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
3934
|
-
language: z.ZodDefault<z.ZodString>;
|
|
3935
5081
|
template: z.ZodString;
|
|
3936
5082
|
}, z.core.$strip>, z.ZodObject<{
|
|
3937
5083
|
id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
@@ -4016,8 +5162,9 @@ declare const appContract: {
|
|
|
4016
5162
|
update: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
4017
5163
|
templateId: z.ZodUUID;
|
|
4018
5164
|
data: z.ZodObject<{
|
|
4019
|
-
name: z.ZodOptional<z.ZodString>;
|
|
4020
5165
|
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
5166
|
+
language: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
5167
|
+
name: z.ZodOptional<z.ZodString>;
|
|
4021
5168
|
provider: z.ZodOptional<z.ZodEnum<{
|
|
4022
5169
|
email: "email";
|
|
4023
5170
|
push: "push";
|
|
@@ -4025,7 +5172,6 @@ declare const appContract: {
|
|
|
4025
5172
|
sms: "sms";
|
|
4026
5173
|
}>>;
|
|
4027
5174
|
isActive: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
4028
|
-
language: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
4029
5175
|
template: z.ZodOptional<z.ZodString>;
|
|
4030
5176
|
}, z.core.$strip>;
|
|
4031
5177
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -4118,6 +5264,27 @@ declare const appContract: {
|
|
|
4118
5264
|
success: z.ZodBoolean;
|
|
4119
5265
|
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
4120
5266
|
};
|
|
5267
|
+
devices: {
|
|
5268
|
+
register: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
5269
|
+
deviceId: z.ZodString;
|
|
5270
|
+
pushToken: z.ZodNullable<z.ZodString>;
|
|
5271
|
+
platform: z.ZodEnum<{
|
|
5272
|
+
ios: "ios";
|
|
5273
|
+
android: "android";
|
|
5274
|
+
virtual: "virtual";
|
|
5275
|
+
web: "web";
|
|
5276
|
+
}>;
|
|
5277
|
+
deviceName: z.ZodNullable<z.ZodString>;
|
|
5278
|
+
model: z.ZodString;
|
|
5279
|
+
appId: z.ZodString;
|
|
5280
|
+
locationId: z.ZodNullable<z.ZodString>;
|
|
5281
|
+
merchantId: z.ZodNullable<z.ZodString>;
|
|
5282
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5283
|
+
id: z.ZodString;
|
|
5284
|
+
deviceId: z.ZodString;
|
|
5285
|
+
isActive: z.ZodBoolean;
|
|
5286
|
+
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
5287
|
+
};
|
|
4121
5288
|
billing: {
|
|
4122
5289
|
merchantPlans: {
|
|
4123
5290
|
create: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
@@ -4229,9 +5396,9 @@ declare const appContract: {
|
|
|
4229
5396
|
status: z.ZodEnum<{
|
|
4230
5397
|
CANCELLED: "CANCELLED";
|
|
4231
5398
|
FAILED: "FAILED";
|
|
5399
|
+
PAID: "PAID";
|
|
4232
5400
|
DRAFT: "DRAFT";
|
|
4233
5401
|
PENDING: "PENDING";
|
|
4234
|
-
PAID: "PAID";
|
|
4235
5402
|
}>;
|
|
4236
5403
|
dueDate: z.ZodNullable<z.ZodDate>;
|
|
4237
5404
|
paidAt: z.ZodNullable<z.ZodDate>;
|
|
@@ -4257,9 +5424,9 @@ declare const appContract: {
|
|
|
4257
5424
|
status: z.ZodEnum<{
|
|
4258
5425
|
CANCELLED: "CANCELLED";
|
|
4259
5426
|
FAILED: "FAILED";
|
|
5427
|
+
PAID: "PAID";
|
|
4260
5428
|
DRAFT: "DRAFT";
|
|
4261
5429
|
PENDING: "PENDING";
|
|
4262
|
-
PAID: "PAID";
|
|
4263
5430
|
}>;
|
|
4264
5431
|
dueDate: z.ZodNullable<z.ZodDate>;
|
|
4265
5432
|
paidAt: z.ZodNullable<z.ZodDate>;
|
|
@@ -4284,9 +5451,9 @@ declare const appContract: {
|
|
|
4284
5451
|
status: z.ZodEnum<{
|
|
4285
5452
|
CANCELLED: "CANCELLED";
|
|
4286
5453
|
FAILED: "FAILED";
|
|
5454
|
+
PAID: "PAID";
|
|
4287
5455
|
DRAFT: "DRAFT";
|
|
4288
5456
|
PENDING: "PENDING";
|
|
4289
|
-
PAID: "PAID";
|
|
4290
5457
|
}>;
|
|
4291
5458
|
dueDate: z.ZodNullable<z.ZodDate>;
|
|
4292
5459
|
paidAt: z.ZodNullable<z.ZodDate>;
|
|
@@ -4425,12 +5592,13 @@ declare const appContract: {
|
|
|
4425
5592
|
}, z.core.$strip>>>;
|
|
4426
5593
|
filter: z.ZodOptional<z.ZodObject<{
|
|
4427
5594
|
merchantId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
5595
|
+
locationId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
4428
5596
|
orderId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
4429
5597
|
status: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
4430
5598
|
FAILED: "FAILED";
|
|
4431
5599
|
REFUNDED: "REFUNDED";
|
|
4432
|
-
PAID: "PAID";
|
|
4433
5600
|
INITIATED: "INITIATED";
|
|
5601
|
+
PAID: "PAID";
|
|
4434
5602
|
AUTHORIZED: "AUTHORIZED";
|
|
4435
5603
|
CAPTURED: "CAPTURED";
|
|
4436
5604
|
VOIDED: "VOIDED";
|
|
@@ -4455,8 +5623,8 @@ declare const appContract: {
|
|
|
4455
5623
|
status: z.ZodEnum<{
|
|
4456
5624
|
FAILED: "FAILED";
|
|
4457
5625
|
REFUNDED: "REFUNDED";
|
|
4458
|
-
PAID: "PAID";
|
|
4459
5626
|
INITIATED: "INITIATED";
|
|
5627
|
+
PAID: "PAID";
|
|
4460
5628
|
AUTHORIZED: "AUTHORIZED";
|
|
4461
5629
|
CAPTURED: "CAPTURED";
|
|
4462
5630
|
VOIDED: "VOIDED";
|
|
@@ -4504,8 +5672,8 @@ declare const appContract: {
|
|
|
4504
5672
|
status: z.ZodEnum<{
|
|
4505
5673
|
FAILED: "FAILED";
|
|
4506
5674
|
REFUNDED: "REFUNDED";
|
|
4507
|
-
PAID: "PAID";
|
|
4508
5675
|
INITIATED: "INITIATED";
|
|
5676
|
+
PAID: "PAID";
|
|
4509
5677
|
AUTHORIZED: "AUTHORIZED";
|
|
4510
5678
|
CAPTURED: "CAPTURED";
|
|
4511
5679
|
VOIDED: "VOIDED";
|
|
@@ -4539,42 +5707,94 @@ declare const appContract: {
|
|
|
4539
5707
|
createdAt: z.ZodDate;
|
|
4540
5708
|
updatedAt: z.ZodDate;
|
|
4541
5709
|
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
4542
|
-
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
windowEndAt: z.ZodDate;
|
|
4548
|
-
provider: z.ZodOptional<z.ZodEnum<{
|
|
4549
|
-
ANB: "ANB";
|
|
5710
|
+
setPaid: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
5711
|
+
paymentId: z.ZodUUID;
|
|
5712
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
5713
|
+
ONLINE: "ONLINE";
|
|
5714
|
+
CASH: "CASH";
|
|
4550
5715
|
}>>;
|
|
4551
|
-
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
4552
5716
|
}, z.core.$strip>, z.ZodObject<{
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
-
|
|
4577
|
-
|
|
5717
|
+
success: z.ZodBoolean;
|
|
5718
|
+
payment: z.ZodObject<{
|
|
5719
|
+
id: z.ZodString;
|
|
5720
|
+
amount: z.ZodNumber;
|
|
5721
|
+
currency: z.ZodString;
|
|
5722
|
+
fee: z.ZodNumber;
|
|
5723
|
+
status: z.ZodEnum<{
|
|
5724
|
+
FAILED: "FAILED";
|
|
5725
|
+
REFUNDED: "REFUNDED";
|
|
5726
|
+
INITIATED: "INITIATED";
|
|
5727
|
+
PAID: "PAID";
|
|
5728
|
+
AUTHORIZED: "AUTHORIZED";
|
|
5729
|
+
CAPTURED: "CAPTURED";
|
|
5730
|
+
VOIDED: "VOIDED";
|
|
5731
|
+
VERIFIED: "VERIFIED";
|
|
5732
|
+
}>;
|
|
5733
|
+
gateway: z.ZodNullable<z.ZodEnum<{
|
|
5734
|
+
MOYASAR: "MOYASAR";
|
|
5735
|
+
}>>;
|
|
5736
|
+
source: z.ZodObject<{
|
|
5737
|
+
type: z.ZodOptional<z.ZodString>;
|
|
5738
|
+
company: z.ZodOptional<z.ZodString>;
|
|
5739
|
+
entryMethod: z.ZodOptional<z.ZodString>;
|
|
5740
|
+
card: z.ZodOptional<z.ZodObject<{
|
|
5741
|
+
bin: z.ZodOptional<z.ZodString>;
|
|
5742
|
+
expMonth: z.ZodOptional<z.ZodNumber>;
|
|
5743
|
+
expYear: z.ZodOptional<z.ZodNumber>;
|
|
5744
|
+
fingerprint: z.ZodOptional<z.ZodString>;
|
|
5745
|
+
last4: z.ZodOptional<z.ZodString>;
|
|
5746
|
+
}, z.core.$strip>>;
|
|
5747
|
+
digitalWalletDetails: z.ZodOptional<z.ZodObject<{
|
|
5748
|
+
type: z.ZodOptional<z.ZodString>;
|
|
5749
|
+
brand: z.ZodOptional<z.ZodString>;
|
|
5750
|
+
applicationDetails: z.ZodOptional<z.ZodUnknown>;
|
|
5751
|
+
}, z.core.$strip>>;
|
|
5752
|
+
receivedMoney: z.ZodOptional<z.ZodUnknown>;
|
|
5753
|
+
changeMoney: z.ZodOptional<z.ZodUnknown>;
|
|
5754
|
+
}, z.core.$strip>;
|
|
5755
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
5756
|
+
ip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5757
|
+
orderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5758
|
+
createdAt: z.ZodDate;
|
|
5759
|
+
updatedAt: z.ZodDate;
|
|
5760
|
+
}, z.core.$strip>;
|
|
5761
|
+
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
5762
|
+
};
|
|
5763
|
+
payouts: {
|
|
5764
|
+
create: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
5765
|
+
locationId: z.ZodString;
|
|
5766
|
+
windowStartAt: z.ZodDate;
|
|
5767
|
+
windowEndAt: z.ZodDate;
|
|
5768
|
+
provider: z.ZodOptional<z.ZodEnum<{
|
|
5769
|
+
ANB: "ANB";
|
|
5770
|
+
}>>;
|
|
5771
|
+
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
5772
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5773
|
+
id: z.ZodString;
|
|
5774
|
+
locationId: z.ZodString;
|
|
5775
|
+
merchantId: z.ZodString;
|
|
5776
|
+
bankAccountId: z.ZodString;
|
|
5777
|
+
companyPayoutAccountId: z.ZodString;
|
|
5778
|
+
status: z.ZodEnum<{
|
|
5779
|
+
CANCELLED: "CANCELLED";
|
|
5780
|
+
FAILED: "FAILED";
|
|
5781
|
+
PAID: "PAID";
|
|
5782
|
+
PENDING: "PENDING";
|
|
5783
|
+
QUEUED: "QUEUED";
|
|
5784
|
+
PROCESSING: "PROCESSING";
|
|
5785
|
+
}>;
|
|
5786
|
+
provider: z.ZodEnum<{
|
|
5787
|
+
ANB: "ANB";
|
|
5788
|
+
}>;
|
|
5789
|
+
amount: z.ZodBigInt;
|
|
5790
|
+
currency: z.ZodString;
|
|
5791
|
+
windowStartAt: z.ZodDate;
|
|
5792
|
+
windowEndAt: z.ZodDate;
|
|
5793
|
+
grossAmount: z.ZodBigInt;
|
|
5794
|
+
platformFee: z.ZodBigInt;
|
|
5795
|
+
gatewayFee: z.ZodBigInt;
|
|
5796
|
+
netAmount: z.ZodBigInt;
|
|
5797
|
+
providerMetadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4578
5798
|
createdAt: z.ZodDate;
|
|
4579
5799
|
updatedAt: z.ZodDate;
|
|
4580
5800
|
processedAt: z.ZodNullable<z.ZodDate>;
|
|
@@ -4601,12 +5821,24 @@ declare const appContract: {
|
|
|
4601
5821
|
}, z.core.$strip>, z.ZodObject<{
|
|
4602
5822
|
overall: z.ZodObject<{
|
|
4603
5823
|
totalRevenue: z.ZodBigInt;
|
|
5824
|
+
totalHeldAmount: z.ZodBigInt;
|
|
4604
5825
|
totalPlatformFee: z.ZodBigInt;
|
|
5826
|
+
totalCancelledPlatformFee: z.ZodBigInt;
|
|
4605
5827
|
totalPaymentFee: z.ZodBigInt;
|
|
4606
5828
|
totalNetPayout: z.ZodBigInt;
|
|
5829
|
+
totalPayoutAmount: z.ZodBigInt;
|
|
5830
|
+
totalDueAmount: z.ZodBigInt;
|
|
4607
5831
|
orderCount: z.ZodNumber;
|
|
4608
5832
|
onlinePaymentCount: z.ZodNumber;
|
|
4609
5833
|
cashPaymentCount: z.ZodNumber;
|
|
5834
|
+
totalDineInPlatformFeeDiscount: z.ZodBigInt;
|
|
5835
|
+
dineInOrderCount: z.ZodNumber;
|
|
5836
|
+
completedRevenueMinor: z.ZodBigInt;
|
|
5837
|
+
cancelledRevenueMinor: z.ZodBigInt;
|
|
5838
|
+
failedRevenueMinor: z.ZodBigInt;
|
|
5839
|
+
missingRevenueMinor: z.ZodBigInt;
|
|
5840
|
+
dineInRevenueMinor: z.ZodBigInt;
|
|
5841
|
+
dineInGatewayFeeMinor: z.ZodBigInt;
|
|
4610
5842
|
}, z.core.$strip>;
|
|
4611
5843
|
summary: z.ZodObject<{
|
|
4612
5844
|
byFulfillmentType: z.ZodArray<z.ZodObject<{
|
|
@@ -4625,11 +5857,13 @@ declare const appContract: {
|
|
|
4625
5857
|
canceledCount: z.ZodNumber;
|
|
4626
5858
|
refundedCount: z.ZodNumber;
|
|
4627
5859
|
otherCount: z.ZodNumber;
|
|
5860
|
+
newCount: z.ZodNumber;
|
|
5861
|
+
failedCount: z.ZodNumber;
|
|
4628
5862
|
}, z.core.$strip>;
|
|
4629
5863
|
byPaymentMethod: z.ZodArray<z.ZodObject<{
|
|
4630
5864
|
method: z.ZodEnum<{
|
|
4631
5865
|
COD: "COD";
|
|
4632
|
-
|
|
5866
|
+
ONLINE: "ONLINE";
|
|
4633
5867
|
}>;
|
|
4634
5868
|
orderCount: z.ZodNumber;
|
|
4635
5869
|
revenue: z.ZodBigInt;
|
|
@@ -4642,6 +5876,7 @@ declare const appContract: {
|
|
|
4642
5876
|
netPayout: z.ZodBigInt;
|
|
4643
5877
|
}, z.core.$strip>>;
|
|
4644
5878
|
averageOrderValue: z.ZodBigInt;
|
|
5879
|
+
completionRate: z.ZodNumber;
|
|
4645
5880
|
topItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4646
5881
|
itemId: z.ZodString;
|
|
4647
5882
|
name: z.ZodString;
|
|
@@ -4706,11 +5941,12 @@ declare const appContract: {
|
|
|
4706
5941
|
platformFee: z.ZodBigInt;
|
|
4707
5942
|
paymentFee: z.ZodBigInt;
|
|
4708
5943
|
netPayout: z.ZodBigInt;
|
|
5944
|
+
platformFeeDiscount: z.ZodBigInt;
|
|
4709
5945
|
payments: z.ZodArray<z.ZodObject<{
|
|
4710
5946
|
id: z.ZodString;
|
|
4711
5947
|
method: z.ZodEnum<{
|
|
4712
5948
|
COD: "COD";
|
|
4713
|
-
|
|
5949
|
+
ONLINE: "ONLINE";
|
|
4714
5950
|
}>;
|
|
4715
5951
|
gateway: z.ZodNullable<z.ZodEnum<{
|
|
4716
5952
|
MOYASAR: "MOYASAR";
|
|
@@ -4720,8 +5956,8 @@ declare const appContract: {
|
|
|
4720
5956
|
status: z.ZodEnum<{
|
|
4721
5957
|
FAILED: "FAILED";
|
|
4722
5958
|
REFUNDED: "REFUNDED";
|
|
4723
|
-
PAID: "PAID";
|
|
4724
5959
|
INITIATED: "INITIATED";
|
|
5960
|
+
PAID: "PAID";
|
|
4725
5961
|
AUTHORIZED: "AUTHORIZED";
|
|
4726
5962
|
CAPTURED: "CAPTURED";
|
|
4727
5963
|
VOIDED: "VOIDED";
|
|
@@ -4738,8 +5974,8 @@ declare const appContract: {
|
|
|
4738
5974
|
status: z.ZodOptional<z.ZodEnum<{
|
|
4739
5975
|
CANCELLED: "CANCELLED";
|
|
4740
5976
|
FAILED: "FAILED";
|
|
4741
|
-
PENDING: "PENDING";
|
|
4742
5977
|
PAID: "PAID";
|
|
5978
|
+
PENDING: "PENDING";
|
|
4743
5979
|
QUEUED: "QUEUED";
|
|
4744
5980
|
PROCESSING: "PROCESSING";
|
|
4745
5981
|
}>>;
|
|
@@ -4753,8 +5989,8 @@ declare const appContract: {
|
|
|
4753
5989
|
status: z.ZodEnum<{
|
|
4754
5990
|
CANCELLED: "CANCELLED";
|
|
4755
5991
|
FAILED: "FAILED";
|
|
4756
|
-
PENDING: "PENDING";
|
|
4757
5992
|
PAID: "PAID";
|
|
5993
|
+
PENDING: "PENDING";
|
|
4758
5994
|
QUEUED: "QUEUED";
|
|
4759
5995
|
PROCESSING: "PROCESSING";
|
|
4760
5996
|
}>;
|
|
@@ -4782,8 +6018,8 @@ declare const appContract: {
|
|
|
4782
6018
|
status: z.ZodEnum<{
|
|
4783
6019
|
CANCELLED: "CANCELLED";
|
|
4784
6020
|
FAILED: "FAILED";
|
|
4785
|
-
PENDING: "PENDING";
|
|
4786
6021
|
PAID: "PAID";
|
|
6022
|
+
PENDING: "PENDING";
|
|
4787
6023
|
QUEUED: "QUEUED";
|
|
4788
6024
|
PROCESSING: "PROCESSING";
|
|
4789
6025
|
}>;
|
|
@@ -4857,7 +6093,6 @@ declare const appContract: {
|
|
|
4857
6093
|
integrations: z.ZodArray<z.ZodObject<{
|
|
4858
6094
|
id: z.ZodUUID;
|
|
4859
6095
|
merchantId: z.ZodUUID;
|
|
4860
|
-
accountId: z.ZodString;
|
|
4861
6096
|
provider: z.ZodString;
|
|
4862
6097
|
createdAt: z.ZodDate;
|
|
4863
6098
|
updatedAt: z.ZodDate;
|
|
@@ -4879,22 +6114,1143 @@ declare const appContract: {
|
|
|
4879
6114
|
updatedAt: z.ZodDate;
|
|
4880
6115
|
}, z.core.$strip>>;
|
|
4881
6116
|
legalDetails: z.ZodNullable<z.ZodObject<{
|
|
4882
|
-
id: z.ZodUUID;
|
|
4883
|
-
merchantId: z.ZodUUID;
|
|
4884
6117
|
CRNNumber: z.ZodString;
|
|
4885
6118
|
VATName: z.ZodNullable<z.ZodString>;
|
|
4886
6119
|
VATNumber: z.ZodNullable<z.ZodString>;
|
|
4887
6120
|
crnDocUrl: z.ZodNullable<z.ZodString>;
|
|
4888
6121
|
vatDocUrl: z.ZodNullable<z.ZodString>;
|
|
4889
|
-
createdAt: z.ZodDate;
|
|
4890
|
-
updatedAt: z.ZodDate;
|
|
4891
6122
|
}, z.core.$strip>>;
|
|
4892
6123
|
}, z.core.$strip>;
|
|
4893
6124
|
crmLeadId: z.ZodNullable<z.ZodString>;
|
|
4894
6125
|
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
4895
6126
|
};
|
|
4896
|
-
|
|
4897
|
-
|
|
6127
|
+
deliveries: {
|
|
6128
|
+
create: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
6129
|
+
orderId: z.ZodString;
|
|
6130
|
+
merchantId: z.ZodOptional<z.ZodString>;
|
|
6131
|
+
provider: z.ZodEnum<{
|
|
6132
|
+
LEAJLAK: "LEAJLAK";
|
|
6133
|
+
PARCEL: "PARCEL";
|
|
6134
|
+
QMILE: "QMILE";
|
|
6135
|
+
LOCAL: "LOCAL";
|
|
6136
|
+
}>;
|
|
6137
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6138
|
+
id: z.ZodString;
|
|
6139
|
+
orderId: z.ZodString;
|
|
6140
|
+
merchantId: z.ZodString;
|
|
6141
|
+
provider: z.ZodEnum<{
|
|
6142
|
+
LEAJLAK: "LEAJLAK";
|
|
6143
|
+
PARCEL: "PARCEL";
|
|
6144
|
+
QMILE: "QMILE";
|
|
6145
|
+
LOCAL: "LOCAL";
|
|
6146
|
+
}>;
|
|
6147
|
+
status: z.ZodEnum<{
|
|
6148
|
+
failed: "failed";
|
|
6149
|
+
pending: "pending";
|
|
6150
|
+
assigned: "assigned";
|
|
6151
|
+
accepted: "accepted";
|
|
6152
|
+
in_progress: "in_progress";
|
|
6153
|
+
arrived: "arrived";
|
|
6154
|
+
picked_up: "picked_up";
|
|
6155
|
+
shipped: "shipped";
|
|
6156
|
+
delivered: "delivered";
|
|
6157
|
+
cancelled: "cancelled";
|
|
6158
|
+
}>;
|
|
6159
|
+
createdAt: z.ZodDate;
|
|
6160
|
+
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, _orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
6161
|
+
readonly DELIVERY_NOT_FOUND: {
|
|
6162
|
+
readonly status: 404;
|
|
6163
|
+
readonly message: "Delivery not found";
|
|
6164
|
+
readonly data: z.ZodObject<{
|
|
6165
|
+
deliveryId: z.ZodString;
|
|
6166
|
+
}, z.core.$strip>;
|
|
6167
|
+
};
|
|
6168
|
+
readonly DELIVERY_ORDER_NOT_FOUND: {
|
|
6169
|
+
readonly status: 404;
|
|
6170
|
+
readonly message: "Order not found";
|
|
6171
|
+
readonly data: z.ZodObject<{
|
|
6172
|
+
orderId: z.ZodString;
|
|
6173
|
+
}, z.core.$strip>;
|
|
6174
|
+
};
|
|
6175
|
+
readonly DELIVERY_INTEGRATION_NOT_FOUND: {
|
|
6176
|
+
readonly status: 404;
|
|
6177
|
+
readonly message: "No active integration found for delivery provider";
|
|
6178
|
+
readonly data: z.ZodObject<{
|
|
6179
|
+
merchantId: z.ZodOptional<z.ZodString>;
|
|
6180
|
+
provider: z.ZodEnum<{
|
|
6181
|
+
LEAJLAK: "LEAJLAK";
|
|
6182
|
+
PARCEL: "PARCEL";
|
|
6183
|
+
QMILE: "QMILE";
|
|
6184
|
+
LOCAL: "LOCAL";
|
|
6185
|
+
}>;
|
|
6186
|
+
}, z.core.$strip>;
|
|
6187
|
+
};
|
|
6188
|
+
readonly DELIVERY_INVALID_OPERATION: {
|
|
6189
|
+
readonly status: 400;
|
|
6190
|
+
readonly message: "Operation not supported for this delivery provider";
|
|
6191
|
+
readonly data: z.ZodObject<{
|
|
6192
|
+
operation: z.ZodEnum<{
|
|
6193
|
+
create: "create";
|
|
6194
|
+
get: "get";
|
|
6195
|
+
list: "list";
|
|
6196
|
+
update: "update";
|
|
6197
|
+
cancel: "cancel";
|
|
6198
|
+
}>;
|
|
6199
|
+
provider: z.ZodEnum<{
|
|
6200
|
+
LEAJLAK: "LEAJLAK";
|
|
6201
|
+
PARCEL: "PARCEL";
|
|
6202
|
+
QMILE: "QMILE";
|
|
6203
|
+
LOCAL: "LOCAL";
|
|
6204
|
+
}>;
|
|
6205
|
+
}, z.core.$strip>;
|
|
6206
|
+
};
|
|
6207
|
+
readonly DELIVERY_PROVIDER_ERROR: {
|
|
6208
|
+
readonly status: 502;
|
|
6209
|
+
readonly message: "Delivery provider error";
|
|
6210
|
+
readonly data: z.ZodObject<{
|
|
6211
|
+
provider: z.ZodEnum<{
|
|
6212
|
+
LEAJLAK: "LEAJLAK";
|
|
6213
|
+
PARCEL: "PARCEL";
|
|
6214
|
+
QMILE: "QMILE";
|
|
6215
|
+
LOCAL: "LOCAL";
|
|
6216
|
+
}>;
|
|
6217
|
+
message: z.ZodString;
|
|
6218
|
+
}, z.core.$strip>;
|
|
6219
|
+
};
|
|
6220
|
+
readonly LOCATION_INTEGRATION_NOT_SUPPORTED: {
|
|
6221
|
+
readonly status: 400;
|
|
6222
|
+
readonly message: "This provider does not support location integration";
|
|
6223
|
+
readonly data: z.ZodObject<{
|
|
6224
|
+
provider: z.ZodEnum<{
|
|
6225
|
+
LEAJLAK: "LEAJLAK";
|
|
6226
|
+
PARCEL: "PARCEL";
|
|
6227
|
+
QMILE: "QMILE";
|
|
6228
|
+
LOCAL: "LOCAL";
|
|
6229
|
+
}>;
|
|
6230
|
+
}, z.core.$strip>;
|
|
6231
|
+
};
|
|
6232
|
+
}>>, Record<never, never>>;
|
|
6233
|
+
cancel: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
6234
|
+
deliveryId: z.ZodString;
|
|
6235
|
+
merchantId: z.ZodOptional<z.ZodString>;
|
|
6236
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6237
|
+
success: z.ZodBoolean;
|
|
6238
|
+
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, _orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
6239
|
+
readonly DELIVERY_NOT_FOUND: {
|
|
6240
|
+
readonly status: 404;
|
|
6241
|
+
readonly message: "Delivery not found";
|
|
6242
|
+
readonly data: z.ZodObject<{
|
|
6243
|
+
deliveryId: z.ZodString;
|
|
6244
|
+
}, z.core.$strip>;
|
|
6245
|
+
};
|
|
6246
|
+
readonly DELIVERY_ORDER_NOT_FOUND: {
|
|
6247
|
+
readonly status: 404;
|
|
6248
|
+
readonly message: "Order not found";
|
|
6249
|
+
readonly data: z.ZodObject<{
|
|
6250
|
+
orderId: z.ZodString;
|
|
6251
|
+
}, z.core.$strip>;
|
|
6252
|
+
};
|
|
6253
|
+
readonly DELIVERY_INTEGRATION_NOT_FOUND: {
|
|
6254
|
+
readonly status: 404;
|
|
6255
|
+
readonly message: "No active integration found for delivery provider";
|
|
6256
|
+
readonly data: z.ZodObject<{
|
|
6257
|
+
merchantId: z.ZodOptional<z.ZodString>;
|
|
6258
|
+
provider: z.ZodEnum<{
|
|
6259
|
+
LEAJLAK: "LEAJLAK";
|
|
6260
|
+
PARCEL: "PARCEL";
|
|
6261
|
+
QMILE: "QMILE";
|
|
6262
|
+
LOCAL: "LOCAL";
|
|
6263
|
+
}>;
|
|
6264
|
+
}, z.core.$strip>;
|
|
6265
|
+
};
|
|
6266
|
+
readonly DELIVERY_INVALID_OPERATION: {
|
|
6267
|
+
readonly status: 400;
|
|
6268
|
+
readonly message: "Operation not supported for this delivery provider";
|
|
6269
|
+
readonly data: z.ZodObject<{
|
|
6270
|
+
operation: z.ZodEnum<{
|
|
6271
|
+
create: "create";
|
|
6272
|
+
get: "get";
|
|
6273
|
+
list: "list";
|
|
6274
|
+
update: "update";
|
|
6275
|
+
cancel: "cancel";
|
|
6276
|
+
}>;
|
|
6277
|
+
provider: z.ZodEnum<{
|
|
6278
|
+
LEAJLAK: "LEAJLAK";
|
|
6279
|
+
PARCEL: "PARCEL";
|
|
6280
|
+
QMILE: "QMILE";
|
|
6281
|
+
LOCAL: "LOCAL";
|
|
6282
|
+
}>;
|
|
6283
|
+
}, z.core.$strip>;
|
|
6284
|
+
};
|
|
6285
|
+
readonly DELIVERY_PROVIDER_ERROR: {
|
|
6286
|
+
readonly status: 502;
|
|
6287
|
+
readonly message: "Delivery provider error";
|
|
6288
|
+
readonly data: z.ZodObject<{
|
|
6289
|
+
provider: z.ZodEnum<{
|
|
6290
|
+
LEAJLAK: "LEAJLAK";
|
|
6291
|
+
PARCEL: "PARCEL";
|
|
6292
|
+
QMILE: "QMILE";
|
|
6293
|
+
LOCAL: "LOCAL";
|
|
6294
|
+
}>;
|
|
6295
|
+
message: z.ZodString;
|
|
6296
|
+
}, z.core.$strip>;
|
|
6297
|
+
};
|
|
6298
|
+
readonly LOCATION_INTEGRATION_NOT_SUPPORTED: {
|
|
6299
|
+
readonly status: 400;
|
|
6300
|
+
readonly message: "This provider does not support location integration";
|
|
6301
|
+
readonly data: z.ZodObject<{
|
|
6302
|
+
provider: z.ZodEnum<{
|
|
6303
|
+
LEAJLAK: "LEAJLAK";
|
|
6304
|
+
PARCEL: "PARCEL";
|
|
6305
|
+
QMILE: "QMILE";
|
|
6306
|
+
LOCAL: "LOCAL";
|
|
6307
|
+
}>;
|
|
6308
|
+
}, z.core.$strip>;
|
|
6309
|
+
};
|
|
6310
|
+
}>>, Record<never, never>>;
|
|
6311
|
+
get: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
6312
|
+
deliveryId: z.ZodString;
|
|
6313
|
+
merchantId: z.ZodOptional<z.ZodString>;
|
|
6314
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6315
|
+
id: z.ZodString;
|
|
6316
|
+
orderId: z.ZodString;
|
|
6317
|
+
merchantId: z.ZodString;
|
|
6318
|
+
provider: z.ZodEnum<{
|
|
6319
|
+
LEAJLAK: "LEAJLAK";
|
|
6320
|
+
PARCEL: "PARCEL";
|
|
6321
|
+
QMILE: "QMILE";
|
|
6322
|
+
LOCAL: "LOCAL";
|
|
6323
|
+
}>;
|
|
6324
|
+
status: z.ZodEnum<{
|
|
6325
|
+
failed: "failed";
|
|
6326
|
+
pending: "pending";
|
|
6327
|
+
assigned: "assigned";
|
|
6328
|
+
accepted: "accepted";
|
|
6329
|
+
in_progress: "in_progress";
|
|
6330
|
+
arrived: "arrived";
|
|
6331
|
+
picked_up: "picked_up";
|
|
6332
|
+
shipped: "shipped";
|
|
6333
|
+
delivered: "delivered";
|
|
6334
|
+
cancelled: "cancelled";
|
|
6335
|
+
}>;
|
|
6336
|
+
providerOrderId: z.ZodNullable<z.ZodString>;
|
|
6337
|
+
trackingUrl: z.ZodNullable<z.ZodString>;
|
|
6338
|
+
providerMetadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
6339
|
+
createdAt: z.ZodDate;
|
|
6340
|
+
updatedAt: z.ZodDate;
|
|
6341
|
+
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, _orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
6342
|
+
readonly DELIVERY_NOT_FOUND: {
|
|
6343
|
+
readonly status: 404;
|
|
6344
|
+
readonly message: "Delivery not found";
|
|
6345
|
+
readonly data: z.ZodObject<{
|
|
6346
|
+
deliveryId: z.ZodString;
|
|
6347
|
+
}, z.core.$strip>;
|
|
6348
|
+
};
|
|
6349
|
+
readonly DELIVERY_ORDER_NOT_FOUND: {
|
|
6350
|
+
readonly status: 404;
|
|
6351
|
+
readonly message: "Order not found";
|
|
6352
|
+
readonly data: z.ZodObject<{
|
|
6353
|
+
orderId: z.ZodString;
|
|
6354
|
+
}, z.core.$strip>;
|
|
6355
|
+
};
|
|
6356
|
+
readonly DELIVERY_INTEGRATION_NOT_FOUND: {
|
|
6357
|
+
readonly status: 404;
|
|
6358
|
+
readonly message: "No active integration found for delivery provider";
|
|
6359
|
+
readonly data: z.ZodObject<{
|
|
6360
|
+
merchantId: z.ZodOptional<z.ZodString>;
|
|
6361
|
+
provider: z.ZodEnum<{
|
|
6362
|
+
LEAJLAK: "LEAJLAK";
|
|
6363
|
+
PARCEL: "PARCEL";
|
|
6364
|
+
QMILE: "QMILE";
|
|
6365
|
+
LOCAL: "LOCAL";
|
|
6366
|
+
}>;
|
|
6367
|
+
}, z.core.$strip>;
|
|
6368
|
+
};
|
|
6369
|
+
readonly DELIVERY_INVALID_OPERATION: {
|
|
6370
|
+
readonly status: 400;
|
|
6371
|
+
readonly message: "Operation not supported for this delivery provider";
|
|
6372
|
+
readonly data: z.ZodObject<{
|
|
6373
|
+
operation: z.ZodEnum<{
|
|
6374
|
+
create: "create";
|
|
6375
|
+
get: "get";
|
|
6376
|
+
list: "list";
|
|
6377
|
+
update: "update";
|
|
6378
|
+
cancel: "cancel";
|
|
6379
|
+
}>;
|
|
6380
|
+
provider: z.ZodEnum<{
|
|
6381
|
+
LEAJLAK: "LEAJLAK";
|
|
6382
|
+
PARCEL: "PARCEL";
|
|
6383
|
+
QMILE: "QMILE";
|
|
6384
|
+
LOCAL: "LOCAL";
|
|
6385
|
+
}>;
|
|
6386
|
+
}, z.core.$strip>;
|
|
6387
|
+
};
|
|
6388
|
+
readonly DELIVERY_PROVIDER_ERROR: {
|
|
6389
|
+
readonly status: 502;
|
|
6390
|
+
readonly message: "Delivery provider error";
|
|
6391
|
+
readonly data: z.ZodObject<{
|
|
6392
|
+
provider: z.ZodEnum<{
|
|
6393
|
+
LEAJLAK: "LEAJLAK";
|
|
6394
|
+
PARCEL: "PARCEL";
|
|
6395
|
+
QMILE: "QMILE";
|
|
6396
|
+
LOCAL: "LOCAL";
|
|
6397
|
+
}>;
|
|
6398
|
+
message: z.ZodString;
|
|
6399
|
+
}, z.core.$strip>;
|
|
6400
|
+
};
|
|
6401
|
+
readonly LOCATION_INTEGRATION_NOT_SUPPORTED: {
|
|
6402
|
+
readonly status: 400;
|
|
6403
|
+
readonly message: "This provider does not support location integration";
|
|
6404
|
+
readonly data: z.ZodObject<{
|
|
6405
|
+
provider: z.ZodEnum<{
|
|
6406
|
+
LEAJLAK: "LEAJLAK";
|
|
6407
|
+
PARCEL: "PARCEL";
|
|
6408
|
+
QMILE: "QMILE";
|
|
6409
|
+
LOCAL: "LOCAL";
|
|
6410
|
+
}>;
|
|
6411
|
+
}, z.core.$strip>;
|
|
6412
|
+
};
|
|
6413
|
+
}>>, Record<never, never>>;
|
|
6414
|
+
list: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
6415
|
+
provider: z.ZodOptional<z.ZodEnum<{
|
|
6416
|
+
LEAJLAK: "LEAJLAK";
|
|
6417
|
+
PARCEL: "PARCEL";
|
|
6418
|
+
QMILE: "QMILE";
|
|
6419
|
+
LOCAL: "LOCAL";
|
|
6420
|
+
}>>;
|
|
6421
|
+
merchantId: z.ZodOptional<z.ZodString>;
|
|
6422
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
6423
|
+
failed: "failed";
|
|
6424
|
+
pending: "pending";
|
|
6425
|
+
assigned: "assigned";
|
|
6426
|
+
accepted: "accepted";
|
|
6427
|
+
in_progress: "in_progress";
|
|
6428
|
+
arrived: "arrived";
|
|
6429
|
+
picked_up: "picked_up";
|
|
6430
|
+
shipped: "shipped";
|
|
6431
|
+
delivered: "delivered";
|
|
6432
|
+
cancelled: "cancelled";
|
|
6433
|
+
}>>;
|
|
6434
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
6435
|
+
offset: z.ZodDefault<z.ZodNumber>;
|
|
6436
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
6437
|
+
id: z.ZodString;
|
|
6438
|
+
orderId: z.ZodString;
|
|
6439
|
+
merchantId: z.ZodString;
|
|
6440
|
+
provider: z.ZodEnum<{
|
|
6441
|
+
LEAJLAK: "LEAJLAK";
|
|
6442
|
+
PARCEL: "PARCEL";
|
|
6443
|
+
QMILE: "QMILE";
|
|
6444
|
+
LOCAL: "LOCAL";
|
|
6445
|
+
}>;
|
|
6446
|
+
status: z.ZodEnum<{
|
|
6447
|
+
failed: "failed";
|
|
6448
|
+
pending: "pending";
|
|
6449
|
+
assigned: "assigned";
|
|
6450
|
+
accepted: "accepted";
|
|
6451
|
+
in_progress: "in_progress";
|
|
6452
|
+
arrived: "arrived";
|
|
6453
|
+
picked_up: "picked_up";
|
|
6454
|
+
shipped: "shipped";
|
|
6455
|
+
delivered: "delivered";
|
|
6456
|
+
cancelled: "cancelled";
|
|
6457
|
+
}>;
|
|
6458
|
+
providerOrderId: z.ZodNullable<z.ZodString>;
|
|
6459
|
+
trackingUrl: z.ZodNullable<z.ZodString>;
|
|
6460
|
+
providerMetadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
6461
|
+
createdAt: z.ZodDate;
|
|
6462
|
+
updatedAt: z.ZodDate;
|
|
6463
|
+
}, z.core.$strip>>, _orpc_contract0.MergedErrorMap<Record<never, never>, _orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
6464
|
+
readonly DELIVERY_NOT_FOUND: {
|
|
6465
|
+
readonly status: 404;
|
|
6466
|
+
readonly message: "Delivery not found";
|
|
6467
|
+
readonly data: z.ZodObject<{
|
|
6468
|
+
deliveryId: z.ZodString;
|
|
6469
|
+
}, z.core.$strip>;
|
|
6470
|
+
};
|
|
6471
|
+
readonly DELIVERY_ORDER_NOT_FOUND: {
|
|
6472
|
+
readonly status: 404;
|
|
6473
|
+
readonly message: "Order not found";
|
|
6474
|
+
readonly data: z.ZodObject<{
|
|
6475
|
+
orderId: z.ZodString;
|
|
6476
|
+
}, z.core.$strip>;
|
|
6477
|
+
};
|
|
6478
|
+
readonly DELIVERY_INTEGRATION_NOT_FOUND: {
|
|
6479
|
+
readonly status: 404;
|
|
6480
|
+
readonly message: "No active integration found for delivery provider";
|
|
6481
|
+
readonly data: z.ZodObject<{
|
|
6482
|
+
merchantId: z.ZodOptional<z.ZodString>;
|
|
6483
|
+
provider: z.ZodEnum<{
|
|
6484
|
+
LEAJLAK: "LEAJLAK";
|
|
6485
|
+
PARCEL: "PARCEL";
|
|
6486
|
+
QMILE: "QMILE";
|
|
6487
|
+
LOCAL: "LOCAL";
|
|
6488
|
+
}>;
|
|
6489
|
+
}, z.core.$strip>;
|
|
6490
|
+
};
|
|
6491
|
+
readonly DELIVERY_INVALID_OPERATION: {
|
|
6492
|
+
readonly status: 400;
|
|
6493
|
+
readonly message: "Operation not supported for this delivery provider";
|
|
6494
|
+
readonly data: z.ZodObject<{
|
|
6495
|
+
operation: z.ZodEnum<{
|
|
6496
|
+
create: "create";
|
|
6497
|
+
get: "get";
|
|
6498
|
+
list: "list";
|
|
6499
|
+
update: "update";
|
|
6500
|
+
cancel: "cancel";
|
|
6501
|
+
}>;
|
|
6502
|
+
provider: z.ZodEnum<{
|
|
6503
|
+
LEAJLAK: "LEAJLAK";
|
|
6504
|
+
PARCEL: "PARCEL";
|
|
6505
|
+
QMILE: "QMILE";
|
|
6506
|
+
LOCAL: "LOCAL";
|
|
6507
|
+
}>;
|
|
6508
|
+
}, z.core.$strip>;
|
|
6509
|
+
};
|
|
6510
|
+
readonly DELIVERY_PROVIDER_ERROR: {
|
|
6511
|
+
readonly status: 502;
|
|
6512
|
+
readonly message: "Delivery provider error";
|
|
6513
|
+
readonly data: z.ZodObject<{
|
|
6514
|
+
provider: z.ZodEnum<{
|
|
6515
|
+
LEAJLAK: "LEAJLAK";
|
|
6516
|
+
PARCEL: "PARCEL";
|
|
6517
|
+
QMILE: "QMILE";
|
|
6518
|
+
LOCAL: "LOCAL";
|
|
6519
|
+
}>;
|
|
6520
|
+
message: z.ZodString;
|
|
6521
|
+
}, z.core.$strip>;
|
|
6522
|
+
};
|
|
6523
|
+
readonly LOCATION_INTEGRATION_NOT_SUPPORTED: {
|
|
6524
|
+
readonly status: 400;
|
|
6525
|
+
readonly message: "This provider does not support location integration";
|
|
6526
|
+
readonly data: z.ZodObject<{
|
|
6527
|
+
provider: z.ZodEnum<{
|
|
6528
|
+
LEAJLAK: "LEAJLAK";
|
|
6529
|
+
PARCEL: "PARCEL";
|
|
6530
|
+
QMILE: "QMILE";
|
|
6531
|
+
LOCAL: "LOCAL";
|
|
6532
|
+
}>;
|
|
6533
|
+
}, z.core.$strip>;
|
|
6534
|
+
};
|
|
6535
|
+
}>>, Record<never, never>>;
|
|
6536
|
+
update: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
6537
|
+
deliveryId: z.ZodString;
|
|
6538
|
+
merchantId: z.ZodOptional<z.ZodString>;
|
|
6539
|
+
status: z.ZodEnum<{
|
|
6540
|
+
failed: "failed";
|
|
6541
|
+
pending: "pending";
|
|
6542
|
+
assigned: "assigned";
|
|
6543
|
+
accepted: "accepted";
|
|
6544
|
+
in_progress: "in_progress";
|
|
6545
|
+
arrived: "arrived";
|
|
6546
|
+
picked_up: "picked_up";
|
|
6547
|
+
shipped: "shipped";
|
|
6548
|
+
delivered: "delivered";
|
|
6549
|
+
cancelled: "cancelled";
|
|
6550
|
+
}>;
|
|
6551
|
+
providerMetadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
6552
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6553
|
+
id: z.ZodString;
|
|
6554
|
+
orderId: z.ZodString;
|
|
6555
|
+
merchantId: z.ZodString;
|
|
6556
|
+
provider: z.ZodEnum<{
|
|
6557
|
+
LEAJLAK: "LEAJLAK";
|
|
6558
|
+
PARCEL: "PARCEL";
|
|
6559
|
+
QMILE: "QMILE";
|
|
6560
|
+
LOCAL: "LOCAL";
|
|
6561
|
+
}>;
|
|
6562
|
+
status: z.ZodEnum<{
|
|
6563
|
+
failed: "failed";
|
|
6564
|
+
pending: "pending";
|
|
6565
|
+
assigned: "assigned";
|
|
6566
|
+
accepted: "accepted";
|
|
6567
|
+
in_progress: "in_progress";
|
|
6568
|
+
arrived: "arrived";
|
|
6569
|
+
picked_up: "picked_up";
|
|
6570
|
+
shipped: "shipped";
|
|
6571
|
+
delivered: "delivered";
|
|
6572
|
+
cancelled: "cancelled";
|
|
6573
|
+
}>;
|
|
6574
|
+
providerOrderId: z.ZodNullable<z.ZodString>;
|
|
6575
|
+
trackingUrl: z.ZodNullable<z.ZodString>;
|
|
6576
|
+
providerMetadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
6577
|
+
createdAt: z.ZodDate;
|
|
6578
|
+
updatedAt: z.ZodDate;
|
|
6579
|
+
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, _orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
6580
|
+
readonly DELIVERY_NOT_FOUND: {
|
|
6581
|
+
readonly status: 404;
|
|
6582
|
+
readonly message: "Delivery not found";
|
|
6583
|
+
readonly data: z.ZodObject<{
|
|
6584
|
+
deliveryId: z.ZodString;
|
|
6585
|
+
}, z.core.$strip>;
|
|
6586
|
+
};
|
|
6587
|
+
readonly DELIVERY_ORDER_NOT_FOUND: {
|
|
6588
|
+
readonly status: 404;
|
|
6589
|
+
readonly message: "Order not found";
|
|
6590
|
+
readonly data: z.ZodObject<{
|
|
6591
|
+
orderId: z.ZodString;
|
|
6592
|
+
}, z.core.$strip>;
|
|
6593
|
+
};
|
|
6594
|
+
readonly DELIVERY_INTEGRATION_NOT_FOUND: {
|
|
6595
|
+
readonly status: 404;
|
|
6596
|
+
readonly message: "No active integration found for delivery provider";
|
|
6597
|
+
readonly data: z.ZodObject<{
|
|
6598
|
+
merchantId: z.ZodOptional<z.ZodString>;
|
|
6599
|
+
provider: z.ZodEnum<{
|
|
6600
|
+
LEAJLAK: "LEAJLAK";
|
|
6601
|
+
PARCEL: "PARCEL";
|
|
6602
|
+
QMILE: "QMILE";
|
|
6603
|
+
LOCAL: "LOCAL";
|
|
6604
|
+
}>;
|
|
6605
|
+
}, z.core.$strip>;
|
|
6606
|
+
};
|
|
6607
|
+
readonly DELIVERY_INVALID_OPERATION: {
|
|
6608
|
+
readonly status: 400;
|
|
6609
|
+
readonly message: "Operation not supported for this delivery provider";
|
|
6610
|
+
readonly data: z.ZodObject<{
|
|
6611
|
+
operation: z.ZodEnum<{
|
|
6612
|
+
create: "create";
|
|
6613
|
+
get: "get";
|
|
6614
|
+
list: "list";
|
|
6615
|
+
update: "update";
|
|
6616
|
+
cancel: "cancel";
|
|
6617
|
+
}>;
|
|
6618
|
+
provider: z.ZodEnum<{
|
|
6619
|
+
LEAJLAK: "LEAJLAK";
|
|
6620
|
+
PARCEL: "PARCEL";
|
|
6621
|
+
QMILE: "QMILE";
|
|
6622
|
+
LOCAL: "LOCAL";
|
|
6623
|
+
}>;
|
|
6624
|
+
}, z.core.$strip>;
|
|
6625
|
+
};
|
|
6626
|
+
readonly DELIVERY_PROVIDER_ERROR: {
|
|
6627
|
+
readonly status: 502;
|
|
6628
|
+
readonly message: "Delivery provider error";
|
|
6629
|
+
readonly data: z.ZodObject<{
|
|
6630
|
+
provider: z.ZodEnum<{
|
|
6631
|
+
LEAJLAK: "LEAJLAK";
|
|
6632
|
+
PARCEL: "PARCEL";
|
|
6633
|
+
QMILE: "QMILE";
|
|
6634
|
+
LOCAL: "LOCAL";
|
|
6635
|
+
}>;
|
|
6636
|
+
message: z.ZodString;
|
|
6637
|
+
}, z.core.$strip>;
|
|
6638
|
+
};
|
|
6639
|
+
readonly LOCATION_INTEGRATION_NOT_SUPPORTED: {
|
|
6640
|
+
readonly status: 400;
|
|
6641
|
+
readonly message: "This provider does not support location integration";
|
|
6642
|
+
readonly data: z.ZodObject<{
|
|
6643
|
+
provider: z.ZodEnum<{
|
|
6644
|
+
LEAJLAK: "LEAJLAK";
|
|
6645
|
+
PARCEL: "PARCEL";
|
|
6646
|
+
QMILE: "QMILE";
|
|
6647
|
+
LOCAL: "LOCAL";
|
|
6648
|
+
}>;
|
|
6649
|
+
}, z.core.$strip>;
|
|
6650
|
+
};
|
|
6651
|
+
}>>, Record<never, never>>;
|
|
6652
|
+
};
|
|
6653
|
+
zatca: {
|
|
6654
|
+
onboardEgs: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
6655
|
+
locationId: z.ZodUUID;
|
|
6656
|
+
otp: z.ZodString;
|
|
6657
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6658
|
+
egsId: z.ZodUUID;
|
|
6659
|
+
lastInvoiceHash: z.ZodString;
|
|
6660
|
+
nextInvoiceCounter: z.ZodNumber;
|
|
6661
|
+
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
6662
|
+
reportInvoice: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
6663
|
+
egsId: z.ZodUUID;
|
|
6664
|
+
invoiceProps: z.ZodObject<{
|
|
6665
|
+
invoiceCode: z.ZodString;
|
|
6666
|
+
invoiceType: z.ZodString;
|
|
6667
|
+
crnNumber: z.ZodString;
|
|
6668
|
+
invoiceCounterNumber: z.ZodNumber;
|
|
6669
|
+
invoiceSerialNumber: z.ZodString;
|
|
6670
|
+
issueDate: z.ZodDate;
|
|
6671
|
+
previousInvoiceHash: z.ZodString;
|
|
6672
|
+
lineItems: z.ZodArray<z.ZodObject<{
|
|
6673
|
+
id: z.ZodString;
|
|
6674
|
+
name: z.ZodString;
|
|
6675
|
+
quantity: z.ZodNumber;
|
|
6676
|
+
taxExclusivePrice: z.ZodNumber;
|
|
6677
|
+
vatPercent: z.ZodNumber;
|
|
6678
|
+
discounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6679
|
+
amount: z.ZodNumber;
|
|
6680
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
6681
|
+
}, z.core.$strip>>>;
|
|
6682
|
+
vatCategory: z.ZodOptional<z.ZodString>;
|
|
6683
|
+
}, z.core.$strip>>;
|
|
6684
|
+
customerInfo: z.ZodOptional<z.ZodObject<{
|
|
6685
|
+
vatName: z.ZodOptional<z.ZodString>;
|
|
6686
|
+
vatNumber: z.ZodOptional<z.ZodString>;
|
|
6687
|
+
}, z.core.$strip>>;
|
|
6688
|
+
}, z.core.$strip>;
|
|
6689
|
+
invoiceHash: z.ZodString;
|
|
6690
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6691
|
+
success: z.ZodBoolean;
|
|
6692
|
+
invoiceHash: z.ZodString;
|
|
6693
|
+
reportingStatus: z.ZodString;
|
|
6694
|
+
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
6695
|
+
batchReportInvoices: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
6696
|
+
egsId: z.ZodUUID;
|
|
6697
|
+
invoices: z.ZodArray<z.ZodObject<{
|
|
6698
|
+
invoiceCode: z.ZodString;
|
|
6699
|
+
invoiceType: z.ZodString;
|
|
6700
|
+
crnNumber: z.ZodString;
|
|
6701
|
+
invoiceCounterNumber: z.ZodNumber;
|
|
6702
|
+
invoiceSerialNumber: z.ZodString;
|
|
6703
|
+
issueDate: z.ZodDate;
|
|
6704
|
+
previousInvoiceHash: z.ZodString;
|
|
6705
|
+
lineItems: z.ZodArray<z.ZodObject<{
|
|
6706
|
+
id: z.ZodString;
|
|
6707
|
+
name: z.ZodString;
|
|
6708
|
+
quantity: z.ZodNumber;
|
|
6709
|
+
taxExclusivePrice: z.ZodNumber;
|
|
6710
|
+
vatPercent: z.ZodNumber;
|
|
6711
|
+
discounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6712
|
+
amount: z.ZodNumber;
|
|
6713
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
6714
|
+
}, z.core.$strip>>>;
|
|
6715
|
+
vatCategory: z.ZodOptional<z.ZodString>;
|
|
6716
|
+
}, z.core.$strip>>;
|
|
6717
|
+
customerInfo: z.ZodOptional<z.ZodObject<{
|
|
6718
|
+
vatName: z.ZodOptional<z.ZodString>;
|
|
6719
|
+
vatNumber: z.ZodOptional<z.ZodString>;
|
|
6720
|
+
}, z.core.$strip>>;
|
|
6721
|
+
}, z.core.$strip>>;
|
|
6722
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6723
|
+
results: z.ZodArray<z.ZodObject<{
|
|
6724
|
+
success: z.ZodBoolean;
|
|
6725
|
+
invoiceHash: z.ZodString;
|
|
6726
|
+
reportingStatus: z.ZodString;
|
|
6727
|
+
}, z.core.$strip>>;
|
|
6728
|
+
total: z.ZodNumber;
|
|
6729
|
+
succeeded: z.ZodNumber;
|
|
6730
|
+
failed: z.ZodNumber;
|
|
6731
|
+
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
6732
|
+
syncInvoices: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
6733
|
+
egsId: z.ZodUUID;
|
|
6734
|
+
invoices: z.ZodArray<z.ZodObject<{
|
|
6735
|
+
id: z.ZodUUID;
|
|
6736
|
+
orderId: z.ZodOptional<z.ZodString>;
|
|
6737
|
+
egsId: z.ZodString;
|
|
6738
|
+
invoiceHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6739
|
+
signedInvoiceB64: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6740
|
+
invoiceQrData: z.ZodString;
|
|
6741
|
+
invoiceCounterNumber: z.ZodNumber;
|
|
6742
|
+
invoiceSerialNumber: z.ZodString;
|
|
6743
|
+
issueDate: z.ZodDate;
|
|
6744
|
+
previousInvoiceHash: z.ZodString;
|
|
6745
|
+
locationId: z.ZodString;
|
|
6746
|
+
lineItems: z.ZodArray<z.ZodObject<{
|
|
6747
|
+
id: z.ZodString;
|
|
6748
|
+
name: z.ZodString;
|
|
6749
|
+
quantity: z.ZodNumber;
|
|
6750
|
+
taxExclusivePrice: z.ZodNumber;
|
|
6751
|
+
vatPercent: z.ZodNumber;
|
|
6752
|
+
discounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6753
|
+
amount: z.ZodNumber;
|
|
6754
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
6755
|
+
}, z.core.$strip>>>;
|
|
6756
|
+
vatCategory: z.ZodOptional<z.ZodString>;
|
|
6757
|
+
}, z.core.$strip>>;
|
|
6758
|
+
customer: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
6759
|
+
vatName: z.ZodOptional<z.ZodString>;
|
|
6760
|
+
vatNumber: z.ZodOptional<z.ZodString>;
|
|
6761
|
+
}, z.core.$strip>>>;
|
|
6762
|
+
cancelation: z.ZodNullable<z.ZodUnknown>;
|
|
6763
|
+
syncStatus: z.ZodEnum<{
|
|
6764
|
+
failed: "failed";
|
|
6765
|
+
pending: "pending";
|
|
6766
|
+
draft: "draft";
|
|
6767
|
+
synced: "synced";
|
|
6768
|
+
}>;
|
|
6769
|
+
syncedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
6770
|
+
serverInvoiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6771
|
+
paymentId: z.ZodOptional<z.ZodString>;
|
|
6772
|
+
createdAt: z.ZodDate;
|
|
6773
|
+
}, z.core.$strip>>;
|
|
6774
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6775
|
+
results: z.ZodArray<z.ZodObject<{
|
|
6776
|
+
success: z.ZodBoolean;
|
|
6777
|
+
invoiceHash: z.ZodString;
|
|
6778
|
+
reportingStatus: z.ZodString;
|
|
6779
|
+
}, z.core.$strip>>;
|
|
6780
|
+
total: z.ZodNumber;
|
|
6781
|
+
succeeded: z.ZodNumber;
|
|
6782
|
+
failed: z.ZodNumber;
|
|
6783
|
+
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
6784
|
+
getEgsStatus: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
6785
|
+
egsId: z.ZodUUID;
|
|
6786
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6787
|
+
egsId: z.ZodUUID;
|
|
6788
|
+
deviceId: z.ZodString;
|
|
6789
|
+
isOnboarded: z.ZodBoolean;
|
|
6790
|
+
lastInvoiceHash: z.ZodNullable<z.ZodString>;
|
|
6791
|
+
nextInvoiceCounter: z.ZodNullable<z.ZodNumber>;
|
|
6792
|
+
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
6793
|
+
getOnboardingData: _orpc_contract0.ContractProcedure<z.ZodVoid, z.ZodObject<{
|
|
6794
|
+
vatName: z.ZodNullable<z.ZodString>;
|
|
6795
|
+
vatNumber: z.ZodNullable<z.ZodString>;
|
|
6796
|
+
locationName: z.ZodNullable<z.ZodString>;
|
|
6797
|
+
locationAddress: z.ZodNullable<z.ZodObject<{
|
|
6798
|
+
city: z.ZodString;
|
|
6799
|
+
district: z.ZodString;
|
|
6800
|
+
street: z.ZodString;
|
|
6801
|
+
building: z.ZodString;
|
|
6802
|
+
postalCode: z.ZodString;
|
|
6803
|
+
additionalNumber: z.ZodOptional<z.ZodString>;
|
|
6804
|
+
}, z.core.$strip>>;
|
|
6805
|
+
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
6806
|
+
getInvoiceByPayment: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
6807
|
+
paymentId: z.ZodString;
|
|
6808
|
+
}, z.core.$strip>, z.ZodNullable<z.ZodObject<{
|
|
6809
|
+
invoiceHash: z.ZodString;
|
|
6810
|
+
invoiceQrData: z.ZodString;
|
|
6811
|
+
invoiceSerialNumber: z.ZodString;
|
|
6812
|
+
invoiceCounterNumber: z.ZodNumber;
|
|
6813
|
+
issueDate: z.ZodDate;
|
|
6814
|
+
syncStatus: z.ZodString;
|
|
6815
|
+
reportedAt: z.ZodNullable<z.ZodDate>;
|
|
6816
|
+
}, z.core.$strip>>, _orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
6817
|
+
};
|
|
6818
|
+
taxes: {
|
|
6819
|
+
list: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
6820
|
+
merchantId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6821
|
+
locationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6822
|
+
isActive: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
6823
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6824
|
+
taxes: z.ZodArray<z.ZodObject<{
|
|
6825
|
+
id: z.ZodString;
|
|
6826
|
+
merchantId: z.ZodString;
|
|
6827
|
+
locationId: z.ZodString;
|
|
6828
|
+
name: z.ZodString;
|
|
6829
|
+
scope: z.ZodEnum<{
|
|
6830
|
+
ORDER: "ORDER";
|
|
6831
|
+
LINE_ITEM: "LINE_ITEM";
|
|
6832
|
+
}>;
|
|
6833
|
+
taxType: z.ZodEnum<{
|
|
6834
|
+
ADDITIVE: "ADDITIVE";
|
|
6835
|
+
INCLUSIVE: "INCLUSIVE";
|
|
6836
|
+
}>;
|
|
6837
|
+
value: z.ZodNumber;
|
|
6838
|
+
autoApplyScope: z.ZodEnum<{
|
|
6839
|
+
ALL_ITEMS: "ALL_ITEMS";
|
|
6840
|
+
CATEGORY: "CATEGORY";
|
|
6841
|
+
SELECTED_ITEMS: "SELECTED_ITEMS";
|
|
6842
|
+
}>;
|
|
6843
|
+
isActive: z.ZodBoolean;
|
|
6844
|
+
taxable: z.ZodBoolean;
|
|
6845
|
+
startsAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
6846
|
+
endsAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
6847
|
+
createdAt: z.ZodDate;
|
|
6848
|
+
updatedAt: z.ZodDate;
|
|
6849
|
+
itemIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
6850
|
+
categoryIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
6851
|
+
}, z.core.$strip>>;
|
|
6852
|
+
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
6853
|
+
create: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
6854
|
+
merchantId: z.ZodString;
|
|
6855
|
+
locationId: z.ZodString;
|
|
6856
|
+
name: z.ZodString;
|
|
6857
|
+
scope: z.ZodEnum<{
|
|
6858
|
+
ORDER: "ORDER";
|
|
6859
|
+
LINE_ITEM: "LINE_ITEM";
|
|
6860
|
+
}>;
|
|
6861
|
+
taxType: z.ZodEnum<{
|
|
6862
|
+
ADDITIVE: "ADDITIVE";
|
|
6863
|
+
INCLUSIVE: "INCLUSIVE";
|
|
6864
|
+
}>;
|
|
6865
|
+
value: z.ZodNumber;
|
|
6866
|
+
autoApplyScope: z.ZodDefault<z.ZodEnum<{
|
|
6867
|
+
ALL_ITEMS: "ALL_ITEMS";
|
|
6868
|
+
CATEGORY: "CATEGORY";
|
|
6869
|
+
SELECTED_ITEMS: "SELECTED_ITEMS";
|
|
6870
|
+
}>>;
|
|
6871
|
+
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
6872
|
+
taxable: z.ZodDefault<z.ZodBoolean>;
|
|
6873
|
+
startsAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
6874
|
+
endsAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
6875
|
+
itemIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
6876
|
+
categoryIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
6877
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6878
|
+
id: z.ZodString;
|
|
6879
|
+
merchantId: z.ZodString;
|
|
6880
|
+
locationId: z.ZodString;
|
|
6881
|
+
name: z.ZodString;
|
|
6882
|
+
scope: z.ZodEnum<{
|
|
6883
|
+
ORDER: "ORDER";
|
|
6884
|
+
LINE_ITEM: "LINE_ITEM";
|
|
6885
|
+
}>;
|
|
6886
|
+
taxType: z.ZodEnum<{
|
|
6887
|
+
ADDITIVE: "ADDITIVE";
|
|
6888
|
+
INCLUSIVE: "INCLUSIVE";
|
|
6889
|
+
}>;
|
|
6890
|
+
value: z.ZodNumber;
|
|
6891
|
+
autoApplyScope: z.ZodEnum<{
|
|
6892
|
+
ALL_ITEMS: "ALL_ITEMS";
|
|
6893
|
+
CATEGORY: "CATEGORY";
|
|
6894
|
+
SELECTED_ITEMS: "SELECTED_ITEMS";
|
|
6895
|
+
}>;
|
|
6896
|
+
isActive: z.ZodBoolean;
|
|
6897
|
+
taxable: z.ZodBoolean;
|
|
6898
|
+
startsAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
6899
|
+
endsAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
6900
|
+
createdAt: z.ZodDate;
|
|
6901
|
+
updatedAt: z.ZodDate;
|
|
6902
|
+
itemIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
6903
|
+
categoryIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
6904
|
+
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
6905
|
+
update: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
6906
|
+
taxId: z.ZodString;
|
|
6907
|
+
update: z.ZodObject<{
|
|
6908
|
+
merchantId: z.ZodOptional<z.ZodString>;
|
|
6909
|
+
locationId: z.ZodOptional<z.ZodString>;
|
|
6910
|
+
name: z.ZodOptional<z.ZodString>;
|
|
6911
|
+
scope: z.ZodOptional<z.ZodEnum<{
|
|
6912
|
+
ORDER: "ORDER";
|
|
6913
|
+
LINE_ITEM: "LINE_ITEM";
|
|
6914
|
+
}>>;
|
|
6915
|
+
taxType: z.ZodOptional<z.ZodEnum<{
|
|
6916
|
+
ADDITIVE: "ADDITIVE";
|
|
6917
|
+
INCLUSIVE: "INCLUSIVE";
|
|
6918
|
+
}>>;
|
|
6919
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
6920
|
+
autoApplyScope: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
6921
|
+
ALL_ITEMS: "ALL_ITEMS";
|
|
6922
|
+
CATEGORY: "CATEGORY";
|
|
6923
|
+
SELECTED_ITEMS: "SELECTED_ITEMS";
|
|
6924
|
+
}>>>;
|
|
6925
|
+
isActive: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
6926
|
+
taxable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
6927
|
+
startsAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDate>>>;
|
|
6928
|
+
endsAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDate>>>;
|
|
6929
|
+
itemIds: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>>;
|
|
6930
|
+
categoryIds: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>>;
|
|
6931
|
+
}, z.core.$strip>;
|
|
6932
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6933
|
+
id: z.ZodString;
|
|
6934
|
+
merchantId: z.ZodString;
|
|
6935
|
+
locationId: z.ZodString;
|
|
6936
|
+
name: z.ZodString;
|
|
6937
|
+
scope: z.ZodEnum<{
|
|
6938
|
+
ORDER: "ORDER";
|
|
6939
|
+
LINE_ITEM: "LINE_ITEM";
|
|
6940
|
+
}>;
|
|
6941
|
+
taxType: z.ZodEnum<{
|
|
6942
|
+
ADDITIVE: "ADDITIVE";
|
|
6943
|
+
INCLUSIVE: "INCLUSIVE";
|
|
6944
|
+
}>;
|
|
6945
|
+
value: z.ZodNumber;
|
|
6946
|
+
autoApplyScope: z.ZodEnum<{
|
|
6947
|
+
ALL_ITEMS: "ALL_ITEMS";
|
|
6948
|
+
CATEGORY: "CATEGORY";
|
|
6949
|
+
SELECTED_ITEMS: "SELECTED_ITEMS";
|
|
6950
|
+
}>;
|
|
6951
|
+
isActive: z.ZodBoolean;
|
|
6952
|
+
taxable: z.ZodBoolean;
|
|
6953
|
+
startsAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
6954
|
+
endsAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
6955
|
+
createdAt: z.ZodDate;
|
|
6956
|
+
updatedAt: z.ZodDate;
|
|
6957
|
+
itemIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
6958
|
+
categoryIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
6959
|
+
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
6960
|
+
delete: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
6961
|
+
taxId: z.ZodString;
|
|
6962
|
+
}, z.core.$strip>, z.ZodVoid, _orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
6963
|
+
get: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
6964
|
+
taxId: z.ZodString;
|
|
6965
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6966
|
+
id: z.ZodString;
|
|
6967
|
+
merchantId: z.ZodString;
|
|
6968
|
+
locationId: z.ZodString;
|
|
6969
|
+
name: z.ZodString;
|
|
6970
|
+
scope: z.ZodEnum<{
|
|
6971
|
+
ORDER: "ORDER";
|
|
6972
|
+
LINE_ITEM: "LINE_ITEM";
|
|
6973
|
+
}>;
|
|
6974
|
+
taxType: z.ZodEnum<{
|
|
6975
|
+
ADDITIVE: "ADDITIVE";
|
|
6976
|
+
INCLUSIVE: "INCLUSIVE";
|
|
6977
|
+
}>;
|
|
6978
|
+
value: z.ZodNumber;
|
|
6979
|
+
autoApplyScope: z.ZodEnum<{
|
|
6980
|
+
ALL_ITEMS: "ALL_ITEMS";
|
|
6981
|
+
CATEGORY: "CATEGORY";
|
|
6982
|
+
SELECTED_ITEMS: "SELECTED_ITEMS";
|
|
6983
|
+
}>;
|
|
6984
|
+
isActive: z.ZodBoolean;
|
|
6985
|
+
taxable: z.ZodBoolean;
|
|
6986
|
+
startsAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
6987
|
+
endsAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
6988
|
+
createdAt: z.ZodDate;
|
|
6989
|
+
updatedAt: z.ZodDate;
|
|
6990
|
+
itemIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
6991
|
+
categoryIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
6992
|
+
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
6993
|
+
};
|
|
6994
|
+
serviceCharges: {
|
|
6995
|
+
list: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
6996
|
+
merchantId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6997
|
+
locationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6998
|
+
isActive: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
6999
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7000
|
+
serviceCharges: z.ZodArray<z.ZodObject<{
|
|
7001
|
+
id: z.ZodString;
|
|
7002
|
+
merchantId: z.ZodString;
|
|
7003
|
+
locationId: z.ZodString;
|
|
7004
|
+
name: z.ZodString;
|
|
7005
|
+
scope: z.ZodEnum<{
|
|
7006
|
+
ORDER: "ORDER";
|
|
7007
|
+
LINE_ITEM: "LINE_ITEM";
|
|
7008
|
+
}>;
|
|
7009
|
+
chargeType: z.ZodEnum<{
|
|
7010
|
+
PERCENTAGE: "PERCENTAGE";
|
|
7011
|
+
FIXED_AMOUNT: "FIXED_AMOUNT";
|
|
7012
|
+
}>;
|
|
7013
|
+
value: z.ZodNumber;
|
|
7014
|
+
autoApplyScope: z.ZodEnum<{
|
|
7015
|
+
ALL_ITEMS: "ALL_ITEMS";
|
|
7016
|
+
CATEGORY: "CATEGORY";
|
|
7017
|
+
SELECTED_ITEMS: "SELECTED_ITEMS";
|
|
7018
|
+
}>;
|
|
7019
|
+
isActive: z.ZodBoolean;
|
|
7020
|
+
taxable: z.ZodBoolean;
|
|
7021
|
+
startsAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
7022
|
+
endsAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
7023
|
+
createdAt: z.ZodDate;
|
|
7024
|
+
updatedAt: z.ZodDate;
|
|
7025
|
+
itemIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
7026
|
+
categoryIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
7027
|
+
}, z.core.$strip>>;
|
|
7028
|
+
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
7029
|
+
create: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
7030
|
+
merchantId: z.ZodString;
|
|
7031
|
+
locationId: z.ZodString;
|
|
7032
|
+
name: z.ZodString;
|
|
7033
|
+
scope: z.ZodEnum<{
|
|
7034
|
+
ORDER: "ORDER";
|
|
7035
|
+
LINE_ITEM: "LINE_ITEM";
|
|
7036
|
+
}>;
|
|
7037
|
+
chargeType: z.ZodEnum<{
|
|
7038
|
+
PERCENTAGE: "PERCENTAGE";
|
|
7039
|
+
FIXED_AMOUNT: "FIXED_AMOUNT";
|
|
7040
|
+
}>;
|
|
7041
|
+
value: z.ZodNumber;
|
|
7042
|
+
autoApplyScope: z.ZodDefault<z.ZodEnum<{
|
|
7043
|
+
ALL_ITEMS: "ALL_ITEMS";
|
|
7044
|
+
CATEGORY: "CATEGORY";
|
|
7045
|
+
SELECTED_ITEMS: "SELECTED_ITEMS";
|
|
7046
|
+
}>>;
|
|
7047
|
+
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
7048
|
+
taxable: z.ZodDefault<z.ZodBoolean>;
|
|
7049
|
+
startsAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
7050
|
+
endsAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
7051
|
+
itemIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
7052
|
+
categoryIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
7053
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7054
|
+
id: z.ZodString;
|
|
7055
|
+
merchantId: z.ZodString;
|
|
7056
|
+
locationId: z.ZodString;
|
|
7057
|
+
name: z.ZodString;
|
|
7058
|
+
scope: z.ZodEnum<{
|
|
7059
|
+
ORDER: "ORDER";
|
|
7060
|
+
LINE_ITEM: "LINE_ITEM";
|
|
7061
|
+
}>;
|
|
7062
|
+
chargeType: z.ZodEnum<{
|
|
7063
|
+
PERCENTAGE: "PERCENTAGE";
|
|
7064
|
+
FIXED_AMOUNT: "FIXED_AMOUNT";
|
|
7065
|
+
}>;
|
|
7066
|
+
value: z.ZodNumber;
|
|
7067
|
+
autoApplyScope: z.ZodEnum<{
|
|
7068
|
+
ALL_ITEMS: "ALL_ITEMS";
|
|
7069
|
+
CATEGORY: "CATEGORY";
|
|
7070
|
+
SELECTED_ITEMS: "SELECTED_ITEMS";
|
|
7071
|
+
}>;
|
|
7072
|
+
isActive: z.ZodBoolean;
|
|
7073
|
+
taxable: z.ZodBoolean;
|
|
7074
|
+
startsAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
7075
|
+
endsAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
7076
|
+
createdAt: z.ZodDate;
|
|
7077
|
+
updatedAt: z.ZodDate;
|
|
7078
|
+
itemIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
7079
|
+
categoryIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
7080
|
+
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
7081
|
+
update: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
7082
|
+
serviceChargeId: z.ZodString;
|
|
7083
|
+
update: z.ZodObject<{
|
|
7084
|
+
merchantId: z.ZodOptional<z.ZodString>;
|
|
7085
|
+
locationId: z.ZodOptional<z.ZodString>;
|
|
7086
|
+
name: z.ZodOptional<z.ZodString>;
|
|
7087
|
+
scope: z.ZodOptional<z.ZodEnum<{
|
|
7088
|
+
ORDER: "ORDER";
|
|
7089
|
+
LINE_ITEM: "LINE_ITEM";
|
|
7090
|
+
}>>;
|
|
7091
|
+
chargeType: z.ZodOptional<z.ZodEnum<{
|
|
7092
|
+
PERCENTAGE: "PERCENTAGE";
|
|
7093
|
+
FIXED_AMOUNT: "FIXED_AMOUNT";
|
|
7094
|
+
}>>;
|
|
7095
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
7096
|
+
autoApplyScope: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
7097
|
+
ALL_ITEMS: "ALL_ITEMS";
|
|
7098
|
+
CATEGORY: "CATEGORY";
|
|
7099
|
+
SELECTED_ITEMS: "SELECTED_ITEMS";
|
|
7100
|
+
}>>>;
|
|
7101
|
+
isActive: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
7102
|
+
taxable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
7103
|
+
startsAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDate>>>;
|
|
7104
|
+
endsAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDate>>>;
|
|
7105
|
+
itemIds: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>>;
|
|
7106
|
+
categoryIds: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>>;
|
|
7107
|
+
}, z.core.$strip>;
|
|
7108
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7109
|
+
id: z.ZodString;
|
|
7110
|
+
merchantId: z.ZodString;
|
|
7111
|
+
locationId: z.ZodString;
|
|
7112
|
+
name: z.ZodString;
|
|
7113
|
+
scope: z.ZodEnum<{
|
|
7114
|
+
ORDER: "ORDER";
|
|
7115
|
+
LINE_ITEM: "LINE_ITEM";
|
|
7116
|
+
}>;
|
|
7117
|
+
chargeType: z.ZodEnum<{
|
|
7118
|
+
PERCENTAGE: "PERCENTAGE";
|
|
7119
|
+
FIXED_AMOUNT: "FIXED_AMOUNT";
|
|
7120
|
+
}>;
|
|
7121
|
+
value: z.ZodNumber;
|
|
7122
|
+
autoApplyScope: z.ZodEnum<{
|
|
7123
|
+
ALL_ITEMS: "ALL_ITEMS";
|
|
7124
|
+
CATEGORY: "CATEGORY";
|
|
7125
|
+
SELECTED_ITEMS: "SELECTED_ITEMS";
|
|
7126
|
+
}>;
|
|
7127
|
+
isActive: z.ZodBoolean;
|
|
7128
|
+
taxable: z.ZodBoolean;
|
|
7129
|
+
startsAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
7130
|
+
endsAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
7131
|
+
createdAt: z.ZodDate;
|
|
7132
|
+
updatedAt: z.ZodDate;
|
|
7133
|
+
itemIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
7134
|
+
categoryIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
7135
|
+
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
7136
|
+
delete: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
7137
|
+
serviceChargeId: z.ZodString;
|
|
7138
|
+
}, z.core.$strip>, z.ZodVoid, _orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
7139
|
+
get: _orpc_contract0.ContractProcedure<z.ZodObject<{
|
|
7140
|
+
serviceChargeId: z.ZodString;
|
|
7141
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7142
|
+
id: z.ZodString;
|
|
7143
|
+
merchantId: z.ZodString;
|
|
7144
|
+
locationId: z.ZodString;
|
|
7145
|
+
name: z.ZodString;
|
|
7146
|
+
scope: z.ZodEnum<{
|
|
7147
|
+
ORDER: "ORDER";
|
|
7148
|
+
LINE_ITEM: "LINE_ITEM";
|
|
7149
|
+
}>;
|
|
7150
|
+
chargeType: z.ZodEnum<{
|
|
7151
|
+
PERCENTAGE: "PERCENTAGE";
|
|
7152
|
+
FIXED_AMOUNT: "FIXED_AMOUNT";
|
|
7153
|
+
}>;
|
|
7154
|
+
value: z.ZodNumber;
|
|
7155
|
+
autoApplyScope: z.ZodEnum<{
|
|
7156
|
+
ALL_ITEMS: "ALL_ITEMS";
|
|
7157
|
+
CATEGORY: "CATEGORY";
|
|
7158
|
+
SELECTED_ITEMS: "SELECTED_ITEMS";
|
|
7159
|
+
}>;
|
|
7160
|
+
isActive: z.ZodBoolean;
|
|
7161
|
+
taxable: z.ZodBoolean;
|
|
7162
|
+
startsAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
7163
|
+
endsAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
7164
|
+
createdAt: z.ZodDate;
|
|
7165
|
+
updatedAt: z.ZodDate;
|
|
7166
|
+
itemIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
7167
|
+
categoryIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
7168
|
+
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
7169
|
+
};
|
|
7170
|
+
};
|
|
7171
|
+
type AppContract = typeof appContract;
|
|
7172
|
+
//#endregion
|
|
7173
|
+
//#region src/contract/errors/delivery.d.ts
|
|
7174
|
+
declare const deliveryOperationSchema: z.ZodEnum<{
|
|
7175
|
+
create: "create";
|
|
7176
|
+
get: "get";
|
|
7177
|
+
list: "list";
|
|
7178
|
+
update: "update";
|
|
7179
|
+
cancel: "cancel";
|
|
7180
|
+
}>;
|
|
7181
|
+
declare const deliveryErrors: {
|
|
7182
|
+
readonly DELIVERY_NOT_FOUND: {
|
|
7183
|
+
readonly status: 404;
|
|
7184
|
+
readonly message: "Delivery not found";
|
|
7185
|
+
readonly data: z.ZodObject<{
|
|
7186
|
+
deliveryId: z.ZodString;
|
|
7187
|
+
}, z.core.$strip>;
|
|
7188
|
+
};
|
|
7189
|
+
readonly DELIVERY_ORDER_NOT_FOUND: {
|
|
7190
|
+
readonly status: 404;
|
|
7191
|
+
readonly message: "Order not found";
|
|
7192
|
+
readonly data: z.ZodObject<{
|
|
7193
|
+
orderId: z.ZodString;
|
|
7194
|
+
}, z.core.$strip>;
|
|
7195
|
+
};
|
|
7196
|
+
readonly DELIVERY_INTEGRATION_NOT_FOUND: {
|
|
7197
|
+
readonly status: 404;
|
|
7198
|
+
readonly message: "No active integration found for delivery provider";
|
|
7199
|
+
readonly data: z.ZodObject<{
|
|
7200
|
+
merchantId: z.ZodOptional<z.ZodString>;
|
|
7201
|
+
provider: z.ZodEnum<{
|
|
7202
|
+
LEAJLAK: "LEAJLAK";
|
|
7203
|
+
PARCEL: "PARCEL";
|
|
7204
|
+
QMILE: "QMILE";
|
|
7205
|
+
LOCAL: "LOCAL";
|
|
7206
|
+
}>;
|
|
7207
|
+
}, z.core.$strip>;
|
|
7208
|
+
};
|
|
7209
|
+
readonly DELIVERY_INVALID_OPERATION: {
|
|
7210
|
+
readonly status: 400;
|
|
7211
|
+
readonly message: "Operation not supported for this delivery provider";
|
|
7212
|
+
readonly data: z.ZodObject<{
|
|
7213
|
+
operation: z.ZodEnum<{
|
|
7214
|
+
create: "create";
|
|
7215
|
+
get: "get";
|
|
7216
|
+
list: "list";
|
|
7217
|
+
update: "update";
|
|
7218
|
+
cancel: "cancel";
|
|
7219
|
+
}>;
|
|
7220
|
+
provider: z.ZodEnum<{
|
|
7221
|
+
LEAJLAK: "LEAJLAK";
|
|
7222
|
+
PARCEL: "PARCEL";
|
|
7223
|
+
QMILE: "QMILE";
|
|
7224
|
+
LOCAL: "LOCAL";
|
|
7225
|
+
}>;
|
|
7226
|
+
}, z.core.$strip>;
|
|
7227
|
+
};
|
|
7228
|
+
readonly DELIVERY_PROVIDER_ERROR: {
|
|
7229
|
+
readonly status: 502;
|
|
7230
|
+
readonly message: "Delivery provider error";
|
|
7231
|
+
readonly data: z.ZodObject<{
|
|
7232
|
+
provider: z.ZodEnum<{
|
|
7233
|
+
LEAJLAK: "LEAJLAK";
|
|
7234
|
+
PARCEL: "PARCEL";
|
|
7235
|
+
QMILE: "QMILE";
|
|
7236
|
+
LOCAL: "LOCAL";
|
|
7237
|
+
}>;
|
|
7238
|
+
message: z.ZodString;
|
|
7239
|
+
}, z.core.$strip>;
|
|
7240
|
+
};
|
|
7241
|
+
readonly LOCATION_INTEGRATION_NOT_SUPPORTED: {
|
|
7242
|
+
readonly status: 400;
|
|
7243
|
+
readonly message: "This provider does not support location integration";
|
|
7244
|
+
readonly data: z.ZodObject<{
|
|
7245
|
+
provider: z.ZodEnum<{
|
|
7246
|
+
LEAJLAK: "LEAJLAK";
|
|
7247
|
+
PARCEL: "PARCEL";
|
|
7248
|
+
QMILE: "QMILE";
|
|
7249
|
+
LOCAL: "LOCAL";
|
|
7250
|
+
}>;
|
|
7251
|
+
}, z.core.$strip>;
|
|
7252
|
+
};
|
|
7253
|
+
};
|
|
4898
7254
|
//#endregion
|
|
4899
7255
|
//#region src/index.d.ts
|
|
4900
7256
|
type Options = {
|
|
@@ -4908,4 +7264,4 @@ declare function createMyApi(props: Options): ContractRouterClient<AppContract>;
|
|
|
4908
7264
|
type Inputs = InferContractRouterInputs<AppContract>;
|
|
4909
7265
|
type Outputs = InferContractRouterOutputs<AppContract>;
|
|
4910
7266
|
//#endregion
|
|
4911
|
-
export { Actor, AppContract, FulfillmentState, FulfillmentStateMachine, FulfillmentStateValues, Inputs, Outputs, TerminalStates, appContract, assertCanTransition, canTransition, createMyApi, getAllowedTransitions, getAllowedUserTransitions, isTerminalState };
|
|
7267
|
+
export { Actor, AppContract, FulfillmentState, FulfillmentStateMachine, FulfillmentStateValues, Inputs, OrderFulfillmentType, Outputs, STATUS_LABELS, TerminalStates, appContract, assertCanTransition, canTransition, createMyApi, deliveryErrors, deliveryOperationSchema, getAllowedTransitions, getAllowedUserTransitions, getAvailableUserTransitions, isTerminalState };
|