@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 _IssueOffer_sku, _IssueOffer_name, _IssueOffer_vendor, _IssueCreatedBy_email, _IssueCreatedBy_firstName, _IssueCreatedBy_lastName, _IssueCreatedBy_phone, _IssueSupportPlan_sku, _IssueSupportPlan_label, _IssueSupportPlan_sourcePortal, _IssueAdditionalData_name, _IssueAdditionalData_value, _Issue_id, _Issue_title, _Issue_description, _Issue_topicId, _Issue_endCustomerRef, _Issue_language, _Issue_offer, _Issue_priority, _Issue_status, _Issue_createdBy, _Issue_supportPlan, _Issue_program, _Issue_additionalData, _Issue_created, _Issue_updated, _Issues_list;
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
- _IssueOffer_sku.set(this, void 0);
72
- _IssueOffer_name.set(this, void 0);
73
- _IssueOffer_vendor.set(this, void 0);
74
- __classPrivateFieldSet(this, _IssueOffer_sku, input[IssueOfferFields.COLUMN_SKU], "f");
75
- __classPrivateFieldSet(this, _IssueOffer_name, input[IssueOfferFields.COLUMN_NAME], "f");
76
- __classPrivateFieldSet(this, _IssueOffer_vendor, input[IssueOfferFields.COLUMN_VENDOR], "f");
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, _IssueOffer_sku, "f");
81
+ return __classPrivateFieldGet(this, _sku);
80
82
  }
81
83
  get name() {
82
- return __classPrivateFieldGet(this, _IssueOffer_name, "f");
84
+ return __classPrivateFieldGet(this, _name);
83
85
  }
84
86
  get vendor() {
85
- return __classPrivateFieldGet(this, _IssueOffer_vendor, "f");
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
- _IssueOffer_sku = new WeakMap(), _IssueOffer_name = new WeakMap(), _IssueOffer_vendor = new WeakMap();
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
- _IssueCreatedBy_email.set(this, void 0);
101
- _IssueCreatedBy_firstName.set(this, void 0);
102
- _IssueCreatedBy_lastName.set(this, void 0);
103
- _IssueCreatedBy_phone.set(this, void 0);
104
- __classPrivateFieldSet(this, _IssueCreatedBy_email, input[IssueCreatedByFields.COLUMN_EMAIL], "f");
105
- __classPrivateFieldSet(this, _IssueCreatedBy_firstName, input[IssueCreatedByFields.COLUMN_FIRST_NAME], "f");
106
- __classPrivateFieldSet(this, _IssueCreatedBy_lastName, input[IssueCreatedByFields.COLUMN_LAST_NAME], "f");
107
- __classPrivateFieldSet(this, _IssueCreatedBy_phone, input[IssueCreatedByFields.COLUMN_PHONE], "f");
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, _IssueCreatedBy_email, "f");
112
+ return __classPrivateFieldGet(this, _email);
111
113
  }
112
114
  get firstName() {
113
- return __classPrivateFieldGet(this, _IssueCreatedBy_firstName, "f");
115
+ return __classPrivateFieldGet(this, _firstName);
114
116
  }
115
117
  get lastName() {
116
- return __classPrivateFieldGet(this, _IssueCreatedBy_lastName, "f");
118
+ return __classPrivateFieldGet(this, _lastName);
117
119
  }
118
120
  get phone() {
119
- return __classPrivateFieldGet(this, _IssueCreatedBy_phone, "f");
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
- _IssueCreatedBy_email = new WeakMap(), _IssueCreatedBy_firstName = new WeakMap(), _IssueCreatedBy_lastName = new WeakMap(), _IssueCreatedBy_phone = new WeakMap();
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
- _IssueSupportPlan_sku.set(this, void 0);
136
- _IssueSupportPlan_label.set(this, void 0);
137
- _IssueSupportPlan_sourcePortal.set(this, void 0);
138
- __classPrivateFieldSet(this, _IssueSupportPlan_sku, input[IssueSupportPlanFields.COLUMN_SKU], "f");
139
- __classPrivateFieldSet(this, _IssueSupportPlan_label, input[IssueSupportPlanFields.COLUMN_LABEL], "f");
140
- __classPrivateFieldSet(this, _IssueSupportPlan_sourcePortal, input[IssueSupportPlanFields.COLUMN_SOURCE_PORTAL], "f");
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, _IssueSupportPlan_sku, "f");
145
+ return __classPrivateFieldGet(this, _sku_1);
144
146
  }
145
147
  get label() {
146
- return __classPrivateFieldGet(this, _IssueSupportPlan_label, "f");
148
+ return __classPrivateFieldGet(this, _label);
147
149
  }
148
150
  get sourcePortal() {
149
- return __classPrivateFieldGet(this, _IssueSupportPlan_sourcePortal, "f");
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
- _IssueSupportPlan_sku = new WeakMap(), _IssueSupportPlan_label = new WeakMap(), _IssueSupportPlan_sourcePortal = new WeakMap();
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
- _IssueAdditionalData_name.set(this, void 0);
165
- _IssueAdditionalData_value.set(this, void 0);
166
- __classPrivateFieldSet(this, _IssueAdditionalData_name, input[IssueAdditionalDataFields.COLUMN_NAME], "f");
167
- __classPrivateFieldSet(this, _IssueAdditionalData_value, input[IssueAdditionalDataFields.COLUMN_VALUE], "f");
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, _IssueAdditionalData_name, "f");
172
+ return __classPrivateFieldGet(this, _name_1);
171
173
  }
172
174
  get value() {
173
- return __classPrivateFieldGet(this, _IssueAdditionalData_value, "f");
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
- _IssueAdditionalData_name = new WeakMap(), _IssueAdditionalData_value = new WeakMap();
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
- _Issue_id.set(this, void 0);
188
- _Issue_title.set(this, void 0);
189
- _Issue_description.set(this, void 0);
190
- _Issue_topicId.set(this, void 0);
191
- _Issue_endCustomerRef.set(this, void 0);
192
- _Issue_language.set(this, void 0);
193
- _Issue_offer.set(this, void 0);
194
- _Issue_priority.set(this, void 0);
195
- _Issue_status.set(this, void 0);
196
- _Issue_createdBy.set(this, void 0);
197
- _Issue_supportPlan.set(this, void 0);
198
- _Issue_program.set(this, void 0);
199
- _Issue_additionalData.set(this, void 0);
200
- _Issue_created.set(this, void 0);
201
- _Issue_updated.set(this, void 0);
202
- __classPrivateFieldSet(this, _Issue_id, input[IssueFields.COLUMN_ID], "f");
203
- __classPrivateFieldSet(this, _Issue_title, input[IssueFields.COLUMN_TITLE], "f");
204
- __classPrivateFieldSet(this, _Issue_description, input[IssueFields.COLUMN_DESCRIPTION], "f");
205
- __classPrivateFieldSet(this, _Issue_topicId, input[IssueFields.COLUMN_TOPIC_ID], "f");
206
- __classPrivateFieldSet(this, _Issue_endCustomerRef, input[IssueFields.COLUMN_END_CUSTOMER_REF], "f");
207
- __classPrivateFieldSet(this, _Issue_language, input[IssueFields.COLUMN_LANGUAGE], "f");
208
- __classPrivateFieldSet(this, _Issue_offer, input[IssueFields.COLUMN_OFFER]
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, "f");
211
- __classPrivateFieldSet(this, _Issue_priority, input[IssueFields.COLUMN_PRIORITY], "f");
212
- __classPrivateFieldSet(this, _Issue_status, input[IssueFields.COLUMN_STATUS], "f");
213
- __classPrivateFieldSet(this, _Issue_createdBy, input[IssueFields.COLUMN_CREATED_BY]
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, "f");
216
- __classPrivateFieldSet(this, _Issue_supportPlan, input[IssueFields.COLUMN_SUPPORT_PLAN]
217
+ : undefined);
218
+ __classPrivateFieldSet(this, _supportPlan, input[IssueFields.COLUMN_SUPPORT_PLAN]
217
219
  ? new IssueSupportPlan(input[IssueFields.COLUMN_SUPPORT_PLAN])
218
- : undefined, "f");
219
- __classPrivateFieldSet(this, _Issue_program, input[IssueFields.COLUMN_PROGRAM], "f");
220
- __classPrivateFieldSet(this, _Issue_additionalData, input[IssueFields.COLUMN_ADDITIONAL_DATA]
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, "f");
223
- __classPrivateFieldSet(this, _Issue_created, input[IssueFields.COLUMN_CREATED]
224
+ : undefined);
225
+ __classPrivateFieldSet(this, _created, input[IssueFields.COLUMN_CREATED]
224
226
  ? new Date(input[IssueFields.COLUMN_CREATED])
225
- : undefined, "f");
226
- __classPrivateFieldSet(this, _Issue_updated, input[IssueFields.COLUMN_UPDATED]
227
+ : undefined);
228
+ __classPrivateFieldSet(this, _updated, input[IssueFields.COLUMN_UPDATED]
227
229
  ? new Date(input[IssueFields.COLUMN_UPDATED])
228
- : undefined, "f");
230
+ : undefined);
229
231
  }
230
232
  get id() {
231
- return __classPrivateFieldGet(this, _Issue_id, "f");
233
+ return __classPrivateFieldGet(this, _id);
232
234
  }
233
235
  get title() {
234
- return __classPrivateFieldGet(this, _Issue_title, "f");
236
+ return __classPrivateFieldGet(this, _title);
235
237
  }
236
238
  get description() {
237
- return __classPrivateFieldGet(this, _Issue_description, "f");
239
+ return __classPrivateFieldGet(this, _description);
238
240
  }
239
241
  get topicId() {
240
- return __classPrivateFieldGet(this, _Issue_topicId, "f");
242
+ return __classPrivateFieldGet(this, _topicId);
241
243
  }
242
244
  get endCustomerRef() {
243
- return __classPrivateFieldGet(this, _Issue_endCustomerRef, "f");
245
+ return __classPrivateFieldGet(this, _endCustomerRef);
244
246
  }
