@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
|
@@ -81,6 +81,180 @@ export class Payments {
|
|
|
81
81
|
}
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
|
+
/**
|
|
85
|
+
* Create a Stripe Connect account for receiving payments
|
|
86
|
+
*
|
|
87
|
+
* @param {Payments.RequestOptions} requestOptions - Request-specific configuration.
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* await client.payments.createConnectAccount()
|
|
91
|
+
*/
|
|
92
|
+
createConnectAccount(requestOptions) {
|
|
93
|
+
return core.HttpResponsePromise.fromPromise(this.__createConnectAccount(requestOptions));
|
|
94
|
+
}
|
|
95
|
+
__createConnectAccount(requestOptions) {
|
|
96
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
97
|
+
var _a, _b, _c, _d;
|
|
98
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
99
|
+
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, "payments/create-connect-account"),
|
|
100
|
+
method: "POST",
|
|
101
|
+
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),
|
|
102
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
103
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
104
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
105
|
+
});
|
|
106
|
+
if (_response.ok) {
|
|
107
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
108
|
+
}
|
|
109
|
+
if (_response.error.reason === "status-code") {
|
|
110
|
+
throw new errors.ChrtError({
|
|
111
|
+
statusCode: _response.error.statusCode,
|
|
112
|
+
body: _response.error.body,
|
|
113
|
+
rawResponse: _response.rawResponse,
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
switch (_response.error.reason) {
|
|
117
|
+
case "non-json":
|
|
118
|
+
throw new errors.ChrtError({
|
|
119
|
+
statusCode: _response.error.statusCode,
|
|
120
|
+
body: _response.error.rawBody,
|
|
121
|
+
rawResponse: _response.rawResponse,
|
|
122
|
+
});
|
|
123
|
+
case "timeout":
|
|
124
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /payments/create-connect-account.");
|
|
125
|
+
case "unknown":
|
|
126
|
+
throw new errors.ChrtError({
|
|
127
|
+
message: _response.error.errorMessage,
|
|
128
|
+
rawResponse: _response.rawResponse,
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Create an onboarding link for a Stripe Connect account
|
|
135
|
+
*
|
|
136
|
+
* @param {Chrt.CreateConnectAccountLinkReq} request
|
|
137
|
+
* @param {Payments.RequestOptions} requestOptions - Request-specific configuration.
|
|
138
|
+
*
|
|
139
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
140
|
+
*
|
|
141
|
+
* @example
|
|
142
|
+
* await client.payments.createConnectAccountLink({
|
|
143
|
+
* account_id: "account_id"
|
|
144
|
+
* })
|
|
145
|
+
*/
|
|
146
|
+
createConnectAccountLink(request, requestOptions) {
|
|
147
|
+
return core.HttpResponsePromise.fromPromise(this.__createConnectAccountLink(request, requestOptions));
|
|
148
|
+
}
|
|
149
|
+
__createConnectAccountLink(request, requestOptions) {
|
|
150
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
151
|
+
var _a, _b, _c, _d;
|
|
152
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
153
|
+
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, "payments/create-connect-account-link"),
|
|
154
|
+
method: "POST",
|
|
155
|
+
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),
|
|
156
|
+
contentType: "application/json",
|
|
157
|
+
requestType: "json",
|
|
158
|
+
body: request,
|
|
159
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
160
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
161
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
162
|
+
});
|
|
163
|
+
if (_response.ok) {
|
|
164
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
165
|
+
}
|
|
166
|
+
if (_response.error.reason === "status-code") {
|
|
167
|
+
switch (_response.error.statusCode) {
|
|
168
|
+
case 422:
|
|
169
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
170
|
+
default:
|
|
171
|
+
throw new errors.ChrtError({
|
|
172
|
+
statusCode: _response.error.statusCode,
|
|
173
|
+
body: _response.error.body,
|
|
174
|
+
rawResponse: _response.rawResponse,
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
switch (_response.error.reason) {
|
|
179
|
+
case "non-json":
|
|
180
|
+
throw new errors.ChrtError({
|
|
181
|
+
statusCode: _response.error.statusCode,
|
|
182
|
+
body: _response.error.rawBody,
|
|
183
|
+
rawResponse: _response.rawResponse,
|
|
184
|
+
});
|
|
185
|
+
case "timeout":
|
|
186
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /payments/create-connect-account-link.");
|
|
187
|
+
case "unknown":
|
|
188
|
+
throw new errors.ChrtError({
|
|
189
|
+
message: _response.error.errorMessage,
|
|
190
|
+
rawResponse: _response.rawResponse,
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Create a direct charge checkout session to a Connect account
|
|
197
|
+
*
|
|
198
|
+
* @param {Chrt.CreateDirectChargeReq} request
|
|
199
|
+
* @param {Payments.RequestOptions} requestOptions - Request-specific configuration.
|
|
200
|
+
*
|
|
201
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
202
|
+
*
|
|
203
|
+
* @example
|
|
204
|
+
* await client.payments.createDirectCharge({
|
|
205
|
+
* amount: 1,
|
|
206
|
+
* connect_account_id: "connect_account_id"
|
|
207
|
+
* })
|
|
208
|
+
*/
|
|
209
|
+
createDirectCharge(request, requestOptions) {
|
|
210
|
+
return core.HttpResponsePromise.fromPromise(this.__createDirectCharge(request, requestOptions));
|
|
211
|
+
}
|
|
212
|
+
__createDirectCharge(request, requestOptions) {
|
|
213
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
214
|
+
var _a, _b, _c, _d;
|
|
215
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
216
|
+
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, "payments/create-direct-charge"),
|
|
217
|
+
method: "POST",
|
|
218
|
+
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),
|
|
219
|
+
contentType: "application/json",
|
|
220
|
+
requestType: "json",
|
|
221
|
+
body: request,
|
|
222
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
223
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
224
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
225
|
+
});
|
|
226
|
+
if (_response.ok) {
|
|
227
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
228
|
+
}
|
|
229
|
+
if (_response.error.reason === "status-code") {
|
|
230
|
+
switch (_response.error.statusCode) {
|
|
231
|
+
case 422:
|
|
232
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
233
|
+
default:
|
|
234
|
+
throw new errors.ChrtError({
|
|
235
|
+
statusCode: _response.error.statusCode,
|
|
236
|
+
body: _response.error.body,
|
|
237
|
+
rawResponse: _response.rawResponse,
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
switch (_response.error.reason) {
|
|
242
|
+
case "non-json":
|
|
243
|
+
throw new errors.ChrtError({
|
|
244
|
+
statusCode: _response.error.statusCode,
|
|
245
|
+
body: _response.error.rawBody,
|
|
246
|
+
rawResponse: _response.rawResponse,
|
|
247
|
+
});
|
|
248
|
+
case "timeout":
|
|
249
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /payments/create-direct-charge.");
|
|
250
|
+
case "unknown":
|
|
251
|
+
throw new errors.ChrtError({
|
|
252
|
+
message: _response.error.errorMessage,
|
|
253
|
+
rawResponse: _response.rawResponse,
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
});
|
|
257
|
+
}
|
|
84
258
|
/**
|
|
85
259
|
* Synchronizes subscription data from Stripe to the authentication service for the current user.
|
|
86
260
|
*
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* amount: 1,
|
|
8
|
+
* connect_account_id: "connect_account_id"
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface CreateDirectChargeReq {
|
|
12
|
+
amount: number;
|
|
13
|
+
connect_account_id: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
success_url?: string;
|
|
16
|
+
cancel_url?: string;
|
|
17
|
+
}
|
|
@@ -9,7 +9,7 @@ import * as Chrt from "../../../../index.mjs";
|
|
|
9
9
|
export interface ShipperContactInfoClientUpdate1 {
|
|
10
10
|
company_name?: string | null;
|
|
11
11
|
industry?: string | null;
|
|
12
|
-
street_address?: Chrt.
|
|
12
|
+
street_address?: Chrt.LocationFeature | null;
|
|
13
13
|
contact_first_name?: string | null;
|
|
14
14
|
contact_last_name?: string | null;
|
|
15
15
|
phone_number_primary?: string | null;
|
|
@@ -5,7 +5,7 @@ import * as Chrt from "../index.mjs";
|
|
|
5
5
|
export interface CourierOrgConnectionInfo1 {
|
|
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;
|
|
@@ -13,7 +13,7 @@ export interface Driver1 {
|
|
|
13
13
|
last_name?: string | null;
|
|
14
14
|
vehicle_types?: Chrt.VehicleTypeEnum[];
|
|
15
15
|
status?: Chrt.DriverStatusEnum;
|
|
16
|
-
last_seen_at_location?: Chrt.
|
|
16
|
+
last_seen_at_location?: Chrt.LocationFeature | null;
|
|
17
17
|
last_seen_at_timestamp?: string | null;
|
|
18
18
|
_id: string;
|
|
19
19
|
/** Must be a string starting with `org_` */
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../index.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* GeoJSON Feature with typed properties for locations
|
|
7
|
+
*/
|
|
8
|
+
export interface LocationFeature {
|
|
9
|
+
bbox?: unknown[];
|
|
10
|
+
type: "Feature";
|
|
11
|
+
geometry?: Chrt.LocationFeatureOutputGeometry | null;
|
|
12
|
+
properties?: Chrt.LocationProperties | null;
|
|
13
|
+
id?: LocationFeature.Id | null;
|
|
14
|
+
}
|
|
15
|
+
export declare namespace LocationFeature {
|
|
16
|
+
type Id = number | string;
|
|
17
|
+
}
|
package/dist/esm/api/types/{FeatureInputGeometry.d.mts → LocationFeatureInputGeometry.d.mts}
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.mjs";
|
|
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/esm/api/types/{FeatureOutputGeometry.d.mts → LocationFeatureOutputGeometry.d.mts}
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.mjs";
|
|
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.mjs";
|
|
|
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.mjs";
|
|
|
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.mjs";
|
|
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.mjs";
|
|
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.mjs";
|
|
2
1
|
export * from "./Cargo1.mjs";
|
|
3
2
|
export * from "./CargoClientCreate1.mjs";
|
|
4
3
|
export * from "./CargoTypeEnum1.mjs";
|
|
@@ -10,14 +9,14 @@ export * from "./CourierPayDriverLineItemGroup1.mjs";
|
|
|
10
9
|
export * from "./CourierPayDriverLineItemGroupClientCreate1.mjs";
|
|
11
10
|
export * from "./CourierPayDriverRateSheet1.mjs";
|
|
12
11
|
export * from "./CreateCheckoutSessionRes2.mjs";
|
|
12
|
+
export * from "./CreateConnectAccountLinkRes.mjs";
|
|
13
|
+
export * from "./CreateConnectAccountRes.mjs";
|
|
14
|
+
export * from "./CreateDirectChargeRes.mjs";
|
|
13
15
|
export * from "./CreateOrderRes.mjs";
|
|
14
16
|
export * from "./DecodedJwtWithOrgAndUserId.mjs";
|
|
15
17
|
export * from "./Driver1.mjs";
|
|
16
18
|
export * from "./DriverStatusEnum.mjs";
|
|
17
19
|
export * from "./Expense1.mjs";
|
|
18
|
-
export * from "./FeatureInputGeometry.mjs";
|
|
19
|
-
export * from "./Feature.mjs";
|
|
20
|
-
export * from "./FeatureOutputGeometry.mjs";
|
|
21
20
|
export * from "./GeometryCollectionInputGeometriesItem.mjs";
|
|
22
21
|
export * from "./GeometryCollection.mjs";
|
|
23
22
|
export * from "./GeometryCollectionOutputGeometriesItem.mjs";
|
|
@@ -30,6 +29,10 @@ export * from "./Insurance1.mjs";
|
|
|
30
29
|
export * from "./LineItem1.mjs";
|
|
31
30
|
export * from "./LineItemEnum1.mjs";
|
|
32
31
|
export * from "./LineString.mjs";
|
|
32
|
+
export * from "./LocationFeatureInputGeometry.mjs";
|
|
33
|
+
export * from "./LocationFeature.mjs";
|
|
34
|
+
export * from "./LocationFeatureOutputGeometry.mjs";
|
|
35
|
+
export * from "./LocationProperties.mjs";
|
|
33
36
|
export * from "./Milestone1.mjs";
|
|
34
37
|
export * from "./MilestoneClientCreate1.mjs";
|
|
35
38
|
export * from "./MilestoneNotificationPreferences1.mjs";
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export * from "./BaseModel.mjs";
|
|
2
1
|
export * from "./Cargo1.mjs";
|
|
3
2
|
export * from "./CargoClientCreate1.mjs";
|
|
4
3
|
export * from "./CargoTypeEnum1.mjs";
|
|
@@ -10,14 +9,14 @@ export * from "./CourierPayDriverLineItemGroup1.mjs";
|
|
|
10
9
|
export * from "./CourierPayDriverLineItemGroupClientCreate1.mjs";
|
|
11
10
|
export * from "./CourierPayDriverRateSheet1.mjs";
|
|
12
11
|
export * from "./CreateCheckoutSessionRes2.mjs";
|
|
12
|
+
export * from "./CreateConnectAccountLinkRes.mjs";
|
|
13
|
+
export * from "./CreateConnectAccountRes.mjs";
|
|
14
|
+
export * from "./CreateDirectChargeRes.mjs";
|
|
13
15
|
export * from "./CreateOrderRes.mjs";
|
|
14
16
|
export * from "./DecodedJwtWithOrgAndUserId.mjs";
|
|
15
17
|
export * from "./Driver1.mjs";
|
|
16
18
|
export * from "./DriverStatusEnum.mjs";
|
|
17
19
|
export * from "./Expense1.mjs";
|
|
18
|
-
export * from "./FeatureInputGeometry.mjs";
|
|
19
|
-
export * from "./Feature.mjs";
|
|
20
|
-
export * from "./FeatureOutputGeometry.mjs";
|
|
21
20
|
export * from "./GeometryCollectionInputGeometriesItem.mjs";
|
|
22
21
|
export * from "./GeometryCollection.mjs";
|
|
23
22
|
export * from "./GeometryCollectionOutputGeometriesItem.mjs";
|
|
@@ -30,6 +29,10 @@ export * from "./Insurance1.mjs";
|
|
|
30
29
|
export * from "./LineItem1.mjs";
|
|
31
30
|
export * from "./LineItemEnum1.mjs";
|
|
32
31
|
export * from "./LineString.mjs";
|
|
32
|
+
export * from "./LocationFeatureInputGeometry.mjs";
|
|
33
|
+
export * from "./LocationFeature.mjs";
|
|
34
|
+
export * from "./LocationFeatureOutputGeometry.mjs";
|
|
35
|
+
export * from "./LocationProperties.mjs";
|
|
33
36
|
export * from "./Milestone1.mjs";
|
|
34
37
|
export * from "./MilestoneClientCreate1.mjs";
|
|
35
38
|
export * from "./MilestoneNotificationPreferences1.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.
|
|
1
|
+
export declare const SDK_VERSION = "0.0.184";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.0.
|
|
1
|
+
export const SDK_VERSION = "0.0.184";
|