@easyedu/js-lsm-api 1.124.0 → 1.126.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 (82) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +7 -5
  3. package/dist/apis/CertificateTemplateApi.d.ts +10 -5
  4. package/dist/apis/CertificateTemplateApi.js +17 -12
  5. package/dist/apis/ContentLibraryApi.d.ts +4 -2
  6. package/dist/apis/ContentLibraryApi.js +5 -3
  7. package/dist/apis/CourseApi.d.ts +5 -4
  8. package/dist/apis/CourseApi.js +7 -4
  9. package/dist/esm/apis/CertificateTemplateApi.d.ts +10 -5
  10. package/dist/esm/apis/CertificateTemplateApi.js +17 -12
  11. package/dist/esm/apis/ContentLibraryApi.d.ts +4 -2
  12. package/dist/esm/apis/ContentLibraryApi.js +5 -3
  13. package/dist/esm/apis/CourseApi.d.ts +5 -4
  14. package/dist/esm/apis/CourseApi.js +7 -4
  15. package/dist/esm/models/CertificateTemplate.d.ts +7 -0
  16. package/dist/esm/models/CertificateTemplate.js +5 -0
  17. package/dist/esm/models/ContentLibraryTag.d.ts +12 -0
  18. package/dist/esm/models/ContentLibraryTag.js +8 -0
  19. package/dist/esm/models/ContentLibraryTagItem.d.ts +2 -0
  20. package/dist/esm/models/ContentLibraryTagItem.js +3 -1
  21. package/dist/esm/models/GetCourse.d.ts +7 -0
  22. package/dist/esm/models/GetCourse.js +5 -0
  23. package/dist/esm/models/PostCourse.d.ts +6 -0
  24. package/dist/esm/models/PostCourse.js +2 -0
  25. package/dist/esm/models/PostCourseEnrollment.d.ts +8 -4
  26. package/dist/esm/models/PostPortalCertificateTemplate.d.ts +57 -0
  27. package/dist/esm/models/PostPortalCertificateTemplate.js +52 -0
  28. package/dist/esm/models/PutCourse.d.ts +6 -0
  29. package/dist/esm/models/PutCourse.js +2 -0
  30. package/dist/esm/models/PutCourseEnrollment.d.ts +0 -14
  31. package/dist/esm/models/PutCourseEnrollment.js +0 -9
  32. package/dist/esm/models/PutPortalCertificateTemplate.d.ts +50 -0
  33. package/dist/esm/models/PutPortalCertificateTemplate.js +47 -0
  34. package/dist/esm/models/index.d.ts +2 -0
  35. package/dist/esm/models/index.js +2 -0
  36. package/dist/models/CertificateTemplate.d.ts +7 -0
  37. package/dist/models/CertificateTemplate.js +5 -0
  38. package/dist/models/ContentLibraryTag.d.ts +12 -0
  39. package/dist/models/ContentLibraryTag.js +8 -0
  40. package/dist/models/ContentLibraryTagItem.d.ts +2 -0
  41. package/dist/models/ContentLibraryTagItem.js +3 -1
  42. package/dist/models/GetCourse.d.ts +7 -0
  43. package/dist/models/GetCourse.js +5 -0
  44. package/dist/models/PostCourse.d.ts +6 -0
  45. package/dist/models/PostCourse.js +2 -0
  46. package/dist/models/PostCourseEnrollment.d.ts +8 -4
  47. package/dist/models/PostPortalCertificateTemplate.d.ts +57 -0
  48. package/dist/models/PostPortalCertificateTemplate.js +59 -0
  49. package/dist/models/PutCourse.d.ts +6 -0
  50. package/dist/models/PutCourse.js +2 -0
  51. package/dist/models/PutCourseEnrollment.d.ts +0 -14
  52. package/dist/models/PutCourseEnrollment.js +1 -10
  53. package/dist/models/PutPortalCertificateTemplate.d.ts +50 -0
  54. package/dist/models/PutPortalCertificateTemplate.js +54 -0
  55. package/dist/models/index.d.ts +2 -0
  56. package/dist/models/index.js +2 -0
  57. package/docs/CertificateTemplate.md +2 -0
  58. package/docs/CertificateTemplateApi.md +19 -11
  59. package/docs/ContentLibraryApi.md +4 -4
  60. package/docs/ContentLibraryTag.md +4 -0
  61. package/docs/CourseApi.md +12 -7
  62. package/docs/GetCourse.md +2 -0
  63. package/docs/PostCourse.md +2 -0
  64. package/docs/PostPortalCertificateTemplate.md +42 -0
  65. package/docs/PutCourse.md +2 -0
  66. package/docs/PutCourseEnrollment.md +0 -2
  67. package/docs/PutPortalCertificateTemplate.md +40 -0
  68. package/package.json +1 -1
  69. package/src/apis/CertificateTemplateApi.ts +33 -15
  70. package/src/apis/ContentLibraryApi.ts +5 -3
  71. package/src/apis/CourseApi.ts +9 -4
  72. package/src/models/CertificateTemplate.ts +16 -0
  73. package/src/models/ContentLibraryTag.ts +18 -0
  74. package/src/models/ContentLibraryTagItem.ts +3 -1
  75. package/src/models/GetCourse.ts +17 -0
  76. package/src/models/PostCourse.ts +8 -0
  77. package/src/models/PostCourseEnrollment.ts +8 -4
  78. package/src/models/PostPortalCertificateTemplate.ts +106 -0
  79. package/src/models/PutCourse.ts +8 -0
  80. package/src/models/PutCourseEnrollment.ts +0 -17
  81. package/src/models/PutPortalCertificateTemplate.ts +89 -0
  82. package/src/models/index.ts +2 -0
