@easyedu/js-lsm-api 1.85.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/EmailTemplateApi.js +2 -2
- 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/EmailTemplateApi.js +2 -2
- 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/EmailTemplateApi.md +2 -2
- 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/EmailTemplateApi.ts +2 -2
- 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,81 @@
|
|
|
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 CertificateCanvasLineElement
|
|
16
|
+
*/
|
|
17
|
+
export interface CertificateCanvasLineElement {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CertificateCanvasLineElement
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {CertificateCanvasLineElementTypeEnum}
|
|
27
|
+
* @memberof CertificateCanvasLineElement
|
|
28
|
+
*/
|
|
29
|
+
type: CertificateCanvasLineElementTypeEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof CertificateCanvasLineElement
|
|
34
|
+
*/
|
|
35
|
+
x: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof CertificateCanvasLineElement
|
|
40
|
+
*/
|
|
41
|
+
y: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof CertificateCanvasLineElement
|
|
46
|
+
*/
|
|
47
|
+
width: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof CertificateCanvasLineElement
|
|
52
|
+
*/
|
|
53
|
+
height: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof CertificateCanvasLineElement
|
|
58
|
+
*/
|
|
59
|
+
color: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof CertificateCanvasLineElement
|
|
64
|
+
*/
|
|
65
|
+
strokeWidth: number;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* @export
|
|
69
|
+
*/
|
|
70
|
+
export declare const CertificateCanvasLineElementTypeEnum: {
|
|
71
|
+
readonly Line: "line";
|
|
72
|
+
};
|
|
73
|
+
export type CertificateCanvasLineElementTypeEnum = typeof CertificateCanvasLineElementTypeEnum[keyof typeof CertificateCanvasLineElementTypeEnum];
|
|
74
|
+
/**
|
|
75
|
+
* Check if a given object implements the CertificateCanvasLineElement interface.
|
|
76
|
+
*/
|
|
77
|
+
export declare function instanceOfCertificateCanvasLineElement(value: object): value is CertificateCanvasLineElement;
|
|
78
|
+
export declare function CertificateCanvasLineElementFromJSON(json: any): CertificateCanvasLineElement;
|
|
79
|
+
export declare function CertificateCanvasLineElementFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificateCanvasLineElement;
|
|
80
|
+
export declare function CertificateCanvasLineElementToJSON(json: any): CertificateCanvasLineElement;
|
|
81
|
+
export declare function CertificateCanvasLineElementToJSONTyped(value?: CertificateCanvasLineElement | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,77 @@
|
|
|
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 CertificateCanvasLineElementTypeEnum = {
|
|
18
|
+
Line: 'line'
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the CertificateCanvasLineElement interface.
|
|
22
|
+
*/
|
|
23
|
+
export function instanceOfCertificateCanvasLineElement(value) {
|
|
24
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('x' in value) || value['x'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('y' in value) || value['y'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('width' in value) || value['width'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('height' in value) || value['height'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('color' in value) || value['color'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('strokeWidth' in value) || value['strokeWidth'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
export function CertificateCanvasLineElementFromJSON(json) {
|
|
43
|
+
return CertificateCanvasLineElementFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function CertificateCanvasLineElementFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'id': json['id'],
|
|
51
|
+
'type': json['type'],
|
|
52
|
+
'x': json['x'],
|
|
53
|
+
'y': json['y'],
|
|
54
|
+
'width': json['width'],
|
|
55
|
+
'height': json['height'],
|
|
56
|
+
'color': json['color'],
|
|
57
|
+
'strokeWidth': json['stroke_width'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
export function CertificateCanvasLineElementToJSON(json) {
|
|
61
|
+
return CertificateCanvasLineElementToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
export function CertificateCanvasLineElementToJSONTyped(value, ignoreDiscriminator = false) {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
'id': value['id'],
|
|
69
|
+
'type': value['type'],
|
|
70
|
+
'x': value['x'],
|
|
71
|
+
'y': value['y'],
|
|
72
|
+
'width': value['width'],
|
|
73
|
+
'height': value['height'],
|
|
74
|
+
'color': value['color'],
|
|
75
|
+
'stroke_width': value['strokeWidth'],
|
|
76
|
+
};
|
|
77
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
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 CertificateCanvasPortalLogoElement
|
|
16
|
+
*/
|
|
17
|
+
export interface CertificateCanvasPortalLogoElement {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CertificateCanvasPortalLogoElement
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {CertificateCanvasPortalLogoElementTypeEnum}
|
|
27
|
+
* @memberof CertificateCanvasPortalLogoElement
|
|
28
|
+
*/
|
|
29
|
+
type: CertificateCanvasPortalLogoElementTypeEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof CertificateCanvasPortalLogoElement
|
|
34
|
+
*/
|
|
35
|
+
x: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof CertificateCanvasPortalLogoElement
|
|
40
|
+
*/
|
|
41
|
+
y: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof CertificateCanvasPortalLogoElement
|
|
46
|
+
*/
|
|
47
|
+
width: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof CertificateCanvasPortalLogoElement
|
|
52
|
+
*/
|
|
53
|
+
height: number;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export declare const CertificateCanvasPortalLogoElementTypeEnum: {
|
|
59
|
+
readonly PortalLogo: "portal_logo";
|
|
60
|
+
};
|
|
61
|
+
export type CertificateCanvasPortalLogoElementTypeEnum = typeof CertificateCanvasPortalLogoElementTypeEnum[keyof typeof CertificateCanvasPortalLogoElementTypeEnum];
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the CertificateCanvasPortalLogoElement interface.
|
|
64
|
+
*/
|
|
65
|
+
export declare function instanceOfCertificateCanvasPortalLogoElement(value: object): value is CertificateCanvasPortalLogoElement;
|
|
66
|
+
export declare function CertificateCanvasPortalLogoElementFromJSON(json: any): CertificateCanvasPortalLogoElement;
|
|
67
|
+
export declare function CertificateCanvasPortalLogoElementFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificateCanvasPortalLogoElement;
|
|
68
|
+
export declare function CertificateCanvasPortalLogoElementToJSON(json: any): CertificateCanvasPortalLogoElement;
|
|
69
|
+
export declare function CertificateCanvasPortalLogoElementToJSONTyped(value?: CertificateCanvasPortalLogoElement | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,69 @@
|
|
|
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 CertificateCanvasPortalLogoElementTypeEnum = {
|
|
18
|
+
PortalLogo: 'portal_logo'
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the CertificateCanvasPortalLogoElement interface.
|
|
22
|
+
*/
|
|
23
|
+
export function instanceOfCertificateCanvasPortalLogoElement(value) {
|
|
24
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('x' in value) || value['x'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('y' in value) || value['y'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('width' in value) || value['width'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('height' in value) || value['height'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
export function CertificateCanvasPortalLogoElementFromJSON(json) {
|
|
39
|
+
return CertificateCanvasPortalLogoElementFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function CertificateCanvasPortalLogoElementFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'id': json['id'],
|
|
47
|
+
'type': json['type'],
|
|
48
|
+
'x': json['x'],
|
|
49
|
+
'y': json['y'],
|
|
50
|
+
'width': json['width'],
|
|
51
|
+
'height': json['height'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
export function CertificateCanvasPortalLogoElementToJSON(json) {
|
|
55
|
+
return CertificateCanvasPortalLogoElementToJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
export function CertificateCanvasPortalLogoElementToJSONTyped(value, ignoreDiscriminator = false) {
|
|
58
|
+
if (value == null) {
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'id': value['id'],
|
|
63
|
+
'type': value['type'],
|
|
64
|
+
'x': value['x'],
|
|
65
|
+
'y': value['y'],
|
|
66
|
+
'width': value['width'],
|
|
67
|
+
'height': value['height'],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
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 CertificateCanvasShapeElement
|
|
16
|
+
*/
|
|
17
|
+
export interface CertificateCanvasShapeElement {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CertificateCanvasShapeElement
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {CertificateCanvasShapeElementTypeEnum}
|
|
27
|
+
* @memberof CertificateCanvasShapeElement
|
|
28
|
+
*/
|
|
29
|
+
type: CertificateCanvasShapeElementTypeEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof CertificateCanvasShapeElement
|
|
34
|
+
*/
|
|
35
|
+
x: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof CertificateCanvasShapeElement
|
|
40
|
+
*/
|
|
41
|
+
y: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof CertificateCanvasShapeElement
|
|
46
|
+
*/
|
|
47
|
+
width: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof CertificateCanvasShapeElement
|
|
52
|
+
*/
|
|
53
|
+
height: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof CertificateCanvasShapeElement
|
|
58
|
+
*/
|
|
59
|
+
fillColor: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof CertificateCanvasShapeElement
|
|
64
|
+
*/
|
|
65
|
+
strokeColor: string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof CertificateCanvasShapeElement
|
|
70
|
+
*/
|
|
71
|
+
strokeWidth: number;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* @export
|
|
75
|
+
*/
|
|
76
|
+
export declare const CertificateCanvasShapeElementTypeEnum: {
|
|
77
|
+
readonly Shape: "shape";
|
|
78
|
+
};
|
|
79
|
+
export type CertificateCanvasShapeElementTypeEnum = typeof CertificateCanvasShapeElementTypeEnum[keyof typeof CertificateCanvasShapeElementTypeEnum];
|
|
80
|
+
/**
|
|
81
|
+
* Check if a given object implements the CertificateCanvasShapeElement interface.
|
|
82
|
+
*/
|
|
83
|
+
export declare function instanceOfCertificateCanvasShapeElement(value: object): value is CertificateCanvasShapeElement;
|
|
84
|
+
export declare function CertificateCanvasShapeElementFromJSON(json: any): CertificateCanvasShapeElement;
|
|
85
|
+
export declare function CertificateCanvasShapeElementFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificateCanvasShapeElement;
|
|
86
|
+
export declare function CertificateCanvasShapeElementToJSON(json: any): CertificateCanvasShapeElement;
|
|
87
|
+
export declare function CertificateCanvasShapeElementToJSONTyped(value?: CertificateCanvasShapeElement | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,81 @@
|
|
|
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 CertificateCanvasShapeElementTypeEnum = {
|
|
18
|
+
Shape: 'shape'
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the CertificateCanvasShapeElement interface.
|
|
22
|
+
*/
|
|
23
|
+
export function instanceOfCertificateCanvasShapeElement(value) {
|
|
24
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('x' in value) || value['x'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('y' in value) || value['y'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('width' in value) || value['width'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('height' in value) || value['height'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('fillColor' in value) || value['fillColor'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('strokeColor' in value) || value['strokeColor'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('strokeWidth' in value) || value['strokeWidth'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
export function CertificateCanvasShapeElementFromJSON(json) {
|
|
45
|
+
return CertificateCanvasShapeElementFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
export function CertificateCanvasShapeElementFromJSONTyped(json, ignoreDiscriminator) {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'id': json['id'],
|
|
53
|
+
'type': json['type'],
|
|
54
|
+
'x': json['x'],
|
|
55
|
+
'y': json['y'],
|
|
56
|
+
'width': json['width'],
|
|
57
|
+
'height': json['height'],
|
|
58
|
+
'fillColor': json['fill_color'],
|
|
59
|
+
'strokeColor': json['stroke_color'],
|
|
60
|
+
'strokeWidth': json['stroke_width'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
export function CertificateCanvasShapeElementToJSON(json) {
|
|
64
|
+
return CertificateCanvasShapeElementToJSONTyped(json, false);
|
|
65
|
+
}
|
|
66
|
+
export function CertificateCanvasShapeElementToJSONTyped(value, ignoreDiscriminator = false) {
|
|
67
|
+
if (value == null) {
|
|
68
|
+
return value;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
'id': value['id'],
|
|
72
|
+
'type': value['type'],
|
|
73
|
+
'x': value['x'],
|
|
74
|
+
'y': value['y'],
|
|
75
|
+
'width': value['width'],
|
|
76
|
+
'height': value['height'],
|
|
77
|
+
'fill_color': value['fillColor'],
|
|
78
|
+
'stroke_color': value['strokeColor'],
|
|
79
|
+
'stroke_width': value['strokeWidth'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
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 CertificateCanvasTextElement
|
|
16
|
+
*/
|
|
17
|
+
export interface CertificateCanvasTextElement {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CertificateCanvasTextElement
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {CertificateCanvasTextElementTypeEnum}
|
|
27
|
+
* @memberof CertificateCanvasTextElement
|
|
28
|
+
*/
|
|
29
|
+
type: CertificateCanvasTextElementTypeEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof CertificateCanvasTextElement
|
|
34
|
+
*/
|
|
35
|
+
x: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof CertificateCanvasTextElement
|
|
40
|
+
*/
|
|
41
|
+
y: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof CertificateCanvasTextElement
|
|
46
|
+
*/
|
|
47
|
+
width: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof CertificateCanvasTextElement
|
|
52
|
+
*/
|
|
53
|
+
height: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof CertificateCanvasTextElement
|
|
58
|
+
*/
|
|
59
|
+
text: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {CertificateCanvasTextElementFontFamilyEnum}
|
|
63
|
+
* @memberof CertificateCanvasTextElement
|
|
64
|
+
*/
|
|
65
|
+
fontFamily: CertificateCanvasTextElementFontFamilyEnum;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof CertificateCanvasTextElement
|
|
70
|
+
*/
|
|
71
|
+
fontSize: number;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof CertificateCanvasTextElement
|
|
76
|
+
*/
|
|
77
|
+
color: string;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {CertificateCanvasTextElementAlignEnum}
|
|
81
|
+
* @memberof CertificateCanvasTextElement
|
|
82
|
+
*/
|
|
83
|
+
align?: CertificateCanvasTextElementAlignEnum;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* @export
|
|
87
|
+
*/
|
|
88
|
+
export declare const CertificateCanvasTextElementTypeEnum: {
|
|
89
|
+
readonly Text: "text";
|
|
90
|
+
};
|
|
91
|
+
export type CertificateCanvasTextElementTypeEnum = typeof CertificateCanvasTextElementTypeEnum[keyof typeof CertificateCanvasTextElementTypeEnum];
|
|
92
|
+
/**
|
|
93
|
+
* @export
|
|
94
|
+
*/
|
|
95
|
+
export declare const CertificateCanvasTextElementFontFamilyEnum: {
|
|
96
|
+
readonly Roboto: "roboto";
|
|
97
|
+
};
|
|
98
|
+
export type CertificateCanvasTextElementFontFamilyEnum = typeof CertificateCanvasTextElementFontFamilyEnum[keyof typeof CertificateCanvasTextElementFontFamilyEnum];
|
|
99
|
+
/**
|
|
100
|
+
* @export
|
|
101
|
+
*/
|
|
102
|
+
export declare const CertificateCanvasTextElementAlignEnum: {
|
|
103
|
+
readonly Left: "left";
|
|
104
|
+
readonly Center: "center";
|
|
105
|
+
readonly Right: "right";
|
|
106
|
+
};
|
|
107
|
+
export type CertificateCanvasTextElementAlignEnum = typeof CertificateCanvasTextElementAlignEnum[keyof typeof CertificateCanvasTextElementAlignEnum];
|
|
108
|
+
/**
|
|
109
|
+
* Check if a given object implements the CertificateCanvasTextElement interface.
|
|
110
|
+
*/
|
|
111
|
+
export declare function instanceOfCertificateCanvasTextElement(value: object): value is CertificateCanvasTextElement;
|
|
112
|
+
export declare function CertificateCanvasTextElementFromJSON(json: any): CertificateCanvasTextElement;
|
|
113
|
+
export declare function CertificateCanvasTextElementFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificateCanvasTextElement;
|
|
114
|
+
export declare function CertificateCanvasTextElementToJSON(json: any): CertificateCanvasTextElement;
|
|
115
|
+
export declare function CertificateCanvasTextElementToJSONTyped(value?: CertificateCanvasTextElement | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,101 @@
|
|
|
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 CertificateCanvasTextElementTypeEnum = {
|
|
18
|
+
Text: 'text'
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* @export
|
|
22
|
+
*/
|
|
23
|
+
export const CertificateCanvasTextElementFontFamilyEnum = {
|
|
24
|
+
Roboto: 'roboto'
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* @export
|
|
28
|
+
*/
|
|
29
|
+
export const CertificateCanvasTextElementAlignEnum = {
|
|
30
|
+
Left: 'left',
|
|
31
|
+
Center: 'center',
|
|
32
|
+
Right: 'right'
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Check if a given object implements the CertificateCanvasTextElement interface.
|
|
36
|
+
*/
|
|
37
|
+
export function instanceOfCertificateCanvasTextElement(value) {
|
|
38
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('x' in value) || value['x'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('y' in value) || value['y'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('width' in value) || value['width'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('height' in value) || value['height'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('text' in value) || value['text'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('fontFamily' in value) || value['fontFamily'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('fontSize' in value) || value['fontSize'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if (!('color' in value) || value['color'] === undefined)
|
|
57
|
+
return false;
|
|
58
|
+
return true;
|
|
59
|
+
}
|
|
60
|
+
export function CertificateCanvasTextElementFromJSON(json) {
|
|
61
|
+
return CertificateCanvasTextElementFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
export function CertificateCanvasTextElementFromJSONTyped(json, ignoreDiscriminator) {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
'id': json['id'],
|
|
69
|
+
'type': json['type'],
|
|
70
|
+
'x': json['x'],
|
|
71
|
+
'y': json['y'],
|
|
72
|
+
'width': json['width'],
|
|
73
|
+
'height': json['height'],
|
|
74
|
+
'text': json['text'],
|
|
75
|
+
'fontFamily': json['font_family'],
|
|
76
|
+
'fontSize': json['font_size'],
|
|
77
|
+
'color': json['color'],
|
|
78
|
+
'align': json['align'] == null ? undefined : json['align'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
export function CertificateCanvasTextElementToJSON(json) {
|
|
82
|
+
return CertificateCanvasTextElementToJSONTyped(json, false);
|
|
83
|
+
}
|
|
84
|
+
export function CertificateCanvasTextElementToJSONTyped(value, ignoreDiscriminator = false) {
|
|
85
|
+
if (value == null) {
|
|
86
|
+
return value;
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
'id': value['id'],
|
|
90
|
+
'type': value['type'],
|
|
91
|
+
'x': value['x'],
|
|
92
|
+
'y': value['y'],
|
|
93
|
+
'width': value['width'],
|
|
94
|
+
'height': value['height'],
|
|
95
|
+
'text': value['text'],
|
|
96
|
+
'font_family': value['fontFamily'],
|
|
97
|
+
'font_size': value['fontSize'],
|
|
98
|
+
'color': value['color'],
|
|
99
|
+
'align': value['align'],
|
|
100
|
+
};
|
|
101
|
+
}
|