@chrt-inc/typescript-sdk 1.380.0 → 1.384.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/types/ChrtGroundCourierTaskActionEnum1.d.ts +0 -17
- package/dist/cjs/api/types/FlightTaskActionEnum1.d.ts +0 -4
- package/dist/cjs/api/types/NotificationEventsForOrgsEnum.d.ts +2 -1
- package/dist/cjs/api/types/NotificationEventsForOrgsEnum.js +1 -0
- package/dist/cjs/api/types/NotificationGroupLimitedForDriver1.d.ts +4 -0
- package/dist/cjs/api/types/OnboardCourierTaskActionEnum1.d.ts +0 -7
- package/dist/cjs/api/types/ShippingTaskCompletedWebhookPayload.d.ts +2 -0
- package/dist/cjs/api/types/ShippingTaskTaskArtifactCompletedWebhookPayload.d.ts +19 -0
- package/dist/cjs/api/types/ShippingTaskTaskArtifactCompletedWebhookPayload.js +5 -0
- package/dist/cjs/api/types/index.d.ts +1 -0
- package/dist/cjs/api/types/index.js +1 -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/types/ChrtGroundCourierTaskActionEnum1.d.mts +0 -17
- package/dist/esm/api/types/FlightTaskActionEnum1.d.mts +0 -4
- package/dist/esm/api/types/NotificationEventsForOrgsEnum.d.mts +2 -1
- package/dist/esm/api/types/NotificationEventsForOrgsEnum.mjs +1 -0
- package/dist/esm/api/types/NotificationGroupLimitedForDriver1.d.mts +4 -0
- package/dist/esm/api/types/OnboardCourierTaskActionEnum1.d.mts +0 -7
- package/dist/esm/api/types/ShippingTaskCompletedWebhookPayload.d.mts +2 -0
- package/dist/esm/api/types/ShippingTaskTaskArtifactCompletedWebhookPayload.d.mts +19 -0
- package/dist/esm/api/types/ShippingTaskTaskArtifactCompletedWebhookPayload.mjs +4 -0
- package/dist/esm/api/types/index.d.mts +1 -0
- package/dist/esm/api/types/index.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
package/dist/cjs/Client.js
CHANGED
|
@@ -66,8 +66,8 @@ class ChrtClient {
|
|
|
66
66
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
67
67
|
"X-Fern-Language": "JavaScript",
|
|
68
68
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
69
|
-
"X-Fern-SDK-Version": "1.
|
|
70
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
69
|
+
"X-Fern-SDK-Version": "1.384.0",
|
|
70
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.384.0",
|
|
71
71
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
72
72
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
73
73
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -1,23 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
/**
|
|
5
|
-
* Notes for order validation logic
|
|
6
|
-
* - actions that obtain cargo are {PICKUP, RECOVER_FROM_AIRLINE}
|
|
7
|
-
* - actions that release cargo are {DELIVER, TENDER_TO_AIRLINE}
|
|
8
|
-
* - actions that maintain cargo are {CONSOLIDATE, HOLD}
|
|
9
|
-
* - action that is a wildcard is {OTHER}
|
|
10
|
-
* - actions where cargo is maintained must occur between obtain and release actions
|
|
11
|
-
* - The wildcard OTHER is given maximum opportunity to satisfy constraints, e.g.:
|
|
12
|
-
* - these are okay:
|
|
13
|
-
* - OTHER (with no more tasks)
|
|
14
|
-
* - PICKUP then OTHER
|
|
15
|
-
* - OTHER then OTHER
|
|
16
|
-
* - OTHER then DELIVER
|
|
17
|
-
* - these are not okay:
|
|
18
|
-
* - OTHER then PICKUP then no more tasks (because the cargo is not released after PICKUP)
|
|
19
|
-
* - DELIVER then OTHER (because the cargo is not obtained before DELIVER)
|
|
20
|
-
*/
|
|
21
4
|
export type ChrtGroundCourierTaskActionEnum1 = "chrt_ground_courier__pickup" | "chrt_ground_courier__deliver" | "chrt_ground_courier__recover_from_airline" | "chrt_ground_courier__tender_to_airline" | "chrt_ground_courier__consolidate" | "chrt_ground_courier__hold" | "chrt_ground_courier__other";
|
|
22
5
|
export declare const ChrtGroundCourierTaskActionEnum1: {
|
|
23
6
|
readonly ChrtGroundCourierPickup: "chrt_ground_courier__pickup";
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
/**
|
|
5
|
-
* Notes for order validation logic
|
|
6
|
-
* - the tasks below are already in sequential order, they might not all be present in the task group, but they must follow this order
|
|
7
|
-
*/
|
|
8
4
|
export type FlightTaskActionEnum1 = "flight__cargo_received_by_airline" | "flight__cargo_loaded_onto_flight" | "flight__flight_departed" | "flight__flight_arrived" | "flight__cargo_offloaded_from_flight" | "flight__cargo_cleared_customs" | "flight__cargo_ready_for_recovery";
|
|
9
5
|
export declare const FlightTaskActionEnum1: {
|
|
10
6
|
readonly FlightCargoReceivedByAirline: "flight__cargo_received_by_airline";
|
|
@@ -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.courier_org_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.completed" | "shipping.task.skipped" | "shipping.task.deleted" | "billing.statement.opened" | "billing.statement.paid" | "billing.line_item_group.message" | "billing.line_item_group.file_added";
|
|
9
|
+
export type NotificationEventsForOrgsEnum = "shipping.order.staged" | "shipping.order.completed" | "shipping.order.cancelled" | "shipping.task_group.courier_org_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.completed" | "shipping.task.skipped" | "shipping.task.deleted" | "shipping.task.task_artifact_completed" | "billing.statement.opened" | "billing.statement.paid" | "billing.line_item_group.message" | "billing.line_item_group.file_added";
|
|
10
10
|
export declare const NotificationEventsForOrgsEnum: {
|
|
11
11
|
readonly ShippingOrderStaged: "shipping.order.staged";
|
|
12
12
|
readonly ShippingOrderCompleted: "shipping.order.completed";
|
|
@@ -22,6 +22,7 @@ export declare const NotificationEventsForOrgsEnum: {
|
|
|
22
22
|
readonly ShippingTaskCompleted: "shipping.task.completed";
|
|
23
23
|
readonly ShippingTaskSkipped: "shipping.task.skipped";
|
|
24
24
|
readonly ShippingTaskDeleted: "shipping.task.deleted";
|
|
25
|
+
readonly ShippingTaskTaskArtifactCompleted: "shipping.task.task_artifact_completed";
|
|
25
26
|
readonly BillingStatementOpened: "billing.statement.opened";
|
|
26
27
|
readonly BillingStatementPaid: "billing.statement.paid";
|
|
27
28
|
readonly BillingLineItemGroupMessage: "billing.line_item_group.message";
|
|
@@ -19,6 +19,7 @@ exports.NotificationEventsForOrgsEnum = {
|
|
|
19
19
|
ShippingTaskCompleted: "shipping.task.completed",
|
|
20
20
|
ShippingTaskSkipped: "shipping.task.skipped",
|
|
21
21
|
ShippingTaskDeleted: "shipping.task.deleted",
|
|
22
|
+
ShippingTaskTaskArtifactCompleted: "shipping.task.task_artifact_completed",
|
|
22
23
|
BillingStatementOpened: "billing.statement.opened",
|
|
23
24
|
BillingStatementPaid: "billing.statement.paid",
|
|
24
25
|
BillingLineItemGroupMessage: "billing.line_item_group.message",
|
|
@@ -9,6 +9,9 @@ import * as Chrt from "../index.js";
|
|
|
9
9
|
* - created_at_timestamp
|
|
10
10
|
* - user_ids
|
|
11
11
|
* - user_ids_opted_out
|
|
12
|
+
*
|
|
13
|
+
* Includes computed fields:
|
|
14
|
+
* - is_opted_out: True if the requesting user is in user_ids_opted_out
|
|
12
15
|
*/
|
|
13
16
|
export interface NotificationGroupLimitedForDriver1 {
|
|
14
17
|
_id: string;
|
|
@@ -20,4 +23,5 @@ export interface NotificationGroupLimitedForDriver1 {
|
|
|
20
23
|
email_events: Chrt.NotificationEventsForOrgsEnum[];
|
|
21
24
|
push_events: Chrt.NotificationEventsForOrgsEnum[];
|
|
22
25
|
sms_events: Chrt.NotificationEventsForOrgsEnum[];
|
|
26
|
+
is_opted_out: boolean;
|
|
23
27
|
}
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
/**
|
|
5
|
-
* Notes for order validation logic
|
|
6
|
-
* - the tasks below are already in sequential order, they might not all be present in the task group, but they must follow this order
|
|
7
|
-
* - exceptions
|
|
8
|
-
* - a courier might have multiple flights, thus these four can occur in "loops" but otherwise must be in proper order: {COURIER_BOARDED_FLIGHT, FLIGHT_DEPARTED, FLIGHT_ARRIVED, COURIER_DEBOARDED_FLIGHT}
|
|
9
|
-
* - CARGO_RECEIVED_BY_AIRLINE and COURIER_RECOVERED_CARGO which can occur at any time
|
|
10
|
-
*/
|
|
11
4
|
export type OnboardCourierTaskActionEnum1 = "obc__courier_departed_for_pickup_location" | "obc__courier_arrived_at_pickup_location" | "obc__cargo_picked_up" | "obc__courier_departed_for_airport" | "obc__courier_arrived_at_airport" | "obc__courier_thru_security" | "obc__cargo_received_by_airline" | "obc__courier_boarded_flight" | "obc__flight_departed" | "obc__flight_arrived" | "obc__courier_deboarded_flight" | "obc__courier_cleared_customs" | "obc__courier_recovered_cargo" | "obc__courier_departed_for_delivery_location" | "obc__courier_arrived_at_delivery_location" | "obc__cargo_delivered";
|
|
12
5
|
export declare const OnboardCourierTaskActionEnum1: {
|
|
13
6
|
readonly ObcCourierDepartedForPickupLocation: "obc__courier_departed_for_pickup_location";
|
|
@@ -10,6 +10,8 @@ export interface ShippingTaskCompletedWebhookPayload {
|
|
|
10
10
|
order_id: string;
|
|
11
11
|
/** The task group containing the task */
|
|
12
12
|
task_group_id: string;
|
|
13
|
+
/** The type of task group (CHRT_GROUND_COURIER, FLIGHT, ONBOARD_COURIER) */
|
|
14
|
+
task_group_type: Chrt.TaskGroupTypeEnum1;
|
|
13
15
|
/** The task that was completed */
|
|
14
16
|
task_id: string;
|
|
15
17
|
/** The task action type (e.g., PICKUP, DELIVER) */
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../index.js";
|
|
5
|
+
export interface ShippingTaskTaskArtifactCompletedWebhookPayload {
|
|
6
|
+
event_type?: "shipping.task.task_artifact_completed";
|
|
7
|
+
/** UTC timestamp when the event occurred */
|
|
8
|
+
event_timestamp: string;
|
|
9
|
+
/** The order containing the task */
|
|
10
|
+
order_id: string;
|
|
11
|
+
/** The task group containing the task */
|
|
12
|
+
task_group_id: string;
|
|
13
|
+
/** The task the artifact belongs to */
|
|
14
|
+
task_id: string;
|
|
15
|
+
/** The task artifact that was completed */
|
|
16
|
+
task_artifact_id: string;
|
|
17
|
+
/** The type of task artifact (e.g., IMAGE, SIGNATURE) */
|
|
18
|
+
task_artifact_type: Chrt.TaskArtifactTypeEnum1;
|
|
19
|
+
}
|
|
@@ -120,6 +120,7 @@ export * from "./ShippingTaskGroupMessageWebhookPayload.js";
|
|
|
120
120
|
export * from "./ShippingTaskGroupS3ObjectAddedWebhookPayload.js";
|
|
121
121
|
export * from "./ShippingTaskGroupTasksOrderingUpdatedWebhookPayload.js";
|
|
122
122
|
export * from "./ShippingTaskSkippedWebhookPayload.js";
|
|
123
|
+
export * from "./ShippingTaskTaskArtifactCompletedWebhookPayload.js";
|
|
123
124
|
export * from "./SortOrderEnum.js";
|
|
124
125
|
export * from "./Statement1.js";
|
|
125
126
|
export * from "./StatementExpandedRes.js";
|
|
@@ -136,6 +136,7 @@ __exportStar(require("./ShippingTaskGroupMessageWebhookPayload.js"), exports);
|
|
|
136
136
|
__exportStar(require("./ShippingTaskGroupS3ObjectAddedWebhookPayload.js"), exports);
|
|
137
137
|
__exportStar(require("./ShippingTaskGroupTasksOrderingUpdatedWebhookPayload.js"), exports);
|
|
138
138
|
__exportStar(require("./ShippingTaskSkippedWebhookPayload.js"), exports);
|
|
139
|
+
__exportStar(require("./ShippingTaskTaskArtifactCompletedWebhookPayload.js"), exports);
|
|
139
140
|
__exportStar(require("./SortOrderEnum.js"), exports);
|
|
140
141
|
__exportStar(require("./Statement1.js"), exports);
|
|
141
142
|
__exportStar(require("./StatementExpandedRes.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.384.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -30,8 +30,8 @@ export class ChrtClient {
|
|
|
30
30
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
31
31
|
"X-Fern-Language": "JavaScript",
|
|
32
32
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
33
|
-
"X-Fern-SDK-Version": "1.
|
|
34
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
33
|
+
"X-Fern-SDK-Version": "1.384.0",
|
|
34
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.384.0",
|
|
35
35
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
36
36
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
37
37
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -1,23 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
/**
|
|
5
|
-
* Notes for order validation logic
|
|
6
|
-
* - actions that obtain cargo are {PICKUP, RECOVER_FROM_AIRLINE}
|
|
7
|
-
* - actions that release cargo are {DELIVER, TENDER_TO_AIRLINE}
|
|
8
|
-
* - actions that maintain cargo are {CONSOLIDATE, HOLD}
|
|
9
|
-
* - action that is a wildcard is {OTHER}
|
|
10
|
-
* - actions where cargo is maintained must occur between obtain and release actions
|
|
11
|
-
* - The wildcard OTHER is given maximum opportunity to satisfy constraints, e.g.:
|
|
12
|
-
* - these are okay:
|
|
13
|
-
* - OTHER (with no more tasks)
|
|
14
|
-
* - PICKUP then OTHER
|
|
15
|
-
* - OTHER then OTHER
|
|
16
|
-
* - OTHER then DELIVER
|
|
17
|
-
* - these are not okay:
|
|
18
|
-
* - OTHER then PICKUP then no more tasks (because the cargo is not released after PICKUP)
|
|
19
|
-
* - DELIVER then OTHER (because the cargo is not obtained before DELIVER)
|
|
20
|
-
*/
|
|
21
4
|
export type ChrtGroundCourierTaskActionEnum1 = "chrt_ground_courier__pickup" | "chrt_ground_courier__deliver" | "chrt_ground_courier__recover_from_airline" | "chrt_ground_courier__tender_to_airline" | "chrt_ground_courier__consolidate" | "chrt_ground_courier__hold" | "chrt_ground_courier__other";
|
|
22
5
|
export declare const ChrtGroundCourierTaskActionEnum1: {
|
|
23
6
|
readonly ChrtGroundCourierPickup: "chrt_ground_courier__pickup";
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
/**
|
|
5
|
-
* Notes for order validation logic
|
|
6
|
-
* - the tasks below are already in sequential order, they might not all be present in the task group, but they must follow this order
|
|
7
|
-
*/
|
|
8
4
|
export type FlightTaskActionEnum1 = "flight__cargo_received_by_airline" | "flight__cargo_loaded_onto_flight" | "flight__flight_departed" | "flight__flight_arrived" | "flight__cargo_offloaded_from_flight" | "flight__cargo_cleared_customs" | "flight__cargo_ready_for_recovery";
|
|
9
5
|
export declare const FlightTaskActionEnum1: {
|
|
10
6
|
readonly FlightCargoReceivedByAirline: "flight__cargo_received_by_airline";
|
|
@@ -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.courier_org_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.completed" | "shipping.task.skipped" | "shipping.task.deleted" | "billing.statement.opened" | "billing.statement.paid" | "billing.line_item_group.message" | "billing.line_item_group.file_added";
|
|
9
|
+
export type NotificationEventsForOrgsEnum = "shipping.order.staged" | "shipping.order.completed" | "shipping.order.cancelled" | "shipping.task_group.courier_org_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.completed" | "shipping.task.skipped" | "shipping.task.deleted" | "shipping.task.task_artifact_completed" | "billing.statement.opened" | "billing.statement.paid" | "billing.line_item_group.message" | "billing.line_item_group.file_added";
|
|
10
10
|
export declare const NotificationEventsForOrgsEnum: {
|
|
11
11
|
readonly ShippingOrderStaged: "shipping.order.staged";
|
|
12
12
|
readonly ShippingOrderCompleted: "shipping.order.completed";
|
|
@@ -22,6 +22,7 @@ export declare const NotificationEventsForOrgsEnum: {
|
|
|
22
22
|
readonly ShippingTaskCompleted: "shipping.task.completed";
|
|
23
23
|
readonly ShippingTaskSkipped: "shipping.task.skipped";
|
|
24
24
|
readonly ShippingTaskDeleted: "shipping.task.deleted";
|
|
25
|
+
readonly ShippingTaskTaskArtifactCompleted: "shipping.task.task_artifact_completed";
|
|
25
26
|
readonly BillingStatementOpened: "billing.statement.opened";
|
|
26
27
|
readonly BillingStatementPaid: "billing.statement.paid";
|
|
27
28
|
readonly BillingLineItemGroupMessage: "billing.line_item_group.message";
|
|
@@ -16,6 +16,7 @@ export const NotificationEventsForOrgsEnum = {
|
|
|
16
16
|
ShippingTaskCompleted: "shipping.task.completed",
|
|
17
17
|
ShippingTaskSkipped: "shipping.task.skipped",
|
|
18
18
|
ShippingTaskDeleted: "shipping.task.deleted",
|
|
19
|
+
ShippingTaskTaskArtifactCompleted: "shipping.task.task_artifact_completed",
|
|
19
20
|
BillingStatementOpened: "billing.statement.opened",
|
|
20
21
|
BillingStatementPaid: "billing.statement.paid",
|
|
21
22
|
BillingLineItemGroupMessage: "billing.line_item_group.message",
|
|
@@ -9,6 +9,9 @@ import * as Chrt from "../index.mjs";
|
|
|
9
9
|
* - created_at_timestamp
|
|
10
10
|
* - user_ids
|
|
11
11
|
* - user_ids_opted_out
|
|
12
|
+
*
|
|
13
|
+
* Includes computed fields:
|
|
14
|
+
* - is_opted_out: True if the requesting user is in user_ids_opted_out
|
|
12
15
|
*/
|
|
13
16
|
export interface NotificationGroupLimitedForDriver1 {
|
|
14
17
|
_id: string;
|
|
@@ -20,4 +23,5 @@ export interface NotificationGroupLimitedForDriver1 {
|
|
|
20
23
|
email_events: Chrt.NotificationEventsForOrgsEnum[];
|
|
21
24
|
push_events: Chrt.NotificationEventsForOrgsEnum[];
|
|
22
25
|
sms_events: Chrt.NotificationEventsForOrgsEnum[];
|
|
26
|
+
is_opted_out: boolean;
|
|
23
27
|
}
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
/**
|
|
5
|
-
* Notes for order validation logic
|
|
6
|
-
* - the tasks below are already in sequential order, they might not all be present in the task group, but they must follow this order
|
|
7
|
-
* - exceptions
|
|
8
|
-
* - a courier might have multiple flights, thus these four can occur in "loops" but otherwise must be in proper order: {COURIER_BOARDED_FLIGHT, FLIGHT_DEPARTED, FLIGHT_ARRIVED, COURIER_DEBOARDED_FLIGHT}
|
|
9
|
-
* - CARGO_RECEIVED_BY_AIRLINE and COURIER_RECOVERED_CARGO which can occur at any time
|
|
10
|
-
*/
|
|
11
4
|
export type OnboardCourierTaskActionEnum1 = "obc__courier_departed_for_pickup_location" | "obc__courier_arrived_at_pickup_location" | "obc__cargo_picked_up" | "obc__courier_departed_for_airport" | "obc__courier_arrived_at_airport" | "obc__courier_thru_security" | "obc__cargo_received_by_airline" | "obc__courier_boarded_flight" | "obc__flight_departed" | "obc__flight_arrived" | "obc__courier_deboarded_flight" | "obc__courier_cleared_customs" | "obc__courier_recovered_cargo" | "obc__courier_departed_for_delivery_location" | "obc__courier_arrived_at_delivery_location" | "obc__cargo_delivered";
|
|
12
5
|
export declare const OnboardCourierTaskActionEnum1: {
|
|
13
6
|
readonly ObcCourierDepartedForPickupLocation: "obc__courier_departed_for_pickup_location";
|
|
@@ -10,6 +10,8 @@ export interface ShippingTaskCompletedWebhookPayload {
|
|
|
10
10
|
order_id: string;
|
|
11
11
|
/** The task group containing the task */
|
|
12
12
|
task_group_id: string;
|
|
13
|
+
/** The type of task group (CHRT_GROUND_COURIER, FLIGHT, ONBOARD_COURIER) */
|
|
14
|
+
task_group_type: Chrt.TaskGroupTypeEnum1;
|
|
13
15
|
/** The task that was completed */
|
|
14
16
|
task_id: string;
|
|
15
17
|
/** The task action type (e.g., PICKUP, DELIVER) */
|
|
@@ -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 ShippingTaskTaskArtifactCompletedWebhookPayload {
|
|
6
|
+
event_type?: "shipping.task.task_artifact_completed";
|
|
7
|
+
/** UTC timestamp when the event occurred */
|
|
8
|
+
event_timestamp: string;
|
|
9
|
+
/** The order containing the task */
|
|
10
|
+
order_id: string;
|
|
11
|
+
/** The task group containing the task */
|
|
12
|
+
task_group_id: string;
|
|
13
|
+
/** The task the artifact belongs to */
|
|
14
|
+
task_id: string;
|
|
15
|
+
/** The task artifact that was completed */
|
|
16
|
+
task_artifact_id: string;
|
|
17
|
+
/** The type of task artifact (e.g., IMAGE, SIGNATURE) */
|
|
18
|
+
task_artifact_type: Chrt.TaskArtifactTypeEnum1;
|
|
19
|
+
}
|
|
@@ -120,6 +120,7 @@ export * from "./ShippingTaskGroupMessageWebhookPayload.mjs";
|
|
|
120
120
|
export * from "./ShippingTaskGroupS3ObjectAddedWebhookPayload.mjs";
|
|
121
121
|
export * from "./ShippingTaskGroupTasksOrderingUpdatedWebhookPayload.mjs";
|
|
122
122
|
export * from "./ShippingTaskSkippedWebhookPayload.mjs";
|
|
123
|
+
export * from "./ShippingTaskTaskArtifactCompletedWebhookPayload.mjs";
|
|
123
124
|
export * from "./SortOrderEnum.mjs";
|
|
124
125
|
export * from "./Statement1.mjs";
|
|
125
126
|
export * from "./StatementExpandedRes.mjs";
|
|
@@ -120,6 +120,7 @@ export * from "./ShippingTaskGroupMessageWebhookPayload.mjs";
|
|
|
120
120
|
export * from "./ShippingTaskGroupS3ObjectAddedWebhookPayload.mjs";
|
|
121
121
|
export * from "./ShippingTaskGroupTasksOrderingUpdatedWebhookPayload.mjs";
|
|
122
122
|
export * from "./ShippingTaskSkippedWebhookPayload.mjs";
|
|
123
|
+
export * from "./ShippingTaskTaskArtifactCompletedWebhookPayload.mjs";
|
|
123
124
|
export * from "./SortOrderEnum.mjs";
|
|
124
125
|
export * from "./Statement1.mjs";
|
|
125
126
|
export * from "./StatementExpandedRes.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.384.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.
|
|
1
|
+
export const SDK_VERSION = "1.384.0";
|