@easyedu/js-lsm-api 1.68.0 → 1.69.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.
@@ -11,6 +11,7 @@ docs/ContentApi.md
11
11
  docs/ContentAttemptItem.md
12
12
  docs/ContentAttemptRollupScore.md
13
13
  docs/ContentAttemptScore.md
14
+ docs/ContentAttemptSettings.md
14
15
  docs/ContentLaunchMode.md
15
16
  docs/CourseApi.md
16
17
  docs/CourseCatalog.md
@@ -239,6 +240,7 @@ docs/PostVerifyManifestItemsInner.md
239
240
  docs/PostVerifyManifestResourcesInner.md
240
241
  docs/PutCertificateConfig.md
241
242
  docs/PutContent.md
243
+ docs/PutContentAttemptSettings.md
242
244
  docs/PutContentReorder.md
243
245
  docs/PutContentVersion.md
244
246
  docs/PutCourse.md
@@ -312,6 +314,7 @@ src/models/CertificatePublic.ts
312
314
  src/models/ContentAttemptItem.ts
313
315
  src/models/ContentAttemptRollupScore.ts
314
316
  src/models/ContentAttemptScore.ts
317
+ src/models/ContentAttemptSettings.ts
315
318
  src/models/ContentLaunchMode.ts
316
319
  src/models/CourseCatalog.ts
317
320
  src/models/CourseShare.ts
@@ -531,6 +534,7 @@ src/models/PostVerifyManifestItemsInner.ts
531
534
  src/models/PostVerifyManifestResourcesInner.ts
532
535
  src/models/PutCertificateConfig.ts
533
536
  src/models/PutContent.ts
537
+ src/models/PutContentAttemptSettings.ts
534
538
  src/models/PutContentReorder.ts
535
539
  src/models/PutContentVersion.ts
536
540
  src/models/PutCourse.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @easyedu/js-lsm-api@1.68.0
1
+ # @easyedu/js-lsm-api@1.69.0
2
2
 
3
3
  A TypeScript SDK client for the sbzw93t49b.execute-api.us-east-2.amazonaws.com API.
4
4
 
@@ -253,6 +253,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
253
253
  - [ContentAttemptItem](docs/ContentAttemptItem.md)
254
254
  - [ContentAttemptRollupScore](docs/ContentAttemptRollupScore.md)
255
255
  - [ContentAttemptScore](docs/ContentAttemptScore.md)
256
+ - [ContentAttemptSettings](docs/ContentAttemptSettings.md)
256
257
  - [ContentLaunchMode](docs/ContentLaunchMode.md)
257
258
  - [CourseCatalog](docs/CourseCatalog.md)
258
259
  - [CourseShare](docs/CourseShare.md)
@@ -472,6 +473,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
472
473
  - [PostVerifyManifestResourcesInner](docs/PostVerifyManifestResourcesInner.md)
473
474
  - [PutCertificateConfig](docs/PutCertificateConfig.md)
474
475
  - [PutContent](docs/PutContent.md)
476
+ - [PutContentAttemptSettings](docs/PutContentAttemptSettings.md)
475
477
  - [PutContentReorder](docs/PutContentReorder.md)
476
478
  - [PutContentVersion](docs/PutContentVersion.md)
477
479
  - [PutCourse](docs/PutCourse.md)
