@easyedu/js-lsm-api 1.131.0 → 1.133.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 (122) hide show
  1. package/.openapi-generator/FILES +28 -0
  2. package/README.md +18 -2
  3. package/dist/apis/PortalApi.d.ts +9 -0
  4. package/dist/apis/PortalApi.js +11 -1
  5. package/dist/apis/QuestionApi.d.ts +19 -0
  6. package/dist/apis/QuestionApi.js +44 -0
  7. package/dist/apis/SystemApi.d.ts +16 -0
  8. package/dist/apis/SystemApi.js +40 -0
  9. package/dist/esm/apis/PortalApi.d.ts +9 -0
  10. package/dist/esm/apis/PortalApi.js +10 -0
  11. package/dist/esm/apis/QuestionApi.d.ts +19 -0
  12. package/dist/esm/apis/QuestionApi.js +44 -0
  13. package/dist/esm/apis/SystemApi.d.ts +16 -0
  14. package/dist/esm/apis/SystemApi.js +40 -0
  15. package/dist/esm/models/GetCourseEnrollmentListItem.d.ts +6 -0
  16. package/dist/esm/models/GetCourseEnrollmentListItem.js +2 -0
  17. package/dist/esm/models/GetResourceUsageCoursesInner.d.ts +6 -0
  18. package/dist/esm/models/GetResourceUsageCoursesInner.js +4 -0
  19. package/dist/esm/models/GetSystemPortalOverview.d.ts +121 -0
  20. package/dist/esm/models/GetSystemPortalOverview.js +106 -0
  21. package/dist/esm/models/PostQuestionTags.d.ts +38 -0
  22. package/dist/esm/models/PostQuestionTags.js +47 -0
  23. package/dist/esm/models/PostQuestionTagsResponse.d.ts +32 -0
  24. package/dist/esm/models/PostQuestionTagsResponse.js +43 -0
  25. package/dist/esm/models/SystemPortalActivityStats.d.ts +56 -0
  26. package/dist/esm/models/SystemPortalActivityStats.js +57 -0
  27. package/dist/esm/models/SystemPortalCertificateStats.d.ts +50 -0
  28. package/dist/esm/models/SystemPortalCertificateStats.js +55 -0
  29. package/dist/esm/models/SystemPortalContentStats.d.ts +56 -0
  30. package/dist/esm/models/SystemPortalContentStats.js +59 -0
  31. package/dist/esm/models/SystemPortalCourseStats.d.ts +62 -0
  32. package/dist/esm/models/SystemPortalCourseStats.js +63 -0
  33. package/dist/esm/models/SystemPortalEnrollmentStats.d.ts +56 -0
  34. package/dist/esm/models/SystemPortalEnrollmentStats.js +59 -0
  35. package/dist/esm/models/SystemPortalHierarchy.d.ts +44 -0
  36. package/dist/esm/models/SystemPortalHierarchy.js +47 -0
  37. package/dist/esm/models/SystemPortalLicense.d.ts +65 -0
  38. package/dist/esm/models/SystemPortalLicense.js +61 -0
  39. package/dist/esm/models/SystemPortalRoleCount.d.ts +51 -0
  40. package/dist/esm/models/SystemPortalRoleCount.js +59 -0
  41. package/dist/esm/models/SystemPortalStorageUsage.d.ts +74 -0
  42. package/dist/esm/models/SystemPortalStorageUsage.js +71 -0
  43. package/dist/esm/models/SystemPortalSupportStats.d.ts +50 -0
  44. package/dist/esm/models/SystemPortalSupportStats.js +55 -0
  45. package/dist/esm/models/SystemPortalUserStats.d.ts +81 -0
  46. package/dist/esm/models/SystemPortalUserStats.js +74 -0
  47. package/dist/esm/models/index.d.ts +14 -0
  48. package/dist/esm/models/index.js +14 -0
  49. package/dist/models/GetCourseEnrollmentListItem.d.ts +6 -0
  50. package/dist/models/GetCourseEnrollmentListItem.js +2 -0
  51. package/dist/models/GetResourceUsageCoursesInner.d.ts +6 -0
  52. package/dist/models/GetResourceUsageCoursesInner.js +4 -0
  53. package/dist/models/GetSystemPortalOverview.d.ts +121 -0
  54. package/dist/models/GetSystemPortalOverview.js +113 -0
  55. package/dist/models/PostQuestionTags.d.ts +38 -0
  56. package/dist/models/PostQuestionTags.js +54 -0
  57. package/dist/models/PostQuestionTagsResponse.d.ts +32 -0
  58. package/dist/models/PostQuestionTagsResponse.js +50 -0
  59. package/dist/models/SystemPortalActivityStats.d.ts +56 -0
  60. package/dist/models/SystemPortalActivityStats.js +64 -0
  61. package/dist/models/SystemPortalCertificateStats.d.ts +50 -0
  62. package/dist/models/SystemPortalCertificateStats.js +62 -0
  63. package/dist/models/SystemPortalContentStats.d.ts +56 -0
  64. package/dist/models/SystemPortalContentStats.js +66 -0
  65. package/dist/models/SystemPortalCourseStats.d.ts +62 -0
  66. package/dist/models/SystemPortalCourseStats.js +70 -0
  67. package/dist/models/SystemPortalEnrollmentStats.d.ts +56 -0
  68. package/dist/models/SystemPortalEnrollmentStats.js +66 -0
  69. package/dist/models/SystemPortalHierarchy.d.ts +44 -0
  70. package/dist/models/SystemPortalHierarchy.js +54 -0
  71. package/dist/models/SystemPortalLicense.d.ts +65 -0
  72. package/dist/models/SystemPortalLicense.js +69 -0
  73. package/dist/models/SystemPortalRoleCount.d.ts +51 -0
  74. package/dist/models/SystemPortalRoleCount.js +67 -0
  75. package/dist/models/SystemPortalStorageUsage.d.ts +74 -0
  76. package/dist/models/SystemPortalStorageUsage.js +78 -0
  77. package/dist/models/SystemPortalSupportStats.d.ts +50 -0
  78. package/dist/models/SystemPortalSupportStats.js +62 -0
  79. package/dist/models/SystemPortalUserStats.d.ts +81 -0
  80. package/dist/models/SystemPortalUserStats.js +81 -0
  81. package/dist/models/index.d.ts +14 -0
  82. package/dist/models/index.js +14 -0
  83. package/docs/GetCourseEnrollmentListItem.md +2 -0
  84. package/docs/GetResourceUsageCoursesInner.md +2 -0
  85. package/docs/GetSystemPortalOverview.md +61 -0
  86. package/docs/PortalApi.md +4 -1
  87. package/docs/PostQuestionTags.md +37 -0
  88. package/docs/PostQuestionTagsResponse.md +34 -0
  89. package/docs/QuestionApi.md +71 -0
  90. package/docs/SystemApi.md +68 -0
  91. package/docs/SystemPortalActivityStats.md +42 -0
  92. package/docs/SystemPortalCertificateStats.md +40 -0
  93. package/docs/SystemPortalContentStats.md +43 -0
  94. package/docs/SystemPortalCourseStats.md +44 -0
  95. package/docs/SystemPortalEnrollmentStats.md +43 -0
  96. package/docs/SystemPortalHierarchy.md +38 -0
  97. package/docs/SystemPortalLicense.md +42 -0
  98. package/docs/SystemPortalRoleCount.md +36 -0
  99. package/docs/SystemPortalStorageUsage.md +49 -0
  100. package/docs/SystemPortalSupportStats.md +40 -0
  101. package/docs/SystemPortalUserStats.md +50 -0
  102. package/package.json +1 -1
  103. package/src/apis/PortalApi.ts +13 -0
  104. package/src/apis/QuestionApi.ts +63 -0
  105. package/src/apis/SystemApi.ts +54 -0
  106. package/src/models/GetCourseEnrollmentListItem.ts +8 -0
  107. package/src/models/GetResourceUsageCoursesInner.ts +9 -0
  108. package/src/models/GetSystemPortalOverview.ts +261 -0
  109. package/src/models/PostQuestionTags.ts +75 -0
  110. package/src/models/PostQuestionTagsResponse.ts +66 -0
  111. package/src/models/SystemPortalActivityStats.ts +101 -0
  112. package/src/models/SystemPortalCertificateStats.ts +93 -0
  113. package/src/models/SystemPortalContentStats.ts +102 -0
  114. package/src/models/SystemPortalCourseStats.ts +111 -0
  115. package/src/models/SystemPortalEnrollmentStats.ts +102 -0
  116. package/src/models/SystemPortalHierarchy.ts +82 -0
  117. package/src/models/SystemPortalLicense.ts +111 -0
  118. package/src/models/SystemPortalRoleCount.ts +91 -0
  119. package/src/models/SystemPortalStorageUsage.ts +129 -0
  120. package/src/models/SystemPortalSupportStats.ts +93 -0
  121. package/src/models/SystemPortalUserStats.ts +145 -0
  122. package/src/models/index.ts +14 -0
