@qite/tide-client 1.1.183 → 1.1.184

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.
@@ -15,7 +15,6 @@ export * from "./form-type";
15
15
  export * from "./gender";
16
16
  export * from "./meta-data-item-property-type";
17
17
  export * from "./meta-data-type";
18
- export * from "./note-type";
19
18
  export * from "./payment-type";
20
19
  export * from "./portal-qsm-type";
21
20
  export * from "./price-chart-type";
@@ -41,6 +41,3 @@ export * from "./person-tour-group-preference";
41
41
  export * from "./product-notification-result";
42
42
  export * from "./web-contact-form-request";
43
43
  export * from "./web-contact-has-tag-request";
44
- export * from "./address-item";
45
- export * from "./geographical-region";
46
- export * from "./publishing";
@@ -0,0 +1,5 @@
1
+ export interface AgentDossierBookFeedback {
2
+ message: string;
3
+ originalAmount?: number;
4
+ newAmount?: number;
5
+ }
@@ -1,4 +1,3 @@
1
- import { MetaDataItem } from "../offer";
2
1
  import { TicketNumber } from "../shared/ticket-number";
3
2
  export interface AgentDossierFlightMetaDataLine {
4
3
  airlineCode: string;
@@ -9,10 +8,7 @@ export interface AgentDossierFlightMetaDataLine {
9
8
  number: string;
10
9
  departureAirport: string;
11
10
  arrivalAirport: string;
12
- arrivalDate: Date;
13
- arrivalTime: string;
14
11
  travelClass: string;
15
12
  durationInTicks?: number;
16
13
  ticketNumbers: TicketNumber[];
17
- luggageChecked?: MetaDataItem;
18
14
  }
@@ -14,4 +14,5 @@ export interface AgentDossierItem {
14
14
  agentAllotmentStartDate: Date | null;
15
15
  paxNames: string[];
16
16
  productTagIds: number[];
17
+ hasErrorLines: boolean;
17
18
  }
@@ -18,8 +18,3 @@ export * from "./airport";
18
18
  export * from "./website-configuration";
19
19
  export * from "./style-sheet";
20
20
  export * from "./web-form";
21
- export * from "./content-by-property-request";
22
- export * from "./content-by-template-request";
23
- export * from "./content-by-parent-request";
24
- export * from "./web-contact";
25
- export * from "./web-opportunity-request";
@@ -156,7 +156,6 @@ export declare const setEntryStatus: (
156
156
  config: TideClientConfig,
157
157
  dossierNumber: string,
158
158
  entryStatus: EntryStatus,
159
- customEntryStatusId?: number | undefined,
160
159
  signal?: AbortSignal | undefined
161
160
  ) => Promise<BookingPackageAvailability[]>;
162
161
  export declare const flightLines: (
@@ -1,7 +1,6 @@
1
1
  import {
2
2
  AirportItem,
3
3
  CountryItem,
4
- GeographicalRegion,
5
4
  PageResult,
6
5
  Portal,
7
6
  TideClientConfig,
@@ -38,17 +37,6 @@ export declare const searchLocations: (
38
37
  searchTerm: string,
39
38
  signal?: AbortSignal | undefined
40
39
  ) => Promise<PageResult<LocationItem>>;
41
- /**
42
- * api/web/search/geographicalregions
43
- * Gets all available Geographical Regions
44
- * @param config
45
- * @param signal
46
- * @returns OK if succeeded.
47
- */
48
- export declare const getAvailableGeographicalRegions: (
49
- config: TideClientConfig,
50
- signal?: AbortSignal | undefined
51
- ) => Promise<GeographicalRegion[]>;
52
40
  export declare const getPortal: (
53
41
  config: TideClientConfig,
54
42
  portalId: number,
@@ -1,31 +1,14 @@
1
1
  import {
2
- AddressItem,
3
2
  Affiliate,
4
3
  ContactFormRequest,
5
4
  CrmContactRequest,
6
5
  GenerateBookingAccommodationRequest,
7
6
  LocationsRequest,
8
- Mail,
9
- PageResult,
10
7
  TideClientConfig,
11
8
  TideLocation,
12
- WebOpportunityRequest,
13
9
  WebsiteConfiguration,
14
10
  StyleSheet,
15
11
  } from "../types";
16
- /**
17
- * api/web/mail
18
- * Adds the sender as a person and sends a mail.
19
- * @param config
20
- * @param request
21
- * @param signal
22
- * @returns OK if succeeded.
23
- */
24
- export declare const sendMail: (
25
- config: TideClientConfig,
26
- request: Mail,
27
- signal?: AbortSignal | undefined
28
- ) => Promise<Response>;
29
12
  /**
30
13
  * api/web/crmcontact
31
14
  * Creates a CRM contact.
@@ -47,25 +30,11 @@ export declare const createCrmContact: (
47
30
  * @param signal
48
31
  * @returns OK if succeeded.
49
32
  */
50
- export declare const sendContactForm: (
33
+ export declare const ContactForm: (
51
34
  config: TideClientConfig,
52
35
  request: ContactFormRequest,
53
36
  signal?: AbortSignal | undefined
54
37
  ) => Promise<Response>;
55
- /**
56
- * api/web/travelagents
57
- * Searches travel agents (addresses of type Agent). Optionally pass a raw OData
58
- * query string (without leading '?'), e.g. "$top=20&$filter=contains(name,'foo')".
59
- * @param config
60
- * @param odataQuery
61
- * @param signal
62
- * @returns OK if succeeded.
63
- */
64
- export declare const getTravelAgents: (
65
- config: TideClientConfig,
66
- odataQuery?: string | undefined,
67
- signal?: AbortSignal | undefined
68
- ) => Promise<PageResult<AddressItem>>;
69
38
  /**
70
39
  * api/web/affiliates
71
40
  * Gets all Affiliates
@@ -91,34 +60,6 @@ export declare const generateBookingAccommodations: (
91
60
  ) => Promise<{
92
61
  [key: string]: string;
93
62
  }>;
94
- /**
95
- * api/web/opportunity
96
- * Creates a CRM opportunity from a web contact.
97
- * @param config
98
- * @param request
99
- * @param signal
100
- * @returns OK if succeeded.
101
- */
102
- export declare const createOpportunity: (
103
- config: TideClientConfig,
104
- request: WebOpportunityRequest,
105
- signal?: AbortSignal | undefined
106
- ) => Promise<Response>;
107
- /**
108
- * api/web/entry/{entryId}/calculate-deposit
109
- * Calculates the deposit amount for an entry.
110
- * @param config
111
- * @param entryId
112
- * @param signal
113
- * @returns The deposit amount.
114
- */
115
- export declare const calculateDeposit: (
116
- config: TideClientConfig,
117
- entryId: number,
118
- signal?: AbortSignal | undefined
119
- ) => Promise<{
120
- amount: number;
121
- }>;
122
63
  export declare const getLocations: (
123
64
  config: TideClientConfig,
124
65
  request: LocationsRequest,
package/package.json CHANGED
@@ -1,67 +1,67 @@
1
- {
2
- "name": "@qite/tide-client",
3
- "version": "1.1.183",
4
- "description": "Frontend client for Tide",
5
- "main": "build/index.js",
6
- "scripts": {
7
- "build": "rollup -c",
8
- "tsc": "tsc --noEmit",
9
- "format": "prettier --write .",
10
- "test": "jest",
11
- "copy": "cpx \"**/*.*\" \"../tide-booking-component/node_modules/@qite/tide-client\""
12
- },
13
- "repository": {
14
- "type": "git",
15
- "url": "git+ssh://git@bitbucket.org/qitegeneral/tide-client.git"
16
- },
17
- "keywords": [
18
- "tide",
19
- "client"
20
- ],
21
- "maintainers": [
22
- "Loris Decoster <loris@qite.be>",
23
- "Bram De Cuyper <bram.de.cuyper@qite.be>",
24
- "Maarten Brysbaert <maarten.brysbaert@qite.be>"
25
- ],
26
- "files": [
27
- "build"
28
- ],
29
- "license": "OBSD",
30
- "homepage": "https://bitbucket.org/qitegeneral/tide-client#readme",
31
- "devDependencies": {
32
- "@rollup/plugin-commonjs": "^19.0.0",
33
- "@rollup/plugin-node-resolve": "^13.0.0",
34
- "@types/jest": "^26.0.23",
35
- "@types/moment": "^2.13.0",
36
- "dotenv": "^9.0.2",
37
- "jest": "^26.6.3",
38
- "jest-fetch-mock": "^3.0.3",
39
- "moment": "^2.0.0",
40
- "prettier": "^2.3.0",
41
- "rollup": "^2.48.0",
42
- "rollup-plugin-typescript2": "0.36.0",
43
- "ts-jest": "^26.5.6",
44
- "tslib": "^2.2.0",
45
- "typescript": "^4.2.4"
46
- },
47
- "jest": {
48
- "moduleFileExtensions": [
49
- "ts",
50
- "js"
51
- ],
52
- "transform": {
53
- "^.+\\.ts$": "ts-jest"
54
- },
55
- "globals": {
56
- "ts-jest": {
57
- "tsconfig": "tsconfig.json"
58
- }
59
- },
60
- "testMatch": [
61
- "**/tests/**/*.test.ts"
62
- ]
63
- },
64
- "dependencies": {
65
- "cpx": "^1.5.0"
66
- }
67
- }
1
+ {
2
+ "name": "@qite/tide-client",
3
+ "version": "1.1.184",
4
+ "description": "Frontend client for Tide",
5
+ "main": "build/index.js",
6
+ "scripts": {
7
+ "build": "rollup -c",
8
+ "tsc": "tsc --noEmit",
9
+ "format": "prettier --write .",
10
+ "test": "jest",
11
+ "copy": "cpx \"**/*.*\" \"../tide-booking-component/node_modules/@qite/tide-client\""
12
+ },
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "git+ssh://git@bitbucket.org/qitegeneral/tide-client.git"
16
+ },
17
+ "keywords": [
18
+ "tide",
19
+ "client"
20
+ ],
21
+ "maintainers": [
22
+ "Loris Decoster <loris@qite.be>",
23
+ "Bram De Cuyper <bram.de.cuyper@qite.be>",
24
+ "Maarten Brysbaert <maarten.brysbaert@qite.be>"
25
+ ],
26
+ "files": [
27
+ "build"
28
+ ],
29
+ "license": "OBSD",
30
+ "homepage": "https://bitbucket.org/qitegeneral/tide-client#readme",
31
+ "devDependencies": {
32
+ "@rollup/plugin-commonjs": "^19.0.0",
33
+ "@rollup/plugin-node-resolve": "^13.0.0",
34
+ "@types/jest": "^26.0.23",
35
+ "@types/moment": "^2.13.0",
36
+ "dotenv": "^9.0.2",
37
+ "jest": "^26.6.3",
38
+ "jest-fetch-mock": "^3.0.3",
39
+ "moment": "^2.0.0",
40
+ "prettier": "^2.3.0",
41
+ "rollup": "^2.48.0",
42
+ "rollup-plugin-typescript2": "0.36.0",
43
+ "ts-jest": "^26.5.6",
44
+ "tslib": "^2.2.0",
45
+ "typescript": "^4.2.4"
46
+ },
47
+ "jest": {
48
+ "moduleFileExtensions": [
49
+ "ts",
50
+ "js"
51
+ ],
52
+ "transform": {
53
+ "^.+\\.ts$": "ts-jest"
54
+ },
55
+ "globals": {
56
+ "ts-jest": {
57
+ "tsconfig": "tsconfig.json"
58
+ }
59
+ },
60
+ "testMatch": [
61
+ "**/tests/**/*.test.ts"
62
+ ]
63
+ },
64
+ "dependencies": {
65
+ "cpx": "^1.5.0"
66
+ }
67
+ }