@truetms/truetms-node 0.3.3 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/graphql/generated.js +678 -3
- package/dist/src/graphql/generated.js.map +1 -1
- package/dist/src/sdk/index.js +2 -0
- package/dist/src/sdk/index.js.map +1 -1
- package/dist/src/sdk/shipments.js +16 -0
- package/dist/src/sdk/shipments.js.map +1 -0
- package/dist/src/sdk/trips.js +2 -0
- package/dist/src/sdk/trips.js.map +1 -1
- package/package.json +1 -1
- package/src/graphql/drivers.graphql +18 -0
- package/src/graphql/generated.ts +1354 -35
- package/src/graphql/shipments.graphql +403 -0
- package/src/graphql/trips.graphql +186 -0
- package/src/sdk/index.ts +3 -0
- package/src/sdk/shipments.ts +11 -0
- package/src/sdk/trips.ts +2 -0
|
@@ -3,9 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.getSdk = exports.GetOrgUserByIdDocument = exports.ListTripsDocument = exports.EditTransactionDocument = exports.AddTransactionDocument = exports.DeleteTransactionDocument = exports.GetTransactionByIdDocument = exports.GetTransactionListDocument = exports.PersistTractorPositionsDocument = void 0;
|
|
6
|
+
exports.NoteAccessLevel = exports.MetricType = exports.MeasurementSystem = exports.MaintenanceTaskStatus = exports.MaintenanceTaskRecurrenceFrequency = exports.LoadType = exports.Language = exports.InvoicingProcess = exports.InvoiceStatus = exports.InvoiceConsolidationCriteria = exports.GoodUnits = exports.GoodProfileRestrictionType = exports.GoodProfileEquivalenceConditionTarget = exports.GoodProfileEquivalenceConditionOperator = exports.Frequency = exports.ForecastingNotificationLevel = exports.ForecastingModelSlotType = exports.ExtensionWidgetContext = exports.ExtensionOperationContext = exports.ExtensionMessageType = exports.ExtensionMessageContext = exports.ExtensionHookOperation = exports.ExtensionCustomFieldType = exports.ExtensionCustomFieldContext = exports.ExtensionActionType = exports.ExceptionType = exports.Events = exports.DriverSettlementStatus = exports.DriverPaymentMethod = exports.DriverLicenseRestriction = exports.DriverLicenseEndorsement = exports.DriverLicenseClassification = exports.DriverHosStatus = exports.DriverDeductionMethod = exports.DocumentType = exports.DeductionType = exports.DeductionPeriodUnit = exports.CustomFieldType = exports.CustomFieldSelectOptionEntity = exports.CustomFieldContext = exports.Currency = exports.ChargeType = exports.BusinessEntityType = exports.BillingRuleType = exports.BillingRuleConditionTarget = exports.BillingRuleConditionParameterType = exports.BillingRuleConditionOperator = exports.BillingRateParameterType = exports.BillingMethod = exports.AssetStatus = void 0;
|
|
7
|
+
exports.GetShipmentDetailsDocument = exports.GetShipmentListDocument = exports.GetMyOrganizationDocument = exports.UpdateInvoiceStatusDocument = exports.GetInvoiceByNumberDocument = exports.GetInvoiceByIdDocument = exports.GetInvoiceListDocument = exports.EditDriverDocument = exports.AddDriverDocument = exports.GetDriverByLicenseNumberDocument = exports.GetDriverByEldIdDocument = exports.GetDriverSettlementByNumberDocument = exports.GetDriverSettlementByIdDocument = exports.GetDriverSettlementsForDriverDocument = exports.DeleteBusinessEntityDocument = exports.EditBusinessEntityDocument = exports.AddBusinessEntityDocument = exports.GetBusinessEntityDetailsByExternalIdDocument = exports.GetBusinessEntityDetailsDocument = exports.GetBusinessEntityListDocument = exports.VroomError = exports.ViolationCause = exports.TripSortCriteria = exports.TripAssetTypes = exports.TransactionType = exports.TrailerType = exports.TrailerEventType = exports.TrailerCompartmentUnit = exports.SupplierContractConditionTarget = exports.SubscriptionStatus = exports.SubscriptionEntitlementAvailability = exports.StorageFacilityUnit = exports.Status = exports.ShipmentSortCriteria = exports.ShipmentReferenceNumberType = exports.ShipmentLocationType = exports.ShipmentEventType = exports.ShipmentConstraintType = exports.ShipmentCommodityType = exports.S3_Operation = exports.RouteProfile = exports.Role = exports.ReportType = exports.ReasonCodeType = exports.RateTableType = exports.RateTableEntityType = exports.QuantityType = exports.PaymentPeriodUnit = exports.PaymentMethod = exports.OrderByDirection = void 0;
|
|
8
|
+
exports.getSdk = exports.GetOrgUserByIdDocument = exports.GetTripDetailsDocument = exports.ListTripsDocument = exports.EditTransactionDocument = exports.AddTransactionDocument = exports.DeleteTransactionDocument = exports.GetTransactionByIdDocument = exports.GetTransactionListDocument = exports.PersistTractorPositionsDocument = exports.EditTractorDocument = exports.AddTractorDocument = exports.GetTractorBySerialNumberDocument = exports.GetTractorByPlateNumberDocument = exports.GetTractorByLicenseNumberDocument = exports.GetTractorByEldIdDocument = exports.GetReceiverReadingsDocument = exports.AddStorageFacilityReadingDocument = void 0;
|
|
9
9
|
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
10
10
|
var AssetStatus;
|
|
11
11
|
(function (AssetStatus) {
|
|
@@ -37,6 +37,7 @@ var BillingRateParameterType;
|
|
|
37
37
|
BillingRateParameterType["FreeLocationCount"] = "FREE_LOCATION_COUNT";
|
|
38
38
|
BillingRateParameterType["GoodProfile"] = "GOOD_PROFILE";
|
|
39
39
|
BillingRateParameterType["LocationType"] = "LOCATION_TYPE";
|
|
40
|
+
BillingRateParameterType["QuantityType"] = "QUANTITY_TYPE";
|
|
40
41
|
})(BillingRateParameterType = exports.BillingRateParameterType || (exports.BillingRateParameterType = {}));
|
|
41
42
|
var BillingRuleConditionOperator;
|
|
42
43
|
(function (BillingRuleConditionOperator) {
|
|
@@ -71,6 +72,7 @@ var BillingRuleConditionTarget;
|
|
|
71
72
|
var BillingRuleType;
|
|
72
73
|
(function (BillingRuleType) {
|
|
73
74
|
BillingRuleType["Accessorial"] = "ACCESSORIAL";
|
|
75
|
+
BillingRuleType["OrderCancellation"] = "ORDER_CANCELLATION";
|
|
74
76
|
BillingRuleType["Primary"] = "PRIMARY";
|
|
75
77
|
BillingRuleType["Tax"] = "TAX";
|
|
76
78
|
})(BillingRuleType = exports.BillingRuleType || (exports.BillingRuleType = {}));
|
|
@@ -94,6 +96,7 @@ var ChargeType;
|
|
|
94
96
|
(function (ChargeType) {
|
|
95
97
|
ChargeType["Accessorial"] = "ACCESSORIAL";
|
|
96
98
|
ChargeType["Linehaul"] = "LINEHAUL";
|
|
99
|
+
ChargeType["OrderCancellation"] = "ORDER_CANCELLATION";
|
|
97
100
|
ChargeType["Tax"] = "TAX";
|
|
98
101
|
})(ChargeType = exports.ChargeType || (exports.ChargeType = {}));
|
|
99
102
|
var Currency;
|
|
@@ -162,6 +165,20 @@ var DeductionType;
|
|
|
162
165
|
DeductionType["Bonus"] = "BONUS";
|
|
163
166
|
DeductionType["Deduction"] = "DEDUCTION";
|
|
164
167
|
})(DeductionType = exports.DeductionType || (exports.DeductionType = {}));
|
|
168
|
+
/** Types of documents that can be required by customers */
|
|
169
|
+
var DocumentType;
|
|
170
|
+
(function (DocumentType) {
|
|
171
|
+
DocumentType["CustomsForm"] = "CUSTOMS_FORM";
|
|
172
|
+
DocumentType["DeliveryBol"] = "DELIVERY_BOL";
|
|
173
|
+
DocumentType["DeliveryReceipt"] = "DELIVERY_RECEIPT";
|
|
174
|
+
DocumentType["Invoice"] = "INVOICE";
|
|
175
|
+
DocumentType["Other"] = "OTHER";
|
|
176
|
+
DocumentType["PackingList"] = "PACKING_LIST";
|
|
177
|
+
DocumentType["PickupBol"] = "PICKUP_BOL";
|
|
178
|
+
DocumentType["ProofOfDelivery"] = "PROOF_OF_DELIVERY";
|
|
179
|
+
DocumentType["Ratecon"] = "RATECON";
|
|
180
|
+
DocumentType["WeightTicket"] = "WEIGHT_TICKET";
|
|
181
|
+
})(DocumentType = exports.DocumentType || (exports.DocumentType = {}));
|
|
165
182
|
var DriverDeductionMethod;
|
|
166
183
|
(function (DriverDeductionMethod) {
|
|
167
184
|
DriverDeductionMethod["FlatFee"] = "FLAT_FEE";
|
|
@@ -239,6 +256,7 @@ var Events;
|
|
|
239
256
|
Events["OrgUserDeleted"] = "ORG_USER_DELETED";
|
|
240
257
|
Events["OrgUserRolesUpdated"] = "ORG_USER_ROLES_UPDATED";
|
|
241
258
|
Events["ShipmentAssigned"] = "SHIPMENT_ASSIGNED";
|
|
259
|
+
Events["ShipmentCancelled"] = "SHIPMENT_CANCELLED";
|
|
242
260
|
Events["ShipmentCompleted"] = "SHIPMENT_COMPLETED";
|
|
243
261
|
Events["ShipmentCreated"] = "SHIPMENT_CREATED";
|
|
244
262
|
Events["ShipmentDeleted"] = "SHIPMENT_DELETED";
|
|
@@ -247,6 +265,7 @@ var Events;
|
|
|
247
265
|
Events["ShipmentEventUpdated"] = "SHIPMENT_EVENT_UPDATED";
|
|
248
266
|
Events["ShipmentGoodPinCodeUpdated"] = "SHIPMENT_GOOD_PIN_CODE_UPDATED";
|
|
249
267
|
Events["ShipmentGoodWeightUpdated"] = "SHIPMENT_GOOD_WEIGHT_UPDATED";
|
|
268
|
+
Events["ShipmentRestored"] = "SHIPMENT_RESTORED";
|
|
250
269
|
Events["ShipmentUpdated"] = "SHIPMENT_UPDATED";
|
|
251
270
|
Events["TractorPositionUpdated"] = "TRACTOR_POSITION_UPDATED";
|
|
252
271
|
Events["TrailerPositionUpdated"] = "TRAILER_POSITION_UPDATED";
|
|
@@ -284,6 +303,8 @@ var ExtensionHookOperation;
|
|
|
284
303
|
(function (ExtensionHookOperation) {
|
|
285
304
|
ExtensionHookOperation["GetInvoiceTemplate"] = "GET_INVOICE_TEMPLATE";
|
|
286
305
|
ExtensionHookOperation["GetLoadBoardLoadDetails"] = "GET_LOAD_BOARD_LOAD_DETAILS";
|
|
306
|
+
ExtensionHookOperation["GetRoutingDirections"] = "GET_ROUTING_DIRECTIONS";
|
|
307
|
+
ExtensionHookOperation["GetRoutingDistanceMatrix"] = "GET_ROUTING_DISTANCE_MATRIX";
|
|
287
308
|
ExtensionHookOperation["SearchLoadBoard"] = "SEARCH_LOAD_BOARD";
|
|
288
309
|
ExtensionHookOperation["SendInvoice"] = "SEND_INVOICE";
|
|
289
310
|
})(ExtensionHookOperation = exports.ExtensionHookOperation || (exports.ExtensionHookOperation = {}));
|
|
@@ -361,6 +382,14 @@ var GoodUnits;
|
|
|
361
382
|
GoodUnits["Liters"] = "LITERS";
|
|
362
383
|
GoodUnits["Pounds"] = "POUNDS";
|
|
363
384
|
})(GoodUnits = exports.GoodUnits || (exports.GoodUnits = {}));
|
|
385
|
+
/** Criteria for invoice consolidation */
|
|
386
|
+
var InvoiceConsolidationCriteria;
|
|
387
|
+
(function (InvoiceConsolidationCriteria) {
|
|
388
|
+
InvoiceConsolidationCriteria["BolNumber"] = "BOL_NUMBER";
|
|
389
|
+
InvoiceConsolidationCriteria["Day"] = "DAY";
|
|
390
|
+
InvoiceConsolidationCriteria["PoNumber"] = "PO_NUMBER";
|
|
391
|
+
InvoiceConsolidationCriteria["Week"] = "WEEK";
|
|
392
|
+
})(InvoiceConsolidationCriteria = exports.InvoiceConsolidationCriteria || (exports.InvoiceConsolidationCriteria = {}));
|
|
364
393
|
var InvoiceStatus;
|
|
365
394
|
(function (InvoiceStatus) {
|
|
366
395
|
InvoiceStatus["Cancelled"] = "CANCELLED";
|
|
@@ -415,6 +444,7 @@ var MetricType;
|
|
|
415
444
|
})(MetricType = exports.MetricType || (exports.MetricType = {}));
|
|
416
445
|
var NoteAccessLevel;
|
|
417
446
|
(function (NoteAccessLevel) {
|
|
447
|
+
NoteAccessLevel["Carrier"] = "CARRIER";
|
|
418
448
|
NoteAccessLevel["Customer"] = "CUSTOMER";
|
|
419
449
|
NoteAccessLevel["Dispatcher"] = "DISPATCHER";
|
|
420
450
|
NoteAccessLevel["Driver"] = "DRIVER";
|
|
@@ -438,9 +468,43 @@ var PaymentPeriodUnit;
|
|
|
438
468
|
PaymentPeriodUnit["Week"] = "WEEK";
|
|
439
469
|
PaymentPeriodUnit["Year"] = "YEAR";
|
|
440
470
|
})(PaymentPeriodUnit = exports.PaymentPeriodUnit || (exports.PaymentPeriodUnit = {}));
|
|
471
|
+
var QuantityType;
|
|
472
|
+
(function (QuantityType) {
|
|
473
|
+
QuantityType["Delivered"] = "DELIVERED";
|
|
474
|
+
QuantityType["Loaded"] = "LOADED";
|
|
475
|
+
QuantityType["Ordered"] = "ORDERED";
|
|
476
|
+
})(QuantityType = exports.QuantityType || (exports.QuantityType = {}));
|
|
477
|
+
var RateTableEntityType;
|
|
478
|
+
(function (RateTableEntityType) {
|
|
479
|
+
RateTableEntityType["Customer"] = "CUSTOMER";
|
|
480
|
+
RateTableEntityType["Driver"] = "DRIVER";
|
|
481
|
+
})(RateTableEntityType = exports.RateTableEntityType || (exports.RateTableEntityType = {}));
|
|
482
|
+
var RateTableType;
|
|
483
|
+
(function (RateTableType) {
|
|
484
|
+
RateTableType["Accessorial"] = "ACCESSORIAL";
|
|
485
|
+
RateTableType["Bonus"] = "BONUS";
|
|
486
|
+
RateTableType["Deduction"] = "DEDUCTION";
|
|
487
|
+
RateTableType["OrderCancellation"] = "ORDER_CANCELLATION";
|
|
488
|
+
RateTableType["Primary"] = "PRIMARY";
|
|
489
|
+
RateTableType["Tax"] = "TAX";
|
|
490
|
+
})(RateTableType = exports.RateTableType || (exports.RateTableType = {}));
|
|
491
|
+
/** Types of reason codes for exceptional situations */
|
|
492
|
+
var ReasonCodeType;
|
|
493
|
+
(function (ReasonCodeType) {
|
|
494
|
+
ReasonCodeType["Customer"] = "CUSTOMER";
|
|
495
|
+
ReasonCodeType["Damage"] = "DAMAGE";
|
|
496
|
+
ReasonCodeType["Delay"] = "DELAY";
|
|
497
|
+
ReasonCodeType["DeliveredQuantityMismatch"] = "DELIVERED_QUANTITY_MISMATCH";
|
|
498
|
+
ReasonCodeType["LoadedQuantityMismatch"] = "LOADED_QUANTITY_MISMATCH";
|
|
499
|
+
ReasonCodeType["Mechanical"] = "MECHANICAL";
|
|
500
|
+
ReasonCodeType["Other"] = "OTHER";
|
|
501
|
+
ReasonCodeType["Traffic"] = "TRAFFIC";
|
|
502
|
+
ReasonCodeType["Weather"] = "WEATHER";
|
|
503
|
+
})(ReasonCodeType = exports.ReasonCodeType || (exports.ReasonCodeType = {}));
|
|
441
504
|
var ReportType;
|
|
442
505
|
(function (ReportType) {
|
|
443
506
|
ReportType["CustomerRevenue"] = "CUSTOMER_REVENUE";
|
|
507
|
+
ReportType["DeliveryReport"] = "DELIVERY_REPORT";
|
|
444
508
|
ReportType["DriverMileagePerTrip"] = "DRIVER_MILEAGE_PER_TRIP";
|
|
445
509
|
ReportType["RevenueByLoad"] = "REVENUE_BY_LOAD";
|
|
446
510
|
ReportType["RevenuePerDay"] = "REVENUE_PER_DAY";
|
|
@@ -509,6 +573,7 @@ var ShipmentReferenceNumberType;
|
|
|
509
573
|
(function (ShipmentReferenceNumberType) {
|
|
510
574
|
ShipmentReferenceNumberType["BillOfLadingNumber"] = "BILL_OF_LADING_NUMBER";
|
|
511
575
|
ShipmentReferenceNumberType["PurchaseOrderNumber"] = "PURCHASE_ORDER_NUMBER";
|
|
576
|
+
ShipmentReferenceNumberType["RateConNumber"] = "RATE_CON_NUMBER";
|
|
512
577
|
ShipmentReferenceNumberType["ReferenceNumber"] = "REFERENCE_NUMBER";
|
|
513
578
|
ShipmentReferenceNumberType["TicketNumber"] = "TICKET_NUMBER";
|
|
514
579
|
})(ShipmentReferenceNumberType = exports.ShipmentReferenceNumberType || (exports.ShipmentReferenceNumberType = {}));
|
|
@@ -1016,6 +1081,15 @@ exports.GetDriverByEldIdDocument = (0, graphql_tag_1.default) `
|
|
|
1016
1081
|
query getDriverByEldId($eldId: String!) {
|
|
1017
1082
|
driverByEldId(eldId: $eldId) {
|
|
1018
1083
|
_id
|
|
1084
|
+
firstname
|
|
1085
|
+
lastname
|
|
1086
|
+
phoneNumber
|
|
1087
|
+
status
|
|
1088
|
+
license {
|
|
1089
|
+
licenseNumber
|
|
1090
|
+
issuedState
|
|
1091
|
+
}
|
|
1092
|
+
eldId
|
|
1019
1093
|
}
|
|
1020
1094
|
}
|
|
1021
1095
|
`;
|
|
@@ -1023,6 +1097,15 @@ exports.GetDriverByLicenseNumberDocument = (0, graphql_tag_1.default) `
|
|
|
1023
1097
|
query getDriverByLicenseNumber($licenseNumber: String!) {
|
|
1024
1098
|
driverByLicenseNumber(licenseNumber: $licenseNumber) {
|
|
1025
1099
|
_id
|
|
1100
|
+
firstname
|
|
1101
|
+
lastname
|
|
1102
|
+
phoneNumber
|
|
1103
|
+
status
|
|
1104
|
+
license {
|
|
1105
|
+
licenseNumber
|
|
1106
|
+
issuedState
|
|
1107
|
+
}
|
|
1108
|
+
eldId
|
|
1026
1109
|
}
|
|
1027
1110
|
}
|
|
1028
1111
|
`;
|
|
@@ -1341,6 +1424,402 @@ exports.GetMyOrganizationDocument = (0, graphql_tag_1.default) `
|
|
|
1341
1424
|
}
|
|
1342
1425
|
}
|
|
1343
1426
|
`;
|
|
1427
|
+
exports.GetShipmentListDocument = (0, graphql_tag_1.default) `
|
|
1428
|
+
query getShipmentList($search: String, $sort: ShipmentSort, $skip: Int, $take: Int, $status: Status, $receiverId: String, $excludePastShipments: Boolean, $filter: JSON, $orderBy: [OrderByItem!]) {
|
|
1429
|
+
shipments(
|
|
1430
|
+
search: $search
|
|
1431
|
+
sort: $sort
|
|
1432
|
+
skip: $skip
|
|
1433
|
+
take: $take
|
|
1434
|
+
status: $status
|
|
1435
|
+
filter: $filter
|
|
1436
|
+
orderBy: $orderBy
|
|
1437
|
+
excludeRecurrentShipments: true
|
|
1438
|
+
excludeRotationShipments: true
|
|
1439
|
+
receiverId: $receiverId
|
|
1440
|
+
excludePastShipments: $excludePastShipments
|
|
1441
|
+
) {
|
|
1442
|
+
data {
|
|
1443
|
+
_id
|
|
1444
|
+
shipmentNumber
|
|
1445
|
+
purchaseOrderNumbers
|
|
1446
|
+
billOfLadingNumbers
|
|
1447
|
+
referenceNumbers
|
|
1448
|
+
ticketNumbers
|
|
1449
|
+
status
|
|
1450
|
+
trailerType
|
|
1451
|
+
additionalTrailerTypes
|
|
1452
|
+
shipmentLocations {
|
|
1453
|
+
_id
|
|
1454
|
+
locationType
|
|
1455
|
+
timeWindows {
|
|
1456
|
+
fromDate
|
|
1457
|
+
toDate
|
|
1458
|
+
}
|
|
1459
|
+
shippedGoods {
|
|
1460
|
+
_id
|
|
1461
|
+
goodProfileId
|
|
1462
|
+
label
|
|
1463
|
+
quantity
|
|
1464
|
+
unit
|
|
1465
|
+
weight
|
|
1466
|
+
supplierId
|
|
1467
|
+
}
|
|
1468
|
+
shipper {
|
|
1469
|
+
_id
|
|
1470
|
+
}
|
|
1471
|
+
}
|
|
1472
|
+
route {
|
|
1473
|
+
locations {
|
|
1474
|
+
_id
|
|
1475
|
+
locationType
|
|
1476
|
+
location {
|
|
1477
|
+
latitude
|
|
1478
|
+
longitude
|
|
1479
|
+
}
|
|
1480
|
+
name
|
|
1481
|
+
addressLabel
|
|
1482
|
+
addressTimezone
|
|
1483
|
+
shipper {
|
|
1484
|
+
_id
|
|
1485
|
+
name
|
|
1486
|
+
address {
|
|
1487
|
+
label
|
|
1488
|
+
}
|
|
1489
|
+
addressTimezone
|
|
1490
|
+
}
|
|
1491
|
+
receiver {
|
|
1492
|
+
_id
|
|
1493
|
+
name
|
|
1494
|
+
address {
|
|
1495
|
+
label
|
|
1496
|
+
}
|
|
1497
|
+
addressTimezone
|
|
1498
|
+
}
|
|
1499
|
+
timeWindows {
|
|
1500
|
+
fromDate
|
|
1501
|
+
toDate
|
|
1502
|
+
}
|
|
1503
|
+
}
|
|
1504
|
+
firstPickupTime
|
|
1505
|
+
lastDropoffTime
|
|
1506
|
+
}
|
|
1507
|
+
tripId
|
|
1508
|
+
trip {
|
|
1509
|
+
_id
|
|
1510
|
+
tripNumber
|
|
1511
|
+
driver
|
|
1512
|
+
tractor
|
|
1513
|
+
trailer
|
|
1514
|
+
driverEntity {
|
|
1515
|
+
_id
|
|
1516
|
+
firstname
|
|
1517
|
+
lastname
|
|
1518
|
+
phoneNumber
|
|
1519
|
+
status
|
|
1520
|
+
}
|
|
1521
|
+
tractorEntity {
|
|
1522
|
+
_id
|
|
1523
|
+
serialNumber
|
|
1524
|
+
licenseNumber
|
|
1525
|
+
status
|
|
1526
|
+
}
|
|
1527
|
+
trailerEntity {
|
|
1528
|
+
_id
|
|
1529
|
+
serialNumber
|
|
1530
|
+
licenseNumber
|
|
1531
|
+
status
|
|
1532
|
+
type
|
|
1533
|
+
}
|
|
1534
|
+
carrier
|
|
1535
|
+
carrierEntity {
|
|
1536
|
+
_id
|
|
1537
|
+
name
|
|
1538
|
+
contact {
|
|
1539
|
+
firstname
|
|
1540
|
+
lastname
|
|
1541
|
+
phoneNumber
|
|
1542
|
+
}
|
|
1543
|
+
status
|
|
1544
|
+
type
|
|
1545
|
+
address {
|
|
1546
|
+
label
|
|
1547
|
+
coordinates {
|
|
1548
|
+
latitude
|
|
1549
|
+
longitude
|
|
1550
|
+
}
|
|
1551
|
+
}
|
|
1552
|
+
}
|
|
1553
|
+
}
|
|
1554
|
+
isSplit
|
|
1555
|
+
isFromSplit
|
|
1556
|
+
isFromRotation
|
|
1557
|
+
parentShipment {
|
|
1558
|
+
_id
|
|
1559
|
+
}
|
|
1560
|
+
tags
|
|
1561
|
+
customFields {
|
|
1562
|
+
key
|
|
1563
|
+
value
|
|
1564
|
+
}
|
|
1565
|
+
groupIds
|
|
1566
|
+
}
|
|
1567
|
+
count
|
|
1568
|
+
}
|
|
1569
|
+
}
|
|
1570
|
+
`;
|
|
1571
|
+
exports.GetShipmentDetailsDocument = (0, graphql_tag_1.default) `
|
|
1572
|
+
query getShipmentDetails($id: String!) {
|
|
1573
|
+
shipmentById(id: $id) {
|
|
1574
|
+
_id
|
|
1575
|
+
shipmentNumber
|
|
1576
|
+
commodityType
|
|
1577
|
+
events {
|
|
1578
|
+
_id
|
|
1579
|
+
coordinates {
|
|
1580
|
+
altitude
|
|
1581
|
+
heading
|
|
1582
|
+
latitude
|
|
1583
|
+
longitude
|
|
1584
|
+
speed
|
|
1585
|
+
}
|
|
1586
|
+
createdBy
|
|
1587
|
+
date
|
|
1588
|
+
shipmentLocation
|
|
1589
|
+
type
|
|
1590
|
+
label
|
|
1591
|
+
description
|
|
1592
|
+
metadata
|
|
1593
|
+
}
|
|
1594
|
+
issues {
|
|
1595
|
+
_id
|
|
1596
|
+
type
|
|
1597
|
+
content
|
|
1598
|
+
date
|
|
1599
|
+
shipmentLocation
|
|
1600
|
+
delayAmount
|
|
1601
|
+
}
|
|
1602
|
+
constraints {
|
|
1603
|
+
type
|
|
1604
|
+
value
|
|
1605
|
+
unit
|
|
1606
|
+
}
|
|
1607
|
+
documents {
|
|
1608
|
+
_id
|
|
1609
|
+
associatedCharge
|
|
1610
|
+
accessLevel
|
|
1611
|
+
isBillable
|
|
1612
|
+
name
|
|
1613
|
+
type
|
|
1614
|
+
url
|
|
1615
|
+
shipper {
|
|
1616
|
+
_id
|
|
1617
|
+
name
|
|
1618
|
+
}
|
|
1619
|
+
receiver {
|
|
1620
|
+
_id
|
|
1621
|
+
name
|
|
1622
|
+
}
|
|
1623
|
+
}
|
|
1624
|
+
notes {
|
|
1625
|
+
_id
|
|
1626
|
+
accessLevel
|
|
1627
|
+
receiver {
|
|
1628
|
+
_id
|
|
1629
|
+
name
|
|
1630
|
+
}
|
|
1631
|
+
shipper {
|
|
1632
|
+
_id
|
|
1633
|
+
name
|
|
1634
|
+
}
|
|
1635
|
+
content
|
|
1636
|
+
}
|
|
1637
|
+
customer {
|
|
1638
|
+
_id
|
|
1639
|
+
name
|
|
1640
|
+
referenceNumberTypes
|
|
1641
|
+
address {
|
|
1642
|
+
coordinates {
|
|
1643
|
+
latitude
|
|
1644
|
+
longitude
|
|
1645
|
+
}
|
|
1646
|
+
label
|
|
1647
|
+
}
|
|
1648
|
+
contact {
|
|
1649
|
+
firstname
|
|
1650
|
+
lastname
|
|
1651
|
+
phoneNumber
|
|
1652
|
+
}
|
|
1653
|
+
name
|
|
1654
|
+
type
|
|
1655
|
+
}
|
|
1656
|
+
purchaseOrderNumbers
|
|
1657
|
+
billOfLadingNumbers
|
|
1658
|
+
referenceNumbers
|
|
1659
|
+
purchaseOrderNumbers
|
|
1660
|
+
billOfLadingNumbers
|
|
1661
|
+
referenceNumbers
|
|
1662
|
+
ticketNumbers
|
|
1663
|
+
status
|
|
1664
|
+
shipmentLocations {
|
|
1665
|
+
_id
|
|
1666
|
+
name
|
|
1667
|
+
addressLabel
|
|
1668
|
+
addressTimezone
|
|
1669
|
+
addressTimezone
|
|
1670
|
+
shipper {
|
|
1671
|
+
_id
|
|
1672
|
+
name
|
|
1673
|
+
address {
|
|
1674
|
+
coordinates {
|
|
1675
|
+
latitude
|
|
1676
|
+
latitude
|
|
1677
|
+
}
|
|
1678
|
+
label
|
|
1679
|
+
}
|
|
1680
|
+
addressTimezone
|
|
1681
|
+
}
|
|
1682
|
+
receiver {
|
|
1683
|
+
_id
|
|
1684
|
+
name
|
|
1685
|
+
address {
|
|
1686
|
+
coordinates {
|
|
1687
|
+
latitude
|
|
1688
|
+
latitude
|
|
1689
|
+
}
|
|
1690
|
+
label
|
|
1691
|
+
}
|
|
1692
|
+
addressTimezone
|
|
1693
|
+
}
|
|
1694
|
+
shippedGoods {
|
|
1695
|
+
_id
|
|
1696
|
+
quantity
|
|
1697
|
+
weight
|
|
1698
|
+
label
|
|
1699
|
+
unit
|
|
1700
|
+
goodProfileId
|
|
1701
|
+
supplierId
|
|
1702
|
+
pinCode
|
|
1703
|
+
}
|
|
1704
|
+
receivedGoods {
|
|
1705
|
+
goodId
|
|
1706
|
+
quantity
|
|
1707
|
+
goodProfileId
|
|
1708
|
+
shipperId
|
|
1709
|
+
supplierId
|
|
1710
|
+
pinCode
|
|
1711
|
+
}
|
|
1712
|
+
timeWindows {
|
|
1713
|
+
fromDate
|
|
1714
|
+
toDate
|
|
1715
|
+
}
|
|
1716
|
+
location {
|
|
1717
|
+
latitude
|
|
1718
|
+
longitude
|
|
1719
|
+
}
|
|
1720
|
+
locationType
|
|
1721
|
+
}
|
|
1722
|
+
constraints {
|
|
1723
|
+
type
|
|
1724
|
+
value
|
|
1725
|
+
unit
|
|
1726
|
+
}
|
|
1727
|
+
charges {
|
|
1728
|
+
_id
|
|
1729
|
+
total
|
|
1730
|
+
label
|
|
1731
|
+
rate
|
|
1732
|
+
unit
|
|
1733
|
+
unitType
|
|
1734
|
+
reimburseToDriver
|
|
1735
|
+
relatedTransactionId
|
|
1736
|
+
billingRule {
|
|
1737
|
+
_id
|
|
1738
|
+
label
|
|
1739
|
+
referenceNumber
|
|
1740
|
+
}
|
|
1741
|
+
document {
|
|
1742
|
+
name
|
|
1743
|
+
url
|
|
1744
|
+
}
|
|
1745
|
+
taxable
|
|
1746
|
+
}
|
|
1747
|
+
expenses {
|
|
1748
|
+
_id
|
|
1749
|
+
label
|
|
1750
|
+
rate
|
|
1751
|
+
unit
|
|
1752
|
+
unitType
|
|
1753
|
+
reimburseToDriver
|
|
1754
|
+
document {
|
|
1755
|
+
name
|
|
1756
|
+
url
|
|
1757
|
+
}
|
|
1758
|
+
customFields {
|
|
1759
|
+
key
|
|
1760
|
+
value
|
|
1761
|
+
}
|
|
1762
|
+
}
|
|
1763
|
+
route {
|
|
1764
|
+
routeDistance
|
|
1765
|
+
predictedLoadedDistance
|
|
1766
|
+
locations {
|
|
1767
|
+
_id
|
|
1768
|
+
shipper {
|
|
1769
|
+
_id
|
|
1770
|
+
}
|
|
1771
|
+
receiver {
|
|
1772
|
+
_id
|
|
1773
|
+
}
|
|
1774
|
+
timeWindows {
|
|
1775
|
+
fromDate
|
|
1776
|
+
toDate
|
|
1777
|
+
}
|
|
1778
|
+
}
|
|
1779
|
+
firstPickupTime
|
|
1780
|
+
}
|
|
1781
|
+
createdBy
|
|
1782
|
+
trailerType
|
|
1783
|
+
additionalTrailerTypes
|
|
1784
|
+
loadType
|
|
1785
|
+
tripId
|
|
1786
|
+
reasonForCancellation
|
|
1787
|
+
isSplit
|
|
1788
|
+
isFromSplit
|
|
1789
|
+
childShipmentIds
|
|
1790
|
+
recurrence {
|
|
1791
|
+
freq
|
|
1792
|
+
interval
|
|
1793
|
+
dtstart
|
|
1794
|
+
until
|
|
1795
|
+
byweekday {
|
|
1796
|
+
weekday
|
|
1797
|
+
n
|
|
1798
|
+
}
|
|
1799
|
+
count
|
|
1800
|
+
bysetpos
|
|
1801
|
+
bymonth
|
|
1802
|
+
bymonthday
|
|
1803
|
+
bynmonthday
|
|
1804
|
+
byyearday
|
|
1805
|
+
byweekno
|
|
1806
|
+
byhour
|
|
1807
|
+
byminute
|
|
1808
|
+
bysecond
|
|
1809
|
+
}
|
|
1810
|
+
dailyRotationCount
|
|
1811
|
+
parentShipment {
|
|
1812
|
+
_id
|
|
1813
|
+
}
|
|
1814
|
+
tags
|
|
1815
|
+
customFields {
|
|
1816
|
+
key
|
|
1817
|
+
value
|
|
1818
|
+
}
|
|
1819
|
+
groupIds
|
|
1820
|
+
}
|
|
1821
|
+
}
|
|
1822
|
+
`;
|
|
1344
1823
|
exports.AddStorageFacilityReadingDocument = (0, graphql_tag_1.default) `
|
|
1345
1824
|
mutation addStorageFacilityReading($newStorageFacilityReadingData: NewStorageFacilityReadingInput!) {
|
|
1346
1825
|
addStorageFacilityReading(
|
|
@@ -1556,6 +2035,193 @@ exports.ListTripsDocument = (0, graphql_tag_1.default) `
|
|
|
1556
2035
|
}
|
|
1557
2036
|
}
|
|
1558
2037
|
`;
|
|
2038
|
+
exports.GetTripDetailsDocument = (0, graphql_tag_1.default) `
|
|
2039
|
+
query getTripDetails($id: String!) {
|
|
2040
|
+
tripById(id: $id) {
|
|
2041
|
+
_id
|
|
2042
|
+
tripNumber
|
|
2043
|
+
status
|
|
2044
|
+
routeDistance
|
|
2045
|
+
totalDistance
|
|
2046
|
+
loadedDistance
|
|
2047
|
+
firstPickupTime
|
|
2048
|
+
shipmentLocations {
|
|
2049
|
+
_id
|
|
2050
|
+
name
|
|
2051
|
+
addressLabel
|
|
2052
|
+
addressTimezone
|
|
2053
|
+
location {
|
|
2054
|
+
latitude
|
|
2055
|
+
longitude
|
|
2056
|
+
}
|
|
2057
|
+
locationType
|
|
2058
|
+
shipper {
|
|
2059
|
+
_id
|
|
2060
|
+
name
|
|
2061
|
+
address {
|
|
2062
|
+
label
|
|
2063
|
+
}
|
|
2064
|
+
addressTimezone
|
|
2065
|
+
}
|
|
2066
|
+
timeWindows {
|
|
2067
|
+
fromDate
|
|
2068
|
+
toDate
|
|
2069
|
+
}
|
|
2070
|
+
receiver {
|
|
2071
|
+
_id
|
|
2072
|
+
name
|
|
2073
|
+
address {
|
|
2074
|
+
label
|
|
2075
|
+
}
|
|
2076
|
+
addressTimezone
|
|
2077
|
+
}
|
|
2078
|
+
shippedGoods {
|
|
2079
|
+
_id
|
|
2080
|
+
label
|
|
2081
|
+
quantity
|
|
2082
|
+
weight
|
|
2083
|
+
unit
|
|
2084
|
+
goodProfileId
|
|
2085
|
+
supplierId
|
|
2086
|
+
pinCode
|
|
2087
|
+
}
|
|
2088
|
+
receivedGoods {
|
|
2089
|
+
goodId
|
|
2090
|
+
quantity
|
|
2091
|
+
goodProfileId
|
|
2092
|
+
}
|
|
2093
|
+
arrivalTime
|
|
2094
|
+
waitingDuration
|
|
2095
|
+
setupDuration
|
|
2096
|
+
serviceDuration
|
|
2097
|
+
shipmentId
|
|
2098
|
+
}
|
|
2099
|
+
violations {
|
|
2100
|
+
cause
|
|
2101
|
+
duration
|
|
2102
|
+
locationId
|
|
2103
|
+
}
|
|
2104
|
+
shipments {
|
|
2105
|
+
_id
|
|
2106
|
+
isFromSplit
|
|
2107
|
+
isFromRotation
|
|
2108
|
+
parentShipment {
|
|
2109
|
+
_id
|
|
2110
|
+
}
|
|
2111
|
+
shipmentNumber
|
|
2112
|
+
referenceNumbers
|
|
2113
|
+
status
|
|
2114
|
+
charges {
|
|
2115
|
+
_id
|
|
2116
|
+
rate
|
|
2117
|
+
unit
|
|
2118
|
+
total
|
|
2119
|
+
}
|
|
2120
|
+
trailerType
|
|
2121
|
+
additionalTrailerTypes
|
|
2122
|
+
events {
|
|
2123
|
+
_id
|
|
2124
|
+
type
|
|
2125
|
+
label
|
|
2126
|
+
description
|
|
2127
|
+
date
|
|
2128
|
+
shipmentLocation
|
|
2129
|
+
coordinates {
|
|
2130
|
+
latitude
|
|
2131
|
+
longitude
|
|
2132
|
+
}
|
|
2133
|
+
metadata
|
|
2134
|
+
}
|
|
2135
|
+
customer {
|
|
2136
|
+
_id
|
|
2137
|
+
code
|
|
2138
|
+
name
|
|
2139
|
+
}
|
|
2140
|
+
route {
|
|
2141
|
+
locations {
|
|
2142
|
+
locationType
|
|
2143
|
+
shipper {
|
|
2144
|
+
_id
|
|
2145
|
+
name
|
|
2146
|
+
address {
|
|
2147
|
+
label
|
|
2148
|
+
}
|
|
2149
|
+
addressTimezone
|
|
2150
|
+
}
|
|
2151
|
+
receiver {
|
|
2152
|
+
_id
|
|
2153
|
+
name
|
|
2154
|
+
address {
|
|
2155
|
+
label
|
|
2156
|
+
}
|
|
2157
|
+
addressTimezone
|
|
2158
|
+
}
|
|
2159
|
+
timeWindows {
|
|
2160
|
+
fromDate
|
|
2161
|
+
toDate
|
|
2162
|
+
}
|
|
2163
|
+
}
|
|
2164
|
+
}
|
|
2165
|
+
}
|
|
2166
|
+
polyline
|
|
2167
|
+
trailer {
|
|
2168
|
+
_id
|
|
2169
|
+
type
|
|
2170
|
+
serialNumber
|
|
2171
|
+
}
|
|
2172
|
+
additionalTrailers {
|
|
2173
|
+
_id
|
|
2174
|
+
type
|
|
2175
|
+
serialNumber
|
|
2176
|
+
}
|
|
2177
|
+
tractor {
|
|
2178
|
+
_id
|
|
2179
|
+
serialNumber
|
|
2180
|
+
}
|
|
2181
|
+
driver {
|
|
2182
|
+
_id
|
|
2183
|
+
firstname
|
|
2184
|
+
lastname
|
|
2185
|
+
}
|
|
2186
|
+
trailerCompartmentAssignments {
|
|
2187
|
+
trailerId
|
|
2188
|
+
compartmentId
|
|
2189
|
+
commodityId
|
|
2190
|
+
quantity
|
|
2191
|
+
targetStorageFacilityId
|
|
2192
|
+
}
|
|
2193
|
+
carrier {
|
|
2194
|
+
_id
|
|
2195
|
+
name
|
|
2196
|
+
code
|
|
2197
|
+
contact {
|
|
2198
|
+
email
|
|
2199
|
+
}
|
|
2200
|
+
additionalContacts {
|
|
2201
|
+
email
|
|
2202
|
+
includeInInvoicing
|
|
2203
|
+
}
|
|
2204
|
+
}
|
|
2205
|
+
additionalTrailers {
|
|
2206
|
+
_id
|
|
2207
|
+
type
|
|
2208
|
+
serialNumber
|
|
2209
|
+
}
|
|
2210
|
+
lastTrailerLocation {
|
|
2211
|
+
latitude
|
|
2212
|
+
longitude
|
|
2213
|
+
heading
|
|
2214
|
+
speed
|
|
2215
|
+
}
|
|
2216
|
+
lastTrailerLocationDate
|
|
2217
|
+
tags
|
|
2218
|
+
customFields {
|
|
2219
|
+
key
|
|
2220
|
+
value
|
|
2221
|
+
}
|
|
2222
|
+
}
|
|
2223
|
+
}
|
|
2224
|
+
`;
|
|
1559
2225
|
exports.GetOrgUserByIdDocument = (0, graphql_tag_1.default) `
|
|
1560
2226
|
query getOrgUserById($id: String!) {
|
|
1561
2227
|
orgUserById(id: $id) {
|
|
@@ -1631,6 +2297,12 @@ function getSdk(client, withWrapper = defaultWrapper) {
|
|
|
1631
2297
|
getMyOrganization(variables, requestHeaders) {
|
|
1632
2298
|
return withWrapper((wrappedRequestHeaders) => client.request(exports.GetMyOrganizationDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getMyOrganization', 'query');
|
|
1633
2299
|
},
|
|
2300
|
+
getShipmentList(variables, requestHeaders) {
|
|
2301
|
+
return withWrapper((wrappedRequestHeaders) => client.request(exports.GetShipmentListDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getShipmentList', 'query');
|
|
2302
|
+
},
|
|
2303
|
+
getShipmentDetails(variables, requestHeaders) {
|
|
2304
|
+
return withWrapper((wrappedRequestHeaders) => client.request(exports.GetShipmentDetailsDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getShipmentDetails', 'query');
|
|
2305
|
+
},
|
|
1634
2306
|
addStorageFacilityReading(variables, requestHeaders) {
|
|
1635
2307
|
return withWrapper((wrappedRequestHeaders) => client.request(exports.AddStorageFacilityReadingDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'addStorageFacilityReading', 'mutation');
|
|
1636
2308
|
},
|
|
@@ -1676,6 +2348,9 @@ function getSdk(client, withWrapper = defaultWrapper) {
|
|
|
1676
2348
|
listTrips(variables, requestHeaders) {
|
|
1677
2349
|
return withWrapper((wrappedRequestHeaders) => client.request(exports.ListTripsDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'listTrips', 'query');
|
|
1678
2350
|
},
|
|
2351
|
+
getTripDetails(variables, requestHeaders) {
|
|
2352
|
+
return withWrapper((wrappedRequestHeaders) => client.request(exports.GetTripDetailsDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getTripDetails', 'query');
|
|
2353
|
+
},
|
|
1679
2354
|
getOrgUserById(variables, requestHeaders) {
|
|
1680
2355
|
return withWrapper((wrappedRequestHeaders) => client.request(exports.GetOrgUserByIdDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getOrgUserById', 'query');
|
|
1681
2356
|
}
|