@easyedu/js-lsm-api 1.116.0 → 1.118.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 (98) hide show
  1. package/.openapi-generator/FILES +28 -0
  2. package/README.md +23 -2
  3. package/dist/apis/IntegrationApi.d.ts +127 -0
  4. package/dist/apis/IntegrationApi.js +332 -1
  5. package/dist/esm/apis/IntegrationApi.d.ts +127 -0
  6. package/dist/esm/apis/IntegrationApi.js +331 -0
  7. package/dist/esm/models/CustomWebhookIntegration.d.ts +85 -0
  8. package/dist/esm/models/CustomWebhookIntegration.js +81 -0
  9. package/dist/esm/models/IntegrationEvent.d.ts +100 -0
  10. package/dist/esm/models/IntegrationEvent.js +94 -0
  11. package/dist/esm/models/IntegrationEventCertificate.d.ts +78 -0
  12. package/dist/esm/models/IntegrationEventCertificate.js +76 -0
  13. package/dist/esm/models/IntegrationEventCourse.d.ts +38 -0
  14. package/dist/esm/models/IntegrationEventCourse.js +47 -0
  15. package/dist/esm/models/IntegrationEventData.d.ts +75 -0
  16. package/dist/esm/models/IntegrationEventData.js +74 -0
  17. package/dist/esm/models/IntegrationEventEnrollment.d.ts +71 -0
  18. package/dist/esm/models/IntegrationEventEnrollment.js +71 -0
  19. package/dist/esm/models/IntegrationEventInvitation.d.ts +71 -0
  20. package/dist/esm/models/IntegrationEventInvitation.js +71 -0
  21. package/dist/esm/models/IntegrationEventLearner.d.ts +50 -0
  22. package/dist/esm/models/IntegrationEventLearner.js +55 -0
  23. package/dist/esm/models/IntegrationEventPortal.d.ts +44 -0
  24. package/dist/esm/models/IntegrationEventPortal.js +51 -0
  25. package/dist/esm/models/IntegrationEventUser.d.ts +50 -0
  26. package/dist/esm/models/IntegrationEventUser.js +55 -0
  27. package/dist/esm/models/PostCustomWebhookIntegration.d.ts +67 -0
  28. package/dist/esm/models/PostCustomWebhookIntegration.js +67 -0
  29. package/dist/esm/models/PostZapierSubscription.d.ts +55 -0
  30. package/dist/esm/models/PostZapierSubscription.js +59 -0
  31. package/dist/esm/models/PutCustomWebhookIntegration.d.ts +67 -0
  32. package/dist/esm/models/PutCustomWebhookIntegration.js +59 -0
  33. package/dist/esm/models/ZapierSubscription.d.ts +55 -0
  34. package/dist/esm/models/ZapierSubscription.js +61 -0
  35. package/dist/esm/models/index.d.ts +14 -0
  36. package/dist/esm/models/index.js +14 -0
  37. package/dist/models/CustomWebhookIntegration.d.ts +85 -0
  38. package/dist/models/CustomWebhookIntegration.js +89 -0
  39. package/dist/models/IntegrationEvent.d.ts +100 -0
  40. package/dist/models/IntegrationEvent.js +102 -0
  41. package/dist/models/IntegrationEventCertificate.d.ts +78 -0
  42. package/dist/models/IntegrationEventCertificate.js +84 -0
  43. package/dist/models/IntegrationEventCourse.d.ts +38 -0
  44. package/dist/models/IntegrationEventCourse.js +54 -0
  45. package/dist/models/IntegrationEventData.d.ts +75 -0
  46. package/dist/models/IntegrationEventData.js +81 -0
  47. package/dist/models/IntegrationEventEnrollment.d.ts +71 -0
  48. package/dist/models/IntegrationEventEnrollment.js +79 -0
  49. package/dist/models/IntegrationEventInvitation.d.ts +71 -0
  50. package/dist/models/IntegrationEventInvitation.js +79 -0
  51. package/dist/models/IntegrationEventLearner.d.ts +50 -0
  52. package/dist/models/IntegrationEventLearner.js +62 -0
  53. package/dist/models/IntegrationEventPortal.d.ts +44 -0
  54. package/dist/models/IntegrationEventPortal.js +58 -0
  55. package/dist/models/IntegrationEventUser.d.ts +50 -0
  56. package/dist/models/IntegrationEventUser.js +62 -0
  57. package/dist/models/PostCustomWebhookIntegration.d.ts +67 -0
  58. package/dist/models/PostCustomWebhookIntegration.js +75 -0
  59. package/dist/models/PostZapierSubscription.d.ts +55 -0
  60. package/dist/models/PostZapierSubscription.js +67 -0
  61. package/dist/models/PutCustomWebhookIntegration.d.ts +67 -0
  62. package/dist/models/PutCustomWebhookIntegration.js +67 -0
  63. package/dist/models/ZapierSubscription.d.ts +55 -0
  64. package/dist/models/ZapierSubscription.js +69 -0
  65. package/dist/models/index.d.ts +14 -0
  66. package/dist/models/index.js +14 -0
  67. package/docs/CustomWebhookIntegration.md +48 -0
  68. package/docs/IntegrationApi.md +494 -0
  69. package/docs/IntegrationEvent.md +49 -0
  70. package/docs/IntegrationEventCertificate.md +46 -0
  71. package/docs/IntegrationEventCourse.md +36 -0
  72. package/docs/IntegrationEventData.md +46 -0
  73. package/docs/IntegrationEventEnrollment.md +44 -0
  74. package/docs/IntegrationEventInvitation.md +45 -0
  75. package/docs/IntegrationEventLearner.md +40 -0
  76. package/docs/IntegrationEventPortal.md +38 -0
  77. package/docs/IntegrationEventUser.md +41 -0
  78. package/docs/PostCustomWebhookIntegration.md +42 -0
  79. package/docs/PostZapierSubscription.md +38 -0
  80. package/docs/PutCustomWebhookIntegration.md +42 -0
  81. package/docs/ZapierSubscription.md +38 -0
  82. package/package.json +1 -1
  83. package/src/apis/IntegrationApi.ts +466 -0
  84. package/src/models/CustomWebhookIntegration.ts +143 -0
  85. package/src/models/IntegrationEvent.ts +167 -0
  86. package/src/models/IntegrationEventCertificate.ts +133 -0
  87. package/src/models/IntegrationEventCourse.ts +75 -0
  88. package/src/models/IntegrationEventData.ts +170 -0
  89. package/src/models/IntegrationEventEnrollment.ts +123 -0
  90. package/src/models/IntegrationEventInvitation.ts +130 -0
  91. package/src/models/IntegrationEventLearner.ts +93 -0
  92. package/src/models/IntegrationEventPortal.ts +84 -0
  93. package/src/models/IntegrationEventUser.ts +93 -0
  94. package/src/models/PostCustomWebhookIntegration.ts +115 -0
  95. package/src/models/PostZapierSubscription.ts +97 -0
  96. package/src/models/PutCustomWebhookIntegration.ts +111 -0
  97. package/src/models/ZapierSubscription.ts +98 -0
  98. package/src/models/index.ts +14 -0
