@truetms/truetms-node 0.4.1 → 0.4.2
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 +232 -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 +475 -8
- package/src/graphql/good-profile.graphql +129 -0
- package/src/graphql/shipments.graphql +51 -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,13 @@ export type InvoiceUpdateInput = {
|
|
|
2402
2453
|
taxRate?: InputMaybe<Scalars['Float']>;
|
|
2403
2454
|
};
|
|
2404
2455
|
|
|
2456
|
+
export type InvoiceUpdatedEventPayload = {
|
|
2457
|
+
__typename?: 'InvoiceUpdatedEventPayload';
|
|
2458
|
+
changes?: Maybe<Invoice>;
|
|
2459
|
+
invoice: Invoice;
|
|
2460
|
+
previousInvoice: Invoice;
|
|
2461
|
+
};
|
|
2462
|
+
|
|
2405
2463
|
export enum InvoicingProcess {
|
|
2406
2464
|
LoadBased = 'LOAD_BASED',
|
|
2407
2465
|
QueueBased = 'QUEUE_BASED'
|
|
@@ -2699,6 +2757,7 @@ export type Mutation = {
|
|
|
2699
2757
|
addNotesShipment: Shipment;
|
|
2700
2758
|
addOrder: Order;
|
|
2701
2759
|
addOrgDoc: OrganizationDocument;
|
|
2760
|
+
addOrgMaintenanceTask: OrgMaintenanceTask;
|
|
2702
2761
|
addOrgUser: OrgUser;
|
|
2703
2762
|
addPaymentRule: PaymentRule;
|
|
2704
2763
|
addQualification: Qualification;
|
|
@@ -2747,11 +2806,13 @@ export type Mutation = {
|
|
|
2747
2806
|
bulkEditTractors: BulkUpdateResult;
|
|
2748
2807
|
bulkEditTrailers: BulkUpdateResult;
|
|
2749
2808
|
bulkUpdateContractForShipments: Array<Shipment>;
|
|
2809
|
+
callBulkExtensionOperation: BulkExtensionOperationResponse;
|
|
2750
2810
|
callExtensionOperation: ExtensionOperationResponse;
|
|
2751
2811
|
cancelShipmentSplit?: Maybe<Shipment>;
|
|
2752
2812
|
changeTripStartTime?: Maybe<Trip>;
|
|
2753
2813
|
checkShipmentsCombinability: Scalars['Boolean'];
|
|
2754
2814
|
completeMaintenanceTask: MaintenanceTask;
|
|
2815
|
+
completeOrgMaintenanceTask: OrgMaintenanceTask;
|
|
2755
2816
|
computeLineHaulForTrip?: Maybe<Trip>;
|
|
2756
2817
|
consolidateInvoices?: Maybe<Invoice>;
|
|
2757
2818
|
deleteAssetLinking: Scalars['Boolean'];
|
|
@@ -2775,6 +2836,7 @@ export type Mutation = {
|
|
|
2775
2836
|
deleteMaintenanceTask: Scalars['Boolean'];
|
|
2776
2837
|
deleteOrder: Scalars['Boolean'];
|
|
2777
2838
|
deleteOrgDoc: Scalars['Boolean'];
|
|
2839
|
+
deleteOrgMaintenanceTask: Scalars['Boolean'];
|
|
2778
2840
|
deleteOrgUser: Scalars['Boolean'];
|
|
2779
2841
|
deletePaymentRule: Scalars['Boolean'];
|
|
2780
2842
|
deleteQualification: Scalars['Boolean'];
|
|
@@ -2822,6 +2884,7 @@ export type Mutation = {
|
|
|
2822
2884
|
editNoteShipment: Shipment;
|
|
2823
2885
|
editOrder: Order;
|
|
2824
2886
|
editOrgDoc: Scalars['String'];
|
|
2887
|
+
editOrgMaintenanceTask: OrgMaintenanceTask;
|
|
2825
2888
|
editOrgUser: OrgUser;
|
|
2826
2889
|
editOrganization: Scalars['String'];
|
|
2827
2890
|
editPaymentRule?: Maybe<PaymentRule>;
|
|
@@ -2994,6 +3057,11 @@ export type MutationAddOrgDocArgs = {
|
|
|
2994
3057
|
};
|
|
2995
3058
|
|
|
2996
3059
|
|
|
3060
|
+
export type MutationAddOrgMaintenanceTaskArgs = {
|
|
3061
|
+
newOrgMaintenanceTaskData: OrgMaintenanceTaskInput;
|
|
3062
|
+
};
|
|
3063
|
+
|
|
3064
|
+
|
|
2997
3065
|
export type MutationAddOrgUserArgs = {
|
|
2998
3066
|
newOrgUserData: NewOrgUserInput;
|
|
2999
3067
|
};
|
|
@@ -3245,6 +3313,13 @@ export type MutationBulkUpdateContractForShipmentsArgs = {
|
|
|
3245
3313
|
};
|
|
3246
3314
|
|
|
3247
3315
|
|
|
3316
|
+
export type MutationCallBulkExtensionOperationArgs = {
|
|
3317
|
+
extensionId: Scalars['String'];
|
|
3318
|
+
operationKey: Scalars['String'];
|
|
3319
|
+
recordIds: Array<Scalars['String']>;
|
|
3320
|
+
};
|
|
3321
|
+
|
|
3322
|
+
|
|
3248
3323
|
export type MutationCallExtensionOperationArgs = {
|
|
3249
3324
|
extensionId: Scalars['String'];
|
|
3250
3325
|
operationKey: Scalars['String'];
|
|
@@ -3272,6 +3347,11 @@ export type MutationCompleteMaintenanceTaskArgs = {
|
|
|
3272
3347
|
};
|
|
3273
3348
|
|
|
3274
3349
|
|
|
3350
|
+
export type MutationCompleteOrgMaintenanceTaskArgs = {
|
|
3351
|
+
id: Scalars['ObjectId'];
|
|
3352
|
+
};
|
|
3353
|
+
|
|
3354
|
+
|
|
3275
3355
|
export type MutationComputeLineHaulForTripArgs = {
|
|
3276
3356
|
tripId: Scalars['String'];
|
|
3277
3357
|
};
|
|
@@ -3388,6 +3468,11 @@ export type MutationDeleteOrgDocArgs = {
|
|
|
3388
3468
|
};
|
|
3389
3469
|
|
|
3390
3470
|
|
|
3471
|
+
export type MutationDeleteOrgMaintenanceTaskArgs = {
|
|
3472
|
+
id: Scalars['String'];
|
|
3473
|
+
};
|
|
3474
|
+
|
|
3475
|
+
|
|
3391
3476
|
export type MutationDeleteOrgUserArgs = {
|
|
3392
3477
|
id: Scalars['String'];
|
|
3393
3478
|
};
|
|
@@ -3640,6 +3725,12 @@ export type MutationEditOrgDocArgs = {
|
|
|
3640
3725
|
};
|
|
3641
3726
|
|
|
3642
3727
|
|
|
3728
|
+
export type MutationEditOrgMaintenanceTaskArgs = {
|
|
3729
|
+
editOrgMaintenanceTaskData: OrgMaintenanceTaskUpdateInput;
|
|
3730
|
+
id: Scalars['String'];
|
|
3731
|
+
};
|
|
3732
|
+
|
|
3733
|
+
|
|
3643
3734
|
export type MutationEditOrgUserArgs = {
|
|
3644
3735
|
editOrgUserData: OrgUserUpdateInput;
|
|
3645
3736
|
id: Scalars['String'];
|
|
@@ -4137,6 +4228,7 @@ export type NewContactInput = {
|
|
|
4137
4228
|
extensionNumber?: InputMaybe<Scalars['String']>;
|
|
4138
4229
|
faxNumber?: InputMaybe<Scalars['String']>;
|
|
4139
4230
|
firstname?: InputMaybe<Scalars['String']>;
|
|
4231
|
+
includeInDocumentSending?: InputMaybe<Scalars['Boolean']>;
|
|
4140
4232
|
includeInInvoicing?: InputMaybe<Scalars['Boolean']>;
|
|
4141
4233
|
lastname?: InputMaybe<Scalars['String']>;
|
|
4142
4234
|
middlename?: InputMaybe<Scalars['String']>;
|
|
@@ -4542,6 +4634,63 @@ export type OrderUpdateInput = {
|
|
|
4542
4634
|
status?: InputMaybe<Status>;
|
|
4543
4635
|
};
|
|
4544
4636
|
|
|
4637
|
+
export type OrgMaintenanceTask = {
|
|
4638
|
+
__typename?: 'OrgMaintenanceTask';
|
|
4639
|
+
_id: Scalars['String'];
|
|
4640
|
+
alertBeforeDays?: Maybe<Scalars['Int']>;
|
|
4641
|
+
assignedTo?: Maybe<Scalars['String']>;
|
|
4642
|
+
assignedToUser?: Maybe<OrgUser>;
|
|
4643
|
+
endDate?: Maybe<Scalars['DateTime']>;
|
|
4644
|
+
label: Scalars['String'];
|
|
4645
|
+
recurrence?: Maybe<OrgMaintenanceTaskRecurrence>;
|
|
4646
|
+
startDate: Scalars['DateTime'];
|
|
4647
|
+
status?: Maybe<MaintenanceTaskStatus>;
|
|
4648
|
+
};
|
|
4649
|
+
|
|
4650
|
+
export type OrgMaintenanceTaskInput = {
|
|
4651
|
+
alertBeforeDays?: InputMaybe<Scalars['Int']>;
|
|
4652
|
+
assignedTo?: InputMaybe<Scalars['String']>;
|
|
4653
|
+
endDate?: InputMaybe<Scalars['DateTime']>;
|
|
4654
|
+
label: Scalars['String'];
|
|
4655
|
+
recurrence?: InputMaybe<OrgMaintenanceTaskRecurrenceInput>;
|
|
4656
|
+
startDate: Scalars['DateTime'];
|
|
4657
|
+
status?: InputMaybe<MaintenanceTaskStatus>;
|
|
4658
|
+
};
|
|
4659
|
+
|
|
4660
|
+
export type OrgMaintenanceTaskPaginatedResult = {
|
|
4661
|
+
__typename?: 'OrgMaintenanceTaskPaginatedResult';
|
|
4662
|
+
count: Scalars['Int'];
|
|
4663
|
+
data: Array<OrgMaintenanceTask>;
|
|
4664
|
+
};
|
|
4665
|
+
|
|
4666
|
+
export type OrgMaintenanceTaskRecurrence = {
|
|
4667
|
+
__typename?: 'OrgMaintenanceTaskRecurrence';
|
|
4668
|
+
frequency: OrgMaintenanceTaskRecurrenceFrequency;
|
|
4669
|
+
interval: Scalars['Float'];
|
|
4670
|
+
};
|
|
4671
|
+
|
|
4672
|
+
export enum OrgMaintenanceTaskRecurrenceFrequency {
|
|
4673
|
+
Daily = 'DAILY',
|
|
4674
|
+
Monthly = 'MONTHLY',
|
|
4675
|
+
Weekly = 'WEEKLY',
|
|
4676
|
+
Yearly = 'YEARLY'
|
|
4677
|
+
}
|
|
4678
|
+
|
|
4679
|
+
export type OrgMaintenanceTaskRecurrenceInput = {
|
|
4680
|
+
frequency: OrgMaintenanceTaskRecurrenceFrequency;
|
|
4681
|
+
interval: Scalars['Float'];
|
|
4682
|
+
};
|
|
4683
|
+
|
|
4684
|
+
export type OrgMaintenanceTaskUpdateInput = {
|
|
4685
|
+
alertBeforeDays?: InputMaybe<Scalars['Int']>;
|
|
4686
|
+
assignedTo?: InputMaybe<Scalars['String']>;
|
|
4687
|
+
endDate?: InputMaybe<Scalars['DateTime']>;
|
|
4688
|
+
label?: InputMaybe<Scalars['String']>;
|
|
4689
|
+
recurrence?: InputMaybe<OrgMaintenanceTaskRecurrenceInput>;
|
|
4690
|
+
startDate?: InputMaybe<Scalars['DateTime']>;
|
|
4691
|
+
status?: InputMaybe<MaintenanceTaskStatus>;
|
|
4692
|
+
};
|
|
4693
|
+
|
|
4545
4694
|
export type OrgUser = {
|
|
4546
4695
|
__typename?: 'OrgUser';
|
|
4547
4696
|
_id: Scalars['String'];
|
|
@@ -4968,6 +5117,7 @@ export type Query = {
|
|
|
4968
5117
|
extensionsCustomFields: Array<ExtensionCustomFieldWithExtensionId>;
|
|
4969
5118
|
extensionsMessages: Array<ExtensionMessage>;
|
|
4970
5119
|
extensionsOperations: Array<ExtensionOperationWithExtensionId>;
|
|
5120
|
+
extensionsUIComponents: Array<ExtensionUiComponentWithExtensionInfo>;
|
|
4971
5121
|
extensionsWidgets: Array<ExtensionWidgetWithExtensionInfo>;
|
|
4972
5122
|
forecastingNotifications: Array<ForecastingNotification>;
|
|
4973
5123
|
goodProfileById: GoodProfile;
|
|
@@ -4992,6 +5142,8 @@ export type Query = {
|
|
|
4992
5142
|
myOrganization: Organization;
|
|
4993
5143
|
orderById: Order;
|
|
4994
5144
|
orders: OrderPaginatedResult;
|
|
5145
|
+
orgMaintenanceTaskById?: Maybe<OrgMaintenanceTask>;
|
|
5146
|
+
orgMaintenanceTasks: OrgMaintenanceTaskPaginatedResult;
|
|
4995
5147
|
orgUserById: OrgUser;
|
|
4996
5148
|
orgUsers: OrgUserPaginatedResult;
|
|
4997
5149
|
organizationSettings?: Maybe<OrganizationSettings>;
|
|
@@ -5356,6 +5508,11 @@ export type QueryExtensionsOperationsArgs = {
|
|
|
5356
5508
|
};
|
|
5357
5509
|
|
|
5358
5510
|
|
|
5511
|
+
export type QueryExtensionsUiComponentsArgs = {
|
|
5512
|
+
type: ExtensionUiComponentType;
|
|
5513
|
+
};
|
|
5514
|
+
|
|
5515
|
+
|
|
5359
5516
|
export type QueryExtensionsWidgetsArgs = {
|
|
5360
5517
|
context: ExtensionWidgetContext;
|
|
5361
5518
|
};
|
|
@@ -5499,6 +5656,23 @@ export type QueryOrdersArgs = {
|
|
|
5499
5656
|
};
|
|
5500
5657
|
|
|
5501
5658
|
|
|
5659
|
+
export type QueryOrgMaintenanceTaskByIdArgs = {
|
|
5660
|
+
id: Scalars['String'];
|
|
5661
|
+
};
|
|
5662
|
+
|
|
5663
|
+
|
|
5664
|
+
export type QueryOrgMaintenanceTasksArgs = {
|
|
5665
|
+
assetId?: InputMaybe<Scalars['ObjectId']>;
|
|
5666
|
+
assetType?: InputMaybe<TripAssetTypes>;
|
|
5667
|
+
filter?: InputMaybe<Scalars['JSON']>;
|
|
5668
|
+
orderBy?: InputMaybe<Array<OrderByItem>>;
|
|
5669
|
+
search?: InputMaybe<Scalars['String']>;
|
|
5670
|
+
skip?: InputMaybe<Scalars['Int']>;
|
|
5671
|
+
status?: InputMaybe<MaintenanceTaskStatus>;
|
|
5672
|
+
take?: InputMaybe<Scalars['Int']>;
|
|
5673
|
+
};
|
|
5674
|
+
|
|
5675
|
+
|
|
5502
5676
|
export type QueryOrgUserByIdArgs = {
|
|
5503
5677
|
id: Scalars['String'];
|
|
5504
5678
|
};
|
|
@@ -6090,7 +6264,7 @@ export type Receiver = {
|
|
|
6090
6264
|
dotNumber?: Maybe<Scalars['String']>;
|
|
6091
6265
|
/** ID of the business entity in an external system. */
|
|
6092
6266
|
externalId?: Maybe<Scalars['String']>;
|
|
6093
|
-
/** Federal ID for
|
|
6267
|
+
/** Federal ID for business entities */
|
|
6094
6268
|
federalId?: Maybe<Scalars['String']>;
|
|
6095
6269
|
goodInventoryItems?: Maybe<Array<GoodInventoryItem>>;
|
|
6096
6270
|
/** IDs of the groups that this business entity belongs to */
|
|
@@ -6539,6 +6713,12 @@ export type ShipmentChargeInput = {
|
|
|
6539
6713
|
unitType: Scalars['String'];
|
|
6540
6714
|
};
|
|
6541
6715
|
|
|
6716
|
+
export type ShipmentChargesUpdatedEventPayload = {
|
|
6717
|
+
__typename?: 'ShipmentChargesUpdatedEventPayload';
|
|
6718
|
+
charges: Array<ShipmentCharge>;
|
|
6719
|
+
shipmentId: Scalars['String'];
|
|
6720
|
+
};
|
|
6721
|
+
|
|
6542
6722
|
/** The type of commodity to be delivered in the shipment */
|
|
6543
6723
|
export enum ShipmentCommodityType {
|
|
6544
6724
|
Dry = 'DRY',
|
|
@@ -6684,8 +6864,8 @@ export type ShipmentEventInput = {
|
|
|
6684
6864
|
location: CoordinatesInput;
|
|
6685
6865
|
metadata?: InputMaybe<Scalars['JSON']>;
|
|
6686
6866
|
shipment: Scalars['String'];
|
|
6687
|
-
shipmentLocation
|
|
6688
|
-
trip
|
|
6867
|
+
shipmentLocation?: InputMaybe<Scalars['String']>;
|
|
6868
|
+
trip?: InputMaybe<Scalars['String']>;
|
|
6689
6869
|
tripShipmentLocation?: InputMaybe<Scalars['String']>;
|
|
6690
6870
|
type: ShipmentEventType;
|
|
6691
6871
|
};
|
|
@@ -6698,6 +6878,7 @@ export enum ShipmentEventType {
|
|
|
6698
6878
|
PickupCheckpointArrive = 'PICKUP_CHECKPOINT_ARRIVE',
|
|
6699
6879
|
PickupCheckpointLeft = 'PICKUP_CHECKPOINT_LEFT',
|
|
6700
6880
|
PickupCheckpointLoadStart = 'PICKUP_CHECKPOINT_LOAD_START',
|
|
6881
|
+
ShipmentAccepted = 'SHIPMENT_ACCEPTED',
|
|
6701
6882
|
ShipmentComplete = 'SHIPMENT_COMPLETE',
|
|
6702
6883
|
TripAssetAssignmentUpdated = 'TRIP_ASSET_ASSIGNMENT_UPDATED',
|
|
6703
6884
|
TripBreakStarted = 'TRIP_BREAK_STARTED',
|
|
@@ -7083,7 +7264,7 @@ export type Shipper = {
|
|
|
7083
7264
|
dotNumber?: Maybe<Scalars['String']>;
|
|
7084
7265
|
/** ID of the business entity in an external system. */
|
|
7085
7266
|
externalId?: Maybe<Scalars['String']>;
|
|
7086
|
-
/** Federal ID for
|
|
7267
|
+
/** Federal ID for business entities */
|
|
7087
7268
|
federalId?: Maybe<Scalars['String']>;
|
|
7088
7269
|
goodInventoryItems?: Maybe<Array<GoodInventoryItem>>;
|
|
7089
7270
|
/** IDs of the groups that this business entity belongs to */
|
|
@@ -8324,6 +8505,61 @@ export type EditDriverMutationVariables = Exact<{
|
|
|
8324
8505
|
|
|
8325
8506
|
export type EditDriverMutation = { __typename?: 'Mutation', editDriver: { __typename?: 'Driver', _id: string } };
|
|
8326
8507
|
|
|
8508
|
+
export type GetGoodProfileListQueryVariables = Exact<{
|
|
8509
|
+
search?: InputMaybe<Scalars['String']>;
|
|
8510
|
+
skip?: InputMaybe<Scalars['Int']>;
|
|
8511
|
+
take?: InputMaybe<Scalars['Int']>;
|
|
8512
|
+
filter?: InputMaybe<Scalars['JSON']>;
|
|
8513
|
+
orderBy?: InputMaybe<Array<OrderByItem> | OrderByItem>;
|
|
8514
|
+
}>;
|
|
8515
|
+
|
|
8516
|
+
|
|
8517
|
+
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 }> } };
|
|
8518
|
+
|
|
8519
|
+
export type GetGoodProfileDetailsQueryVariables = Exact<{
|
|
8520
|
+
id: Scalars['String'];
|
|
8521
|
+
}>;
|
|
8522
|
+
|
|
8523
|
+
|
|
8524
|
+
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 } };
|
|
8525
|
+
|
|
8526
|
+
export type DeleteGoodProfileMutationVariables = Exact<{
|
|
8527
|
+
id: Scalars['String'];
|
|
8528
|
+
}>;
|
|
8529
|
+
|
|
8530
|
+
|
|
8531
|
+
export type DeleteGoodProfileMutation = { __typename?: 'Mutation', deleteGoodProfile: boolean };
|
|
8532
|
+
|
|
8533
|
+
export type AddGoodProfileMutationVariables = Exact<{
|
|
8534
|
+
newGoodProfileData: NewGoodProfileInput;
|
|
8535
|
+
}>;
|
|
8536
|
+
|
|
8537
|
+
|
|
8538
|
+
export type AddGoodProfileMutation = { __typename?: 'Mutation', addGoodProfile: { __typename?: 'GoodProfile', _id: string } };
|
|
8539
|
+
|
|
8540
|
+
export type EditGoodProfileMutationVariables = Exact<{
|
|
8541
|
+
id: Scalars['String'];
|
|
8542
|
+
editGoodProfileData: GoodProfileUpdateInput;
|
|
8543
|
+
}>;
|
|
8544
|
+
|
|
8545
|
+
|
|
8546
|
+
export type EditGoodProfileMutation = { __typename?: 'Mutation', editGoodProfile: { __typename?: 'GoodProfile', _id: string } };
|
|
8547
|
+
|
|
8548
|
+
export type BulkAddGoodProfilesMutationVariables = Exact<{
|
|
8549
|
+
newGoodProfilesData: Array<NewGoodProfileInput> | NewGoodProfileInput;
|
|
8550
|
+
}>;
|
|
8551
|
+
|
|
8552
|
+
|
|
8553
|
+
export type BulkAddGoodProfilesMutation = { __typename?: 'Mutation', bulkAddGoodProfiles: Array<{ __typename?: 'GoodProfile', _id: string }> };
|
|
8554
|
+
|
|
8555
|
+
export type BulkEditGoodProfilesMutationVariables = Exact<{
|
|
8556
|
+
editGoodProfileData: GoodProfileUpdateInput;
|
|
8557
|
+
ids: Array<Scalars['ObjectId']> | Scalars['ObjectId'];
|
|
8558
|
+
}>;
|
|
8559
|
+
|
|
8560
|
+
|
|
8561
|
+
export type BulkEditGoodProfilesMutation = { __typename?: 'Mutation', bulkEditGoodProfiles: { __typename?: 'BulkUpdateResult', matchedCount?: number | null, modifiedCount?: number | null, upsertedCount?: number | null } };
|
|
8562
|
+
|
|
8327
8563
|
export type GetInvoiceListQueryVariables = Exact<{
|
|
8328
8564
|
search?: InputMaybe<Scalars['String']>;
|
|
8329
8565
|
skip?: InputMaybe<Scalars['Int']>;
|
|
@@ -8385,6 +8621,28 @@ export type GetShipmentDetailsQueryVariables = Exact<{
|
|
|
8385
8621
|
|
|
8386
8622
|
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 } };
|
|
8387
8623
|
|
|
8624
|
+
export type CreateShipmentMutationVariables = Exact<{
|
|
8625
|
+
shipment: NewShipmentInput;
|
|
8626
|
+
}>;
|
|
8627
|
+
|
|
8628
|
+
|
|
8629
|
+
export type CreateShipmentMutation = { __typename?: 'Mutation', addShipment: { __typename?: 'Shipment', _id: string, shipmentNumber: string, shipmentLocations: Array<{ __typename?: 'ShipmentLocation', shipper?: { __typename?: 'BusinessEntity', _id: string } | null }> } };
|
|
8630
|
+
|
|
8631
|
+
export type GenerateShipmentRouteMutationVariables = Exact<{
|
|
8632
|
+
shipment: NewShipmentInput;
|
|
8633
|
+
}>;
|
|
8634
|
+
|
|
8635
|
+
|
|
8636
|
+
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 } };
|
|
8637
|
+
|
|
8638
|
+
export type UpdateShipmentMutationVariables = Exact<{
|
|
8639
|
+
editShipmentData: ShipmentUpdateInput;
|
|
8640
|
+
id: Scalars['String'];
|
|
8641
|
+
}>;
|
|
8642
|
+
|
|
8643
|
+
|
|
8644
|
+
export type UpdateShipmentMutation = { __typename?: 'Mutation', editShipment: { __typename?: 'Shipment', _id: string, shipmentLocations: Array<{ __typename?: 'ShipmentLocation', shipper?: { __typename?: 'BusinessEntity', _id: string } | null }> } };
|
|
8645
|
+
|
|
8388
8646
|
export type AddStorageFacilityReadingMutationVariables = Exact<{
|
|
8389
8647
|
newStorageFacilityReadingData: NewStorageFacilityReadingInput;
|
|
8390
8648
|
}>;
|
|
@@ -8926,6 +9184,131 @@ export const EditDriverDocument = gql`
|
|
|
8926
9184
|
}
|
|
8927
9185
|
}
|
|
8928
9186
|
`;
|
|
9187
|
+
export const GetGoodProfileListDocument = gql`
|
|
9188
|
+
query getGoodProfileList($search: String, $skip: Int, $take: Int, $filter: JSON, $orderBy: [OrderByItem!]) {
|
|
9189
|
+
goodProfiles(
|
|
9190
|
+
search: $search
|
|
9191
|
+
skip: $skip
|
|
9192
|
+
take: $take
|
|
9193
|
+
filter: $filter
|
|
9194
|
+
orderBy: $orderBy
|
|
9195
|
+
) {
|
|
9196
|
+
data {
|
|
9197
|
+
_id
|
|
9198
|
+
code
|
|
9199
|
+
label
|
|
9200
|
+
weight
|
|
9201
|
+
liquidGravity
|
|
9202
|
+
unit
|
|
9203
|
+
supplierIds
|
|
9204
|
+
shipperIds
|
|
9205
|
+
color
|
|
9206
|
+
goodProfileClassId
|
|
9207
|
+
goodProfileClass {
|
|
9208
|
+
_id
|
|
9209
|
+
label
|
|
9210
|
+
}
|
|
9211
|
+
equivalences {
|
|
9212
|
+
equivalentGoodId
|
|
9213
|
+
conditions {
|
|
9214
|
+
operator
|
|
9215
|
+
target
|
|
9216
|
+
value
|
|
9217
|
+
}
|
|
9218
|
+
}
|
|
9219
|
+
restrictions {
|
|
9220
|
+
type
|
|
9221
|
+
value
|
|
9222
|
+
}
|
|
9223
|
+
tags
|
|
9224
|
+
customFields {
|
|
9225
|
+
key
|
|
9226
|
+
value
|
|
9227
|
+
}
|
|
9228
|
+
groupIds
|
|
9229
|
+
}
|
|
9230
|
+
count
|
|
9231
|
+
}
|
|
9232
|
+
}
|
|
9233
|
+
`;
|
|
9234
|
+
export const GetGoodProfileDetailsDocument = gql`
|
|
9235
|
+
query getGoodProfileDetails($id: String!) {
|
|
9236
|
+
goodProfileById(id: $id) {
|
|
9237
|
+
_id
|
|
9238
|
+
code
|
|
9239
|
+
label
|
|
9240
|
+
documents {
|
|
9241
|
+
_id
|
|
9242
|
+
name
|
|
9243
|
+
url
|
|
9244
|
+
}
|
|
9245
|
+
weight
|
|
9246
|
+
liquidGravity
|
|
9247
|
+
unit
|
|
9248
|
+
supplierIds
|
|
9249
|
+
shipperIds
|
|
9250
|
+
color
|
|
9251
|
+
goodProfileClassId
|
|
9252
|
+
goodProfileClass {
|
|
9253
|
+
_id
|
|
9254
|
+
label
|
|
9255
|
+
}
|
|
9256
|
+
equivalences {
|
|
9257
|
+
equivalentGoodId
|
|
9258
|
+
conditions {
|
|
9259
|
+
operator
|
|
9260
|
+
target
|
|
9261
|
+
value
|
|
9262
|
+
}
|
|
9263
|
+
}
|
|
9264
|
+
restrictions {
|
|
9265
|
+
type
|
|
9266
|
+
value
|
|
9267
|
+
}
|
|
9268
|
+
tags
|
|
9269
|
+
customFields {
|
|
9270
|
+
key
|
|
9271
|
+
value
|
|
9272
|
+
}
|
|
9273
|
+
groupIds
|
|
9274
|
+
}
|
|
9275
|
+
}
|
|
9276
|
+
`;
|
|
9277
|
+
export const DeleteGoodProfileDocument = gql`
|
|
9278
|
+
mutation deleteGoodProfile($id: String!) {
|
|
9279
|
+
deleteGoodProfile(id: $id)
|
|
9280
|
+
}
|
|
9281
|
+
`;
|
|
9282
|
+
export const AddGoodProfileDocument = gql`
|
|
9283
|
+
mutation addGoodProfile($newGoodProfileData: NewGoodProfileInput!) {
|
|
9284
|
+
addGoodProfile(newGoodProfileData: $newGoodProfileData) {
|
|
9285
|
+
_id
|
|
9286
|
+
}
|
|
9287
|
+
}
|
|
9288
|
+
`;
|
|
9289
|
+
export const EditGoodProfileDocument = gql`
|
|
9290
|
+
mutation editGoodProfile($id: String!, $editGoodProfileData: GoodProfileUpdateInput!) {
|
|
9291
|
+
editGoodProfile(id: $id, editGoodProfileData: $editGoodProfileData) {
|
|
9292
|
+
_id
|
|
9293
|
+
}
|
|
9294
|
+
}
|
|
9295
|
+
`;
|
|
9296
|
+
export const BulkAddGoodProfilesDocument = gql`
|
|
9297
|
+
mutation bulkAddGoodProfiles($newGoodProfilesData: [NewGoodProfileInput!]!) {
|
|
9298
|
+
bulkAddGoodProfiles(newGoodProfilesData: $newGoodProfilesData) {
|
|
9299
|
+
_id
|
|
9300
|
+
}
|
|
9301
|
+
}
|
|
9302
|
+
`;
|
|
9303
|
+
export const BulkEditGoodProfilesDocument = gql`
|
|
9304
|
+
mutation bulkEditGoodProfiles($editGoodProfileData: GoodProfileUpdateInput!, $ids: [ObjectId!]!) {
|
|
9305
|
+
bulkEditGoodProfiles(editGoodProfileData: $editGoodProfileData, ids: $ids) {
|
|
9306
|
+
matchedCount
|
|
9307
|
+
modifiedCount
|
|
9308
|
+
upsertedCount
|
|
9309
|
+
}
|
|
9310
|
+
}
|
|
9311
|
+
`;
|
|
8929
9312
|
export const GetInvoiceListDocument = gql`
|
|
8930
9313
|
query getInvoiceList($search: String, $skip: Int, $take: Int, $status: InvoiceStatus, $filter: JSON, $orderBy: [OrderByItem!]) {
|
|
8931
9314
|
invoices(
|
|
@@ -9623,6 +10006,60 @@ export const GetShipmentDetailsDocument = gql`
|
|
|
9623
10006
|
}
|
|
9624
10007
|
}
|
|
9625
10008
|
`;
|
|
10009
|
+
export const CreateShipmentDocument = gql`
|
|
10010
|
+
mutation createShipment($shipment: NewShipmentInput!) {
|
|
10011
|
+
addShipment(newShipmentData: $shipment) {
|
|
10012
|
+
_id
|
|
10013
|
+
shipmentNumber
|
|
10014
|
+
shipmentLocations {
|
|
10015
|
+
shipper {
|
|
10016
|
+
_id
|
|
10017
|
+
}
|
|
10018
|
+
}
|
|
10019
|
+
}
|
|
10020
|
+
}
|
|
10021
|
+
`;
|
|
10022
|
+
export const GenerateShipmentRouteDocument = gql`
|
|
10023
|
+
mutation generateShipmentRoute($shipment: NewShipmentInput!) {
|
|
10024
|
+
generateShipmentRoute(shipmentData: $shipment) {
|
|
10025
|
+
locations {
|
|
10026
|
+
_id
|
|
10027
|
+
locationType
|
|
10028
|
+
arrivalTime
|
|
10029
|
+
timeWindows {
|
|
10030
|
+
fromDate
|
|
10031
|
+
toDate
|
|
10032
|
+
}
|
|
10033
|
+
location {
|
|
10034
|
+
latitude
|
|
10035
|
+
longitude
|
|
10036
|
+
}
|
|
10037
|
+
serviceDuration
|
|
10038
|
+
setupDuration
|
|
10039
|
+
tripShipmentLocationId
|
|
10040
|
+
waitingDuration
|
|
10041
|
+
}
|
|
10042
|
+
routeDistance
|
|
10043
|
+
firstPickupTime
|
|
10044
|
+
distanceToStart
|
|
10045
|
+
distanceToEnd
|
|
10046
|
+
firstPickupTime
|
|
10047
|
+
lastDropoffTime
|
|
10048
|
+
}
|
|
10049
|
+
}
|
|
10050
|
+
`;
|
|
10051
|
+
export const UpdateShipmentDocument = gql`
|
|
10052
|
+
mutation updateShipment($editShipmentData: ShipmentUpdateInput!, $id: String!) {
|
|
10053
|
+
editShipment(editShipmentData: $editShipmentData, id: $id) {
|
|
10054
|
+
_id
|
|
10055
|
+
shipmentLocations {
|
|
10056
|
+
shipper {
|
|
10057
|
+
_id
|
|
10058
|
+
}
|
|
10059
|
+
}
|
|
10060
|
+
}
|
|
10061
|
+
}
|
|
10062
|
+
`;
|
|
9626
10063
|
export const AddStorageFacilityReadingDocument = gql`
|
|
9627
10064
|
mutation addStorageFacilityReading($newStorageFacilityReadingData: NewStorageFacilityReadingInput!) {
|
|
9628
10065
|
addStorageFacilityReading(
|
|
@@ -10090,6 +10527,27 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper =
|
|
|
10090
10527
|
editDriver(variables: EditDriverMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<EditDriverMutation> {
|
|
10091
10528
|
return withWrapper((wrappedRequestHeaders) => client.request<EditDriverMutation>(EditDriverDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'editDriver', 'mutation');
|
|
10092
10529
|
},
|
|
10530
|
+
getGoodProfileList(variables?: GetGoodProfileListQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetGoodProfileListQuery> {
|
|
10531
|
+
return withWrapper((wrappedRequestHeaders) => client.request<GetGoodProfileListQuery>(GetGoodProfileListDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getGoodProfileList', 'query');
|
|
10532
|
+
},
|
|
10533
|
+
getGoodProfileDetails(variables: GetGoodProfileDetailsQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetGoodProfileDetailsQuery> {
|
|
10534
|
+
return withWrapper((wrappedRequestHeaders) => client.request<GetGoodProfileDetailsQuery>(GetGoodProfileDetailsDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getGoodProfileDetails', 'query');
|
|
10535
|
+
},
|
|
10536
|
+
deleteGoodProfile(variables: DeleteGoodProfileMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<DeleteGoodProfileMutation> {
|
|
10537
|
+
return withWrapper((wrappedRequestHeaders) => client.request<DeleteGoodProfileMutation>(DeleteGoodProfileDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'deleteGoodProfile', 'mutation');
|
|
10538
|
+
},
|
|
10539
|
+
addGoodProfile(variables: AddGoodProfileMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<AddGoodProfileMutation> {
|
|
10540
|
+
return withWrapper((wrappedRequestHeaders) => client.request<AddGoodProfileMutation>(AddGoodProfileDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'addGoodProfile', 'mutation');
|
|
10541
|
+
},
|
|
10542
|
+
editGoodProfile(variables: EditGoodProfileMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<EditGoodProfileMutation> {
|
|
10543
|
+
return withWrapper((wrappedRequestHeaders) => client.request<EditGoodProfileMutation>(EditGoodProfileDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'editGoodProfile', 'mutation');
|
|
10544
|
+
},
|
|
10545
|
+
bulkAddGoodProfiles(variables: BulkAddGoodProfilesMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<BulkAddGoodProfilesMutation> {
|
|
10546
|
+
return withWrapper((wrappedRequestHeaders) => client.request<BulkAddGoodProfilesMutation>(BulkAddGoodProfilesDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'bulkAddGoodProfiles', 'mutation');
|
|
10547
|
+
},
|
|
10548
|
+
bulkEditGoodProfiles(variables: BulkEditGoodProfilesMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<BulkEditGoodProfilesMutation> {
|
|
10549
|
+
return withWrapper((wrappedRequestHeaders) => client.request<BulkEditGoodProfilesMutation>(BulkEditGoodProfilesDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'bulkEditGoodProfiles', 'mutation');
|
|
10550
|
+
},
|
|
10093
10551
|
getInvoiceList(variables?: GetInvoiceListQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetInvoiceListQuery> {
|
|
10094
10552
|
return withWrapper((wrappedRequestHeaders) => client.request<GetInvoiceListQuery>(GetInvoiceListDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getInvoiceList', 'query');
|
|
10095
10553
|
},
|
|
@@ -10111,6 +10569,15 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper =
|
|
|
10111
10569
|
getShipmentDetails(variables: GetShipmentDetailsQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetShipmentDetailsQuery> {
|
|
10112
10570
|
return withWrapper((wrappedRequestHeaders) => client.request<GetShipmentDetailsQuery>(GetShipmentDetailsDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'getShipmentDetails', 'query');
|
|
10113
10571
|
},
|
|
10572
|
+
createShipment(variables: CreateShipmentMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<CreateShipmentMutation> {
|
|
10573
|
+
return withWrapper((wrappedRequestHeaders) => client.request<CreateShipmentMutation>(CreateShipmentDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'createShipment', 'mutation');
|
|
10574
|
+
},
|
|
10575
|
+
generateShipmentRoute(variables: GenerateShipmentRouteMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GenerateShipmentRouteMutation> {
|
|
10576
|
+
return withWrapper((wrappedRequestHeaders) => client.request<GenerateShipmentRouteMutation>(GenerateShipmentRouteDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'generateShipmentRoute', 'mutation');
|
|
10577
|
+
},
|
|
10578
|
+
updateShipment(variables: UpdateShipmentMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<UpdateShipmentMutation> {
|
|
10579
|
+
return withWrapper((wrappedRequestHeaders) => client.request<UpdateShipmentMutation>(UpdateShipmentDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'updateShipment', 'mutation');
|
|
10580
|
+
},
|
|
10114
10581
|
addStorageFacilityReading(variables: AddStorageFacilityReadingMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<AddStorageFacilityReadingMutation> {
|
|
10115
10582
|
return withWrapper((wrappedRequestHeaders) => client.request<AddStorageFacilityReadingMutation>(AddStorageFacilityReadingDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'addStorageFacilityReading', 'mutation');
|
|
10116
10583
|
},
|