@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,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CertificateCanvasShapeElementTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfCertificateCanvasShapeElement = instanceOfCertificateCanvasShapeElement;
|
|
18
|
+
exports.CertificateCanvasShapeElementFromJSON = CertificateCanvasShapeElementFromJSON;
|
|
19
|
+
exports.CertificateCanvasShapeElementFromJSONTyped = CertificateCanvasShapeElementFromJSONTyped;
|
|
20
|
+
exports.CertificateCanvasShapeElementToJSON = CertificateCanvasShapeElementToJSON;
|
|
21
|
+
exports.CertificateCanvasShapeElementToJSONTyped = CertificateCanvasShapeElementToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.CertificateCanvasShapeElementTypeEnum = {
|
|
26
|
+
Shape: 'shape'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the CertificateCanvasShapeElement interface.
|
|
30
|
+
*/
|
|
31
|
+
function instanceOfCertificateCanvasShapeElement(value) {
|
|
32
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('x' in value) || value['x'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('y' in value) || value['y'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('width' in value) || value['width'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('height' in value) || value['height'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('fillColor' in value) || value['fillColor'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('strokeColor' in value) || value['strokeColor'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('strokeWidth' in value) || value['strokeWidth'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
function CertificateCanvasShapeElementFromJSON(json) {
|
|
53
|
+
return CertificateCanvasShapeElementFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function CertificateCanvasShapeElementFromJSONTyped(json, ignoreDiscriminator) {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'id': json['id'],
|
|
61
|
+
'type': json['type'],
|
|
62
|
+
'x': json['x'],
|
|
63
|
+
'y': json['y'],
|
|
64
|
+
'width': json['width'],
|
|
65
|
+
'height': json['height'],
|
|
66
|
+
'fillColor': json['fill_color'],
|
|
67
|
+
'strokeColor': json['stroke_color'],
|
|
68
|
+
'strokeWidth': json['stroke_width'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
function CertificateCanvasShapeElementToJSON(json) {
|
|
72
|
+
return CertificateCanvasShapeElementToJSONTyped(json, false);
|
|
73
|
+
}
|
|
74
|
+
function CertificateCanvasShapeElementToJSONTyped(value, ignoreDiscriminator = false) {
|
|
75
|
+
if (value == null) {
|
|
76
|
+
return value;
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
'id': value['id'],
|
|
80
|
+
'type': value['type'],
|
|
81
|
+
'x': value['x'],
|
|
82
|
+
'y': value['y'],
|
|
83
|
+
'width': value['width'],
|
|
84
|
+
'height': value['height'],
|
|
85
|
+
'fill_color': value['fillColor'],
|
|
86
|
+
'stroke_color': value['strokeColor'],
|
|
87
|
+
'stroke_width': value['strokeWidth'],
|
|
88
|
+
};
|
|
89
|
+
}
|
|
@@ -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,109 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CertificateCanvasTextElementAlignEnum = exports.CertificateCanvasTextElementFontFamilyEnum = exports.CertificateCanvasTextElementTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfCertificateCanvasTextElement = instanceOfCertificateCanvasTextElement;
|
|
18
|
+
exports.CertificateCanvasTextElementFromJSON = CertificateCanvasTextElementFromJSON;
|
|
19
|
+
exports.CertificateCanvasTextElementFromJSONTyped = CertificateCanvasTextElementFromJSONTyped;
|
|
20
|
+
exports.CertificateCanvasTextElementToJSON = CertificateCanvasTextElementToJSON;
|
|
21
|
+
exports.CertificateCanvasTextElementToJSONTyped = CertificateCanvasTextElementToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.CertificateCanvasTextElementTypeEnum = {
|
|
26
|
+
Text: 'text'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* @export
|
|
30
|
+
*/
|
|
31
|
+
exports.CertificateCanvasTextElementFontFamilyEnum = {
|
|
32
|
+
Roboto: 'roboto'
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* @export
|
|
36
|
+
*/
|
|
37
|
+
exports.CertificateCanvasTextElementAlignEnum = {
|
|
38
|
+
Left: 'left',
|
|
39
|
+
Center: 'center',
|
|
40
|
+
Right: 'right'
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the CertificateCanvasTextElement interface.
|
|
44
|
+
*/
|
|
45
|
+
function instanceOfCertificateCanvasTextElement(value) {
|
|
46
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('x' in value) || value['x'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('y' in value) || value['y'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('width' in value) || value['width'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if (!('height' in value) || value['height'] === undefined)
|
|
57
|
+
return false;
|
|
58
|
+
if (!('text' in value) || value['text'] === undefined)
|
|
59
|
+
return false;
|
|
60
|
+
if (!('fontFamily' in value) || value['fontFamily'] === undefined)
|
|
61
|
+
return false;
|
|
62
|
+
if (!('fontSize' in value) || value['fontSize'] === undefined)
|
|
63
|
+
return false;
|
|
64
|
+
if (!('color' in value) || value['color'] === undefined)
|
|
65
|
+
return false;
|
|
66
|
+
return true;
|
|
67
|
+
}
|
|
68
|
+
function CertificateCanvasTextElementFromJSON(json) {
|
|
69
|
+
return CertificateCanvasTextElementFromJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
function CertificateCanvasTextElementFromJSONTyped(json, ignoreDiscriminator) {
|
|
72
|
+
if (json == null) {
|
|
73
|
+
return json;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
'id': json['id'],
|
|
77
|
+
'type': json['type'],
|
|
78
|
+
'x': json['x'],
|
|
79
|
+
'y': json['y'],
|
|
80
|
+
'width': json['width'],
|
|
81
|
+
'height': json['height'],
|
|
82
|
+
'text': json['text'],
|
|
83
|
+
'fontFamily': json['font_family'],
|
|
84
|
+
'fontSize': json['font_size'],
|
|
85
|
+
'color': json['color'],
|
|
86
|
+
'align': json['align'] == null ? undefined : json['align'],
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
function CertificateCanvasTextElementToJSON(json) {
|
|
90
|
+
return CertificateCanvasTextElementToJSONTyped(json, false);
|
|
91
|
+
}
|
|
92
|
+
function CertificateCanvasTextElementToJSONTyped(value, ignoreDiscriminator = false) {
|
|
93
|
+
if (value == null) {
|
|
94
|
+
return value;
|
|
95
|
+
}
|
|
96
|
+
return {
|
|
97
|
+
'id': value['id'],
|
|
98
|
+
'type': value['type'],
|
|
99
|
+
'x': value['x'],
|
|
100
|
+
'y': value['y'],
|
|
101
|
+
'width': value['width'],
|
|
102
|
+
'height': value['height'],
|
|
103
|
+
'text': value['text'],
|
|
104
|
+
'font_family': value['fontFamily'],
|
|
105
|
+
'font_size': value['fontSize'],
|
|
106
|
+
'color': value['color'],
|
|
107
|
+
'align': value['align'],
|
|
108
|
+
};
|
|
109
|
+
}
|
|
@@ -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 CertificateCanvasVerificationQrElement
|
|
16
|
+
*/
|
|
17
|
+
export interface CertificateCanvasVerificationQrElement {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CertificateCanvasVerificationQrElement
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {CertificateCanvasVerificationQrElementTypeEnum}
|
|
27
|
+
* @memberof CertificateCanvasVerificationQrElement
|
|
28
|
+
*/
|
|
29
|
+
type: CertificateCanvasVerificationQrElementTypeEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof CertificateCanvasVerificationQrElement
|
|
34
|
+
*/
|
|
35
|
+
x: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof CertificateCanvasVerificationQrElement
|
|
40
|
+
*/
|
|
41
|
+
y: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof CertificateCanvasVerificationQrElement
|
|
46
|
+
*/
|
|
47
|
+
width: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof CertificateCanvasVerificationQrElement
|
|
52
|
+
*/
|
|
53
|
+
height: number;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export declare const CertificateCanvasVerificationQrElementTypeEnum: {
|
|
59
|
+
readonly VerificationQr: "verification_qr";
|
|
60
|
+
};
|
|
61
|
+
export type CertificateCanvasVerificationQrElementTypeEnum = typeof CertificateCanvasVerificationQrElementTypeEnum[keyof typeof CertificateCanvasVerificationQrElementTypeEnum];
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the CertificateCanvasVerificationQrElement interface.
|
|
64
|
+
*/
|
|
65
|
+
export declare function instanceOfCertificateCanvasVerificationQrElement(value: object): value is CertificateCanvasVerificationQrElement;
|
|
66
|
+
export declare function CertificateCanvasVerificationQrElementFromJSON(json: any): CertificateCanvasVerificationQrElement;
|
|
67
|
+
export declare function CertificateCanvasVerificationQrElementFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificateCanvasVerificationQrElement;
|
|
68
|
+
export declare function CertificateCanvasVerificationQrElementToJSON(json: any): CertificateCanvasVerificationQrElement;
|
|
69
|
+
export declare function CertificateCanvasVerificationQrElementToJSONTyped(value?: CertificateCanvasVerificationQrElement | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CertificateCanvasVerificationQrElementTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfCertificateCanvasVerificationQrElement = instanceOfCertificateCanvasVerificationQrElement;
|
|
18
|
+
exports.CertificateCanvasVerificationQrElementFromJSON = CertificateCanvasVerificationQrElementFromJSON;
|
|
19
|
+
exports.CertificateCanvasVerificationQrElementFromJSONTyped = CertificateCanvasVerificationQrElementFromJSONTyped;
|
|
20
|
+
exports.CertificateCanvasVerificationQrElementToJSON = CertificateCanvasVerificationQrElementToJSON;
|
|
21
|
+
exports.CertificateCanvasVerificationQrElementToJSONTyped = CertificateCanvasVerificationQrElementToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.CertificateCanvasVerificationQrElementTypeEnum = {
|
|
26
|
+
VerificationQr: 'verification_qr'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the CertificateCanvasVerificationQrElement interface.
|
|
30
|
+
*/
|
|
31
|
+
function instanceOfCertificateCanvasVerificationQrElement(value) {
|
|
32
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('x' in value) || value['x'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('y' in value) || value['y'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('width' in value) || value['width'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('height' in value) || value['height'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
function CertificateCanvasVerificationQrElementFromJSON(json) {
|
|
47
|
+
return CertificateCanvasVerificationQrElementFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function CertificateCanvasVerificationQrElementFromJSONTyped(json, ignoreDiscriminator) {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'id': json['id'],
|
|
55
|
+
'type': json['type'],
|
|
56
|
+
'x': json['x'],
|
|
57
|
+
'y': json['y'],
|
|
58
|
+
'width': json['width'],
|
|
59
|
+
'height': json['height'],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
function CertificateCanvasVerificationQrElementToJSON(json) {
|
|
63
|
+
return CertificateCanvasVerificationQrElementToJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
function CertificateCanvasVerificationQrElementToJSONTyped(value, ignoreDiscriminator = false) {
|
|
66
|
+
if (value == null) {
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
'id': value['id'],
|
|
71
|
+
'type': value['type'],
|
|
72
|
+
'x': value['x'],
|
|
73
|
+
'y': value['y'],
|
|
74
|
+
'width': value['width'],
|
|
75
|
+
'height': value['height'],
|
|
76
|
+
};
|
|
77
|
+
}
|
|
@@ -9,6 +9,9 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { CertificateNotificationPolicy } from './CertificateNotificationPolicy';
|
|
13
|
+
import type { CertificateRenewalPolicy } from './CertificateRenewalPolicy';
|
|
14
|
+
import type { CertificateBadgePolicy } from './CertificateBadgePolicy';
|
|
12
15
|
/**
|
|
13
16
|
*
|
|
14
17
|
* @export
|
|
@@ -63,6 +66,30 @@ export interface CertificateConfig {
|
|
|
63
66
|
* @memberof CertificateConfig
|
|
64
67
|
*/
|
|
65
68
|
quizConfigId?: string | null;
|
|
69
|
+
/**
|
|
70
|
+
* Logical certificate design selection. Null uses scope defaults.
|
|
71
|
+
* @type {string}
|
|
72
|
+
* @memberof CertificateConfig
|
|
73
|
+
*/
|
|
74
|
+
certificateTemplateId?: string | null;
|
|
75
|
+
/**
|
|
76
|
+
* At course scope, null inherits the portal policy as a whole.
|
|
77
|
+
* @type {CertificateRenewalPolicy}
|
|
78
|
+
* @memberof CertificateConfig
|
|
79
|
+
*/
|
|
80
|
+
renewalPolicy?: CertificateRenewalPolicy | null;
|
|
81
|
+
/**
|
|
82
|
+
* At course scope, null inherits the portal policy as a whole.
|
|
83
|
+
* @type {CertificateNotificationPolicy}
|
|
84
|
+
* @memberof CertificateConfig
|
|
85
|
+
*/
|
|
86
|
+
notificationPolicy?: CertificateNotificationPolicy | null;
|
|
87
|
+
/**
|
|
88
|
+
* At course scope, null inherits the portal policy as a whole.
|
|
89
|
+
* @type {CertificateBadgePolicy}
|
|
90
|
+
* @memberof CertificateConfig
|
|
91
|
+
*/
|
|
92
|
+
badgePolicy?: CertificateBadgePolicy | null;
|
|
66
93
|
/**
|
|
67
94
|
*
|
|
68
95
|
* @type {number}
|
|
@@ -18,6 +18,9 @@ exports.CertificateConfigFromJSON = CertificateConfigFromJSON;
|
|
|
18
18
|
exports.CertificateConfigFromJSONTyped = CertificateConfigFromJSONTyped;
|
|
19
19
|
exports.CertificateConfigToJSON = CertificateConfigToJSON;
|
|
20
20
|
exports.CertificateConfigToJSONTyped = CertificateConfigToJSONTyped;
|
|
21
|
+
const CertificateNotificationPolicy_1 = require("./CertificateNotificationPolicy");
|
|
22
|
+
const CertificateRenewalPolicy_1 = require("./CertificateRenewalPolicy");
|
|
23
|
+
const CertificateBadgePolicy_1 = require("./CertificateBadgePolicy");
|
|
21
24
|
/**
|
|
22
25
|
* Check if a given object implements the CertificateConfig interface.
|
|
23
26
|
*/
|
|
@@ -50,6 +53,10 @@ function CertificateConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
53
|
'requireQuizPass': json['require_quiz_pass'] == null ? undefined : json['require_quiz_pass'],
|
|
51
54
|
'minQuizScore': json['min_quiz_score'] == null ? undefined : json['min_quiz_score'],
|
|
52
55
|
'quizConfigId': json['quiz_config_id'] == null ? undefined : json['quiz_config_id'],
|
|
56
|
+
'certificateTemplateId': json['certificate_template_id'] == null ? undefined : json['certificate_template_id'],
|
|
57
|
+
'renewalPolicy': json['renewal_policy'] == null ? undefined : (0, CertificateRenewalPolicy_1.CertificateRenewalPolicyFromJSON)(json['renewal_policy']),
|
|
58
|
+
'notificationPolicy': json['notification_policy'] == null ? undefined : (0, CertificateNotificationPolicy_1.CertificateNotificationPolicyFromJSON)(json['notification_policy']),
|
|
59
|
+
'badgePolicy': json['badge_policy'] == null ? undefined : (0, CertificateBadgePolicy_1.CertificateBadgePolicyFromJSON)(json['badge_policy']),
|
|
53
60
|
'createdAt': json['created_at'],
|
|
54
61
|
'updatedAt': json['updated_at'],
|
|
55
62
|
};
|
|
@@ -70,6 +77,10 @@ function CertificateConfigToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
70
77
|
'require_quiz_pass': value['requireQuizPass'],
|
|
71
78
|
'min_quiz_score': value['minQuizScore'],
|
|
72
79
|
'quiz_config_id': value['quizConfigId'],
|
|
80
|
+
'certificate_template_id': value['certificateTemplateId'],
|
|
81
|
+
'renewal_policy': (0, CertificateRenewalPolicy_1.CertificateRenewalPolicyToJSON)(value['renewalPolicy']),
|
|
82
|
+
'notification_policy': (0, CertificateNotificationPolicy_1.CertificateNotificationPolicyToJSON)(value['notificationPolicy']),
|
|
83
|
+
'badge_policy': (0, CertificateBadgePolicy_1.CertificateBadgePolicyToJSON)(value['badgePolicy']),
|
|
73
84
|
'created_at': value['createdAt'],
|
|
74
85
|
'updated_at': value['updatedAt'],
|
|
75
86
|
};
|
|
@@ -0,0 +1,74 @@
|
|
|
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 CertificateEvent
|
|
16
|
+
*/
|
|
17
|
+
export interface CertificateEvent {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CertificateEvent
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CertificateEvent
|
|
28
|
+
*/
|
|
29
|
+
eventType: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CertificateEvent
|
|
34
|
+
*/
|
|
35
|
+
actorUserId?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {{ [key: string]: any; }}
|
|
39
|
+
* @memberof CertificateEvent
|
|
40
|
+
*/
|
|
41
|
+
oldValues?: {
|
|
42
|
+
[key: string]: any;
|
|
43
|
+
} | null;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {{ [key: string]: any; }}
|
|
47
|
+
* @memberof CertificateEvent
|
|
48
|
+
*/
|
|
49
|
+
newValues?: {
|
|
50
|
+
[key: string]: any;
|
|
51
|
+
} | null;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {{ [key: string]: any; }}
|
|
55
|
+
* @memberof CertificateEvent
|
|
56
|
+
*/
|
|
57
|
+
context: {
|
|
58
|
+
[key: string]: any;
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof CertificateEvent
|
|
64
|
+
*/
|
|
65
|
+
createdAt: number;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the CertificateEvent interface.
|
|
69
|
+
*/
|
|
70
|
+
export declare function instanceOfCertificateEvent(value: object): value is CertificateEvent;
|
|
71
|
+
export declare function CertificateEventFromJSON(json: any): CertificateEvent;
|
|
72
|
+
export declare function CertificateEventFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificateEvent;
|
|
73
|
+
export declare function CertificateEventToJSON(json: any): CertificateEvent;
|
|
74
|
+
export declare function CertificateEventToJSONTyped(value?: CertificateEvent | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfCertificateEvent = instanceOfCertificateEvent;
|
|
17
|
+
exports.CertificateEventFromJSON = CertificateEventFromJSON;
|
|
18
|
+
exports.CertificateEventFromJSONTyped = CertificateEventFromJSONTyped;
|
|
19
|
+
exports.CertificateEventToJSON = CertificateEventToJSON;
|
|
20
|
+
exports.CertificateEventToJSONTyped = CertificateEventToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CertificateEvent interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfCertificateEvent(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('eventType' in value) || value['eventType'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('context' in value) || value['context'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function CertificateEventFromJSON(json) {
|
|
36
|
+
return CertificateEventFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function CertificateEventFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'id': json['id'],
|
|
44
|
+
'eventType': json['event_type'],
|
|
45
|
+
'actorUserId': json['actor_user_id'] == null ? undefined : json['actor_user_id'],
|
|
46
|
+
'oldValues': json['old_values'] == null ? undefined : json['old_values'],
|
|
47
|
+
'newValues': json['new_values'] == null ? undefined : json['new_values'],
|
|
48
|
+
'context': json['context'],
|
|
49
|
+
'createdAt': json['created_at'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function CertificateEventToJSON(json) {
|
|
53
|
+
return CertificateEventToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function CertificateEventToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'id': value['id'],
|
|
61
|
+
'event_type': value['eventType'],
|
|
62
|
+
'actor_user_id': value['actorUserId'],
|
|
63
|
+
'old_values': value['oldValues'],
|
|
64
|
+
'new_values': value['newValues'],
|
|
65
|
+
'context': value['context'],
|
|
66
|
+
'created_at': value['createdAt'],
|
|
67
|
+
};
|
|
68
|
+
}
|