Skip to content

Commit

Permalink
Merge pull request #87 from CloudEcosystemDev/feat/added-type-of-fiel…
Browse files Browse the repository at this point in the history
…dkey

Added new field type for the mapping
  • Loading branch information
jorgerusso committed Oct 29, 2023
2 parents 43cc6fa + b8c8023 commit e964a16
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions services/template-repository/app/models/schemas/flowTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,26 @@ const TYPES = {
USER_INPUT: 'USER_INPUT',
};

const FIELD_TYPES = {
DROPDOWN_SELECTION: 'DROPDOWN_SELECTION',
USER_INPUT: 'USER_INPUT',
LOOKUP: 'LOOKUP',
};

const mapperDefaultSchema = new Schema(
{
fieldType: {
type: String,
enum: Object.keys(FIELD_TYPES),
default: FIELD_TYPES.DROPDOWN_SELECTION
required: true,
}
type: {
type: String,
enum: Object.keys(TYPES),
required: true,
},

},
{
_id: false,
Expand Down

0 comments on commit e964a16

Please sign in to comment.