Skip to content

Missing Export for ComponentClientKeys.ts in src/booking/index.ts #998

Closed
@Mohit-Netzoptimize

Description

@Mohit-Netzoptimize

The ComponentClientKeys.ts file is not being exported in src/booking/index.ts, which prevents accessing duffel.componentClientKeys.create(). This is causing issues when trying to use the functionality provided by ComponentClientKeys.

Currently, the src/booking/index.ts file exports the following:

export * from './AirlineInitiatedChanges';
export * from './OfferRequests';
export * from './Offers';
export * from './OrderCancellations';
export * from './Orders';
export * from './OrderChangeRequests';
export * from './OrderChangeOffers';
export * from './OrderChanges';
export * from './Payments';
export * from './PartialOfferRequests';
export * from './SeatMaps';

However, ComponentClientKeys.ts is located in src/booking/Identity/ComponentClientKey and is not included in the exports. Additionally, there is no index.ts file in the src/booking/Identity/ folder that exports ComponentClientKeys.ts.

Steps to Reproduce
Try to access duffel.componentClientKeys.create() in the current implementation.
Observe that it is inaccessible due to the missing export.

Expected Behavior
duffel.componentClientKeys.create() should be accessible after exporting ComponentClientKeys.ts in src/booking/index.ts or adding an index.ts in the src/booking/Identity/ folder to re-export ComponentClientKeys.ts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions