From 8c059e86b032dc95f9c7bfa7433d808396b1e0b3 Mon Sep 17 00:00:00 2001
From: Konrad Mohrfeldt <konrad.mohrfeldt@farbdev.org>
Date: Thu, 25 Jan 2024 01:29:51 +0100
Subject: [PATCH] chore: update steering types

---
 src/steering-types.ts | 52 ++++++++++++++++++++++++++++++++++++++++++-
 src/types.ts          |  6 +++++
 2 files changed, 57 insertions(+), 1 deletion(-)

diff --git a/src/steering-types.ts b/src/steering-types.ts
index d8b00e6e..f1ef178d 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 c7f119cd..8f65d608 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'],
-- 
GitLab