@arrowsphere/api-client 3.236.0 → 3.237.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,40 +3,49 @@
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.236.0] - 2025.01.21
6
+ ## [3.237.0] - 2026.01.21
7
+
8
+ ### Added
9
+
10
+ - [contact] Add field organisation Units in get contact response payload
11
+
12
+ ## [3.236.0] - 2026.01.21
7
13
 
8
14
  ### Updated
15
+
9
16
  - Added friendlyName event type to LicenseEventActionType
10
17
 
11
- ## [3.235.0] - 2025.01.20
18
+ ## [3.235.0] - 2026.01.20
12
19
 
13
20
  ### Updated
21
+
14
22
  - [Order] Update order products entity
15
23
 
16
- ## [3.234.0] - 2025.01.19
24
+ ## [3.234.0] - 2026.01.19
17
25
 
18
26
  ### Updated
19
- - Handle the bundles in the Offers
20
27
 
28
+ - Handle the bundles in the Offers
21
29
 
22
- ## [3.233.0] - 2025.01.15
30
+ ## [3.233.0] - 2026.01.15
23
31
 
24
32
  ### Updated
33
+
25
34
  - update lib json-to-graphql-query to version 2.3.0
26
35
 
27
- ## [3.232.1] - 2025.01.14
36
+ ## [3.232.1] - 2026.01.14
28
37
 
29
38
  ### Added
30
39
 
31
40
  - [Quote] Fix mandatoryEula type
32
41
 
33
- ## [3.232.0] - 2025.01.13
42
+ ## [3.232.0] - 2026.01.13
34
43
 
35
44
  ### Added
36
45
 
37
46
  - [Quote] Provide field mandatoryEula in item program
38
47
 
39
- ## [3.231.0] - 2025.01.08
48
+ ## [3.231.0] - 2026.01.08
40
49
 
41
50
  ### Added
42
51
 
@@ -1,5 +1,6 @@
1
1
  import { AbstractEntity } from '../../abstractEntity';
2
2
  import { XcpInvitation, XcpInvitationType } from './xcpInvitation';
