@easyedu/js-lsm-api 1.48.0 → 1.50.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 (85) hide show
  1. package/.openapi-generator/FILES +22 -0
  2. package/README.md +31 -8
  3. package/dist/apis/CertificateApi.d.ts +237 -0
  4. package/dist/apis/CertificateApi.js +587 -0
  5. package/dist/apis/index.d.ts +1 -0
  6. package/dist/apis/index.js +1 -0
  7. package/dist/esm/apis/CertificateApi.d.ts +237 -0
  8. package/dist/esm/apis/CertificateApi.js +583 -0
  9. package/dist/esm/apis/index.d.ts +1 -0
  10. package/dist/esm/apis/index.js +1 -0
  11. package/dist/esm/models/Certificate.d.ts +151 -0
  12. package/dist/esm/models/Certificate.js +114 -0
  13. package/dist/esm/models/CertificateConfig.d.ts +86 -0
  14. package/dist/esm/models/CertificateConfig.js +69 -0
  15. package/dist/esm/models/CertificatePublic.d.ts +98 -0
  16. package/dist/esm/models/CertificatePublic.js +87 -0
  17. package/dist/esm/models/EffectiveCertificateConfig.d.ts +62 -0
  18. package/dist/esm/models/EffectiveCertificateConfig.js +55 -0
  19. package/dist/esm/models/GetCertificateConfigList.d.ts +33 -0
  20. package/dist/esm/models/GetCertificateConfigList.js +44 -0
  21. package/dist/esm/models/GetCertificateList.d.ts +33 -0
  22. package/dist/esm/models/GetCertificateList.js +44 -0
  23. package/dist/esm/models/GetModuleInstructorBasicReportingEngagement.d.ts +24 -0
  24. package/dist/esm/models/GetModuleInstructorBasicReportingEngagement.js +16 -0
  25. package/dist/esm/models/PostCertificate.d.ts +50 -0
  26. package/dist/esm/models/PostCertificate.js +49 -0
  27. package/dist/esm/models/PostCertificateConfig.d.ts +62 -0
  28. package/dist/esm/models/PostCertificateConfig.js +53 -0
  29. package/dist/esm/models/PostRevokeCertificate.d.ts +32 -0
  30. package/dist/esm/models/PostRevokeCertificate.js +41 -0
  31. package/dist/esm/models/PutCertificateConfig.d.ts +56 -0
  32. package/dist/esm/models/PutCertificateConfig.js +49 -0
  33. package/dist/esm/models/index.d.ts +10 -0
  34. package/dist/esm/models/index.js +10 -0
  35. package/dist/models/Certificate.d.ts +151 -0
  36. package/dist/models/Certificate.js +122 -0
  37. package/dist/models/CertificateConfig.d.ts +86 -0
  38. package/dist/models/CertificateConfig.js +76 -0
  39. package/dist/models/CertificatePublic.d.ts +98 -0
  40. package/dist/models/CertificatePublic.js +95 -0
  41. package/dist/models/EffectiveCertificateConfig.d.ts +62 -0
  42. package/dist/models/EffectiveCertificateConfig.js +62 -0
  43. package/dist/models/GetCertificateConfigList.d.ts +33 -0
  44. package/dist/models/GetCertificateConfigList.js +51 -0
  45. package/dist/models/GetCertificateList.d.ts +33 -0
  46. package/dist/models/GetCertificateList.js +51 -0
  47. package/dist/models/GetModuleInstructorBasicReportingEngagement.d.ts +24 -0
  48. package/dist/models/GetModuleInstructorBasicReportingEngagement.js +16 -0
  49. package/dist/models/PostCertificate.d.ts +50 -0
  50. package/dist/models/PostCertificate.js +56 -0
  51. package/dist/models/PostCertificateConfig.d.ts +62 -0
  52. package/dist/models/PostCertificateConfig.js +60 -0
  53. package/dist/models/PostRevokeCertificate.d.ts +32 -0
  54. package/dist/models/PostRevokeCertificate.js +48 -0
  55. package/dist/models/PutCertificateConfig.d.ts +56 -0
  56. package/dist/models/PutCertificateConfig.js +56 -0
  57. package/dist/models/index.d.ts +10 -0
  58. package/dist/models/index.js +10 -0
  59. package/docs/Certificate.md +68 -0
  60. package/docs/CertificateApi.md +903 -0
  61. package/docs/CertificateConfig.md +52 -0
  62. package/docs/CertificatePublic.md +51 -0
  63. package/docs/EffectiveCertificateConfig.md +45 -0
  64. package/docs/GetCertificateConfigList.md +34 -0
  65. package/docs/GetCertificateList.md +34 -0
  66. package/docs/GetModuleInstructorBasicReportingEngagement.md +8 -0
  67. package/docs/PostCertificate.md +41 -0
  68. package/docs/PostCertificateConfig.md +44 -0
  69. package/docs/PostRevokeCertificate.md +34 -0
  70. package/docs/PutCertificateConfig.md +42 -0
  71. package/package.json +1 -1
  72. package/src/apis/CertificateApi.ts +765 -0
  73. package/src/apis/index.ts +1 -0
  74. package/src/models/Certificate.ts +234 -0
  75. package/src/models/CertificateConfig.ts +142 -0
  76. package/src/models/CertificatePublic.ts +158 -0
  77. package/src/models/EffectiveCertificateConfig.ts +107 -0
  78. package/src/models/GetCertificateConfigList.ts +74 -0
  79. package/src/models/GetCertificateList.ts +74 -0
  80. package/src/models/GetModuleInstructorBasicReportingEngagement.ts +36 -0
  81. package/src/models/PostCertificate.ts +90 -0
  82. package/src/models/PostCertificateConfig.ts +106 -0
  83. package/src/models/PostRevokeCertificate.ts +65 -0
  84. package/src/models/PutCertificateConfig.ts +97 -0
  85. package/src/models/index.ts +10 -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 EffectiveCertificateConfig interface.
