@medusajs/js-sdk 2.0.5-preview-20241125060200 → 2.0.5-preview-20241125080656
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/esm/store/index.d.ts +97 -0
- package/dist/esm/store/index.d.ts.map +1 -1
- package/dist/esm/store/index.js +124 -0
- package/dist/esm/store/index.js.map +1 -1
- package/dist/store/index.d.ts +97 -0
- package/dist/store/index.d.ts.map +1 -1
- package/dist/store/index.js +124 -0
- package/dist/store/index.js.map +1 -1
- package/package.json +2 -2
@@ -774,6 +774,103 @@ export declare class Store {
|
|
774
774
|
retrieve: (id: string, query?: SelectParams, headers?: ClientHeaders) => Promise<{
|
775
775
|
order: HttpTypes.StoreOrder;
|
776
776
|
}>;
|
777
|
+
/**
|
778
|
+
* This method requests a order transfer from a guest account to the current, logged in customer account.
|
779
|
+
*
|
780
|
+
* Customer requesting the transfer must be logged in.
|
781
|
+
*
|
782
|
+
* @param body - The transfer's details.
|
783
|
+
* @param query - Configure the fields to retrieve in the order.
|
784
|
+
* @param headers - Headers to pass in the request.
|
785
|
+
* @returns The order details.
|
786
|
+
*
|
787
|
+
* @example
|
788
|
+
* sdk.store.order.requestTransfer(
|
789
|
+
* "order_123",
|
790
|
+
* {
|
791
|
+
* description: "I want to transfer this order to my friend."
|
792
|
+
* },
|
793
|
+
* {},
|
794
|
+
* {
|
795
|
+
* Authorization: `Bearer ${token}`
|
796
|
+
* }
|
797
|
+
* )
|
798
|
+
* .then(({ order }) => {
|
799
|
+
* console.log(order)
|
800
|
+
* })
|
801
|
+
*/
|
802
|
+
requestTransfer: (id: string, body: HttpTypes.StoreRequestOrderTransfer, query?: SelectParams, headers?: ClientHeaders) => Promise<HttpTypes.StoreOrderResponse>;
|
803
|
+
/**
|
804
|
+
* This method cancels an order transfer request.
|
805
|
+
*
|
806
|
+
* Customer requesting the transfer must be logged in.
|
807
|
+
*
|
808
|
+
* @param id - The order's ID.
|
809
|
+
* @param query - Configure the fields to retrieve in the order.
|
810
|
+
* @param headers - Headers to pass in the request.
|
811
|
+
* @returns The order details.
|
812
|
+
*
|
813
|
+
* @example
|
814
|
+
* sdk.store.order.cancelTransfer(
|
815
|
+
* "order_123",
|
816
|
+
* {},
|
817
|
+
* {
|
818
|
+
* Authorization: `Bearer ${token}`
|
819
|
+
* }
|
820
|
+
* )
|
821
|
+
* .then(({ order }) => {
|
822
|
+
* console.log(order)
|
823
|
+
* })
|
824
|
+
*/
|
825
|
+
cancelTransfer: (id: string, query?: SelectParams, headers?: ClientHeaders) => Promise<HttpTypes.StoreOrderResponse>;
|
826
|
+
/**
|
827
|
+
* The method called for the original owner to accept the order transfer to a new owner.
|
828
|
+
*
|
829
|
+
* @param id - The order's ID.
|
830
|
+
* @param body - The payload containing the transfer token.
|
831
|
+
* @param query - Configure the fields to retrieve in the order.
|
832
|
+
* @param headers - Headers to pass in the request.
|
833
|
+
* @returns The order details.
|
834
|
+
*
|
835
|
+
* @example
|
836
|
+
* sdk.store.order.acceptTransfer(
|
837
|
+
* "order_123",
|
838
|
+
* {
|
839
|
+
* token: "transfer_token"
|
840
|
+
* },
|
841
|
+
* {
|
842
|
+
* Authorization: `Bearer ${token}`
|
843
|
+
* }
|
844
|
+
* )
|
845
|
+
* .then(({ order }) => {
|
846
|
+
* console.log(order)
|
847
|
+
* })
|
848
|
+
*/
|
849
|
+
acceptTransfer: (id: string, body: HttpTypes.StoreAcceptOrderTransfer, query?: SelectParams, headers?: ClientHeaders) => Promise<HttpTypes.StoreOrderResponse>;
|
850
|
+
/**
|
851
|
+
* The method called for the original owner to decline the order transfer to a new owner.
|
852
|
+
*
|
853
|
+
* @param id - The order's ID.
|
854
|
+
* @param body - The payload containing the transfer token.
|
855
|
+
* @param query - Configure the fields to retrieve in the order.
|
856
|
+
* @param headers - Headers to pass in the request.
|
857
|
+
* @returns The order details.
|
858
|
+
*
|
859
|
+
* @example
|
860
|
+
* sdk.store.order.declineTransfer(
|
861
|
+
* "order_123",
|
862
|
+
* {
|
863
|
+
* token: "transfer_token"
|
864
|
+
* },
|
865
|
+
* {
|
866
|
+
* Authorization: `Bearer ${token}`
|
867
|
+
* }
|
868
|
+
* )
|
869
|
+
* .then(({ order }) => {
|
870
|
+
* console.log(order)
|
871
|
+
* })
|
872
|
+
*/
|
873
|
+
declineTransfer: (id: string, body: HttpTypes.StoreDeclineOrderTransfer, query?: SelectParams, headers?: ClientHeaders) => Promise<HttpTypes.StoreOrderResponse>;
|
777
874
|
};
|
778
875
|
customer: {
|
779
876
|
/**
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/store/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AACrE,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC,qBAAa,KAAK;IAChB;;OAEG;IACH,OAAO,CAAC,MAAM,CAAQ;IAEtB;;OAEG;gBACS,MAAM,EAAE,MAAM;IAInB,MAAM;QACX;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WA+CG;uBAEO,UAAU,GAAG,SAAS,CAAC,kBAAkB,YACvC,aAAa;QAUzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAoCG;uBAEG,MAAM,UACF,YAAY,YACV,aAAa;MAU1B;IAEM,UAAU;QACf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WA+CG;uBAEO,UAAU,GAAG,SAAS,CAAC,sBAAsB,YAC3C,aAAa;QAUzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAiCG;uBAEG,MAAM,UACF,YAAY,YACV,aAAa;MAU1B;IAEM,QAAQ;QACb;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WA+CG;uBAEO,UAAU,GAAG,SAAS,CAAC,8BAA8B,YACnD,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C3B,YAAY,YACV,aAAa;QAYzB;;;;;;;;;;;;;;;;;;;;;WAqBG;uBAEK,SAAS,CAAC,mBAAmB,UAC3B,YAAY,YACV,aAAa;QAYzB;;;;;;;;;;;;;;;;WAgBG;2BACsB,YAAY,YAAY,aAAa;QAS9D;;;;;;;;;;;;;;;;;;;;;WAqBG;8BAEK,SAAS,CAAC,0BAA0B,UAClC,YAAY,YACV,aAAa;QAYzB;;;;;;;;;;;;;;;;;;;;;;;;;WAyBG;mCAEU,MAAM,QACX,SAAS,CAAC,0BAA0B,UAClC,YAAY,YACV,aAAa;QAYzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAkDG;8BAEO,UAAU,GAAG,SAAS,CAAC,2BAA2B,YAChD,aAAa;QAUzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAyCG;qCAEU,MAAM,UACT,YAAY,YACV,aAAa;QAUzB;;;;;;;;;;;;;;;;;;WAkBG;mCAC8B,MAAM,YAAY,aAAa;MASjE;CACF"}
|
package/dist/esm/store/index.js
CHANGED
@@ -910,6 +910,130 @@ export class Store {
|
|
910
910
|
query,
|
911
911
|
});
|
912
912
|
}),
|
913
|
+
/**
|
914
|
+
* This method requests a order transfer from a guest account to the current, logged in customer account.
|
915
|
+
*
|
916
|
+
* Customer requesting the transfer must be logged in.
|
917
|
+
*
|
918
|
+
* @param body - The transfer's details.
|
919
|
+
* @param query - Configure the fields to retrieve in the order.
|
920
|
+
* @param headers - Headers to pass in the request.
|
921
|
+
* @returns The order details.
|
922
|
+
*
|
923
|
+
* @example
|
924
|
+
* sdk.store.order.requestTransfer(
|
925
|
+
* "order_123",
|
926
|
+
* {
|
927
|
+
* description: "I want to transfer this order to my friend."
|
928
|
+
* },
|
929
|
+
* {},
|
930
|
+
* {
|
931
|
+
* Authorization: `Bearer ${token}`
|
932
|
+
* }
|
933
|
+
* )
|
934
|
+
* .then(({ order }) => {
|
935
|
+
* console.log(order)
|
936
|
+
* })
|
937
|
+
*/
|
938
|
+
requestTransfer: (id, body, query, headers) => __awaiter(this, void 0, void 0, function* () {
|
939
|
+
return this.client.fetch(`/store/orders/${id}/transfer/request`, {
|
940
|
+
method: "POST",
|
941
|
+
headers,
|
942
|
+
body,
|
943
|
+
query,
|
944
|
+
});
|
945
|
+
}),
|
946
|
+
/**
|
947
|
+
* This method cancels an order transfer request.
|
948
|
+
*
|
949
|
+
* Customer requesting the transfer must be logged in.
|
950
|
+
*
|
951
|
+
* @param id - The order's ID.
|
952
|
+
* @param query - Configure the fields to retrieve in the order.
|
953
|
+
* @param headers - Headers to pass in the request.
|
954
|
+
* @returns The order details.
|
955
|
+
*
|
956
|
+
* @example
|
957
|
+
* sdk.store.order.cancelTransfer(
|
958
|
+
* "order_123",
|
959
|
+
* {},
|
960
|
+
* {
|
961
|
+
* Authorization: `Bearer ${token}`
|
962
|
+
* }
|
963
|
+
* )
|
964
|
+
* .then(({ order }) => {
|
965
|
+
* console.log(order)
|
966
|
+
* })
|
967
|
+
*/
|
968
|
+
cancelTransfer: (id, query, headers) => __awaiter(this, void 0, void 0, function* () {
|
969
|
+
return this.client.fetch(`/store/orders/${id}/transfer/cancel`, {
|
970
|
+
method: "POST",
|
971
|
+
headers,
|
972
|
+
query,
|
973
|
+
});
|
974
|
+
}),
|
975
|
+
/**
|
976
|
+
* The method called for the original owner to accept the order transfer to a new owner.
|
977
|
+
*
|
978
|
+
* @param id - The order's ID.
|
979
|
+
* @param body - The payload containing the transfer token.
|
980
|
+
* @param query - Configure the fields to retrieve in the order.
|
981
|
+
* @param headers - Headers to pass in the request.
|
982
|
+
* @returns The order details.
|
983
|
+
*
|
984
|
+
* @example
|
985
|
+
* sdk.store.order.acceptTransfer(
|
986
|
+
* "order_123",
|
987
|
+
* {
|
988
|
+
* token: "transfer_token"
|
989
|
+
* },
|
990
|
+
* {
|
991
|
+
* Authorization: `Bearer ${token}`
|
992
|
+
* }
|
993
|
+
* )
|
994
|
+
* .then(({ order }) => {
|
995
|
+
* console.log(order)
|
996
|
+
* })
|
997
|
+
*/
|
998
|
+
acceptTransfer: (id, body, query, headers) => __awaiter(this, void 0, void 0, function* () {
|
999
|
+
return this.client.fetch(`/store/orders/${id}/transfer/accept`, {
|
1000
|
+
method: "POST",
|
1001
|
+
headers,
|
1002
|
+
body,
|
1003
|
+
query,
|
1004
|
+
});
|
1005
|
+
}),
|
1006
|
+
/**
|
1007
|
+
* The method called for the original owner to decline the order transfer to a new owner.
|
1008
|
+
*
|
1009
|
+
* @param id - The order's ID.
|
1010
|
+
* @param body - The payload containing the transfer token.
|
1011
|
+
* @param query - Configure the fields to retrieve in the order.
|
1012
|
+
* @param headers - Headers to pass in the request.
|
1013
|
+
* @returns The order details.
|
1014
|
+
*
|
1015
|
+
* @example
|
1016
|
+
* sdk.store.order.declineTransfer(
|
1017
|
+
* "order_123",
|
1018
|
+
* {
|
1019
|
+
* token: "transfer_token"
|
1020
|
+
* },
|
1021
|
+
* {
|
1022
|
+
* Authorization: `Bearer ${token}`
|
1023
|
+
* }
|
1024
|
+
* )
|
1025
|
+
* .then(({ order }) => {
|
1026
|
+
* console.log(order)
|
1027
|
+
* })
|
1028
|
+
*/
|
1029
|
+
declineTransfer: (id, body, query, headers) => __awaiter(this, void 0, void 0, function* () {
|
1030
|
+
return this.client.fetch(`/store/orders/${id}/transfer/decline`, {
|
1031
|
+
method: "POST",
|
1032
|
+
headers,
|
1033
|
+
body,
|
1034
|
+
query,
|
1035
|
+
});
|
1036
|
+
}),
|
913
1037
|
};
|
914
1038
|
this.customer = {
|
915
1039
|
/**
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/store/index.ts"],"names":[],"mappings":";;;;;;;;;AAIA,MAAM,OAAO,KAAK;IAMhB;;OAEG;IACH,YAAY,MAAc;QAInB,WAAM,GAAG;YACd;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eA+CG;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B,EAAE;gBACF,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,iCAAiC,SAAS,EAAE,EAC5C;oBACE,MAAM,EAAE,MAAM;oBACd,OAAO;oBACP,IAAI;oBACJ,KAAK;iBACN,CACF,CAAA;YACH,CAAC,CAAA;YACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAkDG;YACH,WAAW,EAAE,CACX,KAA0D,EAC1D,OAAuB,EACvB,EAAE;gBACF,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,+BAA+B,EAC/B;oBACE,KAAK;oBACL,OAAO;iBACR,CACF,CAAA;YACH,CAAC,CAAA;YACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAyCG;YACH,eAAe,EAAE,CACf,SAAiB,EACjB,KAAoB,EACpB,OAAuB,EACvB,EAAE;gBACF,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,iCAAiC,SAAS,EAAE,EAC5C;oBACE,KAAK;oBACL,OAAO;iBACR,CACF,CAAA;YACH,CAAC,CAAA;YACD;;;;;;;;;;;;;;;;;;eAkBG;YACH,aAAa,EAAE,CAAO,SAAiB,EAAE,OAAuB,EAAE,EAAE;gBAClE,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,iCAAiC,SAAS,EAAE,EAC5C;oBACE,MAAM,EAAE,QAAQ;oBAChB,OAAO;iBACR,CACF,CAAA;YACH,CAAC,CAAA;SACF,CAAA;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/store/index.ts"],"names":[],"mappings":";;;;;;;;;AAIA,MAAM,OAAO,KAAK;IAMhB;;OAEG;IACH,YAAY,MAAc;QAInB,WAAM,GAAG;YACd;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eA+CG;YACH,IAAI,EAAE,CACJ,KAAiD,EACjD,OAAuB,EACvB,EAAE;gBACF,OAAO,IAAI,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ACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAkDG;YACH,WAAW,EAAE,CACX,KAA0D,EAC1D,OAAuB,EACvB,EAAE;gBACF,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,+BAA+B,EAC/B;oBACE,KAAK;oBACL,OAAO;iBACR,CACF,CAAA;YACH,CAAC,CAAA;YACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAyCG;YACH,eAAe,EAAE,CACf,SAAiB,EACjB,KAAoB,EACpB,OAAuB,EACvB,EAAE;gBACF,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,iCAAiC,SAAS,EAAE,EAC5C;oBACE,KAAK;oBACL,OAAO;iBACR,CACF,CAAA;YACH,CAAC,CAAA;YACD;;;;;;;;;;;;;;;;;;eAkBG;YACH,aAAa,EAAE,CAAO,SAAiB,EAAE,OAAuB,EAAE,EAAE;gBAClE,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,iCAAiC,SAAS,EAAE,EAC5C;oBACE,MAAM,EAAE,QAAQ;oBAChB,OAAO;iBACR,CACF,CAAA;YACH,CAAC,CAAA;SACF,CAAA;QAxhDC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;CAwhDF"}
|
package/dist/store/index.d.ts
CHANGED
@@ -774,6 +774,103 @@ export declare class Store {
|
|
774
774
|
retrieve: (id: string, query?: SelectParams, headers?: ClientHeaders) => Promise<{
|
775
775
|
order: HttpTypes.StoreOrder;
|
776
776
|
}>;
|
777
|
+
/**
|
778
|
+
* This method requests a order transfer from a guest account to the current, logged in customer account.
|
779
|
+
*
|
780
|
+
* Customer requesting the transfer must be logged in.
|
781
|
+
*
|
782
|
+
* @param body - The transfer's details.
|
783
|
+
* @param query - Configure the fields to retrieve in the order.
|
784
|
+
* @param headers - Headers to pass in the request.
|
785
|
+
* @returns The order details.
|
786
|
+
*
|
787
|
+
* @example
|
788
|
+
* sdk.store.order.requestTransfer(
|
789
|
+
* "order_123",
|
790
|
+
* {
|
791
|
+
* description: "I want to transfer this order to my friend."
|
792
|
+
* },
|
793
|
+
* {},
|
794
|
+
* {
|
795
|
+
* Authorization: `Bearer ${token}`
|
796
|
+
* }
|
797
|
+
* )
|
798
|
+
* .then(({ order }) => {
|
799
|
+
* console.log(order)
|
800
|
+
* })
|
801
|
+
*/
|
802
|
+
requestTransfer: (id: string, body: HttpTypes.StoreRequestOrderTransfer, query?: SelectParams, headers?: ClientHeaders) => Promise<HttpTypes.StoreOrderResponse>;
|
803
|
+
/**
|
804
|
+
* This method cancels an order transfer request.
|
805
|
+
*
|
806
|
+
* Customer requesting the transfer must be logged in.
|
807
|
+
*
|
808
|
+
* @param id - The order's ID.
|
809
|
+
* @param query - Configure the fields to retrieve in the order.
|
810
|
+
* @param headers - Headers to pass in the request.
|
811
|
+
* @returns The order details.
|
812
|
+
*
|
813
|
+
* @example
|
814
|
+
* sdk.store.order.cancelTransfer(
|
815
|
+
* "order_123",
|
816
|
+
* {},
|
817
|
+
* {
|
818
|
+
* Authorization: `Bearer ${token}`
|
819
|
+
* }
|
820
|
+
* )
|
821
|
+
* .then(({ order }) => {
|
822
|
+
* console.log(order)
|
823
|
+
* })
|
824
|
+
*/
|
825
|
+
cancelTransfer: (id: string, query?: SelectParams, headers?: ClientHeaders) => Promise<HttpTypes.StoreOrderResponse>;
|
826
|
+
/**
|
827
|
+
* The method called for the original owner to accept the order transfer to a new owner.
|
828
|
+
*
|
829
|
+
* @param id - The order's ID.
|
830
|
+
* @param body - The payload containing the transfer token.
|
831
|
+
* @param query - Configure the fields to retrieve in the order.
|
832
|
+
* @param headers - Headers to pass in the request.
|
833
|
+
* @returns The order details.
|
834
|
+
*
|
835
|
+
* @example
|
836
|
+
* sdk.store.order.acceptTransfer(
|
837
|
+
* "order_123",
|
838
|
+
* {
|
839
|
+
* token: "transfer_token"
|
840
|
+
* },
|
841
|
+
* {
|
842
|
+
* Authorization: `Bearer ${token}`
|
843
|
+
* }
|
844
|
+
* )
|
845
|
+
* .then(({ order }) => {
|
846
|
+
* console.log(order)
|
847
|
+
* })
|
848
|
+
*/
|
849
|
+
acceptTransfer: (id: string, body: HttpTypes.StoreAcceptOrderTransfer, query?: SelectParams, headers?: ClientHeaders) => Promise<HttpTypes.StoreOrderResponse>;
|
850
|
+
/**
|
851
|
+
* The method called for the original owner to decline the order transfer to a new owner.
|
852
|
+
*
|
853
|
+
* @param id - The order's ID.
|
854
|
+
* @param body - The payload containing the transfer token.
|
855
|
+
* @param query - Configure the fields to retrieve in the order.
|
856
|
+
* @param headers - Headers to pass in the request.
|
857
|
+
* @returns The order details.
|
858
|
+
*
|
859
|
+
* @example
|
860
|
+
* sdk.store.order.declineTransfer(
|
861
|
+
* "order_123",
|
862
|
+
* {
|
863
|
+
* token: "transfer_token"
|
864
|
+
* },
|
865
|
+
* {
|
866
|
+
* Authorization: `Bearer ${token}`
|
867
|
+
* }
|
868
|
+
* )
|
869
|
+
* .then(({ order }) => {
|
870
|
+
* console.log(order)
|
871
|
+
* })
|
872
|
+
*/
|
873
|
+
declineTransfer: (id: string, body: HttpTypes.StoreDeclineOrderTransfer, query?: SelectParams, headers?: ClientHeaders) => Promise<HttpTypes.StoreOrderResponse>;
|
777
874
|
};
|
778
875
|
customer: {
|
779
876
|
/**
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/store/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AACrE,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC,qBAAa,KAAK;IAChB;;OAEG;IACH,OAAO,CAAC,MAAM,CAAQ;IAEtB;;OAEG;gBACS,MAAM,EAAE,MAAM;IAInB,MAAM;QACX;;;;;;;;;;;;;;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
@@ -903,6 +903,130 @@ class Store {
|
|
903
903
|
query,
|
904
904
|
});
|
905
905
|
},
|
906
|
+
/**
|
907
|
+
* This method requests a order transfer from a guest account to the current, logged in customer account.
|
908
|
+
*
|
909
|
+
* Customer requesting the transfer must be logged in.
|
910
|
+
*
|
911
|
+
* @param body - The transfer's details.
|
912
|
+
* @param query - Configure the fields to retrieve in the order.
|
913
|
+
* @param headers - Headers to pass in the request.
|
914
|
+
* @returns The order details.
|
915
|
+
*
|
916
|
+
* @example
|
917
|
+
* sdk.store.order.requestTransfer(
|
918
|
+
* "order_123",
|
919
|
+
* {
|
920
|
+
* description: "I want to transfer this order to my friend."
|
921
|
+
* },
|
922
|
+
* {},
|
923
|
+
* {
|
924
|
+
* Authorization: `Bearer ${token}`
|
925
|
+
* }
|
926
|
+
* )
|
927
|
+
* .then(({ order }) => {
|
928
|
+
* console.log(order)
|
929
|
+
* })
|
930
|
+
*/
|
931
|
+
requestTransfer: async (id, body, query, headers) => {
|
932
|
+
return this.client.fetch(`/store/orders/${id}/transfer/request`, {
|
933
|
+
method: "POST",
|
934
|
+
headers,
|
935
|
+
body,
|
936
|
+
query,
|
937
|
+
});
|
938
|
+
},
|
939
|
+
/**
|
940
|
+
* This method cancels an order transfer request.
|
941
|
+
*
|
942
|
+
* Customer requesting the transfer must be logged in.
|
943
|
+
*
|
944
|
+
* @param id - The order's ID.
|
945
|
+
* @param query - Configure the fields to retrieve in the order.
|
946
|
+
* @param headers - Headers to pass in the request.
|
947
|
+
* @returns The order details.
|
948
|
+
*
|
949
|
+
* @example
|
950
|
+
* sdk.store.order.cancelTransfer(
|
951
|
+
* "order_123",
|
952
|
+
* {},
|
953
|
+
* {
|
954
|
+
* Authorization: `Bearer ${token}`
|
955
|
+
* }
|
956
|
+
* )
|
957
|
+
* .then(({ order }) => {
|
958
|
+
* console.log(order)
|
959
|
+
* })
|
960
|
+
*/
|
961
|
+
cancelTransfer: async (id, query, headers) => {
|
962
|
+
return this.client.fetch(`/store/orders/${id}/transfer/cancel`, {
|
963
|
+
method: "POST",
|
964
|
+
headers,
|
965
|
+
query,
|
966
|
+
});
|
967
|
+
},
|
968
|
+
/**
|
969
|
+
* The method called for the original owner to accept the order transfer to a new owner.
|
970
|
+
*
|
971
|
+
* @param id - The order's ID.
|
972
|
+
* @param body - The payload containing the transfer token.
|
973
|
+
* @param query - Configure the fields to retrieve in the order.
|
974
|
+
* @param headers - Headers to pass in the request.
|
975
|
+
* @returns The order details.
|
976
|
+
*
|
977
|
+
* @example
|
978
|
+
* sdk.store.order.acceptTransfer(
|
979
|
+
* "order_123",
|
980
|
+
* {
|
981
|
+
* token: "transfer_token"
|
982
|
+
* },
|
983
|
+
* {
|
984
|
+
* Authorization: `Bearer ${token}`
|
985
|
+
* }
|
986
|
+
* )
|
987
|
+
* .then(({ order }) => {
|
988
|
+
* console.log(order)
|
989
|
+
* })
|
990
|
+
*/
|
991
|
+
acceptTransfer: async (id, body, query, headers) => {
|
992
|
+
return this.client.fetch(`/store/orders/${id}/transfer/accept`, {
|
993
|
+
method: "POST",
|
994
|
+
headers,
|
995
|
+
body,
|
996
|
+
query,
|
997
|
+
});
|
998
|
+
},
|
999
|
+
/**
|
1000
|
+
* The method called for the original owner to decline the order transfer to a new owner.
|
1001
|
+
*
|
1002
|
+
* @param id - The order's ID.
|
1003
|
+
* @param body - The payload containing the transfer token.
|
1004
|
+
* @param query - Configure the fields to retrieve in the order.
|
1005
|
+
* @param headers - Headers to pass in the request.
|
1006
|
+
* @returns The order details.
|
1007
|
+
*
|
1008
|
+
* @example
|
1009
|
+
* sdk.store.order.declineTransfer(
|
1010
|
+
* "order_123",
|
1011
|
+
* {
|
1012
|
+
* token: "transfer_token"
|
1013
|
+
* },
|
1014
|
+
* {
|
1015
|
+
* Authorization: `Bearer ${token}`
|
1016
|
+
* }
|
1017
|
+
* )
|
1018
|
+
* .then(({ order }) => {
|
1019
|
+
* console.log(order)
|
1020
|
+
* })
|
1021
|
+
*/
|
1022
|
+
declineTransfer: async (id, body, query, headers) => {
|
1023
|
+
return this.client.fetch(`/store/orders/${id}/transfer/decline`, {
|
1024
|
+
method: "POST",
|
1025
|
+
headers,
|
1026
|
+
body,
|
1027
|
+
query,
|
1028
|
+
});
|
1029
|
+
},
|
906
1030
|
};
|
907
1031
|
this.customer = {
|
908
1032
|
/**
|
package/dist/store/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/store/index.ts"],"names":[],"mappings":";;;AAIA,MAAa,KAAK;IAMhB;;OAEG;IACH,YAAY,MAAc;QAInB,WAAM,GAAG;YACd;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eA+CG;YACH,IAAI,EAAE,KAAK,EACT,KAAiD,EACjD,OAAuB,EACvB,EAAE;gBACF,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,gBAAgB,EAChB;oBACE,KAAK;oBACL,OAAO;iBACR,CACF,CAAA;YACH,CAAC;YACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAoCG;YACH,QAAQ,EAAE,KAAK,EACb,EAAU,EACV,KAAoB,EACpB,OAAuB,EACvB,EAAE;gBACF,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,kBAAkB,EAAE,EAAE,EACtB;oBACE,KAAK;oBACL,OAAO;iBACR,CACF,CAAA;YACH,CAAC;SACF,CAAA;QAEM,eAAU,GAAG;YAClB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eA+CG;YACH,IAAI,EAAE,KAAK,EACT,KAAqD,EACrD,OAAuB,EACvB,EAAE;gBACF,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,oBAAoB,EACpB;oBACE,KAAK;oBACL,OAAO;iBACR,CACF,CAAA;YACH,CAAC;YACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAiCG;YACH,QAAQ,EAAE,KAAK,EACb,E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BAClE,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,iCAAiC,SAAS,EAAE,EAC5C;oBACE,MAAM,EAAE,QAAQ;oBAChB,OAAO;iBACR,CACF,CAAA;YACH,CAAC;SACF,CAAA;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/store/index.ts"],"names":[],"mappings":";;;AAIA,MAAa,KAAK;IAMhB;;OAEG;IACH,YAAY,MAAc;QAInB,WAAM,GAAG;YACd;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eA+CG;YACH,IAAI,EAAE,KAAK,EACT,KAAiD,EACjD,OAAuB,EACvB,EAAE;gBACF,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,gBAAgB,EAChB;oBACE,KAAK;oBACL,OAAO;iBACR,CACF,CAAA;YACH,CAAC;YACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAoCG;YACH,QAAQ,EAAE,KAAK,EACb,EAAU,EACV,KAAoB,EACpB,OAAuB,EACvB,EAAE;gBACF,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,kBAAkB,EAAE,EAAE,EACtB;oBACE,KAAK;oBACL,OAAO;iBACR,CACF,CAAA;YACH,CAAC;SACF,CAAA;QAEM,eAAU,GAAG;YAClB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eA+CG;YACH,IAAI,EAAE,KAAK,EACT,KAAqD,EACrD,OAAuB,EACvB,EAAE;gBACF,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,oBAAoB,EACpB;oBACE,KAAK;oBACL,OAAO;iBACR,CACF,CAAA;YACH,CAAC;YACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAiCG;YACH,QAAQ,EAAE,KAAK,EACb,EAAU,EACV,KAAoB,EACpB,OAAuB,EACvB,EAAE;gBACF,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,s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AA;IACtB,CAAC;CAwhDF;AAniDD,sBAmiDC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@medusajs/js-sdk",
|
3
|
-
"version": "2.0.5-preview-
|
3
|
+
"version": "2.0.5-preview-20241125080656",
|
4
4
|
"description": "SDK for the Medusa API",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"module": "dist/esm/index.js",
|
@@ -35,7 +35,7 @@
|
|
35
35
|
"typescript": "^5.6.2"
|
36
36
|
},
|
37
37
|
"dependencies": {
|
38
|
-
"@medusajs/types": "2.0.5-preview-
|
38
|
+
"@medusajs/types": "2.0.5-preview-20241125080656",
|
39
39
|
"fetch-event-stream": "^0.1.5",
|
40
40
|
"qs": "^6.12.1"
|
41
41
|
},
|