@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.
@@ -101,6 +101,11 @@ export type AverageSales = {
101
101
  dayOfWeek: Scalars['Float'];
102
102
  };
103
103
 
104
+ export type AvoidPolygons = {
105
+ coordinates: Array<Array<Scalars['Float']>>;
106
+ type: Scalars['String'];
107
+ };
108
+
104
109
  export type Battery = {
105
110
  __typename?: 'Battery';
106
111
  is_charging: Scalars['Boolean'];
@@ -1607,6 +1612,8 @@ export type ExtensionHook = {
1607
1612
  export enum ExtensionHookOperation {
1608
1613
  GetInvoiceTemplate = 'GET_INVOICE_TEMPLATE',
1609
1614
  GetLoadBoardLoadDetails = 'GET_LOAD_BOARD_LOAD_DETAILS',
1615
+ GetRoutingDirections = 'GET_ROUTING_DIRECTIONS',
1616
+ GetRoutingDistanceMatrix = 'GET_ROUTING_DISTANCE_MATRIX',
1610
1617
  SearchLoadBoard = 'SEARCH_LOAD_BOARD',
1611
1618
  SendInvoice = 'SEND_INVOICE'
1612
1619
  }
@@ -1759,6 +1766,8 @@ export type ForecastedShipment = {
1759
1766
  additionalTrailerTypes?: Maybe<Array<TrailerType>>;
1760
1767
  /** Charges associated with the shipment. This is used to bill the customer */
1761
1768
  charges: Array<ShipmentCharge>;
1769
+ /** Type of commodity being shipped. This affects what trailer types can be used */
1770
+ commodityType?: Maybe<ShipmentCommodityType>;
1762
1771
  /** Constraints that must be satisfied for the shipment */
1763
1772
  constraints?: Maybe<Array<ShipmentConstraint>>;
1764
1773
  /** ID of the user who created the shipment */
@@ -5628,6 +5637,11 @@ export enum ReportType {
5628
5637
  TripSheet = 'TRIP_SHEET'
5629
5638
  }
5630
5639
 
5640
+ export type Restrictions = {
5641
+ height: Scalars['Float'];
5642
+ weight: Scalars['Float'];
5643
+ };
5644
+
5631
5645
  export enum Role {
5632
5646
  Accounting = 'Accounting',
5633
5647
  CarrierAdmin = 'CarrierAdmin',
@@ -5638,6 +5652,41 @@ export enum Role {
5638
5652
  Manager = 'Manager'
5639
5653
  }
5640
5654
 
5655
+ export type Route = {
5656
+ __typename?: 'Route';
5657
+ geometry: Scalars['String'];
5658
+ segments: Array<Segment>;
5659
+ summary: Summary;
5660
+ };
5661
+
5662
+ export enum RouteProfile {
5663
+ DrivingCar = 'DRIVING_CAR',
5664
+ DrivingHgv = 'DRIVING_HGV'
5665
+ }
5666
+
5667
+ export type RoutingDirections = {
5668
+ __typename?: 'RoutingDirections';
5669
+ routes: Array<Route>;
5670
+ };
5671
+
5672
+ export type RoutingDirectionsInput = {
5673
+ avoidPolygons?: InputMaybe<AvoidPolygons>;
5674
+ avoidables?: InputMaybe<Array<Scalars['String']>>;
5675
+ coordinates: Array<Array<Scalars['Float']>>;
5676
+ customerId: Scalars['ObjectId'];
5677
+ extraInfos?: InputMaybe<Array<Scalars['String']>>;
5678
+ profile?: InputMaybe<RouteProfile>;
5679
+ restrictions?: InputMaybe<Restrictions>;
5680
+ shipmentId: Scalars['ObjectId'];
5681
+ tripId: Scalars['ObjectId'];
5682
+ };
5683
+
5684
+ export type RoutingDistanceMatrix = {
5685
+ __typename?: 'RoutingDistanceMatrix';
5686
+ distances: Array<Array<Scalars['Float']>>;
5687
+ durations: Array<Array<Scalars['Float']>>;
5688
+ };
5689
+
5641
5690
  export enum S3_Operation {
5642
5691
  GetObject = 'getObject',
5643
5692
  PutObject = 'putObject'
@@ -5675,6 +5724,13 @@ export type SaveTripInput = {
5675
5724
  violations?: InputMaybe<Array<TripViolationInput>>;
5676
5725
  };
5677
5726
 
5727
+ export type Segment = {
5728
+ __typename?: 'Segment';
5729
+ distance: Scalars['Float'];
5730
+ duration: Scalars['Float'];
5731
+ steps: Array<Step>;
5732
+ };
5733
+
5678
5734
  export type SendRateconResult = {
5679
5735
  __typename?: 'SendRateconResult';
5680
5736
  success: Scalars['Boolean'];
@@ -6489,6 +6545,16 @@ export enum Status {
6489
6545
  WaitingForAssignment = 'WAITING_FOR_ASSIGNMENT'
6490
6546
  }
6491
6547
 
6548
+ export type Step = {
6549
+ __typename?: 'Step';
6550
+ distance: Scalars['Float'];
6551
+ duration: Scalars['Float'];
6552
+ instruction: Scalars['String'];
6553
+ name: Scalars['String'];
6554
+ type: Scalars['Float'];
6555
+ way_points: Array<Scalars['Float']>;
6556
+ };
6557
+
6492
6558
  /** Represents a storage facility at a given receiver */
6493
6559
  export type StorageFacility = {
6494
6560
  __typename?: 'StorageFacility';
@@ -6606,6 +6672,12 @@ export enum SubscriptionStatus {
6606
6672
  Unknown = 'UNKNOWN'
6607
6673
  }
6608
6674
 
6675
+ export type Summary = {
6676
+ __typename?: 'Summary';
6677
+ distance: Scalars['Float'];
6678
+ duration: Scalars['Float'];
6679
+ };
6680
+
6609
6681
  /** Supplier contract */
6610
6682
  export type SupplierContract = {
6611
6683
  __typename?: 'SupplierContract';
@@ -7616,6 +7688,28 @@ export type GetMyOrganizationQueryVariables = Exact<{ [key: string]: never; }>;
7616
7688
 
7617
7689
  export type GetMyOrganizationQuery = { __typename?: 'Query', myOrganization: { __typename?: 'Organization', id?: string | null, displayName: string, name: string, realm: string, attributes: { __typename?: 'KeycloakOrganizationAttributes', chargebeeCustomerId?: string | null, dotNumber?: string | null } } };
7618
7690
 
7691
+ export type GetShipmentListQueryVariables = Exact<{
7692
+ search?: InputMaybe<Scalars['String']>;
7693
+ sort?: InputMaybe<ShipmentSort>;
7694
+ skip?: InputMaybe<Scalars['Int']>;
7695
+ take?: InputMaybe<Scalars['Int']>;
7696
+ status?: InputMaybe<Status>;
7697
+ receiverId?: InputMaybe<Scalars['String']>;
7698
+ excludePastShipments?: InputMaybe<Scalars['Boolean']>;
7699
+ filter?: InputMaybe<Scalars['JSON']>;
7700
+ orderBy?: InputMaybe<Array<OrderByItem> | OrderByItem>;
7701
+ }>;
7702
+
7703
+
7704
+ export type GetShipmentListQuery = { __typename?: 'Query', shipments: { __typename?: 'ShipmentPaginatedResult', count: number, data: Array<{ __typename?: 'Shipment', _id: string, shipmentNumber: string, purchaseOrderNumbers?: Array<string> | null, billOfLadingNumbers?: Array<string> | null, referenceNumbers?: Array<string> | null, ticketNumbers?: Array<string> | null, status: Status, trailerType: TrailerType, additionalTrailerTypes?: Array<TrailerType> | null, tripId?: string | null, isSplit?: boolean | null, isFromSplit?: boolean | null, isFromRotation?: boolean | null, tags?: Array<string> | null, groupIds?: Array<any> | null, shipmentLocations: Array<{ __typename?: 'ShipmentLocation', _id: string, locationType: ShipmentLocationType, timeWindows: Array<{ __typename?: 'DateTimeWindow', fromDate: any, toDate: any }>, shippedGoods?: Array<{ __typename?: 'Good', _id: string, goodProfileId?: any | null, label: string, quantity: number, unit?: GoodUnits | null, weight?: number | null, supplierId?: any | null }> | null, shipper?: { __typename?: 'BusinessEntity', _id: string } | null }>, route?: { __typename?: 'ShipmentRoute', firstPickupTime: any, lastDropoffTime: any, locations?: Array<{ __typename?: 'TripShipmentLocation', _id: string, locationType: ShipmentLocationType, name?: string | null, addressLabel?: string | null, addressTimezone?: string | null, location: { __typename?: 'Coordinates', latitude: number, longitude: number }, shipper?: { __typename?: 'BusinessEntity', _id: string, name: string, addressTimezone?: string | null, address: { __typename?: 'Address', label: string } } | null, receiver?: { __typename?: 'BusinessEntity', _id: string, name: string, addressTimezone?: string | null, address: { __typename?: 'Address', label: string } } | null, timeWindows: Array<{ __typename?: 'DateTimeWindow', fromDate: any, toDate: any }> }> | null } | null, trip?: { __typename?: 'ShipmentTrip', _id: string, tripNumber?: string | null, driver?: string | null, tractor?: string | null, trailer?: string | null, carrier?: string | null, driverEntity?: { __typename?: 'Driver', _id: string, firstname: string, lastname: string, phoneNumber?: string | null, status: AssetStatus } | null, tractorEntity?: { __typename?: 'Tractor', _id: string, serialNumber: string, licenseNumber?: string | null, status: AssetStatus } | null, trailerEntity?: { __typename?: 'Trailer', _id: string, serialNumber: string, licenseNumber?: string | null, status: AssetStatus, type: TrailerType } | null, carrierEntity?: { __typename?: 'Carrier', _id: string, name: string, status: AssetStatus, type: BusinessEntityType, contact: { __typename?: 'Contact', firstname: string, lastname: string, phoneNumber: string }, address: { __typename?: 'Address', label: string, coordinates: { __typename?: 'Coordinates', latitude: number, longitude: number } } } | null } | null, parentShipment?: { __typename?: 'Shipment', _id: string } | null, customFields?: Array<{ __typename?: 'CustomField', key: string, value?: any | null }> | null }> } };
7705
+
7706
+ export type GetShipmentDetailsQueryVariables = Exact<{
7707
+ id: Scalars['String'];
7708
+ }>;
7709
+
7710
+
7711
+ export type GetShipmentDetailsQuery = { __typename?: 'Query', shipmentById: { __typename?: 'Shipment', _id: string, shipmentNumber: string, commodityType?: ShipmentCommodityType | null, purchaseOrderNumbers?: Array<string> | null, billOfLadingNumbers?: Array<string> | null, referenceNumbers?: Array<string> | null, ticketNumbers?: Array<string> | null, status: Status, createdBy: string, trailerType: TrailerType, additionalTrailerTypes?: Array<TrailerType> | null, loadType: LoadType, tripId?: string | null, reasonForCancellation?: string | null, isSplit?: boolean | null, isFromSplit?: boolean | null, childShipmentIds?: Array<string> | null, dailyRotationCount?: number | null, tags?: Array<string> | null, groupIds?: Array<any> | null, events?: Array<{ __typename?: 'ShipmentEvent', _id: string, createdBy: string, date: any, shipmentLocation?: string | null, type: ShipmentEventType, label?: string | null, description?: string | null, metadata?: any | null, coordinates?: { __typename?: 'Coordinates', altitude?: number | null, heading?: number | null, latitude: number, longitude: number, speed?: number | null } | null }> | null, issues?: Array<{ __typename?: 'ShipmentIssue', _id: string, type: string, content: string, date: any, shipmentLocation?: string | null, delayAmount?: number | null }> | null, constraints?: Array<{ __typename?: 'ShipmentConstraint', type: ShipmentConstraintType, value: string, unit?: string | null }> | null, documents?: Array<{ __typename?: 'ShipmentDocument', _id: string, associatedCharge?: string | null, accessLevel: Array<NoteAccessLevel>, isBillable: boolean, name: string, type: string, url: string, shipper?: { __typename?: 'BusinessEntity', _id: string, name: string } | null, receiver?: { __typename?: 'BusinessEntity', _id: string, name: string } | null }> | null, notes?: Array<{ __typename?: 'ShipmentNote', _id: string, accessLevel: Array<NoteAccessLevel>, content: string, receiver?: { __typename?: 'BusinessEntity', _id: string, name: string } | null, shipper?: { __typename?: 'BusinessEntity', _id: string, name: string } | null }> | null, customer: { __typename?: 'BusinessEntity', _id: string, name: string, referenceNumberTypes?: Array<ShipmentReferenceNumberType> | null, type: BusinessEntityType, address: { __typename?: 'Address', label: string, coordinates: { __typename?: 'Coordinates', latitude: number, longitude: number } }, contact: { __typename?: 'Contact', firstname: string, lastname: string, phoneNumber: string } }, shipmentLocations: Array<{ __typename?: 'ShipmentLocation', _id: string, name?: string | null, addressLabel?: string | null, addressTimezone?: string | null, locationType: ShipmentLocationType, shipper?: { __typename?: 'BusinessEntity', _id: string, name: string, addressTimezone?: string | null, address: { __typename?: 'Address', label: string, coordinates: { __typename?: 'Coordinates', latitude: number } } } | null, receiver?: { __typename?: 'BusinessEntity', _id: string, name: string, addressTimezone?: string | null, address: { __typename?: 'Address', label: string, coordinates: { __typename?: 'Coordinates', latitude: number } } } | null, shippedGoods?: Array<{ __typename?: 'Good', _id: string, quantity: number, weight?: number | null, label: string, unit?: GoodUnits | null, goodProfileId?: any | null, supplierId?: any | null, pinCode?: string | null }> | null, receivedGoods?: Array<{ __typename?: 'GoodDistribution', goodId: string, quantity?: number | null, goodProfileId?: any | null, shipperId?: any | null, supplierId?: any | null, pinCode?: string | null }> | null, timeWindows: Array<{ __typename?: 'DateTimeWindow', fromDate: any, toDate: any }>, location: { __typename?: 'Coordinates', latitude: number, longitude: number } }>, charges: Array<{ __typename?: 'ShipmentCharge', _id: string, total: number, label: string, rate: number, unit: number, unitType: string, reimburseToDriver?: boolean | null, relatedTransactionId?: any | null, taxable?: boolean | null, billingRule?: { __typename?: 'BillingRule', _id: string, label?: string | null, referenceNumber?: string | null } | null, document?: { __typename?: 'TransactionDocument', name: string, url: string } | null }>, expenses?: Array<{ __typename?: 'Transaction', _id: string, label: string, rate: number, unit: number, unitType: string, reimburseToDriver?: boolean | null, document?: { __typename?: 'TransactionDocument', name: string, url: string } | null, customFields?: Array<{ __typename?: 'CustomField', key: string, value?: any | null }> | null }> | null, route?: { __typename?: 'ShipmentRoute', routeDistance: number, predictedLoadedDistance?: number | null, firstPickupTime: any, locations?: Array<{ __typename?: 'TripShipmentLocation', _id: string, shipper?: { __typename?: 'BusinessEntity', _id: string } | null, receiver?: { __typename?: 'BusinessEntity', _id: string } | null, timeWindows: Array<{ __typename?: 'DateTimeWindow', fromDate: any, toDate: any }> }> | null } | null, recurrence?: { __typename?: 'ShipmentRecurrence', freq: Frequency, interval: number, dtstart: any, until: any, count?: number | null, bysetpos?: Array<number> | null, bymonth?: Array<number> | null, bymonthday?: Array<number> | null, bynmonthday?: Array<number> | null, byyearday?: Array<number> | null, byweekno?: Array<number> | null, byhour?: Array<number> | null, byminute?: Array<number> | null, bysecond?: Array<number> | null, byweekday?: Array<{ __typename?: 'ShipmentRecurrenceWeekday', weekday: number, n?: number | null }> | null } | null, parentShipment?: { __typename?: 'Shipment', _id: string } | null, customFields?: Array<{ __typename?: 'CustomField', key: string, value?: any | null }> | null } };
7712
+
7619
7713
  export type AddStorageFacilityReadingMutationVariables = Exact<{
7620
7714
  newStorageFacilityReadingData: NewStorageFacilityReadingInput;
7621
7715
  }>;
@@ -7732,6 +7826,13 @@ export type ListTripsQueryVariables = Exact<{
7732
7826
 
7733
7827
  export type ListTripsQuery = { __typename?: 'Query', trips: { __typename?: 'TripPaginatedResult', count: number, data: Array<{ __typename?: 'Trip', _id: string, tripNumber?: string | null, status: Status, firstPickupTime?: any | null, lastDropoffTime?: any | null, tags?: Array<string> | null, shipments: Array<{ __typename?: 'Shipment', _id: string, shipmentNumber: string, referenceNumbers?: Array<string> | null, isFromSplit?: boolean | null, isFromRotation?: boolean | null, parentShipment?: { __typename?: 'Shipment', _id: string } | null }>, shipmentLocations: Array<{ __typename?: 'TripShipmentLocation', _id: string, name?: string | null, addressLabel?: string | null, addressTimezone?: string | null, locationType: ShipmentLocationType, arrivalTime: any, waitingDuration: number, setupDuration: number, serviceDuration: number, location: { __typename?: 'Coordinates', latitude: number, longitude: number }, shipper?: { __typename?: 'BusinessEntity', _id: string, name: string, addressTimezone?: string | null, address: { __typename?: 'Address', label: string } } | null, receiver?: { __typename?: 'BusinessEntity', _id: string, name: string, addressTimezone?: string | null, address: { __typename?: 'Address', label: string } } | null, timeWindows: Array<{ __typename?: 'DateTimeWindow', fromDate: any, toDate: any }> }>, trailer?: { __typename?: 'Trailer', _id: string, type: TrailerType, serialNumber: string } | null, tractor?: { __typename?: 'Tractor', _id: string, serialNumber: string } | null, driver?: { __typename?: 'Driver', _id: string, firstname: string, lastname: string } | null, carrier?: { __typename?: 'BusinessEntity', _id: string, name: string, code?: string | null } | null, customFields?: Array<{ __typename?: 'CustomField', key: string, value?: any | null }> | null }> } };
7734
7828
 
7829
+ export type GetTripDetailsQueryVariables = Exact<{
7830
+ id: Scalars['String'];
7831
+ }>;
7832
+
7833
+
7834
+ export type GetTripDetailsQuery = { __typename?: 'Query', tripById?: { __typename?: 'Trip', _id: string, tripNumber?: string | null, status: Status, routeDistance: number, totalDistance?: number | null, loadedDistance?: number | null, firstPickupTime?: any | null, polyline: string, lastTrailerLocationDate?: any | null, tags?: Array<string> | null, shipmentLocations: Array<{ __typename?: 'TripShipmentLocation', _id: string, name?: string | null, addressLabel?: string | null, addressTimezone?: string | null, locationType: ShipmentLocationType, arrivalTime: any, waitingDuration: number, setupDuration: number, serviceDuration: number, shipmentId?: string | null, location: { __typename?: 'Coordinates', latitude: number, longitude: number }, shipper?: { __typename?: 'BusinessEntity', _id: string, name: string, addressTimezone?: string | null, address: { __typename?: 'Address', label: string } } | null, timeWindows: Array<{ __typename?: 'DateTimeWindow', fromDate: any, toDate: any }>, receiver?: { __typename?: 'BusinessEntity', _id: string, name: string, addressTimezone?: string | null, address: { __typename?: 'Address', label: string } } | null, shippedGoods?: Array<{ __typename?: 'Good', _id: string, label: string, quantity: number, weight?: number | null, unit?: GoodUnits | null, goodProfileId?: any | null, supplierId?: any | null, pinCode?: string | null }> | null, receivedGoods?: Array<{ __typename?: 'GoodDistribution', goodId: string, quantity?: number | null, goodProfileId?: any | null }> | null }>, violations?: Array<{ __typename?: 'TripViolation', cause: ViolationCause, duration?: number | null, locationId?: string | null }> | null, shipments: Array<{ __typename?: 'Shipment', _id: string, isFromSplit?: boolean | null, isFromRotation?: boolean | null, shipmentNumber: string, referenceNumbers?: Array<string> | null, status: Status, trailerType: TrailerType, additionalTrailerTypes?: Array<TrailerType> | null, parentShipment?: { __typename?: 'Shipment', _id: string } | null, charges: Array<{ __typename?: 'ShipmentCharge', _id: string, rate: number, unit: number, total: number }>, events?: Array<{ __typename?: 'ShipmentEvent', _id: string, type: ShipmentEventType, label?: string | null, description?: string | null, date: any, shipmentLocation?: string | null, metadata?: any | null, coordinates?: { __typename?: 'Coordinates', latitude: number, longitude: number } | null }> | null, customer: { __typename?: 'BusinessEntity', _id: string, code?: string | null, name: string }, route?: { __typename?: 'ShipmentRoute', locations?: Array<{ __typename?: 'TripShipmentLocation', locationType: ShipmentLocationType, shipper?: { __typename?: 'BusinessEntity', _id: string, name: string, addressTimezone?: string | null, address: { __typename?: 'Address', label: string } } | null, receiver?: { __typename?: 'BusinessEntity', _id: string, name: string, addressTimezone?: string | null, address: { __typename?: 'Address', label: string } } | null, timeWindows: Array<{ __typename?: 'DateTimeWindow', fromDate: any, toDate: any }> }> | null } | null }>, trailer?: { __typename?: 'Trailer', _id: string, type: TrailerType, serialNumber: string } | null, additionalTrailers?: Array<{ __typename?: 'Trailer', _id: string, type: TrailerType, serialNumber: string }> | null, tractor?: { __typename?: 'Tractor', _id: string, serialNumber: string } | null, driver?: { __typename?: 'Driver', _id: string, firstname: string, lastname: string } | null, trailerCompartmentAssignments?: Array<{ __typename?: 'TrailerCompartmentAssignment', trailerId?: any | null, compartmentId: string, commodityId: string, quantity: number, targetStorageFacilityId?: string | null }> | null, carrier?: { __typename?: 'BusinessEntity', _id: string, name: string, code?: string | null, contact: { __typename?: 'Contact', email?: string | null }, additionalContacts?: Array<{ __typename?: 'Contact', email?: string | null, includeInInvoicing?: boolean | null }> | null } | null, lastTrailerLocation?: { __typename?: 'Coordinates', latitude: number, longitude: number, heading?: number | null, speed?: number | null } | null, customFields?: Array<{ __typename?: 'CustomField', key: string, value?: any | null }> | null } | null };
7835
+
7735
7836
  export type GetOrgUserByIdQueryVariables = Exact<{
7736
7837
  id: Scalars['String'];
7737
7838
  }>;
@@ -8433,6 +8534,402 @@ export const GetMyOrganizationDocument = gql`
8433
8534
  }
8434
8535
  }
8435
8536
  `;
8537
+ export const GetShipmentListDocument = gql`
8538
+ query getShipmentList($search: String, $sort: ShipmentSort, $skip: Int, $take: Int, $status: Status, $receiverId: String, $excludePastShipments: Boolean, $filter: JSON, $orderBy: [OrderByItem!]) {
8539
+ shipments(
8540
+ search: $search
8541
+ sort: $sort
8542
+ skip: $skip
8543
+ take: $take
8544
+ status: $status
8545
+ filter: $filter
8546
+ orderBy: $orderBy
8547
+ excludeRecurrentShipments: true
8548
+ excludeRotationShipments: true
8549
+ receiverId: $receiverId
8550
+ excludePastShipments: $excludePastShipments
8551
+ ) {
8552
+ data {
8553
+ _id
8554
+ shipmentNumber
8555
+ purchaseOrderNumbers
8556
+ billOfLadingNumbers
8557
+ referenceNumbers
8558
+ ticketNumbers
8559
+ status
8560
+ trailerType
8561
+ additionalTrailerTypes
8562
+ shipmentLocations {
8563
+ _id
8564
+ locationType
8565
+ timeWindows {
8566
+ fromDate
8567
+ toDate
8568
+ }
8569
+ shippedGoods {
8570
+ _id
8571
+ goodProfileId
8572
+ label
8573
+ quantity
8574
+ unit
8575
+ weight
8576
+ supplierId
8577
+ }
8578
+ shipper {
8579
+ _id
8580
+ }
8581
+ }
8582
+ route {
8583
+ locations {
8584
+ _id
8585
+ locationType
8586
+ location {
8587
+ latitude
8588
+ longitude
8589
+ }
8590
+ name
8591
+ addressLabel
8592
+ addressTimezone
8593
+ shipper {
8594
+ _id
8595
+ name
8596
+ address {
8597
+ label
8598
+ }
8599
+ addressTimezone
8600
+ }
8601
+ receiver {
8602
+ _id
8603
+ name
8604
+ address {
8605
+ label
8606
+ }
8607
+ addressTimezone
8608
+ }
8609
+ timeWindows {
8610
+ fromDate
8611
+ toDate
8612
+ }
8613
+ }
8614
+ firstPickupTime
8615
+ lastDropoffTime
8616
+ }
8617
+ tripId
8618
+ trip {
8619
+ _id
8620
+ tripNumber
8621
+ driver
8622
+ tractor
8623
+ trailer
8624
+ driverEntity {
8625
+ _id
8626
+ firstname
8627
+ lastname
8628
+ phoneNumber
8629
+ status
8630
+ }
8631
+ tractorEntity {
8632
+ _id
8633
+ serialNumber
8634
+ licenseNumber
8635
+ status
8636
+ }
8637
+ trailerEntity {
8638
+ _id
8639
+ serialNumber
8640
+ licenseNumber
8641
+ status
8642
+ type
8643
+ }
8644
+ carrier
8645
+ carrierEntity {
8646
+ _id
8647
+ name
8648
+ contact {
8649
+ firstname
8650
+ lastname
8651
+ phoneNumber
8652
+ }
8653
+ status
8654
+ type
8655
+ address {
8656
+ label
8657
+ coordinates {
8658
+ latitude
8659
+ longitude
8660
+ }
8661
+ }
8662
+ }
8663
+ }
8664
+ isSplit
8665
+ isFromSplit
8666
+ isFromRotation
8667
+ parentShipment {
8668
+ _id
8669
+ }
8670
+ tags
8671
+ customFields {
8672
+ key
8673
+ value
8674
+ }
8675
+ groupIds
8676
+ }
8677
+ count
8678
+ }
8679
+ }
8680
+ `;
8681
+ export const GetShipmentDetailsDocument = gql`
8682
+ query getShipmentDetails($id: String!) {
8683
+ shipmentById(id: $id) {
8684
+ _id
8685
+ shipmentNumber
8686
+ commodityType
8687
+ events {
8688
+ _id
8689
+ coordinates {
8690
+ altitude
8691
+ heading
8692
+ latitude
8693
+ longitude
8694
+ speed
8695
+ }
8696
+ createdBy
8697
+ date
8698
+ shipmentLocation
8699
+ type
8700
+ label
8701
+ description
8702
+ metadata
8703
+ }
8704
+ issues {
8705
+ _id
8706
+ type
8707
+ content
8708
+ date
8709
+ shipmentLocation
8710
+ delayAmount
8711
+ }
8712
+ constraints {
8713
+ type
8714
+ value
8715
+ unit
8716
+ }
8717
+ documents {
8718
+ _id
8719
+ associatedCharge
8720
+ accessLevel
8721
+ isBillable
8722
+ name
8723
+ type
8724
+ url
8725
+ shipper {
8726
+ _id
8727
+ name
8728
+ }
8729
+ receiver {
8730
+ _id
8731
+ name
8732
+ }
8733
+ }
8734
+ notes {
8735
+ _id
8736
+ accessLevel
8737
+ receiver {
8738
+ _id
8739
+ name
8740
+ }
8741
+ shipper {
8742
+ _id
8743
+ name
8744
+ }
8745
+ content
8746
+ }
8747
+ customer {
8748
+ _id
8749
+ name
8750
+ referenceNumberTypes
8751
+ address {
8752
+ coordinates {
8753
+ latitude
8754
+ longitude
8755
+ }
8756
+ label
8757
+ }
8758
+ contact {
8759
+ firstname
8760
+ lastname
8761
+ phoneNumber
8762
+ }
8763
+ name
8764
+ type
8765
+ }
8766
+ purchaseOrderNumbers
8767
+ billOfLadingNumbers
8768
+ referenceNumbers
8769
+ purchaseOrderNumbers
8770
+ billOfLadingNumbers
8771
+ referenceNumbers
8772
+ ticketNumbers
8773
+ status
8774
+ shipmentLocations {
8775
+ _id
8776
+ name
8777
+ addressLabel
8778
+ addressTimezone
8779
+ addressTimezone
8780
+ shipper {
8781
+ _id
8782
+ name
8783
+ address {
8784
+ coordinates {
8785
+ latitude
8786
+ latitude
8787
+ }
8788
+ label
8789
+ }
8790
+ addressTimezone
8791
+ }
8792
+ receiver {
8793
+ _id
8794
+ name
8795
+ address {
8796
+ coordinates {
8797
+ latitude
8798
+ latitude
8799
+ }
8800
+ label
8801
+ }
8802
+ addressTimezone
8803
+ }
8804
+ shippedGoods {
8805
+ _id
8806
+ quantity
8807
+ weight
8808
+ label
8809
+ unit
8810
+ goodProfileId
8811
+ supplierId
8812
+ pinCode
8813
+ }
8814
+ receivedGoods {
8815
+ goodId
8816
+ quantity
8817
+ goodProfileId
8818
+ shipperId
8819
+ supplierId
8820
+ pinCode
8821
+ }
8822
+ timeWindows {
8823
+ fromDate
8824
+ toDate
8825
+ }
8826
+ location {
8827
+ latitude
8828
+ longitude
8829
+ }
8830
+ locationType
8831
+ }
8832
+ constraints {
8833
+ type
8834
+ value
8835
+ unit
8836
+ }
8837
+ charges {
8838
+ _id
8839
+ total
8840
+ label
8841
+ rate
8842
+ unit
8843
+ unitType
8844
+ reimburseToDriver
8845
+ relatedTransactionId
8846
+ billingRule {
8847
+ _id
8848
+ label
8849
+ referenceNumber
8850
+ }
8851
+ document {
8852
+ name
8853
+ url
8854
+ }
8855
+ taxable
8856
+ }
8857
+ expenses {
8858
+ _id
8859
+ label
8860
+ rate
8861
+ unit
8862
+ unitType
8863
+ reimburseToDriver
8864
+ document {
8865
+ name
8866
+ url
8867
+ }
8868
+ customFields {
8869
+ key
8870
+ value
8871
+ }
8872
+ }
8873
+ route {
8874
+ routeDistance
8875
+ predictedLoadedDistance
8876
+ locations {
8877
+ _id
8878
+ shipper {
8879
+ _id
8880
+ }
8881
+ receiver {
8882
+ _id
8883
+ }
8884
+ timeWindows {
8885
+ fromDate
8886
+ toDate
8887
+ }
8888
+ }
8889
+ firstPickupTime
8890
+ }
8891
+ createdBy
8892
+ trailerType
8893
+ additionalTrailerTypes
8894
+ loadType
8895
+ tripId
8896
+ reasonForCancellation
8897
+ isSplit
8898
+ isFromSplit
8899
+ childShipmentIds
8900
+ recurrence {
8901
+ freq
8902
+ interval
8903
+ dtstart
8904
+ until
8905
+ byweekday {
8906
+ weekday
8907
+ n
8908
+ }
8909
+ count
8910
+ bysetpos
8911
+ bymonth
8912
+ bymonthday
8913
+ bynmonthday
8914
+ byyearday
8915
+ byweekno
8916
+ byhour
8917
+ byminute
8918
+ bysecond
8919
+ }
8920
+ dailyRotationCount
8921
+ parentShipment {
8922
+ _id
8923
+ }
8924
+ tags
8925
+ customFields {
8926
+ key
8927
+ value
8928
+ }
8929
+ groupIds
8930
+ }
8931
+ }
8932
+ `;
8436
8933
  export const AddStorageFacilityReadingDocument = gql`
8437
8934
  mutation addStorageFacilityReading($newStorageFacilityReadingData: NewStorageFacilityReadingInput!) {
8438
8935
  addStorageFacilityReading(
@@ -8648,6 +9145,193 @@ export const ListTripsDocument = gql`
8648
9145
  }
8649
9146
  }
8650
9147
  `;
9148
+ export const GetTripDetailsDocument = gql`
9149
+ query getTripDetails($id: String!) {
9150
+ tripById(id: $id) {
9151
+ _id
9152
+ tripNumber
9153
+ status
9154
+ routeDistance
9155
+ totalDistance
9156
+ loadedDistance
9157
+ firstPickupTime
9158
+ shipmentLocations {
9159
+ _id
9160
+ name
9161
+ addressLabel
9162
+ addressTimezone
9163
+ location {
9164
+ latitude
9165
+ longitude
9166
+ }
9167
+ locationType
9168
+ shipper {
9169
+ _id
9170
+ name
9171
+ address {
9172
+ label
9173
+ }
9174
+ addressTimezone
9175
+ }
9176
+ timeWindows {
9177
+ fromDate
9178
+ toDate
9179
+ }
9180
+ receiver {
9181
+ _id
9182
+ name
9183
+ address {
9184
+ label
9185
+ }
9186
+ addressTimezone
9187
+ }
9188
+ shippedGoods {
9189
+ _id
9190
+ label
9191
+ quantity
9192
+ weight
9193
+ unit
9194
+ goodProfileId
9195
+ supplierId
9196
+ pinCode
9197
+ }
9198
+ receivedGoods {
9199
+ goodId
9200
+ quantity
9201
+ goodProfileId
9202
+ }
9203
+ arrivalTime
9204
+ waitingDuration
9205
+ setupDuration
9206
+ serviceDuration
9207
+ shipmentId
9208
+ }
9209
+ violations {
9210
+ cause
9211
+ duration
9212
+ locationId
9213
+ }
9214
+ shipments {
9215
+ _id
9216
+ isFromSplit
9217
+ isFromRotation
9218
+ parentShipment {
9219
+ _id
9220
+ }
9221
+ shipmentNumber
9222
+ referenceNumbers
9223
+ status
9224
+ charges {
9225
+ _id
9226
+ rate
9227
+ unit
9228
+ total
9229
+ }
9230
+ trailerType
9231
+ additionalTrailerTypes
9232
+ events {
9233
+ _id
9234
+ type
9235
+ label
9236
+ description
9237
+ date
9238
+ shipmentLocation
9239
+ coordinates {
9240
+ latitude
9241
+ longitude
9242
+ }
9243
+ metadata
9244
+ }
9245
+ customer {
9246
+ _id
9247
+ code
9248
+ name
9249
+ }
9250
+ route {
9251
+ locations {
9252
+ locationType
9253
+ shipper {
9254
+ _id
9255
+ name
9256
+ address {
9257
+ label
9258
+ }
9259
+ addressTimezone
9260
+ }
9261
+ receiver {
9262
+ _id
9263
+ name
9264
+ address {
9265
+ label
9266
+ }
9267
+ addressTimezone
9268
+ }
9269
+ timeWindows {
9270
+ fromDate
9271
+ toDate
9272
+ }
9273
+ }
9274
+ }
9275
+ }
9276
+ polyline
9277
+ trailer {
9278
+ _id
9279
+ type
9280
+ serialNumber
9281
+ }
9282
+ additionalTrailers {
9283
+ _id
9284
+ type
9285
+ serialNumber
9286
+ }
9287
+ tractor {
9288
+ _id
9289
+ serialNumber
9290
+ }
9291
+ driver {
9292
+ _id
9293
+ firstname
9294
+ lastname
9295
+ }
9296
+ trailerCompartmentAssignments {
9297
+ trailerId
9298
+ compartmentId
9299
+ commodityId
9300
+ quantity
9301
+ targetStorageFacilityId
9302
+ }
9303
+ carrier {
9304
+ _id
9305
+ name
9306
+ code
9307
+ contact {
9308
+ email
9309
+ }
9310
+ additionalContacts {
9311
+ email
9312
+ includeInInvoicing
9313
+ }
9314
+ }
9315
+ additionalTrailers {
9316
+ _id
9317
+ type
9318
+ serialNumber
9319
+ }
9320
+ lastTrailerLocation {
9321
+ latitude
9322
+ longitude
9323
+ heading
9324
+ speed
9325
+ }
9326
+ lastTrailerLocationDate
9327
+ tags
9328
+ customFields {
9329
+ key
9330
+ value
9331
+ }
9332
+ }
9333
+ }
9334
+ `;
8651
9335
  export const GetOrgUserByIdDocument = gql`
8652
9336
  query getOrgUserById($id: String!) {
8653
9337
  orgUserById(id: $id) {
@@ -8728,6 +9412,12 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper =
8728
9412
  getMyOrganization(variables?: GetMyOrganizationQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetMyOrganizationQuery> {
8729
9413
  return withWrapper((wrappedRequestHeaders) => client.request<GetMyOrganizationQuery>(GetMyOrganizationDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getMyOrganization', 'query');
8730
9414
  },
9415
+ getShipmentList(variables?: GetShipmentListQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetShipmentListQuery> {
9416
+ return withWrapper((wrappedRequestHeaders) => client.request<GetShipmentListQuery>(GetShipmentListDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getShipmentList', 'query');
9417
+ },
9418
+ getShipmentDetails(variables: GetShipmentDetailsQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetShipmentDetailsQuery> {
9419
+ return withWrapper((wrappedRequestHeaders) => client.request<GetShipmentDetailsQuery>(GetShipmentDetailsDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getShipmentDetails', 'query');
9420
+ },
8731
9421
  addStorageFacilityReading(variables: AddStorageFacilityReadingMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<AddStorageFacilityReadingMutation> {
8732
9422
  return withWrapper((wrappedRequestHeaders) => client.request<AddStorageFacilityReadingMutation>(AddStorageFacilityReadingDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'addStorageFacilityReading', 'mutation');
8733
9423
  },
@@ -8773,6 +9463,9 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper =
8773
9463
  listTrips(variables?: ListTripsQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<ListTripsQuery> {
8774
9464
  return withWrapper((wrappedRequestHeaders) => client.request<ListTripsQuery>(ListTripsDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'listTrips', 'query');
8775
9465
  },
9466
+ getTripDetails(variables: GetTripDetailsQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetTripDetailsQuery> {
9467
+ return withWrapper((wrappedRequestHeaders) => client.request<GetTripDetailsQuery>(GetTripDetailsDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getTripDetails', 'query');
9468
+ },
8776
9469
  getOrgUserById(variables: GetOrgUserByIdQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetOrgUserByIdQuery> {
8777
9470
  return withWrapper((wrappedRequestHeaders) => client.request<GetOrgUserByIdQuery>(GetOrgUserByIdDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getOrgUserById', 'query');
8778
9471
  }