@easyedu/js-lsm-api 1.132.0 → 1.134.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 (170) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/README.md +8 -3
  3. package/dist/apis/IntegrationApi.d.ts +7 -3
  4. package/dist/apis/IntegrationApi.js +10 -5
  5. package/dist/apis/PortalApi.d.ts +30 -0
  6. package/dist/apis/PortalApi.js +63 -1
  7. package/dist/apis/QuestionApi.d.ts +19 -0
  8. package/dist/apis/QuestionApi.js +44 -0
  9. package/dist/esm/apis/IntegrationApi.d.ts +7 -3
  10. package/dist/esm/apis/IntegrationApi.js +10 -5
  11. package/dist/esm/apis/PortalApi.d.ts +30 -0
  12. package/dist/esm/apis/PortalApi.js +62 -0
  13. package/dist/esm/apis/QuestionApi.d.ts +19 -0
  14. package/dist/esm/apis/QuestionApi.js +44 -0
  15. package/dist/esm/models/GetCourse.d.ts +6 -0
  16. package/dist/esm/models/GetCourse.js +4 -0
  17. package/dist/esm/models/GetCourseEnrollmentListItem.d.ts +6 -0
  18. package/dist/esm/models/GetCourseEnrollmentListItem.js +2 -0
  19. package/dist/esm/models/GetPortalUser.d.ts +6 -0
  20. package/dist/esm/models/GetPortalUser.js +4 -0
  21. package/dist/esm/models/GetResource.d.ts +6 -0
  22. package/dist/esm/models/GetResource.js +4 -0
  23. package/dist/esm/models/GetResourceUsageCoursesInner.d.ts +6 -0
  24. package/dist/esm/models/GetResourceUsageCoursesInner.js +4 -0
  25. package/dist/esm/models/IntegrationEventCourse.d.ts +6 -0
  26. package/dist/esm/models/IntegrationEventCourse.js +2 -0
  27. package/dist/esm/models/IntegrationEventLearner.d.ts +6 -0
  28. package/dist/esm/models/IntegrationEventLearner.js +2 -0
  29. package/dist/esm/models/IntegrationEventUser.d.ts +6 -0
  30. package/dist/esm/models/IntegrationEventUser.js +2 -0
  31. package/dist/esm/models/PostCourse.d.ts +6 -0
  32. package/dist/esm/models/PostCourse.js +2 -0
  33. package/dist/esm/models/PostPortalInvite.d.ts +6 -0
  34. package/dist/esm/models/PostPortalInvite.js +2 -0
  35. package/dist/esm/models/PostQuestionTags.d.ts +38 -0
  36. package/dist/esm/models/PostQuestionTags.js +47 -0
  37. package/dist/esm/models/PostQuestionTagsResponse.d.ts +32 -0
  38. package/dist/esm/models/PostQuestionTagsResponse.js +43 -0
  39. package/dist/esm/models/PostResource.d.ts +6 -0
  40. package/dist/esm/models/PostResource.js +2 -0
  41. package/dist/esm/models/PostRichTextAssetUpload.d.ts +6 -0
  42. package/dist/esm/models/PostRichTextAssetUpload.js +2 -0
  43. package/dist/esm/models/PostZapierEnrollment.d.ts +16 -4
  44. package/dist/esm/models/PostZapierEnrollment.js +6 -6
  45. package/dist/esm/models/PostZapierShopifyCourseMapping.d.ts +8 -2
  46. package/dist/esm/models/PostZapierShopifyCourseMapping.js +3 -3
  47. package/dist/esm/models/PostZapierUser.d.ts +6 -0
  48. package/dist/esm/models/PostZapierUser.js +2 -0
  49. package/dist/esm/models/PutCourse.d.ts +6 -0
  50. package/dist/esm/models/PutCourse.js +2 -0
  51. package/dist/esm/models/PutPortalUser.d.ts +32 -0
  52. package/dist/esm/models/PutPortalUser.js +41 -0
  53. package/dist/esm/models/PutResource.d.ts +6 -0
  54. package/dist/esm/models/PutResource.js +2 -0
  55. package/dist/esm/models/RichTextAsset.d.ts +6 -0
  56. package/dist/esm/models/RichTextAsset.js +2 -0
  57. package/dist/esm/models/ZapierCourse.d.ts +6 -0
  58. package/dist/esm/models/ZapierCourse.js +4 -0
  59. package/dist/esm/models/ZapierEnrollment.d.ts +12 -0
  60. package/dist/esm/models/ZapierEnrollment.js +8 -0
  61. package/dist/esm/models/ZapierUser.d.ts +6 -0
  62. package/dist/esm/models/ZapierUser.js +4 -0
  63. package/dist/esm/models/index.d.ts +3 -0
  64. package/dist/esm/models/index.js +3 -0
  65. package/dist/models/GetCourse.d.ts +6 -0
  66. package/dist/models/GetCourse.js +4 -0
  67. package/dist/models/GetCourseEnrollmentListItem.d.ts +6 -0
  68. package/dist/models/GetCourseEnrollmentListItem.js +2 -0
  69. package/dist/models/GetPortalUser.d.ts +6 -0
  70. package/dist/models/GetPortalUser.js +4 -0
  71. package/dist/models/GetResource.d.ts +6 -0
  72. package/dist/models/GetResource.js +4 -0
  73. package/dist/models/GetResourceUsageCoursesInner.d.ts +6 -0
  74. package/dist/models/GetResourceUsageCoursesInner.js +4 -0
  75. package/dist/models/IntegrationEventCourse.d.ts +6 -0
  76. package/dist/models/IntegrationEventCourse.js +2 -0
  77. package/dist/models/IntegrationEventLearner.d.ts +6 -0
  78. package/dist/models/IntegrationEventLearner.js +2 -0
  79. package/dist/models/IntegrationEventUser.d.ts +6 -0
  80. package/dist/models/IntegrationEventUser.js +2 -0
  81. package/dist/models/PostCourse.d.ts +6 -0
  82. package/dist/models/PostCourse.js +2 -0
  83. package/dist/models/PostPortalInvite.d.ts +6 -0
  84. package/dist/models/PostPortalInvite.js +2 -0
  85. package/dist/models/PostQuestionTags.d.ts +38 -0
  86. package/dist/models/PostQuestionTags.js +54 -0
  87. package/dist/models/PostQuestionTagsResponse.d.ts +32 -0
  88. package/dist/models/PostQuestionTagsResponse.js +50 -0
  89. package/dist/models/PostResource.d.ts +6 -0
  90. package/dist/models/PostResource.js +2 -0
  91. package/dist/models/PostRichTextAssetUpload.d.ts +6 -0
  92. package/dist/models/PostRichTextAssetUpload.js +2 -0
  93. package/dist/models/PostZapierEnrollment.d.ts +16 -4
  94. package/dist/models/PostZapierEnrollment.js +6 -6
  95. package/dist/models/PostZapierShopifyCourseMapping.d.ts +8 -2
  96. package/dist/models/PostZapierShopifyCourseMapping.js +3 -3
  97. package/dist/models/PostZapierUser.d.ts +6 -0
  98. package/dist/models/PostZapierUser.js +2 -0
  99. package/dist/models/PutCourse.d.ts +6 -0
  100. package/dist/models/PutCourse.js +2 -0
  101. package/dist/models/PutPortalUser.d.ts +32 -0
  102. package/dist/models/PutPortalUser.js +48 -0
  103. package/dist/models/PutResource.d.ts +6 -0
  104. package/dist/models/PutResource.js +2 -0
  105. package/dist/models/RichTextAsset.d.ts +6 -0
  106. package/dist/models/RichTextAsset.js +2 -0
  107. package/dist/models/ZapierCourse.d.ts +6 -0
  108. package/dist/models/ZapierCourse.js +4 -0
  109. package/dist/models/ZapierEnrollment.d.ts +12 -0
  110. package/dist/models/ZapierEnrollment.js +8 -0
  111. package/dist/models/ZapierUser.d.ts +6 -0
  112. package/dist/models/ZapierUser.js +4 -0
  113. package/dist/models/index.d.ts +3 -0
  114. package/dist/models/index.js +3 -0
  115. package/docs/GetCourse.md +2 -0
  116. package/docs/GetCourseEnrollmentListItem.md +2 -0
  117. package/docs/GetPortalUser.md +2 -0
  118. package/docs/GetResource.md +2 -0
  119. package/docs/GetResourceUsageCoursesInner.md +2 -0
  120. package/docs/IntegrationApi.md +15 -6
  121. package/docs/IntegrationEventCourse.md +2 -0
  122. package/docs/IntegrationEventLearner.md +2 -0
  123. package/docs/IntegrationEventUser.md +2 -0
  124. package/docs/PortalApi.md +82 -1
  125. package/docs/PostCourse.md +2 -0
  126. package/docs/PostPortalInvite.md +2 -0
  127. package/docs/PostQuestionTags.md +37 -0
  128. package/docs/PostQuestionTagsResponse.md +34 -0
  129. package/docs/PostResource.md +2 -0
  130. package/docs/PostRichTextAssetUpload.md +2 -0
  131. package/docs/PostZapierEnrollment.md +4 -0
  132. package/docs/PostZapierShopifyCourseMapping.md +2 -0
  133. package/docs/PostZapierUser.md +2 -0
  134. package/docs/PutCourse.md +2 -0
  135. package/docs/PutPortalUser.md +35 -0
  136. package/docs/PutResource.md +2 -0
  137. package/docs/QuestionApi.md +71 -0
  138. package/docs/RichTextAsset.md +2 -0
  139. package/docs/ZapierCourse.md +2 -0
  140. package/docs/ZapierEnrollment.md +4 -0
  141. package/docs/ZapierUser.md +2 -0
  142. package/package.json +1 -1
  143. package/src/apis/IntegrationApi.ts +15 -10
  144. package/src/apis/PortalApi.ts +94 -0
  145. package/src/apis/QuestionApi.ts +63 -0
  146. package/src/models/GetCourse.ts +9 -0
  147. package/src/models/GetCourseEnrollmentListItem.ts +8 -0
  148. package/src/models/GetPortalUser.ts +9 -0
  149. package/src/models/GetResource.ts +9 -0
  150. package/src/models/GetResourceUsageCoursesInner.ts +9 -0
  151. package/src/models/IntegrationEventCourse.ts +8 -0
  152. package/src/models/IntegrationEventLearner.ts +8 -0
  153. package/src/models/IntegrationEventUser.ts +8 -0
  154. package/src/models/PostCourse.ts +8 -0
  155. package/src/models/PostPortalInvite.ts +8 -0
  156. package/src/models/PostQuestionTags.ts +75 -0
  157. package/src/models/PostQuestionTagsResponse.ts +66 -0
  158. package/src/models/PostResource.ts +8 -0
  159. package/src/models/PostRichTextAssetUpload.ts +8 -0
  160. package/src/models/PostZapierEnrollment.ts +22 -8
  161. package/src/models/PostZapierShopifyCourseMapping.ts +11 -4
  162. package/src/models/PostZapierUser.ts +8 -0
  163. package/src/models/PutCourse.ts +8 -0
  164. package/src/models/PutPortalUser.ts +65 -0
  165. package/src/models/PutResource.ts +8 -0
  166. package/src/models/RichTextAsset.ts +8 -0
  167. package/src/models/ZapierCourse.ts +9 -0
  168. package/src/models/ZapierEnrollment.ts +18 -0
  169. package/src/models/ZapierUser.ts +9 -0
  170. package/src/models/index.ts +3 -0
