@chrt-inc/typescript-sdk 1.676.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/billing/resources/billingLedgerPeriods/client/Client.d.ts +0 -1
- package/dist/cjs/api/resources/billing/resources/billingLedgerPeriods/client/Client.js +0 -1
- package/dist/cjs/api/resources/billing/resources/billingLedgerPeriods/client/requests/BillingLedgerPeriodsListV1Request.d.ts +0 -1
- package/dist/cjs/api/resources/billing/resources/billingLedgers/client/Client.d.ts +0 -1
- package/dist/cjs/api/resources/billing/resources/billingLedgers/client/Client.js +0 -1
- package/dist/cjs/api/resources/billing/resources/billingLedgers/client/requests/BillingLedgersListV1Request.d.ts +0 -1
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.d.ts +0 -1
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.js +0 -1
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/LineItemGroupsListV1Request.d.ts +0 -1
- package/dist/cjs/api/resources/billing/resources/statements/client/Client.d.ts +0 -2
- package/dist/cjs/api/resources/billing/resources/statements/client/Client.js +0 -2
- package/dist/cjs/api/resources/billing/resources/statements/client/requests/StatementsExpandedListV1Request.d.ts +0 -1
- package/dist/cjs/api/resources/billing/resources/statements/client/requests/StatementsListV1Request.d.ts +0 -1
- package/dist/cjs/api/resources/listing/resources/bidThreads/client/Client.d.ts +0 -2
- package/dist/cjs/api/resources/listing/resources/bidThreads/client/Client.js +0 -2
- package/dist/cjs/api/resources/listing/resources/bidThreads/client/requests/BidThreadsListForBidderV1Request.d.ts +0 -1
- package/dist/cjs/api/resources/listing/resources/bidThreads/client/requests/BidThreadsListForListingV1Request.d.ts +0 -1
- package/dist/cjs/api/resources/listing/resources/listings/client/Client.d.ts +0 -6
- package/dist/cjs/api/resources/listing/resources/listings/client/Client.js +0 -6
- package/dist/cjs/api/resources/listing/resources/listings/client/requests/ListingsListByOrgV1Request.d.ts +0 -2
- package/dist/cjs/api/resources/listing/resources/listings/client/requests/ListingsListForDriverBidderV1Request.d.ts +0 -2
- package/dist/cjs/api/resources/listing/resources/listings/client/requests/ListingsListForProviderBidderV1Request.d.ts +0 -2
- package/dist/cjs/api/resources/operations/resources/cases/client/Client.d.ts +0 -2
- package/dist/cjs/api/resources/operations/resources/cases/client/Client.js +0 -2
- package/dist/cjs/api/resources/operations/resources/cases/client/requests/CasesListV1Request.d.ts +0 -2
- package/dist/cjs/api/resources/operations/resources/departments/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/operations/resources/departments/client/Client.js +1 -2
- package/dist/cjs/api/resources/operations/resources/departments/client/requests/DepartmentsListV1Request.d.ts +1 -2
- package/dist/cjs/api/resources/orgs/client/Client.d.ts +3 -1
- package/dist/cjs/api/resources/orgs/client/Client.js +13 -9
- package/dist/cjs/api/resources/orgs/client/requests/OrgsListMembersV1Request.d.ts +0 -1
- 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 -1
- package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.js +5 -1
- package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriversListOrgMembersAndDriversV1Request.d.ts +0 -1
- 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/orderSchedules/client/Client.d.ts +0 -2
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/client/Client.js +0 -2
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/client/requests/OrderSchedulesListV1Request.d.ts +0 -2
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts +0 -2
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +0 -2
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.ts +0 -1
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.ts +0 -1
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.ts +0 -2
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.js +0 -2
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverForExecutorV1Request.d.ts +0 -1
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.ts +0 -1
- 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/billing/resources/billingLedgerPeriods/client/Client.d.mts +0 -1
- package/dist/esm/api/resources/billing/resources/billingLedgerPeriods/client/Client.mjs +0 -1
- package/dist/esm/api/resources/billing/resources/billingLedgerPeriods/client/requests/BillingLedgerPeriodsListV1Request.d.mts +0 -1
- package/dist/esm/api/resources/billing/resources/billingLedgers/client/Client.d.mts +0 -1
- package/dist/esm/api/resources/billing/resources/billingLedgers/client/Client.mjs +0 -1
- package/dist/esm/api/resources/billing/resources/billingLedgers/client/requests/BillingLedgersListV1Request.d.mts +0 -1
- package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.d.mts +0 -1
- package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.mjs +0 -1
- package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/LineItemGroupsListV1Request.d.mts +0 -1
- package/dist/esm/api/resources/billing/resources/statements/client/Client.d.mts +0 -2
- package/dist/esm/api/resources/billing/resources/statements/client/Client.mjs +0 -2
- package/dist/esm/api/resources/billing/resources/statements/client/requests/StatementsExpandedListV1Request.d.mts +0 -1
- package/dist/esm/api/resources/billing/resources/statements/client/requests/StatementsListV1Request.d.mts +0 -1
- package/dist/esm/api/resources/listing/resources/bidThreads/client/Client.d.mts +0 -2
- package/dist/esm/api/resources/listing/resources/bidThreads/client/Client.mjs +0 -2
- package/dist/esm/api/resources/listing/resources/bidThreads/client/requests/BidThreadsListForBidderV1Request.d.mts +0 -1
- package/dist/esm/api/resources/listing/resources/bidThreads/client/requests/BidThreadsListForListingV1Request.d.mts +0 -1
- package/dist/esm/api/resources/listing/resources/listings/client/Client.d.mts +0 -6
- package/dist/esm/api/resources/listing/resources/listings/client/Client.mjs +0 -6
- package/dist/esm/api/resources/listing/resources/listings/client/requests/ListingsListByOrgV1Request.d.mts +0 -2
- package/dist/esm/api/resources/listing/resources/listings/client/requests/ListingsListForDriverBidderV1Request.d.mts +0 -2
- package/dist/esm/api/resources/listing/resources/listings/client/requests/ListingsListForProviderBidderV1Request.d.mts +0 -2
- package/dist/esm/api/resources/operations/resources/cases/client/Client.d.mts +0 -2
- package/dist/esm/api/resources/operations/resources/cases/client/Client.mjs +0 -2
- package/dist/esm/api/resources/operations/resources/cases/client/requests/CasesListV1Request.d.mts +0 -2
- package/dist/esm/api/resources/operations/resources/departments/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/operations/resources/departments/client/Client.mjs +1 -2
- package/dist/esm/api/resources/operations/resources/departments/client/requests/DepartmentsListV1Request.d.mts +1 -2
- package/dist/esm/api/resources/orgs/client/Client.d.mts +3 -1
- package/dist/esm/api/resources/orgs/client/Client.mjs +5 -1
- package/dist/esm/api/resources/orgs/client/requests/OrgsListMembersV1Request.d.mts +0 -1
- 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 -1
- package/dist/esm/api/resources/shipping/resources/drivers/client/Client.mjs +5 -1
- package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriversListOrgMembersAndDriversV1Request.d.mts +0 -1
- 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/orderSchedules/client/Client.d.mts +0 -2
- package/dist/esm/api/resources/shipping/resources/orderSchedules/client/Client.mjs +0 -2
- package/dist/esm/api/resources/shipping/resources/orderSchedules/client/requests/OrderSchedulesListV1Request.d.mts +0 -2
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts +0 -2
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +0 -2
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.mts +0 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.mts +0 -1
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.mts +0 -2
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.mjs +0 -2
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverForExecutorV1Request.d.mts +0 -1
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.mts +0 -1
- 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 -593
- 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,274 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
7
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
8
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
9
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
10
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
import * as environments from "../../../../../../../../../../environments.mjs";
|
|
14
|
+
import * as core from "../../../../../../../../../../core/index.mjs";
|
|
15
|
+
import * as Chrt from "../../../../../../../../../index.mjs";
|
|
16
|
+
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../../../../../core/headers.mjs";
|
|
17
|
+
import * as errors from "../../../../../../../../../../errors/index.mjs";
|
|
18
|
+
export class S3Object {
|
|
19
|
+
constructor(_options = {}) {
|
|
20
|
+
this._options = _options;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Retrieves metadata for a driver compliance document S3 object. | authz: allowed_org_types=[provider], min_org_role=administrator | () -> (DriverComplianceDocumentS3ObjectMetadata1)
|
|
24
|
+
*
|
|
25
|
+
* @param {string} driverComplianceDocumentS3ObjectMetadataId
|
|
26
|
+
* @param {S3Object.RequestOptions} requestOptions - Request-specific configuration.
|
|
27
|
+
*
|
|
28
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* await client.shipping.drivers.complianceDocuments.s3Object.getS3ObjectMetadataV1("driver_compliance_document_s3_object_metadata_id")
|
|
32
|
+
*/
|
|
33
|
+
getS3ObjectMetadataV1(driverComplianceDocumentS3ObjectMetadataId, requestOptions) {
|
|
34
|
+
return core.HttpResponsePromise.fromPromise(this.__getS3ObjectMetadataV1(driverComplianceDocumentS3ObjectMetadataId, requestOptions));
|
|
35
|
+
}
|
|
36
|
+
__getS3ObjectMetadataV1(driverComplianceDocumentS3ObjectMetadataId, requestOptions) {
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
var _a, _b, _c, _d;
|
|
39
|
+
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);
|
|
40
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
41
|
+
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/s3_object/s3_object_metadata/v1/${encodeURIComponent(driverComplianceDocumentS3ObjectMetadataId)}`),
|
|
42
|
+
method: "GET",
|
|
43
|
+
headers: _headers,
|
|
44
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
45
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
46
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
47
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
48
|
+
});
|
|
49
|
+
if (_response.ok) {
|
|
50
|
+
return {
|
|
51
|
+
data: _response.body,
|
|
52
|
+
rawResponse: _response.rawResponse,
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
if (_response.error.reason === "status-code") {
|
|
56
|
+
switch (_response.error.statusCode) {
|
|
57
|
+
case 422:
|
|
58
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
59
|
+
default:
|
|
60
|
+
throw new errors.ChrtError({
|
|
61
|
+
statusCode: _response.error.statusCode,
|
|
62
|
+
body: _response.error.body,
|
|
63
|
+
rawResponse: _response.rawResponse,
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
switch (_response.error.reason) {
|
|
68
|
+
case "non-json":
|
|
69
|
+
throw new errors.ChrtError({
|
|
70
|
+
statusCode: _response.error.statusCode,
|
|
71
|
+
body: _response.error.rawBody,
|
|
72
|
+
rawResponse: _response.rawResponse,
|
|
73
|
+
});
|
|
74
|
+
case "timeout":
|
|
75
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping/drivers/compliance_documents/s3_object/s3_object_metadata/v1/{driver_compliance_document_s3_object_metadata_id}.");
|
|
76
|
+
case "unknown":
|
|
77
|
+
throw new errors.ChrtError({
|
|
78
|
+
message: _response.error.errorMessage,
|
|
79
|
+
rawResponse: _response.rawResponse,
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Streams a driver compliance document S3 object file from storage. | authz: allowed_org_types=[provider], min_org_role=administrator | () -> (binary)
|
|
86
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
87
|
+
*/
|
|
88
|
+
getV1(driverComplianceDocumentS3ObjectMetadataId, requestOptions) {
|
|
89
|
+
return core.HttpResponsePromise.fromPromise(this.__getV1(driverComplianceDocumentS3ObjectMetadataId, requestOptions));
|
|
90
|
+
}
|
|
91
|
+
__getV1(driverComplianceDocumentS3ObjectMetadataId, requestOptions) {
|
|
92
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
93
|
+
var _a, _b, _c, _d;
|
|
94
|
+
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);
|
|
95
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
96
|
+
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/s3_object/v1/${encodeURIComponent(driverComplianceDocumentS3ObjectMetadataId)}`),
|
|
97
|
+
method: "GET",
|
|
98
|
+
headers: _headers,
|
|
99
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
100
|
+
responseType: "binary-response",
|
|
101
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
102
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
103
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
104
|
+
});
|
|
105
|
+
if (_response.ok) {
|
|
106
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
107
|
+
}
|
|
108
|
+
if (_response.error.reason === "status-code") {
|
|
109
|
+
switch (_response.error.statusCode) {
|
|
110
|
+
case 422:
|
|
111
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
112
|
+
default:
|
|
113
|
+
throw new errors.ChrtError({
|
|
114
|
+
statusCode: _response.error.statusCode,
|
|
115
|
+
body: _response.error.body,
|
|
116
|
+
rawResponse: _response.rawResponse,
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
switch (_response.error.reason) {
|
|
121
|
+
case "non-json":
|
|
122
|
+
throw new errors.ChrtError({
|
|
123
|
+
statusCode: _response.error.statusCode,
|
|
124
|
+
body: _response.error.rawBody,
|
|
125
|
+
rawResponse: _response.rawResponse,
|
|
126
|
+
});
|
|
127
|
+
case "timeout":
|
|
128
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping/drivers/compliance_documents/s3_object/v1/{driver_compliance_document_s3_object_metadata_id}.");
|
|
129
|
+
case "unknown":
|
|
130
|
+
throw new errors.ChrtError({
|
|
131
|
+
message: _response.error.errorMessage,
|
|
132
|
+
rawResponse: _response.rawResponse,
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Uploads a file to a driver compliance document. Automatic blurhash generation for images. | authz: allowed_org_types=[provider], min_org_role=administrator | (UploadFile) -> (bool)
|
|
139
|
+
*
|
|
140
|
+
* @param {string} driverComplianceDocumentId
|
|
141
|
+
* @param {Chrt.shipping.drivers.complianceDocuments.BodyPostDriverComplianceDocumentsS3ObjectAddV1ShippingDriversComplianceDocumentsS3ObjectAddV1DriverComplianceDocumentIdPost} request
|
|
142
|
+
* @param {S3Object.RequestOptions} requestOptions - Request-specific configuration.
|
|
143
|
+
*
|
|
144
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
145
|
+
*
|
|
146
|
+
* @example
|
|
147
|
+
* import { createReadStream } from "fs";
|
|
148
|
+
* await client.shipping.drivers.complianceDocuments.s3Object.addV1("driver_compliance_document_id", {
|
|
149
|
+
* file: fs.createReadStream("/path/to/your/file")
|
|
150
|
+
* })
|
|
151
|
+
*/
|
|
152
|
+
addV1(driverComplianceDocumentId, request, requestOptions) {
|
|
153
|
+
return core.HttpResponsePromise.fromPromise(this.__addV1(driverComplianceDocumentId, request, requestOptions));
|
|
154
|
+
}
|
|
155
|
+
__addV1(driverComplianceDocumentId, request, requestOptions) {
|
|
156
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
157
|
+
var _a, _b, _c, _d;
|
|
158
|
+
const _request = yield core.newFormData();
|
|
159
|
+
yield _request.appendFile("file", request.file);
|
|
160
|
+
const _maybeEncodedRequest = yield _request.getRequest();
|
|
161
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({ Authorization: yield this._getAuthorizationHeader() }, _maybeEncodedRequest.headers)), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
162
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
163
|
+
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/s3_object/add/v1/${encodeURIComponent(driverComplianceDocumentId)}`),
|
|
164
|
+
method: "POST",
|
|
165
|
+
headers: _headers,
|
|
166
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
167
|
+
requestType: "file",
|
|
168
|
+
duplex: _maybeEncodedRequest.duplex,
|
|
169
|
+
body: _maybeEncodedRequest.body,
|
|
170
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
171
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
172
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
173
|
+
});
|
|
174
|
+
if (_response.ok) {
|
|
175
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
176
|
+
}
|
|
177
|
+
if (_response.error.reason === "status-code") {
|
|
178
|
+
switch (_response.error.statusCode) {
|
|
179
|
+
case 422:
|
|
180
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
181
|
+
default:
|
|
182
|
+
throw new errors.ChrtError({
|
|
183
|
+
statusCode: _response.error.statusCode,
|
|
184
|
+
body: _response.error.body,
|
|
185
|
+
rawResponse: _response.rawResponse,
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
switch (_response.error.reason) {
|
|
190
|
+
case "non-json":
|
|
191
|
+
throw new errors.ChrtError({
|
|
192
|
+
statusCode: _response.error.statusCode,
|
|
193
|
+
body: _response.error.rawBody,
|
|
194
|
+
rawResponse: _response.rawResponse,
|
|
195
|
+
});
|
|
196
|
+
case "timeout":
|
|
197
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping/drivers/compliance_documents/s3_object/add/v1/{driver_compliance_document_id}.");
|
|
198
|
+
case "unknown":
|
|
199
|
+
throw new errors.ChrtError({
|
|
200
|
+
message: _response.error.errorMessage,
|
|
201
|
+
rawResponse: _response.rawResponse,
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* Deletes a driver compliance document S3 object and metadata. | authz: allowed_org_types=[provider], min_org_role=administrator | () -> (bool)
|
|
208
|
+
*
|
|
209
|
+
* @param {string} driverComplianceDocumentS3ObjectMetadataId
|
|
210
|
+
* @param {S3Object.RequestOptions} requestOptions - Request-specific configuration.
|
|
211
|
+
*
|
|
212
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
213
|
+
*
|
|
214
|
+
* @example
|
|
215
|
+
* await client.shipping.drivers.complianceDocuments.s3Object.deleteV1("driver_compliance_document_s3_object_metadata_id")
|
|
216
|
+
*/
|
|
217
|
+
deleteV1(driverComplianceDocumentS3ObjectMetadataId, requestOptions) {
|
|
218
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteV1(driverComplianceDocumentS3ObjectMetadataId, requestOptions));
|
|
219
|
+
}
|
|
220
|
+
__deleteV1(driverComplianceDocumentS3ObjectMetadataId, requestOptions) {
|
|
221
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
222
|
+
var _a, _b, _c, _d;
|
|
223
|
+
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);
|
|
224
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
225
|
+
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/s3_object/delete/v1/${encodeURIComponent(driverComplianceDocumentS3ObjectMetadataId)}`),
|
|
226
|
+
method: "DELETE",
|
|
227
|
+
headers: _headers,
|
|
228
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
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 DELETE /shipping/drivers/compliance_documents/s3_object/delete/v1/{driver_compliance_document_s3_object_metadata_id}.");
|
|
257
|
+
case "unknown":
|
|
258
|
+
throw new errors.ChrtError({
|
|
259
|
+
message: _response.error.errorMessage,
|
|
260
|
+
rawResponse: _response.rawResponse,
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
_getAuthorizationHeader() {
|
|
266
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
267
|
+
const bearer = yield core.Supplier.get(this._options.token);
|
|
268
|
+
if (bearer != null) {
|
|
269
|
+
return `Bearer ${bearer}`;
|
|
270
|
+
}
|
|
271
|
+
return undefined;
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -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.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* file: fs.createReadStream("/path/to/your/file")
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface BodyPostDriverComplianceDocumentsS3ObjectAddV1ShippingDriversComplianceDocumentsS3ObjectAddV1DriverComplianceDocumentIdPost {
|
|
12
|
+
file: core.file.Uploadable.FileLike;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type BodyPostDriverComplianceDocumentsS3ObjectAddV1ShippingDriversComplianceDocumentsS3ObjectAddV1DriverComplianceDocumentIdPost } from "./BodyPostDriverComplianceDocumentsS3ObjectAddV1ShippingDriversComplianceDocumentsS3ObjectAddV1DriverComplianceDocumentIdPost.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
|
@@ -47,8 +47,6 @@ export declare class OrderSchedules {
|
|
|
47
47
|
* sort_order: "asc",
|
|
48
48
|
* page: 1,
|
|
49
49
|
* page_size: 1,
|
|
50
|
-
* filter_status: ["draft"],
|
|
51
|
-
* filter_orchestrator_schedule_status: ["not_created"],
|
|
52
50
|
* filter_owned_by_user_id: "filter_owned_by_user_id",
|
|
53
51
|
* filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
54
52
|
* filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
@@ -38,8 +38,6 @@ export class OrderSchedules {
|
|
|
38
38
|
* sort_order: "asc",
|
|
39
39
|
* page: 1,
|
|
40
40
|
* page_size: 1,
|
|
41
|
-
* filter_status: ["draft"],
|
|
42
|
-
* filter_orchestrator_schedule_status: ["not_created"],
|
|
43
41
|
* filter_owned_by_user_id: "filter_owned_by_user_id",
|
|
44
42
|
* filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
45
43
|
* filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
@@ -9,8 +9,6 @@ import * as Chrt from "../../../../../../index.mjs";
|
|
|
9
9
|
* sort_order: "asc",
|
|
10
10
|
* page: 1,
|
|
11
11
|
* page_size: 1,
|
|
12
|
-
* filter_status: ["draft"],
|
|
13
|
-
* filter_orchestrator_schedule_status: ["not_created"],
|
|
14
12
|
* filter_owned_by_user_id: "filter_owned_by_user_id",
|
|
15
13
|
* filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
16
14
|
* filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts
CHANGED
|
@@ -73,7 +73,6 @@ export declare class Expanded {
|
|
|
73
73
|
* page: 1,
|
|
74
74
|
* page_size: 1,
|
|
75
75
|
* search: "search",
|
|
76
|
-
* filter_status: ["draft"],
|
|
77
76
|
* filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
78
77
|
* filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
79
78
|
* filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
@@ -110,7 +109,6 @@ export declare class Expanded {
|
|
|
110
109
|
* page: 1,
|
|
111
110
|
* page_size: 1,
|
|
112
111
|
* search: "search",
|
|
113
|
-
* filter_status: ["draft"],
|
|
114
112
|
* filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
115
113
|
* filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
116
114
|
* filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs
CHANGED
|
@@ -160,7 +160,6 @@ export class Expanded {
|
|
|
160
160
|
* page: 1,
|
|
161
161
|
* page_size: 1,
|
|
162
162
|
* search: "search",
|
|
163
|
-
* filter_status: ["draft"],
|
|
164
163
|
* filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
165
164
|
* filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
166
165
|
* filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
@@ -319,7 +318,6 @@ export class Expanded {
|
|
|
319
318
|
* page: 1,
|
|
320
319
|
* page_size: 1,
|
|
321
320
|
* search: "search",
|
|
322
|
-
* filter_status: ["draft"],
|
|
323
321
|
* filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
324
322
|
* filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
325
323
|
* filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
@@ -10,7 +10,6 @@ import * as Chrt from "../../../../../../../../index.mjs";
|
|
|
10
10
|
* page: 1,
|
|
11
11
|
* page_size: 1,
|
|
12
12
|
* search: "search",
|
|
13
|
-
* filter_status: ["draft"],
|
|
14
13
|
* filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
15
14
|
* filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
16
15
|
* filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
@@ -10,7 +10,6 @@ import * as Chrt from "../../../../../../../../index.mjs";
|
|
|
10
10
|
* page: 1,
|
|
11
11
|
* page_size: 1,
|
|
12
12
|
* search: "search",
|
|
13
|
-
* filter_status: ["draft"],
|
|
14
13
|
* filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
15
14
|
* filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
16
15
|
* filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.mts
CHANGED
|
@@ -101,7 +101,6 @@ export declare class Expanded {
|
|
|
101
101
|
* page: 1,
|
|
102
102
|
* page_size: 1,
|
|
103
103
|
* search: "search",
|
|
104
|
-
* filter_status: ["draft"],
|
|
105
104
|
* filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
106
105
|
* filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
107
106
|
* filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
@@ -139,7 +138,6 @@ export declare class Expanded {
|
|
|
139
138
|
* page: 1,
|
|
140
139
|
* page_size: 1,
|
|
141
140
|
* search: "search",
|
|
142
|
-
* filter_status: ["draft"],
|
|
143
141
|
* filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
144
142
|
* filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
145
143
|
* filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.mjs
CHANGED
|
@@ -286,7 +286,6 @@ export class Expanded {
|
|
|
286
286
|
* page: 1,
|
|
287
287
|
* page_size: 1,
|
|
288
288
|
* search: "search",
|
|
289
|
-
* filter_status: ["draft"],
|
|
290
289
|
* filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
291
290
|
* filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
292
291
|
* filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
@@ -449,7 +448,6 @@ export class Expanded {
|
|
|
449
448
|
* page: 1,
|
|
450
449
|
* page_size: 1,
|
|
451
450
|
* search: "search",
|
|
452
|
-
* filter_status: ["draft"],
|
|
453
451
|
* filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
454
452
|
* filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
455
453
|
* filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
@@ -10,7 +10,6 @@ import * as Chrt from "../../../../../../../../index.mjs";
|
|
|
10
10
|
* page: 1,
|
|
11
11
|
* page_size: 1,
|
|
12
12
|
* search: "search",
|
|
13
|
-
* filter_status: ["draft"],
|
|
14
13
|
* filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
15
14
|
* filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
16
15
|
* filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
@@ -10,7 +10,6 @@ import * as Chrt from "../../../../../../../../index.mjs";
|
|
|
10
10
|
* page: 1,
|
|
11
11
|
* page_size: 1,
|
|
12
12
|
* search: "search",
|
|
13
|
-
* filter_status: ["draft"],
|
|
14
13
|
* filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
15
14
|
* filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
16
15
|
* filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
@@ -54,7 +54,7 @@ export declare class Tasks {
|
|
|
54
54
|
addToTaskGroupV1(taskGroupId: string, request: Chrt.shipping.AddTaskToGroupReq, requestOptions?: Tasks.RequestOptions): core.HttpResponsePromise<string>;
|
|
55
55
|
private __addToTaskGroupV1;
|
|
56
56
|
/**
|
|
57
|
-
* Updates a task. Operational fields (location, action,
|
|
57
|
+
* Updates a task. Operational fields (location, action, datetime_windows) require STAGED status (lig_owner_operators). order_placer_comments can be edited on any non-DRAFT task (order_creator_org_operators). directory_entry_ids can be edited on STAGED/IN_PROGRESS orders for tasks still in STAGED status (order_creator_org_operators OR lig_owner_operators). | (TaskClientUpdate1) -> (PydanticObjectId)
|
|
58
58
|
*
|
|
59
59
|
* @param {string} taskId
|
|
60
60
|
* @param {Chrt.TaskClientUpdate1} request
|
|
@@ -94,7 +94,7 @@ export class Tasks {
|
|
|
94
94
|
});
|
|
95
95
|
}
|
|
96
96
|
/**
|
|
97
|
-
* Updates a task. Operational fields (location, action,
|
|
97
|
+
* Updates a task. Operational fields (location, action, datetime_windows) require STAGED status (lig_owner_operators). order_placer_comments can be edited on any non-DRAFT task (order_creator_org_operators). directory_entry_ids can be edited on STAGED/IN_PROGRESS orders for tasks still in STAGED status (order_creator_org_operators OR lig_owner_operators). | (TaskClientUpdate1) -> (PydanticObjectId)
|
|
98
98
|
*
|
|
99
99
|
* @param {string} taskId
|
|
100
100
|
* @param {Chrt.TaskClientUpdate1} request
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface BillingLineItemS3ObjectAddedWebhookPayload {
|
|
5
|
+
event_type?: "billing.line_item.file_added";
|
|
6
|
+
/** UTC timestamp when the event occurred */
|
|
7
|
+
event_timestamp: string;
|
|
8
|
+
/** The line item the file was added to */
|
|
9
|
+
line_item_id: string;
|
|
10
|
+
/** The parent line item group for the line item */
|
|
11
|
+
line_item_group_id: string;
|
|
12
|
+
/** The S3 object metadata document that was added to the line item */
|
|
13
|
+
line_item_s3_object_metadata_id: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../index.mjs";
|
|
5
|
+
export interface DriverComplianceDocument1 {
|
|
6
|
+
schema_version: number;
|
|
7
|
+
_id: string;
|
|
8
|
+
/** Must be a string starting with `org_` */
|
|
9
|
+
org_id: string;
|
|
10
|
+
driver_id: string;
|
|
11
|
+
document_type: Chrt.DriverComplianceDocumentTypeEnum1;
|
|
12
|
+
driver_compliance_document_s3_object_metadata_ids?: string[];
|
|
13
|
+
valid_from?: string | null;
|
|
14
|
+
valid_until?: string | null;
|
|
15
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface DriverComplianceDocumentS3ObjectMetadata1 {
|
|
5
|
+
schema_version: number;
|
|
6
|
+
_id: string;
|
|
7
|
+
driver_compliance_document_id: string;
|
|
8
|
+
uploaded_at_timestamp: string;
|
|
9
|
+
/** Must be a string starting with `user_` */
|
|
10
|
+
uploaded_by_user_id: string;
|
|
11
|
+
/** Must be a string starting with `org_` */
|
|
12
|
+
uploaded_by_org_id: string;
|
|
13
|
+
s3_key_prefix?: "shipping/driver_compliance_document_s3_object_metadata";
|
|
14
|
+
blurhash?: string | null;
|
|
15
|
+
/** MIME type of the uploaded file (e.g., 'image/jpeg', 'application/pdf') */
|
|
16
|
+
content_type?: string | null;
|
|
17
|
+
/** Original filename of the uploaded file */
|
|
18
|
+
filename?: string | null;
|
|
19
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export type DriverComplianceDocumentTypeEnum1 = "drivers_license" | "commercial_drivers_license";
|
|
5
|
+
export declare const DriverComplianceDocumentTypeEnum1: {
|
|
6
|
+
readonly DriversLicense: "drivers_license";
|
|
7
|
+
readonly CommercialDriversLicense: "commercial_drivers_license";
|
|
8
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../index.mjs";
|
|
5
|
+
export interface ListingBidThreadActionAddedWebhookPayload {
|
|
6
|
+
event_type?: "listing.bid_thread.action_added";
|
|
7
|
+
/** UTC timestamp when the event occurred */
|
|
8
|
+
event_timestamp: string;
|
|
9
|
+
/** The listing the bid thread belongs to */
|
|
10
|
+
listing_id: string;
|
|
11
|
+
/** The bid thread the bid was added to */
|
|
12
|
+
bid_thread_id: string;
|
|
13
|
+
/** The order associated with the listing */
|
|
14
|
+
order_id: string;
|
|
15
|
+
/** The task group associated with the listing */
|
|
16
|
+
task_group_id: string;
|
|
17
|
+
/** The bid action that was added to the bid thread */
|
|
18
|
+
bid: Chrt.Bid;
|
|
19
|
+
/** True when the acceptance awarded the listing */
|
|
20
|
+
awarded?: boolean;
|
|
21
|
+
}
|