@easyedu/js-lsm-api 1.83.0 → 1.85.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 (277) hide show
  1. package/.openapi-generator/FILES +84 -0
  2. package/README.md +106 -2
  3. package/dist/apis/ContentLibraryApi.d.ts +290 -0
  4. package/dist/apis/ContentLibraryApi.js +744 -0
  5. package/dist/apis/CourseApi.d.ts +172 -0
  6. package/dist/apis/CourseApi.js +443 -0
  7. package/dist/apis/EmailTemplateApi.d.ts +504 -0
  8. package/dist/apis/EmailTemplateApi.js +1299 -0
  9. package/dist/apis/PlayerApi.d.ts +112 -0
  10. package/dist/apis/PlayerApi.js +297 -0
  11. package/dist/apis/index.d.ts +2 -0
  12. package/dist/apis/index.js +2 -0
  13. package/dist/esm/apis/ContentLibraryApi.d.ts +290 -0
  14. package/dist/esm/apis/ContentLibraryApi.js +740 -0
  15. package/dist/esm/apis/CourseApi.d.ts +172 -0
  16. package/dist/esm/apis/CourseApi.js +443 -0
  17. package/dist/esm/apis/EmailTemplateApi.d.ts +504 -0
  18. package/dist/esm/apis/EmailTemplateApi.js +1295 -0
  19. package/dist/esm/apis/PlayerApi.d.ts +112 -0
  20. package/dist/esm/apis/PlayerApi.js +297 -0
  21. package/dist/esm/apis/index.d.ts +2 -0
  22. package/dist/esm/apis/index.js +2 -0
  23. package/dist/esm/models/ContentLibraryVersionStatus.d.ts +26 -0
  24. package/dist/esm/models/ContentLibraryVersionStatus.js +44 -0
  25. package/dist/esm/models/EmailTemplateDefinition.d.ts +64 -0
  26. package/dist/esm/models/EmailTemplateDefinition.js +65 -0
  27. package/dist/esm/models/EmailTemplateScope.d.ts +25 -0
  28. package/dist/esm/models/EmailTemplateScope.js +43 -0
  29. package/dist/esm/models/EmailTemplateVariable.d.ts +59 -0
  30. package/dist/esm/models/EmailTemplateVariable.js +63 -0
  31. package/dist/esm/models/EmailTemplateVersion.d.ts +110 -0
  32. package/dist/esm/models/EmailTemplateVersion.js +86 -0
  33. package/dist/esm/models/GetContentLibraryVersion.d.ts +126 -0
  34. package/dist/esm/models/GetContentLibraryVersion.js +87 -0
  35. package/dist/esm/models/GetCourseVersion.d.ts +101 -0
  36. package/dist/esm/models/GetCourseVersion.js +86 -0
  37. package/dist/esm/models/GetCourseVersionItem.d.ts +135 -0
  38. package/dist/esm/models/GetCourseVersionItem.js +104 -0
  39. package/dist/esm/models/GetCourseVersionItemLaunch.d.ts +103 -0
  40. package/dist/esm/models/GetCourseVersionItemLaunch.js +82 -0
  41. package/dist/esm/models/GetCourseVersionItemSession.d.ts +124 -0
  42. package/dist/esm/models/GetCourseVersionItemSession.js +101 -0
  43. package/dist/esm/models/GetCourseVersionList.d.ts +33 -0
  44. package/dist/esm/models/GetCourseVersionList.js +44 -0
  45. package/dist/esm/models/GetCourseVersionModule.d.ts +64 -0
  46. package/dist/esm/models/GetCourseVersionModule.js +65 -0
  47. package/dist/esm/models/GetEmailAssetUpload.d.ts +50 -0
  48. package/dist/esm/models/GetEmailAssetUpload.js +55 -0
  49. package/dist/esm/models/GetEmailDelivery.d.ts +123 -0
  50. package/dist/esm/models/GetEmailDelivery.js +93 -0
  51. package/dist/esm/models/GetEmailDeliveryList.d.ts +51 -0
  52. package/dist/esm/models/GetEmailDeliveryList.js +56 -0
  53. package/dist/esm/models/GetEmailTemplate.d.ts +74 -0
  54. package/dist/esm/models/GetEmailTemplate.js +70 -0
  55. package/dist/esm/models/GetEmailTemplateList.d.ts +33 -0
  56. package/dist/esm/models/GetEmailTemplateList.js +44 -0
  57. package/dist/esm/models/GetEmailTemplatePreview.d.ts +44 -0
  58. package/dist/esm/models/GetEmailTemplatePreview.js +51 -0
  59. package/dist/esm/models/GetResource.d.ts +118 -0
  60. package/dist/esm/models/GetResource.js +95 -0
  61. package/dist/esm/models/GetResourceList.d.ts +57 -0
  62. package/dist/esm/models/GetResourceList.js +60 -0
  63. package/dist/esm/models/GetResourceUsage.d.ts +63 -0
  64. package/dist/esm/models/GetResourceUsage.js +64 -0
  65. package/dist/esm/models/GetResourceUsageCoursesInner.d.ts +63 -0
  66. package/dist/esm/models/GetResourceUsageCoursesInner.js +64 -0
  67. package/dist/esm/models/GetResourceVersionUpload.d.ts +38 -0
  68. package/dist/esm/models/GetResourceVersionUpload.js +47 -0
  69. package/dist/esm/models/PostCourseDraft.d.ts +32 -0
  70. package/dist/esm/models/PostCourseDraft.js +41 -0
  71. package/dist/esm/models/PostCourseVersionItem.d.ts +97 -0
  72. package/dist/esm/models/PostCourseVersionItem.js +71 -0
  73. package/dist/esm/models/PostCourseVersionItemSession.d.ts +32 -0
  74. package/dist/esm/models/PostCourseVersionItemSession.js +41 -0
  75. package/dist/esm/models/PostCourseVersionPublish.d.ts +32 -0
  76. package/dist/esm/models/PostCourseVersionPublish.js +41 -0
  77. package/dist/esm/models/PostEmailAssetComplete.d.ts +32 -0
  78. package/dist/esm/models/PostEmailAssetComplete.js +43 -0
  79. package/dist/esm/models/PostEmailAssetUpload.d.ts +54 -0
  80. package/dist/esm/models/PostEmailAssetUpload.js +60 -0
  81. package/dist/esm/models/PostEmailTemplatePreview.d.ts +64 -0
  82. package/dist/esm/models/PostEmailTemplatePreview.js +55 -0
  83. package/dist/esm/models/PostEmailTemplateTestSend.d.ts +32 -0
  84. package/dist/esm/models/PostEmailTemplateTestSend.js +43 -0
  85. package/dist/esm/models/PostResource.d.ts +58 -0
  86. package/dist/esm/models/PostResource.js +55 -0
  87. package/dist/esm/models/PostResourceVersion.d.ts +45 -0
  88. package/dist/esm/models/PostResourceVersion.js +46 -0
  89. package/dist/esm/models/PostResourceVersionComplete.d.ts +32 -0
  90. package/dist/esm/models/PostResourceVersionComplete.js +43 -0
  91. package/dist/esm/models/PostResourceVersionUpload.d.ts +50 -0
  92. package/dist/esm/models/PostResourceVersionUpload.js +55 -0
  93. package/dist/esm/models/PutCourseVersionItem.d.ts +85 -0
  94. package/dist/esm/models/PutCourseVersionItem.js +63 -0
  95. package/dist/esm/models/PutEmailTemplateDraft.d.ts +64 -0
  96. package/dist/esm/models/PutEmailTemplateDraft.js +55 -0
  97. package/dist/esm/models/PutResource.d.ts +38 -0
  98. package/dist/esm/models/PutResource.js +43 -0
  99. package/dist/esm/models/PutResourceVersion.d.ts +53 -0
  100. package/dist/esm/models/PutResourceVersion.js +48 -0
  101. package/dist/esm/models/ResourceType.d.ts +32 -0
  102. package/dist/esm/models/ResourceType.js +50 -0
  103. package/dist/esm/models/index.d.ts +40 -0
  104. package/dist/esm/models/index.js +40 -0
  105. package/dist/models/ContentLibraryVersionStatus.d.ts +26 -0
  106. package/dist/models/ContentLibraryVersionStatus.js +52 -0
  107. package/dist/models/EmailTemplateDefinition.d.ts +64 -0
  108. package/dist/models/EmailTemplateDefinition.js +72 -0
  109. package/dist/models/EmailTemplateScope.d.ts +25 -0
  110. package/dist/models/EmailTemplateScope.js +51 -0
  111. package/dist/models/EmailTemplateVariable.d.ts +59 -0
  112. package/dist/models/EmailTemplateVariable.js +71 -0
  113. package/dist/models/EmailTemplateVersion.d.ts +110 -0
  114. package/dist/models/EmailTemplateVersion.js +94 -0
  115. package/dist/models/GetContentLibraryVersion.d.ts +126 -0
  116. package/dist/models/GetContentLibraryVersion.js +94 -0
  117. package/dist/models/GetCourseVersion.d.ts +101 -0
  118. package/dist/models/GetCourseVersion.js +93 -0
  119. package/dist/models/GetCourseVersionItem.d.ts +135 -0
  120. package/dist/models/GetCourseVersionItem.js +112 -0
  121. package/dist/models/GetCourseVersionItemLaunch.d.ts +103 -0
  122. package/dist/models/GetCourseVersionItemLaunch.js +89 -0
  123. package/dist/models/GetCourseVersionItemSession.d.ts +124 -0
  124. package/dist/models/GetCourseVersionItemSession.js +108 -0
  125. package/dist/models/GetCourseVersionList.d.ts +33 -0
  126. package/dist/models/GetCourseVersionList.js +51 -0
  127. package/dist/models/GetCourseVersionModule.d.ts +64 -0
  128. package/dist/models/GetCourseVersionModule.js +72 -0
  129. package/dist/models/GetEmailAssetUpload.d.ts +50 -0
  130. package/dist/models/GetEmailAssetUpload.js +62 -0
  131. package/dist/models/GetEmailDelivery.d.ts +123 -0
  132. package/dist/models/GetEmailDelivery.js +101 -0
  133. package/dist/models/GetEmailDeliveryList.d.ts +51 -0
  134. package/dist/models/GetEmailDeliveryList.js +63 -0
  135. package/dist/models/GetEmailTemplate.d.ts +74 -0
  136. package/dist/models/GetEmailTemplate.js +78 -0
  137. package/dist/models/GetEmailTemplateList.d.ts +33 -0
  138. package/dist/models/GetEmailTemplateList.js +51 -0
  139. package/dist/models/GetEmailTemplatePreview.d.ts +44 -0
  140. package/dist/models/GetEmailTemplatePreview.js +58 -0
  141. package/dist/models/GetResource.d.ts +118 -0
  142. package/dist/models/GetResource.js +102 -0
  143. package/dist/models/GetResourceList.d.ts +57 -0
  144. package/dist/models/GetResourceList.js +67 -0
  145. package/dist/models/GetResourceUsage.d.ts +63 -0
  146. package/dist/models/GetResourceUsage.js +71 -0
  147. package/dist/models/GetResourceUsageCoursesInner.d.ts +63 -0
  148. package/dist/models/GetResourceUsageCoursesInner.js +71 -0
  149. package/dist/models/GetResourceVersionUpload.d.ts +38 -0
  150. package/dist/models/GetResourceVersionUpload.js +54 -0
  151. package/dist/models/PostCourseDraft.d.ts +32 -0
  152. package/dist/models/PostCourseDraft.js +48 -0
  153. package/dist/models/PostCourseVersionItem.d.ts +97 -0
  154. package/dist/models/PostCourseVersionItem.js +79 -0
  155. package/dist/models/PostCourseVersionItemSession.d.ts +32 -0
  156. package/dist/models/PostCourseVersionItemSession.js +48 -0
  157. package/dist/models/PostCourseVersionPublish.d.ts +32 -0
  158. package/dist/models/PostCourseVersionPublish.js +48 -0
  159. package/dist/models/PostEmailAssetComplete.d.ts +32 -0
  160. package/dist/models/PostEmailAssetComplete.js +50 -0
  161. package/dist/models/PostEmailAssetUpload.d.ts +54 -0
  162. package/dist/models/PostEmailAssetUpload.js +68 -0
  163. package/dist/models/PostEmailTemplatePreview.d.ts +64 -0
  164. package/dist/models/PostEmailTemplatePreview.js +62 -0
  165. package/dist/models/PostEmailTemplateTestSend.d.ts +32 -0
  166. package/dist/models/PostEmailTemplateTestSend.js +50 -0
  167. package/dist/models/PostResource.d.ts +58 -0
  168. package/dist/models/PostResource.js +62 -0
  169. package/dist/models/PostResourceVersion.d.ts +45 -0
  170. package/dist/models/PostResourceVersion.js +53 -0
  171. package/dist/models/PostResourceVersionComplete.d.ts +32 -0
  172. package/dist/models/PostResourceVersionComplete.js +50 -0
  173. package/dist/models/PostResourceVersionUpload.d.ts +50 -0
  174. package/dist/models/PostResourceVersionUpload.js +62 -0
  175. package/dist/models/PutCourseVersionItem.d.ts +85 -0
  176. package/dist/models/PutCourseVersionItem.js +71 -0
  177. package/dist/models/PutEmailTemplateDraft.d.ts +64 -0
  178. package/dist/models/PutEmailTemplateDraft.js +62 -0
  179. package/dist/models/PutResource.d.ts +38 -0
  180. package/dist/models/PutResource.js +50 -0
  181. package/dist/models/PutResourceVersion.d.ts +53 -0
  182. package/dist/models/PutResourceVersion.js +55 -0
  183. package/dist/models/ResourceType.d.ts +32 -0
  184. package/dist/models/ResourceType.js +58 -0
  185. package/dist/models/index.d.ts +40 -0
  186. package/dist/models/index.js +40 -0
  187. package/docs/ContentLibraryApi.md +1132 -0
  188. package/docs/ContentLibraryVersionStatus.md +33 -0
  189. package/docs/CourseApi.md +797 -96
  190. package/docs/EmailTemplateApi.md +2097 -0
  191. package/docs/EmailTemplateDefinition.md +44 -0
  192. package/docs/EmailTemplateScope.md +32 -0
  193. package/docs/EmailTemplateVariable.md +40 -0
  194. package/docs/EmailTemplateVersion.md +56 -0
  195. package/docs/GetContentLibraryVersion.md +64 -0
  196. package/docs/GetCourseVersion.md +56 -0
  197. package/docs/GetCourseVersionItem.md +62 -0
  198. package/docs/GetCourseVersionItemLaunch.md +56 -0
  199. package/docs/GetCourseVersionItemSession.md +65 -0
  200. package/docs/GetCourseVersionList.md +34 -0
  201. package/docs/GetCourseVersionModule.md +44 -0
  202. package/docs/GetEmailAssetUpload.md +40 -0
  203. package/docs/GetEmailDelivery.md +60 -0
  204. package/docs/GetEmailDeliveryList.md +40 -0
  205. package/docs/GetEmailTemplate.md +44 -0
  206. package/docs/GetEmailTemplateList.md +34 -0
  207. package/docs/GetEmailTemplatePreview.md +38 -0
  208. package/docs/GetResource.md +62 -0
  209. package/docs/GetResourceList.md +42 -0
  210. package/docs/GetResourceUsage.md +44 -0
  211. package/docs/GetResourceUsageCoursesInner.md +44 -0
  212. package/docs/GetResourceVersionUpload.md +36 -0
  213. package/docs/PlayerApi.md +480 -0
  214. package/docs/PostCourseDraft.md +34 -0
  215. package/docs/PostCourseVersionItem.md +52 -0
  216. package/docs/PostCourseVersionItemSession.md +35 -0
  217. package/docs/PostCourseVersionPublish.md +34 -0
  218. package/docs/PostEmailAssetComplete.md +34 -0
  219. package/docs/PostEmailAssetUpload.md +38 -0
  220. package/docs/PostEmailTemplatePreview.md +44 -0
  221. package/docs/PostEmailTemplateTestSend.md +34 -0
  222. package/docs/PostResource.md +42 -0
  223. package/docs/PostResourceVersion.md +38 -0
  224. package/docs/PostResourceVersionComplete.md +34 -0
  225. package/docs/PostResourceVersionUpload.md +40 -0
  226. package/docs/PutCourseVersionItem.md +48 -0
  227. package/docs/PutEmailTemplateDraft.md +44 -0
  228. package/docs/PutResource.md +36 -0
  229. package/docs/PutResourceVersion.md +40 -0
  230. package/docs/ResourceType.md +33 -0
  231. package/package.json +1 -1
  232. package/src/apis/ContentLibraryApi.ts +1024 -0
  233. package/src/apis/CourseApi.ts +636 -0
  234. package/src/apis/EmailTemplateApi.ts +1702 -0
  235. package/src/apis/PlayerApi.ts +400 -0
  236. package/src/apis/index.ts +2 -0
  237. package/src/models/ContentLibraryVersionStatus.ts +54 -0
  238. package/src/models/EmailTemplateDefinition.ts +128 -0
  239. package/src/models/EmailTemplateScope.ts +53 -0
  240. package/src/models/EmailTemplateVariable.ts +105 -0
  241. package/src/models/EmailTemplateVersion.ts +173 -0
  242. package/src/models/GetContentLibraryVersion.ts +209 -0
  243. package/src/models/GetCourseVersion.ts +187 -0
  244. package/src/models/GetCourseVersionItem.ts +215 -0
  245. package/src/models/GetCourseVersionItemLaunch.ts +185 -0
  246. package/src/models/GetCourseVersionItemSession.ts +216 -0
  247. package/src/models/GetCourseVersionList.ts +74 -0
  248. package/src/models/GetCourseVersionModule.ts +126 -0
  249. package/src/models/GetEmailAssetUpload.ts +93 -0
  250. package/src/models/GetEmailDelivery.ts +192 -0
  251. package/src/models/GetEmailDeliveryList.ts +101 -0
  252. package/src/models/GetEmailTemplate.ts +137 -0
  253. package/src/models/GetEmailTemplateList.ts +74 -0
  254. package/src/models/GetEmailTemplatePreview.ts +84 -0
  255. package/src/models/GetResource.ts +206 -0
  256. package/src/models/GetResourceList.ts +110 -0
  257. package/src/models/GetResourceUsage.ts +119 -0
  258. package/src/models/GetResourceUsageCoursesInner.ts +121 -0
  259. package/src/models/GetResourceVersionUpload.ts +75 -0
  260. package/src/models/PostCourseDraft.ts +65 -0
  261. package/src/models/PostCourseVersionItem.ts +158 -0
  262. package/src/models/PostCourseVersionItemSession.ts +65 -0
  263. package/src/models/PostCourseVersionPublish.ts +65 -0
  264. package/src/models/PostEmailAssetComplete.ts +66 -0
  265. package/src/models/PostEmailAssetUpload.ts +97 -0
  266. package/src/models/PostEmailTemplatePreview.ts +107 -0
  267. package/src/models/PostEmailTemplateTestSend.ts +66 -0
  268. package/src/models/PostResource.ts +116 -0
  269. package/src/models/PostResourceVersion.ts +89 -0
  270. package/src/models/PostResourceVersionComplete.ts +66 -0
  271. package/src/models/PostResourceVersionUpload.ts +93 -0
  272. package/src/models/PutCourseVersionItem.ts +140 -0
  273. package/src/models/PutEmailTemplateDraft.ts +107 -0
  274. package/src/models/PutResource.ts +73 -0
  275. package/src/models/PutResourceVersion.ts +97 -0
  276. package/src/models/ResourceType.ts +60 -0
  277. package/src/models/index.ts +40 -0
