@truetms/truetms-node 0.2.0 → 0.2.2

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.
@@ -17,6 +17,7 @@ export type Scalars = {
17
17
  CustomFieldValue: any;
18
18
  DateTime: any;
19
19
  Mixed: any;
20
+ ObjectId: any;
20
21
  ReportFilter: any;
21
22
  ReportItemValue: any;
22
23
  };
@@ -41,6 +42,32 @@ export type Address = {
41
42
  state?: Maybe<Scalars['String']>;
42
43
  };
43
44
 
45
+ export type AssetLinking = {
46
+ __typename?: 'AssetLinking';
47
+ _id: Scalars['String'];
48
+ driver?: Maybe<Driver>;
49
+ tractor?: Maybe<Tractor>;
50
+ trailer?: Maybe<Trailer>;
51
+ };
52
+
53
+ export type AssetLinkingInput = {
54
+ driver?: InputMaybe<Scalars['ObjectId']>;
55
+ tractor?: InputMaybe<Scalars['ObjectId']>;
56
+ trailer?: InputMaybe<Scalars['ObjectId']>;
57
+ };
58
+
59
+ export type AssetLinkingPaginatedResult = {
60
+ __typename?: 'AssetLinkingPaginatedResult';
61
+ count: Scalars['Int'];
62
+ data: Array<AssetLinking>;
63
+ };
64
+
65
+ export type AssetLinkingUpdateInput = {
66
+ driver?: InputMaybe<Scalars['ObjectId']>;
67
+ tractor?: InputMaybe<Scalars['ObjectId']>;
68
+ trailer?: InputMaybe<Scalars['ObjectId']>;
69
+ };
70
+
44
71
  export enum AssetStatus {
45
72
  Active = 'ACTIVE',
46
73
  Inactive = 'INACTIVE'
@@ -96,6 +123,7 @@ export enum BillingRuleConditionOperator {
96
123
  export enum BillingRuleConditionTarget {
97
124
  Date = 'DATE',
98
125
  DetentionTime = 'DETENTION_TIME',
126
+ Goods = 'GOODS',
99
127
  Mileage = 'MILEAGE',
100
128
  Otherwise = 'OTHERWISE',
101
129
  Receiver = 'RECEIVER',
@@ -140,7 +168,9 @@ export type Broker = {
140
168
  billingTermsDay?: Maybe<Scalars['Float']>;
141
169
  code?: Maybe<Scalars['String']>;
142
170
  contact: Contact;
171
+ externalId?: Maybe<Scalars['String']>;
143
172
  goodInventoryItems?: Maybe<Array<GoodInventoryItem>>;
173
+ mcNumber?: Maybe<Scalars['String']>;
144
174
  name: Scalars['String'];
145
175
  openingSchedules?: Maybe<Array<OpeningSchedule>>;
146
176
  remitAddress?: Maybe<TextualAddress>;
@@ -167,7 +197,9 @@ export type BusinessEntity = {
167
197
  billingTermsDay?: Maybe<Scalars['Float']>;
168
198
  code?: Maybe<Scalars['String']>;
169
199
  contact: Contact;
200
+ externalId?: Maybe<Scalars['String']>;
170
201
  goodInventoryItems?: Maybe<Array<GoodInventoryItem>>;
202
+ mcNumber?: Maybe<Scalars['String']>;
171
203
  name: Scalars['String'];
172
204
  openingSchedules?: Maybe<Array<OpeningSchedule>>;
173
205
  remitAddress?: Maybe<TextualAddress>;
@@ -175,12 +207,22 @@ export type BusinessEntity = {
175
207
  type: BusinessEntityType;
176
208
  };
177
209
 
210
+ export type BusinessEntityPaginatedResult = {
211
+ __typename?: 'BusinessEntityPaginatedResult';
212
+ count: Scalars['Int'];
213
+ data: Array<BusinessEntity>;
214
+ };
215
+
178
216
  export enum BusinessEntityType {
179
217
  Broker = 'BROKER',
180
218
  Carrier = 'CARRIER',
181
219
  Customer = 'CUSTOMER',
220
+ GeneralLocation = 'GENERAL_LOCATION',
221
+ Port = 'PORT',
182
222
  Receiver = 'RECEIVER',
183
- Shipper = 'SHIPPER'
223
+ Shipper = 'SHIPPER',
224
+ Terminal = 'TERMINAL',
225
+ TruckStop = 'TRUCK_STOP'
184
226
  }
185
227
 
186
228
  export type BusinessEntityUpdateInput = {
@@ -192,38 +234,14 @@ export type BusinessEntityUpdateInput = {
192
234
  billingTermsDay?: InputMaybe<Scalars['Float']>;
193
235
  code?: InputMaybe<Scalars['String']>;
194
236
  contact?: InputMaybe<NewContactInput>;
237
+ externalId?: InputMaybe<Scalars['String']>;
195
238
  goodInventoryItems?: InputMaybe<Array<GoodInventoryItemInput>>;
239
+ mcNumber?: InputMaybe<Scalars['String']>;
196
240
  name?: InputMaybe<Scalars['String']>;
197
241
  openingSchedules?: InputMaybe<Array<OpeningScheduleInput>>;
198
242
  remitAddress?: InputMaybe<NewTextualAddressInput>;
199
243
  remitEmail?: InputMaybe<Scalars['String']>;
200
- };
201
-
202
- /** A Carrier Business entity */
203
- export type Carrier = {
204
- __typename?: 'Carrier';
205
- _id: Scalars['String'];
206
- additionalContacts?: Maybe<Array<Contact>>;
207
- additionalTypes?: Maybe<Array<BusinessEntityType>>;
208
- address: Address;
209
- addressTimezone?: Maybe<Scalars['String']>;
210
- billingAddress?: Maybe<TextualAddress>;
211
- billingEmail?: Maybe<Scalars['String']>;
212
- billingTermsDay?: Maybe<Scalars['Float']>;
213
- code?: Maybe<Scalars['String']>;
214
- contact: Contact;
215
- goodInventoryItems?: Maybe<Array<GoodInventoryItem>>;
216
- name: Scalars['String'];
217
- openingSchedules?: Maybe<Array<OpeningSchedule>>;
218
- remitAddress?: Maybe<TextualAddress>;
219
- remitEmail?: Maybe<Scalars['String']>;
220
- type: BusinessEntityType;
221
- };
222
-
223
- export type CarrierPaginatedResult = {
224
- __typename?: 'CarrierPaginatedResult';
225
- count: Scalars['Int'];
226
- data: Array<Carrier>;
244
+ type?: InputMaybe<Scalars['String']>;
227
245
  };
228
246
 
229
247
  /** A Chassis entity */
@@ -293,7 +311,9 @@ export type Customer = {
293
311
  billingTermsDay?: Maybe<Scalars['Float']>;
294
312
  code?: Maybe<Scalars['String']>;
295
313
  contact: Contact;
314
+ externalId?: Maybe<Scalars['String']>;
296
315
  goodInventoryItems?: Maybe<Array<GoodInventoryItem>>;
316
+ mcNumber?: Maybe<Scalars['String']>;
297
317
  name: Scalars['String'];
298
318
  openingSchedules?: Maybe<Array<OpeningSchedule>>;
299
319
  remitAddress?: Maybe<TextualAddress>;
@@ -491,11 +511,11 @@ export enum DriverLicenseClassification {
491
511
  }
492
512
 
493
513
  export enum DriverLicenseEndorsement {
514
+ Combination = 'COMBINATION',
494
515
  ComboTankHazardous = 'COMBO_TANK_HAZARDOUS',
495
516
  HazardousMaterial = 'HAZARDOUS_MATERIAL',
496
517
  PassengerVehicle = 'PASSENGER_VEHICLE',
497
518
  SchoolBus = 'SCHOOL_BUS',
498
- SemiTrailer = 'SEMI_TRAILER',
499
519
  TankTruck = 'TANK_TRUCK',
500
520
  TowTruck = 'TOW_TRUCK'
501
521
  }
@@ -646,6 +666,7 @@ export type DriverUpdateInput = {
646
666
  password?: InputMaybe<Scalars['String']>;
647
667
  phoneNumber?: InputMaybe<Scalars['String']>;
648
668
  status?: InputMaybe<AssetStatus>;
669
+ userId?: InputMaybe<Scalars['String']>;
649
670
  username?: InputMaybe<Scalars['String']>;
650
671
  };
651
672
 
@@ -679,9 +700,14 @@ export enum Events {
679
700
  ExpenseDeleted = 'EXPENSE_DELETED',
680
701
  InvoiceCreated = 'INVOICE_CREATED',
681
702
  InvoiceDeleted = 'INVOICE_DELETED',
703
+ OrgUserCreated = 'ORG_USER_CREATED',
704
+ OrgUserDeleted = 'ORG_USER_DELETED',
705
+ OrgUserRolesUpdated = 'ORG_USER_ROLES_UPDATED',
682
706
  ShipmentCreated = 'SHIPMENT_CREATED',
683
707
  ShipmentDeleted = 'SHIPMENT_DELETED',
684
708
  ShipmentEventAdded = 'SHIPMENT_EVENT_ADDED',
709
+ ShipmentEventDeleted = 'SHIPMENT_EVENT_DELETED',
710
+ ShipmentEventUpdated = 'SHIPMENT_EVENT_UPDATED',
685
711
  ShipmentUpdated = 'SHIPMENT_UPDATED',
686
712
  TractorPositionUpdated = 'TRACTOR_POSITION_UPDATED',
687
713
  TripCompleted = 'TRIP_COMPLETED',
@@ -968,6 +994,7 @@ export type Invoice = {
968
994
  __typename?: 'Invoice';
969
995
  _id: Scalars['String'];
970
996
  charges: Array<ShipmentCharge>;
997
+ closingNote?: Maybe<Scalars['String']>;
971
998
  customer?: Maybe<BusinessEntity>;
972
999
  invoiceNumber: Scalars['String'];
973
1000
  pdfDocument: InvoicePdf;
@@ -1139,9 +1166,11 @@ export type MultiShipmentNotesInput = {
1139
1166
 
1140
1167
  export type Mutation = {
1141
1168
  __typename?: 'Mutation';
1169
+ activateTrial: SubscriptionInfo;
1170
+ addAssetLinking: AssetLinking;
1142
1171
  addBillingRule: BillingRule;
1143
1172
  addBroker: Broker;
1144
- addCarrier: Carrier;
1173
+ addBusinessEntity: BusinessEntity;
1145
1174
  addChassis: Chassis;
1146
1175
  addCustomer: Customer;
1147
1176
  addDeductionRule: DeductionRule;
@@ -1161,8 +1190,10 @@ export type Mutation = {
1161
1190
  addTrip: Trip;
1162
1191
  assignTripAsset: Trip;
1163
1192
  callExtensionOperation: ExtensionOperationResponse;
1193
+ deleteAssetLinking: Scalars['Boolean'];
1164
1194
  deleteBillingRule: Scalars['Boolean'];
1165
1195
  deleteBroker: Scalars['Boolean'];
1196
+ deleteBusinessEntity: Scalars['Boolean'];
1166
1197
  deleteCustomer: Scalars['Boolean'];
1167
1198
  deleteDeductionRule: Scalars['Boolean'];
1168
1199
  deleteDocumentShipment: Shipment;
@@ -1173,6 +1204,7 @@ export type Mutation = {
1173
1204
  deletePaymentRule: Scalars['Boolean'];
1174
1205
  deleteReceiver: Scalars['Boolean'];
1175
1206
  deleteShipment: Shipment;
1207
+ deleteShipmentEvent?: Maybe<Shipment>;
1176
1208
  deleteShipmentNote: Shipment;
1177
1209
  deleteShipper: Scalars['Boolean'];
1178
1210
  deleteTractor: Scalars['Boolean'];
@@ -1180,8 +1212,10 @@ export type Mutation = {
1180
1212
  deleteTransaction: Scalars['Boolean'];
1181
1213
  deleteTrip: Trip;
1182
1214
  documentSignedUrl: DocumentSignedUrl;
1215
+ editAssetLinking: AssetLinking;
1183
1216
  editBillingRule: BillingRule;
1184
1217
  editBroker: Broker;
1218
+ editBusinessEntity: BusinessEntity;
1185
1219
  editCustomer: Customer;
1186
1220
  editDeductionRule: DeductionRule;
1187
1221
  editDocumentShipment: Shipment;
@@ -1191,6 +1225,7 @@ export type Mutation = {
1191
1225
  editPaymentRule?: Maybe<PaymentRule>;
1192
1226
  editReceiver: Receiver;
1193
1227
  editShipment: Shipment;
1228
+ editShipmentEvent?: Maybe<ShipmentEvent>;
1194
1229
  editShipper: Shipper;
1195
1230
  editTractor: Tractor;
1196
1231
  editTrailer: Trailer;
@@ -1214,10 +1249,16 @@ export type Mutation = {
1214
1249
  uninstallExtension: Scalars['Boolean'];
1215
1250
  updateDriverSettlementStatus?: Maybe<DriverSettlement>;
1216
1251
  updateInvoiceStatus?: Maybe<Invoice>;
1252
+ updateMyAccount: OrgUser;
1217
1253
  updatePassword: Scalars['Boolean'];
1218
1254
  };
1219
1255
 
1220
1256
 
1257
+ export type MutationAddAssetLinkingArgs = {
1258
+ newAssetLinkingData: AssetLinkingInput;
1259
+ };
1260
+
1261
+
1221
1262
  export type MutationAddBillingRuleArgs = {
1222
1263
  newBillingRuleData: NewBillingRuleInput;
1223
1264
  };
@@ -1228,8 +1269,8 @@ export type MutationAddBrokerArgs = {
1228
1269
  };
1229
1270
 
1230
1271
 
1231
- export type MutationAddCarrierArgs = {
1232
- newCarrierData: NewBusinessEntityInput;
1272
+ export type MutationAddBusinessEntityArgs = {
1273
+ newBusinessEntityData: NewBusinessEntityInputWithType;
1233
1274
  };
1234
1275
 
1235
1276
 
@@ -1331,6 +1372,11 @@ export type MutationCallExtensionOperationArgs = {
1331
1372
  };
1332
1373
 
1333
1374
 
1375
+ export type MutationDeleteAssetLinkingArgs = {
1376
+ id: Scalars['String'];
1377
+ };
1378
+
1379
+
1334
1380
  export type MutationDeleteBillingRuleArgs = {
1335
1381
  id: Scalars['String'];
1336
1382
  };
@@ -1341,6 +1387,11 @@ export type MutationDeleteBrokerArgs = {
1341
1387
  };
1342
1388
 
1343
1389
 
1390
+ export type MutationDeleteBusinessEntityArgs = {
1391
+ id: Scalars['String'];
1392
+ };
1393
+
1394
+
1344
1395
  export type MutationDeleteCustomerArgs = {
1345
1396
  id: Scalars['String'];
1346
1397
  };
@@ -1392,6 +1443,12 @@ export type MutationDeleteShipmentArgs = {
1392
1443
  };
1393
1444
 
1394
1445
 
1446
+ export type MutationDeleteShipmentEventArgs = {
1447
+ eventId: Scalars['ObjectId'];
1448
+ shipmentId: Scalars['ObjectId'];
1449
+ };
1450
+
1451
+
1395
1452
  export type MutationDeleteShipmentNoteArgs = {
1396
1453
  deleteNoteData: DeleteShipmentNoteInput;
1397
1454
  };
@@ -1427,6 +1484,12 @@ export type MutationDocumentSignedUrlArgs = {
1427
1484
  };
1428
1485
 
1429
1486
 
1487
+ export type MutationEditAssetLinkingArgs = {
1488
+ editAssetLinkingData: AssetLinkingUpdateInput;
1489
+ id: Scalars['String'];
1490
+ };
1491
+
1492
+
1430
1493
  export type MutationEditBillingRuleArgs = {
1431
1494
  editBillingRuleData: BillingRuleUpdateInput;
1432
1495
  id: Scalars['String'];
@@ -1439,6 +1502,12 @@ export type MutationEditBrokerArgs = {
1439
1502
  };
1440
1503
 
1441
1504
 
1505
+ export type MutationEditBusinessEntityArgs = {
1506
+ editBusinessEntityData: BusinessEntityUpdateInput;
1507
+ id: Scalars['String'];
1508
+ };
1509
+
1510
+
1442
1511
  export type MutationEditCustomerArgs = {
1443
1512
  editCustomerData: BusinessEntityUpdateInput;
1444
1513
  id: Scalars['String'];
@@ -1491,6 +1560,13 @@ export type MutationEditShipmentArgs = {
1491
1560
  };
1492
1561
 
1493
1562
 
1563
+ export type MutationEditShipmentEventArgs = {
1564
+ eventId: Scalars['ObjectId'];
1565
+ shipmentEventData: UpdateShipmentEventInput;
1566
+ shipmentId: Scalars['ObjectId'];
1567
+ };
1568
+
1569
+
1494
1570
  export type MutationEditShipperArgs = {
1495
1571
  editShipperData: BusinessEntityUpdateInput;
1496
1572
  id: Scalars['String'];
@@ -1600,16 +1676,28 @@ export type MutationUpdateDriverSettlementStatusArgs = {
1600
1676
 
1601
1677
 
1602
1678
  export type MutationUpdateInvoiceStatusArgs = {
1679
+ closingNote?: InputMaybe<Scalars['String']>;
1603
1680
  invoiceId: Scalars['String'];
1604
1681
  status: InvoiceStatus;
1605
1682
  };
1606
1683
 
1607
1684
 
1685
+ export type MutationUpdateMyAccountArgs = {
1686
+ accountData: UpdateAccountInput;
1687
+ };
1688
+
1689
+
1608
1690
  export type MutationUpdatePasswordArgs = {
1609
1691
  id: Scalars['String'];
1610
1692
  temporaryPassword: Scalars['String'];
1611
1693
  };
1612
1694
 
1695
+ export type MyDriverSettlementPaginatedResult = {
1696
+ __typename?: 'MyDriverSettlementPaginatedResult';
1697
+ count: Scalars['Int'];
1698
+ data: Array<DriverSettlement>;
1699
+ };
1700
+
1613
1701
  export type NewAddressInput = {
1614
1702
  city?: InputMaybe<Scalars['String']>;
1615
1703
  coordinates: CoordinatesInput;
@@ -1641,20 +1729,41 @@ export type NewBusinessEntityInput = {
1641
1729
  billingEmail?: InputMaybe<Scalars['String']>;
1642
1730
  billingTermsDay?: InputMaybe<Scalars['Float']>;
1643
1731
  code?: InputMaybe<Scalars['String']>;
1644
- contact: NewContactInput;
1732
+ contact?: InputMaybe<NewContactInput>;
1733
+ externalId?: InputMaybe<Scalars['String']>;
1645
1734
  goodInventoryItems?: InputMaybe<Array<GoodInventoryItemInput>>;
1735
+ mcNumber?: InputMaybe<Scalars['String']>;
1646
1736
  name: Scalars['String'];
1647
1737
  openingSchedules?: InputMaybe<Array<OpeningScheduleInput>>;
1648
1738
  remitAddress?: InputMaybe<NewTextualAddressInput>;
1649
1739
  remitEmail?: InputMaybe<Scalars['String']>;
1650
1740
  };
1651
1741
 
1742
+ export type NewBusinessEntityInputWithType = {
1743
+ additionalContacts?: InputMaybe<Array<NewContactInput>>;
1744
+ additionalTypes?: InputMaybe<Array<BusinessEntityType>>;
1745
+ address: NewAddressInput;
1746
+ billingAddress?: InputMaybe<NewTextualAddressInput>;
1747
+ billingEmail?: InputMaybe<Scalars['String']>;
1748
+ billingTermsDay?: InputMaybe<Scalars['Float']>;
1749
+ code?: InputMaybe<Scalars['String']>;
1750
+ contact?: InputMaybe<NewContactInput>;
1751
+ externalId?: InputMaybe<Scalars['String']>;
1752
+ goodInventoryItems?: InputMaybe<Array<GoodInventoryItemInput>>;
1753
+ mcNumber?: InputMaybe<Scalars['String']>;
1754
+ name: Scalars['String'];
1755
+ openingSchedules?: InputMaybe<Array<OpeningScheduleInput>>;
1756
+ remitAddress?: InputMaybe<NewTextualAddressInput>;
1757
+ remitEmail?: InputMaybe<Scalars['String']>;
1758
+ type: BusinessEntityType;
1759
+ };
1760
+
1652
1761
  export type NewContactInput = {
1653
1762
  email?: InputMaybe<Scalars['String']>;
1654
1763
  firstname: Scalars['String'];
1655
1764
  lastname: Scalars['String'];
1656
1765
  middlename?: InputMaybe<Scalars['String']>;
1657
- phoneNumber: Scalars['String'];
1766
+ phoneNumber?: InputMaybe<Scalars['String']>;
1658
1767
  };
1659
1768
 
1660
1769
  export type NewDeductionRuleInput = {
@@ -1684,6 +1793,7 @@ export type NewDriverInput = {
1684
1793
  password?: InputMaybe<Scalars['String']>;
1685
1794
  phoneNumber: Scalars['String'];
1686
1795
  status?: InputMaybe<AssetStatus>;
1796
+ userId?: InputMaybe<Scalars['String']>;
1687
1797
  username?: InputMaybe<Scalars['String']>;
1688
1798
  };
1689
1799
 
@@ -1800,12 +1910,48 @@ export type OrgUser = {
1800
1910
  username: Scalars['String'];
1801
1911
  };
1802
1912
 
1913
+ export type OrgUserCreatedEvent = {
1914
+ __typename?: 'OrgUserCreatedEvent';
1915
+ name: Events;
1916
+ payload: OrgUserCreatedEventPayload;
1917
+ };
1918
+
1919
+ export type OrgUserCreatedEventPayload = {
1920
+ __typename?: 'OrgUserCreatedEventPayload';
1921
+ orgUser: User;
1922
+ organizationId: Scalars['String'];
1923
+ };
1924
+
1925
+ export type OrgUserDeletedEvent = {
1926
+ __typename?: 'OrgUserDeletedEvent';
1927
+ name: Events;
1928
+ payload: OrgUserDeletedEventPayload;
1929
+ };
1930
+
1931
+ export type OrgUserDeletedEventPayload = {
1932
+ __typename?: 'OrgUserDeletedEventPayload';
1933
+ orgUser: User;
1934
+ organizationId: Scalars['String'];
1935
+ };
1936
+
1803
1937
  export type OrgUserPaginatedResult = {
1804
1938
  __typename?: 'OrgUserPaginatedResult';
1805
1939
  count: Scalars['Int'];
1806
1940
  data: Array<OrgUser>;
1807
1941
  };
1808
1942
 
1943
+ export type OrgUserRolesUpdatedEvent = {
1944
+ __typename?: 'OrgUserRolesUpdatedEvent';
1945
+ name: Events;
1946
+ payload: OrgUserRolesUpdatedEventPayload;
1947
+ };
1948
+
1949
+ export type OrgUserRolesUpdatedEventPayload = {
1950
+ __typename?: 'OrgUserRolesUpdatedEventPayload';
1951
+ orgUser: User;
1952
+ organizationId: Scalars['String'];
1953
+ };
1954
+
1809
1955
  export type OrgUserUpdateInput = {
1810
1956
  attributes?: InputMaybe<UserAttributesInput>;
1811
1957
  email?: InputMaybe<Scalars['String']>;
@@ -1858,6 +2004,7 @@ export type PartialShipment = {
1858
2004
  status?: Maybe<Status>;
1859
2005
  trackingEmailsSent?: Maybe<Scalars['Boolean']>;
1860
2006
  trailerType?: Maybe<TrailerType>;
2007
+ trip?: Maybe<ShipmentTrip>;
1861
2008
  tripId?: Maybe<Scalars['String']>;
1862
2009
  };
1863
2010
 
@@ -1949,13 +2096,19 @@ export type PeriodInput = {
1949
2096
 
1950
2097
  export type Query = {
1951
2098
  __typename?: 'Query';
2099
+ assetLinkingByDriverId?: Maybe<AssetLinking>;
2100
+ assetLinkingById?: Maybe<AssetLinking>;
2101
+ assetLinkingByTractorId?: Maybe<AssetLinking>;
2102
+ assetLinkingByTrailerId?: Maybe<AssetLinking>;
2103
+ assetLinkings: AssetLinkingPaginatedResult;
1952
2104
  assignedTrips: TripPaginatedResult;
1953
2105
  billingRuleById: BillingRule;
1954
2106
  billingRules: BillingRulePaginatedResult;
1955
2107
  brokerById: Broker;
1956
2108
  brokers: BrokerPaginatedResult;
1957
- carrierById: Carrier;
1958
- carriers: CarrierPaginatedResult;
2109
+ businessEntities: BusinessEntityPaginatedResult;
2110
+ businessEntityByExternalId?: Maybe<BusinessEntity>;
2111
+ businessEntityById: BusinessEntity;
1959
2112
  chassis: ChassisPaginatedResult;
1960
2113
  chassisById: Chassis;
1961
2114
  customerById: Customer;
@@ -1979,6 +2132,7 @@ export type Query = {
1979
2132
  invoiceByShipmentId?: Maybe<Invoice>;
1980
2133
  invoices: InvoicePaginatedResult;
1981
2134
  isSubscribed: Scalars['Boolean'];
2135
+ myDriverSettlements: MyDriverSettlementPaginatedResult;
1982
2136
  myOrganization: KeycloakOrganization;
1983
2137
  orgUserById: OrgUser;
1984
2138
  orgUsers: OrgUserPaginatedResult;
@@ -1994,6 +2148,7 @@ export type Query = {
1994
2148
  shipments: ShipmentPaginatedResult;
1995
2149
  shipperById: Shipper;
1996
2150
  shippers: ShipperPaginatedResult;
2151
+ subscriptionInfo?: Maybe<SubscriptionInfo>;
1997
2152
  trackShipment: ShipmentTrackingInfos;
1998
2153
  tractorByEldId?: Maybe<Tractor>;
1999
2154
  tractorById: Tractor;
@@ -2005,18 +2160,48 @@ export type Query = {
2005
2160
  trailers: TrailerPaginatedResult;
2006
2161
  transactionById: Transaction;
2007
2162
  transactions: TransactionPaginatedResult;
2008
- tripById: Trip;
2163
+ tripById?: Maybe<Trip>;
2009
2164
  tripPositions: Array<TripDriverPosition>;
2010
2165
  trips: TripPaginatedResult;
2011
2166
  };
2012
2167
 
2013
2168
 
2169
+ export type QueryAssetLinkingByDriverIdArgs = {
2170
+ driverId: Scalars['ObjectId'];
2171
+ };
2172
+
2173
+
2174
+ export type QueryAssetLinkingByIdArgs = {
2175
+ id: Scalars['String'];
2176
+ };
2177
+
2178
+
2179
+ export type QueryAssetLinkingByTractorIdArgs = {
2180
+ tractorId: Scalars['ObjectId'];
2181
+ };
2182
+
2183
+
2184
+ export type QueryAssetLinkingByTrailerIdArgs = {
2185
+ trailerId: Scalars['ObjectId'];
2186
+ };
2187
+
2188
+
2189
+ export type QueryAssetLinkingsArgs = {
2190
+ search?: InputMaybe<Scalars['String']>;
2191
+ skip?: InputMaybe<Scalars['Int']>;
2192
+ take?: InputMaybe<Scalars['Int']>;
2193
+ };
2194
+
2195
+
2014
2196
  export type QueryAssignedTripsArgs = {
2015
2197
  driver?: InputMaybe<Scalars['String']>;
2198
+ fromDate?: InputMaybe<Scalars['DateTime']>;
2016
2199
  search?: InputMaybe<Scalars['String']>;
2017
2200
  skip?: InputMaybe<Scalars['Int']>;
2018
2201
  sort?: InputMaybe<TripSort>;
2202
+ status?: InputMaybe<Status>;
2019
2203
  take?: InputMaybe<Scalars['Int']>;
2204
+ toDate?: InputMaybe<Scalars['DateTime']>;
2020
2205
  };
2021
2206
 
2022
2207
 
@@ -2045,7 +2230,20 @@ export type QueryBrokersArgs = {
2045
2230
  };
2046
2231
 
2047
2232
 
2048
- export type QueryCarrierByIdArgs = {
2233
+ export type QueryBusinessEntitiesArgs = {
2234
+ businessEntityTypes?: InputMaybe<Array<BusinessEntityType>>;
2235
+ search?: InputMaybe<Scalars['String']>;
2236
+ skip?: InputMaybe<Scalars['Int']>;
2237
+ take?: InputMaybe<Scalars['Int']>;
2238
+ };
2239
+
2240
+
2241
+ export type QueryBusinessEntityByExternalIdArgs = {
2242
+ externalId: Scalars['String'];
2243
+ };
2244
+
2245
+
2246
+ export type QueryBusinessEntityByIdArgs = {
2049
2247
  id: Scalars['String'];
2050
2248
  };
2051
2249
 
@@ -2172,12 +2370,20 @@ export type QueryInvoicesArgs = {
2172
2370
  };
2173
2371
 
2174
2372
 
2373
+ export type QueryMyDriverSettlementsArgs = {
2374
+ search?: InputMaybe<Scalars['String']>;
2375
+ skip?: InputMaybe<Scalars['Int']>;
2376
+ take?: InputMaybe<Scalars['Int']>;
2377
+ };
2378
+
2379
+
2175
2380
  export type QueryOrgUserByIdArgs = {
2176
2381
  id: Scalars['String'];
2177
2382
  };
2178
2383
 
2179
2384
 
2180
2385
  export type QueryOrgUsersArgs = {
2386
+ roles?: InputMaybe<Array<Scalars['String']>>;
2181
2387
  search?: InputMaybe<Scalars['String']>;
2182
2388
  skip?: InputMaybe<Scalars['Int']>;
2183
2389
  take?: InputMaybe<Scalars['Int']>;
@@ -2340,7 +2546,9 @@ export type Receiver = {
2340
2546
  billingTermsDay?: Maybe<Scalars['Float']>;
2341
2547
  code?: Maybe<Scalars['String']>;
2342
2548
  contact: Contact;
2549
+ externalId?: Maybe<Scalars['String']>;
2343
2550
  goodInventoryItems?: Maybe<Array<GoodInventoryItem>>;
2551
+ mcNumber?: Maybe<Scalars['String']>;
2344
2552
  name: Scalars['String'];
2345
2553
  openingSchedules?: Maybe<Array<OpeningSchedule>>;
2346
2554
  remitAddress?: Maybe<TextualAddress>;
@@ -2379,8 +2587,11 @@ export type ReportPdf = {
2379
2587
  };
2380
2588
 
2381
2589
  export enum ReportType {
2590
+ CustomerRevenue = 'CUSTOMER_REVENUE',
2382
2591
  DriverMileagePerTrip = 'DRIVER_MILEAGE_PER_TRIP',
2383
- RevenuePerDay = 'REVENUE_PER_DAY'
2592
+ RevenueByLoad = 'REVENUE_BY_LOAD',
2593
+ RevenuePerDay = 'REVENUE_PER_DAY',
2594
+ RevenuePerMile = 'REVENUE_PER_MILE'
2384
2595
  }
2385
2596
 
2386
2597
  export enum S3_Operation {
@@ -2413,6 +2624,7 @@ export type Shipment = {
2413
2624
  status: Status;
2414
2625
  trackingEmailsSent?: Maybe<Scalars['Boolean']>;
2415
2626
  trailerType: TrailerType;
2627
+ trip?: Maybe<ShipmentTrip>;
2416
2628
  tripId?: Maybe<Scalars['String']>;
2417
2629
  };
2418
2630
 
@@ -2432,6 +2644,7 @@ export type ShipmentCharge = {
2432
2644
  _id: Scalars['String'];
2433
2645
  billingRule?: Maybe<BillingRule>;
2434
2646
  customFields?: Maybe<Array<CustomField>>;
2647
+ document?: Maybe<TransactionDocument>;
2435
2648
  label: Scalars['String'];
2436
2649
  number?: Maybe<Scalars['String']>;
2437
2650
  rate: Scalars['Float'];
@@ -2446,6 +2659,7 @@ export type ShipmentChargeInput = {
2446
2659
  _id?: InputMaybe<Scalars['String']>;
2447
2660
  billingRule?: InputMaybe<Scalars['String']>;
2448
2661
  customFields?: InputMaybe<Array<CustomFieldInput>>;
2662
+ document?: InputMaybe<TransactionDocumentInput>;
2449
2663
  label: Scalars['String'];
2450
2664
  rate: Scalars['Float'];
2451
2665
  reimburseToDriver?: InputMaybe<Scalars['Boolean']>;
@@ -2506,8 +2720,8 @@ export type ShipmentDocument = {
2506
2720
  isBillable: Scalars['Boolean'];
2507
2721
  lastUpdatedBy: Scalars['String'];
2508
2722
  name: Scalars['String'];
2509
- receiver?: Maybe<Receiver>;
2510
- shipper?: Maybe<Shipper>;
2723
+ receiver?: Maybe<BusinessEntity>;
2724
+ shipper?: Maybe<BusinessEntity>;
2511
2725
  type: Scalars['String'];
2512
2726
  updatedAt: Scalars['DateTime'];
2513
2727
  url: Scalars['String'];
@@ -2559,8 +2773,22 @@ export type ShipmentEventAddedEventPayload = {
2559
2773
  shipment: Shipment;
2560
2774
  };
2561
2775
 
2776
+ export type ShipmentEventDeletedEvent = {
2777
+ __typename?: 'ShipmentEventDeletedEvent';
2778
+ name: Events;
2779
+ organizationId?: Maybe<Scalars['String']>;
2780
+ payload: ShipmentEventDeletedEventPayload;
2781
+ };
2782
+
2783
+ export type ShipmentEventDeletedEventPayload = {
2784
+ __typename?: 'ShipmentEventDeletedEventPayload';
2785
+ eventId: Scalars['String'];
2786
+ shipment: Shipment;
2787
+ };
2788
+
2562
2789
  export type ShipmentEventInput = {
2563
2790
  _id?: InputMaybe<Scalars['String']>;
2791
+ date?: InputMaybe<Scalars['DateTime']>;
2564
2792
  location: CoordinatesInput;
2565
2793
  shipment: Scalars['String'];
2566
2794
  shipmentLocation: Scalars['String'];
@@ -2576,10 +2804,25 @@ export enum ShipmentEventType {
2576
2804
  PickupCheckpointLeft = 'PICKUP_CHECKPOINT_LEFT',
2577
2805
  PickupCheckpointLoadStart = 'PICKUP_CHECKPOINT_LOAD_START',
2578
2806
  ShipmentComplete = 'SHIPMENT_COMPLETE',
2807
+ TripBreakStarted = 'TRIP_BREAK_STARTED',
2579
2808
  TripEnd = 'TRIP_END',
2809
+ TripResumed = 'TRIP_RESUMED',
2580
2810
  TripStarted = 'TRIP_STARTED'
2581
2811
  }
2582
2812
 
2813
+ export type ShipmentEventUpdatedEvent = {
2814
+ __typename?: 'ShipmentEventUpdatedEvent';
2815
+ name: Events;
2816
+ organizationId?: Maybe<Scalars['String']>;
2817
+ payload: ShipmentEventUpdatedEventPayload;
2818
+ };
2819
+
2820
+ export type ShipmentEventUpdatedEventPayload = {
2821
+ __typename?: 'ShipmentEventUpdatedEventPayload';
2822
+ event: ShipmentEvent;
2823
+ shipment: Shipment;
2824
+ };
2825
+
2583
2826
  export type ShipmentIssue = {
2584
2827
  __typename?: 'ShipmentIssue';
2585
2828
  _id: Scalars['String'];
@@ -2658,8 +2901,8 @@ export type ShipmentNote = {
2658
2901
  createdAt: Scalars['DateTime'];
2659
2902
  createdBy: Scalars['String'];
2660
2903
  lastUpdatedBy: Scalars['String'];
2661
- receiver?: Maybe<Receiver>;
2662
- shipper?: Maybe<Shipper>;
2904
+ receiver?: Maybe<BusinessEntity>;
2905
+ shipper?: Maybe<BusinessEntity>;
2663
2906
  updatedAt: Scalars['DateTime'];
2664
2907
  };
2665
2908
 
@@ -2707,6 +2950,12 @@ export type ShipmentTrackingInfos = {
2707
2950
  trip?: Maybe<Trip>;
2708
2951
  };
2709
2952
 
2953
+ export type ShipmentTrip = {
2954
+ __typename?: 'ShipmentTrip';
2955
+ _id: Scalars['String'];
2956
+ tripNumber: Scalars['String'];
2957
+ };
2958
+
2710
2959
  export type ShipmentUpdateInput = {
2711
2960
  assignedCarriers?: InputMaybe<Array<ShipmentCarrierAssignmentInput>>;
2712
2961
  billOfLadingNumber?: InputMaybe<Scalars['String']>;
@@ -2750,7 +2999,9 @@ export type Shipper = {
2750
2999
  billingTermsDay?: Maybe<Scalars['Float']>;
2751
3000
  code?: Maybe<Scalars['String']>;
2752
3001
  contact: Contact;
3002
+ externalId?: Maybe<Scalars['String']>;
2753
3003
  goodInventoryItems?: Maybe<Array<GoodInventoryItem>>;
3004
+ mcNumber?: Maybe<Scalars['String']>;
2754
3005
  name: Scalars['String'];
2755
3006
  openingSchedules?: Maybe<Array<OpeningSchedule>>;
2756
3007
  remitAddress?: Maybe<TextualAddress>;
@@ -2798,11 +3049,34 @@ export type SubscriptionCheckoutSession = {
2798
3049
  url: Scalars['String'];
2799
3050
  };
2800
3051
 
3052
+ export type SubscriptionInfo = {
3053
+ __typename?: 'SubscriptionInfo';
3054
+ activatedAt?: Maybe<Scalars['DateTime']>;
3055
+ createdAt?: Maybe<Scalars['DateTime']>;
3056
+ id: Scalars['String'];
3057
+ lastUpdated: Scalars['DateTime'];
3058
+ mrr: Scalars['Float'];
3059
+ status: SubscriptionStatus;
3060
+ trialEnd?: Maybe<Scalars['DateTime']>;
3061
+ trialStart?: Maybe<Scalars['DateTime']>;
3062
+ };
3063
+
2801
3064
  export type SubscriptionPortalSession = {
2802
3065
  __typename?: 'SubscriptionPortalSession';
2803
3066
  url: Scalars['String'];
2804
3067
  };
2805
3068
 
3069
+ export enum SubscriptionStatus {
3070
+ Active = 'ACTIVE',
3071
+ Cancelled = 'CANCELLED',
3072
+ Future = 'FUTURE',
3073
+ InTrial = 'IN_TRIAL',
3074
+ None = 'NONE',
3075
+ NonRenewing = 'NON_RENEWING',
3076
+ Paused = 'PAUSED',
3077
+ Unknown = 'UNKNOWN'
3078
+ }
3079
+
2806
3080
  export type Temp = {
2807
3081
  __typename?: 'Temp';
2808
3082
  day?: Maybe<Scalars['Float']>;
@@ -2945,6 +3219,7 @@ export enum TrailerType {
2945
3219
  Lowboy = 'LOWBOY',
2946
3220
  MultiCar = 'MULTI_CAR',
2947
3221
  Other = 'OTHER',
3222
+ PowerOnly = 'POWER_ONLY',
2948
3223
  Refrigerated = 'REFRIGERATED',
2949
3224
  SpecializedDeck = 'SPECIALIZED_DECK',
2950
3225
  StandardDeck = 'STANDARD_DECK',
@@ -2973,6 +3248,7 @@ export type Transaction = {
2973
3248
  __typename?: 'Transaction';
2974
3249
  _id: Scalars['String'];
2975
3250
  customFields?: Maybe<Array<CustomField>>;
3251
+ document?: Maybe<TransactionDocument>;
2976
3252
  label: Scalars['String'];
2977
3253
  number?: Maybe<Scalars['String']>;
2978
3254
  rate: Scalars['Float'];
@@ -2982,9 +3258,23 @@ export type Transaction = {
2982
3258
  unitType: Scalars['String'];
2983
3259
  };
2984
3260
 
3261
+ export type TransactionDocument = {
3262
+ __typename?: 'TransactionDocument';
3263
+ _id?: Maybe<Scalars['String']>;
3264
+ name: Scalars['String'];
3265
+ url: Scalars['String'];
3266
+ };
3267
+
3268
+ export type TransactionDocumentInput = {
3269
+ _id?: InputMaybe<Scalars['String']>;
3270
+ name: Scalars['String'];
3271
+ url: Scalars['String'];
3272
+ };
3273
+
2985
3274
  export type TransactionInput = {
2986
3275
  _id?: InputMaybe<Scalars['String']>;
2987
3276
  customFields?: InputMaybe<Array<CustomFieldInput>>;
3277
+ document?: InputMaybe<TransactionDocumentInput>;
2988
3278
  label: Scalars['String'];
2989
3279
  rate: Scalars['Float'];
2990
3280
  reimburseToDriver?: InputMaybe<Scalars['Boolean']>;
@@ -3007,6 +3297,7 @@ export enum TransactionType {
3007
3297
  export type TransactionUpdateInput = {
3008
3298
  _id?: InputMaybe<Scalars['String']>;
3009
3299
  customFields?: InputMaybe<Array<CustomFieldInput>>;
3300
+ document?: InputMaybe<TransactionDocumentInput>;
3010
3301
  label?: InputMaybe<Scalars['String']>;
3011
3302
  rate?: InputMaybe<Scalars['Float']>;
3012
3303
  reimburseToDriver?: InputMaybe<Scalars['Boolean']>;
@@ -3178,13 +3469,40 @@ export type TripUpdatedEventPayload = {
3178
3469
  trip: Trip;
3179
3470
  };
3180
3471
 
3472
+ export type UpdateAccountAttributesInput = {
3473
+ freshchatRestoreId?: InputMaybe<Scalars['String']>;
3474
+ };
3475
+
3476
+ export type UpdateAccountInput = {
3477
+ attributes?: InputMaybe<UpdateAccountAttributesInput>;
3478
+ firstName?: InputMaybe<Scalars['String']>;
3479
+ lastName?: InputMaybe<Scalars['String']>;
3480
+ };
3481
+
3482
+ export type UpdateShipmentEventInput = {
3483
+ date?: InputMaybe<Scalars['DateTime']>;
3484
+ };
3485
+
3486
+ export type User = {
3487
+ __typename?: 'User';
3488
+ attributes: UserAttributes;
3489
+ email?: Maybe<Scalars['String']>;
3490
+ firstName?: Maybe<Scalars['String']>;
3491
+ id: Scalars['String'];
3492
+ lastName?: Maybe<Scalars['String']>;
3493
+ roles: Array<KeycloakUserRole>;
3494
+ username: Scalars['String'];
3495
+ };
3496
+
3181
3497
  export type UserAttributes = {
3182
3498
  __typename?: 'UserAttributes';
3183
3499
  driverId?: Maybe<Scalars['String']>;
3500
+ freshchatRestoreId?: Maybe<Scalars['String']>;
3184
3501
  };
3185
3502
 
3186
3503
  export type UserAttributesInput = {
3187
3504
  driverId?: InputMaybe<Scalars['String']>;
3505
+ freshchatRestoreId?: InputMaybe<Scalars['String']>;
3188
3506
  };
3189
3507
 
3190
3508
  export type WeatherInfo = {
@@ -3195,6 +3513,52 @@ export type WeatherInfo = {
3195
3513
  main?: Maybe<Scalars['String']>;
3196
3514
  };
3197
3515
 
3516
+ export type GetBusinessEntityListQueryVariables = Exact<{
3517
+ search?: InputMaybe<Scalars['String']>;
3518
+ skip?: InputMaybe<Scalars['Int']>;
3519
+ take?: InputMaybe<Scalars['Int']>;
3520
+ businessEntityTypes?: InputMaybe<Array<BusinessEntityType> | BusinessEntityType>;
3521
+ }>;
3522
+
3523
+
3524
+ export type GetBusinessEntityListQuery = { __typename?: 'Query', businessEntities: { __typename?: 'BusinessEntityPaginatedResult', count: number, data: Array<{ __typename?: 'BusinessEntity', _id: string, code?: string | null, mcNumber?: string | null, name: string, type: BusinessEntityType, additionalTypes?: Array<BusinessEntityType> | null, address: { __typename?: 'Address', label: string }, contact: { __typename?: 'Contact', firstname: string, lastname: string, email?: string | null, phoneNumber: string } }> } };
3525
+
3526
+ export type GetBusinessEntityDetailsQueryVariables = Exact<{
3527
+ id: Scalars['String'];
3528
+ }>;
3529
+
3530
+
3531
+ 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 } };
3532
+
3533
+ export type GetBusinessEntityDetailsByExternalIdQueryVariables = Exact<{
3534
+ externalId: Scalars['String'];
3535
+ }>;
3536
+
3537
+
3538
+ export type GetBusinessEntityDetailsByExternalIdQuery = { __typename?: 'Query', businessEntityByExternalId?: { __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 } | null };
3539
+
3540
+ export type AddBusinessEntityMutationVariables = Exact<{
3541
+ newBusinessEntityData: NewBusinessEntityInputWithType;
3542
+ }>;
3543
+
3544
+
3545
+ export type AddBusinessEntityMutation = { __typename?: 'Mutation', addBusinessEntity: { __typename?: 'BusinessEntity', _id: string } };
3546
+
3547
+ export type EditBusinessEntityMutationVariables = Exact<{
3548
+ id: Scalars['String'];
3549
+ editBusinessEntityData: BusinessEntityUpdateInput;
3550
+ }>;
3551
+
3552
+
3553
+ export type EditBusinessEntityMutation = { __typename?: 'Mutation', editBusinessEntity: { __typename?: 'BusinessEntity', _id: string } };
3554
+
3555
+ export type DeleteBusinessEntityMutationVariables = Exact<{
3556
+ id: Scalars['String'];
3557
+ }>;
3558
+
3559
+
3560
+ export type DeleteBusinessEntityMutation = { __typename?: 'Mutation', deleteBusinessEntity: boolean };
3561
+
3198
3562
  export type GetDriverSettlementsForDriverQueryVariables = Exact<{
3199
3563
  driverId: Scalars['String'];
3200
3564
  search?: InputMaybe<Scalars['String']>;
@@ -3253,14 +3617,14 @@ export type GetInvoiceByIdQueryVariables = Exact<{
3253
3617
  }>;
3254
3618
 
3255
3619
 
3256
- export type GetInvoiceByIdQuery = { __typename?: 'Query', invoiceById: { __typename?: 'Invoice', _id: string, invoiceNumber: string, status: InvoiceStatus, charges: Array<{ __typename?: 'ShipmentCharge', _id: string, 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, 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 }, goodInventoryItems?: Array<{ __typename?: 'GoodInventoryItem', _id?: string | null, label: string, weight?: number | null }> | null } | null, pdfDocument: { __typename?: 'InvoicePdf', url?: string | null }, shipment?: { __typename?: 'Shipment', _id: string, shipmentNumber: string, referenceNumber?: string | null, expenses?: Array<{ __typename?: 'Transaction', _id: string, number?: string | null, label: string, rate: number, unit: number, unitType: string, customFields?: Array<{ __typename?: 'CustomField', key: string, value?: any | null }> | null }> | null } | null } };
3620
+ export type GetInvoiceByIdQuery = { __typename?: 'Query', invoiceById: { __typename?: 'Invoice', _id: string, invoiceNumber: string, status: InvoiceStatus, charges: Array<{ __typename?: 'ShipmentCharge', _id: string, 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, additionalTypes?: Array<BusinessEntityType> | null, addressTimezone?: string | null, billingEmail?: string | null, billingTermsDay?: number | null, remitEmail?: string | null, type: BusinessEntityType, externalId?: string | null, 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 }, goodInventoryItems?: Array<{ __typename?: 'GoodInventoryItem', _id?: string | null, label: string, weight?: number | null }> | null } | null, pdfDocument: { __typename?: 'InvoicePdf', url?: string | null }, shipment?: { __typename?: 'Shipment', _id: string, shipmentNumber: string, referenceNumber?: string | null, expenses?: Array<{ __typename?: 'Transaction', _id: string, number?: string | null, label: string, rate: number, unit: number, unitType: string, customFields?: Array<{ __typename?: 'CustomField', key: string, value?: any | null }> | null }> | null } | null } };
3257
3621
 
3258
3622
  export type GetInvoiceByNumberQueryVariables = Exact<{
3259
3623
  invoiceNumber: Scalars['String'];
3260
3624
  }>;
3261
3625
 
3262
3626
 
3263
- export type GetInvoiceByNumberQuery = { __typename?: 'Query', invoiceByInvoiceNumber?: { __typename?: 'Invoice', _id: string, invoiceNumber: string, status: InvoiceStatus, charges: Array<{ __typename?: 'ShipmentCharge', _id: string, 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, 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 }, goodInventoryItems?: Array<{ __typename?: 'GoodInventoryItem', _id?: string | null, label: string, weight?: number | null }> | null } | null, pdfDocument: { __typename?: 'InvoicePdf', url?: string | null }, shipment?: { __typename?: 'Shipment', _id: string, shipmentNumber: string, referenceNumber?: string | null, expenses?: Array<{ __typename?: 'Transaction', _id: string, number?: string | null, label: string, rate: number, unit: number, unitType: string, customFields?: Array<{ __typename?: 'CustomField', key: string, value?: any | null }> | null }> | null } | null } | null };
3627
+ export type GetInvoiceByNumberQuery = { __typename?: 'Query', invoiceByInvoiceNumber?: { __typename?: 'Invoice', _id: string, invoiceNumber: string, status: InvoiceStatus, charges: Array<{ __typename?: 'ShipmentCharge', _id: string, 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, additionalTypes?: Array<BusinessEntityType> | null, addressTimezone?: string | null, billingEmail?: string | null, billingTermsDay?: number | null, remitEmail?: string | null, type: BusinessEntityType, externalId?: string | null, 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 }, goodInventoryItems?: Array<{ __typename?: 'GoodInventoryItem', _id?: string | null, label: string, weight?: number | null }> | null } | null, pdfDocument: { __typename?: 'InvoicePdf', url?: string | null }, shipment?: { __typename?: 'Shipment', _id: string, shipmentNumber: string, referenceNumber?: string | null, expenses?: Array<{ __typename?: 'Transaction', _id: string, number?: string | null, label: string, rate: number, unit: number, unitType: string, customFields?: Array<{ __typename?: 'CustomField', key: string, value?: any | null }> | null }> | null } | null } | null };
3264
3628
 
3265
3629
  export type UpdateInvoiceStatusMutationVariables = Exact<{
3266
3630
  invoiceId: Scalars['String'];
@@ -3372,6 +3736,194 @@ export type GetOrgUserByIdQueryVariables = Exact<{
3372
3736
  export type GetOrgUserByIdQuery = { __typename?: 'Query', orgUserById: { __typename?: 'OrgUser', _id: string, email?: string | null, username: string, firstName?: string | null, lastName?: string | null, attributes: { __typename?: 'UserAttributes', driverId?: string | null }, roles: Array<{ __typename?: 'KeycloakUserRole', id: string, name: string }> } };
3373
3737
 
3374
3738
 
3739
+ export const GetBusinessEntityListDocument = gql`
3740
+ query getBusinessEntityList($search: String, $skip: Int, $take: Int, $businessEntityTypes: [BusinessEntityType!]) {
3741
+ businessEntities(
3742
+ search: $search
3743
+ skip: $skip
3744
+ take: $take
3745
+ businessEntityTypes: $businessEntityTypes
3746
+ ) {
3747
+ data {
3748
+ _id
3749
+ address {
3750
+ label
3751
+ }
3752
+ code
3753
+ mcNumber
3754
+ contact {
3755
+ firstname
3756
+ lastname
3757
+ email
3758
+ phoneNumber
3759
+ }
3760
+ name
3761
+ type
3762
+ additionalTypes
3763
+ }
3764
+ count
3765
+ }
3766
+ }
3767
+ `;
3768
+ export const GetBusinessEntityDetailsDocument = gql`
3769
+ query getBusinessEntityDetails($id: String!) {
3770
+ businessEntityById(id: $id) {
3771
+ _id
3772
+ name
3773
+ code
3774
+ mcNumber
3775
+ additionalTypes
3776
+ address {
3777
+ label
3778
+ coordinates {
3779
+ latitude
3780
+ longitude
3781
+ }
3782
+ city
3783
+ country
3784
+ googlePlaceId
3785
+ line1
3786
+ line2
3787
+ postalCode
3788
+ state
3789
+ }
3790
+ addressTimezone
3791
+ billingAddress {
3792
+ city
3793
+ country
3794
+ googlePlaceId
3795
+ line1
3796
+ line2
3797
+ postalCode
3798
+ state
3799
+ }
3800
+ billingEmail
3801
+ billingTermsDay
3802
+ remitAddress {
3803
+ city
3804
+ country
3805
+ googlePlaceId
3806
+ line1
3807
+ line2
3808
+ postalCode
3809
+ state
3810
+ }
3811
+ remitEmail
3812
+ contact {
3813
+ email
3814
+ firstname
3815
+ lastname
3816
+ phoneNumber
3817
+ }
3818
+ openingSchedules {
3819
+ openingTime
3820
+ closingTime
3821
+ days
3822
+ }
3823
+ additionalContacts {
3824
+ firstname
3825
+ lastname
3826
+ email
3827
+ phoneNumber
3828
+ }
3829
+ goodInventoryItems {
3830
+ _id
3831
+ label
3832
+ weight
3833
+ }
3834
+ type
3835
+ }
3836
+ }
3837
+ `;
3838
+ export const GetBusinessEntityDetailsByExternalIdDocument = gql`
3839
+ query getBusinessEntityDetailsByExternalId($externalId: String!) {
3840
+ businessEntityByExternalId(externalId: $externalId) {
3841
+ _id
3842
+ name
3843
+ code
3844
+ mcNumber
3845
+ additionalTypes
3846
+ address {
3847
+ label
3848
+ coordinates {
3849
+ latitude
3850
+ longitude
3851
+ }
3852
+ city
3853
+ country
3854
+ googlePlaceId
3855
+ line1
3856
+ line2
3857
+ postalCode
3858
+ state
3859
+ }
3860
+ addressTimezone
3861
+ billingAddress {
3862
+ city
3863
+ country
3864
+ googlePlaceId
3865
+ line1
3866
+ line2
3867
+ postalCode
3868
+ state
3869
+ }
3870
+ billingEmail
3871
+ billingTermsDay
3872
+ remitAddress {
3873
+ city
3874
+ country
3875
+ googlePlaceId
3876
+ line1
3877
+ line2
3878
+ postalCode
3879
+ state
3880
+ }
3881
+ remitEmail
3882
+ contact {
3883
+ email
3884
+ firstname
3885
+ lastname
3886
+ phoneNumber
3887
+ }
3888
+ openingSchedules {
3889
+ openingTime
3890
+ closingTime
3891
+ days
3892
+ }
3893
+ additionalContacts {
3894
+ firstname
3895
+ lastname
3896
+ email
3897
+ phoneNumber
3898
+ }
3899
+ goodInventoryItems {
3900
+ _id
3901
+ label
3902
+ weight
3903
+ }
3904
+ type
3905
+ }
3906
+ }
3907
+ `;
3908
+ export const AddBusinessEntityDocument = gql`
3909
+ mutation addBusinessEntity($newBusinessEntityData: NewBusinessEntityInputWithType!) {
3910
+ addBusinessEntity(newBusinessEntityData: $newBusinessEntityData) {
3911
+ _id
3912
+ }
3913
+ }
3914
+ `;
3915
+ export const EditBusinessEntityDocument = gql`
3916
+ mutation editBusinessEntity($id: String!, $editBusinessEntityData: BusinessEntityUpdateInput!) {
3917
+ editBusinessEntity(id: $id, editBusinessEntityData: $editBusinessEntityData) {
3918
+ _id
3919
+ }
3920
+ }
3921
+ `;
3922
+ export const DeleteBusinessEntityDocument = gql`
3923
+ mutation deleteBusinessEntity($id: String!) {
3924
+ deleteBusinessEntity(id: $id)
3925
+ }
3926
+ `;
3375
3927
  export const GetDriverSettlementsForDriverDocument = gql`
3376
3928
  query getDriverSettlementsForDriver($driverId: String!, $search: String, $skip: Int, $take: Int) {
3377
3929
  driverSettlements(driver: $driverId, search: $search, skip: $skip, take: $take) {
@@ -3623,6 +4175,7 @@ export const GetInvoiceByIdDocument = gql`
3623
4175
  weight
3624
4176
  }
3625
4177
  type
4178
+ externalId
3626
4179
  }
3627
4180
  invoiceNumber
3628
4181
  pdfDocument {
@@ -3718,6 +4271,7 @@ export const GetInvoiceByNumberDocument = gql`
3718
4271
  weight
3719
4272
  }
3720
4273
  type
4274
+ externalId
3721
4275
  }
3722
4276
  invoiceNumber
3723
4277
  pdfDocument {
@@ -3895,6 +4449,24 @@ const defaultWrapper: SdkFunctionWrapper = (action, _operationName, _operationTy
3895
4449
 
3896
4450
  export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = defaultWrapper) {
3897
4451
  return {
4452
+ getBusinessEntityList(variables?: GetBusinessEntityListQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetBusinessEntityListQuery> {
4453
+ return withWrapper((wrappedRequestHeaders) => client.request<GetBusinessEntityListQuery>(GetBusinessEntityListDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getBusinessEntityList', 'query');
4454
+ },
4455
+ getBusinessEntityDetails(variables: GetBusinessEntityDetailsQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetBusinessEntityDetailsQuery> {
4456
+ return withWrapper((wrappedRequestHeaders) => client.request<GetBusinessEntityDetailsQuery>(GetBusinessEntityDetailsDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getBusinessEntityDetails', 'query');
4457
+ },
4458
+ getBusinessEntityDetailsByExternalId(variables: GetBusinessEntityDetailsByExternalIdQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetBusinessEntityDetailsByExternalIdQuery> {
4459
+ return withWrapper((wrappedRequestHeaders) => client.request<GetBusinessEntityDetailsByExternalIdQuery>(GetBusinessEntityDetailsByExternalIdDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getBusinessEntityDetailsByExternalId', 'query');
4460
+ },
4461
+ addBusinessEntity(variables: AddBusinessEntityMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<AddBusinessEntityMutation> {
4462
+ return withWrapper((wrappedRequestHeaders) => client.request<AddBusinessEntityMutation>(AddBusinessEntityDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'addBusinessEntity', 'mutation');
4463
+ },
4464
+ editBusinessEntity(variables: EditBusinessEntityMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<EditBusinessEntityMutation> {
4465
+ return withWrapper((wrappedRequestHeaders) => client.request<EditBusinessEntityMutation>(EditBusinessEntityDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'editBusinessEntity', 'mutation');
4466
+ },
4467
+ deleteBusinessEntity(variables: DeleteBusinessEntityMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<DeleteBusinessEntityMutation> {
4468
+ return withWrapper((wrappedRequestHeaders) => client.request<DeleteBusinessEntityMutation>(DeleteBusinessEntityDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'deleteBusinessEntity', 'mutation');
4469
+ },
3898
4470
  getDriverSettlementsForDriver(variables: GetDriverSettlementsForDriverQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetDriverSettlementsForDriverQuery> {
3899
4471
  return withWrapper((wrappedRequestHeaders) => client.request<GetDriverSettlementsForDriverQuery>(GetDriverSettlementsForDriverDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getDriverSettlementsForDriver', 'query');
3900
4472
  },