@dakkitor/api-contracts 1.1.28 → 1.1.30

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 (41) hide show
  1. package/dist/abilities/abilities.contract.d.ts +24 -0
  2. package/dist/abilities/abilities.contract.d.ts.map +1 -0
  3. package/dist/abilities/abilities.contract.js +24 -0
  4. package/dist/abilities/admin.abilities.json +22 -0
  5. package/dist/abilities/first-agent.abilities.json +573 -0
  6. package/dist/abilities/second-agent.abilities.json +311 -0
  7. package/dist/actives/actives.contract.d.ts +1856 -1914
  8. package/dist/actives/actives.contract.d.ts.map +1 -1
  9. package/dist/agent-client-links/agent-client-links.contract.d.ts +419 -419
  10. package/dist/auth/auth.contract.d.ts +4 -4
  11. package/dist/bookings/bookings.contract.d.ts +1481 -1534
  12. package/dist/bookings/bookings.contract.d.ts.map +1 -1
  13. package/dist/call-history/call-history.contract.d.ts +2 -14
  14. package/dist/call-history/call-history.contract.d.ts.map +1 -1
  15. package/dist/call-history/call-history.contract.js +8 -24
  16. package/dist/client-contacts/client-contacts.contract.d.ts +356 -319
  17. package/dist/client-contacts/client-contacts.contract.d.ts.map +1 -1
  18. package/dist/client-contacts/client-contacts.contract.js +4 -1
  19. package/dist/common/call-rating.schema.d.ts +31 -0
  20. package/dist/common/call-rating.schema.d.ts.map +1 -0
  21. package/dist/common/call-rating.schema.js +63 -0
  22. package/dist/common/common-schemas.js +2 -2
  23. package/dist/curated-workers/curated-workers.contract.d.ts +8 -8
  24. package/dist/curated-workers/curated-workers.contract.d.ts.map +1 -1
  25. package/dist/curated-workers/curated-workers.contract.js +2 -3
  26. package/dist/index.d.ts +2 -0
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +2 -0
  29. package/dist/jobs/jobs.contract.d.ts +629 -629
  30. package/dist/jobs/jobs.contract.js +1 -1
  31. package/dist/lead-assignments/lead-assignments.contract.d.ts +6 -6
  32. package/dist/lead-assignments/lead-assignments.contract.js +2 -2
  33. package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +63 -63
  34. package/dist/leads/leads.contract.d.ts +9 -9
  35. package/dist/users/users.contract.d.ts +108 -108
  36. package/dist/users/users.contract.d.ts.map +1 -1
  37. package/dist/users/users.contract.js +2 -3
  38. package/dist/workers/workers.contract.d.ts +130 -205
  39. package/dist/workers/workers.contract.d.ts.map +1 -1
  40. package/dist/workers/workers.contract.js +2 -8
  41. package/package.json +1 -1
