@chrt-inc/typescript-sdk 1.935.0 → 1.944.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/shippingIntegrations/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/shippingIntegrations/client/Client.js +9 -4
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/client/Client.d.ts +26 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/client/Client.js +22 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/client/index.js +2 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/index.d.ts +2 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/index.js +18 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/Client.d.ts +119 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/Client.js +430 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/index.js +17 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/requests/EcourierCredsClientCreate1.d.ts +26 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/requests/EcourierCredsClientCreate1.js +5 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/requests/EcourierCredsClientUpdate1.d.ts +15 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/requests/EcourierCredsClientUpdate1.js +5 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/creds/index.d.ts +1 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/creds/index.js +17 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/index.d.ts +4 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/index.js +43 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/Client.d.ts +104 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/Client.js +371 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/index.js +17 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/requests/EcourierOrderSyncOneReq.d.ts +15 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/requests/EcourierOrderSyncOneReq.js +5 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/requests/OrdersListV1Request.d.ts +48 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/requests/OrdersListV1Request.js +5 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/index.d.ts +1 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/index.js +17 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/index.d.ts +1 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/index.js +2 -1
- package/dist/cjs/api/types/EcourierCredsLimited1.d.ts +29 -0
- package/dist/cjs/api/types/EcourierCredsLimited1.js +5 -0
- package/dist/cjs/api/types/EcourierCredsListRes.d.ts +8 -0
- package/dist/cjs/api/types/EcourierCredsListRes.js +5 -0
- package/dist/cjs/api/types/EcourierCredsTestRes.d.ts +11 -0
- package/dist/cjs/api/types/EcourierCredsTestRes.js +5 -0
- package/dist/cjs/api/types/EcourierOrder1.d.ts +19 -0
- package/dist/cjs/api/types/EcourierOrder1.js +5 -0
- package/dist/cjs/api/types/EcourierOrderCustomerResponse1.d.ts +16 -0
- package/dist/cjs/api/types/EcourierOrderCustomerResponse1.js +5 -0
- package/dist/cjs/api/types/EcourierOrderListRes.d.ts +8 -0
- package/dist/cjs/api/types/EcourierOrderListRes.js +5 -0
- package/dist/cjs/api/types/EcourierOrderResponse1.d.ts +43 -0
- package/dist/cjs/api/types/EcourierOrderResponse1.js +5 -0
- package/dist/cjs/api/types/EcourierOrderSortByEnum.d.ts +10 -0
- package/dist/cjs/api/types/EcourierOrderSortByEnum.js +12 -0
- package/dist/cjs/api/types/EcourierOrderStopResponse1.d.ts +27 -0
- package/dist/cjs/api/types/EcourierOrderStopResponse1.js +5 -0
- package/dist/cjs/api/types/FraytWebhookResponse.d.ts +7 -0
- package/dist/cjs/api/types/FraytWebhookResponse.js +5 -0
- package/dist/cjs/api/types/NotificationEventsForOrgsEnum.d.ts +6 -1
- package/dist/cjs/api/types/NotificationEventsForOrgsEnum.js +5 -0
- package/dist/cjs/api/types/NotificationEventsForUsersEnum.d.ts +6 -1
- package/dist/cjs/api/types/NotificationEventsForUsersEnum.js +5 -0
- package/dist/cjs/api/types/OrgShippingIntegrationEnum1.d.ts +2 -1
- package/dist/cjs/api/types/OrgShippingIntegrationEnum1.js +1 -0
- package/dist/cjs/api/types/ShippingIntegrationOrderStatusChange1.d.ts +17 -0
- package/dist/cjs/api/types/ShippingIntegrationOrderStatusChange1.js +5 -0
- package/dist/cjs/api/types/ShippingIntegrationOrderStatusChangedReq.d.ts +12 -0
- package/dist/cjs/api/types/ShippingIntegrationOrderStatusChangedReq.js +5 -0
- package/dist/cjs/api/types/ShippingIntegrationOrderStatusChangedRes.d.ts +6 -0
- package/dist/cjs/api/types/ShippingIntegrationOrderStatusChangedRes.js +5 -0
- package/dist/cjs/api/types/ShippingIntegrationOrderStatusChangedWebhookPayload.d.ts +37 -0
- package/dist/cjs/api/types/ShippingIntegrationOrderStatusChangedWebhookPayload.js +16 -0
- package/dist/cjs/api/types/index.d.ts +14 -0
- package/dist/cjs/api/types/index.js +14 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/shippingIntegrations/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/shippingIntegrations/client/Client.mjs +5 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/client/Client.d.mts +26 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/client/Client.mjs +18 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/client/index.d.mts +1 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/client/index.mjs +1 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/index.d.mts +2 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/index.mjs +2 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/Client.d.mts +119 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/Client.mjs +393 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/index.d.mts +2 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/index.mjs +1 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/requests/EcourierCredsClientCreate1.d.mts +26 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/requests/EcourierCredsClientCreate1.mjs +4 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/requests/EcourierCredsClientUpdate1.d.mts +15 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/requests/EcourierCredsClientUpdate1.mjs +4 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/creds/index.d.mts +1 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/creds/index.mjs +1 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/index.d.mts +4 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/index.mjs +4 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/Client.d.mts +104 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/Client.mjs +334 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/index.d.mts +2 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/index.mjs +1 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/requests/EcourierOrderSyncOneReq.d.mts +15 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/requests/EcourierOrderSyncOneReq.mjs +4 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/requests/OrdersListV1Request.d.mts +48 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/requests/OrdersListV1Request.mjs +4 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/index.d.mts +1 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/index.mjs +1 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/index.d.mts +1 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/index.mjs +1 -0
- package/dist/esm/api/types/EcourierCredsLimited1.d.mts +29 -0
- package/dist/esm/api/types/EcourierCredsLimited1.mjs +4 -0
- package/dist/esm/api/types/EcourierCredsListRes.d.mts +8 -0
- package/dist/esm/api/types/EcourierCredsListRes.mjs +4 -0
- package/dist/esm/api/types/EcourierCredsTestRes.d.mts +11 -0
- package/dist/esm/api/types/EcourierCredsTestRes.mjs +4 -0
- package/dist/esm/api/types/EcourierOrder1.d.mts +19 -0
- package/dist/esm/api/types/EcourierOrder1.mjs +4 -0
- package/dist/esm/api/types/EcourierOrderCustomerResponse1.d.mts +16 -0
- package/dist/esm/api/types/EcourierOrderCustomerResponse1.mjs +4 -0
- package/dist/esm/api/types/EcourierOrderListRes.d.mts +8 -0
- package/dist/esm/api/types/EcourierOrderListRes.mjs +4 -0
- package/dist/esm/api/types/EcourierOrderResponse1.d.mts +43 -0
- package/dist/esm/api/types/EcourierOrderResponse1.mjs +4 -0
- package/dist/esm/api/types/EcourierOrderSortByEnum.d.mts +10 -0
- package/dist/esm/api/types/EcourierOrderSortByEnum.mjs +9 -0
- package/dist/esm/api/types/EcourierOrderStopResponse1.d.mts +27 -0
- package/dist/esm/api/types/EcourierOrderStopResponse1.mjs +4 -0
- package/dist/esm/api/types/FraytWebhookResponse.d.mts +7 -0
- package/dist/esm/api/types/FraytWebhookResponse.mjs +4 -0
- package/dist/esm/api/types/NotificationEventsForOrgsEnum.d.mts +6 -1
- package/dist/esm/api/types/NotificationEventsForOrgsEnum.mjs +5 -0
- package/dist/esm/api/types/NotificationEventsForUsersEnum.d.mts +6 -1
- package/dist/esm/api/types/NotificationEventsForUsersEnum.mjs +5 -0
- package/dist/esm/api/types/OrgShippingIntegrationEnum1.d.mts +2 -1
- package/dist/esm/api/types/OrgShippingIntegrationEnum1.mjs +1 -0
- package/dist/esm/api/types/ShippingIntegrationOrderStatusChange1.d.mts +17 -0
- package/dist/esm/api/types/ShippingIntegrationOrderStatusChange1.mjs +4 -0
- package/dist/esm/api/types/ShippingIntegrationOrderStatusChangedReq.d.mts +12 -0
- package/dist/esm/api/types/ShippingIntegrationOrderStatusChangedReq.mjs +4 -0
- package/dist/esm/api/types/ShippingIntegrationOrderStatusChangedRes.d.mts +6 -0
- package/dist/esm/api/types/ShippingIntegrationOrderStatusChangedRes.mjs +4 -0
- package/dist/esm/api/types/ShippingIntegrationOrderStatusChangedWebhookPayload.d.mts +37 -0
- package/dist/esm/api/types/ShippingIntegrationOrderStatusChangedWebhookPayload.mjs +13 -0
- package/dist/esm/api/types/index.d.mts +14 -0
- package/dist/esm/api/types/index.mjs +14 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +678 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../index.mjs";
|
|
5
|
+
export interface EcourierOrder1 {
|
|
6
|
+
_id: string;
|
|
7
|
+
created_at_timestamp: string;
|
|
8
|
+
integration_order_id: string;
|
|
9
|
+
mirrored_at_timestamp: string;
|
|
10
|
+
/** Must be a string starting with `org_` */
|
|
11
|
+
org_id: string;
|
|
12
|
+
/** Must be a string starting with `org_` */
|
|
13
|
+
provider_org_id: string;
|
|
14
|
+
provider_payload: Chrt.EcourierOrderResponse1;
|
|
15
|
+
provider_payload_hash: string;
|
|
16
|
+
schema_version: number;
|
|
17
|
+
shipping_integration: "ecourier";
|
|
18
|
+
updated_at_timestamp: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* The customer an order belongs to.
|
|
6
|
+
*
|
|
7
|
+
* This is what the customer check reads. `FindOrder`'s `CustomerCode` filter is
|
|
8
|
+
* undocumented, so the sync asserts `customer_code` here on every
|
|
9
|
+
* hydrated order before persisting it, keeping the mirror to our customer's
|
|
10
|
+
* orders rather than trusting the query.
|
|
11
|
+
*/
|
|
12
|
+
export interface EcourierOrderCustomerResponse1 {
|
|
13
|
+
"@CustomerCode"?: string | null;
|
|
14
|
+
"@CustomerID"?: string | null;
|
|
15
|
+
"@Name"?: string | null;
|
|
16
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../index.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* One e-Courier order, including caller contact details and POD signoff.
|
|
7
|
+
*
|
|
8
|
+
* `@UserGUID` and `OrderEvents` are the only attributes deliberately absent,
|
|
9
|
+
* and never to be added. See the module docstring.
|
|
10
|
+
*/
|
|
11
|
+
export interface EcourierOrderResponse1 {
|
|
12
|
+
"@AmountCharged"?: string | null;
|
|
13
|
+
"@Auth"?: string | null;
|
|
14
|
+
"@Caller"?: string | null;
|
|
15
|
+
"@CallerEmail"?: string | null;
|
|
16
|
+
"@CallerPhone"?: string | null;
|
|
17
|
+
"@CreateDate"?: string | null;
|
|
18
|
+
"@CreateUserName"?: string | null;
|
|
19
|
+
"@CustomerID"?: string | null;
|
|
20
|
+
"@DeliveredDateTime"?: string | null;
|
|
21
|
+
"@DispatchDateTime"?: string | null;
|
|
22
|
+
"@DueDateTime"?: string | null;
|
|
23
|
+
"@InvoiceStatus"?: string | null;
|
|
24
|
+
"@LastChanged"?: string | null;
|
|
25
|
+
"@OperationalStatus"?: string | null;
|
|
26
|
+
"@OrderAlias"?: string | null;
|
|
27
|
+
"@OrderDate"?: string | null;
|
|
28
|
+
"@OrderGUID"?: string | null;
|
|
29
|
+
"@OrderID"?: string | null;
|
|
30
|
+
"@OrderNumber"?: string | null;
|
|
31
|
+
"@OrderStatus"?: string | null;
|
|
32
|
+
"@PickedUpDateTime"?: string | null;
|
|
33
|
+
"@Pieces"?: string | null;
|
|
34
|
+
"@PodDateTime"?: string | null;
|
|
35
|
+
"@PodName"?: string | null;
|
|
36
|
+
"@Service"?: string | null;
|
|
37
|
+
"@ServiceDesc"?: string | null;
|
|
38
|
+
"@SiteCode"?: string | null;
|
|
39
|
+
"@TotalMiles"?: string | null;
|
|
40
|
+
"@Weight"?: string | null;
|
|
41
|
+
Customer?: Chrt.EcourierOrderCustomerResponse1 | null;
|
|
42
|
+
Stops?: Chrt.EcourierOrderStopResponse1[];
|
|
43
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export type EcourierOrderSortByEnum = "mirrored_at_timestamp" | "created_at_timestamp" | "updated_at_timestamp" | "integration_order_id";
|
|
5
|
+
export declare const EcourierOrderSortByEnum: {
|
|
6
|
+
readonly MirroredAtTimestamp: "mirrored_at_timestamp";
|
|
7
|
+
readonly CreatedAtTimestamp: "created_at_timestamp";
|
|
8
|
+
readonly UpdatedAtTimestamp: "updated_at_timestamp";
|
|
9
|
+
readonly IntegrationOrderId: "integration_order_id";
|
|
10
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export const EcourierOrderSortByEnum = {
|
|
5
|
+
MirroredAtTimestamp: "mirrored_at_timestamp",
|
|
6
|
+
CreatedAtTimestamp: "created_at_timestamp",
|
|
7
|
+
UpdatedAtTimestamp: "updated_at_timestamp",
|
|
8
|
+
IntegrationOrderId: "integration_order_id",
|
|
9
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* One stop on an order.
|
|
6
|
+
*
|
|
7
|
+
* `stop_type` is the authoritative origin/destination marker: `P` for pickup,
|
|
8
|
+
* `D` for delivery. No sequence-number inference is needed, which is
|
|
9
|
+
* cleaner than most integrations give us.
|
|
10
|
+
*/
|
|
11
|
+
export interface EcourierOrderStopResponse1 {
|
|
12
|
+
"@Address"?: string | null;
|
|
13
|
+
"@City"?: string | null;
|
|
14
|
+
"@Country"?: string | null;
|
|
15
|
+
"@Latitude"?: string | null;
|
|
16
|
+
"@Longitude"?: string | null;
|
|
17
|
+
"@Name"?: string | null;
|
|
18
|
+
"@Pieces"?: string | null;
|
|
19
|
+
"@ScheduledDateTime"?: string | null;
|
|
20
|
+
"@ScheduledDateTimeTZ"?: string | null;
|
|
21
|
+
"@Sequence"?: string | null;
|
|
22
|
+
"@State"?: string | null;
|
|
23
|
+
"@StopID"?: string | null;
|
|
24
|
+
"@StopType"?: string | null;
|
|
25
|
+
"@Weight"?: string | null;
|
|
26
|
+
"@Zip"?: string | null;
|
|
27
|
+
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Controlled by Groups that admins configure.
|
|
7
7
|
* Individual users in the group can opt out.
|
|
8
8
|
*/
|
|
9
|
-
export type NotificationEventsForOrgsEnum = "shipping.order.staged" | "shipping.order.completed" | "shipping.order.cancelled" | "shipping.task_group.provider_assigned" | "shipping.task_group.in_progress" | "shipping.task_group.file_added" | "shipping.task_group.driver_assigned" | "shipping.task_group.message" | "shipping.task_group.tasks_ordering_updated" | "shipping.task_group.flight_info_updated" | "shipping.task.added" | "shipping.task.attempted" | "shipping.task.completed" | "shipping.task.skipped" | "shipping.task.deleted" | "shipping.task.task_artifact_completed" | "shipping.task.executor_org_note_added" | "listing.listing.driver_invited_to_bid" | "listing.listing.provider_invited_to_bid" | "listing.bid_thread.action_added" | "operations.order.operator_assigned" | "operations.order.department_assigned" | "operations.order_internal_messages.message" | "operations.order_internal_messages.file_added" | "billing.invoice.approved" | "tracking.session.geofence_entered";
|
|
9
|
+
export type NotificationEventsForOrgsEnum = "shipping.order.staged" | "shipping.order.completed" | "shipping.order.cancelled" | "shipping.task_group.provider_assigned" | "shipping.task_group.in_progress" | "shipping.task_group.file_added" | "shipping.task_group.driver_assigned" | "shipping.task_group.message" | "shipping.task_group.tasks_ordering_updated" | "shipping.task_group.flight_info_updated" | "shipping.task.added" | "shipping.task.attempted" | "shipping.task.completed" | "shipping.task.skipped" | "shipping.task.deleted" | "shipping.task.task_artifact_completed" | "shipping.task.executor_org_note_added" | "listing.listing.driver_invited_to_bid" | "listing.listing.provider_invited_to_bid" | "listing.bid_thread.action_added" | "operations.order.operator_assigned" | "operations.order.department_assigned" | "operations.order_internal_messages.message" | "operations.order_internal_messages.file_added" | "billing.invoice.approved" | "tracking.session.geofence_entered" | "shipping_integration.order.staged" | "shipping_integration.order.in_progress" | "shipping_integration.order.completed" | "shipping_integration.order.exception" | "shipping_integration.order.cancelled";
|
|
10
10
|
export declare const NotificationEventsForOrgsEnum: {
|
|
11
11
|
readonly ShippingOrderStaged: "shipping.order.staged";
|
|
12
12
|
readonly ShippingOrderCompleted: "shipping.order.completed";
|
|
@@ -34,4 +34,9 @@ export declare const NotificationEventsForOrgsEnum: {
|
|
|
34
34
|
readonly OperationsOrderInternalMessagesFileAdded: "operations.order_internal_messages.file_added";
|
|
35
35
|
readonly BillingInvoiceApproved: "billing.invoice.approved";
|
|
36
36
|
readonly TrackingSessionGeofenceEntered: "tracking.session.geofence_entered";
|
|
37
|
+
readonly ShippingIntegrationOrderStaged: "shipping_integration.order.staged";
|
|
38
|
+
readonly ShippingIntegrationOrderInProgress: "shipping_integration.order.in_progress";
|
|
39
|
+
readonly ShippingIntegrationOrderCompleted: "shipping_integration.order.completed";
|
|
40
|
+
readonly ShippingIntegrationOrderException: "shipping_integration.order.exception";
|
|
41
|
+
readonly ShippingIntegrationOrderCancelled: "shipping_integration.order.cancelled";
|
|
37
42
|
};
|
|
@@ -28,4 +28,9 @@ export const NotificationEventsForOrgsEnum = {
|
|
|
28
28
|
OperationsOrderInternalMessagesFileAdded: "operations.order_internal_messages.file_added",
|
|
29
29
|
BillingInvoiceApproved: "billing.invoice.approved",
|
|
30
30
|
TrackingSessionGeofenceEntered: "tracking.session.geofence_entered",
|
|
31
|
+
ShippingIntegrationOrderStaged: "shipping_integration.order.staged",
|
|
32
|
+
ShippingIntegrationOrderInProgress: "shipping_integration.order.in_progress",
|
|
33
|
+
ShippingIntegrationOrderCompleted: "shipping_integration.order.completed",
|
|
34
|
+
ShippingIntegrationOrderException: "shipping_integration.order.exception",
|
|
35
|
+
ShippingIntegrationOrderCancelled: "shipping_integration.order.cancelled",
|
|
31
36
|
};
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* - Order events: via `order.created_by_user_id`
|
|
9
9
|
* - TaskGroup events: via `task_group.driver_id`
|
|
10
10
|
*/
|
|
11
|
-
export type NotificationEventsForUsersEnum = "shipping.order.staged" | "shipping.order.completed" | "shipping.order.cancelled" | "shipping.task_group.driver_assigned" | "shipping.task_group.message" | "shipping.task_group.tasks_ordering_updated" | "shipping.task_group.flight_info_updated" | "shipping.task.executor_org_note_added" | "listing.listing.driver_invited_to_bid" | "listing.bid_thread.action_added" | "operations.order.operator_assigned" | "operations.order.department_assigned" | "operations.order_internal_messages.message" | "operations.order_internal_messages.file_added" | "billing.invoice.approved" | "tracking.session.geofence_entered";
|
|
11
|
+
export type NotificationEventsForUsersEnum = "shipping.order.staged" | "shipping.order.completed" | "shipping.order.cancelled" | "shipping.task_group.driver_assigned" | "shipping.task_group.message" | "shipping.task_group.tasks_ordering_updated" | "shipping.task_group.flight_info_updated" | "shipping.task.executor_org_note_added" | "listing.listing.driver_invited_to_bid" | "listing.bid_thread.action_added" | "operations.order.operator_assigned" | "operations.order.department_assigned" | "operations.order_internal_messages.message" | "operations.order_internal_messages.file_added" | "billing.invoice.approved" | "tracking.session.geofence_entered" | "shipping_integration.order.staged" | "shipping_integration.order.in_progress" | "shipping_integration.order.completed" | "shipping_integration.order.exception" | "shipping_integration.order.cancelled";
|
|
12
12
|
export declare const NotificationEventsForUsersEnum: {
|
|
13
13
|
readonly ShippingOrderStaged: "shipping.order.staged";
|
|
14
14
|
readonly ShippingOrderCompleted: "shipping.order.completed";
|
|
@@ -26,4 +26,9 @@ export declare const NotificationEventsForUsersEnum: {
|
|
|
26
26
|
readonly OperationsOrderInternalMessagesFileAdded: "operations.order_internal_messages.file_added";
|
|
27
27
|
readonly BillingInvoiceApproved: "billing.invoice.approved";
|
|
28
28
|
readonly TrackingSessionGeofenceEntered: "tracking.session.geofence_entered";
|
|
29
|
+
readonly ShippingIntegrationOrderStaged: "shipping_integration.order.staged";
|
|
30
|
+
readonly ShippingIntegrationOrderInProgress: "shipping_integration.order.in_progress";
|
|
31
|
+
readonly ShippingIntegrationOrderCompleted: "shipping_integration.order.completed";
|
|
32
|
+
readonly ShippingIntegrationOrderException: "shipping_integration.order.exception";
|
|
33
|
+
readonly ShippingIntegrationOrderCancelled: "shipping_integration.order.cancelled";
|
|
29
34
|
};
|
|
@@ -18,4 +18,9 @@ export const NotificationEventsForUsersEnum = {
|
|
|
18
18
|
OperationsOrderInternalMessagesFileAdded: "operations.order_internal_messages.file_added",
|
|
19
19
|
BillingInvoiceApproved: "billing.invoice.approved",
|
|
20
20
|
TrackingSessionGeofenceEntered: "tracking.session.geofence_entered",
|
|
21
|
+
ShippingIntegrationOrderStaged: "shipping_integration.order.staged",
|
|
22
|
+
ShippingIntegrationOrderInProgress: "shipping_integration.order.in_progress",
|
|
23
|
+
ShippingIntegrationOrderCompleted: "shipping_integration.order.completed",
|
|
24
|
+
ShippingIntegrationOrderException: "shipping_integration.order.exception",
|
|
25
|
+
ShippingIntegrationOrderCancelled: "shipping_integration.order.cancelled",
|
|
21
26
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type OrgShippingIntegrationEnum1 = "xcelerator" | "dispatch_science" | "ontime360" | "cxt" | "atlas";
|
|
4
|
+
export type OrgShippingIntegrationEnum1 = "xcelerator" | "dispatch_science" | "ontime360" | "cxt" | "atlas" | "ecourier";
|
|
5
5
|
export declare const OrgShippingIntegrationEnum1: {
|
|
6
6
|
readonly Xcelerator: "xcelerator";
|
|
7
7
|
readonly DispatchScience: "dispatch_science";
|
|
8
8
|
readonly Ontime360: "ontime360";
|
|
9
9
|
readonly Cxt: "cxt";
|
|
10
10
|
readonly Atlas: "atlas";
|
|
11
|
+
readonly Ecourier: "ecourier";
|
|
11
12
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../index.mjs";
|
|
5
|
+
export interface ShippingIntegrationOrderStatusChange1 {
|
|
6
|
+
integration_order_id: string;
|
|
7
|
+
new_status: Chrt.ShippingIntegrationOrderStatusEnum1;
|
|
8
|
+
/** Must be a string starting with `org_` */
|
|
9
|
+
org_id: string;
|
|
10
|
+
previous_status?: Chrt.ShippingIntegrationOrderStatusEnum1 | null;
|
|
11
|
+
/** Must be a string starting with `org_` */
|
|
12
|
+
provider_org_id: string;
|
|
13
|
+
reference_numbers?: string[];
|
|
14
|
+
shipping_integration: Chrt.OrgShippingIntegrationEnum1;
|
|
15
|
+
shipping_integration_order_id: string;
|
|
16
|
+
timestamp: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../index.mjs";
|
|
5
|
+
export interface ShippingIntegrationOrderStatusChangedReq {
|
|
6
|
+
/** Must be a string starting with `org_` */
|
|
7
|
+
org_id: string;
|
|
8
|
+
/** Must be a string starting with `org_` */
|
|
9
|
+
provider_org_id: string;
|
|
10
|
+
shipping_integration: Chrt.OrgShippingIntegrationEnum1;
|
|
11
|
+
status_changes?: Chrt.ShippingIntegrationOrderStatusChange1[];
|
|
12
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../index.mjs";
|
|
5
|
+
export interface ShippingIntegrationOrderStatusChangedWebhookPayload {
|
|
6
|
+
/** UTC timestamp when the event occurred */
|
|
7
|
+
event_timestamp: string;
|
|
8
|
+
/** The order status event that occurred */
|
|
9
|
+
event_type: ShippingIntegrationOrderStatusChangedWebhookPayload.EventType;
|
|
10
|
+
/** The provider's order ID in their TMS */
|
|
11
|
+
integration_order_id: string;
|
|
12
|
+
/** The order's new status derived from the current sync */
|
|
13
|
+
new_status: Chrt.ShippingIntegrationOrderStatusEnum1;
|
|
14
|
+
/** The order's previous status before this sync */
|
|
15
|
+
previous_status?: Chrt.ShippingIntegrationOrderStatusEnum1 | null;
|
|
16
|
+
/** The courier provider organization ID */
|
|
17
|
+
provider_org_id: string;
|
|
18
|
+
/** Associated reference numbers on the order */
|
|
19
|
+
reference_numbers?: string[];
|
|
20
|
+
/** The TMS shipping integration platform */
|
|
21
|
+
shipping_integration: Chrt.OrgShippingIntegrationEnum1;
|
|
22
|
+
/** The unified shipping integration order ID */
|
|
23
|
+
shipping_integration_order_id: string;
|
|
24
|
+
}
|
|
25
|
+
export declare namespace ShippingIntegrationOrderStatusChangedWebhookPayload {
|
|
26
|
+
/**
|
|
27
|
+
* The order status event that occurred
|
|
28
|
+
*/
|
|
29
|
+
type EventType = "shipping_integration.order.staged" | "shipping_integration.order.in_progress" | "shipping_integration.order.completed" | "shipping_integration.order.exception" | "shipping_integration.order.cancelled";
|
|
30
|
+
const EventType: {
|
|
31
|
+
readonly ShippingIntegrationOrderStaged: "shipping_integration.order.staged";
|
|
32
|
+
readonly ShippingIntegrationOrderInProgress: "shipping_integration.order.in_progress";
|
|
33
|
+
readonly ShippingIntegrationOrderCompleted: "shipping_integration.order.completed";
|
|
34
|
+
readonly ShippingIntegrationOrderException: "shipping_integration.order.exception";
|
|
35
|
+
readonly ShippingIntegrationOrderCancelled: "shipping_integration.order.cancelled";
|
|
36
|
+
};
|
|
37
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export var ShippingIntegrationOrderStatusChangedWebhookPayload;
|
|
5
|
+
(function (ShippingIntegrationOrderStatusChangedWebhookPayload) {
|
|
6
|
+
ShippingIntegrationOrderStatusChangedWebhookPayload.EventType = {
|
|
7
|
+
ShippingIntegrationOrderStaged: "shipping_integration.order.staged",
|
|
8
|
+
ShippingIntegrationOrderInProgress: "shipping_integration.order.in_progress",
|
|
9
|
+
ShippingIntegrationOrderCompleted: "shipping_integration.order.completed",
|
|
10
|
+
ShippingIntegrationOrderException: "shipping_integration.order.exception",
|
|
11
|
+
ShippingIntegrationOrderCancelled: "shipping_integration.order.cancelled",
|
|
12
|
+
};
|
|
13
|
+
})(ShippingIntegrationOrderStatusChangedWebhookPayload || (ShippingIntegrationOrderStatusChangedWebhookPayload = {}));
|
|
@@ -213,6 +213,15 @@ export * from "./DriverStatusEnum.mjs";
|
|
|
213
213
|
export * from "./DriverUpdateAvailabilityReq.mjs";
|
|
214
214
|
export * from "./DriverUpdateRes.mjs";
|
|
215
215
|
export * from "./DriverWithActiveTaskGroupIds1.mjs";
|
|
216
|
+
export * from "./EcourierCredsLimited1.mjs";
|
|
217
|
+
export * from "./EcourierCredsListRes.mjs";
|
|
218
|
+
export * from "./EcourierCredsTestRes.mjs";
|
|
219
|
+
export * from "./EcourierOrder1.mjs";
|
|
220
|
+
export * from "./EcourierOrderCustomerResponse1.mjs";
|
|
221
|
+
export * from "./EcourierOrderListRes.mjs";
|
|
222
|
+
export * from "./EcourierOrderResponse1.mjs";
|
|
223
|
+
export * from "./EcourierOrderSortByEnum.mjs";
|
|
224
|
+
export * from "./EcourierOrderStopResponse1.mjs";
|
|
216
225
|
export * from "./ExtraStopRate1.mjs";
|
|
217
226
|
export * from "./FirebaseCloudMessagingTokenData1.mjs";
|
|
218
227
|
export * from "./FlatFeeRate1.mjs";
|
|
@@ -229,6 +238,7 @@ export * from "./FlightLegWebhookInfo.mjs";
|
|
|
229
238
|
export * from "./FlightTrackPosition1.mjs";
|
|
230
239
|
export * from "./FlightTrackRes.mjs";
|
|
231
240
|
export * from "./FlightTrackWaypoint1.mjs";
|
|
241
|
+
export * from "./FraytWebhookResponse.mjs";
|
|
232
242
|
export * from "./FromPayables1.mjs";
|
|
233
243
|
export * from "./FuelSurchargeRate1.mjs";
|
|
234
244
|
export * from "./GeofencePointLocationFeature1.mjs";
|
|
@@ -455,6 +465,10 @@ export * from "./ShippingIntegrationOrderExpanded1.mjs";
|
|
|
455
465
|
export * from "./ShippingIntegrationOrderListRes.mjs";
|
|
456
466
|
export * from "./ShippingIntegrationOrderPlace1.mjs";
|
|
457
467
|
export * from "./ShippingIntegrationOrderSortByEnum.mjs";
|
|
468
|
+
export * from "./ShippingIntegrationOrderStatusChange1.mjs";
|
|
469
|
+
export * from "./ShippingIntegrationOrderStatusChangedReq.mjs";
|
|
470
|
+
export * from "./ShippingIntegrationOrderStatusChangedRes.mjs";
|
|
471
|
+
export * from "./ShippingIntegrationOrderStatusChangedWebhookPayload.mjs";
|
|
458
472
|
export * from "./ShippingIntegrationOrderStatusEnum1.mjs";
|
|
459
473
|
export * from "./ShippingIntegrationOrderStatusSummaryRes.mjs";
|
|
460
474
|
export * from "./ShippingIntegrationOrderTypeaheadFieldEnum.mjs";
|
|
@@ -213,6 +213,15 @@ export * from "./DriverStatusEnum.mjs";
|
|
|
213
213
|
export * from "./DriverUpdateAvailabilityReq.mjs";
|
|
214
214
|
export * from "./DriverUpdateRes.mjs";
|
|
215
215
|
export * from "./DriverWithActiveTaskGroupIds1.mjs";
|
|
216
|
+
export * from "./EcourierCredsLimited1.mjs";
|
|
217
|
+
export * from "./EcourierCredsListRes.mjs";
|
|
218
|
+
export * from "./EcourierCredsTestRes.mjs";
|
|
219
|
+
export * from "./EcourierOrder1.mjs";
|
|
220
|
+
export * from "./EcourierOrderCustomerResponse1.mjs";
|
|
221
|
+
export * from "./EcourierOrderListRes.mjs";
|
|
222
|
+
export * from "./EcourierOrderResponse1.mjs";
|
|
223
|
+
export * from "./EcourierOrderSortByEnum.mjs";
|
|
224
|
+
export * from "./EcourierOrderStopResponse1.mjs";
|
|
216
225
|
export * from "./ExtraStopRate1.mjs";
|
|
217
226
|
export * from "./FirebaseCloudMessagingTokenData1.mjs";
|
|
218
227
|
export * from "./FlatFeeRate1.mjs";
|
|
@@ -229,6 +238,7 @@ export * from "./FlightLegWebhookInfo.mjs";
|
|
|
229
238
|
export * from "./FlightTrackPosition1.mjs";
|
|
230
239
|
export * from "./FlightTrackRes.mjs";
|
|
231
240
|
export * from "./FlightTrackWaypoint1.mjs";
|
|
241
|
+
export * from "./FraytWebhookResponse.mjs";
|
|
232
242
|
export * from "./FromPayables1.mjs";
|
|
233
243
|
export * from "./FuelSurchargeRate1.mjs";
|
|
234
244
|
export * from "./GeofencePointLocationFeature1.mjs";
|
|
@@ -455,6 +465,10 @@ export * from "./ShippingIntegrationOrderExpanded1.mjs";
|
|
|
455
465
|
export * from "./ShippingIntegrationOrderListRes.mjs";
|
|
456
466
|
export * from "./ShippingIntegrationOrderPlace1.mjs";
|
|
457
467
|
export * from "./ShippingIntegrationOrderSortByEnum.mjs";
|
|
468
|
+
export * from "./ShippingIntegrationOrderStatusChange1.mjs";
|
|
469
|
+
export * from "./ShippingIntegrationOrderStatusChangedReq.mjs";
|
|
470
|
+
export * from "./ShippingIntegrationOrderStatusChangedRes.mjs";
|
|
471
|
+
export * from "./ShippingIntegrationOrderStatusChangedWebhookPayload.mjs";
|
|
458
472
|
export * from "./ShippingIntegrationOrderStatusEnum1.mjs";
|
|
459
473
|
export * from "./ShippingIntegrationOrderStatusSummaryRes.mjs";
|
|
460
474
|
export * from "./ShippingIntegrationOrderTypeaheadFieldEnum.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.944.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.
|
|
1
|
+
export const SDK_VERSION = "1.944.0";
|