@truetms/truetms-node 0.4.1 → 0.4.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 +237 -3
- package/dist/src/graphql/generated.js.map +1 -1
- package/dist/src/sdk/goodProfiles.js +21 -0
- package/dist/src/sdk/goodProfiles.js.map +1 -0
- package/dist/src/sdk/index.js +2 -0
- package/dist/src/sdk/index.js.map +1 -1
- package/dist/src/sdk/shipments.js +3 -0
- package/dist/src/sdk/shipments.js.map +1 -1
- package/package.json +1 -1
- package/src/graphql/generated.ts +532 -9
- package/src/graphql/good-profile.graphql +129 -0
- package/src/graphql/shipments.graphql +56 -0
- package/src/sdk/goodProfiles.ts +26 -0
- package/src/sdk/index.ts +3 -0
- package/src/sdk/shipments.ts +3 -0
package/src/graphql/generated.ts
CHANGED
|
@@ -234,8 +234,10 @@ export enum BillingRuleConditionTarget {
|
|
|
234
234
|
Mileage = 'MILEAGE',
|
|
235
235
|
Otherwise = 'OTHERWISE',
|
|
236
236
|
Receiver = 'RECEIVER',
|
|
237
|
+
ReceiverCity = 'RECEIVER_CITY',
|
|
237
238
|
ReceiverState = 'RECEIVER_STATE',
|
|
238
239
|
Shipper = 'SHIPPER',
|
|
240
|
+
ShipperCity = 'SHIPPER_CITY',
|
|
239
241
|
ShipperState = 'SHIPPER_STATE',
|
|
240
242
|
Time = 'TIME',
|
|
241
243
|
Trailer = 'TRAILER',
|
|
@@ -313,7 +315,7 @@ export type Broker = {
|
|
|
313
315
|
dotNumber?: Maybe<Scalars['String']>;
|
|
314
316
|
/** ID of the business entity in an external system. */
|
|
315
317
|
externalId?: Maybe<Scalars['String']>;
|
|
316
|
-
/** Federal ID for
|
|
318
|
+
/** Federal ID for business entities */
|
|
317
319
|
federalId?: Maybe<Scalars['String']>;
|
|
318
320
|
goodInventoryItems?: Maybe<Array<GoodInventoryItem>>;
|
|
319
321
|
/** IDs of the groups that this business entity belongs to */
|
|
@@ -372,6 +374,23 @@ export type BulkEditDriverInput = {
|
|
|
372
374
|
groupIds?: InputMaybe<Array<Scalars['ObjectId']>>;
|
|
373
375
|
};
|
|
374
376
|
|
|
377
|
+
export type BulkExtensionOperationResponse = {
|
|
378
|
+
__typename?: 'BulkExtensionOperationResponse';
|
|
379
|
+
failureCount: Scalars['Float'];
|
|
380
|
+
message?: Maybe<Scalars['String']>;
|
|
381
|
+
results: Array<BulkOperationRecordResult>;
|
|
382
|
+
successCount: Scalars['Float'];
|
|
383
|
+
totalProcessed: Scalars['Float'];
|
|
384
|
+
};
|
|
385
|
+
|
|
386
|
+
export type BulkOperationRecordResult = {
|
|
387
|
+
__typename?: 'BulkOperationRecordResult';
|
|
388
|
+
error?: Maybe<Scalars['String']>;
|
|
389
|
+
message?: Maybe<Scalars['String']>;
|
|
390
|
+
recordId: Scalars['String'];
|
|
391
|
+
success: Scalars['Boolean'];
|
|
392
|
+
};
|
|
393
|
+
|
|
375
394
|
export type BulkUpdateResult = {
|
|
376
395
|
__typename?: 'BulkUpdateResult';
|
|
377
396
|
acknowledged: Scalars['Boolean'];
|
|
@@ -424,7 +443,7 @@ export type BusinessEntity = {
|
|
|
424
443
|
dotNumber?: Maybe<Scalars['String']>;
|
|
425
444
|
/** ID of the business entity in an external system. */
|
|
426
445
|
externalId?: Maybe<Scalars['String']>;
|
|
427
|
-
/** Federal ID for
|
|
446
|
+
/** Federal ID for business entities */
|
|
428
447
|
federalId?: Maybe<Scalars['String']>;
|
|
429
448
|
goodInventoryItems?: Maybe<Array<GoodInventoryItem>>;
|
|
430
449
|
/** IDs of the groups that this business entity belongs to */
|
|
@@ -598,7 +617,7 @@ export type Carrier = {
|
|
|
598
617
|
dotNumber?: Maybe<Scalars['String']>;
|
|
599
618
|
/** ID of the business entity in an external system. */
|
|
600
619
|
externalId?: Maybe<Scalars['String']>;
|
|
601
|
-
/** Federal ID for
|
|
620
|
+
/** Federal ID for business entities */
|
|
602
621
|
federalId?: Maybe<Scalars['String']>;
|
|
603
622
|
goodInventoryItems?: Maybe<Array<GoodInventoryItem>>;
|
|
604
623
|
/** IDs of the groups that this business entity belongs to */
|
|
@@ -699,6 +718,7 @@ export type Contact = {
|
|
|
699
718
|
extensionNumber?: Maybe<Scalars['String']>;
|
|
700
719
|
faxNumber?: Maybe<Scalars['String']>;
|
|
701
720
|
firstname: Scalars['String'];
|
|
721
|
+
includeInDocumentSending?: Maybe<Scalars['Boolean']>;
|
|
702
722
|
includeInInvoicing?: Maybe<Scalars['Boolean']>;
|
|
703
723
|
lastname: Scalars['String'];
|
|
704
724
|
middlename?: Maybe<Scalars['String']>;
|
|
@@ -894,7 +914,7 @@ export type Customer = {
|
|
|
894
914
|
dotNumber?: Maybe<Scalars['String']>;
|
|
895
915
|
/** ID of the business entity in an external system. */
|
|
896
916
|
externalId?: Maybe<Scalars['String']>;
|
|
897
|
-
/** Federal ID for
|
|
917
|
+
/** Federal ID for business entities */
|
|
898
918
|
federalId?: Maybe<Scalars['String']>;
|
|
899
919
|
goodInventoryItems?: Maybe<Array<GoodInventoryItem>>;
|
|
900
920
|
/** IDs of the groups that this business entity belongs to */
|
|
@@ -1553,11 +1573,13 @@ export enum Events {
|
|
|
1553
1573
|
ExpenseDeleted = 'EXPENSE_DELETED',
|
|
1554
1574
|
InvoiceCreated = 'INVOICE_CREATED',
|
|
1555
1575
|
InvoiceDeleted = 'INVOICE_DELETED',
|
|
1576
|
+
InvoiceUpdated = 'INVOICE_UPDATED',
|
|
1556
1577
|
OrgUserCreated = 'ORG_USER_CREATED',
|
|
1557
1578
|
OrgUserDeleted = 'ORG_USER_DELETED',
|
|
1558
1579
|
OrgUserRolesUpdated = 'ORG_USER_ROLES_UPDATED',
|
|
1559
1580
|
ShipmentAssigned = 'SHIPMENT_ASSIGNED',
|
|
1560
1581
|
ShipmentCancelled = 'SHIPMENT_CANCELLED',
|
|
1582
|
+
ShipmentChargesUpdated = 'SHIPMENT_CHARGES_UPDATED',
|
|
1561
1583
|
ShipmentCompleted = 'SHIPMENT_COMPLETED',
|
|
1562
1584
|
ShipmentCreated = 'SHIPMENT_CREATED',
|
|
1563
1585
|
ShipmentDeleted = 'SHIPMENT_DELETED',
|
|
@@ -1624,6 +1646,8 @@ export type Extension = {
|
|
|
1624
1646
|
coverImage?: Maybe<Scalars['String']>;
|
|
1625
1647
|
description: Scalars['String'];
|
|
1626
1648
|
name: Scalars['String'];
|
|
1649
|
+
/** Required subscription feature for this extension to be available */
|
|
1650
|
+
requiredFeatureId?: Maybe<Scalars['String']>;
|
|
1627
1651
|
settings: ExtensionSettings;
|
|
1628
1652
|
websiteUrl?: Maybe<Scalars['String']>;
|
|
1629
1653
|
};
|
|
@@ -1769,6 +1793,7 @@ export type ExtensionOperation = {
|
|
|
1769
1793
|
context: ExtensionOperationContext;
|
|
1770
1794
|
description: Scalars['String'];
|
|
1771
1795
|
endpoint: Scalars['String'];
|
|
1796
|
+
filter?: Maybe<Scalars['JSON']>;
|
|
1772
1797
|
icon: Scalars['String'];
|
|
1773
1798
|
key: Scalars['String'];
|
|
1774
1799
|
name: Scalars['String'];
|
|
@@ -1777,6 +1802,8 @@ export type ExtensionOperation = {
|
|
|
1777
1802
|
export enum ExtensionOperationContext {
|
|
1778
1803
|
BusinessEntity = 'BUSINESS_ENTITY',
|
|
1779
1804
|
BusinessLocation = 'BUSINESS_LOCATION',
|
|
1805
|
+
Invoice = 'INVOICE',
|
|
1806
|
+
/** @deprecated Use INVOICE instead */
|
|
1780
1807
|
InvoiceDetails = 'INVOICE_DETAILS'
|
|
1781
1808
|
}
|
|
1782
1809
|
|
|
@@ -1793,6 +1820,7 @@ export type ExtensionOperationWithExtensionId = {
|
|
|
1793
1820
|
description: Scalars['String'];
|
|
1794
1821
|
endpoint: Scalars['String'];
|
|
1795
1822
|
extensionId: Scalars['String'];
|
|
1823
|
+
filter?: Maybe<Scalars['JSON']>;
|
|
1796
1824
|
icon: Scalars['String'];
|
|
1797
1825
|
key: Scalars['String'];
|
|
1798
1826
|
name: Scalars['String'];
|
|
@@ -1816,10 +1844,32 @@ export type ExtensionSettings = {
|
|
|
1816
1844
|
messagesEndpoint?: Maybe<Scalars['String']>;
|
|
1817
1845
|
operations: Array<ExtensionOperation>;
|
|
1818
1846
|
rootUrl: Scalars['String'];
|
|
1847
|
+
uiComponents?: Maybe<Array<ExtensionUiComponent>>;
|
|
1819
1848
|
uninstallEndpoint: Scalars['String'];
|
|
1820
1849
|
widgets: Array<ExtensionWidget>;
|
|
1821
1850
|
};
|
|
1822
1851
|
|
|
1852
|
+
/** Extension UI component */
|
|
1853
|
+
export type ExtensionUiComponent = {
|
|
1854
|
+
__typename?: 'ExtensionUIComponent';
|
|
1855
|
+
endpoint: Scalars['String'];
|
|
1856
|
+
type: Scalars['String'];
|
|
1857
|
+
};
|
|
1858
|
+
|
|
1859
|
+
export enum ExtensionUiComponentType {
|
|
1860
|
+
Map = 'MAP',
|
|
1861
|
+
MapMarker = 'MAP_MARKER',
|
|
1862
|
+
MapPopup = 'MAP_POPUP'
|
|
1863
|
+
}
|
|
1864
|
+
|
|
1865
|
+
export type ExtensionUiComponentWithExtensionInfo = {
|
|
1866
|
+
__typename?: 'ExtensionUIComponentWithExtensionInfo';
|
|
1867
|
+
endpoint: Scalars['String'];
|
|
1868
|
+
extensionId: Scalars['String'];
|
|
1869
|
+
rootUrl: Scalars['String'];
|
|
1870
|
+
type: Scalars['String'];
|
|
1871
|
+
};
|
|
1872
|
+
|
|
1823
1873
|
/** Extension widget */
|
|
1824
1874
|
export type ExtensionWidget = {
|
|
1825
1875
|
__typename?: 'ExtensionWidget';
|
|
@@ -2300,6 +2350,7 @@ export type InvoiceBatchResult = {
|
|
|
2300
2350
|
__typename?: 'InvoiceBatchResult';
|
|
2301
2351
|
invoicesUpdated: Array<Invoice>;
|
|
2302
2352
|
textError: Scalars['String'];
|
|
2353
|
+
textWarning: Scalars['String'];
|
|
2303
2354
|
};
|
|
2304
2355
|
|
|
2305
2356
|
export type InvoiceBulkUpdateInput = {
|
|
@@ -2402,6 +2453,20 @@ export type InvoiceUpdateInput = {
|
|
|
2402
2453
|
taxRate?: InputMaybe<Scalars['Float']>;
|
|
2403
2454
|
};
|
|
2404
2455
|
|
|
2456
|
+
export type InvoiceUpdatedEvent = {
|
|
2457
|
+
__typename?: 'InvoiceUpdatedEvent';
|
|
2458
|
+
name: Events;
|
|
2459
|
+
organizationId?: Maybe<Scalars['String']>;
|
|
2460
|
+
payload: InvoiceUpdatedEventPayload;
|
|
2461
|
+
};
|
|
2462
|
+
|
|
2463
|
+
export type InvoiceUpdatedEventPayload = {
|
|
2464
|
+
__typename?: 'InvoiceUpdatedEventPayload';
|
|
2465
|
+
changes?: Maybe<Invoice>;
|
|
2466
|
+
invoice: Invoice;
|
|
2467
|
+
previousInvoice: Invoice;
|
|
2468
|
+
};
|
|
2469
|
+
|
|
2405
2470
|
export enum InvoicingProcess {
|
|
2406
2471
|
LoadBased = 'LOAD_BASED',
|
|
2407
2472
|
QueueBased = 'QUEUE_BASED'
|
|
@@ -2699,6 +2764,7 @@ export type Mutation = {
|
|
|
2699
2764
|
addNotesShipment: Shipment;
|
|
2700
2765
|
addOrder: Order;
|
|
2701
2766
|
addOrgDoc: OrganizationDocument;
|
|
2767
|
+
addOrgMaintenanceTask: OrgMaintenanceTask;
|
|
2702
2768
|
addOrgUser: OrgUser;
|
|
2703
2769
|
addPaymentRule: PaymentRule;
|
|
2704
2770
|
addQualification: Qualification;
|
|
@@ -2747,11 +2813,13 @@ export type Mutation = {
|
|
|
2747
2813
|
bulkEditTractors: BulkUpdateResult;
|
|
2748
2814
|
bulkEditTrailers: BulkUpdateResult;
|
|
2749
2815
|
bulkUpdateContractForShipments: Array<Shipment>;
|
|
2816
|
+
callBulkExtensionOperation: BulkExtensionOperationResponse;
|
|
2750
2817
|
callExtensionOperation: ExtensionOperationResponse;
|
|
2751
2818
|
cancelShipmentSplit?: Maybe<Shipment>;
|
|
2752
2819
|
changeTripStartTime?: Maybe<Trip>;
|
|
2753
2820
|
checkShipmentsCombinability: Scalars['Boolean'];
|
|
2754
2821
|
completeMaintenanceTask: MaintenanceTask;
|
|
2822
|
+
completeOrgMaintenanceTask: OrgMaintenanceTask;
|
|
2755
2823
|
computeLineHaulForTrip?: Maybe<Trip>;
|
|
2756
2824
|
consolidateInvoices?: Maybe<Invoice>;
|
|
2757
2825
|
deleteAssetLinking: Scalars['Boolean'];
|
|
@@ -2775,6 +2843,7 @@ export type Mutation = {
|
|
|
2775
2843
|
deleteMaintenanceTask: Scalars['Boolean'];
|
|
2776
2844
|
deleteOrder: Scalars['Boolean'];
|
|
2777
2845
|
deleteOrgDoc: Scalars['Boolean'];
|
|
2846
|
+
deleteOrgMaintenanceTask: Scalars['Boolean'];
|
|
2778
2847
|
deleteOrgUser: Scalars['Boolean'];
|
|
2779
2848
|
deletePaymentRule: Scalars['Boolean'];
|
|
2780
2849
|
deleteQualification: Scalars['Boolean'];
|
|
@@ -2822,6 +2891,7 @@ export type Mutation = {
|
|
|
2822
2891
|
editNoteShipment: Shipment;
|
|
2823
2892
|
editOrder: Order;
|
|
2824
2893
|
editOrgDoc: Scalars['String'];
|
|
2894
|
+
editOrgMaintenanceTask: OrgMaintenanceTask;
|
|
2825
2895
|
editOrgUser: OrgUser;
|
|
2826
2896
|
editOrganization: Scalars['String'];
|
|
2827
2897
|
editPaymentRule?: Maybe<PaymentRule>;
|
|
@@ -2994,6 +3064,11 @@ export type MutationAddOrgDocArgs = {
|
|
|
2994
3064
|
};
|
|
2995
3065
|
|
|
2996
3066
|
|
|
3067
|
+
export type MutationAddOrgMaintenanceTaskArgs = {
|
|
3068
|
+
newOrgMaintenanceTaskData: OrgMaintenanceTaskInput;
|
|
3069
|
+
};
|
|
3070
|
+
|
|
3071
|
+
|
|
2997
3072
|
export type MutationAddOrgUserArgs = {
|
|
2998
3073
|
newOrgUserData: NewOrgUserInput;
|
|
2999
3074
|
};
|
|
@@ -3245,6 +3320,13 @@ export type MutationBulkUpdateContractForShipmentsArgs = {
|
|
|
3245
3320
|
};
|
|
3246
3321
|
|
|
3247
3322
|
|
|
3323
|
+
export type MutationCallBulkExtensionOperationArgs = {
|
|
3324
|
+
extensionId: Scalars['String'];
|
|
3325
|
+
operationKey: Scalars['String'];
|
|
3326
|
+
recordIds: Array<Scalars['String']>;
|
|
3327
|
+
};
|
|
3328
|
+
|
|
3329
|
+
|
|
3248
3330
|
export type MutationCallExtensionOperationArgs = {
|
|
3249
3331
|
extensionId: Scalars['String'];
|
|
3250
3332
|
operationKey: Scalars['String'];
|
|
@@ -3272,6 +3354,11 @@ export type MutationCompleteMaintenanceTaskArgs = {
|
|
|
3272
3354
|
};
|
|
3273
3355
|
|
|
3274
3356
|
|
|
3357
|
+
export type MutationCompleteOrgMaintenanceTaskArgs = {
|
|
3358
|
+
id: Scalars['ObjectId'];
|
|
3359
|
+
};
|
|
3360
|
+
|
|
3361
|
+
|
|
3275
3362
|
export type MutationComputeLineHaulForTripArgs = {
|
|
3276
3363
|
tripId: Scalars['String'];
|
|
3277
3364
|
};
|
|
@@ -3388,6 +3475,11 @@ export type MutationDeleteOrgDocArgs = {
|
|
|
3388
3475
|
};
|
|
3389
3476
|
|
|
3390
3477
|
|
|
3478
|
+
export type MutationDeleteOrgMaintenanceTaskArgs = {
|
|
3479
|
+
id: Scalars['String'];
|
|
3480
|
+
};
|
|
3481
|
+
|
|
3482
|
+
|
|
3391
3483
|
export type MutationDeleteOrgUserArgs = {
|
|
3392
3484
|
id: Scalars['String'];
|
|
3393
3485
|
};
|
|
@@ -3640,6 +3732,12 @@ export type MutationEditOrgDocArgs = {
|
|
|
3640
3732
|
};
|
|
3641
3733
|
|
|
3642
3734
|
|
|
3735
|
+
export type MutationEditOrgMaintenanceTaskArgs = {
|
|
3736
|
+
editOrgMaintenanceTaskData: OrgMaintenanceTaskUpdateInput;
|
|
3737
|
+
id: Scalars['String'];
|
|
3738
|
+
};
|
|
3739
|
+
|
|
3740
|
+
|
|
3643
3741
|
export type MutationEditOrgUserArgs = {
|
|
3644
3742
|
editOrgUserData: OrgUserUpdateInput;
|
|
3645
3743
|
id: Scalars['String'];
|
|
@@ -4137,6 +4235,7 @@ export type NewContactInput = {
|
|
|
4137
4235
|
extensionNumber?: InputMaybe<Scalars['String']>;
|
|
4138
4236
|
faxNumber?: InputMaybe<Scalars['String']>;
|
|
4139
4237
|
firstname?: InputMaybe<Scalars['String']>;
|
|
4238
|
+
includeInDocumentSending?: InputMaybe<Scalars['Boolean']>;
|
|
4140
4239
|
includeInInvoicing?: InputMaybe<Scalars['Boolean']>;
|
|
4141
4240
|
lastname?: InputMaybe<Scalars['String']>;
|
|
4142
4241
|
middlename?: InputMaybe<Scalars['String']>;
|
|
@@ -4542,6 +4641,63 @@ export type OrderUpdateInput = {
|
|
|
4542
4641
|
status?: InputMaybe<Status>;
|
|
4543
4642
|
};
|
|
4544
4643
|
|
|
4644
|
+
export type OrgMaintenanceTask = {
|
|
4645
|
+
__typename?: 'OrgMaintenanceTask';
|
|
4646
|
+
_id: Scalars['String'];
|
|
4647
|
+
alertBeforeDays?: Maybe<Scalars['Int']>;
|
|
4648
|
+
assignedTo?: Maybe<Scalars['String']>;
|
|
4649
|
+
assignedToUser?: Maybe<OrgUser>;
|
|
4650
|
+
endDate?: Maybe<Scalars['DateTime']>;
|
|
4651
|
+
label: Scalars['String'];
|
|
4652
|
+
recurrence?: Maybe<OrgMaintenanceTaskRecurrence>;
|
|
4653
|
+
startDate: Scalars['DateTime'];
|
|
4654
|
+
status?: Maybe<MaintenanceTaskStatus>;
|
|
4655
|
+
};
|
|
4656
|
+
|
|
4657
|
+
export type OrgMaintenanceTaskInput = {
|
|
4658
|
+
alertBeforeDays?: InputMaybe<Scalars['Int']>;
|
|
4659
|
+
assignedTo?: InputMaybe<Scalars['String']>;
|
|
4660
|
+
endDate?: InputMaybe<Scalars['DateTime']>;
|
|
4661
|
+
label: Scalars['String'];
|
|
4662
|
+
recurrence?: InputMaybe<OrgMaintenanceTaskRecurrenceInput>;
|
|
4663
|
+
startDate: Scalars['DateTime'];
|
|
4664
|
+
status?: InputMaybe<MaintenanceTaskStatus>;
|
|
4665
|
+
};
|
|
4666
|
+
|
|
4667
|
+
export type OrgMaintenanceTaskPaginatedResult = {
|
|
4668
|
+
__typename?: 'OrgMaintenanceTaskPaginatedResult';
|
|
4669
|
+
count: Scalars['Int'];
|
|
4670
|
+
data: Array<OrgMaintenanceTask>;
|
|
4671
|
+
};
|
|
4672
|
+
|
|
4673
|
+
export type OrgMaintenanceTaskRecurrence = {
|
|
4674
|
+
__typename?: 'OrgMaintenanceTaskRecurrence';
|
|
4675
|
+
frequency: OrgMaintenanceTaskRecurrenceFrequency;
|
|
4676
|
+
interval: Scalars['Float'];
|
|
4677
|
+
};
|
|
4678
|
+
|
|
4679
|
+
export enum OrgMaintenanceTaskRecurrenceFrequency {
|
|
4680
|
+
Daily = 'DAILY',
|
|
4681
|
+
Monthly = 'MONTHLY',
|
|
4682
|
+
Weekly = 'WEEKLY',
|
|
4683
|
+
Yearly = 'YEARLY'
|
|
4684
|
+
}
|
|
4685
|
+
|
|
4686
|
+
export type OrgMaintenanceTaskRecurrenceInput = {
|
|
4687
|
+
frequency: OrgMaintenanceTaskRecurrenceFrequency;
|
|
4688
|
+
interval: Scalars['Float'];
|
|
4689
|
+
};
|
|
4690
|
+
|
|
4691
|
+
export type OrgMaintenanceTaskUpdateInput = {
|
|
4692
|
+
alertBeforeDays?: InputMaybe<Scalars['Int']>;
|
|
4693
|
+
assignedTo?: InputMaybe<Scalars['String']>;
|
|
4694
|
+
endDate?: InputMaybe<Scalars['DateTime']>;
|
|
4695
|
+
label?: InputMaybe<Scalars['String']>;
|
|
4696
|
+
recurrence?: InputMaybe<OrgMaintenanceTaskRecurrenceInput>;
|
|
4697
|
+
startDate?: InputMaybe<Scalars['DateTime']>;
|
|
4698
|
+
status?: InputMaybe<MaintenanceTaskStatus>;
|
|
4699
|
+
};
|
|
4700
|
+
|
|
4545
4701
|
export type OrgUser = {
|
|
4546
4702
|
__typename?: 'OrgUser';
|
|
4547
4703
|
_id: Scalars['String'];
|
|
@@ -4968,6 +5124,7 @@ export type Query = {
|
|
|
4968
5124
|
extensionsCustomFields: Array<ExtensionCustomFieldWithExtensionId>;
|
|
4969
5125
|
extensionsMessages: Array<ExtensionMessage>;
|
|
4970
5126
|
extensionsOperations: Array<ExtensionOperationWithExtensionId>;
|
|
5127
|
+
extensionsUIComponents: Array<ExtensionUiComponentWithExtensionInfo>;
|
|
4971
5128
|
extensionsWidgets: Array<ExtensionWidgetWithExtensionInfo>;
|
|
4972
5129
|
forecastingNotifications: Array<ForecastingNotification>;
|
|
4973
5130
|
goodProfileById: GoodProfile;
|
|
@@ -4992,6 +5149,8 @@ export type Query = {
|
|
|
4992
5149
|
myOrganization: Organization;
|
|
4993
5150
|
orderById: Order;
|
|
4994
5151
|
orders: OrderPaginatedResult;
|
|
5152
|
+
orgMaintenanceTaskById?: Maybe<OrgMaintenanceTask>;
|
|
5153
|
+
orgMaintenanceTasks: OrgMaintenanceTaskPaginatedResult;
|
|
4995
5154
|
orgUserById: OrgUser;
|
|
4996
5155
|
orgUsers: OrgUserPaginatedResult;
|
|
4997
5156
|
organizationSettings?: Maybe<OrganizationSettings>;
|
|
@@ -5356,6 +5515,11 @@ export type QueryExtensionsOperationsArgs = {
|
|
|
5356
5515
|
};
|
|
5357
5516
|
|
|
5358
5517
|
|
|
5518
|
+
export type QueryExtensionsUiComponentsArgs = {
|
|
5519
|
+
type: ExtensionUiComponentType;
|
|
5520
|
+
};
|
|
5521
|
+
|
|
5522
|
+
|
|
5359
5523
|
export type QueryExtensionsWidgetsArgs = {
|
|
5360
5524
|
context: ExtensionWidgetContext;
|
|
5361
5525
|
};
|
|
@@ -5499,6 +5663,23 @@ export type QueryOrdersArgs = {
|
|
|
5499
5663
|
};
|
|
5500
5664
|
|
|
5501
5665
|
|
|
5666
|
+
export type QueryOrgMaintenanceTaskByIdArgs = {
|
|
5667
|
+
id: Scalars['String'];
|
|
5668
|
+
};
|
|
5669
|
+
|
|
5670
|
+
|
|
5671
|
+
export type QueryOrgMaintenanceTasksArgs = {
|
|
5672
|
+
assetId?: InputMaybe<Scalars['ObjectId']>;
|
|
5673
|
+
assetType?: InputMaybe<TripAssetTypes>;
|
|
5674
|
+
filter?: InputMaybe<Scalars['JSON']>;
|
|
5675
|
+
orderBy?: InputMaybe<Array<OrderByItem>>;
|
|
5676
|
+
search?: InputMaybe<Scalars['String']>;
|
|
5677
|
+
skip?: InputMaybe<Scalars['Int']>;
|
|
5678
|
+
status?: InputMaybe<MaintenanceTaskStatus>;
|
|
5679
|
+
take?: InputMaybe<Scalars['Int']>;
|
|
5680
|
+
};
|
|
5681
|
+
|
|
5682
|
+
|
|
5502
5683
|
export type QueryOrgUserByIdArgs = {
|
|
5503
5684
|
id: Scalars['String'];
|
|
5504
5685
|
};
|
|
@@ -6090,7 +6271,7 @@ export type Receiver = {
|
|
|
6090
6271
|
dotNumber?: Maybe<Scalars['String']>;
|
|
6091
6272
|
/** ID of the business entity in an external system. */
|
|
6092
6273
|
externalId?: Maybe<Scalars['String']>;
|
|
6093
|
-
/** Federal ID for
|
|
6274
|
+
/** Federal ID for business entities */
|
|
6094
6275
|
federalId?: Maybe<Scalars['String']>;
|
|
6095
6276
|
goodInventoryItems?: Maybe<Array<GoodInventoryItem>>;
|
|
6096
6277
|
/** IDs of the groups that this business entity belongs to */
|
|
@@ -6466,6 +6647,13 @@ export type ShipmentAssignedEventPayload = {
|
|
|
6466
6647
|
trailerId?: Maybe<Scalars['String']>;
|
|
6467
6648
|
};
|
|
6468
6649
|
|
|
6650
|
+
export type ShipmentCancelledEvent = {
|
|
6651
|
+
__typename?: 'ShipmentCancelledEvent';
|
|
6652
|
+
name: Events;
|
|
6653
|
+
organizationId?: Maybe<Scalars['String']>;
|
|
6654
|
+
payload: ShipmentCancelledEventPayload;
|
|
6655
|
+
};
|
|
6656
|
+
|
|
6469
6657
|
export type ShipmentCancelledEventPayload = {
|
|
6470
6658
|
__typename?: 'ShipmentCancelledEventPayload';
|
|
6471
6659
|
shipment: Shipment;
|
|
@@ -6539,12 +6727,37 @@ export type ShipmentChargeInput = {
|
|
|
6539
6727
|
unitType: Scalars['String'];
|
|
6540
6728
|
};
|
|
6541
6729
|
|
|
6730
|
+
export type ShipmentChargesUpdatedEvent = {
|
|
6731
|
+
__typename?: 'ShipmentChargesUpdatedEvent';
|
|
6732
|
+
name: Events;
|
|
6733
|
+
organizationId?: Maybe<Scalars['String']>;
|
|
6734
|
+
payload: ShipmentChargesUpdatedEventPayload;
|
|
6735
|
+
};
|
|
6736
|
+
|
|
6737
|
+
export type ShipmentChargesUpdatedEventPayload = {
|
|
6738
|
+
__typename?: 'ShipmentChargesUpdatedEventPayload';
|
|
6739
|
+
charges: Array<ShipmentCharge>;
|
|
6740
|
+
shipmentId: Scalars['String'];
|
|
6741
|
+
};
|
|
6742
|
+
|
|
6542
6743
|
/** The type of commodity to be delivered in the shipment */
|
|
6543
6744
|
export enum ShipmentCommodityType {
|
|
6544
6745
|
Dry = 'DRY',
|
|
6545
6746
|
Liquid = 'LIQUID'
|
|
6546
6747
|
}
|
|
6547
6748
|
|
|
6749
|
+
export type ShipmentCompletedEvent = {
|
|
6750
|
+
__typename?: 'ShipmentCompletedEvent';
|
|
6751
|
+
name: Events;
|
|
6752
|
+
organizationId?: Maybe<Scalars['String']>;
|
|
6753
|
+
payload: ShipmentCompletedEventPayload;
|
|
6754
|
+
};
|
|
6755
|
+
|
|
6756
|
+
export type ShipmentCompletedEventPayload = {
|
|
6757
|
+
__typename?: 'ShipmentCompletedEventPayload';
|
|
6758
|
+
shipmentId: Scalars['ObjectId'];
|
|
6759
|
+
};
|
|
6760
|
+
|
|
6548
6761
|
export type ShipmentConstraint = {
|
|
6549
6762
|
__typename?: 'ShipmentConstraint';
|
|
6550
6763
|
type: ShipmentConstraintType;
|
|
@@ -6684,8 +6897,8 @@ export type ShipmentEventInput = {
|
|
|
6684
6897
|
location: CoordinatesInput;
|
|
6685
6898
|
metadata?: InputMaybe<Scalars['JSON']>;
|
|
6686
6899
|
shipment: Scalars['String'];
|
|
6687
|
-
shipmentLocation
|
|
6688
|
-
trip
|
|
6900
|
+
shipmentLocation?: InputMaybe<Scalars['String']>;
|
|
6901
|
+
trip?: InputMaybe<Scalars['String']>;
|
|
6689
6902
|
tripShipmentLocation?: InputMaybe<Scalars['String']>;
|
|
6690
6903
|
type: ShipmentEventType;
|
|
6691
6904
|
};
|
|
@@ -6698,6 +6911,7 @@ export enum ShipmentEventType {
|
|
|
6698
6911
|
PickupCheckpointArrive = 'PICKUP_CHECKPOINT_ARRIVE',
|
|
6699
6912
|
PickupCheckpointLeft = 'PICKUP_CHECKPOINT_LEFT',
|
|
6700
6913
|
PickupCheckpointLoadStart = 'PICKUP_CHECKPOINT_LOAD_START',
|
|
6914
|
+
ShipmentAccepted = 'SHIPMENT_ACCEPTED',
|
|
6701
6915
|
ShipmentComplete = 'SHIPMENT_COMPLETE',
|
|
6702
6916
|
TripAssetAssignmentUpdated = 'TRIP_ASSET_ASSIGNMENT_UPDATED',
|
|
6703
6917
|
TripBreakStarted = 'TRIP_BREAK_STARTED',
|
|
@@ -6930,6 +7144,17 @@ export type ShipmentReferencesUpdateInput = {
|
|
|
6930
7144
|
ticketNumbers?: InputMaybe<Array<Scalars['String']>>;
|
|
6931
7145
|
};
|
|
6932
7146
|
|
|
7147
|
+
export type ShipmentRestoredEvent = {
|
|
7148
|
+
__typename?: 'ShipmentRestoredEvent';
|
|
7149
|
+
name: Events;
|
|
7150
|
+
payload: ShipmentRestoredEventPayload;
|
|
7151
|
+
};
|
|
7152
|
+
|
|
7153
|
+
export type ShipmentRestoredEventPayload = {
|
|
7154
|
+
__typename?: 'ShipmentRestoredEventPayload';
|
|
7155
|
+
shipment: Shipment;
|
|
7156
|
+
};
|
|
7157
|
+
|
|
6933
7158
|
export type ShipmentRoute = {
|
|
6934
7159
|
__typename?: 'ShipmentRoute';
|
|
6935
7160
|
distanceToEnd: Scalars['Float'];
|
|
@@ -7083,7 +7308,7 @@ export type Shipper = {
|
|
|
7083
7308
|
dotNumber?: Maybe<Scalars['String']>;
|
|
7084
7309
|
/** ID of the business entity in an external system. */
|
|
7085
7310
|
externalId?: Maybe<Scalars['String']>;
|
|
7086
|
-
/** Federal ID for
|
|
7311
|
+
/** Federal ID for business entities */
|
|
7087
7312
|
federalId?: Maybe<Scalars['String']>;
|
|
7088
7313
|
goodInventoryItems?: Maybe<Array<GoodInventoryItem>>;
|
|
7089
7314
|
/** IDs of the groups that this business entity belongs to */
|
|
@@ -7948,6 +8173,13 @@ export type TripCreatedEventPayload = {
|
|
|
7948
8173
|
trip: Trip;
|
|
7949
8174
|
};
|
|
7950
8175
|
|
|
8176
|
+
export type TripDistancesCalculatedEvent = {
|
|
8177
|
+
__typename?: 'TripDistancesCalculatedEvent';
|
|
8178
|
+
name: Events;
|
|
8179
|
+
organizationId?: Maybe<Scalars['String']>;
|
|
8180
|
+
payload: TripDistancesCalculatedEventPayload;
|
|
8181
|
+
};
|
|
8182
|
+
|
|
7951
8183
|
export type TripDistancesCalculatedEventPayload = {
|
|
7952
8184
|
__typename?: 'TripDistancesCalculatedEventPayload';
|
|
7953
8185
|
tripId: Scalars['ObjectId'];
|
|
@@ -8324,6 +8556,61 @@ export type EditDriverMutationVariables = Exact<{
|
|
|
8324
8556
|
|
|
8325
8557
|
export type EditDriverMutation = { __typename?: 'Mutation', editDriver: { __typename?: 'Driver', _id: string } };
|
|
8326
8558
|
|
|
8559
|
+
export type GetGoodProfileListQueryVariables = Exact<{
|
|
8560
|
+
search?: InputMaybe<Scalars['String']>;
|
|
8561
|
+
skip?: InputMaybe<Scalars['Int']>;
|
|
8562
|
+
take?: InputMaybe<Scalars['Int']>;
|
|
8563
|
+
filter?: InputMaybe<Scalars['JSON']>;
|
|
8564
|
+
orderBy?: InputMaybe<Array<OrderByItem> | OrderByItem>;
|
|
8565
|
+
}>;
|
|
8566
|
+
|
|
8567
|
+
|
|
8568
|
+
export type GetGoodProfileListQuery = { __typename?: 'Query', goodProfiles: { __typename?: 'GoodProfilePaginatedResult', count: number, data: Array<{ __typename?: 'GoodProfile', _id: string, code?: string | null, label: string, weight: number, liquidGravity?: number | null, unit: GoodUnits, supplierIds?: Array<string> | null, shipperIds?: Array<string> | null, color?: string | null, goodProfileClassId?: any | null, tags?: Array<string> | null, groupIds?: Array<any> | null, goodProfileClass?: { __typename?: 'GoodProfileClass', _id: any, label: string } | null, equivalences?: Array<{ __typename?: 'GoodProfileEquivalence', equivalentGoodId: any, conditions: Array<{ __typename?: 'GoodProfileEquivalenceCondition', operator: GoodProfileEquivalenceConditionOperator, target: GoodProfileEquivalenceConditionTarget, value?: any | null }> }> | null, restrictions?: Array<{ __typename?: 'GoodProfileRestriction', type: GoodProfileRestrictionType, value?: any | null }> | null, customFields?: Array<{ __typename?: 'CustomField', key: string, value?: any | null }> | null }> } };
|
|
8569
|
+
|
|
8570
|
+
export type GetGoodProfileDetailsQueryVariables = Exact<{
|
|
8571
|
+
id: Scalars['String'];
|
|
8572
|
+
}>;
|
|
8573
|
+
|
|
8574
|
+
|
|
8575
|
+
export type GetGoodProfileDetailsQuery = { __typename?: 'Query', goodProfileById: { __typename?: 'GoodProfile', _id: string, code?: string | null, label: string, weight: number, liquidGravity?: number | null, unit: GoodUnits, supplierIds?: Array<string> | null, shipperIds?: Array<string> | null, color?: string | null, goodProfileClassId?: any | null, tags?: Array<string> | null, groupIds?: Array<any> | null, documents?: Array<{ __typename?: 'Document', _id?: string | null, name: string, url: string }> | null, goodProfileClass?: { __typename?: 'GoodProfileClass', _id: any, label: string } | null, equivalences?: Array<{ __typename?: 'GoodProfileEquivalence', equivalentGoodId: any, conditions: Array<{ __typename?: 'GoodProfileEquivalenceCondition', operator: GoodProfileEquivalenceConditionOperator, target: GoodProfileEquivalenceConditionTarget, value?: any | null }> }> | null, restrictions?: Array<{ __typename?: 'GoodProfileRestriction', type: GoodProfileRestrictionType, value?: any | null }> | null, customFields?: Array<{ __typename?: 'CustomField', key: string, value?: any | null }> | null } };
|
|
8576
|
+
|
|
8577
|
+
export type DeleteGoodProfileMutationVariables = Exact<{
|
|
8578
|
+
id: Scalars['String'];
|
|
8579
|
+
}>;
|
|
8580
|
+
|
|
8581
|
+
|
|
8582
|
+
export type DeleteGoodProfileMutation = { __typename?: 'Mutation', deleteGoodProfile: boolean };
|
|
8583
|
+
|
|
8584
|
+
export type AddGoodProfileMutationVariables = Exact<{
|
|
8585
|
+
newGoodProfileData: NewGoodProfileInput;
|
|
8586
|
+
}>;
|
|
8587
|
+
|
|
8588
|
+
|
|
8589
|
+
export type AddGoodProfileMutation = { __typename?: 'Mutation', addGoodProfile: { __typename?: 'GoodProfile', _id: string } };
|
|
8590
|
+
|
|
8591
|
+
export type EditGoodProfileMutationVariables = Exact<{
|
|
8592
|
+
id: Scalars['String'];
|
|
8593
|
+
editGoodProfileData: GoodProfileUpdateInput;
|
|
8594
|
+
}>;
|
|
8595
|
+
|
|
8596
|
+
|
|
8597
|
+
export type EditGoodProfileMutation = { __typename?: 'Mutation', editGoodProfile: { __typename?: 'GoodProfile', _id: string } };
|
|
8598
|
+
|
|
8599
|
+
export type BulkAddGoodProfilesMutationVariables = Exact<{
|
|
8600
|
+
newGoodProfilesData: Array<NewGoodProfileInput> | NewGoodProfileInput;
|
|
8601
|
+
}>;
|
|
8602
|
+
|
|
8603
|
+
|
|
8604
|
+
export type BulkAddGoodProfilesMutation = { __typename?: 'Mutation', bulkAddGoodProfiles: Array<{ __typename?: 'GoodProfile', _id: string }> };
|
|
8605
|
+
|
|
8606
|
+
export type BulkEditGoodProfilesMutationVariables = Exact<{
|
|
8607
|
+
editGoodProfileData: GoodProfileUpdateInput;
|
|
8608
|
+
ids: Array<Scalars['ObjectId']> | Scalars['ObjectId'];
|
|
8609
|
+
}>;
|
|
8610
|
+
|
|
8611
|
+
|
|
8612
|
+
export type BulkEditGoodProfilesMutation = { __typename?: 'Mutation', bulkEditGoodProfiles: { __typename?: 'BulkUpdateResult', matchedCount?: number | null, modifiedCount?: number | null, upsertedCount?: number | null } };
|
|
8613
|
+
|
|
8327
8614
|
export type GetInvoiceListQueryVariables = Exact<{
|
|
8328
8615
|
search?: InputMaybe<Scalars['String']>;
|
|
8329
8616
|
skip?: InputMaybe<Scalars['Int']>;
|
|
@@ -8383,7 +8670,29 @@ export type GetShipmentDetailsQueryVariables = Exact<{
|
|
|
8383
8670
|
}>;
|
|
8384
8671
|
|
|
8385
8672
|
|
|
8386
|
-
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 } };
|
|
8673
|
+
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, code?: string | null, 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, externalId?: string | null, code?: string | null, addressTimezone?: string | null, address: { __typename?: 'Address', label: string, coordinates: { __typename?: 'Coordinates', latitude: number } } } | null, receiver?: { __typename?: 'BusinessEntity', _id: string, name: string, externalId?: string | null, code?: string | null, 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 } };
|
|
8674
|
+
|
|
8675
|
+
export type CreateShipmentMutationVariables = Exact<{
|
|
8676
|
+
shipment: NewShipmentInput;
|
|
8677
|
+
}>;
|
|
8678
|
+
|
|
8679
|
+
|
|
8680
|
+
export type CreateShipmentMutation = { __typename?: 'Mutation', addShipment: { __typename?: 'Shipment', _id: string, shipmentNumber: string, shipmentLocations: Array<{ __typename?: 'ShipmentLocation', shipper?: { __typename?: 'BusinessEntity', _id: string } | null }> } };
|
|
8681
|
+
|
|
8682
|
+
export type GenerateShipmentRouteMutationVariables = Exact<{
|
|
8683
|
+
shipment: NewShipmentInput;
|
|
8684
|
+
}>;
|
|
8685
|
+
|
|
8686
|
+
|
|
8687
|
+
export type GenerateShipmentRouteMutation = { __typename?: 'Mutation', generateShipmentRoute: { __typename?: 'ShipmentRoute', routeDistance: number, firstPickupTime: any, distanceToStart: number, distanceToEnd: number, lastDropoffTime: any, locations?: Array<{ __typename?: 'TripShipmentLocation', _id: string, locationType: ShipmentLocationType, arrivalTime: any, serviceDuration: number, setupDuration: number, tripShipmentLocationId: string, waitingDuration: number, timeWindows: Array<{ __typename?: 'DateTimeWindow', fromDate: any, toDate: any }>, location: { __typename?: 'Coordinates', latitude: number, longitude: number } }> | null } };
|
|
8688
|
+
|
|
8689
|
+
export type UpdateShipmentMutationVariables = Exact<{
|
|
8690
|
+
editShipmentData: ShipmentUpdateInput;
|
|
8691
|
+
id: Scalars['String'];
|
|
8692
|
+
}>;
|
|
8693
|
+
|
|
8694
|
+
|
|
8695
|
+
export type UpdateShipmentMutation = { __typename?: 'Mutation', editShipment: { __typename?: 'Shipment', _id: string, shipmentLocations: Array<{ __typename?: 'ShipmentLocation', shipper?: { __typename?: 'BusinessEntity', _id: string } | null }> } };
|
|
8387
8696
|
|
|
8388
8697
|
export type AddStorageFacilityReadingMutationVariables = Exact<{
|
|
8389
8698
|
newStorageFacilityReadingData: NewStorageFacilityReadingInput;
|
|
@@ -8926,6 +9235,131 @@ export const EditDriverDocument = gql`
|
|
|
8926
9235
|
}
|
|
8927
9236
|
}
|
|
8928
9237
|
`;
|
|
9238
|
+
export const GetGoodProfileListDocument = gql`
|
|
9239
|
+
query getGoodProfileList($search: String, $skip: Int, $take: Int, $filter: JSON, $orderBy: [OrderByItem!]) {
|
|
9240
|
+
goodProfiles(
|
|
9241
|
+
search: $search
|
|
9242
|
+
skip: $skip
|
|
9243
|
+
take: $take
|
|
9244
|
+
filter: $filter
|
|
9245
|
+
orderBy: $orderBy
|
|
9246
|
+
) {
|
|
9247
|
+
data {
|
|
9248
|
+
_id
|
|
9249
|
+
code
|
|
9250
|
+
label
|
|
9251
|
+
weight
|
|
9252
|
+
liquidGravity
|
|
9253
|
+
unit
|
|
9254
|
+
supplierIds
|
|
9255
|
+
shipperIds
|
|
9256
|
+
color
|
|
9257
|
+
goodProfileClassId
|
|
9258
|
+
goodProfileClass {
|
|
9259
|
+
_id
|
|
9260
|
+
label
|
|
9261
|
+
}
|
|
9262
|
+
equivalences {
|
|
9263
|
+
equivalentGoodId
|
|
9264
|
+
conditions {
|
|
9265
|
+
operator
|
|
9266
|
+
target
|
|
9267
|
+
value
|
|
9268
|
+
}
|
|
9269
|
+
}
|
|
9270
|
+
restrictions {
|
|
9271
|
+
type
|
|
9272
|
+
value
|
|
9273
|
+
}
|
|
9274
|
+
tags
|
|
9275
|
+
customFields {
|
|
9276
|
+
key
|
|
9277
|
+
value
|
|
9278
|
+
}
|
|
9279
|
+
groupIds
|
|
9280
|
+
}
|
|
9281
|
+
count
|
|
9282
|
+
}
|
|
9283
|
+
}
|
|
9284
|
+
`;
|
|
9285
|
+
export const GetGoodProfileDetailsDocument = gql`
|
|
9286
|
+
query getGoodProfileDetails($id: String!) {
|
|
9287
|
+
goodProfileById(id: $id) {
|
|
9288
|
+
_id
|
|
9289
|
+
code
|
|
9290
|
+
label
|
|
9291
|
+
documents {
|
|
9292
|
+
_id
|
|
9293
|
+
name
|
|
9294
|
+
url
|
|
9295
|
+
}
|
|
9296
|
+
weight
|
|
9297
|
+
liquidGravity
|
|
9298
|
+
unit
|
|
9299
|
+
supplierIds
|
|
9300
|
+
shipperIds
|
|
9301
|
+
color
|
|
9302
|
+
goodProfileClassId
|
|
9303
|
+
goodProfileClass {
|
|
9304
|
+
_id
|
|
9305
|
+
label
|
|
9306
|
+
}
|
|
9307
|
+
equivalences {
|
|
9308
|
+
equivalentGoodId
|
|
9309
|
+
conditions {
|
|
9310
|
+
operator
|
|
9311
|
+
target
|
|
9312
|
+
value
|
|
9313
|
+
}
|
|
9314
|
+
}
|
|
9315
|
+
restrictions {
|
|
9316
|
+
type
|
|
9317
|
+
value
|
|
9318
|
+
}
|
|
9319
|
+
tags
|
|
9320
|
+
customFields {
|
|
9321
|
+
key
|
|
9322
|
+
value
|
|
9323
|
+
}
|
|
9324
|
+
groupIds
|
|
9325
|
+
}
|
|
9326
|
+
}
|
|
9327
|
+
`;
|
|
9328
|
+
export const DeleteGoodProfileDocument = gql`
|
|
9329
|
+
mutation deleteGoodProfile($id: String!) {
|
|
9330
|
+
deleteGoodProfile(id: $id)
|
|
9331
|
+
}
|
|
9332
|
+
`;
|
|
9333
|
+
export const AddGoodProfileDocument = gql`
|
|
9334
|
+
mutation addGoodProfile($newGoodProfileData: NewGoodProfileInput!) {
|
|
9335
|
+
addGoodProfile(newGoodProfileData: $newGoodProfileData) {
|
|
9336
|
+
_id
|
|
9337
|
+
}
|
|
9338
|
+
}
|
|
9339
|
+
`;
|
|
9340
|
+
export const EditGoodProfileDocument = gql`
|
|
9341
|
+
mutation editGoodProfile($id: String!, $editGoodProfileData: GoodProfileUpdateInput!) {
|
|
9342
|
+
editGoodProfile(id: $id, editGoodProfileData: $editGoodProfileData) {
|
|
9343
|
+
_id
|
|
9344
|
+
}
|
|
9345
|
+
}
|
|
9346
|
+
`;
|
|
9347
|
+
export const BulkAddGoodProfilesDocument = gql`
|
|
9348
|
+
mutation bulkAddGoodProfiles($newGoodProfilesData: [NewGoodProfileInput!]!) {
|
|
9349
|
+
bulkAddGoodProfiles(newGoodProfilesData: $newGoodProfilesData) {
|
|
9350
|
+
_id
|
|
9351
|
+
}
|
|
9352
|
+
}
|
|
9353
|
+
`;
|
|
9354
|
+
export const BulkEditGoodProfilesDocument = gql`
|
|
9355
|
+
mutation bulkEditGoodProfiles($editGoodProfileData: GoodProfileUpdateInput!, $ids: [ObjectId!]!) {
|
|
9356
|
+
bulkEditGoodProfiles(editGoodProfileData: $editGoodProfileData, ids: $ids) {
|
|
9357
|
+
matchedCount
|
|
9358
|
+
modifiedCount
|
|
9359
|
+
upsertedCount
|
|
9360
|
+
}
|
|
9361
|
+
}
|
|
9362
|
+
`;
|
|
8929
9363
|
export const GetInvoiceListDocument = gql`
|
|
8930
9364
|
query getInvoiceList($search: String, $skip: Int, $take: Int, $status: InvoiceStatus, $filter: JSON, $orderBy: [OrderByItem!]) {
|
|
8931
9365
|
invoices(
|
|
@@ -9440,6 +9874,7 @@ export const GetShipmentDetailsDocument = gql`
|
|
|
9440
9874
|
customer {
|
|
9441
9875
|
_id
|
|
9442
9876
|
name
|
|
9877
|
+
code
|
|
9443
9878
|
referenceNumberTypes
|
|
9444
9879
|
address {
|
|
9445
9880
|
coordinates {
|
|
@@ -9473,6 +9908,8 @@ export const GetShipmentDetailsDocument = gql`
|
|
|
9473
9908
|
shipper {
|
|
9474
9909
|
_id
|
|
9475
9910
|
name
|
|
9911
|
+
externalId
|
|
9912
|
+
code
|
|
9476
9913
|
address {
|
|
9477
9914
|
coordinates {
|
|
9478
9915
|
latitude
|
|
@@ -9485,6 +9922,8 @@ export const GetShipmentDetailsDocument = gql`
|
|
|
9485
9922
|
receiver {
|
|
9486
9923
|
_id
|
|
9487
9924
|
name
|
|
9925
|
+
externalId
|
|
9926
|
+
code
|
|
9488
9927
|
address {
|
|
9489
9928
|
coordinates {
|
|
9490
9929
|
latitude
|
|
@@ -9623,6 +10062,60 @@ export const GetShipmentDetailsDocument = gql`
|
|
|
9623
10062
|
}
|
|
9624
10063
|
}
|
|
9625
10064
|
`;
|
|
10065
|
+
export const CreateShipmentDocument = gql`
|
|
10066
|
+
mutation createShipment($shipment: NewShipmentInput!) {
|
|
10067
|
+
addShipment(newShipmentData: $shipment) {
|
|
10068
|
+
_id
|
|
10069
|
+
shipmentNumber
|
|
10070
|
+
shipmentLocations {
|
|
10071
|
+
shipper {
|
|
10072
|
+
_id
|
|
10073
|
+
}
|
|
10074
|
+
}
|
|
10075
|
+
}
|
|
10076
|
+
}
|
|
10077
|
+
`;
|
|
10078
|
+
export const GenerateShipmentRouteDocument = gql`
|
|
10079
|
+
mutation generateShipmentRoute($shipment: NewShipmentInput!) {
|
|
10080
|
+
generateShipmentRoute(shipmentData: $shipment) {
|
|
10081
|
+
locations {
|
|
10082
|
+
_id
|
|
10083
|
+
locationType
|
|
10084
|
+
arrivalTime
|
|
10085
|
+
timeWindows {
|
|
10086
|
+
fromDate
|
|
10087
|
+
toDate
|
|
10088
|
+
}
|
|
10089
|
+
location {
|
|
10090
|
+
latitude
|
|
10091
|
+
longitude
|
|
10092
|
+
}
|
|
10093
|
+
serviceDuration
|
|
10094
|
+
setupDuration
|
|
10095
|
+
tripShipmentLocationId
|
|
10096
|
+
waitingDuration
|
|
10097
|
+
}
|
|
10098
|
+
routeDistance
|
|
10099
|
+
firstPickupTime
|
|
10100
|
+
distanceToStart
|
|
10101
|
+
distanceToEnd
|
|
10102
|
+
firstPickupTime
|
|
10103
|
+
lastDropoffTime
|
|
10104
|
+
}
|
|
10105
|
+
}
|
|
10106
|
+
`;
|
|
10107
|
+
export const UpdateShipmentDocument = gql`
|
|
10108
|
+
mutation updateShipment($editShipmentData: ShipmentUpdateInput!, $id: String!) {
|
|
10109
|
+
editShipment(editShipmentData: $editShipmentData, id: $id) {
|
|
10110
|
+
_id
|
|
10111
|
+
shipmentLocations {
|
|
10112
|
+
shipper {
|
|
10113
|
+
_id
|
|
10114
|
+
}
|
|
10115
|
+
}
|
|
10116
|
+
}
|
|
10117
|
+
}
|
|
10118
|
+
`;
|
|
9626
10119
|
export const AddStorageFacilityReadingDocument = gql`
|
|
9627
10120
|
mutation addStorageFacilityReading($newStorageFacilityReadingData: NewStorageFacilityReadingInput!) {
|
|
9628
10121
|
addStorageFacilityReading(
|
|
@@ -10090,6 +10583,27 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper =
|
|
|
10090
10583
|
editDriver(variables: EditDriverMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<EditDriverMutation> {
|
|
10091
10584
|
return withWrapper((wrappedRequestHeaders) => client.request<EditDriverMutation>(EditDriverDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'editDriver', 'mutation');
|
|
10092
10585
|
},
|
|
10586
|
+
getGoodProfileList(variables?: GetGoodProfileListQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetGoodProfileListQuery> {
|
|
10587
|
+
return withWrapper((wrappedRequestHeaders) => client.request<GetGoodProfileListQuery>(GetGoodProfileListDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getGoodProfileList', 'query');
|
|
10588
|
+
},
|
|
10589
|
+
getGoodProfileDetails(variables: GetGoodProfileDetailsQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetGoodProfileDetailsQuery> {
|
|
10590
|
+
return withWrapper((wrappedRequestHeaders) => client.request<GetGoodProfileDetailsQuery>(GetGoodProfileDetailsDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getGoodProfileDetails', 'query');
|
|
10591
|
+
},
|
|
10592
|
+
deleteGoodProfile(variables: DeleteGoodProfileMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<DeleteGoodProfileMutation> {
|
|
10593
|
+
return withWrapper((wrappedRequestHeaders) => client.request<DeleteGoodProfileMutation>(DeleteGoodProfileDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'deleteGoodProfile', 'mutation');
|
|
10594
|
+
},
|
|
10595
|
+
addGoodProfile(variables: AddGoodProfileMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<AddGoodProfileMutation> {
|
|
10596
|
+
return withWrapper((wrappedRequestHeaders) => client.request<AddGoodProfileMutation>(AddGoodProfileDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'addGoodProfile', 'mutation');
|
|
10597
|
+
},
|
|
10598
|
+
editGoodProfile(variables: EditGoodProfileMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<EditGoodProfileMutation> {
|
|
10599
|
+
return withWrapper((wrappedRequestHeaders) => client.request<EditGoodProfileMutation>(EditGoodProfileDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'editGoodProfile', 'mutation');
|
|
10600
|
+
},
|
|
10601
|
+
bulkAddGoodProfiles(variables: BulkAddGoodProfilesMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<BulkAddGoodProfilesMutation> {
|
|
10602
|
+
return withWrapper((wrappedRequestHeaders) => client.request<BulkAddGoodProfilesMutation>(BulkAddGoodProfilesDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'bulkAddGoodProfiles', 'mutation');
|
|
10603
|
+
},
|
|
10604
|
+
bulkEditGoodProfiles(variables: BulkEditGoodProfilesMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<BulkEditGoodProfilesMutation> {
|
|
10605
|
+
return withWrapper((wrappedRequestHeaders) => client.request<BulkEditGoodProfilesMutation>(BulkEditGoodProfilesDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'bulkEditGoodProfiles', 'mutation');
|
|
10606
|
+
},
|
|
10093
10607
|
getInvoiceList(variables?: GetInvoiceListQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetInvoiceListQuery> {
|
|
10094
10608
|
return withWrapper((wrappedRequestHeaders) => client.request<GetInvoiceListQuery>(GetInvoiceListDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getInvoiceList', 'query');
|
|
10095
10609
|
},
|
|
@@ -10111,6 +10625,15 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper =
|
|
|
10111
10625
|
getShipmentDetails(variables: GetShipmentDetailsQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetShipmentDetailsQuery> {
|
|
10112
10626
|
return withWrapper((wrappedRequestHeaders) => client.request<GetShipmentDetailsQuery>(GetShipmentDetailsDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getShipmentDetails', 'query');
|
|
10113
10627
|
},
|
|
10628
|
+
createShipment(variables: CreateShipmentMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<CreateShipmentMutation> {
|
|
10629
|
+
return withWrapper((wrappedRequestHeaders) => client.request<CreateShipmentMutation>(CreateShipmentDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'createShipment', 'mutation');
|
|
10630
|
+
},
|
|
10631
|
+
generateShipmentRoute(variables: GenerateShipmentRouteMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GenerateShipmentRouteMutation> {
|
|
10632
|
+
return withWrapper((wrappedRequestHeaders) => client.request<GenerateShipmentRouteMutation>(GenerateShipmentRouteDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'generateShipmentRoute', 'mutation');
|
|
10633
|
+
},
|
|
10634
|
+
updateShipment(variables: UpdateShipmentMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<UpdateShipmentMutation> {
|
|
10635
|
+
return withWrapper((wrappedRequestHeaders) => client.request<UpdateShipmentMutation>(UpdateShipmentDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'updateShipment', 'mutation');
|
|
10636
|
+
},
|
|
10114
10637
|
addStorageFacilityReading(variables: AddStorageFacilityReadingMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<AddStorageFacilityReadingMutation> {
|
|
10115
10638
|
return withWrapper((wrappedRequestHeaders) => client.request<AddStorageFacilityReadingMutation>(AddStorageFacilityReadingDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'addStorageFacilityReading', 'mutation');
|
|
10116
10639
|
},
|