@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.
Files changed (121) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/build/abstractEntity.js +16 -14
  3. package/build/abstractGraphQLClient.d.ts +1 -2
  4. package/build/abstractGraphQLClient.js +7 -32
  5. package/build/axiosSingleton.js +2 -2
  6. package/build/campaign/entities/campaign/banners/banners.js +34 -32
  7. package/build/campaign/entities/campaign/campaign.js +53 -51
  8. package/build/campaign/entities/campaign/landingPage/landingPage.js +26 -24
  9. package/build/campaign/entities/campaign/landingPage/landingPageBody.js +37 -35
  10. package/build/campaign/entities/campaign/landingPage/landingPageFooter/landingPageFooter.js +31 -29
  11. package/build/campaign/entities/campaign/landingPage/landingPageFooter/landingPageFooterFeature.js +25 -23
  12. package/build/campaign/entities/campaign/landingPage/landingPageHeader.js +31 -29
  13. package/build/campaign/entities/campaign/rules/rules.js +31 -29
  14. package/build/campaign/entities/campaignAssets/assets/assets.js +19 -17
  15. package/build/campaign/entities/campaignAssets/campaignAssets.js +16 -14
  16. package/build/campaign/entities/v2/campaign/banner/banner.js +34 -32
  17. package/build/campaign/entities/v2/campaign/campaign.js +50 -48
  18. package/build/campaign/entities/v2/campaign/landingPage/landingPage.js +26 -24
  19. package/build/campaign/entities/v2/campaign/landingPage/landingPageFooter/landingPageFooter.js +36 -34
  20. package/build/campaign/entities/v2/campaign/landingPage/landingPageFooter/landingPageFooterFeature.js +22 -20
  21. package/build/campaign/entities/v2/campaign/landingPage/landingPageFooter/landingPageFooterFeatureItem.js +34 -32
  22. package/build/campaign/entities/v2/campaign/landingPage/landingPageHeader.js +34 -32
  23. package/build/campaign/entities/v2/campaignList.js +16 -14
  24. package/build/campaign/index.js +1 -5
  25. package/build/cart/entities/index.js +1 -5
  26. package/build/cart/entities/item.js +28 -26
  27. package/build/cart/entities/itemList.js +16 -14
  28. package/build/cart/index.js +1 -5
  29. package/build/catalog/catalogGraphQLClient.d.ts +0 -2
  30. package/build/catalog/catalogGraphQLClient.js +1 -4
  31. package/build/catalog/index.js +1 -5
  32. package/build/catalog/types/catalogGraphQLTypes.js +0 -1
  33. package/build/consumption/entities/bi/consumptionBI.js +30 -28
  34. package/build/consumption/entities/bi/period/period.js +19 -17
  35. package/build/consumption/entities/bi/top/top.js +25 -23
  36. package/build/consumption/entities/consumption/consumption.js +19 -17
  37. package/build/consumption/index.js +1 -5
  38. package/build/contact/entities/contact.js +46 -44
  39. package/build/contact/entities/contactCreate.js +16 -14
  40. package/build/contact/entities/contactList.js +16 -14
  41. package/build/contact/index.js +1 -5
  42. package/build/customers/entities/customers/contact/contact.js +31 -29
  43. package/build/customers/entities/customers/customer.js +73 -71
  44. package/build/customers/entities/customers/customerContact/customerContact.js +40 -38
  45. package/build/customers/entities/customers/customerContact/customerContactList.js +16 -14
  46. package/build/customers/entities/customers/details/details.js +31 -29
  47. package/build/customers/entities/dataCustomers.js +16 -14
  48. package/build/customers/entities/dataInvitation.js +31 -29
  49. package/build/customers/entities/invitations/company/company.js +16 -14
  50. package/build/customers/entities/invitations/contact/invitationContact.js +28 -26
  51. package/build/customers/index.js +1 -5
  52. package/build/exception/index.js +1 -5
  53. package/build/general/entities/whoAmI.js +61 -59
  54. package/build/general/index.js +1 -5
  55. package/build/getResult.js +23 -21
  56. package/build/index.js +1 -5
  57. package/build/licenses/entities/filterFindResult.js +19 -17
  58. package/build/licenses/entities/findResult.js +38 -36
  59. package/build/licenses/entities/getLicense/actionMessagesGetResult.js +28 -26
  60. package/build/licenses/entities/getLicense/actionsGetResult.js +43 -41
  61. package/build/licenses/entities/getLicense/buySellFindResult.js +19 -17
  62. package/build/licenses/entities/getLicense/licenseGetResult.js +107 -105
  63. package/build/licenses/entities/getLicense/licensePriceGetResult.js +22 -20
  64. package/build/licenses/entities/getLicense/orderGetResult.js +19 -17
  65. package/build/licenses/entities/getResult/getLicenseResult.js +16 -14
  66. package/build/licenses/entities/history/actionHistoryResult.js +25 -23
  67. package/build/licenses/entities/history/licenceHistoryResult.js +16 -14
  68. package/build/licenses/entities/license/activeSeatsFindResult.js +19 -17
  69. package/build/licenses/entities/license/configFindResult.js +22 -20
  70. package/build/licenses/entities/license/licenseFindResult.js +136 -134
  71. package/build/licenses/entities/license/priceFindResult.js +28 -26
  72. package/build/licenses/entities/license/warningFindResult.js +19 -17
  73. package/build/licenses/entities/offer/actionFlagsFindResult.js +22 -20
  74. package/build/licenses/entities/offer/offerFindResult.js +34 -32
  75. package/build/licenses/entities/offer/priceBandFindResult.js +37 -35
  76. package/build/licenses/entities/offer/priceband/billingFindResult.js +22 -20
  77. package/build/licenses/entities/offer/priceband/identifiers/arrowsphereFindResult.js +16 -14
  78. package/build/licenses/entities/offer/priceband/identifiersFindResult.js +16 -14
  79. package/build/licenses/entities/offer/priceband/priceBandActionFlagsFindResult.js +28 -26
  80. package/build/licenses/entities/offer/priceband/priceBandPriceFindResult.js +22 -20
  81. package/build/licenses/entities/offer/priceband/saleConstraintsFindResult.js +19 -17
  82. package/build/licenses/index.js +1 -5
  83. package/build/orders/entities/dataListOrders.js +16 -14
  84. package/build/orders/entities/orders/order.js +41 -39
  85. package/build/orders/entities/orders/partner/partner.js +19 -17
  86. package/build/orders/entities/orders/products/identifiers/productIdentifiers.js +16 -14
  87. package/build/orders/entities/orders/products/identifiers/vendor/identifiersVendor.js +16 -14
  88. package/build/orders/entities/orders/products/prices/productPrices.js +34 -32
  89. package/build/orders/entities/orders/products/products.js +58 -56
  90. package/build/orders/entities/orders/products/program/productProgram.js +16 -14
  91. package/build/orders/entities/referenceLink.js +19 -17
  92. package/build/orders/index.js +1 -5
  93. package/build/orders/ordersClient.d.ts +58 -3
  94. package/build/orders/ordersClient.js +25 -1
  95. package/build/pagination.js +31 -29
  96. package/build/security/index.js +1 -5
  97. package/build/security/register/entity/registrationLink.js +16 -14
  98. package/build/security/register/index.js +1 -5
  99. package/build/security/standards/entities/checks/checks.js +19 -17
  100. package/build/security/standards/entities/checks/securityChecks.js +40 -38
  101. package/build/security/standards/entities/resources/resources.js +28 -26
  102. package/build/security/standards/entities/resources/securityResources.js +19 -17
  103. package/build/security/standards/entities/standards/securityStandards.js +31 -29
  104. package/build/security/standards/entities/standards/standards.js +19 -17
  105. package/build/security/standards/index.js +1 -5
  106. package/build/shared/index.js +1 -5
  107. package/build/subscriptions/entities/subscription.js +58 -56
  108. package/build/subscriptions/entities/subscriptionsListResult.js +41 -39
  109. package/build/subscriptions/index.js +1 -5
  110. package/build/supportCenter/entities/issue/attachment.js +29 -27
  111. package/build/supportCenter/entities/issue/comment.js +31 -29
  112. package/build/supportCenter/entities/issue/issue.js +108 -106
  113. package/build/supportCenter/entities/topic.js +32 -30
  114. package/build/supportCenter/index.js +1 -5
  115. package/package.json +3 -5
  116. package/build/catalog/types/catalogGraphQLQueries.d.ts +0 -12
  117. package/build/catalog/types/catalogGraphQLQueries.js +0 -3
  118. package/build/catalog/types/catalogGraphQLSchemas.d.ts +0 -30
  119. package/build/catalog/types/catalogGraphQLSchemas.js +0 -4
  120. package/build/catalog/types/queryArguments.d.ts +0 -42
  121. package/build/catalog/types/queryArguments.js +0 -9
