Skip to content

Commit d0d406a

Browse files
chore: generated code for commit b7ae19f2. [skip ci]
algolia/api-clients-automation@b7ae19f Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent 5acdb08 commit d0d406a

13 files changed

+526
-0
lines changed

Diff for: packages/ingestion/model/clientMethodProps.ts

+47
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@ import type { OrderKeys } from './orderKeys';
1414
import type { PlatformWithNone } from './platformWithNone';
1515
import type { RunSortKeys } from './runSortKeys';
1616
import type { RunStatus } from './runStatus';
17+
import type { SortKeys } from './sortKeys';
1718
import type { SourceSortKeys } from './sourceSortKeys';
1819
import type { SourceType } from './sourceType';
1920
import type { SourceUpdate } from './sourceUpdate';
2021
import type { TaskSortKeys } from './taskSortKeys';
2122
import type { TaskUpdate } from './taskUpdate';
23+
import type { TransformationCreate } from './transformationCreate';
2224
import type { TriggerType } from './triggerType';
2325

2426
/**
@@ -125,6 +127,16 @@ export type DeleteTaskProps = {
125127
taskID: string;
126128
};
127129

130+
/**
131+
* Properties for the `deleteTransformation` method.
132+
*/
133+
export type DeleteTransformationProps = {
134+
/**
135+
* Unique identifier of a transformation.
136+
*/
137+
transformationID: string;
138+
};
139+
128140
/**
129141
* Properties for the `disableTask` method.
130142
*/
@@ -421,6 +433,30 @@ export type GetTasksProps = {
421433
order?: OrderKeys;
422434
};
423435

436+
/**
437+
* Properties for the `getTransformation` method.
438+
*/
439+
export type GetTransformationProps = {
440+
/**
441+
* Unique identifier of a transformation.
442+
*/
443+
transformationID: string;
444+
};
445+
446+
/**
447+
* Properties for the `getTransformations` method.
448+
*/
449+
export type GetTransformationsProps = {
450+
/**
451+
* Property by which to sort the list.
452+
*/
453+
sort?: SortKeys;
454+
/**
455+
* Sort order of the response, ascending or descending.
456+
*/
457+
order?: OrderKeys;
458+
};
459+
424460
/**
425461
* Properties for the `runTask` method.
426462
*/
@@ -485,6 +521,17 @@ export type UpdateTaskProps = {
485521
taskUpdate: TaskUpdate;
486522
};
487523

524+
/**
525+
* Properties for the `updateTransformation` method.
526+
*/
527+
export type UpdateTransformationProps = {
528+
/**
529+
* Unique identifier of a transformation.
530+
*/
531+
transformationID: string;
532+
transformationCreate: TransformationCreate;
533+
};
534+
488535
/**
489536
* Properties for the `validateSourceBeforeUpdate` method.
490537
*/

Diff for: packages/ingestion/model/index.ts

+10
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ export * from './listDestinationsResponse';
5151
export * from './listEventsResponse';
5252
export * from './listSourcesResponse';
5353
export * from './listTasksResponse';
54+
export * from './listTransformationsResponse';
5455
export * from './mappingFieldDirective';
5556
export * from './mappingFormatSchema';
5657
export * from './mappingInput';
@@ -83,6 +84,7 @@ export * from './scheduleTriggerType';
8384
export * from './shopifyInput';
8485
export * from './shopifyMarket';
8586
export * from './shopifyMetafield';
87+
export * from './sortKeys';
8688
export * from './source';
8789
export * from './sourceBigCommerce';
8890
export * from './sourceBigQuery';
@@ -120,6 +122,14 @@ export * from './taskSearch';
120122
export * from './taskSortKeys';
121123
export * from './taskUpdate';
122124
export * from './taskUpdateResponse';
125+
export * from './transformation';
126+
export * from './transformationCreate';
127+
export * from './transformationCreateResponse';
128+
export * from './transformationSearch';
129+
export * from './transformationTry';
130+
export * from './transformationTryResponse';
131+
export * from './transformationTryResponseError';
132+
export * from './transformationUpdateResponse';
123133
export * from './trigger';
124134
export * from './triggerType';
125135
export * from './triggerUpdateInput';
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// 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.
2+
3+
import type { Pagination } from './pagination';
4+
import type { Transformation } from './transformation';
5+
6+
/**
7+
* Configured transformations and pagination information.
8+
*/
9+
export type ListTransformationsResponse = {
10+
transformations: Transformation[];
11+
12+
pagination: Pagination;
13+
};

