@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
@@ -63,6 +63,12 @@ export interface PutCourse {
63
63
  * @memberof PutCourse
64
64
  */
65
65
  tags?: Set<string>;
66
+ /**
67
+ * Your own identifier, unique within the portal. Omit to leave unchanged, send null to clear.
68
+ * @type {string}
69
+ * @memberof PutCourse
70
+ */
71
+ customerRef?: string | null;
66
72
  }
67
73
  /**
68
74
  * @export
@@ -49,6 +49,7 @@ function PutCourseFromJSONTyped(json, ignoreDiscriminator) {
49
49
  'accessDurationDays': json['access_duration_days'] == null ? undefined : json['access_duration_days'],
50
50
  'accessFixedEndAt': json['access_fixed_end_at'] == null ? undefined : json['access_fixed_end_at'],
51
51
  'tags': json['tags'] == null ? undefined : new Set(json['tags']),
52
+ 'customerRef': json['customer_ref'] == null ? undefined : json['customer_ref'],
52
53
  };
53
54
  }
54
55
  function PutCourseToJSON(json) {
@@ -66,5 +67,6 @@ function PutCourseToJSONTyped(value, ignoreDiscriminator = false) {
66
67
  'access_duration_days': value['accessDurationDays'],
67
68
  'access_fixed_end_at': value['accessFixedEndAt'],
68
69
  'tags': value['tags'] == null ? undefined : Array.from(value['tags']),
70
+ 'customer_ref': value['customerRef'],
69
71
  };
70
72
  }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Admin-managed details for a portal member.
14
+ * @export
15
+ * @interface PutPortalUser
16
+ */
17
+ export interface PutPortalUser {
18
+ /**
19
+ * Your own identifier for this user in this portal, unique within the portal. Omit to leave unchanged, send null to clear.
20
+ * @type {string}
21
+ * @memberof PutPortalUser
22
+ */
23
+ customerRef?: string | null;
24
+ }
25
+ /**
26
+ * Check if a given object implements the PutPortalUser interface.
27
+ */
28
+ export declare function instanceOfPutPortalUser(value: object): value is PutPortalUser;
29
+ export declare function PutPortalUserFromJSON(json: any): PutPortalUser;
30
+ export declare function PutPortalUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutPortalUser;
31
+ export declare function PutPortalUserToJSON(json: any): PutPortalUser;
32
+ export declare function PutPortalUserToJSONTyped(value?: PutPortalUser | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * LMS API
6
+ * LMS API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfPutPortalUser = instanceOfPutPortalUser;
17
+ exports.PutPortalUserFromJSON = PutPortalUserFromJSON;
18
+ exports.PutPortalUserFromJSONTyped = PutPortalUserFromJSONTyped;
19
+ exports.PutPortalUserToJSON = PutPortalUserToJSON;
20
+ exports.PutPortalUserToJSONTyped = PutPortalUserToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the PutPortalUser interface.
23
+ */
24
+ function instanceOfPutPortalUser(value) {
25
+ return true;
26
+ }
27
+ function PutPortalUserFromJSON(json) {
28
+ return PutPortalUserFromJSONTyped(json, false);
29
+ }
30
+ function PutPortalUserFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'customerRef': json['customer_ref'] == null ? undefined : json['customer_ref'],
36
+ };
37
+ }
38
+ function PutPortalUserToJSON(json) {
39
+ return PutPortalUserToJSONTyped(json, false);
40
+ }
41
+ function PutPortalUserToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'customer_ref': value['customerRef'],
47
+ };
48
+ }
@@ -33,6 +33,12 @@ export interface PutResource {
33
33
  * @memberof PutResource
34
34
  */
35
35
  tags?: Set<string>;
36
+ /**
37
+ * Your own identifier, unique within the portal. Omit to leave unchanged, send null to clear.
38
+ * @type {string}
39
+ * @memberof PutResource
40
+ */
41
+ customerRef?: string | null;
36
42
  }
