@easyedu/js-lsm-api 1.86.0 → 1.87.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 +66 -0
- package/README.md +87 -2
- package/dist/apis/CertificateApi.d.ts +273 -0
- package/dist/apis/CertificateApi.js +663 -2
- package/dist/apis/CertificateTemplateApi.d.ts +591 -0
- package/dist/apis/CertificateTemplateApi.js +1546 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/CertificateApi.d.ts +273 -0
- package/dist/esm/apis/CertificateApi.js +662 -1
- package/dist/esm/apis/CertificateTemplateApi.d.ts +591 -0
- package/dist/esm/apis/CertificateTemplateApi.js +1542 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/ArtifactConflict.d.ts +52 -0
- package/dist/esm/models/ArtifactConflict.js +58 -0
- package/dist/esm/models/BadgeIssuer.d.ts +80 -0
- package/dist/esm/models/BadgeIssuer.js +69 -0
- package/dist/esm/models/Certificate.d.ts +54 -0
- package/dist/esm/models/Certificate.js +30 -1
- package/dist/esm/models/CertificateArtifact.d.ts +72 -0
- package/dist/esm/models/CertificateArtifact.js +62 -0
- package/dist/esm/models/CertificateBadgePolicy.d.ts +69 -0
- package/dist/esm/models/CertificateBadgePolicy.js +64 -0
- package/dist/esm/models/CertificateBadgePolicyAlignmentsInner.d.ts +50 -0
- package/dist/esm/models/CertificateBadgePolicyAlignmentsInner.js +51 -0
- package/dist/esm/models/CertificateCanvasDocument.d.ts +53 -0
- package/dist/esm/models/CertificateCanvasDocument.js +59 -0
- package/dist/esm/models/CertificateCanvasDocumentPage.d.ts +60 -0
- package/dist/esm/models/CertificateCanvasDocumentPage.js +63 -0
- package/dist/esm/models/CertificateCanvasElement.d.ts +27 -0
- package/dist/esm/models/CertificateCanvasElement.js +79 -0
- package/dist/esm/models/CertificateCanvasImageElement.d.ts +90 -0
- package/dist/esm/models/CertificateCanvasImageElement.js +83 -0
- package/dist/esm/models/CertificateCanvasLineElement.d.ts +81 -0
- package/dist/esm/models/CertificateCanvasLineElement.js +77 -0
- package/dist/esm/models/CertificateCanvasPortalLogoElement.d.ts +69 -0
- package/dist/esm/models/CertificateCanvasPortalLogoElement.js +69 -0
- package/dist/esm/models/CertificateCanvasShapeElement.d.ts +87 -0
- package/dist/esm/models/CertificateCanvasShapeElement.js +81 -0
- package/dist/esm/models/CertificateCanvasTextElement.d.ts +115 -0
- package/dist/esm/models/CertificateCanvasTextElement.js +101 -0
- package/dist/esm/models/CertificateCanvasVerificationQrElement.d.ts +69 -0
- package/dist/esm/models/CertificateCanvasVerificationQrElement.js +69 -0
- package/dist/esm/models/CertificateConfig.d.ts +27 -0
- package/dist/esm/models/CertificateConfig.js +11 -0
- package/dist/esm/models/CertificateEvent.d.ts +74 -0
- package/dist/esm/models/CertificateEvent.js +61 -0
- package/dist/esm/models/CertificateNotificationPolicy.d.ts +76 -0
- package/dist/esm/models/CertificateNotificationPolicy.js +74 -0
- package/dist/esm/models/CertificatePublic.d.ts +35 -0
- package/dist/esm/models/CertificatePublic.js +22 -0
- package/dist/esm/models/CertificateRenewalPolicy.d.ts +46 -0
- package/dist/esm/models/CertificateRenewalPolicy.js +54 -0
- package/dist/esm/models/CertificateTemplate.d.ts +121 -0
- package/dist/esm/models/CertificateTemplate.js +97 -0
- package/dist/esm/models/CertificateTemplateVersion.d.ts +85 -0
- package/dist/esm/models/CertificateTemplateVersion.js +77 -0
- package/dist/esm/models/EffectiveCertificateConfig.d.ts +56 -0
- package/dist/esm/models/EffectiveCertificateConfig.js +35 -0
- package/dist/esm/models/GetCertificateAssetUpload.d.ts +64 -0
- package/dist/esm/models/GetCertificateAssetUpload.js +66 -0
- package/dist/esm/models/GetCertificateEventList.d.ts +33 -0
- package/dist/esm/models/GetCertificateEventList.js +44 -0
- package/dist/esm/models/GetCertificateTemplateList.d.ts +33 -0
- package/dist/esm/models/GetCertificateTemplateList.js +44 -0
- package/dist/esm/models/GetPublicBadgeCredentialStatus200Response.d.ts +48 -0
- package/dist/esm/models/GetPublicBadgeCredentialStatus200Response.js +56 -0
- package/dist/esm/models/GetUserCourseListItemCertificate.d.ts +1 -0
- package/dist/esm/models/GetUserCourseListItemCertificate.js +2 -1
- package/dist/esm/models/PostCertificateAssetComplete.d.ts +32 -0
- package/dist/esm/models/PostCertificateAssetComplete.js +43 -0
- package/dist/esm/models/PostCertificateAssetUpload.d.ts +53 -0
- package/dist/esm/models/PostCertificateAssetUpload.js +59 -0
- package/dist/esm/models/PostCertificateConfig.d.ts +27 -0
- package/dist/esm/models/PostCertificateConfig.js +11 -0
- package/dist/esm/models/PostCertificateLifecycleAction.d.ts +38 -0
- package/dist/esm/models/PostCertificateLifecycleAction.js +45 -0
- package/dist/esm/models/PostCertificateTemplate.d.ts +51 -0
- package/dist/esm/models/PostCertificateTemplate.js +50 -0
- package/dist/esm/models/PostCertificateTemplateClone.d.ts +44 -0
- package/dist/esm/models/PostCertificateTemplateClone.js +47 -0
- package/dist/esm/models/PostCertificateTemplatePreview.d.ts +41 -0
- package/dist/esm/models/PostCertificateTemplatePreview.js +46 -0
- package/dist/esm/models/PutBadgeIssuer.d.ts +44 -0
- package/dist/esm/models/PutBadgeIssuer.js +47 -0
- package/dist/esm/models/PutCertificateConfig.d.ts +27 -0
- package/dist/esm/models/PutCertificateConfig.js +11 -0
- package/dist/esm/models/PutCertificateTemplate.d.ts +44 -0
- package/dist/esm/models/PutCertificateTemplate.js +45 -0
- package/dist/esm/models/PutCertificateTemplateDraft.d.ts +39 -0
- package/dist/esm/models/PutCertificateTemplateDraft.js +46 -0
- package/dist/esm/models/index.d.ts +32 -0
- package/dist/esm/models/index.js +32 -0
- package/dist/models/ArtifactConflict.d.ts +52 -0
- package/dist/models/ArtifactConflict.js +66 -0
- package/dist/models/BadgeIssuer.d.ts +80 -0
- package/dist/models/BadgeIssuer.js +76 -0
- package/dist/models/Certificate.d.ts +54 -0
- package/dist/models/Certificate.js +31 -2
- package/dist/models/CertificateArtifact.d.ts +72 -0
- package/dist/models/CertificateArtifact.js +70 -0
- package/dist/models/CertificateBadgePolicy.d.ts +69 -0
- package/dist/models/CertificateBadgePolicy.js +71 -0
- package/dist/models/CertificateBadgePolicyAlignmentsInner.d.ts +50 -0
- package/dist/models/CertificateBadgePolicyAlignmentsInner.js +58 -0
- package/dist/models/CertificateCanvasDocument.d.ts +53 -0
- package/dist/models/CertificateCanvasDocument.js +67 -0
- package/dist/models/CertificateCanvasDocumentPage.d.ts +60 -0
- package/dist/models/CertificateCanvasDocumentPage.js +71 -0
- package/dist/models/CertificateCanvasElement.d.ts +27 -0
- package/dist/models/CertificateCanvasElement.js +85 -0
- package/dist/models/CertificateCanvasImageElement.d.ts +90 -0
- package/dist/models/CertificateCanvasImageElement.js +91 -0
- package/dist/models/CertificateCanvasLineElement.d.ts +81 -0
- package/dist/models/CertificateCanvasLineElement.js +85 -0
- package/dist/models/CertificateCanvasPortalLogoElement.d.ts +69 -0
- package/dist/models/CertificateCanvasPortalLogoElement.js +77 -0
- package/dist/models/CertificateCanvasShapeElement.d.ts +87 -0
- package/dist/models/CertificateCanvasShapeElement.js +89 -0
- package/dist/models/CertificateCanvasTextElement.d.ts +115 -0
- package/dist/models/CertificateCanvasTextElement.js +109 -0
- package/dist/models/CertificateCanvasVerificationQrElement.d.ts +69 -0
- package/dist/models/CertificateCanvasVerificationQrElement.js +77 -0
- package/dist/models/CertificateConfig.d.ts +27 -0
- package/dist/models/CertificateConfig.js +11 -0
- package/dist/models/CertificateEvent.d.ts +74 -0
- package/dist/models/CertificateEvent.js +68 -0
- package/dist/models/CertificateNotificationPolicy.d.ts +76 -0
- package/dist/models/CertificateNotificationPolicy.js +82 -0
- package/dist/models/CertificatePublic.d.ts +35 -0
- package/dist/models/CertificatePublic.js +23 -1
- package/dist/models/CertificateRenewalPolicy.d.ts +46 -0
- package/dist/models/CertificateRenewalPolicy.js +62 -0
- package/dist/models/CertificateTemplate.d.ts +121 -0
- package/dist/models/CertificateTemplate.js +105 -0
- package/dist/models/CertificateTemplateVersion.d.ts +85 -0
- package/dist/models/CertificateTemplateVersion.js +85 -0
- package/dist/models/EffectiveCertificateConfig.d.ts +56 -0
- package/dist/models/EffectiveCertificateConfig.js +36 -0
- package/dist/models/GetCertificateAssetUpload.d.ts +64 -0
- package/dist/models/GetCertificateAssetUpload.js +74 -0
- package/dist/models/GetCertificateEventList.d.ts +33 -0
- package/dist/models/GetCertificateEventList.js +51 -0
- package/dist/models/GetCertificateTemplateList.d.ts +33 -0
- package/dist/models/GetCertificateTemplateList.js +51 -0
- package/dist/models/GetPublicBadgeCredentialStatus200Response.d.ts +48 -0
- package/dist/models/GetPublicBadgeCredentialStatus200Response.js +64 -0
- package/dist/models/GetUserCourseListItemCertificate.d.ts +1 -0
- package/dist/models/GetUserCourseListItemCertificate.js +2 -1
- package/dist/models/PostCertificateAssetComplete.d.ts +32 -0
- package/dist/models/PostCertificateAssetComplete.js +50 -0
- package/dist/models/PostCertificateAssetUpload.d.ts +53 -0
- package/dist/models/PostCertificateAssetUpload.js +67 -0
- package/dist/models/PostCertificateConfig.d.ts +27 -0
- package/dist/models/PostCertificateConfig.js +11 -0
- package/dist/models/PostCertificateLifecycleAction.d.ts +38 -0
- package/dist/models/PostCertificateLifecycleAction.js +52 -0
- package/dist/models/PostCertificateTemplate.d.ts +51 -0
- package/dist/models/PostCertificateTemplate.js +57 -0
- package/dist/models/PostCertificateTemplateClone.d.ts +44 -0
- package/dist/models/PostCertificateTemplateClone.js +54 -0
- package/dist/models/PostCertificateTemplatePreview.d.ts +41 -0
- package/dist/models/PostCertificateTemplatePreview.js +53 -0
- package/dist/models/PutBadgeIssuer.d.ts +44 -0
- package/dist/models/PutBadgeIssuer.js +54 -0
- package/dist/models/PutCertificateConfig.d.ts +27 -0
- package/dist/models/PutCertificateConfig.js +11 -0
- package/dist/models/PutCertificateTemplate.d.ts +44 -0
- package/dist/models/PutCertificateTemplate.js +52 -0
- package/dist/models/PutCertificateTemplateDraft.d.ts +39 -0
- package/dist/models/PutCertificateTemplateDraft.js +53 -0
- package/dist/models/index.d.ts +32 -0
- package/dist/models/index.js +32 -0
- package/docs/ArtifactConflict.md +38 -0
- package/docs/BadgeIssuer.md +50 -0
- package/docs/Certificate.md +14 -0
- package/docs/CertificateApi.md +1119 -48
- package/docs/CertificateArtifact.md +44 -0
- package/docs/CertificateBadgePolicy.md +46 -0
- package/docs/CertificateBadgePolicyAlignmentsInner.md +40 -0
- package/docs/CertificateCanvasDocument.md +39 -0
- package/docs/CertificateCanvasDocumentPage.md +38 -0
- package/docs/CertificateCanvasElement.md +65 -0
- package/docs/CertificateCanvasImageElement.md +48 -0
- package/docs/CertificateCanvasLineElement.md +48 -0
- package/docs/CertificateCanvasPortalLogoElement.md +44 -0
- package/docs/CertificateCanvasShapeElement.md +50 -0
- package/docs/CertificateCanvasTextElement.md +54 -0
- package/docs/CertificateCanvasVerificationQrElement.md +44 -0
- package/docs/CertificateConfig.md +8 -0
- package/docs/CertificateEvent.md +46 -0
- package/docs/CertificateNotificationPolicy.md +46 -0
- package/docs/CertificatePublic.md +8 -0
- package/docs/CertificateRenewalPolicy.md +36 -0
- package/docs/CertificateTemplate.md +60 -0
- package/docs/CertificateTemplateApi.md +2493 -0
- package/docs/CertificateTemplateVersion.md +48 -0
- package/docs/EffectiveCertificateConfig.md +14 -0
- package/docs/GetCertificateAssetUpload.md +42 -0
- package/docs/GetCertificateEventList.md +34 -0
- package/docs/GetCertificateTemplateList.md +34 -0
- package/docs/GetPublicBadgeCredentialStatus200Response.md +36 -0
- package/docs/PostCertificateAssetComplete.md +34 -0
- package/docs/PostCertificateAssetUpload.md +38 -0
- package/docs/PostCertificateConfig.md +8 -0
- package/docs/PostCertificateLifecycleAction.md +36 -0
- package/docs/PostCertificateTemplate.md +40 -0
- package/docs/PostCertificateTemplateClone.md +38 -0
- package/docs/PostCertificateTemplatePreview.md +36 -0
- package/docs/PutBadgeIssuer.md +38 -0
- package/docs/PutCertificateConfig.md +8 -0
- package/docs/PutCertificateTemplate.md +38 -0
- package/docs/PutCertificateTemplateDraft.md +36 -0
- package/package.json +1 -1
- package/src/apis/CertificateApi.ts +952 -98
- package/src/apis/CertificateTemplateApi.ts +2020 -0
- package/src/apis/index.ts +1 -0
- package/src/models/ArtifactConflict.ts +95 -0
- package/src/models/BadgeIssuer.ts +135 -0
- package/src/models/Certificate.ts +79 -1
- package/src/models/CertificateArtifact.ts +119 -0
- package/src/models/CertificateBadgePolicy.ts +126 -0
- package/src/models/CertificateBadgePolicyAlignmentsInner.ts +91 -0
- package/src/models/CertificateCanvasDocument.ts +109 -0
- package/src/models/CertificateCanvasDocumentPage.ts +103 -0
- package/src/models/CertificateCanvasElement.ts +128 -0
- package/src/models/CertificateCanvasImageElement.ts +148 -0
- package/src/models/CertificateCanvasLineElement.ts +139 -0
- package/src/models/CertificateCanvasPortalLogoElement.ts +121 -0
- package/src/models/CertificateCanvasShapeElement.ts +148 -0
- package/src/models/CertificateCanvasTextElement.ts +183 -0
- package/src/models/CertificateCanvasVerificationQrElement.ts +121 -0
- package/src/models/CertificateConfig.ts +54 -0
- package/src/models/CertificateEvent.ts +117 -0
- package/src/models/CertificateNotificationPolicy.ts +131 -0
- package/src/models/CertificatePublic.ts +46 -0
- package/src/models/CertificateRenewalPolicy.ts +86 -0
- package/src/models/CertificateTemplate.ts +200 -0
- package/src/models/CertificateTemplateVersion.ts +148 -0
- package/src/models/EffectiveCertificateConfig.ts +96 -0
- package/src/models/GetCertificateAssetUpload.ts +113 -0
- package/src/models/GetCertificateEventList.ts +74 -0
- package/src/models/GetCertificateTemplateList.ts +74 -0
- package/src/models/GetPublicBadgeCredentialStatus200Response.ts +88 -0
- package/src/models/GetUserCourseListItemCertificate.ts +2 -1
- package/src/models/PostCertificateAssetComplete.ts +66 -0
- package/src/models/PostCertificateAssetUpload.ts +96 -0
- package/src/models/PostCertificateConfig.ts +54 -0
- package/src/models/PostCertificateLifecycleAction.ts +74 -0
- package/src/models/PostCertificateTemplate.ts +98 -0
- package/src/models/PostCertificateTemplateClone.ts +82 -0
- package/src/models/PostCertificateTemplatePreview.ts +82 -0
- package/src/models/PutBadgeIssuer.ts +82 -0
- package/src/models/PutCertificateConfig.ts +54 -0
- package/src/models/PutCertificateTemplate.ts +81 -0
- package/src/models/PutCertificateTemplateDraft.ts +82 -0
- package/src/models/index.ts +32 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const GetCertificateAssetUploadStatusEnum = {
|
|
18
|
+
Pending: 'pending',
|
|
19
|
+
Ready: 'ready'
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the GetCertificateAssetUpload interface.
|
|
23
|
+
*/
|
|
24
|
+
export function instanceOfGetCertificateAssetUpload(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('uploadUrl' in value) || value['uploadUrl'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('assetUrl' in value) || value['assetUrl'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('publicUrl' in value) || value['publicUrl'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
export function GetCertificateAssetUploadFromJSON(json) {
|
|
38
|
+
return GetCertificateAssetUploadFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function GetCertificateAssetUploadFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'id': json['id'],
|
|
46
|
+
'uploadUrl': json['upload_url'],
|
|
47
|
+
'assetUrl': json['asset_url'],
|
|
48
|
+
'publicUrl': json['public_url'],
|
|
49
|
+
'status': json['status'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export function GetCertificateAssetUploadToJSON(json) {
|
|
53
|
+
return GetCertificateAssetUploadToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
export function GetCertificateAssetUploadToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'id': value['id'],
|
|
61
|
+
'upload_url': value['uploadUrl'],
|
|
62
|
+
'asset_url': value['assetUrl'],
|
|
63
|
+
'public_url': value['publicUrl'],
|
|
64
|
+
'status': value['status'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
@@ -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 { CertificateEvent } from './CertificateEvent';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetCertificateEventList
|
|
17
|
+
*/
|
|
18
|
+
export interface GetCertificateEventList {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<CertificateEvent>}
|
|
22
|
+
* @memberof GetCertificateEventList
|
|
23
|
+
*/
|
|
24
|
+
items: Array<CertificateEvent>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the GetCertificateEventList interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfGetCertificateEventList(value: object): value is GetCertificateEventList;
|
|
30
|
+
export declare function GetCertificateEventListFromJSON(json: any): GetCertificateEventList;
|
|
31
|
+
export declare function GetCertificateEventListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCertificateEventList;
|
|
32
|
+
export declare function GetCertificateEventListToJSON(json: any): GetCertificateEventList;
|
|
33
|
+
export declare function GetCertificateEventListToJSONTyped(value?: GetCertificateEventList | 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 { CertificateEventFromJSON, CertificateEventToJSON, } from './CertificateEvent';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the GetCertificateEventList interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfGetCertificateEventList(value) {
|
|
19
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function GetCertificateEventListFromJSON(json) {
|
|
24
|
+
return GetCertificateEventListFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function GetCertificateEventListFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'items': (json['items'].map(CertificateEventFromJSON)),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function GetCertificateEventListToJSON(json) {
|
|
35
|
+
return GetCertificateEventListToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function GetCertificateEventListToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'items': (value['items'].map(CertificateEventToJSON)),
|
|
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 { CertificateTemplate } from './CertificateTemplate';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetCertificateTemplateList
|
|
17
|
+
*/
|
|
18
|
+
export interface GetCertificateTemplateList {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<CertificateTemplate>}
|
|
22
|
+
* @memberof GetCertificateTemplateList
|
|
23
|
+
*/
|
|
24
|
+
items: Array<CertificateTemplate>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the GetCertificateTemplateList interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfGetCertificateTemplateList(value: object): value is GetCertificateTemplateList;
|
|
30
|
+
export declare function GetCertificateTemplateListFromJSON(json: any): GetCertificateTemplateList;
|
|
31
|
+
export declare function GetCertificateTemplateListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCertificateTemplateList;
|
|
32
|
+
export declare function GetCertificateTemplateListToJSON(json: any): GetCertificateTemplateList;
|
|
33
|
+
export declare function GetCertificateTemplateListToJSONTyped(value?: GetCertificateTemplateList | 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 { CertificateTemplateFromJSON, CertificateTemplateToJSON, } from './CertificateTemplate';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the GetCertificateTemplateList interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfGetCertificateTemplateList(value) {
|
|
19
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function GetCertificateTemplateListFromJSON(json) {
|
|
24
|
+
return GetCertificateTemplateListFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function GetCertificateTemplateListFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'items': (json['items'].map(CertificateTemplateFromJSON)),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function GetCertificateTemplateListToJSON(json) {
|
|
35
|
+
return GetCertificateTemplateListToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function GetCertificateTemplateListToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'items': (value['items'].map(CertificateTemplateToJSON)),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
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 GetPublicBadgeCredentialStatus200Response
|
|
16
|
+
*/
|
|
17
|
+
export interface GetPublicBadgeCredentialStatus200Response {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof GetPublicBadgeCredentialStatus200Response
|
|
22
|
+
*/
|
|
23
|
+
active: boolean;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {GetPublicBadgeCredentialStatus200ResponseStatusEnum}
|
|
27
|
+
* @memberof GetPublicBadgeCredentialStatus200Response
|
|
28
|
+
*/
|
|
29
|
+
status: GetPublicBadgeCredentialStatus200ResponseStatusEnum;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const GetPublicBadgeCredentialStatus200ResponseStatusEnum: {
|
|
35
|
+
readonly Active: "active";
|
|
36
|
+
readonly Revoked: "revoked";
|
|
37
|
+
readonly Superseded: "superseded";
|
|
38
|
+
readonly Expired: "expired";
|
|
39
|
+
};
|
|
40
|
+
export type GetPublicBadgeCredentialStatus200ResponseStatusEnum = typeof GetPublicBadgeCredentialStatus200ResponseStatusEnum[keyof typeof GetPublicBadgeCredentialStatus200ResponseStatusEnum];
|
|
41
|
+
/**
|
|
42
|
+
* Check if a given object implements the GetPublicBadgeCredentialStatus200Response interface.
|
|
43
|
+
*/
|
|
44
|
+
export declare function instanceOfGetPublicBadgeCredentialStatus200Response(value: object): value is GetPublicBadgeCredentialStatus200Response;
|
|
45
|
+
export declare function GetPublicBadgeCredentialStatus200ResponseFromJSON(json: any): GetPublicBadgeCredentialStatus200Response;
|
|
46
|
+
export declare function GetPublicBadgeCredentialStatus200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPublicBadgeCredentialStatus200Response;
|
|
47
|
+
export declare function GetPublicBadgeCredentialStatus200ResponseToJSON(json: any): GetPublicBadgeCredentialStatus200Response;
|
|
48
|
+
export declare function GetPublicBadgeCredentialStatus200ResponseToJSONTyped(value?: GetPublicBadgeCredentialStatus200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const GetPublicBadgeCredentialStatus200ResponseStatusEnum = {
|
|
18
|
+
Active: 'active',
|
|
19
|
+
Revoked: 'revoked',
|
|
20
|
+
Superseded: 'superseded',
|
|
21
|
+
Expired: 'expired'
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the GetPublicBadgeCredentialStatus200Response interface.
|
|
25
|
+
*/
|
|
26
|
+
export function instanceOfGetPublicBadgeCredentialStatus200Response(value) {
|
|
27
|
+
if (!('active' in value) || value['active'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
export function GetPublicBadgeCredentialStatus200ResponseFromJSON(json) {
|
|
34
|
+
return GetPublicBadgeCredentialStatus200ResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function GetPublicBadgeCredentialStatus200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'active': json['active'],
|
|
42
|
+
'status': json['status'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export function GetPublicBadgeCredentialStatus200ResponseToJSON(json) {
|
|
46
|
+
return GetPublicBadgeCredentialStatus200ResponseToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
export function GetPublicBadgeCredentialStatus200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'active': value['active'],
|
|
54
|
+
'status': value['status'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -53,6 +53,7 @@ export declare const GetUserCourseListItemCertificateStatusEnum: {
|
|
|
53
53
|
readonly Active: "active";
|
|
54
54
|
readonly Expired: "expired";
|
|
55
55
|
readonly Revoked: "revoked";
|
|
56
|
+
readonly Superseded: "superseded";
|
|
56
57
|
};
|
|
57
58
|
export type GetUserCourseListItemCertificateStatusEnum = typeof GetUserCourseListItemCertificateStatusEnum[keyof typeof GetUserCourseListItemCertificateStatusEnum];
|
|
58
59
|
/**
|
|
@@ -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 PostCertificateAssetComplete
|
|
16
|
+
*/
|
|
17
|
+
export interface PostCertificateAssetComplete {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PostCertificateAssetComplete
|
|
22
|
+
*/
|
|
23
|
+
checksumSha256: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the PostCertificateAssetComplete interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfPostCertificateAssetComplete(value: object): value is PostCertificateAssetComplete;
|
|
29
|
+
export declare function PostCertificateAssetCompleteFromJSON(json: any): PostCertificateAssetComplete;
|
|
30
|
+
export declare function PostCertificateAssetCompleteFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostCertificateAssetComplete;
|
|
31
|
+
export declare function PostCertificateAssetCompleteToJSON(json: any): PostCertificateAssetComplete;
|
|
32
|
+
export declare function PostCertificateAssetCompleteToJSONTyped(value?: PostCertificateAssetComplete | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
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 PostCertificateAssetComplete interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPostCertificateAssetComplete(value) {
|
|
18
|
+
if (!('checksumSha256' in value) || value['checksumSha256'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function PostCertificateAssetCompleteFromJSON(json) {
|
|
23
|
+
return PostCertificateAssetCompleteFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function PostCertificateAssetCompleteFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'checksumSha256': json['checksum_sha256'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function PostCertificateAssetCompleteToJSON(json) {
|
|
34
|
+
return PostCertificateAssetCompleteToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function PostCertificateAssetCompleteToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'checksum_sha256': value['checksumSha256'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
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 PostCertificateAssetUpload
|
|
16
|
+
*/
|
|
17
|
+
export interface PostCertificateAssetUpload {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PostCertificateAssetUpload
|
|
22
|
+
*/
|
|
23
|
+
filename: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {PostCertificateAssetUploadContentTypeEnum}
|
|
27
|
+
* @memberof PostCertificateAssetUpload
|
|
28
|
+
*/
|
|
29
|
+
contentType: PostCertificateAssetUploadContentTypeEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof PostCertificateAssetUpload
|
|
34
|
+
*/
|
|
35
|
+
byteSize: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const PostCertificateAssetUploadContentTypeEnum: {
|
|
41
|
+
readonly ImagePng: "image/png";
|
|
42
|
+
readonly ImageJpeg: "image/jpeg";
|
|
43
|
+
readonly ImageWebp: "image/webp";
|
|
44
|
+
};
|
|
45
|
+
export type PostCertificateAssetUploadContentTypeEnum = typeof PostCertificateAssetUploadContentTypeEnum[keyof typeof PostCertificateAssetUploadContentTypeEnum];
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the PostCertificateAssetUpload interface.
|
|
48
|
+
*/
|
|
49
|
+
export declare function instanceOfPostCertificateAssetUpload(value: object): value is PostCertificateAssetUpload;
|
|
50
|
+
export declare function PostCertificateAssetUploadFromJSON(json: any): PostCertificateAssetUpload;
|
|
51
|
+
export declare function PostCertificateAssetUploadFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostCertificateAssetUpload;
|
|
52
|
+
export declare function PostCertificateAssetUploadToJSON(json: any): PostCertificateAssetUpload;
|
|
53
|
+
export declare function PostCertificateAssetUploadToJSONTyped(value?: PostCertificateAssetUpload | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const PostCertificateAssetUploadContentTypeEnum = {
|
|
18
|
+
ImagePng: 'image/png',
|
|
19
|
+
ImageJpeg: 'image/jpeg',
|
|
20
|
+
ImageWebp: 'image/webp'
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the PostCertificateAssetUpload interface.
|
|
24
|
+
*/
|
|
25
|
+
export function instanceOfPostCertificateAssetUpload(value) {
|
|
26
|
+
if (!('filename' in value) || value['filename'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('contentType' in value) || value['contentType'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('byteSize' in value) || value['byteSize'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
export function PostCertificateAssetUploadFromJSON(json) {
|
|
35
|
+
return PostCertificateAssetUploadFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function PostCertificateAssetUploadFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'filename': json['filename'],
|
|
43
|
+
'contentType': json['content_type'],
|
|
44
|
+
'byteSize': json['byte_size'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
export function PostCertificateAssetUploadToJSON(json) {
|
|
48
|
+
return PostCertificateAssetUploadToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
export function PostCertificateAssetUploadToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'filename': value['filename'],
|
|
56
|
+
'content_type': value['contentType'],
|
|
57
|
+
'byte_size': value['byteSize'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -9,6 +9,9 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { CertificateNotificationPolicy } from './CertificateNotificationPolicy';
|
|
13
|
+
import type { CertificateRenewalPolicy } from './CertificateRenewalPolicy';
|
|
14
|
+
import type { CertificateBadgePolicy } from './CertificateBadgePolicy';
|
|
12
15
|
/**
|
|
13
16
|
*
|
|
14
17
|
* @export
|
|
@@ -51,6 +54,30 @@ export interface PostCertificateConfig {
|
|
|
51
54
|
* @memberof PostCertificateConfig
|
|
52
55
|
*/
|
|
53
56
|
quizConfigId?: string | null;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof PostCertificateConfig
|
|
61
|
+
*/
|
|
62
|
+
certificateTemplateId?: string | null;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {CertificateRenewalPolicy}
|
|
66
|
+
* @memberof PostCertificateConfig
|
|
67
|
+
*/
|
|
68
|
+
renewalPolicy?: CertificateRenewalPolicy | null;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {CertificateNotificationPolicy}
|
|
72
|
+
* @memberof PostCertificateConfig
|
|
73
|
+
*/
|
|
74
|
+
notificationPolicy?: CertificateNotificationPolicy | null;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {CertificateBadgePolicy}
|
|
78
|
+
* @memberof PostCertificateConfig
|
|
79
|
+
*/
|
|
80
|
+
badgePolicy?: CertificateBadgePolicy | null;
|
|
54
81
|
}
|
|
55
82
|
/**
|
|
56
83
|
* Check if a given object implements the PostCertificateConfig interface.
|
|
@@ -11,6 +11,9 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { CertificateNotificationPolicyFromJSON, CertificateNotificationPolicyToJSON, } from './CertificateNotificationPolicy';
|
|
15
|
+
import { CertificateRenewalPolicyFromJSON, CertificateRenewalPolicyToJSON, } from './CertificateRenewalPolicy';
|
|
16
|
+
import { CertificateBadgePolicyFromJSON, CertificateBadgePolicyToJSON, } from './CertificateBadgePolicy';
|
|
14
17
|
/**
|
|
15
18
|
* Check if a given object implements the PostCertificateConfig interface.
|
|
16
19
|
*/
|
|
@@ -33,6 +36,10 @@ export function PostCertificateConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
36
|
'requireQuizPass': json['require_quiz_pass'] == null ? undefined : json['require_quiz_pass'],
|
|
34
37
|
'minQuizScore': json['min_quiz_score'] == null ? undefined : json['min_quiz_score'],
|
|
35
38
|
'quizConfigId': json['quiz_config_id'] == null ? undefined : json['quiz_config_id'],
|
|
39
|
+
'certificateTemplateId': json['certificate_template_id'] == null ? undefined : json['certificate_template_id'],
|
|
40
|
+
'renewalPolicy': json['renewal_policy'] == null ? undefined : CertificateRenewalPolicyFromJSON(json['renewal_policy']),
|
|
41
|
+
'notificationPolicy': json['notification_policy'] == null ? undefined : CertificateNotificationPolicyFromJSON(json['notification_policy']),
|
|
42
|
+
'badgePolicy': json['badge_policy'] == null ? undefined : CertificateBadgePolicyFromJSON(json['badge_policy']),
|
|
36
43
|
};
|
|
37
44
|
}
|
|
38
45
|
export function PostCertificateConfigToJSON(json) {
|
|
@@ -49,5 +56,9 @@ export function PostCertificateConfigToJSONTyped(value, ignoreDiscriminator = fa
|
|
|
49
56
|
'require_quiz_pass': value['requireQuizPass'],
|
|
50
57
|
'min_quiz_score': value['minQuizScore'],
|
|
51
58
|
'quiz_config_id': value['quizConfigId'],
|
|
59
|
+
'certificate_template_id': value['certificateTemplateId'],
|
|
60
|
+
'renewal_policy': CertificateRenewalPolicyToJSON(value['renewalPolicy']),
|
|
61
|
+
'notification_policy': CertificateNotificationPolicyToJSON(value['notificationPolicy']),
|
|
62
|
+
'badge_policy': CertificateBadgePolicyToJSON(value['badgePolicy']),
|
|
52
63
|
};
|
|
53
64
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 PostCertificateLifecycleAction
|
|
16
|
+
*/
|
|
17
|
+
export interface PostCertificateLifecycleAction {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PostCertificateLifecycleAction
|
|
22
|
+
*/
|
|
23
|
+
reason: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof PostCertificateLifecycleAction
|
|
28
|
+
*/
|
|
29
|
+
expiresAt?: number | null;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the PostCertificateLifecycleAction interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfPostCertificateLifecycleAction(value: object): value is PostCertificateLifecycleAction;
|
|
35
|
+
export declare function PostCertificateLifecycleActionFromJSON(json: any): PostCertificateLifecycleAction;
|
|
36
|
+
export declare function PostCertificateLifecycleActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostCertificateLifecycleAction;
|
|
37
|
+
export declare function PostCertificateLifecycleActionToJSON(json: any): PostCertificateLifecycleAction;
|
|
38
|
+
export declare function PostCertificateLifecycleActionToJSONTyped(value?: PostCertificateLifecycleAction | null, ignoreDiscriminator?: boolean): any;
|