@arrowsphere/api-client 3.101.0-rc.bdj.8 → 3.101.0-rc.lth.2
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/build/consumption/index.d.ts +0 -1
- package/build/consumption/index.js +0 -1
- package/build/customers/entities/customers/customerContact/customerContact.d.ts +7 -3
- package/build/customers/entities/customers/customerContact/customerContact.js +14 -2
- package/build/customers/entities/customers/customerContact/customerContactOrganizationUnit.d.ts +16 -0
- package/build/customers/entities/customers/customerContact/customerContactOrganizationUnit.js +45 -0
- package/build/licenses/entities/getLicense/licenseGetResult.d.ts +1 -9
- package/build/licenses/entities/getLicense/licenseGetResult.js +4 -20
- package/build/licenses/entities/license/configFindResult.d.ts +0 -8
- package/build/licenses/entities/license/configFindResult.js +1 -11
- package/build/licenses/licensesClient.d.ts +1 -3
- package/build/licenses/licensesClient.js +2 -12
- package/package.json +1 -1
- package/build/consumption/entities/consumption/consumptionDailyPrediction.d.ts +0 -37
- package/build/consumption/entities/consumption/consumptionDailyPrediction.js +0 -92
|
@@ -4,5 +4,4 @@ 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';
|
|
8
7
|
export * from './consumptionClient';
|
|
@@ -20,6 +20,5 @@ __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);
|
|
24
23
|
__exportStar(require("./consumptionClient"), exports);
|
|
25
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AbstractEntity } from '../../../../abstractEntity';
|
|
2
|
-
import { CustomerContactXcpInvitationType } from './customerContactXcpInvitation';
|
|
2
|
+
import { CustomerContactXcpInvitation, CustomerContactXcpInvitationType } from './customerContactXcpInvitation';
|
|
3
|
+
import { CustomerContactOrganizationUnit, CustomerContactOrganizationUnitType } from './customerContactOrganizationUnit';
|
|
3
4
|
export declare type CustomerContactRoleType = CustomerContactRoleEnum | string;
|
|
4
5
|
export declare enum CustomerContactRoleEnum {
|
|
5
6
|
PRIMARY = "primary",
|
|
@@ -26,7 +27,8 @@ export declare enum CustomerContactFields {
|
|
|
26
27
|
COLUMN_ROLE = "role",
|
|
27
28
|
COLUMN_IS_ACTIVE = "isActive",
|
|
28
29
|
COLUMN_XCP_INVITATION = "xcpInvitation",
|
|
29
|
-
COLUMN_ORGANIZATION_UNIT_ID = "organizationUnitId"
|
|
30
|
+
COLUMN_ORGANIZATION_UNIT_ID = "organizationUnitId",
|
|
31
|
+
COLUMN_ORGANIZATION_UNITS = "organizationUnits"
|
|
30
32
|
}
|
|
31
33
|
export declare type CustomerContactType = {
|
|
32
34
|
[CustomerContactFields.COLUMN_REFERENCE]: string;
|
|
@@ -40,6 +42,7 @@ export declare type CustomerContactType = {
|
|
|
40
42
|
[CustomerContactFields.COLUMN_IS_ACTIVE]: boolean;
|
|
41
43
|
[CustomerContactFields.COLUMN_XCP_INVITATION]?: CustomerContactXcpInvitationType;
|
|
42
44
|
[CustomerContactFields.COLUMN_ORGANIZATION_UNIT_ID]?: number;
|
|
45
|
+
[CustomerContactFields.COLUMN_ORGANIZATION_UNITS]: CustomerContactOrganizationUnitType[] | [];
|
|
43
46
|
};
|
|
44
47
|
export declare class CustomerContact extends AbstractEntity<CustomerContactType> {
|
|
45
48
|
#private;
|
|
@@ -53,7 +56,8 @@ export declare class CustomerContact extends AbstractEntity<CustomerContactType>
|
|
|
53
56
|
get type(): string;
|
|
54
57
|
get role(): string;
|
|
55
58
|
get isActive(): boolean;
|
|
56
|
-
get xcpInvitation():
|
|
59
|
+
get xcpInvitation(): CustomerContactXcpInvitation | undefined;
|
|
57
60
|
get organizationUnitId(): number | undefined;
|
|
61
|
+
get organizationUnits(): CustomerContactOrganizationUnit[] | [];
|
|
58
62
|
toJSON(): CustomerContactType;
|
|
59
63
|
}
|
|
@@ -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 _CustomerContact_reference, _CustomerContact_firstName, _CustomerContact_lastName, _CustomerContact_email, _CustomerContact_phone, _CustomerContact_username, _CustomerContact_type, _CustomerContact_role, _CustomerContact_isActive, _CustomerContact_xcpInvitation, _CustomerContact_organizationUnitId;
|
|
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;
|
|
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");
|
|
18
19
|
var CustomerContactRoleEnum;
|
|
19
20
|
(function (CustomerContactRoleEnum) {
|
|
20
21
|
CustomerContactRoleEnum["PRIMARY"] = "primary";
|
|
@@ -43,6 +44,7 @@ var CustomerContactFields;
|
|
|
43
44
|
CustomerContactFields["COLUMN_IS_ACTIVE"] = "isActive";
|
|
44
45
|
CustomerContactFields["COLUMN_XCP_INVITATION"] = "xcpInvitation";
|
|
45
46
|
CustomerContactFields["COLUMN_ORGANIZATION_UNIT_ID"] = "organizationUnitId";
|
|
47
|
+
CustomerContactFields["COLUMN_ORGANIZATION_UNITS"] = "organizationUnits";
|
|
46
48
|
})(CustomerContactFields = exports.CustomerContactFields || (exports.CustomerContactFields = {}));
|
|
47
49
|
class CustomerContact extends abstractEntity_1.AbstractEntity {
|
|
48
50
|
constructor(getCustomerContactDataInput) {
|
|
@@ -58,6 +60,7 @@ class CustomerContact extends abstractEntity_1.AbstractEntity {
|
|
|
58
60
|
_CustomerContact_isActive.set(this, void 0);
|
|
59
61
|
_CustomerContact_xcpInvitation.set(this, void 0);
|
|
60
62
|
_CustomerContact_organizationUnitId.set(this, void 0);
|
|
63
|
+
_CustomerContact_organizationUnits.set(this, void 0);
|
|
61
64
|
__classPrivateFieldSet(this, _CustomerContact_reference, getCustomerContactDataInput[CustomerContactFields.COLUMN_REFERENCE], "f");
|
|
62
65
|
__classPrivateFieldSet(this, _CustomerContact_firstName, getCustomerContactDataInput[CustomerContactFields.COLUMN_FIRST_NAME], "f");
|
|
63
66
|
__classPrivateFieldSet(this, _CustomerContact_lastName, getCustomerContactDataInput[CustomerContactFields.COLUMN_LAST_NAME], "f");
|
|
@@ -71,6 +74,9 @@ class CustomerContact extends abstractEntity_1.AbstractEntity {
|
|
|
71
74
|
? new customerContactXcpInvitation_1.CustomerContactXcpInvitation(getCustomerContactDataInput[CustomerContactFields.COLUMN_XCP_INVITATION])
|
|
72
75
|
: undefined, "f");
|
|
73
76
|
__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");
|
|
74
80
|
}
|
|
75
81
|
get reference() {
|
|
76
82
|
return __classPrivateFieldGet(this, _CustomerContact_reference, "f");
|
|
@@ -105,6 +111,9 @@ class CustomerContact extends abstractEntity_1.AbstractEntity {
|
|
|
105
111
|
get organizationUnitId() {
|
|
106
112
|
return __classPrivateFieldGet(this, _CustomerContact_organizationUnitId, "f");
|
|
107
113
|
}
|
|
114
|
+
get organizationUnits() {
|
|
115
|
+
return __classPrivateFieldGet(this, _CustomerContact_organizationUnits, "f");
|
|
116
|
+
}
|
|
108
117
|
toJSON() {
|
|
109
118
|
return {
|
|
110
119
|
[CustomerContactFields.COLUMN_REFERENCE]: this.reference,
|
|
@@ -119,9 +128,12 @@ class CustomerContact extends abstractEntity_1.AbstractEntity {
|
|
|
119
128
|
[CustomerContactFields.COLUMN_XCP_INVITATION]: this.xcpInvitation,
|
|
120
129
|
[CustomerContactFields.COLUMN_ORGANIZATION_UNIT_ID]: this
|
|
121
130
|
.organizationUnitId,
|
|
131
|
+
[CustomerContactFields.COLUMN_ORGANIZATION_UNITS]: this.organizationUnits.map((organizationUnit) => {
|
|
132
|
+
return organizationUnit.toJSON();
|
|
133
|
+
}),
|
|
122
134
|
};
|
|
123
135
|
}
|
|
124
136
|
}
|
|
125
137
|
exports.CustomerContact = CustomerContact;
|
|
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();
|
|
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();
|
|
127
139
|
//# sourceMappingURL=customerContact.js.map
|
package/build/customers/entities/customers/customerContact/customerContactOrganizationUnit.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
}
|
|
@@ -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 _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
|
|
@@ -11,8 +11,6 @@ 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';
|
|
16
14
|
export declare enum LicenseGetFields {
|
|
17
15
|
COLUMN_LICENSE_ID = "license_id",
|
|
18
16
|
COLUMN_PARENT_LICENSE_ID = "parent_license_id",
|
|
@@ -59,9 +57,7 @@ export declare enum LicenseGetFields {
|
|
|
59
57
|
COLUMN_RATES = "rates",
|
|
60
58
|
COLUMN_ORGANIZATION_UNIT_ID = "organizationUnitId",
|
|
61
59
|
COLUMN_RELATION = "relation",
|
|
62
|
-
COLUMN_MARKET_SEGMENT = "marketSegment"
|
|
63
|
-
COLUMN_CONFIGS = "configs",
|
|
64
|
-
COLUMN_WARNINGS = "warnings"
|
|
60
|
+
COLUMN_MARKET_SEGMENT = "marketSegment"
|
|
65
61
|
}
|
|
66
62
|
export declare type LicenseGetData = {
|
|
67
63
|
[LicenseGetFields.COLUMN_LICENSE_ID]: string;
|
|
@@ -110,8 +106,6 @@ export declare type LicenseGetData = {
|
|
|
110
106
|
[LicenseGetFields.COLUMN_ORGANIZATION_UNIT_ID]?: number;
|
|
111
107
|
[LicenseGetFields.COLUMN_RELATION]?: RelationGetData[];
|
|
112
108
|
[LicenseGetFields.COLUMN_MARKET_SEGMENT]?: string | null;
|
|
113
|
-
[LicenseGetFields.COLUMN_CONFIGS]?: Array<ConfigFindResultData> | null;
|
|
114
|
-
[LicenseGetFields.COLUMN_WARNINGS]?: Array<WarningFindResultData> | null;
|
|
115
109
|
};
|
|
116
110
|
export declare class LicenseGetResult extends AbstractEntity<LicenseGetData> {
|
|
117
111
|
#private;
|
|
@@ -162,7 +156,5 @@ export declare class LicenseGetResult extends AbstractEntity<LicenseGetData> {
|
|
|
162
156
|
get organizationUnitId(): number | undefined;
|
|
163
157
|
get relation(): RelationGetResult[] | undefined;
|
|
164
158
|
get marketSegment(): string | null | undefined;
|
|
165
|
-
get configs(): Array<ConfigFindResult> | null | undefined;
|
|
166
|
-
get warnings(): Array<WarningFindResult> | null | undefined;
|
|
167
159
|
toJSON(): LicenseGetData;
|
|
168
160
|
}
|
|
@@ -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;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.LicenseGetResult = exports.LicenseGetFields = void 0;
|
|
16
16
|
const actionsGetResult_1 = require("./actionsGetResult");
|
|
@@ -26,8 +26,6 @@ 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");
|
|
31
29
|
var LicenseGetFields;
|
|
32
30
|
(function (LicenseGetFields) {
|
|
33
31
|
LicenseGetFields["COLUMN_LICENSE_ID"] = "license_id";
|
|
@@ -76,12 +74,10 @@ var LicenseGetFields;
|
|
|
76
74
|
LicenseGetFields["COLUMN_ORGANIZATION_UNIT_ID"] = "organizationUnitId";
|
|
77
75
|
LicenseGetFields["COLUMN_RELATION"] = "relation";
|
|
78
76
|
LicenseGetFields["COLUMN_MARKET_SEGMENT"] = "marketSegment";
|
|
79
|
-
LicenseGetFields["COLUMN_CONFIGS"] = "configs";
|
|
80
|
-
LicenseGetFields["COLUMN_WARNINGS"] = "warnings";
|
|
81
77
|
})(LicenseGetFields = exports.LicenseGetFields || (exports.LicenseGetFields = {}));
|
|
82
78
|
class LicenseGetResult extends abstractEntity_1.AbstractEntity {
|
|
83
79
|
constructor(licenseGetDataInput) {
|
|
84
|
-
var _a, _b, _c
|
|
80
|
+
var _a, _b, _c;
|
|
85
81
|
super(licenseGetDataInput);
|
|
86
82
|
_LicenseGetResult_license_id.set(this, void 0);
|
|
87
83
|
_LicenseGetResult_parent_license_id.set(this, void 0);
|
|
@@ -129,8 +125,6 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
|
|
|
129
125
|
_LicenseGetResult_organizationUnitId.set(this, void 0);
|
|
130
126
|
_LicenseGetResult_relation.set(this, void 0);
|
|
131
127
|
_LicenseGetResult_marketSegment.set(this, void 0);
|
|
132
|
-
_LicenseGetResult_configs.set(this, void 0);
|
|
133
|
-
_LicenseGetResult_warnings.set(this, void 0);
|
|
134
128
|
__classPrivateFieldSet(this, _LicenseGetResult_license_id, licenseGetDataInput[LicenseGetFields.COLUMN_LICENSE_ID], "f");
|
|
135
129
|
__classPrivateFieldSet(this, _LicenseGetResult_parent_license_id, licenseGetDataInput[LicenseGetFields.COLUMN_PARENT_LICENSE_ID], "f");
|
|
136
130
|
__classPrivateFieldSet(this, _LicenseGetResult_friendlyName, licenseGetDataInput[LicenseGetFields.COLUMN_FRIENDLY_NAME], "f");
|
|
@@ -191,8 +185,6 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
|
|
|
191
185
|
? (_c = licenseGetDataInput[LicenseGetFields.COLUMN_RELATION]) === null || _c === void 0 ? void 0 : _c.map((v) => new relationGetResult_1.RelationGetResult(v))
|
|
192
186
|
: undefined, "f");
|
|
193
187
|
__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");
|
|
196
188
|
}
|
|
197
189
|
get id() {
|
|
198
190
|
return __classPrivateFieldGet(this, _LicenseGetResult_license_id, "f");
|
|
@@ -335,14 +327,8 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
|
|
|
335
327
|
get marketSegment() {
|
|
336
328
|
return __classPrivateFieldGet(this, _LicenseGetResult_marketSegment, "f");
|
|
337
329
|
}
|
|
338
|
-
get configs() {
|
|
339
|
-
return __classPrivateFieldGet(this, _LicenseGetResult_configs, "f");
|
|
340
|
-
}
|
|
341
|
-
get warnings() {
|
|
342
|
-
return __classPrivateFieldGet(this, _LicenseGetResult_warnings, "f");
|
|
343
|
-
}
|
|
344
330
|
toJSON() {
|
|
345
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j
|
|
331
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
346
332
|
return {
|
|
347
333
|
[LicenseGetFields.COLUMN_LICENSE_ID]: this.id,
|
|
348
334
|
[LicenseGetFields.COLUMN_PARENT_LICENSE_ID]: this.parentLicenseId,
|
|
@@ -391,11 +377,9 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
|
|
|
391
377
|
[LicenseGetFields.COLUMN_ORGANIZATION_UNIT_ID]: this.organizationUnitId,
|
|
392
378
|
[LicenseGetFields.COLUMN_RELATION]: (_j = this.relation) === null || _j === void 0 ? void 0 : _j.map((v) => v.toJSON()),
|
|
393
379
|
[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()),
|
|
396
380
|
};
|
|
397
381
|
}
|
|
398
382
|
}
|
|
399
383
|
exports.LicenseGetResult = LicenseGetResult;
|
|
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()
|
|
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();
|
|
401
385
|
//# sourceMappingURL=licenseGetResult.js.map
|
|
@@ -1,14 +1,6 @@
|
|
|
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
|
-
}
|
|
12
4
|
export declare enum ConfigFindResultFields {
|
|
13
5
|
COLUMN_NAME = "name",
|
|
14
6
|
COLUMN_SCOPE = "scope",
|
|
@@ -12,18 +12,8 @@ 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 =
|
|
15
|
+
exports.ConfigFindResult = exports.ConfigFindResultFields = 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 = {}));
|
|
27
17
|
var ConfigFindResultFields;
|
|
28
18
|
(function (ConfigFindResultFields) {
|
|
29
19
|
ConfigFindResultFields["COLUMN_NAME"] = "name";
|
|
@@ -24,7 +24,6 @@ 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';
|
|
28
27
|
/**
|
|
29
28
|
* Parameters passable to the request for refining search.
|
|
30
29
|
*/
|
|
@@ -342,7 +341,7 @@ export declare class LicensesClient extends AbstractRestfulClient {
|
|
|
342
341
|
getConfigs(reference: string): AsyncGenerator<ConfigFindResultData>;
|
|
343
342
|
updateConfigRaw(reference: string, config: ConfigFindResult): Promise<ConfigFindResultData>;
|
|
344
343
|
bulkAction(bulkData: BulkBodyArgument): Promise<void>;
|
|
345
|
-
updateConfig(reference: string, config: ConfigFindResult): Promise<
|
|
344
|
+
updateConfig(reference: string, config: ConfigFindResult): Promise<ConfigFindResult>;
|
|
346
345
|
getLicense(licenseReference: string, parameters?: Parameters): Promise<GetResult<GetLicenseResult>>;
|
|
347
346
|
updateLicense(licenseReference: string, payload: UpdateLicenseData, parameters?: Parameters): Promise<void | PartialResponse>;
|
|
348
347
|
updateSeats(licenseReference: string, putData: UpdateSeatsData, parameters?: Parameters): Promise<void>;
|
|
@@ -361,7 +360,6 @@ export declare class LicensesClient extends AbstractRestfulClient {
|
|
|
361
360
|
getCredentials(licenseReference: string, parameters?: Parameters): Promise<GetResult<CredentialsResult>>;
|
|
362
361
|
setPricingRate(licenseReference: string, payload: LicensePricingRate, parameters?: Parameters): Promise<void>;
|
|
363
362
|
scheduleTasks(licenseReference: string, payload: ScheduleTasks, parameters?: Parameters): Promise<GetResult<ScheduleTasksResult>>;
|
|
364
|
-
getLicenseDailyPredictions(licenseReference: string, parameters?: Parameters): Promise<GetResult<ConsumptionDailyPrediction>>;
|
|
365
363
|
private createFilters;
|
|
366
364
|
private createKeywords;
|
|
367
365
|
}
|
|
@@ -18,7 +18,6 @@ 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");
|
|
22
21
|
/**
|
|
23
22
|
* Parameters passable to the request for refining search.
|
|
24
23
|
*/
|
|
@@ -310,13 +309,8 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
310
309
|
return await this.post(postData);
|
|
311
310
|
}
|
|
312
311
|
async updateConfig(reference, config) {
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
[configFindResult_1.ConfigFindResultFields.COLUMN_NAME]: config.name,
|
|
316
|
-
[configFindResult_1.ConfigFindResultFields.COLUMN_SCOPE]: config.scope,
|
|
317
|
-
[configFindResult_1.ConfigFindResultFields.COLUMN_STATE]: config.state,
|
|
318
|
-
};
|
|
319
|
-
return new getResult_1.GetResult(configFindResult_1.ConfigFindResult, await this.post(postData));
|
|
312
|
+
const rawResponse = await this.updateConfigRaw(reference, config);
|
|
313
|
+
return new configFindResult_1.ConfigFindResult(rawResponse);
|
|
320
314
|
}
|
|
321
315
|
async getLicense(licenseReference, parameters = {}) {
|
|
322
316
|
this.path = `/${licenseReference}`;
|
|
@@ -407,10 +401,6 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
407
401
|
this.path = `/${licenseReference}${this.SCHEDULE_TASKS_PATH}`;
|
|
408
402
|
return new getResult_1.GetResult(scheduleTasksResult_1.ScheduleTasksResult, await this.post(payload, parameters));
|
|
409
403
|
}
|
|
410
|
-
async getLicenseDailyPredictions(licenseReference, parameters = {}) {
|
|
411
|
-
this.path = `/${licenseReference}/predictions/daily`;
|
|
412
|
-
return new getResult_1.GetResult(consumption_1.ConsumptionDailyPrediction, await this.get(parameters));
|
|
413
|
-
}
|
|
414
404
|
createFilters(parameters, keyParent) {
|
|
415
405
|
let appropriateParameters;
|
|
416
406
|
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.
|
|
7
|
+
"version": "3.101.0-rc.lth.2",
|
|
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,37 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,92 +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 _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
|