@customafk/lunas-api-sdk 0.0.80 → 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
- documents: ((params: {
441
- uuid: string | number;
445
+ coupons: ((params: {
446
+ couponUuid: string | number;
442
447
  }) => {
443
448
  get: ((options?: {
444
449
  fetch?: RequestInit | undefined;
@@ -457,22 +462,18 @@ declare const _createClient: () => {
457
462
  success: true;
458
463
  statusCode: number;
459
464
  data: {
460
- type: "ANNOUNCEMENT" | "GUIDE" | "POLICY" | "TERMS" | "FAQ" | "OTHER";
465
+ name: string;
461
466
  uuid: string;
462
- status: "DRAFT" | "PUBLISHED" | "ARCHIVED";
463
- slug: string;
464
467
  createdAt: Date;
465
468
  updatedAt: Date;
466
- title: string;
467
- content: string;
468
- createdByUuid: string;
469
- publishedAt: Date | null;
470
- createdBy: {
471
- uuid: string;
472
- email: string;
473
- username: string;
474
- role: string;
475
- };
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;
476
477
  };
477
478
  message: null;
478
479
  error: null;
@@ -491,9 +492,15 @@ declare const _createClient: () => {
491
492
  '~path': string;
492
493
  };
493
494
  patch: ((body?: {
494
- type?: "ANNOUNCEMENT" | "GUIDE" | "POLICY" | "TERMS" | "FAQ" | "OTHER" | undefined;
495
- title?: string | undefined;
496
- content?: string | 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;
503
+ isActive?: boolean | undefined;
497
504
  } | undefined, options?: {
498
505
  fetch?: RequestInit | undefined;
499
506
  throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
@@ -527,80 +534,6 @@ declare const _createClient: () => {
527
534
  }>>) & {
528
535
  '~path': string;
529
536
  };
530
- publish: {
531
- patch: ((body?: {} | undefined, options?: {
532
- fetch?: RequestInit | undefined;
533
- throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
534
- headers?: {} | undefined;
535
- query?: {} | undefined;
536
- } | undefined) => Promise<Treaty.TreatyResponse<{
537
- 200: {
538
- success: true;
539
- statusCode: number;
540
- data: null;
541
- message: string;
542
- error: null;
543
- meta: TResponseMeta;
544
- } | {
545
- success: false;
546
- statusCode: number;
547
- data: null;
548
- message: string;
549
- error: TResponseError;
550
- meta: TResponseMeta;
551
- };
552
- 422: {
553
- type: "validation";
554
- on: string;
555
- summary?: string;
556
- message?: string;
557
- found?: unknown;
558
- property?: string;
559
- expected?: string;
560
- };
561
- }>>) & {
562
- '~path': string;
563
- };
564
- } & {
565
- '~path': string;
566
- };
567
- archive: {
568
- patch: ((body?: {} | undefined, options?: {
569
- fetch?: RequestInit | undefined;
570
- throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
571
- headers?: {} | undefined;
572
- query?: {} | undefined;
573
- } | undefined) => Promise<Treaty.TreatyResponse<{
574
- 200: {
575
- success: true;
576
- statusCode: number;
577
- data: null;
578
- message: string;
579
- error: null;
580
- meta: TResponseMeta;
581
- } | {
582
- success: false;
583
- statusCode: number;
584
- data: null;
585
- message: string;
586
- error: TResponseError;
587
- meta: TResponseMeta;
588
- };
589
- 422: {
590
- type: "validation";
591
- on: string;
592
- summary?: string;
593
- message?: string;
594
- found?: unknown;
595
- property?: string;
596
- expected?: string;
597
- };
598
- }>>) & {
599
- '~path': string;
600
- };
601
- } & {
602
- '~path': string;
603
- };
604
537
  delete: ((body?: {} | undefined, options?: {
605
538
  fetch?: RequestInit | undefined;
606
539
  throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
@@ -653,22 +586,18 @@ declare const _createClient: () => {
653
586
  success: true;
654
587
  statusCode: number;
655
588
  data: {
656
- type: "ANNOUNCEMENT" | "GUIDE" | "POLICY" | "TERMS" | "FAQ" | "OTHER";
589
+ name: string;
657
590
  uuid: string;
658
- status: "DRAFT" | "PUBLISHED" | "ARCHIVED";
659
- slug: string;
660
591
  createdAt: Date;
661
592
  updatedAt: Date;
662
- title: string;
663
- content: string;
664
- createdByUuid: string;
665
- publishedAt: Date | null;
666
- createdBy: {
667
- uuid: string;
668
- email: string;
669
- username: string;
670
- role: string;
671
- };
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;
672
601
  };
673
602
  message: null;
674
603
  error: null;
@@ -687,9 +616,15 @@ declare const _createClient: () => {
687
616
  '~path': string;
688
617
  };
689
618
  patch: ((body?: {
690
- type?: "ANNOUNCEMENT" | "GUIDE" | "POLICY" | "TERMS" | "FAQ" | "OTHER" | undefined;
691
- title?: string | undefined;
692
- content?: string | 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;
627
+ isActive?: boolean | undefined;
693
628
  } | undefined, options?: {
694
629
  fetch?: RequestInit | undefined;
695
630
  throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
@@ -723,80 +658,6 @@ declare const _createClient: () => {
723
658
  }>>) & {
724
659
  '~path': string;
725
660
  };
726
- publish: {
727
- patch: ((body?: {} | undefined, options?: {
728
- fetch?: RequestInit | undefined;
729
- throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
730
- headers?: {} | undefined;
731
- query?: {} | undefined;
732
- } | undefined) => Promise<Treaty.TreatyResponse<{
733
- 200: {
734
- success: true;
735
- statusCode: number;
736
- data: null;
737
- message: string;
738
- error: null;
739
- meta: TResponseMeta;
740
- } | {
741
- success: false;
742
- statusCode: number;
743
- data: null;
744
- message: string;
745
- error: TResponseError;
746
- meta: TResponseMeta;
747
- };
748
- 422: {
749
- type: "validation";
750
- on: string;
751
- summary?: string;
752
- message?: string;
753
- found?: unknown;
754
- property?: string;
755
- expected?: string;
756
- };
757
- }>>) & {
758
- '~path': string;
759
- };
760
- } & {
761
- '~path': string;
762
- };
763
- archive: {
764
- patch: ((body?: {} | undefined, options?: {
765
- fetch?: RequestInit | undefined;
766
- throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
767
- headers?: {} | undefined;
768
- query?: {} | undefined;
769
- } | undefined) => Promise<Treaty.TreatyResponse<{
770
- 200: {
771
- success: true;
772
- statusCode: number;
773
- data: null;
774
- message: string;
775
- error: null;
776
- meta: TResponseMeta;
777
- } | {
778
- success: false;
779
- statusCode: number;
780
- data: null;
781
- message: string;
782
- error: TResponseError;
783
- meta: TResponseMeta;
784
- };
785
- 422: {
786
- type: "validation";
787
- on: string;
788
- summary?: string;
789
- message?: string;
790
- found?: unknown;
791
- property?: string;
792
- expected?: string;
793
- };
794
- }>>) & {
795
- '~path': string;
796
- };
797
- } & {
798
- '~path': string;
799
- };
800
661
  delete: ((body?: {} | undefined, options?: {
801
662
  fetch?: RequestInit | undefined;
802
663
  throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
@@ -836,11 +697,10 @@ declare const _createClient: () => {
836
697
  throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
837
698
  headers?: {} | undefined;
838
699
  query?: {
839
- type?: "ANNOUNCEMENT" | "GUIDE" | "POLICY" | "TERMS" | "FAQ" | "OTHER" | undefined;
840
- status?: "DRAFT" | "PUBLISHED" | "ARCHIVED" | undefined;
841
- search?: string | undefined;
842
- limit?: number | undefined;
843
700
  page?: number | undefined;
701
+ limit?: number | undefined;
702
+ search?: string | undefined;
703
+ isActive?: boolean | undefined;
844
704
  } | undefined;
845
705
  } | undefined) => Promise<Treaty.TreatyResponse<{
846
706
  200: {
@@ -855,20 +715,18 @@ declare const _createClient: () => {
855
715
  statusCode: number;
856
716
  data: {
857
717
  data: {
858
- type: "ANNOUNCEMENT" | "GUIDE" | "POLICY" | "TERMS" | "FAQ" | "OTHER";
718
+ name: string;
859
719
  uuid: string;
860
- status: "DRAFT" | "PUBLISHED" | "ARCHIVED";
861
- slug: string;
862
720
  createdAt: Date;
863
721
  updatedAt: Date;
864
- title: string;
865
- publishedAt: Date | null;
866
- createdBy: {
867
- uuid: string;
868
- email: string;
869
- username: string;
870
- role: string;
871
- };
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;
872
730
  }[];
873
731
  pagination: {
874
732
  page: number;
@@ -896,9 +754,15 @@ declare const _createClient: () => {
896
754
  '~path': string;
897
755
  };
898
756
  post: ((body: {
899
- content?: string | undefined;
900
- type: "ANNOUNCEMENT" | "GUIDE" | "POLICY" | "TERMS" | "FAQ" | "OTHER";
901
- title: string;
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;
902
766
  }, options?: {
903
767
  fetch?: RequestInit | undefined;
904
768
  throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
@@ -916,7 +780,18 @@ declare const _createClient: () => {
916
780
  success: true;
917
781
  statusCode: number;
918
782
  data: {
783
+ name: string;
919
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;
920
795
  };
921
796
  message: null;
922
797
  error: null;
@@ -935,40 +810,637 @@ declare const _createClient: () => {
935
810
  '~path': string;
936
811
  };
937
812
  bulk: {
938
- delete: ((body: {}, options: {
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?: {
939
826
  fetch?: RequestInit | undefined;
940
827
  throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
941
828
  headers?: {} | undefined;
942
- query: {
943
- uuids: string[];
944
- };
945
- }) => Promise<Treaty.TreatyResponse<{
829
+ query?: {} | undefined;
830
+ } | undefined) => Promise<Treaty.TreatyResponse<{
946
831
  200: {
947
- success: true;
948
- statusCode: number;
949
- data: null;
950
- message: string;
951
- error: null;
952
- meta: TResponseMeta;
953
- } | {
954
832
  success: false;
955
833
  statusCode: number;
956
834
  data: null;
957
835
  message: string;
958
836
  error: TResponseError;
959
837
  meta: TResponseMeta;
960
- };
961
- 422: {
962
- type: "validation";
963
- on: string;
964
- summary?: string;
965
- message?: string;
966
- found?: unknown;
967
- property?: string;
968
- expected?: string;
969
- };
970
- }>>) & {
971
- '~path': string;
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;
972
1444
  };
973
1445
  } & {
974
1446
  '~path': string;
@@ -1027,23 +1499,330 @@ declare const _createClient: () => {
1027
1499
  dateOfBirth: Date | null;
1028
1500
  };
1029
1501
  };
1030
- message: null;
1031
- error: null;
1032
- meta: TResponseMeta;
1033
- };
1034
- 422: {
1035
- type: "validation";
1036
- on: string;
1037
- summary?: string;
1038
- message?: string;
1039
- found?: unknown;
1040
- property?: string;
1041
- expected?: string;
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;
1042
1824
  };
1043
- }>>) & {
1044
- '~path': string;
1045
- };
1046
- orders: {
1825
+ }) & {
1047
1826
  get: ((options?: {
1048
1827
  fetch?: RequestInit | undefined;
1049
1828
  throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
@@ -1070,26 +1849,26 @@ declare const _createClient: () => {
1070
1849
  name: string | null;
1071
1850
  uuid: string;
1072
1851
  status: "DRAFT" | "PENDING" | "CONFIRMED" | "PROCESSING" | "COMPLETED" | "CANCELLED";
1073
- createdAt: Date;
1074
- updatedAt: Date;
1075
- userUuid: string | null;
1076
- orderType: "ORDER" | "IN-STOCK";
1077
1852
  orderCode: string;
1078
- customerEmail: string | null;
1853
+ userUuid: string | null;
1079
1854
  customerName: string | null;
1855
+ customerEmail: string | null;
1080
1856
  customerPhone: string | null;
1081
1857
  shippingAddress: unknown;
1082
1858
  subtotalAmount: number | null;
1083
1859
  taxTotal: number | null;
1084
- appliedDepositName: string | null;
1085
- appliedDepositType: "PERCENTAGE" | "FIXED" | null;
1086
- appliedDepositValue: number | null;
1087
1860
  depositSurchargeTotal: number | null;
1088
1861
  otherSurchargeTotal: number | null;
1089
1862
  totalDue: number | null;
1090
- depositRequiredAmount: number | null;
1091
1863
  totalPaid: number | null;
1092
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;
1093
1872
  balanceRemaining: number | null;
1094
1873
  paymentStatus: "PENDING" | "PAID" | "PARTIALLY_PAID" | "REFUNDED";
1095
1874
  fulfillmentStatus: "UNFULFILLED" | "PARTIALLY_FULFILLED" | "FULFILLED" | "RETURNED";
@@ -1328,23 +2107,330 @@ declare const _createClient: () => {
1328
2107
  dateOfBirth: Date | null;
1329
2108
  };
1330
2109
  };
1331
- message: null;
1332
- error: null;
1333
- meta: TResponseMeta;
1334
- };
1335
- 422: {
1336
- type: "validation";
1337
- on: string;
1338
- summary?: string;
1339
- message?: string;
1340
- found?: unknown;
1341
- property?: string;
1342
- expected?: string;
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;
1343
2432
  };
1344
- }>>) & {
1345
- '~path': string;
1346
- };
1347
- orders: {
2433
+ }) & {
1348
2434
  get: ((options?: {
1349
2435
  fetch?: RequestInit | undefined;
1350
2436
  throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
@@ -1371,26 +2457,26 @@ declare const _createClient: () => {
1371
2457
  name: string | null;
1372
2458
  uuid: string;
1373
2459
  status: "DRAFT" | "PENDING" | "CONFIRMED" | "PROCESSING" | "COMPLETED" | "CANCELLED";
1374
- createdAt: Date;
1375
- updatedAt: Date;
1376
- userUuid: string | null;
1377
- orderType: "ORDER" | "IN-STOCK";
1378
2460
  orderCode: string;
1379
- customerEmail: string | null;
2461
+ userUuid: string | null;
1380
2462
  customerName: string | null;
2463
+ customerEmail: string | null;
1381
2464
  customerPhone: string | null;
1382
2465
  shippingAddress: unknown;
1383
2466
  subtotalAmount: number | null;
1384
2467
  taxTotal: number | null;
1385
- appliedDepositName: string | null;
1386
- appliedDepositType: "PERCENTAGE" | "FIXED" | null;
1387
- appliedDepositValue: number | null;
1388
2468
  depositSurchargeTotal: number | null;
1389
2469
  otherSurchargeTotal: number | null;
1390
2470
  totalDue: number | null;
1391
- depositRequiredAmount: number | null;
1392
2471
  totalPaid: number | null;
1393
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;
1394
2480
  balanceRemaining: number | null;
1395
2481
  paymentStatus: "PENDING" | "PAID" | "PARTIALLY_PAID" | "REFUNDED";
1396
2482
  fulfillmentStatus: "UNFULFILLED" | "PARTIALLY_FULFILLED" | "FULFILLED" | "RETURNED";
@@ -1741,6 +2827,202 @@ declare const _createClient: () => {
1741
2827
  } & {
1742
2828
  '~path': string;
1743
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
+ };
1744
3026
  category: ((params: {
1745
3027
  uuid: string | number;
1746
3028
  }) => {
@@ -1763,17 +3045,17 @@ declare const _createClient: () => {
1763
3045
  data: {
1764
3046
  name: string;
1765
3047
  uuid: string;
1766
- slug: string;
1767
- description: string | null;
1768
3048
  createdAt: Date;
1769
3049
  updatedAt: Date;
3050
+ description: string | null;
3051
+ slug: string;
1770
3052
  sub: {
1771
3053
  name: string;
1772
3054
  uuid: string;
1773
- slug: string;
1774
- description: string | null;
1775
3055
  createdAt: Date;
1776
3056
  updatedAt: Date;
3057
+ description: string | null;
3058
+ slug: string;
1777
3059
  }[];
1778
3060
  };
1779
3061
  message: null;
@@ -1975,17 +3257,17 @@ declare const _createClient: () => {
1975
3257
  data: {
1976
3258
  name: string;
1977
3259
  uuid: string;
1978
- slug: string;
1979
- description: string | null;
1980
3260
  createdAt: Date;
1981
3261
  updatedAt: Date;
3262
+ description: string | null;
3263
+ slug: string;
1982
3264
  sub: {
1983
3265
  name: string;
1984
3266
  uuid: string;
1985
- slug: string;
1986
- description: string | null;
1987
3267
  createdAt: Date;
1988
3268
  updatedAt: Date;
3269
+ description: string | null;
3270
+ slug: string;
1989
3271
  }[];
1990
3272
  };
1991
3273
  message: null;
@@ -2186,18 +3468,18 @@ declare const _createClient: () => {
2186
3468
  data: {
2187
3469
  name: string;
2188
3470
  uuid: string;
2189
- slug: string;
2190
- description: string | null;
2191
- parentUuid: string | null;
2192
3471
  createdAt: Date;
2193
3472
  updatedAt: Date;
3473
+ description: string | null;
3474
+ slug: string;
3475
+ parentUuid: string | null;
2194
3476
  sub: {
2195
3477
  name: string;
2196
3478
  uuid: string;
2197
- slug: string;
2198
- description: string | null;
2199
3479
  createdAt: Date;
2200
3480
  updatedAt: Date;
3481
+ description: string | null;
3482
+ slug: string;
2201
3483
  }[];
2202
3484
  }[];
2203
3485
  message: null;
@@ -2928,9 +4210,9 @@ declare const _createClient: () => {
2928
4210
  data: {
2929
4211
  name: string;
2930
4212
  uuid: string;
2931
- description: string | null;
2932
4213
  createdAt: Date;
2933
4214
  updatedAt: Date;
4215
+ description: string | null;
2934
4216
  valueType: "PERCENTAGE" | "FIXED";
2935
4217
  depositValue: number;
2936
4218
  surchargeValue: number;
@@ -4780,9 +6062,9 @@ declare const _createClient: () => {
4780
6062
  name: string;
4781
6063
  uuid: string;
4782
6064
  path: string;
4783
- description: string | null;
4784
6065
  createdAt: Date | null;
4785
6066
  updatedAt: Date | null;
6067
+ description: string | null;
4786
6068
  size: number;
4787
6069
  mimeType: string;
4788
6070
  altText: string | null;
@@ -4858,9 +6140,9 @@ declare const _createClient: () => {
4858
6140
  name: string;
4859
6141
  uuid: string;
4860
6142
  path: string;
4861
- description: string | null;
4862
6143
  createdAt: Date | null;
4863
6144
  updatedAt: Date | null;
6145
+ description: string | null;
4864
6146
  size: number;
4865
6147
  mimeType: string;
4866
6148
  altText: string | null;
@@ -4941,9 +6223,9 @@ declare const _createClient: () => {
4941
6223
  name: string;
4942
6224
  uuid: string;
4943
6225
  path: string;
4944
- description: string | null;
4945
6226
  createdAt: Date | null;
4946
6227
  updatedAt: Date | null;
6228
+ description: string | null;
4947
6229
  size: number;
4948
6230
  mimeType: string;
4949
6231
  altText: string | null;
@@ -4952,9 +6234,9 @@ declare const _createClient: () => {
4952
6234
  name: string;
4953
6235
  uuid: string;
4954
6236
  path: string;
4955
- description: string | null;
4956
6237
  createdAt: Date | null;
4957
6238
  updatedAt: Date | null;
6239
+ description: string | null;
4958
6240
  size: number;
4959
6241
  mimeType: string;
4960
6242
  altText: string | null;
@@ -5011,9 +6293,9 @@ declare const _createClient: () => {
5011
6293
  name: string;
5012
6294
  uuid: string;
5013
6295
  path: string;
5014
- description: string | null;
5015
6296
  createdAt: Date | null;
5016
6297
  updatedAt: Date | null;
6298
+ description: string | null;
5017
6299
  size: number;
5018
6300
  mimeType: string;
5019
6301
  altText: string | null;
@@ -5069,9 +6351,9 @@ declare const _createClient: () => {
5069
6351
  name: string;
5070
6352
  uuid: string;
5071
6353
  path: string;
5072
- description: string | null;
5073
6354
  createdAt: Date | null;
5074
6355
  updatedAt: Date | null;
6356
+ description: string | null;
5075
6357
  size: number;
5076
6358
  mimeType: string;
5077
6359
  altText: string | null;
@@ -5938,29 +7220,29 @@ declare const _createClient: () => {
5938
7220
  name: string | null;
5939
7221
  uuid: string;
5940
7222
  status: "DRAFT" | "PENDING" | "CONFIRMED" | "PROCESSING" | "COMPLETED" | "CANCELLED";
5941
- createdAt: Date;
5942
- updatedAt: Date;
5943
- userUuid: string | null;
5944
- orderType: "ORDER" | "IN-STOCK";
5945
7223
  orderCode: string;
5946
- accessToken: string | null;
5947
- guestInfo: unknown;
5948
- customerEmail: string | null;
7224
+ userUuid: string | null;
5949
7225
  customerName: string | null;
7226
+ customerEmail: string | null;
5950
7227
  customerPhone: string | null;
5951
7228
  shippingAddress: unknown;
5952
7229
  subtotalAmount: number | null;
5953
7230
  discountTotal: number | null;
5954
7231
  taxTotal: number | null;
5955
- appliedDepositName: string | null;
5956
- appliedDepositType: "PERCENTAGE" | "FIXED" | null;
5957
- appliedDepositValue: number | null;
5958
7232
  depositSurchargeTotal: number | null;
5959
7233
  otherSurchargeTotal: number | null;
5960
7234
  totalDue: number | null;
5961
- depositRequiredAmount: number | null;
5962
7235
  totalPaid: number | null;
5963
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;
5964
7246
  balanceRemaining: number | null;
5965
7247
  totalWeightGram: number | null;
5966
7248
  shipingNote: string | null;
@@ -5973,6 +7255,11 @@ declare const _createClient: () => {
5973
7255
  cancelReason: string | null;
5974
7256
  cancelledBy: string | null;
5975
7257
  deletedAt: Date | null;
7258
+ user: {
7259
+ uuid: string;
7260
+ email: string;
7261
+ username: string;
7262
+ } | null;
5976
7263
  orderManifests: {
5977
7264
  uuid: string;
5978
7265
  status: "PROCESSING" | "CANCELLED" | "PURCHASED" | "WAREHOUSE_ABROAD" | "IN_TRANSIT" | "ARRIVED_VN" | "DELIVERED";
@@ -6015,9 +7302,9 @@ declare const _createClient: () => {
6015
7302
  status: "COMPLETED" | "IN_PROGRESS" | "SKIPPED" | "FAILED";
6016
7303
  createdAt: Date;
6017
7304
  updatedAt: Date;
7305
+ completedAt: Date | null;
6018
7306
  title: string;
6019
7307
  content: string | null;
6020
- completedAt: Date | null;
6021
7308
  manifestUuid: string | null;
6022
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";
6023
7310
  startedAt: Date;
@@ -6030,9 +7317,9 @@ declare const _createClient: () => {
6030
7317
  name: string;
6031
7318
  uuid: string;
6032
7319
  status: "CANCELLED" | "ACTIVE" | "INACTIVE";
6033
- description: string | null;
6034
7320
  createdAt: Date;
6035
7321
  updatedAt: Date;
7322
+ description: string | null;
6036
7323
  surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
6037
7324
  amount: number;
6038
7325
  applyTo: "BEFORE_TAX" | "AFTER_TAX";
@@ -6338,10 +7625,10 @@ declare const _createClient: () => {
6338
7625
  data: {
6339
7626
  uuid: string;
6340
7627
  status: "PROCESSING" | "CANCELLED" | "PURCHASED" | "WAREHOUSE_ABROAD" | "IN_TRANSIT" | "ARRIVED_VN" | "DELIVERED";
6341
- createdAt: Date | null;
6342
- updatedAt: Date | null;
6343
7628
  orderUuid: string;
6344
7629
  orderCode: string | null;
7630
+ createdAt: Date | null;
7631
+ updatedAt: Date | null;
6345
7632
  variantUuid: string;
6346
7633
  productName: string | null;
6347
7634
  productUrl: string | null;
@@ -6691,9 +7978,9 @@ declare const _createClient: () => {
6691
7978
  name: string;
6692
7979
  uuid: string;
6693
7980
  status: "CANCELLED" | "ACTIVE" | "INACTIVE";
6694
- description: string | null;
6695
7981
  createdAt: Date;
6696
7982
  updatedAt: Date;
7983
+ description: string | null;
6697
7984
  surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
6698
7985
  amount: number;
6699
7986
  applyTo: "BEFORE_TAX" | "AFTER_TAX";
@@ -6718,9 +8005,46 @@ declare const _createClient: () => {
6718
8005
  } & {
6719
8006
  '~path': string;
6720
8007
  };
6721
- delete: ((body?: {
6722
- cancelReason?: string | undefined;
6723
- } | 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?: {
6724
8048
  fetch?: RequestInit | undefined;
6725
8049
  throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
6726
8050
  headers?: {} | undefined;
@@ -6763,32 +8087,184 @@ declare const _createClient: () => {
6763
8087
  query?: {} | undefined;
6764
8088
  } | undefined) => Promise<Treaty.TreatyResponse<{
6765
8089
  200: {
6766
- success: false;
8090
+ success: false;
8091
+ statusCode: number;
8092
+ data: null;
8093
+ message: string;
8094
+ error: TResponseError;
8095
+ meta: TResponseMeta;
8096
+ } | {
8097
+ success: true;
8098
+ statusCode: number;
8099
+ data: {
8100
+ uuid: string;
8101
+ status: "COMPLETED" | "IN_PROGRESS" | "SKIPPED" | "FAILED";
8102
+ createdAt: Date;
8103
+ updatedAt: Date;
8104
+ completedAt: Date | null;
8105
+ title: string;
8106
+ content: string | null;
8107
+ manifestUuid: string | null;
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";
8109
+ startedAt: Date;
8110
+ category: "ORDER" | "PAYMENT" | "LOGISTICS";
8111
+ isPublic: boolean;
8112
+ actorUuid: string | null;
8113
+ }[];
8114
+ message: null;
8115
+ error: null;
8116
+ meta: TResponseMeta;
8117
+ };
8118
+ 422: {
8119
+ type: "validation";
8120
+ on: string;
8121
+ summary?: string;
8122
+ message?: string;
8123
+ found?: unknown;
8124
+ property?: string;
8125
+ expected?: string;
8126
+ };
8127
+ }>>) & {
8128
+ '~path': string;
8129
+ };
8130
+ } & {
8131
+ '~path': string;
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;
6767
8257
  statusCode: number;
6768
8258
  data: null;
6769
8259
  message: string;
6770
- error: TResponseError;
8260
+ error: null;
6771
8261
  meta: TResponseMeta;
6772
8262
  } | {
6773
- success: true;
8263
+ success: false;
6774
8264
  statusCode: number;
6775
- data: {
6776
- uuid: string;
6777
- status: "COMPLETED" | "IN_PROGRESS" | "SKIPPED" | "FAILED";
6778
- createdAt: Date;
6779
- updatedAt: Date;
6780
- title: string;
6781
- content: string | null;
6782
- completedAt: Date | null;
6783
- manifestUuid: string | null;
6784
- 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";
6785
- startedAt: Date;
6786
- category: "ORDER" | "PAYMENT" | "LOGISTICS";
6787
- isPublic: boolean;
6788
- actorUuid: string | null;
6789
- }[];
6790
- message: null;
6791
- error: null;
8265
+ data: null;
8266
+ message: string;
8267
+ error: TResponseError;
6792
8268
  meta: TResponseMeta;
6793
8269
  };
6794
8270
  422: {
@@ -6867,29 +8343,29 @@ declare const _createClient: () => {
6867
8343
  name: string | null;
6868
8344
  uuid: string;
6869
8345
  status: "DRAFT" | "PENDING" | "CONFIRMED" | "PROCESSING" | "COMPLETED" | "CANCELLED";
6870
- createdAt: Date;
6871
- updatedAt: Date;
6872
- userUuid: string | null;
6873
- orderType: "ORDER" | "IN-STOCK";
6874
8346
  orderCode: string;
6875
- accessToken: string | null;
6876
- guestInfo: unknown;
6877
- customerEmail: string | null;
8347
+ userUuid: string | null;
6878
8348
  customerName: string | null;
8349
+ customerEmail: string | null;
6879
8350
  customerPhone: string | null;
6880
8351
  shippingAddress: unknown;
6881
8352
  subtotalAmount: number | null;
6882
8353
  discountTotal: number | null;
6883
8354
  taxTotal: number | null;
6884
- appliedDepositName: string | null;
6885
- appliedDepositType: "PERCENTAGE" | "FIXED" | null;
6886
- appliedDepositValue: number | null;
6887
8355
  depositSurchargeTotal: number | null;
6888
8356
  otherSurchargeTotal: number | null;
6889
8357
  totalDue: number | null;
6890
- depositRequiredAmount: number | null;
6891
8358
  totalPaid: number | null;
6892
8359
  totalRefunded: number | null;
8360
+ createdAt: Date;
8361
+ updatedAt: Date;
8362
+ orderType: "ORDER" | "IN-STOCK";
8363
+ accessToken: string | null;
8364
+ guestInfo: unknown;
8365
+ appliedDepositName: string | null;
8366
+ appliedDepositType: "PERCENTAGE" | "FIXED" | null;
8367
+ appliedDepositValue: number | null;
8368
+ depositRequiredAmount: number | null;
6893
8369
  balanceRemaining: number | null;
6894
8370
  totalWeightGram: number | null;
6895
8371
  shipingNote: string | null;
@@ -6902,6 +8378,11 @@ declare const _createClient: () => {
6902
8378
  cancelReason: string | null;
6903
8379
  cancelledBy: string | null;
6904
8380
  deletedAt: Date | null;
8381
+ user: {
8382
+ uuid: string;
8383
+ email: string;
8384
+ username: string;
8385
+ } | null;
6905
8386
  orderManifests: {
6906
8387
  uuid: string;
6907
8388
  status: "PROCESSING" | "CANCELLED" | "PURCHASED" | "WAREHOUSE_ABROAD" | "IN_TRANSIT" | "ARRIVED_VN" | "DELIVERED";
@@ -6944,9 +8425,9 @@ declare const _createClient: () => {
6944
8425
  status: "COMPLETED" | "IN_PROGRESS" | "SKIPPED" | "FAILED";
6945
8426
  createdAt: Date;
6946
8427
  updatedAt: Date;
8428
+ completedAt: Date | null;
6947
8429
  title: string;
6948
8430
  content: string | null;
6949
- completedAt: Date | null;
6950
8431
  manifestUuid: string | null;
6951
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";
6952
8433
  startedAt: Date;
@@ -6959,9 +8440,9 @@ declare const _createClient: () => {
6959
8440
  name: string;
6960
8441
  uuid: string;
6961
8442
  status: "CANCELLED" | "ACTIVE" | "INACTIVE";
6962
- description: string | null;
6963
8443
  createdAt: Date;
6964
8444
  updatedAt: Date;
8445
+ description: string | null;
6965
8446
  surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
6966
8447
  amount: number;
6967
8448
  applyTo: "BEFORE_TAX" | "AFTER_TAX";
@@ -7267,10 +8748,10 @@ declare const _createClient: () => {
7267
8748
  data: {
7268
8749
  uuid: string;
7269
8750
  status: "PROCESSING" | "CANCELLED" | "PURCHASED" | "WAREHOUSE_ABROAD" | "IN_TRANSIT" | "ARRIVED_VN" | "DELIVERED";
7270
- createdAt: Date | null;
7271
- updatedAt: Date | null;
7272
8751
  orderUuid: string;
7273
8752
  orderCode: string | null;
8753
+ createdAt: Date | null;
8754
+ updatedAt: Date | null;
7274
8755
  variantUuid: string;
7275
8756
  productName: string | null;
7276
8757
  productUrl: string | null;
@@ -7620,9 +9101,9 @@ declare const _createClient: () => {
7620
9101
  name: string;
7621
9102
  uuid: string;
7622
9103
  status: "CANCELLED" | "ACTIVE" | "INACTIVE";
7623
- description: string | null;
7624
9104
  createdAt: Date;
7625
9105
  updatedAt: Date;
9106
+ description: string | null;
7626
9107
  surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
7627
9108
  amount: number;
7628
9109
  applyTo: "BEFORE_TAX" | "AFTER_TAX";
@@ -7647,9 +9128,46 @@ declare const _createClient: () => {
7647
9128
  } & {
7648
9129
  '~path': string;
7649
9130
  };
7650
- delete: ((body?: {
7651
- cancelReason?: string | undefined;
7652
- } | 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?: {
7653
9171
  fetch?: RequestInit | undefined;
7654
9172
  throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
7655
9173
  headers?: {} | undefined;
@@ -7706,9 +9224,9 @@ declare const _createClient: () => {
7706
9224
  status: "COMPLETED" | "IN_PROGRESS" | "SKIPPED" | "FAILED";
7707
9225
  createdAt: Date;
7708
9226
  updatedAt: Date;
9227
+ completedAt: Date | null;
7709
9228
  title: string;
7710
9229
  content: string | null;
7711
- completedAt: Date | null;
7712
9230
  manifestUuid: string | null;
7713
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";
7714
9232
  startedAt: Date;
@@ -7735,6 +9253,158 @@ declare const _createClient: () => {
7735
9253
  } & {
7736
9254
  '~path': string;
7737
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
+ };
7738
9408
  account: {
7739
9409
  patch: ((body: {
7740
9410
  userUuid: string | null;
@@ -7782,10 +9452,10 @@ declare const _createClient: () => {
7782
9452
  query?: {
7783
9453
  status?: "DRAFT" | "PENDING" | "CONFIRMED" | "PROCESSING" | "COMPLETED" | "CANCELLED" | undefined;
7784
9454
  search?: string | undefined;
7785
- orderType?: "ORDER" | "IN-STOCK" | undefined;
7786
- customerEmail?: string | undefined;
7787
9455
  customerName?: string | undefined;
9456
+ customerEmail?: string | undefined;
7788
9457
  customerPhone?: string | undefined;
9458
+ orderType?: "ORDER" | "IN-STOCK" | undefined;
7789
9459
  paymentStatus?: "PENDING" | "PAID" | "PARTIALLY_PAID" | "REFUNDED" | undefined;
7790
9460
  fulfillmentStatus?: "UNFULFILLED" | "PARTIALLY_FULFILLED" | "FULFILLED" | "RETURNED" | undefined;
7791
9461
  limit?: number | undefined;
@@ -7811,31 +9481,36 @@ declare const _createClient: () => {
7811
9481
  name: string | null;
7812
9482
  uuid: string;
7813
9483
  status: "DRAFT" | "PENDING" | "CONFIRMED" | "PROCESSING" | "COMPLETED" | "CANCELLED";
7814
- createdAt: Date;
7815
- updatedAt: Date;
7816
- userUuid: string | null;
7817
- orderType: "ORDER" | "IN-STOCK";
7818
9484
  orderCode: string;
7819
- customerEmail: string | null;
9485
+ userUuid: string | null;
7820
9486
  customerName: string | null;
9487
+ customerEmail: string | null;
7821
9488
  customerPhone: string | null;
7822
9489
  shippingAddress: unknown;
7823
9490
  subtotalAmount: number | null;
7824
9491
  taxTotal: number | null;
7825
- appliedDepositName: string | null;
7826
- appliedDepositType: "PERCENTAGE" | "FIXED" | null;
7827
- appliedDepositValue: number | null;
7828
9492
  depositSurchargeTotal: number | null;
7829
9493
  otherSurchargeTotal: number | null;
7830
9494
  totalDue: number | null;
7831
- depositRequiredAmount: number | null;
7832
9495
  totalPaid: number | null;
7833
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;
7834
9504
  balanceRemaining: number | null;
7835
9505
  paymentStatus: "PENDING" | "PAID" | "PARTIALLY_PAID" | "REFUNDED";
7836
9506
  fulfillmentStatus: "UNFULFILLED" | "PARTIALLY_FULFILLED" | "FULFILLED" | "RETURNED";
7837
9507
  riskLevel: "LOW" | "MEDIUM" | "HIGH";
7838
9508
  completedAt: Date | null;
9509
+ user: {
9510
+ uuid: string;
9511
+ email: string;
9512
+ username: string;
9513
+ } | null;
7839
9514
  }[];
7840
9515
  pagination: {
7841
9516
  page: number;
@@ -7888,16 +9563,16 @@ declare const _createClient: () => {
7888
9563
  name: string | null;
7889
9564
  uuid: string;
7890
9565
  status: "DRAFT" | "PENDING" | "CONFIRMED" | "PROCESSING" | "COMPLETED" | "CANCELLED";
7891
- createdAt: Date;
7892
- updatedAt: Date;
7893
- orderType: "ORDER" | "IN-STOCK";
7894
9566
  orderCode: string;
7895
9567
  subtotalAmount: number | null;
7896
9568
  depositSurchargeTotal: number | null;
7897
9569
  otherSurchargeTotal: number | null;
7898
9570
  totalDue: number | null;
7899
- depositRequiredAmount: number | null;
7900
9571
  totalPaid: number | null;
9572
+ createdAt: Date;
9573
+ updatedAt: Date;
9574
+ orderType: "ORDER" | "IN-STOCK";
9575
+ depositRequiredAmount: number | null;
7901
9576
  balanceRemaining: number | null;
7902
9577
  paymentStatus: "PENDING" | "PAID" | "PARTIALLY_PAID" | "REFUNDED";
7903
9578
  }[];
@@ -8213,10 +9888,10 @@ declare const _createClient: () => {
8213
9888
  data: {
8214
9889
  uuid: string;
8215
9890
  status: "PROCESSING" | "CANCELLED" | "PURCHASED" | "WAREHOUSE_ABROAD" | "IN_TRANSIT" | "ARRIVED_VN" | "DELIVERED";
8216
- createdAt: Date | null;
8217
- updatedAt: Date | null;
8218
9891
  orderUuid: string;
8219
9892
  orderCode: string | null;
9893
+ createdAt: Date | null;
9894
+ updatedAt: Date | null;
8220
9895
  variantUuid: string;
8221
9896
  productName: string | null;
8222
9897
  originCountry: string | null;
@@ -8229,8 +9904,8 @@ declare const _createClient: () => {
8229
9904
  name: string | null;
8230
9905
  uuid: string;
8231
9906
  status: "DRAFT" | "PENDING" | "CONFIRMED" | "PROCESSING" | "COMPLETED" | "CANCELLED";
8232
- orderType: "ORDER" | "IN-STOCK";
8233
9907
  orderCode: string;
9908
+ orderType: "ORDER" | "IN-STOCK";
8234
9909
  };
8235
9910
  variant: {
8236
9911
  name: string;
@@ -8486,8 +10161,8 @@ declare const _createClient: () => {
8486
10161
  name: string | null;
8487
10162
  uuid: string;
8488
10163
  status: "DRAFT" | "PENDING" | "CONFIRMED" | "PROCESSING" | "COMPLETED" | "CANCELLED";
8489
- orderType: "ORDER" | "IN-STOCK";
8490
10164
  orderCode: string;
10165
+ orderType: "ORDER" | "IN-STOCK";
8491
10166
  } | null;
8492
10167
  }[];
8493
10168
  pagination: {
@@ -8584,10 +10259,10 @@ declare const _createClient: () => {
8584
10259
  uuid: string;
8585
10260
  tags: string[] | null;
8586
10261
  length: number | null;
8587
- slug: string;
8588
- description: string | null;
8589
10262
  createdAt: Date | null;
8590
10263
  updatedAt: Date | null;
10264
+ description: string | null;
10265
+ slug: string;
8591
10266
  createdBy: string;
8592
10267
  standardCost: number | null;
8593
10268
  retailCost: number | null;
@@ -8618,9 +10293,9 @@ declare const _createClient: () => {
8618
10293
  name: string;
8619
10294
  uuid: string;
8620
10295
  length: number | null;
8621
- description: string | null;
8622
10296
  createdAt: Date | null;
8623
10297
  updatedAt: Date | null;
10298
+ description: string | null;
8624
10299
  isActive: boolean | null;
8625
10300
  isDefault: boolean | null;
8626
10301
  sku: string;
@@ -8661,14 +10336,14 @@ declare const _createClient: () => {
8661
10336
  parentCategory: {
8662
10337
  name: string;
8663
10338
  uuid: string;
8664
- icon: string | null;
8665
10339
  description: string | null;
10340
+ icon: string | null;
8666
10341
  } | null;
8667
10342
  subCategory: {
8668
10343
  name: string;
8669
10344
  uuid: string;
8670
- icon: string | null;
8671
10345
  description: string | null;
10346
+ icon: string | null;
8672
10347
  } | null;
8673
10348
  series: {
8674
10349
  name: string;
@@ -8739,9 +10414,9 @@ declare const _createClient: () => {
8739
10414
  variants: {
8740
10415
  name: string;
8741
10416
  uuid: string;
8742
- description: string | null;
8743
10417
  createdAt: Date | null;
8744
10418
  updatedAt: Date | null;
10419
+ description: string | null;
8745
10420
  sku: string;
8746
10421
  retailCost: number | null;
8747
10422
  options: {
@@ -8837,13 +10512,13 @@ declare const _createClient: () => {
8837
10512
  uuid: string;
8838
10513
  tags: string[] | null;
8839
10514
  length: number | null;
8840
- slug: string;
8841
- description: string | null;
8842
10515
  createdAt: Date | null;
8843
10516
  updatedAt: Date | null;
10517
+ description: string | null;
10518
+ deletedAt: Date | null;
10519
+ slug: string;
8844
10520
  createdBy: string;
8845
10521
  seriesUuid: string | null;
8846
- deletedAt: Date | null;
8847
10522
  standardCost: number | null;
8848
10523
  retailCost: number | null;
8849
10524
  weight: number | null;
@@ -9305,10 +10980,10 @@ declare const _createClient: () => {
9305
10980
  uuid: string;
9306
10981
  tags: string[] | null;
9307
10982
  length: number | null;
9308
- slug: string;
9309
- description: string | null;
9310
10983
  createdAt: Date | null;
9311
10984
  updatedAt: Date | null;
10985
+ description: string | null;
10986
+ slug: string;
9312
10987
  createdBy: string;
9313
10988
  standardCost: number | null;
9314
10989
  retailCost: number | null;
@@ -9339,9 +11014,9 @@ declare const _createClient: () => {
9339
11014
  name: string;
9340
11015
  uuid: string;
9341
11016
  length: number | null;
9342
- description: string | null;
9343
11017
  createdAt: Date | null;
9344
11018
  updatedAt: Date | null;
11019
+ description: string | null;
9345
11020
  isActive: boolean | null;
9346
11021
  isDefault: boolean | null;
9347
11022
  sku: string;
@@ -9382,14 +11057,14 @@ declare const _createClient: () => {
9382
11057
  parentCategory: {
9383
11058
  name: string;
9384
11059
  uuid: string;
9385
- icon: string | null;
9386
11060
  description: string | null;
11061
+ icon: string | null;
9387
11062
  } | null;
9388
11063
  subCategory: {
9389
11064
  name: string;
9390
11065
  uuid: string;
9391
- icon: string | null;
9392
11066
  description: string | null;
11067
+ icon: string | null;
9393
11068
  } | null;
9394
11069
  series: {
9395
11070
  name: string;
@@ -9460,9 +11135,9 @@ declare const _createClient: () => {
9460
11135
  variants: {
9461
11136
  name: string;
9462
11137
  uuid: string;
9463
- description: string | null;
9464
11138
  createdAt: Date | null;
9465
11139
  updatedAt: Date | null;
11140
+ description: string | null;
9466
11141
  sku: string;
9467
11142
  retailCost: number | null;
9468
11143
  options: {
@@ -9558,13 +11233,13 @@ declare const _createClient: () => {
9558
11233
  uuid: string;
9559
11234
  tags: string[] | null;
9560
11235
  length: number | null;
9561
- slug: string;
9562
- description: string | null;
9563
11236
  createdAt: Date | null;
9564
11237
  updatedAt: Date | null;
11238
+ description: string | null;
11239
+ deletedAt: Date | null;
11240
+ slug: string;
9565
11241
  createdBy: string;
9566
11242
  seriesUuid: string | null;
9567
- deletedAt: Date | null;
9568
11243
  standardCost: number | null;
9569
11244
  retailCost: number | null;
9570
11245
  weight: number | null;
@@ -11928,10 +13603,10 @@ declare const _createClient: () => {
11928
13603
  data: {
11929
13604
  name: string;
11930
13605
  uuid: string;
11931
- slug: string;
11932
- description: string | null;
11933
13606
  createdAt: Date | null;
11934
13607
  updatedAt: Date | null;
13608
+ description: string | null;
13609
+ slug: string;
11935
13610
  productTotal: number;
11936
13611
  };
11937
13612
  message: null;
@@ -12040,10 +13715,10 @@ declare const _createClient: () => {
12040
13715
  data: {
12041
13716
  name: string;
12042
13717
  uuid: string;
12043
- slug: string;
12044
- description: string | null;
12045
13718
  createdAt: Date | null;
12046
13719
  updatedAt: Date | null;
13720
+ description: string | null;
13721
+ slug: string;
12047
13722
  productTotal: number;
12048
13723
  };
12049
13724
  message: null;
@@ -12151,10 +13826,10 @@ declare const _createClient: () => {
12151
13826
  data: {
12152
13827
  name: string;
12153
13828
  uuid: string;
12154
- slug: string;
12155
- description: string | null;
12156
13829
  createdAt: Date | null;
12157
13830
  updatedAt: Date | null;
13831
+ description: string | null;
13832
+ slug: string;
12158
13833
  productTotal: number;
12159
13834
  media: {
12160
13835
  createdAt: Date | null;
@@ -12435,8 +14110,8 @@ declare const _createClient: () => {
12435
14110
  data: {
12436
14111
  createdAt: Date | null;
12437
14112
  updatedAt: Date | null;
12438
- id: number;
12439
14113
  userAgent: string;
14114
+ id: number;
12440
14115
  expiresAt: Date;
12441
14116
  ipAddress: string;
12442
14117
  user: {
@@ -12935,8 +14610,8 @@ declare const _createClient: () => {
12935
14610
  name: string | null;
12936
14611
  uuid: string;
12937
14612
  status: "DRAFT" | "PENDING" | "CONFIRMED" | "PROCESSING" | "COMPLETED" | "CANCELLED";
12938
- orderType: "ORDER" | "IN-STOCK";
12939
14613
  orderCode: string;
14614
+ orderType: "ORDER" | "IN-STOCK";
12940
14615
  } | null;
12941
14616
  };
12942
14617
  }[];
@@ -12996,10 +14671,11 @@ declare const _createClient: () => {
12996
14671
  success: true;
12997
14672
  statusCode: number;
12998
14673
  data: {
14674
+ userUuid: string;
12999
14675
  createdAt: Date | null;
13000
14676
  updatedAt: Date | null;
14677
+ order: number | null;
13001
14678
  id: number;
13002
- userUuid: string;
13003
14679
  fullname: string;
13004
14680
  phoneNumber: string;
13005
14681
  provinceId: string;
@@ -13007,7 +14683,6 @@ declare const _createClient: () => {
13007
14683
  wardId: string;
13008
14684
  street: string;
13009
14685
  isDefault: boolean | null;
13010
- order: number | null;
13011
14686
  province: {
13012
14687
  name: string;
13013
14688
  type: string;
@@ -13136,10 +14811,11 @@ declare const _createClient: () => {
13136
14811
  success: true;
13137
14812
  statusCode: number;
13138
14813
  data: {
14814
+ userUuid: string;
13139
14815
  createdAt: Date | null;
13140
14816
  updatedAt: Date | null;
14817
+ order: number | null;
13141
14818
  id: number;
13142
- userUuid: string;
13143
14819
  fullname: string;
13144
14820
  phoneNumber: string;
13145
14821
  provinceId: string;
@@ -13147,7 +14823,6 @@ declare const _createClient: () => {
13147
14823
  wardId: string;
13148
14824
  street: string;
13149
14825
  isDefault: boolean | null;
13150
- order: number | null;
13151
14826
  province: {
13152
14827
  name: string;
13153
14828
  type: string;
@@ -13275,10 +14950,11 @@ declare const _createClient: () => {
13275
14950
  success: true;
13276
14951
  statusCode: number;
13277
14952
  data: {
14953
+ userUuid: string;
13278
14954
  createdAt: Date | null;
13279
14955
  updatedAt: Date | null;
14956
+ order: number | null;
13280
14957
  id: number;
13281
- userUuid: string;
13282
14958
  fullname: string;
13283
14959
  phoneNumber: string;
13284
14960
  provinceId: string;
@@ -13286,7 +14962,6 @@ declare const _createClient: () => {
13286
14962
  wardId: string;
13287
14963
  street: string;
13288
14964
  isDefault: boolean | null;
13289
- order: number | null;
13290
14965
  province: {
13291
14966
  name: string;
13292
14967
  type: string;
@@ -13338,10 +15013,11 @@ declare const _createClient: () => {
13338
15013
  success: true;
13339
15014
  statusCode: number;
13340
15015
  data: {
15016
+ userUuid: string;
13341
15017
  createdAt: Date | null;
13342
15018
  updatedAt: Date | null;
15019
+ order: number | null;
13343
15020
  id: number;
13344
- userUuid: string;
13345
15021
  fullname: string;
13346
15022
  phoneNumber: string;
13347
15023
  provinceId: string;
@@ -13349,7 +15025,6 @@ declare const _createClient: () => {
13349
15025
  wardId: string;
13350
15026
  street: string;
13351
15027
  isDefault: boolean | null;
13352
- order: number | null;
13353
15028
  };
13354
15029
  message: null;
13355
15030
  error: null;
@@ -13684,6 +15359,86 @@ declare const _createClient: () => {
13684
15359
  } & {
13685
15360
  '~path': string;
13686
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
+ };
13687
15442
  } & {
13688
15443
  '~path': string;
13689
15444
  };
@@ -13709,9 +15464,9 @@ declare const _createClient: () => {
13709
15464
  deposits: {
13710
15465
  name: string;
13711
15466
  uuid: string;
13712
- description: string | null;
13713
15467
  createdAt: Date;
13714
15468
  updatedAt: Date;
15469
+ description: string | null;
13715
15470
  valueType: "PERCENTAGE" | "FIXED";
13716
15471
  depositValue: number;
13717
15472
  surchargeValue: number;
@@ -14068,29 +15823,29 @@ declare const _createClient: () => {
14068
15823
  order: {
14069
15824
  uuid: string;
14070
15825
  status: "DRAFT" | "PENDING" | "CONFIRMED" | "PROCESSING" | "COMPLETED" | "CANCELLED";
14071
- createdAt: Date;
14072
- updatedAt: Date;
14073
- userUuid: string | null;
14074
- orderType: "ORDER" | "IN-STOCK";
14075
15826
  orderCode: string;
14076
- accessToken: string | null;
14077
- guestInfo: unknown;
14078
- customerEmail: string | null;
15827
+ userUuid: string | null;
14079
15828
  customerName: string | null;
15829
+ customerEmail: string | null;
14080
15830
  customerPhone: string | null;
14081
15831
  shippingAddress: unknown;
14082
15832
  subtotalAmount: number | null;
14083
15833
  discountTotal: number | null;
14084
15834
  taxTotal: number | null;
14085
- appliedDepositName: string | null;
14086
- appliedDepositType: "PERCENTAGE" | "FIXED" | null;
14087
- appliedDepositValue: number | null;
14088
15835
  depositSurchargeTotal: number | null;
14089
15836
  otherSurchargeTotal: number | null;
14090
15837
  totalDue: number | null;
14091
- depositRequiredAmount: number | null;
14092
15838
  totalPaid: number | null;
14093
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;
14094
15849
  balanceRemaining: number | null;
14095
15850
  totalWeightGram: number | null;
14096
15851
  shipingNote: string | null;
@@ -14135,10 +15890,10 @@ declare const _createClient: () => {
14135
15890
  status: "COMPLETED" | "IN_PROGRESS" | "SKIPPED" | "FAILED";
14136
15891
  createdAt: Date;
14137
15892
  updatedAt: Date;
14138
- title: string;
14139
- content: string | null;
14140
15893
  estimatedDeliveryAt: Date | null;
14141
15894
  completedAt: Date | null;
15895
+ title: string;
15896
+ content: string | null;
14142
15897
  manifestUuid: string | null;
14143
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";
14144
15899
  startedAt: Date;
@@ -14175,8 +15930,8 @@ declare const _createClient: () => {
14175
15930
  };
14176
15931
  post: ((body: {
14177
15932
  depositId?: string | undefined;
14178
- customerEmail: string;
14179
15933
  customerName: string;
15934
+ customerEmail: string;
14180
15935
  customerPhone: string;
14181
15936
  shippingAddress: string;
14182
15937
  shipingNote: string;
@@ -14237,29 +15992,29 @@ declare const _createClient: () => {
14237
15992
  order: {
14238
15993
  uuid: string;
14239
15994
  status: "DRAFT" | "PENDING" | "CONFIRMED" | "PROCESSING" | "COMPLETED" | "CANCELLED";
14240
- createdAt: Date;
14241
- updatedAt: Date;
14242
- userUuid: string | null;
14243
- orderType: "ORDER" | "IN-STOCK";
14244
15995
  orderCode: string;
14245
- accessToken: string | null;
14246
- guestInfo: unknown;
14247
- customerEmail: string | null;
15996
+ userUuid: string | null;
14248
15997
  customerName: string | null;
15998
+ customerEmail: string | null;
14249
15999
  customerPhone: string | null;
14250
16000
  shippingAddress: unknown;
14251
16001
  subtotalAmount: number | null;
14252
16002
  discountTotal: number | null;
14253
16003
  taxTotal: number | null;
14254
- appliedDepositName: string | null;
14255
- appliedDepositType: "PERCENTAGE" | "FIXED" | null;
14256
- appliedDepositValue: number | null;
14257
16004
  depositSurchargeTotal: number | null;
14258
16005
  otherSurchargeTotal: number | null;
14259
16006
  totalDue: number | null;
14260
- depositRequiredAmount: number | null;
14261
16007
  totalPaid: number | null;
14262
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;
14263
16018
  balanceRemaining: number | null;
14264
16019
  totalWeightGram: number | null;
14265
16020
  shipingNote: string | null;
@@ -14304,10 +16059,10 @@ declare const _createClient: () => {
14304
16059
  status: "COMPLETED" | "IN_PROGRESS" | "SKIPPED" | "FAILED";
14305
16060
  createdAt: Date;
14306
16061
  updatedAt: Date;
14307
- title: string;
14308
- content: string | null;
14309
16062
  estimatedDeliveryAt: Date | null;
14310
16063
  completedAt: Date | null;
16064
+ title: string;
16065
+ content: string | null;
14311
16066
  manifestUuid: string | null;
14312
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";
14313
16068
  startedAt: Date;
@@ -14344,8 +16099,8 @@ declare const _createClient: () => {
14344
16099
  };
14345
16100
  post: ((body: {
14346
16101
  depositId?: string | undefined;
14347
- customerEmail: string;
14348
16102
  customerName: string;
16103
+ customerEmail: string;
14349
16104
  customerPhone: string;
14350
16105
  shippingAddress: string;
14351
16106
  shipingNote: string;
@@ -14404,14 +16159,14 @@ declare const _createClient: () => {
14404
16159
  data: {
14405
16160
  uuid: string;
14406
16161
  status: "DRAFT" | "PENDING" | "CONFIRMED" | "PROCESSING" | "COMPLETED" | "CANCELLED";
14407
- createdAt: Date;
14408
- updatedAt: Date;
14409
- orderType: "ORDER" | "IN-STOCK";
14410
16162
  orderCode: string;
14411
16163
  subtotalAmount: number | null;
14412
16164
  totalDue: number | null;
14413
- depositRequiredAmount: number | null;
14414
16165
  totalPaid: number | null;
16166
+ createdAt: Date;
16167
+ updatedAt: Date;
16168
+ orderType: "ORDER" | "IN-STOCK";
16169
+ depositRequiredAmount: number | null;
14415
16170
  balanceRemaining: number | null;
14416
16171
  estimatedDeliveryAt: Date | null;
14417
16172
  paymentStatus: "PENDING" | "PAID" | "PARTIALLY_PAID" | "REFUNDED";
@@ -14464,8 +16219,8 @@ declare const _createClient: () => {
14464
16219
  webhooks: {
14465
16220
  post: ((body: {
14466
16221
  order: {
14467
- id: string;
14468
16222
  user_agent: string;
16223
+ id: string;
14469
16224
  order_status: "CANCELLED" | "CAPTURED" | "AUTHENTICATION_NOT_NEEDED";
14470
16225
  order_amount: string;
14471
16226
  order_currency: string;