@@ -525,7 +527,7 @@ and is automatically generated by the
525
527
  [OpenAPI Generator](https://openapi-generator.tech) project:
526
528
 
527
529
  - API version: `1.0.0`
528
- - Package version: `1.68.0`
530
+ - Package version: `1.69.0`
529
531
  - Generator version: `7.22.0`
530
532
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
531
533
 
@@ -0,0 +1,46 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ContentAttemptSettings
16
+ */
17
+ export interface ContentAttemptSettings {
18
+ /**
19
+ * Maximum allowed attempts for this content
20
+ * @type {number}
21
+ * @memberof ContentAttemptSettings
22
+ */
23
+ maxAttempts: number;
24
+ /**
25
+ * Strategy used to calculate the content rollup score
26
+ * @type {ContentAttemptSettingsScoreRollupStrategyEnum}
27
+ * @memberof ContentAttemptSettings
28
+ */
29
+ scoreRollupStrategy: ContentAttemptSettingsScoreRollupStrategyEnum;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const ContentAttemptSettingsScoreRollupStrategyEnum: {
35
+ readonly Latest: "Latest";
36
+ readonly Best: "Best";
37
+ };
38
+ export type ContentAttemptSettingsScoreRollupStrategyEnum = typeof ContentAttemptSettingsScoreRollupStrategyEnum[keyof typeof ContentAttemptSettingsScoreRollupStrategyEnum];
39
+ /**
40
+ * Check if a given object implements the ContentAttemptSettings interface.
41
+ */
42
+ export declare function instanceOfContentAttemptSettings(value: object): value is ContentAttemptSettings;
43
+ export declare function ContentAttemptSettingsFromJSON(json: any): ContentAttemptSettings;
44
+ export declare function ContentAttemptSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContentAttemptSettings;
45
+ export declare function ContentAttemptSettingsToJSON(json: any): ContentAttemptSettings;
46
+ export declare function ContentAttemptSettingsToJSONTyped(value?: ContentAttemptSettings | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
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
+ * @export
16
+ */
17
+ export const ContentAttemptSettingsScoreRollupStrategyEnum = {
18
+ Latest: 'Latest',
19
+ Best: 'Best'
20
+ };
21
+ /**
22
+ * Check if a given object implements the ContentAttemptSettings interface.
23
+ */
24
+ export function instanceOfContentAttemptSettings(value) {
25
+ if (!('maxAttempts' in value) || value['maxAttempts'] === undefined)
26
+ return false;
27
+ if (!('scoreRollupStrategy' in value) || value['scoreRollupStrategy'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ export function ContentAttemptSettingsFromJSON(json) {
32
+ return ContentAttemptSettingsFromJSONTyped(json, false);
33
+ }
34
+ export function ContentAttemptSettingsFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'maxAttempts': json['max_attempts'],
40
+ 'scoreRollupStrategy': json['score_rollup_strategy'],
41
+ };
42
+ }
43
+ export function ContentAttemptSettingsToJSON(json) {
44
+ return ContentAttemptSettingsToJSONTyped(json, false);
45
+ }
46
+ export function ContentAttemptSettingsToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'max_attempts': value['maxAttempts'],
52
+ 'score_rollup_strategy': value['scoreRollupStrategy'],
53
+ };
54
+ }
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { GetContentContentData } from './GetContentContentData';
13
+ import type { ContentAttemptSettings } from './ContentAttemptSettings';
13
14
  import type { ContentLaunchMode } from './ContentLaunchMode';
14
15
  /**
15
16
  *
@@ -53,6 +54,12 @@ export interface GetContent {
53
54
  * @memberof GetContent
54
55
  */
55
56
  launchMode: ContentLaunchMode;
57
+ /**
58
+ *
59
+ * @type {ContentAttemptSettings}
60
+ * @memberof GetContent
61
+ */
62
+ attemptSettings: ContentAttemptSettings;
56
63
  /**
57
64
  *
58
65
  * @type {GetContentContentData}
@@ -12,6 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { GetContentContentDataFromJSON, GetContentContentDataToJSON, } from './GetContentContentData';
15
+ import { ContentAttemptSettingsFromJSON, ContentAttemptSettingsToJSON, } from './ContentAttemptSettings';
15
16
  import { ContentLaunchModeFromJSON, ContentLaunchModeToJSON, } from './ContentLaunchMode';
16
17
  /**
17
18
  * @export
@@ -39,6 +40,8 @@ export function instanceOfGetContent(value) {
39
40
  return false;
40
41
  if (!('launchMode' in value) || value['launchMode'] === undefined)
41
42
  return false;
43
+ if (!('attemptSettings' in value) || value['attemptSettings'] === undefined)
44
+ return false;
42
45
  if (!('contentData' in value) || value['contentData'] === undefined)
43
46
  return false;
44
47
  if (!('published' in value) || value['published'] === undefined)
@@ -59,6 +62,7 @@ export function GetContentFromJSONTyped(json, ignoreDiscriminator) {
59
62
  'description': json['description'] == null ? undefined : json['description'],
60
63
  'contentType': json['content_type'],
61
64
  'launchMode': ContentLaunchModeFromJSON(json['launch_mode']),
65
+ 'attemptSettings': ContentAttemptSettingsFromJSON(json['attempt_settings']),
62
66
  'contentData': GetContentContentDataFromJSON(json['content_data']),
63
67
  'order': json['order'] == null ? undefined : json['order'],
64
68
  'published': json['published'],
@@ -82,6 +86,7 @@ export function GetContentToJSONTyped(value, ignoreDiscriminator = false) {
82
86
  'description': value['description'],
83
87
  'content_type': value['contentType'],
84
88
  'launch_mode': ContentLaunchModeToJSON(value['launchMode']),
89
+ 'attempt_settings': ContentAttemptSettingsToJSON(value['attemptSettings']),
85
90
  'content_data': GetContentContentDataToJSON(value['contentData']),
86
91
  'order': value['order'],
87
92
  'published': value['published'],
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { ContentLaunchMode } from './ContentLaunchMode';
13
+ import type { PutContentAttemptSettings } from './PutContentAttemptSettings';
13
14
  /**
14
15
  *
15
16
  * @export
@@ -34,6 +35,12 @@ export interface PutContent {
34
35
  * @memberof PutContent
35
36
  */
36
37
  launchMode?: ContentLaunchMode;
38
+ /**
39
+ *
40
+ * @type {PutContentAttemptSettings}
41
+ * @memberof PutContent
42
+ */
43
+ attemptSettings?: PutContentAttemptSettings;
37
44
  }
38
45
  /**
39
46
  * Check if a given object implements the PutContent interface.
@@ -12,6 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { ContentLaunchModeFromJSON, ContentLaunchModeToJSON, } from './ContentLaunchMode';
15
+ import { PutContentAttemptSettingsFromJSON, PutContentAttemptSettingsToJSON, } from './PutContentAttemptSettings';
15
16
  /**
16
17
  * Check if a given object implements the PutContent interface.
17
18
  */
@@ -29,6 +30,7 @@ export function PutContentFromJSONTyped(json, ignoreDiscriminator) {
29
30
  'name': json['name'] == null ? undefined : json['name'],
30
31
  'published': json['published'] == null ? undefined : json['published'],
31
32
  'launchMode': json['launch_mode'] == null ? undefined : ContentLaunchModeFromJSON(json['launch_mode']),
33
+ 'attemptSettings': json['attempt_settings'] == null ? undefined : PutContentAttemptSettingsFromJSON(json['attempt_settings']),
32
34
  };
33
35
  }
34
36
  export function PutContentToJSON(json) {
@@ -42,5 +44,6 @@ export function PutContentToJSONTyped(value, ignoreDiscriminator = false) {
42
44
  'name': value['name'],
43
45
  'published': value['published'],
44
46
  'launch_mode': ContentLaunchModeToJSON(value['launchMode']),
47
+ 'attempt_settings': PutContentAttemptSettingsToJSON(value['attemptSettings']),
45
48
  };
46
49
  }
