Skip to content

Commit

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

Co-authored-by: algolia-bot <[email protected]>
Co-authored-by: Jason Berry <[email protected]>
  • Loading branch information
algolia-bot and JasonBerry committed Mar 13, 2024
1 parent 6685d25 commit 26f9503
Show file tree
Hide file tree
Showing 15 changed files with 77 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/ingestion/model/actionType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
/**
* The action to perform on the Algolia index.
*/
export type ActionType = 'partial' | 'replace' | 'save';
export type ActionType = 'append' | 'partial' | 'replace' | 'save';
4 changes: 2 additions & 2 deletions packages/ingestion/model/clientMethodProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -410,11 +410,11 @@ export type GetTasksProps = {
*/
enabled?: boolean;
/**
* The sourceIDs of the tasks to retrive.
* The sourceIDs of the tasks to retrieve.
*/
sourceID?: string[];
/**
* The destinationIDs of the tasks to retrive.
* The destinationIDs of the tasks to retrieve.
*/
destinationID?: string[];
/**
Expand Down
4 changes: 4 additions & 0 deletions packages/ingestion/model/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ export * from './sourceCommercetools';
export * from './sourceCreate';
export * from './sourceCreateResponse';
export * from './sourceDocker';
export * from './sourceGA4BigQueryExport';
export * from './sourceInput';
export * from './sourceJSON';
export * from './sourceSearch';
Expand All @@ -97,6 +98,9 @@ export * from './sourceUpdateCommercetools';
export * from './sourceUpdateDocker';
export * from './sourceUpdateInput';
export * from './sourceUpdateResponse';
export * from './streamingTrigger';
export * from './streamingTriggerType';
export * from './streamingUtilsInput';
export * from './subscriptionTrigger';
export * from './subscriptionTriggerType';
export * from './task';
Expand Down
18 changes: 18 additions & 0 deletions packages/ingestion/model/sourceGA4BigQueryExport.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// 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.

export type SourceGA4BigQueryExport = {
/**
* GCP project ID that the BigQuery Export writes to.
*/
projectID: string;

/**
* BigQuery dataset ID that the BigQuery Export writes to.
*/
datasetID: string;

/**
* Prefix of the tables that the BigQuery Export writes to (i.e. Events_intraday_ for streaming, events_ for daily).
*/
tablePrefix: string;
};
2 changes: 2 additions & 0 deletions packages/ingestion/model/sourceInput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import type { SourceBigQuery } from './sourceBigQuery';
import type { SourceCSV } from './sourceCSV';
import type { SourceCommercetools } from './sourceCommercetools';
import type { SourceDocker } from './sourceDocker';
import type { SourceGA4BigQueryExport } from './sourceGA4BigQueryExport';
import type { SourceJSON } from './sourceJSON';

export type SourceInput =
Expand All @@ -13,4 +14,5 @@ export type SourceInput =
| SourceCommercetools
| SourceCSV
| SourceDocker
| SourceGA4BigQueryExport
| SourceJSON;
1 change: 1 addition & 0 deletions packages/ingestion/model/sourceType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ export type SourceType =
| 'commercetools'
| 'csv'
| 'docker'
| 'ga4BigqueryExport'
| 'json';
2 changes: 2 additions & 0 deletions packages/ingestion/model/sourceUpdateInput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@

import type { SourceBigQuery } from './sourceBigQuery';
import type { SourceCSV } from './sourceCSV';
import type { SourceGA4BigQueryExport } from './sourceGA4BigQueryExport';
import type { SourceJSON } from './sourceJSON';
import type { SourceUpdateCommercetools } from './sourceUpdateCommercetools';
import type { SourceUpdateDocker } from './sourceUpdateDocker';

export type SourceUpdateInput =
| SourceBigQuery
| SourceCSV
| SourceGA4BigQueryExport
| SourceJSON
| SourceUpdateCommercetools
| SourceUpdateDocker;
10 changes: 10 additions & 0 deletions packages/ingestion/model/streamingTrigger.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// 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 { StreamingTriggerType } from './streamingTriggerType';

