@easyedu/js-lsm-api 1.41.0 → 1.43.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/.openapi-generator/FILES +22 -0
  2. package/README.md +23 -2
  3. package/dist/apis/CourseApi.d.ts +32 -1
  4. package/dist/apis/CourseApi.js +99 -0
  5. package/dist/apis/SupportTicketApi.d.ts +191 -0
  6. package/dist/apis/SupportTicketApi.js +457 -0
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +1 -0
  9. package/dist/esm/apis/CourseApi.d.ts +32 -1
  10. package/dist/esm/apis/CourseApi.js +100 -1
  11. package/dist/esm/apis/SupportTicketApi.d.ts +191 -0
  12. package/dist/esm/apis/SupportTicketApi.js +453 -0
  13. package/dist/esm/apis/index.d.ts +1 -0
  14. package/dist/esm/apis/index.js +1 -0
  15. package/dist/esm/models/DownloadSupportTicketAttachment200Response.d.ts +32 -0
  16. package/dist/esm/models/DownloadSupportTicketAttachment200Response.js +43 -0
  17. package/dist/esm/models/GetCourseImageUpload.d.ts +32 -0
  18. package/dist/esm/models/GetCourseImageUpload.js +43 -0
  19. package/dist/esm/models/GetSupportTicket.d.ts +142 -0
  20. package/dist/esm/models/GetSupportTicket.js +120 -0
  21. package/dist/esm/models/GetSupportTicketAttachment.d.ts +62 -0
  22. package/dist/esm/models/GetSupportTicketAttachment.js +63 -0
  23. package/dist/esm/models/GetSupportTicketComment.d.ts +57 -0
  24. package/dist/esm/models/GetSupportTicketComment.js +60 -0
  25. package/dist/esm/models/GetSupportTicketList.d.ts +57 -0
  26. package/dist/esm/models/GetSupportTicketList.js +60 -0
  27. package/dist/esm/models/PostSupportTicket.d.ts +71 -0
  28. package/dist/esm/models/PostSupportTicket.js +74 -0
  29. package/dist/esm/models/PostSupportTicketComment.d.ts +38 -0
  30. package/dist/esm/models/PostSupportTicketComment.js +45 -0
  31. package/dist/esm/models/PutCourse.d.ts +0 -6
  32. package/dist/esm/models/PutCourse.js +0 -2
  33. package/dist/esm/models/PutSupportTicket.d.ts +63 -0
  34. package/dist/esm/models/PutSupportTicket.js +62 -0
  35. package/dist/esm/models/SupportTicketUser.d.ts +50 -0
  36. package/dist/esm/models/SupportTicketUser.js +55 -0
  37. package/dist/esm/models/index.d.ts +10 -0
  38. package/dist/esm/models/index.js +10 -0
  39. package/dist/models/DownloadSupportTicketAttachment200Response.d.ts +32 -0
  40. package/dist/models/DownloadSupportTicketAttachment200Response.js +50 -0
  41. package/dist/models/GetCourseImageUpload.d.ts +32 -0
  42. package/dist/models/GetCourseImageUpload.js +50 -0
  43. package/dist/models/GetSupportTicket.d.ts +142 -0
  44. package/dist/models/GetSupportTicket.js +128 -0
  45. package/dist/models/GetSupportTicketAttachment.d.ts +62 -0
  46. package/dist/models/GetSupportTicketAttachment.js +70 -0
  47. package/dist/models/GetSupportTicketComment.d.ts +57 -0
  48. package/dist/models/GetSupportTicketComment.js +67 -0
  49. package/dist/models/GetSupportTicketList.d.ts +57 -0
  50. package/dist/models/GetSupportTicketList.js +67 -0
  51. package/dist/models/PostSupportTicket.d.ts +71 -0
  52. package/dist/models/PostSupportTicket.js +82 -0
  53. package/dist/models/PostSupportTicketComment.d.ts +38 -0
  54. package/dist/models/PostSupportTicketComment.js +52 -0
  55. package/dist/models/PutCourse.d.ts +0 -6
  56. package/dist/models/PutCourse.js +0 -2
  57. package/dist/models/PutSupportTicket.d.ts +63 -0
  58. package/dist/models/PutSupportTicket.js +70 -0
  59. package/dist/models/SupportTicketUser.d.ts +50 -0
  60. package/dist/models/SupportTicketUser.js +62 -0
  61. package/dist/models/index.d.ts +10 -0
  62. package/dist/models/index.js +10 -0
  63. package/docs/CourseApi.md +138 -0
  64. package/docs/DownloadSupportTicketAttachment200Response.md +34 -0
  65. package/docs/GetCourseImageUpload.md +34 -0
  66. package/docs/GetSupportTicket.md +60 -0
  67. package/docs/GetSupportTicketAttachment.md +44 -0
  68. package/docs/GetSupportTicketComment.md +42 -0
  69. package/docs/GetSupportTicketList.md +42 -0
  70. package/docs/PostSupportTicket.md +40 -0
  71. package/docs/PostSupportTicketComment.md +36 -0
  72. package/docs/PutCourse.md +0 -2
  73. package/docs/PutSupportTicket.md +38 -0
  74. package/docs/SupportTicketApi.md +651 -0
  75. package/docs/SupportTicketUser.md +40 -0
  76. package/package.json +1 -1
  77. package/src/apis/CourseApi.ts +129 -0
  78. package/src/apis/SupportTicketApi.ts +599 -0
  79. package/src/apis/index.ts +1 -0
  80. package/src/models/DownloadSupportTicketAttachment200Response.ts +66 -0
  81. package/src/models/GetCourseImageUpload.ts +66 -0
  82. package/src/models/GetSupportTicket.ts +231 -0
  83. package/src/models/GetSupportTicketAttachment.ts +111 -0
  84. package/src/models/GetSupportTicketComment.ts +110 -0
  85. package/src/models/GetSupportTicketList.ts +110 -0
  86. package/src/models/PostSupportTicket.ts +118 -0
  87. package/src/models/PostSupportTicketComment.ts +74 -0
  88. package/src/models/PutCourse.ts +0 -8
  89. package/src/models/PutSupportTicket.ts +104 -0
  90. package/src/models/SupportTicketUser.ts +93 -0
  91. package/src/models/index.ts +10 -0
