@chrt-inc/typescript-sdk 1.306.0 → 1.309.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 +1 -1
- package/dist/cjs/api/resources/drivers/client/Client.js +1 -1
- package/dist/cjs/api/resources/drivers/client/requests/DriverCreateReq.d.ts +1 -1
- package/dist/cjs/api/resources/shipperPayCourierRateSheets/client/requests/ShipperPayCourierRateSheetClientCreate1.d.ts +3 -3
- package/dist/cjs/api/types/Cargo1.d.ts +1 -1
- package/dist/cjs/api/types/Order1.d.ts +1 -1
- package/dist/cjs/api/types/OrgMemberDetails.d.ts +2 -2
- package/dist/cjs/api/types/OrgRoleEnum.d.ts +7 -6
- package/dist/cjs/api/types/OrgRoleEnum.js +4 -4
- package/dist/cjs/api/types/ShipperPayCourierRateSheet1.d.ts +3 -3
- package/dist/cjs/api/types/Task1.d.ts +7 -7
- package/dist/cjs/api/types/TaskClientCreate1.d.ts +1 -1
- package/dist/cjs/api/types/TaskClientUpdate1.d.ts +2 -2
- 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 +1 -1
- package/dist/esm/api/resources/drivers/client/Client.mjs +1 -1
- package/dist/esm/api/resources/drivers/client/requests/DriverCreateReq.d.mts +1 -1
- package/dist/esm/api/resources/shipperPayCourierRateSheets/client/requests/ShipperPayCourierRateSheetClientCreate1.d.mts +3 -3
- package/dist/esm/api/types/Cargo1.d.mts +1 -1
- package/dist/esm/api/types/Order1.d.mts +1 -1
- package/dist/esm/api/types/OrgMemberDetails.d.mts +2 -2
- package/dist/esm/api/types/OrgRoleEnum.d.mts +7 -6
- package/dist/esm/api/types/OrgRoleEnum.mjs +4 -4
- package/dist/esm/api/types/ShipperPayCourierRateSheet1.d.mts +3 -3
- package/dist/esm/api/types/Task1.d.mts +7 -7
- package/dist/esm/api/types/TaskClientCreate1.d.mts +1 -1
- package/dist/esm/api/types/TaskClientUpdate1.d.mts +2 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +1 -1
package/dist/cjs/Client.js
CHANGED
|
@@ -71,8 +71,8 @@ class ChrtClient {
|
|
|
71
71
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
72
72
|
"X-Fern-Language": "JavaScript",
|
|
73
73
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
74
|
-
"X-Fern-SDK-Version": "1.
|
|
75
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
74
|
+
"X-Fern-SDK-Version": "1.309.0",
|
|
75
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.309.0",
|
|
76
76
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
77
77
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
78
78
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -24,9 +24,9 @@ import * as Chrt from "../../../../index.js";
|
|
|
24
24
|
export interface ShipperPayCourierRateSheetClientCreate1 {
|
|
25
25
|
schema_version: number;
|
|
26
26
|
name?: string | null;
|
|
27
|
-
cargo_types?: Chrt.CargoTypeEnum1[]
|
|
28
|
-
vehicle_types?: Chrt.VehicleTypeEnum[]
|
|
29
|
-
route_types?: Chrt.RouteTypeEnum1[]
|
|
27
|
+
cargo_types?: Chrt.CargoTypeEnum1[];
|
|
28
|
+
vehicle_types?: Chrt.VehicleTypeEnum[];
|
|
29
|
+
route_types?: Chrt.RouteTypeEnum1[];
|
|
30
30
|
/** Must be a string starting with `org_` */
|
|
31
31
|
shipper_org_id?: string | null;
|
|
32
32
|
off_chrt_shipper_org_id?: string | null;
|
|
@@ -20,7 +20,7 @@ export interface Cargo1 {
|
|
|
20
20
|
created_by_org_id: string;
|
|
21
21
|
/** Must be a string starting with `user_` */
|
|
22
22
|
created_by_user_id: string;
|
|
23
|
-
device_ids?: string[]
|
|
23
|
+
device_ids?: string[];
|
|
24
24
|
status?: Chrt.CargoStatusEnum1;
|
|
25
25
|
draft_started_at_timestamp: string;
|
|
26
26
|
staged_at_timestamp?: string | null;
|
|
@@ -6,7 +6,7 @@ export interface Order1 {
|
|
|
6
6
|
schema_version: number;
|
|
7
7
|
_id: string;
|
|
8
8
|
short_id: string;
|
|
9
|
-
task_group_ids?: string[]
|
|
9
|
+
task_group_ids?: string[];
|
|
10
10
|
created_by_org_type: Chrt.OrgTypeEnum;
|
|
11
11
|
/** Must be a string starting with `org_` */
|
|
12
12
|
created_by_org_id: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
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 OrgMemberDetails {
|
|
5
|
-
role:
|
|
6
|
-
role_name?: string | null;
|
|
6
|
+
role: Chrt.OrgRoleEnum;
|
|
7
7
|
/** Must be a string starting with `user_` */
|
|
8
8
|
user_id: string;
|
|
9
9
|
first_name?: string | null;
|
|
@@ -17,12 +17,13 @@
|
|
|
17
17
|
* - prod: https://dashboard.clerk.com/apps/app_2rDeFYQ7SBioYoMhG38FgirTE4Q/instances/ins_2rDmMgzRGFXd6Ml6N8eV8pOXeyI/organizations-settings/roles
|
|
18
18
|
* - dev: https://dashboard.clerk.com/apps/app_2rDeFYQ7SBioYoMhG38FgirTE4Q/instances/ins_2rDeFZFEZ3nIC9VQt3zYfvzL14Z/organizations-settings/roles
|
|
19
19
|
*
|
|
20
|
-
* Clerk
|
|
20
|
+
* Clerk requires the "org:" prefix when calling its API, but we store without it.
|
|
21
|
+
* When sending to Clerk, prepend "org:" to the enum value.
|
|
21
22
|
*/
|
|
22
|
-
export type OrgRoleEnum = "
|
|
23
|
+
export type OrgRoleEnum = "owner" | "administrator" | "operator" | "driver";
|
|
23
24
|
export declare const OrgRoleEnum: {
|
|
24
|
-
readonly
|
|
25
|
-
readonly
|
|
26
|
-
readonly
|
|
27
|
-
readonly
|
|
25
|
+
readonly Owner: "owner";
|
|
26
|
+
readonly Administrator: "administrator";
|
|
27
|
+
readonly Operator: "operator";
|
|
28
|
+
readonly Driver: "driver";
|
|
28
29
|
};
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.OrgRoleEnum = void 0;
|
|
7
7
|
exports.OrgRoleEnum = {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
Owner: "owner",
|
|
9
|
+
Administrator: "administrator",
|
|
10
|
+
Operator: "operator",
|
|
11
|
+
Driver: "driver",
|
|
12
12
|
};
|
|
@@ -5,9 +5,9 @@ import * as Chrt from "../index.js";
|
|
|
5
5
|
export interface ShipperPayCourierRateSheet1 {
|
|
6
6
|
schema_version: number;
|
|
7
7
|
name?: string | null;
|
|
8
|
-
cargo_types?: Chrt.CargoTypeEnum1[]
|
|
9
|
-
vehicle_types?: Chrt.VehicleTypeEnum[]
|
|
10
|
-
route_types?: Chrt.RouteTypeEnum1[]
|
|
8
|
+
cargo_types?: Chrt.CargoTypeEnum1[];
|
|
9
|
+
vehicle_types?: Chrt.VehicleTypeEnum[];
|
|
10
|
+
route_types?: Chrt.RouteTypeEnum1[];
|
|
11
11
|
/** Must be a string starting with `org_` */
|
|
12
12
|
shipper_org_id?: string | null;
|
|
13
13
|
off_chrt_shipper_org_id?: string | null;
|
|
@@ -8,7 +8,7 @@ export interface Task1 {
|
|
|
8
8
|
action?: Task1.Action | null;
|
|
9
9
|
time_windows?: Chrt.TimeWindow1[];
|
|
10
10
|
order_placer_comments?: string | null;
|
|
11
|
-
shipper_contact_info_ids?: string[]
|
|
11
|
+
shipper_contact_info_ids?: string[];
|
|
12
12
|
flight_number?: string | null;
|
|
13
13
|
_id: string;
|
|
14
14
|
order_id: string;
|
|
@@ -22,18 +22,18 @@ export interface Task1 {
|
|
|
22
22
|
completed_by_org_id?: string | null;
|
|
23
23
|
/** Must be a string starting with `user_` */
|
|
24
24
|
completed_by_user_id?: string | null;
|
|
25
|
-
cargo_ids?: string[]
|
|
26
|
-
task_artifact_ids?: string[]
|
|
25
|
+
cargo_ids?: string[];
|
|
26
|
+
task_artifact_ids?: string[];
|
|
27
27
|
status?: Chrt.TaskStatusEnum1;
|
|
28
28
|
draft_started_at_timestamp: string;
|
|
29
29
|
staged_at_timestamp?: string | null;
|
|
30
30
|
completed_at_timestamp?: string | null;
|
|
31
31
|
exception_at_timestamp?: string | null;
|
|
32
32
|
order_cancelled?: boolean;
|
|
33
|
-
task_notification_email_ids?: string[]
|
|
34
|
-
task_notification_sms_ids?: string[]
|
|
35
|
-
task_notification_push_ids?: string[]
|
|
36
|
-
task_notification_voice_ids?: string[]
|
|
33
|
+
task_notification_email_ids?: string[];
|
|
34
|
+
task_notification_sms_ids?: string[];
|
|
35
|
+
task_notification_push_ids?: string[];
|
|
36
|
+
task_notification_voice_ids?: string[];
|
|
37
37
|
}
|
|
38
38
|
export declare namespace Task1 {
|
|
39
39
|
type Action = Chrt.ChrtGroundCourierTaskActionEnum1 | Chrt.FlightTaskActionEnum1 | Chrt.OnboardCourierTaskActionEnum1;
|
|
@@ -8,7 +8,7 @@ export interface TaskClientCreate1 {
|
|
|
8
8
|
action?: TaskClientCreate1.Action | null;
|
|
9
9
|
time_windows?: Chrt.TimeWindow1[];
|
|
10
10
|
order_placer_comments?: string | null;
|
|
11
|
-
shipper_contact_info_ids?: string[]
|
|
11
|
+
shipper_contact_info_ids?: string[];
|
|
12
12
|
flight_number?: string | null;
|
|
13
13
|
}
|
|
14
14
|
export declare namespace TaskClientCreate1 {
|
|
@@ -5,9 +5,9 @@ import * as Chrt from "../index.js";
|
|
|
5
5
|
export interface TaskClientUpdate1 {
|
|
6
6
|
location?: Chrt.LocationFeature | null;
|
|
7
7
|
action?: TaskClientUpdate1.Action | null;
|
|
8
|
-
time_windows?: Chrt.TimeWindow1[]
|
|
8
|
+
time_windows?: Chrt.TimeWindow1[];
|
|
9
9
|
order_placer_comments?: string | null;
|
|
10
|
-
shipper_contact_info_ids?: string[]
|
|
10
|
+
shipper_contact_info_ids?: string[];
|
|
11
11
|
flight_number?: string | null;
|
|
12
12
|
}
|
|
13
13
|
export declare namespace TaskClientUpdate1 {
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.309.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -35,8 +35,8 @@ export class ChrtClient {
|
|
|
35
35
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
36
36
|
"X-Fern-Language": "JavaScript",
|
|
37
37
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
38
|
-
"X-Fern-SDK-Version": "1.
|
|
39
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
38
|
+
"X-Fern-SDK-Version": "1.309.0",
|
|
39
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.309.0",
|
|
40
40
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
41
41
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
42
42
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -24,9 +24,9 @@ import * as Chrt from "../../../../index.mjs";
|
|
|
24
24
|
export interface ShipperPayCourierRateSheetClientCreate1 {
|
|
25
25
|
schema_version: number;
|
|
26
26
|
name?: string | null;
|
|
27
|
-
cargo_types?: Chrt.CargoTypeEnum1[]
|
|
28
|
-
vehicle_types?: Chrt.VehicleTypeEnum[]
|
|
29
|
-
route_types?: Chrt.RouteTypeEnum1[]
|
|
27
|
+
cargo_types?: Chrt.CargoTypeEnum1[];
|
|
28
|
+
vehicle_types?: Chrt.VehicleTypeEnum[];
|
|
29
|
+
route_types?: Chrt.RouteTypeEnum1[];
|
|
30
30
|
/** Must be a string starting with `org_` */
|
|
31
31
|
shipper_org_id?: string | null;
|
|
32
32
|
off_chrt_shipper_org_id?: string | null;
|
|
@@ -20,7 +20,7 @@ export interface Cargo1 {
|
|
|
20
20
|
created_by_org_id: string;
|
|
21
21
|
/** Must be a string starting with `user_` */
|
|
22
22
|
created_by_user_id: string;
|
|
23
|
-
device_ids?: string[]
|
|
23
|
+
device_ids?: string[];
|
|
24
24
|
status?: Chrt.CargoStatusEnum1;
|
|
25
25
|
draft_started_at_timestamp: string;
|
|
26
26
|
staged_at_timestamp?: string | null;
|
|
@@ -6,7 +6,7 @@ export interface Order1 {
|
|
|
6
6
|
schema_version: number;
|
|
7
7
|
_id: string;
|
|
8
8
|
short_id: string;
|
|
9
|
-
task_group_ids?: string[]
|
|
9
|
+
task_group_ids?: string[];
|
|
10
10
|
created_by_org_type: Chrt.OrgTypeEnum;
|
|
11
11
|
/** Must be a string starting with `org_` */
|
|
12
12
|
created_by_org_id: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
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 OrgMemberDetails {
|
|
5
|
-
role:
|
|
6
|
-
role_name?: string | null;
|
|
6
|
+
role: Chrt.OrgRoleEnum;
|
|
7
7
|
/** Must be a string starting with `user_` */
|
|
8
8
|
user_id: string;
|
|
9
9
|
first_name?: string | null;
|
|
@@ -17,12 +17,13 @@
|
|
|
17
17
|
* - prod: https://dashboard.clerk.com/apps/app_2rDeFYQ7SBioYoMhG38FgirTE4Q/instances/ins_2rDmMgzRGFXd6Ml6N8eV8pOXeyI/organizations-settings/roles
|
|
18
18
|
* - dev: https://dashboard.clerk.com/apps/app_2rDeFYQ7SBioYoMhG38FgirTE4Q/instances/ins_2rDeFZFEZ3nIC9VQt3zYfvzL14Z/organizations-settings/roles
|
|
19
19
|
*
|
|
20
|
-
* Clerk
|
|
20
|
+
* Clerk requires the "org:" prefix when calling its API, but we store without it.
|
|
21
|
+
* When sending to Clerk, prepend "org:" to the enum value.
|
|
21
22
|
*/
|
|
22
|
-
export type OrgRoleEnum = "
|
|
23
|
+
export type OrgRoleEnum = "owner" | "administrator" | "operator" | "driver";
|
|
23
24
|
export declare const OrgRoleEnum: {
|
|
24
|
-
readonly
|
|
25
|
-
readonly
|
|
26
|
-
readonly
|
|
27
|
-
readonly
|
|
25
|
+
readonly Owner: "owner";
|
|
26
|
+
readonly Administrator: "administrator";
|
|
27
|
+
readonly Operator: "operator";
|
|
28
|
+
readonly Driver: "driver";
|
|
28
29
|
};
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
export const OrgRoleEnum = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
Owner: "owner",
|
|
6
|
+
Administrator: "administrator",
|
|
7
|
+
Operator: "operator",
|
|
8
|
+
Driver: "driver",
|
|
9
9
|
};
|
|
@@ -5,9 +5,9 @@ import * as Chrt from "../index.mjs";
|
|
|
5
5
|
export interface ShipperPayCourierRateSheet1 {
|
|
6
6
|
schema_version: number;
|
|
7
7
|
name?: string | null;
|
|
8
|
-
cargo_types?: Chrt.CargoTypeEnum1[]
|
|
9
|
-
vehicle_types?: Chrt.VehicleTypeEnum[]
|
|
10
|
-
route_types?: Chrt.RouteTypeEnum1[]
|
|
8
|
+
cargo_types?: Chrt.CargoTypeEnum1[];
|
|
9
|
+
vehicle_types?: Chrt.VehicleTypeEnum[];
|
|
10
|
+
route_types?: Chrt.RouteTypeEnum1[];
|
|
11
11
|
/** Must be a string starting with `org_` */
|
|
12
12
|
shipper_org_id?: string | null;
|
|
13
13
|
off_chrt_shipper_org_id?: string | null;
|
|
@@ -8,7 +8,7 @@ export interface Task1 {
|
|
|
8
8
|
action?: Task1.Action | null;
|
|
9
9
|
time_windows?: Chrt.TimeWindow1[];
|
|
10
10
|
order_placer_comments?: string | null;
|
|
11
|
-
shipper_contact_info_ids?: string[]
|
|
11
|
+
shipper_contact_info_ids?: string[];
|
|
12
12
|
flight_number?: string | null;
|
|
13
13
|
_id: string;
|
|
14
14
|
order_id: string;
|
|
@@ -22,18 +22,18 @@ export interface Task1 {
|
|
|
22
22
|
completed_by_org_id?: string | null;
|
|
23
23
|
/** Must be a string starting with `user_` */
|
|
24
24
|
completed_by_user_id?: string | null;
|
|
25
|
-
cargo_ids?: string[]
|
|
26
|
-
task_artifact_ids?: string[]
|
|
25
|
+
cargo_ids?: string[];
|
|
26
|
+
task_artifact_ids?: string[];
|
|
27
27
|
status?: Chrt.TaskStatusEnum1;
|
|
28
28
|
draft_started_at_timestamp: string;
|
|
29
29
|
staged_at_timestamp?: string | null;
|
|
30
30
|
completed_at_timestamp?: string | null;
|
|
31
31
|
exception_at_timestamp?: string | null;
|
|
32
32
|
order_cancelled?: boolean;
|
|
33
|
-
task_notification_email_ids?: string[]
|
|
34
|
-
task_notification_sms_ids?: string[]
|
|
35
|
-
task_notification_push_ids?: string[]
|
|
36
|
-
task_notification_voice_ids?: string[]
|
|
33
|
+
task_notification_email_ids?: string[];
|
|
34
|
+
task_notification_sms_ids?: string[];
|
|
35
|
+
task_notification_push_ids?: string[];
|
|
36
|
+
task_notification_voice_ids?: string[];
|
|
37
37
|
}
|
|
38
38
|
export declare namespace Task1 {
|
|
39
39
|
type Action = Chrt.ChrtGroundCourierTaskActionEnum1 | Chrt.FlightTaskActionEnum1 | Chrt.OnboardCourierTaskActionEnum1;
|
|
@@ -8,7 +8,7 @@ export interface TaskClientCreate1 {
|
|
|
8
8
|
action?: TaskClientCreate1.Action | null;
|
|
9
9
|
time_windows?: Chrt.TimeWindow1[];
|
|
10
10
|
order_placer_comments?: string | null;
|
|
11
|
-
shipper_contact_info_ids?: string[]
|
|
11
|
+
shipper_contact_info_ids?: string[];
|
|
12
12
|
flight_number?: string | null;
|
|
13
13
|
}
|
|
14
14
|
export declare namespace TaskClientCreate1 {
|
|
@@ -5,9 +5,9 @@ import * as Chrt from "../index.mjs";
|
|
|
5
5
|
export interface TaskClientUpdate1 {
|
|
6
6
|
location?: Chrt.LocationFeature | null;
|
|
7
7
|
action?: TaskClientUpdate1.Action | null;
|
|
8
|
-
time_windows?: Chrt.TimeWindow1[]
|
|
8
|
+
time_windows?: Chrt.TimeWindow1[];
|
|
9
9
|
order_placer_comments?: string | null;
|
|
10
|
-
shipper_contact_info_ids?: string[]
|
|
10
|
+
shipper_contact_info_ids?: string[];
|
|
11
11
|
flight_number?: string | null;
|
|
12
12
|
}
|
|
13
13
|
export declare namespace TaskClientUpdate1 {
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.309.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.
|
|
1
|
+
export const SDK_VERSION = "1.309.0";
|
package/package.json
CHANGED
package/reference.md
CHANGED