@arrowsphere/api-client 3.25.0-rc.wev.1 → 3.26.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,13 +3,25 @@
3
3
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
4
4
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5
5
 
6
+ ## [3.26.0] - 2023-04-20
7
+
8
+ ### Changed
9
+
10
+ - Add support center endpoints
11
+
6
12
  ## [3.25.0] - 2023-04-13
7
13
 
8
14
  ### Changed
9
15
 
10
16
  - Add `isManualProvisioning` field in license event offer
11
17
 
12
- ## [3.24.0] - 2023-04-07
18
+ ## [3.24.1] - 2023-04-13
19
+
20
+ ### Changed
21
+
22
+ - Fix Extra information type
23
+
24
+ ## [3.24.0] - 2023-04-13
13
25
 
14
26
  ### Changed
15
27
 
@@ -15,9 +15,16 @@ export declare enum ParameterKeys {
15
15
  export declare enum ExtraInformationFields {
16
16
  COLUMN_EXTRA_INFORMATION = "extraInformation"
17
17
  }
18
+ export declare type ParametersWithPaginationType = (Parameters & {
19
+ [ParameterKeys.PAGE]?: number;
20
+ [ParameterKeys.PER_PAGE]?: number;
21
+ }) | (Parameters & {
22
+ [ParameterKeys.PAGE]?: number;
23
+ [ParameterKeys.PER_PAGE_CAMEL]?: number;
24
+ });
18
25
  export declare type Parameters = Record<string, string | string[] | number | number[] | boolean | null | undefined>;
19
26
  export declare type Headers = Record<string, string>;
20
- export declare type Payload = Record<string, unknown>;
27
+ export declare type Payload = Record<string, unknown> | Array<Payload>;
21
28
  export declare type Options = {
22
29
  isAdmin?: boolean;
23
30
  };
@@ -26,7 +33,9 @@ export declare type ConfigurationsClient = {
26
33
  [ParameterKeys.URL]?: string;
27
34
  [ParameterKeys.HEADERS]?: Headers;
28
35
  };
29
- export declare type ExtraInformationType = Record<string, unknown>;
36
+ export declare type ExtraInformationType = {
37
+ [ExtraInformationFields.COLUMN_EXTRA_INFORMATION]?: Record<string, unknown>;
38
+ };
30
39
  export declare abstract class AbstractClient {
31
40
  /**
32
41
  * Base path for HTTP calls
package/build/index.d.ts CHANGED
@@ -18,5 +18,6 @@ export * from './publicGraphQLClient';
18
18
  export * from './shared/';
19
19
  export * from './security/';
20
20
  export * from './subscriptions/';
21
+ export * from './supportCenter/';
21
22
  export { ContactInformation };
22
23
  import * as ContactInformation from './contact';
package/build/index.js CHANGED
@@ -43,6 +43,7 @@ __exportStar(require("./publicGraphQLClient"), exports);
43
43
  __exportStar(require("./shared/"), exports);
44
44
  __exportStar(require("./security/"), exports);
45
45
  __exportStar(require("./subscriptions/"), exports);
46
+ __exportStar(require("./supportCenter/"), exports);
46
47
  const ContactInformation = __importStar(require("./contact"));
47
48
  exports.ContactInformation = ContactInformation;
48
49
  //# sourceMappingURL=index.js.map
@@ -35,7 +35,7 @@ export interface LicenseEventPriceband {
35
35
  export interface LicenseEventOffer {
36
36
  arrowsphereSku: string;
37
37
  name: string;
38
- isManualProvisioning: boolean;
38
+ isManualProvisioning: boolean | null;
39
39
  }
40
40
  export interface LicenseEventQuantity {
41
41
  current: number;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Class LicensesClient
3
3
  */
4
- import { AbstractClient, ExtraInformationFields, ExtraInformationType, Parameters } from '../abstractClient';
4
+ import { AbstractClient, ExtraInformationType, Parameters } from '../abstractClient';
5
5
  import { FindConfig, FindData, FindResult } from './entities/findResult';
6
6
  import { ConfigFindResult, ConfigFindResultData, ConfigFindResultDataKeywords, ConfigFindResultDataSortParameters } from './entities/license/configFindResult';
7
7
  import { LicenceFindDataFiltersParameters, LicenceFindDataKeywords, LicenceFindDataSortParameters } from './entities/license/licenseFindResult';
@@ -190,27 +190,15 @@ export declare type LicenseFindRawPayload = {
190
190
  };
191
191
  export declare type UpdateSeatsData = {
192
192
  [LicenseGetFields.COLUMN_SEATS]: number;
193
- [ExtraInformationFields.COLUMN_EXTRA_INFORMATION]?: ExtraInformationType;
194
- };
193
+ } & ExtraInformationType;
195
194
  export declare type PutFriendlyName = {
196
195
  [LicenseGetFields.COLUMN_FRIENDLY_NAME]: string;
197
- [ExtraInformationFields.COLUMN_EXTRA_INFORMATION]?: ExtraInformationType;
198
- };
199
- export declare type PutReactivate = {
200
- [ExtraInformationFields.COLUMN_EXTRA_INFORMATION]?: ExtraInformationType;
201
- };
202
- export declare type PutSuspend = {
203
- [ExtraInformationFields.COLUMN_EXTRA_INFORMATION]?: ExtraInformationType;
204
- };
205
- export declare type PutCancel = {
206
- [ExtraInformationFields.COLUMN_EXTRA_INFORMATION]?: ExtraInformationType;
207
- };
208
- export declare type PutCancelAutoRenew = {
209
- [ExtraInformationFields.COLUMN_EXTRA_INFORMATION]?: ExtraInformationType;
210
- };
211
- export declare type PutReactivateAutoRenew = {
212
- [ExtraInformationFields.COLUMN_EXTRA_INFORMATION]?: ExtraInformationType;
213
- };
196
+ } & ExtraInformationType;
197
+ export declare type PutReactivate = ExtraInformationType;
198
+ export declare type PutSuspend = ExtraInformationType;
199
+ export declare type PutCancel = ExtraInformationType;
200
+ export declare type PutCancelAutoRenew = ExtraInformationType;
201
+ export declare type PutReactivateAutoRenew = ExtraInformationType;
214
202
  export declare class LicensesClient extends AbstractClient {
215
203
  /**
216
204
  * The base path of the API
@@ -10,6 +10,7 @@ import { ConsumptionClient } from './consumption';
10
10
  import { StandardsClient } from './security/standards/standardsClient';
11
11
  import { RegisterClient } from './security';
12
12
  import { CartClient } from './cart/cartClient';
13
+ import { SupportCenterClient } from './supportCenter';
13
14
  /**
14
15
  * Public API Client class, should be the main entry point for your calls
15
16
  */
@@ -59,5 +60,6 @@ export declare class PublicApiClient extends AbstractClient {
59
60
  getSecurityStandardsClient(): StandardsClient;
60
61
  getSecurityRegisterClient(): RegisterClient;
61
62
  getCartClient(): CartClient;
63
+ getSupportCenterClient(): SupportCenterClient;
62
64
  }
63
65
  export default PublicApiClient;
@@ -13,6 +13,7 @@ const consumption_1 = require("./consumption");
13
13
  const standardsClient_1 = require("./security/standards/standardsClient");
14
14
  const security_1 = require("./security");
15
15
  const cartClient_1 = require("./cart/cartClient");
16
+ const supportCenter_1 = require("./supportCenter");
16
17
  /**
17
18
  * Public API Client class, should be the main entry point for your calls
18
19
  */
@@ -124,6 +125,12 @@ class PublicApiClient extends abstractClient_1.AbstractClient {
124
125
  .setApiKey(this.apiKey)
125
126
  .setHeaders(this.headers);
126
127
  }
128
+ getSupportCenterClient() {
129
+ return new supportCenter_1.SupportCenterClient()
130
+ .setUrl(this.url)
131
+ .setApiKey(this.apiKey)
132
+ .setHeaders(this.headers);
133
+ }
127
134
  }
