@qite/tide-client 1.1.178 → 1.1.179

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.d.ts CHANGED
@@ -8,4 +8,5 @@ export * from "./utils/web-client";
8
8
  export * from "./utils/web-contact-client";
9
9
  export * from "./utils/web-file";
10
10
  export * from "./utils/packaging-client";
11
+ export * from "./utils/web-form";
11
12
  export * from "./services/odata.service";
package/build/index.js CHANGED
@@ -46,6 +46,12 @@ var DataType = {
46
46
  template: "template",
47
47
  };
48
48
 
49
+ exports.DateAmountType = void 0;
50
+ (function (DateAmountType) {
51
+ DateAmountType[(DateAmountType["days"] = 0)] = "days";
52
+ DateAmountType[(DateAmountType["months"] = 1)] = "months";
53
+ })(exports.DateAmountType || (exports.DateAmountType = {}));
54
+
49
55
  var DossierType = {
50
56
  hotelOnly: 0,
51
57
  transportOnly: 1,
@@ -97,6 +103,33 @@ var ExportStatus = {
97
103
  exportFailed: 2,
98
104
  };
99
105
 
106
+ var FormFieldType = {
107
+ Text: 0,
108
+ Number: 1,
109
+ YesNo: 2,
110
+ Checkbox: 3,
111
+ Dropdown: 4,
112
+ Multiline: 5,
113
+ InfoText: 6,
114
+ Calculated: 7,
115
+ Date: 8,
116
+ Email: 9,
117
+ };
118
+
119
+ var FormFieldWidth = {
120
+ Full: 0,
121
+ ThreeQuarters: 1,
122
+ TwoThirds: 2,
123
+ Half: 3,
124
+ OneThird: 4,
125
+ OneQuarter: 5,
126
+ };
127
+
128
+ var FormType = {
129
+ Simple: 0,
130
+ Wizard: 1,
131
+ };
132
+
100
133
  var Gender = {
101
134
  male: 0,
102
135
  female: 1,
@@ -129,6 +162,22 @@ var PaymentType = {
129
162
  cash: 3,
130
163
  };
131
164
 
165
+ exports.PortalQsmType = void 0;
166
+ (function (PortalQsmType) {
167
+ PortalQsmType[(PortalQsmType["Multidestination"] = 0)] = "Multidestination";
168
+ PortalQsmType[(PortalQsmType["Accommodation"] = 1)] = "Accommodation";
169
+ PortalQsmType[(PortalQsmType["AccommodationAndFlight"] = 2)] =
170
+ "AccommodationAndFlight";
171
+ PortalQsmType[(PortalQsmType["Flight"] = 3)] = "Flight";
172
+ PortalQsmType[(PortalQsmType["RoundTrip"] = 4)] = "RoundTrip";
173
+ PortalQsmType[(PortalQsmType["GroupTour"] = 5)] = "GroupTour";
174
+ PortalQsmType[(PortalQsmType["Package"] = 6)] = "Package";
175
+ PortalQsmType[(PortalQsmType["Ticket"] = 7)] = "Ticket";
176
+ PortalQsmType[(PortalQsmType["Car"] = 8)] = "Car";
177
+ PortalQsmType[(PortalQsmType["Transfer"] = 9)] = "Transfer";
178
+ PortalQsmType[(PortalQsmType["Cruise"] = 10)] = "Cruise";
179
+ })(exports.PortalQsmType || (exports.PortalQsmType = {}));
180
+
132
181
  var PriceChartType = {
133
182
  purchasePrices: 0,
134
183
  sellingPrices: 1,
@@ -233,28 +282,6 @@ var VendorType = {
233
282
  sunnyCars: 20,
234
283
  };
235
284
 
236
- exports.DateAmountType = void 0;
237
- (function (DateAmountType) {
238
- DateAmountType[(DateAmountType["days"] = 0)] = "days";
239
- DateAmountType[(DateAmountType["months"] = 1)] = "months";
240
- })(exports.DateAmountType || (exports.DateAmountType = {}));
241
-
242
- exports.PortalQsmType = void 0;
243
- (function (PortalQsmType) {
244
- PortalQsmType[(PortalQsmType["Multidestination"] = 0)] = "Multidestination";
245
- PortalQsmType[(PortalQsmType["Accommodation"] = 1)] = "Accommodation";
246
- PortalQsmType[(PortalQsmType["AccommodationAndFlight"] = 2)] =
247
- "AccommodationAndFlight";
248
- PortalQsmType[(PortalQsmType["Flight"] = 3)] = "Flight";
249
- PortalQsmType[(PortalQsmType["RoundTrip"] = 4)] = "RoundTrip";
250
- PortalQsmType[(PortalQsmType["GroupTour"] = 5)] = "GroupTour";
251
- PortalQsmType[(PortalQsmType["Package"] = 6)] = "Package";
252
- PortalQsmType[(PortalQsmType["Ticket"] = 7)] = "Ticket";
253
- PortalQsmType[(PortalQsmType["Car"] = 8)] = "Car";
254
- PortalQsmType[(PortalQsmType["Transfer"] = 9)] = "Transfer";
255
- PortalQsmType[(PortalQsmType["Cruise"] = 10)] = "Cruise";
256
- })(exports.PortalQsmType || (exports.PortalQsmType = {}));
257
-
258
285
  /******************************************************************************
259
286
  Copyright (c) Microsoft Corporation.
260
287
 
@@ -6289,47 +6316,47 @@ var get = function (url, apiKey, token, signal, skipReviver, languageCode) {
6289
6316
  });
6290
6317
  };
6291
6318
 
6292
- var ENDPOINT$8 = "/api/web/booking/v2";
6293
- var ENDPOINT_AVAILABLE_FLIGHTS = ENDPOINT$8 + "/available-flights";
6294
- var ENDPOINT_TRANSPORT_DATES = ENDPOINT$8 + "/transport-dates";
6295
- var ENDPOINT_PRICES = ENDPOINT$8 + "/prices";
6296
- var ENDPOINT_AVAILABLE_COUNTRIES = ENDPOINT$8 + "/available-countries";
6297
- var ENDPOINT_SEARCH = ENDPOINT$8 + "/search";
6319
+ var ENDPOINT$9 = "/api/web/booking/v2";
6320
+ var ENDPOINT_AVAILABLE_FLIGHTS = ENDPOINT$9 + "/available-flights";
6321
+ var ENDPOINT_TRANSPORT_DATES = ENDPOINT$9 + "/transport-dates";
6322
+ var ENDPOINT_PRICES = ENDPOINT$9 + "/prices";
6323
+ var ENDPOINT_AVAILABLE_COUNTRIES = ENDPOINT$9 + "/available-countries";
6324
+ var ENDPOINT_SEARCH = ENDPOINT$9 + "/search";
6298
6325
  var ENDPOINT_SEARCH_WITH_ERROR_MAPPING =
6299
- ENDPOINT$8 + "/search-with-error-mapping";
6326
+ ENDPOINT$9 + "/search-with-error-mapping";
6300
6327
  // const ENDPOINT_ELASTIC = `${ENDPOINT}/elastic`; // TODO
6301
- var ENDPOINT_DETAILS = ENDPOINT$8 + "/details";
6302
- var ENDPOINT_DETAILS_WL = ENDPOINT$8 + "/details-wl";
6328
+ var ENDPOINT_DETAILS = ENDPOINT$9 + "/details";
6329
+ var ENDPOINT_DETAILS_WL = ENDPOINT$9 + "/details-wl";
6303
6330
  var ENDPOINT_ENTRYLIGHT = function (code) {
6304
- return ENDPOINT$8 + "/entry-light/" + code;
6331
+ return ENDPOINT$9 + "/entry-light/" + code;
6305
6332
  };
6306
- var ENDPOINT_VALIDATE_VOUCHER = ENDPOINT$8 + "/validate-voucher";
6333
+ var ENDPOINT_VALIDATE_VOUCHER = ENDPOINT$9 + "/validate-voucher";
6307
6334
  var ENDPOINT_ALTERNATE_HOTELS = function (transactionId, optionId) {
6308
6335
  return (
6309
- ENDPOINT$8 + "/details/" + transactionId + "/alternate-hotels/" + optionId
6336
+ ENDPOINT$9 + "/details/" + transactionId + "/alternate-hotels/" + optionId
6310
6337
  );
6311
6338
  };
6312
6339
  var ENDPOINT_ALTERNATE_FLIGHTS = function (transactionId) {
6313
- return ENDPOINT$8 + "/details/" + transactionId + "/alternate-flights";
6340
+ return ENDPOINT$9 + "/details/" + transactionId + "/alternate-flights";
6314
6341
  };
6315
- var ENDPOINT_BOOKABLE_DATES = ENDPOINT$8 + "/bookable-dates";
6316
- var ENDPOINT_PRICE_DETAILS$1 = ENDPOINT$8 + "/price-details";
6317
- var ENDPOINT_BOOK$1 = ENDPOINT$8 + "/book";
6318
- var ENDPOINT_UPDATE = ENDPOINT$8 + "/update";
6319
- var ENDPOINT_AGENTS = ENDPOINT$8 + "/agents";
6342
+ var ENDPOINT_BOOKABLE_DATES = ENDPOINT$9 + "/bookable-dates";
6343
+ var ENDPOINT_PRICE_DETAILS$1 = ENDPOINT$9 + "/price-details";
6344
+ var ENDPOINT_BOOK$1 = ENDPOINT$9 + "/book";
6345
+ var ENDPOINT_UPDATE = ENDPOINT$9 + "/update";
6346
+ var ENDPOINT_AGENTS = ENDPOINT$9 + "/agents";
6320
6347
  var ENDPOINT_AVAILABLE_ALLOTMENTS = function (eventId, productCode) {
6321
6348
  return (
6322
- ENDPOINT$8 + "/get-allotment-availability/" + eventId + "/" + productCode
6349
+ ENDPOINT$9 + "/get-allotment-availability/" + eventId + "/" + productCode
6323
6350
  );
6324
6351
  };
6325
- var ENDPOINT_FLIGHT_POOL = ENDPOINT$8 + "/flight-pool";
6326
- var ENDPOINT_TOUR_CODES = ENDPOINT$8 + "/tourcodes";
6352
+ var ENDPOINT_FLIGHT_POOL = ENDPOINT$9 + "/flight-pool";
6353
+ var ENDPOINT_TOUR_CODES = ENDPOINT$9 + "/tourcodes";
6327
6354
  var ENDPOINT_CUSTOM_ENTRY_STATUS$1 = function (
6328
6355
  dossierNumber,
6329
6356
  customEntryStatusId
6330
6357
  ) {
6331
6358
  return (
6332
- ENDPOINT$8 +
6359
+ ENDPOINT$9 +
6333
6360
  "/custom-entry-status/" +
6334
6361
  dossierNumber +
6335
6362
  "/" +
@@ -6337,10 +6364,10 @@ var ENDPOINT_CUSTOM_ENTRY_STATUS$1 = function (
6337
6364
  );
6338
6365
  };
6339
6366
  var ENDPOINT_ENTRY_STATUS = function (dossierNumber, entryStatus) {
6340
- return ENDPOINT$8 + "/entry-status/" + dossierNumber + "/" + entryStatus;
6367
+ return ENDPOINT$9 + "/entry-status/" + dossierNumber + "/" + entryStatus;
6341
6368
  };
6342
- var ENDPOINT_ELASTIC = ENDPOINT$8 + "/elastic";
6343
- var ENDPOINT_FLIGHT_LINES = ENDPOINT$8 + "/flightlines";
6369
+ var ENDPOINT_ELASTIC = ENDPOINT$9 + "/elastic";
6370
+ var ENDPOINT_FLIGHT_LINES = ENDPOINT$9 + "/flightlines";
6344
6371
  var availableFlights = function (config, request, signal) {
6345
6372
  var url = "" + config.host + ENDPOINT_AVAILABLE_FLIGHTS;
6346
6373
  var apiKey = config.apiKey;
@@ -6491,12 +6518,12 @@ var flightLines = function (config, request, signal) {
6491
6518
  return post(url, apiKey, body, config.token, signal, true);
6492
6519
  };
6493
6520
 
6494
- var ENDPOINT$7 = "/api/member";
6495
- var ENDPOINT_LOGIN = ENDPOINT$7 + "/login";
6496
- var ENDPOINT_LOGOUT = ENDPOINT$7 + "/logout";
6497
- var ENDPOINT_CONFIRM = ENDPOINT$7 + "/confirm";
6498
- var ENDPOINT_FORGOT_PASSWORD = ENDPOINT$7 + "/forgot-password";
6499
- var ENDPOINT_RESET_PASSWORD = ENDPOINT$7 + "/reset-password";
6521
+ var ENDPOINT$8 = "/api/member";
6522
+ var ENDPOINT_LOGIN = ENDPOINT$8 + "/login";
6523
+ var ENDPOINT_LOGOUT = ENDPOINT$8 + "/logout";
6524
+ var ENDPOINT_CONFIRM = ENDPOINT$8 + "/confirm";
6525
+ var ENDPOINT_FORGOT_PASSWORD = ENDPOINT$8 + "/forgot-password";
6526
+ var ENDPOINT_RESET_PASSWORD = ENDPOINT$8 + "/reset-password";
6500
6527
  var login = function (config, request, signal) {
6501
6528
  var url = "" + config.host + ENDPOINT_LOGIN;
6502
6529
  var apiKey = config.apiKey;
@@ -6528,8 +6555,8 @@ var resetPassword = function (config, request, signal) {
6528
6555
  return post$1(url, apiKey, body, config.token, signal);
6529
6556
  };
6530
6557
 
6531
- var ENDPOINT$6 = "/api/mollie";
6532
- var ENDPOINT_CREATE_PAYMENTS = ENDPOINT$6 + "/create-payment";
6558
+ var ENDPOINT$7 = "/api/mollie";
6559
+ var ENDPOINT_CREATE_PAYMENTS = ENDPOINT$7 + "/create-payment";
6533
6560
  /**
6534
6561
  * api/mollie/create-payment
6535
6562
  * @param request
@@ -6542,13 +6569,13 @@ var getMolliePayment = function (config, request, signal) {
6542
6569
  return post(url, apiKey, body, config.token, signal);
6543
6570
  };
6544
6571
 
6545
- var ENDPOINT$5 = "/api/web/search";
6546
- var ENDPOINT_COUNTRIES = ENDPOINT$5 + "/countries";
6547
- var ENDPOINT_REGIONS = ENDPOINT$5 + "/regions";
6548
- var ENDPOINT_OORDS = ENDPOINT$5 + "/oords";
6549
- var ENDPOINT_LOCATIONS$1 = ENDPOINT$5 + "/locations";
6572
+ var ENDPOINT$6 = "/api/web/search";
6573
+ var ENDPOINT_COUNTRIES = ENDPOINT$6 + "/countries";
6574
+ var ENDPOINT_REGIONS = ENDPOINT$6 + "/regions";
6575
+ var ENDPOINT_OORDS = ENDPOINT$6 + "/oords";
6576
+ var ENDPOINT_LOCATIONS$1 = ENDPOINT$6 + "/locations";
6550
6577
  var ENDPOINT_PORTAL = function (portalId) {
6551
- return ENDPOINT$5 + "/portal/" + portalId;
6578
+ return ENDPOINT$6 + "/portal/" + portalId;
6552
6579
  };
6553
6580
  var ENDPOINT_AIRPORT = "/api/web/entity/airport";
6554
6581
  /**
@@ -6771,13 +6798,13 @@ var isValidDate = function (d) {
6771
6798
  return d instanceof Date && !isNaN(d.getTime());
6772
6799
  };
6773
6800
 
6774
- var ENDPOINT$4 = "/api/web/agent";
6775
- var ENDPOINT_GET_PRINT_ACTIONS = ENDPOINT$4 + "/print-action";
6776
- var ENDPOINT_PRINT = ENDPOINT$4 + "/print-action";
6777
- var ENDPOINT_CUSTOM_ENTRY_STATUS = ENDPOINT$4 + "/custom-entry-status";
6778
- var ENDPOINT_ENUM_ENTRY_STATUS = ENDPOINT$4 + "/enum/entry-status";
6801
+ var ENDPOINT$5 = "/api/web/agent";
6802
+ var ENDPOINT_GET_PRINT_ACTIONS = ENDPOINT$5 + "/print-action";
6803
+ var ENDPOINT_PRINT = ENDPOINT$5 + "/print-action";
6804
+ var ENDPOINT_CUSTOM_ENTRY_STATUS = ENDPOINT$5 + "/custom-entry-status";
6805
+ var ENDPOINT_ENUM_ENTRY_STATUS = ENDPOINT$5 + "/enum/entry-status";
6779
6806
  var ENDPOINT_CHANGE_ENTRY_AGENT_SURCHARGE =
6780
- ENDPOINT$4 + "/entry/change-agent-surcharge";
6807
+ ENDPOINT$5 + "/entry/change-agent-surcharge";
6781
6808
  /**
6782
6809
  * api/web/agent/print-action/{print-action-group}
6783
6810
  * @param config
@@ -6811,7 +6838,7 @@ var getEntryList = function (config, filterItem, gridColumns, signal) {
6811
6838
  return encodeURIComponent(key) + "=" + encodeURIComponent(params[key]);
6812
6839
  })
6813
6840
  .join("&");
6814
- var url = "" + config.host + ENDPOINT$4 + "/entry/list?" + queryString;
6841
+ var url = "" + config.host + ENDPOINT$5 + "/entry/list?" + queryString;
6815
6842
  var apiKey = config.apiKey;
6816
6843
  return get(url, apiKey, config.token, signal, true);
6817
6844
  };
@@ -6822,7 +6849,7 @@ var getEntryListv2 = function (config, filterItem, gridColumns, signal) {
6822
6849
  return encodeURIComponent(key) + "=" + encodeURIComponent(params[key]);
6823
6850
  })
6824
6851
  .join("&");
6825
- var url = "" + config.host + ENDPOINT$4 + "/v2/entry/list?" + queryString;
6852
+ var url = "" + config.host + ENDPOINT$5 + "/v2/entry/list?" + queryString;
6826
6853
  var apiKey = config.apiKey;
6827
6854
  return get(url, apiKey, config.token, signal, true);
6828
6855
  };
@@ -6833,12 +6860,12 @@ var getEntryTotals = function (config, filterItem, gridColumns, signal) {
6833
6860
  return encodeURIComponent(key) + "=" + encodeURIComponent(params[key]);
6834
6861
  })
6835
6862
  .join("&");
6836
- var url = "" + config.host + ENDPOINT$4 + "/entry/total?" + queryString;
6863
+ var url = "" + config.host + ENDPOINT$5 + "/entry/total?" + queryString;
6837
6864
  var apiKey = config.apiKey;
6838
6865
  return get(url, apiKey, config.token, signal, true);
6839
6866
  };
6840
6867
  var getEntryDetailv2 = function (config, entryId, signal) {
6841
- var url = "" + config.host + ENDPOINT$4 + "/v2/entry/detail/" + entryId;
6868
+ var url = "" + config.host + ENDPOINT$5 + "/v2/entry/detail/" + entryId;
6842
6869
  var apiKey = config.apiKey;
6843
6870
  return get(url, apiKey, config.token, signal, true);
6844
6871
  };
@@ -6849,7 +6876,7 @@ var getInvoiceList = function (config, filterItem, gridColumns, signal) {
6849
6876
  return encodeURIComponent(key) + "=" + encodeURIComponent(params[key]);
6850
6877
  })
6851
6878
  .join("&");
6852
- var url = "" + config.host + ENDPOINT$4 + "/invoice/list?" + queryString;
6879
+ var url = "" + config.host + ENDPOINT$5 + "/invoice/list?" + queryString;
6853
6880
  var apiKey = config.apiKey;
6854
6881
  return get(url, apiKey, config.token, signal, true);
6855
6882
  };
@@ -6876,28 +6903,28 @@ var getAllotmentList = function (config, filterItem, gridColumns, signal) {
6876
6903
  return encodeURIComponent(key) + "=" + encodeURIComponent(params[key]);
6877
6904
  })
6878
6905
  .join("&");
6879
- var url = "" + config.host + ENDPOINT$4 + "/allotment/list?" + queryString;
6906
+ var url = "" + config.host + ENDPOINT$5 + "/allotment/list?" + queryString;
6880
6907
  var apiKey = config.apiKey;
6881
6908
  return get(url, apiKey, config.token, signal, true);
6882
6909
  };
6883
6910
  var getAllotment = function (config, allotmentId, signal) {
6884
- var url = "" + config.host + ENDPOINT$4 + "/allotment/" + allotmentId;
6911
+ var url = "" + config.host + ENDPOINT$5 + "/allotment/" + allotmentId;
6885
6912
  var apiKey = config.apiKey;
6886
6913
  return get(url, apiKey, config.token, signal, true);
6887
6914
  };
6888
6915
 
6889
- var ENDPOINT$3 = "/api/web";
6890
- var ENDPOINT_CREATE_CRM_CONTACT = ENDPOINT$3 + "/crmcontact";
6891
- var ENDPOINT_CONTACT_FORM$1 = ENDPOINT$3 + "/contactform";
6892
- var ENDPOINT_CREATE_AFFILIATES = ENDPOINT$3 + "/affiliates";
6893
- var ENDPOINT_TRANSLATION_DICTIONARY = ENDPOINT$3 + "/translation-dictionary";
6894
- var ENDPOINT_BOOKING_ACCOMMODATION = ENDPOINT$3 + "/booking-accommodation";
6895
- var ENDPOINT_LOCATIONS = ENDPOINT$3 + "/entity/locations";
6916
+ var ENDPOINT$4 = "/api/web";
6917
+ var ENDPOINT_CREATE_CRM_CONTACT = ENDPOINT$4 + "/crmcontact";
6918
+ var ENDPOINT_CONTACT_FORM$1 = ENDPOINT$4 + "/contactform";
6919
+ var ENDPOINT_CREATE_AFFILIATES = ENDPOINT$4 + "/affiliates";
6920
+ var ENDPOINT_TRANSLATION_DICTIONARY = ENDPOINT$4 + "/translation-dictionary";
6921
+ var ENDPOINT_BOOKING_ACCOMMODATION = ENDPOINT$4 + "/booking-accommodation";
6922
+ var ENDPOINT_LOCATIONS = ENDPOINT$4 + "/entity/locations";
6896
6923
  var ENDPOINT_WEBSITE_CONFIGURATION = function (portalId) {
6897
- return ENDPOINT$3 + "/website/" + portalId + "/configuration";
6924
+ return ENDPOINT$4 + "/website/" + portalId + "/configuration";
6898
6925
  };
6899
6926
  var ENDPOINT_WEBSITE_STYLESHEET = function (styleSheetId) {
6900
- return ENDPOINT$3 + "/style-sheet/" + styleSheetId;
6927
+ return ENDPOINT$4 + "/style-sheet/" + styleSheetId;
6901
6928
  };
6902
6929
  /**
6903
6930
  * api/web/crmcontact
@@ -6968,9 +6995,9 @@ var getStyleSheet = function (config, id, signal) {
6968
6995
  return get(url, apiKey, config.token, signal, true);
6969
6996
  };
6970
6997
 
6971
- var ENDPOINT$2 = "/api/web/contact";
6972
- var ENDPOINT_CONTACT_FORM = ENDPOINT$2 + "/contact-form";
6973
- var ENDPOINT_CONTACT_HAS_TAG = ENDPOINT$2 + "/has-tag";
6998
+ var ENDPOINT$3 = "/api/web/contact";
6999
+ var ENDPOINT_CONTACT_FORM = ENDPOINT$3 + "/contact-form";
7000
+ var ENDPOINT_CONTACT_HAS_TAG = ENDPOINT$3 + "/has-tag";
6974
7001
  /**
6975
7002
  * api/web/contact/contact-form
6976
7003
  * Processes a contact form.
@@ -6992,8 +7019,8 @@ var contactHasTag = function (config, request, signal) {
6992
7019
  return post$1(url, apiKey, body, config.token, signal);
6993
7020
  };
6994
7021
 
6995
- var ENDPOINT$1 = "/api/web/file";
6996
- var ENDPOINT_FEED = ENDPOINT$1 + "/feed";
7022
+ var ENDPOINT$2 = "/api/web/file";
7023
+ var ENDPOINT_FEED = ENDPOINT$2 + "/feed";
6997
7024
  /**
6998
7025
  * api/web/file/feed
6999
7026
  * fetch a xml from blob feed.
@@ -7022,16 +7049,16 @@ var feedXmlFolder = function (config, slug, folder, signal) {
7022
7049
  return get$1(url, apiKey, config.token, signal);
7023
7050
  };
7024
7051
 
7025
- var ENDPOINT = "/api/web/packaging";
7026
- var ENDPOINT_START_TRANSACTION = ENDPOINT + "/start";
7027
- var ENDPOINT_ACCOMMODATIONS = ENDPOINT + "/accommodations";
7028
- var ENDPOINT_EXCURSIONS = ENDPOINT + "/excursions";
7029
- var ENDPOINT_FLIGHTS = ENDPOINT + "/flights";
7030
- var ENDPOINT_PRICE_DETAILS = ENDPOINT + "/price-details";
7031
- var ENDPOINT_BOOK = ENDPOINT + "/book";
7032
- var ENDPOINT_ITINERARY = ENDPOINT + "/itinerary";
7052
+ var ENDPOINT$1 = "/api/web/packaging";
7053
+ var ENDPOINT_START_TRANSACTION = ENDPOINT$1 + "/start";
7054
+ var ENDPOINT_ACCOMMODATIONS = ENDPOINT$1 + "/accommodations";
7055
+ var ENDPOINT_EXCURSIONS = ENDPOINT$1 + "/excursions";
7056
+ var ENDPOINT_FLIGHTS = ENDPOINT$1 + "/flights";
7057
+ var ENDPOINT_PRICE_DETAILS = ENDPOINT$1 + "/price-details";
7058
+ var ENDPOINT_BOOK = ENDPOINT$1 + "/book";
7059
+ var ENDPOINT_ITINERARY = ENDPOINT$1 + "/itinerary";
7033
7060
  var ENDPOINT_ENTRY = function (magicLinkCode) {
7034
- return ENDPOINT + "/entry/" + magicLinkCode;
7061
+ return ENDPOINT$1 + "/entry/" + magicLinkCode;
7035
7062
  };
7036
7063
  var startTransaction = function (config, signal) {
7037
7064
  var apiKey = config.apiKey;
@@ -7080,6 +7107,43 @@ var bookPackagingEntry = function (config, request, signal) {
7080
7107
  return post(url, apiKey, body, config.token, signal, true);
7081
7108
  };
7082
7109
 
7110
+ var ENDPOINT = "/api/web/form";
7111
+ var ENDPOINT_RETRIEVE = function (id) {
7112
+ return ENDPOINT + "/" + id + "/retrieve";
7113
+ };
7114
+ var ENDPOINT_SUBMIT = function (id) {
7115
+ return ENDPOINT + "/" + id + "/submit";
7116
+ };
7117
+ /**
7118
+ * api/web/form/:id
7119
+ * Retrieve a form.
7120
+ * @param config
7121
+ * @param request
7122
+ * @param signal
7123
+ * @returns TideWebForm
7124
+ */
7125
+ var readForm = function (config, id, contexts, languageCode, signal) {
7126
+ var url = "" + config.host + ENDPOINT_RETRIEVE(id);
7127
+ var apiKey = config.apiKey;
7128
+ var body = JSON.stringify(contexts);
7129
+ return post(url, apiKey, body, config.token, signal, true, languageCode);
7130
+ };
7131
+ /**
7132
+ * api/web/form/:id/submit
7133
+ * Submits the form data
7134
+ * @param config
7135
+ * @param id
7136
+ * @param request
7137
+ * @param signal
7138
+ * @returns OK on success
7139
+ */
7140
+ var submitForm = function (config, id, request, signal) {
7141
+ var url = "" + config.host + ENDPOINT_SUBMIT(id);
7142
+ var apiKey = config.apiKey;
7143
+ var body = JSON.stringify(request);
7144
+ return post(url, apiKey, body, config.token, signal);
7145
+ };
7146
+
7083
7147
  exports.AllotmentType = AllotmentType;
7084
7148
  exports.ContactForm = ContactForm;
7085
7149
  exports.DataType = DataType;
@@ -7087,6 +7151,9 @@ exports.DossierType = DossierType;
7087
7151
  exports.EntryLineFlag = EntryLineFlag;
7088
7152
  exports.EntryLineStatus = EntryLineStatus;
7089
7153
  exports.ExportStatus = ExportStatus;
7154
+ exports.FormFieldType = FormFieldType;
7155
+ exports.FormFieldWidth = FormFieldWidth;
7156
+ exports.FormType = FormType;
7090
7157
  exports.Gender = Gender;
7091
7158
  exports.MetaDataType = MetaDataType;
7092
7159
  exports.PaymentType = PaymentType;
@@ -7146,6 +7213,7 @@ exports.logout = logout;
7146
7213
  exports.priceDetails = priceDetails;
7147
7214
  exports.prices = prices;
7148
7215
  exports.print = print;
7216
+ exports.readForm = readForm;
7149
7217
  exports.resetPassword = resetPassword;
7150
7218
  exports.search = search;
7151
7219
  exports.searchCountries = searchCountries;
@@ -7161,6 +7229,7 @@ exports.searchWithErrorMapping = searchWithErrorMapping;
7161
7229
  exports.setCustomEntryStatus = setCustomEntryStatus;
7162
7230
  exports.setEntryStatus = setEntryStatus;
7163
7231
  exports.startTransaction = startTransaction;
7232
+ exports.submitForm = submitForm;
7164
7233
  exports.tourCodes = tourCodes;
7165
7234
  exports.transportDates = transportDates;
7166
7235
  exports.update = update;