@arrowsphere/api-client 3.229.0-rc.fdi.11 → 3.229.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,11 +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.229.0] - 2025.11.25
6
+ ## [3.229.0] - 2025.12.16
7
7
 
8
8
  ### Added
9
9
 
10
- - [contact] Add field organisation Units in get contact response payload
10
+ - [Customers agreement] Add endpoint checkpoint to get CheckMicrosoftCustomerAgreement
11
11
 
12
12
  ## [3.228.0] - 2025.12.09
13
13
 
@@ -15,7 +15,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
15
15
 
16
16
  - [Project Security] Update multiple libraries to fix security vulnerabilities and add ci to check vulnerabilities
17
17
 
18
-
19
18
  ## [3.227.0] - 2025.11.26
20
19
 
21
20
  ### Added
@@ -1,6 +1,5 @@
1
1
  import { AbstractEntity } from '../../abstractEntity';
2
2
  import { XcpInvitation, XcpInvitationType } from './xcpInvitation';
3
- import { OrganizationUnits, OrganizationUnitsType } from './organizationUnits';
4
3
  export declare enum ContactFields {
5
4
  COLUMN_ID = "id",
6
5
  COLUMN_COMPANY_ID = "companyId",
@@ -14,9 +13,7 @@ export declare enum ContactFields {
14
13
  COLUMN_ROLE = "role",
15
14
  COLUMN_STATUS = "status",
16
15
  COLUMN_XAP_USERNAME = "xapUsername",
17
- COLUMN_IS_ACTIVE = "isActive",
18
- COLUMN_XCP_INVITATION = "xcpInvitation",
19
- COLUMN_ORGANIZATION_UNITS = "organizationUnits"
16
+ COLUMN_XCP_INVITATION = "xcpInvitation"
20
17
  }
21
18
  export declare type ContactType = {
22
19
  [ContactFields.COLUMN_ID]: number;
@@ -31,9 +28,7 @@ export declare type ContactType = {
31
28
  [ContactFields.COLUMN_ROLE]: string;
32
29
  [ContactFields.COLUMN_STATUS]: string;
33
30
  [ContactFields.COLUMN_XAP_USERNAME]?: string;
34
- [ContactFields.COLUMN_IS_ACTIVE]: boolean;
35
31
  [ContactFields.COLUMN_XCP_INVITATION]?: XcpInvitationType;
36
- [ContactFields.COLUMN_ORGANIZATION_UNITS]?: OrganizationUnitsType[];
37
32
  };
38
33
  export declare class Contact extends AbstractEntity<ContactType> {
39
34
  #private;
@@ -50,8 +45,6 @@ export declare class Contact extends AbstractEntity<ContactType> {
50
45
  get role(): string;
51
46
  get status(): string;
52
47
  get xapUsername(): string | undefined;
53
- get isActive(): boolean;
54
48
  get xcpInvitation(): XcpInvitation | undefined;
55
- get organizationUnits(): OrganizationUnits[] | undefined;
56
49
  toJSON(): ContactType;
57
50
  }
@@ -10,12 +10,11 @@ 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_xapUsername, _Contact_xcpInvitation;
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");
19
18
  var ContactFields;
20
19
  (function (ContactFields) {
21
20
  ContactFields["COLUMN_ID"] = "id";
@@ -30,9 +29,7 @@ var ContactFields;
30
29
  ContactFields["COLUMN_ROLE"] = "role";
31
30
  ContactFields["COLUMN_STATUS"] = "status";
32
31
  ContactFields["COLUMN_XAP_USERNAME"] = "xapUsername";
33
- ContactFields["COLUMN_IS_ACTIVE"] = "isActive";
34
32
  ContactFields["COLUMN_XCP_INVITATION"] = "xcpInvitation";
35
- ContactFields["COLUMN_ORGANIZATION_UNITS"] = "organizationUnits";
36
33
  })(ContactFields = exports.ContactFields || (exports.ContactFields = {}));
37
34
  class Contact extends abstractEntity_1.AbstractEntity {
38
35
  constructor(contactDataInput) {
@@ -49,9 +46,7 @@ class Contact extends abstractEntity_1.AbstractEntity {
49
46
  _Contact_role.set(this, void 0);
50
47
  _Contact_status.set(this, void 0);
51
48
  _Contact_xapUsername.set(this, void 0);
52
- _Contact_isActive.set(this, void 0);
53
49
  _Contact_xcpInvitation.set(this, void 0);
54
- _Contact_organizationUnits.set(this, void 0);
55
50
  __classPrivateFieldSet(this, _Contact_id, contactDataInput[ContactFields.COLUMN_ID], "f");
56
51
  __classPrivateFieldSet(this, _Contact_companyId, contactDataInput[ContactFields.COLUMN_COMPANY_ID], "f");
57
52
  __classPrivateFieldSet(this, _Contact_reseller, contactDataInput[ContactFields.COLUMN_RESELLER], "f");
@@ -64,13 +59,9 @@ class Contact extends abstractEntity_1.AbstractEntity {
64
59
  __classPrivateFieldSet(this, _Contact_role, contactDataInput[ContactFields.COLUMN_ROLE], "f");
65
60
  __classPrivateFieldSet(this, _Contact_status, contactDataInput[ContactFields.COLUMN_STATUS], "f");
66
61
  __classPrivateFieldSet(this, _Contact_xapUsername, contactDataInput[ContactFields.COLUMN_XAP_USERNAME], "f");
67
- __classPrivateFieldSet(this, _Contact_isActive, contactDataInput[ContactFields.COLUMN_IS_ACTIVE], "f");
68
62
  __classPrivateFieldSet(this, _Contact_xcpInvitation, contactDataInput[ContactFields.COLUMN_XCP_INVITATION]
69
63
  ? new xcpInvitation_1.XcpInvitation(contactDataInput[ContactFields.COLUMN_XCP_INVITATION])
70
64
  : 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");
74
65
  }
75
66
  get id() {
76
67
  return __classPrivateFieldGet(this, _Contact_id, "f");
@@ -108,17 +99,11 @@ class Contact extends abstractEntity_1.AbstractEntity {
108
99
  get xapUsername() {
109
100
  return __classPrivateFieldGet(this, _Contact_xapUsername, "f");
110
101
  }
111
- get isActive() {
112
- return __classPrivateFieldGet(this, _Contact_isActive, "f");
113
- }
114
102
  get xcpInvitation() {
115
103
  return __classPrivateFieldGet(this, _Contact_xcpInvitation, "f");
116
104
  }
117
- get organizationUnits() {
118
- return __classPrivateFieldGet(this, _Contact_organizationUnits, "f");
119
- }
120
105
  toJSON() {
121
- var _a, _b;
106
+ var _a;
122
107
  return {
123
108
  [ContactFields.COLUMN_ID]: this.id,
124
109
  [ContactFields.COLUMN_COMPANY_ID]: this.companyId,
@@ -132,12 +117,10 @@ class Contact extends abstractEntity_1.AbstractEntity {
132
117
  [ContactFields.COLUMN_ROLE]: this.role,
133
118
  [ContactFields.COLUMN_STATUS]: this.status,
134
119
  [ContactFields.COLUMN_XAP_USERNAME]: this.xapUsername,
135
- [ContactFields.COLUMN_IS_ACTIVE]: this.isActive,
136
120
  [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()),
138
121
  };
139
122
  }
140
123
  }
141
124
  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();
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();
143
126
  //# sourceMappingURL=contact.js.map
@@ -6,8 +6,7 @@ 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",
10
- COLUMN_EXPIRED_AT = "expiredAt"
9
+ COLUMN_POLICY = "policy"
11
10
  }
12
11
  export declare type XcpInvitationType = {
13
12
  [XcpInvitationFields.COLUMN_ID]: number;
@@ -17,7 +16,6 @@ export declare type XcpInvitationType = {
17
16
  [XcpInvitationFields.COLUMN_SENDER_ID]: number;
18
17
  [XcpInvitationFields.COLUMN_CONTACT_ID]: number;
19
18
  [XcpInvitationFields.COLUMN_POLICY]: string;
20
- [XcpInvitationFields.COLUMN_EXPIRED_AT]: string;
21
19
  };
22
20
  export declare class XcpInvitation extends AbstractEntity<XcpInvitationType> {
23
21
  #private;
@@ -29,6 +27,5 @@ export declare class XcpInvitation extends AbstractEntity<XcpInvitationType> {
29
27
  get sender_id(): number;
30
28
  get contact_id(): number;
31
29
  get policy(): string;
32
- get expiredAt(): string;
33
30
  toJSON(): XcpInvitationType;
34
31
  }
@@ -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, _XcpInvitation_expiredAt;
13
+ var _XcpInvitation_id, _XcpInvitation_code, _XcpInvitation_created_at, _XcpInvitation_updated_at, _XcpInvitation_sender_id, _XcpInvitation_contact_id, _XcpInvitation_policy;
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.XcpInvitation = exports.XcpInvitationFields = void 0;
16
16
  const abstractEntity_1 = require("../../abstractEntity");
@@ -23,7 +23,6 @@ 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";
27
26
  })(XcpInvitationFields = exports.XcpInvitationFields || (exports.XcpInvitationFields = {}));
28
27
  class XcpInvitation extends abstractEntity_1.AbstractEntity {
29
28
  constructor(xcpInvitationDataInput) {
@@ -35,7 +34,6 @@ class XcpInvitation extends abstractEntity_1.AbstractEntity {
35
34
  _XcpInvitation_sender_id.set(this, void 0);
36
35
  _XcpInvitation_contact_id.set(this, void 0);
37
36
  _XcpInvitation_policy.set(this, void 0);
38
- _XcpInvitation_expiredAt.set(this, void 0);
39
37
  __classPrivateFieldSet(this, _XcpInvitation_id, xcpInvitationDataInput[XcpInvitationFields.COLUMN_ID], "f");
40
38
  __classPrivateFieldSet(this, _XcpInvitation_code, xcpInvitationDataInput[XcpInvitationFields.COLUMN_CODE], "f");
41
39
  __classPrivateFieldSet(this, _XcpInvitation_created_at, xcpInvitationDataInput[XcpInvitationFields.COLUMN_CREATED_AT], "f");
@@ -43,7 +41,6 @@ class XcpInvitation extends abstractEntity_1.AbstractEntity {
43
41
  __classPrivateFieldSet(this, _XcpInvitation_sender_id, xcpInvitationDataInput[XcpInvitationFields.COLUMN_SENDER_ID], "f");
44
42
  __classPrivateFieldSet(this, _XcpInvitation_contact_id, xcpInvitationDataInput[XcpInvitationFields.COLUMN_CONTACT_ID], "f");
45
43
  __classPrivateFieldSet(this, _XcpInvitation_policy, xcpInvitationDataInput[XcpInvitationFields.COLUMN_POLICY], "f");
46
- __classPrivateFieldSet(this, _XcpInvitation_expiredAt, xcpInvitationDataInput[XcpInvitationFields.COLUMN_EXPIRED_AT], "f");
47
44
  }
48
45
  get id() {
49
46
  return __classPrivateFieldGet(this, _XcpInvitation_id, "f");
@@ -66,9 +63,6 @@ class XcpInvitation extends abstractEntity_1.AbstractEntity {
66
63
  get policy() {
67
64
  return __classPrivateFieldGet(this, _XcpInvitation_policy, "f");
68
65
  }
69
- get expiredAt() {
70
- return __classPrivateFieldGet(this, _XcpInvitation_expiredAt, "f");
71
- }
72
66
  toJSON() {
73
67
  return {
74
68
  [XcpInvitationFields.COLUMN_ID]: this.id,
@@ -78,10 +72,9 @@ class XcpInvitation extends abstractEntity_1.AbstractEntity {
78
72
  [XcpInvitationFields.COLUMN_SENDER_ID]: this.sender_id,
79
73
  [XcpInvitationFields.COLUMN_CONTACT_ID]: this.contact_id,
80
74
  [XcpInvitationFields.COLUMN_POLICY]: this.policy,
81
- [XcpInvitationFields.COLUMN_EXPIRED_AT]: this.expiredAt,
82
75
  };
83
76
  }
84
77
  }
85
78
  exports.XcpInvitation = XcpInvitation;
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();
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();
87
80
  //# sourceMappingURL=xcpInvitation.js.map
@@ -10,6 +10,7 @@ import { CustomerFields, CustomerType } from './entities/customers/customer';
10
10
  import { ContactFields } from './entities/customers/contact/contact';
11
11
  import { CustomerProvision } from './entities/customerProvision';
12
12
  import { CustomerCredentials } from './entities/customerCredentials';
13
+ import { CustomerAgreements } from './entities/customers/agreements/customerAgreements';
13
14
  export declare enum CustomerMigrationAttributeFields {
14
15
  NAME = "name",
15
16
  VALUE = "value"
@@ -177,4 +178,7 @@ export declare class CustomersClient extends AbstractRestfulClient {
177
178
  getCustomerVendorCredentials(customerReference: string, vendorReference: string, parameters?: Parameters): Promise<GetResult<CustomerCredentials>>;
178
179
  postBulkUploadCustomer(bulkActionInput: BulkActionInputType): Promise<void>;
179
180
  postExportCustomers(payload: ExportCustomersInputType): Promise<void>;
181
+ getCheckMicrosoftCustomerAgreement(parameters?: {
182
+ customerReference?: string;
183
+ } & Parameters): Promise<GetResult<CustomerAgreements>>;
180
184
  }
@@ -13,6 +13,7 @@ const customer_1 = require("./entities/customers/customer");
13
13
  const contact_1 = require("./entities/customers/contact/contact");
14
14
  const customerProvision_1 = require("./entities/customerProvision");
15
15
  const customerCredentials_1 = require("./entities/customerCredentials");
16
+ const customerAgreements_1 = require("./entities/customers/agreements/customerAgreements");
16
17
  var CustomerMigrationAttributeFields;
17
18
  (function (CustomerMigrationAttributeFields) {
18
19
  CustomerMigrationAttributeFields["NAME"] = "name";
@@ -162,6 +163,10 @@ class CustomersClient extends abstractRestfulClient_1.AbstractRestfulClient {
162
163
  this.path = '/initiate-export';
163
164
  await this.post(payload);
164
165
  }
166
+ async getCheckMicrosoftCustomerAgreement(parameters = {}) {
167
+ this.path = '/checkMicrosoftCustomerAgreement';
168
+ return new getResult_1.GetResult(customerAgreements_1.CustomerAgreements, await this.get(parameters));
169
+ }
165
170
  }
166
171
  exports.CustomersClient = CustomersClient;
167
172
  //# sourceMappingURL=customersClient.js.map
@@ -0,0 +1,13 @@
1
+ import { AbstractEntity } from '../../../../abstractEntity';
2
+ export declare enum CustomerAgreementsFields {
3
+ COLUMN_IS_MCA_VALIDATED = "isMcaValidated"
4
+ }
5
+ export declare type CustomerAgreementsType = {
6
+ [CustomerAgreementsFields.COLUMN_IS_MCA_VALIDATED]: boolean;
7
+ };
8
+ export declare class CustomerAgreements extends AbstractEntity<CustomerAgreementsType> {
9
+ #private;
10
+ constructor(customerAgreementsDataInput: CustomerAgreementsType);
11
+ get IsMcaValidated(): boolean;
12
+ toJSON(): CustomerAgreementsType;
13
+ }
@@ -0,0 +1,38 @@
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 _CustomerAgreements_isMcaValidated;
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.CustomerAgreements = exports.CustomerAgreementsFields = void 0;
16
+ const abstractEntity_1 = require("../../../../abstractEntity");
17
+ var CustomerAgreementsFields;
18
+ (function (CustomerAgreementsFields) {
19
+ CustomerAgreementsFields["COLUMN_IS_MCA_VALIDATED"] = "isMcaValidated";
20
+ })(CustomerAgreementsFields = exports.CustomerAgreementsFields || (exports.CustomerAgreementsFields = {}));
21
+ class CustomerAgreements extends abstractEntity_1.AbstractEntity {
22
+ constructor(customerAgreementsDataInput) {
23
+ super(customerAgreementsDataInput);
24
+ _CustomerAgreements_isMcaValidated.set(this, void 0);
25
+ __classPrivateFieldSet(this, _CustomerAgreements_isMcaValidated, customerAgreementsDataInput[CustomerAgreementsFields.COLUMN_IS_MCA_VALIDATED], "f");
26
+ }
27
+ get IsMcaValidated() {
28
+ return __classPrivateFieldGet(this, _CustomerAgreements_isMcaValidated, "f");
29
+ }
30
+ toJSON() {
31
+ return {
32
+ [CustomerAgreementsFields.COLUMN_IS_MCA_VALIDATED]: __classPrivateFieldGet(this, _CustomerAgreements_isMcaValidated, "f"),
33
+ };
34
+ }
35
+ }
36
+ exports.CustomerAgreements = CustomerAgreements;
37
+ _CustomerAgreements_isMcaValidated = new WeakMap();
38
+ //# sourceMappingURL=customerAgreements.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.229.0-rc.fdi.11",
7
+ "version": "3.229.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",
@@ -1,16 +0,0 @@
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
- }
@@ -1,45 +0,0 @@
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