@algolia/ingestion 1.0.0-alpha.65 → 1.0.0-alpha.71

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.
@@ -1 +1 @@
1
- {"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../builds/browser.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAW5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAOtE,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,MAAM,EACN,iBAAiB,EACjB,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,wBAAwB,CAAC;AAChC,cAAc,UAAU,CAAC;AAEzB,wBAAgB,eAAe,CAC7B,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,aAAa,GACtB,eAAe,CA0CjB"}
1
+ {"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../builds/browser.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAW5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAOtE,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,MAAM,EACN,iBAAiB,EACjB,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,wBAAwB,CAAC;AAChC,cAAc,UAAU,CAAC;AAEzB,wBAAgB,eAAe,CAC7B,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,aAAa,GACtB,eAAe,CAwCjB"}
@@ -1 +1 @@
1
- {"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../builds/node.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAU5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAGtE,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,MAAM,EACN,iBAAiB,EACjB,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,wBAAwB,CAAC;AAChC,cAAc,UAAU,CAAC;AAEzB,wBAAgB,eAAe,CAC7B,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,aAAa,GACtB,eAAe,CAoCjB"}
1
+ {"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../builds/node.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAU5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAGtE,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,MAAM,EACN,iBAAiB,EACjB,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,wBAAwB,CAAC;AAChC,cAAc,UAAU,CAAC;AAEzB,wBAAgB,eAAe,CAC7B,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,aAAa,GACtB,eAAe,CAkCjB"}
@@ -4,7 +4,7 @@ var clientCommon = require('@algolia/client-common');
4
4
  var requesterNodeHttp = require('@algolia/requester-node-http');
5
5
 
6
6
  // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
7
- const apiClientVersion = '1.0.0-alpha.65';
7
+ const apiClientVersion = '1.0.0-alpha.71';
8
8
  const REGIONS = ['eu', 'us'];
