idosell 0.3.17 → 0.4.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 +1 -1
- package/changelog.md +6 -0
- package/dist/app.d.ts +4 -4
- package/dist/gates.js +2 -0
- package/dist/gateways.d.ts +232 -214
- package/dist/index.js +2 -2
- package/dist/methods/getEntries.js +1 -0
- package/dist/methods/getOrdersStatuses.js +5 -0
- package/dist/methods/searchOrders.js +1 -1
- package/dist/methods/searchOrdersUnfinished.js +1 -1
- package/dist/reqparams.d.ts +2260 -0
- package/dist/responses.d.ts +2240 -42
- package/package.json +3 -2
- package/tests/getEntries.test.js +2 -7
- package/tests/getOrdersAuctionDetails.test.js +1 -1
- package/tests/postOrdersDocumentsCreate.test.js +2 -2
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ const idosellRequest = idosell('SHOP_URL', 'API_KEY', API_VERSION)
|
|
|
13
13
|
|
|
14
14
|
**API_KEY** can be obtained in your Idosell panel.
|
|
15
15
|
**SHOP_URL** is the base URI of your shop.
|
|
16
|
-
**API_VERSION** version of the API to call, current default version is **
|
|
16
|
+
**API_VERSION** version of the API to call, current default version is **v6**
|
|
17
17
|
Here are some examples:
|
|
18
18
|
```
|
|
19
19
|
https://yourdomain.com
|
package/changelog.md
CHANGED
|
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.3.20] - 2025-08-23
|
|
9
|
+
### Changed
|
|
10
|
+
- Updated default version to v6.3
|
|
11
|
+
- Improved types
|
|
12
|
+
|
|
13
|
+
|
|
8
14
|
## [0.3.17] - 2025-08-02
|
|
9
15
|
### Changed
|
|
10
16
|
- Updated default version to v6
|
package/dist/app.d.ts
CHANGED
|
@@ -40,7 +40,7 @@ export type GatewayRequestProxyObject = {
|
|
|
40
40
|
req?: RequirementType[],
|
|
41
41
|
} & RequestProxyObject;
|
|
42
42
|
|
|
43
|
-
export interface Gateway<R = JSObject> {
|
|
43
|
+
export interface Gateway<R = JSObject, P = JSObject> {
|
|
44
44
|
/**
|
|
45
45
|
* Executes the query to designated API endpoint
|
|
46
46
|
* @param options Use options: log - to console log params, url and method, logPage - to console log current page in a loop
|
|
@@ -51,12 +51,12 @@ export interface Gateway<R = JSObject> {
|
|
|
51
51
|
/**
|
|
52
52
|
* @returns Object with currently mapped parameters
|
|
53
53
|
*/
|
|
54
|
-
getParams: () =>
|
|
54
|
+
getParams: () => P,
|
|
55
55
|
|
|
56
56
|
/**
|
|
57
57
|
* @description Set object as params
|
|
58
58
|
*/
|
|
59
|
-
setParams: (params:
|
|
59
|
+
setParams: (params: P) => this
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
export interface PagableGateway<T,R = JSObject> extends Gateway<R> {
|
|
@@ -79,7 +79,7 @@ export interface PagableGateway<T,R = JSObject> extends Gateway<R> {
|
|
|
79
79
|
hasNext: () => boolean
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
export interface AppendableGateway<T,R = JSObject> extends Gateway<R> {
|
|
82
|
+
export interface AppendableGateway<T,R = JSObject, P = JSObject> extends Gateway<R, P> {
|
|
83
83
|
/**
|
|
84
84
|
* Start creating next item in list
|
|
85
85
|
*/
|
package/dist/gates.js
CHANGED
|
@@ -127,6 +127,7 @@ import putOrdersProductsSerialNumbers from "./methods/putOrdersProductsSerialNum
|
|
|
127
127
|
import putOrdersProfitMargin from "./methods/putOrdersProfitMargin.js";
|
|
128
128
|
import getOrdersProfitability from "./methods/getOrdersProfitability.js";
|
|
129
129
|
import putOrdersShippingCosts from "./methods/putOrdersShippingCosts.js";
|
|
130
|
+
import getOrdersStatuses from "./methods/getOrdersStatuses.js";
|
|
130
131
|
import searchOrdersUnfinished from "./methods/searchOrdersUnfinished.js";
|
|
131
132
|
import getOrdersWarehouse from "./methods/getOrdersWarehouse.js";
|
|
132
133
|
import putOrdersWarehouse from "./methods/putOrdersWarehouse.js";
|
|
@@ -446,6 +447,7 @@ const gates = {
|
|
|
446
447
|
putOrdersProfitMargin,
|
|
447
448
|
getOrdersProfitability,
|
|
448
449
|
putOrdersShippingCosts,
|
|
450
|
+
getOrdersStatuses,
|
|
449
451
|
searchOrdersUnfinished,
|
|
450
452
|
getOrdersWarehouse,
|
|
451
453
|
putOrdersWarehouse,
|