@easyedu/js-lsm-api 1.131.0 → 1.132.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 (86) hide show
  1. package/.openapi-generator/FILES +24 -0
  2. package/README.md +15 -2
  3. package/dist/apis/SystemApi.d.ts +16 -0
  4. package/dist/apis/SystemApi.js +40 -0
  5. package/dist/esm/apis/SystemApi.d.ts +16 -0
  6. package/dist/esm/apis/SystemApi.js +40 -0
  7. package/dist/esm/models/GetSystemPortalOverview.d.ts +121 -0
  8. package/dist/esm/models/GetSystemPortalOverview.js +106 -0
  9. package/dist/esm/models/SystemPortalActivityStats.d.ts +56 -0
  10. package/dist/esm/models/SystemPortalActivityStats.js +57 -0
  11. package/dist/esm/models/SystemPortalCertificateStats.d.ts +50 -0
  12. package/dist/esm/models/SystemPortalCertificateStats.js +55 -0
  13. package/dist/esm/models/SystemPortalContentStats.d.ts +56 -0
  14. package/dist/esm/models/SystemPortalContentStats.js +59 -0
  15. package/dist/esm/models/SystemPortalCourseStats.d.ts +62 -0
  16. package/dist/esm/models/SystemPortalCourseStats.js +63 -0
  17. package/dist/esm/models/SystemPortalEnrollmentStats.d.ts +56 -0
  18. package/dist/esm/models/SystemPortalEnrollmentStats.js +59 -0
  19. package/dist/esm/models/SystemPortalHierarchy.d.ts +44 -0
  20. package/dist/esm/models/SystemPortalHierarchy.js +47 -0
  21. package/dist/esm/models/SystemPortalLicense.d.ts +65 -0
  22. package/dist/esm/models/SystemPortalLicense.js +61 -0
  23. package/dist/esm/models/SystemPortalRoleCount.d.ts +51 -0
  24. package/dist/esm/models/SystemPortalRoleCount.js +59 -0
  25. package/dist/esm/models/SystemPortalStorageUsage.d.ts +74 -0
  26. package/dist/esm/models/SystemPortalStorageUsage.js +71 -0
  27. package/dist/esm/models/SystemPortalSupportStats.d.ts +50 -0
  28. package/dist/esm/models/SystemPortalSupportStats.js +55 -0
  29. package/dist/esm/models/SystemPortalUserStats.d.ts +81 -0
  30. package/dist/esm/models/SystemPortalUserStats.js +74 -0
  31. package/dist/esm/models/index.d.ts +12 -0
  32. package/dist/esm/models/index.js +12 -0
  33. package/dist/models/GetSystemPortalOverview.d.ts +121 -0
  34. package/dist/models/GetSystemPortalOverview.js +113 -0
  35. package/dist/models/SystemPortalActivityStats.d.ts +56 -0
  36. package/dist/models/SystemPortalActivityStats.js +64 -0
  37. package/dist/models/SystemPortalCertificateStats.d.ts +50 -0
  38. package/dist/models/SystemPortalCertificateStats.js +62 -0
  39. package/dist/models/SystemPortalContentStats.d.ts +56 -0
  40. package/dist/models/SystemPortalContentStats.js +66 -0
  41. package/dist/models/SystemPortalCourseStats.d.ts +62 -0
  42. package/dist/models/SystemPortalCourseStats.js +70 -0
  43. package/dist/models/SystemPortalEnrollmentStats.d.ts +56 -0
  44. package/dist/models/SystemPortalEnrollmentStats.js +66 -0
  45. package/dist/models/SystemPortalHierarchy.d.ts +44 -0
  46. package/dist/models/SystemPortalHierarchy.js +54 -0
  47. package/dist/models/SystemPortalLicense.d.ts +65 -0
  48. package/dist/models/SystemPortalLicense.js +69 -0
  49. package/dist/models/SystemPortalRoleCount.d.ts +51 -0
  50. package/dist/models/SystemPortalRoleCount.js +67 -0
  51. package/dist/models/SystemPortalStorageUsage.d.ts +74 -0
  52. package/dist/models/SystemPortalStorageUsage.js +78 -0
  53. package/dist/models/SystemPortalSupportStats.d.ts +50 -0
  54. package/dist/models/SystemPortalSupportStats.js +62 -0
  55. package/dist/models/SystemPortalUserStats.d.ts +81 -0
  56. package/dist/models/SystemPortalUserStats.js +81 -0
  57. package/dist/models/index.d.ts +12 -0
  58. package/dist/models/index.js +12 -0
  59. package/docs/GetSystemPortalOverview.md +61 -0
  60. package/docs/SystemApi.md +68 -0
  61. package/docs/SystemPortalActivityStats.md +42 -0
  62. package/docs/SystemPortalCertificateStats.md +40 -0
  63. package/docs/SystemPortalContentStats.md +43 -0
  64. package/docs/SystemPortalCourseStats.md +44 -0
  65. package/docs/SystemPortalEnrollmentStats.md +43 -0
  66. package/docs/SystemPortalHierarchy.md +38 -0
  67. package/docs/SystemPortalLicense.md +42 -0
  68. package/docs/SystemPortalRoleCount.md +36 -0
  69. package/docs/SystemPortalStorageUsage.md +49 -0
  70. package/docs/SystemPortalSupportStats.md +40 -0
  71. package/docs/SystemPortalUserStats.md +50 -0
  72. package/package.json +1 -1
  73. package/src/apis/SystemApi.ts +54 -0
  74. package/src/models/GetSystemPortalOverview.ts +261 -0
  75. package/src/models/SystemPortalActivityStats.ts +101 -0
  76. package/src/models/SystemPortalCertificateStats.ts +93 -0
  77. package/src/models/SystemPortalContentStats.ts +102 -0
  78. package/src/models/SystemPortalCourseStats.ts +111 -0
  79. package/src/models/SystemPortalEnrollmentStats.ts +102 -0
  80. package/src/models/SystemPortalHierarchy.ts +82 -0
  81. package/src/models/SystemPortalLicense.ts +111 -0
  82. package/src/models/SystemPortalRoleCount.ts +91 -0
  83. package/src/models/SystemPortalStorageUsage.ts +129 -0
  84. package/src/models/SystemPortalSupportStats.ts +93 -0
  85. package/src/models/SystemPortalUserStats.ts +145 -0
  86. package/src/models/index.ts +12 -0
