@arrowsphere/api-client 3.152.0 → 3.153.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 (60) 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/index.d.ts +3 -0
  23. package/build/index.js +3 -0
  24. package/build/orderSoftware/entities/dataListOrderSoftware.d.ts +14 -0
  25. package/build/orderSoftware/entities/dataListOrderSoftware.js +39 -0
  26. package/build/orderSoftware/entities/orderSoftware.d.ts +30 -0
  27. package/build/orderSoftware/entities/orderSoftware.js +75 -0
  28. package/build/orderSoftware/entities/orderSoftwarePrice.d.ts +19 -0
  29. package/build/orderSoftware/entities/orderSoftwarePrice.js +52 -0
  30. package/build/orderSoftware/entities/orderSoftwareProduct.d.ts +26 -0
  31. package/build/orderSoftware/entities/orderSoftwareProduct.js +67 -0
  32. package/build/orderSoftware/entities/orderSoftwareReference.d.ts +16 -0
  33. package/build/orderSoftware/entities/orderSoftwareReference.js +45 -0
  34. package/build/orderSoftware/index.d.ts +5 -0
  35. package/build/orderSoftware/index.js +22 -0
  36. package/build/orderSoftware/orderSoftwareClient.d.ts +11 -0
  37. package/build/orderSoftware/orderSoftwareClient.js +25 -0
  38. package/build/publicApiClient.d.ts +10 -0
  39. package/build/publicApiClient.js +22 -0
  40. package/build/reports/entities/dataListReports.d.ts +14 -0
  41. package/build/reports/entities/dataListReports.js +39 -0
  42. package/build/reports/entities/reference.d.ts +12 -0
  43. package/build/reports/entities/reference.js +36 -0
  44. package/build/reports/entities/report.d.ts +30 -0
  45. package/build/reports/entities/report.js +75 -0
  46. package/build/reports/entities/reportProduct.d.ts +30 -0
  47. package/build/reports/entities/reportProduct.js +75 -0
  48. package/build/reports/entities/reportProductPrice.d.ts +19 -0
  49. package/build/reports/entities/reportProductPrice.js +52 -0
  50. package/build/reports/entities/reportReferenceLink.d.ts +14 -0
  51. package/build/reports/entities/reportReferenceLink.js +39 -0
  52. package/build/reports/entities/reportValidation.d.ts +19 -0
  53. package/build/reports/entities/reportValidation.js +52 -0
  54. package/build/reports/entities/reportValidationReference.d.ts +14 -0
  55. package/build/reports/entities/reportValidationReference.js +39 -0
  56. package/build/reports/index.d.ts +9 -0
  57. package/build/reports/index.js +26 -0
  58. package/build/reports/reportsClient.d.ts +36 -0
  59. package/build/reports/reportsClient.js +50 -0
  60. package/package.json +1 -1