@@ -1,16 +1,18 @@
1
1
  "use strict";
2
- var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
3
- if (kind === "m") throw new TypeError("Private method is not writable");
4
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
6
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
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, 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);
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 _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;
15
+ var _subscriptionId, _partnerTagLabels, _workgroupCode, _companyName, _subscription, _startDate, _endDate, _lastUpdate, _status, _subscriptionDateValidation, _subscriptionDateDemand, _clickToAccept, _unvalidated, _version, _number;
14
16
  Object.defineProperty(exports, "__esModule", { value: true });
15
17
  exports.Subscription = exports.SubscriptionFields = void 0;
16
18
  const abstractEntity_1 = require("../../abstractEntity");
@@ -60,81 +62,81 @@ class Subscription extends abstractEntity_1.AbstractEntity {
60
62
  [SubscriptionFields.COLUMN_VERSION]: 'required|number',
61
63
  [SubscriptionFields.COLUMN_NUMBER]: 'required|number',
62
64
  };
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");
65
+ _subscriptionId.set(this, void 0);
66
+ _partnerTagLabels.set(this, void 0);
67
+ _workgroupCode.set(this, void 0);
68
+ _companyName.set(this, void 0);
69
+ _subscription.set(this, void 0);
70
+ _startDate.set(this, void 0);
71
+ _endDate.set(this, void 0);
72
+ _lastUpdate.set(this, void 0);
73
+ _status.set(this, void 0);
74
+ _subscriptionDateValidation.set(this, void 0);
75
+ _subscriptionDateDemand.set(this, void 0);
76
+ _clickToAccept.set(this, void 0);
77
+ _unvalidated.set(this, void 0);
78
+ _version.set(this, void 0);
79
+ _number.set(this, void 0);
80
+ __classPrivateFieldSet(this, _subscriptionId, data[SubscriptionFields.COLUMN_SUBSCRIPTION_ID]);
81
+ __classPrivateFieldSet(this, _partnerTagLabels, data[SubscriptionFields.COLUMN_PARTNER_TAG_LABELS]);
82
+ __classPrivateFieldSet(this, _workgroupCode, data[SubscriptionFields.COLUMN_WORKGROUP_CODE]);
83
+ __classPrivateFieldSet(this, _companyName, data[SubscriptionFields.COLUMN_COMPANY_NAME]);
84
+ __classPrivateFieldSet(this, _subscription, data[SubscriptionFields.COLUMN_SUBSCRIPTION]);
85
+ __classPrivateFieldSet(this, _startDate, data[SubscriptionFields.COLUMN_START_DATE]);
86
+ __classPrivateFieldSet(this, _endDate, data[SubscriptionFields.COLUMN_END_DATE]);
87
+ __classPrivateFieldSet(this, _lastUpdate, data[SubscriptionFields.COLUMN_LAST_UPDATE]);
88
+ __classPrivateFieldSet(this, _status, data[SubscriptionFields.COLUMN_STATUS]);
89
+ __classPrivateFieldSet(this, _subscriptionDateValidation, data[SubscriptionFields.COLUMN_SUBSCRIPTION_DATEVALIDATION]);
90
+ __classPrivateFieldSet(this, _subscriptionDateDemand, data[SubscriptionFields.COLUMN_SUBSCRIPTION_DATEDEMAND]);
91
+ __classPrivateFieldSet(this, _clickToAccept, data[SubscriptionFields.COLUMN_CLICK_TO_ACCEPT]);
92
+ __classPrivateFieldSet(this, _unvalidated, data[SubscriptionFields.COLUMN_UNVALIDATED]);
93
+ __classPrivateFieldSet(this, _version, data[SubscriptionFields.COLUMN_VERSION]);
94
+ __classPrivateFieldSet(this, _number, data[SubscriptionFields.COLUMN_NUMBER]);
93
95
  }
