@dotdev/apparel21-sdk
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -5,2 +5,12 @@ # Changelog | ||
### [0.0.6](https://gitlab.com/dotdevv/packages/apparel21-sdk/compare/v0.0.5...v0.0.6) (2021-04-01) | ||
### Features | ||
- use url in constructor instead of domain ([5736dc0](https://gitlab.com/dotdevv/packages/apparel21-sdk/commit/5736dc02b09183d57a04b67b99d8bbd5253104da)) | ||
### Bug Fixes | ||
- typo ([c10413f](https://gitlab.com/dotdevv/packages/apparel21-sdk/commit/c10413febc63c956fe6f57051aa9ecaf2aca34c1)) | ||
### [0.0.5](https://gitlab.com/dotdevv/packages/apparel21-sdk/compare/v0.0.4...v0.0.5) (2021-03-19) | ||
@@ -7,0 +17,0 @@ |
@@ -36,6 +36,6 @@ import { AP21Config, RequestFunction } from './common/types'; | ||
* @property {string} password: AP21 instance password | ||
* @property {string} domain: AP21 instance domain | ||
* @property {string} url: AP21 instance base url without trailing slash | ||
* @property {string} countryCode: Store country code | ||
*/ | ||
constructor({ username, password, domain, countryCode, version, }: AP21Config); | ||
constructor({ username, password, url, countryCode, version }: AP21Config); | ||
/** | ||
@@ -42,0 +42,0 @@ * Function to request data from AP21 |
@@ -30,6 +30,6 @@ "use strict"; | ||
* @property {string} password: AP21 instance password | ||
* @property {string} domain: AP21 instance domain | ||
* @property {string} url: AP21 instance base url without trailing slash | ||
* @property {string} countryCode: Store country code | ||
*/ | ||
constructor({ username, password, domain, countryCode, version, }) { | ||
constructor({ username, password, url, countryCode, version }) { | ||
/** | ||
@@ -81,3 +81,3 @@ * Function to request data from AP21 | ||
}; | ||
this.url = `https://${domain}`; | ||
this.url = url; | ||
this.username = username; | ||
@@ -84,0 +84,0 @@ this.password = password; |
@@ -13,3 +13,3 @@ export declare type RequestFunction = (config: AP21Request) => any; | ||
export interface AP21Config { | ||
domain: string; | ||
url: string; | ||
username: string; | ||
@@ -205,3 +205,3 @@ password: string; | ||
skuId: number; | ||
freestock: number; | ||
freeStock: number; | ||
}[]; | ||
@@ -208,0 +208,0 @@ }; |
{ | ||
"name": "@dotdev/apparel21-sdk", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"license": "UNLICENSED", | ||
@@ -5,0 +5,0 @@ "description": "Apparel21 Interface Library", |
Sorry, the diff of this file is not supported yet
187239