@qite/tide-client 2.0.4 → 2.0.6
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/build/index.js +78 -2
- package/build/index.js.map +1 -1
- package/build/types/enums/index.d.ts +1 -0
- package/build/types/enums/note-type.d.ts +8 -0
- package/build/types/offer/address-item.d.ts +30 -0
- package/build/types/offer/index.d.ts +1 -0
- package/build/types/offer/publishing/index.d.ts +1 -0
- package/build/types/offer/publishing/mail.d.ts +15 -0
- package/build/types/web/agent-dossier-flight-meta-data-line.d.ts +1 -0
- package/build/types/web/index.d.ts +2 -0
- package/build/types/web/web-contact.d.ts +9 -0
- package/build/types/web/web-opportunity-request.d.ts +9 -0
- package/build/utils/web-client.d.ts +60 -1
- package/package.json +1 -1
|
@@ -15,6 +15,7 @@ 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";
|
|
18
19
|
export * from "./payment-type";
|
|
19
20
|
export * from "./portal-qsm-type";
|
|
20
21
|
export * from "./price-chart-type";
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ItemTag } from "./item-tag";
|
|
2
|
+
export interface AddressItem {
|
|
3
|
+
id: number;
|
|
4
|
+
street: string;
|
|
5
|
+
number: string;
|
|
6
|
+
box: string;
|
|
7
|
+
locationId?: number | null;
|
|
8
|
+
postalCode: string;
|
|
9
|
+
location: string;
|
|
10
|
+
name: string;
|
|
11
|
+
financialName: string;
|
|
12
|
+
code: string;
|
|
13
|
+
types: number[];
|
|
14
|
+
countryIso2: string;
|
|
15
|
+
countryId: number;
|
|
16
|
+
tags: ItemTag[];
|
|
17
|
+
latitude: number;
|
|
18
|
+
longitude: number;
|
|
19
|
+
requestEmail: string;
|
|
20
|
+
commercialEmail: string;
|
|
21
|
+
billingEmail: string;
|
|
22
|
+
serviceEmail: string;
|
|
23
|
+
phone: string;
|
|
24
|
+
website: string;
|
|
25
|
+
isStopSales: boolean;
|
|
26
|
+
personNames: string[];
|
|
27
|
+
saleType?: number | null;
|
|
28
|
+
headOfficeSaleType?: number | null;
|
|
29
|
+
headOfficeId?: number | null;
|
|
30
|
+
}
|
|
@@ -41,5 +41,6 @@ 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";
|
|
44
45
|
export * from "./geographical-region";
|
|
45
46
|
export * from "./publishing";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface Mail {
|
|
2
|
+
firstName: string;
|
|
3
|
+
lastName: string;
|
|
4
|
+
phone: string;
|
|
5
|
+
emailaddress: string;
|
|
6
|
+
message: string;
|
|
7
|
+
emailTemplate: number;
|
|
8
|
+
street: string;
|
|
9
|
+
houseNumber: string;
|
|
10
|
+
mailbox: string;
|
|
11
|
+
postalCode: string;
|
|
12
|
+
city: string;
|
|
13
|
+
country: string;
|
|
14
|
+
ignoreBCC: boolean;
|
|
15
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { NoteType } from "../enums/note-type";
|
|
2
|
+
import { WebContact } from "./web-contact";
|
|
3
|
+
export interface WebOpportunityRequest extends WebContact {
|
|
4
|
+
countryId?: number | null;
|
|
5
|
+
type: NoteType;
|
|
6
|
+
subject: string;
|
|
7
|
+
message: string;
|
|
8
|
+
kanbanBoardId?: number | null;
|
|
9
|
+
}
|
|
@@ -1,14 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
|
+
AddressItem,
|
|
2
3
|
Affiliate,
|
|
3
4
|
ContactFormRequest,
|
|
4
5
|
CrmContactRequest,
|
|
5
6
|
GenerateBookingAccommodationRequest,
|
|
6
7
|
LocationsRequest,
|
|
8
|
+
Mail,
|
|
9
|
+
PageResult,
|
|
7
10
|
TideClientConfig,
|
|
8
11
|
TideLocation,
|
|
12
|
+
WebOpportunityRequest,
|
|
9
13
|
WebsiteConfiguration,
|
|
10
14
|
StyleSheet,
|
|
11
15
|
} 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>;
|
|
12
29
|
/**
|
|
13
30
|
* api/web/crmcontact
|
|
14
31
|
* Creates a CRM contact.
|
|
@@ -30,11 +47,25 @@ export declare const createCrmContact: (
|
|
|
30
47
|
* @param signal
|
|
31
48
|
* @returns OK if succeeded.
|
|
32
49
|
*/
|
|
33
|
-
export declare const
|
|
50
|
+
export declare const sendContactForm: (
|
|
34
51
|
config: TideClientConfig,
|
|
35
52
|
request: ContactFormRequest,
|
|
36
53
|
signal?: AbortSignal | undefined
|
|
37
54
|
) => 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>>;
|
|
38
69
|
/**
|
|
39
70
|
* api/web/affiliates
|
|
40
71
|
* Gets all Affiliates
|
|
@@ -60,6 +91,34 @@ export declare const generateBookingAccommodations: (
|
|
|
60
91
|
) => Promise<{
|
|
61
92
|
[key: string]: string;
|
|
62
93
|
}>;
|
|
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
|
+
}>;
|
|
63
122
|
export declare const getLocations: (
|
|
64
123
|
config: TideClientConfig,
|
|
65
124
|
request: LocationsRequest,
|