@resolveio/server-lib 3.2.3 → 3.2.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.
|
@@ -144,6 +144,34 @@ var schema = {
|
|
|
144
144
|
bill_description: {
|
|
145
145
|
type: String
|
|
146
146
|
},
|
|
147
|
+
tasks: {
|
|
148
|
+
type: Array,
|
|
149
|
+
optional: true
|
|
150
|
+
},
|
|
151
|
+
'tasks.$': {
|
|
152
|
+
type: Object
|
|
153
|
+
},
|
|
154
|
+
'tasks.$.description': {
|
|
155
|
+
type: String
|
|
156
|
+
},
|
|
157
|
+
'tasks.$.completed': {
|
|
158
|
+
type: Boolean
|
|
159
|
+
},
|
|
160
|
+
'tasks.$.id_user': {
|
|
161
|
+
type: String,
|
|
162
|
+
optional: true
|
|
163
|
+
},
|
|
164
|
+
'tasks.$.user': {
|
|
165
|
+
type: String,
|
|
166
|
+
optional: true
|
|
167
|
+
},
|
|
168
|
+
'tasks.$.date_created': {
|
|
169
|
+
type: Date
|
|
170
|
+
},
|
|
171
|
+
'tasks.$.date_completed': {
|
|
172
|
+
type: Date,
|
|
173
|
+
optional: true
|
|
174
|
+
},
|
|
147
175
|
};
|
|
148
176
|
var DefaultSchema = new mongoose_1.Schema(schema, {
|
|
149
177
|
skipVersioning: true,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CollectionDocument } from './collection-document.model';
|
|
2
2
|
export interface SupportTicketModel extends CollectionDocument {
|
|
3
|
-
type:
|
|
4
|
-
priority:
|
|
3
|
+
type: SupportTicketType;
|
|
4
|
+
priority: SupportTicketPriority;
|
|
5
5
|
issue: string;
|
|
6
6
|
support_ticket_number: number;
|
|
7
7
|
support_ticket_number_string: string;
|
|
@@ -26,15 +26,17 @@ export interface SupportTicketModel extends CollectionDocument {
|
|
|
26
26
|
estimated_billable_hours?: number;
|
|
27
27
|
billable_hours?: number;
|
|
28
28
|
bill_description: string;
|
|
29
|
+
tasks?: SupportTicketTaskModel[];
|
|
29
30
|
}
|
|
30
31
|
export interface SupportTicketClientUserModel {
|
|
31
32
|
id_user: string;
|
|
32
33
|
user: string;
|
|
33
34
|
email: string;
|
|
34
35
|
}
|
|
35
|
-
declare type
|
|
36
|
+
export declare type SupportTicketPriority = 'High' | 'Low';
|
|
36
37
|
export declare type SupportTicketSubstatus = 'New' | 'Work In Progress' | 'Idle' | 'Awaiting Customer Interaction';
|
|
37
|
-
export declare type
|
|
38
|
+
export declare type SupportTicketType = 'System Impairment' | 'Request New Feature' | 'General Inquery';
|
|
39
|
+
declare type SupportTicketStatus = 'Opened' | 'Resolved';
|
|
38
40
|
export interface SupportTicketMessageModel {
|
|
39
41
|
message: string;
|
|
40
42
|
id_user: string;
|
|
@@ -48,4 +50,12 @@ export interface SupportTicketWatchersModel {
|
|
|
48
50
|
id_user: string;
|
|
49
51
|
email: string;
|
|
50
52
|
}
|
|
53
|
+
export interface SupportTicketTaskModel {
|
|
54
|
+
description: string;
|
|
55
|
+
completed: boolean;
|
|
56
|
+
id_user?: string;
|
|
57
|
+
user?: string;
|
|
58
|
+
date_created: Date;
|
|
59
|
+
date_completed?: Date;
|
|
60
|
+
}
|
|
51
61
|
export {};
|
package/package.json
CHANGED
|
@@ -96,8 +96,8 @@ function loadSupportTicketPublications(subscriptionManager) {
|
|
|
96
96
|
support_ticket = _a.sent();
|
|
97
97
|
if (!support_ticket) {
|
|
98
98
|
return [2 /*return*/, {
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
_id: '',
|
|
100
|
+
support_ticket: []
|
|
101
101
|
}];
|
|
102
102
|
}
|
|
103
103
|
return [2 /*return*/, {
|
|
@@ -109,7 +109,6 @@ function loadSupportTicketPublications(subscriptionManager) {
|
|
|
109
109
|
}); },
|
|
110
110
|
fetchFunction: function (document, fetchData) {
|
|
111
111
|
return document._id === fetchData['_id'] ||
|
|
112
|
-
fetchData['logs'].includes(document._id) ||
|
|
113
112
|
fetchData['files'].includes(document._id);
|
|
114
113
|
}
|
|
115
114
|
},
|