@arrowsphere/api-client 3.101.0-rc.lth.4 → 3.101.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
@@ -2,15 +2,16 @@
2
2
 
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.101.0] - 2024.03.19
6
7
 
7
8
  ### Added
8
9
 
9
- - [customer/contact] add organization object in customer contact payload
10
-
11
- ### Updated
10
+ - [licenses] add new field configs and warnings
11
+ - [licenses] add new endpoint to get daily consumption predictions
12
12
 
13
- - Add sommes configs for IDE
13
+ ### Fixed
14
+ - [licenses] fixes endpoint to post configs
14
15
 
15
16
  ## [3.100.0] - 2024.02.27
16
17
 
@@ -0,0 +1,37 @@
1
+ import { AbstractEntity } from '../../../abstractEntity';
2
+ export declare enum ConsumptionDailyPredictionFields {
3
+ COLUMN_CURRENCY = "currency",
4
+ COLUMN_UPDATED_AT = "updatedAt",
5
+ COLUMN_LICENSE_REFERENCE = "licenseReference",
6
+ COLUMN_PREDICTIONS = "predictions"
7
+ }
8
+ export declare enum DailyPredictionFields {
9
+ COLUMN_DATE = "date",
10
+ COLUMN_AMOUNT = "amount"
11
+ }
12
+ export declare type DailyPredictionType = {
13
+ [DailyPredictionFields.COLUMN_DATE]: string;
14
+ [DailyPredictionFields.COLUMN_AMOUNT]: number;
15
+ };
16
+ export declare type ConsumptionDailyPredictionType = {
17
+ [ConsumptionDailyPredictionFields.COLUMN_CURRENCY]: string;
18
+ [ConsumptionDailyPredictionFields.COLUMN_UPDATED_AT]: string;
19
+ [ConsumptionDailyPredictionFields.COLUMN_LICENSE_REFERENCE]: string;
20
+ [ConsumptionDailyPredictionFields.COLUMN_PREDICTIONS]: DailyPredictionType[];
21
+ };
22
+ export declare class DailyPrediction extends AbstractEntity<DailyPredictionType> {
23
+ #private;
24
+ constructor(data: DailyPredictionType);
25
+ get date(): string;
26
+ get amount(): number;
27
+ toJSON(): DailyPredictionType;
28
+ }
29
+ export declare class ConsumptionDailyPrediction extends AbstractEntity<ConsumptionDailyPredictionType> {
30
+ #private;
31
+ constructor(data: ConsumptionDailyPredictionType);
32
+ get currency(): string;
33
+ get updatedAt(): string;
34
+ get licenseReference(): string;
35
+ get predictions(): DailyPrediction[];
36
+ toJSON(): ConsumptionDailyPredictionType;
37
+ }
@@ -0,0 +1,92 @@
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 _DailyPrediction_date, _DailyPrediction_amount, _ConsumptionDailyPrediction_currency, _ConsumptionDailyPrediction_updatedAt, _ConsumptionDailyPrediction_licenseReference, _ConsumptionDailyPrediction_predictions;
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.ConsumptionDailyPrediction = exports.DailyPrediction = exports.DailyPredictionFields = exports.ConsumptionDailyPredictionFields = void 0;
16
+ const abstractEntity_1 = require("../../../abstractEntity");
17
+ var ConsumptionDailyPredictionFields;
18
+ (function (ConsumptionDailyPredictionFields) {
19
+ ConsumptionDailyPredictionFields["COLUMN_CURRENCY"] = "currency";
20
+ ConsumptionDailyPredictionFields["COLUMN_UPDATED_AT"] = "updatedAt";
21
+ ConsumptionDailyPredictionFields["COLUMN_LICENSE_REFERENCE"] = "licenseReference";
22
+ ConsumptionDailyPredictionFields["COLUMN_PREDICTIONS"] = "predictions";
23
+ })(ConsumptionDailyPredictionFields = exports.ConsumptionDailyPredictionFields || (exports.ConsumptionDailyPredictionFields = {}));
24
+ var DailyPredictionFields;
25
+ (function (DailyPredictionFields) {
26
+ DailyPredictionFields["COLUMN_DATE"] = "date";
27
+ DailyPredictionFields["COLUMN_AMOUNT"] = "amount";
28
+ })(DailyPredictionFields = exports.DailyPredictionFields || (exports.DailyPredictionFields = {}));
29
+ class DailyPrediction extends abstractEntity_1.AbstractEntity {
30
+ constructor(data) {
31
+ super(data);
32
+ _DailyPrediction_date.set(this, void 0);
33
+ _DailyPrediction_amount.set(this, void 0);
34
+ __classPrivateFieldSet(this, _DailyPrediction_date, data[DailyPredictionFields.COLUMN_DATE], "f");
35
+ __classPrivateFieldSet(this, _DailyPrediction_amount, data[DailyPredictionFields.COLUMN_AMOUNT], "f");
36
+ }
37
+ get date() {
38
+ return __classPrivateFieldGet(this, _DailyPrediction_date, "f");
39
+ }
40
+ get amount() {
41
+ return __classPrivateFieldGet(this, _DailyPrediction_amount, "f");
42
+ }
43
+ toJSON() {
44
+ return {
45
+ [DailyPredictionFields.COLUMN_DATE]: this.date,
46
+ [DailyPredictionFields.COLUMN_AMOUNT]: this.amount,
47
+ };
48
+ }
49
+ }
50
+ exports.DailyPrediction = DailyPrediction;
51
+ _DailyPrediction_date = new WeakMap(), _DailyPrediction_amount = new WeakMap();
52
+ class ConsumptionDailyPrediction extends abstractEntity_1.AbstractEntity {
53
+ constructor(data) {
54
+ var _a;
55
+ super(data);
56
+ _ConsumptionDailyPrediction_currency.set(this, void 0);
57
+ _ConsumptionDailyPrediction_updatedAt.set(this, void 0);
58
+ _ConsumptionDailyPrediction_licenseReference.set(this, void 0);
59
+ _ConsumptionDailyPrediction_predictions.set(this, void 0);
60
+ __classPrivateFieldSet(this, _ConsumptionDailyPrediction_currency, data[ConsumptionDailyPredictionFields.COLUMN_CURRENCY], "f");
61
+ __classPrivateFieldSet(this, _ConsumptionDailyPrediction_updatedAt, data[ConsumptionDailyPredictionFields.COLUMN_UPDATED_AT], "f");
62
+ __classPrivateFieldSet(this, _ConsumptionDailyPrediction_licenseReference, data[ConsumptionDailyPredictionFields.COLUMN_LICENSE_REFERENCE], "f");
63
+ __classPrivateFieldSet(this, _ConsumptionDailyPrediction_predictions, data[ConsumptionDailyPredictionFields.COLUMN_PREDICTIONS]
64
+ ? (_a = data[ConsumptionDailyPredictionFields.COLUMN_PREDICTIONS]) === null || _a === void 0 ? void 0 : _a.map((v) => new DailyPrediction(v))
65
+ : [], "f");
66
+ data[ConsumptionDailyPredictionFields.COLUMN_PREDICTIONS];
67
+ }
68
+ get currency() {
69
+ return __classPrivateFieldGet(this, _ConsumptionDailyPrediction_currency, "f");
70
+ }
71
+ get updatedAt() {
72
+ return __classPrivateFieldGet(this, _ConsumptionDailyPrediction_updatedAt, "f");
73
+ }
74
+ get licenseReference() {
75
+ return __classPrivateFieldGet(this, _ConsumptionDailyPrediction_licenseReference, "f");
76
+ }
77
+ get predictions() {
78
+ return __classPrivateFieldGet(this, _ConsumptionDailyPrediction_predictions, "f");
79
+ }
80
+ toJSON() {
81
+ return {
82
+ [ConsumptionDailyPredictionFields.COLUMN_CURRENCY]: this.currency,
83
+ [ConsumptionDailyPredictionFields.COLUMN_UPDATED_AT]: this.updatedAt,
84
+ [ConsumptionDailyPredictionFields.COLUMN_LICENSE_REFERENCE]: this
85
+ .licenseReference,
86
+ [ConsumptionDailyPredictionFields.COLUMN_PREDICTIONS]: this.predictions.map((v) => v.toJSON()),
87
+ };
88
+ }
89
+ }
90
+ exports.ConsumptionDailyPrediction = ConsumptionDailyPrediction;
91
+ _ConsumptionDailyPrediction_currency = new WeakMap(), _ConsumptionDailyPrediction_updatedAt = new WeakMap(), _ConsumptionDailyPrediction_licenseReference = new WeakMap(), _ConsumptionDailyPrediction_predictions = new WeakMap();
92
+ //# sourceMappingURL=consumptionDailyPrediction.js.map
@@ -4,4 +4,5 @@ export * from './entities/bi/top/top';
4
4
  export * from './entities/bi/consumptionBI';
