@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.
- 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/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,30 @@
|
|
|
1
|
+
import { ReportProduct, ReportProductType } from './reportProduct';
|
|
2
|
+
import { Reference, ReferenceType } from './reference';
|
|
3
|
+
import { AbstractEntity } from '../../abstractEntity';
|
|
4
|
+
export declare enum ReportFields {
|
|
5
|
+
COLUMN_REFERENCE = "reference",
|
|
6
|
+
COLUMN_STATUS = "status",
|
|
7
|
+
COLUMN_MONTH = "month",
|
|
8
|
+
COLUMN_PROGRAM = "program",
|
|
9
|
+
COLUMN_PRODUCTS = "products",
|
|
10
|
+
COLUMN_SUBSCRIPTION = "subscription"
|
|
11
|
+
}
|
|
12
|
+
export declare type ReportType = {
|
|
13
|
+
[ReportFields.COLUMN_REFERENCE]: string;
|
|
14
|
+
[ReportFields.COLUMN_STATUS]: string;
|
|
15
|
+
[ReportFields.COLUMN_MONTH]: string;
|
|
16
|
+
[ReportFields.COLUMN_PROGRAM]: string;
|
|
17
|
+
[ReportFields.COLUMN_PRODUCTS]: Array<ReportProductType>;
|
|
18
|
+
[ReportFields.COLUMN_SUBSCRIPTION]: ReferenceType;
|
|
19
|
+
};
|
|
20
|
+
export declare class Report extends AbstractEntity<ReportType> {
|
|
21
|
+
#private;
|
|
22
|
+
constructor(reportData: ReportType);
|
|
23
|
+
get reference(): string;
|
|
24
|
+
get status(): string;
|
|
25
|
+
get month(): string;
|
|
26
|
+
get program(): string;
|
|
27
|
+
get products(): ReportProduct[];
|
|
28
|
+
get subscription(): Reference;
|
|
29
|
+
toJSON(): ReportType;
|
|
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 _Report_reference, _Report_status, _Report_month, _Report_program, _Report_products, _Report_subscription;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.Report = exports.ReportFields = void 0;
|
|
16
|
+
const reportProduct_1 = require("./reportProduct");
|
|
17
|
+
const reference_1 = require("./reference");
|
|
18
|
+
const abstractEntity_1 = require("../../abstractEntity");
|
|
19
|
+
var ReportFields;
|
|
20
|
+
(function (ReportFields) {
|
|
21
|
+
ReportFields["COLUMN_REFERENCE"] = "reference";
|
|
22
|
+
ReportFields["COLUMN_STATUS"] = "status";
|
|
23
|
+
ReportFields["COLUMN_MONTH"] = "month";
|
|
24
|
+
ReportFields["COLUMN_PROGRAM"] = "program";
|
|
25
|
+
ReportFields["COLUMN_PRODUCTS"] = "products";
|
|
26
|
+
ReportFields["COLUMN_SUBSCRIPTION"] = "subscription";
|
|
27
|
+
})(ReportFields = exports.ReportFields || (exports.ReportFields = {}));
|
|
28
|
+
class Report extends abstractEntity_1.AbstractEntity {
|
|
29
|
+
constructor(reportData) {
|
|
30
|
+
super(reportData);
|
|
31
|
+
_Report_reference.set(this, void 0);
|
|
32
|
+
_Report_status.set(this, void 0);
|
|
33
|
+
_Report_month.set(this, void 0);
|
|
34
|
+
_Report_program.set(this, void 0);
|
|
35
|
+
_Report_products.set(this, void 0);
|
|
36
|
+
_Report_subscription.set(this, void 0);
|
|
37
|
+
__classPrivateFieldSet(this, _Report_reference, reportData[ReportFields.COLUMN_REFERENCE], "f");
|
|
38
|
+
__classPrivateFieldSet(this, _Report_status, reportData[ReportFields.COLUMN_STATUS], "f");
|
|
39
|
+
__classPrivateFieldSet(this, _Report_month, reportData[ReportFields.COLUMN_MONTH], "f");
|
|
40
|
+
__classPrivateFieldSet(this, _Report_program, reportData[ReportFields.COLUMN_PROGRAM], "f");
|
|
41
|
+
__classPrivateFieldSet(this, _Report_products, reportData[ReportFields.COLUMN_PRODUCTS].map((product) => new reportProduct_1.ReportProduct(product)), "f");
|
|
42
|
+
__classPrivateFieldSet(this, _Report_subscription, new reference_1.Reference(reportData[ReportFields.COLUMN_SUBSCRIPTION]), "f");
|
|
43
|
+
}
|
|
44
|
+
get reference() {
|
|
45
|
+
return __classPrivateFieldGet(this, _Report_reference, "f");
|
|
46
|
+
}
|
|
47
|
+
get status() {
|
|
48
|
+
return __classPrivateFieldGet(this, _Report_status, "f");
|
|
49
|
+
}
|
|
50
|
+
get month() {
|
|
51
|
+
return __classPrivateFieldGet(this, _Report_month, "f");
|
|
52
|
+
}
|
|
53
|
+
get program() {
|
|
54
|
+
return __classPrivateFieldGet(this, _Report_program, "f");
|
|
55
|
+
}
|
|
56
|
+
get products() {
|
|
57
|
+
return __classPrivateFieldGet(this, _Report_products, "f");
|
|
58
|
+
}
|
|
59
|
+
get subscription() {
|
|
60
|
+
return __classPrivateFieldGet(this, _Report_subscription, "f");
|
|
61
|
+
}
|
|
62
|
+
toJSON() {
|
|
63
|
+
return {
|
|
64
|
+
[ReportFields.COLUMN_REFERENCE]: this.reference,
|
|
65
|
+
[ReportFields.COLUMN_STATUS]: this.status,
|
|
66
|
+
[ReportFields.COLUMN_MONTH]: this.month,
|
|
67
|
+
[ReportFields.COLUMN_PROGRAM]: this.program,
|
|
68
|
+
[ReportFields.COLUMN_PRODUCTS]: this.products.map((product) => product.toJSON()),
|
|
69
|
+
[ReportFields.COLUMN_SUBSCRIPTION]: this.subscription.toJSON(),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
exports.Report = Report;
|
|
74
|
+
_Report_reference = new WeakMap(), _Report_status = new WeakMap(), _Report_month = new WeakMap(), _Report_program = new WeakMap(), _Report_products = new WeakMap(), _Report_subscription = new WeakMap();
|
|
75
|
+
//# sourceMappingURL=report.js.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Reference, ReferenceType } from './reference';
|
|
2
|
+
import { ReportProductPrice, ReportProductPriceType } from './reportProductPrice';
|
|
3
|
+
import { AbstractEntity } from '../../abstractEntity';
|
|
4
|
+
export declare enum ReportProductFields {
|
|
5
|
+
COLUMN_SKU = "sku",
|
|
6
|
+
COLUMN_QUANTITY = "quantity",
|
|
7
|
+
COLUMN_CUSTOMER = "customer",
|
|
8
|
+
COLUMN_PRODUCT_NAME = "productName",
|
|
9
|
+
COLUMN_PRODUCT_VERSION = "productVersion",
|
|
10
|
+
COLUMN_PRICE = "price"
|
|
11
|
+
}
|
|
12
|
+
export declare type ReportProductType = {
|
|
13
|
+
[ReportProductFields.COLUMN_SKU]: string;
|
|
14
|
+
[ReportProductFields.COLUMN_QUANTITY]: string;
|
|
15
|
+
[ReportProductFields.COLUMN_CUSTOMER]: ReferenceType;
|
|
16
|
+
[ReportProductFields.COLUMN_PRODUCT_NAME]: string;
|
|
17
|
+
[ReportProductFields.COLUMN_PRODUCT_VERSION]: string;
|
|
18
|
+
[ReportProductFields.COLUMN_PRICE]: ReportProductPriceType;
|
|
19
|
+
};
|
|
20
|
+
export declare class ReportProduct extends AbstractEntity<ReportProductType> {
|
|
21
|
+
#private;
|
|
22
|
+
constructor(reportProductData: ReportProductType);
|
|
23
|
+
get sku(): string;
|
|
24
|
+
get quantity(): string;
|
|
25
|
+
get customer(): Reference;
|
|
26
|
+
get productName(): string;
|
|
27
|
+
get productVersion(): string;
|
|
28
|
+
get price(): ReportProductPrice;
|
|
29
|
+
toJSON(): ReportProductType;
|
|
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 _ReportProduct_sku, _ReportProduct_quantity, _ReportProduct_customer, _ReportProduct_productName, _ReportProduct_productVersion, _ReportProduct_price;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.ReportProduct = exports.ReportProductFields = void 0;
|
|
16
|
+
const reference_1 = require("./reference");
|
|
17
|
+
const reportProductPrice_1 = require("./reportProductPrice");
|
|
18
|
+
const abstractEntity_1 = require("../../abstractEntity");
|
|
19
|
+
var ReportProductFields;
|
|
20
|
+
(function (ReportProductFields) {
|
|
21
|
+
ReportProductFields["COLUMN_SKU"] = "sku";
|
|
22
|
+
ReportProductFields["COLUMN_QUANTITY"] = "quantity";
|
|
23
|
+
ReportProductFields["COLUMN_CUSTOMER"] = "customer";
|
|
24
|
+
ReportProductFields["COLUMN_PRODUCT_NAME"] = "productName";
|
|
25
|
+
ReportProductFields["COLUMN_PRODUCT_VERSION"] = "productVersion";
|
|
26
|
+
ReportProductFields["COLUMN_PRICE"] = "price";
|
|
27
|
+
})(ReportProductFields = exports.ReportProductFields || (exports.ReportProductFields = {}));
|
|
28
|
+
class ReportProduct extends abstractEntity_1.AbstractEntity {
|
|
29
|
+
constructor(reportProductData) {
|
|
30
|
+
super(reportProductData);
|
|
31
|
+
_ReportProduct_sku.set(this, void 0);
|
|
32
|
+
_ReportProduct_quantity.set(this, void 0);
|
|
33
|
+
_ReportProduct_customer.set(this, void 0);
|
|
34
|
+
_ReportProduct_productName.set(this, void 0);
|
|
35
|
+
_ReportProduct_productVersion.set(this, void 0);
|
|
36
|
+
_ReportProduct_price.set(this, void 0);
|
|
37
|
+
__classPrivateFieldSet(this, _ReportProduct_sku, reportProductData[ReportProductFields.COLUMN_SKU], "f");
|
|
38
|
+
__classPrivateFieldSet(this, _ReportProduct_quantity, reportProductData[ReportProductFields.COLUMN_QUANTITY], "f");
|
|
39
|
+
__classPrivateFieldSet(this, _ReportProduct_customer, new reference_1.Reference(reportProductData[ReportProductFields.COLUMN_CUSTOMER]), "f");
|
|
40
|
+
__classPrivateFieldSet(this, _ReportProduct_productName, reportProductData[ReportProductFields.COLUMN_PRODUCT_NAME], "f");
|
|
41
|
+
__classPrivateFieldSet(this, _ReportProduct_productVersion, reportProductData[ReportProductFields.COLUMN_PRODUCT_VERSION], "f");
|
|
42
|
+
__classPrivateFieldSet(this, _ReportProduct_price, new reportProductPrice_1.ReportProductPrice(reportProductData[ReportProductFields.COLUMN_PRICE]), "f");
|
|
43
|
+
}
|
|
44
|
+
get sku() {
|
|
45
|
+
return __classPrivateFieldGet(this, _ReportProduct_sku, "f");
|
|
46
|
+
}
|
|
47
|
+
get quantity() {
|
|
48
|
+
return __classPrivateFieldGet(this, _ReportProduct_quantity, "f");
|
|
49
|
+
}
|
|
50
|
+
get customer() {
|
|
51
|
+
return __classPrivateFieldGet(this, _ReportProduct_customer, "f");
|
|
52
|
+
}
|
|
53
|
+
get productName() {
|
|
54
|
+
return __classPrivateFieldGet(this, _ReportProduct_productName, "f");
|
|
55
|
+
}
|
|
56
|
+
get productVersion() {
|
|
57
|
+
return __classPrivateFieldGet(this, _ReportProduct_productVersion, "f");
|
|
58
|
+
}
|
|
59
|
+
get price() {
|
|
60
|
+
return __classPrivateFieldGet(this, _ReportProduct_price, "f");
|
|
61
|
+
}
|
|
62
|
+
toJSON() {
|
|
63
|
+
return {
|
|
64
|
+
[ReportProductFields.COLUMN_SKU]: this.sku,
|
|
65
|
+
[ReportProductFields.COLUMN_QUANTITY]: this.quantity,
|
|
66
|
+
[ReportProductFields.COLUMN_CUSTOMER]: this.customer.toJSON(),
|
|
67
|
+
[ReportProductFields.COLUMN_PRODUCT_NAME]: this.productName,
|
|
68
|
+
[ReportProductFields.COLUMN_PRODUCT_VERSION]: this.productVersion,
|
|
69
|
+
[ReportProductFields.COLUMN_PRICE]: this.price.toJSON(),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
exports.ReportProduct = ReportProduct;
|
|
74
|
+
_ReportProduct_sku = new WeakMap(), _ReportProduct_quantity = new WeakMap(), _ReportProduct_customer = new WeakMap(), _ReportProduct_productName = new WeakMap(), _ReportProduct_productVersion = new WeakMap(), _ReportProduct_price = new WeakMap();
|
|
75
|
+
//# sourceMappingURL=reportProduct.js.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../abstractEntity';
|
|
2
|
+
export declare enum ReportProductPriceFields {
|
|
3
|
+
COLUMN_UNIT_PRICE = "unitPrice",
|
|
4
|
+
COLUMN_TOTAL_PRICE = "totalPrice",
|
|
5
|
+
COLUMN_CURRENCY = "currency"
|
|
6
|
+
}
|
|
7
|
+
export declare type ReportProductPriceType = {
|
|
8
|
+
[ReportProductPriceFields.COLUMN_UNIT_PRICE]: number;
|
|
9
|
+
[ReportProductPriceFields.COLUMN_TOTAL_PRICE]: number;
|
|
10
|
+
[ReportProductPriceFields.COLUMN_CURRENCY]: string;
|
|
11
|
+
};
|
|
12
|
+
export declare class ReportProductPrice extends AbstractEntity<ReportProductPriceType> {
|
|
13
|
+
#private;
|
|
14
|
+
constructor(reportProductPriceData: ReportProductPriceType);
|
|
15
|
+
get unitPrice(): number;
|
|
16
|
+
get totalPrice(): number;
|
|
17
|
+
get currency(): string;
|
|
18
|
+
toJSON(): ReportProductPriceType;
|
|
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 _ReportProductPrice_unitPrice, _ReportProductPrice_totalPrice, _ReportProductPrice_currency;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.ReportProductPrice = exports.ReportProductPriceFields = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../abstractEntity");
|
|
17
|
+
var ReportProductPriceFields;
|
|
18
|
+
(function (ReportProductPriceFields) {
|
|
19
|
+
ReportProductPriceFields["COLUMN_UNIT_PRICE"] = "unitPrice";
|
|
20
|
+
ReportProductPriceFields["COLUMN_TOTAL_PRICE"] = "totalPrice";
|
|
21
|
+
ReportProductPriceFields["COLUMN_CURRENCY"] = "currency";
|
|
22
|
+
})(ReportProductPriceFields = exports.ReportProductPriceFields || (exports.ReportProductPriceFields = {}));
|
|
23
|
+
class ReportProductPrice extends abstractEntity_1.AbstractEntity {
|
|
24
|
+
constructor(reportProductPriceData) {
|
|
25
|
+
super(reportProductPriceData);
|
|
26
|
+
_ReportProductPrice_unitPrice.set(this, void 0);
|
|
27
|
+
_ReportProductPrice_totalPrice.set(this, void 0);
|
|
28
|
+
_ReportProductPrice_currency.set(this, void 0);
|
|
29
|
+
__classPrivateFieldSet(this, _ReportProductPrice_unitPrice, reportProductPriceData[ReportProductPriceFields.COLUMN_UNIT_PRICE], "f");
|
|
30
|
+
__classPrivateFieldSet(this, _ReportProductPrice_totalPrice, reportProductPriceData[ReportProductPriceFields.COLUMN_TOTAL_PRICE], "f");
|
|
31
|
+
__classPrivateFieldSet(this, _ReportProductPrice_currency, reportProductPriceData[ReportProductPriceFields.COLUMN_CURRENCY], "f");
|
|
32
|
+
}
|
|
33
|
+
get unitPrice() {
|
|
34
|
+
return __classPrivateFieldGet(this, _ReportProductPrice_unitPrice, "f");
|
|
35
|
+
}
|
|
36
|
+
get totalPrice() {
|
|
37
|
+
return __classPrivateFieldGet(this, _ReportProductPrice_totalPrice, "f");
|
|
38
|
+
}
|
|
39
|
+
get currency() {
|
|
40
|
+
return __classPrivateFieldGet(this, _ReportProductPrice_currency, "f");
|
|
41
|
+
}
|
|
42
|
+
toJSON() {
|
|
43
|
+
return {
|
|
44
|
+
[ReportProductPriceFields.COLUMN_UNIT_PRICE]: this.unitPrice,
|
|
45
|
+
[ReportProductPriceFields.COLUMN_TOTAL_PRICE]: this.totalPrice,
|
|
46
|
+
[ReportProductPriceFields.COLUMN_CURRENCY]: this.currency,
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
exports.ReportProductPrice = ReportProductPrice;
|
|
51
|
+
_ReportProductPrice_unitPrice = new WeakMap(), _ReportProductPrice_totalPrice = new WeakMap(), _ReportProductPrice_currency = new WeakMap();
|
|
52
|
+
//# sourceMappingURL=reportProductPrice.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../abstractEntity';
|
|
2
|
+
import { Reference, ReferenceType } from './reference';
|
|
3
|
+
export declare enum ReportReferenceLinkFields {
|
|
4
|
+
COLUMN_REPORT = "report"
|
|
5
|
+
}
|
|
6
|
+
export declare type ReportReferenceLinkType = {
|
|
7
|
+
[ReportReferenceLinkFields.COLUMN_REPORT]: ReferenceType;
|
|
8
|
+
};
|
|
9
|
+
export declare class ReportReferenceLink extends AbstractEntity<ReportReferenceLinkType> {
|
|
10
|
+
#private;
|
|
11
|
+
constructor(reportReferenceLinkData: ReportReferenceLinkType);
|
|
12
|
+
get report(): Reference;
|
|
13
|
+
toJSON(): ReportReferenceLinkType;
|
|
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 _ReportReferenceLink_report;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.ReportReferenceLink = exports.ReportReferenceLinkFields = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../abstractEntity");
|
|
17
|
+
const reference_1 = require("./reference");
|
|
18
|
+
var ReportReferenceLinkFields;
|
|
19
|
+
(function (ReportReferenceLinkFields) {
|
|
20
|
+
ReportReferenceLinkFields["COLUMN_REPORT"] = "report";
|
|
21
|
+
})(ReportReferenceLinkFields = exports.ReportReferenceLinkFields || (exports.ReportReferenceLinkFields = {}));
|
|
22
|
+
class ReportReferenceLink extends abstractEntity_1.AbstractEntity {
|
|
23
|
+
constructor(reportReferenceLinkData) {
|
|
24
|
+
super(reportReferenceLinkData);
|
|
25
|
+
_ReportReferenceLink_report.set(this, void 0);
|
|
26
|
+
__classPrivateFieldSet(this, _ReportReferenceLink_report, new reference_1.Reference(reportReferenceLinkData[ReportReferenceLinkFields.COLUMN_REPORT]), "f");
|
|
27
|
+
}
|
|
28
|
+
get report() {
|
|
29
|
+
return __classPrivateFieldGet(this, _ReportReferenceLink_report, "f");
|
|
30
|
+
}
|
|
31
|
+
toJSON() {
|
|
32
|
+
return {
|
|
33
|
+
[ReportReferenceLinkFields.COLUMN_REPORT]: this.report.toJSON(),
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.ReportReferenceLink = ReportReferenceLink;
|
|
38
|
+
_ReportReferenceLink_report = new WeakMap();
|
|
39
|
+
//# sourceMappingURL=reportReferenceLink.js.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../abstractEntity';
|
|
2
|
+
export declare enum ReportValidationFields {
|
|
3
|
+
COLUMN_REFERENCE = "reference",
|
|
4
|
+
COLUMN_STATUS = "status",
|
|
5
|
+
COLUMN_link = "link"
|
|
6
|
+
}
|
|
7
|
+
export declare type ReportValidationType = {
|
|
8
|
+
[ReportValidationFields.COLUMN_REFERENCE]: string;
|
|
9
|
+
[ReportValidationFields.COLUMN_STATUS]: string;
|
|
10
|
+
[ReportValidationFields.COLUMN_link]: string;
|
|
11
|
+
};
|
|
12
|
+
export declare class ReportValidation extends AbstractEntity<ReportValidationType> {
|
|
13
|
+
#private;
|
|
14
|
+
constructor(reportValidationData: ReportValidationType);
|
|
15
|
+
get reference(): string;
|
|
16
|
+
get status(): string;
|
|
17
|
+
get link(): string;
|
|
18
|
+
toJSON(): ReportValidationType;
|
|
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 _ReportValidation_reference, _ReportValidation_status, _ReportValidation_link;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.ReportValidation = exports.ReportValidationFields = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../abstractEntity");
|
|
17
|
+
var ReportValidationFields;
|
|
18
|
+
(function (ReportValidationFields) {
|
|
19
|
+
ReportValidationFields["COLUMN_REFERENCE"] = "reference";
|
|
20
|
+
ReportValidationFields["COLUMN_STATUS"] = "status";
|
|
21
|
+
ReportValidationFields["COLUMN_link"] = "link";
|
|
22
|
+
})(ReportValidationFields = exports.ReportValidationFields || (exports.ReportValidationFields = {}));
|
|
23
|
+
class ReportValidation extends abstractEntity_1.AbstractEntity {
|
|
24
|
+
constructor(reportValidationData) {
|
|
25
|
+
super(reportValidationData);
|
|
26
|
+
_ReportValidation_reference.set(this, void 0);
|
|
27
|
+
_ReportValidation_status.set(this, void 0);
|
|
28
|
+
_ReportValidation_link.set(this, void 0);
|
|
29
|
+
__classPrivateFieldSet(this, _ReportValidation_reference, reportValidationData[ReportValidationFields.COLUMN_REFERENCE], "f");
|
|
30
|
+
__classPrivateFieldSet(this, _ReportValidation_status, reportValidationData[ReportValidationFields.COLUMN_STATUS], "f");
|
|
31
|
+
__classPrivateFieldSet(this, _ReportValidation_link, reportValidationData[ReportValidationFields.COLUMN_link], "f");
|
|
32
|
+
}
|
|
33
|
+
get reference() {
|
|
34
|
+
return __classPrivateFieldGet(this, _ReportValidation_reference, "f");
|
|
35
|
+
}
|
|
36
|
+
get status() {
|
|
37
|
+
return __classPrivateFieldGet(this, _ReportValidation_status, "f");
|
|
38
|
+
}
|
|
39
|
+
get link() {
|
|
40
|
+
return __classPrivateFieldGet(this, _ReportValidation_link, "f");
|
|
41
|
+
}
|
|
42
|
+
toJSON() {
|
|
43
|
+
return {
|
|
44
|
+
[ReportValidationFields.COLUMN_REFERENCE]: this.reference,
|
|
45
|
+
[ReportValidationFields.COLUMN_STATUS]: this.status,
|
|
46
|
+
[ReportValidationFields.COLUMN_link]: this.link,
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
exports.ReportValidation = ReportValidation;
|
|
51
|
+
_ReportValidation_reference = new WeakMap(), _ReportValidation_status = new WeakMap(), _ReportValidation_link = new WeakMap();
|
|
52
|
+
//# sourceMappingURL=reportValidation.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../abstractEntity';
|
|
2
|
+
import { ReportValidation, ReportValidationType } from './reportValidation';
|
|
3
|
+
export declare enum ReportValidationReferenceFields {
|
|
4
|
+
COLUMN_ORDERS = "orders"
|
|
5
|
+
}
|
|
6
|
+
export declare type ReportValidationReferenceType = {
|
|
7
|
+
[ReportValidationReferenceFields.COLUMN_ORDERS]: Array<ReportValidationType>;
|
|
8
|
+
};
|
|
9
|
+
export declare class ReportValidationReference extends AbstractEntity<ReportValidationReferenceType> {
|
|
10
|
+
#private;
|
|
11
|
+
constructor(reportReferenceLinkData: ReportValidationReferenceType);
|
|
12
|
+
get orders(): ReportValidation[];
|
|
13
|
+
toJSON(): ReportValidationReferenceType;
|
|
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 _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
|
|
@@ -0,0 +1,9 @@
|
|
|
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';
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
}
|
|
@@ -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