@easyedu/js-lsm-api 1.116.0 → 1.117.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 (86) hide show
  1. package/.openapi-generator/FILES +24 -0
  2. package/README.md +21 -2
  3. package/dist/apis/IntegrationApi.d.ts +125 -0
  4. package/dist/apis/IntegrationApi.js +330 -1
  5. package/dist/esm/apis/IntegrationApi.d.ts +125 -0
  6. package/dist/esm/apis/IntegrationApi.js +329 -0
  7. package/dist/esm/models/CustomWebhookIntegration.d.ts +83 -0
  8. package/dist/esm/models/CustomWebhookIntegration.js +79 -0
  9. package/dist/esm/models/IntegrationEvent.d.ts +98 -0
  10. package/dist/esm/models/IntegrationEvent.js +92 -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 +61 -0
  16. package/dist/esm/models/IntegrationEventData.js +64 -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/IntegrationEventLearner.d.ts +50 -0
  20. package/dist/esm/models/IntegrationEventLearner.js +55 -0
  21. package/dist/esm/models/IntegrationEventPortal.d.ts +44 -0
  22. package/dist/esm/models/IntegrationEventPortal.js +51 -0
  23. package/dist/esm/models/PostCustomWebhookIntegration.d.ts +65 -0
  24. package/dist/esm/models/PostCustomWebhookIntegration.js +65 -0
  25. package/dist/esm/models/PostZapierSubscription.d.ts +53 -0
  26. package/dist/esm/models/PostZapierSubscription.js +57 -0
  27. package/dist/esm/models/PutCustomWebhookIntegration.d.ts +65 -0
  28. package/dist/esm/models/PutCustomWebhookIntegration.js +57 -0
  29. package/dist/esm/models/ZapierSubscription.d.ts +53 -0
  30. package/dist/esm/models/ZapierSubscription.js +59 -0
  31. package/dist/esm/models/index.d.ts +12 -0
  32. package/dist/esm/models/index.js +12 -0
  33. package/dist/models/CustomWebhookIntegration.d.ts +83 -0
  34. package/dist/models/CustomWebhookIntegration.js +87 -0
  35. package/dist/models/IntegrationEvent.d.ts +98 -0
  36. package/dist/models/IntegrationEvent.js +100 -0
  37. package/dist/models/IntegrationEventCertificate.d.ts +78 -0
  38. package/dist/models/IntegrationEventCertificate.js +84 -0
  39. package/dist/models/IntegrationEventCourse.d.ts +38 -0
  40. package/dist/models/IntegrationEventCourse.js +54 -0
  41. package/dist/models/IntegrationEventData.d.ts +61 -0
  42. package/dist/models/IntegrationEventData.js +71 -0
  43. package/dist/models/IntegrationEventEnrollment.d.ts +71 -0
  44. package/dist/models/IntegrationEventEnrollment.js +79 -0
  45. package/dist/models/IntegrationEventLearner.d.ts +50 -0
  46. package/dist/models/IntegrationEventLearner.js +62 -0
  47. package/dist/models/IntegrationEventPortal.d.ts +44 -0
  48. package/dist/models/IntegrationEventPortal.js +58 -0
  49. package/dist/models/PostCustomWebhookIntegration.d.ts +65 -0
  50. package/dist/models/PostCustomWebhookIntegration.js +73 -0
  51. package/dist/models/PostZapierSubscription.d.ts +53 -0
  52. package/dist/models/PostZapierSubscription.js +65 -0
  53. package/dist/models/PutCustomWebhookIntegration.d.ts +65 -0
  54. package/dist/models/PutCustomWebhookIntegration.js +65 -0
  55. package/dist/models/ZapierSubscription.d.ts +53 -0
  56. package/dist/models/ZapierSubscription.js +67 -0
  57. package/dist/models/index.d.ts +12 -0
  58. package/dist/models/index.js +12 -0
  59. package/docs/CustomWebhookIntegration.md +48 -0
  60. package/docs/IntegrationApi.md +494 -0
  61. package/docs/IntegrationEvent.md +49 -0
  62. package/docs/IntegrationEventCertificate.md +46 -0
  63. package/docs/IntegrationEventCourse.md +36 -0
  64. package/docs/IntegrationEventData.md +42 -0
  65. package/docs/IntegrationEventEnrollment.md +44 -0
  66. package/docs/IntegrationEventLearner.md +40 -0
  67. package/docs/IntegrationEventPortal.md +38 -0
  68. package/docs/PostCustomWebhookIntegration.md +42 -0
  69. package/docs/PostZapierSubscription.md +38 -0
  70. package/docs/PutCustomWebhookIntegration.md +42 -0
  71. package/docs/ZapierSubscription.md +38 -0
  72. package/package.json +1 -1
  73. package/src/apis/IntegrationApi.ts +464 -0
  74. package/src/models/CustomWebhookIntegration.ts +141 -0
  75. package/src/models/IntegrationEvent.ts +165 -0
  76. package/src/models/IntegrationEventCertificate.ts +133 -0
  77. package/src/models/IntegrationEventCourse.ts +75 -0
  78. package/src/models/IntegrationEventData.ts +138 -0
  79. package/src/models/IntegrationEventEnrollment.ts +123 -0
  80. package/src/models/IntegrationEventLearner.ts +93 -0
  81. package/src/models/IntegrationEventPortal.ts +84 -0
  82. package/src/models/PostCustomWebhookIntegration.ts +113 -0
  83. package/src/models/PostZapierSubscription.ts +95 -0
  84. package/src/models/PutCustomWebhookIntegration.ts +109 -0
  85. package/src/models/ZapierSubscription.ts +96 -0
  86. package/src/models/index.ts +12 -0
