@arrowsphere/api-client 3.85.0 → 3.86.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,11 @@
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.86.0] - 2024.01.08
7
+
8
+ ### Added
9
+ - [Customer Contact] add organization unit id in customer contact call
10
+
6
11
  ## [3.85.0] - 2024-01-05
7
12
 
8
13
  ### Added
@@ -14,7 +14,8 @@ export declare enum CustomerContactPayloadFields {
14
14
  COLUMN_PHONE = "phone",
15
15
  COLUMN_USERNAME = "username",
16
16
  COLUMN_TYPE = "type",
17
- COLUMN_ROLE = "role"
17
+ COLUMN_ROLE = "role",
18
+ COLUMN_ORGANIZATION_UNIT_ID = "organizationUnitId"
18
19
  }
19
20
  export declare type PostCustomerContactPayload = {
20
21
  [CustomerContactPayloadFields.COLUMN_FIRST_NAME]: string;
@@ -24,6 +25,7 @@ export declare type PostCustomerContactPayload = {
24
25
  [CustomerContactPayloadFields.COLUMN_PHONE]: string;
25
26
  [CustomerContactPayloadFields.COLUMN_TYPE]: CustomerContactTypeType;
26
27
  [CustomerContactPayloadFields.COLUMN_ROLE]: CustomerContactRoleType;
28
+ [CustomerContactPayloadFields.COLUMN_ORGANIZATION_UNIT_ID]?: number;
27
29
  };
28
30
  export declare type PostCustomerContact = {
29
31
  [ContactFields.COLUMN_FIRSTNAME]: string;
@@ -19,6 +19,7 @@ var CustomerContactPayloadFields;
19
19
  CustomerContactPayloadFields["COLUMN_USERNAME"] = "username";
20
20
  CustomerContactPayloadFields["COLUMN_TYPE"] = "type";
21
21
  CustomerContactPayloadFields["COLUMN_ROLE"] = "role";
22
+ CustomerContactPayloadFields["COLUMN_ORGANIZATION_UNIT_ID"] = "organizationUnitId";
22
23
  })(CustomerContactPayloadFields = exports.CustomerContactPayloadFields || (exports.CustomerContactPayloadFields = {}));
23
24
  var PostCustomerInvitationFields;
24
25
  (function (PostCustomerInvitationFields) {
@@ -25,7 +25,8 @@ export declare enum CustomerContactFields {
25
25
  COLUMN_TYPE = "type",
26
26
  COLUMN_ROLE = "role",
27
27
  COLUMN_IS_ACTIVE = "isActive",
28
- COLUMN_XCP_INVITATION = "xcpInvitation"
28
+ COLUMN_XCP_INVITATION = "xcpInvitation",
29
+ COLUMN_ORGANIZATION_UNIT_ID = "organizationUnitId"
29
30
  }
30
31
  export declare type CustomerContactType = {
31
32
  [CustomerContactFields.COLUMN_REFERENCE]: string;
@@ -38,6 +39,7 @@ export declare type CustomerContactType = {
38
39
  [CustomerContactFields.COLUMN_ROLE]: string;
39
40
  [CustomerContactFields.COLUMN_IS_ACTIVE]: boolean;
40
41
  [CustomerContactFields.COLUMN_XCP_INVITATION]?: CustomerContactXcpInvitationType;
42
+ [CustomerContactFields.COLUMN_ORGANIZATION_UNIT_ID]?: number;
41
43
  };
42
44
  export declare class CustomerContact extends AbstractEntity<CustomerContactType> {
43
45
  #private;
@@ -52,5 +54,6 @@ export declare class CustomerContact extends AbstractEntity<CustomerContactType>
52
54
  get role(): string;
53
55
  get isActive(): boolean;
54
56
  get xcpInvitation(): CustomerContactXcpInvitationType | undefined;
57
+ get organizationUnitId(): number | undefined;
55
58
  toJSON(): CustomerContactType;
56
59
  }
@@ -10,7 +10,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
10
10
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
11
11
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
12
  };
13
- var _CustomerContact_reference, _CustomerContact_firstName, _CustomerContact_lastName, _CustomerContact_email, _CustomerContact_phone, _CustomerContact_username, _CustomerContact_type, _CustomerContact_role, _CustomerContact_isActive, _CustomerContact_xcpInvitation;
13
+ var _CustomerContact_reference, _CustomerContact_firstName, _CustomerContact_lastName, _CustomerContact_email, _CustomerContact_phone, _CustomerContact_username, _CustomerContact_type, _CustomerContact_role, _CustomerContact_isActive, _CustomerContact_xcpInvitation, _CustomerContact_organizationUnitId;
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.CustomerContact = exports.CustomerContactFields = exports.CustomerContactTypeEnum = exports.CustomerContactRoleEnum = void 0;
16
16
  const abstractEntity_1 = require("../../../../abstractEntity");
@@ -42,6 +42,7 @@ var CustomerContactFields;
42
42
  CustomerContactFields["COLUMN_ROLE"] = "role";
43
43
  CustomerContactFields["COLUMN_IS_ACTIVE"] = "isActive";
44
44
  CustomerContactFields["COLUMN_XCP_INVITATION"] = "xcpInvitation";
45
+ CustomerContactFields["COLUMN_ORGANIZATION_UNIT_ID"] = "organizationUnitId";
45
46
  })(CustomerContactFields = exports.CustomerContactFields || (exports.CustomerContactFields = {}));
