@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.
Files changed (63) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/build/analytics/analyticsClient.d.ts +26 -0
  3. package/build/analytics/analyticsClient.js +30 -0
  4. package/build/analytics/entities/analytics.d.ts +32 -0
  5. package/build/analytics/entities/analytics.js +81 -0
  6. package/build/analytics/entities/dataAnalytics.d.ts +9 -0
  7. package/build/analytics/entities/dataAnalytics.js +33 -0
  8. package/build/analytics/entities/price.d.ts +24 -0
  9. package/build/analytics/entities/price.js +65 -0
  10. package/build/analytics/index.d.ts +4 -0
  11. package/build/analytics/index.js +21 -0
  12. package/build/consumption/consumptionClient.d.ts +4 -0
  13. package/build/consumption/consumptionClient.js +11 -0
  14. package/build/consumption/entities/consumption/classification.d.ts +13 -0
  15. package/build/consumption/entities/consumption/classification.js +38 -0
  16. package/build/consumption/entities/consumption/costs.d.ts +18 -0
  17. package/build/consumption/entities/consumption/costs.js +38 -0
  18. package/build/consumption/index.d.ts +2 -0
  19. package/build/consumption/index.js +2 -0
  20. package/build/customers/entities/customers/customer.d.ts +3 -0
  21. package/build/customers/entities/customers/customer.js +9 -2
  22. package/build/customers/entities/customers/customerContact/customerContact.js +2 -1
  23. package/build/customers/entities/customers/customerContact/customerContactXcpInvitation.d.ts +4 -1
  24. package/build/customers/entities/customers/customerContact/customerContactXcpInvitation.js +12 -2
  25. package/build/index.d.ts +3 -0
  26. package/build/index.js +3 -0
  27. package/build/orderSoftware/entities/dataListOrderSoftware.d.ts +14 -0
  28. package/build/orderSoftware/entities/dataListOrderSoftware.js +39 -0
  29. package/build/orderSoftware/entities/orderSoftware.d.ts +30 -0
  30. package/build/orderSoftware/entities/orderSoftware.js +75 -0
  31. package/build/orderSoftware/entities/orderSoftwarePrice.d.ts +19 -0
  32. package/build/orderSoftware/entities/orderSoftwarePrice.js +52 -0
  33. package/build/orderSoftware/entities/orderSoftwareProduct.d.ts +26 -0
  34. package/build/orderSoftware/entities/orderSoftwareProduct.js +67 -0
  35. package/build/orderSoftware/entities/orderSoftwareReference.d.ts +16 -0
  36. package/build/orderSoftware/entities/orderSoftwareReference.js +45 -0
  37. package/build/orderSoftware/index.d.ts +5 -0
  38. package/build/orderSoftware/index.js +22 -0
  39. package/build/orderSoftware/orderSoftwareClient.d.ts +11 -0
  40. package/build/orderSoftware/orderSoftwareClient.js +25 -0
  41. package/build/publicApiClient.d.ts +10 -0
  42. package/build/publicApiClient.js +22 -0
  43. package/build/reports/entities/dataListReports.d.ts +14 -0
  44. package/build/reports/entities/dataListReports.js +39 -0
  45. package/build/reports/entities/reference.d.ts +12 -0
  46. package/build/reports/entities/reference.js +36 -0
  47. package/build/reports/entities/report.d.ts +30 -0
  48. package/build/reports/entities/report.js +75 -0
  49. package/build/reports/entities/reportProduct.d.ts +30 -0
  50. package/build/reports/entities/reportProduct.js +75 -0
  51. package/build/reports/entities/reportProductPrice.d.ts +19 -0
  52. package/build/reports/entities/reportProductPrice.js +52 -0
  53. package/build/reports/entities/reportReferenceLink.d.ts +14 -0
  54. package/build/reports/entities/reportReferenceLink.js +39 -0
  55. package/build/reports/entities/reportValidation.d.ts +19 -0
  56. package/build/reports/entities/reportValidation.js +52 -0
  57. package/build/reports/entities/reportValidationReference.d.ts +14 -0
  58. package/build/reports/entities/reportValidationReference.js +39 -0
  59. package/build/reports/index.d.ts +9 -0
  60. package/build/reports/index.js +26 -0
  61. package/build/reports/reportsClient.d.ts +36 -0
  62. package/build/reports/reportsClient.js +50 -0
  63. 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
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/ArrowSphere/nodejs-api-client.git"
6
6
  },
7
- "version": "3.152.0",
7
+ "version": "3.154.0-rc-cpe-1",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",