From 892b490cf6572c85817a8d04e7fcf00b040cc01d Mon Sep 17 00:00:00 2001 From: Omri Armstrong Date: Mon, 30 Jan 2017 16:11:30 +0200 Subject: [PATCH] permission enum fix --- src/models.ts | 1 + src/schemas/reportLoadConfiguration.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/models.ts b/src/models.ts index 57cf702..e8f17c9 100644 --- a/src/models.ts +++ b/src/models.ts @@ -94,6 +94,7 @@ export const validateReportLoad = validate(loadSchema, { export interface IReportCreateConfiguration { accessToken: string; datasetId: string; + settings?: ISettings; } export const validateCreateReport = validate(createReportSchema); diff --git a/src/schemas/reportLoadConfiguration.json b/src/schemas/reportLoadConfiguration.json index 619f232..e68666c 100644 --- a/src/schemas/reportLoadConfiguration.json +++ b/src/schemas/reportLoadConfiguration.json @@ -42,7 +42,7 @@ }, "permissions": { "type": "number", - "enum": [0, 1, 2, 3], + "enum": [0, 1, 2, 4, 7], "default": 0, "invalidMessage": "permissions property is invalid" },