@easyedu/js-lsm-api 1.103.0 → 1.105.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 (122) hide show
  1. package/.openapi-generator/FILES +30 -0
  2. package/README.md +24 -2
  3. package/dist/apis/ChatApi.d.ts +98 -0
  4. package/dist/apis/ChatApi.js +255 -0
  5. package/dist/apis/EmailTemplateApi.d.ts +32 -0
  6. package/dist/apis/EmailTemplateApi.js +64 -1
  7. package/dist/esm/apis/ChatApi.d.ts +98 -0
  8. package/dist/esm/apis/ChatApi.js +255 -0
  9. package/dist/esm/apis/EmailTemplateApi.d.ts +32 -0
  10. package/dist/esm/apis/EmailTemplateApi.js +63 -0
  11. package/dist/esm/models/AdminChatMessage.d.ts +51 -0
  12. package/dist/esm/models/AdminChatMessage.js +54 -0
  13. package/dist/esm/models/AdminConversationDetail.d.ts +90 -0
  14. package/dist/esm/models/AdminConversationDetail.js +81 -0
  15. package/dist/esm/models/AdminConversationList.d.ts +57 -0
  16. package/dist/esm/models/AdminConversationList.js +60 -0
  17. package/dist/esm/models/AdminConversationSummary.d.ts +83 -0
  18. package/dist/esm/models/AdminConversationSummary.js +76 -0
  19. package/dist/esm/models/ChatDailyUsage.d.ts +39 -0
  20. package/dist/esm/models/ChatDailyUsage.js +48 -0
  21. package/dist/esm/models/ChatModelUsage.d.ts +68 -0
  22. package/dist/esm/models/ChatModelUsage.js +67 -0
  23. package/dist/esm/models/ChatQuota.d.ts +56 -0
  24. package/dist/esm/models/ChatQuota.js +59 -0
  25. package/dist/esm/models/ChatQuotaExceeded.d.ts +56 -0
  26. package/dist/esm/models/ChatQuotaExceeded.js +59 -0
  27. package/dist/esm/models/ChatTurnUsage.d.ts +82 -0
  28. package/dist/esm/models/ChatTurnUsage.js +78 -0
  29. package/dist/esm/models/ChatUsageTotals.d.ts +68 -0
  30. package/dist/esm/models/ChatUsageTotals.js +67 -0
  31. package/dist/esm/models/ChatUserIdentity.d.ts +50 -0
  32. package/dist/esm/models/ChatUserIdentity.js +55 -0
  33. package/dist/esm/models/GetChatSettings.d.ts +51 -0
  34. package/dist/esm/models/GetChatSettings.js +57 -0
  35. package/dist/esm/models/GetChatUsage.d.ts +59 -0
  36. package/dist/esm/models/GetChatUsage.js +62 -0
  37. package/dist/esm/models/GetEmailDelivery.d.ts +31 -0
  38. package/dist/esm/models/GetEmailDelivery.js +13 -0
  39. package/dist/esm/models/GetPortalInvitationSummary.d.ts +102 -0
  40. package/dist/esm/models/GetPortalInvitationSummary.js +87 -0
  41. package/dist/esm/models/GetPortalUser.d.ts +7 -0
  42. package/dist/esm/models/GetPortalUser.js +3 -0
  43. package/dist/esm/models/PutChatSettings.d.ts +32 -0
  44. package/dist/esm/models/PutChatSettings.js +43 -0
  45. package/dist/esm/models/index.d.ts +15 -0
  46. package/dist/esm/models/index.js +15 -0
  47. package/dist/models/AdminChatMessage.d.ts +51 -0
  48. package/dist/models/AdminChatMessage.js +61 -0
  49. package/dist/models/AdminConversationDetail.d.ts +90 -0
  50. package/dist/models/AdminConversationDetail.js +88 -0
  51. package/dist/models/AdminConversationList.d.ts +57 -0
  52. package/dist/models/AdminConversationList.js +67 -0
  53. package/dist/models/AdminConversationSummary.d.ts +83 -0
  54. package/dist/models/AdminConversationSummary.js +83 -0
  55. package/dist/models/ChatDailyUsage.d.ts +39 -0
  56. package/dist/models/ChatDailyUsage.js +55 -0
  57. package/dist/models/ChatModelUsage.d.ts +68 -0
  58. package/dist/models/ChatModelUsage.js +74 -0
  59. package/dist/models/ChatQuota.d.ts +56 -0
  60. package/dist/models/ChatQuota.js +66 -0
  61. package/dist/models/ChatQuotaExceeded.d.ts +56 -0
  62. package/dist/models/ChatQuotaExceeded.js +66 -0
  63. package/dist/models/ChatTurnUsage.d.ts +82 -0
  64. package/dist/models/ChatTurnUsage.js +86 -0
  65. package/dist/models/ChatUsageTotals.d.ts +68 -0
  66. package/dist/models/ChatUsageTotals.js +74 -0
  67. package/dist/models/ChatUserIdentity.d.ts +50 -0
  68. package/dist/models/ChatUserIdentity.js +62 -0
  69. package/dist/models/GetChatSettings.d.ts +51 -0
  70. package/dist/models/GetChatSettings.js +65 -0
  71. package/dist/models/GetChatUsage.d.ts +59 -0
  72. package/dist/models/GetChatUsage.js +69 -0
  73. package/dist/models/GetEmailDelivery.d.ts +31 -0
  74. package/dist/models/GetEmailDelivery.js +13 -0
  75. package/dist/models/GetPortalInvitationSummary.d.ts +102 -0
  76. package/dist/models/GetPortalInvitationSummary.js +95 -0
  77. package/dist/models/GetPortalUser.d.ts +7 -0
  78. package/dist/models/GetPortalUser.js +3 -0
  79. package/dist/models/PutChatSettings.d.ts +32 -0
  80. package/dist/models/PutChatSettings.js +50 -0
  81. package/dist/models/index.d.ts +15 -0
  82. package/dist/models/index.js +15 -0
  83. package/docs/AdminChatMessage.md +40 -0
  84. package/docs/AdminConversationDetail.md +52 -0
  85. package/docs/AdminConversationList.md +42 -0
  86. package/docs/AdminConversationSummary.md +50 -0
  87. package/docs/ChatApi.md +422 -0
  88. package/docs/ChatDailyUsage.md +36 -0
  89. package/docs/ChatModelUsage.md +46 -0
  90. package/docs/ChatQuota.md +42 -0
  91. package/docs/ChatQuotaExceeded.md +42 -0
  92. package/docs/ChatTurnUsage.md +48 -0
  93. package/docs/ChatUsageTotals.md +46 -0
  94. package/docs/ChatUserIdentity.md +40 -0
  95. package/docs/EmailTemplateApi.md +82 -1
  96. package/docs/GetChatSettings.md +38 -0
  97. package/docs/GetChatUsage.md +42 -0
  98. package/docs/GetEmailDelivery.md +10 -0
  99. package/docs/GetPortalInvitationSummary.md +51 -0
  100. package/docs/GetPortalUser.md +2 -0
  101. package/docs/PutChatSettings.md +34 -0
  102. package/package.json +1 -1
  103. package/src/apis/ChatApi.ts +339 -0
  104. package/src/apis/EmailTemplateApi.ts +83 -0
  105. package/src/models/AdminChatMessage.ts +100 -0
  106. package/src/models/AdminConversationDetail.ts +175 -0
  107. package/src/models/AdminConversationList.ts +110 -0
  108. package/src/models/AdminConversationSummary.ts +159 -0
  109. package/src/models/ChatDailyUsage.ts +83 -0
  110. package/src/models/ChatModelUsage.ts +120 -0
  111. package/src/models/ChatQuota.ts +102 -0
  112. package/src/models/ChatQuotaExceeded.ts +102 -0
  113. package/src/models/ChatTurnUsage.ts +140 -0
  114. package/src/models/ChatUsageTotals.ts +120 -0
  115. package/src/models/ChatUserIdentity.ts +93 -0
  116. package/src/models/GetChatSettings.ts +94 -0
  117. package/src/models/GetChatUsage.ts +124 -0
  118. package/src/models/GetEmailDelivery.ts +49 -0
  119. package/src/models/GetPortalInvitationSummary.ts +160 -0
  120. package/src/models/GetPortalUser.ts +16 -0
  121. package/src/models/PutChatSettings.ts +66 -0
  122. package/src/models/index.ts +15 -0