16
+ */
17
+ export function instanceOfEffectiveCertificateConfig(value) {
18
+ if (!('enabled' in value) || value['enabled'] === undefined)
19
+ return false;
20
+ if (!('requireQuizPass' in value) || value['requireQuizPass'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function EffectiveCertificateConfigFromJSON(json) {
25
+ return EffectiveCertificateConfigFromJSONTyped(json, false);
26
+ }
27
+ export function EffectiveCertificateConfigFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'enabled': json['enabled'],
33
+ 'expiryMonths': json['expiry_months'] == null ? undefined : json['expiry_months'],
34
+ 'requireQuizPass': json['require_quiz_pass'],
35
+ 'minQuizScore': json['min_quiz_score'] == null ? undefined : json['min_quiz_score'],
36
+ 'quizConfigId': json['quiz_config_id'] == null ? undefined : json['quiz_config_id'],
37
+ 'sourceConfigId': json['source_config_id'] == null ? undefined : json['source_config_id'],
38
+ };
39
+ }
40
+ export function EffectiveCertificateConfigToJSON(json) {
41
+ return EffectiveCertificateConfigToJSONTyped(json, false);
42
+ }
43
+ export function EffectiveCertificateConfigToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'enabled': value['enabled'],
49
+ 'expiry_months': value['expiryMonths'],
50
+ 'require_quiz_pass': value['requireQuizPass'],
51
+ 'min_quiz_score': value['minQuizScore'],
52
+ 'quiz_config_id': value['quizConfigId'],
53
+ 'source_config_id': value['sourceConfigId'],
54
+ };
55
+ }
@@ -0,0 +1,33 @@
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 { CertificateConfig } from './CertificateConfig';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface GetCertificateConfigList
17
+ */
18
+ export interface GetCertificateConfigList {
19
+ /**
20
+ *
21
+ * @type {Array<CertificateConfig>}
22
+ * @memberof GetCertificateConfigList
23
+ */
24
+ items: Array<CertificateConfig>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the GetCertificateConfigList interface.
28
+ */
29
+ export declare function instanceOfGetCertificateConfigList(value: object): value is GetCertificateConfigList;
30
+ export declare function GetCertificateConfigListFromJSON(json: any): GetCertificateConfigList;
31
+ export declare function GetCertificateConfigListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCertificateConfigList;
32
+ export declare function GetCertificateConfigListToJSON(json: any): GetCertificateConfigList;
33
+ export declare function GetCertificateConfigListToJSONTyped(value?: GetCertificateConfigList | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,44 @@
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 { CertificateConfigFromJSON, CertificateConfigToJSON, } from './CertificateConfig';
15
+ /**
16
+ * Check if a given object implements the GetCertificateConfigList interface.
17
+ */
18
+ export function instanceOfGetCertificateConfigList(value) {
19
+ if (!('items' in value) || value['items'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function GetCertificateConfigListFromJSON(json) {
24
+ return GetCertificateConfigListFromJSONTyped(json, false);
25
+ }
26
+ export function GetCertificateConfigListFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'items': (json['items'].map(CertificateConfigFromJSON)),
32
+ };
33
+ }
34
+ export function GetCertificateConfigListToJSON(json) {
35
+ return GetCertificateConfigListToJSONTyped(json, false);
36
+ }
37
+ export function GetCertificateConfigListToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'items': (value['items'].map(CertificateConfigToJSON)),
43
+ };
44
+ }
@@ -0,0 +1,33 @@
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 { Certificate } from './Certificate';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface GetCertificateList
17
+ */
18
+ export interface GetCertificateList {
19
+ /**
20
+ *
21
+ * @type {Array<Certificate>}
22
+ * @memberof GetCertificateList
23
+ */
24
+ items: Array<Certificate>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the GetCertificateList interface.
28
+ */
29
+ export declare function instanceOfGetCertificateList(value: object): value is GetCertificateList;
30
+ export declare function GetCertificateListFromJSON(json: any): GetCertificateList;
31
+ export declare function GetCertificateListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCertificateList;
32
+ export declare function GetCertificateListToJSON(json: any): GetCertificateList;
33
+ export declare function GetCertificateListToJSONTyped(value?: GetCertificateList | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,44 @@
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 { CertificateFromJSON, CertificateToJSON, } from './Certificate';
15
+ /**
16
+ * Check if a given object implements the GetCertificateList interface.
17
+ */
18
+ export function instanceOfGetCertificateList(value) {
19
+ if (!('items' in value) || value['items'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function GetCertificateListFromJSON(json) {
24
+ return GetCertificateListFromJSONTyped(json, false);
25
+ }
26
+ export function GetCertificateListFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'items': (json['items'].map(CertificateFromJSON)),
32
+ };
33
+ }
34
+ export function GetCertificateListToJSON(json) {
35
+ return GetCertificateListToJSONTyped(json, false);
36
+ }
37
+ export function GetCertificateListToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'items': (value['items'].map(CertificateToJSON)),
43
+ };
44
+ }
@@ -21,6 +21,30 @@ export interface GetModuleInstructorBasicReportingEngagement {
21
21
  * @memberof GetModuleInstructorBasicReportingEngagement
22
22
  */
23
23
  avgTimeSpentHours: number | null;
24
+ /**
25
+ * Percentage of active course-enrolled students who have completed every published content item in this module. Null if there are no active enrolled students.
26
+ * @type {number}
27
+ * @memberof GetModuleInstructorBasicReportingEngagement
28
+ */
29
+ completionRatePercentage: number | null;
30
+ /**
31
+ * Number of active course-enrolled students who have completed every published content item in this module.
32
+ * @type {number}
33
+ * @memberof GetModuleInstructorBasicReportingEngagement
34
+ */
35
+ completedCount: number;
36
+ /**
37
+ * Number of active course-enrolled students who have started at least one content item in this module but have not completed all published items.
38
+ * @type {number}
39
+ * @memberof GetModuleInstructorBasicReportingEngagement
40
+ */
41
+ inProgressCount: number;
42
+ /**
43
+ * Number of active course-enrolled students who have not opened any content item in this module.
44
+ * @type {number}
45
+ * @memberof GetModuleInstructorBasicReportingEngagement
46
+ */
47
+ notStartedCount: number;
24
48
  }
25
49
  /**
26
50
  * Check if a given object implements the GetModuleInstructorBasicReportingEngagement interface.
@@ -17,6 +17,14 @@
17
17
  export function instanceOfGetModuleInstructorBasicReportingEngagement(value) {
18
18
  if (!('avgTimeSpentHours' in value) || value['avgTimeSpentHours'] === undefined)
19
19
  return false;
20
+ if (!('completionRatePercentage' in value) || value['completionRatePercentage'] === undefined)
21
+ return false;
22
+ if (!('completedCount' in value) || value['completedCount'] === undefined)
23
+ return false;
24
+ if (!('inProgressCount' in value) || value['inProgressCount'] === undefined)
25
+ return false;
26
+ if (!('notStartedCount' in value) || value['notStartedCount'] === undefined)
27
+ return false;
20
28
  return true;
21
29
  }
22
30
  export function GetModuleInstructorBasicReportingEngagementFromJSON(json) {
@@ -28,6 +36,10 @@ export function GetModuleInstructorBasicReportingEngagementFromJSONTyped(json, i
28
36
  }
29
37
  return {
30
38
  'avgTimeSpentHours': json['avg_time_spent_hours'],
39
+ 'completionRatePercentage': json['completion_rate_percentage'],
40
+ 'completedCount': json['completed_count'],
41
+ 'inProgressCount': json['in_progress_count'],
42
+ 'notStartedCount': json['not_started_count'],
31
43
  };
32
44
  }
33
45
  export function GetModuleInstructorBasicReportingEngagementToJSON(json) {
@@ -39,5 +51,9 @@ export function GetModuleInstructorBasicReportingEngagementToJSONTyped(value, ig
39
51
  }
40
52
  return {
41
53
  'avg_time_spent_hours': value['avgTimeSpentHours'],
54
+ 'completion_rate_percentage': value['completionRatePercentage'],
55
+ 'completed_count': value['completedCount'],
56
+ 'in_progress_count': value['inProgressCount'],
57
+ 'not_started_count': value['notStartedCount'],
42
58
  };
43
59
  }
@@ -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
+ * Manually issue a certificate
14
+ * @export
15
+ * @interface PostCertificate
16
+ */
17
+ export interface PostCertificate {
18
+ /**
19
+ * External ID of the recipient
20
+ * @type {string}
21
+ * @memberof PostCertificate
22
+ */
23
+ userId: string;
24
+ /**
25
+ * Unix epoch timestamp; null = never expires
26
+ * @type {number}
27
+ * @memberof PostCertificate
28
+ */
29
+ expiresAt?: number | null;
30
+ /**
31
+ * Optional override for backfilled historical data
32
+ * @type {number}
33
+ * @memberof PostCertificate
34
+ */
35
+ issuedAt?: number | null;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof PostCertificate
40
+ */
41
+ note?: string | null;
42
+ }
43
+ /**
44
+ * Check if a given object implements the PostCertificate interface.
45
+ */
46
+ export declare function instanceOfPostCertificate(value: object): value is PostCertificate;
47
+ export declare function PostCertificateFromJSON(json: any): PostCertificate;
48
+ export declare function PostCertificateFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostCertificate;
49
+ export declare function PostCertificateToJSON(json: any): PostCertificate;
50
+ export declare function PostCertificateToJSONTyped(value?: PostCertificate | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,49 @@
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 PostCertificate interface.
16
+ */
17
+ export function instanceOfPostCertificate(value) {
18
+ if (!('userId' in value) || value['userId'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function PostCertificateFromJSON(json) {
23
+ return PostCertificateFromJSONTyped(json, false);
24
+ }
25
+ export function PostCertificateFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'userId': json['user_id'],
31
+ 'expiresAt': json['expires_at'] == null ? undefined : json['expires_at'],
32
+ 'issuedAt': json['issued_at'] == null ? undefined : json['issued_at'],
33
+ 'note': json['note'] == null ? undefined : json['note'],
34
+ };
35
+ }
36
+ export function PostCertificateToJSON(json) {
37
+ return PostCertificateToJSONTyped(json, false);
38
+ }
39
+ export function PostCertificateToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'user_id': value['userId'],
45
+ 'expires_at': value['expiresAt'],
46
+ 'issued_at': value['issuedAt'],
47
+ 'note': value['note'],
48
+ };
49
+ }
@@ -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 PostCertificateConfig
16
+ */
17
+ export interface PostCertificateConfig {
18
+ /**
19
+ * Omit or null for the portal default config
20
+ * @type {string}
21
+ * @memberof PostCertificateConfig
22
+ */
23
+ courseId?: string | null;
24
+ /**
25
+ *
26
+ * @type {boolean}
27
+ * @memberof PostCertificateConfig
28
+ */
29
+ enabled: boolean;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof PostCertificateConfig
34
+ */
35
+ expiryMonths?: number | null;
36
+ /**
37
+ *
38
+ * @type {boolean}
39
+ * @memberof PostCertificateConfig
40
+ */
41
+ requireQuizPass?: boolean | null;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof PostCertificateConfig
46
+ */
47
+ minQuizScore?: number | null;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof PostCertificateConfig
52
+ */
53
+ quizConfigId?: string | null;
54
+ }
55
+ /**
56
+ * Check if a given object implements the PostCertificateConfig interface.
57
+ */
58
+ export declare function instanceOfPostCertificateConfig(value: object): value is PostCertificateConfig;
59
+ export declare function PostCertificateConfigFromJSON(json: any): PostCertificateConfig;
60
+ export declare function PostCertificateConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostCertificateConfig;
61
+ export declare function PostCertificateConfigToJSON(json: any): PostCertificateConfig;
62
+ export declare function PostCertificateConfigToJSONTyped(value?: PostCertificateConfig | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,53 @@
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 PostCertificateConfig interface.
16
+ */
17
+ export function instanceOfPostCertificateConfig(value) {
18
+ if (!('enabled' in value) || value['enabled'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function PostCertificateConfigFromJSON(json) {
23
+ return PostCertificateConfigFromJSONTyped(json, false);
24
+ }
25
+ export function PostCertificateConfigFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'courseId': json['course_id'] == null ? undefined : json['course_id'],
31
+ 'enabled': json['enabled'],
32
+ 'expiryMonths': json['expiry_months'] == null ? undefined : json['expiry_months'],
33
+ 'requireQuizPass': json['require_quiz_pass'] == null ? undefined : json['require_quiz_pass'],
34
+ 'minQuizScore': json['min_quiz_score'] == null ? undefined : json['min_quiz_score'],
35
+ 'quizConfigId': json['quiz_config_id'] == null ? undefined : json['quiz_config_id'],
36
+ };
37
+ }
38
+ export function PostCertificateConfigToJSON(json) {
39
+ return PostCertificateConfigToJSONTyped(json, false);
40
+ }
41
+ export function PostCertificateConfigToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'course_id': value['courseId'],
47
+ 'enabled': value['enabled'],
48
+ 'expiry_months': value['expiryMonths'],
49
+ 'require_quiz_pass': value['requireQuizPass'],
50
+ 'min_quiz_score': value['minQuizScore'],
51
+ 'quiz_config_id': value['quizConfigId'],
52
+ };
53
+ }
@@ -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 PostRevokeCertificate
16
+ */
17
+ export interface PostRevokeCertificate {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PostRevokeCertificate
22
+ */
23
+ reason?: string | null;
24
+ }
25
+ /**
26
+ * Check if a given object implements the PostRevokeCertificate interface.
27
+ */
28
+ export declare function instanceOfPostRevokeCertificate(value: object): value is PostRevokeCertificate;
29
+ export declare function PostRevokeCertificateFromJSON(json: any): PostRevokeCertificate;
30
+ export declare function PostRevokeCertificateFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostRevokeCertificate;
31
+ export declare function PostRevokeCertificateToJSON(json: any): PostRevokeCertificate;
32
+ export declare function PostRevokeCertificateToJSONTyped(value?: PostRevokeCertificate | 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 PostRevokeCertificate interface.
16
+ */
17
+ export function instanceOfPostRevokeCertificate(value) {
18
+ return true;
19
+ }
20
+ export function PostRevokeCertificateFromJSON(json) {
21
+ return PostRevokeCertificateFromJSONTyped(json, false);
22
+ }
23
+ export function PostRevokeCertificateFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'reason': json['reason'] == null ? undefined : json['reason'],
29
+ };
30
+ }
31
+ export function PostRevokeCertificateToJSON(json) {
32
+ return PostRevokeCertificateToJSONTyped(json, false);
33
+ }
34
+ export function PostRevokeCertificateToJSONTyped(value, ignoreDiscriminator = false) {
35
+ if (value == null) {
36
+ return value;
37
+ }
38
+ return {
39
+ 'reason': value['reason'],
40
+ };
41
+ }
@@ -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 PutCertificateConfig
16
+ */
17
+ export interface PutCertificateConfig {
18
+ /**
19
+ *
20
+ * @type {boolean}
21
+ * @memberof PutCertificateConfig
22
+ */
23
+ enabled?: boolean;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof PutCertificateConfig
28
+ */
29
+ expiryMonths?: number | null;
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof PutCertificateConfig
34
+ */
35
+ requireQuizPass?: boolean | null;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof PutCertificateConfig
40
+ */
41
+ minQuizScore?: number | null;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof PutCertificateConfig
46
+ */
47
+ quizConfigId?: string | null;
48
+ }
49
+ /**
50
+ * Check if a given object implements the PutCertificateConfig interface.
51
+ */
52
+ export declare function instanceOfPutCertificateConfig(value: object): value is PutCertificateConfig;
53
+ export declare function PutCertificateConfigFromJSON(json: any): PutCertificateConfig;
54
+ export declare function PutCertificateConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutCertificateConfig;
55
+ export declare function PutCertificateConfigToJSON(json: any): PutCertificateConfig;
56
+ export declare function PutCertificateConfigToJSONTyped(value?: PutCertificateConfig | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,49 @@
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 PutCertificateConfig interface.
16
+ */
17
+ export function instanceOfPutCertificateConfig(value) {
18
+ return true;
19
+ }
20
+ export function PutCertificateConfigFromJSON(json) {
21
+ return PutCertificateConfigFromJSONTyped(json, false);
22
+ }
23
+ export function PutCertificateConfigFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'enabled': json['enabled'] == null ? undefined : json['enabled'],
29
+ 'expiryMonths': json['expiry_months'] == null ? undefined : json['expiry_months'],
30
+ 'requireQuizPass': json['require_quiz_pass'] == null ? undefined : json['require_quiz_pass'],
31
+ 'minQuizScore': json['min_quiz_score'] == null ? undefined : json['min_quiz_score'],
32
+ 'quizConfigId': json['quiz_config_id'] == null ? undefined : json['quiz_config_id'],
33
+ };
34
+ }
35
+ export function PutCertificateConfigToJSON(json) {
36
+ return PutCertificateConfigToJSONTyped(json, false);
37
+ }
38
+ export function PutCertificateConfigToJSONTyped(value, ignoreDiscriminator = false) {
39
+ if (value == null) {
40
+ return value;
41
+ }
42
+ return {
43
+ 'enabled': value['enabled'],
44
+ 'expiry_months': value['expiryMonths'],
45
+ 'require_quiz_pass': value['requireQuizPass'],
46
+ 'min_quiz_score': value['minQuizScore'],
47
+ 'quiz_config_id': value['quizConfigId'],
48
+ };
49
+ }