@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.
Files changed (258) hide show
  1. package/.openapi-generator/FILES +66 -0
  2. package/README.md +87 -2
  3. package/dist/apis/CertificateApi.d.ts +273 -0
  4. package/dist/apis/CertificateApi.js +663 -2
  5. package/dist/apis/CertificateTemplateApi.d.ts +591 -0
  6. package/dist/apis/CertificateTemplateApi.js +1546 -0
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +1 -0
  9. package/dist/esm/apis/CertificateApi.d.ts +273 -0
  10. package/dist/esm/apis/CertificateApi.js +662 -1
  11. package/dist/esm/apis/CertificateTemplateApi.d.ts +591 -0
  12. package/dist/esm/apis/CertificateTemplateApi.js +1542 -0
  13. package/dist/esm/apis/index.d.ts +1 -0
  14. package/dist/esm/apis/index.js +1 -0
  15. package/dist/esm/models/ArtifactConflict.d.ts +52 -0
  16. package/dist/esm/models/ArtifactConflict.js +58 -0
  17. package/dist/esm/models/BadgeIssuer.d.ts +80 -0
  18. package/dist/esm/models/BadgeIssuer.js +69 -0
  19. package/dist/esm/models/Certificate.d.ts +54 -0
  20. package/dist/esm/models/Certificate.js +30 -1
  21. package/dist/esm/models/CertificateArtifact.d.ts +72 -0
  22. package/dist/esm/models/CertificateArtifact.js +62 -0
  23. package/dist/esm/models/CertificateBadgePolicy.d.ts +69 -0
  24. package/dist/esm/models/CertificateBadgePolicy.js +64 -0
  25. package/dist/esm/models/CertificateBadgePolicyAlignmentsInner.d.ts +50 -0
  26. package/dist/esm/models/CertificateBadgePolicyAlignmentsInner.js +51 -0
  27. package/dist/esm/models/CertificateCanvasDocument.d.ts +53 -0
  28. package/dist/esm/models/CertificateCanvasDocument.js +59 -0
  29. package/dist/esm/models/CertificateCanvasDocumentPage.d.ts +60 -0
  30. package/dist/esm/models/CertificateCanvasDocumentPage.js +63 -0
  31. package/dist/esm/models/CertificateCanvasElement.d.ts +27 -0
  32. package/dist/esm/models/CertificateCanvasElement.js +79 -0
  33. package/dist/esm/models/CertificateCanvasImageElement.d.ts +90 -0
  34. package/dist/esm/models/CertificateCanvasImageElement.js +83 -0
  35. package/dist/esm/models/CertificateCanvasLineElement.d.ts +81 -0
  36. package/dist/esm/models/CertificateCanvasLineElement.js +77 -0
  37. package/dist/esm/models/CertificateCanvasPortalLogoElement.d.ts +69 -0
  38. package/dist/esm/models/CertificateCanvasPortalLogoElement.js +69 -0
  39. package/dist/esm/models/CertificateCanvasShapeElement.d.ts +87 -0
  40. package/dist/esm/models/CertificateCanvasShapeElement.js +81 -0
  41. package/dist/esm/models/CertificateCanvasTextElement.d.ts +115 -0
  42. package/dist/esm/models/CertificateCanvasTextElement.js +101 -0
  43. package/dist/esm/models/CertificateCanvasVerificationQrElement.d.ts +69 -0
  44. package/dist/esm/models/CertificateCanvasVerificationQrElement.js +69 -0
  45. package/dist/esm/models/CertificateConfig.d.ts +27 -0
  46. package/dist/esm/models/CertificateConfig.js +11 -0
  47. package/dist/esm/models/CertificateEvent.d.ts +74 -0
  48. package/dist/esm/models/CertificateEvent.js +61 -0
  49. package/dist/esm/models/CertificateNotificationPolicy.d.ts +76 -0
  50. package/dist/esm/models/CertificateNotificationPolicy.js +74 -0
  51. package/dist/esm/models/CertificatePublic.d.ts +35 -0
  52. package/dist/esm/models/CertificatePublic.js +22 -0
  53. package/dist/esm/models/CertificateRenewalPolicy.d.ts +46 -0
  54. package/dist/esm/models/CertificateRenewalPolicy.js +54 -0
  55. package/dist/esm/models/CertificateTemplate.d.ts +121 -0
  56. package/dist/esm/models/CertificateTemplate.js +97 -0
  57. package/dist/esm/models/CertificateTemplateVersion.d.ts +85 -0
  58. package/dist/esm/models/CertificateTemplateVersion.js +77 -0
  59. package/dist/esm/models/EffectiveCertificateConfig.d.ts +56 -0
  60. package/dist/esm/models/EffectiveCertificateConfig.js +35 -0
  61. package/dist/esm/models/GetCertificateAssetUpload.d.ts +64 -0
  62. package/dist/esm/models/GetCertificateAssetUpload.js +66 -0
  63. package/dist/esm/models/GetCertificateEventList.d.ts +33 -0
  64. package/dist/esm/models/GetCertificateEventList.js +44 -0
  65. package/dist/esm/models/GetCertificateTemplateList.d.ts +33 -0
  66. package/dist/esm/models/GetCertificateTemplateList.js +44 -0
  67. package/dist/esm/models/GetPublicBadgeCredentialStatus200Response.d.ts +48 -0
  68. package/dist/esm/models/GetPublicBadgeCredentialStatus200Response.js +56 -0
  69. package/dist/esm/models/GetUserCourseListItemCertificate.d.ts +1 -0
  70. package/dist/esm/models/GetUserCourseListItemCertificate.js +2 -1
  71. package/dist/esm/models/PostCertificateAssetComplete.d.ts +32 -0
  72. package/dist/esm/models/PostCertificateAssetComplete.js +43 -0
  73. package/dist/esm/models/PostCertificateAssetUpload.d.ts +53 -0
  74. package/dist/esm/models/PostCertificateAssetUpload.js +59 -0
  75. package/dist/esm/models/PostCertificateConfig.d.ts +27 -0
  76. package/dist/esm/models/PostCertificateConfig.js +11 -0
  77. package/dist/esm/models/PostCertificateLifecycleAction.d.ts +38 -0
  78. package/dist/esm/models/PostCertificateLifecycleAction.js +45 -0
  79. package/dist/esm/models/PostCertificateTemplate.d.ts +51 -0
  80. package/dist/esm/models/PostCertificateTemplate.js +50 -0
  81. package/dist/esm/models/PostCertificateTemplateClone.d.ts +44 -0
  82. package/dist/esm/models/PostCertificateTemplateClone.js +47 -0
  83. package/dist/esm/models/PostCertificateTemplatePreview.d.ts +41 -0
  84. package/dist/esm/models/PostCertificateTemplatePreview.js +46 -0
  85. package/dist/esm/models/PutBadgeIssuer.d.ts +44 -0
  86. package/dist/esm/models/PutBadgeIssuer.js +47 -0
  87. package/dist/esm/models/PutCertificateConfig.d.ts +27 -0
  88. package/dist/esm/models/PutCertificateConfig.js +11 -0
  89. package/dist/esm/models/PutCertificateTemplate.d.ts +44 -0
  90. package/dist/esm/models/PutCertificateTemplate.js +45 -0
  91. package/dist/esm/models/PutCertificateTemplateDraft.d.ts +39 -0
  92. package/dist/esm/models/PutCertificateTemplateDraft.js +46 -0
  93. package/dist/esm/models/index.d.ts +32 -0
  94. package/dist/esm/models/index.js +32 -0
  95. package/dist/models/ArtifactConflict.d.ts +52 -0
  96. package/dist/models/ArtifactConflict.js +66 -0
  97. package/dist/models/BadgeIssuer.d.ts +80 -0
  98. package/dist/models/BadgeIssuer.js +76 -0
  99. package/dist/models/Certificate.d.ts +54 -0
  100. package/dist/models/Certificate.js +31 -2
  101. package/dist/models/CertificateArtifact.d.ts +72 -0
  102. package/dist/models/CertificateArtifact.js +70 -0
  103. package/dist/models/CertificateBadgePolicy.d.ts +69 -0
  104. package/dist/models/CertificateBadgePolicy.js +71 -0
  105. package/dist/models/CertificateBadgePolicyAlignmentsInner.d.ts +50 -0
  106. package/dist/models/CertificateBadgePolicyAlignmentsInner.js +58 -0
  107. package/dist/models/CertificateCanvasDocument.d.ts +53 -0
  108. package/dist/models/CertificateCanvasDocument.js +67 -0
  109. package/dist/models/CertificateCanvasDocumentPage.d.ts +60 -0
  110. package/dist/models/CertificateCanvasDocumentPage.js +71 -0
  111. package/dist/models/CertificateCanvasElement.d.ts +27 -0
  112. package/dist/models/CertificateCanvasElement.js +85 -0
  113. package/dist/models/CertificateCanvasImageElement.d.ts +90 -0
  114. package/dist/models/CertificateCanvasImageElement.js +91 -0
  115. package/dist/models/CertificateCanvasLineElement.d.ts +81 -0
  116. package/dist/models/CertificateCanvasLineElement.js +85 -0
  117. package/dist/models/CertificateCanvasPortalLogoElement.d.ts +69 -0
  118. package/dist/models/CertificateCanvasPortalLogoElement.js +77 -0
  119. package/dist/models/CertificateCanvasShapeElement.d.ts +87 -0
  120. package/dist/models/CertificateCanvasShapeElement.js +89 -0
  121. package/dist/models/CertificateCanvasTextElement.d.ts +115 -0
  122. package/dist/models/CertificateCanvasTextElement.js +109 -0
  123. package/dist/models/CertificateCanvasVerificationQrElement.d.ts +69 -0
  124. package/dist/models/CertificateCanvasVerificationQrElement.js +77 -0
  125. package/dist/models/CertificateConfig.d.ts +27 -0
  126. package/dist/models/CertificateConfig.js +11 -0
  127. package/dist/models/CertificateEvent.d.ts +74 -0
  128. package/dist/models/CertificateEvent.js +68 -0
  129. package/dist/models/CertificateNotificationPolicy.d.ts +76 -0
  130. package/dist/models/CertificateNotificationPolicy.js +82 -0
  131. package/dist/models/CertificatePublic.d.ts +35 -0
  132. package/dist/models/CertificatePublic.js +23 -1
  133. package/dist/models/CertificateRenewalPolicy.d.ts +46 -0
  134. package/dist/models/CertificateRenewalPolicy.js +62 -0
  135. package/dist/models/CertificateTemplate.d.ts +121 -0
  136. package/dist/models/CertificateTemplate.js +105 -0
  137. package/dist/models/CertificateTemplateVersion.d.ts +85 -0
  138. package/dist/models/CertificateTemplateVersion.js +85 -0
  139. package/dist/models/EffectiveCertificateConfig.d.ts +56 -0
  140. package/dist/models/EffectiveCertificateConfig.js +36 -0
  141. package/dist/models/GetCertificateAssetUpload.d.ts +64 -0
  142. package/dist/models/GetCertificateAssetUpload.js +74 -0
  143. package/dist/models/GetCertificateEventList.d.ts +33 -0
  144. package/dist/models/GetCertificateEventList.js +51 -0
  145. package/dist/models/GetCertificateTemplateList.d.ts +33 -0
  146. package/dist/models/GetCertificateTemplateList.js +51 -0
  147. package/dist/models/GetPublicBadgeCredentialStatus200Response.d.ts +48 -0
  148. package/dist/models/GetPublicBadgeCredentialStatus200Response.js +64 -0
  149. package/dist/models/GetUserCourseListItemCertificate.d.ts +1 -0
  150. package/dist/models/GetUserCourseListItemCertificate.js +2 -1
  151. package/dist/models/PostCertificateAssetComplete.d.ts +32 -0
  152. package/dist/models/PostCertificateAssetComplete.js +50 -0
  153. package/dist/models/PostCertificateAssetUpload.d.ts +53 -0
  154. package/dist/models/PostCertificateAssetUpload.js +67 -0
  155. package/dist/models/PostCertificateConfig.d.ts +27 -0
  156. package/dist/models/PostCertificateConfig.js +11 -0
  157. package/dist/models/PostCertificateLifecycleAction.d.ts +38 -0
  158. package/dist/models/PostCertificateLifecycleAction.js +52 -0
  159. package/dist/models/PostCertificateTemplate.d.ts +51 -0
  160. package/dist/models/PostCertificateTemplate.js +57 -0
  161. package/dist/models/PostCertificateTemplateClone.d.ts +44 -0
  162. package/dist/models/PostCertificateTemplateClone.js +54 -0
  163. package/dist/models/PostCertificateTemplatePreview.d.ts +41 -0
  164. package/dist/models/PostCertificateTemplatePreview.js +53 -0
  165. package/dist/models/PutBadgeIssuer.d.ts +44 -0
  166. package/dist/models/PutBadgeIssuer.js +54 -0
  167. package/dist/models/PutCertificateConfig.d.ts +27 -0
  168. package/dist/models/PutCertificateConfig.js +11 -0
  169. package/dist/models/PutCertificateTemplate.d.ts +44 -0
  170. package/dist/models/PutCertificateTemplate.js +52 -0
  171. package/dist/models/PutCertificateTemplateDraft.d.ts +39 -0
  172. package/dist/models/PutCertificateTemplateDraft.js +53 -0
  173. package/dist/models/index.d.ts +32 -0
  174. package/dist/models/index.js +32 -0
  175. package/docs/ArtifactConflict.md +38 -0
  176. package/docs/BadgeIssuer.md +50 -0
  177. package/docs/Certificate.md +14 -0
  178. package/docs/CertificateApi.md +1119 -48
  179. package/docs/CertificateArtifact.md +44 -0
  180. package/docs/CertificateBadgePolicy.md +46 -0
  181. package/docs/CertificateBadgePolicyAlignmentsInner.md +40 -0
  182. package/docs/CertificateCanvasDocument.md +39 -0
  183. package/docs/CertificateCanvasDocumentPage.md +38 -0
  184. package/docs/CertificateCanvasElement.md +65 -0
  185. package/docs/CertificateCanvasImageElement.md +48 -0
  186. package/docs/CertificateCanvasLineElement.md +48 -0
  187. package/docs/CertificateCanvasPortalLogoElement.md +44 -0
  188. package/docs/CertificateCanvasShapeElement.md +50 -0
  189. package/docs/CertificateCanvasTextElement.md +54 -0
  190. package/docs/CertificateCanvasVerificationQrElement.md +44 -0
  191. package/docs/CertificateConfig.md +8 -0
  192. package/docs/CertificateEvent.md +46 -0
  193. package/docs/CertificateNotificationPolicy.md +46 -0
  194. package/docs/CertificatePublic.md +8 -0
  195. package/docs/CertificateRenewalPolicy.md +36 -0
  196. package/docs/CertificateTemplate.md +60 -0
  197. package/docs/CertificateTemplateApi.md +2493 -0
  198. package/docs/CertificateTemplateVersion.md +48 -0
  199. package/docs/EffectiveCertificateConfig.md +14 -0
  200. package/docs/GetCertificateAssetUpload.md +42 -0
  201. package/docs/GetCertificateEventList.md +34 -0
  202. package/docs/GetCertificateTemplateList.md +34 -0
  203. package/docs/GetPublicBadgeCredentialStatus200Response.md +36 -0
  204. package/docs/PostCertificateAssetComplete.md +34 -0
  205. package/docs/PostCertificateAssetUpload.md +38 -0
  206. package/docs/PostCertificateConfig.md +8 -0
  207. package/docs/PostCertificateLifecycleAction.md +36 -0
  208. package/docs/PostCertificateTemplate.md +40 -0
  209. package/docs/PostCertificateTemplateClone.md +38 -0
  210. package/docs/PostCertificateTemplatePreview.md +36 -0
  211. package/docs/PutBadgeIssuer.md +38 -0
  212. package/docs/PutCertificateConfig.md +8 -0
  213. package/docs/PutCertificateTemplate.md +38 -0
  214. package/docs/PutCertificateTemplateDraft.md +36 -0
  215. package/package.json +1 -1
  216. package/src/apis/CertificateApi.ts +952 -98
  217. package/src/apis/CertificateTemplateApi.ts +2020 -0
  218. package/src/apis/index.ts +1 -0
  219. package/src/models/ArtifactConflict.ts +95 -0
  220. package/src/models/BadgeIssuer.ts +135 -0
  221. package/src/models/Certificate.ts +79 -1
  222. package/src/models/CertificateArtifact.ts +119 -0
  223. package/src/models/CertificateBadgePolicy.ts +126 -0
  224. package/src/models/CertificateBadgePolicyAlignmentsInner.ts +91 -0
  225. package/src/models/CertificateCanvasDocument.ts +109 -0
  226. package/src/models/CertificateCanvasDocumentPage.ts +103 -0
  227. package/src/models/CertificateCanvasElement.ts +128 -0
  228. package/src/models/CertificateCanvasImageElement.ts +148 -0
  229. package/src/models/CertificateCanvasLineElement.ts +139 -0
  230. package/src/models/CertificateCanvasPortalLogoElement.ts +121 -0
  231. package/src/models/CertificateCanvasShapeElement.ts +148 -0
  232. package/src/models/CertificateCanvasTextElement.ts +183 -0
  233. package/src/models/CertificateCanvasVerificationQrElement.ts +121 -0
  234. package/src/models/CertificateConfig.ts +54 -0
  235. package/src/models/CertificateEvent.ts +117 -0
  236. package/src/models/CertificateNotificationPolicy.ts +131 -0
  237. package/src/models/CertificatePublic.ts +46 -0
  238. package/src/models/CertificateRenewalPolicy.ts +86 -0
  239. package/src/models/CertificateTemplate.ts +200 -0
  240. package/src/models/CertificateTemplateVersion.ts +148 -0
  241. package/src/models/EffectiveCertificateConfig.ts +96 -0
  242. package/src/models/GetCertificateAssetUpload.ts +113 -0
  243. package/src/models/GetCertificateEventList.ts +74 -0
  244. package/src/models/GetCertificateTemplateList.ts +74 -0
  245. package/src/models/GetPublicBadgeCredentialStatus200Response.ts +88 -0
  246. package/src/models/GetUserCourseListItemCertificate.ts +2 -1
  247. package/src/models/PostCertificateAssetComplete.ts +66 -0
  248. package/src/models/PostCertificateAssetUpload.ts +96 -0
  249. package/src/models/PostCertificateConfig.ts +54 -0
  250. package/src/models/PostCertificateLifecycleAction.ts +74 -0
  251. package/src/models/PostCertificateTemplate.ts +98 -0
  252. package/src/models/PostCertificateTemplateClone.ts +82 -0
  253. package/src/models/PostCertificateTemplatePreview.ts +82 -0
  254. package/src/models/PutBadgeIssuer.ts +82 -0
  255. package/src/models/PutCertificateConfig.ts +54 -0
  256. package/src/models/PutCertificateTemplate.ts +81 -0
  257. package/src/models/PutCertificateTemplateDraft.ts +82 -0
  258. package/src/models/index.ts +32 -0
@@ -0,0 +1,64 @@
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
+ import { CertificateBadgePolicyAlignmentsInnerFromJSON, CertificateBadgePolicyAlignmentsInnerToJSON, } from './CertificateBadgePolicyAlignmentsInner';
15
+ /**
16
+ * Check if a given object implements the CertificateBadgePolicy interface.
17
+ */
18
+ export function instanceOfCertificateBadgePolicy(value) {
19
+ if (!('enabled' in value) || value['enabled'] === undefined)
20
+ return false;
21
+ if (!('criteria' in value) || value['criteria'] === undefined)
22
+ return false;
23
+ if (!('tags' in value) || value['tags'] === undefined)
24
+ return false;
25
+ if (!('skills' in value) || value['skills'] === undefined)
26
+ return false;
27
+ if (!('alignments' in value) || value['alignments'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ export function CertificateBadgePolicyFromJSON(json) {
32
+ return CertificateBadgePolicyFromJSONTyped(json, false);
33
+ }
34
+ export function CertificateBadgePolicyFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'enabled': json['enabled'],
40
+ 'criteria': json['criteria'],
41
+ 'imageAssetId': json['image_asset_id'] == null ? undefined : json['image_asset_id'],
42
+ 'description': json['description'] == null ? undefined : json['description'],
43
+ 'tags': json['tags'],
44
+ 'skills': json['skills'],
45
+ 'alignments': (json['alignments'].map(CertificateBadgePolicyAlignmentsInnerFromJSON)),
46
+ };
47
+ }
48
+ export function CertificateBadgePolicyToJSON(json) {
49
+ return CertificateBadgePolicyToJSONTyped(json, false);
50
+ }
51
+ export function CertificateBadgePolicyToJSONTyped(value, ignoreDiscriminator = false) {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'enabled': value['enabled'],
57
+ 'criteria': value['criteria'],
58
+ 'image_asset_id': value['imageAssetId'],
59
+ 'description': value['description'],
60
+ 'tags': value['tags'],
61
+ 'skills': value['skills'],
62
+ 'alignments': (value['alignments'].map(CertificateBadgePolicyAlignmentsInnerToJSON)),
63
+ };
64
+ }
@@ -0,0 +1,50 @@
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 CertificateBadgePolicyAlignmentsInner
16
+ */
17
+ export interface CertificateBadgePolicyAlignmentsInner {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CertificateBadgePolicyAlignmentsInner
22
+ */
23
+ targetName: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof CertificateBadgePolicyAlignmentsInner
28
+ */
29
+ targetUrl: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof CertificateBadgePolicyAlignmentsInner
34
+ */
35
+ targetFramework?: string | null;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof CertificateBadgePolicyAlignmentsInner
40
+ */
41
+ targetCode?: string | null;
42
+ }
43
+ /**
44
+ * Check if a given object implements the CertificateBadgePolicyAlignmentsInner interface.
45
+ */
46
+ export declare function instanceOfCertificateBadgePolicyAlignmentsInner(value: object): value is CertificateBadgePolicyAlignmentsInner;
47
+ export declare function CertificateBadgePolicyAlignmentsInnerFromJSON(json: any): CertificateBadgePolicyAlignmentsInner;
48
+ export declare function CertificateBadgePolicyAlignmentsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificateBadgePolicyAlignmentsInner;
49
+ export declare function CertificateBadgePolicyAlignmentsInnerToJSON(json: any): CertificateBadgePolicyAlignmentsInner;
50
+ export declare function CertificateBadgePolicyAlignmentsInnerToJSONTyped(value?: CertificateBadgePolicyAlignmentsInner | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
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
+ * Check if a given object implements the CertificateBadgePolicyAlignmentsInner interface.
16
+ */
17
+ export function instanceOfCertificateBadgePolicyAlignmentsInner(value) {
18
+ if (!('targetName' in value) || value['targetName'] === undefined)
19
+ return false;
20
+ if (!('targetUrl' in value) || value['targetUrl'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function CertificateBadgePolicyAlignmentsInnerFromJSON(json) {
25
+ return CertificateBadgePolicyAlignmentsInnerFromJSONTyped(json, false);
26
+ }
27
+ export function CertificateBadgePolicyAlignmentsInnerFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'targetName': json['target_name'],
33
+ 'targetUrl': json['target_url'],
34
+ 'targetFramework': json['target_framework'] == null ? undefined : json['target_framework'],
35
+ 'targetCode': json['target_code'] == null ? undefined : json['target_code'],
36
+ };
37
+ }
38
+ export function CertificateBadgePolicyAlignmentsInnerToJSON(json) {
39
+ return CertificateBadgePolicyAlignmentsInnerToJSONTyped(json, false);
40
+ }
41
+ export function CertificateBadgePolicyAlignmentsInnerToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'target_name': value['targetName'],
47
+ 'target_url': value['targetUrl'],
48
+ 'target_framework': value['targetFramework'],
49
+ 'target_code': value['targetCode'],
50
+ };
51
+ }
@@ -0,0 +1,53 @@
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
+ import type { CertificateCanvasElement } from './CertificateCanvasElement';
13
+ import type { CertificateCanvasDocumentPage } from './CertificateCanvasDocumentPage';
14
+ /**
15
+ * Constrained fixed-page certificate-canvas-v1 document.
16
+ * @export
17
+ * @interface CertificateCanvasDocument
18
+ */
19
+ export interface CertificateCanvasDocument {
20
+ /**
21
+ *
22
+ * @type {CertificateCanvasDocumentFormatEnum}
23
+ * @memberof CertificateCanvasDocument
24
+ */
25
+ format: CertificateCanvasDocumentFormatEnum;
26
+ /**
27
+ *
28
+ * @type {CertificateCanvasDocumentPage}
29
+ * @memberof CertificateCanvasDocument
30
+ */
31
+ page: CertificateCanvasDocumentPage;
32
+ /**
33
+ *
34
+ * @type {Array<CertificateCanvasElement>}
35
+ * @memberof CertificateCanvasDocument
36
+ */
37
+ elements: Array<CertificateCanvasElement>;
38
+ }
39
+ /**
40
+ * @export
41
+ */
42
+ export declare const CertificateCanvasDocumentFormatEnum: {
43
+ readonly CertificateCanvasV1: "certificate-canvas-v1";
44
+ };
45
+ export type CertificateCanvasDocumentFormatEnum = typeof CertificateCanvasDocumentFormatEnum[keyof typeof CertificateCanvasDocumentFormatEnum];
46
+ /**
47
+ * Check if a given object implements the CertificateCanvasDocument interface.
48
+ */
49
+ export declare function instanceOfCertificateCanvasDocument(value: object): value is CertificateCanvasDocument;
50
+ export declare function CertificateCanvasDocumentFromJSON(json: any): CertificateCanvasDocument;
51
+ export declare function CertificateCanvasDocumentFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificateCanvasDocument;
52
+ export declare function CertificateCanvasDocumentToJSON(json: any): CertificateCanvasDocument;
53
+ export declare function CertificateCanvasDocumentToJSONTyped(value?: CertificateCanvasDocument | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,59 @@
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
+ import { CertificateCanvasElementFromJSON, CertificateCanvasElementToJSON, } from './CertificateCanvasElement';
15
+ import { CertificateCanvasDocumentPageFromJSON, CertificateCanvasDocumentPageToJSON, } from './CertificateCanvasDocumentPage';
16
+ /**
17
+ * @export
18
+ */
19
+ export const CertificateCanvasDocumentFormatEnum = {
20
+ CertificateCanvasV1: 'certificate-canvas-v1'
21
+ };
22
+ /**
23
+ * Check if a given object implements the CertificateCanvasDocument interface.
24
+ */
25
+ export function instanceOfCertificateCanvasDocument(value) {
26
+ if (!('format' in value) || value['format'] === undefined)
27
+ return false;
28
+ if (!('page' in value) || value['page'] === undefined)
29
+ return false;
30
+ if (!('elements' in value) || value['elements'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ export function CertificateCanvasDocumentFromJSON(json) {
35
+ return CertificateCanvasDocumentFromJSONTyped(json, false);
36
+ }
37
+ export function CertificateCanvasDocumentFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'format': json['format'],
43
+ 'page': CertificateCanvasDocumentPageFromJSON(json['page']),
44
+ 'elements': (json['elements'].map(CertificateCanvasElementFromJSON)),
45
+ };
46
+ }
47
+ export function CertificateCanvasDocumentToJSON(json) {
48
+ return CertificateCanvasDocumentToJSONTyped(json, false);
49
+ }
50
+ export function CertificateCanvasDocumentToJSONTyped(value, ignoreDiscriminator = false) {
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'format': value['format'],
56
+ 'page': CertificateCanvasDocumentPageToJSON(value['page']),
57
+ 'elements': (value['elements'].map(CertificateCanvasElementToJSON)),
58
+ };
59
+ }
@@ -0,0 +1,60 @@
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 CertificateCanvasDocumentPage
16
+ */
17
+ export interface CertificateCanvasDocumentPage {
18
+ /**
19
+ *
20
+ * @type {CertificateCanvasDocumentPageSizeEnum}
21
+ * @memberof CertificateCanvasDocumentPage
22
+ */
23
+ size: CertificateCanvasDocumentPageSizeEnum;
24
+ /**
25
+ *
26
+ * @type {CertificateCanvasDocumentPageOrientationEnum}
27
+ * @memberof CertificateCanvasDocumentPage
28
+ */
29
+ orientation: CertificateCanvasDocumentPageOrientationEnum;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof CertificateCanvasDocumentPage
34
+ */
35
+ backgroundColor?: string;
36
+ }
37
+ /**
38
+ * @export
39
+ */
40
+ export declare const CertificateCanvasDocumentPageSizeEnum: {
41
+ readonly A4: "a4";
42
+ readonly Letter: "letter";
43
+ };
44
+ export type CertificateCanvasDocumentPageSizeEnum = typeof CertificateCanvasDocumentPageSizeEnum[keyof typeof CertificateCanvasDocumentPageSizeEnum];
45
+ /**
46
+ * @export
47
+ */
48
+ export declare const CertificateCanvasDocumentPageOrientationEnum: {
49
+ readonly Portrait: "portrait";
50
+ readonly Landscape: "landscape";
51
+ };
52
+ export type CertificateCanvasDocumentPageOrientationEnum = typeof CertificateCanvasDocumentPageOrientationEnum[keyof typeof CertificateCanvasDocumentPageOrientationEnum];
53
+ /**
54
+ * Check if a given object implements the CertificateCanvasDocumentPage interface.
55
+ */
56
+ export declare function instanceOfCertificateCanvasDocumentPage(value: object): value is CertificateCanvasDocumentPage;
57
+ export declare function CertificateCanvasDocumentPageFromJSON(json: any): CertificateCanvasDocumentPage;
58
+ export declare function CertificateCanvasDocumentPageFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificateCanvasDocumentPage;
59
+ export declare function CertificateCanvasDocumentPageToJSON(json: any): CertificateCanvasDocumentPage;
60
+ export declare function CertificateCanvasDocumentPageToJSONTyped(value?: CertificateCanvasDocumentPage | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,63 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * @export
16
+ */
17
+ export const CertificateCanvasDocumentPageSizeEnum = {
18
+ A4: 'a4',
19
+ Letter: 'letter'
20
+ };
21
+ /**
22
+ * @export
23
+ */
24
+ export const CertificateCanvasDocumentPageOrientationEnum = {
25
+ Portrait: 'portrait',
26
+ Landscape: 'landscape'
27
+ };
28
+ /**
29
+ * Check if a given object implements the CertificateCanvasDocumentPage interface.
30
+ */
31
+ export function instanceOfCertificateCanvasDocumentPage(value) {
32
+ if (!('size' in value) || value['size'] === undefined)
33
+ return false;
34
+ if (!('orientation' in value) || value['orientation'] === undefined)
35
+ return false;
36
+ return true;
37
+ }
38
+ export function CertificateCanvasDocumentPageFromJSON(json) {
39
+ return CertificateCanvasDocumentPageFromJSONTyped(json, false);
40
+ }
41
+ export function CertificateCanvasDocumentPageFromJSONTyped(json, ignoreDiscriminator) {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+ 'size': json['size'],
47
+ 'orientation': json['orientation'],
48
+ 'backgroundColor': json['background_color'] == null ? undefined : json['background_color'],
49
+ };
50
+ }
51
+ export function CertificateCanvasDocumentPageToJSON(json) {
52
+ return CertificateCanvasDocumentPageToJSONTyped(json, false);
53
+ }
54
+ export function CertificateCanvasDocumentPageToJSONTyped(value, ignoreDiscriminator = false) {
55
+ if (value == null) {
56
+ return value;
57
+ }
58
+ return {
59
+ 'size': value['size'],
60
+ 'orientation': value['orientation'],
61
+ 'background_color': value['backgroundColor'],
62
+ };
63
+ }
@@ -0,0 +1,27 @@
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
+ import type { CertificateCanvasImageElement } from './CertificateCanvasImageElement';
13
+ import type { CertificateCanvasLineElement } from './CertificateCanvasLineElement';
14
+ import type { CertificateCanvasPortalLogoElement } from './CertificateCanvasPortalLogoElement';
15
+ import type { CertificateCanvasShapeElement } from './CertificateCanvasShapeElement';
16
+ import type { CertificateCanvasTextElement } from './CertificateCanvasTextElement';
17
+ import type { CertificateCanvasVerificationQrElement } from './CertificateCanvasVerificationQrElement';
18
+ /**
19
+ * @type CertificateCanvasElement
20
+ * A constrained certificate-canvas-v1 element.
21
+ * @export
22
+ */
23
+ export type CertificateCanvasElement = CertificateCanvasImageElement | CertificateCanvasLineElement | CertificateCanvasPortalLogoElement | CertificateCanvasShapeElement | CertificateCanvasTextElement | CertificateCanvasVerificationQrElement;
24
+ export declare function CertificateCanvasElementFromJSON(json: any): CertificateCanvasElement;
25
+ export declare function CertificateCanvasElementFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificateCanvasElement;
26
+ export declare function CertificateCanvasElementToJSON(json: any): any;
27
+ export declare function CertificateCanvasElementToJSONTyped(value?: CertificateCanvasElement | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,79 @@
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
+ import { instanceOfCertificateCanvasImageElement, CertificateCanvasImageElementFromJSONTyped, CertificateCanvasImageElementToJSON, } from './CertificateCanvasImageElement';
15
+ import { instanceOfCertificateCanvasLineElement, CertificateCanvasLineElementFromJSONTyped, CertificateCanvasLineElementToJSON, } from './CertificateCanvasLineElement';
16
+ import { instanceOfCertificateCanvasPortalLogoElement, CertificateCanvasPortalLogoElementFromJSONTyped, CertificateCanvasPortalLogoElementToJSON, } from './CertificateCanvasPortalLogoElement';
17
+ import { instanceOfCertificateCanvasShapeElement, CertificateCanvasShapeElementFromJSONTyped, CertificateCanvasShapeElementToJSON, } from './CertificateCanvasShapeElement';
18
+ import { instanceOfCertificateCanvasTextElement, CertificateCanvasTextElementFromJSONTyped, CertificateCanvasTextElementToJSON, } from './CertificateCanvasTextElement';
19
+ import { instanceOfCertificateCanvasVerificationQrElement, CertificateCanvasVerificationQrElementFromJSONTyped, CertificateCanvasVerificationQrElementToJSON, } from './CertificateCanvasVerificationQrElement';
20
+ export function CertificateCanvasElementFromJSON(json) {
21
+ return CertificateCanvasElementFromJSONTyped(json, false);
22
+ }
23
+ export function CertificateCanvasElementFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ if (typeof json !== 'object') {
28
+ return json;
29
+ }
30
+ if (instanceOfCertificateCanvasImageElement(json)) {
31
+ return CertificateCanvasImageElementFromJSONTyped(json, true);
32
+ }
33
+ if (instanceOfCertificateCanvasLineElement(json)) {
34
+ return CertificateCanvasLineElementFromJSONTyped(json, true);
35
+ }
36
+ if (instanceOfCertificateCanvasPortalLogoElement(json)) {
37
+ return CertificateCanvasPortalLogoElementFromJSONTyped(json, true);
38
+ }
39
+ if (instanceOfCertificateCanvasShapeElement(json)) {
40
+ return CertificateCanvasShapeElementFromJSONTyped(json, true);
41
+ }
42
+ if (instanceOfCertificateCanvasTextElement(json)) {
43
+ return CertificateCanvasTextElementFromJSONTyped(json, true);
44
+ }
45
+ if (instanceOfCertificateCanvasVerificationQrElement(json)) {
46
+ return CertificateCanvasVerificationQrElementFromJSONTyped(json, true);
47
+ }
48
+ return {};
49
+ }
50
+ export function CertificateCanvasElementToJSON(json) {
51
+ return CertificateCanvasElementToJSONTyped(json, false);
52
+ }
53
+ export function CertificateCanvasElementToJSONTyped(value, ignoreDiscriminator = false) {
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ if (typeof value !== 'object') {
58
+ return value;
59
+ }
60
+ if (instanceOfCertificateCanvasImageElement(value)) {
61
+ return CertificateCanvasImageElementToJSON(value);
62
+ }
63
+ if (instanceOfCertificateCanvasLineElement(value)) {
64
+ return CertificateCanvasLineElementToJSON(value);
65
+ }
66
+ if (instanceOfCertificateCanvasPortalLogoElement(value)) {
67
+ return CertificateCanvasPortalLogoElementToJSON(value);
68
+ }
69
+ if (instanceOfCertificateCanvasShapeElement(value)) {
70
+ return CertificateCanvasShapeElementToJSON(value);
71
+ }
72
+ if (instanceOfCertificateCanvasTextElement(value)) {
73
+ return CertificateCanvasTextElementToJSON(value);
74
+ }
75
+ if (instanceOfCertificateCanvasVerificationQrElement(value)) {
76
+ return CertificateCanvasVerificationQrElementToJSON(value);
77
+ }
78
+ return {};
79
+ }
@@ -0,0 +1,90 @@
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 CertificateCanvasImageElement
16
+ */
17
+ export interface CertificateCanvasImageElement {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CertificateCanvasImageElement
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {CertificateCanvasImageElementTypeEnum}
27
+ * @memberof CertificateCanvasImageElement
28
+ */
29
+ type: CertificateCanvasImageElementTypeEnum;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof CertificateCanvasImageElement
34
+ */
35
+ x: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof CertificateCanvasImageElement
40
+ */
41
+ y: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof CertificateCanvasImageElement
46
+ */
47
+ width: number;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof CertificateCanvasImageElement
52
+ */
53
+ height: number;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof CertificateCanvasImageElement
58
+ */
59
+ assetId: string;
60
+ /**
61
+ *
62
+ * @type {CertificateCanvasImageElementFitEnum}
63
+ * @memberof CertificateCanvasImageElement
64
+ */
65
+ fit?: CertificateCanvasImageElementFitEnum;
66
+ }
67
+ /**
68
+ * @export
69
+ */
70
+ export declare const CertificateCanvasImageElementTypeEnum: {
71
+ readonly Image: "image";
72
+ };
73
+ export type CertificateCanvasImageElementTypeEnum = typeof CertificateCanvasImageElementTypeEnum[keyof typeof CertificateCanvasImageElementTypeEnum];
74
+ /**
75
+ * @export
76
+ */
77
+ export declare const CertificateCanvasImageElementFitEnum: {
78
+ readonly Contain: "contain";
79
+ readonly Cover: "cover";
80
+ readonly Stretch: "stretch";
81
+ };
82
+ export type CertificateCanvasImageElementFitEnum = typeof CertificateCanvasImageElementFitEnum[keyof typeof CertificateCanvasImageElementFitEnum];
83
+ /**
84
+ * Check if a given object implements the CertificateCanvasImageElement interface.
85
+ */
86
+ export declare function instanceOfCertificateCanvasImageElement(value: object): value is CertificateCanvasImageElement;
87
+ export declare function CertificateCanvasImageElementFromJSON(json: any): CertificateCanvasImageElement;
88
+ export declare function CertificateCanvasImageElementFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificateCanvasImageElement;
89
+ export declare function CertificateCanvasImageElementToJSON(json: any): CertificateCanvasImageElement;
90
+ export declare function CertificateCanvasImageElementToJSONTyped(value?: CertificateCanvasImageElement | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,83 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * @export
16
+ */
17
+ export const CertificateCanvasImageElementTypeEnum = {
18
+ Image: 'image'
19
+ };
20
+ /**
21
+ * @export
22
+ */
23
+ export const CertificateCanvasImageElementFitEnum = {
24
+ Contain: 'contain',
25
+ Cover: 'cover',
26
+ Stretch: 'stretch'
27
+ };
28
+ /**
29
+ * Check if a given object implements the CertificateCanvasImageElement interface.
30
+ */
31
+ export function instanceOfCertificateCanvasImageElement(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 (!('assetId' in value) || value['assetId'] === undefined)
45
+ return false;
46
+ return true;
47
+ }
48
+ export function CertificateCanvasImageElementFromJSON(json) {
49
+ return CertificateCanvasImageElementFromJSONTyped(json, false);
50
+ }
51
+ export function CertificateCanvasImageElementFromJSONTyped(json, ignoreDiscriminator) {
52
+ if (json == null) {
53
+ return json;
54
+ }
55
+ return {
56
+ 'id': json['id'],
57
+ 'type': json['type'],
58
+ 'x': json['x'],
59
+ 'y': json['y'],
60
+ 'width': json['width'],
61
+ 'height': json['height'],
62
+ 'assetId': json['asset_id'],
63
+ 'fit': json['fit'] == null ? undefined : json['fit'],
64
+ };
65
+ }
66
+ export function CertificateCanvasImageElementToJSON(json) {
67
+ return CertificateCanvasImageElementToJSONTyped(json, false);
68
+ }
69
+ export function CertificateCanvasImageElementToJSONTyped(value, ignoreDiscriminator = false) {
70
+ if (value == null) {
71
+ return value;
72
+ }
73
+ return {
74
+ 'id': value['id'],
75
+ 'type': value['type'],
76
+ 'x': value['x'],
77
+ 'y': value['y'],
78
+ 'width': value['width'],
79
+ 'height': value['height'],
80
+ 'asset_id': value['assetId'],
81
+ 'fit': value['fit'],
82
+ };
83
+ }