@algolia/ingestion 1.0.0-alpha.17 → 1.0.0-alpha.19
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 +55 -7
- package/dist/ingestion.esm.browser.js +55 -7
- package/dist/ingestion.esm.node.js +55 -7
- package/dist/ingestion.umd.js +2 -2
- package/dist/model/authenticationSortKeys.d.ts +5 -0
- package/dist/model/authenticationSortKeys.d.ts.map +1 -0
- package/dist/model/clientMethodProps.d.ts +55 -0
- package/dist/model/clientMethodProps.d.ts.map +1 -1
- package/dist/model/destinationSortKeys.d.ts +5 -0
- package/dist/model/destinationSortKeys.d.ts.map +1 -0
- package/dist/model/eventSortKeys.d.ts +5 -0
- package/dist/model/eventSortKeys.d.ts.map +1 -0
- package/dist/model/index.d.ts +7 -0
- package/dist/model/index.d.ts.map +1 -1
- package/dist/model/orderKeys.d.ts +5 -0
- package/dist/model/orderKeys.d.ts.map +1 -0
- package/dist/model/runSortKeys.d.ts +5 -0
- package/dist/model/runSortKeys.d.ts.map +1 -0
- package/dist/model/sourceSortKeys.d.ts +5 -0
- package/dist/model/sourceSortKeys.d.ts.map +1 -0
- package/dist/model/taskSortKeys.d.ts +5 -0
- package/dist/model/taskSortKeys.d.ts.map +1 -0
- package/dist/src/ingestionClient.d.ts +19 -7
- package/dist/src/ingestionClient.d.ts.map +1 -1
- package/model/authenticationSortKeys.ts +11 -0
- package/model/clientMethodProps.ts +55 -0
- package/model/destinationSortKeys.ts +6 -0
- package/model/eventSortKeys.ts +6 -0
- package/model/index.ts +7 -0
- package/model/orderKeys.ts +6 -0
- package/model/runSortKeys.ts +6 -0
- package/model/sourceSortKeys.ts +6 -0
- package/model/taskSortKeys.ts +11 -0
- package/package.json +4 -4
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.19';
|
|
10
10
|
const REGIONS = ['us'];
|
|
11
11
|
function getDefaultHosts(region) {
|
|
12
12
|
const url = 'data.{region}.algolia.com'.replace('{region}', region);
|
|
@@ -370,9 +370,11 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
370
370
|
* @param getAuthentications.page - The page number to fetch, starting at 1.
|
|
371
371
|
* @param getAuthentications.type - The type of the authentications to retrieve.
|
|
372
372
|
* @param getAuthentications.platform - The platform of the authentications to retrieve.
|
|
373
|
+
* @param getAuthentications.sort - The key by which the list should be sorted.
|
|
374
|
+
* @param getAuthentications.order - The order of the returned list.
|
|
373
375
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
374
376
|
*/
|
|
375
|
-
getAuthentications({ itemsPerPage, page, type, platform } = {}, requestOptions = undefined) {
|
|
377
|
+
getAuthentications({ itemsPerPage, page, type, platform, sort, order, } = {}, requestOptions = undefined) {
|
|
376
378
|
const requestPath = '/1/authentications';
|
|
377
379
|
const headers = {};
|
|
378
380
|
const queryParameters = {};
|
|
@@ -388,6 +390,12 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
388
390
|
if (platform !== undefined) {
|
|
389
391
|
queryParameters.platform = platform.toString();
|
|
390
392
|
}
|
|
393
|
+
if (sort !== undefined) {
|
|
394
|
+
queryParameters.sort = sort.toString();
|
|
395
|
+
}
|
|
396
|
+
if (order !== undefined) {
|
|
397
|
+
queryParameters.order = order.toString();
|
|
398
|
+
}
|
|
391
399
|
const request = {
|
|
392
400
|
method: 'GET',
|
|
393
401
|
path: requestPath,
|
|
@@ -428,9 +436,11 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
428
436
|
* @param getDestinations.page - The page number to fetch, starting at 1.
|
|
429
437
|
* @param getDestinations.type - The type of the destinations to retrive.
|
|
430
438
|
* @param getDestinations.authenticationID - The authenticationIDs of the destinations to retrive.
|
|
439
|
+
* @param getDestinations.sort - The key by which the list should be sorted.
|
|
440
|
+
* @param getDestinations.order - The order of the returned list.
|
|
431
441
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
432
442
|
*/
|
|
433
|
-
getDestinations({ itemsPerPage, page, type, authenticationID } = {}, requestOptions = undefined) {
|
|
443
|
+
getDestinations({ itemsPerPage, page, type, authenticationID, sort, order, } = {}, requestOptions = undefined) {
|
|
434
444
|
const requestPath = '/1/destinations';
|
|
435
445
|
const headers = {};
|
|
436
446
|
const queryParameters = {};
|
|
@@ -446,6 +456,12 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
446
456
|
if (authenticationID !== undefined) {
|
|
447
457
|
queryParameters.authenticationID = authenticationID.toString();
|
|
448
458
|
}
|
|
459
|
+
if (sort !== undefined) {
|
|
460
|
+
queryParameters.sort = sort.toString();
|
|
461
|
+
}
|
|
462
|
+
if (order !== undefined) {
|
|
463
|
+
queryParameters.order = order.toString();
|
|
464
|
+
}
|
|
449
465
|
const request = {
|
|
450
466
|
method: 'GET',
|
|
451
467
|
path: requestPath,
|
|
@@ -491,9 +507,11 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
491
507
|
* @param getEvents.runID - The run UUID.
|
|
492
508
|
* @param getEvents.status - Filter the status of the events.
|
|
493
509
|
* @param getEvents.type - Filter the type of the events.
|
|
510
|
+
* @param getEvents.sort - The key by which the list should be sorted.
|
|
511
|
+
* @param getEvents.order - The order of the returned list.
|
|
494
512
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
495
513
|
*/
|
|
496
|
-
getEvents({ runID, status, type }, requestOptions) {
|
|
514
|
+
getEvents({ runID, status, type, sort, order }, requestOptions) {
|
|
497
515
|
if (!runID) {
|
|
498
516
|
throw new Error('Parameter `runID` is required when calling `getEvents`.');
|
|
499
517
|
}
|
|
@@ -506,6 +524,12 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
506
524
|
if (type !== undefined) {
|
|
507
525
|
queryParameters.type = type.toString();
|
|
508
526
|
}
|
|
527
|
+
if (sort !== undefined) {
|
|
528
|
+
queryParameters.sort = sort.toString();
|
|
529
|
+
}
|
|
530
|
+
if (order !== undefined) {
|
|
531
|
+
queryParameters.order = order.toString();
|
|
532
|
+
}
|
|
509
533
|
const request = {
|
|
510
534
|
method: 'GET',
|
|
511
535
|
path: requestPath,
|
|
@@ -546,9 +570,11 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
546
570
|
* @param getRuns.page - The page number to fetch, starting at 1.
|
|
547
571
|
* @param getRuns.status - Filter the status of the runs.
|
|
548
572
|
* @param getRuns.taskID - Filter by taskID.
|
|
573
|
+
* @param getRuns.sort - The key by which the list should be sorted.
|
|
574
|
+
* @param getRuns.order - The order of the returned list.
|
|
549
575
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
550
576
|
*/
|
|
551
|
-
getRuns({ itemsPerPage, page, status, taskID } = {}, requestOptions = undefined) {
|
|
577
|
+
getRuns({ itemsPerPage, page, status, taskID, sort, order } = {}, requestOptions = undefined) {
|
|
552
578
|
const requestPath = '/1/runs';
|
|
553
579
|
const headers = {};
|
|
554
580
|
const queryParameters = {};
|
|
@@ -564,6 +590,12 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
564
590
|
if (taskID !== undefined) {
|
|
565
591
|
queryParameters.taskID = taskID.toString();
|
|
566
592
|
}
|
|
593
|
+
if (sort !== undefined) {
|
|
594
|
+
queryParameters.sort = sort.toString();
|
|
595
|
+
}
|
|
596
|
+
if (order !== undefined) {
|
|
597
|
+
queryParameters.order = order.toString();
|
|
598
|
+
}
|
|
567
599
|
const request = {
|
|
568
600
|
method: 'GET',
|
|
569
601
|
path: requestPath,
|
|
@@ -604,9 +636,11 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
604
636
|
* @param getSources.page - The page number to fetch, starting at 1.
|
|
605
637
|
* @param getSources.type - The type of the sources to retrieve.
|
|
606
638
|
* @param getSources.authenticationID - The authenticationIDs of the sources to retrieve. \'none\' returns sources that doesn\'t have an authentication.
|
|
639
|
+
* @param getSources.sort - The key by which the list should be sorted.
|
|
640
|
+
* @param getSources.order - The order of the returned list.
|
|
607
641
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
608
642
|
*/
|
|
609
|
-
getSources({ itemsPerPage, page, type, authenticationID } = {}, requestOptions = undefined) {
|
|
643
|
+
getSources({ itemsPerPage, page, type, authenticationID, sort, order, } = {}, requestOptions = undefined) {
|
|
610
644
|
const requestPath = '/1/sources';
|
|
611
645
|
const headers = {};
|
|
612
646
|
const queryParameters = {};
|
|
@@ -622,6 +656,12 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
622
656
|
if (authenticationID !== undefined) {
|
|
623
657
|
queryParameters.authenticationID = authenticationID.toString();
|
|
624
658
|
}
|
|
659
|
+
if (sort !== undefined) {
|
|
660
|
+
queryParameters.sort = sort.toString();
|
|
661
|
+
}
|
|
662
|
+
if (order !== undefined) {
|
|
663
|
+
queryParameters.order = order.toString();
|
|
664
|
+
}
|
|
625
665
|
const request = {
|
|
626
666
|
method: 'GET',
|
|
627
667
|
path: requestPath,
|
|
@@ -665,9 +705,11 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
665
705
|
* @param getTasks.sourceID - The sourceIDs of the tasks to retrive.
|
|
666
706
|
* @param getTasks.destinationID - The destinationIDs of the tasks to retrive.
|
|
667
707
|
* @param getTasks.triggerType - The trigger type of the task.
|
|
708
|
+
* @param getTasks.sort - The key by which the list should be sorted.
|
|
709
|
+
* @param getTasks.order - The order of the returned list.
|
|
668
710
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
669
711
|
*/
|
|
670
|
-
getTasks({ itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, } = {}, requestOptions = undefined) {
|
|
712
|
+
getTasks({ itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, sort, order, } = {}, requestOptions = undefined) {
|
|
671
713
|
const requestPath = '/1/tasks';
|
|
672
714
|
const headers = {};
|
|
673
715
|
const queryParameters = {};
|
|
@@ -692,6 +734,12 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
692
734
|
if (triggerType !== undefined) {
|
|
693
735
|
queryParameters.triggerType = triggerType.toString();
|
|
694
736
|
}
|
|
737
|
+
if (sort !== undefined) {
|
|
738
|
+
queryParameters.sort = sort.toString();
|
|
739
|
+
}
|
|
740
|
+
if (order !== undefined) {
|
|
741
|
+
queryParameters.order = order.toString();
|
|
742
|
+
}
|
|
695
743
|
const request = {
|
|
696
744
|
method: 'GET',
|
|
697
745
|
path: requestPath,
|
|
@@ -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.19';
|
|
666
666
|
const REGIONS = ['us'];
|
|
667
667
|
function getDefaultHosts(region) {
|
|
668
668
|
const url = 'data.{region}.algolia.com'.replace('{region}', region);
|
|
@@ -1026,9 +1026,11 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1026
1026
|
* @param getAuthentications.page - The page number to fetch, starting at 1.
|
|
1027
1027
|
* @param getAuthentications.type - The type of the authentications to retrieve.
|
|
1028
1028
|
* @param getAuthentications.platform - The platform of the authentications to retrieve.
|
|
1029
|
+
* @param getAuthentications.sort - The key by which the list should be sorted.
|
|
1030
|
+
* @param getAuthentications.order - The order of the returned list.
|
|
1029
1031
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1030
1032
|
*/
|
|
1031
|
-
getAuthentications({ itemsPerPage, page, type, platform } = {}, requestOptions = undefined) {
|
|
1033
|
+
getAuthentications({ itemsPerPage, page, type, platform, sort, order, } = {}, requestOptions = undefined) {
|
|
1032
1034
|
const requestPath = '/1/authentications';
|
|
1033
1035
|
const headers = {};
|
|
1034
1036
|
const queryParameters = {};
|
|
@@ -1044,6 +1046,12 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1044
1046
|
if (platform !== undefined) {
|
|
1045
1047
|
queryParameters.platform = platform.toString();
|
|
1046
1048
|
}
|
|
1049
|
+
if (sort !== undefined) {
|
|
1050
|
+
queryParameters.sort = sort.toString();
|
|
1051
|
+
}
|
|
1052
|
+
if (order !== undefined) {
|
|
1053
|
+
queryParameters.order = order.toString();
|
|
1054
|
+
}
|
|
1047
1055
|
const request = {
|
|
1048
1056
|
method: 'GET',
|
|
1049
1057
|
path: requestPath,
|
|
@@ -1084,9 +1092,11 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1084
1092
|
* @param getDestinations.page - The page number to fetch, starting at 1.
|
|
1085
1093
|
* @param getDestinations.type - The type of the destinations to retrive.
|
|
1086
1094
|
* @param getDestinations.authenticationID - The authenticationIDs of the destinations to retrive.
|
|
1095
|
+
* @param getDestinations.sort - The key by which the list should be sorted.
|
|
1096
|
+
* @param getDestinations.order - The order of the returned list.
|
|
1087
1097
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1088
1098
|
*/
|
|
1089
|
-
getDestinations({ itemsPerPage, page, type, authenticationID } = {}, requestOptions = undefined) {
|
|
1099
|
+
getDestinations({ itemsPerPage, page, type, authenticationID, sort, order, } = {}, requestOptions = undefined) {
|
|
1090
1100
|
const requestPath = '/1/destinations';
|
|
1091
1101
|
const headers = {};
|
|
1092
1102
|
const queryParameters = {};
|
|
@@ -1102,6 +1112,12 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1102
1112
|
if (authenticationID !== undefined) {
|
|
1103
1113
|
queryParameters.authenticationID = authenticationID.toString();
|
|
1104
1114
|
}
|
|
1115
|
+
if (sort !== undefined) {
|
|
1116
|
+
queryParameters.sort = sort.toString();
|
|
1117
|
+
}
|
|
1118
|
+
if (order !== undefined) {
|
|
1119
|
+
queryParameters.order = order.toString();
|
|
1120
|
+
}
|
|
1105
1121
|
const request = {
|
|
1106
1122
|
method: 'GET',
|
|
1107
1123
|
path: requestPath,
|
|
@@ -1147,9 +1163,11 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1147
1163
|
* @param getEvents.runID - The run UUID.
|
|
1148
1164
|
* @param getEvents.status - Filter the status of the events.
|
|
1149
1165
|
* @param getEvents.type - Filter the type of the events.
|
|
1166
|
+
* @param getEvents.sort - The key by which the list should be sorted.
|
|
1167
|
+
* @param getEvents.order - The order of the returned list.
|
|
1150
1168
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1151
1169
|
*/
|
|
1152
|
-
getEvents({ runID, status, type }, requestOptions) {
|
|
1170
|
+
getEvents({ runID, status, type, sort, order }, requestOptions) {
|
|
1153
1171
|
if (!runID) {
|
|
1154
1172
|
throw new Error('Parameter `runID` is required when calling `getEvents`.');
|
|
1155
1173
|
}
|
|
@@ -1162,6 +1180,12 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1162
1180
|
if (type !== undefined) {
|
|
1163
1181
|
queryParameters.type = type.toString();
|
|
1164
1182
|
}
|
|
1183
|
+
if (sort !== undefined) {
|
|
1184
|
+
queryParameters.sort = sort.toString();
|
|
1185
|
+
}
|
|
1186
|
+
if (order !== undefined) {
|
|
1187
|
+
queryParameters.order = order.toString();
|
|
1188
|
+
}
|
|
1165
1189
|
const request = {
|
|
1166
1190
|
method: 'GET',
|
|
1167
1191
|
path: requestPath,
|
|
@@ -1202,9 +1226,11 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1202
1226
|
* @param getRuns.page - The page number to fetch, starting at 1.
|
|
1203
1227
|
* @param getRuns.status - Filter the status of the runs.
|
|
1204
1228
|
* @param getRuns.taskID - Filter by taskID.
|
|
1229
|
+
* @param getRuns.sort - The key by which the list should be sorted.
|
|
1230
|
+
* @param getRuns.order - The order of the returned list.
|
|
1205
1231
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1206
1232
|
*/
|
|
1207
|
-
getRuns({ itemsPerPage, page, status, taskID } = {}, requestOptions = undefined) {
|
|
1233
|
+
getRuns({ itemsPerPage, page, status, taskID, sort, order } = {}, requestOptions = undefined) {
|
|
1208
1234
|
const requestPath = '/1/runs';
|
|
1209
1235
|
const headers = {};
|
|
1210
1236
|
const queryParameters = {};
|
|
@@ -1220,6 +1246,12 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1220
1246
|
if (taskID !== undefined) {
|
|
1221
1247
|
queryParameters.taskID = taskID.toString();
|
|
1222
1248
|
}
|
|
1249
|
+
if (sort !== undefined) {
|
|
1250
|
+
queryParameters.sort = sort.toString();
|
|
1251
|
+
}
|
|
1252
|
+
if (order !== undefined) {
|
|
1253
|
+
queryParameters.order = order.toString();
|
|
1254
|
+
}
|
|
1223
1255
|
const request = {
|
|
1224
1256
|
method: 'GET',
|
|
1225
1257
|
path: requestPath,
|
|
@@ -1260,9 +1292,11 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1260
1292
|
* @param getSources.page - The page number to fetch, starting at 1.
|
|
1261
1293
|
* @param getSources.type - The type of the sources to retrieve.
|
|
1262
1294
|
* @param getSources.authenticationID - The authenticationIDs of the sources to retrieve. \'none\' returns sources that doesn\'t have an authentication.
|
|
1295
|
+
* @param getSources.sort - The key by which the list should be sorted.
|
|
1296
|
+
* @param getSources.order - The order of the returned list.
|
|
1263
1297
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1264
1298
|
*/
|
|
1265
|
-
getSources({ itemsPerPage, page, type, authenticationID } = {}, requestOptions = undefined) {
|
|
1299
|
+
getSources({ itemsPerPage, page, type, authenticationID, sort, order, } = {}, requestOptions = undefined) {
|
|
1266
1300
|
const requestPath = '/1/sources';
|
|
1267
1301
|
const headers = {};
|
|
1268
1302
|
const queryParameters = {};
|
|
@@ -1278,6 +1312,12 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1278
1312
|
if (authenticationID !== undefined) {
|
|
1279
1313
|
queryParameters.authenticationID = authenticationID.toString();
|
|
1280
1314
|
}
|
|
1315
|
+
if (sort !== undefined) {
|
|
1316
|
+
queryParameters.sort = sort.toString();
|
|
1317
|
+
}
|
|
1318
|
+
if (order !== undefined) {
|
|
1319
|
+
queryParameters.order = order.toString();
|
|
1320
|
+
}
|
|
1281
1321
|
const request = {
|
|
1282
1322
|
method: 'GET',
|
|
1283
1323
|
path: requestPath,
|
|
@@ -1321,9 +1361,11 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1321
1361
|
* @param getTasks.sourceID - The sourceIDs of the tasks to retrive.
|
|
1322
1362
|
* @param getTasks.destinationID - The destinationIDs of the tasks to retrive.
|
|
1323
1363
|
* @param getTasks.triggerType - The trigger type of the task.
|
|
1364
|
+
* @param getTasks.sort - The key by which the list should be sorted.
|
|
1365
|
+
* @param getTasks.order - The order of the returned list.
|
|
1324
1366
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1325
1367
|
*/
|
|
1326
|
-
getTasks({ itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, } = {}, requestOptions = undefined) {
|
|
1368
|
+
getTasks({ itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, sort, order, } = {}, requestOptions = undefined) {
|
|
1327
1369
|
const requestPath = '/1/tasks';
|
|
1328
1370
|
const headers = {};
|
|
1329
1371
|
const queryParameters = {};
|
|
@@ -1348,6 +1390,12 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1348
1390
|
if (triggerType !== undefined) {
|
|
1349
1391
|
queryParameters.triggerType = triggerType.toString();
|
|
1350
1392
|
}
|
|
1393
|
+
if (sort !== undefined) {
|
|
1394
|
+
queryParameters.sort = sort.toString();
|
|
1395
|
+
}
|
|
1396
|
+
if (order !== undefined) {
|
|
1397
|
+
queryParameters.order = order.toString();
|
|
1398
|
+
}
|
|
1351
1399
|
const request = {
|
|
1352
1400
|
method: 'GET',
|
|
1353
1401
|
path: requestPath,
|
|
@@ -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.19';
|
|
6
6
|
const REGIONS = ['us'];
|
|
7
7
|
function getDefaultHosts(region) {
|
|
8
8
|
const url = 'data.{region}.algolia.com'.replace('{region}', region);
|
|
@@ -366,9 +366,11 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
366
366
|
* @param getAuthentications.page - The page number to fetch, starting at 1.
|
|
367
367
|
* @param getAuthentications.type - The type of the authentications to retrieve.
|
|
368
368
|
* @param getAuthentications.platform - The platform of the authentications to retrieve.
|
|
369
|
+
* @param getAuthentications.sort - The key by which the list should be sorted.
|
|
370
|
+
* @param getAuthentications.order - The order of the returned list.
|
|
369
371
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
370
372
|
*/
|
|
371
|
-
getAuthentications({ itemsPerPage, page, type, platform } = {}, requestOptions = undefined) {
|
|
373
|
+
getAuthentications({ itemsPerPage, page, type, platform, sort, order, } = {}, requestOptions = undefined) {
|
|
372
374
|
const requestPath = '/1/authentications';
|
|
373
375
|
const headers = {};
|
|
374
376
|
const queryParameters = {};
|
|
@@ -384,6 +386,12 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
384
386
|
if (platform !== undefined) {
|
|
385
387
|
queryParameters.platform = platform.toString();
|
|
386
388
|
}
|
|
389
|
+
if (sort !== undefined) {
|
|
390
|
+
queryParameters.sort = sort.toString();
|
|
391
|
+
}
|
|
392
|
+
if (order !== undefined) {
|
|
393
|
+
queryParameters.order = order.toString();
|
|
394
|
+
}
|
|
387
395
|
const request = {
|
|
388
396
|
method: 'GET',
|
|
389
397
|
path: requestPath,
|
|
@@ -424,9 +432,11 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
424
432
|
* @param getDestinations.page - The page number to fetch, starting at 1.
|
|
425
433
|
* @param getDestinations.type - The type of the destinations to retrive.
|
|
426
434
|
* @param getDestinations.authenticationID - The authenticationIDs of the destinations to retrive.
|
|
435
|
+
* @param getDestinations.sort - The key by which the list should be sorted.
|
|
436
|
+
* @param getDestinations.order - The order of the returned list.
|
|
427
437
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
428
438
|
*/
|
|
429
|
-
getDestinations({ itemsPerPage, page, type, authenticationID } = {}, requestOptions = undefined) {
|
|
439
|
+
getDestinations({ itemsPerPage, page, type, authenticationID, sort, order, } = {}, requestOptions = undefined) {
|
|
430
440
|
const requestPath = '/1/destinations';
|
|
431
441
|
const headers = {};
|
|
432
442
|
const queryParameters = {};
|
|
@@ -442,6 +452,12 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
442
452
|
if (authenticationID !== undefined) {
|
|
443
453
|
queryParameters.authenticationID = authenticationID.toString();
|
|
444
454
|
}
|
|
455
|
+
if (sort !== undefined) {
|
|
456
|
+
queryParameters.sort = sort.toString();
|
|
457
|
+
}
|
|
458
|
+
if (order !== undefined) {
|
|
459
|
+
queryParameters.order = order.toString();
|
|
460
|
+
}
|
|
445
461
|
const request = {
|
|
446
462
|
method: 'GET',
|
|
447
463
|
path: requestPath,
|
|
@@ -487,9 +503,11 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
487
503
|
* @param getEvents.runID - The run UUID.
|
|
488
504
|
* @param getEvents.status - Filter the status of the events.
|
|
489
505
|
* @param getEvents.type - Filter the type of the events.
|
|
506
|
+
* @param getEvents.sort - The key by which the list should be sorted.
|
|
507
|
+
* @param getEvents.order - The order of the returned list.
|
|
490
508
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
491
509
|
*/
|
|
492
|
-
getEvents({ runID, status, type }, requestOptions) {
|
|
510
|
+
getEvents({ runID, status, type, sort, order }, requestOptions) {
|
|
493
511
|
if (!runID) {
|
|
494
512
|
throw new Error('Parameter `runID` is required when calling `getEvents`.');
|
|
495
513
|
}
|
|
@@ -502,6 +520,12 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
502
520
|
if (type !== undefined) {
|
|
503
521
|
queryParameters.type = type.toString();
|
|
504
522
|
}
|
|
523
|
+
if (sort !== undefined) {
|
|
524
|
+
queryParameters.sort = sort.toString();
|
|
525
|
+
}
|
|
526
|
+
if (order !== undefined) {
|
|
527
|
+
queryParameters.order = order.toString();
|
|
528
|
+
}
|
|
505
529
|
const request = {
|
|
506
530
|
method: 'GET',
|
|
507
531
|
path: requestPath,
|
|
@@ -542,9 +566,11 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
542
566
|
* @param getRuns.page - The page number to fetch, starting at 1.
|
|
543
567
|
* @param getRuns.status - Filter the status of the runs.
|
|
544
568
|
* @param getRuns.taskID - Filter by taskID.
|
|
569
|
+
* @param getRuns.sort - The key by which the list should be sorted.
|
|
570
|
+
* @param getRuns.order - The order of the returned list.
|
|
545
571
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
546
572
|
*/
|
|
547
|
-
getRuns({ itemsPerPage, page, status, taskID } = {}, requestOptions = undefined) {
|
|
573
|
+
getRuns({ itemsPerPage, page, status, taskID, sort, order } = {}, requestOptions = undefined) {
|
|
548
574
|
const requestPath = '/1/runs';
|
|
549
575
|
const headers = {};
|
|
550
576
|
const queryParameters = {};
|
|
@@ -560,6 +586,12 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
560
586
|
if (taskID !== undefined) {
|
|
561
587
|
queryParameters.taskID = taskID.toString();
|
|
562
588
|
}
|
|
589
|
+
if (sort !== undefined) {
|
|
590
|
+
queryParameters.sort = sort.toString();
|
|
591
|
+
}
|
|
592
|
+
if (order !== undefined) {
|
|
593
|
+
queryParameters.order = order.toString();
|
|
594
|
+
}
|
|
563
595
|
const request = {
|
|
564
596
|
method: 'GET',
|
|
565
597
|
path: requestPath,
|
|
@@ -600,9 +632,11 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
600
632
|
* @param getSources.page - The page number to fetch, starting at 1.
|
|
601
633
|
* @param getSources.type - The type of the sources to retrieve.
|
|
602
634
|
* @param getSources.authenticationID - The authenticationIDs of the sources to retrieve. \'none\' returns sources that doesn\'t have an authentication.
|
|
635
|
+
* @param getSources.sort - The key by which the list should be sorted.
|
|
636
|
+
* @param getSources.order - The order of the returned list.
|
|
603
637
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
604
638
|
*/
|
|
605
|
-
getSources({ itemsPerPage, page, type, authenticationID } = {}, requestOptions = undefined) {
|
|
639
|
+
getSources({ itemsPerPage, page, type, authenticationID, sort, order, } = {}, requestOptions = undefined) {
|
|
606
640
|
const requestPath = '/1/sources';
|
|
607
641
|
const headers = {};
|
|
608
642
|
const queryParameters = {};
|
|
@@ -618,6 +652,12 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
618
652
|
if (authenticationID !== undefined) {
|
|
619
653
|
queryParameters.authenticationID = authenticationID.toString();
|
|
620
654
|
}
|
|
655
|
+
if (sort !== undefined) {
|
|
656
|
+
queryParameters.sort = sort.toString();
|
|
657
|
+
}
|
|
658
|
+
if (order !== undefined) {
|
|
659
|
+
queryParameters.order = order.toString();
|
|
660
|
+
}
|
|
621
661
|
const request = {
|
|
622
662
|
method: 'GET',
|
|
623
663
|
path: requestPath,
|
|
@@ -661,9 +701,11 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
661
701
|
* @param getTasks.sourceID - The sourceIDs of the tasks to retrive.
|
|
662
702
|
* @param getTasks.destinationID - The destinationIDs of the tasks to retrive.
|
|
663
703
|
* @param getTasks.triggerType - The trigger type of the task.
|
|
704
|
+
* @param getTasks.sort - The key by which the list should be sorted.
|
|
705
|
+
* @param getTasks.order - The order of the returned list.
|
|
664
706
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
665
707
|
*/
|
|
666
|
-
getTasks({ itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, } = {}, requestOptions = undefined) {
|
|
708
|
+
getTasks({ itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, sort, order, } = {}, requestOptions = undefined) {
|
|
667
709
|
const requestPath = '/1/tasks';
|
|
668
710
|
const headers = {};
|
|
669
711
|
const queryParameters = {};
|
|
@@ -688,6 +730,12 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
688
730
|
if (triggerType !== undefined) {
|
|
689
731
|
queryParameters.triggerType = triggerType.toString();
|
|
690
732
|
}
|
|
733
|
+
if (sort !== undefined) {
|
|
734
|
+
queryParameters.sort = sort.toString();
|
|
735
|
+
}
|
|
736
|
+
if (order !== undefined) {
|
|
737
|
+
queryParameters.order = order.toString();
|
|
738
|
+
}
|
|
691
739
|
const request = {
|
|
692
740
|
method: 'GET',
|
|
693
741
|
path: requestPath,
|
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 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 w(u,g,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)}(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)))}(P));let n=g.timeout;void 0===n&&(n=w?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 P.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,P)},T=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}}(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 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.17",f=["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||!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:{...w({algoliaAgents:a,client:"Ingestion",version:P}),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`.");if(!e.type)throw new Error("Parameter `sourceCreate.type` 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.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)},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,status:t,type: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.status=t.toString()),void 0!==r&&(s.type=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,status:r,taskID:a}={},n){const s={};void 0!==e&&(s.itemsPerPage=e.toString()),void 0!==t&&(s.page=t.toString()),void 0!==r&&(s.status=r.toString()),void 0!==a&&(s.taskID=a.toString());const o={method:"GET",path:"/1/runs",queryParameters:s,headers:{}};return i.request(o,n)},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:"PUT",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.17-${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.19 | © 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 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 p({hosts:e,hostsCache:t,baseHeaders:r,baseQueryParameters:a,algoliaAgent:n,timeouts:o,requester:i,requestsCache:u,responsesCache:p}){async function w(u,p,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)}(u,p),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,p.headers),I="GET"===u.method?{...u.data,...p.data}:{},D={...a,...u.queryParameters,...I};if(n.value&&(D["x-algolia-agent"]=n.value),p&&p.queryParameters)for(const e of Object.keys(p.queryParameters))p.queryParameters[e]&&"[object Object]"!==Object.prototype.toString.call(p.queryParameters[e])?D[e]=p.queryParameters[e].toString():D[e]=p.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=>g(e)))}(P));let n=p.timeout;void 0===n&&(n=w?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)},S=t=>{const r={request:I,response:t,host:a,triesLeft:e.length};return P.push(r),r},T=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)}(T)){const n=S(T);return T.isTimedOut&&y++,console.log("Retryable failure",g(n)),await t.set(a,s(a,T.isTimedOut?"timed out":"down")),v(e,r)}if(function({status:e}){return 2==~~(e/100)}(T))return function(e){try{return JSON.parse(e.content)}catch(t){throw new h(t.message,e)}}(T);throw S(T),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)}(T,P)},S=e.filter((e=>"readWrite"===e.accept||(w?"read"===e.accept:"write"===e.accept))),T=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([...T.hosts].reverse(),T.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 p.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=>p.set(o,e)})},requestsCache:u,responsesCache:p}}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.19",f=["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||!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=p({hosts:(u=n,[{url:"data.{region}.algolia.com".replace("{region}",u),accept:"readWrite",protocol:"https"}]),...s,algoliaAgent:{...w({algoliaAgents:a,client:"Ingestion",version:P}),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`.");if(!e.type)throw new Error("Parameter `sourceCreate.type` 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.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)},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){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){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)},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,status:t,type:r,sort:a,order:n},s){if(!e)throw new Error("Parameter `runID` is required when calling `getEvents`.");const o="/1/runs/{runID}/events".replace("{runID}",encodeURIComponent(e)),u={};void 0!==t&&(u.status=t.toString()),void 0!==r&&(u.type=r.toString()),void 0!==a&&(u.sort=a.toString()),void 0!==n&&(u.order=n.toString());const c={method:"GET",path:o,queryParameters:u,headers:{}};return i.request(c,s)},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}={},o){const u={};void 0!==e&&(u.itemsPerPage=e.toString()),void 0!==t&&(u.page=t.toString()),void 0!==r&&(u.status=r.toString()),void 0!==a&&(u.taskID=a.toString()),void 0!==n&&(u.sort=n.toString()),void 0!==s&&(u.order=s.toString());const c={method:"GET",path:"/1/runs",queryParameters:u,headers:{}};return i.request(c,o)},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){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){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)},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:"PUT",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.19-${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}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authenticationSortKeys.d.ts","sourceRoot":"","sources":["../../model/authenticationSortKeys.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,oBAAY,sBAAsB,GAC9B,WAAW,GACX,WAAW,GACX,MAAM,GACN,UAAU,GACV,WAAW,CAAC"}
|
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
import type { ActionType } from './actionType';
|
|
2
|
+
import type { AuthenticationSortKeys } from './authenticationSortKeys';
|
|
2
3
|
import type { AuthenticationType } from './authenticationType';
|
|
3
4
|
import type { AuthenticationUpdate } from './authenticationUpdate';
|
|
5
|
+
import type { DestinationSortKeys } from './destinationSortKeys';
|
|
4
6
|
import type { DestinationType } from './destinationType';
|
|
5
7
|
import type { DestinationUpdate } from './destinationUpdate';
|
|
8
|
+
import type { EventSortKeys } from './eventSortKeys';
|
|
6
9
|
import type { EventStatus } from './eventStatus';
|
|
7
10
|
import type { EventType } from './eventType';
|
|
11
|
+
import type { OrderKeys } from './orderKeys';
|
|
8
12
|
import type { PlatformWithNone } from './platformWithNone';
|
|
13
|
+
import type { RunSortKeys } from './runSortKeys';
|
|
9
14
|
import type { RunStatus } from './runStatus';
|
|
15
|
+
import type { SourceSortKeys } from './sourceSortKeys';
|
|
10
16
|
import type { SourceType } from './sourceType';
|
|
11
17
|
import type { SourceUpdate } from './sourceUpdate';
|
|
18
|
+
import type { TaskSortKeys } from './taskSortKeys';
|
|
12
19
|
import type { TaskUpdate } from './taskUpdate';
|
|
13
20
|
import type { TriggerType } from './triggerType';
|
|
14
21
|
/**
|
|
@@ -94,6 +101,14 @@ export declare type GetAuthenticationsProps = {
|
|
|
94
101
|
* The platform of the authentications to retrieve.
|
|
95
102
|
*/
|
|
96
103
|
platform?: PlatformWithNone[];
|
|
104
|
+
/**
|
|
105
|
+
* The key by which the list should be sorted.
|
|
106
|
+
*/
|
|
107
|
+
sort?: AuthenticationSortKeys;
|
|
108
|
+
/**
|
|
109
|
+
* The order of the returned list.
|
|
110
|
+
*/
|
|
111
|
+
order?: OrderKeys;
|
|
97
112
|
};
|
|
98
113
|
/**
|
|
99
114
|
* Properties for the `getDestination` method.
|
|
@@ -124,6 +139,14 @@ export declare type GetDestinationsProps = {
|
|
|
124
139
|
* The authenticationIDs of the destinations to retrive.
|
|
125
140
|
*/
|
|
126
141
|
authenticationID?: string[];
|
|
142
|
+
/**
|
|
143
|
+
* The key by which the list should be sorted.
|
|
144
|
+
*/
|
|
145
|
+
sort?: DestinationSortKeys;
|
|
146
|
+
/**
|
|
147
|
+
* The order of the returned list.
|
|
148
|
+
*/
|
|
149
|
+
order?: OrderKeys;
|
|
127
150
|
};
|
|
128
151
|
/**
|
|
129
152
|
* Properties for the `getEvent` method.
|
|
@@ -154,6 +177,14 @@ export declare type GetEventsProps = {
|
|
|
154
177
|
* Filter the type of the events.
|
|
155
178
|
*/
|
|
156
179
|
type?: EventType[];
|
|
180
|
+
/**
|
|
181
|
+
* The key by which the list should be sorted.
|
|
182
|
+
*/
|
|
183
|
+
sort?: EventSortKeys;
|
|
184
|
+
/**
|
|
185
|
+
* The order of the returned list.
|
|
186
|
+
*/
|
|
187
|
+
order?: OrderKeys;
|
|
157
188
|
};
|
|
158
189
|
/**
|
|
159
190
|
* Properties for the `getRun` method.
|
|
@@ -184,6 +215,14 @@ export declare type GetRunsProps = {
|
|
|
184
215
|
* Filter by taskID.
|
|
185
216
|
*/
|
|
186
217
|
taskID?: string;
|
|
218
|
+
/**
|
|
219
|
+
* The key by which the list should be sorted.
|
|
220
|
+
*/
|
|
221
|
+
sort?: RunSortKeys;
|
|
222
|
+
/**
|
|
223
|
+
* The order of the returned list.
|
|
224
|
+
*/
|
|
225
|
+
order?: OrderKeys;
|
|
187
226
|
};
|
|
188
227
|
/**
|
|
189
228
|
* Properties for the `getSource` method.
|
|
@@ -214,6 +253,14 @@ export declare type GetSourcesProps = {
|
|
|
214
253
|
* The authenticationIDs of the sources to retrieve. \'none\' returns sources that doesn\'t have an authentication.
|
|
215
254
|
*/
|
|
216
255
|
authenticationID?: string[];
|
|
256
|
+
/**
|
|
257
|
+
* The key by which the list should be sorted.
|
|
258
|
+
*/
|
|
259
|
+
sort?: SourceSortKeys;
|
|
260
|
+
/**
|
|
261
|
+
* The order of the returned list.
|
|
262
|
+
*/
|
|
263
|
+
order?: OrderKeys;
|
|
217
264
|
};
|
|
218
265
|
/**
|
|
219
266
|
* Properties for the `getTask` method.
|
|
@@ -256,6 +303,14 @@ export declare type GetTasksProps = {
|
|
|
256
303
|
* The trigger type of the task.
|
|
257
304
|
*/
|
|
258
305
|
triggerType?: TriggerType[];
|
|
306
|
+
/**
|
|
307
|
+
* The key by which the list should be sorted.
|
|
308
|
+
*/
|
|
309
|
+
sort?: TaskSortKeys;
|
|
310
|
+
/**
|
|
311
|
+
* The order of the returned list.
|
|
312
|
+
*/
|
|
313
|
+
order?: OrderKeys;
|
|
259
314
|
};
|
|
260
315
|
/**
|
|
261
316
|
* Properties for the `runTask` method.
|
|
@@ -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,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD;;GAEG;AACH,oBAAY,yBAAyB,GAAG;IACtC;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC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"mappings":"AAEA;;GAEG;AACH,oBAAY,mBAAmB,GAAG,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eventSortKeys.d.ts","sourceRoot":"","sources":["../../model/eventSortKeys.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,oBAAY,aAAa,GAAG,aAAa,GAAG,QAAQ,GAAG,MAAM,CAAC"}
|
package/dist/model/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export * from './authenticationCreate';
|
|
|
10
10
|
export * from './authenticationCreateResponse';
|
|
11
11
|
export * from './authenticationInput';
|
|
12
12
|
export * from './authenticationSearch';
|
|
13
|
+
export * from './authenticationSortKeys';
|
|
13
14
|
export * from './authenticationType';
|
|
14
15
|
export * from './authenticationUpdate';
|
|
15
16
|
export * from './authenticationUpdateResponse';
|
|
@@ -22,11 +23,13 @@ export * from './destinationIndexName';
|
|
|
22
23
|
export * from './destinationIndexPrefix';
|
|
23
24
|
export * from './destinationInput';
|
|
24
25
|
export * from './destinationSearch';
|
|
26
|
+
export * from './destinationSortKeys';
|
|
25
27
|
export * from './destinationType';
|
|
26
28
|
export * from './destinationUpdate';
|
|
27
29
|
export * from './destinationUpdateResponse';
|
|
28
30
|
export * from './errorBase';
|
|
29
31
|
export * from './event';
|
|
32
|
+
export * from './eventSortKeys';
|
|
30
33
|
export * from './eventStatus';
|
|
31
34
|
export * from './eventType';
|
|
32
35
|
export * from './listAuthenticationsResponse';
|
|
@@ -38,6 +41,7 @@ export * from './mappingTypeCSV';
|
|
|
38
41
|
export * from './methodType';
|
|
39
42
|
export * from './onDemandTrigger';
|
|
40
43
|
export * from './onDemandTriggerType';
|
|
44
|
+
export * from './orderKeys';
|
|
41
45
|
export * from './pagination';
|
|
42
46
|
export * from './platform';
|
|
43
47
|
export * from './platformNone';
|
|
@@ -47,6 +51,7 @@ export * from './runListResponse';
|
|
|
47
51
|
export * from './runOutcome';
|
|
48
52
|
export * from './runProgress';
|
|
49
53
|
export * from './runResponse';
|
|
54
|
+
export * from './runSortKeys';
|
|
50
55
|
export * from './runStatus';
|
|
51
56
|
export * from './runType';
|
|
52
57
|
export * from './scheduleTrigger';
|
|
@@ -61,6 +66,7 @@ export * from './sourceCreateResponse';
|
|
|
61
66
|
export * from './sourceInput';
|
|
62
67
|
export * from './sourceJSON';
|
|
63
68
|
export * from './sourceSearch';
|
|
69
|
+
export * from './sourceSortKeys';
|
|
64
70
|
export * from './sourceType';
|
|
65
71
|
export * from './sourceUpdate';
|
|
66
72
|
export * from './sourceUpdateCommercetools';
|
|
@@ -72,6 +78,7 @@ export * from './taskCreate';
|
|
|
72
78
|
export * from './taskCreateResponse';
|
|
73
79
|
export * from './taskCreateTrigger';
|
|
74
80
|
export * from './taskSearch';
|
|
81
|
+
export * from './taskSortKeys';
|
|
75
82
|
export * from './taskUpdate';
|
|
76
83
|
export * from './taskUpdateResponse';
|
|
77
84
|
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,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CA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AAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,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":"orderKeys.d.ts","sourceRoot":"","sources":["../../model/orderKeys.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,oBAAY,SAAS,GAAG,KAAK,GAAG,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runSortKeys.d.ts","sourceRoot":"","sources":["../../model/runSortKeys.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,oBAAY,WAAW,GAAG,WAAW,GAAG,QAAQ,GAAG,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sourceSortKeys.d.ts","sourceRoot":"","sources":["../../model/sourceSortKeys.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,oBAAY,cAAc,GAAG,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taskSortKeys.d.ts","sourceRoot":"","sources":["../../model/taskSortKeys.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,oBAAY,YAAY,GACpB,QAAQ,GACR,WAAW,GACX,SAAS,GACT,aAAa,GACb,WAAW,CAAC"}
|
|
@@ -35,7 +35,7 @@ import type { TaskCreateResponse } from '../model/taskCreateResponse';
|
|
|
35
35
|
import type { TaskSearch } from '../model/taskSearch';
|
|
36
36
|
import type { TaskUpdateResponse } from '../model/taskUpdateResponse';
|
|
37
37
|
import type { Trigger } from '../model/trigger';
|
|
38
|
-
export declare const apiClientVersion = "1.0.0-alpha.
|
|
38
|
+
export declare const apiClientVersion = "1.0.0-alpha.19";
|
|
39
39
|
export declare const REGIONS: readonly ["us"];
|
|
40
40
|
export declare type Region = typeof REGIONS[number];
|
|
41
41
|
/**
|
|
@@ -186,9 +186,11 @@ export declare function createIngestionClient({ appId: appIdOption, apiKey: apiK
|
|
|
186
186
|
* @param getAuthentications.page - The page number to fetch, starting at 1.
|
|
187
187
|
* @param getAuthentications.type - The type of the authentications to retrieve.
|
|
188
188
|
* @param getAuthentications.platform - The platform of the authentications to retrieve.
|
|
189
|
+
* @param getAuthentications.sort - The key by which the list should be sorted.
|
|
190
|
+
* @param getAuthentications.order - The order of the returned list.
|
|
189
191
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
190
192
|
*/
|
|
191
|
-
getAuthentications({ itemsPerPage, page, type, platform }?: GetAuthenticationsProps, requestOptions?: RequestOptions | undefined): Promise<ListAuthenticationsResponse>;
|
|
193
|
+
getAuthentications({ itemsPerPage, page, type, platform, sort, order, }?: GetAuthenticationsProps, requestOptions?: RequestOptions | undefined): Promise<ListAuthenticationsResponse>;
|
|
192
194
|
/**
|
|
193
195
|
* Get the destination of the given destinationID.
|
|
194
196
|
*
|
|
@@ -207,9 +209,11 @@ export declare function createIngestionClient({ appId: appIdOption, apiKey: apiK
|
|
|
207
209
|
* @param getDestinations.page - The page number to fetch, starting at 1.
|
|
208
210
|
* @param getDestinations.type - The type of the destinations to retrive.
|
|
209
211
|
* @param getDestinations.authenticationID - The authenticationIDs of the destinations to retrive.
|
|
212
|
+
* @param getDestinations.sort - The key by which the list should be sorted.
|
|
213
|
+
* @param getDestinations.order - The order of the returned list.
|
|
210
214
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
211
215
|
*/
|
|
212
|
-
getDestinations({ itemsPerPage, page, type, authenticationID }?: GetDestinationsProps, requestOptions?: RequestOptions | undefined): Promise<ListDestinationsResponse>;
|
|
216
|
+
getDestinations({ itemsPerPage, page, type, authenticationID, sort, order, }?: GetDestinationsProps, requestOptions?: RequestOptions | undefined): Promise<ListDestinationsResponse>;
|
|
213
217
|
/**
|
|
214
218
|
* Get a single event for a specific runID.
|
|
215
219
|
*
|
|
@@ -228,9 +232,11 @@ export declare function createIngestionClient({ appId: appIdOption, apiKey: apiK
|
|
|
228
232
|
* @param getEvents.runID - The run UUID.
|
|
229
233
|
* @param getEvents.status - Filter the status of the events.
|
|
230
234
|
* @param getEvents.type - Filter the type of the events.
|
|
235
|
+
* @param getEvents.sort - The key by which the list should be sorted.
|
|
236
|
+
* @param getEvents.order - The order of the returned list.
|
|
231
237
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
232
238
|
*/
|
|
233
|
-
getEvents({ runID, status, type }: GetEventsProps, requestOptions?: RequestOptions): Promise<ListEventsResponse>;
|
|
239
|
+
getEvents({ runID, status, type, sort, order }: GetEventsProps, requestOptions?: RequestOptions): Promise<ListEventsResponse>;
|
|
234
240
|
/**
|
|
235
241
|
* Get a single run for the given ID.
|
|
236
242
|
*
|
|
@@ -249,9 +255,11 @@ export declare function createIngestionClient({ appId: appIdOption, apiKey: apiK
|
|
|
249
255
|
* @param getRuns.page - The page number to fetch, starting at 1.
|
|
250
256
|
* @param getRuns.status - Filter the status of the runs.
|
|
251
257
|
* @param getRuns.taskID - Filter by taskID.
|
|
258
|
+
* @param getRuns.sort - The key by which the list should be sorted.
|
|
259
|
+
* @param getRuns.order - The order of the returned list.
|
|
252
260
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
253
261
|
*/
|
|
254
|
-
getRuns({ itemsPerPage, page, status, taskID }?: GetRunsProps, requestOptions?: RequestOptions | undefined): Promise<RunListResponse>;
|
|
262
|
+
getRuns({ itemsPerPage, page, status, taskID, sort, order }?: GetRunsProps, requestOptions?: RequestOptions | undefined): Promise<RunListResponse>;
|
|
255
263
|
/**
|
|
256
264
|
* Get the source of the given sourceID.
|
|
257
265
|
*
|
|
@@ -270,9 +278,11 @@ export declare function createIngestionClient({ appId: appIdOption, apiKey: apiK
|
|
|
270
278
|
* @param getSources.page - The page number to fetch, starting at 1.
|
|
271
279
|
* @param getSources.type - The type of the sources to retrieve.
|
|
272
280
|
* @param getSources.authenticationID - The authenticationIDs of the sources to retrieve. \'none\' returns sources that doesn\'t have an authentication.
|
|
281
|
+
* @param getSources.sort - The key by which the list should be sorted.
|
|
282
|
+
* @param getSources.order - The order of the returned list.
|
|
273
283
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
274
284
|
*/
|
|
275
|
-
getSources({ itemsPerPage, page, type, authenticationID }?: GetSourcesProps, requestOptions?: RequestOptions | undefined): Promise<ListSourcesResponse>;
|
|
285
|
+
getSources({ itemsPerPage, page, type, authenticationID, sort, order, }?: GetSourcesProps, requestOptions?: RequestOptions | undefined): Promise<ListSourcesResponse>;
|
|
276
286
|
/**
|
|
277
287
|
* Get the task of the given taskID.
|
|
278
288
|
*
|
|
@@ -294,9 +304,11 @@ export declare function createIngestionClient({ appId: appIdOption, apiKey: apiK
|
|
|
294
304
|
* @param getTasks.sourceID - The sourceIDs of the tasks to retrive.
|
|
295
305
|
* @param getTasks.destinationID - The destinationIDs of the tasks to retrive.
|
|
296
306
|
* @param getTasks.triggerType - The trigger type of the task.
|
|
307
|
+
* @param getTasks.sort - The key by which the list should be sorted.
|
|
308
|
+
* @param getTasks.order - The order of the returned list.
|
|
297
309
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
298
310
|
*/
|
|
299
|
-
getTasks({ itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, }?: GetTasksProps, requestOptions?: RequestOptions | undefined): Promise<ListTasksResponse>;
|
|
311
|
+
getTasks({ itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, sort, order, }?: GetTasksProps, requestOptions?: RequestOptions | undefined): Promise<ListTasksResponse>;
|
|
300
312
|
/**
|
|
301
313
|
* Run the task of the given task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C9B,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"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Used to sort the Authentication list endpoint.
|
|
5
|
+
*/
|
|
6
|
+
export type AuthenticationSortKeys =
|
|
7
|
+
| 'auth_type'
|
|
8
|
+
| 'createdAt'
|
|
9
|
+
| 'name'
|
|
10
|
+
| 'platform'
|
|
11
|
+
| 'updatedAt';
|
|
@@ -1,16 +1,23 @@
|
|
|
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 { AuthenticationSortKeys } from './authenticationSortKeys';
|
|
4
5
|
import type { AuthenticationType } from './authenticationType';
|
|
5
6
|
import type { AuthenticationUpdate } from './authenticationUpdate';
|
|
7
|
+
import type { DestinationSortKeys } from './destinationSortKeys';
|
|
6
8
|
import type { DestinationType } from './destinationType';
|
|
7
9
|
import type { DestinationUpdate } from './destinationUpdate';
|
|
10
|
+
import type { EventSortKeys } from './eventSortKeys';
|
|
8
11
|
import type { EventStatus } from './eventStatus';
|
|
9
12
|
import type { EventType } from './eventType';
|
|
13
|
+
import type { OrderKeys } from './orderKeys';
|
|
10
14
|
import type { PlatformWithNone } from './platformWithNone';
|
|
15
|
+
import type { RunSortKeys } from './runSortKeys';
|
|
11
16
|
import type { RunStatus } from './runStatus';
|
|
17
|
+
import type { SourceSortKeys } from './sourceSortKeys';
|
|
12
18
|
import type { SourceType } from './sourceType';
|
|
13
19
|
import type { SourceUpdate } from './sourceUpdate';
|
|
20
|
+
import type { TaskSortKeys } from './taskSortKeys';
|
|
14
21
|
import type { TaskUpdate } from './taskUpdate';
|
|
15
22
|
import type { TriggerType } from './triggerType';
|
|
16
23
|
|
|
@@ -104,6 +111,14 @@ export type GetAuthenticationsProps = {
|
|
|
104
111
|
* The platform of the authentications to retrieve.
|
|
105
112
|
*/
|
|
106
113
|
platform?: PlatformWithNone[];
|
|
114
|
+
/**
|
|
115
|
+
* The key by which the list should be sorted.
|
|
116
|
+
*/
|
|
117
|
+
sort?: AuthenticationSortKeys;
|
|
118
|
+
/**
|
|
119
|
+
* The order of the returned list.
|
|
120
|
+
*/
|
|
121
|
+
order?: OrderKeys;
|
|
107
122
|
};
|
|
108
123
|
|
|
109
124
|
/**
|
|
@@ -136,6 +151,14 @@ export type GetDestinationsProps = {
|
|
|
136
151
|
* The authenticationIDs of the destinations to retrive.
|
|
137
152
|
*/
|
|
138
153
|
authenticationID?: string[];
|
|
154
|
+
/**
|
|
155
|
+
* The key by which the list should be sorted.
|
|
156
|
+
*/
|
|
157
|
+
sort?: DestinationSortKeys;
|
|
158
|
+
/**
|
|
159
|
+
* The order of the returned list.
|
|
160
|
+
*/
|
|
161
|
+
order?: OrderKeys;
|
|
139
162
|
};
|
|
140
163
|
|
|
141
164
|
/**
|
|
@@ -168,6 +191,14 @@ export type GetEventsProps = {
|
|
|
168
191
|
* Filter the type of the events.
|
|
169
192
|
*/
|
|
170
193
|
type?: EventType[];
|
|
194
|
+
/**
|
|
195
|
+
* The key by which the list should be sorted.
|
|
196
|
+
*/
|
|
197
|
+
sort?: EventSortKeys;
|
|
198
|
+
/**
|
|
199
|
+
* The order of the returned list.
|
|
200
|
+
*/
|
|
201
|
+
order?: OrderKeys;
|
|
171
202
|
};
|
|
172
203
|
|
|
173
204
|
/**
|
|
@@ -200,6 +231,14 @@ export type GetRunsProps = {
|
|
|
200
231
|
* Filter by taskID.
|
|
201
232
|
*/
|
|
202
233
|
taskID?: string;
|
|
234
|
+
/**
|
|
235
|
+
* The key by which the list should be sorted.
|
|
236
|
+
*/
|
|
237
|
+
sort?: RunSortKeys;
|
|
238
|
+
/**
|
|
239
|
+
* The order of the returned list.
|
|
240
|
+
*/
|
|
241
|
+
order?: OrderKeys;
|
|
203
242
|
};
|
|
204
243
|
|
|
205
244
|
/**
|
|
@@ -232,6 +271,14 @@ export type GetSourcesProps = {
|
|
|
232
271
|
* The authenticationIDs of the sources to retrieve. \'none\' returns sources that doesn\'t have an authentication.
|
|
233
272
|
*/
|
|
234
273
|
authenticationID?: string[];
|
|
274
|
+
/**
|
|
275
|
+
* The key by which the list should be sorted.
|
|
276
|
+
*/
|
|
277
|
+
sort?: SourceSortKeys;
|
|
278
|
+
/**
|
|
279
|
+
* The order of the returned list.
|
|
280
|
+
*/
|
|
281
|
+
order?: OrderKeys;
|
|
235
282
|
};
|
|
236
283
|
|
|
237
284
|
/**
|
|
@@ -276,6 +323,14 @@ export type GetTasksProps = {
|
|
|
276
323
|
* The trigger type of the task.
|
|
277
324
|
*/
|
|
278
325
|
triggerType?: TriggerType[];
|
|
326
|
+
/**
|
|
327
|
+
* The key by which the list should be sorted.
|
|
328
|
+
*/
|
|
329
|
+
sort?: TaskSortKeys;
|
|
330
|
+
/**
|
|
331
|
+
* The order of the returned list.
|
|
332
|
+
*/
|
|
333
|
+
order?: OrderKeys;
|
|
279
334
|
};
|
|
280
335
|
|
|
281
336
|
/**
|
package/model/index.ts
CHANGED
|
@@ -12,6 +12,7 @@ export * from './authenticationCreate';
|
|
|
12
12
|
export * from './authenticationCreateResponse';
|
|
13
13
|
export * from './authenticationInput';
|
|
14
14
|
export * from './authenticationSearch';
|
|
15
|
+
export * from './authenticationSortKeys';
|
|
15
16
|
export * from './authenticationType';
|
|
16
17
|
export * from './authenticationUpdate';
|
|
17
18
|
export * from './authenticationUpdateResponse';
|
|
@@ -24,11 +25,13 @@ export * from './destinationIndexName';
|
|
|
24
25
|
export * from './destinationIndexPrefix';
|
|
25
26
|
export * from './destinationInput';
|
|
26
27
|
export * from './destinationSearch';
|
|
28
|
+
export * from './destinationSortKeys';
|
|
27
29
|
export * from './destinationType';
|
|
28
30
|
export * from './destinationUpdate';
|
|
29
31
|
export * from './destinationUpdateResponse';
|
|
30
32
|
export * from './errorBase';
|
|
31
33
|
export * from './event';
|
|
34
|
+
export * from './eventSortKeys';
|
|
32
35
|
export * from './eventStatus';
|
|
33
36
|
export * from './eventType';
|
|
34
37
|
export * from './listAuthenticationsResponse';
|
|
@@ -40,6 +43,7 @@ export * from './mappingTypeCSV';
|
|
|
40
43
|
export * from './methodType';
|
|
41
44
|
export * from './onDemandTrigger';
|
|
42
45
|
export * from './onDemandTriggerType';
|
|
46
|
+
export * from './orderKeys';
|
|
43
47
|
export * from './pagination';
|
|
44
48
|
export * from './platform';
|
|
45
49
|
export * from './platformNone';
|
|
@@ -49,6 +53,7 @@ export * from './runListResponse';
|
|
|
49
53
|
export * from './runOutcome';
|
|
50
54
|
export * from './runProgress';
|
|
51
55
|
export * from './runResponse';
|
|
56
|
+
export * from './runSortKeys';
|
|
52
57
|
export * from './runStatus';
|
|
53
58
|
export * from './runType';
|
|
54
59
|
export * from './scheduleTrigger';
|
|
@@ -63,6 +68,7 @@ export * from './sourceCreateResponse';
|
|
|
63
68
|
export * from './sourceInput';
|
|
64
69
|
export * from './sourceJSON';
|
|
65
70
|
export * from './sourceSearch';
|
|
71
|
+
export * from './sourceSortKeys';
|
|
66
72
|
export * from './sourceType';
|
|
67
73
|
export * from './sourceUpdate';
|
|
68
74
|
export * from './sourceUpdateCommercetools';
|
|
@@ -74,6 +80,7 @@ export * from './taskCreate';
|
|
|
74
80
|
export * from './taskCreateResponse';
|
|
75
81
|
export * from './taskCreateTrigger';
|
|
76
82
|
export * from './taskSearch';
|
|
83
|
+
export * from './taskSortKeys';
|
|
77
84
|
export * from './taskUpdate';
|
|
78
85
|
export * from './taskUpdateResponse';
|
|
79
86
|
export * from './trigger';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Used to sort the Task list endpoint.
|
|
5
|
+
*/
|
|
6
|
+
export type TaskSortKeys =
|
|
7
|
+
| 'action'
|
|
8
|
+
| 'createdAt'
|
|
9
|
+
| 'enabled'
|
|
10
|
+
| 'triggerType'
|
|
11
|
+
| 'updatedAt';
|
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.19",
|
|
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.45",
|
|
42
|
+
"@algolia/requester-browser-xhr": "5.0.0-alpha.45",
|
|
43
|
+
"@algolia/requester-node-http": "5.0.0-alpha.45"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/node": "16.11.59",
|