@@ -0,0 +1,46 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface PutContentAttemptSettings
16
+ */
17
+ export interface PutContentAttemptSettings {
18
+ /**
19
+ * Maximum allowed attempts for this content
20
+ * @type {number}
21
+ * @memberof PutContentAttemptSettings
22
+ */
23
+ maxAttempts?: number;
24
+ /**
25
+ * Strategy used to calculate the content rollup score
26
+ * @type {PutContentAttemptSettingsScoreRollupStrategyEnum}
27
+ * @memberof PutContentAttemptSettings
28
+ */
29
+ scoreRollupStrategy?: PutContentAttemptSettingsScoreRollupStrategyEnum;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const PutContentAttemptSettingsScoreRollupStrategyEnum: {
35
+ readonly Latest: "Latest";
36
+ readonly Best: "Best";
37
+ };
38
+ export type PutContentAttemptSettingsScoreRollupStrategyEnum = typeof PutContentAttemptSettingsScoreRollupStrategyEnum[keyof typeof PutContentAttemptSettingsScoreRollupStrategyEnum];
39
+ /**
40
+ * Check if a given object implements the PutContentAttemptSettings interface.
41
+ */
42
+ export declare function instanceOfPutContentAttemptSettings(value: object): value is PutContentAttemptSettings;
43
+ export declare function PutContentAttemptSettingsFromJSON(json: any): PutContentAttemptSettings;
44
+ export declare function PutContentAttemptSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutContentAttemptSettings;
45
+ export declare function PutContentAttemptSettingsToJSON(json: any): PutContentAttemptSettings;
46
+ export declare function PutContentAttemptSettingsToJSONTyped(value?: PutContentAttemptSettings | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
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
+ * @export
16
+ */
17
+ export const PutContentAttemptSettingsScoreRollupStrategyEnum = {
18
+ Latest: 'Latest',
19
+ Best: 'Best'
20
+ };
21
+ /**
22
+ * Check if a given object implements the PutContentAttemptSettings interface.
23
+ */
24
+ export function instanceOfPutContentAttemptSettings(value) {
25
+ return true;
26
+ }
27
+ export function PutContentAttemptSettingsFromJSON(json) {
28
+ return PutContentAttemptSettingsFromJSONTyped(json, false);
29
+ }
30
+ export function PutContentAttemptSettingsFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'maxAttempts': json['max_attempts'] == null ? undefined : json['max_attempts'],
36
+ 'scoreRollupStrategy': json['score_rollup_strategy'] == null ? undefined : json['score_rollup_strategy'],
37
+ };
38
+ }
39
+ export function PutContentAttemptSettingsToJSON(json) {
40
+ return PutContentAttemptSettingsToJSONTyped(json, false);
41
+ }
42
+ export function PutContentAttemptSettingsToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'max_attempts': value['maxAttempts'],
48
+ 'score_rollup_strategy': value['scoreRollupStrategy'],
49
+ };
50
+ }
@@ -4,6 +4,7 @@ export * from './CertificatePublic';
4
4
  export * from './ContentAttemptItem';
5
5
  export * from './ContentAttemptRollupScore';
6
6
  export * from './ContentAttemptScore';
7
+ export * from './ContentAttemptSettings';
7
8
  export * from './ContentLaunchMode';
8
9
  export * from './CourseCatalog';
9
10
  export * from './CourseShare';
@@ -223,6 +224,7 @@ export * from './PostVerifyManifestItemsInner';
223
224
  export * from './PostVerifyManifestResourcesInner';
224
225
  export * from './PutCertificateConfig';
225
226
  export * from './PutContent';
227
+ export * from './PutContentAttemptSettings';
226
228
  export * from './PutContentReorder';
227
229
  export * from './PutContentVersion';
228
230
  export * from './PutCourse';
@@ -6,6 +6,7 @@ export * from './CertificatePublic';
6
6
  export * from './ContentAttemptItem';
7
7
  export * from './ContentAttemptRollupScore';
8
8
  export * from './ContentAttemptScore';
9
+ export * from './ContentAttemptSettings';
9
10
  export * from './ContentLaunchMode';
10
11
  export * from './CourseCatalog';
11
12
  export * from './CourseShare';
@@ -225,6 +226,7 @@ export * from './PostVerifyManifestItemsInner';
225
226
  export * from './PostVerifyManifestResourcesInner';
226
227
  export * from './PutCertificateConfig';
227
228
  export * from './PutContent';
229
+ export * from './PutContentAttemptSettings';
228
230
  export * from './PutContentReorder';
229
231
  export * from './PutContentVersion';
230
232
  export * from './PutCourse';
