@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,139 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface CertificateCanvasLineElement
|
|
20
|
+
*/
|
|
21
|
+
export interface CertificateCanvasLineElement {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CertificateCanvasLineElement
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {CertificateCanvasLineElementTypeEnum}
|
|
31
|
+
* @memberof CertificateCanvasLineElement
|
|
32
|
+
*/
|
|
33
|
+
type: CertificateCanvasLineElementTypeEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof CertificateCanvasLineElement
|
|
38
|
+
*/
|
|
39
|
+
x: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof CertificateCanvasLineElement
|
|
44
|
+
*/
|
|
45
|
+
y: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof CertificateCanvasLineElement
|
|
50
|
+
*/
|
|
51
|
+
width: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof CertificateCanvasLineElement
|
|
56
|
+
*/
|
|
57
|
+
height: number;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof CertificateCanvasLineElement
|
|
62
|
+
*/
|
|
63
|
+
color: string;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof CertificateCanvasLineElement
|
|
68
|
+
*/
|
|
69
|
+
strokeWidth: number;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @export
|
|
75
|
+
*/
|
|
76
|
+
export const CertificateCanvasLineElementTypeEnum = {
|
|
77
|
+
Line: 'line'
|
|
78
|
+
} as const;
|
|
79
|
+
export type CertificateCanvasLineElementTypeEnum = typeof CertificateCanvasLineElementTypeEnum[keyof typeof CertificateCanvasLineElementTypeEnum];
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Check if a given object implements the CertificateCanvasLineElement interface.
|
|
84
|
+
*/
|
|
85
|
+
export function instanceOfCertificateCanvasLineElement(value: object): value is CertificateCanvasLineElement {
|
|
86
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
87
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
88
|
+
if (!('x' in value) || value['x'] === undefined) return false;
|
|
89
|
+
if (!('y' in value) || value['y'] === undefined) return false;
|
|
90
|
+
if (!('width' in value) || value['width'] === undefined) return false;
|
|
91
|
+
if (!('height' in value) || value['height'] === undefined) return false;
|
|
92
|
+
if (!('color' in value) || value['color'] === undefined) return false;
|
|
93
|
+
if (!('strokeWidth' in value) || value['strokeWidth'] === undefined) return false;
|
|
94
|
+
return true;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function CertificateCanvasLineElementFromJSON(json: any): CertificateCanvasLineElement {
|
|
98
|
+
return CertificateCanvasLineElementFromJSONTyped(json, false);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function CertificateCanvasLineElementFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificateCanvasLineElement {
|
|
102
|
+
if (json == null) {
|
|
103
|
+
return json;
|
|
104
|
+
}
|
|
105
|
+
return {
|
|
106
|
+
|
|
107
|
+
'id': json['id'],
|
|
108
|
+
'type': json['type'],
|
|
109
|
+
'x': json['x'],
|
|
110
|
+
'y': json['y'],
|
|
111
|
+
'width': json['width'],
|
|
112
|
+
'height': json['height'],
|
|
113
|
+
'color': json['color'],
|
|
114
|
+
'strokeWidth': json['stroke_width'],
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export function CertificateCanvasLineElementToJSON(json: any): CertificateCanvasLineElement {
|
|
119
|
+
return CertificateCanvasLineElementToJSONTyped(json, false);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export function CertificateCanvasLineElementToJSONTyped(value?: CertificateCanvasLineElement | null, ignoreDiscriminator: boolean = false): any {
|
|
123
|
+
if (value == null) {
|
|
124
|
+
return value;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
return {
|
|
128
|
+
|
|
129
|
+
'id': value['id'],
|
|
130
|
+
'type': value['type'],
|
|
131
|
+
'x': value['x'],
|
|
132
|
+
'y': value['y'],
|
|
133
|
+
'width': value['width'],
|
|
134
|
+
'height': value['height'],
|
|
135
|
+
'color': value['color'],
|
|
136
|
+
'stroke_width': value['strokeWidth'],
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface CertificateCanvasPortalLogoElement
|
|
20
|
+
*/
|
|
21
|
+
export interface CertificateCanvasPortalLogoElement {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CertificateCanvasPortalLogoElement
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {CertificateCanvasPortalLogoElementTypeEnum}
|
|
31
|
+
* @memberof CertificateCanvasPortalLogoElement
|
|
32
|
+
*/
|
|
33
|
+
type: CertificateCanvasPortalLogoElementTypeEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof CertificateCanvasPortalLogoElement
|
|
38
|
+
*/
|
|
39
|
+
x: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof CertificateCanvasPortalLogoElement
|
|
44
|
+
*/
|
|
45
|
+
y: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof CertificateCanvasPortalLogoElement
|
|
50
|
+
*/
|
|
51
|
+
width: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof CertificateCanvasPortalLogoElement
|
|
56
|
+
*/
|
|
57
|
+
height: number;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export const CertificateCanvasPortalLogoElementTypeEnum = {
|
|
65
|
+
PortalLogo: 'portal_logo'
|
|
66
|
+
} as const;
|
|
67
|
+
export type CertificateCanvasPortalLogoElementTypeEnum = typeof CertificateCanvasPortalLogoElementTypeEnum[keyof typeof CertificateCanvasPortalLogoElementTypeEnum];
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Check if a given object implements the CertificateCanvasPortalLogoElement interface.
|
|
72
|
+
*/
|
|
73
|
+
export function instanceOfCertificateCanvasPortalLogoElement(value: object): value is CertificateCanvasPortalLogoElement {
|
|
74
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
75
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
76
|
+
if (!('x' in value) || value['x'] === undefined) return false;
|
|
77
|
+
if (!('y' in value) || value['y'] === undefined) return false;
|
|
78
|
+
if (!('width' in value) || value['width'] === undefined) return false;
|
|
79
|
+
if (!('height' in value) || value['height'] === undefined) return false;
|
|
80
|
+
return true;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function CertificateCanvasPortalLogoElementFromJSON(json: any): CertificateCanvasPortalLogoElement {
|
|
84
|
+
return CertificateCanvasPortalLogoElementFromJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function CertificateCanvasPortalLogoElementFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificateCanvasPortalLogoElement {
|
|
88
|
+
if (json == null) {
|
|
89
|
+
return json;
|
|
90
|
+
}
|
|
91
|
+
return {
|
|
92
|
+
|
|
93
|
+
'id': json['id'],
|
|
94
|
+
'type': json['type'],
|
|
95
|
+
'x': json['x'],
|
|
96
|
+
'y': json['y'],
|
|
97
|
+
'width': json['width'],
|
|
98
|
+
'height': json['height'],
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function CertificateCanvasPortalLogoElementToJSON(json: any): CertificateCanvasPortalLogoElement {
|
|
103
|
+
return CertificateCanvasPortalLogoElementToJSONTyped(json, false);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export function CertificateCanvasPortalLogoElementToJSONTyped(value?: CertificateCanvasPortalLogoElement | null, ignoreDiscriminator: boolean = false): any {
|
|
107
|
+
if (value == null) {
|
|
108
|
+
return value;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
return {
|
|
112
|
+
|
|
113
|
+
'id': value['id'],
|
|
114
|
+
'type': value['type'],
|
|
115
|
+
'x': value['x'],
|
|
116
|
+
'y': value['y'],
|
|
117
|
+
'width': value['width'],
|
|
118
|
+
'height': value['height'],
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface CertificateCanvasShapeElement
|
|
20
|
+
*/
|
|
21
|
+
export interface CertificateCanvasShapeElement {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CertificateCanvasShapeElement
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {CertificateCanvasShapeElementTypeEnum}
|
|
31
|
+
* @memberof CertificateCanvasShapeElement
|
|
32
|
+
*/
|
|
33
|
+
type: CertificateCanvasShapeElementTypeEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof CertificateCanvasShapeElement
|
|
38
|
+
*/
|
|
39
|
+
x: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof CertificateCanvasShapeElement
|
|
44
|
+
*/
|
|
45
|
+
y: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof CertificateCanvasShapeElement
|
|
50
|
+
*/
|
|
51
|
+
width: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof CertificateCanvasShapeElement
|
|
56
|
+
*/
|
|
57
|
+
height: number;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof CertificateCanvasShapeElement
|
|
62
|
+
*/
|
|
63
|
+
fillColor: string;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof CertificateCanvasShapeElement
|
|
68
|
+
*/
|
|
69
|
+
strokeColor: string;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {number}
|
|
73
|
+
* @memberof CertificateCanvasShapeElement
|
|
74
|
+
*/
|
|
75
|
+
strokeWidth: number;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* @export
|
|
81
|
+
*/
|
|
82
|
+
export const CertificateCanvasShapeElementTypeEnum = {
|
|
83
|
+
Shape: 'shape'
|
|
84
|
+
} as const;
|
|
85
|
+
export type CertificateCanvasShapeElementTypeEnum = typeof CertificateCanvasShapeElementTypeEnum[keyof typeof CertificateCanvasShapeElementTypeEnum];
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Check if a given object implements the CertificateCanvasShapeElement interface.
|
|
90
|
+
*/
|
|
91
|
+
export function instanceOfCertificateCanvasShapeElement(value: object): value is CertificateCanvasShapeElement {
|
|
92
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
93
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
94
|
+
if (!('x' in value) || value['x'] === undefined) return false;
|
|
95
|
+
if (!('y' in value) || value['y'] === undefined) return false;
|
|
96
|
+
if (!('width' in value) || value['width'] === undefined) return false;
|
|
97
|
+
if (!('height' in value) || value['height'] === undefined) return false;
|
|
98
|
+
if (!('fillColor' in value) || value['fillColor'] === undefined) return false;
|
|
99
|
+
if (!('strokeColor' in value) || value['strokeColor'] === undefined) return false;
|
|
100
|
+
if (!('strokeWidth' in value) || value['strokeWidth'] === undefined) return false;
|
|
101
|
+
return true;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function CertificateCanvasShapeElementFromJSON(json: any): CertificateCanvasShapeElement {
|
|
105
|
+
return CertificateCanvasShapeElementFromJSONTyped(json, false);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function CertificateCanvasShapeElementFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificateCanvasShapeElement {
|
|
109
|
+
if (json == null) {
|
|
110
|
+
return json;
|
|
111
|
+
}
|
|
112
|
+
return {
|
|
113
|
+
|
|
114
|
+
'id': json['id'],
|
|
115
|
+
'type': json['type'],
|
|
116
|
+
'x': json['x'],
|
|
117
|
+
'y': json['y'],
|
|
118
|
+
'width': json['width'],
|
|
119
|
+
'height': json['height'],
|
|
120
|
+
'fillColor': json['fill_color'],
|
|
121
|
+
'strokeColor': json['stroke_color'],
|
|
122
|
+
'strokeWidth': json['stroke_width'],
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export function CertificateCanvasShapeElementToJSON(json: any): CertificateCanvasShapeElement {
|
|
127
|
+
return CertificateCanvasShapeElementToJSONTyped(json, false);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export function CertificateCanvasShapeElementToJSONTyped(value?: CertificateCanvasShapeElement | null, ignoreDiscriminator: boolean = false): any {
|
|
131
|
+
if (value == null) {
|
|
132
|
+
return value;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
return {
|
|
136
|
+
|
|
137
|
+
'id': value['id'],
|
|
138
|
+
'type': value['type'],
|
|
139
|
+
'x': value['x'],
|
|
140
|
+
'y': value['y'],
|
|
141
|
+
'width': value['width'],
|
|
142
|
+
'height': value['height'],
|
|
143
|
+
'fill_color': value['fillColor'],
|
|
144
|
+
'stroke_color': value['strokeColor'],
|
|
145
|
+
'stroke_width': value['strokeWidth'],
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface CertificateCanvasTextElement
|
|
20
|
+
*/
|
|
21
|
+
export interface CertificateCanvasTextElement {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CertificateCanvasTextElement
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {CertificateCanvasTextElementTypeEnum}
|
|
31
|
+
* @memberof CertificateCanvasTextElement
|
|
32
|
+
*/
|
|
33
|
+
type: CertificateCanvasTextElementTypeEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof CertificateCanvasTextElement
|
|
38
|
+
*/
|
|
39
|
+
x: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof CertificateCanvasTextElement
|
|
44
|
+
*/
|
|
45
|
+
y: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof CertificateCanvasTextElement
|
|
50
|
+
*/
|
|
51
|
+
width: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof CertificateCanvasTextElement
|
|
56
|
+
*/
|
|
57
|
+
height: number;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof CertificateCanvasTextElement
|
|
62
|
+
*/
|
|
63
|
+
text: string;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {CertificateCanvasTextElementFontFamilyEnum}
|
|
67
|
+
* @memberof CertificateCanvasTextElement
|
|
68
|
+
*/
|
|
69
|
+
fontFamily: CertificateCanvasTextElementFontFamilyEnum;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {number}
|
|
73
|
+
* @memberof CertificateCanvasTextElement
|
|
74
|
+
*/
|
|
75
|
+
fontSize: number;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof CertificateCanvasTextElement
|
|
80
|
+
*/
|
|
81
|
+
color: string;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {CertificateCanvasTextElementAlignEnum}
|
|
85
|
+
* @memberof CertificateCanvasTextElement
|
|
86
|
+
*/
|
|
87
|
+
align?: CertificateCanvasTextElementAlignEnum;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @export
|
|
93
|
+
*/
|
|
94
|
+
export const CertificateCanvasTextElementTypeEnum = {
|
|
95
|
+
Text: 'text'
|
|
96
|
+
} as const;
|
|
97
|
+
export type CertificateCanvasTextElementTypeEnum = typeof CertificateCanvasTextElementTypeEnum[keyof typeof CertificateCanvasTextElementTypeEnum];
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* @export
|
|
101
|
+
*/
|
|
102
|
+
export const CertificateCanvasTextElementFontFamilyEnum = {
|
|
103
|
+
Roboto: 'roboto'
|
|
104
|
+
} as const;
|
|
105
|
+
export type CertificateCanvasTextElementFontFamilyEnum = typeof CertificateCanvasTextElementFontFamilyEnum[keyof typeof CertificateCanvasTextElementFontFamilyEnum];
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* @export
|
|
109
|
+
*/
|
|
110
|
+
export const CertificateCanvasTextElementAlignEnum = {
|
|
111
|
+
Left: 'left',
|
|
112
|
+
Center: 'center',
|
|
113
|
+
Right: 'right'
|
|
114
|
+
} as const;
|
|
115
|
+
export type CertificateCanvasTextElementAlignEnum = typeof CertificateCanvasTextElementAlignEnum[keyof typeof CertificateCanvasTextElementAlignEnum];
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Check if a given object implements the CertificateCanvasTextElement interface.
|
|
120
|
+
*/
|
|
121
|
+
export function instanceOfCertificateCanvasTextElement(value: object): value is CertificateCanvasTextElement {
|
|
122
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
123
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
124
|
+
if (!('x' in value) || value['x'] === undefined) return false;
|
|
125
|
+
if (!('y' in value) || value['y'] === undefined) return false;
|
|
126
|
+
if (!('width' in value) || value['width'] === undefined) return false;
|
|
127
|
+
if (!('height' in value) || value['height'] === undefined) return false;
|
|
128
|
+
if (!('text' in value) || value['text'] === undefined) return false;
|
|
129
|
+
if (!('fontFamily' in value) || value['fontFamily'] === undefined) return false;
|
|
130
|
+
if (!('fontSize' in value) || value['fontSize'] === undefined) return false;
|
|
131
|
+
if (!('color' in value) || value['color'] === undefined) return false;
|
|
132
|
+
return true;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export function CertificateCanvasTextElementFromJSON(json: any): CertificateCanvasTextElement {
|
|
136
|
+
return CertificateCanvasTextElementFromJSONTyped(json, false);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export function CertificateCanvasTextElementFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificateCanvasTextElement {
|
|
140
|
+
if (json == null) {
|
|
141
|
+
return json;
|
|
142
|
+
}
|
|
143
|
+
return {
|
|
144
|
+
|
|
145
|
+
'id': json['id'],
|
|
146
|
+
'type': json['type'],
|
|
147
|
+
'x': json['x'],
|
|
148
|
+
'y': json['y'],
|
|
149
|
+
'width': json['width'],
|
|
150
|
+
'height': json['height'],
|
|
151
|
+
'text': json['text'],
|
|
152
|
+
'fontFamily': json['font_family'],
|
|
153
|
+
'fontSize': json['font_size'],
|
|
154
|
+
'color': json['color'],
|
|
155
|
+
'align': json['align'] == null ? undefined : json['align'],
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export function CertificateCanvasTextElementToJSON(json: any): CertificateCanvasTextElement {
|
|
160
|
+
return CertificateCanvasTextElementToJSONTyped(json, false);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export function CertificateCanvasTextElementToJSONTyped(value?: CertificateCanvasTextElement | null, ignoreDiscriminator: boolean = false): any {
|
|
164
|
+
if (value == null) {
|
|
165
|
+
return value;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
return {
|
|
169
|
+
|
|
170
|
+
'id': value['id'],
|
|
171
|
+
'type': value['type'],
|
|
172
|
+
'x': value['x'],
|
|
173
|
+
'y': value['y'],
|
|
174
|
+
'width': value['width'],
|
|
175
|
+
'height': value['height'],
|
|
176
|
+
'text': value['text'],
|
|
177
|
+
'font_family': value['fontFamily'],
|
|
178
|
+
'font_size': value['fontSize'],
|
|
179
|
+
'color': value['color'],
|
|
180
|
+
'align': value['align'],
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface CertificateCanvasVerificationQrElement
|
|
20
|
+
*/
|
|
21
|
+
export interface CertificateCanvasVerificationQrElement {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CertificateCanvasVerificationQrElement
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {CertificateCanvasVerificationQrElementTypeEnum}
|
|
31
|
+
* @memberof CertificateCanvasVerificationQrElement
|
|
32
|
+
*/
|
|
33
|
+
type: CertificateCanvasVerificationQrElementTypeEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof CertificateCanvasVerificationQrElement
|
|
38
|
+
*/
|
|
39
|
+
x: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof CertificateCanvasVerificationQrElement
|
|
44
|
+
*/
|
|
45
|
+
y: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof CertificateCanvasVerificationQrElement
|
|
50
|
+
*/
|
|
51
|
+
width: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof CertificateCanvasVerificationQrElement
|
|
56
|
+
*/
|
|
57
|
+
height: number;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export const CertificateCanvasVerificationQrElementTypeEnum = {
|
|
65
|
+
VerificationQr: 'verification_qr'
|
|
66
|
+
} as const;
|
|
67
|
+
export type CertificateCanvasVerificationQrElementTypeEnum = typeof CertificateCanvasVerificationQrElementTypeEnum[keyof typeof CertificateCanvasVerificationQrElementTypeEnum];
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Check if a given object implements the CertificateCanvasVerificationQrElement interface.
|
|
72
|
+
*/
|
|
73
|
+
export function instanceOfCertificateCanvasVerificationQrElement(value: object): value is CertificateCanvasVerificationQrElement {
|
|
74
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
75
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
76
|
+
if (!('x' in value) || value['x'] === undefined) return false;
|
|
77
|
+
if (!('y' in value) || value['y'] === undefined) return false;
|
|
78
|
+
if (!('width' in value) || value['width'] === undefined) return false;
|
|
79
|
+
if (!('height' in value) || value['height'] === undefined) return false;
|
|
80
|
+
return true;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function CertificateCanvasVerificationQrElementFromJSON(json: any): CertificateCanvasVerificationQrElement {
|
|
84
|
+
return CertificateCanvasVerificationQrElementFromJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function CertificateCanvasVerificationQrElementFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificateCanvasVerificationQrElement {
|
|
88
|
+
if (json == null) {
|
|
89
|
+
return json;
|
|
90
|
+
}
|
|
91
|
+
return {
|
|
92
|
+
|
|
93
|
+
'id': json['id'],
|
|
94
|
+
'type': json['type'],
|
|
95
|
+
'x': json['x'],
|
|
96
|
+
'y': json['y'],
|
|
97
|
+
'width': json['width'],
|
|
98
|
+
'height': json['height'],
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function CertificateCanvasVerificationQrElementToJSON(json: any): CertificateCanvasVerificationQrElement {
|
|
103
|
+
return CertificateCanvasVerificationQrElementToJSONTyped(json, false);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export function CertificateCanvasVerificationQrElementToJSONTyped(value?: CertificateCanvasVerificationQrElement | null, ignoreDiscriminator: boolean = false): any {
|
|
107
|
+
if (value == null) {
|
|
108
|
+
return value;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
return {
|
|
112
|
+
|
|
113
|
+
'id': value['id'],
|
|
114
|
+
'type': value['type'],
|
|
115
|
+
'x': value['x'],
|
|
116
|
+
'y': value['y'],
|
|
117
|
+
'width': value['width'],
|
|
118
|
+
'height': value['height'],
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
|