37
43
  /**
38
44
  * Check if a given object implements the PutResource interface.
@@ -35,6 +35,7 @@ function PutResourceFromJSONTyped(json, ignoreDiscriminator) {
35
35
  'name': json['name'] == null ? undefined : json['name'],
36
36
  'description': json['description'] == null ? undefined : json['description'],
37
37
  'tags': json['tags'] == null ? undefined : new Set(json['tags']),
38
+ 'customerRef': json['customer_ref'] == null ? undefined : json['customer_ref'],
38
39
  };
39
40
  }
40
41
  function PutResourceToJSON(json) {
@@ -48,5 +49,6 @@ function PutResourceToJSONTyped(value, ignoreDiscriminator = false) {
48
49
  'name': value['name'],
49
50
  'description': value['description'],
50
51
  'tags': value['tags'] == null ? undefined : Array.from(value['tags']),
52
+ 'customer_ref': value['customerRef'],
51
53
  };
52
54
  }
@@ -51,6 +51,12 @@ export interface RichTextAsset {
51
51
  * @memberof RichTextAsset
52
52
  */
53
53
  renderUrl: string;
54
+ /**
55
+ * Your own identifier for this asset, unique within the portal.
56
+ * @type {string}
57
+ * @memberof RichTextAsset
58
+ */
59
+ customerRef?: string | null;
54
60
  }
55
61
  /**
56
62
  * Check if a given object implements the RichTextAsset interface.
@@ -46,6 +46,7 @@ function RichTextAssetFromJSONTyped(json, ignoreDiscriminator) {
46
46
  'width': json['width'] == null ? undefined : json['width'],
47
47
  'height': json['height'] == null ? undefined : json['height'],
48
48
  'renderUrl': json['render_url'],
49
+ 'customerRef': json['customer_ref'] == null ? undefined : json['customer_ref'],
49
50
  };
50
51
  }
51
52
  function RichTextAssetToJSON(json) {
@@ -62,5 +63,6 @@ function RichTextAssetToJSONTyped(value, ignoreDiscriminator = false) {
62
63
  'width': value['width'],
63
64
  'height': value['height'],
64
65
  'render_url': value['renderUrl'],
66
+ 'customer_ref': value['customerRef'],
65
67
  };
66
68
  }
@@ -39,6 +39,12 @@ export interface ZapierCourse {
39
39
  * @memberof ZapierCourse
40
40
  */
41
41
  published: boolean;
42
+ /**
43
+ * Your own identifier for this course, unique within the portal. Integrations such as Zapier can use it in place of id.
44
+ * @type {string}
45
+ * @memberof ZapierCourse
46
+ */
47
+ customerRef: string | null;
42
48
  }
43
49
  /**
44
50
  * Check if a given object implements the ZapierCourse interface.
@@ -30,6 +30,8 @@ function instanceOfZapierCourse(value) {
30
30
  return false;
31
31
  if (!('published' in value) || value['published'] === undefined)
32
32
  return false;
33
+ if (!('customerRef' in value) || value['customerRef'] === undefined)
34
+ return false;
33
35
  return true;
34
36
  }
35
37
  function ZapierCourseFromJSON(json) {
@@ -44,6 +46,7 @@ function ZapierCourseFromJSONTyped(json, ignoreDiscriminator) {
44
46
  'name': json['name'],
45
47
  'description': json['description'],
46
48
  'published': json['published'],
49
+ 'customerRef': json['customer_ref'],
47
50
  };
48
51
  }
49
52
  function ZapierCourseToJSON(json) {
@@ -58,5 +61,6 @@ function ZapierCourseToJSONTyped(value, ignoreDiscriminator = false) {
58
61
  'name': value['name'],
59
62
  'description': value['description'],
60
63
  'published': value['published'],
64
+ 'customer_ref': value['customerRef'],
61
65
  };
62
66
  }
@@ -63,6 +63,18 @@ export interface ZapierEnrollment {
63
63
  * @memberof ZapierEnrollment
64
64
  */
65
65
  idempotentReplay: boolean;
66
+ /**
67
+ * Your identifier for the course, if set.
68
+ * @type {string}
69
+ * @memberof ZapierEnrollment
70
+ */
71
+ courseCustomerRef: string | null;
72
+ /**
73
+ * Your identifier for the learner, if set.
74
+ * @type {string}
75
+ * @memberof ZapierEnrollment
76
+ */
77
+ userCustomerRef: string | null;
66
78
  }
