@mercurjs/types 2.0.0-canary.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commission/common.d.ts +127 -0
- package/dist/commission/common.d.ts.map +1 -0
- package/dist/commission/common.js +13 -0
- package/dist/commission/index.d.ts +3 -0
- package/dist/commission/index.d.ts.map +1 -0
- package/dist/commission/index.js +18 -0
- package/dist/commission/mutations.d.ts +36 -0
- package/dist/commission/mutations.d.ts.map +1 -0
- package/dist/commission/mutations.js +2 -0
- package/dist/http/campaign.d.ts +10 -0
- package/dist/http/campaign.d.ts.map +1 -0
- package/dist/http/campaign.js +2 -0
- package/dist/http/collection.d.ts +14 -0
- package/dist/http/collection.d.ts.map +1 -0
- package/dist/http/collection.js +2 -0
- package/dist/http/commission.d.ts +15 -0
- package/dist/http/commission.d.ts.map +1 -0
- package/dist/http/commission.js +2 -0
- package/dist/http/currency.d.ts +9 -0
- package/dist/http/currency.d.ts.map +1 -0
- package/dist/http/currency.js +2 -0
- package/dist/http/customer.d.ts +14 -0
- package/dist/http/customer.d.ts.map +1 -0
- package/dist/http/customer.js +2 -0
- package/dist/http/fulfillment-set.d.ts +28 -0
- package/dist/http/fulfillment-set.d.ts.map +1 -0
- package/dist/http/fulfillment-set.js +2 -0
- package/dist/http/index.d.ts +31 -0
- package/dist/http/index.d.ts.map +1 -0
- package/dist/http/index.js +47 -0
- package/dist/http/inventory-item.d.ts +25 -0
- package/dist/http/inventory-item.d.ts.map +1 -0
- package/dist/http/inventory-item.js +2 -0
- package/dist/http/order-group.d.ts +53 -0
- package/dist/http/order-group.d.ts.map +1 -0
- package/dist/http/order-group.js +2 -0
- package/dist/http/order.d.ts +32 -0
- package/dist/http/order.d.ts.map +1 -0
- package/dist/http/order.js +2 -0
- package/dist/http/payment.d.ts +20 -0
- package/dist/http/payment.d.ts.map +1 -0
- package/dist/http/payment.js +2 -0
- package/dist/http/payout.d.ts +30 -0
- package/dist/http/payout.d.ts.map +1 -0
- package/dist/http/payout.js +2 -0
- package/dist/http/price-list.d.ts +22 -0
- package/dist/http/price-list.d.ts.map +1 -0
- package/dist/http/price-list.js +2 -0
- package/dist/http/price-preference.d.ts +14 -0
- package/dist/http/price-preference.d.ts.map +1 -0
- package/dist/http/price-preference.js +2 -0
- package/dist/http/product-category.d.ts +20 -0
- package/dist/http/product-category.d.ts.map +1 -0
- package/dist/http/product-category.js +2 -0
- package/dist/http/product-tag.d.ts +14 -0
- package/dist/http/product-tag.d.ts.map +1 -0
- package/dist/http/product-tag.js +2 -0
- package/dist/http/product-type.d.ts +14 -0
- package/dist/http/product-type.d.ts.map +1 -0
- package/dist/http/product-type.js +2 -0
- package/dist/http/product.d.ts +40 -0
- package/dist/http/product.d.ts.map +1 -0
- package/dist/http/product.js +2 -0
- package/dist/http/promotion.d.ts +45 -0
- package/dist/http/promotion.d.ts.map +1 -0
- package/dist/http/promotion.js +2 -0
- package/dist/http/refund-reason.d.ts +14 -0
- package/dist/http/refund-reason.d.ts.map +1 -0
- package/dist/http/refund-reason.js +2 -0
- package/dist/http/return-reason.d.ts +14 -0
- package/dist/http/return-reason.d.ts.map +1 -0
- package/dist/http/return-reason.js +2 -0
- package/dist/http/return.d.ts +35 -0
- package/dist/http/return.d.ts.map +1 -0
- package/dist/http/return.js +2 -0
- package/dist/http/sales-channel.d.ts +14 -0
- package/dist/http/sales-channel.d.ts.map +1 -0
- package/dist/http/sales-channel.js +2 -0
- package/dist/http/seller.d.ts +34 -0
- package/dist/http/seller.d.ts.map +1 -0
- package/dist/http/seller.js +2 -0
- package/dist/http/shipping-option-type.d.ts +14 -0
- package/dist/http/shipping-option-type.d.ts.map +1 -0
- package/dist/http/shipping-option-type.js +2 -0
- package/dist/http/shipping-option.d.ts +39 -0
- package/dist/http/shipping-option.d.ts.map +1 -0
- package/dist/http/shipping-option.js +2 -0
- package/dist/http/shipping-profile.d.ts +15 -0
- package/dist/http/shipping-profile.d.ts.map +1 -0
- package/dist/http/shipping-profile.js +2 -0
- package/dist/http/stock-location.d.ts +14 -0
- package/dist/http/stock-location.d.ts.map +1 -0
- package/dist/http/stock-location.js +2 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +52 -0
- package/dist/modules.d.ts +6 -0
- package/dist/modules.d.ts.map +1 -0
- package/dist/modules.js +9 -0
- package/dist/order-group/common.d.ts +11 -0
- package/dist/order-group/common.d.ts.map +1 -0
- package/dist/order-group/common.js +2 -0
- package/dist/order-group/index.d.ts +3 -0
- package/dist/order-group/index.d.ts.map +1 -0
- package/dist/order-group/index.js +18 -0
- package/dist/order-group/mutation.d.ts +10 -0
- package/dist/order-group/mutation.d.ts.map +1 -0
- package/dist/order-group/mutation.js +2 -0
- package/dist/payout/common.d.ts +80 -0
- package/dist/payout/common.d.ts.map +1 -0
- package/dist/payout/common.js +30 -0
- package/dist/payout/index.d.ts +4 -0
- package/dist/payout/index.d.ts.map +1 -0
- package/dist/payout/index.js +19 -0
- package/dist/payout/mutations.d.ts +34 -0
- package/dist/payout/mutations.d.ts.map +1 -0
- package/dist/payout/mutations.js +2 -0
- package/dist/payout/provider.d.ts +48 -0
- package/dist/payout/provider.d.ts.map +1 -0
- package/dist/payout/provider.js +2 -0
- package/dist/seller/common.d.ts +25 -0
- package/dist/seller/common.d.ts.map +1 -0
- package/dist/seller/common.js +9 -0
- package/dist/seller/index.d.ts +3 -0
- package/dist/seller/index.d.ts.map +1 -0
- package/dist/seller/index.js +18 -0
- package/dist/seller/mutation.d.ts +33 -0
- package/dist/seller/mutation.d.ts.map +1 -0
- package/dist/seller/mutation.js +2 -0
- package/package.json +36 -0
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { BigNumberInput } from "@medusajs/types";
|
|
2
|
+
export declare enum CommissionRateType {
|
|
3
|
+
FIXED = "fixed",
|
|
4
|
+
PERCENTAGE = "percentage"
|
|
5
|
+
}
|
|
6
|
+
export declare enum CommissionRateTarget {
|
|
7
|
+
ITEM = "item",
|
|
8
|
+
SHIPPING = "shipping"
|
|
9
|
+
}
|
|
10
|
+
export type CommissionRuleDTO = {
|
|
11
|
+
id: string;
|
|
12
|
+
reference: string;
|
|
13
|
+
reference_id: string;
|
|
14
|
+
commission_rate_id: string;
|
|
15
|
+
created_at: Date;
|
|
16
|
+
updated_at: Date;
|
|
17
|
+
deleted_at: Date | null;
|
|
18
|
+
};
|
|
19
|
+
export type CommissionLineDTO = {
|
|
20
|
+
id: string;
|
|
21
|
+
item_id: string;
|
|
22
|
+
commission_rate_id: string | null;
|
|
23
|
+
code: string;
|
|
24
|
+
rate: number;
|
|
25
|
+
amount: number;
|
|
26
|
+
description: string | null;
|
|
27
|
+
created_at: Date;
|
|
28
|
+
updated_at: Date;
|
|
29
|
+
deleted_at: Date | null;
|
|
30
|
+
};
|
|
31
|
+
export type CommissionRateDTO = {
|
|
32
|
+
id: string;
|
|
33
|
+
name: string;
|
|
34
|
+
code: string;
|
|
35
|
+
type: CommissionRateType;
|
|
36
|
+
target: CommissionRateTarget;
|
|
37
|
+
value: number;
|
|
38
|
+
currency_code: string | null;
|
|
39
|
+
min_amount: number | null;
|
|
40
|
+
include_tax: boolean;
|
|
41
|
+
is_enabled: boolean;
|
|
42
|
+
priority: number;
|
|
43
|
+
rules?: CommissionRuleDTO[];
|
|
44
|
+
created_at: Date;
|
|
45
|
+
updated_at: Date;
|
|
46
|
+
deleted_at: Date | null;
|
|
47
|
+
};
|
|
48
|
+
export interface CommissionCalculationItemLine {
|
|
49
|
+
/**
|
|
50
|
+
* The ID of the item line.
|
|
51
|
+
*/
|
|
52
|
+
id: string;
|
|
53
|
+
/**
|
|
54
|
+
* The subtotal of the line item (base amount for commission calculation).
|
|
55
|
+
*/
|
|
56
|
+
subtotal: BigNumberInput;
|
|
57
|
+
/**
|
|
58
|
+
* The tax total of the line item (used when include_tax is true).
|
|
59
|
+
*/
|
|
60
|
+
tax_total?: BigNumberInput;
|
|
61
|
+
/**
|
|
62
|
+
* The product of the line item.
|
|
63
|
+
*/
|
|
64
|
+
product?: {
|
|
65
|
+
id: string;
|
|
66
|
+
collection_id?: string;
|
|
67
|
+
tags?: {
|
|
68
|
+
id: string;
|
|
69
|
+
}[];
|
|
70
|
+
categories?: {
|
|
71
|
+
id: string;
|
|
72
|
+
}[];
|
|
73
|
+
type_id?: string;
|
|
74
|
+
seller?: {
|
|
75
|
+
id: string;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
export interface CommissionCalculationShippingLine {
|
|
80
|
+
/**
|
|
81
|
+
* The ID of the shipping line.
|
|
82
|
+
*/
|
|
83
|
+
id: string;
|
|
84
|
+
/**
|
|
85
|
+
* The subtotal of the shipping method.
|
|
86
|
+
*/
|
|
87
|
+
subtotal: BigNumberInput;
|
|
88
|
+
/**
|
|
89
|
+
* The tax total of the shipping method (used when include_tax is true).
|
|
90
|
+
*/
|
|
91
|
+
tax_total?: BigNumberInput;
|
|
92
|
+
/**
|
|
93
|
+
* The shipping option type associated with the shipping method.
|
|
94
|
+
*/
|
|
95
|
+
shipping_option?: {
|
|
96
|
+
/**
|
|
97
|
+
* The ID of the shipping option type associated with the shipping method.
|
|
98
|
+
*/
|
|
99
|
+
shipping_option_type_id?: string;
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
export interface CommissionCalculationContext {
|
|
103
|
+
/**
|
|
104
|
+
* The cart's currency
|
|
105
|
+
*/
|
|
106
|
+
currency_code: string;
|
|
107
|
+
/**
|
|
108
|
+
* The cart's line items.
|
|
109
|
+
*/
|
|
110
|
+
items?: CommissionCalculationItemLine[];
|
|
111
|
+
/**
|
|
112
|
+
* The cart's shipping methods.
|
|
113
|
+
*/
|
|
114
|
+
shipping_methods?: CommissionCalculationShippingLine[];
|
|
115
|
+
}
|
|
116
|
+
export interface CreateCommissionLineDTO {
|
|
117
|
+
item_id: string;
|
|
118
|
+
commission_rate_id: string;
|
|
119
|
+
code: string;
|
|
120
|
+
rate: number;
|
|
121
|
+
amount: number;
|
|
122
|
+
description?: string | null;
|
|
123
|
+
}
|
|
124
|
+
export interface UpdateCommissionLineDTO extends Partial<CreateCommissionLineDTO> {
|
|
125
|
+
id: string;
|
|
126
|
+
}
|
|
127
|
+
//# sourceMappingURL=common.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/commission/common.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CommissionRateTarget = exports.CommissionRateType = void 0;
|
|
4
|
+
var CommissionRateType;
|
|
5
|
+
(function (CommissionRateType) {
|
|
6
|
+
CommissionRateType["FIXED"] = "fixed";
|
|
7
|
+
CommissionRateType["PERCENTAGE"] = "percentage";
|
|
8
|
+
})(CommissionRateType || (exports.CommissionRateType = CommissionRateType = {}));
|
|
9
|
+
var CommissionRateTarget;
|
|
10
|
+
(function (CommissionRateTarget) {
|
|
11
|
+
CommissionRateTarget["ITEM"] = "item";
|
|
12
|
+
CommissionRateTarget["SHIPPING"] = "shipping";
|
|
13
|
+
})(CommissionRateTarget || (exports.CommissionRateTarget = CommissionRateTarget = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/commission/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./common"), exports);
|
|
18
|
+
__exportStar(require("./mutations"), exports);
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { CommissionRateType, CommissionRateTarget } from "./common";
|
|
2
|
+
export interface CreateCommissionRuleDTO {
|
|
3
|
+
reference: string;
|
|
4
|
+
reference_id: string;
|
|
5
|
+
}
|
|
6
|
+
export interface UpdateCommissionRuleDTO {
|
|
7
|
+
id: string;
|
|
8
|
+
reference?: string;
|
|
9
|
+
reference_id?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface CreateCommissionRateDTO {
|
|
12
|
+
name: string;
|
|
13
|
+
code: string;
|
|
14
|
+
type: CommissionRateType;
|
|
15
|
+
target?: CommissionRateTarget;
|
|
16
|
+
value: number;
|
|
17
|
+
currency_code?: string | null;
|
|
18
|
+
min_amount?: number | null;
|
|
19
|
+
include_tax?: boolean;
|
|
20
|
+
is_enabled?: boolean;
|
|
21
|
+
priority?: number;
|
|
22
|
+
}
|
|
23
|
+
export interface UpdateCommissionRateDTO {
|
|
24
|
+
id: string;
|
|
25
|
+
name?: string;
|
|
26
|
+
code?: string;
|
|
27
|
+
type?: CommissionRateType;
|
|
28
|
+
target?: CommissionRateTarget;
|
|
29
|
+
value?: number;
|
|
30
|
+
currency_code?: string | null;
|
|
31
|
+
min_amount?: number | null;
|
|
32
|
+
include_tax?: boolean;
|
|
33
|
+
is_enabled?: boolean;
|
|
34
|
+
priority?: number;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=mutations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../src/commission/mutations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAEnE,MAAM,WAAW,uBAAuB;IACtC,SAAS,EAAE,MAAM,CAAA;IACjB,YAAY,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,kBAAkB,CAAA;IACxB,MAAM,CAAC,EAAE,oBAAoB,CAAA;IAC7B,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,kBAAkB,CAAA;IACzB,MAAM,CAAC,EAAE,oBAAoB,CAAA;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CampaignDTO, DeleteResponse, PaginatedResponse } from "@medusajs/types";
|
|
2
|
+
export type VendorCampaign = CampaignDTO;
|
|
3
|
+
export type VendorCampaignResponse = {
|
|
4
|
+
campaign: VendorCampaign;
|
|
5
|
+
};
|
|
6
|
+
export type VendorCampaignListResponse = PaginatedResponse<{
|
|
7
|
+
campaigns: VendorCampaign[];
|
|
8
|
+
}>;
|
|
9
|
+
export type VendorCampaignDeleteResponse = DeleteResponse<"campaign">;
|
|
10
|
+
//# sourceMappingURL=campaign.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"campaign.d.ts","sourceRoot":"","sources":["../../src/http/campaign.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAEhF,MAAM,MAAM,cAAc,GAAG,WAAW,CAAA;AAExC,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,EAAE,cAAc,CAAA;CACzB,CAAA;AAED,MAAM,MAAM,0BAA0B,GAAG,iBAAiB,CAAC;IACzD,SAAS,EAAE,cAAc,EAAE,CAAA;CAC5B,CAAC,CAAA;AAEF,MAAM,MAAM,4BAA4B,GAAG,cAAc,CAAC,UAAU,CAAC,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PaginatedResponse, ProductCollectionDTO } from "@medusajs/types";
|
|
2
|
+
export interface VendorCollectionResponse {
|
|
3
|
+
/**
|
|
4
|
+
* The collection's details.
|
|
5
|
+
*/
|
|
6
|
+
collection: ProductCollectionDTO;
|
|
7
|
+
}
|
|
8
|
+
export type VendorCollectionListResponse = PaginatedResponse<{
|
|
9
|
+
/**
|
|
10
|
+
* The list of collections.
|
|
11
|
+
*/
|
|
12
|
+
collections: ProductCollectionDTO[];
|
|
13
|
+
}>;
|
|
14
|
+
//# sourceMappingURL=collection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collection.d.ts","sourceRoot":"","sources":["../../src/http/collection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAA;AAEzE,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,UAAU,EAAE,oBAAoB,CAAA;CACjC;AAED,MAAM,MAAM,4BAA4B,GAAG,iBAAiB,CAAC;IAC3D;;OAEG;IACH,WAAW,EAAE,oBAAoB,EAAE,CAAA;CACpC,CAAC,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DeleteResponse, PaginatedResponse } from "@medusajs/types";
|
|
2
|
+
import { CommissionRateDTO, CommissionRuleDTO } from "../commission";
|
|
3
|
+
export interface AdminCommissionRateResponse {
|
|
4
|
+
commission_rate: CommissionRateDTO;
|
|
5
|
+
}
|
|
6
|
+
export type AdminCommissionRateListResponse = PaginatedResponse<{
|
|
7
|
+
commission_rates: CommissionRateDTO[];
|
|
8
|
+
}>;
|
|
9
|
+
export type AdminCommissionRateDeleteResponse = DeleteResponse<"commission_rate">;
|
|
10
|
+
export interface AdminBatchCommissionRulesResponse {
|
|
11
|
+
created: CommissionRuleDTO[];
|
|
12
|
+
updated: CommissionRuleDTO[];
|
|
13
|
+
deleted: string[];
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=commission.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commission.d.ts","sourceRoot":"","sources":["../../src/http/commission.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AACnE,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AAEpE,MAAM,WAAW,2BAA2B;IAC1C,eAAe,EAAE,iBAAiB,CAAA;CACnC;AAED,MAAM,MAAM,+BAA+B,GAAG,iBAAiB,CAAC;IAC9D,gBAAgB,EAAE,iBAAiB,EAAE,CAAA;CACtC,CAAC,CAAA;AAEF,MAAM,MAAM,iCAAiC,GAAG,cAAc,CAAC,iBAAiB,CAAC,CAAA;AAEjF,MAAM,WAAW,iCAAiC;IAChD,OAAO,EAAE,iBAAiB,EAAE,CAAA;IAC5B,OAAO,EAAE,iBAAiB,EAAE,CAAA;IAC5B,OAAO,EAAE,MAAM,EAAE,CAAA;CAClB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CurrencyDTO, PaginatedResponse } from "@medusajs/types";
|
|
2
|
+
export type VendorCurrency = CurrencyDTO;
|
|
3
|
+
export type VendorCurrencyResponse = {
|
|
4
|
+
currency: VendorCurrency;
|
|
5
|
+
};
|
|
6
|
+
export type VendorCurrencyListResponse = PaginatedResponse<{
|
|
7
|
+
currencies: VendorCurrency[];
|
|
8
|
+
}>;
|
|
9
|
+
//# sourceMappingURL=currency.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"currency.d.ts","sourceRoot":"","sources":["../../src/http/currency.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAEhE,MAAM,MAAM,cAAc,GAAG,WAAW,CAAA;AAExC,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,EAAE,cAAc,CAAA;CACzB,CAAA;AAED,MAAM,MAAM,0BAA0B,GAAG,iBAAiB,CAAC;IACzD,UAAU,EAAE,cAAc,EAAE,CAAA;CAC7B,CAAC,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CustomerDTO, PaginatedResponse } from "@medusajs/types";
|
|
2
|
+
export interface VendorCustomerResponse {
|
|
3
|
+
/**
|
|
4
|
+
* The customer's details.
|
|
5
|
+
*/
|
|
6
|
+
customer: CustomerDTO;
|
|
7
|
+
}
|
|
8
|
+
export type VendorCustomerListResponse = PaginatedResponse<{
|
|
9
|
+
/**
|
|
10
|
+
* The list of customers.
|
|
11
|
+
*/
|
|
12
|
+
customers: CustomerDTO[];
|
|
13
|
+
}>;
|
|
14
|
+
//# sourceMappingURL=customer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customer.d.ts","sourceRoot":"","sources":["../../src/http/customer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAEhE,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,QAAQ,EAAE,WAAW,CAAA;CACtB;AAED,MAAM,MAAM,0BAA0B,GAAG,iBAAiB,CAAC;IACzD;;OAEG;IACH,SAAS,EAAE,WAAW,EAAE,CAAA;CACzB,CAAC,CAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { FulfillmentSetDTO, ServiceZoneDTO } from "@medusajs/types";
|
|
2
|
+
export interface VendorFulfillmentSetResponse {
|
|
3
|
+
/**
|
|
4
|
+
* The fulfillment set's details.
|
|
5
|
+
*/
|
|
6
|
+
fulfillment_set: FulfillmentSetDTO;
|
|
7
|
+
}
|
|
8
|
+
export interface VendorServiceZoneResponse {
|
|
9
|
+
/**
|
|
10
|
+
* The service zone's details.
|
|
11
|
+
*/
|
|
12
|
+
service_zone: ServiceZoneDTO;
|
|
13
|
+
}
|
|
14
|
+
export interface VendorServiceZoneDeleteResponse {
|
|
15
|
+
/**
|
|
16
|
+
* The ID of the deleted service zone.
|
|
17
|
+
*/
|
|
18
|
+
id: string;
|
|
19
|
+
/**
|
|
20
|
+
* The type of the deleted resource.
|
|
21
|
+
*/
|
|
22
|
+
object: "service_zone";
|
|
23
|
+
/**
|
|
24
|
+
* Whether the service zone was deleted.
|
|
25
|
+
*/
|
|
26
|
+
deleted: boolean;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=fulfillment-set.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fulfillment-set.d.ts","sourceRoot":"","sources":["../../src/http/fulfillment-set.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAEnE,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,eAAe,EAAE,iBAAiB,CAAA;CACnC;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,YAAY,EAAE,cAAc,CAAA;CAC7B;AAED,MAAM,WAAW,+BAA+B;IAC9C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,MAAM,EAAE,cAAc,CAAA;IACtB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAA;CACjB"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export { HttpTypes as MedusaHttpTypes } from "@medusajs/types";
|
|
2
|
+
export * from "@medusajs/types/dist/http";
|
|
3
|
+
export * from "./campaign";
|
|
4
|
+
export * from "./collection";
|
|
5
|
+
export * from "./currency";
|
|
6
|
+
export * from "./customer";
|
|
7
|
+
export * from "./fulfillment-set";
|
|
8
|
+
export * from "./inventory-item";
|
|
9
|
+
export * from "./seller";
|
|
10
|
+
export * from "./order";
|
|
11
|
+
export * from "./order-group";
|
|
12
|
+
export * from "./payment";
|
|
13
|
+
export * from "./price-list";
|
|
14
|
+
export * from "./price-preference";
|
|
15
|
+
export * from "./product";
|
|
16
|
+
export * from "./promotion";
|
|
17
|
+
export * from "./product-category";
|
|
18
|
+
export * from "./product-tag";
|
|
19
|
+
export * from "./product-type";
|
|
20
|
+
export * from "./refund-reason";
|
|
21
|
+
export * from "./return";
|
|
22
|
+
export * from "./return-reason";
|
|
23
|
+
export * from "./sales-channel";
|
|
24
|
+
export * from "./shipping-option";
|
|
25
|
+
export * from "./shipping-option-type";
|
|
26
|
+
export * from "./shipping-profile";
|
|
27
|
+
export * from "./stock-location";
|
|
28
|
+
export * from "./payout";
|
|
29
|
+
export * from "./commission";
|
|
30
|
+
export { StoreCompleteCartResponse } from "./order-group";
|
|
31
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/http/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAE9D,cAAc,2BAA2B,CAAA;AACzC,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA;AAC5B,cAAc,oBAAoB,CAAA;AAClC,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA;AAC3B,cAAc,oBAAoB,CAAA;AAClC,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,UAAU,CAAA;AACxB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,wBAAwB,CAAA;AACtC,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,UAAU,CAAA;AACxB,cAAc,cAAc,CAAA;AAE5B,OAAO,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.MedusaHttpTypes = void 0;
|
|
18
|
+
var types_1 = require("@medusajs/types");
|
|
19
|
+
Object.defineProperty(exports, "MedusaHttpTypes", { enumerable: true, get: function () { return types_1.HttpTypes; } });
|
|
20
|
+
__exportStar(require("@medusajs/types/dist/http"), exports);
|
|
21
|
+
__exportStar(require("./campaign"), exports);
|
|
22
|
+
__exportStar(require("./collection"), exports);
|
|
23
|
+
__exportStar(require("./currency"), exports);
|
|
24
|
+
__exportStar(require("./customer"), exports);
|
|
25
|
+
__exportStar(require("./fulfillment-set"), exports);
|
|
26
|
+
__exportStar(require("./inventory-item"), exports);
|
|
27
|
+
__exportStar(require("./seller"), exports);
|
|
28
|
+
__exportStar(require("./order"), exports);
|
|
29
|
+
__exportStar(require("./order-group"), exports);
|
|
30
|
+
__exportStar(require("./payment"), exports);
|
|
31
|
+
__exportStar(require("./price-list"), exports);
|
|
32
|
+
__exportStar(require("./price-preference"), exports);
|
|
33
|
+
__exportStar(require("./product"), exports);
|
|
34
|
+
__exportStar(require("./promotion"), exports);
|
|
35
|
+
__exportStar(require("./product-category"), exports);
|
|
36
|
+
__exportStar(require("./product-tag"), exports);
|
|
37
|
+
__exportStar(require("./product-type"), exports);
|
|
38
|
+
__exportStar(require("./refund-reason"), exports);
|
|
39
|
+
__exportStar(require("./return"), exports);
|
|
40
|
+
__exportStar(require("./return-reason"), exports);
|
|
41
|
+
__exportStar(require("./sales-channel"), exports);
|
|
42
|
+
__exportStar(require("./shipping-option"), exports);
|
|
43
|
+
__exportStar(require("./shipping-option-type"), exports);
|
|
44
|
+
__exportStar(require("./shipping-profile"), exports);
|
|
45
|
+
__exportStar(require("./stock-location"), exports);
|
|
46
|
+
__exportStar(require("./payout"), exports);
|
|
47
|
+
__exportStar(require("./commission"), exports);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { DeleteResponse, InventoryItemDTO, InventoryLevelDTO, PaginatedResponse } from "@medusajs/types";
|
|
2
|
+
export type VendorInventoryItem = InventoryItemDTO;
|
|
3
|
+
export type VendorInventoryLevel = InventoryLevelDTO;
|
|
4
|
+
export type VendorInventoryItemResponse = {
|
|
5
|
+
inventory_item: VendorInventoryItem;
|
|
6
|
+
};
|
|
7
|
+
export type VendorInventoryItemListResponse = PaginatedResponse<{
|
|
8
|
+
inventory_items: VendorInventoryItem[];
|
|
9
|
+
}>;
|
|
10
|
+
export type VendorInventoryItemDeleteResponse = DeleteResponse<"inventory_item">;
|
|
11
|
+
export type VendorInventoryLevelListResponse = PaginatedResponse<{
|
|
12
|
+
inventory_levels: VendorInventoryLevel[];
|
|
13
|
+
}>;
|
|
14
|
+
export type VendorInventoryLevelDeleteResponse = {
|
|
15
|
+
id: string;
|
|
16
|
+
object: "inventory-level";
|
|
17
|
+
deleted: true;
|
|
18
|
+
parent: VendorInventoryItem;
|
|
19
|
+
};
|
|
20
|
+
export type VendorBatchInventoryItemLevelResponse = {
|
|
21
|
+
created: InventoryLevelDTO[];
|
|
22
|
+
updated: InventoryLevelDTO[];
|
|
23
|
+
deleted: string[];
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=inventory-item.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inventory-item.d.ts","sourceRoot":"","sources":["../../src/http/inventory-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAExG,MAAM,MAAM,mBAAmB,GAAG,gBAAgB,CAAA;AAElD,MAAM,MAAM,oBAAoB,GAAG,iBAAiB,CAAA;AAEpD,MAAM,MAAM,2BAA2B,GAAG;IACxC,cAAc,EAAE,mBAAmB,CAAA;CACpC,CAAA;AAED,MAAM,MAAM,+BAA+B,GAAG,iBAAiB,CAAC;IAC9D,eAAe,EAAE,mBAAmB,EAAE,CAAA;CACvC,CAAC,CAAA;AAEF,MAAM,MAAM,iCAAiC,GAAG,cAAc,CAAC,gBAAgB,CAAC,CAAA;AAEhF,MAAM,MAAM,gCAAgC,GAAG,iBAAiB,CAAC;IAC/D,gBAAgB,EAAE,oBAAoB,EAAE,CAAA;CACzC,CAAC,CAAA;AAEF,MAAM,MAAM,kCAAkC,GAAG;IAC/C,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,iBAAiB,CAAA;IACzB,OAAO,EAAE,IAAI,CAAA;IACb,MAAM,EAAE,mBAAmB,CAAA;CAC5B,CAAA;AAED,MAAM,MAAM,qCAAqC,GAAG;IAClD,OAAO,EAAE,iBAAiB,EAAE,CAAA;IAC5B,OAAO,EAAE,iBAAiB,EAAE,CAAA;IAC5B,OAAO,EAAE,MAAM,EAAE,CAAA;CAClB,CAAA"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { DeleteResponse, PaginatedResponse } from "@medusajs/types";
|
|
2
|
+
import { OrderGroupDTO } from "../order-group";
|
|
3
|
+
export interface VendorOrderGroupResponse {
|
|
4
|
+
/**
|
|
5
|
+
* The order group's details.
|
|
6
|
+
*/
|
|
7
|
+
order_group: OrderGroupDTO;
|
|
8
|
+
}
|
|
9
|
+
export type VendorOrderGroupListResponse = PaginatedResponse<{
|
|
10
|
+
/**
|
|
11
|
+
* The list of order groups.
|
|
12
|
+
*/
|
|
13
|
+
order_groups: OrderGroupDTO[];
|
|
14
|
+
}>;
|
|
15
|
+
export type VendorOrderGroupDeleteResponse = DeleteResponse<"order_group">;
|
|
16
|
+
export interface AdminOrderGroupResponse {
|
|
17
|
+
/**
|
|
18
|
+
* The order group's details.
|
|
19
|
+
*/
|
|
20
|
+
order_group: OrderGroupDTO;
|
|
21
|
+
}
|
|
22
|
+
export type AdminOrderGroupListResponse = PaginatedResponse<{
|
|
23
|
+
/**
|
|
24
|
+
* The list of order groups.
|
|
25
|
+
*/
|
|
26
|
+
order_groups: OrderGroupDTO[];
|
|
27
|
+
}>;
|
|
28
|
+
export type AdminOrderGroupDeleteResponse = DeleteResponse<"order_group">;
|
|
29
|
+
export interface StoreOrderGroupResponse {
|
|
30
|
+
/**
|
|
31
|
+
* The order group's details.
|
|
32
|
+
*/
|
|
33
|
+
order_group: OrderGroupDTO;
|
|
34
|
+
}
|
|
35
|
+
export type StoreOrderGroupListResponse = PaginatedResponse<{
|
|
36
|
+
/**
|
|
37
|
+
* The list of order groups.
|
|
38
|
+
*/
|
|
39
|
+
order_groups: OrderGroupDTO[];
|
|
40
|
+
}>;
|
|
41
|
+
export type StoreCompleteCartResponse = {
|
|
42
|
+
type: "order_group";
|
|
43
|
+
order_group: OrderGroupDTO;
|
|
44
|
+
} | {
|
|
45
|
+
type: "cart";
|
|
46
|
+
cart: any;
|
|
47
|
+
error: {
|
|
48
|
+
message: string;
|
|
49
|
+
name: string;
|
|
50
|
+
type: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=order-group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"order-group.d.ts","sourceRoot":"","sources":["../../src/http/order-group.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAE9C,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,WAAW,EAAE,aAAa,CAAA;CAC3B;AAED,MAAM,MAAM,4BAA4B,GAAG,iBAAiB,CAAC;IAC3D;;OAEG;IACH,YAAY,EAAE,aAAa,EAAE,CAAA;CAC9B,CAAC,CAAA;AAEF,MAAM,MAAM,8BAA8B,GAAG,cAAc,CAAC,aAAa,CAAC,CAAA;AAE1E,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,WAAW,EAAE,aAAa,CAAA;CAC3B;AAED,MAAM,MAAM,2BAA2B,GAAG,iBAAiB,CAAC;IAC1D;;OAEG;IACH,YAAY,EAAE,aAAa,EAAE,CAAA;CAC9B,CAAC,CAAA;AAEF,MAAM,MAAM,6BAA6B,GAAG,cAAc,CAAC,aAAa,CAAC,CAAA;AAEzE,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,WAAW,EAAE,aAAa,CAAA;CAC3B;AAED,MAAM,MAAM,2BAA2B,GAAG,iBAAiB,CAAC;IAC1D;;OAEG;IACH,YAAY,EAAE,aAAa,EAAE,CAAA;CAC9B,CAAC,CAAA;AAEF,MAAM,MAAM,yBAAyB,GACjC;IACE,IAAI,EAAE,aAAa,CAAA;IACnB,WAAW,EAAE,aAAa,CAAA;CAC3B,GACD;IACE,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,GAAG,CAAA;IACT,KAAK,EAAE;QACL,OAAO,EAAE,MAAM,CAAA;QACf,IAAI,EAAE,MAAM,CAAA;QACZ,IAAI,EAAE,MAAM,CAAA;KACb,CAAA;CACF,CAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { FulfillmentDTO, OrderChangeDTO, OrderDTO, OrderPreviewDTO, PaginatedResponse } from "@medusajs/types";
|
|
2
|
+
export interface VendorOrderResponse {
|
|
3
|
+
/**
|
|
4
|
+
* The order's details.
|
|
5
|
+
*/
|
|
6
|
+
order: OrderDTO;
|
|
7
|
+
}
|
|
8
|
+
export type VendorOrderListResponse = PaginatedResponse<{
|
|
9
|
+
/**
|
|
10
|
+
* The list of orders.
|
|
11
|
+
*/
|
|
12
|
+
orders: OrderDTO[];
|
|
13
|
+
}>;
|
|
14
|
+
export interface VendorOrderPreviewResponse {
|
|
15
|
+
/**
|
|
16
|
+
* The order preview details.
|
|
17
|
+
*/
|
|
18
|
+
order: OrderPreviewDTO;
|
|
19
|
+
}
|
|
20
|
+
export interface VendorOrderChangesResponse {
|
|
21
|
+
/**
|
|
22
|
+
* The list of order changes.
|
|
23
|
+
*/
|
|
24
|
+
order_changes: OrderChangeDTO[];
|
|
25
|
+
}
|
|
26
|
+
export interface VendorFulfillmentResponse {
|
|
27
|
+
/**
|
|
28
|
+
* The fulfillment details.
|
|
29
|
+
*/
|
|
30
|
+
fulfillment: FulfillmentDTO;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=order.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"order.d.ts","sourceRoot":"","sources":["../../src/http/order.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,cAAc,EACd,QAAQ,EACR,eAAe,EACf,iBAAiB,EAClB,MAAM,iBAAiB,CAAA;AAExB,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,KAAK,EAAE,QAAQ,CAAA;CAChB;AAED,MAAM,MAAM,uBAAuB,GAAG,iBAAiB,CAAC;IACtD;;OAEG;IACH,MAAM,EAAE,QAAQ,EAAE,CAAA;CACnB,CAAC,CAAA;AAEF,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,KAAK,EAAE,eAAe,CAAA;CACvB;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,aAAa,EAAE,cAAc,EAAE,CAAA;CAChC;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,WAAW,EAAE,cAAc,CAAA;CAC5B"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { PaginatedResponse, PaymentDTO, PaymentProviderDTO } from "@medusajs/types";
|
|
2
|
+
export interface VendorPaymentResponse {
|
|
3
|
+
/**
|
|
4
|
+
* The payment's details.
|
|
5
|
+
*/
|
|
6
|
+
payment: PaymentDTO;
|
|
7
|
+
}
|
|
8
|
+
export type VendorPaymentListResponse = PaginatedResponse<{
|
|
9
|
+
/**
|
|
10
|
+
* The list of payments.
|
|
11
|
+
*/
|
|
12
|
+
payments: PaymentDTO[];
|
|
13
|
+
}>;
|
|
14
|
+
export type VendorPaymentProviderListResponse = PaginatedResponse<{
|
|
15
|
+
/**
|
|
16
|
+
* The list of payment providers.
|
|
17
|
+
*/
|
|
18
|
+
payment_providers: PaymentProviderDTO[];
|
|
19
|
+
}>;
|
|
20
|
+
//# sourceMappingURL=payment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment.d.ts","sourceRoot":"","sources":["../../src/http/payment.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,UAAU,EACV,kBAAkB,EACnB,MAAM,iBAAiB,CAAA;AAExB,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,OAAO,EAAE,UAAU,CAAA;CACpB;AAED,MAAM,MAAM,yBAAyB,GAAG,iBAAiB,CAAC;IACxD;;OAEG;IACH,QAAQ,EAAE,UAAU,EAAE,CAAA;CACvB,CAAC,CAAA;AAEF,MAAM,MAAM,iCAAiC,GAAG,iBAAiB,CAAC;IAChE;;OAEG;IACH,iBAAiB,EAAE,kBAAkB,EAAE,CAAA;CACxC,CAAC,CAAA"}
|