@medusajs/js-sdk 2.0.5-preview-20241122060151 → 2.0.5-preview-20241122090154

Sign up to get free protection for your applications and to get access to all the features.
@@ -123,6 +123,26 @@ export declare class Order {
123
123
  * })
124
124
  */
125
125
  cancel(id: string, headers?: ClientHeaders): Promise<HttpTypes.AdminOrderResponse>;
126
+ /**
127
+ * This method requests an order transfer. It sends a request to the
128
+ * [Request Order Transfer](https://docs.medusajs.com/api/admin#orders_postordersidrequesttransfer)
129
+ * API route.
130
+ *
131
+ * @param id - The order's ID.
132
+ * @param headers - Headers to pass in the request.
133
+ * @param body - The transfer's details - the id of the next owner.
134
+ * @returns The order's details.
135
+ *
136
+ * @example
137
+ * sdk.admin.order.requestTransfer("order_123", {
138
+ * customer_id: "cus_123",
139
+ * internal_note: "Internal note",
140
+ * })
141
+ * .then(({ order }) => {
142
+ * console.log(order)
143
+ * })
144
+ */
145
+ requestTransfer(id: string, body: HttpTypes.AdminRequestOrderTransfer, headers?: ClientHeaders): Promise<HttpTypes.AdminOrderResponse>;
126
146
  /**
127
147
  * This method creates a fulfillment for an order. It sends a request to the
128
148
  * [Create Fulfillment](https://docs.medusajs.com/api/admin#orders_postordersidfulfillments)
@@ -1 +1 @@
1
- {"version":3,"file":"order.d.ts","sourceRoot":"","sources":["../../src/admin/order.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,SAAS,EAET,YAAY,EACb,MAAM,iBAAiB,CAAA;AAGxB,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;IACtB;;OAEG;gBACS,MAAM,EAAE,MAAM;IAI1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;IACG,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,aAAa;IAUxE;;;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;;OAuBG;IACG,iBAAiB,CACrB,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,SAAS,CAAC,2BAA2B,EAC3C,KAAK,CAAC,EAAE,YAAY,EACpB,OAAO,CAAC,EAAE,aAAa;IAazB;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACG,iBAAiB,CACrB,EAAE,EAAE,MAAM,EACV,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,SAAS,CAAC,2BAA2B,EAC3C,OAAO,CAAC,EAAE,aAAa;IAYzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACG,cAAc,CAClB,EAAE,EAAE,MAAM,EACV,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,SAAS,CAAC,wBAAwB,EACxC,KAAK,CAAC,EAAE,YAAY,EACpB,OAAO,CAAC,EAAE,aAAa;IAazB;;;;;;;;;;;;;;;;;;;;;OAqBG;IACG,eAAe,CACnB,EAAE,EAAE,MAAM,EACV,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,SAAS,CAAC,oCAAoC,EACpD,KAAK,CAAC,EAAE,YAAY,EACpB,OAAO,CAAC,EAAE,aAAa;IAazB;;;;;;;;;;;;;;;;OAgBG;IACG,WAAW,CACf,EAAE,EAAE,MAAM,EACV,WAAW,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC,wBAAwB,EAC7D,OAAO,CAAC,EAAE,aAAa;IAUzB;;;;;;;;;;;;;;;OAeG;IACG,aAAa,CACjB,EAAE,EAAE,MAAM,EACV,WAAW,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC,sBAAsB,EAC3D,OAAO,CAAC,EAAE,aAAa;CAU1B"}
@@ -141,6 +141,32 @@ class Order {
141
141
  headers,
142
142
  });
143
143
  }
144
+ /**
145
+ * This method requests an order transfer. It sends a request to the
146
+ * [Request Order Transfer](https://docs.medusajs.com/api/admin#orders_postordersidrequesttransfer)
147
+ * API route.
148
+ *
149
+ * @param id - The order's ID.
150
+ * @param headers - Headers to pass in the request.
151
+ * @param body - The transfer's details - the id of the next owner.
152
+ * @returns The order's details.
153
+ *
154
+ * @example
155
+ * sdk.admin.order.requestTransfer("order_123", {
156
+ * customer_id: "cus_123",
157
+ * internal_note: "Internal note",
158
+ * })
159
+ * .then(({ order }) => {
160
+ * console.log(order)
161
+ * })
162
+ */
163
+ async requestTransfer(id, body, headers) {
164
+ return await this.client.fetch(`/admin/orders/${id}/transfer`, {
165
+ method: "POST",
166
+ headers,
167
+ body,
168
+ });
169
+ }
144
170
  /**
145
171
  * This method creates a fulfillment for an order. It sends a request to the
146
172
  * [Create Fulfillment](https://docs.medusajs.com/api/admin#orders_postordersidfulfillments)
@@ -1 +1 @@
1
- {"version":3,"file":"order.js","sourceRoot":"","sources":["../../src/admin/order.ts"],"names":[],"mappings":";;;AAWA,MAAa,KAAK;IAKhB;;OAEG;IACH,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;IACH,KAAK,CAAC,QAAQ,CAAC,EAAU,EAAE,KAAoB,EAAE,OAAuB;QACtE,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,iBAAiB,EAAE,EAAE,EACrB;YACE,KAAK;YACL,OAAO;SACR,CACF,CAAA;IACH,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,KAAK,CAAC,eAAe,CACnB,EAAU,EACV,KAAmC,EACnC,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,iBAAiB,EAAE,UAAU,EAC7B;YACE,KAAK;YACL,OAAO;SACR,CACF,CAAA;IACH,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6CG;IACH,KAAK,CAAC,IAAI,CACR,WAAyC,EACzC,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAE5B,eAAe,EAA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;YAClB,OAAO;SACR,CACF,CAAA;IACH,CAAC;CACF;AA5aD,sBA4aC"}
@@ -153,22 +153,22 @@ export declare class Auth {
153
153
  * @param actor - The actor type. For example, `user` for admin user, or `customer` for customer.
154
154
  * @param provider - The authentication provider to use. For example, `emailpass`.
155
155
  * @param body - The data necessary to update the user's authentication data. When resetting the user's password,
156
- * send the `email` and `password` properties.
156
+ * send the `password` property.
157
157
  *
158
158
  * @example
159
159
  * sdk.auth.updateProvider(
160
160
  * "customer",
161
161
  * "emailpass",
162
162
  * {
163
- * email: "customer@gmail.com",
164
163
  * password: "supersecret"
165
- * }
164
+ * },
165
+ * token
166
166
  * )
167
167
  * .then(() => {
168
168
  * // password updated
169
169
  * })
170
170
  */
