@truetms/truetms-node 0.2.7 → 0.3.0

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.
@@ -16,6 +16,7 @@ export type Scalars = {
16
16
  ConditionValue: any;
17
17
  CustomFieldValue: any;
18
18
  DateTime: any;
19
+ Email: any;
19
20
  JSON: any;
20
21
  Mixed: any;
21
22
  ObjectId: any;
@@ -56,7 +57,9 @@ export type AssetLinking = {
56
57
  _id: Scalars['String'];
57
58
  additionalTrailers?: Maybe<Array<Trailer>>;
58
59
  driver?: Maybe<Driver>;
60
+ endDate?: Maybe<Scalars['DateTime']>;
59
61
  isHardLinked?: Maybe<Scalars['Boolean']>;
62
+ startDate?: Maybe<Scalars['DateTime']>;
60
63
  tractor?: Maybe<Tractor>;
61
64
  trailer?: Maybe<Trailer>;
62
65
  };
@@ -64,7 +67,9 @@ export type AssetLinking = {
64
67
  export type AssetLinkingInput = {
65
68
  additionalTrailers?: InputMaybe<Array<Scalars['ObjectId']>>;
66
69
  driver?: InputMaybe<Scalars['ObjectId']>;
70
+ endDate?: InputMaybe<Scalars['DateTime']>;
67
71
  isHardLinked?: InputMaybe<Scalars['Boolean']>;
72
+ startDate?: InputMaybe<Scalars['DateTime']>;
68
73
  tractor?: InputMaybe<Scalars['ObjectId']>;
69
74
  trailer?: InputMaybe<Scalars['ObjectId']>;
70
75
  };
@@ -78,7 +83,9 @@ export type AssetLinkingPaginatedResult = {
78
83
  export type AssetLinkingUpdateInput = {
79
84
  additionalTrailers?: InputMaybe<Array<Scalars['ObjectId']>>;
80
85
  driver?: InputMaybe<Scalars['ObjectId']>;
86
+ endDate?: InputMaybe<Scalars['DateTime']>;
81
87
  isHardLinked?: InputMaybe<Scalars['Boolean']>;
88
+ startDate?: InputMaybe<Scalars['DateTime']>;
82
89
  tractor?: InputMaybe<Scalars['ObjectId']>;
83
90
  trailer?: InputMaybe<Scalars['ObjectId']>;
84
91
  };
@@ -102,13 +109,17 @@ export type Battery = {
102
109
 
103
110
  export enum BillingMethod {
104
111
  FlatFee = 'FLAT_FEE',
112
+ PercentageOfLineHaul = 'PERCENTAGE_OF_LINE_HAUL',
105
113
  PerDetentionHour = 'PER_DETENTION_HOUR',
106
114
  PerEmptyKm = 'PER_EMPTY_KM',
107
115
  PerEmptyMile = 'PER_EMPTY_MILE',
116
+ PerGallon = 'PER_GALLON',
108
117
  PerHour = 'PER_HOUR',
109
118
  PerKg = 'PER_KG',
110
119
  PerKm = 'PER_KM',
111
120
  PerKmWithDeadhead = 'PER_KM_WITH_DEADHEAD',
121
+ PerLiter = 'PER_LITER',
122
+ PerLocation = 'PER_LOCATION',
112
123
  PerMile = 'PER_MILE',
113
124
  PerMileWithDeadhead = 'PER_MILE_WITH_DEADHEAD',
114
125
  PerPound = 'PER_POUND',
@@ -120,15 +131,34 @@ export type BillingRate = {
120
131
  __typename?: 'BillingRate';
121
132
  amount: Scalars['Float'];
122
133
  method: BillingMethod;
134
+ parameters?: Maybe<Array<BillingRateParameter>>;
123
135
  referenceNumber?: Maybe<Scalars['String']>;
124
136
  };
125
137
 
126
138
  export type BillingRateInput = {
127
139
  amount: Scalars['Float'];
128
140
  method: BillingMethod;
141
+ parameters?: InputMaybe<Array<BillingRateParameterInput>>;
129
142
  referenceNumber?: InputMaybe<Scalars['String']>;
130
143
  };
131
144
 
145
+ export type BillingRateParameter = {
146
+ __typename?: 'BillingRateParameter';
147
+ type: BillingRateParameterType;
148
+ value?: Maybe<Scalars['ConditionValue']>;
149
+ };
150
+
151
+ export type BillingRateParameterInput = {
152
+ type: BillingRateParameterType;
153
+ value?: InputMaybe<Scalars['ConditionValue']>;
154
+ };
155
+
156
+ export enum BillingRateParameterType {
157
+ FreeLocationCount = 'FREE_LOCATION_COUNT',
158
+ GoodProfile = 'GOOD_PROFILE',
159
+ LocationType = 'LOCATION_TYPE'
160
+ }
161
+
132
162
  /** A customer billing rule */
133
163
  export type BillingRule = {
134
164
  __typename?: 'BillingRule';
@@ -151,12 +181,14 @@ export type BillingRule = {
151
181
  export type BillingRuleCondition = {
152
182
  __typename?: 'BillingRuleCondition';
153
183
  operator: BillingRuleConditionOperator;
184
+ parameters?: Maybe<Array<BillingRuleConditionParameter>>;
154
185
  target: BillingRuleConditionTarget;
155
186
  value?: Maybe<Scalars['ConditionValue']>;
156
187
  };
157
188
 
158
189
  export type BillingRuleConditionInput = {
159
190
  operator: BillingRuleConditionOperator;
191
+ parameters?: InputMaybe<Array<BillingRuleConditionParameterInput>>;
160
192
  target: BillingRuleConditionTarget;
161
193
  value?: InputMaybe<Scalars['ConditionValue']>;
162
194
  };
@@ -169,9 +201,25 @@ export enum BillingRuleConditionOperator {
169
201
  NotEquals = 'NOT_EQUALS'
170
202
  }
171
203
 
204
+ export type BillingRuleConditionParameter = {
205
+ __typename?: 'BillingRuleConditionParameter';
206
+ type: BillingRuleConditionParameterType;
207
+ value?: Maybe<Scalars['ConditionValue']>;
208
+ };
209
+
210
+ export type BillingRuleConditionParameterInput = {
211
+ type: BillingRuleConditionParameterType;
212
+ value?: InputMaybe<Scalars['ConditionValue']>;
213
+ };
214
+
215
+ export enum BillingRuleConditionParameterType {
216
+ FuelCostArea = 'FUEL_COST_AREA'
217
+ }
218
+
172
219
  export enum BillingRuleConditionTarget {
173
220
  Date = 'DATE',
174
221
  DetentionTime = 'DETENTION_TIME',
222
+ FuelCost = 'FUEL_COST',
175
223
  Goods = 'GOODS',
176
224
  Mileage = 'MILEAGE',
177
225
  Otherwise = 'OTHERWISE',
@@ -179,7 +227,8 @@ export enum BillingRuleConditionTarget {
179
227
  Shipper = 'SHIPPER',
180
228
  Time = 'TIME',
181
229
  Trailer = 'TRAILER',
182
- TrailerType = 'TRAILER_TYPE'
230
+ TrailerType = 'TRAILER_TYPE',
231
+ Volume = 'VOLUME'
183
232
  }
184
233
 
185
234
  export type BillingRulePaginatedResult = {
@@ -234,6 +283,7 @@ export type Broker = {
234
283
  creditTerms?: Maybe<Scalars['String']>;
235
284
  /** Custom fields for the business entity */
236
285
  customFields?: Maybe<Array<CustomField>>;
286
+ defaultReferenceNumbers?: Maybe<Array<DefaultReferenceNumber>>;
237
287
  /** The default shipper for this business entity */
238
288
  defaultShipper?: Maybe<BusinessEntity>;
239
289
  /** ID of the default shipper for this business entity. This is used by default when a shipment is sent to this business entity */
@@ -271,6 +321,8 @@ export type Broker = {
271
321
  remitCompanyName?: Maybe<Scalars['String']>;
272
322
  /** Remit email for the business entity */
273
323
  remitEmail?: Maybe<Scalars['String']>;
324
+ /** Shipmentp documents to receive via email on completion */
325
+ shipmentDocumentsToReceive?: Maybe<Array<Scalars['String']>>;
274
326
  /** SCAC code for carriers */
275
327
  standardCarrierAlphaCode?: Maybe<Scalars['String']>;
276
328
  status: AssetStatus;
@@ -330,6 +382,7 @@ export type BusinessEntity = {
330
382
  creditTerms?: Maybe<Scalars['String']>;
331
383
  /** Custom fields for the business entity */
332
384
  customFields?: Maybe<Array<CustomField>>;
385
+ defaultReferenceNumbers?: Maybe<Array<DefaultReferenceNumber>>;
333
386
  /** The default shipper for this business entity */
334
387
  defaultShipper?: Maybe<BusinessEntity>;
335
388
  /** ID of the default shipper for this business entity. This is used by default when a shipment is sent to this business entity */
@@ -367,6 +420,8 @@ export type BusinessEntity = {
367
420
  remitCompanyName?: Maybe<Scalars['String']>;
368
421
  /** Remit email for the business entity */
369
422
  remitEmail?: Maybe<Scalars['String']>;
423
+ /** Shipmentp documents to receive via email on completion */
424
+ shipmentDocumentsToReceive?: Maybe<Array<Scalars['String']>>;
370
425
  /** SCAC code for carriers */
371
426
  standardCarrierAlphaCode?: Maybe<Scalars['String']>;
372
427
  status: AssetStatus;
@@ -413,6 +468,7 @@ export type BusinessEntityUpdateInput = {
413
468
  contact?: InputMaybe<NewContactInput>;
414
469
  creditTerms?: InputMaybe<Scalars['String']>;
415
470
  customFields?: InputMaybe<Array<CustomFieldInput>>;
471
+ defaultReferenceNumbers?: InputMaybe<Array<DefaultReferenceNumberInput>>;
416
472
  defaultShipperId?: InputMaybe<Scalars['ObjectId']>;
417
473
  documents?: InputMaybe<Array<DocumentInput>>;
418
474
  dotNumber?: InputMaybe<Scalars['String']>;
@@ -430,6 +486,7 @@ export type BusinessEntityUpdateInput = {
430
486
  /** Remit company name for the business entity */
431
487
  remitCompanyName?: InputMaybe<Scalars['String']>;
432
488
  remitEmail?: InputMaybe<Scalars['String']>;
489
+ shipmentDocumentsToReceive?: InputMaybe<Array<Scalars['String']>>;
433
490
  standardCarrierAlphaCode?: InputMaybe<Scalars['String']>;
434
491
  status?: InputMaybe<AssetStatus>;
435
492
  storageFacilities?: InputMaybe<Array<StorageFacilityInput>>;
@@ -466,6 +523,7 @@ export type Carrier = {
466
523
  creditTerms?: Maybe<Scalars['String']>;
467
524
  /** Custom fields for the business entity */
468
525
  customFields?: Maybe<Array<CustomField>>;
526
+ defaultReferenceNumbers?: Maybe<Array<DefaultReferenceNumber>>;
469
527
  /** The default shipper for this business entity */
470
528
  defaultShipper?: Maybe<BusinessEntity>;
471
529
  /** ID of the default shipper for this business entity. This is used by default when a shipment is sent to this business entity */
@@ -503,6 +561,8 @@ export type Carrier = {
503
561
  remitCompanyName?: Maybe<Scalars['String']>;
504
562
  /** Remit email for the business entity */
505
563
  remitEmail?: Maybe<Scalars['String']>;
564
+ /** Shipmentp documents to receive via email on completion */
565
+ shipmentDocumentsToReceive?: Maybe<Array<Scalars['String']>>;
506
566
  /** SCAC code for carriers */
507
567
  standardCarrierAlphaCode?: Maybe<Scalars['String']>;
508
568
  status: AssetStatus;
@@ -739,6 +799,7 @@ export type Customer = {
739
799
  creditTerms?: Maybe<Scalars['String']>;
740
800
  /** Custom fields for the business entity */
741
801
  customFields?: Maybe<Array<CustomField>>;
802
+ defaultReferenceNumbers?: Maybe<Array<DefaultReferenceNumber>>;
742
803
  /** The default shipper for this business entity */
743
804
  defaultShipper?: Maybe<BusinessEntity>;
744
805
  /** ID of the default shipper for this business entity. This is used by default when a shipment is sent to this business entity */
@@ -776,6 +837,8 @@ export type Customer = {
776
837
  remitCompanyName?: Maybe<Scalars['String']>;
777
838
  /** Remit email for the business entity */
778
839
  remitEmail?: Maybe<Scalars['String']>;
840
+ /** Shipmentp documents to receive via email on completion */
841
+ shipmentDocumentsToReceive?: Maybe<Array<Scalars['String']>>;
779
842
  /** SCAC code for carriers */
780
843
  standardCarrierAlphaCode?: Maybe<Scalars['String']>;
781
844
  status: AssetStatus;
@@ -895,6 +958,17 @@ export enum DeductionType {
895
958
  Deduction = 'DEDUCTION'
896
959
  }
897
960
 
961
+ export type DefaultReferenceNumber = {
962
+ __typename?: 'DefaultReferenceNumber';
963
+ referenceNumberType: ShipmentReferenceNumberType;
964
+ referenceNumberValue: Scalars['String'];
965
+ };
966
+
967
+ export type DefaultReferenceNumberInput = {
968
+ referenceNumberType: ShipmentReferenceNumberType;
969
+ referenceNumberValue: Scalars['String'];
970
+ };
971
+
898
972
  export type DeleteShipmentDocumentInput = {
899
973
  _id?: InputMaybe<Scalars['String']>;
900
974
  shipment?: InputMaybe<Scalars['String']>;
@@ -1212,9 +1286,47 @@ export type DriverShift = {
1212
1286
  domicileId?: Maybe<Scalars['ObjectId']>;
1213
1287
  driverIds?: Maybe<Array<Scalars['ObjectId']>>;
1214
1288
  endTime: Time;
1289
+ /** Ad hoc driver shifts are one time shifts that have been assigned directly from the planning tool */
1290
+ isAdhoc?: Maybe<Scalars['Boolean']>;
1291
+ label?: Maybe<Scalars['String']>;
1215
1292
  startTime: Time;
1216
1293
  };
1217
1294
 
1295
+ export type DriverShiftAssignment = {
1296
+ __typename?: 'DriverShiftAssignment';
1297
+ _id: Scalars['String'];
1298
+ driver?: Maybe<Driver>;
1299
+ driverId: Scalars['ObjectId'];
1300
+ driverShift?: Maybe<DriverShift>;
1301
+ driverShiftId: Scalars['ObjectId'];
1302
+ endDate?: Maybe<Scalars['DateTime']>;
1303
+ startDate?: Maybe<Scalars['DateTime']>;
1304
+ };
1305
+
1306
+ export type DriverShiftAssignmentPaginatedResult = {
1307
+ __typename?: 'DriverShiftAssignmentPaginatedResult';
1308
+ count: Scalars['Int'];
1309
+ data: Array<DriverShiftAssignment>;
1310
+ };
1311
+
1312
+ export type DriverShiftAssignmentUpdateInput = {
1313
+ driverId?: InputMaybe<Scalars['ObjectId']>;
1314
+ driverShiftId?: InputMaybe<Scalars['ObjectId']>;
1315
+ endDate?: InputMaybe<Scalars['DateTime']>;
1316
+ startDate?: InputMaybe<Scalars['DateTime']>;
1317
+ };
1318
+
1319
+ export type DriverShiftDeletedEvent = {
1320
+ __typename?: 'DriverShiftDeletedEvent';
1321
+ name: Events;
1322
+ payload: DriverShiftDeletedEventPayload;
1323
+ };
1324
+
1325
+ export type DriverShiftDeletedEventPayload = {
1326
+ __typename?: 'DriverShiftDeletedEventPayload';
1327
+ driverShiftId: Scalars['ObjectId'];
1328
+ };
1329
+
1218
1330
  export type DriverShiftPaginatedResult = {
1219
1331
  __typename?: 'DriverShiftPaginatedResult';
1220
1332
  count: Scalars['Int'];
@@ -1226,6 +1338,9 @@ export type DriverShiftUpdateInput = {
1226
1338
  domicileId?: InputMaybe<Scalars['ObjectId']>;
1227
1339
  driverIds?: InputMaybe<Array<Scalars['ObjectId']>>;
1228
1340
  endTime?: InputMaybe<TimeInput>;
1341
+ /** Ad hoc driver shifts are one time shifts that have been assigned directly from the planning tool */
1342
+ isAdhoc?: InputMaybe<Scalars['Boolean']>;
1343
+ label?: InputMaybe<Scalars['String']>;
1229
1344
  startTime?: InputMaybe<TimeInput>;
1230
1345
  };
1231
1346
 
@@ -1269,6 +1384,7 @@ export type DriverUpdatedEventPayload = {
1269
1384
  };
1270
1385
 
1271
1386
  export type DriverWhere = {
1387
+ domicile?: InputMaybe<Scalars['String']>;
1272
1388
  status?: InputMaybe<AssetStatus>;
1273
1389
  };
1274
1390
 
@@ -1300,6 +1416,7 @@ export enum Events {
1300
1416
  DriverPositionUpdated = 'DRIVER_POSITION_UPDATED',
1301
1417
  DriverSettlementCreated = 'DRIVER_SETTLEMENT_CREATED',
1302
1418
  DriverSettlementDeleted = 'DRIVER_SETTLEMENT_DELETED',
1419
+ DriverShiftDeleted = 'DRIVER_SHIFT_DELETED',
1303
1420
  DriverUpdated = 'DRIVER_UPDATED',
1304
1421
  ExpenseCreated = 'EXPENSE_CREATED',
1305
1422
  ExpenseDeleted = 'EXPENSE_DELETED',
@@ -1322,6 +1439,7 @@ export enum Events {
1322
1439
  TrailerPositionUpdated = 'TRAILER_POSITION_UPDATED',
1323
1440
  TripCompleted = 'TRIP_COMPLETED',
1324
1441
  TripCreated = 'TRIP_CREATED',
1442
+ TripDistancesCalculated = 'TRIP_DISTANCES_CALCULATED',
1325
1443
  TripFullyAssigned = 'TRIP_FULLY_ASSIGNED',
1326
1444
  TripUpdated = 'TRIP_UPDATED',
1327
1445
  UserStatusUpdated = 'USER_STATUS_UPDATED'
@@ -1377,6 +1495,18 @@ export type Extension = {
1377
1495
  websiteUrl?: Maybe<Scalars['String']>;
1378
1496
  };
1379
1497
 
1498
+ /** Extension action */
1499
+ export type ExtensionAction = {
1500
+ __typename?: 'ExtensionAction';
1501
+ text: Scalars['String'];
1502
+ type: ExtensionActionType;
1503
+ url: Scalars['String'];
1504
+ };
1505
+
1506
+ export enum ExtensionActionType {
1507
+ Url = 'URL'
1508
+ }
1509
+
1380
1510
  /** Extension configuration definition */
1381
1511
  export type ExtensionConfigurationDefinition = {
1382
1512
  __typename?: 'ExtensionConfigurationDefinition';
@@ -1479,12 +1609,19 @@ export type ExtensionInstallWithRedirectUrl = {
1479
1609
  /** Extension message */
1480
1610
  export type ExtensionMessage = {
1481
1611
  __typename?: 'ExtensionMessage';
1612
+ actions?: Maybe<Array<ExtensionAction>>;
1613
+ context?: Maybe<ExtensionMessageContext>;
1482
1614
  extensionId: Scalars['String'];
1483
1615
  extensionName: Scalars['String'];
1484
1616
  text: Scalars['String'];
1485
1617
  type: ExtensionMessageType;
1486
1618
  };
1487
1619
 
1620
+ export enum ExtensionMessageContext {
1621
+ OrdersList = 'ORDERS_LIST',
1622
+ PlanningTool = 'PLANNING_TOOL'
1623
+ }
1624
+
1488
1625
  export enum ExtensionMessageType {
1489
1626
  Error = 'ERROR',
1490
1627
  Info = 'INFO',
@@ -1545,6 +1682,28 @@ export type ExtensionSettings = {
1545
1682
  operations: Array<ExtensionOperation>;
1546
1683
  rootUrl: Scalars['String'];
1547
1684
  uninstallEndpoint: Scalars['String'];
1685
+ widgets: Array<ExtensionWidget>;
1686
+ };
1687
+
1688
+ /** Extension widget */
1689
+ export type ExtensionWidget = {
1690
+ __typename?: 'ExtensionWidget';
1691
+ context: ExtensionWidgetContext;
1692
+ endpoint: Scalars['String'];
1693
+ label: Scalars['String'];
1694
+ };
1695
+
1696
+ export enum ExtensionWidgetContext {
1697
+ PlanningToolHeader = 'PLANNING_TOOL_HEADER'
1698
+ }
1699
+
1700
+ export type ExtensionWidgetWithExtensionInfo = {
1701
+ __typename?: 'ExtensionWidgetWithExtensionInfo';
1702
+ context: ExtensionWidgetContext;
1703
+ endpoint: Scalars['String'];
1704
+ extensionId: Scalars['String'];
1705
+ label: Scalars['String'];
1706
+ rootUrl: Scalars['String'];
1548
1707
  };
1549
1708
 
1550
1709
  export type ExtensionWithStatus = {
@@ -1753,13 +1912,21 @@ export type GoodDistribution = {
1753
1912
  goodId: Scalars['String'];
1754
1913
  goodProfile?: Maybe<GoodProfile>;
1755
1914
  goodProfileId?: Maybe<Scalars['ObjectId']>;
1915
+ pinCode?: Maybe<Scalars['String']>;
1756
1916
  quantity?: Maybe<Scalars['Float']>;
1917
+ shipperId?: Maybe<Scalars['ObjectId']>;
1918
+ supplierId?: Maybe<Scalars['ObjectId']>;
1919
+ unitPrice?: Maybe<Scalars['Float']>;
1757
1920
  };
1758
1921
 
1759
1922
  export type GoodDistributionInput = {
1760
1923
  goodId: Scalars['String'];
1761
1924
  goodProfileId?: InputMaybe<Scalars['ObjectId']>;
1925
+ pinCode?: InputMaybe<Scalars['String']>;
1762
1926
  quantity?: InputMaybe<Scalars['Float']>;
1927
+ shipperId?: InputMaybe<Scalars['ObjectId']>;
1928
+ supplierId?: InputMaybe<Scalars['ObjectId']>;
1929
+ unitPrice?: InputMaybe<Scalars['Float']>;
1763
1930
  };
1764
1931
 
1765
1932
  export type GoodInput = {
@@ -1999,8 +2166,11 @@ export enum InvoicingProcess {
1999
2166
 
2000
2167
  export type InvoicingSettings = {
2001
2168
  __typename?: 'InvoicingSettings';
2169
+ /** @deprecated Use Organization.address instead */
2002
2170
  companyAddress?: Maybe<Scalars['String']>;
2171
+ /** @deprecated Use Organization.email instead */
2003
2172
  companyEmail?: Maybe<Scalars['String']>;
2173
+ /** @deprecated Use Organization.phoneNumber instead */
2004
2174
  companyPhone?: Maybe<Scalars['String']>;
2005
2175
  enableTaxRate?: Maybe<Scalars['Boolean']>;
2006
2176
  logoUrl?: Maybe<Scalars['String']>;
@@ -2026,15 +2196,6 @@ export type InvoicingSettingsInput = {
2026
2196
  remitEmail?: InputMaybe<Scalars['String']>;
2027
2197
  };
2028
2198
 
2029
- export type KeycloakOrganization = {
2030
- __typename?: 'KeycloakOrganization';
2031
- attributes?: Maybe<KeycloakOrganizationAttributes>;
2032
- displayName: Scalars['String'];
2033
- id: Scalars['String'];
2034
- name: Scalars['String'];
2035
- realm: Scalars['String'];
2036
- };
2037
-
2038
2199
  export type KeycloakOrganizationAttributes = {
2039
2200
  __typename?: 'KeycloakOrganizationAttributes';
2040
2201
  chargebeeCustomerId?: Maybe<Scalars['String']>;
@@ -2278,11 +2439,13 @@ export type Mutation = {
2278
2439
  addDeductionRule: DeductionRule;
2279
2440
  addDriver: Driver;
2280
2441
  addDriverShift: DriverShift;
2442
+ addDriverShiftAssignment: DriverShiftAssignment;
2281
2443
  addGoodProfile: GoodProfile;
2282
2444
  addGroup: Group;
2283
2445
  addMaintenanceTask: MaintenanceTask;
2284
2446
  addNotesShipment: Shipment;
2285
2447
  addOrder: Order;
2448
+ addOrgDoc: OrganizationDocument;
2286
2449
  addOrgUser: OrgUser;
2287
2450
  addPaymentRule: PaymentRule;
2288
2451
  addQualification: Qualification;
@@ -2329,6 +2492,7 @@ export type Mutation = {
2329
2492
  callExtensionOperation: ExtensionOperationResponse;
2330
2493
  cancelShipmentSplit?: Maybe<Shipment>;
2331
2494
  changeTripStartTime?: Maybe<Trip>;
2495
+ checkShipmentsCombinability: Scalars['Boolean'];
2332
2496
  completeMaintenanceTask: MaintenanceTask;
2333
2497
  computeLineHaulForTrip?: Maybe<Trip>;
2334
2498
  deleteAssetLinking: Scalars['Boolean'];
@@ -2343,11 +2507,13 @@ export type Mutation = {
2343
2507
  deleteDriver: Scalars['Boolean'];
2344
2508
  deleteDriverSettlement: Scalars['Boolean'];
2345
2509
  deleteDriverShift: Scalars['Boolean'];
2510
+ deleteDriverShiftAssignment: Scalars['Boolean'];
2346
2511
  deleteGoodProfile: Scalars['Boolean'];
2347
2512
  deleteGroup: Scalars['Boolean'];
2348
2513
  deleteInvoice: Scalars['Boolean'];
2349
2514
  deleteMaintenanceTask: Scalars['Boolean'];
2350
2515
  deleteOrder: Scalars['Boolean'];
2516
+ deleteOrgDoc: Scalars['Boolean'];
2351
2517
  deleteOrgUser: Scalars['Boolean'];
2352
2518
  deletePaymentRule: Scalars['Boolean'];
2353
2519
  deleteQualification: Scalars['Boolean'];
@@ -2379,6 +2545,7 @@ export type Mutation = {
2379
2545
  editDriver: Driver;
2380
2546
  editDriverSettlement?: Maybe<DriverSettlement>;
2381
2547
  editDriverShift: DriverShift;
2548
+ editDriverShiftAssignment: DriverShiftAssignment;
2382
2549
  /** Edit good pin code */
2383
2550
  editGoodPinCode?: Maybe<Shipment>;
2384
2551
  editGoodProfile: GoodProfile;
@@ -2388,7 +2555,9 @@ export type Mutation = {
2388
2555
  editMaintenanceTask: MaintenanceTask;
2389
2556
  editNoteShipment: Shipment;
2390
2557
  editOrder: Order;
2558
+ editOrgDoc: Scalars['String'];
2391
2559
  editOrgUser: OrgUser;
2560
+ editOrganization: Scalars['String'];
2392
2561
  editPaymentRule?: Maybe<PaymentRule>;
2393
2562
  editQualification: Qualification;
2394
2563
  editReceiver: Receiver;
@@ -2507,6 +2676,11 @@ export type MutationAddDriverShiftArgs = {
2507
2676
  };
2508
2677
 
2509
2678
 
2679
+ export type MutationAddDriverShiftAssignmentArgs = {
2680
+ newDriverShiftAssignmentData: NewDriverShiftAssignmentInput;
2681
+ };
2682
+
2683
+
2510
2684
  export type MutationAddGoodProfileArgs = {
2511
2685
  newGoodProfileData: NewGoodProfileInput;
2512
2686
  };
@@ -2532,6 +2706,11 @@ export type MutationAddOrderArgs = {
2532
2706
  };
2533
2707
 
2534
2708
 
2709
+ export type MutationAddOrgDocArgs = {
2710
+ newOrganizationDocumentData: NewOrganizationDocumentInput;
2711
+ };
2712
+
2713
+
2535
2714
  export type MutationAddOrgUserArgs = {
2536
2715
  newOrgUserData: NewOrgUserInput;
2537
2716
  };
@@ -2773,6 +2952,11 @@ export type MutationChangeTripStartTimeArgs = {
2773
2952
  };
2774
2953
 
2775
2954
 
2955
+ export type MutationCheckShipmentsCombinabilityArgs = {
2956
+ generateTripData: GenerateTripInput;
2957
+ };
2958
+
2959
+
2776
2960
  export type MutationCompleteMaintenanceTaskArgs = {
2777
2961
  id: Scalars['ObjectId'];
2778
2962
  };
@@ -2843,6 +3027,11 @@ export type MutationDeleteDriverShiftArgs = {
2843
3027
  };
2844
3028
 
2845
3029
 
3030
+ export type MutationDeleteDriverShiftAssignmentArgs = {
3031
+ id: Scalars['String'];
3032
+ };
3033
+
3034
+
2846
3035
  export type MutationDeleteGoodProfileArgs = {
2847
3036
  id: Scalars['String'];
2848
3037
  };
@@ -2868,6 +3057,11 @@ export type MutationDeleteOrderArgs = {
2868
3057
  };
2869
3058
 
2870
3059
 
3060
+ export type MutationDeleteOrgDocArgs = {
3061
+ id: Scalars['ObjectId'];
3062
+ };
3063
+
3064
+
2871
3065
  export type MutationDeleteOrgUserArgs = {
2872
3066
  id: Scalars['String'];
2873
3067
  };
@@ -3037,6 +3231,12 @@ export type MutationEditDriverShiftArgs = {
3037
3231
  };
3038
3232
 
3039
3233
 
3234
+ export type MutationEditDriverShiftAssignmentArgs = {
3235
+ editDriverShiftAssignmentData: DriverShiftAssignmentUpdateInput;
3236
+ id: Scalars['String'];
3237
+ };
3238
+
3239
+
3040
3240
  export type MutationEditGoodPinCodeArgs = {
3041
3241
  goodId: Scalars['String'];
3042
3242
  id: Scalars['ObjectId'];
@@ -3080,12 +3280,23 @@ export type MutationEditOrderArgs = {
3080
3280
  };
3081
3281
 
3082
3282
 
3283
+ export type MutationEditOrgDocArgs = {
3284
+ id: Scalars['ObjectId'];
3285
+ organizationDocumentData: OrganizationDocumentUpdateInput;
3286
+ };
3287
+
3288
+
3083
3289
  export type MutationEditOrgUserArgs = {
3084
3290
  editOrgUserData: OrgUserUpdateInput;
3085
3291
  id: Scalars['String'];
3086
3292
  };
3087
3293
 
3088
3294
 
3295
+ export type MutationEditOrganizationArgs = {
3296
+ organizationSetupData: OrganizationUpdateInput;
3297
+ };
3298
+
3299
+
3089
3300
  export type MutationEditPaymentRuleArgs = {
3090
3301
  editPaymentRuleData: PaymentRuleUpdateInput;
3091
3302
  id: Scalars['String'];
@@ -3261,8 +3472,11 @@ export type MutationPersistTractorPositionsArgs = {
3261
3472
 
3262
3473
 
3263
3474
  export type MutationPlanTripsForDriverArgs = {
3475
+ additionalTrailerIds?: InputMaybe<Array<Scalars['ObjectId']>>;
3264
3476
  driverId: Scalars['ObjectId'];
3265
3477
  planTimezone?: InputMaybe<Scalars['String']>;
3478
+ tractorId?: InputMaybe<Scalars['ObjectId']>;
3479
+ trailerId?: InputMaybe<Scalars['ObjectId']>;
3266
3480
  trips: Array<TripForPlanningInput>;
3267
3481
  };
3268
3482
 
@@ -3329,7 +3543,7 @@ export type MutationSendReportPdfArgs = {
3329
3543
 
3330
3544
 
3331
3545
  export type MutationSetupOrganizationArgs = {
3332
- organizationSetupData: OrganizationSetupData;
3546
+ organizationSetupData: NewOrganizationInput;
3333
3547
  };
3334
3548
 
3335
3549
 
@@ -3451,6 +3665,7 @@ export type NewBusinessEntityInput = {
3451
3665
  contact?: InputMaybe<NewContactInput>;
3452
3666
  creditTerms?: InputMaybe<Scalars['String']>;
3453
3667
  customFields?: InputMaybe<Array<CustomFieldInput>>;
3668
+ defaultReferenceNumbers?: InputMaybe<Array<DefaultReferenceNumberInput>>;
3454
3669
  defaultShipperId?: InputMaybe<Scalars['ObjectId']>;
3455
3670
  documents?: InputMaybe<Array<DocumentInput>>;
3456
3671
  dotNumber?: InputMaybe<Scalars['String']>;
@@ -3468,6 +3683,7 @@ export type NewBusinessEntityInput = {
3468
3683
  /** Remit company name for the business entity */
3469
3684
  remitCompanyName?: InputMaybe<Scalars['String']>;
3470
3685
  remitEmail?: InputMaybe<Scalars['String']>;
3686
+ shipmentDocumentsToReceive?: InputMaybe<Array<Scalars['String']>>;
3471
3687
  standardCarrierAlphaCode?: InputMaybe<Scalars['String']>;
3472
3688
  status?: InputMaybe<AssetStatus>;
3473
3689
  storageFacilities?: InputMaybe<Array<StorageFacilityInput>>;
@@ -3487,6 +3703,7 @@ export type NewBusinessEntityInputWithType = {
3487
3703
  contact?: InputMaybe<NewContactInput>;
3488
3704
  creditTerms?: InputMaybe<Scalars['String']>;
3489
3705
  customFields?: InputMaybe<Array<CustomFieldInput>>;
3706
+ defaultReferenceNumbers?: InputMaybe<Array<DefaultReferenceNumberInput>>;
3490
3707
  defaultShipperId?: InputMaybe<Scalars['ObjectId']>;
3491
3708
  documents?: InputMaybe<Array<DocumentInput>>;
3492
3709
  dotNumber?: InputMaybe<Scalars['String']>;
@@ -3504,6 +3721,7 @@ export type NewBusinessEntityInputWithType = {
3504
3721
  /** Remit company name for the business entity */
3505
3722
  remitCompanyName?: InputMaybe<Scalars['String']>;
3506
3723
  remitEmail?: InputMaybe<Scalars['String']>;
3724
+ shipmentDocumentsToReceive?: InputMaybe<Array<Scalars['String']>>;
3507
3725
  standardCarrierAlphaCode?: InputMaybe<Scalars['String']>;
3508
3726
  status?: InputMaybe<AssetStatus>;
3509
3727
  storageFacilities?: InputMaybe<Array<StorageFacilityInput>>;
@@ -3573,11 +3791,21 @@ export type NewDriverInput = {
3573
3791
  username?: InputMaybe<Scalars['String']>;
3574
3792
  };
3575
3793
 
3794
+ export type NewDriverShiftAssignmentInput = {
3795
+ driverId: Scalars['ObjectId'];
3796
+ driverShiftId: Scalars['ObjectId'];
3797
+ endDate?: InputMaybe<Scalars['DateTime']>;
3798
+ startDate?: InputMaybe<Scalars['DateTime']>;
3799
+ };
3800
+
3576
3801
  export type NewDriverShiftInput = {
3577
3802
  days: Array<Scalars['Int']>;
3578
3803
  domicileId?: InputMaybe<Scalars['ObjectId']>;
3579
3804
  driverIds?: InputMaybe<Array<Scalars['ObjectId']>>;
3580
3805
  endTime: TimeInput;
3806
+ /** Ad hoc driver shifts are one time shifts that have been assigned directly from the planning tool */
3807
+ isAdhoc?: InputMaybe<Scalars['Boolean']>;
3808
+ label?: InputMaybe<Scalars['String']>;
3581
3809
  startTime: TimeInput;
3582
3810
  };
3583
3811
 
@@ -3632,6 +3860,21 @@ export type NewOrgUserInput = {
3632
3860
  username: Scalars['String'];
3633
3861
  };
3634
3862
 
3863
+ export type NewOrganizationDocumentInput = {
3864
+ _id?: InputMaybe<Scalars['String']>;
3865
+ name: Scalars['String'];
3866
+ url?: InputMaybe<Scalars['String']>;
3867
+ };
3868
+
3869
+ export type NewOrganizationInput = {
3870
+ address?: InputMaybe<Scalars['String']>;
3871
+ contactFullname?: InputMaybe<Scalars['String']>;
3872
+ dotNumber: Scalars['String'];
3873
+ email?: InputMaybe<Scalars['Email']>;
3874
+ name: Scalars['String'];
3875
+ phoneNumber?: InputMaybe<Scalars['String']>;
3876
+ };
3877
+
3635
3878
  export type NewPaymentRuleInput = {
3636
3879
  amount: Scalars['Float'];
3637
3880
  driver?: InputMaybe<Scalars['String']>;
@@ -3741,6 +3984,7 @@ export type NewTextualAddressInput = {
3741
3984
 
3742
3985
  export type NewTractorInput = {
3743
3986
  customFields?: InputMaybe<Array<CustomFieldInput>>;
3987
+ documents?: InputMaybe<Array<DocumentInput>>;
3744
3988
  domicile?: InputMaybe<NewAddressInput>;
3745
3989
  eldId?: InputMaybe<Scalars['String']>;
3746
3990
  groupIds?: InputMaybe<Array<Scalars['ObjectId']>>;
@@ -3765,6 +4009,7 @@ export type NewTrailerEventInput = {
3765
4009
  export type NewTrailerInput = {
3766
4010
  compartments?: InputMaybe<Array<TrailerCompartmentInput>>;
3767
4011
  customFields?: InputMaybe<Array<CustomFieldInput>>;
4012
+ documents?: InputMaybe<Array<DocumentInput>>;
3768
4013
  domicile?: InputMaybe<NewAddressInput>;
3769
4014
  groupIds?: InputMaybe<Array<Scalars['ObjectId']>>;
3770
4015
  height?: InputMaybe<Scalars['Float']>;
@@ -3921,12 +4166,44 @@ export type OrgUserUpdateInput = {
3921
4166
  username?: InputMaybe<Scalars['String']>;
3922
4167
  };
3923
4168
 
4169
+ export type Organization = {
4170
+ __typename?: 'Organization';
4171
+ _id?: Maybe<Scalars['String']>;
4172
+ address?: Maybe<Scalars['String']>;
4173
+ /** @deprecated Use company fields directly */
4174
+ attributes: KeycloakOrganizationAttributes;
4175
+ contactFullname?: Maybe<Scalars['String']>;
4176
+ /** @deprecated This field is the same as name */
4177
+ displayName: Scalars['String'];
4178
+ dotNumber: Scalars['String'];
4179
+ email?: Maybe<Scalars['Email']>;
4180
+ /** @deprecated Use _id instead */
4181
+ id?: Maybe<Scalars['String']>;
4182
+ name: Scalars['String'];
4183
+ phoneNumber?: Maybe<Scalars['String']>;
4184
+ /** @deprecated This field should not be used by any client. The realm is the same accross all orgs */
4185
+ realm: Scalars['String'];
4186
+ };
4187
+
4188
+ export type OrganizationDocument = {
4189
+ __typename?: 'OrganizationDocument';
4190
+ _id?: Maybe<Scalars['String']>;
4191
+ name: Scalars['String'];
4192
+ url?: Maybe<Scalars['String']>;
4193
+ };
4194
+
4195
+ export type OrganizationDocumentUpdateInput = {
4196
+ name?: InputMaybe<Scalars['String']>;
4197
+ url?: InputMaybe<Scalars['String']>;
4198
+ };
4199
+
3924
4200
  export type OrganizationSettings = {
3925
4201
  __typename?: 'OrganizationSettings';
3926
4202
  _id?: Maybe<Scalars['String']>;
3927
4203
  dispatching?: Maybe<DispatchingSettings>;
3928
4204
  general?: Maybe<GeneralSettings>;
3929
4205
  invoicing?: Maybe<InvoicingSettings>;
4206
+ name?: Maybe<Scalars['String']>;
3930
4207
  ratecon?: Maybe<RateconSettings>;
3931
4208
  transactionTemplates?: Maybe<Array<TransactionInputObject>>;
3932
4209
  };
@@ -3936,13 +4213,18 @@ export type OrganizationSettingsInput = {
3936
4213
  dispatching?: InputMaybe<DispatchingSettingsInput>;
3937
4214
  general?: InputMaybe<GeneralSettingsInput>;
3938
4215
  invoicing?: InputMaybe<InvoicingSettingsInput>;
4216
+ name?: InputMaybe<Scalars['String']>;
3939
4217
  ratecon?: InputMaybe<RateconSettingsInput>;
3940
4218
  transactionTemplates?: InputMaybe<Array<TransactionInput>>;
3941
4219
  };
3942
4220
 
3943
- export type OrganizationSetupData = {
3944
- dotNumber: Scalars['String'];
3945
- name: Scalars['String'];
4221
+ export type OrganizationUpdateInput = {
4222
+ address?: InputMaybe<Scalars['String']>;
4223
+ contactFullname?: InputMaybe<Scalars['String']>;
4224
+ dotNumber?: InputMaybe<Scalars['String']>;
4225
+ email?: InputMaybe<Scalars['Email']>;
4226
+ name?: InputMaybe<Scalars['String']>;
4227
+ phoneNumber?: InputMaybe<Scalars['String']>;
3946
4228
  };
3947
4229
 
3948
4230
  export type PartialShipment = {
@@ -4200,6 +4482,7 @@ export type Query = {
4200
4482
  customerById: Customer;
4201
4483
  customerOrderById: Order;
4202
4484
  customerOrders: OrderPaginatedResult;
4485
+ customerShipments: ShipmentPaginatedResult;
4203
4486
  customers: CustomerPaginatedResult;
4204
4487
  cutomFieldDefinitions: CustomFieldDefinitionPaginatedResult;
4205
4488
  deductionRuleById: DeductionRule;
@@ -4210,6 +4493,9 @@ export type Query = {
4210
4493
  driverSettlementById?: Maybe<DriverSettlement>;
4211
4494
  driverSettlementByNumber: DriverSettlement;
4212
4495
  driverSettlements: DriverSettlementPaginatedResult;
4496
+ driverShiftAssignmentByDriverId?: Maybe<DriverShiftAssignment>;
4497
+ driverShiftAssignmentById?: Maybe<DriverShiftAssignment>;
4498
+ driverShiftAssignments: DriverShiftAssignmentPaginatedResult;
4213
4499
  driverShiftByDriverId?: Maybe<DriverShift>;
4214
4500
  driverShiftById?: Maybe<DriverShift>;
4215
4501
  driverShifts: DriverShiftPaginatedResult;
@@ -4219,6 +4505,7 @@ export type Query = {
4219
4505
  extensionsCustomFields: Array<ExtensionCustomFieldWithExtensionId>;
4220
4506
  extensionsMessages: Array<ExtensionMessage>;
4221
4507
  extensionsOperations: Array<ExtensionOperationWithExtensionId>;
4508
+ extensionsWidgets: Array<ExtensionWidgetWithExtensionInfo>;
4222
4509
  forecastingNotifications: Array<ForecastingNotification>;
4223
4510
  goodProfileById: GoodProfile;
4224
4511
  goodProfiles: GoodProfilePaginatedResult;
@@ -4235,8 +4522,9 @@ export type Query = {
4235
4522
  maintenanceTaskById?: Maybe<MaintenanceTask>;
4236
4523
  maintenanceTasks: MaintenanceTaskPaginatedResult;
4237
4524
  metrics: Array<Metric>;
4525
+ myDocuments: Array<OrganizationDocument>;
4238
4526
  myDriverSettlements: MyDriverSettlementPaginatedResult;
4239
- myOrganization: KeycloakOrganization;
4527
+ myOrganization: Organization;
4240
4528
  orderById: Order;
4241
4529
  orders: OrderPaginatedResult;
4242
4530
  orgUserById: OrgUser;
@@ -4424,6 +4712,16 @@ export type QueryCustomerOrdersArgs = {
4424
4712
  };
4425
4713
 
4426
4714
 
4715
+ export type QueryCustomerShipmentsArgs = {
4716
+ filter?: InputMaybe<Scalars['JSON']>;
4717
+ orderBy?: InputMaybe<Array<OrderByItem>>;
4718
+ search?: InputMaybe<Scalars['String']>;
4719
+ skip?: InputMaybe<Scalars['Int']>;
4720
+ status?: InputMaybe<Status>;
4721
+ take?: InputMaybe<Scalars['Int']>;
4722
+ };
4723
+
4724
+
4427
4725
  export type QueryCustomersArgs = {
4428
4726
  filter?: InputMaybe<Scalars['JSON']>;
4429
4727
  orderBy?: InputMaybe<Array<OrderByItem>>;
@@ -4493,6 +4791,25 @@ export type QueryDriverSettlementsArgs = {
4493
4791
  };
4494
4792
 
4495
4793
 
4794
+ export type QueryDriverShiftAssignmentByDriverIdArgs = {
4795
+ driverId: Scalars['ObjectId'];
4796
+ };
4797
+
4798
+
4799
+ export type QueryDriverShiftAssignmentByIdArgs = {
4800
+ id: Scalars['String'];
4801
+ };
4802
+
4803
+
4804
+ export type QueryDriverShiftAssignmentsArgs = {
4805
+ filter?: InputMaybe<Scalars['JSON']>;
4806
+ orderBy?: InputMaybe<Array<OrderByItem>>;
4807
+ search?: InputMaybe<Scalars['String']>;
4808
+ skip?: InputMaybe<Scalars['Int']>;
4809
+ take?: InputMaybe<Scalars['Int']>;
4810
+ };
4811
+
4812
+
4496
4813
  export type QueryDriverShiftByDriverIdArgs = {
4497
4814
  driverId: Scalars['ObjectId'];
4498
4815
  };
@@ -4546,6 +4863,11 @@ export type QueryExtensionsOperationsArgs = {
4546
4863
  };
4547
4864
 
4548
4865
 
4866
+ export type QueryExtensionsWidgetsArgs = {
4867
+ context: ExtensionWidgetContext;
4868
+ };
4869
+
4870
+
4549
4871
  export type QueryForecastingNotificationsArgs = {
4550
4872
  receiverId?: InputMaybe<Scalars['ObjectId']>;
4551
4873
  };
@@ -4978,8 +5300,11 @@ export type QueryTripsArgs = {
4978
5300
  export type RateconSettings = {
4979
5301
  __typename?: 'RateconSettings';
4980
5302
  bodyTemplate?: Maybe<Scalars['String']>;
5303
+ /** @deprecated Use Organization.address instead */
4981
5304
  companyAddress?: Maybe<Scalars['String']>;
5305
+ /** @deprecated Use Organization.email instead */
4982
5306
  companyEmail?: Maybe<Scalars['String']>;
5307
+ /** @deprecated Use Organization.phoneNumber instead */
4983
5308
  companyPhone?: Maybe<Scalars['String']>;
4984
5309
  subjectTemplate?: Maybe<Scalars['String']>;
4985
5310
  termsAndConditions?: Maybe<Scalars['String']>;
@@ -5084,6 +5409,7 @@ export type Receiver = {
5084
5409
  creditTerms?: Maybe<Scalars['String']>;
5085
5410
  /** Custom fields for the business entity */
5086
5411
  customFields?: Maybe<Array<CustomField>>;
5412
+ defaultReferenceNumbers?: Maybe<Array<DefaultReferenceNumber>>;
5087
5413
  /** The default shipper for this business entity */
5088
5414
  defaultShipper?: Maybe<BusinessEntity>;
5089
5415
  /** ID of the default shipper for this business entity. This is used by default when a shipment is sent to this business entity */
@@ -5121,6 +5447,8 @@ export type Receiver = {
5121
5447
  remitCompanyName?: Maybe<Scalars['String']>;
5122
5448
  /** Remit email for the business entity */
5123
5449
  remitEmail?: Maybe<Scalars['String']>;
5450
+ /** Shipmentp documents to receive via email on completion */
5451
+ shipmentDocumentsToReceive?: Maybe<Array<Scalars['String']>>;
5124
5452
  /** SCAC code for carriers */
5125
5453
  standardCarrierAlphaCode?: Maybe<Scalars['String']>;
5126
5454
  status: AssetStatus;
@@ -5633,6 +5961,13 @@ export type ShipmentEventUpdatedEventPayload = {
5633
5961
  shipment: Shipment;
5634
5962
  };
5635
5963
 
5964
+ export type ShipmentGoodPinCodeUpdatedEvent = {
5965
+ __typename?: 'ShipmentGoodPinCodeUpdatedEvent';
5966
+ name: Events;
5967
+ organizationId?: Maybe<Scalars['String']>;
5968
+ payload: ShipmentGoodPinCodeUpdatedPayload;
5969
+ };
5970
+
5636
5971
  export type ShipmentGoodPinCodeUpdatedPayload = {
5637
5972
  __typename?: 'ShipmentGoodPinCodeUpdatedPayload';
5638
5973
  goodId: Scalars['String'];
@@ -5971,6 +6306,7 @@ export type Shipper = {
5971
6306
  creditTerms?: Maybe<Scalars['String']>;
5972
6307
  /** Custom fields for the business entity */
5973
6308
  customFields?: Maybe<Array<CustomField>>;
6309
+ defaultReferenceNumbers?: Maybe<Array<DefaultReferenceNumber>>;
5974
6310
  /** The default shipper for this business entity */
5975
6311
  defaultShipper?: Maybe<BusinessEntity>;
5976
6312
  /** ID of the default shipper for this business entity. This is used by default when a shipment is sent to this business entity */
@@ -6008,6 +6344,8 @@ export type Shipper = {
6008
6344
  remitCompanyName?: Maybe<Scalars['String']>;
6009
6345
  /** Remit email for the business entity */
6010
6346
  remitEmail?: Maybe<Scalars['String']>;
6347
+ /** Shipmentp documents to receive via email on completion */
6348
+ shipmentDocumentsToReceive?: Maybe<Array<Scalars['String']>>;
6011
6349
  /** SCAC code for carriers */
6012
6350
  standardCarrierAlphaCode?: Maybe<Scalars['String']>;
6013
6351
  status: AssetStatus;
@@ -6373,6 +6711,7 @@ export type Tractor = {
6373
6711
  _id: Scalars['String'];
6374
6712
  currentDriverEldId?: Maybe<Scalars['String']>;
6375
6713
  customFields?: Maybe<Array<CustomField>>;
6714
+ documents?: Maybe<Array<Document>>;
6376
6715
  domicile?: Maybe<Address>;
6377
6716
  eldId?: Maybe<Scalars['String']>;
6378
6717
  groupIds?: Maybe<Array<Scalars['ObjectId']>>;
@@ -6435,6 +6774,7 @@ export type TractorPositionUpdatedEventPayload = {
6435
6774
 
6436
6775
  export type TractorUpdateInput = {
6437
6776
  customFields?: InputMaybe<Array<CustomFieldInput>>;
6777
+ documents?: InputMaybe<Array<DocumentInput>>;
6438
6778
  domicile?: InputMaybe<NewAddressInput>;
6439
6779
  eldId?: InputMaybe<Scalars['String']>;
6440
6780
  groupIds?: InputMaybe<Array<Scalars['ObjectId']>>;
@@ -6456,6 +6796,7 @@ export type Trailer = {
6456
6796
  _id: Scalars['String'];
6457
6797
  compartments?: Maybe<Array<TrailerCompartment>>;
6458
6798
  customFields?: Maybe<Array<CustomField>>;
6799
+ documents?: Maybe<Array<Document>>;
6459
6800
  domicile?: Maybe<Address>;
6460
6801
  groupIds?: Maybe<Array<Scalars['ObjectId']>>;
6461
6802
  height?: Maybe<Scalars['Float']>;
@@ -6606,6 +6947,7 @@ export enum TrailerType {
6606
6947
  export type TrailerUpdateInput = {
6607
6948
  compartments?: InputMaybe<Array<TrailerCompartmentInput>>;
6608
6949
  customFields?: InputMaybe<Array<CustomFieldInput>>;
6950
+ documents?: InputMaybe<Array<DocumentInput>>;
6609
6951
  domicile?: InputMaybe<NewAddressInput>;
6610
6952
  groupIds?: InputMaybe<Array<Scalars['ObjectId']>>;
6611
6953
  height?: InputMaybe<Scalars['Float']>;
@@ -6796,6 +7138,11 @@ export type TripCreatedEventPayload = {
6796
7138
  trip: Trip;
6797
7139
  };
6798
7140
 
7141
+ export type TripDistancesCalculatedEventPayload = {
7142
+ __typename?: 'TripDistancesCalculatedEventPayload';
7143
+ tripId: Scalars['ObjectId'];
7144
+ };
7145
+
6799
7146
  /** TripDriverPosition entity */
6800
7147
  export type TripDriverPosition = {
6801
7148
  __typename?: 'TripDriverPosition';
@@ -7009,6 +7356,13 @@ export type UserAttributesInput = {
7009
7356
  trialDays?: InputMaybe<Scalars['String']>;
7010
7357
  };
7011
7358
 
7359
+ export type UserStatusUpdatedEvent = {
7360
+ __typename?: 'UserStatusUpdatedEvent';
7361
+ name: Events;
7362
+ organizationId: Scalars['String'];
7363
+ payload: UserStatusUpdatedEventPayload;
7364
+ };
7365
+
7012
7366
  export type UserStatusUpdatedEventPayload = {
7013
7367
  __typename?: 'UserStatusUpdatedEventPayload';
7014
7368
  enabled: Scalars['Boolean'];
@@ -7061,7 +7415,7 @@ export type GetBusinessEntityDetailsQueryVariables = Exact<{
7061
7415
  }>;
7062
7416
 
7063
7417
 
7064
- export type GetBusinessEntityDetailsQuery = { __typename?: 'Query', businessEntityById: { __typename?: 'BusinessEntity', _id: string, name: string, code?: string | null, mcNumber?: string | null, additionalTypes?: Array<BusinessEntityType> | null, addressTimezone?: string | null, billingEmail?: string | null, billingTermsDay?: number | null, remitEmail?: string | null, type: BusinessEntityType, address: { __typename?: 'Address', label: string, city?: string | null, country?: string | null, googlePlaceId?: string | null, line1?: string | null, line2?: string | null, postalCode?: string | null, state?: string | null, coordinates: { __typename?: 'Coordinates', latitude: number, longitude: number } }, billingAddress?: { __typename?: 'TextualAddress', city?: string | null, country?: string | null, googlePlaceId?: string | null, line1?: string | null, line2?: string | null, postalCode?: string | null, state?: string | null } | null, remitAddress?: { __typename?: 'TextualAddress', city?: string | null, country?: string | null, googlePlaceId?: string | null, line1?: string | null, line2?: string | null, postalCode?: string | null, state?: string | null } | null, contact: { __typename?: 'Contact', email?: string | null, firstname: string, lastname: string, phoneNumber: string }, openingSchedules?: Array<{ __typename?: 'OpeningSchedule', openingTime: string, closingTime: string, days: Array<number> }> | null, additionalContacts?: Array<{ __typename?: 'Contact', firstname: string, lastname: string, email?: string | null, phoneNumber: string }> | null, goodInventoryItems?: Array<{ __typename?: 'GoodInventoryItem', _id?: string | null, label: string, weight?: number | null }> | null } };
7418
+ export type GetBusinessEntityDetailsQuery = { __typename?: 'Query', businessEntityById: { __typename?: 'BusinessEntity', _id: string, name: string, code?: string | null, mcNumber?: string | null, additionalTypes?: Array<BusinessEntityType> | null, addressTimezone?: string | null, billingEmail?: string | null, billingTermsDay?: number | null, remitEmail?: string | null, type: BusinessEntityType, address: { __typename?: 'Address', label: string, city?: string | null, country?: string | null, googlePlaceId?: string | null, line1?: string | null, line2?: string | null, postalCode?: string | null, state?: string | null, coordinates: { __typename?: 'Coordinates', latitude: number, longitude: number } }, billingAddress?: { __typename?: 'TextualAddress', city?: string | null, country?: string | null, googlePlaceId?: string | null, line1?: string | null, line2?: string | null, postalCode?: string | null, state?: string | null } | null, remitAddress?: { __typename?: 'TextualAddress', city?: string | null, country?: string | null, googlePlaceId?: string | null, line1?: string | null, line2?: string | null, postalCode?: string | null, state?: string | null } | null, contact: { __typename?: 'Contact', email?: string | null, firstname: string, lastname: string, phoneNumber: string }, openingSchedules?: Array<{ __typename?: 'OpeningSchedule', openingTime: string, closingTime: string, days: Array<number> }> | null, additionalContacts?: Array<{ __typename?: 'Contact', firstname: string, lastname: string, email?: string | null, phoneNumber: string }> | null, goodInventoryItems?: Array<{ __typename?: 'GoodInventoryItem', _id?: string | null, label: string, weight?: number | null }> | null, storageFacilities?: Array<{ __typename?: 'StorageFacility', identifier: string, capacity: number, unit: StorageFacilityUnit, commodityId: any, safeFillLevel?: number | null, shutDownLevel?: number | null, commodity?: { __typename?: 'GoodProfile', _id: string, label: string, unit: GoodUnits, weight: number } | null }> | null } };
7065
7419
 
7066
7420
  export type GetBusinessEntityDetailsByExternalIdQueryVariables = Exact<{
7067
7421
  externalId: Scalars['String'];
@@ -7170,7 +7524,21 @@ export type UpdateInvoiceStatusMutation = { __typename?: 'Mutation', updateInvoi
7170
7524
  export type GetMyOrganizationQueryVariables = Exact<{ [key: string]: never; }>;
7171
7525
 
7172
7526
 
7173
- 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 } };
7527
+ export type GetMyOrganizationQuery = { __typename?: 'Query', myOrganization: { __typename?: 'Organization', id?: string | null, displayName: string, name: string, realm: string, attributes: { __typename?: 'KeycloakOrganizationAttributes', chargebeeCustomerId?: string | null, dotNumber?: string | null } } };
7528
+
7529
+ export type AddStorageFacilityReadingMutationVariables = Exact<{
7530
+ newStorageFacilityReadingData: NewStorageFacilityReadingInput;
7531
+ }>;
7532
+
7533
+
7534
+ export type AddStorageFacilityReadingMutation = { __typename?: 'Mutation', addStorageFacilityReading: { __typename?: 'StorageFacilityReading', _id: string } };
7535
+
7536
+ export type GetReceiverReadingsQueryVariables = Exact<{
7537
+ receiverId: Scalars['ObjectId'];
7538
+ }>;
7539
+
7540
+
7541
+ export type GetReceiverReadingsQuery = { __typename?: 'Query', storageFacilityReadings: { __typename?: 'StorageFacilityReadingPaginatedResult', data: Array<{ __typename?: 'StorageFacilityReading', _id: string, storageFacilityId: string, date: any, level: number }> } };
7174
7542
 
7175
7543
  export type GetTractorByEldIdQueryVariables = Exact<{
7176
7544
  eldId: Scalars['String'];
@@ -7272,7 +7640,7 @@ export type ListTripsQueryVariables = Exact<{
7272
7640
  }>;
7273
7641
 
7274
7642
 
7275
- export type ListTripsQuery = { __typename?: 'Query', trips: { __typename?: 'TripPaginatedResult', count: number, data: Array<{ __typename?: 'Trip', _id: string, tripNumber?: string | null, status: Status, firstPickupTime?: any | null, lastDropoffTime?: any | null, tags?: Array<string> | null, shipments: Array<{ __typename?: 'Shipment', _id: string, shipmentNumber: string, referenceNumbers?: Array<string> | null, isFromSplit?: boolean | null, isFromRotation?: boolean | null, parentShipment?: { __typename?: 'Shipment', _id: string } | null }>, shipmentLocations: Array<{ __typename?: 'TripShipmentLocation', _id: string, name?: string | null, addressLabel?: string | null, addressTimezone?: string | null, locationType: ShipmentLocationType, arrivalTime: any, waitingDuration: number, setupDuration: number, serviceDuration: number, shipper?: { __typename?: 'BusinessEntity', _id: string, name: string, addressTimezone?: string | null, address: { __typename?: 'Address', label: string } } | null, receiver?: { __typename?: 'BusinessEntity', _id: string, name: string, addressTimezone?: string | null, address: { __typename?: 'Address', label: string } } | null, timeWindows: Array<{ __typename?: 'DateTimeWindow', fromDate: any, toDate: any }> }>, trailer?: { __typename?: 'Trailer', _id: string, type: TrailerType, serialNumber: string } | null, tractor?: { __typename?: 'Tractor', _id: string, serialNumber: string } | null, driver?: { __typename?: 'Driver', _id: string, firstname: string, lastname: string } | null, carrier?: { __typename?: 'BusinessEntity', _id: string, name: string, code?: string | null } | null, customFields?: Array<{ __typename?: 'CustomField', key: string, value?: any | null }> | null }> } };
7643
+ export type ListTripsQuery = { __typename?: 'Query', trips: { __typename?: 'TripPaginatedResult', count: number, data: Array<{ __typename?: 'Trip', _id: string, tripNumber?: string | null, status: Status, firstPickupTime?: any | null, lastDropoffTime?: any | null, tags?: Array<string> | null, shipments: Array<{ __typename?: 'Shipment', _id: string, shipmentNumber: string, referenceNumbers?: Array<string> | null, isFromSplit?: boolean | null, isFromRotation?: boolean | null, parentShipment?: { __typename?: 'Shipment', _id: string } | null }>, shipmentLocations: Array<{ __typename?: 'TripShipmentLocation', _id: string, name?: string | null, addressLabel?: string | null, addressTimezone?: string | null, locationType: ShipmentLocationType, arrivalTime: any, waitingDuration: number, setupDuration: number, serviceDuration: number, location: { __typename?: 'Coordinates', latitude: number, longitude: number }, shipper?: { __typename?: 'BusinessEntity', _id: string, name: string, addressTimezone?: string | null, address: { __typename?: 'Address', label: string } } | null, receiver?: { __typename?: 'BusinessEntity', _id: string, name: string, addressTimezone?: string | null, address: { __typename?: 'Address', label: string } } | null, timeWindows: Array<{ __typename?: 'DateTimeWindow', fromDate: any, toDate: any }> }>, trailer?: { __typename?: 'Trailer', _id: string, type: TrailerType, serialNumber: string } | null, tractor?: { __typename?: 'Tractor', _id: string, serialNumber: string } | null, driver?: { __typename?: 'Driver', _id: string, firstname: string, lastname: string } | null, carrier?: { __typename?: 'BusinessEntity', _id: string, name: string, code?: string | null } | null, customFields?: Array<{ __typename?: 'CustomField', key: string, value?: any | null }> | null }> } };
7276
7644
 
7277
7645
  export type GetOrgUserByIdQueryVariables = Exact<{
7278
7646
  id: Scalars['String'];
@@ -7378,6 +7746,20 @@ export const GetBusinessEntityDetailsDocument = gql`
7378
7746
  weight
7379
7747
  }
7380
7748
  type
7749
+ storageFacilities {
7750
+ identifier
7751
+ capacity
7752
+ unit
7753
+ commodityId
7754
+ safeFillLevel
7755
+ shutDownLevel
7756
+ commodity {
7757
+ _id
7758
+ label
7759
+ unit
7760
+ weight
7761
+ }
7762
+ }
7381
7763
  }
7382
7764
  }
7383
7765
  `;
@@ -7866,6 +8248,27 @@ export const GetMyOrganizationDocument = gql`
7866
8248
  }
7867
8249
  }
7868
8250
  `;
8251
+ export const AddStorageFacilityReadingDocument = gql`
8252
+ mutation addStorageFacilityReading($newStorageFacilityReadingData: NewStorageFacilityReadingInput!) {
8253
+ addStorageFacilityReading(
8254
+ newStorageFacilityReadingData: $newStorageFacilityReadingData
8255
+ ) {
8256
+ _id
8257
+ }
8258
+ }
8259
+ `;
8260
+ export const GetReceiverReadingsDocument = gql`
8261
+ query getReceiverReadings($receiverId: ObjectId!) {
8262
+ storageFacilityReadings(receiverId: $receiverId) {
8263
+ data {
8264
+ _id
8265
+ storageFacilityId
8266
+ date
8267
+ level
8268
+ }
8269
+ }
8270
+ }
8271
+ `;
7869
8272
  export const GetTractorByEldIdDocument = gql`
7870
8273
  query getTractorByEldId($eldId: String!) {
7871
8274
  tractorByEldId(eldId: $eldId) {
@@ -7999,6 +8402,10 @@ export const ListTripsDocument = gql`
7999
8402
  _id
8000
8403
  name
8001
8404
  addressLabel
8405
+ location {
8406
+ latitude
8407
+ longitude
8408
+ }
8002
8409
  addressTimezone
8003
8410
  locationType
8004
8411
  arrivalTime
@@ -8133,6 +8540,12 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper =
8133
8540
  getMyOrganization(variables?: GetMyOrganizationQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetMyOrganizationQuery> {
8134
8541
  return withWrapper((wrappedRequestHeaders) => client.request<GetMyOrganizationQuery>(GetMyOrganizationDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getMyOrganization', 'query');
8135
8542
  },
8543
+ addStorageFacilityReading(variables: AddStorageFacilityReadingMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<AddStorageFacilityReadingMutation> {
8544
+ return withWrapper((wrappedRequestHeaders) => client.request<AddStorageFacilityReadingMutation>(AddStorageFacilityReadingDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'addStorageFacilityReading', 'mutation');
8545
+ },
8546
+ getReceiverReadings(variables: GetReceiverReadingsQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetReceiverReadingsQuery> {
8547
+ return withWrapper((wrappedRequestHeaders) => client.request<GetReceiverReadingsQuery>(GetReceiverReadingsDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getReceiverReadings', 'query');
8548
+ },
8136
8549
  getTractorByEldId(variables: GetTractorByEldIdQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetTractorByEldIdQuery> {
8137
8550
  return withWrapper((wrappedRequestHeaders) => client.request<GetTractorByEldIdQuery>(GetTractorByEldIdDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getTractorByEldId', 'query');
8138
8551
  },