@arrowsphere/api-client 3.152.0 → 3.154.0-rc-cpe-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 +8 -0
- 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/customers/entities/customers/customerContact/customerContact.js +2 -1
- package/build/customers/entities/customers/customerContact/customerContactXcpInvitation.d.ts +4 -1
- package/build/customers/entities/customers/customerContact/customerContactXcpInvitation.js +12 -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/publicApiClient.d.ts +10 -0
- package/build/publicApiClient.js +22 -0
- 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
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReportsClient = exports.CreateReportProductFields = exports.CreateReportInputFields = void 0;
|
|
4
|
+
const abstractRestfulClient_1 = require("../abstractRestfulClient");
|
|
5
|
+
const getResult_1 = require("../getResult");
|
|
6
|
+
const dataListReports_1 = require("./entities/dataListReports");
|
|
7
|
+
const reportReferenceLink_1 = require("./entities/reportReferenceLink");
|
|
8
|
+
const reportValidationReference_1 = require("./entities/reportValidationReference");
|
|
9
|
+
var CreateReportInputFields;
|
|
10
|
+
(function (CreateReportInputFields) {
|
|
11
|
+
CreateReportInputFields["COLUMN_PRODUCTS"] = "products";
|
|
12
|
+
CreateReportInputFields["COLUMN_SUBSCRIPTION"] = "subscription";
|
|
13
|
+
CreateReportInputFields["COLUMN_MONTH"] = "month";
|
|
14
|
+
})(CreateReportInputFields = exports.CreateReportInputFields || (exports.CreateReportInputFields = {}));
|
|
15
|
+
var CreateReportProductFields;
|
|
16
|
+
(function (CreateReportProductFields) {
|
|
17
|
+
CreateReportProductFields["COLUMN_SKU"] = "sku";
|
|
18
|
+
CreateReportProductFields["COLUMN_QUANTITY"] = "quantity";
|
|
19
|
+
CreateReportProductFields["COLUMN_CUSTOMER"] = "customer";
|
|
20
|
+
})(CreateReportProductFields = exports.CreateReportProductFields || (exports.CreateReportProductFields = {}));
|
|
21
|
+
class ReportsClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
22
|
+
constructor() {
|
|
23
|
+
super(...arguments);
|
|
24
|
+
/**
|
|
25
|
+
* The base path of the API
|
|
26
|
+
*/
|
|
27
|
+
this.basePath = '/reports';
|
|
28
|
+
}
|
|
29
|
+
async create(postData, parameters = {}) {
|
|
30
|
+
return new getResult_1.GetResult(reportReferenceLink_1.ReportReferenceLink, await this.post(postData, parameters));
|
|
31
|
+
}
|
|
32
|
+
async getListReports(perPage = 25, page = 1, month, parameters = {}) {
|
|
33
|
+
this.setPerPage(perPage);
|
|
34
|
+
this.setPage(page);
|
|
35
|
+
return new getResult_1.GetResult(dataListReports_1.DataListReports, await this.get({
|
|
36
|
+
...parameters,
|
|
37
|
+
month,
|
|
38
|
+
}));
|
|
39
|
+
}
|
|
40
|
+
async getReport(reportReference, parameters = {}) {
|
|
41
|
+
this.path = `/${reportReference}`;
|
|
42
|
+
return new getResult_1.GetResult(dataListReports_1.DataListReports, await this.get(parameters));
|
|
43
|
+
}
|
|
44
|
+
async validateReport(reportReference, parameters = {}) {
|
|
45
|
+
this.path = `/${reportReference}`;
|
|
46
|
+
return new getResult_1.GetResult(reportValidationReference_1.ReportValidationReference, await this.patch(parameters));
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.ReportsClient = ReportsClient;
|
|
50
|
+
//# sourceMappingURL=reportsClient.js.map
|
package/package.json
CHANGED