@@ -0,0 +1,97 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface PostZapierSubscription
20
+ */
21
+ export interface PostZapierSubscription {
22
+ /**
23
+ *
24
+ * @type {PostZapierSubscriptionEventTypeEnum}
25
+ * @memberof PostZapierSubscription
26
+ */
27
+ eventType: PostZapierSubscriptionEventTypeEnum;
28
+ /**
29
+ * Zapier REST Hook URL supplied as bundle.targetUrl.
30
+ * @type {string}
31
+ * @memberof PostZapierSubscription
32
+ */
33
+ targetUrl: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof PostZapierSubscription
38
+ */
39
+ zapId?: string | null;
40
+ }
41
+
42
+
43
+ /**
44
+ * @export
45
+ */
46
+ export const PostZapierSubscriptionEventTypeEnum = {
47
+ ComEdaxuEnrollmentEnrolledV1: 'com.edaxu.enrollment.enrolled.v1',
48
+ ComEdaxuEnrollmentCompletedV1: 'com.edaxu.enrollment.completed.v1',
49
+ ComEdaxuCertificateIssuedV1: 'com.edaxu.certificate.issued.v1',
50
+ ComEdaxuPortalUserInvitedV1: 'com.edaxu.portal.user_invited.v1',
51
+ ComEdaxuPortalUserJoinedV1: 'com.edaxu.portal.user_joined.v1'
52
+ } as const;
53
+ export type PostZapierSubscriptionEventTypeEnum = typeof PostZapierSubscriptionEventTypeEnum[keyof typeof PostZapierSubscriptionEventTypeEnum];
54
+
55
+
56
+ /**
57
+ * Check if a given object implements the PostZapierSubscription interface.
58
+ */
59
+ export function instanceOfPostZapierSubscription(value: object): value is PostZapierSubscription {
60
+ if (!('eventType' in value) || value['eventType'] === undefined) return false;
61
+ if (!('targetUrl' in value) || value['targetUrl'] === undefined) return false;
62
+ return true;
63
+ }
64
+
65
+ export function PostZapierSubscriptionFromJSON(json: any): PostZapierSubscription {
66
+ return PostZapierSubscriptionFromJSONTyped(json, false);
67
+ }
68
+
69
+ export function PostZapierSubscriptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostZapierSubscription {
70
+ if (json == null) {
71
+ return json;
72
+ }
73
+ return {
74
+
75
+ 'eventType': json['event_type'],
76
+ 'targetUrl': json['target_url'],
77
+ 'zapId': json['zap_id'] == null ? undefined : json['zap_id'],
78
+ };
79
+ }
80
+
81
+ export function PostZapierSubscriptionToJSON(json: any): PostZapierSubscription {
82
+ return PostZapierSubscriptionToJSONTyped(json, false);
83
+ }
84
+
85
+ export function PostZapierSubscriptionToJSONTyped(value?: PostZapierSubscription | null, ignoreDiscriminator: boolean = false): any {
86
+ if (value == null) {
87
+ return value;
88
+ }
89
+
90
+ return {
91
+
92
+ 'event_type': value['eventType'],
93
+ 'target_url': value['targetUrl'],
94
+ 'zap_id': value['zapId'],
95
+ };
96
+ }
97
+
@@ -0,0 +1,111 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface PutCustomWebhookIntegration
20
+ */
21
+ export interface PutCustomWebhookIntegration {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof PutCustomWebhookIntegration
26
+ */
27
+ name?: string;
28
+ /**
29
+ * Public HTTPS endpoint that receives CloudEvents JSON payloads.
30
+ * @type {string}
31
+ * @memberof PutCustomWebhookIntegration
32
+ */
33
+ targetUrl?: string;
34
+ /**
35
+ * Replacement secret sent in the Authorization header as a Bearer token. Omit to keep the current token.
36
+ * @type {string}
37
+ * @memberof PutCustomWebhookIntegration
38
+ */
39
+ bearerToken?: string;
40
+ /**
41
+ *
42
+ * @type {Set<PutCustomWebhookIntegrationEventTypesEnum>}
43
+ * @memberof PutCustomWebhookIntegration
44
+ */
45
+ eventTypes?: Set<PutCustomWebhookIntegrationEventTypesEnum>;
46
+ /**
47
+ *
48
+ * @type {boolean}
49
+ * @memberof PutCustomWebhookIntegration
50
+ */
51
+ enabled?: boolean;
52
+ }
53
+
54
+
55
+ /**
56
+ * @export
57
+ */
58
+ export const PutCustomWebhookIntegrationEventTypesEnum = {
59
+ ComEdaxuEnrollmentEnrolledV1: 'com.edaxu.enrollment.enrolled.v1',
60
+ ComEdaxuEnrollmentCompletedV1: 'com.edaxu.enrollment.completed.v1',
61
+ ComEdaxuCertificateIssuedV1: 'com.edaxu.certificate.issued.v1',
62
+ ComEdaxuPortalUserInvitedV1: 'com.edaxu.portal.user_invited.v1',
63
+ ComEdaxuPortalUserJoinedV1: 'com.edaxu.portal.user_joined.v1'
64
+ } as const;
65
+ export type PutCustomWebhookIntegrationEventTypesEnum = typeof PutCustomWebhookIntegrationEventTypesEnum[keyof typeof PutCustomWebhookIntegrationEventTypesEnum];
66
+
67
+
68
+ /**
69
+ * Check if a given object implements the PutCustomWebhookIntegration interface.
70
+ */
71
+ export function instanceOfPutCustomWebhookIntegration(value: object): value is PutCustomWebhookIntegration {
72
+ return true;
73
+ }
74
+
75
+ export function PutCustomWebhookIntegrationFromJSON(json: any): PutCustomWebhookIntegration {
76
+ return PutCustomWebhookIntegrationFromJSONTyped(json, false);
77
+ }
78
+
79
+ export function PutCustomWebhookIntegrationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutCustomWebhookIntegration {
80
+ if (json == null) {
81
+ return json;
82
+ }
83
+ return {
84
+
85
+ 'name': json['name'] == null ? undefined : json['name'],
86
+ 'targetUrl': json['target_url'] == null ? undefined : json['target_url'],
87
+ 'bearerToken': json['bearer_token'] == null ? undefined : json['bearer_token'],
88
+ 'eventTypes': json['event_types'] == null ? undefined : new Set(json['event_types']),
89
+ 'enabled': json['enabled'] == null ? undefined : json['enabled'],
90
+ };
91
+ }
92
+
93
+ export function PutCustomWebhookIntegrationToJSON(json: any): PutCustomWebhookIntegration {
94
+ return PutCustomWebhookIntegrationToJSONTyped(json, false);
95
+ }
96
+
97
+ export function PutCustomWebhookIntegrationToJSONTyped(value?: PutCustomWebhookIntegration | null, ignoreDiscriminator: boolean = false): any {
98
+ if (value == null) {
99
+ return value;
100
+ }
101
+
102
+ return {
103
+
104
+ 'name': value['name'],
105
+ 'target_url': value['targetUrl'],
106
+ 'bearer_token': value['bearerToken'],
107
+ 'event_types': value['eventTypes'] == null ? undefined : Array.from(value['eventTypes'] as Set<any>),
108
+ 'enabled': value['enabled'],
109
+ };
110
+ }
111
+
@@ -0,0 +1,98 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ZapierSubscription
20
+ */
21
+ export interface ZapierSubscription {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ZapierSubscription
26
+ */
27
+ id: string;
28
+ /**
29
+ *
30
+ * @type {ZapierSubscriptionEventTypeEnum}
31
+ * @memberof ZapierSubscription
32
+ */
33
+ eventType: ZapierSubscriptionEventTypeEnum;
34
+ /**
35
+ *
36
+ * @type {Date}
37
+ * @memberof ZapierSubscription
38
+ */
39
+ createdAt: Date;
40
+ }
41
+
42
+
43
+ /**
44
+ * @export
45
+ */
46
+ export const ZapierSubscriptionEventTypeEnum = {
47
+ ComEdaxuEnrollmentEnrolledV1: 'com.edaxu.enrollment.enrolled.v1',
48
+ ComEdaxuEnrollmentCompletedV1: 'com.edaxu.enrollment.completed.v1',
49
+ ComEdaxuCertificateIssuedV1: 'com.edaxu.certificate.issued.v1',
50
+ ComEdaxuPortalUserInvitedV1: 'com.edaxu.portal.user_invited.v1',
51
+ ComEdaxuPortalUserJoinedV1: 'com.edaxu.portal.user_joined.v1'
52
+ } as const;
53
+ export type ZapierSubscriptionEventTypeEnum = typeof ZapierSubscriptionEventTypeEnum[keyof typeof ZapierSubscriptionEventTypeEnum];
54
+
55
+
56
+ /**
57
+ * Check if a given object implements the ZapierSubscription interface.
58
+ */
59
+ export function instanceOfZapierSubscription(value: object): value is ZapierSubscription {
60
+ if (!('id' in value) || value['id'] === undefined) return false;
61
+ if (!('eventType' in value) || value['eventType'] === undefined) return false;
62
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
63
+ return true;
64
+ }
65
+
66
+ export function ZapierSubscriptionFromJSON(json: any): ZapierSubscription {
67
+ return ZapierSubscriptionFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function ZapierSubscriptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ZapierSubscription {
71
+ if (json == null) {
72
+ return json;
73
+ }
74
+ return {
75
+
76
+ 'id': json['id'],
77
+ 'eventType': json['event_type'],
78
+ 'createdAt': (new Date(json['created_at'])),
79
+ };
80
+ }
81
+
82
+ export function ZapierSubscriptionToJSON(json: any): ZapierSubscription {
83
+ return ZapierSubscriptionToJSONTyped(json, false);
84
+ }
85
+
86
+ export function ZapierSubscriptionToJSONTyped(value?: ZapierSubscription | null, ignoreDiscriminator: boolean = false): any {
87
+ if (value == null) {
88
+ return value;
89
+ }
90
+
91
+ return {
92
+
93
+ 'id': value['id'],
94
+ 'event_type': value['eventType'],
95
+ 'created_at': value['createdAt'].toISOString(),
96
+ };
97
+ }
98
+
@@ -42,6 +42,7 @@ export * from './CourseCatalog';
42
42
  export * from './CourseProgressionMode';
43
43
  export * from './CourseShare';
44
44
  export * from './CourseShareAcceptError';
45
+ export * from './CustomWebhookIntegration';
45
46
  export * from './EffectiveCertificateConfig';
46
47
  export * from './EmailTemplateDefinition';
47
48
  export * from './EmailTemplateScope';
@@ -166,6 +167,15 @@ export * from './GetZapierMe';
166
167
  export * from './GetZapierSetup';
167
168
  export * from './GetZapierShopifyCourseMappings';
168
169
  export * from './GetZapierUsers';
170
+ export * from './IntegrationEvent';
171
+ export * from './IntegrationEventCertificate';
172
+ export * from './IntegrationEventCourse';
173
+ export * from './IntegrationEventData';
174
+ export * from './IntegrationEventEnrollment';
175
+ export * from './IntegrationEventInvitation';
176
+ export * from './IntegrationEventLearner';
177
+ export * from './IntegrationEventPortal';
178
+ export * from './IntegrationEventUser';
169
179
  export * from './LearnerExperienceVersion';
170
180
  export * from './LibraryQuizCriteriaPreviewQuestion';
171
181
  export * from './LibraryQuizCriterion';
@@ -217,6 +227,7 @@ export * from './PostCourseVersionItemSession';
217
227
  export * from './PostCourseVersionPublish';
218
228
  export * from './PostCourseVersionSection';
219
229
  export * from './PostCourseVersionSectionDuplicate';
230
+ export * from './PostCustomWebhookIntegration';
220
231
  export * from './PostDuplicate';
221
232
  export * from './PostEmailAssetComplete';
222
233
  export * from './PostEmailAssetUpload';
@@ -263,6 +274,7 @@ export * from './PostZapierSetupResponse';
263
274
  export * from './PostZapierShopifyCourseMapping';
264
275
  export * from './PostZapierShopifyEnrollment';
265
276
  export * from './PostZapierShopifyEnrollmentResponse';
277
+ export * from './PostZapierSubscription';
266
278
  export * from './PostZapierUser';
267
279
  export * from './ProgressionGateError';
268
280
  export * from './ProgressionLockReason';
@@ -280,6 +292,7 @@ export * from './PutCourseVersionDraft';
280
292
  export * from './PutCourseVersionItem';
281
293
  export * from './PutCourseVersionOutlineEntryMove';
282
294
  export * from './PutCourseVersionSection';
295
+ export * from './PutCustomWebhookIntegration';
283
296
  export * from './PutEmailTemplateDraft';
284
297
  export * from './PutLearnerExperienceDraft';
285
298
  export * from './PutLibraryQuiz';
@@ -326,4 +339,5 @@ export * from './ZapierCourse';
326
339
  export * from './ZapierEnrollment';
327
340
  export * from './ZapierIntegration';
328
341
  export * from './ZapierShopifyCourseMapping';
342
+ export * from './ZapierSubscription';
329
343
  export * from './ZapierUser';