idosell 0.4.3 → 0.4.9
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/app.d.ts +6 -1
- package/dist/gateways.d.ts +348 -338
- package/dist/helpers.js +17 -0
- package/dist/methods/getPackagesLabels.js +1 -1
- package/dist/methods/postPackagesLabels.js +5 -0
- package/dist/methods/putProductsAttachments.js +1 -1
- package/dist/methods/putProductsMarketingZones.js +2 -2
- package/dist/methods/searchOrders.js +1 -1
- package/dist/reqparams.d.ts +3269 -0
- package/dist/responses.d.ts +7062 -5408
- package/package.json +2 -2
- package/tests/putProductsAttachments.test.js +2 -2
- package/tests/putProductsMarketingZones.test.js +2 -2
- package/tests/searchProductsCategoriesIdosell.test.js +15 -0
package/dist/app.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export type RequestProxyObject = {
|
|
|
20
20
|
|
|
21
21
|
export type RequirementType = {
|
|
22
22
|
any: string[]|true
|
|
23
|
-
} | string | ((RequestProxyObject) => string|false);
|
|
23
|
+
} | string | ((arg: RequestProxyObject | Record<string,any>) => string|false);
|
|
24
24
|
|
|
25
25
|
export type GatewayRequestProxyObject = {
|
|
26
26
|
gate: {
|
|
@@ -57,6 +57,11 @@ export interface Gateway<R = JSObject, P = JSObject> {
|
|
|
57
57
|
* @description Set object as params
|
|
58
58
|
*/
|
|
59
59
|
setParams: (params: P) => this
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @description Checks if minimal parameters are provided. If not, throws an error.
|
|
63
|
+
*/
|
|
64
|
+
checkParams: () => void
|
|
60
65
|
}
|
|
61
66
|
|
|
62
67
|
export interface PagableGateway<T,R = JSObject, P = JSObject> extends Gateway<R, P> {
|