@@ -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,13 @@ 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 './IntegrationEventLearner';
176
+ export * from './IntegrationEventPortal';
169
177
  export * from './LearnerExperienceVersion';
170
178
  export * from './LibraryQuizCriteriaPreviewQuestion';
171
179
  export * from './LibraryQuizCriterion';
@@ -217,6 +225,7 @@ export * from './PostCourseVersionItemSession';
217
225
  export * from './PostCourseVersionPublish';
218
226
  export * from './PostCourseVersionSection';
219
227
  export * from './PostCourseVersionSectionDuplicate';
228
+ export * from './PostCustomWebhookIntegration';
220
229
  export * from './PostDuplicate';
221
230
  export * from './PostEmailAssetComplete';
222
231
  export * from './PostEmailAssetUpload';
@@ -263,6 +272,7 @@ export * from './PostZapierSetupResponse';
263
272
  export * from './PostZapierShopifyCourseMapping';
264
273
  export * from './PostZapierShopifyEnrollment';
265
274
  export * from './PostZapierShopifyEnrollmentResponse';
275
+ export * from './PostZapierSubscription';
266
276
  export * from './PostZapierUser';
267
277
  export * from './ProgressionGateError';
268
278
  export * from './ProgressionLockReason';
@@ -280,6 +290,7 @@ export * from './PutCourseVersionDraft';
280
290
  export * from './PutCourseVersionItem';
281
291
  export * from './PutCourseVersionOutlineEntryMove';
282
292
  export * from './PutCourseVersionSection';
293
+ export * from './PutCustomWebhookIntegration';
283
294
  export * from './PutEmailTemplateDraft';
284
295
  export * from './PutLearnerExperienceDraft';
285
296
  export * from './PutLibraryQuiz';
@@ -326,4 +337,5 @@ export * from './ZapierCourse';
326
337
  export * from './ZapierEnrollment';
327
338
  export * from './ZapierIntegration';
328
339
  export * from './ZapierShopifyCourseMapping';
340
+ export * from './ZapierSubscription';
329
341
  export * from './ZapierUser';