@@ -18,6 +18,8 @@ import { ContentLibraryVersionStatusFromJSON, ContentLibraryVersionStatusToJSON,
18
18
  export function instanceOfGetResourceUsageCoursesInner(value) {
19
19
  if (!('courseId' in value) || value['courseId'] === undefined)
20
20
  return false;
21
+ if (!('courseName' in value) || value['courseName'] === undefined)
22
+ return false;
21
23
  if (!('courseVersionId' in value) || value['courseVersionId'] === undefined)
22
24
  return false;
23
25
  if (!('courseVersionNumber' in value) || value['courseVersionNumber'] === undefined)
@@ -39,6 +41,7 @@ export function GetResourceUsageCoursesInnerFromJSONTyped(json, ignoreDiscrimina
39
41
  }
40
42
  return {
41
43
  'courseId': json['course_id'],
44
+ 'courseName': json['course_name'],
42
45
  'courseVersionId': json['course_version_id'],
43
46
  'courseVersionNumber': json['course_version_number'],
44
47
  'courseStatus': ContentLibraryVersionStatusFromJSON(json['course_status']),
@@ -55,6 +58,7 @@ export function GetResourceUsageCoursesInnerToJSONTyped(value, ignoreDiscriminat
55
58
  }
56
59
  return {
57
60
  'course_id': value['courseId'],
61
+ 'course_name': value['courseName'],
58
62
  'course_version_id': value['courseVersionId'],
59
63
  'course_version_number': value['courseVersionNumber'],
60
64
  'course_status': ContentLibraryVersionStatusToJSON(value['courseStatus']),
@@ -0,0 +1,121 @@
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 { SystemPortalCourseStats } from './SystemPortalCourseStats';
13
+ import type { SystemPortalLicense } from './SystemPortalLicense';
14
+ import type { SystemPortalCertificateStats } from './SystemPortalCertificateStats';
15
+ import type { SystemPortalStorageUsage } from './SystemPortalStorageUsage';
16
+ import type { SystemPortalSupportStats } from './SystemPortalSupportStats';
17
+ import type { GetPortal } from './GetPortal';
18
+ import type { SystemPortalEnrollmentStats } from './SystemPortalEnrollmentStats';
19
+ import type { SystemPortalActivityStats } from './SystemPortalActivityStats';
20
+ import type { SystemPortalContentStats } from './SystemPortalContentStats';
21
+ import type { SystemPortalHierarchy } from './SystemPortalHierarchy';
22
+ import type { SystemPortalUserStats } from './SystemPortalUserStats';
23
+ /**
24
+ * Detailed read-only overview of a single portal for platform administrators. All counts are scoped to the portal itself and exclude child portals. Timestamps are Unix epoch seconds (UTC).
25
+ * @export
26
+ * @interface GetSystemPortalOverview
27
+ */
28
+ export interface GetSystemPortalOverview {
29
+ /**
30
+ *
31
+ * @type {GetPortal}
32
+ * @memberof GetSystemPortalOverview
33
+ */
34
+ portal: GetPortal;
35
+ /**
36
+ *
37
+ * @type {number}
38
+ * @memberof GetSystemPortalOverview
39
+ */
40
+ createdAt: number;
41
+ /**
42
+ *
43
+ * @type {number}
44
+ * @memberof GetSystemPortalOverview
45
+ */
46
+ updatedAt: number;
47
+ /**
48
+ * When these statistics were computed.
49
+ * @type {number}
50
+ * @memberof GetSystemPortalOverview
51
+ */
52
+ generatedAt: number;
53
+ /**
54
+ *
55
+ * @type {SystemPortalHierarchy}
56
+ * @memberof GetSystemPortalOverview
57
+ */
58
+ hierarchy: SystemPortalHierarchy;
59
+ /**
60
+ *
61
+ * @type {SystemPortalLicense}
62
+ * @memberof GetSystemPortalOverview
63
+ */
64
+ license: SystemPortalLicense;
65
+ /**
66
+ *
67
+ * @type {SystemPortalUserStats}
68
+ * @memberof GetSystemPortalOverview
69
+ */
70
+ users: SystemPortalUserStats;
71
+ /**
72
+ *
73
+ * @type {SystemPortalCourseStats}
74
+ * @memberof GetSystemPortalOverview
75
+ */
76
+ courses: SystemPortalCourseStats;
77
+ /**
78
+ *
79
+ * @type {SystemPortalEnrollmentStats}
80
+ * @memberof GetSystemPortalOverview
81
+ */
82
+ enrollments: SystemPortalEnrollmentStats;
83
+ /**
84
+ *
85
+ * @type {SystemPortalContentStats}
86
+ * @memberof GetSystemPortalOverview
87
+ */
88
+ content: SystemPortalContentStats;
89
+ /**
90
+ *
91
+ * @type {SystemPortalCertificateStats}
92
+ * @memberof GetSystemPortalOverview
93
+ */
94
+ certificates: SystemPortalCertificateStats;
95
+ /**
96
+ *
97
+ * @type {SystemPortalStorageUsage}
98
+ * @memberof GetSystemPortalOverview
99
+ */
100
+ storage: SystemPortalStorageUsage;
101
+ /**
102
+ *
103
+ * @type {SystemPortalActivityStats}
104
+ * @memberof GetSystemPortalOverview
105
+ */
106
+ activity: SystemPortalActivityStats;
107
+ /**
108
+ *
109
+ * @type {SystemPortalSupportStats}
110
+ * @memberof GetSystemPortalOverview
111
+ */
112
+ support: SystemPortalSupportStats;
113
+ }
114
+ /**
115
+ * Check if a given object implements the GetSystemPortalOverview interface.
116
+ */
117
+ export declare function instanceOfGetSystemPortalOverview(value: object): value is GetSystemPortalOverview;
118
+ export declare function GetSystemPortalOverviewFromJSON(json: any): GetSystemPortalOverview;
119
+ export declare function GetSystemPortalOverviewFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetSystemPortalOverview;
120
+ export declare function GetSystemPortalOverviewToJSON(json: any): GetSystemPortalOverview;
121
+ export declare function GetSystemPortalOverviewToJSONTyped(value?: GetSystemPortalOverview | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,106 @@
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 { SystemPortalCourseStatsFromJSON, SystemPortalCourseStatsToJSON, } from './SystemPortalCourseStats';
15
+ import { SystemPortalLicenseFromJSON, SystemPortalLicenseToJSON, } from './SystemPortalLicense';
16
+ import { SystemPortalCertificateStatsFromJSON, SystemPortalCertificateStatsToJSON, } from './SystemPortalCertificateStats';
17
+ import { SystemPortalStorageUsageFromJSON, SystemPortalStorageUsageToJSON, } from './SystemPortalStorageUsage';
18
+ import { SystemPortalSupportStatsFromJSON, SystemPortalSupportStatsToJSON, } from './SystemPortalSupportStats';
19
+ import { GetPortalFromJSON, GetPortalToJSON, } from './GetPortal';
20
+ import { SystemPortalEnrollmentStatsFromJSON, SystemPortalEnrollmentStatsToJSON, } from './SystemPortalEnrollmentStats';
21
+ import { SystemPortalActivityStatsFromJSON, SystemPortalActivityStatsToJSON, } from './SystemPortalActivityStats';
22
+ import { SystemPortalContentStatsFromJSON, SystemPortalContentStatsToJSON, } from './SystemPortalContentStats';
23
+ import { SystemPortalHierarchyFromJSON, SystemPortalHierarchyToJSON, } from './SystemPortalHierarchy';
24
+ import { SystemPortalUserStatsFromJSON, SystemPortalUserStatsToJSON, } from './SystemPortalUserStats';
25
+ /**
26
+ * Check if a given object implements the GetSystemPortalOverview interface.
27
+ */
28
+ export function instanceOfGetSystemPortalOverview(value) {
29
+ if (!('portal' in value) || value['portal'] === undefined)
30
+ return false;
31
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
32
+ return false;
33
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
34
+ return false;
35
+ if (!('generatedAt' in value) || value['generatedAt'] === undefined)
36
+ return false;
37
+ if (!('hierarchy' in value) || value['hierarchy'] === undefined)
38
+ return false;
39
+ if (!('license' in value) || value['license'] === undefined)
40
+ return false;
41
+ if (!('users' in value) || value['users'] === undefined)
42
+ return false;
43
+ if (!('courses' in value) || value['courses'] === undefined)
44
+ return false;
45
+ if (!('enrollments' in value) || value['enrollments'] === undefined)
46
+ return false;
47
+ if (!('content' in value) || value['content'] === undefined)
48
+ return false;
49
+ if (!('certificates' in value) || value['certificates'] === undefined)
50
+ return false;
51
+ if (!('storage' in value) || value['storage'] === undefined)
52
+ return false;
53
+ if (!('activity' in value) || value['activity'] === undefined)
54
+ return false;
55
+ if (!('support' in value) || value['support'] === undefined)
56
+ return false;
57
+ return true;
58
+ }
59
+ export function GetSystemPortalOverviewFromJSON(json) {
60
+ return GetSystemPortalOverviewFromJSONTyped(json, false);
61
+ }
62
+ export function GetSystemPortalOverviewFromJSONTyped(json, ignoreDiscriminator) {
63
+ if (json == null) {
64
+ return json;
65
+ }
66
+ return {
67
+ 'portal': GetPortalFromJSON(json['portal']),
68
+ 'createdAt': json['created_at'],
69
+ 'updatedAt': json['updated_at'],
70
+ 'generatedAt': json['generated_at'],
71
+ 'hierarchy': SystemPortalHierarchyFromJSON(json['hierarchy']),
72
+ 'license': SystemPortalLicenseFromJSON(json['license']),
73
+ 'users': SystemPortalUserStatsFromJSON(json['users']),
74
+ 'courses': SystemPortalCourseStatsFromJSON(json['courses']),
75
+ 'enrollments': SystemPortalEnrollmentStatsFromJSON(json['enrollments']),
76
+ 'content': SystemPortalContentStatsFromJSON(json['content']),
77
+ 'certificates': SystemPortalCertificateStatsFromJSON(json['certificates']),
78
+ 'storage': SystemPortalStorageUsageFromJSON(json['storage']),
79
+ 'activity': SystemPortalActivityStatsFromJSON(json['activity']),
80
+ 'support': SystemPortalSupportStatsFromJSON(json['support']),
81
+ };
82
+ }
83
+ export function GetSystemPortalOverviewToJSON(json) {
84
+ return GetSystemPortalOverviewToJSONTyped(json, false);
85
+ }
86
+ export function GetSystemPortalOverviewToJSONTyped(value, ignoreDiscriminator = false) {
87
+ if (value == null) {
88
+ return value;
89
+ }
90
+ return {
91
+ 'portal': GetPortalToJSON(value['portal']),
92
+ 'created_at': value['createdAt'],
93
+ 'updated_at': value['updatedAt'],
94
+ 'generated_at': value['generatedAt'],
95
+ 'hierarchy': SystemPortalHierarchyToJSON(value['hierarchy']),
96
+ 'license': SystemPortalLicenseToJSON(value['license']),
97
+ 'users': SystemPortalUserStatsToJSON(value['users']),
98
+ 'courses': SystemPortalCourseStatsToJSON(value['courses']),
99
+ 'enrollments': SystemPortalEnrollmentStatsToJSON(value['enrollments']),
100
+ 'content': SystemPortalContentStatsToJSON(value['content']),
101
+ 'certificates': SystemPortalCertificateStatsToJSON(value['certificates']),
102
+ 'storage': SystemPortalStorageUsageToJSON(value['storage']),
103
+ 'activity': SystemPortalActivityStatsToJSON(value['activity']),
104
+ 'support': SystemPortalSupportStatsToJSON(value['support']),
105
+ };
106
+ }
@@ -0,0 +1,38 @@
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
+ * Adds shared tags to several questions at once without creating new question versions.
14
+ * @export
15
+ * @interface PostQuestionTags
16
+ */
17
+ export interface PostQuestionTags {
18
+ /**
19
+ * External IDs of the questions to tag
20
+ * @type {Array<string>}
21
+ * @memberof PostQuestionTags
22
+ */
23
+ questionIds: Array<string>;
24
+ /**
25
+ * Tag names to add. Existing tags on each question are kept.
26
+ * @type {Array<string>}
27
+ * @memberof PostQuestionTags
28
+ */
29
+ tags: Array<string>;
30
+ }
31
+ /**
32
+ * Check if a given object implements the PostQuestionTags interface.
33
+ */
34
+ export declare function instanceOfPostQuestionTags(value: object): value is PostQuestionTags;
35
+ export declare function PostQuestionTagsFromJSON(json: any): PostQuestionTags;
36
+ export declare function PostQuestionTagsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostQuestionTags;
37
+ export declare function PostQuestionTagsToJSON(json: any): PostQuestionTags;
38
+ export declare function PostQuestionTagsToJSONTyped(value?: PostQuestionTags | 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 PostQuestionTags interface.
16
+ */
17
+ export function instanceOfPostQuestionTags(value) {
18
+ if (!('questionIds' in value) || value['questionIds'] === undefined)
19
+ return false;
20
+ if (!('tags' in value) || value['tags'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function PostQuestionTagsFromJSON(json) {
25
+ return PostQuestionTagsFromJSONTyped(json, false);
26
+ }
27
+ export function PostQuestionTagsFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'questionIds': json['question_ids'],
33
+ 'tags': json['tags'],
34
+ };
35
+ }
36
+ export function PostQuestionTagsToJSON(json) {
37
+ return PostQuestionTagsToJSONTyped(json, false);
38
+ }
39
+ export function PostQuestionTagsToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'question_ids': value['questionIds'],
45
+ 'tags': value['tags'],
46
+ };
47
+ }
@@ -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 PostQuestionTagsResponse
16
+ */
17
+ export interface PostQuestionTagsResponse {
18
+ /**
19
+ * Number of questions that received the tags
20
+ * @type {number}
21
+ * @memberof PostQuestionTagsResponse
22
+ */
23
+ updatedCount: number;
24
+ }
25
+ /**
26
+ * Check if a given object implements the PostQuestionTagsResponse interface.
27
+ */
28
+ export declare function instanceOfPostQuestionTagsResponse(value: object): value is PostQuestionTagsResponse;
29
+ export declare function PostQuestionTagsResponseFromJSON(json: any): PostQuestionTagsResponse;
30
+ export declare function PostQuestionTagsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostQuestionTagsResponse;
31
+ export declare function PostQuestionTagsResponseToJSON(json: any): PostQuestionTagsResponse;
32
+ export declare function PostQuestionTagsResponseToJSONTyped(value?: PostQuestionTagsResponse | null, ignoreDiscriminator?: boolean): any;
@@ -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 PostQuestionTagsResponse interface.
16
+ */
17
+ export function instanceOfPostQuestionTagsResponse(value) {
18
+ if (!('updatedCount' in value) || value['updatedCount'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function PostQuestionTagsResponseFromJSON(json) {
23
+ return PostQuestionTagsResponseFromJSONTyped(json, false);
24
+ }
25
+ export function PostQuestionTagsResponseFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'updatedCount': json['updated_count'],
31
+ };
32
+ }
33
+ export function PostQuestionTagsResponseToJSON(json) {
34
+ return PostQuestionTagsResponseToJSONTyped(json, false);
35
+ }
36
+ export function PostQuestionTagsResponseToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'updated_count': value['updatedCount'],
42
+ };
43
+ }
@@ -0,0 +1,56 @@
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 SystemPortalActivityStats
16
+ */
17
+ export interface SystemPortalActivityStats {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof SystemPortalActivityStats
22
+ */
23
+ loginsLast30Days: number;
24
+ /**
25
+ * Active learning time recorded in the portal over the last 30 days.
26
+ * @type {number}
27
+ * @memberof SystemPortalActivityStats
28
+ */
29
+ learningSecondsLast30Days: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof SystemPortalActivityStats
34
+ */
35
+ chatRequestsLast30Days: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof SystemPortalActivityStats
40
+ */
41
+ chatTokensLast30Days: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof SystemPortalActivityStats
46
+ */
47
+ lastLearningActivityAt?: number | null;
48
+ }
49
+ /**
50
+ * Check if a given object implements the SystemPortalActivityStats interface.
51
+ */
52
+ export declare function instanceOfSystemPortalActivityStats(value: object): value is SystemPortalActivityStats;
53
+ export declare function SystemPortalActivityStatsFromJSON(json: any): SystemPortalActivityStats;
54
+ export declare function SystemPortalActivityStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemPortalActivityStats;
55
+ export declare function SystemPortalActivityStatsToJSON(json: any): SystemPortalActivityStats;
56
+ export declare function SystemPortalActivityStatsToJSONTyped(value?: SystemPortalActivityStats | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,57 @@
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 SystemPortalActivityStats interface.
16
+ */
17
+ export function instanceOfSystemPortalActivityStats(value) {
18
+ if (!('loginsLast30Days' in value) || value['loginsLast30Days'] === undefined)
19
+ return false;
20
+ if (!('learningSecondsLast30Days' in value) || value['learningSecondsLast30Days'] === undefined)
21
+ return false;
22
+ if (!('chatRequestsLast30Days' in value) || value['chatRequestsLast30Days'] === undefined)
23
+ return false;
24
+ if (!('chatTokensLast30Days' in value) || value['chatTokensLast30Days'] === undefined)
25
+ return false;
26
+ return true;
27
+ }
28
+ export function SystemPortalActivityStatsFromJSON(json) {
29
+ return SystemPortalActivityStatsFromJSONTyped(json, false);
30
+ }
31
+ export function SystemPortalActivityStatsFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'loginsLast30Days': json['logins_last_30_days'],
37
+ 'learningSecondsLast30Days': json['learning_seconds_last_30_days'],
38
+ 'chatRequestsLast30Days': json['chat_requests_last_30_days'],
39
+ 'chatTokensLast30Days': json['chat_tokens_last_30_days'],
40
+ 'lastLearningActivityAt': json['last_learning_activity_at'] == null ? undefined : json['last_learning_activity_at'],
41
+ };
42
+ }
43
+ export function SystemPortalActivityStatsToJSON(json) {
44
+ return SystemPortalActivityStatsToJSONTyped(json, false);
45
+ }
46
+ export function SystemPortalActivityStatsToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'logins_last_30_days': value['loginsLast30Days'],
52
+ 'learning_seconds_last_30_days': value['learningSecondsLast30Days'],
53
+ 'chat_requests_last_30_days': value['chatRequestsLast30Days'],
54
+ 'chat_tokens_last_30_days': value['chatTokensLast30Days'],
55
+ 'last_learning_activity_at': value['lastLearningActivityAt'],
56
+ };
57
+ }
@@ -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 SystemPortalCertificateStats
16
+ */
17
+ export interface SystemPortalCertificateStats {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof SystemPortalCertificateStats
22
+ */
23
+ active: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof SystemPortalCertificateStats
28
+ */
29
+ revoked: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof SystemPortalCertificateStats
34
+ */
35
+ issuedLast30Days: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof SystemPortalCertificateStats
40
+ */
41
+ expiringNext30Days: number;
42
+ }
43
+ /**
44
+ * Check if a given object implements the SystemPortalCertificateStats interface.
45
+ */
46
+ export declare function instanceOfSystemPortalCertificateStats(value: object): value is SystemPortalCertificateStats;
47
+ export declare function SystemPortalCertificateStatsFromJSON(json: any): SystemPortalCertificateStats;
48
+ export declare function SystemPortalCertificateStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemPortalCertificateStats;
49
+ export declare function SystemPortalCertificateStatsToJSON(json: any): SystemPortalCertificateStats;
50
+ export declare function SystemPortalCertificateStatsToJSONTyped(value?: SystemPortalCertificateStats | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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 SystemPortalCertificateStats interface.
16
+ */
17
+ export function instanceOfSystemPortalCertificateStats(value) {
18
+ if (!('active' in value) || value['active'] === undefined)
19
+ return false;
20
+ if (!('revoked' in value) || value['revoked'] === undefined)
21
+ return false;
22
+ if (!('issuedLast30Days' in value) || value['issuedLast30Days'] === undefined)
23
+ return false;
24
+ if (!('expiringNext30Days' in value) || value['expiringNext30Days'] === undefined)
25
+ return false;
26
+ return true;
27
+ }
28
+ export function SystemPortalCertificateStatsFromJSON(json) {
29
+ return SystemPortalCertificateStatsFromJSONTyped(json, false);
30
+ }
31
+ export function SystemPortalCertificateStatsFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'active': json['active'],
37
+ 'revoked': json['revoked'],
38
+ 'issuedLast30Days': json['issued_last_30_days'],
39
+ 'expiringNext30Days': json['expiring_next_30_days'],
40
+ };
41
+ }
42
+ export function SystemPortalCertificateStatsToJSON(json) {
43
+ return SystemPortalCertificateStatsToJSONTyped(json, false);
44
+ }
45
+ export function SystemPortalCertificateStatsToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'active': value['active'],
51
+ 'revoked': value['revoked'],
52
+ 'issued_last_30_days': value['issuedLast30Days'],
53
+ 'expiring_next_30_days': value['expiringNext30Days'],
54
+ };
55
+ }