@resolveio/server-lib 5.2.34 → 5.2.35-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.
@@ -124,12 +124,21 @@ var schema = {
124
124
  'client_user.email': {
125
125
  type: String
126
126
  },
127
- id_user_assigned: {
127
+ users_assigned: {
128
+ type: Array
129
+ },
130
+ 'users_assigned.$': {
131
+ type: Object
132
+ },
133
+ 'users_assigned.$.id_user': {
128
134
  type: String
129
135
  },
130
- user_assigned: {
136
+ 'users_assigned.$.user': {
131
137
  type: String
132
138
  },
139
+ 'users_assigned.$.date_created': {
140
+ type: Date
141
+ },
133
142
  estimated_billable_hours: {
134
143
  type: Number,
135
144
  optional: true
@@ -22,13 +22,6 @@ var schema = {
22
22
  type: Date,
23
23
  optional: true
24
24
  },
25
- readonly: {
26
- type: Boolean,
27
- optional: true
28
- },
29
- active: {
30
- type: Boolean
31
- },
32
25
  attempts: {
33
26
  type: Number,
34
27
  optional: true
@@ -65,53 +58,67 @@ var schema = {
65
58
  type: String
66
59
  },
67
60
  roles: {
61
+ type: Object
62
+ },
63
+ 'roles.super_admin': {
64
+ type: Boolean
65
+ },
66
+ 'roles.approvals': {
68
67
  type: Array
69
68
  },
70
- 'roles.$': {
69
+ 'roles.approvals.$': {
70
+ type: Object
71
+ },
72
+ 'roles.approvals.$.name': {
71
73
  type: String
72
74
  },
73
- phonenumber: {
74
- type: String,
75
- optional: true
75
+ 'roles.approvals.$.type': {
76
+ type: String
76
77
  },
77
- other: {
78
- type: Object,
79
- blackbox: true,
80
- optional: true
78
+ 'roles.approvals.$.accounting_code': {
79
+ type: String
81
80
  },
82
- assets: {
83
- type: Array,
84
- optional: true
81
+ 'roles.groups': {
82
+ type: Array
85
83
  },
86
- 'assets.$': {
84
+ 'roles.groups.$': {
87
85
  type: Object
88
86
  },
89
- 'assets.$.type': {
87
+ 'roles.groups.$.name': {
90
88
  type: String
91
89
  },
92
- 'assets.$.id_asset': {
93
- type: String
90
+ 'roles.groups.$.views': {
91
+ type: Array
94
92
  },
95
- 'assets.$.asset_number': {
93
+ 'roles.groups.$.views.$': {
96
94
  type: String
97
95
  },
98
- 'assets.$.ownership': {
99
- type: String
96
+ 'roles.groups.$.yard': {
97
+ type: String,
98
+ optional: true
99
+ },
100
+ 'roles.notifications': {
101
+ type: Array
100
102
  },
101
- 'assets.$.ownership_driver': {
103
+ 'roles.notifications.$': {
102
104
  type: String
103
105
  },
104
- 'assets.$.date_start': {
105
- type: Date
106
+ 'roles.miscs': {
107
+ type: Array
106
108
  },
107
- 'assets.$.date_end': {
108
- type: Date,
109
- optional: true
109
+ 'roles.miscs.$': {
110
+ type: String
110
111
  },
111
- id_function: {
112
+ active: Boolean,
113
+ phonenumber: {
112
114
  type: String,
113
115
  optional: true
114
116
  },
117
+ other: {
118
+ type: Object,
119
+ optional: true,
120
+ blackbox: true
121
+ },
115
122
  customers: {
116
123
  type: Array,
117
124
  optional: true,
@@ -20,8 +20,7 @@ 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;
23
+ users_assigned: SupportTicketUserAssignedModel[];
25
24
  estimated_billable_hours?: number;
26
25
  billable_hours?: number;
27
26
  bill_description: string;
@@ -58,10 +57,15 @@ export interface SupportTicketTaskModel {
58
57
  date_created: Date;
59
58
  date_completed?: Date;
60
59
  }
61
- export interface SupportTicketNoteModel extends CollectionDocument {
60
+ export interface SupportTicketNoteModel {
62
61
  description: string;
63
62
  id_user: string;
64
63
  user: string;
65
64
  date_created: Date;
66
65
  }
66
+ export interface SupportTicketUserAssignedModel {
67
+ id_user: string;
68
+ user: string;
69
+ date_created: Date;
70
+ }
67
71
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resolveio/server-lib",
3
- "version": "5.2.34",
3
+ "version": "5.2.35-newrole",
4
4
  "description": "",
5
5
  "main": "index.ts",
6
6
  "scripts": {