From 1a974abc0df66eb1f2806b90e57789fcff2c67e5 Mon Sep 17 00:00:00 2001
From: Paul Vaneveld
Date: Fri, 14 Jun 2024 13:01:18 +0200
Subject: [PATCH] feat: add support for `filter_content_type`
* to allow filtering of referenced stories
---
openapi.yaml | 5 +++++
sbmgmt/main.gen.go | 5 +++--
schemas/components.yaml | 5 +++++
3 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/openapi.yaml b/openapi.yaml
index 3102353..2c91ce5 100644
--- a/openapi.yaml
+++ b/openapi.yaml
@@ -1574,6 +1574,11 @@ components:
items:
type: string
description: 'Array of file type names: ["images", "videos", "audios", "texts"]'
+ filter_content_type:
+ type: array
+ items:
+ type: string
+ description: 'An array of content types that can be selected in a option or options field where source is internal_stories: e.g. ["post", "faq_item"]'
folder_slug:
type: string
description: 'Filter on selectable stories path; Effects editor only if source=internal_stories; In case you have a multi-language folder structure you can add the ''{0}'' placeholder and the path will be adapted dynamically. Examples: "{0}/categories/", {0}/{1}/categories/'
diff --git a/sbmgmt/main.gen.go b/sbmgmt/main.gen.go
index f033781..b17e3ad 100644
--- a/sbmgmt/main.gen.go
+++ b/sbmgmt/main.gen.go
@@ -1,6 +1,6 @@
// Package sbmgmt provides primitives to interact with the openapi HTTP API.
//
-// Code generated by github.com/deepmap/oapi-codegen/v2 version v2.1.0 DO NOT EDIT.
+// Code generated by github.com/deepmap/oapi-codegen version v1.16.3 DO NOT EDIT.
package sbmgmt
import (
@@ -383,7 +383,8 @@ type FieldInput struct {
FieldType *string `json:"field_type,omitempty"`
// Filetypes Array of file type names: ["images", "videos", "audios", "texts"]
- Filetypes *[]string `json:"filetypes,omitempty"`
+ Filetypes *[]string `json:"filetypes,omitempty"`
+ FilterContentType *[]string `json:"filter_content_type,omitempty"`
// FolderSlug Filter on selectable stories path; Effects editor only if source=internal_stories; In case you have a multi-language folder structure you can add the '{0}' placeholder and the path will be adapted dynamically. Examples: "{0}/categories/", {0}/{1}/categories/
FolderSlug *string `json:"folder_slug,omitempty"`
diff --git a/schemas/components.yaml b/schemas/components.yaml
index df5e056..7efc7f7 100644
--- a/schemas/components.yaml
+++ b/schemas/components.yaml
@@ -195,6 +195,11 @@ FieldInput:
items:
type: string
description: 'Array of file type names: ["images", "videos", "audios", "texts"]'
+ filter_content_type:
+ type: array
+ items:
+ type: string
+ description: 'An array of content types that can be selected in a option or options field where source is internal_stories: e.g. ["post", "faq_item"]'
folder_slug:
type: string
description: 'Filter on selectable stories path; Effects editor only if source=internal_stories; In case you have a multi-language folder structure you can add the ''{0}'' placeholder and the path will be adapted dynamically. Examples: "{0}/categories/", {0}/{1}/categories/'