-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add missing types #968
Add missing types #968
Conversation
791398c
to
c83324d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added links to some docs for the changes.
@@ -11,6 +11,13 @@ export type AirlineInitiatedChangeAvailableAction = | |||
| 'change' | |||
| 'update' | |||
|
|||
export interface TravelAgentTicket { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -66,7 +73,7 @@ export interface AirlineInitiatedChange { | |||
* Change. This value will be present for Airline-Initiated changes that take | |||
* some time to be processed. | |||
*/ | |||
travel_agent_ticket: any | null | |||
travel_agent_ticket: TravelAgentTicket | EmptyObject | null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The "EmptyObject" is copied from dashboard...
cabin: OfferSliceSegmentPassengerCabin | null | ||
} | ||
|
||
export interface OfferSliceSegmentPassengerCabin { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -14,6 +14,43 @@ export interface ListOrderCancellationsParams extends PaginationMeta { | |||
order_id?: string | |||
} | |||
|
|||
export interface OrderCancellationAirlineCredit { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -4,7 +4,7 @@ export interface OrderChange { | |||
/** | |||
* The price of this offer as a change to your existing order, excluding taxes | |||
*/ | |||
change_total_amount: string | null | |||
change_total_amount: string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Note that this data may differ from the airline's records if it was updated directly with the airline since the order was created. | ||
* @xample "[email protected]" | ||
*/ | ||
email: string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/** | ||
* The ISO 8601 datetime at which the Order was paid for, if at all | ||
*/ | ||
paid_at: string | null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
stops: Array<Stop> | ||
} | ||
|
||
export interface Stop { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* The list of passenger ids the document applies to | ||
* @example ["pas_00009hj8USM7Ncg31cBCLL"] | ||
*/ | ||
passenger_ids: string[] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* | ||
* @example "2020-04-11T15:48:11Z" | ||
*/ | ||
synced_at: string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for all the guiding comments to the docs, very helpful to quickly validate the change (and possibly for archeology in the future!)
@@ -450,7 +451,7 @@ export interface OfferSlice { | |||
* - `"4"`: premium seating, additional legroom and recline. Situated in business class or higher. | |||
* - `"5"`: deluxe seating, additional legroom and reclines to lie flat position. Situated in business class or higher. | |||
*/ | |||
ngs_shelf: number | |||
ngs_shelf: number | null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -151,17 +165,17 @@ export type OfferSliceConditions = FlightsConditions & { | |||
/** | |||
* Whether passengers are able to select a seat prior to check in. | |||
*/ | |||
advance_seat_selection: boolean | |||
advance_seat_selection: boolean | null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
e4672f4
to
6707f61
Compare
aa74ee5
to
eb939c2
Compare
Update src/types/shared.ts Co-authored-by: Igor <[email protected]> Update src/types/shared.ts Co-authored-by: Igor <[email protected]>
eb939c2
to
72ce238
Compare
|
||
/** | ||
* Whether passengers are given access to a fast track lane during check in. | ||
*/ | ||
priority_check_in: boolean | ||
priority_check_in: boolean | null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
/** | ||
* Whether passengers are given preferential boarding over others passengers in their cabin. | ||
*/ | ||
priority_boarding: boolean | ||
priority_boarding: boolean | null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -597,7 +599,10 @@ export const mockOnHoldOrders: Order[] = [ | |||
iata_code: 'MIA', | |||
}, | |||
}, | |||
conditions: { change_before_departure: null }, | |||
conditions: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what
We started using the types from our client library in our dashboard and in doing so identified a few things we can improve and other bits that need fixing. This addresses the gaps we found.
Please see the comments for links to documentation to compare with.