ebay-api 8.6.0 → 8.7.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/README.md CHANGED
@@ -21,20 +21,20 @@ It supports `client credentials grant` and `authorization code grant` \(Auth'N'A
21
21
 
22
22
  ## Changelog
23
23
 
24
- * `v8.6.0` is the latest release.
24
+ * `v8.7.0` is the latest release.
25
25
  * See [here](https://github.com/hendt/ebay-api/blob/master/CHANGELOG.md) for the full changelog.
26
26
 
27
27
  ## Implementation status
28
28
 
29
29
  ### RESTful API
30
30
 
31
- | API | Implemented |
32
- |:-------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
33
- | **Buy API** | ✔ Browse API `v1.10.0`<br>✔ Deal API `v1.3.0`<br>✔ Feed API `v1.3.1`<br>✔ Marketing API<br>✔ Offer API<br>✔ Order API<br>✔ Marketplace Insights API |
34
- | **Commerce API** | ✔ Catalog API<br>✔ Charity API `v1.2.0`<br>✔ Identity API<br>✔ Notification API `v1.2.0`<br>✔ Taxonomy API `v1.0.0`<br>✔ Translation API `v1_beta.1.4` |
35
- | **Developer API** | ✔ Analytics API |
36
- | **Post Order API** | ✔ Cancellation API<br>✔ Case Management API<br>✔ Inquiry API<br>✔ Return API |
37
- | **Sell API** | ✔ Account API `v1.9.0`<br>✔ Analytics API `v1.3.0`<br>✔ Compliance API `v1.4.1`<br>✔ Feed API<br>✔ Finance API `v1.9.0`<br>✔ Fulfillment API `v1.19.10`<br>✔ Inventory API `v1.14.0`<br>✔ Listing API<br>✔ Logistics API<br>✔ Marketing API `v1.17.0`<br>✔ Metadata API<br>✔ Negotiation API `v1.1.0`<br>✔ Recommendation API `v1.1.0` |
31
+ | API | Implemented |
32
+ |:-------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
33
+ | **Buy API** | ✔ Browse API `v1.10.0`<br>✔ Deal API `v1.3.0`<br>✔ Feed API `v1.3.1`<br>✔ Marketing API `v1_beta.1.0`<br>✔ Offer API `v1_beta.0.0`<br>✔ Order API `v1_beta.20.0`<br>✔ Marketplace Insights API `v1_beta.2.2` |
34
+ | **Commerce API** | ✔ Catalog API `v1_beta.3.1`<br>✔ Charity API `v1.2.0`<br>✔ Identity API `v1.0.0`<br>✔ Notification API `v1.2.0`<br>✔ Taxonomy API `v1.0.0`<br>✔ Translation API `v1_beta.1.4`<br>✔ Media API `v1_beta.1.0` |
35
+ | **Developer API** | ✔ Analytics API |
36
+ | **Post Order API** | ✔ Cancellation API<br>✔ Case Management API<br>✔ Inquiry API<br>✔ Return API |
37
+ | **Sell API** | ✔ Account API `v1.9.0`<br>✔ Analytics API `v1.3.0`<br>✔ Compliance API `v1.4.1`<br>✔ Feed API `v1.3.1`<br>✔ Finance API `v1.9.0`<br>✔ Fulfillment API `v1.19.10`<br>✔ Inventory API `v1.14.0`<br>✔ Listing API `v1_beta.2.1`<br>✔ Logistics API `v1_beta.0.0`<br>✔ Marketing API `v1.17.0`<br>✔ Metadata API `v1.4.2`<br>✔ Negotiation API `v1.1.0`<br>✔ Recommendation API `v1.1.0` |
38
38
 
39
39
  ### Traditional API
40
40
 
@@ -0,0 +1,11 @@
1
+ import { CreateVideoRequest, InputStream } from '../../../../types/index.js';
2
+ import { operations } from '../../../../types/restful/specs/commerce_media_v1_beta_oas3.js';
3
+ import Restful, { OpenApi } from '../../index.js';
4
+ export default class Media extends Restful implements OpenApi<operations> {
5
+ static id: string;
6
+ get basePath(): string;
7
+ get subdomain(): string;
8
+ createVideo(body?: CreateVideoRequest): Promise<any>;
9
+ getVideo(videoId: string): Promise<any>;
10
+ uploadVideo(videoId: string, body?: InputStream): Promise<any>;
11
+ }
@@ -0,0 +1,23 @@
1
+ import Restful from '../../index.js';
2
+ class Media extends Restful {
3
+ get basePath() {
4
+ return '/commerce/media/v1_beta';
5
+ }
6
+ get subdomain() {
7
+ return 'apim';
8
+ }
9
+ async createVideo(body) {
10
+ return this.post('/video', body);
11
+ }
12
+ async getVideo(videoId) {
13
+ videoId = encodeURIComponent(videoId);
14
+ return this.get(`/video/${videoId}`);
15
+ }
16
+ ;
17
+ async uploadVideo(videoId, body) {
18
+ videoId = encodeURIComponent(videoId);
19
+ return this.post(`/video/${videoId}/upload`, body);
20
+ }
21
+ }
22
+ Media.id = 'Media';
23
+ export default Media;
@@ -36,9 +36,7 @@ class Cancellation extends Restful {
36
36
  }
37
37
  search(params) {
38
38
  return this.get(`/cancellation/search`, {
39
- params: {
40
- params
41
- }
39
+ params
42
40
  });
43
41
  }
44
42
  }