@arrowsphere/api-client 3.151.0-rc.mla.2 → 3.151.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 +5 -0
- package/build/consumption/consumptionClient.d.ts +0 -4
- package/build/consumption/consumptionClient.js +0 -11
- package/build/consumption/index.d.ts +0 -2
- package/build/consumption/index.js +0 -2
- package/build/customers/entities/customers/customer.d.ts +0 -3
- package/build/customers/entities/customers/customer.js +2 -9
- package/build/index.d.ts +0 -3
- package/build/index.js +0 -3
- package/build/orders/entities/orders/products/priceBand/priceBand.d.ts +14 -0
- package/build/{reports/entities/reference.js → orders/entities/orders/products/priceBand/priceBand.js} +19 -16
- package/build/orders/entities/orders/products/products.d.ts +5 -1
- package/build/orders/entities/orders/products/products.js +13 -3
- package/build/publicApiClient.d.ts +0 -10
- package/build/publicApiClient.js +0 -22
- package/package.json +1 -1
- package/build/analytics/analyticsClient.d.ts +0 -26
- package/build/analytics/analyticsClient.js +0 -30
- package/build/analytics/entities/analytics.d.ts +0 -32
- package/build/analytics/entities/analytics.js +0 -81
- package/build/analytics/entities/dataAnalytics.d.ts +0 -9
- package/build/analytics/entities/dataAnalytics.js +0 -33
- package/build/analytics/entities/price.d.ts +0 -24
- package/build/analytics/entities/price.js +0 -65
- package/build/analytics/index.d.ts +0 -4
- package/build/analytics/index.js +0 -21
- package/build/consumption/entities/consumption/classification.d.ts +0 -13
- package/build/consumption/entities/consumption/classification.js +0 -38
- package/build/consumption/entities/consumption/costs.d.ts +0 -18
- package/build/consumption/entities/consumption/costs.js +0 -38
- package/build/orderSoftware/entities/dataListOrderSoftware.d.ts +0 -14
- package/build/orderSoftware/entities/dataListOrderSoftware.js +0 -39
- package/build/orderSoftware/entities/orderSoftware.d.ts +0 -30
- package/build/orderSoftware/entities/orderSoftware.js +0 -75
- package/build/orderSoftware/entities/orderSoftwarePrice.d.ts +0 -19
- package/build/orderSoftware/entities/orderSoftwarePrice.js +0 -52
- package/build/orderSoftware/entities/orderSoftwareProduct.d.ts +0 -26
- package/build/orderSoftware/entities/orderSoftwareProduct.js +0 -67
- package/build/orderSoftware/entities/orderSoftwareReference.d.ts +0 -16
- package/build/orderSoftware/entities/orderSoftwareReference.js +0 -45
- package/build/orderSoftware/index.d.ts +0 -5
- package/build/orderSoftware/index.js +0 -22
- package/build/orderSoftware/orderSoftwareClient.d.ts +0 -11
- package/build/orderSoftware/orderSoftwareClient.js +0 -25
- package/build/reports/entities/dataListReports.d.ts +0 -14
- package/build/reports/entities/dataListReports.js +0 -39
- package/build/reports/entities/reference.d.ts +0 -12
- package/build/reports/entities/report.d.ts +0 -30
- package/build/reports/entities/report.js +0 -75
- package/build/reports/entities/reportProduct.d.ts +0 -30
- package/build/reports/entities/reportProduct.js +0 -75
- package/build/reports/entities/reportProductPrice.d.ts +0 -19
- package/build/reports/entities/reportProductPrice.js +0 -52
- package/build/reports/entities/reportReferenceLink.d.ts +0 -14
- package/build/reports/entities/reportReferenceLink.js +0 -39
- package/build/reports/entities/reportValidation.d.ts +0 -19
- package/build/reports/entities/reportValidation.js +0 -52
- package/build/reports/entities/reportValidationReference.d.ts +0 -14
- package/build/reports/entities/reportValidationReference.js +0 -39
- package/build/reports/index.d.ts +0 -9
- package/build/reports/index.js +0 -26
- package/build/reports/reportsClient.d.ts +0 -36
- package/build/reports/reportsClient.js +0 -50
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +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.151.0] - 2024.10.22
|
|
7
|
+
|
|
8
|
+
### Added
|
|
9
|
+
- [orders] Added priceBand property in OrderProduct entity
|
|
10
|
+
|
|
6
11
|
## [3.150.0] - 2024.10.15
|
|
7
12
|
|
|
8
13
|
### Added
|
|
@@ -4,8 +4,6 @@ import { GetResult } from '../getResult';
|
|
|
4
4
|
import { Consumption } from './entities/consumption/consumption';
|
|
5
5
|
import { ConsumptionDownloadRequest } from './entities/consumption/consumptionDownloadRequest';
|
|
6
6
|
import { ConsumptionBudget, ConsumptionBudgetType } from './entities/consumption/consumptionBudget';
|
|
7
|
-
import { Classification } from './entities/consumption/classification';
|
|
8
|
-
import { Costs } from './entities/consumption/costs';
|
|
9
7
|
export declare type ConsumptionDownloadRequestPayload = {
|
|
10
8
|
customer: string;
|
|
11
9
|
licenseRef: string;
|
|
@@ -25,6 +23,4 @@ export declare class ConsumptionClient extends AbstractRestfulClient {
|
|
|
25
23
|
consumptionDownloadRequest(payload: ConsumptionDownloadRequestPayload): Promise<ConsumptionDownloadRequest>;
|
|
26
24
|
updateBudgetSettings(licenseReference: string, payload: ConsumptionBudgetType, parameters?: Parameters): Promise<GetResult<ConsumptionBudget>>;
|
|
27
25
|
getBudgetSettings(licenseReference: string, parameters?: Parameters): Promise<GetResult<ConsumptionBudget>>;
|
|
28
|
-
getClassification(): Promise<GetResult<Classification>>;
|
|
29
|
-
getCosts(groupByProgram: boolean): Promise<GetResult<Costs>>;
|
|
30
26
|
}
|
|
@@ -7,8 +7,6 @@ const getResult_1 = require("../getResult");
|
|
|
7
7
|
const consumption_1 = require("./entities/consumption/consumption");
|
|
8
8
|
const consumptionDownloadRequest_1 = require("./entities/consumption/consumptionDownloadRequest");
|
|
9
9
|
const consumptionBudget_1 = require("./entities/consumption/consumptionBudget");
|
|
10
|
-
const classification_1 = require("./entities/consumption/classification");
|
|
11
|
-
const costs_1 = require("./entities/consumption/costs");
|
|
12
10
|
class ConsumptionClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
13
11
|
constructor() {
|
|
14
12
|
super(...arguments);
|
|
@@ -41,15 +39,6 @@ class ConsumptionClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
41
39
|
this.path = `/license/${licenseReference}/budget`;
|
|
42
40
|
return new getResult_1.GetResult(consumptionBudget_1.ConsumptionBudget, await this.get(parameters));
|
|
43
41
|
}
|
|
44
|
-
async getClassification() {
|
|
45
|
-
this.path = '/classification';
|
|
46
|
-
return new getResult_1.GetResult(classification_1.Classification, await this.get());
|
|
47
|
-
}
|
|
48
|
-
async getCosts(groupByProgram) {
|
|
49
|
-
this.path = '/costs';
|
|
50
|
-
const parameter = groupByProgram ? { groupByProgram: true } : {};
|
|
51
|
-
return new getResult_1.GetResult(costs_1.Costs, await this.get(parameter));
|
|
52
|
-
}
|
|
53
42
|
}
|
|
54
43
|
exports.ConsumptionClient = ConsumptionClient;
|
|
55
44
|
//# sourceMappingURL=consumptionClient.js.map
|
|
@@ -6,5 +6,3 @@ export * from './entities/consumption/consumptionDownloadRequest';
|
|
|
6
6
|
export * from './entities/consumption/consumptionBudget';
|
|
7
7
|
export * from './entities/consumption/consumptionDailyPrediction';
|
|
8
8
|
export * from './consumptionClient';
|
|
9
|
-
export * from './entities/consumption/classification';
|
|
10
|
-
export * from './entities/consumption/costs';
|
|
@@ -22,6 +22,4 @@ __exportStar(require("./entities/consumption/consumptionDownloadRequest"), expor
|
|
|
22
22
|
__exportStar(require("./entities/consumption/consumptionBudget"), exports);
|
|
23
23
|
__exportStar(require("./entities/consumption/consumptionDailyPrediction"), exports);
|
|
24
24
|
__exportStar(require("./consumptionClient"), exports);
|
|
25
|
-
__exportStar(require("./entities/consumption/classification"), exports);
|
|
26
|
-
__exportStar(require("./entities/consumption/costs"), exports);
|
|
27
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -36,7 +36,6 @@ export declare enum CustomerFields {
|
|
|
36
36
|
COLUMN_INTERNAL_REFERENCE = "InternalReference",
|
|
37
37
|
COLUMN_CONTACT = "Contact",
|
|
38
38
|
COLUMN_DELETED_AT = "DeletedAt",
|
|
39
|
-
COLUMN_CREATED_AT = "CreatedAt",
|
|
40
39
|
COLUMN_XAC_RESELLER_ID = "XacResellerId",
|
|
41
40
|
COLUMN_XAC_END_CUSTOMER_ID = "XacEndCustomerId",
|
|
42
41
|
COLUMN_DETAILS = "Details",
|
|
@@ -86,7 +85,6 @@ export declare type CustomerType = {
|
|
|
86
85
|
[CustomerFields.COLUMN_INTERNAL_REFERENCE]: string;
|
|
87
86
|
[CustomerFields.COLUMN_CONTACT]: ContactType;
|
|
88
87
|
[CustomerFields.COLUMN_DELETED_AT]?: string | null;
|
|
89
|
-
[CustomerFields.COLUMN_CREATED_AT]?: string | null;
|
|
90
88
|
[CustomerFields.COLUMN_XAC_RESELLER_ID]?: number;
|
|
91
89
|
[CustomerFields.COLUMN_XAC_END_CUSTOMER_ID]?: number;
|
|
92
90
|
[CustomerFields.COLUMN_DETAILS]: DetailsType;
|
|
@@ -131,7 +129,6 @@ export declare class Customer extends AbstractEntity<CustomerType> {
|
|
|
131
129
|
get Contact(): Contact;
|
|
132
130
|
get Details(): Details;
|
|
133
131
|
get DeletedAt(): string | null | undefined;
|
|
134
|
-
get CreatedAt(): string | null | undefined;
|
|
135
132
|
get XacResellerId(): number | undefined;
|
|
136
133
|
get XacEndCustomerId(): number | undefined;
|
|
137
134
|
get ExtraInformation(): AdditionalExtraInformation | undefined;
|
|
@@ -10,7 +10,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
10
10
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11
11
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
12
|
};
|
|
13
|
-
var _Customer_reference, _Customer_workgroupCode, _Customer_companyName, _Customer_partnerCompanyId, _Customer_addressLine1, _Customer_addressLine2, _Customer_zip, _Customer_city, _Customer_countryCode, _Customer_state, _Customer_receptionPhone, _Customer_websiteUrl, _Customer_emailContact, _Customer_headcount, _Customer_taxNumber, _Customer_ref, _Customer_registrationNumber, _Customer_billingId, _Customer_billingAddress1, _Customer_billingAddress2, _Customer_billingCity, _Customer_billingState, _Customer_billingZipCode, _Customer_billingCountryCode, _Customer_adminNote, _Customer_isr, _Customer_fsr, _Customer_poNumberMandatory, _Customer_type, _Customer_internalReference, _Customer_contact, _Customer_deletedAt,
|
|
13
|
+
var _Customer_reference, _Customer_workgroupCode, _Customer_companyName, _Customer_partnerCompanyId, _Customer_addressLine1, _Customer_addressLine2, _Customer_zip, _Customer_city, _Customer_countryCode, _Customer_state, _Customer_receptionPhone, _Customer_websiteUrl, _Customer_emailContact, _Customer_headcount, _Customer_taxNumber, _Customer_ref, _Customer_registrationNumber, _Customer_billingId, _Customer_billingAddress1, _Customer_billingAddress2, _Customer_billingCity, _Customer_billingState, _Customer_billingZipCode, _Customer_billingCountryCode, _Customer_adminNote, _Customer_isr, _Customer_fsr, _Customer_poNumberMandatory, _Customer_type, _Customer_internalReference, _Customer_contact, _Customer_deletedAt, _Customer_xacResellerId, _Customer_xacEndCustomerId, _Customer_details, _Customer_extraInformation, _Customer_organisationUnit, _Customer_reseller, _Customer_partnerTags;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.Customer = exports.CustomerFields = void 0;
|
|
16
16
|
const abstractEntity_1 = require("../../../abstractEntity");
|
|
@@ -52,7 +52,6 @@ var CustomerFields;
|
|
|
52
52
|
CustomerFields["COLUMN_INTERNAL_REFERENCE"] = "InternalReference";
|
|
53
53
|
CustomerFields["COLUMN_CONTACT"] = "Contact";
|
|
54
54
|
CustomerFields["COLUMN_DELETED_AT"] = "DeletedAt";
|
|
55
|
-
CustomerFields["COLUMN_CREATED_AT"] = "CreatedAt";
|
|
56
55
|
CustomerFields["COLUMN_XAC_RESELLER_ID"] = "XacResellerId";
|
|
57
56
|
CustomerFields["COLUMN_XAC_END_CUSTOMER_ID"] = "XacEndCustomerId";
|
|
58
57
|
CustomerFields["COLUMN_DETAILS"] = "Details";
|
|
@@ -97,7 +96,6 @@ class Customer extends abstractEntity_1.AbstractEntity {
|
|
|
97
96
|
_Customer_internalReference.set(this, void 0);
|
|
98
97
|
_Customer_contact.set(this, void 0);
|
|
99
98
|
_Customer_deletedAt.set(this, void 0);
|
|
100
|
-
_Customer_createdAt.set(this, void 0);
|
|
101
99
|
_Customer_xacResellerId.set(this, void 0);
|
|
102
100
|
_Customer_xacEndCustomerId.set(this, void 0);
|
|
103
101
|
_Customer_details.set(this, void 0);
|
|
@@ -137,7 +135,6 @@ class Customer extends abstractEntity_1.AbstractEntity {
|
|
|
137
135
|
__classPrivateFieldSet(this, _Customer_internalReference, getCustomersDataInput[CustomerFields.COLUMN_INTERNAL_REFERENCE], "f");
|
|
138
136
|
__classPrivateFieldSet(this, _Customer_contact, new contact_1.Contact(getCustomersDataInput[CustomerFields.COLUMN_CONTACT]), "f");
|
|
139
137
|
__classPrivateFieldSet(this, _Customer_deletedAt, getCustomersDataInput[CustomerFields.COLUMN_DELETED_AT], "f");
|
|
140
|
-
__classPrivateFieldSet(this, _Customer_createdAt, getCustomersDataInput[CustomerFields.COLUMN_CREATED_AT], "f");
|
|
141
138
|
__classPrivateFieldSet(this, _Customer_xacResellerId, getCustomersDataInput[CustomerFields.COLUMN_XAC_RESELLER_ID], "f");
|
|
142
139
|
__classPrivateFieldSet(this, _Customer_xacEndCustomerId, getCustomersDataInput[CustomerFields.COLUMN_XAC_END_CUSTOMER_ID], "f");
|
|
143
140
|
__classPrivateFieldSet(this, _Customer_details, new details_1.Details(getCustomersDataInput[CustomerFields.COLUMN_DETAILS]), "f");
|
|
@@ -249,9 +246,6 @@ class Customer extends abstractEntity_1.AbstractEntity {
|
|
|
249
246
|
get DeletedAt() {
|
|
250
247
|
return __classPrivateFieldGet(this, _Customer_deletedAt, "f");
|
|
251
248
|
}
|
|
252
|
-
get CreatedAt() {
|
|
253
|
-
return __classPrivateFieldGet(this, _Customer_createdAt, "f");
|
|
254
|
-
}
|
|
255
249
|
get XacResellerId() {
|
|
256
250
|
return __classPrivateFieldGet(this, _Customer_xacResellerId, "f");
|
|
257
251
|
}
|
|
@@ -306,7 +300,6 @@ class Customer extends abstractEntity_1.AbstractEntity {
|
|
|
306
300
|
[CustomerFields.COLUMN_CONTACT]: this.Contact.toJSON(),
|
|
307
301
|
[CustomerFields.COLUMN_DETAILS]: this.Details.toJSON(),
|
|
308
302
|
[CustomerFields.COLUMN_DELETED_AT]: this.DeletedAt,
|
|
309
|
-
[CustomerFields.COLUMN_CREATED_AT]: this.CreatedAt,
|
|
310
303
|
[CustomerFields.COLUMN_XAC_RESELLER_ID]: this.XacResellerId,
|
|
311
304
|
[CustomerFields.COLUMN_XAC_END_CUSTOMER_ID]: this.XacEndCustomerId,
|
|
312
305
|
[CustomerFields.COLUMN_EXTRA_INFORMATION]: (_a = this.ExtraInformation) === null || _a === void 0 ? void 0 : _a.toJSON(),
|
|
@@ -317,5 +310,5 @@ class Customer extends abstractEntity_1.AbstractEntity {
|
|
|
317
310
|
}
|
|
318
311
|
}
|
|
319
312
|
exports.Customer = Customer;
|
|
320
|
-
_Customer_reference = new WeakMap(), _Customer_workgroupCode = new WeakMap(), _Customer_companyName = new WeakMap(), _Customer_partnerCompanyId = new WeakMap(), _Customer_addressLine1 = new WeakMap(), _Customer_addressLine2 = new WeakMap(), _Customer_zip = new WeakMap(), _Customer_city = new WeakMap(), _Customer_countryCode = new WeakMap(), _Customer_state = new WeakMap(), _Customer_receptionPhone = new WeakMap(), _Customer_websiteUrl = new WeakMap(), _Customer_emailContact = new WeakMap(), _Customer_headcount = new WeakMap(), _Customer_taxNumber = new WeakMap(), _Customer_ref = new WeakMap(), _Customer_registrationNumber = new WeakMap(), _Customer_billingId = new WeakMap(), _Customer_billingAddress1 = new WeakMap(), _Customer_billingAddress2 = new WeakMap(), _Customer_billingCity = new WeakMap(), _Customer_billingState = new WeakMap(), _Customer_billingZipCode = new WeakMap(), _Customer_billingCountryCode = new WeakMap(), _Customer_adminNote = new WeakMap(), _Customer_isr = new WeakMap(), _Customer_fsr = new WeakMap(), _Customer_poNumberMandatory = new WeakMap(), _Customer_type = new WeakMap(), _Customer_internalReference = new WeakMap(), _Customer_contact = new WeakMap(), _Customer_deletedAt = new WeakMap(),
|
|
313
|
+
_Customer_reference = new WeakMap(), _Customer_workgroupCode = new WeakMap(), _Customer_companyName = new WeakMap(), _Customer_partnerCompanyId = new WeakMap(), _Customer_addressLine1 = new WeakMap(), _Customer_addressLine2 = new WeakMap(), _Customer_zip = new WeakMap(), _Customer_city = new WeakMap(), _Customer_countryCode = new WeakMap(), _Customer_state = new WeakMap(), _Customer_receptionPhone = new WeakMap(), _Customer_websiteUrl = new WeakMap(), _Customer_emailContact = new WeakMap(), _Customer_headcount = new WeakMap(), _Customer_taxNumber = new WeakMap(), _Customer_ref = new WeakMap(), _Customer_registrationNumber = new WeakMap(), _Customer_billingId = new WeakMap(), _Customer_billingAddress1 = new WeakMap(), _Customer_billingAddress2 = new WeakMap(), _Customer_billingCity = new WeakMap(), _Customer_billingState = new WeakMap(), _Customer_billingZipCode = new WeakMap(), _Customer_billingCountryCode = new WeakMap(), _Customer_adminNote = new WeakMap(), _Customer_isr = new WeakMap(), _Customer_fsr = new WeakMap(), _Customer_poNumberMandatory = new WeakMap(), _Customer_type = new WeakMap(), _Customer_internalReference = new WeakMap(), _Customer_contact = new WeakMap(), _Customer_deletedAt = new WeakMap(), _Customer_xacResellerId = new WeakMap(), _Customer_xacEndCustomerId = new WeakMap(), _Customer_details = new WeakMap(), _Customer_extraInformation = new WeakMap(), _Customer_organisationUnit = new WeakMap(), _Customer_reseller = new WeakMap(), _Customer_partnerTags = new WeakMap();
|
|
321
314
|
//# sourceMappingURL=customer.js.map
|
package/build/index.d.ts
CHANGED
|
@@ -28,9 +28,6 @@ export * from './supportCenter/';
|
|
|
28
28
|
export * from './securityScore/';
|
|
29
29
|
export * from './user/';
|
|
30
30
|
export * from './billing/';
|
|
31
|
-
export * from './analytics/';
|
|
32
|
-
export * from './reports/';
|
|
33
|
-
export * from './orderSoftware/';
|
|
34
31
|
export { WellArchitected };
|
|
35
32
|
import * as WellArchitected from './wellArchitected';
|
|
36
33
|
export { ContactInformation };
|
package/build/index.js
CHANGED
|
@@ -57,9 +57,6 @@ __exportStar(require("./supportCenter/"), exports);
|
|
|
57
57
|
__exportStar(require("./securityScore/"), exports);
|
|
58
58
|
__exportStar(require("./user/"), exports);
|
|
59
59
|
__exportStar(require("./billing/"), exports);
|
|
60
|
-
__exportStar(require("./analytics/"), exports);
|
|
61
|
-
__exportStar(require("./reports/"), exports);
|
|
62
|
-
__exportStar(require("./orderSoftware/"), exports);
|
|
63
60
|
const WellArchitected = __importStar(require("./wellArchitected"));
|
|
64
61
|
exports.WellArchitected = WellArchitected;
|
|
65
62
|
const ContactInformation = __importStar(require("./contact"));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PriceBandAttribute } from '../../../../../licenses';
|
|
2
|
+
import { AbstractEntity } from '../../../../../abstractEntity';
|
|
3
|
+
export declare enum PriceBandFields {
|
|
4
|
+
COLUMN_ATTRIBUTES = "attributes"
|
|
5
|
+
}
|
|
6
|
+
export declare type PriceBandType = {
|
|
7
|
+
[PriceBandFields.COLUMN_ATTRIBUTES]?: PriceBandAttribute[];
|
|
8
|
+
};
|
|
9
|
+
export declare class PriceBand extends AbstractEntity<PriceBandType> {
|
|
10
|
+
#private;
|
|
11
|
+
constructor(data: PriceBand);
|
|
12
|
+
get attributes(): PriceBandAttribute[] | undefined;
|
|
13
|
+
toJSON(): PriceBandType;
|
|
14
|
+
}
|
|
@@ -10,27 +10,30 @@ 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
|
|
13
|
+
var _PriceBand_attributes;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
15
|
+
exports.PriceBand = exports.PriceBandFields = void 0;
|
|
16
|
+
const licenses_1 = require("../../../../../licenses");
|
|
17
|
+
const abstractEntity_1 = require("../../../../../abstractEntity");
|
|
18
|
+
var PriceBandFields;
|
|
19
|
+
(function (PriceBandFields) {
|
|
20
|
+
PriceBandFields["COLUMN_ATTRIBUTES"] = "attributes";
|
|
21
|
+
})(PriceBandFields = exports.PriceBandFields || (exports.PriceBandFields = {}));
|
|
22
|
+
class PriceBand extends abstractEntity_1.AbstractEntity {
|
|
23
|
+
constructor(data) {
|
|
24
|
+
super(data);
|
|
25
|
+
_PriceBand_attributes.set(this, void 0);
|
|
26
|
+
__classPrivateFieldSet(this, _PriceBand_attributes, data[licenses_1.PriceBandDataFields.COLUMN_ATTRIBUTES], "f");
|
|
24
27
|
}
|
|
25
|
-
get
|
|
26
|
-
return __classPrivateFieldGet(this,
|
|
28
|
+
get attributes() {
|
|
29
|
+
return __classPrivateFieldGet(this, _PriceBand_attributes, "f");
|
|
27
30
|
}
|
|
28
31
|
toJSON() {
|
|
29
32
|
return {
|
|
30
|
-
[
|
|
33
|
+
[licenses_1.PriceBandDataFields.COLUMN_ATTRIBUTES]: this.attributes,
|
|
31
34
|
};
|
|
32
35
|
}
|
|
33
36
|
}
|
|
34
|
-
exports.
|
|
35
|
-
|
|
36
|
-
//# sourceMappingURL=
|
|
37
|
+
exports.PriceBand = PriceBand;
|
|
38
|
+
_PriceBand_attributes = new WeakMap();
|
|
39
|
+
//# sourceMappingURL=priceBand.js.map
|
|
@@ -3,6 +3,7 @@ import { ReferenceLink, ReferenceLinkType } from '../../referenceLink';
|
|
|
3
3
|
import { ProductPrices, ProductPricesType } from './prices/productPrices';
|
|
4
4
|
import { ProductProgram, ProductProgramType } from './program/productProgram';
|
|
5
5
|
import { ProductIdentifiers, ProductIdentifiersType } from './identifiers/productIdentifiers';
|
|
6
|
+
import { PriceBand, PriceBandType } from './priceBand/priceBand';
|
|
6
7
|
export declare enum OrderProductsFields {
|
|
7
8
|
COLUMN_SKU = "sku",
|
|
8
9
|
COLUMN_QUANTITY = "quantity",
|
|
@@ -19,7 +20,8 @@ export declare enum OrderProductsFields {
|
|
|
19
20
|
COLUMN_CLASSIFICATION = "classification",
|
|
20
21
|
COLUMN_PROGRAM = "program",
|
|
21
22
|
COLUMN_IDENTIFIERS = "identifiers",
|
|
22
|
-
COLUMN_ORGANIZATION_UNIT_REF = "organizationUnitRef"
|
|
23
|
+
COLUMN_ORGANIZATION_UNIT_REF = "organizationUnitRef",
|
|
24
|
+
COLUMN_PRICE_BAND = "priceBand"
|
|
23
25
|
}
|
|
24
26
|
export declare type OrderProductsType = {
|
|
25
27
|
[OrderProductsFields.COLUMN_SKU]: string;
|
|
@@ -38,6 +40,7 @@ export declare type OrderProductsType = {
|
|
|
38
40
|
[OrderProductsFields.COLUMN_PROGRAM]: ProductProgramType;
|
|
39
41
|
[OrderProductsFields.COLUMN_IDENTIFIERS]: ProductIdentifiersType;
|
|
40
42
|
[OrderProductsFields.COLUMN_ORGANIZATION_UNIT_REF]?: string;
|
|
43
|
+
[OrderProductsFields.COLUMN_PRICE_BAND]?: PriceBandType;
|
|
41
44
|
};
|
|
42
45
|
export declare class OrderProduct extends AbstractEntity<OrderProductsType> {
|
|
43
46
|
#private;
|
|
@@ -58,5 +61,6 @@ export declare class OrderProduct extends AbstractEntity<OrderProductsType> {
|
|
|
58
61
|
get program(): ProductProgram;
|
|
59
62
|
get identifier(): ProductIdentifiers;
|
|
60
63
|
get organizationUnitRef(): string | undefined;
|
|
64
|
+
get priceBand(): PriceBand | undefined;
|
|
61
65
|
toJSON(): OrderProductsType;
|
|
62
66
|
}
|
|
@@ -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 _OrderProduct_sku, _OrderProduct_quantity, _OrderProduct_status, _OrderProduct_dateStatus, _OrderProduct_detailedStatus, _OrderProduct_isAddon, _OrderProduct_arrowSubCategories, _OrderProduct_isTrial, _OrderProduct_prices, _OrderProduct_subscription, _OrderProduct_license, _OrderProduct_name, _OrderProduct_classification, _OrderProduct_program, _OrderProduct_identifier, _OrderProduct_organizationUnitRef;
|
|
13
|
+
var _OrderProduct_sku, _OrderProduct_quantity, _OrderProduct_status, _OrderProduct_dateStatus, _OrderProduct_detailedStatus, _OrderProduct_isAddon, _OrderProduct_arrowSubCategories, _OrderProduct_isTrial, _OrderProduct_prices, _OrderProduct_subscription, _OrderProduct_license, _OrderProduct_name, _OrderProduct_classification, _OrderProduct_program, _OrderProduct_identifier, _OrderProduct_organizationUnitRef, _OrderProduct_priceBand;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.OrderProduct = exports.OrderProductsFields = void 0;
|
|
16
16
|
const abstractEntity_1 = require("../../../../abstractEntity");
|
|
@@ -18,6 +18,7 @@ const referenceLink_1 = require("../../referenceLink");
|
|
|
18
18
|
const productPrices_1 = require("./prices/productPrices");
|
|
19
19
|
const productProgram_1 = require("./program/productProgram");
|
|
20
20
|
const productIdentifiers_1 = require("./identifiers/productIdentifiers");
|
|
21
|
+
const priceBand_1 = require("./priceBand/priceBand");
|
|
21
22
|
var OrderProductsFields;
|
|
22
23
|
(function (OrderProductsFields) {
|
|
23
24
|
OrderProductsFields["COLUMN_SKU"] = "sku";
|
|
@@ -36,6 +37,7 @@ var OrderProductsFields;
|
|
|
36
37
|
OrderProductsFields["COLUMN_PROGRAM"] = "program";
|
|
37
38
|
OrderProductsFields["COLUMN_IDENTIFIERS"] = "identifiers";
|
|
38
39
|
OrderProductsFields["COLUMN_ORGANIZATION_UNIT_REF"] = "organizationUnitRef";
|
|
40
|
+
OrderProductsFields["COLUMN_PRICE_BAND"] = "priceBand";
|
|
39
41
|
})(OrderProductsFields = exports.OrderProductsFields || (exports.OrderProductsFields = {}));
|
|
40
42
|
class OrderProduct extends abstractEntity_1.AbstractEntity {
|
|
41
43
|
constructor(getOrderProducts) {
|
|
@@ -57,6 +59,7 @@ class OrderProduct extends abstractEntity_1.AbstractEntity {
|
|
|
57
59
|
_OrderProduct_program.set(this, void 0);
|
|
58
60
|
_OrderProduct_identifier.set(this, void 0);
|
|
59
61
|
_OrderProduct_organizationUnitRef.set(this, void 0);
|
|
62
|
+
_OrderProduct_priceBand.set(this, void 0);
|
|
60
63
|
__classPrivateFieldSet(this, _OrderProduct_sku, getOrderProducts[OrderProductsFields.COLUMN_SKU], "f");
|
|
61
64
|
__classPrivateFieldSet(this, _OrderProduct_quantity, getOrderProducts[OrderProductsFields.COLUMN_QUANTITY], "f");
|
|
62
65
|
__classPrivateFieldSet(this, _OrderProduct_status, getOrderProducts[OrderProductsFields.COLUMN_STATUS], "f");
|
|
@@ -75,6 +78,9 @@ class OrderProduct extends abstractEntity_1.AbstractEntity {
|
|
|
75
78
|
__classPrivateFieldSet(this, _OrderProduct_program, new productProgram_1.ProductProgram(getOrderProducts[OrderProductsFields.COLUMN_PROGRAM]), "f");
|
|
76
79
|
__classPrivateFieldSet(this, _OrderProduct_identifier, new productIdentifiers_1.ProductIdentifiers(getOrderProducts[OrderProductsFields.COLUMN_IDENTIFIERS]), "f");
|
|
77
80
|
__classPrivateFieldSet(this, _OrderProduct_organizationUnitRef, getOrderProducts[OrderProductsFields.COLUMN_ORGANIZATION_UNIT_REF], "f");
|
|
81
|
+
__classPrivateFieldSet(this, _OrderProduct_priceBand, getOrderProducts[OrderProductsFields.COLUMN_PRICE_BAND]
|
|
82
|
+
? new priceBand_1.PriceBand(getOrderProducts[OrderProductsFields.COLUMN_PRICE_BAND])
|
|
83
|
+
: undefined, "f");
|
|
78
84
|
}
|
|
79
85
|
get sku() {
|
|
80
86
|
return __classPrivateFieldGet(this, _OrderProduct_sku, "f");
|
|
@@ -124,8 +130,11 @@ class OrderProduct extends abstractEntity_1.AbstractEntity {
|
|
|
124
130
|
get organizationUnitRef() {
|
|
125
131
|
return __classPrivateFieldGet(this, _OrderProduct_organizationUnitRef, "f");
|
|
126
132
|
}
|
|
133
|
+
get priceBand() {
|
|
134
|
+
return __classPrivateFieldGet(this, _OrderProduct_priceBand, "f");
|
|
135
|
+
}
|
|
127
136
|
toJSON() {
|
|
128
|
-
var _a;
|
|
137
|
+
var _a, _b;
|
|
129
138
|
return {
|
|
130
139
|
[OrderProductsFields.COLUMN_SKU]: this.sku,
|
|
131
140
|
[OrderProductsFields.COLUMN_QUANTITY]: this.quantity,
|
|
@@ -144,9 +153,10 @@ class OrderProduct extends abstractEntity_1.AbstractEntity {
|
|
|
144
153
|
[OrderProductsFields.COLUMN_IDENTIFIERS]: this.identifier.toJSON(),
|
|
145
154
|
[OrderProductsFields.COLUMN_ORGANIZATION_UNIT_REF]: this
|
|
146
155
|
.organizationUnitRef,
|
|
156
|
+
[OrderProductsFields.COLUMN_PRICE_BAND]: (_b = this.priceBand) === null || _b === void 0 ? void 0 : _b.toJSON(),
|
|
147
157
|
};
|
|
148
158
|
}
|
|
149
159
|
}
|
|
150
160
|
exports.OrderProduct = OrderProduct;
|
|
151
|
-
_OrderProduct_sku = new WeakMap(), _OrderProduct_quantity = new WeakMap(), _OrderProduct_status = new WeakMap(), _OrderProduct_dateStatus = new WeakMap(), _OrderProduct_detailedStatus = new WeakMap(), _OrderProduct_isAddon = new WeakMap(), _OrderProduct_arrowSubCategories = new WeakMap(), _OrderProduct_isTrial = new WeakMap(), _OrderProduct_prices = new WeakMap(), _OrderProduct_subscription = new WeakMap(), _OrderProduct_license = new WeakMap(), _OrderProduct_name = new WeakMap(), _OrderProduct_classification = new WeakMap(), _OrderProduct_program = new WeakMap(), _OrderProduct_identifier = new WeakMap(), _OrderProduct_organizationUnitRef = new WeakMap();
|
|
161
|
+
_OrderProduct_sku = new WeakMap(), _OrderProduct_quantity = new WeakMap(), _OrderProduct_status = new WeakMap(), _OrderProduct_dateStatus = new WeakMap(), _OrderProduct_detailedStatus = new WeakMap(), _OrderProduct_isAddon = new WeakMap(), _OrderProduct_arrowSubCategories = new WeakMap(), _OrderProduct_isTrial = new WeakMap(), _OrderProduct_prices = new WeakMap(), _OrderProduct_subscription = new WeakMap(), _OrderProduct_license = new WeakMap(), _OrderProduct_name = new WeakMap(), _OrderProduct_classification = new WeakMap(), _OrderProduct_program = new WeakMap(), _OrderProduct_identifier = new WeakMap(), _OrderProduct_organizationUnitRef = new WeakMap(), _OrderProduct_priceBand = new WeakMap();
|
|
152
162
|
//# sourceMappingURL=products.js.map
|
|
@@ -18,9 +18,6 @@ import { PartnerClient } from './partner';
|
|
|
18
18
|
import { OrganizationUnitClient } from './organisationUnit';
|
|
19
19
|
import { QuotesClient } from './quotes';
|
|
20
20
|
import { BillingClient } from './billing';
|
|
21
|
-
import { AnalyticsClient } from './analytics';
|
|
22
|
-
import { ReportsClient } from './reports';
|
|
23
|
-
import { OrderSoftwareClient } from './orderSoftware';
|
|
24
21
|
/**
|
|
25
22
|
* Public API Client class, should be the main entry point for your calls
|
|
26
23
|
*/
|
|
@@ -72,11 +69,6 @@ export declare class PublicApiClient extends AbstractRestfulClient {
|
|
|
72
69
|
* @returns {@link OrdersClient}
|
|
73
70
|
*/
|
|
74
71
|
getOrdersClient(configuration?: ConfigurationsClient): OrdersClient;
|
|
75
|
-
/**
|
|
76
|
-
* Creates a new {@link OrderSoftwareClient} instance and returns it
|
|
77
|
-
* @returns {@link OrderSoftwareClient}
|
|
78
|
-
*/
|
|
79
|
-
getOrderSoftwareClient(configuration?: ConfigurationsClient): OrderSoftwareClient;
|
|
80
72
|
/**
|
|
81
73
|
* Creates a new {@link ContactClient} instance and returns it
|
|
82
74
|
* @returns {@link ContactClient}
|
|
@@ -107,7 +99,5 @@ export declare class PublicApiClient extends AbstractRestfulClient {
|
|
|
107
99
|
getNotificationsClient(configuration?: ConfigurationsClient): NotificationsClient;
|
|
108
100
|
getOrganizationUnitClient(configuration?: ConfigurationsClient): OrganizationUnitClient;
|
|
109
101
|
getBillingClient(configuration?: ConfigurationsClient): BillingClient;
|
|
110
|
-
getAnalyticsClient(configuration?: ConfigurationsClient): AnalyticsClient;
|
|
111
|
-
getReportsClient(configuration?: ConfigurationsClient): ReportsClient;
|
|
112
102
|
}
|
|
113
103
|
export default PublicApiClient;
|
package/build/publicApiClient.js
CHANGED
|
@@ -21,9 +21,6 @@ const partner_1 = require("./partner");
|
|
|
21
21
|
const organisationUnit_1 = require("./organisationUnit");
|
|
22
22
|
const quotes_1 = require("./quotes");
|
|
23
23
|
const billing_1 = require("./billing");
|
|
24
|
-
const analytics_1 = require("./analytics");
|
|
25
|
-
const reports_1 = require("./reports");
|
|
26
|
-
const orderSoftware_1 = require("./orderSoftware");
|
|
27
24
|
/**
|
|
28
25
|
* Public API Client class, should be the main entry point for your calls
|
|
29
26
|
*/
|
|
@@ -120,15 +117,6 @@ class PublicApiClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
120
117
|
this.applyConfig(client);
|
|
121
118
|
return client;
|
|
122
119
|
}
|
|
123
|
-
/**
|
|
124
|
-
* Creates a new {@link OrderSoftwareClient} instance and returns it
|
|
125
|
-
* @returns {@link OrderSoftwareClient}
|
|
126
|
-
*/
|
|
127
|
-
getOrderSoftwareClient(configuration) {
|
|
128
|
-
const client = new orderSoftware_1.OrderSoftwareClient(configuration);
|
|
129
|
-
this.applyConfig(client);
|
|
130
|
-
return client;
|
|
131
|
-
}
|
|
132
120
|
/**
|
|
133
121
|
* Creates a new {@link ContactClient} instance and returns it
|
|
134
122
|
* @returns {@link ContactClient}
|
|
@@ -215,16 +203,6 @@ class PublicApiClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
215
203
|
this.applyConfig(client);
|
|
216
204
|
return client;
|
|
217
205
|
}
|
|
218
|
-
getAnalyticsClient(configuration) {
|
|
219
|
-
const client = new analytics_1.AnalyticsClient(configuration);
|
|
220
|
-
this.applyConfig(client);
|
|
221
|
-
return client;
|
|
222
|
-
}
|
|
223
|
-
getReportsClient(configuration) {
|
|
224
|
-
const client = new reports_1.ReportsClient(configuration);
|
|
225
|
-
this.applyConfig(client);
|
|
226
|
-
return client;
|
|
227
|
-
}
|
|
228
206
|
}
|
|
229
207
|
exports.PublicApiClient = PublicApiClient;
|
|
230
208
|
exports.default = PublicApiClient;
|
package/package.json
CHANGED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { AbstractRestfulClient, Parameters } from '../abstractRestfulClient';
|
|
2
|
-
import { GetResult } from '../getResult';
|
|
3
|
-
import { DataAnalytics } from './entities/dataAnalytics';
|
|
4
|
-
export declare enum ListReportParametersFields {
|
|
5
|
-
COLUMN_VENDOR = "vendor",
|
|
6
|
-
COLUMN_MARKETPLACE = "marketplace",
|
|
7
|
-
COLUMN_CLASSIFICATION = "classification",
|
|
8
|
-
COLUMN_LICENSE = "license",
|
|
9
|
-
COLUMN_MONTH = "month",
|
|
10
|
-
COLUMN_TAG = "tag"
|
|
11
|
-
}
|
|
12
|
-
export declare type ListReportParametersType = Parameters & {
|
|
13
|
-
[ListReportParametersFields.COLUMN_VENDOR]?: Array<string>;
|
|
14
|
-
[ListReportParametersFields.COLUMN_MARKETPLACE]?: Array<string>;
|
|
15
|
-
[ListReportParametersFields.COLUMN_CLASSIFICATION]?: Array<string>;
|
|
16
|
-
[ListReportParametersFields.COLUMN_LICENSE]?: Array<string>;
|
|
17
|
-
[ListReportParametersFields.COLUMN_MONTH]: string;
|
|
18
|
-
[ListReportParametersFields.COLUMN_TAG]?: Array<string>;
|
|
19
|
-
};
|
|
20
|
-
export declare class AnalyticsClient extends AbstractRestfulClient {
|
|
21
|
-
/**
|
|
22
|
-
* The base path of the API
|
|
23
|
-
*/
|
|
24
|
-
protected basePath: string;
|
|
25
|
-
getMonthly(parameters: ListReportParametersType): Promise<GetResult<DataAnalytics>>;
|
|
26
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AnalyticsClient = exports.ListReportParametersFields = void 0;
|
|
4
|
-
const abstractRestfulClient_1 = require("../abstractRestfulClient");
|
|
5
|
-
const getResult_1 = require("../getResult");
|
|
6
|
-
const dataAnalytics_1 = require("./entities/dataAnalytics");
|
|
7
|
-
var ListReportParametersFields;
|
|
8
|
-
(function (ListReportParametersFields) {
|
|
9
|
-
ListReportParametersFields["COLUMN_VENDOR"] = "vendor";
|
|
10
|
-
ListReportParametersFields["COLUMN_MARKETPLACE"] = "marketplace";
|
|
11
|
-
ListReportParametersFields["COLUMN_CLASSIFICATION"] = "classification";
|
|
12
|
-
ListReportParametersFields["COLUMN_LICENSE"] = "license";
|
|
13
|
-
ListReportParametersFields["COLUMN_MONTH"] = "month";
|
|
14
|
-
ListReportParametersFields["COLUMN_TAG"] = "tag";
|
|
15
|
-
})(ListReportParametersFields = exports.ListReportParametersFields || (exports.ListReportParametersFields = {}));
|
|
16
|
-
class AnalyticsClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
17
|
-
constructor() {
|
|
18
|
-
super(...arguments);
|
|
19
|
-
/**
|
|
20
|
-
* The base path of the API
|
|
21
|
-
*/
|
|
22
|
-
this.basePath = '/consumption';
|
|
23
|
-
}
|
|
24
|
-
async getMonthly(parameters) {
|
|
25
|
-
this.path = '/analytics/monthly';
|
|
26
|
-
return new getResult_1.GetResult(dataAnalytics_1.DataAnalytics, await this.get(parameters));
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
exports.AnalyticsClient = AnalyticsClient;
|
|
30
|
-
//# sourceMappingURL=analyticsClient.js.map
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Price, PriceType } from './price';
|
|
2
|
-
import { AbstractEntity } from '../../abstractEntity';
|
|
3
|
-
export declare enum AnalyticsFields {
|
|
4
|
-
COLUMN_VENDOR = "vendor",
|
|
5
|
-
COLUMN_MARKETPLACE = "marketplace",
|
|
6
|
-
COLUMN_CLASSIFICATION = "classification",
|
|
7
|
-
COLUMN_TAG = "tag",
|
|
8
|
-
COLUMN_MONTH = "month",
|
|
9
|
-
COLUMN_USD_PRICE = "usdPrice",
|
|
10
|
-
COLUMN_LOCAL_PRICE = "localPrice"
|
|
11
|
-
}
|
|
12
|
-
export declare type AnalyticsType = {
|
|
13
|
-
[AnalyticsFields.COLUMN_VENDOR]: string;
|
|
14
|
-
[AnalyticsFields.COLUMN_MARKETPLACE]: string;
|
|
15
|
-
[AnalyticsFields.COLUMN_CLASSIFICATION]: string;
|
|
16
|
-
[AnalyticsFields.COLUMN_TAG]: string;
|
|
17
|
-
[AnalyticsFields.COLUMN_MONTH]: string;
|
|
18
|
-
[AnalyticsFields.COLUMN_USD_PRICE]: PriceType;
|
|
19
|
-
[AnalyticsFields.COLUMN_LOCAL_PRICE]: PriceType;
|
|
20
|
-
};
|
|
21
|
-
export declare class Analytics extends AbstractEntity<AnalyticsType> {
|
|
22
|
-
#private;
|
|
23
|
-
constructor(analyticsInput: AnalyticsType);
|
|
24
|
-
get vendor(): string;
|
|
25
|
-
get marketplace(): string;
|
|
26
|
-
get classification(): string;
|
|
27
|
-
get tag(): string;
|
|
28
|
-
get month(): string;
|
|
29
|
-
get usdPrice(): Price;
|
|
30
|
-
get localPrice(): Price;
|
|
31
|
-
toJSON(): AnalyticsType;
|
|
32
|
-
}
|
|
@@ -1,81 +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 _Analytics_vendor, _Analytics_marketplace, _Analytics_classification, _Analytics_tag, _Analytics_month, _Analytics_usdPrice, _Analytics_localPrice;
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.Analytics = exports.AnalyticsFields = void 0;
|
|
16
|
-
const price_1 = require("./price");
|
|
17
|
-
const abstractEntity_1 = require("../../abstractEntity");
|
|
18
|
-
var AnalyticsFields;
|
|
19
|
-
(function (AnalyticsFields) {
|
|
20
|
-
AnalyticsFields["COLUMN_VENDOR"] = "vendor";
|
|
21
|
-
AnalyticsFields["COLUMN_MARKETPLACE"] = "marketplace";
|
|
22
|
-
AnalyticsFields["COLUMN_CLASSIFICATION"] = "classification";
|
|
23
|
-
AnalyticsFields["COLUMN_TAG"] = "tag";
|
|
24
|
-
AnalyticsFields["COLUMN_MONTH"] = "month";
|
|
25
|
-
AnalyticsFields["COLUMN_USD_PRICE"] = "usdPrice";
|
|
26
|
-
AnalyticsFields["COLUMN_LOCAL_PRICE"] = "localPrice";
|
|
27
|
-
})(AnalyticsFields = exports.AnalyticsFields || (exports.AnalyticsFields = {}));
|
|
28
|
-
class Analytics extends abstractEntity_1.AbstractEntity {
|
|
29
|
-
constructor(analyticsInput) {
|
|
30
|
-
super(analyticsInput);
|
|
31
|
-
_Analytics_vendor.set(this, void 0);
|
|
32
|
-
_Analytics_marketplace.set(this, void 0);
|
|
33
|
-
_Analytics_classification.set(this, void 0);
|
|
34
|
-
_Analytics_tag.set(this, void 0);
|
|
35
|
-
_Analytics_month.set(this, void 0);
|
|
36
|
-
_Analytics_usdPrice.set(this, void 0);
|
|
37
|
-
_Analytics_localPrice.set(this, void 0);
|
|
38
|
-
__classPrivateFieldSet(this, _Analytics_vendor, analyticsInput[AnalyticsFields.COLUMN_VENDOR], "f");
|
|
39
|
-
__classPrivateFieldSet(this, _Analytics_marketplace, analyticsInput[AnalyticsFields.COLUMN_MARKETPLACE], "f");
|
|
40
|
-
__classPrivateFieldSet(this, _Analytics_classification, analyticsInput[AnalyticsFields.COLUMN_CLASSIFICATION], "f");
|
|
41
|
-
__classPrivateFieldSet(this, _Analytics_tag, analyticsInput[AnalyticsFields.COLUMN_TAG], "f");
|
|
42
|
-
__classPrivateFieldSet(this, _Analytics_month, analyticsInput[AnalyticsFields.COLUMN_MONTH], "f");
|
|
43
|
-
__classPrivateFieldSet(this, _Analytics_usdPrice, new price_1.Price(analyticsInput[AnalyticsFields.COLUMN_USD_PRICE]), "f");
|
|
44
|
-
__classPrivateFieldSet(this, _Analytics_localPrice, new price_1.Price(analyticsInput[AnalyticsFields.COLUMN_LOCAL_PRICE]), "f");
|
|
45
|
-
}
|
|
46
|
-
get vendor() {
|
|
47
|
-
return __classPrivateFieldGet(this, _Analytics_vendor, "f");
|
|
48
|
-
}
|
|
49
|
-
get marketplace() {
|
|
50
|
-
return __classPrivateFieldGet(this, _Analytics_marketplace, "f");
|
|
51
|
-
}
|
|
52
|
-
get classification() {
|
|
53
|
-
return __classPrivateFieldGet(this, _Analytics_classification, "f");
|
|
54
|
-
}
|
|
55
|
-
get tag() {
|
|
56
|
-
return __classPrivateFieldGet(this, _Analytics_tag, "f");
|
|
57
|
-
}
|
|
58
|
-
get month() {
|
|
59
|
-
return __classPrivateFieldGet(this, _Analytics_month, "f");
|
|
60
|
-
}
|
|
61
|
-
get usdPrice() {
|
|
62
|
-
return __classPrivateFieldGet(this, _Analytics_usdPrice, "f");
|
|
63
|
-
}
|
|
64
|
-
get localPrice() {
|
|
65
|
-
return __classPrivateFieldGet(this, _Analytics_localPrice, "f");
|
|
66
|
-
}
|
|
67
|
-
toJSON() {
|
|
68
|
-
return {
|
|
69
|
-
[AnalyticsFields.COLUMN_VENDOR]: this.vendor,
|
|
70
|
-
[AnalyticsFields.COLUMN_MARKETPLACE]: this.marketplace,
|
|
71
|
-
[AnalyticsFields.COLUMN_CLASSIFICATION]: this.classification,
|
|
72
|
-
[AnalyticsFields.COLUMN_TAG]: this.tag,
|
|
73
|
-
[AnalyticsFields.COLUMN_MONTH]: this.month,
|
|
74
|
-
[AnalyticsFields.COLUMN_USD_PRICE]: this.usdPrice.toJSON(),
|
|
75
|
-
[AnalyticsFields.COLUMN_LOCAL_PRICE]: this.localPrice.toJSON(),
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
exports.Analytics = Analytics;
|
|
80
|
-
_Analytics_vendor = new WeakMap(), _Analytics_marketplace = new WeakMap(), _Analytics_classification = new WeakMap(), _Analytics_tag = new WeakMap(), _Analytics_month = new WeakMap(), _Analytics_usdPrice = new WeakMap(), _Analytics_localPrice = new WeakMap();
|
|
81
|
-
//# sourceMappingURL=analytics.js.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { AbstractEntity } from '../../abstractEntity';
|
|
2
|
-
import { Analytics, AnalyticsType } from './analytics';
|
|
3
|
-
export declare type DataAnalyticsType = Array<AnalyticsType>;
|
|
4
|
-
export declare class DataAnalytics extends AbstractEntity<DataAnalyticsType> {
|
|
5
|
-
#private;
|
|
6
|
-
constructor(dataInput: DataAnalyticsType);
|
|
7
|
-
get data(): Array<Analytics>;
|
|
8
|
-
toJSON(): DataAnalyticsType;
|
|
9
|
-
}
|