@arrowsphere/api-client 3.20.0 → 3.20.2

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/CHANGELOG.md CHANGED
@@ -3,6 +3,30 @@
3
3
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
4
4
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5
5
 
6
+ ## [3.20.2] - 2023-03-01
7
+
8
+ ### Changed
9
+
10
+ - Change log level axios
11
+
12
+ ## [3.20.1] - 2023-02-23
13
+
14
+ ### Changed
15
+
16
+ - Fix customer contact payloads exports
17
+
18
+ ## [3.20.0] - 2023-02-22
19
+
20
+ ### Changed
21
+
22
+ - Add customerContact endpoints
23
+
24
+ ## [3.19.1] - 2023-02-21
25
+
26
+ ### Changed
27
+
28
+ - Add imageUuid on feature item campaign v2
29
+
6
30
  ## [3.19.0] - 2023-01-23
7
31
 
8
32
  ### Changed
@@ -26,14 +26,14 @@ class AxiosSingleton {
26
26
  * @param request - Axios Request
27
27
  */
28
28
  static _handleRequest(request) {
29
- console.log('AXIOS - Request : ', AxiosSingleton.cleanRequestLog(request));
29
+ console.info('AXIOS - Request : ', AxiosSingleton.cleanRequestLog(request));
30
30
  return request;
31
31
  }
32
32
  /**
33
33
  * @param response - Axios Response
34
34
  */
35
35
  static _handleResponse(response) {
36
- console.log('AXIOS - Response : ', AxiosSingleton.cleanResponseLog(response));
36
+ console.info('AXIOS - Response : ', AxiosSingleton.cleanResponseLog(response));
37
37
  return response;
38
38
  }
39
39
  /**
@@ -5,7 +5,7 @@ import { DataInvitation } from './entities/dataInvitation';
5
5
  import { DataListOrders } from '../orders';
6
6
  import { CustomerContactList } from './entities/customers/customerContact/customerContactList';
7
7
  import { CustomerContact, CustomerContactRoleType, CustomerContactTypeType } from './entities/customers/customerContact/customerContact';
8
- declare enum CustomerContactPayloadFields {
8
+ export declare enum CustomerContactPayloadFields {
9
9
  COLUMN_FIRST_NAME = "firstName",
10
10
  COLUMN_LAST_NAME = "lastName",
11
11
  COLUMN_EMAIL = "email",
@@ -14,7 +14,7 @@ declare enum CustomerContactPayloadFields {
14
14
  COLUMN_TYPE = "type",
15
15
  COLUMN_ROLE = "role"
16
16
  }
17
- declare type PostCustomerContactPayload = {
17
+ export declare type PostCustomerContactPayload = {
18
18
  [CustomerContactPayloadFields.COLUMN_FIRST_NAME]: string;
19
19
  [CustomerContactPayloadFields.COLUMN_LAST_NAME]: string;
20
20
  [CustomerContactPayloadFields.COLUMN_EMAIL]: string;
@@ -23,7 +23,7 @@ declare type PostCustomerContactPayload = {
23
23
  [CustomerContactPayloadFields.COLUMN_TYPE]: CustomerContactTypeType;
24
24
  [CustomerContactPayloadFields.COLUMN_ROLE]: CustomerContactRoleType;
25
25
  };
26
- declare type PatchCustomerContactPayload = {
26
+ export declare type PatchCustomerContactPayload = {
27
27
  [Property in keyof PostCustomerContactPayload]?: PostCustomerContactPayload[Property];
28
28
  };
29
29
  export declare class CustomersClient extends AbstractClient {
@@ -40,4 +40,3 @@ export declare class CustomersClient extends AbstractClient {
40
40
  deleteCustomerContact(customerReference: string, contactReference: string, parameters?: Parameters): Promise<void>;
41
41
  patchCustomerContact(customerReference: string, contactReference: string, payload: PatchCustomerContactPayload, parameters?: Parameters): Promise<GetResult<CustomerContact>>;
42
42
  }
43
- export {};
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CustomersClient = void 0;
3
+ exports.CustomersClient = exports.CustomerContactPayloadFields = void 0;
4
4
  const abstractClient_1 = require("../abstractClient");
5
5
  const getResult_1 = require("../getResult");
6
6
  const dataCustomers_1 = require("./entities/dataCustomers");
@@ -17,7 +17,7 @@ var CustomerContactPayloadFields;
17
17
  CustomerContactPayloadFields["COLUMN_USERNAME"] = "username";
18
18
  CustomerContactPayloadFields["COLUMN_TYPE"] = "type";
19
19
  CustomerContactPayloadFields["COLUMN_ROLE"] = "role";
20
- })(CustomerContactPayloadFields || (CustomerContactPayloadFields = {}));
20
+ })(CustomerContactPayloadFields = exports.CustomerContactPayloadFields || (exports.CustomerContactPayloadFields = {}));
21
21
  class CustomersClient extends abstractClient_1.AbstractClient {
22
22
  constructor() {
23
23
  super(...arguments);
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/ArrowSphere/nodejs-api-client.git"
6
6
  },
7
- "version": "3.20.0",
7
+ "version": "3.20.2",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",