@platelet-app/types 1.0.1

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.
@@ -0,0 +1,725 @@
1
+ import { ModelInit, MutableModel } from "@aws-amplify/datastore";
2
+ // @ts-ignore
3
+ import { LazyLoading, LazyLoadingDisabled, AsyncItem, AsyncCollection } from "@aws-amplify/datastore";
4
+
5
+ export enum TimeRelation {
6
+ BEFORE = "BEFORE",
7
+ AFTER = "AFTER",
8
+ AT = "AT",
9
+ ANYTIME = "ANYTIME",
10
+ BETWEEN = "BETWEEN"
11
+ }
12
+
13
+ export enum DeliverableTypeIcon {
14
+ BUG = "BUG",
15
+ CHILD = "CHILD",
16
+ DOCUMENT = "DOCUMENT",
17
+ EQUIPMENT = "EQUIPMENT",
18
+ OTHER = "OTHER"
19
+ }
20
+
21
+ export enum TaskStatus {
22
+ NEW = "NEW",
23
+ ACTIVE = "ACTIVE",
24
+ PICKED_UP = "PICKED_UP",
25
+ DROPPED_OFF = "DROPPED_OFF",
26
+ CANCELLED = "CANCELLED",
27
+ REJECTED = "REJECTED",
28
+ ABANDONED = "ABANDONED",
29
+ COMPLETED = "COMPLETED",
30
+ PENDING = "PENDING",
31
+ FUTURE = "FUTURE"
32
+ }
33
+
34
+ export enum Priority {
35
+ HIGH = "HIGH",
36
+ MEDIUM = "MEDIUM",
37
+ LOW = "LOW"
38
+ }
39
+
40
+ export enum DeliverableUnit {
41
+ NONE = "NONE",
42
+ LITER = "LITER",
43
+ MILLILITER = "MILLILITER",
44
+ GRAM = "GRAM",
45
+ ITEM = "ITEM",
46
+ BOX = "BOX"
47
+ }
48
+
49
+ export enum Role {
50
+ USER = "USER",
51
+ COORDINATOR = "COORDINATOR",
52
+ RIDER = "RIDER",
53
+ ADMIN = "ADMIN"
54
+ }
55
+
56
+ export enum CommentVisibility {
57
+ EVERYONE = "EVERYONE",
58
+ ME = "ME"
59
+ }
60
+
61
+ type EagerS3Object = {
62
+ readonly bucket: string;
63
+ readonly key: string;
64
+ readonly region: string;
65
+ }
66
+
67
+ type LazyS3Object = {
68
+ readonly bucket: string;
69
+ readonly key: string;
70
+ readonly region: string;
71
+ }
72
+
73
+ export declare type S3Object = LazyLoading extends LazyLoadingDisabled ? EagerS3Object : LazyS3Object
74
+
75
+ export declare const S3Object: (new (init: ModelInit<S3Object>) => S3Object)
76
+
77
+ type EagerAddressAndContactDetails = {
78
+ readonly name?: string | null;
79
+ readonly telephoneNumber?: string | null;
80
+ readonly mobileNumber?: string | null;
81
+ readonly emailAddress?: string | null;
82
+ readonly ward?: string | null;
83
+ readonly line1?: string | null;
84
+ readonly line2?: string | null;
85
+ readonly line3?: string | null;
86
+ readonly town?: string | null;
87
+ readonly county?: string | null;
88
+ readonly state?: string | null;
89
+ readonly country?: string | null;
90
+ readonly postcode?: string | null;
91
+ readonly what3words?: string | null;
92
+ }
93
+
94
+ type LazyAddressAndContactDetails = {
95
+ readonly name?: string | null;
96
+ readonly telephoneNumber?: string | null;
97
+ readonly mobileNumber?: string | null;
98
+ readonly emailAddress?: string | null;
99
+ readonly ward?: string | null;
100
+ readonly line1?: string | null;
101
+ readonly line2?: string | null;
102
+ readonly line3?: string | null;
103
+ readonly town?: string | null;
104
+ readonly county?: string | null;
105
+ readonly state?: string | null;
106
+ readonly country?: string | null;
107
+ readonly postcode?: string | null;
108
+ readonly what3words?: string | null;
109
+ }
110
+
111
+ export declare type AddressAndContactDetails = LazyLoading extends LazyLoadingDisabled ? EagerAddressAndContactDetails : LazyAddressAndContactDetails
112
+
113
+ export declare const AddressAndContactDetails: (new (init: ModelInit<AddressAndContactDetails>) => AddressAndContactDetails)
114
+
115
+ type EagerSchedule = {
116
+ readonly relation?: TimeRelation | keyof typeof TimeRelation | null;
117
+ readonly timePrimary?: string | null;
118
+ readonly timeSecondary?: string | null;
119
+ }
120
+
121
+ type LazySchedule = {
122
+ readonly relation?: TimeRelation | keyof typeof TimeRelation | null;
123
+ readonly timePrimary?: string | null;
124
+ readonly timeSecondary?: string | null;
125
+ }
126
+
127
+ export declare type Schedule = LazyLoading extends LazyLoadingDisabled ? EagerSchedule : LazySchedule
128
+
129
+ export declare const Schedule: (new (init: ModelInit<Schedule>) => Schedule)
130
+
131
+ type EagerSendFeedback = {
132
+ readonly successState?: boolean | null;
133
+ }
134
+
135
+ type LazySendFeedback = {
136
+ readonly successState?: boolean | null;
137
+ }
138
+
139
+ export declare type SendFeedback = LazyLoading extends LazyLoadingDisabled ? EagerSendFeedback : LazySendFeedback
140
+
141
+ export declare const SendFeedback: (new (init: ModelInit<SendFeedback>) => SendFeedback)
142
+
143
+ type EagerStatistics = {
144
+ readonly numCancelled?: number | null;
145
+ readonly numCompleted?: number | null;
146
+ readonly numDroppedOff?: number | null;
147
+ readonly numRejected?: number | null;
148
+ readonly numAbandoned?: number | null;
149
+ readonly numActive?: number | null;
150
+ readonly numPickedUp?: number | null;
151
+ readonly numNew?: number | null;
152
+ readonly numTest?: number | null;
153
+ }
154
+
155
+ type LazyStatistics = {
156
+ readonly numCancelled?: number | null;
157
+ readonly numCompleted?: number | null;
158
+ readonly numDroppedOff?: number | null;
159
+ readonly numRejected?: number | null;
160
+ readonly numAbandoned?: number | null;
161
+ readonly numActive?: number | null;
162
+ readonly numPickedUp?: number | null;
163
+ readonly numNew?: number | null;
164
+ readonly numTest?: number | null;
165
+ }
166
+
167
+ export declare type Statistics = LazyLoading extends LazyLoadingDisabled ? EagerStatistics : LazyStatistics
168
+
169
+ export declare const Statistics: (new (init: ModelInit<Statistics>) => Statistics)
170
+
171
+ type TenantMetaData = {
172
+ readOnlyFields: 'createdAt' | 'updatedAt';
173
+ }
174
+
175
+ type UserMetaData = {
176
+ readOnlyFields: 'createdAt' | 'updatedAt';
177
+ }
178
+
179
+ type PossibleRiderResponsibilitiesMetaData = {
180
+ readOnlyFields: 'createdAt' | 'updatedAt';
181
+ }
182
+
183
+ type VehicleMetaData = {
184
+ readOnlyFields: 'createdAt' | 'updatedAt';
185
+ }
186
+
187
+ type VehicleAssignmentMetaData = {
188
+ readOnlyFields: 'createdAt' | 'updatedAt';
189
+ }
190
+
191
+ type LocationMetaData = {
192
+ readOnlyFields: 'createdAt' | 'updatedAt';
193
+ }
194
+
195
+ type TaskMetaData = {
196
+ readOnlyFields: 'updatedAt';
197
+ }
198
+
199
+ type TaskAssigneeMetaData = {
200
+ readOnlyFields: 'createdAt' | 'updatedAt';
201
+ }
202
+
203
+ type ScheduledTaskMetaData = {
204
+ readOnlyFields: 'createdAt' | 'updatedAt';
205
+ }
206
+
207
+ type CommentMetaData = {
208
+ readOnlyFields: 'createdAt' | 'updatedAt';
209
+ }
210
+
211
+ type DeliverableTypeMetaData = {
212
+ readOnlyFields: 'createdAt' | 'updatedAt';
213
+ }
214
+
215
+ type DeliverableMetaData = {
216
+ readOnlyFields: 'createdAt' | 'updatedAt';
217
+ }
218
+
219
+ type RiderResponsibilityMetaData = {
220
+ readOnlyFields: 'createdAt' | 'updatedAt';
221
+ }
222
+
223
+ type EagerTenant = {
224
+ readonly id: string;
225
+ readonly name: string;
226
+ readonly referenceIdentifier: string;
227
+ readonly admin: User;
228
+ readonly createdAt?: string | null;
229
+ readonly updatedAt?: string | null;
230
+ readonly tenantAdminId: string;
231
+ }
232
+
233
+ type LazyTenant = {
234
+ readonly id: string;
235
+ readonly name: string;
236
+ readonly referenceIdentifier: string;
237
+ readonly admin: AsyncItem<User>;
238
+ readonly createdAt?: string | null;
239
+ readonly updatedAt?: string | null;
240
+ readonly tenantAdminId: string;
241
+ }
242
+
243
+ export declare type Tenant = LazyLoading extends LazyLoadingDisabled ? EagerTenant : LazyTenant
244
+
245
+ export declare const Tenant: (new (init: ModelInit<Tenant, TenantMetaData>) => Tenant) & {
246
+ copyOf(source: Tenant, mutator: (draft: MutableModel<Tenant, TenantMetaData>) => MutableModel<Tenant, TenantMetaData> | void): Tenant;
247
+ }
248
+
249
+ type EagerUser = {
250
+ readonly id: string;
251
+ readonly username: string;
252
+ readonly cognitoId: string;
253
+ readonly tenantId: string;
254
+ readonly isPrimaryAdmin?: number | null;
255
+ readonly contact?: AddressAndContactDetails | null;
256
+ readonly displayName: string;
257
+ readonly name?: string | null;
258
+ readonly roles: Role[] | keyof typeof Role;
259
+ readonly dateOfBirth?: string | null;
260
+ readonly riderResponsibility?: string | null;
261
+ readonly possibleRiderResponsibilities?: (PossibleRiderResponsibilities | null)[] | null;
262
+ readonly profilePicture?: S3Object | null;
263
+ readonly comments?: (Comment | null)[] | null;
264
+ readonly assignments?: (TaskAssignee | null)[] | null;
265
+ readonly vehicleAssignments?: (VehicleAssignment | null)[] | null;
266
+ readonly createdTasks?: (Task | null)[] | null;
267
+ readonly createdLocations?: (Location | null)[] | null;
268
+ readonly createdVehicles?: (Vehicle | null)[] | null;
269
+ readonly createdScheduledTasks?: (ScheduledTask | null)[] | null;
270
+ readonly disabled?: number | null;
271
+ readonly createdAt?: string | null;
272
+ readonly updatedAt?: string | null;
273
+ }
274
+
275
+ type LazyUser = {
276
+ readonly id: string;
277
+ readonly username: string;
278
+ readonly cognitoId: string;
279
+ readonly tenantId: string;
280
+ readonly isPrimaryAdmin?: number | null;
281
+ readonly contact?: AddressAndContactDetails | null;
282
+ readonly displayName: string;
283
+ readonly name?: string | null;
284
+ readonly roles: Role[] | keyof typeof Role;
285
+ readonly dateOfBirth?: string | null;
286
+ readonly riderResponsibility?: string | null;
287
+ readonly possibleRiderResponsibilities: AsyncCollection<PossibleRiderResponsibilities>;
288
+ readonly profilePicture?: S3Object | null;
289
+ readonly comments: AsyncCollection<Comment>;
290
+ readonly assignments: AsyncCollection<TaskAssignee>;
291
+ readonly vehicleAssignments: AsyncCollection<VehicleAssignment>;
292
+ readonly createdTasks: AsyncCollection<Task>;
293
+ readonly createdLocations: AsyncCollection<Location>;
294
+ readonly createdVehicles: AsyncCollection<Vehicle>;
295
+ readonly createdScheduledTasks: AsyncCollection<ScheduledTask>;
296
+ readonly disabled?: number | null;
297
+ readonly createdAt?: string | null;
298
+ readonly updatedAt?: string | null;
299
+ }
300
+
301
+ export declare type User = LazyLoading extends LazyLoadingDisabled ? EagerUser : LazyUser
302
+
303
+ export declare const User: (new (init: ModelInit<User, UserMetaData>) => User) & {
304
+ copyOf(source: User, mutator: (draft: MutableModel<User, UserMetaData>) => MutableModel<User, UserMetaData> | void): User;
305
+ }
306
+
307
+ type EagerPossibleRiderResponsibilities = {
308
+ readonly id: string;
309
+ readonly tenantId: string;
310
+ readonly user: User;
311
+ readonly riderResponsibility: RiderResponsibility;
312
+ readonly createdAt?: string | null;
313
+ readonly updatedAt?: string | null;
314
+ }
315
+
316
+ type LazyPossibleRiderResponsibilities = {
317
+ readonly id: string;
318
+ readonly tenantId: string;
319
+ readonly user: AsyncItem<User>;
320
+ readonly riderResponsibility: AsyncItem<RiderResponsibility>;
321
+ readonly createdAt?: string | null;
322
+ readonly updatedAt?: string | null;
323
+ }
324
+
325
+ export declare type PossibleRiderResponsibilities = LazyLoading extends LazyLoadingDisabled ? EagerPossibleRiderResponsibilities : LazyPossibleRiderResponsibilities
326
+
327
+ export declare const PossibleRiderResponsibilities: (new (init: ModelInit<PossibleRiderResponsibilities, PossibleRiderResponsibilitiesMetaData>) => PossibleRiderResponsibilities) & {
328
+ copyOf(source: PossibleRiderResponsibilities, mutator: (draft: MutableModel<PossibleRiderResponsibilities, PossibleRiderResponsibilitiesMetaData>) => MutableModel<PossibleRiderResponsibilities, PossibleRiderResponsibilitiesMetaData> | void): PossibleRiderResponsibilities;
329
+ }
330
+
331
+ type EagerVehicle = {
332
+ readonly id: string;
333
+ readonly tenantId: string;
334
+ readonly createdBy?: User | null;
335
+ readonly name?: string | null;
336
+ readonly manufacturer?: string | null;
337
+ readonly model?: string | null;
338
+ readonly dateOfManufacture?: string | null;
339
+ readonly dateOfRegistration?: string | null;
340
+ readonly assignments?: (VehicleAssignment | null)[] | null;
341
+ readonly comments?: (Comment | null)[] | null;
342
+ readonly disabled?: number | null;
343
+ readonly createdAt?: string | null;
344
+ readonly updatedAt?: string | null;
345
+ }
346
+
347
+ type LazyVehicle = {
348
+ readonly id: string;
349
+ readonly tenantId: string;
350
+ readonly createdBy: AsyncItem<User | undefined>;
351
+ readonly name?: string | null;
352
+ readonly manufacturer?: string | null;
353
+ readonly model?: string | null;
354
+ readonly dateOfManufacture?: string | null;
355
+ readonly dateOfRegistration?: string | null;
356
+ readonly assignments: AsyncCollection<VehicleAssignment>;
357
+ readonly comments: AsyncCollection<Comment>;
358
+ readonly disabled?: number | null;
359
+ readonly createdAt?: string | null;
360
+ readonly updatedAt?: string | null;
361
+ }
362
+
363
+ export declare type Vehicle = LazyLoading extends LazyLoadingDisabled ? EagerVehicle : LazyVehicle
364
+
365
+ export declare const Vehicle: (new (init: ModelInit<Vehicle, VehicleMetaData>) => Vehicle) & {
366
+ copyOf(source: Vehicle, mutator: (draft: MutableModel<Vehicle, VehicleMetaData>) => MutableModel<Vehicle, VehicleMetaData> | void): Vehicle;
367
+ }
368
+
369
+ type EagerVehicleAssignment = {
370
+ readonly id: string;
371
+ readonly tenantId: string;
372
+ readonly vehicle: Vehicle;
373
+ readonly assignee: User;
374
+ readonly createdAt?: string | null;
375
+ readonly updatedAt?: string | null;
376
+ }
377
+
378
+ type LazyVehicleAssignment = {
379
+ readonly id: string;
380
+ readonly tenantId: string;
381
+ readonly vehicle: AsyncItem<Vehicle>;
382
+ readonly assignee: AsyncItem<User>;
383
+ readonly createdAt?: string | null;
384
+ readonly updatedAt?: string | null;
385
+ }
386
+
387
+ export declare type VehicleAssignment = LazyLoading extends LazyLoadingDisabled ? EagerVehicleAssignment : LazyVehicleAssignment
388
+
389
+ export declare const VehicleAssignment: (new (init: ModelInit<VehicleAssignment, VehicleAssignmentMetaData>) => VehicleAssignment) & {
390
+ copyOf(source: VehicleAssignment, mutator: (draft: MutableModel<VehicleAssignment, VehicleAssignmentMetaData>) => MutableModel<VehicleAssignment, VehicleAssignmentMetaData> | void): VehicleAssignment;
391
+ }
392
+
393
+ type EagerLocation = {
394
+ readonly id: string;
395
+ readonly tenantId: string;
396
+ readonly createdBy?: User | null;
397
+ readonly name?: string | null;
398
+ readonly listed?: number | null;
399
+ readonly contact?: AddressAndContactDetails | null;
400
+ readonly ward?: string | null;
401
+ readonly line1?: string | null;
402
+ readonly line2?: string | null;
403
+ readonly line3?: string | null;
404
+ readonly town?: string | null;
405
+ readonly county?: string | null;
406
+ readonly state?: string | null;
407
+ readonly country?: string | null;
408
+ readonly postcode?: string | null;
409
+ readonly what3words?: string | null;
410
+ readonly tasksAsPickUp?: (Task | null)[] | null;
411
+ readonly tasksAsDropOff?: (Task | null)[] | null;
412
+ readonly taskAsEstablishment?: (Task | null)[] | null;
413
+ readonly scheduledTasksAsPickUp?: (ScheduledTask | null)[] | null;
414
+ readonly scheduledTasksAsDropOff?: (ScheduledTask | null)[] | null;
415
+ readonly scheduledTasksAsEstablishment?: (ScheduledTask | null)[] | null;
416
+ readonly comments?: (Comment | null)[] | null;
417
+ readonly disabled?: number | null;
418
+ readonly googleMapsPlaceId?: string | null;
419
+ readonly archived?: number | null;
420
+ readonly createdAt?: string | null;
421
+ readonly updatedAt?: string | null;
422
+ }
423
+
424
+ type LazyLocation = {
425
+ readonly id: string;
426
+ readonly tenantId: string;
427
+ readonly createdBy: AsyncItem<User | undefined>;
428
+ readonly name?: string | null;
429
+ readonly listed?: number | null;
430
+ readonly contact?: AddressAndContactDetails | null;
431
+ readonly ward?: string | null;
432
+ readonly line1?: string | null;
433
+ readonly line2?: string | null;
434
+ readonly line3?: string | null;
435
+ readonly town?: string | null;
436
+ readonly county?: string | null;
437
+ readonly state?: string | null;
438
+ readonly country?: string | null;
439
+ readonly postcode?: string | null;
440
+ readonly what3words?: string | null;
441
+ readonly tasksAsPickUp: AsyncCollection<Task>;
442
+ readonly tasksAsDropOff: AsyncCollection<Task>;
443
+ readonly taskAsEstablishment: AsyncCollection<Task>;
444
+ readonly scheduledTasksAsPickUp: AsyncCollection<ScheduledTask>;
445
+ readonly scheduledTasksAsDropOff: AsyncCollection<ScheduledTask>;
446
+ readonly scheduledTasksAsEstablishment: AsyncCollection<ScheduledTask>;
447
+ readonly comments: AsyncCollection<Comment>;
448
+ readonly disabled?: number | null;
449
+ readonly googleMapsPlaceId?: string | null;
450
+ readonly archived?: number | null;
451
+ readonly createdAt?: string | null;
452
+ readonly updatedAt?: string | null;
453
+ }
454
+
455
+ export declare type Location = LazyLoading extends LazyLoadingDisabled ? EagerLocation : LazyLocation
456
+
457
+ export declare const Location: (new (init: ModelInit<Location, LocationMetaData>) => Location) & {
458
+ copyOf(source: Location, mutator: (draft: MutableModel<Location, LocationMetaData>) => MutableModel<Location, LocationMetaData> | void): Location;
459
+ }
460
+
461
+ type EagerTask = {
462
+ readonly id: string;
463
+ readonly tenantId: string;
464
+ readonly createdAt?: string | null;
465
+ readonly createdBy?: User | null;
466
+ readonly dateCreated: string;
467
+ readonly dateCompleted?: string | null;
468
+ readonly timeOfCall?: string | null;
469
+ readonly timePickedUp?: string | null;
470
+ readonly timePickedUpSenderName?: string | null;
471
+ readonly timeDroppedOff?: string | null;
472
+ readonly timeDroppedOffRecipientName?: string | null;
473
+ readonly timeCancelled?: string | null;
474
+ readonly timeRejected?: string | null;
475
+ readonly timeRiderHome?: string | null;
476
+ readonly requesterContact?: AddressAndContactDetails | null;
477
+ readonly pickUpLocation?: Location | null;
478
+ readonly dropOffLocation?: Location | null;
479
+ readonly establishmentLocation?: Location | null;
480
+ readonly riderResponsibility?: string | null;
481
+ readonly assignees?: (TaskAssignee | null)[] | null;
482
+ readonly priority?: Priority | keyof typeof Priority | null;
483
+ readonly deliverables?: (Deliverable | null)[] | null;
484
+ readonly comments?: (Comment | null)[] | null;
485
+ readonly status?: TaskStatus | keyof typeof TaskStatus | null;
486
+ readonly isRiderUsingOwnVehicle?: number | null;
487
+ readonly archived?: number | null;
488
+ readonly pickUpSchedule?: Schedule | null;
489
+ readonly dropOffSchedule?: Schedule | null;
490
+ readonly updatedAt?: string | null;
491
+ }
492
+
493
+ type LazyTask = {
494
+ readonly id: string;
495
+ readonly tenantId: string;
496
+ readonly createdAt?: string | null;
497
+ readonly createdBy: AsyncItem<User | undefined>;
498
+ readonly dateCreated: string;
499
+ readonly dateCompleted?: string | null;
500
+ readonly timeOfCall?: string | null;
501
+ readonly timePickedUp?: string | null;
502
+ readonly timePickedUpSenderName?: string | null;
503
+ readonly timeDroppedOff?: string | null;
504
+ readonly timeDroppedOffRecipientName?: string | null;
505
+ readonly timeCancelled?: string | null;
506
+ readonly timeRejected?: string | null;
507
+ readonly timeRiderHome?: string | null;
508
+ readonly requesterContact?: AddressAndContactDetails | null;
509
+ readonly pickUpLocation: AsyncItem<Location | undefined>;
510
+ readonly dropOffLocation: AsyncItem<Location | undefined>;
511
+ readonly establishmentLocation: AsyncItem<Location | undefined>;
512
+ readonly riderResponsibility?: string | null;
513
+ readonly assignees: AsyncCollection<TaskAssignee>;
514
+ readonly priority?: Priority | keyof typeof Priority | null;
515
+ readonly deliverables: AsyncCollection<Deliverable>;
516
+ readonly comments: AsyncCollection<Comment>;
517
+ readonly status?: TaskStatus | keyof typeof TaskStatus | null;
518
+ readonly isRiderUsingOwnVehicle?: number | null;
519
+ readonly archived?: number | null;
520
+ readonly pickUpSchedule?: Schedule | null;
521
+ readonly dropOffSchedule?: Schedule | null;
522
+ readonly updatedAt?: string | null;
523
+ }
524
+
525
+ export declare type Task = LazyLoading extends LazyLoadingDisabled ? EagerTask : LazyTask
526
+
527
+ export declare const Task: (new (init: ModelInit<Task, TaskMetaData>) => Task) & {
528
+ copyOf(source: Task, mutator: (draft: MutableModel<Task, TaskMetaData>) => MutableModel<Task, TaskMetaData> | void): Task;
529
+ }
530
+
531
+ type EagerTaskAssignee = {
532
+ readonly id: string;
533
+ readonly tenantId: string;
534
+ readonly role: Role | keyof typeof Role;
535
+ readonly task: Task;
536
+ readonly assignee: User;
537
+ readonly archived?: number | null;
538
+ readonly createdAt?: string | null;
539
+ readonly updatedAt?: string | null;
540
+ }
541
+
542
+ type LazyTaskAssignee = {
543
+ readonly id: string;
544
+ readonly tenantId: string;
545
+ readonly role: Role | keyof typeof Role;
546
+ readonly task: AsyncItem<Task>;
547
+ readonly assignee: AsyncItem<User>;
548
+ readonly archived?: number | null;
549
+ readonly createdAt?: string | null;
550
+ readonly updatedAt?: string | null;
551
+ }
552
+
553
+ export declare type TaskAssignee = LazyLoading extends LazyLoadingDisabled ? EagerTaskAssignee : LazyTaskAssignee
554
+
555
+ export declare const TaskAssignee: (new (init: ModelInit<TaskAssignee, TaskAssigneeMetaData>) => TaskAssignee) & {
556
+ copyOf(source: TaskAssignee, mutator: (draft: MutableModel<TaskAssignee, TaskAssigneeMetaData>) => MutableModel<TaskAssignee, TaskAssigneeMetaData> | void): TaskAssignee;
557
+ }
558
+
559
+ type EagerScheduledTask = {
560
+ readonly id: string;
561
+ readonly tenantId: string;
562
+ readonly createdBy?: User | null;
563
+ readonly requesterContact?: AddressAndContactDetails | null;
564
+ readonly cronExpression: string;
565
+ readonly pickUpLocation?: Location | null;
566
+ readonly dropOffLocation?: Location | null;
567
+ readonly establishmentLocation?: Location | null;
568
+ readonly priority?: Priority | keyof typeof Priority | null;
569
+ readonly deliverables?: (Deliverable | null)[] | null;
570
+ readonly disabled?: number | null;
571
+ readonly pickUpSchedule?: Schedule | null;
572
+ readonly dropOffSchedule?: Schedule | null;
573
+ readonly createdAt?: string | null;
574
+ readonly updatedAt?: string | null;
575
+ }
576
+
577
+ type LazyScheduledTask = {
578
+ readonly id: string;
579
+ readonly tenantId: string;
580
+ readonly createdBy: AsyncItem<User | undefined>;
581
+ readonly requesterContact?: AddressAndContactDetails | null;
582
+ readonly cronExpression: string;
583
+ readonly pickUpLocation: AsyncItem<Location | undefined>;
584
+ readonly dropOffLocation: AsyncItem<Location | undefined>;
585
+ readonly establishmentLocation: AsyncItem<Location | undefined>;
586
+ readonly priority?: Priority | keyof typeof Priority | null;
587
+ readonly deliverables: AsyncCollection<Deliverable>;
588
+ readonly disabled?: number | null;
589
+ readonly pickUpSchedule?: Schedule | null;
590
+ readonly dropOffSchedule?: Schedule | null;
591
+ readonly createdAt?: string | null;
592
+ readonly updatedAt?: string | null;
593
+ }
594
+
595
+ export declare type ScheduledTask = LazyLoading extends LazyLoadingDisabled ? EagerScheduledTask : LazyScheduledTask
596
+
597
+ export declare const ScheduledTask: (new (init: ModelInit<ScheduledTask, ScheduledTaskMetaData>) => ScheduledTask) & {
598
+ copyOf(source: ScheduledTask, mutator: (draft: MutableModel<ScheduledTask, ScheduledTaskMetaData>) => MutableModel<ScheduledTask, ScheduledTaskMetaData> | void): ScheduledTask;
599
+ }
600
+
601
+ type EagerComment = {
602
+ readonly id: string;
603
+ readonly parentId?: string | null;
604
+ readonly owner?: string | null;
605
+ readonly tenantId: string;
606
+ readonly body?: string | null;
607
+ readonly author?: User | null;
608
+ readonly visibility?: CommentVisibility | keyof typeof CommentVisibility | null;
609
+ readonly archived?: number | null;
610
+ readonly createdAt?: string | null;
611
+ readonly updatedAt?: string | null;
612
+ }
613
+
614
+ type LazyComment = {
615
+ readonly id: string;
616
+ readonly parentId?: string | null;
617
+ readonly owner?: string | null;
618
+ readonly tenantId: string;
619
+ readonly body?: string | null;
620
+ readonly author: AsyncItem<User | undefined>;
621
+ readonly visibility?: CommentVisibility | keyof typeof CommentVisibility | null;
622
+ readonly archived?: number | null;
623
+ readonly createdAt?: string | null;
624
+ readonly updatedAt?: string | null;
625
+ }
626
+
627
+ export declare type Comment = LazyLoading extends LazyLoadingDisabled ? EagerComment : LazyComment
628
+
629
+ export declare const Comment: (new (init: ModelInit<Comment, CommentMetaData>) => Comment) & {
630
+ copyOf(source: Comment, mutator: (draft: MutableModel<Comment, CommentMetaData>) => MutableModel<Comment, CommentMetaData> | void): Comment;
631
+ }
632
+
633
+ type EagerDeliverableType = {
634
+ readonly id: string;
635
+ readonly label: string;
636
+ readonly tenantId: string;
637
+ readonly icon?: DeliverableTypeIcon | keyof typeof DeliverableTypeIcon | null;
638
+ readonly defaultUnit?: DeliverableUnit | keyof typeof DeliverableUnit | null;
639
+ readonly deliverables?: (Deliverable | null)[] | null;
640
+ readonly tags?: (string | null)[] | null;
641
+ readonly disabled?: number | null;
642
+ readonly createdAt?: string | null;
643
+ readonly updatedAt?: string | null;
644
+ }
645
+
646
+ type LazyDeliverableType = {
647
+ readonly id: string;
648
+ readonly label: string;
649
+ readonly tenantId: string;
650
+ readonly icon?: DeliverableTypeIcon | keyof typeof DeliverableTypeIcon | null;
651
+ readonly defaultUnit?: DeliverableUnit | keyof typeof DeliverableUnit | null;
652
+ readonly deliverables: AsyncCollection<Deliverable>;
653
+ readonly tags?: (string | null)[] | null;
654
+ readonly disabled?: number | null;
655
+ readonly createdAt?: string | null;
656
+ readonly updatedAt?: string | null;
657
+ }
658
+
659
+ export declare type DeliverableType = LazyLoading extends LazyLoadingDisabled ? EagerDeliverableType : LazyDeliverableType
660
+
661
+ export declare const DeliverableType: (new (init: ModelInit<DeliverableType, DeliverableTypeMetaData>) => DeliverableType) & {
662
+ copyOf(source: DeliverableType, mutator: (draft: MutableModel<DeliverableType, DeliverableTypeMetaData>) => MutableModel<DeliverableType, DeliverableTypeMetaData> | void): DeliverableType;
663
+ }
664
+
665
+ type EagerDeliverable = {
666
+ readonly id: string;
667
+ readonly tenantId: string;
668
+ readonly deliverableType?: DeliverableType | null;
669
+ readonly task?: Task | null;
670
+ readonly scheduledTask?: ScheduledTask | null;
671
+ readonly count?: number | null;
672
+ readonly unit?: DeliverableUnit | keyof typeof DeliverableUnit | null;
673
+ readonly orderInGrid?: number | null;
674
+ readonly comments?: (Comment | null)[] | null;
675
+ readonly archived?: number | null;
676
+ readonly createdAt?: string | null;
677
+ readonly updatedAt?: string | null;
678
+ }
679
+
680
+ type LazyDeliverable = {
681
+ readonly id: string;
682
+ readonly tenantId: string;
683
+ readonly deliverableType: AsyncItem<DeliverableType | undefined>;
684
+ readonly task: AsyncItem<Task | undefined>;
685
+ readonly scheduledTask: AsyncItem<ScheduledTask | undefined>;
686
+ readonly count?: number | null;
687
+ readonly unit?: DeliverableUnit | keyof typeof DeliverableUnit | null;
688
+ readonly orderInGrid?: number | null;
689
+ readonly comments: AsyncCollection<Comment>;
690
+ readonly archived?: number | null;
691
+ readonly createdAt?: string | null;
692
+ readonly updatedAt?: string | null;
693
+ }
694
+
695
+ export declare type Deliverable = LazyLoading extends LazyLoadingDisabled ? EagerDeliverable : LazyDeliverable
696
+
697
+ export declare const Deliverable: (new (init: ModelInit<Deliverable, DeliverableMetaData>) => Deliverable) & {
698
+ copyOf(source: Deliverable, mutator: (draft: MutableModel<Deliverable, DeliverableMetaData>) => MutableModel<Deliverable, DeliverableMetaData> | void): Deliverable;
699
+ }
700
+
701
+ type EagerRiderResponsibility = {
702
+ readonly id: string;
703
+ readonly tenantId: string;
704
+ readonly label: string;
705
+ readonly disabled?: number | null;
706
+ readonly possibleUsers?: (PossibleRiderResponsibilities | null)[] | null;
707
+ readonly createdAt?: string | null;
708
+ readonly updatedAt?: string | null;
709
+ }
710
+
711
+ type LazyRiderResponsibility = {
712
+ readonly id: string;
713
+ readonly tenantId: string;
714
+ readonly label: string;
715
+ readonly disabled?: number | null;
716
+ readonly possibleUsers: AsyncCollection<PossibleRiderResponsibilities>;
717
+ readonly createdAt?: string | null;
718
+ readonly updatedAt?: string | null;
719
+ }
720
+
721
+ export declare type RiderResponsibility = LazyLoading extends LazyLoadingDisabled ? EagerRiderResponsibility : LazyRiderResponsibility
722
+
723
+ export declare const RiderResponsibility: (new (init: ModelInit<RiderResponsibility, RiderResponsibilityMetaData>) => RiderResponsibility) & {
724
+ copyOf(source: RiderResponsibility, mutator: (draft: MutableModel<RiderResponsibility, RiderResponsibilityMetaData>) => MutableModel<RiderResponsibility, RiderResponsibilityMetaData> | void): RiderResponsibility;
725
+ }