@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,91 @@
|
|
|
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 CertificateBadgePolicyAlignmentsInner
|
|
20
|
+
*/
|
|
21
|
+
export interface CertificateBadgePolicyAlignmentsInner {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CertificateBadgePolicyAlignmentsInner
|
|
26
|
+
*/
|
|
27
|
+
targetName: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof CertificateBadgePolicyAlignmentsInner
|
|
32
|
+
*/
|
|
33
|
+
targetUrl: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof CertificateBadgePolicyAlignmentsInner
|
|
38
|
+
*/
|
|
39
|
+
targetFramework?: string | null;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof CertificateBadgePolicyAlignmentsInner
|
|
44
|
+
*/
|
|
45
|
+
targetCode?: string | null;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the CertificateBadgePolicyAlignmentsInner interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfCertificateBadgePolicyAlignmentsInner(value: object): value is CertificateBadgePolicyAlignmentsInner {
|
|
52
|
+
if (!('targetName' in value) || value['targetName'] === undefined) return false;
|
|
53
|
+
if (!('targetUrl' in value) || value['targetUrl'] === undefined) return false;
|
|
54
|
+
return true;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function CertificateBadgePolicyAlignmentsInnerFromJSON(json: any): CertificateBadgePolicyAlignmentsInner {
|
|
58
|
+
return CertificateBadgePolicyAlignmentsInnerFromJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function CertificateBadgePolicyAlignmentsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificateBadgePolicyAlignmentsInner {
|
|
62
|
+
if (json == null) {
|
|
63
|
+
return json;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
|
|
67
|
+
'targetName': json['target_name'],
|
|
68
|
+
'targetUrl': json['target_url'],
|
|
69
|
+
'targetFramework': json['target_framework'] == null ? undefined : json['target_framework'],
|
|
70
|
+
'targetCode': json['target_code'] == null ? undefined : json['target_code'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function CertificateBadgePolicyAlignmentsInnerToJSON(json: any): CertificateBadgePolicyAlignmentsInner {
|
|
75
|
+
return CertificateBadgePolicyAlignmentsInnerToJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function CertificateBadgePolicyAlignmentsInnerToJSONTyped(value?: CertificateBadgePolicyAlignmentsInner | null, ignoreDiscriminator: boolean = false): any {
|
|
79
|
+
if (value == null) {
|
|
80
|
+
return value;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
return {
|
|
84
|
+
|
|
85
|
+
'target_name': value['targetName'],
|
|
86
|
+
'target_url': value['targetUrl'],
|
|
87
|
+
'target_framework': value['targetFramework'],
|
|
88
|
+
'target_code': value['targetCode'],
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
@@ -0,0 +1,109 @@
|
|
|
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
|
+
import type { CertificateCanvasElement } from './CertificateCanvasElement';
|
|
17
|
+
import {
|
|
18
|
+
CertificateCanvasElementFromJSON,
|
|
19
|
+
CertificateCanvasElementFromJSONTyped,
|
|
20
|
+
CertificateCanvasElementToJSON,
|
|
21
|
+
CertificateCanvasElementToJSONTyped,
|
|
22
|
+
} from './CertificateCanvasElement';
|
|
23
|
+
import type { CertificateCanvasDocumentPage } from './CertificateCanvasDocumentPage';
|
|
24
|
+
import {
|
|
25
|
+
CertificateCanvasDocumentPageFromJSON,
|
|
26
|
+
CertificateCanvasDocumentPageFromJSONTyped,
|
|
27
|
+
CertificateCanvasDocumentPageToJSON,
|
|
28
|
+
CertificateCanvasDocumentPageToJSONTyped,
|
|
29
|
+
} from './CertificateCanvasDocumentPage';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Constrained fixed-page certificate-canvas-v1 document.
|
|
33
|
+
* @export
|
|
34
|
+
* @interface CertificateCanvasDocument
|
|
35
|
+
*/
|
|
36
|
+
export interface CertificateCanvasDocument {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {CertificateCanvasDocumentFormatEnum}
|
|
40
|
+
* @memberof CertificateCanvasDocument
|
|
41
|
+
*/
|
|
42
|
+
format: CertificateCanvasDocumentFormatEnum;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {CertificateCanvasDocumentPage}
|
|
46
|
+
* @memberof CertificateCanvasDocument
|
|
47
|
+
*/
|
|
48
|
+
page: CertificateCanvasDocumentPage;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {Array<CertificateCanvasElement>}
|
|
52
|
+
* @memberof CertificateCanvasDocument
|
|
53
|
+
*/
|
|
54
|
+
elements: Array<CertificateCanvasElement>;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @export
|
|
60
|
+
*/
|
|
61
|
+
export const CertificateCanvasDocumentFormatEnum = {
|
|
62
|
+
CertificateCanvasV1: 'certificate-canvas-v1'
|
|
63
|
+
} as const;
|
|
64
|
+
export type CertificateCanvasDocumentFormatEnum = typeof CertificateCanvasDocumentFormatEnum[keyof typeof CertificateCanvasDocumentFormatEnum];
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the CertificateCanvasDocument interface.
|
|
69
|
+
*/
|
|
70
|
+
export function instanceOfCertificateCanvasDocument(value: object): value is CertificateCanvasDocument {
|
|
71
|
+
if (!('format' in value) || value['format'] === undefined) return false;
|
|
72
|
+
if (!('page' in value) || value['page'] === undefined) return false;
|
|
73
|
+
if (!('elements' in value) || value['elements'] === undefined) return false;
|
|
74
|
+
return true;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function CertificateCanvasDocumentFromJSON(json: any): CertificateCanvasDocument {
|
|
78
|
+
return CertificateCanvasDocumentFromJSONTyped(json, false);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function CertificateCanvasDocumentFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificateCanvasDocument {
|
|
82
|
+
if (json == null) {
|
|
83
|
+
return json;
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'format': json['format'],
|
|
88
|
+
'page': CertificateCanvasDocumentPageFromJSON(json['page']),
|
|
89
|
+
'elements': ((json['elements'] as Array<any>).map(CertificateCanvasElementFromJSON)),
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function CertificateCanvasDocumentToJSON(json: any): CertificateCanvasDocument {
|
|
94
|
+
return CertificateCanvasDocumentToJSONTyped(json, false);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function CertificateCanvasDocumentToJSONTyped(value?: CertificateCanvasDocument | null, ignoreDiscriminator: boolean = false): any {
|
|
98
|
+
if (value == null) {
|
|
99
|
+
return value;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
return {
|
|
103
|
+
|
|
104
|
+
'format': value['format'],
|
|
105
|
+
'page': CertificateCanvasDocumentPageToJSON(value['page']),
|
|
106
|
+
'elements': ((value['elements'] as Array<any>).map(CertificateCanvasElementToJSON)),
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
|
|
@@ -0,0 +1,103 @@
|
|
|
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 CertificateCanvasDocumentPage
|
|
20
|
+
*/
|
|
21
|
+
export interface CertificateCanvasDocumentPage {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {CertificateCanvasDocumentPageSizeEnum}
|
|
25
|
+
* @memberof CertificateCanvasDocumentPage
|
|
26
|
+
*/
|
|
27
|
+
size: CertificateCanvasDocumentPageSizeEnum;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {CertificateCanvasDocumentPageOrientationEnum}
|
|
31
|
+
* @memberof CertificateCanvasDocumentPage
|
|
32
|
+
*/
|
|
33
|
+
orientation: CertificateCanvasDocumentPageOrientationEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof CertificateCanvasDocumentPage
|
|
38
|
+
*/
|
|
39
|
+
backgroundColor?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export const CertificateCanvasDocumentPageSizeEnum = {
|
|
47
|
+
A4: 'a4',
|
|
48
|
+
Letter: 'letter'
|
|
49
|
+
} as const;
|
|
50
|
+
export type CertificateCanvasDocumentPageSizeEnum = typeof CertificateCanvasDocumentPageSizeEnum[keyof typeof CertificateCanvasDocumentPageSizeEnum];
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @export
|
|
54
|
+
*/
|
|
55
|
+
export const CertificateCanvasDocumentPageOrientationEnum = {
|
|
56
|
+
Portrait: 'portrait',
|
|
57
|
+
Landscape: 'landscape'
|
|
58
|
+
} as const;
|
|
59
|
+
export type CertificateCanvasDocumentPageOrientationEnum = typeof CertificateCanvasDocumentPageOrientationEnum[keyof typeof CertificateCanvasDocumentPageOrientationEnum];
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the CertificateCanvasDocumentPage interface.
|
|
64
|
+
*/
|
|
65
|
+
export function instanceOfCertificateCanvasDocumentPage(value: object): value is CertificateCanvasDocumentPage {
|
|
66
|
+
if (!('size' in value) || value['size'] === undefined) return false;
|
|
67
|
+
if (!('orientation' in value) || value['orientation'] === undefined) return false;
|
|
68
|
+
return true;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function CertificateCanvasDocumentPageFromJSON(json: any): CertificateCanvasDocumentPage {
|
|
72
|
+
return CertificateCanvasDocumentPageFromJSONTyped(json, false);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function CertificateCanvasDocumentPageFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificateCanvasDocumentPage {
|
|
76
|
+
if (json == null) {
|
|
77
|
+
return json;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
|
|
81
|
+
'size': json['size'],
|
|
82
|
+
'orientation': json['orientation'],
|
|
83
|
+
'backgroundColor': json['background_color'] == null ? undefined : json['background_color'],
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function CertificateCanvasDocumentPageToJSON(json: any): CertificateCanvasDocumentPage {
|
|
88
|
+
return CertificateCanvasDocumentPageToJSONTyped(json, false);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function CertificateCanvasDocumentPageToJSONTyped(value?: CertificateCanvasDocumentPage | null, ignoreDiscriminator: boolean = false): any {
|
|
92
|
+
if (value == null) {
|
|
93
|
+
return value;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
return {
|
|
97
|
+
|
|
98
|
+
'size': value['size'],
|
|
99
|
+
'orientation': value['orientation'],
|
|
100
|
+
'background_color': value['backgroundColor'],
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
|
|
@@ -0,0 +1,128 @@
|
|
|
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 type { CertificateCanvasImageElement } from './CertificateCanvasImageElement';
|
|
16
|
+
import {
|
|
17
|
+
instanceOfCertificateCanvasImageElement,
|
|
18
|
+
CertificateCanvasImageElementFromJSON,
|
|
19
|
+
CertificateCanvasImageElementFromJSONTyped,
|
|
20
|
+
CertificateCanvasImageElementToJSON,
|
|
21
|
+
} from './CertificateCanvasImageElement';
|
|
22
|
+
import type { CertificateCanvasLineElement } from './CertificateCanvasLineElement';
|
|
23
|
+
import {
|
|
24
|
+
instanceOfCertificateCanvasLineElement,
|
|
25
|
+
CertificateCanvasLineElementFromJSON,
|
|
26
|
+
CertificateCanvasLineElementFromJSONTyped,
|
|
27
|
+
CertificateCanvasLineElementToJSON,
|
|
28
|
+
} from './CertificateCanvasLineElement';
|
|
29
|
+
import type { CertificateCanvasPortalLogoElement } from './CertificateCanvasPortalLogoElement';
|
|
30
|
+
import {
|
|
31
|
+
instanceOfCertificateCanvasPortalLogoElement,
|
|
32
|
+
CertificateCanvasPortalLogoElementFromJSON,
|
|
33
|
+
CertificateCanvasPortalLogoElementFromJSONTyped,
|
|
34
|
+
CertificateCanvasPortalLogoElementToJSON,
|
|
35
|
+
} from './CertificateCanvasPortalLogoElement';
|
|
36
|
+
import type { CertificateCanvasShapeElement } from './CertificateCanvasShapeElement';
|
|
37
|
+
import {
|
|
38
|
+
instanceOfCertificateCanvasShapeElement,
|
|
39
|
+
CertificateCanvasShapeElementFromJSON,
|
|
40
|
+
CertificateCanvasShapeElementFromJSONTyped,
|
|
41
|
+
CertificateCanvasShapeElementToJSON,
|
|
42
|
+
} from './CertificateCanvasShapeElement';
|
|
43
|
+
import type { CertificateCanvasTextElement } from './CertificateCanvasTextElement';
|
|
44
|
+
import {
|
|
45
|
+
instanceOfCertificateCanvasTextElement,
|
|
46
|
+
CertificateCanvasTextElementFromJSON,
|
|
47
|
+
CertificateCanvasTextElementFromJSONTyped,
|
|
48
|
+
CertificateCanvasTextElementToJSON,
|
|
49
|
+
} from './CertificateCanvasTextElement';
|
|
50
|
+
import type { CertificateCanvasVerificationQrElement } from './CertificateCanvasVerificationQrElement';
|
|
51
|
+
import {
|
|
52
|
+
instanceOfCertificateCanvasVerificationQrElement,
|
|
53
|
+
CertificateCanvasVerificationQrElementFromJSON,
|
|
54
|
+
CertificateCanvasVerificationQrElementFromJSONTyped,
|
|
55
|
+
CertificateCanvasVerificationQrElementToJSON,
|
|
56
|
+
} from './CertificateCanvasVerificationQrElement';
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @type CertificateCanvasElement
|
|
60
|
+
* A constrained certificate-canvas-v1 element.
|
|
61
|
+
* @export
|
|
62
|
+
*/
|
|
63
|
+
export type CertificateCanvasElement = CertificateCanvasImageElement | CertificateCanvasLineElement | CertificateCanvasPortalLogoElement | CertificateCanvasShapeElement | CertificateCanvasTextElement | CertificateCanvasVerificationQrElement;
|
|
64
|
+
|
|
65
|
+
export function CertificateCanvasElementFromJSON(json: any): CertificateCanvasElement {
|
|
66
|
+
return CertificateCanvasElementFromJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function CertificateCanvasElementFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificateCanvasElement {
|
|
70
|
+
if (json == null) {
|
|
71
|
+
return json;
|
|
72
|
+
}
|
|
73
|
+
if (typeof json !== 'object') {
|
|
74
|
+
return json;
|
|
75
|
+
}
|
|
76
|
+
if (instanceOfCertificateCanvasImageElement(json)) {
|
|
77
|
+
return CertificateCanvasImageElementFromJSONTyped(json, true);
|
|
78
|
+
}
|
|
79
|
+
if (instanceOfCertificateCanvasLineElement(json)) {
|
|
80
|
+
return CertificateCanvasLineElementFromJSONTyped(json, true);
|
|
81
|
+
}
|
|
82
|
+
if (instanceOfCertificateCanvasPortalLogoElement(json)) {
|
|
83
|
+
return CertificateCanvasPortalLogoElementFromJSONTyped(json, true);
|
|
84
|
+
}
|
|
85
|
+
if (instanceOfCertificateCanvasShapeElement(json)) {
|
|
86
|
+
return CertificateCanvasShapeElementFromJSONTyped(json, true);
|
|
87
|
+
}
|
|
88
|
+
if (instanceOfCertificateCanvasTextElement(json)) {
|
|
89
|
+
return CertificateCanvasTextElementFromJSONTyped(json, true);
|
|
90
|
+
}
|
|
91
|
+
if (instanceOfCertificateCanvasVerificationQrElement(json)) {
|
|
92
|
+
return CertificateCanvasVerificationQrElementFromJSONTyped(json, true);
|
|
93
|
+
}
|
|
94
|
+
return {} as any;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function CertificateCanvasElementToJSON(json: any): any {
|
|
98
|
+
return CertificateCanvasElementToJSONTyped(json, false);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function CertificateCanvasElementToJSONTyped(value?: CertificateCanvasElement | null, ignoreDiscriminator: boolean = false): any {
|
|
102
|
+
if (value == null) {
|
|
103
|
+
return value;
|
|
104
|
+
}
|
|
105
|
+
if (typeof value !== 'object') {
|
|
106
|
+
return value;
|
|
107
|
+
}
|
|
108
|
+
if (instanceOfCertificateCanvasImageElement(value)) {
|
|
109
|
+
return CertificateCanvasImageElementToJSON(value as CertificateCanvasImageElement);
|
|
110
|
+
}
|
|
111
|
+
if (instanceOfCertificateCanvasLineElement(value)) {
|
|
112
|
+
return CertificateCanvasLineElementToJSON(value as CertificateCanvasLineElement);
|
|
113
|
+
}
|
|
114
|
+
if (instanceOfCertificateCanvasPortalLogoElement(value)) {
|
|
115
|
+
return CertificateCanvasPortalLogoElementToJSON(value as CertificateCanvasPortalLogoElement);
|
|
116
|
+
}
|
|
117
|
+
if (instanceOfCertificateCanvasShapeElement(value)) {
|
|
118
|
+
return CertificateCanvasShapeElementToJSON(value as CertificateCanvasShapeElement);
|
|
119
|
+
}
|
|
120
|
+
if (instanceOfCertificateCanvasTextElement(value)) {
|
|
121
|
+
return CertificateCanvasTextElementToJSON(value as CertificateCanvasTextElement);
|
|
122
|
+
}
|
|
123
|
+
if (instanceOfCertificateCanvasVerificationQrElement(value)) {
|
|
124
|
+
return CertificateCanvasVerificationQrElementToJSON(value as CertificateCanvasVerificationQrElement);
|
|
125
|
+
}
|
|
126
|
+
return {};
|
|
127
|
+
}
|
|
128
|
+
|
|
@@ -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 CertificateCanvasImageElement
|
|
20
|
+
*/
|
|
21
|
+
export interface CertificateCanvasImageElement {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CertificateCanvasImageElement
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {CertificateCanvasImageElementTypeEnum}
|
|
31
|
+
* @memberof CertificateCanvasImageElement
|
|
32
|
+
*/
|
|
33
|
+
type: CertificateCanvasImageElementTypeEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof CertificateCanvasImageElement
|
|
38
|
+
*/
|
|
39
|
+
x: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof CertificateCanvasImageElement
|
|
44
|
+
*/
|
|
45
|
+
y: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof CertificateCanvasImageElement
|
|
50
|
+
*/
|
|
51
|
+
width: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof CertificateCanvasImageElement
|
|
56
|
+
*/
|
|
57
|
+
height: number;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof CertificateCanvasImageElement
|
|
62
|
+
*/
|
|
63
|
+
assetId: string;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {CertificateCanvasImageElementFitEnum}
|
|
67
|
+
* @memberof CertificateCanvasImageElement
|
|
68
|
+
*/
|
|
69
|
+
fit?: CertificateCanvasImageElementFitEnum;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @export
|
|
75
|
+
*/
|
|
76
|
+
export const CertificateCanvasImageElementTypeEnum = {
|
|
77
|
+
Image: 'image'
|
|
78
|
+
} as const;
|
|
79
|
+
export type CertificateCanvasImageElementTypeEnum = typeof CertificateCanvasImageElementTypeEnum[keyof typeof CertificateCanvasImageElementTypeEnum];
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* @export
|
|
83
|
+
*/
|
|
84
|
+
export const CertificateCanvasImageElementFitEnum = {
|
|
85
|
+
Contain: 'contain',
|
|
86
|
+
Cover: 'cover',
|
|
87
|
+
Stretch: 'stretch'
|
|
88
|
+
} as const;
|
|
89
|
+
export type CertificateCanvasImageElementFitEnum = typeof CertificateCanvasImageElementFitEnum[keyof typeof CertificateCanvasImageElementFitEnum];
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Check if a given object implements the CertificateCanvasImageElement interface.
|
|
94
|
+
*/
|
|
95
|
+
export function instanceOfCertificateCanvasImageElement(value: object): value is CertificateCanvasImageElement {
|
|
96
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
97
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
98
|
+
if (!('x' in value) || value['x'] === undefined) return false;
|
|
99
|
+
if (!('y' in value) || value['y'] === undefined) return false;
|
|
100
|
+
if (!('width' in value) || value['width'] === undefined) return false;
|
|
101
|
+
if (!('height' in value) || value['height'] === undefined) return false;
|
|
102
|
+
if (!('assetId' in value) || value['assetId'] === undefined) return false;
|
|
103
|
+
return true;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export function CertificateCanvasImageElementFromJSON(json: any): CertificateCanvasImageElement {
|
|
107
|
+
return CertificateCanvasImageElementFromJSONTyped(json, false);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export function CertificateCanvasImageElementFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificateCanvasImageElement {
|
|
111
|
+
if (json == null) {
|
|
112
|
+
return json;
|
|
113
|
+
}
|
|
114
|
+
return {
|
|
115
|
+
|
|
116
|
+
'id': json['id'],
|
|
117
|
+
'type': json['type'],
|
|
118
|
+
'x': json['x'],
|
|
119
|
+
'y': json['y'],
|
|
120
|
+
'width': json['width'],
|
|
121
|
+
'height': json['height'],
|
|
122
|
+
'assetId': json['asset_id'],
|
|
123
|
+
'fit': json['fit'] == null ? undefined : json['fit'],
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export function CertificateCanvasImageElementToJSON(json: any): CertificateCanvasImageElement {
|
|
128
|
+
return CertificateCanvasImageElementToJSONTyped(json, false);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export function CertificateCanvasImageElementToJSONTyped(value?: CertificateCanvasImageElement | null, ignoreDiscriminator: boolean = false): any {
|
|
132
|
+
if (value == null) {
|
|
133
|
+
return value;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
return {
|
|
137
|
+
|
|
138
|
+
'id': value['id'],
|
|
139
|
+
'type': value['type'],
|
|
140
|
+
'x': value['x'],
|
|
141
|
+
'y': value['y'],
|
|
142
|
+
'width': value['width'],
|
|
143
|
+
'height': value['height'],
|
|
144
|
+
'asset_id': value['assetId'],
|
|
145
|
+
'fit': value['fit'],
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
|