@easyedu/js-lsm-api 1.49.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 (79) 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/PostCertificate.d.ts +50 -0
  24. package/dist/esm/models/PostCertificate.js +49 -0
  25. package/dist/esm/models/PostCertificateConfig.d.ts +62 -0
  26. package/dist/esm/models/PostCertificateConfig.js +53 -0
  27. package/dist/esm/models/PostRevokeCertificate.d.ts +32 -0
  28. package/dist/esm/models/PostRevokeCertificate.js +41 -0
  29. package/dist/esm/models/PutCertificateConfig.d.ts +56 -0
  30. package/dist/esm/models/PutCertificateConfig.js +49 -0
  31. package/dist/esm/models/index.d.ts +10 -0
  32. package/dist/esm/models/index.js +10 -0
  33. package/dist/models/Certificate.d.ts +151 -0
  34. package/dist/models/Certificate.js +122 -0
  35. package/dist/models/CertificateConfig.d.ts +86 -0
  36. package/dist/models/CertificateConfig.js +76 -0
  37. package/dist/models/CertificatePublic.d.ts +98 -0
  38. package/dist/models/CertificatePublic.js +95 -0
  39. package/dist/models/EffectiveCertificateConfig.d.ts +62 -0
  40. package/dist/models/EffectiveCertificateConfig.js +62 -0
  41. package/dist/models/GetCertificateConfigList.d.ts +33 -0
  42. package/dist/models/GetCertificateConfigList.js +51 -0
  43. package/dist/models/GetCertificateList.d.ts +33 -0
  44. package/dist/models/GetCertificateList.js +51 -0
  45. package/dist/models/PostCertificate.d.ts +50 -0
  46. package/dist/models/PostCertificate.js +56 -0
  47. package/dist/models/PostCertificateConfig.d.ts +62 -0
  48. package/dist/models/PostCertificateConfig.js +60 -0
  49. package/dist/models/PostRevokeCertificate.d.ts +32 -0
  50. package/dist/models/PostRevokeCertificate.js +48 -0
  51. package/dist/models/PutCertificateConfig.d.ts +56 -0
  52. package/dist/models/PutCertificateConfig.js +56 -0
  53. package/dist/models/index.d.ts +10 -0
  54. package/dist/models/index.js +10 -0
  55. package/docs/Certificate.md +68 -0
  56. package/docs/CertificateApi.md +903 -0
  57. package/docs/CertificateConfig.md +52 -0
  58. package/docs/CertificatePublic.md +51 -0
  59. package/docs/EffectiveCertificateConfig.md +45 -0
  60. package/docs/GetCertificateConfigList.md +34 -0
  61. package/docs/GetCertificateList.md +34 -0
  62. package/docs/PostCertificate.md +41 -0
  63. package/docs/PostCertificateConfig.md +44 -0
  64. package/docs/PostRevokeCertificate.md +34 -0
  65. package/docs/PutCertificateConfig.md +42 -0
  66. package/package.json +1 -1
  67. package/src/apis/CertificateApi.ts +765 -0
  68. package/src/apis/index.ts +1 -0
  69. package/src/models/Certificate.ts +234 -0
  70. package/src/models/CertificateConfig.ts +142 -0
  71. package/src/models/CertificatePublic.ts +158 -0
  72. package/src/models/EffectiveCertificateConfig.ts +107 -0
  73. package/src/models/GetCertificateConfigList.ts +74 -0
  74. package/src/models/GetCertificateList.ts +74 -0
  75. package/src/models/PostCertificate.ts +90 -0
  76. package/src/models/PostCertificateConfig.ts +106 -0
  77. package/src/models/PostRevokeCertificate.ts +65 -0
  78. package/src/models/PutCertificateConfig.ts +97 -0
  79. package/src/models/index.ts +10 -0