94
96
  get subscriptionId() {
95
- return __classPrivateFieldGet(this, _Subscription_subscriptionId, "f");
97
+ return __classPrivateFieldGet(this, _subscriptionId);
96
98
  }
97
99
  get partnerTagLabels() {
98
- return __classPrivateFieldGet(this, _Subscription_partnerTagLabels, "f");
100
+ return __classPrivateFieldGet(this, _partnerTagLabels);
99
101
  }
100
102
  get workgroupCode() {
101
- return __classPrivateFieldGet(this, _Subscription_workgroupCode, "f");
103
+ return __classPrivateFieldGet(this, _workgroupCode);
102
104
  }
103
105
  get companyName() {
104
- return __classPrivateFieldGet(this, _Subscription_companyName, "f");
106
+ return __classPrivateFieldGet(this, _companyName);
105
107
  }
106
108
  get subscription() {
107
- return __classPrivateFieldGet(this, _Subscription_subscription, "f");
109
+ return __classPrivateFieldGet(this, _subscription);
108
110
  }
109
111
  get startDate() {
110
- return __classPrivateFieldGet(this, _Subscription_startDate, "f");
112
+ return __classPrivateFieldGet(this, _startDate);
111
113
  }
112
114
  get endDate() {
113
- return __classPrivateFieldGet(this, _Subscription_endDate, "f");
115
+ return __classPrivateFieldGet(this, _endDate);
114
116
  }