@@ -0,0 +1,14 @@
1
+ import { AbstractEntity } from '../../abstractEntity';
2
+ import { OrderSoftware, OrderSoftwareType } from './orderSoftware';
3
+ export declare enum DataListOrdersSoftwareFields {
4
+ COLUMN_ORDERS = "orders"
5
+ }
6
+ export declare type DataListOrdersSoftwareType = {
7
+ [DataListOrdersSoftwareFields.COLUMN_ORDERS]: Array<OrderSoftwareType>;
8
+ };
9
+ export declare class DataListOrdersSoftware extends AbstractEntity<DataListOrdersSoftwareType> {
10
+ #private;
11
+ constructor(orderList: DataListOrdersSoftwareType);
12
+ get orders(): Array<OrderSoftware>;
13
+ toJSON(): DataListOrdersSoftwareType;
14
+ }
@@ -0,0 +1,39 @@
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 _DataListOrdersSoftware_orders;
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.DataListOrdersSoftware = exports.DataListOrdersSoftwareFields = void 0;
16
+ const abstractEntity_1 = require("../../abstractEntity");
17
+ const orderSoftware_1 = require("./orderSoftware");
18
+ var DataListOrdersSoftwareFields;
19
+ (function (DataListOrdersSoftwareFields) {
20
+ DataListOrdersSoftwareFields["COLUMN_ORDERS"] = "orders";
21
+ })(DataListOrdersSoftwareFields = exports.DataListOrdersSoftwareFields || (exports.DataListOrdersSoftwareFields = {}));
22
+ class DataListOrdersSoftware extends abstractEntity_1.AbstractEntity {
23
+ constructor(orderList) {
24
+ super(orderList);
25
+ _DataListOrdersSoftware_orders.set(this, void 0);
26
+ __classPrivateFieldSet(this, _DataListOrdersSoftware_orders, orderList[DataListOrdersSoftwareFields.COLUMN_ORDERS].map((orderSoftware) => new orderSoftware_1.OrderSoftware(orderSoftware)), "f");
27
+ }
28
+ get orders() {
29
+ return __classPrivateFieldGet(this, _DataListOrdersSoftware_orders, "f");
30
+ }
31
+ toJSON() {
32
+ return {
33
+ [DataListOrdersSoftwareFields.COLUMN_ORDERS]: this.orders.map((orderSoftware) => orderSoftware.toJSON()),
34
+ };
35
+ }
36
+ }
37
+ exports.DataListOrdersSoftware = DataListOrdersSoftware;
38
+ _DataListOrdersSoftware_orders = new WeakMap();
39
+ //# sourceMappingURL=dataListOrderSoftware.js.map
@@ -0,0 +1,30 @@
1
+ import { OrderSoftwareProduct, OrderSoftwareProductType } from './orderSoftwareProduct';
2
+ import { OrderSoftwareReference, OrderSoftwareReferenceType } from './orderSoftwareReference';
3
+ import { AbstractEntity } from '../../abstractEntity';
4
+ export declare enum OrderSoftwareFields {
5
+ COLUMN_REFERENCE = "reference",
6
+ COLUMN_STATUS = "status",
7
+ COLUMN_PROGRAM = "program",
8
+ COLUMN_PRODUCTS = "products",
9
+ COLUMN_SUBSCRIPTION = "subscription",
10
+ COLUMN_REPORT = "report"
11
+ }
12
+ export declare type OrderSoftwareType = {
13
+ [OrderSoftwareFields.COLUMN_REFERENCE]: string;
14
+ [OrderSoftwareFields.COLUMN_STATUS]: string;
15
+ [OrderSoftwareFields.COLUMN_PROGRAM]: string;
16
+ [OrderSoftwareFields.COLUMN_PRODUCTS]: Array<OrderSoftwareProductType>;
17
+ [OrderSoftwareFields.COLUMN_SUBSCRIPTION]: OrderSoftwareReferenceType;
18
+ [OrderSoftwareFields.COLUMN_REPORT]: OrderSoftwareReferenceType;
19
+ };
20
+ export declare class OrderSoftware extends AbstractEntity<OrderSoftwareType> {
21
+ #private;
22
+ constructor(orderSoftwareDataInput: OrderSoftwareType);
23
+ get reference(): string;
24
+ get status(): string;
25
+ get program(): string;
26
+ get products(): Array<OrderSoftwareProduct>;
27
+ get subscription(): OrderSoftwareReference;
28
+ get report(): OrderSoftwareReference;
29
+ toJSON(): OrderSoftwareType;
30
+ }
@@ -0,0 +1,75 @@
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 _OrderSoftware_reference, _OrderSoftware_status, _OrderSoftware_program, _OrderSoftware_products, _OrderSoftware_subscription, _OrderSoftware_report;
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.OrderSoftware = exports.OrderSoftwareFields = void 0;
16
+ const orderSoftwareProduct_1 = require("./orderSoftwareProduct");
17
+ const orderSoftwareReference_1 = require("./orderSoftwareReference");
18
+ const abstractEntity_1 = require("../../abstractEntity");
19
+ var OrderSoftwareFields;
20
+ (function (OrderSoftwareFields) {
21
+ OrderSoftwareFields["COLUMN_REFERENCE"] = "reference";
22
+ OrderSoftwareFields["COLUMN_STATUS"] = "status";
23
+ OrderSoftwareFields["COLUMN_PROGRAM"] = "program";
24
+ OrderSoftwareFields["COLUMN_PRODUCTS"] = "products";
25
+ OrderSoftwareFields["COLUMN_SUBSCRIPTION"] = "subscription";
26
+ OrderSoftwareFields["COLUMN_REPORT"] = "report";
27
+ })(OrderSoftwareFields = exports.OrderSoftwareFields || (exports.OrderSoftwareFields = {}));
28
+ class OrderSoftware extends abstractEntity_1.AbstractEntity {
29
+ constructor(orderSoftwareDataInput) {
30
+ super(orderSoftwareDataInput);
31
+ _OrderSoftware_reference.set(this, void 0);
32
+ _OrderSoftware_status.set(this, void 0);
33
+ _OrderSoftware_program.set(this, void 0);
34
+ _OrderSoftware_products.set(this, void 0);
35
+ _OrderSoftware_subscription.set(this, void 0);
36
+ _OrderSoftware_report.set(this, void 0);
37
+ __classPrivateFieldSet(this, _OrderSoftware_reference, orderSoftwareDataInput[OrderSoftwareFields.COLUMN_REFERENCE], "f");
38
+ __classPrivateFieldSet(this, _OrderSoftware_status, orderSoftwareDataInput[OrderSoftwareFields.COLUMN_STATUS], "f");
39
+ __classPrivateFieldSet(this, _OrderSoftware_program, orderSoftwareDataInput[OrderSoftwareFields.COLUMN_PROGRAM], "f");
40
+ __classPrivateFieldSet(this, _OrderSoftware_products, orderSoftwareDataInput[OrderSoftwareFields.COLUMN_PRODUCTS].map((product) => new orderSoftwareProduct_1.OrderSoftwareProduct(product)), "f");
41
+ __classPrivateFieldSet(this, _OrderSoftware_subscription, new orderSoftwareReference_1.OrderSoftwareReference(orderSoftwareDataInput[OrderSoftwareFields.COLUMN_SUBSCRIPTION]), "f");
42
+ __classPrivateFieldSet(this, _OrderSoftware_report, new orderSoftwareReference_1.OrderSoftwareReference(orderSoftwareDataInput[OrderSoftwareFields.COLUMN_REPORT]), "f");
43
+ }
44
+ get reference() {
45
+ return __classPrivateFieldGet(this, _OrderSoftware_reference, "f");
46
+ }
47
+ get status() {
48
+ return __classPrivateFieldGet(this, _OrderSoftware_status, "f");
49
+ }
50
+ get program() {
51
+ return __classPrivateFieldGet(this, _OrderSoftware_program, "f");
52
+ }
53
+ get products() {
54
+ return __classPrivateFieldGet(this, _OrderSoftware_products, "f");
55
+ }
56
+ get subscription() {
57
+ return __classPrivateFieldGet(this, _OrderSoftware_subscription, "f");
58
+ }
59
+ get report() {
60
+ return __classPrivateFieldGet(this, _OrderSoftware_report, "f");
61
+ }
62
+ toJSON() {
63
+ return {
64
+ [OrderSoftwareFields.COLUMN_REFERENCE]: this.reference,
65
+ [OrderSoftwareFields.COLUMN_STATUS]: this.status,
66
+ [OrderSoftwareFields.COLUMN_PROGRAM]: this.program,
67
+ [OrderSoftwareFields.COLUMN_PRODUCTS]: this.products.map((product) => product.toJSON()),
68
+ [OrderSoftwareFields.COLUMN_SUBSCRIPTION]: this.subscription.toJSON(),
69
+ [OrderSoftwareFields.COLUMN_REPORT]: this.report.toJSON(),
70
+ };
71
+ }
72
+ }
73
+ exports.OrderSoftware = OrderSoftware;
74
+ _OrderSoftware_reference = new WeakMap(), _OrderSoftware_status = new WeakMap(), _OrderSoftware_program = new WeakMap(), _OrderSoftware_products = new WeakMap(), _OrderSoftware_subscription = new WeakMap(), _OrderSoftware_report = new WeakMap();
75
+ //# sourceMappingURL=orderSoftware.js.map
@@ -0,0 +1,19 @@
1
+ import { AbstractEntity } from '../../abstractEntity';
2
+ export declare enum OrderSoftwarePriceFields {
3
+ COLUMN_UNIT_PRICE = "unitPrice",
4
+ COLUMN_TOTAL_PRICE = "totalPrice",
5
+ COLUMN_CURRENCY = "currency"
6
+ }
7
+ export declare type OrderSoftwarePriceType = {
8
+ [OrderSoftwarePriceFields.COLUMN_UNIT_PRICE]: number;
9
+ [OrderSoftwarePriceFields.COLUMN_TOTAL_PRICE]: number;
10
+ [OrderSoftwarePriceFields.COLUMN_CURRENCY]: string;
11
+ };
12
+ export declare class OrderSoftwarePrice extends AbstractEntity<OrderSoftwarePriceType> {
13
+ #private;
14
+ constructor(price: OrderSoftwarePriceType);
15
+ get unitPrice(): number;
16
+ get totalPrice(): number;
17
+ get currency(): string;
18
+ toJSON(): OrderSoftwarePriceType;
19
+ }
@@ -0,0 +1,52 @@
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 _OrderSoftwarePrice_unitPrice, _OrderSoftwarePrice_totalPrice, _OrderSoftwarePrice_currency;
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.OrderSoftwarePrice = exports.OrderSoftwarePriceFields = void 0;
16
+ const abstractEntity_1 = require("../../abstractEntity");
17
+ var OrderSoftwarePriceFields;
18
+ (function (OrderSoftwarePriceFields) {
19
+ OrderSoftwarePriceFields["COLUMN_UNIT_PRICE"] = "unitPrice";
20
+ OrderSoftwarePriceFields["COLUMN_TOTAL_PRICE"] = "totalPrice";
21
+ OrderSoftwarePriceFields["COLUMN_CURRENCY"] = "currency";
22
+ })(OrderSoftwarePriceFields = exports.OrderSoftwarePriceFields || (exports.OrderSoftwarePriceFields = {}));
23
+ class OrderSoftwarePrice extends abstractEntity_1.AbstractEntity {
24
+ constructor(price) {
25
+ super(price);
26
+ _OrderSoftwarePrice_unitPrice.set(this, void 0);
27
+ _OrderSoftwarePrice_totalPrice.set(this, void 0);
28
+ _OrderSoftwarePrice_currency.set(this, void 0);
29
+ __classPrivateFieldSet(this, _OrderSoftwarePrice_unitPrice, price[OrderSoftwarePriceFields.COLUMN_UNIT_PRICE], "f");
30
+ __classPrivateFieldSet(this, _OrderSoftwarePrice_totalPrice, price[OrderSoftwarePriceFields.COLUMN_TOTAL_PRICE], "f");
31
+ __classPrivateFieldSet(this, _OrderSoftwarePrice_currency, price[OrderSoftwarePriceFields.COLUMN_CURRENCY], "f");
32
+ }
33
+ get unitPrice() {
34
+ return __classPrivateFieldGet(this, _OrderSoftwarePrice_unitPrice, "f");
35
+ }
36
+ get totalPrice() {
37
+ return __classPrivateFieldGet(this, _OrderSoftwarePrice_totalPrice, "f");
38
+ }
39
+ get currency() {
40
+ return __classPrivateFieldGet(this, _OrderSoftwarePrice_currency, "f");
41
+ }
42
+ toJSON() {
43
+ return {
44
+ [OrderSoftwarePriceFields.COLUMN_UNIT_PRICE]: this.unitPrice,
45
+ [OrderSoftwarePriceFields.COLUMN_TOTAL_PRICE]: this.totalPrice,
46
+ [OrderSoftwarePriceFields.COLUMN_CURRENCY]: this.currency,
47
+ };
48
+ }
49
+ }
50
+ exports.OrderSoftwarePrice = OrderSoftwarePrice;
51
+ _OrderSoftwarePrice_unitPrice = new WeakMap(), _OrderSoftwarePrice_totalPrice = new WeakMap(), _OrderSoftwarePrice_currency = new WeakMap();
52
+ //# sourceMappingURL=orderSoftwarePrice.js.map
@@ -0,0 +1,26 @@
1
+ import { AbstractEntity } from '../../abstractEntity';
2
+ import { OrderSoftwarePrice, OrderSoftwarePriceType } from './orderSoftwarePrice';
3
+ export declare enum OrderSoftwareProductFields {
4
+ COLUMN_SKU = "sku",
5
+ COLUMN_PRODUCT_NAME = "productName",
6
+ COLUMN_PRODUCT_VERSION = "productVersion",
7
+ COLUMN_QUANTITY = "quantity",
8
+ COLUMN_PRICE = "price"
9
+ }
10
+ export declare type OrderSoftwareProductType = {
11
+ [OrderSoftwareProductFields.COLUMN_SKU]: string;
12
+ [OrderSoftwareProductFields.COLUMN_PRODUCT_NAME]: string;
13
+ [OrderSoftwareProductFields.COLUMN_PRODUCT_VERSION]: string;
14
+ [OrderSoftwareProductFields.COLUMN_QUANTITY]: number;
15
+ [OrderSoftwareProductFields.COLUMN_PRICE]: OrderSoftwarePriceType;
16
+ };
17
+ export declare class OrderSoftwareProduct extends AbstractEntity<OrderSoftwareProductType> {
18
+ #private;
19
+ constructor(product: OrderSoftwareProductType);
20
+ get sku(): string;
21
+ get productName(): string;
22
+ get productVersion(): string;
23
+ get quantity(): number;
24
+ get price(): OrderSoftwarePrice;
25
+ toJSON(): OrderSoftwareProductType;
26
+ }
@@ -0,0 +1,67 @@
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 _OrderSoftwareProduct_sku, _OrderSoftwareProduct_productName, _OrderSoftwareProduct_productVersion, _OrderSoftwareProduct_quantity, _OrderSoftwareProduct_price;
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.OrderSoftwareProduct = exports.OrderSoftwareProductFields = void 0;
16
+ const abstractEntity_1 = require("../../abstractEntity");
17
+ const orderSoftwarePrice_1 = require("./orderSoftwarePrice");
18
+ var OrderSoftwareProductFields;
19
+ (function (OrderSoftwareProductFields) {
20
+ OrderSoftwareProductFields["COLUMN_SKU"] = "sku";
21
+ OrderSoftwareProductFields["COLUMN_PRODUCT_NAME"] = "productName";
22
+ OrderSoftwareProductFields["COLUMN_PRODUCT_VERSION"] = "productVersion";
23
+ OrderSoftwareProductFields["COLUMN_QUANTITY"] = "quantity";
24
+ OrderSoftwareProductFields["COLUMN_PRICE"] = "price";
25
+ })(OrderSoftwareProductFields = exports.OrderSoftwareProductFields || (exports.OrderSoftwareProductFields = {}));
26
+ class OrderSoftwareProduct extends abstractEntity_1.AbstractEntity {
27
+ constructor(product) {
28
+ super(product);
29
+ _OrderSoftwareProduct_sku.set(this, void 0);
30
+ _OrderSoftwareProduct_productName.set(this, void 0);
31
+ _OrderSoftwareProduct_productVersion.set(this, void 0);
32
+ _OrderSoftwareProduct_quantity.set(this, void 0);
33
+ _OrderSoftwareProduct_price.set(this, void 0);
34
+ __classPrivateFieldSet(this, _OrderSoftwareProduct_sku, product[OrderSoftwareProductFields.COLUMN_SKU], "f");
35
+ __classPrivateFieldSet(this, _OrderSoftwareProduct_productName, product[OrderSoftwareProductFields.COLUMN_PRODUCT_NAME], "f");
36
+ __classPrivateFieldSet(this, _OrderSoftwareProduct_productVersion, product[OrderSoftwareProductFields.COLUMN_PRODUCT_VERSION], "f");
37
+ __classPrivateFieldSet(this, _OrderSoftwareProduct_quantity, product[OrderSoftwareProductFields.COLUMN_QUANTITY], "f");
38
+ __classPrivateFieldSet(this, _OrderSoftwareProduct_price, new orderSoftwarePrice_1.OrderSoftwarePrice(product[OrderSoftwareProductFields.COLUMN_PRICE]), "f");
39
+ }
40
+ get sku() {
41
+ return __classPrivateFieldGet(this, _OrderSoftwareProduct_sku, "f");
42
+ }
43
+ get productName() {
44
+ return __classPrivateFieldGet(this, _OrderSoftwareProduct_productName, "f");
45
+ }
46
+ get productVersion() {
47
+ return __classPrivateFieldGet(this, _OrderSoftwareProduct_productVersion, "f");
48
+ }
49
+ get quantity() {
50
+ return __classPrivateFieldGet(this, _OrderSoftwareProduct_quantity, "f");
51
+ }
52
+ get price() {
53
+ return __classPrivateFieldGet(this, _OrderSoftwareProduct_price, "f");
54
+ }
55
+ toJSON() {
56
+ return {
57
+ [OrderSoftwareProductFields.COLUMN_SKU]: this.sku,
58
+ [OrderSoftwareProductFields.COLUMN_PRODUCT_NAME]: this.productName,
59
+ [OrderSoftwareProductFields.COLUMN_PRODUCT_VERSION]: this.productVersion,
60
+ [OrderSoftwareProductFields.COLUMN_QUANTITY]: this.quantity,
61
+ [OrderSoftwareProductFields.COLUMN_PRICE]: this.price.toJSON(),
62
+ };
63
+ }
64
+ }
65
+ exports.OrderSoftwareProduct = OrderSoftwareProduct;
66
+ _OrderSoftwareProduct_sku = new WeakMap(), _OrderSoftwareProduct_productName = new WeakMap(), _OrderSoftwareProduct_productVersion = new WeakMap(), _OrderSoftwareProduct_quantity = new WeakMap(), _OrderSoftwareProduct_price = new WeakMap();
67
+ //# sourceMappingURL=orderSoftwareProduct.js.map
@@ -0,0 +1,16 @@
1
+ import { AbstractEntity } from '../../abstractEntity';
2
+ export declare enum OrderSoftwareReferenceFields {
3
+ COLUMN_REFERENCE = "reference",
4
+ COLUMN_LINK = "link"
5
+ }
6
+ export declare type OrderSoftwareReferenceType = {
7
+ [OrderSoftwareReferenceFields.COLUMN_REFERENCE]: string;
8
+ [OrderSoftwareReferenceFields.COLUMN_LINK]: string;
9
+ };
10
+ export declare class OrderSoftwareReference extends AbstractEntity<OrderSoftwareReferenceType> {
11
+ #private;
12
+ constructor(reference: OrderSoftwareReferenceType);
13
+ get reference(): string;
14
+ get link(): string;
15
+ toJSON(): OrderSoftwareReferenceType;
16
+ }
@@ -0,0 +1,45 @@
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 _OrderSoftwareReference_reference, _OrderSoftwareReference_link;
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.OrderSoftwareReference = exports.OrderSoftwareReferenceFields = void 0;
16
+ const abstractEntity_1 = require("../../abstractEntity");
17
+ var OrderSoftwareReferenceFields;
18
+ (function (OrderSoftwareReferenceFields) {
19
+ OrderSoftwareReferenceFields["COLUMN_REFERENCE"] = "reference";
20
+ OrderSoftwareReferenceFields["COLUMN_LINK"] = "link";
21
+ })(OrderSoftwareReferenceFields = exports.OrderSoftwareReferenceFields || (exports.OrderSoftwareReferenceFields = {}));
22
+ class OrderSoftwareReference extends abstractEntity_1.AbstractEntity {
23
+ constructor(reference) {
24
+ super(reference);
25
+ _OrderSoftwareReference_reference.set(this, void 0);
26
+ _OrderSoftwareReference_link.set(this, void 0);
27
+ __classPrivateFieldSet(this, _OrderSoftwareReference_reference, reference[OrderSoftwareReferenceFields.COLUMN_REFERENCE], "f");
28
+ __classPrivateFieldSet(this, _OrderSoftwareReference_link, reference[OrderSoftwareReferenceFields.COLUMN_LINK], "f");
29
+ }
30
+ get reference() {
31
+ return __classPrivateFieldGet(this, _OrderSoftwareReference_reference, "f");
32
+ }
33
+ get link() {
34
+ return __classPrivateFieldGet(this, _OrderSoftwareReference_link, "f");
35
+ }
36
+ toJSON() {
37
+ return {
38
+ [OrderSoftwareReferenceFields.COLUMN_REFERENCE]: this.reference,
39
+ [OrderSoftwareReferenceFields.COLUMN_LINK]: this.link,
40
+ };
41
+ }
42
+ }
43
+ exports.OrderSoftwareReference = OrderSoftwareReference;
44
+ _OrderSoftwareReference_reference = new WeakMap(), _OrderSoftwareReference_link = new WeakMap();
45
+ //# sourceMappingURL=orderSoftwareReference.js.map
@@ -0,0 +1,5 @@
1
+ export * from './entities/orderSoftwarePrice';
2
+ export * from './entities/orderSoftwareProduct';
3
+ export * from './entities/orderSoftware';
4
+ export * from './entities/dataListOrderSoftware';
5
+ export * from './orderSoftwareClient';
@@ -0,0 +1,22 @@
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/orderSoftwarePrice"), exports);
18
+ __exportStar(require("./entities/orderSoftwareProduct"), exports);
19
+ __exportStar(require("./entities/orderSoftware"), exports);
20
+ __exportStar(require("./entities/dataListOrderSoftware"), exports);
21
+ __exportStar(require("./orderSoftwareClient"), exports);
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,11 @@
1
+ import { AbstractRestfulClient } from '../abstractRestfulClient';
2
+ import { GetResult } from '../getResult';
3
+ import { DataListOrdersSoftware } from './entities/dataListOrderSoftware';
4
+ export declare class OrderSoftwareClient extends AbstractRestfulClient {
5
+ /**
6
+ * The base path of the API
7
+ */
8
+ protected basePath: string;
9
+ getOrdersList(dateBegin?: string): Promise<GetResult<DataListOrdersSoftware>>;
10
+ getOrder(orderReference: string): Promise<GetResult<DataListOrdersSoftware>>;
11
+ }
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrderSoftwareClient = void 0;
4
+ const abstractRestfulClient_1 = require("../abstractRestfulClient");
5
+ const getResult_1 = require("../getResult");
6
+ const dataListOrderSoftware_1 = require("./entities/dataListOrderSoftware");
7
+ class OrderSoftwareClient extends abstractRestfulClient_1.AbstractRestfulClient {
8
+ constructor() {
9
+ super(...arguments);
10
+ /**
11
+ * The base path of the API
12
+ */
13
+ this.basePath = '/orderSoftware';
14
+ }
15
+ async getOrdersList(dateBegin) {
16
+ this.path = '/';
17
+ return new getResult_1.GetResult(dataListOrderSoftware_1.DataListOrdersSoftware, await this.get(dateBegin ? { dateBegin } : {}));
18
+ }
19
+ async getOrder(orderReference) {
20
+ this.path = `/${orderReference}`;
21
+ return new getResult_1.GetResult(dataListOrderSoftware_1.DataListOrdersSoftware, await this.get());
22
+ }
23
+ }
24
+ exports.OrderSoftwareClient = OrderSoftwareClient;
25
+ //# sourceMappingURL=orderSoftwareClient.js.map
@@ -18,6 +18,9 @@ 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';
21
24
  /**
22
25
  * Public API Client class, should be the main entry point for your calls
23
26
  */
