@customafk/lunas-api-sdk 0.0.81 → 0.0.82
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 +1326 -132
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +1326 -132
- package/dist/index.d.mts.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
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: {
|
|
@@ -7303,6 +8142,7 @@ declare const _createClient: () => {
|
|
|
7303
8142
|
createdAt: Date;
|
|
7304
8143
|
updatedAt: Date;
|
|
7305
8144
|
completedAt: Date | null;
|
|
8145
|
+
actorUuid: string | null;
|
|
7306
8146
|
title: string;
|
|
7307
8147
|
content: string | null;
|
|
7308
8148
|
manifestUuid: string | null;
|
|
@@ -7310,7 +8150,6 @@ declare const _createClient: () => {
|
|
|
7310
8150
|
startedAt: Date;
|
|
7311
8151
|
category: "ORDER" | "PAYMENT" | "LOGISTICS";
|
|
7312
8152
|
isPublic: boolean;
|
|
7313
|
-
actorUuid: string | null;
|
|
7314
8153
|
metadata: unknown;
|
|
7315
8154
|
}[];
|
|
7316
8155
|
orderSurcharges: {
|
|
@@ -7325,6 +8164,19 @@ declare const _createClient: () => {
|
|
|
7325
8164
|
applyTo: "BEFORE_TAX" | "AFTER_TAX";
|
|
7326
8165
|
paymentUuid: string | null;
|
|
7327
8166
|
}[];
|
|
8167
|
+
orderCoupons: {
|
|
8168
|
+
uuid: string;
|
|
8169
|
+
status: "REFUNDED" | "APPLIED";
|
|
8170
|
+
createdAt: Date;
|
|
8171
|
+
code: string;
|
|
8172
|
+
discountType: "PERCENTAGE" | "FIXED_AMOUNT" | "FREE_SHIPPING";
|
|
8173
|
+
discountValue: number;
|
|
8174
|
+
maxDiscountAmount: number | null;
|
|
8175
|
+
couponUuid: string | null;
|
|
8176
|
+
discountAmount: number;
|
|
8177
|
+
customerId: string | null;
|
|
8178
|
+
guestIdentifier: string | null;
|
|
8179
|
+
}[];
|
|
7328
8180
|
payments: {
|
|
7329
8181
|
createdAt: Date;
|
|
7330
8182
|
updatedAt: Date;
|
|
@@ -8102,6 +8954,7 @@ declare const _createClient: () => {
|
|
|
8102
8954
|
createdAt: Date;
|
|
8103
8955
|
updatedAt: Date;
|
|
8104
8956
|
completedAt: Date | null;
|
|
8957
|
+
actorUuid: string | null;
|
|
8105
8958
|
title: string;
|
|
8106
8959
|
content: string | null;
|
|
8107
8960
|
manifestUuid: string | null;
|
|
@@ -8109,7 +8962,6 @@ declare const _createClient: () => {
|
|
|
8109
8962
|
startedAt: Date;
|
|
8110
8963
|
category: "ORDER" | "PAYMENT" | "LOGISTICS";
|
|
8111
8964
|
isPublic: boolean;
|
|
8112
|
-
actorUuid: string | null;
|
|
8113
8965
|
}[];
|
|
8114
8966
|
message: null;
|
|
8115
8967
|
error: null;
|
|
@@ -8220,13 +9072,17 @@ declare const _createClient: () => {
|
|
|
8220
9072
|
statusCode: number;
|
|
8221
9073
|
data: {
|
|
8222
9074
|
uuid: string;
|
|
9075
|
+
status: "REFUNDED" | "APPLIED";
|
|
8223
9076
|
orderUuid: string;
|
|
8224
9077
|
createdAt: Date;
|
|
8225
9078
|
code: string;
|
|
8226
9079
|
discountType: "PERCENTAGE" | "FIXED_AMOUNT" | "FREE_SHIPPING";
|
|
8227
9080
|
discountValue: number;
|
|
8228
9081
|
maxDiscountAmount: number | null;
|
|
9082
|
+
couponUuid: string | null;
|
|
8229
9083
|
discountAmount: number;
|
|
9084
|
+
customerId: string | null;
|
|
9085
|
+
guestIdentifier: string | null;
|
|
8230
9086
|
}[];
|
|
8231
9087
|
message: null;
|
|
8232
9088
|
error: null;
|
|
@@ -8426,6 +9282,7 @@ declare const _createClient: () => {
|
|
|
8426
9282
|
createdAt: Date;
|
|
8427
9283
|
updatedAt: Date;
|
|
8428
9284
|
completedAt: Date | null;
|
|
9285
|
+
actorUuid: string | null;
|
|
8429
9286
|
title: string;
|
|
8430
9287
|
content: string | null;
|
|
8431
9288
|
manifestUuid: string | null;
|
|
@@ -8433,7 +9290,6 @@ declare const _createClient: () => {
|
|
|
8433
9290
|
startedAt: Date;
|
|
8434
9291
|
category: "ORDER" | "PAYMENT" | "LOGISTICS";
|
|
8435
9292
|
isPublic: boolean;
|
|
8436
|
-
actorUuid: string | null;
|
|
8437
9293
|
metadata: unknown;
|
|
8438
9294
|
}[];
|
|
8439
9295
|
orderSurcharges: {
|
|
@@ -8448,6 +9304,19 @@ declare const _createClient: () => {
|
|
|
8448
9304
|
applyTo: "BEFORE_TAX" | "AFTER_TAX";
|
|
8449
9305
|
paymentUuid: string | null;
|
|
8450
9306
|
}[];
|
|
9307
|
+
orderCoupons: {
|
|
9308
|
+
uuid: string;
|
|
9309
|
+
status: "REFUNDED" | "APPLIED";
|
|
9310
|
+
createdAt: Date;
|
|
9311
|
+
code: string;
|
|
9312
|
+
discountType: "PERCENTAGE" | "FIXED_AMOUNT" | "FREE_SHIPPING";
|
|
9313
|
+
discountValue: number;
|
|
9314
|
+
maxDiscountAmount: number | null;
|
|
9315
|
+
couponUuid: string | null;
|
|
9316
|
+
discountAmount: number;
|
|
9317
|
+
customerId: string | null;
|
|
9318
|
+
guestIdentifier: string | null;
|
|
9319
|
+
}[];
|
|
8451
9320
|
payments: {
|
|
8452
9321
|
createdAt: Date;
|
|
8453
9322
|
updatedAt: Date;
|
|
@@ -9225,6 +10094,7 @@ declare const _createClient: () => {
|
|
|
9225
10094
|
createdAt: Date;
|
|
9226
10095
|
updatedAt: Date;
|
|
9227
10096
|
completedAt: Date | null;
|
|
10097
|
+
actorUuid: string | null;
|
|
9228
10098
|
title: string;
|
|
9229
10099
|
content: string | null;
|
|
9230
10100
|
manifestUuid: string | null;
|
|
@@ -9232,7 +10102,6 @@ declare const _createClient: () => {
|
|
|
9232
10102
|
startedAt: Date;
|
|
9233
10103
|
category: "ORDER" | "PAYMENT" | "LOGISTICS";
|
|
9234
10104
|
isPublic: boolean;
|
|
9235
|
-
actorUuid: string | null;
|
|
9236
10105
|
}[];
|
|
9237
10106
|
message: null;
|
|
9238
10107
|
error: null;
|
|
@@ -9343,13 +10212,17 @@ declare const _createClient: () => {
|
|
|
9343
10212
|
statusCode: number;
|
|
9344
10213
|
data: {
|
|
9345
10214
|
uuid: string;
|
|
10215
|
+
status: "REFUNDED" | "APPLIED";
|
|
9346
10216
|
orderUuid: string;
|
|
9347
10217
|
createdAt: Date;
|
|
9348
10218
|
code: string;
|
|
9349
10219
|
discountType: "PERCENTAGE" | "FIXED_AMOUNT" | "FREE_SHIPPING";
|
|
9350
10220
|
discountValue: number;
|
|
9351
10221
|
maxDiscountAmount: number | null;
|
|
10222
|
+
couponUuid: string | null;
|
|
9352
10223
|
discountAmount: number;
|
|
10224
|
+
customerId: string | null;
|
|
10225
|
+
guestIdentifier: string | null;
|
|
9353
10226
|
}[];
|
|
9354
10227
|
message: null;
|
|
9355
10228
|
error: null;
|
|
@@ -9546,6 +10419,8 @@ declare const _createClient: () => {
|
|
|
9546
10419
|
search?: string | undefined;
|
|
9547
10420
|
limit?: number | undefined;
|
|
9548
10421
|
page?: number | undefined;
|
|
10422
|
+
isGuest?: boolean | undefined;
|
|
10423
|
+
customerUuid?: string | undefined;
|
|
9549
10424
|
} | undefined;
|
|
9550
10425
|
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
9551
10426
|
200: {
|
|
@@ -9868,6 +10743,7 @@ declare const _createClient: () => {
|
|
|
9868
10743
|
productName?: string | undefined;
|
|
9869
10744
|
originCountry?: string | undefined;
|
|
9870
10745
|
vendorName?: string | undefined;
|
|
10746
|
+
orderStatus?: "DRAFT" | "PENDING" | "CONFIRMED" | "PROCESSING" | "COMPLETED" | "CANCELLED" | undefined;
|
|
9871
10747
|
limit?: number | undefined;
|
|
9872
10748
|
page?: number | undefined;
|
|
9873
10749
|
createdAtFrom?: string | undefined;
|
|
@@ -15400,9 +16276,63 @@ declare const _createClient: () => {
|
|
|
15400
16276
|
};
|
|
15401
16277
|
"reset-password": {
|
|
15402
16278
|
post: ((body: {
|
|
15403
|
-
email: string;
|
|
15404
|
-
otp: string;
|
|
15405
|
-
password: string;
|
|
16279
|
+
email: string;
|
|
16280
|
+
otp: string;
|
|
16281
|
+
password: string;
|
|
16282
|
+
}, options?: {
|
|
16283
|
+
fetch?: RequestInit | undefined;
|
|
16284
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
16285
|
+
headers?: {} | undefined;
|
|
16286
|
+
query?: {} | undefined;
|
|
16287
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
16288
|
+
200: {
|
|
16289
|
+
success: true;
|
|
16290
|
+
statusCode: number;
|
|
16291
|
+
data: null;
|
|
16292
|
+
message: string;
|
|
16293
|
+
error: null;
|
|
16294
|
+
meta: TResponseMeta;
|
|
16295
|
+
} | {
|
|
16296
|
+
success: false;
|
|
16297
|
+
statusCode: number;
|
|
16298
|
+
data: null;
|
|
16299
|
+
message: string;
|
|
16300
|
+
error: TResponseError;
|
|
16301
|
+
meta: TResponseMeta;
|
|
16302
|
+
};
|
|
16303
|
+
422: {
|
|
16304
|
+
type: "validation";
|
|
16305
|
+
on: string;
|
|
16306
|
+
summary?: string;
|
|
16307
|
+
message?: string;
|
|
16308
|
+
found?: unknown;
|
|
16309
|
+
property?: string;
|
|
16310
|
+
expected?: string;
|
|
16311
|
+
};
|
|
16312
|
+
}>>) & {
|
|
16313
|
+
'~path': string;
|
|
16314
|
+
};
|
|
16315
|
+
} & {
|
|
16316
|
+
'~path': string;
|
|
16317
|
+
};
|
|
16318
|
+
} & {
|
|
16319
|
+
'~path': string;
|
|
16320
|
+
};
|
|
16321
|
+
coupons: {
|
|
16322
|
+
validate: {
|
|
16323
|
+
post: ((body: {
|
|
16324
|
+
code: string;
|
|
16325
|
+
subtotal: number;
|
|
16326
|
+
items: {
|
|
16327
|
+
productUuid: string;
|
|
16328
|
+
quantity: number;
|
|
16329
|
+
price: number;
|
|
16330
|
+
categoryUuid?: string | undefined;
|
|
16331
|
+
brandUuid?: string | undefined;
|
|
16332
|
+
}[];
|
|
16333
|
+
isFirstOrder: boolean;
|
|
16334
|
+
shippingFee?: number | undefined;
|
|
16335
|
+
guestIdentifier?: string | undefined;
|
|
15406
16336
|
}, options?: {
|
|
15407
16337
|
fetch?: RequestInit | undefined;
|
|
15408
16338
|
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
@@ -15410,18 +16340,28 @@ declare const _createClient: () => {
|
|
|
15410
16340
|
query?: {} | undefined;
|
|
15411
16341
|
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
15412
16342
|
200: {
|
|
15413
|
-
success:
|
|
16343
|
+
success: false;
|
|
15414
16344
|
statusCode: number;
|
|
15415
16345
|
data: null;
|
|
15416
16346
|
message: string;
|
|
15417
|
-
error:
|
|
16347
|
+
error: TResponseError;
|
|
15418
16348
|
meta: TResponseMeta;
|
|
15419
16349
|
} | {
|
|
15420
|
-
success:
|
|
16350
|
+
success: true;
|
|
15421
16351
|
statusCode: number;
|
|
15422
|
-
data:
|
|
15423
|
-
|
|
15424
|
-
|
|
16352
|
+
data: {
|
|
16353
|
+
coupon: {
|
|
16354
|
+
code: string;
|
|
16355
|
+
name: string;
|
|
16356
|
+
discountType: "PERCENTAGE" | "FIXED_AMOUNT" | "FREE_SHIPPING";
|
|
16357
|
+
discountValue: number;
|
|
16358
|
+
scopeType: "ORDER" | "PRODUCT" | "SHIPPING";
|
|
16359
|
+
};
|
|
16360
|
+
discountPreview: number;
|
|
16361
|
+
isValid: boolean;
|
|
16362
|
+
};
|
|
16363
|
+
message: null;
|
|
16364
|
+
error: null;
|
|
15425
16365
|
meta: TResponseMeta;
|
|
15426
16366
|
};
|
|
15427
16367
|
422: {
|
|
@@ -15900,6 +16840,16 @@ declare const _createClient: () => {
|
|
|
15900
16840
|
category: "ORDER" | "PAYMENT" | "LOGISTICS";
|
|
15901
16841
|
metadata: unknown;
|
|
15902
16842
|
}[];
|
|
16843
|
+
orderCoupons: {
|
|
16844
|
+
uuid: string;
|
|
16845
|
+
status: "REFUNDED" | "APPLIED";
|
|
16846
|
+
createdAt: Date;
|
|
16847
|
+
code: string;
|
|
16848
|
+
discountType: "PERCENTAGE" | "FIXED_AMOUNT" | "FREE_SHIPPING";
|
|
16849
|
+
discountValue: number;
|
|
16850
|
+
maxDiscountAmount: number | null;
|
|
16851
|
+
discountAmount: number;
|
|
16852
|
+
}[];
|
|
15903
16853
|
payments: {
|
|
15904
16854
|
id: string;
|
|
15905
16855
|
paymentType: "OTHER" | "DEPOSIT" | "FULL_PAYMENT" | "PARTIAL_PAYMENT" | "FEE" | "ADJUSTMENT";
|
|
@@ -15968,6 +16918,123 @@ declare const _createClient: () => {
|
|
|
15968
16918
|
}>>) & {
|
|
15969
16919
|
'~path': string;
|
|
15970
16920
|
};
|
|
16921
|
+
coupons: ((params: {
|
|
16922
|
+
orderCouponUuid: string | number;
|
|
16923
|
+
}) => {
|
|
16924
|
+
delete: ((body?: {} | undefined, options?: {
|
|
16925
|
+
fetch?: RequestInit | undefined;
|
|
16926
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
16927
|
+
headers?: {} | undefined;
|
|
16928
|
+
query?: {
|
|
16929
|
+
token?: string | undefined;
|
|
16930
|
+
} | undefined;
|
|
16931
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
16932
|
+
200: {
|
|
16933
|
+
success: true;
|
|
16934
|
+
statusCode: number;
|
|
16935
|
+
data: null;
|
|
16936
|
+
message: string;
|
|
16937
|
+
error: null;
|
|
16938
|
+
meta: TResponseMeta;
|
|
16939
|
+
} | {
|
|
16940
|
+
success: false;
|
|
16941
|
+
statusCode: number;
|
|
16942
|
+
data: null;
|
|
16943
|
+
message: string;
|
|
16944
|
+
error: TResponseError;
|
|
16945
|
+
meta: TResponseMeta;
|
|
16946
|
+
};
|
|
16947
|
+
422: {
|
|
16948
|
+
type: "validation";
|
|
16949
|
+
on: string;
|
|
16950
|
+
summary?: string;
|
|
16951
|
+
message?: string;
|
|
16952
|
+
found?: unknown;
|
|
16953
|
+
property?: string;
|
|
16954
|
+
expected?: string;
|
|
16955
|
+
};
|
|
16956
|
+
}>>) & {
|
|
16957
|
+
'~path': string;
|
|
16958
|
+
};
|
|
16959
|
+
'~path': string;
|
|
16960
|
+
} & {
|
|
16961
|
+
delete: ((body?: {} | undefined, options?: {
|
|
16962
|
+
fetch?: RequestInit | undefined;
|
|
16963
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
16964
|
+
headers?: {} | undefined;
|
|
16965
|
+
query?: {
|
|
16966
|
+
token?: string | undefined;
|
|
16967
|
+
} | undefined;
|
|
16968
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
16969
|
+
200: {
|
|
16970
|
+
success: true;
|
|
16971
|
+
statusCode: number;
|
|
16972
|
+
data: null;
|
|
16973
|
+
message: string;
|
|
16974
|
+
error: null;
|
|
16975
|
+
meta: TResponseMeta;
|
|
16976
|
+
} | {
|
|
16977
|
+
success: false;
|
|
16978
|
+
statusCode: number;
|
|
16979
|
+
data: null;
|
|
16980
|
+
message: string;
|
|
16981
|
+
error: TResponseError;
|
|
16982
|
+
meta: TResponseMeta;
|
|
16983
|
+
};
|
|
16984
|
+
422: {
|
|
16985
|
+
type: "validation";
|
|
16986
|
+
on: string;
|
|
16987
|
+
summary?: string;
|
|
16988
|
+
message?: string;
|
|
16989
|
+
found?: unknown;
|
|
16990
|
+
property?: string;
|
|
16991
|
+
expected?: string;
|
|
16992
|
+
};
|
|
16993
|
+
}>>) & {
|
|
16994
|
+
'~path': string;
|
|
16995
|
+
};
|
|
16996
|
+
}) & {
|
|
16997
|
+
post: ((body: {
|
|
16998
|
+
guestIdentifier?: string | undefined;
|
|
16999
|
+
couponCode: string;
|
|
17000
|
+
}, options?: {
|
|
17001
|
+
fetch?: RequestInit | undefined;
|
|
17002
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
17003
|
+
headers?: {} | undefined;
|
|
17004
|
+
query?: {
|
|
17005
|
+
token?: string | undefined;
|
|
17006
|
+
} | undefined;
|
|
17007
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
17008
|
+
200: {
|
|
17009
|
+
success: true;
|
|
17010
|
+
statusCode: number;
|
|
17011
|
+
data: null;
|
|
17012
|
+
message: string;
|
|
17013
|
+
error: null;
|
|
17014
|
+
meta: TResponseMeta;
|
|
17015
|
+
} | {
|
|
17016
|
+
success: false;
|
|
17017
|
+
statusCode: number;
|
|
17018
|
+
data: null;
|
|
17019
|
+
message: string;
|
|
17020
|
+
error: TResponseError;
|
|
17021
|
+
meta: TResponseMeta;
|
|
17022
|
+
};
|
|
17023
|
+
422: {
|
|
17024
|
+
type: "validation";
|
|
17025
|
+
on: string;
|
|
17026
|
+
summary?: string;
|
|
17027
|
+
message?: string;
|
|
17028
|
+
found?: unknown;
|
|
17029
|
+
property?: string;
|
|
17030
|
+
expected?: string;
|
|
17031
|
+
};
|
|
17032
|
+
}>>) & {
|
|
17033
|
+
'~path': string;
|
|
17034
|
+
};
|
|
17035
|
+
} & {
|
|
17036
|
+
'~path': string;
|
|
17037
|
+
};
|
|
15971
17038
|
'~path': string;
|
|
15972
17039
|
} & {
|
|
15973
17040
|
get: ((options?: {
|
|
@@ -16069,6 +17136,16 @@ declare const _createClient: () => {
|
|
|
16069
17136
|
category: "ORDER" | "PAYMENT" | "LOGISTICS";
|
|
16070
17137
|
metadata: unknown;
|
|
16071
17138
|
}[];
|
|
17139
|
+
orderCoupons: {
|
|
17140
|
+
uuid: string;
|
|
17141
|
+
status: "REFUNDED" | "APPLIED";
|
|
17142
|
+
createdAt: Date;
|
|
17143
|
+
code: string;
|
|
17144
|
+
discountType: "PERCENTAGE" | "FIXED_AMOUNT" | "FREE_SHIPPING";
|
|
17145
|
+
discountValue: number;
|
|
17146
|
+
maxDiscountAmount: number | null;
|
|
17147
|
+
discountAmount: number;
|
|
17148
|
+
}[];
|
|
16072
17149
|
payments: {
|
|
16073
17150
|
id: string;
|
|
16074
17151
|
paymentType: "OTHER" | "DEPOSIT" | "FULL_PAYMENT" | "PARTIAL_PAYMENT" | "FEE" | "ADJUSTMENT";
|
|
@@ -16137,6 +17214,123 @@ declare const _createClient: () => {
|
|
|
16137
17214
|
}>>) & {
|
|
16138
17215
|
'~path': string;
|
|
16139
17216
|
};
|
|
17217
|
+
coupons: ((params: {
|
|
17218
|
+
orderCouponUuid: string | number;
|
|
17219
|
+
}) => {
|
|
17220
|
+
delete: ((body?: {} | undefined, options?: {
|
|
17221
|
+
fetch?: RequestInit | undefined;
|
|
17222
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
17223
|
+
headers?: {} | undefined;
|
|
17224
|
+
query?: {
|
|
17225
|
+
token?: string | undefined;
|
|
17226
|
+
} | undefined;
|
|
17227
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
17228
|
+
200: {
|
|
17229
|
+
success: true;
|
|
17230
|
+
statusCode: number;
|
|
17231
|
+
data: null;
|
|
17232
|
+
message: string;
|
|
17233
|
+
error: null;
|
|
17234
|
+
meta: TResponseMeta;
|
|
17235
|
+
} | {
|
|
17236
|
+
success: false;
|
|
17237
|
+
statusCode: number;
|
|
17238
|
+
data: null;
|
|
17239
|
+
message: string;
|
|
17240
|
+
error: TResponseError;
|
|
17241
|
+
meta: TResponseMeta;
|
|
17242
|
+
};
|
|
17243
|
+
422: {
|
|
17244
|
+
type: "validation";
|
|
17245
|
+
on: string;
|
|
17246
|
+
summary?: string;
|
|
17247
|
+
message?: string;
|
|
17248
|
+
found?: unknown;
|
|
17249
|
+
property?: string;
|
|
17250
|
+
expected?: string;
|
|
17251
|
+
};
|
|
17252
|
+
}>>) & {
|
|
17253
|
+
'~path': string;
|
|
17254
|
+
};
|
|
17255
|
+
'~path': string;
|
|
17256
|
+
} & {
|
|
17257
|
+
delete: ((body?: {} | undefined, options?: {
|
|
17258
|
+
fetch?: RequestInit | undefined;
|
|
17259
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
17260
|
+
headers?: {} | undefined;
|
|
17261
|
+
query?: {
|
|
17262
|
+
token?: string | undefined;
|
|
17263
|
+
} | undefined;
|
|
17264
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
17265
|
+
200: {
|
|
17266
|
+
success: true;
|
|
17267
|
+
statusCode: number;
|
|
17268
|
+
data: null;
|
|
17269
|
+
message: string;
|
|
17270
|
+
error: null;
|
|
17271
|
+
meta: TResponseMeta;
|
|
17272
|
+
} | {
|
|
17273
|
+
success: false;
|
|
17274
|
+
statusCode: number;
|
|
17275
|
+
data: null;
|
|
17276
|
+
message: string;
|
|
17277
|
+
error: TResponseError;
|
|
17278
|
+
meta: TResponseMeta;
|
|
17279
|
+
};
|
|
17280
|
+
422: {
|
|
17281
|
+
type: "validation";
|
|
17282
|
+
on: string;
|
|
17283
|
+
summary?: string;
|
|
17284
|
+
message?: string;
|
|
17285
|
+
found?: unknown;
|
|
17286
|
+
property?: string;
|
|
17287
|
+
expected?: string;
|
|
17288
|
+
};
|
|
17289
|
+
}>>) & {
|
|
17290
|
+
'~path': string;
|
|
17291
|
+
};
|
|
17292
|
+
}) & {
|
|
17293
|
+
post: ((body: {
|
|
17294
|
+
guestIdentifier?: string | undefined;
|
|
17295
|
+
couponCode: string;
|
|
17296
|
+
}, options?: {
|
|
17297
|
+
fetch?: RequestInit | undefined;
|
|
17298
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
17299
|
+
headers?: {} | undefined;
|
|
17300
|
+
query?: {
|
|
17301
|
+
token?: string | undefined;
|
|
17302
|
+
} | undefined;
|
|
17303
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
17304
|
+
200: {
|
|
17305
|
+
success: true;
|
|
17306
|
+
statusCode: number;
|
|
17307
|
+
data: null;
|
|
17308
|
+
message: string;
|
|
17309
|
+
error: null;
|
|
17310
|
+
meta: TResponseMeta;
|
|
17311
|
+
} | {
|
|
17312
|
+
success: false;
|
|
17313
|
+
statusCode: number;
|
|
17314
|
+
data: null;
|
|
17315
|
+
message: string;
|
|
17316
|
+
error: TResponseError;
|
|
17317
|
+
meta: TResponseMeta;
|
|
17318
|
+
};
|
|
17319
|
+
422: {
|
|
17320
|
+
type: "validation";
|
|
17321
|
+
on: string;
|
|
17322
|
+
summary?: string;
|
|
17323
|
+
message?: string;
|
|
17324
|
+
found?: unknown;
|
|
17325
|
+
property?: string;
|
|
17326
|
+
expected?: string;
|
|
17327
|
+
};
|
|
17328
|
+
}>>) & {
|
|
17329
|
+
'~path': string;
|
|
17330
|
+
};
|
|
17331
|
+
} & {
|
|
17332
|
+
'~path': string;
|
|
17333
|
+
};
|
|
16140
17334
|
}) & {
|
|
16141
17335
|
get: ((options?: {
|
|
16142
17336
|
fetch?: RequestInit | undefined;
|