@algolia/ingestion 1.0.0-beta.3 → 1.0.0-beta.5
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/builds/browser.d.ts +41 -33
- package/dist/builds/browser.d.ts.map +1 -1
- package/dist/builds/node.d.ts +41 -33
- package/dist/builds/node.d.ts.map +1 -1
- package/dist/ingestion.cjs +271 -32
- package/dist/ingestion.esm.browser.js +272 -34
- package/dist/ingestion.esm.node.js +271 -32
- package/dist/ingestion.umd.js +2 -2
- package/dist/model/authentication.d.ts +2 -2
- package/dist/model/authenticationCreateResponse.d.ts +1 -1
- package/dist/model/authenticationUpdateResponse.d.ts +1 -1
- package/dist/model/clientMethodProps.d.ts +57 -13
- package/dist/model/clientMethodProps.d.ts.map +1 -1
- package/dist/model/deleteResponse.d.ts +1 -1
- package/dist/model/destination.d.ts +2 -2
- package/dist/model/destinationCreateResponse.d.ts +1 -1
- package/dist/model/destinationUpdateResponse.d.ts +1 -1
- package/dist/model/event.d.ts +1 -1
- package/dist/model/index.d.ts +11 -2
- package/dist/model/index.d.ts.map +1 -1
- package/dist/model/listTransformationsResponse.d.ts +10 -0
- package/dist/model/listTransformationsResponse.d.ts.map +1 -0
- package/dist/model/onDemandDateUtilsInput.d.ts +2 -2
- package/dist/model/onDemandTrigger.d.ts +1 -1
- package/dist/model/run.d.ts +3 -3
- package/dist/model/runResponse.d.ts +1 -1
- package/dist/model/scheduleTrigger.d.ts +2 -2
- package/dist/model/sortKeys.d.ts +5 -0
- package/dist/model/sortKeys.d.ts.map +1 -0
- package/dist/model/source.d.ts +2 -2
- package/dist/model/sourceCreateResponse.d.ts +1 -1
- package/dist/model/sourceUpdateResponse.d.ts +1 -1
- package/dist/model/sourceWatchResponse.d.ts +20 -0
- package/dist/model/sourceWatchResponse.d.ts.map +1 -0
- package/dist/model/task.d.ts +6 -2
- package/dist/model/task.d.ts.map +1 -1
- package/dist/model/taskCreate.d.ts +4 -0
- package/dist/model/taskCreate.d.ts.map +1 -1
- package/dist/model/taskCreateResponse.d.ts +1 -1
- package/dist/model/taskUpdateResponse.d.ts +1 -1
- package/dist/model/transformation.d.ts +27 -0
- package/dist/model/transformation.d.ts.map +1 -0
- package/dist/model/transformationCreate.d.ts +18 -0
- package/dist/model/transformationCreate.d.ts.map +1 -0
- package/dist/model/transformationCreateResponse.d.ts +14 -0
- package/dist/model/transformationCreateResponse.d.ts.map +1 -0
- package/dist/model/transformationSearch.d.ts +4 -0
- package/dist/model/transformationSearch.d.ts.map +1 -0
- package/dist/model/transformationTry.d.ts +11 -0
- package/dist/model/transformationTry.d.ts.map +1 -0
- package/dist/model/transformationTryResponse.d.ts +9 -0
- package/dist/model/transformationTryResponse.d.ts.map +1 -0
- package/dist/model/transformationTryResponseError.d.ts +14 -0
- package/dist/model/transformationTryResponseError.d.ts.map +1 -0
- package/dist/model/transformationUpdateResponse.d.ts +14 -0
- package/dist/model/transformationUpdateResponse.d.ts.map +1 -0
- package/dist/model/window.d.ts +2 -2
- package/dist/src/ingestionClient.d.ts +117 -22
- package/dist/src/ingestionClient.d.ts.map +1 -1
- package/model/authentication.ts +2 -2
- package/model/authenticationCreateResponse.ts +1 -1
- package/model/authenticationUpdateResponse.ts +1 -1
- package/model/clientMethodProps.ts +62 -14
- package/model/deleteResponse.ts +1 -1
- package/model/destination.ts +2 -2
- package/model/destinationCreateResponse.ts +1 -1
- package/model/destinationUpdateResponse.ts +1 -1
- package/model/event.ts +1 -1
- package/model/index.ts +11 -2
- package/model/listTransformationsResponse.ts +13 -0
- package/model/onDemandDateUtilsInput.ts +2 -2
- package/model/onDemandTrigger.ts +1 -1
- package/model/run.ts +3 -3
- package/model/runResponse.ts +1 -1
- package/model/scheduleTrigger.ts +2 -2
- package/model/sortKeys.ts +6 -0
- package/model/source.ts +2 -2
- package/model/sourceCreateResponse.ts +1 -1
- package/model/sourceUpdateResponse.ts +1 -1
- package/model/sourceWatchResponse.ts +25 -0
- package/model/task.ts +7 -2
- package/model/taskCreate.ts +5 -0
- package/model/taskCreateResponse.ts +1 -1
- package/model/taskUpdateResponse.ts +1 -1
- package/model/transformation.ts +33 -0
- package/model/transformationCreate.ts +21 -0
- package/model/transformationCreateResponse.ts +16 -0
- package/model/{dockerSourceStreams.ts → transformationSearch.ts} +2 -2
- package/model/{dockerSourceDiscover.ts → transformationTry.ts} +5 -5
- package/model/transformationTryResponse.ts +12 -0
- package/model/transformationTryResponseError.ts +16 -0
- package/model/transformationUpdateResponse.ts +16 -0
- package/model/window.ts +2 -2
- package/package.json +10 -7
- package/dist/model/dockerSourceDiscover.d.ts +0 -11
- package/dist/model/dockerSourceDiscover.d.ts.map +0 -1
- package/dist/model/dockerSourceStreams.d.ts +0 -4
- package/dist/model/dockerSourceStreams.d.ts.map +0 -1
package/dist/builds/browser.d.ts
CHANGED
|
@@ -11,43 +11,51 @@ export declare function ingestionClient(appId: string, apiKey: string, region: R
|
|
|
11
11
|
appId: string;
|
|
12
12
|
clearCache(): Promise<void>;
|
|
13
13
|
readonly _ua: string;
|
|
14
|
-
addAlgoliaAgent(segment: string, version?: string
|
|
15
|
-
createAuthentication(authenticationCreate: import("../model").AuthenticationCreate, requestOptions?: import("@algolia/client-common").RequestOptions
|
|
16
|
-
createDestination(destinationCreate: import("../model").DestinationCreate, requestOptions?: import("@algolia/client-common").RequestOptions
|
|
17
|
-
createSource(sourceCreate: import("../model").SourceCreate, requestOptions?: import("@algolia/client-common").RequestOptions
|
|
18
|
-
createTask(taskCreate: import("../model").TaskCreate, requestOptions?: import("@algolia/client-common").RequestOptions
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
14
|
+
addAlgoliaAgent(segment: string, version?: string): void;
|
|
15
|
+
createAuthentication(authenticationCreate: import("../model").AuthenticationCreate, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").AuthenticationCreateResponse>;
|
|
16
|
+
createDestination(destinationCreate: import("../model").DestinationCreate, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").DestinationCreateResponse>;
|
|
17
|
+
createSource(sourceCreate: import("../model").SourceCreate, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").SourceCreateResponse>;
|
|
18
|
+
createTask(taskCreate: import("../model").TaskCreate, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").TaskCreateResponse>;
|
|
19
|
+
createTransformation(transformationCreate: import("../model").TransformationCreate, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").TransformationCreateResponse>;
|
|
20
|
+
customDelete({ path, parameters }: import("../model").CustomDeleteProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<Record<string, any>>;
|
|
21
|
+
customGet({ path, parameters }: import("../model").CustomGetProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<Record<string, any>>;
|
|
22
|
+
customPost({ path, parameters, body }: import("../model").CustomPostProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<Record<string, any>>;
|
|
23
|
+
customPut({ path, parameters, body }: import("../model").CustomPutProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<Record<string, any>>;
|
|
24
|
+
deleteAuthentication({ authenticationID }: import("../model").DeleteAuthenticationProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").DeleteResponse>;
|
|
25
|
+
deleteDestination({ destinationID }: import("../model").DeleteDestinationProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").DeleteResponse>;
|
|
26
|
+
deleteSource({ sourceID }: import("../model").DeleteSourceProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").DeleteResponse>;
|
|
27
|
+
deleteTask({ taskID }: import("../model").DeleteTaskProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").DeleteResponse>;
|
|
28
|
+
deleteTransformation({ transformationID }: import("../model").DeleteTransformationProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").DeleteResponse>;
|
|
29
|
+
disableTask({ taskID }: import("../model").DisableTaskProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").TaskUpdateResponse>;
|
|
30
|
+
enableTask({ taskID }: import("../model").EnableTaskProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").TaskUpdateResponse>;
|
|
31
|
+
getAuthentication({ authenticationID }: import("../model").GetAuthenticationProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").Authentication>;
|
|
30
32
|
getAuthentications({ itemsPerPage, page, type, platform, sort, order, }?: import("../model").GetAuthenticationsProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").ListAuthenticationsResponse>;
|
|
31
|
-
getDestination({ destinationID }: import("../model").GetDestinationProps, requestOptions?: import("@algolia/client-common").RequestOptions
|
|
33
|
+
getDestination({ destinationID }: import("../model").GetDestinationProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").Destination>;
|
|
32
34
|
getDestinations({ itemsPerPage, page, type, authenticationID, sort, order, }?: import("../model").GetDestinationsProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").ListDestinationsResponse>;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
getRun({ runID }: import("../model").GetRunProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").Run>;
|
|
35
|
+
getEvent({ runID, eventID }: import("../model").GetEventProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").Event>;
|
|
36
|
+
getEvents({ runID, itemsPerPage, page, status, type, sort, order, startDate, endDate, }: import("../model").GetEventsProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").ListEventsResponse>;
|
|
37
|
+
getRun({ runID }: import("../model").GetRunProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").Run>;
|
|
37
38
|
getRuns({ itemsPerPage, page, status, taskID, sort, order, startDate, endDate, }?: import("../model").GetRunsProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").RunListResponse>;
|
|
38
|
-
getSource({ sourceID }: import("../model").GetSourceProps, requestOptions?: import("@algolia/client-common").RequestOptions
|
|
39
|
+
getSource({ sourceID }: import("../model").GetSourceProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").Source>;
|
|
39
40
|
getSources({ itemsPerPage, page, type, authenticationID, sort, order, }?: import("../model").GetSourcesProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").ListSourcesResponse>;
|
|
40
|
-
getTask({ taskID }: import("../model").GetTaskProps, requestOptions?: import("@algolia/client-common").RequestOptions
|
|
41
|
+
getTask({ taskID }: import("../model").GetTaskProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").Task>;
|
|
41
42
|
getTasks({ itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, sort, order, }?: import("../model").GetTasksProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").ListTasksResponse>;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
43
|
+
getTransformation({ transformationID }: import("../model").GetTransformationProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").Transformation>;
|
|
44
|
+
getTransformations({ sort, order }?: import("../model").GetTransformationsProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").ListTransformationsResponse>;
|
|
45
|
+
runTask({ taskID }: import("../model").RunTaskProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").RunResponse>;
|
|
46
|
+
searchAuthentications(authenticationSearch: import("../model").AuthenticationSearch, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").Authentication[]>;
|
|
47
|
+
searchDestinations(destinationSearch: import("../model").DestinationSearch, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").Destination[]>;
|
|
48
|
+
searchSources(sourceSearch: import("../model").SourceSearch, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").Source[]>;
|
|
49
|
+
searchTasks(taskSearch: import("../model").TaskSearch, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").Task[]>;
|
|
50
|
+
searchTransformations(transformationSearch: import("../model").TransformationSearch, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").Transformation[]>;
|
|
51
|
+
triggerDockerSourceDiscover({ sourceID }: import("../model").TriggerDockerSourceDiscoverProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").SourceWatchResponse>;
|
|
52
|
+
tryTransformations(transformationTry: import("../model").TransformationTry, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").TransformationTryResponse>;
|
|
53
|
+
updateAuthentication({ authenticationID, authenticationUpdate }: import("../model").UpdateAuthenticationProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").AuthenticationUpdateResponse>;
|
|
54
|
+
updateDestination({ destinationID, destinationUpdate }: import("../model").UpdateDestinationProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").DestinationUpdateResponse>;
|
|
55
|
+
updateSource({ sourceID, sourceUpdate }: import("../model").UpdateSourceProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").SourceUpdateResponse>;
|
|
56
|
+
updateTask({ taskID, taskUpdate }: import("../model").UpdateTaskProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").TaskUpdateResponse>;
|
|
57
|
+
updateTransformation({ transformationID, transformationCreate }: import("../model").UpdateTransformationProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").TransformationUpdateResponse>;
|
|
58
|
+
validateSource(sourceCreate: import("../model").SourceCreate, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").SourceWatchResponse>;
|
|
59
|
+
validateSourceBeforeUpdate({ sourceID, sourceUpdate }: import("../model").ValidateSourceBeforeUpdateProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").SourceWatchResponse>;
|
|
52
60
|
};
|
|
53
61
|
//# sourceMappingURL=browser.d.ts.map
|
|
@@ -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;AAOrD,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,CAC7B,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,aAAa
|
|
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;AAOrD,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,CAC7B,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyCxB"}
|
package/dist/builds/node.d.ts
CHANGED
|
@@ -11,43 +11,51 @@ export declare function ingestionClient(appId: string, apiKey: string, region: R
|
|
|
11
11
|
appId: string;
|
|
12
12
|
clearCache(): Promise<void>;
|
|
13
13
|
_ua: string;
|
|
14
|
-
addAlgoliaAgent(segment: string, version?: string
|
|
15
|
-
createAuthentication(authenticationCreate: import("../model").AuthenticationCreate, requestOptions?: import("@algolia/client-common").RequestOptions
|
|
16
|
-
createDestination(destinationCreate: import("../model").DestinationCreate, requestOptions?: import("@algolia/client-common").RequestOptions
|
|
17
|
-
createSource(sourceCreate: import("../model").SourceCreate, requestOptions?: import("@algolia/client-common").RequestOptions
|
|
18
|
-
createTask(taskCreate: import("../model").TaskCreate, requestOptions?: import("@algolia/client-common").RequestOptions
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
14
|
+
addAlgoliaAgent(segment: string, version?: string): void;
|
|
15
|
+
createAuthentication(authenticationCreate: import("../model").AuthenticationCreate, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").AuthenticationCreateResponse>;
|
|
16
|
+
createDestination(destinationCreate: import("../model").DestinationCreate, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").DestinationCreateResponse>;
|
|
17
|
+
createSource(sourceCreate: import("../model").SourceCreate, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").SourceCreateResponse>;
|
|
18
|
+
createTask(taskCreate: import("../model").TaskCreate, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").TaskCreateResponse>;
|
|
19
|
+
createTransformation(transformationCreate: import("../model").TransformationCreate, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").TransformationCreateResponse>;
|
|
20
|
+
customDelete({ path, parameters }: import("../model").CustomDeleteProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<Record<string, any>>;
|
|
21
|
+
customGet({ path, parameters }: import("../model").CustomGetProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<Record<string, any>>;
|
|
22
|
+
customPost({ path, parameters, body }: import("../model").CustomPostProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<Record<string, any>>;
|
|
23
|
+
customPut({ path, parameters, body }: import("../model").CustomPutProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<Record<string, any>>;
|
|
24
|
+
deleteAuthentication({ authenticationID }: import("../model").DeleteAuthenticationProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").DeleteResponse>;
|
|
25
|
+
deleteDestination({ destinationID }: import("../model").DeleteDestinationProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").DeleteResponse>;
|
|
26
|
+
deleteSource({ sourceID }: import("../model").DeleteSourceProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").DeleteResponse>;
|
|
27
|
+
deleteTask({ taskID }: import("../model").DeleteTaskProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").DeleteResponse>;
|
|
28
|
+
deleteTransformation({ transformationID }: import("../model").DeleteTransformationProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").DeleteResponse>;
|
|
29
|
+
disableTask({ taskID }: import("../model").DisableTaskProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").TaskUpdateResponse>;
|
|
30
|
+
enableTask({ taskID }: import("../model").EnableTaskProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").TaskUpdateResponse>;
|
|
31
|
+
getAuthentication({ authenticationID }: import("../model").GetAuthenticationProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").Authentication>;
|
|
30
32
|
getAuthentications({ itemsPerPage, page, type, platform, sort, order, }?: import("../model").GetAuthenticationsProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").ListAuthenticationsResponse>;
|
|
31
|
-
getDestination({ destinationID }: import("../model").GetDestinationProps, requestOptions?: import("@algolia/client-common").RequestOptions
|
|
33
|
+
getDestination({ destinationID }: import("../model").GetDestinationProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").Destination>;
|
|
32
34
|
getDestinations({ itemsPerPage, page, type, authenticationID, sort, order, }?: import("../model").GetDestinationsProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").ListDestinationsResponse>;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
getRun({ runID }: import("../model").GetRunProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").Run>;
|
|
35
|
+
getEvent({ runID, eventID }: import("../model").GetEventProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").Event>;
|
|
36
|
+
getEvents({ runID, itemsPerPage, page, status, type, sort, order, startDate, endDate, }: import("../model").GetEventsProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").ListEventsResponse>;
|
|
37
|
+
getRun({ runID }: import("../model").GetRunProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").Run>;
|
|
37
38
|
getRuns({ itemsPerPage, page, status, taskID, sort, order, startDate, endDate, }?: import("../model").GetRunsProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").RunListResponse>;
|
|
38
|
-
getSource({ sourceID }: import("../model").GetSourceProps, requestOptions?: import("@algolia/client-common").RequestOptions
|
|
39
|
+
getSource({ sourceID }: import("../model").GetSourceProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").Source>;
|
|
39
40
|
getSources({ itemsPerPage, page, type, authenticationID, sort, order, }?: import("../model").GetSourcesProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").ListSourcesResponse>;
|
|
40
|
-
getTask({ taskID }: import("../model").GetTaskProps, requestOptions?: import("@algolia/client-common").RequestOptions
|
|
41
|
+
getTask({ taskID }: import("../model").GetTaskProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").Task>;
|
|
41
42
|
getTasks({ itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, sort, order, }?: import("../model").GetTasksProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").ListTasksResponse>;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
43
|
+
getTransformation({ transformationID }: import("../model").GetTransformationProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").Transformation>;
|
|
44
|
+
getTransformations({ sort, order }?: import("../model").GetTransformationsProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").ListTransformationsResponse>;
|
|
45
|
+
runTask({ taskID }: import("../model").RunTaskProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").RunResponse>;
|
|
46
|
+
searchAuthentications(authenticationSearch: import("../model").AuthenticationSearch, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").Authentication[]>;
|
|
47
|
+
searchDestinations(destinationSearch: import("../model").DestinationSearch, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").Destination[]>;
|
|
48
|
+
searchSources(sourceSearch: import("../model").SourceSearch, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").Source[]>;
|
|
49
|
+
searchTasks(taskSearch: import("../model").TaskSearch, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").Task[]>;
|
|
50
|
+
searchTransformations(transformationSearch: import("../model").TransformationSearch, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").Transformation[]>;
|
|
51
|
+
triggerDockerSourceDiscover({ sourceID }: import("../model").TriggerDockerSourceDiscoverProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").SourceWatchResponse>;
|
|
52
|
+
tryTransformations(transformationTry: import("../model").TransformationTry, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").TransformationTryResponse>;
|
|
53
|
+
updateAuthentication({ authenticationID, authenticationUpdate }: import("../model").UpdateAuthenticationProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").AuthenticationUpdateResponse>;
|
|
54
|
+
updateDestination({ destinationID, destinationUpdate }: import("../model").UpdateDestinationProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").DestinationUpdateResponse>;
|
|
55
|
+
updateSource({ sourceID, sourceUpdate }: import("../model").UpdateSourceProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").SourceUpdateResponse>;
|
|
56
|
+
updateTask({ taskID, taskUpdate }: import("../model").UpdateTaskProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").TaskUpdateResponse>;
|
|
57
|
+
updateTransformation({ transformationID, transformationCreate }: import("../model").UpdateTransformationProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").TransformationUpdateResponse>;
|
|
58
|
+
validateSource(sourceCreate: import("../model").SourceCreate, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").SourceWatchResponse>;
|
|
59
|
+
validateSourceBeforeUpdate({ sourceID, sourceUpdate }: import("../model").ValidateSourceBeforeUpdateProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").SourceWatchResponse>;
|
|
52
60
|
};
|
|
53
61
|
//# sourceMappingURL=node.d.ts.map
|
|
@@ -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,CAC7B,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,aAAa
|
|
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,CAC7B,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqCxB"}
|
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.0.0-beta.
|
|
7
|
+
const apiClientVersion = '1.0.0-beta.5';
|
|
8
8
|
const REGIONS = ['eu', 'us'];
|
|
9
9
|
function getDefaultHosts(region) {
|
|
10
10
|
const url = 'data.{region}.algolia.com'.replace('{region}', region);
|
|
@@ -230,6 +230,37 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
230
230
|
};
|
|
231
231
|
return transporter.request(request, requestOptions);
|
|
232
232
|
},
|
|
233
|
+
/**
|
|
234
|
+
* Creates a new transformation.
|
|
235
|
+
*
|
|
236
|
+
* @param transformationCreate - Request body for creating a transformation.
|
|
237
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
238
|
+
*/
|
|
239
|
+
createTransformation(transformationCreate, requestOptions) {
|
|
240
|
+
if (!transformationCreate) {
|
|
241
|
+
throw new Error('Parameter `transformationCreate` is required when calling `createTransformation`.');
|
|
242
|
+
}
|
|
243
|
+
if (!transformationCreate.code) {
|
|
244
|
+
throw new Error('Parameter `transformationCreate.code` is required when calling `createTransformation`.');
|
|
245
|
+
}
|
|
246
|
+
if (!transformationCreate.name) {
|
|
247
|
+
throw new Error('Parameter `transformationCreate.name` is required when calling `createTransformation`.');
|
|
248
|
+
}
|
|
249
|
+
if (!transformationCreate.description) {
|
|
250
|
+
throw new Error('Parameter `transformationCreate.description` is required when calling `createTransformation`.');
|
|
251
|
+
}
|
|
252
|
+
const requestPath = '/1/transformations';
|
|
253
|
+
const headers = {};
|
|
254
|
+
const queryParameters = {};
|
|
255
|
+
const request = {
|
|
256
|
+
method: 'POST',
|
|
257
|
+
path: requestPath,
|
|
258
|
+
queryParameters,
|
|
259
|
+
headers,
|
|
260
|
+
data: transformationCreate,
|
|
261
|
+
};
|
|
262
|
+
return transporter.request(request, requestOptions);
|
|
263
|
+
},
|
|
233
264
|
/**
|
|
234
265
|
* This method allow you to send requests to the Algolia REST API.
|
|
235
266
|
*
|
|
@@ -429,6 +460,28 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
429
460
|
};
|
|
430
461
|
return transporter.request(request, requestOptions);
|
|
431
462
|
},
|
|
463
|
+
/**
|
|
464
|
+
* Deletes a transformation by its ID.
|
|
465
|
+
*
|
|
466
|
+
* @param deleteTransformation - The deleteTransformation object.
|
|
467
|
+
* @param deleteTransformation.transformationID - Unique identifier of a transformation.
|
|
468
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
469
|
+
*/
|
|
470
|
+
deleteTransformation({ transformationID }, requestOptions) {
|
|
471
|
+
if (!transformationID) {
|
|
472
|
+
throw new Error('Parameter `transformationID` is required when calling `deleteTransformation`.');
|
|
473
|
+
}
|
|
474
|
+
const requestPath = '/1/transformations/{transformationID}'.replace('{transformationID}', encodeURIComponent(transformationID));
|
|
475
|
+
const headers = {};
|
|
476
|
+
const queryParameters = {};
|
|
477
|
+
const request = {
|
|
478
|
+
method: 'DELETE',
|
|
479
|
+
path: requestPath,
|
|
480
|
+
queryParameters,
|
|
481
|
+
headers,
|
|
482
|
+
};
|
|
483
|
+
return transporter.request(request, requestOptions);
|
|
484
|
+
},
|
|
432
485
|
/**
|
|
433
486
|
* Disables a task.
|
|
434
487
|
*
|
|
@@ -631,33 +684,6 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
631
684
|
};
|
|
632
685
|
return transporter.request(request, requestOptions);
|
|
633
686
|
},
|
|
634
|
-
/**
|
|
635
|
-
* Retrieves a stream listing for a source. Listing streams only works with sources with `type: docker` and `imageType: singer`.
|
|
636
|
-
*
|
|
637
|
-
* Required API Key ACLs:
|
|
638
|
-
* - addObject
|
|
639
|
-
* - deleteIndex
|
|
640
|
-
* - editSettings.
|
|
641
|
-
*
|
|
642
|
-
* @param getDockerSourceStreams - The getDockerSourceStreams object.
|
|
643
|
-
* @param getDockerSourceStreams.sourceID - Unique identifier of a source.
|
|
644
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
645
|
-
*/
|
|
646
|
-
getDockerSourceStreams({ sourceID }, requestOptions) {
|
|
647
|
-
if (!sourceID) {
|
|
648
|
-
throw new Error('Parameter `sourceID` is required when calling `getDockerSourceStreams`.');
|
|
649
|
-
}
|
|
650
|
-
const requestPath = '/1/sources/{sourceID}/discover'.replace('{sourceID}', encodeURIComponent(sourceID));
|
|
651
|
-
const headers = {};
|
|
652
|
-
const queryParameters = {};
|
|
653
|
-
const request = {
|
|
654
|
-
method: 'GET',
|
|
655
|
-
path: requestPath,
|
|
656
|
-
queryParameters,
|
|
657
|
-
headers,
|
|
658
|
-
};
|
|
659
|
-
return transporter.request(request, requestOptions);
|
|
660
|
-
},
|
|
661
687
|
/**
|
|
662
688
|
* Retrieves a single task run event by its ID.
|
|
663
689
|
*
|
|
@@ -707,8 +733,8 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
707
733
|
* @param getEvents.type - Event type for filtering the list of task runs.
|
|
708
734
|
* @param getEvents.sort - Property by which to sort the list of task run events.
|
|
709
735
|
* @param getEvents.order - Sort order of the response, ascending or descending.
|
|
710
|
-
* @param getEvents.startDate - Date and time in
|
|
711
|
-
* @param getEvents.endDate - Date and time in
|
|
736
|
+
* @param getEvents.startDate - Date and time in RFC 3339 format for the earliest events to retrieve. By default, the current time minus three hours is used.
|
|
737
|
+
* @param getEvents.endDate - Date and time in RFC 3339 format for the latest events to retrieve. By default, the current time is used.
|
|
712
738
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
713
739
|
*/
|
|
714
740
|
getEvents({ runID, itemsPerPage, page, status, type, sort, order, startDate, endDate, }, requestOptions) {
|
|
@@ -792,8 +818,8 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
792
818
|
* @param getRuns.taskID - Task ID for filtering the list of task runs.
|
|
793
819
|
* @param getRuns.sort - Property by which to sort the list of task runs.
|
|
794
820
|
* @param getRuns.order - Sort order of the response, ascending or descending.
|
|
795
|
-
* @param getRuns.startDate - Date in
|
|
796
|
-
* @param getRuns.endDate - Date in
|
|
821
|
+
* @param getRuns.startDate - Date in RFC 3339 format for the earliest run to retrieve. By default, the current day minus seven days is used.
|
|
822
|
+
* @param getRuns.endDate - Date in RFC 3339 format for the latest run to retrieve. By default, the current day is used.
|
|
797
823
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
798
824
|
*/
|
|
799
825
|
getRuns({ itemsPerPage, page, status, taskID, sort, order, startDate, endDate, } = {}, requestOptions = undefined) {
|
|
@@ -992,6 +1018,64 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
992
1018
|
};
|
|
993
1019
|
return transporter.request(request, requestOptions);
|
|
994
1020
|
},
|
|
1021
|
+
/**
|
|
1022
|
+
* Retrieves a transformation by its ID.
|
|
1023
|
+
*
|
|
1024
|
+
* Required API Key ACLs:
|
|
1025
|
+
* - addObject
|
|
1026
|
+
* - deleteIndex
|
|
1027
|
+
* - editSettings.
|
|
1028
|
+
*
|
|
1029
|
+
* @param getTransformation - The getTransformation object.
|
|
1030
|
+
* @param getTransformation.transformationID - Unique identifier of a transformation.
|
|
1031
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1032
|
+
*/
|
|
1033
|
+
getTransformation({ transformationID }, requestOptions) {
|
|
1034
|
+
if (!transformationID) {
|
|
1035
|
+
throw new Error('Parameter `transformationID` is required when calling `getTransformation`.');
|
|
1036
|
+
}
|
|
1037
|
+
const requestPath = '/1/transformations/{transformationID}'.replace('{transformationID}', encodeURIComponent(transformationID));
|
|
1038
|
+
const headers = {};
|
|
1039
|
+
const queryParameters = {};
|
|
1040
|
+
const request = {
|
|
1041
|
+
method: 'GET',
|
|
1042
|
+
path: requestPath,
|
|
1043
|
+
queryParameters,
|
|
1044
|
+
headers,
|
|
1045
|
+
};
|
|
1046
|
+
return transporter.request(request, requestOptions);
|
|
1047
|
+
},
|
|
1048
|
+
/**
|
|
1049
|
+
* Retrieves a list of transformations.
|
|
1050
|
+
*
|
|
1051
|
+
* Required API Key ACLs:
|
|
1052
|
+
* - addObject
|
|
1053
|
+
* - deleteIndex
|
|
1054
|
+
* - editSettings.
|
|
1055
|
+
*
|
|
1056
|
+
* @param getTransformations - The getTransformations object.
|
|
1057
|
+
* @param getTransformations.sort - Property by which to sort the list.
|
|
1058
|
+
* @param getTransformations.order - Sort order of the response, ascending or descending.
|
|
1059
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1060
|
+
*/
|
|
1061
|
+
getTransformations({ sort, order } = {}, requestOptions = undefined) {
|
|
1062
|
+
const requestPath = '/1/transformations';
|
|
1063
|
+
const headers = {};
|
|
1064
|
+
const queryParameters = {};
|
|
1065
|
+
if (sort !== undefined) {
|
|
1066
|
+
queryParameters.sort = sort.toString();
|
|
1067
|
+
}
|
|
1068
|
+
if (order !== undefined) {
|
|
1069
|
+
queryParameters.order = order.toString();
|
|
1070
|
+
}
|
|
1071
|
+
const request = {
|
|
1072
|
+
method: 'GET',
|
|
1073
|
+
path: requestPath,
|
|
1074
|
+
queryParameters,
|
|
1075
|
+
headers,
|
|
1076
|
+
};
|
|
1077
|
+
return transporter.request(request, requestOptions);
|
|
1078
|
+
},
|
|
995
1079
|
/**
|
|
996
1080
|
* Runs a task. You can check the status of task runs with the observability endpoints.
|
|
997
1081
|
*
|
|
@@ -1139,6 +1223,36 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1139
1223
|
};
|
|
1140
1224
|
return transporter.request(request, requestOptions);
|
|
1141
1225
|
},
|
|
1226
|
+
/**
|
|
1227
|
+
* Searches for transformations.
|
|
1228
|
+
*
|
|
1229
|
+
* Required API Key ACLs:
|
|
1230
|
+
* - addObject
|
|
1231
|
+
* - deleteIndex
|
|
1232
|
+
* - editSettings.
|
|
1233
|
+
*
|
|
1234
|
+
* @param transformationSearch - The transformationSearch object.
|
|
1235
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1236
|
+
*/
|
|
1237
|
+
searchTransformations(transformationSearch, requestOptions) {
|
|
1238
|
+
if (!transformationSearch) {
|
|
1239
|
+
throw new Error('Parameter `transformationSearch` is required when calling `searchTransformations`.');
|
|
1240
|
+
}
|
|
1241
|
+
if (!transformationSearch.transformationsIDs) {
|
|
1242
|
+
throw new Error('Parameter `transformationSearch.transformationsIDs` is required when calling `searchTransformations`.');
|
|
1243
|
+
}
|
|
1244
|
+
const requestPath = '/1/transformations/search';
|
|
1245
|
+
const headers = {};
|
|
1246
|
+
const queryParameters = {};
|
|
1247
|
+
const request = {
|
|
1248
|
+
method: 'POST',
|
|
1249
|
+
path: requestPath,
|
|
1250
|
+
queryParameters,
|
|
1251
|
+
headers,
|
|
1252
|
+
data: transformationSearch,
|
|
1253
|
+
};
|
|
1254
|
+
return transporter.request(request, requestOptions);
|
|
1255
|
+
},
|
|
1142
1256
|
/**
|
|
1143
1257
|
* Triggers a stream-listing request for a source. Triggering stream-listing requests only works with sources with `type: docker` and `imageType: singer`.
|
|
1144
1258
|
*
|
|
@@ -1166,6 +1280,39 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1166
1280
|
};
|
|
1167
1281
|
return transporter.request(request, requestOptions);
|
|
1168
1282
|
},
|
|
1283
|
+
/**
|
|
1284
|
+
* Searches for transformations.
|
|
1285
|
+
*
|
|
1286
|
+
* Required API Key ACLs:
|
|
1287
|
+
* - addObject
|
|
1288
|
+
* - deleteIndex
|
|
1289
|
+
* - editSettings.
|
|
1290
|
+
*
|
|
1291
|
+
* @param transformationTry - The transformationTry object.
|
|
1292
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1293
|
+
*/
|
|
1294
|
+
tryTransformations(transformationTry, requestOptions) {
|
|
1295
|
+
if (!transformationTry) {
|
|
1296
|
+
throw new Error('Parameter `transformationTry` is required when calling `tryTransformations`.');
|
|
1297
|
+
}
|
|
1298
|
+
if (!transformationTry.code) {
|
|
1299
|
+
throw new Error('Parameter `transformationTry.code` is required when calling `tryTransformations`.');
|
|
1300
|
+
}
|
|
1301
|
+
if (!transformationTry.sampleRecord) {
|
|
1302
|
+
throw new Error('Parameter `transformationTry.sampleRecord` is required when calling `tryTransformations`.');
|
|
1303
|
+
}
|
|
1304
|
+
const requestPath = '/1/transformations/try';
|
|
1305
|
+
const headers = {};
|
|
1306
|
+
const queryParameters = {};
|
|
1307
|
+
const request = {
|
|
1308
|
+
method: 'POST',
|
|
1309
|
+
path: requestPath,
|
|
1310
|
+
queryParameters,
|
|
1311
|
+
headers,
|
|
1312
|
+
data: transformationTry,
|
|
1313
|
+
};
|
|
1314
|
+
return transporter.request(request, requestOptions);
|
|
1315
|
+
},
|
|
1169
1316
|
/**
|
|
1170
1317
|
* Updates an authentication resource.
|
|
1171
1318
|
*
|
|
@@ -1289,6 +1436,98 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1289
1436
|
};
|
|
1290
1437
|
return transporter.request(request, requestOptions);
|
|
1291
1438
|
},
|
|
1439
|
+
/**
|
|
1440
|
+
* Updates a transformation by its ID.
|
|
1441
|
+
*
|
|
1442
|
+
* @param updateTransformation - The updateTransformation object.
|
|
1443
|
+
* @param updateTransformation.transformationID - Unique identifier of a transformation.
|
|
1444
|
+
* @param updateTransformation.transformationCreate - The transformationCreate object.
|
|
1445
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1446
|
+
*/
|
|
1447
|
+
updateTransformation({ transformationID, transformationCreate }, requestOptions) {
|
|
1448
|
+
if (!transformationID) {
|
|
1449
|
+
throw new Error('Parameter `transformationID` is required when calling `updateTransformation`.');
|
|
1450
|
+
}
|
|
1451
|
+
if (!transformationCreate) {
|
|
1452
|
+
throw new Error('Parameter `transformationCreate` is required when calling `updateTransformation`.');
|
|
1453
|
+
}
|
|
1454
|
+
if (!transformationCreate.code) {
|
|
1455
|
+
throw new Error('Parameter `transformationCreate.code` is required when calling `updateTransformation`.');
|
|
1456
|
+
}
|
|
1457
|
+
if (!transformationCreate.name) {
|
|
1458
|
+
throw new Error('Parameter `transformationCreate.name` is required when calling `updateTransformation`.');
|
|
1459
|
+
}
|
|
1460
|
+
if (!transformationCreate.description) {
|
|
1461
|
+
throw new Error('Parameter `transformationCreate.description` is required when calling `updateTransformation`.');
|
|
1462
|
+
}
|
|
1463
|
+
const requestPath = '/1/transformations/{transformationID}'.replace('{transformationID}', encodeURIComponent(transformationID));
|
|
1464
|
+
const headers = {};
|
|
1465
|
+
const queryParameters = {};
|
|
1466
|
+
const request = {
|
|
1467
|
+
method: 'PUT',
|
|
1468
|
+
path: requestPath,
|
|
1469
|
+
queryParameters,
|
|
1470
|
+
headers,
|
|
1471
|
+
data: transformationCreate,
|
|
1472
|
+
};
|
|
1473
|
+
return transporter.request(request, requestOptions);
|
|
1474
|
+
},
|
|
1475
|
+
/**
|
|
1476
|
+
* Validates a source payload to ensure it can be created and that the data source can be reached by Algolia.
|
|
1477
|
+
*
|
|
1478
|
+
* Required API Key ACLs:
|
|
1479
|
+
* - addObject
|
|
1480
|
+
* - deleteIndex
|
|
1481
|
+
* - editSettings.
|
|
1482
|
+
*
|
|
1483
|
+
* @param sourceCreate -.
|
|
1484
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1485
|
+
*/
|
|
1486
|
+
validateSource(sourceCreate, requestOptions = undefined) {
|
|
1487
|
+
const requestPath = '/1/sources/validate';
|
|
1488
|
+
const headers = {};
|
|
1489
|
+
const queryParameters = {};
|
|
1490
|
+
const request = {
|
|
1491
|
+
method: 'POST',
|
|
1492
|
+
path: requestPath,
|
|
1493
|
+
queryParameters,
|
|
1494
|
+
headers,
|
|
1495
|
+
data: sourceCreate ? sourceCreate : {},
|
|
1496
|
+
};
|
|
1497
|
+
return transporter.request(request, requestOptions);
|
|
1498
|
+
},
|
|
1499
|
+
/**
|
|
1500
|
+
* Validates an update of a source payload to ensure it can be created and that the data source can be reached by Algolia.
|
|
1501
|
+
*
|
|
1502
|
+
* Required API Key ACLs:
|
|
1503
|
+
* - addObject
|
|
1504
|
+
* - deleteIndex
|
|
1505
|
+
* - editSettings.
|
|
1506
|
+
*
|
|
1507
|
+
* @param validateSourceBeforeUpdate - The validateSourceBeforeUpdate object.
|
|
1508
|
+
* @param validateSourceBeforeUpdate.sourceID - Unique identifier of a source.
|
|
1509
|
+
* @param validateSourceBeforeUpdate.sourceUpdate - The sourceUpdate object.
|
|
1510
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1511
|
+
*/
|
|
1512
|
+
validateSourceBeforeUpdate({ sourceID, sourceUpdate }, requestOptions) {
|
|
1513
|
+
if (!sourceID) {
|
|
1514
|
+
throw new Error('Parameter `sourceID` is required when calling `validateSourceBeforeUpdate`.');
|
|
1515
|
+
}
|
|
1516
|
+
if (!sourceUpdate) {
|
|
1517
|
+
throw new Error('Parameter `sourceUpdate` is required when calling `validateSourceBeforeUpdate`.');
|
|
1518
|
+
}
|
|
1519
|
+
const requestPath = '/1/sources/{sourceID}/validate'.replace('{sourceID}', encodeURIComponent(sourceID));
|
|
1520
|
+
const headers = {};
|
|
1521
|
+
const queryParameters = {};
|
|
1522
|
+
const request = {
|
|
1523
|
+
method: 'POST',
|
|
1524
|
+
path: requestPath,
|
|
1525
|
+
queryParameters,
|
|
1526
|
+
headers,
|
|
1527
|
+
data: sourceUpdate,
|
|
1528
|
+
};
|
|
1529
|
+
return transporter.request(request, requestOptions);
|
|
1530
|
+
},
|
|
1292
1531
|
};
|
|
1293
1532
|
}
|
|
1294
1533
|
|