@easyedu/js-lsm-api 1.27.0 → 1.28.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.27.0
1
+ ## @easyedu/js-lsm-api@1.28.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.27.0 --save
39
+ npm install @easyedu/js-lsm-api@1.28.0 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -76,6 +76,24 @@ export interface GetContent {
76
76
  * @memberof GetContent
77
77
  */
78
78
  readonly updatedDate?: Date;
79
+ /**
80
+ * Active version number for versioned content types (SCORM, Video, PDF, File)
81
+ * @type {number}
82
+ * @memberof GetContent
83
+ */
84
+ readonly activeVersionNumber?: number;
85
+ /**
86
+ * Active version ID for versioned content types
87
+ * @type {string}
88
+ * @memberof GetContent
89
+ */
90
+ readonly activeVersionId?: string;
91
+ /**
92
+ * Whether this content has multiple versions
93
+ * @type {boolean}
94
+ * @memberof GetContent
95
+ */
96
+ readonly hasMultipleVersions?: boolean;
79
97
  }
80
98
  /**
81
99
  * @export
@@ -97,4 +115,4 @@ export declare function instanceOfGetContent(value: object): value is GetContent
97
115
  export declare function GetContentFromJSON(json: any): GetContent;
98
116
  export declare function GetContentFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContent;
99
117
  export declare function GetContentToJSON(json: any): GetContent;
100
- export declare function GetContentToJSONTyped(value?: Omit<GetContent, 'id' | 'created_date' | 'updated_date'> | null, ignoreDiscriminator?: boolean): any;
118
+ export declare function GetContentToJSONTyped(value?: Omit<GetContent, 'id' | 'created_date' | 'updated_date' | 'active_version_number' | 'active_version_id' | 'has_multiple_versions'> | null, ignoreDiscriminator?: boolean): any;
@@ -60,6 +60,9 @@ export function GetContentFromJSONTyped(json, ignoreDiscriminator) {
60
60
  'published': json['published'],
61
61
  'createdDate': json['created_date'] == null ? undefined : (new Date(json['created_date'])),
62
62
  'updatedDate': json['updated_date'] == null ? undefined : (new Date(json['updated_date'])),
63
+ 'activeVersionNumber': json['active_version_number'] == null ? undefined : json['active_version_number'],
64
+ 'activeVersionId': json['active_version_id'] == null ? undefined : json['active_version_id'],
65
+ 'hasMultipleVersions': json['has_multiple_versions'] == null ? undefined : json['has_multiple_versions'],
63
66
  };
64
67
  }
65
68
  export function GetContentToJSON(json) {
@@ -76,6 +76,24 @@ export interface GetContent {
76
76
  * @memberof GetContent
77
77
  */
78
78
  readonly updatedDate?: Date;
79
+ /**
80
+ * Active version number for versioned content types (SCORM, Video, PDF, File)
81
+ * @type {number}
82
+ * @memberof GetContent
83
+ */
84
+ readonly activeVersionNumber?: number;
85
+ /**
86
+ * Active version ID for versioned content types
87
+ * @type {string}
88
+ * @memberof GetContent
89
+ */
90
+ readonly activeVersionId?: string;
91
+ /**
92
+ * Whether this content has multiple versions
93
+ * @type {boolean}
94
+ * @memberof GetContent
95
+ */
96
+ readonly hasMultipleVersions?: boolean;
79
97
  }
80
98
  /**
81
99
  * @export
@@ -97,4 +115,4 @@ export declare function instanceOfGetContent(value: object): value is GetContent
97
115
  export declare function GetContentFromJSON(json: any): GetContent;
98
116
  export declare function GetContentFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContent;
99
117
  export declare function GetContentToJSON(json: any): GetContent;
100
- export declare function GetContentToJSONTyped(value?: Omit<GetContent, 'id' | 'created_date' | 'updated_date'> | null, ignoreDiscriminator?: boolean): any;
118
+ export declare function GetContentToJSONTyped(value?: Omit<GetContent, 'id' | 'created_date' | 'updated_date' | 'active_version_number' | 'active_version_id' | 'has_multiple_versions'> | null, ignoreDiscriminator?: boolean): any;
@@ -68,6 +68,9 @@ function GetContentFromJSONTyped(json, ignoreDiscriminator) {
68
68
  'published': json['published'],
69
69
  'createdDate': json['created_date'] == null ? undefined : (new Date(json['created_date'])),
70
70
  'updatedDate': json['updated_date'] == null ? undefined : (new Date(json['updated_date'])),
71
+ 'activeVersionNumber': json['active_version_number'] == null ? undefined : json['active_version_number'],
72
+ 'activeVersionId': json['active_version_id'] == null ? undefined : json['active_version_id'],
73
+ 'hasMultipleVersions': json['has_multiple_versions'] == null ? undefined : json['has_multiple_versions'],
71
74
  };
72
75
  }
73
76
  function GetContentToJSON(json) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyedu/js-lsm-api",
3
- "version": "1.27.0",
3
+ "version": "1.28.0",
4
4
  "description": "OpenAPI client for @easyedu/js-lsm-api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -87,6 +87,24 @@ export interface GetContent {
87
87
  * @memberof GetContent
88
88
  */
89
89
  readonly updatedDate?: Date;
90
+ /**
91
+ * Active version number for versioned content types (SCORM, Video, PDF, File)
92
+ * @type {number}
93
+ * @memberof GetContent
94
+ */
95
+ readonly activeVersionNumber?: number;
96
+ /**
97
+ * Active version ID for versioned content types
98
+ * @type {string}
99
+ * @memberof GetContent
100
+ */
101
+ readonly activeVersionId?: string;
102
+ /**
103
+ * Whether this content has multiple versions
104
+ * @type {boolean}
105
+ * @memberof GetContent
106
+ */
107
+ readonly hasMultipleVersions?: boolean;
90
108
  }
91
109
 
92
110
 
@@ -138,6 +156,9 @@ export function GetContentFromJSONTyped(json: any, ignoreDiscriminator: boolean)
138
156
  'published': json['published'],
139
157
  'createdDate': json['created_date'] == null ? undefined : (new Date(json['created_date'])),
140
158
  'updatedDate': json['updated_date'] == null ? undefined : (new Date(json['updated_date'])),
159
+ 'activeVersionNumber': json['active_version_number'] == null ? undefined : json['active_version_number'],
160
+ 'activeVersionId': json['active_version_id'] == null ? undefined : json['active_version_id'],
161
+ 'hasMultipleVersions': json['has_multiple_versions'] == null ? undefined : json['has_multiple_versions'],
141
162
  };
142
163
  }
143
164
 
@@ -145,7 +166,7 @@ export function GetContentToJSON(json: any): GetContent {
145
166
  return GetContentToJSONTyped(json, false);
146
167
  }
147
168
 
148
- export function GetContentToJSONTyped(value?: Omit<GetContent, 'id'|'created_date'|'updated_date'> | null, ignoreDiscriminator: boolean = false): any {
169
+ export function GetContentToJSONTyped(value?: Omit<GetContent, 'id'|'created_date'|'updated_date'|'active_version_number'|'active_version_id'|'has_multiple_versions'> | null, ignoreDiscriminator: boolean = false): any {
149
170
  if (value == null) {
150
171
  return value;
151
172
  }