@arrowsphere/api-client 3.27.0-rc.bjp.1 → 3.27.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 +4 -0
- package/build/abstractEntity.js +16 -14
- package/build/abstractGraphQLClient.d.ts +1 -2
- package/build/abstractGraphQLClient.js +7 -32
- 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 -4
- 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.js +1 -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/orders/ordersClient.d.ts +58 -3
- package/build/orders/ordersClient.js +25 -1
- package/build/pagination.js +31 -29
- 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.js +29 -27
- package/build/supportCenter/entities/issue/comment.js +31 -29
- package/build/supportCenter/entities/issue/issue.js +108 -106
- package/build/supportCenter/entities/topic.js +32 -30
- package/build/supportCenter/index.js +1 -5
- package/package.json +3 -5
- 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 _sku, _name, _vendor, _email, _firstName, _lastName, _phone, _sku_1, _label, _sourcePortal, _name_1, _value, _id, _title, _description, _topicId, _endCustomerRef, _language, _offer, _priority, _status, _createdBy, _supportPlan, _program, _additionalData, _created, _updated, _list;
|
|
14
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
17
|
exports.Issues = exports.Issue = exports.IssueAdditionalData = exports.IssueSupportPlan = exports.IssueCreatedBy = exports.IssueOffer = exports.IssueStatusesType = exports.IssueAdditionalDataFields = exports.IssueSupportPlanFields = exports.IssueCreatedByFields = exports.IssueOfferFields = exports.IssueFields = void 0;
|
|
16
18
|
const abstractEntity_1 = require("../../../abstractEntity");
|
|
@@ -68,21 +70,21 @@ var IssueStatusesType;
|
|
|
68
70
|
class IssueOffer extends abstractEntity_1.AbstractEntity {
|
|
69
71
|
constructor(input) {
|
|
70
72
|
super(input);
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
__classPrivateFieldSet(this,
|
|
75
|
-
__classPrivateFieldSet(this,
|
|
76
|
-
__classPrivateFieldSet(this,
|
|
73
|
+
_sku.set(this, void 0);
|
|
74
|
+
_name.set(this, void 0);
|
|
75
|
+
_vendor.set(this, void 0);
|
|
76
|
+
__classPrivateFieldSet(this, _sku, input[IssueOfferFields.COLUMN_SKU]);
|
|
77
|
+
__classPrivateFieldSet(this, _name, input[IssueOfferFields.COLUMN_NAME]);
|
|
78
|
+
__classPrivateFieldSet(this, _vendor, input[IssueOfferFields.COLUMN_VENDOR]);
|
|
77
79
|
}
|
|
78
80
|
get sku() {
|
|
79
|
-
return __classPrivateFieldGet(this,
|
|
81
|
+
return __classPrivateFieldGet(this, _sku);
|
|
80
82
|
}
|
|
81
83
|
get name() {
|
|
82
|
-
return __classPrivateFieldGet(this,
|
|
84
|
+
return __classPrivateFieldGet(this, _name);
|
|
83
85
|
}
|
|
84
86
|
get vendor() {
|
|
85
|
-
return __classPrivateFieldGet(this,
|
|
87
|
+
return __classPrivateFieldGet(this, _vendor);
|
|
86
88
|
}
|
|
87
89
|
toJSON() {
|
|
88
90
|
return {
|
|
@@ -93,30 +95,30 @@ class IssueOffer extends abstractEntity_1.AbstractEntity {
|
|
|
93
95
|
}
|
|
94
96
|
}
|
|
95
97
|
exports.IssueOffer = IssueOffer;
|
|
96
|
-
|
|
98
|
+
_sku = new WeakMap(), _name = new WeakMap(), _vendor = new WeakMap();
|
|
97
99
|
class IssueCreatedBy extends abstractEntity_1.AbstractEntity {
|
|
98
100
|
constructor(input) {
|
|
99
101
|
super(input);
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
__classPrivateFieldSet(this,
|
|
105
|
-
__classPrivateFieldSet(this,
|
|
106
|
-
__classPrivateFieldSet(this,
|
|
107
|
-
__classPrivateFieldSet(this,
|
|
102
|
+
_email.set(this, void 0);
|
|
103
|
+
_firstName.set(this, void 0);
|
|
104
|
+
_lastName.set(this, void 0);
|
|
105
|
+
_phone.set(this, void 0);
|
|
106
|
+
__classPrivateFieldSet(this, _email, input[IssueCreatedByFields.COLUMN_EMAIL]);
|
|
107
|
+
__classPrivateFieldSet(this, _firstName, input[IssueCreatedByFields.COLUMN_FIRST_NAME]);
|
|
108
|
+
__classPrivateFieldSet(this, _lastName, input[IssueCreatedByFields.COLUMN_LAST_NAME]);
|
|
109
|
+
__classPrivateFieldSet(this, _phone, input[IssueCreatedByFields.COLUMN_PHONE]);
|
|
108
110
|
}
|
|
109
111
|
get email() {
|
|
110
|
-
return __classPrivateFieldGet(this,
|
|
112
|
+
return __classPrivateFieldGet(this, _email);
|
|
111
113
|
}
|
|
112
114
|
get firstName() {
|
|
113
|
-
return __classPrivateFieldGet(this,
|
|
115
|
+
return __classPrivateFieldGet(this, _firstName);
|
|
114
116
|
}
|
|
115
117
|
get lastName() {
|
|
116
|
-
return __classPrivateFieldGet(this,
|
|
118
|
+
return __classPrivateFieldGet(this, _lastName);
|
|
117
119
|
}
|
|
118
120
|
get phone() {
|
|
119
|
-
return __classPrivateFieldGet(this,
|
|
121
|
+
return __classPrivateFieldGet(this, _phone);
|
|
120
122
|
}
|
|
121
123
|
toJSON() {
|
|
122
124
|
return {
|
|
@@ -128,25 +130,25 @@ class IssueCreatedBy extends abstractEntity_1.AbstractEntity {
|
|
|
128
130
|
}
|
|
129
131
|
}
|
|
130
132
|
exports.IssueCreatedBy = IssueCreatedBy;
|
|
131
|
-
|
|
133
|
+
_email = new WeakMap(), _firstName = new WeakMap(), _lastName = new WeakMap(), _phone = new WeakMap();
|
|
132
134
|
class IssueSupportPlan extends abstractEntity_1.AbstractEntity {
|
|
133
135
|
constructor(input) {
|
|
134
136
|
super(input);
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
__classPrivateFieldSet(this,
|
|
139
|
-
__classPrivateFieldSet(this,
|
|
140
|
-
__classPrivateFieldSet(this,
|
|
137
|
+
_sku_1.set(this, void 0);
|
|
138
|
+
_label.set(this, void 0);
|
|
139
|
+
_sourcePortal.set(this, void 0);
|
|
140
|
+
__classPrivateFieldSet(this, _sku_1, input[IssueSupportPlanFields.COLUMN_SKU]);
|
|
141
|
+
__classPrivateFieldSet(this, _label, input[IssueSupportPlanFields.COLUMN_LABEL]);
|
|
142
|
+
__classPrivateFieldSet(this, _sourcePortal, input[IssueSupportPlanFields.COLUMN_SOURCE_PORTAL]);
|
|
141
143
|
}
|
|
142
144
|
get sku() {
|
|
143
|
-
return __classPrivateFieldGet(this,
|
|
145
|
+
return __classPrivateFieldGet(this, _sku_1);
|
|
144
146
|
}
|
|
145
147
|
get label() {
|
|
146
|
-
return __classPrivateFieldGet(this,
|
|
148
|
+
return __classPrivateFieldGet(this, _label);
|
|
147
149
|
}
|
|
148
150
|
get sourcePortal() {
|
|
149
|
-
return __classPrivateFieldGet(this,
|
|
151
|
+
return __classPrivateFieldGet(this, _sourcePortal);
|
|
150
152
|
}
|
|
151
153
|
toJSON() {
|
|
152
154
|
return {
|
|
@@ -157,20 +159,20 @@ class IssueSupportPlan extends abstractEntity_1.AbstractEntity {
|
|
|
157
159
|
}
|
|
158
160
|
}
|
|
159
161
|
exports.IssueSupportPlan = IssueSupportPlan;
|
|
160
|
-
|
|
162
|
+
_sku_1 = new WeakMap(), _label = new WeakMap(), _sourcePortal = new WeakMap();
|
|
161
163
|
class IssueAdditionalData extends abstractEntity_1.AbstractEntity {
|
|
162
164
|
constructor(input) {
|
|
163
165
|
super(input);
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
__classPrivateFieldSet(this,
|
|
167
|
-
__classPrivateFieldSet(this,
|
|
166
|
+
_name_1.set(this, void 0);
|
|
167
|
+
_value.set(this, void 0);
|
|
168
|
+
__classPrivateFieldSet(this, _name_1, input[IssueAdditionalDataFields.COLUMN_NAME]);
|
|
169
|
+
__classPrivateFieldSet(this, _value, input[IssueAdditionalDataFields.COLUMN_VALUE]);
|
|
168
170
|
}
|
|
169
171
|
get name() {
|
|
170
|
-
return __classPrivateFieldGet(this,
|
|
172
|
+
return __classPrivateFieldGet(this, _name_1);
|
|
171
173
|
}
|
|
172
174
|
get value() {
|
|
173
|
-
return __classPrivateFieldGet(this,
|
|
175
|
+
return __classPrivateFieldGet(this, _value);
|
|
174
176
|
}
|
|
175
177
|
toJSON() {
|
|
176
178
|
return {
|
|
@@ -180,97 +182,97 @@ class IssueAdditionalData extends abstractEntity_1.AbstractEntity {
|
|
|
180
182
|
}
|
|
181
183
|
}
|
|
182
184
|
exports.IssueAdditionalData = IssueAdditionalData;
|
|
183
|
-
|
|
185
|
+
_name_1 = new WeakMap(), _value = new WeakMap();
|
|
184
186
|
class Issue extends abstractEntity_1.AbstractEntity {
|
|
185
187
|
constructor(input) {
|
|
186
188
|
super(input);
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
__classPrivateFieldSet(this,
|
|
203
|
-
__classPrivateFieldSet(this,
|
|
204
|
-
__classPrivateFieldSet(this,
|
|
205
|
-
__classPrivateFieldSet(this,
|
|
206
|
-
__classPrivateFieldSet(this,
|
|
207
|
-
__classPrivateFieldSet(this,
|
|
208
|
-
__classPrivateFieldSet(this,
|
|
189
|
+
_id.set(this, void 0);
|
|
190
|
+
_title.set(this, void 0);
|
|
191
|
+
_description.set(this, void 0);
|
|
192
|
+
_topicId.set(this, void 0);
|
|
193
|
+
_endCustomerRef.set(this, void 0);
|
|
194
|
+
_language.set(this, void 0);
|
|
195
|
+
_offer.set(this, void 0);
|
|
196
|
+
_priority.set(this, void 0);
|
|
197
|
+
_status.set(this, void 0);
|
|
198
|
+
_createdBy.set(this, void 0);
|
|
199
|
+
_supportPlan.set(this, void 0);
|
|
200
|
+
_program.set(this, void 0);
|
|
201
|
+
_additionalData.set(this, void 0);
|
|
202
|
+
_created.set(this, void 0);
|
|
203
|
+
_updated.set(this, void 0);
|
|
204
|
+
__classPrivateFieldSet(this, _id, input[IssueFields.COLUMN_ID]);
|
|
205
|
+
__classPrivateFieldSet(this, _title, input[IssueFields.COLUMN_TITLE]);
|
|
206
|
+
__classPrivateFieldSet(this, _description, input[IssueFields.COLUMN_DESCRIPTION]);
|
|
207
|
+
__classPrivateFieldSet(this, _topicId, input[IssueFields.COLUMN_TOPIC_ID]);
|
|
208
|
+
__classPrivateFieldSet(this, _endCustomerRef, input[IssueFields.COLUMN_END_CUSTOMER_REF]);
|
|
209
|
+
__classPrivateFieldSet(this, _language, input[IssueFields.COLUMN_LANGUAGE]);
|
|
210
|
+
__classPrivateFieldSet(this, _offer, input[IssueFields.COLUMN_OFFER]
|
|
209
211
|
? new IssueOffer(input[IssueFields.COLUMN_OFFER])
|
|
210
|
-
: undefined
|
|
211
|
-
__classPrivateFieldSet(this,
|
|
212
|
-
__classPrivateFieldSet(this,
|
|
213
|
-
__classPrivateFieldSet(this,
|
|
212
|
+
: undefined);
|
|
213
|
+
__classPrivateFieldSet(this, _priority, input[IssueFields.COLUMN_PRIORITY]);
|
|
214
|
+
__classPrivateFieldSet(this, _status, input[IssueFields.COLUMN_STATUS]);
|
|
215
|
+
__classPrivateFieldSet(this, _createdBy, input[IssueFields.COLUMN_CREATED_BY]
|
|
214
216
|
? new IssueCreatedBy(input[IssueFields.COLUMN_CREATED_BY])
|
|
215
|
-
: undefined
|
|
216
|
-
__classPrivateFieldSet(this,
|
|
217
|
+
: undefined);
|
|
218
|
+
__classPrivateFieldSet(this, _supportPlan, input[IssueFields.COLUMN_SUPPORT_PLAN]
|
|
217
219
|
? new IssueSupportPlan(input[IssueFields.COLUMN_SUPPORT_PLAN])
|
|
218
|
-
: undefined
|
|
219
|
-
__classPrivateFieldSet(this,
|
|
220
|
-
__classPrivateFieldSet(this,
|
|
220
|
+
: undefined);
|
|
221
|
+
__classPrivateFieldSet(this, _program, input[IssueFields.COLUMN_PROGRAM]);
|
|
222
|
+
__classPrivateFieldSet(this, _additionalData, input[IssueFields.COLUMN_ADDITIONAL_DATA]
|
|
221
223
|
? input[IssueFields.COLUMN_ADDITIONAL_DATA].map((item) => new IssueAdditionalData(item))
|
|
222
|
-
: undefined
|
|
223
|
-
__classPrivateFieldSet(this,
|
|
224
|
+
: undefined);
|
|
225
|
+
__classPrivateFieldSet(this, _created, input[IssueFields.COLUMN_CREATED]
|
|
224
226
|
? new Date(input[IssueFields.COLUMN_CREATED])
|
|
225
|
-
: undefined
|
|
226
|
-
__classPrivateFieldSet(this,
|
|
227
|
+
: undefined);
|
|
228
|
+
__classPrivateFieldSet(this, _updated, input[IssueFields.COLUMN_UPDATED]
|
|
227
229
|
? new Date(input[IssueFields.COLUMN_UPDATED])
|
|
228
|
-
: undefined
|
|
230
|
+
: undefined);
|
|
229
231
|
}
|
|
230
232
|
get id() {
|
|
231
|
-
return __classPrivateFieldGet(this,
|
|
233
|
+
return __classPrivateFieldGet(this, _id);
|
|
232
234
|
}
|
|
233
235
|
get title() {
|
|
234
|
-
return __classPrivateFieldGet(this,
|
|
236
|
+
return __classPrivateFieldGet(this, _title);
|
|
235
237
|
}
|
|
236
238
|
get description() {
|
|
237
|
-
return __classPrivateFieldGet(this,
|
|
239
|
+
return __classPrivateFieldGet(this, _description);
|
|
238
240
|
}
|
|
239
241
|
get topicId() {
|
|
240
|
-
return __classPrivateFieldGet(this,
|
|
242
|
+
return __classPrivateFieldGet(this, _topicId);
|
|
241
243
|
}
|
|
242
244
|
get endCustomerRef() {
|
|
243
|
-
return __classPrivateFieldGet(this,
|
|
245
|
+
return __classPrivateFieldGet(this, _endCustomerRef);
|
|
244
246
|
}
|
|
245
247
|
get language() {
|
|
246
|
-
return __classPrivateFieldGet(this,
|
|
248
|
+
return __classPrivateFieldGet(this, _language);
|
|
247
249
|
}
|
|
248
250
|
get offer() {
|
|
249
|
-
return __classPrivateFieldGet(this,
|
|
251
|
+
return __classPrivateFieldGet(this, _offer);
|
|
250
252
|
}
|
|
251
253
|
get priority() {
|
|
252
|
-
return __classPrivateFieldGet(this,
|
|
254
|
+
return __classPrivateFieldGet(this, _priority);
|
|
253
255
|
}
|
|
254
256
|
get status() {
|
|
255
|
-
return __classPrivateFieldGet(this,
|
|
257
|
+
return __classPrivateFieldGet(this, _status);
|
|
256
258
|
}
|
|
257
259
|
get createdBy() {
|
|
258
|
-
return __classPrivateFieldGet(this,
|
|
260
|
+
return __classPrivateFieldGet(this, _createdBy);
|
|
259
261
|
}
|
|
260
262
|
get supportPlan() {
|
|
261
|
-
return __classPrivateFieldGet(this,
|
|
263
|
+
return __classPrivateFieldGet(this, _supportPlan);
|
|
262
264
|
}
|
|
263
265
|
get program() {
|
|
264
|
-
return __classPrivateFieldGet(this,
|
|
266
|
+
return __classPrivateFieldGet(this, _program);
|
|
265
267
|
}
|
|
266
268
|
get additionalData() {
|
|
267
|
-
return __classPrivateFieldGet(this,
|
|
269
|
+
return __classPrivateFieldGet(this, _additionalData);
|
|
268
270
|
}
|
|
269
271
|
get created() {
|
|
270
|
-
return __classPrivateFieldGet(this,
|
|
272
|
+
return __classPrivateFieldGet(this, _created);
|
|
271
273
|
}
|
|
272
274
|
get updated() {
|
|
273
|
-
return __classPrivateFieldGet(this,
|
|
275
|
+
return __classPrivateFieldGet(this, _updated);
|
|
274
276
|
}
|
|
275
277
|
toJSON() {
|
|
276
278
|
var _a, _b, _c, _d, _e, _f;
|
|
@@ -294,20 +296,20 @@ class Issue extends abstractEntity_1.AbstractEntity {
|
|
|
294
296
|
}
|
|
295
297
|
}
|
|
296
298
|
exports.Issue = Issue;
|
|
297
|
-
|
|
299
|
+
_id = new WeakMap(), _title = new WeakMap(), _description = new WeakMap(), _topicId = new WeakMap(), _endCustomerRef = new WeakMap(), _language = new WeakMap(), _offer = new WeakMap(), _priority = new WeakMap(), _status = new WeakMap(), _createdBy = new WeakMap(), _supportPlan = new WeakMap(), _program = new WeakMap(), _additionalData = new WeakMap(), _created = new WeakMap(), _updated = new WeakMap();
|
|
298
300
|
class Issues extends abstractEntity_1.AbstractEntity {
|
|
299
301
|
constructor(input) {
|
|
300
302
|
super(input);
|
|
301
|
-
|
|
302
|
-
__classPrivateFieldSet(this,
|
|
303
|
+
_list.set(this, void 0);
|
|
304
|
+
__classPrivateFieldSet(this, _list, input.map((item) => new Issue(item)));
|
|
303
305
|
}
|
|
304
306
|
get list() {
|
|
305
|
-
return __classPrivateFieldGet(this,
|
|
307
|
+
return __classPrivateFieldGet(this, _list);
|
|
306
308
|
}
|
|
307
309
|
toJSON() {
|
|
308
310
|
return this.list.map((item) => item.toJSON());
|
|
309
311
|
}
|
|
310
312
|
}
|
|
311
313
|
exports.Issues = Issues;
|
|
312
|
-
|
|
314
|
+
_list = new WeakMap();
|
|
313
315
|
//# sourceMappingURL=issue.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 _id, _name, _label, _premium, _description, _list;
|
|
14
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
17
|
exports.Topics = exports.Topic = exports.TopicFields = void 0;
|
|
16
18
|
const abstractEntity_1 = require("../../abstractEntity");
|
|
@@ -25,31 +27,31 @@ var TopicFields;
|
|
|
25
27
|
class Topic extends abstractEntity_1.AbstractEntity {
|
|
26
28
|
constructor(input) {
|
|
27
29
|
super(input);
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
__classPrivateFieldSet(this,
|
|
34
|
-
__classPrivateFieldSet(this,
|
|
35
|
-
__classPrivateFieldSet(this,
|
|
36
|
-
__classPrivateFieldSet(this,
|
|
37
|
-
__classPrivateFieldSet(this,
|
|
30
|
+
_id.set(this, void 0);
|
|
31
|
+
_name.set(this, void 0);
|
|
32
|
+
_label.set(this, void 0);
|
|
33
|
+
_premium.set(this, void 0);
|
|
34
|
+
_description.set(this, void 0);
|
|
35
|
+
__classPrivateFieldSet(this, _id, input[TopicFields.COLUMN_ID]);
|
|
36
|
+
__classPrivateFieldSet(this, _name, input[TopicFields.COLUMN_NAME]);
|
|
37
|
+
__classPrivateFieldSet(this, _label, input[TopicFields.COLUMN_LABEL]);
|
|
38
|
+
__classPrivateFieldSet(this, _premium, input[TopicFields.COLUMN_PREMIUM]);
|
|
39
|
+
__classPrivateFieldSet(this, _description, input[TopicFields.COLUMN_DESCRIPTION]);
|
|
38
40
|
}
|
|
39
41
|
get id() {
|
|
40
|
-
return __classPrivateFieldGet(this,
|
|
42
|
+
return __classPrivateFieldGet(this, _id);
|
|
41
43
|
}
|
|
42
44
|
get name() {
|
|
43
|
-
return __classPrivateFieldGet(this,
|
|
45
|
+
return __classPrivateFieldGet(this, _name);
|
|
44
46
|
}
|
|
45
47
|
get label() {
|
|
46
|
-
return __classPrivateFieldGet(this,
|
|
48
|
+
return __classPrivateFieldGet(this, _label);
|
|
47
49
|
}
|
|
48
50
|
get premium() {
|
|
49
|
-
return __classPrivateFieldGet(this,
|
|
51
|
+
return __classPrivateFieldGet(this, _premium);
|
|
50
52
|
}
|
|
51
53
|
get description() {
|
|
52
|
-
return __classPrivateFieldGet(this,
|
|
54
|
+
return __classPrivateFieldGet(this, _description);
|
|
53
55
|
}
|
|
54
56
|
toJSON() {
|
|
55
57
|
return {
|
|
@@ -62,20 +64,20 @@ class Topic extends abstractEntity_1.AbstractEntity {
|
|
|
62
64
|
}
|
|
63
65
|
}
|
|
64
66
|
exports.Topic = Topic;
|
|
65
|
-
|
|
67
|
+
_id = new WeakMap(), _name = new WeakMap(), _label = new WeakMap(), _premium = new WeakMap(), _description = new WeakMap();
|
|
66
68
|
class Topics extends abstractEntity_1.AbstractEntity {
|
|
67
69
|
constructor(input) {
|
|
68
70
|
super(input);
|
|
69
|
-
|
|
70
|
-
__classPrivateFieldSet(this,
|
|
71
|
+
_list.set(this, void 0);
|
|
72
|
+
__classPrivateFieldSet(this, _list, input.map((item) => new Topic(item)));
|
|
71
73
|
}
|
|
72
74
|
get list() {
|
|
73
|
-
return __classPrivateFieldGet(this,
|
|
75
|
+
return __classPrivateFieldGet(this, _list);
|
|
74
76
|
}
|
|
75
77
|
toJSON() {
|
|
76
78
|
return this.list.map((item) => item.toJSON());
|
|
77
79
|
}
|
|
78
80
|
}
|
|
79
81
|
exports.Topics = Topics;
|
|
80
|
-
|
|
82
|
+
_list = new WeakMap();
|
|
81
83
|
//# sourceMappingURL=topic.js.map
|
|
@@ -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/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"type": "git",
|
|
5
5
|
"url": "https://github.com/ArrowSphere/nodejs-api-client.git"
|
|
6
6
|
},
|
|
7
|
-
"version": "3.27.0
|
|
7
|
+
"version": "3.27.0",
|
|
8
8
|
"description": "Node.js client for ArrowSphere's public API",
|
|
9
9
|
"main": "build/index.js",
|
|
10
10
|
"types": "build/index.d.ts",
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"sinon": "9.2.4",
|
|
59
59
|
"sinon-chai": "3.5.0",
|
|
60
60
|
"source-map-support": "0.5.19",
|
|
61
|
-
"ts-node": "
|
|
62
|
-
"typescript": "4.
|
|
61
|
+
"ts-node": "9.1.1",
|
|
62
|
+
"typescript": "4.1.5"
|
|
63
63
|
},
|
|
64
64
|
"husky": {
|
|
65
65
|
"hooks": {
|
|
@@ -84,9 +84,7 @@
|
|
|
84
84
|
"axios": "1.1.3",
|
|
85
85
|
"graphql": "^16.3.0",
|
|
86
86
|
"graphql-request": "4.2.0",
|
|
87
|
-
"json-to-graphql-query": "^2.2.5",
|
|
88
87
|
"lodash": "^4.17.21",
|
|
89
|
-
"type-fest": "^3.9.0",
|
|
90
88
|
"validatorjs": "3.22.1"
|
|
91
89
|
}
|
|
92
90
|
}
|
|
@@ -1,12 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,42 +0,0 @@
|
|
|
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
|
-
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
|
-
};
|
|
42
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var OperatorArgument;
|
|
4
|
-
(function (OperatorArgument) {
|
|
5
|
-
OperatorArgument["OR"] = "OR";
|
|
6
|
-
OperatorArgument["AND"] = "AND";
|
|
7
|
-
OperatorArgument["BETWEEN"] = "BETWEEN";
|
|
8
|
-
})(OperatorArgument || (OperatorArgument = {}));
|
|
9
|
-
//# sourceMappingURL=queryArguments.js.map
|