@medusajs/js-sdk 1.0.0-rc-20241016093905 → 1.0.0-rc-20241022152047
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/admin/api-key.d.ts +150 -1
- package/dist/admin/api-key.d.ts.map +1 -1
- package/dist/admin/api-key.js +146 -0
- package/dist/admin/api-key.js.map +1 -1
- package/dist/admin/campaign.d.ts +141 -0
- package/dist/admin/campaign.d.ts.map +1 -1
- package/dist/admin/campaign.js +138 -0
- package/dist/admin/campaign.js.map +1 -1
- package/dist/admin/claim.d.ts +548 -20
- package/dist/admin/claim.d.ts.map +1 -1
- package/dist/admin/claim.js +526 -7
- package/dist/admin/claim.js.map +1 -1
- package/dist/admin/currency.d.ts +86 -1
- package/dist/admin/currency.d.ts.map +1 -1
- package/dist/admin/currency.js +84 -2
- package/dist/admin/currency.js.map +1 -1
- package/dist/admin/customer-group.d.ts +158 -2
- package/dist/admin/customer-group.d.ts.map +1 -1
- package/dist/admin/customer-group.js +153 -0
- package/dist/admin/customer-group.js.map +1 -1
- package/dist/admin/customer.d.ts +141 -13
- package/dist/admin/customer.d.ts.map +1 -1
- package/dist/admin/customer.js +133 -0
- package/dist/admin/customer.js.map +1 -1
- package/dist/admin/exchange.d.ts +477 -20
- package/dist/admin/exchange.d.ts.map +1 -1
- package/dist/admin/exchange.js +458 -30
- package/dist/admin/exchange.js.map +1 -1
- package/dist/admin/fulfillment-provider.d.ts +53 -0
- package/dist/admin/fulfillment-provider.d.ts.map +1 -1
- package/dist/admin/fulfillment-provider.js +50 -0
- package/dist/admin/fulfillment-provider.js.map +1 -1
- package/dist/admin/fulfillment-set.d.ts +128 -0
- package/dist/admin/fulfillment-set.d.ts.map +1 -1
- package/dist/admin/fulfillment-set.js +125 -0
- package/dist/admin/fulfillment-set.js.map +1 -1
- package/dist/admin/fulfillment.d.ts +80 -0
- package/dist/admin/fulfillment.d.ts.map +1 -1
- package/dist/admin/fulfillment.js +78 -0
- package/dist/admin/fulfillment.js.map +1 -1
- package/dist/admin/inventory-item.d.ts +258 -1
- package/dist/admin/inventory-item.d.ts.map +1 -1
- package/dist/admin/inventory-item.js +254 -0
- package/dist/admin/inventory-item.js.map +1 -1
- package/dist/admin/invite.d.ts +176 -15
- package/dist/admin/invite.d.ts.map +1 -1
- package/dist/admin/invite.js +165 -0
- package/dist/admin/invite.js.map +1 -1
- package/dist/admin/notification.d.ts +6 -0
- package/dist/admin/notification.d.ts.map +1 -1
- package/dist/admin/notification.js +3 -0
- package/dist/admin/notification.js.map +1 -1
- package/dist/admin/order-edit.d.ts +6 -0
- package/dist/admin/order-edit.d.ts.map +1 -1
- package/dist/admin/order-edit.js +3 -0
- package/dist/admin/order-edit.js.map +1 -1
- package/dist/admin/order.d.ts +7 -0
- package/dist/admin/order.d.ts.map +1 -1
- package/dist/admin/order.js +9 -0
- package/dist/admin/order.js.map +1 -1
- package/dist/admin/payment-collection.d.ts +6 -0
- package/dist/admin/payment-collection.d.ts.map +1 -1
- package/dist/admin/payment-collection.js +3 -0
- package/dist/admin/payment-collection.js.map +1 -1
- package/dist/admin/payment.d.ts +6 -0
- package/dist/admin/payment.d.ts.map +1 -1
- package/dist/admin/payment.js +3 -0
- package/dist/admin/payment.js.map +1 -1
- package/dist/admin/price-list.d.ts +6 -0
- package/dist/admin/price-list.d.ts.map +1 -1
- package/dist/admin/price-list.js +3 -0
- package/dist/admin/price-list.js.map +1 -1
- package/dist/admin/price-preference.d.ts +6 -0
- package/dist/admin/price-preference.d.ts.map +1 -1
- package/dist/admin/price-preference.js +3 -0
- package/dist/admin/price-preference.js.map +1 -1
- package/dist/admin/product-category.d.ts +6 -0
- package/dist/admin/product-category.d.ts.map +1 -1
- package/dist/admin/product-category.js +3 -0
- package/dist/admin/product-category.js.map +1 -1
- package/dist/admin/product-collection.d.ts +6 -0
- package/dist/admin/product-collection.d.ts.map +1 -1
- package/dist/admin/product-collection.js +3 -0
- package/dist/admin/product-collection.js.map +1 -1
- package/dist/admin/product-tag.d.ts +6 -0
- package/dist/admin/product-tag.d.ts.map +1 -1
- package/dist/admin/product-tag.js +3 -0
- package/dist/admin/product-tag.js.map +1 -1
- package/dist/admin/product-type.d.ts +6 -0
- package/dist/admin/product-type.d.ts.map +1 -1
- package/dist/admin/product-type.js +3 -0
- package/dist/admin/product-type.js.map +1 -1
- package/dist/admin/product-variant.d.ts +6 -0
- package/dist/admin/product-variant.d.ts.map +1 -1
- package/dist/admin/product-variant.js +3 -0
- package/dist/admin/product-variant.js.map +1 -1
- package/dist/admin/product.d.ts +6 -0
- package/dist/admin/product.d.ts.map +1 -1
- package/dist/admin/product.js +3 -0
- package/dist/admin/product.js.map +1 -1
- package/dist/admin/promotion.d.ts +6 -0
- package/dist/admin/promotion.d.ts.map +1 -1
- package/dist/admin/promotion.js +3 -0
- package/dist/admin/promotion.js.map +1 -1
- package/dist/admin/refund-reasons.d.ts +6 -0
- package/dist/admin/refund-reasons.d.ts.map +1 -1
- package/dist/admin/refund-reasons.js +3 -0
- package/dist/admin/refund-reasons.js.map +1 -1
- package/dist/admin/region.d.ts +6 -0
- package/dist/admin/region.d.ts.map +1 -1
- package/dist/admin/region.js +3 -0
- package/dist/admin/region.js.map +1 -1
- package/dist/admin/reservation.d.ts +6 -0
- package/dist/admin/reservation.d.ts.map +1 -1
- package/dist/admin/reservation.js +3 -0
- package/dist/admin/reservation.js.map +1 -1
- package/dist/admin/return-reason.d.ts +6 -0
- package/dist/admin/return-reason.d.ts.map +1 -1
- package/dist/admin/return-reason.js +3 -0
- package/dist/admin/return-reason.js.map +1 -1
- package/dist/admin/return.d.ts +6 -0
- package/dist/admin/return.d.ts.map +1 -1
- package/dist/admin/return.js +3 -0
- package/dist/admin/return.js.map +1 -1
- package/dist/admin/sales-channel.d.ts +6 -0
- package/dist/admin/sales-channel.d.ts.map +1 -1
- package/dist/admin/sales-channel.js +3 -0
- package/dist/admin/sales-channel.js.map +1 -1
- package/dist/admin/shipping-option.d.ts +6 -0
- package/dist/admin/shipping-option.d.ts.map +1 -1
- package/dist/admin/shipping-option.js +3 -0
- package/dist/admin/shipping-option.js.map +1 -1
- package/dist/admin/shipping-profile.d.ts +6 -0
- package/dist/admin/shipping-profile.d.ts.map +1 -1
- package/dist/admin/shipping-profile.js +3 -0
- package/dist/admin/shipping-profile.js.map +1 -1
- package/dist/admin/stock-location.d.ts +6 -0
- package/dist/admin/stock-location.d.ts.map +1 -1
- package/dist/admin/stock-location.js +3 -0
- package/dist/admin/stock-location.js.map +1 -1
- package/dist/admin/store.d.ts +6 -0
- package/dist/admin/store.d.ts.map +1 -1
- package/dist/admin/store.js +3 -0
- package/dist/admin/store.js.map +1 -1
- package/dist/admin/tax-rate.d.ts +6 -0
- package/dist/admin/tax-rate.d.ts.map +1 -1
- package/dist/admin/tax-rate.js +3 -0
- package/dist/admin/tax-rate.js.map +1 -1
- package/dist/admin/tax-region.d.ts +6 -0
- package/dist/admin/tax-region.d.ts.map +1 -1
- package/dist/admin/tax-region.js +3 -0
- package/dist/admin/tax-region.js.map +1 -1
- package/dist/admin/upload.d.ts +6 -0
- package/dist/admin/upload.d.ts.map +1 -1
- package/dist/admin/upload.js +3 -0
- package/dist/admin/upload.js.map +1 -1
- package/dist/admin/user.d.ts +6 -0
- package/dist/admin/user.d.ts.map +1 -1
- package/dist/admin/user.js +3 -0
- package/dist/admin/user.js.map +1 -1
- package/dist/admin/workflow-execution.d.ts +6 -0
- package/dist/admin/workflow-execution.d.ts.map +1 -1
- package/dist/admin/workflow-execution.js +3 -0
- package/dist/admin/workflow-execution.js.map +1 -1
- package/dist/auth/index.d.ts +156 -0
- package/dist/auth/index.d.ts.map +1 -1
- package/dist/auth/index.js +152 -1
- package/dist/auth/index.js.map +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +2 -1
- package/dist/client.js.map +1 -1
- package/dist/esm/admin/api-key.d.ts +150 -1
- package/dist/esm/admin/api-key.d.ts.map +1 -1
- package/dist/esm/admin/api-key.js +146 -0
- package/dist/esm/admin/api-key.js.map +1 -1
- package/dist/esm/admin/campaign.d.ts +141 -0
- package/dist/esm/admin/campaign.d.ts.map +1 -1
- package/dist/esm/admin/campaign.js +138 -0
- package/dist/esm/admin/campaign.js.map +1 -1
- package/dist/esm/admin/claim.d.ts +548 -20
- package/dist/esm/admin/claim.d.ts.map +1 -1
- package/dist/esm/admin/claim.js +526 -9
- package/dist/esm/admin/claim.js.map +1 -1
- package/dist/esm/admin/currency.d.ts +86 -1
- package/dist/esm/admin/currency.d.ts.map +1 -1
- package/dist/esm/admin/currency.js +84 -2
- package/dist/esm/admin/currency.js.map +1 -1
- package/dist/esm/admin/customer-group.d.ts +158 -2
- package/dist/esm/admin/customer-group.d.ts.map +1 -1
- package/dist/esm/admin/customer-group.js +153 -0
- package/dist/esm/admin/customer-group.js.map +1 -1
- package/dist/esm/admin/customer.d.ts +141 -13
- package/dist/esm/admin/customer.d.ts.map +1 -1
- package/dist/esm/admin/customer.js +133 -0
- package/dist/esm/admin/customer.js.map +1 -1
- package/dist/esm/admin/exchange.d.ts +477 -20
- package/dist/esm/admin/exchange.d.ts.map +1 -1
- package/dist/esm/admin/exchange.js +458 -38
- package/dist/esm/admin/exchange.js.map +1 -1
- package/dist/esm/admin/fulfillment-provider.d.ts +53 -0
- package/dist/esm/admin/fulfillment-provider.d.ts.map +1 -1
- package/dist/esm/admin/fulfillment-provider.js +50 -0
- package/dist/esm/admin/fulfillment-provider.js.map +1 -1
- package/dist/esm/admin/fulfillment-set.d.ts +128 -0
- package/dist/esm/admin/fulfillment-set.d.ts.map +1 -1
- package/dist/esm/admin/fulfillment-set.js +125 -0
- package/dist/esm/admin/fulfillment-set.js.map +1 -1
- package/dist/esm/admin/fulfillment.d.ts +80 -0
- package/dist/esm/admin/fulfillment.d.ts.map +1 -1
- package/dist/esm/admin/fulfillment.js +78 -0
- package/dist/esm/admin/fulfillment.js.map +1 -1
- package/dist/esm/admin/inventory-item.d.ts +258 -1
- package/dist/esm/admin/inventory-item.d.ts.map +1 -1
- package/dist/esm/admin/inventory-item.js +254 -0
- package/dist/esm/admin/inventory-item.js.map +1 -1
- package/dist/esm/admin/invite.d.ts +176 -15
- package/dist/esm/admin/invite.d.ts.map +1 -1
- package/dist/esm/admin/invite.js +165 -0
- package/dist/esm/admin/invite.js.map +1 -1
- package/dist/esm/admin/notification.d.ts +6 -0
- package/dist/esm/admin/notification.d.ts.map +1 -1
- package/dist/esm/admin/notification.js +3 -0
- package/dist/esm/admin/notification.js.map +1 -1
- package/dist/esm/admin/order-edit.d.ts +6 -0
- package/dist/esm/admin/order-edit.d.ts.map +1 -1
- package/dist/esm/admin/order-edit.js +3 -0
- package/dist/esm/admin/order-edit.js.map +1 -1
- package/dist/esm/admin/order.d.ts +7 -0
- package/dist/esm/admin/order.d.ts.map +1 -1
- package/dist/esm/admin/order.js +11 -0
- package/dist/esm/admin/order.js.map +1 -1
- package/dist/esm/admin/payment-collection.d.ts +6 -0
- package/dist/esm/admin/payment-collection.d.ts.map +1 -1
- package/dist/esm/admin/payment-collection.js +3 -0
- package/dist/esm/admin/payment-collection.js.map +1 -1
- package/dist/esm/admin/payment.d.ts +6 -0
- package/dist/esm/admin/payment.d.ts.map +1 -1
- package/dist/esm/admin/payment.js +3 -0
- package/dist/esm/admin/payment.js.map +1 -1
- package/dist/esm/admin/price-list.d.ts +6 -0
- package/dist/esm/admin/price-list.d.ts.map +1 -1
- package/dist/esm/admin/price-list.js +3 -0
- package/dist/esm/admin/price-list.js.map +1 -1
- package/dist/esm/admin/price-preference.d.ts +6 -0
- package/dist/esm/admin/price-preference.d.ts.map +1 -1
- package/dist/esm/admin/price-preference.js +3 -0
- package/dist/esm/admin/price-preference.js.map +1 -1
- package/dist/esm/admin/product-category.d.ts +6 -0
- package/dist/esm/admin/product-category.d.ts.map +1 -1
- package/dist/esm/admin/product-category.js +3 -0
- package/dist/esm/admin/product-category.js.map +1 -1
- package/dist/esm/admin/product-collection.d.ts +6 -0
- package/dist/esm/admin/product-collection.d.ts.map +1 -1
- package/dist/esm/admin/product-collection.js +3 -0
- package/dist/esm/admin/product-collection.js.map +1 -1
- package/dist/esm/admin/product-tag.d.ts +6 -0
- package/dist/esm/admin/product-tag.d.ts.map +1 -1
- package/dist/esm/admin/product-tag.js +3 -0
- package/dist/esm/admin/product-tag.js.map +1 -1
- package/dist/esm/admin/product-type.d.ts +6 -0
- package/dist/esm/admin/product-type.d.ts.map +1 -1
- package/dist/esm/admin/product-type.js +3 -0
- package/dist/esm/admin/product-type.js.map +1 -1
- package/dist/esm/admin/product-variant.d.ts +6 -0
- package/dist/esm/admin/product-variant.d.ts.map +1 -1
- package/dist/esm/admin/product-variant.js +3 -0
- package/dist/esm/admin/product-variant.js.map +1 -1
- package/dist/esm/admin/product.d.ts +6 -0
- package/dist/esm/admin/product.d.ts.map +1 -1
- package/dist/esm/admin/product.js +3 -0
- package/dist/esm/admin/product.js.map +1 -1
- package/dist/esm/admin/promotion.d.ts +6 -0
- package/dist/esm/admin/promotion.d.ts.map +1 -1
- package/dist/esm/admin/promotion.js +3 -0
- package/dist/esm/admin/promotion.js.map +1 -1
- package/dist/esm/admin/refund-reasons.d.ts +6 -0
- package/dist/esm/admin/refund-reasons.d.ts.map +1 -1
- package/dist/esm/admin/refund-reasons.js +3 -0
- package/dist/esm/admin/refund-reasons.js.map +1 -1
- package/dist/esm/admin/region.d.ts +6 -0
- package/dist/esm/admin/region.d.ts.map +1 -1
- package/dist/esm/admin/region.js +3 -0
- package/dist/esm/admin/region.js.map +1 -1
- package/dist/esm/admin/reservation.d.ts +6 -0
- package/dist/esm/admin/reservation.d.ts.map +1 -1
- package/dist/esm/admin/reservation.js +3 -0
- package/dist/esm/admin/reservation.js.map +1 -1
- package/dist/esm/admin/return-reason.d.ts +6 -0
- package/dist/esm/admin/return-reason.d.ts.map +1 -1
- package/dist/esm/admin/return-reason.js +3 -0
- package/dist/esm/admin/return-reason.js.map +1 -1
- package/dist/esm/admin/return.d.ts +6 -0
- package/dist/esm/admin/return.d.ts.map +1 -1
- package/dist/esm/admin/return.js +3 -0
- package/dist/esm/admin/return.js.map +1 -1
- package/dist/esm/admin/sales-channel.d.ts +6 -0
- package/dist/esm/admin/sales-channel.d.ts.map +1 -1
- package/dist/esm/admin/sales-channel.js +3 -0
- package/dist/esm/admin/sales-channel.js.map +1 -1
- package/dist/esm/admin/shipping-option.d.ts +6 -0
- package/dist/esm/admin/shipping-option.d.ts.map +1 -1
- package/dist/esm/admin/shipping-option.js +3 -0
- package/dist/esm/admin/shipping-option.js.map +1 -1
- package/dist/esm/admin/shipping-profile.d.ts +6 -0
- package/dist/esm/admin/shipping-profile.d.ts.map +1 -1
- package/dist/esm/admin/shipping-profile.js +3 -0
- package/dist/esm/admin/shipping-profile.js.map +1 -1
- package/dist/esm/admin/stock-location.d.ts +6 -0
- package/dist/esm/admin/stock-location.d.ts.map +1 -1
- package/dist/esm/admin/stock-location.js +3 -0
- package/dist/esm/admin/stock-location.js.map +1 -1
- package/dist/esm/admin/store.d.ts +6 -0
- package/dist/esm/admin/store.d.ts.map +1 -1
- package/dist/esm/admin/store.js +3 -0
- package/dist/esm/admin/store.js.map +1 -1
- package/dist/esm/admin/tax-rate.d.ts +6 -0
- package/dist/esm/admin/tax-rate.d.ts.map +1 -1
- package/dist/esm/admin/tax-rate.js +3 -0
- package/dist/esm/admin/tax-rate.js.map +1 -1
- package/dist/esm/admin/tax-region.d.ts +6 -0
- package/dist/esm/admin/tax-region.d.ts.map +1 -1
- package/dist/esm/admin/tax-region.js +3 -0
- package/dist/esm/admin/tax-region.js.map +1 -1
- package/dist/esm/admin/upload.d.ts +6 -0
- package/dist/esm/admin/upload.d.ts.map +1 -1
- package/dist/esm/admin/upload.js +3 -0
- package/dist/esm/admin/upload.js.map +1 -1
- package/dist/esm/admin/user.d.ts +6 -0
- package/dist/esm/admin/user.d.ts.map +1 -1
- package/dist/esm/admin/user.js +3 -0
- package/dist/esm/admin/user.js.map +1 -1
- package/dist/esm/admin/workflow-execution.d.ts +6 -0
- package/dist/esm/admin/workflow-execution.d.ts.map +1 -1
- package/dist/esm/admin/workflow-execution.js +3 -0
- package/dist/esm/admin/workflow-execution.js.map +1 -1
- package/dist/esm/auth/index.d.ts +156 -0
- package/dist/esm/auth/index.d.ts.map +1 -1
- package/dist/esm/auth/index.js +152 -1
- package/dist/esm/auth/index.js.map +1 -1
- package/dist/esm/client.d.ts +1 -1
- package/dist/esm/client.d.ts.map +1 -1
- package/dist/esm/client.js +2 -1
- package/dist/esm/client.js.map +1 -1
- package/dist/esm/store/index.d.ts +973 -83
- package/dist/esm/store/index.d.ts.map +1 -1
- package/dist/esm/store/index.js +946 -0
- package/dist/esm/store/index.js.map +1 -1
- package/dist/esm/types.d.ts +6 -1
- package/dist/esm/types.d.ts.map +1 -1
- package/dist/store/index.d.ts +973 -83
- package/dist/store/index.d.ts.map +1 -1
- package/dist/store/index.js +946 -0
- package/dist/store/index.js.map +1 -1
- package/dist/types.d.ts +6 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/admin/invite.d.ts
CHANGED
@@ -2,25 +2,186 @@ import { FindParams, HttpTypes, SelectParams } from "@medusajs/types";
|
|
2
2
|
import { Client } from "../client";
|
3
3
|
import { ClientHeaders } from "../types";
|
4
4
|
export declare class Invite {
|
5
|
+
/**
|
6
|
+
* @ignore
|
7
|
+
*/
|
5
8
|
private client;
|
9
|
+
/**
|
10
|
+
* @ignore
|
11
|
+
*/
|
6
12
|
constructor(client: Client);
|
13
|
+
/**
|
14
|
+
* This method accepts an invite. It requires sending a previous request to
|
15
|
+
* the {@link Auth.register}.
|
16
|
+
*
|
17
|
+
* This method sends a request to the [Accept Invite]
|
18
|
+
* (https://docs.medusajs.com/v2/api/admin#invites_postinvitesaccept)
|
19
|
+
* API route.
|
20
|
+
*
|
21
|
+
* @param input - The details of the user to create.
|
22
|
+
* @param query - Configure the fields to retrieve in the user.
|
23
|
+
* @param headers - Headers to pass in the request
|
24
|
+
* @returns The user's details.
|
25
|
+
*
|
26
|
+
* @example
|
27
|
+
* const token = await sdk.auth.register("user", "emailpass", {
|
28
|
+
* email: "user@gmail.com",
|
29
|
+
* password: "supersecret"
|
30
|
+
* })
|
31
|
+
*
|
32
|
+
* sdk.admin.invite.accept(
|
33
|
+
* {
|
34
|
+
* email: "user@gmail.com",
|
35
|
+
* first_name: "John",
|
36
|
+
* last_name: "Smith",
|
37
|
+
* invite_token: "12345..."
|
38
|
+
* },
|
39
|
+
* {
|
40
|
+
* Authorization: `Bearer ${token}`
|
41
|
+
* }
|
42
|
+
* )
|
43
|
+
* .then(({ user }) => {
|
44
|
+
* console.log(user)
|
45
|
+
* })
|
46
|
+
*/
|
7
47
|
accept(input: HttpTypes.AdminAcceptInvite & {
|
48
|
+
/**
|
49
|
+
* The invite's token.
|
50
|
+
*/
|
8
51
|
invite_token: string;
|
9
|
-
}, query?: SelectParams, headers?: ClientHeaders): Promise<
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
52
|
+
}, query?: SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminAcceptInviteResponse>;
|
53
|
+
/**
|
54
|
+
* This method creates an invite. It sends a request to the
|
55
|
+
* [Create Invite](https://docs.medusajs.com/v2/api/admin#invites_postinvites)
|
56
|
+
* API route.
|
57
|
+
*
|
58
|
+
* @param body - The invite's details.
|
59
|
+
* @param query - Configure the fields to retrieve in the invite.
|
60
|
+
* @param headers - Headers to pass in the request
|
61
|
+
* @returns The invite's details.
|
62
|
+
*
|
63
|
+
* @example
|
64
|
+
* sdk.admin.invite.create({
|
65
|
+
* email: "user@gmail.com",
|
66
|
+
* })
|
67
|
+
* .then(({ invite }) => {
|
68
|
+
* console.log(invite)
|
69
|
+
* })
|
70
|
+
*/
|
71
|
+
create(body: HttpTypes.AdminCreateInvite, query?: SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminInviteResponse>;
|
72
|
+
/**
|
73
|
+
* This method retrieves an invite by its ID. It sends a request to the
|
74
|
+
* [Get Invite](https://docs.medusajs.com/v2/api/admin#invites_getinvitesid)
|
75
|
+
* API route.
|
76
|
+
*
|
77
|
+
* @param id - The invite's ID.
|
78
|
+
* @param query - Configure the fields to retrieve in the invite.
|
79
|
+
* @param headers - Headers to pass in the request
|
80
|
+
* @returns The invite's details.
|
81
|
+
*
|
82
|
+
* @example
|
83
|
+
* To retrieve an invite its ID:
|
84
|
+
*
|
85
|
+
* ```ts
|
86
|
+
* sdk.admin.invite.retrieve("invite_123")
|
87
|
+
* .then(({ invite }) => {
|
88
|
+
* console.log(invite)
|
89
|
+
* })
|
90
|
+
* ```
|
91
|
+
*
|
92
|
+
* To specify the fields and relations to retrieve:
|
93
|
+
*
|
94
|
+
* ```ts
|
95
|
+
* sdk.admin.invite.retrieve("invite_123", {
|
96
|
+
* fields: "id,email"
|
97
|
+
* })
|
98
|
+
* .then(({ invite }) => {
|
99
|
+
* console.log(invite)
|
100
|
+
* })
|
101
|
+
* ```
|
102
|
+
*
|
103
|
+
* Learn more about the `fields` property in the [API reference](https://docs.medusajs.com/v2/api/store#select-fields-and-relations).
|
104
|
+
*/
|
105
|
+
retrieve(id: string, query?: SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminInviteResponse>;
|
106
|
+
/**
|
107
|
+
* This method retrieves a paginated list of invites. It sends a request to the
|
108
|
+
* [List Invites](https://docs.medusajs.com/v2/api/admin#invites_getinvites)
|
109
|
+
* API route.
|
110
|
+
*
|
111
|
+
* @param queryParams - Filters and pagination configurations.
|
112
|
+
* @param headers - Headers to pass in the request.
|
113
|
+
* @returns The paginated list of invites.
|
114
|
+
*
|
115
|
+
* @example
|
116
|
+
* To retrieve the list of invites:
|
117
|
+
*
|
118
|
+
* ```ts
|
119
|
+
* sdk.admin.invite.list()
|
120
|
+
* .then(({ invites, count, limit, offset }) => {
|
121
|
+
* console.log(invites)
|
122
|
+
* })
|
123
|
+
* ```
|
124
|
+
*
|
125
|
+
* To configure the pagination, pass the `limit` and `offset` query parameters.
|
126
|
+
*
|
127
|
+
* For example, to retrieve only 10 items and skip 10 items:
|
128
|
+
*
|
129
|
+
* ```ts
|
130
|
+
* sdk.admin.invite.list({
|
131
|
+
* limit: 10,
|
132
|
+
* offset: 10
|
133
|
+
* })
|
134
|
+
* .then(({ invites, count, limit, offset }) => {
|
135
|
+
* console.log(invites)
|
136
|
+
* })
|
137
|
+
* ```
|
138
|
+
*
|
139
|
+
* Using the `fields` query parameter, you can specify the fields and relations to retrieve
|
140
|
+
* in each invite:
|
141
|
+
*
|
142
|
+
* ```ts
|
143
|
+
* sdk.admin.invite.list({
|
144
|
+
* fields: "id,email"
|
145
|
+
* })
|
146
|
+
* .then(({ invites, count, limit, offset }) => {
|
147
|
+
* console.log(invites)
|
148
|
+
* })
|
149
|
+
* ```
|
150
|
+
*
|
151
|
+
* Learn more about the `fields` property in the [API reference](https://docs.medusajs.com/v2/api/store#select-fields-and-relations).
|
152
|
+
*/
|
153
|
+
list(queryParams?: FindParams, headers?: ClientHeaders): Promise<HttpTypes.AdminInviteListResponse>;
|
154
|
+
/**
|
155
|
+
* This method refreshes the token of an invite. It sends a request to the
|
156
|
+
* [Refresh Invite Token](https://docs.medusajs.com/v2/api/admin#invites_postinvitesidresend)
|
157
|
+
* API route.
|
158
|
+
*
|
159
|
+
* @param id - The invite's ID.
|
160
|
+
* @param headers - Headers to pass in the request.
|
161
|
+
* @returns The invite's details.
|
162
|
+
*
|
163
|
+
* @example
|
164
|
+
* sdk.admin.invite.resend("invite_123")
|
165
|
+
* .then(({ invite }) => {
|
166
|
+
* console.log(invite)
|
167
|
+
* })
|
168
|
+
*/
|
169
|
+
resend(id: string, headers?: ClientHeaders): Promise<HttpTypes.AdminInviteResponse>;
|
170
|
+
/**
|
171
|
+
* This method deletes an invite. It sends a request to the
|
172
|
+
* [Delete Invite](https://docs.medusajs.com/v2/api/admin#invites_deleteinvitesid)
|
173
|
+
* API route.
|
174
|
+
*
|
175
|
+
* @param id - The invite's ID.
|
176
|
+
* @param headers - Headers to pass in the request.
|
177
|
+
* @returns The deletion's details.
|
178
|
+
*
|
179
|
+
* @example
|
180
|
+
* sdk.admin.invite.delete("invite_123")
|
181
|
+
* .then(({ deleted }) => {
|
182
|
+
* console.log(deleted)
|
183
|
+
* })
|
184
|
+
*/
|
24
185
|
delete(id: string, headers?: ClientHeaders): Promise<HttpTypes.AdminInviteDeleteResponse>;
|
25
186
|
}
|
26
187
|
//# sourceMappingURL=invite.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"invite.d.ts","sourceRoot":"","sources":["../../src/admin/invite.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,SAAS,
|
1
|
+
{"version":3,"file":"invite.d.ts","sourceRoot":"","sources":["../../src/admin/invite.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,SAAS,EACT,YAAY,EACb,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC,qBAAa,MAAM;IACjB;;OAEG;IACH,OAAO,CAAC,MAAM,CAAQ;IACtB;;OAEG;gBACS,MAAM,EAAE,MAAM;IAI1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiCG;IACG,MAAM,CACV,KAAK,EAAE,SAAS,CAAC,iBAAiB,GAAG;QACnC;;WAEG;QACH,YAAY,EAAE,MAAM,CAAA;KACrB,EACD,KAAK,CAAC,EAAE,YAAY,EACpB,OAAO,CAAC,EAAE,aAAa;IAczB;;;;;;;;;;;;;;;;;OAiBG;IACG,MAAM,CACV,IAAI,EAAE,SAAS,CAAC,iBAAiB,EACjC,KAAK,CAAC,EAAE,YAAY,EACpB,OAAO,CAAC,EAAE,aAAa;IAazB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;IACG,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,aAAa;IAUxE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8CG;IACG,IAAI,CAAC,WAAW,CAAC,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,aAAa;IAS5D;;;;;;;;;;;;;;OAcG;IACG,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa;IAUhD;;;;;;;;;;;;;;OAcG;IACG,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa;CASjD"}
|
package/dist/admin/invite.js
CHANGED
@@ -2,9 +2,46 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.Invite = void 0;
|
4
4
|
class Invite {
|
5
|
+
/**
|
6
|
+
* @ignore
|
7
|
+
*/
|
5
8
|
constructor(client) {
|
6
9
|
this.client = client;
|
7
10
|
}
|
11
|
+
/**
|
12
|
+
* This method accepts an invite. It requires sending a previous request to
|
13
|
+
* the {@link Auth.register}.
|
14
|
+
*
|
15
|
+
* This method sends a request to the [Accept Invite]
|
16
|
+
* (https://docs.medusajs.com/v2/api/admin#invites_postinvitesaccept)
|
17
|
+
* API route.
|
18
|
+
*
|
19
|
+
* @param input - The details of the user to create.
|
20
|
+
* @param query - Configure the fields to retrieve in the user.
|
21
|
+
* @param headers - Headers to pass in the request
|
22
|
+
* @returns The user's details.
|
23
|
+
*
|
24
|
+
* @example
|
25
|
+
* const token = await sdk.auth.register("user", "emailpass", {
|
26
|
+
* email: "user@gmail.com",
|
27
|
+
* password: "supersecret"
|
28
|
+
* })
|
29
|
+
*
|
30
|
+
* sdk.admin.invite.accept(
|
31
|
+
* {
|
32
|
+
* email: "user@gmail.com",
|
33
|
+
* first_name: "John",
|
34
|
+
* last_name: "Smith",
|
35
|
+
* invite_token: "12345..."
|
36
|
+
* },
|
37
|
+
* {
|
38
|
+
* Authorization: `Bearer ${token}`
|
39
|
+
* }
|
40
|
+
* )
|
41
|
+
* .then(({ user }) => {
|
42
|
+
* console.log(user)
|
43
|
+
* })
|
44
|
+
*/
|
8
45
|
async accept(input, query, headers) {
|
9
46
|
const { invite_token, ...rest } = input;
|
10
47
|
return await this.client.fetch(`/admin/invites/accept?token=${input.invite_token}`, {
|
@@ -14,6 +51,24 @@ class Invite {
|
|
14
51
|
query,
|
15
52
|
});
|
16
53
|
}
|
54
|
+
/**
|
55
|
+
* This method creates an invite. It sends a request to the
|
56
|
+
* [Create Invite](https://docs.medusajs.com/v2/api/admin#invites_postinvites)
|
57
|
+
* API route.
|
58
|
+
*
|
59
|
+
* @param body - The invite's details.
|
60
|
+
* @param query - Configure the fields to retrieve in the invite.
|
61
|
+
* @param headers - Headers to pass in the request
|
62
|
+
* @returns The invite's details.
|
63
|
+
*
|
64
|
+
* @example
|
65
|
+
* sdk.admin.invite.create({
|
66
|
+
* email: "user@gmail.com",
|
67
|
+
* })
|
68
|
+
* .then(({ invite }) => {
|
69
|
+
* console.log(invite)
|
70
|
+
* })
|
71
|
+
*/
|
17
72
|
async create(body, query, headers) {
|
18
73
|
return await this.client.fetch(`/admin/invites`, {
|
19
74
|
method: "POST",
|
@@ -22,24 +77,134 @@ class Invite {
|
|
22
77
|
query,
|
23
78
|
});
|
24
79
|
}
|
80
|
+
/**
|
81
|
+
* This method retrieves an invite by its ID. It sends a request to the
|
82
|
+
* [Get Invite](https://docs.medusajs.com/v2/api/admin#invites_getinvitesid)
|
83
|
+
* API route.
|
84
|
+
*
|
85
|
+
* @param id - The invite's ID.
|
86
|
+
* @param query - Configure the fields to retrieve in the invite.
|
87
|
+
* @param headers - Headers to pass in the request
|
88
|
+
* @returns The invite's details.
|
89
|
+
*
|
90
|
+
* @example
|
91
|
+
* To retrieve an invite its ID:
|
92
|
+
*
|
93
|
+
* ```ts
|
94
|
+
* sdk.admin.invite.retrieve("invite_123")
|
95
|
+
* .then(({ invite }) => {
|
96
|
+
* console.log(invite)
|
97
|
+
* })
|
98
|
+
* ```
|
99
|
+
*
|
100
|
+
* To specify the fields and relations to retrieve:
|
101
|
+
*
|
102
|
+
* ```ts
|
103
|
+
* sdk.admin.invite.retrieve("invite_123", {
|
104
|
+
* fields: "id,email"
|
105
|
+
* })
|
106
|
+
* .then(({ invite }) => {
|
107
|
+
* console.log(invite)
|
108
|
+
* })
|
109
|
+
* ```
|
110
|
+
*
|
111
|
+
* Learn more about the `fields` property in the [API reference](https://docs.medusajs.com/v2/api/store#select-fields-and-relations).
|
112
|
+
*/
|
25
113
|
async retrieve(id, query, headers) {
|
26
114
|
return await this.client.fetch(`/admin/invites/${id}`, {
|
27
115
|
headers,
|
28
116
|
query,
|
29
117
|
});
|
30
118
|
}
|
119
|
+
/**
|
120
|
+
* This method retrieves a paginated list of invites. It sends a request to the
|
121
|
+
* [List Invites](https://docs.medusajs.com/v2/api/admin#invites_getinvites)
|
122
|
+
* API route.
|
123
|
+
*
|
124
|
+
* @param queryParams - Filters and pagination configurations.
|
125
|
+
* @param headers - Headers to pass in the request.
|
126
|
+
* @returns The paginated list of invites.
|
127
|
+
*
|
128
|
+
* @example
|
129
|
+
* To retrieve the list of invites:
|
130
|
+
*
|
131
|
+
* ```ts
|
132
|
+
* sdk.admin.invite.list()
|
133
|
+
* .then(({ invites, count, limit, offset }) => {
|
134
|
+
* console.log(invites)
|
135
|
+
* })
|
136
|
+
* ```
|
137
|
+
*
|
138
|
+
* To configure the pagination, pass the `limit` and `offset` query parameters.
|
139
|
+
*
|
140
|
+
* For example, to retrieve only 10 items and skip 10 items:
|
141
|
+
*
|
142
|
+
* ```ts
|
143
|
+
* sdk.admin.invite.list({
|
144
|
+
* limit: 10,
|
145
|
+
* offset: 10
|
146
|
+
* })
|
147
|
+
* .then(({ invites, count, limit, offset }) => {
|
148
|
+
* console.log(invites)
|
149
|
+
* })
|
150
|
+
* ```
|
151
|
+
*
|
152
|
+
* Using the `fields` query parameter, you can specify the fields and relations to retrieve
|
153
|
+
* in each invite:
|
154
|
+
*
|
155
|
+
* ```ts
|
156
|
+
* sdk.admin.invite.list({
|
157
|
+
* fields: "id,email"
|
158
|
+
* })
|
159
|
+
* .then(({ invites, count, limit, offset }) => {
|
160
|
+
* console.log(invites)
|
161
|
+
* })
|
162
|
+
* ```
|
163
|
+
*
|
164
|
+
* Learn more about the `fields` property in the [API reference](https://docs.medusajs.com/v2/api/store#select-fields-and-relations).
|
165
|
+
*/
|
31
166
|
async list(queryParams, headers) {
|
32
167
|
return await this.client.fetch(`/admin/invites`, {
|
33
168
|
headers,
|
34
169
|
query: queryParams,
|
35
170
|
});
|
36
171
|
}
|
172
|
+
/**
|
173
|
+
* This method refreshes the token of an invite. It sends a request to the
|
174
|
+
* [Refresh Invite Token](https://docs.medusajs.com/v2/api/admin#invites_postinvitesidresend)
|
175
|
+
* API route.
|
176
|
+
*
|
177
|
+
* @param id - The invite's ID.
|
178
|
+
* @param headers - Headers to pass in the request.
|
179
|
+
* @returns The invite's details.
|
180
|
+
*
|
181
|
+
* @example
|
182
|
+
* sdk.admin.invite.resend("invite_123")
|
183
|
+
* .then(({ invite }) => {
|
184
|
+
* console.log(invite)
|
185
|
+
* })
|
186
|
+
*/
|
37
187
|
async resend(id, headers) {
|
38
188
|
return await this.client.fetch(`/admin/invites/${id}/resend`, {
|
39
189
|
method: "POST",
|
40
190
|
headers,
|
41
191
|
});
|
42
192
|
}
|
193
|
+
/**
|
194
|
+
* This method deletes an invite. It sends a request to the
|
195
|
+
* [Delete Invite](https://docs.medusajs.com/v2/api/admin#invites_deleteinvitesid)
|
196
|
+
* API route.
|
197
|
+
*
|
198
|
+
* @param id - The invite's ID.
|
199
|
+
* @param headers - Headers to pass in the request.
|
200
|
+
* @returns The deletion's details.
|
201
|
+
*
|
202
|
+
* @example
|
203
|
+
* sdk.admin.invite.delete("invite_123")
|
204
|
+
* .then(({ deleted }) => {
|
205
|
+
* console.log(deleted)
|
206
|
+
* })
|
207
|
+
*/
|
43
208
|
async delete(id, headers) {
|
44
209
|
return await this.client.fetch(`/admin/invites/${id}`, {
|
45
210
|
method: "DELETE",
|
package/dist/admin/invite.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"invite.js","sourceRoot":"","sources":["../../src/admin/invite.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"invite.js","sourceRoot":"","sources":["../../src/admin/invite.ts"],"names":[],"mappings":";;;AAQA,MAAa,MAAM;IAKjB;;OAEG;IACH,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiCG;IACH,KAAK,CAAC,MAAM,CACV,KAKC,EACD,KAAoB,EACpB,OAAuB;QAEvB,MAAM,EAAE,YAAY,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAA;QACvC,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,+BAA+B,KAAK,CAAC,YAAY,EAAE,EACnD;YACE,MAAM,EAAE,MAAM;YACd,OAAO;YACP,IAAI,EAAE,IAAI;YACV,KAAK;SACN,CACF,CAAA;IACH,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,KAAK,CAAC,MAAM,CACV,IAAiC,EACjC,KAAoB,EACpB,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,gBAAgB,EAChB;YACE,MAAM,EAAE,MAAM;YACd,OAAO;YACP,IAAI;YACJ,KAAK;SACN,CACF,CAAA;IACH,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;IACH,KAAK,CAAC,QAAQ,CAAC,EAAU,EAAE,KAAoB,EAAE,OAAuB;QACtE,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,kBAAkB,EAAE,EAAE,EACtB;YACE,OAAO;YACP,KAAK;SACN,CACF,CAAA;IACH,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8CG;IACH,KAAK,CAAC,IAAI,CAAC,WAAwB,EAAE,OAAuB;QAC1D,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAE5B,gBAAgB,EAAE;YAClB,OAAO;YACP,KAAK,EAAE,WAAW;SACnB,CAAC,CAAA;IACJ,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,KAAK,CAAC,MAAM,CAAC,EAAU,EAAE,OAAuB;QAC9C,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,kBAAkB,EAAE,SAAS,EAC7B;YACE,MAAM,EAAE,MAAM;YACd,OAAO;SACR,CACF,CAAA;IACH,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,KAAK,CAAC,MAAM,CAAC,EAAU,EAAE,OAAuB;QAC9C,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,kBAAkB,EAAE,EAAE,EACtB;YACE,MAAM,EAAE,QAAQ;YAChB,OAAO;SACR,CACF,CAAA;IACH,CAAC;CACF;AA1PD,wBA0PC"}
|
@@ -2,7 +2,13 @@ import { HttpTypes } from "@medusajs/types";
|
|
2
2
|
import { Client } from "../client";
|
3
3
|
import { ClientHeaders } from "../types";
|
4
4
|
export declare class Notification {
|
5
|
+
/**
|
6
|
+
* @ignore
|
7
|
+
*/
|
5
8
|
private client;
|
9
|
+
/**
|
10
|
+
* @ignore
|
11
|
+
*/
|
6
12
|
constructor(client: Client);
|
7
13
|
retrieve(id: string, query?: HttpTypes.AdminNotificationParams, headers?: ClientHeaders): Promise<HttpTypes.AdminNotificationResponse>;
|
8
14
|
list(query?: HttpTypes.AdminNotificationListParams, headers?: ClientHeaders): Promise<HttpTypes.AdminNotificationListResponse>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["../../src/admin/notification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC,qBAAa,YAAY;IACvB,OAAO,CAAC,MAAM,CAAQ;
|
1
|
+
{"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["../../src/admin/notification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC,qBAAa,YAAY;IACvB;;OAEG;IACH,OAAO,CAAC,MAAM,CAAQ;IACtB;;OAEG;gBACS,MAAM,EAAE,MAAM;IAIpB,QAAQ,CACZ,EAAE,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,SAAS,CAAC,uBAAuB,EACzC,OAAO,CAAC,EAAE,aAAa;IAYnB,IAAI,CACR,KAAK,CAAC,EAAE,SAAS,CAAC,2BAA2B,EAC7C,OAAO,CAAC,EAAE,aAAa;CAW1B"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"notification.js","sourceRoot":"","sources":["../../src/admin/notification.ts"],"names":[],"mappings":";;;AAIA,MAAa,YAAY;
|
1
|
+
{"version":3,"file":"notification.js","sourceRoot":"","sources":["../../src/admin/notification.ts"],"names":[],"mappings":";;;AAIA,MAAa,YAAY;IAKvB;;OAEG;IACH,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAED,KAAK,CAAC,QAAQ,CACZ,EAAU,EACV,KAAyC,EACzC,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,wBAAwB,EAAE,EAAE,EAC5B;YACE,MAAM,EAAE,KAAK;YACb,OAAO;YACP,KAAK;SACN,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,IAAI,CACR,KAA6C,EAC7C,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,sBAAsB,EACtB;YACE,MAAM,EAAE,KAAK;YACb,OAAO;YACP,KAAK;SACN,CACF,CAAA;IACH,CAAC;CACF;AAxCD,oCAwCC"}
|
@@ -2,7 +2,13 @@ import { HttpTypes } from "@medusajs/types";
|
|
2
2
|
import { Client } from "../client";
|
3
3
|
import { ClientHeaders } from "../types";
|
4
4
|
export declare class OrderEdit {
|
5
|
+
/**
|
6
|
+
* @ignore
|
7
|
+
*/
|
5
8
|
private client;
|
9
|
+
/**
|
10
|
+
* @ignore
|
11
|
+
*/
|
6
12
|
constructor(client: Client);
|
7
13
|
initiateRequest(body: HttpTypes.AdminInitiateOrderEditRequest, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminOrderEditPreviewResponse>;
|
8
14
|
request(id: string, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminOrderEditPreviewResponse>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"order-edit.d.ts","sourceRoot":"","sources":["../../src/admin/order-edit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC,qBAAa,SAAS;IACpB,OAAO,CAAC,MAAM,CAAQ;
|
1
|
+
{"version":3,"file":"order-edit.d.ts","sourceRoot":"","sources":["../../src/admin/order-edit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC,qBAAa,SAAS;IACpB;;OAEG;IACH,OAAO,CAAC,MAAM,CAAQ;IACtB;;OAEG;gBACS,MAAM,EAAE,MAAM;IAIpB,eAAe,CACnB,IAAI,EAAE,SAAS,CAAC,6BAA6B,EAC7C,KAAK,CAAC,EAAE,SAAS,CAAC,YAAY,EAC9B,OAAO,CAAC,EAAE,aAAa;IAanB,OAAO,CACX,EAAE,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,SAAS,CAAC,YAAY,EAC9B,OAAO,CAAC,EAAE,aAAa;IAYnB,OAAO,CACX,EAAE,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,SAAS,CAAC,YAAY,EAC9B,OAAO,CAAC,EAAE,aAAa;IAYnB,aAAa,CACjB,EAAE,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,SAAS,CAAC,YAAY,EAC9B,OAAO,CAAC,EAAE,aAAa;IAYnB,QAAQ,CACZ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,SAAS,CAAC,sBAAsB,EACtC,KAAK,CAAC,EAAE,SAAS,CAAC,YAAY,EAC9B,OAAO,CAAC,EAAE,aAAa;IAanB,kBAAkB,CACtB,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,SAAS,CAAC,wBAAwB,EACxC,KAAK,CAAC,EAAE,SAAS,CAAC,YAAY,EAC9B,OAAO,CAAC,EAAE,aAAa;IAanB,eAAe,CACnB,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,SAAS,CAAC,wBAAwB,EACxC,KAAK,CAAC,EAAE,SAAS,CAAC,YAAY,EAC9B,OAAO,CAAC,EAAE,aAAa;IAanB,eAAe,CACnB,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,MAAM,EAChB,KAAK,CAAC,EAAE,SAAS,CAAC,YAAY,EAC9B,OAAO,CAAC,EAAE,aAAa;CAW1B"}
|
package/dist/admin/order-edit.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"order-edit.js","sourceRoot":"","sources":["../../src/admin/order-edit.ts"],"names":[],"mappings":";;;AAIA,MAAa,SAAS;
|
1
|
+
{"version":3,"file":"order-edit.js","sourceRoot":"","sources":["../../src/admin/order-edit.ts"],"names":[],"mappings":";;;AAIA,MAAa,SAAS;IAKpB;;OAEG;IACH,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAED,KAAK,CAAC,eAAe,CACnB,IAA6C,EAC7C,KAA8B,EAC9B,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,oBAAoB,EACpB;YACE,MAAM,EAAE,MAAM;YACd,OAAO;YACP,IAAI;YACJ,KAAK;SACN,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,OAAO,CACX,EAAU,EACV,KAA8B,EAC9B,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,sBAAsB,EAAE,UAAU,EAClC;YACE,MAAM,EAAE,MAAM;YACd,OAAO;YACP,KAAK;SACN,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,OAAO,CACX,EAAU,EACV,KAA8B,EAC9B,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,sBAAsB,EAAE,UAAU,EAClC;YACE,MAAM,EAAE,MAAM;YACd,OAAO;YACP,KAAK;SACN,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,aAAa,CACjB,EAAU,EACV,KAA8B,EAC9B,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,sBAAsB,EAAE,EAAE,EAC1B;YACE,MAAM,EAAE,QAAQ;YAChB,OAAO;YACP,KAAK;SACN,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,QAAQ,CACZ,EAAU,EACV,IAAsC,EACtC,KAA8B,EAC9B,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,sBAAsB,EAAE,QAAQ,EAChC;YACE,MAAM,EAAE,MAAM;YACd,OAAO;YACP,IAAI;YACJ,KAAK;SACN,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,kBAAkB,CACtB,EAAU,EACV,MAAc,EACd,IAAwC,EACxC,KAA8B,EAC9B,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,sBAAsB,EAAE,eAAe,MAAM,EAAE,EAC/C;YACE,MAAM,EAAE,MAAM;YACd,OAAO;YACP,IAAI;YACJ,KAAK;SACN,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,eAAe,CACnB,EAAU,EACV,QAAgB,EAChB,IAAwC,EACxC,KAA8B,EAC9B,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,sBAAsB,EAAE,UAAU,QAAQ,EAAE,EAC5C;YACE,MAAM,EAAE,MAAM;YACd,OAAO;YACP,IAAI;YACJ,KAAK;SACN,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,eAAe,CACnB,EAAU,EACV,QAAgB,EAChB,KAA8B,EAC9B,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,sBAAsB,EAAE,UAAU,QAAQ,EAAE,EAC5C;YACE,MAAM,EAAE,QAAQ;YAChB,OAAO;YACP,KAAK;SACN,CACF,CAAA;IACH,CAAC;CACF;AA7ID,8BA6IC"}
|
package/dist/admin/order.d.ts
CHANGED
@@ -2,7 +2,13 @@ import { FindParams, HttpTypes, SelectParams } from "@medusajs/types";
|
|
2
2
|
import { Client } from "../client";
|
3
3
|
import { ClientHeaders } from "../types";
|
4
4
|
export declare class Order {
|
5
|
+
/**
|
6
|
+
* @ignore
|
7
|
+
*/
|
5
8
|
private client;
|
9
|
+
/**
|
10
|
+
* @ignore
|
11
|
+
*/
|
6
12
|
constructor(client: Client);
|
7
13
|
retrieve(id: string, query?: SelectParams, headers?: ClientHeaders): Promise<{
|
8
14
|
order: HttpTypes.AdminOrder;
|
@@ -27,5 +33,6 @@ export declare class Order {
|
|
27
33
|
order: HttpTypes.AdminOrder;
|
28
34
|
}>;
|
29
35
|
listChanges(id: string, queryParams?: FindParams & HttpTypes.AdminOrderChangesFilters, headers?: ClientHeaders): Promise<HttpTypes.PaginatedResponse<HttpTypes.AdminOrderChangesResponse>>;
|
36
|
+
listLineItems(id: string, queryParams?: FindParams & HttpTypes.AdminOrderItemsFilters, headers?: ClientHeaders): Promise<HttpTypes.PaginatedResponse<HttpTypes.AdminOrderLineItemsListResponse>>;
|
30
37
|
}
|
31
38
|
//# sourceMappingURL=order.d.ts.map
|
@@ -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,OAAO,CAAC,MAAM,CAAQ;
|
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;IAIpB,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,aAAa;eAC9B,SAAS,CAAC,UAAU;;IASxD,eAAe,CACnB,EAAE,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,SAAS,CAAC,iBAAiB,EACnC,OAAO,CAAC,EAAE,aAAa;IAWnB,IAAI,CACR,WAAW,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC,iBAAiB,EACtD,OAAO,CAAC,EAAE,aAAa;gBAGO,SAAS,CAAC,UAAU,EAAE;;IAOhD,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa;eACN,SAAS,CAAC,UAAU;;IASxD,iBAAiB,CACrB,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,SAAS,CAAC,2BAA2B,EAC3C,KAAK,CAAC,EAAE,YAAY,EACpB,OAAO,CAAC,EAAE,aAAa;eAEiB,SAAS,CAAC,UAAU;;IAWxD,iBAAiB,CACrB,EAAE,EAAE,MAAM,EACV,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,SAAS,CAAC,2BAA2B,EAC3C,OAAO,CAAC,EAAE,aAAa;eAEiB,SAAS,CAAC,UAAU;;IAUxD,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;eAEiB,SAAS,CAAC,UAAU;;IAWxD,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;eAEiB,SAAS,CAAC,UAAU;;IAWxD,WAAW,CACf,EAAE,EAAE,MAAM,EACV,WAAW,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC,wBAAwB,EAC7D,OAAO,CAAC,EAAE,aAAa;IAUnB,aAAa,CACjB,EAAE,EAAE,MAAM,EACV,WAAW,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC,sBAAsB,EAC3D,OAAO,CAAC,EAAE,aAAa;CAS1B"}
|
package/dist/admin/order.js
CHANGED
@@ -2,6 +2,9 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.Order = void 0;
|
4
4
|
class Order {
|
5
|
+
/**
|
6
|
+
* @ignore
|
7
|
+
*/
|
5
8
|
constructor(client) {
|
6
9
|
this.client = client;
|
7
10
|
}
|
@@ -66,6 +69,12 @@ class Order {
|
|
66
69
|
headers,
|
67
70
|
});
|
68
71
|
}
|
72
|
+
async listLineItems(id, queryParams, headers) {
|
73
|
+
return await this.client.fetch(`/admin/orders/${id}/line-items`, {
|
74
|
+
query: queryParams,
|
75
|
+
headers,
|
76
|
+
});
|
77
|
+
}
|
69
78
|
}
|
70
79
|
exports.Order = Order;
|
71
80
|
//# sourceMappingURL=order.js.map
|
package/dist/admin/order.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"order.js","sourceRoot":"","sources":["../../src/admin/order.ts"],"names":[],"mappings":";;;AAWA,MAAa,KAAK;
|
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,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,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,KAAK,CAAC,IAAI,CACR,WAAsD,EACtD,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAE5B,eAAe,EAAE;YACjB,KAAK,EAAE,WAAW;YAClB,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,EAAU,EAAE,OAAuB;QAC9C,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,iBAAiB,EAAE,SAAS,EAC5B;YACE,MAAM,EAAE,MAAM;YACd,OAAO;SACR,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,iBAAiB,CACrB,EAAU,EACV,IAA2C,EAC3C,KAAoB,EACpB,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,iBAAiB,EAAE,eAAe,EAClC;YACE,MAAM,EAAE,MAAM;YACd,OAAO;YACP,IAAI;YACJ,KAAK;SACN,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,iBAAiB,CACrB,EAAU,EACV,aAAqB,EACrB,IAA2C,EAC3C,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,iBAAiB,EAAE,iBAAiB,aAAa,SAAS,EAC1D;YACE,MAAM,EAAE,MAAM;YACd,OAAO;YACP,IAAI;SACL,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,cAAc,CAClB,EAAU,EACV,aAAqB,EACrB,IAAwC,EACxC,KAAoB,EACpB,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,iBAAiB,EAAE,iBAAiB,aAAa,YAAY,EAC7D;YACE,MAAM,EAAE,MAAM;YACd,OAAO;YACP,IAAI;YACJ,KAAK;SACN,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,eAAe,CACnB,EAAU,EACV,aAAqB,EACrB,IAAoD,EACpD,KAAoB,EACpB,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,iBAAiB,EAAE,iBAAiB,aAAa,oBAAoB,EACrE;YACE,MAAM,EAAE,MAAM;YACd,OAAO;YACP,IAAI;YACJ,KAAK;SACN,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,WAAW,CACf,EAAU,EACV,WAA6D,EAC7D,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAE5B,iBAAiB,EAAE,UAAU,EAAE;YAC/B,KAAK,EAAE,WAAW;YAClB,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;IAED,KAAK,CAAC,aAAa,CACjB,EAAU,EACV,WAA2D,EAC3D,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAE5B,iBAAiB,EAAE,aAAa,EAAE;YAClC,KAAK,EAAE,WAAW;YAClB,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;CACF;AAxJD,sBAwJC"}
|
@@ -2,7 +2,13 @@ import { HttpTypes, SelectParams } from "@medusajs/types";
|
|
2
2
|
import { Client } from "../client";
|
3
3
|
import { ClientHeaders } from "../types";
|
4
4
|
export declare class PaymentCollection {
|
5
|
+
/**
|
6
|
+
* @ignore
|
7
|
+
*/
|
5
8
|
private client;
|
9
|
+
/**
|
10
|
+
* @ignore
|
11
|
+
*/
|
6
12
|
constructor(client: Client);
|
7
13
|
list(query?: HttpTypes.AdminPaymentCollectionFilters, headers?: ClientHeaders): Promise<HttpTypes.AdminPaymentCollectionsResponse>;
|
8
14
|
retrieve(id: string, query?: HttpTypes.AdminPaymentCollectionFilters, headers?: ClientHeaders): Promise<HttpTypes.AdminPaymentCollectionResponse>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"payment-collection.d.ts","sourceRoot":"","sources":["../../src/admin/payment-collection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,MAAM,CAAQ;
|
1
|
+
{"version":3,"file":"payment-collection.d.ts","sourceRoot":"","sources":["../../src/admin/payment-collection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC,qBAAa,iBAAiB;IAC5B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAQ;IACtB;;OAEG;gBACS,MAAM,EAAE,MAAM;IAIpB,IAAI,CACR,KAAK,CAAC,EAAE,SAAS,CAAC,6BAA6B,EAC/C,OAAO,CAAC,EAAE,aAAa;IAWnB,QAAQ,CACZ,EAAE,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,SAAS,CAAC,6BAA6B,EAC/C,OAAO,CAAC,EAAE,aAAa;IAWnB,MAAM,CACV,IAAI,EAAE,SAAS,CAAC,4BAA4B,EAC5C,KAAK,CAAC,EAAE,YAAY,EACpB,OAAO,CAAC,EAAE,aAAa;IAanB,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa;IAU1C,UAAU,CACd,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,SAAS,CAAC,gCAAgC,EAChD,KAAK,CAAC,EAAE,YAAY,EACpB,OAAO,CAAC,EAAE,aAAa;CAY1B"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"payment-collection.js","sourceRoot":"","sources":["../../src/admin/payment-collection.ts"],"names":[],"mappings":";;;AAIA,MAAa,iBAAiB;
|
1
|
+
{"version":3,"file":"payment-collection.js","sourceRoot":"","sources":["../../src/admin/payment-collection.ts"],"names":[],"mappings":";;;AAIA,MAAa,iBAAiB;IAK5B;;OAEG;IACH,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAED,KAAK,CAAC,IAAI,CACR,KAA+C,EAC/C,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,4BAA4B,EAC5B;YACE,KAAK;YACL,OAAO;SACR,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,QAAQ,CACZ,EAAU,EACV,KAA+C,EAC/C,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,8BAA8B,EAAE,EAAE,EAClC;YACE,KAAK;YACL,OAAO;SACR,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,MAAM,CACV,IAA4C,EAC5C,KAAoB,EACpB,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,4BAA4B,EAC5B;YACE,MAAM,EAAE,MAAM;YACd,OAAO;YACP,IAAI;YACJ,KAAK;SACN,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,EAAU,EAAE,OAAuB;QAC9C,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,8BAA8B,EAAE,EAAE,EAClC;YACE,MAAM,EAAE,QAAQ;YAChB,OAAO;SACR,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,UAAU,CACd,EAAU,EACV,IAAgD,EAChD,KAAoB,EACpB,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,8BAA8B,EAAE,eAAe,EAC/C;YACE,MAAM,EAAE,MAAM;YACd,OAAO;YACP,IAAI;YACJ,KAAK;SACN,CACF,CAAA;IACH,CAAC;CACF;AAjFD,8CAiFC"}
|
package/dist/admin/payment.d.ts
CHANGED
@@ -2,7 +2,13 @@ import { HttpTypes, SelectParams } from "@medusajs/types";
|
|
2
2
|
import { Client } from "../client";
|
3
3
|
import { ClientHeaders } from "../types";
|
4
4
|
export declare class Payment {
|
5
|
+
/**
|
6
|
+
* @ignore
|
7
|
+
*/
|
5
8
|
private client;
|
9
|
+
/**
|
10
|
+
* @ignore
|
11
|
+
*/
|
6
12
|
constructor(client: Client);
|
7
13
|
list(query?: HttpTypes.AdminPaymentFilters, headers?: ClientHeaders): Promise<HttpTypes.AdminPaymentsResponse>;
|
8
14
|
listPaymentProviders(query?: HttpTypes.AdminGetPaymentProvidersParams, headers?: ClientHeaders): Promise<HttpTypes.AdminPaymentProviderListResponse>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"payment.d.ts","sourceRoot":"","sources":["../../src/admin/payment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC,qBAAa,OAAO;IAClB,OAAO,CAAC,MAAM,CAAQ;
|
1
|
+
{"version":3,"file":"payment.d.ts","sourceRoot":"","sources":["../../src/admin/payment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC,qBAAa,OAAO;IAClB;;OAEG;IACH,OAAO,CAAC,MAAM,CAAQ;IACtB;;OAEG;gBACS,MAAM,EAAE,MAAM;IAIpB,IAAI,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC,mBAAmB,EAAE,OAAO,CAAC,EAAE,aAAa;IAUnE,oBAAoB,CACxB,KAAK,CAAC,EAAE,SAAS,CAAC,8BAA8B,EAChD,OAAO,CAAC,EAAE,aAAa;IAWnB,QAAQ,CACZ,EAAE,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,SAAS,CAAC,mBAAmB,EACrC,OAAO,CAAC,EAAE,aAAa;IAWnB,OAAO,CACX,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,SAAS,CAAC,mBAAmB,EACnC,KAAK,CAAC,EAAE,YAAY,EACpB,OAAO,CAAC,EAAE,aAAa;IAanB,MAAM,CACV,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,SAAS,CAAC,kBAAkB,EAClC,KAAK,CAAC,EAAE,YAAY,EACpB,OAAO,CAAC,EAAE,aAAa;CAY1B"}
|