@qite/tide-client 2.0.4 → 2.0.5
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/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
package/build/index.js
CHANGED
|
@@ -155,6 +155,16 @@ var MetaDataType = {
|
|
|
155
155
|
additionalServices: 7,
|
|
156
156
|
};
|
|
157
157
|
|
|
158
|
+
exports.NoteType = void 0;
|
|
159
|
+
(function (NoteType) {
|
|
160
|
+
NoteType[(NoteType["notification"] = 0)] = "notification";
|
|
161
|
+
NoteType[(NoteType["task"] = 1)] = "task";
|
|
162
|
+
NoteType[(NoteType["calendar"] = 2)] = "calendar";
|
|
163
|
+
NoteType[(NoteType["callLog"] = 3)] = "callLog";
|
|
164
|
+
NoteType[(NoteType["opportunity"] = 4)] = "opportunity";
|
|
165
|
+
NoteType[(NoteType["email"] = 5)] = "email";
|
|
166
|
+
})(exports.NoteType || (exports.NoteType = {}));
|
|
167
|
+
|
|
158
168
|
var PaymentType = {
|
|
159
169
|
other: 0,
|
|
160
170
|
bancontact: 1,
|
|
@@ -7189,11 +7199,17 @@ var getAllotment = function (config, allotmentId, signal) {
|
|
|
7189
7199
|
};
|
|
7190
7200
|
|
|
7191
7201
|
var ENDPOINT$5 = "/api/web";
|
|
7202
|
+
var ENDPOINT_MAIL = ENDPOINT$5 + "/mail";
|
|
7192
7203
|
var ENDPOINT_CREATE_CRM_CONTACT = ENDPOINT$5 + "/crmcontact";
|
|
7193
7204
|
var ENDPOINT_CONTACT_FORM$1 = ENDPOINT$5 + "/contactform";
|
|
7205
|
+
var ENDPOINT_TRAVEL_AGENTS = ENDPOINT$5 + "/travelagents";
|
|
7194
7206
|
var ENDPOINT_CREATE_AFFILIATES = ENDPOINT$5 + "/affiliates";
|
|
7195
7207
|
var ENDPOINT_TRANSLATION_DICTIONARY = ENDPOINT$5 + "/translation-dictionary";
|
|
7196
7208
|
var ENDPOINT_BOOKING_ACCOMMODATION = ENDPOINT$5 + "/booking-accommodation";
|
|
7209
|
+
var ENDPOINT_OPPORTUNITY = ENDPOINT$5 + "/opportunity";
|
|
7210
|
+
var ENDPOINT_CALCULATE_DEPOSIT = function (entryId) {
|
|
7211
|
+
return ENDPOINT$5 + "/entry/" + entryId + "/calculate-deposit";
|
|
7212
|
+
};
|
|
7197
7213
|
var ENDPOINT_LOCATIONS = ENDPOINT$5 + "/entity/locations";
|
|
7198
7214
|
var ENDPOINT_WEBSITE_CONFIGURATION = function (portalId) {
|
|
7199
7215
|
return ENDPOINT$5 + "/website/" + portalId + "/configuration";
|
|
@@ -7201,6 +7217,20 @@ var ENDPOINT_WEBSITE_CONFIGURATION = function (portalId) {
|
|
|
7201
7217
|
var ENDPOINT_WEBSITE_STYLESHEET = function (styleSheetId) {
|
|
7202
7218
|
return ENDPOINT$5 + "/style-sheet/" + styleSheetId;
|
|
7203
7219
|
};
|
|
7220
|
+
/**
|
|
7221
|
+
* api/web/mail
|
|
7222
|
+
* Adds the sender as a person and sends a mail.
|
|
7223
|
+
* @param config
|
|
7224
|
+
* @param request
|
|
7225
|
+
* @param signal
|
|
7226
|
+
* @returns OK if succeeded.
|
|
7227
|
+
*/
|
|
7228
|
+
var sendMail = function (config, request, signal) {
|
|
7229
|
+
var url = "" + config.host + ENDPOINT_MAIL;
|
|
7230
|
+
var apiKey = config.apiKey;
|
|
7231
|
+
var body = JSON.stringify(request);
|
|
7232
|
+
return post(url, apiKey, body, config.token, signal);
|
|
7233
|
+
};
|
|
7204
7234
|
/**
|
|
7205
7235
|
* api/web/crmcontact
|
|
7206
7236
|
* Creates a CRM contact.
|
|
@@ -7223,12 +7253,27 @@ var createCrmContact = function (config, request, signal) {
|
|
|
7223
7253
|
* @param signal
|
|
7224
7254
|
* @returns OK if succeeded.
|
|
7225
7255
|
*/
|
|
7226
|
-
var
|
|
7256
|
+
var sendContactForm = function (config, request, signal) {
|
|
7227
7257
|
var url = "" + config.host + ENDPOINT_CONTACT_FORM$1;
|
|
7228
7258
|
var apiKey = config.apiKey;
|
|
7229
7259
|
var body = JSON.stringify(request);
|
|
7230
7260
|
return post(url, apiKey, body, config.token, signal, true);
|
|
7231
7261
|
};
|
|
7262
|
+
/**
|
|
7263
|
+
* api/web/travelagents
|
|
7264
|
+
* Searches travel agents (addresses of type Agent). Optionally pass a raw OData
|
|
7265
|
+
* query string (without leading '?'), e.g. "$top=20&$filter=contains(name,'foo')".
|
|
7266
|
+
* @param config
|
|
7267
|
+
* @param odataQuery
|
|
7268
|
+
* @param signal
|
|
7269
|
+
* @returns OK if succeeded.
|
|
7270
|
+
*/
|
|
7271
|
+
var getTravelAgents = function (config, odataQuery, signal) {
|
|
7272
|
+
var query = odataQuery ? "?" + odataQuery : "";
|
|
7273
|
+
var url = "" + config.host + ENDPOINT_TRAVEL_AGENTS + query;
|
|
7274
|
+
var apiKey = config.apiKey;
|
|
7275
|
+
return get(url, apiKey, config.token, signal, true);
|
|
7276
|
+
};
|
|
7232
7277
|
/**
|
|
7233
7278
|
* api/web/affiliates
|
|
7234
7279
|
* Gets all Affiliates
|
|
@@ -7253,6 +7298,33 @@ var generateBookingAccommodations = function (config, request, signal) {
|
|
|
7253
7298
|
var body = JSON.stringify(request);
|
|
7254
7299
|
return post(url, apiKey, body, config.token, signal);
|
|
7255
7300
|
};
|
|
7301
|
+
/**
|
|
7302
|
+
* api/web/opportunity
|
|
7303
|
+
* Creates a CRM opportunity from a web contact.
|
|
7304
|
+
* @param config
|
|
7305
|
+
* @param request
|
|
7306
|
+
* @param signal
|
|
7307
|
+
* @returns OK if succeeded.
|
|
7308
|
+
*/
|
|
7309
|
+
var createOpportunity = function (config, request, signal) {
|
|
7310
|
+
var url = "" + config.host + ENDPOINT_OPPORTUNITY;
|
|
7311
|
+
var apiKey = config.apiKey;
|
|
7312
|
+
var body = JSON.stringify(request);
|
|
7313
|
+
return post(url, apiKey, body, config.token, signal);
|
|
7314
|
+
};
|
|
7315
|
+
/**
|
|
7316
|
+
* api/web/entry/{entryId}/calculate-deposit
|
|
7317
|
+
* Calculates the deposit amount for an entry.
|
|
7318
|
+
* @param config
|
|
7319
|
+
* @param entryId
|
|
7320
|
+
* @param signal
|
|
7321
|
+
* @returns The deposit amount.
|
|
7322
|
+
*/
|
|
7323
|
+
var calculateDeposit = function (config, entryId, signal) {
|
|
7324
|
+
var url = "" + config.host + ENDPOINT_CALCULATE_DEPOSIT(entryId);
|
|
7325
|
+
var apiKey = config.apiKey;
|
|
7326
|
+
return get(url, apiKey, config.token, signal, true);
|
|
7327
|
+
};
|
|
7256
7328
|
var getLocations = function (config, request, signal) {
|
|
7257
7329
|
var url = "" + config.host + ENDPOINT_LOCATIONS;
|
|
7258
7330
|
var apiKey = config.apiKey;
|
|
@@ -7532,7 +7604,6 @@ var submitForm = function (config, id, request, signal) {
|
|
|
7532
7604
|
};
|
|
7533
7605
|
|
|
7534
7606
|
exports.AllotmentType = AllotmentType;
|
|
7535
|
-
exports.ContactForm = ContactForm;
|
|
7536
7607
|
exports.DataType = DataType;
|
|
7537
7608
|
exports.DossierType = DossierType;
|
|
7538
7609
|
exports.EntryLineFlag = EntryLineFlag;
|
|
@@ -7559,12 +7630,14 @@ exports.availableFlights = availableFlights;
|
|
|
7559
7630
|
exports.book = book;
|
|
7560
7631
|
exports.bookPackagingEntry = bookPackagingEntry;
|
|
7561
7632
|
exports.bookableDates = bookableDates;
|
|
7633
|
+
exports.calculateDeposit = calculateDeposit;
|
|
7562
7634
|
exports.changeEntryAgentSurcharge = changeEntryAgentSurcharge;
|
|
7563
7635
|
exports.clearServiceTokenCache = clearServiceTokenCache;
|
|
7564
7636
|
exports.confirm = confirm;
|
|
7565
7637
|
exports.contactForm = contactForm;
|
|
7566
7638
|
exports.contactHasTag = contactHasTag;
|
|
7567
7639
|
exports.createCrmContact = createCrmContact;
|
|
7640
|
+
exports.createOpportunity = createOpportunity;
|
|
7568
7641
|
exports.createParams = createParams;
|
|
7569
7642
|
exports.details = details;
|
|
7570
7643
|
exports.detailsWL = detailsWL;
|
|
@@ -7605,6 +7678,7 @@ exports.getPriceDetails = getPriceDetails;
|
|
|
7605
7678
|
exports.getPrintActions = getPrintActions;
|
|
7606
7679
|
exports.getStyleSheet = getStyleSheet;
|
|
7607
7680
|
exports.getTranslationDictionary = getTranslationDictionary;
|
|
7681
|
+
exports.getTravelAgents = getTravelAgents;
|
|
7608
7682
|
exports.getWebsiteConfiguration = getWebsiteConfiguration;
|
|
7609
7683
|
exports.login = login;
|
|
7610
7684
|
exports.logout = logout;
|
|
@@ -7624,6 +7698,8 @@ exports.searchPackagingExcursions = searchPackagingExcursions;
|
|
|
7624
7698
|
exports.searchPackagingFlights = searchPackagingFlights;
|
|
7625
7699
|
exports.searchRegions = searchRegions;
|
|
7626
7700
|
exports.searchWithErrorMapping = searchWithErrorMapping;
|
|
7701
|
+
exports.sendContactForm = sendContactForm;
|
|
7702
|
+
exports.sendMail = sendMail;
|
|
7627
7703
|
exports.setCustomEntryStatus = setCustomEntryStatus;
|
|
7628
7704
|
exports.setEntryStatus = setEntryStatus;
|
|
7629
7705
|
exports.startTransaction = startTransaction;
|