115
117
  get lastUpdate() {
116
- return __classPrivateFieldGet(this, _Subscription_lastUpdate, "f");
118
+ return __classPrivateFieldGet(this, _lastUpdate);
117
119
  }
118
120
  get status() {
119
- return __classPrivateFieldGet(this, _Subscription_status, "f");
121
+ return __classPrivateFieldGet(this, _status);
120
122
  }
121
123
  get subscriptionDateValidation() {
122
- return __classPrivateFieldGet(this, _Subscription_subscriptionDateValidation, "f");
124
+ return __classPrivateFieldGet(this, _subscriptionDateValidation);
123
125
  }
124
126
  get subscriptionDateDemand() {
125
- return __classPrivateFieldGet(this, _Subscription_subscriptionDateDemand, "f");
127
+ return __classPrivateFieldGet(this, _subscriptionDateDemand);
126
128
  }
127
129
  get clickToAccept() {
128
- return __classPrivateFieldGet(this, _Subscription_clickToAccept, "f");
130
+ return __classPrivateFieldGet(this, _clickToAccept);
129
131
  }
130
132
  get unvalidated() {
131
- return __classPrivateFieldGet(this, _Subscription_unvalidated, "f");
133
+ return __classPrivateFieldGet(this, _unvalidated);
132
134
  }
133
135
  get version() {
134
- return __classPrivateFieldGet(this, _Subscription_version, "f");
136
+ return __classPrivateFieldGet(this, _version);
135
137
  }