128
135
  exports.PublicApiClient = PublicApiClient;
129
136
  exports.default = PublicApiClient;
@@ -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;
19
+ get mimeType(): string;
20
+ get content(): string;
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;
20
+ get date(): Date;
21
+ get createdBy(): IssueCreatedBy;
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,77 @@
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, new Date(input[IssueCommentFields.COLUMN_DATE]));
37
+ __classPrivateFieldSet(this, _createdBy, new issue_1.IssueCreatedBy(input[IssueCommentFields.COLUMN_CREATED_BY]));
38
+ }
39
+ get id() {
40
+ return __classPrivateFieldGet(this, _id);
41
+ }
42
+ get body() {
43
+ return __classPrivateFieldGet(this, _body);
44
+ }
45
+ get date() {
46
+ return __classPrivateFieldGet(this, _date);
47
+ }
48
+ get createdBy() {
49
+ return __classPrivateFieldGet(this, _createdBy);
50
+ }
51
+ toJSON() {
52
+ return {
53
+ [IssueCommentFields.COLUMN_ID]: this.id,
54
+ [IssueCommentFields.COLUMN_BODY]: this.body,
55
+ [IssueCommentFields.COLUMN_DATE]: this.date.toISOString(),
56
+ [IssueCommentFields.COLUMN_CREATED_BY]: this.createdBy.toJSON(),
57
+ };
58
+ }
59
+ }
60
+ exports.IssueComment = IssueComment;
61
+ _id = new WeakMap(), _body = new WeakMap(), _date = new WeakMap(), _createdBy = new WeakMap();
62
+ class IssueComments extends abstractEntity_1.AbstractEntity {
63
+ constructor(input) {
64
+ super(input);
65
+ _list.set(this, void 0);
66
+ __classPrivateFieldSet(this, _list, input.map((item) => new IssueComment(item)));
67
+ }
68
+ get list() {
69
+ return __classPrivateFieldGet(this, _list);
70
+ }
71
+ toJSON() {
72
+ return this.list.map((item) => item.toJSON());
73
+ }
74
+ }
75
+ exports.IssueComments = IssueComments;
76
+ _list = new WeakMap();
77
+ //# 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;
89
+ get vendor(): string;
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;
99
+ toJSON(): IssueCreatedByType;
100
+ }
101
+ export declare class IssueSupportPlan extends AbstractEntity<IssueSupportPlanType> {
102
+ #private;
103
+ constructor(input: IssueSupportPlanType);
104
+ get sku(): string;
105
+ get label(): string;
106
+ get sourcePortal(): string;
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;
120
+ get title(): string;
121
+ get description(): string;
122
+ get topicId(): string;
123
+ get endCustomerRef(): string;
124
+ get language(): string;
125
+ get offer(): IssueOffer;
126
+ get priority(): number;
127
+ get status(): string;
128
+ get createdBy(): IssueCreatedBy;
129
+ get supportPlan(): IssueSupportPlan;
130
+ get program(): string;
131
+ get additionalData(): Array<IssueAdditionalData>;
132
+ get created(): Date;
133
+ get updated(): Date;
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
+ }
@@ -0,0 +1,302 @@
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 _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;
16
+ Object.defineProperty(exports, "__esModule", { value: true });
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;
18
+ const abstractEntity_1 = require("../../../abstractEntity");
19
+ var IssueFields;
20
+ (function (IssueFields) {
21
+ IssueFields["COLUMN_ID"] = "id";
22
+ IssueFields["COLUMN_TITLE"] = "title";
23
+ IssueFields["COLUMN_DESCRIPTION"] = "description";
24
+ IssueFields["COLUMN_TOPIC_ID"] = "topicId";
25
+ IssueFields["COLUMN_END_CUSTOMER_REF"] = "endCustomerRef";
26
+ IssueFields["COLUMN_LANGUAGE"] = "language";
27
+ IssueFields["COLUMN_OFFER"] = "offer";
28
+ IssueFields["COLUMN_PRIORITY"] = "priority";
29
+ IssueFields["COLUMN_STATUS"] = "status";
30
+ IssueFields["COLUMN_CREATED_BY"] = "createdBy";
31
+ IssueFields["COLUMN_SUPPORT_PLAN"] = "supportPlan";
32
+ IssueFields["COLUMN_PROGRAM"] = "program";
33
+ IssueFields["COLUMN_ADDITIONAL_DATA"] = "additionalData";
34
+ IssueFields["COLUMN_CREATED"] = "created";
35
+ IssueFields["COLUMN_UPDATED"] = "updated";
36
+ })(IssueFields = exports.IssueFields || (exports.IssueFields = {}));
37
+ var IssueOfferFields;
38
+ (function (IssueOfferFields) {
39
+ IssueOfferFields["COLUMN_SKU"] = "sku";
40
+ IssueOfferFields["COLUMN_NAME"] = "name";
41
+ IssueOfferFields["COLUMN_VENDOR"] = "vendor";
42
+ })(IssueOfferFields = exports.IssueOfferFields || (exports.IssueOfferFields = {}));
43
+ var IssueCreatedByFields;
44
+ (function (IssueCreatedByFields) {
45
+ IssueCreatedByFields["COLUMN_EMAIL"] = "email";
46
+ IssueCreatedByFields["COLUMN_FIRST_NAME"] = "firstName";
47
+ IssueCreatedByFields["COLUMN_LAST_NAME"] = "lastName";
48
+ IssueCreatedByFields["COLUMN_PHONE"] = "phone";
49
+ })(IssueCreatedByFields = exports.IssueCreatedByFields || (exports.IssueCreatedByFields = {}));
50
+ var IssueSupportPlanFields;
51
+ (function (IssueSupportPlanFields) {
52
+ IssueSupportPlanFields["COLUMN_LABEL"] = "label";
53
+ IssueSupportPlanFields["COLUMN_SKU"] = "sku";
54
+ IssueSupportPlanFields["COLUMN_SOURCE_PORTAL"] = "sourcePortal";
55
+ })(IssueSupportPlanFields = exports.IssueSupportPlanFields || (exports.IssueSupportPlanFields = {}));
56
+ var IssueAdditionalDataFields;
57
+ (function (IssueAdditionalDataFields) {
58
+ IssueAdditionalDataFields["COLUMN_NAME"] = "name";
59
+ IssueAdditionalDataFields["COLUMN_VALUE"] = "value";
60
+ })(IssueAdditionalDataFields = exports.IssueAdditionalDataFields || (exports.IssueAdditionalDataFields = {}));
61
+ var IssueStatusesType;
62
+ (function (IssueStatusesType) {
63
+ IssueStatusesType["PENDING_CUSTOMER"] = "PENDING_CUSTOMER";
64
+ IssueStatusesType["PENDING_VENDOR"] = "PENDING_VENDOR";
65
+ IssueStatusesType["PENDING_ARROW"] = "PENDING_ARROW";
66
+ IssueStatusesType["ON_HOLD"] = "ON_HOLD";
67
+ IssueStatusesType["CLOSED"] = "CLOSED";
68
+ IssueStatusesType["PENDING_CLOSE"] = "PENDING_CLOSE";
69
+ })(IssueStatusesType = exports.IssueStatusesType || (exports.IssueStatusesType = {}));
70
+ class IssueOffer extends abstractEntity_1.AbstractEntity {
71
+ constructor(input) {
72
+ super(input);
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]);
79
+ }
80
+ get sku() {
81
+ return __classPrivateFieldGet(this, _sku);
82
+ }
83
+ get name() {
84
+ return __classPrivateFieldGet(this, _name);
85
+ }
86
+ get vendor() {
87
+ return __classPrivateFieldGet(this, _vendor);
88
+ }
89
+ toJSON() {
90
+ return {
91
+ [IssueOfferFields.COLUMN_SKU]: this.sku,
92
+ [IssueOfferFields.COLUMN_NAME]: this.name,
93
+ [IssueOfferFields.COLUMN_VENDOR]: this.vendor,
94
+ };
95
+ }
96
+ }
97
+ exports.IssueOffer = IssueOffer;
98
+ _sku = new WeakMap(), _name = new WeakMap(), _vendor = new WeakMap();
99
+ class IssueCreatedBy extends abstractEntity_1.AbstractEntity {
100
+ constructor(input) {
101
+ super(input);
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]);
110
+ }
111
+ get email() {
112
+ return __classPrivateFieldGet(this, _email);
113
+ }
114
+ get firstName() {
115
+ return __classPrivateFieldGet(this, _firstName);
116
+ }
117
+ get lastName() {
118
+ return __classPrivateFieldGet(this, _lastName);
119
+ }
120
+ get phone() {
121
+ return __classPrivateFieldGet(this, _phone);
122
+ }
123
+ toJSON() {
124
+ return {
125
+ [IssueCreatedByFields.COLUMN_EMAIL]: this.email,
126
+ [IssueCreatedByFields.COLUMN_FIRST_NAME]: this.firstName,
127
+ [IssueCreatedByFields.COLUMN_LAST_NAME]: this.lastName,
128
+ [IssueCreatedByFields.COLUMN_PHONE]: this.phone,
129
+ };
130
+ }
131
+ }
132
+ exports.IssueCreatedBy = IssueCreatedBy;
133
+ _email = new WeakMap(), _firstName = new WeakMap(), _lastName = new WeakMap(), _phone = new WeakMap();
134
+ class IssueSupportPlan extends abstractEntity_1.AbstractEntity {
135
+ constructor(input) {
136
+ super(input);
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]);
143
+ }
144
+ get sku() {
145
+ return __classPrivateFieldGet(this, _sku_1);
146
+ }
147
+ get label() {
148
+ return __classPrivateFieldGet(this, _label);
149
+ }
150
+ get sourcePortal() {
151
+ return __classPrivateFieldGet(this, _sourcePortal);
152
+ }
153
+ toJSON() {
154
+ return {
155
+ [IssueSupportPlanFields.COLUMN_SKU]: this.sku,
156
+ [IssueSupportPlanFields.COLUMN_LABEL]: this.label,
157
+ [IssueSupportPlanFields.COLUMN_SOURCE_PORTAL]: this.sourcePortal,
158
+ };
159
+ }
160
+ }
161
+ exports.IssueSupportPlan = IssueSupportPlan;
162
+ _sku_1 = new WeakMap(), _label = new WeakMap(), _sourcePortal = new WeakMap();
163
+ class IssueAdditionalData extends abstractEntity_1.AbstractEntity {
164
+ constructor(input) {
165
+ super(input);
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]);
170
+ }
171
+ get name() {
172
+ return __classPrivateFieldGet(this, _name_1);
173
+ }
174
+ get value() {
175
+ return __classPrivateFieldGet(this, _value);
176
+ }
177
+ toJSON() {
178
+ return {
179
+ [IssueAdditionalDataFields.COLUMN_NAME]: this.name,
180
+ [IssueAdditionalDataFields.COLUMN_VALUE]: this.value,
181
+ };
182
+ }
183
+ }
184
+ exports.IssueAdditionalData = IssueAdditionalData;
185
+ _name_1 = new WeakMap(), _value = new WeakMap();
186
+ class Issue extends abstractEntity_1.AbstractEntity {
187
+ constructor(input) {
188
+ super(input);
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, new IssueOffer(input[IssueFields.COLUMN_OFFER]));
211
+ __classPrivateFieldSet(this, _priority, input[IssueFields.COLUMN_PRIORITY]);
212
+ __classPrivateFieldSet(this, _status, input[IssueFields.COLUMN_STATUS]);
213
+ __classPrivateFieldSet(this, _createdBy, new IssueCreatedBy(input[IssueFields.COLUMN_CREATED_BY]));
214
+ __classPrivateFieldSet(this, _supportPlan, new IssueSupportPlan(input[IssueFields.COLUMN_SUPPORT_PLAN]));
215
+ __classPrivateFieldSet(this, _program, input[IssueFields.COLUMN_PROGRAM]);
216
+ __classPrivateFieldSet(this, _additionalData, input[IssueFields.COLUMN_ADDITIONAL_DATA].map((item) => new IssueAdditionalData(item)));
217
+ __classPrivateFieldSet(this, _created, new Date(input[IssueFields.COLUMN_CREATED]));
218
+ __classPrivateFieldSet(this, _updated, new Date(input[IssueFields.COLUMN_UPDATED]));
219
+ }
220
+ get id() {
221
+ return __classPrivateFieldGet(this, _id);
222
+ }
223
+ get title() {
224
+ return __classPrivateFieldGet(this, _title);
225
+ }
226
+ get description() {
227
+ return __classPrivateFieldGet(this, _description);
228
+ }
229
+ get topicId() {
230
+ return __classPrivateFieldGet(this, _topicId);
231
+ }
232
+ get endCustomerRef() {
233
+ return __classPrivateFieldGet(this, _endCustomerRef);
234
+ }
235
+ get language() {
236
+ return __classPrivateFieldGet(this, _language);
237
+ }
238
+ get offer() {
239
+ return __classPrivateFieldGet(this, _offer);
240
+ }
241
+ get priority() {
242
+ return __classPrivateFieldGet(this, _priority);
243
+ }
244
+ get status() {
245
+ return __classPrivateFieldGet(this, _status);
246
+ }
247
+ get createdBy() {
248
+ return __classPrivateFieldGet(this, _createdBy);
249
+ }
250
+ get supportPlan() {
251
+ return __classPrivateFieldGet(this, _supportPlan);
252
+ }
253
+ get program() {
254
+ return __classPrivateFieldGet(this, _program);
255
+ }
256
+ get additionalData() {
257
+ return __classPrivateFieldGet(this, _additionalData);
258
+ }
259
+ get created() {
260
+ return __classPrivateFieldGet(this, _created);
261
+ }
262
+ get updated() {
263
+ return __classPrivateFieldGet(this, _updated);
264
+ }
265
+ toJSON() {
266
+ return {
267
+ [IssueFields.COLUMN_ID]: this.id,
268
+ [IssueFields.COLUMN_TITLE]: this.title,
269
+ [IssueFields.COLUMN_DESCRIPTION]: this.description,
270
+ [IssueFields.COLUMN_TOPIC_ID]: this.topicId,
271
+ [IssueFields.COLUMN_END_CUSTOMER_REF]: this.endCustomerRef,
272
+ [IssueFields.COLUMN_LANGUAGE]: this.language,
273
+ [IssueFields.COLUMN_OFFER]: this.offer.toJSON(),
274
+ [IssueFields.COLUMN_PRIORITY]: this.priority,
275
+ [IssueFields.COLUMN_STATUS]: this.status,
276
+ [IssueFields.COLUMN_CREATED_BY]: this.createdBy.toJSON(),
277
+ [IssueFields.COLUMN_SUPPORT_PLAN]: this.supportPlan.toJSON(),
278
+ [IssueFields.COLUMN_PROGRAM]: this.program,
279
+ [IssueFields.COLUMN_ADDITIONAL_DATA]: this.additionalData.map((item) => item.toJSON()),
280
+ [IssueFields.COLUMN_CREATED]: this.created.toISOString(),
281
+ [IssueFields.COLUMN_UPDATED]: this.updated.toISOString(),
282
+ };
283
+ }
284
+ }
285
+ exports.Issue = Issue;
286
+ _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();
287
+ class Issues extends abstractEntity_1.AbstractEntity {
288
+ constructor(input) {
289
+ super(input);
290
+ _list.set(this, void 0);
291
+ __classPrivateFieldSet(this, _list, input.map((item) => new Issue(item)));
292
+ }
293
+ get list() {
294
+ return __classPrivateFieldGet(this, _list);
295
+ }
296
+ toJSON() {
297
+ return this.list.map((item) => item.toJSON());
298
+ }
299
+ }
300
+ exports.Issues = Issues;
301
+ _list = new WeakMap();
302
+ //# sourceMappingURL=issue.js.map
@@ -0,0 +1,32 @@
1
+ import { AbstractEntity } from '../../abstractEntity';
2
+ export declare enum TopicFields {
3
+ COLUMN_ID = "id",
4
+ COLUMN_NAME = "name",
5
+ COLUMN_LABEL = "label",
6
+ COLUMN_PREMIUM = "premium",
7
+ COLUMN_DESCRIPTION = "content"
8
+ }
9
+ export declare type TopicType = {
10
+ [TopicFields.COLUMN_ID]: number;
11
+ [TopicFields.COLUMN_NAME]: string;
12
+ [TopicFields.COLUMN_LABEL]: string;
13
+ [TopicFields.COLUMN_PREMIUM]: boolean;
14
+ [TopicFields.COLUMN_DESCRIPTION]: string;
15
+ };
16
+ export declare class Topic extends AbstractEntity<TopicType> {
17
+ #private;
18
+ constructor(input: TopicType);
19
+ get id(): number;
20
+ get name(): string;
21
+ get label(): string;
22
+ get premium(): boolean;
23
+ get description(): string;
24
+ toJSON(): TopicType;
25
+ }
26
+ export declare type TopicsType = Array<TopicType>;
27
+ export declare class Topics extends AbstractEntity<TopicsType> {
28
+ #private;
29
+ constructor(input: TopicsType);
30
+ get list(): Topic[];
31
+ toJSON(): TopicsType;
32
+ }
@@ -0,0 +1,83 @@
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, _name, _label, _premium, _description, _list;
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.Topics = exports.Topic = exports.TopicFields = void 0;
18
+ const abstractEntity_1 = require("../../abstractEntity");
19
+ var TopicFields;
20
+ (function (TopicFields) {
21
+ TopicFields["COLUMN_ID"] = "id";
22
+ TopicFields["COLUMN_NAME"] = "name";
23
+ TopicFields["COLUMN_LABEL"] = "label";
24
+ TopicFields["COLUMN_PREMIUM"] = "premium";
25
+ TopicFields["COLUMN_DESCRIPTION"] = "content";
26
+ })(TopicFields = exports.TopicFields || (exports.TopicFields = {}));
27
+ class Topic extends abstractEntity_1.AbstractEntity {
28
+ constructor(input) {
29
+ 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]);
40
+ }
41
+ get id() {
42
+ return __classPrivateFieldGet(this, _id);
43
+ }
44
+ get name() {
45
+ return __classPrivateFieldGet(this, _name);
46
+ }
47
+ get label() {
48
+ return __classPrivateFieldGet(this, _label);
49
+ }
50
+ get premium() {
51
+ return __classPrivateFieldGet(this, _premium);
52
+ }
53
+ get description() {
54
+ return __classPrivateFieldGet(this, _description);
55
+ }
56
+ toJSON() {
57
+ return {
58
+ [TopicFields.COLUMN_ID]: this.id,
59
+ [TopicFields.COLUMN_NAME]: this.name,
60
+ [TopicFields.COLUMN_LABEL]: this.label,
61
+ [TopicFields.COLUMN_PREMIUM]: this.premium,
62
+ [TopicFields.COLUMN_DESCRIPTION]: this.description,
63
+ };
64
+ }
65
+ }
66
+ exports.Topic = Topic;
67
+ _id = new WeakMap(), _name = new WeakMap(), _label = new WeakMap(), _premium = new WeakMap(), _description = new WeakMap();
68
+ class Topics extends abstractEntity_1.AbstractEntity {
69
+ constructor(input) {
70
+ super(input);
71
+ _list.set(this, void 0);
72
+ __classPrivateFieldSet(this, _list, input.map((item) => new Topic(item)));
73
+ }
74
+ get list() {
75
+ return __classPrivateFieldGet(this, _list);
76
+ }
77
+ toJSON() {
78
+ return this.list.map((item) => item.toJSON());
79
+ }
80
+ }
81
+ exports.Topics = Topics;
82
+ _list = new WeakMap();
83
+ //# sourceMappingURL=topic.js.map
@@ -0,0 +1,8 @@
1
+ export * from './entities/topic';
2
+ export * from './entities/issue/issue';
3
+ export * from './entities/issue/comment';
4
+ export * from './entities/issue/attachment';
5
+ export * from './payloads/issue';
6
+ export * from './payloads/comment';
7
+ export * from './payloads/attachment';
8
+ export * from './supportCenterClient';
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./entities/topic"), exports);
14
+ __exportStar(require("./entities/issue/issue"), exports);
15
+ __exportStar(require("./entities/issue/comment"), exports);
16
+ __exportStar(require("./entities/issue/attachment"), exports);
17
+ __exportStar(require("./payloads/issue"), exports);
18
+ __exportStar(require("./payloads/comment"), exports);
19
+ __exportStar(require("./payloads/attachment"), exports);
20
+ __exportStar(require("./supportCenterClient"), exports);
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,6 @@
1
+ import { IssueAttachmentFields } from '../entities/issue/attachment';
2
+ export declare type AddIssueAttachmentPayload = {
3
+ [IssueAttachmentFields.COLUMN_FILE_NAME]: string;
4
+ [IssueAttachmentFields.COLUMN_MIME_TYPE]: string;
5
+ [IssueAttachmentFields.COLUMN_CONTENT]: string;
6
+ };
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const attachment_1 = require("../entities/issue/attachment");
4
+ //# sourceMappingURL=attachment.js.map
@@ -0,0 +1,6 @@
1
+ import { IssueCreatedByType } from '../entities/issue/issue';
2
+ import { IssueCommentFields } from '../entities/issue/comment';
3
+ export declare type AddIssueCommentPayload = {
4
+ [IssueCommentFields.COLUMN_BODY]: string;
5
+ [IssueCommentFields.COLUMN_CREATED_BY]?: IssueCreatedByType;
6
+ };
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const comment_1 = require("../entities/issue/comment");
4
+ //# sourceMappingURL=comment.js.map
@@ -0,0 +1,32 @@
1
+ import { IssueAdditionalDataType, IssueCreatedByType, IssueFields, IssueOfferType, IssueStatusesType } from '../entities/issue/issue';
2
+ import { Payload } from '../../abstractClient';
3
+ export declare enum IssueProgramsType {
4
+ MSCSP = "MSCSP",
5
+ ARWS_AMS = "ARWS-AMS"
6
+ }
7
+ export declare type CreateIssuePayload = {
8
+ [IssueFields.COLUMN_TITLE]: string;
9
+ [IssueFields.COLUMN_DESCRIPTION]: string;
10
+ [IssueFields.COLUMN_TOPIC_ID]: string;
11
+ [IssueFields.COLUMN_PROGRAM]: IssueProgramsType;
12
+ [IssueFields.COLUMN_OFFER]?: IssueOfferType;
13
+ [IssueFields.COLUMN_CREATED_BY]?: IssueCreatedByType;
14
+ [IssueFields.COLUMN_END_CUSTOMER_REF]?: string;
15
+ [IssueFields.COLUMN_ADDITIONAL_DATA]?: Array<IssueAdditionalDataType>;
16
+ };
17
+ export declare type UpdateIssueStatusOperation = {
18
+ op: 'replace';
19
+ path: 'status';
20
+ value: IssueStatusesType.CLOSED;
21
+ };
22
+ export declare enum StatusDetailsValueEnum {
23
+ RESOLVED = "RESOLVED",
24
+ CANCELLED = "CANCELLED",
25
+ SELF_RESOLVED = "SELF_RESOLVED"
26
+ }
27
+ export declare type UpdateIssueStatusDetailsOperation = {
28
+ op: 'replace';
29
+ path: 'statusDetails';
30
+ value: StatusDetailsValueEnum;
31
+ };
32
+ export declare type UpdateIssuePayload = [UpdateIssueStatusOperation, UpdateIssueStatusDetailsOperation] | Payload;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StatusDetailsValueEnum = exports.IssueProgramsType = void 0;
4
+ const issue_1 = require("../entities/issue/issue");
5
+ var IssueProgramsType;
6
+ (function (IssueProgramsType) {
7
+ IssueProgramsType["MSCSP"] = "MSCSP";
8
+ IssueProgramsType["ARWS_AMS"] = "ARWS-AMS";
9
+ })(IssueProgramsType = exports.IssueProgramsType || (exports.IssueProgramsType = {}));
10
+ var StatusDetailsValueEnum;
11
+ (function (StatusDetailsValueEnum) {
12
+ StatusDetailsValueEnum["RESOLVED"] = "RESOLVED";
13
+ StatusDetailsValueEnum["CANCELLED"] = "CANCELLED";
14
+ StatusDetailsValueEnum["SELF_RESOLVED"] = "SELF_RESOLVED";
15
+ })(StatusDetailsValueEnum = exports.StatusDetailsValueEnum || (exports.StatusDetailsValueEnum = {}));
16
+ //# sourceMappingURL=issue.js.map
@@ -0,0 +1,42 @@
1
+ import { AbstractClient, Parameters, ParametersWithPaginationType } from '../abstractClient';
2
+ import { Issue, Issues, IssueStatusesType } from './entities/issue/issue';
3
+ import { GetResult } from '../getResult';
4
+ import { IssueAttachment, IssueAttachments } from './entities/issue/attachment';
5
+ import { CreateIssuePayload, UpdateIssuePayload } from './payloads/issue';
6
+ import { IssueComment, IssueComments } from './entities/issue/comment';
7
+ import { AddIssueCommentPayload } from './payloads/comment';
8
+ import { AddIssueAttachmentPayload } from './payloads/attachment';
9
+ import { Topics } from './entities/topic';
10
+ export declare enum ListIssueParametersFields {
11
+ DIR = "dir",
12
+ END_CUSTOMER_REF = "endCustomerRef",
13
+ PROGRAM = "program",
14
+ RESELLER_REF = "resellerRef",
15
+ SKU = "sku",
16
+ SORT = "sort",
17
+ STATUSES = "statuses",
18
+ TITLE = "title"
19
+ }
20
+ export declare type ListIssueParametersType = ParametersWithPaginationType & {
21
+ [ListIssueParametersFields.DIR]?: string;
22
+ [ListIssueParametersFields.END_CUSTOMER_REF]?: string;
23
+ [ListIssueParametersFields.PROGRAM]?: string;
24
+ [ListIssueParametersFields.RESELLER_REF]?: string;
25
+ [ListIssueParametersFields.SKU]?: string;
26
+ [ListIssueParametersFields.SORT]?: 'title' | 'updated' | 'status';
27
+ [ListIssueParametersFields.STATUSES]?: IssueStatusesType;
28
+ [ListIssueParametersFields.TITLE]?: string;
29
+ };
30
+ export declare class SupportCenterClient extends AbstractClient {
31
+ protected basePath: string;
32
+ listTopics(parameters?: Parameters): Promise<GetResult<Topics>>;
33
+ listIssues(parameters?: ListIssueParametersType): Promise<GetResult<Issues>>;
34
+ createIssue(issuePayload: CreateIssuePayload, parameters?: Parameters): Promise<GetResult<Issue>>;
35
+ getIssue(issueId: string, parameters?: Parameters): Promise<GetResult<Issue>>;
36
+ updateIssue(issueId: string, payload: UpdateIssuePayload, parameters?: Parameters): Promise<GetResult<Issue>>;
37
+ listIssueComments(issueId: string, parameters?: Parameters): Promise<GetResult<IssueComments>>;
38
+ addIssueComment(issueId: string, payload: AddIssueCommentPayload, parameters?: Parameters): Promise<GetResult<IssueComment>>;
39
+ listIssueAttachments(issueId: string, parameters?: Parameters): Promise<GetResult<IssueAttachments>>;
40
+ addIssueAttachment(issueId: string, payload: AddIssueAttachmentPayload, parameters?: Parameters): Promise<GetResult<IssueAttachment>>;
41
+ downloadIssueAttachment(issueId: string, attachmentId: string, parameters?: Parameters): Promise<GetResult<IssueAttachment>>;
42
+ }
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SupportCenterClient = exports.ListIssueParametersFields = void 0;
4
+ const abstractClient_1 = require("../abstractClient");
5
+ const issue_1 = require("./entities/issue/issue");
6
+ const getResult_1 = require("../getResult");
7
+ const attachment_1 = require("./entities/issue/attachment");
8
+ const comment_1 = require("./entities/issue/comment");
9
+ const topic_1 = require("./entities/topic");
10
+ var ListIssueParametersFields;
11
+ (function (ListIssueParametersFields) {
12
+ ListIssueParametersFields["DIR"] = "dir";
13
+ ListIssueParametersFields["END_CUSTOMER_REF"] = "endCustomerRef";
14
+ ListIssueParametersFields["PROGRAM"] = "program";
15
+ ListIssueParametersFields["RESELLER_REF"] = "resellerRef";
16
+ ListIssueParametersFields["SKU"] = "sku";
17
+ ListIssueParametersFields["SORT"] = "sort";
18
+ ListIssueParametersFields["STATUSES"] = "statuses";
19
+ ListIssueParametersFields["TITLE"] = "title";
20
+ })(ListIssueParametersFields = exports.ListIssueParametersFields || (exports.ListIssueParametersFields = {}));
21
+ class SupportCenterClient extends abstractClient_1.AbstractClient {
22
+ constructor() {
23
+ super(...arguments);
24
+ this.basePath = '/support';
25
+ }
26
+ async listTopics(parameters = {}) {
27
+ this.path = `/topics`;
28
+ return new getResult_1.GetResult(topic_1.Topics, await this.get(parameters));
29
+ }
30
+ async listIssues(parameters = {}) {
31
+ this.path = `/issues`;
32
+ return new getResult_1.GetResult(issue_1.Issues, await this.get(parameters));
33
+ }
34
+ async createIssue(issuePayload, parameters = {}) {
35
+ this.path = `/issues`;
36
+ return new getResult_1.GetResult(issue_1.Issue, await this.post(issuePayload, parameters));
37
+ }
38
+ async getIssue(issueId, parameters = {}) {
39
+ this.path = `/issues/${issueId}`;
40
+ return new getResult_1.GetResult(issue_1.Issue, await this.get(parameters));
41
+ }
42
+ async updateIssue(issueId, payload, parameters = {}) {
43
+ this.path = `/issues/${issueId}`;
44
+ return new getResult_1.GetResult(issue_1.Issue, await this.patch(payload, parameters));
45
+ }
46
+ async listIssueComments(issueId, parameters = {}) {
47
+ this.path = `/issues/${issueId}/comments`;
48
+ return new getResult_1.GetResult(comment_1.IssueComments, await this.get(parameters));
49
+ }
50
+ async addIssueComment(issueId, payload, parameters = {}) {
51
+ this.path = `/issues/${issueId}/comments`;
52
+ return new getResult_1.GetResult(comment_1.IssueComment, await this.post(payload, parameters));
53
+ }
54
+ async listIssueAttachments(issueId, parameters = {}) {
55
+ this.path = `/issues/${issueId}/attachments`;
56
+ return new getResult_1.GetResult(attachment_1.IssueAttachments, await this.get(parameters));
57
+ }
58
+ async addIssueAttachment(issueId, payload, parameters = {}) {
59
+ this.path = `/issues/${issueId}/attachments`;
60
+ return new getResult_1.GetResult(attachment_1.IssueAttachment, await this.post(payload, parameters));
61
+ }
62
+ async downloadIssueAttachment(issueId, attachmentId, parameters = {}) {
63
+ this.path = `/issues/${issueId}/attachments/${attachmentId}`;
64
+ return new getResult_1.GetResult(attachment_1.IssueAttachment, await this.get(parameters));
65
+ }
66
+ }
67
+ exports.SupportCenterClient = SupportCenterClient;
68
+ //# sourceMappingURL=supportCenterClient.js.map
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.25.0-rc.wev.1",
7
+ "version": "3.26.0-rc.1",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",