@@ -0,0 +1,46 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ContentAttemptSettings
16
+ */
17
+ export interface ContentAttemptSettings {
18
+ /**
19
+ * Maximum allowed attempts for this content
20
+ * @type {number}
21
+ * @memberof ContentAttemptSettings
22
+ */
23
+ maxAttempts: number;
24
+ /**
25
+ * Strategy used to calculate the content rollup score
26
+ * @type {ContentAttemptSettingsScoreRollupStrategyEnum}
27
+ * @memberof ContentAttemptSettings
28
+ */
29
+ scoreRollupStrategy: ContentAttemptSettingsScoreRollupStrategyEnum;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const ContentAttemptSettingsScoreRollupStrategyEnum: {
35
+ readonly Latest: "Latest";
36
+ readonly Best: "Best";
37
+ };
38
+ export type ContentAttemptSettingsScoreRollupStrategyEnum = typeof ContentAttemptSettingsScoreRollupStrategyEnum[keyof typeof ContentAttemptSettingsScoreRollupStrategyEnum];
39
+ /**
40
+ * Check if a given object implements the ContentAttemptSettings interface.
41
+ */
42
+ export declare function instanceOfContentAttemptSettings(value: object): value is ContentAttemptSettings;
43
+ export declare function ContentAttemptSettingsFromJSON(json: any): ContentAttemptSettings;
44
+ export declare function ContentAttemptSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContentAttemptSettings;
45
+ export declare function ContentAttemptSettingsToJSON(json: any): ContentAttemptSettings;
46
+ export declare function ContentAttemptSettingsToJSONTyped(value?: ContentAttemptSettings | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * LMS API
6
+ * LMS API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ContentAttemptSettingsScoreRollupStrategyEnum = void 0;
17
+ exports.instanceOfContentAttemptSettings = instanceOfContentAttemptSettings;
18
+ exports.ContentAttemptSettingsFromJSON = ContentAttemptSettingsFromJSON;
19
+ exports.ContentAttemptSettingsFromJSONTyped = ContentAttemptSettingsFromJSONTyped;
20
+ exports.ContentAttemptSettingsToJSON = ContentAttemptSettingsToJSON;
21
+ exports.ContentAttemptSettingsToJSONTyped = ContentAttemptSettingsToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.ContentAttemptSettingsScoreRollupStrategyEnum = {
26
+ Latest: 'Latest',
27
+ Best: 'Best'
28
+ };
29
+ /**
30
+ * Check if a given object implements the ContentAttemptSettings interface.
31
+ */
32
+ function instanceOfContentAttemptSettings(value) {
33
+ if (!('maxAttempts' in value) || value['maxAttempts'] === undefined)
34
+ return false;
35
+ if (!('scoreRollupStrategy' in value) || value['scoreRollupStrategy'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ function ContentAttemptSettingsFromJSON(json) {
40
+ return ContentAttemptSettingsFromJSONTyped(json, false);
41
+ }
42
+ function ContentAttemptSettingsFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'maxAttempts': json['max_attempts'],
48
+ 'scoreRollupStrategy': json['score_rollup_strategy'],
49
+ };
50
+ }
51
+ function ContentAttemptSettingsToJSON(json) {
52
+ return ContentAttemptSettingsToJSONTyped(json, false);
53
+ }
54
+ function ContentAttemptSettingsToJSONTyped(value, ignoreDiscriminator = false) {
55
+ if (value == null) {
56
+ return value;
57
+ }
58
+ return {
59
+ 'max_attempts': value['maxAttempts'],
60
+ 'score_rollup_strategy': value['scoreRollupStrategy'],
61
+ };
62
+ }
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { GetContentContentData } from './GetContentContentData';
13
+ import type { ContentAttemptSettings } from './ContentAttemptSettings';
13
14
  import type { ContentLaunchMode } from './ContentLaunchMode';
14
15
  /**
15
16
  *
@@ -53,6 +54,12 @@ export interface GetContent {
53
54
  * @memberof GetContent
54
55
  */
55
56
  launchMode: ContentLaunchMode;
57
+ /**
58
+ *
59
+ * @type {ContentAttemptSettings}
60
+ * @memberof GetContent
61
+ */
62
+ attemptSettings: ContentAttemptSettings;
56
63
  /**
57
64
  *
58
65
  * @type {GetContentContentData}
@@ -20,6 +20,7 @@ exports.GetContentFromJSONTyped = GetContentFromJSONTyped;
20
20
  exports.GetContentToJSON = GetContentToJSON;
21
21
  exports.GetContentToJSONTyped = GetContentToJSONTyped;
22
22
  const GetContentContentData_1 = require("./GetContentContentData");
23
+ const ContentAttemptSettings_1 = require("./ContentAttemptSettings");
23
24
  const ContentLaunchMode_1 = require("./ContentLaunchMode");
24
25
  /**
25
26
  * @export
@@ -47,6 +48,8 @@ function instanceOfGetContent(value) {
47
48
  return false;
48
49
  if (!('launchMode' in value) || value['launchMode'] === undefined)
49
50
  return false;
51
+ if (!('attemptSettings' in value) || value['attemptSettings'] === undefined)
52
+ return false;
50
53
  if (!('contentData' in value) || value['contentData'] === undefined)
51
54
  return false;
52
55
  if (!('published' in value) || value['published'] === undefined)
@@ -67,6 +70,7 @@ function GetContentFromJSONTyped(json, ignoreDiscriminator) {
67
70
  'description': json['description'] == null ? undefined : json['description'],
68
71
  'contentType': json['content_type'],
69
72
  'launchMode': (0, ContentLaunchMode_1.ContentLaunchModeFromJSON)(json['launch_mode']),
73
+ 'attemptSettings': (0, ContentAttemptSettings_1.ContentAttemptSettingsFromJSON)(json['attempt_settings']),
70
74
  'contentData': (0, GetContentContentData_1.GetContentContentDataFromJSON)(json['content_data']),
71
75
  'order': json['order'] == null ? undefined : json['order'],
72
76
  'published': json['published'],
@@ -90,6 +94,7 @@ function GetContentToJSONTyped(value, ignoreDiscriminator = false) {
90
94
  'description': value['description'],
91
95
  'content_type': value['contentType'],
92
96
  'launch_mode': (0, ContentLaunchMode_1.ContentLaunchModeToJSON)(value['launchMode']),
97
+ 'attempt_settings': (0, ContentAttemptSettings_1.ContentAttemptSettingsToJSON)(value['attemptSettings']),
93
98
  'content_data': (0, GetContentContentData_1.GetContentContentDataToJSON)(value['contentData']),
94
99
  'order': value['order'],
95
100
  'published': value['published'],
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { ContentLaunchMode } from './ContentLaunchMode';
13
+ import type { PutContentAttemptSettings } from './PutContentAttemptSettings';
13
14
  /**
14
15
  *
15
16
  * @export
@@ -34,6 +35,12 @@ export interface PutContent {
34
35
  * @memberof PutContent
35
36
  */
36
37
  launchMode?: ContentLaunchMode;
38
+ /**
39
+ *
40
+ * @type {PutContentAttemptSettings}
41
+ * @memberof PutContent
42
+ */
43
+ attemptSettings?: PutContentAttemptSettings;
37
44
  }
38
45
  /**
39
46
  * Check if a given object implements the PutContent interface.
@@ -19,6 +19,7 @@ exports.PutContentFromJSONTyped = PutContentFromJSONTyped;
19
19
  exports.PutContentToJSON = PutContentToJSON;
20
20
  exports.PutContentToJSONTyped = PutContentToJSONTyped;
21
21
  const ContentLaunchMode_1 = require("./ContentLaunchMode");
22
+ const PutContentAttemptSettings_1 = require("./PutContentAttemptSettings");
22
23
  /**
23
24
  * Check if a given object implements the PutContent interface.
24
25
  */
@@ -36,6 +37,7 @@ function PutContentFromJSONTyped(json, ignoreDiscriminator) {
36
37
  'name': json['name'] == null ? undefined : json['name'],
37
38
  'published': json['published'] == null ? undefined : json['published'],
38
39
  'launchMode': json['launch_mode'] == null ? undefined : (0, ContentLaunchMode_1.ContentLaunchModeFromJSON)(json['launch_mode']),
40
+ 'attemptSettings': json['attempt_settings'] == null ? undefined : (0, PutContentAttemptSettings_1.PutContentAttemptSettingsFromJSON)(json['attempt_settings']),
39
41
  };
40
42
  }
41
43
  function PutContentToJSON(json) {
@@ -49,5 +51,6 @@ function PutContentToJSONTyped(value, ignoreDiscriminator = false) {
49
51
  'name': value['name'],
50
52
  'published': value['published'],
51
53
  'launch_mode': (0, ContentLaunchMode_1.ContentLaunchModeToJSON)(value['launchMode']),
54
+ 'attempt_settings': (0, PutContentAttemptSettings_1.PutContentAttemptSettingsToJSON)(value['attemptSettings']),
52
55
  };
53
56
  }
@@ -0,0 +1,46 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface PutContentAttemptSettings
16
+ */
17
+ export interface PutContentAttemptSettings {
18
+ /**
19
+ * Maximum allowed attempts for this content
20
+ * @type {number}
21
+ * @memberof PutContentAttemptSettings
22
+ */
23
+ maxAttempts?: number;
24
+ /**
25
+ * Strategy used to calculate the content rollup score
26
+ * @type {PutContentAttemptSettingsScoreRollupStrategyEnum}
27
+ * @memberof PutContentAttemptSettings
28
+ */
29
+ scoreRollupStrategy?: PutContentAttemptSettingsScoreRollupStrategyEnum;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const PutContentAttemptSettingsScoreRollupStrategyEnum: {
35
+ readonly Latest: "Latest";
36
+ readonly Best: "Best";
37
+ };
38
+ export type PutContentAttemptSettingsScoreRollupStrategyEnum = typeof PutContentAttemptSettingsScoreRollupStrategyEnum[keyof typeof PutContentAttemptSettingsScoreRollupStrategyEnum];
39
+ /**
40
+ * Check if a given object implements the PutContentAttemptSettings interface.
41
+ */
42
+ export declare function instanceOfPutContentAttemptSettings(value: object): value is PutContentAttemptSettings;
43
+ export declare function PutContentAttemptSettingsFromJSON(json: any): PutContentAttemptSettings;
44
+ export declare function PutContentAttemptSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutContentAttemptSettings;
45
+ export declare function PutContentAttemptSettingsToJSON(json: any): PutContentAttemptSettings;
46
+ export declare function PutContentAttemptSettingsToJSONTyped(value?: PutContentAttemptSettings | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * LMS API
6
+ * LMS API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.PutContentAttemptSettingsScoreRollupStrategyEnum = void 0;
17
+ exports.instanceOfPutContentAttemptSettings = instanceOfPutContentAttemptSettings;
18
+ exports.PutContentAttemptSettingsFromJSON = PutContentAttemptSettingsFromJSON;
19
+ exports.PutContentAttemptSettingsFromJSONTyped = PutContentAttemptSettingsFromJSONTyped;
20
+ exports.PutContentAttemptSettingsToJSON = PutContentAttemptSettingsToJSON;
21
+ exports.PutContentAttemptSettingsToJSONTyped = PutContentAttemptSettingsToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.PutContentAttemptSettingsScoreRollupStrategyEnum = {
26
+ Latest: 'Latest',
27
+ Best: 'Best'
28
+ };
29
+ /**
30
+ * Check if a given object implements the PutContentAttemptSettings interface.
31
+ */
32
+ function instanceOfPutContentAttemptSettings(value) {
33
+ return true;
34
+ }
35
+ function PutContentAttemptSettingsFromJSON(json) {
36
+ return PutContentAttemptSettingsFromJSONTyped(json, false);
37
+ }
38
+ function PutContentAttemptSettingsFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'maxAttempts': json['max_attempts'] == null ? undefined : json['max_attempts'],
44
+ 'scoreRollupStrategy': json['score_rollup_strategy'] == null ? undefined : json['score_rollup_strategy'],
45
+ };
46
+ }
47
+ function PutContentAttemptSettingsToJSON(json) {
48
+ return PutContentAttemptSettingsToJSONTyped(json, false);
49
+ }
50
+ function PutContentAttemptSettingsToJSONTyped(value, ignoreDiscriminator = false) {
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'max_attempts': value['maxAttempts'],
56
+ 'score_rollup_strategy': value['scoreRollupStrategy'],
57
+ };
58
+ }
@@ -4,6 +4,7 @@ export * from './CertificatePublic';
4
4
  export * from './ContentAttemptItem';
