@algolia/ingestion 1.0.0-beta.13 → 1.0.0-beta.15
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 +5 -2
- package/dist/builds/browser.d.ts.map +1 -1
- package/dist/builds/node.d.ts +5 -2
- package/dist/builds/node.d.ts.map +1 -1
- package/dist/ingestion.cjs +98 -9
- package/dist/ingestion.esm.browser.js +98 -9
- package/dist/ingestion.esm.node.js +98 -9
- package/dist/ingestion.umd.js +2 -2
- package/dist/model/clientMethodProps.d.ts +22 -0
- package/dist/model/clientMethodProps.d.ts.map +1 -1
- package/dist/model/destination.d.ts +1 -0
- package/dist/model/destination.d.ts.map +1 -1
- package/dist/model/destinationCreate.d.ts +1 -0
- package/dist/model/destinationCreate.d.ts.map +1 -1
- package/dist/model/destinationInput.d.ts +1 -2
- package/dist/model/destinationInput.d.ts.map +1 -1
- package/dist/model/destinationUpdate.d.ts +1 -0
- package/dist/model/destinationUpdate.d.ts.map +1 -1
- package/dist/model/dockerStreams.d.ts +13 -0
- package/dist/model/dockerStreams.d.ts.map +1 -0
- package/dist/model/dockerStreamsInput.d.ts +2 -1
- package/dist/model/dockerStreamsInput.d.ts.map +1 -1
- package/dist/model/dockerStreamsSyncMode.d.ts +5 -0
- package/dist/model/dockerStreamsSyncMode.d.ts.map +1 -0
- package/dist/model/entityType.d.ts +5 -0
- package/dist/model/entityType.d.ts.map +1 -0
- package/dist/model/generateTransformationCodePayload.d.ts +6 -0
- package/dist/model/generateTransformationCodePayload.d.ts.map +1 -0
- package/dist/model/generateTransformationCodeResponse.d.ts +4 -0
- package/dist/model/generateTransformationCodeResponse.d.ts.map +1 -0
- package/dist/model/index.d.ts +9 -1
- package/dist/model/index.d.ts.map +1 -1
- package/dist/model/model.d.ts +8 -0
- package/dist/model/model.d.ts.map +1 -0
- package/dist/model/runSourcePayload.d.ts +17 -0
- package/dist/model/runSourcePayload.d.ts.map +1 -0
- package/dist/model/runSourceResponse.d.ts +11 -0
- package/dist/model/runSourceResponse.d.ts.map +1 -0
- package/dist/model/transformationModels.d.ts +8 -0
- package/dist/model/transformationModels.d.ts.map +1 -0
- package/dist/model/transformationSearch.d.ts +1 -1
- package/dist/model/transformationSearch.d.ts.map +1 -1
- package/dist/src/ingestionClient.d.ts +47 -4
- package/dist/src/ingestionClient.d.ts.map +1 -1
- package/model/clientMethodProps.ts +23 -0
- package/model/destination.ts +2 -0
- package/model/destinationCreate.ts +2 -0
- package/model/destinationInput.ts +1 -2
- package/model/destinationUpdate.ts +2 -0
- package/model/dockerStreams.ts +17 -0
- package/model/dockerStreamsInput.ts +3 -1
- package/model/dockerStreamsSyncMode.ts +6 -0
- package/model/entityType.ts +6 -0
- package/model/{destinationIndexPrefix.ts → generateTransformationCodePayload.ts} +6 -5
- package/model/generateTransformationCodeResponse.ts +5 -0
- package/model/index.ts +9 -1
- package/model/model.ts +13 -0
- package/model/runSourcePayload.ts +22 -0
- package/model/runSourceResponse.ts +13 -0
- package/model/transformationModels.ts +10 -0
- package/model/transformationSearch.ts +1 -1
- package/package.json +6 -6
- package/dist/model/destinationIndexPrefix.d.ts +0 -7
- package/dist/model/destinationIndexPrefix.d.ts.map +0 -1
package/dist/builds/browser.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ export declare function ingestionClient(appId: string, apiKey: string, region: R
|
|
|
32
32
|
disableTaskV1({ taskID }: import("../model").DisableTaskV1Props, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").TaskUpdateResponse>;
|
|
33
33
|
enableTask({ taskID }: import("../model").EnableTaskProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").TaskUpdateResponse>;
|
|
34
34
|
enableTaskV1({ taskID }: import("../model").EnableTaskV1Props, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").TaskUpdateResponse>;
|
|
35
|
+
generateTransformationCode(generateTransformationCodePayload: import("../model").GenerateTransformationCodePayload, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").GenerateTransformationCodeResponse>;
|
|
35
36
|
getAuthentication({ authenticationID }: import("../model").GetAuthenticationProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").Authentication>;
|
|
36
37
|
getDestination({ destinationID }: import("../model").GetDestinationProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").Destination>;
|
|
37
38
|
getEvent({ runID, eventID }: import("../model").GetEventProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").Event>;
|
|
@@ -47,8 +48,10 @@ export declare function ingestionClient(appId: string, apiKey: string, region: R
|
|
|
47
48
|
listSources({ itemsPerPage, page, type, authenticationID, sort, order, }?: import("../model").ListSourcesProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").ListSourcesResponse>;
|
|
48
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>;
|
|
49
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>;
|
|
50
|
-
|
|
51
|
+
listTransformationModels(requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").TransformationModels>;
|
|
52
|
+
listTransformations({ itemsPerPage, page, sort, order }?: import("../model").ListTransformationsProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").ListTransformationsResponse>;
|
|
51
53
|
pushTask({ taskID, batchWriteParams }: import("../model").PushTaskProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").RunResponse>;
|
|
54
|
+
runSource({ sourceID, runSourcePayload }: import("../model").RunSourceProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").RunSourceResponse>;
|
|
52
55
|
runTask({ taskID }: import("../model").RunTaskProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").RunResponse>;
|
|
53
56
|
runTaskV1({ taskID }: import("../model").RunTaskV1Props, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").RunResponse>;
|
|
54
57
|
searchAuthentications(authenticationSearch: import("../model").AuthenticationSearch, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").Authentication[]>;
|
|
@@ -58,7 +61,7 @@ export declare function ingestionClient(appId: string, apiKey: string, region: R
|
|
|
58
61
|
searchTasksV1(taskSearch: import("../model").TaskSearch, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").TaskV1[]>;
|
|
59
62
|
searchTransformations(transformationSearch: import("../model").TransformationSearch, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").Transformation[]>;
|
|
60
63
|
triggerDockerSourceDiscover({ sourceID }: import("../model").TriggerDockerSourceDiscoverProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").SourceWatchResponse>;
|
|
61
|
-
|
|
64
|
+
tryTransformation(transformationTry: import("../model").TransformationTry, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").TransformationTryResponse>;
|
|
62
65
|
updateAuthentication({ authenticationID, authenticationUpdate }: import("../model").UpdateAuthenticationProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").AuthenticationUpdateResponse>;
|
|
63
66
|
updateDestination({ destinationID, destinationUpdate }: import("../model").UpdateDestinationProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").DestinationUpdateResponse>;
|
|
64
67
|
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;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
|
@@ -32,6 +32,7 @@ export declare function ingestionClient(appId: string, apiKey: string, region: R
|
|
|
32
32
|
disableTaskV1({ taskID }: import("../model").DisableTaskV1Props, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").TaskUpdateResponse>;
|
|
33
33
|
enableTask({ taskID }: import("../model").EnableTaskProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").TaskUpdateResponse>;
|
|
34
34
|
enableTaskV1({ taskID }: import("../model").EnableTaskV1Props, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").TaskUpdateResponse>;
|
|
35
|
+
generateTransformationCode(generateTransformationCodePayload: import("../model").GenerateTransformationCodePayload, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").GenerateTransformationCodeResponse>;
|
|
35
36
|
getAuthentication({ authenticationID }: import("../model").GetAuthenticationProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").Authentication>;
|
|
36
37
|
getDestination({ destinationID }: import("../model").GetDestinationProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").Destination>;
|
|
37
38
|
getEvent({ runID, eventID }: import("../model").GetEventProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").Event>;
|
|
@@ -47,8 +48,10 @@ export declare function ingestionClient(appId: string, apiKey: string, region: R
|
|
|
47
48
|
listSources({ itemsPerPage, page, type, authenticationID, sort, order, }?: import("../model").ListSourcesProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").ListSourcesResponse>;
|
|
48
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>;
|
|
49
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>;
|
|
50
|
-
|
|
51
|
+
listTransformationModels(requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").TransformationModels>;
|
|
52
|
+
listTransformations({ itemsPerPage, page, sort, order }?: import("../model").ListTransformationsProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").ListTransformationsResponse>;
|
|
51
53
|
pushTask({ taskID, batchWriteParams }: import("../model").PushTaskProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").RunResponse>;
|
|
54
|
+
runSource({ sourceID, runSourcePayload }: import("../model").RunSourceProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").RunSourceResponse>;
|
|
52
55
|
runTask({ taskID }: import("../model").RunTaskProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").RunResponse>;
|
|
53
56
|
runTaskV1({ taskID }: import("../model").RunTaskV1Props, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").RunResponse>;
|
|
54
57
|
searchAuthentications(authenticationSearch: import("../model").AuthenticationSearch, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").Authentication[]>;
|
|
@@ -58,7 +61,7 @@ export declare function ingestionClient(appId: string, apiKey: string, region: R
|
|
|
58
61
|
searchTasksV1(taskSearch: import("../model").TaskSearch, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").TaskV1[]>;
|
|
59
62
|
searchTransformations(transformationSearch: import("../model").TransformationSearch, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").Transformation[]>;
|
|
60
63
|
triggerDockerSourceDiscover({ sourceID }: import("../model").TriggerDockerSourceDiscoverProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").SourceWatchResponse>;
|
|
61
|
-
|
|
64
|
+
tryTransformation(transformationTry: import("../model").TransformationTry, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").TransformationTryResponse>;
|
|
62
65
|
updateAuthentication({ authenticationID, authenticationUpdate }: import("../model").UpdateAuthenticationProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").AuthenticationUpdateResponse>;
|
|
63
66
|
updateDestination({ destinationID, destinationUpdate }: import("../model").UpdateDestinationProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").DestinationUpdateResponse>;
|
|
64
67
|
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,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.15';
|
|
8
8
|
const REGIONS = ['eu', 'us'];
|
|
9
9
|
function getDefaultHosts(region) {
|
|
10
10
|
const url = 'data.{region}.algolia.com'.replace('{region}', region);
|
|
@@ -640,6 +640,39 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
640
640
|
};
|
|
641
641
|
return transporter.request(request, requestOptions);
|
|
642
642
|
},
|
|
643
|
+
/**
|
|
644
|
+
* Generates code for the selected model based on the given prompt.
|
|
645
|
+
*
|
|
646
|
+
* Required API Key ACLs:
|
|
647
|
+
* - addObject
|
|
648
|
+
* - deleteIndex
|
|
649
|
+
* - editSettings.
|
|
650
|
+
*
|
|
651
|
+
* @param generateTransformationCodePayload - The generateTransformationCodePayload object.
|
|
652
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
653
|
+
*/
|
|
654
|
+
generateTransformationCode(generateTransformationCodePayload, requestOptions) {
|
|
655
|
+
if (!generateTransformationCodePayload) {
|
|
656
|
+
throw new Error('Parameter `generateTransformationCodePayload` is required when calling `generateTransformationCode`.');
|
|
657
|
+
}
|
|
658
|
+
if (!generateTransformationCodePayload.id) {
|
|
659
|
+
throw new Error('Parameter `generateTransformationCodePayload.id` is required when calling `generateTransformationCode`.');
|
|
660
|
+
}
|
|
661
|
+
if (!generateTransformationCodePayload.userPrompt) {
|
|
662
|
+
throw new Error('Parameter `generateTransformationCodePayload.userPrompt` is required when calling `generateTransformationCode`.');
|
|
663
|
+
}
|
|
664
|
+
const requestPath = '/1/transformations/models';
|
|
665
|
+
const headers = {};
|
|
666
|
+
const queryParameters = {};
|
|
667
|
+
const request = {
|
|
668
|
+
method: 'POST',
|
|
669
|
+
path: requestPath,
|
|
670
|
+
queryParameters,
|
|
671
|
+
headers,
|
|
672
|
+
data: generateTransformationCodePayload,
|
|
673
|
+
};
|
|
674
|
+
return transporter.request(request, requestOptions);
|
|
675
|
+
},
|
|
643
676
|
/**
|
|
644
677
|
* Retrieves an authentication resource by its ID.
|
|
645
678
|
*
|
|
@@ -1235,6 +1268,28 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1235
1268
|
};
|
|
1236
1269
|
return transporter.request(request, requestOptions);
|
|
1237
1270
|
},
|
|
1271
|
+
/**
|
|
1272
|
+
* Retrieves a list of existing LLM transformation helpers.
|
|
1273
|
+
*
|
|
1274
|
+
* Required API Key ACLs:
|
|
1275
|
+
* - addObject
|
|
1276
|
+
* - deleteIndex
|
|
1277
|
+
* - editSettings.
|
|
1278
|
+
*
|
|
1279
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1280
|
+
*/
|
|
1281
|
+
listTransformationModels(requestOptions) {
|
|
1282
|
+
const requestPath = '/1/transformations/models';
|
|
1283
|
+
const headers = {};
|
|
1284
|
+
const queryParameters = {};
|
|
1285
|
+
const request = {
|
|
1286
|
+
method: 'GET',
|
|
1287
|
+
path: requestPath,
|
|
1288
|
+
queryParameters,
|
|
1289
|
+
headers,
|
|
1290
|
+
};
|
|
1291
|
+
return transporter.request(request, requestOptions);
|
|
1292
|
+
},
|
|
1238
1293
|
/**
|
|
1239
1294
|
* Retrieves a list of transformations.
|
|
1240
1295
|
*
|
|
@@ -1244,14 +1299,22 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1244
1299
|
* - editSettings.
|
|
1245
1300
|
*
|
|
1246
1301
|
* @param listTransformations - The listTransformations object.
|
|
1302
|
+
* @param listTransformations.itemsPerPage - Number of items per page.
|
|
1303
|
+
* @param listTransformations.page - Page number of the paginated API response.
|
|
1247
1304
|
* @param listTransformations.sort - Property by which to sort the list.
|
|
1248
1305
|
* @param listTransformations.order - Sort order of the response, ascending or descending.
|
|
1249
1306
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1250
1307
|
*/
|
|
1251
|
-
listTransformations({ sort, order } = {}, requestOptions = undefined) {
|
|
1308
|
+
listTransformations({ itemsPerPage, page, sort, order } = {}, requestOptions = undefined) {
|
|
1252
1309
|
const requestPath = '/1/transformations';
|
|
1253
1310
|
const headers = {};
|
|
1254
1311
|
const queryParameters = {};
|
|
1312
|
+
if (itemsPerPage !== undefined) {
|
|
1313
|
+
queryParameters.itemsPerPage = itemsPerPage.toString();
|
|
1314
|
+
}
|
|
1315
|
+
if (page !== undefined) {
|
|
1316
|
+
queryParameters.page = page.toString();
|
|
1317
|
+
}
|
|
1255
1318
|
if (sort !== undefined) {
|
|
1256
1319
|
queryParameters.sort = sort.toString();
|
|
1257
1320
|
}
|
|
@@ -1301,6 +1364,35 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1301
1364
|
};
|
|
1302
1365
|
return transporter.request(request, requestOptions);
|
|
1303
1366
|
},
|
|
1367
|
+
/**
|
|
1368
|
+
* Runs all tasks linked to a source, only available for Shopify sources. It will create 1 run per task.
|
|
1369
|
+
*
|
|
1370
|
+
* Required API Key ACLs:
|
|
1371
|
+
* - addObject
|
|
1372
|
+
* - deleteIndex
|
|
1373
|
+
* - editSettings.
|
|
1374
|
+
*
|
|
1375
|
+
* @param runSource - The runSource object.
|
|
1376
|
+
* @param runSource.sourceID - Unique identifier of a source.
|
|
1377
|
+
* @param runSource.runSourcePayload -.
|
|
1378
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1379
|
+
*/
|
|
1380
|
+
runSource({ sourceID, runSourcePayload }, requestOptions) {
|
|
1381
|
+
if (!sourceID) {
|
|
1382
|
+
throw new Error('Parameter `sourceID` is required when calling `runSource`.');
|
|
1383
|
+
}
|
|
1384
|
+
const requestPath = '/1/sources/{sourceID}/run'.replace('{sourceID}', encodeURIComponent(sourceID));
|
|
1385
|
+
const headers = {};
|
|
1386
|
+
const queryParameters = {};
|
|
1387
|
+
const request = {
|
|
1388
|
+
method: 'POST',
|
|
1389
|
+
path: requestPath,
|
|
1390
|
+
queryParameters,
|
|
1391
|
+
headers,
|
|
1392
|
+
data: runSourcePayload ? runSourcePayload : {},
|
|
1393
|
+
};
|
|
1394
|
+
return transporter.request(request, requestOptions);
|
|
1395
|
+
},
|
|
1304
1396
|
/**
|
|
1305
1397
|
* Runs a task. You can check the status of task runs with the observability endpoints.
|
|
1306
1398
|
*
|
|
@@ -1520,9 +1612,6 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1520
1612
|
if (!transformationSearch) {
|
|
1521
1613
|
throw new Error('Parameter `transformationSearch` is required when calling `searchTransformations`.');
|
|
1522
1614
|
}
|
|
1523
|
-
if (!transformationSearch.transformationsIDs) {
|
|
1524
|
-
throw new Error('Parameter `transformationSearch.transformationsIDs` is required when calling `searchTransformations`.');
|
|
1525
|
-
}
|
|
1526
1615
|
const requestPath = '/1/transformations/search';
|
|
1527
1616
|
const headers = {};
|
|
1528
1617
|
const queryParameters = {};
|
|
@@ -1573,15 +1662,15 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1573
1662
|
* @param transformationTry - The transformationTry object.
|
|
1574
1663
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1575
1664
|
*/
|
|
1576
|
-
|
|
1665
|
+
tryTransformation(transformationTry, requestOptions) {
|
|
1577
1666
|
if (!transformationTry) {
|
|
1578
|
-
throw new Error('Parameter `transformationTry` is required when calling `
|
|
1667
|
+
throw new Error('Parameter `transformationTry` is required when calling `tryTransformation`.');
|
|
1579
1668
|
}
|
|
1580
1669
|
if (!transformationTry.code) {
|
|
1581
|
-
throw new Error('Parameter `transformationTry.code` is required when calling `
|
|
1670
|
+
throw new Error('Parameter `transformationTry.code` is required when calling `tryTransformation`.');
|
|
1582
1671
|
}
|
|
1583
1672
|
if (!transformationTry.sampleRecord) {
|
|
1584
|
-
throw new Error('Parameter `transformationTry.sampleRecord` is required when calling `
|
|
1673
|
+
throw new Error('Parameter `transformationTry.sampleRecord` is required when calling `tryTransformation`.');
|
|
1585
1674
|
}
|
|
1586
1675
|
const requestPath = '/1/transformations/try';
|
|
1587
1676
|
const headers = {};
|
|
@@ -676,7 +676,7 @@ function createXhrRequester() {
|
|
|
676
676
|
}
|
|
677
677
|
|
|
678
678
|
// 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.0.0-beta.
|
|
679
|
+
const apiClientVersion = '1.0.0-beta.15';
|
|
680
680
|
const REGIONS = ['eu', 'us'];
|
|
681
681
|
function getDefaultHosts(region) {
|
|
682
682
|
const url = 'data.{region}.algolia.com'.replace('{region}', region);
|
|
@@ -1312,6 +1312,39 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1312
1312
|
};
|
|
1313
1313
|
return transporter.request(request, requestOptions);
|
|
1314
1314
|
},
|
|
1315
|
+
/**
|
|
1316
|
+
* Generates code for the selected model based on the given prompt.
|
|
1317
|
+
*
|
|
1318
|
+
* Required API Key ACLs:
|
|
1319
|
+
* - addObject
|
|
1320
|
+
* - deleteIndex
|
|
1321
|
+
* - editSettings.
|
|
1322
|
+
*
|
|
1323
|
+
* @param generateTransformationCodePayload - The generateTransformationCodePayload object.
|
|
1324
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1325
|
+
*/
|
|
1326
|
+
generateTransformationCode(generateTransformationCodePayload, requestOptions) {
|
|
1327
|
+
if (!generateTransformationCodePayload) {
|
|
1328
|
+
throw new Error('Parameter `generateTransformationCodePayload` is required when calling `generateTransformationCode`.');
|
|
1329
|
+
}
|
|
1330
|
+
if (!generateTransformationCodePayload.id) {
|
|
1331
|
+
throw new Error('Parameter `generateTransformationCodePayload.id` is required when calling `generateTransformationCode`.');
|
|
1332
|
+
}
|
|
1333
|
+
if (!generateTransformationCodePayload.userPrompt) {
|
|
1334
|
+
throw new Error('Parameter `generateTransformationCodePayload.userPrompt` is required when calling `generateTransformationCode`.');
|
|
1335
|
+
}
|
|
1336
|
+
const requestPath = '/1/transformations/models';
|
|
1337
|
+
const headers = {};
|
|
1338
|
+
const queryParameters = {};
|
|
1339
|
+
const request = {
|
|
1340
|
+
method: 'POST',
|
|
1341
|
+
path: requestPath,
|
|
1342
|
+
queryParameters,
|
|
1343
|
+
headers,
|
|
1344
|
+
data: generateTransformationCodePayload,
|
|
1345
|
+
};
|
|
1346
|
+
return transporter.request(request, requestOptions);
|
|
1347
|
+
},
|
|
1315
1348
|
/**
|
|
1316
1349
|
* Retrieves an authentication resource by its ID.
|
|
1317
1350
|
*
|
|
@@ -1907,6 +1940,28 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1907
1940
|
};
|
|
1908
1941
|
return transporter.request(request, requestOptions);
|
|
1909
1942
|
},
|
|
1943
|
+
/**
|
|
1944
|
+
* Retrieves a list of existing LLM transformation helpers.
|
|
1945
|
+
*
|
|
1946
|
+
* Required API Key ACLs:
|
|
1947
|
+
* - addObject
|
|
1948
|
+
* - deleteIndex
|
|
1949
|
+
* - editSettings.
|
|
1950
|
+
*
|
|
1951
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1952
|
+
*/
|
|
1953
|
+
listTransformationModels(requestOptions) {
|
|
1954
|
+
const requestPath = '/1/transformations/models';
|
|
1955
|
+
const headers = {};
|
|
1956
|
+
const queryParameters = {};
|
|
1957
|
+
const request = {
|
|
1958
|
+
method: 'GET',
|
|
1959
|
+
path: requestPath,
|
|
1960
|
+
queryParameters,
|
|
1961
|
+
headers,
|
|
1962
|
+
};
|
|
1963
|
+
return transporter.request(request, requestOptions);
|
|
1964
|
+
},
|
|
1910
1965
|
/**
|
|
1911
1966
|
* Retrieves a list of transformations.
|
|
1912
1967
|
*
|
|
@@ -1916,14 +1971,22 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1916
1971
|
* - editSettings.
|
|
1917
1972
|
*
|
|
1918
1973
|
* @param listTransformations - The listTransformations object.
|
|
1974
|
+
* @param listTransformations.itemsPerPage - Number of items per page.
|
|
1975
|
+
* @param listTransformations.page - Page number of the paginated API response.
|
|
1919
1976
|
* @param listTransformations.sort - Property by which to sort the list.
|
|
1920
1977
|
* @param listTransformations.order - Sort order of the response, ascending or descending.
|
|
1921
1978
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1922
1979
|
*/
|
|
1923
|
-
listTransformations({ sort, order } = {}, requestOptions = undefined) {
|
|
1980
|
+
listTransformations({ itemsPerPage, page, sort, order } = {}, requestOptions = undefined) {
|
|
1924
1981
|
const requestPath = '/1/transformations';
|
|
1925
1982
|
const headers = {};
|
|
1926
1983
|
const queryParameters = {};
|
|
1984
|
+
if (itemsPerPage !== undefined) {
|
|
1985
|
+
queryParameters.itemsPerPage = itemsPerPage.toString();
|
|
1986
|
+
}
|
|
1987
|
+
if (page !== undefined) {
|
|
1988
|
+
queryParameters.page = page.toString();
|
|
1989
|
+
}
|
|
1927
1990
|
if (sort !== undefined) {
|
|
1928
1991
|
queryParameters.sort = sort.toString();
|
|
1929
1992
|
}
|
|
@@ -1973,6 +2036,35 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1973
2036
|
};
|
|
1974
2037
|
return transporter.request(request, requestOptions);
|
|
1975
2038
|
},
|
|
2039
|
+
/**
|
|
2040
|
+
* Runs all tasks linked to a source, only available for Shopify sources. It will create 1 run per task.
|
|
2041
|
+
*
|
|
2042
|
+
* Required API Key ACLs:
|
|
2043
|
+
* - addObject
|
|
2044
|
+
* - deleteIndex
|
|
2045
|
+
* - editSettings.
|
|
2046
|
+
*
|
|
2047
|
+
* @param runSource - The runSource object.
|
|
2048
|
+
* @param runSource.sourceID - Unique identifier of a source.
|
|
2049
|
+
* @param runSource.runSourcePayload -.
|
|
2050
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
2051
|
+
*/
|
|
2052
|
+
runSource({ sourceID, runSourcePayload }, requestOptions) {
|
|
2053
|
+
if (!sourceID) {
|
|
2054
|
+
throw new Error('Parameter `sourceID` is required when calling `runSource`.');
|
|
2055
|
+
}
|
|
2056
|
+
const requestPath = '/1/sources/{sourceID}/run'.replace('{sourceID}', encodeURIComponent(sourceID));
|
|
2057
|
+
const headers = {};
|
|
2058
|
+
const queryParameters = {};
|
|
2059
|
+
const request = {
|
|
2060
|
+
method: 'POST',
|
|
2061
|
+
path: requestPath,
|
|
2062
|
+
queryParameters,
|
|
2063
|
+
headers,
|
|
2064
|
+
data: runSourcePayload ? runSourcePayload : {},
|
|
2065
|
+
};
|
|
2066
|
+
return transporter.request(request, requestOptions);
|
|
2067
|
+
},
|
|
1976
2068
|
/**
|
|
1977
2069
|
* Runs a task. You can check the status of task runs with the observability endpoints.
|
|
1978
2070
|
*
|
|
@@ -2192,9 +2284,6 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
2192
2284
|
if (!transformationSearch) {
|
|
2193
2285
|
throw new Error('Parameter `transformationSearch` is required when calling `searchTransformations`.');
|
|
2194
2286
|
}
|
|
2195
|
-
if (!transformationSearch.transformationsIDs) {
|
|
2196
|
-
throw new Error('Parameter `transformationSearch.transformationsIDs` is required when calling `searchTransformations`.');
|
|
2197
|
-
}
|
|
2198
2287
|
const requestPath = '/1/transformations/search';
|
|
2199
2288
|
const headers = {};
|
|
2200
2289
|
const queryParameters = {};
|
|
@@ -2245,15 +2334,15 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
2245
2334
|
* @param transformationTry - The transformationTry object.
|
|
2246
2335
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
2247
2336
|
*/
|
|
2248
|
-
|
|
2337
|
+
tryTransformation(transformationTry, requestOptions) {
|
|
2249
2338
|
if (!transformationTry) {
|
|
2250
|
-
throw new Error('Parameter `transformationTry` is required when calling `
|
|
2339
|
+
throw new Error('Parameter `transformationTry` is required when calling `tryTransformation`.');
|
|
2251
2340
|
}
|
|
2252
2341
|
if (!transformationTry.code) {
|
|
2253
|
-
throw new Error('Parameter `transformationTry.code` is required when calling `
|
|
2342
|
+
throw new Error('Parameter `transformationTry.code` is required when calling `tryTransformation`.');
|
|
2254
2343
|
}
|
|
2255
2344
|
if (!transformationTry.sampleRecord) {
|
|
2256
|
-
throw new Error('Parameter `transformationTry.sampleRecord` is required when calling `
|
|
2345
|
+
throw new Error('Parameter `transformationTry.sampleRecord` is required when calling `tryTransformation`.');
|
|
2257
2346
|
}
|
|
2258
2347
|
const requestPath = '/1/transformations/try';
|
|
2259
2348
|
const headers = {};
|
|
@@ -2,7 +2,7 @@ import { createAuth, createTransporter, getAlgoliaAgent, DEFAULT_CONNECT_TIMEOUT
|
|
|
2
2
|
import { createHttpRequester } from '@algolia/requester-node-http';
|
|
3
3
|
|
|
4
4
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
5
|
-
const apiClientVersion = '1.0.0-beta.
|
|
5
|
+
const apiClientVersion = '1.0.0-beta.15';
|
|
6
6
|
const REGIONS = ['eu', 'us'];
|
|
7
7
|
function getDefaultHosts(region) {
|
|
8
8
|
const url = 'data.{region}.algolia.com'.replace('{region}', region);
|
|
@@ -638,6 +638,39 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
638
638
|
};
|
|
639
639
|
return transporter.request(request, requestOptions);
|
|
640
640
|
},
|
|
641
|
+
/**
|
|
642
|
+
* Generates code for the selected model based on the given prompt.
|
|
643
|
+
*
|
|
644
|
+
* Required API Key ACLs:
|
|
645
|
+
* - addObject
|
|
646
|
+
* - deleteIndex
|
|
647
|
+
* - editSettings.
|
|
648
|
+
*
|
|
649
|
+
* @param generateTransformationCodePayload - The generateTransformationCodePayload object.
|
|
650
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
651
|
+
*/
|
|
652
|
+
generateTransformationCode(generateTransformationCodePayload, requestOptions) {
|
|
653
|
+
if (!generateTransformationCodePayload) {
|
|
654
|
+
throw new Error('Parameter `generateTransformationCodePayload` is required when calling `generateTransformationCode`.');
|
|
655
|
+
}
|
|
656
|
+
if (!generateTransformationCodePayload.id) {
|
|
657
|
+
throw new Error('Parameter `generateTransformationCodePayload.id` is required when calling `generateTransformationCode`.');
|
|
658
|
+
}
|
|
659
|
+
if (!generateTransformationCodePayload.userPrompt) {
|
|
660
|
+
throw new Error('Parameter `generateTransformationCodePayload.userPrompt` is required when calling `generateTransformationCode`.');
|
|
661
|
+
}
|
|
662
|
+
const requestPath = '/1/transformations/models';
|
|
663
|
+
const headers = {};
|
|
664
|
+
const queryParameters = {};
|
|
665
|
+
const request = {
|
|
666
|
+
method: 'POST',
|
|
667
|
+
path: requestPath,
|
|
668
|
+
queryParameters,
|
|
669
|
+
headers,
|
|
670
|
+
data: generateTransformationCodePayload,
|
|
671
|
+
};
|
|
672
|
+
return transporter.request(request, requestOptions);
|
|
673
|
+
},
|
|
641
674
|
/**
|
|
642
675
|
* Retrieves an authentication resource by its ID.
|
|
643
676
|
*
|
|
@@ -1233,6 +1266,28 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1233
1266
|
};
|
|
1234
1267
|
return transporter.request(request, requestOptions);
|
|
1235
1268
|
},
|
|
1269
|
+
/**
|
|
1270
|
+
* Retrieves a list of existing LLM transformation helpers.
|
|
1271
|
+
*
|
|
1272
|
+
* Required API Key ACLs:
|
|
1273
|
+
* - addObject
|
|
1274
|
+
* - deleteIndex
|
|
1275
|
+
* - editSettings.
|
|
1276
|
+
*
|
|
1277
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1278
|
+
*/
|
|
1279
|
+
listTransformationModels(requestOptions) {
|
|
1280
|
+
const requestPath = '/1/transformations/models';
|
|
1281
|
+
const headers = {};
|
|
1282
|
+
const queryParameters = {};
|
|
1283
|
+
const request = {
|
|
1284
|
+
method: 'GET',
|
|
1285
|
+
path: requestPath,
|
|
1286
|
+
queryParameters,
|
|
1287
|
+
headers,
|
|
1288
|
+
};
|
|
1289
|
+
return transporter.request(request, requestOptions);
|
|
1290
|
+
},
|
|
1236
1291
|
/**
|
|
1237
1292
|
* Retrieves a list of transformations.
|
|
1238
1293
|
*
|
|
@@ -1242,14 +1297,22 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1242
1297
|
* - editSettings.
|
|
1243
1298
|
*
|
|
1244
1299
|
* @param listTransformations - The listTransformations object.
|
|
1300
|
+
* @param listTransformations.itemsPerPage - Number of items per page.
|
|
1301
|
+
* @param listTransformations.page - Page number of the paginated API response.
|
|
1245
1302
|
* @param listTransformations.sort - Property by which to sort the list.
|
|
1246
1303
|
* @param listTransformations.order - Sort order of the response, ascending or descending.
|
|
1247
1304
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1248
1305
|
*/
|
|
1249
|
-
listTransformations({ sort, order } = {}, requestOptions = undefined) {
|
|
1306
|
+
listTransformations({ itemsPerPage, page, sort, order } = {}, requestOptions = undefined) {
|
|
1250
1307
|
const requestPath = '/1/transformations';
|
|
1251
1308
|
const headers = {};
|
|
1252
1309
|
const queryParameters = {};
|
|
1310
|
+
if (itemsPerPage !== undefined) {
|
|
1311
|
+
queryParameters.itemsPerPage = itemsPerPage.toString();
|
|
1312
|
+
}
|
|
1313
|
+
if (page !== undefined) {
|
|
1314
|
+
queryParameters.page = page.toString();
|
|
1315
|
+
}
|
|
1253
1316
|
if (sort !== undefined) {
|
|
1254
1317
|
queryParameters.sort = sort.toString();
|
|
1255
1318
|
}
|
|
@@ -1299,6 +1362,35 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1299
1362
|
};
|
|
1300
1363
|
return transporter.request(request, requestOptions);
|
|
1301
1364
|
},
|
|
1365
|
+
/**
|
|
1366
|
+
* Runs all tasks linked to a source, only available for Shopify sources. It will create 1 run per task.
|
|
1367
|
+
*
|
|
1368
|
+
* Required API Key ACLs:
|
|
1369
|
+
* - addObject
|
|
1370
|
+
* - deleteIndex
|
|
1371
|
+
* - editSettings.
|
|
1372
|
+
*
|
|
1373
|
+
* @param runSource - The runSource object.
|
|
1374
|
+
* @param runSource.sourceID - Unique identifier of a source.
|
|
1375
|
+
* @param runSource.runSourcePayload -.
|
|
1376
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1377
|
+
*/
|
|
1378
|
+
runSource({ sourceID, runSourcePayload }, requestOptions) {
|
|
1379
|
+
if (!sourceID) {
|
|
1380
|
+
throw new Error('Parameter `sourceID` is required when calling `runSource`.');
|
|
1381
|
+
}
|
|
1382
|
+
const requestPath = '/1/sources/{sourceID}/run'.replace('{sourceID}', encodeURIComponent(sourceID));
|
|
1383
|
+
const headers = {};
|
|
1384
|
+
const queryParameters = {};
|
|
1385
|
+
const request = {
|
|
1386
|
+
method: 'POST',
|
|
1387
|
+
path: requestPath,
|
|
1388
|
+
queryParameters,
|
|
1389
|
+
headers,
|
|
1390
|
+
data: runSourcePayload ? runSourcePayload : {},
|
|
1391
|
+
};
|
|
1392
|
+
return transporter.request(request, requestOptions);
|
|
1393
|
+
},
|
|
1302
1394
|
/**
|
|
1303
1395
|
* Runs a task. You can check the status of task runs with the observability endpoints.
|
|
1304
1396
|
*
|
|
@@ -1518,9 +1610,6 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1518
1610
|
if (!transformationSearch) {
|
|
1519
1611
|
throw new Error('Parameter `transformationSearch` is required when calling `searchTransformations`.');
|
|
1520
1612
|
}
|
|
1521
|
-
if (!transformationSearch.transformationsIDs) {
|
|
1522
|
-
throw new Error('Parameter `transformationSearch.transformationsIDs` is required when calling `searchTransformations`.');
|
|
1523
|
-
}
|
|
1524
1613
|
const requestPath = '/1/transformations/search';
|
|
1525
1614
|
const headers = {};
|
|
1526
1615
|
const queryParameters = {};
|
|
@@ -1571,15 +1660,15 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1571
1660
|
* @param transformationTry - The transformationTry object.
|
|
1572
1661
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1573
1662
|
*/
|
|
1574
|
-
|
|
1663
|
+
tryTransformation(transformationTry, requestOptions) {
|
|
1575
1664
|
if (!transformationTry) {
|
|
1576
|
-
throw new Error('Parameter `transformationTry` is required when calling `
|
|
1665
|
+
throw new Error('Parameter `transformationTry` is required when calling `tryTransformation`.');
|
|
1577
1666
|
}
|
|
1578
1667
|
if (!transformationTry.code) {
|
|
1579
|
-
throw new Error('Parameter `transformationTry.code` is required when calling `
|
|
1668
|
+
throw new Error('Parameter `transformationTry.code` is required when calling `tryTransformation`.');
|
|
1580
1669
|
}
|
|
1581
1670
|
if (!transformationTry.sampleRecord) {
|
|
1582
|
-
throw new Error('Parameter `transformationTry.sampleRecord` is required when calling `
|
|
1671
|
+
throw new Error('Parameter `transformationTry.sampleRecord` is required when calling `tryTransformation`.');
|
|
1583
1672
|
}
|
|
1584
1673
|
const requestPath = '/1/transformations/try';
|
|
1585
1674
|
const headers = {};
|