@duffel/api 1.7.7 → 1.8.1
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/DuffelPayments/PaymentIntents/PaymentIntents.spec.d.ts +1 -0
- package/dist/booking/OfferRequests/OfferRequests.d.ts +2 -1
- package/dist/booking/OfferRequests/OfferRequests.spec.d.ts +1 -0
- package/dist/booking/Offers/Offers.d.ts +2 -1
- package/dist/booking/Offers/Offers.spec.d.ts +1 -0
- package/dist/booking/OrderCancellations/OrderCancellations.d.ts +13 -1
- package/dist/booking/OrderCancellations/OrderCancellations.spec.d.ts +1 -0
- package/dist/booking/OrderCancellations/OrderCancellationsTypes.d.ts +7 -0
- package/dist/booking/OrderChangeOffers/OrderChangeOffers.spec.d.ts +1 -0
- package/dist/booking/OrderChangeRequests/OrderRequestChanges.spec.d.ts +1 -0
- package/dist/booking/OrderChanges/OrderChanges.spec.d.ts +1 -0
- package/dist/booking/Orders/Orders.spec.d.ts +1 -0
- package/dist/booking/Payments/Payments.spec.d.ts +1 -0
- package/dist/booking/SeatMaps/SeatMaps.spec.d.ts +1 -0
- package/dist/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/supportingResources/Aircraft/Aircraft.spec.d.ts +1 -0
- package/dist/supportingResources/Airlines/Airlines.spec.d.ts +1 -0
- package/dist/supportingResources/Airports/Airports.spec.d.ts +1 -0
- package/dist/types/index.d.ts +21 -3
- package/package.json +4 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -549,6 +549,12 @@ interface CreateOrderCancellation {
|
|
|
549
549
|
*/
|
|
550
550
|
order_id: string;
|
|
551
551
|
}
|
|
552
|
+
interface ListOrderCancellationsParams extends PaginationMeta {
|
|
553
|
+
/**
|
|
554
|
+
* Duffel's unique identifier for the order, returned when it was created
|
|
555
|
+
*/
|
|
556
|
+
order_id?: string;
|
|
557
|
+
}
|
|
552
558
|
interface OrderCancellation {
|
|
553
559
|
/**
|
|
554
560
|
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime that indicates when the order cancellation was confirmed
|
|
@@ -2185,7 +2191,7 @@ declare class OfferRequests extends Resource {
|
|
|
2185
2191
|
* Endpoint path
|
|
2186
2192
|
*/
|
|
2187
2193
|
path: string;
|
|
2188
|
-
constructor(client:
|
|
2194
|
+
constructor(client: Client);
|
|
2189
2195
|
/**
|
|
2190
2196
|
* Retrieves an offer request by its ID
|
|
2191
2197
|
* @param {string} id - Duffel's unique identifier for the offer request
|
|
@@ -2232,7 +2238,7 @@ declare class Offers extends Resource {
|
|
|
2232
2238
|
* Endpoint path
|
|
2233
2239
|
*/
|
|
2234
2240
|
path: string;
|
|
2235
|
-
constructor(client:
|
|
2241
|
+
constructor(client: Client);
|
|
2236
2242
|
/**
|
|
2237
2243
|
* Retrieves an offer by its ID
|
|
2238
2244
|
* @param {string} id - Duffel's unique identifier for the offer
|
|
@@ -2279,6 +2285,18 @@ declare class OrderCancellations extends Resource {
|
|
|
2279
2285
|
* @link https:/duffel.com/docs/api/order-cancellations/get-order-cancellation-by-id
|
|
2280
2286
|
*/
|
|
2281
2287
|
get: (id: string) => Promise<DuffelResponse<OrderCancellation>>;
|
|
2288
|
+
/**
|
|
2289
|
+
* Retrieves a page of order cancellations. The results may be returned in any order.
|
|
2290
|
+
* @param {Object.<ListOrderCancellationsParams>} params - Endpoint options (optional: limit, after, before, order_id)
|
|
2291
|
+
* @link https://duffel.com/docs/api/order-cancellations/get-order-cancellations
|
|
2292
|
+
*/
|
|
2293
|
+
list: (params?: ListOrderCancellationsParams | undefined) => Promise<DuffelResponse<OrderCancellation[]>>;
|
|
2294
|
+
/**
|
|
2295
|
+
* Retrieves a generator of all order cancellations. The results may be returned in any order.
|
|
2296
|
+
* @param {Object.<ListOrderCancellationsParams>} params - Endpoint options (optional: limit, after, before, order_id)
|
|
2297
|
+
* @link https://duffel.com/docs/api/order-cancellations/get-order-cancellations
|
|
2298
|
+
*/
|
|
2299
|
+
listWithGenerator: (params?: ListOrderCancellationsParams | undefined) => AsyncGenerator<DuffelResponse<OrderCancellation>, void, unknown>;
|
|
2282
2300
|
/**
|
|
2283
2301
|
* Create order cancellation
|
|
2284
2302
|
* @description To begin the process of cancelling an order you need to create an order cancellation.
|
|
@@ -2571,4 +2589,4 @@ declare class Duffel {
|
|
|
2571
2589
|
constructor(config: Config);
|
|
2572
2590
|
}
|
|
2573
2591
|
|
|
2574
|
-
export { Aircraft$1 as Aircraft, Airline, Airport, ApiResponseError, ApiResponseMeta, BaggageType, CabinClass, City, ConfirmOrderChangePayment, CreateOfferRequest, CreateOfferRequestQueryParameters, CreateOrder, CreateOrderCancellation, CreateOrderChangeParameters, CreateOrderChangeRequest, CreateOrderPassenger, CreatePayment, CreatePaymentIntent, Duffel, DuffelAPIClient, DuffelError, DuffelPassengerGender, DuffelPassengerTitle, DuffelPassengerType, DuffelResponse, FlightsConditions, ListOffersParams, ListParamsOrders, LoyaltyProgrammeAccount, LoyaltyProgrammeAccounts, Offer, OfferAvailableService, OfferAvailableServiceBaggageMetadata, OfferAvailableServiceMetadataMap, OfferAvailableServiceType, OfferPassenger, OfferRequest, OfferRequestPassenger, OfferRequestSlice, OfferSlice, OfferSliceSegment, OfferSliceSegmentPassenger, OfferSliceSegmentPassengerBaggage, Order, OrderCancellation, OrderChange, OrderChangeOffer, OrderChangeOfferSlice, OrderChangeOfferSlices, OrderChangeOffers$1 as OrderChangeOffers, OrderChangeRequestResponse, OrderChangeSliceResponse, OrderDocument, OrderDocumentsType, OrderPassenger, OrderPassengerIdentityDocument, OrderPayment, OrderPaymentStatus, OrderSegmentPassenger, OrderSegmentPassengerBaggage, OrderService, OrderServiceBaggageMetadata, OrderSlice, OrderSliceSegment, PaginationMeta, PassengerIdentityDocumentType, Payment, PaymentIntent, PaymentRequirements, PaymentType, Place, PlaceType, SDKOptions, Seat, SeatMap, SeatMapCabin, SeatMapCabinRow, SeatMapCabinRowSection, SeatMapCabinRowSectionAvailableService, SeatMapCabinRowSectionElement, SeatMapCabinRowSectionElementAmenity, SeatMapCabinRowSectionElementBassinet, SeatMapCabinRowSectionElementCloset, SeatMapCabinRowSectionElementEmpty, SeatMapCabinRowSectionElementExitRow, SeatMapCabinRowSectionElementGalley, SeatMapCabinRowSectionElementLavatory, SeatMapCabinRowSectionElementSeat, SeatMapCabinRowSectionElementStairs, SeatMapCabinRowSectionElementType, UpdateOffer, UpdateSingleOrder };
|
|
2592
|
+
export { Aircraft$1 as Aircraft, Airline, Airport, ApiResponseError, ApiResponseMeta, BaggageType, CabinClass, City, ConfirmOrderChangePayment, CreateOfferRequest, CreateOfferRequestQueryParameters, CreateOrder, CreateOrderCancellation, CreateOrderChangeParameters, CreateOrderChangeRequest, CreateOrderPassenger, CreatePayment, CreatePaymentIntent, Duffel, DuffelAPIClient, DuffelError, DuffelPassengerGender, DuffelPassengerTitle, DuffelPassengerType, DuffelResponse, FlightsConditions, ListOffersParams, ListOrderCancellationsParams, ListParamsOrders, LoyaltyProgrammeAccount, LoyaltyProgrammeAccounts, Offer, OfferAvailableService, OfferAvailableServiceBaggageMetadata, OfferAvailableServiceMetadataMap, OfferAvailableServiceType, OfferPassenger, OfferRequest, OfferRequestPassenger, OfferRequestSlice, OfferSlice, OfferSliceSegment, OfferSliceSegmentPassenger, OfferSliceSegmentPassengerBaggage, Order, OrderCancellation, OrderChange, OrderChangeOffer, OrderChangeOfferSlice, OrderChangeOfferSlices, OrderChangeOffers$1 as OrderChangeOffers, OrderChangeRequestResponse, OrderChangeSliceResponse, OrderDocument, OrderDocumentsType, OrderPassenger, OrderPassengerIdentityDocument, OrderPayment, OrderPaymentStatus, OrderSegmentPassenger, OrderSegmentPassengerBaggage, OrderService, OrderServiceBaggageMetadata, OrderSlice, OrderSliceSegment, PaginationMeta, PassengerIdentityDocumentType, Payment, PaymentIntent, PaymentRequirements, PaymentType, Place, PlaceType, SDKOptions, Seat, SeatMap, SeatMapCabin, SeatMapCabinRow, SeatMapCabinRowSection, SeatMapCabinRowSectionAvailableService, SeatMapCabinRowSectionElement, SeatMapCabinRowSectionElementAmenity, SeatMapCabinRowSectionElementBassinet, SeatMapCabinRowSectionElementCloset, SeatMapCabinRowSectionElementEmpty, SeatMapCabinRowSectionElementExitRow, SeatMapCabinRowSectionElementGalley, SeatMapCabinRowSectionElementLavatory, SeatMapCabinRowSectionElementSeat, SeatMapCabinRowSectionElementStairs, SeatMapCabinRowSectionElementType, UpdateOffer, UpdateSingleOrder };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duffel/api",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.1",
|
|
4
4
|
"description": "Javascript client library for the Duffel API",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.es.js",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
]
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@types/node": "^17.0.
|
|
51
|
-
"node-fetch": "^3.2.
|
|
50
|
+
"@types/node": "^17.0.21",
|
|
51
|
+
"node-fetch": "^3.2.3"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@babel/core": "^7.15.5",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@typescript-eslint/parser": "^4.26.1",
|
|
66
66
|
"colors": "^1.4.0",
|
|
67
67
|
"commitizen": "^4.2.4",
|
|
68
|
-
"dotenv": "^
|
|
68
|
+
"dotenv": "^16.0.0",
|
|
69
69
|
"eslint": "^7.26.0",
|
|
70
70
|
"eslint-config-prettier": "^8.3.0",
|
|
71
71
|
"eslint-plugin-spellcheck": "^0.0.19",
|