3
+ import { OrganizationUnits, OrganizationUnitsType } from './organizationUnits';
3
4
  export declare enum ContactFields {
4
5
  COLUMN_ID = "id",
5
6
  COLUMN_COMPANY_ID = "companyId",
@@ -13,7 +14,9 @@ export declare enum ContactFields {
13
14
  COLUMN_ROLE = "role",
14
15
  COLUMN_STATUS = "status",
15
16
  COLUMN_XAP_USERNAME = "xapUsername",
16
- COLUMN_XCP_INVITATION = "xcpInvitation"
17
+ COLUMN_IS_ACTIVE = "isActive",
18
+ COLUMN_XCP_INVITATION = "xcpInvitation",
19
+ COLUMN_ORGANIZATION_UNITS = "organizationUnits"
17
20
  }
18
21
  export declare type ContactType = {
19
22
  [ContactFields.COLUMN_ID]: number;
@@ -28,7 +31,9 @@ export declare type ContactType = {
28
31
  [ContactFields.COLUMN_ROLE]: string;
29
32
  [ContactFields.COLUMN_STATUS]: string;
30
33
  [ContactFields.COLUMN_XAP_USERNAME]?: string;
34
+ [ContactFields.COLUMN_IS_ACTIVE]: boolean;
31
35
  [ContactFields.COLUMN_XCP_INVITATION]?: XcpInvitationType;
36
+ [ContactFields.COLUMN_ORGANIZATION_UNITS]?: OrganizationUnitsType[];
32
37
  };
33
38
  export declare class Contact extends AbstractEntity<ContactType> {
34
39
  #private;
@@ -45,6 +50,8 @@ export declare class Contact extends AbstractEntity<ContactType> {
45
50
  get role(): string;
46
51
  get status(): string;
47
52
  get xapUsername(): string | undefined;
53
+ get isActive(): boolean;
48
54
  get xcpInvitation(): XcpInvitation | undefined;
55
+ get organizationUnits(): OrganizationUnits[] | undefined;
49
56
  toJSON(): ContactType;
50
57
  }
@@ -10,11 +10,12 @@ 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 _Contact_id, _Contact_companyId, _Contact_reseller, _Contact_firstname, _Contact_lastname, _Contact_email, _Contact_phone, _Contact_erpId, _Contact_type, _Contact_role, _Contact_status, _Contact_xapUsername, _Contact_xcpInvitation;
13
+ var _Contact_id, _Contact_companyId, _Contact_reseller, _Contact_firstname, _Contact_lastname, _Contact_email, _Contact_phone, _Contact_erpId, _Contact_type, _Contact_role, _Contact_status, _Contact_xapUsername, _Contact_isActive, _Contact_xcpInvitation, _Contact_organizationUnits;
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.Contact = exports.ContactFields = void 0;
16
16
  const abstractEntity_1 = require("../../abstractEntity");
17
17
  const xcpInvitation_1 = require("./xcpInvitation");
18
+ const organizationUnits_1 = require("./organizationUnits");
18
19
  var ContactFields;
19
20
  (function (ContactFields) {
20
21
  ContactFields["COLUMN_ID"] = "id";
@@ -29,7 +30,9 @@ var ContactFields;
29
30
  ContactFields["COLUMN_ROLE"] = "role";
30
31
  ContactFields["COLUMN_STATUS"] = "status";
31
32
  ContactFields["COLUMN_XAP_USERNAME"] = "xapUsername";
33
+ ContactFields["COLUMN_IS_ACTIVE"] = "isActive";
32
34
  ContactFields["COLUMN_XCP_INVITATION"] = "xcpInvitation";
35
+ ContactFields["COLUMN_ORGANIZATION_UNITS"] = "organizationUnits";
33
36
  })(ContactFields = exports.ContactFields || (exports.ContactFields = {}));
34
37
  class Contact extends abstractEntity_1.AbstractEntity {
35
38
  constructor(contactDataInput) {
@@ -46,7 +49,9 @@ class Contact extends abstractEntity_1.AbstractEntity {
46
49
  _Contact_role.set(this, void 0);
47
50
  _Contact_status.set(this, void 0);
48
51
  _Contact_xapUsername.set(this, void 0);
52
+ _Contact_isActive.set(this, void 0);
49
53
  _Contact_xcpInvitation.set(this, void 0);
54
+ _Contact_organizationUnits.set(this, void 0);
50
55
  __classPrivateFieldSet(this, _Contact_id, contactDataInput[ContactFields.COLUMN_ID], "f");
51
56
  __classPrivateFieldSet(this, _Contact_companyId, contactDataInput[ContactFields.COLUMN_COMPANY_ID], "f");
52
57
  __classPrivateFieldSet(this, _Contact_reseller, contactDataInput[ContactFields.COLUMN_RESELLER], "f");
@@ -59,9 +64,13 @@ class Contact extends abstractEntity_1.AbstractEntity {
59
64
  __classPrivateFieldSet(this, _Contact_role, contactDataInput[ContactFields.COLUMN_ROLE], "f");
60
65
  __classPrivateFieldSet(this, _Contact_status, contactDataInput[ContactFields.COLUMN_STATUS], "f");
61
66
  __classPrivateFieldSet(this, _Contact_xapUsername, contactDataInput[ContactFields.COLUMN_XAP_USERNAME], "f");
67
+ __classPrivateFieldSet(this, _Contact_isActive, contactDataInput[ContactFields.COLUMN_IS_ACTIVE], "f");
62
68
  __classPrivateFieldSet(this, _Contact_xcpInvitation, contactDataInput[ContactFields.COLUMN_XCP_INVITATION]
63
69
  ? new xcpInvitation_1.XcpInvitation(contactDataInput[ContactFields.COLUMN_XCP_INVITATION])
64
70
  : undefined, "f");
71
+ __classPrivateFieldSet(this, _Contact_organizationUnits, contactDataInput[ContactFields.COLUMN_ORGANIZATION_UNITS]
72
+ ? contactDataInput[ContactFields.COLUMN_ORGANIZATION_UNITS].map((ou) => new organizationUnits_1.OrganizationUnits(ou))
73
+ : undefined, "f");
65
74
  }
66
75
  get id() {
67
76
  return __classPrivateFieldGet(this, _Contact_id, "f");
@@ -99,11 +108,17 @@ class Contact extends abstractEntity_1.AbstractEntity {
99
108
  get xapUsername() {
100
109
  return __classPrivateFieldGet(this, _Contact_xapUsername, "f");
101
110
  }
111
+ get isActive() {
112
+ return __classPrivateFieldGet(this, _Contact_isActive, "f");
113
+ }
102
114
  get xcpInvitation() {
103
115
  return __classPrivateFieldGet(this, _Contact_xcpInvitation, "f");
104
116
  }
117
+ get organizationUnits() {
118
+ return __classPrivateFieldGet(this, _Contact_organizationUnits, "f");
119
+ }
105
120
  toJSON() {
106
- var _a;
121
+ var _a, _b;
107
122
  return {
108
123
  [ContactFields.COLUMN_ID]: this.id,
109
124
  [ContactFields.COLUMN_COMPANY_ID]: this.companyId,
@@ -117,10 +132,12 @@ class Contact extends abstractEntity_1.AbstractEntity {
117
132
  [ContactFields.COLUMN_ROLE]: this.role,
118
133
  [ContactFields.COLUMN_STATUS]: this.status,
119
134
  [ContactFields.COLUMN_XAP_USERNAME]: this.xapUsername,
135
+ [ContactFields.COLUMN_IS_ACTIVE]: this.isActive,
120
136
  [ContactFields.COLUMN_XCP_INVITATION]: (_a = this.xcpInvitation) === null || _a === void 0 ? void 0 : _a.toJSON(),
137
+ [ContactFields.COLUMN_ORGANIZATION_UNITS]: (_b = this.organizationUnits) === null || _b === void 0 ? void 0 : _b.map((ou) => ou.toJSON()),
121
138
  };
122
139
  }
123
140
  }
124
141
  exports.Contact = Contact;
125
- _Contact_id = new WeakMap(), _Contact_companyId = new WeakMap(), _Contact_reseller = new WeakMap(), _Contact_firstname = new WeakMap(), _Contact_lastname = new WeakMap(), _Contact_email = new WeakMap(), _Contact_phone = new WeakMap(), _Contact_erpId = new WeakMap(), _Contact_type = new WeakMap(), _Contact_role = new WeakMap(), _Contact_status = new WeakMap(), _Contact_xapUsername = new WeakMap(), _Contact_xcpInvitation = new WeakMap();
142
+ _Contact_id = new WeakMap(), _Contact_companyId = new WeakMap(), _Contact_reseller = new WeakMap(), _Contact_firstname = new WeakMap(), _Contact_lastname = new WeakMap(), _Contact_email = new WeakMap(), _Contact_phone = new WeakMap(), _Contact_erpId = new WeakMap(), _Contact_type = new WeakMap(), _Contact_role = new WeakMap(), _Contact_status = new WeakMap(), _Contact_xapUsername = new WeakMap(), _Contact_isActive = new WeakMap(), _Contact_xcpInvitation = new WeakMap(), _Contact_organizationUnits = new WeakMap();
126
143
  //# sourceMappingURL=contact.js.map
@@ -0,0 +1,16 @@
1
+ import { AbstractEntity } from '../../abstractEntity';
2
+ export declare enum OrganizationUnitsFields {
3
+ COLUMN_ID = "id",
4
+ COLUMN_NAME = "name"
5
+ }
6
+ export declare type OrganizationUnitsType = {
7
+ [OrganizationUnitsFields.COLUMN_ID]: number;
8
+ [OrganizationUnitsFields.COLUMN_NAME]: string;
9
+ };
10
+ export declare class OrganizationUnits extends AbstractEntity<OrganizationUnitsType> {
11
+ #private;
12
+ constructor(organizationUnitsDataInput: OrganizationUnitsType);
13
+ get id(): number;
14
+ get name(): string;
15
+ toJSON(): OrganizationUnitsType;
16
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
3
+ if (kind === "m") throw new TypeError("Private method is not writable");
4
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
6
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
7
+ };
8
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
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
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
+ };
13
+ var _OrganizationUnits_id, _OrganizationUnits_name;
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.OrganizationUnits = exports.OrganizationUnitsFields = void 0;
16
+ const abstractEntity_1 = require("../../abstractEntity");
17
+ var OrganizationUnitsFields;
18
+ (function (OrganizationUnitsFields) {
19
+ OrganizationUnitsFields["COLUMN_ID"] = "id";
20
+ OrganizationUnitsFields["COLUMN_NAME"] = "name";
21
+ })(OrganizationUnitsFields = exports.OrganizationUnitsFields || (exports.OrganizationUnitsFields = {}));
22
+ class OrganizationUnits extends abstractEntity_1.AbstractEntity {
23
+ constructor(organizationUnitsDataInput) {
24
+ super(organizationUnitsDataInput);
25
+ _OrganizationUnits_id.set(this, void 0);
26
+ _OrganizationUnits_name.set(this, void 0);
27
+ __classPrivateFieldSet(this, _OrganizationUnits_id, organizationUnitsDataInput[OrganizationUnitsFields.COLUMN_ID], "f");
28
+ __classPrivateFieldSet(this, _OrganizationUnits_name, organizationUnitsDataInput[OrganizationUnitsFields.COLUMN_NAME], "f");
29
+ }
30
+ get id() {
31
+ return __classPrivateFieldGet(this, _OrganizationUnits_id, "f");
32
+ }
33
+ get name() {
34
+ return __classPrivateFieldGet(this, _OrganizationUnits_name, "f");
35
+ }
36
+ toJSON() {
37
+ return {
38
+ [OrganizationUnitsFields.COLUMN_ID]: this.id,
39
+ [OrganizationUnitsFields.COLUMN_NAME]: this.name,
40
+ };
41
+ }
42
+ }
43
+ exports.OrganizationUnits = OrganizationUnits;
44
+ _OrganizationUnits_id = new WeakMap(), _OrganizationUnits_name = new WeakMap();
45
+ //# sourceMappingURL=organizationUnits.js.map
@@ -6,7 +6,8 @@ export declare enum XcpInvitationFields {
6
6
  COLUMN_UPDATED_AT = "updated_at",
7
7
  COLUMN_SENDER_ID = "sender_id",
8
8
  COLUMN_CONTACT_ID = "contact_id",
9
- COLUMN_POLICY = "policy"
9
+ COLUMN_POLICY = "policy",
10
+ COLUMN_EXPIRED_AT = "expiredAt"
10
11
  }
11
12
  export declare type XcpInvitationType = {
12
13
  [XcpInvitationFields.COLUMN_ID]: number;
@@ -16,6 +17,7 @@ export declare type XcpInvitationType = {
16
17
  [XcpInvitationFields.COLUMN_SENDER_ID]: number;
17
18
  [XcpInvitationFields.COLUMN_CONTACT_ID]: number;
18
19
  [XcpInvitationFields.COLUMN_POLICY]: string;
20
+ [XcpInvitationFields.COLUMN_EXPIRED_AT]: string;
19
21
  };
20
22
  export declare class XcpInvitation extends AbstractEntity<XcpInvitationType> {
21
23
  #private;
@@ -27,5 +29,6 @@ export declare class XcpInvitation extends AbstractEntity<XcpInvitationType> {
27
29
  get sender_id(): number;
28
30
  get contact_id(): number;
29
31
  get policy(): string;
32
+ get expiredAt(): string;
30
33
  toJSON(): XcpInvitationType;
31
34
  }
@@ -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 _XcpInvitation_id, _XcpInvitation_code, _XcpInvitation_created_at, _XcpInvitation_updated_at, _XcpInvitation_sender_id, _XcpInvitation_contact_id, _XcpInvitation_policy;
13
+ var _XcpInvitation_id, _XcpInvitation_code, _XcpInvitation_created_at, _XcpInvitation_updated_at, _XcpInvitation_sender_id, _XcpInvitation_contact_id, _XcpInvitation_policy, _XcpInvitation_expiredAt;
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.XcpInvitation = exports.XcpInvitationFields = void 0;
16
16
  const abstractEntity_1 = require("../../abstractEntity");
@@ -23,6 +23,7 @@ var XcpInvitationFields;
23
23
  XcpInvitationFields["COLUMN_SENDER_ID"] = "sender_id";
24
24
  XcpInvitationFields["COLUMN_CONTACT_ID"] = "contact_id";
25
25
  XcpInvitationFields["COLUMN_POLICY"] = "policy";
26
+ XcpInvitationFields["COLUMN_EXPIRED_AT"] = "expiredAt";
26
27
  })(XcpInvitationFields = exports.XcpInvitationFields || (exports.XcpInvitationFields = {}));
27
28
  class XcpInvitation extends abstractEntity_1.AbstractEntity {
28
29
  constructor(xcpInvitationDataInput) {
@@ -34,6 +35,7 @@ class XcpInvitation extends abstractEntity_1.AbstractEntity {
34
35
  _XcpInvitation_sender_id.set(this, void 0);
35
36
  _XcpInvitation_contact_id.set(this, void 0);
36
37
  _XcpInvitation_policy.set(this, void 0);
38
+ _XcpInvitation_expiredAt.set(this, void 0);
37
39
  __classPrivateFieldSet(this, _XcpInvitation_id, xcpInvitationDataInput[XcpInvitationFields.COLUMN_ID], "f");
38
40
  __classPrivateFieldSet(this, _XcpInvitation_code, xcpInvitationDataInput[XcpInvitationFields.COLUMN_CODE], "f");
39
41
  __classPrivateFieldSet(this, _XcpInvitation_created_at, xcpInvitationDataInput[XcpInvitationFields.COLUMN_CREATED_AT], "f");
@@ -41,6 +43,7 @@ class XcpInvitation extends abstractEntity_1.AbstractEntity {
41
43
  __classPrivateFieldSet(this, _XcpInvitation_sender_id, xcpInvitationDataInput[XcpInvitationFields.COLUMN_SENDER_ID], "f");
42
44
  __classPrivateFieldSet(this, _XcpInvitation_contact_id, xcpInvitationDataInput[XcpInvitationFields.COLUMN_CONTACT_ID], "f");
43
45
  __classPrivateFieldSet(this, _XcpInvitation_policy, xcpInvitationDataInput[XcpInvitationFields.COLUMN_POLICY], "f");
46
+ __classPrivateFieldSet(this, _XcpInvitation_expiredAt, xcpInvitationDataInput[XcpInvitationFields.COLUMN_EXPIRED_AT], "f");
44
47
  }
45
48
  get id() {
46
49
  return __classPrivateFieldGet(this, _XcpInvitation_id, "f");
@@ -63,6 +66,9 @@ class XcpInvitation extends abstractEntity_1.AbstractEntity {
63
66
  get policy() {
64
67
  return __classPrivateFieldGet(this, _XcpInvitation_policy, "f");
65
68
  }
69
+ get expiredAt() {
70
+ return __classPrivateFieldGet(this, _XcpInvitation_expiredAt, "f");
71
+ }
66
72
  toJSON() {
67
73
  return {
68
74
  [XcpInvitationFields.COLUMN_ID]: this.id,
@@ -72,9 +78,10 @@ class XcpInvitation extends abstractEntity_1.AbstractEntity {
72
78
  [XcpInvitationFields.COLUMN_SENDER_ID]: this.sender_id,
73
79
  [XcpInvitationFields.COLUMN_CONTACT_ID]: this.contact_id,
74
80
  [XcpInvitationFields.COLUMN_POLICY]: this.policy,
81
+ [XcpInvitationFields.COLUMN_EXPIRED_AT]: this.expiredAt,
75
82
  };
76
83
  }
77
84
  }
78
85
  exports.XcpInvitation = XcpInvitation;
79
- _XcpInvitation_id = new WeakMap(), _XcpInvitation_code = new WeakMap(), _XcpInvitation_created_at = new WeakMap(), _XcpInvitation_updated_at = new WeakMap(), _XcpInvitation_sender_id = new WeakMap(), _XcpInvitation_contact_id = new WeakMap(), _XcpInvitation_policy = new WeakMap();
86
+ _XcpInvitation_id = new WeakMap(), _XcpInvitation_code = new WeakMap(), _XcpInvitation_created_at = new WeakMap(), _XcpInvitation_updated_at = new WeakMap(), _XcpInvitation_sender_id = new WeakMap(), _XcpInvitation_contact_id = new WeakMap(), _XcpInvitation_policy = new WeakMap(), _XcpInvitation_expiredAt = new WeakMap();
80
87
  //# sourceMappingURL=xcpInvitation.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.236.0",
7
+ "version": "3.237.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",