Skip to content

Commit

Permalink
Merge pull request #90 from CloudEcosystemDev/feat/add-component-vers…
Browse files Browse the repository at this point in the history
…ion-template-schema

Added componentVersionId to the template schema
  • Loading branch information
jorgerusso committed Nov 14, 2023
2 parents 2d579dd + dc4d8f4 commit 6765d70
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions services/template-repository/app/models/schemas/flowTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const DefaultModel = mongoose.model('MapperDefault', mapperDefaultSchema);
const LOOKUPTYPES = {
SINGLE: 'single',
MULTIPLE: 'multiple',
}
};

const lookupSchema = new Schema({
data: {
Expand All @@ -51,7 +51,9 @@ const lookupSchema = new Schema({
keyPath: { type: String, required: true },
labelPath: { type: String, required: true },
parameterName: { type: String, required: true },
type: { type: String, enum: Object.values(LOOKUPTYPES), default: LOOKUPTYPES.SINGLE, required: true },
type: {
type: String, enum: Object.values(LOOKUPTYPES), default: LOOKUPTYPES.SINGLE, required: true,
},
},
});

Expand Down Expand Up @@ -121,6 +123,10 @@ const node = new Schema(
type: String,
description: 'The virtual component id',
},
componentVersionId: {
type: String,
description: 'The component version id',
},
function: {
type: String,
required: [true, 'Flow Template nodes require a function.'],
Expand Down

0 comments on commit 6765d70

Please sign in to comment.