@@ -0,0 +1,2097 @@
1
+ # EmailTemplateApi
2
+
3
+ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com/stage1*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**deleteEmailTemplateDraft**](EmailTemplateApi.md#deleteemailtemplatedraft) | **DELETE** /email-templates/{templateKey}/draft | Discard the current portal email template draft |
8
+ | [**deleteSystemEmailTemplateDraft**](EmailTemplateApi.md#deletesystememailtemplatedraft) | **DELETE** /system/email-templates/{templateKey}/draft | Discard the current platform email template draft |
9
+ | [**getEmailDeliveryList**](EmailTemplateApi.md#getemaildeliverylist) | **GET** /email-deliveries | List selected-portal email delivery activity |
10
+ | [**getEmailTemplate**](EmailTemplateApi.md#getemailtemplate) | **GET** /email-templates/{templateKey} | Get an effective portal email template |
11
+ | [**getEmailTemplateList**](EmailTemplateApi.md#getemailtemplatelist) | **GET** /email-templates | List effective email templates for the selected portal |
12
+ | [**getPublicEmailAsset**](EmailTemplateApi.md#getpublicemailasset) | **GET** /public/email-assets/{assetId} | Redirect to a stable public email image |
13
+ | [**getPublicEmailPortalLogo**](EmailTemplateApi.md#getpublicemailportallogo) | **GET** /public/email-branding/portals/{portalId}/logo | Redirect to a portal logo for email rendering |
14
+ | [**getSystemEmailDeliveryList**](EmailTemplateApi.md#getsystememaildeliverylist) | **GET** /system/email-deliveries | List platform email delivery activity |
15
+ | [**getSystemEmailTemplate**](EmailTemplateApi.md#getsystememailtemplate) | **GET** /system/email-templates/{templateKey} | Get a platform email template |
16
+ | [**getSystemEmailTemplateList**](EmailTemplateApi.md#getsystememailtemplatelist) | **GET** /system/email-templates | List platform email templates |
17
+ | [**postEmailAssetComplete**](EmailTemplateApi.md#postemailassetcomplete) | **POST** /email-assets/{assetId}/complete | Complete a selected-portal email image upload |
18
+ | [**postEmailAssetUpload**](EmailTemplateApi.md#postemailassetupload) | **POST** /email-assets/uploads | Create a pending selected-portal email image upload |
19
+ | [**postEmailTemplateDraft**](EmailTemplateApi.md#postemailtemplatedraft) | **POST** /email-templates/{templateKey}/draft | Create a portal draft from the effective template |
20
+ | [**postEmailTemplateInherit**](EmailTemplateApi.md#postemailtemplateinherit) | **POST** /email-templates/{templateKey}/inherit | Disable a portal override and restore inheritance |
21
+ | [**postEmailTemplatePreview**](EmailTemplateApi.md#postemailtemplatepreview) | **POST** /email-templates/{templateKey}/preview | Preview an unsaved portal email template draft |
22
+ | [**postEmailTemplatePublish**](EmailTemplateApi.md#postemailtemplatepublish) | **POST** /email-templates/{templateKey}/publish | Publish the current portal draft |
23
+ | [**postEmailTemplateTestSend**](EmailTemplateApi.md#postemailtemplatetestsend) | **POST** /email-templates/{templateKey}/test-sends | Queue a test of the saved portal draft |
24
+ | [**postEmailTemplateVersionRestore**](EmailTemplateApi.md#postemailtemplateversionrestore) | **POST** /email-templates/{templateKey}/versions/{versionId}/restore | Create a new portal draft from a historical version |
25
+ | [**postMailgunWebhook**](EmailTemplateApi.md#postmailgunwebhook) | **POST** /webhooks/mailgun | Receive signed Mailgun delivery events |
26
+ | [**postSystemEmailAssetComplete**](EmailTemplateApi.md#postsystememailassetcomplete) | **POST** /system/email-assets/{assetId}/complete | Complete a platform email image upload |
27
+ | [**postSystemEmailAssetUpload**](EmailTemplateApi.md#postsystememailassetupload) | **POST** /system/email-assets/uploads | Create a pending platform email image upload |
28
+ | [**postSystemEmailTemplateDraft**](EmailTemplateApi.md#postsystememailtemplatedraft) | **POST** /system/email-templates/{templateKey}/draft | Create a platform email template draft |
29
+ | [**postSystemEmailTemplateInherit**](EmailTemplateApi.md#postsystememailtemplateinherit) | **POST** /system/email-templates/{templateKey}/inherit | Disable a platform override and restore the code fallback |
30
+ | [**postSystemEmailTemplatePreview**](EmailTemplateApi.md#postsystememailtemplatepreview) | **POST** /system/email-templates/{templateKey}/preview | Preview a platform email template |
31
+ | [**postSystemEmailTemplatePublish**](EmailTemplateApi.md#postsystememailtemplatepublish) | **POST** /system/email-templates/{templateKey}/publish | Publish the current platform draft |
32
+ | [**postSystemEmailTemplateTestSend**](EmailTemplateApi.md#postsystememailtemplatetestsend) | **POST** /system/email-templates/{templateKey}/test-sends | Queue a test of the saved platform draft |
33
+ | [**postSystemEmailTemplateVersionRestore**](EmailTemplateApi.md#postsystememailtemplateversionrestore) | **POST** /system/email-templates/{templateKey}/versions/{versionId}/restore | Restore a historical platform email template version |
34
+ | [**putEmailAssetFile**](EmailTemplateApi.md#putemailassetfile) | **PUT** /email-assets/{assetId}/file | Upload a pending selected-portal email image |
35
+ | [**putEmailTemplateDraft**](EmailTemplateApi.md#putemailtemplatedraft) | **PUT** /email-templates/{templateKey}/draft | Update a portal email template draft |
36
+ | [**putSystemEmailAssetFile**](EmailTemplateApi.md#putsystememailassetfile) | **PUT** /system/email-assets/{assetId}/file | Upload a pending platform email image |
37
+ | [**putSystemEmailTemplateDraft**](EmailTemplateApi.md#putsystememailtemplatedraft) | **PUT** /system/email-templates/{templateKey}/draft | Update a platform email template draft |
38
+
39
+
40
+
41
+ ## deleteEmailTemplateDraft
42
+
43
+ > deleteEmailTemplateDraft(templateKey)
44
+
45
+ Discard the current portal email template draft
46
+
47
+ ### Example
48
+
49
+ ```ts
50
+ import {
51
+ Configuration,
52
+ EmailTemplateApi,
53
+ } from '@easyedu/js-lsm-api';
54
+ import type { DeleteEmailTemplateDraftRequest } from '@easyedu/js-lsm-api';
55
+
56
+ async function example() {
57
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
58
+ const api = new EmailTemplateApi();
59
+
60
+ const body = {
61
+ // string
62
+ templateKey: templateKey_example,
63
+ } satisfies DeleteEmailTemplateDraftRequest;
64
+
65
+ try {
66
+ const data = await api.deleteEmailTemplateDraft(body);
67
+ console.log(data);
68
+ } catch (error) {
69
+ console.error(error);
70
+ }
71
+ }
72
+
73
+ // Run the test
74
+ example().catch(console.error);
75
+ ```
76
+
77
+ ### Parameters
78
+
79
+
80
+ | Name | Type | Description | Notes |
81
+ |------------- | ------------- | ------------- | -------------|
82
+ | **templateKey** | `string` | | [Defaults to `undefined`] |
83
+
84
+ ### Return type
85
+
86
+ `void` (Empty response body)
87
+
88
+ ### Authorization
89
+
90
+ No authorization required
91
+
92
+ ### HTTP request headers
93
+
94
+ - **Content-Type**: Not defined
95
+ - **Accept**: Not defined
96
+
97
+
98
+ ### HTTP response details
99
+ | Status code | Description | Response headers |
100
+ |-------------|-------------|------------------|
101
+ | **204** | Draft discarded | - |
102
+ | **404** | Draft not found | - |
103
+
104
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
105
+
106
+
107
+ ## deleteSystemEmailTemplateDraft
108
+
109
+ > deleteSystemEmailTemplateDraft(templateKey)
110
+
111
+ Discard the current platform email template draft
112
+
113
+ ### Example
114
+
115
+ ```ts
116
+ import {
117
+ Configuration,
118
+ EmailTemplateApi,
119
+ } from '@easyedu/js-lsm-api';
120
+ import type { DeleteSystemEmailTemplateDraftRequest } from '@easyedu/js-lsm-api';
121
+
122
+ async function example() {
123
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
124
+ const api = new EmailTemplateApi();
125
+
126
+ const body = {
127
+ // string
128
+ templateKey: templateKey_example,
129
+ } satisfies DeleteSystemEmailTemplateDraftRequest;
130
+
131
+ try {
132
+ const data = await api.deleteSystemEmailTemplateDraft(body);
133
+ console.log(data);
134
+ } catch (error) {
135
+ console.error(error);
136
+ }
137
+ }
138
+
139
+ // Run the test
140
+ example().catch(console.error);
141
+ ```
142
+
143
+ ### Parameters
144
+
145
+
146
+ | Name | Type | Description | Notes |
147
+ |------------- | ------------- | ------------- | -------------|
148
+ | **templateKey** | `string` | | [Defaults to `undefined`] |
149
+
150
+ ### Return type
151
+
152
+ `void` (Empty response body)
153
+
154
+ ### Authorization
155
+
156
+ No authorization required
157
+
158
+ ### HTTP request headers
159
+
160
+ - **Content-Type**: Not defined
161
+ - **Accept**: Not defined
162
+
163
+
164
+ ### HTTP response details
165
+ | Status code | Description | Response headers |
166
+ |-------------|-------------|------------------|
167
+ | **204** | Draft discarded | - |
168
+ | **404** | Draft not found | - |
169
+
170
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
171
+
172
+
173
+ ## getEmailDeliveryList
174
+
175
+ > GetEmailDeliveryList getEmailDeliveryList(page, pageSize)
176
+
177
+ List selected-portal email delivery activity
178
+
179
+ ### Example
180
+
181
+ ```ts
182
+ import {
183
+ Configuration,
184
+ EmailTemplateApi,
185
+ } from '@easyedu/js-lsm-api';
186
+ import type { GetEmailDeliveryListRequest } from '@easyedu/js-lsm-api';
187
+
188
+ async function example() {
189
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
190
+ const api = new EmailTemplateApi();
191
+
192
+ const body = {
193
+ // number (optional)
194
+ page: 56,
195
+ // number (optional)
196
+ pageSize: 56,
197
+ } satisfies GetEmailDeliveryListRequest;
198
+
199
+ try {
200
+ const data = await api.getEmailDeliveryList(body);
201
+ console.log(data);
202
+ } catch (error) {
203
+ console.error(error);
204
+ }
205
+ }
206
+
207
+ // Run the test
208
+ example().catch(console.error);
209
+ ```
210
+
211
+ ### Parameters
212
+
213
+
214
+ | Name | Type | Description | Notes |
215
+ |------------- | ------------- | ------------- | -------------|
216
+ | **page** | `number` | | [Optional] [Defaults to `1`] |
217
+ | **pageSize** | `number` | | [Optional] [Defaults to `20`] |
218
+
219
+ ### Return type
220
+
221
+ [**GetEmailDeliveryList**](GetEmailDeliveryList.md)
222
+
223
+ ### Authorization
224
+
225
+ No authorization required
226
+
227
+ ### HTTP request headers
228
+
229
+ - **Content-Type**: Not defined
230
+ - **Accept**: `application/json`
231
+
232
+
233
+ ### HTTP response details
234
+ | Status code | Description | Response headers |
235
+ |-------------|-------------|------------------|
236
+ | **200** | Delivery activity | - |
237
+
238
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
239
+
240
+
241
+ ## getEmailTemplate
242
+
243
+ > GetEmailTemplate getEmailTemplate(templateKey)
244
+
245
+ Get an effective portal email template
246
+
247
+ ### Example
248
+
249
+ ```ts
250
+ import {
251
+ Configuration,
252
+ EmailTemplateApi,
253
+ } from '@easyedu/js-lsm-api';
254
+ import type { GetEmailTemplateRequest } from '@easyedu/js-lsm-api';
255
+
256
+ async function example() {
257
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
258
+ const api = new EmailTemplateApi();
259
+
260
+ const body = {
261
+ // string
262
+ templateKey: templateKey_example,
263
+ } satisfies GetEmailTemplateRequest;
264
+
265
+ try {
266
+ const data = await api.getEmailTemplate(body);
267
+ console.log(data);
268
+ } catch (error) {
269
+ console.error(error);
270
+ }
271
+ }
272
+
273
+ // Run the test
274
+ example().catch(console.error);
275
+ ```
276
+
277
+ ### Parameters
278
+
279
+
280
+ | Name | Type | Description | Notes |
281
+ |------------- | ------------- | ------------- | -------------|
282
+ | **templateKey** | `string` | | [Defaults to `undefined`] |
283
+
284
+ ### Return type
285
+
286
+ [**GetEmailTemplate**](GetEmailTemplate.md)
287
+
288
+ ### Authorization
289
+
290
+ No authorization required
291
+
292
+ ### HTTP request headers
293
+
294
+ - **Content-Type**: Not defined
295
+ - **Accept**: `application/json`
296
+
297
+
298
+ ### HTTP response details
299
+ | Status code | Description | Response headers |
300
+ |-------------|-------------|------------------|
301
+ | **200** | Email template | - |
302
+ | **404** | Unknown template key | - |
303
+
304
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
305
+
306
+
307
+ ## getEmailTemplateList
308
+
309
+ > GetEmailTemplateList getEmailTemplateList()
310
+
311
+ List effective email templates for the selected portal
312
+
313
+ ### Example
314
+
315
+ ```ts
316
+ import {
317
+ Configuration,
318
+ EmailTemplateApi,
319
+ } from '@easyedu/js-lsm-api';
320
+ import type { GetEmailTemplateListRequest } from '@easyedu/js-lsm-api';
321
+
322
+ async function example() {
323
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
324
+ const api = new EmailTemplateApi();
325
+
326
+ try {
327
+ const data = await api.getEmailTemplateList();
328
+ console.log(data);
329
+ } catch (error) {
330
+ console.error(error);
331
+ }
332
+ }
333
+
334
+ // Run the test
335
+ example().catch(console.error);
336
+ ```
337
+
338
+ ### Parameters
339
+
340
+ This endpoint does not need any parameter.
341
+
342
+ ### Return type
343
+
344
+ [**GetEmailTemplateList**](GetEmailTemplateList.md)
345
+
346
+ ### Authorization
347
+
348
+ No authorization required
349
+
350
+ ### HTTP request headers
351
+
352
+ - **Content-Type**: Not defined
353
+ - **Accept**: `application/json`
354
+
355
+
356
+ ### HTTP response details
357
+ | Status code | Description | Response headers |
358
+ |-------------|-------------|------------------|
359
+ | **200** | Email templates | - |
360
+
361
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
362
+
363
+
364
+ ## getPublicEmailAsset
365
+
366
+ > getPublicEmailAsset(assetId)
367
+
368
+ Redirect to a stable public email image
369
+
370
+ ### Example
371
+
372
+ ```ts
373
+ import {
374
+ Configuration,
375
+ EmailTemplateApi,
376
+ } from '@easyedu/js-lsm-api';
377
+ import type { GetPublicEmailAssetRequest } from '@easyedu/js-lsm-api';
378
+
379
+ async function example() {
380
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
381
+ const api = new EmailTemplateApi();
382
+
383
+ const body = {
384
+ // string
385
+ assetId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
386
+ } satisfies GetPublicEmailAssetRequest;
387
+
388
+ try {
389
+ const data = await api.getPublicEmailAsset(body);
390
+ console.log(data);
391
+ } catch (error) {
392
+ console.error(error);
393
+ }
394
+ }
395
+
396
+ // Run the test
397
+ example().catch(console.error);
398
+ ```
399
+
400
+ ### Parameters
401
+
402
+
403
+ | Name | Type | Description | Notes |
404
+ |------------- | ------------- | ------------- | -------------|
405
+ | **assetId** | `string` | | [Defaults to `undefined`] |
406
+
407
+ ### Return type
408
+
409
+ `void` (Empty response body)
410
+
411
+ ### Authorization
412
+
413
+ No authorization required
414
+
415
+ ### HTTP request headers
416
+
417
+ - **Content-Type**: Not defined
418
+ - **Accept**: Not defined
419
+
420
+
421
+ ### HTTP response details
422
+ | Status code | Description | Response headers |
423
+ |-------------|-------------|------------------|
424
+ | **302** | Redirect to signed object URL | - |
425
+ | **404** | Asset not found | - |
426
+
427
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
428
+
429
+
430
+ ## getPublicEmailPortalLogo
431
+
432
+ > getPublicEmailPortalLogo(portalId)
433
+
434
+ Redirect to a portal logo for email rendering
435
+
436
+ ### Example
437
+
438
+ ```ts
439
+ import {
440
+ Configuration,
441
+ EmailTemplateApi,
442
+ } from '@easyedu/js-lsm-api';
443
+ import type { GetPublicEmailPortalLogoRequest } from '@easyedu/js-lsm-api';
444
+
445
+ async function example() {
446
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
447
+ const api = new EmailTemplateApi();
448
+
449
+ const body = {
450
+ // string
451
+ portalId: portalId_example,
452
+ } satisfies GetPublicEmailPortalLogoRequest;
453
+
454
+ try {
455
+ const data = await api.getPublicEmailPortalLogo(body);
456
+ console.log(data);
457
+ } catch (error) {
458
+ console.error(error);
459
+ }
460
+ }
461
+
462
+ // Run the test
463
+ example().catch(console.error);
464
+ ```
465
+
466
+ ### Parameters
467
+
468
+
469
+ | Name | Type | Description | Notes |
470
+ |------------- | ------------- | ------------- | -------------|
471
+ | **portalId** | `string` | | [Defaults to `undefined`] |
472
+
473
+ ### Return type
474
+
475
+ `void` (Empty response body)
476
+
477
+ ### Authorization
478
+
479
+ No authorization required
480
+
481
+ ### HTTP request headers
482
+
483
+ - **Content-Type**: Not defined
484
+ - **Accept**: Not defined
485
+
486
+
487
+ ### HTTP response details
488
+ | Status code | Description | Response headers |
489
+ |-------------|-------------|------------------|
490
+ | **302** | Redirect to signed object URL | - |
491
+ | **404** | Logo not configured | - |
492
+
493
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
494
+
495
+
496
+ ## getSystemEmailDeliveryList
497
+
498
+ > GetEmailDeliveryList getSystemEmailDeliveryList(page, pageSize)
499
+
500
+ List platform email delivery activity
501
+
502
+ ### Example
503
+
504
+ ```ts
505
+ import {
506
+ Configuration,
507
+ EmailTemplateApi,
508
+ } from '@easyedu/js-lsm-api';
509
+ import type { GetSystemEmailDeliveryListRequest } from '@easyedu/js-lsm-api';
510
+
511
+ async function example() {
512
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
513
+ const api = new EmailTemplateApi();
514
+
515
+ const body = {
516
+ // number (optional)
517
+ page: 56,
518
+ // number (optional)
519
+ pageSize: 56,
520
+ } satisfies GetSystemEmailDeliveryListRequest;
521
+
522
+ try {
523
+ const data = await api.getSystemEmailDeliveryList(body);
524
+ console.log(data);
525
+ } catch (error) {
526
+ console.error(error);
527
+ }
528
+ }
529
+
530
+ // Run the test
531
+ example().catch(console.error);
532
+ ```
533
+
534
+ ### Parameters
535
+
536
+
537
+ | Name | Type | Description | Notes |
538
+ |------------- | ------------- | ------------- | -------------|
539
+ | **page** | `number` | | [Optional] [Defaults to `1`] |
540
+ | **pageSize** | `number` | | [Optional] [Defaults to `20`] |
541
+
542
+ ### Return type
543
+
544
+ [**GetEmailDeliveryList**](GetEmailDeliveryList.md)
545
+
546
+ ### Authorization
547
+
548
+ No authorization required
549
+
550
+ ### HTTP request headers
551
+
552
+ - **Content-Type**: Not defined
553
+ - **Accept**: `application/json`
554
+
555
+
556
+ ### HTTP response details
557
+ | Status code | Description | Response headers |
558
+ |-------------|-------------|------------------|
559
+ | **200** | Platform delivery activity | - |
560
+
561
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
562
+
563
+
564
+ ## getSystemEmailTemplate
565
+
566
+ > GetEmailTemplate getSystemEmailTemplate(templateKey)
567
+
568
+ Get a platform email template
569
+
570
+ ### Example
571
+
572
+ ```ts
573
+ import {
574
+ Configuration,
575
+ EmailTemplateApi,
576
+ } from '@easyedu/js-lsm-api';
577
+ import type { GetSystemEmailTemplateRequest } from '@easyedu/js-lsm-api';
578
+
579
+ async function example() {
580
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
581
+ const api = new EmailTemplateApi();
582
+
583
+ const body = {
584
+ // string
585
+ templateKey: templateKey_example,
586
+ } satisfies GetSystemEmailTemplateRequest;
587
+
588
+ try {
589
+ const data = await api.getSystemEmailTemplate(body);
590
+ console.log(data);
591
+ } catch (error) {
592
+ console.error(error);
593
+ }
594
+ }
595
+
596
+ // Run the test
597
+ example().catch(console.error);
598
+ ```
599
+
600
+ ### Parameters
601
+
602
+
603
+ | Name | Type | Description | Notes |
604
+ |------------- | ------------- | ------------- | -------------|
605
+ | **templateKey** | `string` | | [Defaults to `undefined`] |
606
+
607
+ ### Return type
608
+
609
+ [**GetEmailTemplate**](GetEmailTemplate.md)
610
+
611
+ ### Authorization
612
+
613
+ No authorization required
614
+
615
+ ### HTTP request headers
616
+
617
+ - **Content-Type**: Not defined
618
+ - **Accept**: `application/json`
619
+
620
+
621
+ ### HTTP response details
622
+ | Status code | Description | Response headers |
623
+ |-------------|-------------|------------------|
624
+ | **200** | Platform email template | - |
625
+
626
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
627
+
628
+
629
+ ## getSystemEmailTemplateList
630
+
631
+ > GetEmailTemplateList getSystemEmailTemplateList()
632
+
633
+ List platform email templates
634
+
635
+ ### Example
636
+
637
+ ```ts
638
+ import {
639
+ Configuration,
640
+ EmailTemplateApi,
641
+ } from '@easyedu/js-lsm-api';
642
+ import type { GetSystemEmailTemplateListRequest } from '@easyedu/js-lsm-api';
643
+
644
+ async function example() {
645
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
646
+ const api = new EmailTemplateApi();
647
+
648
+ try {
649
+ const data = await api.getSystemEmailTemplateList();
650
+ console.log(data);
651
+ } catch (error) {
652
+ console.error(error);
653
+ }
654
+ }
655
+
656
+ // Run the test
657
+ example().catch(console.error);
658
+ ```
659
+
660
+ ### Parameters
661
+
662
+ This endpoint does not need any parameter.
663
+
664
+ ### Return type
665
+
666
+ [**GetEmailTemplateList**](GetEmailTemplateList.md)
667
+
668
+ ### Authorization
669
+
670
+ No authorization required
671
+
672
+ ### HTTP request headers
673
+
674
+ - **Content-Type**: Not defined
675
+ - **Accept**: `application/json`
676
+
677
+
678
+ ### HTTP response details
679
+ | Status code | Description | Response headers |
680
+ |-------------|-------------|------------------|
681
+ | **200** | Platform email templates | - |
682
+
683
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
684
+
685
+
686
+ ## postEmailAssetComplete
687
+
688
+ > postEmailAssetComplete(assetId, postEmailAssetComplete)
689
+
690
+ Complete a selected-portal email image upload
691
+
692
+ ### Example
693
+
694
+ ```ts
695
+ import {
696
+ Configuration,
697
+ EmailTemplateApi,
698
+ } from '@easyedu/js-lsm-api';
699
+ import type { PostEmailAssetCompleteRequest } from '@easyedu/js-lsm-api';
700
+
701
+ async function example() {
702
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
703
+ const api = new EmailTemplateApi();
704
+
705
+ const body = {
706
+ // string
707
+ assetId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
708
+ // PostEmailAssetComplete
709
+ postEmailAssetComplete: ...,
710
+ } satisfies PostEmailAssetCompleteRequest;
711
+
712
+ try {
713
+ const data = await api.postEmailAssetComplete(body);
714
+ console.log(data);
715
+ } catch (error) {
716
+ console.error(error);
717
+ }
718
+ }
719
+
720
+ // Run the test
721
+ example().catch(console.error);
722
+ ```
723
+
724
+ ### Parameters
725
+
726
+
727
+ | Name | Type | Description | Notes |
728
+ |------------- | ------------- | ------------- | -------------|
729
+ | **assetId** | `string` | | [Defaults to `undefined`] |
730
+ | **postEmailAssetComplete** | [PostEmailAssetComplete](PostEmailAssetComplete.md) | | |
731
+
732
+ ### Return type
733
+
734
+ `void` (Empty response body)
735
+
736
+ ### Authorization
737
+
738
+ No authorization required
739
+
740
+ ### HTTP request headers
741
+
742
+ - **Content-Type**: `application/json`
743
+ - **Accept**: Not defined
744
+
745
+
746
+ ### HTTP response details
747
+ | Status code | Description | Response headers |
748
+ |-------------|-------------|------------------|
749
+ | **204** | Image ready | - |
750
+
751
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
752
+
753
+
754
+ ## postEmailAssetUpload
755
+
756
+ > GetEmailAssetUpload postEmailAssetUpload(postEmailAssetUpload)
757
+
758
+ Create a pending selected-portal email image upload
759
+
760
+ ### Example
761
+
762
+ ```ts
763
+ import {
764
+ Configuration,
765
+ EmailTemplateApi,
766
+ } from '@easyedu/js-lsm-api';
767
+ import type { PostEmailAssetUploadRequest } from '@easyedu/js-lsm-api';
768
+
769
+ async function example() {
770
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
771
+ const api = new EmailTemplateApi();
772
+
773
+ const body = {
774
+ // PostEmailAssetUpload
775
+ postEmailAssetUpload: ...,
776
+ } satisfies PostEmailAssetUploadRequest;
777
+
778
+ try {
779
+ const data = await api.postEmailAssetUpload(body);
780
+ console.log(data);
781
+ } catch (error) {
782
+ console.error(error);
783
+ }
784
+ }
785
+
786
+ // Run the test
787
+ example().catch(console.error);
788
+ ```
789
+
790
+ ### Parameters
791
+
792
+
793
+ | Name | Type | Description | Notes |
794
+ |------------- | ------------- | ------------- | -------------|
795
+ | **postEmailAssetUpload** | [PostEmailAssetUpload](PostEmailAssetUpload.md) | | |
796
+
797
+ ### Return type
798
+
799
+ [**GetEmailAssetUpload**](GetEmailAssetUpload.md)
800
+
801
+ ### Authorization
802
+
803
+ No authorization required
804
+
805
+ ### HTTP request headers
806
+
807
+ - **Content-Type**: `application/json`
808
+ - **Accept**: `application/json`
809
+
810
+
811
+ ### HTTP response details
812
+ | Status code | Description | Response headers |
813
+ |-------------|-------------|------------------|
814
+ | **201** | Pending asset | - |
815
+
816
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
817
+
818
+
819
+ ## postEmailTemplateDraft
820
+
821
+ > EmailTemplateVersion postEmailTemplateDraft(templateKey)
822
+
823
+ Create a portal draft from the effective template
824
+
825
+ ### Example
826
+
827
+ ```ts
828
+ import {
829
+ Configuration,
830
+ EmailTemplateApi,
831
+ } from '@easyedu/js-lsm-api';
832
+ import type { PostEmailTemplateDraftRequest } from '@easyedu/js-lsm-api';
833
+
834
+ async function example() {
835
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
836
+ const api = new EmailTemplateApi();
837
+
838
+ const body = {
839
+ // string
840
+ templateKey: templateKey_example,
841
+ } satisfies PostEmailTemplateDraftRequest;
842
+
843
+ try {
844
+ const data = await api.postEmailTemplateDraft(body);
845
+ console.log(data);
846
+ } catch (error) {
847
+ console.error(error);
848
+ }
849
+ }
850
+
851
+ // Run the test
852
+ example().catch(console.error);
853
+ ```
854
+
855
+ ### Parameters
856
+
857
+
858
+ | Name | Type | Description | Notes |
859
+ |------------- | ------------- | ------------- | -------------|
860
+ | **templateKey** | `string` | | [Defaults to `undefined`] |
861
+
862
+ ### Return type
863
+
864
+ [**EmailTemplateVersion**](EmailTemplateVersion.md)
865
+
866
+ ### Authorization
867
+
868
+ No authorization required
869
+
870
+ ### HTTP request headers
871
+
872
+ - **Content-Type**: Not defined
873
+ - **Accept**: `application/json`
874
+
875
+
876
+ ### HTTP response details
877
+ | Status code | Description | Response headers |
878
+ |-------------|-------------|------------------|
879
+ | **201** | Draft created | - |
880
+ | **409** | A draft already exists | - |
881
+
882
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
883
+
884
+
885
+ ## postEmailTemplateInherit
886
+
887
+ > postEmailTemplateInherit(templateKey)
888
+
889
+ Disable a portal override and restore inheritance
890
+
891
+ ### Example
892
+
893
+ ```ts
894
+ import {
895
+ Configuration,
896
+ EmailTemplateApi,
897
+ } from '@easyedu/js-lsm-api';
898
+ import type { PostEmailTemplateInheritRequest } from '@easyedu/js-lsm-api';
899
+
900
+ async function example() {
901
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
902
+ const api = new EmailTemplateApi();
903
+
904
+ const body = {
905
+ // string
906
+ templateKey: templateKey_example,
907
+ } satisfies PostEmailTemplateInheritRequest;
908
+
909
+ try {
910
+ const data = await api.postEmailTemplateInherit(body);
911
+ console.log(data);
912
+ } catch (error) {
913
+ console.error(error);
914
+ }
915
+ }
916
+
917
+ // Run the test
918
+ example().catch(console.error);
919
+ ```
920
+
921
+ ### Parameters
922
+
923
+
924
+ | Name | Type | Description | Notes |
925
+ |------------- | ------------- | ------------- | -------------|
926
+ | **templateKey** | `string` | | [Defaults to `undefined`] |
927
+
928
+ ### Return type
929
+
930
+ `void` (Empty response body)
931
+
932
+ ### Authorization
933
+
934
+ No authorization required
935
+
936
+ ### HTTP request headers
937
+
938
+ - **Content-Type**: Not defined
939
+ - **Accept**: Not defined
940
+
941
+
942
+ ### HTTP response details
943
+ | Status code | Description | Response headers |
944
+ |-------------|-------------|------------------|
945
+ | **204** | Portal override disabled | - |
946
+ | **409** | Discard the current draft first | - |
947
+
948
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
949
+
950
+
951
+ ## postEmailTemplatePreview
952
+
953
+ > GetEmailTemplatePreview postEmailTemplatePreview(templateKey, postEmailTemplatePreview)
954
+
955
+ Preview an unsaved portal email template draft
956
+
957
+ ### Example
958
+
959
+ ```ts
960
+ import {
961
+ Configuration,
962
+ EmailTemplateApi,
963
+ } from '@easyedu/js-lsm-api';
964
+ import type { PostEmailTemplatePreviewRequest } from '@easyedu/js-lsm-api';
965
+
966
+ async function example() {
967
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
968
+ const api = new EmailTemplateApi();
969
+
970
+ const body = {
971
+ // string
972
+ templateKey: templateKey_example,
973
+ // PostEmailTemplatePreview
974
+ postEmailTemplatePreview: ...,
975
+ } satisfies PostEmailTemplatePreviewRequest;
976
+
977
+ try {
978
+ const data = await api.postEmailTemplatePreview(body);
979
+ console.log(data);
980
+ } catch (error) {
981
+ console.error(error);
982
+ }
983
+ }
984
+
985
+ // Run the test
986
+ example().catch(console.error);
987
+ ```
988
+
989
+ ### Parameters
990
+
991
+
992
+ | Name | Type | Description | Notes |
993
+ |------------- | ------------- | ------------- | -------------|
994
+ | **templateKey** | `string` | | [Defaults to `undefined`] |
995
+ | **postEmailTemplatePreview** | [PostEmailTemplatePreview](PostEmailTemplatePreview.md) | | |
996
+
997
+ ### Return type
998
+
999
+ [**GetEmailTemplatePreview**](GetEmailTemplatePreview.md)
1000
+
1001
+ ### Authorization
1002
+
1003
+ No authorization required
1004
+
1005
+ ### HTTP request headers
1006
+
1007
+ - **Content-Type**: `application/json`
1008
+ - **Accept**: `application/json`
1009
+
1010
+
1011
+ ### HTTP response details
1012
+ | Status code | Description | Response headers |
1013
+ |-------------|-------------|------------------|
1014
+ | **200** | Rendered preview | - |
1015
+ | **400** | Invalid template | - |
1016
+
1017
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1018
+
1019
+
1020
+ ## postEmailTemplatePublish
1021
+
1022
+ > EmailTemplateVersion postEmailTemplatePublish(templateKey)
1023
+
1024
+ Publish the current portal draft
1025
+
1026
+ ### Example
1027
+
1028
+ ```ts
1029
+ import {
1030
+ Configuration,
1031
+ EmailTemplateApi,
1032
+ } from '@easyedu/js-lsm-api';
1033
+ import type { PostEmailTemplatePublishRequest } from '@easyedu/js-lsm-api';
1034
+
1035
+ async function example() {
1036
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
1037
+ const api = new EmailTemplateApi();
1038
+
1039
+ const body = {
1040
+ // string
1041
+ templateKey: templateKey_example,
1042
+ } satisfies PostEmailTemplatePublishRequest;
1043
+
1044
+ try {
1045
+ const data = await api.postEmailTemplatePublish(body);
1046
+ console.log(data);
1047
+ } catch (error) {
1048
+ console.error(error);
1049
+ }
1050
+ }
1051
+
1052
+ // Run the test
1053
+ example().catch(console.error);
1054
+ ```
1055
+
1056
+ ### Parameters
1057
+
1058
+
1059
+ | Name | Type | Description | Notes |
1060
+ |------------- | ------------- | ------------- | -------------|
1061
+ | **templateKey** | `string` | | [Defaults to `undefined`] |
1062
+
1063
+ ### Return type
1064
+
1065
+ [**EmailTemplateVersion**](EmailTemplateVersion.md)
1066
+
1067
+ ### Authorization
1068
+
1069
+ No authorization required
1070
+
1071
+ ### HTTP request headers
1072
+
1073
+ - **Content-Type**: Not defined
1074
+ - **Accept**: `application/json`
1075
+
1076
+
1077
+ ### HTTP response details
1078
+ | Status code | Description | Response headers |
1079
+ |-------------|-------------|------------------|
1080
+ | **200** | Published version | - |
1081
+ | **400** | Draft is not publishable | - |
1082
+ | **404** | Draft not found | - |
1083
+
1084
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1085
+
1086
+
1087
+ ## postEmailTemplateTestSend
1088
+
1089
+ > GetEmailDelivery postEmailTemplateTestSend(templateKey, postEmailTemplateTestSend)
1090
+
1091
+ Queue a test of the saved portal draft
1092
+
1093
+ ### Example
1094
+
1095
+ ```ts
1096
+ import {
1097
+ Configuration,
1098
+ EmailTemplateApi,
1099
+ } from '@easyedu/js-lsm-api';
1100
+ import type { PostEmailTemplateTestSendRequest } from '@easyedu/js-lsm-api';
1101
+
1102
+ async function example() {
1103
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
1104
+ const api = new EmailTemplateApi();
1105
+
1106
+ const body = {
1107
+ // string
1108
+ templateKey: templateKey_example,
1109
+ // PostEmailTemplateTestSend
1110
+ postEmailTemplateTestSend: ...,
1111
+ } satisfies PostEmailTemplateTestSendRequest;
1112
+
1113
+ try {
1114
+ const data = await api.postEmailTemplateTestSend(body);
1115
+ console.log(data);
1116
+ } catch (error) {
1117
+ console.error(error);
1118
+ }
1119
+ }
1120
+
1121
+ // Run the test
1122
+ example().catch(console.error);
1123
+ ```
1124
+
1125
+ ### Parameters
1126
+
1127
+
1128
+ | Name | Type | Description | Notes |
1129
+ |------------- | ------------- | ------------- | -------------|
1130
+ | **templateKey** | `string` | | [Defaults to `undefined`] |
1131
+ | **postEmailTemplateTestSend** | [PostEmailTemplateTestSend](PostEmailTemplateTestSend.md) | | |
1132
+
1133
+ ### Return type
1134
+
1135
+ [**GetEmailDelivery**](GetEmailDelivery.md)
1136
+
1137
+ ### Authorization
1138
+
1139
+ No authorization required
1140
+
1141
+ ### HTTP request headers
1142
+
1143
+ - **Content-Type**: `application/json`
1144
+ - **Accept**: `application/json`
1145
+
1146
+
1147
+ ### HTTP response details
1148
+ | Status code | Description | Response headers |
1149
+ |-------------|-------------|------------------|
1150
+ | **202** | Test queued | - |
1151
+ | **429** | Test-send rate limit exceeded | - |
1152
+
1153
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1154
+
1155
+
1156
+ ## postEmailTemplateVersionRestore
1157
+
1158
+ > EmailTemplateVersion postEmailTemplateVersionRestore(templateKey, versionId)
1159
+
1160
+ Create a new portal draft from a historical version
1161
+
1162
+ ### Example
1163
+
1164
+ ```ts
1165
+ import {
1166
+ Configuration,
1167
+ EmailTemplateApi,
1168
+ } from '@easyedu/js-lsm-api';
1169
+ import type { PostEmailTemplateVersionRestoreRequest } from '@easyedu/js-lsm-api';
1170
+
1171
+ async function example() {
1172
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
1173
+ const api = new EmailTemplateApi();
1174
+
1175
+ const body = {
1176
+ // string
1177
+ templateKey: templateKey_example,
1178
+ // string
1179
+ versionId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
1180
+ } satisfies PostEmailTemplateVersionRestoreRequest;
1181
+
1182
+ try {
1183
+ const data = await api.postEmailTemplateVersionRestore(body);
1184
+ console.log(data);
1185
+ } catch (error) {
1186
+ console.error(error);
1187
+ }
1188
+ }
1189
+
1190
+ // Run the test
1191
+ example().catch(console.error);
1192
+ ```
1193
+
1194
+ ### Parameters
1195
+
1196
+
1197
+ | Name | Type | Description | Notes |
1198
+ |------------- | ------------- | ------------- | -------------|
1199
+ | **templateKey** | `string` | | [Defaults to `undefined`] |
1200
+ | **versionId** | `string` | | [Defaults to `undefined`] |
1201
+
1202
+ ### Return type
1203
+
1204
+ [**EmailTemplateVersion**](EmailTemplateVersion.md)
1205
+
1206
+ ### Authorization
1207
+
1208
+ No authorization required
1209
+
1210
+ ### HTTP request headers
1211
+
1212
+ - **Content-Type**: Not defined
1213
+ - **Accept**: `application/json`
1214
+
1215
+
1216
+ ### HTTP response details
1217
+ | Status code | Description | Response headers |
1218
+ |-------------|-------------|------------------|
1219
+ | **201** | Restored draft | - |
1220
+ | **409** | A draft already exists | - |
1221
+
1222
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1223
+
1224
+
1225
+ ## postMailgunWebhook
1226
+
1227
+ > postMailgunWebhook(requestBody)
1228
+
1229
+ Receive signed Mailgun delivery events
1230
+
1231
+ ### Example
1232
+
1233
+ ```ts
1234
+ import {
1235
+ Configuration,
1236
+ EmailTemplateApi,
1237
+ } from '@easyedu/js-lsm-api';
1238
+ import type { PostMailgunWebhookRequest } from '@easyedu/js-lsm-api';
1239
+
1240
+ async function example() {
1241
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
1242
+ const api = new EmailTemplateApi();
1243
+
1244
+ const body = {
1245
+ // { [key: string]: any; }
1246
+ requestBody: Object,
1247
+ } satisfies PostMailgunWebhookRequest;
1248
+
1249
+ try {
1250
+ const data = await api.postMailgunWebhook(body);
1251
+ console.log(data);
1252
+ } catch (error) {
1253
+ console.error(error);
1254
+ }
1255
+ }
1256
+
1257
+ // Run the test
1258
+ example().catch(console.error);
1259
+ ```
1260
+
1261
+ ### Parameters
1262
+
1263
+
1264
+ | Name | Type | Description | Notes |
1265
+ |------------- | ------------- | ------------- | -------------|
1266
+ | **requestBody** | `{ [key: string]: any; }` | | |
1267
+
1268
+ ### Return type
1269
+
1270
+ `void` (Empty response body)
1271
+
1272
+ ### Authorization
1273
+
1274
+ No authorization required
1275
+
1276
+ ### HTTP request headers
1277
+
1278
+ - **Content-Type**: `application/json`
1279
+ - **Accept**: Not defined
1280
+
1281
+
1282
+ ### HTTP response details
1283
+ | Status code | Description | Response headers |
1284
+ |-------------|-------------|------------------|
1285
+ | **200** | Event accepted or already processed | - |
1286
+ | **401** | Invalid webhook signature | - |
1287
+
1288
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1289
+
1290
+
1291
+ ## postSystemEmailAssetComplete
1292
+
1293
+ > postSystemEmailAssetComplete(assetId, postEmailAssetComplete)
1294
+
1295
+ Complete a platform email image upload
1296
+
1297
+ ### Example
1298
+
1299
+ ```ts
1300
+ import {
1301
+ Configuration,
1302
+ EmailTemplateApi,
1303
+ } from '@easyedu/js-lsm-api';
1304
+ import type { PostSystemEmailAssetCompleteRequest } from '@easyedu/js-lsm-api';
1305
+
1306
+ async function example() {
1307
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
1308
+ const api = new EmailTemplateApi();
1309
+
1310
+ const body = {
1311
+ // string
1312
+ assetId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
1313
+ // PostEmailAssetComplete
1314
+ postEmailAssetComplete: ...,
1315
+ } satisfies PostSystemEmailAssetCompleteRequest;
1316
+
1317
+ try {
1318
+ const data = await api.postSystemEmailAssetComplete(body);
1319
+ console.log(data);
1320
+ } catch (error) {
1321
+ console.error(error);
1322
+ }
1323
+ }
1324
+
1325
+ // Run the test
1326
+ example().catch(console.error);
1327
+ ```
1328
+
1329
+ ### Parameters
1330
+
1331
+
1332
+ | Name | Type | Description | Notes |
1333
+ |------------- | ------------- | ------------- | -------------|
1334
+ | **assetId** | `string` | | [Defaults to `undefined`] |
1335
+ | **postEmailAssetComplete** | [PostEmailAssetComplete](PostEmailAssetComplete.md) | | |
1336
+
1337
+ ### Return type
1338
+
1339
+ `void` (Empty response body)
1340
+
1341
+ ### Authorization
1342
+
1343
+ No authorization required
1344
+
1345
+ ### HTTP request headers
1346
+
1347
+ - **Content-Type**: `application/json`
1348
+ - **Accept**: Not defined
1349
+
1350
+
1351
+ ### HTTP response details
1352
+ | Status code | Description | Response headers |
1353
+ |-------------|-------------|------------------|
1354
+ | **204** | Image ready | - |
1355
+
1356
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1357
+
1358
+
1359
+ ## postSystemEmailAssetUpload
1360
+
1361
+ > GetEmailAssetUpload postSystemEmailAssetUpload(postEmailAssetUpload)
1362
+
1363
+ Create a pending platform email image upload
1364
+
1365
+ ### Example
1366
+
1367
+ ```ts
1368
+ import {
1369
+ Configuration,
1370
+ EmailTemplateApi,
1371
+ } from '@easyedu/js-lsm-api';
1372
+ import type { PostSystemEmailAssetUploadRequest } from '@easyedu/js-lsm-api';
1373
+
1374
+ async function example() {
1375
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
1376
+ const api = new EmailTemplateApi();
1377
+
1378
+ const body = {
1379
+ // PostEmailAssetUpload
1380
+ postEmailAssetUpload: ...,
1381
+ } satisfies PostSystemEmailAssetUploadRequest;
1382
+
1383
+ try {
1384
+ const data = await api.postSystemEmailAssetUpload(body);
1385
+ console.log(data);
1386
+ } catch (error) {
1387
+ console.error(error);
1388
+ }
1389
+ }
1390
+
1391
+ // Run the test
1392
+ example().catch(console.error);
1393
+ ```
1394
+
1395
+ ### Parameters
1396
+
1397
+
1398
+ | Name | Type | Description | Notes |
1399
+ |------------- | ------------- | ------------- | -------------|
1400
+ | **postEmailAssetUpload** | [PostEmailAssetUpload](PostEmailAssetUpload.md) | | |
1401
+
1402
+ ### Return type
1403
+
1404
+ [**GetEmailAssetUpload**](GetEmailAssetUpload.md)
1405
+
1406
+ ### Authorization
1407
+
1408
+ No authorization required
1409
+
1410
+ ### HTTP request headers
1411
+
1412
+ - **Content-Type**: `application/json`
1413
+ - **Accept**: `application/json`
1414
+
1415
+
1416
+ ### HTTP response details
1417
+ | Status code | Description | Response headers |
1418
+ |-------------|-------------|------------------|
1419
+ | **201** | Pending platform asset | - |
1420
+
1421
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1422
+
1423
+
1424
+ ## postSystemEmailTemplateDraft
1425
+
1426
+ > EmailTemplateVersion postSystemEmailTemplateDraft(templateKey)
1427
+
1428
+ Create a platform email template draft
1429
+
1430
+ ### Example
1431
+
1432
+ ```ts
1433
+ import {
1434
+ Configuration,
1435
+ EmailTemplateApi,
1436
+ } from '@easyedu/js-lsm-api';
1437
+ import type { PostSystemEmailTemplateDraftRequest } from '@easyedu/js-lsm-api';
1438
+
1439
+ async function example() {
1440
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
1441
+ const api = new EmailTemplateApi();
1442
+
1443
+ const body = {
1444
+ // string
1445
+ templateKey: templateKey_example,
1446
+ } satisfies PostSystemEmailTemplateDraftRequest;
1447
+
1448
+ try {
1449
+ const data = await api.postSystemEmailTemplateDraft(body);
1450
+ console.log(data);
1451
+ } catch (error) {
1452
+ console.error(error);
1453
+ }
1454
+ }
1455
+
1456
+ // Run the test
1457
+ example().catch(console.error);
1458
+ ```
1459
+
1460
+ ### Parameters
1461
+
1462
+
1463
+ | Name | Type | Description | Notes |
1464
+ |------------- | ------------- | ------------- | -------------|
1465
+ | **templateKey** | `string` | | [Defaults to `undefined`] |
1466
+
1467
+ ### Return type
1468
+
1469
+ [**EmailTemplateVersion**](EmailTemplateVersion.md)
1470
+
1471
+ ### Authorization
1472
+
1473
+ No authorization required
1474
+
1475
+ ### HTTP request headers
1476
+
1477
+ - **Content-Type**: Not defined
1478
+ - **Accept**: `application/json`
1479
+
1480
+
1481
+ ### HTTP response details
1482
+ | Status code | Description | Response headers |
1483
+ |-------------|-------------|------------------|
1484
+ | **201** | Draft created | - |
1485
+
1486
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1487
+
1488
+
1489
+ ## postSystemEmailTemplateInherit
1490
+
1491
+ > postSystemEmailTemplateInherit(templateKey)
1492
+
1493
+ Disable a platform override and restore the code fallback
1494
+
1495
+ ### Example
1496
+
1497
+ ```ts
1498
+ import {
1499
+ Configuration,
1500
+ EmailTemplateApi,
1501
+ } from '@easyedu/js-lsm-api';
1502
+ import type { PostSystemEmailTemplateInheritRequest } from '@easyedu/js-lsm-api';
1503
+
1504
+ async function example() {
1505
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
1506
+ const api = new EmailTemplateApi();
1507
+
1508
+ const body = {
1509
+ // string
1510
+ templateKey: templateKey_example,
1511
+ } satisfies PostSystemEmailTemplateInheritRequest;
1512
+
1513
+ try {
1514
+ const data = await api.postSystemEmailTemplateInherit(body);
1515
+ console.log(data);
1516
+ } catch (error) {
1517
+ console.error(error);
1518
+ }
1519
+ }
1520
+
1521
+ // Run the test
1522
+ example().catch(console.error);
1523
+ ```
1524
+
1525
+ ### Parameters
1526
+
1527
+
1528
+ | Name | Type | Description | Notes |
1529
+ |------------- | ------------- | ------------- | -------------|
1530
+ | **templateKey** | `string` | | [Defaults to `undefined`] |
1531
+
1532
+ ### Return type
1533
+
1534
+ `void` (Empty response body)
1535
+
1536
+ ### Authorization
1537
+
1538
+ No authorization required
1539
+
1540
+ ### HTTP request headers
1541
+
1542
+ - **Content-Type**: Not defined
1543
+ - **Accept**: Not defined
1544
+
1545
+
1546
+ ### HTTP response details
1547
+ | Status code | Description | Response headers |
1548
+ |-------------|-------------|------------------|
1549
+ | **204** | Platform override disabled | - |
1550
+
1551
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1552
+
1553
+
1554
+ ## postSystemEmailTemplatePreview
1555
+
1556
+ > GetEmailTemplatePreview postSystemEmailTemplatePreview(templateKey, postEmailTemplatePreview)
1557
+
1558
+ Preview a platform email template
1559
+
1560
+ ### Example
1561
+
1562
+ ```ts
1563
+ import {
1564
+ Configuration,
1565
+ EmailTemplateApi,
1566
+ } from '@easyedu/js-lsm-api';
1567
+ import type { PostSystemEmailTemplatePreviewRequest } from '@easyedu/js-lsm-api';
1568
+
1569
+ async function example() {
1570
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
1571
+ const api = new EmailTemplateApi();
1572
+
1573
+ const body = {
1574
+ // string
1575
+ templateKey: templateKey_example,
1576
+ // PostEmailTemplatePreview
1577
+ postEmailTemplatePreview: ...,
1578
+ } satisfies PostSystemEmailTemplatePreviewRequest;
1579
+
1580
+ try {
1581
+ const data = await api.postSystemEmailTemplatePreview(body);
1582
+ console.log(data);
1583
+ } catch (error) {
1584
+ console.error(error);
1585
+ }
1586
+ }
1587
+
1588
+ // Run the test
1589
+ example().catch(console.error);
1590
+ ```
1591
+
1592
+ ### Parameters
1593
+
1594
+
1595
+ | Name | Type | Description | Notes |
1596
+ |------------- | ------------- | ------------- | -------------|
1597
+ | **templateKey** | `string` | | [Defaults to `undefined`] |
1598
+ | **postEmailTemplatePreview** | [PostEmailTemplatePreview](PostEmailTemplatePreview.md) | | |
1599
+
1600
+ ### Return type
1601
+
1602
+ [**GetEmailTemplatePreview**](GetEmailTemplatePreview.md)
1603
+
1604
+ ### Authorization
1605
+
1606
+ No authorization required
1607
+
1608
+ ### HTTP request headers
1609
+
1610
+ - **Content-Type**: `application/json`
1611
+ - **Accept**: `application/json`
1612
+
1613
+
1614
+ ### HTTP response details
1615
+ | Status code | Description | Response headers |
1616
+ |-------------|-------------|------------------|
1617
+ | **200** | Rendered preview | - |
1618
+
1619
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1620
+
1621
+
1622
+ ## postSystemEmailTemplatePublish
1623
+
1624
+ > EmailTemplateVersion postSystemEmailTemplatePublish(templateKey)
1625
+
1626
+ Publish the current platform draft
1627
+
1628
+ ### Example
1629
+
1630
+ ```ts
1631
+ import {
1632
+ Configuration,
1633
+ EmailTemplateApi,
1634
+ } from '@easyedu/js-lsm-api';
1635
+ import type { PostSystemEmailTemplatePublishRequest } from '@easyedu/js-lsm-api';
1636
+
1637
+ async function example() {
1638
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
1639
+ const api = new EmailTemplateApi();
1640
+
1641
+ const body = {
1642
+ // string
1643
+ templateKey: templateKey_example,
1644
+ } satisfies PostSystemEmailTemplatePublishRequest;
1645
+
1646
+ try {
1647
+ const data = await api.postSystemEmailTemplatePublish(body);
1648
+ console.log(data);
1649
+ } catch (error) {
1650
+ console.error(error);
1651
+ }
1652
+ }
1653
+
1654
+ // Run the test
1655
+ example().catch(console.error);
1656
+ ```
1657
+
1658
+ ### Parameters
1659
+
1660
+
1661
+ | Name | Type | Description | Notes |
1662
+ |------------- | ------------- | ------------- | -------------|
1663
+ | **templateKey** | `string` | | [Defaults to `undefined`] |
1664
+
1665
+ ### Return type
1666
+
1667
+ [**EmailTemplateVersion**](EmailTemplateVersion.md)
1668
+
1669
+ ### Authorization
1670
+
1671
+ No authorization required
1672
+
1673
+ ### HTTP request headers
1674
+
1675
+ - **Content-Type**: Not defined
1676
+ - **Accept**: `application/json`
1677
+
1678
+
1679
+ ### HTTP response details
1680
+ | Status code | Description | Response headers |
1681
+ |-------------|-------------|------------------|
1682
+ | **200** | Published version | - |
1683
+
1684
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1685
+
1686
+
1687
+ ## postSystemEmailTemplateTestSend
1688
+
1689
+ > GetEmailDelivery postSystemEmailTemplateTestSend(templateKey, postEmailTemplateTestSend)
1690
+
1691
+ Queue a test of the saved platform draft
1692
+
1693
+ ### Example
1694
+
1695
+ ```ts
1696
+ import {
1697
+ Configuration,
1698
+ EmailTemplateApi,
1699
+ } from '@easyedu/js-lsm-api';
1700
+ import type { PostSystemEmailTemplateTestSendRequest } from '@easyedu/js-lsm-api';
1701
+
1702
+ async function example() {
1703
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
1704
+ const api = new EmailTemplateApi();
1705
+
1706
+ const body = {
1707
+ // string
1708
+ templateKey: templateKey_example,
1709
+ // PostEmailTemplateTestSend
1710
+ postEmailTemplateTestSend: ...,
1711
+ } satisfies PostSystemEmailTemplateTestSendRequest;
1712
+
1713
+ try {
1714
+ const data = await api.postSystemEmailTemplateTestSend(body);
1715
+ console.log(data);
1716
+ } catch (error) {
1717
+ console.error(error);
1718
+ }
1719
+ }
1720
+
1721
+ // Run the test
1722
+ example().catch(console.error);
1723
+ ```
1724
+
1725
+ ### Parameters
1726
+
1727
+
1728
+ | Name | Type | Description | Notes |
1729
+ |------------- | ------------- | ------------- | -------------|
1730
+ | **templateKey** | `string` | | [Defaults to `undefined`] |
1731
+ | **postEmailTemplateTestSend** | [PostEmailTemplateTestSend](PostEmailTemplateTestSend.md) | | |
1732
+
1733
+ ### Return type
1734
+
1735
+ [**GetEmailDelivery**](GetEmailDelivery.md)
1736
+
1737
+ ### Authorization
1738
+
1739
+ No authorization required
1740
+
1741
+ ### HTTP request headers
1742
+
1743
+ - **Content-Type**: `application/json`
1744
+ - **Accept**: `application/json`
1745
+
1746
+
1747
+ ### HTTP response details
1748
+ | Status code | Description | Response headers |
1749
+ |-------------|-------------|------------------|
1750
+ | **202** | Test queued | - |
1751
+
1752
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1753
+
1754
+
1755
+ ## postSystemEmailTemplateVersionRestore
1756
+
1757
+ > EmailTemplateVersion postSystemEmailTemplateVersionRestore(templateKey, versionId)
1758
+
1759
+ Restore a historical platform email template version
1760
+
1761
+ ### Example
1762
+
1763
+ ```ts
1764
+ import {
1765
+ Configuration,
1766
+ EmailTemplateApi,
1767
+ } from '@easyedu/js-lsm-api';
1768
+ import type { PostSystemEmailTemplateVersionRestoreRequest } from '@easyedu/js-lsm-api';
1769
+
1770
+ async function example() {
1771
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
1772
+ const api = new EmailTemplateApi();
1773
+
1774
+ const body = {
1775
+ // string
1776
+ templateKey: templateKey_example,
1777
+ // string
1778
+ versionId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
1779
+ } satisfies PostSystemEmailTemplateVersionRestoreRequest;
1780
+
1781
+ try {
1782
+ const data = await api.postSystemEmailTemplateVersionRestore(body);
1783
+ console.log(data);
1784
+ } catch (error) {
1785
+ console.error(error);
1786
+ }
1787
+ }
1788
+
1789
+ // Run the test
1790
+ example().catch(console.error);
1791
+ ```
1792
+
1793
+ ### Parameters
1794
+
1795
+
1796
+ | Name | Type | Description | Notes |
1797
+ |------------- | ------------- | ------------- | -------------|
1798
+ | **templateKey** | `string` | | [Defaults to `undefined`] |
1799
+ | **versionId** | `string` | | [Defaults to `undefined`] |
1800
+
1801
+ ### Return type
1802
+
1803
+ [**EmailTemplateVersion**](EmailTemplateVersion.md)
1804
+
1805
+ ### Authorization
1806
+
1807
+ No authorization required
1808
+
1809
+ ### HTTP request headers
1810
+
1811
+ - **Content-Type**: Not defined
1812
+ - **Accept**: `application/json`
1813
+
1814
+
1815
+ ### HTTP response details
1816
+ | Status code | Description | Response headers |
1817
+ |-------------|-------------|------------------|
1818
+ | **201** | Restored draft | - |
1819
+
1820
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1821
+
1822
+
1823
+ ## putEmailAssetFile
1824
+
1825
+ > putEmailAssetFile(assetId, body)
1826
+
1827
+ Upload a pending selected-portal email image
1828
+
1829
+ ### Example
1830
+
1831
+ ```ts
1832
+ import {
1833
+ Configuration,
1834
+ EmailTemplateApi,
1835
+ } from '@easyedu/js-lsm-api';
1836
+ import type { PutEmailAssetFileRequest } from '@easyedu/js-lsm-api';
1837
+
1838
+ async function example() {
1839
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
1840
+ const api = new EmailTemplateApi();
1841
+
1842
+ const body = {
1843
+ // string
1844
+ assetId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
1845
+ // Blob
1846
+ body: BINARY_DATA_HERE,
1847
+ } satisfies PutEmailAssetFileRequest;
1848
+
1849
+ try {
1850
+ const data = await api.putEmailAssetFile(body);
1851
+ console.log(data);
1852
+ } catch (error) {
1853
+ console.error(error);
1854
+ }
1855
+ }
1856
+
1857
+ // Run the test
1858
+ example().catch(console.error);
1859
+ ```
1860
+
1861
+ ### Parameters
1862
+
1863
+
1864
+ | Name | Type | Description | Notes |
1865
+ |------------- | ------------- | ------------- | -------------|
1866
+ | **assetId** | `string` | | [Defaults to `undefined`] |
1867
+ | **body** | `Blob` | | |
1868
+
1869
+ ### Return type
1870
+
1871
+ `void` (Empty response body)
1872
+
1873
+ ### Authorization
1874
+
1875
+ No authorization required
1876
+
1877
+ ### HTTP request headers
1878
+
1879
+ - **Content-Type**: `image/png`, `image/jpeg`, `image/webp`, `image/gif`
1880
+ - **Accept**: Not defined
1881
+
1882
+
1883
+ ### HTTP response details
1884
+ | Status code | Description | Response headers |
1885
+ |-------------|-------------|------------------|
1886
+ | **204** | Image uploaded | - |
1887
+ | **413** | Image too large | - |
1888
+
1889
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1890
+
1891
+
1892
+ ## putEmailTemplateDraft
1893
+
1894
+ > EmailTemplateVersion putEmailTemplateDraft(templateKey, putEmailTemplateDraft)
1895
+
1896
+ Update a portal email template draft
1897
+
1898
+ ### Example
1899
+
1900
+ ```ts
1901
+ import {
1902
+ Configuration,
1903
+ EmailTemplateApi,
1904
+ } from '@easyedu/js-lsm-api';
1905
+ import type { PutEmailTemplateDraftRequest } from '@easyedu/js-lsm-api';
1906
+
1907
+ async function example() {
1908
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
1909
+ const api = new EmailTemplateApi();
1910
+
1911
+ const body = {
1912
+ // string
1913
+ templateKey: templateKey_example,
1914
+ // PutEmailTemplateDraft
1915
+ putEmailTemplateDraft: ...,
1916
+ } satisfies PutEmailTemplateDraftRequest;
1917
+
1918
+ try {
1919
+ const data = await api.putEmailTemplateDraft(body);
1920
+ console.log(data);
1921
+ } catch (error) {
1922
+ console.error(error);
1923
+ }
1924
+ }
1925
+
1926
+ // Run the test
1927
+ example().catch(console.error);
1928
+ ```
1929
+
1930
+ ### Parameters
1931
+
1932
+
1933
+ | Name | Type | Description | Notes |
1934
+ |------------- | ------------- | ------------- | -------------|
1935
+ | **templateKey** | `string` | | [Defaults to `undefined`] |
1936
+ | **putEmailTemplateDraft** | [PutEmailTemplateDraft](PutEmailTemplateDraft.md) | | |
1937
+
1938
+ ### Return type
1939
+
1940
+ [**EmailTemplateVersion**](EmailTemplateVersion.md)
1941
+
1942
+ ### Authorization
1943
+
1944
+ No authorization required
1945
+
1946
+ ### HTTP request headers
1947
+
1948
+ - **Content-Type**: `application/json`
1949
+ - **Accept**: `application/json`
1950
+
1951
+
1952
+ ### HTTP response details
1953
+ | Status code | Description | Response headers |
1954
+ |-------------|-------------|------------------|
1955
+ | **200** | Draft updated | - |
1956
+ | **400** | Invalid draft | - |
1957
+ | **404** | Draft not found | - |
1958
+
1959
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1960
+
1961
+
1962
+ ## putSystemEmailAssetFile
1963
+
1964
+ > putSystemEmailAssetFile(assetId, body)
1965
+
1966
+ Upload a pending platform email image
1967
+
1968
+ ### Example
1969
+
1970
+ ```ts
1971
+ import {
1972
+ Configuration,
1973
+ EmailTemplateApi,
1974
+ } from '@easyedu/js-lsm-api';
1975
+ import type { PutSystemEmailAssetFileRequest } from '@easyedu/js-lsm-api';
1976
+
1977
+ async function example() {
1978
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
1979
+ const api = new EmailTemplateApi();
1980
+
1981
+ const body = {
1982
+ // string
1983
+ assetId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
1984
+ // Blob
1985
+ body: BINARY_DATA_HERE,
1986
+ } satisfies PutSystemEmailAssetFileRequest;
1987
+
1988
+ try {
1989
+ const data = await api.putSystemEmailAssetFile(body);
1990
+ console.log(data);
1991
+ } catch (error) {
1992
+ console.error(error);
1993
+ }
1994
+ }
1995
+
1996
+ // Run the test
1997
+ example().catch(console.error);
1998
+ ```
1999
+
2000
+ ### Parameters
2001
+
2002
+
2003
+ | Name | Type | Description | Notes |
2004
+ |------------- | ------------- | ------------- | -------------|
2005
+ | **assetId** | `string` | | [Defaults to `undefined`] |
2006
+ | **body** | `Blob` | | |
2007
+
2008
+ ### Return type
2009
+
2010
+ `void` (Empty response body)
2011
+
2012
+ ### Authorization
2013
+
2014
+ No authorization required
2015
+
2016
+ ### HTTP request headers
2017
+
2018
+ - **Content-Type**: `image/png`, `image/jpeg`, `image/webp`, `image/gif`
2019
+ - **Accept**: Not defined
2020
+
2021
+
2022
+ ### HTTP response details
2023
+ | Status code | Description | Response headers |
2024
+ |-------------|-------------|------------------|
2025
+ | **204** | Image uploaded | - |
2026
+ | **413** | Image too large | - |
2027
+
2028
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
2029
+
2030
+
2031
+ ## putSystemEmailTemplateDraft
2032
+
2033
+ > EmailTemplateVersion putSystemEmailTemplateDraft(templateKey, putEmailTemplateDraft)
2034
+
2035
+ Update a platform email template draft
2036
+
2037
+ ### Example
2038
+
2039
+ ```ts
2040
+ import {
2041
+ Configuration,
2042
+ EmailTemplateApi,
2043
+ } from '@easyedu/js-lsm-api';
2044
+ import type { PutSystemEmailTemplateDraftRequest } from '@easyedu/js-lsm-api';
2045
+
2046
+ async function example() {
2047
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
2048
+ const api = new EmailTemplateApi();
2049
+
2050
+ const body = {
2051
+ // string
2052
+ templateKey: templateKey_example,
2053
+ // PutEmailTemplateDraft
2054
+ putEmailTemplateDraft: ...,
2055
+ } satisfies PutSystemEmailTemplateDraftRequest;
2056
+
2057
+ try {
2058
+ const data = await api.putSystemEmailTemplateDraft(body);
2059
+ console.log(data);
2060
+ } catch (error) {
2061
+ console.error(error);
2062
+ }
2063
+ }
2064
+
2065
+ // Run the test
2066
+ example().catch(console.error);
2067
+ ```
2068
+
2069
+ ### Parameters
2070
+
2071
+
2072
+ | Name | Type | Description | Notes |
2073
+ |------------- | ------------- | ------------- | -------------|
2074
+ | **templateKey** | `string` | | [Defaults to `undefined`] |
2075
+ | **putEmailTemplateDraft** | [PutEmailTemplateDraft](PutEmailTemplateDraft.md) | | |
2076
+
2077
+ ### Return type
2078
+
2079
+ [**EmailTemplateVersion**](EmailTemplateVersion.md)
2080
+
2081
+ ### Authorization
2082
+
2083
+ No authorization required
2084
+
2085
+ ### HTTP request headers
2086
+
2087
+ - **Content-Type**: `application/json`
2088
+ - **Accept**: `application/json`
2089
+
2090
+
2091
+ ### HTTP response details
2092
+ | Status code | Description | Response headers |
2093
+ |-------------|-------------|------------------|
2094
+ | **200** | Draft updated | - |
2095
+
2096
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
2097
+