feat(fullstack): Add form element section and stepper
This commit is contained in:
@@ -665,7 +665,7 @@ components:
|
||||
required:
|
||||
- id
|
||||
- name
|
||||
- formElements
|
||||
- formElementSections
|
||||
- isTemplate
|
||||
- organizationId
|
||||
- createdBy
|
||||
@@ -678,10 +678,10 @@ components:
|
||||
format: uuid
|
||||
name:
|
||||
type: string
|
||||
formElements:
|
||||
formElementSections:
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/components/schemas/FormElementDto"
|
||||
$ref: "#/components/schemas/FormElementSectionDto"
|
||||
isTemplate:
|
||||
type: boolean
|
||||
organizationId:
|
||||
@@ -700,16 +700,16 @@ components:
|
||||
CreateApplicationFormDto:
|
||||
required:
|
||||
- name
|
||||
- formElements
|
||||
- formElementSections
|
||||
- isTemplate
|
||||
type: object
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
formElements:
|
||||
formElementSections:
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/components/schemas/CreateFormElementDto"
|
||||
$ref: "#/components/schemas/CreateFormElementSectionDto"
|
||||
isTemplate:
|
||||
type: boolean
|
||||
default: false
|
||||
@@ -728,21 +728,64 @@ components:
|
||||
items:
|
||||
$ref: "#/components/schemas/ApplicationFormDto"
|
||||
|
||||
|
||||
####### Form #######
|
||||
FormElementDto:
|
||||
FormElementSectionDto:
|
||||
type: object
|
||||
required:
|
||||
- id
|
||||
- title
|
||||
- formElements
|
||||
- applicationFormId
|
||||
- options
|
||||
- type
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
format: uuid
|
||||
title:
|
||||
type: string
|
||||
shortTitle:
|
||||
type: string
|
||||
description:
|
||||
type: string
|
||||
formElements:
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/components/schemas/FormElementDto"
|
||||
applicationFormId:
|
||||
type: string
|
||||
format: uuid
|
||||
|
||||
CreateFormElementSectionDto:
|
||||
type: object
|
||||
required:
|
||||
- title
|
||||
- formElements
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
format: uuid
|
||||
title:
|
||||
type: string
|
||||
shortTitle:
|
||||
type: string
|
||||
description:
|
||||
type: string
|
||||
formElements:
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/components/schemas/CreateFormElementDto"
|
||||
|
||||
FormElementDto:
|
||||
type: object
|
||||
required:
|
||||
- id
|
||||
- options
|
||||
- type
|
||||
- formElementSectionId
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
format: uuid
|
||||
title:
|
||||
type: string
|
||||
description:
|
||||
@@ -753,6 +796,9 @@ components:
|
||||
$ref: "#/components/schemas/FormOptionDto"
|
||||
type:
|
||||
$ref: "#/components/schemas/FormElementType"
|
||||
formElementSectionId:
|
||||
type: string
|
||||
format: uuid
|
||||
|
||||
CreateFormElementDto:
|
||||
type: object
|
||||
|
||||
Reference in New Issue
Block a user