@arrowsphere/api-client 3.26.0-rc.bjp.1 → 3.26.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 +6 -0
- package/build/abstractClient.d.ts +8 -1
- package/build/abstractEntity.js +16 -14
- package/build/axiosSingleton.js +2 -2
- package/build/campaign/entities/campaign/banners/banners.js +34 -32
- package/build/campaign/entities/campaign/campaign.js +53 -51
- package/build/campaign/entities/campaign/landingPage/landingPage.js +26 -24
- package/build/campaign/entities/campaign/landingPage/landingPageBody.js +37 -35
- package/build/campaign/entities/campaign/landingPage/landingPageFooter/landingPageFooter.js +31 -29
- package/build/campaign/entities/campaign/landingPage/landingPageFooter/landingPageFooterFeature.js +25 -23
- package/build/campaign/entities/campaign/landingPage/landingPageHeader.js +31 -29
- package/build/campaign/entities/campaign/rules/rules.js +31 -29
- package/build/campaign/entities/campaignAssets/assets/assets.js +19 -17
- package/build/campaign/entities/campaignAssets/campaignAssets.js +16 -14
- package/build/campaign/entities/v2/campaign/banner/banner.js +34 -32
- package/build/campaign/entities/v2/campaign/campaign.js +50 -48
- package/build/campaign/entities/v2/campaign/landingPage/landingPage.js +26 -24
- package/build/campaign/entities/v2/campaign/landingPage/landingPageFooter/landingPageFooter.js +36 -34
- package/build/campaign/entities/v2/campaign/landingPage/landingPageFooter/landingPageFooterFeature.js +22 -20
- package/build/campaign/entities/v2/campaign/landingPage/landingPageFooter/landingPageFooterFeatureItem.js +34 -32
- package/build/campaign/entities/v2/campaign/landingPage/landingPageHeader.js +34 -32
- package/build/campaign/entities/v2/campaignList.js +16 -14
- package/build/campaign/index.js +1 -5
- package/build/cart/entities/index.js +1 -5
- package/build/cart/entities/item.js +28 -26
- package/build/cart/entities/itemList.js +16 -14
- package/build/cart/index.js +1 -5
- package/build/catalog/catalogGraphQLClient.d.ts +0 -2
- package/build/catalog/catalogGraphQLClient.js +1 -7
- package/build/catalog/index.js +1 -5
- package/build/catalog/types/catalogGraphQLTypes.js +0 -1
- package/build/consumption/entities/bi/consumptionBI.js +30 -28
- package/build/consumption/entities/bi/period/period.js +19 -17
- package/build/consumption/entities/bi/top/top.js +25 -23
- package/build/consumption/entities/consumption/consumption.js +19 -17
- package/build/consumption/index.js +1 -5
- package/build/contact/entities/contact.js +46 -44
- package/build/contact/entities/contactCreate.js +16 -14
- package/build/contact/entities/contactList.js +16 -14
- package/build/contact/index.js +1 -5
- package/build/customers/entities/customers/contact/contact.js +31 -29
- package/build/customers/entities/customers/customer.js +73 -71
- package/build/customers/entities/customers/customerContact/customerContact.js +40 -38
- package/build/customers/entities/customers/customerContact/customerContactList.js +16 -14
- package/build/customers/entities/customers/details/details.js +31 -29
- package/build/customers/entities/dataCustomers.js +16 -14
- package/build/customers/entities/dataInvitation.js +31 -29
- package/build/customers/entities/invitations/company/company.js +16 -14
- package/build/customers/entities/invitations/contact/invitationContact.js +28 -26
- package/build/customers/index.js +1 -5
- package/build/exception/index.js +1 -5
- package/build/general/entities/whoAmI.js +61 -59
- package/build/general/index.js +1 -5
- package/build/getResult.js +23 -21
- package/build/index.d.ts +1 -0
- package/build/index.js +2 -5
- package/build/licenses/entities/filterFindResult.js +19 -17
- package/build/licenses/entities/findResult.js +38 -36
- package/build/licenses/entities/getLicense/actionMessagesGetResult.js +28 -26
- package/build/licenses/entities/getLicense/actionsGetResult.js +43 -41
- package/build/licenses/entities/getLicense/buySellFindResult.js +19 -17
- package/build/licenses/entities/getLicense/licenseGetResult.js +107 -105
- package/build/licenses/entities/getLicense/licensePriceGetResult.js +22 -20
- package/build/licenses/entities/getLicense/orderGetResult.js +19 -17
- package/build/licenses/entities/getResult/getLicenseResult.js +16 -14
- package/build/licenses/entities/history/actionHistoryResult.js +25 -23
- package/build/licenses/entities/history/licenceHistoryResult.js +16 -14
- package/build/licenses/entities/license/activeSeatsFindResult.js +19 -17
- package/build/licenses/entities/license/configFindResult.js +22 -20
- package/build/licenses/entities/license/licenseFindResult.js +136 -134
- package/build/licenses/entities/license/priceFindResult.js +28 -26
- package/build/licenses/entities/license/warningFindResult.js +19 -17
- package/build/licenses/entities/offer/actionFlagsFindResult.js +22 -20
- package/build/licenses/entities/offer/offerFindResult.js +34 -32
- package/build/licenses/entities/offer/priceBandFindResult.js +37 -35
- package/build/licenses/entities/offer/priceband/billingFindResult.js +22 -20
- package/build/licenses/entities/offer/priceband/identifiers/arrowsphereFindResult.js +16 -14
- package/build/licenses/entities/offer/priceband/identifiersFindResult.js +16 -14
- package/build/licenses/entities/offer/priceband/priceBandActionFlagsFindResult.js +28 -26
- package/build/licenses/entities/offer/priceband/priceBandPriceFindResult.js +22 -20
- package/build/licenses/entities/offer/priceband/saleConstraintsFindResult.js +19 -17
- package/build/licenses/index.js +1 -5
- package/build/orders/entities/dataListOrders.js +16 -14
- package/build/orders/entities/orders/order.js +41 -39
- package/build/orders/entities/orders/partner/partner.js +19 -17
- package/build/orders/entities/orders/products/identifiers/productIdentifiers.js +16 -14
- package/build/orders/entities/orders/products/identifiers/vendor/identifiersVendor.js +16 -14
- package/build/orders/entities/orders/products/prices/productPrices.js +34 -32
- package/build/orders/entities/orders/products/products.js +58 -56
- package/build/orders/entities/orders/products/program/productProgram.js +16 -14
- package/build/orders/entities/referenceLink.js +19 -17
- package/build/orders/index.js +1 -5
- package/build/pagination.js +31 -29
- package/build/publicApiClient.d.ts +2 -0
- package/build/publicApiClient.js +7 -0
- package/build/security/index.js +1 -5
- package/build/security/register/entity/registrationLink.js +16 -14
- package/build/security/register/index.js +1 -5
- package/build/security/standards/entities/checks/checks.js +19 -17
- package/build/security/standards/entities/checks/securityChecks.js +40 -38
- package/build/security/standards/entities/resources/resources.js +28 -26
- package/build/security/standards/entities/resources/securityResources.js +19 -17
- package/build/security/standards/entities/standards/securityStandards.js +31 -29
- package/build/security/standards/entities/standards/standards.js +19 -17
- package/build/security/standards/index.js +1 -5
- package/build/shared/index.js +1 -5
- package/build/subscriptions/entities/subscription.js +58 -56
- package/build/subscriptions/entities/subscriptionsListResult.js +41 -39
- package/build/subscriptions/index.js +1 -5
- package/build/supportCenter/entities/issue/attachment.d.ts +29 -0
- package/build/supportCenter/entities/issue/attachment.js +76 -0
- package/build/supportCenter/entities/issue/comment.d.ts +30 -0
- package/build/supportCenter/entities/issue/comment.js +82 -0
- package/build/supportCenter/entities/issue/issue.d.ts +142 -0
- package/build/supportCenter/entities/issue/issue.js +315 -0
- package/build/supportCenter/entities/topic.d.ts +32 -0
- package/build/supportCenter/entities/topic.js +83 -0
- package/build/supportCenter/index.d.ts +8 -0
- package/build/supportCenter/index.js +21 -0
- package/build/supportCenter/payloads/attachment.d.ts +6 -0
- package/build/supportCenter/payloads/attachment.js +4 -0
- package/build/supportCenter/payloads/comment.d.ts +6 -0
- package/build/supportCenter/payloads/comment.js +4 -0
- package/build/supportCenter/payloads/issue.d.ts +32 -0
- package/build/supportCenter/payloads/issue.js +16 -0
- package/build/supportCenter/supportCenterClient.d.ts +42 -0
- package/build/supportCenter/supportCenterClient.js +68 -0
- package/package.json +3 -6
- package/build/catalog/types/catalogGraphQLQueries.d.ts +0 -12
- package/build/catalog/types/catalogGraphQLQueries.js +0 -3
- package/build/catalog/types/catalogGraphQLSchemas.d.ts +0 -30
- package/build/catalog/types/catalogGraphQLSchemas.js +0 -4
- package/build/catalog/types/queryArguments.d.ts +0 -42
- package/build/catalog/types/queryArguments.js +0 -9
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver,
|
|
3
|
-
if (
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, privateMap, value) {
|
|
3
|
+
if (!privateMap.has(receiver)) {
|
|
4
|
+
throw new TypeError("attempted to set private field on non-instance");
|
|
5
|
+
}
|
|
6
|
+
privateMap.set(receiver, value);
|
|
7
|
+
return value;
|
|
7
8
|
};
|
|
8
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver,
|
|
9
|
-
if (
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, privateMap) {
|
|
10
|
+
if (!privateMap.has(receiver)) {
|
|
11
|
+
throw new TypeError("attempted to get private field on non-instance");
|
|
12
|
+
}
|
|
13
|
+
return privateMap.get(receiver);
|
|
12
14
|
};
|
|
13
|
-
var
|
|
15
|
+
var _companyName, _addressLine1, _addressLine2, _zip, _city, _countryCode, _state, _receptionPhone, _websiteUrl, _emailContact, _headcount, _taxNumber, _reference, _ref, _billingId, _internalReference;
|
|
14
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
17
|
exports.WhoAmI = exports.WhoAmIResponseFields = void 0;
|
|
16
18
|
const abstractEntity_1 = require("../../abstractEntity");
|
|
@@ -60,86 +62,86 @@ class WhoAmI extends abstractEntity_1.AbstractEntity {
|
|
|
60
62
|
[WhoAmIResponseFields.COLUMN_BILLING_ID]: 'present',
|
|
61
63
|
[WhoAmIResponseFields.COLUMN_INTERNAL_REFERENCE]: 'present',
|
|
62
64
|
};
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
__classPrivateFieldSet(this,
|
|
80
|
-
__classPrivateFieldSet(this,
|
|
81
|
-
__classPrivateFieldSet(this,
|
|
82
|
-
__classPrivateFieldSet(this,
|
|
83
|
-
__classPrivateFieldSet(this,
|
|
84
|
-
__classPrivateFieldSet(this,
|
|
85
|
-
__classPrivateFieldSet(this,
|
|
86
|
-
__classPrivateFieldSet(this,
|
|
87
|
-
__classPrivateFieldSet(this,
|
|
88
|
-
__classPrivateFieldSet(this,
|
|
89
|
-
__classPrivateFieldSet(this,
|
|
90
|
-
__classPrivateFieldSet(this,
|
|
91
|
-
__classPrivateFieldSet(this,
|
|
92
|
-
__classPrivateFieldSet(this,
|
|
93
|
-
__classPrivateFieldSet(this,
|
|
94
|
-
__classPrivateFieldSet(this,
|
|
65
|
+
_companyName.set(this, void 0);
|
|
66
|
+
_addressLine1.set(this, void 0);
|
|
67
|
+
_addressLine2.set(this, void 0);
|
|
68
|
+
_zip.set(this, void 0);
|
|
69
|
+
_city.set(this, void 0);
|
|
70
|
+
_countryCode.set(this, void 0);
|
|
71
|
+
_state.set(this, void 0);
|
|
72
|
+
_receptionPhone.set(this, void 0);
|
|
73
|
+
_websiteUrl.set(this, void 0);
|
|
74
|
+
_emailContact.set(this, void 0);
|
|
75
|
+
_headcount.set(this, void 0);
|
|
76
|
+
_taxNumber.set(this, void 0);
|
|
77
|
+
_reference.set(this, void 0);
|
|
78
|
+
_ref.set(this, void 0);
|
|
79
|
+
_billingId.set(this, void 0);
|
|
80
|
+
_internalReference.set(this, void 0);
|
|
81
|
+
__classPrivateFieldSet(this, _companyName, data[WhoAmIResponseFields.COLUMN_COMPANY_NAME]);
|
|
82
|
+
__classPrivateFieldSet(this, _addressLine1, data[WhoAmIResponseFields.COLUMN_ADDRESS_LINE_1]);
|
|
83
|
+
__classPrivateFieldSet(this, _addressLine2, data[WhoAmIResponseFields.COLUMN_ADDRESS_LINE_2]);
|
|
84
|
+
__classPrivateFieldSet(this, _zip, data[WhoAmIResponseFields.COLUMN_ZIP]);
|
|
85
|
+
__classPrivateFieldSet(this, _city, data[WhoAmIResponseFields.COLUMN_CITY]);
|
|
86
|
+
__classPrivateFieldSet(this, _countryCode, data[WhoAmIResponseFields.COLUMN_COUNTRY_CODE]);
|
|
87
|
+
__classPrivateFieldSet(this, _state, data[WhoAmIResponseFields.COLUMN_STATE]);
|
|
88
|
+
__classPrivateFieldSet(this, _receptionPhone, data[WhoAmIResponseFields.COLUMN_RECEPTION_PHONE]);
|
|
89
|
+
__classPrivateFieldSet(this, _websiteUrl, data[WhoAmIResponseFields.COLUMN_WEBSITE_URL]);
|
|
90
|
+
__classPrivateFieldSet(this, _emailContact, data[WhoAmIResponseFields.COLUMN_EMAIL_CONTACT]);
|
|
91
|
+
__classPrivateFieldSet(this, _headcount, data[WhoAmIResponseFields.COLUMN_HEADCOUNT]);
|
|
92
|
+
__classPrivateFieldSet(this, _taxNumber, data[WhoAmIResponseFields.COLUMN_TAX_NUMBER]);
|
|
93
|
+
__classPrivateFieldSet(this, _reference, data[WhoAmIResponseFields.COLUMN_REFERENCE]);
|
|
94
|
+
__classPrivateFieldSet(this, _ref, data[WhoAmIResponseFields.COLUMN_REF]);
|
|
95
|
+
__classPrivateFieldSet(this, _billingId, data[WhoAmIResponseFields.COLUMN_BILLING_ID]);
|
|
96
|
+
__classPrivateFieldSet(this, _internalReference, data[WhoAmIResponseFields.COLUMN_INTERNAL_REFERENCE]);
|
|
95
97
|
}
|
|
96
98
|
getCompanyName() {
|
|
97
|
-
return __classPrivateFieldGet(this,
|
|
99
|
+
return __classPrivateFieldGet(this, _companyName);
|
|
98
100
|
}
|
|
99
101
|
getAddressLine1() {
|
|
100
|
-
return __classPrivateFieldGet(this,
|
|
102
|
+
return __classPrivateFieldGet(this, _addressLine1);
|
|
101
103
|
}
|
|
102
104
|
getAddressLine2() {
|
|
103
|
-
return __classPrivateFieldGet(this,
|
|
105
|
+
return __classPrivateFieldGet(this, _addressLine2);
|
|
104
106
|
}
|
|
105
107
|
getZip() {
|
|
106
|
-
return __classPrivateFieldGet(this,
|
|
108
|
+
return __classPrivateFieldGet(this, _zip);
|
|
107
109
|
}
|
|
108
110
|
getCity() {
|
|
109
|
-
return __classPrivateFieldGet(this,
|
|
111
|
+
return __classPrivateFieldGet(this, _city);
|
|
110
112
|
}
|
|
111
113
|
getCountryCode() {
|
|
112
|
-
return __classPrivateFieldGet(this,
|
|
114
|
+
return __classPrivateFieldGet(this, _countryCode);
|
|
113
115
|
}
|
|
114
116
|
getState() {
|
|
115
|
-
return __classPrivateFieldGet(this,
|
|
117
|
+
return __classPrivateFieldGet(this, _state);
|
|
116
118
|
}
|
|
117
119
|
getReceptionPhone() {
|
|
118
|
-
return __classPrivateFieldGet(this,
|
|
120
|
+
return __classPrivateFieldGet(this, _receptionPhone);
|
|
119
121
|
}
|
|
120
122
|
getWebsiteUrl() {
|
|
121
|
-
return __classPrivateFieldGet(this,
|
|
123
|
+
return __classPrivateFieldGet(this, _websiteUrl);
|
|
122
124
|
}
|
|
123
125
|
getEmailContact() {
|
|
124
|
-
return __classPrivateFieldGet(this,
|
|
126
|
+
return __classPrivateFieldGet(this, _emailContact);
|
|
125
127
|
}
|
|
126
128
|
getHeadcount() {
|
|
127
|
-
return __classPrivateFieldGet(this,
|
|
129
|
+
return __classPrivateFieldGet(this, _headcount);
|
|
128
130
|
}
|
|
129
131
|
getTaxNumber() {
|
|
130
|
-
return __classPrivateFieldGet(this,
|
|
132
|
+
return __classPrivateFieldGet(this, _taxNumber);
|
|
131
133
|
}
|
|
132
134
|
getReference() {
|
|
133
|
-
return __classPrivateFieldGet(this,
|
|
135
|
+
return __classPrivateFieldGet(this, _reference);
|
|
134
136
|
}
|
|
135
137
|
getRef() {
|
|
136
|
-
return __classPrivateFieldGet(this,
|
|
138
|
+
return __classPrivateFieldGet(this, _ref);
|
|
137
139
|
}
|
|
138
140
|
getBillingId() {
|
|
139
|
-
return __classPrivateFieldGet(this,
|
|
141
|
+
return __classPrivateFieldGet(this, _billingId);
|
|
140
142
|
}
|
|
141
143
|
getInternalReference() {
|
|
142
|
-
return __classPrivateFieldGet(this,
|
|
144
|
+
return __classPrivateFieldGet(this, _internalReference);
|
|
143
145
|
}
|
|
144
146
|
/**
|
|
145
147
|
* Returns the raw JSON properties
|
|
@@ -167,5 +169,5 @@ class WhoAmI extends abstractEntity_1.AbstractEntity {
|
|
|
167
169
|
}
|
|
168
170
|
}
|
|
169
171
|
exports.WhoAmI = WhoAmI;
|
|
170
|
-
|
|
172
|
+
_companyName = new WeakMap(), _addressLine1 = new WeakMap(), _addressLine2 = new WeakMap(), _zip = new WeakMap(), _city = new WeakMap(), _countryCode = new WeakMap(), _state = new WeakMap(), _receptionPhone = new WeakMap(), _websiteUrl = new WeakMap(), _emailContact = new WeakMap(), _headcount = new WeakMap(), _taxNumber = new WeakMap(), _reference = new WeakMap(), _ref = new WeakMap(), _billingId = new WeakMap(), _internalReference = new WeakMap();
|
|
171
173
|
//# sourceMappingURL=whoAmI.js.map
|
package/build/general/index.js
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
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
|
-
|
|
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);
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
9
5
|
}) : (function(o, m, k, k2) {
|
|
10
6
|
if (k2 === undefined) k2 = k;
|
|
11
7
|
o[k2] = m[k];
|
package/build/getResult.js
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver,
|
|
3
|
-
if (
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, privateMap, value) {
|
|
3
|
+
if (!privateMap.has(receiver)) {
|
|
4
|
+
throw new TypeError("attempted to set private field on non-instance");
|
|
5
|
+
}
|
|
6
|
+
privateMap.set(receiver, value);
|
|
7
|
+
return value;
|
|
7
8
|
};
|
|
8
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver,
|
|
9
|
-
if (
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, privateMap) {
|
|
10
|
+
if (!privateMap.has(receiver)) {
|
|
11
|
+
throw new TypeError("attempted to get private field on non-instance");
|
|
12
|
+
}
|
|
13
|
+
return privateMap.get(receiver);
|
|
12
14
|
};
|
|
13
|
-
var
|
|
15
|
+
var _status, _data, _pagination;
|
|
14
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
17
|
exports.GetResult = exports.GetResultFields = void 0;
|
|
16
18
|
const abstractEntity_1 = require("./abstractEntity");
|
|
@@ -28,23 +30,23 @@ var GetResultFields;
|
|
|
28
30
|
class GetResult extends abstractEntity_1.AbstractEntity {
|
|
29
31
|
constructor(cls, getResultDataInput) {
|
|
30
32
|
super(getResultDataInput);
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
__classPrivateFieldSet(this,
|
|
35
|
-
__classPrivateFieldSet(this,
|
|
36
|
-
__classPrivateFieldSet(this,
|
|
33
|
+
_status.set(this, void 0);
|
|
34
|
+
_data.set(this, void 0);
|
|
35
|
+
_pagination.set(this, void 0);
|
|
36
|
+
__classPrivateFieldSet(this, _status, getResultDataInput[GetResultFields.COLUMN_STATUS]);
|
|
37
|
+
__classPrivateFieldSet(this, _data, new cls(getResultDataInput[GetResultFields.COLUMN_DATA]));
|
|
38
|
+
__classPrivateFieldSet(this, _pagination, getResultDataInput[GetResultFields.COLUMN_PAGINATION]
|
|
37
39
|
? new pagination_1.Pagination(getResultDataInput[GetResultFields.COLUMN_PAGINATION])
|
|
38
|
-
: undefined
|
|
40
|
+
: undefined);
|
|
39
41
|
}
|
|
40
42
|
get status() {
|
|
41
|
-
return __classPrivateFieldGet(this,
|
|
43
|
+
return __classPrivateFieldGet(this, _status);
|
|
42
44
|
}
|
|
43
45
|
get data() {
|
|
44
|
-
return __classPrivateFieldGet(this,
|
|
46
|
+
return __classPrivateFieldGet(this, _data);
|
|
45
47
|
}
|
|
46
48
|
get pagination() {
|
|
47
|
-
return __classPrivateFieldGet(this,
|
|
49
|
+
return __classPrivateFieldGet(this, _pagination);
|
|
48
50
|
}
|
|
49
51
|
toJSON() {
|
|
50
52
|
var _a;
|
|
@@ -56,5 +58,5 @@ class GetResult extends abstractEntity_1.AbstractEntity {
|
|
|
56
58
|
}
|
|
57
59
|
}
|
|
58
60
|
exports.GetResult = GetResult;
|
|
59
|
-
|
|
61
|
+
_status = new WeakMap(), _data = new WeakMap(), _pagination = new WeakMap();
|
|
60
62
|
//# sourceMappingURL=getResult.js.map
|
package/build/index.d.ts
CHANGED
package/build/index.js
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
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
|
-
|
|
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);
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
9
5
|
}) : (function(o, m, k, k2) {
|
|
10
6
|
if (k2 === undefined) k2 = k;
|
|
11
7
|
o[k2] = m[k];
|
|
@@ -47,6 +43,7 @@ __exportStar(require("./publicGraphQLClient"), exports);
|
|
|
47
43
|
__exportStar(require("./shared/"), exports);
|
|
48
44
|
__exportStar(require("./security/"), exports);
|
|
49
45
|
__exportStar(require("./subscriptions/"), exports);
|
|
46
|
+
__exportStar(require("./supportCenter/"), exports);
|
|
50
47
|
const ContactInformation = __importStar(require("./contact"));
|
|
51
48
|
exports.ContactInformation = ContactInformation;
|
|
52
49
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver,
|
|
3
|
-
if (
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, privateMap, value) {
|
|
3
|
+
if (!privateMap.has(receiver)) {
|
|
4
|
+
throw new TypeError("attempted to set private field on non-instance");
|
|
5
|
+
}
|
|
6
|
+
privateMap.set(receiver, value);
|
|
7
|
+
return value;
|
|
7
8
|
};
|
|
8
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver,
|
|
9
|
-
if (
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, privateMap) {
|
|
10
|
+
if (!privateMap.has(receiver)) {
|
|
11
|
+
throw new TypeError("attempted to get private field on non-instance");
|
|
12
|
+
}
|
|
13
|
+
return privateMap.get(receiver);
|
|
12
14
|
};
|
|
13
|
-
var
|
|
15
|
+
var _name, _values;
|
|
14
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
17
|
exports.FilterFindResult = exports.FilterFindFields = void 0;
|
|
16
18
|
const abstractEntity_1 = require("../../abstractEntity");
|
|
@@ -33,22 +35,22 @@ class FilterFindResult extends abstractEntity_1.AbstractEntity {
|
|
|
33
35
|
*/
|
|
34
36
|
constructor(data) {
|
|
35
37
|
super(data);
|
|
36
|
-
|
|
37
|
-
|
|
38
|
+
_name.set(this, void 0);
|
|
39
|
+
_values.set(this, void 0);
|
|
38
40
|
this.VALIDATION_RULES = {
|
|
39
41
|
[FilterFindFields.COLUMN_NAME]: 'present',
|
|
40
42
|
[FilterFindFields.COLUMN_VALUES]: 'present|array',
|
|
41
43
|
[`${FilterFindFields.COLUMN_VALUES}.*.value`]: 'present',
|
|
42
44
|
[`${FilterFindFields.COLUMN_VALUES}.*.count`]: 'required|numeric',
|
|
43
45
|
};
|
|
44
|
-
__classPrivateFieldSet(this,
|
|
45
|
-
__classPrivateFieldSet(this,
|
|
46
|
+
__classPrivateFieldSet(this, _name, data['name']);
|
|
47
|
+
__classPrivateFieldSet(this, _values, data['values']);
|
|
46
48
|
}
|
|
47
49
|
get name() {
|
|
48
|
-
return __classPrivateFieldGet(this,
|
|
50
|
+
return __classPrivateFieldGet(this, _name);
|
|
49
51
|
}
|
|
50
52
|
get values() {
|
|
51
|
-
return __classPrivateFieldGet(this,
|
|
53
|
+
return __classPrivateFieldGet(this, _values);
|
|
52
54
|
}
|
|
53
55
|
/**
|
|
54
56
|
* Plain JSON object representation of the filter entity.
|
|
@@ -62,5 +64,5 @@ class FilterFindResult extends abstractEntity_1.AbstractEntity {
|
|
|
62
64
|
}
|
|
63
65
|
}
|
|
64
66
|
exports.FilterFindResult = FilterFindResult;
|
|
65
|
-
|
|
67
|
+
_name = new WeakMap(), _values = new WeakMap();
|
|
66
68
|
//# sourceMappingURL=filterFindResult.js.map
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver,
|
|
3
|
-
if (
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, privateMap, value) {
|
|
3
|
+
if (!privateMap.has(receiver)) {
|
|
4
|
+
throw new TypeError("attempted to set private field on non-instance");
|
|
5
|
+
}
|
|
6
|
+
privateMap.set(receiver, value);
|
|
7
|
+
return value;
|
|
7
8
|
};
|
|
8
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver,
|
|
9
|
-
if (
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, privateMap) {
|
|
10
|
+
if (!privateMap.has(receiver)) {
|
|
11
|
+
throw new TypeError("attempted to get private field on non-instance");
|
|
12
|
+
}
|
|
13
|
+
return privateMap.get(receiver);
|
|
12
14
|
};
|
|
13
|
-
var
|
|
15
|
+
var _results, _filters, _client, _postData, _parameters, _currentPage, _totalPage, _nbResults;
|
|
14
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
17
|
exports.FindResult = void 0;
|
|
16
18
|
const licenseFindResult_1 = require("./license/licenseFindResult");
|
|
@@ -28,34 +30,34 @@ class FindResult extends abstractEntity_1.AbstractEntity {
|
|
|
28
30
|
*/
|
|
29
31
|
constructor(data, client, postData = {}, parameters = {}) {
|
|
30
32
|
super(data);
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
__classPrivateFieldSet(this,
|
|
40
|
-
__classPrivateFieldSet(this,
|
|
41
|
-
__classPrivateFieldSet(this,
|
|
42
|
-
__classPrivateFieldSet(this,
|
|
43
|
-
__classPrivateFieldSet(this,
|
|
44
|
-
__classPrivateFieldSet(this,
|
|
45
|
-
__classPrivateFieldSet(this,
|
|
33
|
+
_results.set(this, void 0);
|
|
34
|
+
_filters.set(this, void 0);
|
|
35
|
+
_client.set(this, void 0);
|
|
36
|
+
_postData.set(this, void 0);
|
|
37
|
+
_parameters.set(this, void 0);
|
|
38
|
+
_currentPage.set(this, void 0);
|
|
39
|
+
_totalPage.set(this, void 0);
|
|
40
|
+
_nbResults.set(this, void 0);
|
|
41
|
+
__classPrivateFieldSet(this, _client, client);
|
|
42
|
+
__classPrivateFieldSet(this, _postData, postData);
|
|
43
|
+
__classPrivateFieldSet(this, _parameters, parameters);
|
|
44
|
+
__classPrivateFieldSet(this, _currentPage, data.pagination.currentPage);
|
|
45
|
+
__classPrivateFieldSet(this, _totalPage, data.pagination.totalPage);
|
|
46
|
+
__classPrivateFieldSet(this, _nbResults, data.pagination.total);
|
|
47
|
+
__classPrivateFieldSet(this, _results, data.results.map((result) => ({
|
|
46
48
|
license: new licenseFindResult_1.LicenseFindResult(result.license).toJSON(),
|
|
47
49
|
offer: result.offer
|
|
48
50
|
? new offerFindResult_1.OfferFindResult(result.offer).toJSON()
|
|
49
51
|
: undefined,
|
|
50
|
-
}))
|
|
51
|
-
__classPrivateFieldSet(this,
|
|
52
|
+
})));
|
|
53
|
+
__classPrivateFieldSet(this, _filters, data.filters.map((filter) => new filterFindResult_1.FilterFindResult(filter).toJSON()));
|
|
52
54
|
}
|
|
53
55
|
/**
|
|
54
56
|
* Gets all the licenses for the current page
|
|
55
57
|
* @returns Generator|{@link LicenseFindResult}[]
|
|
56
58
|
*/
|
|
57
59
|
*getResultsForCurrentPage() {
|
|
58
|
-
yield* __classPrivateFieldGet(this,
|
|
60
|
+
yield* __classPrivateFieldGet(this, _results);
|
|
59
61
|
}
|
|
60
62
|
/**
|
|
61
63
|
* Gets all the licenses from the result, page per page.
|
|
@@ -66,11 +68,11 @@ class FindResult extends abstractEntity_1.AbstractEntity {
|
|
|
66
68
|
// First yield the offers we already got in the response from the first page
|
|
67
69
|
yield* this.getResultsForCurrentPage();
|
|
68
70
|
// Then parse the other pages... if there are more
|
|
69
|
-
let currentPage = __classPrivateFieldGet(this,
|
|
70
|
-
let lastPage = __classPrivateFieldGet(this,
|
|
71
|
+
let currentPage = __classPrivateFieldGet(this, _currentPage) + 1;
|
|
72
|
+
let lastPage = __classPrivateFieldGet(this, _totalPage) < currentPage;
|
|
71
73
|
while (!lastPage) {
|
|
72
|
-
__classPrivateFieldGet(this,
|
|
73
|
-
const data = await __classPrivateFieldGet(this,
|
|
74
|
+
__classPrivateFieldGet(this, _client).setPage(currentPage);
|
|
75
|
+
const data = await __classPrivateFieldGet(this, _client).findRaw(__classPrivateFieldGet(this, _postData), __classPrivateFieldGet(this, _parameters));
|
|
74
76
|
if (data.pagination.totalPage <= currentPage) {
|
|
75
77
|
lastPage = true;
|
|
76
78
|
}
|
|
@@ -89,13 +91,13 @@ class FindResult extends abstractEntity_1.AbstractEntity {
|
|
|
89
91
|
return this.getResults();
|
|
90
92
|
}
|
|
91
93
|
get filters() {
|
|
92
|
-
return __classPrivateFieldGet(this,
|
|
94
|
+
return __classPrivateFieldGet(this, _filters);
|
|
93
95
|
}
|
|
94
96
|
get nbResults() {
|
|
95
|
-
return __classPrivateFieldGet(this,
|
|
97
|
+
return __classPrivateFieldGet(this, _nbResults);
|
|
96
98
|
}
|
|
97
99
|
get totalPage() {
|
|
98
|
-
return __classPrivateFieldGet(this,
|
|
100
|
+
return __classPrivateFieldGet(this, _totalPage);
|
|
99
101
|
}
|
|
100
102
|
/**
|
|
101
103
|
* Plain JSON object representation of the result entity.
|
|
@@ -111,5 +113,5 @@ class FindResult extends abstractEntity_1.AbstractEntity {
|
|
|
111
113
|
}
|
|
112
114
|
}
|
|
113
115
|
exports.FindResult = FindResult;
|
|
114
|
-
|
|
116
|
+
_results = new WeakMap(), _filters = new WeakMap(), _client = new WeakMap(), _postData = new WeakMap(), _parameters = new WeakMap(), _currentPage = new WeakMap(), _totalPage = new WeakMap(), _nbResults = new WeakMap();
|
|
115
117
|
//# sourceMappingURL=findResult.js.map
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver,
|
|
3
|
-
if (
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, privateMap, value) {
|
|
3
|
+
if (!privateMap.has(receiver)) {
|
|
4
|
+
throw new TypeError("attempted to set private field on non-instance");
|
|
5
|
+
}
|
|
6
|
+
privateMap.set(receiver, value);
|
|
7
|
+
return value;
|
|
7
8
|
};
|
|
8
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver,
|
|
9
|
-
if (
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, privateMap) {
|
|
10
|
+
if (!privateMap.has(receiver)) {
|
|
11
|
+
throw new TypeError("attempted to get private field on non-instance");
|
|
12
|
+
}
|
|
13
|
+
return privateMap.get(receiver);
|
|
12
14
|
};
|
|
13
|
-
var
|
|
15
|
+
var _action, _message, _maxDecrease, _supportedUntil, _suspendDate;
|
|
14
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
17
|
exports.ActionMessagesGetResult = exports.ActionMessagesGetResultFields = void 0;
|
|
16
18
|
const abstractEntity_1 = require("../../../abstractEntity");
|
|
@@ -25,31 +27,31 @@ var ActionMessagesGetResultFields;
|
|
|
25
27
|
class ActionMessagesGetResult extends abstractEntity_1.AbstractEntity {
|
|
26
28
|
constructor(data) {
|
|
27
29
|
super(data);
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
__classPrivateFieldSet(this,
|
|
34
|
-
__classPrivateFieldSet(this,
|
|
35
|
-
__classPrivateFieldSet(this,
|
|
36
|
-
__classPrivateFieldSet(this,
|
|
37
|
-
__classPrivateFieldSet(this,
|
|
30
|
+
_action.set(this, void 0);
|
|
31
|
+
_message.set(this, void 0);
|
|
32
|
+
_maxDecrease.set(this, void 0);
|
|
33
|
+
_supportedUntil.set(this, void 0);
|
|
34
|
+
_suspendDate.set(this, void 0);
|
|
35
|
+
__classPrivateFieldSet(this, _action, data[ActionMessagesGetResultFields.COLUMN_ACTION]);
|
|
36
|
+
__classPrivateFieldSet(this, _message, data[ActionMessagesGetResultFields.COLUMN_MESSAGE]);
|
|
37
|
+
__classPrivateFieldSet(this, _maxDecrease, data[ActionMessagesGetResultFields.COLUMN_MAX_DECREASE]);
|
|
38
|
+
__classPrivateFieldSet(this, _supportedUntil, data[ActionMessagesGetResultFields.COLUMN_SUPPORTED_UNTIL]);
|
|
39
|
+
__classPrivateFieldSet(this, _suspendDate, data[ActionMessagesGetResultFields.COLUMN_SUSPEND_DATE]);
|
|
38
40
|
}
|
|
39
41
|
get action() {
|
|
40
|
-
return __classPrivateFieldGet(this,
|
|
42
|
+
return __classPrivateFieldGet(this, _action);
|
|
41
43
|
}
|
|
42
44
|
get message() {
|
|
43
|
-
return __classPrivateFieldGet(this,
|
|
45
|
+
return __classPrivateFieldGet(this, _message);
|
|
44
46
|
}
|
|
45
47
|
get maxDecrease() {
|
|
46
|
-
return __classPrivateFieldGet(this,
|
|
48
|
+
return __classPrivateFieldGet(this, _maxDecrease);
|
|
47
49
|
}
|
|
48
50
|
get supportedUntil() {
|
|
49
|
-
return __classPrivateFieldGet(this,
|
|
51
|
+
return __classPrivateFieldGet(this, _supportedUntil);
|
|
50
52
|
}
|
|
51
53
|
get suspendDate() {
|
|
52
|
-
return __classPrivateFieldGet(this,
|
|
54
|
+
return __classPrivateFieldGet(this, _suspendDate);
|
|
53
55
|
}
|
|
54
56
|
toJSON() {
|
|
55
57
|
return {
|
|
@@ -63,5 +65,5 @@ class ActionMessagesGetResult extends abstractEntity_1.AbstractEntity {
|
|
|
63
65
|
}
|
|
64
66
|
}
|
|
65
67
|
exports.ActionMessagesGetResult = ActionMessagesGetResult;
|
|
66
|
-
|
|
68
|
+
_action = new WeakMap(), _message = new WeakMap(), _maxDecrease = new WeakMap(), _supportedUntil = new WeakMap(), _suspendDate = new WeakMap();
|
|
67
69
|
//# sourceMappingURL=actionMessagesGetResult.js.map
|