@platelet-app/types 1.0.2 → 1.0.4

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,2683 +0,0 @@
1
- export const schema = {
2
- "models": {
3
- "Tenant": {
4
- "name": "Tenant",
5
- "fields": {
6
- "id": {
7
- "name": "id",
8
- "isArray": false,
9
- "type": "ID",
10
- "isRequired": true,
11
- "attributes": []
12
- },
13
- "name": {
14
- "name": "name",
15
- "isArray": false,
16
- "type": "String",
17
- "isRequired": true,
18
- "attributes": []
19
- },
20
- "referenceIdentifier": {
21
- "name": "referenceIdentifier",
22
- "isArray": false,
23
- "type": "String",
24
- "isRequired": true,
25
- "attributes": []
26
- },
27
- "admin": {
28
- "name": "admin",
29
- "isArray": false,
30
- "type": {
31
- "model": "User"
32
- },
33
- "isRequired": true,
34
- "attributes": [],
35
- "association": {
36
- "connectionType": "HAS_ONE",
37
- "associatedWith": "id",
38
- "targetName": "tenantAdminId"
39
- }
40
- },
41
- "createdAt": {
42
- "name": "createdAt",
43
- "isArray": false,
44
- "type": "AWSDateTime",
45
- "isRequired": false,
46
- "attributes": [],
47
- "isReadOnly": true
48
- },
49
- "updatedAt": {
50
- "name": "updatedAt",
51
- "isArray": false,
52
- "type": "AWSDateTime",
53
- "isRequired": false,
54
- "attributes": [],
55
- "isReadOnly": true
56
- },
57
- "tenantAdminId": {
58
- "name": "tenantAdminId",
59
- "isArray": false,
60
- "type": "ID",
61
- "isRequired": true,
62
- "attributes": []
63
- }
64
- },
65
- "syncable": true,
66
- "pluralName": "Tenants",
67
- "attributes": [
68
- {
69
- "type": "model",
70
- "properties": {}
71
- },
72
- {
73
- "type": "key",
74
- "properties": {
75
- "name": "byTenantName",
76
- "queryField": "getTenantByTenantName",
77
- "fields": [
78
- "name"
79
- ]
80
- }
81
- },
82
- {
83
- "type": "auth",
84
- "properties": {
85
- "rules": [
86
- {
87
- "allow": "private",
88
- "operations": [
89
- "read"
90
- ]
91
- },
92
- {
93
- "allow": "private",
94
- "provider": "iam",
95
- "operations": [
96
- "read"
97
- ]
98
- }
99
- ]
100
- }
101
- }
102
- ]
103
- },
104
- "User": {
105
- "name": "User",
106
- "fields": {
107
- "id": {
108
- "name": "id",
109
- "isArray": false,
110
- "type": "ID",
111
- "isRequired": true,
112
- "attributes": []
113
- },
114
- "username": {
115
- "name": "username",
116
- "isArray": false,
117
- "type": "String",
118
- "isRequired": true,
119
- "attributes": []
120
- },
121
- "cognitoId": {
122
- "name": "cognitoId",
123
- "isArray": false,
124
- "type": "ID",
125
- "isRequired": true,
126
- "attributes": []
127
- },
128
- "tenantId": {
129
- "name": "tenantId",
130
- "isArray": false,
131
- "type": "ID",
132
- "isRequired": true,
133
- "attributes": []
134
- },
135
- "isPrimaryAdmin": {
136
- "name": "isPrimaryAdmin",
137
- "isArray": false,
138
- "type": "Int",
139
- "isRequired": false,
140
- "attributes": []
141
- },
142
- "contact": {
143
- "name": "contact",
144
- "isArray": false,
145
- "type": {
146
- "nonModel": "AddressAndContactDetails"
147
- },
148
- "isRequired": false,
149
- "attributes": []
150
- },
151
- "displayName": {
152
- "name": "displayName",
153
- "isArray": false,
154
- "type": "String",
155
- "isRequired": true,
156
- "attributes": []
157
- },
158
- "name": {
159
- "name": "name",
160
- "isArray": false,
161
- "type": "String",
162
- "isRequired": false,
163
- "attributes": []
164
- },
165
- "roles": {
166
- "name": "roles",
167
- "isArray": true,
168
- "type": {
169
- "enum": "Role"
170
- },
171
- "isRequired": true,
172
- "attributes": [],
173
- "isArrayNullable": false
174
- },
175
- "dateOfBirth": {
176
- "name": "dateOfBirth",
177
- "isArray": false,
178
- "type": "AWSDate",
179
- "isRequired": false,
180
- "attributes": []
181
- },
182
- "riderResponsibility": {
183
- "name": "riderResponsibility",
184
- "isArray": false,
185
- "type": "String",
186
- "isRequired": false,
187
- "attributes": []
188
- },
189
- "possibleRiderResponsibilities": {
190
- "name": "possibleRiderResponsibilities",
191
- "isArray": true,
192
- "type": {
193
- "model": "PossibleRiderResponsibilities"
194
- },
195
- "isRequired": false,
196
- "attributes": [],
197
- "isArrayNullable": true,
198
- "association": {
199
- "connectionType": "HAS_MANY",
200
- "associatedWith": "userPossibleRiderResponsibilitiesId"
201
- }
202
- },
203
- "profilePicture": {
204
- "name": "profilePicture",
205
- "isArray": false,
206
- "type": {
207
- "nonModel": "S3Object"
208
- },
209
- "isRequired": false,
210
- "attributes": []
211
- },
212
- "comments": {
213
- "name": "comments",
214
- "isArray": true,
215
- "type": {
216
- "model": "Comment"
217
- },
218
- "isRequired": false,
219
- "attributes": [],
220
- "isArrayNullable": true,
221
- "association": {
222
- "connectionType": "HAS_MANY",
223
- "associatedWith": "userCommentsId"
224
- }
225
- },
226
- "assignments": {
227
- "name": "assignments",
228
- "isArray": true,
229
- "type": {
230
- "model": "TaskAssignee"
231
- },
232
- "isRequired": false,
233
- "attributes": [],
234
- "isArrayNullable": true,
235
- "association": {
236
- "connectionType": "HAS_MANY",
237
- "associatedWith": "userAssignmentsId"
238
- }
239
- },
240
- "vehicleAssignments": {
241
- "name": "vehicleAssignments",
242
- "isArray": true,
243
- "type": {
244
- "model": "VehicleAssignment"
245
- },
246
- "isRequired": false,
247
- "attributes": [],
248
- "isArrayNullable": true,
249
- "association": {
250
- "connectionType": "HAS_MANY",
251
- "associatedWith": "userVehicleAssignmentsId"
252
- }
253
- },
254
- "createdTasks": {
255
- "name": "createdTasks",
256
- "isArray": true,
257
- "type": {
258
- "model": "Task"
259
- },
260
- "isRequired": false,
261
- "attributes": [],
262
- "isArrayNullable": true,
263
- "association": {
264
- "connectionType": "HAS_MANY",
265
- "associatedWith": "userCreatedTasksId"
266
- }
267
- },
268
- "createdLocations": {
269
- "name": "createdLocations",
270
- "isArray": true,
271
- "type": {
272
- "model": "Location"
273
- },
274
- "isRequired": false,
275
- "attributes": [],
276
- "isArrayNullable": true,
277
- "association": {
278
- "connectionType": "HAS_MANY",
279
- "associatedWith": "userCreatedLocationsId"
280
- }
281
- },
282
- "createdVehicles": {
283
- "name": "createdVehicles",
284
- "isArray": true,
285
- "type": {
286
- "model": "Vehicle"
287
- },
288
- "isRequired": false,
289
- "attributes": [],
290
- "isArrayNullable": true,
291
- "association": {
292
- "connectionType": "HAS_MANY",
293
- "associatedWith": "userCreatedVehiclesId"
294
- }
295
- },
296
- "createdScheduledTasks": {
297
- "name": "createdScheduledTasks",
298
- "isArray": true,
299
- "type": {
300
- "model": "ScheduledTask"
301
- },
302
- "isRequired": false,
303
- "attributes": [],
304
- "isArrayNullable": true,
305
- "association": {
306
- "connectionType": "HAS_MANY",
307
- "associatedWith": "userCreatedScheduledTasksId"
308
- }
309
- },
310
- "disabled": {
311
- "name": "disabled",
312
- "isArray": false,
313
- "type": "Int",
314
- "isRequired": false,
315
- "attributes": []
316
- },
317
- "createdAt": {
318
- "name": "createdAt",
319
- "isArray": false,
320
- "type": "AWSDateTime",
321
- "isRequired": false,
322
- "attributes": [],
323
- "isReadOnly": true
324
- },
325
- "updatedAt": {
326
- "name": "updatedAt",
327
- "isArray": false,
328
- "type": "AWSDateTime",
329
- "isRequired": false,
330
- "attributes": [],
331
- "isReadOnly": true
332
- }
333
- },
334
- "syncable": true,
335
- "pluralName": "Users",
336
- "attributes": [
337
- {
338
- "type": "model",
339
- "properties": {}
340
- },
341
- {
342
- "type": "key",
343
- "properties": {
344
- "name": "byCognitoId",
345
- "queryField": "getUserByCognitoId",
346
- "fields": [
347
- "cognitoId"
348
- ]
349
- }
350
- },
351
- {
352
- "type": "key",
353
- "properties": {
354
- "name": "byTenantId",
355
- "fields": [
356
- "tenantId"
357
- ]
358
- }
359
- },
360
- {
361
- "type": "auth",
362
- "properties": {
363
- "rules": [
364
- {
365
- "allow": "private",
366
- "operations": [
367
- "read"
368
- ]
369
- },
370
- {
371
- "provider": "userPools",
372
- "ownerField": "cognitoId",
373
- "allow": "owner",
374
- "operations": [
375
- "read",
376
- "update"
377
- ],
378
- "identityClaim": "cognito:username"
379
- },
380
- {
381
- "groupClaim": "cognito:groups",
382
- "provider": "userPools",
383
- "allow": "groups",
384
- "groups": [
385
- "ADMIN"
386
- ],
387
- "operations": [
388
- "read",
389
- "update"
390
- ]
391
- }
392
- ]
393
- }
394
- }
395
- ]
396
- },
397
- "PossibleRiderResponsibilities": {
398
- "name": "PossibleRiderResponsibilities",
399
- "fields": {
400
- "id": {
401
- "name": "id",
402
- "isArray": false,
403
- "type": "ID",
404
- "isRequired": true,
405
- "attributes": []
406
- },
407
- "tenantId": {
408
- "name": "tenantId",
409
- "isArray": false,
410
- "type": "ID",
411
- "isRequired": true,
412
- "attributes": []
413
- },
414
- "user": {
415
- "name": "user",
416
- "isArray": false,
417
- "type": {
418
- "model": "User"
419
- },
420
- "isRequired": true,
421
- "attributes": [],
422
- "association": {
423
- "connectionType": "BELONGS_TO",
424
- "targetName": "userPossibleRiderResponsibilitiesId"
425
- }
426
- },
427
- "riderResponsibility": {
428
- "name": "riderResponsibility",
429
- "isArray": false,
430
- "type": {
431
- "model": "RiderResponsibility"
432
- },
433
- "isRequired": true,
434
- "attributes": [],
435
- "association": {
436
- "connectionType": "BELONGS_TO",
437
- "targetName": "riderResponsibilityPossibleUsersId"
438
- }
439
- },
440
- "createdAt": {
441
- "name": "createdAt",
442
- "isArray": false,
443
- "type": "AWSDateTime",
444
- "isRequired": false,
445
- "attributes": [],
446
- "isReadOnly": true
447
- },
448
- "updatedAt": {
449
- "name": "updatedAt",
450
- "isArray": false,
451
- "type": "AWSDateTime",
452
- "isRequired": false,
453
- "attributes": [],
454
- "isReadOnly": true
455
- }
456
- },
457
- "syncable": true,
458
- "pluralName": "PossibleRiderResponsibilities",
459
- "attributes": [
460
- {
461
- "type": "model",
462
- "properties": {}
463
- },
464
- {
465
- "type": "key",
466
- "properties": {
467
- "name": "byTenantId",
468
- "fields": [
469
- "tenantId"
470
- ]
471
- }
472
- },
473
- {
474
- "type": "auth",
475
- "properties": {
476
- "rules": [
477
- {
478
- "allow": "private",
479
- "operations": [
480
- "read"
481
- ]
482
- },
483
- {
484
- "groupClaim": "cognito:groups",
485
- "provider": "userPools",
486
- "allow": "groups",
487
- "groups": [
488
- "ADMIN"
489
- ],
490
- "operations": [
491
- "create",
492
- "read",
493
- "delete"
494
- ]
495
- }
496
- ]
497
- }
498
- }
499
- ]
500
- },
501
- "Vehicle": {
502
- "name": "Vehicle",
503
- "fields": {
504
- "id": {
505
- "name": "id",
506
- "isArray": false,
507
- "type": "ID",
508
- "isRequired": true,
509
- "attributes": []
510
- },
511
- "tenantId": {
512
- "name": "tenantId",
513
- "isArray": false,
514
- "type": "ID",
515
- "isRequired": true,
516
- "attributes": []
517
- },
518
- "createdBy": {
519
- "name": "createdBy",
520
- "isArray": false,
521
- "type": {
522
- "model": "User"
523
- },
524
- "isRequired": false,
525
- "attributes": [],
526
- "association": {
527
- "connectionType": "BELONGS_TO",
528
- "targetName": "userCreatedVehiclesId"
529
- }
530
- },
531
- "name": {
532
- "name": "name",
533
- "isArray": false,
534
- "type": "String",
535
- "isRequired": false,
536
- "attributes": []
537
- },
538
- "manufacturer": {
539
- "name": "manufacturer",
540
- "isArray": false,
541
- "type": "String",
542
- "isRequired": false,
543
- "attributes": []
544
- },
545
- "model": {
546
- "name": "model",
547
- "isArray": false,
548
- "type": "String",
549
- "isRequired": false,
550
- "attributes": []
551
- },
552
- "dateOfManufacture": {
553
- "name": "dateOfManufacture",
554
- "isArray": false,
555
- "type": "AWSDate",
556
- "isRequired": false,
557
- "attributes": []
558
- },
559
- "dateOfRegistration": {
560
- "name": "dateOfRegistration",
561
- "isArray": false,
562
- "type": "AWSDate",
563
- "isRequired": false,
564
- "attributes": []
565
- },
566
- "assignments": {
567
- "name": "assignments",
568
- "isArray": true,
569
- "type": {
570
- "model": "VehicleAssignment"
571
- },
572
- "isRequired": false,
573
- "attributes": [],
574
- "isArrayNullable": true,
575
- "association": {
576
- "connectionType": "HAS_MANY",
577
- "associatedWith": "vehicleAssignmentsId"
578
- }
579
- },
580
- "comments": {
581
- "name": "comments",
582
- "isArray": true,
583
- "type": {
584
- "model": "Comment"
585
- },
586
- "isRequired": false,
587
- "attributes": [],
588
- "isArrayNullable": true,
589
- "association": {
590
- "connectionType": "HAS_MANY",
591
- "associatedWith": "parentId"
592
- }
593
- },
594
- "disabled": {
595
- "name": "disabled",
596
- "isArray": false,
597
- "type": "Int",
598
- "isRequired": false,
599
- "attributes": []
600
- },
601
- "createdAt": {
602
- "name": "createdAt",
603
- "isArray": false,
604
- "type": "AWSDateTime",
605
- "isRequired": false,
606
- "attributes": [],
607
- "isReadOnly": true
608
- },
609
- "updatedAt": {
610
- "name": "updatedAt",
611
- "isArray": false,
612
- "type": "AWSDateTime",
613
- "isRequired": false,
614
- "attributes": [],
615
- "isReadOnly": true
616
- }
617
- },
618
- "syncable": true,
619
- "pluralName": "Vehicles",
620
- "attributes": [
621
- {
622
- "type": "model",
623
- "properties": {}
624
- },
625
- {
626
- "type": "key",
627
- "properties": {
628
- "name": "byTenantId",
629
- "fields": [
630
- "tenantId"
631
- ]
632
- }
633
- },
634
- {
635
- "type": "auth",
636
- "properties": {
637
- "rules": [
638
- {
639
- "allow": "private",
640
- "operations": [
641
- "read"
642
- ]
643
- },
644
- {
645
- "groupClaim": "cognito:groups",
646
- "provider": "userPools",
647
- "allow": "groups",
648
- "groups": [
649
- "ADMIN"
650
- ],
651
- "operations": [
652
- "create",
653
- "read",
654
- "update"
655
- ]
656
- }
657
- ]
658
- }
659
- }
660
- ]
661
- },
662
- "VehicleAssignment": {
663
- "name": "VehicleAssignment",
664
- "fields": {
665
- "id": {
666
- "name": "id",
667
- "isArray": false,
668
- "type": "ID",
669
- "isRequired": true,
670
- "attributes": []
671
- },
672
- "tenantId": {
673
- "name": "tenantId",
674
- "isArray": false,
675
- "type": "ID",
676
- "isRequired": true,
677
- "attributes": []
678
- },
679
- "vehicle": {
680
- "name": "vehicle",
681
- "isArray": false,
682
- "type": {
683
- "model": "Vehicle"
684
- },
685
- "isRequired": true,
686
- "attributes": [],
687
- "association": {
688
- "connectionType": "BELONGS_TO",
689
- "targetName": "vehicleAssignmentsId"
690
- }
691
- },
692
- "assignee": {
693
- "name": "assignee",
694
- "isArray": false,
695
- "type": {
696
- "model": "User"
697
- },
698
- "isRequired": true,
699
- "attributes": [],
700
- "association": {
701
- "connectionType": "BELONGS_TO",
702
- "targetName": "userVehicleAssignmentsId"
703
- }
704
- },
705
- "createdAt": {
706
- "name": "createdAt",
707
- "isArray": false,
708
- "type": "AWSDateTime",
709
- "isRequired": false,
710
- "attributes": [],
711
- "isReadOnly": true
712
- },
713
- "updatedAt": {
714
- "name": "updatedAt",
715
- "isArray": false,
716
- "type": "AWSDateTime",
717
- "isRequired": false,
718
- "attributes": [],
719
- "isReadOnly": true
720
- }
721
- },
722
- "syncable": true,
723
- "pluralName": "VehicleAssignments",
724
- "attributes": [
725
- {
726
- "type": "model",
727
- "properties": {}
728
- },
729
- {
730
- "type": "key",
731
- "properties": {
732
- "name": "byTenantId",
733
- "fields": [
734
- "tenantId"
735
- ]
736
- }
737
- },
738
- {
739
- "type": "auth",
740
- "properties": {
741
- "rules": [
742
- {
743
- "allow": "private",
744
- "operations": [
745
- "read"
746
- ]
747
- },
748
- {
749
- "groupClaim": "cognito:groups",
750
- "provider": "userPools",
751
- "allow": "groups",
752
- "groups": [
753
- "ADMIN",
754
- "COORDINATOR",
755
- "RIDER"
756
- ],
757
- "operations": [
758
- "create",
759
- "read",
760
- "delete"
761
- ]
762
- }
763
- ]
764
- }
765
- }
766
- ]
767
- },
768
- "Location": {
769
- "name": "Location",
770
- "fields": {
771
- "id": {
772
- "name": "id",
773
- "isArray": false,
774
- "type": "ID",
775
- "isRequired": true,
776
- "attributes": []
777
- },
778
- "tenantId": {
779
- "name": "tenantId",
780
- "isArray": false,
781
- "type": "ID",
782
- "isRequired": true,
783
- "attributes": []
784
- },
785
- "createdBy": {
786
- "name": "createdBy",
787
- "isArray": false,
788
- "type": {
789
- "model": "User"
790
- },
791
- "isRequired": false,
792
- "attributes": [],
793
- "association": {
794
- "connectionType": "BELONGS_TO",
795
- "targetName": "userCreatedLocationsId"
796
- }
797
- },
798
- "name": {
799
- "name": "name",
800
- "isArray": false,
801
- "type": "String",
802
- "isRequired": false,
803
- "attributes": []
804
- },
805
- "listed": {
806
- "name": "listed",
807
- "isArray": false,
808
- "type": "Int",
809
- "isRequired": false,
810
- "attributes": []
811
- },
812
- "contact": {
813
- "name": "contact",
814
- "isArray": false,
815
- "type": {
816
- "nonModel": "AddressAndContactDetails"
817
- },
818
- "isRequired": false,
819
- "attributes": []
820
- },
821
- "ward": {
822
- "name": "ward",
823
- "isArray": false,
824
- "type": "String",
825
- "isRequired": false,
826
- "attributes": []
827
- },
828
- "line1": {
829
- "name": "line1",
830
- "isArray": false,
831
- "type": "String",
832
- "isRequired": false,
833
- "attributes": []
834
- },
835
- "line2": {
836
- "name": "line2",
837
- "isArray": false,
838
- "type": "String",
839
- "isRequired": false,
840
- "attributes": []
841
- },
842
- "line3": {
843
- "name": "line3",
844
- "isArray": false,
845
- "type": "String",
846
- "isRequired": false,
847
- "attributes": []
848
- },
849
- "town": {
850
- "name": "town",
851
- "isArray": false,
852
- "type": "String",
853
- "isRequired": false,
854
- "attributes": []
855
- },
856
- "county": {
857
- "name": "county",
858
- "isArray": false,
859
- "type": "String",
860
- "isRequired": false,
861
- "attributes": []
862
- },
863
- "state": {
864
- "name": "state",
865
- "isArray": false,
866
- "type": "String",
867
- "isRequired": false,
868
- "attributes": []
869
- },
870
- "country": {
871
- "name": "country",
872
- "isArray": false,
873
- "type": "String",
874
- "isRequired": false,
875
- "attributes": []
876
- },
877
- "postcode": {
878
- "name": "postcode",
879
- "isArray": false,
880
- "type": "String",
881
- "isRequired": false,
882
- "attributes": []
883
- },
884
- "what3words": {
885
- "name": "what3words",
886
- "isArray": false,
887
- "type": "String",
888
- "isRequired": false,
889
- "attributes": []
890
- },
891
- "tasksAsPickUp": {
892
- "name": "tasksAsPickUp",
893
- "isArray": true,
894
- "type": {
895
- "model": "Task"
896
- },
897
- "isRequired": false,
898
- "attributes": [],
899
- "isArrayNullable": true,
900
- "association": {
901
- "connectionType": "HAS_MANY",
902
- "associatedWith": "pickUpLocation"
903
- }
904
- },
905
- "tasksAsDropOff": {
906
- "name": "tasksAsDropOff",
907
- "isArray": true,
908
- "type": {
909
- "model": "Task"
910
- },
911
- "isRequired": false,
912
- "attributes": [],
913
- "isArrayNullable": true,
914
- "association": {
915
- "connectionType": "HAS_MANY",
916
- "associatedWith": "dropOffLocation"
917
- }
918
- },
919
- "taskAsEstablishment": {
920
- "name": "taskAsEstablishment",
921
- "isArray": true,
922
- "type": {
923
- "model": "Task"
924
- },
925
- "isRequired": false,
926
- "attributes": [],
927
- "isArrayNullable": true,
928
- "association": {
929
- "connectionType": "HAS_MANY",
930
- "associatedWith": "establishmentLocation"
931
- }
932
- },
933
- "scheduledTasksAsPickUp": {
934
- "name": "scheduledTasksAsPickUp",
935
- "isArray": true,
936
- "type": {
937
- "model": "ScheduledTask"
938
- },
939
- "isRequired": false,
940
- "attributes": [],
941
- "isArrayNullable": true,
942
- "association": {
943
- "connectionType": "HAS_MANY",
944
- "associatedWith": "pickUpLocation"
945
- }
946
- },
947
- "scheduledTasksAsDropOff": {
948
- "name": "scheduledTasksAsDropOff",
949
- "isArray": true,
950
- "type": {
951
- "model": "ScheduledTask"
952
- },
953
- "isRequired": false,
954
- "attributes": [],
955
- "isArrayNullable": true,
956
- "association": {
957
- "connectionType": "HAS_MANY",
958
- "associatedWith": "dropOffLocation"
959
- }
960
- },
961
- "scheduledTasksAsEstablishment": {
962
- "name": "scheduledTasksAsEstablishment",
963
- "isArray": true,
964
- "type": {
965
- "model": "ScheduledTask"
966
- },
967
- "isRequired": false,
968
- "attributes": [],
969
- "isArrayNullable": true,
970
- "association": {
971
- "connectionType": "HAS_MANY",
972
- "associatedWith": "establishmentLocation"
973
- }
974
- },
975
- "comments": {
976
- "name": "comments",
977
- "isArray": true,
978
- "type": {
979
- "model": "Comment"
980
- },
981
- "isRequired": false,
982
- "attributes": [],
983
- "isArrayNullable": true,
984
- "association": {
985
- "connectionType": "HAS_MANY",
986
- "associatedWith": "parentId"
987
- }
988
- },
989
- "disabled": {
990
- "name": "disabled",
991
- "isArray": false,
992
- "type": "Int",
993
- "isRequired": false,
994
- "attributes": []
995
- },
996
- "googleMapsPlaceId": {
997
- "name": "googleMapsPlaceId",
998
- "isArray": false,
999
- "type": "String",
1000
- "isRequired": false,
1001
- "attributes": []
1002
- },
1003
- "archived": {
1004
- "name": "archived",
1005
- "isArray": false,
1006
- "type": "Int",
1007
- "isRequired": false,
1008
- "attributes": []
1009
- },
1010
- "createdAt": {
1011
- "name": "createdAt",
1012
- "isArray": false,
1013
- "type": "AWSDateTime",
1014
- "isRequired": false,
1015
- "attributes": [],
1016
- "isReadOnly": true
1017
- },
1018
- "updatedAt": {
1019
- "name": "updatedAt",
1020
- "isArray": false,
1021
- "type": "AWSDateTime",
1022
- "isRequired": false,
1023
- "attributes": [],
1024
- "isReadOnly": true
1025
- }
1026
- },
1027
- "syncable": true,
1028
- "pluralName": "Locations",
1029
- "attributes": [
1030
- {
1031
- "type": "model",
1032
- "properties": {}
1033
- },
1034
- {
1035
- "type": "key",
1036
- "properties": {
1037
- "name": "byTenantId",
1038
- "fields": [
1039
- "tenantId"
1040
- ]
1041
- }
1042
- },
1043
- {
1044
- "type": "key",
1045
- "properties": {
1046
- "name": "byArchived",
1047
- "fields": [
1048
- "archived"
1049
- ]
1050
- }
1051
- },
1052
- {
1053
- "type": "auth",
1054
- "properties": {
1055
- "rules": [
1056
- {
1057
- "allow": "private",
1058
- "operations": [
1059
- "read"
1060
- ]
1061
- },
1062
- {
1063
- "groupClaim": "cognito:groups",
1064
- "provider": "userPools",
1065
- "allow": "groups",
1066
- "groups": [
1067
- "ADMIN",
1068
- "COORDINATOR"
1069
- ],
1070
- "operations": [
1071
- "create",
1072
- "read",
1073
- "update",
1074
- "delete"
1075
- ]
1076
- }
1077
- ]
1078
- }
1079
- }
1080
- ]
1081
- },
1082
- "Task": {
1083
- "name": "Task",
1084
- "fields": {
1085
- "id": {
1086
- "name": "id",
1087
- "isArray": false,
1088
- "type": "ID",
1089
- "isRequired": true,
1090
- "attributes": []
1091
- },
1092
- "tenantId": {
1093
- "name": "tenantId",
1094
- "isArray": false,
1095
- "type": "ID",
1096
- "isRequired": true,
1097
- "attributes": []
1098
- },
1099
- "createdAt": {
1100
- "name": "createdAt",
1101
- "isArray": false,
1102
- "type": "String",
1103
- "isRequired": false,
1104
- "attributes": []
1105
- },
1106
- "createdBy": {
1107
- "name": "createdBy",
1108
- "isArray": false,
1109
- "type": {
1110
- "model": "User"
1111
- },
1112
- "isRequired": false,
1113
- "attributes": [],
1114
- "association": {
1115
- "connectionType": "BELONGS_TO",
1116
- "targetName": "userCreatedTasksId"
1117
- }
1118
- },
1119
- "dateCreated": {
1120
- "name": "dateCreated",
1121
- "isArray": false,
1122
- "type": "AWSDate",
1123
- "isRequired": true,
1124
- "attributes": []
1125
- },
1126
- "dateCompleted": {
1127
- "name": "dateCompleted",
1128
- "isArray": false,
1129
- "type": "AWSDate",
1130
- "isRequired": false,
1131
- "attributes": []
1132
- },
1133
- "timeOfCall": {
1134
- "name": "timeOfCall",
1135
- "isArray": false,
1136
- "type": "AWSDateTime",
1137
- "isRequired": false,
1138
- "attributes": []
1139
- },
1140
- "timePickedUp": {
1141
- "name": "timePickedUp",
1142
- "isArray": false,
1143
- "type": "AWSDateTime",
1144
- "isRequired": false,
1145
- "attributes": []
1146
- },
1147
- "timePickedUpSenderName": {
1148
- "name": "timePickedUpSenderName",
1149
- "isArray": false,
1150
- "type": "String",
1151
- "isRequired": false,
1152
- "attributes": []
1153
- },
1154
- "timeDroppedOff": {
1155
- "name": "timeDroppedOff",
1156
- "isArray": false,
1157
- "type": "AWSDateTime",
1158
- "isRequired": false,
1159
- "attributes": []
1160
- },
1161
- "timeDroppedOffRecipientName": {
1162
- "name": "timeDroppedOffRecipientName",
1163
- "isArray": false,
1164
- "type": "String",
1165
- "isRequired": false,
1166
- "attributes": []
1167
- },
1168
- "timeCancelled": {
1169
- "name": "timeCancelled",
1170
- "isArray": false,
1171
- "type": "AWSDateTime",
1172
- "isRequired": false,
1173
- "attributes": []
1174
- },
1175
- "timeRejected": {
1176
- "name": "timeRejected",
1177
- "isArray": false,
1178
- "type": "AWSDateTime",
1179
- "isRequired": false,
1180
- "attributes": []
1181
- },
1182
- "timeRiderHome": {
1183
- "name": "timeRiderHome",
1184
- "isArray": false,
1185
- "type": "AWSDateTime",
1186
- "isRequired": false,
1187
- "attributes": []
1188
- },
1189
- "requesterContact": {
1190
- "name": "requesterContact",
1191
- "isArray": false,
1192
- "type": {
1193
- "nonModel": "AddressAndContactDetails"
1194
- },
1195
- "isRequired": false,
1196
- "attributes": []
1197
- },
1198
- "pickUpLocation": {
1199
- "name": "pickUpLocation",
1200
- "isArray": false,
1201
- "type": {
1202
- "model": "Location"
1203
- },
1204
- "isRequired": false,
1205
- "attributes": [],
1206
- "association": {
1207
- "connectionType": "BELONGS_TO",
1208
- "targetName": "pickUpLocationId"
1209
- }
1210
- },
1211
- "dropOffLocation": {
1212
- "name": "dropOffLocation",
1213
- "isArray": false,
1214
- "type": {
1215
- "model": "Location"
1216
- },
1217
- "isRequired": false,
1218
- "attributes": [],
1219
- "association": {
1220
- "connectionType": "BELONGS_TO",
1221
- "targetName": "dropOffLocationId"
1222
- }
1223
- },
1224
- "establishmentLocation": {
1225
- "name": "establishmentLocation",
1226
- "isArray": false,
1227
- "type": {
1228
- "model": "Location"
1229
- },
1230
- "isRequired": false,
1231
- "attributes": [],
1232
- "association": {
1233
- "connectionType": "BELONGS_TO",
1234
- "targetName": "establishmentLocationId"
1235
- }
1236
- },
1237
- "riderResponsibility": {
1238
- "name": "riderResponsibility",
1239
- "isArray": false,
1240
- "type": "String",
1241
- "isRequired": false,
1242
- "attributes": []
1243
- },
1244
- "assignees": {
1245
- "name": "assignees",
1246
- "isArray": true,
1247
- "type": {
1248
- "model": "TaskAssignee"
1249
- },
1250
- "isRequired": false,
1251
- "attributes": [],
1252
- "isArrayNullable": true,
1253
- "association": {
1254
- "connectionType": "HAS_MANY",
1255
- "associatedWith": "taskAssigneesId"
1256
- }
1257
- },
1258
- "priority": {
1259
- "name": "priority",
1260
- "isArray": false,
1261
- "type": {
1262
- "enum": "Priority"
1263
- },
1264
- "isRequired": false,
1265
- "attributes": []
1266
- },
1267
- "deliverables": {
1268
- "name": "deliverables",
1269
- "isArray": true,
1270
- "type": {
1271
- "model": "Deliverable"
1272
- },
1273
- "isRequired": false,
1274
- "attributes": [],
1275
- "isArrayNullable": true,
1276
- "association": {
1277
- "connectionType": "HAS_MANY",
1278
- "associatedWith": "taskDeliverablesId"
1279
- }
1280
- },
1281
- "comments": {
1282
- "name": "comments",
1283
- "isArray": true,
1284
- "type": {
1285
- "model": "Comment"
1286
- },
1287
- "isRequired": false,
1288
- "attributes": [],
1289
- "isArrayNullable": true,
1290
- "association": {
1291
- "connectionType": "HAS_MANY",
1292
- "associatedWith": "parentId"
1293
- }
1294
- },
1295
- "status": {
1296
- "name": "status",
1297
- "isArray": false,
1298
- "type": {
1299
- "enum": "TaskStatus"
1300
- },
1301
- "isRequired": false,
1302
- "attributes": []
1303
- },
1304
- "isRiderUsingOwnVehicle": {
1305
- "name": "isRiderUsingOwnVehicle",
1306
- "isArray": false,
1307
- "type": "Int",
1308
- "isRequired": false,
1309
- "attributes": []
1310
- },
1311
- "archived": {
1312
- "name": "archived",
1313
- "isArray": false,
1314
- "type": "Int",
1315
- "isRequired": false,
1316
- "attributes": []
1317
- },
1318
- "pickUpSchedule": {
1319
- "name": "pickUpSchedule",
1320
- "isArray": false,
1321
- "type": {
1322
- "nonModel": "Schedule"
1323
- },
1324
- "isRequired": false,
1325
- "attributes": []
1326
- },
1327
- "dropOffSchedule": {
1328
- "name": "dropOffSchedule",
1329
- "isArray": false,
1330
- "type": {
1331
- "nonModel": "Schedule"
1332
- },
1333
- "isRequired": false,
1334
- "attributes": []
1335
- },
1336
- "updatedAt": {
1337
- "name": "updatedAt",
1338
- "isArray": false,
1339
- "type": "AWSDateTime",
1340
- "isRequired": false,
1341
- "attributes": [],
1342
- "isReadOnly": true
1343
- }
1344
- },
1345
- "syncable": true,
1346
- "pluralName": "Tasks",
1347
- "attributes": [
1348
- {
1349
- "type": "model",
1350
- "properties": {}
1351
- },
1352
- {
1353
- "type": "key",
1354
- "properties": {
1355
- "name": "byTenantId",
1356
- "queryField": "listTasksByTenantId",
1357
- "fields": [
1358
- "tenantId",
1359
- "createdAt"
1360
- ]
1361
- }
1362
- },
1363
- {
1364
- "type": "key",
1365
- "properties": {
1366
- "name": "byPickUpLocation",
1367
- "fields": [
1368
- "pickUpLocationId"
1369
- ]
1370
- }
1371
- },
1372
- {
1373
- "type": "key",
1374
- "properties": {
1375
- "name": "byDropOffLocation",
1376
- "fields": [
1377
- "dropOffLocationId"
1378
- ]
1379
- }
1380
- },
1381
- {
1382
- "type": "key",
1383
- "properties": {
1384
- "name": "byEstasblishmentLocation",
1385
- "fields": [
1386
- "establishmentLocationId"
1387
- ]
1388
- }
1389
- },
1390
- {
1391
- "type": "key",
1392
- "properties": {
1393
- "name": "byStatus",
1394
- "queryField": "tasksByStatus",
1395
- "fields": [
1396
- "status"
1397
- ]
1398
- }
1399
- },
1400
- {
1401
- "type": "key",
1402
- "properties": {
1403
- "name": "byArchivedStatus",
1404
- "queryField": "tasksByArchivedStatus",
1405
- "fields": [
1406
- "archived",
1407
- "status"
1408
- ]
1409
- }
1410
- },
1411
- {
1412
- "type": "auth",
1413
- "properties": {
1414
- "rules": [
1415
- {
1416
- "allow": "private",
1417
- "operations": [
1418
- "read"
1419
- ]
1420
- },
1421
- {
1422
- "groupClaim": "cognito:groups",
1423
- "provider": "userPools",
1424
- "allow": "groups",
1425
- "groups": [
1426
- "COORDINATOR",
1427
- "RIDER",
1428
- "ADMIN"
1429
- ],
1430
- "operations": [
1431
- "create",
1432
- "read",
1433
- "update"
1434
- ]
1435
- }
1436
- ]
1437
- }
1438
- }
1439
- ]
1440
- },
1441
- "TaskAssignee": {
1442
- "name": "TaskAssignee",
1443
- "fields": {
1444
- "id": {
1445
- "name": "id",
1446
- "isArray": false,
1447
- "type": "ID",
1448
- "isRequired": true,
1449
- "attributes": []
1450
- },
1451
- "tenantId": {
1452
- "name": "tenantId",
1453
- "isArray": false,
1454
- "type": "ID",
1455
- "isRequired": true,
1456
- "attributes": []
1457
- },
1458
- "role": {
1459
- "name": "role",
1460
- "isArray": false,
1461
- "type": {
1462
- "enum": "Role"
1463
- },
1464
- "isRequired": true,
1465
- "attributes": []
1466
- },
1467
- "task": {
1468
- "name": "task",
1469
- "isArray": false,
1470
- "type": {
1471
- "model": "Task"
1472
- },
1473
- "isRequired": true,
1474
- "attributes": [],
1475
- "association": {
1476
- "connectionType": "BELONGS_TO",
1477
- "targetName": "taskAssigneesId"
1478
- }
1479
- },
1480
- "assignee": {
1481
- "name": "assignee",
1482
- "isArray": false,
1483
- "type": {
1484
- "model": "User"
1485
- },
1486
- "isRequired": true,
1487
- "attributes": [],
1488
- "association": {
1489
- "connectionType": "BELONGS_TO",
1490
- "targetName": "userAssignmentsId"
1491
- }
1492
- },
1493
- "archived": {
1494
- "name": "archived",
1495
- "isArray": false,
1496
- "type": "Int",
1497
- "isRequired": false,
1498
- "attributes": []
1499
- },
1500
- "createdAt": {
1501
- "name": "createdAt",
1502
- "isArray": false,
1503
- "type": "AWSDateTime",
1504
- "isRequired": false,
1505
- "attributes": [],
1506
- "isReadOnly": true
1507
- },
1508
- "updatedAt": {
1509
- "name": "updatedAt",
1510
- "isArray": false,
1511
- "type": "AWSDateTime",
1512
- "isRequired": false,
1513
- "attributes": [],
1514
- "isReadOnly": true
1515
- }
1516
- },
1517
- "syncable": true,
1518
- "pluralName": "TaskAssignees",
1519
- "attributes": [
1520
- {
1521
- "type": "model",
1522
- "properties": {}
1523
- },
1524
- {
1525
- "type": "key",
1526
- "properties": {
1527
- "name": "byTenantId",
1528
- "fields": [
1529
- "tenantId"
1530
- ]
1531
- }
1532
- },
1533
- {
1534
- "type": "key",
1535
- "properties": {
1536
- "name": "byArchived",
1537
- "fields": [
1538
- "archived"
1539
- ]
1540
- }
1541
- },
1542
- {
1543
- "type": "auth",
1544
- "properties": {
1545
- "rules": [
1546
- {
1547
- "allow": "private",
1548
- "operations": [
1549
- "read"
1550
- ]
1551
- },
1552
- {
1553
- "groupClaim": "cognito:groups",
1554
- "provider": "userPools",
1555
- "allow": "groups",
1556
- "groups": [
1557
- "COORDINATOR",
1558
- "RIDER",
1559
- "ADMIN"
1560
- ],
1561
- "operations": [
1562
- "create",
1563
- "read",
1564
- "delete"
1565
- ]
1566
- }
1567
- ]
1568
- }
1569
- }
1570
- ]
1571
- },
1572
- "ScheduledTask": {
1573
- "name": "ScheduledTask",
1574
- "fields": {
1575
- "id": {
1576
- "name": "id",
1577
- "isArray": false,
1578
- "type": "ID",
1579
- "isRequired": true,
1580
- "attributes": []
1581
- },
1582
- "tenantId": {
1583
- "name": "tenantId",
1584
- "isArray": false,
1585
- "type": "ID",
1586
- "isRequired": true,
1587
- "attributes": []
1588
- },
1589
- "createdBy": {
1590
- "name": "createdBy",
1591
- "isArray": false,
1592
- "type": {
1593
- "model": "User"
1594
- },
1595
- "isRequired": false,
1596
- "attributes": [],
1597
- "association": {
1598
- "connectionType": "BELONGS_TO",
1599
- "targetName": "userCreatedScheduledTasksId"
1600
- }
1601
- },
1602
- "requesterContact": {
1603
- "name": "requesterContact",
1604
- "isArray": false,
1605
- "type": {
1606
- "nonModel": "AddressAndContactDetails"
1607
- },
1608
- "isRequired": false,
1609
- "attributes": []
1610
- },
1611
- "cronExpression": {
1612
- "name": "cronExpression",
1613
- "isArray": false,
1614
- "type": "String",
1615
- "isRequired": true,
1616
- "attributes": []
1617
- },
1618
- "pickUpLocation": {
1619
- "name": "pickUpLocation",
1620
- "isArray": false,
1621
- "type": {
1622
- "model": "Location"
1623
- },
1624
- "isRequired": false,
1625
- "attributes": [],
1626
- "association": {
1627
- "connectionType": "BELONGS_TO",
1628
- "targetName": "pickUpLocationId"
1629
- }
1630
- },
1631
- "dropOffLocation": {
1632
- "name": "dropOffLocation",
1633
- "isArray": false,
1634
- "type": {
1635
- "model": "Location"
1636
- },
1637
- "isRequired": false,
1638
- "attributes": [],
1639
- "association": {
1640
- "connectionType": "BELONGS_TO",
1641
- "targetName": "dropOffLocationId"
1642
- }
1643
- },
1644
- "establishmentLocation": {
1645
- "name": "establishmentLocation",
1646
- "isArray": false,
1647
- "type": {
1648
- "model": "Location"
1649
- },
1650
- "isRequired": false,
1651
- "attributes": [],
1652
- "association": {
1653
- "connectionType": "BELONGS_TO",
1654
- "targetName": "establishmentLocationId"
1655
- }
1656
- },
1657
- "priority": {
1658
- "name": "priority",
1659
- "isArray": false,
1660
- "type": {
1661
- "enum": "Priority"
1662
- },
1663
- "isRequired": false,
1664
- "attributes": []
1665
- },
1666
- "deliverables": {
1667
- "name": "deliverables",
1668
- "isArray": true,
1669
- "type": {
1670
- "model": "Deliverable"
1671
- },
1672
- "isRequired": false,
1673
- "attributes": [],
1674
- "isArrayNullable": true,
1675
- "association": {
1676
- "connectionType": "HAS_MANY",
1677
- "associatedWith": "scheduledTaskDeliverablesId"
1678
- }
1679
- },
1680
- "disabled": {
1681
- "name": "disabled",
1682
- "isArray": false,
1683
- "type": "Int",
1684
- "isRequired": false,
1685
- "attributes": []
1686
- },
1687
- "pickUpSchedule": {
1688
- "name": "pickUpSchedule",
1689
- "isArray": false,
1690
- "type": {
1691
- "nonModel": "Schedule"
1692
- },
1693
- "isRequired": false,
1694
- "attributes": []
1695
- },
1696
- "dropOffSchedule": {
1697
- "name": "dropOffSchedule",
1698
- "isArray": false,
1699
- "type": {
1700
- "nonModel": "Schedule"
1701
- },
1702
- "isRequired": false,
1703
- "attributes": []
1704
- },
1705
- "createdAt": {
1706
- "name": "createdAt",
1707
- "isArray": false,
1708
- "type": "AWSDateTime",
1709
- "isRequired": false,
1710
- "attributes": [],
1711
- "isReadOnly": true
1712
- },
1713
- "updatedAt": {
1714
- "name": "updatedAt",
1715
- "isArray": false,
1716
- "type": "AWSDateTime",
1717
- "isRequired": false,
1718
- "attributes": [],
1719
- "isReadOnly": true
1720
- }
1721
- },
1722
- "syncable": true,
1723
- "pluralName": "ScheduledTasks",
1724
- "attributes": [
1725
- {
1726
- "type": "model",
1727
- "properties": {}
1728
- },
1729
- {
1730
- "type": "key",
1731
- "properties": {
1732
- "name": "byTenantId",
1733
- "fields": [
1734
- "tenantId"
1735
- ]
1736
- }
1737
- },
1738
- {
1739
- "type": "key",
1740
- "properties": {
1741
- "name": "scheduledTasksByPickUpLocation",
1742
- "fields": [
1743
- "pickUpLocationId"
1744
- ]
1745
- }
1746
- },
1747
- {
1748
- "type": "key",
1749
- "properties": {
1750
- "name": "scheduledTasksByDropOffLocation",
1751
- "fields": [
1752
- "dropOffLocationId"
1753
- ]
1754
- }
1755
- },
1756
- {
1757
- "type": "key",
1758
- "properties": {
1759
- "name": "scheduledTasksByEstasblishmentLocation",
1760
- "fields": [
1761
- "establishmentLocationId"
1762
- ]
1763
- }
1764
- },
1765
- {
1766
- "type": "auth",
1767
- "properties": {
1768
- "rules": [
1769
- {
1770
- "allow": "private",
1771
- "operations": [
1772
- "read"
1773
- ]
1774
- },
1775
- {
1776
- "groupClaim": "cognito:groups",
1777
- "provider": "userPools",
1778
- "allow": "groups",
1779
- "groups": [
1780
- "ADMIN"
1781
- ],
1782
- "operations": [
1783
- "create",
1784
- "read",
1785
- "delete",
1786
- "update"
1787
- ]
1788
- }
1789
- ]
1790
- }
1791
- }
1792
- ]
1793
- },
1794
- "Comment": {
1795
- "name": "Comment",
1796
- "fields": {
1797
- "id": {
1798
- "name": "id",
1799
- "isArray": false,
1800
- "type": "ID",
1801
- "isRequired": true,
1802
- "attributes": []
1803
- },
1804
- "parentId": {
1805
- "name": "parentId",
1806
- "isArray": false,
1807
- "type": "ID",
1808
- "isRequired": false,
1809
- "attributes": []
1810
- },
1811
- "owner": {
1812
- "name": "owner",
1813
- "isArray": false,
1814
- "type": "String",
1815
- "isRequired": false,
1816
- "attributes": []
1817
- },
1818
- "tenantId": {
1819
- "name": "tenantId",
1820
- "isArray": false,
1821
- "type": "ID",
1822
- "isRequired": true,
1823
- "attributes": []
1824
- },
1825
- "body": {
1826
- "name": "body",
1827
- "isArray": false,
1828
- "type": "String",
1829
- "isRequired": false,
1830
- "attributes": []
1831
- },
1832
- "author": {
1833
- "name": "author",
1834
- "isArray": false,
1835
- "type": {
1836
- "model": "User"
1837
- },
1838
- "isRequired": false,
1839
- "attributes": [],
1840
- "association": {
1841
- "connectionType": "BELONGS_TO",
1842
- "targetName": "userCommentsId"
1843
- }
1844
- },
1845
- "visibility": {
1846
- "name": "visibility",
1847
- "isArray": false,
1848
- "type": {
1849
- "enum": "CommentVisibility"
1850
- },
1851
- "isRequired": false,
1852
- "attributes": []
1853
- },
1854
- "archived": {
1855
- "name": "archived",
1856
- "isArray": false,
1857
- "type": "Int",
1858
- "isRequired": false,
1859
- "attributes": []
1860
- },
1861
- "createdAt": {
1862
- "name": "createdAt",
1863
- "isArray": false,
1864
- "type": "AWSDateTime",
1865
- "isRequired": false,
1866
- "attributes": [],
1867
- "isReadOnly": true
1868
- },
1869
- "updatedAt": {
1870
- "name": "updatedAt",
1871
- "isArray": false,
1872
- "type": "AWSDateTime",
1873
- "isRequired": false,
1874
- "attributes": [],
1875
- "isReadOnly": true
1876
- }
1877
- },
1878
- "syncable": true,
1879
- "pluralName": "Comments",
1880
- "attributes": [
1881
- {
1882
- "type": "model",
1883
- "properties": {}
1884
- },
1885
- {
1886
- "type": "key",
1887
- "properties": {
1888
- "name": "byParent",
1889
- "fields": [
1890
- "parentId"
1891
- ]
1892
- }
1893
- },
1894
- {
1895
- "type": "key",
1896
- "properties": {
1897
- "name": "byTenantId",
1898
- "fields": [
1899
- "tenantId"
1900
- ]
1901
- }
1902
- },
1903
- {
1904
- "type": "key",
1905
- "properties": {
1906
- "name": "byArchived",
1907
- "fields": [
1908
- "archived"
1909
- ]
1910
- }
1911
- },
1912
- {
1913
- "type": "auth",
1914
- "properties": {
1915
- "rules": [
1916
- {
1917
- "groupClaim": "cognito:groups",
1918
- "provider": "userPools",
1919
- "allow": "groups",
1920
- "groups": [
1921
- "USER"
1922
- ],
1923
- "operations": [
1924
- "read"
1925
- ]
1926
- },
1927
- {
1928
- "provider": "userPools",
1929
- "ownerField": "owner",
1930
- "allow": "owner",
1931
- "operations": [
1932
- "create",
1933
- "read",
1934
- "delete",
1935
- "update"
1936
- ],
1937
- "identityClaim": "cognito:username"
1938
- },
1939
- {
1940
- "groupClaim": "cognito:groups",
1941
- "provider": "userPools",
1942
- "allow": "groups",
1943
- "groups": [
1944
- "ADMIN"
1945
- ],
1946
- "operations": [
1947
- "create",
1948
- "read",
1949
- "delete",
1950
- "update"
1951
- ]
1952
- }
1953
- ]
1954
- }
1955
- }
1956
- ]
1957
- },
1958
- "DeliverableType": {
1959
- "name": "DeliverableType",
1960
- "fields": {
1961
- "id": {
1962
- "name": "id",
1963
- "isArray": false,
1964
- "type": "ID",
1965
- "isRequired": true,
1966
- "attributes": []
1967
- },
1968
- "label": {
1969
- "name": "label",
1970
- "isArray": false,
1971
- "type": "String",
1972
- "isRequired": true,
1973
- "attributes": []
1974
- },
1975
- "tenantId": {
1976
- "name": "tenantId",
1977
- "isArray": false,
1978
- "type": "ID",
1979
- "isRequired": true,
1980
- "attributes": []
1981
- },
1982
- "icon": {
1983
- "name": "icon",
1984
- "isArray": false,
1985
- "type": {
1986
- "enum": "DeliverableTypeIcon"
1987
- },
1988
- "isRequired": false,
1989
- "attributes": []
1990
- },
1991
- "defaultUnit": {
1992
- "name": "defaultUnit",
1993
- "isArray": false,
1994
- "type": {
1995
- "enum": "DeliverableUnit"
1996
- },
1997
- "isRequired": false,
1998
- "attributes": []
1999
- },
2000
- "deliverables": {
2001
- "name": "deliverables",
2002
- "isArray": true,
2003
- "type": {
2004
- "model": "Deliverable"
2005
- },
2006
- "isRequired": false,
2007
- "attributes": [],
2008
- "isArrayNullable": true,
2009
- "association": {
2010
- "connectionType": "HAS_MANY",
2011
- "associatedWith": "deliverableTypeDeliverablesId"
2012
- }
2013
- },
2014
- "tags": {
2015
- "name": "tags",
2016
- "isArray": true,
2017
- "type": "String",
2018
- "isRequired": false,
2019
- "attributes": [],
2020
- "isArrayNullable": true
2021
- },
2022
- "disabled": {
2023
- "name": "disabled",
2024
- "isArray": false,
2025
- "type": "Int",
2026
- "isRequired": false,
2027
- "attributes": []
2028
- },
2029
- "createdAt": {
2030
- "name": "createdAt",
2031
- "isArray": false,
2032
- "type": "AWSDateTime",
2033
- "isRequired": false,
2034
- "attributes": [],
2035
- "isReadOnly": true
2036
- },
2037
- "updatedAt": {
2038
- "name": "updatedAt",
2039
- "isArray": false,
2040
- "type": "AWSDateTime",
2041
- "isRequired": false,
2042
- "attributes": [],
2043
- "isReadOnly": true
2044
- }
2045
- },
2046
- "syncable": true,
2047
- "pluralName": "DeliverableTypes",
2048
- "attributes": [
2049
- {
2050
- "type": "model",
2051
- "properties": {}
2052
- },
2053
- {
2054
- "type": "key",
2055
- "properties": {
2056
- "name": "byTenantId",
2057
- "fields": [
2058
- "tenantId"
2059
- ]
2060
- }
2061
- },
2062
- {
2063
- "type": "auth",
2064
- "properties": {
2065
- "rules": [
2066
- {
2067
- "allow": "private",
2068
- "operations": [
2069
- "read"
2070
- ]
2071
- },
2072
- {
2073
- "groupClaim": "cognito:groups",
2074
- "provider": "userPools",
2075
- "allow": "groups",
2076
- "groups": [
2077
- "ADMIN"
2078
- ],
2079
- "operations": [
2080
- "create",
2081
- "read",
2082
- "update"
2083
- ]
2084
- }
2085
- ]
2086
- }
2087
- }
2088
- ]
2089
- },
2090
- "Deliverable": {
2091
- "name": "Deliverable",
2092
- "fields": {
2093
- "id": {
2094
- "name": "id",
2095
- "isArray": false,
2096
- "type": "ID",
2097
- "isRequired": true,
2098
- "attributes": []
2099
- },
2100
- "tenantId": {
2101
- "name": "tenantId",
2102
- "isArray": false,
2103
- "type": "ID",
2104
- "isRequired": true,
2105
- "attributes": []
2106
- },
2107
- "deliverableType": {
2108
- "name": "deliverableType",
2109
- "isArray": false,
2110
- "type": {
2111
- "model": "DeliverableType"
2112
- },
2113
- "isRequired": false,
2114
- "attributes": [],
2115
- "association": {
2116
- "connectionType": "BELONGS_TO",
2117
- "targetName": "deliverableTypeDeliverablesId"
2118
- }
2119
- },
2120
- "task": {
2121
- "name": "task",
2122
- "isArray": false,
2123
- "type": {
2124
- "model": "Task"
2125
- },
2126
- "isRequired": false,
2127
- "attributes": [],
2128
- "association": {
2129
- "connectionType": "BELONGS_TO",
2130
- "targetName": "taskDeliverablesId"
2131
- }
2132
- },
2133
- "scheduledTask": {
2134
- "name": "scheduledTask",
2135
- "isArray": false,
2136
- "type": {
2137
- "model": "ScheduledTask"
2138
- },
2139
- "isRequired": false,
2140
- "attributes": [],
2141
- "association": {
2142
- "connectionType": "BELONGS_TO",
2143
- "targetName": "scheduledTaskDeliverablesId"
2144
- }
2145
- },
2146
- "count": {
2147
- "name": "count",
2148
- "isArray": false,
2149
- "type": "Int",
2150
- "isRequired": false,
2151
- "attributes": []
2152
- },
2153
- "unit": {
2154
- "name": "unit",
2155
- "isArray": false,
2156
- "type": {
2157
- "enum": "DeliverableUnit"
2158
- },
2159
- "isRequired": false,
2160
- "attributes": []
2161
- },
2162
- "orderInGrid": {
2163
- "name": "orderInGrid",
2164
- "isArray": false,
2165
- "type": "Int",
2166
- "isRequired": false,
2167
- "attributes": []
2168
- },
2169
- "comments": {
2170
- "name": "comments",
2171
- "isArray": true,
2172
- "type": {
2173
- "model": "Comment"
2174
- },
2175
- "isRequired": false,
2176
- "attributes": [],
2177
- "isArrayNullable": true,
2178
- "association": {
2179
- "connectionType": "HAS_MANY",
2180
- "associatedWith": "parentId"
2181
- }
2182
- },
2183
- "archived": {
2184
- "name": "archived",
2185
- "isArray": false,
2186
- "type": "Int",
2187
- "isRequired": false,
2188
- "attributes": []
2189
- },
2190
- "createdAt": {
2191
- "name": "createdAt",
2192
- "isArray": false,
2193
- "type": "AWSDateTime",
2194
- "isRequired": false,
2195
- "attributes": [],
2196
- "isReadOnly": true
2197
- },
2198
- "updatedAt": {
2199
- "name": "updatedAt",
2200
- "isArray": false,
2201
- "type": "AWSDateTime",
2202
- "isRequired": false,
2203
- "attributes": [],
2204
- "isReadOnly": true
2205
- }
2206
- },
2207
- "syncable": true,
2208
- "pluralName": "Deliverables",
2209
- "attributes": [
2210
- {
2211
- "type": "model",
2212
- "properties": {}
2213
- },
2214
- {
2215
- "type": "key",
2216
- "properties": {
2217
- "name": "byTenantId",
2218
- "fields": [
2219
- "tenantId"
2220
- ]
2221
- }
2222
- },
2223
- {
2224
- "type": "key",
2225
- "properties": {
2226
- "name": "byArchived",
2227
- "fields": [
2228
- "archived"
2229
- ]
2230
- }
2231
- },
2232
- {
2233
- "type": "auth",
2234
- "properties": {
2235
- "rules": [
2236
- {
2237
- "allow": "private",
2238
- "operations": [
2239
- "read"
2240
- ]
2241
- },
2242
- {
2243
- "groupClaim": "cognito:groups",
2244
- "provider": "userPools",
2245
- "allow": "groups",
2246
- "groups": [
2247
- "ADMIN",
2248
- "COORDINATOR",
2249
- "RIDER"
2250
- ],
2251
- "operations": [
2252
- "create",
2253
- "read",
2254
- "delete",
2255
- "update"
2256
- ]
2257
- }
2258
- ]
2259
- }
2260
- }
2261
- ]
2262
- },
2263
- "RiderResponsibility": {
2264
- "name": "RiderResponsibility",
2265
- "fields": {
2266
- "id": {
2267
- "name": "id",
2268
- "isArray": false,
2269
- "type": "ID",
2270
- "isRequired": true,
2271
- "attributes": []
2272
- },
2273
- "tenantId": {
2274
- "name": "tenantId",
2275
- "isArray": false,
2276
- "type": "ID",
2277
- "isRequired": true,
2278
- "attributes": []
2279
- },
2280
- "label": {
2281
- "name": "label",
2282
- "isArray": false,
2283
- "type": "String",
2284
- "isRequired": true,
2285
- "attributes": []
2286
- },
2287
- "disabled": {
2288
- "name": "disabled",
2289
- "isArray": false,
2290
- "type": "Int",
2291
- "isRequired": false,
2292
- "attributes": []
2293
- },
2294
- "possibleUsers": {
2295
- "name": "possibleUsers",
2296
- "isArray": true,
2297
- "type": {
2298
- "model": "PossibleRiderResponsibilities"
2299
- },
2300
- "isRequired": false,
2301
- "attributes": [],
2302
- "isArrayNullable": true,
2303
- "association": {
2304
- "connectionType": "HAS_MANY",
2305
- "associatedWith": "riderResponsibilityPossibleUsersId"
2306
- }
2307
- },
2308
- "createdAt": {
2309
- "name": "createdAt",
2310
- "isArray": false,
2311
- "type": "AWSDateTime",
2312
- "isRequired": false,
2313
- "attributes": [],
2314
- "isReadOnly": true
2315
- },
2316
- "updatedAt": {
2317
- "name": "updatedAt",
2318
- "isArray": false,
2319
- "type": "AWSDateTime",
2320
- "isRequired": false,
2321
- "attributes": [],
2322
- "isReadOnly": true
2323
- }
2324
- },
2325
- "syncable": true,
2326
- "pluralName": "RiderResponsibilities",
2327
- "attributes": [
2328
- {
2329
- "type": "model",
2330
- "properties": {}
2331
- },
2332
- {
2333
- "type": "key",
2334
- "properties": {
2335
- "name": "byTenantId",
2336
- "fields": [
2337
- "tenantId"
2338
- ]
2339
- }
2340
- },
2341
- {
2342
- "type": "auth",
2343
- "properties": {
2344
- "rules": [
2345
- {
2346
- "allow": "private",
2347
- "operations": [
2348
- "read"
2349
- ]
2350
- },
2351
- {
2352
- "groupClaim": "cognito:groups",
2353
- "provider": "userPools",
2354
- "allow": "groups",
2355
- "groups": [
2356
- "ADMIN"
2357
- ],
2358
- "operations": [
2359
- "create",
2360
- "read",
2361
- "update"
2362
- ]
2363
- }
2364
- ]
2365
- }
2366
- }
2367
- ]
2368
- }
2369
- },
2370
- "enums": {
2371
- "TimeRelation": {
2372
- "name": "TimeRelation",
2373
- "values": [
2374
- "BEFORE",
2375
- "AFTER",
2376
- "AT",
2377
- "ANYTIME",
2378
- "BETWEEN"
2379
- ]
2380
- },
2381
- "DeliverableTypeIcon": {
2382
- "name": "DeliverableTypeIcon",
2383
- "values": [
2384
- "BUG",
2385
- "CHILD",
2386
- "DOCUMENT",
2387
- "EQUIPMENT",
2388
- "OTHER"
2389
- ]
2390
- },
2391
- "TaskStatus": {
2392
- "name": "TaskStatus",
2393
- "values": [
2394
- "NEW",
2395
- "ACTIVE",
2396
- "PICKED_UP",
2397
- "DROPPED_OFF",
2398
- "CANCELLED",
2399
- "REJECTED",
2400
- "ABANDONED",
2401
- "COMPLETED",
2402
- "PENDING",
2403
- "FUTURE"
2404
- ]
2405
- },
2406
- "Priority": {
2407
- "name": "Priority",
2408
- "values": [
2409
- "HIGH",
2410
- "MEDIUM",
2411
- "LOW"
2412
- ]
2413
- },
2414
- "DeliverableUnit": {
2415
- "name": "DeliverableUnit",
2416
- "values": [
2417
- "NONE",
2418
- "LITER",
2419
- "MILLILITER",
2420
- "GRAM",
2421
- "ITEM",
2422
- "BOX"
2423
- ]
2424
- },
2425
- "Role": {
2426
- "name": "Role",
2427
- "values": [
2428
- "USER",
2429
- "COORDINATOR",
2430
- "RIDER",
2431
- "ADMIN"
2432
- ]
2433
- },
2434
- "CommentVisibility": {
2435
- "name": "CommentVisibility",
2436
- "values": [
2437
- "EVERYONE",
2438
- "ME"
2439
- ]
2440
- }
2441
- },
2442
- "nonModels": {
2443
- "S3Object": {
2444
- "name": "S3Object",
2445
- "fields": {
2446
- "bucket": {
2447
- "name": "bucket",
2448
- "isArray": false,
2449
- "type": "String",
2450
- "isRequired": true,
2451
- "attributes": []
2452
- },
2453
- "key": {
2454
- "name": "key",
2455
- "isArray": false,
2456
- "type": "String",
2457
- "isRequired": true,
2458
- "attributes": []
2459
- },
2460
- "region": {
2461
- "name": "region",
2462
- "isArray": false,
2463
- "type": "String",
2464
- "isRequired": true,
2465
- "attributes": []
2466
- }
2467
- }
2468
- },
2469
- "AddressAndContactDetails": {
2470
- "name": "AddressAndContactDetails",
2471
- "fields": {
2472
- "name": {
2473
- "name": "name",
2474
- "isArray": false,
2475
- "type": "String",
2476
- "isRequired": false,
2477
- "attributes": []
2478
- },
2479
- "telephoneNumber": {
2480
- "name": "telephoneNumber",
2481
- "isArray": false,
2482
- "type": "String",
2483
- "isRequired": false,
2484
- "attributes": []
2485
- },
2486
- "mobileNumber": {
2487
- "name": "mobileNumber",
2488
- "isArray": false,
2489
- "type": "String",
2490
- "isRequired": false,
2491
- "attributes": []
2492
- },
2493
- "emailAddress": {
2494
- "name": "emailAddress",
2495
- "isArray": false,
2496
- "type": "String",
2497
- "isRequired": false,
2498
- "attributes": []
2499
- },
2500
- "ward": {
2501
- "name": "ward",
2502
- "isArray": false,
2503
- "type": "String",
2504
- "isRequired": false,
2505
- "attributes": []
2506
- },
2507
- "line1": {
2508
- "name": "line1",
2509
- "isArray": false,
2510
- "type": "String",
2511
- "isRequired": false,
2512
- "attributes": []
2513
- },
2514
- "line2": {
2515
- "name": "line2",
2516
- "isArray": false,
2517
- "type": "String",
2518
- "isRequired": false,
2519
- "attributes": []
2520
- },
2521
- "line3": {
2522
- "name": "line3",
2523
- "isArray": false,
2524
- "type": "String",
2525
- "isRequired": false,
2526
- "attributes": []
2527
- },
2528
- "town": {
2529
- "name": "town",
2530
- "isArray": false,
2531
- "type": "String",
2532
- "isRequired": false,
2533
- "attributes": []
2534
- },
2535
- "county": {
2536
- "name": "county",
2537
- "isArray": false,
2538
- "type": "String",
2539
- "isRequired": false,
2540
- "attributes": []
2541
- },
2542
- "state": {
2543
- "name": "state",
2544
- "isArray": false,
2545
- "type": "String",
2546
- "isRequired": false,
2547
- "attributes": []
2548
- },
2549
- "country": {
2550
- "name": "country",
2551
- "isArray": false,
2552
- "type": "String",
2553
- "isRequired": false,
2554
- "attributes": []
2555
- },
2556
- "postcode": {
2557
- "name": "postcode",
2558
- "isArray": false,
2559
- "type": "String",
2560
- "isRequired": false,
2561
- "attributes": []
2562
- },
2563
- "what3words": {
2564
- "name": "what3words",
2565
- "isArray": false,
2566
- "type": "String",
2567
- "isRequired": false,
2568
- "attributes": []
2569
- }
2570
- }
2571
- },
2572
- "Schedule": {
2573
- "name": "Schedule",
2574
- "fields": {
2575
- "relation": {
2576
- "name": "relation",
2577
- "isArray": false,
2578
- "type": {
2579
- "enum": "TimeRelation"
2580
- },
2581
- "isRequired": false,
2582
- "attributes": []
2583
- },
2584
- "timePrimary": {
2585
- "name": "timePrimary",
2586
- "isArray": false,
2587
- "type": "AWSDateTime",
2588
- "isRequired": false,
2589
- "attributes": []
2590
- },
2591
- "timeSecondary": {
2592
- "name": "timeSecondary",
2593
- "isArray": false,
2594
- "type": "AWSDateTime",
2595
- "isRequired": false,
2596
- "attributes": []
2597
- }
2598
- }
2599
- },
2600
- "SendFeedback": {
2601
- "name": "SendFeedback",
2602
- "fields": {
2603
- "successState": {
2604
- "name": "successState",
2605
- "isArray": false,
2606
- "type": "Boolean",
2607
- "isRequired": false,
2608
- "attributes": []
2609
- }
2610
- }
2611
- },
2612
- "Statistics": {
2613
- "name": "Statistics",
2614
- "fields": {
2615
- "numCancelled": {
2616
- "name": "numCancelled",
2617
- "isArray": false,
2618
- "type": "Int",
2619
- "isRequired": false,
2620
- "attributes": []
2621
- },
2622
- "numCompleted": {
2623
- "name": "numCompleted",
2624
- "isArray": false,
2625
- "type": "Int",
2626
- "isRequired": false,
2627
- "attributes": []
2628
- },
2629
- "numDroppedOff": {
2630
- "name": "numDroppedOff",
2631
- "isArray": false,
2632
- "type": "Int",
2633
- "isRequired": false,
2634
- "attributes": []
2635
- },
2636
- "numRejected": {
2637
- "name": "numRejected",
2638
- "isArray": false,
2639
- "type": "Int",
2640
- "isRequired": false,
2641
- "attributes": []
2642
- },
2643
- "numAbandoned": {
2644
- "name": "numAbandoned",
2645
- "isArray": false,
2646
- "type": "Int",
2647
- "isRequired": false,
2648
- "attributes": []
2649
- },
2650
- "numActive": {
2651
- "name": "numActive",
2652
- "isArray": false,
2653
- "type": "Int",
2654
- "isRequired": false,
2655
- "attributes": []
2656
- },
2657
- "numPickedUp": {
2658
- "name": "numPickedUp",
2659
- "isArray": false,
2660
- "type": "Int",
2661
- "isRequired": false,
2662
- "attributes": []
2663
- },
2664
- "numNew": {
2665
- "name": "numNew",
2666
- "isArray": false,
2667
- "type": "Int",
2668
- "isRequired": false,
2669
- "attributes": []
2670
- },
2671
- "numTest": {
2672
- "name": "numTest",
2673
- "isArray": false,
2674
- "type": "Int",
2675
- "isRequired": false,
2676
- "attributes": []
2677
- }
2678
- }
2679
- }
2680
- },
2681
- "codegenVersion": "3.4.4",
2682
- "version": "d7d2d4025ea065d2c99af6d7845afd5e"
2683
- };