67
79
  /**
68
80
  * Check if a given object implements the ZapierEnrollment interface.
@@ -36,6 +36,10 @@ function instanceOfZapierEnrollment(value) {
36
36
  return false;
37
37
  if (!('idempotentReplay' in value) || value['idempotentReplay'] === undefined)
38
38
  return false;
39
+ if (!('courseCustomerRef' in value) || value['courseCustomerRef'] === undefined)
40
+ return false;
41
+ if (!('userCustomerRef' in value) || value['userCustomerRef'] === undefined)
42
+ return false;
39
43
  return true;
40
44
  }
41
45
  function ZapierEnrollmentFromJSON(json) {
@@ -54,6 +58,8 @@ function ZapierEnrollmentFromJSONTyped(json, ignoreDiscriminator) {
54
58
  'enrollmentDateEnd': json['enrollment_date_end'] == null ? undefined : json['enrollment_date_end'],
55
59
  'created': json['created'],
56
60
  'idempotentReplay': json['idempotent_replay'],
61
+ 'courseCustomerRef': json['course_customer_ref'],
62
+ 'userCustomerRef': json['user_customer_ref'],
57
63
  };
58
64
  }
59
65
  function ZapierEnrollmentToJSON(json) {
@@ -72,5 +78,7 @@ function ZapierEnrollmentToJSONTyped(value, ignoreDiscriminator = false) {
72
78
  'enrollment_date_end': value['enrollmentDateEnd'],
73
79
  'created': value['created'],
74
80
  'idempotent_replay': value['idempotentReplay'],
81
+ 'course_customer_ref': value['courseCustomerRef'],
82
+ 'user_customer_ref': value['userCustomerRef'],
75
83
  };
76
84
  }
@@ -45,6 +45,12 @@ export interface ZapierUser {
45
45
  * @memberof ZapierUser
46
46
  */
47
47
  created: boolean;
48
+ /**
49
+ * Your own identifier for this user in this portal, unique within the portal. Integrations such as Zapier can use it in place of the user id.
50
+ * @type {string}
51
+ * @memberof ZapierUser
52
+ */
53
+ customerRef: string | null;
48
54
  }
49
55
  /**
50
56
  * Check if a given object implements the ZapierUser interface.
@@ -32,6 +32,8 @@ function instanceOfZapierUser(value) {
32
32
  return false;
33
33
  if (!('created' in value) || value['created'] === undefined)
34
34
  return false;
35
+ if (!('customerRef' in value) || value['customerRef'] === undefined)
36
+ return false;
35
37
  return true;
36
38
  }
37
39
  function ZapierUserFromJSON(json) {
@@ -47,6 +49,7 @@ function ZapierUserFromJSONTyped(json, ignoreDiscriminator) {
47
49
  'firstName': json['first_name'],
48
50
  'lastName': json['last_name'],
49
51
  'created': json['created'],
52
+ 'customerRef': json['customer_ref'],
50
53
  };
51
54
  }
52
55
  function ZapierUserToJSON(json) {
@@ -62,5 +65,6 @@ function ZapierUserToJSONTyped(value, ignoreDiscriminator = false) {
62
65
  'first_name': value['firstName'],
63
66
  'last_name': value['lastName'],
64
67
  'created': value['created'],
68
+ 'customer_ref': value['customerRef'],
65
69
  };
66
70
  }
@@ -277,6 +277,8 @@ export * from './PostQuestionImportCommit';
277
277
  export * from './PostQuestionImportCommitItem';
278
278
  export * from './PostQuestionImportCommitResponse';
279
279
  export * from './PostQuestionImportParseResponse';
280
+ export * from './PostQuestionTags';
281
+ export * from './PostQuestionTagsResponse';
280
282
  export * from './PostReportExport';
281
283
  export * from './PostReportQuery';
282
284
  export * from './PostResetPassword';
@@ -336,6 +338,7 @@ export * from './PutLibraryQuizVersion';
336
338
  export * from './PutPortalBranding';
337
339
  export * from './PutPortalCertificateTemplate';
338
340
  export * from './PutPortalSublicense';
341
+ export * from './PutPortalUser';
339
342
  export * from './PutPortalUserFieldValues';
340
343
  export * from './PutQuestion';
341
344
  export * from './PutQuestionAnswerChoicesInner';
@@ -295,6 +295,8 @@ __exportStar(require("./PostQuestionImportCommit"), exports);
295
295
  __exportStar(require("./PostQuestionImportCommitItem"), exports);
296
296
  __exportStar(require("./PostQuestionImportCommitResponse"), exports);
297
297
  __exportStar(require("./PostQuestionImportParseResponse"), exports);
298
+ __exportStar(require("./PostQuestionTags"), exports);
299
+ __exportStar(require("./PostQuestionTagsResponse"), exports);
298
300
  __exportStar(require("./PostReportExport"), exports);
299
301
  __exportStar(require("./PostReportQuery"), exports);
300
302
  __exportStar(require("./PostResetPassword"), exports);
@@ -354,6 +356,7 @@ __exportStar(require("./PutLibraryQuizVersion"), exports);
354
356
  __exportStar(require("./PutPortalBranding"), exports);
355
357
  __exportStar(require("./PutPortalCertificateTemplate"), exports);
356
358
  __exportStar(require("./PutPortalSublicense"), exports);
359
+ __exportStar(require("./PutPortalUser"), exports);
357
360
  __exportStar(require("./PutPortalUserFieldValues"), exports);
358
361
  __exportStar(require("./PutQuestion"), exports);
359
362
  __exportStar(require("./PutQuestionAnswerChoicesInner"), exports);
package/docs/GetCourse.md CHANGED
@@ -16,6 +16,7 @@ Name | Type
16
16
  `accessDurationDays` | number
17
17
  `accessFixedEndAt` | number
18
18
  `tags` | [Array&lt;ContentLibraryTag&gt;](ContentLibraryTag.md)
19
+ `customerRef` | string
19
20
 
20
21
  ## Example
21
22
 
@@ -34,6 +35,7 @@ const example = {
34
35
  "accessDurationDays": null,
35
36
  "accessFixedEndAt": null,
36
37
  "tags": null,
38
+ "customerRef": null,
37
39
  } satisfies GetCourse
38
40
 
39
41
  console.log(example)
@@ -14,6 +14,7 @@ Name | Type
14
14
  `courseVersionNumber` | number
15
15
  `firstName` | string
16
16
  `lastName` | string
17
+ `email` | string
17
18
  `enrollmentDateStart` | number
18
19
  `enrollmentDateEnd` | number
19
20
  `status` | string
@@ -36,6 +37,7 @@ const example = {
36
37
  "courseVersionNumber": null,
37
38
  "firstName": null,
38
39
  "lastName": null,
40
+ "email": null,
39
41
  "enrollmentDateStart": null,
40
42
  "enrollmentDateEnd": null,
41
43
  "status": null,
@@ -14,6 +14,7 @@ Name | Type
14
14
  `role` | string
15
15
  `isActive` | boolean
16
16
  `invitation` | [GetPortalInvitationSummary](GetPortalInvitationSummary.md)
17
+ `customerRef` | string
17
18
 
18
19
  ## Example
19
20
 
@@ -29,6 +30,7 @@ const example = {
29
30
  "role": null,
30
31
  "isActive": null,
31
32
  "invitation": null,
33
+ "customerRef": null,
32
34
  } satisfies GetPortalUser
33
35
 
34
36
  console.log(example)
@@ -22,6 +22,7 @@ Name | Type
22
22
  `createdAt` | number
23
23
  `updatedAt` | number
24
24
  `archivedAt` | number
25
+ `customerRef` | string
25
26
 
26
27
  ## Example
27
28
 
@@ -46,6 +47,7 @@ const example = {
46
47
  "createdAt": null,
47
48
  "updatedAt": null,
48
49
  "archivedAt": null,
50
+ "customerRef": null,
49
51
  } satisfies GetResource
50
52
 
51
53
  console.log(example)
@@ -7,6 +7,7 @@
7
7
  Name | Type
8
8
  ------------ | -------------
9
9
  `courseId` | string
10
+ `courseName` | string
10
11
  `courseVersionId` | string
11
12
  `courseVersionNumber` | number
12
13
  `courseStatus` | [ContentLibraryVersionStatus](ContentLibraryVersionStatus.md)
@@ -21,6 +22,7 @@ import type { GetResourceUsageCoursesInner } from '@easyedu/js-lsm-api'
21
22
  // TODO: Update the object below with actual values
22
23
  const example = {
23
24
  "courseId": null,
25
+ "courseName": null,
24
26
  "courseVersionId": null,
25
27
  "courseVersionNumber": null,
26
28
  "courseStatus": null,
@@ -13,7 +13,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
13
13
  | [**getZapierMe**](IntegrationApi.md#getzapierme) | **GET** /integrations/zapier/me | Test a Zapier API key and return its portal and enabled permissions |
14
14
  | [**getZapierSetup**](IntegrationApi.md#getzapiersetup) | **GET** /integrations/zapier/setup | List Zapier connections and permissions available to the selected portal |
15
15
  | [**getZapierShopifyCourseMappings**](IntegrationApi.md#getzapiershopifycoursemappings) | **GET** /integrations/zapier/shopify/course-mappings | List Shopify variant-to-course mappings |
16
- | [**getZapierUsers**](IntegrationApi.md#getzapierusers) | **GET** /integrations/zapier/users | Find a learner by exact email address |
16
+ | [**getZapierUsers**](IntegrationApi.md#getzapierusers) | **GET** /integrations/zapier/users | Find a learner by exact email address or customer_ref |
17
17
  | [**postCustomWebhookIntegration**](IntegrationApi.md#postcustomwebhookintegration) | **POST** /integrations/webhooks | Create a custom webhook destination for lifecycle events |
18
18
  | [**postZapierEnrollment**](IntegrationApi.md#postzapierenrollment) | **POST** /integrations/zapier/enrollments | Enroll an existing learner in a course |
19
19
  | [**postZapierSetup**](IntegrationApi.md#postzapiersetup) | **POST** /integrations/zapier/setup | Create a Zapier connection and API key for the selected portal |
@@ -292,7 +292,7 @@ No authorization required
292
292
 
293
293
  ## getZapierCourses
294
294
 
295
- > GetZapierCourses getZapierCourses(xAPIKEY, xPORTALSUBDOMAIN, page, pageSize, search)
295
+ > GetZapierCourses getZapierCourses(xAPIKEY, xPORTALSUBDOMAIN, page, pageSize, search, customerRef)
296
296
 
297
297
  List published courses available to a Zapier connection
298
298
 
@@ -320,6 +320,8 @@ async function example() {
320
320
  pageSize: 56,
321
321
  // string (optional)
322
322
  search: search_example,
323
+ // string | Return only the course with this exact customer_ref. (optional)
324
+ customerRef: customerRef_example,
323
325
  } satisfies GetZapierCoursesRequest;
324
326
 
325
327
  try {
@@ -344,6 +346,7 @@ example().catch(console.error);
344
346
  | **page** | `number` | | [Optional] [Defaults to `1`] |
345
347
  | **pageSize** | `number` | | [Optional] [Defaults to `100`] |
346
348
  | **search** | `string` | | [Optional] [Defaults to `undefined`] |
349
+ | **customerRef** | `string` | Return only the course with this exact customer_ref. | [Optional] [Defaults to `undefined`] |
347
350
 
348
351
  ### Return type
349
352
 
@@ -649,9 +652,11 @@ No authorization required
649
652
 
650
653
  ## getZapierUsers
651
654
 
652
- > GetZapierUsers getZapierUsers(xAPIKEY, xPORTALSUBDOMAIN, email)
655
+ > GetZapierUsers getZapierUsers(xAPIKEY, xPORTALSUBDOMAIN, email, customerRef)
653
656
 
654
- Find a learner by exact email address
657
+ Find a learner by exact email address or customer_ref
658
+
659
+ Send email, customer_ref, or both. When both are sent the learner must match both.
655
660
 
656
661
  ### Example
657
662
 
@@ -671,8 +676,10 @@ async function example() {
671
676
  xAPIKEY: xAPIKEY_example,
672
677
  // string
673
678
  xPORTALSUBDOMAIN: xPORTALSUBDOMAIN_example,
674
- // string
679
+ // string (optional)
675
680
  email: email_example,
681
+ // string (optional)
682
+ customerRef: customerRef_example,
676
683
  } satisfies GetZapierUsersRequest;
677
684
 
678
685
  try {
@@ -694,7 +701,8 @@ example().catch(console.error);
694
701
  |------------- | ------------- | ------------- | -------------|
695
702
  | **xAPIKEY** | `string` | | [Defaults to `undefined`] |
696
703
  | **xPORTALSUBDOMAIN** | `string` | | [Defaults to `undefined`] |
697
- | **email** | `string` | | [Defaults to `undefined`] |
704
+ | **email** | `string` | | [Optional] [Defaults to `undefined`] |
705
+ | **customerRef** | `string` | | [Optional] [Defaults to `undefined`] |
698
706
 
699
707
  ### Return type
700
708
 
@@ -714,6 +722,7 @@ No authorization required
714
722
  | Status code | Description | Response headers |
715
723
  |-------------|-------------|------------------|
716
724
  | **200** | Zero or one exact learner match | - |
725
+ | **400** | Neither email nor customer_ref was sent | - |
717
726
  | **401** | Missing, invalid, or revoked API key | - |
718
727
  | **403** | The API key does not have user:read_any | - |
719
728
 
@@ -8,6 +8,7 @@ Name | Type
8
8
  ------------ | -------------
9
9
  `id` | string
10
10
  `name` | string
11
+ `customerRef` | string
11
12
 
12
13
  ## Example
13
14
 
@@ -18,6 +19,7 @@ import type { IntegrationEventCourse } from '@easyedu/js-lsm-api'
18
19
  const example = {
19
20
  "id": null,
20
21
  "name": null,
22
+ "customerRef": null,
21
23
  } satisfies IntegrationEventCourse
22
24
 
23
25
  console.log(example)
@@ -10,6 +10,7 @@ Name | Type
10
10
  `email` | string
11
11
  `firstName` | string
12
12
  `lastName` | string
13
+ `customerRef` | string
13
14
 
14
15
  ## Example
15
16
 
@@ -22,6 +23,7 @@ const example = {
22
23
  "email": null,
23
24
  "firstName": null,
24
25
  "lastName": null,
26
+ "customerRef": null,
25
27
  } satisfies IntegrationEventLearner
26
28
 
27
29
  console.log(example)
@@ -11,6 +11,7 @@ Name | Type
11
11
  `email` | string
12
12
  `firstName` | string
13
13
  `lastName` | string
14
+ `customerRef` | string
14
15
 
15
16
  ## Example
16
17
 
@@ -23,6 +24,7 @@ const example = {
23
24
  "email": null,
24
25
  "firstName": null,
25
26
  "lastName": null,
27
+ "customerRef": null,
26
28
  } satisfies IntegrationEventUser
27
29
 
28
30
  console.log(example)
package/docs/PortalApi.md CHANGED
@@ -21,6 +21,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
21
21
  | [**postPortalFaviconUpload**](PortalApi.md#postportalfaviconupload) | **POST** /portals/{portalId}/branding/favicon | Upload a favicon image for portal branding |
22
22
  | [**postPortalLogoUpload**](PortalApi.md#postportallogoupload) | **POST** /portals/{portalId}/branding/logo | Upload a logo image for portal branding |
23
23
  | [**putPortalBranding**](PortalApi.md#putportalbranding) | **PUT** /portals/{portalId} | Update portal branding and complete application theme |
24
+ | [**putPortalUser**](PortalApi.md#putportaluser) | **PUT** /portals/{portalId}/users/{userId} | Update admin-managed details for a portal member |
24
25
  | [**putPortalUserFieldConfig**](PortalApi.md#putportaluserfieldconfig) | **PUT** /portals/{portalId}/user-field-config | Replace portal user field configuration |
25
26
  | [**putPortalUserFieldValues**](PortalApi.md#putportaluserfieldvalues) | **PUT** /portals/{portalId}/users/{userId}/user-field-values | Bulk upsert a user\&#39;s portal field values |
26
27
  | [**removePortalUser**](PortalApi.md#removeportaluser) | **DELETE** /portals/{portalId}/users/{userId} | Remove a user from a portal |
@@ -554,7 +555,7 @@ No authorization required
554
555
 
555
556
  ## getPortalUsers
556
557
 
557
- > GetPortalUserList getPortalUsers(portalId, type, roles, search, page, pageSize)
558
+ > GetPortalUserList getPortalUsers(portalId, type, roles, search, status, page, pageSize)
558
559
 
559
560
  Get all users for a portal with optional role filtering
560
561
 
@@ -580,6 +581,8 @@ async function example() {
580
581
  roles: ...,
581
582
  // string | Search users by first name, last name, or email (optional)
582
583
  search: Josh,
584
+ // 'active' | 'removed' | Which members to list. \"removed\" lists people removed from the portal, whose history is kept and who can be re-invited. (optional)
585
+ status: status_example,
583
586
  // number (optional)
584
587
  page: 56,
585
588
  // number (optional)
@@ -607,6 +610,7 @@ example().catch(console.error);
607
610
  | **type** | `student`, `instructor` | Filter users by type (student maps to Learner, instructor maps to Instructor) | [Optional] [Defaults to `undefined`] [Enum: student, instructor] |
608
611
  | **roles** | `Admin`, `Instructor`, `Learner` | Filter users by role (can specify multiple) | [Optional] [Enum: Admin, Instructor, Learner] |
609
612
  | **search** | `string` | Search users by first name, last name, or email | [Optional] [Defaults to `undefined`] |
613
+ | **status** | `active`, `removed` | Which members to list. \&quot;removed\&quot; lists people removed from the portal, whose history is kept and who can be re-invited. | [Optional] [Defaults to `&#39;active&#39;`] [Enum: active, removed] |
610
614
  | **page** | `number` | | [Optional] [Defaults to `1`] |
611
615
  | **pageSize** | `number` | | [Optional] [Defaults to `20`] |
612
616
 
@@ -1162,6 +1166,83 @@ No authorization required
1162
1166
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1163
1167
 
1164
1168
 
1169
+ ## putPortalUser
1170
+
1171
+ > GetPortalUser putPortalUser(portalId, userId, putPortalUser)
1172
+
1173
+ Update admin-managed details for a portal member
1174
+
1175
+ Sets or clears the member\&#39;s customer_ref for this portal.
1176
+
1177
+ ### Example
1178
+
1179
+ ```ts
1180
+ import {
1181
+ Configuration,
1182
+ PortalApi,
1183
+ } from '@easyedu/js-lsm-api';
1184
+ import type { PutPortalUserRequest } from '@easyedu/js-lsm-api';
1185
+
1186
+ async function example() {
1187
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
1188
+ const api = new PortalApi();
1189
+
1190
+ const body = {
1191
+ // string
1192
+ portalId: portalId_example,
1193
+ // string
1194
+ userId: userId_example,
1195
+ // PutPortalUser
1196
+ putPortalUser: ...,
1197
+ } satisfies PutPortalUserRequest;
1198
+
1199
+ try {
1200
+ const data = await api.putPortalUser(body);
1201
+ console.log(data);
1202
+ } catch (error) {
1203
+ console.error(error);
1204
+ }
1205
+ }
1206
+
1207
+ // Run the test
1208
+ example().catch(console.error);
1209
+ ```
1210
+
1211
+ ### Parameters
1212
+
1213
+
1214
+ | Name | Type | Description | Notes |
1215
+ |------------- | ------------- | ------------- | -------------|
1216
+ | **portalId** | `string` | | [Defaults to `undefined`] |
1217
+ | **userId** | `string` | | [Defaults to `undefined`] |
1218
+ | **putPortalUser** | [PutPortalUser](PutPortalUser.md) | | |
1219
+
1220
+ ### Return type
1221
+
1222
+ [**GetPortalUser**](GetPortalUser.md)
1223
+
1224
+ ### Authorization
1225
+
1226
+ No authorization required
1227
+
1228
+ ### HTTP request headers
1229
+
1230
+ - **Content-Type**: `application/json`
1231
+ - **Accept**: `application/json`
1232
+
1233
+
1234
+ ### HTTP response details
1235
+ | Status code | Description | Response headers |
1236
+ |-------------|-------------|------------------|
1237
+ | **200** | Updated portal member | - |
1238
+ | **400** | Invalid customer_ref | - |
1239
+ | **403** | Forbidden | - |
1240
+ | **404** | User is not a member of the portal | - |
1241
+ | **409** | Another member of this portal already has this customer_ref | - |
1242
+
1243
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1244
+
1245
+
1165
1246
  ## putPortalUserFieldConfig
1166
1247
 
1167
1248
  > PortalUserFieldConfig putPortalUserFieldConfig(portalId, portalUserFieldConfig)