171
- updateProvider: (actor: string, provider: string, body: Record<string, unknown>) => Promise<void>;
171
+ updateProvider: (actor: string, provider: string, body: Record<string, unknown>, token: string) => Promise<void>;
172
172
  /**
173
173
  * @ignore
174
174
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/auth/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,qBAAa,IAAI;IACf,OAAO,CAAC,MAAM,CAAQ;IACtB,OAAO,CAAC,MAAM,CAAQ;gBAEV,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAK1C;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,QAAQ,UACC,MAAM,UACL,MAAM,WACL,SAAS,CAAC,4BAA4B,qBAahD;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,KAAK,UACI,MAAM,UACL,MAAM,WACL,SAAS,CAAC,4BAA4B,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;OAmB1E;IAED;;;;;;;;;;;;;;;;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OAWG;IACH,OAAO,wBAYN;IAED;;;;;;;;;OASG;IACH,MAAM,sBAQL;IAED;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,aAAa,UACJ,MAAM,YACH,MAAM,QACV;QACJ;;;WAGG;QACH,UAAU,EAAE,MAAM,CAAA;KACnB,mBAOF;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,cAAc,UACL,MAAM,YACH,MAAM,QACV,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,SACtB,MAAM,mBASd;IAED;;OAEG;IACH,OAAO,CAAC,SAAS,CAUhB;CACF"}
@@ -191,23 +191,23 @@ class Auth {
191
191
  * @param actor - The actor type. For example, `user` for admin user, or `customer` for customer.
192
192
  * @param provider - The authentication provider to use. For example, `emailpass`.
193
193
  * @param body - The data necessary to update the user's authentication data. When resetting the user's password,
194
- * send the `email` and `password` properties.
194
+ * send the `password` property.
195
195
  *
196
196
  * @example
197
197
  * sdk.auth.updateProvider(
198
198
  * "customer",
199
199
  * "emailpass",
200
200
  * {
201
- * email: "customer@gmail.com",
202
201
  * password: "supersecret"
203
- * }
202
+ * },
203
+ * token
204
204
  * )
205
205
  * .then(() => {
206
206
  * // password updated
207
207
  * })
208
208
  */
