@arrowsphere/api-client 3.151.0-rc.mla.2 → 3.151.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/build/consumption/consumptionClient.d.ts +0 -4
  3. package/build/consumption/consumptionClient.js +0 -11
  4. package/build/consumption/index.d.ts +0 -2
  5. package/build/consumption/index.js +0 -2
  6. package/build/customers/entities/customers/customer.d.ts +0 -3
  7. package/build/customers/entities/customers/customer.js +2 -9
  8. package/build/index.d.ts +0 -3
  9. package/build/index.js +0 -3
  10. package/build/orders/entities/orders/products/priceBand/priceBand.d.ts +14 -0
  11. package/build/{reports/entities/reference.js → orders/entities/orders/products/priceBand/priceBand.js} +19 -16
  12. package/build/orders/entities/orders/products/products.d.ts +5 -1
  13. package/build/orders/entities/orders/products/products.js +13 -3
  14. package/build/publicApiClient.d.ts +0 -10
  15. package/build/publicApiClient.js +0 -22
  16. package/package.json +1 -1
  17. package/build/analytics/analyticsClient.d.ts +0 -26
  18. package/build/analytics/analyticsClient.js +0 -30
  19. package/build/analytics/entities/analytics.d.ts +0 -32
  20. package/build/analytics/entities/analytics.js +0 -81
  21. package/build/analytics/entities/dataAnalytics.d.ts +0 -9
  22. package/build/analytics/entities/dataAnalytics.js +0 -33
  23. package/build/analytics/entities/price.d.ts +0 -24
  24. package/build/analytics/entities/price.js +0 -65
  25. package/build/analytics/index.d.ts +0 -4
  26. package/build/analytics/index.js +0 -21
  27. package/build/consumption/entities/consumption/classification.d.ts +0 -13
  28. package/build/consumption/entities/consumption/classification.js +0 -38
  29. package/build/consumption/entities/consumption/costs.d.ts +0 -18
  30. package/build/consumption/entities/consumption/costs.js +0 -38
  31. package/build/orderSoftware/entities/dataListOrderSoftware.d.ts +0 -14
  32. package/build/orderSoftware/entities/dataListOrderSoftware.js +0 -39
  33. package/build/orderSoftware/entities/orderSoftware.d.ts +0 -30
  34. package/build/orderSoftware/entities/orderSoftware.js +0 -75
  35. package/build/orderSoftware/entities/orderSoftwarePrice.d.ts +0 -19
  36. package/build/orderSoftware/entities/orderSoftwarePrice.js +0 -52
  37. package/build/orderSoftware/entities/orderSoftwareProduct.d.ts +0 -26
  38. package/build/orderSoftware/entities/orderSoftwareProduct.js +0 -67
  39. package/build/orderSoftware/entities/orderSoftwareReference.d.ts +0 -16
  40. package/build/orderSoftware/entities/orderSoftwareReference.js +0 -45
  41. package/build/orderSoftware/index.d.ts +0 -5
  42. package/build/orderSoftware/index.js +0 -22
  43. package/build/orderSoftware/orderSoftwareClient.d.ts +0 -11
  44. package/build/orderSoftware/orderSoftwareClient.js +0 -25
  45. package/build/reports/entities/dataListReports.d.ts +0 -14
  46. package/build/reports/entities/dataListReports.js +0 -39
  47. package/build/reports/entities/reference.d.ts +0 -12
  48. package/build/reports/entities/report.d.ts +0 -30
  49. package/build/reports/entities/report.js +0 -75
  50. package/build/reports/entities/reportProduct.d.ts +0 -30
  51. package/build/reports/entities/reportProduct.js +0 -75
  52. package/build/reports/entities/reportProductPrice.d.ts +0 -19
  53. package/build/reports/entities/reportProductPrice.js +0 -52
  54. package/build/reports/entities/reportReferenceLink.d.ts +0 -14
  55. package/build/reports/entities/reportReferenceLink.js +0 -39
  56. package/build/reports/entities/reportValidation.d.ts +0 -19
  57. package/build/reports/entities/reportValidation.js +0 -52
  58. package/build/reports/entities/reportValidationReference.d.ts +0 -14
  59. package/build/reports/entities/reportValidationReference.js +0 -39
  60. package/build/reports/index.d.ts +0 -9
  61. package/build/reports/index.js +0 -26
  62. package/build/reports/reportsClient.d.ts +0 -36
  63. package/build/reports/reportsClient.js +0 -50
