@truetms/truetms-node 0.3.2 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/graphql/generated.js +601 -2
- 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/generated.ts +693 -0
- 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
|
@@ -4,8 +4,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.PaymentMethod = exports.OrderByDirection = exports.NoteAccessLevel = exports.MetricType = exports.MeasurementSystem = exports.MaintenanceTaskStatus = exports.MaintenanceTaskRecurrenceFrequency = exports.LoadType = exports.Language = exports.InvoicingProcess = exports.InvoiceStatus = 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.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.
|
|
8
|
-
exports.getSdk = exports.GetOrgUserByIdDocument = exports.ListTripsDocument = exports.EditTransactionDocument = exports.AddTransactionDocument = exports.DeleteTransactionDocument = exports.GetTransactionByIdDocument = exports.GetTransactionListDocument = void 0;
|
|
7
|
+
exports.GetTractorBySerialNumberDocument = exports.GetTractorByPlateNumberDocument = exports.GetTractorByLicenseNumberDocument = exports.GetTractorByEldIdDocument = exports.GetReceiverReadingsDocument = exports.AddStorageFacilityReadingDocument = 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.PaymentPeriodUnit = 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 = void 0;
|
|
9
9
|
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
10
10
|
var AssetStatus;
|
|
11
11
|
(function (AssetStatus) {
|
|
@@ -284,6 +284,8 @@ var ExtensionHookOperation;
|
|
|
284
284
|
(function (ExtensionHookOperation) {
|
|
285
285
|
ExtensionHookOperation["GetInvoiceTemplate"] = "GET_INVOICE_TEMPLATE";
|
|
286
286
|
ExtensionHookOperation["GetLoadBoardLoadDetails"] = "GET_LOAD_BOARD_LOAD_DETAILS";
|
|
287
|
+
ExtensionHookOperation["GetRoutingDirections"] = "GET_ROUTING_DIRECTIONS";
|
|
288
|
+
ExtensionHookOperation["GetRoutingDistanceMatrix"] = "GET_ROUTING_DISTANCE_MATRIX";
|
|
287
289
|
ExtensionHookOperation["SearchLoadBoard"] = "SEARCH_LOAD_BOARD";
|
|
288
290
|
ExtensionHookOperation["SendInvoice"] = "SEND_INVOICE";
|
|
289
291
|
})(ExtensionHookOperation = exports.ExtensionHookOperation || (exports.ExtensionHookOperation = {}));
|
|
@@ -457,6 +459,11 @@ var Role;
|
|
|
457
459
|
Role["Hr"] = "HR";
|
|
458
460
|
Role["Manager"] = "Manager";
|
|
459
461
|
})(Role = exports.Role || (exports.Role = {}));
|
|
462
|
+
var RouteProfile;
|
|
463
|
+
(function (RouteProfile) {
|
|
464
|
+
RouteProfile["DrivingCar"] = "DRIVING_CAR";
|
|
465
|
+
RouteProfile["DrivingHgv"] = "DRIVING_HGV";
|
|
466
|
+
})(RouteProfile = exports.RouteProfile || (exports.RouteProfile = {}));
|
|
460
467
|
var S3_Operation;
|
|
461
468
|
(function (S3_Operation) {
|
|
462
469
|
S3_Operation["GetObject"] = "getObject";
|
|
@@ -1336,6 +1343,402 @@ exports.GetMyOrganizationDocument = (0, graphql_tag_1.default) `
|
|
|
1336
1343
|
}
|
|
1337
1344
|
}
|
|
1338
1345
|
`;
|
|
1346
|
+
exports.GetShipmentListDocument = (0, graphql_tag_1.default) `
|
|
1347
|
+
query getShipmentList($search: String, $sort: ShipmentSort, $skip: Int, $take: Int, $status: Status, $receiverId: String, $excludePastShipments: Boolean, $filter: JSON, $orderBy: [OrderByItem!]) {
|
|
1348
|
+
shipments(
|
|
1349
|
+
search: $search
|
|
1350
|
+
sort: $sort
|
|
1351
|
+
skip: $skip
|
|
1352
|
+
take: $take
|
|
1353
|
+
status: $status
|
|
1354
|
+
filter: $filter
|
|
1355
|
+
orderBy: $orderBy
|
|
1356
|
+
excludeRecurrentShipments: true
|
|
1357
|
+
excludeRotationShipments: true
|
|
1358
|
+
receiverId: $receiverId
|
|
1359
|
+
excludePastShipments: $excludePastShipments
|
|
1360
|
+
) {
|
|
1361
|
+
data {
|
|
1362
|
+
_id
|
|
1363
|
+
shipmentNumber
|
|
1364
|
+
purchaseOrderNumbers
|
|
1365
|
+
billOfLadingNumbers
|
|
1366
|
+
referenceNumbers
|
|
1367
|
+
ticketNumbers
|
|
1368
|
+
status
|
|
1369
|
+
trailerType
|
|
1370
|
+
additionalTrailerTypes
|
|
1371
|
+
shipmentLocations {
|
|
1372
|
+
_id
|
|
1373
|
+
locationType
|
|
1374
|
+
timeWindows {
|
|
1375
|
+
fromDate
|
|
1376
|
+
toDate
|
|
1377
|
+
}
|
|
1378
|
+
shippedGoods {
|
|
1379
|
+
_id
|
|
1380
|
+
goodProfileId
|
|
1381
|
+
label
|
|
1382
|
+
quantity
|
|
1383
|
+
unit
|
|
1384
|
+
weight
|
|
1385
|
+
supplierId
|
|
1386
|
+
}
|
|
1387
|
+
shipper {
|
|
1388
|
+
_id
|
|
1389
|
+
}
|
|
1390
|
+
}
|
|
1391
|
+
route {
|
|
1392
|
+
locations {
|
|
1393
|
+
_id
|
|
1394
|
+
locationType
|
|
1395
|
+
location {
|
|
1396
|
+
latitude
|
|
1397
|
+
longitude
|
|
1398
|
+
}
|
|
1399
|
+
name
|
|
1400
|
+
addressLabel
|
|
1401
|
+
addressTimezone
|
|
1402
|
+
shipper {
|
|
1403
|
+
_id
|
|
1404
|
+
name
|
|
1405
|
+
address {
|
|
1406
|
+
label
|
|
1407
|
+
}
|
|
1408
|
+
addressTimezone
|
|
1409
|
+
}
|
|
1410
|
+
receiver {
|
|
1411
|
+
_id
|
|
1412
|
+
name
|
|
1413
|
+
address {
|
|
1414
|
+
label
|
|
1415
|
+
}
|
|
1416
|
+
addressTimezone
|
|
1417
|
+
}
|
|
1418
|
+
timeWindows {
|
|
1419
|
+
fromDate
|
|
1420
|
+
toDate
|
|
1421
|
+
}
|
|
1422
|
+
}
|
|
1423
|
+
firstPickupTime
|
|
1424
|
+
lastDropoffTime
|
|
1425
|
+
}
|
|
1426
|
+
tripId
|
|
1427
|
+
trip {
|
|
1428
|
+
_id
|
|
1429
|
+
tripNumber
|
|
1430
|
+
driver
|
|
1431
|
+
tractor
|
|
1432
|
+
trailer
|
|
1433
|
+
driverEntity {
|
|
1434
|
+
_id
|
|
1435
|
+
firstname
|
|
1436
|
+
lastname
|
|
1437
|
+
phoneNumber
|
|
1438
|
+
status
|
|
1439
|
+
}
|
|
1440
|
+
tractorEntity {
|
|
1441
|
+
_id
|
|
1442
|
+
serialNumber
|
|
1443
|
+
licenseNumber
|
|
1444
|
+
status
|
|
1445
|
+
}
|
|
1446
|
+
trailerEntity {
|
|
1447
|
+
_id
|
|
1448
|
+
serialNumber
|
|
1449
|
+
licenseNumber
|
|
1450
|
+
status
|
|
1451
|
+
type
|
|
1452
|
+
}
|
|
1453
|
+
carrier
|
|
1454
|
+
carrierEntity {
|
|
1455
|
+
_id
|
|
1456
|
+
name
|
|
1457
|
+
contact {
|
|
1458
|
+
firstname
|
|
1459
|
+
lastname
|
|
1460
|
+
phoneNumber
|
|
1461
|
+
}
|
|
1462
|
+
status
|
|
1463
|
+
type
|
|
1464
|
+
address {
|
|
1465
|
+
label
|
|
1466
|
+
coordinates {
|
|
1467
|
+
latitude
|
|
1468
|
+
longitude
|
|
1469
|
+
}
|
|
1470
|
+
}
|
|
1471
|
+
}
|
|
1472
|
+
}
|
|
1473
|
+
isSplit
|
|
1474
|
+
isFromSplit
|
|
1475
|
+
isFromRotation
|
|
1476
|
+
parentShipment {
|
|
1477
|
+
_id
|
|
1478
|
+
}
|
|
1479
|
+
tags
|
|
1480
|
+
customFields {
|
|
1481
|
+
key
|
|
1482
|
+
value
|
|
1483
|
+
}
|
|
1484
|
+
groupIds
|
|
1485
|
+
}
|
|
1486
|
+
count
|
|
1487
|
+
}
|
|
1488
|
+
}
|
|
1489
|
+
`;
|
|
1490
|
+
exports.GetShipmentDetailsDocument = (0, graphql_tag_1.default) `
|
|
1491
|
+
query getShipmentDetails($id: String!) {
|
|
1492
|
+
shipmentById(id: $id) {
|
|
1493
|
+
_id
|
|
1494
|
+
shipmentNumber
|
|
1495
|
+
commodityType
|
|
1496
|
+
events {
|
|
1497
|
+
_id
|
|
1498
|
+
coordinates {
|
|
1499
|
+
altitude
|
|
1500
|
+
heading
|
|
1501
|
+
latitude
|
|
1502
|
+
longitude
|
|
1503
|
+
speed
|
|
1504
|
+
}
|
|
1505
|
+
createdBy
|
|
1506
|
+
date
|
|
1507
|
+
shipmentLocation
|
|
1508
|
+
type
|
|
1509
|
+
label
|
|
1510
|
+
description
|
|
1511
|
+
metadata
|
|
1512
|
+
}
|
|
1513
|
+
issues {
|
|
1514
|
+
_id
|
|
1515
|
+
type
|
|
1516
|
+
content
|
|
1517
|
+
date
|
|
1518
|
+
shipmentLocation
|
|
1519
|
+
delayAmount
|
|
1520
|
+
}
|
|
1521
|
+
constraints {
|
|
1522
|
+
type
|
|
1523
|
+
value
|
|
1524
|
+
unit
|
|
1525
|
+
}
|
|
1526
|
+
documents {
|
|
1527
|
+
_id
|
|
1528
|
+
associatedCharge
|
|
1529
|
+
accessLevel
|
|
1530
|
+
isBillable
|
|
1531
|
+
name
|
|
1532
|
+
type
|
|
1533
|
+
url
|
|
1534
|
+
shipper {
|
|
1535
|
+
_id
|
|
1536
|
+
name
|
|
1537
|
+
}
|
|
1538
|
+
receiver {
|
|
1539
|
+
_id
|
|
1540
|
+
name
|
|
1541
|
+
}
|
|
1542
|
+
}
|
|
1543
|
+
notes {
|
|
1544
|
+
_id
|
|
1545
|
+
accessLevel
|
|
1546
|
+
receiver {
|
|
1547
|
+
_id
|
|
1548
|
+
name
|
|
1549
|
+
}
|
|
1550
|
+
shipper {
|
|
1551
|
+
_id
|
|
1552
|
+
name
|
|
1553
|
+
}
|
|
1554
|
+
content
|
|
1555
|
+
}
|
|
1556
|
+
customer {
|
|
1557
|
+
_id
|
|
1558
|
+
name
|
|
1559
|
+
referenceNumberTypes
|
|
1560
|
+
address {
|
|
1561
|
+
coordinates {
|
|
1562
|
+
latitude
|
|
1563
|
+
longitude
|
|
1564
|
+
}
|
|
1565
|
+
label
|
|
1566
|
+
}
|
|
1567
|
+
contact {
|
|
1568
|
+
firstname
|
|
1569
|
+
lastname
|
|
1570
|
+
phoneNumber
|
|
1571
|
+
}
|
|
1572
|
+
name
|
|
1573
|
+
type
|
|
1574
|
+
}
|
|
1575
|
+
purchaseOrderNumbers
|
|
1576
|
+
billOfLadingNumbers
|
|
1577
|
+
referenceNumbers
|
|
1578
|
+
purchaseOrderNumbers
|
|
1579
|
+
billOfLadingNumbers
|
|
1580
|
+
referenceNumbers
|
|
1581
|
+
ticketNumbers
|
|
1582
|
+
status
|
|
1583
|
+
shipmentLocations {
|
|
1584
|
+
_id
|
|
1585
|
+
name
|
|
1586
|
+
addressLabel
|
|
1587
|
+
addressTimezone
|
|
1588
|
+
addressTimezone
|
|
1589
|
+
shipper {
|
|
1590
|
+
_id
|
|
1591
|
+
name
|
|
1592
|
+
address {
|
|
1593
|
+
coordinates {
|
|
1594
|
+
latitude
|
|
1595
|
+
latitude
|
|
1596
|
+
}
|
|
1597
|
+
label
|
|
1598
|
+
}
|
|
1599
|
+
addressTimezone
|
|
1600
|
+
}
|
|
1601
|
+
receiver {
|
|
1602
|
+
_id
|
|
1603
|
+
name
|
|
1604
|
+
address {
|
|
1605
|
+
coordinates {
|
|
1606
|
+
latitude
|
|
1607
|
+
latitude
|
|
1608
|
+
}
|
|
1609
|
+
label
|
|
1610
|
+
}
|
|
1611
|
+
addressTimezone
|
|
1612
|
+
}
|
|
1613
|
+
shippedGoods {
|
|
1614
|
+
_id
|
|
1615
|
+
quantity
|
|
1616
|
+
weight
|
|
1617
|
+
label
|
|
1618
|
+
unit
|
|
1619
|
+
goodProfileId
|
|
1620
|
+
supplierId
|
|
1621
|
+
pinCode
|
|
1622
|
+
}
|
|
1623
|
+
receivedGoods {
|
|
1624
|
+
goodId
|
|
1625
|
+
quantity
|
|
1626
|
+
goodProfileId
|
|
1627
|
+
shipperId
|
|
1628
|
+
supplierId
|
|
1629
|
+
pinCode
|
|
1630
|
+
}
|
|
1631
|
+
timeWindows {
|
|
1632
|
+
fromDate
|
|
1633
|
+
toDate
|
|
1634
|
+
}
|
|
1635
|
+
location {
|
|
1636
|
+
latitude
|
|
1637
|
+
longitude
|
|
1638
|
+
}
|
|
1639
|
+
locationType
|
|
1640
|
+
}
|
|
1641
|
+
constraints {
|
|
1642
|
+
type
|
|
1643
|
+
value
|
|
1644
|
+
unit
|
|
1645
|
+
}
|
|
1646
|
+
charges {
|
|
1647
|
+
_id
|
|
1648
|
+
total
|
|
1649
|
+
label
|
|
1650
|
+
rate
|
|
1651
|
+
unit
|
|
1652
|
+
unitType
|
|
1653
|
+
reimburseToDriver
|
|
1654
|
+
relatedTransactionId
|
|
1655
|
+
billingRule {
|
|
1656
|
+
_id
|
|
1657
|
+
label
|
|
1658
|
+
referenceNumber
|
|
1659
|
+
}
|
|
1660
|
+
document {
|
|
1661
|
+
name
|
|
1662
|
+
url
|
|
1663
|
+
}
|
|
1664
|
+
taxable
|
|
1665
|
+
}
|
|
1666
|
+
expenses {
|
|
1667
|
+
_id
|
|
1668
|
+
label
|
|
1669
|
+
rate
|
|
1670
|
+
unit
|
|
1671
|
+
unitType
|
|
1672
|
+
reimburseToDriver
|
|
1673
|
+
document {
|
|
1674
|
+
name
|
|
1675
|
+
url
|
|
1676
|
+
}
|
|
1677
|
+
customFields {
|
|
1678
|
+
key
|
|
1679
|
+
value
|
|
1680
|
+
}
|
|
1681
|
+
}
|
|
1682
|
+
route {
|
|
1683
|
+
routeDistance
|
|
1684
|
+
predictedLoadedDistance
|
|
1685
|
+
locations {
|
|
1686
|
+
_id
|
|
1687
|
+
shipper {
|
|
1688
|
+
_id
|
|
1689
|
+
}
|
|
1690
|
+
receiver {
|
|
1691
|
+
_id
|
|
1692
|
+
}
|
|
1693
|
+
timeWindows {
|
|
1694
|
+
fromDate
|
|
1695
|
+
toDate
|
|
1696
|
+
}
|
|
1697
|
+
}
|
|
1698
|
+
firstPickupTime
|
|
1699
|
+
}
|
|
1700
|
+
createdBy
|
|
1701
|
+
trailerType
|
|
1702
|
+
additionalTrailerTypes
|
|
1703
|
+
loadType
|
|
1704
|
+
tripId
|
|
1705
|
+
reasonForCancellation
|
|
1706
|
+
isSplit
|
|
1707
|
+
isFromSplit
|
|
1708
|
+
childShipmentIds
|
|
1709
|
+
recurrence {
|
|
1710
|
+
freq
|
|
1711
|
+
interval
|
|
1712
|
+
dtstart
|
|
1713
|
+
until
|
|
1714
|
+
byweekday {
|
|
1715
|
+
weekday
|
|
1716
|
+
n
|
|
1717
|
+
}
|
|
1718
|
+
count
|
|
1719
|
+
bysetpos
|
|
1720
|
+
bymonth
|
|
1721
|
+
bymonthday
|
|
1722
|
+
bynmonthday
|
|
1723
|
+
byyearday
|
|
1724
|
+
byweekno
|
|
1725
|
+
byhour
|
|
1726
|
+
byminute
|
|
1727
|
+
bysecond
|
|
1728
|
+
}
|
|
1729
|
+
dailyRotationCount
|
|
1730
|
+
parentShipment {
|
|
1731
|
+
_id
|
|
1732
|
+
}
|
|
1733
|
+
tags
|
|
1734
|
+
customFields {
|
|
1735
|
+
key
|
|
1736
|
+
value
|
|
1737
|
+
}
|
|
1738
|
+
groupIds
|
|
1739
|
+
}
|
|
1740
|
+
}
|
|
1741
|
+
`;
|
|
1339
1742
|
exports.AddStorageFacilityReadingDocument = (0, graphql_tag_1.default) `
|
|
1340
1743
|
mutation addStorageFacilityReading($newStorageFacilityReadingData: NewStorageFacilityReadingInput!) {
|
|
1341
1744
|
addStorageFacilityReading(
|
|
@@ -1551,6 +1954,193 @@ exports.ListTripsDocument = (0, graphql_tag_1.default) `
|
|
|
1551
1954
|
}
|
|
1552
1955
|
}
|
|
1553
1956
|
`;
|
|
1957
|
+
exports.GetTripDetailsDocument = (0, graphql_tag_1.default) `
|
|
1958
|
+
query getTripDetails($id: String!) {
|
|
1959
|
+
tripById(id: $id) {
|
|
1960
|
+
_id
|
|
1961
|
+
tripNumber
|
|
1962
|
+
status
|
|
1963
|
+
routeDistance
|
|
1964
|
+
totalDistance
|
|
1965
|
+
loadedDistance
|
|
1966
|
+
firstPickupTime
|
|
1967
|
+
shipmentLocations {
|
|
1968
|
+
_id
|
|
1969
|
+
name
|
|
1970
|
+
addressLabel
|
|
1971
|
+
addressTimezone
|
|
1972
|
+
location {
|
|
1973
|
+
latitude
|
|
1974
|
+
longitude
|
|
1975
|
+
}
|
|
1976
|
+
locationType
|
|
1977
|
+
shipper {
|
|
1978
|
+
_id
|
|
1979
|
+
name
|
|
1980
|
+
address {
|
|
1981
|
+
label
|
|
1982
|
+
}
|
|
1983
|
+
addressTimezone
|
|
1984
|
+
}
|
|
1985
|
+
timeWindows {
|
|
1986
|
+
fromDate
|
|
1987
|
+
toDate
|
|
1988
|
+
}
|
|
1989
|
+
receiver {
|
|
1990
|
+
_id
|
|
1991
|
+
name
|
|
1992
|
+
address {
|
|
1993
|
+
label
|
|
1994
|
+
}
|
|
1995
|
+
addressTimezone
|
|
1996
|
+
}
|
|
1997
|
+
shippedGoods {
|
|
1998
|
+
_id
|
|
1999
|
+
label
|
|
2000
|
+
quantity
|
|
2001
|
+
weight
|
|
2002
|
+
unit
|
|
2003
|
+
goodProfileId
|
|
2004
|
+
supplierId
|
|
2005
|
+
pinCode
|
|
2006
|
+
}
|
|
2007
|
+
receivedGoods {
|
|
2008
|
+
goodId
|
|
2009
|
+
quantity
|
|
2010
|
+
goodProfileId
|
|
2011
|
+
}
|
|
2012
|
+
arrivalTime
|
|
2013
|
+
waitingDuration
|
|
2014
|
+
setupDuration
|
|
2015
|
+
serviceDuration
|
|
2016
|
+
shipmentId
|
|
2017
|
+
}
|
|
2018
|
+
violations {
|
|
2019
|
+
cause
|
|
2020
|
+
duration
|
|
2021
|
+
locationId
|
|
2022
|
+
}
|
|
2023
|
+
shipments {
|
|
2024
|
+
_id
|
|
2025
|
+
isFromSplit
|
|
2026
|
+
isFromRotation
|
|
2027
|
+
parentShipment {
|
|
2028
|
+
_id
|
|
2029
|
+
}
|
|
2030
|
+
shipmentNumber
|
|
2031
|
+
referenceNumbers
|
|
2032
|
+
status
|
|
2033
|
+
charges {
|
|
2034
|
+
_id
|
|
2035
|
+
rate
|
|
2036
|
+
unit
|
|
2037
|
+
total
|
|
2038
|
+
}
|
|
2039
|
+
trailerType
|
|
2040
|
+
additionalTrailerTypes
|
|
2041
|
+
events {
|
|
2042
|
+
_id
|
|
2043
|
+
type
|
|
2044
|
+
label
|
|
2045
|
+
description
|
|
2046
|
+
date
|
|
2047
|
+
shipmentLocation
|
|
2048
|
+
coordinates {
|
|
2049
|
+
latitude
|
|
2050
|
+
longitude
|
|
2051
|
+
}
|
|
2052
|
+
metadata
|
|
2053
|
+
}
|
|
2054
|
+
customer {
|
|
2055
|
+
_id
|
|
2056
|
+
code
|
|
2057
|
+
name
|
|
2058
|
+
}
|
|
2059
|
+
route {
|
|
2060
|
+
locations {
|
|
2061
|
+
locationType
|
|
2062
|
+
shipper {
|
|
2063
|
+
_id
|
|
2064
|
+
name
|
|
2065
|
+
address {
|
|
2066
|
+
label
|
|
2067
|
+
}
|
|
2068
|
+
addressTimezone
|
|
2069
|
+
}
|
|
2070
|
+
receiver {
|
|
2071
|
+
_id
|
|
2072
|
+
name
|
|
2073
|
+
address {
|
|
2074
|
+
label
|
|
2075
|
+
}
|
|
2076
|
+
addressTimezone
|
|
2077
|
+
}
|
|
2078
|
+
timeWindows {
|
|
2079
|
+
fromDate
|
|
2080
|
+
toDate
|
|
2081
|
+
}
|
|
2082
|
+
}
|
|
2083
|
+
}
|
|
2084
|
+
}
|
|
2085
|
+
polyline
|
|
2086
|
+
trailer {
|
|
2087
|
+
_id
|
|
2088
|
+
type
|
|
2089
|
+
serialNumber
|
|
2090
|
+
}
|
|
2091
|
+
additionalTrailers {
|
|
2092
|
+
_id
|
|
2093
|
+
type
|
|
2094
|
+
serialNumber
|
|
2095
|
+
}
|
|
2096
|
+
tractor {
|
|
2097
|
+
_id
|
|
2098
|
+
serialNumber
|
|
2099
|
+
}
|
|
2100
|
+
driver {
|
|
2101
|
+
_id
|
|
2102
|
+
firstname
|
|
2103
|
+
lastname
|
|
2104
|
+
}
|
|
2105
|
+
trailerCompartmentAssignments {
|
|
2106
|
+
trailerId
|
|
2107
|
+
compartmentId
|
|
2108
|
+
commodityId
|
|
2109
|
+
quantity
|
|
2110
|
+
targetStorageFacilityId
|
|
2111
|
+
}
|
|
2112
|
+
carrier {
|
|
2113
|
+
_id
|
|
2114
|
+
name
|
|
2115
|
+
code
|
|
2116
|
+
contact {
|
|
2117
|
+
email
|
|
2118
|
+
}
|
|
2119
|
+
additionalContacts {
|
|
2120
|
+
email
|
|
2121
|
+
includeInInvoicing
|
|
2122
|
+
}
|
|
2123
|
+
}
|
|
2124
|
+
additionalTrailers {
|
|
2125
|
+
_id
|
|
2126
|
+
type
|
|
2127
|
+
serialNumber
|
|
2128
|
+
}
|
|
2129
|
+
lastTrailerLocation {
|
|
2130
|
+
latitude
|
|
2131
|
+
longitude
|
|
2132
|
+
heading
|
|
2133
|
+
speed
|
|
2134
|
+
}
|
|
2135
|
+
lastTrailerLocationDate
|
|
2136
|
+
tags
|
|
2137
|
+
customFields {
|
|
2138
|
+
key
|
|
2139
|
+
value
|
|
2140
|
+
}
|
|
2141
|
+
}
|
|
2142
|
+
}
|
|
2143
|
+
`;
|
|
1554
2144
|
exports.GetOrgUserByIdDocument = (0, graphql_tag_1.default) `
|
|
1555
2145
|
query getOrgUserById($id: String!) {
|
|
1556
2146
|
orgUserById(id: $id) {
|
|
@@ -1626,6 +2216,12 @@ function getSdk(client, withWrapper = defaultWrapper) {
|
|
|
1626
2216
|
getMyOrganization(variables, requestHeaders) {
|
|
1627
2217
|
return withWrapper((wrappedRequestHeaders) => client.request(exports.GetMyOrganizationDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getMyOrganization', 'query');
|
|
1628
2218
|
},
|
|
2219
|
+
getShipmentList(variables, requestHeaders) {
|
|
2220
|
+
return withWrapper((wrappedRequestHeaders) => client.request(exports.GetShipmentListDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getShipmentList', 'query');
|
|
2221
|
+
},
|
|
2222
|
+
getShipmentDetails(variables, requestHeaders) {
|
|
2223
|
+
return withWrapper((wrappedRequestHeaders) => client.request(exports.GetShipmentDetailsDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getShipmentDetails', 'query');
|
|
2224
|
+
},
|
|
1629
2225
|
addStorageFacilityReading(variables, requestHeaders) {
|
|
1630
2226
|
return withWrapper((wrappedRequestHeaders) => client.request(exports.AddStorageFacilityReadingDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'addStorageFacilityReading', 'mutation');
|
|
1631
2227
|
},
|
|
@@ -1671,6 +2267,9 @@ function getSdk(client, withWrapper = defaultWrapper) {
|
|
|
1671
2267
|
listTrips(variables, requestHeaders) {
|
|
1672
2268
|
return withWrapper((wrappedRequestHeaders) => client.request(exports.ListTripsDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'listTrips', 'query');
|
|
1673
2269
|
},
|
|
2270
|
+
getTripDetails(variables, requestHeaders) {
|
|
2271
|
+
return withWrapper((wrappedRequestHeaders) => client.request(exports.GetTripDetailsDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getTripDetails', 'query');
|
|
2272
|
+
},
|
|
1674
2273
|
getOrgUserById(variables, requestHeaders) {
|
|
1675
2274
|
return withWrapper((wrappedRequestHeaders) => client.request(exports.GetOrgUserByIdDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getOrgUserById', 'query');
|
|
1676
2275
|
}
|