@qite/tide-client 1.1.15 → 1.1.17

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 CHANGED
@@ -275,6 +275,7 @@ var get$1 = function (url, apiKey, signal) {
275
275
  fetch(url, {
276
276
  method: "GET",
277
277
  headers: {
278
+ "Content-Type": "application/json",
278
279
  "Api-Key": apiKey,
279
280
  },
280
281
  credentials: "include",
@@ -6327,8 +6328,15 @@ var agents = function (config, signal) {
6327
6328
  var apiKey = config.apiKey;
6328
6329
  return get(url, apiKey, signal, true);
6329
6330
  };
6330
- var getAllotmentAvailability = function (config, eventId, signal) {
6331
- var url = "" + config.host + ENDPOINT_AVAILABLE_ALLOTMENTS + "/" + eventId;
6331
+ var getAllotmentAvailability = function (config, eventId, productCode, signal) {
6332
+ var url =
6333
+ "" +
6334
+ config.host +
6335
+ ENDPOINT_AVAILABLE_ALLOTMENTS +
6336
+ "/" +
6337
+ eventId +
6338
+ "/" +
6339
+ productCode;
6332
6340
  var apiKey = config.apiKey;
6333
6341
  return get(url, apiKey, signal, true);
6334
6342
  };
@@ -6438,7 +6446,7 @@ var print = function (config, request, signal) {
6438
6446
  var url = "" + config.host + ENDPOINT_PRINT;
6439
6447
  var apiKey = config.apiKey;
6440
6448
  var body = JSON.stringify(request);
6441
- return post(url, apiKey, body, signal, true);
6449
+ return post$1(url, apiKey, body, signal);
6442
6450
  };
6443
6451
 
6444
6452
  var ENDPOINT$2 = "/api/web";