@algolia/ingestion 1.1.1 → 1.2.2
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/README.md +1 -1
- package/dist/builds/browser.d.ts +12 -12
- package/dist/builds/browser.d.ts.map +1 -1
- package/dist/builds/node.d.ts +12 -12
- package/dist/builds/node.d.ts.map +1 -1
- package/dist/ingestion.cjs +15 -18
- package/dist/ingestion.esm.browser.js +24 -28
- package/dist/ingestion.esm.node.js +15 -18
- package/dist/ingestion.umd.js +2 -2
- package/dist/model/authenticationSortKeys.d.ts.map +1 -1
- package/dist/model/authenticationType.d.ts.map +1 -1
- package/dist/model/batchRequest.d.ts +1 -1
- package/dist/model/batchRequest.d.ts.map +1 -1
- package/dist/model/clientMethodProps.d.ts +7 -2
- package/dist/model/clientMethodProps.d.ts.map +1 -1
- package/dist/model/eventStatus.d.ts.map +1 -1
- package/dist/model/mappingTypeCSV.d.ts.map +1 -1
- package/dist/model/runReasonCode.d.ts.map +1 -1
- package/dist/model/runStatus.d.ts.map +1 -1
- package/dist/model/runType.d.ts +1 -1
- package/dist/model/runType.d.ts.map +1 -1
- package/dist/model/source.d.ts +1 -1
- package/dist/model/source.d.ts.map +1 -1
- package/dist/model/sourceCreate.d.ts +1 -1
- package/dist/model/sourceCreate.d.ts.map +1 -1
- package/dist/model/sourceDocker.d.ts +1 -1
- package/dist/model/sourceDocker.d.ts.map +1 -1
- package/dist/model/sourceType.d.ts +1 -1
- package/dist/model/sourceType.d.ts.map +1 -1
- package/dist/model/sourceUpdateDocker.d.ts +1 -1
- package/dist/model/sourceUpdateDocker.d.ts.map +1 -1
- package/dist/model/sourceWatchResponse.d.ts +1 -1
- package/dist/model/sourceWatchResponse.d.ts.map +1 -1
- package/dist/model/taskCreateTrigger.d.ts.map +1 -1
- package/dist/model/taskSortKeys.d.ts.map +1 -1
- package/dist/model/transformationTry.d.ts +1 -1
- package/dist/model/transformationTry.d.ts.map +1 -1
- package/dist/model/transformationTryResponse.d.ts +1 -1
- package/dist/model/transformationTryResponse.d.ts.map +1 -1
- package/dist/model/trigger.d.ts.map +1 -1
- package/dist/model/triggerType.d.ts.map +1 -1
- package/dist/src/ingestionClient.d.ts +14 -13
- package/dist/src/ingestionClient.d.ts.map +1 -1
- package/model/authenticationSortKeys.ts +1 -6
- package/model/authenticationType.ts +1 -7
- package/model/batchRequest.ts +1 -1
- package/model/clientMethodProps.ts +7 -2
- package/model/eventStatus.ts +1 -7
- package/model/mappingTypeCSV.ts +1 -6
- package/model/runReasonCode.ts +1 -8
- package/model/runStatus.ts +1 -6
- package/model/runType.ts +1 -1
- package/model/source.ts +1 -1
- package/model/sourceCreate.ts +1 -1
- package/model/sourceDocker.ts +1 -1
- package/model/sourceType.ts +1 -0
- package/model/sourceUpdateDocker.ts +1 -1
- package/model/sourceWatchResponse.ts +1 -1
- package/model/taskCreateTrigger.ts +1 -5
- package/model/taskSortKeys.ts +1 -6
- package/model/transformationTry.ts +1 -1
- package/model/transformationTryResponse.ts +1 -1
- package/model/trigger.ts +1 -5
- package/model/triggerType.ts +1 -5
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<a href="https://npmjs.org/package/@algolia/ingestion"><img src="https://img.shields.io/npm/v/@algolia/ingestion.svg?style=flat-square" alt="NPM version"></img></a>
|
|
10
10
|
<a href="http://npm-stat.com/charts.html?package=@algolia/ingestion"><img src="https://img.shields.io/npm/dm/@algolia/ingestion.svg?style=flat-square" alt="NPM downloads"></a>
|
|
11
11
|
<a href="https://www.jsdelivr.com/package/npm/@algolia/ingestion"><img src="https://data.jsdelivr.com/v1/package/npm/@algolia/ingestion/badge" alt="jsDelivr Downloads"></img></a>
|
|
12
|
-
<a href="LICENSE
|
|
12
|
+
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-green.svg?style=flat-square" alt="License"></a>
|
|
13
13
|
</p>
|
|
14
14
|
</p>
|
|
15
15
|
|
package/dist/builds/browser.d.ts
CHANGED
|
@@ -18,10 +18,10 @@ export declare function ingestionClient(appId: string, apiKey: string, region: R
|
|
|
18
18
|
createTask(taskCreate: import("../model").TaskCreate, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").TaskCreateResponse>;
|
|
19
19
|
createTaskV1(taskCreate: import("../model").TaskCreateV1, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").TaskCreateResponse>;
|
|
20
20
|
createTransformation(transformationCreate: import("../model").TransformationCreate, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").TransformationCreateResponse>;
|
|
21
|
-
customDelete({ path, parameters }: import("../model").CustomDeleteProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<Record<string,
|
|
22
|
-
customGet({ path, parameters }: import("../model").CustomGetProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<Record<string,
|
|
23
|
-
customPost({ path, parameters, body }: import("../model").CustomPostProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<Record<string,
|
|
24
|
-
customPut({ path, parameters, body }: import("../model").CustomPutProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<Record<string,
|
|
21
|
+
customDelete({ path, parameters }: import("../model").CustomDeleteProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<Record<string, unknown>>;
|
|
22
|
+
customGet({ path, parameters }: import("../model").CustomGetProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<Record<string, unknown>>;
|
|
23
|
+
customPost({ path, parameters, body }: import("../model").CustomPostProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<Record<string, unknown>>;
|
|
24
|
+
customPut({ path, parameters, body }: import("../model").CustomPutProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<Record<string, unknown>>;
|
|
25
25
|
deleteAuthentication({ authenticationID }: import("../model").DeleteAuthenticationProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").DeleteResponse>;
|
|
26
26
|
deleteDestination({ destinationID }: import("../model").DeleteDestinationProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").DeleteResponse>;
|
|
27
27
|
deleteSource({ sourceID }: import("../model").DeleteSourceProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").DeleteResponse>;
|
|
@@ -41,13 +41,13 @@ export declare function ingestionClient(appId: string, apiKey: string, region: R
|
|
|
41
41
|
getTask({ taskID }: import("../model").GetTaskProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").Task>;
|
|
42
42
|
getTaskV1({ taskID }: import("../model").GetTaskV1Props, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").TaskV1>;
|
|
43
43
|
getTransformation({ transformationID }: import("../model").GetTransformationProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").Transformation>;
|
|
44
|
-
listAuthentications({ itemsPerPage, page, type, platform, sort, order
|
|
45
|
-
listDestinations({ itemsPerPage, page, type, authenticationID, sort, order
|
|
46
|
-
listEvents({ runID, itemsPerPage, page, status, type, sort, order, startDate, endDate
|
|
47
|
-
listRuns({ itemsPerPage, page, status, taskID, sort, order, startDate, endDate
|
|
48
|
-
listSources({ itemsPerPage, page, type, authenticationID, sort, order
|
|
49
|
-
listTasks({ itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, sort, order
|
|
50
|
-
listTasksV1({ itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, sort, order
|
|
44
|
+
listAuthentications({ itemsPerPage, page, type, platform, sort, order }?: import("../model").ListAuthenticationsProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").ListAuthenticationsResponse>;
|
|
45
|
+
listDestinations({ itemsPerPage, page, type, authenticationID, sort, order }?: import("../model").ListDestinationsProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").ListDestinationsResponse>;
|
|
46
|
+
listEvents({ runID, itemsPerPage, page, status, type, sort, order, startDate, endDate }: import("../model").ListEventsProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").ListEventsResponse>;
|
|
47
|
+
listRuns({ itemsPerPage, page, status, type, taskID, sort, order, startDate, endDate }?: import("../model").ListRunsProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").RunListResponse>;
|
|
48
|
+
listSources({ itemsPerPage, page, type, authenticationID, sort, order }?: import("../model").ListSourcesProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").ListSourcesResponse>;
|
|
49
|
+
listTasks({ itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, sort, order }?: import("../model").ListTasksProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").ListTasksResponse>;
|
|
50
|
+
listTasksV1({ itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, sort, order }?: import("../model").ListTasksV1Props, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").ListTasksResponseV1>;
|
|
51
51
|
listTransformationModels(requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").TransformationModels>;
|
|
52
52
|
listTransformations({ itemsPerPage, page, sort, order }?: import("../model").ListTransformationsProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").ListTransformationsResponse>;
|
|
53
53
|
pushTask({ taskID, batchWriteParams }: import("../model").PushTaskProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").RunResponse>;
|
|
@@ -62,7 +62,7 @@ export declare function ingestionClient(appId: string, apiKey: string, region: R
|
|
|
62
62
|
searchTransformations(transformationSearch: import("../model").TransformationSearch, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").Transformation[]>;
|
|
63
63
|
triggerDockerSourceDiscover({ sourceID }: import("../model").TriggerDockerSourceDiscoverProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").SourceWatchResponse>;
|
|
64
64
|
tryTransformation(transformationTry: import("../model").TransformationTry, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").TransformationTryResponse>;
|
|
65
|
-
tryTransformationBeforeUpdate({ transformationID, transformationTry
|
|
65
|
+
tryTransformationBeforeUpdate({ transformationID, transformationTry }: import("../model").TryTransformationBeforeUpdateProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").TransformationTryResponse>;
|
|
66
66
|
updateAuthentication({ authenticationID, authenticationUpdate }: import("../model").UpdateAuthenticationProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").AuthenticationUpdateResponse>;
|
|
67
67
|
updateDestination({ destinationID, destinationUpdate }: import("../model").UpdateDestinationProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").DestinationUpdateResponse>;
|
|
68
68
|
updateSource({ sourceID, sourceUpdate }: import("../model").UpdateSourceProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").SourceUpdateResponse>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../builds/browser.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAW5D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../builds/browser.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAW5D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAGrD,OAAO,EACL,gBAAgB,EAChB,MAAM,EACN,iBAAiB,EACjB,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,wBAAwB,CAAC;AAChC,cAAc,UAAU,CAAC;AAEzB;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;AAGjE,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgCrG"}
|
package/dist/builds/node.d.ts
CHANGED
|
@@ -18,10 +18,10 @@ export declare function ingestionClient(appId: string, apiKey: string, region: R
|
|
|
18
18
|
createTask(taskCreate: import("../model").TaskCreate, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").TaskCreateResponse>;
|
|
19
19
|
createTaskV1(taskCreate: import("../model").TaskCreateV1, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").TaskCreateResponse>;
|
|
20
20
|
createTransformation(transformationCreate: import("../model").TransformationCreate, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").TransformationCreateResponse>;
|
|
21
|
-
customDelete({ path, parameters }: import("../model").CustomDeleteProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<Record<string,
|
|
22
|
-
customGet({ path, parameters }: import("../model").CustomGetProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<Record<string,
|
|
23
|
-
customPost({ path, parameters, body }: import("../model").CustomPostProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<Record<string,
|
|
24
|
-
customPut({ path, parameters, body }: import("../model").CustomPutProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<Record<string,
|
|
21
|
+
customDelete({ path, parameters }: import("../model").CustomDeleteProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<Record<string, unknown>>;
|
|
22
|
+
customGet({ path, parameters }: import("../model").CustomGetProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<Record<string, unknown>>;
|
|
23
|
+
customPost({ path, parameters, body }: import("../model").CustomPostProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<Record<string, unknown>>;
|
|
24
|
+
customPut({ path, parameters, body }: import("../model").CustomPutProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<Record<string, unknown>>;
|
|
25
25
|
deleteAuthentication({ authenticationID }: import("../model").DeleteAuthenticationProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").DeleteResponse>;
|
|
26
26
|
deleteDestination({ destinationID }: import("../model").DeleteDestinationProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").DeleteResponse>;
|
|
27
27
|
deleteSource({ sourceID }: import("../model").DeleteSourceProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").DeleteResponse>;
|
|
@@ -41,13 +41,13 @@ export declare function ingestionClient(appId: string, apiKey: string, region: R
|
|
|
41
41
|
getTask({ taskID }: import("../model").GetTaskProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").Task>;
|
|
42
42
|
getTaskV1({ taskID }: import("../model").GetTaskV1Props, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").TaskV1>;
|
|
43
43
|
getTransformation({ transformationID }: import("../model").GetTransformationProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").Transformation>;
|
|
44
|
-
listAuthentications({ itemsPerPage, page, type, platform, sort, order
|
|
45
|
-
listDestinations({ itemsPerPage, page, type, authenticationID, sort, order
|
|
46
|
-
listEvents({ runID, itemsPerPage, page, status, type, sort, order, startDate, endDate
|
|
47
|
-
listRuns({ itemsPerPage, page, status, taskID, sort, order, startDate, endDate
|
|
48
|
-
listSources({ itemsPerPage, page, type, authenticationID, sort, order
|
|
49
|
-
listTasks({ itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, sort, order
|
|
50
|
-
listTasksV1({ itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, sort, order
|
|
44
|
+
listAuthentications({ itemsPerPage, page, type, platform, sort, order }?: import("../model").ListAuthenticationsProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").ListAuthenticationsResponse>;
|
|
45
|
+
listDestinations({ itemsPerPage, page, type, authenticationID, sort, order }?: import("../model").ListDestinationsProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").ListDestinationsResponse>;
|
|
46
|
+
listEvents({ runID, itemsPerPage, page, status, type, sort, order, startDate, endDate }: import("../model").ListEventsProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").ListEventsResponse>;
|
|
47
|
+
listRuns({ itemsPerPage, page, status, type, taskID, sort, order, startDate, endDate }?: import("../model").ListRunsProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").RunListResponse>;
|
|
48
|
+
listSources({ itemsPerPage, page, type, authenticationID, sort, order }?: import("../model").ListSourcesProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").ListSourcesResponse>;
|
|
49
|
+
listTasks({ itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, sort, order }?: import("../model").ListTasksProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").ListTasksResponse>;
|
|
50
|
+
listTasksV1({ itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, sort, order }?: import("../model").ListTasksV1Props, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").ListTasksResponseV1>;
|
|
51
51
|
listTransformationModels(requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").TransformationModels>;
|
|
52
52
|
listTransformations({ itemsPerPage, page, sort, order }?: import("../model").ListTransformationsProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").ListTransformationsResponse>;
|
|
53
53
|
pushTask({ taskID, batchWriteParams }: import("../model").PushTaskProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").RunResponse>;
|
|
@@ -62,7 +62,7 @@ export declare function ingestionClient(appId: string, apiKey: string, region: R
|
|
|
62
62
|
searchTransformations(transformationSearch: import("../model").TransformationSearch, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").Transformation[]>;
|
|
63
63
|
triggerDockerSourceDiscover({ sourceID }: import("../model").TriggerDockerSourceDiscoverProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").SourceWatchResponse>;
|
|
64
64
|
tryTransformation(transformationTry: import("../model").TransformationTry, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").TransformationTryResponse>;
|
|
65
|
-
tryTransformationBeforeUpdate({ transformationID, transformationTry
|
|
65
|
+
tryTransformationBeforeUpdate({ transformationID, transformationTry }: import("../model").TryTransformationBeforeUpdateProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").TransformationTryResponse>;
|
|
66
66
|
updateAuthentication({ authenticationID, authenticationUpdate }: import("../model").UpdateAuthenticationProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").AuthenticationUpdateResponse>;
|
|
67
67
|
updateDestination({ destinationID, destinationUpdate }: import("../model").UpdateDestinationProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").DestinationUpdateResponse>;
|
|
68
68
|
updateSource({ sourceID, sourceUpdate }: import("../model").UpdateSourceProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").SourceUpdateResponse>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../builds/node.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAU5D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAGrD,OAAO,EACL,gBAAgB,EAChB,MAAM,EACN,iBAAiB,EACjB,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,wBAAwB,CAAC;AAChC,cAAc,UAAU,CAAC;AAEzB;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;AAGjE,wBAAgB,eAAe,
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../builds/node.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAU5D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAGrD,OAAO,EACL,gBAAgB,EAChB,MAAM,EACN,iBAAiB,EACjB,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,wBAAwB,CAAC;AAChC,cAAc,UAAU,CAAC;AAEzB;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;AAGjE,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+BrG"}
|
package/dist/ingestion.cjs
CHANGED
|
@@ -4,7 +4,7 @@ var clientCommon = require('@algolia/client-common');
|
|
|
4
4
|
var requesterNodeHttp = require('@algolia/requester-node-http');
|
|
5
5
|
|
|
6
6
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
7
|
-
const apiClientVersion = '1.
|
|
7
|
+
const apiClientVersion = '1.2.2';
|
|
8
8
|
const REGIONS = ['eu', 'us'];
|
|
9
9
|
function getDefaultHosts(region) {
|
|
10
10
|
const url = 'data.{region}.algolia.com'.replace('{region}', region);
|
|
@@ -68,10 +68,7 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
68
68
|
* Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
|
|
69
69
|
*/
|
|
70
70
|
clearCache() {
|
|
71
|
-
return Promise.all([
|
|
72
|
-
transporter.requestsCache.clear(),
|
|
73
|
-
transporter.responsesCache.clear(),
|
|
74
|
-
]).then(() => undefined);
|
|
71
|
+
return Promise.all([transporter.requestsCache.clear(), transporter.responsesCache.clear()]).then(() => undefined);
|
|
75
72
|
},
|
|
76
73
|
/**
|
|
77
74
|
* Get the value of the `algoliaAgent`, used by our libraries internally and telemetry system.
|
|
@@ -181,9 +178,6 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
181
178
|
if (!sourceCreate.name) {
|
|
182
179
|
throw new Error('Parameter `sourceCreate.name` is required when calling `createSource`.');
|
|
183
180
|
}
|
|
184
|
-
if (!sourceCreate.input) {
|
|
185
|
-
throw new Error('Parameter `sourceCreate.input` is required when calling `createSource`.');
|
|
186
|
-
}
|
|
187
181
|
const requestPath = '/1/sources';
|
|
188
182
|
const headers = {};
|
|
189
183
|
const queryParameters = {};
|
|
@@ -912,7 +906,7 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
912
906
|
* @param listAuthentications.order - Sort order of the response, ascending or descending.
|
|
913
907
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
914
908
|
*/
|
|
915
|
-
listAuthentications({ itemsPerPage, page, type, platform, sort, order
|
|
909
|
+
listAuthentications({ itemsPerPage, page, type, platform, sort, order } = {}, requestOptions = undefined) {
|
|
916
910
|
const requestPath = '/1/authentications';
|
|
917
911
|
const headers = {};
|
|
918
912
|
const queryParameters = {};
|
|
@@ -959,7 +953,7 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
959
953
|
* @param listDestinations.order - Sort order of the response, ascending or descending.
|
|
960
954
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
961
955
|
*/
|
|
962
|
-
listDestinations({ itemsPerPage, page, type, authenticationID, sort, order
|
|
956
|
+
listDestinations({ itemsPerPage, page, type, authenticationID, sort, order } = {}, requestOptions = undefined) {
|
|
963
957
|
const requestPath = '/1/destinations';
|
|
964
958
|
const headers = {};
|
|
965
959
|
const queryParameters = {};
|
|
@@ -1009,7 +1003,7 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1009
1003
|
* @param listEvents.endDate - Date and time in RFC 3339 format for the latest events to retrieve. By default, the current time is used.
|
|
1010
1004
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1011
1005
|
*/
|
|
1012
|
-
listEvents({ runID, itemsPerPage, page, status, type, sort, order, startDate, endDate
|
|
1006
|
+
listEvents({ runID, itemsPerPage, page, status, type, sort, order, startDate, endDate }, requestOptions) {
|
|
1013
1007
|
if (!runID) {
|
|
1014
1008
|
throw new Error('Parameter `runID` is required when calling `listEvents`.');
|
|
1015
1009
|
}
|
|
@@ -1060,6 +1054,7 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1060
1054
|
* @param listRuns.itemsPerPage - Number of items per page.
|
|
1061
1055
|
* @param listRuns.page - Page number of the paginated API response.
|
|
1062
1056
|
* @param listRuns.status - Run status for filtering the list of task runs.
|
|
1057
|
+
* @param listRuns.type - Run type for filtering the list of task runs.
|
|
1063
1058
|
* @param listRuns.taskID - Task ID for filtering the list of task runs.
|
|
1064
1059
|
* @param listRuns.sort - Property by which to sort the list of task runs.
|
|
1065
1060
|
* @param listRuns.order - Sort order of the response, ascending or descending.
|
|
@@ -1067,7 +1062,7 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1067
1062
|
* @param listRuns.endDate - Date in RFC 3339 format for the latest run to retrieve. By default, the current day is used.
|
|
1068
1063
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1069
1064
|
*/
|
|
1070
|
-
listRuns({ itemsPerPage, page, status, taskID, sort, order, startDate, endDate
|
|
1065
|
+
listRuns({ itemsPerPage, page, status, type, taskID, sort, order, startDate, endDate } = {}, requestOptions = undefined) {
|
|
1071
1066
|
const requestPath = '/1/runs';
|
|
1072
1067
|
const headers = {};
|
|
1073
1068
|
const queryParameters = {};
|
|
@@ -1080,6 +1075,9 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1080
1075
|
if (status !== undefined) {
|
|
1081
1076
|
queryParameters.status = status.toString();
|
|
1082
1077
|
}
|
|
1078
|
+
if (type !== undefined) {
|
|
1079
|
+
queryParameters.type = type.toString();
|
|
1080
|
+
}
|
|
1083
1081
|
if (taskID !== undefined) {
|
|
1084
1082
|
queryParameters.taskID = taskID.toString();
|
|
1085
1083
|
}
|
|
@@ -1120,7 +1118,7 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1120
1118
|
* @param listSources.order - Sort order of the response, ascending or descending.
|
|
1121
1119
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1122
1120
|
*/
|
|
1123
|
-
listSources({ itemsPerPage, page, type, authenticationID, sort, order
|
|
1121
|
+
listSources({ itemsPerPage, page, type, authenticationID, sort, order } = {}, requestOptions = undefined) {
|
|
1124
1122
|
const requestPath = '/1/sources';
|
|
1125
1123
|
const headers = {};
|
|
1126
1124
|
const queryParameters = {};
|
|
@@ -1170,7 +1168,7 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1170
1168
|
* @param listTasks.order - Sort order of the response, ascending or descending.
|
|
1171
1169
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1172
1170
|
*/
|
|
1173
|
-
listTasks({ itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, sort, order
|
|
1171
|
+
listTasks({ itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, sort, order } = {}, requestOptions = undefined) {
|
|
1174
1172
|
const requestPath = '/2/tasks';
|
|
1175
1173
|
const headers = {};
|
|
1176
1174
|
const queryParameters = {};
|
|
@@ -1229,7 +1227,7 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1229
1227
|
* @param listTasksV1.order - Sort order of the response, ascending or descending.
|
|
1230
1228
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1231
1229
|
*/
|
|
1232
|
-
listTasksV1({ itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, sort, order
|
|
1230
|
+
listTasksV1({ itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, sort, order } = {}, requestOptions = undefined) {
|
|
1233
1231
|
const requestPath = '/1/tasks';
|
|
1234
1232
|
const headers = {};
|
|
1235
1233
|
const queryParameters = {};
|
|
@@ -1700,7 +1698,7 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1700
1698
|
* @param tryTransformationBeforeUpdate.transformationTry - The transformationTry object.
|
|
1701
1699
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1702
1700
|
*/
|
|
1703
|
-
tryTransformationBeforeUpdate({ transformationID, transformationTry
|
|
1701
|
+
tryTransformationBeforeUpdate({ transformationID, transformationTry }, requestOptions) {
|
|
1704
1702
|
if (!transformationID) {
|
|
1705
1703
|
throw new Error('Parameter `transformationID` is required when calling `tryTransformationBeforeUpdate`.');
|
|
1706
1704
|
}
|
|
@@ -1976,8 +1974,7 @@ function ingestionClient(appId, apiKey, region, options) {
|
|
|
1976
1974
|
if (!apiKey || typeof apiKey !== 'string') {
|
|
1977
1975
|
throw new Error('`apiKey` is missing.');
|
|
1978
1976
|
}
|
|
1979
|
-
if (!region ||
|
|
1980
|
-
(region && (typeof region !== 'string' || !REGIONS.includes(region)))) {
|
|
1977
|
+
if (!region || (region && (typeof region !== 'string' || !REGIONS.includes(region)))) {
|
|
1981
1978
|
throw new Error(`\`region\` is required and must be one of the following: ${REGIONS.join(', ')}`);
|
|
1982
1979
|
}
|
|
1983
1980
|
return {
|
|
@@ -314,7 +314,7 @@ function deserializeFailure({
|
|
|
314
314
|
return new DetailedApiError(parsed.message, status, parsed.error, stackFrame);
|
|
315
315
|
}
|
|
316
316
|
return new ApiError(parsed.message, status, stackFrame);
|
|
317
|
-
} catch
|
|
317
|
+
} catch {
|
|
318
318
|
// ..
|
|
319
319
|
}
|
|
320
320
|
return new ApiError(content, status, stackFrame);
|
|
@@ -442,14 +442,17 @@ function createTransporter({
|
|
|
442
442
|
if (host === undefined) {
|
|
443
443
|
throw new RetryError(stackTraceWithoutCredentials(stackTrace));
|
|
444
444
|
}
|
|
445
|
-
|
|
445
|
+
const timeout = {
|
|
446
|
+
...timeouts,
|
|
447
|
+
...requestOptions.timeouts
|
|
448
|
+
};
|
|
446
449
|
const payload = {
|
|
447
450
|
data,
|
|
448
451
|
headers,
|
|
449
452
|
method: request.method,
|
|
450
453
|
url: serializeUrl(host, request.path, queryParameters),
|
|
451
|
-
connectTimeout: getTimeout(timeoutsCount,
|
|
452
|
-
responseTimeout: getTimeout(timeoutsCount,
|
|
454
|
+
connectTimeout: getTimeout(timeoutsCount, timeout.connect),
|
|
455
|
+
responseTimeout: getTimeout(timeoutsCount, isRead ? timeout.read : timeout.write)
|
|
453
456
|
};
|
|
454
457
|
/**
|
|
455
458
|
* The stackFrame is pushed to the stackTrace so we
|
|
@@ -642,8 +645,7 @@ function createXhrRequester() {
|
|
|
642
645
|
const connectTimeout = createTimeout(request.connectTimeout, 'Connection timeout');
|
|
643
646
|
let responseTimeout;
|
|
644
647
|
baseRequester.onreadystatechange = () => {
|
|
645
|
-
if (baseRequester.readyState > baseRequester.OPENED &&
|
|
646
|
-
responseTimeout === undefined) {
|
|
648
|
+
if (baseRequester.readyState > baseRequester.OPENED && responseTimeout === undefined) {
|
|
647
649
|
clearTimeout(connectTimeout);
|
|
648
650
|
responseTimeout = createTimeout(request.responseTimeout, 'Socket timeout');
|
|
649
651
|
}
|
|
@@ -676,7 +678,7 @@ function createXhrRequester() {
|
|
|
676
678
|
}
|
|
677
679
|
|
|
678
680
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
679
|
-
const apiClientVersion = '1.
|
|
681
|
+
const apiClientVersion = '1.2.2';
|
|
680
682
|
const REGIONS = ['eu', 'us'];
|
|
681
683
|
function getDefaultHosts(region) {
|
|
682
684
|
const url = 'data.{region}.algolia.com'.replace('{region}', region);
|
|
@@ -740,10 +742,7 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
740
742
|
* Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
|
|
741
743
|
*/
|
|
742
744
|
clearCache() {
|
|
743
|
-
return Promise.all([
|
|
744
|
-
transporter.requestsCache.clear(),
|
|
745
|
-
transporter.responsesCache.clear(),
|
|
746
|
-
]).then(() => undefined);
|
|
745
|
+
return Promise.all([transporter.requestsCache.clear(), transporter.responsesCache.clear()]).then(() => undefined);
|
|
747
746
|
},
|
|
748
747
|
/**
|
|
749
748
|
* Get the value of the `algoliaAgent`, used by our libraries internally and telemetry system.
|
|
@@ -853,9 +852,6 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
853
852
|
if (!sourceCreate.name) {
|
|
854
853
|
throw new Error('Parameter `sourceCreate.name` is required when calling `createSource`.');
|
|
855
854
|
}
|
|
856
|
-
if (!sourceCreate.input) {
|
|
857
|
-
throw new Error('Parameter `sourceCreate.input` is required when calling `createSource`.');
|
|
858
|
-
}
|
|
859
855
|
const requestPath = '/1/sources';
|
|
860
856
|
const headers = {};
|
|
861
857
|
const queryParameters = {};
|
|
@@ -1584,7 +1580,7 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1584
1580
|
* @param listAuthentications.order - Sort order of the response, ascending or descending.
|
|
1585
1581
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1586
1582
|
*/
|
|
1587
|
-
listAuthentications({ itemsPerPage, page, type, platform, sort, order
|
|
1583
|
+
listAuthentications({ itemsPerPage, page, type, platform, sort, order } = {}, requestOptions = undefined) {
|
|
1588
1584
|
const requestPath = '/1/authentications';
|
|
1589
1585
|
const headers = {};
|
|
1590
1586
|
const queryParameters = {};
|
|
@@ -1631,7 +1627,7 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1631
1627
|
* @param listDestinations.order - Sort order of the response, ascending or descending.
|
|
1632
1628
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1633
1629
|
*/
|
|
1634
|
-
listDestinations({ itemsPerPage, page, type, authenticationID, sort, order
|
|
1630
|
+
listDestinations({ itemsPerPage, page, type, authenticationID, sort, order } = {}, requestOptions = undefined) {
|
|
1635
1631
|
const requestPath = '/1/destinations';
|
|
1636
1632
|
const headers = {};
|
|
1637
1633
|
const queryParameters = {};
|
|
@@ -1681,7 +1677,7 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1681
1677
|
* @param listEvents.endDate - Date and time in RFC 3339 format for the latest events to retrieve. By default, the current time is used.
|
|
1682
1678
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1683
1679
|
*/
|
|
1684
|
-
listEvents({ runID, itemsPerPage, page, status, type, sort, order, startDate, endDate
|
|
1680
|
+
listEvents({ runID, itemsPerPage, page, status, type, sort, order, startDate, endDate }, requestOptions) {
|
|
1685
1681
|
if (!runID) {
|
|
1686
1682
|
throw new Error('Parameter `runID` is required when calling `listEvents`.');
|
|
1687
1683
|
}
|
|
@@ -1732,6 +1728,7 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1732
1728
|
* @param listRuns.itemsPerPage - Number of items per page.
|
|
1733
1729
|
* @param listRuns.page - Page number of the paginated API response.
|
|
1734
1730
|
* @param listRuns.status - Run status for filtering the list of task runs.
|
|
1731
|
+
* @param listRuns.type - Run type for filtering the list of task runs.
|
|
1735
1732
|
* @param listRuns.taskID - Task ID for filtering the list of task runs.
|
|
1736
1733
|
* @param listRuns.sort - Property by which to sort the list of task runs.
|
|
1737
1734
|
* @param listRuns.order - Sort order of the response, ascending or descending.
|
|
@@ -1739,7 +1736,7 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1739
1736
|
* @param listRuns.endDate - Date in RFC 3339 format for the latest run to retrieve. By default, the current day is used.
|
|
1740
1737
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1741
1738
|
*/
|
|
1742
|
-
listRuns({ itemsPerPage, page, status, taskID, sort, order, startDate, endDate
|
|
1739
|
+
listRuns({ itemsPerPage, page, status, type, taskID, sort, order, startDate, endDate } = {}, requestOptions = undefined) {
|
|
1743
1740
|
const requestPath = '/1/runs';
|
|
1744
1741
|
const headers = {};
|
|
1745
1742
|
const queryParameters = {};
|
|
@@ -1752,6 +1749,9 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1752
1749
|
if (status !== undefined) {
|
|
1753
1750
|
queryParameters.status = status.toString();
|
|
1754
1751
|
}
|
|
1752
|
+
if (type !== undefined) {
|
|
1753
|
+
queryParameters.type = type.toString();
|
|
1754
|
+
}
|
|
1755
1755
|
if (taskID !== undefined) {
|
|
1756
1756
|
queryParameters.taskID = taskID.toString();
|
|
1757
1757
|
}
|
|
@@ -1792,7 +1792,7 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1792
1792
|
* @param listSources.order - Sort order of the response, ascending or descending.
|
|
1793
1793
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1794
1794
|
*/
|
|
1795
|
-
listSources({ itemsPerPage, page, type, authenticationID, sort, order
|
|
1795
|
+
listSources({ itemsPerPage, page, type, authenticationID, sort, order } = {}, requestOptions = undefined) {
|
|
1796
1796
|
const requestPath = '/1/sources';
|
|
1797
1797
|
const headers = {};
|
|
1798
1798
|
const queryParameters = {};
|
|
@@ -1842,7 +1842,7 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1842
1842
|
* @param listTasks.order - Sort order of the response, ascending or descending.
|
|
1843
1843
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1844
1844
|
*/
|
|
1845
|
-
listTasks({ itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, sort, order
|
|
1845
|
+
listTasks({ itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, sort, order } = {}, requestOptions = undefined) {
|
|
1846
1846
|
const requestPath = '/2/tasks';
|
|
1847
1847
|
const headers = {};
|
|
1848
1848
|
const queryParameters = {};
|
|
@@ -1901,7 +1901,7 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1901
1901
|
* @param listTasksV1.order - Sort order of the response, ascending or descending.
|
|
1902
1902
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1903
1903
|
*/
|
|
1904
|
-
listTasksV1({ itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, sort, order
|
|
1904
|
+
listTasksV1({ itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, sort, order } = {}, requestOptions = undefined) {
|
|
1905
1905
|
const requestPath = '/1/tasks';
|
|
1906
1906
|
const headers = {};
|
|
1907
1907
|
const queryParameters = {};
|
|
@@ -2372,7 +2372,7 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
2372
2372
|
* @param tryTransformationBeforeUpdate.transformationTry - The transformationTry object.
|
|
2373
2373
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
2374
2374
|
*/
|
|
2375
|
-
tryTransformationBeforeUpdate({ transformationID, transformationTry
|
|
2375
|
+
tryTransformationBeforeUpdate({ transformationID, transformationTry }, requestOptions) {
|
|
2376
2376
|
if (!transformationID) {
|
|
2377
2377
|
throw new Error('Parameter `transformationID` is required when calling `tryTransformationBeforeUpdate`.');
|
|
2378
2378
|
}
|
|
@@ -2648,8 +2648,7 @@ function ingestionClient(appId, apiKey, region, options) {
|
|
|
2648
2648
|
if (!apiKey || typeof apiKey !== 'string') {
|
|
2649
2649
|
throw new Error('`apiKey` is missing.');
|
|
2650
2650
|
}
|
|
2651
|
-
if (!region ||
|
|
2652
|
-
(region && (typeof region !== 'string' || !REGIONS.includes(region)))) {
|
|
2651
|
+
if (!region || (region && (typeof region !== 'string' || !REGIONS.includes(region)))) {
|
|
2653
2652
|
throw new Error(`\`region\` is required and must be one of the following: ${REGIONS.join(', ')}`);
|
|
2654
2653
|
}
|
|
2655
2654
|
return createIngestionClient({
|
|
@@ -2667,10 +2666,7 @@ function ingestionClient(appId, apiKey, region, options) {
|
|
|
2667
2666
|
responsesCache: createMemoryCache(),
|
|
2668
2667
|
requestsCache: createMemoryCache({ serializable: false }),
|
|
2669
2668
|
hostsCache: createFallbackableCache({
|
|
2670
|
-
caches: [
|
|
2671
|
-
createBrowserLocalStorageCache({ key: `${apiClientVersion}-${appId}` }),
|
|
2672
|
-
createMemoryCache(),
|
|
2673
|
-
],
|
|
2669
|
+
caches: [createBrowserLocalStorageCache({ key: `${apiClientVersion}-${appId}` }), createMemoryCache()],
|
|
2674
2670
|
}),
|
|
2675
2671
|
...options,
|
|
2676
2672
|
});
|
|
@@ -2,7 +2,7 @@ import { createAuth, createTransporter, getAlgoliaAgent, DEFAULT_CONNECT_TIMEOUT
|
|
|
2
2
|
import { createHttpRequester } from '@algolia/requester-node-http';
|
|
3
3
|
|
|
4
4
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
5
|
-
const apiClientVersion = '1.
|
|
5
|
+
const apiClientVersion = '1.2.2';
|
|
6
6
|
const REGIONS = ['eu', 'us'];
|
|
7
7
|
function getDefaultHosts(region) {
|
|
8
8
|
const url = 'data.{region}.algolia.com'.replace('{region}', region);
|
|
@@ -66,10 +66,7 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
66
66
|
* Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
|
|
67
67
|
*/
|
|
68
68
|
clearCache() {
|
|
69
|
-
return Promise.all([
|
|
70
|
-
transporter.requestsCache.clear(),
|
|
71
|
-
transporter.responsesCache.clear(),
|
|
72
|
-
]).then(() => undefined);
|
|
69
|
+
return Promise.all([transporter.requestsCache.clear(), transporter.responsesCache.clear()]).then(() => undefined);
|
|
73
70
|
},
|
|
74
71
|
/**
|
|
75
72
|
* Get the value of the `algoliaAgent`, used by our libraries internally and telemetry system.
|
|
@@ -179,9 +176,6 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
179
176
|
if (!sourceCreate.name) {
|
|
180
177
|
throw new Error('Parameter `sourceCreate.name` is required when calling `createSource`.');
|
|
181
178
|
}
|
|
182
|
-
if (!sourceCreate.input) {
|
|
183
|
-
throw new Error('Parameter `sourceCreate.input` is required when calling `createSource`.');
|
|
184
|
-
}
|
|
185
179
|
const requestPath = '/1/sources';
|
|
186
180
|
const headers = {};
|
|
187
181
|
const queryParameters = {};
|
|
@@ -910,7 +904,7 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
910
904
|
* @param listAuthentications.order - Sort order of the response, ascending or descending.
|
|
911
905
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
912
906
|
*/
|
|
913
|
-
listAuthentications({ itemsPerPage, page, type, platform, sort, order
|
|
907
|
+
listAuthentications({ itemsPerPage, page, type, platform, sort, order } = {}, requestOptions = undefined) {
|
|
914
908
|
const requestPath = '/1/authentications';
|
|
915
909
|
const headers = {};
|
|
916
910
|
const queryParameters = {};
|
|
@@ -957,7 +951,7 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
957
951
|
* @param listDestinations.order - Sort order of the response, ascending or descending.
|
|
958
952
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
959
953
|
*/
|
|
960
|
-
listDestinations({ itemsPerPage, page, type, authenticationID, sort, order
|
|
954
|
+
listDestinations({ itemsPerPage, page, type, authenticationID, sort, order } = {}, requestOptions = undefined) {
|
|
961
955
|
const requestPath = '/1/destinations';
|
|
962
956
|
const headers = {};
|
|
963
957
|
const queryParameters = {};
|
|
@@ -1007,7 +1001,7 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1007
1001
|
* @param listEvents.endDate - Date and time in RFC 3339 format for the latest events to retrieve. By default, the current time is used.
|
|
1008
1002
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1009
1003
|
*/
|
|
1010
|
-
listEvents({ runID, itemsPerPage, page, status, type, sort, order, startDate, endDate
|
|
1004
|
+
listEvents({ runID, itemsPerPage, page, status, type, sort, order, startDate, endDate }, requestOptions) {
|
|
1011
1005
|
if (!runID) {
|
|
1012
1006
|
throw new Error('Parameter `runID` is required when calling `listEvents`.');
|
|
1013
1007
|
}
|
|
@@ -1058,6 +1052,7 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1058
1052
|
* @param listRuns.itemsPerPage - Number of items per page.
|
|
1059
1053
|
* @param listRuns.page - Page number of the paginated API response.
|
|
1060
1054
|
* @param listRuns.status - Run status for filtering the list of task runs.
|
|
1055
|
+
* @param listRuns.type - Run type for filtering the list of task runs.
|
|
1061
1056
|
* @param listRuns.taskID - Task ID for filtering the list of task runs.
|
|
1062
1057
|
* @param listRuns.sort - Property by which to sort the list of task runs.
|
|
1063
1058
|
* @param listRuns.order - Sort order of the response, ascending or descending.
|
|
@@ -1065,7 +1060,7 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1065
1060
|
* @param listRuns.endDate - Date in RFC 3339 format for the latest run to retrieve. By default, the current day is used.
|
|
1066
1061
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1067
1062
|
*/
|
|
1068
|
-
listRuns({ itemsPerPage, page, status, taskID, sort, order, startDate, endDate
|
|
1063
|
+
listRuns({ itemsPerPage, page, status, type, taskID, sort, order, startDate, endDate } = {}, requestOptions = undefined) {
|
|
1069
1064
|
const requestPath = '/1/runs';
|
|
1070
1065
|
const headers = {};
|
|
1071
1066
|
const queryParameters = {};
|
|
@@ -1078,6 +1073,9 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1078
1073
|
if (status !== undefined) {
|
|
1079
1074
|
queryParameters.status = status.toString();
|
|
1080
1075
|
}
|
|
1076
|
+
if (type !== undefined) {
|
|
1077
|
+
queryParameters.type = type.toString();
|
|
1078
|
+
}
|
|
1081
1079
|
if (taskID !== undefined) {
|
|
1082
1080
|
queryParameters.taskID = taskID.toString();
|
|
1083
1081
|
}
|
|
@@ -1118,7 +1116,7 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1118
1116
|
* @param listSources.order - Sort order of the response, ascending or descending.
|
|
1119
1117
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1120
1118
|
*/
|
|
1121
|
-
listSources({ itemsPerPage, page, type, authenticationID, sort, order
|
|
1119
|
+
listSources({ itemsPerPage, page, type, authenticationID, sort, order } = {}, requestOptions = undefined) {
|
|
1122
1120
|
const requestPath = '/1/sources';
|
|
1123
1121
|
const headers = {};
|
|
1124
1122
|
const queryParameters = {};
|
|
@@ -1168,7 +1166,7 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1168
1166
|
* @param listTasks.order - Sort order of the response, ascending or descending.
|
|
1169
1167
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1170
1168
|
*/
|
|
1171
|
-
listTasks({ itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, sort, order
|
|
1169
|
+
listTasks({ itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, sort, order } = {}, requestOptions = undefined) {
|
|
1172
1170
|
const requestPath = '/2/tasks';
|
|
1173
1171
|
const headers = {};
|
|
1174
1172
|
const queryParameters = {};
|
|
@@ -1227,7 +1225,7 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1227
1225
|
* @param listTasksV1.order - Sort order of the response, ascending or descending.
|
|
1228
1226
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1229
1227
|
*/
|
|
1230
|
-
listTasksV1({ itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, sort, order
|
|
1228
|
+
listTasksV1({ itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, sort, order } = {}, requestOptions = undefined) {
|
|
1231
1229
|
const requestPath = '/1/tasks';
|
|
1232
1230
|
const headers = {};
|
|
1233
1231
|
const queryParameters = {};
|
|
@@ -1698,7 +1696,7 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1698
1696
|
* @param tryTransformationBeforeUpdate.transformationTry - The transformationTry object.
|
|
1699
1697
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1700
1698
|
*/
|
|
1701
|
-
tryTransformationBeforeUpdate({ transformationID, transformationTry
|
|
1699
|
+
tryTransformationBeforeUpdate({ transformationID, transformationTry }, requestOptions) {
|
|
1702
1700
|
if (!transformationID) {
|
|
1703
1701
|
throw new Error('Parameter `transformationID` is required when calling `tryTransformationBeforeUpdate`.');
|
|
1704
1702
|
}
|
|
@@ -1974,8 +1972,7 @@ function ingestionClient(appId, apiKey, region, options) {
|
|
|
1974
1972
|
if (!apiKey || typeof apiKey !== 'string') {
|
|
1975
1973
|
throw new Error('`apiKey` is missing.');
|
|
1976
1974
|
}
|
|
1977
|
-
if (!region ||
|
|
1978
|
-
(region && (typeof region !== 'string' || !REGIONS.includes(region)))) {
|
|
1975
|
+
if (!region || (region && (typeof region !== 'string' || !REGIONS.includes(region)))) {
|
|
1979
1976
|
throw new Error(`\`region\` is required and must be one of the following: ${REGIONS.join(', ')}`);
|
|
1980
1977
|
}
|
|
1981
1978
|
return {
|