@easyedu/js-lsm-api 1.49.0 → 1.51.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.
- package/.openapi-generator/FILES +22 -0
- package/README.md +31 -8
- package/dist/apis/CertificateApi.d.ts +237 -0
- package/dist/apis/CertificateApi.js +587 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/CertificateApi.d.ts +237 -0
- package/dist/esm/apis/CertificateApi.js +583 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/Certificate.d.ts +151 -0
- package/dist/esm/models/Certificate.js +114 -0
- package/dist/esm/models/CertificateConfig.d.ts +86 -0
- package/dist/esm/models/CertificateConfig.js +69 -0
- package/dist/esm/models/CertificatePublic.d.ts +98 -0
- package/dist/esm/models/CertificatePublic.js +87 -0
- package/dist/esm/models/EffectiveCertificateConfig.d.ts +62 -0
- package/dist/esm/models/EffectiveCertificateConfig.js +55 -0
- package/dist/esm/models/GetCertificateConfigList.d.ts +33 -0
- package/dist/esm/models/GetCertificateConfigList.js +44 -0
- package/dist/esm/models/GetCertificateList.d.ts +33 -0
- package/dist/esm/models/GetCertificateList.js +44 -0
- package/dist/esm/models/PostCertificate.d.ts +50 -0
- package/dist/esm/models/PostCertificate.js +49 -0
- package/dist/esm/models/PostCertificateConfig.d.ts +62 -0
- package/dist/esm/models/PostCertificateConfig.js +53 -0
- package/dist/esm/models/PostRevokeCertificate.d.ts +32 -0
- package/dist/esm/models/PostRevokeCertificate.js +41 -0
- package/dist/esm/models/PutCertificateConfig.d.ts +56 -0
- package/dist/esm/models/PutCertificateConfig.js +49 -0
- package/dist/esm/models/index.d.ts +10 -0
- package/dist/esm/models/index.js +10 -0
- package/dist/models/Certificate.d.ts +151 -0
- package/dist/models/Certificate.js +122 -0
- package/dist/models/CertificateConfig.d.ts +86 -0
- package/dist/models/CertificateConfig.js +76 -0
- package/dist/models/CertificatePublic.d.ts +98 -0
- package/dist/models/CertificatePublic.js +95 -0
- package/dist/models/EffectiveCertificateConfig.d.ts +62 -0
- package/dist/models/EffectiveCertificateConfig.js +62 -0
- package/dist/models/GetCertificateConfigList.d.ts +33 -0
- package/dist/models/GetCertificateConfigList.js +51 -0
- package/dist/models/GetCertificateList.d.ts +33 -0
- package/dist/models/GetCertificateList.js +51 -0
- package/dist/models/PostCertificate.d.ts +50 -0
- package/dist/models/PostCertificate.js +56 -0
- package/dist/models/PostCertificateConfig.d.ts +62 -0
- package/dist/models/PostCertificateConfig.js +60 -0
- package/dist/models/PostRevokeCertificate.d.ts +32 -0
- package/dist/models/PostRevokeCertificate.js +48 -0
- package/dist/models/PutCertificateConfig.d.ts +56 -0
- package/dist/models/PutCertificateConfig.js +56 -0
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +10 -0
- package/docs/Certificate.md +68 -0
- package/docs/CertificateApi.md +903 -0
- package/docs/CertificateConfig.md +52 -0
- package/docs/CertificatePublic.md +51 -0
- package/docs/EffectiveCertificateConfig.md +45 -0
- package/docs/GetCertificateConfigList.md +34 -0
- package/docs/GetCertificateList.md +34 -0
- package/docs/PostCertificate.md +41 -0
- package/docs/PostCertificateConfig.md +44 -0
- package/docs/PostRevokeCertificate.md +34 -0
- package/docs/PutCertificateConfig.md +42 -0
- package/package.json +1 -1
- package/src/apis/CertificateApi.ts +765 -0
- package/src/apis/index.ts +1 -0
- package/src/models/Certificate.ts +234 -0
- package/src/models/CertificateConfig.ts +142 -0
- package/src/models/CertificatePublic.ts +158 -0
- package/src/models/EffectiveCertificateConfig.ts +107 -0
- package/src/models/GetCertificateConfigList.ts +74 -0
- package/src/models/GetCertificateList.ts +74 -0
- package/src/models/PostCertificate.ts +90 -0
- package/src/models/PostCertificateConfig.ts +106 -0
- package/src/models/PostRevokeCertificate.ts +65 -0
- package/src/models/PutCertificateConfig.ts +97 -0
- package/src/models/index.ts +10 -0
|
@@ -0,0 +1,74 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { CertificateConfig } from './CertificateConfig';
|
|
17
|
+
import {
|
|
18
|
+
CertificateConfigFromJSON,
|
|
19
|
+
CertificateConfigFromJSONTyped,
|
|
20
|
+
CertificateConfigToJSON,
|
|
21
|
+
CertificateConfigToJSONTyped,
|
|
22
|
+
} from './CertificateConfig';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface GetCertificateConfigList
|
|
28
|
+
*/
|
|
29
|
+
export interface GetCertificateConfigList {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<CertificateConfig>}
|
|
33
|
+
* @memberof GetCertificateConfigList
|
|
34
|
+
*/
|
|
35
|
+
items: Array<CertificateConfig>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the GetCertificateConfigList interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfGetCertificateConfigList(value: object): value is GetCertificateConfigList {
|
|
42
|
+
if (!('items' in value) || value['items'] === undefined) return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function GetCertificateConfigListFromJSON(json: any): GetCertificateConfigList {
|
|
47
|
+
return GetCertificateConfigListFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function GetCertificateConfigListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCertificateConfigList {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'items': ((json['items'] as Array<any>).map(CertificateConfigFromJSON)),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function GetCertificateConfigListToJSON(json: any): GetCertificateConfigList {
|
|
61
|
+
return GetCertificateConfigListToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function GetCertificateConfigListToJSONTyped(value?: GetCertificateConfigList | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'items': ((value['items'] as Array<any>).map(CertificateConfigToJSON)),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { Certificate } from './Certificate';
|
|
17
|
+
import {
|
|
18
|
+
CertificateFromJSON,
|
|
19
|
+
CertificateFromJSONTyped,
|
|
20
|
+
CertificateToJSON,
|
|
21
|
+
CertificateToJSONTyped,
|
|
22
|
+
} from './Certificate';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface GetCertificateList
|
|
28
|
+
*/
|
|
29
|
+
export interface GetCertificateList {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<Certificate>}
|
|
33
|
+
* @memberof GetCertificateList
|
|
34
|
+
*/
|
|
35
|
+
items: Array<Certificate>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the GetCertificateList interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfGetCertificateList(value: object): value is GetCertificateList {
|
|
42
|
+
if (!('items' in value) || value['items'] === undefined) return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function GetCertificateListFromJSON(json: any): GetCertificateList {
|
|
47
|
+
return GetCertificateListFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function GetCertificateListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCertificateList {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'items': ((json['items'] as Array<any>).map(CertificateFromJSON)),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function GetCertificateListToJSON(json: any): GetCertificateList {
|
|
61
|
+
return GetCertificateListToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function GetCertificateListToJSONTyped(value?: GetCertificateList | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'items': ((value['items'] as Array<any>).map(CertificateToJSON)),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -0,0 +1,90 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Manually issue a certificate
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PostCertificate
|
|
20
|
+
*/
|
|
21
|
+
export interface PostCertificate {
|
|
22
|
+
/**
|
|
23
|
+
* External ID of the recipient
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PostCertificate
|
|
26
|
+
*/
|
|
27
|
+
userId: string;
|
|
28
|
+
/**
|
|
29
|
+
* Unix epoch timestamp; null = never expires
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof PostCertificate
|
|
32
|
+
*/
|
|
33
|
+
expiresAt?: number | null;
|
|
34
|
+
/**
|
|
35
|
+
* Optional override for backfilled historical data
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof PostCertificate
|
|
38
|
+
*/
|
|
39
|
+
issuedAt?: number | null;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof PostCertificate
|
|
44
|
+
*/
|
|
45
|
+
note?: string | null;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the PostCertificate interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfPostCertificate(value: object): value is PostCertificate {
|
|
52
|
+
if (!('userId' in value) || value['userId'] === undefined) return false;
|
|
53
|
+
return true;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function PostCertificateFromJSON(json: any): PostCertificate {
|
|
57
|
+
return PostCertificateFromJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PostCertificateFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostCertificate {
|
|
61
|
+
if (json == null) {
|
|
62
|
+
return json;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
|
|
66
|
+
'userId': json['user_id'],
|
|
67
|
+
'expiresAt': json['expires_at'] == null ? undefined : json['expires_at'],
|
|
68
|
+
'issuedAt': json['issued_at'] == null ? undefined : json['issued_at'],
|
|
69
|
+
'note': json['note'] == null ? undefined : json['note'],
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function PostCertificateToJSON(json: any): PostCertificate {
|
|
74
|
+
return PostCertificateToJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function PostCertificateToJSONTyped(value?: PostCertificate | null, ignoreDiscriminator: boolean = false): any {
|
|
78
|
+
if (value == null) {
|
|
79
|
+
return value;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'user_id': value['userId'],
|
|
85
|
+
'expires_at': value['expiresAt'],
|
|
86
|
+
'issued_at': value['issuedAt'],
|
|
87
|
+
'note': value['note'],
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -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
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PostCertificateConfig
|
|
20
|
+
*/
|
|
21
|
+
export interface PostCertificateConfig {
|
|
22
|
+
/**
|
|
23
|
+
* Omit or null for the portal default config
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PostCertificateConfig
|
|
26
|
+
*/
|
|
27
|
+
courseId?: string | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {boolean}
|
|
31
|
+
* @memberof PostCertificateConfig
|
|
32
|
+
*/
|
|
33
|
+
enabled: boolean;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof PostCertificateConfig
|
|
38
|
+
*/
|
|
39
|
+
expiryMonths?: number | null;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {boolean}
|
|
43
|
+
* @memberof PostCertificateConfig
|
|
44
|
+
*/
|
|
45
|
+
requireQuizPass?: boolean | null;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof PostCertificateConfig
|
|
50
|
+
*/
|
|
51
|
+
minQuizScore?: number | null;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof PostCertificateConfig
|
|
56
|
+
*/
|
|
57
|
+
quizConfigId?: string | null;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the PostCertificateConfig interface.
|
|
62
|
+
*/
|
|
63
|
+
export function instanceOfPostCertificateConfig(value: object): value is PostCertificateConfig {
|
|
64
|
+
if (!('enabled' in value) || value['enabled'] === undefined) return false;
|
|
65
|
+
return true;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function PostCertificateConfigFromJSON(json: any): PostCertificateConfig {
|
|
69
|
+
return PostCertificateConfigFromJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function PostCertificateConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostCertificateConfig {
|
|
73
|
+
if (json == null) {
|
|
74
|
+
return json;
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
|
|
78
|
+
'courseId': json['course_id'] == null ? undefined : json['course_id'],
|
|
79
|
+
'enabled': json['enabled'],
|
|
80
|
+
'expiryMonths': json['expiry_months'] == null ? undefined : json['expiry_months'],
|
|
81
|
+
'requireQuizPass': json['require_quiz_pass'] == null ? undefined : json['require_quiz_pass'],
|
|
82
|
+
'minQuizScore': json['min_quiz_score'] == null ? undefined : json['min_quiz_score'],
|
|
83
|
+
'quizConfigId': json['quiz_config_id'] == null ? undefined : json['quiz_config_id'],
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function PostCertificateConfigToJSON(json: any): PostCertificateConfig {
|
|
88
|
+
return PostCertificateConfigToJSONTyped(json, false);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function PostCertificateConfigToJSONTyped(value?: PostCertificateConfig | null, ignoreDiscriminator: boolean = false): any {
|
|
92
|
+
if (value == null) {
|
|
93
|
+
return value;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
return {
|
|
97
|
+
|
|
98
|
+
'course_id': value['courseId'],
|
|
99
|
+
'enabled': value['enabled'],
|
|
100
|
+
'expiry_months': value['expiryMonths'],
|
|
101
|
+
'require_quiz_pass': value['requireQuizPass'],
|
|
102
|
+
'min_quiz_score': value['minQuizScore'],
|
|
103
|
+
'quiz_config_id': value['quizConfigId'],
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PostRevokeCertificate
|
|
20
|
+
*/
|
|
21
|
+
export interface PostRevokeCertificate {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PostRevokeCertificate
|
|
26
|
+
*/
|
|
27
|
+
reason?: string | null;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the PostRevokeCertificate interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfPostRevokeCertificate(value: object): value is PostRevokeCertificate {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function PostRevokeCertificateFromJSON(json: any): PostRevokeCertificate {
|
|
38
|
+
return PostRevokeCertificateFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function PostRevokeCertificateFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostRevokeCertificate {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'reason': json['reason'] == null ? undefined : json['reason'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function PostRevokeCertificateToJSON(json: any): PostRevokeCertificate {
|
|
52
|
+
return PostRevokeCertificateToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function PostRevokeCertificateToJSONTyped(value?: PostRevokeCertificate | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'reason': value['reason'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -0,0 +1,97 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PutCertificateConfig
|
|
20
|
+
*/
|
|
21
|
+
export interface PutCertificateConfig {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof PutCertificateConfig
|
|
26
|
+
*/
|
|
27
|
+
enabled?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof PutCertificateConfig
|
|
32
|
+
*/
|
|
33
|
+
expiryMonths?: number | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof PutCertificateConfig
|
|
38
|
+
*/
|
|
39
|
+
requireQuizPass?: boolean | null;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof PutCertificateConfig
|
|
44
|
+
*/
|
|
45
|
+
minQuizScore?: number | null;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof PutCertificateConfig
|
|
50
|
+
*/
|
|
51
|
+
quizConfigId?: string | null;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the PutCertificateConfig interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfPutCertificateConfig(value: object): value is PutCertificateConfig {
|
|
58
|
+
return true;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function PutCertificateConfigFromJSON(json: any): PutCertificateConfig {
|
|
62
|
+
return PutCertificateConfigFromJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function PutCertificateConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutCertificateConfig {
|
|
66
|
+
if (json == null) {
|
|
67
|
+
return json;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
72
|
+
'expiryMonths': json['expiry_months'] == null ? undefined : json['expiry_months'],
|
|
73
|
+
'requireQuizPass': json['require_quiz_pass'] == null ? undefined : json['require_quiz_pass'],
|
|
74
|
+
'minQuizScore': json['min_quiz_score'] == null ? undefined : json['min_quiz_score'],
|
|
75
|
+
'quizConfigId': json['quiz_config_id'] == null ? undefined : json['quiz_config_id'],
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PutCertificateConfigToJSON(json: any): PutCertificateConfig {
|
|
80
|
+
return PutCertificateConfigToJSONTyped(json, false);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function PutCertificateConfigToJSONTyped(value?: PutCertificateConfig | null, ignoreDiscriminator: boolean = false): any {
|
|
84
|
+
if (value == null) {
|
|
85
|
+
return value;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'enabled': value['enabled'],
|
|
91
|
+
'expiry_months': value['expiryMonths'],
|
|
92
|
+
'require_quiz_pass': value['requireQuizPass'],
|
|
93
|
+
'min_quiz_score': value['minQuizScore'],
|
|
94
|
+
'quiz_config_id': value['quizConfigId'],
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export * from './Certificate';
|
|
4
|
+
export * from './CertificateConfig';
|
|
5
|
+
export * from './CertificatePublic';
|
|
3
6
|
export * from './CriteriaBasedSelection';
|
|
4
7
|
export * from './CriteriaBasedSelectionCriteria';
|
|
5
8
|
export * from './CriteriaBasedSelectionDistribution';
|
|
6
9
|
export * from './DownloadSupportTicketAttachment200Response';
|
|
10
|
+
export * from './EffectiveCertificateConfig';
|
|
7
11
|
export * from './Essay';
|
|
8
12
|
export * from './Essay1';
|
|
9
13
|
export * from './FillInBlank';
|
|
10
14
|
export * from './FillInBlank1';
|
|
15
|
+
export * from './GetCertificateConfigList';
|
|
16
|
+
export * from './GetCertificateList';
|
|
11
17
|
export * from './GetChatMessage';
|
|
12
18
|
export * from './GetContent';
|
|
13
19
|
export * from './GetContentContentData';
|
|
@@ -152,6 +158,8 @@ export * from './MultipleAnswer';
|
|
|
152
158
|
export * from './MultipleAnswer1';
|
|
153
159
|
export * from './NoAnswer';
|
|
154
160
|
export * from './Paginated';
|
|
161
|
+
export * from './PostCertificate';
|
|
162
|
+
export * from './PostCertificateConfig';
|
|
155
163
|
export * from './PostContentQuiz';
|
|
156
164
|
export * from './PostContentQuizAssignment';
|
|
157
165
|
export * from './PostContentQuizQuestionSelection';
|
|
@@ -187,6 +195,7 @@ export * from './PostQuizQuestions';
|
|
|
187
195
|
export * from './PostQuizQuestionsQuestionsInner';
|
|
188
196
|
export * from './PostQuizSettings';
|
|
189
197
|
export * from './PostResetPassword';
|
|
198
|
+
export * from './PostRevokeCertificate';
|
|
190
199
|
export * from './PostRole';
|
|
191
200
|
export * from './PostSendResetPassword';
|
|
192
201
|
export * from './PostSupportTicket';
|
|
@@ -194,6 +203,7 @@ export * from './PostSupportTicketComment';
|
|
|
194
203
|
export * from './PostVerifyManifest';
|
|
195
204
|
export * from './PostVerifyManifestItemsInner';
|
|
196
205
|
export * from './PostVerifyManifestResourcesInner';
|
|
206
|
+
export * from './PutCertificateConfig';
|
|
197
207
|
export * from './PutContent';
|
|
198
208
|
export * from './PutContentReorder';
|
|
199
209
|
export * from './PutContentVersion';
|