5
5
  export * from './ContentAttemptRollupScore';
6
6
  export * from './ContentAttemptScore';
7
+ export * from './ContentAttemptSettings';
7
8
  export * from './ContentLaunchMode';
8
9
  export * from './CourseCatalog';
9
10
  export * from './CourseShare';
@@ -223,6 +224,7 @@ export * from './PostVerifyManifestItemsInner';
223
224
  export * from './PostVerifyManifestResourcesInner';
224
225
  export * from './PutCertificateConfig';
225
226
  export * from './PutContent';
227
+ export * from './PutContentAttemptSettings';
226
228
  export * from './PutContentReorder';
227
229
  export * from './PutContentVersion';
228
230
  export * from './PutCourse';
@@ -22,6 +22,7 @@ __exportStar(require("./CertificatePublic"), exports);
22
22
  __exportStar(require("./ContentAttemptItem"), exports);
23
23
  __exportStar(require("./ContentAttemptRollupScore"), exports);
24
24
  __exportStar(require("./ContentAttemptScore"), exports);
25
+ __exportStar(require("./ContentAttemptSettings"), exports);
25
26
  __exportStar(require("./ContentLaunchMode"), exports);
26
27
  __exportStar(require("./CourseCatalog"), exports);
27
28
  __exportStar(require("./CourseShare"), exports);
