@chrt-inc/typescript-sdk 0.0.183-b → 0.0.184
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/dev/client/Client.d.ts +10 -10
- package/dist/cjs/api/resources/dev/client/Client.js +47 -47
- package/dist/cjs/api/resources/drivers/client/requests/DriverLastSeenReq.d.ts +1 -1
- package/dist/cjs/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.d.ts +1 -1
- package/dist/cjs/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.d.ts +1 -1
- package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientCreate1.d.ts +1 -1
- package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientUpdate1.d.ts +1 -1
- package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientCreate1.d.ts +1 -1
- package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.ts +1 -1
- package/dist/cjs/api/resources/payments/client/Client.d.ts +41 -0
- package/dist/cjs/api/resources/payments/client/Client.js +174 -0
- package/dist/cjs/api/resources/payments/client/requests/CreateConnectAccountLinkReq.d.ts +12 -0
- package/dist/cjs/api/resources/payments/client/requests/CreateDirectChargeReq.d.ts +17 -0
- package/dist/cjs/api/resources/payments/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/shipperContactInfo/client/requests/ShipperContactInfoClientUpdate1.d.ts +1 -1
- package/dist/cjs/api/types/CourierOrgConnectionInfo1.d.ts +1 -1
- package/dist/cjs/api/types/{BaseModel.d.ts → CreateConnectAccountLinkRes.d.ts} +2 -1
- package/dist/cjs/api/types/CreateConnectAccountRes.d.ts +6 -0
- package/dist/cjs/api/types/CreateDirectChargeRes.d.ts +8 -0
- package/dist/cjs/api/types/CreateDirectChargeRes.js +5 -0
- package/dist/cjs/api/types/Driver1.d.ts +1 -1
- package/dist/cjs/api/types/LocationFeature.d.ts +17 -0
- package/dist/cjs/api/types/LocationFeature.js +5 -0
- package/dist/cjs/api/types/{FeatureInputGeometry.d.ts → LocationFeatureInputGeometry.d.ts} +2 -2
- package/dist/cjs/api/types/LocationFeatureInputGeometry.js +5 -0
- package/dist/cjs/api/types/{FeatureOutputGeometry.d.ts → LocationFeatureOutputGeometry.d.ts} +2 -2
- package/dist/cjs/api/types/LocationFeatureOutputGeometry.js +5 -0
- package/dist/cjs/api/types/LocationProperties.d.ts +11 -0
- package/dist/cjs/api/types/LocationProperties.js +5 -0
- package/dist/cjs/api/types/Milestone1.d.ts +1 -1
- package/dist/cjs/api/types/OffChrtShipperOrgConnectionInfo1.d.ts +1 -1
- package/dist/cjs/api/types/ShipperContactInfo1.d.ts +1 -1
- package/dist/cjs/api/types/ShipperContactInfoClientCreate1.d.ts +1 -1
- package/dist/cjs/api/types/ShipperOrgConnectionInfo1.d.ts +1 -1
- package/dist/cjs/api/types/Task1.d.ts +1 -1
- package/dist/cjs/api/types/TaskClientCreate1.d.ts +1 -1
- package/dist/cjs/api/types/UserPublicData6.d.ts +1 -0
- package/dist/cjs/api/types/index.d.ts +7 -4
- package/dist/cjs/api/types/index.js +7 -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/dev/client/Client.d.mts +10 -10
- package/dist/esm/api/resources/dev/client/Client.mjs +47 -47
- package/dist/esm/api/resources/drivers/client/requests/DriverLastSeenReq.d.mts +1 -1
- package/dist/esm/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.d.mts +1 -1
- package/dist/esm/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.d.mts +1 -1
- package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientCreate1.d.mts +1 -1
- package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientUpdate1.d.mts +1 -1
- package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientCreate1.d.mts +1 -1
- package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.mts +1 -1
- package/dist/esm/api/resources/payments/client/Client.d.mts +41 -0
- package/dist/esm/api/resources/payments/client/Client.mjs +174 -0
- package/dist/esm/api/resources/payments/client/requests/CreateConnectAccountLinkReq.d.mts +12 -0
- package/dist/esm/api/resources/payments/client/requests/CreateDirectChargeReq.d.mts +17 -0
- package/dist/esm/api/resources/payments/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/shipperContactInfo/client/requests/ShipperContactInfoClientUpdate1.d.mts +1 -1
- package/dist/esm/api/types/CourierOrgConnectionInfo1.d.mts +1 -1
- package/dist/esm/api/types/{BaseModel.d.mts → CreateConnectAccountLinkRes.d.mts} +2 -1
- package/dist/esm/api/types/CreateConnectAccountRes.d.mts +6 -0
- package/dist/esm/api/types/CreateDirectChargeRes.d.mts +8 -0
- package/dist/esm/api/types/CreateDirectChargeRes.mjs +4 -0
- package/dist/esm/api/types/Driver1.d.mts +1 -1
- package/dist/esm/api/types/LocationFeature.d.mts +17 -0
- package/dist/esm/api/types/LocationFeature.mjs +4 -0
- package/dist/esm/api/types/{FeatureInputGeometry.d.mts → LocationFeatureInputGeometry.d.mts} +2 -2
- package/dist/esm/api/types/LocationFeatureInputGeometry.mjs +4 -0
- package/dist/esm/api/types/{FeatureOutputGeometry.d.mts → LocationFeatureOutputGeometry.d.mts} +2 -2
- package/dist/esm/api/types/LocationFeatureOutputGeometry.mjs +4 -0
- package/dist/esm/api/types/LocationProperties.d.mts +11 -0
- package/dist/esm/api/types/LocationProperties.mjs +4 -0
- package/dist/esm/api/types/Milestone1.d.mts +1 -1
- package/dist/esm/api/types/OffChrtShipperOrgConnectionInfo1.d.mts +1 -1
- package/dist/esm/api/types/ShipperContactInfo1.d.mts +1 -1
- package/dist/esm/api/types/ShipperContactInfoClientCreate1.d.mts +1 -1
- package/dist/esm/api/types/ShipperOrgConnectionInfo1.d.mts +1 -1
- package/dist/esm/api/types/Task1.d.mts +1 -1
- package/dist/esm/api/types/TaskClientCreate1.d.mts +1 -1
- package/dist/esm/api/types/UserPublicData6.d.mts +1 -0
- package/dist/esm/api/types/index.d.mts +7 -4
- package/dist/esm/api/types/index.mjs +7 -4
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +207 -21
- package/dist/cjs/api/types/Feature.d.ts +0 -18
- package/dist/esm/api/types/Feature.d.mts +0 -18
- /package/dist/cjs/api/{types/BaseModel.js → resources/payments/client/requests/CreateConnectAccountLinkReq.js} +0 -0
- /package/dist/cjs/api/{types/Feature.js → resources/payments/client/requests/CreateDirectChargeReq.js} +0 -0
- /package/dist/cjs/api/types/{FeatureInputGeometry.js → CreateConnectAccountLinkRes.js} +0 -0
- /package/dist/cjs/api/types/{FeatureOutputGeometry.js → CreateConnectAccountRes.js} +0 -0
- /package/dist/esm/api/{types/BaseModel.mjs → resources/payments/client/requests/CreateConnectAccountLinkReq.mjs} +0 -0
- /package/dist/esm/api/{types/Feature.mjs → resources/payments/client/requests/CreateDirectChargeReq.mjs} +0 -0
- /package/dist/esm/api/types/{FeatureInputGeometry.mjs → CreateConnectAccountLinkRes.mjs} +0 -0
- /package/dist/esm/api/types/{FeatureOutputGeometry.mjs → CreateConnectAccountRes.mjs} +0 -0
|
@@ -2,8 +2,8 @@
|
|
|
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 type
|
|
6
|
-
export declare namespace
|
|
5
|
+
export type LocationFeatureInputGeometry = Chrt.LocationFeatureInputGeometry.GeometryCollection | Chrt.LocationFeatureInputGeometry.LineString | Chrt.LocationFeatureInputGeometry.MultiLineString | Chrt.LocationFeatureInputGeometry.MultiPoint | Chrt.LocationFeatureInputGeometry.MultiPolygon | Chrt.LocationFeatureInputGeometry.Point | Chrt.LocationFeatureInputGeometry.Polygon;
|
|
6
|
+
export declare namespace LocationFeatureInputGeometry {
|
|
7
7
|
interface GeometryCollection extends Chrt.GeometryCollection {
|
|
8
8
|
type: "GeometryCollection";
|
|
9
9
|
}
|
package/dist/cjs/api/types/{FeatureOutputGeometry.d.ts → LocationFeatureOutputGeometry.d.ts}
RENAMED
|
@@ -2,8 +2,8 @@
|
|
|
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 type
|
|
6
|
-
export declare namespace
|
|
5
|
+
export type LocationFeatureOutputGeometry = Chrt.LocationFeatureOutputGeometry.GeometryCollection | Chrt.LocationFeatureOutputGeometry.LineString | Chrt.LocationFeatureOutputGeometry.MultiLineString | Chrt.LocationFeatureOutputGeometry.MultiPoint | Chrt.LocationFeatureOutputGeometry.MultiPolygon | Chrt.LocationFeatureOutputGeometry.Point | Chrt.LocationFeatureOutputGeometry.Polygon;
|
|
6
|
+
export declare namespace LocationFeatureOutputGeometry {
|
|
7
7
|
interface GeometryCollection extends Chrt.GeometryCollection {
|
|
8
8
|
type: "GeometryCollection";
|
|
9
9
|
}
|
|
@@ -11,7 +11,7 @@ export interface Milestone1 {
|
|
|
11
11
|
order_short_id: string;
|
|
12
12
|
task_id: string;
|
|
13
13
|
completed_at_timestamp?: string | null;
|
|
14
|
-
completed_at_geojson_feature?: Chrt.
|
|
14
|
+
completed_at_geojson_feature?: Chrt.LocationFeature | null;
|
|
15
15
|
/** Must be a string starting with `user_` */
|
|
16
16
|
completed_by_user_id?: string | null;
|
|
17
17
|
completed: boolean;
|
|
@@ -5,7 +5,7 @@ import * as Chrt from "../index.js";
|
|
|
5
5
|
export interface OffChrtShipperOrgConnectionInfo1 {
|
|
6
6
|
schema_version: number;
|
|
7
7
|
industry?: string | null;
|
|
8
|
-
street_address?: Chrt.
|
|
8
|
+
street_address?: Chrt.LocationFeature | null;
|
|
9
9
|
contact_first_name?: string | null;
|
|
10
10
|
contact_last_name?: string | null;
|
|
11
11
|
phone_number_primary?: string | null;
|
|
@@ -6,7 +6,7 @@ export interface ShipperContactInfo1 {
|
|
|
6
6
|
schema_version: number;
|
|
7
7
|
company_name?: string | null;
|
|
8
8
|
industry?: string | null;
|
|
9
|
-
street_address?: Chrt.
|
|
9
|
+
street_address?: Chrt.LocationFeature | null;
|
|
10
10
|
contact_first_name?: string | null;
|
|
11
11
|
contact_last_name?: string | null;
|
|
12
12
|
phone_number_primary?: string | null;
|
|
@@ -6,7 +6,7 @@ export interface ShipperContactInfoClientCreate1 {
|
|
|
6
6
|
schema_version: number;
|
|
7
7
|
company_name?: string | null;
|
|
8
8
|
industry?: string | null;
|
|
9
|
-
street_address?: Chrt.
|
|
9
|
+
street_address?: Chrt.LocationFeature | null;
|
|
10
10
|
contact_first_name?: string | null;
|
|
11
11
|
contact_last_name?: string | null;
|
|
12
12
|
phone_number_primary?: string | null;
|
|
@@ -5,7 +5,7 @@ import * as Chrt from "../index.js";
|
|
|
5
5
|
export interface ShipperOrgConnectionInfo1 {
|
|
6
6
|
schema_version: number;
|
|
7
7
|
industry?: string | null;
|
|
8
|
-
street_address?: Chrt.
|
|
8
|
+
street_address?: Chrt.LocationFeature | null;
|
|
9
9
|
contact_first_name?: string | null;
|
|
10
10
|
contact_last_name?: string | null;
|
|
11
11
|
phone_number_primary?: string | null;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import * as Chrt from "../index.js";
|
|
5
5
|
export interface Task1 {
|
|
6
6
|
schema_version: number;
|
|
7
|
-
location?: Chrt.
|
|
7
|
+
location?: Chrt.LocationFeature | null;
|
|
8
8
|
action?: Task1.Action | null;
|
|
9
9
|
shipper_contact_info_ids?: string[] | null;
|
|
10
10
|
arrive_by?: string | null;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import * as Chrt from "../index.js";
|
|
5
5
|
export interface TaskClientCreate1 {
|
|
6
6
|
schema_version: number;
|
|
7
|
-
location?: Chrt.
|
|
7
|
+
location?: Chrt.LocationFeature | null;
|
|
8
8
|
action?: TaskClientCreate1.Action | null;
|
|
9
9
|
shipper_contact_info_ids?: string[] | null;
|
|
10
10
|
arrive_by?: string | null;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export * from "./BaseModel.js";
|
|
2
1
|
export * from "./Cargo1.js";
|
|
3
2
|
export * from "./CargoClientCreate1.js";
|
|
4
3
|
export * from "./CargoTypeEnum1.js";
|
|
@@ -10,14 +9,14 @@ export * from "./CourierPayDriverLineItemGroup1.js";
|
|
|
10
9
|
export * from "./CourierPayDriverLineItemGroupClientCreate1.js";
|
|
11
10
|
export * from "./CourierPayDriverRateSheet1.js";
|
|
12
11
|
export * from "./CreateCheckoutSessionRes2.js";
|
|
12
|
+
export * from "./CreateConnectAccountLinkRes.js";
|
|
13
|
+
export * from "./CreateConnectAccountRes.js";
|
|
14
|
+
export * from "./CreateDirectChargeRes.js";
|
|
13
15
|
export * from "./CreateOrderRes.js";
|
|
14
16
|
export * from "./DecodedJwtWithOrgAndUserId.js";
|
|
15
17
|
export * from "./Driver1.js";
|
|
16
18
|
export * from "./DriverStatusEnum.js";
|
|
17
19
|
export * from "./Expense1.js";
|
|
18
|
-
export * from "./FeatureInputGeometry.js";
|
|
19
|
-
export * from "./Feature.js";
|
|
20
|
-
export * from "./FeatureOutputGeometry.js";
|
|
21
20
|
export * from "./GeometryCollectionInputGeometriesItem.js";
|
|
22
21
|
export * from "./GeometryCollection.js";
|
|
23
22
|
export * from "./GeometryCollectionOutputGeometriesItem.js";
|
|
@@ -30,6 +29,10 @@ export * from "./Insurance1.js";
|
|
|
30
29
|
export * from "./LineItem1.js";
|
|
31
30
|
export * from "./LineItemEnum1.js";
|
|
32
31
|
export * from "./LineString.js";
|
|
32
|
+
export * from "./LocationFeatureInputGeometry.js";
|
|
33
|
+
export * from "./LocationFeature.js";
|
|
34
|
+
export * from "./LocationFeatureOutputGeometry.js";
|
|
35
|
+
export * from "./LocationProperties.js";
|
|
33
36
|
export * from "./Milestone1.js";
|
|
34
37
|
export * from "./MilestoneClientCreate1.js";
|
|
35
38
|
export * from "./MilestoneNotificationPreferences1.js";
|
|
@@ -14,7 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./BaseModel.js"), exports);
|
|
18
17
|
__exportStar(require("./Cargo1.js"), exports);
|
|
19
18
|
__exportStar(require("./CargoClientCreate1.js"), exports);
|
|
20
19
|
__exportStar(require("./CargoTypeEnum1.js"), exports);
|
|
@@ -26,14 +25,14 @@ __exportStar(require("./CourierPayDriverLineItemGroup1.js"), exports);
|
|
|
26
25
|
__exportStar(require("./CourierPayDriverLineItemGroupClientCreate1.js"), exports);
|
|
27
26
|
__exportStar(require("./CourierPayDriverRateSheet1.js"), exports);
|
|
28
27
|
__exportStar(require("./CreateCheckoutSessionRes2.js"), exports);
|
|
28
|
+
__exportStar(require("./CreateConnectAccountLinkRes.js"), exports);
|
|
29
|
+
__exportStar(require("./CreateConnectAccountRes.js"), exports);
|
|
30
|
+
__exportStar(require("./CreateDirectChargeRes.js"), exports);
|
|
29
31
|
__exportStar(require("./CreateOrderRes.js"), exports);
|
|
30
32
|
__exportStar(require("./DecodedJwtWithOrgAndUserId.js"), exports);
|
|
31
33
|
__exportStar(require("./Driver1.js"), exports);
|
|
32
34
|
__exportStar(require("./DriverStatusEnum.js"), exports);
|
|
33
35
|
__exportStar(require("./Expense1.js"), exports);
|
|
34
|
-
__exportStar(require("./FeatureInputGeometry.js"), exports);
|
|
35
|
-
__exportStar(require("./Feature.js"), exports);
|
|
36
|
-
__exportStar(require("./FeatureOutputGeometry.js"), exports);
|
|
37
36
|
__exportStar(require("./GeometryCollectionInputGeometriesItem.js"), exports);
|
|
38
37
|
__exportStar(require("./GeometryCollection.js"), exports);
|
|
39
38
|
__exportStar(require("./GeometryCollectionOutputGeometriesItem.js"), exports);
|
|
@@ -46,6 +45,10 @@ __exportStar(require("./Insurance1.js"), exports);
|
|
|
46
45
|
__exportStar(require("./LineItem1.js"), exports);
|
|
47
46
|
__exportStar(require("./LineItemEnum1.js"), exports);
|
|
48
47
|
__exportStar(require("./LineString.js"), exports);
|
|
48
|
+
__exportStar(require("./LocationFeatureInputGeometry.js"), exports);
|
|
49
|
+
__exportStar(require("./LocationFeature.js"), exports);
|
|
50
|
+
__exportStar(require("./LocationFeatureOutputGeometry.js"), exports);
|
|
51
|
+
__exportStar(require("./LocationProperties.js"), exports);
|
|
49
52
|
__exportStar(require("./Milestone1.js"), exports);
|
|
50
53
|
__exportStar(require("./MilestoneClientCreate1.js"), exports);
|
|
51
54
|
__exportStar(require("./MilestoneNotificationPreferences1.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.
|
|
1
|
+
export declare const SDK_VERSION = "0.0.184";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -27,8 +27,8 @@ export class ChrtClient {
|
|
|
27
27
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
28
28
|
"X-Fern-Language": "JavaScript",
|
|
29
29
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
30
|
-
"X-Fern-SDK-Version": "0.0.
|
|
31
|
-
"User-Agent": "@chrt-inc/typescript-sdk/0.0.
|
|
30
|
+
"X-Fern-SDK-Version": "0.0.184",
|
|
31
|
+
"User-Agent": "@chrt-inc/typescript-sdk/0.0.184",
|
|
32
32
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
33
33
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
34
34
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -58,16 +58,6 @@ export declare class Dev {
|
|
|
58
58
|
*/
|
|
59
59
|
getEmail(requestOptions?: Dev.RequestOptions): core.HttpResponsePromise<string>;
|
|
60
60
|
private __getEmail;
|
|
61
|
-
/**
|
|
62
|
-
* Returns the current GitHub PR number and commit hash for the deployment.
|
|
63
|
-
*
|
|
64
|
-
* @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
|
|
65
|
-
*
|
|
66
|
-
* @example
|
|
67
|
-
* await client.dev.getGitInfo()
|
|
68
|
-
*/
|
|
69
|
-
getGitInfo(requestOptions?: Dev.RequestOptions): core.HttpResponsePromise<Record<string, string>>;
|
|
70
|
-
private __getGitInfo;
|
|
71
61
|
/**
|
|
72
62
|
* Development template endpoint that returns the authenticated user's ID for testing.
|
|
73
63
|
*
|
|
@@ -95,5 +85,15 @@ export declare class Dev {
|
|
|
95
85
|
*/
|
|
96
86
|
createTemplate(request: Chrt.TemplateReq, requestOptions?: Dev.RequestOptions): core.HttpResponsePromise<Chrt.TemplateRes>;
|
|
97
87
|
private __createTemplate;
|
|
88
|
+
/**
|
|
89
|
+
* Returns the current GitHub PR number and commit hash for the deployment.
|
|
90
|
+
*
|
|
91
|
+
* @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* await client.dev.getGitInfo()
|
|
95
|
+
*/
|
|
96
|
+
getGitInfo(requestOptions?: Dev.RequestOptions): core.HttpResponsePromise<Record<string, string>>;
|
|
97
|
+
private __getGitInfo;
|
|
98
98
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
99
99
|
}
|
|
@@ -167,21 +167,21 @@ export class Dev {
|
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
169
|
/**
|
|
170
|
-
*
|
|
170
|
+
* Development template endpoint that returns the authenticated user's ID for testing.
|
|
171
171
|
*
|
|
172
172
|
* @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
|
|
173
173
|
*
|
|
174
174
|
* @example
|
|
175
|
-
* await client.dev.
|
|
175
|
+
* await client.dev.getTemplate()
|
|
176
176
|
*/
|
|
177
|
-
|
|
178
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
177
|
+
getTemplate(requestOptions) {
|
|
178
|
+
return core.HttpResponsePromise.fromPromise(this.__getTemplate(requestOptions));
|
|
179
179
|
}
|
|
180
|
-
|
|
180
|
+
__getTemplate(requestOptions) {
|
|
181
181
|
return __awaiter(this, void 0, void 0, function* () {
|
|
182
182
|
var _a, _b, _c, _d;
|
|
183
183
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
184
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "dev/
|
|
184
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "dev/template"),
|
|
185
185
|
method: "GET",
|
|
186
186
|
headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
187
187
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -206,7 +206,7 @@ export class Dev {
|
|
|
206
206
|
rawResponse: _response.rawResponse,
|
|
207
207
|
});
|
|
208
208
|
case "timeout":
|
|
209
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /dev/
|
|
209
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /dev/template.");
|
|
210
210
|
case "unknown":
|
|
211
211
|
throw new errors.ChrtError({
|
|
212
212
|
message: _response.error.errorMessage,
|
|
@@ -216,23 +216,33 @@ export class Dev {
|
|
|
216
216
|
});
|
|
217
217
|
}
|
|
218
218
|
/**
|
|
219
|
-
* Development template endpoint that
|
|
219
|
+
* Development template endpoint that demonstrates transaction handling and request mirroring.
|
|
220
220
|
*
|
|
221
|
+
* @param {Chrt.TemplateReq} request
|
|
221
222
|
* @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
|
|
222
223
|
*
|
|
224
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
225
|
+
*
|
|
223
226
|
* @example
|
|
224
|
-
* await client.dev.
|
|
227
|
+
* await client.dev.createTemplate({
|
|
228
|
+
* message: "message",
|
|
229
|
+
* number: 1,
|
|
230
|
+
* timestamp: "2024-01-15T09:30:00Z"
|
|
231
|
+
* })
|
|
225
232
|
*/
|
|
226
|
-
|
|
227
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
233
|
+
createTemplate(request, requestOptions) {
|
|
234
|
+
return core.HttpResponsePromise.fromPromise(this.__createTemplate(request, requestOptions));
|
|
228
235
|
}
|
|
229
|
-
|
|
236
|
+
__createTemplate(request, requestOptions) {
|
|
230
237
|
return __awaiter(this, void 0, void 0, function* () {
|
|
231
238
|
var _a, _b, _c, _d;
|
|
232
239
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
233
240
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "dev/template"),
|
|
234
|
-
method: "
|
|
241
|
+
method: "POST",
|
|
235
242
|
headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
243
|
+
contentType: "application/json",
|
|
244
|
+
requestType: "json",
|
|
245
|
+
body: request,
|
|
236
246
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
237
247
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
238
248
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -241,11 +251,16 @@ export class Dev {
|
|
|
241
251
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
242
252
|
}
|
|
243
253
|
if (_response.error.reason === "status-code") {
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
254
|
+
switch (_response.error.statusCode) {
|
|
255
|
+
case 422:
|
|
256
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
257
|
+
default:
|
|
258
|
+
throw new errors.ChrtError({
|
|
259
|
+
statusCode: _response.error.statusCode,
|
|
260
|
+
body: _response.error.body,
|
|
261
|
+
rawResponse: _response.rawResponse,
|
|
262
|
+
});
|
|
263
|
+
}
|
|
249
264
|
}
|
|
250
265
|
switch (_response.error.reason) {
|
|
251
266
|
case "non-json":
|
|
@@ -255,7 +270,7 @@ export class Dev {
|
|
|
255
270
|
rawResponse: _response.rawResponse,
|
|
256
271
|
});
|
|
257
272
|
case "timeout":
|
|
258
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
273
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /dev/template.");
|
|
259
274
|
case "unknown":
|
|
260
275
|
throw new errors.ChrtError({
|
|
261
276
|
message: _response.error.errorMessage,
|
|
@@ -265,33 +280,23 @@ export class Dev {
|
|
|
265
280
|
});
|
|
266
281
|
}
|
|
267
282
|
/**
|
|
268
|
-
*
|
|
283
|
+
* Returns the current GitHub PR number and commit hash for the deployment.
|
|
269
284
|
*
|
|
270
|
-
* @param {Chrt.TemplateReq} request
|
|
271
285
|
* @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
|
|
272
286
|
*
|
|
273
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
274
|
-
*
|
|
275
287
|
* @example
|
|
276
|
-
* await client.dev.
|
|
277
|
-
* message: "message",
|
|
278
|
-
* number: 1,
|
|
279
|
-
* timestamp: "2024-01-15T09:30:00Z"
|
|
280
|
-
* })
|
|
288
|
+
* await client.dev.getGitInfo()
|
|
281
289
|
*/
|
|
282
|
-
|
|
283
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
290
|
+
getGitInfo(requestOptions) {
|
|
291
|
+
return core.HttpResponsePromise.fromPromise(this.__getGitInfo(requestOptions));
|
|
284
292
|
}
|
|
285
|
-
|
|
293
|
+
__getGitInfo(requestOptions) {
|
|
286
294
|
return __awaiter(this, void 0, void 0, function* () {
|
|
287
295
|
var _a, _b, _c, _d;
|
|
288
296
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
289
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "dev/
|
|
290
|
-
method: "
|
|
297
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "dev/git_info"),
|
|
298
|
+
method: "GET",
|
|
291
299
|
headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
292
|
-
contentType: "application/json",
|
|
293
|
-
requestType: "json",
|
|
294
|
-
body: request,
|
|
295
300
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
296
301
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
297
302
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -300,16 +305,11 @@ export class Dev {
|
|
|
300
305
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
301
306
|
}
|
|
302
307
|
if (_response.error.reason === "status-code") {
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
statusCode: _response.error.statusCode,
|
|
309
|
-
body: _response.error.body,
|
|
310
|
-
rawResponse: _response.rawResponse,
|
|
311
|
-
});
|
|
312
|
-
}
|
|
308
|
+
throw new errors.ChrtError({
|
|
309
|
+
statusCode: _response.error.statusCode,
|
|
310
|
+
body: _response.error.body,
|
|
311
|
+
rawResponse: _response.rawResponse,
|
|
312
|
+
});
|
|
313
313
|
}
|
|
314
314
|
switch (_response.error.reason) {
|
|
315
315
|
case "non-json":
|
|
@@ -319,7 +319,7 @@ export class Dev {
|
|
|
319
319
|
rawResponse: _response.rawResponse,
|
|
320
320
|
});
|
|
321
321
|
case "timeout":
|
|
322
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
322
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /dev/git_info.");
|
|
323
323
|
case "unknown":
|
|
324
324
|
throw new errors.ChrtError({
|
|
325
325
|
message: _response.error.errorMessage,
|
|
@@ -12,7 +12,7 @@ import * as Chrt from "../../../../index.mjs";
|
|
|
12
12
|
export interface OffChrtShipperOrgConnectionInfoClientCreate1 {
|
|
13
13
|
schema_version: number;
|
|
14
14
|
industry?: string | null;
|
|
15
|
-
street_address?: Chrt.
|
|
15
|
+
street_address?: Chrt.LocationFeature | null;
|
|
16
16
|
contact_first_name?: string | null;
|
|
17
17
|
contact_last_name?: string | null;
|
|
18
18
|
phone_number_primary?: string | null;
|
|
@@ -8,7 +8,7 @@ import * as Chrt from "../../../../index.mjs";
|
|
|
8
8
|
*/
|
|
9
9
|
export interface OffChrtShipperOrgConnectionInfoClientUpdate1 {
|
|
10
10
|
industry?: string | null;
|
|
11
|
-
street_address?: Chrt.
|
|
11
|
+
street_address?: Chrt.LocationFeature | null;
|
|
12
12
|
contact_first_name?: string | null;
|
|
13
13
|
contact_last_name?: string | null;
|
|
14
14
|
phone_number_primary?: string | null;
|
|
@@ -12,7 +12,7 @@ import * as Chrt from "../../../../../../index.mjs";
|
|
|
12
12
|
export interface CourierOrgConnectionInfoClientCreate1 {
|
|
13
13
|
schema_version: number;
|
|
14
14
|
industry?: string | null;
|
|
15
|
-
street_address?: Chrt.
|
|
15
|
+
street_address?: Chrt.LocationFeature | null;
|
|
16
16
|
contact_first_name?: string | null;
|
|
17
17
|
contact_last_name?: string | null;
|
|
18
18
|
phone_number_primary?: string | null;
|
|
@@ -8,7 +8,7 @@ import * as Chrt from "../../../../../../index.mjs";
|
|
|
8
8
|
*/
|
|
9
9
|
export interface CourierOrgConnectionInfoClientUpdate1 {
|
|
10
10
|
industry?: string | null;
|
|
11
|
-
street_address?: Chrt.
|
|
11
|
+
street_address?: Chrt.LocationFeature | null;
|
|
12
12
|
contact_first_name?: string | null;
|
|
13
13
|
contact_last_name?: string | null;
|
|
14
14
|
phone_number_primary?: string | null;
|
|
@@ -12,7 +12,7 @@ import * as Chrt from "../../../../../../index.mjs";
|
|
|
12
12
|
export interface ShipperOrgConnectionInfoClientCreate1 {
|
|
13
13
|
schema_version: number;
|
|
14
14
|
industry?: string | null;
|
|
15
|
-
street_address?: Chrt.
|
|
15
|
+
street_address?: Chrt.LocationFeature | null;
|
|
16
16
|
contact_first_name?: string | null;
|
|
17
17
|
contact_last_name?: string | null;
|
|
18
18
|
phone_number_primary?: string | null;
|
|
@@ -8,7 +8,7 @@ import * as Chrt from "../../../../../../index.mjs";
|
|
|
8
8
|
*/
|
|
9
9
|
export interface ShipperOrgConnectionInfoClientUpdate1 {
|
|
10
10
|
industry?: string | null;
|
|
11
|
-
street_address?: Chrt.
|
|
11
|
+
street_address?: Chrt.LocationFeature | null;
|
|
12
12
|
contact_first_name?: string | null;
|
|
13
13
|
contact_last_name?: string | null;
|
|
14
14
|
phone_number_primary?: string | null;
|
|
@@ -43,6 +43,47 @@ export declare class Payments {
|
|
|
43
43
|
*/
|
|
44
44
|
createCheckoutSession(request: Chrt.CreateCheckoutSessionReq2, requestOptions?: Payments.RequestOptions): core.HttpResponsePromise<Chrt.CreateCheckoutSessionRes2>;
|
|
45
45
|
private __createCheckoutSession;
|
|
46
|
+
/**
|
|
47
|
+
* Create a Stripe Connect account for receiving payments
|
|
48
|
+
*
|
|
49
|
+
* @param {Payments.RequestOptions} requestOptions - Request-specific configuration.
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* await client.payments.createConnectAccount()
|
|
53
|
+
*/
|
|
54
|
+
createConnectAccount(requestOptions?: Payments.RequestOptions): core.HttpResponsePromise<Chrt.CreateConnectAccountRes>;
|
|
55
|
+
private __createConnectAccount;
|
|
56
|
+
/**
|
|
57
|
+
* Create an onboarding link for a Stripe Connect account
|
|
58
|
+
*
|
|
59
|
+
* @param {Chrt.CreateConnectAccountLinkReq} request
|
|
60
|
+
* @param {Payments.RequestOptions} requestOptions - Request-specific configuration.
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* await client.payments.createConnectAccountLink({
|
|
66
|
+
* account_id: "account_id"
|
|
67
|
+
* })
|
|
68
|
+
*/
|
|
69
|
+
createConnectAccountLink(request: Chrt.CreateConnectAccountLinkReq, requestOptions?: Payments.RequestOptions): core.HttpResponsePromise<Chrt.CreateConnectAccountLinkRes>;
|
|
70
|
+
private __createConnectAccountLink;
|
|
71
|
+
/**
|
|
72
|
+
* Create a direct charge checkout session to a Connect account
|
|
73
|
+
*
|
|
74
|
+
* @param {Chrt.CreateDirectChargeReq} request
|
|
75
|
+
* @param {Payments.RequestOptions} requestOptions - Request-specific configuration.
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* await client.payments.createDirectCharge({
|
|
81
|
+
* amount: 1,
|
|
82
|
+
* connect_account_id: "connect_account_id"
|
|
83
|
+
* })
|
|
84
|
+
*/
|
|
85
|
+
createDirectCharge(request: Chrt.CreateDirectChargeReq, requestOptions?: Payments.RequestOptions): core.HttpResponsePromise<Chrt.CreateDirectChargeRes>;
|
|
86
|
+
private __createDirectCharge;
|
|
46
87
|
/**
|
|
47
88
|
* Synchronizes subscription data from Stripe to the authentication service for the current user.
|
|
48
89
|
*
|