@qite/tide-client 1.1.11 → 1.1.14

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.
@@ -2,5 +2,5 @@ import { EntryStatus } from "../enums";
2
2
  export interface AgentPrintAction {
3
3
  id: number;
4
4
  label: string;
5
- validEntryStatuses: typeof EntryStatus[];
5
+ validEntryStatuses: EntryStatus[];
6
6
  }
@@ -1,8 +1,8 @@
1
- export declare const EntryStatus: {
2
- new: number;
3
- offer: number;
4
- option: number;
5
- booking: number;
6
- cancellationByClient: number;
7
- cancellationByYou: number;
8
- };
1
+ export declare enum EntryStatus {
2
+ new = -1,
3
+ offer = 0,
4
+ option = 1,
5
+ booking = 2,
6
+ cancellationByClient = 3,
7
+ cancellationByYou = 4,
8
+ }
@@ -0,0 +1,5 @@
1
+ export interface BookingPackageTag {
2
+ id: string;
3
+ title: string;
4
+ description: string;
5
+ }
@@ -1,9 +1,11 @@
1
1
  import { BookingPackageFlight } from "./booking-package-flight";
2
2
  import { BookingPackageOption } from "./booking-package-option";
3
+ import { BookingPackageTag } from "./booking-package-tag";
3
4
  export interface BookingPackage {
4
5
  outwardFlights: BookingPackageFlight[];
5
6
  returnFlights: BookingPackageFlight[];
6
7
  options: BookingPackageOption[];
8
+ tags: BookingPackageTag[];
7
9
  transactionId: string;
8
10
  transactionExpiration: string;
9
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qite/tide-client",
3
- "version": "1.1.11",
3
+ "version": "1.1.14",
4
4
  "description": "Frontend client for Tide",
5
5
  "main": "build/index.js",
6
6
  "scripts": {
@@ -3,5 +3,5 @@ import { EntryStatus } from "../enums";
3
3
  export interface AgentPrintAction {
4
4
  id: number;
5
5
  label: string;
6
- validEntryStatuses: typeof EntryStatus[];
6
+ validEntryStatuses: EntryStatus[];
7
7
  }
@@ -1,8 +1,8 @@
1
- export const EntryStatus = {
2
- new: -1,
3
- offer: 0,
4
- option: 1,
5
- booking: 2,
6
- cancellationByClient: 3,
7
- cancellationByYou: 4,
8
- };
1
+ export enum EntryStatus {
2
+ new = -1,
3
+ offer = 0,
4
+ option = 1,
5
+ booking = 2,
6
+ cancellationByClient = 3,
7
+ cancellationByYou = 4,
8
+ }
@@ -0,0 +1,5 @@
1
+ export interface BookingPackageTag {
2
+ id: string;
3
+ title: string;
4
+ description: string;
5
+ }
@@ -1,10 +1,12 @@
1
1
  import { BookingPackageFlight } from "./booking-package-flight";
2
2
  import { BookingPackageOption } from "./booking-package-option";
3
+ import { BookingPackageTag } from "./booking-package-tag";
3
4
 
4
5
  export interface BookingPackage {
5
6
  outwardFlights: BookingPackageFlight[];
6
7
  returnFlights: BookingPackageFlight[];
7
8
  options: BookingPackageOption[];
9
+ tags: BookingPackageTag[];
8
10
 
9
11
  transactionId: string;
10
12
  transactionExpiration: string;
package/src/utils/api.ts CHANGED
@@ -32,6 +32,7 @@ export const get = async (
32
32
  headers: {
33
33
  "Api-Key": apiKey,
34
34
  },
35
+ credentials: "include",
35
36
  signal,
36
37
  });
37
38