@dotdev/harmony-sdk 1.10.5 → 1.11.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.
@@ -9,13 +9,8 @@ export class ApiHelper {
9
9
  static async sendSoapRequest(endpoint, axiosInstance, requestBody, type = "POST") {
10
10
  const url = `${endpoint}?wsdl`;
11
11
  let response;
12
- axiosInstance.interceptors.response.use((response) => {
13
- console.log(`logged by intercepter`);
14
- console.log(response);
15
- return response;
16
- });
17
12
  try {
18
- // let response;
13
+ let response;
19
14
  switch (type) {
20
15
  case "GET":
21
16
  response = await axiosInstance.get(url, {
@@ -1 +1,3 @@
1
1
  export * from "./gift-voucher.module";
2
+ export * from './mappings';
3
+ export * from './types';
@@ -1 +1,3 @@
1
1
  export * from "./gift-voucher.module";
2
+ export * from './mappings';
3
+ export * from './types';
@@ -129,8 +129,6 @@ export class StockLookupModule {
129
129
  * @returns {Promise<Stock[]>} Array of stock response objects which correspond to Harmony API response
130
130
  */
131
131
  async stockLookup(params, sessionId) {
132
- console.debug(`stockLookup params`);
133
- console.debug(params);
134
132
  const body = mapStockLookupRequestParams(params);
135
133
  try {
136
134
  const response = await ApiHelper.sendServiceRequest(this.SERVICE_URL, [`StockLookup`, `Request`], sessionId, ServiceAlias.STOCK_LOOKUP, this.axiosInstance, body.toString());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dotdev/harmony-sdk",
3
- "version": "1.10.5",
3
+ "version": "1.11.0",
4
4
  "description": "Harmony API SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",