@@ -12,6 +12,7 @@ Name | Type
12
12
  `accessDurationDays` | number
13
13
  `accessFixedEndAt` | number
14
14
  `tags` | Set<string>
15
+ `customerRef` | string
15
16
 
16
17
  ## Example
17
18
 
@@ -26,6 +27,7 @@ const example = {
26
27
  "accessDurationDays": null,
27
28
  "accessFixedEndAt": null,
28
29
  "tags": null,
30
+ "customerRef": null,
29
31
  } satisfies PostCourse
30
32
 
31
33
  console.log(example)
@@ -10,6 +10,7 @@ Name | Type
10
10
  `firstName` | string
11
11
  `lastName` | string
12
12
  `userType` | string
13
+ `customerRef` | string
13
14
 
14
15
  ## Example
15
16
 
@@ -22,6 +23,7 @@ const example = {
22
23
  "firstName": null,
23
24
  "lastName": null,
24
25
  "userType": null,
26
+ "customerRef": null,
25
27
  } satisfies PostPortalInvite
26
28
 
27
29
  console.log(example)
@@ -0,0 +1,37 @@
1
+
2
+ # PostQuestionTags
3
+
4
+ Adds shared tags to several questions at once without creating new question versions.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `questionIds` | Array<string>
11
+ `tags` | Array<string>
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { PostQuestionTags } from '@easyedu/js-lsm-api'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "questionIds": null,
21
+ "tags": null,
22
+ } satisfies PostQuestionTags
23
+
24
+ console.log(example)
25
+
26
+ // Convert the instance to a JSON string
27
+ const exampleJSON: string = JSON.stringify(example)
28
+ console.log(exampleJSON)
29
+
30
+ // Parse the JSON string back to an object
31
+ const exampleParsed = JSON.parse(exampleJSON) as PostQuestionTags
32
+ console.log(exampleParsed)
33
+ ```
34
+
35
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
36
+
37
+
@@ -0,0 +1,34 @@
1
+
2
+ # PostQuestionTagsResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `updatedCount` | number
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { PostQuestionTagsResponse } from '@easyedu/js-lsm-api'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "updatedCount": null,
19
+ } satisfies PostQuestionTagsResponse
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 PostQuestionTagsResponse
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
+
@@ -12,6 +12,7 @@ Name | Type
12
12
  `linkUrl` | string
13
13
  `richText` | [RichTextInput](RichTextInput.md)
14
14
  `tags` | Set<string>
15
+ `customerRef` | string
15
16
 
16
17
  ## Example
17
18
 
@@ -26,6 +27,7 @@ const example = {
26
27
  "linkUrl": null,
27
28
  "richText": null,
28
29
  "tags": null,
30
+ "customerRef": null,
29
31
  } satisfies PostResource
30
32
 
31
33
  console.log(example)
@@ -12,6 +12,7 @@ Name | Type
12
12
  `width` | number
13
13
  `height` | number
14
14
  `usageContext` | string
15
+ `customerRef` | string
15
16
 
16
17
  ## Example
17
18
 
@@ -26,6 +27,7 @@ const example = {
26
27
  "width": null,
27
28
  "height": null,
28
29
  "usageContext": null,
30
+ "customerRef": null,
29
31
  } satisfies PostRichTextAssetUpload
30
32
 
31
33
  console.log(example)
@@ -13,6 +13,8 @@ Name | Type
13
13
  `enrollmentDateEnd` | number
14
14
  `notes` | string
15
15
  `reEnrollmentMode` | string
16
+ `courseCustomerRef` | string
17
+ `userCustomerRef` | string
16
18
 
17
19
  ## Example
18
20
 
@@ -28,6 +30,8 @@ const example = {
28
30
  "enrollmentDateEnd": null,
29
31
  "notes": null,
30
32
  "reEnrollmentMode": null,
33
+ "courseCustomerRef": null,
34
+ "userCustomerRef": null,
31
35
  } satisfies PostZapierEnrollment
32
36
 
33
37
  console.log(example)
@@ -10,6 +10,7 @@ Name | Type
10
10
  `variantId` | string
11
11
  `productId` | string
12
12
  `courseId` | string
13
+ `courseCustomerRef` | string
13
14
 
14
15
  ## Example
15
16
 
@@ -22,6 +23,7 @@ const example = {
22
23
  "variantId": null,
23
24
  "productId": null,
24
25
  "courseId": null,
26
+ "courseCustomerRef": null,
25
27
  } satisfies PostZapierShopifyCourseMapping
26
28
 
27
29
  console.log(example)
@@ -9,6 +9,7 @@ Name | Type
9
9
  `email` | string
10
10
  `firstName` | string
11
11
  `lastName` | string
12
+ `customerRef` | string
12
13
 
13
14
  ## Example
14
15
 
@@ -20,6 +21,7 @@ const example = {
20
21
  "email": null,
21
22
  "firstName": null,
22
23
  "lastName": null,
24
+ "customerRef": null,
23
25
  } satisfies PostZapierUser
24
26
 
25
27
  console.log(example)
package/docs/PutCourse.md CHANGED
@@ -14,6 +14,7 @@ Name | Type
14
14
  `accessDurationDays` | number
15
15
  `accessFixedEndAt` | number
16
16
  `tags` | Set<string>
17
+ `customerRef` | string
17
18
 
18
19
  ## Example
19
20
 
@@ -30,6 +31,7 @@ const example = {
30
31
  "accessDurationDays": null,
31
32
  "accessFixedEndAt": null,
32
33
  "tags": null,
34
+ "customerRef": null,
33
35
  } satisfies PutCourse
34
36
 
35
37
  console.log(example)
@@ -0,0 +1,35 @@
1
+
2
+ # PutPortalUser
3
+
4
+ Admin-managed details for a portal member.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `customerRef` | string
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { PutPortalUser } from '@easyedu/js-lsm-api'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "customerRef": null,
20
+ } satisfies PutPortalUser
21
+
22
+ console.log(example)
23
+
24
+ // Convert the instance to a JSON string
25
+ const exampleJSON: string = JSON.stringify(example)
26
+ console.log(exampleJSON)
27
+
28
+ // Parse the JSON string back to an object
29
+ const exampleParsed = JSON.parse(exampleJSON) as PutPortalUser
30
+ console.log(exampleParsed)
31
+ ```
32
+
33
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
34
+
35
+
@@ -9,6 +9,7 @@ Name | Type
9
9
  `name` | string
