@arrowsphere/api-client 3.26.0-rc.bjp.1 → 3.26.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 (134) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/build/abstractClient.d.ts +8 -1
  3. package/build/abstractEntity.js +16 -14
  4. package/build/axiosSingleton.js +2 -2
  5. package/build/campaign/entities/campaign/banners/banners.js +34 -32
  6. package/build/campaign/entities/campaign/campaign.js +53 -51
  7. package/build/campaign/entities/campaign/landingPage/landingPage.js +26 -24
  8. package/build/campaign/entities/campaign/landingPage/landingPageBody.js +37 -35
  9. package/build/campaign/entities/campaign/landingPage/landingPageFooter/landingPageFooter.js +31 -29
  10. package/build/campaign/entities/campaign/landingPage/landingPageFooter/landingPageFooterFeature.js +25 -23
  11. package/build/campaign/entities/campaign/landingPage/landingPageHeader.js +31 -29
  12. package/build/campaign/entities/campaign/rules/rules.js +31 -29
  13. package/build/campaign/entities/campaignAssets/assets/assets.js +19 -17
  14. package/build/campaign/entities/campaignAssets/campaignAssets.js +16 -14
  15. package/build/campaign/entities/v2/campaign/banner/banner.js +34 -32
  16. package/build/campaign/entities/v2/campaign/campaign.js +50 -48
  17. package/build/campaign/entities/v2/campaign/landingPage/landingPage.js +26 -24
  18. package/build/campaign/entities/v2/campaign/landingPage/landingPageFooter/landingPageFooter.js +36 -34
  19. package/build/campaign/entities/v2/campaign/landingPage/landingPageFooter/landingPageFooterFeature.js +22 -20
  20. package/build/campaign/entities/v2/campaign/landingPage/landingPageFooter/landingPageFooterFeatureItem.js +34 -32
  21. package/build/campaign/entities/v2/campaign/landingPage/landingPageHeader.js +34 -32
  22. package/build/campaign/entities/v2/campaignList.js +16 -14
  23. package/build/campaign/index.js +1 -5
  24. package/build/cart/entities/index.js +1 -5
  25. package/build/cart/entities/item.js +28 -26
  26. package/build/cart/entities/itemList.js +16 -14
  27. package/build/cart/index.js +1 -5
  28. package/build/catalog/catalogGraphQLClient.d.ts +0 -2
  29. package/build/catalog/catalogGraphQLClient.js +1 -7
  30. package/build/catalog/index.js +1 -5
  31. package/build/catalog/types/catalogGraphQLTypes.js +0 -1
  32. package/build/consumption/entities/bi/consumptionBI.js +30 -28
  33. package/build/consumption/entities/bi/period/period.js +19 -17
  34. package/build/consumption/entities/bi/top/top.js +25 -23
  35. package/build/consumption/entities/consumption/consumption.js +19 -17
  36. package/build/consumption/index.js +1 -5
  37. package/build/contact/entities/contact.js +46 -44
  38. package/build/contact/entities/contactCreate.js +16 -14
  39. package/build/contact/entities/contactList.js +16 -14
  40. package/build/contact/index.js +1 -5
  41. package/build/customers/entities/customers/contact/contact.js +31 -29
  42. package/build/customers/entities/customers/customer.js +73 -71
  43. package/build/customers/entities/customers/customerContact/customerContact.js +40 -38
  44. package/build/customers/entities/customers/customerContact/customerContactList.js +16 -14
  45. package/build/customers/entities/customers/details/details.js +31 -29
  46. package/build/customers/entities/dataCustomers.js +16 -14
  47. package/build/customers/entities/dataInvitation.js +31 -29
  48. package/build/customers/entities/invitations/company/company.js +16 -14
  49. package/build/customers/entities/invitations/contact/invitationContact.js +28 -26
  50. package/build/customers/index.js +1 -5
  51. package/build/exception/index.js +1 -5
  52. package/build/general/entities/whoAmI.js +61 -59
  53. package/build/general/index.js +1 -5
  54. package/build/getResult.js +23 -21
  55. package/build/index.d.ts +1 -0
  56. package/build/index.js +2 -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/pagination.js +31 -29
  94. package/build/publicApiClient.d.ts +2 -0
  95. package/build/publicApiClient.js +7 -0
  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.d.ts +29 -0
  111. package/build/supportCenter/entities/issue/attachment.js +76 -0
  112. package/build/supportCenter/entities/issue/comment.d.ts +30 -0
  113. package/build/supportCenter/entities/issue/comment.js +82 -0
  114. package/build/supportCenter/entities/issue/issue.d.ts +142 -0
  115. package/build/supportCenter/entities/issue/issue.js +315 -0
  116. package/build/supportCenter/entities/topic.d.ts +32 -0
  117. package/build/supportCenter/entities/topic.js +83 -0
  118. package/build/supportCenter/index.d.ts +8 -0
  119. package/build/supportCenter/index.js +21 -0
  120. package/build/supportCenter/payloads/attachment.d.ts +6 -0
  121. package/build/supportCenter/payloads/attachment.js +4 -0
  122. package/build/supportCenter/payloads/comment.d.ts +6 -0
  123. package/build/supportCenter/payloads/comment.js +4 -0
  124. package/build/supportCenter/payloads/issue.d.ts +32 -0
  125. package/build/supportCenter/payloads/issue.js +16 -0
  126. package/build/supportCenter/supportCenterClient.d.ts +42 -0
  127. package/build/supportCenter/supportCenterClient.js +68 -0
  128. package/package.json +3 -6
  129. package/build/catalog/types/catalogGraphQLQueries.d.ts +0 -12
  130. package/build/catalog/types/catalogGraphQLQueries.js +0 -3
  131. package/build/catalog/types/catalogGraphQLSchemas.d.ts +0 -30
  132. package/build/catalog/types/catalogGraphQLSchemas.js +0 -4
  133. package/build/catalog/types/queryArguments.d.ts +0 -42
  134. 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 _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];
@@ -0,0 +1,29 @@
1
+ import { AbstractEntity } from '../../../abstractEntity';
2
+ export declare enum IssueAttachmentFields {
3
+ COLUMN_ID = "id",
4
+ COLUMN_FILE_NAME = "fileName",
5
+ COLUMN_MIME_TYPE = "mimeType",
6
+ COLUMN_CONTENT = "content"
7
+ }
8
+ export declare type IssueAttachmentType = {
9
+ [IssueAttachmentFields.COLUMN_ID]: string;
10
+ [IssueAttachmentFields.COLUMN_FILE_NAME]?: string;
11
+ [IssueAttachmentFields.COLUMN_MIME_TYPE]?: string;
12
+ [IssueAttachmentFields.COLUMN_CONTENT]?: string;
13
+ };
14
+ export declare class IssueAttachment extends AbstractEntity<IssueAttachmentType> {
15
+ #private;
16
+ constructor(input: IssueAttachmentType);
17
+ get id(): string;
18
+ get fileName(): string | undefined;
19
+ get mimeType(): string | undefined;
20
+ get content(): string | undefined;
21
+ toJSON(): IssueAttachmentType;
22
+ }
23
+ export declare type IssueAttachmentsType = Array<IssueAttachmentType>;
24
+ export declare class IssueAttachments extends AbstractEntity<IssueAttachmentsType> {
25
+ #private;
26
+ constructor(input: IssueAttachmentsType);
27
+ get list(): IssueAttachment[];
28
+ toJSON(): IssueAttachmentsType;
29
+ }
@@ -0,0 +1,76 @@
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;
8
+ };
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);
14
+ };
15
+ var _id, _fileName, _mimeType, _content, _list;
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.IssueAttachments = exports.IssueAttachment = exports.IssueAttachmentFields = void 0;
18
+ const abstractEntity_1 = require("../../../abstractEntity");
19
+ var IssueAttachmentFields;
20
+ (function (IssueAttachmentFields) {
21
+ IssueAttachmentFields["COLUMN_ID"] = "id";
22
+ IssueAttachmentFields["COLUMN_FILE_NAME"] = "fileName";
23
+ IssueAttachmentFields["COLUMN_MIME_TYPE"] = "mimeType";
24
+ IssueAttachmentFields["COLUMN_CONTENT"] = "content";
25
+ })(IssueAttachmentFields = exports.IssueAttachmentFields || (exports.IssueAttachmentFields = {}));
26
+ class IssueAttachment extends abstractEntity_1.AbstractEntity {
27
+ constructor(input) {
28
+ super(input);
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]);
37
+ }
38
+ get id() {
39
+ return __classPrivateFieldGet(this, _id);
40
+ }
41
+ get fileName() {
42
+ return __classPrivateFieldGet(this, _fileName);
43
+ }
44
+ get mimeType() {
45
+ return __classPrivateFieldGet(this, _mimeType);
46
+ }
47
+ get content() {
48
+ return __classPrivateFieldGet(this, _content);
49
+ }
50
+ toJSON() {
51
+ return {
52
+ [IssueAttachmentFields.COLUMN_ID]: this.id,
53
+ [IssueAttachmentFields.COLUMN_FILE_NAME]: this.fileName,
54
+ [IssueAttachmentFields.COLUMN_MIME_TYPE]: this.mimeType,
55
+ [IssueAttachmentFields.COLUMN_CONTENT]: this.content,
56
+ };
57
+ }
58
+ }
59
+ exports.IssueAttachment = IssueAttachment;
60
+ _id = new WeakMap(), _fileName = new WeakMap(), _mimeType = new WeakMap(), _content = new WeakMap();
61
+ class IssueAttachments extends abstractEntity_1.AbstractEntity {
62
+ constructor(input) {
63
+ super(input);
64
+ _list.set(this, void 0);
65
+ __classPrivateFieldSet(this, _list, input.map((item) => new IssueAttachment(item)));
66
+ }
67
+ get list() {
68
+ return __classPrivateFieldGet(this, _list);
69
+ }
70
+ toJSON() {
71
+ return this.list.map((item) => item.toJSON());
72
+ }
73
+ }
74
+ exports.IssueAttachments = IssueAttachments;
75
+ _list = new WeakMap();
76
+ //# sourceMappingURL=attachment.js.map
@@ -0,0 +1,30 @@
1
+ import { AbstractEntity } from '../../../abstractEntity';
2
+ import { IssueCreatedBy, IssueCreatedByType } from './issue';
3
+ export declare enum IssueCommentFields {
4
+ COLUMN_ID = "id",
5
+ COLUMN_BODY = "body",
6
+ COLUMN_DATE = "date",
7
+ COLUMN_CREATED_BY = "createdBy"
8
+ }
9
+ export declare type IssueCommentType = {
10
+ [IssueCommentFields.COLUMN_ID]: string;
11
+ [IssueCommentFields.COLUMN_BODY]?: string;
12
+ [IssueCommentFields.COLUMN_DATE]?: string;
13
+ [IssueCommentFields.COLUMN_CREATED_BY]?: IssueCreatedByType;
14
+ };
15
+ export declare class IssueComment extends AbstractEntity<IssueCommentType> {
16
+ #private;
17
+ constructor(input: IssueCommentType);
18
+ get id(): string;
19
+ get body(): string | undefined;
20
+ get date(): Date | undefined;
21
+ get createdBy(): IssueCreatedBy | undefined;
22
+ toJSON(): IssueCommentType;
23
+ }
24
+ export declare type IssueCommentsType = Array<IssueCommentType>;
25
+ export declare class IssueComments extends AbstractEntity<IssueCommentsType> {
26
+ #private;
27
+ constructor(input: IssueCommentsType);
28
+ get list(): IssueComment[];
29
+ toJSON(): IssueCommentsType;
30
+ }
@@ -0,0 +1,82 @@
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;
8
+ };
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);
14
+ };
15
+ var _id, _body, _date, _createdBy, _list;
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.IssueComments = exports.IssueComment = exports.IssueCommentFields = void 0;
18
+ const abstractEntity_1 = require("../../../abstractEntity");
19
+ const issue_1 = require("./issue");
20
+ var IssueCommentFields;
21
+ (function (IssueCommentFields) {
22
+ IssueCommentFields["COLUMN_ID"] = "id";
23
+ IssueCommentFields["COLUMN_BODY"] = "body";
24
+ IssueCommentFields["COLUMN_DATE"] = "date";
25
+ IssueCommentFields["COLUMN_CREATED_BY"] = "createdBy";
26
+ })(IssueCommentFields = exports.IssueCommentFields || (exports.IssueCommentFields = {}));
27
+ class IssueComment extends abstractEntity_1.AbstractEntity {
28
+ constructor(input) {
29
+ super(input);
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]
37
+ ? new Date(input[IssueCommentFields.COLUMN_DATE])
38
+ : undefined);
39
+ __classPrivateFieldSet(this, _createdBy, input[IssueCommentFields.COLUMN_CREATED_BY]
40
+ ? new issue_1.IssueCreatedBy(input[IssueCommentFields.COLUMN_CREATED_BY])
41
+ : undefined);
42
+ }
43
+ get id() {
44
+ return __classPrivateFieldGet(this, _id);
45
+ }
46
+ get body() {
47
+ return __classPrivateFieldGet(this, _body);
48
+ }
49
+ get date() {
50
+ return __classPrivateFieldGet(this, _date);
51
+ }
52
+ get createdBy() {
53
+ return __classPrivateFieldGet(this, _createdBy);
54
+ }
55
+ toJSON() {
56
+ var _a, _b;
57
+ return {
58
+ [IssueCommentFields.COLUMN_ID]: this.id,
59
+ [IssueCommentFields.COLUMN_BODY]: this.body,
60
+ [IssueCommentFields.COLUMN_DATE]: (_a = this.date) === null || _a === void 0 ? void 0 : _a.toISOString(),
61
+ [IssueCommentFields.COLUMN_CREATED_BY]: (_b = this.createdBy) === null || _b === void 0 ? void 0 : _b.toJSON(),
62
+ };
63
+ }
64
+ }
65
+ exports.IssueComment = IssueComment;
66
+ _id = new WeakMap(), _body = new WeakMap(), _date = new WeakMap(), _createdBy = new WeakMap();
67
+ class IssueComments extends abstractEntity_1.AbstractEntity {
68
+ constructor(input) {
69
+ super(input);
70
+ _list.set(this, void 0);
71
+ __classPrivateFieldSet(this, _list, input.map((item) => new IssueComment(item)));
72
+ }
73
+ get list() {
74
+ return __classPrivateFieldGet(this, _list);
75
+ }
76
+ toJSON() {
77
+ return this.list.map((item) => item.toJSON());
78
+ }
79
+ }
80
+ exports.IssueComments = IssueComments;
81
+ _list = new WeakMap();
82
+ //# sourceMappingURL=comment.js.map
@@ -0,0 +1,142 @@
1
+ import { AbstractEntity } from '../../../abstractEntity';
2
+ export declare enum IssueFields {
3
+ COLUMN_ID = "id",
4
+ COLUMN_TITLE = "title",
5
+ COLUMN_DESCRIPTION = "description",
6
+ COLUMN_TOPIC_ID = "topicId",
7
+ COLUMN_END_CUSTOMER_REF = "endCustomerRef",
8
+ COLUMN_LANGUAGE = "language",
9
+ COLUMN_OFFER = "offer",
10
+ COLUMN_PRIORITY = "priority",
11
+ COLUMN_STATUS = "status",
12
+ COLUMN_CREATED_BY = "createdBy",
13
+ COLUMN_SUPPORT_PLAN = "supportPlan",
14
+ COLUMN_PROGRAM = "program",
15
+ COLUMN_ADDITIONAL_DATA = "additionalData",
16
+ COLUMN_CREATED = "created",
17
+ COLUMN_UPDATED = "updated"
18
+ }
19
+ export declare enum IssueOfferFields {
20
+ COLUMN_SKU = "sku",
21
+ COLUMN_NAME = "name",
22
+ COLUMN_VENDOR = "vendor"
23
+ }
24
+ export declare enum IssueCreatedByFields {
25
+ COLUMN_EMAIL = "email",
26
+ COLUMN_FIRST_NAME = "firstName",
27
+ COLUMN_LAST_NAME = "lastName",
28
+ COLUMN_PHONE = "phone"
29
+ }
30
+ export declare enum IssueSupportPlanFields {
31
+ COLUMN_LABEL = "label",
32
+ COLUMN_SKU = "sku",
33
+ COLUMN_SOURCE_PORTAL = "sourcePortal"
34
+ }
35
+ export declare enum IssueAdditionalDataFields {
36
+ COLUMN_NAME = "name",
37
+ COLUMN_VALUE = "value"
38
+ }
39
+ export declare type IssueOfferType = {
40
+ [IssueOfferFields.COLUMN_SKU]: string;
41
+ [IssueOfferFields.COLUMN_NAME]?: string;
42
+ [IssueOfferFields.COLUMN_VENDOR]?: string;
43
+ };
44
+ export declare enum IssueStatusesType {
45
+ PENDING_CUSTOMER = "PENDING_CUSTOMER",
46
+ PENDING_VENDOR = "PENDING_VENDOR",
47
+ PENDING_ARROW = "PENDING_ARROW",
48
+ ON_HOLD = "ON_HOLD",
49
+ CLOSED = "CLOSED",
50
+ PENDING_CLOSE = "PENDING_CLOSE"
51
+ }
52
+ export declare type IssueCreatedByType = {
53
+ [IssueCreatedByFields.COLUMN_EMAIL]: string;
54
+ [IssueCreatedByFields.COLUMN_FIRST_NAME]: string;
55
+ [IssueCreatedByFields.COLUMN_LAST_NAME]: string;
56
+ [IssueCreatedByFields.COLUMN_PHONE]?: string;
57
+ };
58
+ export declare type IssueSupportPlanType = {
59
+ [IssueSupportPlanFields.COLUMN_SKU]?: string;
60
+ [IssueSupportPlanFields.COLUMN_LABEL]?: string;
61
+ [IssueSupportPlanFields.COLUMN_SOURCE_PORTAL]?: string;
62
+ };
63
+ export declare type IssueAdditionalDataType = {
64
+ [IssueAdditionalDataFields.COLUMN_NAME]: string;
65
+ [IssueAdditionalDataFields.COLUMN_VALUE]: string;
66
+ };
67
+ export declare type IssueType = {
68
+ [IssueFields.COLUMN_ID]?: string;
69
+ [IssueFields.COLUMN_TITLE]: string;
70
+ [IssueFields.COLUMN_DESCRIPTION]: string;
71
+ [IssueFields.COLUMN_TOPIC_ID]: string;
72
+ [IssueFields.COLUMN_END_CUSTOMER_REF]?: string;
73
+ [IssueFields.COLUMN_LANGUAGE]?: string;
74
+ [IssueFields.COLUMN_OFFER]?: IssueOfferType;
75
+ [IssueFields.COLUMN_PRIORITY]?: number;
76
+ [IssueFields.COLUMN_STATUS]?: string;
77
+ [IssueFields.COLUMN_CREATED_BY]?: IssueCreatedByType;
78
+ [IssueFields.COLUMN_SUPPORT_PLAN]?: IssueSupportPlanType;
79
+ [IssueFields.COLUMN_PROGRAM]: string;
80
+ [IssueFields.COLUMN_ADDITIONAL_DATA]?: Array<IssueAdditionalDataType>;
81
+ [IssueFields.COLUMN_CREATED]?: string;
82
+ [IssueFields.COLUMN_UPDATED]?: string;
83
+ };
84
+ export declare class IssueOffer extends AbstractEntity<IssueOfferType> {
85
+ #private;
86
+ constructor(input: IssueOfferType);
87
+ get sku(): string;
88
+ get name(): string | undefined;
89
+ get vendor(): string | undefined;
90
+ toJSON(): IssueOfferType;
91
+ }
92
+ export declare class IssueCreatedBy extends AbstractEntity<IssueCreatedByType> {
93
+ #private;
94
+ constructor(input: IssueCreatedByType);
95
+ get email(): string;
96
+ get firstName(): string;
97
+ get lastName(): string;
98
+ get phone(): string | undefined;
99
+ toJSON(): IssueCreatedByType;
100
+ }
101
+ export declare class IssueSupportPlan extends AbstractEntity<IssueSupportPlanType> {
102
+ #private;
103
+ constructor(input: IssueSupportPlanType);
104
+ get sku(): string | undefined;
105
+ get label(): string | undefined;
106
+ get sourcePortal(): string | undefined;
107
+ toJSON(): IssueSupportPlanType;
108
+ }
109
+ export declare class IssueAdditionalData extends AbstractEntity<IssueAdditionalDataType> {
110
+ #private;
111
+ constructor(input: IssueAdditionalDataType);
112
+ get name(): string;
113
+ get value(): string;
114
+ toJSON(): IssueAdditionalDataType;
115
+ }
116
+ export declare class Issue extends AbstractEntity<IssueType> {
117
+ #private;
118
+ constructor(input: IssueType);
119
+ get id(): string | undefined;
120
+ get title(): string;
121
+ get description(): string;
122
+ get topicId(): string;
123
+ get endCustomerRef(): string | undefined;
124
+ get language(): string | undefined;
125
+ get offer(): IssueOffer | undefined;
126
+ get priority(): number | undefined;
127
+ get status(): string | undefined;
128
+ get createdBy(): IssueCreatedBy | undefined;
129
+ get supportPlan(): IssueSupportPlan | undefined;
130
+ get program(): string;
131
+ get additionalData(): Array<IssueAdditionalData> | undefined;
132
+ get created(): Date | undefined;
133
+ get updated(): Date | undefined;
134
+ toJSON(): IssueType;
135
+ }
136
+ export declare type IssuesType = Array<IssueType>;
137
+ export declare class Issues extends AbstractEntity<IssuesType> {
138
+ #private;
139
+ constructor(input: IssuesType);
140
+ get list(): Issue[];
141
+ toJSON(): IssuesType;
142
+ }