@dakkitor/api-contracts 1.1.132 → 1.1.133

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.
@@ -1,377 +1,377 @@
1
1
  [
2
- {
3
- "action": "update",
4
- "subject": "User",
5
- "fields": ["password"],
6
- "conditions": {
7
- "id": "{{ id }}"
2
+ {
3
+ "action": "update",
4
+ "subject": "User",
5
+ "fields": ["password"],
6
+ "conditions": {
7
+ "id": "{{ id }}"
8
+ }
9
+ },
10
+ {
11
+ "action": "read",
12
+ "subject": "User"
13
+ },
14
+ {
15
+ "action": "read",
16
+ "subject": "Qualification"
17
+ },
18
+ {
19
+ "action": "read",
20
+ "subject": "QualificationType"
21
+ },
22
+ {
23
+ "action": "read",
24
+ "subject": "Trade"
25
+ },
26
+ {
27
+ "action": "update",
28
+ "subject": "Worker",
29
+ "conditions": {
30
+ "createdByUserId": "{{ id }}"
31
+ }
32
+ },
33
+ {
34
+ "action": "read",
35
+ "subject": "FilterWorkerSchema",
36
+ "fields": [
37
+ "name",
38
+ "email",
39
+ "phone",
40
+ "englishLevel",
41
+ "nationality",
42
+ "postcode",
43
+ "distance",
44
+ "qualificationFilters",
45
+ "qualificationFilters[*].*",
46
+ "availability",
47
+ "hasTools",
48
+ "hasPpe",
49
+ "tradeFilters",
50
+ "tradeFilters[*].*",
51
+ "sortBy",
52
+ "sortOrder",
53
+ "location",
54
+ "location.*",
55
+ "createdAt",
56
+ "createdAt.*",
57
+ "updatedAt",
58
+ "updatedAt.*",
59
+ "page",
60
+ "limit"
61
+ ]
62
+ },
63
+ {
64
+ "action": "read",
65
+ "subject": "Worker",
66
+ "conditions": {
67
+ "createdByUserId": "{{ id }}"
68
+ }
69
+ },
70
+ {
71
+ "action": "read",
72
+ "subject": "Worker",
73
+ "fields": ["createdBy"],
74
+ "inverted": true
75
+ },
76
+ {
77
+ "action": "create",
78
+ "subject": "Worker"
79
+ },
80
+ {
81
+ "action": "manage",
82
+ "subject": "Location"
83
+ },
84
+ {
85
+ "action": "read",
86
+ "subject": "Job",
87
+ "fields": [
88
+ "id",
89
+ "description",
90
+ "location",
91
+ "location.*",
92
+ "tradeId",
93
+ "pay",
94
+ "pay.isNegotiable",
95
+ "pay.rate",
96
+ "pay.rateUnit",
97
+ "pay.rateMax",
98
+ "jobQualifications",
99
+ "jobQualifications[*].*",
100
+ "currentCollaboration",
101
+ "currentCollaboration.userId",
102
+ "currentCollaboration.user.*",
103
+ "numberOfPositions",
104
+ "workHours",
105
+ "status",
106
+ "startDate",
107
+ "endDate",
108
+ "createdAt",
109
+ "createdAt.*",
110
+ "updatedAt",
111
+ "updatedAt.*"
112
+ ],
113
+ "conditions": {
114
+ "status": {
115
+ "$ne": "DRAFT"
116
+ }
117
+ }
118
+ },
119
+ {
120
+ "action": "create",
121
+ "subject": "Booking"
122
+ },
123
+ {
124
+ "action": "create",
125
+ "subject": "Schema:BookingItem",
126
+ "fields": [
127
+ "worker",
128
+ "worker.id",
129
+ "startDate",
130
+ "endDate",
131
+ "pay",
132
+ "pay.rate",
133
+ "pay.unit",
134
+ "status"
135
+ ]
136
+ },
137
+ {
138
+ "action": "read",
139
+ "subject": "Booking",
140
+ "fields": [
141
+ "id",
142
+ "worker",
143
+ "worker.*",
144
+ "worker.phoneNumbers",
145
+ "worker.phoneNumbers[*].*",
146
+ "status",
147
+ "pay",
148
+ "pay.rate",
149
+ "pay.unit",
150
+ "createdAt",
151
+ "createdAt.*",
152
+ "updatedAt",
153
+ "updatedAt.*",
154
+ "startDate",
155
+ "endDate",
156
+ "userId",
157
+ "statusUpdatedAt",
158
+ "job",
159
+ "job.id",
160
+ "job.description",
161
+ "job.location",
162
+ "job.location.*",
163
+ "job.tradeId",
164
+ "job.pay",
165
+ "job.pay.rate",
166
+ "job.pay.rateUnit",
167
+ "job.pay.rateMax",
168
+ "job.jobQualifications",
169
+ "job.jobQualifications[*].*",
170
+ "job.currentCollaboration",
171
+ "job.currentCollaboration.userId",
172
+ "job.currentCollaboration.user.*",
173
+ "job.numberOfPositions",
174
+ "job.workHours",
175
+ "job.status",
176
+ "job.startDate",
177
+ "job.endDate",
178
+ "job.createdAt",
179
+ "job.createdAt.*",
180
+ "job.updatedAt",
181
+ "job.updatedAt.*",
182
+ "userId"
183
+ ],
184
+ "conditions": {
185
+ "userId": "{{ id }}"
186
+ }
187
+ },
188
+ {
189
+ "action": "update",
190
+ "subject": "Booking",
191
+ "conditions": {
192
+ "userId": "{{ id }}"
193
+ }
194
+ },
195
+ {
196
+ "action": "read",
197
+ "subject": "Active",
198
+ "fields": [
199
+ "id",
200
+ "statusSa",
201
+ "statusSaUpdatedAt",
202
+ "hoursWorked",
203
+ "hoursWorkedUpdatedAt",
204
+ "date",
205
+ "comment",
206
+ "pay",
207
+ "pay.rate",
208
+ "pay.unit",
209
+ "booking",
210
+ "booking.id",
211
+ "booking.userId",
212
+ "booking.job",
213
+ "booking.job.currentCollaboration",
214
+ "booking.job.currentCollaboration.userId",
215
+ "booking.job.currentCollaboration.user.*",
216
+ "booking.job.location.*",
217
+ "booking.job.pay",
218
+ "booking.job.pay.rate",
219
+ "booking.job.pay.rateUnit",
220
+ "booking.job.jobQualifications[*].*",
221
+ "booking.job.id",
222
+ "booking.job.description",
223
+ "booking.job.tradeId",
224
+ "booking.job.numberOfPositions",
225
+ "booking.job.workHours",
226
+ "booking.job.status",
227
+ "booking.job.startDate",
228
+ "booking.job.endDate",
229
+ "booking.job.createdAt",
230
+ "booking.job.updatedAt",
231
+ "booking.worker",
232
+ "booking.worker.*",
233
+ "booking.worker.phoneNumbers",
234
+ "booking.worker.phoneNumbers[*].*",
235
+ "booking.status",
236
+ "booking.pay.rate",
237
+ "booking.pay.unit",
238
+ "booking.createdAt",
239
+ "booking.updatedAt",
240
+ "booking.startDate",
241
+ "booking.endDate",
242
+ "booking.statusUpdatedAt",
243
+ "createdAt",
244
+ "updatedAt"
245
+ ],
246
+ "conditions": {
247
+ "booking.userId": "{{ id }}"
248
+ }
249
+ },
250
+ {
251
+ "action": "update",
252
+ "subject": "Active",
253
+ "fields": [
254
+ "statusSa",
255
+ "comment",
256
+ "hoursWorked",
257
+ "pay",
258
+ "pay.rate",
259
+ "pay.unit"
260
+ ],
261
+ "conditions": {
262
+ "booking.userId": "{{ id }}"
263
+ }
264
+ },
265
+ {
266
+ "action": "read",
267
+ "subject": "File",
268
+ "conditions": {
269
+ "userId": "{{ id }}"
270
+ }
271
+ },
272
+ {
273
+ "action": "create",
274
+ "subject": "File"
275
+ },
276
+ {
277
+ "action": "read",
278
+ "subject": "FilterBookingSchema",
279
+ "fields": [
280
+ "workerName",
281
+ "job",
282
+ "job.userId",
283
+ "job.tradeId",
284
+ "startDate",
285
+ "startDate.*",
286
+ "endDate",
287
+ "endDate.*",
288
+ "sortBy",
289
+ "sortOrder",
290
+ "status",
291
+ "agentId",
292
+ "createdAt",
293
+ "createdAt.*",
294
+ "updatedAt",
295
+ "updatedAt.*",
296
+ "page",
297
+ "limit"
298
+ ]
299
+ },
300
+ {
301
+ "action": "read",
302
+ "subject": "FilterActiveSchema",
303
+ "fields": [
304
+ "workerName",
305
+ "agentId",
306
+ "job",
307
+ "job.userId",
308
+ "job.tradeId",
309
+ "bookingId",
310
+ "date",
311
+ "date.*",
312
+ "pay",
313
+ "pay.*",
314
+ "status",
315
+ "status.status",
316
+ "sortBy",
317
+ "sortOrder",
318
+ "page",
319
+ "limit"
320
+ ]
321
+ },
322
+ {
323
+ "action": "read",
324
+ "subject": "FilterJobSchema",
325
+ "fields": [
326
+ "tradeId",
327
+ "qualificationFilters",
328
+ "qualificationFilters[*].*",
329
+ "status",
330
+ "userId",
331
+ "postcode",
332
+ "distance",
333
+ "pay",
334
+ "pay.*",
335
+ "createdAt",
336
+ "createdAt.*",
337
+ "updatedAt",
338
+ "updatedAt.*",
339
+ "sortBy",
340
+ "sortOrder",
341
+ "page",
342
+ "limit"
343
+ ]
344
+ },
345
+ {
346
+ "action": "read",
347
+ "subject": "FilterUserSchema",
348
+ "fields": [
349
+ "name",
350
+ "email",
351
+ "phone",
352
+ "roles",
353
+ "roles.*",
354
+ "sortBy",
355
+ "sortOrder",
356
+ "page",
357
+ "limit"
358
+ ]
359
+ },
360
+ {
361
+ "action": "read",
362
+ "subject": "FilterLocationSchema",
363
+ "fields": ["page", "limit"]
364
+ },
365
+ {
366
+ "action": "read",
367
+ "subject": "SecondAgentTutorials"
368
+ },
369
+ {
370
+ "action": "read",
371
+ "subject": "SaDashboardWidgets"
372
+ },
373
+ {
374
+ "action": "read",
375
+ "subject": "DashboardTrends"
8
376
  }
9
- },
10
- {
11
- "action": "read",
12
- "subject": "User"
13
- },
14
- {
15
- "action": "read",
16
- "subject": "Qualification"
17
- },
18
- {
19
- "action": "read",
20
- "subject": "QualificationType"
21
- },
22
- {
23
- "action": "read",
24
- "subject": "Trade"
25
- },
26
- {
27
- "action": "update",
28
- "subject": "Worker",
29
- "conditions": {
30
- "createdByUserId": "{{ id }}"
31
- }
32
- },
33
- {
34
- "action": "read",
35
- "subject": "FilterWorkerSchema",
36
- "fields": [
37
- "name",
38
- "email",
39
- "phone",
40
- "englishLevel",
41
- "nationality",
42
- "postcode",
43
- "distance",
44
- "qualificationFilters",
45
- "qualificationFilters.*",
46
- "availability",
47
- "hasTools",
48
- "hasPpe",
49
- "tradeFilters",
50
- "tradeFilters.*",
51
- "sortBy",
52
- "sortOrder",
53
- "location",
54
- "location.*",
55
- "createdAt",
56
- "createdAt.*",
57
- "updatedAt",
58
- "updatedAt.*",
59
- "page",
60
- "limit"
61
- ]
62
- },
63
- {
64
- "action": "read",
65
- "subject": "Worker",
66
- "conditions": {
67
- "createdByUserId": "{{ id }}"
68
- }
69
- },
70
- {
71
- "action": "read",
72
- "subject": "Worker",
73
- "fields": ["createdBy"],
74
- "inverted": true
75
- },
76
- {
77
- "action": "create",
78
- "subject": "Worker"
79
- },
80
- {
81
- "action": "manage",
82
- "subject": "Location"
83
- },
84
- {
85
- "action": "read",
86
- "subject": "Job",
87
- "fields": [
88
- "id",
89
- "description",
90
- "location",
91
- "location.*",
92
- "tradeId",
93
- "pay",
94
- "pay.isNegotiable",
95
- "pay.rate",
96
- "pay.rateUnit",
97
- "pay.rateMax",
98
- "jobQualifications",
99
- "jobQualifications[*].*",
100
- "currentCollaboration",
101
- "currentCollaboration.userId",
102
- "currentCollaboration.user.*",
103
- "numberOfPositions",
104
- "workHours",
105
- "status",
106
- "startDate",
107
- "endDate",
108
- "createdAt",
109
- "createdAt.*",
110
- "updatedAt",
111
- "updatedAt.*"
112
- ],
113
- "conditions": {
114
- "status": {
115
- "$ne": "DRAFT"
116
- }
117
- }
118
- },
119
- {
120
- "action": "create",
121
- "subject": "Booking"
122
- },
123
- {
124
- "action": "create",
125
- "subject": "Schema:BookingItem",
126
- "fields": [
127
- "worker",
128
- "worker.id",
129
- "startDate",
130
- "endDate",
131
- "pay",
132
- "pay.rate",
133
- "pay.unit",
134
- "status"
135
- ]
136
- },
137
- {
138
- "action": "read",
139
- "subject": "Booking",
140
- "fields": [
141
- "id",
142
- "worker",
143
- "worker.*",
144
- "worker.phoneNumbers",
145
- "worker.phoneNumbers[*].*",
146
- "status",
147
- "pay",
148
- "pay.rate",
149
- "pay.unit",
150
- "createdAt",
151
- "createdAt.*",
152
- "updatedAt",
153
- "updatedAt.*",
154
- "startDate",
155
- "endDate",
156
- "userId",
157
- "statusUpdatedAt",
158
- "job",
159
- "job.id",
160
- "job.description",
161
- "job.location",
162
- "job.location.*",
163
- "job.tradeId",
164
- "job.pay",
165
- "job.pay.rate",
166
- "job.pay.rateUnit",
167
- "job.pay.rateMax",
168
- "job.jobQualifications",
169
- "job.jobQualifications[*].*",
170
- "job.currentCollaboration",
171
- "job.currentCollaboration.userId",
172
- "job.currentCollaboration.user.*",
173
- "job.numberOfPositions",
174
- "job.workHours",
175
- "job.status",
176
- "job.startDate",
177
- "job.endDate",
178
- "job.createdAt",
179
- "job.createdAt.*",
180
- "job.updatedAt",
181
- "job.updatedAt.*",
182
- "userId"
183
- ],
184
- "conditions": {
185
- "userId": "{{ id }}"
186
- }
187
- },
188
- {
189
- "action": "update",
190
- "subject": "Booking",
191
- "conditions": {
192
- "userId": "{{ id }}"
193
- }
194
- },
195
- {
196
- "action": "read",
197
- "subject": "Active",
198
- "fields": [
199
- "id",
200
- "statusSa",
201
- "statusSaUpdatedAt",
202
- "hoursWorked",
203
- "hoursWorkedUpdatedAt",
204
- "date",
205
- "comment",
206
- "pay",
207
- "pay.rate",
208
- "pay.unit",
209
- "booking",
210
- "booking.id",
211
- "booking.userId",
212
- "booking.job",
213
- "booking.job.currentCollaboration",
214
- "booking.job.currentCollaboration.userId",
215
- "booking.job.currentCollaboration.user.*",
216
- "booking.job.location.*",
217
- "booking.job.pay",
218
- "booking.job.pay.rate",
219
- "booking.job.pay.rateUnit",
220
- "booking.job.jobQualifications[*].*",
221
- "booking.job.id",
222
- "booking.job.description",
223
- "booking.job.tradeId",
224
- "booking.job.numberOfPositions",
225
- "booking.job.workHours",
226
- "booking.job.status",
227
- "booking.job.startDate",
228
- "booking.job.endDate",
229
- "booking.job.createdAt",
230
- "booking.job.updatedAt",
231
- "booking.worker",
232
- "booking.worker.*",
233
- "booking.worker.phoneNumbers",
234
- "booking.worker.phoneNumbers[*].*",
235
- "booking.status",
236
- "booking.pay.rate",
237
- "booking.pay.unit",
238
- "booking.createdAt",
239
- "booking.updatedAt",
240
- "booking.startDate",
241
- "booking.endDate",
242
- "booking.statusUpdatedAt",
243
- "createdAt",
244
- "updatedAt"
245
- ],
246
- "conditions": {
247
- "booking.userId": "{{ id }}"
248
- }
249
- },
250
- {
251
- "action": "update",
252
- "subject": "Active",
253
- "fields": [
254
- "statusSa",
255
- "comment",
256
- "hoursWorked",
257
- "pay",
258
- "pay.rate",
259
- "pay.unit"
260
- ],
261
- "conditions": {
262
- "booking.userId": "{{ id }}"
263
- }
264
- },
265
- {
266
- "action": "read",
267
- "subject": "File",
268
- "conditions": {
269
- "userId": "{{ id }}"
270
- }
271
- },
272
- {
273
- "action": "create",
274
- "subject": "File"
275
- },
276
- {
277
- "action": "read",
278
- "subject": "FilterBookingSchema",
279
- "fields": [
280
- "workerName",
281
- "job",
282
- "job.userId",
283
- "job.tradeId",
284
- "startDate",
285
- "startDate.*",
286
- "endDate",
287
- "endDate.*",
288
- "sortBy",
289
- "sortOrder",
290
- "status",
291
- "agentId",
292
- "createdAt",
293
- "createdAt.*",
294
- "updatedAt",
295
- "updatedAt.*",
296
- "page",
297
- "limit"
298
- ]
299
- },
300
- {
301
- "action": "read",
302
- "subject": "FilterActiveSchema",
303
- "fields": [
304
- "workerName",
305
- "agentId",
306
- "job",
307
- "job.userId",
308
- "job.tradeId",
309
- "bookingId",
310
- "date",
311
- "date.*",
312
- "pay",
313
- "pay.*",
314
- "status",
315
- "status.status",
316
- "sortBy",
317
- "sortOrder",
318
- "page",
319
- "limit"
320
- ]
321
- },
322
- {
323
- "action": "read",
324
- "subject": "FilterJobSchema",
325
- "fields": [
326
- "tradeId",
327
- "qualificationFilters",
328
- "qualificationFilters.*",
329
- "status",
330
- "userId",
331
- "postcode",
332
- "distance",
333
- "pay",
334
- "pay.*",
335
- "createdAt",
336
- "createdAt.*",
337
- "updatedAt",
338
- "updatedAt.*",
339
- "sortBy",
340
- "sortOrder",
341
- "page",
342
- "limit"
343
- ]
344
- },
345
- {
346
- "action": "read",
347
- "subject": "FilterUserSchema",
348
- "fields": [
349
- "name",
350
- "email",
351
- "phone",
352
- "roles",
353
- "roles.*",
354
- "sortBy",
355
- "sortOrder",
356
- "page",
357
- "limit"
358
- ]
359
- },
360
- {
361
- "action": "read",
362
- "subject": "FilterLocationSchema",
363
- "fields": ["page", "limit"]
364
- },
365
- {
366
- "action": "read",
367
- "subject": "SecondAgentTutorials"
368
- },
369
- {
370
- "action": "read",
371
- "subject": "SaDashboardWidgets"
372
- },
373
- {
374
- "action": "read",
375
- "subject": "DashboardTrends"
376
- }
377
377
  ]