@easyedu/js-lsm-api 1.86.0 → 1.88.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +66 -0
- package/README.md +87 -2
- package/dist/apis/CertificateApi.d.ts +273 -0
- package/dist/apis/CertificateApi.js +663 -2
- package/dist/apis/CertificateTemplateApi.d.ts +591 -0
- package/dist/apis/CertificateTemplateApi.js +1546 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/CertificateApi.d.ts +273 -0
- package/dist/esm/apis/CertificateApi.js +662 -1
- package/dist/esm/apis/CertificateTemplateApi.d.ts +591 -0
- package/dist/esm/apis/CertificateTemplateApi.js +1542 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/ArtifactConflict.d.ts +52 -0
- package/dist/esm/models/ArtifactConflict.js +58 -0
- package/dist/esm/models/BadgeIssuer.d.ts +80 -0
- package/dist/esm/models/BadgeIssuer.js +69 -0
- package/dist/esm/models/Certificate.d.ts +54 -0
- package/dist/esm/models/Certificate.js +30 -1
- package/dist/esm/models/CertificateArtifact.d.ts +72 -0
- package/dist/esm/models/CertificateArtifact.js +62 -0
- package/dist/esm/models/CertificateBadgePolicy.d.ts +69 -0
- package/dist/esm/models/CertificateBadgePolicy.js +64 -0
- package/dist/esm/models/CertificateBadgePolicyAlignmentsInner.d.ts +50 -0
- package/dist/esm/models/CertificateBadgePolicyAlignmentsInner.js +51 -0
- package/dist/esm/models/CertificateCanvasDocument.d.ts +53 -0
- package/dist/esm/models/CertificateCanvasDocument.js +59 -0
- package/dist/esm/models/CertificateCanvasDocumentPage.d.ts +60 -0
- package/dist/esm/models/CertificateCanvasDocumentPage.js +63 -0
- package/dist/esm/models/CertificateCanvasElement.d.ts +39 -0
- package/dist/esm/models/CertificateCanvasElement.js +67 -0
- package/dist/esm/models/CertificateCanvasImageElement.d.ts +90 -0
- package/dist/esm/models/CertificateCanvasImageElement.js +83 -0
- package/dist/esm/models/CertificateCanvasLineElement.d.ts +81 -0
- package/dist/esm/models/CertificateCanvasLineElement.js +77 -0
- package/dist/esm/models/CertificateCanvasPortalLogoElement.d.ts +69 -0
- package/dist/esm/models/CertificateCanvasPortalLogoElement.js +69 -0
- package/dist/esm/models/CertificateCanvasShapeElement.d.ts +87 -0
- package/dist/esm/models/CertificateCanvasShapeElement.js +81 -0
- package/dist/esm/models/CertificateCanvasTextElement.d.ts +115 -0
- package/dist/esm/models/CertificateCanvasTextElement.js +101 -0
- package/dist/esm/models/CertificateCanvasVerificationQrElement.d.ts +69 -0
- package/dist/esm/models/CertificateCanvasVerificationQrElement.js +69 -0
- package/dist/esm/models/CertificateConfig.d.ts +27 -0
- package/dist/esm/models/CertificateConfig.js +11 -0
- package/dist/esm/models/CertificateEvent.d.ts +74 -0
- package/dist/esm/models/CertificateEvent.js +61 -0
- package/dist/esm/models/CertificateNotificationPolicy.d.ts +76 -0
- package/dist/esm/models/CertificateNotificationPolicy.js +74 -0
- package/dist/esm/models/CertificatePublic.d.ts +35 -0
- package/dist/esm/models/CertificatePublic.js +22 -0
- package/dist/esm/models/CertificateRenewalPolicy.d.ts +46 -0
- package/dist/esm/models/CertificateRenewalPolicy.js +54 -0
- package/dist/esm/models/CertificateTemplate.d.ts +121 -0
- package/dist/esm/models/CertificateTemplate.js +97 -0
- package/dist/esm/models/CertificateTemplateVersion.d.ts +85 -0
- package/dist/esm/models/CertificateTemplateVersion.js +77 -0
- package/dist/esm/models/EffectiveCertificateConfig.d.ts +56 -0
- package/dist/esm/models/EffectiveCertificateConfig.js +35 -0
- package/dist/esm/models/GetCertificateAssetUpload.d.ts +64 -0
- package/dist/esm/models/GetCertificateAssetUpload.js +66 -0
- package/dist/esm/models/GetCertificateEventList.d.ts +33 -0
- package/dist/esm/models/GetCertificateEventList.js +44 -0
- package/dist/esm/models/GetCertificateTemplateList.d.ts +33 -0
- package/dist/esm/models/GetCertificateTemplateList.js +44 -0
- package/dist/esm/models/GetPublicBadgeCredentialStatus200Response.d.ts +48 -0
- package/dist/esm/models/GetPublicBadgeCredentialStatus200Response.js +56 -0
- package/dist/esm/models/GetUserCourseListItemCertificate.d.ts +1 -0
- package/dist/esm/models/GetUserCourseListItemCertificate.js +2 -1
- package/dist/esm/models/PostCertificateAssetComplete.d.ts +32 -0
- package/dist/esm/models/PostCertificateAssetComplete.js +43 -0
- package/dist/esm/models/PostCertificateAssetUpload.d.ts +53 -0
- package/dist/esm/models/PostCertificateAssetUpload.js +59 -0
- package/dist/esm/models/PostCertificateConfig.d.ts +27 -0
- package/dist/esm/models/PostCertificateConfig.js +11 -0
- package/dist/esm/models/PostCertificateLifecycleAction.d.ts +38 -0
- package/dist/esm/models/PostCertificateLifecycleAction.js +45 -0
- package/dist/esm/models/PostCertificateTemplate.d.ts +51 -0
- package/dist/esm/models/PostCertificateTemplate.js +50 -0
- package/dist/esm/models/PostCertificateTemplateClone.d.ts +44 -0
- package/dist/esm/models/PostCertificateTemplateClone.js +47 -0
- package/dist/esm/models/PostCertificateTemplatePreview.d.ts +41 -0
- package/dist/esm/models/PostCertificateTemplatePreview.js +46 -0
- package/dist/esm/models/PutBadgeIssuer.d.ts +44 -0
- package/dist/esm/models/PutBadgeIssuer.js +47 -0
- package/dist/esm/models/PutCertificateConfig.d.ts +27 -0
- package/dist/esm/models/PutCertificateConfig.js +11 -0
- package/dist/esm/models/PutCertificateTemplate.d.ts +44 -0
- package/dist/esm/models/PutCertificateTemplate.js +45 -0
- package/dist/esm/models/PutCertificateTemplateDraft.d.ts +39 -0
- package/dist/esm/models/PutCertificateTemplateDraft.js +46 -0
- package/dist/esm/models/index.d.ts +32 -0
- package/dist/esm/models/index.js +32 -0
- package/dist/models/ArtifactConflict.d.ts +52 -0
- package/dist/models/ArtifactConflict.js +66 -0
- package/dist/models/BadgeIssuer.d.ts +80 -0
- package/dist/models/BadgeIssuer.js +76 -0
- package/dist/models/Certificate.d.ts +54 -0
- package/dist/models/Certificate.js +31 -2
- package/dist/models/CertificateArtifact.d.ts +72 -0
- package/dist/models/CertificateArtifact.js +70 -0
- package/dist/models/CertificateBadgePolicy.d.ts +69 -0
- package/dist/models/CertificateBadgePolicy.js +71 -0
- package/dist/models/CertificateBadgePolicyAlignmentsInner.d.ts +50 -0
- package/dist/models/CertificateBadgePolicyAlignmentsInner.js +58 -0
- package/dist/models/CertificateCanvasDocument.d.ts +53 -0
- package/dist/models/CertificateCanvasDocument.js +67 -0
- package/dist/models/CertificateCanvasDocumentPage.d.ts +60 -0
- package/dist/models/CertificateCanvasDocumentPage.js +71 -0
- package/dist/models/CertificateCanvasElement.d.ts +39 -0
- package/dist/models/CertificateCanvasElement.js +73 -0
- package/dist/models/CertificateCanvasImageElement.d.ts +90 -0
- package/dist/models/CertificateCanvasImageElement.js +91 -0
- package/dist/models/CertificateCanvasLineElement.d.ts +81 -0
- package/dist/models/CertificateCanvasLineElement.js +85 -0
- package/dist/models/CertificateCanvasPortalLogoElement.d.ts +69 -0
- package/dist/models/CertificateCanvasPortalLogoElement.js +77 -0
- package/dist/models/CertificateCanvasShapeElement.d.ts +87 -0
- package/dist/models/CertificateCanvasShapeElement.js +89 -0
- package/dist/models/CertificateCanvasTextElement.d.ts +115 -0
- package/dist/models/CertificateCanvasTextElement.js +109 -0
- package/dist/models/CertificateCanvasVerificationQrElement.d.ts +69 -0
- package/dist/models/CertificateCanvasVerificationQrElement.js +77 -0
- package/dist/models/CertificateConfig.d.ts +27 -0
- package/dist/models/CertificateConfig.js +11 -0
- package/dist/models/CertificateEvent.d.ts +74 -0
- package/dist/models/CertificateEvent.js +68 -0
- package/dist/models/CertificateNotificationPolicy.d.ts +76 -0
- package/dist/models/CertificateNotificationPolicy.js +82 -0
- package/dist/models/CertificatePublic.d.ts +35 -0
- package/dist/models/CertificatePublic.js +23 -1
- package/dist/models/CertificateRenewalPolicy.d.ts +46 -0
- package/dist/models/CertificateRenewalPolicy.js +62 -0
- package/dist/models/CertificateTemplate.d.ts +121 -0
- package/dist/models/CertificateTemplate.js +105 -0
- package/dist/models/CertificateTemplateVersion.d.ts +85 -0
- package/dist/models/CertificateTemplateVersion.js +85 -0
- package/dist/models/EffectiveCertificateConfig.d.ts +56 -0
- package/dist/models/EffectiveCertificateConfig.js +36 -0
- package/dist/models/GetCertificateAssetUpload.d.ts +64 -0
- package/dist/models/GetCertificateAssetUpload.js +74 -0
- package/dist/models/GetCertificateEventList.d.ts +33 -0
- package/dist/models/GetCertificateEventList.js +51 -0
- package/dist/models/GetCertificateTemplateList.d.ts +33 -0
- package/dist/models/GetCertificateTemplateList.js +51 -0
- package/dist/models/GetPublicBadgeCredentialStatus200Response.d.ts +48 -0
- package/dist/models/GetPublicBadgeCredentialStatus200Response.js +64 -0
- package/dist/models/GetUserCourseListItemCertificate.d.ts +1 -0
- package/dist/models/GetUserCourseListItemCertificate.js +2 -1
- package/dist/models/PostCertificateAssetComplete.d.ts +32 -0
- package/dist/models/PostCertificateAssetComplete.js +50 -0
- package/dist/models/PostCertificateAssetUpload.d.ts +53 -0
- package/dist/models/PostCertificateAssetUpload.js +67 -0
- package/dist/models/PostCertificateConfig.d.ts +27 -0
- package/dist/models/PostCertificateConfig.js +11 -0
- package/dist/models/PostCertificateLifecycleAction.d.ts +38 -0
- package/dist/models/PostCertificateLifecycleAction.js +52 -0
- package/dist/models/PostCertificateTemplate.d.ts +51 -0
- package/dist/models/PostCertificateTemplate.js +57 -0
- package/dist/models/PostCertificateTemplateClone.d.ts +44 -0
- package/dist/models/PostCertificateTemplateClone.js +54 -0
- package/dist/models/PostCertificateTemplatePreview.d.ts +41 -0
- package/dist/models/PostCertificateTemplatePreview.js +53 -0
- package/dist/models/PutBadgeIssuer.d.ts +44 -0
- package/dist/models/PutBadgeIssuer.js +54 -0
- package/dist/models/PutCertificateConfig.d.ts +27 -0
- package/dist/models/PutCertificateConfig.js +11 -0
- package/dist/models/PutCertificateTemplate.d.ts +44 -0
- package/dist/models/PutCertificateTemplate.js +52 -0
- package/dist/models/PutCertificateTemplateDraft.d.ts +39 -0
- package/dist/models/PutCertificateTemplateDraft.js +53 -0
- package/dist/models/index.d.ts +32 -0
- package/dist/models/index.js +32 -0
- package/docs/ArtifactConflict.md +38 -0
- package/docs/BadgeIssuer.md +50 -0
- package/docs/Certificate.md +14 -0
- package/docs/CertificateApi.md +1119 -48
- package/docs/CertificateArtifact.md +44 -0
- package/docs/CertificateBadgePolicy.md +46 -0
- package/docs/CertificateBadgePolicyAlignmentsInner.md +40 -0
- package/docs/CertificateCanvasDocument.md +39 -0
- package/docs/CertificateCanvasDocumentPage.md +38 -0
- package/docs/CertificateCanvasElement.md +65 -0
- package/docs/CertificateCanvasImageElement.md +48 -0
- package/docs/CertificateCanvasLineElement.md +48 -0
- package/docs/CertificateCanvasPortalLogoElement.md +44 -0
- package/docs/CertificateCanvasShapeElement.md +50 -0
- package/docs/CertificateCanvasTextElement.md +54 -0
- package/docs/CertificateCanvasVerificationQrElement.md +44 -0
- package/docs/CertificateConfig.md +8 -0
- package/docs/CertificateEvent.md +46 -0
- package/docs/CertificateNotificationPolicy.md +46 -0
- package/docs/CertificatePublic.md +8 -0
- package/docs/CertificateRenewalPolicy.md +36 -0
- package/docs/CertificateTemplate.md +60 -0
- package/docs/CertificateTemplateApi.md +2493 -0
- package/docs/CertificateTemplateVersion.md +48 -0
- package/docs/EffectiveCertificateConfig.md +14 -0
- package/docs/GetCertificateAssetUpload.md +42 -0
- package/docs/GetCertificateEventList.md +34 -0
- package/docs/GetCertificateTemplateList.md +34 -0
- package/docs/GetPublicBadgeCredentialStatus200Response.md +36 -0
- package/docs/PostCertificateAssetComplete.md +34 -0
- package/docs/PostCertificateAssetUpload.md +38 -0
- package/docs/PostCertificateConfig.md +8 -0
- package/docs/PostCertificateLifecycleAction.md +36 -0
- package/docs/PostCertificateTemplate.md +40 -0
- package/docs/PostCertificateTemplateClone.md +38 -0
- package/docs/PostCertificateTemplatePreview.md +36 -0
- package/docs/PutBadgeIssuer.md +38 -0
- package/docs/PutCertificateConfig.md +8 -0
- package/docs/PutCertificateTemplate.md +38 -0
- package/docs/PutCertificateTemplateDraft.md +36 -0
- package/package.json +1 -1
- package/src/apis/CertificateApi.ts +952 -98
- package/src/apis/CertificateTemplateApi.ts +2020 -0
- package/src/apis/index.ts +1 -0
- package/src/models/ArtifactConflict.ts +95 -0
- package/src/models/BadgeIssuer.ts +135 -0
- package/src/models/Certificate.ts +79 -1
- package/src/models/CertificateArtifact.ts +119 -0
- package/src/models/CertificateBadgePolicy.ts +126 -0
- package/src/models/CertificateBadgePolicyAlignmentsInner.ts +91 -0
- package/src/models/CertificateCanvasDocument.ts +109 -0
- package/src/models/CertificateCanvasDocumentPage.ts +103 -0
- package/src/models/CertificateCanvasElement.ts +116 -0
- package/src/models/CertificateCanvasImageElement.ts +148 -0
- package/src/models/CertificateCanvasLineElement.ts +139 -0
- package/src/models/CertificateCanvasPortalLogoElement.ts +121 -0
- package/src/models/CertificateCanvasShapeElement.ts +148 -0
- package/src/models/CertificateCanvasTextElement.ts +183 -0
- package/src/models/CertificateCanvasVerificationQrElement.ts +121 -0
- package/src/models/CertificateConfig.ts +54 -0
- package/src/models/CertificateEvent.ts +117 -0
- package/src/models/CertificateNotificationPolicy.ts +131 -0
- package/src/models/CertificatePublic.ts +46 -0
- package/src/models/CertificateRenewalPolicy.ts +86 -0
- package/src/models/CertificateTemplate.ts +200 -0
- package/src/models/CertificateTemplateVersion.ts +148 -0
- package/src/models/EffectiveCertificateConfig.ts +96 -0
- package/src/models/GetCertificateAssetUpload.ts +113 -0
- package/src/models/GetCertificateEventList.ts +74 -0
- package/src/models/GetCertificateTemplateList.ts +74 -0
- package/src/models/GetPublicBadgeCredentialStatus200Response.ts +88 -0
- package/src/models/GetUserCourseListItemCertificate.ts +2 -1
- package/src/models/PostCertificateAssetComplete.ts +66 -0
- package/src/models/PostCertificateAssetUpload.ts +96 -0
- package/src/models/PostCertificateConfig.ts +54 -0
- package/src/models/PostCertificateLifecycleAction.ts +74 -0
- package/src/models/PostCertificateTemplate.ts +98 -0
- package/src/models/PostCertificateTemplateClone.ts +82 -0
- package/src/models/PostCertificateTemplatePreview.ts +82 -0
- package/src/models/PutBadgeIssuer.ts +82 -0
- package/src/models/PutCertificateConfig.ts +54 -0
- package/src/models/PutCertificateTemplate.ts +81 -0
- package/src/models/PutCertificateTemplateDraft.ts +82 -0
- package/src/models/index.ts +32 -0
|
@@ -0,0 +1,74 @@
|
|
|
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 { CertificateTemplate } from './CertificateTemplate';
|
|
17
|
+
import {
|
|
18
|
+
CertificateTemplateFromJSON,
|
|
19
|
+
CertificateTemplateFromJSONTyped,
|
|
20
|
+
CertificateTemplateToJSON,
|
|
21
|
+
CertificateTemplateToJSONTyped,
|
|
22
|
+
} from './CertificateTemplate';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface GetCertificateTemplateList
|
|
28
|
+
*/
|
|
29
|
+
export interface GetCertificateTemplateList {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<CertificateTemplate>}
|
|
33
|
+
* @memberof GetCertificateTemplateList
|
|
34
|
+
*/
|
|
35
|
+
items: Array<CertificateTemplate>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the GetCertificateTemplateList interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfGetCertificateTemplateList(value: object): value is GetCertificateTemplateList {
|
|
42
|
+
if (!('items' in value) || value['items'] === undefined) return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function GetCertificateTemplateListFromJSON(json: any): GetCertificateTemplateList {
|
|
47
|
+
return GetCertificateTemplateListFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function GetCertificateTemplateListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCertificateTemplateList {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'items': ((json['items'] as Array<any>).map(CertificateTemplateFromJSON)),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function GetCertificateTemplateListToJSON(json: any): GetCertificateTemplateList {
|
|
61
|
+
return GetCertificateTemplateListToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function GetCertificateTemplateListToJSONTyped(value?: GetCertificateTemplateList | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'items': ((value['items'] as Array<any>).map(CertificateTemplateToJSON)),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -0,0 +1,88 @@
|
|
|
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 GetPublicBadgeCredentialStatus200Response
|
|
20
|
+
*/
|
|
21
|
+
export interface GetPublicBadgeCredentialStatus200Response {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof GetPublicBadgeCredentialStatus200Response
|
|
26
|
+
*/
|
|
27
|
+
active: boolean;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {GetPublicBadgeCredentialStatus200ResponseStatusEnum}
|
|
31
|
+
* @memberof GetPublicBadgeCredentialStatus200Response
|
|
32
|
+
*/
|
|
33
|
+
status: GetPublicBadgeCredentialStatus200ResponseStatusEnum;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export const GetPublicBadgeCredentialStatus200ResponseStatusEnum = {
|
|
41
|
+
Active: 'active',
|
|
42
|
+
Revoked: 'revoked',
|
|
43
|
+
Superseded: 'superseded',
|
|
44
|
+
Expired: 'expired'
|
|
45
|
+
} as const;
|
|
46
|
+
export type GetPublicBadgeCredentialStatus200ResponseStatusEnum = typeof GetPublicBadgeCredentialStatus200ResponseStatusEnum[keyof typeof GetPublicBadgeCredentialStatus200ResponseStatusEnum];
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the GetPublicBadgeCredentialStatus200Response interface.
|
|
51
|
+
*/
|
|
52
|
+
export function instanceOfGetPublicBadgeCredentialStatus200Response(value: object): value is GetPublicBadgeCredentialStatus200Response {
|
|
53
|
+
if (!('active' in value) || value['active'] === undefined) return false;
|
|
54
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function GetPublicBadgeCredentialStatus200ResponseFromJSON(json: any): GetPublicBadgeCredentialStatus200Response {
|
|
59
|
+
return GetPublicBadgeCredentialStatus200ResponseFromJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function GetPublicBadgeCredentialStatus200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPublicBadgeCredentialStatus200Response {
|
|
63
|
+
if (json == null) {
|
|
64
|
+
return json;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
|
|
68
|
+
'active': json['active'],
|
|
69
|
+
'status': json['status'],
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function GetPublicBadgeCredentialStatus200ResponseToJSON(json: any): GetPublicBadgeCredentialStatus200Response {
|
|
74
|
+
return GetPublicBadgeCredentialStatus200ResponseToJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function GetPublicBadgeCredentialStatus200ResponseToJSONTyped(value?: GetPublicBadgeCredentialStatus200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
78
|
+
if (value == null) {
|
|
79
|
+
return value;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'active': value['active'],
|
|
85
|
+
'status': value['status'],
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
@@ -58,7 +58,8 @@ export interface GetUserCourseListItemCertificate {
|
|
|
58
58
|
export const GetUserCourseListItemCertificateStatusEnum = {
|
|
59
59
|
Active: 'active',
|
|
60
60
|
Expired: 'expired',
|
|
61
|
-
Revoked: 'revoked'
|
|
61
|
+
Revoked: 'revoked',
|
|
62
|
+
Superseded: 'superseded'
|
|
62
63
|
} as const;
|
|
63
64
|
export type GetUserCourseListItemCertificateStatusEnum = typeof GetUserCourseListItemCertificateStatusEnum[keyof typeof GetUserCourseListItemCertificateStatusEnum];
|
|
64
65
|
|
|
@@ -0,0 +1,66 @@
|
|
|
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 PostCertificateAssetComplete
|
|
20
|
+
*/
|
|
21
|
+
export interface PostCertificateAssetComplete {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PostCertificateAssetComplete
|
|
26
|
+
*/
|
|
27
|
+
checksumSha256: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the PostCertificateAssetComplete interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfPostCertificateAssetComplete(value: object): value is PostCertificateAssetComplete {
|
|
34
|
+
if (!('checksumSha256' in value) || value['checksumSha256'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function PostCertificateAssetCompleteFromJSON(json: any): PostCertificateAssetComplete {
|
|
39
|
+
return PostCertificateAssetCompleteFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function PostCertificateAssetCompleteFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostCertificateAssetComplete {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'checksumSha256': json['checksum_sha256'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function PostCertificateAssetCompleteToJSON(json: any): PostCertificateAssetComplete {
|
|
53
|
+
return PostCertificateAssetCompleteToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function PostCertificateAssetCompleteToJSONTyped(value?: PostCertificateAssetComplete | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'checksum_sha256': value['checksumSha256'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,96 @@
|
|
|
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 PostCertificateAssetUpload
|
|
20
|
+
*/
|
|
21
|
+
export interface PostCertificateAssetUpload {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PostCertificateAssetUpload
|
|
26
|
+
*/
|
|
27
|
+
filename: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {PostCertificateAssetUploadContentTypeEnum}
|
|
31
|
+
* @memberof PostCertificateAssetUpload
|
|
32
|
+
*/
|
|
33
|
+
contentType: PostCertificateAssetUploadContentTypeEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof PostCertificateAssetUpload
|
|
38
|
+
*/
|
|
39
|
+
byteSize: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export const PostCertificateAssetUploadContentTypeEnum = {
|
|
47
|
+
ImagePng: 'image/png',
|
|
48
|
+
ImageJpeg: 'image/jpeg',
|
|
49
|
+
ImageWebp: 'image/webp'
|
|
50
|
+
} as const;
|
|
51
|
+
export type PostCertificateAssetUploadContentTypeEnum = typeof PostCertificateAssetUploadContentTypeEnum[keyof typeof PostCertificateAssetUploadContentTypeEnum];
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the PostCertificateAssetUpload interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfPostCertificateAssetUpload(value: object): value is PostCertificateAssetUpload {
|
|
58
|
+
if (!('filename' in value) || value['filename'] === undefined) return false;
|
|
59
|
+
if (!('contentType' in value) || value['contentType'] === undefined) return false;
|
|
60
|
+
if (!('byteSize' in value) || value['byteSize'] === undefined) return false;
|
|
61
|
+
return true;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PostCertificateAssetUploadFromJSON(json: any): PostCertificateAssetUpload {
|
|
65
|
+
return PostCertificateAssetUploadFromJSONTyped(json, false);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function PostCertificateAssetUploadFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostCertificateAssetUpload {
|
|
69
|
+
if (json == null) {
|
|
70
|
+
return json;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
|
|
74
|
+
'filename': json['filename'],
|
|
75
|
+
'contentType': json['content_type'],
|
|
76
|
+
'byteSize': json['byte_size'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function PostCertificateAssetUploadToJSON(json: any): PostCertificateAssetUpload {
|
|
81
|
+
return PostCertificateAssetUploadToJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function PostCertificateAssetUploadToJSONTyped(value?: PostCertificateAssetUpload | null, ignoreDiscriminator: boolean = false): any {
|
|
85
|
+
if (value == null) {
|
|
86
|
+
return value;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
return {
|
|
90
|
+
|
|
91
|
+
'filename': value['filename'],
|
|
92
|
+
'content_type': value['contentType'],
|
|
93
|
+
'byte_size': value['byteSize'],
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
|
|
@@ -13,6 +13,28 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { CertificateNotificationPolicy } from './CertificateNotificationPolicy';
|
|
17
|
+
import {
|
|
18
|
+
CertificateNotificationPolicyFromJSON,
|
|
19
|
+
CertificateNotificationPolicyFromJSONTyped,
|
|
20
|
+
CertificateNotificationPolicyToJSON,
|
|
21
|
+
CertificateNotificationPolicyToJSONTyped,
|
|
22
|
+
} from './CertificateNotificationPolicy';
|
|
23
|
+
import type { CertificateRenewalPolicy } from './CertificateRenewalPolicy';
|
|
24
|
+
import {
|
|
25
|
+
CertificateRenewalPolicyFromJSON,
|
|
26
|
+
CertificateRenewalPolicyFromJSONTyped,
|
|
27
|
+
CertificateRenewalPolicyToJSON,
|
|
28
|
+
CertificateRenewalPolicyToJSONTyped,
|
|
29
|
+
} from './CertificateRenewalPolicy';
|
|
30
|
+
import type { CertificateBadgePolicy } from './CertificateBadgePolicy';
|
|
31
|
+
import {
|
|
32
|
+
CertificateBadgePolicyFromJSON,
|
|
33
|
+
CertificateBadgePolicyFromJSONTyped,
|
|
34
|
+
CertificateBadgePolicyToJSON,
|
|
35
|
+
CertificateBadgePolicyToJSONTyped,
|
|
36
|
+
} from './CertificateBadgePolicy';
|
|
37
|
+
|
|
16
38
|
/**
|
|
17
39
|
*
|
|
18
40
|
* @export
|
|
@@ -55,6 +77,30 @@ export interface PostCertificateConfig {
|
|
|
55
77
|
* @memberof PostCertificateConfig
|
|
56
78
|
*/
|
|
57
79
|
quizConfigId?: string | null;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof PostCertificateConfig
|
|
84
|
+
*/
|
|
85
|
+
certificateTemplateId?: string | null;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {CertificateRenewalPolicy}
|
|
89
|
+
* @memberof PostCertificateConfig
|
|
90
|
+
*/
|
|
91
|
+
renewalPolicy?: CertificateRenewalPolicy | null;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {CertificateNotificationPolicy}
|
|
95
|
+
* @memberof PostCertificateConfig
|
|
96
|
+
*/
|
|
97
|
+
notificationPolicy?: CertificateNotificationPolicy | null;
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @type {CertificateBadgePolicy}
|
|
101
|
+
* @memberof PostCertificateConfig
|
|
102
|
+
*/
|
|
103
|
+
badgePolicy?: CertificateBadgePolicy | null;
|
|
58
104
|
}
|
|
59
105
|
|
|
60
106
|
/**
|
|
@@ -81,6 +127,10 @@ export function PostCertificateConfigFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
81
127
|
'requireQuizPass': json['require_quiz_pass'] == null ? undefined : json['require_quiz_pass'],
|
|
82
128
|
'minQuizScore': json['min_quiz_score'] == null ? undefined : json['min_quiz_score'],
|
|
83
129
|
'quizConfigId': json['quiz_config_id'] == null ? undefined : json['quiz_config_id'],
|
|
130
|
+
'certificateTemplateId': json['certificate_template_id'] == null ? undefined : json['certificate_template_id'],
|
|
131
|
+
'renewalPolicy': json['renewal_policy'] == null ? undefined : CertificateRenewalPolicyFromJSON(json['renewal_policy']),
|
|
132
|
+
'notificationPolicy': json['notification_policy'] == null ? undefined : CertificateNotificationPolicyFromJSON(json['notification_policy']),
|
|
133
|
+
'badgePolicy': json['badge_policy'] == null ? undefined : CertificateBadgePolicyFromJSON(json['badge_policy']),
|
|
84
134
|
};
|
|
85
135
|
}
|
|
86
136
|
|
|
@@ -101,6 +151,10 @@ export function PostCertificateConfigToJSONTyped(value?: PostCertificateConfig |
|
|
|
101
151
|
'require_quiz_pass': value['requireQuizPass'],
|
|
102
152
|
'min_quiz_score': value['minQuizScore'],
|
|
103
153
|
'quiz_config_id': value['quizConfigId'],
|
|
154
|
+
'certificate_template_id': value['certificateTemplateId'],
|
|
155
|
+
'renewal_policy': CertificateRenewalPolicyToJSON(value['renewalPolicy']),
|
|
156
|
+
'notification_policy': CertificateNotificationPolicyToJSON(value['notificationPolicy']),
|
|
157
|
+
'badge_policy': CertificateBadgePolicyToJSON(value['badgePolicy']),
|
|
104
158
|
};
|
|
105
159
|
}
|
|
106
160
|
|
|
@@ -0,0 +1,74 @@
|
|
|
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 PostCertificateLifecycleAction
|
|
20
|
+
*/
|
|
21
|
+
export interface PostCertificateLifecycleAction {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PostCertificateLifecycleAction
|
|
26
|
+
*/
|
|
27
|
+
reason: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof PostCertificateLifecycleAction
|
|
32
|
+
*/
|
|
33
|
+
expiresAt?: number | null;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the PostCertificateLifecycleAction interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfPostCertificateLifecycleAction(value: object): value is PostCertificateLifecycleAction {
|
|
40
|
+
if (!('reason' in value) || value['reason'] === undefined) return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function PostCertificateLifecycleActionFromJSON(json: any): PostCertificateLifecycleAction {
|
|
45
|
+
return PostCertificateLifecycleActionFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function PostCertificateLifecycleActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostCertificateLifecycleAction {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
|
|
54
|
+
'reason': json['reason'],
|
|
55
|
+
'expiresAt': json['expires_at'] == null ? undefined : json['expires_at'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function PostCertificateLifecycleActionToJSON(json: any): PostCertificateLifecycleAction {
|
|
60
|
+
return PostCertificateLifecycleActionToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function PostCertificateLifecycleActionToJSONTyped(value?: PostCertificateLifecycleAction | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'reason': value['reason'],
|
|
71
|
+
'expires_at': value['expiresAt'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -0,0 +1,98 @@
|
|
|
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 { CertificateCanvasDocument } from './CertificateCanvasDocument';
|
|
17
|
+
import {
|
|
18
|
+
CertificateCanvasDocumentFromJSON,
|
|
19
|
+
CertificateCanvasDocumentFromJSONTyped,
|
|
20
|
+
CertificateCanvasDocumentToJSON,
|
|
21
|
+
CertificateCanvasDocumentToJSONTyped,
|
|
22
|
+
} from './CertificateCanvasDocument';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface PostCertificateTemplate
|
|
28
|
+
*/
|
|
29
|
+
export interface PostCertificateTemplate {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PostCertificateTemplate
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof PostCertificateTemplate
|
|
40
|
+
*/
|
|
41
|
+
description?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof PostCertificateTemplate
|
|
46
|
+
*/
|
|
47
|
+
isDefault?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {CertificateCanvasDocument}
|
|
51
|
+
* @memberof PostCertificateTemplate
|
|
52
|
+
*/
|
|
53
|
+
designDocument?: CertificateCanvasDocument;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the PostCertificateTemplate interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfPostCertificateTemplate(value: object): value is PostCertificateTemplate {
|
|
60
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
61
|
+
return true;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PostCertificateTemplateFromJSON(json: any): PostCertificateTemplate {
|
|
65
|
+
return PostCertificateTemplateFromJSONTyped(json, false);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function PostCertificateTemplateFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostCertificateTemplate {
|
|
69
|
+
if (json == null) {
|
|
70
|
+
return json;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
|
|
74
|
+
'name': json['name'],
|
|
75
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
76
|
+
'isDefault': json['is_default'] == null ? undefined : json['is_default'],
|
|
77
|
+
'designDocument': json['design_document'] == null ? undefined : CertificateCanvasDocumentFromJSON(json['design_document']),
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function PostCertificateTemplateToJSON(json: any): PostCertificateTemplate {
|
|
82
|
+
return PostCertificateTemplateToJSONTyped(json, false);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function PostCertificateTemplateToJSONTyped(value?: PostCertificateTemplate | null, ignoreDiscriminator: boolean = false): any {
|
|
86
|
+
if (value == null) {
|
|
87
|
+
return value;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
return {
|
|
91
|
+
|
|
92
|
+
'name': value['name'],
|
|
93
|
+
'description': value['description'],
|
|
94
|
+
'is_default': value['isDefault'],
|
|
95
|
+
'design_document': CertificateCanvasDocumentToJSON(value['designDocument']),
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
|
|
@@ -0,0 +1,82 @@
|
|
|
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 PostCertificateTemplateClone
|
|
20
|
+
*/
|
|
21
|
+
export interface PostCertificateTemplateClone {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PostCertificateTemplateClone
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PostCertificateTemplateClone
|
|
32
|
+
*/
|
|
33
|
+
description?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof PostCertificateTemplateClone
|
|
38
|
+
*/
|
|
39
|
+
isDefault?: boolean;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the PostCertificateTemplateClone interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfPostCertificateTemplateClone(value: object): value is PostCertificateTemplateClone {
|
|
46
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function PostCertificateTemplateCloneFromJSON(json: any): PostCertificateTemplateClone {
|
|
51
|
+
return PostCertificateTemplateCloneFromJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function PostCertificateTemplateCloneFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostCertificateTemplateClone {
|
|
55
|
+
if (json == null) {
|
|
56
|
+
return json;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
|
|
60
|
+
'name': json['name'],
|
|
61
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
62
|
+
'isDefault': json['is_default'] == null ? undefined : json['is_default'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function PostCertificateTemplateCloneToJSON(json: any): PostCertificateTemplateClone {
|
|
67
|
+
return PostCertificateTemplateCloneToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function PostCertificateTemplateCloneToJSONTyped(value?: PostCertificateTemplateClone | null, ignoreDiscriminator: boolean = false): any {
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'name': value['name'],
|
|
78
|
+
'description': value['description'],
|
|
79
|
+
'is_default': value['isDefault'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|