From 6f7fbfb6fb13d558a5167f6813fa0aaa2b4a1546 Mon Sep 17 00:00:00 2001 From: algolia-bot Date: Tue, 9 May 2023 09:30:40 +0000 Subject: [PATCH] chore: generated code for commit 7c9cfb9b. [skip ci] https://github.com/algolia/api-clients-automation/commit/7c9cfb9b6abb6dcf0cbd7e2b7b2867f19950ca3e Co-authored-by: algolia-bot Co-authored-by: Thomas Raffray --- packages/ingestion/model/index.ts | 1 + packages/ingestion/model/run.ts | 3 +++ packages/ingestion/model/runReasonCode.ts | 12 ++++++++++++ 3 files changed, 16 insertions(+) create mode 100644 packages/ingestion/model/runReasonCode.ts diff --git a/packages/ingestion/model/index.ts b/packages/ingestion/model/index.ts index 9c497e73b..cfc58765f 100644 --- a/packages/ingestion/model/index.ts +++ b/packages/ingestion/model/index.ts @@ -55,6 +55,7 @@ export * from './run'; export * from './runListResponse'; export * from './runOutcome'; export * from './runProgress'; +export * from './runReasonCode'; export * from './runResponse'; export * from './runSortKeys'; export * from './runStatus'; diff --git a/packages/ingestion/model/run.ts b/packages/ingestion/model/run.ts index 8f6c0b8c2..86c9f2b7f 100644 --- a/packages/ingestion/model/run.ts +++ b/packages/ingestion/model/run.ts @@ -2,6 +2,7 @@ import type { RunOutcome } from './runOutcome'; import type { RunProgress } from './runProgress'; +import type { RunReasonCode } from './runReasonCode'; import type { RunStatus } from './runStatus'; import type { RunType } from './runType'; @@ -29,6 +30,8 @@ export type Run = { */ reason?: string; + reasonCode?: RunReasonCode; + type: RunType; /** diff --git a/packages/ingestion/model/runReasonCode.ts b/packages/ingestion/model/runReasonCode.ts new file mode 100644 index 000000000..ec3c492ee --- /dev/null +++ b/packages/ingestion/model/runReasonCode.ts @@ -0,0 +1,12 @@ +// 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. + +/** + * An identifier that pairs with the outcome reason. + */ +export type RunReasonCode = + | 'critical' + | 'discarded' + | 'internal' + | 'no_events' + | 'ok' + | 'too_many_errors';