Skip to content

Commit

Permalink
chore: generated code for commit 23442749. [skip ci]
Browse files Browse the repository at this point in the history
algolia/api-clients-automation@2344274

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
Co-authored-by: Jonathan Sokolowski <jsok@users.noreply.github.com>
  • Loading branch information
algolia-bot and jsok committed Mar 4, 2024
1 parent 40178fa commit cf0454a
Show file tree
Hide file tree
Showing 6 changed files with 67 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/ingestion/model/index.ts
Expand Up @@ -51,6 +51,9 @@ export * from './listDestinationsResponse';
export * from './listEventsResponse';
export * from './listSourcesResponse';
export * from './listTasksResponse';
export * from './mappingFieldDirective';
export * from './mappingInput';
export * from './mappingKitAction';
export * from './mappingTypeCSV';
export * from './methodType';
export * from './onDemandDateUtilsInput';
Expand Down
16 changes: 16 additions & 0 deletions packages/ingestion/model/mappingFieldDirective.ts
@@ -0,0 +1,16 @@
// 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.

/**
* Describes how a field should be resolved by applying a set of directives.
*/
export type MappingFieldDirective = {
/**
* Destination field key.
*/
fieldKey: string;

/**
* How the destination field should be resolved from the source.
*/
value: Record<string, any>;
};
15 changes: 15 additions & 0 deletions packages/ingestion/model/mappingInput.ts
@@ -0,0 +1,15 @@
// 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.

import type { MappingKitAction } from './mappingKitAction';

/**
* Transformations to apply to source, serialized as a JSON string.
*/
export type MappingInput = {
/**
* Name of the mapping format schema, `mappingkit/v1` is currently the only supported format.
*/
format: string;

actions: MappingKitAction[];
};
25 changes: 25 additions & 0 deletions packages/ingestion/model/mappingKitAction.ts
@@ -0,0 +1,25 @@
// 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.

import type { MappingFieldDirective } from './mappingFieldDirective';

/**
* Describes how a destination object should be resolved by means of applying a set of directives.
*/
export type MappingKitAction = {
/**
* ID to uniquely identify this action.
*/
id?: string;

/**
* Whether this action has any effect.
*/
enabled: boolean;

/**
* Condition which must be satisfied to apply the action. If this evaluates to false, the action is not applied, and the process attempts to apply the next action, if any.
*/
trigger: string;

fieldDirectives: MappingFieldDirective[];
};
4 changes: 4 additions & 0 deletions packages/ingestion/model/onDemandDateUtilsInput.ts
@@ -1,5 +1,7 @@
// 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.

import type { MappingInput } from './mappingInput';

/**
* The input for an `onDemand` task whose source is of type `bigquery` and for which extracted data spans a given time range.
*/
Expand All @@ -13,4 +15,6 @@ export type OnDemandDateUtilsInput = {
* The end date of the extraction (RFC3339 format).
*/
endDate: string;

mapping?: MappingInput;
};
4 changes: 4 additions & 0 deletions packages/ingestion/model/scheduleDateUtilsInput.ts
@@ -1,5 +1,7 @@
// 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.

import type { MappingInput } from './mappingInput';

/**
* The input for a `schedule` task whose source is of type `bigquery` and for which extracted data spans a fixed number of days.
*/
Expand All @@ -8,4 +10,6 @@ export type ScheduleDateUtilsInput = {
* The timeframe of the extraction, in number of days from today.
*/
timeframe: number;

mapping?: MappingInput;
};

0 comments on commit cf0454a

Please sign in to comment.