@truetms/truetms-node 0.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,2898 @@
1
+ import { GraphQLClient } from 'graphql-request';
2
+ import * as Dom from 'graphql-request/dist/types.dom';
3
+ import gql from 'graphql-tag';
4
+ export type Maybe<T> = T | null;
5
+ export type InputMaybe<T> = Maybe<T>;
6
+ export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
7
+ export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
8
+ export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
9
+ /** All built-in and custom scalars, mapped to their actual values */
10
+ export type Scalars = {
11
+ ID: string;
12
+ String: string;
13
+ Boolean: boolean;
14
+ Int: number;
15
+ Float: number;
16
+ ConditionValue: any;
17
+ DateTime: any;
18
+ Mixed: any;
19
+ ReportFilter: any;
20
+ ReportItemValue: any;
21
+ };
22
+
23
+ export type Activity = {
24
+ __typename?: 'Activity';
25
+ confidence: Scalars['Float'];
26
+ type: Scalars['String'];
27
+ };
28
+
29
+ /** Address with coordinates */
30
+ export type Address = {
31
+ __typename?: 'Address';
32
+ city?: Maybe<Scalars['String']>;
33
+ coordinates: Coordinates;
34
+ country?: Maybe<Scalars['String']>;
35
+ googlePlaceId?: Maybe<Scalars['String']>;
36
+ label: Scalars['String'];
37
+ line1?: Maybe<Scalars['String']>;
38
+ line2?: Maybe<Scalars['String']>;
39
+ postalCode?: Maybe<Scalars['String']>;
40
+ state?: Maybe<Scalars['String']>;
41
+ };
42
+
43
+ export enum AssetStatus {
44
+ Active = 'ACTIVE',
45
+ Inactive = 'INACTIVE'
46
+ }
47
+
48
+ export type Battery = {
49
+ __typename?: 'Battery';
50
+ is_charging: Scalars['Boolean'];
51
+ level: Scalars['Float'];
52
+ };
53
+
54
+ export enum BillingMethod {
55
+ FlatFee = 'FLAT_FEE',
56
+ PerDetentionHour = 'PER_DETENTION_HOUR',
57
+ PerHour = 'PER_HOUR',
58
+ PerMile = 'PER_MILE'
59
+ }
60
+
61
+ /** A customer billing rule */
62
+ export type BillingRule = {
63
+ __typename?: 'BillingRule';
64
+ _id: Scalars['String'];
65
+ amount: Scalars['Float'];
66
+ condition: BillingRuleCondition;
67
+ customer?: Maybe<BusinessEntity>;
68
+ label?: Maybe<Scalars['String']>;
69
+ method: BillingMethod;
70
+ referenceNumber?: Maybe<Scalars['String']>;
71
+ type: BillingRuleType;
72
+ };
73
+
74
+ export type BillingRuleCondition = {
75
+ __typename?: 'BillingRuleCondition';
76
+ operator: BillingRuleConditionOperator;
77
+ target: BillingRuleConditionTarget;
78
+ value?: Maybe<Scalars['ConditionValue']>;
79
+ };
80
+
81
+ export type BillingRuleConditionInput = {
82
+ operator: BillingRuleConditionOperator;
83
+ target: BillingRuleConditionTarget;
84
+ value?: InputMaybe<Scalars['ConditionValue']>;
85
+ };
86
+
87
+ export enum BillingRuleConditionOperator {
88
+ Equals = 'EQUALS',
89
+ IsBetween = 'IS_BETWEEN',
90
+ IsGreaterThanOrEqual = 'IS_GREATER_THAN_OR_EQUAL',
91
+ IsLessThanOrEqual = 'IS_LESS_THAN_OR_EQUAL'
92
+ }
93
+
94
+ export enum BillingRuleConditionTarget {
95
+ Date = 'DATE',
96
+ DetentionTime = 'DETENTION_TIME',
97
+ Mileage = 'MILEAGE',
98
+ Otherwise = 'OTHERWISE',
99
+ Receiver = 'RECEIVER',
100
+ Shipper = 'SHIPPER',
101
+ Time = 'TIME',
102
+ Trailer = 'TRAILER',
103
+ TrailerType = 'TRAILER_TYPE'
104
+ }
105
+
106
+ export type BillingRulePaginatedResult = {
107
+ __typename?: 'BillingRulePaginatedResult';
108
+ count: Scalars['Int'];
109
+ data: Array<BillingRule>;
110
+ };
111
+
112
+ export enum BillingRuleType {
113
+ Accessorial = 'ACCESSORIAL',
114
+ Primary = 'PRIMARY'
115
+ }
116
+
117
+ export type BillingRuleUpdateInput = {
118
+ amount?: InputMaybe<Scalars['Float']>;
119
+ condition?: InputMaybe<BillingRuleConditionInput>;
120
+ customer?: InputMaybe<Scalars['String']>;
121
+ label?: InputMaybe<Scalars['String']>;
122
+ method?: InputMaybe<BillingMethod>;
123
+ referenceNumber?: InputMaybe<Scalars['String']>;
124
+ type?: InputMaybe<BillingRuleType>;
125
+ };
126
+
127
+ /** A Broker Business entity */
128
+ export type Broker = {
129
+ __typename?: 'Broker';
130
+ _id: Scalars['String'];
131
+ additionalContacts?: Maybe<Array<Contact>>;
132
+ additionalTypes?: Maybe<Array<BusinessEntityType>>;
133
+ address: Address;
134
+ addressTimezone?: Maybe<Scalars['String']>;
135
+ billingAddress?: Maybe<TextualAddress>;
136
+ billingEmail?: Maybe<Scalars['String']>;
137
+ billingTermsDay?: Maybe<Scalars['Float']>;
138
+ code?: Maybe<Scalars['String']>;
139
+ contact: Contact;
140
+ goodInventoryItems?: Maybe<Array<GoodInventoryItem>>;
141
+ name: Scalars['String'];
142
+ openingSchedules?: Maybe<Array<OpeningSchedule>>;
143
+ remitAddress?: Maybe<TextualAddress>;
144
+ remitEmail?: Maybe<Scalars['String']>;
145
+ type: BusinessEntityType;
146
+ };
147
+
148
+ export type BrokerPaginatedResult = {
149
+ __typename?: 'BrokerPaginatedResult';
150
+ count: Scalars['Int'];
151
+ data: Array<Broker>;
152
+ };
153
+
154
+ /** Business entity */
155
+ export type BusinessEntity = {
156
+ __typename?: 'BusinessEntity';
157
+ _id: Scalars['String'];
158
+ additionalContacts?: Maybe<Array<Contact>>;
159
+ additionalTypes?: Maybe<Array<BusinessEntityType>>;
160
+ address: Address;
161
+ addressTimezone?: Maybe<Scalars['String']>;
162
+ billingAddress?: Maybe<TextualAddress>;
163
+ billingEmail?: Maybe<Scalars['String']>;
164
+ billingTermsDay?: Maybe<Scalars['Float']>;
165
+ code?: Maybe<Scalars['String']>;
166
+ contact: Contact;
167
+ goodInventoryItems?: Maybe<Array<GoodInventoryItem>>;
168
+ name: Scalars['String'];
169
+ openingSchedules?: Maybe<Array<OpeningSchedule>>;
170
+ remitAddress?: Maybe<TextualAddress>;
171
+ remitEmail?: Maybe<Scalars['String']>;
172
+ type: BusinessEntityType;
173
+ };
174
+
175
+ export enum BusinessEntityType {
176
+ Broker = 'BROKER',
177
+ Carrier = 'CARRIER',
178
+ Customer = 'CUSTOMER',
179
+ Receiver = 'RECEIVER',
180
+ Shipper = 'SHIPPER'
181
+ }
182
+
183
+ export type BusinessEntityUpdateInput = {
184
+ additionalContacts?: InputMaybe<Array<NewContactInput>>;
185
+ additionalTypes?: InputMaybe<Array<BusinessEntityType>>;
186
+ address?: InputMaybe<NewAddressInput>;
187
+ billingAddress?: InputMaybe<NewTextualAddressInput>;
188
+ billingEmail?: InputMaybe<Scalars['String']>;
189
+ billingTermsDay?: InputMaybe<Scalars['Float']>;
190
+ code?: InputMaybe<Scalars['String']>;
191
+ contact?: InputMaybe<NewContactInput>;
192
+ goodInventoryItems?: InputMaybe<Array<GoodInventoryItemInput>>;
193
+ name?: InputMaybe<Scalars['String']>;
194
+ openingSchedules?: InputMaybe<Array<OpeningScheduleInput>>;
195
+ remitAddress?: InputMaybe<NewTextualAddressInput>;
196
+ remitEmail?: InputMaybe<Scalars['String']>;
197
+ };
198
+
199
+ /** A Carrier Business entity */
200
+ export type Carrier = {
201
+ __typename?: 'Carrier';
202
+ _id: Scalars['String'];
203
+ additionalContacts?: Maybe<Array<Contact>>;
204
+ additionalTypes?: Maybe<Array<BusinessEntityType>>;
205
+ address: Address;
206
+ addressTimezone?: Maybe<Scalars['String']>;
207
+ billingAddress?: Maybe<TextualAddress>;
208
+ billingEmail?: Maybe<Scalars['String']>;
209
+ billingTermsDay?: Maybe<Scalars['Float']>;
210
+ code?: Maybe<Scalars['String']>;
211
+ contact: Contact;
212
+ goodInventoryItems?: Maybe<Array<GoodInventoryItem>>;
213
+ name: Scalars['String'];
214
+ openingSchedules?: Maybe<Array<OpeningSchedule>>;
215
+ remitAddress?: Maybe<TextualAddress>;
216
+ remitEmail?: Maybe<Scalars['String']>;
217
+ type: BusinessEntityType;
218
+ };
219
+
220
+ export type CarrierPaginatedResult = {
221
+ __typename?: 'CarrierPaginatedResult';
222
+ count: Scalars['Int'];
223
+ data: Array<Carrier>;
224
+ };
225
+
226
+ /** A Chassis entity */
227
+ export type Chassis = {
228
+ __typename?: 'Chassis';
229
+ _id: Scalars['String'];
230
+ lastKnownLocation?: Maybe<Coordinates>;
231
+ lastKnownLocationDate?: Maybe<Scalars['DateTime']>;
232
+ serialNumber: Scalars['String'];
233
+ status: AssetStatus;
234
+ };
235
+
236
+ export type ChassisPaginatedResult = {
237
+ __typename?: 'ChassisPaginatedResult';
238
+ count: Scalars['Int'];
239
+ data: Array<Chassis>;
240
+ };
241
+
242
+ /** Business entity contact */
243
+ export type Contact = {
244
+ __typename?: 'Contact';
245
+ email?: Maybe<Scalars['String']>;
246
+ firstname: Scalars['String'];
247
+ lastname: Scalars['String'];
248
+ middlename?: Maybe<Scalars['String']>;
249
+ phoneNumber: Scalars['String'];
250
+ };
251
+
252
+ export type Coordinates = {
253
+ __typename?: 'Coordinates';
254
+ altitude?: Maybe<Scalars['Float']>;
255
+ heading?: Maybe<Scalars['Float']>;
256
+ latitude: Scalars['Float'];
257
+ longitude: Scalars['Float'];
258
+ speed?: Maybe<Scalars['Float']>;
259
+ };
260
+
261
+ export type CoordinatesInput = {
262
+ altitude?: InputMaybe<Scalars['Float']>;
263
+ heading?: InputMaybe<Scalars['Float']>;
264
+ latitude: Scalars['Float'];
265
+ longitude: Scalars['Float'];
266
+ speed?: InputMaybe<Scalars['Float']>;
267
+ };
268
+
269
+ /** A Customer Business entity */
270
+ export type Customer = {
271
+ __typename?: 'Customer';
272
+ _id: Scalars['String'];
273
+ additionalContacts?: Maybe<Array<Contact>>;
274
+ additionalTypes?: Maybe<Array<BusinessEntityType>>;
275
+ address: Address;
276
+ addressTimezone?: Maybe<Scalars['String']>;
277
+ billingAddress?: Maybe<TextualAddress>;
278
+ billingEmail?: Maybe<Scalars['String']>;
279
+ billingTermsDay?: Maybe<Scalars['Float']>;
280
+ code?: Maybe<Scalars['String']>;
281
+ contact: Contact;
282
+ goodInventoryItems?: Maybe<Array<GoodInventoryItem>>;
283
+ name: Scalars['String'];
284
+ openingSchedules?: Maybe<Array<OpeningSchedule>>;
285
+ remitAddress?: Maybe<TextualAddress>;
286
+ remitEmail?: Maybe<Scalars['String']>;
287
+ type: BusinessEntityType;
288
+ };
289
+
290
+ export type CustomerPaginatedResult = {
291
+ __typename?: 'CustomerPaginatedResult';
292
+ count: Scalars['Int'];
293
+ data: Array<Customer>;
294
+ };
295
+
296
+ export type DateTimeWindow = {
297
+ __typename?: 'DateTimeWindow';
298
+ fromDate: Scalars['DateTime'];
299
+ toDate: Scalars['DateTime'];
300
+ };
301
+
302
+ export type DateTimeWindowInput = {
303
+ fromDate: Scalars['DateTime'];
304
+ toDate: Scalars['DateTime'];
305
+ };
306
+
307
+ /** A deduction/bonus from a driver settlement */
308
+ export type Deduction = {
309
+ __typename?: 'Deduction';
310
+ amount: Scalars['Float'];
311
+ date: Scalars['DateTime'];
312
+ deductionRule?: Maybe<DeductionRule>;
313
+ label: Scalars['String'];
314
+ type: DeductionType;
315
+ };
316
+
317
+ /** The period over which a deduction applies */
318
+ export type DeductionPeriod = {
319
+ __typename?: 'DeductionPeriod';
320
+ end: Scalars['DateTime'];
321
+ repeatEvery: Scalars['Float'];
322
+ start: Scalars['DateTime'];
323
+ unit: DeductionPeriodUnit;
324
+ };
325
+
326
+ export type DeductionPeriodInput = {
327
+ end: Scalars['DateTime'];
328
+ repeatEvery: Scalars['Float'];
329
+ start: Scalars['DateTime'];
330
+ unit: DeductionPeriodUnit;
331
+ };
332
+
333
+ export enum DeductionPeriodUnit {
334
+ Day = 'DAY',
335
+ Month = 'MONTH',
336
+ Week = 'WEEK',
337
+ Year = 'YEAR'
338
+ }
339
+
340
+ /** A driver deduction/bonus rule */
341
+ export type DeductionRule = {
342
+ __typename?: 'DeductionRule';
343
+ _id: Scalars['String'];
344
+ amount: Scalars['Float'];
345
+ driver?: Maybe<Driver>;
346
+ label: Scalars['String'];
347
+ method: DriverDeductionMethod;
348
+ period: DeductionPeriod;
349
+ type: DeductionType;
350
+ };
351
+
352
+ export type DeductionRulePaginatedResult = {
353
+ __typename?: 'DeductionRulePaginatedResult';
354
+ count: Scalars['Int'];
355
+ data: Array<DeductionRule>;
356
+ };
357
+
358
+ export type DeductionRuleUpdateInput = {
359
+ amount?: InputMaybe<Scalars['Float']>;
360
+ driver?: InputMaybe<Scalars['String']>;
361
+ label?: InputMaybe<Scalars['String']>;
362
+ method?: InputMaybe<DriverDeductionMethod>;
363
+ period?: InputMaybe<DeductionPeriodInput>;
364
+ type?: InputMaybe<DeductionType>;
365
+ };
366
+
367
+ export enum DeductionType {
368
+ Bonus = 'BONUS',
369
+ Deduction = 'DEDUCTION'
370
+ }
371
+
372
+ export type DeleteShipmentDocumentInput = {
373
+ _id?: InputMaybe<Scalars['String']>;
374
+ shipment?: InputMaybe<Scalars['String']>;
375
+ };
376
+
377
+ export type DeleteShipmentNoteInput = {
378
+ _id?: InputMaybe<Scalars['String']>;
379
+ shipment?: InputMaybe<Scalars['String']>;
380
+ };
381
+
382
+ export type DocumentSignedUrl = {
383
+ __typename?: 'DocumentSignedUrl';
384
+ url: Scalars['String'];
385
+ };
386
+
387
+ export type DocumentSignedUrlInput = {
388
+ extension?: InputMaybe<Scalars['String']>;
389
+ key?: InputMaybe<Scalars['String']>;
390
+ operation: S3_Operation;
391
+ };
392
+
393
+ /** Driver entity */
394
+ export type Driver = {
395
+ __typename?: 'Driver';
396
+ _id: Scalars['String'];
397
+ dateOfBirth?: Maybe<Scalars['DateTime']>;
398
+ dateOfPhysicalExamination?: Maybe<Scalars['DateTime']>;
399
+ documents?: Maybe<Array<DriverDocument>>;
400
+ /** Where the driver starts his journey everyday */
401
+ domicile?: Maybe<Address>;
402
+ eldId?: Maybe<Scalars['String']>;
403
+ firstname: Scalars['String'];
404
+ hos?: Maybe<DriverHos>;
405
+ isOwnerOperator?: Maybe<Scalars['Boolean']>;
406
+ lastKnownLocation?: Maybe<Coordinates>;
407
+ lastKnownLocationDate?: Maybe<Scalars['DateTime']>;
408
+ lastname: Scalars['String'];
409
+ license?: Maybe<DriverLicense>;
410
+ medical?: Maybe<DriverMedical>;
411
+ middlename?: Maybe<Scalars['String']>;
412
+ phoneNumber: Scalars['String'];
413
+ status: AssetStatus;
414
+ userId?: Maybe<Scalars['String']>;
415
+ };
416
+
417
+ export enum DriverDeductionMethod {
418
+ FlatFee = 'FLAT_FEE'
419
+ }
420
+
421
+ /** Driver document entity */
422
+ export type DriverDocument = {
423
+ __typename?: 'DriverDocument';
424
+ _id: Scalars['String'];
425
+ name: Scalars['String'];
426
+ url: Scalars['String'];
427
+ };
428
+
429
+ export type DriverDocumentInput = {
430
+ _id?: InputMaybe<Scalars['String']>;
431
+ name: Scalars['String'];
432
+ url: Scalars['String'];
433
+ };
434
+
435
+ export type DriverHos = {
436
+ __typename?: 'DriverHos';
437
+ currentDrivingTime: Scalars['Float'];
438
+ currentOnDutyTime: Scalars['Float'];
439
+ currentStatus: DriverHosStatus;
440
+ statusTime: Scalars['DateTime'];
441
+ totalDrivingTime: Scalars['Float'];
442
+ totalOnDutyTime: Scalars['Float'];
443
+ };
444
+
445
+ export type DriverHosInput = {
446
+ currentDrivingTime: Scalars['Float'];
447
+ currentOnDutyTime: Scalars['Float'];
448
+ currentStatus: DriverHosStatus;
449
+ statusTime: Scalars['DateTime'];
450
+ totalDrivingTime: Scalars['Float'];
451
+ totalOnDutyTime: Scalars['Float'];
452
+ };
453
+
454
+ export enum DriverHosStatus {
455
+ Driving = 'DRIVING',
456
+ OffDuty = 'OFF_DUTY',
457
+ OnDuty = 'ON_DUTY',
458
+ Sleeping = 'SLEEPING'
459
+ }
460
+
461
+ export type DriverLicense = {
462
+ __typename?: 'DriverLicense';
463
+ address?: Maybe<TextualAddress>;
464
+ classification?: Maybe<DriverLicenseClassification>;
465
+ endorsements?: Maybe<Array<DriverLicenseEndorsement>>;
466
+ expiryDate?: Maybe<Scalars['DateTime']>;
467
+ issuedDate?: Maybe<Scalars['DateTime']>;
468
+ issuedState?: Maybe<Scalars['String']>;
469
+ licenseNumber?: Maybe<Scalars['String']>;
470
+ restriction?: Maybe<DriverLicenseRestriction>;
471
+ };
472
+
473
+ export enum DriverLicenseClassification {
474
+ ClassA = 'CLASS_A',
475
+ ClassB = 'CLASS_B',
476
+ ClassC = 'CLASS_C'
477
+ }
478
+
479
+ export enum DriverLicenseEndorsement {
480
+ ComboTankHazardous = 'COMBO_TANK_HAZARDOUS',
481
+ HazardousMaterial = 'HAZARDOUS_MATERIAL',
482
+ PassengerVehicle = 'PASSENGER_VEHICLE',
483
+ SchoolBus = 'SCHOOL_BUS',
484
+ SemiTrailer = 'SEMI_TRAILER',
485
+ TankTruck = 'TANK_TRUCK',
486
+ TowTruck = 'TOW_TRUCK'
487
+ }
488
+
489
+ export type DriverLicenseInput = {
490
+ address?: InputMaybe<TextualAddressInput>;
491
+ classification?: InputMaybe<DriverLicenseClassification>;
492
+ endorsements?: InputMaybe<Array<DriverLicenseEndorsement>>;
493
+ expiryDate?: InputMaybe<Scalars['DateTime']>;
494
+ issuedDate?: InputMaybe<Scalars['DateTime']>;
495
+ issuedState?: InputMaybe<Scalars['String']>;
496
+ licenseNumber?: InputMaybe<Scalars['String']>;
497
+ restriction?: InputMaybe<DriverLicenseRestriction>;
498
+ };
499
+
500
+ export enum DriverLicenseRestriction {
501
+ B = 'B',
502
+ C = 'C',
503
+ D = 'D',
504
+ E = 'E',
505
+ F = 'F',
506
+ G = 'G',
507
+ K = 'K',
508
+ L = 'L',
509
+ M = 'M',
510
+ N = 'N',
511
+ O = 'O',
512
+ T = 'T',
513
+ Z = 'Z'
514
+ }
515
+
516
+ export type DriverMedical = {
517
+ __typename?: 'DriverMedical';
518
+ expiryDate?: Maybe<Scalars['DateTime']>;
519
+ issuedDate?: Maybe<Scalars['DateTime']>;
520
+ number?: Maybe<Scalars['String']>;
521
+ restriction?: Maybe<Scalars['String']>;
522
+ };
523
+
524
+ export type DriverMedicalInput = {
525
+ expiryDate?: InputMaybe<Scalars['DateTime']>;
526
+ issuedDate?: InputMaybe<Scalars['DateTime']>;
527
+ number?: InputMaybe<Scalars['String']>;
528
+ restriction?: InputMaybe<Scalars['String']>;
529
+ };
530
+
531
+ export type DriverPaginatedResult = {
532
+ __typename?: 'DriverPaginatedResult';
533
+ count: Scalars['Int'];
534
+ data: Array<Driver>;
535
+ };
536
+
537
+ export enum DriverPaymentMethod {
538
+ PerHour = 'PER_HOUR',
539
+ PerMile = 'PER_MILE',
540
+ RevenueShare = 'REVENUE_SHARE'
541
+ }
542
+
543
+ /** A driver settlement */
544
+ export type DriverSettlement = {
545
+ __typename?: 'DriverSettlement';
546
+ _id: Scalars['String'];
547
+ deductions: Array<Deduction>;
548
+ driver?: Maybe<Driver>;
549
+ driverSettlementNumber: Scalars['String'];
550
+ endDate: Scalars['DateTime'];
551
+ payments: Array<TripPayment>;
552
+ pdfDocument: DriverSettlementPdf;
553
+ startDate: Scalars['DateTime'];
554
+ trips?: Maybe<Array<Trip>>;
555
+ };
556
+
557
+ export type DriverSettlementPaginatedResult = {
558
+ __typename?: 'DriverSettlementPaginatedResult';
559
+ count: Scalars['Int'];
560
+ data: Array<DriverSettlement>;
561
+ };
562
+
563
+ /** A driver settlement pdf file */
564
+ export type DriverSettlementPdf = {
565
+ __typename?: 'DriverSettlementPdf';
566
+ error?: Maybe<Scalars['String']>;
567
+ isGenerating: Scalars['Boolean'];
568
+ url?: Maybe<Scalars['String']>;
569
+ };
570
+
571
+ export type DriverUpdateInput = {
572
+ dateOfBirth?: InputMaybe<Scalars['DateTime']>;
573
+ dateOfPhysicalExamination?: InputMaybe<Scalars['DateTime']>;
574
+ documents?: InputMaybe<Array<DriverDocumentInput>>;
575
+ /** Where the driver starts his journey everyday */
576
+ domicile?: InputMaybe<NewAddressInput>;
577
+ eldId?: InputMaybe<Scalars['String']>;
578
+ email?: InputMaybe<Scalars['String']>;
579
+ firstname?: InputMaybe<Scalars['String']>;
580
+ hos?: InputMaybe<DriverHosInput>;
581
+ isOwnerOperator?: InputMaybe<Scalars['Boolean']>;
582
+ lastname?: InputMaybe<Scalars['String']>;
583
+ license?: InputMaybe<DriverLicenseInput>;
584
+ medical?: InputMaybe<DriverMedicalInput>;
585
+ middlename?: InputMaybe<Scalars['String']>;
586
+ password?: InputMaybe<Scalars['String']>;
587
+ phoneNumber?: InputMaybe<Scalars['String']>;
588
+ status?: InputMaybe<AssetStatus>;
589
+ username?: InputMaybe<Scalars['String']>;
590
+ };
591
+
592
+ export type EditShipmentDocumentInput = {
593
+ _id?: InputMaybe<Scalars['String']>;
594
+ accessLevel: Array<NoteAccessLevel>;
595
+ associatedCharge?: InputMaybe<Scalars['String']>;
596
+ isBillable: Scalars['Boolean'];
597
+ name: Scalars['String'];
598
+ receiver?: InputMaybe<Scalars['String']>;
599
+ shipment?: InputMaybe<Scalars['String']>;
600
+ shipper?: InputMaybe<Scalars['String']>;
601
+ type: Scalars['String'];
602
+ url: Scalars['String'];
603
+ };
604
+
605
+ export type EditShipmentNoteInput = {
606
+ _id?: InputMaybe<Scalars['String']>;
607
+ accessLevel: Array<NoteAccessLevel>;
608
+ content: Scalars['String'];
609
+ receiver?: InputMaybe<Scalars['String']>;
610
+ shipment?: InputMaybe<Scalars['String']>;
611
+ shipper?: InputMaybe<Scalars['String']>;
612
+ };
613
+
614
+ /** Extension */
615
+ export type Extension = {
616
+ __typename?: 'Extension';
617
+ _id: Scalars['String'];
618
+ configurationDefinitions: Array<ExtensionConfigurationDefinition>;
619
+ description: Scalars['String'];
620
+ name: Scalars['String'];
621
+ settings: ExtensionSettings;
622
+ websiteUrl?: Maybe<Scalars['String']>;
623
+ };
624
+
625
+ /** Extension configuration definition */
626
+ export type ExtensionConfigurationDefinition = {
627
+ __typename?: 'ExtensionConfigurationDefinition';
628
+ defaultValue?: Maybe<Scalars['String']>;
629
+ description: Scalars['String'];
630
+ name: Scalars['String'];
631
+ required: Scalars['Boolean'];
632
+ type: Scalars['String'];
633
+ };
634
+
635
+ /** Extension configuration value */
636
+ export type ExtensionConfigurationValue = {
637
+ __typename?: 'ExtensionConfigurationValue';
638
+ name: Scalars['String'];
639
+ value: Scalars['Mixed'];
640
+ };
641
+
642
+ /** Extension configuration value */
643
+ export type ExtensionConfigurationValueInput = {
644
+ name: Scalars['String'];
645
+ value: Scalars['Mixed'];
646
+ };
647
+
648
+ /** Extension hook */
649
+ export type ExtensionHook = {
650
+ __typename?: 'ExtensionHook';
651
+ endpoint: Scalars['String'];
652
+ operation: ExtensionHookOperation;
653
+ };
654
+
655
+ export enum ExtensionHookOperation {
656
+ GetInvoiceTemplate = 'GET_INVOICE_TEMPLATE',
657
+ SendInvoice = 'SEND_INVOICE'
658
+ }
659
+
660
+ export type ExtensionInstallWithRedirectUrl = {
661
+ __typename?: 'ExtensionInstallWithRedirectUrl';
662
+ configurationValues: Array<ExtensionConfigurationValue>;
663
+ extension: Extension;
664
+ installedAt: Scalars['DateTime'];
665
+ installedBy: Scalars['String'];
666
+ redirectUrl?: Maybe<Scalars['String']>;
667
+ };
668
+
669
+ /** Extension message */
670
+ export type ExtensionMessage = {
671
+ __typename?: 'ExtensionMessage';
672
+ extensionId: Scalars['String'];
673
+ extensionName: Scalars['String'];
674
+ text: Scalars['String'];
675
+ type: ExtensionMessageType;
676
+ };
677
+
678
+ export enum ExtensionMessageType {
679
+ Error = 'ERROR',
680
+ Info = 'INFO',
681
+ Warning = 'WARNING'
682
+ }
683
+
684
+ export type ExtensionPaginatedResult = {
685
+ __typename?: 'ExtensionPaginatedResult';
686
+ count: Scalars['Int'];
687
+ data: Array<ExtensionWithStatus>;
688
+ };
689
+
690
+ /** Extension settings */
691
+ export type ExtensionSettings = {
692
+ __typename?: 'ExtensionSettings';
693
+ authEndpoint: Scalars['String'];
694
+ hooks: Array<ExtensionHook>;
695
+ installEndpoint: Scalars['String'];
696
+ messagesEndpoint: Scalars['String'];
697
+ rootUrl: Scalars['String'];
698
+ uninstallEndpoint: Scalars['String'];
699
+ };
700
+
701
+ export type ExtensionWithStatus = {
702
+ __typename?: 'ExtensionWithStatus';
703
+ extension: Extension;
704
+ installed: Scalars['Boolean'];
705
+ };
706
+
707
+ export type Extras = {
708
+ __typename?: 'Extras';
709
+ tripId: Scalars['String'];
710
+ };
711
+
712
+ export type FeelsLike = {
713
+ __typename?: 'FeelsLike';
714
+ day?: Maybe<Scalars['Float']>;
715
+ eve?: Maybe<Scalars['Float']>;
716
+ morn?: Maybe<Scalars['Float']>;
717
+ night?: Maybe<Scalars['Float']>;
718
+ };
719
+
720
+ export type Good = {
721
+ __typename?: 'Good';
722
+ _id: Scalars['String'];
723
+ label: Scalars['String'];
724
+ pallet?: Maybe<Scalars['Float']>;
725
+ pieces?: Maybe<Scalars['Float']>;
726
+ quantity: Scalars['Float'];
727
+ weight: Scalars['Float'];
728
+ };
729
+
730
+ export type GoodDistribution = {
731
+ __typename?: 'GoodDistribution';
732
+ goodId: Scalars['String'];
733
+ quantity?: Maybe<Scalars['Float']>;
734
+ };
735
+
736
+ export type GoodDistributionInput = {
737
+ goodId: Scalars['String'];
738
+ quantity?: InputMaybe<Scalars['Float']>;
739
+ };
740
+
741
+ export type GoodInput = {
742
+ _id: Scalars['String'];
743
+ label: Scalars['String'];
744
+ pallet?: InputMaybe<Scalars['Float']>;
745
+ pieces?: InputMaybe<Scalars['Float']>;
746
+ quantity: Scalars['Float'];
747
+ weight: Scalars['Float'];
748
+ };
749
+
750
+ /** Good inventory item */
751
+ export type GoodInventoryItem = {
752
+ __typename?: 'GoodInventoryItem';
753
+ _id?: Maybe<Scalars['String']>;
754
+ label: Scalars['String'];
755
+ weight?: Maybe<Scalars['Float']>;
756
+ };
757
+
758
+ export type GoodInventoryItemInput = {
759
+ _id?: InputMaybe<Scalars['String']>;
760
+ label: Scalars['String'];
761
+ weight?: InputMaybe<Scalars['Float']>;
762
+ };
763
+
764
+ /** An invoice */
765
+ export type Invoice = {
766
+ __typename?: 'Invoice';
767
+ _id: Scalars['String'];
768
+ charges: Array<ShipmentCharge>;
769
+ customer?: Maybe<BusinessEntity>;
770
+ invoiceNumber: Scalars['String'];
771
+ pdfDocument: InvoicePdf;
772
+ shipment?: Maybe<Shipment>;
773
+ status: InvoiceStatus;
774
+ };
775
+
776
+ export type InvoicePaginatedResult = {
777
+ __typename?: 'InvoicePaginatedResult';
778
+ count: Scalars['Int'];
779
+ data: Array<Invoice>;
780
+ };
781
+
782
+ /** An invoice pdf file */
783
+ export type InvoicePdf = {
784
+ __typename?: 'InvoicePdf';
785
+ error?: Maybe<Scalars['String']>;
786
+ isGenerating: Scalars['Boolean'];
787
+ url?: Maybe<Scalars['String']>;
788
+ };
789
+
790
+ export enum InvoiceStatus {
791
+ Cancelled = 'CANCELLED',
792
+ Closed = 'CLOSED',
793
+ Draft = 'DRAFT',
794
+ Paid = 'PAID',
795
+ Sent = 'SENT'
796
+ }
797
+
798
+ export type KeycloakOrganization = {
799
+ __typename?: 'KeycloakOrganization';
800
+ attributes?: Maybe<KeycloakOrganizationAttributes>;
801
+ displayName: Scalars['String'];
802
+ id: Scalars['String'];
803
+ name: Scalars['String'];
804
+ realm: Scalars['String'];
805
+ };
806
+
807
+ export type KeycloakOrganizationAttributes = {
808
+ __typename?: 'KeycloakOrganizationAttributes';
809
+ chargebeeCustomerId?: Maybe<Scalars['String']>;
810
+ dotNumber?: Maybe<Scalars['String']>;
811
+ };
812
+
813
+ export type KeycloakUserAttributes = {
814
+ __typename?: 'KeycloakUserAttributes';
815
+ driverId?: Maybe<Array<Scalars['String']>>;
816
+ };
817
+
818
+ export type KeycloakUserAttributesInput = {
819
+ driverId?: InputMaybe<Array<Scalars['String']>>;
820
+ };
821
+
822
+ export type KeycloakUserRole = {
823
+ __typename?: 'KeycloakUserRole';
824
+ id: Scalars['String'];
825
+ name: Scalars['String'];
826
+ };
827
+
828
+ export type KeycloakUserRoleInput = {
829
+ id: Scalars['String'];
830
+ name: Scalars['String'];
831
+ };
832
+
833
+ /** Load state of a given trip */
834
+ export type LoadState = {
835
+ __typename?: 'LoadState';
836
+ distance: Scalars['Float'];
837
+ endPosition?: Maybe<TripDriverPosition>;
838
+ event?: Maybe<ShipmentEvent>;
839
+ goods: Array<Good>;
840
+ startDate: Scalars['DateTime'];
841
+ startPosition?: Maybe<TripDriverPosition>;
842
+ };
843
+
844
+ export enum LoadType {
845
+ FullTruckLoad = 'FULL_TRUCK_LOAD',
846
+ LessThanTruckLoad = 'LESS_THAN_TRUCK_LOAD'
847
+ }
848
+
849
+ export type LocationTraffic = {
850
+ __typename?: 'LocationTraffic';
851
+ arrivalLocationTime?: Maybe<Scalars['DateTime']>;
852
+ baseDuration?: Maybe<Scalars['Float']>;
853
+ duration?: Maybe<Scalars['Float']>;
854
+ lastUpdate: Scalars['DateTime'];
855
+ length?: Maybe<Scalars['Float']>;
856
+ typicalDuration?: Maybe<Scalars['Float']>;
857
+ };
858
+
859
+ export type LocationWeather = {
860
+ __typename?: 'LocationWeather';
861
+ clouds?: Maybe<Scalars['Float']>;
862
+ dew_point?: Maybe<Scalars['Float']>;
863
+ dt?: Maybe<Scalars['Float']>;
864
+ feels_like?: Maybe<FeelsLike>;
865
+ humidity?: Maybe<Scalars['Float']>;
866
+ lastUpdate: Scalars['DateTime'];
867
+ moon_phase?: Maybe<Scalars['Float']>;
868
+ moonrise?: Maybe<Scalars['Float']>;
869
+ moonset?: Maybe<Scalars['Float']>;
870
+ pop?: Maybe<Scalars['Float']>;
871
+ pressure?: Maybe<Scalars['Float']>;
872
+ rain?: Maybe<Scalars['Float']>;
873
+ snow?: Maybe<Scalars['Float']>;
874
+ sunrise?: Maybe<Scalars['Float']>;
875
+ sunset?: Maybe<Scalars['Float']>;
876
+ temp?: Maybe<Temp>;
877
+ timezone: Scalars['String'];
878
+ timezone_offset: Scalars['Float'];
879
+ uvi?: Maybe<Scalars['Float']>;
880
+ weather?: Maybe<Array<WeatherInfo>>;
881
+ wind_deg?: Maybe<Scalars['Float']>;
882
+ wind_gust?: Maybe<Scalars['Float']>;
883
+ wind_speed?: Maybe<Scalars['Float']>;
884
+ };
885
+
886
+ export type MultiDocumentSignedUrlInput = {
887
+ documents: Array<DocumentSignedUrlInput>;
888
+ };
889
+
890
+ export type MultiShipmentNotesInput = {
891
+ notes: Array<ShipmentNoteInput>;
892
+ shipment?: InputMaybe<Scalars['String']>;
893
+ };
894
+
895
+ export type Mutation = {
896
+ __typename?: 'Mutation';
897
+ addBillingRule: BillingRule;
898
+ addBroker: Broker;
899
+ addCarrier: Carrier;
900
+ addChassis: Chassis;
901
+ addCustomer: Customer;
902
+ addDeductionRule: DeductionRule;
903
+ addDriver: Driver;
904
+ addNotesShipment: Shipment;
905
+ addOrgUser: OrgUser;
906
+ addPaymentRule: PaymentRule;
907
+ addReceiver: Receiver;
908
+ addShipment: Shipment;
909
+ addShipmentDocument: ShipmentDocument;
910
+ addShipmentDocuments: Array<ShipmentDocument>;
911
+ addShipmentEvent: Shipment;
912
+ addShipper: Shipper;
913
+ addTractor: Tractor;
914
+ addTrailer: Trailer;
915
+ addTrip: Trip;
916
+ assignTripAsset: Trip;
917
+ deleteBillingRule: Scalars['Boolean'];
918
+ deleteBroker: Scalars['Boolean'];
919
+ deleteCustomer: Scalars['Boolean'];
920
+ deleteDeductionRule: Scalars['Boolean'];
921
+ deleteDocumentShipment: Shipment;
922
+ deleteDriver: Scalars['Boolean'];
923
+ deleteDriverSettlement: Scalars['Boolean'];
924
+ deleteInvoice: Scalars['Boolean'];
925
+ deleteOrgUser: Scalars['Boolean'];
926
+ deletePaymentRule: Scalars['Boolean'];
927
+ deleteReceiver: Scalars['Boolean'];
928
+ deleteShipment: Shipment;
929
+ deleteShipmentNote: Shipment;
930
+ deleteShipper: Scalars['Boolean'];
931
+ deleteTractor: Scalars['Boolean'];
932
+ deleteTrailer: Scalars['Boolean'];
933
+ deleteTrip: Trip;
934
+ documentSignedUrl: DocumentSignedUrl;
935
+ editBillingRule: BillingRule;
936
+ editBroker: Broker;
937
+ editCustomer: Customer;
938
+ editDeductionRule: DeductionRule;
939
+ editDocumentShipment: Shipment;
940
+ editDriver: Driver;
941
+ editNoteShipment: Shipment;
942
+ editOrgUser: OrgUser;
943
+ editPaymentRule?: Maybe<PaymentRule>;
944
+ editReceiver: Receiver;
945
+ editShipment: Shipment;
946
+ editShipper: Shipper;
947
+ editTractor: Tractor;
948
+ editTrailer: Trailer;
949
+ generateDriverSettlement: DriverSettlement;
950
+ generateInvoice: Invoice;
951
+ generateReportPdf: ReportPdf;
952
+ generateTripsForPendingShipments: TripGenerationResult;
953
+ getCheckoutSession: SubscriptionCheckoutSession;
954
+ getSubscriptionPortalSession: SubscriptionPortalSession;
955
+ installExtension: ExtensionInstallWithRedirectUrl;
956
+ multipleDocumentSignedUrl: Array<DocumentSignedUrl>;
957
+ persistTractorPositions: Scalars['Boolean'];
958
+ reportShipmentIssue: Shipment;
959
+ restoreShipment: Shipment;
960
+ sendInvoice?: Maybe<Invoice>;
961
+ setupOrganization: Scalars['String'];
962
+ startTrip: Trip;
963
+ uninstallExtension: Scalars['Boolean'];
964
+ updateInvoiceStatus?: Maybe<Invoice>;
965
+ updatePassword: Scalars['Boolean'];
966
+ };
967
+
968
+
969
+ export type MutationAddBillingRuleArgs = {
970
+ newBillingRuleData: NewBillingRuleInput;
971
+ };
972
+
973
+
974
+ export type MutationAddBrokerArgs = {
975
+ newBrokerData: NewBusinessEntityInput;
976
+ };
977
+
978
+
979
+ export type MutationAddCarrierArgs = {
980
+ newCarrierData: NewBusinessEntityInput;
981
+ };
982
+
983
+
984
+ export type MutationAddChassisArgs = {
985
+ newChassisData: NewTractorInput;
986
+ };
987
+
988
+
989
+ export type MutationAddCustomerArgs = {
990
+ newCustomerData: NewBusinessEntityInput;
991
+ };
992
+
993
+
994
+ export type MutationAddDeductionRuleArgs = {
995
+ newDeductionRuleData: NewDeductionRuleInput;
996
+ };
997
+
998
+
999
+ export type MutationAddDriverArgs = {
1000
+ newDriverData: NewDriverInput;
1001
+ };
1002
+
1003
+
1004
+ export type MutationAddNotesShipmentArgs = {
1005
+ newNotesData: MultiShipmentNotesInput;
1006
+ };
1007
+
1008
+
1009
+ export type MutationAddOrgUserArgs = {
1010
+ newOrgUserData: NewOrgUserInput;
1011
+ };
1012
+
1013
+
1014
+ export type MutationAddPaymentRuleArgs = {
1015
+ newPaymentRuleData: NewPaymentRuleInput;
1016
+ };
1017
+
1018
+
1019
+ export type MutationAddReceiverArgs = {
1020
+ newReceiverData: NewBusinessEntityInput;
1021
+ };
1022
+
1023
+
1024
+ export type MutationAddShipmentArgs = {
1025
+ newShipmentData: NewShipmentInput;
1026
+ };
1027
+
1028
+
1029
+ export type MutationAddShipmentDocumentArgs = {
1030
+ newDocumentData: ShipmentDocumentInput;
1031
+ };
1032
+
1033
+
1034
+ export type MutationAddShipmentDocumentsArgs = {
1035
+ newDocumentsData: Array<ShipmentDocumentInfoInput>;
1036
+ shipment: Scalars['String'];
1037
+ };
1038
+
1039
+
1040
+ export type MutationAddShipmentEventArgs = {
1041
+ shipmentEventData: ShipmentEventInput;
1042
+ };
1043
+
1044
+
1045
+ export type MutationAddShipperArgs = {
1046
+ newShipperData: NewBusinessEntityInput;
1047
+ };
1048
+
1049
+
1050
+ export type MutationAddTractorArgs = {
1051
+ newTractorData: NewTractorInput;
1052
+ };
1053
+
1054
+
1055
+ export type MutationAddTrailerArgs = {
1056
+ newTrailerData: NewTrailerInput;
1057
+ };
1058
+
1059
+
1060
+ export type MutationAddTripArgs = {
1061
+ newTripData: NewTripInput;
1062
+ };
1063
+
1064
+
1065
+ export type MutationAssignTripAssetArgs = {
1066
+ tripAssetAssignmentData: TripAssetAssignment;
1067
+ };
1068
+
1069
+
1070
+ export type MutationDeleteBillingRuleArgs = {
1071
+ id: Scalars['String'];
1072
+ };
1073
+
1074
+
1075
+ export type MutationDeleteBrokerArgs = {
1076
+ id: Scalars['String'];
1077
+ };
1078
+
1079
+
1080
+ export type MutationDeleteCustomerArgs = {
1081
+ id: Scalars['String'];
1082
+ };
1083
+
1084
+
1085
+ export type MutationDeleteDeductionRuleArgs = {
1086
+ id: Scalars['String'];
1087
+ };
1088
+
1089
+
1090
+ export type MutationDeleteDocumentShipmentArgs = {
1091
+ deleteDocumentData: DeleteShipmentDocumentInput;
1092
+ };
1093
+
1094
+
1095
+ export type MutationDeleteDriverArgs = {
1096
+ id: Scalars['String'];
1097
+ };
1098
+
1099
+
1100
+ export type MutationDeleteDriverSettlementArgs = {
1101
+ id: Scalars['String'];
1102
+ };
1103
+
1104
+
1105
+ export type MutationDeleteInvoiceArgs = {
1106
+ id: Scalars['String'];
1107
+ };
1108
+
1109
+
1110
+ export type MutationDeleteOrgUserArgs = {
1111
+ id: Scalars['String'];
1112
+ };
1113
+
1114
+
1115
+ export type MutationDeletePaymentRuleArgs = {
1116
+ id: Scalars['String'];
1117
+ };
1118
+
1119
+
1120
+ export type MutationDeleteReceiverArgs = {
1121
+ id: Scalars['String'];
1122
+ };
1123
+
1124
+
1125
+ export type MutationDeleteShipmentArgs = {
1126
+ deleteShipmentData?: InputMaybe<ShipmentDeleteInput>;
1127
+ id: Scalars['String'];
1128
+ };
1129
+
1130
+
1131
+ export type MutationDeleteShipmentNoteArgs = {
1132
+ deleteNoteData: DeleteShipmentNoteInput;
1133
+ };
1134
+
1135
+
1136
+ export type MutationDeleteShipperArgs = {
1137
+ id: Scalars['String'];
1138
+ };
1139
+
1140
+
1141
+ export type MutationDeleteTractorArgs = {
1142
+ id: Scalars['String'];
1143
+ };
1144
+
1145
+
1146
+ export type MutationDeleteTrailerArgs = {
1147
+ id: Scalars['String'];
1148
+ };
1149
+
1150
+
1151
+ export type MutationDeleteTripArgs = {
1152
+ id: Scalars['String'];
1153
+ };
1154
+
1155
+
1156
+ export type MutationDocumentSignedUrlArgs = {
1157
+ newDocumentSignedUrl: DocumentSignedUrlInput;
1158
+ };
1159
+
1160
+
1161
+ export type MutationEditBillingRuleArgs = {
1162
+ editBillingRuleData: BillingRuleUpdateInput;
1163
+ id: Scalars['String'];
1164
+ };
1165
+
1166
+
1167
+ export type MutationEditBrokerArgs = {
1168
+ editBrokerData: BusinessEntityUpdateInput;
1169
+ id: Scalars['String'];
1170
+ };
1171
+
1172
+
1173
+ export type MutationEditCustomerArgs = {
1174
+ editCustomerData: BusinessEntityUpdateInput;
1175
+ id: Scalars['String'];
1176
+ };
1177
+
1178
+
1179
+ export type MutationEditDeductionRuleArgs = {
1180
+ editDeductionRuleData: DeductionRuleUpdateInput;
1181
+ id: Scalars['String'];
1182
+ };
1183
+
1184
+
1185
+ export type MutationEditDocumentShipmentArgs = {
1186
+ editDocumentData: EditShipmentDocumentInput;
1187
+ };
1188
+
1189
+
1190
+ export type MutationEditDriverArgs = {
1191
+ editDriverData: DriverUpdateInput;
1192
+ id: Scalars['String'];
1193
+ };
1194
+
1195
+
1196
+ export type MutationEditNoteShipmentArgs = {
1197
+ editNoteData: EditShipmentNoteInput;
1198
+ };
1199
+
1200
+
1201
+ export type MutationEditOrgUserArgs = {
1202
+ editOrgUserData: OrgUserUpdateInput;
1203
+ id: Scalars['String'];
1204
+ };
1205
+
1206
+
1207
+ export type MutationEditPaymentRuleArgs = {
1208
+ editPaymentRuleData: PaymentRuleUpdateInput;
1209
+ id: Scalars['String'];
1210
+ };
1211
+
1212
+
1213
+ export type MutationEditReceiverArgs = {
1214
+ editReceiverData: BusinessEntityUpdateInput;
1215
+ id: Scalars['String'];
1216
+ };
1217
+
1218
+
1219
+ export type MutationEditShipmentArgs = {
1220
+ editShipmentData: ShipmentUpdateInput;
1221
+ id: Scalars['String'];
1222
+ };
1223
+
1224
+
1225
+ export type MutationEditShipperArgs = {
1226
+ editShipperData: BusinessEntityUpdateInput;
1227
+ id: Scalars['String'];
1228
+ };
1229
+
1230
+
1231
+ export type MutationEditTractorArgs = {
1232
+ editTractorData: TractorUpdateInput;
1233
+ id: Scalars['String'];
1234
+ };
1235
+
1236
+
1237
+ export type MutationEditTrailerArgs = {
1238
+ editTrailerData: TrailerUpdateInput;
1239
+ id: Scalars['String'];
1240
+ };
1241
+
1242
+
1243
+ export type MutationGenerateDriverSettlementArgs = {
1244
+ driverId: Scalars['String'];
1245
+ driverSettlementNumber?: InputMaybe<Scalars['String']>;
1246
+ endDate: Scalars['DateTime'];
1247
+ startDate: Scalars['DateTime'];
1248
+ };
1249
+
1250
+
1251
+ export type MutationGenerateInvoiceArgs = {
1252
+ invoiceNumber?: InputMaybe<Scalars['String']>;
1253
+ shipmentId: Scalars['String'];
1254
+ };
1255
+
1256
+
1257
+ export type MutationGenerateReportPdfArgs = {
1258
+ filter?: InputMaybe<Scalars['ReportFilter']>;
1259
+ period: PeriodInput;
1260
+ reportType: ReportType;
1261
+ };
1262
+
1263
+
1264
+ export type MutationInstallExtensionArgs = {
1265
+ configurationValues: Array<ExtensionConfigurationValueInput>;
1266
+ extensionId: Scalars['String'];
1267
+ };
1268
+
1269
+
1270
+ export type MutationMultipleDocumentSignedUrlArgs = {
1271
+ newMultiDocumentSignedUrl: MultiDocumentSignedUrlInput;
1272
+ };
1273
+
1274
+
1275
+ export type MutationPersistTractorPositionsArgs = {
1276
+ id: Scalars['String'];
1277
+ positions: Array<TractorPositionInput>;
1278
+ };
1279
+
1280
+
1281
+ export type MutationReportShipmentIssueArgs = {
1282
+ shipmentIssueData: ShipmentIssueInput;
1283
+ };
1284
+
1285
+
1286
+ export type MutationRestoreShipmentArgs = {
1287
+ id: Scalars['String'];
1288
+ };
1289
+
1290
+
1291
+ export type MutationSendInvoiceArgs = {
1292
+ invoiceId: Scalars['String'];
1293
+ };
1294
+
1295
+
1296
+ export type MutationSetupOrganizationArgs = {
1297
+ organizationSetupData: OrganizationSetupData;
1298
+ };
1299
+
1300
+
1301
+ export type MutationStartTripArgs = {
1302
+ startTripData: StartTripInput;
1303
+ };
1304
+
1305
+
1306
+ export type MutationUninstallExtensionArgs = {
1307
+ extensionId: Scalars['String'];
1308
+ };
1309
+
1310
+
1311
+ export type MutationUpdateInvoiceStatusArgs = {
1312
+ invoiceId: Scalars['String'];
1313
+ status: InvoiceStatus;
1314
+ };
1315
+
1316
+
1317
+ export type MutationUpdatePasswordArgs = {
1318
+ id: Scalars['String'];
1319
+ temporaryPassword: Scalars['String'];
1320
+ };
1321
+
1322
+ export type NewAddressInput = {
1323
+ city?: InputMaybe<Scalars['String']>;
1324
+ coordinates: CoordinatesInput;
1325
+ country?: InputMaybe<Scalars['String']>;
1326
+ googlePlaceId?: InputMaybe<Scalars['String']>;
1327
+ label: Scalars['String'];
1328
+ line1?: InputMaybe<Scalars['String']>;
1329
+ line2?: InputMaybe<Scalars['String']>;
1330
+ postalCode?: InputMaybe<Scalars['String']>;
1331
+ state?: InputMaybe<Scalars['String']>;
1332
+ };
1333
+
1334
+ export type NewBillingRuleInput = {
1335
+ amount: Scalars['Float'];
1336
+ condition: BillingRuleConditionInput;
1337
+ customer?: InputMaybe<Scalars['String']>;
1338
+ label?: InputMaybe<Scalars['String']>;
1339
+ method: BillingMethod;
1340
+ referenceNumber?: InputMaybe<Scalars['String']>;
1341
+ type: BillingRuleType;
1342
+ };
1343
+
1344
+ export type NewBusinessEntityInput = {
1345
+ additionalContacts?: InputMaybe<Array<NewContactInput>>;
1346
+ additionalTypes?: InputMaybe<Array<BusinessEntityType>>;
1347
+ address: NewAddressInput;
1348
+ billingAddress?: InputMaybe<NewTextualAddressInput>;
1349
+ billingEmail?: InputMaybe<Scalars['String']>;
1350
+ billingTermsDay?: InputMaybe<Scalars['Float']>;
1351
+ code?: InputMaybe<Scalars['String']>;
1352
+ contact: NewContactInput;
1353
+ goodInventoryItems?: InputMaybe<Array<GoodInventoryItemInput>>;
1354
+ name: Scalars['String'];
1355
+ openingSchedules?: InputMaybe<Array<OpeningScheduleInput>>;
1356
+ remitAddress?: InputMaybe<NewTextualAddressInput>;
1357
+ remitEmail?: InputMaybe<Scalars['String']>;
1358
+ };
1359
+
1360
+ export type NewContactInput = {
1361
+ email?: InputMaybe<Scalars['String']>;
1362
+ firstname: Scalars['String'];
1363
+ lastname: Scalars['String'];
1364
+ middlename?: InputMaybe<Scalars['String']>;
1365
+ phoneNumber: Scalars['String'];
1366
+ };
1367
+
1368
+ export type NewDeductionRuleInput = {
1369
+ amount: Scalars['Float'];
1370
+ driver?: InputMaybe<Scalars['String']>;
1371
+ label: Scalars['String'];
1372
+ method: DriverDeductionMethod;
1373
+ period: DeductionPeriodInput;
1374
+ type: DeductionType;
1375
+ };
1376
+
1377
+ export type NewDriverInput = {
1378
+ dateOfBirth?: InputMaybe<Scalars['DateTime']>;
1379
+ dateOfPhysicalExamination?: InputMaybe<Scalars['DateTime']>;
1380
+ documents?: InputMaybe<Array<DriverDocumentInput>>;
1381
+ /** Where the driver starts his journey everyday */
1382
+ domicile?: InputMaybe<NewAddressInput>;
1383
+ eldId?: InputMaybe<Scalars['String']>;
1384
+ email?: InputMaybe<Scalars['String']>;
1385
+ firstname: Scalars['String'];
1386
+ hos?: InputMaybe<DriverHosInput>;
1387
+ isOwnerOperator?: InputMaybe<Scalars['Boolean']>;
1388
+ lastname: Scalars['String'];
1389
+ license?: InputMaybe<DriverLicenseInput>;
1390
+ medical?: InputMaybe<DriverMedicalInput>;
1391
+ middlename?: InputMaybe<Scalars['String']>;
1392
+ password?: InputMaybe<Scalars['String']>;
1393
+ phoneNumber: Scalars['String'];
1394
+ status?: InputMaybe<AssetStatus>;
1395
+ username?: InputMaybe<Scalars['String']>;
1396
+ };
1397
+
1398
+ export type NewOrgUserInput = {
1399
+ attributes?: InputMaybe<UserAttributesInput>;
1400
+ email?: InputMaybe<Scalars['String']>;
1401
+ firstName?: InputMaybe<Scalars['String']>;
1402
+ lastName?: InputMaybe<Scalars['String']>;
1403
+ password?: InputMaybe<Scalars['String']>;
1404
+ roles: Array<KeycloakUserRoleInput>;
1405
+ username: Scalars['String'];
1406
+ };
1407
+
1408
+ export type NewPaymentRuleInput = {
1409
+ amount: Scalars['Float'];
1410
+ driver?: InputMaybe<Scalars['String']>;
1411
+ method: DriverPaymentMethod;
1412
+ period?: InputMaybe<PaymentPeriodInput>;
1413
+ };
1414
+
1415
+ export type NewShipmentInput = {
1416
+ assignedCarriers?: InputMaybe<Array<ShipmentCarrierAssignmentInput>>;
1417
+ billOfLadingNumber: Scalars['String'];
1418
+ charges: Array<ShipmentChargeInput>;
1419
+ constraints?: InputMaybe<Array<ShipmentConstraintInput>>;
1420
+ createdBy?: InputMaybe<Scalars['String']>;
1421
+ customer: Scalars['String'];
1422
+ documents?: InputMaybe<Array<ShipmentDocumentInput>>;
1423
+ loadType: LoadType;
1424
+ notes?: InputMaybe<Array<SingleShipmentNoteInput>>;
1425
+ postOfficeNumber: Scalars['String'];
1426
+ referenceNumber?: InputMaybe<Scalars['String']>;
1427
+ shipmentLocations: Array<ShipmentLocationInput>;
1428
+ trailerType: TrailerType;
1429
+ };
1430
+
1431
+ export type NewTextualAddressInput = {
1432
+ city?: InputMaybe<Scalars['String']>;
1433
+ country?: InputMaybe<Scalars['String']>;
1434
+ googlePlaceId?: InputMaybe<Scalars['String']>;
1435
+ line1?: InputMaybe<Scalars['String']>;
1436
+ line2?: InputMaybe<Scalars['String']>;
1437
+ postalCode?: InputMaybe<Scalars['String']>;
1438
+ state?: InputMaybe<Scalars['String']>;
1439
+ };
1440
+
1441
+ export type NewTractorInput = {
1442
+ domicile?: InputMaybe<NewAddressInput>;
1443
+ eldId?: InputMaybe<Scalars['String']>;
1444
+ licenseNumber?: InputMaybe<Scalars['String']>;
1445
+ make?: InputMaybe<Scalars['String']>;
1446
+ model?: InputMaybe<Scalars['String']>;
1447
+ plateNumber?: InputMaybe<Scalars['String']>;
1448
+ serialNumber: Scalars['String'];
1449
+ status?: InputMaybe<AssetStatus>;
1450
+ tareWeight?: InputMaybe<Scalars['Float']>;
1451
+ year?: InputMaybe<Scalars['Float']>;
1452
+ };
1453
+
1454
+ export type NewTrailerInput = {
1455
+ domicile?: InputMaybe<NewAddressInput>;
1456
+ height?: InputMaybe<Scalars['Float']>;
1457
+ lastKnownLocation?: InputMaybe<CoordinatesInput>;
1458
+ length?: InputMaybe<Scalars['Float']>;
1459
+ licenseNumber?: InputMaybe<Scalars['String']>;
1460
+ maxTemperature?: InputMaybe<Scalars['Float']>;
1461
+ maxWeight?: InputMaybe<Scalars['Float']>;
1462
+ minTemperature?: InputMaybe<Scalars['Float']>;
1463
+ numberOfAxles?: InputMaybe<Scalars['Float']>;
1464
+ serialNumber: Scalars['String'];
1465
+ status?: InputMaybe<AssetStatus>;
1466
+ type: TrailerType;
1467
+ width?: InputMaybe<Scalars['Float']>;
1468
+ };
1469
+
1470
+ export type NewTripInput = {
1471
+ chassis?: InputMaybe<Scalars['String']>;
1472
+ driver?: InputMaybe<Scalars['String']>;
1473
+ shipments: Array<Scalars['String']>;
1474
+ tractor?: InputMaybe<Scalars['String']>;
1475
+ trailer?: InputMaybe<Scalars['String']>;
1476
+ };
1477
+
1478
+ export enum NoteAccessLevel {
1479
+ Customer = 'CUSTOMER',
1480
+ Dispatcher = 'DISPATCHER',
1481
+ Driver = 'DRIVER'
1482
+ }
1483
+
1484
+ /** Opening schedule */
1485
+ export type OpeningSchedule = {
1486
+ __typename?: 'OpeningSchedule';
1487
+ closingTime: Scalars['String'];
1488
+ days: Array<Scalars['Int']>;
1489
+ openingTime: Scalars['String'];
1490
+ };
1491
+
1492
+ export type OpeningScheduleInput = {
1493
+ closingTime: Scalars['String'];
1494
+ days: Array<Scalars['Int']>;
1495
+ openingTime: Scalars['String'];
1496
+ };
1497
+
1498
+ export type OrgUser = {
1499
+ __typename?: 'OrgUser';
1500
+ _id: Scalars['String'];
1501
+ attributes: UserAttributes;
1502
+ email?: Maybe<Scalars['String']>;
1503
+ firstName?: Maybe<Scalars['String']>;
1504
+ id: Scalars['String'];
1505
+ lastName?: Maybe<Scalars['String']>;
1506
+ roles: Array<KeycloakUserRole>;
1507
+ username: Scalars['String'];
1508
+ };
1509
+
1510
+ export type OrgUserPaginatedResult = {
1511
+ __typename?: 'OrgUserPaginatedResult';
1512
+ count: Scalars['Int'];
1513
+ data: Array<OrgUser>;
1514
+ };
1515
+
1516
+ export type OrgUserUpdateInput = {
1517
+ attributes?: InputMaybe<UserAttributesInput>;
1518
+ email?: InputMaybe<Scalars['String']>;
1519
+ firstName?: InputMaybe<Scalars['String']>;
1520
+ lastName?: InputMaybe<Scalars['String']>;
1521
+ password?: InputMaybe<Scalars['String']>;
1522
+ roles?: InputMaybe<Array<KeycloakUserRoleInput>>;
1523
+ username?: InputMaybe<Scalars['String']>;
1524
+ };
1525
+
1526
+ export type OrganizationSetupData = {
1527
+ dotNumber: Scalars['String'];
1528
+ name: Scalars['String'];
1529
+ };
1530
+
1531
+ /** The period over which a payment applies */
1532
+ export type PaymentPeriod = {
1533
+ __typename?: 'PaymentPeriod';
1534
+ end?: Maybe<Scalars['DateTime']>;
1535
+ repeatEvery: Scalars['Float'];
1536
+ start: Scalars['DateTime'];
1537
+ unit: PaymentPeriodUnit;
1538
+ };
1539
+
1540
+ export type PaymentPeriodInput = {
1541
+ end?: InputMaybe<Scalars['DateTime']>;
1542
+ repeatEvery: Scalars['Float'];
1543
+ start: Scalars['DateTime'];
1544
+ unit: PaymentPeriodUnit;
1545
+ };
1546
+
1547
+ export enum PaymentPeriodUnit {
1548
+ Day = 'DAY',
1549
+ Month = 'MONTH',
1550
+ Week = 'WEEK',
1551
+ Year = 'YEAR'
1552
+ }
1553
+
1554
+ /** A driver payment rule */
1555
+ export type PaymentRule = {
1556
+ __typename?: 'PaymentRule';
1557
+ _id: Scalars['String'];
1558
+ amount: Scalars['Float'];
1559
+ driver?: Maybe<Driver>;
1560
+ method: DriverPaymentMethod;
1561
+ period?: Maybe<PaymentPeriod>;
1562
+ };
1563
+
1564
+ export type PaymentRulePaginatedResult = {
1565
+ __typename?: 'PaymentRulePaginatedResult';
1566
+ count: Scalars['Int'];
1567
+ data: Array<PaymentRule>;
1568
+ };
1569
+
1570
+ export type PaymentRuleUpdateInput = {
1571
+ amount?: InputMaybe<Scalars['Float']>;
1572
+ driver?: InputMaybe<Scalars['String']>;
1573
+ method?: InputMaybe<DriverPaymentMethod>;
1574
+ period?: InputMaybe<PaymentPeriodInput>;
1575
+ };
1576
+
1577
+ export type Period = {
1578
+ __typename?: 'Period';
1579
+ end: Scalars['DateTime'];
1580
+ start: Scalars['DateTime'];
1581
+ };
1582
+
1583
+ export type PeriodInput = {
1584
+ end: Scalars['DateTime'];
1585
+ start: Scalars['DateTime'];
1586
+ };
1587
+
1588
+ export type Query = {
1589
+ __typename?: 'Query';
1590
+ assignedTrips: TripPaginatedResult;
1591
+ billingRuleById: BillingRule;
1592
+ billingRules: BillingRulePaginatedResult;
1593
+ brokerById: Broker;
1594
+ brokers: BrokerPaginatedResult;
1595
+ carrierById: Carrier;
1596
+ carriers: CarrierPaginatedResult;
1597
+ chassis: ChassisPaginatedResult;
1598
+ chassisById: Chassis;
1599
+ customerById: Customer;
1600
+ customers: CustomerPaginatedResult;
1601
+ deductionRuleById: DeductionRule;
1602
+ deductionRules: DeductionRulePaginatedResult;
1603
+ driverByEldId?: Maybe<Driver>;
1604
+ driverById: Driver;
1605
+ driverByLicenseNumber?: Maybe<Driver>;
1606
+ driverSettlementById: DriverSettlement;
1607
+ driverSettlements: DriverSettlementPaginatedResult;
1608
+ drivers: DriverPaginatedResult;
1609
+ extensionById: Extension;
1610
+ extensions: ExtensionPaginatedResult;
1611
+ extensionsMessages: Array<ExtensionMessage>;
1612
+ invoiceById: Invoice;
1613
+ invoiceByShipmentId?: Maybe<Invoice>;
1614
+ invoices: InvoicePaginatedResult;
1615
+ isSubscribed: Scalars['Boolean'];
1616
+ myOrganization: KeycloakOrganization;
1617
+ orgUserById: OrgUser;
1618
+ orgUsers: OrgUserPaginatedResult;
1619
+ ownedTrailerTypes: Array<TrailerType>;
1620
+ paymentRuleById: PaymentRule;
1621
+ paymentRules: PaymentRulePaginatedResult;
1622
+ receiverById: Receiver;
1623
+ receivers: ReceiverPaginatedResult;
1624
+ reportData: ReportData;
1625
+ roles: Array<KeycloakUserRole>;
1626
+ shipmentById: Shipment;
1627
+ shipments: ShipmentPaginatedResult;
1628
+ shipperById: Shipper;
1629
+ shippers: ShipperPaginatedResult;
1630
+ trackShipment: ShipmentTrackingInfos;
1631
+ tractorByEldId?: Maybe<Tractor>;
1632
+ tractorById: Tractor;
1633
+ tractorByLicenseNumber?: Maybe<Tractor>;
1634
+ tractorByPlateNumber?: Maybe<Tractor>;
1635
+ tractorBySerialNumber?: Maybe<Tractor>;
1636
+ tractors: TractorPaginatedResult;
1637
+ trailerById: Trailer;
1638
+ trailers: TrailerPaginatedResult;
1639
+ tripById: Trip;
1640
+ tripPositions: Array<TripDriverPosition>;
1641
+ trips: TripPaginatedResult;
1642
+ };
1643
+
1644
+
1645
+ export type QueryAssignedTripsArgs = {
1646
+ driver?: InputMaybe<Scalars['String']>;
1647
+ search?: InputMaybe<Scalars['String']>;
1648
+ skip?: InputMaybe<Scalars['Int']>;
1649
+ sort?: InputMaybe<TripSort>;
1650
+ take?: InputMaybe<Scalars['Int']>;
1651
+ };
1652
+
1653
+
1654
+ export type QueryBillingRuleByIdArgs = {
1655
+ id: Scalars['String'];
1656
+ };
1657
+
1658
+
1659
+ export type QueryBillingRulesArgs = {
1660
+ customer?: InputMaybe<Scalars['String']>;
1661
+ search?: InputMaybe<Scalars['String']>;
1662
+ skip?: InputMaybe<Scalars['Int']>;
1663
+ take?: InputMaybe<Scalars['Int']>;
1664
+ };
1665
+
1666
+
1667
+ export type QueryBrokerByIdArgs = {
1668
+ id: Scalars['String'];
1669
+ };
1670
+
1671
+
1672
+ export type QueryBrokersArgs = {
1673
+ search?: InputMaybe<Scalars['String']>;
1674
+ skip?: InputMaybe<Scalars['Int']>;
1675
+ take?: InputMaybe<Scalars['Int']>;
1676
+ };
1677
+
1678
+
1679
+ export type QueryCarrierByIdArgs = {
1680
+ id: Scalars['String'];
1681
+ };
1682
+
1683
+
1684
+ export type QueryChassisArgs = {
1685
+ search?: InputMaybe<Scalars['String']>;
1686
+ skip?: InputMaybe<Scalars['Int']>;
1687
+ take?: InputMaybe<Scalars['Int']>;
1688
+ };
1689
+
1690
+
1691
+ export type QueryChassisByIdArgs = {
1692
+ id: Scalars['String'];
1693
+ };
1694
+
1695
+
1696
+ export type QueryCustomerByIdArgs = {
1697
+ id: Scalars['String'];
1698
+ };
1699
+
1700
+
1701
+ export type QueryCustomersArgs = {
1702
+ search?: InputMaybe<Scalars['String']>;
1703
+ skip?: InputMaybe<Scalars['Int']>;
1704
+ take?: InputMaybe<Scalars['Int']>;
1705
+ };
1706
+
1707
+
1708
+ export type QueryDeductionRuleByIdArgs = {
1709
+ id: Scalars['String'];
1710
+ };
1711
+
1712
+
1713
+ export type QueryDeductionRulesArgs = {
1714
+ driver?: InputMaybe<Scalars['String']>;
1715
+ search?: InputMaybe<Scalars['String']>;
1716
+ skip?: InputMaybe<Scalars['Int']>;
1717
+ take?: InputMaybe<Scalars['Int']>;
1718
+ };
1719
+
1720
+
1721
+ export type QueryDriverByEldIdArgs = {
1722
+ eldId: Scalars['String'];
1723
+ };
1724
+
1725
+
1726
+ export type QueryDriverByIdArgs = {
1727
+ id: Scalars['String'];
1728
+ };
1729
+
1730
+
1731
+ export type QueryDriverByLicenseNumberArgs = {
1732
+ licenseNumber: Scalars['String'];
1733
+ };
1734
+
1735
+
1736
+ export type QueryDriverSettlementByIdArgs = {
1737
+ id: Scalars['String'];
1738
+ };
1739
+
1740
+
1741
+ export type QueryDriverSettlementsArgs = {
1742
+ driver?: InputMaybe<Scalars['String']>;
1743
+ search?: InputMaybe<Scalars['String']>;
1744
+ skip?: InputMaybe<Scalars['Int']>;
1745
+ take?: InputMaybe<Scalars['Int']>;
1746
+ };
1747
+
1748
+
1749
+ export type QueryDriversArgs = {
1750
+ search?: InputMaybe<Scalars['String']>;
1751
+ skip?: InputMaybe<Scalars['Int']>;
1752
+ take?: InputMaybe<Scalars['Int']>;
1753
+ };
1754
+
1755
+
1756
+ export type QueryExtensionByIdArgs = {
1757
+ id: Scalars['String'];
1758
+ };
1759
+
1760
+
1761
+ export type QueryExtensionsArgs = {
1762
+ search?: InputMaybe<Scalars['String']>;
1763
+ skip?: InputMaybe<Scalars['Int']>;
1764
+ take?: InputMaybe<Scalars['Int']>;
1765
+ };
1766
+
1767
+
1768
+ export type QueryInvoiceByIdArgs = {
1769
+ id: Scalars['String'];
1770
+ };
1771
+
1772
+
1773
+ export type QueryInvoiceByShipmentIdArgs = {
1774
+ shipmentId: Scalars['String'];
1775
+ };
1776
+
1777
+
1778
+ export type QueryInvoicesArgs = {
1779
+ customer?: InputMaybe<Scalars['String']>;
1780
+ search?: InputMaybe<Scalars['String']>;
1781
+ skip?: InputMaybe<Scalars['Int']>;
1782
+ take?: InputMaybe<Scalars['Int']>;
1783
+ };
1784
+
1785
+
1786
+ export type QueryOrgUserByIdArgs = {
1787
+ id: Scalars['String'];
1788
+ };
1789
+
1790
+
1791
+ export type QueryOrgUsersArgs = {
1792
+ search?: InputMaybe<Scalars['String']>;
1793
+ skip?: InputMaybe<Scalars['Int']>;
1794
+ take?: InputMaybe<Scalars['Int']>;
1795
+ };
1796
+
1797
+
1798
+ export type QueryPaymentRuleByIdArgs = {
1799
+ id: Scalars['String'];
1800
+ };
1801
+
1802
+
1803
+ export type QueryPaymentRulesArgs = {
1804
+ driver?: InputMaybe<Scalars['String']>;
1805
+ search?: InputMaybe<Scalars['String']>;
1806
+ skip?: InputMaybe<Scalars['Int']>;
1807
+ take?: InputMaybe<Scalars['Int']>;
1808
+ };
1809
+
1810
+
1811
+ export type QueryReceiverByIdArgs = {
1812
+ id: Scalars['String'];
1813
+ };
1814
+
1815
+
1816
+ export type QueryReceiversArgs = {
1817
+ search?: InputMaybe<Scalars['String']>;
1818
+ skip?: InputMaybe<Scalars['Int']>;
1819
+ take?: InputMaybe<Scalars['Int']>;
1820
+ };
1821
+
1822
+
1823
+ export type QueryReportDataArgs = {
1824
+ filter?: InputMaybe<Scalars['ReportFilter']>;
1825
+ period: PeriodInput;
1826
+ reportType: ReportType;
1827
+ };
1828
+
1829
+
1830
+ export type QueryShipmentByIdArgs = {
1831
+ id: Scalars['String'];
1832
+ };
1833
+
1834
+
1835
+ export type QueryShipmentsArgs = {
1836
+ plannedForToday?: InputMaybe<Scalars['Boolean']>;
1837
+ search?: InputMaybe<Scalars['String']>;
1838
+ skip?: InputMaybe<Scalars['Int']>;
1839
+ sort?: InputMaybe<ShipmentSort>;
1840
+ status?: InputMaybe<Status>;
1841
+ statuses?: InputMaybe<Array<Status>>;
1842
+ take?: InputMaybe<Scalars['Int']>;
1843
+ timezone?: InputMaybe<Scalars['String']>;
1844
+ };
1845
+
1846
+
1847
+ export type QueryShipperByIdArgs = {
1848
+ id: Scalars['String'];
1849
+ };
1850
+
1851
+
1852
+ export type QueryShippersArgs = {
1853
+ search?: InputMaybe<Scalars['String']>;
1854
+ skip?: InputMaybe<Scalars['Int']>;
1855
+ take?: InputMaybe<Scalars['Int']>;
1856
+ };
1857
+
1858
+
1859
+ export type QueryTrackShipmentArgs = {
1860
+ token: Scalars['String'];
1861
+ };
1862
+
1863
+
1864
+ export type QueryTractorByEldIdArgs = {
1865
+ eldId: Scalars['String'];
1866
+ };
1867
+
1868
+
1869
+ export type QueryTractorByIdArgs = {
1870
+ id: Scalars['String'];
1871
+ };
1872
+
1873
+
1874
+ export type QueryTractorByLicenseNumberArgs = {
1875
+ licenseNumber: Scalars['String'];
1876
+ };
1877
+
1878
+
1879
+ export type QueryTractorByPlateNumberArgs = {
1880
+ plateNumber: Scalars['String'];
1881
+ };
1882
+
1883
+
1884
+ export type QueryTractorBySerialNumberArgs = {
1885
+ serialNumber: Scalars['String'];
1886
+ };
1887
+
1888
+
1889
+ export type QueryTractorsArgs = {
1890
+ search?: InputMaybe<Scalars['String']>;
1891
+ skip?: InputMaybe<Scalars['Int']>;
1892
+ take?: InputMaybe<Scalars['Int']>;
1893
+ };
1894
+
1895
+
1896
+ export type QueryTrailerByIdArgs = {
1897
+ id: Scalars['String'];
1898
+ };
1899
+
1900
+
1901
+ export type QueryTrailersArgs = {
1902
+ search?: InputMaybe<Scalars['String']>;
1903
+ skip?: InputMaybe<Scalars['Int']>;
1904
+ take?: InputMaybe<Scalars['Int']>;
1905
+ };
1906
+
1907
+
1908
+ export type QueryTripByIdArgs = {
1909
+ id: Scalars['String'];
1910
+ };
1911
+
1912
+
1913
+ export type QueryTripPositionsArgs = {
1914
+ tripId: Scalars['String'];
1915
+ };
1916
+
1917
+
1918
+ export type QueryTripsArgs = {
1919
+ driver?: InputMaybe<Scalars['String']>;
1920
+ plannedForToday?: InputMaybe<Scalars['Boolean']>;
1921
+ search?: InputMaybe<Scalars['String']>;
1922
+ skip?: InputMaybe<Scalars['Int']>;
1923
+ sort?: InputMaybe<TripSort>;
1924
+ take?: InputMaybe<Scalars['Int']>;
1925
+ timezone?: InputMaybe<Scalars['String']>;
1926
+ };
1927
+
1928
+ /** A Receiver Business entity */
1929
+ export type Receiver = {
1930
+ __typename?: 'Receiver';
1931
+ _id: Scalars['String'];
1932
+ additionalContacts?: Maybe<Array<Contact>>;
1933
+ additionalTypes?: Maybe<Array<BusinessEntityType>>;
1934
+ address: Address;
1935
+ addressTimezone?: Maybe<Scalars['String']>;
1936
+ billingAddress?: Maybe<TextualAddress>;
1937
+ billingEmail?: Maybe<Scalars['String']>;
1938
+ billingTermsDay?: Maybe<Scalars['Float']>;
1939
+ code?: Maybe<Scalars['String']>;
1940
+ contact: Contact;
1941
+ goodInventoryItems?: Maybe<Array<GoodInventoryItem>>;
1942
+ name: Scalars['String'];
1943
+ openingSchedules?: Maybe<Array<OpeningSchedule>>;
1944
+ remitAddress?: Maybe<TextualAddress>;
1945
+ remitEmail?: Maybe<Scalars['String']>;
1946
+ type: BusinessEntityType;
1947
+ };
1948
+
1949
+ export type ReceiverPaginatedResult = {
1950
+ __typename?: 'ReceiverPaginatedResult';
1951
+ count: Scalars['Int'];
1952
+ data: Array<Receiver>;
1953
+ };
1954
+
1955
+ export type ReportData = {
1956
+ __typename?: 'ReportData';
1957
+ data: Array<ReportItem>;
1958
+ period?: Maybe<Period>;
1959
+ xAxisLabel: Scalars['String'];
1960
+ };
1961
+
1962
+ export type ReportItem = {
1963
+ __typename?: 'ReportItem';
1964
+ _id: ReportItemId;
1965
+ values: Scalars['ReportItemValue'];
1966
+ };
1967
+
1968
+ export type ReportItemId = {
1969
+ __typename?: 'ReportItemId';
1970
+ group?: Maybe<Scalars['String']>;
1971
+ label: Scalars['String'];
1972
+ };
1973
+
1974
+ export type ReportPdf = {
1975
+ __typename?: 'ReportPdf';
1976
+ url: Scalars['String'];
1977
+ };
1978
+
1979
+ export enum ReportType {
1980
+ DriverMileagePerTrip = 'DRIVER_MILEAGE_PER_TRIP',
1981
+ RevenuePerDay = 'REVENUE_PER_DAY'
1982
+ }
1983
+
1984
+ export enum S3_Operation {
1985
+ GetObject = 'getObject',
1986
+ PutObject = 'putObject'
1987
+ }
1988
+
1989
+ /** Shipment entity */
1990
+ export type Shipment = {
1991
+ __typename?: 'Shipment';
1992
+ _id: Scalars['String'];
1993
+ assignedCarriers?: Maybe<Array<ShipmentCarrierAssignment>>;
1994
+ billOfLadingNumber: Scalars['String'];
1995
+ charges: Array<ShipmentCharge>;
1996
+ constraints?: Maybe<Array<ShipmentConstraint>>;
1997
+ createdBy: Scalars['String'];
1998
+ customer: BusinessEntity;
1999
+ documents?: Maybe<Array<ShipmentDocument>>;
2000
+ events?: Maybe<Array<ShipmentEvent>>;
2001
+ issues?: Maybe<Array<ShipmentIssue>>;
2002
+ loadType: LoadType;
2003
+ notes?: Maybe<Array<ShipmentNote>>;
2004
+ postOfficeNumber: Scalars['String'];
2005
+ reasonForCancellation?: Maybe<Scalars['String']>;
2006
+ referenceNumber?: Maybe<Scalars['String']>;
2007
+ route?: Maybe<ShipmentRoute>;
2008
+ shipmentLocations: Array<ShipmentLocation>;
2009
+ shipmentNumber: Scalars['String'];
2010
+ status: Status;
2011
+ trackingEmailsSent?: Maybe<Scalars['Boolean']>;
2012
+ trailerType: TrailerType;
2013
+ tripId?: Maybe<Scalars['String']>;
2014
+ };
2015
+
2016
+ export type ShipmentCarrierAssignment = {
2017
+ __typename?: 'ShipmentCarrierAssignment';
2018
+ accepted: Scalars['Boolean'];
2019
+ idCarrier: Scalars['String'];
2020
+ };
2021
+
2022
+ export type ShipmentCarrierAssignmentInput = {
2023
+ accepted: Scalars['Boolean'];
2024
+ idCarrier: Scalars['String'];
2025
+ };
2026
+
2027
+ export type ShipmentCharge = {
2028
+ __typename?: 'ShipmentCharge';
2029
+ _id: Scalars['String'];
2030
+ billToClient?: Maybe<Scalars['Boolean']>;
2031
+ billingRule?: Maybe<BillingRule>;
2032
+ label: Scalars['String'];
2033
+ rate: Scalars['Float'];
2034
+ reimburseToDriver?: Maybe<Scalars['Boolean']>;
2035
+ total: Scalars['Float'];
2036
+ unit: Scalars['Float'];
2037
+ unitType: Scalars['String'];
2038
+ };
2039
+
2040
+ export type ShipmentChargeInput = {
2041
+ billToClient?: InputMaybe<Scalars['Boolean']>;
2042
+ billingRule?: InputMaybe<Scalars['String']>;
2043
+ label: Scalars['String'];
2044
+ rate: Scalars['Float'];
2045
+ reimburseToDriver?: InputMaybe<Scalars['Boolean']>;
2046
+ unit: Scalars['Float'];
2047
+ unitType: Scalars['String'];
2048
+ };
2049
+
2050
+ export type ShipmentConstraint = {
2051
+ __typename?: 'ShipmentConstraint';
2052
+ type: ShipmentConstraintType;
2053
+ unit?: Maybe<Scalars['String']>;
2054
+ value: Scalars['String'];
2055
+ };
2056
+
2057
+ export type ShipmentConstraintInput = {
2058
+ type: ShipmentConstraintType;
2059
+ unit?: InputMaybe<Scalars['String']>;
2060
+ value: Scalars['String'];
2061
+ };
2062
+
2063
+ export enum ShipmentConstraintType {
2064
+ Height = 'HEIGHT',
2065
+ Length = 'LENGTH',
2066
+ MaxTemperature = 'MAX_TEMPERATURE',
2067
+ MinTemperature = 'MIN_TEMPERATURE',
2068
+ Width = 'WIDTH'
2069
+ }
2070
+
2071
+ export type ShipmentDeleteInput = {
2072
+ reason: Scalars['String'];
2073
+ };
2074
+
2075
+ export type ShipmentDocument = {
2076
+ __typename?: 'ShipmentDocument';
2077
+ _id: Scalars['String'];
2078
+ accessLevel: Array<NoteAccessLevel>;
2079
+ associatedCharge?: Maybe<Scalars['String']>;
2080
+ createdAt: Scalars['DateTime'];
2081
+ createdBy: Scalars['String'];
2082
+ isBillable: Scalars['Boolean'];
2083
+ lastUpdatedBy: Scalars['String'];
2084
+ name: Scalars['String'];
2085
+ receiver?: Maybe<Receiver>;
2086
+ shipper?: Maybe<Shipper>;
2087
+ type: Scalars['String'];
2088
+ updatedAt: Scalars['DateTime'];
2089
+ url: Scalars['String'];
2090
+ };
2091
+
2092
+ export type ShipmentDocumentInfoInput = {
2093
+ accessLevel: Array<NoteAccessLevel>;
2094
+ associatedCharge?: InputMaybe<Scalars['String']>;
2095
+ isBillable: Scalars['Boolean'];
2096
+ name: Scalars['String'];
2097
+ receiver?: InputMaybe<Scalars['String']>;
2098
+ shipper?: InputMaybe<Scalars['String']>;
2099
+ type: Scalars['String'];
2100
+ url: Scalars['String'];
2101
+ };
2102
+
2103
+ export type ShipmentDocumentInput = {
2104
+ accessLevel: Array<NoteAccessLevel>;
2105
+ associatedCharge?: InputMaybe<Scalars['String']>;
2106
+ isBillable: Scalars['Boolean'];
2107
+ name: Scalars['String'];
2108
+ receiver?: InputMaybe<Scalars['String']>;
2109
+ shipment?: InputMaybe<Scalars['String']>;
2110
+ shipper?: InputMaybe<Scalars['String']>;
2111
+ type: Scalars['String'];
2112
+ url: Scalars['String'];
2113
+ };
2114
+
2115
+ export type ShipmentEvent = {
2116
+ __typename?: 'ShipmentEvent';
2117
+ _id: Scalars['String'];
2118
+ coordinates?: Maybe<Coordinates>;
2119
+ createdBy: Scalars['String'];
2120
+ date: Scalars['DateTime'];
2121
+ shipmentLocation?: Maybe<Scalars['String']>;
2122
+ type: ShipmentEventType;
2123
+ };
2124
+
2125
+ export type ShipmentEventInput = {
2126
+ _id?: InputMaybe<Scalars['String']>;
2127
+ location: CoordinatesInput;
2128
+ shipment: Scalars['String'];
2129
+ shipmentLocation: Scalars['String'];
2130
+ trip: Scalars['String'];
2131
+ type: ShipmentEventType;
2132
+ };
2133
+
2134
+ export enum ShipmentEventType {
2135
+ DropoffCheckpointUnloadStart = 'DROPOFF_CHECKPOINT_UNLOAD_START',
2136
+ DropOffCheckpointArrive = 'DROP_OFF_CHECKPOINT_ARRIVE',
2137
+ DropOffCheckpointLeft = 'DROP_OFF_CHECKPOINT_LEFT',
2138
+ PickupCheckpointArrive = 'PICKUP_CHECKPOINT_ARRIVE',
2139
+ PickupCheckpointLeft = 'PICKUP_CHECKPOINT_LEFT',
2140
+ PickupCheckpointLoadStart = 'PICKUP_CHECKPOINT_LOAD_START',
2141
+ ShipmentComplete = 'SHIPMENT_COMPLETE',
2142
+ TripEnd = 'TRIP_END',
2143
+ TripStarted = 'TRIP_STARTED'
2144
+ }
2145
+
2146
+ export type ShipmentIssue = {
2147
+ __typename?: 'ShipmentIssue';
2148
+ _id: Scalars['String'];
2149
+ attachedDocuments: Array<Scalars['String']>;
2150
+ content: Scalars['String'];
2151
+ coordinates?: Maybe<Coordinates>;
2152
+ createdBy?: Maybe<Scalars['String']>;
2153
+ date: Scalars['DateTime'];
2154
+ delayAmount?: Maybe<Scalars['Float']>;
2155
+ shipmentLocation?: Maybe<Scalars['String']>;
2156
+ type: Scalars['String'];
2157
+ };
2158
+
2159
+ export type ShipmentIssueInput = {
2160
+ _id?: InputMaybe<Scalars['String']>;
2161
+ attachedDocuments: Array<Scalars['String']>;
2162
+ content: Scalars['String'];
2163
+ delayAmount?: InputMaybe<Scalars['Float']>;
2164
+ location: CoordinatesInput;
2165
+ shipment: Scalars['String'];
2166
+ shipmentLocation?: InputMaybe<Scalars['String']>;
2167
+ type: Scalars['String'];
2168
+ };
2169
+
2170
+ export type ShipmentLocation = {
2171
+ __typename?: 'ShipmentLocation';
2172
+ _id: Scalars['String'];
2173
+ location: Coordinates;
2174
+ locationType: ShipmentLocationType;
2175
+ receivedGoods?: Maybe<Array<GoodDistribution>>;
2176
+ receiver?: Maybe<BusinessEntity>;
2177
+ shippedGoods?: Maybe<Array<Good>>;
2178
+ shipper?: Maybe<BusinessEntity>;
2179
+ timeWindows: Array<DateTimeWindow>;
2180
+ trafficInfo?: Maybe<LocationTraffic>;
2181
+ weatherInfo?: Maybe<LocationWeather>;
2182
+ };
2183
+
2184
+ export type ShipmentLocationInput = {
2185
+ _id?: InputMaybe<Scalars['String']>;
2186
+ location: CoordinatesInput;
2187
+ locationType: ShipmentLocationType;
2188
+ receivedGoods: Array<GoodDistributionInput>;
2189
+ receiver?: InputMaybe<Scalars['String']>;
2190
+ shippedGoods: Array<GoodInput>;
2191
+ shipper?: InputMaybe<Scalars['String']>;
2192
+ timeWindows: Array<DateTimeWindowInput>;
2193
+ };
2194
+
2195
+ export enum ShipmentLocationType {
2196
+ Break = 'BREAK',
2197
+ DropOff = 'DROP_OFF',
2198
+ Pickup = 'PICKUP'
2199
+ }
2200
+
2201
+ export type ShipmentLocationWithShipment = {
2202
+ __typename?: 'ShipmentLocationWithShipment';
2203
+ _id: Scalars['String'];
2204
+ location: Coordinates;
2205
+ locationType: ShipmentLocationType;
2206
+ receivedGoods?: Maybe<Array<GoodDistribution>>;
2207
+ receiver?: Maybe<BusinessEntity>;
2208
+ shipment: Shipment;
2209
+ shippedGoods?: Maybe<Array<Good>>;
2210
+ shipper?: Maybe<BusinessEntity>;
2211
+ timeWindows: Array<DateTimeWindow>;
2212
+ trafficInfo?: Maybe<LocationTraffic>;
2213
+ weatherInfo?: Maybe<LocationWeather>;
2214
+ };
2215
+
2216
+ export type ShipmentNote = {
2217
+ __typename?: 'ShipmentNote';
2218
+ _id: Scalars['String'];
2219
+ accessLevel: Array<NoteAccessLevel>;
2220
+ content: Scalars['String'];
2221
+ createdAt: Scalars['DateTime'];
2222
+ createdBy: Scalars['String'];
2223
+ lastUpdatedBy: Scalars['String'];
2224
+ receiver?: Maybe<Receiver>;
2225
+ shipper?: Maybe<Shipper>;
2226
+ updatedAt: Scalars['DateTime'];
2227
+ };
2228
+
2229
+ export type ShipmentNoteInput = {
2230
+ _id?: InputMaybe<Scalars['String']>;
2231
+ accessLevel: Array<NoteAccessLevel>;
2232
+ content: Scalars['String'];
2233
+ receiver?: InputMaybe<Scalars['String']>;
2234
+ shipper?: InputMaybe<Scalars['String']>;
2235
+ };
2236
+
2237
+ export type ShipmentPaginatedResult = {
2238
+ __typename?: 'ShipmentPaginatedResult';
2239
+ count: Scalars['Int'];
2240
+ data: Array<Shipment>;
2241
+ };
2242
+
2243
+ export type ShipmentRoute = {
2244
+ __typename?: 'ShipmentRoute';
2245
+ distanceToEnd: Scalars['Float'];
2246
+ distanceToStart: Scalars['Float'];
2247
+ firstPickupTime: Scalars['DateTime'];
2248
+ lastDropoffTime: Scalars['DateTime'];
2249
+ locations?: Maybe<Array<TripShipmentLocation>>;
2250
+ routeDistance: Scalars['Float'];
2251
+ };
2252
+
2253
+ export type ShipmentSort = {
2254
+ criteria: ShipmentSortCriteria;
2255
+ desc?: InputMaybe<Scalars['Boolean']>;
2256
+ };
2257
+
2258
+ export enum ShipmentSortCriteria {
2259
+ DropoffDate = 'DROPOFF_DATE',
2260
+ DropoffDistance = 'DROPOFF_DISTANCE',
2261
+ PickupDate = 'PICKUP_DATE',
2262
+ PickupDistance = 'PICKUP_DISTANCE'
2263
+ }
2264
+
2265
+ export type ShipmentTrackingInfos = {
2266
+ __typename?: 'ShipmentTrackingInfos';
2267
+ /** @deprecated Use trip.lastTrailerLocation directly */
2268
+ lastKnownTrailerLocation?: Maybe<Coordinates>;
2269
+ shipment: Shipment;
2270
+ trip?: Maybe<Trip>;
2271
+ };
2272
+
2273
+ export type ShipmentUpdateInput = {
2274
+ assignedCarriers?: InputMaybe<Array<ShipmentCarrierAssignmentInput>>;
2275
+ billOfLadingNumber?: InputMaybe<Scalars['String']>;
2276
+ charges?: InputMaybe<Array<ShipmentChargeInput>>;
2277
+ constraints?: InputMaybe<Array<ShipmentConstraintInput>>;
2278
+ createdBy?: InputMaybe<Scalars['String']>;
2279
+ customer?: InputMaybe<Scalars['String']>;
2280
+ documents?: InputMaybe<Array<ShipmentDocumentInput>>;
2281
+ loadType?: InputMaybe<LoadType>;
2282
+ notes?: InputMaybe<Array<SingleShipmentNoteInput>>;
2283
+ postOfficeNumber?: InputMaybe<Scalars['String']>;
2284
+ referenceNumber?: InputMaybe<Scalars['String']>;
2285
+ shipmentLocations?: InputMaybe<Array<ShipmentLocationInput>>;
2286
+ trailerType?: InputMaybe<TrailerType>;
2287
+ };
2288
+
2289
+ /** A Shipper Business entity */
2290
+ export type Shipper = {
2291
+ __typename?: 'Shipper';
2292
+ _id: Scalars['String'];
2293
+ additionalContacts?: Maybe<Array<Contact>>;
2294
+ additionalTypes?: Maybe<Array<BusinessEntityType>>;
2295
+ address: Address;
2296
+ addressTimezone?: Maybe<Scalars['String']>;
2297
+ billingAddress?: Maybe<TextualAddress>;
2298
+ billingEmail?: Maybe<Scalars['String']>;
2299
+ billingTermsDay?: Maybe<Scalars['Float']>;
2300
+ code?: Maybe<Scalars['String']>;
2301
+ contact: Contact;
2302
+ goodInventoryItems?: Maybe<Array<GoodInventoryItem>>;
2303
+ name: Scalars['String'];
2304
+ openingSchedules?: Maybe<Array<OpeningSchedule>>;
2305
+ remitAddress?: Maybe<TextualAddress>;
2306
+ remitEmail?: Maybe<Scalars['String']>;
2307
+ type: BusinessEntityType;
2308
+ };
2309
+
2310
+ export type ShipperPaginatedResult = {
2311
+ __typename?: 'ShipperPaginatedResult';
2312
+ count: Scalars['Int'];
2313
+ data: Array<Shipper>;
2314
+ };
2315
+
2316
+ export type SingleShipmentNoteInput = {
2317
+ _id?: InputMaybe<Scalars['String']>;
2318
+ accessLevel: Array<NoteAccessLevel>;
2319
+ content: Scalars['String'];
2320
+ receiver?: InputMaybe<Scalars['String']>;
2321
+ shipment?: InputMaybe<Scalars['String']>;
2322
+ shipper?: InputMaybe<Scalars['String']>;
2323
+ };
2324
+
2325
+ export type StartTripInput = {
2326
+ location: CoordinatesInput;
2327
+ tripId: Scalars['String'];
2328
+ };
2329
+
2330
+ export enum Status {
2331
+ Active = 'ACTIVE',
2332
+ Assigned = 'ASSIGNED',
2333
+ Cancelled = 'CANCELLED',
2334
+ Complete = 'COMPLETE',
2335
+ Deleted = 'DELETED',
2336
+ Delivered = 'DELIVERED',
2337
+ InProgress = 'IN_PROGRESS',
2338
+ Pending = 'PENDING',
2339
+ Planned = 'PLANNED',
2340
+ Unassigned = 'UNASSIGNED',
2341
+ WaitingForApproval = 'WAITING_FOR_APPROVAL',
2342
+ WaitingForAssignment = 'WAITING_FOR_ASSIGNMENT'
2343
+ }
2344
+
2345
+ export type SubscriptionCheckoutSession = {
2346
+ __typename?: 'SubscriptionCheckoutSession';
2347
+ url: Scalars['String'];
2348
+ };
2349
+
2350
+ export type SubscriptionPortalSession = {
2351
+ __typename?: 'SubscriptionPortalSession';
2352
+ url: Scalars['String'];
2353
+ };
2354
+
2355
+ export type Temp = {
2356
+ __typename?: 'Temp';
2357
+ day?: Maybe<Scalars['Float']>;
2358
+ eve?: Maybe<Scalars['Float']>;
2359
+ max?: Maybe<Scalars['Float']>;
2360
+ min?: Maybe<Scalars['Float']>;
2361
+ morn?: Maybe<Scalars['Float']>;
2362
+ night?: Maybe<Scalars['Float']>;
2363
+ };
2364
+
2365
+ /** Address with textual description */
2366
+ export type TextualAddress = {
2367
+ __typename?: 'TextualAddress';
2368
+ city?: Maybe<Scalars['String']>;
2369
+ country?: Maybe<Scalars['String']>;
2370
+ googlePlaceId?: Maybe<Scalars['String']>;
2371
+ line1?: Maybe<Scalars['String']>;
2372
+ line2?: Maybe<Scalars['String']>;
2373
+ postalCode?: Maybe<Scalars['String']>;
2374
+ state?: Maybe<Scalars['String']>;
2375
+ };
2376
+
2377
+ export type TextualAddressInput = {
2378
+ city?: InputMaybe<Scalars['String']>;
2379
+ country?: InputMaybe<Scalars['String']>;
2380
+ googlePlaceId?: InputMaybe<Scalars['String']>;
2381
+ line1?: InputMaybe<Scalars['String']>;
2382
+ line2?: InputMaybe<Scalars['String']>;
2383
+ postalCode?: InputMaybe<Scalars['String']>;
2384
+ state?: InputMaybe<Scalars['String']>;
2385
+ };
2386
+
2387
+ /** A Tractor entity */
2388
+ export type Tractor = {
2389
+ __typename?: 'Tractor';
2390
+ _id: Scalars['String'];
2391
+ currentDriverEldId?: Maybe<Scalars['String']>;
2392
+ domicile?: Maybe<Address>;
2393
+ eldId?: Maybe<Scalars['String']>;
2394
+ /** The last known location from the ELD. This is the safest location to use if you want to know the exact location of the tractor but it might not update as often */
2395
+ lastKnownEldLocation?: Maybe<Coordinates>;
2396
+ lastKnownEldLocationDate?: Maybe<Scalars['DateTime']>;
2397
+ /** The last known location by combining both ELD data and driver app data. This location is not as accurate as the ELD location but it updates more often */
2398
+ lastKnownLocation?: Maybe<Coordinates>;
2399
+ lastKnownLocationDate?: Maybe<Scalars['DateTime']>;
2400
+ licenseNumber?: Maybe<Scalars['String']>;
2401
+ make?: Maybe<Scalars['String']>;
2402
+ model?: Maybe<Scalars['String']>;
2403
+ plateNumber?: Maybe<Scalars['String']>;
2404
+ serialNumber: Scalars['String'];
2405
+ status: AssetStatus;
2406
+ tareWeight?: Maybe<Scalars['Float']>;
2407
+ year?: Maybe<Scalars['Float']>;
2408
+ };
2409
+
2410
+ export type TractorPaginatedResult = {
2411
+ __typename?: 'TractorPaginatedResult';
2412
+ count: Scalars['Int'];
2413
+ data: Array<Tractor>;
2414
+ };
2415
+
2416
+ export type TractorPositionInput = {
2417
+ _id?: InputMaybe<Scalars['String']>;
2418
+ coords: CoordinatesInput;
2419
+ driverEldId?: InputMaybe<Scalars['String']>;
2420
+ timestamp: Scalars['DateTime'];
2421
+ tractor: Scalars['String'];
2422
+ };
2423
+
2424
+ export type TractorUpdateInput = {
2425
+ domicile?: InputMaybe<NewAddressInput>;
2426
+ eldId?: InputMaybe<Scalars['String']>;
2427
+ licenseNumber?: InputMaybe<Scalars['String']>;
2428
+ make?: InputMaybe<Scalars['String']>;
2429
+ model?: InputMaybe<Scalars['String']>;
2430
+ plateNumber?: InputMaybe<Scalars['String']>;
2431
+ serialNumber?: InputMaybe<Scalars['String']>;
2432
+ status?: InputMaybe<AssetStatus>;
2433
+ tareWeight?: InputMaybe<Scalars['Float']>;
2434
+ year?: InputMaybe<Scalars['Float']>;
2435
+ };
2436
+
2437
+ /** A Trailer entity */
2438
+ export type Trailer = {
2439
+ __typename?: 'Trailer';
2440
+ _id: Scalars['String'];
2441
+ domicile?: Maybe<Address>;
2442
+ height?: Maybe<Scalars['Float']>;
2443
+ lastKnownLocation?: Maybe<Coordinates>;
2444
+ lastKnownLocationDate?: Maybe<Scalars['DateTime']>;
2445
+ length?: Maybe<Scalars['Float']>;
2446
+ licenseNumber?: Maybe<Scalars['String']>;
2447
+ maxTemperature?: Maybe<Scalars['Float']>;
2448
+ maxWeight?: Maybe<Scalars['Float']>;
2449
+ minTemperature?: Maybe<Scalars['Float']>;
2450
+ numberOfAxles?: Maybe<Scalars['Float']>;
2451
+ serialNumber: Scalars['String'];
2452
+ status: AssetStatus;
2453
+ type: TrailerType;
2454
+ width?: Maybe<Scalars['Float']>;
2455
+ };
2456
+
2457
+ export type TrailerPaginatedResult = {
2458
+ __typename?: 'TrailerPaginatedResult';
2459
+ count: Scalars['Int'];
2460
+ data: Array<Trailer>;
2461
+ };
2462
+
2463
+ export enum TrailerType {
2464
+ AutoCarrier = 'AUTO_CARRIER',
2465
+ Conestoga = 'CONESTOGA',
2466
+ Container = 'CONTAINER',
2467
+ Conveyor = 'CONVEYOR',
2468
+ DryBulk = 'DRY_BULK',
2469
+ Enclosed = 'ENCLOSED',
2470
+ FlatBed = 'FLAT_BED',
2471
+ HazardousMaterials = 'HAZARDOUS_MATERIALS',
2472
+ Lowboy = 'LOWBOY',
2473
+ MultiCar = 'MULTI_CAR',
2474
+ Other = 'OTHER',
2475
+ Refrigerated = 'REFRIGERATED',
2476
+ SpecializedDeck = 'SPECIALIZED_DECK',
2477
+ StandardDeck = 'STANDARD_DECK',
2478
+ StraightBoxTruck = 'STRAIGHT_BOX_TRUCK',
2479
+ Tanker = 'TANKER',
2480
+ Van = 'VAN'
2481
+ }
2482
+
2483
+ export type TrailerUpdateInput = {
2484
+ domicile?: InputMaybe<NewAddressInput>;
2485
+ height?: InputMaybe<Scalars['Float']>;
2486
+ lastKnownLocation?: InputMaybe<CoordinatesInput>;
2487
+ length?: InputMaybe<Scalars['Float']>;
2488
+ licenseNumber?: InputMaybe<Scalars['String']>;
2489
+ maxTemperature?: InputMaybe<Scalars['Float']>;
2490
+ maxWeight?: InputMaybe<Scalars['Float']>;
2491
+ minTemperature?: InputMaybe<Scalars['Float']>;
2492
+ numberOfAxles?: InputMaybe<Scalars['Float']>;
2493
+ serialNumber?: InputMaybe<Scalars['String']>;
2494
+ status?: InputMaybe<AssetStatus>;
2495
+ type?: InputMaybe<TrailerType>;
2496
+ width?: InputMaybe<Scalars['Float']>;
2497
+ };
2498
+
2499
+ /** Trip entity */
2500
+ export type Trip = {
2501
+ __typename?: 'Trip';
2502
+ _id: Scalars['String'];
2503
+ chassis?: Maybe<Chassis>;
2504
+ deadheadDistance?: Maybe<Scalars['Float']>;
2505
+ distanceToEnd: Scalars['Float'];
2506
+ distanceToStart: Scalars['Float'];
2507
+ driver?: Maybe<Driver>;
2508
+ driverPositions?: Maybe<Array<TripDriverPosition>>;
2509
+ firstPickupTime?: Maybe<Scalars['DateTime']>;
2510
+ lastDropoffTime?: Maybe<Scalars['DateTime']>;
2511
+ lastTrafficCheck?: Maybe<Scalars['DateTime']>;
2512
+ lastTrailerLocation?: Maybe<Coordinates>;
2513
+ lastTrailerLocationDate?: Maybe<Scalars['DateTime']>;
2514
+ lastWeatherCheck?: Maybe<Scalars['DateTime']>;
2515
+ loadStates?: Maybe<Array<LoadState>>;
2516
+ loadedDistance?: Maybe<Scalars['Float']>;
2517
+ payments?: Maybe<Array<TripPayment>>;
2518
+ polyline: Scalars['String'];
2519
+ routeDistance: Scalars['Float'];
2520
+ shipmentLocations: Array<TripShipmentLocation>;
2521
+ shipments: Array<Shipment>;
2522
+ status: Status;
2523
+ totalDistance?: Maybe<Scalars['Float']>;
2524
+ tractor?: Maybe<Tractor>;
2525
+ trailer?: Maybe<Trailer>;
2526
+ tripNumber: Scalars['String'];
2527
+ };
2528
+
2529
+ export type TripAssetAssignment = {
2530
+ assetId?: InputMaybe<Scalars['String']>;
2531
+ assetType: TripAssetTypes;
2532
+ tripId: Scalars['String'];
2533
+ };
2534
+
2535
+ export enum TripAssetTypes {
2536
+ Chassis = 'CHASSIS',
2537
+ Driver = 'DRIVER',
2538
+ Tractor = 'TRACTOR',
2539
+ Trailer = 'TRAILER'
2540
+ }
2541
+
2542
+ /** TripDriverPosition entity */
2543
+ export type TripDriverPosition = {
2544
+ __typename?: 'TripDriverPosition';
2545
+ activity: Activity;
2546
+ battery: Battery;
2547
+ coords: Coordinates;
2548
+ event: Scalars['String'];
2549
+ extras: Extras;
2550
+ is_moving: Scalars['Boolean'];
2551
+ odometer: Scalars['Float'];
2552
+ timestamp: Scalars['String'];
2553
+ trip: Scalars['String'];
2554
+ uuid: Scalars['String'];
2555
+ };
2556
+
2557
+ /** Result of generating trips */
2558
+ export type TripGenerationResult = {
2559
+ __typename?: 'TripGenerationResult';
2560
+ trips: Array<Trip>;
2561
+ unassignedShipmentLocations: Array<ShipmentLocationWithShipment>;
2562
+ };
2563
+
2564
+ export type TripPaginatedResult = {
2565
+ __typename?: 'TripPaginatedResult';
2566
+ count: Scalars['Int'];
2567
+ data: Array<Trip>;
2568
+ };
2569
+
2570
+ export type TripPayment = {
2571
+ __typename?: 'TripPayment';
2572
+ _id: Scalars['String'];
2573
+ label: Scalars['String'];
2574
+ paymentRule?: Maybe<PaymentRule>;
2575
+ rate: Scalars['Float'];
2576
+ unit: Scalars['Float'];
2577
+ unitType: Scalars['String'];
2578
+ };
2579
+
2580
+ /** Trip shipment location entity */
2581
+ export type TripShipmentLocation = {
2582
+ __typename?: 'TripShipmentLocation';
2583
+ _id: Scalars['String'];
2584
+ arrivalTime: Scalars['DateTime'];
2585
+ location: Coordinates;
2586
+ locationType: ShipmentLocationType;
2587
+ receivedGoods?: Maybe<Array<GoodDistribution>>;
2588
+ receiver?: Maybe<BusinessEntity>;
2589
+ serviceDuration: Scalars['Float'];
2590
+ setupDuration: Scalars['Float'];
2591
+ shipmentId?: Maybe<Scalars['String']>;
2592
+ shippedGoods?: Maybe<Array<Good>>;
2593
+ shipper?: Maybe<BusinessEntity>;
2594
+ timeWindows: Array<DateTimeWindow>;
2595
+ trafficInfo?: Maybe<LocationTraffic>;
2596
+ waitingDuration: Scalars['Float'];
2597
+ weatherInfo?: Maybe<LocationWeather>;
2598
+ };
2599
+
2600
+ export type TripSort = {
2601
+ criteria: TripSortCriteria;
2602
+ desc?: InputMaybe<Scalars['Boolean']>;
2603
+ };
2604
+
2605
+ export enum TripSortCriteria {
2606
+ CreatedAt = 'CREATED_AT',
2607
+ EndLocation = 'END_LOCATION',
2608
+ FinishDate = 'FINISH_DATE',
2609
+ StartDate = 'START_DATE',
2610
+ StartLocation = 'START_LOCATION'
2611
+ }
2612
+
2613
+ export type UserAttributes = {
2614
+ __typename?: 'UserAttributes';
2615
+ driverId?: Maybe<Scalars['String']>;
2616
+ };
2617
+
2618
+ export type UserAttributesInput = {
2619
+ driverId?: InputMaybe<Scalars['String']>;
2620
+ };
2621
+
2622
+ export type WeatherInfo = {
2623
+ __typename?: 'WeatherInfo';
2624
+ description?: Maybe<Scalars['String']>;
2625
+ icon?: Maybe<Scalars['String']>;
2626
+ id?: Maybe<Scalars['Float']>;
2627
+ main?: Maybe<Scalars['String']>;
2628
+ };
2629
+
2630
+ export type GetDriverByEldIdQueryVariables = Exact<{
2631
+ eldId: Scalars['String'];
2632
+ }>;
2633
+
2634
+
2635
+ export type GetDriverByEldIdQuery = { __typename?: 'Query', driverByEldId?: { __typename?: 'Driver', _id: string } | null };
2636
+
2637
+ export type GetDriverByLicenseNumberQueryVariables = Exact<{
2638
+ licenseNumber: Scalars['String'];
2639
+ }>;
2640
+
2641
+
2642
+ export type GetDriverByLicenseNumberQuery = { __typename?: 'Query', driverByLicenseNumber?: { __typename?: 'Driver', _id: string } | null };
2643
+
2644
+ export type AddDriverMutationVariables = Exact<{
2645
+ newDriverData: NewDriverInput;
2646
+ }>;
2647
+
2648
+
2649
+ export type AddDriverMutation = { __typename?: 'Mutation', addDriver: { __typename?: 'Driver', _id: string } };
2650
+
2651
+ export type EditDriverMutationVariables = Exact<{
2652
+ id: Scalars['String'];
2653
+ editDriverData: DriverUpdateInput;
2654
+ }>;
2655
+
2656
+
2657
+ export type EditDriverMutation = { __typename?: 'Mutation', editDriver: { __typename?: 'Driver', _id: string } };
2658
+
2659
+ export type GetInvoiceByIdQueryVariables = Exact<{
2660
+ id: Scalars['String'];
2661
+ }>;
2662
+
2663
+
2664
+ export type GetInvoiceByIdQuery = { __typename?: 'Query', invoiceById: { __typename?: 'Invoice', _id: string, invoiceNumber: string, status: InvoiceStatus, charges: Array<{ __typename?: 'ShipmentCharge', _id: string, billToClient?: boolean | null, label: string, rate: number, unit: number, unitType: string, billingRule?: { __typename?: 'BillingRule', _id: string, referenceNumber?: string | null, label?: string | null } | null }>, customer?: { __typename?: 'BusinessEntity', _id: string, name: string, code?: string | null, billingEmail?: string | null, billingTermsDay?: number | null } | null, pdfDocument: { __typename?: 'InvoicePdf', url?: string | null }, shipment?: { __typename?: 'Shipment', _id: string, shipmentNumber: string, referenceNumber?: string | null } | null } };
2665
+
2666
+ export type GetMyOrganizationQueryVariables = Exact<{ [key: string]: never; }>;
2667
+
2668
+
2669
+ export type GetMyOrganizationQuery = { __typename?: 'Query', myOrganization: { __typename?: 'KeycloakOrganization', id: string, displayName: string, name: string, realm: string, attributes?: { __typename?: 'KeycloakOrganizationAttributes', chargebeeCustomerId?: string | null, dotNumber?: string | null } | null } };
2670
+
2671
+ export type GetTractorByEldIdQueryVariables = Exact<{
2672
+ eldId: Scalars['String'];
2673
+ }>;
2674
+
2675
+
2676
+ export type GetTractorByEldIdQuery = { __typename?: 'Query', tractorByEldId?: { __typename?: 'Tractor', _id: string } | null };
2677
+
2678
+ export type GetTractorByLicenseNumberQueryVariables = Exact<{
2679
+ licenseNumber: Scalars['String'];
2680
+ }>;
2681
+
2682
+
2683
+ export type GetTractorByLicenseNumberQuery = { __typename?: 'Query', tractorByLicenseNumber?: { __typename?: 'Tractor', _id: string } | null };
2684
+
2685
+ export type GetTractorByPlateNumberQueryVariables = Exact<{
2686
+ plateNumber: Scalars['String'];
2687
+ }>;
2688
+
2689
+
2690
+ export type GetTractorByPlateNumberQuery = { __typename?: 'Query', tractorByPlateNumber?: { __typename?: 'Tractor', _id: string } | null };
2691
+
2692
+ export type GetTractorBySerialNumberQueryVariables = Exact<{
2693
+ serialNumber: Scalars['String'];
2694
+ }>;
2695
+
2696
+
2697
+ export type GetTractorBySerialNumberQuery = { __typename?: 'Query', tractorBySerialNumber?: { __typename?: 'Tractor', _id: string } | null };
2698
+
2699
+ export type AddTractorMutationVariables = Exact<{
2700
+ newTractorData: NewTractorInput;
2701
+ }>;
2702
+
2703
+
2704
+ export type AddTractorMutation = { __typename?: 'Mutation', addTractor: { __typename?: 'Tractor', _id: string } };
2705
+
2706
+ export type EditTractorMutationVariables = Exact<{
2707
+ id: Scalars['String'];
2708
+ editTractorData: TractorUpdateInput;
2709
+ }>;
2710
+
2711
+
2712
+ export type EditTractorMutation = { __typename?: 'Mutation', editTractor: { __typename?: 'Tractor', _id: string } };
2713
+
2714
+ export type PersistTractorPositionsMutationVariables = Exact<{
2715
+ id: Scalars['String'];
2716
+ positions: Array<TractorPositionInput> | TractorPositionInput;
2717
+ }>;
2718
+
2719
+
2720
+ export type PersistTractorPositionsMutation = { __typename?: 'Mutation', persistTractorPositions: boolean };
2721
+
2722
+
2723
+ export const GetDriverByEldIdDocument = gql`
2724
+ query getDriverByEldId($eldId: String!) {
2725
+ driverByEldId(eldId: $eldId) {
2726
+ _id
2727
+ }
2728
+ }
2729
+ `;
2730
+ export const GetDriverByLicenseNumberDocument = gql`
2731
+ query getDriverByLicenseNumber($licenseNumber: String!) {
2732
+ driverByLicenseNumber(licenseNumber: $licenseNumber) {
2733
+ _id
2734
+ }
2735
+ }
2736
+ `;
2737
+ export const AddDriverDocument = gql`
2738
+ mutation addDriver($newDriverData: NewDriverInput!) {
2739
+ addDriver(newDriverData: $newDriverData) {
2740
+ _id
2741
+ }
2742
+ }
2743
+ `;
2744
+ export const EditDriverDocument = gql`
2745
+ mutation editDriver($id: String!, $editDriverData: DriverUpdateInput!) {
2746
+ editDriver(id: $id, editDriverData: $editDriverData) {
2747
+ _id
2748
+ }
2749
+ }
2750
+ `;
2751
+ export const GetInvoiceByIdDocument = gql`
2752
+ query getInvoiceById($id: String!) {
2753
+ invoiceById(id: $id) {
2754
+ _id
2755
+ charges {
2756
+ _id
2757
+ billToClient
2758
+ billingRule {
2759
+ _id
2760
+ referenceNumber
2761
+ label
2762
+ }
2763
+ label
2764
+ rate
2765
+ unit
2766
+ unitType
2767
+ }
2768
+ customer {
2769
+ _id
2770
+ name
2771
+ code
2772
+ billingEmail
2773
+ billingTermsDay
2774
+ }
2775
+ invoiceNumber
2776
+ pdfDocument {
2777
+ url
2778
+ }
2779
+ shipment {
2780
+ _id
2781
+ shipmentNumber
2782
+ referenceNumber
2783
+ }
2784
+ status
2785
+ }
2786
+ }
2787
+ `;
2788
+ export const GetMyOrganizationDocument = gql`
2789
+ query getMyOrganization {
2790
+ myOrganization {
2791
+ id
2792
+ displayName
2793
+ name
2794
+ realm
2795
+ attributes {
2796
+ chargebeeCustomerId
2797
+ dotNumber
2798
+ }
2799
+ }
2800
+ }
2801
+ `;
2802
+ export const GetTractorByEldIdDocument = gql`
2803
+ query getTractorByEldId($eldId: String!) {
2804
+ tractorByEldId(eldId: $eldId) {
2805
+ _id
2806
+ }
2807
+ }
2808
+ `;
2809
+ export const GetTractorByLicenseNumberDocument = gql`
2810
+ query getTractorByLicenseNumber($licenseNumber: String!) {
2811
+ tractorByLicenseNumber(licenseNumber: $licenseNumber) {
2812
+ _id
2813
+ }
2814
+ }
2815
+ `;
2816
+ export const GetTractorByPlateNumberDocument = gql`
2817
+ query getTractorByPlateNumber($plateNumber: String!) {
2818
+ tractorByPlateNumber(plateNumber: $plateNumber) {
2819
+ _id
2820
+ }
2821
+ }
2822
+ `;
2823
+ export const GetTractorBySerialNumberDocument = gql`
2824
+ query getTractorBySerialNumber($serialNumber: String!) {
2825
+ tractorBySerialNumber(serialNumber: $serialNumber) {
2826
+ _id
2827
+ }
2828
+ }
2829
+ `;
2830
+ export const AddTractorDocument = gql`
2831
+ mutation addTractor($newTractorData: NewTractorInput!) {
2832
+ addTractor(newTractorData: $newTractorData) {
2833
+ _id
2834
+ }
2835
+ }
2836
+ `;
2837
+ export const EditTractorDocument = gql`
2838
+ mutation editTractor($id: String!, $editTractorData: TractorUpdateInput!) {
2839
+ editTractor(id: $id, editTractorData: $editTractorData) {
2840
+ _id
2841
+ }
2842
+ }
2843
+ `;
2844
+ export const PersistTractorPositionsDocument = gql`
2845
+ mutation persistTractorPositions($id: String!, $positions: [TractorPositionInput!]!) {
2846
+ persistTractorPositions(id: $id, positions: $positions)
2847
+ }
2848
+ `;
2849
+
2850
+ export type SdkFunctionWrapper = <T>(action: (requestHeaders?:Record<string, string>) => Promise<T>, operationName: string, operationType?: string) => Promise<T>;
2851
+
2852
+
2853
+ const defaultWrapper: SdkFunctionWrapper = (action, _operationName, _operationType) => action();
2854
+
2855
+ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = defaultWrapper) {
2856
+ return {
2857
+ getDriverByEldId(variables: GetDriverByEldIdQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetDriverByEldIdQuery> {
2858
+ return withWrapper((wrappedRequestHeaders) => client.request<GetDriverByEldIdQuery>(GetDriverByEldIdDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getDriverByEldId', 'query');
2859
+ },
2860
+ getDriverByLicenseNumber(variables: GetDriverByLicenseNumberQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetDriverByLicenseNumberQuery> {
2861
+ return withWrapper((wrappedRequestHeaders) => client.request<GetDriverByLicenseNumberQuery>(GetDriverByLicenseNumberDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getDriverByLicenseNumber', 'query');
2862
+ },
2863
+ addDriver(variables: AddDriverMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<AddDriverMutation> {
2864
+ return withWrapper((wrappedRequestHeaders) => client.request<AddDriverMutation>(AddDriverDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'addDriver', 'mutation');
2865
+ },
2866
+ editDriver(variables: EditDriverMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<EditDriverMutation> {
2867
+ return withWrapper((wrappedRequestHeaders) => client.request<EditDriverMutation>(EditDriverDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'editDriver', 'mutation');
2868
+ },
2869
+ getInvoiceById(variables: GetInvoiceByIdQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetInvoiceByIdQuery> {
2870
+ return withWrapper((wrappedRequestHeaders) => client.request<GetInvoiceByIdQuery>(GetInvoiceByIdDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getInvoiceById', 'query');
2871
+ },
2872
+ getMyOrganization(variables?: GetMyOrganizationQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetMyOrganizationQuery> {
2873
+ return withWrapper((wrappedRequestHeaders) => client.request<GetMyOrganizationQuery>(GetMyOrganizationDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getMyOrganization', 'query');
2874
+ },
2875
+ getTractorByEldId(variables: GetTractorByEldIdQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetTractorByEldIdQuery> {
2876
+ return withWrapper((wrappedRequestHeaders) => client.request<GetTractorByEldIdQuery>(GetTractorByEldIdDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getTractorByEldId', 'query');
2877
+ },
2878
+ getTractorByLicenseNumber(variables: GetTractorByLicenseNumberQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetTractorByLicenseNumberQuery> {
2879
+ return withWrapper((wrappedRequestHeaders) => client.request<GetTractorByLicenseNumberQuery>(GetTractorByLicenseNumberDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getTractorByLicenseNumber', 'query');
2880
+ },
2881
+ getTractorByPlateNumber(variables: GetTractorByPlateNumberQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetTractorByPlateNumberQuery> {
2882
+ return withWrapper((wrappedRequestHeaders) => client.request<GetTractorByPlateNumberQuery>(GetTractorByPlateNumberDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getTractorByPlateNumber', 'query');
2883
+ },
2884
+ getTractorBySerialNumber(variables: GetTractorBySerialNumberQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetTractorBySerialNumberQuery> {
2885
+ return withWrapper((wrappedRequestHeaders) => client.request<GetTractorBySerialNumberQuery>(GetTractorBySerialNumberDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getTractorBySerialNumber', 'query');
2886
+ },
2887
+ addTractor(variables: AddTractorMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<AddTractorMutation> {
2888
+ return withWrapper((wrappedRequestHeaders) => client.request<AddTractorMutation>(AddTractorDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'addTractor', 'mutation');
2889
+ },
2890
+ editTractor(variables: EditTractorMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<EditTractorMutation> {
2891
+ return withWrapper((wrappedRequestHeaders) => client.request<EditTractorMutation>(EditTractorDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'editTractor', 'mutation');
2892
+ },
2893
+ persistTractorPositions(variables: PersistTractorPositionsMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<PersistTractorPositionsMutation> {
2894
+ return withWrapper((wrappedRequestHeaders) => client.request<PersistTractorPositionsMutation>(PersistTractorPositionsDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'persistTractorPositions', 'mutation');
2895
+ }
2896
+ };
2897
+ }
2898
+ export type Sdk = ReturnType<typeof getSdk>;