9
9
  function getDefaultHosts(region) {
10
10
  const url = 'data.{region}.algolia.com'.replace('{region}', region);
@@ -223,14 +223,14 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
223
223
  * This method allow you to send requests to the Algolia REST API.
224
224
  *
225
225
  * @summary Send requests to the Algolia REST API.
226
- * @param del - The del object.
227
- * @param del.path - Path of the endpoint, anything after \"/1\" must be specified.
228
- * @param del.parameters - Query parameters to apply to the current query.
226
+ * @param customDelete - The customDelete object.
227
+ * @param customDelete.path - Path of the endpoint, anything after \"/1\" must be specified.
228
+ * @param customDelete.parameters - Query parameters to apply to the current query.
229
229
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
230
230
  */
231
- del({ path, parameters }, requestOptions) {
231
+ customDelete({ path, parameters }, requestOptions) {
232
232
  if (!path) {
233
- throw new Error('Parameter `path` is required when calling `del`.');
233
+ throw new Error('Parameter `path` is required when calling `customDelete`.');
234
234
  }
235
235
  const requestPath = '/1{path}'.replace('{path}', path);
236
236
  const headers = {};
@@ -243,6 +243,82 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
243
243
  };
244
244
  return transporter.request(request, requestOptions);
245
245
  },
246
+ /**
247
+ * This method allow you to send requests to the Algolia REST API.
248
+ *
249
+ * @summary Send requests to the Algolia REST API.
250
+ * @param customGet - The customGet object.
251
+ * @param customGet.path - Path of the endpoint, anything after \"/1\" must be specified.
252
+ * @param customGet.parameters - Query parameters to apply to the current query.
253
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
254
+ */
255
+ customGet({ path, parameters }, requestOptions) {
256
+ if (!path) {
257
+ throw new Error('Parameter `path` is required when calling `customGet`.');
258
+ }
259
+ const requestPath = '/1{path}'.replace('{path}', path);
260
+ const headers = {};
261
+ const queryParameters = parameters ? parameters : {};
262
+ const request = {
263
+ method: 'GET',
264
+ path: requestPath,
265
+ queryParameters,
266
+ headers,
267
+ };
268
+ return transporter.request(request, requestOptions);
269
+ },
270
+ /**
271
+ * This method allow you to send requests to the Algolia REST API.
272
+ *
273
+ * @summary Send requests to the Algolia REST API.
274
+ * @param customPost - The customPost object.
275
+ * @param customPost.path - Path of the endpoint, anything after \"/1\" must be specified.
276
+ * @param customPost.parameters - Query parameters to apply to the current query.
277
+ * @param customPost.body - Parameters to send with the custom request.
278
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
279
+ */
280
+ customPost({ path, parameters, body }, requestOptions) {
281
+ if (!path) {
282
+ throw new Error('Parameter `path` is required when calling `customPost`.');
283
+ }
284
+ const requestPath = '/1{path}'.replace('{path}', path);
285
+ const headers = {};
286
+ const queryParameters = parameters ? parameters : {};
287
+ const request = {
288
+ method: 'POST',
289
+ path: requestPath,
290
+ queryParameters,
291
+ headers,
292
+ data: body ? body : {},
293
+ };
294
+ return transporter.request(request, requestOptions);
295
+ },
296
+ /**
297
+ * This method allow you to send requests to the Algolia REST API.
298
+ *
299
+ * @summary Send requests to the Algolia REST API.
300
+ * @param customPut - The customPut object.
301
+ * @param customPut.path - Path of the endpoint, anything after \"/1\" must be specified.
302
+ * @param customPut.parameters - Query parameters to apply to the current query.
303
+ * @param customPut.body - Parameters to send with the custom request.
304
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
305
+ */
306
+ customPut({ path, parameters, body }, requestOptions) {
307
+ if (!path) {
308
+ throw new Error('Parameter `path` is required when calling `customPut`.');
309
+ }
310
+ const requestPath = '/1{path}'.replace('{path}', path);
311
+ const headers = {};
312
+ const queryParameters = parameters ? parameters : {};
313
+ const request = {
314
+ method: 'PUT',
315
+ path: requestPath,
316
+ queryParameters,
317
+ headers,
318
+ data: body ? body : {},
319
+ };
320
+ return transporter.request(request, requestOptions);
321
+ },
246
322
  /**
247
323
  * Soft delete the authentication of the given authenticationID.
248
324
  *
@@ -381,30 +457,6 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
381
457
  };
382
458
  return transporter.request(request, requestOptions);
383
459
  },
384
- /**
385
- * This method allow you to send requests to the Algolia REST API.
386
- *
387
- * @summary Send requests to the Algolia REST API.
388
- * @param get - The get object.
389
- * @param get.path - Path of the endpoint, anything after \"/1\" must be specified.
390
- * @param get.parameters - Query parameters to apply to the current query.
391
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
392
- */
393
- get({ path, parameters }, requestOptions) {
394
- if (!path) {
395
- throw new Error('Parameter `path` is required when calling `get`.');
396
- }
397
- const requestPath = '/1{path}'.replace('{path}', path);
398
- const headers = {};
399
- const queryParameters = parameters ? parameters : {};
400
- const request = {
401
- method: 'GET',
402
- path: requestPath,
403
- queryParameters,
404
- headers,
405
- };
406
- return transporter.request(request, requestOptions);
407
- },
408
460
  /**
409
461
  * Get the authentication of the given authenticationID.
410
462
  *
@@ -862,58 +914,6 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
862
914
  };
863
915
  return transporter.request(request, requestOptions);
864
916
  },
865
- /**
866
- * This method allow you to send requests to the Algolia REST API.
867
- *
868
- * @summary Send requests to the Algolia REST API.
869
- * @param post - The post object.
870
- * @param post.path - Path of the endpoint, anything after \"/1\" must be specified.
871
- * @param post.parameters - Query parameters to apply to the current query.
872
- * @param post.body - Parameters to send with the custom request.
873
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
874
- */
875
- post({ path, parameters, body }, requestOptions) {
876
- if (!path) {
877
- throw new Error('Parameter `path` is required when calling `post`.');
878
- }
879
- const requestPath = '/1{path}'.replace('{path}', path);
880
- const headers = {};
881
- const queryParameters = parameters ? parameters : {};
882
- const request = {
883
- method: 'POST',
884
- path: requestPath,
885
- queryParameters,
886
- headers,
887
- data: body ? body : {},
888
- };
889
- return transporter.request(request, requestOptions);
890
- },
891
- /**
892
- * This method allow you to send requests to the Algolia REST API.
893
- *
894
- * @summary Send requests to the Algolia REST API.
895
- * @param put - The put object.
896
- * @param put.path - Path of the endpoint, anything after \"/1\" must be specified.
897
- * @param put.parameters - Query parameters to apply to the current query.
898
- * @param put.body - Parameters to send with the custom request.
899
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
900
- */
901
- put({ path, parameters, body }, requestOptions) {
902
- if (!path) {
903
- throw new Error('Parameter `path` is required when calling `put`.');
904
- }
905
- const requestPath = '/1{path}'.replace('{path}', path);
906
- const headers = {};
907
- const queryParameters = parameters ? parameters : {};
908
- const request = {
909
- method: 'PUT',
910
- path: requestPath,
911
- queryParameters,
912
- headers,
913
- data: body ? body : {},
914
- };
915
- return transporter.request(request, requestOptions);
916
- },
917
917
  /**
918
918
  * Run the task of the given taskID.
919
919
  *
@@ -26,14 +26,35 @@ function createBrowserLocalStorageCache(options) {
26
26
  function getNamespace() {
27
27
  return JSON.parse(getStorage().getItem(namespaceKey) || '{}');
28
28
  }
29
+ function setNamespace(namespace) {
30
+ getStorage().setItem(namespaceKey, JSON.stringify(namespace));
31
+ }
32
+ function removeOutdatedCacheItems() {
33
+ const timeToLive = options.timeToLive ? options.timeToLive * 1000 : null;
34
+ const namespace = getNamespace();
35
+ const filteredNamespaceWithoutOldFormattedCacheItems = Object.fromEntries(Object.entries(namespace).filter(([, cacheItem]) => {
36
+ return cacheItem.timestamp !== undefined;
37
+ }));
38
+ setNamespace(filteredNamespaceWithoutOldFormattedCacheItems);
39
+ if (!timeToLive) {
40
+ return;
41
+ }
42
+ const filteredNamespaceWithoutExpiredItems = Object.fromEntries(Object.entries(filteredNamespaceWithoutOldFormattedCacheItems).filter(([, cacheItem]) => {
43
+ const currentTimestamp = new Date().getTime();
44
+ const isExpired = cacheItem.timestamp + timeToLive < currentTimestamp;
45
+ return !isExpired;
46
+ }));
47
+ setNamespace(filteredNamespaceWithoutExpiredItems);
48
+ }
29
49
  return {
30
50
  get(key, defaultValue, events = {
31
51
  miss: () => Promise.resolve()
32
52
  }) {
33
53
  return Promise.resolve().then(() => {
34
- const keyAsString = JSON.stringify(key);
35
- const value = getNamespace()[keyAsString];
36
- return Promise.all([value || defaultValue(), value !== undefined]);
54
+ removeOutdatedCacheItems();
55
+ return getNamespace()[JSON.stringify(key)];
56
+ }).then(value => {
57
+ return Promise.all([value ? value.value : defaultValue(), value !== undefined]);
37
58
  }).then(([value, exists]) => {
38
59
  return Promise.all([value, exists || events.miss(value)]);
39
60
  }).then(([value]) => value);
@@ -41,7 +62,10 @@ function createBrowserLocalStorageCache(options) {
41
62
  set(key, value) {
42
63
  return Promise.resolve().then(() => {
43
64
  const namespace = getNamespace();
44
- namespace[JSON.stringify(key)] = value;
65
+ namespace[JSON.stringify(key)] = {
66
+ timestamp: new Date().getTime(),
67
+ value
68
+ };
45
69
  getStorage().setItem(namespaceKey, JSON.stringify(namespace));
46
70
  return value;
47
71
  });
@@ -171,6 +195,20 @@ function createStatefulHost(host, status = 'up') {
171
195
  };
172
196
  }
173
197
 
198
+ function _toPrimitive(t, r) {
199
+ if ("object" != typeof t || !t) return t;
200
+ var e = t[Symbol.toPrimitive];
201
+ if (void 0 !== e) {
202
+ var i = e.call(t, r || "default");
203
+ if ("object" != typeof i) return i;
204
+ throw new TypeError("@@toPrimitive must return a primitive value.");
205
+ }
206
+ return ("string" === r ? String : Number)(t);
207
+ }
208
+ function _toPropertyKey(t) {
209
+ var i = _toPrimitive(t, "string");
210
+ return "symbol" == typeof i ? i : String(i);
211
+ }
174
212
  function _defineProperty(obj, key, value) {
175
213
  key = _toPropertyKey(key);
176
214
  if (key in obj) {
@@ -185,20 +223,6 @@ function _defineProperty(obj, key, value) {
185
223
  }
186
224
  return obj;
187
225
  }
188
- function _toPrimitive(input, hint) {
189
- if (typeof input !== "object" || input === null) return input;
190
- var prim = input[Symbol.toPrimitive];
191
- if (prim !== undefined) {
192
- var res = prim.call(input, hint || "default");
193
- if (typeof res !== "object") return res;
194
- throw new TypeError("@@toPrimitive must return a primitive value.");
195
- }
196
- return (hint === "string" ? String : Number)(input);
197
- }
198
- function _toPropertyKey(arg) {
199
- var key = _toPrimitive(arg, "string");
200
- return typeof key === "symbol" ? key : String(key);
201
- }
202
226
 
203
227
  class AlgoliaError extends Error {
204
228
  constructor(message, name) {
@@ -219,7 +243,7 @@ class ErrorWithStackTrace extends AlgoliaError {
219
243
  }
220
244
  class RetryError extends ErrorWithStackTrace {
221
245
  constructor(stackTrace) {
222
- super('Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.', stackTrace, 'RetryError');
246
+ super('Unreachable hosts - your application id may be incorrect. If the error persists, please create a ticket at https://support.algolia.com/ sharing steps we can use to reproduce the issue.', stackTrace, 'RetryError');
223
247
  }
224
248
  }
225
249
  class ApiError extends ErrorWithStackTrace {
@@ -662,7 +686,7 @@ function createXhrRequester() {
662
686
  }
663
687
 
664
688
  // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
665
- const apiClientVersion = '1.0.0-alpha.65';
689
+ const apiClientVersion = '1.0.0-alpha.71';
666
690
  const REGIONS = ['eu', 'us'];
667
691
  function getDefaultHosts(region) {
668
692
  const url = 'data.{region}.algolia.com'.replace('{region}', region);
@@ -881,14 +905,14 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
881
905
  * This method allow you to send requests to the Algolia REST API.
882
906
  *
883
907
  * @summary Send requests to the Algolia REST API.
884
- * @param del - The del object.
885
- * @param del.path - Path of the endpoint, anything after \"/1\" must be specified.
886
- * @param del.parameters - Query parameters to apply to the current query.
908
+ * @param customDelete - The customDelete object.
909
+ * @param customDelete.path - Path of the endpoint, anything after \"/1\" must be specified.
910
+ * @param customDelete.parameters - Query parameters to apply to the current query.
887
911
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
888
912
  */
889
- del({ path, parameters }, requestOptions) {
913
+ customDelete({ path, parameters }, requestOptions) {
890
914
  if (!path) {
891
- throw new Error('Parameter `path` is required when calling `del`.');
915
+ throw new Error('Parameter `path` is required when calling `customDelete`.');
892
916
  }
893
917
  const requestPath = '/1{path}'.replace('{path}', path);
894
918
  const headers = {};
@@ -901,6 +925,82 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
901
925
  };
902
926
  return transporter.request(request, requestOptions);
903
927
  },
928
+ /**
929
+ * This method allow you to send requests to the Algolia REST API.
930
+ *
931
+ * @summary Send requests to the Algolia REST API.
932
+ * @param customGet - The customGet object.
933
+ * @param customGet.path - Path of the endpoint, anything after \"/1\" must be specified.
934
+ * @param customGet.parameters - Query parameters to apply to the current query.
935
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
936
+ */
937
+ customGet({ path, parameters }, requestOptions) {
938
+ if (!path) {
939
+ throw new Error('Parameter `path` is required when calling `customGet`.');
940
+ }
941
+ const requestPath = '/1{path}'.replace('{path}', path);
942
+ const headers = {};
943
+ const queryParameters = parameters ? parameters : {};
944
+ const request = {
945
+ method: 'GET',
946
+ path: requestPath,
947
+ queryParameters,
948
+ headers,
949
+ };
950
+ return transporter.request(request, requestOptions);
951
+ },
952
+ /**
953
+ * This method allow you to send requests to the Algolia REST API.
954
+ *
955
+ * @summary Send requests to the Algolia REST API.
956
+ * @param customPost - The customPost object.
957
+ * @param customPost.path - Path of the endpoint, anything after \"/1\" must be specified.
958
+ * @param customPost.parameters - Query parameters to apply to the current query.
959
+ * @param customPost.body - Parameters to send with the custom request.
960
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
961
+ */
962
+ customPost({ path, parameters, body }, requestOptions) {
963
+ if (!path) {
964
+ throw new Error('Parameter `path` is required when calling `customPost`.');
965
+ }
966
+ const requestPath = '/1{path}'.replace('{path}', path);
967
+ const headers = {};
968
+ const queryParameters = parameters ? parameters : {};
969
+ const request = {
970
+ method: 'POST',
971
+ path: requestPath,
972
+ queryParameters,
973
+ headers,
974
+ data: body ? body : {},
975
+ };
976
+ return transporter.request(request, requestOptions);
977
+ },
978
+ /**
979
+ * This method allow you to send requests to the Algolia REST API.
980
+ *
981
+ * @summary Send requests to the Algolia REST API.
982
+ * @param customPut - The customPut object.
983
+ * @param customPut.path - Path of the endpoint, anything after \"/1\" must be specified.
984
+ * @param customPut.parameters - Query parameters to apply to the current query.
985
+ * @param customPut.body - Parameters to send with the custom request.
986
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
987
+ */
988
+ customPut({ path, parameters, body }, requestOptions) {
989
+ if (!path) {
990
+ throw new Error('Parameter `path` is required when calling `customPut`.');
991
+ }
992
+ const requestPath = '/1{path}'.replace('{path}', path);
993
+ const headers = {};
994
+ const queryParameters = parameters ? parameters : {};
995
+ const request = {
996
+ method: 'PUT',
997
+ path: requestPath,
998
+ queryParameters,
999
+ headers,
1000
+ data: body ? body : {},
1001
+ };
1002
+ return transporter.request(request, requestOptions);
1003
+ },
904
1004
  /**
905
1005
  * Soft delete the authentication of the given authenticationID.
906
1006
  *
@@ -1039,30 +1139,6 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
1039
1139
  };
1040
1140
  return transporter.request(request, requestOptions);
1041
1141
  },
1042
- /**
1043
- * This method allow you to send requests to the Algolia REST API.
1044
- *
1045
- * @summary Send requests to the Algolia REST API.
1046
- * @param get - The get object.
1047
- * @param get.path - Path of the endpoint, anything after \"/1\" must be specified.
1048
- * @param get.parameters - Query parameters to apply to the current query.
1049
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1050
- */
1051
- get({ path, parameters }, requestOptions) {
1052
- if (!path) {
1053
- throw new Error('Parameter `path` is required when calling `get`.');
1054
- }
1055
- const requestPath = '/1{path}'.replace('{path}', path);
1056
- const headers = {};
1057
- const queryParameters = parameters ? parameters : {};
1058
- const request = {
1059
- method: 'GET',
1060
- path: requestPath,
1061
- queryParameters,
1062
- headers,
1063
- };
1064
- return transporter.request(request, requestOptions);
1065
- },
1066
1142
  /**
1067
1143
  * Get the authentication of the given authenticationID.
1068
1144
  *
@@ -1520,58 +1596,6 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
1520
1596
  };
1521
1597
  return transporter.request(request, requestOptions);
1522
1598
  },
1523
- /**
1524
- * This method allow you to send requests to the Algolia REST API.
1525
- *
1526
- * @summary Send requests to the Algolia REST API.
1527
- * @param post - The post object.
1528
- * @param post.path - Path of the endpoint, anything after \"/1\" must be specified.
1529
- * @param post.parameters - Query parameters to apply to the current query.
1530
- * @param post.body - Parameters to send with the custom request.
1531
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1532
- */
1533
- post({ path, parameters, body }, requestOptions) {
1534
- if (!path) {
1535
- throw new Error('Parameter `path` is required when calling `post`.');
1536
- }
1537
- const requestPath = '/1{path}'.replace('{path}', path);
1538
- const headers = {};
1539
- const queryParameters = parameters ? parameters : {};
1540
- const request = {
1541
- method: 'POST',
1542
- path: requestPath,
1543
- queryParameters,
1544
- headers,
1545
- data: body ? body : {},
1546
- };
1547
- return transporter.request(request, requestOptions);
1548
- },
1549
- /**
1550
- * This method allow you to send requests to the Algolia REST API.
1551
- *
1552
- * @summary Send requests to the Algolia REST API.
1553
- * @param put - The put object.
1554
- * @param put.path - Path of the endpoint, anything after \"/1\" must be specified.
1555
- * @param put.parameters - Query parameters to apply to the current query.
1556
- * @param put.body - Parameters to send with the custom request.
1557
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1558
- */
1559
- put({ path, parameters, body }, requestOptions) {
1560
- if (!path) {
1561
- throw new Error('Parameter `path` is required when calling `put`.');
1562
- }
1563
- const requestPath = '/1{path}'.replace('{path}', path);
1564
- const headers = {};
1565
- const queryParameters = parameters ? parameters : {};
1566
- const request = {
1567
- method: 'PUT',
1568
- path: requestPath,
1569
- queryParameters,
1570
- headers,
1571
- data: body ? body : {},
1572
- };
1573
- return transporter.request(request, requestOptions);
1574
- },
1575
1599
  /**
1576
1600
  * Run the task of the given taskID.
1577
1601
  *
@@ -2,7 +2,7 @@ import { createAuth, createTransporter, getAlgoliaAgent, DEFAULT_CONNECT_TIMEOUT
2
2
  import { createHttpRequester } from '@algolia/requester-node-http';
3
3
 
4
4
  // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
5
- const apiClientVersion = '1.0.0-alpha.65';
5
+ const apiClientVersion = '1.0.0-alpha.71';
6
6
  const REGIONS = ['eu', 'us'];
7
7
  function getDefaultHosts(region) {
8
8
  const url = 'data.{region}.algolia.com'.replace('{region}', region);
@@ -221,14 +221,14 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
221
221
  * This method allow you to send requests to the Algolia REST API.
222
222
  *
223
223
  * @summary Send requests to the Algolia REST API.
224
- * @param del - The del object.
225
- * @param del.path - Path of the endpoint, anything after \"/1\" must be specified.
226
- * @param del.parameters - Query parameters to apply to the current query.
224
+ * @param customDelete - The customDelete object.
225
+ * @param customDelete.path - Path of the endpoint, anything after \"/1\" must be specified.
226
+ * @param customDelete.parameters - Query parameters to apply to the current query.
227
227
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
228
228
  */
229
- del({ path, parameters }, requestOptions) {
229
+ customDelete({ path, parameters }, requestOptions) {
230
230
  if (!path) {
231
- throw new Error('Parameter `path` is required when calling `del`.');
231
+ throw new Error('Parameter `path` is required when calling `customDelete`.');
232
232
  }
233
233
  const requestPath = '/1{path}'.replace('{path}', path);
234
234
  const headers = {};
@@ -241,6 +241,82 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
241
241
  };
242
242
  return transporter.request(request, requestOptions);
243
243
  },
244
+ /**
245
+ * This method allow you to send requests to the Algolia REST API.
246
+ *
247
+ * @summary Send requests to the Algolia REST API.
248
+ * @param customGet - The customGet object.
249
+ * @param customGet.path - Path of the endpoint, anything after \"/1\" must be specified.
250
+ * @param customGet.parameters - Query parameters to apply to the current query.
251
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
252
+ */
253
+ customGet({ path, parameters }, requestOptions) {
254
+ if (!path) {
255
+ throw new Error('Parameter `path` is required when calling `customGet`.');
256
+ }
257
+ const requestPath = '/1{path}'.replace('{path}', path);
258
+ const headers = {};
259
+ const queryParameters = parameters ? parameters : {};
260
+ const request = {
261
+ method: 'GET',
262
+ path: requestPath,
263
+ queryParameters,
264
+ headers,
265
+ };
266
+ return transporter.request(request, requestOptions);
267
+ },
268
+ /**
269
+ * This method allow you to send requests to the Algolia REST API.
270
+ *
271
+ * @summary Send requests to the Algolia REST API.
272
+ * @param customPost - The customPost object.
273
+ * @param customPost.path - Path of the endpoint, anything after \"/1\" must be specified.
274
+ * @param customPost.parameters - Query parameters to apply to the current query.
275
+ * @param customPost.body - Parameters to send with the custom request.
276
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
277
+ */
278
+ customPost({ path, parameters, body }, requestOptions) {
279
+ if (!path) {
280
+ throw new Error('Parameter `path` is required when calling `customPost`.');
281
+ }
282
+ const requestPath = '/1{path}'.replace('{path}', path);
283
+ const headers = {};
284
+ const queryParameters = parameters ? parameters : {};
285
+ const request = {
286
+ method: 'POST',
287
+ path: requestPath,
288
+ queryParameters,
289
+ headers,
290
+ data: body ? body : {},
291
+ };
292
+ return transporter.request(request, requestOptions);
293
+ },
294
+ /**
295
+ * This method allow you to send requests to the Algolia REST API.
296
+ *
297
+ * @summary Send requests to the Algolia REST API.
298
+ * @param customPut - The customPut object.
299
+ * @param customPut.path - Path of the endpoint, anything after \"/1\" must be specified.
300
+ * @param customPut.parameters - Query parameters to apply to the current query.
301
+ * @param customPut.body - Parameters to send with the custom request.
302
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
303
+ */
304
+ customPut({ path, parameters, body }, requestOptions) {
305
+ if (!path) {
306
+ throw new Error('Parameter `path` is required when calling `customPut`.');
307
+ }
308
+ const requestPath = '/1{path}'.replace('{path}', path);
309
+ const headers = {};
310
+ const queryParameters = parameters ? parameters : {};
311
+ const request = {
312
+ method: 'PUT',
313
+ path: requestPath,
314
+ queryParameters,
315
+ headers,
316
+ data: body ? body : {},
317
+ };
318
+ return transporter.request(request, requestOptions);
319
+ },
244
320
  /**
245
321
  * Soft delete the authentication of the given authenticationID.
246
322
  *
@@ -379,30 +455,6 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
379
455
  };
380
456
  return transporter.request(request, requestOptions);
381
457
  },
382
- /**
383
- * This method allow you to send requests to the Algolia REST API.
384
- *
385
- * @summary Send requests to the Algolia REST API.
386
- * @param get - The get object.
387
- * @param get.path - Path of the endpoint, anything after \"/1\" must be specified.
388
- * @param get.parameters - Query parameters to apply to the current query.
389
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
390
- */
391
- get({ path, parameters }, requestOptions) {
392
- if (!path) {
393
- throw new Error('Parameter `path` is required when calling `get`.');
394
- }
395
- const requestPath = '/1{path}'.replace('{path}', path);
396
- const headers = {};
397
- const queryParameters = parameters ? parameters : {};
398
- const request = {
399
- method: 'GET',
400
- path: requestPath,
401
- queryParameters,
402
- headers,
403
- };
404
- return transporter.request(request, requestOptions);
405
- },
406
458
  /**
407
459
  * Get the authentication of the given authenticationID.
408
460
  *
@@ -860,58 +912,6 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
860
912
  };
861
913
  return transporter.request(request, requestOptions);
862
914
  },
863
- /**
864
- * This method allow you to send requests to the Algolia REST API.
865
- *
866
- * @summary Send requests to the Algolia REST API.
867
- * @param post - The post object.
868
- * @param post.path - Path of the endpoint, anything after \"/1\" must be specified.
869
- * @param post.parameters - Query parameters to apply to the current query.
870
- * @param post.body - Parameters to send with the custom request.
871
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
872
- */
873
- post({ path, parameters, body }, requestOptions) {
874
- if (!path) {
875
- throw new Error('Parameter `path` is required when calling `post`.');
876
- }
877
- const requestPath = '/1{path}'.replace('{path}', path);
878
- const headers = {};
879
- const queryParameters = parameters ? parameters : {};
880
- const request = {
881
- method: 'POST',
882
- path: requestPath,
883
- queryParameters,
884
- headers,
885
- data: body ? body : {},
886
- };
887
- return transporter.request(request, requestOptions);
888
- },
889
- /**
890
- * This method allow you to send requests to the Algolia REST API.
891
- *
892
- * @summary Send requests to the Algolia REST API.
893
- * @param put - The put object.
894
- * @param put.path - Path of the endpoint, anything after \"/1\" must be specified.
895
- * @param put.parameters - Query parameters to apply to the current query.
896
- * @param put.body - Parameters to send with the custom request.
897
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
898
- */
899
- put({ path, parameters, body }, requestOptions) {
900
- if (!path) {
901
- throw new Error('Parameter `path` is required when calling `put`.');
902
- }
903
- const requestPath = '/1{path}'.replace('{path}', path);
904
- const headers = {};
905
- const queryParameters = parameters ? parameters : {};
906
- const request = {
907
- method: 'PUT',
908
- path: requestPath,
909
- queryParameters,
910
- headers,
911
- data: body ? body : {},
912
- };
913
- return transporter.request(request, requestOptions);
914
- },
915
915
  /**
916
916
  * Run the task of the given taskID.
917
917
  *
@@ -1,2 +1,2 @@
1
- /*! ingestion.umd.js | 1.0.0-alpha.65 | © Algolia, inc. | https://github.com/algolia/algoliasearch-client-javascript */
2
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["@algolia/ingestion"]={})}(this,(function(e){"use strict";function t(e){let t;const r=`algolia-client-js-${e.key}`;function a(){return void 0===t&&(t=e.localStorage||window.localStorage),t}function n(){return JSON.parse(a().getItem(r)||"{}")}return{get:(e,t,r={miss:()=>Promise.resolve()})=>Promise.resolve().then((()=>{const r=JSON.stringify(e),a=n()[r];return Promise.all([a||t(),void 0!==a])})).then((([e,t])=>Promise.all([e,t||r.miss(e)]))).then((([e])=>e)),set:(e,t)=>Promise.resolve().then((()=>{const s=n();return s[JSON.stringify(e)]=t,a().setItem(r,JSON.stringify(s)),t})),delete:e=>Promise.resolve().then((()=>{const t=n();delete t[JSON.stringify(e)],a().setItem(r,JSON.stringify(t))})),clear:()=>Promise.resolve().then((()=>{a().removeItem(r)}))}}function r(e){const t=[...e.caches],a=t.shift();return void 0===a?{get:(e,t,r={miss:()=>Promise.resolve()})=>t().then((e=>Promise.all([e,r.miss(e)]))).then((([e])=>e)),set:(e,t)=>Promise.resolve(t),delete:e=>Promise.resolve(),clear:()=>Promise.resolve()}:{get:(e,n,s={miss:()=>Promise.resolve()})=>a.get(e,n,s).catch((()=>r({caches:t}).get(e,n,s))),set:(e,n)=>a.set(e,n).catch((()=>r({caches:t}).set(e,n))),delete:e=>a.delete(e).catch((()=>r({caches:t}).delete(e))),clear:()=>a.clear().catch((()=>r({caches:t}).clear()))}}function a(e={serializable:!0}){let t={};return{get(r,a,n={miss:()=>Promise.resolve()}){const s=JSON.stringify(r);if(s in t)return Promise.resolve(e.serializable?JSON.parse(t[s]):t[s]);const o=a();return o.then((e=>n.miss(e))).then((()=>o))},set:(r,a)=>(t[JSON.stringify(r)]=e.serializable?JSON.stringify(a):a,Promise.resolve(a)),delete:e=>(delete t[JSON.stringify(e)],Promise.resolve()),clear:()=>(t={},Promise.resolve())}}const n=12e4;function s(e,t="up"){const r=Date.now();return{...e,status:t,lastUpdate:r,isUp:function(){return"up"===t||Date.now()-r>n},isTimedOut:function(){return"timed out"===t&&Date.now()-r<=n}}}function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class i extends Error{constructor(e,t){super(e),o(this,"name","AlgoliaError"),t&&(this.name=t)}}class u extends i{constructor(e,t,r){super(e,r),o(this,"stackTrace",void 0),this.stackTrace=t}}class c extends u{constructor(e){super("Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.",e,"RetryError")}}class d extends u{constructor(e,t,r,a="ApiError"){super(e,r,a),o(this,"status",void 0),this.status=t}}class h extends i{constructor(e,t){super(e,"DeserializationError"),o(this,"response",void 0),this.response=t}}class l extends d{constructor(e,t,r,a){super(e,t,a,"DetailedApiError"),o(this,"error",void 0),this.error=r}}function m(e,t,r){const a=function(e){const t=e=>"[object Object]"===Object.prototype.toString.call(e)||"[object Array]"===Object.prototype.toString.call(e);return Object.keys(e).map((r=>`${r}=${encodeURIComponent(t(e[r])?JSON.stringify(e[r]):e[r])}`)).join("&")}(r);let n=`${e.protocol}://${e.url}/${"/"===t.charAt(0)?t.substr(1):t}`;return a.length&&(n+=`?${a}`),n}function p(e){const t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return{...e,request:{...e.request,headers:{...e.request.headers,...t}}}}function g({hosts:e,hostsCache:t,baseHeaders:r,baseQueryParameters:a,algoliaAgent:n,timeouts:o,requester:i,requestsCache:u,responsesCache:g}){async function w(u,g,w=!0){const P=[],q=function(e,t){if("GET"===e.method||void 0===e.data&&void 0===t.data)return;const r=Array.isArray(e.data)?e.data:{...e.data,...t.data};return JSON.stringify(r)}(u,g),f=function(e,t,r){const a={Accept:"application/json",...e,...t,...r},n={};return Object.keys(a).forEach((e=>{const t=a[e];n[e.toLowerCase()]=t})),n}(r,u.headers,g.headers),D="GET"===u.method?{...u.data,...g.data}:{},I={...a,...u.queryParameters,...D};if(n.value&&(I["x-algolia-agent"]=n.value),g&&g.queryParameters)for(const e of Object.keys(g.queryParameters))g.queryParameters[e]&&"[object Object]"!==Object.prototype.toString.call(g.queryParameters[e])?I[e]=g.queryParameters[e].toString():I[e]=g.queryParameters[e];let y=0;const v=async(e,r)=>{const a=e.pop();if(void 0===a)throw new c(function(e){return e.map((e=>p(e)))}(P));let n=g.timeout;void 0===n&&(n=w?o.read:o.write);const D={data:q,headers:f,method:u.method,url:m(a,u.path,I),connectTimeout:r(y,o.connect),responseTimeout:r(y,n)},S=t=>{const r={request:D,response:t,host:a,triesLeft:e.length};return P.push(r),r},E=await i.send(D);if(function({isTimedOut:e,status:t}){return e||function({isTimedOut:e,status:t}){return!e&&0==~~t}({isTimedOut:e,status:t})||2!=~~(t/100)&&4!=~~(t/100)}(E)){const n=S(E);return E.isTimedOut&&y++,console.log("Retryable failure",p(n)),await t.set(a,s(a,E.isTimedOut?"timed out":"down")),v(e,r)}if(function({status:e}){return 2==~~(e/100)}(E))return function(e){try{return JSON.parse(e.content)}catch(t){throw new h(t.message,e)}}(E);throw S(E),function({content:e,status:t},r){try{const a=JSON.parse(e);return"error"in a?new l(a.message,t,a.error,r):new d(a.message,t,r)}catch(e){}return new d(e,t,r)}(E,P)},S=e.filter((e=>"readWrite"===e.accept||(w?"read"===e.accept:"write"===e.accept))),E=await async function(e){const r=await Promise.all(e.map((e=>t.get(e,(()=>Promise.resolve(s(e))))))),a=r.filter((e=>e.isUp())),n=r.filter((e=>e.isTimedOut())),o=[...a,...n];return{hosts:o.length>0?o:e,getTimeout:(e,t)=>(0===n.length&&0===e?1:n.length+3+e)*t}}(S);return v([...E.hosts].reverse(),E.getTimeout)}return{hostsCache:t,requester:i,timeouts:o,algoliaAgent:n,baseHeaders:r,baseQueryParameters:a,hosts:e,request:function(e,t={}){const n=e.useReadTransporter||"GET"===e.method;if(!n)return w(e,t,n);const s=()=>w(e,t);if(!0!==(t.cacheable||e.cacheable))return s();const o={request:e,requestOptions:t,transporter:{queryParameters:a,headers:r}};return g.get(o,(()=>u.get(o,(()=>u.set(o,s()).then((e=>Promise.all([u.delete(o),e])),(e=>Promise.all([u.delete(o),Promise.reject(e)]))).then((([e,t])=>t))))),{miss:e=>g.set(o,e)})},requestsCache:u,responsesCache:g}}function w({algoliaAgents:e,client:t,version:r}){const a=function(e){const t={value:`Algolia for JavaScript (${e})`,add(e){const r=`; ${e.segment}${void 0!==e.version?` (${e.version})`:""}`;return-1===t.value.indexOf(r)&&(t.value=`${t.value}${r}`),t}};return t}(r).add({segment:t,version:r});return e.forEach((e=>a.add(e))),a}const P="1.0.0-alpha.65",q=["eu","us"];e.apiClientVersion=P,e.ingestionClient=function(e,n,s,o){if(!e||"string"!=typeof e)throw new Error("`appId` is missing.");if(!n||"string"!=typeof n)throw new Error("`apiKey` is missing.");if(!s||s&&("string"!=typeof s||!q.includes(s)))throw new Error(`\`region\` is required and must be one of the following: ${q.join(", ")}`);return function({appId:e,apiKey:t,authMode:r,algoliaAgents:a,region:n,...s}){const o=function(e,t,r="WithinHeaders"){const a={"x-algolia-api-key":t,"x-algolia-application-id":e};return{headers:()=>"WithinHeaders"===r?a:{},queryParameters:()=>"WithinQueryParameters"===r?a:{}}}(e,t,r),i=g({hosts:(u=n,[{url:"data.{region}.algolia.com".replace("{region}",u),accept:"readWrite",protocol:"https"}]),...s,algoliaAgent:w({algoliaAgents:a,client:"Ingestion",version:P}),baseHeaders:{"content-type":"text/plain",...o.headers(),...s.baseHeaders},baseQueryParameters:{...o.queryParameters(),...s.baseQueryParameters}});var u;return{transporter:i,appId:e,clearCache:()=>Promise.all([i.requestsCache.clear(),i.responsesCache.clear()]).then((()=>{})),get _ua(){return i.algoliaAgent.value},addAlgoliaAgent(e,t){i.algoliaAgent.add({segment:e,version:t})},createAuthentication(e,t){if(!e)throw new Error("Parameter `authenticationCreate` is required when calling `createAuthentication`.");if(!e.type)throw new Error("Parameter `authenticationCreate.type` is required when calling `createAuthentication`.");if(!e.name)throw new Error("Parameter `authenticationCreate.name` is required when calling `createAuthentication`.");if(!e.input)throw new Error("Parameter `authenticationCreate.input` is required when calling `createAuthentication`.");const r={method:"POST",path:"/1/authentications",queryParameters:{},headers:{},data:e};return i.request(r,t)},createDestination(e,t){if(!e)throw new Error("Parameter `destinationCreate` is required when calling `createDestination`.");if(!e.type)throw new Error("Parameter `destinationCreate.type` is required when calling `createDestination`.");if(!e.name)throw new Error("Parameter `destinationCreate.name` is required when calling `createDestination`.");if(!e.input)throw new Error("Parameter `destinationCreate.input` is required when calling `createDestination`.");const r={method:"POST",path:"/1/destinations",queryParameters:{},headers:{},data:e};return i.request(r,t)},createSource(e,t){if(!e)throw new Error("Parameter `sourceCreate` is required when calling `createSource`.");if(!e.type)throw new Error("Parameter `sourceCreate.type` is required when calling `createSource`.");if(!e.name)throw new Error("Parameter `sourceCreate.name` is required when calling `createSource`.");if(!e.input)throw new Error("Parameter `sourceCreate.input` is required when calling `createSource`.");const r={method:"POST",path:"/1/sources",queryParameters:{},headers:{},data:e};return i.request(r,t)},createTask(e,t){if(!e)throw new Error("Parameter `taskCreate` is required when calling `createTask`.");if(!e.sourceID)throw new Error("Parameter `taskCreate.sourceID` is required when calling `createTask`.");if(!e.destinationID)throw new Error("Parameter `taskCreate.destinationID` is required when calling `createTask`.");if(!e.trigger)throw new Error("Parameter `taskCreate.trigger` is required when calling `createTask`.");if(!e.action)throw new Error("Parameter `taskCreate.action` is required when calling `createTask`.");const r={method:"POST",path:"/1/tasks",queryParameters:{},headers:{},data:e};return i.request(r,t)},del({path:e,parameters:t},r){if(!e)throw new Error("Parameter `path` is required when calling `del`.");const a={method:"DELETE",path:"/1{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return i.request(a,r)},deleteAuthentication({authenticationID:e},t){if(!e)throw new Error("Parameter `authenticationID` is required when calling `deleteAuthentication`.");const r={method:"DELETE",path:"/1/authentications/{authenticationID}".replace("{authenticationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},deleteDestination({destinationID:e},t){if(!e)throw new Error("Parameter `destinationID` is required when calling `deleteDestination`.");const r={method:"DELETE",path:"/1/destinations/{destinationID}".replace("{destinationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},deleteSource({sourceID:e},t){if(!e)throw new Error("Parameter `sourceID` is required when calling `deleteSource`.");const r={method:"DELETE",path:"/1/sources/{sourceID}".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},deleteTask({taskID:e},t){if(!e)throw new Error("Parameter `taskID` is required when calling `deleteTask`.");const r={method:"DELETE",path:"/1/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},disableTask({taskID:e},t){if(!e)throw new Error("Parameter `taskID` is required when calling `disableTask`.");const r={method:"PUT",path:"/1/tasks/{taskID}/disable".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},enableTask({taskID:e},t){if(!e)throw new Error("Parameter `taskID` is required when calling `enableTask`.");const r={method:"PUT",path:"/1/tasks/{taskID}/enable".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},get({path:e,parameters:t},r){if(!e)throw new Error("Parameter `path` is required when calling `get`.");const a={method:"GET",path:"/1{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return i.request(a,r)},getAuthentication({authenticationID:e},t){if(!e)throw new Error("Parameter `authenticationID` is required when calling `getAuthentication`.");const r={method:"GET",path:"/1/authentications/{authenticationID}".replace("{authenticationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},getAuthentications({itemsPerPage:e,page:t,type:r,platform:a,sort:n,order:s}={},o=void 0){const u={};void 0!==e&&(u.itemsPerPage=e.toString()),void 0!==t&&(u.page=t.toString()),void 0!==r&&(u.type=r.toString()),void 0!==a&&(u.platform=a.toString()),void 0!==n&&(u.sort=n.toString()),void 0!==s&&(u.order=s.toString());const c={method:"GET",path:"/1/authentications",queryParameters:u,headers:{}};return i.request(c,o)},getDestination({destinationID:e},t){if(!e)throw new Error("Parameter `destinationID` is required when calling `getDestination`.");const r={method:"GET",path:"/1/destinations/{destinationID}".replace("{destinationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},getDestinations({itemsPerPage:e,page:t,type:r,authenticationID:a,sort:n,order:s}={},o=void 0){const u={};void 0!==e&&(u.itemsPerPage=e.toString()),void 0!==t&&(u.page=t.toString()),void 0!==r&&(u.type=r.toString()),void 0!==a&&(u.authenticationID=a.toString()),void 0!==n&&(u.sort=n.toString()),void 0!==s&&(u.order=s.toString());const c={method:"GET",path:"/1/destinations",queryParameters:u,headers:{}};return i.request(c,o)},getDockerSourceStreams({sourceID:e},t){if(!e)throw new Error("Parameter `sourceID` is required when calling `getDockerSourceStreams`.");const r={method:"GET",path:"/1/sources/{sourceID}/discover".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},getEvent({runID:e,eventID:t},r){if(!e)throw new Error("Parameter `runID` is required when calling `getEvent`.");if(!t)throw new Error("Parameter `eventID` is required when calling `getEvent`.");const a={method:"GET",path:"/1/runs/{runID}/events/{eventID}".replace("{runID}",encodeURIComponent(e)).replace("{eventID}",encodeURIComponent(t)),queryParameters:{},headers:{}};return i.request(a,r)},getEvents({runID:e,itemsPerPage:t,page:r,status:a,type:n,sort:s,order:o,startDate:u,endDate:c},d){if(!e)throw new Error("Parameter `runID` is required when calling `getEvents`.");const h="/1/runs/{runID}/events".replace("{runID}",encodeURIComponent(e)),l={};void 0!==t&&(l.itemsPerPage=t.toString()),void 0!==r&&(l.page=r.toString()),void 0!==a&&(l.status=a.toString()),void 0!==n&&(l.type=n.toString()),void 0!==s&&(l.sort=s.toString()),void 0!==o&&(l.order=o.toString()),void 0!==u&&(l.startDate=u.toString()),void 0!==c&&(l.endDate=c.toString());const m={method:"GET",path:h,queryParameters:l,headers:{}};return i.request(m,d)},getRun({runID:e},t){if(!e)throw new Error("Parameter `runID` is required when calling `getRun`.");const r={method:"GET",path:"/1/runs/{runID}".replace("{runID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},getRuns({itemsPerPage:e,page:t,status:r,taskID:a,sort:n,order:s,startDate:o,endDate:u}={},c=void 0){const d={};void 0!==e&&(d.itemsPerPage=e.toString()),void 0!==t&&(d.page=t.toString()),void 0!==r&&(d.status=r.toString()),void 0!==a&&(d.taskID=a.toString()),void 0!==n&&(d.sort=n.toString()),void 0!==s&&(d.order=s.toString()),void 0!==o&&(d.startDate=o.toString()),void 0!==u&&(d.endDate=u.toString());const h={method:"GET",path:"/1/runs",queryParameters:d,headers:{}};return i.request(h,c)},getSource({sourceID:e},t){if(!e)throw new Error("Parameter `sourceID` is required when calling `getSource`.");const r={method:"GET",path:"/1/sources/{sourceID}".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},getSources({itemsPerPage:e,page:t,type:r,authenticationID:a,sort:n,order:s}={},o=void 0){const u={};void 0!==e&&(u.itemsPerPage=e.toString()),void 0!==t&&(u.page=t.toString()),void 0!==r&&(u.type=r.toString()),void 0!==a&&(u.authenticationID=a.toString()),void 0!==n&&(u.sort=n.toString()),void 0!==s&&(u.order=s.toString());const c={method:"GET",path:"/1/sources",queryParameters:u,headers:{}};return i.request(c,o)},getTask({taskID:e},t){if(!e)throw new Error("Parameter `taskID` is required when calling `getTask`.");const r={method:"GET",path:"/1/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},getTasks({itemsPerPage:e,page:t,action:r,enabled:a,sourceID:n,destinationID:s,triggerType:o,sort:u,order:c}={},d=void 0){const h={};void 0!==e&&(h.itemsPerPage=e.toString()),void 0!==t&&(h.page=t.toString()),void 0!==r&&(h.action=r.toString()),void 0!==a&&(h.enabled=a.toString()),void 0!==n&&(h.sourceID=n.toString()),void 0!==s&&(h.destinationID=s.toString()),void 0!==o&&(h.triggerType=o.toString()),void 0!==u&&(h.sort=u.toString()),void 0!==c&&(h.order=c.toString());const l={method:"GET",path:"/1/tasks",queryParameters:h,headers:{}};return i.request(l,d)},post({path:e,parameters:t,body:r},a){if(!e)throw new Error("Parameter `path` is required when calling `post`.");const n={method:"POST",path:"/1{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return i.request(n,a)},put({path:e,parameters:t,body:r},a){if(!e)throw new Error("Parameter `path` is required when calling `put`.");const n={method:"PUT",path:"/1{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return i.request(n,a)},runTask({taskID:e},t){if(!e)throw new Error("Parameter `taskID` is required when calling `runTask`.");const r={method:"POST",path:"/1/tasks/{taskID}/run".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},searchAuthentications(e,t){if(!e)throw new Error("Parameter `authenticationSearch` is required when calling `searchAuthentications`.");if(!e.authenticationIDs)throw new Error("Parameter `authenticationSearch.authenticationIDs` is required when calling `searchAuthentications`.");const r={method:"POST",path:"/1/authentications/search",queryParameters:{},headers:{},data:e};return i.request(r,t)},searchDestinations(e,t){if(!e)throw new Error("Parameter `destinationSearch` is required when calling `searchDestinations`.");if(!e.destinationIDs)throw new Error("Parameter `destinationSearch.destinationIDs` is required when calling `searchDestinations`.");const r={method:"POST",path:"/1/destinations/search",queryParameters:{},headers:{},data:e};return i.request(r,t)},searchSources(e,t){if(!e)throw new Error("Parameter `sourceSearch` is required when calling `searchSources`.");if(!e.sourceIDs)throw new Error("Parameter `sourceSearch.sourceIDs` is required when calling `searchSources`.");const r={method:"POST",path:"/1/sources/search",queryParameters:{},headers:{},data:e};return i.request(r,t)},searchTasks(e,t){if(!e)throw new Error("Parameter `taskSearch` is required when calling `searchTasks`.");if(!e.taskIDs)throw new Error("Parameter `taskSearch.taskIDs` is required when calling `searchTasks`.");const r={method:"POST",path:"/1/tasks/search",queryParameters:{},headers:{},data:e};return i.request(r,t)},triggerDockerSourceDiscover({sourceID:e},t){if(!e)throw new Error("Parameter `sourceID` is required when calling `triggerDockerSourceDiscover`.");const r={method:"POST",path:"/1/sources/{sourceID}/discover".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},updateAuthentication({authenticationID:e,authenticationUpdate:t},r){if(!e)throw new Error("Parameter `authenticationID` is required when calling `updateAuthentication`.");if(!t)throw new Error("Parameter `authenticationUpdate` is required when calling `updateAuthentication`.");const a={method:"PATCH",path:"/1/authentications/{authenticationID}".replace("{authenticationID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return i.request(a,r)},updateDestination({destinationID:e,destinationUpdate:t},r){if(!e)throw new Error("Parameter `destinationID` is required when calling `updateDestination`.");if(!t)throw new Error("Parameter `destinationUpdate` is required when calling `updateDestination`.");const a={method:"PATCH",path:"/1/destinations/{destinationID}".replace("{destinationID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return i.request(a,r)},updateSource({sourceID:e,sourceUpdate:t},r){if(!e)throw new Error("Parameter `sourceID` is required when calling `updateSource`.");if(!t)throw new Error("Parameter `sourceUpdate` is required when calling `updateSource`.");const a={method:"PATCH",path:"/1/sources/{sourceID}".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return i.request(a,r)},updateTask({taskID:e,taskUpdate:t},r){if(!e)throw new Error("Parameter `taskID` is required when calling `updateTask`.");if(!t)throw new Error("Parameter `taskUpdate` is required when calling `updateTask`.");const a={method:"PATCH",path:"/1/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return i.request(a,r)}}}({appId:e,apiKey:n,region:s,timeouts:{connect:1e3,read:2e3,write:3e4},requester:{send:function(e){return new Promise((t=>{const r=new XMLHttpRequest;r.open(e.method,e.url,!0),Object.keys(e.headers).forEach((t=>r.setRequestHeader(t,e.headers[t])));const a=(e,a)=>setTimeout((()=>{r.abort(),t({status:0,content:a,isTimedOut:!0})}),e),n=a(e.connectTimeout,"Connection timeout");let s;r.onreadystatechange=()=>{r.readyState>r.OPENED&&void 0===s&&(clearTimeout(n),s=a(e.responseTimeout,"Socket timeout"))},r.onerror=()=>{0===r.status&&(clearTimeout(n),clearTimeout(s),t({content:r.responseText||"Network request failed",status:r.status,isTimedOut:!1}))},r.onload=()=>{clearTimeout(n),clearTimeout(s),t({content:r.responseText,status:r.status,isTimedOut:!1})},r.send(e.data)}))}},algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:a(),requestsCache:a({serializable:!1}),hostsCache:r({caches:[t({key:`${P}-${e}`}),a()]}),...o})},e.isOnDemandTrigger=function(e){return"onDemand"===e.type},e.isScheduleTrigger=function(e){return"schedule"===e.type},e.isSubscriptionTrigger=function(e){return"subscription"===e.type}}));
1
+ /*! ingestion.umd.js | 1.0.0-alpha.71 | © Algolia, inc. | https://github.com/algolia/algoliasearch-client-javascript */
2
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["@algolia/ingestion"]={})}(this,(function(e){"use strict";function t(e){let t;const r=`algolia-client-js-${e.key}`;function a(){return void 0===t&&(t=e.localStorage||window.localStorage),t}function n(){return JSON.parse(a().getItem(r)||"{}")}function s(e){a().setItem(r,JSON.stringify(e))}return{get:(t,r,a={miss:()=>Promise.resolve()})=>Promise.resolve().then((()=>(function(){const t=e.timeToLive?1e3*e.timeToLive:null,r=n(),a=Object.fromEntries(Object.entries(r).filter((([,e])=>void 0!==e.timestamp)));if(s(a),!t)return;s(Object.fromEntries(Object.entries(a).filter((([,e])=>{const r=(new Date).getTime();return!(e.timestamp+t<r)}))))}(),n()[JSON.stringify(t)]))).then((e=>Promise.all([e?e.value:r(),void 0!==e]))).then((([e,t])=>Promise.all([e,t||a.miss(e)]))).then((([e])=>e)),set:(e,t)=>Promise.resolve().then((()=>{const s=n();return s[JSON.stringify(e)]={timestamp:(new Date).getTime(),value:t},a().setItem(r,JSON.stringify(s)),t})),delete:e=>Promise.resolve().then((()=>{const t=n();delete t[JSON.stringify(e)],a().setItem(r,JSON.stringify(t))})),clear:()=>Promise.resolve().then((()=>{a().removeItem(r)}))}}function r(e){const t=[...e.caches],a=t.shift();return void 0===a?{get:(e,t,r={miss:()=>Promise.resolve()})=>t().then((e=>Promise.all([e,r.miss(e)]))).then((([e])=>e)),set:(e,t)=>Promise.resolve(t),delete:e=>Promise.resolve(),clear:()=>Promise.resolve()}:{get:(e,n,s={miss:()=>Promise.resolve()})=>a.get(e,n,s).catch((()=>r({caches:t}).get(e,n,s))),set:(e,n)=>a.set(e,n).catch((()=>r({caches:t}).set(e,n))),delete:e=>a.delete(e).catch((()=>r({caches:t}).delete(e))),clear:()=>a.clear().catch((()=>r({caches:t}).clear()))}}function a(e={serializable:!0}){let t={};return{get(r,a,n={miss:()=>Promise.resolve()}){const s=JSON.stringify(r);if(s in t)return Promise.resolve(e.serializable?JSON.parse(t[s]):t[s]);const o=a();return o.then((e=>n.miss(e))).then((()=>o))},set:(r,a)=>(t[JSON.stringify(r)]=e.serializable?JSON.stringify(a):a,Promise.resolve(a)),delete:e=>(delete t[JSON.stringify(e)],Promise.resolve()),clear:()=>(t={},Promise.resolve())}}const n=12e4;function s(e,t="up"){const r=Date.now();return{...e,status:t,lastUpdate:r,isUp:function(){return"up"===t||Date.now()-r>n},isTimedOut:function(){return"timed out"===t&&Date.now()-r<=n}}}function o(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function i(e,t,r){return(t=o(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class c extends Error{constructor(e,t){super(e),i(this,"name","AlgoliaError"),t&&(this.name=t)}}class u extends c{constructor(e,t,r){super(e,r),i(this,"stackTrace",void 0),this.stackTrace=t}}class d extends u{constructor(e){super("Unreachable hosts - your application id may be incorrect. If the error persists, please create a ticket at https://support.algolia.com/ sharing steps we can use to reproduce the issue.",e,"RetryError")}}class h extends u{constructor(e,t,r,a="ApiError"){super(e,r,a),i(this,"status",void 0),this.status=t}}class l extends c{constructor(e,t){super(e,"DeserializationError"),i(this,"response",void 0),this.response=t}}class m extends h{constructor(e,t,r,a){super(e,t,a,"DetailedApiError"),i(this,"error",void 0),this.error=r}}function p(e,t,r){const a=function(e){const t=e=>"[object Object]"===Object.prototype.toString.call(e)||"[object Array]"===Object.prototype.toString.call(e);return Object.keys(e).map((r=>`${r}=${encodeURIComponent(t(e[r])?JSON.stringify(e[r]):e[r])}`)).join("&")}(r);let n=`${e.protocol}://${e.url}/${"/"===t.charAt(0)?t.substr(1):t}`;return a.length&&(n+=`?${a}`),n}function g(e){const t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return{...e,request:{...e.request,headers:{...e.request.headers,...t}}}}function w({hosts:e,hostsCache:t,baseHeaders:r,baseQueryParameters:a,algoliaAgent:n,timeouts:o,requester:i,requestsCache:c,responsesCache:u}){async function w(c,u,w=!0){const P=[],f=function(e,t){if("GET"===e.method||void 0===e.data&&void 0===t.data)return;const r=Array.isArray(e.data)?e.data:{...e.data,...t.data};return JSON.stringify(r)}(c,u),q=function(e,t,r){const a={Accept:"application/json",...e,...t,...r},n={};return Object.keys(a).forEach((e=>{const t=a[e];n[e.toLowerCase()]=t})),n}(r,c.headers,u.headers),D="GET"===c.method?{...c.data,...u.data}:{},I={...a,...c.queryParameters,...D};if(n.value&&(I["x-algolia-agent"]=n.value),u&&u.queryParameters)for(const e of Object.keys(u.queryParameters))u.queryParameters[e]&&"[object Object]"!==Object.prototype.toString.call(u.queryParameters[e])?I[e]=u.queryParameters[e].toString():I[e]=u.queryParameters[e];let y=0;const v=async(e,r)=>{const a=e.pop();if(void 0===a)throw new d(function(e){return e.map((e=>g(e)))}(P));let n=u.timeout;void 0===n&&(n=w?o.read:o.write);const D={data:f,headers:q,method:c.method,url:p(a,c.path,I),connectTimeout:r(y,o.connect),responseTimeout:r(y,n)},S=t=>{const r={request:D,response:t,host:a,triesLeft:e.length};return P.push(r),r},E=await i.send(D);if(function({isTimedOut:e,status:t}){return e||function({isTimedOut:e,status:t}){return!e&&0==~~t}({isTimedOut:e,status:t})||2!=~~(t/100)&&4!=~~(t/100)}(E)){const n=S(E);return E.isTimedOut&&y++,console.log("Retryable failure",g(n)),await t.set(a,s(a,E.isTimedOut?"timed out":"down")),v(e,r)}if(function({status:e}){return 2==~~(e/100)}(E))return function(e){try{return JSON.parse(e.content)}catch(t){throw new l(t.message,e)}}(E);throw S(E),function({content:e,status:t},r){try{const a=JSON.parse(e);return"error"in a?new m(a.message,t,a.error,r):new h(a.message,t,r)}catch(e){}return new h(e,t,r)}(E,P)},S=e.filter((e=>"readWrite"===e.accept||(w?"read"===e.accept:"write"===e.accept))),E=await async function(e){const r=await Promise.all(e.map((e=>t.get(e,(()=>Promise.resolve(s(e))))))),a=r.filter((e=>e.isUp())),n=r.filter((e=>e.isTimedOut())),o=[...a,...n];return{hosts:o.length>0?o:e,getTimeout:(e,t)=>(0===n.length&&0===e?1:n.length+3+e)*t}}(S);return v([...E.hosts].reverse(),E.getTimeout)}return{hostsCache:t,requester:i,timeouts:o,algoliaAgent:n,baseHeaders:r,baseQueryParameters:a,hosts:e,request:function(e,t={}){const n=e.useReadTransporter||"GET"===e.method;if(!n)return w(e,t,n);const s=()=>w(e,t);if(!0!==(t.cacheable||e.cacheable))return s();const o={request:e,requestOptions:t,transporter:{queryParameters:a,headers:r}};return u.get(o,(()=>c.get(o,(()=>c.set(o,s()).then((e=>Promise.all([c.delete(o),e])),(e=>Promise.all([c.delete(o),Promise.reject(e)]))).then((([e,t])=>t))))),{miss:e=>u.set(o,e)})},requestsCache:c,responsesCache:u}}function P({algoliaAgents:e,client:t,version:r}){const a=function(e){const t={value:`Algolia for JavaScript (${e})`,add(e){const r=`; ${e.segment}${void 0!==e.version?` (${e.version})`:""}`;return-1===t.value.indexOf(r)&&(t.value=`${t.value}${r}`),t}};return t}(r).add({segment:t,version:r});return e.forEach((e=>a.add(e))),a}const f="1.0.0-alpha.71",q=["eu","us"];e.apiClientVersion=f,e.ingestionClient=function(e,n,s,o){if(!e||"string"!=typeof e)throw new Error("`appId` is missing.");if(!n||"string"!=typeof n)throw new Error("`apiKey` is missing.");if(!s||s&&("string"!=typeof s||!q.includes(s)))throw new Error(`\`region\` is required and must be one of the following: ${q.join(", ")}`);return function({appId:e,apiKey:t,authMode:r,algoliaAgents:a,region:n,...s}){const o=function(e,t,r="WithinHeaders"){const a={"x-algolia-api-key":t,"x-algolia-application-id":e};return{headers:()=>"WithinHeaders"===r?a:{},queryParameters:()=>"WithinQueryParameters"===r?a:{}}}(e,t,r),i=w({hosts:(c=n,[{url:"data.{region}.algolia.com".replace("{region}",c),accept:"readWrite",protocol:"https"}]),...s,algoliaAgent:P({algoliaAgents:a,client:"Ingestion",version:f}),baseHeaders:{"content-type":"text/plain",...o.headers(),...s.baseHeaders},baseQueryParameters:{...o.queryParameters(),...s.baseQueryParameters}});var c;return{transporter:i,appId:e,clearCache:()=>Promise.all([i.requestsCache.clear(),i.responsesCache.clear()]).then((()=>{})),get _ua(){return i.algoliaAgent.value},addAlgoliaAgent(e,t){i.algoliaAgent.add({segment:e,version:t})},createAuthentication(e,t){if(!e)throw new Error("Parameter `authenticationCreate` is required when calling `createAuthentication`.");if(!e.type)throw new Error("Parameter `authenticationCreate.type` is required when calling `createAuthentication`.");if(!e.name)throw new Error("Parameter `authenticationCreate.name` is required when calling `createAuthentication`.");if(!e.input)throw new Error("Parameter `authenticationCreate.input` is required when calling `createAuthentication`.");const r={method:"POST",path:"/1/authentications",queryParameters:{},headers:{},data:e};return i.request(r,t)},createDestination(e,t){if(!e)throw new Error("Parameter `destinationCreate` is required when calling `createDestination`.");if(!e.type)throw new Error("Parameter `destinationCreate.type` is required when calling `createDestination`.");if(!e.name)throw new Error("Parameter `destinationCreate.name` is required when calling `createDestination`.");if(!e.input)throw new Error("Parameter `destinationCreate.input` is required when calling `createDestination`.");const r={method:"POST",path:"/1/destinations",queryParameters:{},headers:{},data:e};return i.request(r,t)},createSource(e,t){if(!e)throw new Error("Parameter `sourceCreate` is required when calling `createSource`.");if(!e.type)throw new Error("Parameter `sourceCreate.type` is required when calling `createSource`.");if(!e.name)throw new Error("Parameter `sourceCreate.name` is required when calling `createSource`.");if(!e.input)throw new Error("Parameter `sourceCreate.input` is required when calling `createSource`.");const r={method:"POST",path:"/1/sources",queryParameters:{},headers:{},data:e};return i.request(r,t)},createTask(e,t){if(!e)throw new Error("Parameter `taskCreate` is required when calling `createTask`.");if(!e.sourceID)throw new Error("Parameter `taskCreate.sourceID` is required when calling `createTask`.");if(!e.destinationID)throw new Error("Parameter `taskCreate.destinationID` is required when calling `createTask`.");if(!e.trigger)throw new Error("Parameter `taskCreate.trigger` is required when calling `createTask`.");if(!e.action)throw new Error("Parameter `taskCreate.action` is required when calling `createTask`.");const r={method:"POST",path:"/1/tasks",queryParameters:{},headers:{},data:e};return i.request(r,t)},customDelete({path:e,parameters:t},r){if(!e)throw new Error("Parameter `path` is required when calling `customDelete`.");const a={method:"DELETE",path:"/1{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return i.request(a,r)},customGet({path:e,parameters:t},r){if(!e)throw new Error("Parameter `path` is required when calling `customGet`.");const a={method:"GET",path:"/1{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return i.request(a,r)},customPost({path:e,parameters:t,body:r},a){if(!e)throw new Error("Parameter `path` is required when calling `customPost`.");const n={method:"POST",path:"/1{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return i.request(n,a)},customPut({path:e,parameters:t,body:r},a){if(!e)throw new Error("Parameter `path` is required when calling `customPut`.");const n={method:"PUT",path:"/1{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return i.request(n,a)},deleteAuthentication({authenticationID:e},t){if(!e)throw new Error("Parameter `authenticationID` is required when calling `deleteAuthentication`.");const r={method:"DELETE",path:"/1/authentications/{authenticationID}".replace("{authenticationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},deleteDestination({destinationID:e},t){if(!e)throw new Error("Parameter `destinationID` is required when calling `deleteDestination`.");const r={method:"DELETE",path:"/1/destinations/{destinationID}".replace("{destinationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},deleteSource({sourceID:e},t){if(!e)throw new Error("Parameter `sourceID` is required when calling `deleteSource`.");const r={method:"DELETE",path:"/1/sources/{sourceID}".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},deleteTask({taskID:e},t){if(!e)throw new Error("Parameter `taskID` is required when calling `deleteTask`.");const r={method:"DELETE",path:"/1/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},disableTask({taskID:e},t){if(!e)throw new Error("Parameter `taskID` is required when calling `disableTask`.");const r={method:"PUT",path:"/1/tasks/{taskID}/disable".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},enableTask({taskID:e},t){if(!e)throw new Error("Parameter `taskID` is required when calling `enableTask`.");const r={method:"PUT",path:"/1/tasks/{taskID}/enable".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},getAuthentication({authenticationID:e},t){if(!e)throw new Error("Parameter `authenticationID` is required when calling `getAuthentication`.");const r={method:"GET",path:"/1/authentications/{authenticationID}".replace("{authenticationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},getAuthentications({itemsPerPage:e,page:t,type:r,platform:a,sort:n,order:s}={},o=void 0){const c={};void 0!==e&&(c.itemsPerPage=e.toString()),void 0!==t&&(c.page=t.toString()),void 0!==r&&(c.type=r.toString()),void 0!==a&&(c.platform=a.toString()),void 0!==n&&(c.sort=n.toString()),void 0!==s&&(c.order=s.toString());const u={method:"GET",path:"/1/authentications",queryParameters:c,headers:{}};return i.request(u,o)},getDestination({destinationID:e},t){if(!e)throw new Error("Parameter `destinationID` is required when calling `getDestination`.");const r={method:"GET",path:"/1/destinations/{destinationID}".replace("{destinationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},getDestinations({itemsPerPage:e,page:t,type:r,authenticationID:a,sort:n,order:s}={},o=void 0){const c={};void 0!==e&&(c.itemsPerPage=e.toString()),void 0!==t&&(c.page=t.toString()),void 0!==r&&(c.type=r.toString()),void 0!==a&&(c.authenticationID=a.toString()),void 0!==n&&(c.sort=n.toString()),void 0!==s&&(c.order=s.toString());const u={method:"GET",path:"/1/destinations",queryParameters:c,headers:{}};return i.request(u,o)},getDockerSourceStreams({sourceID:e},t){if(!e)throw new Error("Parameter `sourceID` is required when calling `getDockerSourceStreams`.");const r={method:"GET",path:"/1/sources/{sourceID}/discover".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},getEvent({runID:e,eventID:t},r){if(!e)throw new Error("Parameter `runID` is required when calling `getEvent`.");if(!t)throw new Error("Parameter `eventID` is required when calling `getEvent`.");const a={method:"GET",path:"/1/runs/{runID}/events/{eventID}".replace("{runID}",encodeURIComponent(e)).replace("{eventID}",encodeURIComponent(t)),queryParameters:{},headers:{}};return i.request(a,r)},getEvents({runID:e,itemsPerPage:t,page:r,status:a,type:n,sort:s,order:o,startDate:c,endDate:u},d){if(!e)throw new Error("Parameter `runID` is required when calling `getEvents`.");const h="/1/runs/{runID}/events".replace("{runID}",encodeURIComponent(e)),l={};void 0!==t&&(l.itemsPerPage=t.toString()),void 0!==r&&(l.page=r.toString()),void 0!==a&&(l.status=a.toString()),void 0!==n&&(l.type=n.toString()),void 0!==s&&(l.sort=s.toString()),void 0!==o&&(l.order=o.toString()),void 0!==c&&(l.startDate=c.toString()),void 0!==u&&(l.endDate=u.toString());const m={method:"GET",path:h,queryParameters:l,headers:{}};return i.request(m,d)},getRun({runID:e},t){if(!e)throw new Error("Parameter `runID` is required when calling `getRun`.");const r={method:"GET",path:"/1/runs/{runID}".replace("{runID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},getRuns({itemsPerPage:e,page:t,status:r,taskID:a,sort:n,order:s,startDate:o,endDate:c}={},u=void 0){const d={};void 0!==e&&(d.itemsPerPage=e.toString()),void 0!==t&&(d.page=t.toString()),void 0!==r&&(d.status=r.toString()),void 0!==a&&(d.taskID=a.toString()),void 0!==n&&(d.sort=n.toString()),void 0!==s&&(d.order=s.toString()),void 0!==o&&(d.startDate=o.toString()),void 0!==c&&(d.endDate=c.toString());const h={method:"GET",path:"/1/runs",queryParameters:d,headers:{}};return i.request(h,u)},getSource({sourceID:e},t){if(!e)throw new Error("Parameter `sourceID` is required when calling `getSource`.");const r={method:"GET",path:"/1/sources/{sourceID}".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},getSources({itemsPerPage:e,page:t,type:r,authenticationID:a,sort:n,order:s}={},o=void 0){const c={};void 0!==e&&(c.itemsPerPage=e.toString()),void 0!==t&&(c.page=t.toString()),void 0!==r&&(c.type=r.toString()),void 0!==a&&(c.authenticationID=a.toString()),void 0!==n&&(c.sort=n.toString()),void 0!==s&&(c.order=s.toString());const u={method:"GET",path:"/1/sources",queryParameters:c,headers:{}};return i.request(u,o)},getTask({taskID:e},t){if(!e)throw new Error("Parameter `taskID` is required when calling `getTask`.");const r={method:"GET",path:"/1/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},getTasks({itemsPerPage:e,page:t,action:r,enabled:a,sourceID:n,destinationID:s,triggerType:o,sort:c,order:u}={},d=void 0){const h={};void 0!==e&&(h.itemsPerPage=e.toString()),void 0!==t&&(h.page=t.toString()),void 0!==r&&(h.action=r.toString()),void 0!==a&&(h.enabled=a.toString()),void 0!==n&&(h.sourceID=n.toString()),void 0!==s&&(h.destinationID=s.toString()),void 0!==o&&(h.triggerType=o.toString()),void 0!==c&&(h.sort=c.toString()),void 0!==u&&(h.order=u.toString());const l={method:"GET",path:"/1/tasks",queryParameters:h,headers:{}};return i.request(l,d)},runTask({taskID:e},t){if(!e)throw new Error("Parameter `taskID` is required when calling `runTask`.");const r={method:"POST",path:"/1/tasks/{taskID}/run".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},searchAuthentications(e,t){if(!e)throw new Error("Parameter `authenticationSearch` is required when calling `searchAuthentications`.");if(!e.authenticationIDs)throw new Error("Parameter `authenticationSearch.authenticationIDs` is required when calling `searchAuthentications`.");const r={method:"POST",path:"/1/authentications/search",queryParameters:{},headers:{},data:e};return i.request(r,t)},searchDestinations(e,t){if(!e)throw new Error("Parameter `destinationSearch` is required when calling `searchDestinations`.");if(!e.destinationIDs)throw new Error("Parameter `destinationSearch.destinationIDs` is required when calling `searchDestinations`.");const r={method:"POST",path:"/1/destinations/search",queryParameters:{},headers:{},data:e};return i.request(r,t)},searchSources(e,t){if(!e)throw new Error("Parameter `sourceSearch` is required when calling `searchSources`.");if(!e.sourceIDs)throw new Error("Parameter `sourceSearch.sourceIDs` is required when calling `searchSources`.");const r={method:"POST",path:"/1/sources/search",queryParameters:{},headers:{},data:e};return i.request(r,t)},searchTasks(e,t){if(!e)throw new Error("Parameter `taskSearch` is required when calling `searchTasks`.");if(!e.taskIDs)throw new Error("Parameter `taskSearch.taskIDs` is required when calling `searchTasks`.");const r={method:"POST",path:"/1/tasks/search",queryParameters:{},headers:{},data:e};return i.request(r,t)},triggerDockerSourceDiscover({sourceID:e},t){if(!e)throw new Error("Parameter `sourceID` is required when calling `triggerDockerSourceDiscover`.");const r={method:"POST",path:"/1/sources/{sourceID}/discover".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},updateAuthentication({authenticationID:e,authenticationUpdate:t},r){if(!e)throw new Error("Parameter `authenticationID` is required when calling `updateAuthentication`.");if(!t)throw new Error("Parameter `authenticationUpdate` is required when calling `updateAuthentication`.");const a={method:"PATCH",path:"/1/authentications/{authenticationID}".replace("{authenticationID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return i.request(a,r)},updateDestination({destinationID:e,destinationUpdate:t},r){if(!e)throw new Error("Parameter `destinationID` is required when calling `updateDestination`.");if(!t)throw new Error("Parameter `destinationUpdate` is required when calling `updateDestination`.");const a={method:"PATCH",path:"/1/destinations/{destinationID}".replace("{destinationID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return i.request(a,r)},updateSource({sourceID:e,sourceUpdate:t},r){if(!e)throw new Error("Parameter `sourceID` is required when calling `updateSource`.");if(!t)throw new Error("Parameter `sourceUpdate` is required when calling `updateSource`.");const a={method:"PATCH",path:"/1/sources/{sourceID}".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return i.request(a,r)},updateTask({taskID:e,taskUpdate:t},r){if(!e)throw new Error("Parameter `taskID` is required when calling `updateTask`.");if(!t)throw new Error("Parameter `taskUpdate` is required when calling `updateTask`.");const a={method:"PATCH",path:"/1/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return i.request(a,r)}}}({appId:e,apiKey:n,region:s,timeouts:{connect:1e3,read:2e3,write:3e4},requester:{send:function(e){return new Promise((t=>{const r=new XMLHttpRequest;r.open(e.method,e.url,!0),Object.keys(e.headers).forEach((t=>r.setRequestHeader(t,e.headers[t])));const a=(e,a)=>setTimeout((()=>{r.abort(),t({status:0,content:a,isTimedOut:!0})}),e),n=a(e.connectTimeout,"Connection timeout");let s;r.onreadystatechange=()=>{r.readyState>r.OPENED&&void 0===s&&(clearTimeout(n),s=a(e.responseTimeout,"Socket timeout"))},r.onerror=()=>{0===r.status&&(clearTimeout(n),clearTimeout(s),t({content:r.responseText||"Network request failed",status:r.status,isTimedOut:!1}))},r.onload=()=>{clearTimeout(n),clearTimeout(s),t({content:r.responseText,status:r.status,isTimedOut:!1})},r.send(e.data)}))}},algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:a(),requestsCache:a({serializable:!1}),hostsCache:r({caches:[t({key:`${f}-${e}`}),a()]}),...o})},e.isOnDemandTrigger=function(e){return"onDemand"===e.type},e.isScheduleTrigger=function(e){return"schedule"===e.type},e.isSubscriptionTrigger=function(e){return"subscription"===e.type}}));
@@ -19,9 +19,9 @@ import type { TaskSortKeys } from './taskSortKeys';
19
19
  import type { TaskUpdate } from './taskUpdate';
20
20
  import type { TriggerType } from './triggerType';
21
21
  /**
22
- * Properties for the `del` method.
22
+ * Properties for the `customDelete` method.
23
23
  */
24
- export type DelProps = {
24
+ export type CustomDeleteProps = {
25
25
  /**
26
26
  * Path of the endpoint, anything after \"/1\" must be specified.
27
27
  */
@@ -31,6 +31,53 @@ export type DelProps = {
31
31
  */
32
32
  parameters?: Record<string, any>;
33
33
  };
34
+ /**
35
+ * Properties for the `customGet` method.
36
+ */
37
+ export type CustomGetProps = {
38
+ /**
39
+ * Path of the endpoint, anything after \"/1\" must be specified.
40
+ */
41
+ path: string;
42
+ /**
43
+ * Query parameters to apply to the current query.
44
+ */
45
+ parameters?: Record<string, any>;
46
+ };
47
+ /**
48
+ * Properties for the `customPost` method.
49
+ */
50
+ export type CustomPostProps = {
51
+ /**
52
+ * Path of the endpoint, anything after \"/1\" must be specified.
53
+ */
54
+ path: string;
55
+ /**
56
+ * Query parameters to apply to the current query.
57
+ */
58
+ parameters?: Record<string, any>;
59
+ /**
60
+ * Parameters to send with the custom request.
61
+ */
62
+ body?: Record<string, any>;
63
+ };
64
+ /**
65
+ * Properties for the `customPut` method.
66
+ */
67
+ export type CustomPutProps = {
68
+ /**
69
+ * Path of the endpoint, anything after \"/1\" must be specified.
70
+ */
71
+ path: string;
72
+ /**
73
+ * Query parameters to apply to the current query.
74
+ */
75
+ parameters?: Record<string, any>;
76
+ /**
77
+ * Parameters to send with the custom request.
78
+ */
79
+ body?: Record<string, any>;
80
+ };
34
81
  /**
35
82
  * Properties for the `deleteAuthentication` method.
36
83
  */
@@ -85,19 +132,6 @@ export type EnableTaskProps = {
85
132
  */
86
133
  taskID: string;
87
134
  };
88
- /**
89
- * Properties for the `get` method.
90
- */
91
- export type GetProps = {
92
- /**
93
- * Path of the endpoint, anything after \"/1\" must be specified.
94
- */
95
- path: string;
96
- /**
97
- * Query parameters to apply to the current query.
98
- */
99
- parameters?: Record<string, any>;
100
- };
101
135
  /**
102
136
  * Properties for the `getAuthentication` method.
103
137
  */
@@ -371,40 +405,6 @@ export type GetTasksProps = {
371
405
  */
372
406
  order?: OrderKeys;
373
407
  };
374
- /**
375
- * Properties for the `post` method.
376
- */
377
- export type PostProps = {
378
- /**
379
- * Path of the endpoint, anything after \"/1\" must be specified.
380
- */
381
- path: string;
382
- /**
383
- * Query parameters to apply to the current query.
384
- */
385
- parameters?: Record<string, any>;
386
- /**
387
- * Parameters to send with the custom request.
388
- */
389
- body?: Record<string, any>;
390
- };
391
- /**
392
- * Properties for the `put` method.
393
- */
394
- export type PutProps = {
395
- /**
396
- * Path of the endpoint, anything after \"/1\" must be specified.
397
- */
398
- path: string;
399
- /**
400
- * Query parameters to apply to the current query.
401
- */
402
- parameters?: Record<string, any>;
403
- /**
404
- * Parameters to send with the custom request.
405
- */
406
- body?: Record<string, any>;
407
- };
408
408
  /**
409
409
  * Properties for the `runTask` method.
410
410
  */
@@ -1 +1 @@
1
- {"version":3,"file":"clientMethodProps.d.ts","sourceRoot":"","sources":["../../model/clientMethodProps.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,K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AAE,iBAAiB,CAAC;CACtC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,YAAY,CAAC;CAC5B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,UAAU,CAAC;CACxB,CAAC"}
@@ -4,7 +4,7 @@ import type { AuthenticationCreate } from '../model/authenticationCreate';
4
4
  import type { AuthenticationCreateResponse } from '../model/authenticationCreateResponse';
5
5
  import type { AuthenticationSearch } from '../model/authenticationSearch';
6
6
  import type { AuthenticationUpdateResponse } from '../model/authenticationUpdateResponse';
7
- import type { DelProps, DeleteAuthenticationProps, DeleteDestinationProps, DeleteSourceProps, DeleteTaskProps, DisableTaskProps, EnableTaskProps, GetProps, GetAuthenticationProps, GetAuthenticationsProps, GetDestinationProps, GetDestinationsProps, GetDockerSourceStreamsProps, GetEventProps, GetEventsProps, GetRunProps, GetRunsProps, GetSourceProps, GetSourcesProps, GetTaskProps, GetTasksProps, PostProps, PutProps, RunTaskProps, TriggerDockerSourceDiscoverProps, UpdateAuthenticationProps, UpdateDestinationProps, UpdateSourceProps, UpdateTaskProps } from '../model/clientMethodProps';
7
+ import type { CustomDeleteProps, CustomGetProps, CustomPostProps, CustomPutProps, DeleteAuthenticationProps, DeleteDestinationProps, DeleteSourceProps, DeleteTaskProps, DisableTaskProps, EnableTaskProps, GetAuthenticationProps, GetAuthenticationsProps, GetDestinationProps, GetDestinationsProps, GetDockerSourceStreamsProps, GetEventProps, GetEventsProps, GetRunProps, GetRunsProps, GetSourceProps, GetSourcesProps, GetTaskProps, GetTasksProps, RunTaskProps, TriggerDockerSourceDiscoverProps, UpdateAuthenticationProps, UpdateDestinationProps, UpdateSourceProps, UpdateTaskProps } from '../model/clientMethodProps';
8
8
  import type { DeleteResponse } from '../model/deleteResponse';
9
9
  import type { Destination } from '../model/destination';
10
10
  import type { DestinationCreate } from '../model/destinationCreate';
@@ -37,7 +37,7 @@ import type { TaskCreateTrigger } from '../model/taskCreateTrigger';
37
37
  import type { TaskSearch } from '../model/taskSearch';
38
38
  import type { TaskUpdateResponse } from '../model/taskUpdateResponse';
39
39
  import type { Trigger } from '../model/trigger';
40
- export declare const apiClientVersion = "1.0.0-alpha.65";
40
+ export declare const apiClientVersion = "1.0.0-alpha.71";
41
41
  export declare const REGIONS: readonly ["eu", "us"];
42
42
  export type Region = (typeof REGIONS)[number];
43
43
  /**
@@ -120,12 +120,44 @@ export declare function createIngestionClient({ appId: appIdOption, apiKey: apiK
120
120
  * This method allow you to send requests to the Algolia REST API.
121
121
  *
122
122
  * @summary Send requests to the Algolia REST API.
123
- * @param del - The del object.
124
- * @param del.path - Path of the endpoint, anything after \"/1\" must be specified.
125
- * @param del.parameters - Query parameters to apply to the current query.
123
+ * @param customDelete - The customDelete object.
124
+ * @param customDelete.path - Path of the endpoint, anything after \"/1\" must be specified.
125
+ * @param customDelete.parameters - Query parameters to apply to the current query.
126
126
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
127
127
  */
128
- del({ path, parameters }: DelProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
128
+ customDelete({ path, parameters }: CustomDeleteProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
129
+ /**
130
+ * This method allow you to send requests to the Algolia REST API.
131
+ *
132
+ * @summary Send requests to the Algolia REST API.
133
+ * @param customGet - The customGet object.
134
+ * @param customGet.path - Path of the endpoint, anything after \"/1\" must be specified.
135
+ * @param customGet.parameters - Query parameters to apply to the current query.
136
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
137
+ */
138
+ customGet({ path, parameters }: CustomGetProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
139
+ /**
140
+ * This method allow you to send requests to the Algolia REST API.
141
+ *
142
+ * @summary Send requests to the Algolia REST API.
143
+ * @param customPost - The customPost object.
144
+ * @param customPost.path - Path of the endpoint, anything after \"/1\" must be specified.
145
+ * @param customPost.parameters - Query parameters to apply to the current query.
146
+ * @param customPost.body - Parameters to send with the custom request.
147
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
148
+ */
149
+ customPost({ path, parameters, body }: CustomPostProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
150
+ /**
151
+ * This method allow you to send requests to the Algolia REST API.
152
+ *
153
+ * @summary Send requests to the Algolia REST API.
154
+ * @param customPut - The customPut object.
155
+ * @param customPut.path - Path of the endpoint, anything after \"/1\" must be specified.
156
+ * @param customPut.parameters - Query parameters to apply to the current query.
157
+ * @param customPut.body - Parameters to send with the custom request.
158
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
159
+ */
160
+ customPut({ path, parameters, body }: CustomPutProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
129
161
  /**
130
162
  * Soft delete the authentication of the given authenticationID.
131
163
  *
@@ -180,16 +212,6 @@ export declare function createIngestionClient({ appId: appIdOption, apiKey: apiK
180
212
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
181
213
  */
182
214
  enableTask({ taskID }: EnableTaskProps, requestOptions?: RequestOptions): Promise<TaskUpdateResponse>;
183
- /**
184
- * This method allow you to send requests to the Algolia REST API.
185
- *
186
- * @summary Send requests to the Algolia REST API.
187
- * @param get - The get object.
188
- * @param get.path - Path of the endpoint, anything after \"/1\" must be specified.
189
- * @param get.parameters - Query parameters to apply to the current query.
190
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
191
- */
192
- get({ path, parameters }: GetProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
193
215
  /**
194
216
  * Get the authentication of the given authenticationID.
195
217
  *
@@ -346,28 +368,6 @@ export declare function createIngestionClient({ appId: appIdOption, apiKey: apiK
346
368
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
347
369
  */
348
370
  getTasks({ itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, sort, order, }?: GetTasksProps, requestOptions?: RequestOptions | undefined): Promise<ListTasksResponse>;
349
- /**
350
- * This method allow you to send requests to the Algolia REST API.
351
- *
352
- * @summary Send requests to the Algolia REST API.
353
- * @param post - The post object.
354
- * @param post.path - Path of the endpoint, anything after \"/1\" must be specified.
355
- * @param post.parameters - Query parameters to apply to the current query.
356
- * @param post.body - Parameters to send with the custom request.
357
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
358
- */
359
- post({ path, parameters, body }: PostProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
360
- /**
361
- * This method allow you to send requests to the Algolia REST API.
362
- *
363
- * @summary Send requests to the Algolia REST API.
364
- * @param put - The put object.
365
- * @param put.path - Path of the endpoint, anything after \"/1\" must be specified.
366
- * @param put.parameters - Query parameters to apply to the current query.
367
- * @param put.body - Parameters to send with the custom request.
368
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
369
- */
370
- put({ path, parameters, body }: PutProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
371
371
  /**
372
372
  * Run the task of the given taskID.
373
373
  *
@@ -1 +1 @@
1
- {"version":3,"file":"ingestionClient.d.ts","sourceRoot":"","sources":["../../src/ingestionClient.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,mBAAmB,EAInB,cAAc,EAEf,MAAM,wBAAwB,CAAC;AAEhC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,uCAAuC,CAAC;AAC1F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,uCAAuC,CAAC;AAC1F,O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GAC9B,QAAQ,MAAM,EAAE,CAAC;IA4BpB;;;;;;OAMG;4BAEW,UAAU,mBACL,cAAc,GAC9B,QAAQ,IAAI,EAAE,CAAC;IA4BlB;;;;;;;OAOG;8CAEa,gCAAgC,mBAC7B,cAAc,GAC9B,QAAQ,oBAAoB,CAAC;IAwBhC;;;;;;;;OAQG;qEAE2C,yBAAyB,mBACpD,cAAc,GAC9B,QAAQ,4BAA4B,CAAC;IA+BxC;;;;;;;;OAQG;4DAEqC,sBAAsB,mBAC3C,cAAc,GAC9B,QAAQ,yBAAyB,CAAC;IA+BrC;;;;;;;;OAQG;6CAE2B,iBAAiB,mBAC5B,cAAc,GAC9B,QAAQ,oBAAoB,CAAC;IA+BhC;;;;;;;;OAQG;uCAEuB,eAAe,mBACtB,cAAc,GAC9B,QAAQ,kBAAkB,CAAC;EA+BjC;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
@@ -22,9 +22,9 @@ import type { TaskUpdate } from './taskUpdate';
22
22
  import type { TriggerType } from './triggerType';
23
23
 
24
24
  /**
25
- * Properties for the `del` method.
25
+ * Properties for the `customDelete` method.
26
26
  */
27
- export type DelProps = {
27
+ export type CustomDeleteProps = {
28
28
  /**
29
29
  * Path of the endpoint, anything after \"/1\" must be specified.
30
30
  */
@@ -35,6 +35,56 @@ export type DelProps = {
35
35
  parameters?: Record<string, any>;
36
36
  };
37
37
 
38
+ /**
39
+ * Properties for the `customGet` method.
40
+ */
41
+ export type CustomGetProps = {
42
+ /**
43
+ * Path of the endpoint, anything after \"/1\" must be specified.
44
+ */
45
+ path: string;
46
+ /**
47
+ * Query parameters to apply to the current query.
48
+ */
49
+ parameters?: Record<string, any>;
50
+ };
51
+
52
+ /**
53
+ * Properties for the `customPost` method.
54
+ */
55
+ export type CustomPostProps = {
56
+ /**
57
+ * Path of the endpoint, anything after \"/1\" must be specified.
58
+ */
59
+ path: string;
60
+ /**
61
+ * Query parameters to apply to the current query.
62
+ */
63
+ parameters?: Record<string, any>;
64
+ /**
65
+ * Parameters to send with the custom request.
66
+ */
67
+ body?: Record<string, any>;
68
+ };
69
+
70
+ /**
71
+ * Properties for the `customPut` method.
72
+ */
73
+ export type CustomPutProps = {
74
+ /**
75
+ * Path of the endpoint, anything after \"/1\" must be specified.
76
+ */
77
+ path: string;
78
+ /**
79
+ * Query parameters to apply to the current query.
80
+ */
81
+ parameters?: Record<string, any>;
82
+ /**
83
+ * Parameters to send with the custom request.
84
+ */
85
+ body?: Record<string, any>;
86
+ };
87
+
38
88
  /**
39
89
  * Properties for the `deleteAuthentication` method.
40
90
  */
@@ -95,20 +145,6 @@ export type EnableTaskProps = {
95
145
  taskID: string;
96
146
  };
97
147
 
98
- /**
99
- * Properties for the `get` method.
100
- */
101
- export type GetProps = {
102
- /**
103
- * Path of the endpoint, anything after \"/1\" must be specified.
104
- */
105
- path: string;
106
- /**
107
- * Query parameters to apply to the current query.
108
- */
109
- parameters?: Record<string, any>;
110
- };
111
-
112
148
  /**
113
149
  * Properties for the `getAuthentication` method.
114
150
  */
@@ -395,42 +431,6 @@ export type GetTasksProps = {
395
431
  order?: OrderKeys;
396
432
  };
397
433
 
398
- /**
399
- * Properties for the `post` method.
400
- */
401
- export type PostProps = {
402
- /**
403
- * Path of the endpoint, anything after \"/1\" must be specified.
404
- */
405
- path: string;
406
- /**
407
- * Query parameters to apply to the current query.
408
- */
409
- parameters?: Record<string, any>;
410
- /**
411
- * Parameters to send with the custom request.
412
- */
413
- body?: Record<string, any>;
414
- };
415
-
416
- /**
417
- * Properties for the `put` method.
418
- */
419
- export type PutProps = {
420
- /**
421
- * Path of the endpoint, anything after \"/1\" must be specified.
422
- */
423
- path: string;
424
- /**
425
- * Query parameters to apply to the current query.
426
- */
427
- parameters?: Record<string, any>;
428
- /**
429
- * Parameters to send with the custom request.
430
- */
431
- body?: Record<string, any>;
432
- };
433
-
434
434
  /**
435
435
  * Properties for the `runTask` method.
436
436
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@algolia/ingestion",
3
- "version": "1.0.0-alpha.65",
3
+ "version": "1.0.0-alpha.71",
4
4
  "description": "JavaScript client for ingestion",
5
5
  "repository": "algolia/algoliasearch-client-javascript",
6
6
  "license": "MIT",
@@ -39,14 +39,14 @@
39
39
  "clean": "rm -rf ./dist || true"
40
40
  },
41
41
  "dependencies": {
42
- "@algolia/client-common": "5.0.0-alpha.92",
43
- "@algolia/requester-browser-xhr": "5.0.0-alpha.92",
44
- "@algolia/requester-node-http": "5.0.0-alpha.92"
42
+ "@algolia/client-common": "5.0.0-alpha.98",
43
+ "@algolia/requester-browser-xhr": "5.0.0-alpha.98",
44
+ "@algolia/requester-node-http": "5.0.0-alpha.98"
45
45
  },
46
46
  "devDependencies": {
47
- "@types/node": "20.9.0",
48
- "rollup": "4.3.0",
49
- "typescript": "5.2.2"
47
+ "@types/node": "20.11.1",
48
+ "rollup": "4.9.5",
49
+ "typescript": "5.3.3"
50
50
  },
51
51
  "engines": {
52
52
  "node": ">= 14.0.0"