@chrt-inc/typescript-sdk 1.1008.0 → 1.1013.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 -0
- package/dist/cjs/Client.js +25 -20
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/client/Client.d.ts +23 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/client/Client.js +17 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/client/index.js +2 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/index.d.ts +2 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/index.js +18 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/Client.d.ts +114 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/Client.js +387 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/index.js +17 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightBookingSearchClientCreate1.d.ts +20 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightBookingSearchClientCreate1.js +5 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightIntegrationsCargoAiBookReq.d.ts +18 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightIntegrationsCargoAiBookReq.js +5 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightIntegrationsCargoAiCancelReq.d.ts +12 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightIntegrationsCargoAiCancelReq.js +5 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/index.d.ts +1 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/index.js +17 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/index.js +41 -0
- package/dist/cjs/api/resources/index.d.ts +1 -0
- package/dist/cjs/api/resources/index.js +2 -1
- package/dist/cjs/api/resources/orgs/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/orgs/client/Client.js +11 -6
- package/dist/cjs/api/resources/orgs/resources/iataCassOffices/client/Client.d.ts +93 -0
- package/dist/cjs/api/resources/orgs/resources/iataCassOffices/client/Client.js +331 -0
- package/dist/cjs/api/resources/orgs/resources/iataCassOffices/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/orgs/resources/iataCassOffices/client/index.js +17 -0
- package/dist/cjs/api/resources/orgs/resources/iataCassOffices/client/requests/IataCassOfficeClientUpdate1.d.ts +13 -0
- package/dist/cjs/api/resources/orgs/resources/iataCassOffices/client/requests/IataCassOfficeClientUpdate1.js +5 -0
- package/dist/cjs/api/resources/orgs/resources/iataCassOffices/client/requests/IataCassOfficesListV1Request.d.ts +24 -0
- package/dist/cjs/api/resources/orgs/resources/iataCassOffices/client/requests/IataCassOfficesListV1Request.js +5 -0
- package/dist/cjs/api/resources/orgs/resources/iataCassOffices/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/orgs/resources/iataCassOffices/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/orgs/resources/iataCassOffices/index.d.ts +1 -0
- package/dist/cjs/api/resources/orgs/resources/iataCassOffices/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/client/Client.d.ts +6 -0
- package/dist/cjs/api/resources/shipping/client/Client.js +24 -14
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookingSearches/client/Client.d.ts +68 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookingSearches/client/Client.js +218 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookingSearches/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookingSearches/client/index.js +17 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookingSearches/client/requests/CargoOnFlightBookingSearchesListV1Request.d.ts +30 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookingSearches/client/requests/CargoOnFlightBookingSearchesListV1Request.js +5 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookingSearches/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookingSearches/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookingSearches/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookingSearches/index.js +17 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookings/client/Client.d.ts +120 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookings/client/Client.js +416 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookings/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookings/client/index.js +17 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookings/client/requests/CargoOnFlightBookingClientCreate1.d.ts +31 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookings/client/requests/CargoOnFlightBookingClientCreate1.js +5 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookings/client/requests/CargoOnFlightBookingsListV1Request.d.ts +33 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookings/client/requests/CargoOnFlightBookingsListV1Request.js +5 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookings/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookings/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookings/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookings/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/types/CalculatedInvoiceTax1.d.ts +3 -1
- package/dist/cjs/api/types/CargoOnFlightBooking1.d.ts +34 -0
- package/dist/cjs/api/types/CargoOnFlightBooking1.js +5 -0
- package/dist/cjs/api/types/CargoOnFlightBookingCargoDimension1.d.ts +15 -0
- package/dist/cjs/api/types/CargoOnFlightBookingCargoDimension1.js +5 -0
- package/dist/cjs/api/types/CargoOnFlightBookingItinerary1.d.ts +13 -0
- package/dist/cjs/api/types/CargoOnFlightBookingItinerary1.js +5 -0
- package/dist/cjs/api/types/CargoOnFlightBookingItineraryLeg1.d.ts +15 -0
- package/dist/cjs/api/types/CargoOnFlightBookingItineraryLeg1.js +5 -0
- package/dist/cjs/api/types/CargoOnFlightBookingListRes.d.ts +8 -0
- package/dist/cjs/api/types/CargoOnFlightBookingListRes.js +5 -0
- package/dist/cjs/api/types/CargoOnFlightBookingRate1.d.ts +12 -0
- package/dist/cjs/api/types/CargoOnFlightBookingRate1.js +5 -0
- package/dist/cjs/api/types/CargoOnFlightBookingSearch1.d.ts +23 -0
- package/dist/cjs/api/types/CargoOnFlightBookingSearch1.js +5 -0
- package/dist/cjs/api/types/CargoOnFlightBookingSearchListRes.d.ts +8 -0
- package/dist/cjs/api/types/CargoOnFlightBookingSearchListRes.js +5 -0
- package/dist/cjs/api/types/CargoOnFlightBookingSearchResult1.d.ts +16 -0
- package/dist/cjs/api/types/CargoOnFlightBookingSearchResult1.js +5 -0
- package/dist/cjs/api/types/CargoOnFlightBookingSearchSortByEnum.d.ts +4 -0
- package/dist/cjs/api/types/CargoOnFlightBookingSearchSortByEnum.js +5 -0
- package/dist/cjs/api/types/CargoOnFlightBookingSortByEnum.d.ts +4 -0
- package/dist/cjs/api/types/CargoOnFlightBookingSortByEnum.js +5 -0
- package/dist/cjs/api/types/CargoOnFlightBookingStatusEnum1.d.ts +13 -0
- package/dist/cjs/api/types/CargoOnFlightBookingStatusEnum1.js +15 -0
- package/dist/cjs/api/types/CargoOnFlightIntegrationEnum1.d.ts +8 -0
- package/dist/cjs/api/types/CargoOnFlightIntegrationEnum1.js +10 -0
- package/dist/cjs/api/types/CargoOnFlightIntegrationsCargoAiWebhookRes.d.ts +6 -0
- package/dist/cjs/api/types/CargoOnFlightIntegrationsCargoAiWebhookRes.js +5 -0
- package/dist/cjs/api/types/FlightLegProvenanceEnum1.d.ts +2 -1
- package/dist/cjs/api/types/FlightLegProvenanceEnum1.js +1 -0
- package/dist/cjs/api/types/IataCassOffice1.d.ts +22 -0
- package/dist/cjs/api/types/IataCassOffice1.js +5 -0
- package/dist/cjs/api/types/IataCassOfficeListRes.d.ts +8 -0
- package/dist/cjs/api/types/IataCassOfficeListRes.js +5 -0
- package/dist/cjs/api/types/IataCassOfficeSortByEnum.d.ts +8 -0
- package/dist/cjs/api/types/IataCassOfficeSortByEnum.js +10 -0
- package/dist/cjs/api/types/index.d.ts +17 -0
- package/dist/cjs/api/types/index.js +17 -0
- 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/cargoOnFlightIntegrations/client/Client.d.mts +23 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/client/Client.mjs +13 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/client/index.d.mts +1 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/client/index.mjs +1 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/index.d.mts +2 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/index.mjs +2 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/Client.d.mts +114 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/Client.mjs +350 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/index.d.mts +2 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/index.mjs +1 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightBookingSearchClientCreate1.d.mts +20 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightBookingSearchClientCreate1.mjs +4 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightIntegrationsCargoAiBookReq.d.mts +18 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightIntegrationsCargoAiBookReq.mjs +4 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightIntegrationsCargoAiCancelReq.d.mts +12 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightIntegrationsCargoAiCancelReq.mjs +4 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/index.d.mts +1 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/index.mjs +1 -0
- 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/index.d.mts +1 -0
- package/dist/esm/api/resources/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/iataCassOffices/client/Client.d.mts +93 -0
- package/dist/esm/api/resources/orgs/resources/iataCassOffices/client/Client.mjs +294 -0
- package/dist/esm/api/resources/orgs/resources/iataCassOffices/client/index.d.mts +2 -0
- package/dist/esm/api/resources/orgs/resources/iataCassOffices/client/index.mjs +1 -0
- package/dist/esm/api/resources/orgs/resources/iataCassOffices/client/requests/IataCassOfficeClientUpdate1.d.mts +13 -0
- package/dist/esm/api/resources/orgs/resources/iataCassOffices/client/requests/IataCassOfficeClientUpdate1.mjs +4 -0
- package/dist/esm/api/resources/orgs/resources/iataCassOffices/client/requests/IataCassOfficesListV1Request.d.mts +24 -0
- package/dist/esm/api/resources/orgs/resources/iataCassOffices/client/requests/IataCassOfficesListV1Request.mjs +4 -0
- package/dist/esm/api/resources/orgs/resources/iataCassOffices/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/orgs/resources/iataCassOffices/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/orgs/resources/iataCassOffices/index.d.mts +1 -0
- package/dist/esm/api/resources/orgs/resources/iataCassOffices/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/client/Client.d.mts +6 -0
- package/dist/esm/api/resources/shipping/client/Client.mjs +10 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookingSearches/client/Client.d.mts +68 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookingSearches/client/Client.mjs +181 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookingSearches/client/index.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookingSearches/client/index.mjs +1 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookingSearches/client/requests/CargoOnFlightBookingSearchesListV1Request.d.mts +30 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookingSearches/client/requests/CargoOnFlightBookingSearchesListV1Request.mjs +4 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookingSearches/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookingSearches/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookingSearches/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookingSearches/index.mjs +1 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookings/client/Client.d.mts +120 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookings/client/Client.mjs +379 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookings/client/index.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookings/client/index.mjs +1 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookings/client/requests/CargoOnFlightBookingClientCreate1.d.mts +31 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookings/client/requests/CargoOnFlightBookingClientCreate1.mjs +4 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookings/client/requests/CargoOnFlightBookingsListV1Request.d.mts +33 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookings/client/requests/CargoOnFlightBookingsListV1Request.mjs +4 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookings/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookings/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookings/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookings/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/types/CalculatedInvoiceTax1.d.mts +3 -1
- package/dist/esm/api/types/CargoOnFlightBooking1.d.mts +34 -0
- package/dist/esm/api/types/CargoOnFlightBooking1.mjs +4 -0
- package/dist/esm/api/types/CargoOnFlightBookingCargoDimension1.d.mts +15 -0
- package/dist/esm/api/types/CargoOnFlightBookingCargoDimension1.mjs +4 -0
- package/dist/esm/api/types/CargoOnFlightBookingItinerary1.d.mts +13 -0
- package/dist/esm/api/types/CargoOnFlightBookingItinerary1.mjs +4 -0
- package/dist/esm/api/types/CargoOnFlightBookingItineraryLeg1.d.mts +15 -0
- package/dist/esm/api/types/CargoOnFlightBookingItineraryLeg1.mjs +4 -0
- package/dist/esm/api/types/CargoOnFlightBookingListRes.d.mts +8 -0
- package/dist/esm/api/types/CargoOnFlightBookingListRes.mjs +4 -0
- package/dist/esm/api/types/CargoOnFlightBookingRate1.d.mts +12 -0
- package/dist/esm/api/types/CargoOnFlightBookingRate1.mjs +4 -0
- package/dist/esm/api/types/CargoOnFlightBookingSearch1.d.mts +23 -0
- package/dist/esm/api/types/CargoOnFlightBookingSearch1.mjs +4 -0
- package/dist/esm/api/types/CargoOnFlightBookingSearchListRes.d.mts +8 -0
- package/dist/esm/api/types/CargoOnFlightBookingSearchListRes.mjs +4 -0
- package/dist/esm/api/types/CargoOnFlightBookingSearchResult1.d.mts +16 -0
- package/dist/esm/api/types/CargoOnFlightBookingSearchResult1.mjs +4 -0
- package/dist/esm/api/types/CargoOnFlightBookingSearchSortByEnum.d.mts +4 -0
- package/dist/esm/api/types/CargoOnFlightBookingSearchSortByEnum.mjs +4 -0
- package/dist/esm/api/types/CargoOnFlightBookingSortByEnum.d.mts +4 -0
- package/dist/esm/api/types/CargoOnFlightBookingSortByEnum.mjs +4 -0
- package/dist/esm/api/types/CargoOnFlightBookingStatusEnum1.d.mts +13 -0
- package/dist/esm/api/types/CargoOnFlightBookingStatusEnum1.mjs +12 -0
- package/dist/esm/api/types/CargoOnFlightIntegrationEnum1.d.mts +8 -0
- package/dist/esm/api/types/CargoOnFlightIntegrationEnum1.mjs +7 -0
- package/dist/esm/api/types/CargoOnFlightIntegrationsCargoAiWebhookRes.d.mts +6 -0
- package/dist/esm/api/types/CargoOnFlightIntegrationsCargoAiWebhookRes.mjs +4 -0
- package/dist/esm/api/types/FlightLegProvenanceEnum1.d.mts +2 -1
- package/dist/esm/api/types/FlightLegProvenanceEnum1.mjs +1 -0
- package/dist/esm/api/types/IataCassOffice1.d.mts +22 -0
- package/dist/esm/api/types/IataCassOffice1.mjs +4 -0
- package/dist/esm/api/types/IataCassOfficeListRes.d.mts +8 -0
- package/dist/esm/api/types/IataCassOfficeListRes.mjs +4 -0
- package/dist/esm/api/types/IataCassOfficeSortByEnum.d.mts +8 -0
- package/dist/esm/api/types/IataCassOfficeSortByEnum.mjs +7 -0
- package/dist/esm/api/types/index.d.mts +17 -0
- package/dist/esm/api/types/index.mjs +17 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +2602 -1505
package/dist/cjs/Client.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import { Agent } from "./api/resources/agent/client/Client.js";
|
|
|
10
10
|
import { Analytics } from "./api/resources/analytics/client/Client.js";
|
|
11
11
|
import { Billing } from "./api/resources/billing/client/Client.js";
|
|
12
12
|
import { BillingNew } from "./api/resources/billingNew/client/Client.js";
|
|
13
|
+
import { CargoOnFlightIntegrations } from "./api/resources/cargoOnFlightIntegrations/client/Client.js";
|
|
13
14
|
import { Integrations } from "./api/resources/integrations/client/Client.js";
|
|
14
15
|
import { Listing } from "./api/resources/listing/client/Client.js";
|
|
15
16
|
import { Notifications } from "./api/resources/notifications/client/Client.js";
|
|
@@ -51,6 +52,7 @@ export declare class ChrtClient {
|
|
|
51
52
|
protected _analytics: Analytics | undefined;
|
|
52
53
|
protected _billing: Billing | undefined;
|
|
53
54
|
protected _billingNew: BillingNew | undefined;
|
|
55
|
+
protected _cargoOnFlightIntegrations: CargoOnFlightIntegrations | undefined;
|
|
54
56
|
protected _integrations: Integrations | undefined;
|
|
55
57
|
protected _listing: Listing | undefined;
|
|
56
58
|
protected _notifications: Notifications | undefined;
|
|
@@ -68,6 +70,7 @@ export declare class ChrtClient {
|
|
|
68
70
|
get analytics(): Analytics;
|
|
69
71
|
get billing(): Billing;
|
|
70
72
|
get billingNew(): BillingNew;
|
|
73
|
+
get cargoOnFlightIntegrations(): CargoOnFlightIntegrations;
|
|
71
74
|
get integrations(): Integrations;
|
|
72
75
|
get listing(): Listing;
|
|
73
76
|
get notifications(): Notifications;
|
package/dist/cjs/Client.js
CHANGED
|
@@ -46,22 +46,23 @@ const Client_js_4 = require("./api/resources/agent/client/Client.js");
|
|
|
46
46
|
const Client_js_5 = require("./api/resources/analytics/client/Client.js");
|
|
47
47
|
const Client_js_6 = require("./api/resources/billing/client/Client.js");
|
|
48
48
|
const Client_js_7 = require("./api/resources/billingNew/client/Client.js");
|
|
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/
|
|
53
|
-
const Client_js_12 = require("./api/resources/
|
|
54
|
-
const Client_js_13 = require("./api/resources/
|
|
55
|
-
const Client_js_14 = require("./api/resources/
|
|
56
|
-
const Client_js_15 = require("./api/resources/
|
|
57
|
-
const Client_js_16 = require("./api/resources/
|
|
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/notifications/client/Client.js");
|
|
53
|
+
const Client_js_12 = require("./api/resources/operations/client/Client.js");
|
|
54
|
+
const Client_js_13 = require("./api/resources/shipping/client/Client.js");
|
|
55
|
+
const Client_js_14 = require("./api/resources/shippingIntegrations/client/Client.js");
|
|
56
|
+
const Client_js_15 = require("./api/resources/tracking/client/Client.js");
|
|
57
|
+
const Client_js_16 = require("./api/resources/trackingIntegrations/client/Client.js");
|
|
58
|
+
const Client_js_17 = require("./api/resources/users/client/Client.js");
|
|
58
59
|
class ChrtClient {
|
|
59
60
|
constructor(_options = {}) {
|
|
60
61
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
61
62
|
"X-Fern-Language": "JavaScript",
|
|
62
63
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
63
|
-
"X-Fern-SDK-Version": "1.
|
|
64
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
64
|
+
"X-Fern-SDK-Version": "1.1013.0",
|
|
65
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.1013.0",
|
|
65
66
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
66
67
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
67
68
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -94,41 +95,45 @@ class ChrtClient {
|
|
|
94
95
|
var _a;
|
|
95
96
|
return ((_a = this._billingNew) !== null && _a !== void 0 ? _a : (this._billingNew = new Client_js_7.BillingNew(this._options)));
|
|
96
97
|
}
|
|
98
|
+
get cargoOnFlightIntegrations() {
|
|
99
|
+
var _a;
|
|
100
|
+
return ((_a = this._cargoOnFlightIntegrations) !== null && _a !== void 0 ? _a : (this._cargoOnFlightIntegrations = new Client_js_8.CargoOnFlightIntegrations(this._options)));
|
|
101
|
+
}
|
|
97
102
|
get integrations() {
|
|
98
103
|
var _a;
|
|
99
|
-
return ((_a = this._integrations) !== null && _a !== void 0 ? _a : (this._integrations = new
|
|
104
|
+
return ((_a = this._integrations) !== null && _a !== void 0 ? _a : (this._integrations = new Client_js_9.Integrations(this._options)));
|
|
100
105
|
}
|
|
101
106
|
get listing() {
|
|
102
107
|
var _a;
|
|
103
|
-
return ((_a = this._listing) !== null && _a !== void 0 ? _a : (this._listing = new
|
|
108
|
+
return ((_a = this._listing) !== null && _a !== void 0 ? _a : (this._listing = new Client_js_10.Listing(this._options)));
|
|
104
109
|
}
|
|
105
110
|
get notifications() {
|
|
106
111
|
var _a;
|
|
107
|
-
return ((_a = this._notifications) !== null && _a !== void 0 ? _a : (this._notifications = new
|
|
112
|
+
return ((_a = this._notifications) !== null && _a !== void 0 ? _a : (this._notifications = new Client_js_11.Notifications(this._options)));
|
|
108
113
|
}
|
|
109
114
|
get operations() {
|
|
110
115
|
var _a;
|
|
111
|
-
return ((_a = this._operations) !== null && _a !== void 0 ? _a : (this._operations = new
|
|
116
|
+
return ((_a = this._operations) !== null && _a !== void 0 ? _a : (this._operations = new Client_js_12.Operations(this._options)));
|
|
112
117
|
}
|
|
113
118
|
get shipping() {
|
|
114
119
|
var _a;
|
|
115
|
-
return ((_a = this._shipping) !== null && _a !== void 0 ? _a : (this._shipping = new
|
|
120
|
+
return ((_a = this._shipping) !== null && _a !== void 0 ? _a : (this._shipping = new Client_js_13.Shipping(this._options)));
|
|
116
121
|
}
|
|
117
122
|
get shippingIntegrations() {
|
|
118
123
|
var _a;
|
|
119
|
-
return ((_a = this._shippingIntegrations) !== null && _a !== void 0 ? _a : (this._shippingIntegrations = new
|
|
124
|
+
return ((_a = this._shippingIntegrations) !== null && _a !== void 0 ? _a : (this._shippingIntegrations = new Client_js_14.ShippingIntegrations(this._options)));
|
|
120
125
|
}
|
|
121
126
|
get tracking() {
|
|
122
127
|
var _a;
|
|
123
|
-
return ((_a = this._tracking) !== null && _a !== void 0 ? _a : (this._tracking = new
|
|
128
|
+
return ((_a = this._tracking) !== null && _a !== void 0 ? _a : (this._tracking = new Client_js_15.Tracking(this._options)));
|
|
124
129
|
}
|
|
125
130
|
get trackingIntegrations() {
|
|
126
131
|
var _a;
|
|
127
|
-
return ((_a = this._trackingIntegrations) !== null && _a !== void 0 ? _a : (this._trackingIntegrations = new
|
|
132
|
+
return ((_a = this._trackingIntegrations) !== null && _a !== void 0 ? _a : (this._trackingIntegrations = new Client_js_16.TrackingIntegrations(this._options)));
|
|
128
133
|
}
|
|
129
134
|
get users() {
|
|
130
135
|
var _a;
|
|
131
|
-
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new
|
|
136
|
+
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_js_17.Users(this._options)));
|
|
132
137
|
}
|
|
133
138
|
}
|
|
134
139
|
exports.ChrtClient = ChrtClient;
|
|
@@ -0,0 +1,23 @@
|
|
|
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 { Cargoai } from "../resources/cargoai/client/Client.js";
|
|
7
|
+
export declare namespace CargoOnFlightIntegrations {
|
|
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
|
+
}
|
|
18
|
+
export declare class CargoOnFlightIntegrations {
|
|
19
|
+
protected readonly _options: CargoOnFlightIntegrations.Options;
|
|
20
|
+
protected _cargoai: Cargoai | undefined;
|
|
21
|
+
constructor(_options?: CargoOnFlightIntegrations.Options);
|
|
22
|
+
get cargoai(): Cargoai;
|
|
23
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.CargoOnFlightIntegrations = void 0;
|
|
7
|
+
const Client_js_1 = require("../resources/cargoai/client/Client.js");
|
|
8
|
+
class CargoOnFlightIntegrations {
|
|
9
|
+
constructor(_options = {}) {
|
|
10
|
+
this._options = _options;
|
|
11
|
+
}
|
|
12
|
+
get cargoai() {
|
|
13
|
+
var _a;
|
|
14
|
+
return ((_a = this._cargoai) !== null && _a !== void 0 ? _a : (this._cargoai = new Client_js_1.Cargoai(this._options)));
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.CargoOnFlightIntegrations = CargoOnFlightIntegrations;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client/index.js"), exports);
|
|
18
|
+
__exportStar(require("./resources/index.js"), exports);
|
|
@@ -0,0 +1,114 @@
|
|
|
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 Cargoai {
|
|
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 Cargoai {
|
|
31
|
+
protected readonly _options: Cargoai.Options;
|
|
32
|
+
constructor(_options?: Cargoai.Options);
|
|
33
|
+
/**
|
|
34
|
+
* Books a draft booking on CargoAi with one result and rate of one of its searches, with the user's AWB or one from the airline's stock. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightIntegrationsCargoAiBookReq) -> (CargoOnFlightBooking1)
|
|
35
|
+
*
|
|
36
|
+
* @param {string} cargoOnFlightBookingId
|
|
37
|
+
* @param {Chrt.cargoOnFlightIntegrations.CargoOnFlightIntegrationsCargoAiBookReq} request
|
|
38
|
+
* @param {Cargoai.RequestOptions} requestOptions - Request-specific configuration.
|
|
39
|
+
*
|
|
40
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* await client.cargoOnFlightIntegrations.cargoai.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.CargoOnFlightIntegrationsCargoAiBookReq, requestOptions?: Cargoai.RequestOptions): core.HttpResponsePromise<Chrt.CargoOnFlightBooking1>;
|
|
50
|
+
private __bookV1;
|
|
51
|
+
/**
|
|
52
|
+
* Asks CargoAi to cancel a confirmed booking; it is CANCELLATION_REQUESTED until the airline answers. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightIntegrationsCargoAiCancelReq) -> (CargoOnFlightBooking1)
|
|
53
|
+
*
|
|
54
|
+
* @param {string} cargoOnFlightBookingId
|
|
55
|
+
* @param {Chrt.cargoOnFlightIntegrations.CargoOnFlightIntegrationsCargoAiCancelReq} request
|
|
56
|
+
* @param {Cargoai.RequestOptions} requestOptions - Request-specific configuration.
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* await client.cargoOnFlightIntegrations.cargoai.cancelV1("cargo_on_flight_booking_id", {
|
|
62
|
+
* cancellation_reason: "cancellation_reason"
|
|
63
|
+
* })
|
|
64
|
+
*/
|
|
65
|
+
cancelV1(cargoOnFlightBookingId: string, request: Chrt.cargoOnFlightIntegrations.CargoOnFlightIntegrationsCargoAiCancelReq, requestOptions?: Cargoai.RequestOptions): core.HttpResponsePromise<Chrt.CargoOnFlightBooking1>;
|
|
66
|
+
private __cancelV1;
|
|
67
|
+
/**
|
|
68
|
+
* Asks CargoAi for an active booking's current status and AWB and applies them, e.g. when its book answer was lost. | authz_personas=[task_group_coordinator_operators] | () -> (CargoOnFlightBooking1)
|
|
69
|
+
*
|
|
70
|
+
* @param {string} cargoOnFlightBookingId
|
|
71
|
+
* @param {Cargoai.RequestOptions} requestOptions - Request-specific configuration.
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* await client.cargoOnFlightIntegrations.cargoai.refreshV1("cargo_on_flight_booking_id")
|
|
77
|
+
*/
|
|
78
|
+
refreshV1(cargoOnFlightBookingId: string, requestOptions?: Cargoai.RequestOptions): core.HttpResponsePromise<Chrt.CargoOnFlightBooking1>;
|
|
79
|
+
private __refreshV1;
|
|
80
|
+
/**
|
|
81
|
+
* Collects the remaining CargoAi results of an unfinished search and stores them; a completed search is returned as is. | authz_personas=[task_group_coordinator_operators] | () -> (CargoOnFlightBookingSearch1)
|
|
82
|
+
*
|
|
83
|
+
* @param {string} cargoOnFlightBookingSearchId
|
|
84
|
+
* @param {Cargoai.RequestOptions} requestOptions - Request-specific configuration.
|
|
85
|
+
*
|
|
86
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
87
|
+
*
|
|
88
|
+
* @example
|
|
89
|
+
* await client.cargoOnFlightIntegrations.cargoai.searchContinueV1("cargo_on_flight_booking_search_id")
|
|
90
|
+
*/
|
|
91
|
+
searchContinueV1(cargoOnFlightBookingSearchId: string, requestOptions?: Cargoai.RequestOptions): core.HttpResponsePromise<Chrt.CargoOnFlightBookingSearch1>;
|
|
92
|
+
private __searchContinueV1;
|
|
93
|
+
/**
|
|
94
|
+
* 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)
|
|
95
|
+
*
|
|
96
|
+
* @param {string} cargoOnFlightBookingId
|
|
97
|
+
* @param {Chrt.cargoOnFlightIntegrations.CargoOnFlightBookingSearchClientCreate1} request
|
|
98
|
+
* @param {Cargoai.RequestOptions} requestOptions - Request-specific configuration.
|
|
99
|
+
*
|
|
100
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
101
|
+
*
|
|
102
|
+
* @example
|
|
103
|
+
* await client.cargoOnFlightIntegrations.cargoai.searchV1("cargo_on_flight_booking_id", {
|
|
104
|
+
* destination_iata: "destination_iata",
|
|
105
|
+
* earliest_departure_date: "earliest_departure_date",
|
|
106
|
+
* iata_cass_office_id: "iata_cass_office_id",
|
|
107
|
+
* origin_iata: "origin_iata",
|
|
108
|
+
* schema_version: 1
|
|
109
|
+
* })
|
|
110
|
+
*/
|
|
111
|
+
searchV1(cargoOnFlightBookingId: string, request: Chrt.cargoOnFlightIntegrations.CargoOnFlightBookingSearchClientCreate1, requestOptions?: Cargoai.RequestOptions): core.HttpResponsePromise<Chrt.CargoOnFlightBookingSearch1>;
|
|
112
|
+
private __searchV1;
|
|
113
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
114
|
+
}
|