@@ -0,0 +1,40 @@
1
+
2
+ # ChatUserIdentity
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | string
10
+ `firstName` | string
11
+ `lastName` | string
12
+ `email` | string
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { ChatUserIdentity } from '@easyedu/js-lsm-api'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "id": null,
22
+ "firstName": null,
23
+ "lastName": null,
24
+ "email": null,
25
+ } satisfies ChatUserIdentity
26
+
27
+ console.log(example)
28
+
29
+ // Convert the instance to a JSON string
30
+ const exampleJSON: string = JSON.stringify(example)
31
+ console.log(exampleJSON)
32
+
33
+ // Parse the JSON string back to an object
34
+ const exampleParsed = JSON.parse(exampleJSON) as ChatUserIdentity
35
+ console.log(exampleParsed)
36
+ ```
37
+
38
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
39
+
40
+
@@ -35,6 +35,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
35
35
  | [**putEmailTemplateDraft**](EmailTemplateApi.md#putemailtemplatedraft) | **PUT** /email-templates/{templateKey}/draft | Update a portal email template draft |
36
36
  | [**putSystemEmailAssetFile**](EmailTemplateApi.md#putsystememailassetfile) | **PUT** /system/email-assets/{assetId}/file | Upload a pending platform email image |
37
37
  | [**putSystemEmailTemplateDraft**](EmailTemplateApi.md#putsystememailtemplatedraft) | **PUT** /system/email-templates/{templateKey}/draft | Update a platform email template draft |
38
+ | [**resendEmailDelivery**](EmailTemplateApi.md#resendemaildelivery) | **POST** /email-deliveries/{deliveryId}/resend | Regenerate and queue a portal email from its current business source |
38
39
 
39
40
 
40
41
 
@@ -172,7 +173,7 @@ No authorization required
172
173
 
173
174
  ## getEmailDeliveryList
174
175
 
175
- > GetEmailDeliveryList getEmailDeliveryList(page, pageSize)
176
+ > GetEmailDeliveryList getEmailDeliveryList(page, pageSize, templateKey, status, recipient, isTest)
176
177
 
177
178
  List selected-portal email delivery activity
178
179
 
@@ -194,6 +195,14 @@ async function example() {
194
195
  page: 56,
195
196
  // number (optional)
196
197
  pageSize: 56,
198
+ // string (optional)
199
+ templateKey: templateKey_example,
200
+ // 'queued' | 'processing' | 'accepted' | 'delivered' | 'deferred' | 'failed' | 'complained' (optional)
201
+ status: status_example,
202
+ // string | Case-insensitive recipient substring search (optional)
203
+ recipient: recipient_example,
204
+ // boolean (optional)
205
+ isTest: true,
197
206
  } satisfies GetEmailDeliveryListRequest;
198
207
 
199
208
  try {
@@ -215,6 +224,10 @@ example().catch(console.error);
215
224
  |------------- | ------------- | ------------- | -------------|
216
225
  | **page** | `number` | | [Optional] [Defaults to `1`] |
217
226
  | **pageSize** | `number` | | [Optional] [Defaults to `20`] |
227
+ | **templateKey** | `string` | | [Optional] [Defaults to `undefined`] |
228
+ | **status** | `queued`, `processing`, `accepted`, `delivered`, `deferred`, `failed`, `complained` | | [Optional] [Defaults to `undefined`] [Enum: queued, processing, accepted, delivered, deferred, failed, complained] |
229
+ | **recipient** | `string` | Case-insensitive recipient substring search | [Optional] [Defaults to `undefined`] |
230
+ | **isTest** | `boolean` | | [Optional] [Defaults to `undefined`] |
218
231
 
219
232
  ### Return type
220
233
 
@@ -2095,3 +2108,71 @@ No authorization required
2095
2108
 
2096
2109
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
2097
2110
 
2111
+
2112
+ ## resendEmailDelivery
2113
+
2114
+ > GetEmailDelivery resendEmailDelivery(deliveryId)
2115
+
2116
+ Regenerate and queue a portal email from its current business source
2117
+
2118
+ ### Example
2119
+
2120
+ ```ts
2121
+ import {
2122
+ Configuration,
2123
+ EmailTemplateApi,
2124
+ } from '@easyedu/js-lsm-api';
2125
+ import type { ResendEmailDeliveryRequest } from '@easyedu/js-lsm-api';
2126
+
2127
+ async function example() {
2128
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
2129
+ const api = new EmailTemplateApi();
2130
+
2131
+ const body = {
2132
+ // string
2133
+ deliveryId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
2134
+ } satisfies ResendEmailDeliveryRequest;
2135
+
2136
+ try {
2137
+ const data = await api.resendEmailDelivery(body);
2138
+ console.log(data);
2139
+ } catch (error) {
2140
+ console.error(error);
2141
+ }
2142
+ }
2143
+
2144
+ // Run the test
2145
+ example().catch(console.error);
2146
+ ```
2147
+
2148
+ ### Parameters
2149
+
2150
+
2151
+ | Name | Type | Description | Notes |
2152
+ |------------- | ------------- | ------------- | -------------|
2153
+ | **deliveryId** | `string` | | [Defaults to `undefined`] |
2154
+
2155
+ ### Return type
2156
+
2157
+ [**GetEmailDelivery**](GetEmailDelivery.md)
2158
+
2159
+ ### Authorization
2160
+
2161
+ No authorization required
2162
+
2163
+ ### HTTP request headers
2164
+
2165
+ - **Content-Type**: Not defined
2166
+ - **Accept**: `application/json`
2167
+
2168
+
2169
+ ### HTTP response details
2170
+ | Status code | Description | Response headers |
2171
+ |-------------|-------------|------------------|
2172
+ | **201** | Newly queued delivery | - |
2173
+ | **404** | Delivery not found in the selected portal | - |
2174
+ | **409** | Delivery source is no longer eligible or another send is active | - |
2175
+ | **429** | Delivery source resend cooldown is active | - |
2176
+
2177
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
2178
+
@@ -0,0 +1,38 @@
1
+
2
+ # GetChatSettings
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `learnerDailyMessageLimit` | number
10
+ `resetPolicy` | string
11
+ `updatedAt` | number
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { GetChatSettings } from '@easyedu/js-lsm-api'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "learnerDailyMessageLimit": null,
21
+ "resetPolicy": null,
22
+ "updatedAt": null,
23
+ } satisfies GetChatSettings
24
+
25
+ console.log(example)
26
+
27
+ // Convert the instance to a JSON string
28
+ const exampleJSON: string = JSON.stringify(example)
29
+ console.log(exampleJSON)
30
+
31
+ // Parse the JSON string back to an object
32
+ const exampleParsed = JSON.parse(exampleJSON) as GetChatSettings
33
+ console.log(exampleParsed)
34
+ ```
35
+
36
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
37
+
38
+
@@ -0,0 +1,42 @@
1
+
2
+ # GetChatUsage
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `from` | number
10
+ `to` | number
11
+ `totals` | [ChatUsageTotals](ChatUsageTotals.md)
12
+ `daily` | [Array<ChatDailyUsage>](ChatDailyUsage.md)
13
+ `modelUsage` | [Array<ChatModelUsage>](ChatModelUsage.md)
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import type { GetChatUsage } from '@easyedu/js-lsm-api'
19
+
20
+ // TODO: Update the object below with actual values
21
+ const example = {
22
+ "from": null,
23
+ "to": null,
24
+ "totals": null,
25
+ "daily": null,
26
+ "modelUsage": null,
27
+ } satisfies GetChatUsage
28
+
29
+ console.log(example)
30
+
31
+ // Convert the instance to a JSON string
32
+ const exampleJSON: string = JSON.stringify(example)
33
+ console.log(exampleJSON)
34
+
35
+ // Parse the JSON string back to an object
36
+ const exampleParsed = JSON.parse(exampleJSON) as GetChatUsage
37
+ console.log(exampleParsed)
38
+ ```
39
+
40
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
41
+
42
+
@@ -10,6 +10,7 @@ Name | Type
10
10
  `templateKey` | string
11
11
  `templateVersionId` | string
12
12
  `recipient` | string
13
+ `subject` | string
13
14
  `isTest` | boolean
14
15
  `status` | string
15
16
  `attempts` | number
@@ -20,6 +21,10 @@ Name | Type
20
21
  `acceptedAt` | number
21
22
  `deliveredAt` | number
22
23
  `failedAt` | number
24
+ `resendOfDeliveryId` | string
25
+ `canResend` | boolean
26
+ `resendBlockedReason` | string
27
+ `invitation` | [GetPortalInvitationSummary](GetPortalInvitationSummary.md)
23
28
 
24
29
  ## Example
25
30
 
@@ -32,6 +37,7 @@ const example = {
32
37
  "templateKey": null,
33
38
  "templateVersionId": null,
34
39
  "recipient": null,
40
+ "subject": null,
35
41
  "isTest": null,
36
42
  "status": null,
37
43
  "attempts": null,
@@ -42,6 +48,10 @@ const example = {
42
48
  "acceptedAt": null,
43
49
  "deliveredAt": null,
44
50
  "failedAt": null,
51
+ "resendOfDeliveryId": null,
52
+ "canResend": null,
53
+ "resendBlockedReason": null,
54
+ "invitation": null,
45
55
  } satisfies GetEmailDelivery
46
56
 
47
57
  console.log(example)
@@ -0,0 +1,51 @@
1
+
2
+ # GetPortalInvitationSummary
3
+
4
+ Invitation lifecycle and latest email delivery state for a portal user.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `id` | string
11
+ `status` | string
12
+ `invitedAt` | number
13
+ `expiresAt` | number
14
+ `acceptedAt` | number
15
+ `lastSentAt` | number
16
+ `latestDeliveryStatus` | string
17
+ `canResend` | boolean
18
+ `resendBlockedReason` | string
19
+
20
+ ## Example
21
+
22
+ ```typescript
23
+ import type { GetPortalInvitationSummary } from '@easyedu/js-lsm-api'
24
+
25
+ // TODO: Update the object below with actual values
26
+ const example = {
27
+ "id": null,
28
+ "status": null,
29
+ "invitedAt": null,
30
+ "expiresAt": null,
31
+ "acceptedAt": null,
32
+ "lastSentAt": null,
33
+ "latestDeliveryStatus": null,
34
+ "canResend": null,
35
+ "resendBlockedReason": null,
36
+ } satisfies GetPortalInvitationSummary
37
+
38
+ console.log(example)
39
+
40
+ // Convert the instance to a JSON string
41
+ const exampleJSON: string = JSON.stringify(example)
42
+ console.log(exampleJSON)
43
+
44
+ // Parse the JSON string back to an object
45
+ const exampleParsed = JSON.parse(exampleJSON) as GetPortalInvitationSummary
46
+ console.log(exampleParsed)
47
+ ```
48
+
49
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
50
+
51
+
@@ -13,6 +13,7 @@ Name | Type
13
13
  `lastName` | string
14
14
  `role` | string
15
15
  `isActive` | boolean
16
+ `invitation` | [GetPortalInvitationSummary](GetPortalInvitationSummary.md)
16
17
 
17
18
  ## Example
18
19
 
@@ -27,6 +28,7 @@ const example = {
27
28
  "lastName": null,
28
29
  "role": null,
29
30
  "isActive": null,
31
+ "invitation": null,
30
32
  } satisfies GetPortalUser
31
33
 
32
34
  console.log(example)
@@ -0,0 +1,34 @@
1
+
2
+ # PutChatSettings
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `learnerDailyMessageLimit` | number
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { PutChatSettings } from '@easyedu/js-lsm-api'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "learnerDailyMessageLimit": null,
19
+ } satisfies PutChatSettings
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as PutChatSettings
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyedu/js-lsm-api",
3
- "version": "1.103.0",
3
+ "version": "1.105.0",
4
4
  "description": "OpenAPI client for @easyedu/js-lsm-api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {