@easyedu/js-lsm-api 1.126.0 → 1.128.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.
Files changed (38) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/README.md +6 -2
  3. package/dist/apis/ScormToolsApi.d.ts +35 -0
  4. package/dist/apis/ScormToolsApi.js +75 -0
  5. package/dist/apis/index.d.ts +1 -0
  6. package/dist/apis/index.js +1 -0
  7. package/dist/esm/apis/ScormToolsApi.d.ts +35 -0
  8. package/dist/esm/apis/ScormToolsApi.js +71 -0
  9. package/dist/esm/apis/index.d.ts +1 -0
  10. package/dist/esm/apis/index.js +1 -0
  11. package/dist/esm/models/PostVerifyManifest.d.ts +106 -0
  12. package/dist/esm/models/PostVerifyManifest.js +73 -0
  13. package/dist/esm/models/PostVerifyManifestItemsInner.d.ts +74 -0
  14. package/dist/esm/models/PostVerifyManifestItemsInner.js +55 -0
  15. package/dist/esm/models/PostVerifyManifestResourcesInner.d.ts +56 -0
  16. package/dist/esm/models/PostVerifyManifestResourcesInner.js +49 -0
  17. package/dist/esm/models/index.d.ts +3 -0
  18. package/dist/esm/models/index.js +3 -0
  19. package/dist/models/PostVerifyManifest.d.ts +106 -0
  20. package/dist/models/PostVerifyManifest.js +80 -0
  21. package/dist/models/PostVerifyManifestItemsInner.d.ts +74 -0
  22. package/dist/models/PostVerifyManifestItemsInner.js +62 -0
  23. package/dist/models/PostVerifyManifestResourcesInner.d.ts +56 -0
  24. package/dist/models/PostVerifyManifestResourcesInner.js +56 -0
  25. package/dist/models/index.d.ts +3 -0
  26. package/dist/models/index.js +3 -0
  27. package/docs/ContentLibraryQuizApi.md +1 -0
  28. package/docs/PostVerifyManifest.md +59 -0
  29. package/docs/PostVerifyManifestItemsInner.md +48 -0
  30. package/docs/PostVerifyManifestResourcesInner.md +42 -0
  31. package/docs/ScormToolsApi.md +78 -0
  32. package/package.json +1 -1
  33. package/src/apis/ScormToolsApi.ts +80 -0
  34. package/src/apis/index.ts +1 -0
  35. package/src/models/PostVerifyManifest.ts +179 -0
  36. package/src/models/PostVerifyManifestItemsInner.ts +121 -0
  37. package/src/models/PostVerifyManifestResourcesInner.ts +97 -0
  38. package/src/models/index.ts +3 -0
@@ -0,0 +1,48 @@
1
+
2
+ # PostVerifyManifestItemsInner
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `identifier` | string
10
+ `identifierRef` | string
11
+ `title` | string
12
+ `masteryScore` | string
13
+ `maxTimeAllowed` | string
14
+ `timeLimitAction` | string
15
+ `dataFromLms` | string
16
+ `minNormalizedMeasure` | string
17
+
18
+ ## Example
19
+
20
+ ```typescript
21
+ import type { PostVerifyManifestItemsInner } from '@easyedu/js-lsm-api'
22
+
23
+ // TODO: Update the object below with actual values
24
+ const example = {
25
+ "identifier": null,
26
+ "identifierRef": null,
27
+ "title": null,
28
+ "masteryScore": null,
29
+ "maxTimeAllowed": null,
30
+ "timeLimitAction": null,
31
+ "dataFromLms": null,
32
+ "minNormalizedMeasure": null,
33
+ } satisfies PostVerifyManifestItemsInner
34
+
35
+ console.log(example)
36
+
37
+ // Convert the instance to a JSON string
38
+ const exampleJSON: string = JSON.stringify(example)
39
+ console.log(exampleJSON)
40
+
41
+ // Parse the JSON string back to an object
42
+ const exampleParsed = JSON.parse(exampleJSON) as PostVerifyManifestItemsInner
43
+ console.log(exampleParsed)
44
+ ```
45
+
46
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
47
+
48
+
@@ -0,0 +1,42 @@
1
+
2
+ # PostVerifyManifestResourcesInner
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `identifier` | string
10
+ `resourceType` | string
11
+ `scormType` | string
12
+ `href` | string
13
+ `files` | Array<string>
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import type { PostVerifyManifestResourcesInner } from '@easyedu/js-lsm-api'
19
+
20
+ // TODO: Update the object below with actual values
21
+ const example = {
22
+ "identifier": null,
23
+ "resourceType": null,
24
+ "scormType": null,
25
+ "href": null,
26
+ "files": null,
27
+ } satisfies PostVerifyManifestResourcesInner
28
+
29
+ console.log(example)
30
+
31
+ // Convert the instance to a JSON string
32
+ const exampleJSON: string = JSON.stringify(example)
33
+ console.log(exampleJSON)
34
+
35
+ // Parse the JSON string back to an object
36
+ const exampleParsed = JSON.parse(exampleJSON) as PostVerifyManifestResourcesInner
37
+ console.log(exampleParsed)
38
+ ```
39
+
40
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
41
+
42
+
@@ -0,0 +1,78 @@
1
+ # ScormToolsApi
2
+
3
+ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com/stage1*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**verifyScormManifest**](ScormToolsApi.md#verifyscormmanifest) | **POST** /scorm/tools/verify-manifest | Parse and verify a SCORM manifest |
8
+
9
+
10
+
11
+ ## verifyScormManifest
12
+
13
+ > PostVerifyManifest verifyScormManifest(body)
14
+
15
+ Parse and verify a SCORM manifest
16
+
17
+ Public endpoint that takes raw imsmanifest.xml content and returns only parsed values derived from the submitted manifest, plus validation warnings. Request body is limited to 1 MiB.
18
+
19
+ ### Example
20
+
21
+ ```ts
22
+ import {
23
+ Configuration,
24
+ ScormToolsApi,
25
+ } from '@easyedu/js-lsm-api';
26
+ import type { VerifyScormManifestRequest } from '@easyedu/js-lsm-api';
27
+
28
+ async function example() {
29
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
30
+ const api = new ScormToolsApi();
31
+
32
+ const body = {
33
+ // string
34
+ body: body_example,
35
+ } satisfies VerifyScormManifestRequest;
36
+
37
+ try {
38
+ const data = await api.verifyScormManifest(body);
39
+ console.log(data);
40
+ } catch (error) {
41
+ console.error(error);
42
+ }
43
+ }
44
+
45
+ // Run the test
46
+ example().catch(console.error);
47
+ ```
48
+
49
+ ### Parameters
50
+
51
+
52
+ | Name | Type | Description | Notes |
53
+ |------------- | ------------- | ------------- | -------------|
54
+ | **body** | `string` | | |
55
+
56
+ ### Return type
57
+
58
+ [**PostVerifyManifest**](PostVerifyManifest.md)
59
+
60
+ ### Authorization
61
+
62
+ No authorization required
63
+
64
+ ### HTTP request headers
65
+
66
+ - **Content-Type**: `application/xml`, `text/xml`
67
+ - **Accept**: `application/json`
68
+
69
+
70
+ ### HTTP response details
71
+ | Status code | Description | Response headers |
72
+ |-------------|-------------|------------------|
73
+ | **200** | Manifest parsed (check valid field for success) | - |
74
+ | **400** | Request body is empty | - |
75
+ | **413** | Request body exceeds 1 MiB | - |
76
+
77
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
78
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyedu/js-lsm-api",
3
- "version": "1.126.0",
3
+ "version": "1.128.0",
4
4
  "description": "OpenAPI client for @easyedu/js-lsm-api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -0,0 +1,80 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import * as runtime from '../runtime';
16
+ import {
17
+ type PostVerifyManifest,
18
+ PostVerifyManifestFromJSON,
19
+ PostVerifyManifestToJSON,
20
+ } from '../models/PostVerifyManifest';
21
+
22
+ export interface VerifyScormManifestRequest {
23
+ body: string;
24
+ }
25
+
26
+ /**
27
+ *
28
+ */
29
+ export class ScormToolsApi extends runtime.BaseAPI {
30
+
31
+ /**
32
+ * Creates request options for verifyScormManifest without sending the request
33
+ */
34
+ async verifyScormManifestRequestOpts(requestParameters: VerifyScormManifestRequest): Promise<runtime.RequestOpts> {
35
+ if (requestParameters['body'] == null) {
36
+ throw new runtime.RequiredError(
37
+ 'body',
38
+ 'Required parameter "body" was null or undefined when calling verifyScormManifest().'
39
+ );
40
+ }
41
+
42
+ const queryParameters: any = {};
43
+
44
+ const headerParameters: runtime.HTTPHeaders = {};
45
+
46
+ headerParameters['Content-Type'] = 'application/xml';
47
+
48
+
49
+ let urlPath = `/scorm/tools/verify-manifest`;
50
+
51
+ return {
52
+ path: urlPath,
53
+ method: 'POST',
54
+ headers: headerParameters,
55
+ query: queryParameters,
56
+ body: requestParameters['body'] as any,
57
+ };
58
+ }
59
+
60
+ /**
61
+ * Public endpoint that takes raw imsmanifest.xml content and returns only parsed values derived from the submitted manifest, plus validation warnings. Request body is limited to 1 MiB.
62
+ * Parse and verify a SCORM manifest
63
+ */
64
+ async verifyScormManifestRaw(requestParameters: VerifyScormManifestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PostVerifyManifest>> {
65
+ const requestOptions = await this.verifyScormManifestRequestOpts(requestParameters);
66
+ const response = await this.request(requestOptions, initOverrides);
67
+
68
+ return new runtime.JSONApiResponse(response, (jsonValue) => PostVerifyManifestFromJSON(jsonValue));
69
+ }
70
+
71
+ /**
72
+ * Public endpoint that takes raw imsmanifest.xml content and returns only parsed values derived from the submitted manifest, plus validation warnings. Request body is limited to 1 MiB.
73
+ * Parse and verify a SCORM manifest
74
+ */
75
+ async verifyScormManifest(requestParameters: VerifyScormManifestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PostVerifyManifest> {
76
+ const response = await this.verifyScormManifestRaw(requestParameters, initOverrides);
77
+ return await response.value();
78
+ }
79
+
80
+ }
package/src/apis/index.ts CHANGED
@@ -22,6 +22,7 @@ export * from './QuestionImportApi';
22
22
  export * from './ReportingApi';
23
23
  export * from './RichTextApi';
24
24
  export * from './RoleApi';
25
+ export * from './ScormToolsApi';
25
26
  export * from './SupportTicketApi';
26
27
  export * from './SystemApi';
27
28
  export * from './UserApi';
@@ -0,0 +1,179 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { PostVerifyManifestResourcesInner } from './PostVerifyManifestResourcesInner';
17
+ import {
18
+ PostVerifyManifestResourcesInnerFromJSON,
19
+ PostVerifyManifestResourcesInnerFromJSONTyped,
20
+ PostVerifyManifestResourcesInnerToJSON,
21
+ PostVerifyManifestResourcesInnerToJSONTyped,
22
+ } from './PostVerifyManifestResourcesInner';
23
+ import type { PostVerifyManifestItemsInner } from './PostVerifyManifestItemsInner';
24
+ import {
25
+ PostVerifyManifestItemsInnerFromJSON,
26
+ PostVerifyManifestItemsInnerFromJSONTyped,
27
+ PostVerifyManifestItemsInnerToJSON,
28
+ PostVerifyManifestItemsInnerToJSONTyped,
29
+ } from './PostVerifyManifestItemsInner';
30
+
31
+ /**
32
+ * Response from parsing and verifying a SCORM manifest
33
+ * @export
34
+ * @interface PostVerifyManifest
35
+ */
36
+ export interface PostVerifyManifest {
37
+ /**
38
+ * Whether the manifest parsed successfully
39
+ * @type {boolean}
40
+ * @memberof PostVerifyManifest
41
+ */
42
+ valid: boolean;
43
+ /**
44
+ * Parse errors that prevented successful parsing
45
+ * @type {Array<string>}
46
+ * @memberof PostVerifyManifest
47
+ */
48
+ errors: Array<string>;
49
+ /**
50
+ * Non-fatal issues or potential problems detected
51
+ * @type {Array<string>}
52
+ * @memberof PostVerifyManifest
53
+ */
54
+ warnings: Array<string>;
55
+ /**
56
+ * Detected SCORM version (e.g., "1.2", "2004 4th Edition")
57
+ * @type {string}
58
+ * @memberof PostVerifyManifest
59
+ */
60
+ scormVersion?: string | null;
61
+ /**
62
+ * Manifest identifier attribute
63
+ * @type {string}
64
+ * @memberof PostVerifyManifest
65
+ */
66
+ identifier?: string | null;
67
+ /**
68
+ * Manifest version attribute
69
+ * @type {string}
70
+ * @memberof PostVerifyManifest
71
+ */
72
+ version?: string | null;
73
+ /**
74
+ * Organization title (course title)
75
+ * @type {string}
76
+ * @memberof PostVerifyManifest
77
+ */
78
+ title?: string | null;
79
+ /**
80
+ * Metadata schema (e.g., "ADL SCORM")
81
+ * @type {string}
82
+ * @memberof PostVerifyManifest
83
+ */
84
+ schema?: string | null;
85
+ /**
86
+ * Metadata schema version
87
+ * @type {string}
88
+ * @memberof PostVerifyManifest
89
+ */
90
+ schemaVersion?: string | null;
91
+ /**
92
+ * Default organization identifier
93
+ * @type {string}
94
+ * @memberof PostVerifyManifest
95
+ */
96
+ defaultOrganization?: string | null;
97
+ /**
98
+ * List of items (SCOs) from the organization
99
+ * @type {Array<PostVerifyManifestItemsInner>}
100
+ * @memberof PostVerifyManifest
101
+ */
102
+ items?: Array<PostVerifyManifestItemsInner>;
103
+ /**
104
+ * List of resources from the manifest
105
+ * @type {Array<PostVerifyManifestResourcesInner>}
106
+ * @memberof PostVerifyManifest
107
+ */
108
+ resources?: Array<PostVerifyManifestResourcesInner>;
109
+ /**
110
+ * List of SCO entry point URLs
111
+ * @type {Array<string>}
112
+ * @memberof PostVerifyManifest
113
+ */
114
+ entryPoints?: Array<string>;
115
+ }
116
+
117
+ /**
118
+ * Check if a given object implements the PostVerifyManifest interface.
119
+ */
120
+ export function instanceOfPostVerifyManifest(value: object): value is PostVerifyManifest {
121
+ if (!('valid' in value) || value['valid'] === undefined) return false;
122
+ if (!('errors' in value) || value['errors'] === undefined) return false;
123
+ if (!('warnings' in value) || value['warnings'] === undefined) return false;
124
+ return true;
125
+ }
126
+
127
+ export function PostVerifyManifestFromJSON(json: any): PostVerifyManifest {
128
+ return PostVerifyManifestFromJSONTyped(json, false);
129
+ }
130
+
131
+ export function PostVerifyManifestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostVerifyManifest {
132
+ if (json == null) {
133
+ return json;
134
+ }
135
+ return {
136
+
137
+ 'valid': json['valid'],
138
+ 'errors': json['errors'],
139
+ 'warnings': json['warnings'],
140
+ 'scormVersion': json['scorm_version'] == null ? undefined : json['scorm_version'],
141
+ 'identifier': json['identifier'] == null ? undefined : json['identifier'],
142
+ 'version': json['version'] == null ? undefined : json['version'],
143
+ 'title': json['title'] == null ? undefined : json['title'],
144
+ 'schema': json['schema'] == null ? undefined : json['schema'],
145
+ 'schemaVersion': json['schema_version'] == null ? undefined : json['schema_version'],
146
+ 'defaultOrganization': json['default_organization'] == null ? undefined : json['default_organization'],
147
+ 'items': json['items'] == null ? undefined : ((json['items'] as Array<any>).map(PostVerifyManifestItemsInnerFromJSON)),
148
+ 'resources': json['resources'] == null ? undefined : ((json['resources'] as Array<any>).map(PostVerifyManifestResourcesInnerFromJSON)),
149
+ 'entryPoints': json['entry_points'] == null ? undefined : json['entry_points'],
150
+ };
151
+ }
152
+
153
+ export function PostVerifyManifestToJSON(json: any): PostVerifyManifest {
154
+ return PostVerifyManifestToJSONTyped(json, false);
155
+ }
156
+
157
+ export function PostVerifyManifestToJSONTyped(value?: PostVerifyManifest | null, ignoreDiscriminator: boolean = false): any {
158
+ if (value == null) {
159
+ return value;
160
+ }
161
+
162
+ return {
163
+
164
+ 'valid': value['valid'],
165
+ 'errors': value['errors'],
166
+ 'warnings': value['warnings'],
167
+ 'scorm_version': value['scormVersion'],
168
+ 'identifier': value['identifier'],
169
+ 'version': value['version'],
170
+ 'title': value['title'],
171
+ 'schema': value['schema'],
172
+ 'schema_version': value['schemaVersion'],
173
+ 'default_organization': value['defaultOrganization'],
174
+ 'items': value['items'] == null ? undefined : ((value['items'] as Array<any>).map(PostVerifyManifestItemsInnerToJSON)),
175
+ 'resources': value['resources'] == null ? undefined : ((value['resources'] as Array<any>).map(PostVerifyManifestResourcesInnerToJSON)),
176
+ 'entry_points': value['entryPoints'],
177
+ };
178
+ }
179
+
@@ -0,0 +1,121 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface PostVerifyManifestItemsInner
20
+ */
21
+ export interface PostVerifyManifestItemsInner {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof PostVerifyManifestItemsInner
26
+ */
27
+ identifier?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof PostVerifyManifestItemsInner
32
+ */
33
+ identifierRef?: string | null;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof PostVerifyManifestItemsInner
38
+ */
39
+ title?: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof PostVerifyManifestItemsInner
44
+ */
45
+ masteryScore?: string | null;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof PostVerifyManifestItemsInner
50
+ */
51
+ maxTimeAllowed?: string | null;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof PostVerifyManifestItemsInner
56
+ */
57
+ timeLimitAction?: string | null;
58
+ /**
59
+ *
60
+ * @type {string}
61
+ * @memberof PostVerifyManifestItemsInner
62
+ */
63
+ dataFromLms?: string | null;
64
+ /**
65
+ *
66
+ * @type {string}
67
+ * @memberof PostVerifyManifestItemsInner
68
+ */
69
+ minNormalizedMeasure?: string | null;
70
+ }
71
+
72
+ /**
73
+ * Check if a given object implements the PostVerifyManifestItemsInner interface.
74
+ */
75
+ export function instanceOfPostVerifyManifestItemsInner(value: object): value is PostVerifyManifestItemsInner {
76
+ return true;
77
+ }
78
+
79
+ export function PostVerifyManifestItemsInnerFromJSON(json: any): PostVerifyManifestItemsInner {
80
+ return PostVerifyManifestItemsInnerFromJSONTyped(json, false);
81
+ }
82
+
83
+ export function PostVerifyManifestItemsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostVerifyManifestItemsInner {
84
+ if (json == null) {
85
+ return json;
86
+ }
87
+ return {
88
+
89
+ 'identifier': json['identifier'] == null ? undefined : json['identifier'],
90
+ 'identifierRef': json['identifier_ref'] == null ? undefined : json['identifier_ref'],
91
+ 'title': json['title'] == null ? undefined : json['title'],
92
+ 'masteryScore': json['mastery_score'] == null ? undefined : json['mastery_score'],
93
+ 'maxTimeAllowed': json['max_time_allowed'] == null ? undefined : json['max_time_allowed'],
94
+ 'timeLimitAction': json['time_limit_action'] == null ? undefined : json['time_limit_action'],
95
+ 'dataFromLms': json['data_from_lms'] == null ? undefined : json['data_from_lms'],
96
+ 'minNormalizedMeasure': json['min_normalized_measure'] == null ? undefined : json['min_normalized_measure'],
97
+ };
98
+ }
99
+
100
+ export function PostVerifyManifestItemsInnerToJSON(json: any): PostVerifyManifestItemsInner {
101
+ return PostVerifyManifestItemsInnerToJSONTyped(json, false);
102
+ }
103
+
104
+ export function PostVerifyManifestItemsInnerToJSONTyped(value?: PostVerifyManifestItemsInner | null, ignoreDiscriminator: boolean = false): any {
105
+ if (value == null) {
106
+ return value;
107
+ }
108
+
109
+ return {
110
+
111
+ 'identifier': value['identifier'],
112
+ 'identifier_ref': value['identifierRef'],
113
+ 'title': value['title'],
114
+ 'mastery_score': value['masteryScore'],
115
+ 'max_time_allowed': value['maxTimeAllowed'],
116
+ 'time_limit_action': value['timeLimitAction'],
117
+ 'data_from_lms': value['dataFromLms'],
118
+ 'min_normalized_measure': value['minNormalizedMeasure'],
119
+ };
120
+ }
121
+
@@ -0,0 +1,97 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface PostVerifyManifestResourcesInner
20
+ */
21
+ export interface PostVerifyManifestResourcesInner {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof PostVerifyManifestResourcesInner
26
+ */
27
+ identifier?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof PostVerifyManifestResourcesInner
32
+ */
33
+ resourceType?: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof PostVerifyManifestResourcesInner
38
+ */
39
+ scormType?: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof PostVerifyManifestResourcesInner
44
+ */
45
+ href?: string;
46
+ /**
47
+ *
48
+ * @type {Array<string>}
49
+ * @memberof PostVerifyManifestResourcesInner
50
+ */
51
+ files?: Array<string>;
52
+ }
53
+
54
+ /**
55
+ * Check if a given object implements the PostVerifyManifestResourcesInner interface.
56
+ */
57
+ export function instanceOfPostVerifyManifestResourcesInner(value: object): value is PostVerifyManifestResourcesInner {
58
+ return true;
59
+ }
60
+
61
+ export function PostVerifyManifestResourcesInnerFromJSON(json: any): PostVerifyManifestResourcesInner {
62
+ return PostVerifyManifestResourcesInnerFromJSONTyped(json, false);
63
+ }
64
+
65
+ export function PostVerifyManifestResourcesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostVerifyManifestResourcesInner {
66
+ if (json == null) {
67
+ return json;
68
+ }
69
+ return {
70
+
71
+ 'identifier': json['identifier'] == null ? undefined : json['identifier'],
72
+ 'resourceType': json['resource_type'] == null ? undefined : json['resource_type'],
73
+ 'scormType': json['scorm_type'] == null ? undefined : json['scorm_type'],
74
+ 'href': json['href'] == null ? undefined : json['href'],
75
+ 'files': json['files'] == null ? undefined : json['files'],
76
+ };
77
+ }
78
+
79
+ export function PostVerifyManifestResourcesInnerToJSON(json: any): PostVerifyManifestResourcesInner {
80
+ return PostVerifyManifestResourcesInnerToJSONTyped(json, false);
81
+ }
82
+
83
+ export function PostVerifyManifestResourcesInnerToJSONTyped(value?: PostVerifyManifestResourcesInner | null, ignoreDiscriminator: boolean = false): any {
84
+ if (value == null) {
85
+ return value;
86
+ }
87
+
88
+ return {
89
+
90
+ 'identifier': value['identifier'],
91
+ 'resource_type': value['resourceType'],
92
+ 'scorm_type': value['scormType'],
93
+ 'href': value['href'],
94
+ 'files': value['files'],
95
+ };
96
+ }
97
+
@@ -289,6 +289,9 @@ export * from './PostSignupRequest';
289
289
  export * from './PostSignupRequestResponse';
290
290
  export * from './PostSupportTicket';
291
291
  export * from './PostSupportTicketComment';
292
+ export * from './PostVerifyManifest';
293
+ export * from './PostVerifyManifestItemsInner';
294
+ export * from './PostVerifyManifestResourcesInner';
292
295
  export * from './PostZapierEnrollment';
293
296
  export * from './PostZapierSetup';
294
297
  export * from './PostZapierSetupResponse';