@@ -3,6 +3,7 @@
3
3
  export * from './CriteriaBasedSelection';
4
4
  export * from './CriteriaBasedSelectionCriteria';
5
5
  export * from './CriteriaBasedSelectionDistribution';
6
+ export * from './DownloadSupportTicketAttachment200Response';
6
7
  export * from './Essay';
7
8
  export * from './Essay1';
8
9
  export * from './FillInBlank';
@@ -40,6 +41,7 @@ export * from './GetCourseEnrollmentList';
40
41
  export * from './GetCourseEnrollmentListItem';
41
42
  export * from './GetCourseExport';
42
43
  export * from './GetCourseExportList';
44
+ export * from './GetCourseImageUpload';
43
45
  export * from './GetCourseList';
44
46
  export * from './GetCourseReportingBasic';
45
47
  export * from './GetCourseStudentReporting';
@@ -125,6 +127,10 @@ export * from './GetScormPackage';
125
127
  export * from './GetScormPackagePackageInfo';
126
128
  export * from './GetScormSessionData';
127
129
  export * from './GetScormSessionDataActivity';
130
+ export * from './GetSupportTicket';
131
+ export * from './GetSupportTicketAttachment';
132
+ export * from './GetSupportTicketComment';
133
+ export * from './GetSupportTicketList';
128
134
  export * from './GetUser';
129
135
  export * from './GetUserQuizAttempts';
130
136
  export * from './GetUserQuizAttemptsAllOfAttempts';
@@ -182,6 +188,8 @@ export * from './PostQuizSettings';
182
188
  export * from './PostResetPassword';
183
189
  export * from './PostRole';
184
190
  export * from './PostSendResetPassword';
191
+ export * from './PostSupportTicket';
192
+ export * from './PostSupportTicketComment';
185
193
  export * from './PostVerifyManifest';
186
194
  export * from './PostVerifyManifestItemsInner';
187
195
  export * from './PostVerifyManifestResourcesInner';
