@chrt-inc/typescript-sdk 1.1027.0 → 1.1037.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.d.ts +3 -3
- package/dist/cjs/Client.js +19 -19
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/client/Client.js +7 -2
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/Client.d.ts +88 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/Client.js +269 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/index.js +17 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/requests/CargoOnFlightIntegrationsAirCanadaBookReq.d.ts +18 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/requests/CargoOnFlightIntegrationsAirCanadaCancelReq.d.ts +12 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/requests/CargoOnFlightIntegrationsAirCanadaCancelReq.js +5 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/Client.js +1 -1
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/index.js +3 -1
- package/dist/cjs/api/resources/chrtGpt/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/chrtGpt/client/Client.js +5 -0
- package/dist/cjs/api/resources/chrtGpt/resources/conversations/client/Client.d.ts +3 -2
- package/dist/cjs/api/resources/chrtGpt/resources/conversations/client/Client.js +7 -3
- package/dist/cjs/api/resources/chrtGpt/resources/conversations/client/requests/ConversationsListV1Request.d.ts +4 -1
- package/dist/cjs/api/resources/chrtGpt/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/chrtGpt/resources/index.js +3 -1
- package/dist/cjs/api/resources/chrtGpt/resources/voice/client/Client.d.ts +49 -0
- package/dist/cjs/api/resources/chrtGpt/resources/voice/client/Client.js +132 -0
- package/dist/cjs/api/resources/chrtGpt/resources/voice/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/chrtGpt/resources/voice/client/index.js +17 -0
- package/dist/cjs/api/resources/chrtGpt/resources/voice/client/requests/ChrtGptVoiceStartReq.d.ts +13 -0
- package/dist/cjs/api/resources/chrtGpt/resources/voice/client/requests/ChrtGptVoiceStartReq.js +5 -0
- package/dist/cjs/api/resources/chrtGpt/resources/voice/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/chrtGpt/resources/voice/index.d.ts +1 -0
- package/dist/cjs/api/resources/{agent/resources/livekit → chrtGpt/resources/voice}/index.js +0 -1
- package/dist/cjs/api/resources/index.d.ts +1 -1
- package/dist/cjs/api/resources/index.js +2 -2
- package/dist/cjs/api/resources/{agent/resources/livekit → livekit}/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/{agent/resources/livekit → livekit}/resources/helloWorld/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/{agent/resources/livekit → livekit}/resources/helloWorld/client/Client.js +7 -7
- package/dist/cjs/api/resources/livekit/resources/helloWorld/client/index.js +2 -0
- package/dist/cjs/api/resources/livekit/resources/helloWorld/index.d.ts +1 -0
- package/dist/cjs/api/resources/livekit/resources/helloWorld/index.js +17 -0
- package/dist/cjs/api/resources/orgs/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/orgs/client/Client.js +19 -14
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/Client.d.ts +137 -0
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/Client.js +528 -0
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/index.js +17 -0
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersAddReq.d.ts +12 -0
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersAddReq.js +5 -0
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersListV1Request.d.ts +27 -0
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersListV1Request.js +5 -0
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersMarkAvailableReq.d.ts +12 -0
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersMarkAvailableReq.js +5 -0
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersMarkUsedReq.d.ts +13 -0
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersMarkUsedReq.js +5 -0
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersVoidReq.d.ts +13 -0
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersVoidReq.js +5 -0
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/index.d.ts +5 -0
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/index.d.ts +1 -0
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/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/cargoOnFlightBookings/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookings/client/Client.js +1 -1
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookings/client/requests/CargoOnFlightBookingClientCreate1.d.ts +1 -1
- package/dist/cjs/api/types/AirWaybillStockNumber1.d.ts +21 -0
- package/dist/cjs/api/types/AirWaybillStockNumber1.js +5 -0
- package/dist/cjs/api/types/AirWaybillStockNumberListRes.d.ts +8 -0
- package/dist/cjs/api/types/AirWaybillStockNumberListRes.js +5 -0
- package/dist/cjs/api/types/AirWaybillStockNumberSortByEnum.d.ts +9 -0
- package/dist/cjs/api/types/AirWaybillStockNumberSortByEnum.js +11 -0
- package/dist/cjs/api/types/AirWaybillStockNumberStatusEnum1.d.ts +10 -0
- package/dist/cjs/api/types/AirWaybillStockNumberStatusEnum1.js +12 -0
- package/dist/cjs/api/types/AirWaybillStockNumbersAddRes.d.ts +8 -0
- package/dist/cjs/api/types/AirWaybillStockNumbersAddRes.js +5 -0
- package/dist/cjs/api/types/AirWaybillStockNumbersSummaryRes.d.ts +10 -0
- package/dist/cjs/api/types/AirWaybillStockNumbersSummaryRes.js +5 -0
- package/dist/cjs/api/types/Caller.d.ts +1 -0
- package/dist/cjs/api/{resources/cargoOnFlightIntegrations/resources/cargoai/client/requests → types}/CargoOnFlightBookingSearchClientCreate1.d.ts +0 -10
- package/dist/cjs/api/types/CargoOnFlightBookingSearchClientCreate1.js +5 -0
- package/dist/cjs/api/types/CargoOnFlightIntegrationEnum1.d.ts +2 -1
- package/dist/cjs/api/types/CargoOnFlightIntegrationEnum1.js +1 -0
- package/dist/cjs/api/types/ChrtGptVoiceDelegationEnum.d.ts +11 -0
- package/dist/cjs/api/types/ChrtGptVoiceDelegationEnum.js +10 -0
- package/dist/cjs/api/types/ChrtGptVoiceReq.d.ts +11 -0
- package/dist/cjs/api/types/ChrtGptVoiceReq.js +5 -0
- package/dist/cjs/api/types/ChrtGptVoiceStartRes.d.ts +9 -0
- package/dist/cjs/api/types/ChrtGptVoiceStartRes.js +5 -0
- package/dist/cjs/api/types/InternalDelegationOriginEnum.d.ts +8 -0
- package/dist/cjs/api/types/InternalDelegationOriginEnum.js +10 -0
- package/dist/cjs/api/types/index.d.ts +11 -0
- package/dist/cjs/api/types/index.js +11 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +3 -3
- package/dist/esm/Client.mjs +7 -7
- package/dist/esm/api/resources/cargoOnFlightIntegrations/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/client/Client.mjs +5 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/Client.d.mts +88 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/Client.mjs +232 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/index.d.mts +2 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/index.mjs +1 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/requests/CargoOnFlightIntegrationsAirCanadaBookReq.d.mts +18 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/requests/CargoOnFlightIntegrationsAirCanadaCancelReq.d.mts +12 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/requests/CargoOnFlightIntegrationsAirCanadaCancelReq.mjs +4 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/Client.mjs +1 -1
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/index.mjs +2 -0
- package/dist/esm/api/resources/chrtGpt/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/chrtGpt/client/Client.mjs +5 -0
- package/dist/esm/api/resources/chrtGpt/resources/conversations/client/Client.d.mts +3 -2
- package/dist/esm/api/resources/chrtGpt/resources/conversations/client/Client.mjs +7 -3
- package/dist/esm/api/resources/chrtGpt/resources/conversations/client/requests/ConversationsListV1Request.d.mts +4 -1
- package/dist/esm/api/resources/chrtGpt/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/chrtGpt/resources/index.mjs +2 -0
- package/dist/esm/api/resources/chrtGpt/resources/voice/client/Client.d.mts +49 -0
- package/dist/esm/api/resources/chrtGpt/resources/voice/client/Client.mjs +95 -0
- package/dist/esm/api/resources/chrtGpt/resources/voice/client/index.d.mts +2 -0
- package/dist/esm/api/resources/chrtGpt/resources/voice/client/index.mjs +1 -0
- package/dist/esm/api/resources/chrtGpt/resources/voice/client/requests/ChrtGptVoiceStartReq.d.mts +13 -0
- package/dist/esm/api/resources/chrtGpt/resources/voice/client/requests/ChrtGptVoiceStartReq.mjs +4 -0
- package/dist/esm/api/resources/chrtGpt/resources/voice/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/chrtGpt/resources/voice/index.d.mts +1 -0
- package/dist/esm/api/resources/chrtGpt/resources/voice/index.mjs +1 -0
- package/dist/esm/api/resources/index.d.mts +1 -1
- package/dist/esm/api/resources/index.mjs +1 -1
- package/dist/esm/api/resources/{agent/resources/livekit → livekit}/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/{agent/resources/livekit → livekit}/resources/helloWorld/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/{agent/resources/livekit → livekit}/resources/helloWorld/client/Client.mjs +7 -7
- package/dist/esm/api/resources/livekit/resources/helloWorld/index.d.mts +1 -0
- package/dist/esm/api/resources/livekit/resources/helloWorld/index.mjs +1 -0
- package/dist/esm/api/resources/orgs/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/orgs/client/Client.mjs +5 -0
- package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/Client.d.mts +137 -0
- package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/Client.mjs +491 -0
- package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/index.d.mts +2 -0
- package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/index.mjs +1 -0
- package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersAddReq.d.mts +12 -0
- package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersAddReq.mjs +4 -0
- package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersListV1Request.d.mts +27 -0
- package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersListV1Request.mjs +4 -0
- package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersMarkAvailableReq.d.mts +12 -0
- package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersMarkAvailableReq.mjs +4 -0
- package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersMarkUsedReq.d.mts +13 -0
- package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersMarkUsedReq.mjs +4 -0
- package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersVoidReq.d.mts +13 -0
- package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersVoidReq.mjs +4 -0
- package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/index.d.mts +5 -0
- package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/index.d.mts +1 -0
- package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/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/cargoOnFlightBookings/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookings/client/Client.mjs +1 -1
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookings/client/requests/CargoOnFlightBookingClientCreate1.d.mts +1 -1
- package/dist/esm/api/types/AirWaybillStockNumber1.d.mts +21 -0
- package/dist/esm/api/types/AirWaybillStockNumber1.mjs +4 -0
- package/dist/esm/api/types/AirWaybillStockNumberListRes.d.mts +8 -0
- package/dist/esm/api/types/AirWaybillStockNumberListRes.mjs +4 -0
- package/dist/esm/api/types/AirWaybillStockNumberSortByEnum.d.mts +9 -0
- package/dist/esm/api/types/AirWaybillStockNumberSortByEnum.mjs +8 -0
- package/dist/esm/api/types/AirWaybillStockNumberStatusEnum1.d.mts +10 -0
- package/dist/esm/api/types/AirWaybillStockNumberStatusEnum1.mjs +9 -0
- package/dist/esm/api/types/AirWaybillStockNumbersAddRes.d.mts +8 -0
- package/dist/esm/api/types/AirWaybillStockNumbersAddRes.mjs +4 -0
- package/dist/esm/api/types/AirWaybillStockNumbersSummaryRes.d.mts +10 -0
- package/dist/esm/api/types/AirWaybillStockNumbersSummaryRes.mjs +4 -0
- package/dist/esm/api/types/Caller.d.mts +1 -0
- package/dist/esm/api/{resources/cargoOnFlightIntegrations/resources/cargoai/client/requests → types}/CargoOnFlightBookingSearchClientCreate1.d.mts +0 -10
- package/dist/esm/api/types/CargoOnFlightBookingSearchClientCreate1.mjs +4 -0
- package/dist/esm/api/types/CargoOnFlightIntegrationEnum1.d.mts +2 -1
- package/dist/esm/api/types/CargoOnFlightIntegrationEnum1.mjs +1 -0
- package/dist/esm/api/types/ChrtGptVoiceDelegationEnum.d.mts +11 -0
- package/dist/esm/api/types/ChrtGptVoiceDelegationEnum.mjs +7 -0
- package/dist/esm/api/types/ChrtGptVoiceReq.d.mts +11 -0
- package/dist/esm/api/types/ChrtGptVoiceReq.mjs +4 -0
- package/dist/esm/api/types/ChrtGptVoiceStartRes.d.mts +9 -0
- package/dist/esm/api/types/ChrtGptVoiceStartRes.mjs +4 -0
- package/dist/esm/api/types/InternalDelegationOriginEnum.d.mts +8 -0
- package/dist/esm/api/types/InternalDelegationOriginEnum.mjs +7 -0
- package/dist/esm/api/types/index.d.mts +11 -0
- package/dist/esm/api/types/index.mjs +11 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +2050 -1305
- package/dist/cjs/api/resources/agent/client/Client.d.ts +0 -23
- package/dist/cjs/api/resources/agent/client/Client.js +0 -17
- package/dist/cjs/api/resources/agent/resources/index.d.ts +0 -1
- package/dist/cjs/api/resources/agent/resources/index.js +0 -37
- package/dist/cjs/api/resources/agent/resources/livekit/index.d.ts +0 -2
- package/dist/esm/api/resources/agent/client/Client.d.mts +0 -23
- package/dist/esm/api/resources/agent/client/Client.mjs +0 -13
- package/dist/esm/api/resources/agent/resources/index.d.mts +0 -1
- package/dist/esm/api/resources/agent/resources/index.mjs +0 -1
- package/dist/esm/api/resources/agent/resources/livekit/index.d.mts +0 -2
- package/dist/esm/api/resources/agent/resources/livekit/index.mjs +0 -2
- /package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/{cargoai/client/requests/CargoOnFlightBookingSearchClientCreate1.js → airCanada/client/requests/CargoOnFlightIntegrationsAirCanadaBookReq.js} +0 -0
- /package/dist/cjs/api/resources/{agent/client → cargoOnFlightIntegrations/resources/airCanada/client/requests}/index.js +0 -0
- /package/dist/cjs/api/resources/{agent/resources/livekit/resources/helloWorld → cargoOnFlightIntegrations/resources/airCanada}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{agent/resources/livekit/resources/helloWorld → cargoOnFlightIntegrations/resources/airCanada}/index.js +0 -0
- /package/dist/cjs/api/resources/{agent/resources/livekit/client → chrtGpt/resources/voice/client/requests}/index.js +0 -0
- /package/dist/cjs/api/resources/{agent/resources/livekit → livekit}/client/Client.js +0 -0
- /package/dist/cjs/api/resources/{agent → livekit}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{agent/resources/livekit/resources/helloWorld → livekit}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{agent → livekit}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{agent → livekit}/index.js +0 -0
- /package/dist/cjs/api/resources/{agent/resources/livekit → livekit/resources/helloWorld}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{agent/resources/livekit → livekit}/resources/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{agent/resources/livekit → livekit}/resources/index.js +0 -0
- /package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/{cargoai/client/requests/CargoOnFlightBookingSearchClientCreate1.mjs → airCanada/client/requests/CargoOnFlightIntegrationsAirCanadaBookReq.mjs} +0 -0
- /package/dist/esm/api/resources/{agent/client → cargoOnFlightIntegrations/resources/airCanada/client/requests}/index.mjs +0 -0
- /package/dist/esm/api/resources/{agent/resources/livekit/resources/helloWorld → cargoOnFlightIntegrations/resources/airCanada}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{agent/resources/livekit/resources/helloWorld → cargoOnFlightIntegrations/resources/airCanada}/index.mjs +0 -0
- /package/dist/esm/api/resources/{agent/resources/livekit/client → chrtGpt/resources/voice/client/requests}/index.mjs +0 -0
- /package/dist/esm/api/resources/{agent/resources/livekit → livekit}/client/Client.mjs +0 -0
- /package/dist/esm/api/resources/{agent → livekit}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{agent/resources/livekit/resources/helloWorld → livekit}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{agent → livekit}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{agent → livekit}/index.mjs +0 -0
- /package/dist/esm/api/resources/{agent/resources/livekit → livekit/resources/helloWorld}/client/index.d.mts +0 -0
- /package/dist/{cjs/api/resources/agent/resources/livekit/resources/helloWorld/client/index.d.ts → esm/api/resources/livekit/resources/helloWorld/client/index.mjs} +0 -0
- /package/dist/esm/api/resources/{agent/resources/livekit → livekit}/resources/index.d.mts +0 -0
- /package/dist/esm/api/resources/{agent/resources/livekit → livekit}/resources/index.mjs +0 -0
- /package/dist/esm/api/resources/{agent/resources/livekit/resources/helloWorld/client/index.d.mts → orgs/resources/airWaybillStockNumbers/client/requests/index.mjs} +0 -0
package/dist/cjs/Client.d.ts
CHANGED
|
@@ -7,13 +7,13 @@ import { ChrtGpt } from "./api/resources/chrtGpt/client/Client.js";
|
|
|
7
7
|
import { Flights } from "./api/resources/flights/client/Client.js";
|
|
8
8
|
import { Orgs } from "./api/resources/orgs/client/Client.js";
|
|
9
9
|
import { Utils } from "./api/resources/utils/client/Client.js";
|
|
10
|
-
import { Agent } from "./api/resources/agent/client/Client.js";
|
|
11
10
|
import { Analytics } from "./api/resources/analytics/client/Client.js";
|
|
12
11
|
import { Billing } from "./api/resources/billing/client/Client.js";
|
|
13
12
|
import { BillingNew } from "./api/resources/billingNew/client/Client.js";
|
|
14
13
|
import { CargoOnFlightIntegrations } from "./api/resources/cargoOnFlightIntegrations/client/Client.js";
|
|
15
14
|
import { Integrations } from "./api/resources/integrations/client/Client.js";
|
|
16
15
|
import { Listing } from "./api/resources/listing/client/Client.js";
|
|
16
|
+
import { Livekit } from "./api/resources/livekit/client/Client.js";
|
|
17
17
|
import { Notifications } from "./api/resources/notifications/client/Client.js";
|
|
18
18
|
import { Operations } from "./api/resources/operations/client/Client.js";
|
|
19
19
|
import { Shipping } from "./api/resources/shipping/client/Client.js";
|
|
@@ -50,13 +50,13 @@ export declare class ChrtClient {
|
|
|
50
50
|
protected _flights: Flights | undefined;
|
|
51
51
|
protected _orgs: Orgs | undefined;
|
|
52
52
|
protected _utils: Utils | undefined;
|
|
53
|
-
protected _agent: Agent | undefined;
|
|
54
53
|
protected _analytics: Analytics | undefined;
|
|
55
54
|
protected _billing: Billing | undefined;
|
|
56
55
|
protected _billingNew: BillingNew | undefined;
|
|
57
56
|
protected _cargoOnFlightIntegrations: CargoOnFlightIntegrations | undefined;
|
|
58
57
|
protected _integrations: Integrations | undefined;
|
|
59
58
|
protected _listing: Listing | undefined;
|
|
59
|
+
protected _livekit: Livekit | undefined;
|
|
60
60
|
protected _notifications: Notifications | undefined;
|
|
61
61
|
protected _operations: Operations | undefined;
|
|
62
62
|
protected _shipping: Shipping | undefined;
|
|
@@ -69,13 +69,13 @@ export declare class ChrtClient {
|
|
|
69
69
|
get flights(): Flights;
|
|
70
70
|
get orgs(): Orgs;
|
|
71
71
|
get utils(): Utils;
|
|
72
|
-
get agent(): Agent;
|
|
73
72
|
get analytics(): Analytics;
|
|
74
73
|
get billing(): Billing;
|
|
75
74
|
get billingNew(): BillingNew;
|
|
76
75
|
get cargoOnFlightIntegrations(): CargoOnFlightIntegrations;
|
|
77
76
|
get integrations(): Integrations;
|
|
78
77
|
get listing(): Listing;
|
|
78
|
+
get livekit(): Livekit;
|
|
79
79
|
get notifications(): Notifications;
|
|
80
80
|
get operations(): Operations;
|
|
81
81
|
get shipping(): Shipping;
|
package/dist/cjs/Client.js
CHANGED
|
@@ -43,13 +43,13 @@ const Client_js_1 = require("./api/resources/chrtGpt/client/Client.js");
|
|
|
43
43
|
const Client_js_2 = require("./api/resources/flights/client/Client.js");
|
|
44
44
|
const Client_js_3 = require("./api/resources/orgs/client/Client.js");
|
|
45
45
|
const Client_js_4 = require("./api/resources/utils/client/Client.js");
|
|
46
|
-
const Client_js_5 = require("./api/resources/
|
|
47
|
-
const Client_js_6 = require("./api/resources/
|
|
48
|
-
const Client_js_7 = require("./api/resources/
|
|
49
|
-
const Client_js_8 = require("./api/resources/
|
|
50
|
-
const Client_js_9 = require("./api/resources/
|
|
51
|
-
const Client_js_10 = require("./api/resources/
|
|
52
|
-
const Client_js_11 = require("./api/resources/
|
|
46
|
+
const Client_js_5 = require("./api/resources/analytics/client/Client.js");
|
|
47
|
+
const Client_js_6 = require("./api/resources/billing/client/Client.js");
|
|
48
|
+
const Client_js_7 = require("./api/resources/billingNew/client/Client.js");
|
|
49
|
+
const Client_js_8 = require("./api/resources/cargoOnFlightIntegrations/client/Client.js");
|
|
50
|
+
const Client_js_9 = require("./api/resources/integrations/client/Client.js");
|
|
51
|
+
const Client_js_10 = require("./api/resources/listing/client/Client.js");
|
|
52
|
+
const Client_js_11 = require("./api/resources/livekit/client/Client.js");
|
|
53
53
|
const Client_js_12 = require("./api/resources/notifications/client/Client.js");
|
|
54
54
|
const Client_js_13 = require("./api/resources/operations/client/Client.js");
|
|
55
55
|
const Client_js_14 = require("./api/resources/shipping/client/Client.js");
|
|
@@ -62,8 +62,8 @@ class ChrtClient {
|
|
|
62
62
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
63
63
|
"X-Fern-Language": "JavaScript",
|
|
64
64
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
65
|
-
"X-Fern-SDK-Version": "1.
|
|
66
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
65
|
+
"X-Fern-SDK-Version": "1.1037.0",
|
|
66
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.1037.0",
|
|
67
67
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
68
68
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
69
69
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -84,33 +84,33 @@ class ChrtClient {
|
|
|
84
84
|
var _a;
|
|
85
85
|
return ((_a = this._utils) !== null && _a !== void 0 ? _a : (this._utils = new Client_js_4.Utils(this._options)));
|
|
86
86
|
}
|
|
87
|
-
get agent() {
|
|
88
|
-
var _a;
|
|
89
|
-
return ((_a = this._agent) !== null && _a !== void 0 ? _a : (this._agent = new Client_js_5.Agent(this._options)));
|
|
90
|
-
}
|
|
91
87
|
get analytics() {
|
|
92
88
|
var _a;
|
|
93
|
-
return ((_a = this._analytics) !== null && _a !== void 0 ? _a : (this._analytics = new
|
|
89
|
+
return ((_a = this._analytics) !== null && _a !== void 0 ? _a : (this._analytics = new Client_js_5.Analytics(this._options)));
|
|
94
90
|
}
|
|
95
91
|
get billing() {
|
|
96
92
|
var _a;
|
|
97
|
-
return ((_a = this._billing) !== null && _a !== void 0 ? _a : (this._billing = new
|
|
93
|
+
return ((_a = this._billing) !== null && _a !== void 0 ? _a : (this._billing = new Client_js_6.Billing(this._options)));
|
|
98
94
|
}
|
|
99
95
|
get billingNew() {
|
|
100
96
|
var _a;
|
|
101
|
-
return ((_a = this._billingNew) !== null && _a !== void 0 ? _a : (this._billingNew = new
|
|
97
|
+
return ((_a = this._billingNew) !== null && _a !== void 0 ? _a : (this._billingNew = new Client_js_7.BillingNew(this._options)));
|
|
102
98
|
}
|
|
103
99
|
get cargoOnFlightIntegrations() {
|
|
104
100
|
var _a;
|
|
105
|
-
return ((_a = this._cargoOnFlightIntegrations) !== null && _a !== void 0 ? _a : (this._cargoOnFlightIntegrations = new
|
|
101
|
+
return ((_a = this._cargoOnFlightIntegrations) !== null && _a !== void 0 ? _a : (this._cargoOnFlightIntegrations = new Client_js_8.CargoOnFlightIntegrations(this._options)));
|
|
106
102
|
}
|
|
107
103
|
get integrations() {
|
|
108
104
|
var _a;
|
|
109
|
-
return ((_a = this._integrations) !== null && _a !== void 0 ? _a : (this._integrations = new
|
|
105
|
+
return ((_a = this._integrations) !== null && _a !== void 0 ? _a : (this._integrations = new Client_js_9.Integrations(this._options)));
|
|
110
106
|
}
|
|
111
107
|
get listing() {
|
|
112
108
|
var _a;
|
|
113
|
-
return ((_a = this._listing) !== null && _a !== void 0 ? _a : (this._listing = new
|
|
109
|
+
return ((_a = this._listing) !== null && _a !== void 0 ? _a : (this._listing = new Client_js_10.Listing(this._options)));
|
|
110
|
+
}
|
|
111
|
+
get livekit() {
|
|
112
|
+
var _a;
|
|
113
|
+
return ((_a = this._livekit) !== null && _a !== void 0 ? _a : (this._livekit = new Client_js_11.Livekit(this._options)));
|
|
114
114
|
}
|
|
115
115
|
get notifications() {
|
|
116
116
|
var _a;
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as environments from "../../../../environments.js";
|
|
5
5
|
import * as core from "../../../../core/index.js";
|
|
6
|
+
import { AirCanada } from "../resources/airCanada/client/Client.js";
|
|
6
7
|
import { Cargoai } from "../resources/cargoai/client/Client.js";
|
|
7
8
|
export declare namespace CargoOnFlightIntegrations {
|
|
8
9
|
interface Options {
|
|
@@ -17,7 +18,9 @@ export declare namespace CargoOnFlightIntegrations {
|
|
|
17
18
|
}
|
|
18
19
|
export declare class CargoOnFlightIntegrations {
|
|
19
20
|
protected readonly _options: CargoOnFlightIntegrations.Options;
|
|
21
|
+
protected _airCanada: AirCanada | undefined;
|
|
20
22
|
protected _cargoai: Cargoai | undefined;
|
|
21
23
|
constructor(_options?: CargoOnFlightIntegrations.Options);
|
|
24
|
+
get airCanada(): AirCanada;
|
|
22
25
|
get cargoai(): Cargoai;
|
|
23
26
|
}
|
|
@@ -4,14 +4,19 @@
|
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.CargoOnFlightIntegrations = void 0;
|
|
7
|
-
const Client_js_1 = require("../resources/
|
|
7
|
+
const Client_js_1 = require("../resources/airCanada/client/Client.js");
|
|
8
|
+
const Client_js_2 = require("../resources/cargoai/client/Client.js");
|
|
8
9
|
class CargoOnFlightIntegrations {
|
|
9
10
|
constructor(_options = {}) {
|
|
10
11
|
this._options = _options;
|
|
11
12
|
}
|
|
13
|
+
get airCanada() {
|
|
14
|
+
var _a;
|
|
15
|
+
return ((_a = this._airCanada) !== null && _a !== void 0 ? _a : (this._airCanada = new Client_js_1.AirCanada(this._options)));
|
|
16
|
+
}
|
|
12
17
|
get cargoai() {
|
|
13
18
|
var _a;
|
|
14
|
-
return ((_a = this._cargoai) !== null && _a !== void 0 ? _a : (this._cargoai = new
|
|
19
|
+
return ((_a = this._cargoai) !== null && _a !== void 0 ? _a : (this._cargoai = new Client_js_2.Cargoai(this._options)));
|
|
15
20
|
}
|
|
16
21
|
}
|
|
17
22
|
exports.CargoOnFlightIntegrations = CargoOnFlightIntegrations;
|
package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/Client.d.ts
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../../../environments.js";
|
|
5
|
+
import * as core from "../../../../../../core/index.js";
|
|
6
|
+
import * as Chrt from "../../../../../index.js";
|
|
7
|
+
export declare namespace AirCanada {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
10
|
+
/** Specify a custom URL to connect the client to. */
|
|
11
|
+
baseUrl?: core.Supplier<string>;
|
|
12
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
13
|
+
/** Additional headers to include in requests. */
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
15
|
+
fetcher?: core.FetchFunction;
|
|
16
|
+
}
|
|
17
|
+
interface RequestOptions {
|
|
18
|
+
/** The maximum time to wait for a response in seconds. */
|
|
19
|
+
timeoutInSeconds?: number;
|
|
20
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
21
|
+
maxRetries?: number;
|
|
22
|
+
/** A hook to abort the request. */
|
|
23
|
+
abortSignal?: AbortSignal;
|
|
24
|
+
/** Additional query string parameters to include in the request. */
|
|
25
|
+
queryParams?: Record<string, unknown>;
|
|
26
|
+
/** Additional headers to include in the request. */
|
|
27
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export declare class AirCanada {
|
|
31
|
+
protected readonly _options: AirCanada.Options;
|
|
32
|
+
constructor(_options?: AirCanada.Options);
|
|
33
|
+
/**
|
|
34
|
+
* Books a draft booking on Air Canada with one result and rate of one of its searches, with the user's Air Canada AWB or one Air Canada assigns. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightIntegrationsAirCanadaBookReq) -> (CargoOnFlightBooking1)
|
|
35
|
+
*
|
|
36
|
+
* @param {string} cargoOnFlightBookingId
|
|
37
|
+
* @param {Chrt.cargoOnFlightIntegrations.CargoOnFlightIntegrationsAirCanadaBookReq} request
|
|
38
|
+
* @param {AirCanada.RequestOptions} requestOptions - Request-specific configuration.
|
|
39
|
+
*
|
|
40
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* await client.cargoOnFlightIntegrations.airCanada.bookV1("cargo_on_flight_booking_id", {
|
|
44
|
+
* cargo_on_flight_booking_search_id: "cargo_on_flight_booking_search_id",
|
|
45
|
+
* integration_rate_id: "integration_rate_id",
|
|
46
|
+
* integration_result_id: "integration_result_id"
|
|
47
|
+
* })
|
|
48
|
+
*/
|
|
49
|
+
bookV1(cargoOnFlightBookingId: string, request: Chrt.cargoOnFlightIntegrations.CargoOnFlightIntegrationsAirCanadaBookReq, requestOptions?: AirCanada.RequestOptions): core.HttpResponsePromise<Chrt.CargoOnFlightBooking1>;
|
|
50
|
+
private __bookV1;
|
|
51
|
+
/**
|
|
52
|
+
* Deletes a booking on Air Canada and cancels it: a confirmed or requested one with an AWB, Air Canada's or else the requested one. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightIntegrationsAirCanadaCancelReq) -> (CargoOnFlightBooking1)
|
|
53
|
+
*
|
|
54
|
+
* @param {string} cargoOnFlightBookingId
|
|
55
|
+
* @param {Chrt.cargoOnFlightIntegrations.CargoOnFlightIntegrationsAirCanadaCancelReq} request
|
|
56
|
+
* @param {AirCanada.RequestOptions} requestOptions - Request-specific configuration.
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* await client.cargoOnFlightIntegrations.airCanada.cancelV1("cargo_on_flight_booking_id", {
|
|
62
|
+
* cancellation_reason: "cancellation_reason"
|
|
63
|
+
* })
|
|
64
|
+
*/
|
|
65
|
+
cancelV1(cargoOnFlightBookingId: string, request: Chrt.cargoOnFlightIntegrations.CargoOnFlightIntegrationsAirCanadaCancelReq, requestOptions?: AirCanada.RequestOptions): core.HttpResponsePromise<Chrt.CargoOnFlightBooking1>;
|
|
66
|
+
private __cancelV1;
|
|
67
|
+
/**
|
|
68
|
+
* Quotes Air Canada flights with space and rates for a draft booking's cargos on a route and dates, and stores the search. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightBookingSearchClientCreate1) -> (CargoOnFlightBookingSearch1)
|
|
69
|
+
*
|
|
70
|
+
* @param {string} cargoOnFlightBookingId
|
|
71
|
+
* @param {Chrt.CargoOnFlightBookingSearchClientCreate1} request
|
|
72
|
+
* @param {AirCanada.RequestOptions} requestOptions - Request-specific configuration.
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* await client.cargoOnFlightIntegrations.airCanada.searchV1("cargo_on_flight_booking_id", {
|
|
78
|
+
* destination_iata: "destination_iata",
|
|
79
|
+
* earliest_departure_date: "earliest_departure_date",
|
|
80
|
+
* iata_cass_office_id: "iata_cass_office_id",
|
|
81
|
+
* origin_iata: "origin_iata",
|
|
82
|
+
* schema_version: 1
|
|
83
|
+
* })
|
|
84
|
+
*/
|
|
85
|
+
searchV1(cargoOnFlightBookingId: string, request: Chrt.CargoOnFlightBookingSearchClientCreate1, requestOptions?: AirCanada.RequestOptions): core.HttpResponsePromise<Chrt.CargoOnFlightBookingSearch1>;
|
|
86
|
+
private __searchV1;
|
|
87
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
88
|
+
}
|
|
@@ -0,0 +1,269 @@
|
|
|
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.AirCanada = 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 AirCanada {
|
|
55
|
+
constructor(_options = {}) {
|
|
56
|
+
this._options = _options;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Books a draft booking on Air Canada with one result and rate of one of its searches, with the user's Air Canada AWB or one Air Canada assigns. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightIntegrationsAirCanadaBookReq) -> (CargoOnFlightBooking1)
|
|
60
|
+
*
|
|
61
|
+
* @param {string} cargoOnFlightBookingId
|
|
62
|
+
* @param {Chrt.cargoOnFlightIntegrations.CargoOnFlightIntegrationsAirCanadaBookReq} request
|
|
63
|
+
* @param {AirCanada.RequestOptions} requestOptions - Request-specific configuration.
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* await client.cargoOnFlightIntegrations.airCanada.bookV1("cargo_on_flight_booking_id", {
|
|
69
|
+
* cargo_on_flight_booking_search_id: "cargo_on_flight_booking_search_id",
|
|
70
|
+
* integration_rate_id: "integration_rate_id",
|
|
71
|
+
* integration_result_id: "integration_result_id"
|
|
72
|
+
* })
|
|
73
|
+
*/
|
|
74
|
+
bookV1(cargoOnFlightBookingId, request, requestOptions) {
|
|
75
|
+
return core.HttpResponsePromise.fromPromise(this.__bookV1(cargoOnFlightBookingId, request, requestOptions));
|
|
76
|
+
}
|
|
77
|
+
__bookV1(cargoOnFlightBookingId, request, requestOptions) {
|
|
78
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
79
|
+
var _a, _b, _c, _d;
|
|
80
|
+
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);
|
|
81
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
82
|
+
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, `cargo_on_flight_integrations/air_canada/book/v1/${encodeURIComponent(cargoOnFlightBookingId)}`),
|
|
83
|
+
method: "POST",
|
|
84
|
+
headers: _headers,
|
|
85
|
+
contentType: "application/json",
|
|
86
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
87
|
+
requestType: "json",
|
|
88
|
+
body: request,
|
|
89
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
90
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
91
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
92
|
+
});
|
|
93
|
+
if (_response.ok) {
|
|
94
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
95
|
+
}
|
|
96
|
+
if (_response.error.reason === "status-code") {
|
|
97
|
+
switch (_response.error.statusCode) {
|
|
98
|
+
case 422:
|
|
99
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
100
|
+
default:
|
|
101
|
+
throw new errors.ChrtError({
|
|
102
|
+
statusCode: _response.error.statusCode,
|
|
103
|
+
body: _response.error.body,
|
|
104
|
+
rawResponse: _response.rawResponse,
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
switch (_response.error.reason) {
|
|
109
|
+
case "non-json":
|
|
110
|
+
throw new errors.ChrtError({
|
|
111
|
+
statusCode: _response.error.statusCode,
|
|
112
|
+
body: _response.error.rawBody,
|
|
113
|
+
rawResponse: _response.rawResponse,
|
|
114
|
+
});
|
|
115
|
+
case "timeout":
|
|
116
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /cargo_on_flight_integrations/air_canada/book/v1/{cargo_on_flight_booking_id}.");
|
|
117
|
+
case "unknown":
|
|
118
|
+
throw new errors.ChrtError({
|
|
119
|
+
message: _response.error.errorMessage,
|
|
120
|
+
rawResponse: _response.rawResponse,
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Deletes a booking on Air Canada and cancels it: a confirmed or requested one with an AWB, Air Canada's or else the requested one. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightIntegrationsAirCanadaCancelReq) -> (CargoOnFlightBooking1)
|
|
127
|
+
*
|
|
128
|
+
* @param {string} cargoOnFlightBookingId
|
|
129
|
+
* @param {Chrt.cargoOnFlightIntegrations.CargoOnFlightIntegrationsAirCanadaCancelReq} request
|
|
130
|
+
* @param {AirCanada.RequestOptions} requestOptions - Request-specific configuration.
|
|
131
|
+
*
|
|
132
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
133
|
+
*
|
|
134
|
+
* @example
|
|
135
|
+
* await client.cargoOnFlightIntegrations.airCanada.cancelV1("cargo_on_flight_booking_id", {
|
|
136
|
+
* cancellation_reason: "cancellation_reason"
|
|
137
|
+
* })
|
|
138
|
+
*/
|
|
139
|
+
cancelV1(cargoOnFlightBookingId, request, requestOptions) {
|
|
140
|
+
return core.HttpResponsePromise.fromPromise(this.__cancelV1(cargoOnFlightBookingId, request, requestOptions));
|
|
141
|
+
}
|
|
142
|
+
__cancelV1(cargoOnFlightBookingId, request, requestOptions) {
|
|
143
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
144
|
+
var _a, _b, _c, _d;
|
|
145
|
+
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);
|
|
146
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
147
|
+
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, `cargo_on_flight_integrations/air_canada/cancel/v1/${encodeURIComponent(cargoOnFlightBookingId)}`),
|
|
148
|
+
method: "POST",
|
|
149
|
+
headers: _headers,
|
|
150
|
+
contentType: "application/json",
|
|
151
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
152
|
+
requestType: "json",
|
|
153
|
+
body: request,
|
|
154
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
155
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
156
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
157
|
+
});
|
|
158
|
+
if (_response.ok) {
|
|
159
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
160
|
+
}
|
|
161
|
+
if (_response.error.reason === "status-code") {
|
|
162
|
+
switch (_response.error.statusCode) {
|
|
163
|
+
case 422:
|
|
164
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
165
|
+
default:
|
|
166
|
+
throw new errors.ChrtError({
|
|
167
|
+
statusCode: _response.error.statusCode,
|
|
168
|
+
body: _response.error.body,
|
|
169
|
+
rawResponse: _response.rawResponse,
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
switch (_response.error.reason) {
|
|
174
|
+
case "non-json":
|
|
175
|
+
throw new errors.ChrtError({
|
|
176
|
+
statusCode: _response.error.statusCode,
|
|
177
|
+
body: _response.error.rawBody,
|
|
178
|
+
rawResponse: _response.rawResponse,
|
|
179
|
+
});
|
|
180
|
+
case "timeout":
|
|
181
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /cargo_on_flight_integrations/air_canada/cancel/v1/{cargo_on_flight_booking_id}.");
|
|
182
|
+
case "unknown":
|
|
183
|
+
throw new errors.ChrtError({
|
|
184
|
+
message: _response.error.errorMessage,
|
|
185
|
+
rawResponse: _response.rawResponse,
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Quotes Air Canada flights with space and rates for a draft booking's cargos on a route and dates, and stores the search. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightBookingSearchClientCreate1) -> (CargoOnFlightBookingSearch1)
|
|
192
|
+
*
|
|
193
|
+
* @param {string} cargoOnFlightBookingId
|
|
194
|
+
* @param {Chrt.CargoOnFlightBookingSearchClientCreate1} request
|
|
195
|
+
* @param {AirCanada.RequestOptions} requestOptions - Request-specific configuration.
|
|
196
|
+
*
|
|
197
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
198
|
+
*
|
|
199
|
+
* @example
|
|
200
|
+
* await client.cargoOnFlightIntegrations.airCanada.searchV1("cargo_on_flight_booking_id", {
|
|
201
|
+
* destination_iata: "destination_iata",
|
|
202
|
+
* earliest_departure_date: "earliest_departure_date",
|
|
203
|
+
* iata_cass_office_id: "iata_cass_office_id",
|
|
204
|
+
* origin_iata: "origin_iata",
|
|
205
|
+
* schema_version: 1
|
|
206
|
+
* })
|
|
207
|
+
*/
|
|
208
|
+
searchV1(cargoOnFlightBookingId, request, requestOptions) {
|
|
209
|
+
return core.HttpResponsePromise.fromPromise(this.__searchV1(cargoOnFlightBookingId, request, requestOptions));
|
|
210
|
+
}
|
|
211
|
+
__searchV1(cargoOnFlightBookingId, request, requestOptions) {
|
|
212
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
213
|
+
var _a, _b, _c, _d;
|
|
214
|
+
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);
|
|
215
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
216
|
+
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, `cargo_on_flight_integrations/air_canada/search/v1/${encodeURIComponent(cargoOnFlightBookingId)}`),
|
|
217
|
+
method: "POST",
|
|
218
|
+
headers: _headers,
|
|
219
|
+
contentType: "application/json",
|
|
220
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
221
|
+
requestType: "json",
|
|
222
|
+
body: request,
|
|
223
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
224
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
225
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
226
|
+
});
|
|
227
|
+
if (_response.ok) {
|
|
228
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
229
|
+
}
|
|
230
|
+
if (_response.error.reason === "status-code") {
|
|
231
|
+
switch (_response.error.statusCode) {
|
|
232
|
+
case 422:
|
|
233
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
234
|
+
default:
|
|
235
|
+
throw new errors.ChrtError({
|
|
236
|
+
statusCode: _response.error.statusCode,
|
|
237
|
+
body: _response.error.body,
|
|
238
|
+
rawResponse: _response.rawResponse,
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
switch (_response.error.reason) {
|
|
243
|
+
case "non-json":
|
|
244
|
+
throw new errors.ChrtError({
|
|
245
|
+
statusCode: _response.error.statusCode,
|
|
246
|
+
body: _response.error.rawBody,
|
|
247
|
+
rawResponse: _response.rawResponse,
|
|
248
|
+
});
|
|
249
|
+
case "timeout":
|
|
250
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /cargo_on_flight_integrations/air_canada/search/v1/{cargo_on_flight_booking_id}.");
|
|
251
|
+
case "unknown":
|
|
252
|
+
throw new errors.ChrtError({
|
|
253
|
+
message: _response.error.errorMessage,
|
|
254
|
+
rawResponse: _response.rawResponse,
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
_getAuthorizationHeader() {
|
|
260
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
261
|
+
const bearer = yield core.Supplier.get(this._options.token);
|
|
262
|
+
if (bearer != null) {
|
|
263
|
+
return `Bearer ${bearer}`;
|
|
264
|
+
}
|
|
265
|
+
return undefined;
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
exports.AirCanada = AirCanada;
|
|
@@ -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,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* cargo_on_flight_booking_search_id: "cargo_on_flight_booking_search_id",
|
|
8
|
+
* integration_rate_id: "integration_rate_id",
|
|
9
|
+
* integration_result_id: "integration_result_id"
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface CargoOnFlightIntegrationsAirCanadaBookReq {
|
|
13
|
+
/** IATA Air Waybill number: 3-digit airline prefix + 8-digit serial, e.g. '020-12345678'. */
|
|
14
|
+
awb_number?: string | null;
|
|
15
|
+
cargo_on_flight_booking_search_id: string;
|
|
16
|
+
integration_rate_id: string;
|
|
17
|
+
integration_result_id: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* cancellation_reason: "cancellation_reason"
|
|
8
|
+
* }
|
|
9
|
+
*/
|
|
10
|
+
export interface CargoOnFlightIntegrationsAirCanadaCancelReq {
|
|
11
|
+
cancellation_reason: string;
|
|
12
|
+
}
|
package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/Client.d.ts
CHANGED
|
@@ -145,7 +145,7 @@ export declare class Cargoai {
|
|
|
145
145
|
* Starts a CargoAi search for flights with space and rates for a draft booking's cargos on a route and date, and stores it. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightBookingSearchClientCreate1) -> (CargoOnFlightBookingSearch1)
|
|
146
146
|
*
|
|
147
147
|
* @param {string} cargoOnFlightBookingId
|
|
148
|
-
* @param {Chrt.
|
|
148
|
+
* @param {Chrt.CargoOnFlightBookingSearchClientCreate1} request
|
|
149
149
|
* @param {Cargoai.RequestOptions} requestOptions - Request-specific configuration.
|
|
150
150
|
*
|
|
151
151
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
@@ -159,7 +159,7 @@ export declare class Cargoai {
|
|
|
159
159
|
* schema_version: 1
|
|
160
160
|
* })
|
|
161
161
|
*/
|
|
162
|
-
searchV1(cargoOnFlightBookingId: string, request: Chrt.
|
|
162
|
+
searchV1(cargoOnFlightBookingId: string, request: Chrt.CargoOnFlightBookingSearchClientCreate1, requestOptions?: Cargoai.RequestOptions): core.HttpResponsePromise<Chrt.CargoOnFlightBookingSearch1>;
|
|
163
163
|
private __searchV1;
|
|
164
164
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
165
165
|
}
|
|
@@ -531,7 +531,7 @@ class Cargoai {
|
|
|
531
531
|
* Starts a CargoAi search for flights with space and rates for a draft booking's cargos on a route and date, and stores it. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightBookingSearchClientCreate1) -> (CargoOnFlightBookingSearch1)
|
|
532
532
|
*
|
|
533
533
|
* @param {string} cargoOnFlightBookingId
|
|
534
|
-
* @param {Chrt.
|
|
534
|
+
* @param {Chrt.CargoOnFlightBookingSearchClientCreate1} request
|
|
535
535
|
* @param {Cargoai.RequestOptions} requestOptions - Request-specific configuration.
|
|
536
536
|
*
|
|
537
537
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
@@ -3,4 +3,3 @@ export { type CargoOnFlightIntegrationsCargoAiSendAirWaybillReq } from "./CargoO
|
|
|
3
3
|
export { type CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseReq } from "./CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseReq.js";
|
|
4
4
|
export { type CargoOnFlightIntegrationsCargoAiBookReq } from "./CargoOnFlightIntegrationsCargoAiBookReq.js";
|
|
5
5
|
export { type CargoOnFlightIntegrationsCargoAiCancelReq } from "./CargoOnFlightIntegrationsCargoAiCancelReq.js";
|
|
6
|
-
export { type CargoOnFlightBookingSearchClientCreate1 } from "./CargoOnFlightBookingSearchClientCreate1.js";
|
|
@@ -36,6 +36,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.cargoai = void 0;
|
|
39
|
+
exports.cargoai = exports.airCanada = void 0;
|
|
40
|
+
exports.airCanada = __importStar(require("./airCanada/index.js"));
|
|
40
41
|
exports.cargoai = __importStar(require("./cargoai/index.js"));
|
|
42
|
+
__exportStar(require("./airCanada/client/requests/index.js"), exports);
|
|
41
43
|
__exportStar(require("./cargoai/client/requests/index.js"), exports);
|