ebay-api 9.4.3 → 10.0.0-RC.1
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/README.md +33 -2
- package/dist/api/restful/buy/browse/index.d.ts +1 -4
- package/dist/api/restful/buy/browse/index.js +0 -9
- package/dist/api/restful/buy/feed/index.d.ts +1 -0
- package/dist/api/restful/buy/feed/index.js +8 -0
- package/dist/api/restful/buy/marketing/index.d.ts +1 -3
- package/dist/api/restful/buy/marketing/index.js +0 -10
- package/dist/api/restful/buy/order/index.d.ts +1 -1
- package/dist/api/restful/buy/order/index.js +1 -1
- package/dist/api/restful/commerce/media/index.d.ts +8 -1
- package/dist/api/restful/commerce/media/index.js +24 -0
- package/dist/api/restful/commerce/notification/index.d.ts +5 -2
- package/dist/api/restful/commerce/notification/index.js +15 -1
- package/dist/api/restful/commerce/taxonomy/index.d.ts +1 -0
- package/dist/api/restful/commerce/taxonomy/index.js +4 -0
- package/dist/api/restful/sell/compliance/index.d.ts +0 -2
- package/dist/api/restful/sell/compliance/index.js +0 -3
- package/dist/api/restful/sell/feed/index.d.ts +7 -7
- package/dist/api/restful/sell/finances/index.d.ts +1 -1
- package/dist/api/restful/sell/listing/index.d.ts +2 -1
- package/dist/api/restful/sell/logistics/index.d.ts +6 -5
- package/dist/api/restful/sell/marketing/index.d.ts +4 -1
- package/dist/api/restful/sell/marketing/index.js +10 -0
- package/dist/api/restful/sell/metadata/index.d.ts +15 -0
- package/dist/api/restful/sell/metadata/index.js +65 -0
- package/dist/api/restful/sell/negotiation/index.d.ts +2 -1
- package/dist/ebay-api.min.mjs +1 -1
- package/dist/types/restful/specs/buy_browse_v1_oas3.d.ts +239 -655
- package/dist/types/restful/specs/buy_deal_v1_oas3.d.ts +34 -171
- package/dist/types/restful/specs/buy_feed_v1_beta_oas3.d.ts +146 -217
- package/dist/types/restful/specs/buy_marketing_v1_beta_oas3.d.ts +19 -208
- package/dist/types/restful/specs/buy_offer_v1_beta_oas3.d.ts +13 -84
- package/dist/types/restful/specs/buy_order_v2_oas3.d.ts +470 -0
- package/dist/types/restful/specs/commerce_catalog_v1_beta_oas3.d.ts +37 -562
- package/dist/types/restful/specs/commerce_charity_v1_oas3.d.ts +10 -130
- package/dist/types/restful/specs/commerce_identity_v1_oas3.d.ts +6 -39
- package/dist/types/restful/specs/commerce_media_v1_beta_oas3.d.ts +209 -132
- package/dist/types/restful/specs/commerce_notification_v1_oas3.d.ts +272 -716
- package/dist/types/restful/specs/commerce_taxonomy_v1_oas3.d.ts +77 -339
- package/dist/types/restful/specs/commerce_translation_v1_beta_oas3.d.ts +11 -38
- package/dist/types/restful/specs/developer_analytics_v1_beta_oas3.d.ts +24 -91
- package/dist/types/restful/specs/developer_key_management_v1_oas3.d.ts +21 -132
- package/dist/types/restful/specs/sell_account_v1_oas3.d.ts +193 -1696
- package/dist/types/restful/specs/sell_compliance_v1_oas3.d.ts +21 -148
- package/dist/types/restful/specs/sell_feed_v1_oas3.d.ts +122 -902
- package/dist/types/restful/specs/sell_finances_v1_oas3.d.ts +99 -275
- package/dist/types/restful/specs/sell_inventory_v1_oas3.d.ts +212 -1257
- package/dist/types/restful/specs/sell_logistics_v1_oas3.d.ts +77 -281
- package/dist/types/restful/specs/sell_marketing_v1_oas3.d.ts +563 -3197
- package/dist/types/restful/specs/sell_metadata_v1_oas3.d.ts +709 -330
- package/dist/types/restful/specs/sell_negotiation_v1_oas3.d.ts +15 -82
- package/dist/types/restful/specs/sell_recommendation_v1_oas3.d.ts +10 -43
- package/dist/types/restfulTypes.d.ts +33 -14
- package/lib/api/restful/buy/browse/index.d.ts +1 -4
- package/lib/api/restful/buy/browse/index.js +0 -9
- package/lib/api/restful/buy/feed/index.d.ts +1 -0
- package/lib/api/restful/buy/feed/index.js +8 -0
- package/lib/api/restful/buy/marketing/index.d.ts +1 -3
- package/lib/api/restful/buy/marketing/index.js +0 -10
- package/lib/api/restful/buy/order/index.d.ts +1 -1
- package/lib/api/restful/buy/order/index.js +1 -1
- package/lib/api/restful/commerce/media/index.d.ts +8 -1
- package/lib/api/restful/commerce/media/index.js +24 -0
- package/lib/api/restful/commerce/notification/index.d.ts +5 -2
- package/lib/api/restful/commerce/notification/index.js +15 -1
- package/lib/api/restful/commerce/taxonomy/index.d.ts +1 -0
- package/lib/api/restful/commerce/taxonomy/index.js +4 -0
- package/lib/api/restful/sell/compliance/index.d.ts +0 -2
- package/lib/api/restful/sell/compliance/index.js +0 -3
- package/lib/api/restful/sell/feed/index.d.ts +7 -7
- package/lib/api/restful/sell/finances/index.d.ts +1 -1
- package/lib/api/restful/sell/listing/index.d.ts +2 -1
- package/lib/api/restful/sell/logistics/index.d.ts +6 -5
- package/lib/api/restful/sell/marketing/index.d.ts +4 -1
- package/lib/api/restful/sell/marketing/index.js +10 -0
- package/lib/api/restful/sell/metadata/index.d.ts +15 -0
- package/lib/api/restful/sell/metadata/index.js +65 -0
- package/lib/api/restful/sell/negotiation/index.d.ts +2 -1
- package/lib/ebay-api.min.js +1 -1
- package/lib/types/restful/specs/buy_browse_v1_oas3.d.ts +239 -655
- package/lib/types/restful/specs/buy_deal_v1_oas3.d.ts +34 -171
- package/lib/types/restful/specs/buy_feed_v1_beta_oas3.d.ts +146 -217
- package/lib/types/restful/specs/buy_marketing_v1_beta_oas3.d.ts +19 -208
- package/lib/types/restful/specs/buy_offer_v1_beta_oas3.d.ts +13 -84
- package/lib/types/restful/specs/buy_order_v2_oas3.d.ts +470 -0
- package/lib/types/restful/specs/commerce_catalog_v1_beta_oas3.d.ts +37 -562
- package/lib/types/restful/specs/commerce_charity_v1_oas3.d.ts +10 -130
- package/lib/types/restful/specs/commerce_identity_v1_oas3.d.ts +6 -39
- package/lib/types/restful/specs/commerce_media_v1_beta_oas3.d.ts +209 -132
- package/lib/types/restful/specs/commerce_notification_v1_oas3.d.ts +272 -716
- package/lib/types/restful/specs/commerce_taxonomy_v1_oas3.d.ts +77 -339
- package/lib/types/restful/specs/commerce_translation_v1_beta_oas3.d.ts +11 -38
- package/lib/types/restful/specs/developer_analytics_v1_beta_oas3.d.ts +24 -91
- package/lib/types/restful/specs/developer_key_management_v1_oas3.d.ts +21 -132
- package/lib/types/restful/specs/sell_account_v1_oas3.d.ts +193 -1696
- package/lib/types/restful/specs/sell_compliance_v1_oas3.d.ts +21 -148
- package/lib/types/restful/specs/sell_feed_v1_oas3.d.ts +122 -902
- package/lib/types/restful/specs/sell_finances_v1_oas3.d.ts +99 -275
- package/lib/types/restful/specs/sell_inventory_v1_oas3.d.ts +212 -1257
- package/lib/types/restful/specs/sell_logistics_v1_oas3.d.ts +77 -281
- package/lib/types/restful/specs/sell_marketing_v1_oas3.d.ts +563 -3197
- package/lib/types/restful/specs/sell_metadata_v1_oas3.d.ts +709 -330
- package/lib/types/restful/specs/sell_negotiation_v1_oas3.d.ts +15 -82
- package/lib/types/restful/specs/sell_recommendation_v1_oas3.d.ts +10 -43
- package/lib/types/restfulTypes.d.ts +33 -14
- package/package.json +2 -1
- package/dist/types/restful/specs/buy_order_v1_beta_oas3.d.ts +0 -2400
- package/lib/types/restful/specs/buy_order_v1_beta_oas3.d.ts +0 -2400
- /package/dist/types/restful/specs/{buy_order_v1_beta_oas3.js → buy_order_v2_oas3.js} +0 -0
- /package/lib/types/restful/specs/{buy_order_v1_beta_oas3.js → buy_order_v2_oas3.js} +0 -0
|
@@ -1,35 +1,9 @@
|
|
|
1
1
|
export interface paths {
|
|
2
2
|
"/find_eligible_items": {
|
|
3
|
-
parameters: {
|
|
4
|
-
query?: never;
|
|
5
|
-
header?: never;
|
|
6
|
-
path?: never;
|
|
7
|
-
cookie?: never;
|
|
8
|
-
};
|
|
9
3
|
get: operations["findEligibleItems"];
|
|
10
|
-
put?: never;
|
|
11
|
-
post?: never;
|
|
12
|
-
delete?: never;
|
|
13
|
-
options?: never;
|
|
14
|
-
head?: never;
|
|
15
|
-
patch?: never;
|
|
16
|
-
trace?: never;
|
|
17
4
|
};
|
|
18
5
|
"/send_offer_to_interested_buyers": {
|
|
19
|
-
parameters: {
|
|
20
|
-
query?: never;
|
|
21
|
-
header?: never;
|
|
22
|
-
path?: never;
|
|
23
|
-
cookie?: never;
|
|
24
|
-
};
|
|
25
|
-
get?: never;
|
|
26
|
-
put?: never;
|
|
27
6
|
post: operations["sendOfferToInterestedBuyers"];
|
|
28
|
-
delete?: never;
|
|
29
|
-
options?: never;
|
|
30
|
-
head?: never;
|
|
31
|
-
patch?: never;
|
|
32
|
-
trace?: never;
|
|
33
7
|
};
|
|
34
8
|
}
|
|
35
9
|
export type webhooks = Record<string, never>;
|
|
@@ -43,7 +17,7 @@ export interface components {
|
|
|
43
17
|
allowCounterOffer?: boolean;
|
|
44
18
|
message?: string;
|
|
45
19
|
offerDuration?: components["schemas"]["TimeDuration"];
|
|
46
|
-
offeredItems?: components["schemas"]["OfferedItem"][];
|
|
20
|
+
offeredItems?: (components["schemas"]["OfferedItem"])[];
|
|
47
21
|
};
|
|
48
22
|
EligibleItem: {
|
|
49
23
|
listingId?: string;
|
|
@@ -52,11 +26,11 @@ export interface components {
|
|
|
52
26
|
category?: string;
|
|
53
27
|
domain?: string;
|
|
54
28
|
errorId?: number;
|
|
55
|
-
inputRefIds?: string[];
|
|
29
|
+
inputRefIds?: (string)[];
|
|
56
30
|
longMessage?: string;
|
|
57
31
|
message?: string;
|
|
58
|
-
outputRefIds?: string[];
|
|
59
|
-
parameters?: components["schemas"]["ErrorParameter"][];
|
|
32
|
+
outputRefIds?: (string)[];
|
|
33
|
+
parameters?: (components["schemas"]["ErrorParameter"])[];
|
|
60
34
|
subdomain?: string;
|
|
61
35
|
};
|
|
62
36
|
ErrorParameter: {
|
|
@@ -71,7 +45,7 @@ export interface components {
|
|
|
71
45
|
lastModifiedDate?: string;
|
|
72
46
|
message?: string;
|
|
73
47
|
offerDuration?: components["schemas"]["TimeDuration"];
|
|
74
|
-
offeredItems?: components["schemas"]["OfferedItem"][];
|
|
48
|
+
offeredItems?: (components["schemas"]["OfferedItem"])[];
|
|
75
49
|
offerId?: string;
|
|
76
50
|
offerStatus?: string;
|
|
77
51
|
offerType?: string;
|
|
@@ -84,7 +58,7 @@ export interface components {
|
|
|
84
58
|
quantity?: number;
|
|
85
59
|
};
|
|
86
60
|
PagedEligibleItemCollection: {
|
|
87
|
-
eligibleItems?: components["schemas"]["EligibleItem"][];
|
|
61
|
+
eligibleItems?: (components["schemas"]["EligibleItem"])[];
|
|
88
62
|
href?: string;
|
|
89
63
|
limit?: number;
|
|
90
64
|
next?: string;
|
|
@@ -93,7 +67,7 @@ export interface components {
|
|
|
93
67
|
total?: number;
|
|
94
68
|
};
|
|
95
69
|
SendOfferToInterestedBuyersCollectionResponse: {
|
|
96
|
-
offers?: components["schemas"]["Offer"][];
|
|
70
|
+
offers?: (components["schemas"]["Offer"])[];
|
|
97
71
|
};
|
|
98
72
|
TimeDuration: {
|
|
99
73
|
unit?: string;
|
|
@@ -109,7 +83,7 @@ export interface components {
|
|
|
109
83
|
headers: never;
|
|
110
84
|
pathItems: never;
|
|
111
85
|
}
|
|
112
|
-
export type
|
|
86
|
+
export type external = Record<string, never>;
|
|
113
87
|
export interface operations {
|
|
114
88
|
findEligibleItems: {
|
|
115
89
|
parameters: {
|
|
@@ -120,47 +94,24 @@ export interface operations {
|
|
|
120
94
|
header: {
|
|
121
95
|
"X-EBAY-C-MARKETPLACE-ID": string;
|
|
122
96
|
};
|
|
123
|
-
path?: never;
|
|
124
|
-
cookie?: never;
|
|
125
97
|
};
|
|
126
|
-
requestBody?: never;
|
|
127
98
|
responses: {
|
|
128
99
|
200: {
|
|
129
|
-
headers: {
|
|
130
|
-
[name: string]: unknown;
|
|
131
|
-
};
|
|
132
100
|
content: {
|
|
133
101
|
"application/json": components["schemas"]["PagedEligibleItemCollection"];
|
|
134
102
|
};
|
|
135
103
|
};
|
|
136
|
-
204:
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
};
|
|
140
|
-
content?: never;
|
|
141
|
-
};
|
|
142
|
-
400: {
|
|
143
|
-
headers: {
|
|
144
|
-
[name: string]: unknown;
|
|
145
|
-
};
|
|
146
|
-
content?: never;
|
|
147
|
-
};
|
|
148
|
-
500: {
|
|
149
|
-
headers: {
|
|
150
|
-
[name: string]: unknown;
|
|
151
|
-
};
|
|
152
|
-
content?: never;
|
|
153
|
-
};
|
|
104
|
+
204: never;
|
|
105
|
+
400: never;
|
|
106
|
+
500: never;
|
|
154
107
|
};
|
|
155
108
|
};
|
|
156
109
|
sendOfferToInterestedBuyers: {
|
|
157
110
|
parameters: {
|
|
158
|
-
query?: never;
|
|
159
111
|
header: {
|
|
160
112
|
"X-EBAY-C-MARKETPLACE-ID": string;
|
|
113
|
+
"Content-Type": string;
|
|
161
114
|
};
|
|
162
|
-
path?: never;
|
|
163
|
-
cookie?: never;
|
|
164
115
|
};
|
|
165
116
|
requestBody?: {
|
|
166
117
|
content: {
|
|
@@ -169,31 +120,13 @@ export interface operations {
|
|
|
169
120
|
};
|
|
170
121
|
responses: {
|
|
171
122
|
200: {
|
|
172
|
-
headers: {
|
|
173
|
-
[name: string]: unknown;
|
|
174
|
-
};
|
|
175
123
|
content: {
|
|
176
124
|
"application/json": components["schemas"]["SendOfferToInterestedBuyersCollectionResponse"];
|
|
177
125
|
};
|
|
178
126
|
};
|
|
179
|
-
400:
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
};
|
|
183
|
-
content?: never;
|
|
184
|
-
};
|
|
185
|
-
409: {
|
|
186
|
-
headers: {
|
|
187
|
-
[name: string]: unknown;
|
|
188
|
-
};
|
|
189
|
-
content?: never;
|
|
190
|
-
};
|
|
191
|
-
500: {
|
|
192
|
-
headers: {
|
|
193
|
-
[name: string]: unknown;
|
|
194
|
-
};
|
|
195
|
-
content?: never;
|
|
196
|
-
};
|
|
127
|
+
400: never;
|
|
128
|
+
409: never;
|
|
129
|
+
500: never;
|
|
197
130
|
};
|
|
198
131
|
};
|
|
199
132
|
}
|
|
@@ -1,26 +1,13 @@
|
|
|
1
1
|
export interface paths {
|
|
2
2
|
"/find": {
|
|
3
|
-
parameters: {
|
|
4
|
-
query?: never;
|
|
5
|
-
header?: never;
|
|
6
|
-
path?: never;
|
|
7
|
-
cookie?: never;
|
|
8
|
-
};
|
|
9
|
-
get?: never;
|
|
10
|
-
put?: never;
|
|
11
3
|
post: operations["findListingRecommendations"];
|
|
12
|
-
delete?: never;
|
|
13
|
-
options?: never;
|
|
14
|
-
head?: never;
|
|
15
|
-
patch?: never;
|
|
16
|
-
trace?: never;
|
|
17
4
|
};
|
|
18
5
|
}
|
|
19
6
|
export type webhooks = Record<string, never>;
|
|
20
7
|
export interface components {
|
|
21
8
|
schemas: {
|
|
22
9
|
Ad: {
|
|
23
|
-
bidPercentages?: components["schemas"]["BidPercentages"][];
|
|
10
|
+
bidPercentages?: (components["schemas"]["BidPercentages"])[];
|
|
24
11
|
promoteWithAd?: string;
|
|
25
12
|
};
|
|
26
13
|
BidPercentages: {
|
|
@@ -31,11 +18,11 @@ export interface components {
|
|
|
31
18
|
category?: string;
|
|
32
19
|
domain?: string;
|
|
33
20
|
errorId?: number;
|
|
34
|
-
inputRefIds?: string[];
|
|
21
|
+
inputRefIds?: (string)[];
|
|
35
22
|
longMessage?: string;
|
|
36
23
|
message?: string;
|
|
37
|
-
outputRefIds?: string[];
|
|
38
|
-
parameters?: components["schemas"]["ErrorParameter"][];
|
|
24
|
+
outputRefIds?: (string)[];
|
|
25
|
+
parameters?: (components["schemas"]["ErrorParameter"])[];
|
|
39
26
|
subdomain?: string;
|
|
40
27
|
};
|
|
41
28
|
ErrorParameter: {
|
|
@@ -43,7 +30,7 @@ export interface components {
|
|
|
43
30
|
value?: string;
|
|
44
31
|
};
|
|
45
32
|
FindListingRecommendationRequest: {
|
|
46
|
-
listingIds?: string[];
|
|
33
|
+
listingIds?: (string)[];
|
|
47
34
|
};
|
|
48
35
|
ListingRecommendation: {
|
|
49
36
|
listingId?: string;
|
|
@@ -56,7 +43,7 @@ export interface components {
|
|
|
56
43
|
PagedListingRecommendationCollection: {
|
|
57
44
|
href?: string;
|
|
58
45
|
limit?: number;
|
|
59
|
-
listingRecommendations?: components["schemas"]["ListingRecommendation"][];
|
|
46
|
+
listingRecommendations?: (components["schemas"]["ListingRecommendation"])[];
|
|
60
47
|
next?: string;
|
|
61
48
|
offset?: number;
|
|
62
49
|
prev?: string;
|
|
@@ -69,7 +56,7 @@ export interface components {
|
|
|
69
56
|
headers: never;
|
|
70
57
|
pathItems: never;
|
|
71
58
|
}
|
|
72
|
-
export type
|
|
59
|
+
export type external = Record<string, never>;
|
|
73
60
|
export interface operations {
|
|
74
61
|
findListingRecommendations: {
|
|
75
62
|
parameters: {
|
|
@@ -81,8 +68,6 @@ export interface operations {
|
|
|
81
68
|
header: {
|
|
82
69
|
"X-EBAY-C-MARKETPLACE-ID": string;
|
|
83
70
|
};
|
|
84
|
-
path?: never;
|
|
85
|
-
cookie?: never;
|
|
86
71
|
};
|
|
87
72
|
requestBody?: {
|
|
88
73
|
content: {
|
|
@@ -91,31 +76,13 @@ export interface operations {
|
|
|
91
76
|
};
|
|
92
77
|
responses: {
|
|
93
78
|
200: {
|
|
94
|
-
headers: {
|
|
95
|
-
[name: string]: unknown;
|
|
96
|
-
};
|
|
97
79
|
content: {
|
|
98
80
|
"application/json;charset=UTF-8": components["schemas"]["PagedListingRecommendationCollection"];
|
|
99
81
|
};
|
|
100
82
|
};
|
|
101
|
-
204:
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
};
|
|
105
|
-
content?: never;
|
|
106
|
-
};
|
|
107
|
-
400: {
|
|
108
|
-
headers: {
|
|
109
|
-
[name: string]: unknown;
|
|
110
|
-
};
|
|
111
|
-
content?: never;
|
|
112
|
-
};
|
|
113
|
-
500: {
|
|
114
|
-
headers: {
|
|
115
|
-
[name: string]: unknown;
|
|
116
|
-
};
|
|
117
|
-
content?: never;
|
|
118
|
-
};
|
|
83
|
+
204: never;
|
|
84
|
+
400: never;
|
|
85
|
+
500: never;
|
|
119
86
|
};
|
|
120
87
|
};
|
|
121
88
|
}
|
|
@@ -2,7 +2,7 @@ import { CancelReason, CaseSearchFieldGroup, CaseStatusFilter, CountryCode, Curr
|
|
|
2
2
|
import { components as buyBrowse, operations as buyBrowseOperations } from './restful/specs/buy_browse_v1_oas3.js';
|
|
3
3
|
import { operations as buyMarketingOperations } from './restful/specs/buy_marketing_v1_beta_oas3.js';
|
|
4
4
|
import { components as buyOffer } from './restful/specs/buy_offer_v1_beta_oas3.js';
|
|
5
|
-
import { components as buyOrder } from './restful/specs/
|
|
5
|
+
import { components as buyOrder } from './restful/specs/buy_order_v2_oas3.js';
|
|
6
6
|
import { operations as commerceCatalogOperations } from './restful/specs/commerce_catalog_v1_beta_oas3.js';
|
|
7
7
|
import { components as commerceMedia } from './restful/specs/commerce_media_v1_beta_oas3.js';
|
|
8
8
|
import { components as commerceNotification } from './restful/specs/commerce_notification_v1_oas3.js';
|
|
@@ -10,10 +10,14 @@ import { components as commerceTranslation } from './restful/specs/commerce_tran
|
|
|
10
10
|
import { components as commerceMessage } from './restful/specs/commerce_message_v1_oas3.js';
|
|
11
11
|
import { components as sellAccountV1 } from './restful/specs/sell_account_v1_oas3.js';
|
|
12
12
|
import { components as sellAccountV2 } from './restful/specs/sell_account_v2_oas3.js';
|
|
13
|
-
import { components as
|
|
13
|
+
import { components as sellFeed } from './restful/specs/sell_feed_v1_oas3.js';
|
|
14
14
|
import { components as sellFulfillment } from './restful/specs/sell_fulfillment_v1_oas3.js';
|
|
15
15
|
import { components as sellInventory } from './restful/specs/sell_inventory_v1_oas3.js';
|
|
16
|
+
import { components as sellListing } from './restful/specs/sell_listing_v1_beta_oas3.js';
|
|
17
|
+
import { components as sellLogistics } from './restful/specs/sell_logistics_v1_oas3.js';
|
|
16
18
|
import { components as sellMarketing } from './restful/specs/sell_marketing_v1_oas3.js';
|
|
19
|
+
import { components as sellMetadata } from './restful/specs/sell_metadata_v1_oas3.js';
|
|
20
|
+
import { components as sellNegotiation } from './restful/specs/sell_negotiation_v1_oas3.js';
|
|
17
21
|
import { components as sellRecommendation } from './restful/specs/sell_recommendation_v1_oas3.js';
|
|
18
22
|
export type BrowseSearchParams = {
|
|
19
23
|
aspect_filter?: string;
|
|
@@ -362,29 +366,23 @@ export type BulkUpdateConversationRequest = commerceMessage['schemas']['BulkUpda
|
|
|
362
366
|
export type CommerceMessageSendMessageRequest = commerceMessage['schemas']['SendMessageRequest'];
|
|
363
367
|
export type AttributeNameValue = buyBrowse['schemas']['AttributeNameValue'];
|
|
364
368
|
export type CompatibilityPayload = buyBrowse['schemas']['CompatibilityPayload'];
|
|
365
|
-
export type AddCartItemInput = buyBrowse['schemas']['AddCartItemInput'];
|
|
366
|
-
export type RemoveCartItemInput = buyBrowse['schemas']['RemoveCartItemInput'];
|
|
367
|
-
export type UpdateCartItemInput = buyBrowse['schemas']['UpdateCartItemInput'];
|
|
368
369
|
export type PlaceProxyBidRequest = buyOffer['schemas']['PlaceProxyBidRequest'];
|
|
369
370
|
export type SearchByImageRequest = buyBrowse['schemas']['SearchByImageRequest'];
|
|
370
371
|
export type BuyBrowseSearchParams = buyBrowseOperations['search']['parameters']['query'];
|
|
371
372
|
export type BuyBrowseSearchByImageParams = buyBrowseOperations['searchByImage']['parameters']['query'];
|
|
372
373
|
export type BuyBrowseGetItemsParams = buyBrowseOperations['getItems']['parameters']['query'];
|
|
373
374
|
export type BuyBrowseItemByLegacyIdParams = buyBrowseOperations['getItemByLegacyId']['parameters']['query'];
|
|
374
|
-
export type BuyMarketingGetAlsoBoughtByProductParams = buyMarketingOperations['getAlsoBoughtByProduct']['parameters']['query'];
|
|
375
|
-
export type BuyMarketingGetAlsoViewedByProductParams = buyMarketingOperations['getAlsoViewedByProduct']['parameters']['query'];
|
|
376
375
|
export type BuyMarketingGetMerchandisedProductsParams = buyMarketingOperations['getMerchandisedProducts']['parameters']['query'];
|
|
377
|
-
export type CreateGuestCheckoutSessionRequest = buyOrder['schemas']['
|
|
378
|
-
export type CheckoutSessionRequestWithoutPayment = buyOrder['schemas']['
|
|
376
|
+
export type CreateGuestCheckoutSessionRequest = buyOrder['schemas']['CreateGuestCheckoutSessionRequestV2'];
|
|
377
|
+
export type CheckoutSessionRequestWithoutPayment = buyOrder['schemas']['CreateGuestCheckoutSessionRequestV2'];
|
|
379
378
|
export type CouponRequest = buyOrder['schemas']['CouponRequest'];
|
|
380
|
-
export type CreateSignInCheckoutSessionRequest = buyOrder['schemas']['
|
|
381
|
-
export type GuestPlaceOrderRequest = buyOrder['schemas']['
|
|
382
|
-
export type InitiatePaymentRequest = buyOrder['schemas']['
|
|
379
|
+
export type CreateSignInCheckoutSessionRequest = buyOrder['schemas']['CreateGuestCheckoutSessionRequestV2'];
|
|
380
|
+
export type GuestPlaceOrderRequest = buyOrder['schemas']['CreateGuestCheckoutSessionRequestV2'];
|
|
381
|
+
export type InitiatePaymentRequest = buyOrder['schemas']['CreateGuestCheckoutSessionRequestV2'];
|
|
383
382
|
export type ShippingAddressImpl = buyOrder['schemas']['ShippingAddressImpl'];
|
|
384
|
-
export type UpdatePaymentInformation = buyOrder['schemas']['
|
|
383
|
+
export type UpdatePaymentInformation = buyOrder['schemas']['CreateGuestCheckoutSessionRequestV2'];
|
|
385
384
|
export type UpdateQuantity = buyOrder['schemas']['UpdateQuantity'];
|
|
386
385
|
export type UpdateShippingOption = buyOrder['schemas']['UpdateShippingOption'];
|
|
387
|
-
export type SuppressViolationRequest = sellCompliance['schemas']['SuppressViolationRequest'];
|
|
388
386
|
export type CustomPolicyCreateRequest = sellAccountV1['schemas']['CustomPolicyCreateRequest'];
|
|
389
387
|
export type CustomPolicyRequest = sellAccountV1['schemas']['CustomPolicyRequest'];
|
|
390
388
|
export type FulfillmentPolicyRequest = sellAccountV1['schemas']['FulfillmentPolicyRequest'];
|
|
@@ -451,3 +449,24 @@ export type CreateEmailCampaignRequest = sellMarketing['schemas']['CreateEmailCa
|
|
|
451
449
|
export type UpdateCampaignRequest = sellMarketing['schemas']['UpdateCampaignRequest'];
|
|
452
450
|
export type QuickSetupRequest = sellMarketing['schemas']['QuickSetupRequest'];
|
|
453
451
|
export type FindListingRecommendationRequest = sellRecommendation['schemas']['FindListingRecommendationRequest'];
|
|
452
|
+
export type CreateImageFromUrlRequest = commerceMedia['schemas']['CreateImageFromUrlRequest'];
|
|
453
|
+
export type CreateDocumentRequest = commerceMedia['schemas']['CreateDocumentRequest'];
|
|
454
|
+
export type CreateDocumentFromUrlRequest = commerceMedia['schemas']['CreateDocumentFromUrlRequest'];
|
|
455
|
+
export type CreateSubscriptionFilterRequest = commerceNotification['schemas']['CreateSubscriptionFilterRequest'];
|
|
456
|
+
export type CreateOrderTaskRequest = sellFeed['schemas']['CreateOrderTaskRequest'];
|
|
457
|
+
export type CreateInventoryTaskRequest = sellFeed['schemas']['CreateInventoryTaskRequest'];
|
|
458
|
+
export type CreateUserScheduleRequest = sellFeed['schemas']['CreateUserScheduleRequest'];
|
|
459
|
+
export type UpdateUserScheduleRequest = sellFeed['schemas']['UpdateUserScheduleRequest'];
|
|
460
|
+
export type CreateTaskRequest = sellFeed['schemas']['CreateTaskRequest'];
|
|
461
|
+
export type CreateServiceMetricsTaskRequest = sellFeed['schemas']['CreateServiceMetricsTaskRequest'];
|
|
462
|
+
export type ItemDraft = sellListing['schemas']['ItemDraft'];
|
|
463
|
+
export type ShippingQuoteRequest = sellLogistics['schemas']['ShippingQuoteRequest'];
|
|
464
|
+
export type CreateShipmentFromQuoteRequest = sellLogistics['schemas']['CreateShipmentFromQuoteRequest'];
|
|
465
|
+
export type SuggestMaxCpcRequest = sellMarketing['schemas']['SuggestMaxCpcRequest'];
|
|
466
|
+
export type UpdateBiddingStrategyRequest = sellMarketing['schemas']['UpdateBiddingStrategyRequest'];
|
|
467
|
+
export type SpecificationRequest = sellMetadata['schemas']['SpecificationRequest'];
|
|
468
|
+
export type PropertyNamesRequest = sellMetadata['schemas']['PropertyNamesRequest'];
|
|
469
|
+
export type PropertyValuesRequest = sellMetadata['schemas']['PropertyValuesRequest'];
|
|
470
|
+
export type MultiCompatibilityPropertyValuesRequest = sellMetadata['schemas']['MultiCompatibilityPropertyValuesRequest'];
|
|
471
|
+
export type ProductRequest = sellMetadata['schemas']['ProductRequest'];
|
|
472
|
+
export type CreateOffersRequest = sellNegotiation['schemas']['CreateOffersRequest'];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BuyBrowseGetItemsParams, BuyBrowseItemByLegacyIdParams, BuyBrowseSearchByImageParams, BuyBrowseSearchParams, CompatibilityPayload, SearchByImageRequest } from '../../../../types/index.js';
|
|
2
2
|
import { operations } from '../../../../types/restful/specs/buy_browse_v1_oas3.js';
|
|
3
3
|
import Restful, { OpenApi } from '../../index.js';
|
|
4
4
|
export default class Browse extends Restful implements OpenApi<operations> {
|
|
@@ -11,8 +11,5 @@ export default class Browse extends Restful implements OpenApi<operations> {
|
|
|
11
11
|
getItemByLegacyId(params: BuyBrowseItemByLegacyIdParams): Promise<any>;
|
|
12
12
|
getItemsByItemGroup(itemGroupId: string): Promise<any>;
|
|
13
13
|
checkCompatibility(itemId: string, body?: CompatibilityPayload): Promise<any>;
|
|
14
|
-
addItem(item: AddCartItemInput): Promise<any>;
|
|
15
14
|
getShoppingCart(): Promise<any>;
|
|
16
|
-
removeItem(item: RemoveCartItemInput): Promise<any>;
|
|
17
|
-
updateQuantity(item: UpdateCartItemInput): Promise<any>;
|
|
18
15
|
}
|
|
@@ -47,18 +47,9 @@ class Browse extends index_js_1.default {
|
|
|
47
47
|
const id = encodeURIComponent(itemId);
|
|
48
48
|
return this.post(`/item/${id}/check_compatibility`, body);
|
|
49
49
|
}
|
|
50
|
-
addItem(item) {
|
|
51
|
-
return this.post('/shopping_cart/add_item', item);
|
|
52
|
-
}
|
|
53
50
|
getShoppingCart() {
|
|
54
51
|
return this.get('/shopping_cart/');
|
|
55
52
|
}
|
|
56
|
-
removeItem(item) {
|
|
57
|
-
return this.post('/shopping_cart/remove_item', item);
|
|
58
|
-
}
|
|
59
|
-
updateQuantity(item) {
|
|
60
|
-
return this.post('/shopping_cart/update_quantity', item);
|
|
61
|
-
}
|
|
62
53
|
}
|
|
63
54
|
Browse.id = 'Browse';
|
|
64
55
|
exports.default = Browse;
|
|
@@ -8,4 +8,5 @@ export default class Feed extends Restful implements OpenApi<operations> {
|
|
|
8
8
|
getItemGroupFeed(params: BuyFeedParams, range: string): Promise<any>;
|
|
9
9
|
getItemSnapshotFeed(params: BuyFeedParams, snapshotDate: string, range: string): Promise<any>;
|
|
10
10
|
getProductFeed(params: BuyFeedParams, snapshotDate: string, range: string): Promise<any>;
|
|
11
|
+
getItemPriorityFeed(params: BuyFeedParams, range: string): Promise<any>;
|
|
11
12
|
}
|
|
@@ -46,6 +46,14 @@ class Feed extends index_js_1.default {
|
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
|
+
getItemPriorityFeed(params, range) {
|
|
50
|
+
return this.get('/item_priority', {
|
|
51
|
+
params,
|
|
52
|
+
headers: {
|
|
53
|
+
'Range': range
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
}
|
|
49
57
|
}
|
|
50
58
|
Feed.id = 'Feed';
|
|
51
59
|
exports.default = Feed;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BuyMarketingGetMerchandisedProductsParams } from '../../../../types/index.js';
|
|
2
2
|
import { operations } from '../../../../types/restful/specs/buy_marketing_v1_beta_oas3.js';
|
|
3
3
|
import Restful, { OpenApi } from '../../index.js';
|
|
4
4
|
export default class Marketing extends Restful implements OpenApi<operations> {
|
|
5
5
|
static id: string;
|
|
6
6
|
get basePath(): string;
|
|
7
|
-
getAlsoBoughtByProduct(params: BuyMarketingGetAlsoBoughtByProductParams): Promise<any>;
|
|
8
|
-
getAlsoViewedByProduct(params: BuyMarketingGetAlsoViewedByProductParams): Promise<any>;
|
|
9
7
|
getMerchandisedProducts(params: BuyMarketingGetMerchandisedProductsParams): Promise<any>;
|
|
10
8
|
}
|
|
@@ -8,16 +8,6 @@ class Marketing extends index_js_1.default {
|
|
|
8
8
|
get basePath() {
|
|
9
9
|
return '/buy/marketing/v1_beta';
|
|
10
10
|
}
|
|
11
|
-
getAlsoBoughtByProduct(params) {
|
|
12
|
-
return this.get('/merchandised_product/get_also_bought_products', {
|
|
13
|
-
params
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
getAlsoViewedByProduct(params) {
|
|
17
|
-
return this.get('/merchandised_product/get_also_viewed_products', {
|
|
18
|
-
params
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
11
|
getMerchandisedProducts(params) {
|
|
22
12
|
return this.get('/merchandised_product', {
|
|
23
13
|
params
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CheckoutSessionRequestWithoutPayment, CouponRequest, CreateGuestCheckoutSessionRequest, CreateSignInCheckoutSessionRequest, GuestPlaceOrderRequest, InitiatePaymentRequest, ShippingAddressImpl, UpdatePaymentInformation, UpdateQuantity, UpdateShippingOption } from '../../../../types/index.js';
|
|
2
|
-
import { operations } from '../../../../types/restful/specs/
|
|
2
|
+
import { operations } from '../../../../types/restful/specs/buy_order_v2_oas3.js';
|
|
3
3
|
import Api, { OpenApi } from '../../index.js';
|
|
4
4
|
export default class Order extends Api implements OpenApi<operations> {
|
|
5
5
|
static id: string;
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const index_js_1 = __importDefault(require("../../index.js"));
|
|
7
7
|
class Order extends index_js_1.default {
|
|
8
8
|
get basePath() {
|
|
9
|
-
return '/buy/order/
|
|
9
|
+
return '/buy/order/v2';
|
|
10
10
|
}
|
|
11
11
|
applyCoupon(checkoutSessionId, body) {
|
|
12
12
|
checkoutSessionId = encodeURIComponent(checkoutSessionId);
|
|
@@ -1,11 +1,18 @@
|
|
|
1
|
-
import { CreateVideoRequest, InputStream } from '../../../../types/index.js';
|
|
1
|
+
import { CreateVideoRequest, InputStream, CreateImageFromUrlRequest, CreateDocumentRequest, CreateDocumentFromUrlRequest } from '../../../../types/index.js';
|
|
2
2
|
import { operations } from '../../../../types/restful/specs/commerce_media_v1_beta_oas3.js';
|
|
3
3
|
import Restful, { OpenApi } from '../../index.js';
|
|
4
4
|
export default class Media extends Restful implements OpenApi<operations> {
|
|
5
5
|
static id: string;
|
|
6
6
|
get basePath(): string;
|
|
7
7
|
get subdomain(): string;
|
|
8
|
+
createImageFromFile(body?: any): Promise<any>;
|
|
9
|
+
createImageFromUrl(body?: CreateImageFromUrlRequest): Promise<any>;
|
|
10
|
+
getImage(imageId: string): Promise<any>;
|
|
8
11
|
createVideo(body?: CreateVideoRequest): Promise<any>;
|
|
9
12
|
getVideo(videoId: string): Promise<any>;
|
|
10
13
|
uploadVideo(videoId: string, body?: InputStream): Promise<any>;
|
|
14
|
+
createDocument(body?: CreateDocumentRequest): Promise<any>;
|
|
15
|
+
createDocumentFromUrl(body?: CreateDocumentFromUrlRequest): Promise<any>;
|
|
16
|
+
getDocument(documentId: string): Promise<any>;
|
|
17
|
+
uploadDocument(documentId: string, body?: any): Promise<any>;
|
|
11
18
|
}
|
|
@@ -11,6 +11,16 @@ class Media extends index_js_1.default {
|
|
|
11
11
|
get subdomain() {
|
|
12
12
|
return 'apim';
|
|
13
13
|
}
|
|
14
|
+
async createImageFromFile(body) {
|
|
15
|
+
return this.post('/image/create_image_from_file', body);
|
|
16
|
+
}
|
|
17
|
+
async createImageFromUrl(body) {
|
|
18
|
+
return this.post('/image/create_image_from_url', body);
|
|
19
|
+
}
|
|
20
|
+
async getImage(imageId) {
|
|
21
|
+
imageId = encodeURIComponent(imageId);
|
|
22
|
+
return this.get(`/image/${imageId}`);
|
|
23
|
+
}
|
|
14
24
|
async createVideo(body) {
|
|
15
25
|
return this.post('/video', body);
|
|
16
26
|
}
|
|
@@ -23,6 +33,20 @@ class Media extends index_js_1.default {
|
|
|
23
33
|
videoId = encodeURIComponent(videoId);
|
|
24
34
|
return this.post(`/video/${videoId}/upload`, body);
|
|
25
35
|
}
|
|
36
|
+
async createDocument(body) {
|
|
37
|
+
return this.post('/document', body);
|
|
38
|
+
}
|
|
39
|
+
async createDocumentFromUrl(body) {
|
|
40
|
+
return this.post('/document/create_document_from_url', body);
|
|
41
|
+
}
|
|
42
|
+
async getDocument(documentId) {
|
|
43
|
+
documentId = encodeURIComponent(documentId);
|
|
44
|
+
return this.get(`/document/${documentId}`);
|
|
45
|
+
}
|
|
46
|
+
async uploadDocument(documentId, body) {
|
|
47
|
+
documentId = encodeURIComponent(documentId);
|
|
48
|
+
return this.post(`/document/${documentId}/upload`, body);
|
|
49
|
+
}
|
|
26
50
|
}
|
|
27
51
|
Media.id = 'Media';
|
|
28
52
|
exports.default = Media;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommerceNotificationConfig, CreateSubscriptionRequest, DestinationRequest, NotificationParams, UpdateSubscriptionRequest } from '../../../../types/index.js';
|
|
1
|
+
import { CommerceNotificationConfig, CreateSubscriptionRequest, DestinationRequest, NotificationParams, UpdateSubscriptionRequest, CreateSubscriptionFilterRequest } from '../../../../types/index.js';
|
|
2
2
|
import { operations } from '../../../../types/restful/specs/commerce_notification_v1_oas3.js';
|
|
3
3
|
import Restful, { OpenApi } from '../../index.js';
|
|
4
4
|
export default class Notification extends Restful implements OpenApi<operations> {
|
|
@@ -14,7 +14,10 @@ export default class Notification extends Restful implements OpenApi<operations>
|
|
|
14
14
|
deleteSubscription(subscriptionId: string): Promise<any>;
|
|
15
15
|
enableSubscription(subscriptionId: string): Promise<any>;
|
|
16
16
|
disableSubscription(subscriptionId: string): Promise<any>;
|
|
17
|
-
|
|
17
|
+
createSubscriptionFilter(subscriptionId: string, body?: CreateSubscriptionFilterRequest): Promise<any>;
|
|
18
|
+
getSubscriptionFilter(subscriptionId: string, filterId: string): Promise<any>;
|
|
19
|
+
deleteSubscriptionFilter(subscriptionId: string, filterId: string): Promise<any>;
|
|
20
|
+
testSubscription(subscriptionId: string): Promise<any>;
|
|
18
21
|
getDestinations({ limit, continuationToken: continuation_token }: NotificationParams): Promise<any>;
|
|
19
22
|
createDestination(body: DestinationRequest): Promise<any>;
|
|
20
23
|
getDestination(destinationId: string): Promise<any>;
|
|
@@ -55,7 +55,21 @@ class Notification extends index_js_1.default {
|
|
|
55
55
|
subscriptionId = encodeURIComponent(subscriptionId);
|
|
56
56
|
return this.post(`/subscription/${subscriptionId}/disable`);
|
|
57
57
|
}
|
|
58
|
-
|
|
58
|
+
createSubscriptionFilter(subscriptionId, body) {
|
|
59
|
+
subscriptionId = encodeURIComponent(subscriptionId);
|
|
60
|
+
return this.post(`/subscription/${subscriptionId}/filter`, body);
|
|
61
|
+
}
|
|
62
|
+
getSubscriptionFilter(subscriptionId, filterId) {
|
|
63
|
+
subscriptionId = encodeURIComponent(subscriptionId);
|
|
64
|
+
filterId = encodeURIComponent(filterId);
|
|
65
|
+
return this.get(`/subscription/${subscriptionId}/filter/${filterId}`);
|
|
66
|
+
}
|
|
67
|
+
deleteSubscriptionFilter(subscriptionId, filterId) {
|
|
68
|
+
subscriptionId = encodeURIComponent(subscriptionId);
|
|
69
|
+
filterId = encodeURIComponent(filterId);
|
|
70
|
+
return this.delete(`/subscription/${subscriptionId}/filter/${filterId}`);
|
|
71
|
+
}
|
|
72
|
+
testSubscription(subscriptionId) {
|
|
59
73
|
subscriptionId = encodeURIComponent(subscriptionId);
|
|
60
74
|
return this.post(`/subscription/${subscriptionId}/test`);
|
|
61
75
|
}
|
|
@@ -11,4 +11,5 @@ export default class Taxonomy extends Restful implements OpenApi<operations> {
|
|
|
11
11
|
getCompatibilityProperties(categoryTreeId: string, categoryId: string): Promise<any>;
|
|
12
12
|
getCompatibilityPropertyValues(categoryTreeId: string, categoryId: string, compatibilityProperty: string, filter?: string): Promise<any>;
|
|
13
13
|
fetchItemAspects(categoryTreeId: string): Promise<Buffer>;
|
|
14
|
+
getExpiredCategories(categoryTreeId: string): Promise<any>;
|
|
14
15
|
}
|
|
@@ -66,6 +66,10 @@ class Taxonomy extends index_js_1.default {
|
|
|
66
66
|
responseType: 'arraybuffer'
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
|
+
getExpiredCategories(categoryTreeId) {
|
|
70
|
+
categoryTreeId = encodeURIComponent(categoryTreeId);
|
|
71
|
+
return this.get(`/category_tree/${categoryTreeId}/get_expired_categories`);
|
|
72
|
+
}
|
|
69
73
|
}
|
|
70
74
|
Taxonomy.id = 'Taxonomy';
|
|
71
75
|
exports.default = Taxonomy;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { SuppressViolationRequest } from '../../../../types/index.js';
|
|
2
1
|
import { operations } from '../../../../types/restful/specs/sell_compliance_v1_oas3.js';
|
|
3
2
|
import Restful, { OpenApi } from '../../index.js';
|
|
4
3
|
export default class Compliance extends Restful implements OpenApi<operations> {
|
|
@@ -11,5 +10,4 @@ export default class Compliance extends Restful implements OpenApi<operations> {
|
|
|
11
10
|
listingId?: string;
|
|
12
11
|
limit?: number;
|
|
13
12
|
}): Promise<any>;
|
|
14
|
-
suppressViolation(body: SuppressViolationRequest): Promise<any>;
|
|
15
13
|
}
|