@chrt-inc/typescript-sdk 1.378.0 → 1.380.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/drivers/client/Client.d.ts +3 -3
- package/dist/cjs/api/types/BillingLineItemGroupMessageWebhookPayload.d.ts +2 -2
- package/dist/cjs/api/types/BillingLineItemGroupS3ObjectAddedWebhookPayload.d.ts +2 -5
- package/dist/cjs/api/types/BillingStatementOpenedWebhookPayload.d.ts +1 -2
- package/dist/cjs/api/types/BillingStatementPaidWebhookPayload.d.ts +1 -2
- package/dist/cjs/api/types/{Driver1Input.d.ts → Driver1.d.ts} +1 -1
- package/dist/cjs/api/types/NotificationEventsForOrgsEnum.d.ts +3 -3
- package/dist/cjs/api/types/NotificationEventsForOrgsEnum.js +2 -2
- package/dist/cjs/api/types/OrgMembersAndDrivers.d.ts +1 -1
- package/dist/cjs/api/types/ShippingOrderCancelledWebhookPayload.d.ts +1 -2
- package/dist/cjs/api/types/ShippingOrderCompletedWebhookPayload.d.ts +1 -2
- package/dist/cjs/api/types/ShippingOrderStagedWebhookPayload.d.ts +1 -2
- package/dist/cjs/api/types/ShippingTaskAddedWebhookPayload.d.ts +8 -1
- package/dist/cjs/api/types/ShippingTaskCompletedWebhookPayload.d.ts +8 -1
- package/dist/cjs/api/types/ShippingTaskDeletedWebhookPayload.d.ts +8 -0
- package/dist/cjs/api/types/ShippingTaskGroupDriverAssignedWebhookPayload.d.ts +1 -2
- package/dist/cjs/api/types/ShippingTaskGroupInProgressWebhookPayload.d.ts +1 -2
- package/dist/cjs/api/types/ShippingTaskGroupS3ObjectAddedWebhookPayload.d.ts +2 -5
- package/dist/cjs/api/types/ShippingTaskSkippedWebhookPayload.d.ts +8 -1
- package/dist/cjs/api/types/{Task1Input.d.ts → Task1.d.ts} +3 -3
- package/dist/cjs/api/types/TaskExpanded.d.ts +1 -1
- package/dist/cjs/api/types/TaskGroupExpanded.d.ts +1 -1
- package/dist/cjs/api/types/index.d.ts +2 -4
- package/dist/cjs/api/types/index.js +2 -4
- 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/drivers/client/Client.d.mts +3 -3
- package/dist/esm/api/types/BillingLineItemGroupMessageWebhookPayload.d.mts +2 -2
- package/dist/esm/api/types/BillingLineItemGroupS3ObjectAddedWebhookPayload.d.mts +2 -5
- package/dist/esm/api/types/BillingStatementOpenedWebhookPayload.d.mts +1 -2
- package/dist/esm/api/types/BillingStatementPaidWebhookPayload.d.mts +1 -2
- package/dist/esm/api/types/{Driver1Input.d.mts → Driver1.d.mts} +1 -1
- package/dist/esm/api/types/NotificationEventsForOrgsEnum.d.mts +3 -3
- package/dist/esm/api/types/NotificationEventsForOrgsEnum.mjs +2 -2
- package/dist/esm/api/types/OrgMembersAndDrivers.d.mts +1 -1
- package/dist/esm/api/types/ShippingOrderCancelledWebhookPayload.d.mts +1 -2
- package/dist/esm/api/types/ShippingOrderCompletedWebhookPayload.d.mts +1 -2
- package/dist/esm/api/types/ShippingOrderStagedWebhookPayload.d.mts +1 -2
- package/dist/esm/api/types/ShippingTaskAddedWebhookPayload.d.mts +8 -1
- package/dist/esm/api/types/ShippingTaskCompletedWebhookPayload.d.mts +8 -1
- package/dist/esm/api/types/ShippingTaskDeletedWebhookPayload.d.mts +8 -0
- package/dist/esm/api/types/ShippingTaskGroupDriverAssignedWebhookPayload.d.mts +1 -2
- package/dist/esm/api/types/ShippingTaskGroupInProgressWebhookPayload.d.mts +1 -2
- package/dist/esm/api/types/ShippingTaskGroupS3ObjectAddedWebhookPayload.d.mts +2 -5
- package/dist/esm/api/types/ShippingTaskSkippedWebhookPayload.d.mts +8 -1
- package/dist/esm/api/types/{Task1Input.d.mts → Task1.d.mts} +3 -3
- package/dist/esm/api/types/TaskExpanded.d.mts +1 -1
- package/dist/esm/api/types/TaskGroupExpanded.d.mts +1 -1
- package/dist/esm/api/types/index.d.mts +2 -4
- package/dist/esm/api/types/index.mjs +2 -4
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +3 -3
- package/dist/cjs/api/types/Driver1Output.d.ts +0 -27
- package/dist/cjs/api/types/Task1Input.js +0 -5
- package/dist/cjs/api/types/Task1Output.d.ts +0 -36
- package/dist/cjs/api/types/Task1Output.js +0 -5
- package/dist/esm/api/types/Driver1Output.d.mts +0 -27
- package/dist/esm/api/types/Task1Input.mjs +0 -4
- package/dist/esm/api/types/Task1Output.d.mts +0 -36
- package/dist/esm/api/types/Task1Output.mjs +0 -4
- /package/dist/cjs/api/types/{Driver1Input.js → Driver1.js} +0 -0
- /package/dist/cjs/api/types/{Driver1Output.js → Task1.js} +0 -0
- /package/dist/esm/api/types/{Driver1Input.mjs → Driver1.mjs} +0 -0
- /package/dist/esm/api/types/{Driver1Output.mjs → Task1.mjs} +0 -0
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.380.0",
|
|
70
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.380.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) });
|
|
@@ -38,7 +38,7 @@ export declare class Drivers {
|
|
|
38
38
|
* @example
|
|
39
39
|
* await client.drivers.getForCallerV1()
|
|
40
40
|
*/
|
|
41
|
-
getForCallerV1(requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.
|
|
41
|
+
getForCallerV1(requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.Driver1>;
|
|
42
42
|
private __getForCallerV1;
|
|
43
43
|
/**
|
|
44
44
|
* Retrieves detailed driver information by driver ID within the organization. | () -> (Driver1)
|
|
@@ -51,7 +51,7 @@ export declare class Drivers {
|
|
|
51
51
|
* @example
|
|
52
52
|
* await client.drivers.getByDriverIdV1("driver_id")
|
|
53
53
|
*/
|
|
54
|
-
getByDriverIdV1(driverId: string, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.
|
|
54
|
+
getByDriverIdV1(driverId: string, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.Driver1>;
|
|
55
55
|
private __getByDriverIdV1;
|
|
56
56
|
/**
|
|
57
57
|
* Lists all organization members paired with their driver information if they are drivers. Filter by availability. | () -> (list[OrgMembersAndDrivers])
|
|
@@ -83,7 +83,7 @@ export declare class Drivers {
|
|
|
83
83
|
* available_according_to_operators: true
|
|
84
84
|
* })
|
|
85
85
|
*/
|
|
86
|
-
listV1(request?: Chrt.DriversListV1Request, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.
|
|
86
|
+
listV1(request?: Chrt.DriversListV1Request, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.Driver1[]>;
|
|
87
87
|
private __listV1;
|
|
88
88
|
/**
|
|
89
89
|
* Creates a new driver profile for the target user (defaults to caller). Drivers can create themselves; operators+ can create any org member. Courier orgs only. | (DriverClientCreate1) -> (PydanticObjectId)
|
|
@@ -6,8 +6,8 @@ export interface BillingLineItemGroupMessageWebhookPayload {
|
|
|
6
6
|
event_type?: "billing.line_item_group.message";
|
|
7
7
|
/** UTC timestamp when the event occurred */
|
|
8
8
|
event_timestamp: string;
|
|
9
|
-
/** The message that was added to the line item group */
|
|
10
|
-
message: Chrt.LineItemGroupMessage1;
|
|
11
9
|
/** The line item group the message was added to */
|
|
12
10
|
line_item_group_id: string;
|
|
11
|
+
/** The message that was added to the line item group */
|
|
12
|
+
message: Chrt.LineItemGroupMessage1;
|
|
13
13
|
}
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as Chrt from "../index.js";
|
|
5
4
|
export interface BillingLineItemGroupS3ObjectAddedWebhookPayload {
|
|
6
|
-
event_type?: "billing.line_item_group.
|
|
5
|
+
event_type?: "billing.line_item_group.file_added";
|
|
7
6
|
/** UTC timestamp when the event occurred */
|
|
8
7
|
event_timestamp: string;
|
|
9
|
-
/**
|
|
10
|
-
s3_object_metadata: Chrt.LineItemGroupS3ObjectMetadata1;
|
|
11
|
-
/** The line item group the S3 object was added to */
|
|
8
|
+
/** The line item group the file was added to */
|
|
12
9
|
line_item_group_id: string;
|
|
13
10
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as Chrt from "../index.js";
|
|
5
4
|
export interface BillingStatementOpenedWebhookPayload {
|
|
6
5
|
event_type?: "billing.statement.opened";
|
|
7
6
|
/** UTC timestamp when the event occurred */
|
|
8
7
|
event_timestamp: string;
|
|
9
8
|
/** The statement that was opened */
|
|
10
|
-
|
|
9
|
+
statement_id: string;
|
|
11
10
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as Chrt from "../index.js";
|
|
5
4
|
export interface BillingStatementPaidWebhookPayload {
|
|
6
5
|
event_type?: "billing.statement.paid";
|
|
7
6
|
/** UTC timestamp when the event occurred */
|
|
8
7
|
event_timestamp: string;
|
|
9
8
|
/** The statement that was paid */
|
|
10
|
-
|
|
9
|
+
statement_id: string;
|
|
11
10
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Chrt from "../index.js";
|
|
5
|
-
export interface
|
|
5
|
+
export interface Driver1 {
|
|
6
6
|
schema_version: number;
|
|
7
7
|
email_address_primary?: string | null;
|
|
8
8
|
email_address_secondary?: string | null;
|
|
@@ -6,14 +6,14 @@
|
|
|
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.
|
|
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";
|
|
10
10
|
export declare const NotificationEventsForOrgsEnum: {
|
|
11
11
|
readonly ShippingOrderStaged: "shipping.order.staged";
|
|
12
12
|
readonly ShippingOrderCompleted: "shipping.order.completed";
|
|
13
13
|
readonly ShippingOrderCancelled: "shipping.order.cancelled";
|
|
14
14
|
readonly ShippingTaskGroupCourierOrgAssigned: "shipping.task_group.courier_org_assigned";
|
|
15
15
|
readonly ShippingTaskGroupInProgress: "shipping.task_group.in_progress";
|
|
16
|
-
readonly
|
|
16
|
+
readonly ShippingTaskGroupFileAdded: "shipping.task_group.file_added";
|
|
17
17
|
readonly ShippingTaskGroupDriverAssigned: "shipping.task_group.driver_assigned";
|
|
18
18
|
readonly ShippingTaskGroupMessage: "shipping.task_group.message";
|
|
19
19
|
readonly ShippingTaskGroupTasksOrderingUpdated: "shipping.task_group.tasks_ordering_updated";
|
|
@@ -25,5 +25,5 @@ export declare const NotificationEventsForOrgsEnum: {
|
|
|
25
25
|
readonly BillingStatementOpened: "billing.statement.opened";
|
|
26
26
|
readonly BillingStatementPaid: "billing.statement.paid";
|
|
27
27
|
readonly BillingLineItemGroupMessage: "billing.line_item_group.message";
|
|
28
|
-
readonly
|
|
28
|
+
readonly BillingLineItemGroupFileAdded: "billing.line_item_group.file_added";
|
|
29
29
|
};
|
|
@@ -10,7 +10,7 @@ exports.NotificationEventsForOrgsEnum = {
|
|
|
10
10
|
ShippingOrderCancelled: "shipping.order.cancelled",
|
|
11
11
|
ShippingTaskGroupCourierOrgAssigned: "shipping.task_group.courier_org_assigned",
|
|
12
12
|
ShippingTaskGroupInProgress: "shipping.task_group.in_progress",
|
|
13
|
-
|
|
13
|
+
ShippingTaskGroupFileAdded: "shipping.task_group.file_added",
|
|
14
14
|
ShippingTaskGroupDriverAssigned: "shipping.task_group.driver_assigned",
|
|
15
15
|
ShippingTaskGroupMessage: "shipping.task_group.message",
|
|
16
16
|
ShippingTaskGroupTasksOrderingUpdated: "shipping.task_group.tasks_ordering_updated",
|
|
@@ -22,5 +22,5 @@ exports.NotificationEventsForOrgsEnum = {
|
|
|
22
22
|
BillingStatementOpened: "billing.statement.opened",
|
|
23
23
|
BillingStatementPaid: "billing.statement.paid",
|
|
24
24
|
BillingLineItemGroupMessage: "billing.line_item_group.message",
|
|
25
|
-
|
|
25
|
+
BillingLineItemGroupFileAdded: "billing.line_item_group.file_added",
|
|
26
26
|
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as Chrt from "../index.js";
|
|
5
4
|
export interface ShippingOrderCancelledWebhookPayload {
|
|
6
5
|
event_type?: "shipping.order.cancelled";
|
|
7
6
|
/** UTC timestamp when the event occurred */
|
|
8
7
|
event_timestamp: string;
|
|
9
8
|
/** The order that was cancelled */
|
|
10
|
-
|
|
9
|
+
order_id: string;
|
|
11
10
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as Chrt from "../index.js";
|
|
5
4
|
export interface ShippingOrderCompletedWebhookPayload {
|
|
6
5
|
event_type?: "shipping.order.completed";
|
|
7
6
|
/** UTC timestamp when the event occurred */
|
|
8
7
|
event_timestamp: string;
|
|
9
8
|
/** The order that was completed */
|
|
10
|
-
|
|
9
|
+
order_id: string;
|
|
11
10
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as Chrt from "../index.js";
|
|
5
4
|
export interface ShippingOrderStagedWebhookPayload {
|
|
6
5
|
event_type?: "shipping.order.staged";
|
|
7
6
|
/** UTC timestamp when the event occurred */
|
|
8
7
|
event_timestamp: string;
|
|
9
8
|
/** The order that was staged */
|
|
10
|
-
|
|
9
|
+
order_id: string;
|
|
11
10
|
}
|
|
@@ -11,5 +11,12 @@ export interface ShippingTaskAddedWebhookPayload {
|
|
|
11
11
|
/** The task group the task was added to */
|
|
12
12
|
task_group_id: string;
|
|
13
13
|
/** The task that was added */
|
|
14
|
-
|
|
14
|
+
task_id: string;
|
|
15
|
+
/** The task action type (e.g., PICKUP, DELIVER) */
|
|
16
|
+
action?: ShippingTaskAddedWebhookPayload.Action | null;
|
|
17
|
+
/** The location where the task is to be performed */
|
|
18
|
+
location?: Chrt.LocationFeature | null;
|
|
19
|
+
}
|
|
20
|
+
export declare namespace ShippingTaskAddedWebhookPayload {
|
|
21
|
+
type Action = Chrt.ChrtGroundCourierTaskActionEnum1 | Chrt.FlightTaskActionEnum1 | Chrt.OnboardCourierTaskActionEnum1;
|
|
15
22
|
}
|
|
@@ -11,5 +11,12 @@ export interface ShippingTaskCompletedWebhookPayload {
|
|
|
11
11
|
/** The task group containing the task */
|
|
12
12
|
task_group_id: string;
|
|
13
13
|
/** The task that was completed */
|
|
14
|
-
|
|
14
|
+
task_id: string;
|
|
15
|
+
/** The task action type (e.g., PICKUP, DELIVER) */
|
|
16
|
+
action?: ShippingTaskCompletedWebhookPayload.Action | null;
|
|
17
|
+
/** The location where the task was performed */
|
|
18
|
+
location?: Chrt.LocationFeature | null;
|
|
19
|
+
}
|
|
20
|
+
export declare namespace ShippingTaskCompletedWebhookPayload {
|
|
21
|
+
type Action = Chrt.ChrtGroundCourierTaskActionEnum1 | Chrt.FlightTaskActionEnum1 | Chrt.OnboardCourierTaskActionEnum1;
|
|
15
22
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Chrt from "../index.js";
|
|
4
5
|
export interface ShippingTaskDeletedWebhookPayload {
|
|
5
6
|
event_type?: "shipping.task.deleted";
|
|
6
7
|
/** UTC timestamp when the event occurred */
|
|
@@ -11,4 +12,11 @@ export interface ShippingTaskDeletedWebhookPayload {
|
|
|
11
12
|
task_group_id: string;
|
|
12
13
|
/** The ID of the task that was deleted */
|
|
13
14
|
task_id: string;
|
|
15
|
+
/** The task action type (e.g., PICKUP, DELIVER) */
|
|
16
|
+
action?: ShippingTaskDeletedWebhookPayload.Action | null;
|
|
17
|
+
/** The location where the task was to be performed */
|
|
18
|
+
location?: Chrt.LocationFeature | null;
|
|
19
|
+
}
|
|
20
|
+
export declare namespace ShippingTaskDeletedWebhookPayload {
|
|
21
|
+
type Action = Chrt.ChrtGroundCourierTaskActionEnum1 | Chrt.FlightTaskActionEnum1 | Chrt.OnboardCourierTaskActionEnum1;
|
|
14
22
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as Chrt from "../index.js";
|
|
5
4
|
export interface ShippingTaskGroupDriverAssignedWebhookPayload {
|
|
6
5
|
event_type?: "shipping.task_group.driver_assigned";
|
|
7
6
|
/** UTC timestamp when the event occurred */
|
|
@@ -11,5 +10,5 @@ export interface ShippingTaskGroupDriverAssignedWebhookPayload {
|
|
|
11
10
|
/** The specific task group the driver was assigned to */
|
|
12
11
|
task_group_id: string;
|
|
13
12
|
/** The driver that was assigned */
|
|
14
|
-
|
|
13
|
+
driver_id: string;
|
|
15
14
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as Chrt from "../index.js";
|
|
5
4
|
export interface ShippingTaskGroupInProgressWebhookPayload {
|
|
6
5
|
event_type?: "shipping.task_group.in_progress";
|
|
7
6
|
/** UTC timestamp when the event occurred */
|
|
@@ -9,5 +8,5 @@ export interface ShippingTaskGroupInProgressWebhookPayload {
|
|
|
9
8
|
/** The order containing the task group */
|
|
10
9
|
order_id: string;
|
|
11
10
|
/** The task group that is now in progress */
|
|
12
|
-
|
|
11
|
+
task_group_id: string;
|
|
13
12
|
}
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as Chrt from "../index.js";
|
|
5
4
|
export interface ShippingTaskGroupS3ObjectAddedWebhookPayload {
|
|
6
|
-
event_type?: "shipping.task_group.
|
|
5
|
+
event_type?: "shipping.task_group.file_added";
|
|
7
6
|
/** UTC timestamp when the event occurred */
|
|
8
7
|
event_timestamp: string;
|
|
9
8
|
/** The order containing the task group */
|
|
10
9
|
order_id: string;
|
|
11
|
-
/** The task group the
|
|
10
|
+
/** The task group the file was added to */
|
|
12
11
|
task_group_id: string;
|
|
13
|
-
/** Metadata for the S3 object that was added */
|
|
14
|
-
s3_object_metadata: Chrt.TaskGroupS3ObjectMetadata1;
|
|
15
12
|
}
|
|
@@ -11,5 +11,12 @@ export interface ShippingTaskSkippedWebhookPayload {
|
|
|
11
11
|
/** The task group containing the task */
|
|
12
12
|
task_group_id: string;
|
|
13
13
|
/** The task that was skipped */
|
|
14
|
-
|
|
14
|
+
task_id: string;
|
|
15
|
+
/** The task action type (e.g., PICKUP, DELIVER) */
|
|
16
|
+
action?: ShippingTaskSkippedWebhookPayload.Action | null;
|
|
17
|
+
/** The location where the task was to be performed */
|
|
18
|
+
location?: Chrt.LocationFeature | null;
|
|
19
|
+
}
|
|
20
|
+
export declare namespace ShippingTaskSkippedWebhookPayload {
|
|
21
|
+
type Action = Chrt.ChrtGroundCourierTaskActionEnum1 | Chrt.FlightTaskActionEnum1 | Chrt.OnboardCourierTaskActionEnum1;
|
|
15
22
|
}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Chrt from "../index.js";
|
|
5
|
-
export interface
|
|
5
|
+
export interface Task1 {
|
|
6
6
|
schema_version: number;
|
|
7
7
|
location?: Chrt.LocationFeature | null;
|
|
8
|
-
action?:
|
|
8
|
+
action?: Task1.Action | null;
|
|
9
9
|
time_windows?: Chrt.TimeWindow1[];
|
|
10
10
|
order_placer_comments?: string | null;
|
|
11
11
|
directory_entry_ids?: string[];
|
|
@@ -31,6 +31,6 @@ export interface Task1Input {
|
|
|
31
31
|
exception_at_timestamp?: string | null;
|
|
32
32
|
order_cancelled?: boolean;
|
|
33
33
|
}
|
|
34
|
-
export declare namespace
|
|
34
|
+
export declare namespace Task1 {
|
|
35
35
|
type Action = Chrt.ChrtGroundCourierTaskActionEnum1 | Chrt.FlightTaskActionEnum1 | Chrt.OnboardCourierTaskActionEnum1;
|
|
36
36
|
}
|
|
@@ -5,7 +5,7 @@ import * as Chrt from "../index.js";
|
|
|
5
5
|
export interface TaskGroupExpanded {
|
|
6
6
|
task_group: Chrt.TaskGroup1;
|
|
7
7
|
tasks_expanded?: Chrt.TaskExpanded[] | null;
|
|
8
|
-
driver?: Chrt.
|
|
8
|
+
driver?: Chrt.Driver1 | null;
|
|
9
9
|
courier_org_company_name?: string | null;
|
|
10
10
|
courier_org_handle?: string | null;
|
|
11
11
|
forwarder_org_company_name?: string | null;
|
|
@@ -26,8 +26,7 @@ export * from "./CreateStripeConnectAccountRes.js";
|
|
|
26
26
|
export * from "./DecodedJwtWithOrgAndUserId.js";
|
|
27
27
|
export * from "./Device1.js";
|
|
28
28
|
export * from "./DirectoryEntry1.js";
|
|
29
|
-
export * from "./
|
|
30
|
-
export * from "./Driver1Output.js";
|
|
29
|
+
export * from "./Driver1.js";
|
|
31
30
|
export * from "./DriverStatusEnum.js";
|
|
32
31
|
export * from "./DriverUpdateAvailabilityReq.js";
|
|
33
32
|
export * from "./DriverUpdateRes.js";
|
|
@@ -129,8 +128,7 @@ export * from "./StatementStatusEnum1.js";
|
|
|
129
128
|
export * from "./StatementsListRes.js";
|
|
130
129
|
export * from "./StripeConnectAccountOnboardingLinkRes.js";
|
|
131
130
|
export * from "./StripeConnectInvoiceStatusEnum.js";
|
|
132
|
-
export * from "./
|
|
133
|
-
export * from "./Task1Output.js";
|
|
131
|
+
export * from "./Task1.js";
|
|
134
132
|
export * from "./TaskArtifact1.js";
|
|
135
133
|
export * from "./TaskArtifactClientCreate1.js";
|
|
136
134
|
export * from "./TaskArtifactS3ObjectMetadata1.js";
|
|
@@ -42,8 +42,7 @@ __exportStar(require("./CreateStripeConnectAccountRes.js"), exports);
|
|
|
42
42
|
__exportStar(require("./DecodedJwtWithOrgAndUserId.js"), exports);
|
|
43
43
|
__exportStar(require("./Device1.js"), exports);
|
|
44
44
|
__exportStar(require("./DirectoryEntry1.js"), exports);
|
|
45
|
-
__exportStar(require("./
|
|
46
|
-
__exportStar(require("./Driver1Output.js"), exports);
|
|
45
|
+
__exportStar(require("./Driver1.js"), exports);
|
|
47
46
|
__exportStar(require("./DriverStatusEnum.js"), exports);
|
|
48
47
|
__exportStar(require("./DriverUpdateAvailabilityReq.js"), exports);
|
|
49
48
|
__exportStar(require("./DriverUpdateRes.js"), exports);
|
|
@@ -145,8 +144,7 @@ __exportStar(require("./StatementStatusEnum1.js"), exports);
|
|
|
145
144
|
__exportStar(require("./StatementsListRes.js"), exports);
|
|
146
145
|
__exportStar(require("./StripeConnectAccountOnboardingLinkRes.js"), exports);
|
|
147
146
|
__exportStar(require("./StripeConnectInvoiceStatusEnum.js"), exports);
|
|
148
|
-
__exportStar(require("./
|
|
149
|
-
__exportStar(require("./Task1Output.js"), exports);
|
|
147
|
+
__exportStar(require("./Task1.js"), exports);
|
|
150
148
|
__exportStar(require("./TaskArtifact1.js"), exports);
|
|
151
149
|
__exportStar(require("./TaskArtifactClientCreate1.js"), exports);
|
|
152
150
|
__exportStar(require("./TaskArtifactS3ObjectMetadata1.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.380.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.380.0",
|
|
34
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.380.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) });
|
|
@@ -38,7 +38,7 @@ export declare class Drivers {
|
|
|
38
38
|
* @example
|
|
39
39
|
* await client.drivers.getForCallerV1()
|
|
40
40
|
*/
|
|
41
|
-
getForCallerV1(requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.
|
|
41
|
+
getForCallerV1(requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.Driver1>;
|
|
42
42
|
private __getForCallerV1;
|
|
43
43
|
/**
|
|
44
44
|
* Retrieves detailed driver information by driver ID within the organization. | () -> (Driver1)
|
|
@@ -51,7 +51,7 @@ export declare class Drivers {
|
|
|
51
51
|
* @example
|
|
52
52
|
* await client.drivers.getByDriverIdV1("driver_id")
|
|
53
53
|
*/
|
|
54
|
-
getByDriverIdV1(driverId: string, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.
|
|
54
|
+
getByDriverIdV1(driverId: string, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.Driver1>;
|
|
55
55
|
private __getByDriverIdV1;
|
|
56
56
|
/**
|
|
57
57
|
* Lists all organization members paired with their driver information if they are drivers. Filter by availability. | () -> (list[OrgMembersAndDrivers])
|
|
@@ -83,7 +83,7 @@ export declare class Drivers {
|
|
|
83
83
|
* available_according_to_operators: true
|
|
84
84
|
* })
|
|
85
85
|
*/
|
|
86
|
-
listV1(request?: Chrt.DriversListV1Request, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.
|
|
86
|
+
listV1(request?: Chrt.DriversListV1Request, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.Driver1[]>;
|
|
87
87
|
private __listV1;
|
|
88
88
|
/**
|
|
89
89
|
* Creates a new driver profile for the target user (defaults to caller). Drivers can create themselves; operators+ can create any org member. Courier orgs only. | (DriverClientCreate1) -> (PydanticObjectId)
|
|
@@ -6,8 +6,8 @@ export interface BillingLineItemGroupMessageWebhookPayload {
|
|
|
6
6
|
event_type?: "billing.line_item_group.message";
|
|
7
7
|
/** UTC timestamp when the event occurred */
|
|
8
8
|
event_timestamp: string;
|
|
9
|
-
/** The message that was added to the line item group */
|
|
10
|
-
message: Chrt.LineItemGroupMessage1;
|
|
11
9
|
/** The line item group the message was added to */
|
|
12
10
|
line_item_group_id: string;
|
|
11
|
+
/** The message that was added to the line item group */
|
|
12
|
+
message: Chrt.LineItemGroupMessage1;
|
|
13
13
|
}
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as Chrt from "../index.mjs";
|
|
5
4
|
export interface BillingLineItemGroupS3ObjectAddedWebhookPayload {
|
|
6
|
-
event_type?: "billing.line_item_group.
|
|
5
|
+
event_type?: "billing.line_item_group.file_added";
|
|
7
6
|
/** UTC timestamp when the event occurred */
|
|
8
7
|
event_timestamp: string;
|
|
9
|
-
/**
|
|
10
|
-
s3_object_metadata: Chrt.LineItemGroupS3ObjectMetadata1;
|
|
11
|
-
/** The line item group the S3 object was added to */
|
|
8
|
+
/** The line item group the file was added to */
|
|
12
9
|
line_item_group_id: string;
|
|
13
10
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as Chrt from "../index.mjs";
|
|
5
4
|
export interface BillingStatementOpenedWebhookPayload {
|
|
6
5
|
event_type?: "billing.statement.opened";
|
|
7
6
|
/** UTC timestamp when the event occurred */
|
|
8
7
|
event_timestamp: string;
|
|
9
8
|
/** The statement that was opened */
|
|
10
|
-
|
|
9
|
+
statement_id: string;
|
|
11
10
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as Chrt from "../index.mjs";
|
|
5
4
|
export interface BillingStatementPaidWebhookPayload {
|
|
6
5
|
event_type?: "billing.statement.paid";
|
|
7
6
|
/** UTC timestamp when the event occurred */
|
|
8
7
|
event_timestamp: string;
|
|
9
8
|
/** The statement that was paid */
|
|
10
|
-
|
|
9
|
+
statement_id: string;
|
|
11
10
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Chrt from "../index.mjs";
|
|
5
|
-
export interface
|
|
5
|
+
export interface Driver1 {
|
|
6
6
|
schema_version: number;
|
|
7
7
|
email_address_primary?: string | null;
|
|
8
8
|
email_address_secondary?: string | null;
|
|
@@ -6,14 +6,14 @@
|
|
|
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.
|
|
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";
|
|
10
10
|
export declare const NotificationEventsForOrgsEnum: {
|
|
11
11
|
readonly ShippingOrderStaged: "shipping.order.staged";
|
|
12
12
|
readonly ShippingOrderCompleted: "shipping.order.completed";
|
|
13
13
|
readonly ShippingOrderCancelled: "shipping.order.cancelled";
|
|
14
14
|
readonly ShippingTaskGroupCourierOrgAssigned: "shipping.task_group.courier_org_assigned";
|
|
15
15
|
readonly ShippingTaskGroupInProgress: "shipping.task_group.in_progress";
|
|
16
|
-
readonly
|
|
16
|
+
readonly ShippingTaskGroupFileAdded: "shipping.task_group.file_added";
|
|
17
17
|
readonly ShippingTaskGroupDriverAssigned: "shipping.task_group.driver_assigned";
|
|
18
18
|
readonly ShippingTaskGroupMessage: "shipping.task_group.message";
|
|
19
19
|
readonly ShippingTaskGroupTasksOrderingUpdated: "shipping.task_group.tasks_ordering_updated";
|
|
@@ -25,5 +25,5 @@ export declare const NotificationEventsForOrgsEnum: {
|
|
|
25
25
|
readonly BillingStatementOpened: "billing.statement.opened";
|
|
26
26
|
readonly BillingStatementPaid: "billing.statement.paid";
|
|
27
27
|
readonly BillingLineItemGroupMessage: "billing.line_item_group.message";
|
|
28
|
-
readonly
|
|
28
|
+
readonly BillingLineItemGroupFileAdded: "billing.line_item_group.file_added";
|
|
29
29
|
};
|
|
@@ -7,7 +7,7 @@ export const NotificationEventsForOrgsEnum = {
|
|
|
7
7
|
ShippingOrderCancelled: "shipping.order.cancelled",
|
|
8
8
|
ShippingTaskGroupCourierOrgAssigned: "shipping.task_group.courier_org_assigned",
|
|
9
9
|
ShippingTaskGroupInProgress: "shipping.task_group.in_progress",
|
|
10
|
-
|
|
10
|
+
ShippingTaskGroupFileAdded: "shipping.task_group.file_added",
|
|
11
11
|
ShippingTaskGroupDriverAssigned: "shipping.task_group.driver_assigned",
|
|
12
12
|
ShippingTaskGroupMessage: "shipping.task_group.message",
|
|
13
13
|
ShippingTaskGroupTasksOrderingUpdated: "shipping.task_group.tasks_ordering_updated",
|
|
@@ -19,5 +19,5 @@ export const NotificationEventsForOrgsEnum = {
|
|
|
19
19
|
BillingStatementOpened: "billing.statement.opened",
|
|
20
20
|
BillingStatementPaid: "billing.statement.paid",
|
|
21
21
|
BillingLineItemGroupMessage: "billing.line_item_group.message",
|
|
22
|
-
|
|
22
|
+
BillingLineItemGroupFileAdded: "billing.line_item_group.file_added",
|
|
23
23
|
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as Chrt from "../index.mjs";
|
|
5
4
|
export interface ShippingOrderCancelledWebhookPayload {
|
|
6
5
|
event_type?: "shipping.order.cancelled";
|
|
7
6
|
/** UTC timestamp when the event occurred */
|
|
8
7
|
event_timestamp: string;
|
|
9
8
|
/** The order that was cancelled */
|
|
10
|
-
|
|
9
|
+
order_id: string;
|
|
11
10
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as Chrt from "../index.mjs";
|
|
5
4
|
export interface ShippingOrderCompletedWebhookPayload {
|
|
6
5
|
event_type?: "shipping.order.completed";
|
|
7
6
|
/** UTC timestamp when the event occurred */
|
|
8
7
|
event_timestamp: string;
|
|
9
8
|
/** The order that was completed */
|
|
10
|
-
|
|
9
|
+
order_id: string;
|
|
11
10
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as Chrt from "../index.mjs";
|
|
5
4
|
export interface ShippingOrderStagedWebhookPayload {
|
|
6
5
|
event_type?: "shipping.order.staged";
|
|
7
6
|
/** UTC timestamp when the event occurred */
|
|
8
7
|
event_timestamp: string;
|
|
9
8
|
/** The order that was staged */
|
|
10
|
-
|
|
9
|
+
order_id: string;
|
|
11
10
|
}
|
|
@@ -11,5 +11,12 @@ export interface ShippingTaskAddedWebhookPayload {
|
|
|
11
11
|
/** The task group the task was added to */
|
|
12
12
|
task_group_id: string;
|
|
13
13
|
/** The task that was added */
|
|
14
|
-
|
|
14
|
+
task_id: string;
|
|
15
|
+
/** The task action type (e.g., PICKUP, DELIVER) */
|
|
16
|
+
action?: ShippingTaskAddedWebhookPayload.Action | null;
|
|
17
|
+
/** The location where the task is to be performed */
|
|
18
|
+
location?: Chrt.LocationFeature | null;
|
|
19
|
+
}
|
|
20
|
+
export declare namespace ShippingTaskAddedWebhookPayload {
|
|
21
|
+
type Action = Chrt.ChrtGroundCourierTaskActionEnum1 | Chrt.FlightTaskActionEnum1 | Chrt.OnboardCourierTaskActionEnum1;
|
|
15
22
|
}
|
|
@@ -11,5 +11,12 @@ export interface ShippingTaskCompletedWebhookPayload {
|
|
|
11
11
|
/** The task group containing the task */
|
|
12
12
|
task_group_id: string;
|
|
13
13
|
/** The task that was completed */
|
|
14
|
-
|
|
14
|
+
task_id: string;
|
|
15
|
+
/** The task action type (e.g., PICKUP, DELIVER) */
|
|
16
|
+
action?: ShippingTaskCompletedWebhookPayload.Action | null;
|
|
17
|
+
/** The location where the task was performed */
|
|
18
|
+
location?: Chrt.LocationFeature | null;
|
|
19
|
+
}
|
|
20
|
+
export declare namespace ShippingTaskCompletedWebhookPayload {
|
|
21
|
+
type Action = Chrt.ChrtGroundCourierTaskActionEnum1 | Chrt.FlightTaskActionEnum1 | Chrt.OnboardCourierTaskActionEnum1;
|
|
15
22
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Chrt from "../index.mjs";
|
|
4
5
|
export interface ShippingTaskDeletedWebhookPayload {
|
|
5
6
|
event_type?: "shipping.task.deleted";
|
|
6
7
|
/** UTC timestamp when the event occurred */
|
|
@@ -11,4 +12,11 @@ export interface ShippingTaskDeletedWebhookPayload {
|
|
|
11
12
|
task_group_id: string;
|
|
12
13
|
/** The ID of the task that was deleted */
|
|
13
14
|
task_id: string;
|
|
15
|
+
/** The task action type (e.g., PICKUP, DELIVER) */
|
|
16
|
+
action?: ShippingTaskDeletedWebhookPayload.Action | null;
|
|
17
|
+
/** The location where the task was to be performed */
|
|
18
|
+
location?: Chrt.LocationFeature | null;
|
|
19
|
+
}
|
|
20
|
+
export declare namespace ShippingTaskDeletedWebhookPayload {
|
|
21
|
+
type Action = Chrt.ChrtGroundCourierTaskActionEnum1 | Chrt.FlightTaskActionEnum1 | Chrt.OnboardCourierTaskActionEnum1;
|
|
14
22
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as Chrt from "../index.mjs";
|
|
5
4
|
export interface ShippingTaskGroupDriverAssignedWebhookPayload {
|
|
6
5
|
event_type?: "shipping.task_group.driver_assigned";
|
|
7
6
|
/** UTC timestamp when the event occurred */
|
|
@@ -11,5 +10,5 @@ export interface ShippingTaskGroupDriverAssignedWebhookPayload {
|
|
|
11
10
|
/** The specific task group the driver was assigned to */
|
|
12
11
|
task_group_id: string;
|
|
13
12
|
/** The driver that was assigned */
|
|
14
|
-
|
|
13
|
+
driver_id: string;
|
|
15
14
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as Chrt from "../index.mjs";
|
|
5
4
|
export interface ShippingTaskGroupInProgressWebhookPayload {
|
|
6
5
|
event_type?: "shipping.task_group.in_progress";
|
|
7
6
|
/** UTC timestamp when the event occurred */
|
|
@@ -9,5 +8,5 @@ export interface ShippingTaskGroupInProgressWebhookPayload {
|
|
|
9
8
|
/** The order containing the task group */
|
|
10
9
|
order_id: string;
|
|
11
10
|
/** The task group that is now in progress */
|
|
12
|
-
|
|
11
|
+
task_group_id: string;
|
|
13
12
|
}
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as Chrt from "../index.mjs";
|
|
5
4
|
export interface ShippingTaskGroupS3ObjectAddedWebhookPayload {
|
|
6
|
-
event_type?: "shipping.task_group.
|
|
5
|
+
event_type?: "shipping.task_group.file_added";
|
|
7
6
|
/** UTC timestamp when the event occurred */
|
|
8
7
|
event_timestamp: string;
|
|
9
8
|
/** The order containing the task group */
|
|
10
9
|
order_id: string;
|
|
11
|
-
/** The task group the
|
|
10
|
+
/** The task group the file was added to */
|
|
12
11
|
task_group_id: string;
|
|
13
|
-
/** Metadata for the S3 object that was added */
|
|
14
|
-
s3_object_metadata: Chrt.TaskGroupS3ObjectMetadata1;
|
|
15
12
|
}
|
|
@@ -11,5 +11,12 @@ export interface ShippingTaskSkippedWebhookPayload {
|
|
|
11
11
|
/** The task group containing the task */
|
|
12
12
|
task_group_id: string;
|
|
13
13
|
/** The task that was skipped */
|
|
14
|
-
|
|
14
|
+
task_id: string;
|
|
15
|
+
/** The task action type (e.g., PICKUP, DELIVER) */
|
|
16
|
+
action?: ShippingTaskSkippedWebhookPayload.Action | null;
|
|
17
|
+
/** The location where the task was to be performed */
|
|
18
|
+
location?: Chrt.LocationFeature | null;
|
|
19
|
+
}
|
|
20
|
+
export declare namespace ShippingTaskSkippedWebhookPayload {
|
|
21
|
+
type Action = Chrt.ChrtGroundCourierTaskActionEnum1 | Chrt.FlightTaskActionEnum1 | Chrt.OnboardCourierTaskActionEnum1;
|
|
15
22
|
}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Chrt from "../index.mjs";
|
|
5
|
-
export interface
|
|
5
|
+
export interface Task1 {
|
|
6
6
|
schema_version: number;
|
|
7
7
|
location?: Chrt.LocationFeature | null;
|
|
8
|
-
action?:
|
|
8
|
+
action?: Task1.Action | null;
|
|
9
9
|
time_windows?: Chrt.TimeWindow1[];
|
|
10
10
|
order_placer_comments?: string | null;
|
|
11
11
|
directory_entry_ids?: string[];
|
|
@@ -31,6 +31,6 @@ export interface Task1Input {
|
|
|
31
31
|
exception_at_timestamp?: string | null;
|
|
32
32
|
order_cancelled?: boolean;
|
|
33
33
|
}
|
|
34
|
-
export declare namespace
|
|
34
|
+
export declare namespace Task1 {
|
|
35
35
|
type Action = Chrt.ChrtGroundCourierTaskActionEnum1 | Chrt.FlightTaskActionEnum1 | Chrt.OnboardCourierTaskActionEnum1;
|
|
36
36
|
}
|
|
@@ -5,7 +5,7 @@ import * as Chrt from "../index.mjs";
|
|
|
5
5
|
export interface TaskGroupExpanded {
|
|
6
6
|
task_group: Chrt.TaskGroup1;
|
|
7
7
|
tasks_expanded?: Chrt.TaskExpanded[] | null;
|
|
8
|
-
driver?: Chrt.
|
|
8
|
+
driver?: Chrt.Driver1 | null;
|
|
9
9
|
courier_org_company_name?: string | null;
|
|
10
10
|
courier_org_handle?: string | null;
|
|
11
11
|
forwarder_org_company_name?: string | null;
|
|
@@ -26,8 +26,7 @@ export * from "./CreateStripeConnectAccountRes.mjs";
|
|
|
26
26
|
export * from "./DecodedJwtWithOrgAndUserId.mjs";
|
|
27
27
|
export * from "./Device1.mjs";
|
|
28
28
|
export * from "./DirectoryEntry1.mjs";
|
|
29
|
-
export * from "./
|
|
30
|
-
export * from "./Driver1Output.mjs";
|
|
29
|
+
export * from "./Driver1.mjs";
|
|
31
30
|
export * from "./DriverStatusEnum.mjs";
|
|
32
31
|
export * from "./DriverUpdateAvailabilityReq.mjs";
|
|
33
32
|
export * from "./DriverUpdateRes.mjs";
|
|
@@ -129,8 +128,7 @@ export * from "./StatementStatusEnum1.mjs";
|
|
|
129
128
|
export * from "./StatementsListRes.mjs";
|
|
130
129
|
export * from "./StripeConnectAccountOnboardingLinkRes.mjs";
|
|
131
130
|
export * from "./StripeConnectInvoiceStatusEnum.mjs";
|
|
132
|
-
export * from "./
|
|
133
|
-
export * from "./Task1Output.mjs";
|
|
131
|
+
export * from "./Task1.mjs";
|
|
134
132
|
export * from "./TaskArtifact1.mjs";
|
|
135
133
|
export * from "./TaskArtifactClientCreate1.mjs";
|
|
136
134
|
export * from "./TaskArtifactS3ObjectMetadata1.mjs";
|
|
@@ -26,8 +26,7 @@ export * from "./CreateStripeConnectAccountRes.mjs";
|
|
|
26
26
|
export * from "./DecodedJwtWithOrgAndUserId.mjs";
|
|
27
27
|
export * from "./Device1.mjs";
|
|
28
28
|
export * from "./DirectoryEntry1.mjs";
|
|
29
|
-
export * from "./
|
|
30
|
-
export * from "./Driver1Output.mjs";
|
|
29
|
+
export * from "./Driver1.mjs";
|
|
31
30
|
export * from "./DriverStatusEnum.mjs";
|
|
32
31
|
export * from "./DriverUpdateAvailabilityReq.mjs";
|
|
33
32
|
export * from "./DriverUpdateRes.mjs";
|
|
@@ -129,8 +128,7 @@ export * from "./StatementStatusEnum1.mjs";
|
|
|
129
128
|
export * from "./StatementsListRes.mjs";
|
|
130
129
|
export * from "./StripeConnectAccountOnboardingLinkRes.mjs";
|
|
131
130
|
export * from "./StripeConnectInvoiceStatusEnum.mjs";
|
|
132
|
-
export * from "./
|
|
133
|
-
export * from "./Task1Output.mjs";
|
|
131
|
+
export * from "./Task1.mjs";
|
|
134
132
|
export * from "./TaskArtifact1.mjs";
|
|
135
133
|
export * from "./TaskArtifactClientCreate1.mjs";
|
|
136
134
|
export * from "./TaskArtifactS3ObjectMetadata1.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.380.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.
|
|
1
|
+
export const SDK_VERSION = "1.380.0";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -1373,7 +1373,7 @@ await client.flights.getFlightInfoForTaskV1("task_id");
|
|
|
1373
1373
|
|
|
1374
1374
|
## Drivers
|
|
1375
1375
|
|
|
1376
|
-
<details><summary><code>client.drivers.<a href="/src/api/resources/drivers/client/Client.ts">getForCallerV1</a>() -> Chrt.
|
|
1376
|
+
<details><summary><code>client.drivers.<a href="/src/api/resources/drivers/client/Client.ts">getForCallerV1</a>() -> Chrt.Driver1</code></summary>
|
|
1377
1377
|
<dl>
|
|
1378
1378
|
<dd>
|
|
1379
1379
|
|
|
@@ -1428,7 +1428,7 @@ await client.drivers.getForCallerV1();
|
|
|
1428
1428
|
</dl>
|
|
1429
1429
|
</details>
|
|
1430
1430
|
|
|
1431
|
-
<details><summary><code>client.drivers.<a href="/src/api/resources/drivers/client/Client.ts">getByDriverIdV1</a>(driverId) -> Chrt.
|
|
1431
|
+
<details><summary><code>client.drivers.<a href="/src/api/resources/drivers/client/Client.ts">getByDriverIdV1</a>(driverId) -> Chrt.Driver1</code></summary>
|
|
1432
1432
|
<dl>
|
|
1433
1433
|
<dd>
|
|
1434
1434
|
|
|
@@ -1557,7 +1557,7 @@ await client.drivers.listOrgMembersAndDriversV1({
|
|
|
1557
1557
|
</dl>
|
|
1558
1558
|
</details>
|
|
1559
1559
|
|
|
1560
|
-
<details><summary><code>client.drivers.<a href="/src/api/resources/drivers/client/Client.ts">listV1</a>({ ...params }) -> Chrt.
|
|
1560
|
+
<details><summary><code>client.drivers.<a href="/src/api/resources/drivers/client/Client.ts">listV1</a>({ ...params }) -> Chrt.Driver1[]</code></summary>
|
|
1561
1561
|
<dl>
|
|
1562
1562
|
<dd>
|
|
1563
1563
|
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Chrt from "../index.js";
|
|
5
|
-
export interface Driver1Output {
|
|
6
|
-
schema_version: number;
|
|
7
|
-
email_address_primary?: string | null;
|
|
8
|
-
email_address_secondary?: string | null;
|
|
9
|
-
phone_number_primary?: string | null;
|
|
10
|
-
phone_number_secondary?: string | null;
|
|
11
|
-
first_name?: string | null;
|
|
12
|
-
last_name?: string | null;
|
|
13
|
-
vehicle_types?: Chrt.VehicleTypeEnum[];
|
|
14
|
-
_id: string;
|
|
15
|
-
/** Must be a string starting with `org_` */
|
|
16
|
-
org_id: string;
|
|
17
|
-
/** Must be a string starting with `user_` */
|
|
18
|
-
user_id: string;
|
|
19
|
-
status?: Chrt.DriverStatusEnum;
|
|
20
|
-
available_according_to_driver?: boolean;
|
|
21
|
-
available_according_to_operators?: boolean;
|
|
22
|
-
active_task_group_ids?: string[];
|
|
23
|
-
last_seen_at_location?: Chrt.LocationFeature | null;
|
|
24
|
-
last_seen_at_timestamp?: string | null;
|
|
25
|
-
default_rate_sheet__routed?: string | null;
|
|
26
|
-
default_rate_sheet__on_demand?: string | null;
|
|
27
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Chrt from "../index.js";
|
|
5
|
-
export interface Task1Output {
|
|
6
|
-
schema_version: number;
|
|
7
|
-
location?: Chrt.LocationFeature | null;
|
|
8
|
-
action?: Task1Output.Action | null;
|
|
9
|
-
time_windows?: Chrt.TimeWindow1[];
|
|
10
|
-
order_placer_comments?: string | null;
|
|
11
|
-
directory_entry_ids?: string[];
|
|
12
|
-
_id: string;
|
|
13
|
-
order_id: string;
|
|
14
|
-
order_short_id: string;
|
|
15
|
-
task_group_id: string;
|
|
16
|
-
/** Must be a string starting with `org_` */
|
|
17
|
-
created_by_org_id: string;
|
|
18
|
-
/** Must be a string starting with `user_` */
|
|
19
|
-
created_by_user_id: string;
|
|
20
|
-
/** Must be a string starting with `org_` */
|
|
21
|
-
completed_by_org_id?: string | null;
|
|
22
|
-
/** Must be a string starting with `user_` */
|
|
23
|
-
completed_by_user_id?: string | null;
|
|
24
|
-
cargo_ids?: string[];
|
|
25
|
-
task_artifact_ids?: string[];
|
|
26
|
-
status?: Chrt.TaskStatusEnum1;
|
|
27
|
-
draft_started_at_timestamp: string;
|
|
28
|
-
staged_at_timestamp?: string | null;
|
|
29
|
-
completed_at_timestamp?: string | null;
|
|
30
|
-
skipped_at_timestamp?: string | null;
|
|
31
|
-
exception_at_timestamp?: string | null;
|
|
32
|
-
order_cancelled?: boolean;
|
|
33
|
-
}
|
|
34
|
-
export declare namespace Task1Output {
|
|
35
|
-
type Action = Chrt.ChrtGroundCourierTaskActionEnum1 | Chrt.FlightTaskActionEnum1 | Chrt.OnboardCourierTaskActionEnum1;
|
|
36
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Chrt from "../index.mjs";
|
|
5
|
-
export interface Driver1Output {
|
|
6
|
-
schema_version: number;
|
|
7
|
-
email_address_primary?: string | null;
|
|
8
|
-
email_address_secondary?: string | null;
|
|
9
|
-
phone_number_primary?: string | null;
|
|
10
|
-
phone_number_secondary?: string | null;
|
|
11
|
-
first_name?: string | null;
|
|
12
|
-
last_name?: string | null;
|
|
13
|
-
vehicle_types?: Chrt.VehicleTypeEnum[];
|
|
14
|
-
_id: string;
|
|
15
|
-
/** Must be a string starting with `org_` */
|
|
16
|
-
org_id: string;
|
|
17
|
-
/** Must be a string starting with `user_` */
|
|
18
|
-
user_id: string;
|
|
19
|
-
status?: Chrt.DriverStatusEnum;
|
|
20
|
-
available_according_to_driver?: boolean;
|
|
21
|
-
available_according_to_operators?: boolean;
|
|
22
|
-
active_task_group_ids?: string[];
|
|
23
|
-
last_seen_at_location?: Chrt.LocationFeature | null;
|
|
24
|
-
last_seen_at_timestamp?: string | null;
|
|
25
|
-
default_rate_sheet__routed?: string | null;
|
|
26
|
-
default_rate_sheet__on_demand?: string | null;
|
|
27
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Chrt from "../index.mjs";
|
|
5
|
-
export interface Task1Output {
|
|
6
|
-
schema_version: number;
|
|
7
|
-
location?: Chrt.LocationFeature | null;
|
|
8
|
-
action?: Task1Output.Action | null;
|
|
9
|
-
time_windows?: Chrt.TimeWindow1[];
|
|
10
|
-
order_placer_comments?: string | null;
|
|
11
|
-
directory_entry_ids?: string[];
|
|
12
|
-
_id: string;
|
|
13
|
-
order_id: string;
|
|
14
|
-
order_short_id: string;
|
|
15
|
-
task_group_id: string;
|
|
16
|
-
/** Must be a string starting with `org_` */
|
|
17
|
-
created_by_org_id: string;
|
|
18
|
-
/** Must be a string starting with `user_` */
|
|
19
|
-
created_by_user_id: string;
|
|
20
|
-
/** Must be a string starting with `org_` */
|
|
21
|
-
completed_by_org_id?: string | null;
|
|
22
|
-
/** Must be a string starting with `user_` */
|
|
23
|
-
completed_by_user_id?: string | null;
|
|
24
|
-
cargo_ids?: string[];
|
|
25
|
-
task_artifact_ids?: string[];
|
|
26
|
-
status?: Chrt.TaskStatusEnum1;
|
|
27
|
-
draft_started_at_timestamp: string;
|
|
28
|
-
staged_at_timestamp?: string | null;
|
|
29
|
-
completed_at_timestamp?: string | null;
|
|
30
|
-
skipped_at_timestamp?: string | null;
|
|
31
|
-
exception_at_timestamp?: string | null;
|
|
32
|
-
order_cancelled?: boolean;
|
|
33
|
-
}
|
|
34
|
-
export declare namespace Task1Output {
|
|
35
|
-
type Action = Chrt.ChrtGroundCourierTaskActionEnum1 | Chrt.FlightTaskActionEnum1 | Chrt.OnboardCourierTaskActionEnum1;
|
|
36
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|