@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,645 +1,645 @@
1
1
  [
2
- {
3
- "action": "read",
4
- "subject": "User"
5
- },
6
- {
7
- "action": "update",
8
- "subject": "User",
9
- "fields": ["password"],
10
- "conditions": {
11
- "id": "{{ id }}"
12
- }
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": "read",
28
- "subject": "Company",
29
- "fields": ["id", "name", "updatedAt", "createdAt"]
30
- },
31
- {
32
- "action": "create",
33
- "subject": "Location",
34
- "fields": ["address", "postcode"]
35
- },
36
- {
37
- "action": "update",
38
- "subject": "Job",
39
- "fields": [
40
- "description",
41
- "location",
42
- "location.address",
43
- "location.postcode",
44
- "pay",
45
- "pay.*",
46
- "numberOfPositions",
47
- "workHours",
48
- "status",
49
- "tradeId",
50
- "jobQualifications",
51
- "jobQualifications[*].*",
52
- "currentCollaboration",
53
- "currentCollaboration.id"
54
- ],
55
- "conditions": {
56
- "$or": [
57
- {
58
- "currentCollaboration.userId": "{{ id }}"
59
- },
60
- {
61
- "createdById": "{{ id }}"
2
+ {
3
+ "action": "read",
4
+ "subject": "User"
5
+ },
6
+ {
7
+ "action": "update",
8
+ "subject": "User",
9
+ "fields": ["password"],
10
+ "conditions": {
11
+ "id": "{{ id }}"
62
12
  }
63
- ]
64
- }
65
- },
66
- {
67
- "action": "create",
68
- "subject": "Job"
69
- },
70
- {
71
- "action": "read",
72
- "subject": "FilterJobSchema",
73
- "fields": [
74
- "tradeId",
75
- "qualificationFilters",
76
- "qualificationFilters.*",
77
- "status",
78
- "userId",
79
- "clientId",
80
- "companyId",
81
- "postcode",
82
- "distance",
83
- "pay",
84
- "pay.*",
85
- "createdAt",
86
- "createdAt.*",
87
- "sortBy",
88
- "sortOrder",
89
- "page",
90
- "limit"
91
- ]
92
- },
93
- {
94
- "action": "read",
95
- "subject": "Job",
96
- "fields": [
97
- "id",
98
- "description",
99
- "location",
100
- "location.*",
101
- "tradeId",
102
- "pay",
103
- "pay.*",
104
- "jobQualifications",
105
- "jobQualifications[*].*",
106
- "currentCollaboration",
107
- "currentCollaboration.id",
108
- "currentCollaboration.company.*",
109
- "currentCollaboration.client.*",
110
- "currentCollaboration.userId",
111
- "numberOfPositions",
112
- "workHours",
113
- "status",
114
- "startDate",
115
- "endDate",
116
- "createdAt",
117
- "updatedAt",
118
- "createdById"
119
- ],
120
- "conditions": {
121
- "$or": [
122
- {
123
- "currentCollaboration.userId": "{{ id }}"
124
- },
125
- {
126
- "createdById": "{{ id }}"
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": "read",
28
+ "subject": "Company",
29
+ "fields": ["id", "name", "updatedAt", "createdAt"]
30
+ },
31
+ {
32
+ "action": "create",
33
+ "subject": "Location",
34
+ "fields": ["address", "postcode"]
35
+ },
36
+ {
37
+ "action": "update",
38
+ "subject": "Job",
39
+ "fields": [
40
+ "description",
41
+ "location",
42
+ "location.address",
43
+ "location.postcode",
44
+ "pay",
45
+ "pay.*",
46
+ "numberOfPositions",
47
+ "workHours",
48
+ "status",
49
+ "tradeId",
50
+ "jobQualifications",
51
+ "jobQualifications[*].*",
52
+ "currentCollaboration",
53
+ "currentCollaboration.id"
54
+ ],
55
+ "conditions": {
56
+ "$or": [
57
+ {
58
+ "currentCollaboration.userId": "{{ id }}"
59
+ },
60
+ {
61
+ "createdById": "{{ id }}"
62
+ }
63
+ ]
127
64
  }
128
- ]
129
- }
130
- },
131
- {
132
- "action": "create",
133
- "subject": "Collaboration",
134
- "fields": ["client", "client.id", "company", "company.id"]
135
- },
136
- {
137
- "action": "read",
138
- "subject": "Collaboration",
139
- "fields": [
140
- "id",
141
- "company",
142
- "company.*",
143
- "client",
144
- "client.*",
145
- "userId",
146
- "status",
147
- "createdAt",
148
- "updatedAt"
149
- ],
150
- "conditions": {
151
- "userId": "{{ id }}"
152
- }
153
- },
154
- {
155
- "action": "read",
156
- "subject": "Client",
157
- "fields": [
158
- "id",
159
- "name",
160
- "crn",
161
- "govLink",
162
- "director",
163
- "blacklistReason",
164
- "status",
165
- "createdAt",
166
- "updatedAt",
167
- "version",
168
- "agentClientLinks",
169
- "agentClientLinks.agentId"
170
- ],
171
- "conditions": {
172
- "agentClientLinks.agentId": "{{ id }}"
173
- }
174
- },
175
- {
176
- "action": "create",
177
- "subject": "Client"
178
- },
179
- {
180
- "action": "read",
181
- "subject": "AgentClientLink",
182
- "conditions": {
183
- "agentId": "{{ id }}"
184
- }
185
- },
186
- {
187
- "action": "update",
188
- "subject": "Client",
189
- "fields": ["name", "director", "blacklistReason", "status"],
190
- "conditions": {
191
- "agentClientLinks.agentId": "{{ id }}"
192
- }
193
- },
194
- {
195
- "action": "read",
196
- "subject": "ClientContact",
197
- "fields": [
198
- "id",
199
- "clientId",
200
- "client",
201
- "client.*",
202
- "name",
203
- "position",
204
- "phone",
205
- "email",
206
- "source",
207
- "createdById",
208
- "createdAt",
209
- "updatedAt"
210
- ],
211
- "conditions": {
212
- "createdById": "{{ id }}"
213
- }
214
- },
215
- {
216
- "action": "update",
217
- "subject": "ClientContact",
218
- "fields": ["name", "position", "phone", "email", "source"],
219
- "conditions": {
220
- "createdById": "{{ id }}"
221
- }
222
- },
223
- {
224
- "action": "create",
225
- "subject": "ClientContact"
226
- },
227
- {
228
- "action": "read",
229
- "subject": "CollaborationChecking",
230
- "fields": [
231
- "id",
232
- "collaborationId",
233
- "collaboration",
234
- "collaboration.client.*",
235
- "collaboration.company.*",
236
- "urgency",
237
- "decision",
238
- "decisionTimestamp",
239
- "decisionComment",
240
- "isTermsAndConditionsConfirmed",
241
- "termsAndConditionsConfirmedTimestamp",
242
- "emailType",
243
- "email",
244
- "introductionEmailSent",
245
- "introductionEmailTimestamp",
246
- "collaborationEmailSent",
247
- "collaborationEmailTimestamp",
248
- "createdAt",
249
- "updatedAt"
250
- ],
251
- "conditions": {
252
- "collaboration.userId": "{{ id }}"
253
- }
254
- },
255
- {
256
- "action": "create",
257
- "subject": "CollaborationChecking",
258
- "fields": [
259
- "collaboration.id",
260
- "clientContact.id",
261
- "urgency",
262
- "emailType",
263
- "email"
264
- ],
265
- "conditions": {
266
- "collaboration.userId": "{{ id }}"
267
- }
268
- },
269
- {
270
- "action": "update",
271
- "subject": "CollaborationChecking",
272
- "fields": ["urgency", "emailType"],
273
- "conditions": {
274
- "collaboration.userId": "{{ id }}"
275
- }
276
- },
277
- {
278
- "action": "update",
279
- "subject": "Active",
280
- "fields": ["statusFa", "pay.receivedRate"],
281
- "conditions": {
282
- "booking.job.currentCollaboration.userId": "{{ id }}"
283
- }
284
- },
285
- {
286
- "action": "read",
287
- "subject": "Active",
288
- "fields": [
289
- "id",
290
- "statusFa",
291
- "statusFaUpdatedAt",
292
- "hoursWorked",
293
- "hoursWorkedUpdatedAt",
294
- "pay",
295
- "pay.*",
296
- "date",
297
- "booking",
298
- "booking.id",
299
- "booking.job.currentCollaboration.userId",
300
- "booking.job.currentCollaboration.company.*",
301
- "booking.job.currentCollaboration.client.*",
302
- "booking.job.location.*",
303
- "booking.job.pay.*",
304
- "booking.job.jobQualifications[*].*",
305
- "booking.job.*",
306
- "booking.worker",
307
- "booking.worker.firstName",
308
- "booking.worker.lastName",
309
- "booking.status",
310
- "booking.pay.rate",
311
- "booking.pay.unit",
312
- "booking.createdAt",
313
- "booking.updatedAt",
314
- "booking.startDate",
315
- "booking.endDate",
316
- "booking.user.*",
317
- "booking.statusUpdatedAt",
318
- "createdAt",
319
- "updatedAt"
320
- ],
321
- "conditions": {
322
- "booking.job.currentCollaboration.userId": "{{ id }}"
323
- }
324
- },
325
- {
326
- "action": "read",
327
- "subject": "Booking",
328
- "fields": [
329
- "id",
330
- "job",
331
- "job.currentCollaboration.userId",
332
- "job.currentCollaboration.company.*",
333
- "job.currentCollaboration.client.*",
334
- "job.location.*",
335
- "job.pay.*",
336
- "job.jobQualifications[*].*",
337
- "job.*",
338
- "worker",
339
- "worker.firstName",
340
- "worker.lastName",
341
- "status",
342
- "pay",
343
- "pay.rate",
344
- "pay.unit",
345
- "createdAt",
346
- "updatedAt",
347
- "startDate",
348
- "endDate",
349
- "user",
350
- "user.*",
351
- "statusUpdatedAt"
352
- ],
353
- "conditions": {
354
- "job.currentCollaboration.userId": "{{ id }}"
355
- }
356
- },
357
- {
358
- "action": "read",
359
- "subject": "File",
360
- "conditions": {
361
- "userId": "{{ id }}"
362
- }
363
- },
364
- {
365
- "action": "read",
366
- "subject": "FilterBookingSchema",
367
- "fields": [
368
- "workerName",
369
- "job",
370
- "job.*",
371
- "createdAt",
372
- "createdAt.*",
373
- "startDate",
374
- "startDate.*",
375
- "endDate",
376
- "endDate.*",
377
- "sortBy",
378
- "sortOrder",
379
- "status",
380
- "clientId",
381
- "companyId",
382
- "agentId",
383
- "page",
384
- "limit"
385
- ]
386
- },
387
- {
388
- "action": "read",
389
- "subject": "FilterActiveSchema",
390
- "fields": [
391
- "workerName",
392
- "agentId",
393
- "job",
394
- "job.clientId",
395
- "job.companyId",
396
- "job.tradeId",
397
- "bookingId",
398
- "date",
399
- "date.*",
400
- "pay",
401
- "pay.*",
402
- "status",
403
- "status.status",
404
- "sortBy",
405
- "sortOrder",
406
- "page",
407
- "limit"
408
- ]
409
- },
410
- {
411
- "action": "read",
412
- "subject": "FilterUserSchema",
413
- "fields": [
414
- "name",
415
- "email",
416
- "phone",
417
- "roles",
418
- "roles.*",
419
- "sortBy",
420
- "sortOrder",
421
- "page",
422
- "limit"
423
- ]
424
- },
425
- {
426
- "action": "read",
427
- "subject": "FilterCompanySchema",
428
- "fields": ["name", "sortBy", "sortOrder", "page", "limit"]
429
- },
430
- {
431
- "action": "read",
432
- "subject": "FilterClientSchema",
433
- "fields": [
434
- "name",
435
- "status",
436
- "director",
437
- "createdAt",
438
- "createdAt.*",
439
- "sortBy",
440
- "sortOrder",
441
- "page",
442
- "limit"
443
- ]
444
- },
445
- {
446
- "action": "read",
447
- "subject": "FilterAgentClientLinkSchema",
448
- "fields": [
449
- "clientId",
450
- "agentId",
451
- "linkType",
452
- "sortBy",
453
- "sortOrder",
454
- "page",
455
- "limit"
456
- ]
457
- },
458
- {
459
- "action": "read",
460
- "subject": "FilterClientContactSchema",
461
- "fields": [
462
- "name",
463
- "email",
464
- "phone",
465
- "clientId",
466
- "position",
467
- "source",
468
- "sortBy",
469
- "sortOrder",
470
- "page",
471
- "limit"
472
- ]
473
- },
474
- {
475
- "action": "read",
476
- "subject": "FilterCollaborationSchema",
477
- "fields": [
478
- "companyId",
479
- "clientId",
480
- "userId",
481
- "status",
482
- "sortBy",
483
- "sortOrder",
484
- "page",
485
- "limit"
486
- ]
487
- },
488
- {
489
- "action": "read",
490
- "subject": "FilterCollaborationCheckingSchema",
491
- "fields": [
492
- "companyId",
493
- "clientId",
494
- "urgency",
495
- "decision",
496
- "createdById",
497
- "sortBy",
498
- "sortOrder",
499
- "page",
500
- "limit"
501
- ]
502
- },
503
- {
504
- "action": "read",
505
- "subject": "FilterCallHistorySchema",
506
- "fields": [
507
- "assignmentId",
508
- "rating",
509
- "callType",
510
- "callDate",
511
- "callDate.*",
512
- "sortBy",
513
- "sortOrder",
514
- "page",
515
- "limit"
516
- ]
517
- },
518
- {
519
- "action": "read",
520
- "subject": "FilterLocationSchema",
521
- "fields": ["page", "limit"]
522
- },
523
- {
524
- "action": "read",
525
- "subject": "LeadAssignment",
526
- "conditions": {
527
- "agentId": "{{ id }}"
528
- }
529
- },
530
- {
531
- "action": "update",
532
- "subject": "LeadAssignment",
533
- "conditions": {
534
- "agentId": "{{ id }}"
535
- }
536
- },
537
- {
538
- "action": "read",
539
- "subject": "CallHistory",
540
- "fields": [
541
- "id",
542
- "assignmentId",
543
- "leadId",
544
- "agentId",
545
- "assignment",
546
- "assignment.id",
547
- "assignment.leadId",
548
- "assignment.lead",
549
- "assignment.lead.*",
550
- "assignment.agentId",
551
- "assignment.assignedAt",
552
- "assignment.status",
553
- "assignment.companyId",
554
- "assignment.company",
555
- "assignment.company.*",
556
- "assignment.createdAt",
557
- "assignment.updatedAt",
558
- "callDate",
559
- "callType",
560
- "rating",
561
- "notes",
562
- "createdAt",
563
- "updatedAt"
564
- ],
565
- "conditions": {
566
- "assignment.agentId": "{{ id }}"
567
- }
568
- },
569
- {
570
- "action": "update",
571
- "subject": "CallHistory",
572
- "fields": ["rating", "notes"],
573
- "conditions": {
574
- "assignment.agentId": "{{ id }}"
575
- }
576
- },
577
- {
578
- "action": "read",
579
- "subject": "FirstAgentTutorials"
580
- },
581
- {
582
- "action": "read",
583
- "subject": "FaDashboardWidgets"
584
- },
585
- {
586
- "action": "read",
587
- "subject": "DashboardTrends"
588
- },
589
- {
590
- "action": "read",
591
- "subject": "Lead",
592
- "fields": ["id", "name", "phoneNumber", "status", "lastCalledAt"],
593
- "conditions": {
594
- "assignments.agentId": "{{ id }}",
595
- "assignments.status": "ACTIVE"
596
- }
597
- },
598
- {
599
- "action": "read",
600
- "subject": "FilterLeadSchema",
601
- "fields": [
602
- "name",
603
- "phoneNumber",
604
- "status",
605
- "lastCalledAt",
606
- "sortBy",
607
- "sortOrder",
608
- "page",
609
- "limit"
610
- ]
611
- },
612
- {
613
- "action": "read",
614
- "subject": "OwnResearchLead",
615
- "fields": [
616
- "id",
617
- "name",
618
- "phoneNumber",
619
- "status",
620
- "source",
621
- "callCount",
622
- "lastCalledAt",
623
- "createdAt",
624
- "updatedAt"
625
- ],
626
- "conditions": {
627
- "agentId": "{{ id }}"
65
+ },
66
+ {
67
+ "action": "create",
68
+ "subject": "Job"
69
+ },
70
+ {
71
+ "action": "read",
72
+ "subject": "FilterJobSchema",
73
+ "fields": [
74
+ "tradeId",
75
+ "qualificationFilters",
76
+ "qualificationFilters[*].*",
77
+ "status",
78
+ "userId",
79
+ "clientId",
80
+ "companyId",
81
+ "postcode",
82
+ "distance",
83
+ "pay",
84
+ "pay.*",
85
+ "createdAt",
86
+ "createdAt.*",
87
+ "sortBy",
88
+ "sortOrder",
89
+ "page",
90
+ "limit"
91
+ ]
92
+ },
93
+ {
94
+ "action": "read",
95
+ "subject": "Job",
96
+ "fields": [
97
+ "id",
98
+ "description",
99
+ "location",
100
+ "location.*",
101
+ "tradeId",
102
+ "pay",
103
+ "pay.*",
104
+ "jobQualifications",
105
+ "jobQualifications[*].*",
106
+ "currentCollaboration",
107
+ "currentCollaboration.id",
108
+ "currentCollaboration.company.*",
109
+ "currentCollaboration.client.*",
110
+ "currentCollaboration.userId",
111
+ "numberOfPositions",
112
+ "workHours",
113
+ "status",
114
+ "startDate",
115
+ "endDate",
116
+ "createdAt",
117
+ "updatedAt",
118
+ "createdById"
119
+ ],
120
+ "conditions": {
121
+ "$or": [
122
+ {
123
+ "currentCollaboration.userId": "{{ id }}"
124
+ },
125
+ {
126
+ "createdById": "{{ id }}"
127
+ }
128
+ ]
129
+ }
130
+ },
131
+ {
132
+ "action": "create",
133
+ "subject": "Collaboration",
134
+ "fields": ["client", "client.id", "company", "company.id"]
135
+ },
136
+ {
137
+ "action": "read",
138
+ "subject": "Collaboration",
139
+ "fields": [
140
+ "id",
141
+ "company",
142
+ "company.*",
143
+ "client",
144
+ "client.*",
145
+ "userId",
146
+ "status",
147
+ "createdAt",
148
+ "updatedAt"
149
+ ],
150
+ "conditions": {
151
+ "userId": "{{ id }}"
152
+ }
153
+ },
154
+ {
155
+ "action": "read",
156
+ "subject": "Client",
157
+ "fields": [
158
+ "id",
159
+ "name",
160
+ "crn",
161
+ "govLink",
162
+ "director",
163
+ "blacklistReason",
164
+ "status",
165
+ "createdAt",
166
+ "updatedAt",
167
+ "version",
168
+ "agentClientLinks",
169
+ "agentClientLinks.agentId"
170
+ ],
171
+ "conditions": {
172
+ "agentClientLinks.agentId": "{{ id }}"
173
+ }
174
+ },
175
+ {
176
+ "action": "create",
177
+ "subject": "Client"
178
+ },
179
+ {
180
+ "action": "read",
181
+ "subject": "AgentClientLink",
182
+ "conditions": {
183
+ "agentId": "{{ id }}"
184
+ }
185
+ },
186
+ {
187
+ "action": "update",
188
+ "subject": "Client",
189
+ "fields": ["name", "director", "blacklistReason", "status"],
190
+ "conditions": {
191
+ "agentClientLinks.agentId": "{{ id }}"
192
+ }
193
+ },
194
+ {
195
+ "action": "read",
196
+ "subject": "ClientContact",
197
+ "fields": [
198
+ "id",
199
+ "clientId",
200
+ "client",
201
+ "client.*",
202
+ "name",
203
+ "position",
204
+ "phone",
205
+ "email",
206
+ "source",
207
+ "createdById",
208
+ "createdAt",
209
+ "updatedAt"
210
+ ],
211
+ "conditions": {
212
+ "createdById": "{{ id }}"
213
+ }
214
+ },
215
+ {
216
+ "action": "update",
217
+ "subject": "ClientContact",
218
+ "fields": ["name", "position", "phone", "email", "source"],
219
+ "conditions": {
220
+ "createdById": "{{ id }}"
221
+ }
222
+ },
223
+ {
224
+ "action": "create",
225
+ "subject": "ClientContact"
226
+ },
227
+ {
228
+ "action": "read",
229
+ "subject": "CollaborationChecking",
230
+ "fields": [
231
+ "id",
232
+ "collaborationId",
233
+ "collaboration",
234
+ "collaboration.client.*",
235
+ "collaboration.company.*",
236
+ "urgency",
237
+ "decision",
238
+ "decisionTimestamp",
239
+ "decisionComment",
240
+ "isTermsAndConditionsConfirmed",
241
+ "termsAndConditionsConfirmedTimestamp",
242
+ "emailType",
243
+ "email",
244
+ "introductionEmailSent",
245
+ "introductionEmailTimestamp",
246
+ "collaborationEmailSent",
247
+ "collaborationEmailTimestamp",
248
+ "createdAt",
249
+ "updatedAt"
250
+ ],
251
+ "conditions": {
252
+ "collaboration.userId": "{{ id }}"
253
+ }
254
+ },
255
+ {
256
+ "action": "create",
257
+ "subject": "CollaborationChecking",
258
+ "fields": [
259
+ "collaboration.id",
260
+ "clientContact.id",
261
+ "urgency",
262
+ "emailType",
263
+ "email"
264
+ ],
265
+ "conditions": {
266
+ "collaboration.userId": "{{ id }}"
267
+ }
268
+ },
269
+ {
270
+ "action": "update",
271
+ "subject": "CollaborationChecking",
272
+ "fields": ["urgency", "emailType"],
273
+ "conditions": {
274
+ "collaboration.userId": "{{ id }}"
275
+ }
276
+ },
277
+ {
278
+ "action": "update",
279
+ "subject": "Active",
280
+ "fields": ["statusFa", "pay.receivedRate"],
281
+ "conditions": {
282
+ "booking.job.currentCollaboration.userId": "{{ id }}"
283
+ }
284
+ },
285
+ {
286
+ "action": "read",
287
+ "subject": "Active",
288
+ "fields": [
289
+ "id",
290
+ "statusFa",
291
+ "statusFaUpdatedAt",
292
+ "hoursWorked",
293
+ "hoursWorkedUpdatedAt",
294
+ "pay",
295
+ "pay.*",
296
+ "date",
297
+ "booking",
298
+ "booking.id",
299
+ "booking.job.currentCollaboration.userId",
300
+ "booking.job.currentCollaboration.company.*",
301
+ "booking.job.currentCollaboration.client.*",
302
+ "booking.job.location.*",
303
+ "booking.job.pay.*",
304
+ "booking.job.jobQualifications[*].*",
305
+ "booking.job.*",
306
+ "booking.worker",
307
+ "booking.worker.firstName",
308
+ "booking.worker.lastName",
309
+ "booking.status",
310
+ "booking.pay.rate",
311
+ "booking.pay.unit",
312
+ "booking.createdAt",
313
+ "booking.updatedAt",
314
+ "booking.startDate",
315
+ "booking.endDate",
316
+ "booking.user.*",
317
+ "booking.statusUpdatedAt",
318
+ "createdAt",
319
+ "updatedAt"
320
+ ],
321
+ "conditions": {
322
+ "booking.job.currentCollaboration.userId": "{{ id }}"
323
+ }
324
+ },
325
+ {
326
+ "action": "read",
327
+ "subject": "Booking",
328
+ "fields": [
329
+ "id",
330
+ "job",
331
+ "job.currentCollaboration.userId",
332
+ "job.currentCollaboration.company.*",
333
+ "job.currentCollaboration.client.*",
334
+ "job.location.*",
335
+ "job.pay.*",
336
+ "job.jobQualifications[*].*",
337
+ "job.*",
338
+ "worker",
339
+ "worker.firstName",
340
+ "worker.lastName",
341
+ "status",
342
+ "pay",
343
+ "pay.rate",
344
+ "pay.unit",
345
+ "createdAt",
346
+ "updatedAt",
347
+ "startDate",
348
+ "endDate",
349
+ "user",
350
+ "user.*",
351
+ "statusUpdatedAt"
352
+ ],
353
+ "conditions": {
354
+ "job.currentCollaboration.userId": "{{ id }}"
355
+ }
356
+ },
357
+ {
358
+ "action": "read",
359
+ "subject": "File",
360
+ "conditions": {
361
+ "userId": "{{ id }}"
362
+ }
363
+ },
364
+ {
365
+ "action": "read",
366
+ "subject": "FilterBookingSchema",
367
+ "fields": [
368
+ "workerName",
369
+ "job",
370
+ "job.*",
371
+ "createdAt",
372
+ "createdAt.*",
373
+ "startDate",
374
+ "startDate.*",
375
+ "endDate",
376
+ "endDate.*",
377
+ "sortBy",
378
+ "sortOrder",
379
+ "status",
380
+ "clientId",
381
+ "companyId",
382
+ "agentId",
383
+ "page",
384
+ "limit"
385
+ ]
386
+ },
387
+ {
388
+ "action": "read",
389
+ "subject": "FilterActiveSchema",
390
+ "fields": [
391
+ "workerName",
392
+ "agentId",
393
+ "job",
394
+ "job.clientId",
395
+ "job.companyId",
396
+ "job.tradeId",
397
+ "bookingId",
398
+ "date",
399
+ "date.*",
400
+ "pay",
401
+ "pay.*",
402
+ "status",
403
+ "status.status",
404
+ "sortBy",
405
+ "sortOrder",
406
+ "page",
407
+ "limit"
408
+ ]
409
+ },
410
+ {
411
+ "action": "read",
412
+ "subject": "FilterUserSchema",
413
+ "fields": [
414
+ "name",
415
+ "email",
416
+ "phone",
417
+ "roles",
418
+ "roles.*",
419
+ "sortBy",
420
+ "sortOrder",
421
+ "page",
422
+ "limit"
423
+ ]
424
+ },
425
+ {
426
+ "action": "read",
427
+ "subject": "FilterCompanySchema",
428
+ "fields": ["name", "sortBy", "sortOrder", "page", "limit"]
429
+ },
430
+ {
431
+ "action": "read",
432
+ "subject": "FilterClientSchema",
433
+ "fields": [
434
+ "name",
435
+ "status",
436
+ "director",
437
+ "createdAt",
438
+ "createdAt.*",
439
+ "sortBy",
440
+ "sortOrder",
441
+ "page",
442
+ "limit"
443
+ ]
444
+ },
445
+ {
446
+ "action": "read",
447
+ "subject": "FilterAgentClientLinkSchema",
448
+ "fields": [
449
+ "clientId",
450
+ "agentId",
451
+ "linkType",
452
+ "sortBy",
453
+ "sortOrder",
454
+ "page",
455
+ "limit"
456
+ ]
457
+ },
458
+ {
459
+ "action": "read",
460
+ "subject": "FilterClientContactSchema",
461
+ "fields": [
462
+ "name",
463
+ "email",
464
+ "phone",
465
+ "clientId",
466
+ "position",
467
+ "source",
468
+ "sortBy",
469
+ "sortOrder",
470
+ "page",
471
+ "limit"
472
+ ]
473
+ },
474
+ {
475
+ "action": "read",
476
+ "subject": "FilterCollaborationSchema",
477
+ "fields": [
478
+ "companyId",
479
+ "clientId",
480
+ "userId",
481
+ "status",
482
+ "sortBy",
483
+ "sortOrder",
484
+ "page",
485
+ "limit"
486
+ ]
487
+ },
488
+ {
489
+ "action": "read",
490
+ "subject": "FilterCollaborationCheckingSchema",
491
+ "fields": [
492
+ "companyId",
493
+ "clientId",
494
+ "urgency",
495
+ "decision",
496
+ "createdById",
497
+ "sortBy",
498
+ "sortOrder",
499
+ "page",
500
+ "limit"
501
+ ]
502
+ },
503
+ {
504
+ "action": "read",
505
+ "subject": "FilterCallHistorySchema",
506
+ "fields": [
507
+ "assignmentId",
508
+ "rating",
509
+ "callType",
510
+ "callDate",
511
+ "callDate.*",
512
+ "sortBy",
513
+ "sortOrder",
514
+ "page",
515
+ "limit"
516
+ ]
517
+ },
518
+ {
519
+ "action": "read",
520
+ "subject": "FilterLocationSchema",
521
+ "fields": ["page", "limit"]
522
+ },
523
+ {
524
+ "action": "read",
525
+ "subject": "LeadAssignment",
526
+ "conditions": {
527
+ "agentId": "{{ id }}"
528
+ }
529
+ },
530
+ {
531
+ "action": "update",
532
+ "subject": "LeadAssignment",
533
+ "conditions": {
534
+ "agentId": "{{ id }}"
535
+ }
536
+ },
537
+ {
538
+ "action": "read",
539
+ "subject": "CallHistory",
540
+ "fields": [
541
+ "id",
542
+ "assignmentId",
543
+ "leadId",
544
+ "agentId",
545
+ "assignment",
546
+ "assignment.id",
547
+ "assignment.leadId",
548
+ "assignment.lead",
549
+ "assignment.lead.*",
550
+ "assignment.agentId",
551
+ "assignment.assignedAt",
552
+ "assignment.status",
553
+ "assignment.companyId",
554
+ "assignment.company",
555
+ "assignment.company.*",
556
+ "assignment.createdAt",
557
+ "assignment.updatedAt",
558
+ "callDate",
559
+ "callType",
560
+ "rating",
561
+ "notes",
562
+ "createdAt",
563
+ "updatedAt"
564
+ ],
565
+ "conditions": {
566
+ "assignment.agentId": "{{ id }}"
567
+ }
568
+ },
569
+ {
570
+ "action": "update",
571
+ "subject": "CallHistory",
572
+ "fields": ["rating", "notes"],
573
+ "conditions": {
574
+ "assignment.agentId": "{{ id }}"
575
+ }
576
+ },
577
+ {
578
+ "action": "read",
579
+ "subject": "FirstAgentTutorials"
580
+ },
581
+ {
582
+ "action": "read",
583
+ "subject": "FaDashboardWidgets"
584
+ },
585
+ {
586
+ "action": "read",
587
+ "subject": "DashboardTrends"
588
+ },
589
+ {
590
+ "action": "read",
591
+ "subject": "Lead",
592
+ "fields": ["id", "name", "phoneNumber", "status", "lastCalledAt"],
593
+ "conditions": {
594
+ "assignments.agentId": "{{ id }}",
595
+ "assignments.status": "ACTIVE"
596
+ }
597
+ },
598
+ {
599
+ "action": "read",
600
+ "subject": "FilterLeadSchema",
601
+ "fields": [
602
+ "name",
603
+ "phoneNumber",
604
+ "status",
605
+ "lastCalledAt",
606
+ "sortBy",
607
+ "sortOrder",
608
+ "page",
609
+ "limit"
610
+ ]
611
+ },
612
+ {
613
+ "action": "read",
614
+ "subject": "OwnResearchLead",
615
+ "fields": [
616
+ "id",
617
+ "name",
618
+ "phoneNumber",
619
+ "status",
620
+ "source",
621
+ "callCount",
622
+ "lastCalledAt",
623
+ "createdAt",
624
+ "updatedAt"
625
+ ],
626
+ "conditions": {
627
+ "agentId": "{{ id }}"
628
+ }
629
+ },
630
+ {
631
+ "action": "read",
632
+ "subject": "FilterOwnResearchLeadSchema",
633
+ "fields": [
634
+ "name",
635
+ "phoneNumber",
636
+ "status",
637
+ "minTotalCalls",
638
+ "lastCalledAt",
639
+ "sortBy",
640
+ "sortOrder",
641
+ "page",
642
+ "limit"
643
+ ]
628
644
  }
629
- },
630
- {
631
- "action": "read",
632
- "subject": "FilterOwnResearchLeadSchema",
633
- "fields": [
634
- "name",
635
- "phoneNumber",
636
- "status",
637
- "minTotalCalls",
638
- "lastCalledAt",
639
- "sortBy",
640
- "sortOrder",
641
- "page",
642
- "limit"
643
- ]
644
- }
645
645
  ]