10
10
  `description` | string
11
11
  `tags` | Set<string>
12
+ `customerRef` | string
12
13
 
13
14
  ## Example
14
15
 
@@ -20,6 +21,7 @@ const example = {
20
21
  "name": null,
21
22
  "description": null,
22
23
  "tags": null,
24
+ "customerRef": null,
23
25
  } satisfies PutResource
24
26
 
25
27
  console.log(example)
@@ -9,6 +9,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
9
9
  | [**getQuestionList**](QuestionApi.md#getquestionlist) | **GET** /questions | Get list of questions with filtering and pagination |
10
10
  | [**getQuestionVersions**](QuestionApi.md#getquestionversions) | **GET** /questions/{questionId}/versions | Get all versions of a question |
11
11
  | [**postQuestion**](QuestionApi.md#postquestion) | **POST** /questions | Create a new question |
12
+ | [**postQuestionTags**](QuestionApi.md#postquestiontags) | **POST** /questions/tags | Add tags to several questions |
12
13
  | [**putQuestion**](QuestionApi.md#putquestion) | **PUT** /questions/{questionId} | Create the next version of a question |
13
14
 
14
15
 
@@ -355,6 +356,76 @@ No authorization required
355
356
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
356
357
 
357
358
 
359
+ ## postQuestionTags
360
+
361
+ > PostQuestionTagsResponse postQuestionTags(postQuestionTags)
362
+
363
+ Add tags to several questions
364
+
365
+ Adds the given tags to every listed question, keeping existing tags. Tags are metadata, so no new question versions are created.
366
+
367
+ ### Example
368
+
369
+ ```ts
370
+ import {
371
+ Configuration,
372
+ QuestionApi,
373
+ } from '@easyedu/js-lsm-api';
374
+ import type { PostQuestionTagsRequest } from '@easyedu/js-lsm-api';
375
+
376
+ async function example() {
377
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
378
+ const api = new QuestionApi();
379
+
380
+ const body = {
381
+ // PostQuestionTags
382
+ postQuestionTags: ...,
383
+ } satisfies PostQuestionTagsRequest;
384
+
385
+ try {
386
+ const data = await api.postQuestionTags(body);
387
+ console.log(data);
388
+ } catch (error) {
389
+ console.error(error);
390
+ }
391
+ }
392
+
393
+ // Run the test
394
+ example().catch(console.error);
395
+ ```
396
+
397
+ ### Parameters
398
+
399
+
400
+ | Name | Type | Description | Notes |
401
+ |------------- | ------------- | ------------- | -------------|
402
+ | **postQuestionTags** | [PostQuestionTags](PostQuestionTags.md) | | |
403
+
404
+ ### Return type
405
+
406
+ [**PostQuestionTagsResponse**](PostQuestionTagsResponse.md)
407
+
408
+ ### Authorization
409
+
410
+ No authorization required
411
+
412
+ ### HTTP request headers
413
+
414
+ - **Content-Type**: `application/json`
415
+ - **Accept**: `application/json`
416
+
417
+
418
+ ### HTTP response details
419
+ | Status code | Description | Response headers |
420
+ |-------------|-------------|------------------|
421
+ | **200** | Tags added | - |
422
+ | **400** | Invalid question IDs or tags | - |
423
+ | **403** | Missing permission | - |
424
+ | **409** | A tag is archived | - |
425
+
426
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
427
+
428
+
358
429
  ## putQuestion
359
430
 
360
431
  > GetQuestion putQuestion(questionId, putQuestion)
@@ -12,6 +12,7 @@ Name | Type
12
12
  `width` | number
13
13
  `height` | number
14
14
  `renderUrl` | string
15
+ `customerRef` | string
15
16
 
16
17
  ## Example
17
18
 
@@ -26,6 +27,7 @@ const example = {
26
27
  "width": null,
27
28
  "height": null,
28
29
  "renderUrl": null,
30
+ "customerRef": null,
29
31
  } satisfies RichTextAsset
30
32
 
31
33
  console.log(example)
@@ -10,6 +10,7 @@ Name | Type
10
10
  `name` | string
11
11
  `description` | string
12
12
  `published` | boolean
13
+ `customerRef` | string
13
14
 
14
15
  ## Example
15
16
 
@@ -22,6 +23,7 @@ const example = {
22
23
  "name": null,
23
24
  "description": null,
24
25
  "published": null,
26
+ "customerRef": null,
25
27
  } satisfies ZapierCourse
26
28
 
27
29
  console.log(example)
@@ -14,6 +14,8 @@ Name | Type
14
14
  `enrollmentDateEnd` | number
15
15
  `created` | boolean
16
16
  `idempotentReplay` | boolean
17
+ `courseCustomerRef` | string
18
+ `userCustomerRef` | string
17
19
 
18
20
  ## Example
19
21
 
@@ -30,6 +32,8 @@ const example = {
30
32
  "enrollmentDateEnd": null,
31
33
  "created": null,
32
34
  "idempotentReplay": null,
35
+ "courseCustomerRef": null,
36
+ "userCustomerRef": null,
33
37
  } satisfies ZapierEnrollment
34
38
 
35
39
  console.log(example)
@@ -11,6 +11,7 @@ Name | Type
11
11
  `firstName` | string
12
12
  `lastName` | string
13
13
  `created` | boolean
14
+ `customerRef` | string
14
15
 
15
16
  ## Example
16
17
 
@@ -24,6 +25,7 @@ const example = {
24
25
  "firstName": null,
25
26
  "lastName": null,
26
27
  "created": null,
28
+ "customerRef": null,
27
29
  } satisfies ZapierUser
28
30
 
29
31
  console.log(example)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyedu/js-lsm-api",
3
- "version": "1.132.0",
3
+ "version": "1.134.0",
4
4
  "description": "OpenAPI client for @easyedu/js-lsm-api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -149,6 +149,7 @@ export interface GetZapierCoursesRequest {
149
149
  page?: number;
150
150
  pageSize?: number;
151
151
  search?: string;
152
+ customerRef?: string;
152
153
  }
153
154
 
154
155
  export interface GetZapierEventsRequest {
@@ -172,7 +173,8 @@ export interface GetZapierShopifyCourseMappingsRequest {
172
173
  export interface GetZapierUsersRequest {
173
174
  xAPIKEY: string;
174
175
  xPORTALSUBDOMAIN: string;
175
- email: string;
176
+ email?: string;
177
+ customerRef?: string;
176
178
  }
177
179
 
178
180
  export interface PostCustomWebhookIntegrationRequest {
@@ -451,6 +453,10 @@ export class IntegrationApi extends runtime.BaseAPI {
451
453
  queryParameters['search'] = requestParameters['search'];
452
454
  }
453
455
 
456
+ if (requestParameters['customerRef'] != null) {
457
+ queryParameters['customer_ref'] = requestParameters['customerRef'];
458
+ }
459
+
454
460
  const headerParameters: runtime.HTTPHeaders = {};
455
461
 
456
462
  if (requestParameters['xAPIKEY'] != null) {
@@ -741,19 +747,16 @@ export class IntegrationApi extends runtime.BaseAPI {
741
747
  );
742
748
  }
743
749
 
744
- if (requestParameters['email'] == null) {
745
- throw new runtime.RequiredError(
746
- 'email',
747
- 'Required parameter "email" was null or undefined when calling getZapierUsers().'
748
- );
749
- }
750
-
751
750
  const queryParameters: any = {};
752
751
 
753
752
  if (requestParameters['email'] != null) {
754
753
  queryParameters['email'] = requestParameters['email'];
755
754
  }
756
755
 
756
+ if (requestParameters['customerRef'] != null) {
757
+ queryParameters['customer_ref'] = requestParameters['customerRef'];
758
+ }
759
+
757
760
  const headerParameters: runtime.HTTPHeaders = {};
758
761
 
759
762
  if (requestParameters['xAPIKEY'] != null) {
@@ -776,7 +779,8 @@ export class IntegrationApi extends runtime.BaseAPI {
776
779
  }
777
780
 
778
781
  /**
779
- * Find a learner by exact email address
782
+ * Send email, customer_ref, or both. When both are sent the learner must match both.
783
+ * Find a learner by exact email address or customer_ref
780
784
  */
781
785
  async getZapierUsersRaw(requestParameters: GetZapierUsersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetZapierUsers>> {
782
786
  const requestOptions = await this.getZapierUsersRequestOpts(requestParameters);
@@ -786,7 +790,8 @@ export class IntegrationApi extends runtime.BaseAPI {
786
790
  }
787
791
 
788
792
  /**
789
- * Find a learner by exact email address
793
+ * Send email, customer_ref, or both. When both are sent the learner must match both.
794
+ * Find a learner by exact email address or customer_ref
790
795
  */
791
796
  async getZapierUsers(requestParameters: GetZapierUsersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetZapierUsers> {
792
797
  const response = await this.getZapierUsersRaw(requestParameters, initOverrides);
@@ -33,6 +33,11 @@ import {
33
33
  GetPortalLogoUploadFromJSON,
34
34
  GetPortalLogoUploadToJSON,
35
35
  } from '../models/GetPortalLogoUpload';
36
+ import {
37
+ type GetPortalUser,
38
+ GetPortalUserFromJSON,
39
+ GetPortalUserToJSON,
40
+ } from '../models/GetPortalUser';
36
41
  import {
37
42
  type GetPortalUserFieldValues,
38
43
  GetPortalUserFieldValuesFromJSON,
@@ -68,6 +73,11 @@ import {
68
73
  PutPortalBrandingFromJSON,
69
74
  PutPortalBrandingToJSON,
70
75
  } from '../models/PutPortalBranding';
76
+ import {
77
+ type PutPortalUser,
78
+ PutPortalUserFromJSON,
79
+ PutPortalUserToJSON,
80
+ } from '../models/PutPortalUser';
71
81
  import {
72
82
  type PutPortalUserFieldValues,
73
83
  PutPortalUserFieldValuesFromJSON,
@@ -113,6 +123,7 @@ export interface GetPortalUsersRequest {
113
123
  type?: GetPortalUsersTypeEnum;
114
124
  roles?: Array<GetPortalUsersRolesEnum>;
115
125
  search?: string;
126
+ status?: GetPortalUsersStatusEnum;
116
127
  page?: number;
117
128
  pageSize?: number;
118
129
  }
@@ -141,6 +152,12 @@ export interface PutPortalBrandingRequest {
141
152
  putPortalBranding: PutPortalBranding;
142
153
  }
143
154
 
155
+ export interface PutPortalUserRequest {
156
+ portalId: string;
157
+ userId: string;
158
+ putPortalUser: PutPortalUser;
159
+ }
160
+
144
161
  export interface PutPortalUserFieldConfigRequest {
145
162
  portalId: string;
146
163
  portalUserFieldConfig: PortalUserFieldConfig;
@@ -549,6 +566,10 @@ export class PortalApi extends runtime.BaseAPI {
549
566
  queryParameters['search'] = requestParameters['search'];
550
567
  }
551
568
 
569
+ if (requestParameters['status'] != null) {
570
+ queryParameters['status'] = requestParameters['status'];
571
+ }
572
+
552
573
  if (requestParameters['page'] != null) {
553
574
  queryParameters['page'] = requestParameters['page'];
554
575
  }
@@ -1008,6 +1029,71 @@ export class PortalApi extends runtime.BaseAPI {
1008
1029
  return await response.value();
1009
1030
  }
1010
1031
 
1032
+ /**
1033
+ * Creates request options for putPortalUser without sending the request
1034
+ */
1035
+ async putPortalUserRequestOpts(requestParameters: PutPortalUserRequest): Promise<runtime.RequestOpts> {
1036
+ if (requestParameters['portalId'] == null) {
1037
+ throw new runtime.RequiredError(
1038
+ 'portalId',
1039
+ 'Required parameter "portalId" was null or undefined when calling putPortalUser().'
1040
+ );
1041
+ }
1042
+
1043
+ if (requestParameters['userId'] == null) {
1044
+ throw new runtime.RequiredError(
1045
+ 'userId',
1046
+ 'Required parameter "userId" was null or undefined when calling putPortalUser().'
1047
+ );
1048
+ }
1049
+
1050
+ if (requestParameters['putPortalUser'] == null) {
1051
+ throw new runtime.RequiredError(
1052
+ 'putPortalUser',
1053
+ 'Required parameter "putPortalUser" was null or undefined when calling putPortalUser().'
1054
+ );
1055
+ }
1056
+
1057
+ const queryParameters: any = {};
1058
+
1059
+ const headerParameters: runtime.HTTPHeaders = {};
1060
+
1061
+ headerParameters['Content-Type'] = 'application/json';
1062
+
1063
+
1064
+ let urlPath = `/portals/{portalId}/users/{userId}`;
1065
+ urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
1066
+ urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
1067
+
1068
+ return {
1069
+ path: urlPath,
1070
+ method: 'PUT',
1071
+ headers: headerParameters,
1072
+ query: queryParameters,
1073
+ body: PutPortalUserToJSON(requestParameters['putPortalUser']),
1074
+ };
1075
+ }
1076
+
1077
+ /**
1078
+ * Sets or clears the member\'s customer_ref for this portal.
1079
+ * Update admin-managed details for a portal member
1080
+ */
1081
+ async putPortalUserRaw(requestParameters: PutPortalUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPortalUser>> {
1082
+ const requestOptions = await this.putPortalUserRequestOpts(requestParameters);
1083
+ const response = await this.request(requestOptions, initOverrides);
1084
+
1085
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetPortalUserFromJSON(jsonValue));
1086
+ }
1087
+
1088
+ /**
1089
+ * Sets or clears the member\'s customer_ref for this portal.
1090
+ * Update admin-managed details for a portal member
1091
+ */
1092
+ async putPortalUser(requestParameters: PutPortalUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPortalUser> {
1093
+ const response = await this.putPortalUserRaw(requestParameters, initOverrides);
1094
+ return await response.value();
1095
+ }
1096
+
1011
1097
  /**
1012
1098
  * Creates request options for putPortalUserFieldConfig without sending the request
1013
1099
  */
@@ -1242,3 +1328,11 @@ export const GetPortalUsersRolesEnum = {
1242
1328
  Learner: 'Learner'
1243
1329
  } as const;
1244
1330
  export type GetPortalUsersRolesEnum = typeof GetPortalUsersRolesEnum[keyof typeof GetPortalUsersRolesEnum];
1331
+ /**
1332
+ * @export
1333
+ */
1334
+ export const GetPortalUsersStatusEnum = {
1335
+ Active: 'active',
1336
+ Removed: 'removed'
1337
+ } as const;
1338
+ export type GetPortalUsersStatusEnum = typeof GetPortalUsersStatusEnum[keyof typeof GetPortalUsersStatusEnum];