@chrt-inc/typescript-sdk 1.1014.0 → 1.1016.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/README.md +10 -13
- package/dist/cjs/Client.d.ts +3 -0
- package/dist/cjs/Client.js +41 -36
- package/dist/cjs/api/resources/agent/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/agent/client/Client.js +3 -3
- package/dist/cjs/api/resources/agent/resources/index.d.ts +1 -2
- package/dist/cjs/api/resources/agent/resources/index.js +2 -6
- package/dist/cjs/api/resources/agent/resources/livekit/client/Client.d.ts +23 -0
- package/dist/cjs/api/resources/agent/resources/livekit/client/Client.js +17 -0
- package/dist/cjs/api/resources/agent/resources/livekit/index.d.ts +2 -0
- package/dist/cjs/api/resources/agent/resources/livekit/index.js +18 -0
- package/dist/cjs/api/resources/agent/resources/livekit/resources/helloWorld/client/Client.d.ts +44 -0
- package/dist/cjs/api/resources/agent/resources/livekit/resources/helloWorld/client/Client.js +118 -0
- package/dist/cjs/api/resources/agent/resources/livekit/resources/helloWorld/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/agent/resources/livekit/resources/helloWorld/client/index.js +2 -0
- package/dist/cjs/api/resources/agent/resources/livekit/resources/index.d.ts +1 -0
- package/dist/cjs/api/resources/agent/resources/livekit/resources/index.js +37 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/Client.d.ts +51 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/Client.js +222 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightIntegrationsCargoAiSendAirWaybillReq.d.ts +13 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseReq.d.ts +20 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseReq.js +13 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoaiListAirWaybillMessagesV1Request.d.ts +30 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/chrtGpt/client/Client.d.ts +49 -0
- package/dist/cjs/api/resources/chrtGpt/client/Client.js +132 -0
- package/dist/{esm/api/resources/agent/resources/orderInformation/client/requests/OrderInformationConversationMessageReq.d.mts → cjs/api/resources/chrtGpt/client/requests/ChrtGptMessageReq.d.ts} +3 -1
- package/dist/cjs/api/resources/chrtGpt/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/chrtGpt/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/chrtGpt/index.d.ts +1 -0
- package/dist/cjs/api/resources/chrtGpt/index.js +17 -0
- package/dist/cjs/api/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/index.js +3 -1
- package/dist/cjs/api/resources/shipping/client/Client.d.ts +6 -0
- package/dist/cjs/api/resources/shipping/client/Client.js +28 -18
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/Client.d.ts +154 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/Client.js +494 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/index.js +17 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/requests/CargoOnFlightAirWaybillClientCreate1.d.ts +57 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/requests/CargoOnFlightAirWaybillClientUpdate1.d.ts +29 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/requests/CargoOnFlightAirWaybillsListV1Request.d.ts +27 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/requests/CargoOnFlightAirWaybillsMarkAcceptedReq.d.ts +13 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/requests/index.d.ts +4 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightAirWaybills/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightAirWaybills/index.js +17 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/Client.d.ts +115 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/Client.js +403 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/index.js +17 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/requests/CargoOnFlightHouseAirWaybillClientCreate1.d.ts +29 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/requests/CargoOnFlightHouseAirWaybillClientUpdate1.d.ts +19 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/requests/CargoOnFlightHouseAirWaybillClientUpdate1.js +5 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/requests/CargoOnFlightHouseAirWaybillsListV1Request.d.ts +24 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/requests/CargoOnFlightHouseAirWaybillsListV1Request.js +5 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/index.js +17 -0
- package/dist/cjs/api/resources/shipping/resources/index.d.ts +4 -0
- package/dist/cjs/api/resources/shipping/resources/index.js +5 -1
- package/dist/cjs/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.js +1 -1
- package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.d.ts +13 -0
- package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.js +59 -0
- package/dist/cjs/api/resources/utils/resources/dev/client/Client.d.ts +0 -30
- package/dist/cjs/api/resources/utils/resources/dev/client/Client.js +0 -128
- package/dist/cjs/api/resources/utils/resources/dev/client/requests/index.d.ts +0 -2
- package/dist/cjs/api/types/ArchivedModel.d.ts +5 -1
- package/dist/cjs/api/types/ArchivedModel.js +4 -0
- package/dist/cjs/api/types/CallerCredentialTypeEnum.d.ts +2 -1
- package/dist/cjs/api/types/CallerCredentialTypeEnum.js +1 -0
- package/dist/cjs/api/types/CargoAiAirWaybillMessage1.d.ts +24 -0
- package/dist/cjs/api/types/CargoAiAirWaybillMessage1.js +5 -0
- package/dist/cjs/api/types/CargoAiAirWaybillMessageSendStatusEnum1.d.ts +10 -0
- package/dist/cjs/api/types/CargoAiAirWaybillMessageSendStatusEnum1.js +12 -0
- package/dist/cjs/api/types/CargoAiAirWaybillMessageSortByEnum.d.ts +4 -0
- package/dist/cjs/api/types/CargoAiAirWaybillMessageSortByEnum.js +5 -0
- package/dist/cjs/api/types/CargoAiAirWaybillMessageWebhookEvent1.d.ts +12 -0
- package/dist/cjs/api/types/CargoAiAirWaybillMessageWebhookEvent1.js +5 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlAddress1.d.ts +13 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlAddress1.js +5 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlAgent1.d.ts +10 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlAgent1.js +5 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlChargesDeclaration1.d.ts +18 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlChargesDeclaration1.js +13 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlCity1.d.ts +7 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlCity1.js +5 -0
- package/dist/cjs/api/types/{GeographyRes.d.ts → CargoAiFwbAndFhlCode1.d.ts} +2 -2
- package/dist/cjs/api/types/CargoAiFwbAndFhlCode1.js +5 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlCountry1.d.ts +7 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlCountry1.js +5 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlDimension1.d.ts +19 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlDimension1.js +15 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlExecution1.d.ts +9 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlExecution1.js +5 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlHandling1.d.ts +9 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlHandling1.js +5 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlHouse1.d.ts +26 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlHouse1.js +13 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlHouseLocations1.d.ts +8 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlHouseLocations1.js +5 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlOci1.d.ts +8 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlOci1.js +5 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlOciSecurity1.d.ts +22 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlOciSecurity1.js +15 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlOtherCharge1.d.ts +21 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlOtherCharge1.js +17 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlParty1.d.ts +12 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlParty1.js +5 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlRate1.d.ts +19 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlRate1.js +5 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlRequest1.d.ts +24 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlRequest1.js +5 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlRouting1.d.ts +9 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlRouting1.js +5 -0
- package/dist/{esm/api/types/GeographyRes.d.mts → cjs/api/types/CargoAiFwbAndFhlUld1.d.ts} +2 -2
- package/dist/cjs/api/types/CargoAiFwbAndFhlUld1.js +5 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlWeightOrVolume1.d.ts +16 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlWeightOrVolume1.js +15 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybill1.d.ts +32 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybill1.js +5 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillCarriersExecution1.d.ts +11 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillCarriersExecution1.js +5 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillChargeCodeEnum1.d.ts +34 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillChargeCodeEnum1.js +33 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillChargesDeclaration1.d.ts +16 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillChargesDeclaration1.js +5 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillConsignmentSecurityDeclaration1.d.ts +18 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillConsignmentSecurityDeclaration1.js +5 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillDimension1.d.ts +12 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillDimension1.js +5 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillFwbMessage1.d.ts +17 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillFwbMessage1.js +5 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillListRes.d.ts +8 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillListRes.js +5 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillMessageResponseProvenanceEnum1.d.ts +8 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillMessageResponseProvenanceEnum1.js +10 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillMessageStatusEnum1.d.ts +9 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillMessageStatusEnum1.js +11 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillOtherCharge1.d.ts +13 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillOtherCharge1.js +5 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillOtherChargeEntitlementEnum1.d.ts +8 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillOtherChargeEntitlementEnum1.js +10 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillParty1.d.ts +20 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillParty1.js +5 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillPaymentConditionEnum1.d.ts +8 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillPaymentConditionEnum1.js +10 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillRateClassCodeEnum1.d.ts +22 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillRateClassCodeEnum1.js +21 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillRateLine1.d.ts +21 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillRateLine1.js +5 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillRegulatedEntityCategoryEnum1.d.ts +10 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillRegulatedEntityCategoryEnum1.js +12 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillScreeningExemptionEnum1.d.ts +13 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillScreeningExemptionEnum1.js +15 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillScreeningMethodEnum1.d.ts +17 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillScreeningMethodEnum1.js +19 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillSecurityStatusEnum1.d.ts +10 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillSecurityStatusEnum1.js +12 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillSortByEnum.d.ts +8 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillSortByEnum.js +10 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillsMarkAcceptedRes.d.ts +8 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillsMarkAcceptedRes.js +5 -0
- package/dist/cjs/api/types/CargoOnFlightBookingItineraryLeg1.d.ts +1 -0
- package/dist/cjs/api/types/CargoOnFlightBookingSearchResult1.d.ts +3 -0
- package/dist/cjs/api/types/CargoOnFlightHouseAirWaybill1.d.ts +26 -0
- package/dist/cjs/api/types/CargoOnFlightHouseAirWaybill1.js +5 -0
- package/dist/cjs/api/types/CargoOnFlightHouseAirWaybillFhlMessage1.d.ts +17 -0
- package/dist/cjs/api/types/CargoOnFlightHouseAirWaybillFhlMessage1.js +5 -0
- package/dist/cjs/api/types/CargoOnFlightHouseAirWaybillListRes.d.ts +8 -0
- package/dist/cjs/api/types/CargoOnFlightHouseAirWaybillListRes.js +5 -0
- package/dist/cjs/api/types/CargoOnFlightHouseAirWaybillSortByEnum.d.ts +8 -0
- package/dist/cjs/api/types/CargoOnFlightHouseAirWaybillSortByEnum.js +10 -0
- package/dist/cjs/api/types/CargoOnFlightIntegrationsCargoAiAirWaybillMessageListItem.d.ts +8 -0
- package/dist/cjs/api/types/CargoOnFlightIntegrationsCargoAiAirWaybillMessageListItem.js +5 -0
- package/dist/cjs/api/types/CargoOnFlightIntegrationsCargoAiAirWaybillMessageListRes.d.ts +8 -0
- package/dist/cjs/api/types/CargoOnFlightIntegrationsCargoAiAirWaybillMessageListRes.js +5 -0
- package/dist/cjs/api/types/CargoOnFlightIntegrationsCargoAiAirWaybillsWebhookRes.d.ts +6 -0
- package/dist/cjs/api/types/CargoOnFlightIntegrationsCargoAiAirWaybillsWebhookRes.js +5 -0
- package/dist/cjs/api/types/CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseHouse.d.ts +15 -0
- package/dist/cjs/api/types/CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseHouse.js +14 -0
- package/dist/cjs/api/types/CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseRes.d.ts +8 -0
- package/dist/cjs/api/types/CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseRes.js +5 -0
- package/dist/{esm/api/types/OrderInformationConversationRes.d.mts → cjs/api/types/ChrtGptMessageRes.d.ts} +1 -1
- package/dist/cjs/api/types/ChrtGptMessageRes.js +5 -0
- package/dist/cjs/api/types/LiveKitHelloWorldStartRes.d.ts +8 -0
- package/dist/cjs/api/types/LiveKitHelloWorldStartRes.js +5 -0
- package/dist/cjs/api/types/Model.d.ts +7 -4
- package/dist/cjs/api/types/Model.js +6 -3
- package/dist/cjs/api/types/OrderEventActionEnum1.d.ts +10 -1
- package/dist/cjs/api/types/OrderEventActionEnum1.js +9 -0
- package/dist/cjs/api/types/OrderEventEntity1.d.ts +2 -0
- package/dist/cjs/api/types/index.d.ts +57 -3
- package/dist/cjs/api/types/index.js +57 -3
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +3 -0
- package/dist/esm/Client.mjs +7 -2
- package/dist/esm/api/resources/agent/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/agent/client/Client.mjs +3 -3
- package/dist/esm/api/resources/agent/resources/index.d.mts +1 -2
- package/dist/esm/api/resources/agent/resources/index.mjs +1 -2
- package/dist/esm/api/resources/agent/resources/livekit/client/Client.d.mts +23 -0
- package/dist/esm/api/resources/agent/resources/livekit/client/Client.mjs +13 -0
- package/dist/esm/api/resources/agent/resources/livekit/client/index.d.mts +1 -0
- package/dist/esm/api/resources/agent/resources/livekit/client/index.mjs +1 -0
- package/dist/esm/api/resources/agent/resources/livekit/index.d.mts +2 -0
- package/dist/esm/api/resources/agent/resources/livekit/index.mjs +2 -0
- package/dist/esm/api/resources/agent/resources/livekit/resources/helloWorld/client/Client.d.mts +44 -0
- package/dist/esm/api/resources/agent/resources/livekit/resources/helloWorld/client/Client.mjs +81 -0
- package/dist/esm/api/resources/agent/resources/livekit/resources/helloWorld/client/index.d.mts +1 -0
- package/dist/esm/api/resources/agent/resources/livekit/resources/helloWorld/client/index.mjs +1 -0
- package/dist/esm/api/resources/agent/resources/livekit/resources/index.d.mts +1 -0
- package/dist/esm/api/resources/agent/resources/livekit/resources/index.mjs +1 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/Client.d.mts +51 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/Client.mjs +222 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightIntegrationsCargoAiSendAirWaybillReq.d.mts +13 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseReq.d.mts +20 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseReq.mjs +10 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoaiListAirWaybillMessagesV1Request.d.mts +30 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/chrtGpt/client/Client.d.mts +49 -0
- package/dist/esm/api/resources/chrtGpt/client/Client.mjs +95 -0
- package/dist/{cjs/api/resources/agent/resources/orderInformation/client/requests/OrderInformationConversationStartReq.d.ts → esm/api/resources/chrtGpt/client/requests/ChrtGptMessageReq.d.mts} +3 -2
- package/dist/esm/api/resources/chrtGpt/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/chrtGpt/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/chrtGpt/index.d.mts +1 -0
- package/dist/esm/api/resources/chrtGpt/index.mjs +1 -0
- package/dist/esm/api/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/index.mjs +2 -0
- package/dist/esm/api/resources/shipping/client/Client.d.mts +6 -0
- package/dist/esm/api/resources/shipping/client/Client.mjs +10 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/Client.d.mts +154 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/Client.mjs +457 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/index.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/index.mjs +1 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/requests/CargoOnFlightAirWaybillClientCreate1.d.mts +57 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/requests/CargoOnFlightAirWaybillClientUpdate1.d.mts +29 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/requests/CargoOnFlightAirWaybillsListV1Request.d.mts +27 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/requests/CargoOnFlightAirWaybillsMarkAcceptedReq.d.mts +13 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/requests/index.d.mts +4 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightAirWaybills/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightAirWaybills/index.mjs +1 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/Client.d.mts +115 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/Client.mjs +366 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/index.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/index.mjs +1 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/requests/CargoOnFlightHouseAirWaybillClientCreate1.d.mts +29 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/requests/CargoOnFlightHouseAirWaybillClientUpdate1.d.mts +19 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/requests/CargoOnFlightHouseAirWaybillClientUpdate1.mjs +4 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/requests/CargoOnFlightHouseAirWaybillsListV1Request.d.mts +24 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/requests/CargoOnFlightHouseAirWaybillsListV1Request.mjs +4 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/index.mjs +1 -0
- package/dist/esm/api/resources/shipping/resources/index.d.mts +4 -0
- package/dist/esm/api/resources/shipping/resources/index.mjs +4 -0
- package/dist/esm/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.mjs +1 -1
- package/dist/esm/api/resources/shipping/resources/tasks/client/Client.d.mts +13 -0
- package/dist/esm/api/resources/shipping/resources/tasks/client/Client.mjs +59 -0
- package/dist/esm/api/resources/utils/resources/dev/client/Client.d.mts +0 -30
- package/dist/esm/api/resources/utils/resources/dev/client/Client.mjs +0 -128
- package/dist/esm/api/resources/utils/resources/dev/client/requests/index.d.mts +0 -2
- package/dist/esm/api/types/ArchivedModel.d.mts +5 -1
- package/dist/esm/api/types/ArchivedModel.mjs +4 -0
- package/dist/esm/api/types/CallerCredentialTypeEnum.d.mts +2 -1
- package/dist/esm/api/types/CallerCredentialTypeEnum.mjs +1 -0
- package/dist/esm/api/types/CargoAiAirWaybillMessage1.d.mts +24 -0
- package/dist/esm/api/types/CargoAiAirWaybillMessage1.mjs +4 -0
- package/dist/esm/api/types/CargoAiAirWaybillMessageSendStatusEnum1.d.mts +10 -0
- package/dist/esm/api/types/CargoAiAirWaybillMessageSendStatusEnum1.mjs +9 -0
- package/dist/esm/api/types/CargoAiAirWaybillMessageSortByEnum.d.mts +4 -0
- package/dist/esm/api/types/CargoAiAirWaybillMessageSortByEnum.mjs +4 -0
- package/dist/esm/api/types/CargoAiAirWaybillMessageWebhookEvent1.d.mts +12 -0
- package/dist/esm/api/types/CargoAiAirWaybillMessageWebhookEvent1.mjs +4 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlAddress1.d.mts +13 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlAddress1.mjs +4 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlAgent1.d.mts +10 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlAgent1.mjs +4 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlChargesDeclaration1.d.mts +18 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlChargesDeclaration1.mjs +10 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlCity1.d.mts +7 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlCity1.mjs +4 -0
- package/dist/{cjs/api/types/PingOpenAiRes.d.ts → esm/api/types/CargoAiFwbAndFhlCode1.d.mts} +2 -2
- package/dist/esm/api/types/CargoAiFwbAndFhlCode1.mjs +4 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlCountry1.d.mts +7 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlCountry1.mjs +4 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlDimension1.d.mts +19 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlDimension1.mjs +12 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlExecution1.d.mts +9 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlExecution1.mjs +4 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlHandling1.d.mts +9 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlHandling1.mjs +4 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlHouse1.d.mts +26 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlHouse1.mjs +10 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlHouseLocations1.d.mts +8 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlHouseLocations1.mjs +4 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlOci1.d.mts +8 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlOci1.mjs +4 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlOciSecurity1.d.mts +22 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlOciSecurity1.mjs +12 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlOtherCharge1.d.mts +21 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlOtherCharge1.mjs +14 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlParty1.d.mts +12 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlParty1.mjs +4 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlRate1.d.mts +19 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlRate1.mjs +4 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlRequest1.d.mts +24 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlRequest1.mjs +4 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlRouting1.d.mts +9 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlRouting1.mjs +4 -0
- package/dist/esm/api/types/{PingOpenAiRes.d.mts → CargoAiFwbAndFhlUld1.d.mts} +2 -2
- package/dist/esm/api/types/CargoAiFwbAndFhlUld1.mjs +4 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlWeightOrVolume1.d.mts +16 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlWeightOrVolume1.mjs +12 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybill1.d.mts +32 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybill1.mjs +4 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillCarriersExecution1.d.mts +11 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillCarriersExecution1.mjs +4 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillChargeCodeEnum1.d.mts +34 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillChargeCodeEnum1.mjs +30 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillChargesDeclaration1.d.mts +16 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillChargesDeclaration1.mjs +4 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillConsignmentSecurityDeclaration1.d.mts +18 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillConsignmentSecurityDeclaration1.mjs +4 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillDimension1.d.mts +12 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillDimension1.mjs +4 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillFwbMessage1.d.mts +17 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillFwbMessage1.mjs +4 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillListRes.d.mts +8 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillListRes.mjs +4 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillMessageResponseProvenanceEnum1.d.mts +8 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillMessageResponseProvenanceEnum1.mjs +7 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillMessageStatusEnum1.d.mts +9 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillMessageStatusEnum1.mjs +8 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillOtherCharge1.d.mts +13 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillOtherCharge1.mjs +4 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillOtherChargeEntitlementEnum1.d.mts +8 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillOtherChargeEntitlementEnum1.mjs +7 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillParty1.d.mts +20 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillParty1.mjs +4 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillPaymentConditionEnum1.d.mts +8 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillPaymentConditionEnum1.mjs +7 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillRateClassCodeEnum1.d.mts +22 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillRateClassCodeEnum1.mjs +18 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillRateLine1.d.mts +21 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillRateLine1.mjs +4 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillRegulatedEntityCategoryEnum1.d.mts +10 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillRegulatedEntityCategoryEnum1.mjs +9 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillScreeningExemptionEnum1.d.mts +13 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillScreeningExemptionEnum1.mjs +12 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillScreeningMethodEnum1.d.mts +17 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillScreeningMethodEnum1.mjs +16 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillSecurityStatusEnum1.d.mts +10 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillSecurityStatusEnum1.mjs +9 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillSortByEnum.d.mts +8 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillSortByEnum.mjs +7 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillsMarkAcceptedRes.d.mts +8 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillsMarkAcceptedRes.mjs +4 -0
- package/dist/esm/api/types/CargoOnFlightBookingItineraryLeg1.d.mts +1 -0
- package/dist/esm/api/types/CargoOnFlightBookingSearchResult1.d.mts +3 -0
- package/dist/esm/api/types/CargoOnFlightHouseAirWaybill1.d.mts +26 -0
- package/dist/esm/api/types/CargoOnFlightHouseAirWaybill1.mjs +4 -0
- package/dist/esm/api/types/CargoOnFlightHouseAirWaybillFhlMessage1.d.mts +17 -0
- package/dist/esm/api/types/CargoOnFlightHouseAirWaybillFhlMessage1.mjs +4 -0
- package/dist/esm/api/types/CargoOnFlightHouseAirWaybillListRes.d.mts +8 -0
- package/dist/esm/api/types/CargoOnFlightHouseAirWaybillListRes.mjs +4 -0
- package/dist/esm/api/types/CargoOnFlightHouseAirWaybillSortByEnum.d.mts +8 -0
- package/dist/esm/api/types/CargoOnFlightHouseAirWaybillSortByEnum.mjs +7 -0
- package/dist/esm/api/types/CargoOnFlightIntegrationsCargoAiAirWaybillMessageListItem.d.mts +8 -0
- package/dist/esm/api/types/CargoOnFlightIntegrationsCargoAiAirWaybillMessageListItem.mjs +4 -0
- package/dist/esm/api/types/CargoOnFlightIntegrationsCargoAiAirWaybillMessageListRes.d.mts +8 -0
- package/dist/esm/api/types/CargoOnFlightIntegrationsCargoAiAirWaybillMessageListRes.mjs +4 -0
- package/dist/esm/api/types/CargoOnFlightIntegrationsCargoAiAirWaybillsWebhookRes.d.mts +6 -0
- package/dist/esm/api/types/CargoOnFlightIntegrationsCargoAiAirWaybillsWebhookRes.mjs +4 -0
- package/dist/esm/api/types/CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseHouse.d.mts +15 -0
- package/dist/esm/api/types/CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseHouse.mjs +11 -0
- package/dist/esm/api/types/CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseRes.d.mts +8 -0
- package/dist/esm/api/types/CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseRes.mjs +4 -0
- package/dist/{cjs/api/types/OrderInformationConversationRes.d.ts → esm/api/types/ChrtGptMessageRes.d.mts} +1 -1
- package/dist/esm/api/types/ChrtGptMessageRes.mjs +4 -0
- package/dist/esm/api/types/LiveKitHelloWorldStartRes.d.mts +8 -0
- package/dist/esm/api/types/LiveKitHelloWorldStartRes.mjs +4 -0
- package/dist/esm/api/types/Model.d.mts +7 -4
- package/dist/esm/api/types/Model.mjs +6 -3
- package/dist/esm/api/types/OrderEventActionEnum1.d.mts +10 -1
- package/dist/esm/api/types/OrderEventActionEnum1.mjs +9 -0
- package/dist/esm/api/types/OrderEventEntity1.d.mts +2 -0
- package/dist/esm/api/types/index.d.mts +57 -3
- package/dist/esm/api/types/index.mjs +57 -3
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +1264 -425
- package/dist/cjs/api/resources/agent/resources/orderInformation/client/Client.d.ts +0 -79
- package/dist/cjs/api/resources/agent/resources/orderInformation/client/Client.js +0 -260
- package/dist/cjs/api/resources/agent/resources/orderInformation/client/requests/OrderInformationConversationClientUpdate1.d.ts +0 -11
- package/dist/cjs/api/resources/agent/resources/orderInformation/client/requests/OrderInformationConversationMessageReq.d.ts +0 -12
- package/dist/cjs/api/resources/agent/resources/orderInformation/client/requests/index.d.ts +0 -3
- package/dist/cjs/api/resources/utils/resources/dev/client/requests/GeographyReq.d.ts +0 -12
- package/dist/cjs/api/resources/utils/resources/dev/client/requests/PingOpenAiReq.d.ts +0 -12
- package/dist/esm/api/resources/agent/resources/orderInformation/client/Client.d.mts +0 -79
- package/dist/esm/api/resources/agent/resources/orderInformation/client/Client.mjs +0 -223
- package/dist/esm/api/resources/agent/resources/orderInformation/client/requests/OrderInformationConversationClientUpdate1.d.mts +0 -11
- package/dist/esm/api/resources/agent/resources/orderInformation/client/requests/OrderInformationConversationStartReq.d.mts +0 -13
- package/dist/esm/api/resources/agent/resources/orderInformation/client/requests/index.d.mts +0 -3
- package/dist/esm/api/resources/utils/resources/dev/client/requests/GeographyReq.d.mts +0 -12
- package/dist/esm/api/resources/utils/resources/dev/client/requests/PingOpenAiReq.d.mts +0 -12
- /package/dist/{esm/api/resources/agent/resources/orderInformation/client/requests/index.mjs → cjs/api/resources/agent/resources/livekit/client/index.d.ts} +0 -0
- /package/dist/cjs/api/resources/agent/resources/{orderInformation/client/requests → livekit/client}/index.js +0 -0
- /package/dist/cjs/api/resources/agent/resources/{orderInformation → livekit/resources/helloWorld}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/agent/resources/{orderInformation → livekit/resources/helloWorld}/index.js +0 -0
- /package/dist/cjs/api/resources/{agent/resources/orderInformation/client/requests/OrderInformationConversationClientUpdate1.js → cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightIntegrationsCargoAiSendAirWaybillReq.js} +0 -0
- /package/dist/cjs/api/resources/{agent/resources/orderInformation/client/requests/OrderInformationConversationMessageReq.js → cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoaiListAirWaybillMessagesV1Request.js} +0 -0
- /package/dist/cjs/api/resources/{agent/resources/orderInformation → chrtGpt}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{agent/resources/orderInformation → chrtGpt}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{agent/resources/orderInformation/client/requests/OrderInformationConversationStartReq.js → chrtGpt/client/requests/ChrtGptMessageReq.js} +0 -0
- /package/dist/cjs/api/resources/{utils/resources/dev/client/requests/GeographyReq.js → shipping/resources/cargoOnFlightAirWaybills/client/requests/CargoOnFlightAirWaybillClientCreate1.js} +0 -0
- /package/dist/cjs/api/resources/{utils/resources/dev/client/requests/PingOpenAiReq.js → shipping/resources/cargoOnFlightAirWaybills/client/requests/CargoOnFlightAirWaybillClientUpdate1.js} +0 -0
- /package/dist/cjs/api/{types/GeographyRes.js → resources/shipping/resources/cargoOnFlightAirWaybills/client/requests/CargoOnFlightAirWaybillsListV1Request.js} +0 -0
- /package/dist/cjs/api/{types/OrderInformationConversationRes.js → resources/shipping/resources/cargoOnFlightAirWaybills/client/requests/CargoOnFlightAirWaybillsMarkAcceptedReq.js} +0 -0
- /package/dist/cjs/api/{types/PingOpenAiRes.js → resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/requests/CargoOnFlightHouseAirWaybillClientCreate1.js} +0 -0
- /package/dist/esm/api/resources/agent/resources/{orderInformation → livekit/resources/helloWorld}/index.d.mts +0 -0
- /package/dist/esm/api/resources/agent/resources/{orderInformation → livekit/resources/helloWorld}/index.mjs +0 -0
- /package/dist/esm/api/resources/{agent/resources/orderInformation/client/requests/OrderInformationConversationClientUpdate1.mjs → cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightIntegrationsCargoAiSendAirWaybillReq.mjs} +0 -0
- /package/dist/esm/api/resources/{agent/resources/orderInformation/client/requests/OrderInformationConversationMessageReq.mjs → cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoaiListAirWaybillMessagesV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/{agent/resources/orderInformation → chrtGpt}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{agent/resources/orderInformation → chrtGpt}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{agent/resources/orderInformation/client/requests/OrderInformationConversationStartReq.mjs → chrtGpt/client/requests/ChrtGptMessageReq.mjs} +0 -0
- /package/dist/esm/api/resources/{utils/resources/dev/client/requests/GeographyReq.mjs → shipping/resources/cargoOnFlightAirWaybills/client/requests/CargoOnFlightAirWaybillClientCreate1.mjs} +0 -0
- /package/dist/esm/api/resources/{utils/resources/dev/client/requests/PingOpenAiReq.mjs → shipping/resources/cargoOnFlightAirWaybills/client/requests/CargoOnFlightAirWaybillClientUpdate1.mjs} +0 -0
- /package/dist/esm/api/{types/GeographyRes.mjs → resources/shipping/resources/cargoOnFlightAirWaybills/client/requests/CargoOnFlightAirWaybillsListV1Request.mjs} +0 -0
- /package/dist/esm/api/{types/OrderInformationConversationRes.mjs → resources/shipping/resources/cargoOnFlightAirWaybills/client/requests/CargoOnFlightAirWaybillsMarkAcceptedReq.mjs} +0 -0
- /package/dist/esm/api/{types/PingOpenAiRes.mjs → resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/requests/CargoOnFlightHouseAirWaybillClientCreate1.mjs} +0 -0
|
@@ -0,0 +1,494 @@
|
|
|
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.CargoOnFlightAirWaybills = 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 CargoOnFlightAirWaybills {
|
|
55
|
+
constructor(_options = {}) {
|
|
56
|
+
this._options = _options;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Creates the air waybill for a confirmed cargo-on-flight booking: the parties, rating, charges, and security declaration sent to the airline as an FWB. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightAirWaybillClientCreate1) -> (CargoOnFlightAirWaybill1)
|
|
60
|
+
*
|
|
61
|
+
* @param {Chrt.shipping.CargoOnFlightAirWaybillClientCreate1} request
|
|
62
|
+
* @param {CargoOnFlightAirWaybills.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* await client.shipping.cargoOnFlightAirWaybills.createV1({
|
|
68
|
+
* cargo_on_flight_booking_id: "cargo_on_flight_booking_id",
|
|
69
|
+
* carriers_execution: {
|
|
70
|
+
* authorisation_signature: "authorisation_signature",
|
|
71
|
+
* executed_on_date: "executed_on_date",
|
|
72
|
+
* place: "place"
|
|
73
|
+
* },
|
|
74
|
+
* charges_declaration: {
|
|
75
|
+
* charge_code: "CA",
|
|
76
|
+
* currency_code: "currency_code"
|
|
77
|
+
* },
|
|
78
|
+
* consignee: {
|
|
79
|
+
* address_line_1: "address_line_1",
|
|
80
|
+
* city_name: "city_name",
|
|
81
|
+
* country_code: "country_code",
|
|
82
|
+
* name: "name"
|
|
83
|
+
* },
|
|
84
|
+
* rate_lines: [{
|
|
85
|
+
* gross_weight_kilograms: 1.1,
|
|
86
|
+
* nature_and_quantity_of_goods: "nature_and_quantity_of_goods",
|
|
87
|
+
* number_of_pieces: 1,
|
|
88
|
+
* rate_class_code: "B"
|
|
89
|
+
* }],
|
|
90
|
+
* schema_version: 1,
|
|
91
|
+
* shipper: {
|
|
92
|
+
* address_line_1: "address_line_1",
|
|
93
|
+
* city_name: "city_name",
|
|
94
|
+
* country_code: "country_code",
|
|
95
|
+
* name: "name"
|
|
96
|
+
* },
|
|
97
|
+
* shippers_certification: "shippers_certification"
|
|
98
|
+
* })
|
|
99
|
+
*/
|
|
100
|
+
createV1(request, requestOptions) {
|
|
101
|
+
return core.HttpResponsePromise.fromPromise(this.__createV1(request, requestOptions));
|
|
102
|
+
}
|
|
103
|
+
__createV1(request, requestOptions) {
|
|
104
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
105
|
+
var _a, _b, _c, _d;
|
|
106
|
+
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);
|
|
107
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
108
|
+
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/cargo_on_flight_air_waybills/create/v1"),
|
|
109
|
+
method: "POST",
|
|
110
|
+
headers: _headers,
|
|
111
|
+
contentType: "application/json",
|
|
112
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
113
|
+
requestType: "json",
|
|
114
|
+
body: request,
|
|
115
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
116
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
117
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
118
|
+
});
|
|
119
|
+
if (_response.ok) {
|
|
120
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
121
|
+
}
|
|
122
|
+
if (_response.error.reason === "status-code") {
|
|
123
|
+
switch (_response.error.statusCode) {
|
|
124
|
+
case 422:
|
|
125
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
126
|
+
default:
|
|
127
|
+
throw new errors.ChrtError({
|
|
128
|
+
statusCode: _response.error.statusCode,
|
|
129
|
+
body: _response.error.body,
|
|
130
|
+
rawResponse: _response.rawResponse,
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
switch (_response.error.reason) {
|
|
135
|
+
case "non-json":
|
|
136
|
+
throw new errors.ChrtError({
|
|
137
|
+
statusCode: _response.error.statusCode,
|
|
138
|
+
body: _response.error.rawBody,
|
|
139
|
+
rawResponse: _response.rawResponse,
|
|
140
|
+
});
|
|
141
|
+
case "timeout":
|
|
142
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping/cargo_on_flight_air_waybills/create/v1.");
|
|
143
|
+
case "unknown":
|
|
144
|
+
throw new errors.ChrtError({
|
|
145
|
+
message: _response.error.errorMessage,
|
|
146
|
+
rawResponse: _response.rawResponse,
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Deletes an air waybill and its house air waybills, while none of them has been sent to the airline. | authz_personas=[task_group_coordinator_operators] | () -> (bool)
|
|
153
|
+
*
|
|
154
|
+
* @param {string} cargoOnFlightAirWaybillId
|
|
155
|
+
* @param {CargoOnFlightAirWaybills.RequestOptions} requestOptions - Request-specific configuration.
|
|
156
|
+
*
|
|
157
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
158
|
+
*
|
|
159
|
+
* @example
|
|
160
|
+
* await client.shipping.cargoOnFlightAirWaybills.deleteV1("cargo_on_flight_air_waybill_id")
|
|
161
|
+
*/
|
|
162
|
+
deleteV1(cargoOnFlightAirWaybillId, requestOptions) {
|
|
163
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteV1(cargoOnFlightAirWaybillId, requestOptions));
|
|
164
|
+
}
|
|
165
|
+
__deleteV1(cargoOnFlightAirWaybillId, requestOptions) {
|
|
166
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
167
|
+
var _a, _b, _c, _d;
|
|
168
|
+
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);
|
|
169
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
170
|
+
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/cargo_on_flight_air_waybills/delete/v1/${encodeURIComponent(cargoOnFlightAirWaybillId)}`),
|
|
171
|
+
method: "DELETE",
|
|
172
|
+
headers: _headers,
|
|
173
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
174
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
175
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
176
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
177
|
+
});
|
|
178
|
+
if (_response.ok) {
|
|
179
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
180
|
+
}
|
|
181
|
+
if (_response.error.reason === "status-code") {
|
|
182
|
+
switch (_response.error.statusCode) {
|
|
183
|
+
case 422:
|
|
184
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
185
|
+
default:
|
|
186
|
+
throw new errors.ChrtError({
|
|
187
|
+
statusCode: _response.error.statusCode,
|
|
188
|
+
body: _response.error.body,
|
|
189
|
+
rawResponse: _response.rawResponse,
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
switch (_response.error.reason) {
|
|
194
|
+
case "non-json":
|
|
195
|
+
throw new errors.ChrtError({
|
|
196
|
+
statusCode: _response.error.statusCode,
|
|
197
|
+
body: _response.error.rawBody,
|
|
198
|
+
rawResponse: _response.rawResponse,
|
|
199
|
+
});
|
|
200
|
+
case "timeout":
|
|
201
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /shipping/cargo_on_flight_air_waybills/delete/v1/{cargo_on_flight_air_waybill_id}.");
|
|
202
|
+
case "unknown":
|
|
203
|
+
throw new errors.ChrtError({
|
|
204
|
+
message: _response.error.errorMessage,
|
|
205
|
+
rawResponse: _response.rawResponse,
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Lists a flight task group's air waybills, one per cargo-on-flight booking. | authz_personas=[task_group_coordinator_operators] | () -> (CargoOnFlightAirWaybillListRes)
|
|
212
|
+
*
|
|
213
|
+
* @param {Chrt.shipping.CargoOnFlightAirWaybillsListV1Request} request
|
|
214
|
+
* @param {CargoOnFlightAirWaybills.RequestOptions} requestOptions - Request-specific configuration.
|
|
215
|
+
*
|
|
216
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
217
|
+
*
|
|
218
|
+
* @example
|
|
219
|
+
* await client.shipping.cargoOnFlightAirWaybills.listV1({
|
|
220
|
+
* task_group_id: "task_group_id",
|
|
221
|
+
* filter_cargo_on_flight_booking_id: "filter_cargo_on_flight_booking_id",
|
|
222
|
+
* sort_by: "created_at_timestamp",
|
|
223
|
+
* sort_order: "asc",
|
|
224
|
+
* page: 1,
|
|
225
|
+
* page_size: 1
|
|
226
|
+
* })
|
|
227
|
+
*/
|
|
228
|
+
listV1(request, requestOptions) {
|
|
229
|
+
return core.HttpResponsePromise.fromPromise(this.__listV1(request, requestOptions));
|
|
230
|
+
}
|
|
231
|
+
__listV1(request, requestOptions) {
|
|
232
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
233
|
+
var _a, _b, _c, _d, _e, _f;
|
|
234
|
+
const { task_group_id: taskGroupId, filter_cargo_on_flight_booking_id: filterCargoOnFlightBookingId, sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, } = request;
|
|
235
|
+
const _queryParams = {};
|
|
236
|
+
_queryParams["task_group_id"] = taskGroupId;
|
|
237
|
+
if (filterCargoOnFlightBookingId !== undefined) {
|
|
238
|
+
_queryParams["filter_cargo_on_flight_booking_id"] = filterCargoOnFlightBookingId;
|
|
239
|
+
}
|
|
240
|
+
if (sortBy !== undefined) {
|
|
241
|
+
_queryParams["sort_by"] = sortBy;
|
|
242
|
+
}
|
|
243
|
+
if (sortOrder !== undefined) {
|
|
244
|
+
_queryParams["sort_order"] = sortOrder;
|
|
245
|
+
}
|
|
246
|
+
if (page !== undefined) {
|
|
247
|
+
_queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
|
|
248
|
+
}
|
|
249
|
+
if (pageSize !== undefined) {
|
|
250
|
+
_queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
|
|
251
|
+
}
|
|
252
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
253
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
254
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ChrtEnvironment.Local, "shipping/cargo_on_flight_air_waybills/list/v1"),
|
|
255
|
+
method: "GET",
|
|
256
|
+
headers: _headers,
|
|
257
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
258
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
259
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
260
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
261
|
+
});
|
|
262
|
+
if (_response.ok) {
|
|
263
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
264
|
+
}
|
|
265
|
+
if (_response.error.reason === "status-code") {
|
|
266
|
+
switch (_response.error.statusCode) {
|
|
267
|
+
case 422:
|
|
268
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
269
|
+
default:
|
|
270
|
+
throw new errors.ChrtError({
|
|
271
|
+
statusCode: _response.error.statusCode,
|
|
272
|
+
body: _response.error.body,
|
|
273
|
+
rawResponse: _response.rawResponse,
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
switch (_response.error.reason) {
|
|
278
|
+
case "non-json":
|
|
279
|
+
throw new errors.ChrtError({
|
|
280
|
+
statusCode: _response.error.statusCode,
|
|
281
|
+
body: _response.error.rawBody,
|
|
282
|
+
rawResponse: _response.rawResponse,
|
|
283
|
+
});
|
|
284
|
+
case "timeout":
|
|
285
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping/cargo_on_flight_air_waybills/list/v1.");
|
|
286
|
+
case "unknown":
|
|
287
|
+
throw new errors.ChrtError({
|
|
288
|
+
message: _response.error.errorMessage,
|
|
289
|
+
rawResponse: _response.rawResponse,
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
});
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* Marks a sent FWB and/or the FHLs of chosen house air waybills accepted, for an airline that never answered; a later airline answer replaces it. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightAirWaybillsMarkAcceptedReq) -> (CargoOnFlightAirWaybillsMarkAcceptedRes)
|
|
296
|
+
*
|
|
297
|
+
* @param {string} cargoOnFlightAirWaybillId
|
|
298
|
+
* @param {Chrt.shipping.CargoOnFlightAirWaybillsMarkAcceptedReq} request
|
|
299
|
+
* @param {CargoOnFlightAirWaybills.RequestOptions} requestOptions - Request-specific configuration.
|
|
300
|
+
*
|
|
301
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
302
|
+
*
|
|
303
|
+
* @example
|
|
304
|
+
* await client.shipping.cargoOnFlightAirWaybills.markAcceptedV1("cargo_on_flight_air_waybill_id", {
|
|
305
|
+
* mark_fwb: true
|
|
306
|
+
* })
|
|
307
|
+
*/
|
|
308
|
+
markAcceptedV1(cargoOnFlightAirWaybillId, request, requestOptions) {
|
|
309
|
+
return core.HttpResponsePromise.fromPromise(this.__markAcceptedV1(cargoOnFlightAirWaybillId, request, requestOptions));
|
|
310
|
+
}
|
|
311
|
+
__markAcceptedV1(cargoOnFlightAirWaybillId, request, requestOptions) {
|
|
312
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
313
|
+
var _a, _b, _c, _d;
|
|
314
|
+
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);
|
|
315
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
316
|
+
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/cargo_on_flight_air_waybills/mark_accepted/v1/${encodeURIComponent(cargoOnFlightAirWaybillId)}`),
|
|
317
|
+
method: "POST",
|
|
318
|
+
headers: _headers,
|
|
319
|
+
contentType: "application/json",
|
|
320
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
321
|
+
requestType: "json",
|
|
322
|
+
body: request,
|
|
323
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
324
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
325
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
326
|
+
});
|
|
327
|
+
if (_response.ok) {
|
|
328
|
+
return {
|
|
329
|
+
data: _response.body,
|
|
330
|
+
rawResponse: _response.rawResponse,
|
|
331
|
+
};
|
|
332
|
+
}
|
|
333
|
+
if (_response.error.reason === "status-code") {
|
|
334
|
+
switch (_response.error.statusCode) {
|
|
335
|
+
case 422:
|
|
336
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
337
|
+
default:
|
|
338
|
+
throw new errors.ChrtError({
|
|
339
|
+
statusCode: _response.error.statusCode,
|
|
340
|
+
body: _response.error.body,
|
|
341
|
+
rawResponse: _response.rawResponse,
|
|
342
|
+
});
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
switch (_response.error.reason) {
|
|
346
|
+
case "non-json":
|
|
347
|
+
throw new errors.ChrtError({
|
|
348
|
+
statusCode: _response.error.statusCode,
|
|
349
|
+
body: _response.error.rawBody,
|
|
350
|
+
rawResponse: _response.rawResponse,
|
|
351
|
+
});
|
|
352
|
+
case "timeout":
|
|
353
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping/cargo_on_flight_air_waybills/mark_accepted/v1/{cargo_on_flight_air_waybill_id}.");
|
|
354
|
+
case "unknown":
|
|
355
|
+
throw new errors.ChrtError({
|
|
356
|
+
message: _response.error.errorMessage,
|
|
357
|
+
rawResponse: _response.rawResponse,
|
|
358
|
+
});
|
|
359
|
+
}
|
|
360
|
+
});
|
|
361
|
+
}
|
|
362
|
+
/**
|
|
363
|
+
* Updates an air waybill; an FWB already sent is replaced at the airline only when it is sent again. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightAirWaybillClientUpdate1) -> (CargoOnFlightAirWaybill1)
|
|
364
|
+
*
|
|
365
|
+
* @param {string} cargoOnFlightAirWaybillId
|
|
366
|
+
* @param {Chrt.shipping.CargoOnFlightAirWaybillClientUpdate1} request
|
|
367
|
+
* @param {CargoOnFlightAirWaybills.RequestOptions} requestOptions - Request-specific configuration.
|
|
368
|
+
*
|
|
369
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
370
|
+
*
|
|
371
|
+
* @example
|
|
372
|
+
* await client.shipping.cargoOnFlightAirWaybills.updateV1("cargo_on_flight_air_waybill_id")
|
|
373
|
+
*/
|
|
374
|
+
updateV1(cargoOnFlightAirWaybillId, request = {}, requestOptions) {
|
|
375
|
+
return core.HttpResponsePromise.fromPromise(this.__updateV1(cargoOnFlightAirWaybillId, request, requestOptions));
|
|
376
|
+
}
|
|
377
|
+
__updateV1(cargoOnFlightAirWaybillId_1) {
|
|
378
|
+
return __awaiter(this, arguments, void 0, function* (cargoOnFlightAirWaybillId, request = {}, requestOptions) {
|
|
379
|
+
var _a, _b, _c, _d;
|
|
380
|
+
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);
|
|
381
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
382
|
+
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/cargo_on_flight_air_waybills/update/v1/${encodeURIComponent(cargoOnFlightAirWaybillId)}`),
|
|
383
|
+
method: "PATCH",
|
|
384
|
+
headers: _headers,
|
|
385
|
+
contentType: "application/json",
|
|
386
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
387
|
+
requestType: "json",
|
|
388
|
+
body: request,
|
|
389
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
390
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
391
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
392
|
+
});
|
|
393
|
+
if (_response.ok) {
|
|
394
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
395
|
+
}
|
|
396
|
+
if (_response.error.reason === "status-code") {
|
|
397
|
+
switch (_response.error.statusCode) {
|
|
398
|
+
case 422:
|
|
399
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
400
|
+
default:
|
|
401
|
+
throw new errors.ChrtError({
|
|
402
|
+
statusCode: _response.error.statusCode,
|
|
403
|
+
body: _response.error.body,
|
|
404
|
+
rawResponse: _response.rawResponse,
|
|
405
|
+
});
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
switch (_response.error.reason) {
|
|
409
|
+
case "non-json":
|
|
410
|
+
throw new errors.ChrtError({
|
|
411
|
+
statusCode: _response.error.statusCode,
|
|
412
|
+
body: _response.error.rawBody,
|
|
413
|
+
rawResponse: _response.rawResponse,
|
|
414
|
+
});
|
|
415
|
+
case "timeout":
|
|
416
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /shipping/cargo_on_flight_air_waybills/update/v1/{cargo_on_flight_air_waybill_id}.");
|
|
417
|
+
case "unknown":
|
|
418
|
+
throw new errors.ChrtError({
|
|
419
|
+
message: _response.error.errorMessage,
|
|
420
|
+
rawResponse: _response.rawResponse,
|
|
421
|
+
});
|
|
422
|
+
}
|
|
423
|
+
});
|
|
424
|
+
}
|
|
425
|
+
/**
|
|
426
|
+
* Retrieves an air waybill. | authz_personas=[task_group_coordinator_operators] | () -> (CargoOnFlightAirWaybill1)
|
|
427
|
+
*
|
|
428
|
+
* @param {string} cargoOnFlightAirWaybillId
|
|
429
|
+
* @param {CargoOnFlightAirWaybills.RequestOptions} requestOptions - Request-specific configuration.
|
|
430
|
+
*
|
|
431
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
432
|
+
*
|
|
433
|
+
* @example
|
|
434
|
+
* await client.shipping.cargoOnFlightAirWaybills.getV1("cargo_on_flight_air_waybill_id")
|
|
435
|
+
*/
|
|
436
|
+
getV1(cargoOnFlightAirWaybillId, requestOptions) {
|
|
437
|
+
return core.HttpResponsePromise.fromPromise(this.__getV1(cargoOnFlightAirWaybillId, requestOptions));
|
|
438
|
+
}
|
|
439
|
+
__getV1(cargoOnFlightAirWaybillId, requestOptions) {
|
|
440
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
441
|
+
var _a, _b, _c, _d;
|
|
442
|
+
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);
|
|
443
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
444
|
+
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/cargo_on_flight_air_waybills/v1/${encodeURIComponent(cargoOnFlightAirWaybillId)}`),
|
|
445
|
+
method: "GET",
|
|
446
|
+
headers: _headers,
|
|
447
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
448
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
449
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
450
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
451
|
+
});
|
|
452
|
+
if (_response.ok) {
|
|
453
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
454
|
+
}
|
|
455
|
+
if (_response.error.reason === "status-code") {
|
|
456
|
+
switch (_response.error.statusCode) {
|
|
457
|
+
case 422:
|
|
458
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
459
|
+
default:
|
|
460
|
+
throw new errors.ChrtError({
|
|
461
|
+
statusCode: _response.error.statusCode,
|
|
462
|
+
body: _response.error.body,
|
|
463
|
+
rawResponse: _response.rawResponse,
|
|
464
|
+
});
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
switch (_response.error.reason) {
|
|
468
|
+
case "non-json":
|
|
469
|
+
throw new errors.ChrtError({
|
|
470
|
+
statusCode: _response.error.statusCode,
|
|
471
|
+
body: _response.error.rawBody,
|
|
472
|
+
rawResponse: _response.rawResponse,
|
|
473
|
+
});
|
|
474
|
+
case "timeout":
|
|
475
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping/cargo_on_flight_air_waybills/v1/{cargo_on_flight_air_waybill_id}.");
|
|
476
|
+
case "unknown":
|
|
477
|
+
throw new errors.ChrtError({
|
|
478
|
+
message: _response.error.errorMessage,
|
|
479
|
+
rawResponse: _response.rawResponse,
|
|
480
|
+
});
|
|
481
|
+
}
|
|
482
|
+
});
|
|
483
|
+
}
|
|
484
|
+
_getAuthorizationHeader() {
|
|
485
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
486
|
+
const bearer = yield core.Supplier.get(this._options.token);
|
|
487
|
+
if (bearer != null) {
|
|
488
|
+
return `Bearer ${bearer}`;
|
|
489
|
+
}
|
|
490
|
+
return undefined;
|
|
491
|
+
});
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
exports.CargoOnFlightAirWaybills = CargoOnFlightAirWaybills;
|
|
@@ -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,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../../../../../../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* cargo_on_flight_booking_id: "cargo_on_flight_booking_id",
|
|
9
|
+
* carriers_execution: {
|
|
10
|
+
* authorisation_signature: "authorisation_signature",
|
|
11
|
+
* executed_on_date: "executed_on_date",
|
|
12
|
+
* place: "place"
|
|
13
|
+
* },
|
|
14
|
+
* charges_declaration: {
|
|
15
|
+
* charge_code: "CA",
|
|
16
|
+
* currency_code: "currency_code"
|
|
17
|
+
* },
|
|
18
|
+
* consignee: {
|
|
19
|
+
* address_line_1: "address_line_1",
|
|
20
|
+
* city_name: "city_name",
|
|
21
|
+
* country_code: "country_code",
|
|
22
|
+
* name: "name"
|
|
23
|
+
* },
|
|
24
|
+
* rate_lines: [{
|
|
25
|
+
* gross_weight_kilograms: 1.1,
|
|
26
|
+
* nature_and_quantity_of_goods: "nature_and_quantity_of_goods",
|
|
27
|
+
* number_of_pieces: 1,
|
|
28
|
+
* rate_class_code: "B"
|
|
29
|
+
* }],
|
|
30
|
+
* schema_version: 1,
|
|
31
|
+
* shipper: {
|
|
32
|
+
* address_line_1: "address_line_1",
|
|
33
|
+
* city_name: "city_name",
|
|
34
|
+
* country_code: "country_code",
|
|
35
|
+
* name: "name"
|
|
36
|
+
* },
|
|
37
|
+
* shippers_certification: "shippers_certification"
|
|
38
|
+
* }
|
|
39
|
+
*/
|
|
40
|
+
export interface CargoOnFlightAirWaybillClientCreate1 {
|
|
41
|
+
also_notify?: Chrt.CargoOnFlightAirWaybillParty1 | null;
|
|
42
|
+
cargo_on_flight_booking_id: string;
|
|
43
|
+
carriers_execution: Chrt.CargoOnFlightAirWaybillCarriersExecution1;
|
|
44
|
+
charges_declaration: Chrt.CargoOnFlightAirWaybillChargesDeclaration1;
|
|
45
|
+
consignee: Chrt.CargoOnFlightAirWaybillParty1;
|
|
46
|
+
consignment_security_declaration?: Chrt.CargoOnFlightAirWaybillConsignmentSecurityDeclaration1 | null;
|
|
47
|
+
customs_origin_code?: string | null;
|
|
48
|
+
iata_cass_office_id?: string | null;
|
|
49
|
+
issuing_agent_name?: string | null;
|
|
50
|
+
other_charges?: Chrt.CargoOnFlightAirWaybillOtherCharge1[];
|
|
51
|
+
other_service_information?: string | null;
|
|
52
|
+
rate_lines: Chrt.CargoOnFlightAirWaybillRateLine1[];
|
|
53
|
+
schema_version: number;
|
|
54
|
+
shipper: Chrt.CargoOnFlightAirWaybillParty1;
|
|
55
|
+
shippers_certification: string;
|
|
56
|
+
special_service_request?: string | null;
|
|
57
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../../../../../../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {}
|
|
8
|
+
*/
|
|
9
|
+
export interface CargoOnFlightAirWaybillClientUpdate1 {
|
|
10
|
+
also_notify?: Chrt.CargoOnFlightAirWaybillParty1 | null;
|
|
11
|
+
also_notify__set_to_None?: boolean;
|
|
12
|
+
carriers_execution?: Chrt.CargoOnFlightAirWaybillCarriersExecution1 | null;
|
|
13
|
+
charges_declaration?: Chrt.CargoOnFlightAirWaybillChargesDeclaration1 | null;
|
|
14
|
+
consignee?: Chrt.CargoOnFlightAirWaybillParty1 | null;
|
|
15
|
+
consignment_security_declaration?: Chrt.CargoOnFlightAirWaybillConsignmentSecurityDeclaration1 | null;
|
|
16
|
+
consignment_security_declaration__set_to_None?: boolean;
|
|
17
|
+
customs_origin_code?: string | null;
|
|
18
|
+
customs_origin_code__set_to_None?: boolean;
|
|
19
|
+
issuing_agent_name?: string | null;
|
|
20
|
+
issuing_agent_name__set_to_None?: boolean;
|
|
21
|
+
other_charges?: Chrt.CargoOnFlightAirWaybillOtherCharge1[];
|
|
22
|
+
other_service_information?: string | null;
|
|
23
|
+
other_service_information__set_to_None?: boolean;
|
|
24
|
+
rate_lines?: Chrt.CargoOnFlightAirWaybillRateLine1[];
|
|
25
|
+
shipper?: Chrt.CargoOnFlightAirWaybillParty1 | null;
|
|
26
|
+
shippers_certification?: string | null;
|
|
27
|
+
special_service_request?: string | null;
|
|
28
|
+
special_service_request__set_to_None?: boolean;
|
|
29
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../../../../../../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* task_group_id: "task_group_id",
|
|
9
|
+
* filter_cargo_on_flight_booking_id: "filter_cargo_on_flight_booking_id",
|
|
10
|
+
* sort_by: "created_at_timestamp",
|
|
11
|
+
* sort_order: "asc",
|
|
12
|
+
* page: 1,
|
|
13
|
+
* page_size: 1
|
|
14
|
+
* }
|
|
15
|
+
*/
|
|
16
|
+
export interface CargoOnFlightAirWaybillsListV1Request {
|
|
17
|
+
/** The task group whose air waybills are listed. */
|
|
18
|
+
task_group_id: string;
|
|
19
|
+
/** Filter by booking. */
|
|
20
|
+
filter_cargo_on_flight_booking_id?: string | null;
|
|
21
|
+
/** Field to sort by. */
|
|
22
|
+
sort_by?: Chrt.CargoOnFlightAirWaybillSortByEnum | null;
|
|
23
|
+
/** Sort order. */
|
|
24
|
+
sort_order?: Chrt.SortOrderEnum | null;
|
|
25
|
+
page?: number | null;
|
|
26
|
+
page_size?: number | null;
|
|
27
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* mark_fwb: true
|
|
8
|
+
* }
|
|
9
|
+
*/
|
|
10
|
+
export interface CargoOnFlightAirWaybillsMarkAcceptedReq {
|
|
11
|
+
cargo_on_flight_house_air_waybill_ids?: string[];
|
|
12
|
+
mark_fwb: boolean;
|
|
13
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { type CargoOnFlightAirWaybillClientCreate1 } from "./CargoOnFlightAirWaybillClientCreate1.js";
|
|
2
|
+
export { type CargoOnFlightAirWaybillsListV1Request } from "./CargoOnFlightAirWaybillsListV1Request.js";
|
|
3
|
+
export { type CargoOnFlightAirWaybillsMarkAcceptedReq } from "./CargoOnFlightAirWaybillsMarkAcceptedReq.js";
|
|
4
|
+
export { type CargoOnFlightAirWaybillClientUpdate1 } from "./CargoOnFlightAirWaybillClientUpdate1.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.js";
|