@easyedu/js-lsm-api 1.86.0 → 1.88.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 +39 -0
- package/dist/esm/models/CertificateCanvasElement.js +67 -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 +39 -0
- package/dist/models/CertificateCanvasElement.js +73 -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 +116 -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,45 @@
|
|
|
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 PostCertificateLifecycleAction interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPostCertificateLifecycleAction(value) {
|
|
18
|
+
if (!('reason' in value) || value['reason'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function PostCertificateLifecycleActionFromJSON(json) {
|
|
23
|
+
return PostCertificateLifecycleActionFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function PostCertificateLifecycleActionFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'reason': json['reason'],
|
|
31
|
+
'expiresAt': json['expires_at'] == null ? undefined : json['expires_at'],
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function PostCertificateLifecycleActionToJSON(json) {
|
|
35
|
+
return PostCertificateLifecycleActionToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function PostCertificateLifecycleActionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'reason': value['reason'],
|
|
43
|
+
'expires_at': value['expiresAt'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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 { CertificateCanvasDocument } from './CertificateCanvasDocument';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PostCertificateTemplate
|
|
17
|
+
*/
|
|
18
|
+
export interface PostCertificateTemplate {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof PostCertificateTemplate
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof PostCertificateTemplate
|
|
29
|
+
*/
|
|
30
|
+
description?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {boolean}
|
|
34
|
+
* @memberof PostCertificateTemplate
|
|
35
|
+
*/
|
|
36
|
+
isDefault?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {CertificateCanvasDocument}
|
|
40
|
+
* @memberof PostCertificateTemplate
|
|
41
|
+
*/
|
|
42
|
+
designDocument?: CertificateCanvasDocument;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the PostCertificateTemplate interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfPostCertificateTemplate(value: object): value is PostCertificateTemplate;
|
|
48
|
+
export declare function PostCertificateTemplateFromJSON(json: any): PostCertificateTemplate;
|
|
49
|
+
export declare function PostCertificateTemplateFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostCertificateTemplate;
|
|
50
|
+
export declare function PostCertificateTemplateToJSON(json: any): PostCertificateTemplate;
|
|
51
|
+
export declare function PostCertificateTemplateToJSONTyped(value?: PostCertificateTemplate | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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 { CertificateCanvasDocumentFromJSON, CertificateCanvasDocumentToJSON, } from './CertificateCanvasDocument';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the PostCertificateTemplate interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfPostCertificateTemplate(value) {
|
|
19
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function PostCertificateTemplateFromJSON(json) {
|
|
24
|
+
return PostCertificateTemplateFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function PostCertificateTemplateFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'name': json['name'],
|
|
32
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
33
|
+
'isDefault': json['is_default'] == null ? undefined : json['is_default'],
|
|
34
|
+
'designDocument': json['design_document'] == null ? undefined : CertificateCanvasDocumentFromJSON(json['design_document']),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function PostCertificateTemplateToJSON(json) {
|
|
38
|
+
return PostCertificateTemplateToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function PostCertificateTemplateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'name': value['name'],
|
|
46
|
+
'description': value['description'],
|
|
47
|
+
'is_default': value['isDefault'],
|
|
48
|
+
'design_document': CertificateCanvasDocumentToJSON(value['designDocument']),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 PostCertificateTemplateClone
|
|
16
|
+
*/
|
|
17
|
+
export interface PostCertificateTemplateClone {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PostCertificateTemplateClone
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PostCertificateTemplateClone
|
|
28
|
+
*/
|
|
29
|
+
description?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof PostCertificateTemplateClone
|
|
34
|
+
*/
|
|
35
|
+
isDefault?: boolean;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the PostCertificateTemplateClone interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfPostCertificateTemplateClone(value: object): value is PostCertificateTemplateClone;
|
|
41
|
+
export declare function PostCertificateTemplateCloneFromJSON(json: any): PostCertificateTemplateClone;
|
|
42
|
+
export declare function PostCertificateTemplateCloneFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostCertificateTemplateClone;
|
|
43
|
+
export declare function PostCertificateTemplateCloneToJSON(json: any): PostCertificateTemplateClone;
|
|
44
|
+
export declare function PostCertificateTemplateCloneToJSONTyped(value?: PostCertificateTemplateClone | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
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 PostCertificateTemplateClone interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPostCertificateTemplateClone(value) {
|
|
18
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function PostCertificateTemplateCloneFromJSON(json) {
|
|
23
|
+
return PostCertificateTemplateCloneFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function PostCertificateTemplateCloneFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'name': json['name'],
|
|
31
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
32
|
+
'isDefault': json['is_default'] == null ? undefined : json['is_default'],
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export function PostCertificateTemplateCloneToJSON(json) {
|
|
36
|
+
return PostCertificateTemplateCloneToJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
export function PostCertificateTemplateCloneToJSONTyped(value, ignoreDiscriminator = false) {
|
|
39
|
+
if (value == null) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'name': value['name'],
|
|
44
|
+
'description': value['description'],
|
|
45
|
+
'is_default': value['isDefault'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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 { CertificateCanvasDocument } from './CertificateCanvasDocument';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PostCertificateTemplatePreview
|
|
17
|
+
*/
|
|
18
|
+
export interface PostCertificateTemplatePreview {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {CertificateCanvasDocument}
|
|
22
|
+
* @memberof PostCertificateTemplatePreview
|
|
23
|
+
*/
|
|
24
|
+
designDocument: CertificateCanvasDocument;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {{ [key: string]: any; }}
|
|
28
|
+
* @memberof PostCertificateTemplatePreview
|
|
29
|
+
*/
|
|
30
|
+
sampleValues?: {
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Check if a given object implements the PostCertificateTemplatePreview interface.
|
|
36
|
+
*/
|
|
37
|
+
export declare function instanceOfPostCertificateTemplatePreview(value: object): value is PostCertificateTemplatePreview;
|
|
38
|
+
export declare function PostCertificateTemplatePreviewFromJSON(json: any): PostCertificateTemplatePreview;
|
|
39
|
+
export declare function PostCertificateTemplatePreviewFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostCertificateTemplatePreview;
|
|
40
|
+
export declare function PostCertificateTemplatePreviewToJSON(json: any): PostCertificateTemplatePreview;
|
|
41
|
+
export declare function PostCertificateTemplatePreviewToJSONTyped(value?: PostCertificateTemplatePreview | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,46 @@
|
|
|
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 { CertificateCanvasDocumentFromJSON, CertificateCanvasDocumentToJSON, } from './CertificateCanvasDocument';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the PostCertificateTemplatePreview interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfPostCertificateTemplatePreview(value) {
|
|
19
|
+
if (!('designDocument' in value) || value['designDocument'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function PostCertificateTemplatePreviewFromJSON(json) {
|
|
24
|
+
return PostCertificateTemplatePreviewFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function PostCertificateTemplatePreviewFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'designDocument': CertificateCanvasDocumentFromJSON(json['design_document']),
|
|
32
|
+
'sampleValues': json['sample_values'] == null ? undefined : json['sample_values'],
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export function PostCertificateTemplatePreviewToJSON(json) {
|
|
36
|
+
return PostCertificateTemplatePreviewToJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
export function PostCertificateTemplatePreviewToJSONTyped(value, ignoreDiscriminator = false) {
|
|
39
|
+
if (value == null) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'design_document': CertificateCanvasDocumentToJSON(value['designDocument']),
|
|
44
|
+
'sample_values': value['sampleValues'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 PutBadgeIssuer
|
|
16
|
+
*/
|
|
17
|
+
export interface PutBadgeIssuer {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PutBadgeIssuer
|
|
22
|
+
*/
|
|
23
|
+
displayName: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PutBadgeIssuer
|
|
28
|
+
*/
|
|
29
|
+
description?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PutBadgeIssuer
|
|
34
|
+
*/
|
|
35
|
+
websiteUrl?: string | null;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the PutBadgeIssuer interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfPutBadgeIssuer(value: object): value is PutBadgeIssuer;
|
|
41
|
+
export declare function PutBadgeIssuerFromJSON(json: any): PutBadgeIssuer;
|
|
42
|
+
export declare function PutBadgeIssuerFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutBadgeIssuer;
|
|
43
|
+
export declare function PutBadgeIssuerToJSON(json: any): PutBadgeIssuer;
|
|
44
|
+
export declare function PutBadgeIssuerToJSONTyped(value?: PutBadgeIssuer | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
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 PutBadgeIssuer interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPutBadgeIssuer(value) {
|
|
18
|
+
if (!('displayName' in value) || value['displayName'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function PutBadgeIssuerFromJSON(json) {
|
|
23
|
+
return PutBadgeIssuerFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function PutBadgeIssuerFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'displayName': json['display_name'],
|
|
31
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
32
|
+
'websiteUrl': json['website_url'] == null ? undefined : json['website_url'],
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export function PutBadgeIssuerToJSON(json) {
|
|
36
|
+
return PutBadgeIssuerToJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
export function PutBadgeIssuerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
39
|
+
if (value == null) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'display_name': value['displayName'],
|
|
44
|
+
'description': value['description'],
|
|
45
|
+
'website_url': value['websiteUrl'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -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
|
|
@@ -45,6 +48,30 @@ export interface PutCertificateConfig {
|
|
|
45
48
|
* @memberof PutCertificateConfig
|
|
46
49
|
*/
|
|
47
50
|
quizConfigId?: string | null;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof PutCertificateConfig
|
|
55
|
+
*/
|
|
56
|
+
certificateTemplateId?: string | null;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {CertificateRenewalPolicy}
|
|
60
|
+
* @memberof PutCertificateConfig
|
|
61
|
+
*/
|
|
62
|
+
renewalPolicy?: CertificateRenewalPolicy | null;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {CertificateNotificationPolicy}
|
|
66
|
+
* @memberof PutCertificateConfig
|
|
67
|
+
*/
|
|
68
|
+
notificationPolicy?: CertificateNotificationPolicy | null;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {CertificateBadgePolicy}
|
|
72
|
+
* @memberof PutCertificateConfig
|
|
73
|
+
*/
|
|
74
|
+
badgePolicy?: CertificateBadgePolicy | null;
|
|
48
75
|
}
|
|
49
76
|
/**
|
|
50
77
|
* Check if a given object implements the PutCertificateConfig 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 PutCertificateConfig interface.
|
|
16
19
|
*/
|
|
@@ -30,6 +33,10 @@ export function PutCertificateConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
30
33
|
'requireQuizPass': json['require_quiz_pass'] == null ? undefined : json['require_quiz_pass'],
|
|
31
34
|
'minQuizScore': json['min_quiz_score'] == null ? undefined : json['min_quiz_score'],
|
|
32
35
|
'quizConfigId': json['quiz_config_id'] == null ? undefined : json['quiz_config_id'],
|
|
36
|
+
'certificateTemplateId': json['certificate_template_id'] == null ? undefined : json['certificate_template_id'],
|
|
37
|
+
'renewalPolicy': json['renewal_policy'] == null ? undefined : CertificateRenewalPolicyFromJSON(json['renewal_policy']),
|
|
38
|
+
'notificationPolicy': json['notification_policy'] == null ? undefined : CertificateNotificationPolicyFromJSON(json['notification_policy']),
|
|
39
|
+
'badgePolicy': json['badge_policy'] == null ? undefined : CertificateBadgePolicyFromJSON(json['badge_policy']),
|
|
33
40
|
};
|
|
34
41
|
}
|
|
35
42
|
export function PutCertificateConfigToJSON(json) {
|
|
@@ -45,5 +52,9 @@ export function PutCertificateConfigToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
45
52
|
'require_quiz_pass': value['requireQuizPass'],
|
|
46
53
|
'min_quiz_score': value['minQuizScore'],
|
|
47
54
|
'quiz_config_id': value['quizConfigId'],
|
|
55
|
+
'certificate_template_id': value['certificateTemplateId'],
|
|
56
|
+
'renewal_policy': CertificateRenewalPolicyToJSON(value['renewalPolicy']),
|
|
57
|
+
'notification_policy': CertificateNotificationPolicyToJSON(value['notificationPolicy']),
|
|
58
|
+
'badge_policy': CertificateBadgePolicyToJSON(value['badgePolicy']),
|
|
48
59
|
};
|
|
49
60
|
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 PutCertificateTemplate
|
|
16
|
+
*/
|
|
17
|
+
export interface PutCertificateTemplate {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PutCertificateTemplate
|
|
22
|
+
*/
|
|
23
|
+
name?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PutCertificateTemplate
|
|
28
|
+
*/
|
|
29
|
+
description?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof PutCertificateTemplate
|
|
34
|
+
*/
|
|
35
|
+
isDefault?: boolean;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the PutCertificateTemplate interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfPutCertificateTemplate(value: object): value is PutCertificateTemplate;
|
|
41
|
+
export declare function PutCertificateTemplateFromJSON(json: any): PutCertificateTemplate;
|
|
42
|
+
export declare function PutCertificateTemplateFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutCertificateTemplate;
|
|
43
|
+
export declare function PutCertificateTemplateToJSON(json: any): PutCertificateTemplate;
|
|
44
|
+
export declare function PutCertificateTemplateToJSONTyped(value?: PutCertificateTemplate | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,45 @@
|
|
|
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 PutCertificateTemplate interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPutCertificateTemplate(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function PutCertificateTemplateFromJSON(json) {
|
|
21
|
+
return PutCertificateTemplateFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function PutCertificateTemplateFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
29
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
30
|
+
'isDefault': json['is_default'] == null ? undefined : json['is_default'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function PutCertificateTemplateToJSON(json) {
|
|
34
|
+
return PutCertificateTemplateToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function PutCertificateTemplateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'name': value['name'],
|
|
42
|
+
'description': value['description'],
|
|
43
|
+
'is_default': value['isDefault'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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 { CertificateCanvasDocument } from './CertificateCanvasDocument';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PutCertificateTemplateDraft
|
|
17
|
+
*/
|
|
18
|
+
export interface PutCertificateTemplateDraft {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {CertificateCanvasDocument}
|
|
22
|
+
* @memberof PutCertificateTemplateDraft
|
|
23
|
+
*/
|
|
24
|
+
designDocument: CertificateCanvasDocument;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof PutCertificateTemplateDraft
|
|
29
|
+
*/
|
|
30
|
+
changeNotes?: string | null;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the PutCertificateTemplateDraft interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfPutCertificateTemplateDraft(value: object): value is PutCertificateTemplateDraft;
|
|
36
|
+
export declare function PutCertificateTemplateDraftFromJSON(json: any): PutCertificateTemplateDraft;
|
|
37
|
+
export declare function PutCertificateTemplateDraftFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutCertificateTemplateDraft;
|
|
38
|
+
export declare function PutCertificateTemplateDraftToJSON(json: any): PutCertificateTemplateDraft;
|
|
39
|
+
export declare function PutCertificateTemplateDraftToJSONTyped(value?: PutCertificateTemplateDraft | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,46 @@
|
|
|
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 { CertificateCanvasDocumentFromJSON, CertificateCanvasDocumentToJSON, } from './CertificateCanvasDocument';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the PutCertificateTemplateDraft interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfPutCertificateTemplateDraft(value) {
|
|
19
|
+
if (!('designDocument' in value) || value['designDocument'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function PutCertificateTemplateDraftFromJSON(json) {
|
|
24
|
+
return PutCertificateTemplateDraftFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function PutCertificateTemplateDraftFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'designDocument': CertificateCanvasDocumentFromJSON(json['design_document']),
|
|
32
|
+
'changeNotes': json['change_notes'] == null ? undefined : json['change_notes'],
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export function PutCertificateTemplateDraftToJSON(json) {
|
|
36
|
+
return PutCertificateTemplateDraftToJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
export function PutCertificateTemplateDraftToJSONTyped(value, ignoreDiscriminator = false) {
|
|
39
|
+
if (value == null) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'design_document': CertificateCanvasDocumentToJSON(value['designDocument']),
|
|
44
|
+
'change_notes': value['changeNotes'],
|
|
45
|
+
};
|
|
46
|
+
}
|