46
47
  class CustomerContact extends abstractEntity_1.AbstractEntity {
47
48
  constructor(getCustomerContactDataInput) {
@@ -56,6 +57,7 @@ class CustomerContact extends abstractEntity_1.AbstractEntity {
56
57
  _CustomerContact_role.set(this, void 0);
57
58
  _CustomerContact_isActive.set(this, void 0);
58
59
  _CustomerContact_xcpInvitation.set(this, void 0);
60
+ _CustomerContact_organizationUnitId.set(this, void 0);
59
61
  __classPrivateFieldSet(this, _CustomerContact_reference, getCustomerContactDataInput[CustomerContactFields.COLUMN_REFERENCE], "f");
60
62
  __classPrivateFieldSet(this, _CustomerContact_firstName, getCustomerContactDataInput[CustomerContactFields.COLUMN_FIRST_NAME], "f");
61
63
  __classPrivateFieldSet(this, _CustomerContact_lastName, getCustomerContactDataInput[CustomerContactFields.COLUMN_LAST_NAME], "f");
@@ -68,6 +70,7 @@ class CustomerContact extends abstractEntity_1.AbstractEntity {
68
70
  __classPrivateFieldSet(this, _CustomerContact_xcpInvitation, getCustomerContactDataInput[CustomerContactFields.COLUMN_XCP_INVITATION]
69
71
  ? new customerContactXcpInvitation_1.CustomerContactXcpInvitation(getCustomerContactDataInput[CustomerContactFields.COLUMN_XCP_INVITATION])
70
72
  : undefined, "f");
73
+ __classPrivateFieldSet(this, _CustomerContact_organizationUnitId, getCustomerContactDataInput[CustomerContactFields.COLUMN_ORGANIZATION_UNIT_ID], "f");
71
74
  }
72
75
  get reference() {
73
76
  return __classPrivateFieldGet(this, _CustomerContact_reference, "f");
@@ -99,6 +102,9 @@ class CustomerContact extends abstractEntity_1.AbstractEntity {
99
102
  get xcpInvitation() {
100
103
  return __classPrivateFieldGet(this, _CustomerContact_xcpInvitation, "f");
101
104
  }
105
+ get organizationUnitId() {
106
+ return __classPrivateFieldGet(this, _CustomerContact_organizationUnitId, "f");
107
+ }
102
108
  toJSON() {
103
109
  return {
104
110
  [CustomerContactFields.COLUMN_REFERENCE]: this.reference,
@@ -111,9 +117,11 @@ class CustomerContact extends abstractEntity_1.AbstractEntity {
111
117
  [CustomerContactFields.COLUMN_ROLE]: this.role,
112
118
  [CustomerContactFields.COLUMN_IS_ACTIVE]: this.isActive,
113
119
  [CustomerContactFields.COLUMN_XCP_INVITATION]: this.xcpInvitation,
120
+ [CustomerContactFields.COLUMN_ORGANIZATION_UNIT_ID]: this
121
+ .organizationUnitId,
114
122
  };
115
123
  }
116
124
  }
117
125
  exports.CustomerContact = CustomerContact;
118
- _CustomerContact_reference = new WeakMap(), _CustomerContact_firstName = new WeakMap(), _CustomerContact_lastName = new WeakMap(), _CustomerContact_email = new WeakMap(), _CustomerContact_phone = new WeakMap(), _CustomerContact_username = new WeakMap(), _CustomerContact_type = new WeakMap(), _CustomerContact_role = new WeakMap(), _CustomerContact_isActive = new WeakMap(), _CustomerContact_xcpInvitation = new WeakMap();
126
+ _CustomerContact_reference = new WeakMap(), _CustomerContact_firstName = new WeakMap(), _CustomerContact_lastName = new WeakMap(), _CustomerContact_email = new WeakMap(), _CustomerContact_phone = new WeakMap(), _CustomerContact_username = new WeakMap(), _CustomerContact_type = new WeakMap(), _CustomerContact_role = new WeakMap(), _CustomerContact_isActive = new WeakMap(), _CustomerContact_xcpInvitation = new WeakMap(), _CustomerContact_organizationUnitId = new WeakMap();
119
127
  //# sourceMappingURL=customerContact.js.map
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.85.0",
7
+ "version": "3.86.0",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",