@@ -0,0 +1,311 @@
1
+ [
2
+ {
3
+ "action": "update",
4
+ "subject": "User",
5
+ "fields": [
6
+ "password"
7
+ ],
8
+ "conditions": {
9
+ "id": "{{ id }}"
10
+ }
11
+ },
12
+ {
13
+ "action": "read",
14
+ "subject": "User"
15
+ },
16
+ {
17
+ "action": "read",
18
+ "subject": "Qualification"
19
+ },
20
+ {
21
+ "action": "read",
22
+ "subject": "QualificationType"
23
+ },
24
+ {
25
+ "action": "read",
26
+ "subject": "Trade"
27
+ },
28
+ {
29
+ "action": "update",
30
+ "subject": "Worker",
31
+ "conditions": {
32
+ "createdByUserId": "{{ id }}"
33
+ }
34
+ },
35
+ {
36
+ "action": "read",
37
+ "subject": "FilterWorkerSchema",
38
+ "fields": [
39
+ "name",
40
+ "email",
41
+ "phone",
42
+ "englishLevel",
43
+ "nationality",
44
+ "postcode",
45
+ "distance",
46
+ "qualificationFilters",
47
+ "qualificationFilters.*",
48
+ "availability",
49
+ "tradeFilters",
50
+ "tradeFilters.*",
51
+ "sortBy",
52
+ "sortOrder",
53
+ "page",
54
+ "limit"
55
+ ]
56
+ },
57
+ {
58
+ "action": "read",
59
+ "subject": "Worker",
60
+ "conditions": {
61
+ "createdByUserId": "{{ id }}"
62
+ }
63
+ },
64
+ {
65
+ "action": "read",
66
+ "subject": "Worker",
67
+ "fields": [
68
+ "createdBy"
69
+ ],
70
+ "inverted": true
71
+ },
72
+ {
73
+ "action": "create",
74
+ "subject": "Worker"
75
+ },
76
+ {
77
+ "action": "manage",
78
+ "subject": "Location"
79
+ },
80
+ {
81
+ "action": "read",
82
+ "subject": "Job",
83
+ "fields": [
84
+ "id",
85
+ "description",
86
+ "location",
87
+ "location.*",
88
+ "tradeId",
89
+ "pay",
90
+ "pay.rate",
91
+ "pay.rateUnit",
92
+ "pay.rateMax",
93
+ "jobQualifications",
94
+ "jobQualifications[*].qualificationId",
95
+ "jobQualifications[*].qualificationTypeId",
96
+ "currentCollaboration",
97
+ "currentCollaboration.user.*",
98
+ "numberOfPositions",
99
+ "workHours",
100
+ "status",
101
+ "startDate",
102
+ "endDate",
103
+ "createdAt",
104
+ "updatedAt"
105
+ ]
106
+ },
107
+ {
108
+ "action": "create",
109
+ "subject": "Booking"
110
+ },
111
+ {
112
+ "action": "read",
113
+ "subject": "Booking",
114
+ "fields": [
115
+ "id",
116
+ "worker",
117
+ "worker.*",
118
+ "worker.phoneNumbers",
119
+ "worker.phoneNumbers[*].*",
120
+ "status",
121
+ "pay",
122
+ "pay.rate",
123
+ "pay.unit",
124
+ "createdAt",
125
+ "updatedAt",
126
+ "startDate",
127
+ "endDate",
128
+ "userId",
129
+ "statusUpdatedAt",
130
+ "job",
131
+ "job.id",
132
+ "job.description",
133
+ "job.location",
134
+ "job.location.*",
135
+ "job.tradeId",
136
+ "job.pay",
137
+ "job.pay.rate",
138
+ "job.pay.rateUnit",
139
+ "job.pay.rateMax",
140
+ "job.jobQualifications",
141
+ "job.jobQualifications[*].qualificationId",
142
+ "job.jobQualifications[*].qualificationTypeId",
143
+ "job.currentCollaboration",
144
+ "job.currentCollaboration.user.*",
145
+ "job.numberOfPositions",
146
+ "job.workHours",
147
+ "job.status",
148
+ "job.startDate",
149
+ "job.endDate",
150
+ "job.createdAt",
151
+ "job.updatedAt",
152
+ "userId"
153
+ ],
154
+ "conditions": {
155
+ "userId": "{{ id }}"
156
+ }
157
+ },
158
+ {
159
+ "action": "update",
160
+ "subject": "Booking",
161
+ "conditions": {
162
+ "userId": "{{ id }}"
163
+ }
164
+ },
165
+ {
166
+ "action": "read",
167
+ "subject": "Active",
168
+ "fields": [
169
+ "id",
170
+ "statusSa",
171
+ "statusSaUpdatedAt",
172
+ "hoursWorked",
173
+ "hoursWorkedUpdatedAt",
174
+ "date",
175
+ "comment",
176
+ "pay",
177
+ "pay.*",
178
+ "booking",
179
+ "booking.id",
180
+ "booking.job.currentCollaboration",
181
+ "booking.job.currentCollaboration.user.*",
182
+ "booking.job.location.*",
183
+ "booking.job.pay",
184
+ "booking.job.pay.rate",
185
+ "booking.job.pay.rateUnit",
186
+ "booking.job.jobQualifications[*].*",
187
+ "booking.job.*",
188
+ "booking.worker",
189
+ "booking.worker.firstName",
190
+ "booking.worker.lastName",
191
+ "booking.status",
192
+ "booking.pay.rate",
193
+ "booking.pay.unit",
194
+ "booking.createdAt",
195
+ "booking.updatedAt",
196
+ "booking.startDate",
197
+ "booking.endDate",
198
+ "booking.user.*",
199
+ "booking.statusUpdatedAt",
200
+ "createdAt",
201
+ "updatedAt"
202
+ ],
203
+ "conditions": {
204
+ "booking.userId": "{{ id }}"
205
+ }
206
+ },
207
+ {
208
+ "action": "update",
209
+ "subject": "Active",
210
+ "fields": [
211
+ "statusSa",
212
+ "comment",
213
+ "hoursWorked"
214
+ ],
215
+ "conditions": {
216
+ "booking.userId": "{{ id }}"
217
+ }
218
+ },
219
+ {
220
+ "action": "read",
221
+ "subject": "File",
222
+ "conditions": {
223
+ "userId": "{{ id }}"
224
+ }
225
+ },
226
+ {
227
+ "action": "create",
228
+ "subject": "File"
229
+ },
230
+ {
231
+ "action": "read",
232
+ "subject": "FilterBookingSchema",
233
+ "fields": [
234
+ "workerName",
235
+ "job",
236
+ "job.*",
237
+ "createdAt",
238
+ "createdAt.*",
239
+ "startDate",
240
+ "startDate.*",
241
+ "endDate",
242
+ "endDate.*",
243
+ "sortBy",
244
+ "sortOrder",
245
+ "status",
246
+ "agentName",
247
+ "page",
248
+ "limit"
249
+ ]
250
+ },
251
+ {
252
+ "action": "read",
253
+ "subject": "FilterActiveSchema",
254
+ "fields": [
255
+ "bookingId",
256
+ "date",
257
+ "date.*",
258
+ "pay",
259
+ "pay.*",
260
+ "status",
261
+ "status.*",
262
+ "createdAt",
263
+ "createdAt.*",
264
+ "sortBy",
265
+ "sortOrder",
266
+ "page",
267
+ "limit"
268
+ ]
269
+ },
270
+ {
271
+ "action": "read",
272
+ "subject": "FilterJobSchema",
273
+ "fields": [
274
+ "tradeId",
275
+ "status",
276
+ "postcode",
277
+ "distance",
278
+ "pay",
279
+ "pay.*",
280
+ "createdAt",
281
+ "createdAt.*",
282
+ "sortBy",
283
+ "sortOrder",
284
+ "page",
285
+ "limit"
286
+ ]
287
+ },
288
+ {
289
+ "action": "read",
290
+ "subject": "FilterUserSchema",
291
+ "fields": [
292
+ "name",
293
+ "email",
294
+ "phone",
295
+ "roles",
296
+ "roles.*",
297
+ "sortBy",
298
+ "sortOrder",
299
+ "page",
300
+ "limit"
301
+ ]
302
+ },
303
+ {
304
+ "action": "read",
305
+ "subject": "FilterLocationSchema",
306
+ "fields": [
307
+ "page",
308
+ "limit"
309
+ ]
310
+ }
311
+ ]