@arrowsphere/api-client 3.151.0-rc.mla.1 → 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 +22 -5
- 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/graphqlApi/types/entities/quote.d.ts +2 -0
- 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 +8 -1
- package/build/orders/entities/orders/products/products.js +21 -3
- package/build/publicApiClient.d.ts +0 -10
- package/build/publicApiClient.js +0 -22
- package/build/quotes/quotesClient.d.ts +1 -0
- package/build/quotes/quotesClient.js +4 -0
- 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,13 +3,30 @@
|
|
|
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.
|
|
6
|
+
## [3.151.0] - 2024.10.22
|
|
7
7
|
|
|
8
8
|
### Added
|
|
9
|
-
- [
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
- [orders] Added priceBand property in OrderProduct entity
|
|
10
|
+
|
|
11
|
+
## [3.150.0] - 2024.10.15
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
- [orders] Added organizationUnitRef property in order product entity
|
|
15
|
+
|
|
16
|
+
## [3.149.0] - 2024.10.14
|
|
17
|
+
|
|
18
|
+
### Updated
|
|
19
|
+
- [quotes] replace key 'vendorUplift' by 'vendorRateValue'
|
|
20
|
+
|
|
21
|
+
## [3.148.0] - 2024.10.10
|
|
22
|
+
|
|
23
|
+
### Added
|
|
24
|
+
- [quotes] add vendorRateType and vendorUplift
|
|
25
|
+
|
|
26
|
+
## [3.147.0] - 2024.010.09
|
|
27
|
+
|
|
28
|
+
### Added
|
|
29
|
+
- [quotes] add endpoints to reopen a quote
|
|
13
30
|
|
|
14
31
|
## [3.146.0] - 2024.10.08
|
|
15
32
|
|
|
@@ -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
|
|
@@ -69,6 +69,8 @@ export declare type ItemData = {
|
|
|
69
69
|
billingCycle?: number;
|
|
70
70
|
arrowRateValue?: number;
|
|
71
71
|
partnerRateValue?: number;
|
|
72
|
+
vendorRateType?: string;
|
|
73
|
+
vendorRateValue?: number;
|
|
72
74
|
arrowSpherePriceBandSku?: string;
|
|
73
75
|
licenseAgreementType?: string;
|
|
74
76
|
classification?: string;
|
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",
|
|
@@ -18,7 +19,9 @@ export declare enum OrderProductsFields {
|
|
|
18
19
|
COLUMN_NAME = "name",
|
|
19
20
|
COLUMN_CLASSIFICATION = "classification",
|
|
20
21
|
COLUMN_PROGRAM = "program",
|
|
21
|
-
COLUMN_IDENTIFIERS = "identifiers"
|
|
22
|
+
COLUMN_IDENTIFIERS = "identifiers",
|
|
23
|
+
COLUMN_ORGANIZATION_UNIT_REF = "organizationUnitRef",
|
|
24
|
+
COLUMN_PRICE_BAND = "priceBand"
|
|
22
25
|
}
|
|
23
26
|
export declare type OrderProductsType = {
|
|
24
27
|
[OrderProductsFields.COLUMN_SKU]: string;
|
|
@@ -36,6 +39,8 @@ export declare type OrderProductsType = {
|
|
|
36
39
|
[OrderProductsFields.COLUMN_CLASSIFICATION]: string;
|
|
37
40
|
[OrderProductsFields.COLUMN_PROGRAM]: ProductProgramType;
|
|
38
41
|
[OrderProductsFields.COLUMN_IDENTIFIERS]: ProductIdentifiersType;
|
|
42
|
+
[OrderProductsFields.COLUMN_ORGANIZATION_UNIT_REF]?: string;
|
|
43
|
+
[OrderProductsFields.COLUMN_PRICE_BAND]?: PriceBandType;
|
|
39
44
|
};
|
|
40
45
|
export declare class OrderProduct extends AbstractEntity<OrderProductsType> {
|
|
41
46
|
#private;
|
|
@@ -55,5 +60,7 @@ export declare class OrderProduct extends AbstractEntity<OrderProductsType> {
|
|
|
55
60
|
get classification(): string;
|
|
56
61
|
get program(): ProductProgram;
|
|
57
62
|
get identifier(): ProductIdentifiers;
|
|
63
|
+
get organizationUnitRef(): string | undefined;
|
|
64
|
+
get priceBand(): PriceBand | undefined;
|
|
58
65
|
toJSON(): OrderProductsType;
|
|
59
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;
|
|
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";
|
|
@@ -35,6 +36,8 @@ var OrderProductsFields;
|
|
|
35
36
|
OrderProductsFields["COLUMN_CLASSIFICATION"] = "classification";
|
|
36
37
|
OrderProductsFields["COLUMN_PROGRAM"] = "program";
|
|
37
38
|
OrderProductsFields["COLUMN_IDENTIFIERS"] = "identifiers";
|
|
39
|
+
OrderProductsFields["COLUMN_ORGANIZATION_UNIT_REF"] = "organizationUnitRef";
|
|
40
|
+
OrderProductsFields["COLUMN_PRICE_BAND"] = "priceBand";
|
|
38
41
|
})(OrderProductsFields = exports.OrderProductsFields || (exports.OrderProductsFields = {}));
|
|
39
42
|
class OrderProduct extends abstractEntity_1.AbstractEntity {
|
|
40
43
|
constructor(getOrderProducts) {
|
|
@@ -55,6 +58,8 @@ class OrderProduct extends abstractEntity_1.AbstractEntity {
|
|
|
55
58
|
_OrderProduct_classification.set(this, void 0);
|
|
56
59
|
_OrderProduct_program.set(this, void 0);
|
|
57
60
|
_OrderProduct_identifier.set(this, void 0);
|
|
61
|
+
_OrderProduct_organizationUnitRef.set(this, void 0);
|
|
62
|
+
_OrderProduct_priceBand.set(this, void 0);
|
|
58
63
|
__classPrivateFieldSet(this, _OrderProduct_sku, getOrderProducts[OrderProductsFields.COLUMN_SKU], "f");
|
|
59
64
|
__classPrivateFieldSet(this, _OrderProduct_quantity, getOrderProducts[OrderProductsFields.COLUMN_QUANTITY], "f");
|
|
60
65
|
__classPrivateFieldSet(this, _OrderProduct_status, getOrderProducts[OrderProductsFields.COLUMN_STATUS], "f");
|
|
@@ -72,6 +77,10 @@ class OrderProduct extends abstractEntity_1.AbstractEntity {
|
|
|
72
77
|
__classPrivateFieldSet(this, _OrderProduct_classification, getOrderProducts[OrderProductsFields.COLUMN_CLASSIFICATION], "f");
|
|
73
78
|
__classPrivateFieldSet(this, _OrderProduct_program, new productProgram_1.ProductProgram(getOrderProducts[OrderProductsFields.COLUMN_PROGRAM]), "f");
|
|
74
79
|
__classPrivateFieldSet(this, _OrderProduct_identifier, new productIdentifiers_1.ProductIdentifiers(getOrderProducts[OrderProductsFields.COLUMN_IDENTIFIERS]), "f");
|
|
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");
|
|
75
84
|
}
|
|
76
85
|
get sku() {
|
|
77
86
|
return __classPrivateFieldGet(this, _OrderProduct_sku, "f");
|
|
@@ -118,8 +127,14 @@ class OrderProduct extends abstractEntity_1.AbstractEntity {
|
|
|
118
127
|
get identifier() {
|
|
119
128
|
return __classPrivateFieldGet(this, _OrderProduct_identifier, "f");
|
|
120
129
|
}
|
|
130
|
+
get organizationUnitRef() {
|
|
131
|
+
return __classPrivateFieldGet(this, _OrderProduct_organizationUnitRef, "f");
|
|
132
|
+
}
|
|
133
|
+
get priceBand() {
|
|
134
|
+
return __classPrivateFieldGet(this, _OrderProduct_priceBand, "f");
|
|
135
|
+
}
|
|
121
136
|
toJSON() {
|
|
122
|
-
var _a;
|
|
137
|
+
var _a, _b;
|
|
123
138
|
return {
|
|
124
139
|
[OrderProductsFields.COLUMN_SKU]: this.sku,
|
|
125
140
|
[OrderProductsFields.COLUMN_QUANTITY]: this.quantity,
|
|
@@ -136,9 +151,12 @@ class OrderProduct extends abstractEntity_1.AbstractEntity {
|
|
|
136
151
|
[OrderProductsFields.COLUMN_CLASSIFICATION]: this.classification,
|
|
137
152
|
[OrderProductsFields.COLUMN_PROGRAM]: this.program.toJSON(),
|
|
138
153
|
[OrderProductsFields.COLUMN_IDENTIFIERS]: this.identifier.toJSON(),
|
|
154
|
+
[OrderProductsFields.COLUMN_ORGANIZATION_UNIT_REF]: this
|
|
155
|
+
.organizationUnitRef,
|
|
156
|
+
[OrderProductsFields.COLUMN_PRICE_BAND]: (_b = this.priceBand) === null || _b === void 0 ? void 0 : _b.toJSON(),
|
|
139
157
|
};
|
|
140
158
|
}
|
|
141
159
|
}
|
|
142
160
|
exports.OrderProduct = OrderProduct;
|
|
143
|
-
_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();
|
|
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();
|
|
144
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;
|
|
@@ -65,6 +65,7 @@ export declare class QuotesClient extends AbstractRestfulClient {
|
|
|
65
65
|
requestQuoteForVendor(vendor: string, postData: RequestQuoteIbmRequestType, parameters?: Parameters): Promise<void>;
|
|
66
66
|
deleteQuote(quoteReference: string, parameters?: Parameters): Promise<void>;
|
|
67
67
|
validateQuote(quoteReference: string, parameters?: Parameters): Promise<GetResult<PutQuoteResult>>;
|
|
68
|
+
reopenQuote(quoteReference: string, parameters?: Parameters): Promise<GetResult<PutQuoteResult>>;
|
|
68
69
|
createQuote(postData: CreateQuoteRequestType, parameters?: Parameters): Promise<GetResult<PutQuoteResult>>;
|
|
69
70
|
publishQuote(quoteReference: string, postData: PublishQuoteRequestType, parameters?: Parameters): Promise<GetResult<PutQuoteResult>>;
|
|
70
71
|
addCommentToQuote(quoteReference: string, postData: CreateCommentType, parameters?: Parameters): Promise<GetResult<QuoteComments>>;
|
|
@@ -27,6 +27,10 @@ class QuotesClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
27
27
|
this.path = `/${quoteReference}/validate`;
|
|
28
28
|
return new getResult_1.GetResult(PutQuoteResult_1.PutQuoteResult, await this.get(parameters));
|
|
29
29
|
}
|
|
30
|
+
async reopenQuote(quoteReference, parameters = {}) {
|
|
31
|
+
this.path = `/${quoteReference}/reopen`;
|
|
32
|
+
return new getResult_1.GetResult(PutQuoteResult_1.PutQuoteResult, await this.get(parameters));
|
|
33
|
+
}
|
|
30
34
|
async createQuote(postData, parameters = {}) {
|
|
31
35
|
this.path = '';
|
|
32
36
|
return new getResult_1.GetResult(PutQuoteResult_1.PutQuoteResult, await this.post(postData, parameters));
|
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
|
-
}
|