209
- this.updateProvider = async (actor, provider, body) => {
210
- await this.client.fetch(`/auth/${actor}/${provider}/update`, {
209
+ this.updateProvider = async (actor, provider, body, token) => {
210
+ await this.client.fetch(`/auth/${actor}/${provider}/update?token=${token}`, {
211
211
  method: "POST",
212
212
  body,
213
213
  });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/auth/index.ts"],"names":[],"mappings":";;;AAIA,MAAa,IAAI;IAIf,YAAY,MAAc,EAAE,MAAc;QAK1C;;;;;;;;;;;;;;;;;;;;;WAqBG;QACH,aAAQ,GAAG,KAAK,EACd,KAAa,EACb,MAAc,EACd,OAA+C,EAC/C,EAAE;YACF,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,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}
@@ -123,6 +123,26 @@ export declare class Order {
123
123
  * })
124
124
  */
125
125
  cancel(id: string, headers?: ClientHeaders): Promise<HttpTypes.AdminOrderResponse>;
126
+ /**
127
+ * This method requests an order transfer. It sends a request to the
128
+ * [Request Order Transfer](https://docs.medusajs.com/api/admin#orders_postordersidrequesttransfer)
129
+ * API route.
130
+ *
131
+ * @param id - The order's ID.
132
+ * @param headers - Headers to pass in the request.
133
+ * @param body - The transfer's details - the id of the next owner.
134
+ * @returns The order's details.
135
+ *
136
+ * @example
137
+ * sdk.admin.order.requestTransfer("order_123", {
138
+ * customer_id: "cus_123",
139
+ * internal_note: "Internal note",
140
+ * })
141
+ * .then(({ order }) => {
142
+ * console.log(order)
143
+ * })
144
+ */
145
+ requestTransfer(id: string, body: HttpTypes.AdminRequestOrderTransfer, headers?: ClientHeaders): Promise<HttpTypes.AdminOrderResponse>;
126
146
  /**
127
147
  * This method creates a fulfillment for an order. It sends a request to the
128
148
  * [Create Fulfillment](https://docs.medusajs.com/api/admin#orders_postordersidfulfillments)
@@ -1 +1 @@
1
- {"version":3,"file":"order.d.ts","sourceRoot":"","sources":["../../../src/admin/order.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,SAAS,EAET,YAAY,EACb,MAAM,iBAAiB,CAAA;AAGxB,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;IACtB;;OAEG;gBACS,MAAM,EAAE,MAAM;IAI1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;IACG,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,aAAa;IAUxE;;;;;;;;;;;;;;OAcG;IACG,eAAe,CACnB,EAAE,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,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2BAA2B,EAC3C,KAAK,CAAC,EAAE,YAAY,EACpB,OAAO,CAAC,EAAE,aAAa;IAazB;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACG,iBAAiB,CACrB,EAAE,EAAE,MAAM,EACV,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,SAAS,CAAC,2BAA2B,EAC3C,OAAO,CAAC,EAAE,aAAa;IAYzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACG,cAAc,CAClB,EAAE,EAAE,MAAM,EACV,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,SAAS,CAAC,wBAAwB,EACxC,KAAK,CAAC,EAAE,YAAY,EACpB,OAAO,CAAC,EAAE,aAAa;IAazB;;;;;;;;;;;;;;;;;;;;;OAqBG;IACG,eAAe,CACnB,EAAE,EAAE,MAAM,EACV,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,SAAS,CAAC,oCAAoC,EACpD,KAAK,CAAC,EAAE,YAAY,EACpB,OAAO,CAAC,EAAE,aAAa;IAazB;;;;;;;;;;;;;;;;OAgBG;IACG,WAAW,CACf,EAAE,EAAE,MAAM,EACV,WAAW,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC,wBAAwB,EAC7D,OAAO,CAAC,EAAE,aAAa;IAUzB;;;;;;;;;;;;;;;OAeG;IACG,aAAa,CACjB,EAAE,EAAE,MAAM,EACV,WAAW,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC,sBAAsB,EAC3D,OAAO,CAAC,EAAE,aAAa;CAU1B"}
@@ -155,6 +155,34 @@ export class Order {
155
155
  });
156
156
  });
157
157
  }
158
+ /**
159
+ * This method requests an order transfer. It sends a request to the
160
+ * [Request Order Transfer](https://docs.medusajs.com/api/admin#orders_postordersidrequesttransfer)
161
+ * API route.
162
+ *
163
+ * @param id - The order's ID.
164
+ * @param headers - Headers to pass in the request.
165
+ * @param body - The transfer's details - the id of the next owner.
166
+ * @returns The order's details.
167
+ *
168
+ * @example
169
+ * sdk.admin.order.requestTransfer("order_123", {
170
+ * customer_id: "cus_123",
171
+ * internal_note: "Internal note",
172
+ * })
173
+ * .then(({ order }) => {
174
+ * console.log(order)
175
+ * })
176
+ */
177
+ requestTransfer(id, body, headers) {
178
+ return __awaiter(this, void 0, void 0, function* () {
179
+ return yield this.client.fetch(`/admin/orders/${id}/transfer`, {
180
+ method: "POST",
181
+ headers,
182
+ body,
183
+ });
184
+ });
185
+ }
158
186
  /**
159
187
  * This method creates a fulfillment for an order. It sends a request to the
160
188
  * [Create Fulfillment](https://docs.medusajs.com/api/admin#orders_postordersidfulfillments)
@@ -1 +1 @@
1
- {"version":3,"file":"order.js","sourceRoot":"","sources":["../../../src/admin/order.ts"],"names":[],"mappings":";;;;;;;;;AAWA,MAAM,OAAO,KAAK;IAKhB;;OAEG;IACH,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;IACG,QAAQ,CAAC,EAAU,EAAE,KAAoB,EAAE,OAAuB;;YACtE,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,iBAAiB,EAAE,EAAE,EACrB;gBACE,KAAK;gBACL,OAAO;aACR,CACF,CAAA;QACH,CAAC;KAAA;IAED;;;;;;;;;;;;;;OAcG;IACG,eAAe,CACnB,EAAU,EACV,KAAmC,EACnC,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,iBAAiB,EAAE,UAAU,EAC7B;gBACE,KAAK;gBACL,OAAO;aACR,CACF,CAAA;QACH,CAAC;KAAA;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6CG;IACG,IAAI,CACR,WAAyC,EACzC,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAE5B,eAAe,EAAE;gBACjB,KAAK,EAAE,WAAW;gBAClB,OAAO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153,22 @@ export declare class Auth {
153
153
  * @param actor - The actor type. For example, `user` for admin user, or `customer` for customer.
154
154
  * @param provider - The authentication provider to use. For example, `emailpass`.
155
155
  * @param body - The data necessary to update the user's authentication data. When resetting the user's password,
156
- * send the `email` and `password` properties.
156
+ * send the `password` property.
157
157
  *
158
158
  * @example
159
159
  * sdk.auth.updateProvider(
160
160
  * "customer",
161
161
  * "emailpass",
162
162
  * {
163
- * email: "customer@gmail.com",
164
163
  * password: "supersecret"
165
- * }
164
+ * },
165
+ * token
166
166
  * )
167
167
  * .then(() => {
168
168
  * // password updated
169
169
  * })
170
170
  */
171
- updateProvider: (actor: string, provider: string, body: Record<string, unknown>) => Promise<void>;
171
+ updateProvider: (actor: string, provider: string, body: Record<string, unknown>, token: string) => Promise<void>;
172
172
  /**
173
173
  * @ignore
174
174
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/auth/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,qBAAa,IAAI;IACf,OAAO,CAAC,MAAM,CAAQ;IACtB,OAAO,CAAC,MAAM,CAAQ;gBAEV,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAK1C;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,QAAQ,UACC,MAAM,UACL,MAAM,WACL,SAAS,CAAC,4BAA4B,qBAahD;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,KAAK,UACI,MAAM,UACL,MAAM,WACL,SAAS,CAAC,4BAA4B,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;OAmB1E;IAED;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,QAAQ,UACC,MAAM,UACL,MAAM,UACN,MAAM,CAAC,MAAM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;;;;;;;;;;;;;;;;;;OAuBG;IACH,aAAa,UACJ,MAAM,YACH,MAAM,QACV;QACJ;;;WAGG;QACH,UAAU,EAAE,MAAM,CAAA;KACnB,mBAOF;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,cAAc,UACL,MAAM,YACH,MAAM,QACV,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,SACtB,MAAM,mBASd;IAED;;OAEG;IACH,OAAO,CAAC,SAAS,CAUhB;CACF"}
@@ -198,23 +198,23 @@ export class Auth {
198
198
  * @param actor - The actor type. For example, `user` for admin user, or `customer` for customer.
199
199
  * @param provider - The authentication provider to use. For example, `emailpass`.
200
200
  * @param body - The data necessary to update the user's authentication data. When resetting the user's password,
201
- * send the `email` and `password` properties.
201
+ * send the `password` property.
202
202
  *
203
203
  * @example
204
204
  * sdk.auth.updateProvider(
205
205
  * "customer",
206
206
  * "emailpass",
207
207
  * {
208
- * email: "customer@gmail.com",
209
208
  * password: "supersecret"
210
- * }
209
+ * },
210
+ * token
211
211
  * )
212
212
  * .then(() => {
213
213
  * // password updated
214
214
  * })
215
215
  */
216
- this.updateProvider = (actor, provider, body) => __awaiter(this, void 0, void 0, function* () {
217
- yield this.client.fetch(`/auth/${actor}/${provider}/update`, {
216
+ this.updateProvider = (actor, provider, body, token) => __awaiter(this, void 0, void 0, function* () {
217
+ yield this.client.fetch(`/auth/${actor}/${provider}/update?token=${token}`, {
218
218
  method: "POST",
219
219
  body,
220
220
  });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/auth/index.ts"],"names":[],"mappings":";;;;;;;;;AAIA,MAAM,OAAO,IAAI;IAIf,YAAY,MAAc,EAAE,MAAc;QAK1C;;;;;;;;;;;;;;;;;;;;;WAqBG;QACH,aAAQ,GAAG,CACT,KAAa,EACb,MAAc,EACd,OAA+C,EAC/C,EAAE;YACF,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAA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IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;CAyRF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/js-sdk",
3
- "version": "2.0.5-preview-20241122060151",
3
+ "version": "2.0.5-preview-20241122090154",
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-20241122060151",
38
+ "@medusajs/types": "2.0.5-preview-20241122090154",
39
39
  "fetch-event-stream": "^0.1.5",
40
40
  "qs": "^6.12.1"
41
41
  },