@algolia/ingestion 1.0.0-alpha.10 → 1.0.0-alpha.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ingestion.cjs.js +111 -3
- package/dist/ingestion.esm.browser.js +111 -3
- package/dist/ingestion.esm.node.js +111 -3
- package/dist/ingestion.umd.js +2 -2
- package/dist/model/authenticationSearch.d.ts +4 -0
- package/dist/model/authenticationSearch.d.ts.map +1 -0
- package/dist/model/clientMethodProps.d.ts +9 -5
- package/dist/model/clientMethodProps.d.ts.map +1 -1
- package/dist/model/destinationSearch.d.ts +4 -0
- package/dist/model/destinationSearch.d.ts.map +1 -0
- package/dist/model/index.d.ts +6 -2
- package/dist/model/index.d.ts.map +1 -1
- package/dist/model/platformNone.d.ts +2 -0
- package/dist/model/platformNone.d.ts.map +1 -0
- package/dist/model/platformWithNone.d.ts +4 -0
- package/dist/model/platformWithNone.d.ts.map +1 -0
- package/dist/model/sourceSearch.d.ts +4 -0
- package/dist/model/sourceSearch.d.ts.map +1 -0
- package/dist/model/taskSearch.d.ts +4 -0
- package/dist/model/taskSearch.d.ts.map +1 -0
- package/dist/src/ingestionClient.d.ts +41 -3
- package/dist/src/ingestionClient.d.ts.map +1 -1
- package/model/authenticationSearch.ts +5 -0
- package/model/clientMethodProps.ts +9 -5
- package/model/destinationSearch.ts +5 -0
- package/model/index.ts +6 -2
- package/model/{authenticationNone.ts → platformNone.ts} +1 -1
- package/model/platformWithNone.ts +6 -0
- package/model/sourceSearch.ts +5 -0
- package/model/taskSearch.ts +5 -0
- package/package.json +4 -4
- package/dist/model/authenticationNone.d.ts +0 -2
- package/dist/model/authenticationNone.d.ts.map +0 -1
- package/dist/model/authenticationTypeWithNone.d.ts +0 -4
- package/dist/model/authenticationTypeWithNone.d.ts.map +0 -1
- package/model/authenticationTypeWithNone.ts +0 -8
package/dist/ingestion.cjs.js
CHANGED
|
@@ -6,7 +6,7 @@ var clientCommon = require('@algolia/client-common');
|
|
|
6
6
|
var requesterNodeHttp = require('@algolia/requester-node-http');
|
|
7
7
|
|
|
8
8
|
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
9
|
-
const apiClientVersion = '1.0.0-alpha.
|
|
9
|
+
const apiClientVersion = '1.0.0-alpha.12';
|
|
10
10
|
const REGIONS = ['us'];
|
|
11
11
|
function getDefaultHosts(region) {
|
|
12
12
|
const url = 'data.{region}.algolia.com'.replace('{region}', region);
|
|
@@ -590,7 +590,7 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
590
590
|
* @param getSources.itemsPerPage - The number of items per page to return.
|
|
591
591
|
* @param getSources.page - The page number to fetch, starting at 1.
|
|
592
592
|
* @param getSources.type - Which type the returned source should have. Can be a list of string separated with commas.
|
|
593
|
-
* @param getSources.authenticationID - Which authenticationID the returned source should have. Can be a list of string separated with commas.
|
|
593
|
+
* @param getSources.authenticationID - Which authenticationID the returned source should have. Can be a list of string separated with commas. Also supports \'none\' as a value to return sources that don\'t have any authentication.
|
|
594
594
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
595
595
|
*/
|
|
596
596
|
getSources({ itemsPerPage, page, type, authenticationID } = {}, requestOptions = undefined) {
|
|
@@ -649,11 +649,12 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
649
649
|
* @param getTasks.page - The page number to fetch, starting at 1.
|
|
650
650
|
* @param getTasks.action - Which action the returned task should have. Can be a list of string separated with commas.
|
|
651
651
|
* @param getTasks.enabled - If the returned task should have its \'enabled\' property set to true.
|
|
652
|
+
* @param getTasks.sourceID - Which sourceID the returned task should have. Can be a list of string separated with commas.
|
|
652
653
|
* @param getTasks.destinationID - Which destinationID the returned task should have. Can be a list of string separated with commas.
|
|
653
654
|
* @param getTasks.triggerType - Which trigger type the returned task should have. Can be a list of string separated with commas.
|
|
654
655
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
655
656
|
*/
|
|
656
|
-
getTasks({ itemsPerPage, page, action, enabled, destinationID, triggerType, } = {}, requestOptions = undefined) {
|
|
657
|
+
getTasks({ itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, } = {}, requestOptions = undefined) {
|
|
657
658
|
const requestPath = '/1/tasks';
|
|
658
659
|
const headers = {};
|
|
659
660
|
const queryParameters = {};
|
|
@@ -669,6 +670,9 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
669
670
|
if (enabled !== undefined) {
|
|
670
671
|
queryParameters.enabled = enabled.toString();
|
|
671
672
|
}
|
|
673
|
+
if (sourceID !== undefined) {
|
|
674
|
+
queryParameters.sourceID = sourceID.toString();
|
|
675
|
+
}
|
|
672
676
|
if (destinationID !== undefined) {
|
|
673
677
|
queryParameters.destinationID = destinationID.toString();
|
|
674
678
|
}
|
|
@@ -706,6 +710,110 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
706
710
|
};
|
|
707
711
|
return transporter.request(request, requestOptions);
|
|
708
712
|
},
|
|
713
|
+
/**
|
|
714
|
+
* Search among authentications with a defined set of parameters.
|
|
715
|
+
*
|
|
716
|
+
* @summary Search among authentications.
|
|
717
|
+
* @param authenticationSearch - The authenticationSearch object.
|
|
718
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
719
|
+
*/
|
|
720
|
+
searchAuthentications(authenticationSearch, requestOptions) {
|
|
721
|
+
if (!authenticationSearch) {
|
|
722
|
+
throw new Error('Parameter `authenticationSearch` is required when calling `searchAuthentications`.');
|
|
723
|
+
}
|
|
724
|
+
if (!authenticationSearch.authenticationIDs) {
|
|
725
|
+
throw new Error('Parameter `authenticationSearch.authenticationIDs` is required when calling `searchAuthentications`.');
|
|
726
|
+
}
|
|
727
|
+
const requestPath = '/1/authentications/search';
|
|
728
|
+
const headers = {};
|
|
729
|
+
const queryParameters = {};
|
|
730
|
+
const request = {
|
|
731
|
+
method: 'POST',
|
|
732
|
+
path: requestPath,
|
|
733
|
+
queryParameters,
|
|
734
|
+
headers,
|
|
735
|
+
data: authenticationSearch,
|
|
736
|
+
};
|
|
737
|
+
return transporter.request(request, requestOptions);
|
|
738
|
+
},
|
|
739
|
+
/**
|
|
740
|
+
* Search among destinations with a defined set of parameters.
|
|
741
|
+
*
|
|
742
|
+
* @summary Search among destinations.
|
|
743
|
+
* @param destinationSearch - The destinationSearch object.
|
|
744
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
745
|
+
*/
|
|
746
|
+
searchDestinations(destinationSearch, requestOptions) {
|
|
747
|
+
if (!destinationSearch) {
|
|
748
|
+
throw new Error('Parameter `destinationSearch` is required when calling `searchDestinations`.');
|
|
749
|
+
}
|
|
750
|
+
if (!destinationSearch.destinationIDs) {
|
|
751
|
+
throw new Error('Parameter `destinationSearch.destinationIDs` is required when calling `searchDestinations`.');
|
|
752
|
+
}
|
|
753
|
+
const requestPath = '/1/destinations/search';
|
|
754
|
+
const headers = {};
|
|
755
|
+
const queryParameters = {};
|
|
756
|
+
const request = {
|
|
757
|
+
method: 'POST',
|
|
758
|
+
path: requestPath,
|
|
759
|
+
queryParameters,
|
|
760
|
+
headers,
|
|
761
|
+
data: destinationSearch,
|
|
762
|
+
};
|
|
763
|
+
return transporter.request(request, requestOptions);
|
|
764
|
+
},
|
|
765
|
+
/**
|
|
766
|
+
* Search among sources with a defined set of parameters.
|
|
767
|
+
*
|
|
768
|
+
* @summary Search among sources.
|
|
769
|
+
* @param sourceSearch - The sourceSearch object.
|
|
770
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
771
|
+
*/
|
|
772
|
+
searchSources(sourceSearch, requestOptions) {
|
|
773
|
+
if (!sourceSearch) {
|
|
774
|
+
throw new Error('Parameter `sourceSearch` is required when calling `searchSources`.');
|
|
775
|
+
}
|
|
776
|
+
if (!sourceSearch.sourceIDs) {
|
|
777
|
+
throw new Error('Parameter `sourceSearch.sourceIDs` is required when calling `searchSources`.');
|
|
778
|
+
}
|
|
779
|
+
const requestPath = '/1/sources/search';
|
|
780
|
+
const headers = {};
|
|
781
|
+
const queryParameters = {};
|
|
782
|
+
const request = {
|
|
783
|
+
method: 'POST',
|
|
784
|
+
path: requestPath,
|
|
785
|
+
queryParameters,
|
|
786
|
+
headers,
|
|
787
|
+
data: sourceSearch,
|
|
788
|
+
};
|
|
789
|
+
return transporter.request(request, requestOptions);
|
|
790
|
+
},
|
|
791
|
+
/**
|
|
792
|
+
* Search among tasks with a defined set of parameters.
|
|
793
|
+
*
|
|
794
|
+
* @summary Search among tasks.
|
|
795
|
+
* @param taskSearch - The taskSearch object.
|
|
796
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
797
|
+
*/
|
|
798
|
+
searchTasks(taskSearch, requestOptions) {
|
|
799
|
+
if (!taskSearch) {
|
|
800
|
+
throw new Error('Parameter `taskSearch` is required when calling `searchTasks`.');
|
|
801
|
+
}
|
|
802
|
+
if (!taskSearch.taskIDs) {
|
|
803
|
+
throw new Error('Parameter `taskSearch.taskIDs` is required when calling `searchTasks`.');
|
|
804
|
+
}
|
|
805
|
+
const requestPath = '/1/tasks/search';
|
|
806
|
+
const headers = {};
|
|
807
|
+
const queryParameters = {};
|
|
808
|
+
const request = {
|
|
809
|
+
method: 'POST',
|
|
810
|
+
path: requestPath,
|
|
811
|
+
queryParameters,
|
|
812
|
+
headers,
|
|
813
|
+
data: taskSearch,
|
|
814
|
+
};
|
|
815
|
+
return transporter.request(request, requestOptions);
|
|
816
|
+
},
|
|
709
817
|
/**
|
|
710
818
|
* Update a authentication.
|
|
711
819
|
*
|
|
@@ -662,7 +662,7 @@ function createXhrRequester() {
|
|
|
662
662
|
}
|
|
663
663
|
|
|
664
664
|
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
665
|
-
const apiClientVersion = '1.0.0-alpha.
|
|
665
|
+
const apiClientVersion = '1.0.0-alpha.12';
|
|
666
666
|
const REGIONS = ['us'];
|
|
667
667
|
function getDefaultHosts(region) {
|
|
668
668
|
const url = 'data.{region}.algolia.com'.replace('{region}', region);
|
|
@@ -1246,7 +1246,7 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1246
1246
|
* @param getSources.itemsPerPage - The number of items per page to return.
|
|
1247
1247
|
* @param getSources.page - The page number to fetch, starting at 1.
|
|
1248
1248
|
* @param getSources.type - Which type the returned source should have. Can be a list of string separated with commas.
|
|
1249
|
-
* @param getSources.authenticationID - Which authenticationID the returned source should have. Can be a list of string separated with commas.
|
|
1249
|
+
* @param getSources.authenticationID - Which authenticationID the returned source should have. Can be a list of string separated with commas. Also supports \'none\' as a value to return sources that don\'t have any authentication.
|
|
1250
1250
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1251
1251
|
*/
|
|
1252
1252
|
getSources({ itemsPerPage, page, type, authenticationID } = {}, requestOptions = undefined) {
|
|
@@ -1305,11 +1305,12 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1305
1305
|
* @param getTasks.page - The page number to fetch, starting at 1.
|
|
1306
1306
|
* @param getTasks.action - Which action the returned task should have. Can be a list of string separated with commas.
|
|
1307
1307
|
* @param getTasks.enabled - If the returned task should have its \'enabled\' property set to true.
|
|
1308
|
+
* @param getTasks.sourceID - Which sourceID the returned task should have. Can be a list of string separated with commas.
|
|
1308
1309
|
* @param getTasks.destinationID - Which destinationID the returned task should have. Can be a list of string separated with commas.
|
|
1309
1310
|
* @param getTasks.triggerType - Which trigger type the returned task should have. Can be a list of string separated with commas.
|
|
1310
1311
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1311
1312
|
*/
|
|
1312
|
-
getTasks({ itemsPerPage, page, action, enabled, destinationID, triggerType, } = {}, requestOptions = undefined) {
|
|
1313
|
+
getTasks({ itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, } = {}, requestOptions = undefined) {
|
|
1313
1314
|
const requestPath = '/1/tasks';
|
|
1314
1315
|
const headers = {};
|
|
1315
1316
|
const queryParameters = {};
|
|
@@ -1325,6 +1326,9 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1325
1326
|
if (enabled !== undefined) {
|
|
1326
1327
|
queryParameters.enabled = enabled.toString();
|
|
1327
1328
|
}
|
|
1329
|
+
if (sourceID !== undefined) {
|
|
1330
|
+
queryParameters.sourceID = sourceID.toString();
|
|
1331
|
+
}
|
|
1328
1332
|
if (destinationID !== undefined) {
|
|
1329
1333
|
queryParameters.destinationID = destinationID.toString();
|
|
1330
1334
|
}
|
|
@@ -1362,6 +1366,110 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1362
1366
|
};
|
|
1363
1367
|
return transporter.request(request, requestOptions);
|
|
1364
1368
|
},
|
|
1369
|
+
/**
|
|
1370
|
+
* Search among authentications with a defined set of parameters.
|
|
1371
|
+
*
|
|
1372
|
+
* @summary Search among authentications.
|
|
1373
|
+
* @param authenticationSearch - The authenticationSearch object.
|
|
1374
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1375
|
+
*/
|
|
1376
|
+
searchAuthentications(authenticationSearch, requestOptions) {
|
|
1377
|
+
if (!authenticationSearch) {
|
|
1378
|
+
throw new Error('Parameter `authenticationSearch` is required when calling `searchAuthentications`.');
|
|
1379
|
+
}
|
|
1380
|
+
if (!authenticationSearch.authenticationIDs) {
|
|
1381
|
+
throw new Error('Parameter `authenticationSearch.authenticationIDs` is required when calling `searchAuthentications`.');
|
|
1382
|
+
}
|
|
1383
|
+
const requestPath = '/1/authentications/search';
|
|
1384
|
+
const headers = {};
|
|
1385
|
+
const queryParameters = {};
|
|
1386
|
+
const request = {
|
|
1387
|
+
method: 'POST',
|
|
1388
|
+
path: requestPath,
|
|
1389
|
+
queryParameters,
|
|
1390
|
+
headers,
|
|
1391
|
+
data: authenticationSearch,
|
|
1392
|
+
};
|
|
1393
|
+
return transporter.request(request, requestOptions);
|
|
1394
|
+
},
|
|
1395
|
+
/**
|
|
1396
|
+
* Search among destinations with a defined set of parameters.
|
|
1397
|
+
*
|
|
1398
|
+
* @summary Search among destinations.
|
|
1399
|
+
* @param destinationSearch - The destinationSearch object.
|
|
1400
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1401
|
+
*/
|
|
1402
|
+
searchDestinations(destinationSearch, requestOptions) {
|
|
1403
|
+
if (!destinationSearch) {
|
|
1404
|
+
throw new Error('Parameter `destinationSearch` is required when calling `searchDestinations`.');
|
|
1405
|
+
}
|
|
1406
|
+
if (!destinationSearch.destinationIDs) {
|
|
1407
|
+
throw new Error('Parameter `destinationSearch.destinationIDs` is required when calling `searchDestinations`.');
|
|
1408
|
+
}
|
|
1409
|
+
const requestPath = '/1/destinations/search';
|
|
1410
|
+
const headers = {};
|
|
1411
|
+
const queryParameters = {};
|
|
1412
|
+
const request = {
|
|
1413
|
+
method: 'POST',
|
|
1414
|
+
path: requestPath,
|
|
1415
|
+
queryParameters,
|
|
1416
|
+
headers,
|
|
1417
|
+
data: destinationSearch,
|
|
1418
|
+
};
|
|
1419
|
+
return transporter.request(request, requestOptions);
|
|
1420
|
+
},
|
|
1421
|
+
/**
|
|
1422
|
+
* Search among sources with a defined set of parameters.
|
|
1423
|
+
*
|
|
1424
|
+
* @summary Search among sources.
|
|
1425
|
+
* @param sourceSearch - The sourceSearch object.
|
|
1426
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1427
|
+
*/
|
|
1428
|
+
searchSources(sourceSearch, requestOptions) {
|
|
1429
|
+
if (!sourceSearch) {
|
|
1430
|
+
throw new Error('Parameter `sourceSearch` is required when calling `searchSources`.');
|
|
1431
|
+
}
|
|
1432
|
+
if (!sourceSearch.sourceIDs) {
|
|
1433
|
+
throw new Error('Parameter `sourceSearch.sourceIDs` is required when calling `searchSources`.');
|
|
1434
|
+
}
|
|
1435
|
+
const requestPath = '/1/sources/search';
|
|
1436
|
+
const headers = {};
|
|
1437
|
+
const queryParameters = {};
|
|
1438
|
+
const request = {
|
|
1439
|
+
method: 'POST',
|
|
1440
|
+
path: requestPath,
|
|
1441
|
+
queryParameters,
|
|
1442
|
+
headers,
|
|
1443
|
+
data: sourceSearch,
|
|
1444
|
+
};
|
|
1445
|
+
return transporter.request(request, requestOptions);
|
|
1446
|
+
},
|
|
1447
|
+
/**
|
|
1448
|
+
* Search among tasks with a defined set of parameters.
|
|
1449
|
+
*
|
|
1450
|
+
* @summary Search among tasks.
|
|
1451
|
+
* @param taskSearch - The taskSearch object.
|
|
1452
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1453
|
+
*/
|
|
1454
|
+
searchTasks(taskSearch, requestOptions) {
|
|
1455
|
+
if (!taskSearch) {
|
|
1456
|
+
throw new Error('Parameter `taskSearch` is required when calling `searchTasks`.');
|
|
1457
|
+
}
|
|
1458
|
+
if (!taskSearch.taskIDs) {
|
|
1459
|
+
throw new Error('Parameter `taskSearch.taskIDs` is required when calling `searchTasks`.');
|
|
1460
|
+
}
|
|
1461
|
+
const requestPath = '/1/tasks/search';
|
|
1462
|
+
const headers = {};
|
|
1463
|
+
const queryParameters = {};
|
|
1464
|
+
const request = {
|
|
1465
|
+
method: 'POST',
|
|
1466
|
+
path: requestPath,
|
|
1467
|
+
queryParameters,
|
|
1468
|
+
headers,
|
|
1469
|
+
data: taskSearch,
|
|
1470
|
+
};
|
|
1471
|
+
return transporter.request(request, requestOptions);
|
|
1472
|
+
},
|
|
1365
1473
|
/**
|
|
1366
1474
|
* Update a authentication.
|
|
1367
1475
|
*
|
|
@@ -2,7 +2,7 @@ import { createAuth, createTransporter, getAlgoliaAgent, DEFAULT_CONNECT_TIMEOUT
|
|
|
2
2
|
import { createHttpRequester } from '@algolia/requester-node-http';
|
|
3
3
|
|
|
4
4
|
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
5
|
-
const apiClientVersion = '1.0.0-alpha.
|
|
5
|
+
const apiClientVersion = '1.0.0-alpha.12';
|
|
6
6
|
const REGIONS = ['us'];
|
|
7
7
|
function getDefaultHosts(region) {
|
|
8
8
|
const url = 'data.{region}.algolia.com'.replace('{region}', region);
|
|
@@ -586,7 +586,7 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
586
586
|
* @param getSources.itemsPerPage - The number of items per page to return.
|
|
587
587
|
* @param getSources.page - The page number to fetch, starting at 1.
|
|
588
588
|
* @param getSources.type - Which type the returned source should have. Can be a list of string separated with commas.
|
|
589
|
-
* @param getSources.authenticationID - Which authenticationID the returned source should have. Can be a list of string separated with commas.
|
|
589
|
+
* @param getSources.authenticationID - Which authenticationID the returned source should have. Can be a list of string separated with commas. Also supports \'none\' as a value to return sources that don\'t have any authentication.
|
|
590
590
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
591
591
|
*/
|
|
592
592
|
getSources({ itemsPerPage, page, type, authenticationID } = {}, requestOptions = undefined) {
|
|
@@ -645,11 +645,12 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
645
645
|
* @param getTasks.page - The page number to fetch, starting at 1.
|
|
646
646
|
* @param getTasks.action - Which action the returned task should have. Can be a list of string separated with commas.
|
|
647
647
|
* @param getTasks.enabled - If the returned task should have its \'enabled\' property set to true.
|
|
648
|
+
* @param getTasks.sourceID - Which sourceID the returned task should have. Can be a list of string separated with commas.
|
|
648
649
|
* @param getTasks.destinationID - Which destinationID the returned task should have. Can be a list of string separated with commas.
|
|
649
650
|
* @param getTasks.triggerType - Which trigger type the returned task should have. Can be a list of string separated with commas.
|
|
650
651
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
651
652
|
*/
|
|
652
|
-
getTasks({ itemsPerPage, page, action, enabled, destinationID, triggerType, } = {}, requestOptions = undefined) {
|
|
653
|
+
getTasks({ itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, } = {}, requestOptions = undefined) {
|
|
653
654
|
const requestPath = '/1/tasks';
|
|
654
655
|
const headers = {};
|
|
655
656
|
const queryParameters = {};
|
|
@@ -665,6 +666,9 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
665
666
|
if (enabled !== undefined) {
|
|
666
667
|
queryParameters.enabled = enabled.toString();
|
|
667
668
|
}
|
|
669
|
+
if (sourceID !== undefined) {
|
|
670
|
+
queryParameters.sourceID = sourceID.toString();
|
|
671
|
+
}
|
|
668
672
|
if (destinationID !== undefined) {
|
|
669
673
|
queryParameters.destinationID = destinationID.toString();
|
|
670
674
|
}
|
|
@@ -702,6 +706,110 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
702
706
|
};
|
|
703
707
|
return transporter.request(request, requestOptions);
|
|
704
708
|
},
|
|
709
|
+
/**
|
|
710
|
+
* Search among authentications with a defined set of parameters.
|
|
711
|
+
*
|
|
712
|
+
* @summary Search among authentications.
|
|
713
|
+
* @param authenticationSearch - The authenticationSearch object.
|
|
714
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
715
|
+
*/
|
|
716
|
+
searchAuthentications(authenticationSearch, requestOptions) {
|
|
717
|
+
if (!authenticationSearch) {
|
|
718
|
+
throw new Error('Parameter `authenticationSearch` is required when calling `searchAuthentications`.');
|
|
719
|
+
}
|
|
720
|
+
if (!authenticationSearch.authenticationIDs) {
|
|
721
|
+
throw new Error('Parameter `authenticationSearch.authenticationIDs` is required when calling `searchAuthentications`.');
|
|
722
|
+
}
|
|
723
|
+
const requestPath = '/1/authentications/search';
|
|
724
|
+
const headers = {};
|
|
725
|
+
const queryParameters = {};
|
|
726
|
+
const request = {
|
|
727
|
+
method: 'POST',
|
|
728
|
+
path: requestPath,
|
|
729
|
+
queryParameters,
|
|
730
|
+
headers,
|
|
731
|
+
data: authenticationSearch,
|
|
732
|
+
};
|
|
733
|
+
return transporter.request(request, requestOptions);
|
|
734
|
+
},
|
|
735
|
+
/**
|
|
736
|
+
* Search among destinations with a defined set of parameters.
|
|
737
|
+
*
|
|
738
|
+
* @summary Search among destinations.
|
|
739
|
+
* @param destinationSearch - The destinationSearch object.
|
|
740
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
741
|
+
*/
|
|
742
|
+
searchDestinations(destinationSearch, requestOptions) {
|
|
743
|
+
if (!destinationSearch) {
|
|
744
|
+
throw new Error('Parameter `destinationSearch` is required when calling `searchDestinations`.');
|
|
745
|
+
}
|
|
746
|
+
if (!destinationSearch.destinationIDs) {
|
|
747
|
+
throw new Error('Parameter `destinationSearch.destinationIDs` is required when calling `searchDestinations`.');
|
|
748
|
+
}
|
|
749
|
+
const requestPath = '/1/destinations/search';
|
|
750
|
+
const headers = {};
|
|
751
|
+
const queryParameters = {};
|
|
752
|
+
const request = {
|
|
753
|
+
method: 'POST',
|
|
754
|
+
path: requestPath,
|
|
755
|
+
queryParameters,
|
|
756
|
+
headers,
|
|
757
|
+
data: destinationSearch,
|
|
758
|
+
};
|
|
759
|
+
return transporter.request(request, requestOptions);
|
|
760
|
+
},
|
|
761
|
+
/**
|
|
762
|
+
* Search among sources with a defined set of parameters.
|
|
763
|
+
*
|
|
764
|
+
* @summary Search among sources.
|
|
765
|
+
* @param sourceSearch - The sourceSearch object.
|
|
766
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
767
|
+
*/
|
|
768
|
+
searchSources(sourceSearch, requestOptions) {
|
|
769
|
+
if (!sourceSearch) {
|
|
770
|
+
throw new Error('Parameter `sourceSearch` is required when calling `searchSources`.');
|
|
771
|
+
}
|
|
772
|
+
if (!sourceSearch.sourceIDs) {
|
|
773
|
+
throw new Error('Parameter `sourceSearch.sourceIDs` is required when calling `searchSources`.');
|
|
774
|
+
}
|
|
775
|
+
const requestPath = '/1/sources/search';
|
|
776
|
+
const headers = {};
|
|
777
|
+
const queryParameters = {};
|
|
778
|
+
const request = {
|
|
779
|
+
method: 'POST',
|
|
780
|
+
path: requestPath,
|
|
781
|
+
queryParameters,
|
|
782
|
+
headers,
|
|
783
|
+
data: sourceSearch,
|
|
784
|
+
};
|
|
785
|
+
return transporter.request(request, requestOptions);
|
|
786
|
+
},
|
|
787
|
+
/**
|
|
788
|
+
* Search among tasks with a defined set of parameters.
|
|
789
|
+
*
|
|
790
|
+
* @summary Search among tasks.
|
|
791
|
+
* @param taskSearch - The taskSearch object.
|
|
792
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
793
|
+
*/
|
|
794
|
+
searchTasks(taskSearch, requestOptions) {
|
|
795
|
+
if (!taskSearch) {
|
|
796
|
+
throw new Error('Parameter `taskSearch` is required when calling `searchTasks`.');
|
|
797
|
+
}
|
|
798
|
+
if (!taskSearch.taskIDs) {
|
|
799
|
+
throw new Error('Parameter `taskSearch.taskIDs` is required when calling `searchTasks`.');
|
|
800
|
+
}
|
|
801
|
+
const requestPath = '/1/tasks/search';
|
|
802
|
+
const headers = {};
|
|
803
|
+
const queryParameters = {};
|
|
804
|
+
const request = {
|
|
805
|
+
method: 'POST',
|
|
806
|
+
path: requestPath,
|
|
807
|
+
queryParameters,
|
|
808
|
+
headers,
|
|
809
|
+
data: taskSearch,
|
|
810
|
+
};
|
|
811
|
+
return transporter.request(request, requestOptions);
|
|
812
|
+
},
|
|
705
813
|
/**
|
|
706
814
|
* Update a authentication.
|
|
707
815
|
*
|
package/dist/ingestion.umd.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! ingestion.umd.js | 1.0.0-alpha.
|
|
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 l extends i{constructor(e,t){super(e,"DeserializationError"),o(this,"response",void 0),this.response=t}}class h 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 P(u,g,P=!0){const f=[],w=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),I=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),q="GET"===u.method?{...u.data,...g.data}:{},D={...a,...u.queryParameters,...q};if(n.value&&(D["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])?D[e]=g.queryParameters[e].toString():D[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)))}(f));let n=g.timeout;void 0===n&&(n=P?o.read:o.write);const q={data:w,headers:I,method:u.method,url:m(a,u.path,D),connectTimeout:r(y,o.connect),responseTimeout:r(y,n)},T=t=>{const r={request:q,response:t,host:a,triesLeft:e.length};return f.push(r),r},E=await i.send(q);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=T(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 l(t.message,e)}}(E);throw T(E),function({content:e,status:t},r){try{const a=JSON.parse(e);return"error"in a?new h(a.message,t,a.error,r):new d(a.message,t,r)}catch(e){}return new d(e,t,r)}(E,f)},T=e.filter((e=>"readWrite"===e.accept||(P?"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}}(T);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 P(e,t,n);const s=()=>P(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 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.10",w=["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||!w.includes(s)))throw new Error(`\`region\` is required and must be one of the following: ${w.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:{...P({algoliaAgents:a,client:"Ingestion",version:f}),value:""},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`.");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`.");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`.");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.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)},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}={},n){const s={};void 0!==e&&(s.itemsPerPage=e.toString()),void 0!==t&&(s.page=t.toString()),void 0!==r&&(s.type=r.toString()),void 0!==a&&(s.platform=a.toString());const o={method:"GET",path:"/1/authentications",queryParameters:s,headers:{}};return i.request(o,n)},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}={},n){const s={};void 0!==e&&(s.itemsPerPage=e.toString()),void 0!==t&&(s.page=t.toString()),void 0!==r&&(s.type=r.toString()),void 0!==a&&(s.authenticationID=a.toString());const o={method:"GET",path:"/1/destinations",queryParameters:s,headers:{}};return i.request(o,n)},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},a){if(!e)throw new Error("Parameter `runID` is required when calling `getEvents`.");const n="/1/runs/{runID}/events".replace("{runID}",encodeURIComponent(e)),s={};void 0!==t&&(s.itemsPerPage=t.toString()),void 0!==r&&(s.page=r.toString());const o={method:"GET",path:n,queryParameters:s,headers:{}};return i.request(o,a)},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}={},r){const a={};void 0!==e&&(a.itemsPerPage=e.toString()),void 0!==t&&(a.page=t.toString());const n={method:"GET",path:"/1/runs",queryParameters:a,headers:{}};return i.request(n,r)},getRunsByTaskID({taskID:e,itemsPerPage:t,page:r},a){if(!e)throw new Error("Parameter `taskID` is required when calling `getRunsByTaskID`.");const n="/1/runs/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),s={};void 0!==t&&(s.itemsPerPage=t.toString()),void 0!==r&&(s.page=r.toString());const o={method:"GET",path:n,queryParameters:s,headers:{}};return i.request(o,a)},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}={},n){const s={};void 0!==e&&(s.itemsPerPage=e.toString()),void 0!==t&&(s.page=t.toString()),void 0!==r&&(s.type=r.toString()),void 0!==a&&(s.authenticationID=a.toString());const o={method:"GET",path:"/1/sources",queryParameters:s,headers:{}};return i.request(o,n)},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,destinationID:n,triggerType:s}={},o){const u={};void 0!==e&&(u.itemsPerPage=e.toString()),void 0!==t&&(u.page=t.toString()),void 0!==r&&(u.action=r.toString()),void 0!==a&&(u.enabled=a.toString()),void 0!==n&&(u.destinationID=n.toString()),void 0!==s&&(u.triggerType=s.toString());const c={method:"GET",path:"/1/tasks",queryParameters:u,headers:{}};return i.request(c,o)},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)},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:"PUT",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:"PUT",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:"POST",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:"PUT",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:`1.0.0-alpha.10-${e}`}),a()]}),...o})}}));
|
|
1
|
+
/*! ingestion.umd.js | 1.0.0-alpha.12 | © 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 h extends u{constructor(e,t,r,a="ApiError"){super(e,r,a),o(this,"status",void 0),this.status=t}}class d extends i{constructor(e,t){super(e,"DeserializationError"),o(this,"response",void 0),this.response=t}}class l extends h{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 P(u,g,P=!0){const w=[],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)}(u,g),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,u.headers,g.headers),I="GET"===u.method?{...u.data,...g.data}:{},D={...a,...u.queryParameters,...I};if(n.value&&(D["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])?D[e]=g.queryParameters[e].toString():D[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)))}(w));let n=g.timeout;void 0===n&&(n=P?o.read:o.write);const I={data:f,headers:q,method:u.method,url:m(a,u.path,D),connectTimeout:r(y,o.connect),responseTimeout:r(y,n)},T=t=>{const r={request:I,response:t,host:a,triesLeft:e.length};return w.push(r),r},E=await i.send(I);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=T(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 d(t.message,e)}}(E);throw T(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 h(a.message,t,r)}catch(e){}return new h(e,t,r)}(E,w)},T=e.filter((e=>"readWrite"===e.accept||(P?"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}}(T);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 P(e,t,n);const s=()=>P(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 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 w="1.0.0-alpha.12",f=["us"];e.apiClientVersion=w,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||!f.includes(s)))throw new Error(`\`region\` is required and must be one of the following: ${f.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:{...P({algoliaAgents:a,client:"Ingestion",version:w}),value:""},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`.");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`.");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`.");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.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)},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}={},n){const s={};void 0!==e&&(s.itemsPerPage=e.toString()),void 0!==t&&(s.page=t.toString()),void 0!==r&&(s.type=r.toString()),void 0!==a&&(s.platform=a.toString());const o={method:"GET",path:"/1/authentications",queryParameters:s,headers:{}};return i.request(o,n)},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}={},n){const s={};void 0!==e&&(s.itemsPerPage=e.toString()),void 0!==t&&(s.page=t.toString()),void 0!==r&&(s.type=r.toString()),void 0!==a&&(s.authenticationID=a.toString());const o={method:"GET",path:"/1/destinations",queryParameters:s,headers:{}};return i.request(o,n)},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},a){if(!e)throw new Error("Parameter `runID` is required when calling `getEvents`.");const n="/1/runs/{runID}/events".replace("{runID}",encodeURIComponent(e)),s={};void 0!==t&&(s.itemsPerPage=t.toString()),void 0!==r&&(s.page=r.toString());const o={method:"GET",path:n,queryParameters:s,headers:{}};return i.request(o,a)},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}={},r){const a={};void 0!==e&&(a.itemsPerPage=e.toString()),void 0!==t&&(a.page=t.toString());const n={method:"GET",path:"/1/runs",queryParameters:a,headers:{}};return i.request(n,r)},getRunsByTaskID({taskID:e,itemsPerPage:t,page:r},a){if(!e)throw new Error("Parameter `taskID` is required when calling `getRunsByTaskID`.");const n="/1/runs/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),s={};void 0!==t&&(s.itemsPerPage=t.toString()),void 0!==r&&(s.page=r.toString());const o={method:"GET",path:n,queryParameters:s,headers:{}};return i.request(o,a)},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}={},n){const s={};void 0!==e&&(s.itemsPerPage=e.toString()),void 0!==t&&(s.page=t.toString()),void 0!==r&&(s.type=r.toString()),void 0!==a&&(s.authenticationID=a.toString());const o={method:"GET",path:"/1/sources",queryParameters:s,headers:{}};return i.request(o,n)},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}={},u){const c={};void 0!==e&&(c.itemsPerPage=e.toString()),void 0!==t&&(c.page=t.toString()),void 0!==r&&(c.action=r.toString()),void 0!==a&&(c.enabled=a.toString()),void 0!==n&&(c.sourceID=n.toString()),void 0!==s&&(c.destinationID=s.toString()),void 0!==o&&(c.triggerType=o.toString());const h={method:"GET",path:"/1/tasks",queryParameters:c,headers:{}};return i.request(h,u)},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)},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:"PUT",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:"PUT",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:"POST",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:"PUT",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:`1.0.0-alpha.12-${e}`}),a()]}),...o})}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authenticationSearch.d.ts","sourceRoot":"","sources":["../../model/authenticationSearch.ts"],"names":[],"mappings":"AAEA,oBAAY,oBAAoB,GAAG;IACjC,iBAAiB,EAAE,MAAM,EAAE,CAAC;CAC7B,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ActionType } from './actionType';
|
|
2
|
-
import type {
|
|
2
|
+
import type { AuthenticationType } from './authenticationType';
|
|
3
3
|
import type { AuthenticationUpdate } from './authenticationUpdate';
|
|
4
4
|
import type { DestinationType } from './destinationType';
|
|
5
5
|
import type { DestinationUpdate } from './destinationUpdate';
|
|
6
|
-
import type {
|
|
6
|
+
import type { PlatformWithNone } from './platformWithNone';
|
|
7
7
|
import type { SourceType } from './sourceType';
|
|
8
8
|
import type { SourceUpdate } from './sourceUpdate';
|
|
9
9
|
import type { TaskUpdate } from './taskUpdate';
|
|
@@ -86,11 +86,11 @@ export declare type GetAuthenticationsProps = {
|
|
|
86
86
|
/**
|
|
87
87
|
* Which type the returned authentication should have. Can be a list of string separated with commas.
|
|
88
88
|
*/
|
|
89
|
-
type?:
|
|
89
|
+
type?: AuthenticationType[];
|
|
90
90
|
/**
|
|
91
91
|
* Which platform the returned authentication should have. Can be a list of string separated with commas.
|
|
92
92
|
*/
|
|
93
|
-
platform?:
|
|
93
|
+
platform?: PlatformWithNone[];
|
|
94
94
|
};
|
|
95
95
|
/**
|
|
96
96
|
* Properties for the `getDestination` method.
|
|
@@ -217,7 +217,7 @@ export declare type GetSourcesProps = {
|
|
|
217
217
|
*/
|
|
218
218
|
type?: SourceType[];
|
|
219
219
|
/**
|
|
220
|
-
* Which authenticationID the returned source should have. Can be a list of string separated with commas.
|
|
220
|
+
* Which authenticationID the returned source should have. Can be a list of string separated with commas. Also supports \'none\' as a value to return sources that don\'t have any authentication.
|
|
221
221
|
*/
|
|
222
222
|
authenticationID?: string[];
|
|
223
223
|
};
|
|
@@ -250,6 +250,10 @@ export declare type GetTasksProps = {
|
|
|
250
250
|
* If the returned task should have its \'enabled\' property set to true.
|
|
251
251
|
*/
|
|
252
252
|
enabled?: boolean;
|
|
253
|
+
/**
|
|
254
|
+
* Which sourceID the returned task should have. Can be a list of string separated with commas.
|
|
255
|
+
*/
|
|
256
|
+
sourceID?: string[];
|
|
253
257
|
/**
|
|
254
258
|
* Which destinationID the returned task should have. Can be a list of string separated with commas.
|
|
255
259
|
*/
|
|
@@ -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,
|
|
1
|
+
{"version":3,"file":"clientMethodProps.d.ts","sourceRoot":"","sources":["../../model/clientMethodProps.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC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AAC;IACtB,iBAAiB,EAAE,iBAAiB,CAAC;CACtC,CAAC;AAEF;;GAEG;AACH,oBAAY,iBAAiB,GAAG;IAC9B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,YAAY,CAAC;CAC5B,CAAC;AAEF;;GAEG;AACH,oBAAY,eAAe,GAAG;IAC5B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,UAAU,CAAC;CACxB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"destinationSearch.d.ts","sourceRoot":"","sources":["../../model/destinationSearch.ts"],"names":[],"mappings":"AAEA,oBAAY,iBAAiB,GAAG;IAC9B,cAAc,EAAE,MAAM,EAAE,CAAC;CAC1B,CAAC"}
|
package/dist/model/index.d.ts
CHANGED
|
@@ -9,9 +9,8 @@ export * from './authentication';
|
|
|
9
9
|
export * from './authenticationCreate';
|
|
10
10
|
export * from './authenticationCreateResponse';
|
|
11
11
|
export * from './authenticationInput';
|
|
12
|
-
export * from './
|
|
12
|
+
export * from './authenticationSearch';
|
|
13
13
|
export * from './authenticationType';
|
|
14
|
-
export * from './authenticationTypeWithNone';
|
|
15
14
|
export * from './authenticationUpdate';
|
|
16
15
|
export * from './authenticationUpdateResponse';
|
|
17
16
|
export * from './authenticationWithInput';
|
|
@@ -22,6 +21,7 @@ export * from './destinationCreateResponse';
|
|
|
22
21
|
export * from './destinationIndexName';
|
|
23
22
|
export * from './destinationIndexPrefix';
|
|
24
23
|
export * from './destinationInput';
|
|
24
|
+
export * from './destinationSearch';
|
|
25
25
|
export * from './destinationType';
|
|
26
26
|
export * from './destinationUpdate';
|
|
27
27
|
export * from './destinationUpdateResponse';
|
|
@@ -37,6 +37,8 @@ export * from './listTasksResponse';
|
|
|
37
37
|
export * from './methodType';
|
|
38
38
|
export * from './pagination';
|
|
39
39
|
export * from './platform';
|
|
40
|
+
export * from './platformNone';
|
|
41
|
+
export * from './platformWithNone';
|
|
40
42
|
export * from './run';
|
|
41
43
|
export * from './runListResponse';
|
|
42
44
|
export * from './runOutcome';
|
|
@@ -51,12 +53,14 @@ export * from './sourceCreate';
|
|
|
51
53
|
export * from './sourceCreateResponse';
|
|
52
54
|
export * from './sourceInput';
|
|
53
55
|
export * from './sourceJson';
|
|
56
|
+
export * from './sourceSearch';
|
|
54
57
|
export * from './sourceType';
|
|
55
58
|
export * from './sourceUpdate';
|
|
56
59
|
export * from './sourceUpdateResponse';
|
|
57
60
|
export * from './task';
|
|
58
61
|
export * from './taskCreate';
|
|
59
62
|
export * from './taskCreateResponse';
|
|
63
|
+
export * from './taskSearch';
|
|
60
64
|
export * from './taskUpdate';
|
|
61
65
|
export * from './taskUpdateResponse';
|
|
62
66
|
export * from './trigger';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../model/index.ts"],"names":[],"mappings":"AAEA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uBAAuB,CAAC;AACtC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../model/index.ts"],"names":[],"mappings":"AAEA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uBAAuB,CA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;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platformNone.d.ts","sourceRoot":"","sources":["../../model/platformNone.ts"],"names":[],"mappings":"AAEA,oBAAY,YAAY,GAAG,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platformWithNone.d.ts","sourceRoot":"","sources":["../../model/platformWithNone.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,oBAAY,gBAAgB,GAAG,QAAQ,GAAG,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sourceSearch.d.ts","sourceRoot":"","sources":["../../model/sourceSearch.ts"],"names":[],"mappings":"AAEA,oBAAY,YAAY,GAAG;IACzB,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taskSearch.d.ts","sourceRoot":"","sources":["../../model/taskSearch.ts"],"names":[],"mappings":"AAEA,oBAAY,UAAU,GAAG;IACvB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { CreateClientOptions, RequestOptions } from '@algolia/client-common';
|
|
2
|
+
import type { Authentication } from '../model/authentication';
|
|
2
3
|
import type { AuthenticationCreate } from '../model/authenticationCreate';
|
|
3
4
|
import type { AuthenticationCreateResponse } from '../model/authenticationCreateResponse';
|
|
5
|
+
import type { AuthenticationSearch } from '../model/authenticationSearch';
|
|
4
6
|
import type { AuthenticationUpdateResponse } from '../model/authenticationUpdateResponse';
|
|
5
7
|
import type { AuthenticationWithInput } from '../model/authenticationWithInput';
|
|
6
8
|
import type { DeleteAuthenticationProps, DeleteDestinationProps, DeleteSourceProps, DeleteTaskProps, DisableTaskProps, EnableTaskProps, GetAuthenticationProps, GetAuthenticationsProps, GetDestinationProps, GetDestinationsProps, GetEventProps, GetEventsProps, GetRunProps, GetRunsProps, GetRunsByTaskIDProps, GetSourceProps, GetSourcesProps, GetTaskProps, GetTasksProps, RunTaskProps, UpdateAuthenticationProps, UpdateDestinationProps, UpdateSourceProps, UpdateTaskProps } from '../model/clientMethodProps';
|
|
@@ -8,6 +10,7 @@ import type { DeleteResponse } from '../model/deleteResponse';
|
|
|
8
10
|
import type { Destination } from '../model/destination';
|
|
9
11
|
import type { DestinationCreate } from '../model/destinationCreate';
|
|
10
12
|
import type { DestinationCreateResponse } from '../model/destinationCreateResponse';
|
|
13
|
+
import type { DestinationSearch } from '../model/destinationSearch';
|
|
11
14
|
import type { DestinationUpdateResponse } from '../model/destinationUpdateResponse';
|
|
12
15
|
import type { Event } from '../model/event';
|
|
13
16
|
import type { ListAuthenticationsResponse } from '../model/listAuthenticationsResponse';
|
|
@@ -21,12 +24,14 @@ import type { RunResponse } from '../model/runResponse';
|
|
|
21
24
|
import type { Source } from '../model/source';
|
|
22
25
|
import type { SourceCreate } from '../model/sourceCreate';
|
|
23
26
|
import type { SourceCreateResponse } from '../model/sourceCreateResponse';
|
|
27
|
+
import type { SourceSearch } from '../model/sourceSearch';
|
|
24
28
|
import type { SourceUpdateResponse } from '../model/sourceUpdateResponse';
|
|
25
29
|
import type { Task } from '../model/task';
|
|
26
30
|
import type { TaskCreate } from '../model/taskCreate';
|
|
27
31
|
import type { TaskCreateResponse } from '../model/taskCreateResponse';
|
|
32
|
+
import type { TaskSearch } from '../model/taskSearch';
|
|
28
33
|
import type { TaskUpdateResponse } from '../model/taskUpdateResponse';
|
|
29
|
-
export declare const apiClientVersion = "1.0.0-alpha.
|
|
34
|
+
export declare const apiClientVersion = "1.0.0-alpha.12";
|
|
30
35
|
export declare const REGIONS: readonly ["us"];
|
|
31
36
|
export declare type Region = typeof REGIONS[number];
|
|
32
37
|
export declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, region: regionOption, ...options }: CreateClientOptions & {
|
|
@@ -248,7 +253,7 @@ export declare function createIngestionClient({ appId: appIdOption, apiKey: apiK
|
|
|
248
253
|
* @param getSources.itemsPerPage - The number of items per page to return.
|
|
249
254
|
* @param getSources.page - The page number to fetch, starting at 1.
|
|
250
255
|
* @param getSources.type - Which type the returned source should have. Can be a list of string separated with commas.
|
|
251
|
-
* @param getSources.authenticationID - Which authenticationID the returned source should have. Can be a list of string separated with commas.
|
|
256
|
+
* @param getSources.authenticationID - Which authenticationID the returned source should have. Can be a list of string separated with commas. Also supports \'none\' as a value to return sources that don\'t have any authentication.
|
|
252
257
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
253
258
|
*/
|
|
254
259
|
getSources({ itemsPerPage, page, type, authenticationID }?: GetSourcesProps, requestOptions?: RequestOptions | undefined): Promise<ListSourcesResponse>;
|
|
@@ -270,11 +275,12 @@ export declare function createIngestionClient({ appId: appIdOption, apiKey: apiK
|
|
|
270
275
|
* @param getTasks.page - The page number to fetch, starting at 1.
|
|
271
276
|
* @param getTasks.action - Which action the returned task should have. Can be a list of string separated with commas.
|
|
272
277
|
* @param getTasks.enabled - If the returned task should have its \'enabled\' property set to true.
|
|
278
|
+
* @param getTasks.sourceID - Which sourceID the returned task should have. Can be a list of string separated with commas.
|
|
273
279
|
* @param getTasks.destinationID - Which destinationID the returned task should have. Can be a list of string separated with commas.
|
|
274
280
|
* @param getTasks.triggerType - Which trigger type the returned task should have. Can be a list of string separated with commas.
|
|
275
281
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
276
282
|
*/
|
|
277
|
-
getTasks({ itemsPerPage, page, action, enabled, destinationID, triggerType, }?: GetTasksProps, requestOptions?: RequestOptions | undefined): Promise<ListTasksResponse>;
|
|
283
|
+
getTasks({ itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, }?: GetTasksProps, requestOptions?: RequestOptions | undefined): Promise<ListTasksResponse>;
|
|
278
284
|
/**
|
|
279
285
|
* Run a task.
|
|
280
286
|
*
|
|
@@ -284,6 +290,38 @@ export declare function createIngestionClient({ appId: appIdOption, apiKey: apiK
|
|
|
284
290
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
285
291
|
*/
|
|
286
292
|
runTask({ taskID }: RunTaskProps, requestOptions?: RequestOptions): Promise<RunResponse>;
|
|
293
|
+
/**
|
|
294
|
+
* Search among authentications with a defined set of parameters.
|
|
295
|
+
*
|
|
296
|
+
* @summary Search among authentications.
|
|
297
|
+
* @param authenticationSearch - The authenticationSearch object.
|
|
298
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
299
|
+
*/
|
|
300
|
+
searchAuthentications(authenticationSearch: AuthenticationSearch, requestOptions?: RequestOptions): Promise<Authentication[]>;
|
|
301
|
+
/**
|
|
302
|
+
* Search among destinations with a defined set of parameters.
|
|
303
|
+
*
|
|
304
|
+
* @summary Search among destinations.
|
|
305
|
+
* @param destinationSearch - The destinationSearch object.
|
|
306
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
307
|
+
*/
|
|
308
|
+
searchDestinations(destinationSearch: DestinationSearch, requestOptions?: RequestOptions): Promise<Destination[]>;
|
|
309
|
+
/**
|
|
310
|
+
* Search among sources with a defined set of parameters.
|
|
311
|
+
*
|
|
312
|
+
* @summary Search among sources.
|
|
313
|
+
* @param sourceSearch - The sourceSearch object.
|
|
314
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
315
|
+
*/
|
|
316
|
+
searchSources(sourceSearch: SourceSearch, requestOptions?: RequestOptions): Promise<Source[]>;
|
|
317
|
+
/**
|
|
318
|
+
* Search among tasks with a defined set of parameters.
|
|
319
|
+
*
|
|
320
|
+
* @summary Search among tasks.
|
|
321
|
+
* @param taskSearch - The taskSearch object.
|
|
322
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
323
|
+
*/
|
|
324
|
+
searchTasks(taskSearch: TaskSearch, requestOptions?: RequestOptions): Promise<Task[]>;
|
|
287
325
|
/**
|
|
288
326
|
* Update a authentication.
|
|
289
327
|
*
|
|
@@ -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,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,uCAAuC,CAAC;AAC1F,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,uCAAuC,CAAC;AAC1F,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAChF,OAAO,KAAK,EACV,yBAAyB,EACzB,sBAAsB,EACtB,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,sBAAsB,EACtB,uBAAuB,EACvB,mBAAmB,EACnB,oBAAoB,EACpB,aAAa,EACb,cAAc,EACd,WAAW,EACX,YAAY,EACZ,oBAAoB,EACpB,cAAc,EACd,eAAe,EACf,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,yBAAyB,EACzB,sBAAsB,EACtB,iBAAiB,EACjB,eAAe,EAChB,MAAM,4BAA4B,CAAC;AACpC,O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;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,oBAAY,eAAe,GAAG,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
2
|
|
|
3
3
|
import type { ActionType } from './actionType';
|
|
4
|
-
import type {
|
|
4
|
+
import type { AuthenticationType } from './authenticationType';
|
|
5
5
|
import type { AuthenticationUpdate } from './authenticationUpdate';
|
|
6
6
|
import type { DestinationType } from './destinationType';
|
|
7
7
|
import type { DestinationUpdate } from './destinationUpdate';
|
|
8
|
-
import type {
|
|
8
|
+
import type { PlatformWithNone } from './platformWithNone';
|
|
9
9
|
import type { SourceType } from './sourceType';
|
|
10
10
|
import type { SourceUpdate } from './sourceUpdate';
|
|
11
11
|
import type { TaskUpdate } from './taskUpdate';
|
|
@@ -96,11 +96,11 @@ export type GetAuthenticationsProps = {
|
|
|
96
96
|
/**
|
|
97
97
|
* Which type the returned authentication should have. Can be a list of string separated with commas.
|
|
98
98
|
*/
|
|
99
|
-
type?:
|
|
99
|
+
type?: AuthenticationType[];
|
|
100
100
|
/**
|
|
101
101
|
* Which platform the returned authentication should have. Can be a list of string separated with commas.
|
|
102
102
|
*/
|
|
103
|
-
platform?:
|
|
103
|
+
platform?: PlatformWithNone[];
|
|
104
104
|
};
|
|
105
105
|
|
|
106
106
|
/**
|
|
@@ -236,7 +236,7 @@ export type GetSourcesProps = {
|
|
|
236
236
|
*/
|
|
237
237
|
type?: SourceType[];
|
|
238
238
|
/**
|
|
239
|
-
* Which authenticationID the returned source should have. Can be a list of string separated with commas.
|
|
239
|
+
* Which authenticationID the returned source should have. Can be a list of string separated with commas. Also supports \'none\' as a value to return sources that don\'t have any authentication.
|
|
240
240
|
*/
|
|
241
241
|
authenticationID?: string[];
|
|
242
242
|
};
|
|
@@ -271,6 +271,10 @@ export type GetTasksProps = {
|
|
|
271
271
|
* If the returned task should have its \'enabled\' property set to true.
|
|
272
272
|
*/
|
|
273
273
|
enabled?: boolean;
|
|
274
|
+
/**
|
|
275
|
+
* Which sourceID the returned task should have. Can be a list of string separated with commas.
|
|
276
|
+
*/
|
|
277
|
+
sourceID?: string[];
|
|
274
278
|
/**
|
|
275
279
|
* Which destinationID the returned task should have. Can be a list of string separated with commas.
|
|
276
280
|
*/
|
package/model/index.ts
CHANGED
|
@@ -11,9 +11,8 @@ export * from './authentication';
|
|
|
11
11
|
export * from './authenticationCreate';
|
|
12
12
|
export * from './authenticationCreateResponse';
|
|
13
13
|
export * from './authenticationInput';
|
|
14
|
-
export * from './
|
|
14
|
+
export * from './authenticationSearch';
|
|
15
15
|
export * from './authenticationType';
|
|
16
|
-
export * from './authenticationTypeWithNone';
|
|
17
16
|
export * from './authenticationUpdate';
|
|
18
17
|
export * from './authenticationUpdateResponse';
|
|
19
18
|
export * from './authenticationWithInput';
|
|
@@ -24,6 +23,7 @@ export * from './destinationCreateResponse';
|
|
|
24
23
|
export * from './destinationIndexName';
|
|
25
24
|
export * from './destinationIndexPrefix';
|
|
26
25
|
export * from './destinationInput';
|
|
26
|
+
export * from './destinationSearch';
|
|
27
27
|
export * from './destinationType';
|
|
28
28
|
export * from './destinationUpdate';
|
|
29
29
|
export * from './destinationUpdateResponse';
|
|
@@ -39,6 +39,8 @@ export * from './listTasksResponse';
|
|
|
39
39
|
export * from './methodType';
|
|
40
40
|
export * from './pagination';
|
|
41
41
|
export * from './platform';
|
|
42
|
+
export * from './platformNone';
|
|
43
|
+
export * from './platformWithNone';
|
|
42
44
|
export * from './run';
|
|
43
45
|
export * from './runListResponse';
|
|
44
46
|
export * from './runOutcome';
|
|
@@ -53,12 +55,14 @@ export * from './sourceCreate';
|
|
|
53
55
|
export * from './sourceCreateResponse';
|
|
54
56
|
export * from './sourceInput';
|
|
55
57
|
export * from './sourceJson';
|
|
58
|
+
export * from './sourceSearch';
|
|
56
59
|
export * from './sourceType';
|
|
57
60
|
export * from './sourceUpdate';
|
|
58
61
|
export * from './sourceUpdateResponse';
|
|
59
62
|
export * from './task';
|
|
60
63
|
export * from './taskCreate';
|
|
61
64
|
export * from './taskCreateResponse';
|
|
65
|
+
export * from './taskSearch';
|
|
62
66
|
export * from './taskUpdate';
|
|
63
67
|
export * from './taskUpdateResponse';
|
|
64
68
|
export * from './trigger';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
+
|
|
3
|
+
import type { Platform } from './platform';
|
|
4
|
+
import type { PlatformNone } from './platformNone';
|
|
5
|
+
|
|
6
|
+
export type PlatformWithNone = Platform | PlatformNone;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@algolia/ingestion",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.12",
|
|
4
4
|
"description": "JavaScript client for ingestion",
|
|
5
5
|
"repository": "algolia/algoliasearch-client-javascript",
|
|
6
6
|
"license": "MIT",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"clean": "rm -rf ./dist || true"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@algolia/client-common": "5.0.0-alpha.
|
|
42
|
-
"@algolia/requester-browser-xhr": "5.0.0-alpha.
|
|
43
|
-
"@algolia/requester-node-http": "5.0.0-alpha.
|
|
41
|
+
"@algolia/client-common": "5.0.0-alpha.38",
|
|
42
|
+
"@algolia/requester-browser-xhr": "5.0.0-alpha.38",
|
|
43
|
+
"@algolia/requester-node-http": "5.0.0-alpha.38"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/node": "16.11.59",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"authenticationNone.d.ts","sourceRoot":"","sources":["../../model/authenticationNone.ts"],"names":[],"mappings":"AAEA,oBAAY,kBAAkB,GAAG,MAAM,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { AuthenticationNone } from './authenticationNone';
|
|
2
|
-
import type { AuthenticationType } from './authenticationType';
|
|
3
|
-
export declare type AuthenticationTypeWithNone = AuthenticationNone | AuthenticationType;
|
|
4
|
-
//# sourceMappingURL=authenticationTypeWithNone.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"authenticationTypeWithNone.d.ts","sourceRoot":"","sources":["../../model/authenticationTypeWithNone.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,oBAAY,0BAA0B,GAClC,kBAAkB,GAClB,kBAAkB,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
-
|
|
3
|
-
import type { AuthenticationNone } from './authenticationNone';
|
|
4
|
-
import type { AuthenticationType } from './authenticationType';
|
|
5
|
-
|
|
6
|
-
export type AuthenticationTypeWithNone =
|
|
7
|
-
| AuthenticationNone
|
|
8
|
-
| AuthenticationType;
|