@duffel/api 4.27.1 → 4.29.0-canary.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/typings.d.ts CHANGED
@@ -585,6 +585,12 @@ declare module '@duffel/api/Stays/StaysTypes' {
585
585
  * Example: "Best Available Rate"
586
586
  */
587
587
  name: string | null;
588
+ /**
589
+ * The ID of the negotiated rate (e.g. `nre_…`) that this rate was matched to,
590
+ * when the rate is returned as a result of a negotiated rate passed in the search.
591
+ * Returned when possible at fetch rates, quote and booking.
592
+ */
593
+ negotiated_rate_id?: string | null;
588
594
  }
589
595
  export interface StaysRoomRate extends StaysRate {
590
596
  /**
@@ -981,6 +987,12 @@ declare module '@duffel/api/Stays/StaysTypes' {
981
987
  * when `null` or omitted, all rates. See Duffel Stays search API schema.
982
988
  */
983
989
  instant_payment?: boolean | null;
990
+ /**
991
+ * A list of negotiated rate IDs (e.g. `nre_…`) to apply to this search.
992
+ * Any eligible negotiated rates are returned alongside the standard public rates.
993
+ * Matching is best-effort: a supported negotiated rate is not guaranteed to be available.
994
+ */
995
+ negotiated_rate_ids?: string[];
984
996
  }
985
997
  export type LocationParams = {
986
998
  radius: number;
@@ -1020,6 +1032,16 @@ declare module '@duffel/api/Stays/StaysTypes' {
1020
1032
  cheapest_rate_public_currency: string;
1021
1033
  cheapest_rate_due_at_accommodation_amount: string | null;
1022
1034
  cheapest_rate_due_at_accommodation_currency: string | null;
1035
+ /**
1036
+ * The negotiated rates that were searched for and are supported by this result.
1037
+ * A supported negotiated rate does not guarantee that a negotiated rate is available.
1038
+ */
1039
+ supported_negotiated_rates?: Array<{
1040
+ /** The ID of the negotiated rate (e.g. `nre_…`). */
1041
+ id: string;
1042
+ /** The display name of the negotiated rate. */
1043
+ display_name: string;
1044
+ }>;
1023
1045
  /**
1024
1046
  * The ISO 8601 date and time at which the search result will expire
1025
1047
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duffel/api",
3
- "version": "4.27.1",
3
+ "version": "4.29.0-canary.0",
4
4
  "description": "Javascript client library for the Duffel API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
@@ -59,7 +59,7 @@
59
59
  "node-fetch": "2.7.0"
60
60
  },
61
61
  "devDependencies": {
62
- "@babel/core": "8.0.0",
62
+ "@babel/core": "8.0.1",
63
63
  "@babel/preset-env": "7.29.7",
64
64
  "@babel/preset-typescript": "7.29.7",
65
65
  "@commitlint/cli": "17.8.1",