245
247
  get language() {
246
- return __classPrivateFieldGet(this, _Issue_language, "f");
248
+ return __classPrivateFieldGet(this, _language);
247
249
  }
248
250
  get offer() {
249
- return __classPrivateFieldGet(this, _Issue_offer, "f");
251
+ return __classPrivateFieldGet(this, _offer);
250
252
  }
251
253
  get priority() {
252
- return __classPrivateFieldGet(this, _Issue_priority, "f");
254
+ return __classPrivateFieldGet(this, _priority);
253
255
  }
254
256
  get status() {
255
- return __classPrivateFieldGet(this, _Issue_status, "f");
257
+ return __classPrivateFieldGet(this, _status);
256
258
  }
257
259
  get createdBy() {
258
- return __classPrivateFieldGet(this, _Issue_createdBy, "f");
260
+ return __classPrivateFieldGet(this, _createdBy);
259
261
  }
260
262
  get supportPlan() {
261
- return __classPrivateFieldGet(this, _Issue_supportPlan, "f");
263
+ return __classPrivateFieldGet(this, _supportPlan);
262
264
  }
263
265
  get program() {
264
- return __classPrivateFieldGet(this, _Issue_program, "f");
266
+ return __classPrivateFieldGet(this, _program);
265
267
  }
266
268
  get additionalData() {
267
- return __classPrivateFieldGet(this, _Issue_additionalData, "f");
269
+ return __classPrivateFieldGet(this, _additionalData);
268
270
  }
269
271
  get created() {
270
- return __classPrivateFieldGet(this, _Issue_created, "f");
272
+ return __classPrivateFieldGet(this, _created);
271
273
  }
272
274
  get updated() {
273
- return __classPrivateFieldGet(this, _Issue_updated, "f");
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
- _Issue_id = new WeakMap(), _Issue_title = new WeakMap(), _Issue_description = new WeakMap(), _Issue_topicId = new WeakMap(), _Issue_endCustomerRef = new WeakMap(), _Issue_language = new WeakMap(), _Issue_offer = new WeakMap(), _Issue_priority = new WeakMap(), _Issue_status = new WeakMap(), _Issue_createdBy = new WeakMap(), _Issue_supportPlan = new WeakMap(), _Issue_program = new WeakMap(), _Issue_additionalData = new WeakMap(), _Issue_created = new WeakMap(), _Issue_updated = new WeakMap();
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
- _Issues_list.set(this, void 0);
302
- __classPrivateFieldSet(this, _Issues_list, input.map((item) => new Issue(item)), "f");
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, _Issues_list, "f");
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
- _Issues_list = new WeakMap();
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, 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 _Topic_id, _Topic_name, _Topic_label, _Topic_premium, _Topic_description, _Topics_list;
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
- _Topic_id.set(this, void 0);
29
- _Topic_name.set(this, void 0);
30
- _Topic_label.set(this, void 0);
31
- _Topic_premium.set(this, void 0);
32
- _Topic_description.set(this, void 0);
33
- __classPrivateFieldSet(this, _Topic_id, input[TopicFields.COLUMN_ID], "f");
34
- __classPrivateFieldSet(this, _Topic_name, input[TopicFields.COLUMN_NAME], "f");
35
- __classPrivateFieldSet(this, _Topic_label, input[TopicFields.COLUMN_LABEL], "f");
36
- __classPrivateFieldSet(this, _Topic_premium, input[TopicFields.COLUMN_PREMIUM], "f");
37
- __classPrivateFieldSet(this, _Topic_description, input[TopicFields.COLUMN_DESCRIPTION], "f");
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, _Topic_id, "f");
42
+ return __classPrivateFieldGet(this, _id);
41
43
  }
42
44
  get name() {
43
- return __classPrivateFieldGet(this, _Topic_name, "f");
45
+ return __classPrivateFieldGet(this, _name);
44
46
  }
45
47
  get label() {
46
- return __classPrivateFieldGet(this, _Topic_label, "f");
48
+ return __classPrivateFieldGet(this, _label);
47
49
  }
48
50
  get premium() {
49
- return __classPrivateFieldGet(this, _Topic_premium, "f");
51
+ return __classPrivateFieldGet(this, _premium);
50
52
  }
51
53
  get description() {
52
- return __classPrivateFieldGet(this, _Topic_description, "f");
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
- _Topic_id = new WeakMap(), _Topic_name = new WeakMap(), _Topic_label = new WeakMap(), _Topic_premium = new WeakMap(), _Topic_description = new WeakMap();
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
- _Topics_list.set(this, void 0);
70
- __classPrivateFieldSet(this, _Topics_list, input.map((item) => new Topic(item)), "f");
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, _Topics_list, "f");
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
- _Topics_list = new WeakMap();
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
- 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];
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-rc.bjp.1",
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": "10.9.1",
62
- "typescript": "4.7.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,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=catalogGraphQLQueries.js.map
@@ -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,4 +0,0 @@
1
- "use strict";
2
- // Here are the schemas, they are useful to build the graphql requests
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- //# sourceMappingURL=catalogGraphQLSchemas.js.map
@@ -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