@easyedu/js-lsm-api 1.55.0 → 1.57.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 (77) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/README.md +11 -2
  3. package/dist/apis/ContentApi.d.ts +21 -1
  4. package/dist/apis/ContentApi.js +51 -0
  5. package/dist/apis/CourseApi.d.ts +23 -1
  6. package/dist/apis/CourseApi.js +55 -0
  7. package/dist/apis/ModuleApi.d.ts +20 -1
  8. package/dist/apis/ModuleApi.js +47 -0
  9. package/dist/apis/PortalApi.d.ts +32 -1
  10. package/dist/apis/PortalApi.js +99 -0
  11. package/dist/esm/apis/ContentApi.d.ts +21 -1
  12. package/dist/esm/apis/ContentApi.js +52 -1
  13. package/dist/esm/apis/CourseApi.d.ts +23 -1
  14. package/dist/esm/apis/CourseApi.js +56 -1
  15. package/dist/esm/apis/ModuleApi.d.ts +20 -1
  16. package/dist/esm/apis/ModuleApi.js +48 -1
  17. package/dist/esm/apis/PortalApi.d.ts +32 -1
  18. package/dist/esm/apis/PortalApi.js +100 -1
  19. package/dist/esm/models/GetCourseEnrollment.d.ts +15 -1
  20. package/dist/esm/models/GetCourseEnrollment.js +6 -1
  21. package/dist/esm/models/GetCourseEnrollmentListItem.d.ts +5 -0
  22. package/dist/esm/models/GetCourseEnrollmentListItem.js +6 -1
  23. package/dist/esm/models/GetPortal.d.ts +6 -0
  24. package/dist/esm/models/GetPortal.js +2 -0
  25. package/dist/esm/models/GetPortalFaviconUpload.d.ts +32 -0
  26. package/dist/esm/models/GetPortalFaviconUpload.js +43 -0
  27. package/dist/esm/models/PostDuplicate.d.ts +32 -0
  28. package/dist/esm/models/PostDuplicate.js +41 -0
  29. package/dist/esm/models/PostDuplicate1.d.ts +32 -0
  30. package/dist/esm/models/PostDuplicate1.js +41 -0
  31. package/dist/esm/models/PostDuplicate2.d.ts +32 -0
  32. package/dist/esm/models/PostDuplicate2.js +41 -0
  33. package/dist/esm/models/PutCourseEnrollment.d.ts +7 -1
  34. package/dist/esm/models/PutCourseEnrollment.js +4 -1
  35. package/dist/esm/models/index.d.ts +4 -0
  36. package/dist/esm/models/index.js +4 -0
  37. package/dist/models/GetCourseEnrollment.d.ts +15 -1
  38. package/dist/models/GetCourseEnrollment.js +6 -1
  39. package/dist/models/GetCourseEnrollmentListItem.d.ts +5 -0
  40. package/dist/models/GetCourseEnrollmentListItem.js +6 -1
  41. package/dist/models/GetPortal.d.ts +6 -0
  42. package/dist/models/GetPortal.js +2 -0
  43. package/dist/models/GetPortalFaviconUpload.d.ts +32 -0
  44. package/dist/models/GetPortalFaviconUpload.js +50 -0
  45. package/dist/models/PostDuplicate.d.ts +32 -0
  46. package/dist/models/PostDuplicate.js +48 -0
  47. package/dist/models/PostDuplicate1.d.ts +32 -0
  48. package/dist/models/PostDuplicate1.js +48 -0
  49. package/dist/models/PostDuplicate2.d.ts +32 -0
  50. package/dist/models/PostDuplicate2.js +48 -0
  51. package/dist/models/PutCourseEnrollment.d.ts +7 -1
  52. package/dist/models/PutCourseEnrollment.js +4 -1
  53. package/dist/models/index.d.ts +4 -0
  54. package/dist/models/index.js +4 -0
  55. package/docs/ContentApi.md +78 -0
  56. package/docs/CourseApi.md +86 -2
  57. package/docs/GetPortal.md +2 -0
  58. package/docs/GetPortalFaviconUpload.md +34 -0
  59. package/docs/ModuleApi.md +75 -0
  60. package/docs/PortalApi.md +138 -0
  61. package/docs/PostDuplicate.md +35 -0
  62. package/docs/PostDuplicate1.md +35 -0
  63. package/docs/PostDuplicate2.md +35 -0
  64. package/package.json +1 -1
  65. package/src/apis/ContentApi.ts +76 -0
  66. package/src/apis/CourseApi.ts +78 -0
  67. package/src/apis/ModuleApi.ts +67 -0
  68. package/src/apis/PortalApi.ts +129 -0
  69. package/src/models/GetCourseEnrollment.ts +16 -2
  70. package/src/models/GetCourseEnrollmentListItem.ts +6 -1
  71. package/src/models/GetPortal.ts +8 -0
  72. package/src/models/GetPortalFaviconUpload.ts +66 -0
  73. package/src/models/PostDuplicate.ts +65 -0
  74. package/src/models/PostDuplicate1.ts +65 -0
  75. package/src/models/PostDuplicate2.ts +65 -0
  76. package/src/models/PutCourseEnrollment.ts +8 -2
  77. package/src/models/index.ts +4 -0
@@ -0,0 +1,43 @@
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
+ * Check if a given object implements the GetPortalFaviconUpload interface.
16
+ */
17
+ export function instanceOfGetPortalFaviconUpload(value) {
18
+ if (!('faviconUrl' in value) || value['faviconUrl'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function GetPortalFaviconUploadFromJSON(json) {
23
+ return GetPortalFaviconUploadFromJSONTyped(json, false);
24
+ }
25
+ export function GetPortalFaviconUploadFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'faviconUrl': json['favicon_url'],
31
+ };
32
+ }
33
+ export function GetPortalFaviconUploadToJSON(json) {
34
+ return GetPortalFaviconUploadToJSONTyped(json, false);
35
+ }
36
+ export function GetPortalFaviconUploadToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'favicon_url': value['faviconUrl'],
42
+ };
43
+ }
@@ -0,0 +1,32 @@
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
+ * Optional body for duplicating a course
14
+ * @export
15
+ * @interface PostDuplicate
16
+ */
17
+ export interface PostDuplicate {
18
+ /**
19
+ * Name for the duplicated course. Defaults to "{original name} (Copy)" if omitted.
20
+ * @type {string}
21
+ * @memberof PostDuplicate
22
+ */
23
+ name?: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the PostDuplicate interface.
27
+ */
28
+ export declare function instanceOfPostDuplicate(value: object): value is PostDuplicate;
29
+ export declare function PostDuplicateFromJSON(json: any): PostDuplicate;
30
+ export declare function PostDuplicateFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostDuplicate;
31
+ export declare function PostDuplicateToJSON(json: any): PostDuplicate;
32
+ export declare function PostDuplicateToJSONTyped(value?: PostDuplicate | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,41 @@
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
+ * Check if a given object implements the PostDuplicate interface.
16
+ */
17
+ export function instanceOfPostDuplicate(value) {
18
+ return true;
19
+ }
20
+ export function PostDuplicateFromJSON(json) {
21
+ return PostDuplicateFromJSONTyped(json, false);
22
+ }
23
+ export function PostDuplicateFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'name': json['name'] == null ? undefined : json['name'],
29
+ };
30
+ }
31
+ export function PostDuplicateToJSON(json) {
32
+ return PostDuplicateToJSONTyped(json, false);
33
+ }
34
+ export function PostDuplicateToJSONTyped(value, ignoreDiscriminator = false) {
35
+ if (value == null) {
36
+ return value;
37
+ }
38
+ return {
39
+ 'name': value['name'],
40
+ };
41
+ }
@@ -0,0 +1,32 @@
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
+ * Optional body for duplicating a module
14
+ * @export
15
+ * @interface PostDuplicate1
16
+ */
17
+ export interface PostDuplicate1 {
18
+ /**
19
+ * Name for the duplicated module. Defaults to "{original name} (Copy)" if omitted.
20
+ * @type {string}
21
+ * @memberof PostDuplicate1
22
+ */
23
+ name?: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the PostDuplicate1 interface.
27
+ */
28
+ export declare function instanceOfPostDuplicate1(value: object): value is PostDuplicate1;
29
+ export declare function PostDuplicate1FromJSON(json: any): PostDuplicate1;
30
+ export declare function PostDuplicate1FromJSONTyped(json: any, ignoreDiscriminator: boolean): PostDuplicate1;
31
+ export declare function PostDuplicate1ToJSON(json: any): PostDuplicate1;
32
+ export declare function PostDuplicate1ToJSONTyped(value?: PostDuplicate1 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,41 @@
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
+ * Check if a given object implements the PostDuplicate1 interface.
16
+ */
17
+ export function instanceOfPostDuplicate1(value) {
18
+ return true;
19
+ }
20
+ export function PostDuplicate1FromJSON(json) {
21
+ return PostDuplicate1FromJSONTyped(json, false);
22
+ }
23
+ export function PostDuplicate1FromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'name': json['name'] == null ? undefined : json['name'],
29
+ };
30
+ }
31
+ export function PostDuplicate1ToJSON(json) {
32
+ return PostDuplicate1ToJSONTyped(json, false);
33
+ }
34
+ export function PostDuplicate1ToJSONTyped(value, ignoreDiscriminator = false) {
35
+ if (value == null) {
36
+ return value;
37
+ }
38
+ return {
39
+ 'name': value['name'],
40
+ };
41
+ }
@@ -0,0 +1,32 @@
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
+ * Optional body for duplicating a content item
14
+ * @export
15
+ * @interface PostDuplicate2
16
+ */
17
+ export interface PostDuplicate2 {
18
+ /**
19
+ * Name for the duplicated content. Defaults to "{original name} (Copy)" if omitted.
20
+ * @type {string}
21
+ * @memberof PostDuplicate2
22
+ */
23
+ name?: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the PostDuplicate2 interface.
27
+ */
28
+ export declare function instanceOfPostDuplicate2(value: object): value is PostDuplicate2;
29
+ export declare function PostDuplicate2FromJSON(json: any): PostDuplicate2;
30
+ export declare function PostDuplicate2FromJSONTyped(json: any, ignoreDiscriminator: boolean): PostDuplicate2;
31
+ export declare function PostDuplicate2ToJSON(json: any): PostDuplicate2;
32
+ export declare function PostDuplicate2ToJSONTyped(value?: PostDuplicate2 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,41 @@
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
+ * Check if a given object implements the PostDuplicate2 interface.
16
+ */
17
+ export function instanceOfPostDuplicate2(value) {
18
+ return true;
19
+ }
20
+ export function PostDuplicate2FromJSON(json) {
21
+ return PostDuplicate2FromJSONTyped(json, false);
22
+ }
23
+ export function PostDuplicate2FromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'name': json['name'] == null ? undefined : json['name'],
29
+ };
30
+ }
31
+ export function PostDuplicate2ToJSON(json) {
32
+ return PostDuplicate2ToJSONTyped(json, false);
33
+ }
34
+ export function PostDuplicate2ToJSONTyped(value, ignoreDiscriminator = false) {
35
+ if (value == null) {
36
+ return value;
37
+ }
38
+ return {
39
+ 'name': value['name'],
40
+ };
41
+ }
@@ -16,7 +16,10 @@
16
16
  */
17
17
  export interface PutCourseEnrollment {
18
18
  /**
19
- * Current status of the enrollment
19
+ * Target status for the enrollment. System-managed statuses (InProgress, Expired)
20
+ * cannot be set via this endpoint. Reopening a terminal enrollment to `Enrolled`
21
+ * requires `enrollment_date_end` to still be in the future.
22
+ *
20
23
  * @type {PutCourseEnrollmentStatusEnum}
21
24
  * @memberof PutCourseEnrollment
22
25
  */
@@ -46,7 +49,10 @@ export interface PutCourseEnrollment {
46
49
  export declare const PutCourseEnrollmentStatusEnum: {
47
50
  readonly Enrolled: "Enrolled";
48
51
  readonly Completed: "Completed";
52
+ readonly Failed: "Failed";
53
+ readonly Withdrawn: "Withdrawn";
49
54
  readonly Removed: "Removed";
55
+ readonly Archived: "Archived";
50
56
  };
51
57
  export type PutCourseEnrollmentStatusEnum = typeof PutCourseEnrollmentStatusEnum[keyof typeof PutCourseEnrollmentStatusEnum];
52
58
  /**
@@ -17,7 +17,10 @@
17
17
  export const PutCourseEnrollmentStatusEnum = {
18
18
  Enrolled: 'Enrolled',
19
19
  Completed: 'Completed',
20
- Removed: 'Removed'
20
+ Failed: 'Failed',
21
+ Withdrawn: 'Withdrawn',
22
+ Removed: 'Removed',
23
+ Archived: 'Archived'
21
24
  };
22
25
  /**
23
26
  * @export
@@ -70,6 +70,7 @@ export * from './GetPortal';
70
70
  export * from './GetPortalBasicReporting';
71
71
  export * from './GetPortalBasicReportingCertificates';
72
72
  export * from './GetPortalBasicReportingPortalInfo';
73
+ export * from './GetPortalFaviconUpload';
73
74
  export * from './GetPortalList';
74
75
  export * from './GetPortalLogoUpload';
75
76
  export * from './GetPortalStudentReporting';
@@ -173,6 +174,9 @@ export * from './PostCourse';
173
174
  export * from './PostCourseCatalog';
174
175
  export * from './PostCourseEnrollment';
175
176
  export * from './PostCourseExport';
177
+ export * from './PostDuplicate';
178
+ export * from './PostDuplicate1';
179
+ export * from './PostDuplicate2';
176
180
  export * from './PostLogin';
177
181
  export * from './PostManualQuestionSelection';
178
182
  export * from './PostMessage';
@@ -72,6 +72,7 @@ export * from './GetPortal';
72
72
  export * from './GetPortalBasicReporting';
73
73
  export * from './GetPortalBasicReportingCertificates';
74
74
  export * from './GetPortalBasicReportingPortalInfo';
75
+ export * from './GetPortalFaviconUpload';
75
76
  export * from './GetPortalList';
76
77
  export * from './GetPortalLogoUpload';
77
78
  export * from './GetPortalStudentReporting';
@@ -175,6 +176,9 @@ export * from './PostCourse';
175
176
  export * from './PostCourseCatalog';
176
177
  export * from './PostCourseEnrollment';
177
178
  export * from './PostCourseExport';
179
+ export * from './PostDuplicate';
180
+ export * from './PostDuplicate1';
181
+ export * from './PostDuplicate2';
178
182
  export * from './PostLogin';
179
183
  export * from './PostManualQuestionSelection';
180
184
  export * from './PostMessage';
@@ -52,7 +52,16 @@ export interface GetCourseEnrollment {
52
52
  */
53
53
  notes: string | null;
54
54
  /**
55
- * Current status of the enrollment
55
+ * Current status of the enrollment.
56
+ * - Enrolled: registered, no progress yet
57
+ * - InProgress: learner has started at least one content session
58
+ * - Completed: finished successfully
59
+ * - Failed: finished but did not pass
60
+ * - Expired: enrollment_date_end passed before completion
61
+ * - Withdrawn: learner pulled out before completion
62
+ * - Removed: admin-removed enrollment
63
+ * - Archived: historical / read-only (e.g. course share revoked)
64
+ *
56
65
  * @type {GetCourseEnrollmentStatusEnum}
57
66
  * @memberof GetCourseEnrollment
58
67
  */
@@ -75,8 +84,13 @@ export interface GetCourseEnrollment {
75
84
  */
76
85
  export declare const GetCourseEnrollmentStatusEnum: {
77
86
  readonly Enrolled: "Enrolled";
87
+ readonly InProgress: "InProgress";
78
88
  readonly Completed: "Completed";
89
+ readonly Failed: "Failed";
90
+ readonly Expired: "Expired";
91
+ readonly Withdrawn: "Withdrawn";
79
92
  readonly Removed: "Removed";
93
+ readonly Archived: "Archived";
80
94
  };
81
95
  export type GetCourseEnrollmentStatusEnum = typeof GetCourseEnrollmentStatusEnum[keyof typeof GetCourseEnrollmentStatusEnum];
82
96
  /**
@@ -24,8 +24,13 @@ exports.GetCourseEnrollmentToJSONTyped = GetCourseEnrollmentToJSONTyped;
24
24
  */
25
25
  exports.GetCourseEnrollmentStatusEnum = {
26
26
  Enrolled: 'Enrolled',
27
+ InProgress: 'InProgress',
27
28
  Completed: 'Completed',
28
- Removed: 'Removed'
29
+ Failed: 'Failed',
30
+ Expired: 'Expired',
31
+ Withdrawn: 'Withdrawn',
32
+ Removed: 'Removed',
33
+ Archived: 'Archived'
29
34
  };
30
35
  /**
31
36
  * @export
@@ -81,8 +81,13 @@ export interface GetCourseEnrollmentListItem {
81
81
  */
82
82
  export declare const GetCourseEnrollmentListItemStatusEnum: {
83
83
  readonly Enrolled: "Enrolled";
84
+ readonly InProgress: "InProgress";
84
85
  readonly Completed: "Completed";
86
+ readonly Failed: "Failed";
87
+ readonly Expired: "Expired";
88
+ readonly Withdrawn: "Withdrawn";
85
89
  readonly Removed: "Removed";
90
+ readonly Archived: "Archived";
86
91
  };
87
92
  export type GetCourseEnrollmentListItemStatusEnum = typeof GetCourseEnrollmentListItemStatusEnum[keyof typeof GetCourseEnrollmentListItemStatusEnum];
88
93
  /**
@@ -24,8 +24,13 @@ exports.GetCourseEnrollmentListItemToJSONTyped = GetCourseEnrollmentListItemToJS
24
24
  */
25
25
  exports.GetCourseEnrollmentListItemStatusEnum = {
26
26
  Enrolled: 'Enrolled',
27
+ InProgress: 'InProgress',
27
28
  Completed: 'Completed',
28
- Removed: 'Removed'
29
+ Failed: 'Failed',
30
+ Expired: 'Expired',
31
+ Withdrawn: 'Withdrawn',
32
+ Removed: 'Removed',
33
+ Archived: 'Archived'
29
34
  };
30
35
  /**
31
36
  * @export
@@ -39,6 +39,12 @@ export interface GetPortal {
39
39
  * @memberof GetPortal
40
40
  */
41
41
  logoUrl?: string | null;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof GetPortal
46
+ */
47
+ faviconUrl?: string | null;
42
48
  /**
43
49
  *
44
50
  * @type {string}
@@ -57,6 +57,7 @@ function GetPortalFromJSONTyped(json, ignoreDiscriminator) {
57
57
  'name': json['name'],
58
58
  'parentPortalId': json['parent_portal_id'] == null ? undefined : json['parent_portal_id'],
59
59
  'logoUrl': json['logo_url'] == null ? undefined : json['logo_url'],
60
+ 'faviconUrl': json['favicon_url'] == null ? undefined : json['favicon_url'],
60
61
  'headerBackgroundColor': json['header_background_color'],
61
62
  'headerTextColor': json['header_text_color'],
62
63
  'baseType': json['base_type'] == null ? undefined : json['base_type'],
@@ -74,6 +75,7 @@ function GetPortalToJSONTyped(value, ignoreDiscriminator = false) {
74
75
  'name': value['name'],
75
76
  'parent_portal_id': value['parentPortalId'],
76
77
  'logo_url': value['logoUrl'],
78
+ 'favicon_url': value['faviconUrl'],
77
79
  'header_background_color': value['headerBackgroundColor'],
78
80
  'header_text_color': value['headerTextColor'],
79
81
  'base_type': value['baseType'],
@@ -0,0 +1,32 @@
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 GetPortalFaviconUpload
16
+ */
17
+ export interface GetPortalFaviconUpload {
18
+ /**
19
+ * Presigned URL for the uploaded favicon image
20
+ * @type {string}
21
+ * @memberof GetPortalFaviconUpload
22
+ */
23
+ faviconUrl: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the GetPortalFaviconUpload interface.
27
+ */
28
+ export declare function instanceOfGetPortalFaviconUpload(value: object): value is GetPortalFaviconUpload;
29
+ export declare function GetPortalFaviconUploadFromJSON(json: any): GetPortalFaviconUpload;
30
+ export declare function GetPortalFaviconUploadFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPortalFaviconUpload;
31
+ export declare function GetPortalFaviconUploadToJSON(json: any): GetPortalFaviconUpload;
32
+ export declare function GetPortalFaviconUploadToJSONTyped(value?: GetPortalFaviconUpload | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
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.instanceOfGetPortalFaviconUpload = instanceOfGetPortalFaviconUpload;
17
+ exports.GetPortalFaviconUploadFromJSON = GetPortalFaviconUploadFromJSON;
18
+ exports.GetPortalFaviconUploadFromJSONTyped = GetPortalFaviconUploadFromJSONTyped;
19
+ exports.GetPortalFaviconUploadToJSON = GetPortalFaviconUploadToJSON;
20
+ exports.GetPortalFaviconUploadToJSONTyped = GetPortalFaviconUploadToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the GetPortalFaviconUpload interface.
23
+ */
24
+ function instanceOfGetPortalFaviconUpload(value) {
25
+ if (!('faviconUrl' in value) || value['faviconUrl'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function GetPortalFaviconUploadFromJSON(json) {
30
+ return GetPortalFaviconUploadFromJSONTyped(json, false);
31
+ }
32
+ function GetPortalFaviconUploadFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'faviconUrl': json['favicon_url'],
38
+ };
39
+ }
40
+ function GetPortalFaviconUploadToJSON(json) {
41
+ return GetPortalFaviconUploadToJSONTyped(json, false);
42
+ }
43
+ function GetPortalFaviconUploadToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'favicon_url': value['faviconUrl'],
49
+ };
50
+ }
@@ -0,0 +1,32 @@
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
+ * Optional body for duplicating a course
14
+ * @export
15
+ * @interface PostDuplicate
16
+ */
17
+ export interface PostDuplicate {
18
+ /**
19
+ * Name for the duplicated course. Defaults to "{original name} (Copy)" if omitted.
20
+ * @type {string}
21
+ * @memberof PostDuplicate
22
+ */
23
+ name?: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the PostDuplicate interface.
27
+ */
28
+ export declare function instanceOfPostDuplicate(value: object): value is PostDuplicate;
29
+ export declare function PostDuplicateFromJSON(json: any): PostDuplicate;
30
+ export declare function PostDuplicateFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostDuplicate;
31
+ export declare function PostDuplicateToJSON(json: any): PostDuplicate;
32
+ export declare function PostDuplicateToJSONTyped(value?: PostDuplicate | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,48 @@
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.instanceOfPostDuplicate = instanceOfPostDuplicate;
17
+ exports.PostDuplicateFromJSON = PostDuplicateFromJSON;
18
+ exports.PostDuplicateFromJSONTyped = PostDuplicateFromJSONTyped;
19
+ exports.PostDuplicateToJSON = PostDuplicateToJSON;
20
+ exports.PostDuplicateToJSONTyped = PostDuplicateToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the PostDuplicate interface.
23
+ */
24
+ function instanceOfPostDuplicate(value) {
25
+ return true;
26
+ }
27
+ function PostDuplicateFromJSON(json) {
28
+ return PostDuplicateFromJSONTyped(json, false);
29
+ }
30
+ function PostDuplicateFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'name': json['name'] == null ? undefined : json['name'],
36
+ };
37
+ }
38
+ function PostDuplicateToJSON(json) {
39
+ return PostDuplicateToJSONTyped(json, false);
40
+ }
41
+ function PostDuplicateToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'name': value['name'],
47
+ };
48
+ }
@@ -0,0 +1,32 @@
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
+ * Optional body for duplicating a module
14
+ * @export
15
+ * @interface PostDuplicate1
16
+ */
17
+ export interface PostDuplicate1 {
18
+ /**
19
+ * Name for the duplicated module. Defaults to "{original name} (Copy)" if omitted.
20
+ * @type {string}
21
+ * @memberof PostDuplicate1
22
+ */
23
+ name?: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the PostDuplicate1 interface.
27
+ */
28
+ export declare function instanceOfPostDuplicate1(value: object): value is PostDuplicate1;
29
+ export declare function PostDuplicate1FromJSON(json: any): PostDuplicate1;
30
+ export declare function PostDuplicate1FromJSONTyped(json: any, ignoreDiscriminator: boolean): PostDuplicate1;
31
+ export declare function PostDuplicate1ToJSON(json: any): PostDuplicate1;
32
+ export declare function PostDuplicate1ToJSONTyped(value?: PostDuplicate1 | null, ignoreDiscriminator?: boolean): any;