@easyedu/js-lsm-api 1.5.0 → 1.6.0
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.
- package/README.md +2 -2
- package/dist/esm/models/GetContent.d.ts +6 -0
- package/dist/esm/models/GetContent.js +4 -0
- package/dist/esm/models/GetCourse.d.ts +6 -0
- package/dist/esm/models/GetCourse.js +4 -0
- package/dist/esm/models/GetModule.d.ts +6 -0
- package/dist/esm/models/GetModule.js +4 -0
- package/dist/esm/models/PutCourse.d.ts +6 -0
- package/dist/esm/models/PutCourse.js +2 -0
- package/dist/esm/models/PutModule.d.ts +6 -0
- package/dist/esm/models/PutModule.js +2 -0
- package/dist/models/GetContent.d.ts +6 -0
- package/dist/models/GetContent.js +4 -0
- package/dist/models/GetCourse.d.ts +6 -0
- package/dist/models/GetCourse.js +4 -0
- package/dist/models/GetModule.d.ts +6 -0
- package/dist/models/GetModule.js +4 -0
- package/dist/models/PutCourse.d.ts +6 -0
- package/dist/models/PutCourse.js +2 -0
- package/dist/models/PutModule.d.ts +6 -0
- package/dist/models/PutModule.js +2 -0
- package/package.json +1 -1
- package/src/models/GetContent.ts +9 -0
- package/src/models/GetCourse.ts +9 -0
- package/src/models/GetModule.ts +9 -0
- package/src/models/PutCourse.ts +8 -0
- package/src/models/PutModule.ts +8 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @easyedu/js-lsm-api@1.
|
|
1
|
+
## @easyedu/js-lsm-api@1.6.0
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @easyedu/js-lsm-api@1.
|
|
39
|
+
npm install @easyedu/js-lsm-api@1.6.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -58,6 +58,12 @@ export interface GetContent {
|
|
|
58
58
|
* @memberof GetContent
|
|
59
59
|
*/
|
|
60
60
|
order?: number;
|
|
61
|
+
/**
|
|
62
|
+
* Whether the content is published and visible to students
|
|
63
|
+
* @type {boolean}
|
|
64
|
+
* @memberof GetContent
|
|
65
|
+
*/
|
|
66
|
+
published: boolean;
|
|
61
67
|
/**
|
|
62
68
|
*
|
|
63
69
|
* @type {Date}
|
|
@@ -38,6 +38,8 @@ export function instanceOfGetContent(value) {
|
|
|
38
38
|
return false;
|
|
39
39
|
if (!('contentData' in value) || value['contentData'] === undefined)
|
|
40
40
|
return false;
|
|
41
|
+
if (!('published' in value) || value['published'] === undefined)
|
|
42
|
+
return false;
|
|
41
43
|
return true;
|
|
42
44
|
}
|
|
43
45
|
export function GetContentFromJSON(json) {
|
|
@@ -55,6 +57,7 @@ export function GetContentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
57
|
'contentType': json['content_type'],
|
|
56
58
|
'contentData': GetContentContentDataFromJSON(json['content_data']),
|
|
57
59
|
'order': json['order'] == null ? undefined : json['order'],
|
|
60
|
+
'published': json['published'],
|
|
58
61
|
'createdDate': json['created_date'] == null ? undefined : (new Date(json['created_date'])),
|
|
59
62
|
'updatedDate': json['updated_date'] == null ? undefined : (new Date(json['updated_date'])),
|
|
60
63
|
};
|
|
@@ -73,5 +76,6 @@ export function GetContentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
73
76
|
'content_type': value['contentType'],
|
|
74
77
|
'content_data': GetContentContentDataToJSON(value['contentData']),
|
|
75
78
|
'order': value['order'],
|
|
79
|
+
'published': value['published'],
|
|
76
80
|
};
|
|
77
81
|
}
|
|
@@ -45,6 +45,12 @@ export interface GetCourse {
|
|
|
45
45
|
* @memberof GetCourse
|
|
46
46
|
*/
|
|
47
47
|
imageUrl: string;
|
|
48
|
+
/**
|
|
49
|
+
* Whether the course is published and visible to students
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof GetCourse
|
|
52
|
+
*/
|
|
53
|
+
published: boolean;
|
|
48
54
|
}
|
|
49
55
|
/**
|
|
50
56
|
* Check if a given object implements the GetCourse interface.
|
|
@@ -23,6 +23,8 @@ export function instanceOfGetCourse(value) {
|
|
|
23
23
|
return false;
|
|
24
24
|
if (!('imageUrl' in value) || value['imageUrl'] === undefined)
|
|
25
25
|
return false;
|
|
26
|
+
if (!('published' in value) || value['published'] === undefined)
|
|
27
|
+
return false;
|
|
26
28
|
return true;
|
|
27
29
|
}
|
|
28
30
|
export function GetCourseFromJSON(json) {
|
|
@@ -38,6 +40,7 @@ export function GetCourseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
40
|
'description': json['description'],
|
|
39
41
|
'instructor': json['instructor'] == null ? undefined : json['instructor'],
|
|
40
42
|
'imageUrl': json['image_url'],
|
|
43
|
+
'published': json['published'],
|
|
41
44
|
};
|
|
42
45
|
}
|
|
43
46
|
export function GetCourseToJSON(json) {
|
|
@@ -52,5 +55,6 @@ export function GetCourseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
52
55
|
'description': value['description'],
|
|
53
56
|
'instructor': value['instructor'],
|
|
54
57
|
'image_url': value['imageUrl'],
|
|
58
|
+
'published': value['published'],
|
|
55
59
|
};
|
|
56
60
|
}
|
|
@@ -45,6 +45,12 @@ export interface GetModule {
|
|
|
45
45
|
* @memberof GetModule
|
|
46
46
|
*/
|
|
47
47
|
lastUpdated: number;
|
|
48
|
+
/**
|
|
49
|
+
* Whether the module is published and visible to students
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof GetModule
|
|
52
|
+
*/
|
|
53
|
+
published: boolean;
|
|
48
54
|
}
|
|
49
55
|
/**
|
|
50
56
|
* Check if a given object implements the GetModule interface.
|
|
@@ -25,6 +25,8 @@ export function instanceOfGetModule(value) {
|
|
|
25
25
|
return false;
|
|
26
26
|
if (!('lastUpdated' in value) || value['lastUpdated'] === undefined)
|
|
27
27
|
return false;
|
|
28
|
+
if (!('published' in value) || value['published'] === undefined)
|
|
29
|
+
return false;
|
|
28
30
|
return true;
|
|
29
31
|
}
|
|
30
32
|
export function GetModuleFromJSON(json) {
|
|
@@ -40,6 +42,7 @@ export function GetModuleFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
42
|
'description': json['description'],
|
|
41
43
|
'order': json['order'],
|
|
42
44
|
'lastUpdated': json['last_updated'],
|
|
45
|
+
'published': json['published'],
|
|
43
46
|
};
|
|
44
47
|
}
|
|
45
48
|
export function GetModuleToJSON(json) {
|
|
@@ -54,5 +57,6 @@ export function GetModuleToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
54
57
|
'description': value['description'],
|
|
55
58
|
'order': value['order'],
|
|
56
59
|
'last_updated': value['lastUpdated'],
|
|
60
|
+
'published': value['published'],
|
|
57
61
|
};
|
|
58
62
|
}
|
|
@@ -45,6 +45,12 @@ export interface PutCourse {
|
|
|
45
45
|
* @memberof PutCourse
|
|
46
46
|
*/
|
|
47
47
|
imageUrl?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Whether the course is published and visible to students
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof PutCourse
|
|
52
|
+
*/
|
|
53
|
+
published?: boolean;
|
|
48
54
|
}
|
|
49
55
|
/**
|
|
50
56
|
* Check if a given object implements the PutCourse interface.
|
|
@@ -30,6 +30,7 @@ export function PutCourseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
30
30
|
'description': json['description'] == null ? undefined : json['description'],
|
|
31
31
|
'instructor': json['instructor'] == null ? undefined : json['instructor'],
|
|
32
32
|
'imageUrl': json['image_url'] == null ? undefined : json['image_url'],
|
|
33
|
+
'published': json['published'] == null ? undefined : json['published'],
|
|
33
34
|
};
|
|
34
35
|
}
|
|
35
36
|
export function PutCourseToJSON(json) {
|
|
@@ -44,5 +45,6 @@ export function PutCourseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
44
45
|
'description': value['description'],
|
|
45
46
|
'instructor': value['instructor'],
|
|
46
47
|
'image_url': value['imageUrl'],
|
|
48
|
+
'published': value['published'],
|
|
47
49
|
};
|
|
48
50
|
}
|
|
@@ -33,6 +33,12 @@ export interface PutModule {
|
|
|
33
33
|
* @memberof PutModule
|
|
34
34
|
*/
|
|
35
35
|
order?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Whether the module is published and visible to students
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof PutModule
|
|
40
|
+
*/
|
|
41
|
+
published?: boolean;
|
|
36
42
|
}
|
|
37
43
|
/**
|
|
38
44
|
* Check if a given object implements the PutModule interface.
|
|
@@ -28,6 +28,7 @@ export function PutModuleFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
28
|
'name': json['name'] == null ? undefined : json['name'],
|
|
29
29
|
'description': json['description'] == null ? undefined : json['description'],
|
|
30
30
|
'order': json['order'] == null ? undefined : json['order'],
|
|
31
|
+
'published': json['published'] == null ? undefined : json['published'],
|
|
31
32
|
};
|
|
32
33
|
}
|
|
33
34
|
export function PutModuleToJSON(json) {
|
|
@@ -41,5 +42,6 @@ export function PutModuleToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
41
42
|
'name': value['name'],
|
|
42
43
|
'description': value['description'],
|
|
43
44
|
'order': value['order'],
|
|
45
|
+
'published': value['published'],
|
|
44
46
|
};
|
|
45
47
|
}
|
|
@@ -58,6 +58,12 @@ export interface GetContent {
|
|
|
58
58
|
* @memberof GetContent
|
|
59
59
|
*/
|
|
60
60
|
order?: number;
|
|
61
|
+
/**
|
|
62
|
+
* Whether the content is published and visible to students
|
|
63
|
+
* @type {boolean}
|
|
64
|
+
* @memberof GetContent
|
|
65
|
+
*/
|
|
66
|
+
published: boolean;
|
|
61
67
|
/**
|
|
62
68
|
*
|
|
63
69
|
* @type {Date}
|
|
@@ -46,6 +46,8 @@ function instanceOfGetContent(value) {
|
|
|
46
46
|
return false;
|
|
47
47
|
if (!('contentData' in value) || value['contentData'] === undefined)
|
|
48
48
|
return false;
|
|
49
|
+
if (!('published' in value) || value['published'] === undefined)
|
|
50
|
+
return false;
|
|
49
51
|
return true;
|
|
50
52
|
}
|
|
51
53
|
function GetContentFromJSON(json) {
|
|
@@ -63,6 +65,7 @@ function GetContentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
63
65
|
'contentType': json['content_type'],
|
|
64
66
|
'contentData': (0, GetContentContentData_1.GetContentContentDataFromJSON)(json['content_data']),
|
|
65
67
|
'order': json['order'] == null ? undefined : json['order'],
|
|
68
|
+
'published': json['published'],
|
|
66
69
|
'createdDate': json['created_date'] == null ? undefined : (new Date(json['created_date'])),
|
|
67
70
|
'updatedDate': json['updated_date'] == null ? undefined : (new Date(json['updated_date'])),
|
|
68
71
|
};
|
|
@@ -81,5 +84,6 @@ function GetContentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
81
84
|
'content_type': value['contentType'],
|
|
82
85
|
'content_data': (0, GetContentContentData_1.GetContentContentDataToJSON)(value['contentData']),
|
|
83
86
|
'order': value['order'],
|
|
87
|
+
'published': value['published'],
|
|
84
88
|
};
|
|
85
89
|
}
|
|
@@ -45,6 +45,12 @@ export interface GetCourse {
|
|
|
45
45
|
* @memberof GetCourse
|
|
46
46
|
*/
|
|
47
47
|
imageUrl: string;
|
|
48
|
+
/**
|
|
49
|
+
* Whether the course is published and visible to students
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof GetCourse
|
|
52
|
+
*/
|
|
53
|
+
published: boolean;
|
|
48
54
|
}
|
|
49
55
|
/**
|
|
50
56
|
* Check if a given object implements the GetCourse interface.
|
package/dist/models/GetCourse.js
CHANGED
|
@@ -30,6 +30,8 @@ function instanceOfGetCourse(value) {
|
|
|
30
30
|
return false;
|
|
31
31
|
if (!('imageUrl' in value) || value['imageUrl'] === undefined)
|
|
32
32
|
return false;
|
|
33
|
+
if (!('published' in value) || value['published'] === undefined)
|
|
34
|
+
return false;
|
|
33
35
|
return true;
|
|
34
36
|
}
|
|
35
37
|
function GetCourseFromJSON(json) {
|
|
@@ -45,6 +47,7 @@ function GetCourseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
47
|
'description': json['description'],
|
|
46
48
|
'instructor': json['instructor'] == null ? undefined : json['instructor'],
|
|
47
49
|
'imageUrl': json['image_url'],
|
|
50
|
+
'published': json['published'],
|
|
48
51
|
};
|
|
49
52
|
}
|
|
50
53
|
function GetCourseToJSON(json) {
|
|
@@ -59,5 +62,6 @@ function GetCourseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
59
62
|
'description': value['description'],
|
|
60
63
|
'instructor': value['instructor'],
|
|
61
64
|
'image_url': value['imageUrl'],
|
|
65
|
+
'published': value['published'],
|
|
62
66
|
};
|
|
63
67
|
}
|
|
@@ -45,6 +45,12 @@ export interface GetModule {
|
|
|
45
45
|
* @memberof GetModule
|
|
46
46
|
*/
|
|
47
47
|
lastUpdated: number;
|
|
48
|
+
/**
|
|
49
|
+
* Whether the module is published and visible to students
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof GetModule
|
|
52
|
+
*/
|
|
53
|
+
published: boolean;
|
|
48
54
|
}
|
|
49
55
|
/**
|
|
50
56
|
* Check if a given object implements the GetModule interface.
|
package/dist/models/GetModule.js
CHANGED
|
@@ -32,6 +32,8 @@ function instanceOfGetModule(value) {
|
|
|
32
32
|
return false;
|
|
33
33
|
if (!('lastUpdated' in value) || value['lastUpdated'] === undefined)
|
|
34
34
|
return false;
|
|
35
|
+
if (!('published' in value) || value['published'] === undefined)
|
|
36
|
+
return false;
|
|
35
37
|
return true;
|
|
36
38
|
}
|
|
37
39
|
function GetModuleFromJSON(json) {
|
|
@@ -47,6 +49,7 @@ function GetModuleFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
49
|
'description': json['description'],
|
|
48
50
|
'order': json['order'],
|
|
49
51
|
'lastUpdated': json['last_updated'],
|
|
52
|
+
'published': json['published'],
|
|
50
53
|
};
|
|
51
54
|
}
|
|
52
55
|
function GetModuleToJSON(json) {
|
|
@@ -61,5 +64,6 @@ function GetModuleToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
61
64
|
'description': value['description'],
|
|
62
65
|
'order': value['order'],
|
|
63
66
|
'last_updated': value['lastUpdated'],
|
|
67
|
+
'published': value['published'],
|
|
64
68
|
};
|
|
65
69
|
}
|
|
@@ -45,6 +45,12 @@ export interface PutCourse {
|
|
|
45
45
|
* @memberof PutCourse
|
|
46
46
|
*/
|
|
47
47
|
imageUrl?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Whether the course is published and visible to students
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof PutCourse
|
|
52
|
+
*/
|
|
53
|
+
published?: boolean;
|
|
48
54
|
}
|
|
49
55
|
/**
|
|
50
56
|
* Check if a given object implements the PutCourse interface.
|
package/dist/models/PutCourse.js
CHANGED
|
@@ -37,6 +37,7 @@ function PutCourseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
37
|
'description': json['description'] == null ? undefined : json['description'],
|
|
38
38
|
'instructor': json['instructor'] == null ? undefined : json['instructor'],
|
|
39
39
|
'imageUrl': json['image_url'] == null ? undefined : json['image_url'],
|
|
40
|
+
'published': json['published'] == null ? undefined : json['published'],
|
|
40
41
|
};
|
|
41
42
|
}
|
|
42
43
|
function PutCourseToJSON(json) {
|
|
@@ -51,5 +52,6 @@ function PutCourseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
51
52
|
'description': value['description'],
|
|
52
53
|
'instructor': value['instructor'],
|
|
53
54
|
'image_url': value['imageUrl'],
|
|
55
|
+
'published': value['published'],
|
|
54
56
|
};
|
|
55
57
|
}
|
|
@@ -33,6 +33,12 @@ export interface PutModule {
|
|
|
33
33
|
* @memberof PutModule
|
|
34
34
|
*/
|
|
35
35
|
order?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Whether the module is published and visible to students
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof PutModule
|
|
40
|
+
*/
|
|
41
|
+
published?: boolean;
|
|
36
42
|
}
|
|
37
43
|
/**
|
|
38
44
|
* Check if a given object implements the PutModule interface.
|
package/dist/models/PutModule.js
CHANGED
|
@@ -35,6 +35,7 @@ function PutModuleFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
35
|
'name': json['name'] == null ? undefined : json['name'],
|
|
36
36
|
'description': json['description'] == null ? undefined : json['description'],
|
|
37
37
|
'order': json['order'] == null ? undefined : json['order'],
|
|
38
|
+
'published': json['published'] == null ? undefined : json['published'],
|
|
38
39
|
};
|
|
39
40
|
}
|
|
40
41
|
function PutModuleToJSON(json) {
|
|
@@ -48,5 +49,6 @@ function PutModuleToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
48
49
|
'name': value['name'],
|
|
49
50
|
'description': value['description'],
|
|
50
51
|
'order': value['order'],
|
|
52
|
+
'published': value['published'],
|
|
51
53
|
};
|
|
52
54
|
}
|
package/package.json
CHANGED
package/src/models/GetContent.ts
CHANGED
|
@@ -69,6 +69,12 @@ export interface GetContent {
|
|
|
69
69
|
* @memberof GetContent
|
|
70
70
|
*/
|
|
71
71
|
order?: number;
|
|
72
|
+
/**
|
|
73
|
+
* Whether the content is published and visible to students
|
|
74
|
+
* @type {boolean}
|
|
75
|
+
* @memberof GetContent
|
|
76
|
+
*/
|
|
77
|
+
published: boolean;
|
|
72
78
|
/**
|
|
73
79
|
*
|
|
74
80
|
* @type {Date}
|
|
@@ -108,6 +114,7 @@ export function instanceOfGetContent(value: object): value is GetContent {
|
|
|
108
114
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
109
115
|
if (!('contentType' in value) || value['contentType'] === undefined) return false;
|
|
110
116
|
if (!('contentData' in value) || value['contentData'] === undefined) return false;
|
|
117
|
+
if (!('published' in value) || value['published'] === undefined) return false;
|
|
111
118
|
return true;
|
|
112
119
|
}
|
|
113
120
|
|
|
@@ -128,6 +135,7 @@ export function GetContentFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
128
135
|
'contentType': json['content_type'],
|
|
129
136
|
'contentData': GetContentContentDataFromJSON(json['content_data']),
|
|
130
137
|
'order': json['order'] == null ? undefined : json['order'],
|
|
138
|
+
'published': json['published'],
|
|
131
139
|
'createdDate': json['created_date'] == null ? undefined : (new Date(json['created_date'])),
|
|
132
140
|
'updatedDate': json['updated_date'] == null ? undefined : (new Date(json['updated_date'])),
|
|
133
141
|
};
|
|
@@ -150,6 +158,7 @@ export function GetContentToJSONTyped(value?: Omit<GetContent, 'id'|'created_dat
|
|
|
150
158
|
'content_type': value['contentType'],
|
|
151
159
|
'content_data': GetContentContentDataToJSON(value['contentData']),
|
|
152
160
|
'order': value['order'],
|
|
161
|
+
'published': value['published'],
|
|
153
162
|
};
|
|
154
163
|
}
|
|
155
164
|
|
package/src/models/GetCourse.ts
CHANGED
|
@@ -49,6 +49,12 @@ export interface GetCourse {
|
|
|
49
49
|
* @memberof GetCourse
|
|
50
50
|
*/
|
|
51
51
|
imageUrl: string;
|
|
52
|
+
/**
|
|
53
|
+
* Whether the course is published and visible to students
|
|
54
|
+
* @type {boolean}
|
|
55
|
+
* @memberof GetCourse
|
|
56
|
+
*/
|
|
57
|
+
published: boolean;
|
|
52
58
|
}
|
|
53
59
|
|
|
54
60
|
/**
|
|
@@ -59,6 +65,7 @@ export function instanceOfGetCourse(value: object): value is GetCourse {
|
|
|
59
65
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
60
66
|
if (!('description' in value) || value['description'] === undefined) return false;
|
|
61
67
|
if (!('imageUrl' in value) || value['imageUrl'] === undefined) return false;
|
|
68
|
+
if (!('published' in value) || value['published'] === undefined) return false;
|
|
62
69
|
return true;
|
|
63
70
|
}
|
|
64
71
|
|
|
@@ -77,6 +84,7 @@ export function GetCourseFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
77
84
|
'description': json['description'],
|
|
78
85
|
'instructor': json['instructor'] == null ? undefined : json['instructor'],
|
|
79
86
|
'imageUrl': json['image_url'],
|
|
87
|
+
'published': json['published'],
|
|
80
88
|
};
|
|
81
89
|
}
|
|
82
90
|
|
|
@@ -95,6 +103,7 @@ export function GetCourseToJSONTyped(value?: Omit<GetCourse, 'id'> | null, ignor
|
|
|
95
103
|
'description': value['description'],
|
|
96
104
|
'instructor': value['instructor'],
|
|
97
105
|
'image_url': value['imageUrl'],
|
|
106
|
+
'published': value['published'],
|
|
98
107
|
};
|
|
99
108
|
}
|
|
100
109
|
|
package/src/models/GetModule.ts
CHANGED
|
@@ -49,6 +49,12 @@ export interface GetModule {
|
|
|
49
49
|
* @memberof GetModule
|
|
50
50
|
*/
|
|
51
51
|
lastUpdated: number;
|
|
52
|
+
/**
|
|
53
|
+
* Whether the module is published and visible to students
|
|
54
|
+
* @type {boolean}
|
|
55
|
+
* @memberof GetModule
|
|
56
|
+
*/
|
|
57
|
+
published: boolean;
|
|
52
58
|
}
|
|
53
59
|
|
|
54
60
|
/**
|
|
@@ -60,6 +66,7 @@ export function instanceOfGetModule(value: object): value is GetModule {
|
|
|
60
66
|
if (!('description' in value) || value['description'] === undefined) return false;
|
|
61
67
|
if (!('order' in value) || value['order'] === undefined) return false;
|
|
62
68
|
if (!('lastUpdated' in value) || value['lastUpdated'] === undefined) return false;
|
|
69
|
+
if (!('published' in value) || value['published'] === undefined) return false;
|
|
63
70
|
return true;
|
|
64
71
|
}
|
|
65
72
|
|
|
@@ -78,6 +85,7 @@ export function GetModuleFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
78
85
|
'description': json['description'],
|
|
79
86
|
'order': json['order'],
|
|
80
87
|
'lastUpdated': json['last_updated'],
|
|
88
|
+
'published': json['published'],
|
|
81
89
|
};
|
|
82
90
|
}
|
|
83
91
|
|
|
@@ -96,6 +104,7 @@ export function GetModuleToJSONTyped(value?: Omit<GetModule, 'id'> | null, ignor
|
|
|
96
104
|
'description': value['description'],
|
|
97
105
|
'order': value['order'],
|
|
98
106
|
'last_updated': value['lastUpdated'],
|
|
107
|
+
'published': value['published'],
|
|
99
108
|
};
|
|
100
109
|
}
|
|
101
110
|
|
package/src/models/PutCourse.ts
CHANGED
|
@@ -49,6 +49,12 @@ export interface PutCourse {
|
|
|
49
49
|
* @memberof PutCourse
|
|
50
50
|
*/
|
|
51
51
|
imageUrl?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Whether the course is published and visible to students
|
|
54
|
+
* @type {boolean}
|
|
55
|
+
* @memberof PutCourse
|
|
56
|
+
*/
|
|
57
|
+
published?: boolean;
|
|
52
58
|
}
|
|
53
59
|
|
|
54
60
|
/**
|
|
@@ -73,6 +79,7 @@ export function PutCourseFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
73
79
|
'description': json['description'] == null ? undefined : json['description'],
|
|
74
80
|
'instructor': json['instructor'] == null ? undefined : json['instructor'],
|
|
75
81
|
'imageUrl': json['image_url'] == null ? undefined : json['image_url'],
|
|
82
|
+
'published': json['published'] == null ? undefined : json['published'],
|
|
76
83
|
};
|
|
77
84
|
}
|
|
78
85
|
|
|
@@ -91,6 +98,7 @@ export function PutCourseToJSONTyped(value?: Omit<PutCourse, 'id'> | null, ignor
|
|
|
91
98
|
'description': value['description'],
|
|
92
99
|
'instructor': value['instructor'],
|
|
93
100
|
'image_url': value['imageUrl'],
|
|
101
|
+
'published': value['published'],
|
|
94
102
|
};
|
|
95
103
|
}
|
|
96
104
|
|
package/src/models/PutModule.ts
CHANGED
|
@@ -37,6 +37,12 @@ export interface PutModule {
|
|
|
37
37
|
* @memberof PutModule
|
|
38
38
|
*/
|
|
39
39
|
order?: number;
|
|
40
|
+
/**
|
|
41
|
+
* Whether the module is published and visible to students
|
|
42
|
+
* @type {boolean}
|
|
43
|
+
* @memberof PutModule
|
|
44
|
+
*/
|
|
45
|
+
published?: boolean;
|
|
40
46
|
}
|
|
41
47
|
|
|
42
48
|
/**
|
|
@@ -59,6 +65,7 @@ export function PutModuleFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
59
65
|
'name': json['name'] == null ? undefined : json['name'],
|
|
60
66
|
'description': json['description'] == null ? undefined : json['description'],
|
|
61
67
|
'order': json['order'] == null ? undefined : json['order'],
|
|
68
|
+
'published': json['published'] == null ? undefined : json['published'],
|
|
62
69
|
};
|
|
63
70
|
}
|
|
64
71
|
|
|
@@ -76,6 +83,7 @@ export function PutModuleToJSONTyped(value?: PutModule | null, ignoreDiscriminat
|
|
|
76
83
|
'name': value['name'],
|
|
77
84
|
'description': value['description'],
|
|
78
85
|
'order': value['order'],
|
|
86
|
+
'published': value['published'],
|
|
79
87
|
};
|
|
80
88
|
}
|
|
81
89
|
|