@customafk/lunas-api-sdk 0.0.79 → 0.0.81

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -92,6 +92,11 @@ declare enum ECartType {
92
92
  IN_STOCK = 'in_stock',
93
93
  ORDER = 'order',
94
94
  }
95
+ declare enum ECouponDiscountType {
96
+ PERCENTAGE = 'PERCENTAGE',
97
+ FIXED_AMOUNT = 'FIXED_AMOUNT',
98
+ FREE_SHIPPING = 'FREE_SHIPPING',
99
+ }
95
100
  type TResponsePagination = {
96
101
  page: number;
97
102
  limit: number;
@@ -437,8 +442,8 @@ declare const _createClient: () => {
437
442
  } & {
438
443
  '~path': string;
439
444
  };
440
- account: ((params: {
441
- uuid: string | number;
445
+ coupons: ((params: {
446
+ couponUuid: string | number;
442
447
  }) => {
443
448
  get: ((options?: {
444
449
  fetch?: RequestInit | undefined;
@@ -457,31 +462,18 @@ declare const _createClient: () => {
457
462
  success: true;
458
463
  statusCode: number;
459
464
  data: {
465
+ name: string;
460
466
  uuid: string;
461
- email: string;
462
- createdAt: Date | null;
463
- updatedAt: Date | null;
464
- isActive: boolean | null;
465
- username: string;
466
- role: string;
467
- networks: {
468
- createdAt: Date | null;
469
- updatedAt: Date | null;
470
- id: number;
471
- provider: string;
472
- providerId: string;
473
- }[];
474
- profile: {
475
- createdAt: Date | null;
476
- updatedAt: Date | null;
477
- id: number;
478
- fullname: string;
479
- phoneNumber: string | null;
480
- bio: string | null;
481
- gender: number | null;
482
- socialLinks: unknown;
483
- dateOfBirth: Date | null;
484
- };
467
+ createdAt: Date;
468
+ updatedAt: Date;
469
+ description: string | null;
470
+ isActive: boolean;
471
+ expiresAt: Date | null;
472
+ code: string;
473
+ discountType: "PERCENTAGE" | "FIXED_AMOUNT" | "FREE_SHIPPING";
474
+ discountValue: number;
475
+ maxDiscountAmount: number | null;
476
+ minimumOrderValue: number;
485
477
  };
486
478
  message: null;
487
479
  error: null;
@@ -500,13 +492,15 @@ declare const _createClient: () => {
500
492
  '~path': string;
501
493
  };
502
494
  patch: ((body?: {
503
- role?: ERole | undefined;
495
+ code?: string | undefined;
496
+ name?: string | undefined;
497
+ description?: string | null | undefined;
498
+ discountType?: ECouponDiscountType | undefined;
499
+ discountValue?: number | undefined;
500
+ maxDiscountAmount?: number | null | undefined;
501
+ minimumOrderValue?: number | undefined;
502
+ expiresAt?: string | null | undefined;
504
503
  isActive?: boolean | undefined;
505
- fullname?: string | undefined;
506
- phoneNumber?: string | undefined;
507
- bio?: string | undefined;
508
- gender?: number | undefined;
509
- dateOfBirth?: string | undefined;
510
504
  } | undefined, options?: {
511
505
  fetch?: RequestInit | undefined;
512
506
  throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
@@ -540,45 +534,6 @@ declare const _createClient: () => {
540
534
  }>>) & {
541
535
  '~path': string;
542
536
  };
543
- password: {
544
- patch: ((body: {
545
- password: string;
546
- }, options?: {
547
- fetch?: RequestInit | undefined;
548
- throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
549
- headers?: {} | undefined;
550
- query?: {} | undefined;
551
- } | undefined) => Promise<Treaty.TreatyResponse<{
552
- 200: {
553
- success: true;
554
- statusCode: number;
555
- data: null;
556
- message: string;
557
- error: null;
558
- meta: TResponseMeta;
559
- } | {
560
- success: false;
561
- statusCode: number;
562
- data: null;
563
- message: string;
564
- error: TResponseError;
565
- meta: TResponseMeta;
566
- };
567
- 422: {
568
- type: "validation";
569
- on: string;
570
- summary?: string;
571
- message?: string;
572
- found?: unknown;
573
- property?: string;
574
- expected?: string;
575
- };
576
- }>>) & {
577
- '~path': string;
578
- };
579
- } & {
580
- '~path': string;
581
- };
582
537
  delete: ((body?: {} | undefined, options?: {
583
538
  fetch?: RequestInit | undefined;
584
539
  throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
@@ -586,20 +541,18 @@ declare const _createClient: () => {
586
541
  query?: {} | undefined;
587
542
  } | undefined) => Promise<Treaty.TreatyResponse<{
588
543
  200: {
589
- success: false;
544
+ success: true;
590
545
  statusCode: number;
591
546
  data: null;
592
547
  message: string;
593
- error: TResponseError;
548
+ error: null;
594
549
  meta: TResponseMeta;
595
550
  } | {
596
- success: true;
551
+ success: false;
597
552
  statusCode: number;
598
- data: {
599
- userUuid: string;
600
- };
601
- message: null;
602
- error: null;
553
+ data: null;
554
+ message: string;
555
+ error: TResponseError;
603
556
  meta: TResponseMeta;
604
557
  };
605
558
  422: {
@@ -633,31 +586,18 @@ declare const _createClient: () => {
633
586
  success: true;
634
587
  statusCode: number;
635
588
  data: {
589
+ name: string;
636
590
  uuid: string;
637
- email: string;
638
- createdAt: Date | null;
639
- updatedAt: Date | null;
640
- isActive: boolean | null;
641
- username: string;
642
- role: string;
643
- networks: {
644
- createdAt: Date | null;
645
- updatedAt: Date | null;
646
- id: number;
647
- provider: string;
648
- providerId: string;
649
- }[];
650
- profile: {
651
- createdAt: Date | null;
652
- updatedAt: Date | null;
653
- id: number;
654
- fullname: string;
655
- phoneNumber: string | null;
656
- bio: string | null;
657
- gender: number | null;
658
- socialLinks: unknown;
659
- dateOfBirth: Date | null;
660
- };
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;
661
601
  };
662
602
  message: null;
663
603
  error: null;
@@ -676,13 +616,15 @@ declare const _createClient: () => {
676
616
  '~path': string;
677
617
  };
678
618
  patch: ((body?: {
679
- role?: ERole | undefined;
619
+ code?: string | undefined;
620
+ name?: string | undefined;
621
+ description?: string | null | undefined;
622
+ discountType?: ECouponDiscountType | undefined;
623
+ discountValue?: number | undefined;
624
+ maxDiscountAmount?: number | null | undefined;
625
+ minimumOrderValue?: number | undefined;
626
+ expiresAt?: string | null | undefined;
680
627
  isActive?: boolean | undefined;
681
- fullname?: string | undefined;
682
- phoneNumber?: string | undefined;
683
- bio?: string | undefined;
684
- gender?: number | undefined;
685
- dateOfBirth?: string | undefined;
686
628
  } | undefined, options?: {
687
629
  fetch?: RequestInit | undefined;
688
630
  throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
@@ -713,12 +655,1945 @@ declare const _createClient: () => {
713
655
  property?: string;
714
656
  expected?: string;
715
657
  };
716
- }>>) & {
658
+ }>>) & {
659
+ '~path': string;
660
+ };
661
+ delete: ((body?: {} | undefined, options?: {
662
+ fetch?: RequestInit | undefined;
663
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
664
+ headers?: {} | undefined;
665
+ query?: {} | undefined;
666
+ } | undefined) => Promise<Treaty.TreatyResponse<{
667
+ 200: {
668
+ success: true;
669
+ statusCode: number;
670
+ data: null;
671
+ message: string;
672
+ error: null;
673
+ meta: TResponseMeta;
674
+ } | {
675
+ success: false;
676
+ statusCode: number;
677
+ data: null;
678
+ message: string;
679
+ error: TResponseError;
680
+ meta: TResponseMeta;
681
+ };
682
+ 422: {
683
+ type: "validation";
684
+ on: string;
685
+ summary?: string;
686
+ message?: string;
687
+ found?: unknown;
688
+ property?: string;
689
+ expected?: string;
690
+ };
691
+ }>>) & {
692
+ '~path': string;
693
+ };
694
+ }) & {
695
+ get: ((options?: {
696
+ fetch?: RequestInit | undefined;
697
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
698
+ headers?: {} | undefined;
699
+ query?: {
700
+ page?: number | undefined;
701
+ limit?: number | undefined;
702
+ search?: string | undefined;
703
+ isActive?: boolean | undefined;
704
+ } | undefined;
705
+ } | undefined) => Promise<Treaty.TreatyResponse<{
706
+ 200: {
707
+ success: false;
708
+ statusCode: number;
709
+ data: null;
710
+ message: string;
711
+ error: TResponseError;
712
+ meta: TResponseMeta;
713
+ } | {
714
+ success: true;
715
+ statusCode: number;
716
+ data: {
717
+ data: {
718
+ name: string;
719
+ uuid: string;
720
+ createdAt: Date;
721
+ updatedAt: Date;
722
+ description: string | null;
723
+ isActive: boolean;
724
+ expiresAt: Date | null;
725
+ code: string;
726
+ discountType: "PERCENTAGE" | "FIXED_AMOUNT" | "FREE_SHIPPING";
727
+ discountValue: number;
728
+ maxDiscountAmount: number | null;
729
+ minimumOrderValue: number;
730
+ }[];
731
+ pagination: {
732
+ page: number;
733
+ limit: number;
734
+ total: number;
735
+ totalPages: number;
736
+ hasNextPage: boolean;
737
+ hasPreviousPage: boolean;
738
+ };
739
+ };
740
+ message: null;
741
+ error: null;
742
+ meta: TResponseMeta;
743
+ };
744
+ 422: {
745
+ type: "validation";
746
+ on: string;
747
+ summary?: string;
748
+ message?: string;
749
+ found?: unknown;
750
+ property?: string;
751
+ expected?: string;
752
+ };
753
+ }>>) & {
754
+ '~path': string;
755
+ };
756
+ post: ((body: {
757
+ code: string;
758
+ name: string;
759
+ discountType: ECouponDiscountType;
760
+ discountValue: number;
761
+ minimumOrderValue: number;
762
+ isActive: boolean;
763
+ description?: string | undefined;
764
+ maxDiscountAmount?: number | null | undefined;
765
+ expiresAt?: string | null | undefined;
766
+ }, options?: {
767
+ fetch?: RequestInit | undefined;
768
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
769
+ headers?: {} | undefined;
770
+ query?: {} | undefined;
771
+ } | undefined) => Promise<Treaty.TreatyResponse<{
772
+ 200: {
773
+ success: false;
774
+ statusCode: number;
775
+ data: null;
776
+ message: string;
777
+ error: TResponseError;
778
+ meta: TResponseMeta;
779
+ } | {
780
+ success: true;
781
+ statusCode: number;
782
+ data: {
783
+ name: string;
784
+ uuid: string;
785
+ createdAt: Date;
786
+ updatedAt: Date;
787
+ description: string | null;
788
+ isActive: boolean;
789
+ expiresAt: Date | null;
790
+ code: string;
791
+ discountType: "PERCENTAGE" | "FIXED_AMOUNT" | "FREE_SHIPPING";
792
+ discountValue: number;
793
+ maxDiscountAmount: number | null;
794
+ minimumOrderValue: number;
795
+ };
796
+ message: null;
797
+ error: null;
798
+ meta: TResponseMeta;
799
+ };
800
+ 422: {
801
+ type: "validation";
802
+ on: string;
803
+ summary?: string;
804
+ message?: string;
805
+ found?: unknown;
806
+ property?: string;
807
+ expected?: string;
808
+ };
809
+ }>>) & {
810
+ '~path': string;
811
+ };
812
+ bulk: {
813
+ post: ((body: {
814
+ coupons: {
815
+ code: string;
816
+ name: string;
817
+ discountType: ECouponDiscountType;
818
+ discountValue: number;
819
+ minimumOrderValue: number;
820
+ isActive: boolean;
821
+ description?: string | undefined;
822
+ maxDiscountAmount?: number | null | undefined;
823
+ expiresAt?: string | null | undefined;
824
+ }[];
825
+ }, options?: {
826
+ fetch?: RequestInit | undefined;
827
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
828
+ headers?: {} | undefined;
829
+ query?: {} | undefined;
830
+ } | undefined) => Promise<Treaty.TreatyResponse<{
831
+ 200: {
832
+ success: false;
833
+ statusCode: number;
834
+ data: null;
835
+ message: string;
836
+ error: TResponseError;
837
+ meta: TResponseMeta;
838
+ } | {
839
+ success: true;
840
+ statusCode: number;
841
+ data: {
842
+ name: string;
843
+ uuid: string;
844
+ createdAt: Date;
845
+ updatedAt: Date;
846
+ description: string | null;
847
+ isActive: boolean;
848
+ expiresAt: Date | null;
849
+ code: string;
850
+ discountType: "PERCENTAGE" | "FIXED_AMOUNT" | "FREE_SHIPPING";
851
+ discountValue: number;
852
+ maxDiscountAmount: number | null;
853
+ minimumOrderValue: number;
854
+ }[];
855
+ message: null;
856
+ error: null;
857
+ meta: TResponseMeta;
858
+ };
859
+ 422: {
860
+ type: "validation";
861
+ on: string;
862
+ summary?: string;
863
+ message?: string;
864
+ found?: unknown;
865
+ property?: string;
866
+ expected?: string;
867
+ };
868
+ }>>) & {
869
+ '~path': string;
870
+ };
871
+ delete: ((body: {}, options: {
872
+ fetch?: RequestInit | undefined;
873
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
874
+ headers?: {} | undefined;
875
+ query: {
876
+ uuids: string[];
877
+ };
878
+ }) => 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
+ } & {
907
+ '~path': string;
908
+ };
909
+ } & {
910
+ '~path': string;
911
+ };
912
+ documents: ((params: {
913
+ uuid: string | number;
914
+ }) => {
915
+ get: ((options?: {
916
+ fetch?: RequestInit | undefined;
917
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
918
+ headers?: {} | undefined;
919
+ query?: {} | undefined;
920
+ } | undefined) => Promise<Treaty.TreatyResponse<{
921
+ 200: {
922
+ success: false;
923
+ statusCode: number;
924
+ data: null;
925
+ message: string;
926
+ error: TResponseError;
927
+ meta: TResponseMeta;
928
+ } | {
929
+ success: true;
930
+ statusCode: number;
931
+ data: {
932
+ type: "ANNOUNCEMENT" | "GUIDE" | "POLICY" | "TERMS" | "FAQ" | "OTHER";
933
+ uuid: string;
934
+ status: "DRAFT" | "PUBLISHED" | "ARCHIVED";
935
+ createdAt: Date;
936
+ updatedAt: Date;
937
+ slug: string;
938
+ title: string;
939
+ content: string;
940
+ createdByUuid: string;
941
+ publishedAt: Date | null;
942
+ createdBy: {
943
+ uuid: string;
944
+ email: string;
945
+ username: string;
946
+ role: string;
947
+ };
948
+ };
949
+ message: null;
950
+ error: null;
951
+ meta: TResponseMeta;
952
+ };
953
+ 422: {
954
+ type: "validation";
955
+ on: string;
956
+ summary?: string;
957
+ message?: string;
958
+ found?: unknown;
959
+ property?: string;
960
+ expected?: string;
961
+ };
962
+ }>>) & {
963
+ '~path': string;
964
+ };
965
+ patch: ((body?: {
966
+ title?: string | undefined;
967
+ content?: string | undefined;
968
+ type?: "ANNOUNCEMENT" | "GUIDE" | "POLICY" | "TERMS" | "FAQ" | "OTHER" | undefined;
969
+ } | undefined, options?: {
970
+ fetch?: RequestInit | undefined;
971
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
972
+ headers?: {} | undefined;
973
+ query?: {} | undefined;
974
+ } | undefined) => Promise<Treaty.TreatyResponse<{
975
+ 200: {
976
+ success: true;
977
+ statusCode: number;
978
+ data: null;
979
+ message: string;
980
+ error: null;
981
+ meta: TResponseMeta;
982
+ } | {
983
+ success: false;
984
+ statusCode: number;
985
+ data: null;
986
+ message: string;
987
+ error: TResponseError;
988
+ meta: TResponseMeta;
989
+ };
990
+ 422: {
991
+ type: "validation";
992
+ on: string;
993
+ summary?: string;
994
+ message?: string;
995
+ found?: unknown;
996
+ property?: string;
997
+ expected?: string;
998
+ };
999
+ }>>) & {
1000
+ '~path': string;
1001
+ };
1002
+ publish: {
1003
+ patch: ((body?: {} | undefined, options?: {
1004
+ fetch?: RequestInit | undefined;
1005
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
1006
+ headers?: {} | undefined;
1007
+ query?: {} | undefined;
1008
+ } | undefined) => Promise<Treaty.TreatyResponse<{
1009
+ 200: {
1010
+ success: true;
1011
+ statusCode: number;
1012
+ data: null;
1013
+ message: string;
1014
+ error: null;
1015
+ meta: TResponseMeta;
1016
+ } | {
1017
+ success: false;
1018
+ statusCode: number;
1019
+ data: null;
1020
+ message: string;
1021
+ error: TResponseError;
1022
+ meta: TResponseMeta;
1023
+ };
1024
+ 422: {
1025
+ type: "validation";
1026
+ on: string;
1027
+ summary?: string;
1028
+ message?: string;
1029
+ found?: unknown;
1030
+ property?: string;
1031
+ expected?: string;
1032
+ };
1033
+ }>>) & {
1034
+ '~path': string;
1035
+ };
1036
+ } & {
1037
+ '~path': string;
1038
+ };
1039
+ archive: {
1040
+ patch: ((body?: {} | undefined, options?: {
1041
+ fetch?: RequestInit | undefined;
1042
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
1043
+ headers?: {} | undefined;
1044
+ query?: {} | undefined;
1045
+ } | undefined) => Promise<Treaty.TreatyResponse<{
1046
+ 200: {
1047
+ success: true;
1048
+ statusCode: number;
1049
+ data: null;
1050
+ message: string;
1051
+ error: null;
1052
+ meta: TResponseMeta;
1053
+ } | {
1054
+ success: false;
1055
+ statusCode: number;
1056
+ data: null;
1057
+ message: string;
1058
+ error: TResponseError;
1059
+ meta: TResponseMeta;
1060
+ };
1061
+ 422: {
1062
+ type: "validation";
1063
+ on: string;
1064
+ summary?: string;
1065
+ message?: string;
1066
+ found?: unknown;
1067
+ property?: string;
1068
+ expected?: string;
1069
+ };
1070
+ }>>) & {
1071
+ '~path': string;
1072
+ };
1073
+ } & {
1074
+ '~path': string;
1075
+ };
1076
+ delete: ((body?: {} | undefined, options?: {
1077
+ fetch?: RequestInit | undefined;
1078
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
1079
+ headers?: {} | undefined;
1080
+ query?: {} | undefined;
1081
+ } | undefined) => Promise<Treaty.TreatyResponse<{
1082
+ 200: {
1083
+ success: true;
1084
+ statusCode: number;
1085
+ data: null;
1086
+ message: string;
1087
+ error: null;
1088
+ meta: TResponseMeta;
1089
+ } | {
1090
+ success: false;
1091
+ statusCode: number;
1092
+ data: null;
1093
+ message: string;
1094
+ error: TResponseError;
1095
+ meta: TResponseMeta;
1096
+ };
1097
+ 422: {
1098
+ type: "validation";
1099
+ on: string;
1100
+ summary?: string;
1101
+ message?: string;
1102
+ found?: unknown;
1103
+ property?: string;
1104
+ expected?: string;
1105
+ };
1106
+ }>>) & {
1107
+ '~path': string;
1108
+ };
1109
+ '~path': string;
1110
+ } & {
1111
+ get: ((options?: {
1112
+ fetch?: RequestInit | undefined;
1113
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
1114
+ headers?: {} | undefined;
1115
+ query?: {} | undefined;
1116
+ } | undefined) => Promise<Treaty.TreatyResponse<{
1117
+ 200: {
1118
+ success: false;
1119
+ statusCode: number;
1120
+ data: null;
1121
+ message: string;
1122
+ error: TResponseError;
1123
+ meta: TResponseMeta;
1124
+ } | {
1125
+ success: true;
1126
+ statusCode: number;
1127
+ data: {
1128
+ type: "ANNOUNCEMENT" | "GUIDE" | "POLICY" | "TERMS" | "FAQ" | "OTHER";
1129
+ uuid: string;
1130
+ status: "DRAFT" | "PUBLISHED" | "ARCHIVED";
1131
+ createdAt: Date;
1132
+ updatedAt: Date;
1133
+ slug: string;
1134
+ title: string;
1135
+ content: string;
1136
+ createdByUuid: string;
1137
+ publishedAt: Date | null;
1138
+ createdBy: {
1139
+ uuid: string;
1140
+ email: string;
1141
+ username: string;
1142
+ role: string;
1143
+ };
1144
+ };
1145
+ message: null;
1146
+ error: null;
1147
+ meta: TResponseMeta;
1148
+ };
1149
+ 422: {
1150
+ type: "validation";
1151
+ on: string;
1152
+ summary?: string;
1153
+ message?: string;
1154
+ found?: unknown;
1155
+ property?: string;
1156
+ expected?: string;
1157
+ };
1158
+ }>>) & {
1159
+ '~path': string;
1160
+ };
1161
+ patch: ((body?: {
1162
+ title?: string | undefined;
1163
+ content?: string | undefined;
1164
+ type?: "ANNOUNCEMENT" | "GUIDE" | "POLICY" | "TERMS" | "FAQ" | "OTHER" | undefined;
1165
+ } | undefined, options?: {
1166
+ fetch?: RequestInit | undefined;
1167
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
1168
+ headers?: {} | undefined;
1169
+ query?: {} | undefined;
1170
+ } | undefined) => Promise<Treaty.TreatyResponse<{
1171
+ 200: {
1172
+ success: true;
1173
+ statusCode: number;
1174
+ data: null;
1175
+ message: string;
1176
+ error: null;
1177
+ meta: TResponseMeta;
1178
+ } | {
1179
+ success: false;
1180
+ statusCode: number;
1181
+ data: null;
1182
+ message: string;
1183
+ error: TResponseError;
1184
+ meta: TResponseMeta;
1185
+ };
1186
+ 422: {
1187
+ type: "validation";
1188
+ on: string;
1189
+ summary?: string;
1190
+ message?: string;
1191
+ found?: unknown;
1192
+ property?: string;
1193
+ expected?: string;
1194
+ };
1195
+ }>>) & {
1196
+ '~path': string;
1197
+ };
1198
+ publish: {
1199
+ patch: ((body?: {} | undefined, options?: {
1200
+ fetch?: RequestInit | undefined;
1201
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
1202
+ headers?: {} | undefined;
1203
+ query?: {} | undefined;
1204
+ } | undefined) => Promise<Treaty.TreatyResponse<{
1205
+ 200: {
1206
+ success: true;
1207
+ statusCode: number;
1208
+ data: null;
1209
+ message: string;
1210
+ error: null;
1211
+ meta: TResponseMeta;
1212
+ } | {
1213
+ success: false;
1214
+ statusCode: number;
1215
+ data: null;
1216
+ message: string;
1217
+ error: TResponseError;
1218
+ meta: TResponseMeta;
1219
+ };
1220
+ 422: {
1221
+ type: "validation";
1222
+ on: string;
1223
+ summary?: string;
1224
+ message?: string;
1225
+ found?: unknown;
1226
+ property?: string;
1227
+ expected?: string;
1228
+ };
1229
+ }>>) & {
1230
+ '~path': string;
1231
+ };
1232
+ } & {
1233
+ '~path': string;
1234
+ };
1235
+ archive: {
1236
+ patch: ((body?: {} | undefined, options?: {
1237
+ fetch?: RequestInit | undefined;
1238
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
1239
+ headers?: {} | undefined;
1240
+ query?: {} | undefined;
1241
+ } | undefined) => Promise<Treaty.TreatyResponse<{
1242
+ 200: {
1243
+ success: true;
1244
+ statusCode: number;
1245
+ data: null;
1246
+ message: string;
1247
+ error: null;
1248
+ meta: TResponseMeta;
1249
+ } | {
1250
+ success: false;
1251
+ statusCode: number;
1252
+ data: null;
1253
+ message: string;
1254
+ error: TResponseError;
1255
+ meta: TResponseMeta;
1256
+ };
1257
+ 422: {
1258
+ type: "validation";
1259
+ on: string;
1260
+ summary?: string;
1261
+ message?: string;
1262
+ found?: unknown;
1263
+ property?: string;
1264
+ expected?: string;
1265
+ };
1266
+ }>>) & {
1267
+ '~path': string;
1268
+ };
1269
+ } & {
1270
+ '~path': string;
1271
+ };
1272
+ delete: ((body?: {} | undefined, options?: {
1273
+ fetch?: RequestInit | undefined;
1274
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
1275
+ headers?: {} | undefined;
1276
+ query?: {} | undefined;
1277
+ } | undefined) => Promise<Treaty.TreatyResponse<{
1278
+ 200: {
1279
+ success: true;
1280
+ statusCode: number;
1281
+ data: null;
1282
+ message: string;
1283
+ error: null;
1284
+ meta: TResponseMeta;
1285
+ } | {
1286
+ success: false;
1287
+ statusCode: number;
1288
+ data: null;
1289
+ message: string;
1290
+ error: TResponseError;
1291
+ meta: TResponseMeta;
1292
+ };
1293
+ 422: {
1294
+ type: "validation";
1295
+ on: string;
1296
+ summary?: string;
1297
+ message?: string;
1298
+ found?: unknown;
1299
+ property?: string;
1300
+ expected?: string;
1301
+ };
1302
+ }>>) & {
1303
+ '~path': string;
1304
+ };
1305
+ }) & {
1306
+ get: ((options?: {
1307
+ fetch?: RequestInit | undefined;
1308
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
1309
+ headers?: {} | undefined;
1310
+ query?: {
1311
+ page?: number | undefined;
1312
+ limit?: number | undefined;
1313
+ search?: string | undefined;
1314
+ status?: "DRAFT" | "PUBLISHED" | "ARCHIVED" | undefined;
1315
+ type?: "ANNOUNCEMENT" | "GUIDE" | "POLICY" | "TERMS" | "FAQ" | "OTHER" | undefined;
1316
+ } | undefined;
1317
+ } | undefined) => Promise<Treaty.TreatyResponse<{
1318
+ 200: {
1319
+ success: false;
1320
+ statusCode: number;
1321
+ data: null;
1322
+ message: string;
1323
+ error: TResponseError;
1324
+ meta: TResponseMeta;
1325
+ } | {
1326
+ success: true;
1327
+ statusCode: number;
1328
+ data: {
1329
+ data: {
1330
+ type: "ANNOUNCEMENT" | "GUIDE" | "POLICY" | "TERMS" | "FAQ" | "OTHER";
1331
+ uuid: string;
1332
+ status: "DRAFT" | "PUBLISHED" | "ARCHIVED";
1333
+ createdAt: Date;
1334
+ updatedAt: Date;
1335
+ slug: string;
1336
+ title: string;
1337
+ publishedAt: Date | null;
1338
+ createdBy: {
1339
+ uuid: string;
1340
+ email: string;
1341
+ username: string;
1342
+ role: string;
1343
+ };
1344
+ }[];
1345
+ pagination: {
1346
+ page: number;
1347
+ limit: number;
1348
+ total: number;
1349
+ totalPages: number;
1350
+ hasNextPage: boolean;
1351
+ hasPreviousPage: boolean;
1352
+ };
1353
+ };
1354
+ message: null;
1355
+ error: null;
1356
+ meta: TResponseMeta;
1357
+ };
1358
+ 422: {
1359
+ type: "validation";
1360
+ on: string;
1361
+ summary?: string;
1362
+ message?: string;
1363
+ found?: unknown;
1364
+ property?: string;
1365
+ expected?: string;
1366
+ };
1367
+ }>>) & {
1368
+ '~path': string;
1369
+ };
1370
+ post: ((body: {
1371
+ title: string;
1372
+ type: "ANNOUNCEMENT" | "GUIDE" | "POLICY" | "TERMS" | "FAQ" | "OTHER";
1373
+ content?: string | undefined;
1374
+ }, options?: {
1375
+ fetch?: RequestInit | undefined;
1376
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
1377
+ headers?: {} | undefined;
1378
+ query?: {} | undefined;
1379
+ } | undefined) => Promise<Treaty.TreatyResponse<{
1380
+ 200: {
1381
+ success: false;
1382
+ statusCode: number;
1383
+ data: null;
1384
+ message: string;
1385
+ error: TResponseError;
1386
+ meta: TResponseMeta;
1387
+ } | {
1388
+ success: true;
1389
+ statusCode: number;
1390
+ data: {
1391
+ uuid: string;
1392
+ };
1393
+ message: null;
1394
+ error: null;
1395
+ meta: TResponseMeta;
1396
+ };
1397
+ 422: {
1398
+ type: "validation";
1399
+ on: string;
1400
+ summary?: string;
1401
+ message?: string;
1402
+ found?: unknown;
1403
+ property?: string;
1404
+ expected?: string;
1405
+ };
1406
+ }>>) & {
1407
+ '~path': string;
1408
+ };
1409
+ bulk: {
1410
+ delete: ((body: {}, options: {
1411
+ fetch?: RequestInit | undefined;
1412
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
1413
+ headers?: {} | undefined;
1414
+ query: {
1415
+ uuids: string[];
1416
+ };
1417
+ }) => Promise<Treaty.TreatyResponse<{
1418
+ 200: {
1419
+ success: true;
1420
+ statusCode: number;
1421
+ data: null;
1422
+ message: string;
1423
+ error: null;
1424
+ meta: TResponseMeta;
1425
+ } | {
1426
+ success: false;
1427
+ statusCode: number;
1428
+ data: null;
1429
+ message: string;
1430
+ error: TResponseError;
1431
+ meta: TResponseMeta;
1432
+ };
1433
+ 422: {
1434
+ type: "validation";
1435
+ on: string;
1436
+ summary?: string;
1437
+ message?: string;
1438
+ found?: unknown;
1439
+ property?: string;
1440
+ expected?: string;
1441
+ };
1442
+ }>>) & {
1443
+ '~path': string;
1444
+ };
1445
+ } & {
1446
+ '~path': string;
1447
+ };
1448
+ } & {
1449
+ '~path': string;
1450
+ };
1451
+ account: ((params: {
1452
+ uuid: string | number;
1453
+ }) => {
1454
+ get: ((options?: {
1455
+ fetch?: RequestInit | undefined;
1456
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
1457
+ headers?: {} | undefined;
1458
+ query?: {} | undefined;
1459
+ } | undefined) => Promise<Treaty.TreatyResponse<{
1460
+ 200: {
1461
+ success: false;
1462
+ statusCode: number;
1463
+ data: null;
1464
+ message: string;
1465
+ error: TResponseError;
1466
+ meta: TResponseMeta;
1467
+ } | {
1468
+ success: true;
1469
+ statusCode: number;
1470
+ data: {
1471
+ orderSummary: {
1472
+ totalOrders: number;
1473
+ totalSpent: number;
1474
+ lastOrderAt: Date | null;
1475
+ };
1476
+ uuid: string;
1477
+ email: string;
1478
+ createdAt: Date | null;
1479
+ updatedAt: Date | null;
1480
+ username: string;
1481
+ role: string;
1482
+ isActive: boolean | null;
1483
+ networks: {
1484
+ createdAt: Date | null;
1485
+ updatedAt: Date | null;
1486
+ id: number;
1487
+ provider: string;
1488
+ providerId: string;
1489
+ }[];
1490
+ profile: {
1491
+ createdAt: Date | null;
1492
+ updatedAt: Date | null;
1493
+ id: number;
1494
+ fullname: string;
1495
+ phoneNumber: string | null;
1496
+ bio: string | null;
1497
+ gender: number | null;
1498
+ socialLinks: unknown;
1499
+ dateOfBirth: Date | null;
1500
+ };
1501
+ };
1502
+ message: null;
1503
+ error: null;
1504
+ meta: TResponseMeta;
1505
+ };
1506
+ 422: {
1507
+ type: "validation";
1508
+ on: string;
1509
+ summary?: string;
1510
+ message?: string;
1511
+ found?: unknown;
1512
+ property?: string;
1513
+ expected?: string;
1514
+ };
1515
+ }>>) & {
1516
+ '~path': string;
1517
+ };
1518
+ orders: ((params: {
1519
+ orderUuid: string | number;
1520
+ }) => {
1521
+ get: ((options?: {
1522
+ fetch?: RequestInit | undefined;
1523
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
1524
+ headers?: {} | undefined;
1525
+ query?: {} | undefined;
1526
+ } | undefined) => Promise<Treaty.TreatyResponse<{
1527
+ 200: {
1528
+ success: false;
1529
+ statusCode: number;
1530
+ data: null;
1531
+ message: string;
1532
+ error: TResponseError;
1533
+ meta: TResponseMeta;
1534
+ } | {
1535
+ success: true;
1536
+ statusCode: number;
1537
+ data: {
1538
+ order: {
1539
+ name: string | null;
1540
+ uuid: string;
1541
+ status: "DRAFT" | "PENDING" | "CONFIRMED" | "PROCESSING" | "COMPLETED" | "CANCELLED";
1542
+ orderCode: string;
1543
+ userUuid: string | null;
1544
+ customerName: string | null;
1545
+ customerEmail: string | null;
1546
+ customerPhone: string | null;
1547
+ shippingAddress: unknown;
1548
+ subtotalAmount: number | null;
1549
+ discountTotal: number | null;
1550
+ taxTotal: number | null;
1551
+ depositSurchargeTotal: number | null;
1552
+ otherSurchargeTotal: number | null;
1553
+ totalDue: number | null;
1554
+ totalPaid: number | null;
1555
+ totalRefunded: number | null;
1556
+ createdAt: Date;
1557
+ updatedAt: Date;
1558
+ orderType: "ORDER" | "IN-STOCK";
1559
+ accessToken: string | null;
1560
+ guestInfo: unknown;
1561
+ appliedDepositName: string | null;
1562
+ appliedDepositType: "PERCENTAGE" | "FIXED" | null;
1563
+ appliedDepositValue: number | null;
1564
+ depositRequiredAmount: number | null;
1565
+ balanceRemaining: number | null;
1566
+ totalWeightGram: number | null;
1567
+ shipingNote: string | null;
1568
+ estimatedDeliveryAt: Date | null;
1569
+ paymentStatus: "PENDING" | "PAID" | "PARTIALLY_PAID" | "REFUNDED";
1570
+ fulfillmentStatus: "UNFULFILLED" | "PARTIALLY_FULFILLED" | "FULFILLED" | "RETURNED";
1571
+ riskLevel: "LOW" | "MEDIUM" | "HIGH";
1572
+ completedAt: Date | null;
1573
+ cancelledAt: Date | null;
1574
+ cancelReason: string | null;
1575
+ cancelledBy: string | null;
1576
+ deletedAt: Date | null;
1577
+ orderManifests: {
1578
+ uuid: string;
1579
+ status: "PROCESSING" | "CANCELLED" | "PURCHASED" | "WAREHOUSE_ABROAD" | "IN_TRANSIT" | "ARRIVED_VN" | "DELIVERED";
1580
+ createdAt: Date | null;
1581
+ updatedAt: Date | null;
1582
+ productName: string | null;
1583
+ productUrl: string | null;
1584
+ attributes: unknown;
1585
+ originCountry: string | null;
1586
+ vendorName: string | null;
1587
+ unitPrice: number;
1588
+ quantityOrdered: number;
1589
+ quantityFulfilled: number;
1590
+ totalLineAmount: number;
1591
+ note: string | null;
1592
+ variant: {
1593
+ name: string;
1594
+ uuid: string;
1595
+ createdAt: Date | null;
1596
+ updatedAt: Date | null;
1597
+ options: {
1598
+ value: string;
1599
+ option: {
1600
+ name: string;
1601
+ };
1602
+ }[];
1603
+ media: {
1604
+ createdAt: Date | null;
1605
+ updatedAt: Date | null;
1606
+ media: {
1607
+ uuid: string;
1608
+ path: string;
1609
+ altText: string | null;
1610
+ };
1611
+ };
1612
+ };
1613
+ }[];
1614
+ orderTimelines: {
1615
+ uuid: string;
1616
+ status: "COMPLETED" | "IN_PROGRESS" | "SKIPPED" | "FAILED";
1617
+ createdAt: Date;
1618
+ updatedAt: Date;
1619
+ completedAt: Date | null;
1620
+ title: string;
1621
+ content: string | null;
1622
+ manifestUuid: string | null;
1623
+ milestoneCode: "PURCHASED" | "ARRIVED_VN" | "DELIVERED" | "ORDER_CREATED" | "QUOTATION_SENT" | "DEPOSIT_PAID" | "ORDER_CONFIRMED" | "PAYMENT_COMPLETED" | "PAYMENT_RECEIVED" | "PAYMENT_VOIDED" | "ORDER_CANCELLED" | "PURCHASING" | "IN_WAREHOUSE_ABROAD" | "INTERNATIONAL_SHIPPING" | "ITEM_CANCELLED" | "PACKED" | "HANDED_OVER" | "DELIVERING";
1624
+ startedAt: Date;
1625
+ category: "ORDER" | "PAYMENT" | "LOGISTICS";
1626
+ isPublic: boolean;
1627
+ actorUuid: string | null;
1628
+ metadata: unknown;
1629
+ }[];
1630
+ orderSurcharges: {
1631
+ name: string;
1632
+ uuid: string;
1633
+ status: "CANCELLED" | "ACTIVE" | "INACTIVE";
1634
+ createdAt: Date;
1635
+ updatedAt: Date;
1636
+ description: string | null;
1637
+ surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
1638
+ amount: number;
1639
+ applyTo: "BEFORE_TAX" | "AFTER_TAX";
1640
+ paymentUuid: string | null;
1641
+ }[];
1642
+ payments: {
1643
+ createdAt: Date;
1644
+ updatedAt: Date;
1645
+ id: string;
1646
+ paymentType: "OTHER" | "DEPOSIT" | "FULL_PAYMENT" | "PARTIAL_PAYMENT" | "FEE" | "ADJUSTMENT";
1647
+ orderStatus: "CANCELLED" | "CAPTURED" | "AUTHENTICATION_NOT_NEEDED";
1648
+ orderAmount: number;
1649
+ orderCurrency: string;
1650
+ orderDescription: string;
1651
+ authenticationStatus: string | null;
1652
+ checkoutUrl: string;
1653
+ }[];
1654
+ };
1655
+ };
1656
+ message: null;
1657
+ error: null;
1658
+ meta: TResponseMeta;
1659
+ };
1660
+ 422: {
1661
+ type: "validation";
1662
+ on: string;
1663
+ summary?: string;
1664
+ message?: string;
1665
+ found?: unknown;
1666
+ property?: string;
1667
+ expected?: string;
1668
+ };
1669
+ }>>) & {
1670
+ '~path': string;
1671
+ };
1672
+ '~path': string;
1673
+ } & {
1674
+ get: ((options?: {
1675
+ fetch?: RequestInit | undefined;
1676
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
1677
+ headers?: {} | undefined;
1678
+ query?: {} | undefined;
1679
+ } | undefined) => Promise<Treaty.TreatyResponse<{
1680
+ 200: {
1681
+ success: false;
1682
+ statusCode: number;
1683
+ data: null;
1684
+ message: string;
1685
+ error: TResponseError;
1686
+ meta: TResponseMeta;
1687
+ } | {
1688
+ success: true;
1689
+ statusCode: number;
1690
+ data: {
1691
+ order: {
1692
+ name: string | null;
1693
+ uuid: string;
1694
+ status: "DRAFT" | "PENDING" | "CONFIRMED" | "PROCESSING" | "COMPLETED" | "CANCELLED";
1695
+ orderCode: string;
1696
+ userUuid: string | null;
1697
+ customerName: string | null;
1698
+ customerEmail: string | null;
1699
+ customerPhone: string | null;
1700
+ shippingAddress: unknown;
1701
+ subtotalAmount: number | null;
1702
+ discountTotal: number | null;
1703
+ taxTotal: number | null;
1704
+ depositSurchargeTotal: number | null;
1705
+ otherSurchargeTotal: number | null;
1706
+ totalDue: number | null;
1707
+ totalPaid: number | null;
1708
+ totalRefunded: number | null;
1709
+ createdAt: Date;
1710
+ updatedAt: Date;
1711
+ orderType: "ORDER" | "IN-STOCK";
1712
+ accessToken: string | null;
1713
+ guestInfo: unknown;
1714
+ appliedDepositName: string | null;
1715
+ appliedDepositType: "PERCENTAGE" | "FIXED" | null;
1716
+ appliedDepositValue: number | null;
1717
+ depositRequiredAmount: number | null;
1718
+ balanceRemaining: number | null;
1719
+ totalWeightGram: number | null;
1720
+ shipingNote: string | null;
1721
+ estimatedDeliveryAt: Date | null;
1722
+ paymentStatus: "PENDING" | "PAID" | "PARTIALLY_PAID" | "REFUNDED";
1723
+ fulfillmentStatus: "UNFULFILLED" | "PARTIALLY_FULFILLED" | "FULFILLED" | "RETURNED";
1724
+ riskLevel: "LOW" | "MEDIUM" | "HIGH";
1725
+ completedAt: Date | null;
1726
+ cancelledAt: Date | null;
1727
+ cancelReason: string | null;
1728
+ cancelledBy: string | null;
1729
+ deletedAt: Date | null;
1730
+ orderManifests: {
1731
+ uuid: string;
1732
+ status: "PROCESSING" | "CANCELLED" | "PURCHASED" | "WAREHOUSE_ABROAD" | "IN_TRANSIT" | "ARRIVED_VN" | "DELIVERED";
1733
+ createdAt: Date | null;
1734
+ updatedAt: Date | null;
1735
+ productName: string | null;
1736
+ productUrl: string | null;
1737
+ attributes: unknown;
1738
+ originCountry: string | null;
1739
+ vendorName: string | null;
1740
+ unitPrice: number;
1741
+ quantityOrdered: number;
1742
+ quantityFulfilled: number;
1743
+ totalLineAmount: number;
1744
+ note: string | null;
1745
+ variant: {
1746
+ name: string;
1747
+ uuid: string;
1748
+ createdAt: Date | null;
1749
+ updatedAt: Date | null;
1750
+ options: {
1751
+ value: string;
1752
+ option: {
1753
+ name: string;
1754
+ };
1755
+ }[];
1756
+ media: {
1757
+ createdAt: Date | null;
1758
+ updatedAt: Date | null;
1759
+ media: {
1760
+ uuid: string;
1761
+ path: string;
1762
+ altText: string | null;
1763
+ };
1764
+ };
1765
+ };
1766
+ }[];
1767
+ orderTimelines: {
1768
+ uuid: string;
1769
+ status: "COMPLETED" | "IN_PROGRESS" | "SKIPPED" | "FAILED";
1770
+ createdAt: Date;
1771
+ updatedAt: Date;
1772
+ completedAt: Date | null;
1773
+ title: string;
1774
+ content: string | null;
1775
+ manifestUuid: string | null;
1776
+ milestoneCode: "PURCHASED" | "ARRIVED_VN" | "DELIVERED" | "ORDER_CREATED" | "QUOTATION_SENT" | "DEPOSIT_PAID" | "ORDER_CONFIRMED" | "PAYMENT_COMPLETED" | "PAYMENT_RECEIVED" | "PAYMENT_VOIDED" | "ORDER_CANCELLED" | "PURCHASING" | "IN_WAREHOUSE_ABROAD" | "INTERNATIONAL_SHIPPING" | "ITEM_CANCELLED" | "PACKED" | "HANDED_OVER" | "DELIVERING";
1777
+ startedAt: Date;
1778
+ category: "ORDER" | "PAYMENT" | "LOGISTICS";
1779
+ isPublic: boolean;
1780
+ actorUuid: string | null;
1781
+ metadata: unknown;
1782
+ }[];
1783
+ orderSurcharges: {
1784
+ name: string;
1785
+ uuid: string;
1786
+ status: "CANCELLED" | "ACTIVE" | "INACTIVE";
1787
+ createdAt: Date;
1788
+ updatedAt: Date;
1789
+ description: string | null;
1790
+ surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
1791
+ amount: number;
1792
+ applyTo: "BEFORE_TAX" | "AFTER_TAX";
1793
+ paymentUuid: string | null;
1794
+ }[];
1795
+ payments: {
1796
+ createdAt: Date;
1797
+ updatedAt: Date;
1798
+ id: string;
1799
+ paymentType: "OTHER" | "DEPOSIT" | "FULL_PAYMENT" | "PARTIAL_PAYMENT" | "FEE" | "ADJUSTMENT";
1800
+ orderStatus: "CANCELLED" | "CAPTURED" | "AUTHENTICATION_NOT_NEEDED";
1801
+ orderAmount: number;
1802
+ orderCurrency: string;
1803
+ orderDescription: string;
1804
+ authenticationStatus: string | null;
1805
+ checkoutUrl: string;
1806
+ }[];
1807
+ };
1808
+ };
1809
+ message: null;
1810
+ error: null;
1811
+ meta: TResponseMeta;
1812
+ };
1813
+ 422: {
1814
+ type: "validation";
1815
+ on: string;
1816
+ summary?: string;
1817
+ message?: string;
1818
+ found?: unknown;
1819
+ property?: string;
1820
+ expected?: string;
1821
+ };
1822
+ }>>) & {
1823
+ '~path': string;
1824
+ };
1825
+ }) & {
1826
+ get: ((options?: {
1827
+ fetch?: RequestInit | undefined;
1828
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
1829
+ headers?: {} | undefined;
1830
+ query?: {
1831
+ page?: number | undefined;
1832
+ limit?: number | undefined;
1833
+ status?: "DRAFT" | "PENDING" | "CONFIRMED" | "PROCESSING" | "COMPLETED" | "CANCELLED" | undefined;
1834
+ paymentStatus?: "PENDING" | "PAID" | "PARTIALLY_PAID" | "REFUNDED" | undefined;
1835
+ } | undefined;
1836
+ } | undefined) => Promise<Treaty.TreatyResponse<{
1837
+ 200: {
1838
+ success: false;
1839
+ statusCode: number;
1840
+ data: null;
1841
+ message: string;
1842
+ error: TResponseError;
1843
+ meta: TResponseMeta;
1844
+ } | {
1845
+ success: true;
1846
+ statusCode: number;
1847
+ data: {
1848
+ data: {
1849
+ name: string | null;
1850
+ uuid: string;
1851
+ status: "DRAFT" | "PENDING" | "CONFIRMED" | "PROCESSING" | "COMPLETED" | "CANCELLED";
1852
+ orderCode: string;
1853
+ userUuid: string | null;
1854
+ customerName: string | null;
1855
+ customerEmail: string | null;
1856
+ customerPhone: string | null;
1857
+ shippingAddress: unknown;
1858
+ subtotalAmount: number | null;
1859
+ taxTotal: number | null;
1860
+ depositSurchargeTotal: number | null;
1861
+ otherSurchargeTotal: number | null;
1862
+ totalDue: number | null;
1863
+ totalPaid: number | null;
1864
+ totalRefunded: number | null;
1865
+ createdAt: Date;
1866
+ updatedAt: Date;
1867
+ orderType: "ORDER" | "IN-STOCK";
1868
+ appliedDepositName: string | null;
1869
+ appliedDepositType: "PERCENTAGE" | "FIXED" | null;
1870
+ appliedDepositValue: number | null;
1871
+ depositRequiredAmount: number | null;
1872
+ balanceRemaining: number | null;
1873
+ paymentStatus: "PENDING" | "PAID" | "PARTIALLY_PAID" | "REFUNDED";
1874
+ fulfillmentStatus: "UNFULFILLED" | "PARTIALLY_FULFILLED" | "FULFILLED" | "RETURNED";
1875
+ riskLevel: "LOW" | "MEDIUM" | "HIGH";
1876
+ completedAt: Date | null;
1877
+ }[];
1878
+ pagination: {
1879
+ page: number;
1880
+ limit: number;
1881
+ total: number;
1882
+ totalPages: number;
1883
+ hasNextPage: boolean;
1884
+ hasPreviousPage: boolean;
1885
+ };
1886
+ };
1887
+ message: null;
1888
+ error: null;
1889
+ meta: TResponseMeta;
1890
+ };
1891
+ 422: {
1892
+ type: "validation";
1893
+ on: string;
1894
+ summary?: string;
1895
+ message?: string;
1896
+ found?: unknown;
1897
+ property?: string;
1898
+ expected?: string;
1899
+ };
1900
+ }>>) & {
1901
+ '~path': string;
1902
+ };
1903
+ } & {
1904
+ '~path': string;
1905
+ };
1906
+ patch: ((body?: {
1907
+ role?: ERole | undefined;
1908
+ isActive?: boolean | undefined;
1909
+ fullname?: string | undefined;
1910
+ phoneNumber?: string | undefined;
1911
+ bio?: string | undefined;
1912
+ gender?: number | undefined;
1913
+ dateOfBirth?: string | undefined;
1914
+ } | undefined, options?: {
1915
+ fetch?: RequestInit | undefined;
1916
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
1917
+ headers?: {} | undefined;
1918
+ query?: {} | undefined;
1919
+ } | undefined) => Promise<Treaty.TreatyResponse<{
1920
+ 200: {
1921
+ success: true;
1922
+ statusCode: number;
1923
+ data: null;
1924
+ message: string;
1925
+ error: null;
1926
+ meta: TResponseMeta;
1927
+ } | {
1928
+ success: false;
1929
+ statusCode: number;
1930
+ data: null;
1931
+ message: string;
1932
+ error: TResponseError;
1933
+ meta: TResponseMeta;
1934
+ };
1935
+ 422: {
1936
+ type: "validation";
1937
+ on: string;
1938
+ summary?: string;
1939
+ message?: string;
1940
+ found?: unknown;
1941
+ property?: string;
1942
+ expected?: string;
1943
+ };
1944
+ }>>) & {
1945
+ '~path': string;
1946
+ };
1947
+ password: {
1948
+ patch: ((body: {
1949
+ password: string;
1950
+ }, options?: {
1951
+ fetch?: RequestInit | undefined;
1952
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
1953
+ headers?: {} | undefined;
1954
+ query?: {} | undefined;
1955
+ } | undefined) => Promise<Treaty.TreatyResponse<{
1956
+ 200: {
1957
+ success: true;
1958
+ statusCode: number;
1959
+ data: null;
1960
+ message: string;
1961
+ error: null;
1962
+ meta: TResponseMeta;
1963
+ } | {
1964
+ success: false;
1965
+ statusCode: number;
1966
+ data: null;
1967
+ message: string;
1968
+ error: TResponseError;
1969
+ meta: TResponseMeta;
1970
+ };
1971
+ 422: {
1972
+ type: "validation";
1973
+ on: string;
1974
+ summary?: string;
1975
+ message?: string;
1976
+ found?: unknown;
1977
+ property?: string;
1978
+ expected?: string;
1979
+ };
1980
+ }>>) & {
1981
+ '~path': string;
1982
+ };
1983
+ } & {
1984
+ '~path': string;
1985
+ };
1986
+ status: {
1987
+ patch: ((body: {
1988
+ isActive: boolean;
1989
+ }, options?: {
1990
+ fetch?: RequestInit | undefined;
1991
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
1992
+ headers?: {} | undefined;
1993
+ query?: {} | undefined;
1994
+ } | undefined) => Promise<Treaty.TreatyResponse<{
1995
+ 200: {
1996
+ success: true;
1997
+ statusCode: number;
1998
+ data: null;
1999
+ message: string;
2000
+ error: null;
2001
+ meta: TResponseMeta;
2002
+ } | {
2003
+ success: false;
2004
+ statusCode: number;
2005
+ data: null;
2006
+ message: string;
2007
+ error: TResponseError;
2008
+ meta: TResponseMeta;
2009
+ };
2010
+ 422: {
2011
+ type: "validation";
2012
+ on: string;
2013
+ summary?: string;
2014
+ message?: string;
2015
+ found?: unknown;
2016
+ property?: string;
2017
+ expected?: string;
2018
+ };
2019
+ }>>) & {
2020
+ '~path': string;
2021
+ };
2022
+ } & {
2023
+ '~path': string;
2024
+ };
2025
+ delete: ((body?: {} | undefined, options?: {
2026
+ fetch?: RequestInit | undefined;
2027
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
2028
+ headers?: {} | undefined;
2029
+ query?: {} | undefined;
2030
+ } | undefined) => Promise<Treaty.TreatyResponse<{
2031
+ 200: {
2032
+ success: false;
2033
+ statusCode: number;
2034
+ data: null;
2035
+ message: string;
2036
+ error: TResponseError;
2037
+ meta: TResponseMeta;
2038
+ } | {
2039
+ success: true;
2040
+ statusCode: number;
2041
+ data: {
2042
+ userUuid: string;
2043
+ };
2044
+ message: null;
2045
+ error: null;
2046
+ meta: TResponseMeta;
2047
+ };
2048
+ 422: {
2049
+ type: "validation";
2050
+ on: string;
2051
+ summary?: string;
2052
+ message?: string;
2053
+ found?: unknown;
2054
+ property?: string;
2055
+ expected?: string;
2056
+ };
2057
+ }>>) & {
2058
+ '~path': string;
2059
+ };
2060
+ '~path': string;
2061
+ } & {
2062
+ get: ((options?: {
2063
+ fetch?: RequestInit | undefined;
2064
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
2065
+ headers?: {} | undefined;
2066
+ query?: {} | undefined;
2067
+ } | undefined) => Promise<Treaty.TreatyResponse<{
2068
+ 200: {
2069
+ success: false;
2070
+ statusCode: number;
2071
+ data: null;
2072
+ message: string;
2073
+ error: TResponseError;
2074
+ meta: TResponseMeta;
2075
+ } | {
2076
+ success: true;
2077
+ statusCode: number;
2078
+ data: {
2079
+ orderSummary: {
2080
+ totalOrders: number;
2081
+ totalSpent: number;
2082
+ lastOrderAt: Date | null;
2083
+ };
2084
+ uuid: string;
2085
+ email: string;
2086
+ createdAt: Date | null;
2087
+ updatedAt: Date | null;
2088
+ username: string;
2089
+ role: string;
2090
+ isActive: boolean | null;
2091
+ networks: {
2092
+ createdAt: Date | null;
2093
+ updatedAt: Date | null;
2094
+ id: number;
2095
+ provider: string;
2096
+ providerId: string;
2097
+ }[];
2098
+ profile: {
2099
+ createdAt: Date | null;
2100
+ updatedAt: Date | null;
2101
+ id: number;
2102
+ fullname: string;
2103
+ phoneNumber: string | null;
2104
+ bio: string | null;
2105
+ gender: number | null;
2106
+ socialLinks: unknown;
2107
+ dateOfBirth: Date | null;
2108
+ };
2109
+ };
2110
+ message: null;
2111
+ error: null;
2112
+ meta: TResponseMeta;
2113
+ };
2114
+ 422: {
2115
+ type: "validation";
2116
+ on: string;
2117
+ summary?: string;
2118
+ message?: string;
2119
+ found?: unknown;
2120
+ property?: string;
2121
+ expected?: string;
2122
+ };
2123
+ }>>) & {
2124
+ '~path': string;
2125
+ };
2126
+ orders: ((params: {
2127
+ orderUuid: string | number;
2128
+ }) => {
2129
+ get: ((options?: {
2130
+ fetch?: RequestInit | undefined;
2131
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
2132
+ headers?: {} | undefined;
2133
+ query?: {} | undefined;
2134
+ } | undefined) => Promise<Treaty.TreatyResponse<{
2135
+ 200: {
2136
+ success: false;
2137
+ statusCode: number;
2138
+ data: null;
2139
+ message: string;
2140
+ error: TResponseError;
2141
+ meta: TResponseMeta;
2142
+ } | {
2143
+ success: true;
2144
+ statusCode: number;
2145
+ data: {
2146
+ order: {
2147
+ name: string | null;
2148
+ uuid: string;
2149
+ status: "DRAFT" | "PENDING" | "CONFIRMED" | "PROCESSING" | "COMPLETED" | "CANCELLED";
2150
+ orderCode: string;
2151
+ userUuid: string | null;
2152
+ customerName: string | null;
2153
+ customerEmail: string | null;
2154
+ customerPhone: string | null;
2155
+ shippingAddress: unknown;
2156
+ subtotalAmount: number | null;
2157
+ discountTotal: number | null;
2158
+ taxTotal: number | null;
2159
+ depositSurchargeTotal: number | null;
2160
+ otherSurchargeTotal: number | null;
2161
+ totalDue: number | null;
2162
+ totalPaid: number | null;
2163
+ totalRefunded: number | null;
2164
+ createdAt: Date;
2165
+ updatedAt: Date;
2166
+ orderType: "ORDER" | "IN-STOCK";
2167
+ accessToken: string | null;
2168
+ guestInfo: unknown;
2169
+ appliedDepositName: string | null;
2170
+ appliedDepositType: "PERCENTAGE" | "FIXED" | null;
2171
+ appliedDepositValue: number | null;
2172
+ depositRequiredAmount: number | null;
2173
+ balanceRemaining: number | null;
2174
+ totalWeightGram: number | null;
2175
+ shipingNote: string | null;
2176
+ estimatedDeliveryAt: Date | null;
2177
+ paymentStatus: "PENDING" | "PAID" | "PARTIALLY_PAID" | "REFUNDED";
2178
+ fulfillmentStatus: "UNFULFILLED" | "PARTIALLY_FULFILLED" | "FULFILLED" | "RETURNED";
2179
+ riskLevel: "LOW" | "MEDIUM" | "HIGH";
2180
+ completedAt: Date | null;
2181
+ cancelledAt: Date | null;
2182
+ cancelReason: string | null;
2183
+ cancelledBy: string | null;
2184
+ deletedAt: Date | null;
2185
+ orderManifests: {
2186
+ uuid: string;
2187
+ status: "PROCESSING" | "CANCELLED" | "PURCHASED" | "WAREHOUSE_ABROAD" | "IN_TRANSIT" | "ARRIVED_VN" | "DELIVERED";
2188
+ createdAt: Date | null;
2189
+ updatedAt: Date | null;
2190
+ productName: string | null;
2191
+ productUrl: string | null;
2192
+ attributes: unknown;
2193
+ originCountry: string | null;
2194
+ vendorName: string | null;
2195
+ unitPrice: number;
2196
+ quantityOrdered: number;
2197
+ quantityFulfilled: number;
2198
+ totalLineAmount: number;
2199
+ note: string | null;
2200
+ variant: {
2201
+ name: string;
2202
+ uuid: string;
2203
+ createdAt: Date | null;
2204
+ updatedAt: Date | null;
2205
+ options: {
2206
+ value: string;
2207
+ option: {
2208
+ name: string;
2209
+ };
2210
+ }[];
2211
+ media: {
2212
+ createdAt: Date | null;
2213
+ updatedAt: Date | null;
2214
+ media: {
2215
+ uuid: string;
2216
+ path: string;
2217
+ altText: string | null;
2218
+ };
2219
+ };
2220
+ };
2221
+ }[];
2222
+ orderTimelines: {
2223
+ uuid: string;
2224
+ status: "COMPLETED" | "IN_PROGRESS" | "SKIPPED" | "FAILED";
2225
+ createdAt: Date;
2226
+ updatedAt: Date;
2227
+ completedAt: Date | null;
2228
+ title: string;
2229
+ content: string | null;
2230
+ manifestUuid: string | null;
2231
+ milestoneCode: "PURCHASED" | "ARRIVED_VN" | "DELIVERED" | "ORDER_CREATED" | "QUOTATION_SENT" | "DEPOSIT_PAID" | "ORDER_CONFIRMED" | "PAYMENT_COMPLETED" | "PAYMENT_RECEIVED" | "PAYMENT_VOIDED" | "ORDER_CANCELLED" | "PURCHASING" | "IN_WAREHOUSE_ABROAD" | "INTERNATIONAL_SHIPPING" | "ITEM_CANCELLED" | "PACKED" | "HANDED_OVER" | "DELIVERING";
2232
+ startedAt: Date;
2233
+ category: "ORDER" | "PAYMENT" | "LOGISTICS";
2234
+ isPublic: boolean;
2235
+ actorUuid: string | null;
2236
+ metadata: unknown;
2237
+ }[];
2238
+ orderSurcharges: {
2239
+ name: string;
2240
+ uuid: string;
2241
+ status: "CANCELLED" | "ACTIVE" | "INACTIVE";
2242
+ createdAt: Date;
2243
+ updatedAt: Date;
2244
+ description: string | null;
2245
+ surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
2246
+ amount: number;
2247
+ applyTo: "BEFORE_TAX" | "AFTER_TAX";
2248
+ paymentUuid: string | null;
2249
+ }[];
2250
+ payments: {
2251
+ createdAt: Date;
2252
+ updatedAt: Date;
2253
+ id: string;
2254
+ paymentType: "OTHER" | "DEPOSIT" | "FULL_PAYMENT" | "PARTIAL_PAYMENT" | "FEE" | "ADJUSTMENT";
2255
+ orderStatus: "CANCELLED" | "CAPTURED" | "AUTHENTICATION_NOT_NEEDED";
2256
+ orderAmount: number;
2257
+ orderCurrency: string;
2258
+ orderDescription: string;
2259
+ authenticationStatus: string | null;
2260
+ checkoutUrl: string;
2261
+ }[];
2262
+ };
2263
+ };
2264
+ message: null;
2265
+ error: null;
2266
+ meta: TResponseMeta;
2267
+ };
2268
+ 422: {
2269
+ type: "validation";
2270
+ on: string;
2271
+ summary?: string;
2272
+ message?: string;
2273
+ found?: unknown;
2274
+ property?: string;
2275
+ expected?: string;
2276
+ };
2277
+ }>>) & {
2278
+ '~path': string;
2279
+ };
2280
+ '~path': string;
2281
+ } & {
2282
+ get: ((options?: {
2283
+ fetch?: RequestInit | undefined;
2284
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
2285
+ headers?: {} | undefined;
2286
+ query?: {} | undefined;
2287
+ } | undefined) => Promise<Treaty.TreatyResponse<{
2288
+ 200: {
2289
+ success: false;
2290
+ statusCode: number;
2291
+ data: null;
2292
+ message: string;
2293
+ error: TResponseError;
2294
+ meta: TResponseMeta;
2295
+ } | {
2296
+ success: true;
2297
+ statusCode: number;
2298
+ data: {
2299
+ order: {
2300
+ name: string | null;
2301
+ uuid: string;
2302
+ status: "DRAFT" | "PENDING" | "CONFIRMED" | "PROCESSING" | "COMPLETED" | "CANCELLED";
2303
+ orderCode: string;
2304
+ userUuid: string | null;
2305
+ customerName: string | null;
2306
+ customerEmail: string | null;
2307
+ customerPhone: string | null;
2308
+ shippingAddress: unknown;
2309
+ subtotalAmount: number | null;
2310
+ discountTotal: number | null;
2311
+ taxTotal: number | null;
2312
+ depositSurchargeTotal: number | null;
2313
+ otherSurchargeTotal: number | null;
2314
+ totalDue: number | null;
2315
+ totalPaid: number | null;
2316
+ totalRefunded: number | null;
2317
+ createdAt: Date;
2318
+ updatedAt: Date;
2319
+ orderType: "ORDER" | "IN-STOCK";
2320
+ accessToken: string | null;
2321
+ guestInfo: unknown;
2322
+ appliedDepositName: string | null;
2323
+ appliedDepositType: "PERCENTAGE" | "FIXED" | null;
2324
+ appliedDepositValue: number | null;
2325
+ depositRequiredAmount: number | null;
2326
+ balanceRemaining: number | null;
2327
+ totalWeightGram: number | null;
2328
+ shipingNote: string | null;
2329
+ estimatedDeliveryAt: Date | null;
2330
+ paymentStatus: "PENDING" | "PAID" | "PARTIALLY_PAID" | "REFUNDED";
2331
+ fulfillmentStatus: "UNFULFILLED" | "PARTIALLY_FULFILLED" | "FULFILLED" | "RETURNED";
2332
+ riskLevel: "LOW" | "MEDIUM" | "HIGH";
2333
+ completedAt: Date | null;
2334
+ cancelledAt: Date | null;
2335
+ cancelReason: string | null;
2336
+ cancelledBy: string | null;
2337
+ deletedAt: Date | null;
2338
+ orderManifests: {
2339
+ uuid: string;
2340
+ status: "PROCESSING" | "CANCELLED" | "PURCHASED" | "WAREHOUSE_ABROAD" | "IN_TRANSIT" | "ARRIVED_VN" | "DELIVERED";
2341
+ createdAt: Date | null;
2342
+ updatedAt: Date | null;
2343
+ productName: string | null;
2344
+ productUrl: string | null;
2345
+ attributes: unknown;
2346
+ originCountry: string | null;
2347
+ vendorName: string | null;
2348
+ unitPrice: number;
2349
+ quantityOrdered: number;
2350
+ quantityFulfilled: number;
2351
+ totalLineAmount: number;
2352
+ note: string | null;
2353
+ variant: {
2354
+ name: string;
2355
+ uuid: string;
2356
+ createdAt: Date | null;
2357
+ updatedAt: Date | null;
2358
+ options: {
2359
+ value: string;
2360
+ option: {
2361
+ name: string;
2362
+ };
2363
+ }[];
2364
+ media: {
2365
+ createdAt: Date | null;
2366
+ updatedAt: Date | null;
2367
+ media: {
2368
+ uuid: string;
2369
+ path: string;
2370
+ altText: string | null;
2371
+ };
2372
+ };
2373
+ };
2374
+ }[];
2375
+ orderTimelines: {
2376
+ uuid: string;
2377
+ status: "COMPLETED" | "IN_PROGRESS" | "SKIPPED" | "FAILED";
2378
+ createdAt: Date;
2379
+ updatedAt: Date;
2380
+ completedAt: Date | null;
2381
+ title: string;
2382
+ content: string | null;
2383
+ manifestUuid: string | null;
2384
+ milestoneCode: "PURCHASED" | "ARRIVED_VN" | "DELIVERED" | "ORDER_CREATED" | "QUOTATION_SENT" | "DEPOSIT_PAID" | "ORDER_CONFIRMED" | "PAYMENT_COMPLETED" | "PAYMENT_RECEIVED" | "PAYMENT_VOIDED" | "ORDER_CANCELLED" | "PURCHASING" | "IN_WAREHOUSE_ABROAD" | "INTERNATIONAL_SHIPPING" | "ITEM_CANCELLED" | "PACKED" | "HANDED_OVER" | "DELIVERING";
2385
+ startedAt: Date;
2386
+ category: "ORDER" | "PAYMENT" | "LOGISTICS";
2387
+ isPublic: boolean;
2388
+ actorUuid: string | null;
2389
+ metadata: unknown;
2390
+ }[];
2391
+ orderSurcharges: {
2392
+ name: string;
2393
+ uuid: string;
2394
+ status: "CANCELLED" | "ACTIVE" | "INACTIVE";
2395
+ createdAt: Date;
2396
+ updatedAt: Date;
2397
+ description: string | null;
2398
+ surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
2399
+ amount: number;
2400
+ applyTo: "BEFORE_TAX" | "AFTER_TAX";
2401
+ paymentUuid: string | null;
2402
+ }[];
2403
+ payments: {
2404
+ createdAt: Date;
2405
+ updatedAt: Date;
2406
+ id: string;
2407
+ paymentType: "OTHER" | "DEPOSIT" | "FULL_PAYMENT" | "PARTIAL_PAYMENT" | "FEE" | "ADJUSTMENT";
2408
+ orderStatus: "CANCELLED" | "CAPTURED" | "AUTHENTICATION_NOT_NEEDED";
2409
+ orderAmount: number;
2410
+ orderCurrency: string;
2411
+ orderDescription: string;
2412
+ authenticationStatus: string | null;
2413
+ checkoutUrl: string;
2414
+ }[];
2415
+ };
2416
+ };
2417
+ message: null;
2418
+ error: null;
2419
+ meta: TResponseMeta;
2420
+ };
2421
+ 422: {
2422
+ type: "validation";
2423
+ on: string;
2424
+ summary?: string;
2425
+ message?: string;
2426
+ found?: unknown;
2427
+ property?: string;
2428
+ expected?: string;
2429
+ };
2430
+ }>>) & {
2431
+ '~path': string;
2432
+ };
2433
+ }) & {
2434
+ get: ((options?: {
2435
+ fetch?: RequestInit | undefined;
2436
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
2437
+ headers?: {} | undefined;
2438
+ query?: {
2439
+ page?: number | undefined;
2440
+ limit?: number | undefined;
2441
+ status?: "DRAFT" | "PENDING" | "CONFIRMED" | "PROCESSING" | "COMPLETED" | "CANCELLED" | undefined;
2442
+ paymentStatus?: "PENDING" | "PAID" | "PARTIALLY_PAID" | "REFUNDED" | undefined;
2443
+ } | undefined;
2444
+ } | undefined) => Promise<Treaty.TreatyResponse<{
2445
+ 200: {
2446
+ success: false;
2447
+ statusCode: number;
2448
+ data: null;
2449
+ message: string;
2450
+ error: TResponseError;
2451
+ meta: TResponseMeta;
2452
+ } | {
2453
+ success: true;
2454
+ statusCode: number;
2455
+ data: {
2456
+ data: {
2457
+ name: string | null;
2458
+ uuid: string;
2459
+ status: "DRAFT" | "PENDING" | "CONFIRMED" | "PROCESSING" | "COMPLETED" | "CANCELLED";
2460
+ orderCode: string;
2461
+ userUuid: string | null;
2462
+ customerName: string | null;
2463
+ customerEmail: string | null;
2464
+ customerPhone: string | null;
2465
+ shippingAddress: unknown;
2466
+ subtotalAmount: number | null;
2467
+ taxTotal: number | null;
2468
+ depositSurchargeTotal: number | null;
2469
+ otherSurchargeTotal: number | null;
2470
+ totalDue: number | null;
2471
+ totalPaid: number | null;
2472
+ totalRefunded: number | null;
2473
+ createdAt: Date;
2474
+ updatedAt: Date;
2475
+ orderType: "ORDER" | "IN-STOCK";
2476
+ appliedDepositName: string | null;
2477
+ appliedDepositType: "PERCENTAGE" | "FIXED" | null;
2478
+ appliedDepositValue: number | null;
2479
+ depositRequiredAmount: number | null;
2480
+ balanceRemaining: number | null;
2481
+ paymentStatus: "PENDING" | "PAID" | "PARTIALLY_PAID" | "REFUNDED";
2482
+ fulfillmentStatus: "UNFULFILLED" | "PARTIALLY_FULFILLED" | "FULFILLED" | "RETURNED";
2483
+ riskLevel: "LOW" | "MEDIUM" | "HIGH";
2484
+ completedAt: Date | null;
2485
+ }[];
2486
+ pagination: {
2487
+ page: number;
2488
+ limit: number;
2489
+ total: number;
2490
+ totalPages: number;
2491
+ hasNextPage: boolean;
2492
+ hasPreviousPage: boolean;
2493
+ };
2494
+ };
2495
+ message: null;
2496
+ error: null;
2497
+ meta: TResponseMeta;
2498
+ };
2499
+ 422: {
2500
+ type: "validation";
2501
+ on: string;
2502
+ summary?: string;
2503
+ message?: string;
2504
+ found?: unknown;
2505
+ property?: string;
2506
+ expected?: string;
2507
+ };
2508
+ }>>) & {
2509
+ '~path': string;
2510
+ };
2511
+ } & {
2512
+ '~path': string;
2513
+ };
2514
+ patch: ((body?: {
2515
+ role?: ERole | undefined;
2516
+ isActive?: boolean | undefined;
2517
+ fullname?: string | undefined;
2518
+ phoneNumber?: string | undefined;
2519
+ bio?: string | undefined;
2520
+ gender?: number | undefined;
2521
+ dateOfBirth?: string | undefined;
2522
+ } | undefined, options?: {
2523
+ fetch?: RequestInit | undefined;
2524
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
2525
+ headers?: {} | undefined;
2526
+ query?: {} | undefined;
2527
+ } | undefined) => Promise<Treaty.TreatyResponse<{
2528
+ 200: {
2529
+ success: true;
2530
+ statusCode: number;
2531
+ data: null;
2532
+ message: string;
2533
+ error: null;
2534
+ meta: TResponseMeta;
2535
+ } | {
2536
+ success: false;
2537
+ statusCode: number;
2538
+ data: null;
2539
+ message: string;
2540
+ error: TResponseError;
2541
+ meta: TResponseMeta;
2542
+ };
2543
+ 422: {
2544
+ type: "validation";
2545
+ on: string;
2546
+ summary?: string;
2547
+ message?: string;
2548
+ found?: unknown;
2549
+ property?: string;
2550
+ expected?: string;
2551
+ };
2552
+ }>>) & {
2553
+ '~path': string;
2554
+ };
2555
+ password: {
2556
+ patch: ((body: {
2557
+ password: string;
2558
+ }, options?: {
2559
+ fetch?: RequestInit | undefined;
2560
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
2561
+ headers?: {} | undefined;
2562
+ query?: {} | undefined;
2563
+ } | undefined) => Promise<Treaty.TreatyResponse<{
2564
+ 200: {
2565
+ success: true;
2566
+ statusCode: number;
2567
+ data: null;
2568
+ message: string;
2569
+ error: null;
2570
+ meta: TResponseMeta;
2571
+ } | {
2572
+ success: false;
2573
+ statusCode: number;
2574
+ data: null;
2575
+ message: string;
2576
+ error: TResponseError;
2577
+ meta: TResponseMeta;
2578
+ };
2579
+ 422: {
2580
+ type: "validation";
2581
+ on: string;
2582
+ summary?: string;
2583
+ message?: string;
2584
+ found?: unknown;
2585
+ property?: string;
2586
+ expected?: string;
2587
+ };
2588
+ }>>) & {
2589
+ '~path': string;
2590
+ };
2591
+ } & {
717
2592
  '~path': string;
718
2593
  };
719
- password: {
2594
+ status: {
720
2595
  patch: ((body: {
721
- password: string;
2596
+ isActive: boolean;
722
2597
  }, options?: {
723
2598
  fetch?: RequestInit | undefined;
724
2599
  throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
@@ -798,6 +2673,9 @@ declare const _createClient: () => {
798
2673
  query?: {
799
2674
  page?: number | undefined;
800
2675
  limit?: number | undefined;
2676
+ search?: string | undefined;
2677
+ email?: string | undefined;
2678
+ phone?: string | undefined;
801
2679
  } | undefined;
802
2680
  } | undefined) => Promise<Treaty.TreatyResponse<{
803
2681
  200: {
@@ -813,16 +2691,16 @@ declare const _createClient: () => {
813
2691
  data: {
814
2692
  data: {
815
2693
  uuid: string;
2694
+ username: string;
816
2695
  email: string;
2696
+ role: string;
2697
+ isActive: boolean | null;
817
2698
  createdAt: Date | null;
818
2699
  updatedAt: Date | null;
819
- isActive: boolean | null;
820
- username: string;
821
- role: string;
822
2700
  profile: {
823
2701
  fullname: string;
824
2702
  phoneNumber: string | null;
825
- };
2703
+ } | null;
826
2704
  }[];
827
2705
  pagination: {
828
2706
  page: number;
@@ -949,6 +2827,202 @@ declare const _createClient: () => {
949
2827
  } & {
950
2828
  '~path': string;
951
2829
  };
2830
+ bills: ((params: {
2831
+ billUuid: string | number;
2832
+ }) => {
2833
+ get: ((options?: {
2834
+ fetch?: RequestInit | undefined;
2835
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
2836
+ headers?: {} | undefined;
2837
+ query?: {} | undefined;
2838
+ } | undefined) => Promise<Treaty.TreatyResponse<{
2839
+ 200: {
2840
+ success: false;
2841
+ statusCode: number;
2842
+ data: null;
2843
+ message: string;
2844
+ error: TResponseError;
2845
+ meta: TResponseMeta;
2846
+ } | {
2847
+ success: true;
2848
+ statusCode: number;
2849
+ data: {
2850
+ bill: {
2851
+ uuid: string;
2852
+ billCode: string;
2853
+ orderUuid: string;
2854
+ orderCode: string;
2855
+ userUuid: string | null;
2856
+ customerName: string | null;
2857
+ customerEmail: string | null;
2858
+ customerPhone: string | null;
2859
+ shippingAddress: unknown;
2860
+ subtotalAmount: number | null;
2861
+ discountTotal: number | null;
2862
+ taxTotal: number | null;
2863
+ depositSurchargeTotal: number | null;
2864
+ otherSurchargeTotal: number | null;
2865
+ totalDue: number | null;
2866
+ totalPaid: number | null;
2867
+ totalRefunded: number | null;
2868
+ items: unknown;
2869
+ surcharges: unknown;
2870
+ coupons: unknown;
2871
+ issuedAt: Date;
2872
+ createdAt: Date;
2873
+ updatedAt: Date;
2874
+ };
2875
+ };
2876
+ message: null;
2877
+ error: null;
2878
+ meta: TResponseMeta;
2879
+ };
2880
+ 422: {
2881
+ type: "validation";
2882
+ on: string;
2883
+ summary?: string;
2884
+ message?: string;
2885
+ found?: unknown;
2886
+ property?: string;
2887
+ expected?: string;
2888
+ };
2889
+ }>>) & {
2890
+ '~path': string;
2891
+ };
2892
+ '~path': string;
2893
+ } & {
2894
+ get: ((options?: {
2895
+ fetch?: RequestInit | undefined;
2896
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
2897
+ headers?: {} | undefined;
2898
+ query?: {} | undefined;
2899
+ } | undefined) => Promise<Treaty.TreatyResponse<{
2900
+ 200: {
2901
+ success: false;
2902
+ statusCode: number;
2903
+ data: null;
2904
+ message: string;
2905
+ error: TResponseError;
2906
+ meta: TResponseMeta;
2907
+ } | {
2908
+ success: true;
2909
+ statusCode: number;
2910
+ data: {
2911
+ bill: {
2912
+ uuid: string;
2913
+ billCode: string;
2914
+ orderUuid: string;
2915
+ orderCode: string;
2916
+ userUuid: string | null;
2917
+ customerName: string | null;
2918
+ customerEmail: string | null;
2919
+ customerPhone: string | null;
2920
+ shippingAddress: unknown;
2921
+ subtotalAmount: number | null;
2922
+ discountTotal: number | null;
2923
+ taxTotal: number | null;
2924
+ depositSurchargeTotal: number | null;
2925
+ otherSurchargeTotal: number | null;
2926
+ totalDue: number | null;
2927
+ totalPaid: number | null;
2928
+ totalRefunded: number | null;
2929
+ items: unknown;
2930
+ surcharges: unknown;
2931
+ coupons: unknown;
2932
+ issuedAt: Date;
2933
+ createdAt: Date;
2934
+ updatedAt: Date;
2935
+ };
2936
+ };
2937
+ message: null;
2938
+ error: null;
2939
+ meta: TResponseMeta;
2940
+ };
2941
+ 422: {
2942
+ type: "validation";
2943
+ on: string;
2944
+ summary?: string;
2945
+ message?: string;
2946
+ found?: unknown;
2947
+ property?: string;
2948
+ expected?: string;
2949
+ };
2950
+ }>>) & {
2951
+ '~path': string;
2952
+ };
2953
+ }) & {
2954
+ get: ((options?: {
2955
+ fetch?: RequestInit | undefined;
2956
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
2957
+ headers?: {} | undefined;
2958
+ query?: {
2959
+ page?: number | undefined;
2960
+ limit?: number | undefined;
2961
+ search?: string | undefined;
2962
+ userUuid?: string | undefined;
2963
+ issuedAtFrom?: string | undefined;
2964
+ issuedAtTo?: string | undefined;
2965
+ } | undefined;
2966
+ } | undefined) => Promise<Treaty.TreatyResponse<{
2967
+ 200: {
2968
+ success: false;
2969
+ statusCode: number;
2970
+ data: null;
2971
+ message: string;
2972
+ error: TResponseError;
2973
+ meta: TResponseMeta;
2974
+ } | {
2975
+ success: true;
2976
+ statusCode: number;
2977
+ data: {
2978
+ data: {
2979
+ uuid: string;
2980
+ billCode: string;
2981
+ orderUuid: string;
2982
+ orderCode: string;
2983
+ userUuid: string | null;
2984
+ customerName: string | null;
2985
+ customerEmail: string | null;
2986
+ customerPhone: string | null;
2987
+ subtotalAmount: number | null;
2988
+ discountTotal: number | null;
2989
+ taxTotal: number | null;
2990
+ depositSurchargeTotal: number | null;
2991
+ otherSurchargeTotal: number | null;
2992
+ totalDue: number | null;
2993
+ totalPaid: number | null;
2994
+ totalRefunded: number | null;
2995
+ issuedAt: Date;
2996
+ createdAt: Date;
2997
+ }[];
2998
+ pagination: {
2999
+ page: number;
3000
+ limit: number;
3001
+ total: number;
3002
+ totalPages: number;
3003
+ hasNextPage: boolean;
3004
+ hasPreviousPage: boolean;
3005
+ };
3006
+ };
3007
+ message: null;
3008
+ error: null;
3009
+ meta: TResponseMeta;
3010
+ };
3011
+ 422: {
3012
+ type: "validation";
3013
+ on: string;
3014
+ summary?: string;
3015
+ message?: string;
3016
+ found?: unknown;
3017
+ property?: string;
3018
+ expected?: string;
3019
+ };
3020
+ }>>) & {
3021
+ '~path': string;
3022
+ };
3023
+ } & {
3024
+ '~path': string;
3025
+ };
952
3026
  category: ((params: {
953
3027
  uuid: string | number;
954
3028
  }) => {
@@ -971,17 +3045,17 @@ declare const _createClient: () => {
971
3045
  data: {
972
3046
  name: string;
973
3047
  uuid: string;
974
- slug: string;
975
- description: string | null;
976
3048
  createdAt: Date;
977
3049
  updatedAt: Date;
3050
+ description: string | null;
3051
+ slug: string;
978
3052
  sub: {
979
3053
  name: string;
980
3054
  uuid: string;
981
- slug: string;
982
- description: string | null;
983
3055
  createdAt: Date;
984
3056
  updatedAt: Date;
3057
+ description: string | null;
3058
+ slug: string;
985
3059
  }[];
986
3060
  };
987
3061
  message: null;
@@ -1183,17 +3257,17 @@ declare const _createClient: () => {
1183
3257
  data: {
1184
3258
  name: string;
1185
3259
  uuid: string;
1186
- slug: string;
1187
- description: string | null;
1188
3260
  createdAt: Date;
1189
3261
  updatedAt: Date;
3262
+ description: string | null;
3263
+ slug: string;
1190
3264
  sub: {
1191
3265
  name: string;
1192
3266
  uuid: string;
1193
- slug: string;
1194
- description: string | null;
1195
3267
  createdAt: Date;
1196
3268
  updatedAt: Date;
3269
+ description: string | null;
3270
+ slug: string;
1197
3271
  }[];
1198
3272
  };
1199
3273
  message: null;
@@ -1394,18 +3468,18 @@ declare const _createClient: () => {
1394
3468
  data: {
1395
3469
  name: string;
1396
3470
  uuid: string;
1397
- slug: string;
1398
- description: string | null;
1399
- parentUuid: string | null;
1400
3471
  createdAt: Date;
1401
3472
  updatedAt: Date;
3473
+ description: string | null;
3474
+ slug: string;
3475
+ parentUuid: string | null;
1402
3476
  sub: {
1403
3477
  name: string;
1404
3478
  uuid: string;
1405
- slug: string;
1406
- description: string | null;
1407
3479
  createdAt: Date;
1408
3480
  updatedAt: Date;
3481
+ description: string | null;
3482
+ slug: string;
1409
3483
  }[];
1410
3484
  }[];
1411
3485
  message: null;
@@ -2136,9 +4210,9 @@ declare const _createClient: () => {
2136
4210
  data: {
2137
4211
  name: string;
2138
4212
  uuid: string;
2139
- description: string | null;
2140
4213
  createdAt: Date;
2141
4214
  updatedAt: Date;
4215
+ description: string | null;
2142
4216
  valueType: "PERCENTAGE" | "FIXED";
2143
4217
  depositValue: number;
2144
4218
  surchargeValue: number;
@@ -3904,9 +5978,9 @@ declare const _createClient: () => {
3904
5978
  uuid: string;
3905
5979
  createdAt: Date;
3906
5980
  updatedAt: Date;
5981
+ isActive: boolean;
3907
5982
  pageId: string;
3908
5983
  pageName: string;
3909
- isActive: boolean;
3910
5984
  }[];
3911
5985
  message: null;
3912
5986
  error: null;
@@ -3988,9 +6062,9 @@ declare const _createClient: () => {
3988
6062
  name: string;
3989
6063
  uuid: string;
3990
6064
  path: string;
3991
- description: string | null;
3992
6065
  createdAt: Date | null;
3993
6066
  updatedAt: Date | null;
6067
+ description: string | null;
3994
6068
  size: number;
3995
6069
  mimeType: string;
3996
6070
  altText: string | null;
@@ -4066,9 +6140,9 @@ declare const _createClient: () => {
4066
6140
  name: string;
4067
6141
  uuid: string;
4068
6142
  path: string;
4069
- description: string | null;
4070
6143
  createdAt: Date | null;
4071
6144
  updatedAt: Date | null;
6145
+ description: string | null;
4072
6146
  size: number;
4073
6147
  mimeType: string;
4074
6148
  altText: string | null;
@@ -4149,9 +6223,9 @@ declare const _createClient: () => {
4149
6223
  name: string;
4150
6224
  uuid: string;
4151
6225
  path: string;
4152
- description: string | null;
4153
6226
  createdAt: Date | null;
4154
6227
  updatedAt: Date | null;
6228
+ description: string | null;
4155
6229
  size: number;
4156
6230
  mimeType: string;
4157
6231
  altText: string | null;
@@ -4160,9 +6234,9 @@ declare const _createClient: () => {
4160
6234
  name: string;
4161
6235
  uuid: string;
4162
6236
  path: string;
4163
- description: string | null;
4164
6237
  createdAt: Date | null;
4165
6238
  updatedAt: Date | null;
6239
+ description: string | null;
4166
6240
  size: number;
4167
6241
  mimeType: string;
4168
6242
  altText: string | null;
@@ -4219,9 +6293,9 @@ declare const _createClient: () => {
4219
6293
  name: string;
4220
6294
  uuid: string;
4221
6295
  path: string;
4222
- description: string | null;
4223
6296
  createdAt: Date | null;
4224
6297
  updatedAt: Date | null;
6298
+ description: string | null;
4225
6299
  size: number;
4226
6300
  mimeType: string;
4227
6301
  altText: string | null;
@@ -4277,9 +6351,9 @@ declare const _createClient: () => {
4277
6351
  name: string;
4278
6352
  uuid: string;
4279
6353
  path: string;
4280
- description: string | null;
4281
6354
  createdAt: Date | null;
4282
6355
  updatedAt: Date | null;
6356
+ description: string | null;
4283
6357
  size: number;
4284
6358
  mimeType: string;
4285
6359
  altText: string | null;
@@ -4440,7 +6514,7 @@ declare const _createClient: () => {
4440
6514
  success: true;
4441
6515
  statusCode: number;
4442
6516
  data: {
4443
- type: "ORDER_NOTE" | "PRODUCT_NOTE" | "OTHER";
6517
+ type: "OTHER" | "ORDER_NOTE" | "PRODUCT_NOTE";
4444
6518
  uuid: string;
4445
6519
  createdAt: Date;
4446
6520
  updatedAt: Date;
@@ -4591,7 +6665,7 @@ declare const _createClient: () => {
4591
6665
  success: true;
4592
6666
  statusCode: number;
4593
6667
  data: {
4594
- type: "ORDER_NOTE" | "PRODUCT_NOTE" | "OTHER";
6668
+ type: "OTHER" | "ORDER_NOTE" | "PRODUCT_NOTE";
4595
6669
  uuid: string;
4596
6670
  createdAt: Date;
4597
6671
  updatedAt: Date;
@@ -4729,7 +6803,7 @@ declare const _createClient: () => {
4729
6803
  throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
4730
6804
  headers?: {} | undefined;
4731
6805
  query?: {
4732
- type?: "ORDER_NOTE" | "OTHER" | undefined;
6806
+ type?: "OTHER" | "ORDER_NOTE" | undefined;
4733
6807
  search?: string | undefined;
4734
6808
  limit?: number | undefined;
4735
6809
  page?: number | undefined;
@@ -4748,7 +6822,7 @@ declare const _createClient: () => {
4748
6822
  statusCode: number;
4749
6823
  data: {
4750
6824
  data: {
4751
- type: "ORDER_NOTE" | "PRODUCT_NOTE" | "OTHER";
6825
+ type: "OTHER" | "ORDER_NOTE" | "PRODUCT_NOTE";
4752
6826
  uuid: string;
4753
6827
  createdAt: Date;
4754
6828
  updatedAt: Date;
@@ -4791,7 +6865,7 @@ declare const _createClient: () => {
4791
6865
  };
4792
6866
  post: ((body: {
4793
6867
  orderId?: string | undefined;
4794
- type: "ORDER_NOTE" | "OTHER";
6868
+ type: "OTHER" | "ORDER_NOTE";
4795
6869
  title: string;
4796
6870
  content: string;
4797
6871
  }, options?: {
@@ -5146,29 +7220,29 @@ declare const _createClient: () => {
5146
7220
  name: string | null;
5147
7221
  uuid: string;
5148
7222
  status: "DRAFT" | "PENDING" | "CONFIRMED" | "PROCESSING" | "COMPLETED" | "CANCELLED";
5149
- createdAt: Date;
5150
- updatedAt: Date;
5151
- userUuid: string | null;
5152
- orderType: "ORDER" | "IN-STOCK";
5153
7223
  orderCode: string;
5154
- accessToken: string | null;
5155
- guestInfo: unknown;
5156
- customerEmail: string | null;
7224
+ userUuid: string | null;
5157
7225
  customerName: string | null;
7226
+ customerEmail: string | null;
5158
7227
  customerPhone: string | null;
5159
7228
  shippingAddress: unknown;
5160
7229
  subtotalAmount: number | null;
5161
7230
  discountTotal: number | null;
5162
7231
  taxTotal: number | null;
5163
- appliedDepositName: string | null;
5164
- appliedDepositType: "PERCENTAGE" | "FIXED" | null;
5165
- appliedDepositValue: number | null;
5166
7232
  depositSurchargeTotal: number | null;
5167
7233
  otherSurchargeTotal: number | null;
5168
7234
  totalDue: number | null;
5169
- depositRequiredAmount: number | null;
5170
7235
  totalPaid: number | null;
5171
7236
  totalRefunded: number | null;
7237
+ createdAt: Date;
7238
+ updatedAt: Date;
7239
+ orderType: "ORDER" | "IN-STOCK";
7240
+ accessToken: string | null;
7241
+ guestInfo: unknown;
7242
+ appliedDepositName: string | null;
7243
+ appliedDepositType: "PERCENTAGE" | "FIXED" | null;
7244
+ appliedDepositValue: number | null;
7245
+ depositRequiredAmount: number | null;
5172
7246
  balanceRemaining: number | null;
5173
7247
  totalWeightGram: number | null;
5174
7248
  shipingNote: string | null;
@@ -5181,6 +7255,11 @@ declare const _createClient: () => {
5181
7255
  cancelReason: string | null;
5182
7256
  cancelledBy: string | null;
5183
7257
  deletedAt: Date | null;
7258
+ user: {
7259
+ uuid: string;
7260
+ email: string;
7261
+ username: string;
7262
+ } | null;
5184
7263
  orderManifests: {
5185
7264
  uuid: string;
5186
7265
  status: "PROCESSING" | "CANCELLED" | "PURCHASED" | "WAREHOUSE_ABROAD" | "IN_TRANSIT" | "ARRIVED_VN" | "DELIVERED";
@@ -5223,9 +7302,9 @@ declare const _createClient: () => {
5223
7302
  status: "COMPLETED" | "IN_PROGRESS" | "SKIPPED" | "FAILED";
5224
7303
  createdAt: Date;
5225
7304
  updatedAt: Date;
7305
+ completedAt: Date | null;
5226
7306
  title: string;
5227
7307
  content: string | null;
5228
- completedAt: Date | null;
5229
7308
  manifestUuid: string | null;
5230
7309
  milestoneCode: "PURCHASED" | "ARRIVED_VN" | "DELIVERED" | "ORDER_CREATED" | "QUOTATION_SENT" | "DEPOSIT_PAID" | "ORDER_CONFIRMED" | "PAYMENT_COMPLETED" | "PAYMENT_RECEIVED" | "PAYMENT_VOIDED" | "ORDER_CANCELLED" | "PURCHASING" | "IN_WAREHOUSE_ABROAD" | "INTERNATIONAL_SHIPPING" | "ITEM_CANCELLED" | "PACKED" | "HANDED_OVER" | "DELIVERING";
5231
7310
  startedAt: Date;
@@ -5238,9 +7317,9 @@ declare const _createClient: () => {
5238
7317
  name: string;
5239
7318
  uuid: string;
5240
7319
  status: "CANCELLED" | "ACTIVE" | "INACTIVE";
5241
- description: string | null;
5242
7320
  createdAt: Date;
5243
7321
  updatedAt: Date;
7322
+ description: string | null;
5244
7323
  surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
5245
7324
  amount: number;
5246
7325
  applyTo: "BEFORE_TAX" | "AFTER_TAX";
@@ -5546,10 +7625,10 @@ declare const _createClient: () => {
5546
7625
  data: {
5547
7626
  uuid: string;
5548
7627
  status: "PROCESSING" | "CANCELLED" | "PURCHASED" | "WAREHOUSE_ABROAD" | "IN_TRANSIT" | "ARRIVED_VN" | "DELIVERED";
5549
- createdAt: Date | null;
5550
- updatedAt: Date | null;
5551
7628
  orderUuid: string;
5552
7629
  orderCode: string | null;
7630
+ createdAt: Date | null;
7631
+ updatedAt: Date | null;
5553
7632
  variantUuid: string;
5554
7633
  productName: string | null;
5555
7634
  productUrl: string | null;
@@ -5899,9 +7978,9 @@ declare const _createClient: () => {
5899
7978
  name: string;
5900
7979
  uuid: string;
5901
7980
  status: "CANCELLED" | "ACTIVE" | "INACTIVE";
5902
- description: string | null;
5903
7981
  createdAt: Date;
5904
7982
  updatedAt: Date;
7983
+ description: string | null;
5905
7984
  surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
5906
7985
  amount: number;
5907
7986
  applyTo: "BEFORE_TAX" | "AFTER_TAX";
@@ -5926,9 +8005,46 @@ declare const _createClient: () => {
5926
8005
  } & {
5927
8006
  '~path': string;
5928
8007
  };
5929
- delete: ((body?: {
5930
- cancelReason?: string | undefined;
5931
- } | undefined, options?: {
8008
+ permanent: {
8009
+ delete: ((body?: {} | undefined, options?: {
8010
+ fetch?: RequestInit | undefined;
8011
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
8012
+ headers?: {} | undefined;
8013
+ query?: {} | undefined;
8014
+ } | undefined) => Promise<Treaty.TreatyResponse<{
8015
+ 200: {
8016
+ success: false;
8017
+ statusCode: number;
8018
+ data: null;
8019
+ message: string;
8020
+ error: TResponseError;
8021
+ meta: TResponseMeta;
8022
+ } | {
8023
+ success: true;
8024
+ statusCode: number;
8025
+ data: {
8026
+ uuid: string;
8027
+ };
8028
+ message: null;
8029
+ error: null;
8030
+ meta: TResponseMeta;
8031
+ };
8032
+ 422: {
8033
+ type: "validation";
8034
+ on: string;
8035
+ summary?: string;
8036
+ message?: string;
8037
+ found?: unknown;
8038
+ property?: string;
8039
+ expected?: string;
8040
+ };
8041
+ }>>) & {
8042
+ '~path': string;
8043
+ };
8044
+ } & {
8045
+ '~path': string;
8046
+ };
8047
+ delete: ((body?: {} | undefined, options?: {
5932
8048
  fetch?: RequestInit | undefined;
5933
8049
  throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
5934
8050
  headers?: {} | undefined;
@@ -5985,9 +8101,9 @@ declare const _createClient: () => {
5985
8101
  status: "COMPLETED" | "IN_PROGRESS" | "SKIPPED" | "FAILED";
5986
8102
  createdAt: Date;
5987
8103
  updatedAt: Date;
8104
+ completedAt: Date | null;
5988
8105
  title: string;
5989
8106
  content: string | null;
5990
- completedAt: Date | null;
5991
8107
  manifestUuid: string | null;
5992
8108
  milestoneCode: "PURCHASED" | "ARRIVED_VN" | "DELIVERED" | "ORDER_CREATED" | "QUOTATION_SENT" | "DEPOSIT_PAID" | "ORDER_CONFIRMED" | "PAYMENT_COMPLETED" | "PAYMENT_RECEIVED" | "PAYMENT_VOIDED" | "ORDER_CANCELLED" | "PURCHASING" | "IN_WAREHOUSE_ABROAD" | "INTERNATIONAL_SHIPPING" | "ITEM_CANCELLED" | "PACKED" | "HANDED_OVER" | "DELIVERING";
5993
8109
  startedAt: Date;
@@ -6014,6 +8130,197 @@ declare const _createClient: () => {
6014
8130
  } & {
6015
8131
  '~path': string;
6016
8132
  };
8133
+ coupons: ((params: {
8134
+ orderCouponUuid: string | number;
8135
+ }) => {
8136
+ delete: ((body?: {} | undefined, options?: {
8137
+ fetch?: RequestInit | undefined;
8138
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
8139
+ headers?: {} | undefined;
8140
+ query?: {} | undefined;
8141
+ } | undefined) => Promise<Treaty.TreatyResponse<{
8142
+ 200: {
8143
+ success: true;
8144
+ statusCode: number;
8145
+ data: null;
8146
+ message: string;
8147
+ error: null;
8148
+ meta: TResponseMeta;
8149
+ } | {
8150
+ success: false;
8151
+ statusCode: number;
8152
+ data: null;
8153
+ message: string;
8154
+ error: TResponseError;
8155
+ meta: TResponseMeta;
8156
+ };
8157
+ 422: {
8158
+ type: "validation";
8159
+ on: string;
8160
+ summary?: string;
8161
+ message?: string;
8162
+ found?: unknown;
8163
+ property?: string;
8164
+ expected?: string;
8165
+ };
8166
+ }>>) & {
8167
+ '~path': string;
8168
+ };
8169
+ '~path': string;
8170
+ } & {
8171
+ delete: ((body?: {} | undefined, options?: {
8172
+ fetch?: RequestInit | undefined;
8173
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
8174
+ headers?: {} | undefined;
8175
+ query?: {} | undefined;
8176
+ } | undefined) => Promise<Treaty.TreatyResponse<{
8177
+ 200: {
8178
+ success: true;
8179
+ statusCode: number;
8180
+ data: null;
8181
+ message: string;
8182
+ error: null;
8183
+ meta: TResponseMeta;
8184
+ } | {
8185
+ success: false;
8186
+ statusCode: number;
8187
+ data: null;
8188
+ message: string;
8189
+ error: TResponseError;
8190
+ meta: TResponseMeta;
8191
+ };
8192
+ 422: {
8193
+ type: "validation";
8194
+ on: string;
8195
+ summary?: string;
8196
+ message?: string;
8197
+ found?: unknown;
8198
+ property?: string;
8199
+ expected?: string;
8200
+ };
8201
+ }>>) & {
8202
+ '~path': string;
8203
+ };
8204
+ }) & {
8205
+ get: ((options?: {
8206
+ fetch?: RequestInit | undefined;
8207
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
8208
+ headers?: {} | undefined;
8209
+ query?: {} | undefined;
8210
+ } | undefined) => Promise<Treaty.TreatyResponse<{
8211
+ 200: {
8212
+ success: false;
8213
+ statusCode: number;
8214
+ data: null;
8215
+ message: string;
8216
+ error: TResponseError;
8217
+ meta: TResponseMeta;
8218
+ } | {
8219
+ success: true;
8220
+ statusCode: number;
8221
+ data: {
8222
+ uuid: string;
8223
+ orderUuid: string;
8224
+ createdAt: Date;
8225
+ code: string;
8226
+ discountType: "PERCENTAGE" | "FIXED_AMOUNT" | "FREE_SHIPPING";
8227
+ discountValue: number;
8228
+ maxDiscountAmount: number | null;
8229
+ discountAmount: number;
8230
+ }[];
8231
+ message: null;
8232
+ error: null;
8233
+ meta: TResponseMeta;
8234
+ };
8235
+ 422: {
8236
+ type: "validation";
8237
+ on: string;
8238
+ summary?: string;
8239
+ message?: string;
8240
+ found?: unknown;
8241
+ property?: string;
8242
+ expected?: string;
8243
+ };
8244
+ }>>) & {
8245
+ '~path': string;
8246
+ };
8247
+ post: ((body: {
8248
+ couponCode: string;
8249
+ }, options?: {
8250
+ fetch?: RequestInit | undefined;
8251
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
8252
+ headers?: {} | undefined;
8253
+ query?: {} | undefined;
8254
+ } | undefined) => Promise<Treaty.TreatyResponse<{
8255
+ 200: {
8256
+ success: true;
8257
+ statusCode: number;
8258
+ data: null;
8259
+ message: string;
8260
+ error: null;
8261
+ meta: TResponseMeta;
8262
+ } | {
8263
+ success: false;
8264
+ statusCode: number;
8265
+ data: null;
8266
+ message: string;
8267
+ error: TResponseError;
8268
+ meta: TResponseMeta;
8269
+ };
8270
+ 422: {
8271
+ type: "validation";
8272
+ on: string;
8273
+ summary?: string;
8274
+ message?: string;
8275
+ found?: unknown;
8276
+ property?: string;
8277
+ expected?: string;
8278
+ };
8279
+ }>>) & {
8280
+ '~path': string;
8281
+ };
8282
+ } & {
8283
+ '~path': string;
8284
+ };
8285
+ account: {
8286
+ patch: ((body: {
8287
+ userUuid: string | null;
8288
+ }, options?: {
8289
+ fetch?: RequestInit | undefined;
8290
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
8291
+ headers?: {} | undefined;
8292
+ query?: {} | undefined;
8293
+ } | undefined) => Promise<Treaty.TreatyResponse<{
8294
+ 200: {
8295
+ success: true;
8296
+ statusCode: number;
8297
+ data: null;
8298
+ message: string;
8299
+ error: null;
8300
+ meta: TResponseMeta;
8301
+ } | {
8302
+ success: false;
8303
+ statusCode: number;
8304
+ data: null;
8305
+ message: string;
8306
+ error: TResponseError;
8307
+ meta: TResponseMeta;
8308
+ };
8309
+ 422: {
8310
+ type: "validation";
8311
+ on: string;
8312
+ summary?: string;
8313
+ message?: string;
8314
+ found?: unknown;
8315
+ property?: string;
8316
+ expected?: string;
8317
+ };
8318
+ }>>) & {
8319
+ '~path': string;
8320
+ };
8321
+ } & {
8322
+ '~path': string;
8323
+ };
6017
8324
  '~path': string;
6018
8325
  } & {
6019
8326
  get: ((options?: {
@@ -6036,29 +8343,29 @@ declare const _createClient: () => {
6036
8343
  name: string | null;
6037
8344
  uuid: string;
6038
8345
  status: "DRAFT" | "PENDING" | "CONFIRMED" | "PROCESSING" | "COMPLETED" | "CANCELLED";
6039
- createdAt: Date;
6040
- updatedAt: Date;
6041
- userUuid: string | null;
6042
- orderType: "ORDER" | "IN-STOCK";
6043
8346
  orderCode: string;
6044
- accessToken: string | null;
6045
- guestInfo: unknown;
6046
- customerEmail: string | null;
8347
+ userUuid: string | null;
6047
8348
  customerName: string | null;
8349
+ customerEmail: string | null;
6048
8350
  customerPhone: string | null;
6049
8351
  shippingAddress: unknown;
6050
8352
  subtotalAmount: number | null;
6051
8353
  discountTotal: number | null;
6052
8354
  taxTotal: number | null;
8355
+ depositSurchargeTotal: number | null;
8356
+ otherSurchargeTotal: number | null;
8357
+ totalDue: number | null;
8358
+ totalPaid: number | null;
8359
+ totalRefunded: number | null;
8360
+ createdAt: Date;
8361
+ updatedAt: Date;
8362
+ orderType: "ORDER" | "IN-STOCK";
8363
+ accessToken: string | null;
8364
+ guestInfo: unknown;
6053
8365
  appliedDepositName: string | null;
6054
8366
  appliedDepositType: "PERCENTAGE" | "FIXED" | null;
6055
8367
  appliedDepositValue: number | null;
6056
- depositSurchargeTotal: number | null;
6057
- otherSurchargeTotal: number | null;
6058
- totalDue: number | null;
6059
8368
  depositRequiredAmount: number | null;
6060
- totalPaid: number | null;
6061
- totalRefunded: number | null;
6062
8369
  balanceRemaining: number | null;
6063
8370
  totalWeightGram: number | null;
6064
8371
  shipingNote: string | null;
@@ -6071,6 +8378,11 @@ declare const _createClient: () => {
6071
8378
  cancelReason: string | null;
6072
8379
  cancelledBy: string | null;
6073
8380
  deletedAt: Date | null;
8381
+ user: {
8382
+ uuid: string;
8383
+ email: string;
8384
+ username: string;
8385
+ } | null;
6074
8386
  orderManifests: {
6075
8387
  uuid: string;
6076
8388
  status: "PROCESSING" | "CANCELLED" | "PURCHASED" | "WAREHOUSE_ABROAD" | "IN_TRANSIT" | "ARRIVED_VN" | "DELIVERED";
@@ -6113,9 +8425,9 @@ declare const _createClient: () => {
6113
8425
  status: "COMPLETED" | "IN_PROGRESS" | "SKIPPED" | "FAILED";
6114
8426
  createdAt: Date;
6115
8427
  updatedAt: Date;
8428
+ completedAt: Date | null;
6116
8429
  title: string;
6117
8430
  content: string | null;
6118
- completedAt: Date | null;
6119
8431
  manifestUuid: string | null;
6120
8432
  milestoneCode: "PURCHASED" | "ARRIVED_VN" | "DELIVERED" | "ORDER_CREATED" | "QUOTATION_SENT" | "DEPOSIT_PAID" | "ORDER_CONFIRMED" | "PAYMENT_COMPLETED" | "PAYMENT_RECEIVED" | "PAYMENT_VOIDED" | "ORDER_CANCELLED" | "PURCHASING" | "IN_WAREHOUSE_ABROAD" | "INTERNATIONAL_SHIPPING" | "ITEM_CANCELLED" | "PACKED" | "HANDED_OVER" | "DELIVERING";
6121
8433
  startedAt: Date;
@@ -6128,9 +8440,9 @@ declare const _createClient: () => {
6128
8440
  name: string;
6129
8441
  uuid: string;
6130
8442
  status: "CANCELLED" | "ACTIVE" | "INACTIVE";
6131
- description: string | null;
6132
8443
  createdAt: Date;
6133
8444
  updatedAt: Date;
8445
+ description: string | null;
6134
8446
  surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
6135
8447
  amount: number;
6136
8448
  applyTo: "BEFORE_TAX" | "AFTER_TAX";
@@ -6436,10 +8748,10 @@ declare const _createClient: () => {
6436
8748
  data: {
6437
8749
  uuid: string;
6438
8750
  status: "PROCESSING" | "CANCELLED" | "PURCHASED" | "WAREHOUSE_ABROAD" | "IN_TRANSIT" | "ARRIVED_VN" | "DELIVERED";
6439
- createdAt: Date | null;
6440
- updatedAt: Date | null;
6441
8751
  orderUuid: string;
6442
8752
  orderCode: string | null;
8753
+ createdAt: Date | null;
8754
+ updatedAt: Date | null;
6443
8755
  variantUuid: string;
6444
8756
  productName: string | null;
6445
8757
  productUrl: string | null;
@@ -6789,9 +9101,9 @@ declare const _createClient: () => {
6789
9101
  name: string;
6790
9102
  uuid: string;
6791
9103
  status: "CANCELLED" | "ACTIVE" | "INACTIVE";
6792
- description: string | null;
6793
9104
  createdAt: Date;
6794
9105
  updatedAt: Date;
9106
+ description: string | null;
6795
9107
  surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
6796
9108
  amount: number;
6797
9109
  applyTo: "BEFORE_TAX" | "AFTER_TAX";
@@ -6816,9 +9128,46 @@ declare const _createClient: () => {
6816
9128
  } & {
6817
9129
  '~path': string;
6818
9130
  };
6819
- delete: ((body?: {
6820
- cancelReason?: string | undefined;
6821
- } | undefined, options?: {
9131
+ permanent: {
9132
+ delete: ((body?: {} | undefined, options?: {
9133
+ fetch?: RequestInit | undefined;
9134
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
9135
+ headers?: {} | undefined;
9136
+ query?: {} | undefined;
9137
+ } | undefined) => Promise<Treaty.TreatyResponse<{
9138
+ 200: {
9139
+ success: false;
9140
+ statusCode: number;
9141
+ data: null;
9142
+ message: string;
9143
+ error: TResponseError;
9144
+ meta: TResponseMeta;
9145
+ } | {
9146
+ success: true;
9147
+ statusCode: number;
9148
+ data: {
9149
+ uuid: string;
9150
+ };
9151
+ message: null;
9152
+ error: null;
9153
+ meta: TResponseMeta;
9154
+ };
9155
+ 422: {
9156
+ type: "validation";
9157
+ on: string;
9158
+ summary?: string;
9159
+ message?: string;
9160
+ found?: unknown;
9161
+ property?: string;
9162
+ expected?: string;
9163
+ };
9164
+ }>>) & {
9165
+ '~path': string;
9166
+ };
9167
+ } & {
9168
+ '~path': string;
9169
+ };
9170
+ delete: ((body?: {} | undefined, options?: {
6822
9171
  fetch?: RequestInit | undefined;
6823
9172
  throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
6824
9173
  headers?: {} | undefined;
@@ -6875,9 +9224,9 @@ declare const _createClient: () => {
6875
9224
  status: "COMPLETED" | "IN_PROGRESS" | "SKIPPED" | "FAILED";
6876
9225
  createdAt: Date;
6877
9226
  updatedAt: Date;
9227
+ completedAt: Date | null;
6878
9228
  title: string;
6879
9229
  content: string | null;
6880
- completedAt: Date | null;
6881
9230
  manifestUuid: string | null;
6882
9231
  milestoneCode: "PURCHASED" | "ARRIVED_VN" | "DELIVERED" | "ORDER_CREATED" | "QUOTATION_SENT" | "DEPOSIT_PAID" | "ORDER_CONFIRMED" | "PAYMENT_COMPLETED" | "PAYMENT_RECEIVED" | "PAYMENT_VOIDED" | "ORDER_CANCELLED" | "PURCHASING" | "IN_WAREHOUSE_ABROAD" | "INTERNATIONAL_SHIPPING" | "ITEM_CANCELLED" | "PACKED" | "HANDED_OVER" | "DELIVERING";
6883
9232
  startedAt: Date;
@@ -6904,6 +9253,197 @@ declare const _createClient: () => {
6904
9253
  } & {
6905
9254
  '~path': string;
6906
9255
  };
9256
+ coupons: ((params: {
9257
+ orderCouponUuid: string | number;
9258
+ }) => {
9259
+ delete: ((body?: {} | undefined, options?: {
9260
+ fetch?: RequestInit | undefined;
9261
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
9262
+ headers?: {} | undefined;
9263
+ query?: {} | undefined;
9264
+ } | undefined) => Promise<Treaty.TreatyResponse<{
9265
+ 200: {
9266
+ success: true;
9267
+ statusCode: number;
9268
+ data: null;
9269
+ message: string;
9270
+ error: null;
9271
+ meta: TResponseMeta;
9272
+ } | {
9273
+ success: false;
9274
+ statusCode: number;
9275
+ data: null;
9276
+ message: string;
9277
+ error: TResponseError;
9278
+ meta: TResponseMeta;
9279
+ };
9280
+ 422: {
9281
+ type: "validation";
9282
+ on: string;
9283
+ summary?: string;
9284
+ message?: string;
9285
+ found?: unknown;
9286
+ property?: string;
9287
+ expected?: string;
9288
+ };
9289
+ }>>) & {
9290
+ '~path': string;
9291
+ };
9292
+ '~path': string;
9293
+ } & {
9294
+ delete: ((body?: {} | undefined, options?: {
9295
+ fetch?: RequestInit | undefined;
9296
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
9297
+ headers?: {} | undefined;
9298
+ query?: {} | undefined;
9299
+ } | undefined) => Promise<Treaty.TreatyResponse<{
9300
+ 200: {
9301
+ success: true;
9302
+ statusCode: number;
9303
+ data: null;
9304
+ message: string;
9305
+ error: null;
9306
+ meta: TResponseMeta;
9307
+ } | {
9308
+ success: false;
9309
+ statusCode: number;
9310
+ data: null;
9311
+ message: string;
9312
+ error: TResponseError;
9313
+ meta: TResponseMeta;
9314
+ };
9315
+ 422: {
9316
+ type: "validation";
9317
+ on: string;
9318
+ summary?: string;
9319
+ message?: string;
9320
+ found?: unknown;
9321
+ property?: string;
9322
+ expected?: string;
9323
+ };
9324
+ }>>) & {
9325
+ '~path': string;
9326
+ };
9327
+ }) & {
9328
+ get: ((options?: {
9329
+ fetch?: RequestInit | undefined;
9330
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
9331
+ headers?: {} | undefined;
9332
+ query?: {} | undefined;
9333
+ } | undefined) => Promise<Treaty.TreatyResponse<{
9334
+ 200: {
9335
+ success: false;
9336
+ statusCode: number;
9337
+ data: null;
9338
+ message: string;
9339
+ error: TResponseError;
9340
+ meta: TResponseMeta;
9341
+ } | {
9342
+ success: true;
9343
+ statusCode: number;
9344
+ data: {
9345
+ uuid: string;
9346
+ orderUuid: string;
9347
+ createdAt: Date;
9348
+ code: string;
9349
+ discountType: "PERCENTAGE" | "FIXED_AMOUNT" | "FREE_SHIPPING";
9350
+ discountValue: number;
9351
+ maxDiscountAmount: number | null;
9352
+ discountAmount: number;
9353
+ }[];
9354
+ message: null;
9355
+ error: null;
9356
+ meta: TResponseMeta;
9357
+ };
9358
+ 422: {
9359
+ type: "validation";
9360
+ on: string;
9361
+ summary?: string;
9362
+ message?: string;
9363
+ found?: unknown;
9364
+ property?: string;
9365
+ expected?: string;
9366
+ };
9367
+ }>>) & {
9368
+ '~path': string;
9369
+ };
9370
+ post: ((body: {
9371
+ couponCode: string;
9372
+ }, options?: {
9373
+ fetch?: RequestInit | undefined;
9374
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
9375
+ headers?: {} | undefined;
9376
+ query?: {} | undefined;
9377
+ } | undefined) => Promise<Treaty.TreatyResponse<{
9378
+ 200: {
9379
+ success: true;
9380
+ statusCode: number;
9381
+ data: null;
9382
+ message: string;
9383
+ error: null;
9384
+ meta: TResponseMeta;
9385
+ } | {
9386
+ success: false;
9387
+ statusCode: number;
9388
+ data: null;
9389
+ message: string;
9390
+ error: TResponseError;
9391
+ meta: TResponseMeta;
9392
+ };
9393
+ 422: {
9394
+ type: "validation";
9395
+ on: string;
9396
+ summary?: string;
9397
+ message?: string;
9398
+ found?: unknown;
9399
+ property?: string;
9400
+ expected?: string;
9401
+ };
9402
+ }>>) & {
9403
+ '~path': string;
9404
+ };
9405
+ } & {
9406
+ '~path': string;
9407
+ };
9408
+ account: {
9409
+ patch: ((body: {
9410
+ userUuid: string | null;
9411
+ }, options?: {
9412
+ fetch?: RequestInit | undefined;
9413
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
9414
+ headers?: {} | undefined;
9415
+ query?: {} | undefined;
9416
+ } | undefined) => Promise<Treaty.TreatyResponse<{
9417
+ 200: {
9418
+ success: true;
9419
+ statusCode: number;
9420
+ data: null;
9421
+ message: string;
9422
+ error: null;
9423
+ meta: TResponseMeta;
9424
+ } | {
9425
+ success: false;
9426
+ statusCode: number;
9427
+ data: null;
9428
+ message: string;
9429
+ error: TResponseError;
9430
+ meta: TResponseMeta;
9431
+ };
9432
+ 422: {
9433
+ type: "validation";
9434
+ on: string;
9435
+ summary?: string;
9436
+ message?: string;
9437
+ found?: unknown;
9438
+ property?: string;
9439
+ expected?: string;
9440
+ };
9441
+ }>>) & {
9442
+ '~path': string;
9443
+ };
9444
+ } & {
9445
+ '~path': string;
9446
+ };
6907
9447
  }) & {
6908
9448
  get: ((options?: {
6909
9449
  fetch?: RequestInit | undefined;
@@ -6912,10 +9452,10 @@ declare const _createClient: () => {
6912
9452
  query?: {
6913
9453
  status?: "DRAFT" | "PENDING" | "CONFIRMED" | "PROCESSING" | "COMPLETED" | "CANCELLED" | undefined;
6914
9454
  search?: string | undefined;
6915
- orderType?: "ORDER" | "IN-STOCK" | undefined;
6916
- customerEmail?: string | undefined;
6917
9455
  customerName?: string | undefined;
9456
+ customerEmail?: string | undefined;
6918
9457
  customerPhone?: string | undefined;
9458
+ orderType?: "ORDER" | "IN-STOCK" | undefined;
6919
9459
  paymentStatus?: "PENDING" | "PAID" | "PARTIALLY_PAID" | "REFUNDED" | undefined;
6920
9460
  fulfillmentStatus?: "UNFULFILLED" | "PARTIALLY_FULFILLED" | "FULFILLED" | "RETURNED" | undefined;
6921
9461
  limit?: number | undefined;
@@ -6941,31 +9481,36 @@ declare const _createClient: () => {
6941
9481
  name: string | null;
6942
9482
  uuid: string;
6943
9483
  status: "DRAFT" | "PENDING" | "CONFIRMED" | "PROCESSING" | "COMPLETED" | "CANCELLED";
6944
- createdAt: Date;
6945
- updatedAt: Date;
6946
- userUuid: string | null;
6947
- orderType: "ORDER" | "IN-STOCK";
6948
9484
  orderCode: string;
6949
- customerEmail: string | null;
9485
+ userUuid: string | null;
6950
9486
  customerName: string | null;
9487
+ customerEmail: string | null;
6951
9488
  customerPhone: string | null;
6952
9489
  shippingAddress: unknown;
6953
9490
  subtotalAmount: number | null;
6954
9491
  taxTotal: number | null;
6955
- appliedDepositName: string | null;
6956
- appliedDepositType: "PERCENTAGE" | "FIXED" | null;
6957
- appliedDepositValue: number | null;
6958
9492
  depositSurchargeTotal: number | null;
6959
9493
  otherSurchargeTotal: number | null;
6960
9494
  totalDue: number | null;
6961
- depositRequiredAmount: number | null;
6962
9495
  totalPaid: number | null;
6963
9496
  totalRefunded: number | null;
9497
+ createdAt: Date;
9498
+ updatedAt: Date;
9499
+ orderType: "ORDER" | "IN-STOCK";
9500
+ appliedDepositName: string | null;
9501
+ appliedDepositType: "PERCENTAGE" | "FIXED" | null;
9502
+ appliedDepositValue: number | null;
9503
+ depositRequiredAmount: number | null;
6964
9504
  balanceRemaining: number | null;
6965
9505
  paymentStatus: "PENDING" | "PAID" | "PARTIALLY_PAID" | "REFUNDED";
6966
9506
  fulfillmentStatus: "UNFULFILLED" | "PARTIALLY_FULFILLED" | "FULFILLED" | "RETURNED";
6967
9507
  riskLevel: "LOW" | "MEDIUM" | "HIGH";
6968
9508
  completedAt: Date | null;
9509
+ user: {
9510
+ uuid: string;
9511
+ email: string;
9512
+ username: string;
9513
+ } | null;
6969
9514
  }[];
6970
9515
  pagination: {
6971
9516
  page: number;
@@ -7018,16 +9563,16 @@ declare const _createClient: () => {
7018
9563
  name: string | null;
7019
9564
  uuid: string;
7020
9565
  status: "DRAFT" | "PENDING" | "CONFIRMED" | "PROCESSING" | "COMPLETED" | "CANCELLED";
7021
- createdAt: Date;
7022
- updatedAt: Date;
7023
- orderType: "ORDER" | "IN-STOCK";
7024
9566
  orderCode: string;
7025
9567
  subtotalAmount: number | null;
7026
9568
  depositSurchargeTotal: number | null;
7027
9569
  otherSurchargeTotal: number | null;
7028
9570
  totalDue: number | null;
7029
- depositRequiredAmount: number | null;
7030
9571
  totalPaid: number | null;
9572
+ createdAt: Date;
9573
+ updatedAt: Date;
9574
+ orderType: "ORDER" | "IN-STOCK";
9575
+ depositRequiredAmount: number | null;
7031
9576
  balanceRemaining: number | null;
7032
9577
  paymentStatus: "PENDING" | "PAID" | "PARTIALLY_PAID" | "REFUNDED";
7033
9578
  }[];
@@ -7343,10 +9888,10 @@ declare const _createClient: () => {
7343
9888
  data: {
7344
9889
  uuid: string;
7345
9890
  status: "PROCESSING" | "CANCELLED" | "PURCHASED" | "WAREHOUSE_ABROAD" | "IN_TRANSIT" | "ARRIVED_VN" | "DELIVERED";
7346
- createdAt: Date | null;
7347
- updatedAt: Date | null;
7348
9891
  orderUuid: string;
7349
9892
  orderCode: string | null;
9893
+ createdAt: Date | null;
9894
+ updatedAt: Date | null;
7350
9895
  variantUuid: string;
7351
9896
  productName: string | null;
7352
9897
  originCountry: string | null;
@@ -7359,8 +9904,8 @@ declare const _createClient: () => {
7359
9904
  name: string | null;
7360
9905
  uuid: string;
7361
9906
  status: "DRAFT" | "PENDING" | "CONFIRMED" | "PROCESSING" | "COMPLETED" | "CANCELLED";
7362
- orderType: "ORDER" | "IN-STOCK";
7363
9907
  orderCode: string;
9908
+ orderType: "ORDER" | "IN-STOCK";
7364
9909
  };
7365
9910
  variant: {
7366
9911
  name: string;
@@ -7616,8 +10161,8 @@ declare const _createClient: () => {
7616
10161
  name: string | null;
7617
10162
  uuid: string;
7618
10163
  status: "DRAFT" | "PENDING" | "CONFIRMED" | "PROCESSING" | "COMPLETED" | "CANCELLED";
7619
- orderType: "ORDER" | "IN-STOCK";
7620
10164
  orderCode: string;
10165
+ orderType: "ORDER" | "IN-STOCK";
7621
10166
  } | null;
7622
10167
  }[];
7623
10168
  pagination: {
@@ -7714,10 +10259,11 @@ declare const _createClient: () => {
7714
10259
  uuid: string;
7715
10260
  tags: string[] | null;
7716
10261
  length: number | null;
7717
- slug: string;
7718
- description: string | null;
7719
10262
  createdAt: Date | null;
7720
10263
  updatedAt: Date | null;
10264
+ description: string | null;
10265
+ slug: string;
10266
+ createdBy: string;
7721
10267
  standardCost: number | null;
7722
10268
  retailCost: number | null;
7723
10269
  weight: number | null;
@@ -7725,7 +10271,6 @@ declare const _createClient: () => {
7725
10271
  width: number | null;
7726
10272
  height: number | null;
7727
10273
  dimensionUnit: string | null;
7728
- createdBy: string;
7729
10274
  productLink: string | null;
7730
10275
  quantity: number | null;
7731
10276
  country: string | null;
@@ -7748,9 +10293,9 @@ declare const _createClient: () => {
7748
10293
  name: string;
7749
10294
  uuid: string;
7750
10295
  length: number | null;
7751
- description: string | null;
7752
10296
  createdAt: Date | null;
7753
10297
  updatedAt: Date | null;
10298
+ description: string | null;
7754
10299
  isActive: boolean | null;
7755
10300
  isDefault: boolean | null;
7756
10301
  sku: string;
@@ -7791,14 +10336,14 @@ declare const _createClient: () => {
7791
10336
  parentCategory: {
7792
10337
  name: string;
7793
10338
  uuid: string;
7794
- icon: string | null;
7795
10339
  description: string | null;
10340
+ icon: string | null;
7796
10341
  } | null;
7797
10342
  subCategory: {
7798
10343
  name: string;
7799
10344
  uuid: string;
7800
- icon: string | null;
7801
10345
  description: string | null;
10346
+ icon: string | null;
7802
10347
  } | null;
7803
10348
  series: {
7804
10349
  name: string;
@@ -7869,9 +10414,9 @@ declare const _createClient: () => {
7869
10414
  variants: {
7870
10415
  name: string;
7871
10416
  uuid: string;
7872
- description: string | null;
7873
10417
  createdAt: Date | null;
7874
10418
  updatedAt: Date | null;
10419
+ description: string | null;
7875
10420
  sku: string;
7876
10421
  retailCost: number | null;
7877
10422
  options: {
@@ -7967,12 +10512,13 @@ declare const _createClient: () => {
7967
10512
  uuid: string;
7968
10513
  tags: string[] | null;
7969
10514
  length: number | null;
7970
- slug: string;
7971
- description: string | null;
7972
10515
  createdAt: Date | null;
7973
10516
  updatedAt: Date | null;
7974
- seriesUuid: string | null;
10517
+ description: string | null;
7975
10518
  deletedAt: Date | null;
10519
+ slug: string;
10520
+ createdBy: string;
10521
+ seriesUuid: string | null;
7976
10522
  standardCost: number | null;
7977
10523
  retailCost: number | null;
7978
10524
  weight: number | null;
@@ -7980,7 +10526,6 @@ declare const _createClient: () => {
7980
10526
  width: number | null;
7981
10527
  height: number | null;
7982
10528
  dimensionUnit: string | null;
7983
- createdBy: string;
7984
10529
  shortDescription: string | null;
7985
10530
  richDescription: unknown;
7986
10531
  productLink: string | null;
@@ -8435,10 +10980,11 @@ declare const _createClient: () => {
8435
10980
  uuid: string;
8436
10981
  tags: string[] | null;
8437
10982
  length: number | null;
8438
- slug: string;
8439
- description: string | null;
8440
10983
  createdAt: Date | null;
8441
10984
  updatedAt: Date | null;
10985
+ description: string | null;
10986
+ slug: string;
10987
+ createdBy: string;
8442
10988
  standardCost: number | null;
8443
10989
  retailCost: number | null;
8444
10990
  weight: number | null;
@@ -8446,7 +10992,6 @@ declare const _createClient: () => {
8446
10992
  width: number | null;
8447
10993
  height: number | null;
8448
10994
  dimensionUnit: string | null;
8449
- createdBy: string;
8450
10995
  productLink: string | null;
8451
10996
  quantity: number | null;
8452
10997
  country: string | null;
@@ -8469,9 +11014,9 @@ declare const _createClient: () => {
8469
11014
  name: string;
8470
11015
  uuid: string;
8471
11016
  length: number | null;
8472
- description: string | null;
8473
11017
  createdAt: Date | null;
8474
11018
  updatedAt: Date | null;
11019
+ description: string | null;
8475
11020
  isActive: boolean | null;
8476
11021
  isDefault: boolean | null;
8477
11022
  sku: string;
@@ -8512,14 +11057,14 @@ declare const _createClient: () => {
8512
11057
  parentCategory: {
8513
11058
  name: string;
8514
11059
  uuid: string;
8515
- icon: string | null;
8516
11060
  description: string | null;
11061
+ icon: string | null;
8517
11062
  } | null;
8518
11063
  subCategory: {
8519
11064
  name: string;
8520
11065
  uuid: string;
8521
- icon: string | null;
8522
11066
  description: string | null;
11067
+ icon: string | null;
8523
11068
  } | null;
8524
11069
  series: {
8525
11070
  name: string;
@@ -8590,9 +11135,9 @@ declare const _createClient: () => {
8590
11135
  variants: {
8591
11136
  name: string;
8592
11137
  uuid: string;
8593
- description: string | null;
8594
11138
  createdAt: Date | null;
8595
11139
  updatedAt: Date | null;
11140
+ description: string | null;
8596
11141
  sku: string;
8597
11142
  retailCost: number | null;
8598
11143
  options: {
@@ -8688,12 +11233,13 @@ declare const _createClient: () => {
8688
11233
  uuid: string;
8689
11234
  tags: string[] | null;
8690
11235
  length: number | null;
8691
- slug: string;
8692
- description: string | null;
8693
11236
  createdAt: Date | null;
8694
11237
  updatedAt: Date | null;
8695
- seriesUuid: string | null;
11238
+ description: string | null;
8696
11239
  deletedAt: Date | null;
11240
+ slug: string;
11241
+ createdBy: string;
11242
+ seriesUuid: string | null;
8697
11243
  standardCost: number | null;
8698
11244
  retailCost: number | null;
8699
11245
  weight: number | null;
@@ -8701,7 +11247,6 @@ declare const _createClient: () => {
8701
11247
  width: number | null;
8702
11248
  height: number | null;
8703
11249
  dimensionUnit: string | null;
8704
- createdBy: string;
8705
11250
  shortDescription: string | null;
8706
11251
  richDescription: unknown;
8707
11252
  productLink: string | null;
@@ -9169,9 +11714,9 @@ declare const _createClient: () => {
9169
11714
  uuid: string;
9170
11715
  createdAt: Date | null;
9171
11716
  updatedAt: Date | null;
11717
+ createdBy: string;
9172
11718
  standardCost: number | null;
9173
11719
  retailCost: number | null;
9174
- createdBy: string;
9175
11720
  quantity: number | null;
9176
11721
  country: string | null;
9177
11722
  productStatus: "draft" | "review" | "published" | "cancelled";
@@ -11058,10 +13603,10 @@ declare const _createClient: () => {
11058
13603
  data: {
11059
13604
  name: string;
11060
13605
  uuid: string;
11061
- slug: string;
11062
- description: string | null;
11063
13606
  createdAt: Date | null;
11064
13607
  updatedAt: Date | null;
13608
+ description: string | null;
13609
+ slug: string;
11065
13610
  productTotal: number;
11066
13611
  };
11067
13612
  message: null;
@@ -11170,10 +13715,10 @@ declare const _createClient: () => {
11170
13715
  data: {
11171
13716
  name: string;
11172
13717
  uuid: string;
11173
- slug: string;
11174
- description: string | null;
11175
13718
  createdAt: Date | null;
11176
13719
  updatedAt: Date | null;
13720
+ description: string | null;
13721
+ slug: string;
11177
13722
  productTotal: number;
11178
13723
  };
11179
13724
  message: null;
@@ -11281,10 +13826,10 @@ declare const _createClient: () => {
11281
13826
  data: {
11282
13827
  name: string;
11283
13828
  uuid: string;
11284
- slug: string;
11285
- description: string | null;
11286
13829
  createdAt: Date | null;
11287
13830
  updatedAt: Date | null;
13831
+ description: string | null;
13832
+ slug: string;
11288
13833
  productTotal: number;
11289
13834
  media: {
11290
13835
  createdAt: Date | null;
@@ -11565,8 +14110,8 @@ declare const _createClient: () => {
11565
14110
  data: {
11566
14111
  createdAt: Date | null;
11567
14112
  updatedAt: Date | null;
11568
- id: number;
11569
14113
  userAgent: string;
14114
+ id: number;
11570
14115
  expiresAt: Date;
11571
14116
  ipAddress: string;
11572
14117
  user: {
@@ -12065,8 +14610,8 @@ declare const _createClient: () => {
12065
14610
  name: string | null;
12066
14611
  uuid: string;
12067
14612
  status: "DRAFT" | "PENDING" | "CONFIRMED" | "PROCESSING" | "COMPLETED" | "CANCELLED";
12068
- orderType: "ORDER" | "IN-STOCK";
12069
14613
  orderCode: string;
14614
+ orderType: "ORDER" | "IN-STOCK";
12070
14615
  } | null;
12071
14616
  };
12072
14617
  }[];
@@ -12126,10 +14671,11 @@ declare const _createClient: () => {
12126
14671
  success: true;
12127
14672
  statusCode: number;
12128
14673
  data: {
14674
+ userUuid: string;
12129
14675
  createdAt: Date | null;
12130
14676
  updatedAt: Date | null;
14677
+ order: number | null;
12131
14678
  id: number;
12132
- userUuid: string;
12133
14679
  fullname: string;
12134
14680
  phoneNumber: string;
12135
14681
  provinceId: string;
@@ -12137,7 +14683,6 @@ declare const _createClient: () => {
12137
14683
  wardId: string;
12138
14684
  street: string;
12139
14685
  isDefault: boolean | null;
12140
- order: number | null;
12141
14686
  province: {
12142
14687
  name: string;
12143
14688
  type: string;
@@ -12266,10 +14811,11 @@ declare const _createClient: () => {
12266
14811
  success: true;
12267
14812
  statusCode: number;
12268
14813
  data: {
14814
+ userUuid: string;
12269
14815
  createdAt: Date | null;
12270
14816
  updatedAt: Date | null;
14817
+ order: number | null;
12271
14818
  id: number;
12272
- userUuid: string;
12273
14819
  fullname: string;
12274
14820
  phoneNumber: string;
12275
14821
  provinceId: string;
@@ -12277,7 +14823,6 @@ declare const _createClient: () => {
12277
14823
  wardId: string;
12278
14824
  street: string;
12279
14825
  isDefault: boolean | null;
12280
- order: number | null;
12281
14826
  province: {
12282
14827
  name: string;
12283
14828
  type: string;
@@ -12405,10 +14950,11 @@ declare const _createClient: () => {
12405
14950
  success: true;
12406
14951
  statusCode: number;
12407
14952
  data: {
14953
+ userUuid: string;
12408
14954
  createdAt: Date | null;
12409
14955
  updatedAt: Date | null;
14956
+ order: number | null;
12410
14957
  id: number;
12411
- userUuid: string;
12412
14958
  fullname: string;
12413
14959
  phoneNumber: string;
12414
14960
  provinceId: string;
@@ -12416,7 +14962,6 @@ declare const _createClient: () => {
12416
14962
  wardId: string;
12417
14963
  street: string;
12418
14964
  isDefault: boolean | null;
12419
- order: number | null;
12420
14965
  province: {
12421
14966
  name: string;
12422
14967
  type: string;
@@ -12468,10 +15013,11 @@ declare const _createClient: () => {
12468
15013
  success: true;
12469
15014
  statusCode: number;
12470
15015
  data: {
15016
+ userUuid: string;
12471
15017
  createdAt: Date | null;
12472
15018
  updatedAt: Date | null;
15019
+ order: number | null;
12473
15020
  id: number;
12474
- userUuid: string;
12475
15021
  fullname: string;
12476
15022
  phoneNumber: string;
12477
15023
  provinceId: string;
@@ -12479,7 +15025,6 @@ declare const _createClient: () => {
12479
15025
  wardId: string;
12480
15026
  street: string;
12481
15027
  isDefault: boolean | null;
12482
- order: number | null;
12483
15028
  };
12484
15029
  message: null;
12485
15030
  error: null;
@@ -12814,6 +15359,86 @@ declare const _createClient: () => {
12814
15359
  } & {
12815
15360
  '~path': string;
12816
15361
  };
15362
+ "forgot-password": {
15363
+ post: ((body: {
15364
+ email: string;
15365
+ }, options?: {
15366
+ fetch?: RequestInit | undefined;
15367
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
15368
+ headers?: {} | undefined;
15369
+ query?: {} | undefined;
15370
+ } | undefined) => Promise<Treaty.TreatyResponse<{
15371
+ 200: {
15372
+ success: true;
15373
+ statusCode: number;
15374
+ data: null;
15375
+ message: string;
15376
+ error: null;
15377
+ meta: TResponseMeta;
15378
+ } | {
15379
+ success: false;
15380
+ statusCode: number;
15381
+ data: null;
15382
+ message: string;
15383
+ error: TResponseError;
15384
+ meta: TResponseMeta;
15385
+ };
15386
+ 422: {
15387
+ type: "validation";
15388
+ on: string;
15389
+ summary?: string;
15390
+ message?: string;
15391
+ found?: unknown;
15392
+ property?: string;
15393
+ expected?: string;
15394
+ };
15395
+ }>>) & {
15396
+ '~path': string;
15397
+ };
15398
+ } & {
15399
+ '~path': string;
15400
+ };
15401
+ "reset-password": {
15402
+ post: ((body: {
15403
+ email: string;
15404
+ otp: string;
15405
+ password: string;
15406
+ }, options?: {
15407
+ fetch?: RequestInit | undefined;
15408
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
15409
+ headers?: {} | undefined;
15410
+ query?: {} | undefined;
15411
+ } | undefined) => Promise<Treaty.TreatyResponse<{
15412
+ 200: {
15413
+ success: true;
15414
+ statusCode: number;
15415
+ data: null;
15416
+ message: string;
15417
+ error: null;
15418
+ meta: TResponseMeta;
15419
+ } | {
15420
+ success: false;
15421
+ statusCode: number;
15422
+ data: null;
15423
+ message: string;
15424
+ error: TResponseError;
15425
+ meta: TResponseMeta;
15426
+ };
15427
+ 422: {
15428
+ type: "validation";
15429
+ on: string;
15430
+ summary?: string;
15431
+ message?: string;
15432
+ found?: unknown;
15433
+ property?: string;
15434
+ expected?: string;
15435
+ };
15436
+ }>>) & {
15437
+ '~path': string;
15438
+ };
15439
+ } & {
15440
+ '~path': string;
15441
+ };
12817
15442
  } & {
12818
15443
  '~path': string;
12819
15444
  };
@@ -12839,9 +15464,9 @@ declare const _createClient: () => {
12839
15464
  deposits: {
12840
15465
  name: string;
12841
15466
  uuid: string;
12842
- description: string | null;
12843
15467
  createdAt: Date;
12844
15468
  updatedAt: Date;
15469
+ description: string | null;
12845
15470
  valueType: "PERCENTAGE" | "FIXED";
12846
15471
  depositValue: number;
12847
15472
  surchargeValue: number;
@@ -13198,29 +15823,29 @@ declare const _createClient: () => {
13198
15823
  order: {
13199
15824
  uuid: string;
13200
15825
  status: "DRAFT" | "PENDING" | "CONFIRMED" | "PROCESSING" | "COMPLETED" | "CANCELLED";
13201
- createdAt: Date;
13202
- updatedAt: Date;
13203
- userUuid: string | null;
13204
- orderType: "ORDER" | "IN-STOCK";
13205
15826
  orderCode: string;
13206
- accessToken: string | null;
13207
- guestInfo: unknown;
13208
- customerEmail: string | null;
15827
+ userUuid: string | null;
13209
15828
  customerName: string | null;
15829
+ customerEmail: string | null;
13210
15830
  customerPhone: string | null;
13211
15831
  shippingAddress: unknown;
13212
15832
  subtotalAmount: number | null;
13213
15833
  discountTotal: number | null;
13214
15834
  taxTotal: number | null;
13215
- appliedDepositName: string | null;
13216
- appliedDepositType: "PERCENTAGE" | "FIXED" | null;
13217
- appliedDepositValue: number | null;
13218
15835
  depositSurchargeTotal: number | null;
13219
15836
  otherSurchargeTotal: number | null;
13220
15837
  totalDue: number | null;
13221
- depositRequiredAmount: number | null;
13222
15838
  totalPaid: number | null;
13223
15839
  totalRefunded: number | null;
15840
+ createdAt: Date;
15841
+ updatedAt: Date;
15842
+ orderType: "ORDER" | "IN-STOCK";
15843
+ accessToken: string | null;
15844
+ guestInfo: unknown;
15845
+ appliedDepositName: string | null;
15846
+ appliedDepositType: "PERCENTAGE" | "FIXED" | null;
15847
+ appliedDepositValue: number | null;
15848
+ depositRequiredAmount: number | null;
13224
15849
  balanceRemaining: number | null;
13225
15850
  totalWeightGram: number | null;
13226
15851
  shipingNote: string | null;
@@ -13265,10 +15890,10 @@ declare const _createClient: () => {
13265
15890
  status: "COMPLETED" | "IN_PROGRESS" | "SKIPPED" | "FAILED";
13266
15891
  createdAt: Date;
13267
15892
  updatedAt: Date;
13268
- title: string;
13269
- content: string | null;
13270
15893
  estimatedDeliveryAt: Date | null;
13271
15894
  completedAt: Date | null;
15895
+ title: string;
15896
+ content: string | null;
13272
15897
  manifestUuid: string | null;
13273
15898
  milestoneCode: "PURCHASED" | "ARRIVED_VN" | "DELIVERED" | "ORDER_CREATED" | "QUOTATION_SENT" | "DEPOSIT_PAID" | "ORDER_CONFIRMED" | "PAYMENT_COMPLETED" | "PAYMENT_RECEIVED" | "PAYMENT_VOIDED" | "ORDER_CANCELLED" | "PURCHASING" | "IN_WAREHOUSE_ABROAD" | "INTERNATIONAL_SHIPPING" | "ITEM_CANCELLED" | "PACKED" | "HANDED_OVER" | "DELIVERING";
13274
15899
  startedAt: Date;
@@ -13305,8 +15930,8 @@ declare const _createClient: () => {
13305
15930
  };
13306
15931
  post: ((body: {
13307
15932
  depositId?: string | undefined;
13308
- customerEmail: string;
13309
15933
  customerName: string;
15934
+ customerEmail: string;
13310
15935
  customerPhone: string;
13311
15936
  shippingAddress: string;
13312
15937
  shipingNote: string;
@@ -13367,29 +15992,29 @@ declare const _createClient: () => {
13367
15992
  order: {
13368
15993
  uuid: string;
13369
15994
  status: "DRAFT" | "PENDING" | "CONFIRMED" | "PROCESSING" | "COMPLETED" | "CANCELLED";
13370
- createdAt: Date;
13371
- updatedAt: Date;
13372
- userUuid: string | null;
13373
- orderType: "ORDER" | "IN-STOCK";
13374
15995
  orderCode: string;
13375
- accessToken: string | null;
13376
- guestInfo: unknown;
13377
- customerEmail: string | null;
15996
+ userUuid: string | null;
13378
15997
  customerName: string | null;
15998
+ customerEmail: string | null;
13379
15999
  customerPhone: string | null;
13380
16000
  shippingAddress: unknown;
13381
16001
  subtotalAmount: number | null;
13382
16002
  discountTotal: number | null;
13383
16003
  taxTotal: number | null;
13384
- appliedDepositName: string | null;
13385
- appliedDepositType: "PERCENTAGE" | "FIXED" | null;
13386
- appliedDepositValue: number | null;
13387
16004
  depositSurchargeTotal: number | null;
13388
16005
  otherSurchargeTotal: number | null;
13389
16006
  totalDue: number | null;
13390
- depositRequiredAmount: number | null;
13391
16007
  totalPaid: number | null;
13392
16008
  totalRefunded: number | null;
16009
+ createdAt: Date;
16010
+ updatedAt: Date;
16011
+ orderType: "ORDER" | "IN-STOCK";
16012
+ accessToken: string | null;
16013
+ guestInfo: unknown;
16014
+ appliedDepositName: string | null;
16015
+ appliedDepositType: "PERCENTAGE" | "FIXED" | null;
16016
+ appliedDepositValue: number | null;
16017
+ depositRequiredAmount: number | null;
13393
16018
  balanceRemaining: number | null;
13394
16019
  totalWeightGram: number | null;
13395
16020
  shipingNote: string | null;
@@ -13434,10 +16059,10 @@ declare const _createClient: () => {
13434
16059
  status: "COMPLETED" | "IN_PROGRESS" | "SKIPPED" | "FAILED";
13435
16060
  createdAt: Date;
13436
16061
  updatedAt: Date;
13437
- title: string;
13438
- content: string | null;
13439
16062
  estimatedDeliveryAt: Date | null;
13440
16063
  completedAt: Date | null;
16064
+ title: string;
16065
+ content: string | null;
13441
16066
  manifestUuid: string | null;
13442
16067
  milestoneCode: "PURCHASED" | "ARRIVED_VN" | "DELIVERED" | "ORDER_CREATED" | "QUOTATION_SENT" | "DEPOSIT_PAID" | "ORDER_CONFIRMED" | "PAYMENT_COMPLETED" | "PAYMENT_RECEIVED" | "PAYMENT_VOIDED" | "ORDER_CANCELLED" | "PURCHASING" | "IN_WAREHOUSE_ABROAD" | "INTERNATIONAL_SHIPPING" | "ITEM_CANCELLED" | "PACKED" | "HANDED_OVER" | "DELIVERING";
13443
16068
  startedAt: Date;
@@ -13474,8 +16099,8 @@ declare const _createClient: () => {
13474
16099
  };
13475
16100
  post: ((body: {
13476
16101
  depositId?: string | undefined;
13477
- customerEmail: string;
13478
16102
  customerName: string;
16103
+ customerEmail: string;
13479
16104
  customerPhone: string;
13480
16105
  shippingAddress: string;
13481
16106
  shipingNote: string;
@@ -13534,14 +16159,14 @@ declare const _createClient: () => {
13534
16159
  data: {
13535
16160
  uuid: string;
13536
16161
  status: "DRAFT" | "PENDING" | "CONFIRMED" | "PROCESSING" | "COMPLETED" | "CANCELLED";
13537
- createdAt: Date;
13538
- updatedAt: Date;
13539
- orderType: "ORDER" | "IN-STOCK";
13540
16162
  orderCode: string;
13541
16163
  subtotalAmount: number | null;
13542
16164
  totalDue: number | null;
13543
- depositRequiredAmount: number | null;
13544
16165
  totalPaid: number | null;
16166
+ createdAt: Date;
16167
+ updatedAt: Date;
16168
+ orderType: "ORDER" | "IN-STOCK";
16169
+ depositRequiredAmount: number | null;
13545
16170
  balanceRemaining: number | null;
13546
16171
  estimatedDeliveryAt: Date | null;
13547
16172
  paymentStatus: "PENDING" | "PAID" | "PARTIALLY_PAID" | "REFUNDED";
@@ -13594,8 +16219,8 @@ declare const _createClient: () => {
13594
16219
  webhooks: {
13595
16220
  post: ((body: {
13596
16221
  order: {
13597
- id: string;
13598
16222
  user_agent: string;
16223
+ id: string;
13599
16224
  order_status: "CANCELLED" | "CAPTURED" | "AUTHENTICATION_NOT_NEEDED";
13600
16225
  order_amount: string;
13601
16226
  order_currency: string;