@@ -0,0 +1,83 @@
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
+ *
14
+ * @export
15
+ * @interface CustomWebhookIntegration
16
+ */
17
+ export interface CustomWebhookIntegration {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CustomWebhookIntegration
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof CustomWebhookIntegration
28
+ */
29
+ name: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof CustomWebhookIntegration
34
+ */
35
+ targetUrl: string;
36
+ /**
37
+ *
38
+ * @type {Set<CustomWebhookIntegrationEventTypesEnum>}
39
+ * @memberof CustomWebhookIntegration
40
+ */
41
+ eventTypes: Set<CustomWebhookIntegrationEventTypesEnum>;
42
+ /**
43
+ *
44
+ * @type {boolean}
45
+ * @memberof CustomWebhookIntegration
46
+ */
47
+ enabled: boolean;
48
+ /**
49
+ * True when an encrypted bearer token is configured. The token is never returned.
50
+ * @type {boolean}
51
+ * @memberof CustomWebhookIntegration
52
+ */
53
+ tokenConfigured: boolean;
54
+ /**
55
+ *
56
+ * @type {Date}
57
+ * @memberof CustomWebhookIntegration
58
+ */
59
+ createdAt: Date;
60
+ /**
61
+ *
62
+ * @type {Date}
63
+ * @memberof CustomWebhookIntegration
64
+ */
65
+ updatedAt: Date;
66
+ }
67
+ /**
68
+ * @export
69
+ */
70
+ export declare const CustomWebhookIntegrationEventTypesEnum: {
71
+ readonly ComEdaxuEnrollmentEnrolledV1: "com.edaxu.enrollment.enrolled.v1";
72
+ readonly ComEdaxuEnrollmentCompletedV1: "com.edaxu.enrollment.completed.v1";
73
+ readonly ComEdaxuCertificateIssuedV1: "com.edaxu.certificate.issued.v1";
74
+ };
75
+ export type CustomWebhookIntegrationEventTypesEnum = typeof CustomWebhookIntegrationEventTypesEnum[keyof typeof CustomWebhookIntegrationEventTypesEnum];
76
+ /**
77
+ * Check if a given object implements the CustomWebhookIntegration interface.
78
+ */
79
+ export declare function instanceOfCustomWebhookIntegration(value: object): value is CustomWebhookIntegration;
80
+ export declare function CustomWebhookIntegrationFromJSON(json: any): CustomWebhookIntegration;
81
+ export declare function CustomWebhookIntegrationFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomWebhookIntegration;
82
+ export declare function CustomWebhookIntegrationToJSON(json: any): CustomWebhookIntegration;
83
+ export declare function CustomWebhookIntegrationToJSONTyped(value?: CustomWebhookIntegration | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,87 @@
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.CustomWebhookIntegrationEventTypesEnum = void 0;
17
+ exports.instanceOfCustomWebhookIntegration = instanceOfCustomWebhookIntegration;
18
+ exports.CustomWebhookIntegrationFromJSON = CustomWebhookIntegrationFromJSON;
19
+ exports.CustomWebhookIntegrationFromJSONTyped = CustomWebhookIntegrationFromJSONTyped;
20
+ exports.CustomWebhookIntegrationToJSON = CustomWebhookIntegrationToJSON;
21
+ exports.CustomWebhookIntegrationToJSONTyped = CustomWebhookIntegrationToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.CustomWebhookIntegrationEventTypesEnum = {
26
+ ComEdaxuEnrollmentEnrolledV1: 'com.edaxu.enrollment.enrolled.v1',
27
+ ComEdaxuEnrollmentCompletedV1: 'com.edaxu.enrollment.completed.v1',
28
+ ComEdaxuCertificateIssuedV1: 'com.edaxu.certificate.issued.v1'
29
+ };
30
+ /**
31
+ * Check if a given object implements the CustomWebhookIntegration interface.
32
+ */
33
+ function instanceOfCustomWebhookIntegration(value) {
34
+ if (!('id' in value) || value['id'] === undefined)
35
+ return false;
36
+ if (!('name' in value) || value['name'] === undefined)
37
+ return false;
38
+ if (!('targetUrl' in value) || value['targetUrl'] === undefined)
39
+ return false;
40
+ if (!('eventTypes' in value) || value['eventTypes'] === undefined)
41
+ return false;
42
+ if (!('enabled' in value) || value['enabled'] === undefined)
43
+ return false;
44
+ if (!('tokenConfigured' in value) || value['tokenConfigured'] === undefined)
45
+ return false;
46
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
47
+ return false;
48
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
49
+ return false;
50
+ return true;
51
+ }
52
+ function CustomWebhookIntegrationFromJSON(json) {
53
+ return CustomWebhookIntegrationFromJSONTyped(json, false);
54
+ }
55
+ function CustomWebhookIntegrationFromJSONTyped(json, ignoreDiscriminator) {
56
+ if (json == null) {
57
+ return json;
58
+ }
59
+ return {
60
+ 'id': json['id'],
61
+ 'name': json['name'],
62
+ 'targetUrl': json['target_url'],
63
+ 'eventTypes': new Set(json['event_types']),
64
+ 'enabled': json['enabled'],
65
+ 'tokenConfigured': json['token_configured'],
66
+ 'createdAt': (new Date(json['created_at'])),
67
+ 'updatedAt': (new Date(json['updated_at'])),
68
+ };
69
+ }
70
+ function CustomWebhookIntegrationToJSON(json) {
71
+ return CustomWebhookIntegrationToJSONTyped(json, false);
72
+ }
73
+ function CustomWebhookIntegrationToJSONTyped(value, ignoreDiscriminator = false) {
74
+ if (value == null) {
75
+ return value;
76
+ }
77
+ return {
78
+ 'id': value['id'],
79
+ 'name': value['name'],
80
+ 'target_url': value['targetUrl'],
81
+ 'event_types': Array.from(value['eventTypes']),
82
+ 'enabled': value['enabled'],
83
+ 'token_configured': value['tokenConfigured'],
84
+ 'created_at': value['createdAt'].toISOString(),
85
+ 'updated_at': value['updatedAt'].toISOString(),
86
+ };
87
+ }
@@ -0,0 +1,98 @@
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
+ import type { IntegrationEventData } from './IntegrationEventData';
13
+ /**
14
+ * A CloudEvents 1.0 structured JSON event emitted by Edaxu.
15
+ * @export
16
+ * @interface IntegrationEvent
17
+ */
18
+ export interface IntegrationEvent {
19
+ /**
20
+ *
21
+ * @type {IntegrationEventSpecversionEnum}
22
+ * @memberof IntegrationEvent
23
+ */
24
+ specversion: IntegrationEventSpecversionEnum;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof IntegrationEvent
29
+ */
30
+ id: string;
31
+ /**
32
+ * Stable URI identifying the portal event source.
33
+ * @type {string}
34
+ * @memberof IntegrationEvent
35
+ */
36
+ source: string;
37
+ /**
38
+ *
39
+ * @type {IntegrationEventTypeEnum}
40
+ * @memberof IntegrationEvent
41
+ */
42
+ type: IntegrationEventTypeEnum;
43
+ /**
44
+ *
45
+ * @type {Date}
46
+ * @memberof IntegrationEvent
47
+ */
48
+ time: Date;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof IntegrationEvent
53
+ */
54
+ subject: string;
55
+ /**
56
+ *
57
+ * @type {IntegrationEventDatacontenttypeEnum}
58
+ * @memberof IntegrationEvent
59
+ */
60
+ datacontenttype: IntegrationEventDatacontenttypeEnum;
61
+ /**
62
+ *
63
+ * @type {IntegrationEventData}
64
+ * @memberof IntegrationEvent
65
+ */
66
+ data: IntegrationEventData;
67
+ }
68
+ /**
69
+ * @export
70
+ */
71
+ export declare const IntegrationEventSpecversionEnum: {
72
+ readonly _10: "1.0";
73
+ };
74
+ export type IntegrationEventSpecversionEnum = typeof IntegrationEventSpecversionEnum[keyof typeof IntegrationEventSpecversionEnum];
75
+ /**
76
+ * @export
77
+ */
78
+ export declare const IntegrationEventTypeEnum: {
79
+ readonly ComEdaxuEnrollmentEnrolledV1: "com.edaxu.enrollment.enrolled.v1";
80
+ readonly ComEdaxuEnrollmentCompletedV1: "com.edaxu.enrollment.completed.v1";
81
+ readonly ComEdaxuCertificateIssuedV1: "com.edaxu.certificate.issued.v1";
82
+ };
83
+ export type IntegrationEventTypeEnum = typeof IntegrationEventTypeEnum[keyof typeof IntegrationEventTypeEnum];
84
+ /**
85
+ * @export
86
+ */
87
+ export declare const IntegrationEventDatacontenttypeEnum: {
88
+ readonly ApplicationJson: "application/json";
89
+ };
90
+ export type IntegrationEventDatacontenttypeEnum = typeof IntegrationEventDatacontenttypeEnum[keyof typeof IntegrationEventDatacontenttypeEnum];
91
+ /**
92
+ * Check if a given object implements the IntegrationEvent interface.
93
+ */
94
+ export declare function instanceOfIntegrationEvent(value: object): value is IntegrationEvent;
95
+ export declare function IntegrationEventFromJSON(json: any): IntegrationEvent;
96
+ export declare function IntegrationEventFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationEvent;
97
+ export declare function IntegrationEventToJSON(json: any): IntegrationEvent;
98
+ export declare function IntegrationEventToJSONTyped(value?: IntegrationEvent | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,100 @@
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.IntegrationEventDatacontenttypeEnum = exports.IntegrationEventTypeEnum = exports.IntegrationEventSpecversionEnum = void 0;
17
+ exports.instanceOfIntegrationEvent = instanceOfIntegrationEvent;
18
+ exports.IntegrationEventFromJSON = IntegrationEventFromJSON;
19
+ exports.IntegrationEventFromJSONTyped = IntegrationEventFromJSONTyped;
20
+ exports.IntegrationEventToJSON = IntegrationEventToJSON;
21
+ exports.IntegrationEventToJSONTyped = IntegrationEventToJSONTyped;
22
+ const IntegrationEventData_1 = require("./IntegrationEventData");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.IntegrationEventSpecversionEnum = {
27
+ _10: '1.0'
28
+ };
29
+ /**
30
+ * @export
31
+ */
32
+ exports.IntegrationEventTypeEnum = {
33
+ ComEdaxuEnrollmentEnrolledV1: 'com.edaxu.enrollment.enrolled.v1',
34
+ ComEdaxuEnrollmentCompletedV1: 'com.edaxu.enrollment.completed.v1',
35
+ ComEdaxuCertificateIssuedV1: 'com.edaxu.certificate.issued.v1'
36
+ };
37
+ /**
38
+ * @export
39
+ */
40
+ exports.IntegrationEventDatacontenttypeEnum = {
41
+ ApplicationJson: 'application/json'
42
+ };
43
+ /**
44
+ * Check if a given object implements the IntegrationEvent interface.
45
+ */
46
+ function instanceOfIntegrationEvent(value) {
47
+ if (!('specversion' in value) || value['specversion'] === undefined)
48
+ return false;
49
+ if (!('id' in value) || value['id'] === undefined)
50
+ return false;
51
+ if (!('source' in value) || value['source'] === undefined)
52
+ return false;
53
+ if (!('type' in value) || value['type'] === undefined)
54
+ return false;
55
+ if (!('time' in value) || value['time'] === undefined)
56
+ return false;
57
+ if (!('subject' in value) || value['subject'] === undefined)
58
+ return false;
59
+ if (!('datacontenttype' in value) || value['datacontenttype'] === undefined)
60
+ return false;
61
+ if (!('data' in value) || value['data'] === undefined)
62
+ return false;
63
+ return true;
64
+ }
65
+ function IntegrationEventFromJSON(json) {
66
+ return IntegrationEventFromJSONTyped(json, false);
67
+ }
68
+ function IntegrationEventFromJSONTyped(json, ignoreDiscriminator) {
69
+ if (json == null) {
70
+ return json;
71
+ }
72
+ return {
73
+ 'specversion': json['specversion'],
74
+ 'id': json['id'],
75
+ 'source': json['source'],
76
+ 'type': json['type'],
77
+ 'time': (new Date(json['time'])),
78
+ 'subject': json['subject'],
79
+ 'datacontenttype': json['datacontenttype'],
80
+ 'data': (0, IntegrationEventData_1.IntegrationEventDataFromJSON)(json['data']),
81
+ };
82
+ }
83
+ function IntegrationEventToJSON(json) {
84
+ return IntegrationEventToJSONTyped(json, false);
85
+ }
86
+ function IntegrationEventToJSONTyped(value, ignoreDiscriminator = false) {
87
+ if (value == null) {
88
+ return value;
89
+ }
90
+ return {
91
+ 'specversion': value['specversion'],
92
+ 'id': value['id'],
93
+ 'source': value['source'],
94
+ 'type': value['type'],
95
+ 'time': value['time'].toISOString(),
96
+ 'subject': value['subject'],
97
+ 'datacontenttype': value['datacontenttype'],
98
+ 'data': (0, IntegrationEventData_1.IntegrationEventDataToJSON)(value['data']),
99
+ };
100
+ }
@@ -0,0 +1,78 @@
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
+ *
14
+ * @export
15
+ * @interface IntegrationEventCertificate
16
+ */
17
+ export interface IntegrationEventCertificate {
18
+ /**
19
+ * Stable external certificate ID.
20
+ * @type {string}
21
+ * @memberof IntegrationEventCertificate
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof IntegrationEventCertificate
28
+ */
29
+ status: string;
30
+ /**
31
+ *
32
+ * @type {IntegrationEventCertificateIssuanceTypeEnum}
33
+ * @memberof IntegrationEventCertificate
34
+ */
35
+ issuanceType: IntegrationEventCertificateIssuanceTypeEnum;
36
+ /**
37
+ *
38
+ * @type {Date}
39
+ * @memberof IntegrationEventCertificate
40
+ */
41
+ issuedAt: Date;
42
+ /**
43
+ *
44
+ * @type {Date}
45
+ * @memberof IntegrationEventCertificate
46
+ */
47
+ expiresAt: Date | null;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof IntegrationEventCertificate
52
+ */
53
+ verificationUrl: string;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof IntegrationEventCertificate
58
+ */
59
+ enrollmentId: string | null;
60
+ }
61
+ /**
62
+ * @export
63
+ */
64
+ export declare const IntegrationEventCertificateIssuanceTypeEnum: {
65
+ readonly Original: "original";
66
+ readonly Renewal: "renewal";
67
+ readonly Replacement: "replacement";
68
+ readonly Correction: "correction";
69
+ };
70
+ export type IntegrationEventCertificateIssuanceTypeEnum = typeof IntegrationEventCertificateIssuanceTypeEnum[keyof typeof IntegrationEventCertificateIssuanceTypeEnum];
71
+ /**
72
+ * Check if a given object implements the IntegrationEventCertificate interface.
73
+ */
74
+ export declare function instanceOfIntegrationEventCertificate(value: object): value is IntegrationEventCertificate;
75
+ export declare function IntegrationEventCertificateFromJSON(json: any): IntegrationEventCertificate;
76
+ export declare function IntegrationEventCertificateFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationEventCertificate;
77
+ export declare function IntegrationEventCertificateToJSON(json: any): IntegrationEventCertificate;
78
+ export declare function IntegrationEventCertificateToJSONTyped(value?: IntegrationEventCertificate | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,84 @@
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.IntegrationEventCertificateIssuanceTypeEnum = void 0;
17
+ exports.instanceOfIntegrationEventCertificate = instanceOfIntegrationEventCertificate;
18
+ exports.IntegrationEventCertificateFromJSON = IntegrationEventCertificateFromJSON;
19
+ exports.IntegrationEventCertificateFromJSONTyped = IntegrationEventCertificateFromJSONTyped;
20
+ exports.IntegrationEventCertificateToJSON = IntegrationEventCertificateToJSON;
21
+ exports.IntegrationEventCertificateToJSONTyped = IntegrationEventCertificateToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.IntegrationEventCertificateIssuanceTypeEnum = {
26
+ Original: 'original',
27
+ Renewal: 'renewal',
28
+ Replacement: 'replacement',
29
+ Correction: 'correction'
30
+ };
31
+ /**
32
+ * Check if a given object implements the IntegrationEventCertificate interface.
33
+ */
34
+ function instanceOfIntegrationEventCertificate(value) {
35
+ if (!('id' in value) || value['id'] === undefined)
36
+ return false;
37
+ if (!('status' in value) || value['status'] === undefined)
38
+ return false;
39
+ if (!('issuanceType' in value) || value['issuanceType'] === undefined)
40
+ return false;
41
+ if (!('issuedAt' in value) || value['issuedAt'] === undefined)
42
+ return false;
43
+ if (!('expiresAt' in value) || value['expiresAt'] === undefined)
44
+ return false;
45
+ if (!('verificationUrl' in value) || value['verificationUrl'] === undefined)
46
+ return false;
47
+ if (!('enrollmentId' in value) || value['enrollmentId'] === undefined)
48
+ return false;
49
+ return true;
50
+ }
51
+ function IntegrationEventCertificateFromJSON(json) {
52
+ return IntegrationEventCertificateFromJSONTyped(json, false);
53
+ }
54
+ function IntegrationEventCertificateFromJSONTyped(json, ignoreDiscriminator) {
55
+ if (json == null) {
56
+ return json;
57
+ }
58
+ return {
59
+ 'id': json['id'],
60
+ 'status': json['status'],
61
+ 'issuanceType': json['issuance_type'],
62
+ 'issuedAt': (new Date(json['issued_at'])),
63
+ 'expiresAt': (json['expires_at'] == null ? null : new Date(json['expires_at'])),
64
+ 'verificationUrl': json['verification_url'],
65
+ 'enrollmentId': json['enrollment_id'],
66
+ };
67
+ }
68
+ function IntegrationEventCertificateToJSON(json) {
69
+ return IntegrationEventCertificateToJSONTyped(json, false);
70
+ }
71
+ function IntegrationEventCertificateToJSONTyped(value, ignoreDiscriminator = false) {
72
+ if (value == null) {
73
+ return value;
74
+ }
75
+ return {
76
+ 'id': value['id'],
77
+ 'status': value['status'],
78
+ 'issuance_type': value['issuanceType'],
79
+ 'issued_at': value['issuedAt'].toISOString(),
80
+ 'expires_at': value['expiresAt'] == null ? value['expiresAt'] : value['expiresAt'].toISOString(),
81
+ 'verification_url': value['verificationUrl'],
82
+ 'enrollment_id': value['enrollmentId'],
83
+ };
84
+ }
@@ -0,0 +1,38 @@
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
+ *
14
+ * @export
15
+ * @interface IntegrationEventCourse
16
+ */
17
+ export interface IntegrationEventCourse {
18
+ /**
19
+ * Stable external course ID.
20
+ * @type {string}
21
+ * @memberof IntegrationEventCourse
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof IntegrationEventCourse
28
+ */
29
+ name: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the IntegrationEventCourse interface.
33
+ */
34
+ export declare function instanceOfIntegrationEventCourse(value: object): value is IntegrationEventCourse;
35
+ export declare function IntegrationEventCourseFromJSON(json: any): IntegrationEventCourse;
36
+ export declare function IntegrationEventCourseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationEventCourse;
37
+ export declare function IntegrationEventCourseToJSON(json: any): IntegrationEventCourse;
38
+ export declare function IntegrationEventCourseToJSONTyped(value?: IntegrationEventCourse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
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.instanceOfIntegrationEventCourse = instanceOfIntegrationEventCourse;
17
+ exports.IntegrationEventCourseFromJSON = IntegrationEventCourseFromJSON;
18
+ exports.IntegrationEventCourseFromJSONTyped = IntegrationEventCourseFromJSONTyped;
19
+ exports.IntegrationEventCourseToJSON = IntegrationEventCourseToJSON;
20
+ exports.IntegrationEventCourseToJSONTyped = IntegrationEventCourseToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the IntegrationEventCourse interface.
23
+ */
24
+ function instanceOfIntegrationEventCourse(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('name' in value) || value['name'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function IntegrationEventCourseFromJSON(json) {
32
+ return IntegrationEventCourseFromJSONTyped(json, false);
33
+ }
34
+ function IntegrationEventCourseFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'id': json['id'],
40
+ 'name': json['name'],
41
+ };
42
+ }
43
+ function IntegrationEventCourseToJSON(json) {
44
+ return IntegrationEventCourseToJSONTyped(json, false);
45
+ }
46
+ function IntegrationEventCourseToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'id': value['id'],
52
+ 'name': value['name'],
53
+ };
54
+ }