@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.
- 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,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
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -1,11 +1,17 @@
|
|
|
1
|
+
export * from './Certificate';
|
|
2
|
+
export * from './CertificateConfig';
|
|
3
|
+
export * from './CertificatePublic';
|
|
1
4
|
export * from './CriteriaBasedSelection';
|
|
2
5
|
export * from './CriteriaBasedSelectionCriteria';
|
|
3
6
|
export * from './CriteriaBasedSelectionDistribution';
|
|
4
7
|
export * from './DownloadSupportTicketAttachment200Response';
|
|
8
|
+
export * from './EffectiveCertificateConfig';
|
|
5
9
|
export * from './Essay';
|
|
6
10
|
export * from './Essay1';
|
|
7
11
|
export * from './FillInBlank';
|
|
8
12
|
export * from './FillInBlank1';
|
|
13
|
+
export * from './GetCertificateConfigList';
|
|
14
|
+
export * from './GetCertificateList';
|
|
9
15
|
export * from './GetChatMessage';
|
|
10
16
|
export * from './GetContent';
|
|
11
17
|
export * from './GetContentContentData';
|
|
@@ -150,6 +156,8 @@ export * from './MultipleAnswer';
|
|
|
150
156
|
export * from './MultipleAnswer1';
|
|
151
157
|
export * from './NoAnswer';
|
|
152
158
|
export * from './Paginated';
|
|
159
|
+
export * from './PostCertificate';
|
|
160
|
+
export * from './PostCertificateConfig';
|
|
153
161
|
export * from './PostContentQuiz';
|
|
154
162
|
export * from './PostContentQuizAssignment';
|
|
155
163
|
export * from './PostContentQuizQuestionSelection';
|
|
@@ -185,6 +193,7 @@ export * from './PostQuizQuestions';
|
|
|
185
193
|
export * from './PostQuizQuestionsQuestionsInner';
|
|
186
194
|
export * from './PostQuizSettings';
|
|
187
195
|
export * from './PostResetPassword';
|
|
196
|
+
export * from './PostRevokeCertificate';
|
|
188
197
|
export * from './PostRole';
|
|
189
198
|
export * from './PostSendResetPassword';
|
|
190
199
|
export * from './PostSupportTicket';
|
|
@@ -192,6 +201,7 @@ export * from './PostSupportTicketComment';
|
|
|
192
201
|
export * from './PostVerifyManifest';
|
|
193
202
|
export * from './PostVerifyManifestItemsInner';
|
|
194
203
|
export * from './PostVerifyManifestResourcesInner';
|
|
204
|
+
export * from './PutCertificateConfig';
|
|
195
205
|
export * from './PutContent';
|
|
196
206
|
export * from './PutContentReorder';
|
|
197
207
|
export * from './PutContentVersion';
|