cloud-ide-lms-model 1.0.100 → 1.0.102
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -7,16 +7,16 @@ type IPageNotesManagerErrorLogger = {
|
|
|
7
7
|
*/
|
|
8
8
|
declare class ICoreSypn {
|
|
9
9
|
_id?: string;
|
|
10
|
-
|
|
10
|
+
sypn_title?: string;
|
|
11
11
|
sypn_desc?: string;
|
|
12
12
|
sypn_page_id_sypg?: string;
|
|
13
13
|
sypn_entity_id_sype?: string;
|
|
14
14
|
sypn_page_them_id_sytm?: string;
|
|
15
15
|
sypn_user_id_user?: string;
|
|
16
|
-
sypn_is_page_specific?:
|
|
17
|
-
sypn_is_user_specific?:
|
|
18
|
-
sypn_is_entity_specific?:
|
|
19
|
-
sypn_is_theme_specific?:
|
|
16
|
+
sypn_is_page_specific?: boolean;
|
|
17
|
+
sypn_is_user_specific?: boolean;
|
|
18
|
+
sypn_is_entity_specific?: boolean;
|
|
19
|
+
sypn_is_theme_specific?: boolean;
|
|
20
20
|
constructor(init: ICoreSypn);
|
|
21
21
|
Validate?(): Partial<IPageNotesManagerErrorLogger>;
|
|
22
22
|
}
|
|
@@ -13,8 +13,8 @@ class ICoreSypn {
|
|
|
13
13
|
Validate() {
|
|
14
14
|
let errorLogger = {};
|
|
15
15
|
// Log errors here
|
|
16
|
-
if (!this.
|
|
17
|
-
errorLogger.
|
|
16
|
+
if (!this.sypn_title) {
|
|
17
|
+
errorLogger.sypn_title = "Title is Required!";
|
|
18
18
|
}
|
|
19
19
|
if (this.sypn_is_page_specific && !this.sypn_page_id_sypg) {
|
|
20
20
|
errorLogger.sypn_page_id_sypg = "Page Id is Required!";
|