Diff for: packages/ingestion/model/sortKeys.ts

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// 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.
2+
3+
/**
4+
* Property by which to sort the list.
5+
*/
6+
export type SortKeys = 'createdAt' | 'name' | 'type' | 'updatedAt';

Diff for: packages/ingestion/model/transformation.ts

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// 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.
2+
3+
export type Transformation = {
4+
/**
5+
* Universally unique identifier (UUID) of a transformation.
6+
*/
7+
transformationID: string;
8+
9+
/**
10+
* The source code of the transformation.
11+
*/
12+
code: string;
13+
14+
/**
15+
* The uniquely identified name of your transformation.
16+
*/
17+
name: string;
18+
19+
/**
20+
* A descriptive name for your transformation of what it does.
21+
*/
22+
description: string;
23+
24+
/**
25+
* Date of creation in RFC 3339 format.
26+
*/
27+
createdAt: string;
28+
29+
/**
30+
* Date of last update in RFC 3339 format.
31+
*/
32+
updatedAt?: string;
33+
};

Diff for: packages/ingestion/model/transformationCreate.ts

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// 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.
2+
3+
/**
4+
* API request body for creating a transformation.
5+
*/
6+
export type TransformationCreate = {
7+
/**
8+
* The source code of the transformation.
9+
*/
10+
code: string;
11+
12+
/**
13+
* The uniquely identified name of your transformation.
14+
*/
15+
name: string;
16+
17+
/**
18+
* A descriptive name for your transformation of what it does.
19+
*/
20+
description: string;
21+
};
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// 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.
2+
3+
/**
4+
* API response for creating a transformation.
5+
*/
6+
export type TransformationCreateResponse = {
7+
/**
8+
* Universally unique identifier (UUID) of a transformation.
9+
*/
10+
transformationID: string;
11+
12+
/**
13+
* Date of creation in RFC 3339 format.
14+
*/
15+
createdAt: string;
16+
};

Diff for: packages/ingestion/model/transformationSearch.ts

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// 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.
2+
3+
export type TransformationSearch = {
4+
transformationsIDs: string[];
5+
};

Diff for: packages/ingestion/model/transformationTry.ts

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// 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.
2+
3+
export type TransformationTry = {
4+
/**
5+
* The source code of the transformation.
6+
*/
7+
code: string;
8+
9+
/**
10+
* The record to apply the given code to.
11+
*/
12+
sampleRecord: Record<string, any>;
13+
};
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// 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.
2+
3+
import type { TransformationTryResponseError } from './transformationTryResponseError';
4+
5+
export type TransformationTryResponse = {
6+
/**
7+
* The array of records returned by the transformation service.
8+
*/
9+
payloads: Array<Record<string, any>>;
10+
11+
error?: TransformationTryResponseError;
12+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// 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.
2+
3+
/**
4+
* The error if the transformation failed.
5+
*/
6+
export type TransformationTryResponseError = {
7+
/**
8+
* The error status code.
9+
*/
10+
code?: number;
11+
12+
/**
13+
* A descriptive message explaining the failure.
14+
*/
15+
message?: string;
16+
};
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// 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.
2+
3+
/**
4+
* API response for updating a transformation.
5+
*/
6+
export type TransformationUpdateResponse = {
7+
/**
8+
* Universally unique identifier (UUID) of a transformation.
9+
*/
10+
transformationID: string;
11+
12+
/**
13+
* Date of last update in RFC 3339 format.
14+
*/
15+
updatedAt: string;
16+
};

0 commit comments

Comments
 (0)