@resolveio/server-lib 4.0.14 → 4.0.15-newrole

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.
@@ -130,9 +130,6 @@ var schema = {
130
130
  user_assigned: {
131
131
  type: String
132
132
  },
133
- resolveio_status: {
134
- type: String
135
- },
136
133
  estimated_billable_hours: {
137
134
  type: Number,
138
135
  optional: true
@@ -145,8 +142,7 @@ var schema = {
145
142
  type: String
146
143
  },
147
144
  tasks: {
148
- type: Array,
149
- optional: true
145
+ type: Array
150
146
  },
151
147
  'tasks.$': {
152
148
  type: Object
@@ -159,11 +155,9 @@ var schema = {
159
155
  },
160
156
  'tasks.$.id_user': {
161
157
  type: String,
162
- optional: true
163
158
  },
164
159
  'tasks.$.user': {
165
160
  type: String,
166
- optional: true
167
161
  },
168
162
  'tasks.$.date_created': {
169
163
  type: Date
@@ -172,6 +166,24 @@ var schema = {
172
166
  type: Date,
173
167
  optional: true
174
168
  },
169
+ notes: {
170
+ type: Array
171
+ },
172
+ 'notes.$': {
173
+ type: Object
174
+ },
175
+ 'notes.$.description': {
176
+ type: String
177
+ },
178
+ 'notes.$.id_user': {
179
+ type: String,
180
+ },
181
+ 'notes.$.user': {
182
+ type: String,
183
+ },
184
+ 'notes.$.date_created': {
185
+ type: Date
186
+ }
175
187
  };
176
188
  var DefaultSchema = new mongoose_1.Schema(schema, {
177
189
  skipVersioning: true,
@@ -21,13 +21,6 @@ var schema = {
21
21
  type: Date,
22
22
  optional: true
23
23
  },
24
- readonly: {
25
- type: Boolean,
26
- optional: true
27
- },
28
- active: {
29
- type: Boolean
30
- },
31
24
  attempts: {
32
25
  type: Number,
33
26
  optional: true
@@ -64,53 +57,67 @@ var schema = {
64
57
  type: String
65
58
  },
66
59
  roles: {
60
+ type: Object
61
+ },
62
+ 'roles.super_admin': {
63
+ type: Boolean
64
+ },
65
+ 'roles.approvals': {
67
66
  type: Array
68
67
  },
69
- 'roles.$': {
68
+ 'roles.approvals.$': {
69
+ type: Object
70
+ },
71
+ 'roles.approvals.$.name': {
70
72
  type: String
71
73
  },
72
- phonenumber: {
73
- type: String,
74
- optional: true
74
+ 'roles.approvals.$.type': {
75
+ type: String
75
76
  },
76
- other: {
77
- type: Object,
78
- blackbox: true,
79
- optional: true
77
+ 'roles.approvals.$.accounting_code': {
78
+ type: String
80
79
  },
81
- assets: {
82
- type: Array,
83
- optional: true
80
+ 'roles.groups': {
81
+ type: Array
84
82
  },
85
- 'assets.$': {
83
+ 'roles.groups.$': {
86
84
  type: Object
87
85
  },
88
- 'assets.$.type': {
86
+ 'roles.groups.$.name': {
89
87
  type: String
90
88
  },
91
- 'assets.$.id_asset': {
92
- type: String
89
+ 'roles.groups.$.views': {
90
+ type: Array
93
91
  },
94
- 'assets.$.asset_number': {
92
+ 'roles.groups.$.views.$': {
95
93
  type: String
96
94
  },
97
- 'assets.$.ownership': {
98
- type: String
95
+ 'roles.groups.$.yard': {
96
+ type: String,
97
+ optional: true
98
+ },
99
+ 'roles.notifications': {
100
+ type: Array
99
101
  },
100
- 'assets.$.ownership_driver': {
102
+ 'roles.notifications.$': {
101
103
  type: String
102
104
  },
103
- 'assets.$.date_start': {
104
- type: Date
105
+ 'roles.miscs': {
106
+ type: Array
105
107
  },
106
- 'assets.$.date_end': {
107
- type: Date,
108
- optional: true
108
+ 'roles.miscs.$': {
109
+ type: String
109
110
  },
110
- id_function: {
111
+ active: Boolean,
112
+ phonenumber: {
111
113
  type: String,
112
114
  optional: true
113
115
  },
116
+ other: {
117
+ type: Object,
118
+ optional: true,
119
+ blackbox: true
120
+ },
114
121
  customers: {
115
122
  type: Array,
116
123
  optional: true,
package/fixtures/init.js CHANGED
@@ -37,8 +37,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
37
37
  Object.defineProperty(exports, "__esModule", { value: true });
38
38
  var app_version_collection_1 = require("../collections/app-version.collection");
39
39
  var logged_in_users_collection_1 = require("../collections/logged-in-users.collection");
40
- var active_subscription_collection_1 = require("../collections/active-subscription.collection");
41
40
  var mongoose_1 = require("mongoose");
41
+ var active_subscription_collection_1 = require("../collections/active-subscription.collection");
42
42
  function loadServerInit() {
43
43
  return __awaiter(this, void 0, void 0, function () {
44
44
  var appVersion;
@@ -22,11 +22,11 @@ export interface SupportTicketModel extends CollectionDocument {
22
22
  client_user: SupportTicketClientUserModel;
23
23
  id_user_assigned: string;
24
24
  user_assigned: string;
25
- resolveio_status: string;
26
25
  estimated_billable_hours?: number;
27
26
  billable_hours?: number;
28
27
  bill_description: string;
29
- tasks?: SupportTicketTaskModel[];
28
+ tasks: SupportTicketTaskModel[];
29
+ notes: SupportTicketNoteModel[];
30
30
  }
31
31
  export interface SupportTicketClientUserModel {
32
32
  id_user: string;
@@ -58,4 +58,10 @@ export interface SupportTicketTaskModel {
58
58
  date_created: Date;
59
59
  date_completed?: Date;
60
60
  }
61
+ export interface SupportTicketNoteModel extends CollectionDocument {
62
+ description: string;
63
+ id_user: string;
64
+ user: string;
65
+ date_created: Date;
66
+ }
61
67
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resolveio/server-lib",
3
- "version": "4.0.14",
3
+ "version": "4.0.15-newrole",
4
4
  "description": "",
5
5
  "main": "index.ts",
6
6
  "scripts": {