@duffel/api 1.7.8 → 1.8.2
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/booking/OrderCancellations/OrderCancellations.d.ts +13 -1
- package/dist/booking/OrderCancellations/OrderCancellationsTypes.d.ts +7 -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/types/index.d.ts +19 -1
- package/package.json +6 -5
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
|
|
@@ -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.2",
|
|
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,9 @@
|
|
|
47
47
|
]
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@types/node": "^17.0.
|
|
51
|
-
"node-fetch": "^
|
|
50
|
+
"@types/node": "^17.0.21",
|
|
51
|
+
"@types/node-fetch": "^2.6.1",
|
|
52
|
+
"node-fetch": "2.6.7"
|
|
52
53
|
},
|
|
53
54
|
"devDependencies": {
|
|
54
55
|
"@babel/core": "^7.15.5",
|
|
@@ -65,12 +66,12 @@
|
|
|
65
66
|
"@typescript-eslint/parser": "^4.26.1",
|
|
66
67
|
"colors": "^1.4.0",
|
|
67
68
|
"commitizen": "^4.2.4",
|
|
68
|
-
"dotenv": "^
|
|
69
|
+
"dotenv": "^16.0.0",
|
|
69
70
|
"eslint": "^7.26.0",
|
|
70
71
|
"eslint-config-prettier": "^8.3.0",
|
|
71
72
|
"eslint-plugin-spellcheck": "^0.0.19",
|
|
72
73
|
"husky": "^7.0.0",
|
|
73
|
-
"jest": "^27.
|
|
74
|
+
"jest": "^27.5.1",
|
|
74
75
|
"lint-staged": "^12.0.1",
|
|
75
76
|
"nock": "^13.1.0",
|
|
76
77
|
"prettier": "^2.4.1",
|