@@ -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
+ }
@@ -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
+ * Non-archived Content Library items and active question bank entries owned by the portal.
14
+ * @export
15
+ * @interface SystemPortalContentStats
16
+ */
17
+ export interface SystemPortalContentStats {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof SystemPortalContentStats
22
+ */
23
+ libraryItems: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof SystemPortalContentStats
28
+ */
29
+ resources: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof SystemPortalContentStats
34
+ */
35
+ quizzes: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof SystemPortalContentStats
40
+ */
41
+ certificateTemplates: number;
42
+ /**
43
+ * Active, latest-version questions.
44
+ * @type {number}
45
+ * @memberof SystemPortalContentStats
46
+ */
47
+ questions: number;
48
+ }
49
+ /**
50
+ * Check if a given object implements the SystemPortalContentStats interface.
51
+ */
52
+ export declare function instanceOfSystemPortalContentStats(value: object): value is SystemPortalContentStats;
53
+ export declare function SystemPortalContentStatsFromJSON(json: any): SystemPortalContentStats;
54
+ export declare function SystemPortalContentStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemPortalContentStats;
55
+ export declare function SystemPortalContentStatsToJSON(json: any): SystemPortalContentStats;
56
+ export declare function SystemPortalContentStatsToJSONTyped(value?: SystemPortalContentStats | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,59 @@
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 SystemPortalContentStats interface.
16
+ */
17
+ export function instanceOfSystemPortalContentStats(value) {
18
+ if (!('libraryItems' in value) || value['libraryItems'] === undefined)
19
+ return false;
20
+ if (!('resources' in value) || value['resources'] === undefined)
21
+ return false;
22
+ if (!('quizzes' in value) || value['quizzes'] === undefined)
23
+ return false;
24
+ if (!('certificateTemplates' in value) || value['certificateTemplates'] === undefined)
25
+ return false;
26
+ if (!('questions' in value) || value['questions'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ export function SystemPortalContentStatsFromJSON(json) {
31
+ return SystemPortalContentStatsFromJSONTyped(json, false);
32
+ }
33
+ export function SystemPortalContentStatsFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'libraryItems': json['library_items'],
39
+ 'resources': json['resources'],
40
+ 'quizzes': json['quizzes'],
41
+ 'certificateTemplates': json['certificate_templates'],
42
+ 'questions': json['questions'],
43
+ };
44
+ }
45
+ export function SystemPortalContentStatsToJSON(json) {
46
+ return SystemPortalContentStatsToJSONTyped(json, false);
47
+ }
48
+ export function SystemPortalContentStatsToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'library_items': value['libraryItems'],
54
+ 'resources': value['resources'],
55
+ 'quizzes': value['quizzes'],
56
+ 'certificate_templates': value['certificateTemplates'],
57
+ 'questions': value['questions'],
58
+ };
59
+ }
@@ -0,0 +1,62 @@
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 SystemPortalCourseStats
16
+ */
17
+ export interface SystemPortalCourseStats {
18
+ /**
19
+ * Non-deleted courses owned by the portal.
20
+ * @type {number}
21
+ * @memberof SystemPortalCourseStats
22
+ */
23
+ total: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof SystemPortalCourseStats
28
+ */
29
+ published: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof SystemPortalCourseStats
34
+ */
35
+ unpublished: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof SystemPortalCourseStats
40
+ */
41
+ createdLast30Days: number;
42
+ /**
43
+ * Accepted course shares (mirror or clone) received by the portal.
44
+ * @type {number}
45
+ * @memberof SystemPortalCourseStats
46
+ */
47
+ sharedIn: number;
48
+ /**
49
+ * Accepted course shares the portal has granted to other portals.
50
+ * @type {number}
51
+ * @memberof SystemPortalCourseStats
52
+ */
53
+ sharedOut: number;
54
+ }
55
+ /**
56
+ * Check if a given object implements the SystemPortalCourseStats interface.
57
+ */
58
+ export declare function instanceOfSystemPortalCourseStats(value: object): value is SystemPortalCourseStats;
59
+ export declare function SystemPortalCourseStatsFromJSON(json: any): SystemPortalCourseStats;
60
+ export declare function SystemPortalCourseStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemPortalCourseStats;
61
+ export declare function SystemPortalCourseStatsToJSON(json: any): SystemPortalCourseStats;
62
+ export declare function SystemPortalCourseStatsToJSONTyped(value?: SystemPortalCourseStats | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,63 @@
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 SystemPortalCourseStats interface.
16
+ */
17
+ export function instanceOfSystemPortalCourseStats(value) {
18
+ if (!('total' in value) || value['total'] === undefined)
19
+ return false;
20
+ if (!('published' in value) || value['published'] === undefined)
21
+ return false;
22
+ if (!('unpublished' in value) || value['unpublished'] === undefined)
23
+ return false;
24
+ if (!('createdLast30Days' in value) || value['createdLast30Days'] === undefined)
25
+ return false;
26
+ if (!('sharedIn' in value) || value['sharedIn'] === undefined)
27
+ return false;
28
+ if (!('sharedOut' in value) || value['sharedOut'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ export function SystemPortalCourseStatsFromJSON(json) {
33
+ return SystemPortalCourseStatsFromJSONTyped(json, false);
34
+ }
35
+ export function SystemPortalCourseStatsFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'total': json['total'],
41
+ 'published': json['published'],
42
+ 'unpublished': json['unpublished'],
43
+ 'createdLast30Days': json['created_last_30_days'],
44
+ 'sharedIn': json['shared_in'],
45
+ 'sharedOut': json['shared_out'],
46
+ };
47
+ }
48
+ export function SystemPortalCourseStatsToJSON(json) {
49
+ return SystemPortalCourseStatsToJSONTyped(json, false);
50
+ }
51
+ export function SystemPortalCourseStatsToJSONTyped(value, ignoreDiscriminator = false) {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'total': value['total'],
57
+ 'published': value['published'],
58
+ 'unpublished': value['unpublished'],
59
+ 'created_last_30_days': value['createdLast30Days'],
60
+ 'shared_in': value['sharedIn'],
61
+ 'shared_out': value['sharedOut'],
62
+ };
63
+ }
@@ -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
+ * Learner (Student) enrollments in the portal.
14
+ * @export
15
+ * @interface SystemPortalEnrollmentStats
16
+ */
17
+ export interface SystemPortalEnrollmentStats {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof SystemPortalEnrollmentStats
22
+ */
23
+ total: number;
24
+ /**
25
+ * Enrolled, InProgress, or Suspended.
26
+ * @type {number}
27
+ * @memberof SystemPortalEnrollmentStats
28
+ */
29
+ active: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof SystemPortalEnrollmentStats
34
+ */
35
+ completed: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof SystemPortalEnrollmentStats
40
+ */
41
+ createdLast30Days: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof SystemPortalEnrollmentStats
46
+ */
47
+ completedLast30Days: number;
48
+ }
49
+ /**
50
+ * Check if a given object implements the SystemPortalEnrollmentStats interface.
51
+ */
52
+ export declare function instanceOfSystemPortalEnrollmentStats(value: object): value is SystemPortalEnrollmentStats;
53
+ export declare function SystemPortalEnrollmentStatsFromJSON(json: any): SystemPortalEnrollmentStats;
54
+ export declare function SystemPortalEnrollmentStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemPortalEnrollmentStats;
55
+ export declare function SystemPortalEnrollmentStatsToJSON(json: any): SystemPortalEnrollmentStats;
56
+ export declare function SystemPortalEnrollmentStatsToJSONTyped(value?: SystemPortalEnrollmentStats | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,59 @@
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 SystemPortalEnrollmentStats interface.
16
+ */
17
+ export function instanceOfSystemPortalEnrollmentStats(value) {
18
+ if (!('total' in value) || value['total'] === undefined)
19
+ return false;
20
+ if (!('active' in value) || value['active'] === undefined)
21
+ return false;
22
+ if (!('completed' in value) || value['completed'] === undefined)
23
+ return false;
24
+ if (!('createdLast30Days' in value) || value['createdLast30Days'] === undefined)
25
+ return false;
26
+ if (!('completedLast30Days' in value) || value['completedLast30Days'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ export function SystemPortalEnrollmentStatsFromJSON(json) {
31
+ return SystemPortalEnrollmentStatsFromJSONTyped(json, false);
32
+ }
33
+ export function SystemPortalEnrollmentStatsFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'total': json['total'],
39
+ 'active': json['active'],
40
+ 'completed': json['completed'],
41
+ 'createdLast30Days': json['created_last_30_days'],
42
+ 'completedLast30Days': json['completed_last_30_days'],
43
+ };
44
+ }
45
+ export function SystemPortalEnrollmentStatsToJSON(json) {
46
+ return SystemPortalEnrollmentStatsToJSONTyped(json, false);
47
+ }
48
+ export function SystemPortalEnrollmentStatsToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'total': value['total'],
54
+ 'active': value['active'],
55
+ 'completed': value['completed'],
56
+ 'created_last_30_days': value['createdLast30Days'],
57
+ 'completed_last_30_days': value['completedLast30Days'],
58
+ };
59
+ }
@@ -0,0 +1,44 @@
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 SystemPortalHierarchy
16
+ */
17
+ export interface SystemPortalHierarchy {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SystemPortalHierarchy
22
+ */
23
+ parentPortalId?: string | null;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof SystemPortalHierarchy
28
+ */
29
+ parentPortalName?: string | null;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof SystemPortalHierarchy
34
+ */
35
+ childPortalCount: number;
36
+ }
37
+ /**
38
+ * Check if a given object implements the SystemPortalHierarchy interface.
39
+ */
40
+ export declare function instanceOfSystemPortalHierarchy(value: object): value is SystemPortalHierarchy;
41
+ export declare function SystemPortalHierarchyFromJSON(json: any): SystemPortalHierarchy;
42
+ export declare function SystemPortalHierarchyFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemPortalHierarchy;
43
+ export declare function SystemPortalHierarchyToJSON(json: any): SystemPortalHierarchy;
44
+ export declare function SystemPortalHierarchyToJSONTyped(value?: SystemPortalHierarchy | 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 SystemPortalHierarchy interface.
16
+ */
17
+ export function instanceOfSystemPortalHierarchy(value) {
18
+ if (!('childPortalCount' in value) || value['childPortalCount'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function SystemPortalHierarchyFromJSON(json) {
23
+ return SystemPortalHierarchyFromJSONTyped(json, false);
24
+ }
25
+ export function SystemPortalHierarchyFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'parentPortalId': json['parent_portal_id'] == null ? undefined : json['parent_portal_id'],
31
+ 'parentPortalName': json['parent_portal_name'] == null ? undefined : json['parent_portal_name'],
32
+ 'childPortalCount': json['child_portal_count'],
33
+ };
34
+ }
35
+ export function SystemPortalHierarchyToJSON(json) {
36
+ return SystemPortalHierarchyToJSONTyped(json, false);
37
+ }
38
+ export function SystemPortalHierarchyToJSONTyped(value, ignoreDiscriminator = false) {
39
+ if (value == null) {
40
+ return value;
41
+ }
42
+ return {
43
+ 'parent_portal_id': value['parentPortalId'],
44
+ 'parent_portal_name': value['parentPortalName'],
45
+ 'child_portal_count': value['childPortalCount'],
46
+ };
47
+ }
@@ -0,0 +1,65 @@
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 SystemPortalLicense
16
+ */
17
+ export interface SystemPortalLicense {
18
+ /**
19
+ *
20
+ * @type {SystemPortalLicenseStateEnum}
21
+ * @memberof SystemPortalLicense
22
+ */
23
+ state: SystemPortalLicenseStateEnum;
24
+ /**
25
+ * Maximum active learner seats. Null means unlimited.
26
+ * @type {number}
27
+ * @memberof SystemPortalLicense
28
+ */
29
+ seatLimit?: number | null;
30
+ /**
31
+ * Active learner enrollments (Enrolled, InProgress, Suspended) counted against the seat limit.
32
+ * @type {number}
33
+ * @memberof SystemPortalLicense
34
+ */
35
+ seatsUsed: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof SystemPortalLicense
40
+ */
41
+ licenseStartAt?: number | null;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof SystemPortalLicense
46
+ */
47
+ licenseEndAt?: number | null;
48
+ }
49
+ /**
50
+ * @export
51
+ */
52
+ export declare const SystemPortalLicenseStateEnum: {
53
+ readonly Active: "active";
54
+ readonly Suspended: "suspended";
55
+ readonly Expired: "expired";
56
+ };
57
+ export type SystemPortalLicenseStateEnum = typeof SystemPortalLicenseStateEnum[keyof typeof SystemPortalLicenseStateEnum];
58
+ /**
59
+ * Check if a given object implements the SystemPortalLicense interface.
60
+ */
61
+ export declare function instanceOfSystemPortalLicense(value: object): value is SystemPortalLicense;
62
+ export declare function SystemPortalLicenseFromJSON(json: any): SystemPortalLicense;
63
+ export declare function SystemPortalLicenseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemPortalLicense;
64
+ export declare function SystemPortalLicenseToJSON(json: any): SystemPortalLicense;
65
+ export declare function SystemPortalLicenseToJSONTyped(value?: SystemPortalLicense | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,61 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * @export
16
+ */
17
+ export const SystemPortalLicenseStateEnum = {
18
+ Active: 'active',
19
+ Suspended: 'suspended',
20
+ Expired: 'expired'
21
+ };
22
+ /**
23
+ * Check if a given object implements the SystemPortalLicense interface.
24
+ */
25
+ export function instanceOfSystemPortalLicense(value) {
26
+ if (!('state' in value) || value['state'] === undefined)
27
+ return false;
28
+ if (!('seatsUsed' in value) || value['seatsUsed'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ export function SystemPortalLicenseFromJSON(json) {
33
+ return SystemPortalLicenseFromJSONTyped(json, false);
34
+ }
35
+ export function SystemPortalLicenseFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'state': json['state'],
41
+ 'seatLimit': json['seat_limit'] == null ? undefined : json['seat_limit'],
42
+ 'seatsUsed': json['seats_used'],
43
+ 'licenseStartAt': json['license_start_at'] == null ? undefined : json['license_start_at'],
44
+ 'licenseEndAt': json['license_end_at'] == null ? undefined : json['license_end_at'],
45
+ };
46
+ }
47
+ export function SystemPortalLicenseToJSON(json) {
48
+ return SystemPortalLicenseToJSONTyped(json, false);
49
+ }
50
+ export function SystemPortalLicenseToJSONTyped(value, ignoreDiscriminator = false) {
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'state': value['state'],
56
+ 'seat_limit': value['seatLimit'],
57
+ 'seats_used': value['seatsUsed'],
58
+ 'license_start_at': value['licenseStartAt'],
59
+ 'license_end_at': value['licenseEndAt'],
60
+ };
61
+ }
@@ -0,0 +1,51 @@
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 SystemPortalRoleCount
16
+ */
17
+ export interface SystemPortalRoleCount {
18
+ /**
19
+ *
20
+ * @type {SystemPortalRoleCountBaseTypeEnum}
21
+ * @memberof SystemPortalRoleCount
22
+ */
23
+ baseType: SystemPortalRoleCountBaseTypeEnum;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof SystemPortalRoleCount
28
+ */
29
+ userCount: number;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const SystemPortalRoleCountBaseTypeEnum: {
35
+ readonly Owner: "Owner";
36
+ readonly Admin: "Admin";
37
+ readonly Instructor: "Instructor";
38
+ readonly Learner: "Learner";
39
+ readonly ClientSuperAdmin: "ClientSuperAdmin";
40
+ readonly ClientManager: "ClientManager";
41
+ readonly PortalClientAdministrator: "PortalClientAdministrator";
42
+ };
43
+ export type SystemPortalRoleCountBaseTypeEnum = typeof SystemPortalRoleCountBaseTypeEnum[keyof typeof SystemPortalRoleCountBaseTypeEnum];
44
+ /**
45
+ * Check if a given object implements the SystemPortalRoleCount interface.
46
+ */
47
+ export declare function instanceOfSystemPortalRoleCount(value: object): value is SystemPortalRoleCount;
48
+ export declare function SystemPortalRoleCountFromJSON(json: any): SystemPortalRoleCount;
49
+ export declare function SystemPortalRoleCountFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemPortalRoleCount;
50
+ export declare function SystemPortalRoleCountToJSON(json: any): SystemPortalRoleCount;
51
+ export declare function SystemPortalRoleCountToJSONTyped(value?: SystemPortalRoleCount | null, ignoreDiscriminator?: boolean): any;