@@ -200,6 +208,7 @@ export * from './PutQuizAnswerGrade';
200
208
  export * from './PutQuizSettings';
201
209
  export * from './PutRole';
202
210
  export * from './PutRolePermissions';
211
+ export * from './PutSupportTicket';
203
212
  export * from './PutUser';
204
213
  export * from './QuizContent';
205
214
  export * from './QuizContentAssignment';
@@ -217,3 +226,4 @@ export * from './ScormSetValueResponse';
217
226
  export * from './ShortAnswer';
218
227
  export * from './ShortAnswer1';
219
228
  export * from './SingleAnswer';
229
+ export * from './SupportTicketUser';
@@ -0,0 +1,32 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface DownloadSupportTicketAttachment200Response
16
+ */
17
+ export interface DownloadSupportTicketAttachment200Response {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof DownloadSupportTicketAttachment200Response
22
+ */
23
+ downloadUrl: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the DownloadSupportTicketAttachment200Response interface.
27
+ */
28
+ export declare function instanceOfDownloadSupportTicketAttachment200Response(value: object): value is DownloadSupportTicketAttachment200Response;
29
+ export declare function DownloadSupportTicketAttachment200ResponseFromJSON(json: any): DownloadSupportTicketAttachment200Response;
30
+ export declare function DownloadSupportTicketAttachment200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DownloadSupportTicketAttachment200Response;
31
+ export declare function DownloadSupportTicketAttachment200ResponseToJSON(json: any): DownloadSupportTicketAttachment200Response;
32
+ export declare function DownloadSupportTicketAttachment200ResponseToJSONTyped(value?: DownloadSupportTicketAttachment200Response | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * LMS API
6
+ * LMS API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfDownloadSupportTicketAttachment200Response = instanceOfDownloadSupportTicketAttachment200Response;
17
+ exports.DownloadSupportTicketAttachment200ResponseFromJSON = DownloadSupportTicketAttachment200ResponseFromJSON;
18
+ exports.DownloadSupportTicketAttachment200ResponseFromJSONTyped = DownloadSupportTicketAttachment200ResponseFromJSONTyped;
19
+ exports.DownloadSupportTicketAttachment200ResponseToJSON = DownloadSupportTicketAttachment200ResponseToJSON;
20
+ exports.DownloadSupportTicketAttachment200ResponseToJSONTyped = DownloadSupportTicketAttachment200ResponseToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the DownloadSupportTicketAttachment200Response interface.
23
+ */
24
+ function instanceOfDownloadSupportTicketAttachment200Response(value) {
25
+ if (!('downloadUrl' in value) || value['downloadUrl'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function DownloadSupportTicketAttachment200ResponseFromJSON(json) {
30
+ return DownloadSupportTicketAttachment200ResponseFromJSONTyped(json, false);
31
+ }
32
+ function DownloadSupportTicketAttachment200ResponseFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'downloadUrl': json['download_url'],
38
+ };
39
+ }
40
+ function DownloadSupportTicketAttachment200ResponseToJSON(json) {
41
+ return DownloadSupportTicketAttachment200ResponseToJSONTyped(json, false);
42
+ }
43
+ function DownloadSupportTicketAttachment200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'download_url': value['downloadUrl'],
49
+ };
50
+ }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface GetCourseImageUpload
16
+ */
17
+ export interface GetCourseImageUpload {
18
+ /**
19
+ * Presigned URL for the uploaded course image
20
+ * @type {string}
21
+ * @memberof GetCourseImageUpload
22
+ */
23
+ imageUrl: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the GetCourseImageUpload interface.
27
+ */
28
+ export declare function instanceOfGetCourseImageUpload(value: object): value is GetCourseImageUpload;
29
+ export declare function GetCourseImageUploadFromJSON(json: any): GetCourseImageUpload;
30
+ export declare function GetCourseImageUploadFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCourseImageUpload;
31
+ export declare function GetCourseImageUploadToJSON(json: any): GetCourseImageUpload;
32
+ export declare function GetCourseImageUploadToJSONTyped(value?: GetCourseImageUpload | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * LMS API
6
+ * LMS API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfGetCourseImageUpload = instanceOfGetCourseImageUpload;
17
+ exports.GetCourseImageUploadFromJSON = GetCourseImageUploadFromJSON;
18
+ exports.GetCourseImageUploadFromJSONTyped = GetCourseImageUploadFromJSONTyped;
19
+ exports.GetCourseImageUploadToJSON = GetCourseImageUploadToJSON;
20
+ exports.GetCourseImageUploadToJSONTyped = GetCourseImageUploadToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the GetCourseImageUpload interface.
23
+ */
24
+ function instanceOfGetCourseImageUpload(value) {
25
+ if (!('imageUrl' in value) || value['imageUrl'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function GetCourseImageUploadFromJSON(json) {
30
+ return GetCourseImageUploadFromJSONTyped(json, false);
31
+ }
32
+ function GetCourseImageUploadFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'imageUrl': json['image_url'],
38
+ };
39
+ }
40
+ function GetCourseImageUploadToJSON(json) {
41
+ return GetCourseImageUploadToJSONTyped(json, false);
42
+ }
43
+ function GetCourseImageUploadToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'image_url': value['imageUrl'],
49
+ };
50
+ }
@@ -0,0 +1,142 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { GetSupportTicketAttachment } from './GetSupportTicketAttachment';
13
+ import type { SupportTicketUser } from './SupportTicketUser';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface GetSupportTicket
18
+ */
19
+ export interface GetSupportTicket {
20
+ /**
21
+ * External ID of the ticket
22
+ * @type {string}
23
+ * @memberof GetSupportTicket
24
+ */
25
+ id: string;
26
+ /**
27
+ * External ID of the portal
28
+ * @type {string}
29
+ * @memberof GetSupportTicket
30
+ */
31
+ portalId: string;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof GetSupportTicket
36
+ */
37
+ subject: string;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof GetSupportTicket
42
+ */
43
+ description: string;
44
+ /**
45
+ *
46
+ * @type {GetSupportTicketStatusEnum}
47
+ * @memberof GetSupportTicket
48
+ */
49
+ status: GetSupportTicketStatusEnum;
50
+ /**
51
+ *
52
+ * @type {GetSupportTicketPriorityEnum}
53
+ * @memberof GetSupportTicket
54
+ */
55
+ priority: GetSupportTicketPriorityEnum;
56
+ /**
57
+ *
58
+ * @type {GetSupportTicketCategoryEnum}
59
+ * @memberof GetSupportTicket
60
+ */
61
+ category: GetSupportTicketCategoryEnum;
62
+ /**
63
+ *
64
+ * @type {SupportTicketUser}
65
+ * @memberof GetSupportTicket
66
+ */
67
+ reporter: SupportTicketUser;
68
+ /**
69
+ *
70
+ * @type {SupportTicketUser}
71
+ * @memberof GetSupportTicket
72
+ */
73
+ assignedTo?: SupportTicketUser | null;
74
+ /**
75
+ *
76
+ * @type {number}
77
+ * @memberof GetSupportTicket
78
+ */
79
+ commentCount: number;
80
+ /**
81
+ *
82
+ * @type {Array<GetSupportTicketAttachment>}
83
+ * @memberof GetSupportTicket
84
+ */
85
+ attachments: Array<GetSupportTicketAttachment>;
86
+ /**
87
+ * Unix epoch timestamp
88
+ * @type {number}
89
+ * @memberof GetSupportTicket
90
+ */
91
+ createdAt: number;
92
+ /**
93
+ * Unix epoch timestamp
94
+ * @type {number}
95
+ * @memberof GetSupportTicket
96
+ */
97
+ updatedAt: number;
98
+ /**
99
+ * Unix epoch timestamp
100
+ * @type {number}
101
+ * @memberof GetSupportTicket
102
+ */
103
+ closedAt?: number | null;
104
+ }
105
+ /**
106
+ * @export
107
+ */
108
+ export declare const GetSupportTicketStatusEnum: {
109
+ readonly Open: "Open";
110
+ readonly InProgress: "InProgress";
111
+ readonly Closed: "Closed";
112
+ };
113
+ export type GetSupportTicketStatusEnum = typeof GetSupportTicketStatusEnum[keyof typeof GetSupportTicketStatusEnum];
114
+ /**
115
+ * @export
116
+ */
117
+ export declare const GetSupportTicketPriorityEnum: {
118
+ readonly Low: "Low";
119
+ readonly Medium: "Medium";
120
+ readonly High: "High";
121
+ readonly Critical: "Critical";
122
+ };
123
+ export type GetSupportTicketPriorityEnum = typeof GetSupportTicketPriorityEnum[keyof typeof GetSupportTicketPriorityEnum];
124
+ /**
125
+ * @export
126
+ */
127
+ export declare const GetSupportTicketCategoryEnum: {
128
+ readonly Bug: "Bug";
129
+ readonly FeatureRequest: "FeatureRequest";
130
+ readonly AccountIssue: "AccountIssue";
131
+ readonly ContentIssue: "ContentIssue";
132
+ readonly Other: "Other";
133
+ };
134
+ export type GetSupportTicketCategoryEnum = typeof GetSupportTicketCategoryEnum[keyof typeof GetSupportTicketCategoryEnum];
135
+ /**
136
+ * Check if a given object implements the GetSupportTicket interface.
137
+ */
138
+ export declare function instanceOfGetSupportTicket(value: object): value is GetSupportTicket;
139
+ export declare function GetSupportTicketFromJSON(json: any): GetSupportTicket;
140
+ export declare function GetSupportTicketFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetSupportTicket;
141
+ export declare function GetSupportTicketToJSON(json: any): GetSupportTicket;
142
+ export declare function GetSupportTicketToJSONTyped(value?: GetSupportTicket | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,128 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * LMS API
6
+ * LMS API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.GetSupportTicketCategoryEnum = exports.GetSupportTicketPriorityEnum = exports.GetSupportTicketStatusEnum = void 0;
17
+ exports.instanceOfGetSupportTicket = instanceOfGetSupportTicket;
18
+ exports.GetSupportTicketFromJSON = GetSupportTicketFromJSON;
19
+ exports.GetSupportTicketFromJSONTyped = GetSupportTicketFromJSONTyped;
20
+ exports.GetSupportTicketToJSON = GetSupportTicketToJSON;
21
+ exports.GetSupportTicketToJSONTyped = GetSupportTicketToJSONTyped;
22
+ const GetSupportTicketAttachment_1 = require("./GetSupportTicketAttachment");
23
+ const SupportTicketUser_1 = require("./SupportTicketUser");
24
+ /**
25
+ * @export
26
+ */
27
+ exports.GetSupportTicketStatusEnum = {
28
+ Open: 'Open',
29
+ InProgress: 'InProgress',
30
+ Closed: 'Closed'
31
+ };
32
+ /**
33
+ * @export
34
+ */
35
+ exports.GetSupportTicketPriorityEnum = {
36
+ Low: 'Low',
37
+ Medium: 'Medium',
38
+ High: 'High',
39
+ Critical: 'Critical'
40
+ };
41
+ /**
42
+ * @export
43
+ */
44
+ exports.GetSupportTicketCategoryEnum = {
45
+ Bug: 'Bug',
46
+ FeatureRequest: 'FeatureRequest',
47
+ AccountIssue: 'AccountIssue',
48
+ ContentIssue: 'ContentIssue',
49
+ Other: 'Other'
50
+ };
51
+ /**
52
+ * Check if a given object implements the GetSupportTicket interface.
53
+ */
54
+ function instanceOfGetSupportTicket(value) {
55
+ if (!('id' in value) || value['id'] === undefined)
56
+ return false;
57
+ if (!('portalId' in value) || value['portalId'] === undefined)
58
+ return false;
59
+ if (!('subject' in value) || value['subject'] === undefined)
60
+ return false;
61
+ if (!('description' in value) || value['description'] === undefined)
62
+ return false;
63
+ if (!('status' in value) || value['status'] === undefined)
64
+ return false;
65
+ if (!('priority' in value) || value['priority'] === undefined)
66
+ return false;
67
+ if (!('category' in value) || value['category'] === undefined)
68
+ return false;
69
+ if (!('reporter' in value) || value['reporter'] === undefined)
70
+ return false;
71
+ if (!('commentCount' in value) || value['commentCount'] === undefined)
72
+ return false;
73
+ if (!('attachments' in value) || value['attachments'] === undefined)
74
+ return false;
75
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
76
+ return false;
77
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
78
+ return false;
79
+ return true;
80
+ }
81
+ function GetSupportTicketFromJSON(json) {
82
+ return GetSupportTicketFromJSONTyped(json, false);
83
+ }
84
+ function GetSupportTicketFromJSONTyped(json, ignoreDiscriminator) {
85
+ if (json == null) {
86
+ return json;
87
+ }
88
+ return {
89
+ 'id': json['id'],
90
+ 'portalId': json['portal_id'],
91
+ 'subject': json['subject'],
92
+ 'description': json['description'],
93
+ 'status': json['status'],
94
+ 'priority': json['priority'],
95
+ 'category': json['category'],
96
+ 'reporter': (0, SupportTicketUser_1.SupportTicketUserFromJSON)(json['reporter']),
97
+ 'assignedTo': json['assigned_to'] == null ? undefined : (0, SupportTicketUser_1.SupportTicketUserFromJSON)(json['assigned_to']),
98
+ 'commentCount': json['comment_count'],
99
+ 'attachments': (json['attachments'].map(GetSupportTicketAttachment_1.GetSupportTicketAttachmentFromJSON)),
100
+ 'createdAt': json['created_at'],
101
+ 'updatedAt': json['updated_at'],
102
+ 'closedAt': json['closed_at'] == null ? undefined : json['closed_at'],
103
+ };
104
+ }
105
+ function GetSupportTicketToJSON(json) {
106
+ return GetSupportTicketToJSONTyped(json, false);
107
+ }
108
+ function GetSupportTicketToJSONTyped(value, ignoreDiscriminator = false) {
109
+ if (value == null) {
110
+ return value;
111
+ }
112
+ return {
113
+ 'id': value['id'],
114
+ 'portal_id': value['portalId'],
115
+ 'subject': value['subject'],
116
+ 'description': value['description'],
117
+ 'status': value['status'],
118
+ 'priority': value['priority'],
119
+ 'category': value['category'],
120
+ 'reporter': (0, SupportTicketUser_1.SupportTicketUserToJSON)(value['reporter']),
121
+ 'assigned_to': (0, SupportTicketUser_1.SupportTicketUserToJSON)(value['assignedTo']),
122
+ 'comment_count': value['commentCount'],
123
+ 'attachments': (value['attachments'].map(GetSupportTicketAttachment_1.GetSupportTicketAttachmentToJSON)),
124
+ 'created_at': value['createdAt'],
125
+ 'updated_at': value['updatedAt'],
126
+ 'closed_at': value['closedAt'],
127
+ };
128
+ }
@@ -0,0 +1,62 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface GetSupportTicketAttachment
16
+ */
17
+ export interface GetSupportTicketAttachment {
18
+ /**
19
+ * External attachment ID
20
+ * @type {string}
21
+ * @memberof GetSupportTicketAttachment
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof GetSupportTicketAttachment
28
+ */
29
+ fileName: string;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof GetSupportTicketAttachment
34
+ */
35
+ fileSize: number;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof GetSupportTicketAttachment
40
+ */
41
+ mimeType: string;
42
+ /**
43
+ * Presigned URL to download the attachment
44
+ * @type {string}
45
+ * @memberof GetSupportTicketAttachment
46
+ */
47
+ downloadUrl: string;
48
+ /**
49
+ * Unix epoch timestamp
50
+ * @type {number}
51
+ * @memberof GetSupportTicketAttachment
52
+ */
53
+ createdAt: number;
54
+ }
55
+ /**
56
+ * Check if a given object implements the GetSupportTicketAttachment interface.
57
+ */
58
+ export declare function instanceOfGetSupportTicketAttachment(value: object): value is GetSupportTicketAttachment;
59
+ export declare function GetSupportTicketAttachmentFromJSON(json: any): GetSupportTicketAttachment;
60
+ export declare function GetSupportTicketAttachmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetSupportTicketAttachment;
61
+ export declare function GetSupportTicketAttachmentToJSON(json: any): GetSupportTicketAttachment;
62
+ export declare function GetSupportTicketAttachmentToJSONTyped(value?: GetSupportTicketAttachment | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * LMS API
6
+ * LMS API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfGetSupportTicketAttachment = instanceOfGetSupportTicketAttachment;
17
+ exports.GetSupportTicketAttachmentFromJSON = GetSupportTicketAttachmentFromJSON;
18
+ exports.GetSupportTicketAttachmentFromJSONTyped = GetSupportTicketAttachmentFromJSONTyped;
19
+ exports.GetSupportTicketAttachmentToJSON = GetSupportTicketAttachmentToJSON;
20
+ exports.GetSupportTicketAttachmentToJSONTyped = GetSupportTicketAttachmentToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the GetSupportTicketAttachment interface.
23
+ */
24
+ function instanceOfGetSupportTicketAttachment(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('fileName' in value) || value['fileName'] === undefined)
28
+ return false;
29
+ if (!('fileSize' in value) || value['fileSize'] === undefined)
30
+ return false;
31
+ if (!('mimeType' in value) || value['mimeType'] === undefined)
32
+ return false;
33
+ if (!('downloadUrl' in value) || value['downloadUrl'] === undefined)
34
+ return false;
35
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ function GetSupportTicketAttachmentFromJSON(json) {
40
+ return GetSupportTicketAttachmentFromJSONTyped(json, false);
41
+ }
42
+ function GetSupportTicketAttachmentFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'id': json['id'],
48
+ 'fileName': json['file_name'],
49
+ 'fileSize': json['file_size'],
50
+ 'mimeType': json['mime_type'],
51
+ 'downloadUrl': json['download_url'],
52
+ 'createdAt': json['created_at'],
53
+ };
54
+ }
55
+ function GetSupportTicketAttachmentToJSON(json) {
56
+ return GetSupportTicketAttachmentToJSONTyped(json, false);
57
+ }
58
+ function GetSupportTicketAttachmentToJSONTyped(value, ignoreDiscriminator = false) {
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+ return {
63
+ 'id': value['id'],
64
+ 'file_name': value['fileName'],
65
+ 'file_size': value['fileSize'],
66
+ 'mime_type': value['mimeType'],
67
+ 'download_url': value['downloadUrl'],
68
+ 'created_at': value['createdAt'],
69
+ };
70
+ }
@@ -0,0 +1,57 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { SupportTicketUser } from './SupportTicketUser';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface GetSupportTicketComment
17
+ */
18
+ export interface GetSupportTicketComment {
19
+ /**
20
+ * External comment ID
21
+ * @type {string}
22
+ * @memberof GetSupportTicketComment
23
+ */
24
+ id: string;
25
+ /**
26
+ *
27
+ * @type {SupportTicketUser}
28
+ * @memberof GetSupportTicketComment
29
+ */
30
+ user: SupportTicketUser;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof GetSupportTicketComment
35
+ */
36
+ content: string;
37
+ /**
38
+ *
39
+ * @type {boolean}
40
+ * @memberof GetSupportTicketComment
41
+ */
42
+ isInternal: boolean;
43
+ /**
44
+ * Unix epoch timestamp
45
+ * @type {number}
46
+ * @memberof GetSupportTicketComment
47
+ */
48
+ createdAt: number;
49
+ }
50
+ /**
51
+ * Check if a given object implements the GetSupportTicketComment interface.
52
+ */
53
+ export declare function instanceOfGetSupportTicketComment(value: object): value is GetSupportTicketComment;
54
+ export declare function GetSupportTicketCommentFromJSON(json: any): GetSupportTicketComment;
55
+ export declare function GetSupportTicketCommentFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetSupportTicketComment;
56
+ export declare function GetSupportTicketCommentToJSON(json: any): GetSupportTicketComment;
57
+ export declare function GetSupportTicketCommentToJSONTyped(value?: GetSupportTicketComment | null, ignoreDiscriminator?: boolean): any;