@arrowsphere/api-client 3.27.0 → 3.28.0-rc.bdj.3

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 (145) hide show
  1. package/README.md +12 -0
  2. package/build/AbstractHttpClient.d.ts +36 -0
  3. package/build/AbstractHttpClient.js +65 -0
  4. package/build/abstractClient.d.ts +2 -19
  5. package/build/abstractClient.js +3 -22
  6. package/build/abstractEntity.js +14 -16
  7. package/build/abstractGraphQLClient.d.ts +4 -14
  8. package/build/abstractGraphQLClient.js +32 -24
  9. package/build/axiosSingleton.js +2 -2
  10. package/build/campaign/entities/campaign/banners/banners.js +32 -34
  11. package/build/campaign/entities/campaign/campaign.js +51 -53
  12. package/build/campaign/entities/campaign/landingPage/landingPage.js +24 -26
  13. package/build/campaign/entities/campaign/landingPage/landingPageBody.js +35 -37
  14. package/build/campaign/entities/campaign/landingPage/landingPageFooter/landingPageFooter.js +29 -31
  15. package/build/campaign/entities/campaign/landingPage/landingPageFooter/landingPageFooterFeature.js +23 -25
  16. package/build/campaign/entities/campaign/landingPage/landingPageHeader.js +29 -31
  17. package/build/campaign/entities/campaign/rules/rules.js +29 -31
  18. package/build/campaign/entities/campaignAssets/assets/assets.js +17 -19
  19. package/build/campaign/entities/campaignAssets/campaignAssets.js +14 -16
  20. package/build/campaign/entities/v2/campaign/banner/banner.js +32 -34
  21. package/build/campaign/entities/v2/campaign/campaign.js +48 -50
  22. package/build/campaign/entities/v2/campaign/landingPage/landingPage.js +24 -26
  23. package/build/campaign/entities/v2/campaign/landingPage/landingPageFooter/landingPageFooter.js +34 -36
  24. package/build/campaign/entities/v2/campaign/landingPage/landingPageFooter/landingPageFooterFeature.js +20 -22
  25. package/build/campaign/entities/v2/campaign/landingPage/landingPageFooter/landingPageFooterFeatureItem.js +32 -34
  26. package/build/campaign/entities/v2/campaign/landingPage/landingPageHeader.js +32 -34
  27. package/build/campaign/entities/v2/campaignList.js +14 -16
  28. package/build/campaign/index.js +5 -1
  29. package/build/cart/entities/index.js +5 -1
  30. package/build/cart/entities/item.js +26 -28
  31. package/build/cart/entities/itemList.js +14 -16
  32. package/build/cart/index.js +5 -1
  33. package/build/catalog/catalogGraphQLClient.d.ts +2 -0
  34. package/build/catalog/catalogGraphQLClient.js +14 -1
  35. package/build/catalog/index.d.ts +2 -0
  36. package/build/catalog/index.js +7 -1
  37. package/build/catalog/types/catalogGraphQLQueries.d.ts +12 -0
  38. package/build/catalog/types/catalogGraphQLQueries.js +3 -0
  39. package/build/catalog/types/catalogGraphQLSchemas.d.ts +30 -0
  40. package/build/catalog/types/catalogGraphQLSchemas.js +4 -0
  41. package/build/catalog/types/catalogGraphQLTypes.js +1 -0
  42. package/build/catalog/types/queryArguments.d.ts +41 -0
  43. package/build/catalog/types/queryArguments.js +10 -0
  44. package/build/consumption/entities/bi/consumptionBI.js +28 -30
  45. package/build/consumption/entities/bi/period/period.js +17 -19
  46. package/build/consumption/entities/bi/top/top.js +23 -25
  47. package/build/consumption/entities/consumption/consumption.js +17 -19
  48. package/build/consumption/index.js +5 -1
  49. package/build/contact/entities/contact.js +44 -46
  50. package/build/contact/entities/contactCreate.js +14 -16
  51. package/build/contact/entities/contactList.js +14 -16
  52. package/build/contact/index.js +5 -1
  53. package/build/customers/entities/customers/contact/contact.js +29 -31
  54. package/build/customers/entities/customers/customer.js +71 -73
  55. package/build/customers/entities/customers/customerContact/customerContact.js +38 -40
  56. package/build/customers/entities/customers/customerContact/customerContactList.js +14 -16
  57. package/build/customers/entities/customers/details/details.js +29 -31
  58. package/build/customers/entities/dataCustomers.js +14 -16
  59. package/build/customers/entities/dataInvitation.js +29 -31
  60. package/build/customers/entities/invitations/company/company.js +14 -16
  61. package/build/customers/entities/invitations/contact/invitationContact.js +26 -28
  62. package/build/customers/index.js +5 -1
  63. package/build/exception/exception-handlers/HandleHttpExceptionOutput.d.ts +3 -0
  64. package/build/exception/exception-handlers/HandleHttpExceptionOutput.js +3 -0
  65. package/build/exception/exception-handlers/Hooks.d.ts +3 -0
  66. package/build/exception/exception-handlers/Hooks.js +3 -0
  67. package/build/exception/exception-handlers/HttpExceptionHandler.d.ts +10 -0
  68. package/build/exception/exception-handlers/HttpExceptionHandler.js +3 -0
  69. package/build/exception/exception-handlers/index.d.ts +3 -0
  70. package/build/exception/exception-handlers/index.js +20 -0
  71. package/build/exception/index.js +5 -1
  72. package/build/exception/publicApiClientException.d.ts +2 -1
  73. package/build/exception/publicApiClientException.js +2 -1
  74. package/build/general/entities/whoAmI.js +59 -61
  75. package/build/general/index.js +5 -1
  76. package/build/getResult.js +21 -23
  77. package/build/index.d.ts +1 -0
  78. package/build/index.js +6 -1
  79. package/build/licenses/entities/filterFindResult.js +17 -19
  80. package/build/licenses/entities/findResult.js +36 -38
  81. package/build/licenses/entities/getLicense/actionMessagesGetResult.js +26 -28
  82. package/build/licenses/entities/getLicense/actionsGetResult.js +41 -43
  83. package/build/licenses/entities/getLicense/buySellFindResult.js +17 -19
  84. package/build/licenses/entities/getLicense/licenseGetResult.js +105 -107
  85. package/build/licenses/entities/getLicense/licensePriceGetResult.js +20 -22
  86. package/build/licenses/entities/getLicense/orderGetResult.js +17 -19
  87. package/build/licenses/entities/getResult/getLicenseResult.js +14 -16
  88. package/build/licenses/entities/history/actionHistoryResult.js +23 -25
  89. package/build/licenses/entities/history/licenceHistoryResult.js +14 -16
  90. package/build/licenses/entities/license/activeSeatsFindResult.js +17 -19
  91. package/build/licenses/entities/license/configFindResult.js +20 -22
  92. package/build/licenses/entities/license/licenseFindResult.js +134 -136
  93. package/build/licenses/entities/license/priceFindResult.js +26 -28
  94. package/build/licenses/entities/license/warningFindResult.js +17 -19
  95. package/build/licenses/entities/offer/actionFlagsFindResult.js +20 -22
  96. package/build/licenses/entities/offer/offerFindResult.js +32 -34
  97. package/build/licenses/entities/offer/priceBandFindResult.js +35 -37
  98. package/build/licenses/entities/offer/priceband/billingFindResult.js +20 -22
  99. package/build/licenses/entities/offer/priceband/identifiers/arrowsphereFindResult.js +14 -16
  100. package/build/licenses/entities/offer/priceband/identifiersFindResult.js +14 -16
  101. package/build/licenses/entities/offer/priceband/priceBandActionFlagsFindResult.js +26 -28
  102. package/build/licenses/entities/offer/priceband/priceBandPriceFindResult.js +20 -22
  103. package/build/licenses/entities/offer/priceband/saleConstraintsFindResult.js +17 -19
  104. package/build/licenses/index.js +5 -1
  105. package/build/orders/entities/dataListOrders.js +14 -16
  106. package/build/orders/entities/orders/order.js +39 -41
  107. package/build/orders/entities/orders/partner/partner.js +17 -19
  108. package/build/orders/entities/orders/products/identifiers/productIdentifiers.js +14 -16
  109. package/build/orders/entities/orders/products/identifiers/vendor/identifiersVendor.js +14 -16
  110. package/build/orders/entities/orders/products/prices/productPrices.js +32 -34
  111. package/build/orders/entities/orders/products/products.js +56 -58
  112. package/build/orders/entities/orders/products/program/productProgram.js +14 -16
  113. package/build/orders/entities/referenceLink.js +17 -19
  114. package/build/orders/index.js +5 -1
  115. package/build/pagination.js +29 -31
  116. package/build/security/index.js +5 -1
  117. package/build/security/register/entity/registrationLink.js +14 -16
  118. package/build/security/register/index.js +5 -1
  119. package/build/security/standards/entities/checks/checks.js +17 -19
  120. package/build/security/standards/entities/checks/securityChecks.js +38 -40
  121. package/build/security/standards/entities/resources/resources.js +26 -28
  122. package/build/security/standards/entities/resources/securityResources.js +17 -19
  123. package/build/security/standards/entities/standards/securityStandards.js +29 -31
  124. package/build/security/standards/entities/standards/standards.js +17 -19
  125. package/build/security/standards/index.js +5 -1
  126. package/build/securityScore/index.d.ts +2 -0
  127. package/build/securityScore/index.js +19 -0
  128. package/build/securityScore/securityScoreGraphQLClient.d.ts +17 -0
  129. package/build/securityScore/securityScoreGraphQLClient.js +35 -0
  130. package/build/securityScore/types/queryArguments.d.ts +108 -0
  131. package/build/securityScore/types/queryArguments.js +93 -0
  132. package/build/securityScore/types/securityScoreGraphQLQueries.d.ts +50 -0
  133. package/build/securityScore/types/securityScoreGraphQLQueries.js +3 -0
  134. package/build/securityScore/types/securityScoreGraphQLTypes.d.ts +173 -0
  135. package/build/securityScore/types/securityScoreGraphQLTypes.js +3 -0
  136. package/build/shared/index.js +5 -1
  137. package/build/subscriptions/entities/subscription.js +56 -58
  138. package/build/subscriptions/entities/subscriptionsListResult.js +39 -41
  139. package/build/subscriptions/index.js +5 -1
  140. package/build/supportCenter/entities/issue/attachment.js +27 -29
  141. package/build/supportCenter/entities/issue/comment.js +29 -31
  142. package/build/supportCenter/entities/issue/issue.js +106 -108
  143. package/build/supportCenter/entities/topic.js +30 -32
  144. package/build/supportCenter/index.js +5 -1
  145. package/package.json +5 -3
@@ -1,18 +1,16 @@
1
1
  "use strict";
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;
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, privateMap) {
10
- if (!privateMap.has(receiver)) {
11
- throw new TypeError("attempted to get private field on non-instance");
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 _id, _name, _label, _premium, _description, _list;
13
+ var _Topic_id, _Topic_name, _Topic_label, _Topic_premium, _Topic_description, _Topics_list;
16
14
  Object.defineProperty(exports, "__esModule", { value: true });
17
15
  exports.Topics = exports.Topic = exports.TopicFields = void 0;
18
16
  const abstractEntity_1 = require("../../abstractEntity");
@@ -27,31 +25,31 @@ var TopicFields;
27
25
  class Topic extends abstractEntity_1.AbstractEntity {
28
26
  constructor(input) {
29
27
  super(input);
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]);
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");
40
38
  }
41
39
  get id() {
42
- return __classPrivateFieldGet(this, _id);
40
+ return __classPrivateFieldGet(this, _Topic_id, "f");
43
41
  }
44
42
  get name() {
45
- return __classPrivateFieldGet(this, _name);
43
+ return __classPrivateFieldGet(this, _Topic_name, "f");
46
44
  }
47
45
  get label() {
48
- return __classPrivateFieldGet(this, _label);
46
+ return __classPrivateFieldGet(this, _Topic_label, "f");
49
47
  }
50
48
  get premium() {
51
- return __classPrivateFieldGet(this, _premium);
49
+ return __classPrivateFieldGet(this, _Topic_premium, "f");
52
50
  }
53
51
  get description() {
54
- return __classPrivateFieldGet(this, _description);
52
+ return __classPrivateFieldGet(this, _Topic_description, "f");
55
53
  }
56
54
  toJSON() {
57
55
  return {
@@ -64,20 +62,20 @@ class Topic extends abstractEntity_1.AbstractEntity {
64
62
  }
65
63
  }
66
64
  exports.Topic = Topic;
67
- _id = new WeakMap(), _name = new WeakMap(), _label = new WeakMap(), _premium = new WeakMap(), _description = new WeakMap();
65
+ _Topic_id = new WeakMap(), _Topic_name = new WeakMap(), _Topic_label = new WeakMap(), _Topic_premium = new WeakMap(), _Topic_description = new WeakMap();
68
66
  class Topics extends abstractEntity_1.AbstractEntity {
69
67
  constructor(input) {
70
68
  super(input);
71
- _list.set(this, void 0);
72
- __classPrivateFieldSet(this, _list, input.map((item) => new Topic(item)));
69
+ _Topics_list.set(this, void 0);
70
+ __classPrivateFieldSet(this, _Topics_list, input.map((item) => new Topic(item)), "f");
73
71
  }
74
72
  get list() {
75
- return __classPrivateFieldGet(this, _list);
73
+ return __classPrivateFieldGet(this, _Topics_list, "f");
76
74
  }
77
75
  toJSON() {
78
76
  return this.list.map((item) => item.toJSON());
79
77
  }
80
78
  }
81
79
  exports.Topics = Topics;
82
- _list = new WeakMap();
80
+ _Topics_list = new WeakMap();
83
81
  //# sourceMappingURL=topic.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.defineProperty(o, k2, { enumerable: true, get: function() { return m[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);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/ArrowSphere/nodejs-api-client.git"
6
6
  },
7
- "version": "3.27.0",
7
+ "version": "3.28.0-rc.bdj.3",
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": "9.1.1",
62
- "typescript": "4.1.5"
61
+ "ts-node": "10.9.1",
62
+ "typescript": "4.7.4"
63
63
  },
64
64
  "husky": {
65
65
  "hooks": {
@@ -84,7 +84,9 @@
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",
87
88
  "lodash": "^4.17.21",
89
+ "type-fest": "^3.9.0",
88
90
  "validatorjs": "3.22.1"
89
91
  }
90
92
  }