@chrt-inc/typescript-sdk 1.681.0 → 1.685.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/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/orgs/client/Client.js +13 -8
- package/dist/cjs/api/resources/orgs/resources/complianceDocuments/client/Client.d.ts +76 -0
- package/dist/cjs/api/resources/orgs/resources/complianceDocuments/client/Client.js +248 -0
- package/dist/cjs/api/resources/orgs/resources/complianceDocuments/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/orgs/resources/complianceDocuments/client/index.js +17 -0
- package/dist/cjs/api/resources/orgs/resources/complianceDocuments/client/requests/OrgComplianceDocumentClientCreate1.d.ts +17 -0
- package/dist/cjs/api/resources/orgs/resources/complianceDocuments/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/orgs/resources/complianceDocuments/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/orgs/resources/complianceDocuments/index.d.ts +2 -0
- package/dist/cjs/api/resources/orgs/resources/complianceDocuments/index.js +18 -0
- package/dist/cjs/api/resources/orgs/resources/complianceDocuments/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/orgs/resources/complianceDocuments/resources/index.js +41 -0
- package/dist/cjs/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/Client.d.ts +83 -0
- package/dist/cjs/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/Client.js +311 -0
- package/dist/cjs/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/index.js +17 -0
- package/dist/cjs/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/requests/BodyPostOrgComplianceDocumentsS3ObjectAddV1OrgsComplianceDocumentsS3ObjectAddV1OrgComplianceDocumentIdPost.d.ts +13 -0
- package/dist/cjs/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/requests/BodyPostOrgComplianceDocumentsS3ObjectAddV1OrgsComplianceDocumentsS3ObjectAddV1OrgComplianceDocumentIdPost.js +5 -0
- package/dist/cjs/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/orgs/resources/complianceDocuments/resources/s3Object/index.d.ts +1 -0
- package/dist/cjs/api/resources/orgs/resources/complianceDocuments/resources/s3Object/index.js +17 -0
- package/dist/cjs/api/resources/orgs/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/orgs/resources/index.js +3 -1
- package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.js +5 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/index.js +1 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/Client.d.ts +80 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/Client.js +257 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/index.js +17 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/requests/DriverComplianceDocumentClientCreate1.d.ts +17 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/requests/DriverComplianceDocumentClientCreate1.js +5 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/index.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/index.js +18 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/index.js +41 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/Client.d.ts +83 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/Client.js +311 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/index.js +17 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/requests/BodyPostDriverComplianceDocumentsS3ObjectAddV1ShippingDriversComplianceDocumentsS3ObjectAddV1DriverComplianceDocumentIdPost.d.ts +13 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/requests/BodyPostDriverComplianceDocumentsS3ObjectAddV1ShippingDriversComplianceDocumentsS3ObjectAddV1DriverComplianceDocumentIdPost.js +5 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/index.js +17 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/resources/index.js +41 -0
- package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.js +1 -1
- package/dist/cjs/api/types/BillingLineItemS3ObjectAddedWebhookPayload.d.ts +14 -0
- package/dist/cjs/api/types/BillingLineItemS3ObjectAddedWebhookPayload.js +5 -0
- package/dist/cjs/api/types/DateTimeWindow1.d.ts +7 -0
- package/dist/cjs/api/types/DateTimeWindow1.js +5 -0
- package/dist/cjs/api/types/DriverComplianceDocument1.d.ts +15 -0
- package/dist/cjs/api/types/DriverComplianceDocument1.js +5 -0
- package/dist/cjs/api/types/DriverComplianceDocumentS3ObjectMetadata1.d.ts +19 -0
- package/dist/cjs/api/types/DriverComplianceDocumentS3ObjectMetadata1.js +5 -0
- package/dist/cjs/api/types/DriverComplianceDocumentTypeEnum1.d.ts +8 -0
- package/dist/cjs/api/types/DriverComplianceDocumentTypeEnum1.js +10 -0
- package/dist/cjs/api/types/ListingBidThreadActionAddedWebhookPayload.d.ts +21 -0
- package/dist/cjs/api/types/ListingBidThreadActionAddedWebhookPayload.js +5 -0
- package/dist/cjs/api/types/NotificationEventsForOrgsEnum.d.ts +8 -2
- package/dist/cjs/api/types/NotificationEventsForOrgsEnum.js +7 -1
- package/dist/cjs/api/types/NotificationEventsForUsersEnum.d.ts +7 -1
- package/dist/cjs/api/types/NotificationEventsForUsersEnum.js +6 -0
- package/dist/cjs/api/types/OperationsCaseMessageWebhookPayload.d.ts +15 -0
- package/dist/cjs/api/types/OperationsCaseMessageWebhookPayload.js +5 -0
- package/dist/cjs/api/types/OperationsCaseS3ObjectAddedWebhookPayload.d.ts +14 -0
- package/dist/cjs/api/types/OperationsCaseS3ObjectAddedWebhookPayload.js +5 -0
- package/dist/cjs/api/types/OrgComplianceDocument1.d.ts +15 -0
- package/dist/cjs/api/types/OrgComplianceDocument1.js +5 -0
- package/dist/cjs/api/types/OrgComplianceDocumentS3ObjectMetadata1.d.ts +19 -0
- package/dist/cjs/api/types/OrgComplianceDocumentS3ObjectMetadata1.js +5 -0
- package/dist/cjs/api/types/OrgComplianceDocumentTypeEnum1.d.ts +8 -0
- package/dist/cjs/api/types/OrgComplianceDocumentTypeEnum1.js +10 -0
- package/dist/cjs/api/types/ShippingTaskAttemptedWebhookPayload.d.ts +22 -0
- package/dist/cjs/api/types/ShippingTaskAttemptedWebhookPayload.js +5 -0
- package/dist/cjs/api/types/ShippingTaskExecutorOrgNoteAddedWebhookPayload.d.ts +17 -0
- package/dist/cjs/api/types/ShippingTaskExecutorOrgNoteAddedWebhookPayload.js +5 -0
- package/dist/cjs/api/types/ShippingTaskGroupProviderAssignedWebhookPayload.d.ts +14 -0
- package/dist/cjs/api/types/ShippingTaskGroupProviderAssignedWebhookPayload.js +5 -0
- 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/TaskClientUpdate1.d.ts +1 -1
- package/dist/cjs/api/types/TimeWindow1.d.ts +2 -2
- package/dist/cjs/api/types/index.d.ts +14 -1
- package/dist/cjs/api/types/index.js +14 -1
- 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/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/orgs/client/Client.mjs +5 -0
- package/dist/esm/api/resources/orgs/resources/complianceDocuments/client/Client.d.mts +76 -0
- package/dist/esm/api/resources/orgs/resources/complianceDocuments/client/Client.mjs +211 -0
- package/dist/esm/api/resources/orgs/resources/complianceDocuments/client/index.d.mts +2 -0
- package/dist/esm/api/resources/orgs/resources/complianceDocuments/client/index.mjs +1 -0
- package/dist/esm/api/resources/orgs/resources/complianceDocuments/client/requests/OrgComplianceDocumentClientCreate1.d.mts +17 -0
- package/dist/esm/api/resources/orgs/resources/complianceDocuments/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/orgs/resources/complianceDocuments/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/orgs/resources/complianceDocuments/index.d.mts +2 -0
- package/dist/esm/api/resources/orgs/resources/complianceDocuments/index.mjs +2 -0
- package/dist/esm/api/resources/orgs/resources/complianceDocuments/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/orgs/resources/complianceDocuments/resources/index.mjs +2 -0
- package/dist/esm/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/Client.d.mts +83 -0
- package/dist/esm/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/Client.mjs +274 -0
- package/dist/esm/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/index.d.mts +2 -0
- package/dist/esm/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/index.mjs +1 -0
- package/dist/esm/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/requests/BodyPostOrgComplianceDocumentsS3ObjectAddV1OrgsComplianceDocumentsS3ObjectAddV1OrgComplianceDocumentIdPost.d.mts +13 -0
- package/dist/esm/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/requests/BodyPostOrgComplianceDocumentsS3ObjectAddV1OrgsComplianceDocumentsS3ObjectAddV1OrgComplianceDocumentIdPost.mjs +4 -0
- package/dist/esm/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/orgs/resources/complianceDocuments/resources/s3Object/index.d.mts +1 -0
- package/dist/esm/api/resources/orgs/resources/complianceDocuments/resources/s3Object/index.mjs +1 -0
- package/dist/esm/api/resources/orgs/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/orgs/resources/index.mjs +2 -0
- package/dist/esm/api/resources/shipping/resources/drivers/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/shipping/resources/drivers/client/Client.mjs +5 -0
- package/dist/esm/api/resources/shipping/resources/drivers/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/drivers/index.mjs +1 -0
- package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/Client.d.mts +80 -0
- package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/Client.mjs +220 -0
- package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/index.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/index.mjs +1 -0
- package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/requests/DriverComplianceDocumentClientCreate1.d.mts +17 -0
- package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/requests/DriverComplianceDocumentClientCreate1.mjs +4 -0
- package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/index.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/index.mjs +2 -0
- package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/index.mjs +2 -0
- package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/Client.d.mts +83 -0
- package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/Client.mjs +274 -0
- package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/index.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/index.mjs +1 -0
- package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/requests/BodyPostDriverComplianceDocumentsS3ObjectAddV1ShippingDriversComplianceDocumentsS3ObjectAddV1DriverComplianceDocumentIdPost.d.mts +13 -0
- package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/requests/BodyPostDriverComplianceDocumentsS3ObjectAddV1ShippingDriversComplianceDocumentsS3ObjectAddV1DriverComplianceDocumentIdPost.mjs +4 -0
- package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/index.mjs +1 -0
- package/dist/esm/api/resources/shipping/resources/drivers/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/drivers/resources/index.mjs +2 -0
- package/dist/esm/api/resources/shipping/resources/tasks/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/tasks/client/Client.mjs +1 -1
- package/dist/esm/api/types/BillingLineItemS3ObjectAddedWebhookPayload.d.mts +14 -0
- package/dist/esm/api/types/BillingLineItemS3ObjectAddedWebhookPayload.mjs +4 -0
- package/dist/esm/api/types/DateTimeWindow1.d.mts +7 -0
- package/dist/esm/api/types/DateTimeWindow1.mjs +4 -0
- package/dist/esm/api/types/DriverComplianceDocument1.d.mts +15 -0
- package/dist/esm/api/types/DriverComplianceDocument1.mjs +4 -0
- package/dist/esm/api/types/DriverComplianceDocumentS3ObjectMetadata1.d.mts +19 -0
- package/dist/esm/api/types/DriverComplianceDocumentS3ObjectMetadata1.mjs +4 -0
- package/dist/esm/api/types/DriverComplianceDocumentTypeEnum1.d.mts +8 -0
- package/dist/esm/api/types/DriverComplianceDocumentTypeEnum1.mjs +7 -0
- package/dist/esm/api/types/ListingBidThreadActionAddedWebhookPayload.d.mts +21 -0
- package/dist/esm/api/types/ListingBidThreadActionAddedWebhookPayload.mjs +4 -0
- package/dist/esm/api/types/NotificationEventsForOrgsEnum.d.mts +8 -2
- package/dist/esm/api/types/NotificationEventsForOrgsEnum.mjs +7 -1
- package/dist/esm/api/types/NotificationEventsForUsersEnum.d.mts +7 -1
- package/dist/esm/api/types/NotificationEventsForUsersEnum.mjs +6 -0
- package/dist/esm/api/types/OperationsCaseMessageWebhookPayload.d.mts +15 -0
- package/dist/esm/api/types/OperationsCaseMessageWebhookPayload.mjs +4 -0
- package/dist/esm/api/types/OperationsCaseS3ObjectAddedWebhookPayload.d.mts +14 -0
- package/dist/esm/api/types/OperationsCaseS3ObjectAddedWebhookPayload.mjs +4 -0
- package/dist/esm/api/types/OrgComplianceDocument1.d.mts +15 -0
- package/dist/esm/api/types/OrgComplianceDocument1.mjs +4 -0
- package/dist/esm/api/types/OrgComplianceDocumentS3ObjectMetadata1.d.mts +19 -0
- package/dist/esm/api/types/OrgComplianceDocumentS3ObjectMetadata1.mjs +4 -0
- package/dist/esm/api/types/OrgComplianceDocumentTypeEnum1.d.mts +8 -0
- package/dist/esm/api/types/OrgComplianceDocumentTypeEnum1.mjs +7 -0
- package/dist/esm/api/types/ShippingTaskAttemptedWebhookPayload.d.mts +22 -0
- package/dist/esm/api/types/ShippingTaskAttemptedWebhookPayload.mjs +4 -0
- package/dist/esm/api/types/ShippingTaskExecutorOrgNoteAddedWebhookPayload.d.mts +17 -0
- package/dist/esm/api/types/ShippingTaskExecutorOrgNoteAddedWebhookPayload.mjs +4 -0
- package/dist/esm/api/types/ShippingTaskGroupProviderAssignedWebhookPayload.d.mts +14 -0
- package/dist/esm/api/types/ShippingTaskGroupProviderAssignedWebhookPayload.mjs +4 -0
- 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/TaskClientUpdate1.d.mts +1 -1
- package/dist/esm/api/types/TimeWindow1.d.mts +2 -2
- package/dist/esm/api/types/index.d.mts +14 -1
- package/dist/esm/api/types/index.mjs +14 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +1487 -569
- package/dist/cjs/api/types/ShippingTaskGroupCourierOrgAssignedWebhookPayload.d.ts +0 -14
- package/dist/esm/api/types/ShippingTaskGroupCourierOrgAssignedWebhookPayload.d.mts +0 -14
- /package/dist/cjs/api/{types/ShippingTaskGroupCourierOrgAssignedWebhookPayload.js → resources/orgs/resources/complianceDocuments/client/requests/OrgComplianceDocumentClientCreate1.js} +0 -0
- /package/dist/esm/api/{types/ShippingTaskGroupCourierOrgAssignedWebhookPayload.mjs → resources/orgs/resources/complianceDocuments/client/requests/OrgComplianceDocumentClientCreate1.mjs} +0 -0
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
40
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
41
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
42
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
43
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
44
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
exports.S3Object = void 0;
|
|
49
|
+
const environments = __importStar(require("../../../../../../../../environments.js"));
|
|
50
|
+
const core = __importStar(require("../../../../../../../../core/index.js"));
|
|
51
|
+
const Chrt = __importStar(require("../../../../../../../index.js"));
|
|
52
|
+
const headers_js_1 = require("../../../../../../../../core/headers.js");
|
|
53
|
+
const errors = __importStar(require("../../../../../../../../errors/index.js"));
|
|
54
|
+
class S3Object {
|
|
55
|
+
constructor(_options = {}) {
|
|
56
|
+
this._options = _options;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Retrieves metadata for an organization compliance document S3 object. | authz: allowed_org_types=[provider], min_org_role=administrator | () -> (OrgComplianceDocumentS3ObjectMetadata1)
|
|
60
|
+
*
|
|
61
|
+
* @param {string} orgComplianceDocumentS3ObjectMetadataId
|
|
62
|
+
* @param {S3Object.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* await client.orgs.complianceDocuments.s3Object.getS3ObjectMetadataV1("org_compliance_document_s3_object_metadata_id")
|
|
68
|
+
*/
|
|
69
|
+
getS3ObjectMetadataV1(orgComplianceDocumentS3ObjectMetadataId, requestOptions) {
|
|
70
|
+
return core.HttpResponsePromise.fromPromise(this.__getS3ObjectMetadataV1(orgComplianceDocumentS3ObjectMetadataId, requestOptions));
|
|
71
|
+
}
|
|
72
|
+
__getS3ObjectMetadataV1(orgComplianceDocumentS3ObjectMetadataId, requestOptions) {
|
|
73
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
74
|
+
var _a, _b, _c, _d;
|
|
75
|
+
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);
|
|
76
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
77
|
+
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/s3_object/s3_object_metadata/v1/${encodeURIComponent(orgComplianceDocumentS3ObjectMetadataId)}`),
|
|
78
|
+
method: "GET",
|
|
79
|
+
headers: _headers,
|
|
80
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
81
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
82
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
83
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
84
|
+
});
|
|
85
|
+
if (_response.ok) {
|
|
86
|
+
return {
|
|
87
|
+
data: _response.body,
|
|
88
|
+
rawResponse: _response.rawResponse,
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
if (_response.error.reason === "status-code") {
|
|
92
|
+
switch (_response.error.statusCode) {
|
|
93
|
+
case 422:
|
|
94
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
95
|
+
default:
|
|
96
|
+
throw new errors.ChrtError({
|
|
97
|
+
statusCode: _response.error.statusCode,
|
|
98
|
+
body: _response.error.body,
|
|
99
|
+
rawResponse: _response.rawResponse,
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
switch (_response.error.reason) {
|
|
104
|
+
case "non-json":
|
|
105
|
+
throw new errors.ChrtError({
|
|
106
|
+
statusCode: _response.error.statusCode,
|
|
107
|
+
body: _response.error.rawBody,
|
|
108
|
+
rawResponse: _response.rawResponse,
|
|
109
|
+
});
|
|
110
|
+
case "timeout":
|
|
111
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/compliance_documents/s3_object/s3_object_metadata/v1/{org_compliance_document_s3_object_metadata_id}.");
|
|
112
|
+
case "unknown":
|
|
113
|
+
throw new errors.ChrtError({
|
|
114
|
+
message: _response.error.errorMessage,
|
|
115
|
+
rawResponse: _response.rawResponse,
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Streams an organization compliance document S3 object file from storage. | authz: allowed_org_types=[provider], min_org_role=administrator | () -> (binary)
|
|
122
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
123
|
+
*/
|
|
124
|
+
getV1(orgComplianceDocumentS3ObjectMetadataId, requestOptions) {
|
|
125
|
+
return core.HttpResponsePromise.fromPromise(this.__getV1(orgComplianceDocumentS3ObjectMetadataId, requestOptions));
|
|
126
|
+
}
|
|
127
|
+
__getV1(orgComplianceDocumentS3ObjectMetadataId, requestOptions) {
|
|
128
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
129
|
+
var _a, _b, _c, _d;
|
|
130
|
+
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);
|
|
131
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
132
|
+
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/s3_object/v1/${encodeURIComponent(orgComplianceDocumentS3ObjectMetadataId)}`),
|
|
133
|
+
method: "GET",
|
|
134
|
+
headers: _headers,
|
|
135
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
136
|
+
responseType: "binary-response",
|
|
137
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
138
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
139
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
140
|
+
});
|
|
141
|
+
if (_response.ok) {
|
|
142
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
143
|
+
}
|
|
144
|
+
if (_response.error.reason === "status-code") {
|
|
145
|
+
switch (_response.error.statusCode) {
|
|
146
|
+
case 422:
|
|
147
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
148
|
+
default:
|
|
149
|
+
throw new errors.ChrtError({
|
|
150
|
+
statusCode: _response.error.statusCode,
|
|
151
|
+
body: _response.error.body,
|
|
152
|
+
rawResponse: _response.rawResponse,
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
switch (_response.error.reason) {
|
|
157
|
+
case "non-json":
|
|
158
|
+
throw new errors.ChrtError({
|
|
159
|
+
statusCode: _response.error.statusCode,
|
|
160
|
+
body: _response.error.rawBody,
|
|
161
|
+
rawResponse: _response.rawResponse,
|
|
162
|
+
});
|
|
163
|
+
case "timeout":
|
|
164
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/compliance_documents/s3_object/v1/{org_compliance_document_s3_object_metadata_id}.");
|
|
165
|
+
case "unknown":
|
|
166
|
+
throw new errors.ChrtError({
|
|
167
|
+
message: _response.error.errorMessage,
|
|
168
|
+
rawResponse: _response.rawResponse,
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Uploads a file to an organization compliance document. Automatic blurhash generation for images. | authz: allowed_org_types=[provider], min_org_role=administrator | (UploadFile) -> (bool)
|
|
175
|
+
*
|
|
176
|
+
* @param {string} orgComplianceDocumentId
|
|
177
|
+
* @param {Chrt.orgs.complianceDocuments.BodyPostOrgComplianceDocumentsS3ObjectAddV1OrgsComplianceDocumentsS3ObjectAddV1OrgComplianceDocumentIdPost} request
|
|
178
|
+
* @param {S3Object.RequestOptions} requestOptions - Request-specific configuration.
|
|
179
|
+
*
|
|
180
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
181
|
+
*
|
|
182
|
+
* @example
|
|
183
|
+
* import { createReadStream } from "fs";
|
|
184
|
+
* await client.orgs.complianceDocuments.s3Object.addV1("org_compliance_document_id", {
|
|
185
|
+
* file: fs.createReadStream("/path/to/your/file")
|
|
186
|
+
* })
|
|
187
|
+
*/
|
|
188
|
+
addV1(orgComplianceDocumentId, request, requestOptions) {
|
|
189
|
+
return core.HttpResponsePromise.fromPromise(this.__addV1(orgComplianceDocumentId, request, requestOptions));
|
|
190
|
+
}
|
|
191
|
+
__addV1(orgComplianceDocumentId, request, requestOptions) {
|
|
192
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
193
|
+
var _a, _b, _c, _d;
|
|
194
|
+
const _request = yield core.newFormData();
|
|
195
|
+
yield _request.appendFile("file", request.file);
|
|
196
|
+
const _maybeEncodedRequest = yield _request.getRequest();
|
|
197
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({ Authorization: yield this._getAuthorizationHeader() }, _maybeEncodedRequest.headers)), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
198
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
199
|
+
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/s3_object/add/v1/${encodeURIComponent(orgComplianceDocumentId)}`),
|
|
200
|
+
method: "POST",
|
|
201
|
+
headers: _headers,
|
|
202
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
203
|
+
requestType: "file",
|
|
204
|
+
duplex: _maybeEncodedRequest.duplex,
|
|
205
|
+
body: _maybeEncodedRequest.body,
|
|
206
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
207
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
208
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
209
|
+
});
|
|
210
|
+
if (_response.ok) {
|
|
211
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
212
|
+
}
|
|
213
|
+
if (_response.error.reason === "status-code") {
|
|
214
|
+
switch (_response.error.statusCode) {
|
|
215
|
+
case 422:
|
|
216
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
217
|
+
default:
|
|
218
|
+
throw new errors.ChrtError({
|
|
219
|
+
statusCode: _response.error.statusCode,
|
|
220
|
+
body: _response.error.body,
|
|
221
|
+
rawResponse: _response.rawResponse,
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
switch (_response.error.reason) {
|
|
226
|
+
case "non-json":
|
|
227
|
+
throw new errors.ChrtError({
|
|
228
|
+
statusCode: _response.error.statusCode,
|
|
229
|
+
body: _response.error.rawBody,
|
|
230
|
+
rawResponse: _response.rawResponse,
|
|
231
|
+
});
|
|
232
|
+
case "timeout":
|
|
233
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /orgs/compliance_documents/s3_object/add/v1/{org_compliance_document_id}.");
|
|
234
|
+
case "unknown":
|
|
235
|
+
throw new errors.ChrtError({
|
|
236
|
+
message: _response.error.errorMessage,
|
|
237
|
+
rawResponse: _response.rawResponse,
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* Deletes an organization compliance document S3 object and metadata. | authz: allowed_org_types=[provider], min_org_role=administrator | () -> (bool)
|
|
244
|
+
*
|
|
245
|
+
* @param {string} orgComplianceDocumentS3ObjectMetadataId
|
|
246
|
+
* @param {S3Object.RequestOptions} requestOptions - Request-specific configuration.
|
|
247
|
+
*
|
|
248
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
249
|
+
*
|
|
250
|
+
* @example
|
|
251
|
+
* await client.orgs.complianceDocuments.s3Object.deleteV1("org_compliance_document_s3_object_metadata_id")
|
|
252
|
+
*/
|
|
253
|
+
deleteV1(orgComplianceDocumentS3ObjectMetadataId, requestOptions) {
|
|
254
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteV1(orgComplianceDocumentS3ObjectMetadataId, requestOptions));
|
|
255
|
+
}
|
|
256
|
+
__deleteV1(orgComplianceDocumentS3ObjectMetadataId, requestOptions) {
|
|
257
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
258
|
+
var _a, _b, _c, _d;
|
|
259
|
+
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);
|
|
260
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
261
|
+
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/s3_object/delete/v1/${encodeURIComponent(orgComplianceDocumentS3ObjectMetadataId)}`),
|
|
262
|
+
method: "DELETE",
|
|
263
|
+
headers: _headers,
|
|
264
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
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 DELETE /orgs/compliance_documents/s3_object/delete/v1/{org_compliance_document_s3_object_metadata_id}.");
|
|
293
|
+
case "unknown":
|
|
294
|
+
throw new errors.ChrtError({
|
|
295
|
+
message: _response.error.errorMessage,
|
|
296
|
+
rawResponse: _response.rawResponse,
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
});
|
|
300
|
+
}
|
|
301
|
+
_getAuthorizationHeader() {
|
|
302
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
303
|
+
const bearer = yield core.Supplier.get(this._options.token);
|
|
304
|
+
if (bearer != null) {
|
|
305
|
+
return `Bearer ${bearer}`;
|
|
306
|
+
}
|
|
307
|
+
return undefined;
|
|
308
|
+
});
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
exports.S3Object = S3Object;
|
package/dist/cjs/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/index.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests/index.js"), exports);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as core from "../../../../../../../../../core/index.js";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* file: fs.createReadStream("/path/to/your/file")
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface BodyPostOrgComplianceDocumentsS3ObjectAddV1OrgsComplianceDocumentsS3ObjectAddV1OrgComplianceDocumentIdPost {
|
|
12
|
+
file: core.file.Uploadable.FileLike;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type BodyPostOrgComplianceDocumentsS3ObjectAddV1OrgsComplianceDocumentsS3ObjectAddV1OrgComplianceDocumentIdPost } from "./BodyPostOrgComplianceDocumentsS3ObjectAddV1OrgsComplianceDocumentsS3ObjectAddV1OrgComplianceDocumentIdPost.js";
|
package/dist/cjs/api/resources/orgs/resources/complianceDocuments/resources/s3Object/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client/index.js"), exports);
|
|
@@ -2,6 +2,7 @@ export * as connections from "./connections/index.js";
|
|
|
2
2
|
export * from "./connections/types/index.js";
|
|
3
3
|
export * as offChrtProviderOrg from "./offChrtProviderOrg/index.js";
|
|
4
4
|
export * as offChrtShipperOrg from "./offChrtShipperOrg/index.js";
|
|
5
|
+
export * as complianceDocuments from "./complianceDocuments/index.js";
|
|
5
6
|
export * as privateData from "./privateData/index.js";
|
|
6
7
|
export * as orgProfiles from "./orgProfiles/index.js";
|
|
7
8
|
export * as publicData from "./publicData/index.js";
|
|
@@ -9,5 +10,6 @@ export * as orgInfoForConnections from "./orgInfoForConnections/index.js";
|
|
|
9
10
|
export * from "./connections/client/requests/index.js";
|
|
10
11
|
export * from "./offChrtProviderOrg/client/requests/index.js";
|
|
11
12
|
export * from "./offChrtShipperOrg/client/requests/index.js";
|
|
13
|
+
export * from "./complianceDocuments/client/requests/index.js";
|
|
12
14
|
export * from "./orgProfiles/client/requests/index.js";
|
|
13
15
|
export * from "./publicData/client/requests/index.js";
|
|
@@ -36,11 +36,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.orgInfoForConnections = exports.publicData = exports.orgProfiles = exports.privateData = exports.offChrtShipperOrg = exports.offChrtProviderOrg = exports.connections = void 0;
|
|
39
|
+
exports.orgInfoForConnections = exports.publicData = exports.orgProfiles = exports.privateData = exports.complianceDocuments = exports.offChrtShipperOrg = exports.offChrtProviderOrg = exports.connections = void 0;
|
|
40
40
|
exports.connections = __importStar(require("./connections/index.js"));
|
|
41
41
|
__exportStar(require("./connections/types/index.js"), exports);
|
|
42
42
|
exports.offChrtProviderOrg = __importStar(require("./offChrtProviderOrg/index.js"));
|
|
43
43
|
exports.offChrtShipperOrg = __importStar(require("./offChrtShipperOrg/index.js"));
|
|
44
|
+
exports.complianceDocuments = __importStar(require("./complianceDocuments/index.js"));
|
|
44
45
|
exports.privateData = __importStar(require("./privateData/index.js"));
|
|
45
46
|
exports.orgProfiles = __importStar(require("./orgProfiles/index.js"));
|
|
46
47
|
exports.publicData = __importStar(require("./publicData/index.js"));
|
|
@@ -48,5 +49,6 @@ exports.orgInfoForConnections = __importStar(require("./orgInfoForConnections/in
|
|
|
48
49
|
__exportStar(require("./connections/client/requests/index.js"), exports);
|
|
49
50
|
__exportStar(require("./offChrtProviderOrg/client/requests/index.js"), exports);
|
|
50
51
|
__exportStar(require("./offChrtShipperOrg/client/requests/index.js"), exports);
|
|
52
|
+
__exportStar(require("./complianceDocuments/client/requests/index.js"), exports);
|
|
51
53
|
__exportStar(require("./orgProfiles/client/requests/index.js"), exports);
|
|
52
54
|
__exportStar(require("./publicData/client/requests/index.js"), exports);
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import * as environments from "../../../../../../environments.js";
|
|
5
5
|
import * as core from "../../../../../../core/index.js";
|
|
6
6
|
import * as Chrt from "../../../../../index.js";
|
|
7
|
+
import { ComplianceDocuments } from "../resources/complianceDocuments/client/Client.js";
|
|
7
8
|
export declare namespace Drivers {
|
|
8
9
|
interface Options {
|
|
9
10
|
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
@@ -29,7 +30,9 @@ export declare namespace Drivers {
|
|
|
29
30
|
}
|
|
30
31
|
export declare class Drivers {
|
|
31
32
|
protected readonly _options: Drivers.Options;
|
|
33
|
+
protected _complianceDocuments: ComplianceDocuments | undefined;
|
|
32
34
|
constructor(_options?: Drivers.Options);
|
|
35
|
+
get complianceDocuments(): ComplianceDocuments;
|
|
33
36
|
/**
|
|
34
37
|
* Retrieves driver information for the caller within their organization. | () -> (Driver1)
|
|
35
38
|
*
|
|
@@ -62,10 +62,15 @@ const core = __importStar(require("../../../../../../core/index.js"));
|
|
|
62
62
|
const Chrt = __importStar(require("../../../../../index.js"));
|
|
63
63
|
const headers_js_1 = require("../../../../../../core/headers.js");
|
|
64
64
|
const errors = __importStar(require("../../../../../../errors/index.js"));
|
|
65
|
+
const Client_js_1 = require("../resources/complianceDocuments/client/Client.js");
|
|
65
66
|
class Drivers {
|
|
66
67
|
constructor(_options = {}) {
|
|
67
68
|
this._options = _options;
|
|
68
69
|
}
|
|
70
|
+
get complianceDocuments() {
|
|
71
|
+
var _a;
|
|
72
|
+
return ((_a = this._complianceDocuments) !== null && _a !== void 0 ? _a : (this._complianceDocuments = new Client_js_1.ComplianceDocuments(this._options)));
|
|
73
|
+
}
|
|
69
74
|
/**
|
|
70
75
|
* Retrieves driver information for the caller within their organization. | () -> (Driver1)
|
|
71
76
|
*
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../../../../../environments.js";
|
|
5
|
+
import * as core from "../../../../../../../../core/index.js";
|
|
6
|
+
import * as Chrt from "../../../../../../../index.js";
|
|
7
|
+
import { S3Object } from "../resources/s3Object/client/Client.js";
|
|
8
|
+
export declare namespace ComplianceDocuments {
|
|
9
|
+
interface Options {
|
|
10
|
+
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
11
|
+
/** Specify a custom URL to connect the client to. */
|
|
12
|
+
baseUrl?: core.Supplier<string>;
|
|
13
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
14
|
+
/** Additional headers to include in requests. */
|
|
15
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
16
|
+
fetcher?: core.FetchFunction;
|
|
17
|
+
}
|
|
18
|
+
interface RequestOptions {
|
|
19
|
+
/** The maximum time to wait for a response in seconds. */
|
|
20
|
+
timeoutInSeconds?: number;
|
|
21
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
22
|
+
maxRetries?: number;
|
|
23
|
+
/** A hook to abort the request. */
|
|
24
|
+
abortSignal?: AbortSignal;
|
|
25
|
+
/** Additional query string parameters to include in the request. */
|
|
26
|
+
queryParams?: Record<string, unknown>;
|
|
27
|
+
/** Additional headers to include in the request. */
|
|
28
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
export declare class ComplianceDocuments {
|
|
32
|
+
protected readonly _options: ComplianceDocuments.Options;
|
|
33
|
+
protected _s3Object: S3Object | undefined;
|
|
34
|
+
constructor(_options?: ComplianceDocuments.Options);
|
|
35
|
+
get s3Object(): S3Object;
|
|
36
|
+
/**
|
|
37
|
+
* Lists compliance documents for one driver in the caller's provider organization. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (list[DriverComplianceDocument1])
|
|
38
|
+
*
|
|
39
|
+
* @param {string} driverId
|
|
40
|
+
* @param {ComplianceDocuments.RequestOptions} requestOptions - Request-specific configuration.
|
|
41
|
+
*
|
|
42
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* await client.shipping.drivers.complianceDocuments.listV1("driver_id")
|
|
46
|
+
*/
|
|
47
|
+
listV1(driverId: string, requestOptions?: ComplianceDocuments.RequestOptions): core.HttpResponsePromise<Chrt.DriverComplianceDocument1[]>;
|
|
48
|
+
private __listV1;
|
|
49
|
+
/**
|
|
50
|
+
* Retrieves one driver compliance document in the caller's provider organization. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (DriverComplianceDocument1)
|
|
51
|
+
*
|
|
52
|
+
* @param {string} driverComplianceDocumentId
|
|
53
|
+
* @param {ComplianceDocuments.RequestOptions} requestOptions - Request-specific configuration.
|
|
54
|
+
*
|
|
55
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* await client.shipping.drivers.complianceDocuments.getV1("driver_compliance_document_id")
|
|
59
|
+
*/
|
|
60
|
+
getV1(driverComplianceDocumentId: string, requestOptions?: ComplianceDocuments.RequestOptions): core.HttpResponsePromise<Chrt.DriverComplianceDocument1>;
|
|
61
|
+
private __getV1;
|
|
62
|
+
/**
|
|
63
|
+
* Creates a compliance document record for a driver in the caller's provider organization. | authz: allowed_org_types=[provider], min_org_role=administrator | (DriverComplianceDocumentClientCreate1) -> (DriverComplianceDocument1)
|
|
64
|
+
*
|
|
65
|
+
* @param {string} driverId
|
|
66
|
+
* @param {Chrt.shipping.drivers.DriverComplianceDocumentClientCreate1} request
|
|
67
|
+
* @param {ComplianceDocuments.RequestOptions} requestOptions - Request-specific configuration.
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* await client.shipping.drivers.complianceDocuments.createV1("driver_id", {
|
|
73
|
+
* schema_version: 1,
|
|
74
|
+
* document_type: "drivers_license"
|
|
75
|
+
* })
|
|
76
|
+
*/
|
|
77
|
+
createV1(driverId: string, request: Chrt.shipping.drivers.DriverComplianceDocumentClientCreate1, requestOptions?: ComplianceDocuments.RequestOptions): core.HttpResponsePromise<Chrt.DriverComplianceDocument1>;
|
|
78
|
+
private __createV1;
|
|
79
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
80
|
+
}
|