@truetms/truetms-node 0.2.1 → 0.2.3
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.
- package/dist/src/graphql/generated.js +252 -3
- package/dist/src/graphql/generated.js.map +1 -1
- package/dist/src/sdk/businessEntities.js +20 -0
- package/dist/src/sdk/businessEntities.js.map +1 -0
- package/dist/src/sdk/index.js +2 -0
- package/dist/src/sdk/index.js.map +1 -1
- package/package.json +1 -1
- package/src/graphql/business-entities.graphql +191 -0
- package/src/graphql/generated.ts +810 -48
- package/src/graphql/invoices.graphql +2 -0
- package/src/sdk/businessEntities.ts +29 -0
- package/src/sdk/index.ts +3 -0
package/src/graphql/generated.ts
CHANGED
|
@@ -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',
|
|
@@ -812,6 +838,8 @@ export type ExtensionHook = {
|
|
|
812
838
|
|
|
813
839
|
export enum ExtensionHookOperation {
|
|
814
840
|
GetInvoiceTemplate = 'GET_INVOICE_TEMPLATE',
|
|
841
|
+
GetLoadBoardLoadDetails = 'GET_LOAD_BOARD_LOAD_DETAILS',
|
|
842
|
+
SearchLoadBoard = 'SEARCH_LOAD_BOARD',
|
|
815
843
|
SendInvoice = 'SEND_INVOICE'
|
|
816
844
|
}
|
|
817
845
|
|
|
@@ -851,12 +879,16 @@ export type ExtensionOperation = {
|
|
|
851
879
|
};
|
|
852
880
|
|
|
853
881
|
export enum ExtensionOperationContext {
|
|
882
|
+
BusinessEntity = 'BUSINESS_ENTITY',
|
|
883
|
+
BusinessLocation = 'BUSINESS_LOCATION',
|
|
854
884
|
InvoiceDetails = 'INVOICE_DETAILS'
|
|
855
885
|
}
|
|
856
886
|
|
|
857
887
|
export type ExtensionOperationResponse = {
|
|
858
888
|
__typename?: 'ExtensionOperationResponse';
|
|
859
|
-
message
|
|
889
|
+
message?: Maybe<Scalars['String']>;
|
|
890
|
+
openNewWindow?: Maybe<Scalars['Boolean']>;
|
|
891
|
+
redirect?: Maybe<Scalars['String']>;
|
|
860
892
|
};
|
|
861
893
|
|
|
862
894
|
export type ExtensionOperationWithExtensionId = {
|
|
@@ -910,6 +942,16 @@ export type FeelsLike = {
|
|
|
910
942
|
night?: Maybe<Scalars['Float']>;
|
|
911
943
|
};
|
|
912
944
|
|
|
945
|
+
export enum Frequency {
|
|
946
|
+
Daily = 'DAILY',
|
|
947
|
+
Hourly = 'HOURLY',
|
|
948
|
+
Minutely = 'MINUTELY',
|
|
949
|
+
Monthly = 'MONTHLY',
|
|
950
|
+
Secondly = 'SECONDLY',
|
|
951
|
+
Weekly = 'WEEKLY',
|
|
952
|
+
Yearly = 'YEARLY'
|
|
953
|
+
}
|
|
954
|
+
|
|
913
955
|
export type GeneralSettings = {
|
|
914
956
|
__typename?: 'GeneralSettings';
|
|
915
957
|
measurementSystem?: Maybe<MeasurementSystem>;
|
|
@@ -968,6 +1010,7 @@ export type Invoice = {
|
|
|
968
1010
|
__typename?: 'Invoice';
|
|
969
1011
|
_id: Scalars['String'];
|
|
970
1012
|
charges: Array<ShipmentCharge>;
|
|
1013
|
+
closingNote?: Maybe<Scalars['String']>;
|
|
971
1014
|
customer?: Maybe<BusinessEntity>;
|
|
972
1015
|
invoiceNumber: Scalars['String'];
|
|
973
1016
|
pdfDocument: InvoicePdf;
|
|
@@ -1070,6 +1113,46 @@ export type KeycloakUserRoleInput = {
|
|
|
1070
1113
|
name: Scalars['String'];
|
|
1071
1114
|
};
|
|
1072
1115
|
|
|
1116
|
+
export type LoadBoardSearchCriteria = {
|
|
1117
|
+
destinationCity?: InputMaybe<Scalars['String']>;
|
|
1118
|
+
destinationCountry?: InputMaybe<Scalars['String']>;
|
|
1119
|
+
destinationLatitude?: InputMaybe<Scalars['Float']>;
|
|
1120
|
+
destinationLongitude?: InputMaybe<Scalars['Float']>;
|
|
1121
|
+
destinationRadius?: InputMaybe<Scalars['Float']>;
|
|
1122
|
+
destinationState?: InputMaybe<Scalars['String']>;
|
|
1123
|
+
fromDate?: InputMaybe<Scalars['DateTime']>;
|
|
1124
|
+
loadType?: InputMaybe<LoadType>;
|
|
1125
|
+
originCity?: InputMaybe<Scalars['String']>;
|
|
1126
|
+
originCountry?: InputMaybe<Scalars['String']>;
|
|
1127
|
+
originLatitude?: InputMaybe<Scalars['Float']>;
|
|
1128
|
+
originLongitude?: InputMaybe<Scalars['Float']>;
|
|
1129
|
+
originRadius?: InputMaybe<Scalars['Float']>;
|
|
1130
|
+
originState?: InputMaybe<Scalars['String']>;
|
|
1131
|
+
skip?: InputMaybe<Scalars['Float']>;
|
|
1132
|
+
sortBy?: InputMaybe<Scalars['String']>;
|
|
1133
|
+
take?: InputMaybe<Scalars['Float']>;
|
|
1134
|
+
toDate?: InputMaybe<Scalars['DateTime']>;
|
|
1135
|
+
trailerType?: InputMaybe<TrailerType>;
|
|
1136
|
+
};
|
|
1137
|
+
|
|
1138
|
+
export type LoadBoardSearchResult = {
|
|
1139
|
+
__typename?: 'LoadBoardSearchResult';
|
|
1140
|
+
_id: Scalars['String'];
|
|
1141
|
+
additionalTrailerTypes?: Maybe<Array<TrailerType>>;
|
|
1142
|
+
charges: Array<ShipmentCharge>;
|
|
1143
|
+
constraints?: Maybe<Array<ShipmentConstraint>>;
|
|
1144
|
+
customer: BusinessEntity;
|
|
1145
|
+
loadType: LoadType;
|
|
1146
|
+
shipmentLocations: Array<ShipmentLocation>;
|
|
1147
|
+
trailerType: TrailerType;
|
|
1148
|
+
};
|
|
1149
|
+
|
|
1150
|
+
export type LoadBoardSearchResultPaginatedResult = {
|
|
1151
|
+
__typename?: 'LoadBoardSearchResultPaginatedResult';
|
|
1152
|
+
count: Scalars['Int'];
|
|
1153
|
+
data: Array<LoadBoardSearchResult>;
|
|
1154
|
+
};
|
|
1155
|
+
|
|
1073
1156
|
/** Load state of a given trip */
|
|
1074
1157
|
export type LoadState = {
|
|
1075
1158
|
__typename?: 'LoadState';
|
|
@@ -1139,9 +1222,11 @@ export type MultiShipmentNotesInput = {
|
|
|
1139
1222
|
|
|
1140
1223
|
export type Mutation = {
|
|
1141
1224
|
__typename?: 'Mutation';
|
|
1225
|
+
activateTrial: SubscriptionInfo;
|
|
1226
|
+
addAssetLinking: AssetLinking;
|
|
1142
1227
|
addBillingRule: BillingRule;
|
|
1143
1228
|
addBroker: Broker;
|
|
1144
|
-
|
|
1229
|
+
addBusinessEntity: BusinessEntity;
|
|
1145
1230
|
addChassis: Chassis;
|
|
1146
1231
|
addCustomer: Customer;
|
|
1147
1232
|
addDeductionRule: DeductionRule;
|
|
@@ -1160,9 +1245,16 @@ export type Mutation = {
|
|
|
1160
1245
|
addTransaction: Transaction;
|
|
1161
1246
|
addTrip: Trip;
|
|
1162
1247
|
assignTripAsset: Trip;
|
|
1248
|
+
bulkAddBusinessEntities: Array<BusinessEntity>;
|
|
1249
|
+
bulkAddDrivers: Array<Driver>;
|
|
1250
|
+
bulkAddOrgUsers: Array<OrgUser>;
|
|
1251
|
+
bulkAddTractors: Array<Tractor>;
|
|
1252
|
+
bulkAddTrailers: Array<Trailer>;
|
|
1163
1253
|
callExtensionOperation: ExtensionOperationResponse;
|
|
1254
|
+
deleteAssetLinking: Scalars['Boolean'];
|
|
1164
1255
|
deleteBillingRule: Scalars['Boolean'];
|
|
1165
1256
|
deleteBroker: Scalars['Boolean'];
|
|
1257
|
+
deleteBusinessEntity: Scalars['Boolean'];
|
|
1166
1258
|
deleteCustomer: Scalars['Boolean'];
|
|
1167
1259
|
deleteDeductionRule: Scalars['Boolean'];
|
|
1168
1260
|
deleteDocumentShipment: Shipment;
|
|
@@ -1173,6 +1265,7 @@ export type Mutation = {
|
|
|
1173
1265
|
deletePaymentRule: Scalars['Boolean'];
|
|
1174
1266
|
deleteReceiver: Scalars['Boolean'];
|
|
1175
1267
|
deleteShipment: Shipment;
|
|
1268
|
+
deleteShipmentEvent?: Maybe<Shipment>;
|
|
1176
1269
|
deleteShipmentNote: Shipment;
|
|
1177
1270
|
deleteShipper: Scalars['Boolean'];
|
|
1178
1271
|
deleteTractor: Scalars['Boolean'];
|
|
@@ -1180,8 +1273,10 @@ export type Mutation = {
|
|
|
1180
1273
|
deleteTransaction: Scalars['Boolean'];
|
|
1181
1274
|
deleteTrip: Trip;
|
|
1182
1275
|
documentSignedUrl: DocumentSignedUrl;
|
|
1276
|
+
editAssetLinking: AssetLinking;
|
|
1183
1277
|
editBillingRule: BillingRule;
|
|
1184
1278
|
editBroker: Broker;
|
|
1279
|
+
editBusinessEntity: BusinessEntity;
|
|
1185
1280
|
editCustomer: Customer;
|
|
1186
1281
|
editDeductionRule: DeductionRule;
|
|
1187
1282
|
editDocumentShipment: Shipment;
|
|
@@ -1191,6 +1286,7 @@ export type Mutation = {
|
|
|
1191
1286
|
editPaymentRule?: Maybe<PaymentRule>;
|
|
1192
1287
|
editReceiver: Receiver;
|
|
1193
1288
|
editShipment: Shipment;
|
|
1289
|
+
editShipmentEvent?: Maybe<ShipmentEvent>;
|
|
1194
1290
|
editShipper: Shipper;
|
|
1195
1291
|
editTractor: Tractor;
|
|
1196
1292
|
editTrailer: Trailer;
|
|
@@ -1214,10 +1310,16 @@ export type Mutation = {
|
|
|
1214
1310
|
uninstallExtension: Scalars['Boolean'];
|
|
1215
1311
|
updateDriverSettlementStatus?: Maybe<DriverSettlement>;
|
|
1216
1312
|
updateInvoiceStatus?: Maybe<Invoice>;
|
|
1313
|
+
updateMyAccount: OrgUser;
|
|
1217
1314
|
updatePassword: Scalars['Boolean'];
|
|
1218
1315
|
};
|
|
1219
1316
|
|
|
1220
1317
|
|
|
1318
|
+
export type MutationAddAssetLinkingArgs = {
|
|
1319
|
+
newAssetLinkingData: AssetLinkingInput;
|
|
1320
|
+
};
|
|
1321
|
+
|
|
1322
|
+
|
|
1221
1323
|
export type MutationAddBillingRuleArgs = {
|
|
1222
1324
|
newBillingRuleData: NewBillingRuleInput;
|
|
1223
1325
|
};
|
|
@@ -1228,8 +1330,8 @@ export type MutationAddBrokerArgs = {
|
|
|
1228
1330
|
};
|
|
1229
1331
|
|
|
1230
1332
|
|
|
1231
|
-
export type
|
|
1232
|
-
|
|
1333
|
+
export type MutationAddBusinessEntityArgs = {
|
|
1334
|
+
newBusinessEntityData: NewBusinessEntityInputWithType;
|
|
1233
1335
|
};
|
|
1234
1336
|
|
|
1235
1337
|
|
|
@@ -1324,6 +1426,31 @@ export type MutationAssignTripAssetArgs = {
|
|
|
1324
1426
|
};
|
|
1325
1427
|
|
|
1326
1428
|
|
|
1429
|
+
export type MutationBulkAddBusinessEntitiesArgs = {
|
|
1430
|
+
newBusinessEntityData: Array<NewBusinessEntityInputWithType>;
|
|
1431
|
+
};
|
|
1432
|
+
|
|
1433
|
+
|
|
1434
|
+
export type MutationBulkAddDriversArgs = {
|
|
1435
|
+
newDriverData: Array<NewDriverInput>;
|
|
1436
|
+
};
|
|
1437
|
+
|
|
1438
|
+
|
|
1439
|
+
export type MutationBulkAddOrgUsersArgs = {
|
|
1440
|
+
newOrgUsersData: Array<NewOrgUserInput>;
|
|
1441
|
+
};
|
|
1442
|
+
|
|
1443
|
+
|
|
1444
|
+
export type MutationBulkAddTractorsArgs = {
|
|
1445
|
+
newTractorsData: Array<NewTractorInput>;
|
|
1446
|
+
};
|
|
1447
|
+
|
|
1448
|
+
|
|
1449
|
+
export type MutationBulkAddTrailersArgs = {
|
|
1450
|
+
newTrailerData: Array<NewTrailerInput>;
|
|
1451
|
+
};
|
|
1452
|
+
|
|
1453
|
+
|
|
1327
1454
|
export type MutationCallExtensionOperationArgs = {
|
|
1328
1455
|
extensionId: Scalars['String'];
|
|
1329
1456
|
operationKey: Scalars['String'];
|
|
@@ -1331,6 +1458,11 @@ export type MutationCallExtensionOperationArgs = {
|
|
|
1331
1458
|
};
|
|
1332
1459
|
|
|
1333
1460
|
|
|
1461
|
+
export type MutationDeleteAssetLinkingArgs = {
|
|
1462
|
+
id: Scalars['String'];
|
|
1463
|
+
};
|
|
1464
|
+
|
|
1465
|
+
|
|
1334
1466
|
export type MutationDeleteBillingRuleArgs = {
|
|
1335
1467
|
id: Scalars['String'];
|
|
1336
1468
|
};
|
|
@@ -1341,6 +1473,11 @@ export type MutationDeleteBrokerArgs = {
|
|
|
1341
1473
|
};
|
|
1342
1474
|
|
|
1343
1475
|
|
|
1476
|
+
export type MutationDeleteBusinessEntityArgs = {
|
|
1477
|
+
id: Scalars['String'];
|
|
1478
|
+
};
|
|
1479
|
+
|
|
1480
|
+
|
|
1344
1481
|
export type MutationDeleteCustomerArgs = {
|
|
1345
1482
|
id: Scalars['String'];
|
|
1346
1483
|
};
|
|
@@ -1392,6 +1529,12 @@ export type MutationDeleteShipmentArgs = {
|
|
|
1392
1529
|
};
|
|
1393
1530
|
|
|
1394
1531
|
|
|
1532
|
+
export type MutationDeleteShipmentEventArgs = {
|
|
1533
|
+
eventId: Scalars['ObjectId'];
|
|
1534
|
+
shipmentId: Scalars['ObjectId'];
|
|
1535
|
+
};
|
|
1536
|
+
|
|
1537
|
+
|
|
1395
1538
|
export type MutationDeleteShipmentNoteArgs = {
|
|
1396
1539
|
deleteNoteData: DeleteShipmentNoteInput;
|
|
1397
1540
|
};
|
|
@@ -1427,6 +1570,12 @@ export type MutationDocumentSignedUrlArgs = {
|
|
|
1427
1570
|
};
|
|
1428
1571
|
|
|
1429
1572
|
|
|
1573
|
+
export type MutationEditAssetLinkingArgs = {
|
|
1574
|
+
editAssetLinkingData: AssetLinkingUpdateInput;
|
|
1575
|
+
id: Scalars['String'];
|
|
1576
|
+
};
|
|
1577
|
+
|
|
1578
|
+
|
|
1430
1579
|
export type MutationEditBillingRuleArgs = {
|
|
1431
1580
|
editBillingRuleData: BillingRuleUpdateInput;
|
|
1432
1581
|
id: Scalars['String'];
|
|
@@ -1439,6 +1588,12 @@ export type MutationEditBrokerArgs = {
|
|
|
1439
1588
|
};
|
|
1440
1589
|
|
|
1441
1590
|
|
|
1591
|
+
export type MutationEditBusinessEntityArgs = {
|
|
1592
|
+
editBusinessEntityData: BusinessEntityUpdateInput;
|
|
1593
|
+
id: Scalars['String'];
|
|
1594
|
+
};
|
|
1595
|
+
|
|
1596
|
+
|
|
1442
1597
|
export type MutationEditCustomerArgs = {
|
|
1443
1598
|
editCustomerData: BusinessEntityUpdateInput;
|
|
1444
1599
|
id: Scalars['String'];
|
|
@@ -1491,6 +1646,13 @@ export type MutationEditShipmentArgs = {
|
|
|
1491
1646
|
};
|
|
1492
1647
|
|
|
1493
1648
|
|
|
1649
|
+
export type MutationEditShipmentEventArgs = {
|
|
1650
|
+
eventId: Scalars['ObjectId'];
|
|
1651
|
+
shipmentEventData: UpdateShipmentEventInput;
|
|
1652
|
+
shipmentId: Scalars['ObjectId'];
|
|
1653
|
+
};
|
|
1654
|
+
|
|
1655
|
+
|
|
1494
1656
|
export type MutationEditShipperArgs = {
|
|
1495
1657
|
editShipperData: BusinessEntityUpdateInput;
|
|
1496
1658
|
id: Scalars['String'];
|
|
@@ -1600,16 +1762,28 @@ export type MutationUpdateDriverSettlementStatusArgs = {
|
|
|
1600
1762
|
|
|
1601
1763
|
|
|
1602
1764
|
export type MutationUpdateInvoiceStatusArgs = {
|
|
1765
|
+
closingNote?: InputMaybe<Scalars['String']>;
|
|
1603
1766
|
invoiceId: Scalars['String'];
|
|
1604
1767
|
status: InvoiceStatus;
|
|
1605
1768
|
};
|
|
1606
1769
|
|
|
1607
1770
|
|
|
1771
|
+
export type MutationUpdateMyAccountArgs = {
|
|
1772
|
+
accountData: UpdateAccountInput;
|
|
1773
|
+
};
|
|
1774
|
+
|
|
1775
|
+
|
|
1608
1776
|
export type MutationUpdatePasswordArgs = {
|
|
1609
1777
|
id: Scalars['String'];
|
|
1610
1778
|
temporaryPassword: Scalars['String'];
|
|
1611
1779
|
};
|
|
1612
1780
|
|
|
1781
|
+
export type MyDriverSettlementPaginatedResult = {
|
|
1782
|
+
__typename?: 'MyDriverSettlementPaginatedResult';
|
|
1783
|
+
count: Scalars['Int'];
|
|
1784
|
+
data: Array<DriverSettlement>;
|
|
1785
|
+
};
|
|
1786
|
+
|
|
1613
1787
|
export type NewAddressInput = {
|
|
1614
1788
|
city?: InputMaybe<Scalars['String']>;
|
|
1615
1789
|
coordinates: CoordinatesInput;
|
|
@@ -1641,20 +1815,41 @@ export type NewBusinessEntityInput = {
|
|
|
1641
1815
|
billingEmail?: InputMaybe<Scalars['String']>;
|
|
1642
1816
|
billingTermsDay?: InputMaybe<Scalars['Float']>;
|
|
1643
1817
|
code?: InputMaybe<Scalars['String']>;
|
|
1644
|
-
contact
|
|
1818
|
+
contact?: InputMaybe<NewContactInput>;
|
|
1819
|
+
externalId?: InputMaybe<Scalars['String']>;
|
|
1645
1820
|
goodInventoryItems?: InputMaybe<Array<GoodInventoryItemInput>>;
|
|
1821
|
+
mcNumber?: InputMaybe<Scalars['String']>;
|
|
1646
1822
|
name: Scalars['String'];
|
|
1647
1823
|
openingSchedules?: InputMaybe<Array<OpeningScheduleInput>>;
|
|
1648
1824
|
remitAddress?: InputMaybe<NewTextualAddressInput>;
|
|
1649
1825
|
remitEmail?: InputMaybe<Scalars['String']>;
|
|
1650
1826
|
};
|
|
1651
1827
|
|
|
1828
|
+
export type NewBusinessEntityInputWithType = {
|
|
1829
|
+
additionalContacts?: InputMaybe<Array<NewContactInput>>;
|
|
1830
|
+
additionalTypes?: InputMaybe<Array<BusinessEntityType>>;
|
|
1831
|
+
address: NewAddressInput;
|
|
1832
|
+
billingAddress?: InputMaybe<NewTextualAddressInput>;
|
|
1833
|
+
billingEmail?: InputMaybe<Scalars['String']>;
|
|
1834
|
+
billingTermsDay?: InputMaybe<Scalars['Float']>;
|
|
1835
|
+
code?: InputMaybe<Scalars['String']>;
|
|
1836
|
+
contact?: InputMaybe<NewContactInput>;
|
|
1837
|
+
externalId?: InputMaybe<Scalars['String']>;
|
|
1838
|
+
goodInventoryItems?: InputMaybe<Array<GoodInventoryItemInput>>;
|
|
1839
|
+
mcNumber?: InputMaybe<Scalars['String']>;
|
|
1840
|
+
name: Scalars['String'];
|
|
1841
|
+
openingSchedules?: InputMaybe<Array<OpeningScheduleInput>>;
|
|
1842
|
+
remitAddress?: InputMaybe<NewTextualAddressInput>;
|
|
1843
|
+
remitEmail?: InputMaybe<Scalars['String']>;
|
|
1844
|
+
type: BusinessEntityType;
|
|
1845
|
+
};
|
|
1846
|
+
|
|
1652
1847
|
export type NewContactInput = {
|
|
1653
1848
|
email?: InputMaybe<Scalars['String']>;
|
|
1654
|
-
firstname
|
|
1655
|
-
lastname
|
|
1849
|
+
firstname?: InputMaybe<Scalars['String']>;
|
|
1850
|
+
lastname?: InputMaybe<Scalars['String']>;
|
|
1656
1851
|
middlename?: InputMaybe<Scalars['String']>;
|
|
1657
|
-
phoneNumber
|
|
1852
|
+
phoneNumber?: InputMaybe<Scalars['String']>;
|
|
1658
1853
|
};
|
|
1659
1854
|
|
|
1660
1855
|
export type NewDeductionRuleInput = {
|
|
@@ -1684,6 +1879,7 @@ export type NewDriverInput = {
|
|
|
1684
1879
|
password?: InputMaybe<Scalars['String']>;
|
|
1685
1880
|
phoneNumber: Scalars['String'];
|
|
1686
1881
|
status?: InputMaybe<AssetStatus>;
|
|
1882
|
+
userId?: InputMaybe<Scalars['String']>;
|
|
1687
1883
|
username?: InputMaybe<Scalars['String']>;
|
|
1688
1884
|
};
|
|
1689
1885
|
|
|
@@ -1705,17 +1901,20 @@ export type NewPaymentRuleInput = {
|
|
|
1705
1901
|
};
|
|
1706
1902
|
|
|
1707
1903
|
export type NewShipmentInput = {
|
|
1904
|
+
additionalTrailerTypes?: InputMaybe<Array<TrailerType>>;
|
|
1708
1905
|
assignedCarriers?: InputMaybe<Array<ShipmentCarrierAssignmentInput>>;
|
|
1709
1906
|
billOfLadingNumber: Scalars['String'];
|
|
1710
1907
|
charges: Array<ShipmentChargeInput>;
|
|
1711
1908
|
constraints?: InputMaybe<Array<ShipmentConstraintInput>>;
|
|
1712
1909
|
createdBy?: InputMaybe<Scalars['String']>;
|
|
1713
1910
|
customer: Scalars['String'];
|
|
1911
|
+
dailyRotationCount?: InputMaybe<Scalars['Float']>;
|
|
1714
1912
|
documents?: InputMaybe<Array<ShipmentDocumentInput>>;
|
|
1715
1913
|
expenses?: InputMaybe<Array<TransactionInput>>;
|
|
1716
1914
|
loadType: LoadType;
|
|
1717
1915
|
notes?: InputMaybe<Array<SingleShipmentNoteInput>>;
|
|
1718
1916
|
postOfficeNumber: Scalars['String'];
|
|
1917
|
+
recurrence?: InputMaybe<ShipmentRecurrenceInput>;
|
|
1719
1918
|
referenceNumber?: InputMaybe<Scalars['String']>;
|
|
1720
1919
|
shipmentLocations: Array<ShipmentLocationInput>;
|
|
1721
1920
|
trailerType: TrailerType;
|
|
@@ -1800,12 +1999,48 @@ export type OrgUser = {
|
|
|
1800
1999
|
username: Scalars['String'];
|
|
1801
2000
|
};
|
|
1802
2001
|
|
|
2002
|
+
export type OrgUserCreatedEvent = {
|
|
2003
|
+
__typename?: 'OrgUserCreatedEvent';
|
|
2004
|
+
name: Events;
|
|
2005
|
+
payload: OrgUserCreatedEventPayload;
|
|
2006
|
+
};
|
|
2007
|
+
|
|
2008
|
+
export type OrgUserCreatedEventPayload = {
|
|
2009
|
+
__typename?: 'OrgUserCreatedEventPayload';
|
|
2010
|
+
orgUser: User;
|
|
2011
|
+
organizationId: Scalars['String'];
|
|
2012
|
+
};
|
|
2013
|
+
|
|
2014
|
+
export type OrgUserDeletedEvent = {
|
|
2015
|
+
__typename?: 'OrgUserDeletedEvent';
|
|
2016
|
+
name: Events;
|
|
2017
|
+
payload: OrgUserDeletedEventPayload;
|
|
2018
|
+
};
|
|
2019
|
+
|
|
2020
|
+
export type OrgUserDeletedEventPayload = {
|
|
2021
|
+
__typename?: 'OrgUserDeletedEventPayload';
|
|
2022
|
+
orgUser: User;
|
|
2023
|
+
organizationId: Scalars['String'];
|
|
2024
|
+
};
|
|
2025
|
+
|
|
1803
2026
|
export type OrgUserPaginatedResult = {
|
|
1804
2027
|
__typename?: 'OrgUserPaginatedResult';
|
|
1805
2028
|
count: Scalars['Int'];
|
|
1806
2029
|
data: Array<OrgUser>;
|
|
1807
2030
|
};
|
|
1808
2031
|
|
|
2032
|
+
export type OrgUserRolesUpdatedEvent = {
|
|
2033
|
+
__typename?: 'OrgUserRolesUpdatedEvent';
|
|
2034
|
+
name: Events;
|
|
2035
|
+
payload: OrgUserRolesUpdatedEventPayload;
|
|
2036
|
+
};
|
|
2037
|
+
|
|
2038
|
+
export type OrgUserRolesUpdatedEventPayload = {
|
|
2039
|
+
__typename?: 'OrgUserRolesUpdatedEventPayload';
|
|
2040
|
+
orgUser: User;
|
|
2041
|
+
organizationId: Scalars['String'];
|
|
2042
|
+
};
|
|
2043
|
+
|
|
1809
2044
|
export type OrgUserUpdateInput = {
|
|
1810
2045
|
attributes?: InputMaybe<UserAttributesInput>;
|
|
1811
2046
|
email?: InputMaybe<Scalars['String']>;
|
|
@@ -1837,20 +2072,24 @@ export type OrganizationSetupData = {
|
|
|
1837
2072
|
export type PartialShipment = {
|
|
1838
2073
|
__typename?: 'PartialShipment';
|
|
1839
2074
|
_id?: Maybe<Scalars['String']>;
|
|
2075
|
+
additionalTrailerTypes?: Maybe<Array<TrailerType>>;
|
|
1840
2076
|
assignedCarriers?: Maybe<Array<ShipmentCarrierAssignment>>;
|
|
1841
2077
|
billOfLadingNumber?: Maybe<Scalars['String']>;
|
|
1842
2078
|
charges?: Maybe<Array<ShipmentCharge>>;
|
|
1843
2079
|
constraints?: Maybe<Array<ShipmentConstraint>>;
|
|
1844
2080
|
createdBy?: Maybe<Scalars['String']>;
|
|
1845
2081
|
customer?: Maybe<BusinessEntity>;
|
|
2082
|
+
dailyRotationCount?: Maybe<Scalars['Float']>;
|
|
1846
2083
|
documents?: Maybe<Array<ShipmentDocument>>;
|
|
1847
2084
|
events?: Maybe<Array<ShipmentEvent>>;
|
|
1848
2085
|
expenses?: Maybe<Array<Transaction>>;
|
|
1849
2086
|
issues?: Maybe<Array<ShipmentIssue>>;
|
|
1850
2087
|
loadType?: Maybe<LoadType>;
|
|
1851
2088
|
notes?: Maybe<Array<ShipmentNote>>;
|
|
2089
|
+
parentShipment?: Maybe<Shipment>;
|
|
1852
2090
|
postOfficeNumber?: Maybe<Scalars['String']>;
|
|
1853
2091
|
reasonForCancellation?: Maybe<Scalars['String']>;
|
|
2092
|
+
recurrence?: Maybe<ShipmentRecurrence>;
|
|
1854
2093
|
referenceNumber?: Maybe<Scalars['String']>;
|
|
1855
2094
|
route?: Maybe<ShipmentRoute>;
|
|
1856
2095
|
shipmentLocations?: Maybe<Array<ShipmentLocation>>;
|
|
@@ -1858,6 +2097,7 @@ export type PartialShipment = {
|
|
|
1858
2097
|
status?: Maybe<Status>;
|
|
1859
2098
|
trackingEmailsSent?: Maybe<Scalars['Boolean']>;
|
|
1860
2099
|
trailerType?: Maybe<TrailerType>;
|
|
2100
|
+
trip?: Maybe<ShipmentTrip>;
|
|
1861
2101
|
tripId?: Maybe<Scalars['String']>;
|
|
1862
2102
|
};
|
|
1863
2103
|
|
|
@@ -1880,6 +2120,7 @@ export type PartialTrip = {
|
|
|
1880
2120
|
loadedDistance?: Maybe<Scalars['Float']>;
|
|
1881
2121
|
payments?: Maybe<Array<TripPayment>>;
|
|
1882
2122
|
polyline?: Maybe<Scalars['String']>;
|
|
2123
|
+
predictedLoadedDistance?: Maybe<Scalars['Float']>;
|
|
1883
2124
|
routeDistance?: Maybe<Scalars['Float']>;
|
|
1884
2125
|
shipmentLocations?: Maybe<Array<TripShipmentLocation>>;
|
|
1885
2126
|
shipments?: Maybe<Array<Shipment>>;
|
|
@@ -1949,13 +2190,19 @@ export type PeriodInput = {
|
|
|
1949
2190
|
|
|
1950
2191
|
export type Query = {
|
|
1951
2192
|
__typename?: 'Query';
|
|
2193
|
+
assetLinkingByDriverId?: Maybe<AssetLinking>;
|
|
2194
|
+
assetLinkingById?: Maybe<AssetLinking>;
|
|
2195
|
+
assetLinkingByTractorId?: Maybe<AssetLinking>;
|
|
2196
|
+
assetLinkingByTrailerId?: Maybe<AssetLinking>;
|
|
2197
|
+
assetLinkings: AssetLinkingPaginatedResult;
|
|
1952
2198
|
assignedTrips: TripPaginatedResult;
|
|
1953
2199
|
billingRuleById: BillingRule;
|
|
1954
2200
|
billingRules: BillingRulePaginatedResult;
|
|
1955
2201
|
brokerById: Broker;
|
|
1956
2202
|
brokers: BrokerPaginatedResult;
|
|
1957
|
-
|
|
1958
|
-
|
|
2203
|
+
businessEntities: BusinessEntityPaginatedResult;
|
|
2204
|
+
businessEntityByExternalId?: Maybe<BusinessEntity>;
|
|
2205
|
+
businessEntityById: BusinessEntity;
|
|
1959
2206
|
chassis: ChassisPaginatedResult;
|
|
1960
2207
|
chassisById: Chassis;
|
|
1961
2208
|
customerById: Customer;
|
|
@@ -1979,6 +2226,9 @@ export type Query = {
|
|
|
1979
2226
|
invoiceByShipmentId?: Maybe<Invoice>;
|
|
1980
2227
|
invoices: InvoicePaginatedResult;
|
|
1981
2228
|
isSubscribed: Scalars['Boolean'];
|
|
2229
|
+
loadBoardLoadById?: Maybe<Shipment>;
|
|
2230
|
+
loadBoardLoads: LoadBoardSearchResultPaginatedResult;
|
|
2231
|
+
myDriverSettlements: MyDriverSettlementPaginatedResult;
|
|
1982
2232
|
myOrganization: KeycloakOrganization;
|
|
1983
2233
|
orgUserById: OrgUser;
|
|
1984
2234
|
orgUsers: OrgUserPaginatedResult;
|
|
@@ -1994,6 +2244,7 @@ export type Query = {
|
|
|
1994
2244
|
shipments: ShipmentPaginatedResult;
|
|
1995
2245
|
shipperById: Shipper;
|
|
1996
2246
|
shippers: ShipperPaginatedResult;
|
|
2247
|
+
subscriptionInfo?: Maybe<SubscriptionInfo>;
|
|
1997
2248
|
trackShipment: ShipmentTrackingInfos;
|
|
1998
2249
|
tractorByEldId?: Maybe<Tractor>;
|
|
1999
2250
|
tractorById: Tractor;
|
|
@@ -2005,18 +2256,48 @@ export type Query = {
|
|
|
2005
2256
|
trailers: TrailerPaginatedResult;
|
|
2006
2257
|
transactionById: Transaction;
|
|
2007
2258
|
transactions: TransactionPaginatedResult;
|
|
2008
|
-
tripById
|
|
2259
|
+
tripById?: Maybe<Trip>;
|
|
2009
2260
|
tripPositions: Array<TripDriverPosition>;
|
|
2010
2261
|
trips: TripPaginatedResult;
|
|
2011
2262
|
};
|
|
2012
2263
|
|
|
2013
2264
|
|
|
2265
|
+
export type QueryAssetLinkingByDriverIdArgs = {
|
|
2266
|
+
driverId: Scalars['ObjectId'];
|
|
2267
|
+
};
|
|
2268
|
+
|
|
2269
|
+
|
|
2270
|
+
export type QueryAssetLinkingByIdArgs = {
|
|
2271
|
+
id: Scalars['String'];
|
|
2272
|
+
};
|
|
2273
|
+
|
|
2274
|
+
|
|
2275
|
+
export type QueryAssetLinkingByTractorIdArgs = {
|
|
2276
|
+
tractorId: Scalars['ObjectId'];
|
|
2277
|
+
};
|
|
2278
|
+
|
|
2279
|
+
|
|
2280
|
+
export type QueryAssetLinkingByTrailerIdArgs = {
|
|
2281
|
+
trailerId: Scalars['ObjectId'];
|
|
2282
|
+
};
|
|
2283
|
+
|
|
2284
|
+
|
|
2285
|
+
export type QueryAssetLinkingsArgs = {
|
|
2286
|
+
search?: InputMaybe<Scalars['String']>;
|
|
2287
|
+
skip?: InputMaybe<Scalars['Int']>;
|
|
2288
|
+
take?: InputMaybe<Scalars['Int']>;
|
|
2289
|
+
};
|
|
2290
|
+
|
|
2291
|
+
|
|
2014
2292
|
export type QueryAssignedTripsArgs = {
|
|
2015
2293
|
driver?: InputMaybe<Scalars['String']>;
|
|
2294
|
+
fromDate?: InputMaybe<Scalars['DateTime']>;
|
|
2016
2295
|
search?: InputMaybe<Scalars['String']>;
|
|
2017
2296
|
skip?: InputMaybe<Scalars['Int']>;
|
|
2018
2297
|
sort?: InputMaybe<TripSort>;
|
|
2298
|
+
status?: InputMaybe<Status>;
|
|
2019
2299
|
take?: InputMaybe<Scalars['Int']>;
|
|
2300
|
+
toDate?: InputMaybe<Scalars['DateTime']>;
|
|
2020
2301
|
};
|
|
2021
2302
|
|
|
2022
2303
|
|
|
@@ -2045,7 +2326,20 @@ export type QueryBrokersArgs = {
|
|
|
2045
2326
|
};
|
|
2046
2327
|
|
|
2047
2328
|
|
|
2048
|
-
export type
|
|
2329
|
+
export type QueryBusinessEntitiesArgs = {
|
|
2330
|
+
businessEntityTypes?: InputMaybe<Array<BusinessEntityType>>;
|
|
2331
|
+
search?: InputMaybe<Scalars['String']>;
|
|
2332
|
+
skip?: InputMaybe<Scalars['Int']>;
|
|
2333
|
+
take?: InputMaybe<Scalars['Int']>;
|
|
2334
|
+
};
|
|
2335
|
+
|
|
2336
|
+
|
|
2337
|
+
export type QueryBusinessEntityByExternalIdArgs = {
|
|
2338
|
+
externalId: Scalars['String'];
|
|
2339
|
+
};
|
|
2340
|
+
|
|
2341
|
+
|
|
2342
|
+
export type QueryBusinessEntityByIdArgs = {
|
|
2049
2343
|
id: Scalars['String'];
|
|
2050
2344
|
};
|
|
2051
2345
|
|
|
@@ -2172,12 +2466,30 @@ export type QueryInvoicesArgs = {
|
|
|
2172
2466
|
};
|
|
2173
2467
|
|
|
2174
2468
|
|
|
2469
|
+
export type QueryLoadBoardLoadByIdArgs = {
|
|
2470
|
+
id: Scalars['String'];
|
|
2471
|
+
};
|
|
2472
|
+
|
|
2473
|
+
|
|
2474
|
+
export type QueryLoadBoardLoadsArgs = {
|
|
2475
|
+
searchCriteria: LoadBoardSearchCriteria;
|
|
2476
|
+
};
|
|
2477
|
+
|
|
2478
|
+
|
|
2479
|
+
export type QueryMyDriverSettlementsArgs = {
|
|
2480
|
+
search?: InputMaybe<Scalars['String']>;
|
|
2481
|
+
skip?: InputMaybe<Scalars['Int']>;
|
|
2482
|
+
take?: InputMaybe<Scalars['Int']>;
|
|
2483
|
+
};
|
|
2484
|
+
|
|
2485
|
+
|
|
2175
2486
|
export type QueryOrgUserByIdArgs = {
|
|
2176
2487
|
id: Scalars['String'];
|
|
2177
2488
|
};
|
|
2178
2489
|
|
|
2179
2490
|
|
|
2180
2491
|
export type QueryOrgUsersArgs = {
|
|
2492
|
+
roles?: InputMaybe<Array<Scalars['String']>>;
|
|
2181
2493
|
search?: InputMaybe<Scalars['String']>;
|
|
2182
2494
|
skip?: InputMaybe<Scalars['Int']>;
|
|
2183
2495
|
take?: InputMaybe<Scalars['Int']>;
|
|
@@ -2222,6 +2534,8 @@ export type QueryShipmentByIdArgs = {
|
|
|
2222
2534
|
|
|
2223
2535
|
|
|
2224
2536
|
export type QueryShipmentsArgs = {
|
|
2537
|
+
excludeRecurrentShipments?: InputMaybe<Scalars['Boolean']>;
|
|
2538
|
+
parentShipmentId?: InputMaybe<Scalars['String']>;
|
|
2225
2539
|
plannedForToday?: InputMaybe<Scalars['Boolean']>;
|
|
2226
2540
|
search?: InputMaybe<Scalars['String']>;
|
|
2227
2541
|
skip?: InputMaybe<Scalars['Int']>;
|
|
@@ -2340,7 +2654,9 @@ export type Receiver = {
|
|
|
2340
2654
|
billingTermsDay?: Maybe<Scalars['Float']>;
|
|
2341
2655
|
code?: Maybe<Scalars['String']>;
|
|
2342
2656
|
contact: Contact;
|
|
2657
|
+
externalId?: Maybe<Scalars['String']>;
|
|
2343
2658
|
goodInventoryItems?: Maybe<Array<GoodInventoryItem>>;
|
|
2659
|
+
mcNumber?: Maybe<Scalars['String']>;
|
|
2344
2660
|
name: Scalars['String'];
|
|
2345
2661
|
openingSchedules?: Maybe<Array<OpeningSchedule>>;
|
|
2346
2662
|
remitAddress?: Maybe<TextualAddress>;
|
|
@@ -2379,8 +2695,11 @@ export type ReportPdf = {
|
|
|
2379
2695
|
};
|
|
2380
2696
|
|
|
2381
2697
|
export enum ReportType {
|
|
2698
|
+
CustomerRevenue = 'CUSTOMER_REVENUE',
|
|
2382
2699
|
DriverMileagePerTrip = 'DRIVER_MILEAGE_PER_TRIP',
|
|
2383
|
-
|
|
2700
|
+
RevenueByLoad = 'REVENUE_BY_LOAD',
|
|
2701
|
+
RevenuePerDay = 'REVENUE_PER_DAY',
|
|
2702
|
+
RevenuePerMile = 'REVENUE_PER_MILE'
|
|
2384
2703
|
}
|
|
2385
2704
|
|
|
2386
2705
|
export enum S3_Operation {
|
|
@@ -2392,20 +2711,24 @@ export enum S3_Operation {
|
|
|
2392
2711
|
export type Shipment = {
|
|
2393
2712
|
__typename?: 'Shipment';
|
|
2394
2713
|
_id: Scalars['String'];
|
|
2714
|
+
additionalTrailerTypes?: Maybe<Array<TrailerType>>;
|
|
2395
2715
|
assignedCarriers?: Maybe<Array<ShipmentCarrierAssignment>>;
|
|
2396
2716
|
billOfLadingNumber: Scalars['String'];
|
|
2397
2717
|
charges: Array<ShipmentCharge>;
|
|
2398
2718
|
constraints?: Maybe<Array<ShipmentConstraint>>;
|
|
2399
2719
|
createdBy: Scalars['String'];
|
|
2400
2720
|
customer: BusinessEntity;
|
|
2721
|
+
dailyRotationCount?: Maybe<Scalars['Float']>;
|
|
2401
2722
|
documents?: Maybe<Array<ShipmentDocument>>;
|
|
2402
2723
|
events?: Maybe<Array<ShipmentEvent>>;
|
|
2403
2724
|
expenses?: Maybe<Array<Transaction>>;
|
|
2404
2725
|
issues?: Maybe<Array<ShipmentIssue>>;
|
|
2405
2726
|
loadType: LoadType;
|
|
2406
2727
|
notes?: Maybe<Array<ShipmentNote>>;
|
|
2728
|
+
parentShipment?: Maybe<Shipment>;
|
|
2407
2729
|
postOfficeNumber: Scalars['String'];
|
|
2408
2730
|
reasonForCancellation?: Maybe<Scalars['String']>;
|
|
2731
|
+
recurrence?: Maybe<ShipmentRecurrence>;
|
|
2409
2732
|
referenceNumber?: Maybe<Scalars['String']>;
|
|
2410
2733
|
route?: Maybe<ShipmentRoute>;
|
|
2411
2734
|
shipmentLocations: Array<ShipmentLocation>;
|
|
@@ -2413,6 +2736,7 @@ export type Shipment = {
|
|
|
2413
2736
|
status: Status;
|
|
2414
2737
|
trackingEmailsSent?: Maybe<Scalars['Boolean']>;
|
|
2415
2738
|
trailerType: TrailerType;
|
|
2739
|
+
trip?: Maybe<ShipmentTrip>;
|
|
2416
2740
|
tripId?: Maybe<Scalars['String']>;
|
|
2417
2741
|
};
|
|
2418
2742
|
|
|
@@ -2432,6 +2756,7 @@ export type ShipmentCharge = {
|
|
|
2432
2756
|
_id: Scalars['String'];
|
|
2433
2757
|
billingRule?: Maybe<BillingRule>;
|
|
2434
2758
|
customFields?: Maybe<Array<CustomField>>;
|
|
2759
|
+
document?: Maybe<TransactionDocument>;
|
|
2435
2760
|
label: Scalars['String'];
|
|
2436
2761
|
number?: Maybe<Scalars['String']>;
|
|
2437
2762
|
rate: Scalars['Float'];
|
|
@@ -2446,6 +2771,7 @@ export type ShipmentChargeInput = {
|
|
|
2446
2771
|
_id?: InputMaybe<Scalars['String']>;
|
|
2447
2772
|
billingRule?: InputMaybe<Scalars['String']>;
|
|
2448
2773
|
customFields?: InputMaybe<Array<CustomFieldInput>>;
|
|
2774
|
+
document?: InputMaybe<TransactionDocumentInput>;
|
|
2449
2775
|
label: Scalars['String'];
|
|
2450
2776
|
rate: Scalars['Float'];
|
|
2451
2777
|
reimburseToDriver?: InputMaybe<Scalars['Boolean']>;
|
|
@@ -2493,6 +2819,7 @@ export type ShipmentDeleteInput = {
|
|
|
2493
2819
|
|
|
2494
2820
|
export type ShipmentDeletedEventPayload = {
|
|
2495
2821
|
__typename?: 'ShipmentDeletedEventPayload';
|
|
2822
|
+
reason?: Maybe<Scalars['String']>;
|
|
2496
2823
|
shipmentId: Scalars['String'];
|
|
2497
2824
|
};
|
|
2498
2825
|
|
|
@@ -2506,8 +2833,8 @@ export type ShipmentDocument = {
|
|
|
2506
2833
|
isBillable: Scalars['Boolean'];
|
|
2507
2834
|
lastUpdatedBy: Scalars['String'];
|
|
2508
2835
|
name: Scalars['String'];
|
|
2509
|
-
receiver?: Maybe<
|
|
2510
|
-
shipper?: Maybe<
|
|
2836
|
+
receiver?: Maybe<BusinessEntity>;
|
|
2837
|
+
shipper?: Maybe<BusinessEntity>;
|
|
2511
2838
|
type: Scalars['String'];
|
|
2512
2839
|
updatedAt: Scalars['DateTime'];
|
|
2513
2840
|
url: Scalars['String'];
|
|
@@ -2543,6 +2870,7 @@ export type ShipmentEvent = {
|
|
|
2543
2870
|
createdBy: Scalars['String'];
|
|
2544
2871
|
date: Scalars['DateTime'];
|
|
2545
2872
|
shipmentLocation?: Maybe<Scalars['String']>;
|
|
2873
|
+
tripShipmentLocation?: Maybe<Scalars['String']>;
|
|
2546
2874
|
type: ShipmentEventType;
|
|
2547
2875
|
};
|
|
2548
2876
|
|
|
@@ -2559,12 +2887,27 @@ export type ShipmentEventAddedEventPayload = {
|
|
|
2559
2887
|
shipment: Shipment;
|
|
2560
2888
|
};
|
|
2561
2889
|
|
|
2890
|
+
export type ShipmentEventDeletedEvent = {
|
|
2891
|
+
__typename?: 'ShipmentEventDeletedEvent';
|
|
2892
|
+
name: Events;
|
|
2893
|
+
organizationId?: Maybe<Scalars['String']>;
|
|
2894
|
+
payload: ShipmentEventDeletedEventPayload;
|
|
2895
|
+
};
|
|
2896
|
+
|
|
2897
|
+
export type ShipmentEventDeletedEventPayload = {
|
|
2898
|
+
__typename?: 'ShipmentEventDeletedEventPayload';
|
|
2899
|
+
eventId: Scalars['String'];
|
|
2900
|
+
shipment: Shipment;
|
|
2901
|
+
};
|
|
2902
|
+
|
|
2562
2903
|
export type ShipmentEventInput = {
|
|
2563
2904
|
_id?: InputMaybe<Scalars['String']>;
|
|
2905
|
+
date?: InputMaybe<Scalars['DateTime']>;
|
|
2564
2906
|
location: CoordinatesInput;
|
|
2565
2907
|
shipment: Scalars['String'];
|
|
2566
2908
|
shipmentLocation: Scalars['String'];
|
|
2567
2909
|
trip: Scalars['String'];
|
|
2910
|
+
tripShipmentLocation?: InputMaybe<Scalars['String']>;
|
|
2568
2911
|
type: ShipmentEventType;
|
|
2569
2912
|
};
|
|
2570
2913
|
|
|
@@ -2576,10 +2919,25 @@ export enum ShipmentEventType {
|
|
|
2576
2919
|
PickupCheckpointLeft = 'PICKUP_CHECKPOINT_LEFT',
|
|
2577
2920
|
PickupCheckpointLoadStart = 'PICKUP_CHECKPOINT_LOAD_START',
|
|
2578
2921
|
ShipmentComplete = 'SHIPMENT_COMPLETE',
|
|
2922
|
+
TripBreakStarted = 'TRIP_BREAK_STARTED',
|
|
2579
2923
|
TripEnd = 'TRIP_END',
|
|
2924
|
+
TripResumed = 'TRIP_RESUMED',
|
|
2580
2925
|
TripStarted = 'TRIP_STARTED'
|
|
2581
2926
|
}
|
|
2582
2927
|
|
|
2928
|
+
export type ShipmentEventUpdatedEvent = {
|
|
2929
|
+
__typename?: 'ShipmentEventUpdatedEvent';
|
|
2930
|
+
name: Events;
|
|
2931
|
+
organizationId?: Maybe<Scalars['String']>;
|
|
2932
|
+
payload: ShipmentEventUpdatedEventPayload;
|
|
2933
|
+
};
|
|
2934
|
+
|
|
2935
|
+
export type ShipmentEventUpdatedEventPayload = {
|
|
2936
|
+
__typename?: 'ShipmentEventUpdatedEventPayload';
|
|
2937
|
+
event: ShipmentEvent;
|
|
2938
|
+
shipment: Shipment;
|
|
2939
|
+
};
|
|
2940
|
+
|
|
2583
2941
|
export type ShipmentIssue = {
|
|
2584
2942
|
__typename?: 'ShipmentIssue';
|
|
2585
2943
|
_id: Scalars['String'];
|
|
@@ -2607,8 +2965,10 @@ export type ShipmentIssueInput = {
|
|
|
2607
2965
|
export type ShipmentLocation = {
|
|
2608
2966
|
__typename?: 'ShipmentLocation';
|
|
2609
2967
|
_id: Scalars['String'];
|
|
2968
|
+
addressLabel?: Maybe<Scalars['String']>;
|
|
2610
2969
|
location: Coordinates;
|
|
2611
2970
|
locationType: ShipmentLocationType;
|
|
2971
|
+
name?: Maybe<Scalars['String']>;
|
|
2612
2972
|
receivedGoods?: Maybe<Array<GoodDistribution>>;
|
|
2613
2973
|
receiver?: Maybe<BusinessEntity>;
|
|
2614
2974
|
shippedGoods?: Maybe<Array<Good>>;
|
|
@@ -2620,8 +2980,10 @@ export type ShipmentLocation = {
|
|
|
2620
2980
|
|
|
2621
2981
|
export type ShipmentLocationInput = {
|
|
2622
2982
|
_id?: InputMaybe<Scalars['String']>;
|
|
2983
|
+
addressLabel?: InputMaybe<Scalars['String']>;
|
|
2623
2984
|
location: CoordinatesInput;
|
|
2624
2985
|
locationType: ShipmentLocationType;
|
|
2986
|
+
name?: InputMaybe<Scalars['String']>;
|
|
2625
2987
|
receivedGoods: Array<GoodDistributionInput>;
|
|
2626
2988
|
receiver?: InputMaybe<Scalars['String']>;
|
|
2627
2989
|
shippedGoods: Array<GoodInput>;
|
|
@@ -2638,8 +3000,10 @@ export enum ShipmentLocationType {
|
|
|
2638
3000
|
export type ShipmentLocationWithShipment = {
|
|
2639
3001
|
__typename?: 'ShipmentLocationWithShipment';
|
|
2640
3002
|
_id: Scalars['String'];
|
|
3003
|
+
addressLabel?: Maybe<Scalars['String']>;
|
|
2641
3004
|
location: Coordinates;
|
|
2642
3005
|
locationType: ShipmentLocationType;
|
|
3006
|
+
name?: Maybe<Scalars['String']>;
|
|
2643
3007
|
receivedGoods?: Maybe<Array<GoodDistribution>>;
|
|
2644
3008
|
receiver?: Maybe<BusinessEntity>;
|
|
2645
3009
|
shipment: Shipment;
|
|
@@ -2658,8 +3022,8 @@ export type ShipmentNote = {
|
|
|
2658
3022
|
createdAt: Scalars['DateTime'];
|
|
2659
3023
|
createdBy: Scalars['String'];
|
|
2660
3024
|
lastUpdatedBy: Scalars['String'];
|
|
2661
|
-
receiver?: Maybe<
|
|
2662
|
-
shipper?: Maybe<
|
|
3025
|
+
receiver?: Maybe<BusinessEntity>;
|
|
3026
|
+
shipper?: Maybe<BusinessEntity>;
|
|
2663
3027
|
updatedAt: Scalars['DateTime'];
|
|
2664
3028
|
};
|
|
2665
3029
|
|
|
@@ -2677,6 +3041,58 @@ export type ShipmentPaginatedResult = {
|
|
|
2677
3041
|
data: Array<Shipment>;
|
|
2678
3042
|
};
|
|
2679
3043
|
|
|
3044
|
+
export type ShipmentRecurrence = {
|
|
3045
|
+
__typename?: 'ShipmentRecurrence';
|
|
3046
|
+
_id?: Maybe<Scalars['String']>;
|
|
3047
|
+
byhour?: Maybe<Array<Scalars['Float']>>;
|
|
3048
|
+
byminute?: Maybe<Array<Scalars['Float']>>;
|
|
3049
|
+
bymonth?: Maybe<Array<Scalars['Float']>>;
|
|
3050
|
+
bymonthday?: Maybe<Array<Scalars['Float']>>;
|
|
3051
|
+
bynmonthday?: Maybe<Array<Scalars['Float']>>;
|
|
3052
|
+
bysecond?: Maybe<Array<Scalars['Float']>>;
|
|
3053
|
+
bysetpos?: Maybe<Array<Scalars['Float']>>;
|
|
3054
|
+
byweekday?: Maybe<Array<ShipmentRecurrenceWeekday>>;
|
|
3055
|
+
byweekno?: Maybe<Array<Scalars['Float']>>;
|
|
3056
|
+
byyearday?: Maybe<Array<Scalars['Float']>>;
|
|
3057
|
+
count?: Maybe<Scalars['Float']>;
|
|
3058
|
+
dtstart: Scalars['DateTime'];
|
|
3059
|
+
freq: Frequency;
|
|
3060
|
+
interval: Scalars['Float'];
|
|
3061
|
+
tzid?: Maybe<Scalars['String']>;
|
|
3062
|
+
until: Scalars['DateTime'];
|
|
3063
|
+
};
|
|
3064
|
+
|
|
3065
|
+
export type ShipmentRecurrenceInput = {
|
|
3066
|
+
_id?: InputMaybe<Scalars['String']>;
|
|
3067
|
+
byhour?: InputMaybe<Array<Scalars['Float']>>;
|
|
3068
|
+
byminute?: InputMaybe<Array<Scalars['Float']>>;
|
|
3069
|
+
bymonth?: InputMaybe<Array<Scalars['Float']>>;
|
|
3070
|
+
bymonthday?: InputMaybe<Array<Scalars['Float']>>;
|
|
3071
|
+
bynmonthday?: InputMaybe<Array<Scalars['Float']>>;
|
|
3072
|
+
bysecond?: InputMaybe<Array<Scalars['Float']>>;
|
|
3073
|
+
bysetpos?: InputMaybe<Array<Scalars['Float']>>;
|
|
3074
|
+
byweekday?: InputMaybe<Array<ShipmentRecurrenceWeekdayInput>>;
|
|
3075
|
+
byweekno?: InputMaybe<Array<Scalars['Float']>>;
|
|
3076
|
+
byyearday?: InputMaybe<Array<Scalars['Float']>>;
|
|
3077
|
+
count?: InputMaybe<Scalars['Float']>;
|
|
3078
|
+
dtstart: Scalars['DateTime'];
|
|
3079
|
+
freq: Frequency;
|
|
3080
|
+
interval: Scalars['Float'];
|
|
3081
|
+
tzid?: InputMaybe<Scalars['String']>;
|
|
3082
|
+
until: Scalars['DateTime'];
|
|
3083
|
+
};
|
|
3084
|
+
|
|
3085
|
+
export type ShipmentRecurrenceWeekday = {
|
|
3086
|
+
__typename?: 'ShipmentRecurrenceWeekday';
|
|
3087
|
+
n?: Maybe<Scalars['Float']>;
|
|
3088
|
+
weekday: Scalars['Float'];
|
|
3089
|
+
};
|
|
3090
|
+
|
|
3091
|
+
export type ShipmentRecurrenceWeekdayInput = {
|
|
3092
|
+
n?: InputMaybe<Scalars['Float']>;
|
|
3093
|
+
weekday: Scalars['Float'];
|
|
3094
|
+
};
|
|
3095
|
+
|
|
2680
3096
|
export type ShipmentRoute = {
|
|
2681
3097
|
__typename?: 'ShipmentRoute';
|
|
2682
3098
|
distanceToEnd: Scalars['Float'];
|
|
@@ -2684,6 +3100,7 @@ export type ShipmentRoute = {
|
|
|
2684
3100
|
firstPickupTime: Scalars['DateTime'];
|
|
2685
3101
|
lastDropoffTime: Scalars['DateTime'];
|
|
2686
3102
|
locations?: Maybe<Array<TripShipmentLocation>>;
|
|
3103
|
+
predictedLoadedDistance?: Maybe<Scalars['Float']>;
|
|
2687
3104
|
routeDistance: Scalars['Float'];
|
|
2688
3105
|
};
|
|
2689
3106
|
|
|
@@ -2707,18 +3124,30 @@ export type ShipmentTrackingInfos = {
|
|
|
2707
3124
|
trip?: Maybe<Trip>;
|
|
2708
3125
|
};
|
|
2709
3126
|
|
|
3127
|
+
export type ShipmentTrip = {
|
|
3128
|
+
__typename?: 'ShipmentTrip';
|
|
3129
|
+
_id: Scalars['String'];
|
|
3130
|
+
driver: Scalars['String'];
|
|
3131
|
+
tractor: Scalars['String'];
|
|
3132
|
+
trailer: Scalars['String'];
|
|
3133
|
+
tripNumber: Scalars['String'];
|
|
3134
|
+
};
|
|
3135
|
+
|
|
2710
3136
|
export type ShipmentUpdateInput = {
|
|
3137
|
+
additionalTrailerTypes?: InputMaybe<Array<TrailerType>>;
|
|
2711
3138
|
assignedCarriers?: InputMaybe<Array<ShipmentCarrierAssignmentInput>>;
|
|
2712
3139
|
billOfLadingNumber?: InputMaybe<Scalars['String']>;
|
|
2713
3140
|
charges?: InputMaybe<Array<ShipmentChargeInput>>;
|
|
2714
3141
|
constraints?: InputMaybe<Array<ShipmentConstraintInput>>;
|
|
2715
3142
|
createdBy?: InputMaybe<Scalars['String']>;
|
|
2716
3143
|
customer?: InputMaybe<Scalars['String']>;
|
|
3144
|
+
dailyRotationCount?: InputMaybe<Scalars['Float']>;
|
|
2717
3145
|
documents?: InputMaybe<Array<ShipmentDocumentInput>>;
|
|
2718
3146
|
expenses?: InputMaybe<Array<TransactionInput>>;
|
|
2719
3147
|
loadType?: InputMaybe<LoadType>;
|
|
2720
3148
|
notes?: InputMaybe<Array<SingleShipmentNoteInput>>;
|
|
2721
3149
|
postOfficeNumber?: InputMaybe<Scalars['String']>;
|
|
3150
|
+
recurrence?: InputMaybe<ShipmentRecurrenceInput>;
|
|
2722
3151
|
referenceNumber?: InputMaybe<Scalars['String']>;
|
|
2723
3152
|
shipmentLocations?: InputMaybe<Array<ShipmentLocationInput>>;
|
|
2724
3153
|
trailerType?: InputMaybe<TrailerType>;
|
|
@@ -2734,6 +3163,7 @@ export type ShipmentUpdatedEvent = {
|
|
|
2734
3163
|
export type ShipmentUpdatedEventPayload = {
|
|
2735
3164
|
__typename?: 'ShipmentUpdatedEventPayload';
|
|
2736
3165
|
changes: PartialShipment;
|
|
3166
|
+
previousShipment: Shipment;
|
|
2737
3167
|
shipment: Shipment;
|
|
2738
3168
|
};
|
|
2739
3169
|
|
|
@@ -2750,7 +3180,9 @@ export type Shipper = {
|
|
|
2750
3180
|
billingTermsDay?: Maybe<Scalars['Float']>;
|
|
2751
3181
|
code?: Maybe<Scalars['String']>;
|
|
2752
3182
|
contact: Contact;
|
|
3183
|
+
externalId?: Maybe<Scalars['String']>;
|
|
2753
3184
|
goodInventoryItems?: Maybe<Array<GoodInventoryItem>>;
|
|
3185
|
+
mcNumber?: Maybe<Scalars['String']>;
|
|
2754
3186
|
name: Scalars['String'];
|
|
2755
3187
|
openingSchedules?: Maybe<Array<OpeningSchedule>>;
|
|
2756
3188
|
remitAddress?: Maybe<TextualAddress>;
|
|
@@ -2798,11 +3230,36 @@ export type SubscriptionCheckoutSession = {
|
|
|
2798
3230
|
url: Scalars['String'];
|
|
2799
3231
|
};
|
|
2800
3232
|
|
|
3233
|
+
export type SubscriptionInfo = {
|
|
3234
|
+
__typename?: 'SubscriptionInfo';
|
|
3235
|
+
activatedAt?: Maybe<Scalars['DateTime']>;
|
|
3236
|
+
createdAt?: Maybe<Scalars['DateTime']>;
|
|
3237
|
+
id: Scalars['String'];
|
|
3238
|
+
lastUpdated: Scalars['DateTime'];
|
|
3239
|
+
mrr: Scalars['Float'];
|
|
3240
|
+
numberOfAdminSeats?: Maybe<Scalars['Float']>;
|
|
3241
|
+
numberOfDriverSeats?: Maybe<Scalars['Float']>;
|
|
3242
|
+
status: SubscriptionStatus;
|
|
3243
|
+
trialEnd?: Maybe<Scalars['DateTime']>;
|
|
3244
|
+
trialStart?: Maybe<Scalars['DateTime']>;
|
|
3245
|
+
};
|
|
3246
|
+
|
|
2801
3247
|
export type SubscriptionPortalSession = {
|
|
2802
3248
|
__typename?: 'SubscriptionPortalSession';
|
|
2803
3249
|
url: Scalars['String'];
|
|
2804
3250
|
};
|
|
2805
3251
|
|
|
3252
|
+
export enum SubscriptionStatus {
|
|
3253
|
+
Active = 'ACTIVE',
|
|
3254
|
+
Cancelled = 'CANCELLED',
|
|
3255
|
+
Future = 'FUTURE',
|
|
3256
|
+
InTrial = 'IN_TRIAL',
|
|
3257
|
+
None = 'NONE',
|
|
3258
|
+
NonRenewing = 'NON_RENEWING',
|
|
3259
|
+
Paused = 'PAUSED',
|
|
3260
|
+
Unknown = 'UNKNOWN'
|
|
3261
|
+
}
|
|
3262
|
+
|
|
2806
3263
|
export type Temp = {
|
|
2807
3264
|
__typename?: 'Temp';
|
|
2808
3265
|
day?: Maybe<Scalars['Float']>;
|
|
@@ -2945,6 +3402,7 @@ export enum TrailerType {
|
|
|
2945
3402
|
Lowboy = 'LOWBOY',
|
|
2946
3403
|
MultiCar = 'MULTI_CAR',
|
|
2947
3404
|
Other = 'OTHER',
|
|
3405
|
+
PowerOnly = 'POWER_ONLY',
|
|
2948
3406
|
Refrigerated = 'REFRIGERATED',
|
|
2949
3407
|
SpecializedDeck = 'SPECIALIZED_DECK',
|
|
2950
3408
|
StandardDeck = 'STANDARD_DECK',
|
|
@@ -2973,6 +3431,7 @@ export type Transaction = {
|
|
|
2973
3431
|
__typename?: 'Transaction';
|
|
2974
3432
|
_id: Scalars['String'];
|
|
2975
3433
|
customFields?: Maybe<Array<CustomField>>;
|
|
3434
|
+
document?: Maybe<TransactionDocument>;
|
|
2976
3435
|
label: Scalars['String'];
|
|
2977
3436
|
number?: Maybe<Scalars['String']>;
|
|
2978
3437
|
rate: Scalars['Float'];
|
|
@@ -2982,9 +3441,23 @@ export type Transaction = {
|
|
|
2982
3441
|
unitType: Scalars['String'];
|
|
2983
3442
|
};
|
|
2984
3443
|
|
|
3444
|
+
export type TransactionDocument = {
|
|
3445
|
+
__typename?: 'TransactionDocument';
|
|
3446
|
+
_id?: Maybe<Scalars['String']>;
|
|
3447
|
+
name: Scalars['String'];
|
|
3448
|
+
url: Scalars['String'];
|
|
3449
|
+
};
|
|
3450
|
+
|
|
3451
|
+
export type TransactionDocumentInput = {
|
|
3452
|
+
_id?: InputMaybe<Scalars['String']>;
|
|
3453
|
+
name: Scalars['String'];
|
|
3454
|
+
url: Scalars['String'];
|
|
3455
|
+
};
|
|
3456
|
+
|
|
2985
3457
|
export type TransactionInput = {
|
|
2986
3458
|
_id?: InputMaybe<Scalars['String']>;
|
|
2987
3459
|
customFields?: InputMaybe<Array<CustomFieldInput>>;
|
|
3460
|
+
document?: InputMaybe<TransactionDocumentInput>;
|
|
2988
3461
|
label: Scalars['String'];
|
|
2989
3462
|
rate: Scalars['Float'];
|
|
2990
3463
|
reimburseToDriver?: InputMaybe<Scalars['Boolean']>;
|
|
@@ -3007,6 +3480,7 @@ export enum TransactionType {
|
|
|
3007
3480
|
export type TransactionUpdateInput = {
|
|
3008
3481
|
_id?: InputMaybe<Scalars['String']>;
|
|
3009
3482
|
customFields?: InputMaybe<Array<CustomFieldInput>>;
|
|
3483
|
+
document?: InputMaybe<TransactionDocumentInput>;
|
|
3010
3484
|
label?: InputMaybe<Scalars['String']>;
|
|
3011
3485
|
rate?: InputMaybe<Scalars['Float']>;
|
|
3012
3486
|
reimburseToDriver?: InputMaybe<Scalars['Boolean']>;
|
|
@@ -3035,6 +3509,7 @@ export type Trip = {
|
|
|
3035
3509
|
loadedDistance?: Maybe<Scalars['Float']>;
|
|
3036
3510
|
payments?: Maybe<Array<TripPayment>>;
|
|
3037
3511
|
polyline: Scalars['String'];
|
|
3512
|
+
predictedLoadedDistance?: Maybe<Scalars['Float']>;
|
|
3038
3513
|
routeDistance: Scalars['Float'];
|
|
3039
3514
|
shipmentLocations: Array<TripShipmentLocation>;
|
|
3040
3515
|
shipments: Array<Shipment>;
|
|
@@ -3136,11 +3611,15 @@ export type TripPayment = {
|
|
|
3136
3611
|
export type TripShipmentLocation = {
|
|
3137
3612
|
__typename?: 'TripShipmentLocation';
|
|
3138
3613
|
_id: Scalars['String'];
|
|
3614
|
+
addressLabel?: Maybe<Scalars['String']>;
|
|
3139
3615
|
arrivalTime: Scalars['DateTime'];
|
|
3616
|
+
distanceTo?: Maybe<Scalars['Float']>;
|
|
3140
3617
|
location: Coordinates;
|
|
3141
3618
|
locationType: ShipmentLocationType;
|
|
3619
|
+
name?: Maybe<Scalars['String']>;
|
|
3142
3620
|
receivedGoods?: Maybe<Array<GoodDistribution>>;
|
|
3143
3621
|
receiver?: Maybe<BusinessEntity>;
|
|
3622
|
+
rotationIndex?: Maybe<Scalars['Float']>;
|
|
3144
3623
|
serviceDuration: Scalars['Float'];
|
|
3145
3624
|
setupDuration: Scalars['Float'];
|
|
3146
3625
|
shipmentId?: Maybe<Scalars['String']>;
|
|
@@ -3148,6 +3627,8 @@ export type TripShipmentLocation = {
|
|
|
3148
3627
|
shipper?: Maybe<BusinessEntity>;
|
|
3149
3628
|
timeWindows: Array<DateTimeWindow>;
|
|
3150
3629
|
trafficInfo?: Maybe<LocationTraffic>;
|
|
3630
|
+
/** This is the ID of the shipment location as defined in the trip */
|
|
3631
|
+
tripShipmentLocationId: Scalars['String'];
|
|
3151
3632
|
waitingDuration: Scalars['Float'];
|
|
3152
3633
|
weatherInfo?: Maybe<LocationWeather>;
|
|
3153
3634
|
};
|
|
@@ -3178,13 +3659,40 @@ export type TripUpdatedEventPayload = {
|
|
|
3178
3659
|
trip: Trip;
|
|
3179
3660
|
};
|
|
3180
3661
|
|
|
3662
|
+
export type UpdateAccountAttributesInput = {
|
|
3663
|
+
freshchatRestoreId?: InputMaybe<Scalars['String']>;
|
|
3664
|
+
};
|
|
3665
|
+
|
|
3666
|
+
export type UpdateAccountInput = {
|
|
3667
|
+
attributes?: InputMaybe<UpdateAccountAttributesInput>;
|
|
3668
|
+
firstName?: InputMaybe<Scalars['String']>;
|
|
3669
|
+
lastName?: InputMaybe<Scalars['String']>;
|
|
3670
|
+
};
|
|
3671
|
+
|
|
3672
|
+
export type UpdateShipmentEventInput = {
|
|
3673
|
+
date?: InputMaybe<Scalars['DateTime']>;
|
|
3674
|
+
};
|
|
3675
|
+
|
|
3676
|
+
export type User = {
|
|
3677
|
+
__typename?: 'User';
|
|
3678
|
+
attributes: UserAttributes;
|
|
3679
|
+
email?: Maybe<Scalars['String']>;
|
|
3680
|
+
firstName?: Maybe<Scalars['String']>;
|
|
3681
|
+
id: Scalars['String'];
|
|
3682
|
+
lastName?: Maybe<Scalars['String']>;
|
|
3683
|
+
roles: Array<KeycloakUserRole>;
|
|
3684
|
+
username: Scalars['String'];
|
|
3685
|
+
};
|
|
3686
|
+
|
|
3181
3687
|
export type UserAttributes = {
|
|
3182
3688
|
__typename?: 'UserAttributes';
|
|
3183
3689
|
driverId?: Maybe<Scalars['String']>;
|
|
3690
|
+
freshchatRestoreId?: Maybe<Scalars['String']>;
|
|
3184
3691
|
};
|
|
3185
3692
|
|
|
3186
3693
|
export type UserAttributesInput = {
|
|
3187
3694
|
driverId?: InputMaybe<Scalars['String']>;
|
|
3695
|
+
freshchatRestoreId?: InputMaybe<Scalars['String']>;
|
|
3188
3696
|
};
|
|
3189
3697
|
|
|
3190
3698
|
export type WeatherInfo = {
|
|
@@ -3195,6 +3703,52 @@ export type WeatherInfo = {
|
|
|
3195
3703
|
main?: Maybe<Scalars['String']>;
|
|
3196
3704
|
};
|
|
3197
3705
|
|
|
3706
|
+
export type GetBusinessEntityListQueryVariables = Exact<{
|
|
3707
|
+
search?: InputMaybe<Scalars['String']>;
|
|
3708
|
+
skip?: InputMaybe<Scalars['Int']>;
|
|
3709
|
+
take?: InputMaybe<Scalars['Int']>;
|
|
3710
|
+
businessEntityTypes?: InputMaybe<Array<BusinessEntityType> | BusinessEntityType>;
|
|
3711
|
+
}>;
|
|
3712
|
+
|
|
3713
|
+
|
|
3714
|
+
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 } }> } };
|
|
3715
|
+
|
|
3716
|
+
export type GetBusinessEntityDetailsQueryVariables = Exact<{
|
|
3717
|
+
id: Scalars['String'];
|
|
3718
|
+
}>;
|
|
3719
|
+
|
|
3720
|
+
|
|
3721
|
+
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 } };
|
|
3722
|
+
|
|
3723
|
+
export type GetBusinessEntityDetailsByExternalIdQueryVariables = Exact<{
|
|
3724
|
+
externalId: Scalars['String'];
|
|
3725
|
+
}>;
|
|
3726
|
+
|
|
3727
|
+
|
|
3728
|
+
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 };
|
|
3729
|
+
|
|
3730
|
+
export type AddBusinessEntityMutationVariables = Exact<{
|
|
3731
|
+
newBusinessEntityData: NewBusinessEntityInputWithType;
|
|
3732
|
+
}>;
|
|
3733
|
+
|
|
3734
|
+
|
|
3735
|
+
export type AddBusinessEntityMutation = { __typename?: 'Mutation', addBusinessEntity: { __typename?: 'BusinessEntity', _id: string } };
|
|
3736
|
+
|
|
3737
|
+
export type EditBusinessEntityMutationVariables = Exact<{
|
|
3738
|
+
id: Scalars['String'];
|
|
3739
|
+
editBusinessEntityData: BusinessEntityUpdateInput;
|
|
3740
|
+
}>;
|
|
3741
|
+
|
|
3742
|
+
|
|
3743
|
+
export type EditBusinessEntityMutation = { __typename?: 'Mutation', editBusinessEntity: { __typename?: 'BusinessEntity', _id: string } };
|
|
3744
|
+
|
|
3745
|
+
export type DeleteBusinessEntityMutationVariables = Exact<{
|
|
3746
|
+
id: Scalars['String'];
|
|
3747
|
+
}>;
|
|
3748
|
+
|
|
3749
|
+
|
|
3750
|
+
export type DeleteBusinessEntityMutation = { __typename?: 'Mutation', deleteBusinessEntity: boolean };
|
|
3751
|
+
|
|
3198
3752
|
export type GetDriverSettlementsForDriverQueryVariables = Exact<{
|
|
3199
3753
|
driverId: Scalars['String'];
|
|
3200
3754
|
search?: InputMaybe<Scalars['String']>;
|
|
@@ -3253,14 +3807,14 @@ export type GetInvoiceByIdQueryVariables = Exact<{
|
|
|
3253
3807
|
}>;
|
|
3254
3808
|
|
|
3255
3809
|
|
|
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 } };
|
|
3810
|
+
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
3811
|
|
|
3258
3812
|
export type GetInvoiceByNumberQueryVariables = Exact<{
|
|
3259
3813
|
invoiceNumber: Scalars['String'];
|
|
3260
3814
|
}>;
|
|
3261
3815
|
|
|
3262
3816
|
|
|
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 };
|
|
3817
|
+
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
3818
|
|
|
3265
3819
|
export type UpdateInvoiceStatusMutationVariables = Exact<{
|
|
3266
3820
|
invoiceId: Scalars['String'];
|
|
@@ -3372,6 +3926,194 @@ export type GetOrgUserByIdQueryVariables = Exact<{
|
|
|
3372
3926
|
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
3927
|
|
|
3374
3928
|
|
|
3929
|
+
export const GetBusinessEntityListDocument = gql`
|
|
3930
|
+
query getBusinessEntityList($search: String, $skip: Int, $take: Int, $businessEntityTypes: [BusinessEntityType!]) {
|
|
3931
|
+
businessEntities(
|
|
3932
|
+
search: $search
|
|
3933
|
+
skip: $skip
|
|
3934
|
+
take: $take
|
|
3935
|
+
businessEntityTypes: $businessEntityTypes
|
|
3936
|
+
) {
|
|
3937
|
+
data {
|
|
3938
|
+
_id
|
|
3939
|
+
address {
|
|
3940
|
+
label
|
|
3941
|
+
}
|
|
3942
|
+
code
|
|
3943
|
+
mcNumber
|
|
3944
|
+
contact {
|
|
3945
|
+
firstname
|
|
3946
|
+
lastname
|
|
3947
|
+
email
|
|
3948
|
+
phoneNumber
|
|
3949
|
+
}
|
|
3950
|
+
name
|
|
3951
|
+
type
|
|
3952
|
+
additionalTypes
|
|
3953
|
+
}
|
|
3954
|
+
count
|
|
3955
|
+
}
|
|
3956
|
+
}
|
|
3957
|
+
`;
|
|
3958
|
+
export const GetBusinessEntityDetailsDocument = gql`
|
|
3959
|
+
query getBusinessEntityDetails($id: String!) {
|
|
3960
|
+
businessEntityById(id: $id) {
|
|
3961
|
+
_id
|
|
3962
|
+
name
|
|
3963
|
+
code
|
|
3964
|
+
mcNumber
|
|
3965
|
+
additionalTypes
|
|
3966
|
+
address {
|
|
3967
|
+
label
|
|
3968
|
+
coordinates {
|
|
3969
|
+
latitude
|
|
3970
|
+
longitude
|
|
3971
|
+
}
|
|
3972
|
+
city
|
|
3973
|
+
country
|
|
3974
|
+
googlePlaceId
|
|
3975
|
+
line1
|
|
3976
|
+
line2
|
|
3977
|
+
postalCode
|
|
3978
|
+
state
|
|
3979
|
+
}
|
|
3980
|
+
addressTimezone
|
|
3981
|
+
billingAddress {
|
|
3982
|
+
city
|
|
3983
|
+
country
|
|
3984
|
+
googlePlaceId
|
|
3985
|
+
line1
|
|
3986
|
+
line2
|
|
3987
|
+
postalCode
|
|
3988
|
+
state
|
|
3989
|
+
}
|
|
3990
|
+
billingEmail
|
|
3991
|
+
billingTermsDay
|
|
3992
|
+
remitAddress {
|
|
3993
|
+
city
|
|
3994
|
+
country
|
|
3995
|
+
googlePlaceId
|
|
3996
|
+
line1
|
|
3997
|
+
line2
|
|
3998
|
+
postalCode
|
|
3999
|
+
state
|
|
4000
|
+
}
|
|
4001
|
+
remitEmail
|
|
4002
|
+
contact {
|
|
4003
|
+
email
|
|
4004
|
+
firstname
|
|
4005
|
+
lastname
|
|
4006
|
+
phoneNumber
|
|
4007
|
+
}
|
|
4008
|
+
openingSchedules {
|
|
4009
|
+
openingTime
|
|
4010
|
+
closingTime
|
|
4011
|
+
days
|
|
4012
|
+
}
|
|
4013
|
+
additionalContacts {
|
|
4014
|
+
firstname
|
|
4015
|
+
lastname
|
|
4016
|
+
email
|
|
4017
|
+
phoneNumber
|
|
4018
|
+
}
|
|
4019
|
+
goodInventoryItems {
|
|
4020
|
+
_id
|
|
4021
|
+
label
|
|
4022
|
+
weight
|
|
4023
|
+
}
|
|
4024
|
+
type
|
|
4025
|
+
}
|
|
4026
|
+
}
|
|
4027
|
+
`;
|
|
4028
|
+
export const GetBusinessEntityDetailsByExternalIdDocument = gql`
|
|
4029
|
+
query getBusinessEntityDetailsByExternalId($externalId: String!) {
|
|
4030
|
+
businessEntityByExternalId(externalId: $externalId) {
|
|
4031
|
+
_id
|
|
4032
|
+
name
|
|
4033
|
+
code
|
|
4034
|
+
mcNumber
|
|
4035
|
+
additionalTypes
|
|
4036
|
+
address {
|
|
4037
|
+
label
|
|
4038
|
+
coordinates {
|
|
4039
|
+
latitude
|
|
4040
|
+
longitude
|
|
4041
|
+
}
|
|
4042
|
+
city
|
|
4043
|
+
country
|
|
4044
|
+
googlePlaceId
|
|
4045
|
+
line1
|
|
4046
|
+
line2
|
|
4047
|
+
postalCode
|
|
4048
|
+
state
|
|
4049
|
+
}
|
|
4050
|
+
addressTimezone
|
|
4051
|
+
billingAddress {
|
|
4052
|
+
city
|
|
4053
|
+
country
|
|
4054
|
+
googlePlaceId
|
|
4055
|
+
line1
|
|
4056
|
+
line2
|
|
4057
|
+
postalCode
|
|
4058
|
+
state
|
|
4059
|
+
}
|
|
4060
|
+
billingEmail
|
|
4061
|
+
billingTermsDay
|
|
4062
|
+
remitAddress {
|
|
4063
|
+
city
|
|
4064
|
+
country
|
|
4065
|
+
googlePlaceId
|
|
4066
|
+
line1
|
|
4067
|
+
line2
|
|
4068
|
+
postalCode
|
|
4069
|
+
state
|
|
4070
|
+
}
|
|
4071
|
+
remitEmail
|
|
4072
|
+
contact {
|
|
4073
|
+
email
|
|
4074
|
+
firstname
|
|
4075
|
+
lastname
|
|
4076
|
+
phoneNumber
|
|
4077
|
+
}
|
|
4078
|
+
openingSchedules {
|
|
4079
|
+
openingTime
|
|
4080
|
+
closingTime
|
|
4081
|
+
days
|
|
4082
|
+
}
|
|
4083
|
+
additionalContacts {
|
|
4084
|
+
firstname
|
|
4085
|
+
lastname
|
|
4086
|
+
email
|
|
4087
|
+
phoneNumber
|
|
4088
|
+
}
|
|
4089
|
+
goodInventoryItems {
|
|
4090
|
+
_id
|
|
4091
|
+
label
|
|
4092
|
+
weight
|
|
4093
|
+
}
|
|
4094
|
+
type
|
|
4095
|
+
}
|
|
4096
|
+
}
|
|
4097
|
+
`;
|
|
4098
|
+
export const AddBusinessEntityDocument = gql`
|
|
4099
|
+
mutation addBusinessEntity($newBusinessEntityData: NewBusinessEntityInputWithType!) {
|
|
4100
|
+
addBusinessEntity(newBusinessEntityData: $newBusinessEntityData) {
|
|
4101
|
+
_id
|
|
4102
|
+
}
|
|
4103
|
+
}
|
|
4104
|
+
`;
|
|
4105
|
+
export const EditBusinessEntityDocument = gql`
|
|
4106
|
+
mutation editBusinessEntity($id: String!, $editBusinessEntityData: BusinessEntityUpdateInput!) {
|
|
4107
|
+
editBusinessEntity(id: $id, editBusinessEntityData: $editBusinessEntityData) {
|
|
4108
|
+
_id
|
|
4109
|
+
}
|
|
4110
|
+
}
|
|
4111
|
+
`;
|
|
4112
|
+
export const DeleteBusinessEntityDocument = gql`
|
|
4113
|
+
mutation deleteBusinessEntity($id: String!) {
|
|
4114
|
+
deleteBusinessEntity(id: $id)
|
|
4115
|
+
}
|
|
4116
|
+
`;
|
|
3375
4117
|
export const GetDriverSettlementsForDriverDocument = gql`
|
|
3376
4118
|
query getDriverSettlementsForDriver($driverId: String!, $search: String, $skip: Int, $take: Int) {
|
|
3377
4119
|
driverSettlements(driver: $driverId, search: $search, skip: $skip, take: $take) {
|
|
@@ -3623,6 +4365,7 @@ export const GetInvoiceByIdDocument = gql`
|
|
|
3623
4365
|
weight
|
|
3624
4366
|
}
|
|
3625
4367
|
type
|
|
4368
|
+
externalId
|
|
3626
4369
|
}
|
|
3627
4370
|
invoiceNumber
|
|
3628
4371
|
pdfDocument {
|
|
@@ -3718,6 +4461,7 @@ export const GetInvoiceByNumberDocument = gql`
|
|
|
3718
4461
|
weight
|
|
3719
4462
|
}
|
|
3720
4463
|
type
|
|
4464
|
+
externalId
|
|
3721
4465
|
}
|
|
3722
4466
|
invoiceNumber
|
|
3723
4467
|
pdfDocument {
|
|
@@ -3895,6 +4639,24 @@ const defaultWrapper: SdkFunctionWrapper = (action, _operationName, _operationTy
|
|
|
3895
4639
|
|
|
3896
4640
|
export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = defaultWrapper) {
|
|
3897
4641
|
return {
|
|
4642
|
+
getBusinessEntityList(variables?: GetBusinessEntityListQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetBusinessEntityListQuery> {
|
|
4643
|
+
return withWrapper((wrappedRequestHeaders) => client.request<GetBusinessEntityListQuery>(GetBusinessEntityListDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getBusinessEntityList', 'query');
|
|
4644
|
+
},
|
|
4645
|
+
getBusinessEntityDetails(variables: GetBusinessEntityDetailsQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetBusinessEntityDetailsQuery> {
|
|
4646
|
+
return withWrapper((wrappedRequestHeaders) => client.request<GetBusinessEntityDetailsQuery>(GetBusinessEntityDetailsDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getBusinessEntityDetails', 'query');
|
|
4647
|
+
},
|
|
4648
|
+
getBusinessEntityDetailsByExternalId(variables: GetBusinessEntityDetailsByExternalIdQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetBusinessEntityDetailsByExternalIdQuery> {
|
|
4649
|
+
return withWrapper((wrappedRequestHeaders) => client.request<GetBusinessEntityDetailsByExternalIdQuery>(GetBusinessEntityDetailsByExternalIdDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getBusinessEntityDetailsByExternalId', 'query');
|
|
4650
|
+
},
|
|
4651
|
+
addBusinessEntity(variables: AddBusinessEntityMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<AddBusinessEntityMutation> {
|
|
4652
|
+
return withWrapper((wrappedRequestHeaders) => client.request<AddBusinessEntityMutation>(AddBusinessEntityDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'addBusinessEntity', 'mutation');
|
|
4653
|
+
},
|
|
4654
|
+
editBusinessEntity(variables: EditBusinessEntityMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<EditBusinessEntityMutation> {
|
|
4655
|
+
return withWrapper((wrappedRequestHeaders) => client.request<EditBusinessEntityMutation>(EditBusinessEntityDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'editBusinessEntity', 'mutation');
|
|
4656
|
+
},
|
|
4657
|
+
deleteBusinessEntity(variables: DeleteBusinessEntityMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<DeleteBusinessEntityMutation> {
|
|
4658
|
+
return withWrapper((wrappedRequestHeaders) => client.request<DeleteBusinessEntityMutation>(DeleteBusinessEntityDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'deleteBusinessEntity', 'mutation');
|
|
4659
|
+
},
|
|
3898
4660
|
getDriverSettlementsForDriver(variables: GetDriverSettlementsForDriverQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetDriverSettlementsForDriverQuery> {
|
|
3899
4661
|
return withWrapper((wrappedRequestHeaders) => client.request<GetDriverSettlementsForDriverQuery>(GetDriverSettlementsForDriverDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getDriverSettlementsForDriver', 'query');
|
|
3900
4662
|
},
|