@arrowsphere/api-client 3.24.0-rc.2 → 3.24.0-rc.4
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 +5 -2
- package/build/abstractClient.d.ts +20 -11
- package/build/abstractClient.js +29 -5
- package/build/index.d.ts +0 -1
- package/build/index.js +0 -1
- package/build/publicApiClient.d.ts +0 -2
- package/build/publicApiClient.js +0 -7
- package/package.json +11 -10
- package/build/supportCenter/entities/issue/attachment.d.ts +0 -29
- package/build/supportCenter/entities/issue/attachment.js +0 -76
- package/build/supportCenter/entities/issue/comment.d.ts +0 -30
- package/build/supportCenter/entities/issue/comment.js +0 -77
- package/build/supportCenter/entities/issue/issue.d.ts +0 -142
- package/build/supportCenter/entities/issue/issue.js +0 -302
- package/build/supportCenter/entities/topic.d.ts +0 -32
- package/build/supportCenter/entities/topic.js +0 -83
- package/build/supportCenter/index.d.ts +0 -8
- package/build/supportCenter/index.js +0 -21
- package/build/supportCenter/payloads/attachment.d.ts +0 -6
- package/build/supportCenter/payloads/attachment.js +0 -4
- package/build/supportCenter/payloads/comment.d.ts +0 -6
- package/build/supportCenter/payloads/comment.js +0 -4
- package/build/supportCenter/payloads/issue.d.ts +0 -32
- package/build/supportCenter/payloads/issue.js +0 -16
- package/build/supportCenter/supportCenterClient.d.ts +0 -42
- package/build/supportCenter/supportCenterClient.js +0 -68
package/CHANGELOG.md
CHANGED
|
@@ -3,11 +3,14 @@
|
|
|
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.24.0] - 2023-04-
|
|
6
|
+
## [3.24.0] - 2023-04-07
|
|
7
7
|
|
|
8
8
|
### Changed
|
|
9
9
|
|
|
10
|
-
-
|
|
10
|
+
- Node 12 is not supported on this client
|
|
11
|
+
- Version 16 and 18 of nodejs are supported
|
|
12
|
+
- Add Extra information
|
|
13
|
+
- Improve define configuration
|
|
11
14
|
|
|
12
15
|
## [3.23.0] - 2023-03-29
|
|
13
16
|
|
|
@@ -4,25 +4,28 @@ import { AxiosInstance, AxiosResponse } from 'axios';
|
|
|
4
4
|
*/
|
|
5
5
|
export declare enum ParameterKeys {
|
|
6
6
|
API_KEY = "apiKey",
|
|
7
|
+
EXTRA_INFORMATION = "extraInformation",
|
|
8
|
+
HEADERS = "headers",
|
|
9
|
+
ORDER_BY = "order_by",
|
|
7
10
|
PAGE = "page",
|
|
8
11
|
PER_PAGE = "per_page",
|
|
12
|
+
PER_PAGE_CAMEL = "perPage",
|
|
9
13
|
SORT_BY = "sort_by",
|
|
10
|
-
|
|
11
|
-
PER_PAGE_CAMEL = "perPage"
|
|
14
|
+
URL = "url"
|
|
12
15
|
}
|
|
13
|
-
export declare type ParametersWithPaginationType = (Parameters & {
|
|
14
|
-
[ParameterKeys.PAGE]?: number;
|
|
15
|
-
[ParameterKeys.PER_PAGE]?: number;
|
|
16
|
-
}) | (Parameters & {
|
|
17
|
-
[ParameterKeys.PAGE]?: number;
|
|
18
|
-
[ParameterKeys.PER_PAGE_CAMEL]?: number;
|
|
19
|
-
});
|
|
20
16
|
export declare type Parameters = Record<string, string | string[] | number | number[] | boolean | null | undefined>;
|
|
21
17
|
export declare type Headers = Record<string, string>;
|
|
22
|
-
export declare type
|
|
18
|
+
export declare type ExtraInformation = Record<string, unknown> | undefined;
|
|
19
|
+
export declare type Payload = Record<string, unknown>;
|
|
23
20
|
export declare type Options = {
|
|
24
21
|
isAdmin?: boolean;
|
|
25
22
|
};
|
|
23
|
+
export declare type ConfigurationsClient = {
|
|
24
|
+
[ParameterKeys.API_KEY]?: string;
|
|
25
|
+
[ParameterKeys.URL]?: string;
|
|
26
|
+
[ParameterKeys.HEADERS]?: Headers;
|
|
27
|
+
[ParameterKeys.EXTRA_INFORMATION]?: ExtraInformation;
|
|
28
|
+
};
|
|
26
29
|
export declare abstract class AbstractClient {
|
|
27
30
|
/**
|
|
28
31
|
* Base path for HTTP calls
|
|
@@ -60,11 +63,15 @@ export declare abstract class AbstractClient {
|
|
|
60
63
|
* Defines header information for axios call
|
|
61
64
|
*/
|
|
62
65
|
protected headers: Headers;
|
|
66
|
+
/**
|
|
67
|
+
* Defines extra information in payload
|
|
68
|
+
*/
|
|
69
|
+
protected extraInformation: Record<string, unknown>;
|
|
63
70
|
/**
|
|
64
71
|
* AbstractClient constructor.
|
|
65
72
|
* @returns AbstractClient
|
|
66
73
|
*/
|
|
67
|
-
protected constructor();
|
|
74
|
+
protected constructor(configuration?: ConfigurationsClient);
|
|
68
75
|
/**
|
|
69
76
|
* Sets the Client ArrowSphere API key
|
|
70
77
|
* @param key - ArrowSphere API key
|
|
@@ -100,6 +107,7 @@ export declare abstract class AbstractClient {
|
|
|
100
107
|
* @returns AbstractClient
|
|
101
108
|
*/
|
|
102
109
|
setHeaders(headers: Record<string, string>): this;
|
|
110
|
+
setExtraInformation(extraInformation: ExtraInformation): this;
|
|
103
111
|
/**
|
|
104
112
|
* Sends a GET request and returns the response
|
|
105
113
|
* @param parameters - Query parameters to send
|
|
@@ -168,4 +176,5 @@ export declare abstract class AbstractClient {
|
|
|
168
176
|
* @returns {@link Parameters}
|
|
169
177
|
*/
|
|
170
178
|
private generatePagination;
|
|
179
|
+
private generatePayload;
|
|
171
180
|
}
|
package/build/abstractClient.js
CHANGED
|
@@ -15,18 +15,22 @@ const axiosSingleton_1 = require("./axiosSingleton");
|
|
|
15
15
|
var ParameterKeys;
|
|
16
16
|
(function (ParameterKeys) {
|
|
17
17
|
ParameterKeys["API_KEY"] = "apiKey";
|
|
18
|
+
ParameterKeys["EXTRA_INFORMATION"] = "extraInformation";
|
|
19
|
+
ParameterKeys["HEADERS"] = "headers";
|
|
20
|
+
ParameterKeys["ORDER_BY"] = "order_by";
|
|
18
21
|
ParameterKeys["PAGE"] = "page";
|
|
19
22
|
ParameterKeys["PER_PAGE"] = "per_page";
|
|
20
|
-
ParameterKeys["SORT_BY"] = "sort_by";
|
|
21
|
-
ParameterKeys["ORDER_BY"] = "order_by";
|
|
22
23
|
ParameterKeys["PER_PAGE_CAMEL"] = "perPage";
|
|
24
|
+
ParameterKeys["SORT_BY"] = "sort_by";
|
|
25
|
+
ParameterKeys["URL"] = "url";
|
|
23
26
|
})(ParameterKeys = exports.ParameterKeys || (exports.ParameterKeys = {}));
|
|
24
27
|
class AbstractClient {
|
|
25
28
|
/**
|
|
26
29
|
* AbstractClient constructor.
|
|
27
30
|
* @returns AbstractClient
|
|
28
31
|
*/
|
|
29
|
-
constructor() {
|
|
32
|
+
constructor(configuration) {
|
|
33
|
+
var _a, _b, _c, _d;
|
|
30
34
|
/**
|
|
31
35
|
* Base path for HTTP calls
|
|
32
36
|
*/
|
|
@@ -59,7 +63,15 @@ class AbstractClient {
|
|
|
59
63
|
* Defines header information for axios call
|
|
60
64
|
*/
|
|
61
65
|
this.headers = {};
|
|
66
|
+
/**
|
|
67
|
+
* Defines extra information in payload
|
|
68
|
+
*/
|
|
69
|
+
this.extraInformation = {};
|
|
62
70
|
this.client = axiosSingleton_1.AxiosSingleton.getInstance();
|
|
71
|
+
this.setApiKey((_a = configuration === null || configuration === void 0 ? void 0 : configuration[ParameterKeys.API_KEY]) !== null && _a !== void 0 ? _a : '');
|
|
72
|
+
this.setUrl((_b = configuration === null || configuration === void 0 ? void 0 : configuration[ParameterKeys.URL]) !== null && _b !== void 0 ? _b : '');
|
|
73
|
+
this.setHeaders((_c = configuration === null || configuration === void 0 ? void 0 : configuration[ParameterKeys.HEADERS]) !== null && _c !== void 0 ? _c : {});
|
|
74
|
+
this.setExtraInformation((_d = configuration === null || configuration === void 0 ? void 0 : configuration[ParameterKeys.EXTRA_INFORMATION]) !== null && _d !== void 0 ? _d : undefined);
|
|
63
75
|
}
|
|
64
76
|
/**
|
|
65
77
|
* Sets the Client ArrowSphere API key
|
|
@@ -113,6 +125,12 @@ class AbstractClient {
|
|
|
113
125
|
this.headers = headers;
|
|
114
126
|
return this;
|
|
115
127
|
}
|
|
128
|
+
setExtraInformation(extraInformation) {
|
|
129
|
+
this.extraInformation = extraInformation
|
|
130
|
+
? { extraInformation: extraInformation }
|
|
131
|
+
: {};
|
|
132
|
+
return this;
|
|
133
|
+
}
|
|
116
134
|
/**
|
|
117
135
|
* Sends a GET request and returns the response
|
|
118
136
|
* @param parameters - Query parameters to send
|
|
@@ -162,7 +180,7 @@ class AbstractClient {
|
|
|
162
180
|
* @param options - Options to send
|
|
163
181
|
*/
|
|
164
182
|
async post(payload = {}, parameters = {}, headers = {}, options = {}) {
|
|
165
|
-
const response = await this.client.post(this.generateUrl(parameters, options), payload, {
|
|
183
|
+
const response = await this.client.post(this.generateUrl(parameters, options), this.generatePayload(payload), {
|
|
166
184
|
headers: this.prepareHeaders(headers),
|
|
167
185
|
});
|
|
168
186
|
return this.getResponse(response);
|
|
@@ -176,7 +194,7 @@ class AbstractClient {
|
|
|
176
194
|
* @returns Promise\<void\>
|
|
177
195
|
*/
|
|
178
196
|
async put(payload = {}, parameters = {}, headers = {}, options = {}) {
|
|
179
|
-
const response = await this.client.put(this.generateUrl(parameters, options), payload, {
|
|
197
|
+
const response = await this.client.put(this.generateUrl(parameters, options), this.generatePayload(payload), {
|
|
180
198
|
headers: this.prepareHeaders(headers),
|
|
181
199
|
});
|
|
182
200
|
return this.getResponse(response);
|
|
@@ -242,6 +260,12 @@ class AbstractClient {
|
|
|
242
260
|
}
|
|
243
261
|
return params;
|
|
244
262
|
}
|
|
263
|
+
generatePayload(payload) {
|
|
264
|
+
return {
|
|
265
|
+
...payload,
|
|
266
|
+
...this.extraInformation,
|
|
267
|
+
};
|
|
268
|
+
}
|
|
245
269
|
}
|
|
246
270
|
exports.AbstractClient = AbstractClient;
|
|
247
271
|
//# sourceMappingURL=abstractClient.js.map
|
package/build/index.d.ts
CHANGED
package/build/index.js
CHANGED
|
@@ -43,7 +43,6 @@ __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);
|
|
47
46
|
const ContactInformation = __importStar(require("./contact"));
|
|
48
47
|
exports.ContactInformation = ContactInformation;
|
|
49
48
|
//# sourceMappingURL=index.js.map
|
|
@@ -10,7 +10,6 @@ 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';
|
|
14
13
|
/**
|
|
15
14
|
* Public API Client class, should be the main entry point for your calls
|
|
16
15
|
*/
|
|
@@ -60,6 +59,5 @@ export declare class PublicApiClient extends AbstractClient {
|
|
|
60
59
|
getSecurityStandardsClient(): StandardsClient;
|
|
61
60
|
getSecurityRegisterClient(): RegisterClient;
|
|
62
61
|
getCartClient(): CartClient;
|
|
63
|
-
getSupportCenterClient(): SupportCenterClient;
|
|
64
62
|
}
|
|
65
63
|
export default PublicApiClient;
|
package/build/publicApiClient.js
CHANGED
|
@@ -13,7 +13,6 @@ 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");
|
|
17
16
|
/**
|
|
18
17
|
* Public API Client class, should be the main entry point for your calls
|
|
19
18
|
*/
|
|
@@ -125,12 +124,6 @@ class PublicApiClient extends abstractClient_1.AbstractClient {
|
|
|
125
124
|
.setApiKey(this.apiKey)
|
|
126
125
|
.setHeaders(this.headers);
|
|
127
126
|
}
|
|
128
|
-
getSupportCenterClient() {
|
|
129
|
-
return new supportCenter_1.SupportCenterClient()
|
|
130
|
-
.setUrl(this.url)
|
|
131
|
-
.setApiKey(this.apiKey)
|
|
132
|
-
.setHeaders(this.headers);
|
|
133
|
-
}
|
|
134
127
|
}
|
|
135
128
|
exports.PublicApiClient = PublicApiClient;
|
|
136
129
|
exports.default = PublicApiClient;
|
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.24.0-rc.
|
|
7
|
+
"version": "3.24.0-rc.4",
|
|
8
8
|
"description": "Node.js client for ArrowSphere's public API",
|
|
9
9
|
"main": "build/index.js",
|
|
10
10
|
"types": "build/index.d.ts",
|
|
@@ -37,23 +37,24 @@
|
|
|
37
37
|
"@types/node": "18.11.10",
|
|
38
38
|
"@types/sinon": "9.0.10",
|
|
39
39
|
"@types/sinon-chai": "3.2.5",
|
|
40
|
-
"@typescript-eslint/eslint-plugin": "
|
|
41
|
-
"@typescript-eslint/parser": "
|
|
40
|
+
"@typescript-eslint/eslint-plugin": "5.58.0",
|
|
41
|
+
"@typescript-eslint/parser": "5.58.0",
|
|
42
42
|
"chai": "4.3.0",
|
|
43
43
|
"chai-as-promised": "7.1.1",
|
|
44
|
-
"coveralls": "3.1.
|
|
45
|
-
"eslint": "
|
|
44
|
+
"coveralls": "3.1.1",
|
|
45
|
+
"eslint": "8.38.0",
|
|
46
46
|
"eslint-config-prettier": "7.2.0",
|
|
47
47
|
"eslint-plugin-prettier": "3.3.1",
|
|
48
|
-
"eslint-plugin-tsdoc": "0.2.
|
|
48
|
+
"eslint-plugin-tsdoc": "0.2.17",
|
|
49
49
|
"husky": "4.3.8",
|
|
50
|
-
"joi": "17.
|
|
51
|
-
"lint-staged": "
|
|
52
|
-
"mocha": "
|
|
50
|
+
"joi": "17.9.1",
|
|
51
|
+
"lint-staged": "13.2.1",
|
|
52
|
+
"mocha": "10.2.0",
|
|
53
|
+
"mocha-suppress-logs": "0.3.1",
|
|
53
54
|
"nock": "13.0.7",
|
|
54
55
|
"nyc": "15.1.0",
|
|
55
56
|
"prettier": "2.2.1",
|
|
56
|
-
"rimraf": "
|
|
57
|
+
"rimraf": "5.0.0",
|
|
57
58
|
"sinon": "9.2.4",
|
|
58
59
|
"sinon-chai": "3.5.0",
|
|
59
60
|
"source-map-support": "0.5.19",
|
|
@@ -1,29 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,76 +0,0 @@
|
|
|
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
|
|
@@ -1,30 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,77 +0,0 @@
|
|
|
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
|
|
@@ -1,142 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,302 +0,0 @@
|
|
|
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
|
|
@@ -1,32 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,83 +0,0 @@
|
|
|
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
|
|
@@ -1,8 +0,0 @@
|
|
|
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';
|
|
@@ -1,21 +0,0 @@
|
|
|
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
|
|
@@ -1,6 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
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;
|
|
@@ -1,16 +0,0 @@
|
|
|
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
|
|
@@ -1,42 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,68 +0,0 @@
|
|
|
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
|