@@ -69,6 +72,11 @@ export declare class PublicApiClient extends AbstractRestfulClient {
69
72
  * @returns {@link OrdersClient}
70
73
  */
71
74
  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;
72
80
  /**
73
81
  * Creates a new {@link ContactClient} instance and returns it
74
82
  * @returns {@link ContactClient}
@@ -99,5 +107,7 @@ export declare class PublicApiClient extends AbstractRestfulClient {
99
107
  getNotificationsClient(configuration?: ConfigurationsClient): NotificationsClient;
100
108
  getOrganizationUnitClient(configuration?: ConfigurationsClient): OrganizationUnitClient;
101
109
  getBillingClient(configuration?: ConfigurationsClient): BillingClient;
110
+ getAnalyticsClient(configuration?: ConfigurationsClient): AnalyticsClient;
111
+ getReportsClient(configuration?: ConfigurationsClient): ReportsClient;
102
112
  }
103
113
  export default PublicApiClient;
@@ -21,6 +21,9 @@ 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");
24
27
  /**
25
28
  * Public API Client class, should be the main entry point for your calls
26
29
  */
@@ -117,6 +120,15 @@ class PublicApiClient extends abstractRestfulClient_1.AbstractRestfulClient {
117
120
  this.applyConfig(client);
118
121
  return client;
119
122
  }
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
+ }
120
132
  /**
121
133
  * Creates a new {@link ContactClient} instance and returns it
122
134
  * @returns {@link ContactClient}
@@ -203,6 +215,16 @@ class PublicApiClient extends abstractRestfulClient_1.AbstractRestfulClient {
203
215
  this.applyConfig(client);
204
216
  return client;
205
217
  }
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
+ }
206
228
  }
207
229
  exports.PublicApiClient = PublicApiClient;
208
230
  exports.default = PublicApiClient;
@@ -0,0 +1,14 @@
1
+ import { AbstractEntity } from '../../abstractEntity';
2
+ import { Report, ReportType } from './report';
3
+ export declare enum DataListReportsFields {
4
+ COLUMN_REPORTS = "reports"
5
+ }
6
+ export declare type DataListReportsType = {
7
+ [DataListReportsFields.COLUMN_REPORTS]: Array<ReportType>;
8
+ };
9
+ export declare class DataListReports extends AbstractEntity<DataListReportsType> {
10
+ #private;
11
+ constructor(listReportDataInput: DataListReportsType);
12
+ get reports(): Array<Report>;
13
+ toJSON(): DataListReportsType;
14
+ }
@@ -0,0 +1,39 @@
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 _DataListReports_reports;
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.DataListReports = exports.DataListReportsFields = void 0;
16
+ const abstractEntity_1 = require("../../abstractEntity");
17
+ const report_1 = require("./report");
18
+ var DataListReportsFields;
19
+ (function (DataListReportsFields) {
20
+ DataListReportsFields["COLUMN_REPORTS"] = "reports";
21
+ })(DataListReportsFields = exports.DataListReportsFields || (exports.DataListReportsFields = {}));
22
+ class DataListReports extends abstractEntity_1.AbstractEntity {
23
+ constructor(listReportDataInput) {
24
+ super(listReportDataInput);
25
+ _DataListReports_reports.set(this, void 0);
26
+ __classPrivateFieldSet(this, _DataListReports_reports, listReportDataInput[DataListReportsFields.COLUMN_REPORTS].map((report) => new report_1.Report(report)), "f");
27
+ }
28
+ get reports() {
29
+ return __classPrivateFieldGet(this, _DataListReports_reports, "f");
30
+ }
31
+ toJSON() {
32
+ return {
33
+ [DataListReportsFields.COLUMN_REPORTS]: this.reports.map((report) => report.toJSON()),
34
+ };
35
+ }
36
+ }
37
+ exports.DataListReports = DataListReports;
38
+ _DataListReports_reports = new WeakMap();
39
+ //# sourceMappingURL=dataListReports.js.map
@@ -0,0 +1,12 @@
1
+ export declare enum ReferenceFields {
2
+ COLUMN_REFERENCE = "reference"
3
+ }
4
+ export declare type ReferenceType = {
5
+ [ReferenceFields.COLUMN_REFERENCE]: string;
6
+ };
7
+ export declare class Reference {
8
+ #private;
9
+ constructor(reference: ReferenceType);
10
+ get reference(): string;
11
+ toJSON(): ReferenceType;
12
+ }
@@ -0,0 +1,36 @@
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 _Reference_reference;
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.Reference = exports.ReferenceFields = void 0;
16
+ var ReferenceFields;
17
+ (function (ReferenceFields) {
18
+ ReferenceFields["COLUMN_REFERENCE"] = "reference";
19
+ })(ReferenceFields = exports.ReferenceFields || (exports.ReferenceFields = {}));
20
+ class Reference {
21
+ constructor(reference) {
22
+ _Reference_reference.set(this, void 0);
23
+ __classPrivateFieldSet(this, _Reference_reference, reference[ReferenceFields.COLUMN_REFERENCE], "f");
24
+ }
25
+ get reference() {
26
+ return __classPrivateFieldGet(this, _Reference_reference, "f");
27
+ }
28
+ toJSON() {
29
+ return {
30
+ [ReferenceFields.COLUMN_REFERENCE]: this.reference,
31
+ };
32
+ }
33
+ }
34
+ exports.Reference = Reference;
35
+ _Reference_reference = new WeakMap();
36
+ //# sourceMappingURL=reference.js.map