@@ -691,6 +691,9 @@ export class CourseApi extends runtime.BaseAPI {
691
691
  if (requestParameters['recentActivitySince'] != null) {
692
692
  queryParameters['recentActivitySince'] = requestParameters['recentActivitySince'];
693
693
  }
694
+ if (requestParameters['tagId'] != null) {
695
+ queryParameters['tag_id'] = requestParameters['tagId'];
696
+ }
694
697
  const headerParameters = {};
695
698
  let urlPath = `/courses`;
696
699
  return {
@@ -1189,7 +1192,7 @@ export class CourseApi extends runtime.BaseAPI {
1189
1192
  });
1190
1193
  }
1191
1194
  /**
1192
- * Create a new course enrollment
1195
+ * Create a new single-role course enrollment
1193
1196
  */
1194
1197
  postCourseEnrollmentRaw(requestParameters, initOverrides) {
1195
1198
  return __awaiter(this, void 0, void 0, function* () {
@@ -1199,7 +1202,7 @@ export class CourseApi extends runtime.BaseAPI {
1199
1202
  });
1200
1203
  }
1201
1204
  /**
1202
- * Create a new course enrollment
1205
+ * Create a new single-role course enrollment
1203
1206
  */
1204
1207
  postCourseEnrollment(requestParameters, initOverrides) {
1205
1208
  return __awaiter(this, void 0, void 0, function* () {
@@ -1726,7 +1729,7 @@ export class CourseApi extends runtime.BaseAPI {
1726
1729
  });
1727
1730
  }
1728
1731
  /**
1729
- * Update a course enrollment
1732
+ * Update an enrollment without changing its user type
1730
1733
  */
1731
1734
  putCourseEnrollmentRaw(requestParameters, initOverrides) {
1732
1735
  return __awaiter(this, void 0, void 0, function* () {
@@ -1736,7 +1739,7 @@ export class CourseApi extends runtime.BaseAPI {
1736
1739
  });
1737
1740
  }
1738
1741
  /**
1739
- * Update a course enrollment
1742
+ * Update an enrollment without changing its user type
1740
1743
  */
1741
1744
  putCourseEnrollment(requestParameters, initOverrides) {
1742
1745
  return __awaiter(this, void 0, void 0, function* () {
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { ContentLibraryTag } from './ContentLibraryTag';
12
13
  import type { CertificateTemplateVersion } from './CertificateTemplateVersion';
13
14
  /**
14
15
  *
@@ -64,6 +65,12 @@ export interface CertificateTemplate {
64
65
  * @memberof CertificateTemplate
65
66
  */
66
67
  effectiveSourcePortalId?: string | null;
68
+ /**
69
+ *
70
+ * @type {Array<ContentLibraryTag>}
71
+ * @memberof CertificateTemplate
72
+ */
73
+ tags: Array<ContentLibraryTag>;
67
74
  /**
68
75
  *
69
76
  * @type {CertificateTemplateVersion}
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { ContentLibraryTagFromJSON, ContentLibraryTagToJSON, } from './ContentLibraryTag';
14
15
  import { CertificateTemplateVersionFromJSON, CertificateTemplateVersionToJSON, } from './CertificateTemplateVersion';
15
16
  /**
16
17
  * @export
@@ -37,6 +38,8 @@ export function instanceOfCertificateTemplate(value) {
37
38
  return false;
38
39
  if (!('effectiveSource' in value) || value['effectiveSource'] === undefined)
39
40
  return false;
41
+ if (!('tags' in value) || value['tags'] === undefined)
42
+ return false;
40
43
  if (!('activeVersion' in value) || value['activeVersion'] === undefined)
41
44
  return false;
42
45
  if (!('versions' in value) || value['versions'] === undefined)
@@ -63,6 +66,7 @@ export function CertificateTemplateFromJSONTyped(json, ignoreDiscriminator) {
63
66
  'isInherited': json['is_inherited'],
64
67
  'effectiveSource': json['effective_source'],
65
68
  'effectiveSourcePortalId': json['effective_source_portal_id'] == null ? undefined : json['effective_source_portal_id'],
69
+ 'tags': (json['tags'].map(ContentLibraryTagFromJSON)),
66
70
  'activeVersion': CertificateTemplateVersionFromJSON(json['active_version']),
67
71
  'draftVersion': json['draft_version'] == null ? undefined : CertificateTemplateVersionFromJSON(json['draft_version']),
68
72
  'versions': (json['versions'].map(CertificateTemplateVersionFromJSON)),
@@ -87,6 +91,7 @@ export function CertificateTemplateToJSONTyped(value, ignoreDiscriminator = fals
87
91
  'is_inherited': value['isInherited'],
88
92
  'effective_source': value['effectiveSource'],
89
93
  'effective_source_portal_id': value['effectiveSourcePortalId'],
94
+ 'tags': (value['tags'].map(ContentLibraryTagToJSON)),
90
95
  'active_version': CertificateTemplateVersionToJSON(value['activeVersion']),
91
96
  'draft_version': CertificateTemplateVersionToJSON(value['draftVersion']),
92
97
  'versions': (value['versions'].map(CertificateTemplateVersionToJSON)),
@@ -87,6 +87,18 @@ export interface ContentLibraryTag {
87
87
  * @memberof ContentLibraryTag
88
88
  */
89
89
  questionCount: number;
90
+ /**
91
+ *
92
+ * @type {number}
93
+ * @memberof ContentLibraryTag
94
+ */
95
+ courseCount: number;
96
+ /**
97
+ *
98
+ * @type {number}
99
+ * @memberof ContentLibraryTag
100
+ */
101
+ certificateTemplateCount: number;
90
102
  /**
91
103
  *
92
104
  * @type {number}
@@ -33,6 +33,10 @@ export function instanceOfContentLibraryTag(value) {
33
33
  return false;
34
34
  if (!('questionCount' in value) || value['questionCount'] === undefined)
35
35
  return false;
36
+ if (!('courseCount' in value) || value['courseCount'] === undefined)
37
+ return false;
38
+ if (!('certificateTemplateCount' in value) || value['certificateTemplateCount'] === undefined)
39
+ return false;
36
40
  if (!('createdAt' in value) || value['createdAt'] === undefined)
37
41
  return false;
38
42
  if (!('updatedAt' in value) || value['updatedAt'] === undefined)
@@ -59,6 +63,8 @@ export function ContentLibraryTagFromJSONTyped(json, ignoreDiscriminator) {
59
63
  'resourceCount': json['resource_count'],
60
64
  'quizCount': json['quiz_count'],
61
65
  'questionCount': json['question_count'],
66
+ 'courseCount': json['course_count'],
67
+ 'certificateTemplateCount': json['certificate_template_count'],
62
68
  'createdAt': json['created_at'],
63
69
  'updatedAt': json['updated_at'],
64
70
  };
@@ -83,6 +89,8 @@ export function ContentLibraryTagToJSONTyped(value, ignoreDiscriminator = false)
83
89
  'resource_count': value['resourceCount'],
84
90
  'quiz_count': value['quizCount'],
85
91
  'question_count': value['questionCount'],
92
+ 'course_count': value['courseCount'],
93
+ 'certificate_template_count': value['certificateTemplateCount'],
86
94
  'created_at': value['createdAt'],
87
95
  'updated_at': value['updatedAt'],
88
96
  };
@@ -73,6 +73,8 @@ export declare const ContentLibraryTagItemKindEnum: {
73
73
  readonly Resource: "resource";
74
74
  readonly Quiz: "quiz";
75
75
  readonly Question: "question";
76
+ readonly Course: "course";
77
+ readonly CertificateTemplate: "certificate_template";
76
78
  };
77
79
  export type ContentLibraryTagItemKindEnum = typeof ContentLibraryTagItemKindEnum[keyof typeof ContentLibraryTagItemKindEnum];
78
80
  /**
@@ -19,7 +19,9 @@ import { ResourceTypeFromJSON, ResourceTypeToJSON, } from './ResourceType';
19
19
  export const ContentLibraryTagItemKindEnum = {
20
20
  Resource: 'resource',
21
21
  Quiz: 'quiz',
22
- Question: 'question'
22
+ Question: 'question',
23
+ Course: 'course',
24
+ CertificateTemplate: 'certificate_template'
23
25
  };
24
26
  /**
25
27
  * Check if a given object implements the ContentLibraryTagItem interface.
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { ContentLibraryTag } from './ContentLibraryTag';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -69,6 +70,12 @@ export interface GetCourse {
69
70
  * @memberof GetCourse
70
71
  */
71
72
  accessFixedEndAt: number | null;
73
+ /**
74
+ *
75
+ * @type {Array<ContentLibraryTag>}
76
+ * @memberof GetCourse
77
+ */
78
+ tags: Array<ContentLibraryTag>;
72
79
  }
73
80
  /**
74
81
  * @export
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { ContentLibraryTagFromJSON, ContentLibraryTagToJSON, } from './ContentLibraryTag';
14
15
  /**
15
16
  * @export
16
17
  */
@@ -41,6 +42,8 @@ export function instanceOfGetCourse(value) {
41
42
  return false;
42
43
  if (!('accessFixedEndAt' in value) || value['accessFixedEndAt'] === undefined)
43
44
  return false;
45
+ if (!('tags' in value) || value['tags'] === undefined)
46
+ return false;
44
47
  return true;
45
48
  }
46
49
  export function GetCourseFromJSON(json) {
@@ -60,6 +63,7 @@ export function GetCourseFromJSONTyped(json, ignoreDiscriminator) {
60
63
  'accessPolicyType': json['access_policy_type'],
61
64
  'accessDurationDays': json['access_duration_days'],
62
65
  'accessFixedEndAt': json['access_fixed_end_at'],
66
+ 'tags': (json['tags'].map(ContentLibraryTagFromJSON)),
63
67
  };
64
68
  }
65
69
  export function GetCourseToJSON(json) {
@@ -78,5 +82,6 @@ export function GetCourseToJSONTyped(value, ignoreDiscriminator = false) {
78
82
  'access_policy_type': value['accessPolicyType'],
79
83
  'access_duration_days': value['accessDurationDays'],
80
84
  'access_fixed_end_at': value['accessFixedEndAt'],
85
+ 'tags': (value['tags'].map(ContentLibraryTagToJSON)),
81
86
  };
82
87
  }
@@ -47,6 +47,12 @@ export interface PostCourse {
47
47
  * @memberof PostCourse
48
48
  */
49
49
  accessFixedEndAt?: number | null;
50
+ /**
51
+ *
52
+ * @type {Set<string>}
53
+ * @memberof PostCourse
54
+ */
55
+ tags?: Set<string>;
50
56
  }
51
57
  /**
52
58
  * @export
@@ -42,6 +42,7 @@ export function PostCourseFromJSONTyped(json, ignoreDiscriminator) {
42
42
  'accessPolicyType': json['access_policy_type'] == null ? undefined : json['access_policy_type'],
43
43
  'accessDurationDays': json['access_duration_days'] == null ? undefined : json['access_duration_days'],
44
44
  'accessFixedEndAt': json['access_fixed_end_at'] == null ? undefined : json['access_fixed_end_at'],
45
+ 'tags': json['tags'] == null ? undefined : new Set(json['tags']),
45
46
  };
46
47
  }
47
48
  export function PostCourseToJSON(json) {
@@ -57,5 +58,6 @@ export function PostCourseToJSONTyped(value, ignoreDiscriminator = false) {
57
58
  'access_policy_type': value['accessPolicyType'],
58
59
  'access_duration_days': value['accessDurationDays'],
59
60
  'access_fixed_end_at': value['accessFixedEndAt'],
61
+ 'tags': value['tags'] == null ? undefined : Array.from(value['tags']),
60
62
  };
61
63
  }
@@ -40,15 +40,19 @@ export interface PostCourseEnrollment {
40
40
  */
41
41
  notes?: string | null;
42
42
  /**
43
- * The role/type of the user in this enrollment
43
+ * The role/type of this enrollment. A user may have one current Student and
44
+ * one current Instructor enrollment for the same course. Assign both roles
45
+ * with two requests, one for each user_type.
46
+ *
44
47
  * @type {PostCourseEnrollmentUserTypeEnum}
45
48
  * @memberof PostCourseEnrollment
46
49
  */
47
50
  userType?: PostCourseEnrollmentUserTypeEnum | null;
48
51
  /**
49
- * How to handle a learner with a prior terminal enrollment for this course.
50
- * restart creates a new enrollment period; resume reopens the latest terminal
51
- * enrollment. Active enrollments always conflict.
52
+ * How to handle a user with a prior terminal enrollment of the requested
53
+ * user_type for this course. restart creates a new enrollment period; resume
54
+ * reopens the latest terminal enrollment of that type. A current enrollment
55
+ * of the same type always conflicts.
52
56
  *
53
57
  * @type {PostCourseEnrollmentReEnrollmentModeEnum}
54
58
  * @memberof PostCourseEnrollment
@@ -0,0 +1,57 @@
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 { CertificateCanvasDocument } from './CertificateCanvasDocument';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PostPortalCertificateTemplate
17
+ */
18
+ export interface PostPortalCertificateTemplate {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof PostPortalCertificateTemplate
23
+ */
24
+ name: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof PostPortalCertificateTemplate
29
+ */
30
+ description?: string;
31
+ /**
32
+ *
33
+ * @type {boolean}
34
+ * @memberof PostPortalCertificateTemplate
35
+ */
36
+ isDefault?: boolean;
37
+ /**
38
+ *
39
+ * @type {CertificateCanvasDocument}
40
+ * @memberof PostPortalCertificateTemplate
41
+ */
42
+ designDocument?: CertificateCanvasDocument;
43
+ /**
44
+ *
45
+ * @type {Set<string>}
46
+ * @memberof PostPortalCertificateTemplate
47
+ */
48
+ tags?: Set<string>;
49
+ }
50
+ /**
51
+ * Check if a given object implements the PostPortalCertificateTemplate interface.
52
+ */
53
+ export declare function instanceOfPostPortalCertificateTemplate(value: object): value is PostPortalCertificateTemplate;
54
+ export declare function PostPortalCertificateTemplateFromJSON(json: any): PostPortalCertificateTemplate;
55
+ export declare function PostPortalCertificateTemplateFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostPortalCertificateTemplate;
56
+ export declare function PostPortalCertificateTemplateToJSON(json: any): PostPortalCertificateTemplate;
57
+ export declare function PostPortalCertificateTemplateToJSONTyped(value?: PostPortalCertificateTemplate | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,52 @@
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
+ import { CertificateCanvasDocumentFromJSON, CertificateCanvasDocumentToJSON, } from './CertificateCanvasDocument';
15
+ /**
16
+ * Check if a given object implements the PostPortalCertificateTemplate interface.
17
+ */
18
+ export function instanceOfPostPortalCertificateTemplate(value) {
19
+ if (!('name' in value) || value['name'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function PostPortalCertificateTemplateFromJSON(json) {
24
+ return PostPortalCertificateTemplateFromJSONTyped(json, false);
25
+ }
26
+ export function PostPortalCertificateTemplateFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'name': json['name'],
32
+ 'description': json['description'] == null ? undefined : json['description'],
33
+ 'isDefault': json['is_default'] == null ? undefined : json['is_default'],
34
+ 'designDocument': json['design_document'] == null ? undefined : CertificateCanvasDocumentFromJSON(json['design_document']),
35
+ 'tags': json['tags'] == null ? undefined : new Set(json['tags']),
36
+ };
37
+ }
38
+ export function PostPortalCertificateTemplateToJSON(json) {
39
+ return PostPortalCertificateTemplateToJSONTyped(json, false);
40
+ }
41
+ export function PostPortalCertificateTemplateToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'name': value['name'],
47
+ 'description': value['description'],
48
+ 'is_default': value['isDefault'],
49
+ 'design_document': CertificateCanvasDocumentToJSON(value['designDocument']),
50
+ 'tags': value['tags'] == null ? undefined : Array.from(value['tags']),
51
+ };
52
+ }
@@ -57,6 +57,12 @@ export interface PutCourse {
57
57
  * @memberof PutCourse
58
58
  */
59
59
  accessFixedEndAt?: number | null;
60
+ /**
61
+ *
62
+ * @type {Set<string>}
63
+ * @memberof PutCourse
64
+ */
65
+ tags?: Set<string>;
60
66
  }
61
67
  /**
62
68
  * @export
@@ -40,6 +40,7 @@ export function PutCourseFromJSONTyped(json, ignoreDiscriminator) {
40
40
  'accessPolicyType': json['access_policy_type'] == null ? undefined : json['access_policy_type'],
41
41
  'accessDurationDays': json['access_duration_days'] == null ? undefined : json['access_duration_days'],
42
42
  'accessFixedEndAt': json['access_fixed_end_at'] == null ? undefined : json['access_fixed_end_at'],
43
+ 'tags': json['tags'] == null ? undefined : new Set(json['tags']),
43
44
  };
44
45
  }
45
46
  export function PutCourseToJSON(json) {
@@ -56,5 +57,6 @@ export function PutCourseToJSONTyped(value, ignoreDiscriminator = false) {
56
57
  'access_policy_type': value['accessPolicyType'],
57
58
  'access_duration_days': value['accessDurationDays'],
58
59
  'access_fixed_end_at': value['accessFixedEndAt'],
60
+ 'tags': value['tags'] == null ? undefined : Array.from(value['tags']),
59
61
  };
60
62
  }
@@ -24,12 +24,6 @@ export interface PutCourseEnrollment {
24
24
  * @memberof PutCourseEnrollment
25
25
  */
26
26
  status?: PutCourseEnrollmentStatusEnum;
27
- /**
28
- * The role/type of the user in this enrollment
29
- * @type {PutCourseEnrollmentUserTypeEnum}
30
- * @memberof PutCourseEnrollment
31
- */
32
- userType?: PutCourseEnrollmentUserTypeEnum;
33
27
  /**
34
28
  * End date of the enrollment (Unix timestamp)
35
29
  * @type {number}
@@ -71,14 +65,6 @@ export declare const PutCourseEnrollmentStatusEnum: {
71
65
  readonly Suspended: "Suspended";
72
66
  };
73
67
  export type PutCourseEnrollmentStatusEnum = typeof PutCourseEnrollmentStatusEnum[keyof typeof PutCourseEnrollmentStatusEnum];
74
- /**
75
- * @export
76
- */
77
- export declare const PutCourseEnrollmentUserTypeEnum: {
78
- readonly Student: "Student";
79
- readonly Instructor: "Instructor";
80
- };
81
- export type PutCourseEnrollmentUserTypeEnum = typeof PutCourseEnrollmentUserTypeEnum[keyof typeof PutCourseEnrollmentUserTypeEnum];
82
68
  /**
83
69
  * Check if a given object implements the PutCourseEnrollment interface.
84
70
  */
@@ -23,13 +23,6 @@ export const PutCourseEnrollmentStatusEnum = {
23
23
  Archived: 'Archived',
24
24
  Suspended: 'Suspended'
25
25
  };
26
- /**
27
- * @export
28
- */
29
- export const PutCourseEnrollmentUserTypeEnum = {
30
- Student: 'Student',
31
- Instructor: 'Instructor'
32
- };
33
26
  /**
34
27
  * Check if a given object implements the PutCourseEnrollment interface.
35
28
  */
@@ -45,7 +38,6 @@ export function PutCourseEnrollmentFromJSONTyped(json, ignoreDiscriminator) {
45
38
  }
46
39
  return {
47
40
  'status': json['status'] == null ? undefined : json['status'],
48
- 'userType': json['user_type'] == null ? undefined : json['user_type'],
49
41
  'enrollmentDateEnd': json['enrollment_date_end'] == null ? undefined : json['enrollment_date_end'],
50
42
  'extensionDays': json['extension_days'] == null ? undefined : json['extension_days'],
51
43
  'notes': json['notes'] == null ? undefined : json['notes'],
@@ -61,7 +53,6 @@ export function PutCourseEnrollmentToJSONTyped(value, ignoreDiscriminator = fals
61
53
  }
62
54
  return {
63
55
  'status': value['status'],
64
- 'user_type': value['userType'],
65
56
  'enrollment_date_end': value['enrollmentDateEnd'],
66
57
  'extension_days': value['extensionDays'],
67
58
  'notes': value['notes'],
@@ -0,0 +1,50 @@
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 PutPortalCertificateTemplate
16
+ */
17
+ export interface PutPortalCertificateTemplate {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PutPortalCertificateTemplate
22
+ */
23
+ name?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof PutPortalCertificateTemplate
28
+ */
29
+ description?: string;
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof PutPortalCertificateTemplate
34
+ */
35
+ isDefault?: boolean;
36
+ /**
37
+ *
38
+ * @type {Set<string>}
39
+ * @memberof PutPortalCertificateTemplate
40
+ */
41
+ tags?: Set<string>;
42
+ }
43
+ /**
44
+ * Check if a given object implements the PutPortalCertificateTemplate interface.
45
+ */
46
+ export declare function instanceOfPutPortalCertificateTemplate(value: object): value is PutPortalCertificateTemplate;
47
+ export declare function PutPortalCertificateTemplateFromJSON(json: any): PutPortalCertificateTemplate;
48
+ export declare function PutPortalCertificateTemplateFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutPortalCertificateTemplate;
49
+ export declare function PutPortalCertificateTemplateToJSON(json: any): PutPortalCertificateTemplate;
50
+ export declare function PutPortalCertificateTemplateToJSONTyped(value?: PutPortalCertificateTemplate | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,47 @@
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 PutPortalCertificateTemplate interface.
16
+ */
17
+ export function instanceOfPutPortalCertificateTemplate(value) {
18
+ return true;
19
+ }
20
+ export function PutPortalCertificateTemplateFromJSON(json) {
21
+ return PutPortalCertificateTemplateFromJSONTyped(json, false);
22
+ }
23
+ export function PutPortalCertificateTemplateFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'name': json['name'] == null ? undefined : json['name'],
29
+ 'description': json['description'] == null ? undefined : json['description'],
30
+ 'isDefault': json['is_default'] == null ? undefined : json['is_default'],
31
+ 'tags': json['tags'] == null ? undefined : new Set(json['tags']),
32
+ };
33
+ }
34
+ export function PutPortalCertificateTemplateToJSON(json) {
35
+ return PutPortalCertificateTemplateToJSONTyped(json, false);
36
+ }
37
+ export function PutPortalCertificateTemplateToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'name': value['name'],
43
+ 'description': value['description'],
44
+ 'is_default': value['isDefault'],
45
+ 'tags': value['tags'] == null ? undefined : Array.from(value['tags']),
46
+ };
47
+ }
@@ -263,6 +263,7 @@ export * from './PostOfferCatalogResponse';
263
263
  export * from './PostOfferCourse';
264
264
  export * from './PostOfferCourseResponse';
265
265
  export * from './PostPortal';
266
+ export * from './PostPortalCertificateTemplate';
266
267
  export * from './PostPortalInvite';
267
268
  export * from './PostQuestion';
268
269
  export * from './PostQuestionAnswerChoicesInner';
@@ -322,6 +323,7 @@ export * from './PutLibraryQuizSessionGrade';
322
323
  export * from './PutLibraryQuizSessionOverride';
323
324
  export * from './PutLibraryQuizVersion';
324
325
  export * from './PutPortalBranding';
326
+ export * from './PutPortalCertificateTemplate';
325
327
  export * from './PutPortalSublicense';
326
328
  export * from './PutPortalUserFieldValues';
327
329
  export * from './PutQuestion';
@@ -265,6 +265,7 @@ export * from './PostOfferCatalogResponse';
265
265
  export * from './PostOfferCourse';
266
266
  export * from './PostOfferCourseResponse';
267
267
  export * from './PostPortal';
268
+ export * from './PostPortalCertificateTemplate';
268
269
  export * from './PostPortalInvite';
269
270
  export * from './PostQuestion';
270
271
  export * from './PostQuestionAnswerChoicesInner';
@@ -324,6 +325,7 @@ export * from './PutLibraryQuizSessionGrade';
324
325
  export * from './PutLibraryQuizSessionOverride';
325
326
  export * from './PutLibraryQuizVersion';
326
327
  export * from './PutPortalBranding';
328
+ export * from './PutPortalCertificateTemplate';
327
329
  export * from './PutPortalSublicense';
328
330
  export * from './PutPortalUserFieldValues';
329
331
  export * from './PutQuestion';
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { ContentLibraryTag } from './ContentLibraryTag';
12
13
  import type { CertificateTemplateVersion } from './CertificateTemplateVersion';
13
14
  /**
14
15
  *
@@ -64,6 +65,12 @@ export interface CertificateTemplate {
64
65
  * @memberof CertificateTemplate
65
66
  */
66
67
  effectiveSourcePortalId?: string | null;
68
+ /**
69
+ *
70
+ * @type {Array<ContentLibraryTag>}
71
+ * @memberof CertificateTemplate
72
+ */
73
+ tags: Array<ContentLibraryTag>;
67
74
  /**
68
75
  *
69
76
  * @type {CertificateTemplateVersion}
@@ -19,6 +19,7 @@ exports.CertificateTemplateFromJSON = CertificateTemplateFromJSON;
19
19
  exports.CertificateTemplateFromJSONTyped = CertificateTemplateFromJSONTyped;
20
20
  exports.CertificateTemplateToJSON = CertificateTemplateToJSON;
21
21
  exports.CertificateTemplateToJSONTyped = CertificateTemplateToJSONTyped;
22
+ const ContentLibraryTag_1 = require("./ContentLibraryTag");
22
23
  const CertificateTemplateVersion_1 = require("./CertificateTemplateVersion");
23
24
  /**
24
25
  * @export
@@ -45,6 +46,8 @@ function instanceOfCertificateTemplate(value) {
45
46
  return false;
46
47
  if (!('effectiveSource' in value) || value['effectiveSource'] === undefined)
47
48
  return false;
49
+ if (!('tags' in value) || value['tags'] === undefined)
50
+ return false;
48
51
  if (!('activeVersion' in value) || value['activeVersion'] === undefined)
49
52
  return false;
50
53
  if (!('versions' in value) || value['versions'] === undefined)
@@ -71,6 +74,7 @@ function CertificateTemplateFromJSONTyped(json, ignoreDiscriminator) {
71
74
  'isInherited': json['is_inherited'],
72
75
  'effectiveSource': json['effective_source'],
73
76
  'effectiveSourcePortalId': json['effective_source_portal_id'] == null ? undefined : json['effective_source_portal_id'],
77
+ 'tags': (json['tags'].map(ContentLibraryTag_1.ContentLibraryTagFromJSON)),
74
78
  'activeVersion': (0, CertificateTemplateVersion_1.CertificateTemplateVersionFromJSON)(json['active_version']),
75
79
  'draftVersion': json['draft_version'] == null ? undefined : (0, CertificateTemplateVersion_1.CertificateTemplateVersionFromJSON)(json['draft_version']),
76
80
  'versions': (json['versions'].map(CertificateTemplateVersion_1.CertificateTemplateVersionFromJSON)),
@@ -95,6 +99,7 @@ function CertificateTemplateToJSONTyped(value, ignoreDiscriminator = false) {
95
99
  'is_inherited': value['isInherited'],
96
100
  'effective_source': value['effectiveSource'],
97
101
  'effective_source_portal_id': value['effectiveSourcePortalId'],
102
+ 'tags': (value['tags'].map(ContentLibraryTag_1.ContentLibraryTagToJSON)),
98
103
  'active_version': (0, CertificateTemplateVersion_1.CertificateTemplateVersionToJSON)(value['activeVersion']),
99
104
  'draft_version': (0, CertificateTemplateVersion_1.CertificateTemplateVersionToJSON)(value['draftVersion']),
100
105
  'versions': (value['versions'].map(CertificateTemplateVersion_1.CertificateTemplateVersionToJSON)),