5
5
  export * from './entities/consumption/consumptionDownloadRequest';
6
6
  export * from './entities/consumption/consumptionBudget';
7
+ export * from './entities/consumption/consumptionDailyPrediction';
7
8
  export * from './consumptionClient';
@@ -20,5 +20,6 @@ __exportStar(require("./entities/bi/top/top"), exports);
20
20
  __exportStar(require("./entities/bi/consumptionBI"), exports);
21
21
  __exportStar(require("./entities/consumption/consumptionDownloadRequest"), exports);
22
22
  __exportStar(require("./entities/consumption/consumptionBudget"), exports);
23
+ __exportStar(require("./entities/consumption/consumptionDailyPrediction"), exports);
23
24
  __exportStar(require("./consumptionClient"), exports);
24
25
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,5 @@
1
1
  import { AbstractEntity } from '../../../../abstractEntity';
2
- import { CustomerContactXcpInvitation, CustomerContactXcpInvitationType } from './customerContactXcpInvitation';
3
- import { CustomerContactOrganizationUnit, CustomerContactOrganizationUnitType } from './customerContactOrganizationUnit';
2
+ import { CustomerContactXcpInvitationType } from './customerContactXcpInvitation';
4
3
  export declare type CustomerContactRoleType = CustomerContactRoleEnum | string;