136
138
  get number() {
137
- return __classPrivateFieldGet(this, _Subscription_number, "f");
139
+ return __classPrivateFieldGet(this, _number);
138
140
  }
139
141
  /**
140
142
  * Plain JSON object representation of the subscription entity.
@@ -162,5 +164,5 @@ class Subscription extends abstractEntity_1.AbstractEntity {
162
164
  }
163
165
  }
164
166
  exports.Subscription = Subscription;
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();
167
+ _subscriptionId = new WeakMap(), _partnerTagLabels = new WeakMap(), _workgroupCode = new WeakMap(), _companyName = new WeakMap(), _subscription = new WeakMap(), _startDate = new WeakMap(), _endDate = new WeakMap(), _lastUpdate = new WeakMap(), _status = new WeakMap(), _subscriptionDateValidation = new WeakMap(), _subscriptionDateDemand = new WeakMap(), _clickToAccept = new WeakMap(), _unvalidated = new WeakMap(), _version = new WeakMap(), _number = new WeakMap();
166
168
  //# sourceMappingURL=subscription.js.map
@@ -1,16 +1,18 @@
1
1
  "use strict";
2
- var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
3
- if (kind === "m") throw new TypeError("Private method is not writable");
4
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
6
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
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, 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);
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 _SubscriptionsListResult_subscriptions, _SubscriptionsListResult_client, _SubscriptionsListResult_payload, _SubscriptionsListResult_currentPage, _SubscriptionsListResult_totalPage, _SubscriptionsListResult_nbResults, _SubscriptionsListResult_nextPageURL, _SubscriptionsListResult_previousPageURL;
15
+ var _subscriptions, _client, _payload, _currentPage, _totalPage, _nbResults, _nextPageURL, _previousPageURL;
14
16
  Object.defineProperty(exports, "__esModule", { value: true });
15
17
  exports.SubscriptionsListResult = void 0;
16
18
  const abstractEntity_1 = require("../../abstractEntity");
@@ -24,53 +26,53 @@ class SubscriptionsListResult extends abstractEntity_1.AbstractEntity {
24
26
  */
25
27
  constructor(response, client, payload = {}) {
26
28
  super(response);
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");
29
+ _subscriptions.set(this, void 0);
30
+ _client.set(this, void 0);
31
+ _payload.set(this, void 0);
32
+ _currentPage.set(this, void 0);
33
+ _totalPage.set(this, void 0);
34
+ _nbResults.set(this, void 0);
35
+ _nextPageURL.set(this, void 0);
36
+ _previousPageURL.set(this, void 0);
37
+ __classPrivateFieldSet(this, _client, client);
38
+ __classPrivateFieldSet(this, _payload, payload);
39
+ __classPrivateFieldSet(this, _currentPage, response.pagination.currentPage);
40
+ __classPrivateFieldSet(this, _totalPage, response.pagination.totalPage);
41
+ __classPrivateFieldSet(this, _nbResults, response.pagination.total);
42
+ __classPrivateFieldSet(this, _nextPageURL, response.pagination.next);
43
+ __classPrivateFieldSet(this, _previousPageURL, response.pagination.previous);
44
+ __classPrivateFieldSet(this, _subscriptions, response.data.map((subscriptionData) => new subscription_1.Subscription(subscriptionData).toJSON()));
43
45
  }
44
46
  get subscriptions() {
45
47
  return this.getSubscriptions();
46
48
  }
47
49
  get client() {
48
- return __classPrivateFieldGet(this, _SubscriptionsListResult_client, "f");
50
+ return __classPrivateFieldGet(this, _client);
49
51
  }
50
52
  get payload() {
51
- return __classPrivateFieldGet(this, _SubscriptionsListResult_payload, "f");
53
+ return __classPrivateFieldGet(this, _payload);
52
54
  }