@@ -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
+ * Resolved effective config for a course (course override merged with portal default)
14
+ * @export
15
+ * @interface EffectiveCertificateConfig
16
+ */
17
+ export interface EffectiveCertificateConfig {
18
+ /**
19
+ *
20
+ * @type {boolean}
21
+ * @memberof EffectiveCertificateConfig
22
+ */
23
+ enabled: boolean;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof EffectiveCertificateConfig
28
+ */
29
+ expiryMonths?: number | null;
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof EffectiveCertificateConfig
34
+ */
35
+ requireQuizPass: boolean;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof EffectiveCertificateConfig
40
+ */
41
+ minQuizScore?: number | null;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof EffectiveCertificateConfig
46
+ */
47
+ quizConfigId?: string | null;
48
+ /**
49
+ * External ID of the config that resolved this (course override or portal default)
50
+ * @type {string}
51
+ * @memberof EffectiveCertificateConfig
52
+ */
53
+ sourceConfigId?: string | null;
54
+ }
55
+ /**
56
+ * Check if a given object implements the EffectiveCertificateConfig interface.
57
+ */
58
+ export declare function instanceOfEffectiveCertificateConfig(value: object): value is EffectiveCertificateConfig;
59
+ export declare function EffectiveCertificateConfigFromJSON(json: any): EffectiveCertificateConfig;
60
+ export declare function EffectiveCertificateConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): EffectiveCertificateConfig;
61
+ export declare function EffectiveCertificateConfigToJSON(json: any): EffectiveCertificateConfig;
62
+ export declare function EffectiveCertificateConfigToJSONTyped(value?: EffectiveCertificateConfig | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * LMS API
6
+ * LMS API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfEffectiveCertificateConfig = instanceOfEffectiveCertificateConfig;
17
+ exports.EffectiveCertificateConfigFromJSON = EffectiveCertificateConfigFromJSON;
18
+ exports.EffectiveCertificateConfigFromJSONTyped = EffectiveCertificateConfigFromJSONTyped;
19
+ exports.EffectiveCertificateConfigToJSON = EffectiveCertificateConfigToJSON;
20
+ exports.EffectiveCertificateConfigToJSONTyped = EffectiveCertificateConfigToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the EffectiveCertificateConfig interface.
23
+ */
24
+ function instanceOfEffectiveCertificateConfig(value) {
25
+ if (!('enabled' in value) || value['enabled'] === undefined)
26
+ return false;
27
+ if (!('requireQuizPass' in value) || value['requireQuizPass'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function EffectiveCertificateConfigFromJSON(json) {
32
+ return EffectiveCertificateConfigFromJSONTyped(json, false);
33
+ }
34
+ function EffectiveCertificateConfigFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'enabled': json['enabled'],
40
+ 'expiryMonths': json['expiry_months'] == null ? undefined : json['expiry_months'],
41
+ 'requireQuizPass': json['require_quiz_pass'],
42
+ 'minQuizScore': json['min_quiz_score'] == null ? undefined : json['min_quiz_score'],
43
+ 'quizConfigId': json['quiz_config_id'] == null ? undefined : json['quiz_config_id'],
44
+ 'sourceConfigId': json['source_config_id'] == null ? undefined : json['source_config_id'],
45
+ };
46
+ }
47
+ function EffectiveCertificateConfigToJSON(json) {
48
+ return EffectiveCertificateConfigToJSONTyped(json, false);
49
+ }
50
+ function EffectiveCertificateConfigToJSONTyped(value, ignoreDiscriminator = false) {
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'enabled': value['enabled'],
56
+ 'expiry_months': value['expiryMonths'],
57
+ 'require_quiz_pass': value['requireQuizPass'],
58
+ 'min_quiz_score': value['minQuizScore'],
59
+ 'quiz_config_id': value['quizConfigId'],
60
+ 'source_config_id': value['sourceConfigId'],
61
+ };
62
+ }
@@ -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,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * LMS API
6
+ * LMS API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfGetCertificateConfigList = instanceOfGetCertificateConfigList;
17
+ exports.GetCertificateConfigListFromJSON = GetCertificateConfigListFromJSON;
18
+ exports.GetCertificateConfigListFromJSONTyped = GetCertificateConfigListFromJSONTyped;
19
+ exports.GetCertificateConfigListToJSON = GetCertificateConfigListToJSON;
20
+ exports.GetCertificateConfigListToJSONTyped = GetCertificateConfigListToJSONTyped;
21
+ const CertificateConfig_1 = require("./CertificateConfig");
22
+ /**
23
+ * Check if a given object implements the GetCertificateConfigList interface.
24
+ */
25
+ function instanceOfGetCertificateConfigList(value) {
26
+ if (!('items' in value) || value['items'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function GetCertificateConfigListFromJSON(json) {
31
+ return GetCertificateConfigListFromJSONTyped(json, false);
32
+ }
33
+ function GetCertificateConfigListFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'items': (json['items'].map(CertificateConfig_1.CertificateConfigFromJSON)),
39
+ };
40
+ }
41
+ function GetCertificateConfigListToJSON(json) {
42
+ return GetCertificateConfigListToJSONTyped(json, false);
43
+ }
44
+ function GetCertificateConfigListToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'items': (value['items'].map(CertificateConfig_1.CertificateConfigToJSON)),
50
+ };
51
+ }
@@ -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,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * LMS API
6
+ * LMS API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfGetCertificateList = instanceOfGetCertificateList;
17
+ exports.GetCertificateListFromJSON = GetCertificateListFromJSON;
18
+ exports.GetCertificateListFromJSONTyped = GetCertificateListFromJSONTyped;
19
+ exports.GetCertificateListToJSON = GetCertificateListToJSON;
20
+ exports.GetCertificateListToJSONTyped = GetCertificateListToJSONTyped;
21
+ const Certificate_1 = require("./Certificate");
22
+ /**
23
+ * Check if a given object implements the GetCertificateList interface.
24
+ */
25
+ function instanceOfGetCertificateList(value) {
26
+ if (!('items' in value) || value['items'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function GetCertificateListFromJSON(json) {
31
+ return GetCertificateListFromJSONTyped(json, false);
32
+ }
33
+ function GetCertificateListFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'items': (json['items'].map(Certificate_1.CertificateFromJSON)),
39
+ };
40
+ }
41
+ function GetCertificateListToJSON(json) {
42
+ return GetCertificateListToJSONTyped(json, false);
43
+ }
44
+ function GetCertificateListToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'items': (value['items'].map(Certificate_1.CertificateToJSON)),
50
+ };
51
+ }
@@ -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,56 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * LMS API
6
+ * LMS API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfPostCertificate = instanceOfPostCertificate;
17
+ exports.PostCertificateFromJSON = PostCertificateFromJSON;
18
+ exports.PostCertificateFromJSONTyped = PostCertificateFromJSONTyped;
19
+ exports.PostCertificateToJSON = PostCertificateToJSON;
20
+ exports.PostCertificateToJSONTyped = PostCertificateToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the PostCertificate interface.
23
+ */
24
+ function instanceOfPostCertificate(value) {
25
+ if (!('userId' in value) || value['userId'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function PostCertificateFromJSON(json) {
30
+ return PostCertificateFromJSONTyped(json, false);
31
+ }
32
+ function PostCertificateFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'userId': json['user_id'],
38
+ 'expiresAt': json['expires_at'] == null ? undefined : json['expires_at'],
39
+ 'issuedAt': json['issued_at'] == null ? undefined : json['issued_at'],
40
+ 'note': json['note'] == null ? undefined : json['note'],
41
+ };
42
+ }
43
+ function PostCertificateToJSON(json) {
44
+ return PostCertificateToJSONTyped(json, false);
45
+ }
46
+ function PostCertificateToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'user_id': value['userId'],
52
+ 'expires_at': value['expiresAt'],
53
+ 'issued_at': value['issuedAt'],
54
+ 'note': value['note'],
55
+ };
56
+ }
@@ -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,60 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * LMS API
6
+ * LMS API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfPostCertificateConfig = instanceOfPostCertificateConfig;
17
+ exports.PostCertificateConfigFromJSON = PostCertificateConfigFromJSON;
18
+ exports.PostCertificateConfigFromJSONTyped = PostCertificateConfigFromJSONTyped;
19
+ exports.PostCertificateConfigToJSON = PostCertificateConfigToJSON;
20
+ exports.PostCertificateConfigToJSONTyped = PostCertificateConfigToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the PostCertificateConfig interface.
23
+ */
24
+ function instanceOfPostCertificateConfig(value) {
25
+ if (!('enabled' in value) || value['enabled'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function PostCertificateConfigFromJSON(json) {
30
+ return PostCertificateConfigFromJSONTyped(json, false);
31
+ }
32
+ function PostCertificateConfigFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'courseId': json['course_id'] == null ? undefined : json['course_id'],
38
+ 'enabled': json['enabled'],
39
+ 'expiryMonths': json['expiry_months'] == null ? undefined : json['expiry_months'],
40
+ 'requireQuizPass': json['require_quiz_pass'] == null ? undefined : json['require_quiz_pass'],
41
+ 'minQuizScore': json['min_quiz_score'] == null ? undefined : json['min_quiz_score'],
42
+ 'quizConfigId': json['quiz_config_id'] == null ? undefined : json['quiz_config_id'],
43
+ };
44
+ }
45
+ function PostCertificateConfigToJSON(json) {
46
+ return PostCertificateConfigToJSONTyped(json, false);
47
+ }
48
+ function PostCertificateConfigToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'course_id': value['courseId'],
54
+ 'enabled': value['enabled'],
55
+ 'expiry_months': value['expiryMonths'],
56
+ 'require_quiz_pass': value['requireQuizPass'],
57
+ 'min_quiz_score': value['minQuizScore'],
58
+ 'quiz_config_id': value['quizConfigId'],
59
+ };
60
+ }
@@ -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,48 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * LMS API
6
+ * LMS API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfPostRevokeCertificate = instanceOfPostRevokeCertificate;
17
+ exports.PostRevokeCertificateFromJSON = PostRevokeCertificateFromJSON;
18
+ exports.PostRevokeCertificateFromJSONTyped = PostRevokeCertificateFromJSONTyped;
19
+ exports.PostRevokeCertificateToJSON = PostRevokeCertificateToJSON;
20
+ exports.PostRevokeCertificateToJSONTyped = PostRevokeCertificateToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the PostRevokeCertificate interface.
23
+ */
24
+ function instanceOfPostRevokeCertificate(value) {
25
+ return true;
26
+ }
27
+ function PostRevokeCertificateFromJSON(json) {
28
+ return PostRevokeCertificateFromJSONTyped(json, false);
29
+ }
30
+ function PostRevokeCertificateFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'reason': json['reason'] == null ? undefined : json['reason'],
36
+ };
37
+ }
38
+ function PostRevokeCertificateToJSON(json) {
39
+ return PostRevokeCertificateToJSONTyped(json, false);
40
+ }
41
+ function PostRevokeCertificateToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'reason': value['reason'],
47
+ };
48
+ }
@@ -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;