@@ -241,6 +242,7 @@ __exportStar(require("./PostVerifyManifestItemsInner"), exports);
241
242
  __exportStar(require("./PostVerifyManifestResourcesInner"), exports);
242
243
  __exportStar(require("./PutCertificateConfig"), exports);
243
244
  __exportStar(require("./PutContent"), exports);
245
+ __exportStar(require("./PutContentAttemptSettings"), exports);
244
246
  __exportStar(require("./PutContentReorder"), exports);
245
247
  __exportStar(require("./PutContentVersion"), exports);
246
248
  __exportStar(require("./PutCourse"), exports);
@@ -0,0 +1,36 @@
1
+
2
+ # ContentAttemptSettings
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `maxAttempts` | number
10
+ `scoreRollupStrategy` | string
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { ContentAttemptSettings } from '@easyedu/js-lsm-api'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "maxAttempts": null,
20
+ "scoreRollupStrategy": null,
21
+ } satisfies ContentAttemptSettings
22
+
23
+ console.log(example)
24
+
25
+ // Convert the instance to a JSON string
26
+ const exampleJSON: string = JSON.stringify(example)
27
+ console.log(exampleJSON)
28
+
29
+ // Parse the JSON string back to an object
30
+ const exampleParsed = JSON.parse(exampleJSON) as ContentAttemptSettings
31
+ console.log(exampleParsed)
32
+ ```
33
+
34
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
+
36
+
@@ -12,6 +12,7 @@ Name | Type
12
12
  `description` | string
13
13
  `contentType` | string
14
14
  `launchMode` | [ContentLaunchMode](ContentLaunchMode.md)
15
+ `attemptSettings` | [ContentAttemptSettings](ContentAttemptSettings.md)
15
16
  `contentData` | [GetContentContentData](GetContentContentData.md)
16
17
  `order` | number
17
18
  `published` | boolean
@@ -34,6 +35,7 @@ const example = {
34
35
  "description": null,
35
36
  "contentType": null,
36
37
  "launchMode": null,
38
+ "attemptSettings": null,
37
39
  "contentData": null,
38
40
  "order": null,
39
41
  "published": null,
@@ -9,6 +9,7 @@ Name | Type
9
9
  `name` | string
10
10
  `published` | boolean
11
11
  `launchMode` | [ContentLaunchMode](ContentLaunchMode.md)
12
+ `attemptSettings` | [PutContentAttemptSettings](PutContentAttemptSettings.md)
12
13
 
13
14
  ## Example
14
15
 
@@ -20,6 +21,7 @@ const example = {
20
21
  "name": null,
21
22
  "published": null,
22
23
  "launchMode": null,
24
+ "attemptSettings": null,
23
25
  } satisfies PutContent
24
26
 
25
27
  console.log(example)
@@ -0,0 +1,36 @@
1
+
2
+ # PutContentAttemptSettings
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `maxAttempts` | number
10
+ `scoreRollupStrategy` | string
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { PutContentAttemptSettings } from '@easyedu/js-lsm-api'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "maxAttempts": null,
20
+ "scoreRollupStrategy": null,
21
+ } satisfies PutContentAttemptSettings
22
+
23
+ console.log(example)
24
+
25
+ // Convert the instance to a JSON string
26
+ const exampleJSON: string = JSON.stringify(example)
27
+ console.log(exampleJSON)
28
+
29
+ // Parse the JSON string back to an object
30
+ const exampleParsed = JSON.parse(exampleJSON) as PutContentAttemptSettings
31
+ console.log(exampleParsed)
32
+ ```
33
+
34
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
+
36
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyedu/js-lsm-api",
3
- "version": "1.68.0",
3
+ "version": "1.69.0",
4
4
  "description": "OpenAPI client for @easyedu/js-lsm-api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -0,0 +1,86 @@
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 ContentAttemptSettings
20
+ */
21
+ export interface ContentAttemptSettings {
22
+ /**
23
+ * Maximum allowed attempts for this content
24
+ * @type {number}
25
+ * @memberof ContentAttemptSettings
26
+ */
27
+ maxAttempts: number;
28
+ /**
29
+ * Strategy used to calculate the content rollup score
30
+ * @type {ContentAttemptSettingsScoreRollupStrategyEnum}
31
+ * @memberof ContentAttemptSettings
32
+ */
33
+ scoreRollupStrategy: ContentAttemptSettingsScoreRollupStrategyEnum;
34
+ }
35
+
36
+
37
+ /**
38
+ * @export
39
+ */
40
+ export const ContentAttemptSettingsScoreRollupStrategyEnum = {
41
+ Latest: 'Latest',
42
+ Best: 'Best'
43
+ } as const;
44
+ export type ContentAttemptSettingsScoreRollupStrategyEnum = typeof ContentAttemptSettingsScoreRollupStrategyEnum[keyof typeof ContentAttemptSettingsScoreRollupStrategyEnum];
45
+
46
+
47
+ /**
48
+ * Check if a given object implements the ContentAttemptSettings interface.
49
+ */
50
+ export function instanceOfContentAttemptSettings(value: object): value is ContentAttemptSettings {
51
+ if (!('maxAttempts' in value) || value['maxAttempts'] === undefined) return false;
52
+ if (!('scoreRollupStrategy' in value) || value['scoreRollupStrategy'] === undefined) return false;
53
+ return true;
54
+ }
55
+
56
+ export function ContentAttemptSettingsFromJSON(json: any): ContentAttemptSettings {
57
+ return ContentAttemptSettingsFromJSONTyped(json, false);
58
+ }
59
+
60
+ export function ContentAttemptSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContentAttemptSettings {
61
+ if (json == null) {
62
+ return json;
63
+ }
64
+ return {
65
+
66
+ 'maxAttempts': json['max_attempts'],
67
+ 'scoreRollupStrategy': json['score_rollup_strategy'],
68
+ };
69
+ }
70
+
71
+ export function ContentAttemptSettingsToJSON(json: any): ContentAttemptSettings {
72
+ return ContentAttemptSettingsToJSONTyped(json, false);
73
+ }
74
+
75
+ export function ContentAttemptSettingsToJSONTyped(value?: ContentAttemptSettings | null, ignoreDiscriminator: boolean = false): any {
76
+ if (value == null) {
77
+ return value;
78
+ }
79
+
80
+ return {
81
+
82
+ 'max_attempts': value['maxAttempts'],
83
+ 'score_rollup_strategy': value['scoreRollupStrategy'],
84
+ };
85
+ }
86
+
@@ -20,6 +20,13 @@ import {
20
20
  GetContentContentDataToJSON,
21
21
  GetContentContentDataToJSONTyped,
22
22
  } from './GetContentContentData';
23
+ import type { ContentAttemptSettings } from './ContentAttemptSettings';
24
+ import {
25
+ ContentAttemptSettingsFromJSON,
26
+ ContentAttemptSettingsFromJSONTyped,
27
+ ContentAttemptSettingsToJSON,
28
+ ContentAttemptSettingsToJSONTyped,
29
+ } from './ContentAttemptSettings';
23
30
  import type { ContentLaunchMode } from './ContentLaunchMode';
24
31
  import {
25
32
  ContentLaunchModeFromJSON,
@@ -70,6 +77,12 @@ export interface GetContent {
70
77
  * @memberof GetContent
71
78
  */
72
79
  launchMode: ContentLaunchMode;
80
+ /**
81
+ *
82
+ * @type {ContentAttemptSettings}
83
+ * @memberof GetContent
84
+ */
85
+ attemptSettings: ContentAttemptSettings;
73
86
  /**
74
87
  *
75
88
  * @type {GetContentContentData}
@@ -145,6 +158,7 @@ export function instanceOfGetContent(value: object): value is GetContent {
145
158
  if (!('name' in value) || value['name'] === undefined) return false;
146
159
  if (!('contentType' in value) || value['contentType'] === undefined) return false;
147
160
  if (!('launchMode' in value) || value['launchMode'] === undefined) return false;
161
+ if (!('attemptSettings' in value) || value['attemptSettings'] === undefined) return false;
148
162
  if (!('contentData' in value) || value['contentData'] === undefined) return false;
149
163
  if (!('published' in value) || value['published'] === undefined) return false;
150
164
  return true;
@@ -166,6 +180,7 @@ export function GetContentFromJSONTyped(json: any, ignoreDiscriminator: boolean)
166
180
  'description': json['description'] == null ? undefined : json['description'],
167
181
  'contentType': json['content_type'],
168
182
  'launchMode': ContentLaunchModeFromJSON(json['launch_mode']),
183
+ 'attemptSettings': ContentAttemptSettingsFromJSON(json['attempt_settings']),
169
184
  'contentData': GetContentContentDataFromJSON(json['content_data']),
170
185
  'order': json['order'] == null ? undefined : json['order'],
171
186
  'published': json['published'],
@@ -193,6 +208,7 @@ export function GetContentToJSONTyped(value?: Omit<GetContent, 'id'|'created_dat
193
208
  'description': value['description'],
194
209
  'content_type': value['contentType'],
195
210
  'launch_mode': ContentLaunchModeToJSON(value['launchMode']),
211
+ 'attempt_settings': ContentAttemptSettingsToJSON(value['attemptSettings']),
196
212
  'content_data': GetContentContentDataToJSON(value['contentData']),
197
213
  'order': value['order'],
198
214
  'published': value['published'],
@@ -20,6 +20,13 @@ import {
20
20
  ContentLaunchModeToJSON,
21
21
  ContentLaunchModeToJSONTyped,
22
22
  } from './ContentLaunchMode';
23
+ import type { PutContentAttemptSettings } from './PutContentAttemptSettings';
24
+ import {
25
+ PutContentAttemptSettingsFromJSON,
26
+ PutContentAttemptSettingsFromJSONTyped,
27
+ PutContentAttemptSettingsToJSON,
28
+ PutContentAttemptSettingsToJSONTyped,
29
+ } from './PutContentAttemptSettings';
23
30
 
24
31
  /**
25
32
  *
@@ -45,6 +52,12 @@ export interface PutContent {
45
52
  * @memberof PutContent
46
53
  */
47
54
  launchMode?: ContentLaunchMode;
55
+ /**
56
+ *
57
+ * @type {PutContentAttemptSettings}
58
+ * @memberof PutContent
59
+ */
60
+ attemptSettings?: PutContentAttemptSettings;
48
61
  }
49
62
 
50
63
 
@@ -69,6 +82,7 @@ export function PutContentFromJSONTyped(json: any, ignoreDiscriminator: boolean)
69
82
  'name': json['name'] == null ? undefined : json['name'],
70
83
  'published': json['published'] == null ? undefined : json['published'],
71
84
  'launchMode': json['launch_mode'] == null ? undefined : ContentLaunchModeFromJSON(json['launch_mode']),
85
+ 'attemptSettings': json['attempt_settings'] == null ? undefined : PutContentAttemptSettingsFromJSON(json['attempt_settings']),
72
86
  };
73
87
  }
74
88
 
@@ -86,6 +100,7 @@ export function PutContentToJSONTyped(value?: PutContent | null, ignoreDiscrimin
86
100
  'name': value['name'],
87
101
  'published': value['published'],
88
102
  'launch_mode': ContentLaunchModeToJSON(value['launchMode']),
103
+ 'attempt_settings': PutContentAttemptSettingsToJSON(value['attemptSettings']),
89
104
  };
90
105
  }
91
106
 
@@ -0,0 +1,84 @@
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 PutContentAttemptSettings
20
+ */
21
+ export interface PutContentAttemptSettings {
22
+ /**
23
+ * Maximum allowed attempts for this content
24
+ * @type {number}
25
+ * @memberof PutContentAttemptSettings
26
+ */
27
+ maxAttempts?: number;
28
+ /**
29
+ * Strategy used to calculate the content rollup score
30
+ * @type {PutContentAttemptSettingsScoreRollupStrategyEnum}
31
+ * @memberof PutContentAttemptSettings
32
+ */
33
+ scoreRollupStrategy?: PutContentAttemptSettingsScoreRollupStrategyEnum;
34
+ }
35
+
36
+
37
+ /**
38
+ * @export
39
+ */
40
+ export const PutContentAttemptSettingsScoreRollupStrategyEnum = {
41
+ Latest: 'Latest',
42
+ Best: 'Best'
43
+ } as const;
44
+ export type PutContentAttemptSettingsScoreRollupStrategyEnum = typeof PutContentAttemptSettingsScoreRollupStrategyEnum[keyof typeof PutContentAttemptSettingsScoreRollupStrategyEnum];
45
+
46
+
47
+ /**
48
+ * Check if a given object implements the PutContentAttemptSettings interface.
49
+ */
50
+ export function instanceOfPutContentAttemptSettings(value: object): value is PutContentAttemptSettings {
51
+ return true;
52
+ }
53
+
54
+ export function PutContentAttemptSettingsFromJSON(json: any): PutContentAttemptSettings {
55
+ return PutContentAttemptSettingsFromJSONTyped(json, false);
56
+ }
57
+
58
+ export function PutContentAttemptSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutContentAttemptSettings {
59
+ if (json == null) {
60
+ return json;
61
+ }
62
+ return {
63
+
64
+ 'maxAttempts': json['max_attempts'] == null ? undefined : json['max_attempts'],
65
+ 'scoreRollupStrategy': json['score_rollup_strategy'] == null ? undefined : json['score_rollup_strategy'],
66
+ };
67
+ }
68
+
69
+ export function PutContentAttemptSettingsToJSON(json: any): PutContentAttemptSettings {
70
+ return PutContentAttemptSettingsToJSONTyped(json, false);
71
+ }
72
+
73
+ export function PutContentAttemptSettingsToJSONTyped(value?: PutContentAttemptSettings | null, ignoreDiscriminator: boolean = false): any {
74
+ if (value == null) {
75
+ return value;
76
+ }
77
+
78
+ return {
79
+
80
+ 'max_attempts': value['maxAttempts'],
81
+ 'score_rollup_strategy': value['scoreRollupStrategy'],
82
+ };
83
+ }
84
+
@@ -6,6 +6,7 @@ export * from './CertificatePublic';
6
6
  export * from './ContentAttemptItem';
7
7
  export * from './ContentAttemptRollupScore';
8
8
  export * from './ContentAttemptScore';
9
+ export * from './ContentAttemptSettings';
9
10
  export * from './ContentLaunchMode';
10
11
  export * from './CourseCatalog';
11
12
  export * from './CourseShare';
@@ -225,6 +226,7 @@ export * from './PostVerifyManifestItemsInner';
225
226
  export * from './PostVerifyManifestResourcesInner';
226
227
  export * from './PutCertificateConfig';
227
228
  export * from './PutContent';
229
+ export * from './PutContentAttemptSettings';
228
230
  export * from './PutContentReorder';
229
231
  export * from './PutContentVersion';
230
232
  export * from './PutCourse';