add saveAs parameters to models.

This commit is contained in:
ali-hamud 2017-01-03 14:44:26 +02:00
Родитель 7ff8ffc33e
Коммит b21ae15b12
2 изменённых файлов: 23 добавлений и 0 удалений

Просмотреть файл

@ -9,6 +9,7 @@ export const pageSchema = require('./schemas/page.json');
export const settingsSchema = require('./schemas/settings.json');
export const basicFilterSchema = require('./schemas/basicFilter.json');
export const createReportSchema = require('./schemas/reportCreateConfiguration.json');
export const saveAsParametersSchema = require('./schemas/saveAsParameters.json');
/* tslint:enable:no-var-requires */
import * as jsen from 'jsen';
@ -428,3 +429,9 @@ export enum ViewMode {
View,
Edit
}
export interface ISaveAsParameters {
name: string;
}
export const validateSaveAsParameters = validate(saveAsParametersSchema);

Просмотреть файл

@ -0,0 +1,16 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"name": {
"type": "string",
"messages": {
"type": "name must be a string",
"required": "name is required"
}
}
},
"required": [
"name"
]
}