@arrowsphere/api-client 3.150.0 → 3.151.0-rc.mla.1
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 -17
- package/build/analytics/analyticsClient.d.ts +26 -0
- package/build/analytics/analyticsClient.js +30 -0
- package/build/analytics/entities/analytics.d.ts +32 -0
- package/build/analytics/entities/analytics.js +81 -0
- package/build/analytics/entities/dataAnalytics.d.ts +9 -0
- package/build/analytics/entities/dataAnalytics.js +33 -0
- package/build/analytics/entities/price.d.ts +24 -0
- package/build/analytics/entities/price.js +65 -0
- package/build/analytics/index.d.ts +4 -0
- package/build/analytics/index.js +21 -0
- package/build/consumption/consumptionClient.d.ts +4 -0
- package/build/consumption/consumptionClient.js +11 -0
- package/build/consumption/entities/consumption/classification.d.ts +13 -0
- package/build/consumption/entities/consumption/classification.js +38 -0
- package/build/consumption/entities/consumption/costs.d.ts +18 -0
- package/build/consumption/entities/consumption/costs.js +38 -0
- package/build/consumption/index.d.ts +2 -0
- package/build/consumption/index.js +2 -0
- package/build/customers/entities/customers/customer.d.ts +3 -0
- package/build/customers/entities/customers/customer.js +9 -2
- package/build/graphqlApi/types/entities/quote.d.ts +0 -2
- package/build/index.d.ts +3 -0
- package/build/index.js +3 -0
- package/build/orderSoftware/entities/dataListOrderSoftware.d.ts +14 -0
- package/build/orderSoftware/entities/dataListOrderSoftware.js +39 -0
- package/build/orderSoftware/entities/orderSoftware.d.ts +30 -0
- package/build/orderSoftware/entities/orderSoftware.js +75 -0
- package/build/orderSoftware/entities/orderSoftwarePrice.d.ts +19 -0
- package/build/orderSoftware/entities/orderSoftwarePrice.js +52 -0
- package/build/orderSoftware/entities/orderSoftwareProduct.d.ts +26 -0
- package/build/orderSoftware/entities/orderSoftwareProduct.js +67 -0
- package/build/orderSoftware/entities/orderSoftwareReference.d.ts +16 -0
- package/build/orderSoftware/entities/orderSoftwareReference.js +45 -0
- package/build/orderSoftware/index.d.ts +5 -0
- package/build/orderSoftware/index.js +22 -0
- package/build/orderSoftware/orderSoftwareClient.d.ts +11 -0
- package/build/orderSoftware/orderSoftwareClient.js +25 -0
- package/build/orders/entities/orders/products/products.d.ts +1 -4
- package/build/orders/entities/orders/products/products.js +2 -10
- package/build/publicApiClient.d.ts +10 -0
- package/build/publicApiClient.js +22 -0
- package/build/quotes/quotesClient.d.ts +0 -1
- package/build/quotes/quotesClient.js +0 -4
- package/build/reports/entities/dataListReports.d.ts +14 -0
- package/build/reports/entities/dataListReports.js +39 -0
- package/build/reports/entities/reference.d.ts +12 -0
- package/build/reports/entities/reference.js +36 -0
- package/build/reports/entities/report.d.ts +30 -0
- package/build/reports/entities/report.js +75 -0
- package/build/reports/entities/reportProduct.d.ts +30 -0
- package/build/reports/entities/reportProduct.js +75 -0
- package/build/reports/entities/reportProductPrice.d.ts +19 -0
- package/build/reports/entities/reportProductPrice.js +52 -0
- package/build/reports/entities/reportReferenceLink.d.ts +14 -0
- package/build/reports/entities/reportReferenceLink.js +39 -0
- package/build/reports/entities/reportValidation.d.ts +19 -0
- package/build/reports/entities/reportValidation.js +52 -0
- package/build/reports/entities/reportValidationReference.d.ts +14 -0
- package/build/reports/entities/reportValidationReference.js +39 -0
- package/build/reports/index.d.ts +9 -0
- package/build/reports/index.js +26 -0
- package/build/reports/reportsClient.d.ts +36 -0
- package/build/reports/reportsClient.js +50 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,25 +3,13 @@
|
|
|
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.147.0] - 2024.10.09
|
|
7
7
|
|
|
8
8
|
### Added
|
|
9
|
-
- [
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
### Updated
|
|
14
|
-
- [quotes] replace key 'vendorUplift' by 'vendorRateValue'
|
|
15
|
-
|
|
16
|
-
## [3.148.0] - 2024.10.10
|
|
17
|
-
|
|
18
|
-
### Added
|
|
19
|
-
- [quotes] add vendorRateType and vendorUplift
|
|
20
|
-
|
|
21
|
-
## [3.147.0] - 2024.010.09
|
|
22
|
-
|
|
23
|
-
### Added
|
|
24
|
-
- [quotes] add endpoints to reopen a quote
|
|
9
|
+
- [Customer] Added CreatedAt field in Customer entity
|
|
10
|
+
- [Report] Creating Reports Client to support the Reports API (Get Reports, Get Report, Create Report, Validate Report)
|
|
11
|
+
- [Analytics] Creating Analytics Client to support the Consumption Analytics API (GetMonthly)
|
|
12
|
+
- [Consumption] Update Consumption Client to support new Endpoint (classification, costs)
|
|
25
13
|
|
|
26
14
|
## [3.146.0] - 2024.10.08
|
|
27
15
|
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
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
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 _DataAnalytics_data;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.DataAnalytics = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../abstractEntity");
|
|
17
|
+
const analytics_1 = require("./analytics");
|
|
18
|
+
class DataAnalytics extends abstractEntity_1.AbstractEntity {
|
|
19
|
+
constructor(dataInput) {
|
|
20
|
+
super(dataInput);
|
|
21
|
+
_DataAnalytics_data.set(this, void 0);
|
|
22
|
+
__classPrivateFieldSet(this, _DataAnalytics_data, dataInput.map((it) => new analytics_1.Analytics(it)), "f");
|
|
23
|
+
}
|
|
24
|
+
get data() {
|
|
25
|
+
return __classPrivateFieldGet(this, _DataAnalytics_data, "f");
|
|
26
|
+
}
|
|
27
|
+
toJSON() {
|
|
28
|
+
return this.data.map((it) => it.toJSON());
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.DataAnalytics = DataAnalytics;
|
|
32
|
+
_DataAnalytics_data = new WeakMap();
|
|
33
|
+
//# sourceMappingURL=dataAnalytics.js.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare enum AnalyticsPriceFields {
|
|
2
|
+
COLUMN_ARROW_BUY_PRICE = "arrowBuyPrice",
|
|
3
|
+
COLUMN_RESELLER_BUY_PRICE = "resellerBuyPrice",
|
|
4
|
+
COLUMN_END_CUSTOMER_BUY_PRICE = "endCustomerBuyPrice",
|
|
5
|
+
COLUMN_LIST_BUY_PRICE = "listBuyPrice",
|
|
6
|
+
COLUMN_CURRENCY = "currency"
|
|
7
|
+
}
|
|
8
|
+
export declare type PriceType = {
|
|
9
|
+
[AnalyticsPriceFields.COLUMN_ARROW_BUY_PRICE]: number;
|
|
10
|
+
[AnalyticsPriceFields.COLUMN_RESELLER_BUY_PRICE]: number;
|
|
11
|
+
[AnalyticsPriceFields.COLUMN_END_CUSTOMER_BUY_PRICE]: number;
|
|
12
|
+
[AnalyticsPriceFields.COLUMN_LIST_BUY_PRICE]: number;
|
|
13
|
+
[AnalyticsPriceFields.COLUMN_CURRENCY]: string;
|
|
14
|
+
};
|
|
15
|
+
export declare class Price {
|
|
16
|
+
#private;
|
|
17
|
+
constructor(priceInput: PriceType);
|
|
18
|
+
get arrowBuyPrice(): number;
|
|
19
|
+
get resellerBuyPrice(): number;
|
|
20
|
+
get endCustomerBuyPrice(): number;
|
|
21
|
+
get listBuyPrice(): number;
|
|
22
|
+
get currency(): string;
|
|
23
|
+
toJSON(): PriceType;
|
|
24
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
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 _Price_arrowBuyPrice, _Price_resellerBuyPrice, _Price_endCustomerBuyPrice, _Price_listBuyPrice, _Price_currency;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.Price = exports.AnalyticsPriceFields = void 0;
|
|
16
|
+
var AnalyticsPriceFields;
|
|
17
|
+
(function (AnalyticsPriceFields) {
|
|
18
|
+
AnalyticsPriceFields["COLUMN_ARROW_BUY_PRICE"] = "arrowBuyPrice";
|
|
19
|
+
AnalyticsPriceFields["COLUMN_RESELLER_BUY_PRICE"] = "resellerBuyPrice";
|
|
20
|
+
AnalyticsPriceFields["COLUMN_END_CUSTOMER_BUY_PRICE"] = "endCustomerBuyPrice";
|
|
21
|
+
AnalyticsPriceFields["COLUMN_LIST_BUY_PRICE"] = "listBuyPrice";
|
|
22
|
+
AnalyticsPriceFields["COLUMN_CURRENCY"] = "currency";
|
|
23
|
+
})(AnalyticsPriceFields = exports.AnalyticsPriceFields || (exports.AnalyticsPriceFields = {}));
|
|
24
|
+
class Price {
|
|
25
|
+
constructor(priceInput) {
|
|
26
|
+
_Price_arrowBuyPrice.set(this, void 0);
|
|
27
|
+
_Price_resellerBuyPrice.set(this, void 0);
|
|
28
|
+
_Price_endCustomerBuyPrice.set(this, void 0);
|
|
29
|
+
_Price_listBuyPrice.set(this, void 0);
|
|
30
|
+
_Price_currency.set(this, void 0);
|
|
31
|
+
__classPrivateFieldSet(this, _Price_arrowBuyPrice, priceInput[AnalyticsPriceFields.COLUMN_ARROW_BUY_PRICE], "f");
|
|
32
|
+
__classPrivateFieldSet(this, _Price_resellerBuyPrice, priceInput[AnalyticsPriceFields.COLUMN_RESELLER_BUY_PRICE], "f");
|
|
33
|
+
__classPrivateFieldSet(this, _Price_endCustomerBuyPrice, priceInput[AnalyticsPriceFields.COLUMN_END_CUSTOMER_BUY_PRICE], "f");
|
|
34
|
+
__classPrivateFieldSet(this, _Price_listBuyPrice, priceInput[AnalyticsPriceFields.COLUMN_LIST_BUY_PRICE], "f");
|
|
35
|
+
__classPrivateFieldSet(this, _Price_currency, priceInput[AnalyticsPriceFields.COLUMN_CURRENCY], "f");
|
|
36
|
+
}
|
|
37
|
+
get arrowBuyPrice() {
|
|
38
|
+
return __classPrivateFieldGet(this, _Price_arrowBuyPrice, "f");
|
|
39
|
+
}
|
|
40
|
+
get resellerBuyPrice() {
|
|
41
|
+
return __classPrivateFieldGet(this, _Price_resellerBuyPrice, "f");
|
|
42
|
+
}
|
|
43
|
+
get endCustomerBuyPrice() {
|
|
44
|
+
return __classPrivateFieldGet(this, _Price_endCustomerBuyPrice, "f");
|
|
45
|
+
}
|
|
46
|
+
get listBuyPrice() {
|
|
47
|
+
return __classPrivateFieldGet(this, _Price_listBuyPrice, "f");
|
|
48
|
+
}
|
|
49
|
+
get currency() {
|
|
50
|
+
return __classPrivateFieldGet(this, _Price_currency, "f");
|
|
51
|
+
}
|
|
52
|
+
toJSON() {
|
|
53
|
+
return {
|
|
54
|
+
[AnalyticsPriceFields.COLUMN_ARROW_BUY_PRICE]: this.arrowBuyPrice,
|
|
55
|
+
[AnalyticsPriceFields.COLUMN_RESELLER_BUY_PRICE]: this.resellerBuyPrice,
|
|
56
|
+
[AnalyticsPriceFields.COLUMN_END_CUSTOMER_BUY_PRICE]: this
|
|
57
|
+
.endCustomerBuyPrice,
|
|
58
|
+
[AnalyticsPriceFields.COLUMN_LIST_BUY_PRICE]: this.listBuyPrice,
|
|
59
|
+
[AnalyticsPriceFields.COLUMN_CURRENCY]: this.currency,
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
exports.Price = Price;
|
|
64
|
+
_Price_arrowBuyPrice = new WeakMap(), _Price_resellerBuyPrice = new WeakMap(), _Price_endCustomerBuyPrice = new WeakMap(), _Price_listBuyPrice = new WeakMap(), _Price_currency = new WeakMap();
|
|
65
|
+
//# sourceMappingURL=price.js.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./entities/dataAnalytics"), exports);
|
|
18
|
+
__exportStar(require("./entities/analytics"), exports);
|
|
19
|
+
__exportStar(require("./entities/price"), exports);
|
|
20
|
+
__exportStar(require("./analyticsClient"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -4,6 +4,8 @@ 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';
|
|
7
9
|
export declare type ConsumptionDownloadRequestPayload = {
|
|
8
10
|
customer: string;
|
|
9
11
|
licenseRef: string;
|
|
@@ -23,4 +25,6 @@ export declare class ConsumptionClient extends AbstractRestfulClient {
|
|
|
23
25
|
consumptionDownloadRequest(payload: ConsumptionDownloadRequestPayload): Promise<ConsumptionDownloadRequest>;
|
|
24
26
|
updateBudgetSettings(licenseReference: string, payload: ConsumptionBudgetType, parameters?: Parameters): Promise<GetResult<ConsumptionBudget>>;
|
|
25
27
|
getBudgetSettings(licenseReference: string, parameters?: Parameters): Promise<GetResult<ConsumptionBudget>>;
|
|
28
|
+
getClassification(): Promise<GetResult<Classification>>;
|
|
29
|
+
getCosts(groupByProgram: boolean): Promise<GetResult<Costs>>;
|
|
26
30
|
}
|
|
@@ -7,6 +7,8 @@ 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");
|
|
10
12
|
class ConsumptionClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
11
13
|
constructor() {
|
|
12
14
|
super(...arguments);
|
|
@@ -39,6 +41,15 @@ class ConsumptionClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
39
41
|
this.path = `/license/${licenseReference}/budget`;
|
|
40
42
|
return new getResult_1.GetResult(consumptionBudget_1.ConsumptionBudget, await this.get(parameters));
|
|
41
43
|
}
|
|
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
|
+
}
|
|
42
53
|
}
|
|
43
54
|
exports.ConsumptionClient = ConsumptionClient;
|
|
44
55
|
//# sourceMappingURL=consumptionClient.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../../abstractEntity';
|
|
2
|
+
export declare enum ClassificationFields {
|
|
3
|
+
COLUMN_CLASSIFICATIONS = "classifications"
|
|
4
|
+
}
|
|
5
|
+
export declare type ClassificationType = {
|
|
6
|
+
[ClassificationFields.COLUMN_CLASSIFICATIONS]: Array<string>;
|
|
7
|
+
};
|
|
8
|
+
export declare class Classification extends AbstractEntity<ClassificationType> {
|
|
9
|
+
#private;
|
|
10
|
+
constructor(classificationResponse: ClassificationType);
|
|
11
|
+
get classifications(): Array<string>;
|
|
12
|
+
toJSON(): ClassificationType;
|
|
13
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
3
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
4
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
5
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
6
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
7
|
+
};
|
|
8
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
9
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
10
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
|
+
};
|
|
13
|
+
var _Classification_classifications;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.Classification = exports.ClassificationFields = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../../abstractEntity");
|
|
17
|
+
var ClassificationFields;
|
|
18
|
+
(function (ClassificationFields) {
|
|
19
|
+
ClassificationFields["COLUMN_CLASSIFICATIONS"] = "classifications";
|
|
20
|
+
})(ClassificationFields = exports.ClassificationFields || (exports.ClassificationFields = {}));
|
|
21
|
+
class Classification extends abstractEntity_1.AbstractEntity {
|
|
22
|
+
constructor(classificationResponse) {
|
|
23
|
+
super(classificationResponse);
|
|
24
|
+
_Classification_classifications.set(this, void 0);
|
|
25
|
+
__classPrivateFieldSet(this, _Classification_classifications, classificationResponse[ClassificationFields.COLUMN_CLASSIFICATIONS], "f");
|
|
26
|
+
}
|
|
27
|
+
get classifications() {
|
|
28
|
+
return __classPrivateFieldGet(this, _Classification_classifications, "f");
|
|
29
|
+
}
|
|
30
|
+
toJSON() {
|
|
31
|
+
return {
|
|
32
|
+
[ClassificationFields.COLUMN_CLASSIFICATIONS]: this.classifications,
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.Classification = Classification;
|
|
37
|
+
_Classification_classifications = new WeakMap();
|
|
38
|
+
//# sourceMappingURL=classification.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../../abstractEntity';
|
|
2
|
+
export declare enum CostsFields {
|
|
3
|
+
COLUMN_COSTS = "costs"
|
|
4
|
+
}
|
|
5
|
+
export declare type CostsType = {
|
|
6
|
+
[CostsFields.COLUMN_COSTS]: Record<string, Cost>;
|
|
7
|
+
};
|
|
8
|
+
export declare type Cost = {
|
|
9
|
+
resellerTotalPrice: number;
|
|
10
|
+
currency: string;
|
|
11
|
+
vendor?: string;
|
|
12
|
+
};
|
|
13
|
+
export declare class Costs extends AbstractEntity<CostsType> {
|
|
14
|
+
#private;
|
|
15
|
+
constructor(costsResponse: CostsType);
|
|
16
|
+
get costs(): Record<string, Cost>;
|
|
17
|
+
toJSON(): CostsType;
|
|
18
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
3
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
4
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
5
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
6
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
7
|
+
};
|
|
8
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
9
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
10
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
|
+
};
|
|
13
|
+
var _Costs_costs;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.Costs = exports.CostsFields = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../../abstractEntity");
|
|
17
|
+
var CostsFields;
|
|
18
|
+
(function (CostsFields) {
|
|
19
|
+
CostsFields["COLUMN_COSTS"] = "costs";
|
|
20
|
+
})(CostsFields = exports.CostsFields || (exports.CostsFields = {}));
|
|
21
|
+
class Costs extends abstractEntity_1.AbstractEntity {
|
|
22
|
+
constructor(costsResponse) {
|
|
23
|
+
super(costsResponse);
|
|
24
|
+
_Costs_costs.set(this, void 0);
|
|
25
|
+
__classPrivateFieldSet(this, _Costs_costs, costsResponse[CostsFields.COLUMN_COSTS], "f");
|
|
26
|
+
}
|
|
27
|
+
get costs() {
|
|
28
|
+
return __classPrivateFieldGet(this, _Costs_costs, "f");
|
|
29
|
+
}
|
|
30
|
+
toJSON() {
|
|
31
|
+
return {
|
|
32
|
+
[CostsFields.COLUMN_COSTS]: this.costs,
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.Costs = Costs;
|
|
37
|
+
_Costs_costs = new WeakMap();
|
|
38
|
+
//# sourceMappingURL=costs.js.map
|
|
@@ -6,3 +6,5 @@ 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,4 +22,6 @@ __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);
|
|
25
27
|
//# sourceMappingURL=index.js.map
|
|
@@ -36,6 +36,7 @@ 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",
|
|
39
40
|
COLUMN_XAC_RESELLER_ID = "XacResellerId",
|
|
40
41
|
COLUMN_XAC_END_CUSTOMER_ID = "XacEndCustomerId",
|
|
41
42
|
COLUMN_DETAILS = "Details",
|
|
@@ -85,6 +86,7 @@ export declare type CustomerType = {
|
|
|
85
86
|
[CustomerFields.COLUMN_INTERNAL_REFERENCE]: string;
|
|
86
87
|
[CustomerFields.COLUMN_CONTACT]: ContactType;
|
|
87
88
|
[CustomerFields.COLUMN_DELETED_AT]?: string | null;
|
|
89
|
+
[CustomerFields.COLUMN_CREATED_AT]?: string | null;
|
|
88
90
|
[CustomerFields.COLUMN_XAC_RESELLER_ID]?: number;
|
|
89
91
|
[CustomerFields.COLUMN_XAC_END_CUSTOMER_ID]?: number;
|
|
90
92
|
[CustomerFields.COLUMN_DETAILS]: DetailsType;
|
|
@@ -129,6 +131,7 @@ export declare class Customer extends AbstractEntity<CustomerType> {
|
|
|
129
131
|
get Contact(): Contact;
|
|
130
132
|
get Details(): Details;
|
|
131
133
|
get DeletedAt(): string | null | undefined;
|
|
134
|
+
get CreatedAt(): string | null | undefined;
|
|
132
135
|
get XacResellerId(): number | undefined;
|
|
133
136
|
get XacEndCustomerId(): number | undefined;
|
|
134
137
|
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, _Customer_xacResellerId, _Customer_xacEndCustomerId, _Customer_details, _Customer_extraInformation, _Customer_organisationUnit, _Customer_reseller, _Customer_partnerTags;
|
|
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_createdAt, _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,6 +52,7 @@ 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";
|
|
55
56
|
CustomerFields["COLUMN_XAC_RESELLER_ID"] = "XacResellerId";
|
|
56
57
|
CustomerFields["COLUMN_XAC_END_CUSTOMER_ID"] = "XacEndCustomerId";
|
|
57
58
|
CustomerFields["COLUMN_DETAILS"] = "Details";
|
|
@@ -96,6 +97,7 @@ class Customer extends abstractEntity_1.AbstractEntity {
|
|
|
96
97
|
_Customer_internalReference.set(this, void 0);
|
|
97
98
|
_Customer_contact.set(this, void 0);
|
|
98
99
|
_Customer_deletedAt.set(this, void 0);
|
|
100
|
+
_Customer_createdAt.set(this, void 0);
|
|
99
101
|
_Customer_xacResellerId.set(this, void 0);
|
|
100
102
|
_Customer_xacEndCustomerId.set(this, void 0);
|
|
101
103
|
_Customer_details.set(this, void 0);
|
|
@@ -135,6 +137,7 @@ class Customer extends abstractEntity_1.AbstractEntity {
|
|
|
135
137
|
__classPrivateFieldSet(this, _Customer_internalReference, getCustomersDataInput[CustomerFields.COLUMN_INTERNAL_REFERENCE], "f");
|
|
136
138
|
__classPrivateFieldSet(this, _Customer_contact, new contact_1.Contact(getCustomersDataInput[CustomerFields.COLUMN_CONTACT]), "f");
|
|
137
139
|
__classPrivateFieldSet(this, _Customer_deletedAt, getCustomersDataInput[CustomerFields.COLUMN_DELETED_AT], "f");
|
|
140
|
+
__classPrivateFieldSet(this, _Customer_createdAt, getCustomersDataInput[CustomerFields.COLUMN_CREATED_AT], "f");
|
|
138
141
|
__classPrivateFieldSet(this, _Customer_xacResellerId, getCustomersDataInput[CustomerFields.COLUMN_XAC_RESELLER_ID], "f");
|
|
139
142
|
__classPrivateFieldSet(this, _Customer_xacEndCustomerId, getCustomersDataInput[CustomerFields.COLUMN_XAC_END_CUSTOMER_ID], "f");
|
|
140
143
|
__classPrivateFieldSet(this, _Customer_details, new details_1.Details(getCustomersDataInput[CustomerFields.COLUMN_DETAILS]), "f");
|
|
@@ -246,6 +249,9 @@ class Customer extends abstractEntity_1.AbstractEntity {
|
|
|
246
249
|
get DeletedAt() {
|
|
247
250
|
return __classPrivateFieldGet(this, _Customer_deletedAt, "f");
|
|
248
251
|
}
|
|
252
|
+
get CreatedAt() {
|
|
253
|
+
return __classPrivateFieldGet(this, _Customer_createdAt, "f");
|
|
254
|
+
}
|
|
249
255
|
get XacResellerId() {
|
|
250
256
|
return __classPrivateFieldGet(this, _Customer_xacResellerId, "f");
|
|
251
257
|
}
|
|
@@ -300,6 +306,7 @@ class Customer extends abstractEntity_1.AbstractEntity {
|
|
|
300
306
|
[CustomerFields.COLUMN_CONTACT]: this.Contact.toJSON(),
|
|
301
307
|
[CustomerFields.COLUMN_DETAILS]: this.Details.toJSON(),
|
|
302
308
|
[CustomerFields.COLUMN_DELETED_AT]: this.DeletedAt,
|
|
309
|
+
[CustomerFields.COLUMN_CREATED_AT]: this.CreatedAt,
|
|
303
310
|
[CustomerFields.COLUMN_XAC_RESELLER_ID]: this.XacResellerId,
|
|
304
311
|
[CustomerFields.COLUMN_XAC_END_CUSTOMER_ID]: this.XacEndCustomerId,
|
|
305
312
|
[CustomerFields.COLUMN_EXTRA_INFORMATION]: (_a = this.ExtraInformation) === null || _a === void 0 ? void 0 : _a.toJSON(),
|
|
@@ -310,5 +317,5 @@ class Customer extends abstractEntity_1.AbstractEntity {
|
|
|
310
317
|
}
|
|
311
318
|
}
|
|
312
319
|
exports.Customer = Customer;
|
|
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();
|
|
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(), _Customer_createdAt = 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();
|
|
314
321
|
//# sourceMappingURL=customer.js.map
|
|
@@ -69,8 +69,6 @@ export declare type ItemData = {
|
|
|
69
69
|
billingCycle?: number;
|
|
70
70
|
arrowRateValue?: number;
|
|
71
71
|
partnerRateValue?: number;
|
|
72
|
-
vendorRateType?: string;
|
|
73
|
-
vendorRateValue?: number;
|
|
74
72
|
arrowSpherePriceBandSku?: string;
|
|
75
73
|
licenseAgreementType?: string;
|
|
76
74
|
classification?: string;
|