diff --git a/src/steering-types.ts b/src/steering-types.ts index d8b00e6eb371ab626687af822d6bde1f7818d907..f1ef178d247d5deddf81cbadfb273a84a6bb42d0 100644 --- a/src/steering-types.ts +++ b/src/steering-types.ts @@ -1,6 +1,6 @@ /* eslint-disable */ /* - * This file was auto-generated by `make update-types` at 2023-11-08 16:29:22.365Z. + * This file was auto-generated by `make update-types` at 2024-01-25 00:54:34.794Z. * DO NOT make changes to this file. */ @@ -510,6 +510,16 @@ export type webhooks = Record<string, never> export interface components { schemas: { + /** + * @description * `1` - first + * * `2` - second + * * `3` - third + * * `4` - fourth + * * `5` - fifth + * * `-1` - last + * @enum {integer} + */ + BySetPosEnum: 1 | 2 | 3 | 4 | 5 | -1 /** * @description **0**: Monday * @@ -533,6 +543,13 @@ export interface components { * @enum {integer} */ ByWeekdayEnum: 0 | 1 | 2 | 3 | 4 | 5 | 6 + /** + * @description * `None` - + * * `0,1,2,3,4` - business days + * * `5,6` - weekends + * @enum {unknown} + */ + ByWeekdaysEnum: '0,1,2,3,4' | '5,6' Category: { description?: string id: number @@ -570,6 +587,14 @@ export interface components { message: string code: string | null } + /** + * @description * `0` - once + * * `1` - monthly + * * `2` - weekly + * * `3` - daily + * @enum {integer} + */ + FreqEnum: 0 | 1 | 2 | 3 FundingCategory: { id: number isActive?: boolean @@ -869,7 +894,20 @@ export interface components { updatedBy?: string } PatchedRRule: { + bySetPos?: components['schemas']['BySetPosEnum'] | components['schemas']['NullEnum'] | null + byWeekdays?: + | components['schemas']['ByWeekdaysEnum'] + | components['schemas']['NullEnum'] + | null + /** @description How many occurrences should be generated. */ + count?: number | null + freq?: components['schemas']['FreqEnum'] id?: number + /** + * @description The interval between each freq iteration. + * @default 1 + */ + interval?: number name?: string } PatchedScheduleCreateUpdateRequest: { @@ -1000,7 +1038,17 @@ export interface components { solutionChoices: components['schemas']['SolutionChoicesEnum'][] } RRule: { + bySetPos: components['schemas']['BySetPosEnum'] | components['schemas']['NullEnum'] | null + byWeekdays: components['schemas']['ByWeekdaysEnum'] | components['schemas']['NullEnum'] | null + /** @description How many occurrences should be generated. */ + count: number | null + freq: components['schemas']['FreqEnum'] id: number + /** + * @description The interval between each freq iteration. + * @default 1 + */ + interval: number name: string } Schedule: { @@ -2519,6 +2567,7 @@ export interface operations { * (`one-solution-per-conflict`). Only one solution is allowed per conflict, * so you either offered too many or not enough solutions for any reported * conflicts. + * * The referenced recurrence rule does not exist. */ 400: { content: { @@ -3185,6 +3234,7 @@ export interface operations { * (`one-solution-per-conflict`). Only one solution is allowed per conflict, * so you either offered too many or not enough solutions for any reported * conflicts. + * * The referenced recurrence rule does not exist. */ 400: { content: { diff --git a/src/types.ts b/src/types.ts index c7f119cdada2a09c329bfab4101f3671d6a891bf..8f65d608ab79528b849c40015e51d0a2a57895b6 100644 --- a/src/types.ts +++ b/src/types.ts @@ -47,6 +47,12 @@ export type MusicFocus = Required<steeringComponents['schemas']['MusicFocus']> export type Type = Required<steeringComponents['schemas']['Type']> export type Topic = Required<steeringComponents['schemas']['Topic']> export type License = Required<steeringComponents['schemas']['License']> +export type RRule = Required< + Omit<steeringComponents['schemas']['RRule'], 'byWeekdays'> & { + // this is an extension to ease testing + byWeekdays: steeringComponents['schemas']['RRule']['byWeekdays'] | number[] + } +> export type Note = Required< Omit< steeringComponents['schemas']['Note'],