@customafk/lunas-api-sdk 0.0.81 → 0.0.83
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.cts +1826 -215
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +1826 -215
- package/dist/index.d.mts.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -97,6 +97,31 @@ declare enum ECouponDiscountType {
|
|
|
97
97
|
FIXED_AMOUNT = 'FIXED_AMOUNT',
|
|
98
98
|
FREE_SHIPPING = 'FREE_SHIPPING',
|
|
99
99
|
}
|
|
100
|
+
declare enum ECouponScopeType {
|
|
101
|
+
ORDER = 'ORDER',
|
|
102
|
+
PRODUCT = 'PRODUCT',
|
|
103
|
+
SHIPPING = 'SHIPPING',
|
|
104
|
+
}
|
|
105
|
+
declare enum ECouponConditionType {
|
|
106
|
+
PRODUCT = 'PRODUCT',
|
|
107
|
+
CATEGORY = 'CATEGORY',
|
|
108
|
+
BRAND = 'BRAND',
|
|
109
|
+
PRODUCT_ATTRIBUTE = 'PRODUCT_ATTRIBUTE',
|
|
110
|
+
ORDER_AMOUNT = 'ORDER_AMOUNT',
|
|
111
|
+
QUANTITY = 'QUANTITY',
|
|
112
|
+
CUSTOMER_GROUP = 'CUSTOMER_GROUP',
|
|
113
|
+
FIRST_ORDER = 'FIRST_ORDER',
|
|
114
|
+
}
|
|
115
|
+
declare enum ECouponConditionOperator {
|
|
116
|
+
EQ = 'EQ',
|
|
117
|
+
NEQ = 'NEQ',
|
|
118
|
+
IN = 'IN',
|
|
119
|
+
NOT_IN = 'NOT_IN',
|
|
120
|
+
GT = 'GT',
|
|
121
|
+
GTE = 'GTE',
|
|
122
|
+
LT = 'LT',
|
|
123
|
+
LTE = 'LTE',
|
|
124
|
+
}
|
|
100
125
|
type TResponsePagination = {
|
|
101
126
|
page: number;
|
|
102
127
|
limit: number;
|
|
@@ -474,6 +499,33 @@ declare const _createClient: () => {
|
|
|
474
499
|
discountValue: number;
|
|
475
500
|
maxDiscountAmount: number | null;
|
|
476
501
|
minimumOrderValue: number;
|
|
502
|
+
scopeType: "ORDER" | "PRODUCT" | "SHIPPING";
|
|
503
|
+
startDate: Date | null;
|
|
504
|
+
usageLimit: number | null;
|
|
505
|
+
usageLimitPerCustomer: number | null;
|
|
506
|
+
isExclusive: boolean;
|
|
507
|
+
isStackable: boolean;
|
|
508
|
+
priority: number;
|
|
509
|
+
createdBy: string | null;
|
|
510
|
+
updatedBy: string | null;
|
|
511
|
+
conditions: {
|
|
512
|
+
uuid: string;
|
|
513
|
+
value: unknown;
|
|
514
|
+
createdAt: Date;
|
|
515
|
+
couponUuid: string;
|
|
516
|
+
groupId: number;
|
|
517
|
+
conditionType: "PRODUCT" | "CATEGORY" | "BRAND" | "PRODUCT_ATTRIBUTE" | "ORDER_AMOUNT" | "QUANTITY" | "CUSTOMER_GROUP" | "FIRST_ORDER";
|
|
518
|
+
operator: "EQ" | "NEQ" | "IN" | "NOT_IN" | "GT" | "GTE" | "LT" | "LTE";
|
|
519
|
+
}[];
|
|
520
|
+
auditLogs: {
|
|
521
|
+
uuid: string;
|
|
522
|
+
createdAt: Date;
|
|
523
|
+
couponUuid: string;
|
|
524
|
+
actorUuid: string;
|
|
525
|
+
fieldName: string;
|
|
526
|
+
oldValue: string | null;
|
|
527
|
+
newValue: string | null;
|
|
528
|
+
}[];
|
|
477
529
|
};
|
|
478
530
|
message: null;
|
|
479
531
|
error: null;
|
|
@@ -491,128 +543,782 @@ declare const _createClient: () => {
|
|
|
491
543
|
}>>) & {
|
|
492
544
|
'~path': string;
|
|
493
545
|
};
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
546
|
+
conditions: ((params: {
|
|
547
|
+
conditionUuid: string | number;
|
|
548
|
+
}) => {
|
|
549
|
+
patch: ((body?: {
|
|
550
|
+
groupId?: number | undefined;
|
|
551
|
+
operator?: ECouponConditionOperator | undefined;
|
|
552
|
+
value?: any;
|
|
553
|
+
} | undefined, options?: {
|
|
554
|
+
fetch?: RequestInit | undefined;
|
|
555
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
556
|
+
headers?: {} | undefined;
|
|
557
|
+
query?: {} | undefined;
|
|
558
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
559
|
+
200: {
|
|
560
|
+
success: true;
|
|
561
|
+
statusCode: number;
|
|
562
|
+
data: null;
|
|
563
|
+
message: string;
|
|
564
|
+
error: null;
|
|
565
|
+
meta: TResponseMeta;
|
|
566
|
+
} | {
|
|
567
|
+
success: false;
|
|
568
|
+
statusCode: number;
|
|
569
|
+
data: null;
|
|
570
|
+
message: string;
|
|
571
|
+
error: TResponseError;
|
|
572
|
+
meta: TResponseMeta;
|
|
573
|
+
};
|
|
574
|
+
422: {
|
|
575
|
+
type: "validation";
|
|
576
|
+
on: string;
|
|
577
|
+
summary?: string;
|
|
578
|
+
message?: string;
|
|
579
|
+
found?: unknown;
|
|
580
|
+
property?: string;
|
|
581
|
+
expected?: string;
|
|
582
|
+
};
|
|
583
|
+
}>>) & {
|
|
584
|
+
'~path': string;
|
|
524
585
|
};
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
586
|
+
delete: ((body?: {} | undefined, options?: {
|
|
587
|
+
fetch?: RequestInit | undefined;
|
|
588
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
589
|
+
headers?: {} | undefined;
|
|
590
|
+
query?: {} | undefined;
|
|
591
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
592
|
+
200: {
|
|
593
|
+
success: true;
|
|
594
|
+
statusCode: number;
|
|
595
|
+
data: null;
|
|
596
|
+
message: string;
|
|
597
|
+
error: null;
|
|
598
|
+
meta: TResponseMeta;
|
|
599
|
+
} | {
|
|
600
|
+
success: false;
|
|
601
|
+
statusCode: number;
|
|
602
|
+
data: null;
|
|
603
|
+
message: string;
|
|
604
|
+
error: TResponseError;
|
|
605
|
+
meta: TResponseMeta;
|
|
606
|
+
};
|
|
607
|
+
422: {
|
|
608
|
+
type: "validation";
|
|
609
|
+
on: string;
|
|
610
|
+
summary?: string;
|
|
611
|
+
message?: string;
|
|
612
|
+
found?: unknown;
|
|
613
|
+
property?: string;
|
|
614
|
+
expected?: string;
|
|
615
|
+
};
|
|
616
|
+
}>>) & {
|
|
617
|
+
'~path': string;
|
|
533
618
|
};
|
|
534
|
-
}>>) & {
|
|
535
619
|
'~path': string;
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
620
|
+
} & {
|
|
621
|
+
patch: ((body?: {
|
|
622
|
+
groupId?: number | undefined;
|
|
623
|
+
operator?: ECouponConditionOperator | undefined;
|
|
624
|
+
value?: any;
|
|
625
|
+
} | undefined, options?: {
|
|
626
|
+
fetch?: RequestInit | undefined;
|
|
627
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
628
|
+
headers?: {} | undefined;
|
|
629
|
+
query?: {} | undefined;
|
|
630
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
631
|
+
200: {
|
|
632
|
+
success: true;
|
|
633
|
+
statusCode: number;
|
|
634
|
+
data: null;
|
|
635
|
+
message: string;
|
|
636
|
+
error: null;
|
|
637
|
+
meta: TResponseMeta;
|
|
638
|
+
} | {
|
|
639
|
+
success: false;
|
|
640
|
+
statusCode: number;
|
|
641
|
+
data: null;
|
|
642
|
+
message: string;
|
|
643
|
+
error: TResponseError;
|
|
644
|
+
meta: TResponseMeta;
|
|
645
|
+
};
|
|
646
|
+
422: {
|
|
647
|
+
type: "validation";
|
|
648
|
+
on: string;
|
|
649
|
+
summary?: string;
|
|
650
|
+
message?: string;
|
|
651
|
+
found?: unknown;
|
|
652
|
+
property?: string;
|
|
653
|
+
expected?: string;
|
|
654
|
+
};
|
|
655
|
+
}>>) & {
|
|
656
|
+
'~path': string;
|
|
557
657
|
};
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
658
|
+
delete: ((body?: {} | undefined, options?: {
|
|
659
|
+
fetch?: RequestInit | undefined;
|
|
660
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
661
|
+
headers?: {} | undefined;
|
|
662
|
+
query?: {} | undefined;
|
|
663
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
664
|
+
200: {
|
|
665
|
+
success: true;
|
|
666
|
+
statusCode: number;
|
|
667
|
+
data: null;
|
|
668
|
+
message: string;
|
|
669
|
+
error: null;
|
|
670
|
+
meta: TResponseMeta;
|
|
671
|
+
} | {
|
|
672
|
+
success: false;
|
|
673
|
+
statusCode: number;
|
|
674
|
+
data: null;
|
|
675
|
+
message: string;
|
|
676
|
+
error: TResponseError;
|
|
677
|
+
meta: TResponseMeta;
|
|
678
|
+
};
|
|
679
|
+
422: {
|
|
680
|
+
type: "validation";
|
|
681
|
+
on: string;
|
|
682
|
+
summary?: string;
|
|
683
|
+
message?: string;
|
|
684
|
+
found?: unknown;
|
|
685
|
+
property?: string;
|
|
686
|
+
expected?: string;
|
|
687
|
+
};
|
|
688
|
+
}>>) & {
|
|
689
|
+
'~path': string;
|
|
690
|
+
};
|
|
691
|
+
}) & {
|
|
692
|
+
get: ((options?: {
|
|
693
|
+
fetch?: RequestInit | undefined;
|
|
694
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
695
|
+
headers?: {} | undefined;
|
|
696
|
+
query?: {} | undefined;
|
|
697
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
698
|
+
200: {
|
|
699
|
+
success: false;
|
|
700
|
+
statusCode: number;
|
|
701
|
+
data: null;
|
|
702
|
+
message: string;
|
|
703
|
+
error: TResponseError;
|
|
704
|
+
meta: TResponseMeta;
|
|
705
|
+
} | {
|
|
706
|
+
success: true;
|
|
707
|
+
statusCode: number;
|
|
708
|
+
data: {
|
|
709
|
+
uuid: string;
|
|
710
|
+
value: unknown;
|
|
711
|
+
createdAt: Date;
|
|
712
|
+
couponUuid: string;
|
|
713
|
+
groupId: number;
|
|
714
|
+
conditionType: "PRODUCT" | "CATEGORY" | "BRAND" | "PRODUCT_ATTRIBUTE" | "ORDER_AMOUNT" | "QUANTITY" | "CUSTOMER_GROUP" | "FIRST_ORDER";
|
|
715
|
+
operator: "EQ" | "NEQ" | "IN" | "NOT_IN" | "GT" | "GTE" | "LT" | "LTE";
|
|
716
|
+
}[];
|
|
717
|
+
message: null;
|
|
718
|
+
error: null;
|
|
719
|
+
meta: TResponseMeta;
|
|
720
|
+
};
|
|
721
|
+
422: {
|
|
722
|
+
type: "validation";
|
|
723
|
+
on: string;
|
|
724
|
+
summary?: string;
|
|
725
|
+
message?: string;
|
|
726
|
+
found?: unknown;
|
|
727
|
+
property?: string;
|
|
728
|
+
expected?: string;
|
|
729
|
+
};
|
|
730
|
+
}>>) & {
|
|
731
|
+
'~path': string;
|
|
732
|
+
};
|
|
733
|
+
post: ((body: {
|
|
734
|
+
groupId: number;
|
|
735
|
+
conditionType: ECouponConditionType;
|
|
736
|
+
operator: ECouponConditionOperator;
|
|
737
|
+
value: any;
|
|
738
|
+
}, options?: {
|
|
739
|
+
fetch?: RequestInit | undefined;
|
|
740
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
741
|
+
headers?: {} | undefined;
|
|
742
|
+
query?: {} | undefined;
|
|
743
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
744
|
+
200: {
|
|
745
|
+
success: false;
|
|
746
|
+
statusCode: number;
|
|
747
|
+
data: null;
|
|
748
|
+
message: string;
|
|
749
|
+
error: TResponseError;
|
|
750
|
+
meta: TResponseMeta;
|
|
751
|
+
} | {
|
|
752
|
+
success: true;
|
|
753
|
+
statusCode: number;
|
|
754
|
+
data: {
|
|
755
|
+
uuid: string;
|
|
756
|
+
value: unknown;
|
|
757
|
+
createdAt: Date;
|
|
758
|
+
couponUuid: string;
|
|
759
|
+
groupId: number;
|
|
760
|
+
conditionType: "PRODUCT" | "CATEGORY" | "BRAND" | "PRODUCT_ATTRIBUTE" | "ORDER_AMOUNT" | "QUANTITY" | "CUSTOMER_GROUP" | "FIRST_ORDER";
|
|
761
|
+
operator: "EQ" | "NEQ" | "IN" | "NOT_IN" | "GT" | "GTE" | "LT" | "LTE";
|
|
762
|
+
};
|
|
763
|
+
message: null;
|
|
764
|
+
error: null;
|
|
765
|
+
meta: TResponseMeta;
|
|
766
|
+
};
|
|
767
|
+
422: {
|
|
768
|
+
type: "validation";
|
|
769
|
+
on: string;
|
|
770
|
+
summary?: string;
|
|
771
|
+
message?: string;
|
|
772
|
+
found?: unknown;
|
|
773
|
+
property?: string;
|
|
774
|
+
expected?: string;
|
|
775
|
+
};
|
|
776
|
+
}>>) & {
|
|
777
|
+
'~path': string;
|
|
778
|
+
};
|
|
779
|
+
} & {
|
|
780
|
+
'~path': string;
|
|
781
|
+
};
|
|
782
|
+
enable: {
|
|
783
|
+
patch: ((body?: {} | undefined, options?: {
|
|
784
|
+
fetch?: RequestInit | undefined;
|
|
785
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
786
|
+
headers?: {} | undefined;
|
|
787
|
+
query?: {} | undefined;
|
|
788
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
789
|
+
200: {
|
|
790
|
+
success: true;
|
|
791
|
+
statusCode: number;
|
|
792
|
+
data: null;
|
|
793
|
+
message: string;
|
|
794
|
+
error: null;
|
|
795
|
+
meta: TResponseMeta;
|
|
796
|
+
} | {
|
|
797
|
+
success: false;
|
|
798
|
+
statusCode: number;
|
|
799
|
+
data: null;
|
|
800
|
+
message: string;
|
|
801
|
+
error: TResponseError;
|
|
802
|
+
meta: TResponseMeta;
|
|
803
|
+
};
|
|
804
|
+
422: {
|
|
805
|
+
type: "validation";
|
|
806
|
+
on: string;
|
|
807
|
+
summary?: string;
|
|
808
|
+
message?: string;
|
|
809
|
+
found?: unknown;
|
|
810
|
+
property?: string;
|
|
811
|
+
expected?: string;
|
|
812
|
+
};
|
|
813
|
+
}>>) & {
|
|
814
|
+
'~path': string;
|
|
815
|
+
};
|
|
816
|
+
} & {
|
|
817
|
+
'~path': string;
|
|
818
|
+
};
|
|
819
|
+
disable: {
|
|
820
|
+
patch: ((body?: {} | undefined, options?: {
|
|
821
|
+
fetch?: RequestInit | undefined;
|
|
822
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
823
|
+
headers?: {} | undefined;
|
|
824
|
+
query?: {} | undefined;
|
|
825
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
826
|
+
200: {
|
|
827
|
+
success: true;
|
|
828
|
+
statusCode: number;
|
|
829
|
+
data: null;
|
|
830
|
+
message: string;
|
|
831
|
+
error: null;
|
|
832
|
+
meta: TResponseMeta;
|
|
833
|
+
} | {
|
|
834
|
+
success: false;
|
|
835
|
+
statusCode: number;
|
|
836
|
+
data: null;
|
|
837
|
+
message: string;
|
|
838
|
+
error: TResponseError;
|
|
839
|
+
meta: TResponseMeta;
|
|
840
|
+
};
|
|
841
|
+
422: {
|
|
842
|
+
type: "validation";
|
|
843
|
+
on: string;
|
|
844
|
+
summary?: string;
|
|
845
|
+
message?: string;
|
|
846
|
+
found?: unknown;
|
|
847
|
+
property?: string;
|
|
848
|
+
expected?: string;
|
|
849
|
+
};
|
|
850
|
+
}>>) & {
|
|
851
|
+
'~path': string;
|
|
852
|
+
};
|
|
853
|
+
} & {
|
|
854
|
+
'~path': string;
|
|
855
|
+
};
|
|
856
|
+
patch: ((body?: {
|
|
857
|
+
code?: string | undefined;
|
|
858
|
+
name?: string | undefined;
|
|
859
|
+
description?: string | null | undefined;
|
|
860
|
+
discountType?: ECouponDiscountType | undefined;
|
|
861
|
+
discountValue?: number | undefined;
|
|
862
|
+
maxDiscountAmount?: number | null | undefined;
|
|
863
|
+
minimumOrderValue?: number | undefined;
|
|
864
|
+
scopeType?: ECouponScopeType | undefined;
|
|
865
|
+
startDate?: string | null | undefined;
|
|
866
|
+
endDate?: string | null | undefined;
|
|
867
|
+
usageLimit?: number | null | undefined;
|
|
868
|
+
usageLimitPerCustomer?: number | null | undefined;
|
|
869
|
+
isExclusive?: boolean | undefined;
|
|
870
|
+
isStackable?: boolean | undefined;
|
|
871
|
+
priority?: number | undefined;
|
|
872
|
+
isActive?: boolean | undefined;
|
|
873
|
+
} | undefined, options?: {
|
|
874
|
+
fetch?: RequestInit | undefined;
|
|
875
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
876
|
+
headers?: {} | undefined;
|
|
877
|
+
query?: {} | undefined;
|
|
878
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
879
|
+
200: {
|
|
880
|
+
success: true;
|
|
881
|
+
statusCode: number;
|
|
882
|
+
data: null;
|
|
883
|
+
message: string;
|
|
884
|
+
error: null;
|
|
885
|
+
meta: TResponseMeta;
|
|
886
|
+
} | {
|
|
887
|
+
success: false;
|
|
888
|
+
statusCode: number;
|
|
889
|
+
data: null;
|
|
890
|
+
message: string;
|
|
891
|
+
error: TResponseError;
|
|
892
|
+
meta: TResponseMeta;
|
|
893
|
+
};
|
|
894
|
+
422: {
|
|
895
|
+
type: "validation";
|
|
896
|
+
on: string;
|
|
897
|
+
summary?: string;
|
|
898
|
+
message?: string;
|
|
899
|
+
found?: unknown;
|
|
900
|
+
property?: string;
|
|
901
|
+
expected?: string;
|
|
902
|
+
};
|
|
903
|
+
}>>) & {
|
|
904
|
+
'~path': string;
|
|
905
|
+
};
|
|
906
|
+
delete: ((body?: {} | undefined, options?: {
|
|
907
|
+
fetch?: RequestInit | undefined;
|
|
908
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
909
|
+
headers?: {} | undefined;
|
|
910
|
+
query?: {} | undefined;
|
|
911
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
912
|
+
200: {
|
|
913
|
+
success: true;
|
|
914
|
+
statusCode: number;
|
|
915
|
+
data: null;
|
|
916
|
+
message: string;
|
|
917
|
+
error: null;
|
|
918
|
+
meta: TResponseMeta;
|
|
919
|
+
} | {
|
|
920
|
+
success: false;
|
|
921
|
+
statusCode: number;
|
|
922
|
+
data: null;
|
|
923
|
+
message: string;
|
|
924
|
+
error: TResponseError;
|
|
925
|
+
meta: TResponseMeta;
|
|
926
|
+
};
|
|
927
|
+
422: {
|
|
928
|
+
type: "validation";
|
|
929
|
+
on: string;
|
|
930
|
+
summary?: string;
|
|
931
|
+
message?: string;
|
|
932
|
+
found?: unknown;
|
|
933
|
+
property?: string;
|
|
934
|
+
expected?: string;
|
|
935
|
+
};
|
|
936
|
+
}>>) & {
|
|
937
|
+
'~path': string;
|
|
938
|
+
};
|
|
939
|
+
'~path': string;
|
|
940
|
+
} & {
|
|
941
|
+
get: ((options?: {
|
|
942
|
+
fetch?: RequestInit | undefined;
|
|
943
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
944
|
+
headers?: {} | undefined;
|
|
945
|
+
query?: {} | undefined;
|
|
946
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
947
|
+
200: {
|
|
948
|
+
success: false;
|
|
949
|
+
statusCode: number;
|
|
950
|
+
data: null;
|
|
951
|
+
message: string;
|
|
952
|
+
error: TResponseError;
|
|
953
|
+
meta: TResponseMeta;
|
|
954
|
+
} | {
|
|
955
|
+
success: true;
|
|
956
|
+
statusCode: number;
|
|
957
|
+
data: {
|
|
958
|
+
name: string;
|
|
959
|
+
uuid: string;
|
|
960
|
+
createdAt: Date;
|
|
961
|
+
updatedAt: Date;
|
|
962
|
+
description: string | null;
|
|
963
|
+
isActive: boolean;
|
|
964
|
+
expiresAt: Date | null;
|
|
965
|
+
code: string;
|
|
966
|
+
discountType: "PERCENTAGE" | "FIXED_AMOUNT" | "FREE_SHIPPING";
|
|
967
|
+
discountValue: number;
|
|
968
|
+
maxDiscountAmount: number | null;
|
|
969
|
+
minimumOrderValue: number;
|
|
970
|
+
scopeType: "ORDER" | "PRODUCT" | "SHIPPING";
|
|
971
|
+
startDate: Date | null;
|
|
972
|
+
usageLimit: number | null;
|
|
973
|
+
usageLimitPerCustomer: number | null;
|
|
974
|
+
isExclusive: boolean;
|
|
975
|
+
isStackable: boolean;
|
|
976
|
+
priority: number;
|
|
977
|
+
createdBy: string | null;
|
|
978
|
+
updatedBy: string | null;
|
|
979
|
+
conditions: {
|
|
980
|
+
uuid: string;
|
|
981
|
+
value: unknown;
|
|
982
|
+
createdAt: Date;
|
|
983
|
+
couponUuid: string;
|
|
984
|
+
groupId: number;
|
|
985
|
+
conditionType: "PRODUCT" | "CATEGORY" | "BRAND" | "PRODUCT_ATTRIBUTE" | "ORDER_AMOUNT" | "QUANTITY" | "CUSTOMER_GROUP" | "FIRST_ORDER";
|
|
986
|
+
operator: "EQ" | "NEQ" | "IN" | "NOT_IN" | "GT" | "GTE" | "LT" | "LTE";
|
|
987
|
+
}[];
|
|
988
|
+
auditLogs: {
|
|
989
|
+
uuid: string;
|
|
990
|
+
createdAt: Date;
|
|
991
|
+
couponUuid: string;
|
|
992
|
+
actorUuid: string;
|
|
993
|
+
fieldName: string;
|
|
994
|
+
oldValue: string | null;
|
|
995
|
+
newValue: string | null;
|
|
996
|
+
}[];
|
|
997
|
+
};
|
|
998
|
+
message: null;
|
|
999
|
+
error: null;
|
|
1000
|
+
meta: TResponseMeta;
|
|
1001
|
+
};
|
|
1002
|
+
422: {
|
|
1003
|
+
type: "validation";
|
|
1004
|
+
on: string;
|
|
1005
|
+
summary?: string;
|
|
1006
|
+
message?: string;
|
|
1007
|
+
found?: unknown;
|
|
1008
|
+
property?: string;
|
|
1009
|
+
expected?: string;
|
|
1010
|
+
};
|
|
1011
|
+
}>>) & {
|
|
1012
|
+
'~path': string;
|
|
1013
|
+
};
|
|
1014
|
+
conditions: ((params: {
|
|
1015
|
+
conditionUuid: string | number;
|
|
1016
|
+
}) => {
|
|
1017
|
+
patch: ((body?: {
|
|
1018
|
+
groupId?: number | undefined;
|
|
1019
|
+
operator?: ECouponConditionOperator | undefined;
|
|
1020
|
+
value?: any;
|
|
1021
|
+
} | undefined, options?: {
|
|
1022
|
+
fetch?: RequestInit | undefined;
|
|
1023
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
1024
|
+
headers?: {} | undefined;
|
|
1025
|
+
query?: {} | undefined;
|
|
1026
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
1027
|
+
200: {
|
|
1028
|
+
success: true;
|
|
1029
|
+
statusCode: number;
|
|
1030
|
+
data: null;
|
|
1031
|
+
message: string;
|
|
1032
|
+
error: null;
|
|
1033
|
+
meta: TResponseMeta;
|
|
1034
|
+
} | {
|
|
1035
|
+
success: false;
|
|
1036
|
+
statusCode: number;
|
|
1037
|
+
data: null;
|
|
1038
|
+
message: string;
|
|
1039
|
+
error: TResponseError;
|
|
1040
|
+
meta: TResponseMeta;
|
|
1041
|
+
};
|
|
1042
|
+
422: {
|
|
1043
|
+
type: "validation";
|
|
1044
|
+
on: string;
|
|
1045
|
+
summary?: string;
|
|
1046
|
+
message?: string;
|
|
1047
|
+
found?: unknown;
|
|
1048
|
+
property?: string;
|
|
1049
|
+
expected?: string;
|
|
1050
|
+
};
|
|
1051
|
+
}>>) & {
|
|
1052
|
+
'~path': string;
|
|
1053
|
+
};
|
|
1054
|
+
delete: ((body?: {} | undefined, options?: {
|
|
1055
|
+
fetch?: RequestInit | undefined;
|
|
1056
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
1057
|
+
headers?: {} | undefined;
|
|
1058
|
+
query?: {} | undefined;
|
|
1059
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
1060
|
+
200: {
|
|
1061
|
+
success: true;
|
|
1062
|
+
statusCode: number;
|
|
1063
|
+
data: null;
|
|
1064
|
+
message: string;
|
|
1065
|
+
error: null;
|
|
1066
|
+
meta: TResponseMeta;
|
|
1067
|
+
} | {
|
|
1068
|
+
success: false;
|
|
1069
|
+
statusCode: number;
|
|
1070
|
+
data: null;
|
|
1071
|
+
message: string;
|
|
1072
|
+
error: TResponseError;
|
|
1073
|
+
meta: TResponseMeta;
|
|
1074
|
+
};
|
|
1075
|
+
422: {
|
|
1076
|
+
type: "validation";
|
|
1077
|
+
on: string;
|
|
1078
|
+
summary?: string;
|
|
1079
|
+
message?: string;
|
|
1080
|
+
found?: unknown;
|
|
1081
|
+
property?: string;
|
|
1082
|
+
expected?: string;
|
|
1083
|
+
};
|
|
1084
|
+
}>>) & {
|
|
1085
|
+
'~path': string;
|
|
1086
|
+
};
|
|
1087
|
+
'~path': string;
|
|
1088
|
+
} & {
|
|
1089
|
+
patch: ((body?: {
|
|
1090
|
+
groupId?: number | undefined;
|
|
1091
|
+
operator?: ECouponConditionOperator | undefined;
|
|
1092
|
+
value?: any;
|
|
1093
|
+
} | undefined, options?: {
|
|
1094
|
+
fetch?: RequestInit | undefined;
|
|
1095
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
1096
|
+
headers?: {} | undefined;
|
|
1097
|
+
query?: {} | undefined;
|
|
1098
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
1099
|
+
200: {
|
|
1100
|
+
success: true;
|
|
1101
|
+
statusCode: number;
|
|
1102
|
+
data: null;
|
|
1103
|
+
message: string;
|
|
1104
|
+
error: null;
|
|
1105
|
+
meta: TResponseMeta;
|
|
1106
|
+
} | {
|
|
1107
|
+
success: false;
|
|
1108
|
+
statusCode: number;
|
|
1109
|
+
data: null;
|
|
1110
|
+
message: string;
|
|
1111
|
+
error: TResponseError;
|
|
1112
|
+
meta: TResponseMeta;
|
|
1113
|
+
};
|
|
1114
|
+
422: {
|
|
1115
|
+
type: "validation";
|
|
1116
|
+
on: string;
|
|
1117
|
+
summary?: string;
|
|
1118
|
+
message?: string;
|
|
1119
|
+
found?: unknown;
|
|
1120
|
+
property?: string;
|
|
1121
|
+
expected?: string;
|
|
1122
|
+
};
|
|
1123
|
+
}>>) & {
|
|
1124
|
+
'~path': string;
|
|
1125
|
+
};
|
|
1126
|
+
delete: ((body?: {} | undefined, options?: {
|
|
1127
|
+
fetch?: RequestInit | undefined;
|
|
1128
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
1129
|
+
headers?: {} | undefined;
|
|
1130
|
+
query?: {} | undefined;
|
|
1131
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
1132
|
+
200: {
|
|
1133
|
+
success: true;
|
|
1134
|
+
statusCode: number;
|
|
1135
|
+
data: null;
|
|
1136
|
+
message: string;
|
|
1137
|
+
error: null;
|
|
1138
|
+
meta: TResponseMeta;
|
|
1139
|
+
} | {
|
|
1140
|
+
success: false;
|
|
1141
|
+
statusCode: number;
|
|
1142
|
+
data: null;
|
|
1143
|
+
message: string;
|
|
1144
|
+
error: TResponseError;
|
|
1145
|
+
meta: TResponseMeta;
|
|
1146
|
+
};
|
|
1147
|
+
422: {
|
|
1148
|
+
type: "validation";
|
|
1149
|
+
on: string;
|
|
1150
|
+
summary?: string;
|
|
1151
|
+
message?: string;
|
|
1152
|
+
found?: unknown;
|
|
1153
|
+
property?: string;
|
|
1154
|
+
expected?: string;
|
|
1155
|
+
};
|
|
1156
|
+
}>>) & {
|
|
1157
|
+
'~path': string;
|
|
1158
|
+
};
|
|
1159
|
+
}) & {
|
|
1160
|
+
get: ((options?: {
|
|
1161
|
+
fetch?: RequestInit | undefined;
|
|
1162
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
1163
|
+
headers?: {} | undefined;
|
|
1164
|
+
query?: {} | undefined;
|
|
1165
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
1166
|
+
200: {
|
|
1167
|
+
success: false;
|
|
1168
|
+
statusCode: number;
|
|
1169
|
+
data: null;
|
|
1170
|
+
message: string;
|
|
1171
|
+
error: TResponseError;
|
|
1172
|
+
meta: TResponseMeta;
|
|
1173
|
+
} | {
|
|
1174
|
+
success: true;
|
|
1175
|
+
statusCode: number;
|
|
1176
|
+
data: {
|
|
1177
|
+
uuid: string;
|
|
1178
|
+
value: unknown;
|
|
1179
|
+
createdAt: Date;
|
|
1180
|
+
couponUuid: string;
|
|
1181
|
+
groupId: number;
|
|
1182
|
+
conditionType: "PRODUCT" | "CATEGORY" | "BRAND" | "PRODUCT_ATTRIBUTE" | "ORDER_AMOUNT" | "QUANTITY" | "CUSTOMER_GROUP" | "FIRST_ORDER";
|
|
1183
|
+
operator: "EQ" | "NEQ" | "IN" | "NOT_IN" | "GT" | "GTE" | "LT" | "LTE";
|
|
1184
|
+
}[];
|
|
1185
|
+
message: null;
|
|
1186
|
+
error: null;
|
|
1187
|
+
meta: TResponseMeta;
|
|
1188
|
+
};
|
|
1189
|
+
422: {
|
|
1190
|
+
type: "validation";
|
|
1191
|
+
on: string;
|
|
1192
|
+
summary?: string;
|
|
1193
|
+
message?: string;
|
|
1194
|
+
found?: unknown;
|
|
1195
|
+
property?: string;
|
|
1196
|
+
expected?: string;
|
|
1197
|
+
};
|
|
1198
|
+
}>>) & {
|
|
1199
|
+
'~path': string;
|
|
1200
|
+
};
|
|
1201
|
+
post: ((body: {
|
|
1202
|
+
groupId: number;
|
|
1203
|
+
conditionType: ECouponConditionType;
|
|
1204
|
+
operator: ECouponConditionOperator;
|
|
1205
|
+
value: any;
|
|
1206
|
+
}, options?: {
|
|
1207
|
+
fetch?: RequestInit | undefined;
|
|
1208
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
1209
|
+
headers?: {} | undefined;
|
|
1210
|
+
query?: {} | undefined;
|
|
1211
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
1212
|
+
200: {
|
|
1213
|
+
success: false;
|
|
1214
|
+
statusCode: number;
|
|
1215
|
+
data: null;
|
|
1216
|
+
message: string;
|
|
1217
|
+
error: TResponseError;
|
|
1218
|
+
meta: TResponseMeta;
|
|
1219
|
+
} | {
|
|
1220
|
+
success: true;
|
|
1221
|
+
statusCode: number;
|
|
1222
|
+
data: {
|
|
1223
|
+
uuid: string;
|
|
1224
|
+
value: unknown;
|
|
1225
|
+
createdAt: Date;
|
|
1226
|
+
couponUuid: string;
|
|
1227
|
+
groupId: number;
|
|
1228
|
+
conditionType: "PRODUCT" | "CATEGORY" | "BRAND" | "PRODUCT_ATTRIBUTE" | "ORDER_AMOUNT" | "QUANTITY" | "CUSTOMER_GROUP" | "FIRST_ORDER";
|
|
1229
|
+
operator: "EQ" | "NEQ" | "IN" | "NOT_IN" | "GT" | "GTE" | "LT" | "LTE";
|
|
1230
|
+
};
|
|
1231
|
+
message: null;
|
|
1232
|
+
error: null;
|
|
1233
|
+
meta: TResponseMeta;
|
|
1234
|
+
};
|
|
1235
|
+
422: {
|
|
1236
|
+
type: "validation";
|
|
1237
|
+
on: string;
|
|
1238
|
+
summary?: string;
|
|
1239
|
+
message?: string;
|
|
1240
|
+
found?: unknown;
|
|
1241
|
+
property?: string;
|
|
1242
|
+
expected?: string;
|
|
1243
|
+
};
|
|
1244
|
+
}>>) & {
|
|
1245
|
+
'~path': string;
|
|
566
1246
|
};
|
|
567
|
-
}
|
|
1247
|
+
} & {
|
|
568
1248
|
'~path': string;
|
|
569
1249
|
};
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
createdAt: Date;
|
|
592
|
-
updatedAt: Date;
|
|
593
|
-
description: string | null;
|
|
594
|
-
isActive: boolean;
|
|
595
|
-
expiresAt: Date | null;
|
|
596
|
-
code: string;
|
|
597
|
-
discountType: "PERCENTAGE" | "FIXED_AMOUNT" | "FREE_SHIPPING";
|
|
598
|
-
discountValue: number;
|
|
599
|
-
maxDiscountAmount: number | null;
|
|
600
|
-
minimumOrderValue: number;
|
|
1250
|
+
enable: {
|
|
1251
|
+
patch: ((body?: {} | undefined, options?: {
|
|
1252
|
+
fetch?: RequestInit | undefined;
|
|
1253
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
1254
|
+
headers?: {} | undefined;
|
|
1255
|
+
query?: {} | undefined;
|
|
1256
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
1257
|
+
200: {
|
|
1258
|
+
success: true;
|
|
1259
|
+
statusCode: number;
|
|
1260
|
+
data: null;
|
|
1261
|
+
message: string;
|
|
1262
|
+
error: null;
|
|
1263
|
+
meta: TResponseMeta;
|
|
1264
|
+
} | {
|
|
1265
|
+
success: false;
|
|
1266
|
+
statusCode: number;
|
|
1267
|
+
data: null;
|
|
1268
|
+
message: string;
|
|
1269
|
+
error: TResponseError;
|
|
1270
|
+
meta: TResponseMeta;
|
|
601
1271
|
};
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
1272
|
+
422: {
|
|
1273
|
+
type: "validation";
|
|
1274
|
+
on: string;
|
|
1275
|
+
summary?: string;
|
|
1276
|
+
message?: string;
|
|
1277
|
+
found?: unknown;
|
|
1278
|
+
property?: string;
|
|
1279
|
+
expected?: string;
|
|
1280
|
+
};
|
|
1281
|
+
}>>) & {
|
|
1282
|
+
'~path': string;
|
|
605
1283
|
};
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
1284
|
+
} & {
|
|
1285
|
+
'~path': string;
|
|
1286
|
+
};
|
|
1287
|
+
disable: {
|
|
1288
|
+
patch: ((body?: {} | undefined, options?: {
|
|
1289
|
+
fetch?: RequestInit | undefined;
|
|
1290
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
1291
|
+
headers?: {} | undefined;
|
|
1292
|
+
query?: {} | undefined;
|
|
1293
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
1294
|
+
200: {
|
|
1295
|
+
success: true;
|
|
1296
|
+
statusCode: number;
|
|
1297
|
+
data: null;
|
|
1298
|
+
message: string;
|
|
1299
|
+
error: null;
|
|
1300
|
+
meta: TResponseMeta;
|
|
1301
|
+
} | {
|
|
1302
|
+
success: false;
|
|
1303
|
+
statusCode: number;
|
|
1304
|
+
data: null;
|
|
1305
|
+
message: string;
|
|
1306
|
+
error: TResponseError;
|
|
1307
|
+
meta: TResponseMeta;
|
|
1308
|
+
};
|
|
1309
|
+
422: {
|
|
1310
|
+
type: "validation";
|
|
1311
|
+
on: string;
|
|
1312
|
+
summary?: string;
|
|
1313
|
+
message?: string;
|
|
1314
|
+
found?: unknown;
|
|
1315
|
+
property?: string;
|
|
1316
|
+
expected?: string;
|
|
1317
|
+
};
|
|
1318
|
+
}>>) & {
|
|
1319
|
+
'~path': string;
|
|
614
1320
|
};
|
|
615
|
-
}
|
|
1321
|
+
} & {
|
|
616
1322
|
'~path': string;
|
|
617
1323
|
};
|
|
618
1324
|
patch: ((body?: {
|
|
@@ -623,7 +1329,14 @@ declare const _createClient: () => {
|
|
|
623
1329
|
discountValue?: number | undefined;
|
|
624
1330
|
maxDiscountAmount?: number | null | undefined;
|
|
625
1331
|
minimumOrderValue?: number | undefined;
|
|
626
|
-
|
|
1332
|
+
scopeType?: ECouponScopeType | undefined;
|
|
1333
|
+
startDate?: string | null | undefined;
|
|
1334
|
+
endDate?: string | null | undefined;
|
|
1335
|
+
usageLimit?: number | null | undefined;
|
|
1336
|
+
usageLimitPerCustomer?: number | null | undefined;
|
|
1337
|
+
isExclusive?: boolean | undefined;
|
|
1338
|
+
isStackable?: boolean | undefined;
|
|
1339
|
+
priority?: number | undefined;
|
|
627
1340
|
isActive?: boolean | undefined;
|
|
628
1341
|
} | undefined, options?: {
|
|
629
1342
|
fetch?: RequestInit | undefined;
|
|
@@ -701,6 +1414,9 @@ declare const _createClient: () => {
|
|
|
701
1414
|
limit?: number | undefined;
|
|
702
1415
|
search?: string | undefined;
|
|
703
1416
|
isActive?: boolean | undefined;
|
|
1417
|
+
scopeType?: ECouponScopeType | undefined;
|
|
1418
|
+
startDateFrom?: string | undefined;
|
|
1419
|
+
startDateTo?: string | undefined;
|
|
704
1420
|
} | undefined;
|
|
705
1421
|
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
706
1422
|
200: {
|
|
@@ -727,6 +1443,15 @@ declare const _createClient: () => {
|
|
|
727
1443
|
discountValue: number;
|
|
728
1444
|
maxDiscountAmount: number | null;
|
|
729
1445
|
minimumOrderValue: number;
|
|
1446
|
+
scopeType: "ORDER" | "PRODUCT" | "SHIPPING";
|
|
1447
|
+
startDate: Date | null;
|
|
1448
|
+
usageLimit: number | null;
|
|
1449
|
+
usageLimitPerCustomer: number | null;
|
|
1450
|
+
isExclusive: boolean;
|
|
1451
|
+
isStackable: boolean;
|
|
1452
|
+
priority: number;
|
|
1453
|
+
createdBy: string | null;
|
|
1454
|
+
updatedBy: string | null;
|
|
730
1455
|
}[];
|
|
731
1456
|
pagination: {
|
|
732
1457
|
page: number;
|
|
@@ -753,16 +1478,105 @@ declare const _createClient: () => {
|
|
|
753
1478
|
}>>) & {
|
|
754
1479
|
'~path': string;
|
|
755
1480
|
};
|
|
1481
|
+
reports: {
|
|
1482
|
+
summary: {
|
|
1483
|
+
get: ((options?: {
|
|
1484
|
+
fetch?: RequestInit | undefined;
|
|
1485
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
1486
|
+
headers?: {} | undefined;
|
|
1487
|
+
query?: {
|
|
1488
|
+
startDate?: string | undefined;
|
|
1489
|
+
endDate?: string | undefined;
|
|
1490
|
+
couponUuid?: string | undefined;
|
|
1491
|
+
} | undefined;
|
|
1492
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
1493
|
+
200: {
|
|
1494
|
+
success: false;
|
|
1495
|
+
statusCode: number;
|
|
1496
|
+
data: null;
|
|
1497
|
+
message: string;
|
|
1498
|
+
error: TResponseError;
|
|
1499
|
+
meta: TResponseMeta;
|
|
1500
|
+
} | {
|
|
1501
|
+
success: true;
|
|
1502
|
+
statusCode: number;
|
|
1503
|
+
data: {
|
|
1504
|
+
totalIssued: number;
|
|
1505
|
+
totalUses: number;
|
|
1506
|
+
totalDiscount: number;
|
|
1507
|
+
topCoupons: {
|
|
1508
|
+
couponUuid: string | null;
|
|
1509
|
+
code: string;
|
|
1510
|
+
useCount: number;
|
|
1511
|
+
totalDiscount: number;
|
|
1512
|
+
}[];
|
|
1513
|
+
};
|
|
1514
|
+
message: null;
|
|
1515
|
+
error: null;
|
|
1516
|
+
meta: TResponseMeta;
|
|
1517
|
+
};
|
|
1518
|
+
422: {
|
|
1519
|
+
type: "validation";
|
|
1520
|
+
on: string;
|
|
1521
|
+
summary?: string;
|
|
1522
|
+
message?: string;
|
|
1523
|
+
found?: unknown;
|
|
1524
|
+
property?: string;
|
|
1525
|
+
expected?: string;
|
|
1526
|
+
};
|
|
1527
|
+
}>>) & {
|
|
1528
|
+
'~path': string;
|
|
1529
|
+
};
|
|
1530
|
+
} & {
|
|
1531
|
+
'~path': string;
|
|
1532
|
+
};
|
|
1533
|
+
export: {
|
|
1534
|
+
get: ((options?: {
|
|
1535
|
+
fetch?: RequestInit | undefined;
|
|
1536
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
1537
|
+
headers?: {} | undefined;
|
|
1538
|
+
query?: {
|
|
1539
|
+
startDate?: string | undefined;
|
|
1540
|
+
endDate?: string | undefined;
|
|
1541
|
+
couponUuid?: string | undefined;
|
|
1542
|
+
} | undefined;
|
|
1543
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
1544
|
+
200: Response;
|
|
1545
|
+
422: {
|
|
1546
|
+
type: "validation";
|
|
1547
|
+
on: string;
|
|
1548
|
+
summary?: string;
|
|
1549
|
+
message?: string;
|
|
1550
|
+
found?: unknown;
|
|
1551
|
+
property?: string;
|
|
1552
|
+
expected?: string;
|
|
1553
|
+
};
|
|
1554
|
+
}>>) & {
|
|
1555
|
+
'~path': string;
|
|
1556
|
+
};
|
|
1557
|
+
} & {
|
|
1558
|
+
'~path': string;
|
|
1559
|
+
};
|
|
1560
|
+
} & {
|
|
1561
|
+
'~path': string;
|
|
1562
|
+
};
|
|
756
1563
|
post: ((body: {
|
|
757
1564
|
code: string;
|
|
758
1565
|
name: string;
|
|
759
1566
|
discountType: ECouponDiscountType;
|
|
760
1567
|
discountValue: number;
|
|
761
1568
|
minimumOrderValue: number;
|
|
1569
|
+
scopeType: ECouponScopeType;
|
|
1570
|
+
isExclusive: boolean;
|
|
1571
|
+
isStackable: boolean;
|
|
1572
|
+
priority: number;
|
|
762
1573
|
isActive: boolean;
|
|
763
1574
|
description?: string | undefined;
|
|
764
1575
|
maxDiscountAmount?: number | null | undefined;
|
|
765
|
-
|
|
1576
|
+
startDate?: string | null | undefined;
|
|
1577
|
+
endDate?: string | null | undefined;
|
|
1578
|
+
usageLimit?: number | null | undefined;
|
|
1579
|
+
usageLimitPerCustomer?: number | null | undefined;
|
|
766
1580
|
}, options?: {
|
|
767
1581
|
fetch?: RequestInit | undefined;
|
|
768
1582
|
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
@@ -792,6 +1606,15 @@ declare const _createClient: () => {
|
|
|
792
1606
|
discountValue: number;
|
|
793
1607
|
maxDiscountAmount: number | null;
|
|
794
1608
|
minimumOrderValue: number;
|
|
1609
|
+
scopeType: "ORDER" | "PRODUCT" | "SHIPPING";
|
|
1610
|
+
startDate: Date | null;
|
|
1611
|
+
usageLimit: number | null;
|
|
1612
|
+
usageLimitPerCustomer: number | null;
|
|
1613
|
+
isExclusive: boolean;
|
|
1614
|
+
isStackable: boolean;
|
|
1615
|
+
priority: number;
|
|
1616
|
+
createdBy: string | null;
|
|
1617
|
+
updatedBy: string | null;
|
|
795
1618
|
};
|
|
796
1619
|
message: null;
|
|
797
1620
|
error: null;
|
|
@@ -817,10 +1640,17 @@ declare const _createClient: () => {
|
|
|
817
1640
|
discountType: ECouponDiscountType;
|
|
818
1641
|
discountValue: number;
|
|
819
1642
|
minimumOrderValue: number;
|
|
1643
|
+
scopeType: ECouponScopeType;
|
|
1644
|
+
isExclusive: boolean;
|
|
1645
|
+
isStackable: boolean;
|
|
1646
|
+
priority: number;
|
|
820
1647
|
isActive: boolean;
|
|
821
1648
|
description?: string | undefined;
|
|
822
1649
|
maxDiscountAmount?: number | null | undefined;
|
|
823
|
-
|
|
1650
|
+
startDate?: string | null | undefined;
|
|
1651
|
+
endDate?: string | null | undefined;
|
|
1652
|
+
usageLimit?: number | null | undefined;
|
|
1653
|
+
usageLimitPerCustomer?: number | null | undefined;
|
|
824
1654
|
}[];
|
|
825
1655
|
}, options?: {
|
|
826
1656
|
fetch?: RequestInit | undefined;
|
|
@@ -851,6 +1681,15 @@ declare const _createClient: () => {
|
|
|
851
1681
|
discountValue: number;
|
|
852
1682
|
maxDiscountAmount: number | null;
|
|
853
1683
|
minimumOrderValue: number;
|
|
1684
|
+
scopeType: "ORDER" | "PRODUCT" | "SHIPPING";
|
|
1685
|
+
startDate: Date | null;
|
|
1686
|
+
usageLimit: number | null;
|
|
1687
|
+
usageLimitPerCustomer: number | null;
|
|
1688
|
+
isExclusive: boolean;
|
|
1689
|
+
isStackable: boolean;
|
|
1690
|
+
priority: number;
|
|
1691
|
+
createdBy: string | null;
|
|
1692
|
+
updatedBy: string | null;
|
|
854
1693
|
}[];
|
|
855
1694
|
message: null;
|
|
856
1695
|
error: null;
|
|
@@ -1617,6 +2456,7 @@ declare const _createClient: () => {
|
|
|
1617
2456
|
createdAt: Date;
|
|
1618
2457
|
updatedAt: Date;
|
|
1619
2458
|
completedAt: Date | null;
|
|
2459
|
+
actorUuid: string | null;
|
|
1620
2460
|
title: string;
|
|
1621
2461
|
content: string | null;
|
|
1622
2462
|
manifestUuid: string | null;
|
|
@@ -1624,7 +2464,6 @@ declare const _createClient: () => {
|
|
|
1624
2464
|
startedAt: Date;
|
|
1625
2465
|
category: "ORDER" | "PAYMENT" | "LOGISTICS";
|
|
1626
2466
|
isPublic: boolean;
|
|
1627
|
-
actorUuid: string | null;
|
|
1628
2467
|
metadata: unknown;
|
|
1629
2468
|
}[];
|
|
1630
2469
|
orderSurcharges: {
|
|
@@ -1770,6 +2609,7 @@ declare const _createClient: () => {
|
|
|
1770
2609
|
createdAt: Date;
|
|
1771
2610
|
updatedAt: Date;
|
|
1772
2611
|
completedAt: Date | null;
|
|
2612
|
+
actorUuid: string | null;
|
|
1773
2613
|
title: string;
|
|
1774
2614
|
content: string | null;
|
|
1775
2615
|
manifestUuid: string | null;
|
|
@@ -1777,7 +2617,6 @@ declare const _createClient: () => {
|
|
|
1777
2617
|
startedAt: Date;
|
|
1778
2618
|
category: "ORDER" | "PAYMENT" | "LOGISTICS";
|
|
1779
2619
|
isPublic: boolean;
|
|
1780
|
-
actorUuid: string | null;
|
|
1781
2620
|
metadata: unknown;
|
|
1782
2621
|
}[];
|
|
1783
2622
|
orderSurcharges: {
|
|
@@ -2225,6 +3064,7 @@ declare const _createClient: () => {
|
|
|
2225
3064
|
createdAt: Date;
|
|
2226
3065
|
updatedAt: Date;
|
|
2227
3066
|
completedAt: Date | null;
|
|
3067
|
+
actorUuid: string | null;
|
|
2228
3068
|
title: string;
|
|
2229
3069
|
content: string | null;
|
|
2230
3070
|
manifestUuid: string | null;
|
|
@@ -2232,7 +3072,6 @@ declare const _createClient: () => {
|
|
|
2232
3072
|
startedAt: Date;
|
|
2233
3073
|
category: "ORDER" | "PAYMENT" | "LOGISTICS";
|
|
2234
3074
|
isPublic: boolean;
|
|
2235
|
-
actorUuid: string | null;
|
|
2236
3075
|
metadata: unknown;
|
|
2237
3076
|
}[];
|
|
2238
3077
|
orderSurcharges: {
|
|
@@ -2378,6 +3217,7 @@ declare const _createClient: () => {
|
|
|
2378
3217
|
createdAt: Date;
|
|
2379
3218
|
updatedAt: Date;
|
|
2380
3219
|
completedAt: Date | null;
|
|
3220
|
+
actorUuid: string | null;
|
|
2381
3221
|
title: string;
|
|
2382
3222
|
content: string | null;
|
|
2383
3223
|
manifestUuid: string | null;
|
|
@@ -2385,7 +3225,6 @@ declare const _createClient: () => {
|
|
|
2385
3225
|
startedAt: Date;
|
|
2386
3226
|
category: "ORDER" | "PAYMENT" | "LOGISTICS";
|
|
2387
3227
|
isPublic: boolean;
|
|
2388
|
-
actorUuid: string | null;
|
|
2389
3228
|
metadata: unknown;
|
|
2390
3229
|
}[];
|
|
2391
3230
|
orderSurcharges: {
|
|
@@ -2711,20 +3550,82 @@ declare const _createClient: () => {
|
|
|
2711
3550
|
hasPreviousPage: boolean;
|
|
2712
3551
|
};
|
|
2713
3552
|
};
|
|
2714
|
-
message: null;
|
|
2715
|
-
error: null;
|
|
2716
|
-
meta: TResponseMeta;
|
|
2717
|
-
};
|
|
2718
|
-
422: {
|
|
2719
|
-
type: "validation";
|
|
2720
|
-
on: string;
|
|
2721
|
-
summary?: string;
|
|
2722
|
-
message?: string;
|
|
2723
|
-
found?: unknown;
|
|
2724
|
-
property?: string;
|
|
2725
|
-
expected?: string;
|
|
3553
|
+
message: null;
|
|
3554
|
+
error: null;
|
|
3555
|
+
meta: TResponseMeta;
|
|
3556
|
+
};
|
|
3557
|
+
422: {
|
|
3558
|
+
type: "validation";
|
|
3559
|
+
on: string;
|
|
3560
|
+
summary?: string;
|
|
3561
|
+
message?: string;
|
|
3562
|
+
found?: unknown;
|
|
3563
|
+
property?: string;
|
|
3564
|
+
expected?: string;
|
|
3565
|
+
};
|
|
3566
|
+
}>>) & {
|
|
3567
|
+
'~path': string;
|
|
3568
|
+
};
|
|
3569
|
+
lookup: {
|
|
3570
|
+
get: ((options?: {
|
|
3571
|
+
fetch?: RequestInit | undefined;
|
|
3572
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
3573
|
+
headers?: {} | undefined;
|
|
3574
|
+
query?: {
|
|
3575
|
+
page?: number | undefined;
|
|
3576
|
+
limit?: number | undefined;
|
|
3577
|
+
search?: string | undefined;
|
|
3578
|
+
} | undefined;
|
|
3579
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
3580
|
+
200: {
|
|
3581
|
+
success: false;
|
|
3582
|
+
statusCode: number;
|
|
3583
|
+
data: null;
|
|
3584
|
+
message: string;
|
|
3585
|
+
error: TResponseError;
|
|
3586
|
+
meta: TResponseMeta;
|
|
3587
|
+
} | {
|
|
3588
|
+
success: true;
|
|
3589
|
+
statusCode: number;
|
|
3590
|
+
data: {
|
|
3591
|
+
data: {
|
|
3592
|
+
uuid: string;
|
|
3593
|
+
username: string;
|
|
3594
|
+
email: string;
|
|
3595
|
+
role: string;
|
|
3596
|
+
isActive: boolean | null;
|
|
3597
|
+
createdAt: Date | null;
|
|
3598
|
+
profile: {
|
|
3599
|
+
fullname: string;
|
|
3600
|
+
phoneNumber: string | null;
|
|
3601
|
+
} | null;
|
|
3602
|
+
}[];
|
|
3603
|
+
pagination: {
|
|
3604
|
+
page: number;
|
|
3605
|
+
limit: number;
|
|
3606
|
+
total: number;
|
|
3607
|
+
totalPages: number;
|
|
3608
|
+
hasNextPage: boolean;
|
|
3609
|
+
hasPreviousPage: boolean;
|
|
3610
|
+
};
|
|
3611
|
+
};
|
|
3612
|
+
message: null;
|
|
3613
|
+
error: null;
|
|
3614
|
+
meta: TResponseMeta;
|
|
3615
|
+
};
|
|
3616
|
+
422: {
|
|
3617
|
+
type: "validation";
|
|
3618
|
+
on: string;
|
|
3619
|
+
summary?: string;
|
|
3620
|
+
message?: string;
|
|
3621
|
+
found?: unknown;
|
|
3622
|
+
property?: string;
|
|
3623
|
+
expected?: string;
|
|
3624
|
+
};
|
|
3625
|
+
}>>) & {
|
|
3626
|
+
'~path': string;
|
|
2726
3627
|
};
|
|
2727
|
-
}
|
|
3628
|
+
} & {
|
|
2728
3629
|
'~path': string;
|
|
2729
3630
|
};
|
|
2730
3631
|
post: ((body: {
|
|
@@ -3870,16 +4771,298 @@ declare const _createClient: () => {
|
|
|
3870
4771
|
error: null;
|
|
3871
4772
|
meta: TResponseMeta;
|
|
3872
4773
|
};
|
|
3873
|
-
}>>) & {
|
|
4774
|
+
}>>) & {
|
|
4775
|
+
'~path': string;
|
|
4776
|
+
};
|
|
4777
|
+
count: {
|
|
4778
|
+
get: ((options?: {
|
|
4779
|
+
fetch?: RequestInit | undefined;
|
|
4780
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
4781
|
+
headers?: {} | undefined;
|
|
4782
|
+
query?: {} | undefined;
|
|
4783
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
4784
|
+
200: {
|
|
4785
|
+
success: false;
|
|
4786
|
+
statusCode: number;
|
|
4787
|
+
data: null;
|
|
4788
|
+
message: string;
|
|
4789
|
+
error: TResponseError;
|
|
4790
|
+
meta: TResponseMeta;
|
|
4791
|
+
} | {
|
|
4792
|
+
success: true;
|
|
4793
|
+
statusCode: number;
|
|
4794
|
+
data: number;
|
|
4795
|
+
message: null;
|
|
4796
|
+
error: null;
|
|
4797
|
+
meta: TResponseMeta;
|
|
4798
|
+
};
|
|
4799
|
+
}>>) & {
|
|
4800
|
+
'~path': string;
|
|
4801
|
+
};
|
|
4802
|
+
} & {
|
|
4803
|
+
'~path': string;
|
|
4804
|
+
};
|
|
4805
|
+
post: ((body: {
|
|
4806
|
+
code: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHF" | "CLP" | "CNY" | "COP" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GGP" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "IMP" | "INR" | "IQD" | "IRR" | "ISK" | "JEP" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLE" | "SLL" | "SOS" | "SRD" | "STN" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TVD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "UYU" | "UZS" | "VED" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XCD" | "XDR" | "XOF" | "XPF" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
4807
|
+
name: string;
|
|
4808
|
+
exchangeRate: number;
|
|
4809
|
+
}, options?: {
|
|
4810
|
+
fetch?: RequestInit | undefined;
|
|
4811
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
4812
|
+
headers?: {} | undefined;
|
|
4813
|
+
query?: {} | undefined;
|
|
4814
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
4815
|
+
200: {
|
|
4816
|
+
success: false;
|
|
4817
|
+
statusCode: number;
|
|
4818
|
+
data: null;
|
|
4819
|
+
message: string;
|
|
4820
|
+
error: TResponseError;
|
|
4821
|
+
meta: TResponseMeta;
|
|
4822
|
+
} | {
|
|
4823
|
+
success: true;
|
|
4824
|
+
statusCode: number;
|
|
4825
|
+
data: {
|
|
4826
|
+
id: number;
|
|
4827
|
+
name: string;
|
|
4828
|
+
code: string;
|
|
4829
|
+
exchangeRate: number;
|
|
4830
|
+
createdAt: Date | null;
|
|
4831
|
+
updatedAt: Date | null;
|
|
4832
|
+
}[];
|
|
4833
|
+
message: null;
|
|
4834
|
+
error: null;
|
|
4835
|
+
meta: TResponseMeta;
|
|
4836
|
+
};
|
|
4837
|
+
422: {
|
|
4838
|
+
type: "validation";
|
|
4839
|
+
on: string;
|
|
4840
|
+
summary?: string;
|
|
4841
|
+
message?: string;
|
|
4842
|
+
found?: unknown;
|
|
4843
|
+
property?: string;
|
|
4844
|
+
expected?: string;
|
|
4845
|
+
};
|
|
4846
|
+
}>>) & {
|
|
4847
|
+
'~path': string;
|
|
4848
|
+
};
|
|
4849
|
+
bulk: {
|
|
4850
|
+
post: ((body: {
|
|
4851
|
+
currencies: {
|
|
4852
|
+
code: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHF" | "CLP" | "CNY" | "COP" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GGP" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "IMP" | "INR" | "IQD" | "IRR" | "ISK" | "JEP" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLE" | "SLL" | "SOS" | "SRD" | "STN" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TVD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "UYU" | "UZS" | "VED" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XCD" | "XDR" | "XOF" | "XPF" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
4853
|
+
name: string;
|
|
4854
|
+
exchangeRate: number;
|
|
4855
|
+
}[];
|
|
4856
|
+
}, options?: {
|
|
4857
|
+
fetch?: RequestInit | undefined;
|
|
4858
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
4859
|
+
headers?: {} | undefined;
|
|
4860
|
+
query?: {} | undefined;
|
|
4861
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
4862
|
+
200: {
|
|
4863
|
+
success: false;
|
|
4864
|
+
statusCode: number;
|
|
4865
|
+
data: null;
|
|
4866
|
+
message: string;
|
|
4867
|
+
error: TResponseError;
|
|
4868
|
+
meta: TResponseMeta;
|
|
4869
|
+
} | {
|
|
4870
|
+
success: true;
|
|
4871
|
+
statusCode: number;
|
|
4872
|
+
data: {
|
|
4873
|
+
id: number;
|
|
4874
|
+
name: string;
|
|
4875
|
+
code: string;
|
|
4876
|
+
exchangeRate: number;
|
|
4877
|
+
createdAt: Date | null;
|
|
4878
|
+
updatedAt: Date | null;
|
|
4879
|
+
}[];
|
|
4880
|
+
message: null;
|
|
4881
|
+
error: null;
|
|
4882
|
+
meta: TResponseMeta;
|
|
4883
|
+
};
|
|
4884
|
+
422: {
|
|
4885
|
+
type: "validation";
|
|
4886
|
+
on: string;
|
|
4887
|
+
summary?: string;
|
|
4888
|
+
message?: string;
|
|
4889
|
+
found?: unknown;
|
|
4890
|
+
property?: string;
|
|
4891
|
+
expected?: string;
|
|
4892
|
+
};
|
|
4893
|
+
}>>) & {
|
|
4894
|
+
'~path': string;
|
|
4895
|
+
};
|
|
4896
|
+
delete: ((body: {}, options: {
|
|
4897
|
+
fetch?: RequestInit | undefined;
|
|
4898
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
4899
|
+
headers?: {} | undefined;
|
|
4900
|
+
query: {
|
|
4901
|
+
ids: number[];
|
|
4902
|
+
};
|
|
4903
|
+
}) => Promise<Treaty.TreatyResponse<{
|
|
4904
|
+
200: {
|
|
4905
|
+
success: true;
|
|
4906
|
+
statusCode: number;
|
|
4907
|
+
data: null;
|
|
4908
|
+
message: string;
|
|
4909
|
+
error: null;
|
|
4910
|
+
meta: TResponseMeta;
|
|
4911
|
+
} | {
|
|
4912
|
+
success: false;
|
|
4913
|
+
statusCode: number;
|
|
4914
|
+
data: null;
|
|
4915
|
+
message: string;
|
|
4916
|
+
error: TResponseError;
|
|
4917
|
+
meta: TResponseMeta;
|
|
4918
|
+
};
|
|
4919
|
+
422: {
|
|
4920
|
+
type: "validation";
|
|
4921
|
+
on: string;
|
|
4922
|
+
summary?: string;
|
|
4923
|
+
message?: string;
|
|
4924
|
+
found?: unknown;
|
|
4925
|
+
property?: string;
|
|
4926
|
+
expected?: string;
|
|
4927
|
+
};
|
|
4928
|
+
}>>) & {
|
|
4929
|
+
'~path': string;
|
|
4930
|
+
};
|
|
4931
|
+
} & {
|
|
4932
|
+
'~path': string;
|
|
4933
|
+
};
|
|
4934
|
+
} & {
|
|
4935
|
+
'~path': string;
|
|
4936
|
+
};
|
|
4937
|
+
dashboard: {
|
|
4938
|
+
overview: {
|
|
4939
|
+
get: ((options?: {
|
|
4940
|
+
fetch?: RequestInit | undefined;
|
|
4941
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
4942
|
+
headers?: {} | undefined;
|
|
4943
|
+
query?: {
|
|
4944
|
+
startDate?: string | undefined;
|
|
4945
|
+
endDate?: string | undefined;
|
|
4946
|
+
} | undefined;
|
|
4947
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
4948
|
+
200: {
|
|
4949
|
+
success: false;
|
|
4950
|
+
statusCode: number;
|
|
4951
|
+
data: null;
|
|
4952
|
+
message: string;
|
|
4953
|
+
error: TResponseError;
|
|
4954
|
+
meta: TResponseMeta;
|
|
4955
|
+
} | {
|
|
4956
|
+
success: true;
|
|
4957
|
+
statusCode: number;
|
|
4958
|
+
data: {
|
|
4959
|
+
period: {
|
|
4960
|
+
startDate: string;
|
|
4961
|
+
endDate: string;
|
|
4962
|
+
};
|
|
4963
|
+
previousPeriod: {
|
|
4964
|
+
startDate: string;
|
|
4965
|
+
endDate: string;
|
|
4966
|
+
};
|
|
4967
|
+
revenue: {
|
|
4968
|
+
current: number;
|
|
4969
|
+
previous: number;
|
|
4970
|
+
changePercent: number | null;
|
|
4971
|
+
};
|
|
4972
|
+
orders: {
|
|
4973
|
+
current: number;
|
|
4974
|
+
previous: number;
|
|
4975
|
+
changePercent: number | null;
|
|
4976
|
+
};
|
|
4977
|
+
newCustomers: {
|
|
4978
|
+
current: number;
|
|
4979
|
+
previous: number;
|
|
4980
|
+
changePercent: number | null;
|
|
4981
|
+
};
|
|
4982
|
+
averageOrderValue: {
|
|
4983
|
+
current: number;
|
|
4984
|
+
previous: number;
|
|
4985
|
+
changePercent: number | null;
|
|
4986
|
+
};
|
|
4987
|
+
};
|
|
4988
|
+
message: null;
|
|
4989
|
+
error: null;
|
|
4990
|
+
meta: TResponseMeta;
|
|
4991
|
+
};
|
|
4992
|
+
422: {
|
|
4993
|
+
type: "validation";
|
|
4994
|
+
on: string;
|
|
4995
|
+
summary?: string;
|
|
4996
|
+
message?: string;
|
|
4997
|
+
found?: unknown;
|
|
4998
|
+
property?: string;
|
|
4999
|
+
expected?: string;
|
|
5000
|
+
};
|
|
5001
|
+
}>>) & {
|
|
5002
|
+
'~path': string;
|
|
5003
|
+
};
|
|
5004
|
+
} & {
|
|
5005
|
+
'~path': string;
|
|
5006
|
+
};
|
|
5007
|
+
"revenue-trend": {
|
|
5008
|
+
get: ((options: {
|
|
5009
|
+
fetch?: RequestInit | undefined;
|
|
5010
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
5011
|
+
headers?: {} | undefined;
|
|
5012
|
+
query: {
|
|
5013
|
+
interval: "day" | "week" | "month";
|
|
5014
|
+
startDate?: string | undefined;
|
|
5015
|
+
endDate?: string | undefined;
|
|
5016
|
+
};
|
|
5017
|
+
}) => Promise<Treaty.TreatyResponse<{
|
|
5018
|
+
200: {
|
|
5019
|
+
success: false;
|
|
5020
|
+
statusCode: number;
|
|
5021
|
+
data: null;
|
|
5022
|
+
message: string;
|
|
5023
|
+
error: TResponseError;
|
|
5024
|
+
meta: TResponseMeta;
|
|
5025
|
+
} | {
|
|
5026
|
+
success: true;
|
|
5027
|
+
statusCode: number;
|
|
5028
|
+
data: {
|
|
5029
|
+
interval: "day" | "week" | "month";
|
|
5030
|
+
series: {
|
|
5031
|
+
bucket: string;
|
|
5032
|
+
revenue: number;
|
|
5033
|
+
orderCount: number;
|
|
5034
|
+
}[];
|
|
5035
|
+
};
|
|
5036
|
+
message: null;
|
|
5037
|
+
error: null;
|
|
5038
|
+
meta: TResponseMeta;
|
|
5039
|
+
};
|
|
5040
|
+
422: {
|
|
5041
|
+
type: "validation";
|
|
5042
|
+
on: string;
|
|
5043
|
+
summary?: string;
|
|
5044
|
+
message?: string;
|
|
5045
|
+
found?: unknown;
|
|
5046
|
+
property?: string;
|
|
5047
|
+
expected?: string;
|
|
5048
|
+
};
|
|
5049
|
+
}>>) & {
|
|
5050
|
+
'~path': string;
|
|
5051
|
+
};
|
|
5052
|
+
} & {
|
|
3874
5053
|
'~path': string;
|
|
3875
5054
|
};
|
|
3876
|
-
|
|
3877
|
-
get: ((options
|
|
5055
|
+
"top-products": {
|
|
5056
|
+
get: ((options: {
|
|
3878
5057
|
fetch?: RequestInit | undefined;
|
|
3879
5058
|
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
3880
5059
|
headers?: {} | undefined;
|
|
3881
|
-
query
|
|
3882
|
-
|
|
5060
|
+
query: {
|
|
5061
|
+
limit: number;
|
|
5062
|
+
startDate?: string | undefined;
|
|
5063
|
+
endDate?: string | undefined;
|
|
5064
|
+
};
|
|
5065
|
+
}) => Promise<Treaty.TreatyResponse<{
|
|
3883
5066
|
200: {
|
|
3884
5067
|
success: false;
|
|
3885
5068
|
statusCode: number;
|
|
@@ -3890,74 +5073,42 @@ declare const _createClient: () => {
|
|
|
3890
5073
|
} | {
|
|
3891
5074
|
success: true;
|
|
3892
5075
|
statusCode: number;
|
|
3893
|
-
data:
|
|
5076
|
+
data: {
|
|
5077
|
+
productUuid: string | null;
|
|
5078
|
+
productName: string;
|
|
5079
|
+
unitsSold: number;
|
|
5080
|
+
revenue: number;
|
|
5081
|
+
}[];
|
|
3894
5082
|
message: null;
|
|
3895
5083
|
error: null;
|
|
3896
5084
|
meta: TResponseMeta;
|
|
3897
5085
|
};
|
|
5086
|
+
422: {
|
|
5087
|
+
type: "validation";
|
|
5088
|
+
on: string;
|
|
5089
|
+
summary?: string;
|
|
5090
|
+
message?: string;
|
|
5091
|
+
found?: unknown;
|
|
5092
|
+
property?: string;
|
|
5093
|
+
expected?: string;
|
|
5094
|
+
};
|
|
3898
5095
|
}>>) & {
|
|
3899
5096
|
'~path': string;
|
|
3900
5097
|
};
|
|
3901
5098
|
} & {
|
|
3902
5099
|
'~path': string;
|
|
3903
5100
|
};
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
name: string;
|
|
3907
|
-
exchangeRate: number;
|
|
3908
|
-
}, options?: {
|
|
3909
|
-
fetch?: RequestInit | undefined;
|
|
3910
|
-
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
3911
|
-
headers?: {} | undefined;
|
|
3912
|
-
query?: {} | undefined;
|
|
3913
|
-
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
3914
|
-
200: {
|
|
3915
|
-
success: false;
|
|
3916
|
-
statusCode: number;
|
|
3917
|
-
data: null;
|
|
3918
|
-
message: string;
|
|
3919
|
-
error: TResponseError;
|
|
3920
|
-
meta: TResponseMeta;
|
|
3921
|
-
} | {
|
|
3922
|
-
success: true;
|
|
3923
|
-
statusCode: number;
|
|
3924
|
-
data: {
|
|
3925
|
-
id: number;
|
|
3926
|
-
name: string;
|
|
3927
|
-
code: string;
|
|
3928
|
-
exchangeRate: number;
|
|
3929
|
-
createdAt: Date | null;
|
|
3930
|
-
updatedAt: Date | null;
|
|
3931
|
-
}[];
|
|
3932
|
-
message: null;
|
|
3933
|
-
error: null;
|
|
3934
|
-
meta: TResponseMeta;
|
|
3935
|
-
};
|
|
3936
|
-
422: {
|
|
3937
|
-
type: "validation";
|
|
3938
|
-
on: string;
|
|
3939
|
-
summary?: string;
|
|
3940
|
-
message?: string;
|
|
3941
|
-
found?: unknown;
|
|
3942
|
-
property?: string;
|
|
3943
|
-
expected?: string;
|
|
3944
|
-
};
|
|
3945
|
-
}>>) & {
|
|
3946
|
-
'~path': string;
|
|
3947
|
-
};
|
|
3948
|
-
bulk: {
|
|
3949
|
-
post: ((body: {
|
|
3950
|
-
currencies: {
|
|
3951
|
-
code: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHF" | "CLP" | "CNY" | "COP" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GGP" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "IMP" | "INR" | "IQD" | "IRR" | "ISK" | "JEP" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLE" | "SLL" | "SOS" | "SRD" | "STN" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TVD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "UYU" | "UZS" | "VED" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XCD" | "XDR" | "XOF" | "XPF" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
3952
|
-
name: string;
|
|
3953
|
-
exchangeRate: number;
|
|
3954
|
-
}[];
|
|
3955
|
-
}, options?: {
|
|
5101
|
+
"category-performance": {
|
|
5102
|
+
get: ((options: {
|
|
3956
5103
|
fetch?: RequestInit | undefined;
|
|
3957
5104
|
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
3958
5105
|
headers?: {} | undefined;
|
|
3959
|
-
query
|
|
3960
|
-
|
|
5106
|
+
query: {
|
|
5107
|
+
limit: number;
|
|
5108
|
+
startDate?: string | undefined;
|
|
5109
|
+
endDate?: string | undefined;
|
|
5110
|
+
};
|
|
5111
|
+
}) => Promise<Treaty.TreatyResponse<{
|
|
3961
5112
|
200: {
|
|
3962
5113
|
success: false;
|
|
3963
5114
|
statusCode: number;
|
|
@@ -3969,12 +5120,11 @@ declare const _createClient: () => {
|
|
|
3969
5120
|
success: true;
|
|
3970
5121
|
statusCode: number;
|
|
3971
5122
|
data: {
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
updatedAt: Date | null;
|
|
5123
|
+
categoryUuid: string | null;
|
|
5124
|
+
categoryName: string | null;
|
|
5125
|
+
revenue: number;
|
|
5126
|
+
unitsSold: number;
|
|
5127
|
+
estimatedMargin: number;
|
|
3978
5128
|
}[];
|
|
3979
5129
|
message: null;
|
|
3980
5130
|
error: null;
|
|
@@ -3992,28 +5142,132 @@ declare const _createClient: () => {
|
|
|
3992
5142
|
}>>) & {
|
|
3993
5143
|
'~path': string;
|
|
3994
5144
|
};
|
|
3995
|
-
|
|
5145
|
+
} & {
|
|
5146
|
+
'~path': string;
|
|
5147
|
+
};
|
|
5148
|
+
"customer-growth": {
|
|
5149
|
+
get: ((options: {
|
|
3996
5150
|
fetch?: RequestInit | undefined;
|
|
3997
5151
|
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
3998
5152
|
headers?: {} | undefined;
|
|
3999
5153
|
query: {
|
|
4000
|
-
|
|
5154
|
+
interval: "day" | "week" | "month";
|
|
5155
|
+
startDate?: string | undefined;
|
|
5156
|
+
endDate?: string | undefined;
|
|
4001
5157
|
};
|
|
4002
5158
|
}) => Promise<Treaty.TreatyResponse<{
|
|
4003
5159
|
200: {
|
|
4004
|
-
success:
|
|
5160
|
+
success: false;
|
|
4005
5161
|
statusCode: number;
|
|
4006
5162
|
data: null;
|
|
4007
5163
|
message: string;
|
|
5164
|
+
error: TResponseError;
|
|
5165
|
+
meta: TResponseMeta;
|
|
5166
|
+
} | {
|
|
5167
|
+
success: true;
|
|
5168
|
+
statusCode: number;
|
|
5169
|
+
data: {
|
|
5170
|
+
interval: "day" | "week" | "month";
|
|
5171
|
+
series: {
|
|
5172
|
+
bucket: string;
|
|
5173
|
+
newSignups: number;
|
|
5174
|
+
cumulativeTotal: number;
|
|
5175
|
+
}[];
|
|
5176
|
+
};
|
|
5177
|
+
message: null;
|
|
4008
5178
|
error: null;
|
|
4009
5179
|
meta: TResponseMeta;
|
|
5180
|
+
};
|
|
5181
|
+
422: {
|
|
5182
|
+
type: "validation";
|
|
5183
|
+
on: string;
|
|
5184
|
+
summary?: string;
|
|
5185
|
+
message?: string;
|
|
5186
|
+
found?: unknown;
|
|
5187
|
+
property?: string;
|
|
5188
|
+
expected?: string;
|
|
5189
|
+
};
|
|
5190
|
+
}>>) & {
|
|
5191
|
+
'~path': string;
|
|
5192
|
+
};
|
|
5193
|
+
} & {
|
|
5194
|
+
'~path': string;
|
|
5195
|
+
};
|
|
5196
|
+
"payment-methods": {
|
|
5197
|
+
get: ((options?: {
|
|
5198
|
+
fetch?: RequestInit | undefined;
|
|
5199
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
5200
|
+
headers?: {} | undefined;
|
|
5201
|
+
query?: {
|
|
5202
|
+
startDate?: string | undefined;
|
|
5203
|
+
endDate?: string | undefined;
|
|
5204
|
+
} | undefined;
|
|
5205
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
5206
|
+
200: {
|
|
5207
|
+
success: false;
|
|
5208
|
+
statusCode: number;
|
|
5209
|
+
data: null;
|
|
5210
|
+
message: string;
|
|
5211
|
+
error: TResponseError;
|
|
5212
|
+
meta: TResponseMeta;
|
|
4010
5213
|
} | {
|
|
5214
|
+
success: true;
|
|
5215
|
+
statusCode: number;
|
|
5216
|
+
data: {
|
|
5217
|
+
paymentMethod: string;
|
|
5218
|
+
transactionCount: number;
|
|
5219
|
+
totalAmount: number;
|
|
5220
|
+
}[];
|
|
5221
|
+
message: null;
|
|
5222
|
+
error: null;
|
|
5223
|
+
meta: TResponseMeta;
|
|
5224
|
+
};
|
|
5225
|
+
422: {
|
|
5226
|
+
type: "validation";
|
|
5227
|
+
on: string;
|
|
5228
|
+
summary?: string;
|
|
5229
|
+
message?: string;
|
|
5230
|
+
found?: unknown;
|
|
5231
|
+
property?: string;
|
|
5232
|
+
expected?: string;
|
|
5233
|
+
};
|
|
5234
|
+
}>>) & {
|
|
5235
|
+
'~path': string;
|
|
5236
|
+
};
|
|
5237
|
+
} & {
|
|
5238
|
+
'~path': string;
|
|
5239
|
+
};
|
|
5240
|
+
"revenue-by-payment-type": {
|
|
5241
|
+
get: ((options?: {
|
|
5242
|
+
fetch?: RequestInit | undefined;
|
|
5243
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
5244
|
+
headers?: {} | undefined;
|
|
5245
|
+
query?: {
|
|
5246
|
+
startDate?: string | undefined;
|
|
5247
|
+
endDate?: string | undefined;
|
|
5248
|
+
} | undefined;
|
|
5249
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
5250
|
+
200: {
|
|
4011
5251
|
success: false;
|
|
4012
5252
|
statusCode: number;
|
|
4013
5253
|
data: null;
|
|
4014
5254
|
message: string;
|
|
4015
5255
|
error: TResponseError;
|
|
4016
5256
|
meta: TResponseMeta;
|
|
5257
|
+
} | {
|
|
5258
|
+
success: true;
|
|
5259
|
+
statusCode: number;
|
|
5260
|
+
data: {
|
|
5261
|
+
total: number;
|
|
5262
|
+
byPaymentType: {
|
|
5263
|
+
paymentType: "OTHER" | "DEPOSIT" | "FULL_PAYMENT" | "PARTIAL_PAYMENT" | "FEE" | "ADJUSTMENT";
|
|
5264
|
+
transactionCount: number;
|
|
5265
|
+
totalAmount: number;
|
|
5266
|
+
}[];
|
|
5267
|
+
};
|
|
5268
|
+
message: null;
|
|
5269
|
+
error: null;
|
|
5270
|
+
meta: TResponseMeta;
|
|
4017
5271
|
};
|
|
4018
5272
|
422: {
|
|
4019
5273
|
type: "validation";
|
|
@@ -7303,6 +8557,7 @@ declare const _createClient: () => {
|
|
|
7303
8557
|
createdAt: Date;
|
|
7304
8558
|
updatedAt: Date;
|
|
7305
8559
|
completedAt: Date | null;
|
|
8560
|
+
actorUuid: string | null;
|
|
7306
8561
|
title: string;
|
|
7307
8562
|
content: string | null;
|
|
7308
8563
|
manifestUuid: string | null;
|
|
@@ -7310,7 +8565,6 @@ declare const _createClient: () => {
|
|
|
7310
8565
|
startedAt: Date;
|
|
7311
8566
|
category: "ORDER" | "PAYMENT" | "LOGISTICS";
|
|
7312
8567
|
isPublic: boolean;
|
|
7313
|
-
actorUuid: string | null;
|
|
7314
8568
|
metadata: unknown;
|
|
7315
8569
|
}[];
|
|
7316
8570
|
orderSurcharges: {
|
|
@@ -7325,6 +8579,19 @@ declare const _createClient: () => {
|
|
|
7325
8579
|
applyTo: "BEFORE_TAX" | "AFTER_TAX";
|
|
7326
8580
|
paymentUuid: string | null;
|
|
7327
8581
|
}[];
|
|
8582
|
+
orderCoupons: {
|
|
8583
|
+
uuid: string;
|
|
8584
|
+
status: "REFUNDED" | "APPLIED";
|
|
8585
|
+
createdAt: Date;
|
|
8586
|
+
code: string;
|
|
8587
|
+
discountType: "PERCENTAGE" | "FIXED_AMOUNT" | "FREE_SHIPPING";
|
|
8588
|
+
discountValue: number;
|
|
8589
|
+
maxDiscountAmount: number | null;
|
|
8590
|
+
couponUuid: string | null;
|
|
8591
|
+
discountAmount: number;
|
|
8592
|
+
customerId: string | null;
|
|
8593
|
+
guestIdentifier: string | null;
|
|
8594
|
+
}[];
|
|
7328
8595
|
payments: {
|
|
7329
8596
|
createdAt: Date;
|
|
7330
8597
|
updatedAt: Date;
|
|
@@ -8102,6 +9369,7 @@ declare const _createClient: () => {
|
|
|
8102
9369
|
createdAt: Date;
|
|
8103
9370
|
updatedAt: Date;
|
|
8104
9371
|
completedAt: Date | null;
|
|
9372
|
+
actorUuid: string | null;
|
|
8105
9373
|
title: string;
|
|
8106
9374
|
content: string | null;
|
|
8107
9375
|
manifestUuid: string | null;
|
|
@@ -8109,7 +9377,6 @@ declare const _createClient: () => {
|
|
|
8109
9377
|
startedAt: Date;
|
|
8110
9378
|
category: "ORDER" | "PAYMENT" | "LOGISTICS";
|
|
8111
9379
|
isPublic: boolean;
|
|
8112
|
-
actorUuid: string | null;
|
|
8113
9380
|
}[];
|
|
8114
9381
|
message: null;
|
|
8115
9382
|
error: null;
|
|
@@ -8220,13 +9487,17 @@ declare const _createClient: () => {
|
|
|
8220
9487
|
statusCode: number;
|
|
8221
9488
|
data: {
|
|
8222
9489
|
uuid: string;
|
|
9490
|
+
status: "REFUNDED" | "APPLIED";
|
|
8223
9491
|
orderUuid: string;
|
|
8224
9492
|
createdAt: Date;
|
|
8225
9493
|
code: string;
|
|
8226
9494
|
discountType: "PERCENTAGE" | "FIXED_AMOUNT" | "FREE_SHIPPING";
|
|
8227
9495
|
discountValue: number;
|
|
8228
9496
|
maxDiscountAmount: number | null;
|
|
9497
|
+
couponUuid: string | null;
|
|
8229
9498
|
discountAmount: number;
|
|
9499
|
+
customerId: string | null;
|
|
9500
|
+
guestIdentifier: string | null;
|
|
8230
9501
|
}[];
|
|
8231
9502
|
message: null;
|
|
8232
9503
|
error: null;
|
|
@@ -8426,6 +9697,7 @@ declare const _createClient: () => {
|
|
|
8426
9697
|
createdAt: Date;
|
|
8427
9698
|
updatedAt: Date;
|
|
8428
9699
|
completedAt: Date | null;
|
|
9700
|
+
actorUuid: string | null;
|
|
8429
9701
|
title: string;
|
|
8430
9702
|
content: string | null;
|
|
8431
9703
|
manifestUuid: string | null;
|
|
@@ -8433,7 +9705,6 @@ declare const _createClient: () => {
|
|
|
8433
9705
|
startedAt: Date;
|
|
8434
9706
|
category: "ORDER" | "PAYMENT" | "LOGISTICS";
|
|
8435
9707
|
isPublic: boolean;
|
|
8436
|
-
actorUuid: string | null;
|
|
8437
9708
|
metadata: unknown;
|
|
8438
9709
|
}[];
|
|
8439
9710
|
orderSurcharges: {
|
|
@@ -8448,6 +9719,19 @@ declare const _createClient: () => {
|
|
|
8448
9719
|
applyTo: "BEFORE_TAX" | "AFTER_TAX";
|
|
8449
9720
|
paymentUuid: string | null;
|
|
8450
9721
|
}[];
|
|
9722
|
+
orderCoupons: {
|
|
9723
|
+
uuid: string;
|
|
9724
|
+
status: "REFUNDED" | "APPLIED";
|
|
9725
|
+
createdAt: Date;
|
|
9726
|
+
code: string;
|
|
9727
|
+
discountType: "PERCENTAGE" | "FIXED_AMOUNT" | "FREE_SHIPPING";
|
|
9728
|
+
discountValue: number;
|
|
9729
|
+
maxDiscountAmount: number | null;
|
|
9730
|
+
couponUuid: string | null;
|
|
9731
|
+
discountAmount: number;
|
|
9732
|
+
customerId: string | null;
|
|
9733
|
+
guestIdentifier: string | null;
|
|
9734
|
+
}[];
|
|
8451
9735
|
payments: {
|
|
8452
9736
|
createdAt: Date;
|
|
8453
9737
|
updatedAt: Date;
|
|
@@ -9225,6 +10509,7 @@ declare const _createClient: () => {
|
|
|
9225
10509
|
createdAt: Date;
|
|
9226
10510
|
updatedAt: Date;
|
|
9227
10511
|
completedAt: Date | null;
|
|
10512
|
+
actorUuid: string | null;
|
|
9228
10513
|
title: string;
|
|
9229
10514
|
content: string | null;
|
|
9230
10515
|
manifestUuid: string | null;
|
|
@@ -9232,7 +10517,6 @@ declare const _createClient: () => {
|
|
|
9232
10517
|
startedAt: Date;
|
|
9233
10518
|
category: "ORDER" | "PAYMENT" | "LOGISTICS";
|
|
9234
10519
|
isPublic: boolean;
|
|
9235
|
-
actorUuid: string | null;
|
|
9236
10520
|
}[];
|
|
9237
10521
|
message: null;
|
|
9238
10522
|
error: null;
|
|
@@ -9343,13 +10627,17 @@ declare const _createClient: () => {
|
|
|
9343
10627
|
statusCode: number;
|
|
9344
10628
|
data: {
|
|
9345
10629
|
uuid: string;
|
|
10630
|
+
status: "REFUNDED" | "APPLIED";
|
|
9346
10631
|
orderUuid: string;
|
|
9347
10632
|
createdAt: Date;
|
|
9348
10633
|
code: string;
|
|
9349
10634
|
discountType: "PERCENTAGE" | "FIXED_AMOUNT" | "FREE_SHIPPING";
|
|
9350
10635
|
discountValue: number;
|
|
9351
10636
|
maxDiscountAmount: number | null;
|
|
10637
|
+
couponUuid: string | null;
|
|
9352
10638
|
discountAmount: number;
|
|
10639
|
+
customerId: string | null;
|
|
10640
|
+
guestIdentifier: string | null;
|
|
9353
10641
|
}[];
|
|
9354
10642
|
message: null;
|
|
9355
10643
|
error: null;
|
|
@@ -9544,8 +10832,12 @@ declare const _createClient: () => {
|
|
|
9544
10832
|
headers?: {} | undefined;
|
|
9545
10833
|
query?: {
|
|
9546
10834
|
search?: string | undefined;
|
|
10835
|
+
customerEmail?: string | undefined;
|
|
9547
10836
|
limit?: number | undefined;
|
|
9548
10837
|
page?: number | undefined;
|
|
10838
|
+
isGuest?: boolean | undefined;
|
|
10839
|
+
customerUuid?: string | undefined;
|
|
10840
|
+
excludeUserUuid?: string | undefined;
|
|
9549
10841
|
} | undefined;
|
|
9550
10842
|
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
9551
10843
|
200: {
|
|
@@ -9868,6 +11160,7 @@ declare const _createClient: () => {
|
|
|
9868
11160
|
productName?: string | undefined;
|
|
9869
11161
|
originCountry?: string | undefined;
|
|
9870
11162
|
vendorName?: string | undefined;
|
|
11163
|
+
orderStatus?: "DRAFT" | "PENDING" | "CONFIRMED" | "PROCESSING" | "COMPLETED" | "CANCELLED" | undefined;
|
|
9871
11164
|
limit?: number | undefined;
|
|
9872
11165
|
page?: number | undefined;
|
|
9873
11166
|
createdAtFrom?: string | undefined;
|
|
@@ -15400,9 +16693,63 @@ declare const _createClient: () => {
|
|
|
15400
16693
|
};
|
|
15401
16694
|
"reset-password": {
|
|
15402
16695
|
post: ((body: {
|
|
15403
|
-
email: string;
|
|
15404
|
-
otp: string;
|
|
15405
|
-
password: string;
|
|
16696
|
+
email: string;
|
|
16697
|
+
otp: string;
|
|
16698
|
+
password: string;
|
|
16699
|
+
}, options?: {
|
|
16700
|
+
fetch?: RequestInit | undefined;
|
|
16701
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
16702
|
+
headers?: {} | undefined;
|
|
16703
|
+
query?: {} | undefined;
|
|
16704
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
16705
|
+
200: {
|
|
16706
|
+
success: true;
|
|
16707
|
+
statusCode: number;
|
|
16708
|
+
data: null;
|
|
16709
|
+
message: string;
|
|
16710
|
+
error: null;
|
|
16711
|
+
meta: TResponseMeta;
|
|
16712
|
+
} | {
|
|
16713
|
+
success: false;
|
|
16714
|
+
statusCode: number;
|
|
16715
|
+
data: null;
|
|
16716
|
+
message: string;
|
|
16717
|
+
error: TResponseError;
|
|
16718
|
+
meta: TResponseMeta;
|
|
16719
|
+
};
|
|
16720
|
+
422: {
|
|
16721
|
+
type: "validation";
|
|
16722
|
+
on: string;
|
|
16723
|
+
summary?: string;
|
|
16724
|
+
message?: string;
|
|
16725
|
+
found?: unknown;
|
|
16726
|
+
property?: string;
|
|
16727
|
+
expected?: string;
|
|
16728
|
+
};
|
|
16729
|
+
}>>) & {
|
|
16730
|
+
'~path': string;
|
|
16731
|
+
};
|
|
16732
|
+
} & {
|
|
16733
|
+
'~path': string;
|
|
16734
|
+
};
|
|
16735
|
+
} & {
|
|
16736
|
+
'~path': string;
|
|
16737
|
+
};
|
|
16738
|
+
coupons: {
|
|
16739
|
+
validate: {
|
|
16740
|
+
post: ((body: {
|
|
16741
|
+
code: string;
|
|
16742
|
+
subtotal: number;
|
|
16743
|
+
items: {
|
|
16744
|
+
productUuid: string;
|
|
16745
|
+
quantity: number;
|
|
16746
|
+
price: number;
|
|
16747
|
+
categoryUuid?: string | undefined;
|
|
16748
|
+
brandUuid?: string | undefined;
|
|
16749
|
+
}[];
|
|
16750
|
+
isFirstOrder: boolean;
|
|
16751
|
+
shippingFee?: number | undefined;
|
|
16752
|
+
guestIdentifier?: string | undefined;
|
|
15406
16753
|
}, options?: {
|
|
15407
16754
|
fetch?: RequestInit | undefined;
|
|
15408
16755
|
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
@@ -15410,18 +16757,28 @@ declare const _createClient: () => {
|
|
|
15410
16757
|
query?: {} | undefined;
|
|
15411
16758
|
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
15412
16759
|
200: {
|
|
15413
|
-
success:
|
|
16760
|
+
success: false;
|
|
15414
16761
|
statusCode: number;
|
|
15415
16762
|
data: null;
|
|
15416
16763
|
message: string;
|
|
15417
|
-
error:
|
|
16764
|
+
error: TResponseError;
|
|
15418
16765
|
meta: TResponseMeta;
|
|
15419
16766
|
} | {
|
|
15420
|
-
success:
|
|
16767
|
+
success: true;
|
|
15421
16768
|
statusCode: number;
|
|
15422
|
-
data:
|
|
15423
|
-
|
|
15424
|
-
|
|
16769
|
+
data: {
|
|
16770
|
+
coupon: {
|
|
16771
|
+
code: string;
|
|
16772
|
+
name: string;
|
|
16773
|
+
discountType: "PERCENTAGE" | "FIXED_AMOUNT" | "FREE_SHIPPING";
|
|
16774
|
+
discountValue: number;
|
|
16775
|
+
scopeType: "ORDER" | "PRODUCT" | "SHIPPING";
|
|
16776
|
+
};
|
|
16777
|
+
discountPreview: number;
|
|
16778
|
+
isValid: boolean;
|
|
16779
|
+
};
|
|
16780
|
+
message: null;
|
|
16781
|
+
error: null;
|
|
15425
16782
|
meta: TResponseMeta;
|
|
15426
16783
|
};
|
|
15427
16784
|
422: {
|
|
@@ -15900,6 +17257,16 @@ declare const _createClient: () => {
|
|
|
15900
17257
|
category: "ORDER" | "PAYMENT" | "LOGISTICS";
|
|
15901
17258
|
metadata: unknown;
|
|
15902
17259
|
}[];
|
|
17260
|
+
orderCoupons: {
|
|
17261
|
+
uuid: string;
|
|
17262
|
+
status: "REFUNDED" | "APPLIED";
|
|
17263
|
+
createdAt: Date;
|
|
17264
|
+
code: string;
|
|
17265
|
+
discountType: "PERCENTAGE" | "FIXED_AMOUNT" | "FREE_SHIPPING";
|
|
17266
|
+
discountValue: number;
|
|
17267
|
+
maxDiscountAmount: number | null;
|
|
17268
|
+
discountAmount: number;
|
|
17269
|
+
}[];
|
|
15903
17270
|
payments: {
|
|
15904
17271
|
id: string;
|
|
15905
17272
|
paymentType: "OTHER" | "DEPOSIT" | "FULL_PAYMENT" | "PARTIAL_PAYMENT" | "FEE" | "ADJUSTMENT";
|
|
@@ -15968,6 +17335,123 @@ declare const _createClient: () => {
|
|
|
15968
17335
|
}>>) & {
|
|
15969
17336
|
'~path': string;
|
|
15970
17337
|
};
|
|
17338
|
+
coupons: ((params: {
|
|
17339
|
+
orderCouponUuid: string | number;
|
|
17340
|
+
}) => {
|
|
17341
|
+
delete: ((body?: {} | undefined, options?: {
|
|
17342
|
+
fetch?: RequestInit | undefined;
|
|
17343
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
17344
|
+
headers?: {} | undefined;
|
|
17345
|
+
query?: {
|
|
17346
|
+
token?: string | undefined;
|
|
17347
|
+
} | undefined;
|
|
17348
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
17349
|
+
200: {
|
|
17350
|
+
success: true;
|
|
17351
|
+
statusCode: number;
|
|
17352
|
+
data: null;
|
|
17353
|
+
message: string;
|
|
17354
|
+
error: null;
|
|
17355
|
+
meta: TResponseMeta;
|
|
17356
|
+
} | {
|
|
17357
|
+
success: false;
|
|
17358
|
+
statusCode: number;
|
|
17359
|
+
data: null;
|
|
17360
|
+
message: string;
|
|
17361
|
+
error: TResponseError;
|
|
17362
|
+
meta: TResponseMeta;
|
|
17363
|
+
};
|
|
17364
|
+
422: {
|
|
17365
|
+
type: "validation";
|
|
17366
|
+
on: string;
|
|
17367
|
+
summary?: string;
|
|
17368
|
+
message?: string;
|
|
17369
|
+
found?: unknown;
|
|
17370
|
+
property?: string;
|
|
17371
|
+
expected?: string;
|
|
17372
|
+
};
|
|
17373
|
+
}>>) & {
|
|
17374
|
+
'~path': string;
|
|
17375
|
+
};
|
|
17376
|
+
'~path': string;
|
|
17377
|
+
} & {
|
|
17378
|
+
delete: ((body?: {} | undefined, options?: {
|
|
17379
|
+
fetch?: RequestInit | undefined;
|
|
17380
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
17381
|
+
headers?: {} | undefined;
|
|
17382
|
+
query?: {
|
|
17383
|
+
token?: string | undefined;
|
|
17384
|
+
} | undefined;
|
|
17385
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
17386
|
+
200: {
|
|
17387
|
+
success: true;
|
|
17388
|
+
statusCode: number;
|
|
17389
|
+
data: null;
|
|
17390
|
+
message: string;
|
|
17391
|
+
error: null;
|
|
17392
|
+
meta: TResponseMeta;
|
|
17393
|
+
} | {
|
|
17394
|
+
success: false;
|
|
17395
|
+
statusCode: number;
|
|
17396
|
+
data: null;
|
|
17397
|
+
message: string;
|
|
17398
|
+
error: TResponseError;
|
|
17399
|
+
meta: TResponseMeta;
|
|
17400
|
+
};
|
|
17401
|
+
422: {
|
|
17402
|
+
type: "validation";
|
|
17403
|
+
on: string;
|
|
17404
|
+
summary?: string;
|
|
17405
|
+
message?: string;
|
|
17406
|
+
found?: unknown;
|
|
17407
|
+
property?: string;
|
|
17408
|
+
expected?: string;
|
|
17409
|
+
};
|
|
17410
|
+
}>>) & {
|
|
17411
|
+
'~path': string;
|
|
17412
|
+
};
|
|
17413
|
+
}) & {
|
|
17414
|
+
post: ((body: {
|
|
17415
|
+
guestIdentifier?: string | undefined;
|
|
17416
|
+
couponCode: string;
|
|
17417
|
+
}, options?: {
|
|
17418
|
+
fetch?: RequestInit | undefined;
|
|
17419
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
17420
|
+
headers?: {} | undefined;
|
|
17421
|
+
query?: {
|
|
17422
|
+
token?: string | undefined;
|
|
17423
|
+
} | undefined;
|
|
17424
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
17425
|
+
200: {
|
|
17426
|
+
success: true;
|
|
17427
|
+
statusCode: number;
|
|
17428
|
+
data: null;
|
|
17429
|
+
message: string;
|
|
17430
|
+
error: null;
|
|
17431
|
+
meta: TResponseMeta;
|
|
17432
|
+
} | {
|
|
17433
|
+
success: false;
|
|
17434
|
+
statusCode: number;
|
|
17435
|
+
data: null;
|
|
17436
|
+
message: string;
|
|
17437
|
+
error: TResponseError;
|
|
17438
|
+
meta: TResponseMeta;
|
|
17439
|
+
};
|
|
17440
|
+
422: {
|
|
17441
|
+
type: "validation";
|
|
17442
|
+
on: string;
|
|
17443
|
+
summary?: string;
|
|
17444
|
+
message?: string;
|
|
17445
|
+
found?: unknown;
|
|
17446
|
+
property?: string;
|
|
17447
|
+
expected?: string;
|
|
17448
|
+
};
|
|
17449
|
+
}>>) & {
|
|
17450
|
+
'~path': string;
|
|
17451
|
+
};
|
|
17452
|
+
} & {
|
|
17453
|
+
'~path': string;
|
|
17454
|
+
};
|
|
15971
17455
|
'~path': string;
|
|
15972
17456
|
} & {
|
|
15973
17457
|
get: ((options?: {
|
|
@@ -16069,6 +17553,16 @@ declare const _createClient: () => {
|
|
|
16069
17553
|
category: "ORDER" | "PAYMENT" | "LOGISTICS";
|
|
16070
17554
|
metadata: unknown;
|
|
16071
17555
|
}[];
|
|
17556
|
+
orderCoupons: {
|
|
17557
|
+
uuid: string;
|
|
17558
|
+
status: "REFUNDED" | "APPLIED";
|
|
17559
|
+
createdAt: Date;
|
|
17560
|
+
code: string;
|
|
17561
|
+
discountType: "PERCENTAGE" | "FIXED_AMOUNT" | "FREE_SHIPPING";
|
|
17562
|
+
discountValue: number;
|
|
17563
|
+
maxDiscountAmount: number | null;
|
|
17564
|
+
discountAmount: number;
|
|
17565
|
+
}[];
|
|
16072
17566
|
payments: {
|
|
16073
17567
|
id: string;
|
|
16074
17568
|
paymentType: "OTHER" | "DEPOSIT" | "FULL_PAYMENT" | "PARTIAL_PAYMENT" | "FEE" | "ADJUSTMENT";
|
|
@@ -16137,6 +17631,123 @@ declare const _createClient: () => {
|
|
|
16137
17631
|
}>>) & {
|
|
16138
17632
|
'~path': string;
|
|
16139
17633
|
};
|
|
17634
|
+
coupons: ((params: {
|
|
17635
|
+
orderCouponUuid: string | number;
|
|
17636
|
+
}) => {
|
|
17637
|
+
delete: ((body?: {} | undefined, options?: {
|
|
17638
|
+
fetch?: RequestInit | undefined;
|
|
17639
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
17640
|
+
headers?: {} | undefined;
|
|
17641
|
+
query?: {
|
|
17642
|
+
token?: string | undefined;
|
|
17643
|
+
} | undefined;
|
|
17644
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
17645
|
+
200: {
|
|
17646
|
+
success: true;
|
|
17647
|
+
statusCode: number;
|
|
17648
|
+
data: null;
|
|
17649
|
+
message: string;
|
|
17650
|
+
error: null;
|
|
17651
|
+
meta: TResponseMeta;
|
|
17652
|
+
} | {
|
|
17653
|
+
success: false;
|
|
17654
|
+
statusCode: number;
|
|
17655
|
+
data: null;
|
|
17656
|
+
message: string;
|
|
17657
|
+
error: TResponseError;
|
|
17658
|
+
meta: TResponseMeta;
|
|
17659
|
+
};
|
|
17660
|
+
422: {
|
|
17661
|
+
type: "validation";
|
|
17662
|
+
on: string;
|
|
17663
|
+
summary?: string;
|
|
17664
|
+
message?: string;
|
|
17665
|
+
found?: unknown;
|
|
17666
|
+
property?: string;
|
|
17667
|
+
expected?: string;
|
|
17668
|
+
};
|
|
17669
|
+
}>>) & {
|
|
17670
|
+
'~path': string;
|
|
17671
|
+
};
|
|
17672
|
+
'~path': string;
|
|
17673
|
+
} & {
|
|
17674
|
+
delete: ((body?: {} | undefined, options?: {
|
|
17675
|
+
fetch?: RequestInit | undefined;
|
|
17676
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
17677
|
+
headers?: {} | undefined;
|
|
17678
|
+
query?: {
|
|
17679
|
+
token?: string | undefined;
|
|
17680
|
+
} | undefined;
|
|
17681
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
17682
|
+
200: {
|
|
17683
|
+
success: true;
|
|
17684
|
+
statusCode: number;
|
|
17685
|
+
data: null;
|
|
17686
|
+
message: string;
|
|
17687
|
+
error: null;
|
|
17688
|
+
meta: TResponseMeta;
|
|
17689
|
+
} | {
|
|
17690
|
+
success: false;
|
|
17691
|
+
statusCode: number;
|
|
17692
|
+
data: null;
|
|
17693
|
+
message: string;
|
|
17694
|
+
error: TResponseError;
|
|
17695
|
+
meta: TResponseMeta;
|
|
17696
|
+
};
|
|
17697
|
+
422: {
|
|
17698
|
+
type: "validation";
|
|
17699
|
+
on: string;
|
|
17700
|
+
summary?: string;
|
|
17701
|
+
message?: string;
|
|
17702
|
+
found?: unknown;
|
|
17703
|
+
property?: string;
|
|
17704
|
+
expected?: string;
|
|
17705
|
+
};
|
|
17706
|
+
}>>) & {
|
|
17707
|
+
'~path': string;
|
|
17708
|
+
};
|
|
17709
|
+
}) & {
|
|
17710
|
+
post: ((body: {
|
|
17711
|
+
guestIdentifier?: string | undefined;
|
|
17712
|
+
couponCode: string;
|
|
17713
|
+
}, options?: {
|
|
17714
|
+
fetch?: RequestInit | undefined;
|
|
17715
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
17716
|
+
headers?: {} | undefined;
|
|
17717
|
+
query?: {
|
|
17718
|
+
token?: string | undefined;
|
|
17719
|
+
} | undefined;
|
|
17720
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
17721
|
+
200: {
|
|
17722
|
+
success: true;
|
|
17723
|
+
statusCode: number;
|
|
17724
|
+
data: null;
|
|
17725
|
+
message: string;
|
|
17726
|
+
error: null;
|
|
17727
|
+
meta: TResponseMeta;
|
|
17728
|
+
} | {
|
|
17729
|
+
success: false;
|
|
17730
|
+
statusCode: number;
|
|
17731
|
+
data: null;
|
|
17732
|
+
message: string;
|
|
17733
|
+
error: TResponseError;
|
|
17734
|
+
meta: TResponseMeta;
|
|
17735
|
+
};
|
|
17736
|
+
422: {
|
|
17737
|
+
type: "validation";
|
|
17738
|
+
on: string;
|
|
17739
|
+
summary?: string;
|
|
17740
|
+
message?: string;
|
|
17741
|
+
found?: unknown;
|
|
17742
|
+
property?: string;
|
|
17743
|
+
expected?: string;
|
|
17744
|
+
};
|
|
17745
|
+
}>>) & {
|
|
17746
|
+
'~path': string;
|
|
17747
|
+
};
|
|
17748
|
+
} & {
|
|
17749
|
+
'~path': string;
|
|
17750
|
+
};
|
|
16140
17751
|
}) & {
|
|
16141
17752
|
get: ((options?: {
|
|
16142
17753
|
fetch?: RequestInit | undefined;
|
|
@@ -16380,5 +17991,5 @@ declare class ClientApi {
|
|
|
16380
17991
|
private _onUnauthorized?;
|
|
16381
17992
|
}
|
|
16382
17993
|
//#endregion
|
|
16383
|
-
export { ClientApi, type ECartStatus, type ECartType, type ECountry, type EDimensionUnit, type EMediaEntityType, type EMimeType, type EProductInventoryStatus, type EProductStatus, type EProvider, type ERole, type EWeightUnit, type TResponse, type TResponseError, type TUser };
|
|
17994
|
+
export { ClientApi, type ECartStatus, type ECartType, type ECountry, type ECouponDiscountType, type ECouponScopeType, type EDimensionUnit, type EMediaEntityType, type EMimeType, type EProductInventoryStatus, type EProductStatus, type EProvider, type ERole, type EWeightUnit, type TResponse, type TResponseError, type TUser };
|
|
16384
17995
|
//# sourceMappingURL=index.d.cts.map
|