@chrt-inc/typescript-sdk 1.691.0 → 1.692.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/orgs/resources/complianceDocuments/client/Client.d.ts +14 -0
- package/dist/cjs/api/resources/orgs/resources/complianceDocuments/client/Client.js +63 -0
- package/dist/cjs/api/resources/orgs/resources/complianceDocuments/client/requests/OrgComplianceDocumentClientCreate1.d.ts +1 -0
- package/dist/cjs/api/resources/orgs/resources/complianceDocuments/client/requests/OrgComplianceDocumentClientUpdate1.d.ts +11 -0
- package/dist/cjs/api/resources/orgs/resources/complianceDocuments/client/requests/OrgComplianceDocumentClientUpdate1.js +5 -0
- package/dist/cjs/api/resources/orgs/resources/complianceDocuments/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/Client.d.ts +14 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/Client.js +63 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/requests/DriverComplianceDocumentClientCreate1.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/requests/DriverComplianceDocumentClientUpdate1.d.ts +11 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/requests/DriverComplianceDocumentClientUpdate1.js +5 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/types/DriverComplianceDocument1.d.ts +1 -0
- package/dist/cjs/api/types/DriverComplianceDocumentTypeEnum1.d.ts +16 -1
- package/dist/cjs/api/types/DriverComplianceDocumentTypeEnum1.js +15 -0
- package/dist/cjs/api/types/OrgComplianceDocument1.d.ts +1 -0
- package/dist/cjs/api/types/OrgComplianceDocumentTypeEnum1.d.ts +11 -1
- package/dist/cjs/api/types/OrgComplianceDocumentTypeEnum1.js +10 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/orgs/resources/complianceDocuments/client/Client.d.mts +14 -0
- package/dist/esm/api/resources/orgs/resources/complianceDocuments/client/Client.mjs +63 -0
- package/dist/esm/api/resources/orgs/resources/complianceDocuments/client/requests/OrgComplianceDocumentClientCreate1.d.mts +1 -0
- package/dist/esm/api/resources/orgs/resources/complianceDocuments/client/requests/OrgComplianceDocumentClientUpdate1.d.mts +11 -0
- package/dist/esm/api/resources/orgs/resources/complianceDocuments/client/requests/OrgComplianceDocumentClientUpdate1.mjs +4 -0
- package/dist/esm/api/resources/orgs/resources/complianceDocuments/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/Client.d.mts +14 -0
- package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/Client.mjs +63 -0
- package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/requests/DriverComplianceDocumentClientCreate1.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/requests/DriverComplianceDocumentClientUpdate1.d.mts +11 -0
- package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/requests/DriverComplianceDocumentClientUpdate1.mjs +4 -0
- package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/requests/index.d.mts +1 -0
- package/dist/esm/api/types/DriverComplianceDocument1.d.mts +1 -0
- package/dist/esm/api/types/DriverComplianceDocumentTypeEnum1.d.mts +16 -1
- package/dist/esm/api/types/DriverComplianceDocumentTypeEnum1.mjs +15 -0
- package/dist/esm/api/types/OrgComplianceDocument1.d.mts +1 -0
- package/dist/esm/api/types/OrgComplianceDocumentTypeEnum1.d.mts +11 -1
- package/dist/esm/api/types/OrgComplianceDocumentTypeEnum1.mjs +10 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +142 -0
package/dist/cjs/Client.js
CHANGED
|
@@ -56,8 +56,8 @@ class ChrtClient {
|
|
|
56
56
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
57
57
|
"X-Fern-Language": "JavaScript",
|
|
58
58
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
59
|
-
"X-Fern-SDK-Version": "1.
|
|
60
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
59
|
+
"X-Fern-SDK-Version": "1.692.0",
|
|
60
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.692.0",
|
|
61
61
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
62
62
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
63
63
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -72,5 +72,19 @@ export declare class ComplianceDocuments {
|
|
|
72
72
|
*/
|
|
73
73
|
createV1(request: Chrt.orgs.OrgComplianceDocumentClientCreate1, requestOptions?: ComplianceDocuments.RequestOptions): core.HttpResponsePromise<Chrt.OrgComplianceDocument1>;
|
|
74
74
|
private __createV1;
|
|
75
|
+
/**
|
|
76
|
+
* Updates an organization compliance document for the caller's provider organization. | authz: allowed_org_types=[provider], min_org_role=administrator | (OrgComplianceDocumentClientUpdate1) -> (OrgComplianceDocument1)
|
|
77
|
+
*
|
|
78
|
+
* @param {string} orgComplianceDocumentId
|
|
79
|
+
* @param {Chrt.orgs.OrgComplianceDocumentClientUpdate1} request
|
|
80
|
+
* @param {ComplianceDocuments.RequestOptions} requestOptions - Request-specific configuration.
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
* await client.orgs.complianceDocuments.updateV1("org_compliance_document_id")
|
|
86
|
+
*/
|
|
87
|
+
updateV1(orgComplianceDocumentId: string, request?: Chrt.orgs.OrgComplianceDocumentClientUpdate1, requestOptions?: ComplianceDocuments.RequestOptions): core.HttpResponsePromise<Chrt.OrgComplianceDocument1>;
|
|
88
|
+
private __updateV1;
|
|
75
89
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
76
90
|
}
|
|
@@ -235,6 +235,69 @@ class ComplianceDocuments {
|
|
|
235
235
|
}
|
|
236
236
|
});
|
|
237
237
|
}
|
|
238
|
+
/**
|
|
239
|
+
* Updates an organization compliance document for the caller's provider organization. | authz: allowed_org_types=[provider], min_org_role=administrator | (OrgComplianceDocumentClientUpdate1) -> (OrgComplianceDocument1)
|
|
240
|
+
*
|
|
241
|
+
* @param {string} orgComplianceDocumentId
|
|
242
|
+
* @param {Chrt.orgs.OrgComplianceDocumentClientUpdate1} request
|
|
243
|
+
* @param {ComplianceDocuments.RequestOptions} requestOptions - Request-specific configuration.
|
|
244
|
+
*
|
|
245
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
246
|
+
*
|
|
247
|
+
* @example
|
|
248
|
+
* await client.orgs.complianceDocuments.updateV1("org_compliance_document_id")
|
|
249
|
+
*/
|
|
250
|
+
updateV1(orgComplianceDocumentId, request = {}, requestOptions) {
|
|
251
|
+
return core.HttpResponsePromise.fromPromise(this.__updateV1(orgComplianceDocumentId, request, requestOptions));
|
|
252
|
+
}
|
|
253
|
+
__updateV1(orgComplianceDocumentId_1) {
|
|
254
|
+
return __awaiter(this, arguments, void 0, function* (orgComplianceDocumentId, request = {}, requestOptions) {
|
|
255
|
+
var _a, _b, _c, _d;
|
|
256
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
257
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
258
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `orgs/compliance_documents/update/v1/${encodeURIComponent(orgComplianceDocumentId)}`),
|
|
259
|
+
method: "PATCH",
|
|
260
|
+
headers: _headers,
|
|
261
|
+
contentType: "application/json",
|
|
262
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
263
|
+
requestType: "json",
|
|
264
|
+
body: request,
|
|
265
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
266
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
267
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
268
|
+
});
|
|
269
|
+
if (_response.ok) {
|
|
270
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
271
|
+
}
|
|
272
|
+
if (_response.error.reason === "status-code") {
|
|
273
|
+
switch (_response.error.statusCode) {
|
|
274
|
+
case 422:
|
|
275
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
276
|
+
default:
|
|
277
|
+
throw new errors.ChrtError({
|
|
278
|
+
statusCode: _response.error.statusCode,
|
|
279
|
+
body: _response.error.body,
|
|
280
|
+
rawResponse: _response.rawResponse,
|
|
281
|
+
});
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
switch (_response.error.reason) {
|
|
285
|
+
case "non-json":
|
|
286
|
+
throw new errors.ChrtError({
|
|
287
|
+
statusCode: _response.error.statusCode,
|
|
288
|
+
body: _response.error.rawBody,
|
|
289
|
+
rawResponse: _response.rawResponse,
|
|
290
|
+
});
|
|
291
|
+
case "timeout":
|
|
292
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /orgs/compliance_documents/update/v1/{org_compliance_document_id}.");
|
|
293
|
+
case "unknown":
|
|
294
|
+
throw new errors.ChrtError({
|
|
295
|
+
message: _response.error.errorMessage,
|
|
296
|
+
rawResponse: _response.rawResponse,
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
});
|
|
300
|
+
}
|
|
238
301
|
_getAuthorizationHeader() {
|
|
239
302
|
return __awaiter(this, void 0, void 0, function* () {
|
|
240
303
|
const bearer = yield core.Supplier.get(this._options.token);
|
|
@@ -12,6 +12,7 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
12
12
|
export interface OrgComplianceDocumentClientCreate1 {
|
|
13
13
|
schema_version: number;
|
|
14
14
|
document_type: Chrt.OrgComplianceDocumentTypeEnum1;
|
|
15
|
+
description?: string | null;
|
|
15
16
|
valid_from?: string | null;
|
|
16
17
|
valid_until?: string | null;
|
|
17
18
|
}
|
|
@@ -76,5 +76,19 @@ export declare class ComplianceDocuments {
|
|
|
76
76
|
*/
|
|
77
77
|
createV1(driverId: string, request: Chrt.shipping.drivers.DriverComplianceDocumentClientCreate1, requestOptions?: ComplianceDocuments.RequestOptions): core.HttpResponsePromise<Chrt.DriverComplianceDocument1>;
|
|
78
78
|
private __createV1;
|
|
79
|
+
/**
|
|
80
|
+
* Updates a driver compliance document in the caller's provider organization. | authz: allowed_org_types=[provider], min_org_role=administrator | (DriverComplianceDocumentClientUpdate1) -> (DriverComplianceDocument1)
|
|
81
|
+
*
|
|
82
|
+
* @param {string} driverComplianceDocumentId
|
|
83
|
+
* @param {Chrt.shipping.drivers.DriverComplianceDocumentClientUpdate1} request
|
|
84
|
+
* @param {ComplianceDocuments.RequestOptions} requestOptions - Request-specific configuration.
|
|
85
|
+
*
|
|
86
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
87
|
+
*
|
|
88
|
+
* @example
|
|
89
|
+
* await client.shipping.drivers.complianceDocuments.updateV1("driver_compliance_document_id")
|
|
90
|
+
*/
|
|
91
|
+
updateV1(driverComplianceDocumentId: string, request?: Chrt.shipping.drivers.DriverComplianceDocumentClientUpdate1, requestOptions?: ComplianceDocuments.RequestOptions): core.HttpResponsePromise<Chrt.DriverComplianceDocument1>;
|
|
92
|
+
private __updateV1;
|
|
79
93
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
80
94
|
}
|
|
@@ -244,6 +244,69 @@ class ComplianceDocuments {
|
|
|
244
244
|
}
|
|
245
245
|
});
|
|
246
246
|
}
|
|
247
|
+
/**
|
|
248
|
+
* Updates a driver compliance document in the caller's provider organization. | authz: allowed_org_types=[provider], min_org_role=administrator | (DriverComplianceDocumentClientUpdate1) -> (DriverComplianceDocument1)
|
|
249
|
+
*
|
|
250
|
+
* @param {string} driverComplianceDocumentId
|
|
251
|
+
* @param {Chrt.shipping.drivers.DriverComplianceDocumentClientUpdate1} request
|
|
252
|
+
* @param {ComplianceDocuments.RequestOptions} requestOptions - Request-specific configuration.
|
|
253
|
+
*
|
|
254
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
255
|
+
*
|
|
256
|
+
* @example
|
|
257
|
+
* await client.shipping.drivers.complianceDocuments.updateV1("driver_compliance_document_id")
|
|
258
|
+
*/
|
|
259
|
+
updateV1(driverComplianceDocumentId, request = {}, requestOptions) {
|
|
260
|
+
return core.HttpResponsePromise.fromPromise(this.__updateV1(driverComplianceDocumentId, request, requestOptions));
|
|
261
|
+
}
|
|
262
|
+
__updateV1(driverComplianceDocumentId_1) {
|
|
263
|
+
return __awaiter(this, arguments, void 0, function* (driverComplianceDocumentId, request = {}, requestOptions) {
|
|
264
|
+
var _a, _b, _c, _d;
|
|
265
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
266
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
267
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `shipping/drivers/compliance_documents/update/v1/${encodeURIComponent(driverComplianceDocumentId)}`),
|
|
268
|
+
method: "PATCH",
|
|
269
|
+
headers: _headers,
|
|
270
|
+
contentType: "application/json",
|
|
271
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
272
|
+
requestType: "json",
|
|
273
|
+
body: request,
|
|
274
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
275
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
276
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
277
|
+
});
|
|
278
|
+
if (_response.ok) {
|
|
279
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
280
|
+
}
|
|
281
|
+
if (_response.error.reason === "status-code") {
|
|
282
|
+
switch (_response.error.statusCode) {
|
|
283
|
+
case 422:
|
|
284
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
285
|
+
default:
|
|
286
|
+
throw new errors.ChrtError({
|
|
287
|
+
statusCode: _response.error.statusCode,
|
|
288
|
+
body: _response.error.body,
|
|
289
|
+
rawResponse: _response.rawResponse,
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
switch (_response.error.reason) {
|
|
294
|
+
case "non-json":
|
|
295
|
+
throw new errors.ChrtError({
|
|
296
|
+
statusCode: _response.error.statusCode,
|
|
297
|
+
body: _response.error.rawBody,
|
|
298
|
+
rawResponse: _response.rawResponse,
|
|
299
|
+
});
|
|
300
|
+
case "timeout":
|
|
301
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /shipping/drivers/compliance_documents/update/v1/{driver_compliance_document_id}.");
|
|
302
|
+
case "unknown":
|
|
303
|
+
throw new errors.ChrtError({
|
|
304
|
+
message: _response.error.errorMessage,
|
|
305
|
+
rawResponse: _response.rawResponse,
|
|
306
|
+
});
|
|
307
|
+
}
|
|
308
|
+
});
|
|
309
|
+
}
|
|
247
310
|
_getAuthorizationHeader() {
|
|
248
311
|
return __awaiter(this, void 0, void 0, function* () {
|
|
249
312
|
const bearer = yield core.Supplier.get(this._options.token);
|
|
@@ -12,6 +12,7 @@ import * as Chrt from "../../../../../../../../index.js";
|
|
|
12
12
|
export interface DriverComplianceDocumentClientCreate1 {
|
|
13
13
|
schema_version: number;
|
|
14
14
|
document_type: Chrt.DriverComplianceDocumentTypeEnum1;
|
|
15
|
+
description?: string | null;
|
|
15
16
|
valid_from?: string | null;
|
|
16
17
|
valid_until?: string | null;
|
|
17
18
|
}
|
|
@@ -9,6 +9,7 @@ export interface DriverComplianceDocument1 {
|
|
|
9
9
|
org_id: string;
|
|
10
10
|
driver_id: string;
|
|
11
11
|
document_type: Chrt.DriverComplianceDocumentTypeEnum1;
|
|
12
|
+
description?: string | null;
|
|
12
13
|
driver_compliance_document_s3_object_metadata_ids?: string[];
|
|
13
14
|
valid_from?: string | null;
|
|
14
15
|
valid_until?: string | null;
|
|
@@ -1,8 +1,23 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type DriverComplianceDocumentTypeEnum1 = "drivers_license" | "commercial_drivers_license";
|
|
4
|
+
export type DriverComplianceDocumentTypeEnum1 = "drivers_license" | "commercial_drivers_license" | "tsa_sta" | "iata_dangerous_goods" | "dot_hazmat" | "cdl_hazmat_endorsement" | "osha_bloodborne_pathogens" | "medical_specimen" | "clinical_lab_specimen" | "pathology" | "blood_products" | "pharmaceutical" | "cold_chain" | "vehicle_registration" | "vehicle_inspection" | "background_check" | "mvr_check";
|
|
5
5
|
export declare const DriverComplianceDocumentTypeEnum1: {
|
|
6
6
|
readonly DriversLicense: "drivers_license";
|
|
7
7
|
readonly CommercialDriversLicense: "commercial_drivers_license";
|
|
8
|
+
readonly TsaSta: "tsa_sta";
|
|
9
|
+
readonly IataDangerousGoods: "iata_dangerous_goods";
|
|
10
|
+
readonly DotHazmat: "dot_hazmat";
|
|
11
|
+
readonly CdlHazmatEndorsement: "cdl_hazmat_endorsement";
|
|
12
|
+
readonly OshaBloodbornePathogens: "osha_bloodborne_pathogens";
|
|
13
|
+
readonly MedicalSpecimen: "medical_specimen";
|
|
14
|
+
readonly ClinicalLabSpecimen: "clinical_lab_specimen";
|
|
15
|
+
readonly Pathology: "pathology";
|
|
16
|
+
readonly BloodProducts: "blood_products";
|
|
17
|
+
readonly Pharmaceutical: "pharmaceutical";
|
|
18
|
+
readonly ColdChain: "cold_chain";
|
|
19
|
+
readonly VehicleRegistration: "vehicle_registration";
|
|
20
|
+
readonly VehicleInspection: "vehicle_inspection";
|
|
21
|
+
readonly BackgroundCheck: "background_check";
|
|
22
|
+
readonly MvrCheck: "mvr_check";
|
|
8
23
|
};
|
|
@@ -7,4 +7,19 @@ exports.DriverComplianceDocumentTypeEnum1 = void 0;
|
|
|
7
7
|
exports.DriverComplianceDocumentTypeEnum1 = {
|
|
8
8
|
DriversLicense: "drivers_license",
|
|
9
9
|
CommercialDriversLicense: "commercial_drivers_license",
|
|
10
|
+
TsaSta: "tsa_sta",
|
|
11
|
+
IataDangerousGoods: "iata_dangerous_goods",
|
|
12
|
+
DotHazmat: "dot_hazmat",
|
|
13
|
+
CdlHazmatEndorsement: "cdl_hazmat_endorsement",
|
|
14
|
+
OshaBloodbornePathogens: "osha_bloodborne_pathogens",
|
|
15
|
+
MedicalSpecimen: "medical_specimen",
|
|
16
|
+
ClinicalLabSpecimen: "clinical_lab_specimen",
|
|
17
|
+
Pathology: "pathology",
|
|
18
|
+
BloodProducts: "blood_products",
|
|
19
|
+
Pharmaceutical: "pharmaceutical",
|
|
20
|
+
ColdChain: "cold_chain",
|
|
21
|
+
VehicleRegistration: "vehicle_registration",
|
|
22
|
+
VehicleInspection: "vehicle_inspection",
|
|
23
|
+
BackgroundCheck: "background_check",
|
|
24
|
+
MvrCheck: "mvr_check",
|
|
10
25
|
};
|
|
@@ -9,6 +9,7 @@ export interface OrgComplianceDocument1 {
|
|
|
9
9
|
/** Must be a string starting with `org_` */
|
|
10
10
|
org_id: string;
|
|
11
11
|
document_type: Chrt.OrgComplianceDocumentTypeEnum1;
|
|
12
|
+
description?: string | null;
|
|
12
13
|
org_compliance_document_s3_object_metadata_ids?: string[];
|
|
13
14
|
valid_from?: string | null;
|
|
14
15
|
valid_until?: string | null;
|
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type OrgComplianceDocumentTypeEnum1 = "security_threat_assessment" | "insurance";
|
|
4
|
+
export type OrgComplianceDocumentTypeEnum1 = "security_threat_assessment" | "insurance" | "indirect_air_carrier" | "customs_broker" | "gdp" | "authorized_economic_operator" | "hipaa" | "chain_of_custody" | "auto_liability_insurance" | "cargo_insurance" | "general_liability_insurance" | "workers_comp_insurance";
|
|
5
5
|
export declare const OrgComplianceDocumentTypeEnum1: {
|
|
6
6
|
readonly SecurityThreatAssessment: "security_threat_assessment";
|
|
7
7
|
readonly Insurance: "insurance";
|
|
8
|
+
readonly IndirectAirCarrier: "indirect_air_carrier";
|
|
9
|
+
readonly CustomsBroker: "customs_broker";
|
|
10
|
+
readonly Gdp: "gdp";
|
|
11
|
+
readonly AuthorizedEconomicOperator: "authorized_economic_operator";
|
|
12
|
+
readonly Hipaa: "hipaa";
|
|
13
|
+
readonly ChainOfCustody: "chain_of_custody";
|
|
14
|
+
readonly AutoLiabilityInsurance: "auto_liability_insurance";
|
|
15
|
+
readonly CargoInsurance: "cargo_insurance";
|
|
16
|
+
readonly GeneralLiabilityInsurance: "general_liability_insurance";
|
|
17
|
+
readonly WorkersCompInsurance: "workers_comp_insurance";
|
|
8
18
|
};
|
|
@@ -7,4 +7,14 @@ exports.OrgComplianceDocumentTypeEnum1 = void 0;
|
|
|
7
7
|
exports.OrgComplianceDocumentTypeEnum1 = {
|
|
8
8
|
SecurityThreatAssessment: "security_threat_assessment",
|
|
9
9
|
Insurance: "insurance",
|
|
10
|
+
IndirectAirCarrier: "indirect_air_carrier",
|
|
11
|
+
CustomsBroker: "customs_broker",
|
|
12
|
+
Gdp: "gdp",
|
|
13
|
+
AuthorizedEconomicOperator: "authorized_economic_operator",
|
|
14
|
+
Hipaa: "hipaa",
|
|
15
|
+
ChainOfCustody: "chain_of_custody",
|
|
16
|
+
AutoLiabilityInsurance: "auto_liability_insurance",
|
|
17
|
+
CargoInsurance: "cargo_insurance",
|
|
18
|
+
GeneralLiabilityInsurance: "general_liability_insurance",
|
|
19
|
+
WorkersCompInsurance: "workers_comp_insurance",
|
|
10
20
|
};
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.692.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -20,8 +20,8 @@ export class ChrtClient {
|
|
|
20
20
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
21
21
|
"X-Fern-Language": "JavaScript",
|
|
22
22
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
23
|
-
"X-Fern-SDK-Version": "1.
|
|
24
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
23
|
+
"X-Fern-SDK-Version": "1.692.0",
|
|
24
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.692.0",
|
|
25
25
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
26
26
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
27
27
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -72,5 +72,19 @@ export declare class ComplianceDocuments {
|
|
|
72
72
|
*/
|
|
73
73
|
createV1(request: Chrt.orgs.OrgComplianceDocumentClientCreate1, requestOptions?: ComplianceDocuments.RequestOptions): core.HttpResponsePromise<Chrt.OrgComplianceDocument1>;
|
|
74
74
|
private __createV1;
|
|
75
|
+
/**
|
|
76
|
+
* Updates an organization compliance document for the caller's provider organization. | authz: allowed_org_types=[provider], min_org_role=administrator | (OrgComplianceDocumentClientUpdate1) -> (OrgComplianceDocument1)
|
|
77
|
+
*
|
|
78
|
+
* @param {string} orgComplianceDocumentId
|
|
79
|
+
* @param {Chrt.orgs.OrgComplianceDocumentClientUpdate1} request
|
|
80
|
+
* @param {ComplianceDocuments.RequestOptions} requestOptions - Request-specific configuration.
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
* await client.orgs.complianceDocuments.updateV1("org_compliance_document_id")
|
|
86
|
+
*/
|
|
87
|
+
updateV1(orgComplianceDocumentId: string, request?: Chrt.orgs.OrgComplianceDocumentClientUpdate1, requestOptions?: ComplianceDocuments.RequestOptions): core.HttpResponsePromise<Chrt.OrgComplianceDocument1>;
|
|
88
|
+
private __updateV1;
|
|
75
89
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
76
90
|
}
|
|
@@ -199,6 +199,69 @@ export class ComplianceDocuments {
|
|
|
199
199
|
}
|
|
200
200
|
});
|
|
201
201
|
}
|
|
202
|
+
/**
|
|
203
|
+
* Updates an organization compliance document for the caller's provider organization. | authz: allowed_org_types=[provider], min_org_role=administrator | (OrgComplianceDocumentClientUpdate1) -> (OrgComplianceDocument1)
|
|
204
|
+
*
|
|
205
|
+
* @param {string} orgComplianceDocumentId
|
|
206
|
+
* @param {Chrt.orgs.OrgComplianceDocumentClientUpdate1} request
|
|
207
|
+
* @param {ComplianceDocuments.RequestOptions} requestOptions - Request-specific configuration.
|
|
208
|
+
*
|
|
209
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
210
|
+
*
|
|
211
|
+
* @example
|
|
212
|
+
* await client.orgs.complianceDocuments.updateV1("org_compliance_document_id")
|
|
213
|
+
*/
|
|
214
|
+
updateV1(orgComplianceDocumentId, request = {}, requestOptions) {
|
|
215
|
+
return core.HttpResponsePromise.fromPromise(this.__updateV1(orgComplianceDocumentId, request, requestOptions));
|
|
216
|
+
}
|
|
217
|
+
__updateV1(orgComplianceDocumentId_1) {
|
|
218
|
+
return __awaiter(this, arguments, void 0, function* (orgComplianceDocumentId, request = {}, requestOptions) {
|
|
219
|
+
var _a, _b, _c, _d;
|
|
220
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
221
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
222
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `orgs/compliance_documents/update/v1/${encodeURIComponent(orgComplianceDocumentId)}`),
|
|
223
|
+
method: "PATCH",
|
|
224
|
+
headers: _headers,
|
|
225
|
+
contentType: "application/json",
|
|
226
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
227
|
+
requestType: "json",
|
|
228
|
+
body: request,
|
|
229
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
230
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
231
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
232
|
+
});
|
|
233
|
+
if (_response.ok) {
|
|
234
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
235
|
+
}
|
|
236
|
+
if (_response.error.reason === "status-code") {
|
|
237
|
+
switch (_response.error.statusCode) {
|
|
238
|
+
case 422:
|
|
239
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
240
|
+
default:
|
|
241
|
+
throw new errors.ChrtError({
|
|
242
|
+
statusCode: _response.error.statusCode,
|
|
243
|
+
body: _response.error.body,
|
|
244
|
+
rawResponse: _response.rawResponse,
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
switch (_response.error.reason) {
|
|
249
|
+
case "non-json":
|
|
250
|
+
throw new errors.ChrtError({
|
|
251
|
+
statusCode: _response.error.statusCode,
|
|
252
|
+
body: _response.error.rawBody,
|
|
253
|
+
rawResponse: _response.rawResponse,
|
|
254
|
+
});
|
|
255
|
+
case "timeout":
|
|
256
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /orgs/compliance_documents/update/v1/{org_compliance_document_id}.");
|
|
257
|
+
case "unknown":
|
|
258
|
+
throw new errors.ChrtError({
|
|
259
|
+
message: _response.error.errorMessage,
|
|
260
|
+
rawResponse: _response.rawResponse,
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
});
|
|
264
|
+
}
|
|
202
265
|
_getAuthorizationHeader() {
|
|
203
266
|
return __awaiter(this, void 0, void 0, function* () {
|
|
204
267
|
const bearer = yield core.Supplier.get(this._options.token);
|
|
@@ -12,6 +12,7 @@ import * as Chrt from "../../../../../../index.mjs";
|
|
|
12
12
|
export interface OrgComplianceDocumentClientCreate1 {
|
|
13
13
|
schema_version: number;
|
|
14
14
|
document_type: Chrt.OrgComplianceDocumentTypeEnum1;
|
|
15
|
+
description?: string | null;
|
|
15
16
|
valid_from?: string | null;
|
|
16
17
|
valid_until?: string | null;
|
|
17
18
|
}
|
|
@@ -76,5 +76,19 @@ export declare class ComplianceDocuments {
|
|
|
76
76
|
*/
|
|
77
77
|
createV1(driverId: string, request: Chrt.shipping.drivers.DriverComplianceDocumentClientCreate1, requestOptions?: ComplianceDocuments.RequestOptions): core.HttpResponsePromise<Chrt.DriverComplianceDocument1>;
|
|
78
78
|
private __createV1;
|
|
79
|
+
/**
|
|
80
|
+
* Updates a driver compliance document in the caller's provider organization. | authz: allowed_org_types=[provider], min_org_role=administrator | (DriverComplianceDocumentClientUpdate1) -> (DriverComplianceDocument1)
|
|
81
|
+
*
|
|
82
|
+
* @param {string} driverComplianceDocumentId
|
|
83
|
+
* @param {Chrt.shipping.drivers.DriverComplianceDocumentClientUpdate1} request
|
|
84
|
+
* @param {ComplianceDocuments.RequestOptions} requestOptions - Request-specific configuration.
|
|
85
|
+
*
|
|
86
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
87
|
+
*
|
|
88
|
+
* @example
|
|
89
|
+
* await client.shipping.drivers.complianceDocuments.updateV1("driver_compliance_document_id")
|
|
90
|
+
*/
|
|
91
|
+
updateV1(driverComplianceDocumentId: string, request?: Chrt.shipping.drivers.DriverComplianceDocumentClientUpdate1, requestOptions?: ComplianceDocuments.RequestOptions): core.HttpResponsePromise<Chrt.DriverComplianceDocument1>;
|
|
92
|
+
private __updateV1;
|
|
79
93
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
80
94
|
}
|
|
@@ -208,6 +208,69 @@ export class ComplianceDocuments {
|
|
|
208
208
|
}
|
|
209
209
|
});
|
|
210
210
|
}
|
|
211
|
+
/**
|
|
212
|
+
* Updates a driver compliance document in the caller's provider organization. | authz: allowed_org_types=[provider], min_org_role=administrator | (DriverComplianceDocumentClientUpdate1) -> (DriverComplianceDocument1)
|
|
213
|
+
*
|
|
214
|
+
* @param {string} driverComplianceDocumentId
|
|
215
|
+
* @param {Chrt.shipping.drivers.DriverComplianceDocumentClientUpdate1} request
|
|
216
|
+
* @param {ComplianceDocuments.RequestOptions} requestOptions - Request-specific configuration.
|
|
217
|
+
*
|
|
218
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
219
|
+
*
|
|
220
|
+
* @example
|
|
221
|
+
* await client.shipping.drivers.complianceDocuments.updateV1("driver_compliance_document_id")
|
|
222
|
+
*/
|
|
223
|
+
updateV1(driverComplianceDocumentId, request = {}, requestOptions) {
|
|
224
|
+
return core.HttpResponsePromise.fromPromise(this.__updateV1(driverComplianceDocumentId, request, requestOptions));
|
|
225
|
+
}
|
|
226
|
+
__updateV1(driverComplianceDocumentId_1) {
|
|
227
|
+
return __awaiter(this, arguments, void 0, function* (driverComplianceDocumentId, request = {}, requestOptions) {
|
|
228
|
+
var _a, _b, _c, _d;
|
|
229
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
230
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
231
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `shipping/drivers/compliance_documents/update/v1/${encodeURIComponent(driverComplianceDocumentId)}`),
|
|
232
|
+
method: "PATCH",
|
|
233
|
+
headers: _headers,
|
|
234
|
+
contentType: "application/json",
|
|
235
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
236
|
+
requestType: "json",
|
|
237
|
+
body: request,
|
|
238
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
239
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
240
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
241
|
+
});
|
|
242
|
+
if (_response.ok) {
|
|
243
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
244
|
+
}
|
|
245
|
+
if (_response.error.reason === "status-code") {
|
|
246
|
+
switch (_response.error.statusCode) {
|
|
247
|
+
case 422:
|
|
248
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
249
|
+
default:
|
|
250
|
+
throw new errors.ChrtError({
|
|
251
|
+
statusCode: _response.error.statusCode,
|
|
252
|
+
body: _response.error.body,
|
|
253
|
+
rawResponse: _response.rawResponse,
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
switch (_response.error.reason) {
|
|
258
|
+
case "non-json":
|
|
259
|
+
throw new errors.ChrtError({
|
|
260
|
+
statusCode: _response.error.statusCode,
|
|
261
|
+
body: _response.error.rawBody,
|
|
262
|
+
rawResponse: _response.rawResponse,
|
|
263
|
+
});
|
|
264
|
+
case "timeout":
|
|
265
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /shipping/drivers/compliance_documents/update/v1/{driver_compliance_document_id}.");
|
|
266
|
+
case "unknown":
|
|
267
|
+
throw new errors.ChrtError({
|
|
268
|
+
message: _response.error.errorMessage,
|
|
269
|
+
rawResponse: _response.rawResponse,
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
});
|
|
273
|
+
}
|
|
211
274
|
_getAuthorizationHeader() {
|
|
212
275
|
return __awaiter(this, void 0, void 0, function* () {
|
|
213
276
|
const bearer = yield core.Supplier.get(this._options.token);
|
|
@@ -12,6 +12,7 @@ import * as Chrt from "../../../../../../../../index.mjs";
|
|
|
12
12
|
export interface DriverComplianceDocumentClientCreate1 {
|
|
13
13
|
schema_version: number;
|
|
14
14
|
document_type: Chrt.DriverComplianceDocumentTypeEnum1;
|
|
15
|
+
description?: string | null;
|
|
15
16
|
valid_from?: string | null;
|
|
16
17
|
valid_until?: string | null;
|
|
17
18
|
}
|
|
@@ -9,6 +9,7 @@ export interface DriverComplianceDocument1 {
|
|
|
9
9
|
org_id: string;
|
|
10
10
|
driver_id: string;
|
|
11
11
|
document_type: Chrt.DriverComplianceDocumentTypeEnum1;
|
|
12
|
+
description?: string | null;
|
|
12
13
|
driver_compliance_document_s3_object_metadata_ids?: string[];
|
|
13
14
|
valid_from?: string | null;
|
|
14
15
|
valid_until?: string | null;
|
|
@@ -1,8 +1,23 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type DriverComplianceDocumentTypeEnum1 = "drivers_license" | "commercial_drivers_license";
|
|
4
|
+
export type DriverComplianceDocumentTypeEnum1 = "drivers_license" | "commercial_drivers_license" | "tsa_sta" | "iata_dangerous_goods" | "dot_hazmat" | "cdl_hazmat_endorsement" | "osha_bloodborne_pathogens" | "medical_specimen" | "clinical_lab_specimen" | "pathology" | "blood_products" | "pharmaceutical" | "cold_chain" | "vehicle_registration" | "vehicle_inspection" | "background_check" | "mvr_check";
|
|
5
5
|
export declare const DriverComplianceDocumentTypeEnum1: {
|
|
6
6
|
readonly DriversLicense: "drivers_license";
|
|
7
7
|
readonly CommercialDriversLicense: "commercial_drivers_license";
|
|
8
|
+
readonly TsaSta: "tsa_sta";
|
|
9
|
+
readonly IataDangerousGoods: "iata_dangerous_goods";
|
|
10
|
+
readonly DotHazmat: "dot_hazmat";
|
|
11
|
+
readonly CdlHazmatEndorsement: "cdl_hazmat_endorsement";
|
|
12
|
+
readonly OshaBloodbornePathogens: "osha_bloodborne_pathogens";
|
|
13
|
+
readonly MedicalSpecimen: "medical_specimen";
|
|
14
|
+
readonly ClinicalLabSpecimen: "clinical_lab_specimen";
|
|
15
|
+
readonly Pathology: "pathology";
|
|
16
|
+
readonly BloodProducts: "blood_products";
|
|
17
|
+
readonly Pharmaceutical: "pharmaceutical";
|
|
18
|
+
readonly ColdChain: "cold_chain";
|
|
19
|
+
readonly VehicleRegistration: "vehicle_registration";
|
|
20
|
+
readonly VehicleInspection: "vehicle_inspection";
|
|
21
|
+
readonly BackgroundCheck: "background_check";
|
|
22
|
+
readonly MvrCheck: "mvr_check";
|
|
8
23
|
};
|
|
@@ -4,4 +4,19 @@
|
|
|
4
4
|
export const DriverComplianceDocumentTypeEnum1 = {
|
|
5
5
|
DriversLicense: "drivers_license",
|
|
6
6
|
CommercialDriversLicense: "commercial_drivers_license",
|
|
7
|
+
TsaSta: "tsa_sta",
|
|
8
|
+
IataDangerousGoods: "iata_dangerous_goods",
|
|
9
|
+
DotHazmat: "dot_hazmat",
|
|
10
|
+
CdlHazmatEndorsement: "cdl_hazmat_endorsement",
|
|
11
|
+
OshaBloodbornePathogens: "osha_bloodborne_pathogens",
|
|
12
|
+
MedicalSpecimen: "medical_specimen",
|
|
13
|
+
ClinicalLabSpecimen: "clinical_lab_specimen",
|
|
14
|
+
Pathology: "pathology",
|
|
15
|
+
BloodProducts: "blood_products",
|
|
16
|
+
Pharmaceutical: "pharmaceutical",
|
|
17
|
+
ColdChain: "cold_chain",
|
|
18
|
+
VehicleRegistration: "vehicle_registration",
|
|
19
|
+
VehicleInspection: "vehicle_inspection",
|
|
20
|
+
BackgroundCheck: "background_check",
|
|
21
|
+
MvrCheck: "mvr_check",
|
|
7
22
|
};
|
|
@@ -9,6 +9,7 @@ export interface OrgComplianceDocument1 {
|
|
|
9
9
|
/** Must be a string starting with `org_` */
|
|
10
10
|
org_id: string;
|
|
11
11
|
document_type: Chrt.OrgComplianceDocumentTypeEnum1;
|
|
12
|
+
description?: string | null;
|
|
12
13
|
org_compliance_document_s3_object_metadata_ids?: string[];
|
|
13
14
|
valid_from?: string | null;
|
|
14
15
|
valid_until?: string | null;
|
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type OrgComplianceDocumentTypeEnum1 = "security_threat_assessment" | "insurance";
|
|
4
|
+
export type OrgComplianceDocumentTypeEnum1 = "security_threat_assessment" | "insurance" | "indirect_air_carrier" | "customs_broker" | "gdp" | "authorized_economic_operator" | "hipaa" | "chain_of_custody" | "auto_liability_insurance" | "cargo_insurance" | "general_liability_insurance" | "workers_comp_insurance";
|
|
5
5
|
export declare const OrgComplianceDocumentTypeEnum1: {
|
|
6
6
|
readonly SecurityThreatAssessment: "security_threat_assessment";
|
|
7
7
|
readonly Insurance: "insurance";
|
|
8
|
+
readonly IndirectAirCarrier: "indirect_air_carrier";
|
|
9
|
+
readonly CustomsBroker: "customs_broker";
|
|
10
|
+
readonly Gdp: "gdp";
|
|
11
|
+
readonly AuthorizedEconomicOperator: "authorized_economic_operator";
|
|
12
|
+
readonly Hipaa: "hipaa";
|
|
13
|
+
readonly ChainOfCustody: "chain_of_custody";
|
|
14
|
+
readonly AutoLiabilityInsurance: "auto_liability_insurance";
|
|
15
|
+
readonly CargoInsurance: "cargo_insurance";
|
|
16
|
+
readonly GeneralLiabilityInsurance: "general_liability_insurance";
|
|
17
|
+
readonly WorkersCompInsurance: "workers_comp_insurance";
|
|
8
18
|
};
|
|
@@ -4,4 +4,14 @@
|
|
|
4
4
|
export const OrgComplianceDocumentTypeEnum1 = {
|
|
5
5
|
SecurityThreatAssessment: "security_threat_assessment",
|
|
6
6
|
Insurance: "insurance",
|
|
7
|
+
IndirectAirCarrier: "indirect_air_carrier",
|
|
8
|
+
CustomsBroker: "customs_broker",
|
|
9
|
+
Gdp: "gdp",
|
|
10
|
+
AuthorizedEconomicOperator: "authorized_economic_operator",
|
|
11
|
+
Hipaa: "hipaa",
|
|
12
|
+
ChainOfCustody: "chain_of_custody",
|
|
13
|
+
AutoLiabilityInsurance: "auto_liability_insurance",
|
|
14
|
+
CargoInsurance: "cargo_insurance",
|
|
15
|
+
GeneralLiabilityInsurance: "general_liability_insurance",
|
|
16
|
+
WorkersCompInsurance: "workers_comp_insurance",
|
|
7
17
|
};
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.692.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.
|
|
1
|
+
export const SDK_VERSION = "1.692.0";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -13654,6 +13654,77 @@ await client.orgs.complianceDocuments.createV1({
|
|
|
13654
13654
|
</dl>
|
|
13655
13655
|
</details>
|
|
13656
13656
|
|
|
13657
|
+
<details><summary><code>client.orgs.complianceDocuments.<a href="/src/api/resources/orgs/resources/complianceDocuments/client/Client.ts">updateV1</a>(orgComplianceDocumentId, { ...params }) -> Chrt.OrgComplianceDocument1</code></summary>
|
|
13658
|
+
<dl>
|
|
13659
|
+
<dd>
|
|
13660
|
+
|
|
13661
|
+
#### 📝 Description
|
|
13662
|
+
|
|
13663
|
+
<dl>
|
|
13664
|
+
<dd>
|
|
13665
|
+
|
|
13666
|
+
<dl>
|
|
13667
|
+
<dd>
|
|
13668
|
+
|
|
13669
|
+
Updates an organization compliance document for the caller's provider organization. | authz: allowed_org_types=[provider], min_org_role=administrator | (OrgComplianceDocumentClientUpdate1) -> (OrgComplianceDocument1)
|
|
13670
|
+
|
|
13671
|
+
</dd>
|
|
13672
|
+
</dl>
|
|
13673
|
+
</dd>
|
|
13674
|
+
</dl>
|
|
13675
|
+
|
|
13676
|
+
#### 🔌 Usage
|
|
13677
|
+
|
|
13678
|
+
<dl>
|
|
13679
|
+
<dd>
|
|
13680
|
+
|
|
13681
|
+
<dl>
|
|
13682
|
+
<dd>
|
|
13683
|
+
|
|
13684
|
+
```typescript
|
|
13685
|
+
await client.orgs.complianceDocuments.updateV1("org_compliance_document_id");
|
|
13686
|
+
```
|
|
13687
|
+
|
|
13688
|
+
</dd>
|
|
13689
|
+
</dl>
|
|
13690
|
+
</dd>
|
|
13691
|
+
</dl>
|
|
13692
|
+
|
|
13693
|
+
#### ⚙️ Parameters
|
|
13694
|
+
|
|
13695
|
+
<dl>
|
|
13696
|
+
<dd>
|
|
13697
|
+
|
|
13698
|
+
<dl>
|
|
13699
|
+
<dd>
|
|
13700
|
+
|
|
13701
|
+
**orgComplianceDocumentId:** `string`
|
|
13702
|
+
|
|
13703
|
+
</dd>
|
|
13704
|
+
</dl>
|
|
13705
|
+
|
|
13706
|
+
<dl>
|
|
13707
|
+
<dd>
|
|
13708
|
+
|
|
13709
|
+
**request:** `Chrt.orgs.OrgComplianceDocumentClientUpdate1`
|
|
13710
|
+
|
|
13711
|
+
</dd>
|
|
13712
|
+
</dl>
|
|
13713
|
+
|
|
13714
|
+
<dl>
|
|
13715
|
+
<dd>
|
|
13716
|
+
|
|
13717
|
+
**requestOptions:** `ComplianceDocuments.RequestOptions`
|
|
13718
|
+
|
|
13719
|
+
</dd>
|
|
13720
|
+
</dl>
|
|
13721
|
+
</dd>
|
|
13722
|
+
</dl>
|
|
13723
|
+
|
|
13724
|
+
</dd>
|
|
13725
|
+
</dl>
|
|
13726
|
+
</details>
|
|
13727
|
+
|
|
13657
13728
|
## Orgs PrivateData
|
|
13658
13729
|
|
|
13659
13730
|
<details><summary><code>client.orgs.privateData.<a href="/src/api/resources/orgs/resources/privateData/client/Client.ts">getV1</a>() -> Chrt.OrgPrivateData1</code></summary>
|
|
@@ -19729,6 +19800,77 @@ await client.shipping.drivers.complianceDocuments.createV1("driver_id", {
|
|
|
19729
19800
|
</dl>
|
|
19730
19801
|
</details>
|
|
19731
19802
|
|
|
19803
|
+
<details><summary><code>client.shipping.drivers.complianceDocuments.<a href="/src/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/Client.ts">updateV1</a>(driverComplianceDocumentId, { ...params }) -> Chrt.DriverComplianceDocument1</code></summary>
|
|
19804
|
+
<dl>
|
|
19805
|
+
<dd>
|
|
19806
|
+
|
|
19807
|
+
#### 📝 Description
|
|
19808
|
+
|
|
19809
|
+
<dl>
|
|
19810
|
+
<dd>
|
|
19811
|
+
|
|
19812
|
+
<dl>
|
|
19813
|
+
<dd>
|
|
19814
|
+
|
|
19815
|
+
Updates a driver compliance document in the caller's provider organization. | authz: allowed_org_types=[provider], min_org_role=administrator | (DriverComplianceDocumentClientUpdate1) -> (DriverComplianceDocument1)
|
|
19816
|
+
|
|
19817
|
+
</dd>
|
|
19818
|
+
</dl>
|
|
19819
|
+
</dd>
|
|
19820
|
+
</dl>
|
|
19821
|
+
|
|
19822
|
+
#### 🔌 Usage
|
|
19823
|
+
|
|
19824
|
+
<dl>
|
|
19825
|
+
<dd>
|
|
19826
|
+
|
|
19827
|
+
<dl>
|
|
19828
|
+
<dd>
|
|
19829
|
+
|
|
19830
|
+
```typescript
|
|
19831
|
+
await client.shipping.drivers.complianceDocuments.updateV1("driver_compliance_document_id");
|
|
19832
|
+
```
|
|
19833
|
+
|
|
19834
|
+
</dd>
|
|
19835
|
+
</dl>
|
|
19836
|
+
</dd>
|
|
19837
|
+
</dl>
|
|
19838
|
+
|
|
19839
|
+
#### ⚙️ Parameters
|
|
19840
|
+
|
|
19841
|
+
<dl>
|
|
19842
|
+
<dd>
|
|
19843
|
+
|
|
19844
|
+
<dl>
|
|
19845
|
+
<dd>
|
|
19846
|
+
|
|
19847
|
+
**driverComplianceDocumentId:** `string`
|
|
19848
|
+
|
|
19849
|
+
</dd>
|
|
19850
|
+
</dl>
|
|
19851
|
+
|
|
19852
|
+
<dl>
|
|
19853
|
+
<dd>
|
|
19854
|
+
|
|
19855
|
+
**request:** `Chrt.shipping.drivers.DriverComplianceDocumentClientUpdate1`
|
|
19856
|
+
|
|
19857
|
+
</dd>
|
|
19858
|
+
</dl>
|
|
19859
|
+
|
|
19860
|
+
<dl>
|
|
19861
|
+
<dd>
|
|
19862
|
+
|
|
19863
|
+
**requestOptions:** `ComplianceDocuments.RequestOptions`
|
|
19864
|
+
|
|
19865
|
+
</dd>
|
|
19866
|
+
</dl>
|
|
19867
|
+
</dd>
|
|
19868
|
+
</dl>
|
|
19869
|
+
|
|
19870
|
+
</dd>
|
|
19871
|
+
</dl>
|
|
19872
|
+
</details>
|
|
19873
|
+
|
|
19732
19874
|
## Shipping Drivers ComplianceDocuments S3Object
|
|
19733
19875
|
|
|
19734
19876
|
<details><summary><code>client.shipping.drivers.complianceDocuments.s3Object.<a href="/src/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/Client.ts">getS3ObjectMetadataV1</a>(driverComplianceDocumentS3ObjectMetadataId) -> Chrt.DriverComplianceDocumentS3ObjectMetadata1</code></summary>
|