@easyedu/js-lsm-api 1.2.0 → 1.3.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
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @easyedu/js-lsm-api@1.
|
|
1
|
+
## @easyedu/js-lsm-api@1.3.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.3.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -21,6 +21,12 @@ export interface PutContent {
|
|
|
21
21
|
* @memberof PutContent
|
|
22
22
|
*/
|
|
23
23
|
name?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Whether the content is published and visible to students
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof PutContent
|
|
28
|
+
*/
|
|
29
|
+
published?: boolean;
|
|
24
30
|
}
|
|
25
31
|
/**
|
|
26
32
|
* Check if a given object implements the PutContent interface.
|
|
@@ -26,6 +26,7 @@ export function PutContentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
26
26
|
}
|
|
27
27
|
return {
|
|
28
28
|
'name': json['name'] == null ? undefined : json['name'],
|
|
29
|
+
'published': json['published'] == null ? undefined : json['published'],
|
|
29
30
|
};
|
|
30
31
|
}
|
|
31
32
|
export function PutContentToJSON(json) {
|
|
@@ -37,5 +38,6 @@ export function PutContentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
37
38
|
}
|
|
38
39
|
return {
|
|
39
40
|
'name': value['name'],
|
|
41
|
+
'published': value['published'],
|
|
40
42
|
};
|
|
41
43
|
}
|
|
@@ -21,6 +21,12 @@ export interface PutContent {
|
|
|
21
21
|
* @memberof PutContent
|
|
22
22
|
*/
|
|
23
23
|
name?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Whether the content is published and visible to students
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof PutContent
|
|
28
|
+
*/
|
|
29
|
+
published?: boolean;
|
|
24
30
|
}
|
|
25
31
|
/**
|
|
26
32
|
* Check if a given object implements the PutContent interface.
|
|
@@ -33,6 +33,7 @@ function PutContentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
33
|
}
|
|
34
34
|
return {
|
|
35
35
|
'name': json['name'] == null ? undefined : json['name'],
|
|
36
|
+
'published': json['published'] == null ? undefined : json['published'],
|
|
36
37
|
};
|
|
37
38
|
}
|
|
38
39
|
function PutContentToJSON(json) {
|
|
@@ -44,5 +45,6 @@ function PutContentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
44
45
|
}
|
|
45
46
|
return {
|
|
46
47
|
'name': value['name'],
|
|
48
|
+
'published': value['published'],
|
|
47
49
|
};
|
|
48
50
|
}
|
package/package.json
CHANGED
package/src/models/PutContent.ts
CHANGED
|
@@ -25,6 +25,12 @@ export interface PutContent {
|
|
|
25
25
|
* @memberof PutContent
|
|
26
26
|
*/
|
|
27
27
|
name?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Whether the content is published and visible to students
|
|
30
|
+
* @type {boolean}
|
|
31
|
+
* @memberof PutContent
|
|
32
|
+
*/
|
|
33
|
+
published?: boolean;
|
|
28
34
|
}
|
|
29
35
|
|
|
30
36
|
/**
|
|
@@ -45,6 +51,7 @@ export function PutContentFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
45
51
|
return {
|
|
46
52
|
|
|
47
53
|
'name': json['name'] == null ? undefined : json['name'],
|
|
54
|
+
'published': json['published'] == null ? undefined : json['published'],
|
|
48
55
|
};
|
|
49
56
|
}
|
|
50
57
|
|
|
@@ -60,6 +67,7 @@ export function PutContentToJSONTyped(value?: PutContent | null, ignoreDiscrimin
|
|
|
60
67
|
return {
|
|
61
68
|
|
|
62
69
|
'name': value['name'],
|
|
70
|
+
'published': value['published'],
|
|
63
71
|
};
|
|
64
72
|
}
|
|
65
73
|
|