53
55
  get currentPage() {
54
- return __classPrivateFieldGet(this, _SubscriptionsListResult_currentPage, "f");
56
+ return __classPrivateFieldGet(this, _currentPage);
55
57
  }
56
58
  get totalPage() {
57
- return __classPrivateFieldGet(this, _SubscriptionsListResult_totalPage, "f");
59
+ return __classPrivateFieldGet(this, _totalPage);
58
60
  }
59
61
  get nbResults() {
60
- return __classPrivateFieldGet(this, _SubscriptionsListResult_nbResults, "f");
62
+ return __classPrivateFieldGet(this, _nbResults);
61
63
  }
62
64
  get nextPageURL() {
63
- return __classPrivateFieldGet(this, _SubscriptionsListResult_nextPageURL, "f");
65
+ return __classPrivateFieldGet(this, _nextPageURL);
64
66
  }
65
67
  get previousPageURL() {
66
- return __classPrivateFieldGet(this, _SubscriptionsListResult_previousPageURL, "f");
68
+ return __classPrivateFieldGet(this, _previousPageURL);
67
69
  }
68
70
  /**
69
71
  * Gets all the subscriptions for the current page
70
72
  * @returns Generator|{@link SubscriptionData}[]
71
73
  */
72
74
  *getSubscriptionsForCurrentPage() {
73
- yield* __classPrivateFieldGet(this, _SubscriptionsListResult_subscriptions, "f");
75
+ yield* __classPrivateFieldGet(this, _subscriptions);
74
76
  }
75
77
  /**
76
78
  * Gets all the subscriptions from the result, page per page.
@@ -81,11 +83,11 @@ class SubscriptionsListResult extends abstractEntity_1.AbstractEntity {
81
83
  // Yields the first page
82
84
  yield* this.getSubscriptionsForCurrentPage();
83
85
  // Then parse the other pages
84
- let currentPage = __classPrivateFieldGet(this, _SubscriptionsListResult_currentPage, "f") + 1;
85
- let lastPage = __classPrivateFieldGet(this, _SubscriptionsListResult_totalPage, "f") < currentPage;
86
+ let currentPage = __classPrivateFieldGet(this, _currentPage) + 1;
87
+ let lastPage = __classPrivateFieldGet(this, _totalPage) < currentPage;
86
88
  while (!lastPage) {
87
- __classPrivateFieldGet(this, _SubscriptionsListResult_client, "f").setPage(currentPage);
88
- const result = await __classPrivateFieldGet(this, _SubscriptionsListResult_client, "f").listRaw(__classPrivateFieldGet(this, _SubscriptionsListResult_payload, "f"));
89
+ __classPrivateFieldGet(this, _client).setPage(currentPage);
90
+ const result = await __classPrivateFieldGet(this, _client).listRaw(__classPrivateFieldGet(this, _payload));
89
91
  if (result.pagination.totalPage <= currentPage) {
90
92
  lastPage = true;
91
93
  }
@@ -108,5 +110,5 @@ class SubscriptionsListResult extends abstractEntity_1.AbstractEntity {
108
110
  }
109
111
  }
110
112
  exports.SubscriptionsListResult = SubscriptionsListResult;
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();
113
+ _subscriptions = new WeakMap(), _client = new WeakMap(), _payload = new WeakMap(), _currentPage = new WeakMap(), _totalPage = new WeakMap(), _nbResults = new WeakMap(), _nextPageURL = new WeakMap(), _previousPageURL = new WeakMap();
112
114
  //# sourceMappingURL=subscriptionsListResult.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
- 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);
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];
@@ -1,16 +1,18 @@
1
1
  "use strict";
2
- var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
3
- if (kind === "m") throw new TypeError("Private method is not writable");
4
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
6
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
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, 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);
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 _IssueAttachment_id, _IssueAttachment_fileName, _IssueAttachment_mimeType, _IssueAttachment_content, _IssueAttachments_list;
15
+ var _id, _fileName, _mimeType, _content, _list;
14
16
  Object.defineProperty(exports, "__esModule", { value: true });
15
17
  exports.IssueAttachments = exports.IssueAttachment = exports.IssueAttachmentFields = void 0;
16
18
  const abstractEntity_1 = require("../../../abstractEntity");
@@ -24,26 +26,26 @@ var IssueAttachmentFields;
24
26
  class IssueAttachment extends abstractEntity_1.AbstractEntity {
25
27
  constructor(input) {
26
28
  super(input);
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");
29
+ _id.set(this, void 0);
30
+ _fileName.set(this, void 0);
31
+ _mimeType.set(this, void 0);
32
+ _content.set(this, void 0);
33
+ __classPrivateFieldSet(this, _id, input[IssueAttachmentFields.COLUMN_ID]);
34
+ __classPrivateFieldSet(this, _fileName, input[IssueAttachmentFields.COLUMN_FILE_NAME]);
35
+ __classPrivateFieldSet(this, _mimeType, input[IssueAttachmentFields.COLUMN_MIME_TYPE]);
36
+ __classPrivateFieldSet(this, _content, input[IssueAttachmentFields.COLUMN_CONTENT]);
35
37
  }
36
38
  get id() {
37
- return __classPrivateFieldGet(this, _IssueAttachment_id, "f");
39
+ return __classPrivateFieldGet(this, _id);
38
40
  }
39
41
  get fileName() {
40
- return __classPrivateFieldGet(this, _IssueAttachment_fileName, "f");
42
+ return __classPrivateFieldGet(this, _fileName);
41
43
  }
42
44
  get mimeType() {
43
- return __classPrivateFieldGet(this, _IssueAttachment_mimeType, "f");
45
+ return __classPrivateFieldGet(this, _mimeType);
44
46
  }
45
47
  get content() {
46
- return __classPrivateFieldGet(this, _IssueAttachment_content, "f");
48
+ return __classPrivateFieldGet(this, _content);
47
49
  }
48
50
  toJSON() {
49
51
  return {
@@ -55,20 +57,20 @@ class IssueAttachment extends abstractEntity_1.AbstractEntity {
55
57
  }
56
58
  }
57
59
  exports.IssueAttachment = IssueAttachment;
58
- _IssueAttachment_id = new WeakMap(), _IssueAttachment_fileName = new WeakMap(), _IssueAttachment_mimeType = new WeakMap(), _IssueAttachment_content = new WeakMap();
60
+ _id = new WeakMap(), _fileName = new WeakMap(), _mimeType = new WeakMap(), _content = new WeakMap();
59
61
  class IssueAttachments extends abstractEntity_1.AbstractEntity {
60
62
  constructor(input) {
61
63
  super(input);
62
- _IssueAttachments_list.set(this, void 0);
63
- __classPrivateFieldSet(this, _IssueAttachments_list, input.map((item) => new IssueAttachment(item)), "f");
64
+ _list.set(this, void 0);
65
+ __classPrivateFieldSet(this, _list, input.map((item) => new IssueAttachment(item)));
64
66
  }
65
67
  get list() {
66
- return __classPrivateFieldGet(this, _IssueAttachments_list, "f");
68
+ return __classPrivateFieldGet(this, _list);
67
69
  }
68
70
  toJSON() {
69
71
  return this.list.map((item) => item.toJSON());
70
72
  }
71
73
  }
72
74
  exports.IssueAttachments = IssueAttachments;
73
- _IssueAttachments_list = new WeakMap();
75
+ _list = new WeakMap();
74
76
  //# sourceMappingURL=attachment.js.map
@@ -1,16 +1,18 @@
1
1
  "use strict";
2
- var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
3
- if (kind === "m") throw new TypeError("Private method is not writable");
4
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
6
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
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, 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);
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 _IssueComment_id, _IssueComment_body, _IssueComment_date, _IssueComment_createdBy, _IssueComments_list;
15
+ var _id, _body, _date, _createdBy, _list;
14
16
  Object.defineProperty(exports, "__esModule", { value: true });
15
17
  exports.IssueComments = exports.IssueComment = exports.IssueCommentFields = void 0;
16
18
  const abstractEntity_1 = require("../../../abstractEntity");
@@ -25,30 +27,30 @@ var IssueCommentFields;
25
27
  class IssueComment extends abstractEntity_1.AbstractEntity {
26
28
  constructor(input) {
27
29
  super(input);
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]
30
+ _id.set(this, void 0);
31
+ _body.set(this, void 0);
32
+ _date.set(this, void 0);
33
+ _createdBy.set(this, void 0);
34
+ __classPrivateFieldSet(this, _id, input[IssueCommentFields.COLUMN_ID]);
35
+ __classPrivateFieldSet(this, _body, input[IssueCommentFields.COLUMN_BODY]);
36
+ __classPrivateFieldSet(this, _date, input[IssueCommentFields.COLUMN_DATE]
35
37
  ? new Date(input[IssueCommentFields.COLUMN_DATE])
36
- : undefined, "f");
37
- __classPrivateFieldSet(this, _IssueComment_createdBy, input[IssueCommentFields.COLUMN_CREATED_BY]
38
+ : undefined);
39
+ __classPrivateFieldSet(this, _createdBy, input[IssueCommentFields.COLUMN_CREATED_BY]
38
40
  ? new issue_1.IssueCreatedBy(input[IssueCommentFields.COLUMN_CREATED_BY])
39
- : undefined, "f");
41
+ : undefined);
40
42
  }
41
43
  get id() {
42
- return __classPrivateFieldGet(this, _IssueComment_id, "f");
44
+ return __classPrivateFieldGet(this, _id);
43
45
  }
44
46
  get body() {
45
- return __classPrivateFieldGet(this, _IssueComment_body, "f");
47
+ return __classPrivateFieldGet(this, _body);
46
48
  }
47
49
  get date() {
48
- return __classPrivateFieldGet(this, _IssueComment_date, "f");
50
+ return __classPrivateFieldGet(this, _date);
49
51
  }
50
52
  get createdBy() {
51
- return __classPrivateFieldGet(this, _IssueComment_createdBy, "f");
53
+ return __classPrivateFieldGet(this, _createdBy);
52
54
  }
53
55
  toJSON() {
54
56
  var _a, _b;
@@ -61,20 +63,20 @@ class IssueComment extends abstractEntity_1.AbstractEntity {
61
63
  }
62
64
  }
63
65
  exports.IssueComment = IssueComment;
64
- _IssueComment_id = new WeakMap(), _IssueComment_body = new WeakMap(), _IssueComment_date = new WeakMap(), _IssueComment_createdBy = new WeakMap();
66
+ _id = new WeakMap(), _body = new WeakMap(), _date = new WeakMap(), _createdBy = new WeakMap();
65
67
  class IssueComments extends abstractEntity_1.AbstractEntity {
66
68
  constructor(input) {
67
69
  super(input);
68
- _IssueComments_list.set(this, void 0);
69
- __classPrivateFieldSet(this, _IssueComments_list, input.map((item) => new IssueComment(item)), "f");
70
+ _list.set(this, void 0);
71
+ __classPrivateFieldSet(this, _list, input.map((item) => new IssueComment(item)));
70
72
  }
71
73
  get list() {
72
- return __classPrivateFieldGet(this, _IssueComments_list, "f");
74
+ return __classPrivateFieldGet(this, _list);
73
75
  }
74
76
  toJSON() {
75
77
  return this.list.map((item) => item.toJSON());
76
78
  }
77
79
  }
78
80
  exports.IssueComments = IssueComments;
79
- _IssueComments_list = new WeakMap();
81
+ _list = new WeakMap();
80
82
  //# sourceMappingURL=comment.js.map