@duffel/api 2.15.0 → 3.1.0
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/Stays/Bookings/Bookings.d.ts +2 -0
- package/dist/booking/Identity/ComponentClientKey/ComponentClientKeys.d.ts +18 -0
- package/dist/booking/Identity/ComponentClientKey/ComponentClientKeys.spec.d.ts +1 -0
- package/dist/booking/Identity/ComponentClientKey/types.d.ts +6 -0
- package/dist/typings.d.ts +2 -0
- package/package.json +2 -2
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Resource } from '../../../Resource';
|
|
2
|
+
import { type DuffelResponse } from '../../../types/ClientType';
|
|
3
|
+
import { type ComponentClientKey } from './types';
|
|
4
|
+
/**
|
|
5
|
+
* A component client key is a unique identifier that allows you to authenticate with the Duffel API.
|
|
6
|
+
*/
|
|
7
|
+
export declare class ComponentClientKeys extends Resource {
|
|
8
|
+
/**
|
|
9
|
+
* Endpoint path
|
|
10
|
+
*/
|
|
11
|
+
path: string;
|
|
12
|
+
constructor(args: any);
|
|
13
|
+
/**
|
|
14
|
+
* A component client key is a unique identifier that allows you to authenticate with the Duffel API.
|
|
15
|
+
* @param data A JSON object containing the data to create a new component client key
|
|
16
|
+
*/
|
|
17
|
+
create: (data?: Record<string, string>) => Promise<DuffelResponse<ComponentClientKey>>;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/typings.d.ts
CHANGED
|
@@ -4653,6 +4653,8 @@ declare module '@duffel/api/Stays/Bookings/Bookings' {
|
|
|
4653
4653
|
accommodation_special_requests?: string;
|
|
4654
4654
|
payment?: {
|
|
4655
4655
|
card_id: string;
|
|
4656
|
+
} | {
|
|
4657
|
+
three_d_secure_session_id: string;
|
|
4656
4658
|
};
|
|
4657
4659
|
}
|
|
4658
4660
|
export class Bookings extends Resource {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duffel/api",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "Javascript client library for the Duffel API",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.es.js",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"lint-staged": "14.0.1",
|
|
87
87
|
"nock": "13.3.4",
|
|
88
88
|
"prettier": "3.0.3",
|
|
89
|
-
"rollup": "4.
|
|
89
|
+
"rollup": "4.22.4",
|
|
90
90
|
"rollup-plugin-dts-bundle": "^1.0.0",
|
|
91
91
|
"rollup-plugin-inject-process-env": "1.3.1",
|
|
92
92
|
"rollup-plugin-peer-deps-external": "2.2.4",
|