5
4
  export declare enum CustomerContactRoleEnum {
6
5
  PRIMARY = "primary",
@@ -27,8 +26,7 @@ export declare enum CustomerContactFields {
27
26
  COLUMN_ROLE = "role",
28
27
  COLUMN_IS_ACTIVE = "isActive",
29
28
  COLUMN_XCP_INVITATION = "xcpInvitation",
30
- COLUMN_ORGANIZATION_UNIT_ID = "organizationUnitId",
31
- COLUMN_ORGANIZATION_UNITS = "organizationUnits"
29
+ COLUMN_ORGANIZATION_UNIT_ID = "organizationUnitId"
32
30
  }
33
31
  export declare type CustomerContactType = {
34
32
  [CustomerContactFields.COLUMN_REFERENCE]: string;
@@ -42,7 +40,6 @@ export declare type CustomerContactType = {
42
40
  [CustomerContactFields.COLUMN_IS_ACTIVE]: boolean;
43
41
  [CustomerContactFields.COLUMN_XCP_INVITATION]?: CustomerContactXcpInvitationType;
44
42
  [CustomerContactFields.COLUMN_ORGANIZATION_UNIT_ID]?: number;
45
- [CustomerContactFields.COLUMN_ORGANIZATION_UNITS]: CustomerContactOrganizationUnitType[] | [];
46
43
  };
47
44
  export declare class CustomerContact extends AbstractEntity<CustomerContactType> {
48
45
  #private;
@@ -56,8 +53,7 @@ export declare class CustomerContact extends AbstractEntity<CustomerContactType>
56
53
  get type(): string;
57
54
  get role(): string;
58
55
  get isActive(): boolean;
59
- get xcpInvitation(): CustomerContactXcpInvitation | undefined;
56
+ get xcpInvitation(): CustomerContactXcpInvitationType | undefined;
60
57
  get organizationUnitId(): number | undefined;
61
- get organizationUnits(): CustomerContactOrganizationUnit[] | [];
62
58
  toJSON(): CustomerContactType;
63
59
  }
@@ -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 _CustomerContact_reference, _CustomerContact_firstName, _CustomerContact_lastName, _CustomerContact_email, _CustomerContact_phone, _CustomerContact_username, _CustomerContact_type, _CustomerContact_role, _CustomerContact_isActive, _CustomerContact_xcpInvitation, _CustomerContact_organizationUnitId, _CustomerContact_organizationUnits;
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");
17
17
  const customerContactXcpInvitation_1 = require("./customerContactXcpInvitation");
18
- const customerContactOrganizationUnit_1 = require("./customerContactOrganizationUnit");
19
18
  var CustomerContactRoleEnum;
20
19
  (function (CustomerContactRoleEnum) {
21
20
  CustomerContactRoleEnum["PRIMARY"] = "primary";
@@ -44,7 +43,6 @@ var CustomerContactFields;
44
43
  CustomerContactFields["COLUMN_IS_ACTIVE"] = "isActive";
45
44
  CustomerContactFields["COLUMN_XCP_INVITATION"] = "xcpInvitation";
46
45
  CustomerContactFields["COLUMN_ORGANIZATION_UNIT_ID"] = "organizationUnitId";
47
- CustomerContactFields["COLUMN_ORGANIZATION_UNITS"] = "organizationUnits";
48
46
  })(CustomerContactFields = exports.CustomerContactFields || (exports.CustomerContactFields = {}));
49
47
  class CustomerContact extends abstractEntity_1.AbstractEntity {
50
48
  constructor(getCustomerContactDataInput) {
@@ -60,7 +58,6 @@ class CustomerContact extends abstractEntity_1.AbstractEntity {
60
58
  _CustomerContact_isActive.set(this, void 0);
61
59
  _CustomerContact_xcpInvitation.set(this, void 0);
62
60
  _CustomerContact_organizationUnitId.set(this, void 0);
63
- _CustomerContact_organizationUnits.set(this, void 0);
64
61
  __classPrivateFieldSet(this, _CustomerContact_reference, getCustomerContactDataInput[CustomerContactFields.COLUMN_REFERENCE], "f");
65
62
  __classPrivateFieldSet(this, _CustomerContact_firstName, getCustomerContactDataInput[CustomerContactFields.COLUMN_FIRST_NAME], "f");
66
63
  __classPrivateFieldSet(this, _CustomerContact_lastName, getCustomerContactDataInput[CustomerContactFields.COLUMN_LAST_NAME], "f");
@@ -74,9 +71,6 @@ class CustomerContact extends abstractEntity_1.AbstractEntity {
74
71
  ? new customerContactXcpInvitation_1.CustomerContactXcpInvitation(getCustomerContactDataInput[CustomerContactFields.COLUMN_XCP_INVITATION])
75
72
  : undefined, "f");
76
73
  __classPrivateFieldSet(this, _CustomerContact_organizationUnitId, getCustomerContactDataInput[CustomerContactFields.COLUMN_ORGANIZATION_UNIT_ID], "f");
77
- __classPrivateFieldSet(this, _CustomerContact_organizationUnits, getCustomerContactDataInput[CustomerContactFields.COLUMN_ORGANIZATION_UNITS].map((organizationUnit) => {
78
- return new customerContactOrganizationUnit_1.CustomerContactOrganizationUnit(organizationUnit);
79
- }), "f");
80
74
  }
81
75
  get reference() {
82
76
  return __classPrivateFieldGet(this, _CustomerContact_reference, "f");
@@ -111,9 +105,6 @@ class CustomerContact extends abstractEntity_1.AbstractEntity {
111
105
  get organizationUnitId() {
112
106
  return __classPrivateFieldGet(this, _CustomerContact_organizationUnitId, "f");
113
107
  }
114
- get organizationUnits() {
115
- return __classPrivateFieldGet(this, _CustomerContact_organizationUnits, "f");
116
- }
117
108
  toJSON() {
118
109
  return {
119
110
  [CustomerContactFields.COLUMN_REFERENCE]: this.reference,
@@ -128,12 +119,9 @@ class CustomerContact extends abstractEntity_1.AbstractEntity {
128
119
  [CustomerContactFields.COLUMN_XCP_INVITATION]: this.xcpInvitation,
129
120
  [CustomerContactFields.COLUMN_ORGANIZATION_UNIT_ID]: this
130
121
  .organizationUnitId,
131
- [CustomerContactFields.COLUMN_ORGANIZATION_UNITS]: this.organizationUnits.map((organizationUnit) => {
132
- return organizationUnit.toJSON();
133
- }),
134
122
  };
135
123
  }
136
124
  }
137
125
  exports.CustomerContact = CustomerContact;
138
- _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(), _CustomerContact_organizationUnits = 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();
139
127
  //# sourceMappingURL=customerContact.js.map
@@ -11,6 +11,8 @@ import { ExtraDataResult, ExtraDataType } from './extraDataGetResult';
11
11
  import { PriceBandData, PriceBandGetResult } from './priceBandGetResult';
12
12
  import { RatesGetData, RatesGetResult } from './ratesGetResult';
13
13
  import { RelationGetData, RelationGetResult } from './relationGetResult';
14
+ import { ConfigFindResult, ConfigFindResultData } from '../license/configFindResult';
15
+ import { WarningFindResult, WarningFindResultData } from '../license/warningFindResult';
14
16
  export declare enum LicenseGetFields {
15
17
  COLUMN_LICENSE_ID = "license_id",
16
18
  COLUMN_PARENT_LICENSE_ID = "parent_license_id",
@@ -57,7 +59,9 @@ export declare enum LicenseGetFields {
57
59
  COLUMN_RATES = "rates",
58
60
  COLUMN_ORGANIZATION_UNIT_ID = "organizationUnitId",
59
61
  COLUMN_RELATION = "relation",
60
- COLUMN_MARKET_SEGMENT = "marketSegment"
62
+ COLUMN_MARKET_SEGMENT = "marketSegment",
63
+ COLUMN_CONFIGS = "configs",
64
+ COLUMN_WARNINGS = "warnings"
61
65
  }
62
66
  export declare type LicenseGetData = {
63
67
  [LicenseGetFields.COLUMN_LICENSE_ID]: string;
@@ -106,6 +110,8 @@ export declare type LicenseGetData = {
106
110
  [LicenseGetFields.COLUMN_ORGANIZATION_UNIT_ID]?: number;
107
111
  [LicenseGetFields.COLUMN_RELATION]?: RelationGetData[];
108
112
  [LicenseGetFields.COLUMN_MARKET_SEGMENT]?: string | null;
113
+ [LicenseGetFields.COLUMN_CONFIGS]?: Array<ConfigFindResultData> | null;
114
+ [LicenseGetFields.COLUMN_WARNINGS]?: Array<WarningFindResultData> | null;
109
115
  };
110
116
  export declare class LicenseGetResult extends AbstractEntity<LicenseGetData> {
111
117
  #private;
@@ -156,5 +162,7 @@ export declare class LicenseGetResult extends AbstractEntity<LicenseGetData> {
156
162
  get organizationUnitId(): number | undefined;
157
163
  get relation(): RelationGetResult[] | undefined;
158
164
  get marketSegment(): string | null | undefined;
165
+ get configs(): Array<ConfigFindResult> | null | undefined;
166
+ get warnings(): Array<WarningFindResult> | null | undefined;
159
167
  toJSON(): LicenseGetData;
160
168
  }
@@ -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 _LicenseGetResult_license_id, _LicenseGetResult_parent_license_id, _LicenseGetResult_friendlyName, _LicenseGetResult_customer_ref, _LicenseGetResult_state, _LicenseGetResult_statusCode, _LicenseGetResult_isTrial, _LicenseGetResult_isAddon, _LicenseGetResult_service_ref, _LicenseGetResult_sku, _LicenseGetResult_name, _LicenseGetResult_seats, _LicenseGetResult_activeSeats, _LicenseGetResult_security, _LicenseGetResult_activation_datetime, _LicenseGetResult_expiry_datetime, _LicenseGetResult_autoRenew, _LicenseGetResult_marketplace, _LicenseGetResult_message, _LicenseGetResult_actions, _LicenseGetResult_actionMessages, _LicenseGetResult_order_reference, _LicenseGetResult_order, _LicenseGetResult_vendor_license_id, _LicenseGetResult_periodicity, _LicenseGetResult_periodicityCode, _LicenseGetResult_term, _LicenseGetResult_termCode, _LicenseGetResult_category, _LicenseGetResult_program, _LicenseGetResult_associatedSubscriptionProgram, _LicenseGetResult_price, _LicenseGetResult_arrowSubCategories, _LicenseGetResult_nextRenewalDate, _LicenseGetResult_promotion, _LicenseGetResult_assets, _LicenseGetResult_vendorBillingId, _LicenseGetResult_extraData, _LicenseGetResult_priceBand, _LicenseGetResult_vendorCode, _LicenseGetResult_vendor_code, _LicenseGetResult_vendorSku, _LicenseGetResult_rates, _LicenseGetResult_organizationUnitId, _LicenseGetResult_relation, _LicenseGetResult_marketSegment;
13
+ var _LicenseGetResult_license_id, _LicenseGetResult_parent_license_id, _LicenseGetResult_friendlyName, _LicenseGetResult_customer_ref, _LicenseGetResult_state, _LicenseGetResult_statusCode, _LicenseGetResult_isTrial, _LicenseGetResult_isAddon, _LicenseGetResult_service_ref, _LicenseGetResult_sku, _LicenseGetResult_name, _LicenseGetResult_seats, _LicenseGetResult_activeSeats, _LicenseGetResult_security, _LicenseGetResult_activation_datetime, _LicenseGetResult_expiry_datetime, _LicenseGetResult_autoRenew, _LicenseGetResult_marketplace, _LicenseGetResult_message, _LicenseGetResult_actions, _LicenseGetResult_actionMessages, _LicenseGetResult_order_reference, _LicenseGetResult_order, _LicenseGetResult_vendor_license_id, _LicenseGetResult_periodicity, _LicenseGetResult_periodicityCode, _LicenseGetResult_term, _LicenseGetResult_termCode, _LicenseGetResult_category, _LicenseGetResult_program, _LicenseGetResult_associatedSubscriptionProgram, _LicenseGetResult_price, _LicenseGetResult_arrowSubCategories, _LicenseGetResult_nextRenewalDate, _LicenseGetResult_promotion, _LicenseGetResult_assets, _LicenseGetResult_vendorBillingId, _LicenseGetResult_extraData, _LicenseGetResult_priceBand, _LicenseGetResult_vendorCode, _LicenseGetResult_vendor_code, _LicenseGetResult_vendorSku, _LicenseGetResult_rates, _LicenseGetResult_organizationUnitId, _LicenseGetResult_relation, _LicenseGetResult_marketSegment, _LicenseGetResult_configs, _LicenseGetResult_warnings;
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.LicenseGetResult = exports.LicenseGetFields = void 0;
16
16
  const actionsGetResult_1 = require("./actionsGetResult");
@@ -26,6 +26,8 @@ const extraDataGetResult_1 = require("./extraDataGetResult");
26
26
  const priceBandGetResult_1 = require("./priceBandGetResult");
27
27
  const ratesGetResult_1 = require("./ratesGetResult");
28
28
  const relationGetResult_1 = require("./relationGetResult");
29
+ const configFindResult_1 = require("../license/configFindResult");
30
+ const warningFindResult_1 = require("../license/warningFindResult");
29
31
  var LicenseGetFields;
30
32
  (function (LicenseGetFields) {
31
33
  LicenseGetFields["COLUMN_LICENSE_ID"] = "license_id";
@@ -74,10 +76,12 @@ var LicenseGetFields;
74
76
  LicenseGetFields["COLUMN_ORGANIZATION_UNIT_ID"] = "organizationUnitId";
75
77
  LicenseGetFields["COLUMN_RELATION"] = "relation";
76
78
  LicenseGetFields["COLUMN_MARKET_SEGMENT"] = "marketSegment";
79
+ LicenseGetFields["COLUMN_CONFIGS"] = "configs";
80
+ LicenseGetFields["COLUMN_WARNINGS"] = "warnings";
77
81
  })(LicenseGetFields = exports.LicenseGetFields || (exports.LicenseGetFields = {}));
78
82
  class LicenseGetResult extends abstractEntity_1.AbstractEntity {
79
83
  constructor(licenseGetDataInput) {
80
- var _a, _b, _c;
84
+ var _a, _b, _c, _d, _e;
81
85
  super(licenseGetDataInput);
82
86
  _LicenseGetResult_license_id.set(this, void 0);
83
87
  _LicenseGetResult_parent_license_id.set(this, void 0);
@@ -125,6 +129,8 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
125
129
  _LicenseGetResult_organizationUnitId.set(this, void 0);
126
130
  _LicenseGetResult_relation.set(this, void 0);
127
131
  _LicenseGetResult_marketSegment.set(this, void 0);
132
+ _LicenseGetResult_configs.set(this, void 0);
133
+ _LicenseGetResult_warnings.set(this, void 0);
128
134
  __classPrivateFieldSet(this, _LicenseGetResult_license_id, licenseGetDataInput[LicenseGetFields.COLUMN_LICENSE_ID], "f");
129
135
  __classPrivateFieldSet(this, _LicenseGetResult_parent_license_id, licenseGetDataInput[LicenseGetFields.COLUMN_PARENT_LICENSE_ID], "f");
130
136
  __classPrivateFieldSet(this, _LicenseGetResult_friendlyName, licenseGetDataInput[LicenseGetFields.COLUMN_FRIENDLY_NAME], "f");
@@ -185,6 +191,8 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
185
191
  ? (_c = licenseGetDataInput[LicenseGetFields.COLUMN_RELATION]) === null || _c === void 0 ? void 0 : _c.map((v) => new relationGetResult_1.RelationGetResult(v))
186
192
  : undefined, "f");
187
193
  __classPrivateFieldSet(this, _LicenseGetResult_marketSegment, licenseGetDataInput[LicenseGetFields.COLUMN_MARKET_SEGMENT], "f");
194
+ __classPrivateFieldSet(this, _LicenseGetResult_configs, (_d = licenseGetDataInput[LicenseGetFields.COLUMN_CONFIGS]) === null || _d === void 0 ? void 0 : _d.map((configData) => new configFindResult_1.ConfigFindResult(configData)), "f");
195
+ __classPrivateFieldSet(this, _LicenseGetResult_warnings, (_e = licenseGetDataInput[LicenseGetFields.COLUMN_WARNINGS]) === null || _e === void 0 ? void 0 : _e.map((warningData) => new warningFindResult_1.WarningFindResult(warningData)), "f");
188
196
  }
189
197
  get id() {
190
198
  return __classPrivateFieldGet(this, _LicenseGetResult_license_id, "f");
@@ -327,8 +335,14 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
327
335
  get marketSegment() {
328
336
  return __classPrivateFieldGet(this, _LicenseGetResult_marketSegment, "f");
329
337
  }
338
+ get configs() {
339
+ return __classPrivateFieldGet(this, _LicenseGetResult_configs, "f");
340
+ }
341
+ get warnings() {
342
+ return __classPrivateFieldGet(this, _LicenseGetResult_warnings, "f");
343
+ }
330
344
  toJSON() {
331
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
345
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
332
346
  return {
333
347
  [LicenseGetFields.COLUMN_LICENSE_ID]: this.id,
334
348
  [LicenseGetFields.COLUMN_PARENT_LICENSE_ID]: this.parentLicenseId,
@@ -377,9 +391,11 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
377
391
  [LicenseGetFields.COLUMN_ORGANIZATION_UNIT_ID]: this.organizationUnitId,
378
392
  [LicenseGetFields.COLUMN_RELATION]: (_j = this.relation) === null || _j === void 0 ? void 0 : _j.map((v) => v.toJSON()),
379
393
  [LicenseGetFields.COLUMN_MARKET_SEGMENT]: this.marketSegment,
394
+ [LicenseGetFields.COLUMN_CONFIGS]: (_k = this.configs) === null || _k === void 0 ? void 0 : _k.map((config) => config.toJSON()),
395
+ [LicenseGetFields.COLUMN_WARNINGS]: (_l = this.warnings) === null || _l === void 0 ? void 0 : _l.map((warning) => warning.toJSON()),
380
396
  };
381
397
  }
382
398
  }
383
399
  exports.LicenseGetResult = LicenseGetResult;
384
- _LicenseGetResult_license_id = new WeakMap(), _LicenseGetResult_parent_license_id = new WeakMap(), _LicenseGetResult_friendlyName = new WeakMap(), _LicenseGetResult_customer_ref = new WeakMap(), _LicenseGetResult_state = new WeakMap(), _LicenseGetResult_statusCode = new WeakMap(), _LicenseGetResult_isTrial = new WeakMap(), _LicenseGetResult_isAddon = new WeakMap(), _LicenseGetResult_service_ref = new WeakMap(), _LicenseGetResult_sku = new WeakMap(), _LicenseGetResult_name = new WeakMap(), _LicenseGetResult_seats = new WeakMap(), _LicenseGetResult_activeSeats = new WeakMap(), _LicenseGetResult_security = new WeakMap(), _LicenseGetResult_activation_datetime = new WeakMap(), _LicenseGetResult_expiry_datetime = new WeakMap(), _LicenseGetResult_autoRenew = new WeakMap(), _LicenseGetResult_marketplace = new WeakMap(), _LicenseGetResult_message = new WeakMap(), _LicenseGetResult_actions = new WeakMap(), _LicenseGetResult_actionMessages = new WeakMap(), _LicenseGetResult_order_reference = new WeakMap(), _LicenseGetResult_order = new WeakMap(), _LicenseGetResult_vendor_license_id = new WeakMap(), _LicenseGetResult_periodicity = new WeakMap(), _LicenseGetResult_periodicityCode = new WeakMap(), _LicenseGetResult_term = new WeakMap(), _LicenseGetResult_termCode = new WeakMap(), _LicenseGetResult_category = new WeakMap(), _LicenseGetResult_program = new WeakMap(), _LicenseGetResult_associatedSubscriptionProgram = new WeakMap(), _LicenseGetResult_price = new WeakMap(), _LicenseGetResult_arrowSubCategories = new WeakMap(), _LicenseGetResult_nextRenewalDate = new WeakMap(), _LicenseGetResult_promotion = new WeakMap(), _LicenseGetResult_assets = new WeakMap(), _LicenseGetResult_vendorBillingId = new WeakMap(), _LicenseGetResult_extraData = new WeakMap(), _LicenseGetResult_priceBand = new WeakMap(), _LicenseGetResult_vendorCode = new WeakMap(), _LicenseGetResult_vendor_code = new WeakMap(), _LicenseGetResult_vendorSku = new WeakMap(), _LicenseGetResult_rates = new WeakMap(), _LicenseGetResult_organizationUnitId = new WeakMap(), _LicenseGetResult_relation = new WeakMap(), _LicenseGetResult_marketSegment = new WeakMap();
400
+ _LicenseGetResult_license_id = new WeakMap(), _LicenseGetResult_parent_license_id = new WeakMap(), _LicenseGetResult_friendlyName = new WeakMap(), _LicenseGetResult_customer_ref = new WeakMap(), _LicenseGetResult_state = new WeakMap(), _LicenseGetResult_statusCode = new WeakMap(), _LicenseGetResult_isTrial = new WeakMap(), _LicenseGetResult_isAddon = new WeakMap(), _LicenseGetResult_service_ref = new WeakMap(), _LicenseGetResult_sku = new WeakMap(), _LicenseGetResult_name = new WeakMap(), _LicenseGetResult_seats = new WeakMap(), _LicenseGetResult_activeSeats = new WeakMap(), _LicenseGetResult_security = new WeakMap(), _LicenseGetResult_activation_datetime = new WeakMap(), _LicenseGetResult_expiry_datetime = new WeakMap(), _LicenseGetResult_autoRenew = new WeakMap(), _LicenseGetResult_marketplace = new WeakMap(), _LicenseGetResult_message = new WeakMap(), _LicenseGetResult_actions = new WeakMap(), _LicenseGetResult_actionMessages = new WeakMap(), _LicenseGetResult_order_reference = new WeakMap(), _LicenseGetResult_order = new WeakMap(), _LicenseGetResult_vendor_license_id = new WeakMap(), _LicenseGetResult_periodicity = new WeakMap(), _LicenseGetResult_periodicityCode = new WeakMap(), _LicenseGetResult_term = new WeakMap(), _LicenseGetResult_termCode = new WeakMap(), _LicenseGetResult_category = new WeakMap(), _LicenseGetResult_program = new WeakMap(), _LicenseGetResult_associatedSubscriptionProgram = new WeakMap(), _LicenseGetResult_price = new WeakMap(), _LicenseGetResult_arrowSubCategories = new WeakMap(), _LicenseGetResult_nextRenewalDate = new WeakMap(), _LicenseGetResult_promotion = new WeakMap(), _LicenseGetResult_assets = new WeakMap(), _LicenseGetResult_vendorBillingId = new WeakMap(), _LicenseGetResult_extraData = new WeakMap(), _LicenseGetResult_priceBand = new WeakMap(), _LicenseGetResult_vendorCode = new WeakMap(), _LicenseGetResult_vendor_code = new WeakMap(), _LicenseGetResult_vendorSku = new WeakMap(), _LicenseGetResult_rates = new WeakMap(), _LicenseGetResult_organizationUnitId = new WeakMap(), _LicenseGetResult_relation = new WeakMap(), _LicenseGetResult_marketSegment = new WeakMap(), _LicenseGetResult_configs = new WeakMap(), _LicenseGetResult_warnings = new WeakMap();
385
401
  //# sourceMappingURL=licenseGetResult.js.map
@@ -1,6 +1,14 @@
1
1
  import { DataKeywords, FiltersParameters, SortParameters } from '../../licensesClient';
2
2
  import { AbstractEntity } from '../../../abstractEntity';
3
3
  import { Rules } from 'validatorjs';
4
+ export declare enum LicenseConfigNamesEnum {
5
+ PURCHASE_RESERVATIONS = "purchaseReservations"
6
+ }
7
+ export declare enum LicenseConfigStatesEnum {
8
+ DISABLED = "disabled",
9
+ ENABLED = "enabled",
10
+ PENDING = "pending"
11
+ }
4
12
  export declare enum ConfigFindResultFields {
5
13
  COLUMN_NAME = "name",
6
14
  COLUMN_SCOPE = "scope",
@@ -12,8 +12,18 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
12
12
  };
13
13
  var _ConfigFindResult_name, _ConfigFindResult_scope, _ConfigFindResult_state;
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.ConfigFindResult = exports.ConfigFindResultFields = void 0;
15
+ exports.ConfigFindResult = exports.ConfigFindResultFields = exports.LicenseConfigStatesEnum = exports.LicenseConfigNamesEnum = void 0;
16
16
  const abstractEntity_1 = require("../../../abstractEntity");
17
+ var LicenseConfigNamesEnum;
18
+ (function (LicenseConfigNamesEnum) {
19
+ LicenseConfigNamesEnum["PURCHASE_RESERVATIONS"] = "purchaseReservations";
20
+ })(LicenseConfigNamesEnum = exports.LicenseConfigNamesEnum || (exports.LicenseConfigNamesEnum = {}));
21
+ var LicenseConfigStatesEnum;
22
+ (function (LicenseConfigStatesEnum) {
23
+ LicenseConfigStatesEnum["DISABLED"] = "disabled";
24
+ LicenseConfigStatesEnum["ENABLED"] = "enabled";
25
+ LicenseConfigStatesEnum["PENDING"] = "pending";
26
+ })(LicenseConfigStatesEnum = exports.LicenseConfigStatesEnum || (exports.LicenseConfigStatesEnum = {}));
17
27
  var ConfigFindResultFields;
18
28
  (function (ConfigFindResultFields) {
19
29
  ConfigFindResultFields["COLUMN_NAME"] = "name";
@@ -24,6 +24,7 @@ import { CompanyTypeEnum, RateTypeEnum } from './entities/pricingRate/getPricing
24
24
  import { PartialResponse } from '../partialResponse';
25
25
  import { BulkBodyArgument, SpecialPriceRateActive } from './types/bulkArguments';
26
26
  import { EndCustomerOrganizationUnitFiltersParameters, EndCustomerOrganizationUnitSortParameters } from './entities/endCustomerOrganizationUnit/endCustomerOrganizationUnitFindResult';
27
+ import { ConsumptionDailyPrediction } from '../consumption';
27
28
  /**
28
29
  * Parameters passable to the request for refining search.
29
30
  */
@@ -339,9 +340,12 @@ export declare class LicensesClient extends AbstractRestfulClient {
339
340
  find(postData?: LicenseFindPayload, perPage?: number, page?: number, parameters?: Parameters): Promise<FindResult>;
340
341
  getConfigsRaw(reference: string): Promise<FindConfig>;
341
342
  getConfigs(reference: string): AsyncGenerator<ConfigFindResultData>;
343
+ /**
344
+ * @deprecated Use updateConfig instead
345
+ */
342
346
  updateConfigRaw(reference: string, config: ConfigFindResult): Promise<ConfigFindResultData>;
343
347
  bulkAction(bulkData: BulkBodyArgument): Promise<void>;
344
- updateConfig(reference: string, config: ConfigFindResult): Promise<ConfigFindResult>;
348
+ updateConfig(reference: string, config: ConfigFindResult): Promise<GetResult<ConfigFindResult>>;
345
349
  getLicense(licenseReference: string, parameters?: Parameters): Promise<GetResult<GetLicenseResult>>;
346
350
  updateLicense(licenseReference: string, payload: UpdateLicenseData, parameters?: Parameters): Promise<void | PartialResponse>;
347
351
  updateSeats(licenseReference: string, putData: UpdateSeatsData, parameters?: Parameters): Promise<void>;
@@ -360,6 +364,7 @@ export declare class LicensesClient extends AbstractRestfulClient {
360
364
  getCredentials(licenseReference: string, parameters?: Parameters): Promise<GetResult<CredentialsResult>>;
361
365
  setPricingRate(licenseReference: string, payload: LicensePricingRate, parameters?: Parameters): Promise<void>;
362
366
  scheduleTasks(licenseReference: string, payload: ScheduleTasks, parameters?: Parameters): Promise<GetResult<ScheduleTasksResult>>;
367
+ getLicenseDailyPredictions(licenseReference: string, parameters?: Parameters): Promise<GetResult<ConsumptionDailyPrediction>>;
363
368
  private createFilters;
364
369
  private createKeywords;
365
370
  }
@@ -18,6 +18,7 @@ const scheduleTasksResult_1 = require("./entities/schedule/scheduleTasksResult")
18
18
  const partialResponse_1 = require("../partialResponse");
19
19
  const http2_1 = require("http2");
20
20
  const bulkArguments_1 = require("./types/bulkArguments");
21
+ const consumption_1 = require("../consumption");
21
22
  /**
22
23
  * Parameters passable to the request for refining search.
23
24
  */
@@ -275,6 +276,9 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
275
276
  yield new configFindResult_1.ConfigFindResult(response).toJSON();
276
277
  }
277
278
  }
279
+ /**
280
+ * @deprecated Use updateConfig instead
281
+ */
278
282
  async updateConfigRaw(reference, config) {
279
283
  this.path = `/${reference}${this.CONFIGS_PATH}`;
280
284
  const postData = {
@@ -309,8 +313,13 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
309
313
  return await this.post(postData);
310
314
  }
311
315
  async updateConfig(reference, config) {
312
- const rawResponse = await this.updateConfigRaw(reference, config);
313
- return new configFindResult_1.ConfigFindResult(rawResponse);
316
+ this.path = `/${reference}${this.CONFIGS_PATH}`;
317
+ const postData = {
318
+ [configFindResult_1.ConfigFindResultFields.COLUMN_NAME]: config.name,
319
+ [configFindResult_1.ConfigFindResultFields.COLUMN_SCOPE]: config.scope,
320
+ [configFindResult_1.ConfigFindResultFields.COLUMN_STATE]: config.state,
321
+ };
322
+ return new getResult_1.GetResult(configFindResult_1.ConfigFindResult, await this.post(postData));
314
323
  }
315
324
  async getLicense(licenseReference, parameters = {}) {
316
325
  this.path = `/${licenseReference}`;
@@ -401,6 +410,10 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
401
410
  this.path = `/${licenseReference}${this.SCHEDULE_TASKS_PATH}`;
402
411
  return new getResult_1.GetResult(scheduleTasksResult_1.ScheduleTasksResult, await this.post(payload, parameters));
403
412
  }
413
+ async getLicenseDailyPredictions(licenseReference, parameters = {}) {
414
+ this.path = `/${licenseReference}/predictions/daily`;
415
+ return new getResult_1.GetResult(consumption_1.ConsumptionDailyPrediction, await this.get(parameters));
416
+ }
404
417
  createFilters(parameters, keyParent) {
405
418
  let appropriateParameters;
406
419
  if (typeof parameters === 'object') {
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.101.0-rc.lth.4",
7
+ "version": "3.101.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 CustomerContactOrganizationUnitFields {
3
- COLUMN_ID = "id",
4
- COLUMN_NAME = "name"
5
- }
6
- export declare type CustomerContactOrganizationUnitType = {
7
- [CustomerContactOrganizationUnitFields.COLUMN_ID]: number;
8
- [CustomerContactOrganizationUnitFields.COLUMN_NAME]: string;
9
- };
10
- export declare class CustomerContactOrganizationUnit extends AbstractEntity<CustomerContactOrganizationUnitType> {
11
- #private;
12
- constructor(getCustomerContactOrganizationUnitDataInput: CustomerContactOrganizationUnitType);
13
- get id(): number;
14
- get name(): string;
15
- toJSON(): CustomerContactOrganizationUnitType;
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 _CustomerContactOrganizationUnit_id, _CustomerContactOrganizationUnit_name;
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.CustomerContactOrganizationUnit = exports.CustomerContactOrganizationUnitFields = void 0;
16
- const abstractEntity_1 = require("../../../../abstractEntity");
17
- var CustomerContactOrganizationUnitFields;
18
- (function (CustomerContactOrganizationUnitFields) {
19
- CustomerContactOrganizationUnitFields["COLUMN_ID"] = "id";
20
- CustomerContactOrganizationUnitFields["COLUMN_NAME"] = "name";
21
- })(CustomerContactOrganizationUnitFields = exports.CustomerContactOrganizationUnitFields || (exports.CustomerContactOrganizationUnitFields = {}));
22
- class CustomerContactOrganizationUnit extends abstractEntity_1.AbstractEntity {
23
- constructor(getCustomerContactOrganizationUnitDataInput) {
24
- super(getCustomerContactOrganizationUnitDataInput);
25
- _CustomerContactOrganizationUnit_id.set(this, void 0);
26
- _CustomerContactOrganizationUnit_name.set(this, void 0);
27
- __classPrivateFieldSet(this, _CustomerContactOrganizationUnit_id, getCustomerContactOrganizationUnitDataInput[CustomerContactOrganizationUnitFields.COLUMN_ID], "f");
28
- __classPrivateFieldSet(this, _CustomerContactOrganizationUnit_name, getCustomerContactOrganizationUnitDataInput[CustomerContactOrganizationUnitFields.COLUMN_NAME], "f");
29
- }
30
- get id() {
31
- return __classPrivateFieldGet(this, _CustomerContactOrganizationUnit_id, "f");
32
- }
33
- get name() {
34
- return __classPrivateFieldGet(this, _CustomerContactOrganizationUnit_name, "f");
35
- }
36
- toJSON() {
37
- return {
38
- [CustomerContactOrganizationUnitFields.COLUMN_ID]: this.id,
39
- [CustomerContactOrganizationUnitFields.COLUMN_NAME]: this.name,
40
- };
41
- }
42
- }
43
- exports.CustomerContactOrganizationUnit = CustomerContactOrganizationUnit;
44
- _CustomerContactOrganizationUnit_id = new WeakMap(), _CustomerContactOrganizationUnit_name = new WeakMap();
45
- //# sourceMappingURL=customerContactOrganizationUnit.js.map