@arrowsphere/api-client 3.26.0 → 3.27.0-rc.bjp.1
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/build/abstractEntity.js +14 -16
- package/build/abstractGraphQLClient.d.ts +2 -1
- package/build/abstractGraphQLClient.js +32 -7
- 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 +4 -1
- package/build/catalog/index.js +5 -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 +42 -0
- package/build/catalog/types/queryArguments.js +9 -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/index.js +5 -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.js +5 -1
- package/build/licenses/entities/filterFindResult.js +17 -19
- package/build/licenses/entities/findResult.js +36 -38
- 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/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,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 _Subscription_subscriptionId, _Subscription_partnerTagLabels, _Subscription_workgroupCode, _Subscription_companyName, _Subscription_subscription, _Subscription_startDate, _Subscription_endDate, _Subscription_lastUpdate, _Subscription_status, _Subscription_subscriptionDateValidation, _Subscription_subscriptionDateDemand, _Subscription_clickToAccept, _Subscription_unvalidated, _Subscription_version, _Subscription_number;
|
|
16
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
15
|
exports.Subscription = exports.SubscriptionFields = void 0;
|
|
18
16
|
const abstractEntity_1 = require("../../abstractEntity");
|
|
@@ -62,81 +60,81 @@ class Subscription extends abstractEntity_1.AbstractEntity {
|
|
|
62
60
|
[SubscriptionFields.COLUMN_VERSION]: 'required|number',
|
|
63
61
|
[SubscriptionFields.COLUMN_NUMBER]: 'required|number',
|
|
64
62
|
};
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
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,
|
|
63
|
+
_Subscription_subscriptionId.set(this, void 0);
|
|
64
|
+
_Subscription_partnerTagLabels.set(this, void 0);
|
|
65
|
+
_Subscription_workgroupCode.set(this, void 0);
|
|
66
|
+
_Subscription_companyName.set(this, void 0);
|
|
67
|
+
_Subscription_subscription.set(this, void 0);
|
|
68
|
+
_Subscription_startDate.set(this, void 0);
|
|
69
|
+
_Subscription_endDate.set(this, void 0);
|
|
70
|
+
_Subscription_lastUpdate.set(this, void 0);
|
|
71
|
+
_Subscription_status.set(this, void 0);
|
|
72
|
+
_Subscription_subscriptionDateValidation.set(this, void 0);
|
|
73
|
+
_Subscription_subscriptionDateDemand.set(this, void 0);
|
|
74
|
+
_Subscription_clickToAccept.set(this, void 0);
|
|
75
|
+
_Subscription_unvalidated.set(this, void 0);
|
|
76
|
+
_Subscription_version.set(this, void 0);
|
|
77
|
+
_Subscription_number.set(this, void 0);
|
|
78
|
+
__classPrivateFieldSet(this, _Subscription_subscriptionId, data[SubscriptionFields.COLUMN_SUBSCRIPTION_ID], "f");
|
|
79
|
+
__classPrivateFieldSet(this, _Subscription_partnerTagLabels, data[SubscriptionFields.COLUMN_PARTNER_TAG_LABELS], "f");
|
|
80
|
+
__classPrivateFieldSet(this, _Subscription_workgroupCode, data[SubscriptionFields.COLUMN_WORKGROUP_CODE], "f");
|
|
81
|
+
__classPrivateFieldSet(this, _Subscription_companyName, data[SubscriptionFields.COLUMN_COMPANY_NAME], "f");
|
|
82
|
+
__classPrivateFieldSet(this, _Subscription_subscription, data[SubscriptionFields.COLUMN_SUBSCRIPTION], "f");
|
|
83
|
+
__classPrivateFieldSet(this, _Subscription_startDate, data[SubscriptionFields.COLUMN_START_DATE], "f");
|
|
84
|
+
__classPrivateFieldSet(this, _Subscription_endDate, data[SubscriptionFields.COLUMN_END_DATE], "f");
|
|
85
|
+
__classPrivateFieldSet(this, _Subscription_lastUpdate, data[SubscriptionFields.COLUMN_LAST_UPDATE], "f");
|
|
86
|
+
__classPrivateFieldSet(this, _Subscription_status, data[SubscriptionFields.COLUMN_STATUS], "f");
|
|
87
|
+
__classPrivateFieldSet(this, _Subscription_subscriptionDateValidation, data[SubscriptionFields.COLUMN_SUBSCRIPTION_DATEVALIDATION], "f");
|
|
88
|
+
__classPrivateFieldSet(this, _Subscription_subscriptionDateDemand, data[SubscriptionFields.COLUMN_SUBSCRIPTION_DATEDEMAND], "f");
|
|
89
|
+
__classPrivateFieldSet(this, _Subscription_clickToAccept, data[SubscriptionFields.COLUMN_CLICK_TO_ACCEPT], "f");
|
|
90
|
+
__classPrivateFieldSet(this, _Subscription_unvalidated, data[SubscriptionFields.COLUMN_UNVALIDATED], "f");
|
|
91
|
+
__classPrivateFieldSet(this, _Subscription_version, data[SubscriptionFields.COLUMN_VERSION], "f");
|
|
92
|
+
__classPrivateFieldSet(this, _Subscription_number, data[SubscriptionFields.COLUMN_NUMBER], "f");
|
|
95
93
|
}
|
|
96
94
|
get subscriptionId() {
|
|
97
|
-
return __classPrivateFieldGet(this,
|
|
95
|
+
return __classPrivateFieldGet(this, _Subscription_subscriptionId, "f");
|
|
98
96
|
}
|
|
99
97
|
get partnerTagLabels() {
|
|
100
|
-
return __classPrivateFieldGet(this,
|
|
98
|
+
return __classPrivateFieldGet(this, _Subscription_partnerTagLabels, "f");
|
|
101
99
|
}
|
|
102
100
|
get workgroupCode() {
|
|
103
|
-
return __classPrivateFieldGet(this,
|
|
101
|
+
return __classPrivateFieldGet(this, _Subscription_workgroupCode, "f");
|
|
104
102
|
}
|
|
105
103
|
get companyName() {
|
|
106
|
-
return __classPrivateFieldGet(this,
|
|
104
|
+
return __classPrivateFieldGet(this, _Subscription_companyName, "f");
|
|
107
105
|
}
|
|
108
106
|
get subscription() {
|
|
109
|
-
return __classPrivateFieldGet(this,
|
|
107
|
+
return __classPrivateFieldGet(this, _Subscription_subscription, "f");
|
|
110
108
|
}
|
|
111
109
|
get startDate() {
|
|
112
|
-
return __classPrivateFieldGet(this,
|
|
110
|
+
return __classPrivateFieldGet(this, _Subscription_startDate, "f");
|
|
113
111
|
}
|
|
114
112
|
get endDate() {
|
|
115
|
-
return __classPrivateFieldGet(this,
|
|
113
|
+
return __classPrivateFieldGet(this, _Subscription_endDate, "f");
|
|
116
114
|
}
|
|
117
115
|
get lastUpdate() {
|
|
118
|
-
return __classPrivateFieldGet(this,
|
|
116
|
+
return __classPrivateFieldGet(this, _Subscription_lastUpdate, "f");
|
|
119
117
|
}
|
|
120
118
|
get status() {
|
|
121
|
-
return __classPrivateFieldGet(this,
|
|
119
|
+
return __classPrivateFieldGet(this, _Subscription_status, "f");
|
|
122
120
|
}
|
|
123
121
|
get subscriptionDateValidation() {
|
|
124
|
-
return __classPrivateFieldGet(this,
|
|
122
|
+
return __classPrivateFieldGet(this, _Subscription_subscriptionDateValidation, "f");
|
|
125
123
|
}
|
|
126
124
|
get subscriptionDateDemand() {
|
|
127
|
-
return __classPrivateFieldGet(this,
|
|
125
|
+
return __classPrivateFieldGet(this, _Subscription_subscriptionDateDemand, "f");
|
|
128
126
|
}
|
|
129
127
|
get clickToAccept() {
|
|
130
|
-
return __classPrivateFieldGet(this,
|
|
128
|
+
return __classPrivateFieldGet(this, _Subscription_clickToAccept, "f");
|
|
131
129
|
}
|
|
132
130
|
get unvalidated() {
|
|
133
|
-
return __classPrivateFieldGet(this,
|
|
131
|
+
return __classPrivateFieldGet(this, _Subscription_unvalidated, "f");
|
|
134
132
|
}
|
|
135
133
|
get version() {
|
|
136
|
-
return __classPrivateFieldGet(this,
|
|
134
|
+
return __classPrivateFieldGet(this, _Subscription_version, "f");
|
|
137
135
|
}
|
|
138
136
|
get number() {
|
|
139
|
-
return __classPrivateFieldGet(this,
|
|
137
|
+
return __classPrivateFieldGet(this, _Subscription_number, "f");
|
|
140
138
|
}
|
|
141
139
|
/**
|
|
142
140
|
* Plain JSON object representation of the subscription entity.
|
|
@@ -164,5 +162,5 @@ class Subscription extends abstractEntity_1.AbstractEntity {
|
|
|
164
162
|
}
|
|
165
163
|
}
|
|
166
164
|
exports.Subscription = Subscription;
|
|
167
|
-
|
|
165
|
+
_Subscription_subscriptionId = new WeakMap(), _Subscription_partnerTagLabels = new WeakMap(), _Subscription_workgroupCode = new WeakMap(), _Subscription_companyName = new WeakMap(), _Subscription_subscription = new WeakMap(), _Subscription_startDate = new WeakMap(), _Subscription_endDate = new WeakMap(), _Subscription_lastUpdate = new WeakMap(), _Subscription_status = new WeakMap(), _Subscription_subscriptionDateValidation = new WeakMap(), _Subscription_subscriptionDateDemand = new WeakMap(), _Subscription_clickToAccept = new WeakMap(), _Subscription_unvalidated = new WeakMap(), _Subscription_version = new WeakMap(), _Subscription_number = new WeakMap();
|
|
168
166
|
//# sourceMappingURL=subscription.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 _SubscriptionsListResult_subscriptions, _SubscriptionsListResult_client, _SubscriptionsListResult_payload, _SubscriptionsListResult_currentPage, _SubscriptionsListResult_totalPage, _SubscriptionsListResult_nbResults, _SubscriptionsListResult_nextPageURL, _SubscriptionsListResult_previousPageURL;
|
|
16
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
15
|
exports.SubscriptionsListResult = void 0;
|
|
18
16
|
const abstractEntity_1 = require("../../abstractEntity");
|
|
@@ -26,53 +24,53 @@ class SubscriptionsListResult extends abstractEntity_1.AbstractEntity {
|
|
|
26
24
|
*/
|
|
27
25
|
constructor(response, client, payload = {}) {
|
|
28
26
|
super(response);
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
__classPrivateFieldSet(this,
|
|
38
|
-
__classPrivateFieldSet(this,
|
|
39
|
-
__classPrivateFieldSet(this,
|
|
40
|
-
__classPrivateFieldSet(this,
|
|
41
|
-
__classPrivateFieldSet(this,
|
|
42
|
-
__classPrivateFieldSet(this,
|
|
43
|
-
__classPrivateFieldSet(this,
|
|
44
|
-
__classPrivateFieldSet(this,
|
|
27
|
+
_SubscriptionsListResult_subscriptions.set(this, void 0);
|
|
28
|
+
_SubscriptionsListResult_client.set(this, void 0);
|
|
29
|
+
_SubscriptionsListResult_payload.set(this, void 0);
|
|
30
|
+
_SubscriptionsListResult_currentPage.set(this, void 0);
|
|
31
|
+
_SubscriptionsListResult_totalPage.set(this, void 0);
|
|
32
|
+
_SubscriptionsListResult_nbResults.set(this, void 0);
|
|
33
|
+
_SubscriptionsListResult_nextPageURL.set(this, void 0);
|
|
34
|
+
_SubscriptionsListResult_previousPageURL.set(this, void 0);
|
|
35
|
+
__classPrivateFieldSet(this, _SubscriptionsListResult_client, client, "f");
|
|
36
|
+
__classPrivateFieldSet(this, _SubscriptionsListResult_payload, payload, "f");
|
|
37
|
+
__classPrivateFieldSet(this, _SubscriptionsListResult_currentPage, response.pagination.currentPage, "f");
|
|
38
|
+
__classPrivateFieldSet(this, _SubscriptionsListResult_totalPage, response.pagination.totalPage, "f");
|
|
39
|
+
__classPrivateFieldSet(this, _SubscriptionsListResult_nbResults, response.pagination.total, "f");
|
|
40
|
+
__classPrivateFieldSet(this, _SubscriptionsListResult_nextPageURL, response.pagination.next, "f");
|
|
41
|
+
__classPrivateFieldSet(this, _SubscriptionsListResult_previousPageURL, response.pagination.previous, "f");
|
|
42
|
+
__classPrivateFieldSet(this, _SubscriptionsListResult_subscriptions, response.data.map((subscriptionData) => new subscription_1.Subscription(subscriptionData).toJSON()), "f");
|
|
45
43
|
}
|
|
46
44
|
get subscriptions() {
|
|
47
45
|
return this.getSubscriptions();
|
|
48
46
|
}
|
|
49
47
|
get client() {
|
|
50
|
-
return __classPrivateFieldGet(this,
|
|
48
|
+
return __classPrivateFieldGet(this, _SubscriptionsListResult_client, "f");
|
|
51
49
|
}
|
|
52
50
|
get payload() {
|
|
53
|
-
return __classPrivateFieldGet(this,
|
|
51
|
+
return __classPrivateFieldGet(this, _SubscriptionsListResult_payload, "f");
|
|
54
52
|
}
|
|
55
53
|
get currentPage() {
|
|
56
|
-
return __classPrivateFieldGet(this,
|
|
54
|
+
return __classPrivateFieldGet(this, _SubscriptionsListResult_currentPage, "f");
|
|
57
55
|
}
|
|
58
56
|
get totalPage() {
|
|
59
|
-
return __classPrivateFieldGet(this,
|
|
57
|
+
return __classPrivateFieldGet(this, _SubscriptionsListResult_totalPage, "f");
|
|
60
58
|
}
|
|
61
59
|
get nbResults() {
|
|
62
|
-
return __classPrivateFieldGet(this,
|
|
60
|
+
return __classPrivateFieldGet(this, _SubscriptionsListResult_nbResults, "f");
|
|
63
61
|
}
|
|
64
62
|
get nextPageURL() {
|
|
65
|
-
return __classPrivateFieldGet(this,
|
|
63
|
+
return __classPrivateFieldGet(this, _SubscriptionsListResult_nextPageURL, "f");
|
|
66
64
|
}
|
|
67
65
|
get previousPageURL() {
|
|
68
|
-
return __classPrivateFieldGet(this,
|
|
66
|
+
return __classPrivateFieldGet(this, _SubscriptionsListResult_previousPageURL, "f");
|
|
69
67
|
}
|
|
70
68
|
/**
|
|
71
69
|
* Gets all the subscriptions for the current page
|
|
72
70
|
* @returns Generator|{@link SubscriptionData}[]
|
|
73
71
|
*/
|
|
74
72
|
*getSubscriptionsForCurrentPage() {
|
|
75
|
-
yield* __classPrivateFieldGet(this,
|
|
73
|
+
yield* __classPrivateFieldGet(this, _SubscriptionsListResult_subscriptions, "f");
|
|
76
74
|
}
|
|
77
75
|
/**
|
|
78
76
|
* Gets all the subscriptions from the result, page per page.
|
|
@@ -83,11 +81,11 @@ class SubscriptionsListResult extends abstractEntity_1.AbstractEntity {
|
|
|
83
81
|
// Yields the first page
|
|
84
82
|
yield* this.getSubscriptionsForCurrentPage();
|
|
85
83
|
// Then parse the other pages
|
|
86
|
-
let currentPage = __classPrivateFieldGet(this,
|
|
87
|
-
let lastPage = __classPrivateFieldGet(this,
|
|
84
|
+
let currentPage = __classPrivateFieldGet(this, _SubscriptionsListResult_currentPage, "f") + 1;
|
|
85
|
+
let lastPage = __classPrivateFieldGet(this, _SubscriptionsListResult_totalPage, "f") < currentPage;
|
|
88
86
|
while (!lastPage) {
|
|
89
|
-
__classPrivateFieldGet(this,
|
|
90
|
-
const result = await __classPrivateFieldGet(this,
|
|
87
|
+
__classPrivateFieldGet(this, _SubscriptionsListResult_client, "f").setPage(currentPage);
|
|
88
|
+
const result = await __classPrivateFieldGet(this, _SubscriptionsListResult_client, "f").listRaw(__classPrivateFieldGet(this, _SubscriptionsListResult_payload, "f"));
|
|
91
89
|
if (result.pagination.totalPage <= currentPage) {
|
|
92
90
|
lastPage = true;
|
|
93
91
|
}
|
|
@@ -110,5 +108,5 @@ class SubscriptionsListResult extends abstractEntity_1.AbstractEntity {
|
|
|
110
108
|
}
|
|
111
109
|
}
|
|
112
110
|
exports.SubscriptionsListResult = SubscriptionsListResult;
|
|
113
|
-
|
|
111
|
+
_SubscriptionsListResult_subscriptions = new WeakMap(), _SubscriptionsListResult_client = new WeakMap(), _SubscriptionsListResult_payload = new WeakMap(), _SubscriptionsListResult_currentPage = new WeakMap(), _SubscriptionsListResult_totalPage = new WeakMap(), _SubscriptionsListResult_nbResults = new WeakMap(), _SubscriptionsListResult_nextPageURL = new WeakMap(), _SubscriptionsListResult_previousPageURL = new WeakMap();
|
|
114
112
|
//# sourceMappingURL=subscriptionsListResult.js.map
|
|
@@ -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];
|
|
@@ -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 _IssueAttachment_id, _IssueAttachment_fileName, _IssueAttachment_mimeType, _IssueAttachment_content, _IssueAttachments_list;
|
|
16
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
15
|
exports.IssueAttachments = exports.IssueAttachment = exports.IssueAttachmentFields = void 0;
|
|
18
16
|
const abstractEntity_1 = require("../../../abstractEntity");
|
|
@@ -26,26 +24,26 @@ var IssueAttachmentFields;
|
|
|
26
24
|
class IssueAttachment extends abstractEntity_1.AbstractEntity {
|
|
27
25
|
constructor(input) {
|
|
28
26
|
super(input);
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
__classPrivateFieldSet(this,
|
|
34
|
-
__classPrivateFieldSet(this,
|
|
35
|
-
__classPrivateFieldSet(this,
|
|
36
|
-
__classPrivateFieldSet(this,
|
|
27
|
+
_IssueAttachment_id.set(this, void 0);
|
|
28
|
+
_IssueAttachment_fileName.set(this, void 0);
|
|
29
|
+
_IssueAttachment_mimeType.set(this, void 0);
|
|
30
|
+
_IssueAttachment_content.set(this, void 0);
|
|
31
|
+
__classPrivateFieldSet(this, _IssueAttachment_id, input[IssueAttachmentFields.COLUMN_ID], "f");
|
|
32
|
+
__classPrivateFieldSet(this, _IssueAttachment_fileName, input[IssueAttachmentFields.COLUMN_FILE_NAME], "f");
|
|
33
|
+
__classPrivateFieldSet(this, _IssueAttachment_mimeType, input[IssueAttachmentFields.COLUMN_MIME_TYPE], "f");
|
|
34
|
+
__classPrivateFieldSet(this, _IssueAttachment_content, input[IssueAttachmentFields.COLUMN_CONTENT], "f");
|
|
37
35
|
}
|
|
38
36
|
get id() {
|
|
39
|
-
return __classPrivateFieldGet(this,
|
|
37
|
+
return __classPrivateFieldGet(this, _IssueAttachment_id, "f");
|
|
40
38
|
}
|
|
41
39
|
get fileName() {
|
|
42
|
-
return __classPrivateFieldGet(this,
|
|
40
|
+
return __classPrivateFieldGet(this, _IssueAttachment_fileName, "f");
|
|
43
41
|
}
|
|
44
42
|
get mimeType() {
|
|
45
|
-
return __classPrivateFieldGet(this,
|
|
43
|
+
return __classPrivateFieldGet(this, _IssueAttachment_mimeType, "f");
|
|
46
44
|
}
|
|
47
45
|
get content() {
|
|
48
|
-
return __classPrivateFieldGet(this,
|
|
46
|
+
return __classPrivateFieldGet(this, _IssueAttachment_content, "f");
|
|
49
47
|
}
|
|
50
48
|
toJSON() {
|
|
51
49
|
return {
|
|
@@ -57,20 +55,20 @@ class IssueAttachment extends abstractEntity_1.AbstractEntity {
|
|
|
57
55
|
}
|
|
58
56
|
}
|
|
59
57
|
exports.IssueAttachment = IssueAttachment;
|
|
60
|
-
|
|
58
|
+
_IssueAttachment_id = new WeakMap(), _IssueAttachment_fileName = new WeakMap(), _IssueAttachment_mimeType = new WeakMap(), _IssueAttachment_content = new WeakMap();
|
|
61
59
|
class IssueAttachments extends abstractEntity_1.AbstractEntity {
|
|
62
60
|
constructor(input) {
|
|
63
61
|
super(input);
|
|
64
|
-
|
|
65
|
-
__classPrivateFieldSet(this,
|
|
62
|
+
_IssueAttachments_list.set(this, void 0);
|
|
63
|
+
__classPrivateFieldSet(this, _IssueAttachments_list, input.map((item) => new IssueAttachment(item)), "f");
|
|
66
64
|
}
|
|
67
65
|
get list() {
|
|
68
|
-
return __classPrivateFieldGet(this,
|
|
66
|
+
return __classPrivateFieldGet(this, _IssueAttachments_list, "f");
|
|
69
67
|
}
|
|
70
68
|
toJSON() {
|
|
71
69
|
return this.list.map((item) => item.toJSON());
|
|
72
70
|
}
|
|
73
71
|
}
|
|
74
72
|
exports.IssueAttachments = IssueAttachments;
|
|
75
|
-
|
|
73
|
+
_IssueAttachments_list = new WeakMap();
|
|
76
74
|
//# sourceMappingURL=attachment.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 _IssueComment_id, _IssueComment_body, _IssueComment_date, _IssueComment_createdBy, _IssueComments_list;
|
|
16
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
15
|
exports.IssueComments = exports.IssueComment = exports.IssueCommentFields = void 0;
|
|
18
16
|
const abstractEntity_1 = require("../../../abstractEntity");
|
|
@@ -27,30 +25,30 @@ var IssueCommentFields;
|
|
|
27
25
|
class IssueComment extends abstractEntity_1.AbstractEntity {
|
|
28
26
|
constructor(input) {
|
|
29
27
|
super(input);
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
__classPrivateFieldSet(this,
|
|
35
|
-
__classPrivateFieldSet(this,
|
|
36
|
-
__classPrivateFieldSet(this,
|
|
28
|
+
_IssueComment_id.set(this, void 0);
|
|
29
|
+
_IssueComment_body.set(this, void 0);
|
|
30
|
+
_IssueComment_date.set(this, void 0);
|
|
31
|
+
_IssueComment_createdBy.set(this, void 0);
|
|
32
|
+
__classPrivateFieldSet(this, _IssueComment_id, input[IssueCommentFields.COLUMN_ID], "f");
|
|
33
|
+
__classPrivateFieldSet(this, _IssueComment_body, input[IssueCommentFields.COLUMN_BODY], "f");
|
|
34
|
+
__classPrivateFieldSet(this, _IssueComment_date, input[IssueCommentFields.COLUMN_DATE]
|
|
37
35
|
? new Date(input[IssueCommentFields.COLUMN_DATE])
|
|
38
|
-
: undefined);
|
|
39
|
-
__classPrivateFieldSet(this,
|
|
36
|
+
: undefined, "f");
|
|
37
|
+
__classPrivateFieldSet(this, _IssueComment_createdBy, input[IssueCommentFields.COLUMN_CREATED_BY]
|
|
40
38
|
? new issue_1.IssueCreatedBy(input[IssueCommentFields.COLUMN_CREATED_BY])
|
|
41
|
-
: undefined);
|
|
39
|
+
: undefined, "f");
|
|
42
40
|
}
|
|
43
41
|
get id() {
|
|
44
|
-
return __classPrivateFieldGet(this,
|
|
42
|
+
return __classPrivateFieldGet(this, _IssueComment_id, "f");
|
|
45
43
|
}
|
|
46
44
|
get body() {
|
|
47
|
-
return __classPrivateFieldGet(this,
|
|
45
|
+
return __classPrivateFieldGet(this, _IssueComment_body, "f");
|
|
48
46
|
}
|
|
49
47
|
get date() {
|
|
50
|
-
return __classPrivateFieldGet(this,
|
|
48
|
+
return __classPrivateFieldGet(this, _IssueComment_date, "f");
|
|
51
49
|
}
|
|
52
50
|
get createdBy() {
|
|
53
|
-
return __classPrivateFieldGet(this,
|
|
51
|
+
return __classPrivateFieldGet(this, _IssueComment_createdBy, "f");
|
|
54
52
|
}
|
|
55
53
|
toJSON() {
|
|
56
54
|
var _a, _b;
|
|
@@ -63,20 +61,20 @@ class IssueComment extends abstractEntity_1.AbstractEntity {
|
|
|
63
61
|
}
|
|
64
62
|
}
|
|
65
63
|
exports.IssueComment = IssueComment;
|
|
66
|
-
|
|
64
|
+
_IssueComment_id = new WeakMap(), _IssueComment_body = new WeakMap(), _IssueComment_date = new WeakMap(), _IssueComment_createdBy = new WeakMap();
|
|
67
65
|
class IssueComments extends abstractEntity_1.AbstractEntity {
|
|
68
66
|
constructor(input) {
|
|
69
67
|
super(input);
|
|
70
|
-
|
|
71
|
-
__classPrivateFieldSet(this,
|
|
68
|
+
_IssueComments_list.set(this, void 0);
|
|
69
|
+
__classPrivateFieldSet(this, _IssueComments_list, input.map((item) => new IssueComment(item)), "f");
|
|
72
70
|
}
|
|
73
71
|
get list() {
|
|
74
|
-
return __classPrivateFieldGet(this,
|
|
72
|
+
return __classPrivateFieldGet(this, _IssueComments_list, "f");
|
|
75
73
|
}
|
|
76
74
|
toJSON() {
|
|
77
75
|
return this.list.map((item) => item.toJSON());
|
|
78
76
|
}
|
|
79
77
|
}
|
|
80
78
|
exports.IssueComments = IssueComments;
|
|
81
|
-
|
|
79
|
+
_IssueComments_list = new WeakMap();
|
|
82
80
|
//# sourceMappingURL=comment.js.map
|