@arrowsphere/api-client 3.28.0 → 3.29.0-rc.bdj.2
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/README.md +12 -0
- package/build/AbstractHttpClient.d.ts +47 -0
- package/build/AbstractHttpClient.js +80 -0
- package/build/abstractClient.d.ts +3 -19
- package/build/abstractClient.js +9 -25
- package/build/abstractEntity.js +14 -16
- package/build/abstractGraphQLClient.d.ts +4 -14
- package/build/abstractGraphQLClient.js +32 -24
- package/build/axiosSingleton.js +2 -2
- package/build/campaign/entities/campaign/banners/banners.js +32 -34
- package/build/campaign/entities/campaign/campaign.js +51 -53
- package/build/campaign/entities/campaign/landingPage/landingPage.js +24 -26
- package/build/campaign/entities/campaign/landingPage/landingPageBody.js +35 -37
- package/build/campaign/entities/campaign/landingPage/landingPageFooter/landingPageFooter.js +29 -31
- package/build/campaign/entities/campaign/landingPage/landingPageFooter/landingPageFooterFeature.js +23 -25
- package/build/campaign/entities/campaign/landingPage/landingPageHeader.js +29 -31
- package/build/campaign/entities/campaign/rules/rules.js +29 -31
- package/build/campaign/entities/campaignAssets/assets/assets.js +17 -19
- package/build/campaign/entities/campaignAssets/campaignAssets.js +14 -16
- package/build/campaign/entities/v2/campaign/banner/banner.js +32 -34
- package/build/campaign/entities/v2/campaign/campaign.js +48 -50
- package/build/campaign/entities/v2/campaign/landingPage/landingPage.js +24 -26
- package/build/campaign/entities/v2/campaign/landingPage/landingPageFooter/landingPageFooter.js +34 -36
- package/build/campaign/entities/v2/campaign/landingPage/landingPageFooter/landingPageFooterFeature.js +20 -22
- package/build/campaign/entities/v2/campaign/landingPage/landingPageFooter/landingPageFooterFeatureItem.js +32 -34
- package/build/campaign/entities/v2/campaign/landingPage/landingPageHeader.js +32 -34
- package/build/campaign/entities/v2/campaignList.js +14 -16
- package/build/campaign/index.js +5 -1
- package/build/cart/entities/index.js +5 -1
- package/build/cart/entities/item.js +26 -28
- package/build/cart/entities/itemList.js +14 -16
- package/build/cart/index.js +5 -1
- package/build/catalog/catalogGraphQLClient.d.ts +2 -0
- package/build/catalog/catalogGraphQLClient.js +14 -1
- package/build/catalog/entities/program.js +32 -34
- package/build/catalog/entities/programs.js +14 -16
- package/build/catalog/index.d.ts +2 -0
- package/build/catalog/index.js +7 -1
- package/build/catalog/types/catalogGraphQLQueries.d.ts +12 -0
- package/build/catalog/types/catalogGraphQLQueries.js +3 -0
- package/build/catalog/types/catalogGraphQLSchemas.d.ts +30 -0
- package/build/catalog/types/catalogGraphQLSchemas.js +4 -0
- package/build/catalog/types/catalogGraphQLTypes.js +1 -0
- package/build/catalog/types/queryArguments.d.ts +41 -0
- package/build/catalog/types/queryArguments.js +10 -0
- package/build/consumption/entities/bi/consumptionBI.js +28 -30
- package/build/consumption/entities/bi/period/period.js +17 -19
- package/build/consumption/entities/bi/top/top.js +23 -25
- package/build/consumption/entities/consumption/consumption.js +17 -19
- package/build/consumption/index.js +5 -1
- package/build/contact/entities/contact.js +44 -46
- package/build/contact/entities/contactCreate.js +14 -16
- package/build/contact/entities/contactList.js +14 -16
- package/build/contact/index.js +5 -1
- package/build/customers/entities/customers/contact/contact.js +29 -31
- package/build/customers/entities/customers/customer.js +71 -73
- package/build/customers/entities/customers/customerContact/customerContact.js +38 -40
- package/build/customers/entities/customers/customerContact/customerContactList.js +14 -16
- package/build/customers/entities/customers/details/details.js +29 -31
- package/build/customers/entities/dataCustomers.js +14 -16
- package/build/customers/entities/dataInvitation.js +29 -31
- package/build/customers/entities/invitations/company/company.js +14 -16
- package/build/customers/entities/invitations/contact/invitationContact.js +26 -28
- package/build/customers/index.js +5 -1
- package/build/exception/exception-handlers/HandleHttpExceptionOutput.d.ts +3 -0
- package/build/exception/exception-handlers/HandleHttpExceptionOutput.js +3 -0
- package/build/exception/exception-handlers/Hooks.d.ts +3 -0
- package/build/exception/exception-handlers/Hooks.js +3 -0
- package/build/exception/exception-handlers/HttpExceptionHandler.d.ts +10 -0
- package/build/exception/exception-handlers/HttpExceptionHandler.js +3 -0
- package/build/exception/exception-handlers/index.d.ts +3 -0
- package/build/exception/exception-handlers/index.js +20 -0
- package/build/exception/index.js +5 -1
- package/build/exception/publicApiClientException.d.ts +2 -1
- package/build/exception/publicApiClientException.js +2 -1
- package/build/general/entities/whoAmI.js +59 -61
- package/build/general/index.js +5 -1
- package/build/getResult.js +21 -23
- package/build/index.d.ts +1 -0
- package/build/index.js +6 -1
- package/build/licenses/entities/filterFindResult.js +17 -19
- package/build/licenses/entities/findResult.d.ts +1 -1
- package/build/licenses/entities/findResult.js +37 -39
- package/build/licenses/entities/getLicense/actionMessagesGetResult.js +26 -28
- package/build/licenses/entities/getLicense/actionsGetResult.js +41 -43
- package/build/licenses/entities/getLicense/buySellFindResult.js +17 -19
- package/build/licenses/entities/getLicense/licenseGetResult.js +105 -107
- package/build/licenses/entities/getLicense/licensePriceGetResult.js +20 -22
- package/build/licenses/entities/getLicense/orderGetResult.js +17 -19
- package/build/licenses/entities/getResult/getLicenseResult.js +14 -16
- package/build/licenses/entities/history/actionHistoryResult.js +23 -25
- package/build/licenses/entities/history/licenceHistoryResult.js +14 -16
- package/build/licenses/entities/license/activeSeatsFindResult.js +17 -19
- package/build/licenses/entities/license/configFindResult.js +20 -22
- package/build/licenses/entities/license/licenseFindResult.js +134 -136
- package/build/licenses/entities/license/priceFindResult.js +26 -28
- package/build/licenses/entities/license/warningFindResult.js +17 -19
- package/build/licenses/entities/offer/actionFlagsFindResult.js +20 -22
- package/build/licenses/entities/offer/offerFindResult.js +32 -34
- package/build/licenses/entities/offer/priceBandFindResult.js +35 -37
- package/build/licenses/entities/offer/priceband/billingFindResult.js +20 -22
- package/build/licenses/entities/offer/priceband/identifiers/arrowsphereFindResult.js +14 -16
- package/build/licenses/entities/offer/priceband/identifiersFindResult.js +14 -16
- package/build/licenses/entities/offer/priceband/priceBandActionFlagsFindResult.js +26 -28
- package/build/licenses/entities/offer/priceband/priceBandPriceFindResult.js +20 -22
- package/build/licenses/entities/offer/priceband/saleConstraintsFindResult.js +17 -19
- package/build/licenses/index.js +5 -1
- package/build/orders/entities/dataListOrders.js +14 -16
- package/build/orders/entities/orders/order.js +39 -41
- package/build/orders/entities/orders/partner/partner.js +17 -19
- package/build/orders/entities/orders/products/identifiers/productIdentifiers.js +14 -16
- package/build/orders/entities/orders/products/identifiers/vendor/identifiersVendor.js +14 -16
- package/build/orders/entities/orders/products/prices/productPrices.js +32 -34
- package/build/orders/entities/orders/products/products.js +56 -58
- package/build/orders/entities/orders/products/program/productProgram.js +14 -16
- package/build/orders/entities/referenceLink.js +17 -19
- package/build/orders/index.js +5 -1
- package/build/pagination.js +29 -31
- package/build/security/index.js +5 -1
- package/build/security/register/entity/registrationLink.js +14 -16
- package/build/security/register/index.js +5 -1
- package/build/security/standards/entities/checks/checks.js +17 -19
- package/build/security/standards/entities/checks/securityChecks.js +38 -40
- package/build/security/standards/entities/resources/resources.js +26 -28
- package/build/security/standards/entities/resources/securityResources.js +17 -19
- package/build/security/standards/entities/standards/securityStandards.js +29 -31
- package/build/security/standards/entities/standards/standards.js +17 -19
- package/build/security/standards/index.js +5 -1
- package/build/securityScore/entities/getCustomerAccountData.d.ts +48 -0
- package/build/securityScore/entities/getCustomerAccountData.js +111 -0
- package/build/securityScore/entities/getCustomerData.d.ts +51 -0
- package/build/securityScore/entities/getCustomerData.js +117 -0
- package/build/securityScore/entities/getPartnerData.d.ts +45 -0
- package/build/securityScore/entities/getPartnerData.js +102 -0
- package/build/securityScore/index.d.ts +7 -0
- package/build/securityScore/index.js +24 -0
- package/build/securityScore/securityScoreGraphQLClient.d.ts +19 -0
- package/build/securityScore/securityScoreGraphQLClient.js +61 -0
- package/build/securityScore/types/queryArguments.d.ts +108 -0
- package/build/securityScore/types/queryArguments.js +93 -0
- package/build/securityScore/types/securityScoreGraphQLQueries.d.ts +62 -0
- package/build/securityScore/types/securityScoreGraphQLQueries.js +7 -0
- package/build/securityScore/types/securityScoreGraphQLSchemas.d.ts +78 -0
- package/build/securityScore/types/securityScoreGraphQLSchemas.js +3 -0
- package/build/securityScore/types/securityScoreGraphQLTypes.d.ts +190 -0
- package/build/securityScore/types/securityScoreGraphQLTypes.js +3 -0
- package/build/shared/index.js +5 -1
- package/build/subscriptions/entities/subscription.js +56 -58
- package/build/subscriptions/entities/subscriptionsListResult.js +39 -41
- package/build/subscriptions/index.js +5 -1
- package/build/supportCenter/entities/issue/attachment.js +27 -29
- package/build/supportCenter/entities/issue/comment.js +29 -31
- package/build/supportCenter/entities/issue/issue.js +106 -108
- package/build/supportCenter/entities/topic.js +30 -32
- package/build/supportCenter/index.js +5 -1
- package/package.json +5 -3
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AbstractGraphQLClient } from '../abstractGraphQLClient';
|
|
2
2
|
import { GetProductsType } from './types/catalogGraphQLTypes';
|
|
3
|
+
import { CatalogQuery } from './types/catalogGraphQLQueries';
|
|
3
4
|
export declare class CatalogGraphQLClient extends AbstractGraphQLClient {
|
|
4
5
|
/**
|
|
5
6
|
* The base path of the API
|
|
@@ -10,4 +11,5 @@ export declare class CatalogGraphQLClient extends AbstractGraphQLClient {
|
|
|
10
11
|
*/
|
|
11
12
|
private GRAPHQL;
|
|
12
13
|
find(request: string): Promise<GetProductsType>;
|
|
14
|
+
findByQuery(query: CatalogQuery): Promise<GetProductsType | null>;
|
|
13
15
|
}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CatalogGraphQLClient = void 0;
|
|
4
4
|
const abstractGraphQLClient_1 = require("../abstractGraphQLClient");
|
|
5
|
-
// import { inspect } from 'util';
|
|
6
5
|
class CatalogGraphQLClient extends abstractGraphQLClient_1.AbstractGraphQLClient {
|
|
7
6
|
constructor() {
|
|
8
7
|
super(...arguments);
|
|
@@ -19,6 +18,20 @@ class CatalogGraphQLClient extends abstractGraphQLClient_1.AbstractGraphQLClient
|
|
|
19
18
|
this.path = this.GRAPHQL;
|
|
20
19
|
return await this.post(request);
|
|
21
20
|
}
|
|
21
|
+
async findByQuery(query) {
|
|
22
|
+
const queryStr = this.stringifyQuery(query);
|
|
23
|
+
try {
|
|
24
|
+
return await this.find(queryStr);
|
|
25
|
+
}
|
|
26
|
+
catch (error) {
|
|
27
|
+
const exception = this.mapToPublicApiException(error);
|
|
28
|
+
const { mustRetry } = await this.handleError(exception);
|
|
29
|
+
if (mustRetry) {
|
|
30
|
+
return await this.find(queryStr);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
22
35
|
}
|
|
23
36
|
exports.CatalogGraphQLClient = CatalogGraphQLClient;
|
|
24
37
|
//# sourceMappingURL=catalogGraphQLClient.js.map
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver,
|
|
3
|
-
if (
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
return value;
|
|
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;
|
|
8
7
|
};
|
|
9
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver,
|
|
10
|
-
if (!
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
return privateMap.get(receiver);
|
|
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);
|
|
14
12
|
};
|
|
15
|
-
var
|
|
13
|
+
var _Program_reference, _Program_name, _Program_associatedSubscriptionProgram, _Program_logo, _Program_category, _Program_links, _Program_extraInformation;
|
|
16
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
15
|
exports.Program = exports.ProgramExtraInfoItemFields = exports.ProgramExtraInfoFields = exports.ProgramLinksFields = exports.ProgramFields = void 0;
|
|
18
16
|
const abstractEntity_1 = require("../../abstractEntity");
|
|
@@ -48,41 +46,41 @@ var ProgramExtraInfoItemFields;
|
|
|
48
46
|
class Program extends abstractEntity_1.AbstractEntity {
|
|
49
47
|
constructor(input) {
|
|
50
48
|
super(input);
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
__classPrivateFieldSet(this,
|
|
59
|
-
__classPrivateFieldSet(this,
|
|
60
|
-
__classPrivateFieldSet(this,
|
|
61
|
-
__classPrivateFieldSet(this,
|
|
62
|
-
__classPrivateFieldSet(this,
|
|
63
|
-
__classPrivateFieldSet(this,
|
|
64
|
-
__classPrivateFieldSet(this,
|
|
49
|
+
_Program_reference.set(this, void 0);
|
|
50
|
+
_Program_name.set(this, void 0);
|
|
51
|
+
_Program_associatedSubscriptionProgram.set(this, void 0);
|
|
52
|
+
_Program_logo.set(this, void 0);
|
|
53
|
+
_Program_category.set(this, void 0);
|
|
54
|
+
_Program_links.set(this, void 0);
|
|
55
|
+
_Program_extraInformation.set(this, void 0);
|
|
56
|
+
__classPrivateFieldSet(this, _Program_reference, input[ProgramFields.REFERENCE], "f");
|
|
57
|
+
__classPrivateFieldSet(this, _Program_name, input[ProgramFields.NAME], "f");
|
|
58
|
+
__classPrivateFieldSet(this, _Program_associatedSubscriptionProgram, input[ProgramFields.ASSOCIATED_SUBSCRIPTION_PROGRAM], "f");
|
|
59
|
+
__classPrivateFieldSet(this, _Program_logo, input[ProgramFields.LOGO], "f");
|
|
60
|
+
__classPrivateFieldSet(this, _Program_category, input[ProgramFields.CATEGORY], "f");
|
|
61
|
+
__classPrivateFieldSet(this, _Program_links, input[ProgramFields.LINKS], "f");
|
|
62
|
+
__classPrivateFieldSet(this, _Program_extraInformation, input[ProgramFields.EXTRA_INFORMATION], "f");
|
|
65
63
|
}
|
|
66
64
|
get reference() {
|
|
67
|
-
return __classPrivateFieldGet(this,
|
|
65
|
+
return __classPrivateFieldGet(this, _Program_reference, "f");
|
|
68
66
|
}
|
|
69
67
|
get name() {
|
|
70
|
-
return __classPrivateFieldGet(this,
|
|
68
|
+
return __classPrivateFieldGet(this, _Program_name, "f");
|
|
71
69
|
}
|
|
72
70
|
get associatedSubscriptionProgram() {
|
|
73
|
-
return __classPrivateFieldGet(this,
|
|
71
|
+
return __classPrivateFieldGet(this, _Program_associatedSubscriptionProgram, "f");
|
|
74
72
|
}
|
|
75
73
|
get logo() {
|
|
76
|
-
return __classPrivateFieldGet(this,
|
|
74
|
+
return __classPrivateFieldGet(this, _Program_logo, "f");
|
|
77
75
|
}
|
|
78
76
|
get category() {
|
|
79
|
-
return __classPrivateFieldGet(this,
|
|
77
|
+
return __classPrivateFieldGet(this, _Program_category, "f");
|
|
80
78
|
}
|
|
81
79
|
get links() {
|
|
82
|
-
return __classPrivateFieldGet(this,
|
|
80
|
+
return __classPrivateFieldGet(this, _Program_links, "f");
|
|
83
81
|
}
|
|
84
82
|
get extraInformation() {
|
|
85
|
-
return __classPrivateFieldGet(this,
|
|
83
|
+
return __classPrivateFieldGet(this, _Program_extraInformation, "f");
|
|
86
84
|
}
|
|
87
85
|
toJSON() {
|
|
88
86
|
return {
|
|
@@ -98,5 +96,5 @@ class Program extends abstractEntity_1.AbstractEntity {
|
|
|
98
96
|
}
|
|
99
97
|
}
|
|
100
98
|
exports.Program = Program;
|
|
101
|
-
|
|
99
|
+
_Program_reference = new WeakMap(), _Program_name = new WeakMap(), _Program_associatedSubscriptionProgram = new WeakMap(), _Program_logo = new WeakMap(), _Program_category = new WeakMap(), _Program_links = new WeakMap(), _Program_extraInformation = new WeakMap();
|
|
102
100
|
//# sourceMappingURL=program.js.map
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver,
|
|
3
|
-
if (
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
return value;
|
|
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;
|
|
8
7
|
};
|
|
9
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver,
|
|
10
|
-
if (!
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
return privateMap.get(receiver);
|
|
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);
|
|
14
12
|
};
|
|
15
|
-
var
|
|
13
|
+
var _Programs_list;
|
|
16
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
15
|
exports.Programs = void 0;
|
|
18
16
|
const abstractEntity_1 = require("../../abstractEntity");
|
|
@@ -20,16 +18,16 @@ const program_1 = require("./program");
|
|
|
20
18
|
class Programs extends abstractEntity_1.AbstractEntity {
|
|
21
19
|
constructor(input) {
|
|
22
20
|
super(input);
|
|
23
|
-
|
|
24
|
-
__classPrivateFieldSet(this,
|
|
21
|
+
_Programs_list.set(this, void 0);
|
|
22
|
+
__classPrivateFieldSet(this, _Programs_list, input.map((input) => new program_1.Program(input)), "f");
|
|
25
23
|
}
|
|
26
24
|
get list() {
|
|
27
|
-
return __classPrivateFieldGet(this,
|
|
25
|
+
return __classPrivateFieldGet(this, _Programs_list, "f");
|
|
28
26
|
}
|
|
29
27
|
toJSON() {
|
|
30
28
|
return this.list.map((item) => item.toJSON());
|
|
31
29
|
}
|
|
32
30
|
}
|
|
33
31
|
exports.Programs = Programs;
|
|
34
|
-
|
|
32
|
+
_Programs_list = new WeakMap();
|
|
35
33
|
//# sourceMappingURL=programs.js.map
|
package/build/catalog/index.d.ts
CHANGED
package/build/catalog/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
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);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -15,4 +19,6 @@ __exportStar(require("./catalogClient"), exports);
|
|
|
15
19
|
__exportStar(require("./types/catalogGraphQLTypes"), exports);
|
|
16
20
|
__exportStar(require("./entities/program"), exports);
|
|
17
21
|
__exportStar(require("./entities/programs"), exports);
|
|
22
|
+
__exportStar(require("./types/catalogGraphQLQueries"), exports);
|
|
23
|
+
__exportStar(require("./types/catalogGraphQLSchemas"), exports);
|
|
18
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { QueryArguments } from './queryArguments';
|
|
2
|
+
import { FiltersSchema, PaginationSchema, ProductSchema } from './catalogGraphQLSchemas';
|
|
3
|
+
export declare type CatalogQuery = {
|
|
4
|
+
getProducts: GetPaginatedProductsQuery;
|
|
5
|
+
};
|
|
6
|
+
export declare type GetPaginatedProductsQuery = {
|
|
7
|
+
__args: QueryArguments;
|
|
8
|
+
filters?: FiltersSchema;
|
|
9
|
+
pagination?: PaginationSchema;
|
|
10
|
+
products?: ProductSchema;
|
|
11
|
+
topOffers?: ProductSchema;
|
|
12
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { AttributeType, FiltersType, IdentifiersType, PaginationType, PriceBandType, PricesType, ProductType, RelatedOfferType } from './catalogGraphQLTypes';
|
|
2
|
+
import { Merge, Schema } from 'type-fest';
|
|
3
|
+
export declare type PaginationSchema = Schema<PaginationType, boolean>;
|
|
4
|
+
export declare type FiltersSchema = Schema<FiltersType, boolean>;
|
|
5
|
+
declare type IdentifiersSchema = Schema<IdentifiersType, boolean>;
|
|
6
|
+
declare type RelatedOfferSchema = Schema<RelatedOfferType, boolean>;
|
|
7
|
+
/**
|
|
8
|
+
* Field of type array are not handled by Schema, they must be overwritten
|
|
9
|
+
*/
|
|
10
|
+
declare type MissingFieldsOfProductSchema = {
|
|
11
|
+
addonPrimaries?: IdentifiersSchema;
|
|
12
|
+
baseOfferPrimaries?: IdentifiersSchema;
|
|
13
|
+
conversionOfferPrimaries?: IdentifiersSchema;
|
|
14
|
+
relatedOffers?: RelatedOfferSchema;
|
|
15
|
+
priceBand?: PriceBandSchema;
|
|
16
|
+
};
|
|
17
|
+
export declare type ProductSchema = Merge<Schema<ProductType, boolean>, MissingFieldsOfProductSchema>;
|
|
18
|
+
declare type AttributeSchema = Schema<AttributeType, boolean>;
|
|
19
|
+
/**
|
|
20
|
+
* Field of type array are not handled by Schema, they must be overwritten
|
|
21
|
+
*/
|
|
22
|
+
declare type MissingFieldsOfPriceBandSchema = {
|
|
23
|
+
attributes?: Array<AttributeSchema>;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* No type corresponding
|
|
27
|
+
*/
|
|
28
|
+
export declare type PriceBandSchema = Merge<Schema<PriceBandType, boolean>, MissingFieldsOfPriceBandSchema>;
|
|
29
|
+
export declare type PriceBandPriceSchema = Schema<PricesType, boolean>;
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* For field __args
|
|
3
|
+
*/
|
|
4
|
+
export declare type QueryArguments = {
|
|
5
|
+
paginate?: PaginateArgument;
|
|
6
|
+
searchBody: SearchBodyArgument;
|
|
7
|
+
};
|
|
8
|
+
export declare type PaginateArgument = {
|
|
9
|
+
page: number;
|
|
10
|
+
perPage: number;
|
|
11
|
+
};
|
|
12
|
+
export declare type SearchBodyArgument = {
|
|
13
|
+
aggregatorFilter?: string[];
|
|
14
|
+
endCustomerRef?: string;
|
|
15
|
+
exclusionFilters?: SearchFilterArgument[];
|
|
16
|
+
filters?: SearchFilterArgument[];
|
|
17
|
+
getFamilies?: boolean;
|
|
18
|
+
highlight?: boolean;
|
|
19
|
+
keywords?: string;
|
|
20
|
+
marketplace?: string;
|
|
21
|
+
quantity?: number;
|
|
22
|
+
resellerRef?: string;
|
|
23
|
+
restricted?: boolean;
|
|
24
|
+
sort?: SortArgument;
|
|
25
|
+
topOffers?: boolean;
|
|
26
|
+
};
|
|
27
|
+
export declare type SearchFilterArgument = {
|
|
28
|
+
name: string;
|
|
29
|
+
value: string | string[];
|
|
30
|
+
operator?: OperatorArgument;
|
|
31
|
+
filters?: SearchFilterArgument[];
|
|
32
|
+
};
|
|
33
|
+
export declare enum OperatorArgument {
|
|
34
|
+
OR = "OR",
|
|
35
|
+
AND = "AND",
|
|
36
|
+
BETWEEN = "BETWEEN"
|
|
37
|
+
}
|
|
38
|
+
export declare type SortArgument = {
|
|
39
|
+
name?: string;
|
|
40
|
+
order?: string;
|
|
41
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OperatorArgument = void 0;
|
|
4
|
+
var OperatorArgument;
|
|
5
|
+
(function (OperatorArgument) {
|
|
6
|
+
OperatorArgument["OR"] = "OR";
|
|
7
|
+
OperatorArgument["AND"] = "AND";
|
|
8
|
+
OperatorArgument["BETWEEN"] = "BETWEEN";
|
|
9
|
+
})(OperatorArgument = exports.OperatorArgument || (exports.OperatorArgument = {}));
|
|
10
|
+
//# sourceMappingURL=queryArguments.js.map
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver,
|
|
3
|
-
if (
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
return value;
|
|
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;
|
|
8
7
|
};
|
|
9
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver,
|
|
10
|
-
if (!
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
return privateMap.get(receiver);
|
|
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);
|
|
14
12
|
};
|
|
15
|
-
var
|
|
13
|
+
var _ConsumptionBI_currency, _ConsumptionBI_period, _ConsumptionBI_aggregate, _ConsumptionBI_metric, _ConsumptionBI_top;
|
|
16
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
15
|
exports.ConsumptionBI = exports.ConsumptionBIFields = void 0;
|
|
18
16
|
const abstractEntity_1 = require("../../../abstractEntity");
|
|
@@ -29,35 +27,35 @@ var ConsumptionBIFields;
|
|
|
29
27
|
class ConsumptionBI extends abstractEntity_1.AbstractEntity {
|
|
30
28
|
constructor(consumptionResponse) {
|
|
31
29
|
super(consumptionResponse);
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
__classPrivateFieldSet(this,
|
|
38
|
-
__classPrivateFieldSet(this,
|
|
30
|
+
_ConsumptionBI_currency.set(this, void 0);
|
|
31
|
+
_ConsumptionBI_period.set(this, void 0);
|
|
32
|
+
_ConsumptionBI_aggregate.set(this, void 0);
|
|
33
|
+
_ConsumptionBI_metric.set(this, void 0);
|
|
34
|
+
_ConsumptionBI_top.set(this, void 0);
|
|
35
|
+
__classPrivateFieldSet(this, _ConsumptionBI_currency, consumptionResponse[ConsumptionBIFields.COLUMN_CURRENCY], "f");
|
|
36
|
+
__classPrivateFieldSet(this, _ConsumptionBI_period, consumptionResponse[ConsumptionBIFields.COLUMN_PERIOD]
|
|
39
37
|
? new period_1.Period(consumptionResponse[ConsumptionBIFields.COLUMN_PERIOD])
|
|
40
|
-
: undefined);
|
|
41
|
-
__classPrivateFieldSet(this,
|
|
42
|
-
__classPrivateFieldSet(this,
|
|
43
|
-
__classPrivateFieldSet(this,
|
|
38
|
+
: undefined, "f");
|
|
39
|
+
__classPrivateFieldSet(this, _ConsumptionBI_aggregate, consumptionResponse[ConsumptionBIFields.COLUMN_AGGREGATE], "f");
|
|
40
|
+
__classPrivateFieldSet(this, _ConsumptionBI_metric, consumptionResponse[ConsumptionBIFields.COLUMN_METRIC], "f");
|
|
41
|
+
__classPrivateFieldSet(this, _ConsumptionBI_top, consumptionResponse[ConsumptionBIFields.COLUMN_TOP]
|
|
44
42
|
? consumptionResponse[ConsumptionBIFields.COLUMN_TOP].map((top) => new top_1.Top(top))
|
|
45
|
-
: undefined);
|
|
43
|
+
: undefined, "f");
|
|
46
44
|
}
|
|
47
45
|
get currency() {
|
|
48
|
-
return __classPrivateFieldGet(this,
|
|
46
|
+
return __classPrivateFieldGet(this, _ConsumptionBI_currency, "f");
|
|
49
47
|
}
|
|
50
48
|
get period() {
|
|
51
|
-
return __classPrivateFieldGet(this,
|
|
49
|
+
return __classPrivateFieldGet(this, _ConsumptionBI_period, "f");
|
|
52
50
|
}
|
|
53
51
|
get aggregate() {
|
|
54
|
-
return __classPrivateFieldGet(this,
|
|
52
|
+
return __classPrivateFieldGet(this, _ConsumptionBI_aggregate, "f");
|
|
55
53
|
}
|
|
56
54
|
get metric() {
|
|
57
|
-
return __classPrivateFieldGet(this,
|
|
55
|
+
return __classPrivateFieldGet(this, _ConsumptionBI_metric, "f");
|
|
58
56
|
}
|
|
59
57
|
get top() {
|
|
60
|
-
return __classPrivateFieldGet(this,
|
|
58
|
+
return __classPrivateFieldGet(this, _ConsumptionBI_top, "f");
|
|
61
59
|
}
|
|
62
60
|
toJSON() {
|
|
63
61
|
var _a, _b;
|
|
@@ -71,5 +69,5 @@ class ConsumptionBI extends abstractEntity_1.AbstractEntity {
|
|
|
71
69
|
}
|
|
72
70
|
}
|
|
73
71
|
exports.ConsumptionBI = ConsumptionBI;
|
|
74
|
-
|
|
72
|
+
_ConsumptionBI_currency = new WeakMap(), _ConsumptionBI_period = new WeakMap(), _ConsumptionBI_aggregate = new WeakMap(), _ConsumptionBI_metric = new WeakMap(), _ConsumptionBI_top = new WeakMap();
|
|
75
73
|
//# sourceMappingURL=consumptionBI.js.map
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver,
|
|
3
|
-
if (
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
return value;
|
|
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;
|
|
8
7
|
};
|
|
9
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver,
|
|
10
|
-
if (!
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
return privateMap.get(receiver);
|
|
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);
|
|
14
12
|
};
|
|
15
|
-
var
|
|
13
|
+
var _Period_from, _Period_to;
|
|
16
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
15
|
exports.Period = exports.PeriodFields = void 0;
|
|
18
16
|
const abstractEntity_1 = require("../../../../abstractEntity");
|
|
@@ -24,16 +22,16 @@ var PeriodFields;
|
|
|
24
22
|
class Period extends abstractEntity_1.AbstractEntity {
|
|
25
23
|
constructor(periodResponse) {
|
|
26
24
|
super(periodResponse);
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
__classPrivateFieldSet(this,
|
|
30
|
-
__classPrivateFieldSet(this,
|
|
25
|
+
_Period_from.set(this, void 0);
|
|
26
|
+
_Period_to.set(this, void 0);
|
|
27
|
+
__classPrivateFieldSet(this, _Period_from, periodResponse[PeriodFields.COLUMN_FROM], "f");
|
|
28
|
+
__classPrivateFieldSet(this, _Period_to, periodResponse[PeriodFields.COLUMN_TO], "f");
|
|
31
29
|
}
|
|
32
30
|
get from() {
|
|
33
|
-
return __classPrivateFieldGet(this,
|
|
31
|
+
return __classPrivateFieldGet(this, _Period_from, "f");
|
|
34
32
|
}
|
|
35
33
|
get to() {
|
|
36
|
-
return __classPrivateFieldGet(this,
|
|
34
|
+
return __classPrivateFieldGet(this, _Period_to, "f");
|
|
37
35
|
}
|
|
38
36
|
toJSON() {
|
|
39
37
|
return {
|
|
@@ -43,5 +41,5 @@ class Period extends abstractEntity_1.AbstractEntity {
|
|
|
43
41
|
}
|
|
44
42
|
}
|
|
45
43
|
exports.Period = Period;
|
|
46
|
-
|
|
44
|
+
_Period_from = new WeakMap(), _Period_to = new WeakMap();
|
|
47
45
|
//# sourceMappingURL=period.js.map
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver,
|
|
3
|
-
if (
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
return value;
|
|
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;
|
|
8
7
|
};
|
|
9
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver,
|
|
10
|
-
if (!
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
return privateMap.get(receiver);
|
|
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);
|
|
14
12
|
};
|
|
15
|
-
var
|
|
13
|
+
var _Top_rank, _Top_metric, _Top_name, _Top_ref;
|
|
16
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
15
|
exports.Top = exports.TopFields = void 0;
|
|
18
16
|
const abstractEntity_1 = require("../../../../abstractEntity");
|
|
@@ -26,26 +24,26 @@ var TopFields;
|
|
|
26
24
|
class Top extends abstractEntity_1.AbstractEntity {
|
|
27
25
|
constructor(topResponse) {
|
|
28
26
|
super(topResponse);
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
__classPrivateFieldSet(this,
|
|
34
|
-
__classPrivateFieldSet(this,
|
|
35
|
-
__classPrivateFieldSet(this,
|
|
36
|
-
__classPrivateFieldSet(this,
|
|
27
|
+
_Top_rank.set(this, void 0);
|
|
28
|
+
_Top_metric.set(this, void 0);
|
|
29
|
+
_Top_name.set(this, void 0);
|
|
30
|
+
_Top_ref.set(this, void 0);
|
|
31
|
+
__classPrivateFieldSet(this, _Top_rank, topResponse[TopFields.COLUMN_RANK], "f");
|
|
32
|
+
__classPrivateFieldSet(this, _Top_metric, topResponse[TopFields.COLUMN_METRIC], "f");
|
|
33
|
+
__classPrivateFieldSet(this, _Top_name, topResponse[TopFields.COLUMN_NAME], "f");
|
|
34
|
+
__classPrivateFieldSet(this, _Top_ref, topResponse[TopFields.COLUMN_REF], "f");
|
|
37
35
|
}
|
|
38
36
|
get rank() {
|
|
39
|
-
return __classPrivateFieldGet(this,
|
|
37
|
+
return __classPrivateFieldGet(this, _Top_rank, "f");
|
|
40
38
|
}
|
|
41
39
|
get metric() {
|
|
42
|
-
return __classPrivateFieldGet(this,
|
|
40
|
+
return __classPrivateFieldGet(this, _Top_metric, "f");
|
|
43
41
|
}
|
|
44
42
|
get name() {
|
|
45
|
-
return __classPrivateFieldGet(this,
|
|
43
|
+
return __classPrivateFieldGet(this, _Top_name, "f");
|
|
46
44
|
}
|
|
47
45
|
get ref() {
|
|
48
|
-
return __classPrivateFieldGet(this,
|
|
46
|
+
return __classPrivateFieldGet(this, _Top_ref, "f");
|
|
49
47
|
}
|
|
50
48
|
toJSON() {
|
|
51
49
|
return {
|
|
@@ -57,5 +55,5 @@ class Top extends abstractEntity_1.AbstractEntity {
|
|
|
57
55
|
}
|
|
58
56
|
}
|
|
59
57
|
exports.Top = Top;
|
|
60
|
-
|
|
58
|
+
_Top_rank = new WeakMap(), _Top_metric = new WeakMap(), _Top_name = new WeakMap(), _Top_ref = new WeakMap();
|
|
61
59
|
//# sourceMappingURL=top.js.map
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver,
|
|
3
|
-
if (
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
return value;
|
|
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;
|
|
8
7
|
};
|
|
9
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver,
|
|
10
|
-
if (!
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
return privateMap.get(receiver);
|
|
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);
|
|
14
12
|
};
|
|
15
|
-
var
|
|
13
|
+
var _Consumption_headers, _Consumption_lines;
|
|
16
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
15
|
exports.Consumption = exports.ConsumptionFields = void 0;
|
|
18
16
|
const abstractEntity_1 = require("../../../abstractEntity");
|
|
@@ -24,16 +22,16 @@ var ConsumptionFields;
|
|
|
24
22
|
class Consumption extends abstractEntity_1.AbstractEntity {
|
|
25
23
|
constructor(consumptionResponse) {
|
|
26
24
|
super(consumptionResponse);
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
__classPrivateFieldSet(this,
|
|
30
|
-
__classPrivateFieldSet(this,
|
|
25
|
+
_Consumption_headers.set(this, void 0);
|
|
26
|
+
_Consumption_lines.set(this, void 0);
|
|
27
|
+
__classPrivateFieldSet(this, _Consumption_headers, consumptionResponse[ConsumptionFields.COLUMN_HEADERS], "f");
|
|
28
|
+
__classPrivateFieldSet(this, _Consumption_lines, consumptionResponse[ConsumptionFields.COLUMN_LINES], "f");
|
|
31
29
|
}
|
|
32
30
|
get headers() {
|
|
33
|
-
return __classPrivateFieldGet(this,
|
|
31
|
+
return __classPrivateFieldGet(this, _Consumption_headers, "f");
|
|
34
32
|
}
|
|
35
33
|
get lines() {
|
|
36
|
-
return __classPrivateFieldGet(this,
|
|
34
|
+
return __classPrivateFieldGet(this, _Consumption_lines, "f");
|
|
37
35
|
}
|
|
38
36
|
toJSON() {
|
|
39
37
|
return {
|
|
@@ -43,5 +41,5 @@ class Consumption extends abstractEntity_1.AbstractEntity {
|
|
|
43
41
|
}
|
|
44
42
|
}
|
|
45
43
|
exports.Consumption = Consumption;
|
|
46
|
-
|
|
44
|
+
_Consumption_headers = new WeakMap(), _Consumption_lines = new WeakMap();
|
|
47
45
|
//# sourceMappingURL=consumption.js.map
|