@@ -1,39 +0,0 @@
1
- "use strict";
2
- var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
3
- if (kind === "m") throw new TypeError("Private method is not writable");
4
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
6
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
7
- };
8
- var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
10
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
11
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
- };
13
- var _ReportValidationReference_orders;
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.ReportValidationReference = exports.ReportValidationReferenceFields = void 0;
16
- const abstractEntity_1 = require("../../abstractEntity");
17
- const reportValidation_1 = require("./reportValidation");
18
- var ReportValidationReferenceFields;
19
- (function (ReportValidationReferenceFields) {
20
- ReportValidationReferenceFields["COLUMN_ORDERS"] = "orders";
21
- })(ReportValidationReferenceFields = exports.ReportValidationReferenceFields || (exports.ReportValidationReferenceFields = {}));
22
- class ReportValidationReference extends abstractEntity_1.AbstractEntity {
23
- constructor(reportReferenceLinkData) {
24
- super(reportReferenceLinkData);
25
- _ReportValidationReference_orders.set(this, void 0);
26
- __classPrivateFieldSet(this, _ReportValidationReference_orders, reportReferenceLinkData[ReportValidationReferenceFields.COLUMN_ORDERS].map((order) => new reportValidation_1.ReportValidation(order)), "f");
27
- }
28
- get orders() {
29
- return __classPrivateFieldGet(this, _ReportValidationReference_orders, "f");
30
- }
31
- toJSON() {
32
- return {
33
- [ReportValidationReferenceFields.COLUMN_ORDERS]: this.orders.map((it) => it.toJSON()),
34
- };
35
- }
36
- }
37
- exports.ReportValidationReference = ReportValidationReference;
38
- _ReportValidationReference_orders = new WeakMap();
39
- //# sourceMappingURL=reportValidationReference.js.map
@@ -1,9 +0,0 @@
1
- export * from './entities/dataListReports';
2
- export * from './entities/reference';
3
- export * from './entities/report';
4
- export * from './entities/reportProduct';
5
- export * from './entities/reportProductPrice';
6
- export * from './entities/reportReferenceLink';
7
- export * from './entities/reportValidation';
8
- export * from './entities/reportValidationReference';
9
- export * from './reportsClient';
@@ -1,26 +0,0 @@
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/dataListReports"), exports);
18
- __exportStar(require("./entities/reference"), exports);
19
- __exportStar(require("./entities/report"), exports);
20
- __exportStar(require("./entities/reportProduct"), exports);
21
- __exportStar(require("./entities/reportProductPrice"), exports);
22
- __exportStar(require("./entities/reportReferenceLink"), exports);
23
- __exportStar(require("./entities/reportValidation"), exports);
24
- __exportStar(require("./entities/reportValidationReference"), exports);
25
- __exportStar(require("./reportsClient"), exports);
26
- //# sourceMappingURL=index.js.map
@@ -1,36 +0,0 @@
1
- import { AbstractRestfulClient, Parameters } from '../abstractRestfulClient';
2
- import { GetResult } from '../getResult';
3
- import { DataListReports } from './entities/dataListReports';
4
- import { ReportReferenceLink } from './entities/reportReferenceLink';
5
- import { ReferenceType } from './entities/reference';
6
- import { ReportValidationReference } from './entities/reportValidationReference';
7
- export declare enum CreateReportInputFields {
8
- COLUMN_PRODUCTS = "products",
9
- COLUMN_SUBSCRIPTION = "subscription",
10
- COLUMN_MONTH = "month"
11
- }
12
- export declare enum CreateReportProductFields {
13
- COLUMN_SKU = "sku",
14
- COLUMN_QUANTITY = "quantity",
15
- COLUMN_CUSTOMER = "customer"
16
- }
17
- export declare type CreateReportInputType = {
18
- [CreateReportInputFields.COLUMN_PRODUCTS]: Array<CreateReportProductType>;
19
- [CreateReportInputFields.COLUMN_SUBSCRIPTION]: ReferenceType;
20
- [CreateReportInputFields.COLUMN_MONTH]: string;
21
- };
22
- export declare type CreateReportProductType = {
23
- [CreateReportProductFields.COLUMN_SKU]: string;
24
- [CreateReportProductFields.COLUMN_QUANTITY]: number;
25
- [CreateReportProductFields.COLUMN_CUSTOMER]: ReferenceType;
26
- };
27
- export declare class ReportsClient extends AbstractRestfulClient {
28
- /**
29
- * The base path of the API
30
- */
31
- protected basePath: string;
32
- create(postData: CreateReportInputType, parameters?: Parameters): Promise<GetResult<ReportReferenceLink>>;
33
- getListReports(perPage?: number, page?: number, month?: string, parameters?: Parameters): Promise<GetResult<DataListReports>>;
34
- getReport(reportReference: string, parameters?: Parameters): Promise<GetResult<DataListReports>>;
35
- validateReport(reportReference: string, parameters?: Parameters): Promise<GetResult<ReportValidationReference>>;
36
- }
@@ -1,50 +0,0 @@
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