Skip to content
This repository has been archived by the owner on Oct 6, 2020. It is now read-only.

Implement Flexport API upstream changes #17

Merged
merged 1 commit into from
Jun 18, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 12 additions & 0 deletions api-docs/v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7001,6 +7001,18 @@ components:
id:
type: integer
example: 123
Coordinates:
type: object
properties:
_object:
type: string
example: /coordinates
latitude:
type: string
example: '76.003'
longitude:
type: string
example: '-122.092'
CreateAirBooking:
type: object
required:
Expand Down
25 changes: 25 additions & 0 deletions src/generated/Coordinates.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/**
* Auto-generated file. Do not change.
*/
import { Type } from './Type'
import { TypedApiObject } from '../types/TypedApiObject'
export type Coordinates = {
readonly _object: Type.Coordinates
/**
* JSON-schema: string
* @example "76.003"
*/
readonly latitude?: string
/**
* JSON-schema: string
* @example "-122.092"
*/
readonly longitude?: string
}
export type LiftedCoordinates = TypedApiObject & Coordinates
/**
* Lifts an object return from a Flexport API responses into the SDK domain by augmenting them with higher level properties.
*/
export const liftCoordinates = (original: Coordinates): LiftedCoordinates => {
return original
}
1 change: 1 addition & 0 deletions src/generated/Type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export enum Type {
ContainerCounts = '/container_counts',
ContainerLegCollectionRef = '/api/refs/collection',
ContainerRef = '/api/refs/object',
Coordinates = '/coordinates',
CreateBookingHsCode = '/bookings/product_descriptions',
CreateCommercialInvoiceLineItem = '/commercial_invoice_line_item/create',
CreditMemo = '/credit_memo',
Expand Down
1 change: 1 addition & 0 deletions src/generated/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export * from './ContainerCollectionRef'
export * from './ContainerCounts'
export * from './ContainerLegCollectionRef'
export * from './ContainerRef'
export * from './Coordinates'
export * from './CreateAirBooking'
export * from './CreateBooking'
export * from './CreateBookingAmendment'
Expand Down