@easyedu/js-lsm-api 1.88.0 → 1.90.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 (87) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/README.md +11 -2
  3. package/dist/apis/ContentLibraryApi.d.ts +19 -0
  4. package/dist/apis/ContentLibraryApi.js +47 -0
  5. package/dist/apis/PlayerApi.d.ts +73 -0
  6. package/dist/apis/PlayerApi.js +188 -0
  7. package/dist/esm/apis/ContentLibraryApi.d.ts +19 -0
  8. package/dist/esm/apis/ContentLibraryApi.js +47 -0
  9. package/dist/esm/apis/PlayerApi.d.ts +73 -0
  10. package/dist/esm/apis/PlayerApi.js +188 -0
  11. package/dist/esm/models/CertificateCanvasImageElement.d.ts +0 -13
  12. package/dist/esm/models/CertificateCanvasImageElement.js +0 -10
  13. package/dist/esm/models/CertificateCanvasLineElement.d.ts +0 -13
  14. package/dist/esm/models/CertificateCanvasLineElement.js +0 -10
  15. package/dist/esm/models/CertificateCanvasPortalLogoElement.d.ts +0 -13
  16. package/dist/esm/models/CertificateCanvasPortalLogoElement.js +0 -10
  17. package/dist/esm/models/CertificateCanvasShapeElement.d.ts +0 -13
  18. package/dist/esm/models/CertificateCanvasShapeElement.js +0 -10
  19. package/dist/esm/models/CertificateCanvasTextElement.d.ts +0 -13
  20. package/dist/esm/models/CertificateCanvasTextElement.js +0 -10
  21. package/dist/esm/models/CertificateCanvasVerificationQrElement.d.ts +0 -13
  22. package/dist/esm/models/CertificateCanvasVerificationQrElement.js +0 -10
  23. package/dist/esm/models/GetCourseVersionItemSession.d.ts +7 -0
  24. package/dist/esm/models/GetCourseVersionItemSession.js +5 -0
  25. package/dist/esm/models/GetResourceSession.d.ts +161 -0
  26. package/dist/esm/models/GetResourceSession.js +112 -0
  27. package/dist/esm/models/GetResourceSessionList.d.ts +57 -0
  28. package/dist/esm/models/GetResourceSessionList.js +60 -0
  29. package/dist/esm/models/PostResourceVersionSession.d.ts +32 -0
  30. package/dist/esm/models/PostResourceVersionSession.js +41 -0
  31. package/dist/esm/models/ResourceSessionEnvironment.d.ts +25 -0
  32. package/dist/esm/models/ResourceSessionEnvironment.js +43 -0
  33. package/dist/esm/models/index.d.ts +4 -0
  34. package/dist/esm/models/index.js +4 -0
  35. package/dist/models/CertificateCanvasImageElement.d.ts +0 -13
  36. package/dist/models/CertificateCanvasImageElement.js +1 -11
  37. package/dist/models/CertificateCanvasLineElement.d.ts +0 -13
  38. package/dist/models/CertificateCanvasLineElement.js +0 -11
  39. package/dist/models/CertificateCanvasPortalLogoElement.d.ts +0 -13
  40. package/dist/models/CertificateCanvasPortalLogoElement.js +0 -11
  41. package/dist/models/CertificateCanvasShapeElement.d.ts +0 -13
  42. package/dist/models/CertificateCanvasShapeElement.js +0 -11
  43. package/dist/models/CertificateCanvasTextElement.d.ts +0 -13
  44. package/dist/models/CertificateCanvasTextElement.js +1 -11
  45. package/dist/models/CertificateCanvasVerificationQrElement.d.ts +0 -13
  46. package/dist/models/CertificateCanvasVerificationQrElement.js +0 -11
  47. package/dist/models/GetCourseVersionItemSession.d.ts +7 -0
  48. package/dist/models/GetCourseVersionItemSession.js +5 -0
  49. package/dist/models/GetResourceSession.d.ts +161 -0
  50. package/dist/models/GetResourceSession.js +119 -0
  51. package/dist/models/GetResourceSessionList.d.ts +57 -0
  52. package/dist/models/GetResourceSessionList.js +67 -0
  53. package/dist/models/PostResourceVersionSession.d.ts +32 -0
  54. package/dist/models/PostResourceVersionSession.js +48 -0
  55. package/dist/models/ResourceSessionEnvironment.d.ts +25 -0
  56. package/dist/models/ResourceSessionEnvironment.js +51 -0
  57. package/dist/models/index.d.ts +4 -0
  58. package/dist/models/index.js +4 -0
  59. package/docs/CertificateCanvasElement.md +2 -2
  60. package/docs/CertificateCanvasImageElement.md +0 -2
  61. package/docs/CertificateCanvasLineElement.md +0 -2
  62. package/docs/CertificateCanvasPortalLogoElement.md +0 -2
  63. package/docs/CertificateCanvasShapeElement.md +0 -2
  64. package/docs/CertificateCanvasTextElement.md +0 -2
  65. package/docs/CertificateCanvasVerificationQrElement.md +0 -2
  66. package/docs/ContentLibraryApi.md +73 -0
  67. package/docs/GetCourseVersionItemSession.md +2 -0
  68. package/docs/GetResourceSession.md +77 -0
  69. package/docs/GetResourceSessionList.md +43 -0
  70. package/docs/PlayerApi.md +296 -0
  71. package/docs/PostResourceVersionSession.md +35 -0
  72. package/docs/ResourceSessionEnvironment.md +33 -0
  73. package/package.json +1 -1
  74. package/src/apis/ContentLibraryApi.ts +72 -0
  75. package/src/apis/PlayerApi.ts +261 -0
  76. package/src/models/CertificateCanvasImageElement.ts +0 -17
  77. package/src/models/CertificateCanvasLineElement.ts +0 -19
  78. package/src/models/CertificateCanvasPortalLogoElement.ts +0 -19
  79. package/src/models/CertificateCanvasShapeElement.ts +0 -19
  80. package/src/models/CertificateCanvasTextElement.ts +0 -17
  81. package/src/models/CertificateCanvasVerificationQrElement.ts +0 -19
  82. package/src/models/GetCourseVersionItemSession.ts +16 -0
  83. package/src/models/GetResourceSession.ts +270 -0
  84. package/src/models/GetResourceSessionList.ts +110 -0
  85. package/src/models/PostResourceVersionSession.ts +65 -0
  86. package/src/models/ResourceSessionEnvironment.ts +53 -0
  87. package/src/models/index.ts +4 -0
@@ -21,12 +21,6 @@ export interface CertificateCanvasImageElement {
21
21
  * @memberof CertificateCanvasImageElement
22
22
  */
23
23
  id: string;
24
- /**
25
- *
26
- * @type {CertificateCanvasImageElementTypeEnum}
27
- * @memberof CertificateCanvasImageElement
28
- */
29
- type: CertificateCanvasImageElementTypeEnum;
30
24
  /**
31
25
  *
32
26
  * @type {number}
@@ -64,13 +58,6 @@ export interface CertificateCanvasImageElement {
64
58
  */
65
59
  fit?: CertificateCanvasImageElementFitEnum;
66
60
  }
67
- /**
68
- * @export
69
- */
70
- export declare const CertificateCanvasImageElementTypeEnum: {
71
- readonly Image: "image";
72
- };
73
- export type CertificateCanvasImageElementTypeEnum = typeof CertificateCanvasImageElementTypeEnum[keyof typeof CertificateCanvasImageElementTypeEnum];
74
61
  /**
75
62
  * @export
76
63
  */
@@ -13,18 +13,12 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.CertificateCanvasImageElementFitEnum = exports.CertificateCanvasImageElementTypeEnum = void 0;
16
+ exports.CertificateCanvasImageElementFitEnum = void 0;
17
17
  exports.instanceOfCertificateCanvasImageElement = instanceOfCertificateCanvasImageElement;
18
18
  exports.CertificateCanvasImageElementFromJSON = CertificateCanvasImageElementFromJSON;
19
19
  exports.CertificateCanvasImageElementFromJSONTyped = CertificateCanvasImageElementFromJSONTyped;
20
20
  exports.CertificateCanvasImageElementToJSON = CertificateCanvasImageElementToJSON;
21
21
  exports.CertificateCanvasImageElementToJSONTyped = CertificateCanvasImageElementToJSONTyped;
22
- /**
23
- * @export
24
- */
25
- exports.CertificateCanvasImageElementTypeEnum = {
26
- Image: 'image'
27
- };
28
22
  /**
29
23
  * @export
30
24
  */
@@ -39,8 +33,6 @@ exports.CertificateCanvasImageElementFitEnum = {
39
33
  function instanceOfCertificateCanvasImageElement(value) {
40
34
  if (!('id' in value) || value['id'] === undefined)
41
35
  return false;
42
- if (!('type' in value) || value['type'] === undefined)
43
- return false;
44
36
  if (!('x' in value) || value['x'] === undefined)
45
37
  return false;
46
38
  if (!('y' in value) || value['y'] === undefined)
@@ -62,7 +54,6 @@ function CertificateCanvasImageElementFromJSONTyped(json, ignoreDiscriminator) {
62
54
  }
63
55
  return {
64
56
  'id': json['id'],
65
- 'type': json['type'],
66
57
  'x': json['x'],
67
58
  'y': json['y'],
68
59
  'width': json['width'],
@@ -80,7 +71,6 @@ function CertificateCanvasImageElementToJSONTyped(value, ignoreDiscriminator = f
80
71
  }
81
72
  return {
82
73
  'id': value['id'],
83
- 'type': value['type'],
84
74
  'x': value['x'],
85
75
  'y': value['y'],
86
76
  'width': value['width'],
@@ -21,12 +21,6 @@ export interface CertificateCanvasLineElement {
21
21
  * @memberof CertificateCanvasLineElement
22
22
  */
23
23
  id: string;
24
- /**
25
- *
26
- * @type {CertificateCanvasLineElementTypeEnum}
27
- * @memberof CertificateCanvasLineElement
28
- */
29
- type: CertificateCanvasLineElementTypeEnum;
30
24
  /**
31
25
  *
32
26
  * @type {number}
@@ -64,13 +58,6 @@ export interface CertificateCanvasLineElement {
64
58
  */
65
59
  strokeWidth: number;
66
60
  }
67
- /**
68
- * @export
69
- */
70
- export declare const CertificateCanvasLineElementTypeEnum: {
71
- readonly Line: "line";
72
- };
73
- export type CertificateCanvasLineElementTypeEnum = typeof CertificateCanvasLineElementTypeEnum[keyof typeof CertificateCanvasLineElementTypeEnum];
74
61
  /**
75
62
  * Check if a given object implements the CertificateCanvasLineElement interface.
76
63
  */
@@ -13,26 +13,17 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.CertificateCanvasLineElementTypeEnum = void 0;
17
16
  exports.instanceOfCertificateCanvasLineElement = instanceOfCertificateCanvasLineElement;
18
17
  exports.CertificateCanvasLineElementFromJSON = CertificateCanvasLineElementFromJSON;
19
18
  exports.CertificateCanvasLineElementFromJSONTyped = CertificateCanvasLineElementFromJSONTyped;
20
19
  exports.CertificateCanvasLineElementToJSON = CertificateCanvasLineElementToJSON;
21
20
  exports.CertificateCanvasLineElementToJSONTyped = CertificateCanvasLineElementToJSONTyped;
22
- /**
23
- * @export
24
- */
25
- exports.CertificateCanvasLineElementTypeEnum = {
26
- Line: 'line'
27
- };
28
21
  /**
29
22
  * Check if a given object implements the CertificateCanvasLineElement interface.
30
23
  */
31
24
  function instanceOfCertificateCanvasLineElement(value) {
32
25
  if (!('id' in value) || value['id'] === undefined)
33
26
  return false;
34
- if (!('type' in value) || value['type'] === undefined)
35
- return false;
36
27
  if (!('x' in value) || value['x'] === undefined)
37
28
  return false;
38
29
  if (!('y' in value) || value['y'] === undefined)
@@ -56,7 +47,6 @@ function CertificateCanvasLineElementFromJSONTyped(json, ignoreDiscriminator) {
56
47
  }
57
48
  return {
58
49
  'id': json['id'],
59
- 'type': json['type'],
60
50
  'x': json['x'],
61
51
  'y': json['y'],
62
52
  'width': json['width'],
@@ -74,7 +64,6 @@ function CertificateCanvasLineElementToJSONTyped(value, ignoreDiscriminator = fa
74
64
  }
75
65
  return {
76
66
  'id': value['id'],
77
- 'type': value['type'],
78
67
  'x': value['x'],
79
68
  'y': value['y'],
80
69
  'width': value['width'],
@@ -21,12 +21,6 @@ export interface CertificateCanvasPortalLogoElement {
21
21
  * @memberof CertificateCanvasPortalLogoElement
22
22
  */
23
23
  id: string;
24
- /**
25
- *
26
- * @type {CertificateCanvasPortalLogoElementTypeEnum}
27
- * @memberof CertificateCanvasPortalLogoElement
28
- */
29
- type: CertificateCanvasPortalLogoElementTypeEnum;
30
24
  /**
31
25
  *
32
26
  * @type {number}
@@ -52,13 +46,6 @@ export interface CertificateCanvasPortalLogoElement {
52
46
  */
53
47
  height: number;
54
48
  }
55
- /**
56
- * @export
57
- */
58
- export declare const CertificateCanvasPortalLogoElementTypeEnum: {
59
- readonly PortalLogo: "portal_logo";
60
- };
61
- export type CertificateCanvasPortalLogoElementTypeEnum = typeof CertificateCanvasPortalLogoElementTypeEnum[keyof typeof CertificateCanvasPortalLogoElementTypeEnum];
62
49
  /**
63
50
  * Check if a given object implements the CertificateCanvasPortalLogoElement interface.
64
51
  */
@@ -13,26 +13,17 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.CertificateCanvasPortalLogoElementTypeEnum = void 0;
17
16
  exports.instanceOfCertificateCanvasPortalLogoElement = instanceOfCertificateCanvasPortalLogoElement;
18
17
  exports.CertificateCanvasPortalLogoElementFromJSON = CertificateCanvasPortalLogoElementFromJSON;
19
18
  exports.CertificateCanvasPortalLogoElementFromJSONTyped = CertificateCanvasPortalLogoElementFromJSONTyped;
20
19
  exports.CertificateCanvasPortalLogoElementToJSON = CertificateCanvasPortalLogoElementToJSON;
21
20
  exports.CertificateCanvasPortalLogoElementToJSONTyped = CertificateCanvasPortalLogoElementToJSONTyped;
22
- /**
23
- * @export
24
- */
25
- exports.CertificateCanvasPortalLogoElementTypeEnum = {
26
- PortalLogo: 'portal_logo'
27
- };
28
21
  /**
29
22
  * Check if a given object implements the CertificateCanvasPortalLogoElement interface.
30
23
  */
31
24
  function instanceOfCertificateCanvasPortalLogoElement(value) {
32
25
  if (!('id' in value) || value['id'] === undefined)
33
26
  return false;
34
- if (!('type' in value) || value['type'] === undefined)
35
- return false;
36
27
  if (!('x' in value) || value['x'] === undefined)
37
28
  return false;
38
29
  if (!('y' in value) || value['y'] === undefined)
@@ -52,7 +43,6 @@ function CertificateCanvasPortalLogoElementFromJSONTyped(json, ignoreDiscriminat
52
43
  }
53
44
  return {
54
45
  'id': json['id'],
55
- 'type': json['type'],
56
46
  'x': json['x'],
57
47
  'y': json['y'],
58
48
  'width': json['width'],
@@ -68,7 +58,6 @@ function CertificateCanvasPortalLogoElementToJSONTyped(value, ignoreDiscriminato
68
58
  }
69
59
  return {
70
60
  'id': value['id'],
71
- 'type': value['type'],
72
61
  'x': value['x'],
73
62
  'y': value['y'],
74
63
  'width': value['width'],
@@ -21,12 +21,6 @@ export interface CertificateCanvasShapeElement {
21
21
  * @memberof CertificateCanvasShapeElement
22
22
  */
23
23
  id: string;
24
- /**
25
- *
26
- * @type {CertificateCanvasShapeElementTypeEnum}
27
- * @memberof CertificateCanvasShapeElement
28
- */
29
- type: CertificateCanvasShapeElementTypeEnum;
30
24
  /**
31
25
  *
32
26
  * @type {number}
@@ -70,13 +64,6 @@ export interface CertificateCanvasShapeElement {
70
64
  */
71
65
  strokeWidth: number;
72
66
  }
73
- /**
74
- * @export
75
- */
76
- export declare const CertificateCanvasShapeElementTypeEnum: {
77
- readonly Shape: "shape";
78
- };
79
- export type CertificateCanvasShapeElementTypeEnum = typeof CertificateCanvasShapeElementTypeEnum[keyof typeof CertificateCanvasShapeElementTypeEnum];
80
67
  /**
81
68
  * Check if a given object implements the CertificateCanvasShapeElement interface.
82
69
  */
@@ -13,26 +13,17 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.CertificateCanvasShapeElementTypeEnum = void 0;
17
16
  exports.instanceOfCertificateCanvasShapeElement = instanceOfCertificateCanvasShapeElement;
18
17
  exports.CertificateCanvasShapeElementFromJSON = CertificateCanvasShapeElementFromJSON;
19
18
  exports.CertificateCanvasShapeElementFromJSONTyped = CertificateCanvasShapeElementFromJSONTyped;
20
19
  exports.CertificateCanvasShapeElementToJSON = CertificateCanvasShapeElementToJSON;
21
20
  exports.CertificateCanvasShapeElementToJSONTyped = CertificateCanvasShapeElementToJSONTyped;
22
- /**
23
- * @export
24
- */
25
- exports.CertificateCanvasShapeElementTypeEnum = {
26
- Shape: 'shape'
27
- };
28
21
  /**
29
22
  * Check if a given object implements the CertificateCanvasShapeElement interface.
30
23
  */
31
24
  function instanceOfCertificateCanvasShapeElement(value) {
32
25
  if (!('id' in value) || value['id'] === undefined)
33
26
  return false;
34
- if (!('type' in value) || value['type'] === undefined)
35
- return false;
36
27
  if (!('x' in value) || value['x'] === undefined)
37
28
  return false;
38
29
  if (!('y' in value) || value['y'] === undefined)
@@ -58,7 +49,6 @@ function CertificateCanvasShapeElementFromJSONTyped(json, ignoreDiscriminator) {
58
49
  }
59
50
  return {
60
51
  'id': json['id'],
61
- 'type': json['type'],
62
52
  'x': json['x'],
63
53
  'y': json['y'],
64
54
  'width': json['width'],
@@ -77,7 +67,6 @@ function CertificateCanvasShapeElementToJSONTyped(value, ignoreDiscriminator = f
77
67
  }
78
68
  return {
79
69
  'id': value['id'],
80
- 'type': value['type'],
81
70
  'x': value['x'],
82
71
  'y': value['y'],
83
72
  'width': value['width'],
@@ -21,12 +21,6 @@ export interface CertificateCanvasTextElement {
21
21
  * @memberof CertificateCanvasTextElement
22
22
  */
23
23
  id: string;
24
- /**
25
- *
26
- * @type {CertificateCanvasTextElementTypeEnum}
27
- * @memberof CertificateCanvasTextElement
28
- */
29
- type: CertificateCanvasTextElementTypeEnum;
30
24
  /**
31
25
  *
32
26
  * @type {number}
@@ -82,13 +76,6 @@ export interface CertificateCanvasTextElement {
82
76
  */
83
77
  align?: CertificateCanvasTextElementAlignEnum;
84
78
  }
85
- /**
86
- * @export
87
- */
88
- export declare const CertificateCanvasTextElementTypeEnum: {
89
- readonly Text: "text";
90
- };
91
- export type CertificateCanvasTextElementTypeEnum = typeof CertificateCanvasTextElementTypeEnum[keyof typeof CertificateCanvasTextElementTypeEnum];
92
79
  /**
93
80
  * @export
94
81
  */
@@ -13,18 +13,12 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.CertificateCanvasTextElementAlignEnum = exports.CertificateCanvasTextElementFontFamilyEnum = exports.CertificateCanvasTextElementTypeEnum = void 0;
16
+ exports.CertificateCanvasTextElementAlignEnum = exports.CertificateCanvasTextElementFontFamilyEnum = void 0;
17
17
  exports.instanceOfCertificateCanvasTextElement = instanceOfCertificateCanvasTextElement;
18
18
  exports.CertificateCanvasTextElementFromJSON = CertificateCanvasTextElementFromJSON;
19
19
  exports.CertificateCanvasTextElementFromJSONTyped = CertificateCanvasTextElementFromJSONTyped;
20
20
  exports.CertificateCanvasTextElementToJSON = CertificateCanvasTextElementToJSON;
21
21
  exports.CertificateCanvasTextElementToJSONTyped = CertificateCanvasTextElementToJSONTyped;
22
- /**
23
- * @export
24
- */
25
- exports.CertificateCanvasTextElementTypeEnum = {
26
- Text: 'text'
27
- };
28
22
  /**
29
23
  * @export
30
24
  */
@@ -45,8 +39,6 @@ exports.CertificateCanvasTextElementAlignEnum = {
45
39
  function instanceOfCertificateCanvasTextElement(value) {
46
40
  if (!('id' in value) || value['id'] === undefined)
47
41
  return false;
48
- if (!('type' in value) || value['type'] === undefined)
49
- return false;
50
42
  if (!('x' in value) || value['x'] === undefined)
51
43
  return false;
52
44
  if (!('y' in value) || value['y'] === undefined)
@@ -74,7 +66,6 @@ function CertificateCanvasTextElementFromJSONTyped(json, ignoreDiscriminator) {
74
66
  }
75
67
  return {
76
68
  'id': json['id'],
77
- 'type': json['type'],
78
69
  'x': json['x'],
79
70
  'y': json['y'],
80
71
  'width': json['width'],
@@ -95,7 +86,6 @@ function CertificateCanvasTextElementToJSONTyped(value, ignoreDiscriminator = fa
95
86
  }
96
87
  return {
97
88
  'id': value['id'],
98
- 'type': value['type'],
99
89
  'x': value['x'],
100
90
  'y': value['y'],
101
91
  'width': value['width'],
@@ -21,12 +21,6 @@ export interface CertificateCanvasVerificationQrElement {
21
21
  * @memberof CertificateCanvasVerificationQrElement
22
22
  */
23
23
  id: string;
24
- /**
25
- *
26
- * @type {CertificateCanvasVerificationQrElementTypeEnum}
27
- * @memberof CertificateCanvasVerificationQrElement
28
- */
29
- type: CertificateCanvasVerificationQrElementTypeEnum;
30
24
  /**
31
25
  *
32
26
  * @type {number}
@@ -52,13 +46,6 @@ export interface CertificateCanvasVerificationQrElement {
52
46
  */
53
47
  height: number;
54
48
  }
55
- /**
56
- * @export
57
- */
58
- export declare const CertificateCanvasVerificationQrElementTypeEnum: {
59
- readonly VerificationQr: "verification_qr";
60
- };
61
- export type CertificateCanvasVerificationQrElementTypeEnum = typeof CertificateCanvasVerificationQrElementTypeEnum[keyof typeof CertificateCanvasVerificationQrElementTypeEnum];
62
49
  /**
63
50
  * Check if a given object implements the CertificateCanvasVerificationQrElement interface.
64
51
  */
@@ -13,26 +13,17 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.CertificateCanvasVerificationQrElementTypeEnum = void 0;
17
16
  exports.instanceOfCertificateCanvasVerificationQrElement = instanceOfCertificateCanvasVerificationQrElement;
18
17
  exports.CertificateCanvasVerificationQrElementFromJSON = CertificateCanvasVerificationQrElementFromJSON;
19
18
  exports.CertificateCanvasVerificationQrElementFromJSONTyped = CertificateCanvasVerificationQrElementFromJSONTyped;
20
19
  exports.CertificateCanvasVerificationQrElementToJSON = CertificateCanvasVerificationQrElementToJSON;
21
20
  exports.CertificateCanvasVerificationQrElementToJSONTyped = CertificateCanvasVerificationQrElementToJSONTyped;
22
- /**
23
- * @export
24
- */
25
- exports.CertificateCanvasVerificationQrElementTypeEnum = {
26
- VerificationQr: 'verification_qr'
27
- };
28
21
  /**
29
22
  * Check if a given object implements the CertificateCanvasVerificationQrElement interface.
30
23
  */
31
24
  function instanceOfCertificateCanvasVerificationQrElement(value) {
32
25
  if (!('id' in value) || value['id'] === undefined)
33
26
  return false;
34
- if (!('type' in value) || value['type'] === undefined)
35
- return false;
36
27
  if (!('x' in value) || value['x'] === undefined)
37
28
  return false;
38
29
  if (!('y' in value) || value['y'] === undefined)
@@ -52,7 +43,6 @@ function CertificateCanvasVerificationQrElementFromJSONTyped(json, ignoreDiscrim
52
43
  }
53
44
  return {
54
45
  'id': json['id'],
55
- 'type': json['type'],
56
46
  'x': json['x'],
57
47
  'y': json['y'],
58
48
  'width': json['width'],
@@ -68,7 +58,6 @@ function CertificateCanvasVerificationQrElementToJSONTyped(value, ignoreDiscrimi
68
58
  }
69
59
  return {
70
60
  'id': value['id'],
71
- 'type': value['type'],
72
61
  'x': value['x'],
73
62
  'y': value['y'],
74
63
  'width': value['width'],
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { ResourceSessionEnvironment } from './ResourceSessionEnvironment';
12
13
  import type { ResourceType } from './ResourceType';
13
14
  import type { ContentLaunchMode } from './ContentLaunchMode';
14
15
  /**
@@ -23,6 +24,12 @@ export interface GetCourseVersionItemSession {
23
24
  * @memberof GetCourseVersionItemSession
24
25
  */
25
26
  id: string;
27
+ /**
28
+ *
29
+ * @type {ResourceSessionEnvironment}
30
+ * @memberof GetCourseVersionItemSession
31
+ */
32
+ environment: ResourceSessionEnvironment;
26
33
  /**
27
34
  *
28
35
  * @type {string}
@@ -18,6 +18,7 @@ exports.GetCourseVersionItemSessionFromJSON = GetCourseVersionItemSessionFromJSO
18
18
  exports.GetCourseVersionItemSessionFromJSONTyped = GetCourseVersionItemSessionFromJSONTyped;
19
19
  exports.GetCourseVersionItemSessionToJSON = GetCourseVersionItemSessionToJSON;
20
20
  exports.GetCourseVersionItemSessionToJSONTyped = GetCourseVersionItemSessionToJSONTyped;
21
+ const ResourceSessionEnvironment_1 = require("./ResourceSessionEnvironment");
21
22
  const ResourceType_1 = require("./ResourceType");
22
23
  const ContentLaunchMode_1 = require("./ContentLaunchMode");
23
24
  /**
@@ -26,6 +27,8 @@ const ContentLaunchMode_1 = require("./ContentLaunchMode");
26
27
  function instanceOfGetCourseVersionItemSession(value) {
27
28
  if (!('id' in value) || value['id'] === undefined)
28
29
  return false;
30
+ if (!('environment' in value) || value['environment'] === undefined)
31
+ return false;
29
32
  if (!('courseVersionId' in value) || value['courseVersionId'] === undefined)
30
33
  return false;
31
34
  if (!('itemId' in value) || value['itemId'] === undefined)
@@ -63,6 +66,7 @@ function GetCourseVersionItemSessionFromJSONTyped(json, ignoreDiscriminator) {
63
66
  }
64
67
  return {
65
68
  'id': json['id'],
69
+ 'environment': (0, ResourceSessionEnvironment_1.ResourceSessionEnvironmentFromJSON)(json['environment']),
66
70
  'courseVersionId': json['course_version_id'],
67
71
  'itemId': json['item_id'],
68
72
  'contentLibraryItemId': json['content_library_item_id'],
@@ -89,6 +93,7 @@ function GetCourseVersionItemSessionToJSONTyped(value, ignoreDiscriminator = fal
89
93
  }
90
94
  return {
91
95
  'id': value['id'],
96
+ 'environment': (0, ResourceSessionEnvironment_1.ResourceSessionEnvironmentToJSON)(value['environment']),
92
97
  'course_version_id': value['courseVersionId'],
93
98
  'item_id': value['itemId'],
94
99
  'content_library_item_id': value['contentLibraryItemId'],
@@ -0,0 +1,161 @@
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
+ import type { ResourceSessionEnvironment } from './ResourceSessionEnvironment';
13
+ import type { ResourceType } from './ResourceType';
14
+ import type { ContentLaunchMode } from './ContentLaunchMode';
15
+ /**
16
+ * A user-owned session pinned to an immutable Content Library resource version.
17
+ * @export
18
+ * @interface GetResourceSession
19
+ */
20
+ export interface GetResourceSession {
21
+ /**
22
+ *
23
+ * @type {string}
24
+ * @memberof GetResourceSession
25
+ */
26
+ id: string;
27
+ /**
28
+ *
29
+ * @type {string}
30
+ * @memberof GetResourceSession
31
+ */
32
+ userId: string;
33
+ /**
34
+ *
35
+ * @type {ResourceSessionEnvironment}
36
+ * @memberof GetResourceSession
37
+ */
38
+ environment: ResourceSessionEnvironment;
39
+ /**
40
+ *
41
+ * @type {string}
42
+ * @memberof GetResourceSession
43
+ */
44
+ courseId?: string | null;
45
+ /**
46
+ *
47
+ * @type {string}
48
+ * @memberof GetResourceSession
49
+ */
50
+ courseVersionId?: string | null;
51
+ /**
52
+ *
53
+ * @type {string}
54
+ * @memberof GetResourceSession
55
+ */
56
+ itemId?: string | null;
57
+ /**
58
+ *
59
+ * @type {string}
60
+ * @memberof GetResourceSession
61
+ */
62
+ contentLibraryItemId: string;
63
+ /**
64
+ *
65
+ * @type {string}
66
+ * @memberof GetResourceSession
67
+ */
68
+ contentLibraryVersionId: string;
69
+ /**
70
+ *
71
+ * @type {string}
72
+ * @memberof GetResourceSession
73
+ */
74
+ resourceName: string;
75
+ /**
76
+ *
77
+ * @type {ResourceType}
78
+ * @memberof GetResourceSession
79
+ */
80
+ resourceType: ResourceType;
81
+ /**
82
+ *
83
+ * @type {ContentLaunchMode}
84
+ * @memberof GetResourceSession
85
+ */
86
+ launchMode?: ContentLaunchMode | null;
87
+ /**
88
+ *
89
+ * @type {string}
90
+ * @memberof GetResourceSession
91
+ */
92
+ launchUrl?: string | null;
93
+ /**
94
+ *
95
+ * @type {number}
96
+ * @memberof GetResourceSession
97
+ */
98
+ attemptNumber: number;
99
+ /**
100
+ *
101
+ * @type {boolean}
102
+ * @memberof GetResourceSession
103
+ */
104
+ isCurrent: boolean;
105
+ /**
106
+ *
107
+ * @type {string}
108
+ * @memberof GetResourceSession
109
+ */
110
+ completionStatus: string;
111
+ /**
112
+ *
113
+ * @type {string}
114
+ * @memberof GetResourceSession
115
+ */
116
+ gradeStatus: string;
117
+ /**
118
+ *
119
+ * @type {number}
120
+ * @memberof GetResourceSession
121
+ */
122
+ scoreRaw?: number | null;
123
+ /**
124
+ *
125
+ * @type {number}
126
+ * @memberof GetResourceSession
127
+ */
128
+ initializedAt?: number | null;
129
+ /**
130
+ *
131
+ * @type {number}
132
+ * @memberof GetResourceSession
133
+ */
134
+ terminatedAt?: number | null;
135
+ /**
136
+ *
137
+ * @type {number}
138
+ * @memberof GetResourceSession
139
+ */
140
+ createdAt: number;
141
+ /**
142
+ *
143
+ * @type {number}
144
+ * @memberof GetResourceSession
145
+ */
146
+ updatedAt: number;
147
+ /**
148
+ *
149
+ * @type {number}
150
+ * @memberof GetResourceSession
151
+ */
152
+ completedAt?: number | null;
153
+ }
154
+ /**
155
+ * Check if a given object implements the GetResourceSession interface.
156
+ */
157
+ export declare function instanceOfGetResourceSession(value: object): value is GetResourceSession;
158
+ export declare function GetResourceSessionFromJSON(json: any): GetResourceSession;
159
+ export declare function GetResourceSessionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceSession;
160
+ export declare function GetResourceSessionToJSON(json: any): GetResourceSession;
161
+ export declare function GetResourceSessionToJSONTyped(value?: GetResourceSession | null, ignoreDiscriminator?: boolean): any;