@resolveio/server-lib 1.1.5 → 1.1.6

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.
@@ -123,7 +123,27 @@ var schema = {
123
123
  },
124
124
  'client_user.email': {
125
125
  type: String
126
- }
126
+ },
127
+ id_user_assigned: {
128
+ type: String
129
+ },
130
+ user_assigned: {
131
+ type: String
132
+ },
133
+ resolveio_status: {
134
+ type: String
135
+ },
136
+ estimated_billable_hours: {
137
+ type: Number,
138
+ optional: true
139
+ },
140
+ billable_hours: {
141
+ type: Number,
142
+ optional: true
143
+ },
144
+ bill_description: {
145
+ type: String
146
+ },
127
147
  };
128
148
  var DefaultSchema = new mongoose_1.Schema(schema, {
129
149
  skipVersioning: true,
@@ -360,6 +360,9 @@ var SubscriptionManager = /** @class */ (function () {
360
360
  else if (collection === 'queue-responses') {
361
361
  _this._mainServer.getQueueManager().runMethodResponse();
362
362
  }
363
+ else if (collection === 'support-tickets') {
364
+ _this._mainServer.getMethodManager().callMethodInternal('sendSupportTicketEmail', doc.o._id);
365
+ }
363
366
  });
364
367
  oplog.on('update', function (doc) {
365
368
  var nsArray = doc.ns.split('.');
@@ -20,6 +20,12 @@ export interface SupportTicketModel extends CollectionDocument {
20
20
  files: string[];
21
21
  current_watchers: SupportTicketWatchersModel[];
22
22
  client_user: SupportTicketClientUserModel;
23
+ id_user_assigned: string;
24
+ user_assigned: string;
25
+ resolveio_status: string;
26
+ estimated_billable_hours?: number;
27
+ billable_hours?: number;
28
+ bill_description: string;
23
29
  }
24
30
  export interface SupportTicketClientUserModel {
25
31
  id_user: string;
@@ -27,7 +33,8 @@ export interface SupportTicketClientUserModel {
27
33
  email: string;
28
34
  }
29
35
  declare type SupportTicketStatus = 'Opened' | 'Resolved';
30
- export declare type SupportTicketSubstatus = 'New' | 'Work-In-Progress' | 'Idle' | 'Awaiting Customer Interaction';
36
+ export declare type SupportTicketSubstatus = 'New' | 'Work In Progress' | 'Idle' | 'Awaiting Customer Interaction';
37
+ export declare type SupportTicketResolveIOStatus = 'Opened' | 'Review' | 'Closed';
31
38
  export interface SupportTicketMessageModel {
32
39
  message: string;
33
40
  id_user: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resolveio/server-lib",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "description": "",
5
5
  "main": "index.ts",
6
6
  "scripts": {