@arrowsphere/api-client 3.375.0 → 3.377.0-rc-cpe-1

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,10 @@
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.376.0] - 2026.06.16
7
+ ### Added
8
+ - [contact] Add optional `xapInfo` field in Contact entity
9
+
6
10
  ## [3.375.0] - 2026.06.15
7
11
  ### Added
8
12
  - [graphql-api] Add `CustomFieldKey` and `CustomFieldValue` entity types with full `selectAll`/`selectOne` support
@@ -1,6 +1,7 @@
1
1
  import { AbstractEntity } from '../../abstractEntity';
2
2
  import { XcpInvitation, XcpInvitationType } from './xcpInvitation';
3
3
  import { OrganizationUnits, OrganizationUnitsType } from './organizationUnits';
4
+ import { ContactXapInfo } from '../types/ContactXapInfo';
4
5
  export declare enum ContactFields {
5
6
  COLUMN_ID = "id",
6
7
  COLUMN_COMPANY_ID = "companyId",
@@ -13,6 +14,7 @@ export declare enum ContactFields {
13
14
  COLUMN_TYPE = "type",
14
15
  COLUMN_ROLE = "role",
15
16
  COLUMN_STATUS = "status",
17
+ COLUMN_XAP_INFO = "xapInfo",
16
18
  COLUMN_XAP_USERNAME = "xapUsername",
17
19
  COLUMN_IS_ACTIVE = "isActive",
18
20
  COLUMN_XCP_INVITATION = "xcpInvitation",
@@ -31,6 +33,7 @@ export declare type ContactType = {
31
33
  [ContactFields.COLUMN_ROLE]: string;
32
34
  [ContactFields.COLUMN_STATUS]: string;
33
35
  [ContactFields.COLUMN_XAP_USERNAME]?: string;
36
+ [ContactFields.COLUMN_XAP_INFO]?: ContactXapInfo;
34
37
  [ContactFields.COLUMN_IS_ACTIVE]: boolean;
35
38
  [ContactFields.COLUMN_XCP_INVITATION]?: XcpInvitationType;
36
39
  [ContactFields.COLUMN_ORGANIZATION_UNITS]?: OrganizationUnitsType[];
@@ -49,6 +52,7 @@ export declare class Contact extends AbstractEntity<ContactType> {
49
52
  get type(): string;
50
53
  get role(): string;
51
54
  get status(): string;
55
+ get xapInfo(): ContactXapInfo | undefined;
52
56
  get xapUsername(): string | undefined;
53
57
  get isActive(): boolean;
54
58
  get xcpInvitation(): XcpInvitation | undefined;
@@ -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 _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;
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_xapInfo, _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");
@@ -29,6 +29,7 @@ var ContactFields;
29
29
  ContactFields["COLUMN_TYPE"] = "type";
30
30
  ContactFields["COLUMN_ROLE"] = "role";
31
31
  ContactFields["COLUMN_STATUS"] = "status";
32
+ ContactFields["COLUMN_XAP_INFO"] = "xapInfo";
32
33
  ContactFields["COLUMN_XAP_USERNAME"] = "xapUsername";
33
34
  ContactFields["COLUMN_IS_ACTIVE"] = "isActive";
34
35
  ContactFields["COLUMN_XCP_INVITATION"] = "xcpInvitation";
@@ -48,6 +49,7 @@ class Contact extends abstractEntity_1.AbstractEntity {
48
49
  _Contact_type.set(this, void 0);
49
50
  _Contact_role.set(this, void 0);
50
51
  _Contact_status.set(this, void 0);
52
+ _Contact_xapInfo.set(this, void 0);
51
53
  _Contact_xapUsername.set(this, void 0);
52
54
  _Contact_isActive.set(this, void 0);
53
55
  _Contact_xcpInvitation.set(this, void 0);
@@ -63,6 +65,7 @@ class Contact extends abstractEntity_1.AbstractEntity {
63
65
  __classPrivateFieldSet(this, _Contact_type, contactDataInput[ContactFields.COLUMN_TYPE], "f");
64
66
  __classPrivateFieldSet(this, _Contact_role, contactDataInput[ContactFields.COLUMN_ROLE], "f");
65
67
  __classPrivateFieldSet(this, _Contact_status, contactDataInput[ContactFields.COLUMN_STATUS], "f");
68
+ __classPrivateFieldSet(this, _Contact_xapInfo, contactDataInput[ContactFields.COLUMN_XAP_INFO], "f");
66
69
  __classPrivateFieldSet(this, _Contact_xapUsername, contactDataInput[ContactFields.COLUMN_XAP_USERNAME], "f");
67
70
  __classPrivateFieldSet(this, _Contact_isActive, contactDataInput[ContactFields.COLUMN_IS_ACTIVE], "f");
68
71
  __classPrivateFieldSet(this, _Contact_xcpInvitation, contactDataInput[ContactFields.COLUMN_XCP_INVITATION]
@@ -105,6 +108,9 @@ class Contact extends abstractEntity_1.AbstractEntity {
105
108
  get status() {
106
109
  return __classPrivateFieldGet(this, _Contact_status, "f");
107
110
  }
111
+ get xapInfo() {
112
+ return __classPrivateFieldGet(this, _Contact_xapInfo, "f");
113
+ }
108
114
  get xapUsername() {
109
115
  return __classPrivateFieldGet(this, _Contact_xapUsername, "f");
110
116
  }
@@ -131,6 +137,7 @@ class Contact extends abstractEntity_1.AbstractEntity {
131
137
  [ContactFields.COLUMN_TYPE]: this.type,
132
138
  [ContactFields.COLUMN_ROLE]: this.role,
133
139
  [ContactFields.COLUMN_STATUS]: this.status,
140
+ [ContactFields.COLUMN_XAP_INFO]: this.xapInfo,
134
141
  [ContactFields.COLUMN_XAP_USERNAME]: this.xapUsername,
135
142
  [ContactFields.COLUMN_IS_ACTIVE]: this.isActive,
136
143
  [ContactFields.COLUMN_XCP_INVITATION]: (_a = this.xcpInvitation) === null || _a === void 0 ? void 0 : _a.toJSON(),
@@ -139,5 +146,5 @@ class Contact extends abstractEntity_1.AbstractEntity {
139
146
  }
140
147
  }
141
148
  exports.Contact = Contact;
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();
149
+ _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_xapInfo = new WeakMap(), _Contact_xapUsername = new WeakMap(), _Contact_isActive = new WeakMap(), _Contact_xcpInvitation = new WeakMap(), _Contact_organizationUnits = new WeakMap();
143
150
  //# sourceMappingURL=contact.js.map
@@ -0,0 +1,26 @@
1
+ export declare type AliasInfo = {
2
+ username?: string;
3
+ providerName?: string;
4
+ email?: string;
5
+ };
6
+ export declare type ExtraData = {
7
+ name?: string;
8
+ value?: string;
9
+ application?: string;
10
+ };
11
+ export declare type ContactXapInfo = {
12
+ aliases?: AliasInfo[];
13
+ authMethods?: string[];
14
+ canSecureAccountUntil?: string;
15
+ cognitoUsername?: string;
16
+ extraData?: ExtraData[];
17
+ isEnabled?: boolean;
18
+ lastLogin?: {
19
+ date?: string;
20
+ };
21
+ policies?: string[];
22
+ rights?: string[];
23
+ scopes?: string[];
24
+ updatedAt?: string;
25
+ updatedBy?: string;
26
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ContactXapInfo.js.map
@@ -18,13 +18,14 @@ export declare enum WhoAmIResponseFields {
18
18
  COLUMN_REFERENCE = "reference",
19
19
  COLUMN_REF = "ref",
20
20
  COLUMN_BILLING_ID = "billingId",
21
- COLUMN_INTERNAL_REFERENCE = "internalReference"
21
+ COLUMN_INTERNAL_REFERENCE = "internalReference",
22
+ COLUMN_PREFERRED_CURRENCY = "preferredCurrency"
22
23
  }
23
24
  /**
24
25
  * Response data type for WhoAmI requests.
25
26
  */
26
27
  export declare type WhoAmIResponseData = {
27
- [field in WhoAmIResponseFields]: string;
28
+ [field in WhoAmIResponseFields]: field extends WhoAmIResponseFields.COLUMN_PREFERRED_CURRENCY ? string | undefined : string;
28
29
  };
29
30
  /**
30
31
  * WhoAmI response Entity
@@ -66,6 +67,7 @@ export declare class WhoAmI extends AbstractEntity<WhoAmIResponseData> {
66
67
  getRef(): string;
67
68
  getBillingId(): string;
68
69
  getInternalReference(): string;
70
+ getPreferredCurrency(): string | undefined;
69
71
  /**
70
72
  * Returns the raw JSON properties
71
73
  * @returns {@link WhoAmIResponseData}
@@ -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 _WhoAmI_companyName, _WhoAmI_addressLine1, _WhoAmI_addressLine2, _WhoAmI_zip, _WhoAmI_city, _WhoAmI_countryCode, _WhoAmI_state, _WhoAmI_receptionPhone, _WhoAmI_websiteUrl, _WhoAmI_emailContact, _WhoAmI_headcount, _WhoAmI_taxNumber, _WhoAmI_reference, _WhoAmI_ref, _WhoAmI_billingId, _WhoAmI_internalReference;
13
+ var _WhoAmI_companyName, _WhoAmI_addressLine1, _WhoAmI_addressLine2, _WhoAmI_zip, _WhoAmI_city, _WhoAmI_countryCode, _WhoAmI_state, _WhoAmI_receptionPhone, _WhoAmI_websiteUrl, _WhoAmI_emailContact, _WhoAmI_headcount, _WhoAmI_taxNumber, _WhoAmI_reference, _WhoAmI_ref, _WhoAmI_billingId, _WhoAmI_internalReference, _WhoAmI_preferredCurrency;
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.WhoAmI = exports.WhoAmIResponseFields = void 0;
16
16
  const abstractEntity_1 = require("../../abstractEntity");
@@ -35,6 +35,7 @@ var WhoAmIResponseFields;
35
35
  WhoAmIResponseFields["COLUMN_REF"] = "ref";
36
36
  WhoAmIResponseFields["COLUMN_BILLING_ID"] = "billingId";
37
37
  WhoAmIResponseFields["COLUMN_INTERNAL_REFERENCE"] = "internalReference";
38
+ WhoAmIResponseFields["COLUMN_PREFERRED_CURRENCY"] = "preferredCurrency";
38
39
  })(WhoAmIResponseFields = exports.WhoAmIResponseFields || (exports.WhoAmIResponseFields = {}));
39
40
  /**
40
41
  * WhoAmI response Entity
@@ -76,6 +77,7 @@ class WhoAmI extends abstractEntity_1.AbstractEntity {
76
77
  _WhoAmI_ref.set(this, void 0);
77
78
  _WhoAmI_billingId.set(this, void 0);
78
79
  _WhoAmI_internalReference.set(this, void 0);
80
+ _WhoAmI_preferredCurrency.set(this, void 0);
79
81
  __classPrivateFieldSet(this, _WhoAmI_companyName, data[WhoAmIResponseFields.COLUMN_COMPANY_NAME], "f");
80
82
  __classPrivateFieldSet(this, _WhoAmI_addressLine1, data[WhoAmIResponseFields.COLUMN_ADDRESS_LINE_1], "f");
81
83
  __classPrivateFieldSet(this, _WhoAmI_addressLine2, data[WhoAmIResponseFields.COLUMN_ADDRESS_LINE_2], "f");
@@ -92,6 +94,7 @@ class WhoAmI extends abstractEntity_1.AbstractEntity {
92
94
  __classPrivateFieldSet(this, _WhoAmI_ref, data[WhoAmIResponseFields.COLUMN_REF], "f");
93
95
  __classPrivateFieldSet(this, _WhoAmI_billingId, data[WhoAmIResponseFields.COLUMN_BILLING_ID], "f");
94
96
  __classPrivateFieldSet(this, _WhoAmI_internalReference, data[WhoAmIResponseFields.COLUMN_INTERNAL_REFERENCE], "f");
97
+ __classPrivateFieldSet(this, _WhoAmI_preferredCurrency, data[WhoAmIResponseFields.COLUMN_PREFERRED_CURRENCY], "f");
95
98
  }
96
99
  getCompanyName() {
97
100
  return __classPrivateFieldGet(this, _WhoAmI_companyName, "f");
@@ -141,6 +144,9 @@ class WhoAmI extends abstractEntity_1.AbstractEntity {
141
144
  getInternalReference() {
142
145
  return __classPrivateFieldGet(this, _WhoAmI_internalReference, "f");
143
146
  }
147
+ getPreferredCurrency() {
148
+ return __classPrivateFieldGet(this, _WhoAmI_preferredCurrency, "f");
149
+ }
144
150
  /**
145
151
  * Returns the raw JSON properties
146
152
  * @returns {@link WhoAmIResponseData}
@@ -163,9 +169,10 @@ class WhoAmI extends abstractEntity_1.AbstractEntity {
163
169
  [WhoAmIResponseFields.COLUMN_REF]: this.getRef(),
164
170
  [WhoAmIResponseFields.COLUMN_BILLING_ID]: this.getBillingId(),
165
171
  [WhoAmIResponseFields.COLUMN_INTERNAL_REFERENCE]: this.getInternalReference(),
172
+ [WhoAmIResponseFields.COLUMN_PREFERRED_CURRENCY]: this.getPreferredCurrency(),
166
173
  };
167
174
  }
168
175
  }
169
176
  exports.WhoAmI = WhoAmI;
170
- _WhoAmI_companyName = new WeakMap(), _WhoAmI_addressLine1 = new WeakMap(), _WhoAmI_addressLine2 = new WeakMap(), _WhoAmI_zip = new WeakMap(), _WhoAmI_city = new WeakMap(), _WhoAmI_countryCode = new WeakMap(), _WhoAmI_state = new WeakMap(), _WhoAmI_receptionPhone = new WeakMap(), _WhoAmI_websiteUrl = new WeakMap(), _WhoAmI_emailContact = new WeakMap(), _WhoAmI_headcount = new WeakMap(), _WhoAmI_taxNumber = new WeakMap(), _WhoAmI_reference = new WeakMap(), _WhoAmI_ref = new WeakMap(), _WhoAmI_billingId = new WeakMap(), _WhoAmI_internalReference = new WeakMap();
177
+ _WhoAmI_companyName = new WeakMap(), _WhoAmI_addressLine1 = new WeakMap(), _WhoAmI_addressLine2 = new WeakMap(), _WhoAmI_zip = new WeakMap(), _WhoAmI_city = new WeakMap(), _WhoAmI_countryCode = new WeakMap(), _WhoAmI_state = new WeakMap(), _WhoAmI_receptionPhone = new WeakMap(), _WhoAmI_websiteUrl = new WeakMap(), _WhoAmI_emailContact = new WeakMap(), _WhoAmI_headcount = new WeakMap(), _WhoAmI_taxNumber = new WeakMap(), _WhoAmI_reference = new WeakMap(), _WhoAmI_ref = new WeakMap(), _WhoAmI_billingId = new WeakMap(), _WhoAmI_internalReference = new WeakMap(), _WhoAmI_preferredCurrency = new WeakMap();
171
178
  //# sourceMappingURL=whoAmI.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.375.0",
7
+ "version": "3.377.0-rc-cpe-1",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",