/**
* The trigger input for a task of type \'streaming\'.
*/
export type StreamingTrigger = {
type: StreamingTriggerType;
};
6 changes: 6 additions & 0 deletions packages/ingestion/model/streamingTriggerType.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,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.

/**
* A task that runs continuously.
*/
export type StreamingTriggerType = 'streaming';
10 changes: 10 additions & 0 deletions packages/ingestion/model/streamingUtilsInput.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// 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 `streaming` task whose source is of type `ga4BigqueryExport` and for which extracted data is continuously streamed.
*/
export type StreamingUtilsInput = {
mapping: MappingInput;
};
2 changes: 2 additions & 0 deletions packages/ingestion/model/taskCreateTrigger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@

import type { OnDemandTriggerInput } from './onDemandTriggerInput';
import type { ScheduleTriggerInput } from './scheduleTriggerInput';
import type { StreamingTrigger } from './streamingTrigger';
import type { SubscriptionTrigger } from './subscriptionTrigger';

export type TaskCreateTrigger =
| OnDemandTriggerInput
| ScheduleTriggerInput
| StreamingTrigger
| SubscriptionTrigger;
6 changes: 5 additions & 1 deletion packages/ingestion/model/taskInput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@

import type { OnDemandDateUtilsInput } from './onDemandDateUtilsInput';
import type { ScheduleDateUtilsInput } from './scheduleDateUtilsInput';
import type { StreamingUtilsInput } from './streamingUtilsInput';

export type TaskInput = OnDemandDateUtilsInput | ScheduleDateUtilsInput;
export type TaskInput =
| OnDemandDateUtilsInput
| ScheduleDateUtilsInput
| StreamingUtilsInput;
7 changes: 6 additions & 1 deletion packages/ingestion/model/trigger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

import type { OnDemandTrigger } from './onDemandTrigger';
import type { ScheduleTrigger } from './scheduleTrigger';
import type { StreamingTrigger } from './streamingTrigger';
import type { SubscriptionTrigger } from './subscriptionTrigger';

export type Trigger = OnDemandTrigger | ScheduleTrigger | SubscriptionTrigger;
export type Trigger =
| OnDemandTrigger
| ScheduleTrigger
| StreamingTrigger
| SubscriptionTrigger;
8 changes: 6 additions & 2 deletions packages/ingestion/model/triggerType.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
// 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.

/**
* The type of the task reflect how it can be used: - onDemand: a task that runs manually - schedule: a task that runs regularly, following a given cron expression - subscription: a task that runs after a subscription event is received from an integration (e.g. Webhook).
* The type of the task reflect how it can be used: - onDemand: a task that runs manually - schedule: a task that runs regularly, following a given cron expression - subscription: a task that runs after a subscription event is received from an integration (e.g. Webhook). - streaming: a task that runs continuously.
*/
export type TriggerType = 'onDemand' | 'schedule' | 'subscription';
export type TriggerType =
| 'onDemand'
| 'schedule'
| 'streaming'
| 'subscription';
4 changes: 2 additions & 2 deletions packages/ingestion/src/ingestionClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1418,8 +1418,8 @@ export function createIngestionClient({
* @param getTasks.page - The page number to fetch, starting at 1.
* @param getTasks.action - The action of the tasks to retrieve.
* @param getTasks.enabled - Whether the task is enabled or not.
* @param getTasks.sourceID - The sourceIDs of the tasks to retrive.
* @param getTasks.destinationID - The destinationIDs of the tasks to retrive.
* @param getTasks.sourceID - The sourceIDs of the tasks to retrieve.
* @param getTasks.destinationID - The destinationIDs of the tasks to retrieve.
* @param getTasks.triggerType - The trigger type of the task.
* @param getTasks.sort - The key by which the list should be sorted.
* @param getTasks.order - The order of the returned list.
Expand Down

0 comments on commit 26f9503

Please sign in to comment.