@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,94 @@
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
+ import { IntegrationEventDataFromJSON, IntegrationEventDataToJSON, } from './IntegrationEventData';
15
+ /**
16
+ * @export
17
+ */
18
+ export const IntegrationEventSpecversionEnum = {
19
+ _10: '1.0'
20
+ };
21
+ /**
22
+ * @export
23
+ */
24
+ export const IntegrationEventTypeEnum = {
25
+ ComEdaxuEnrollmentEnrolledV1: 'com.edaxu.enrollment.enrolled.v1',
26
+ ComEdaxuEnrollmentCompletedV1: 'com.edaxu.enrollment.completed.v1',
27
+ ComEdaxuCertificateIssuedV1: 'com.edaxu.certificate.issued.v1',
28
+ ComEdaxuPortalUserInvitedV1: 'com.edaxu.portal.user_invited.v1',
29
+ ComEdaxuPortalUserJoinedV1: 'com.edaxu.portal.user_joined.v1'
30
+ };
31
+ /**
32
+ * @export
33
+ */
34
+ export const IntegrationEventDatacontenttypeEnum = {
35
+ ApplicationJson: 'application/json'
36
+ };
37
+ /**
38
+ * Check if a given object implements the IntegrationEvent interface.
39
+ */
40
+ export function instanceOfIntegrationEvent(value) {
41
+ if (!('specversion' in value) || value['specversion'] === undefined)
42
+ return false;
43
+ if (!('id' in value) || value['id'] === undefined)
44
+ return false;
45
+ if (!('source' in value) || value['source'] === undefined)
46
+ return false;
47
+ if (!('type' in value) || value['type'] === undefined)
48
+ return false;
49
+ if (!('time' in value) || value['time'] === undefined)
50
+ return false;
51
+ if (!('subject' in value) || value['subject'] === undefined)
52
+ return false;
53
+ if (!('datacontenttype' in value) || value['datacontenttype'] === undefined)
54
+ return false;
55
+ if (!('data' in value) || value['data'] === undefined)
56
+ return false;
57
+ return true;
58
+ }
59
+ export function IntegrationEventFromJSON(json) {
60
+ return IntegrationEventFromJSONTyped(json, false);
61
+ }
62
+ export function IntegrationEventFromJSONTyped(json, ignoreDiscriminator) {
63
+ if (json == null) {
64
+ return json;
65
+ }
66
+ return {
67
+ 'specversion': json['specversion'],
68
+ 'id': json['id'],
69
+ 'source': json['source'],
70
+ 'type': json['type'],
71
+ 'time': (new Date(json['time'])),
72
+ 'subject': json['subject'],
73
+ 'datacontenttype': json['datacontenttype'],
74
+ 'data': IntegrationEventDataFromJSON(json['data']),
75
+ };
76
+ }
77
+ export function IntegrationEventToJSON(json) {
78
+ return IntegrationEventToJSONTyped(json, false);
79
+ }
80
+ export function IntegrationEventToJSONTyped(value, ignoreDiscriminator = false) {
81
+ if (value == null) {
82
+ return value;
83
+ }
84
+ return {
85
+ 'specversion': value['specversion'],
86
+ 'id': value['id'],
87
+ 'source': value['source'],
88
+ 'type': value['type'],
89
+ 'time': value['time'].toISOString(),
90
+ 'subject': value['subject'],
91
+ 'datacontenttype': value['datacontenttype'],
92
+ 'data': IntegrationEventDataToJSON(value['data']),
93
+ };
94
+ }
@@ -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,76 @@
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
+ * @export
16
+ */
17
+ export const IntegrationEventCertificateIssuanceTypeEnum = {
18
+ Original: 'original',
19
+ Renewal: 'renewal',
20
+ Replacement: 'replacement',
21
+ Correction: 'correction'
22
+ };
23
+ /**
24
+ * Check if a given object implements the IntegrationEventCertificate interface.
25
+ */
26
+ export function instanceOfIntegrationEventCertificate(value) {
27
+ if (!('id' in value) || value['id'] === undefined)
28
+ return false;
29
+ if (!('status' in value) || value['status'] === undefined)
30
+ return false;
31
+ if (!('issuanceType' in value) || value['issuanceType'] === undefined)
32
+ return false;
33
+ if (!('issuedAt' in value) || value['issuedAt'] === undefined)
34
+ return false;
35
+ if (!('expiresAt' in value) || value['expiresAt'] === undefined)
36
+ return false;
37
+ if (!('verificationUrl' in value) || value['verificationUrl'] === undefined)
38
+ return false;
39
+ if (!('enrollmentId' in value) || value['enrollmentId'] === undefined)
40
+ return false;
41
+ return true;
42
+ }
43
+ export function IntegrationEventCertificateFromJSON(json) {
44
+ return IntegrationEventCertificateFromJSONTyped(json, false);
45
+ }
46
+ export function IntegrationEventCertificateFromJSONTyped(json, ignoreDiscriminator) {
47
+ if (json == null) {
48
+ return json;
49
+ }
50
+ return {
51
+ 'id': json['id'],
52
+ 'status': json['status'],
53
+ 'issuanceType': json['issuance_type'],
54
+ 'issuedAt': (new Date(json['issued_at'])),
55
+ 'expiresAt': (json['expires_at'] == null ? null : new Date(json['expires_at'])),
56
+ 'verificationUrl': json['verification_url'],
57
+ 'enrollmentId': json['enrollment_id'],
58
+ };
59
+ }
60
+ export function IntegrationEventCertificateToJSON(json) {
61
+ return IntegrationEventCertificateToJSONTyped(json, false);
62
+ }
63
+ export function IntegrationEventCertificateToJSONTyped(value, ignoreDiscriminator = false) {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+ return {
68
+ 'id': value['id'],
69
+ 'status': value['status'],
70
+ 'issuance_type': value['issuanceType'],
71
+ 'issued_at': value['issuedAt'].toISOString(),
72
+ 'expires_at': value['expiresAt'] == null ? value['expiresAt'] : value['expiresAt'].toISOString(),
73
+ 'verification_url': value['verificationUrl'],
74
+ 'enrollment_id': value['enrollmentId'],
75
+ };
76
+ }
@@ -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,47 @@
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
+ * Check if a given object implements the IntegrationEventCourse interface.
16
+ */
17
+ export function instanceOfIntegrationEventCourse(value) {
18
+ if (!('id' in value) || value['id'] === undefined)
19
+ return false;
20
+ if (!('name' in value) || value['name'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function IntegrationEventCourseFromJSON(json) {
25
+ return IntegrationEventCourseFromJSONTyped(json, false);
26
+ }
27
+ export function IntegrationEventCourseFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'id': json['id'],
33
+ 'name': json['name'],
34
+ };
35
+ }
36
+ export function IntegrationEventCourseToJSON(json) {
37
+ return IntegrationEventCourseToJSONTyped(json, false);
38
+ }
39
+ export function IntegrationEventCourseToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'id': value['id'],
45
+ 'name': value['name'],
46
+ };
47
+ }
@@ -0,0 +1,75 @@
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 { IntegrationEventUser } from './IntegrationEventUser';
13
+ import type { IntegrationEventLearner } from './IntegrationEventLearner';
14
+ import type { IntegrationEventCertificate } from './IntegrationEventCertificate';
15
+ import type { IntegrationEventEnrollment } from './IntegrationEventEnrollment';
16
+ import type { IntegrationEventPortal } from './IntegrationEventPortal';
17
+ import type { IntegrationEventCourse } from './IntegrationEventCourse';
18
+ import type { IntegrationEventInvitation } from './IntegrationEventInvitation';
19
+ /**
20
+ *
21
+ * @export
22
+ * @interface IntegrationEventData
23
+ */
24
+ export interface IntegrationEventData {
25
+ /**
26
+ *
27
+ * @type {IntegrationEventPortal}
28
+ * @memberof IntegrationEventData
29
+ */
30
+ portal: IntegrationEventPortal;
31
+ /**
32
+ *
33
+ * @type {IntegrationEventLearner}
34
+ * @memberof IntegrationEventData
35
+ */
36
+ learner: IntegrationEventLearner | null;
37
+ /**
38
+ *
39
+ * @type {IntegrationEventUser}
40
+ * @memberof IntegrationEventData
41
+ */
42
+ user: IntegrationEventUser | null;
43
+ /**
44
+ *
45
+ * @type {IntegrationEventCourse}
46
+ * @memberof IntegrationEventData
47
+ */
48
+ course: IntegrationEventCourse | null;
49
+ /**
50
+ *
51
+ * @type {IntegrationEventEnrollment}
52
+ * @memberof IntegrationEventData
53
+ */
54
+ enrollment: IntegrationEventEnrollment | null;
55
+ /**
56
+ *
57
+ * @type {IntegrationEventCertificate}
58
+ * @memberof IntegrationEventData
59
+ */
60
+ certificate: IntegrationEventCertificate | null;
61
+ /**
62
+ *
63
+ * @type {IntegrationEventInvitation}
64
+ * @memberof IntegrationEventData
65
+ */
66
+ invitation: IntegrationEventInvitation | null;
67
+ }
68
+ /**
69
+ * Check if a given object implements the IntegrationEventData interface.
70
+ */
71
+ export declare function instanceOfIntegrationEventData(value: object): value is IntegrationEventData;
72
+ export declare function IntegrationEventDataFromJSON(json: any): IntegrationEventData;
73
+ export declare function IntegrationEventDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationEventData;
74
+ export declare function IntegrationEventDataToJSON(json: any): IntegrationEventData;
75
+ export declare function IntegrationEventDataToJSONTyped(value?: IntegrationEventData | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,74 @@
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
+ import { IntegrationEventUserFromJSON, IntegrationEventUserToJSON, } from './IntegrationEventUser';
15
+ import { IntegrationEventLearnerFromJSON, IntegrationEventLearnerToJSON, } from './IntegrationEventLearner';
16
+ import { IntegrationEventCertificateFromJSON, IntegrationEventCertificateToJSON, } from './IntegrationEventCertificate';
17
+ import { IntegrationEventEnrollmentFromJSON, IntegrationEventEnrollmentToJSON, } from './IntegrationEventEnrollment';
18
+ import { IntegrationEventPortalFromJSON, IntegrationEventPortalToJSON, } from './IntegrationEventPortal';
19
+ import { IntegrationEventCourseFromJSON, IntegrationEventCourseToJSON, } from './IntegrationEventCourse';
20
+ import { IntegrationEventInvitationFromJSON, IntegrationEventInvitationToJSON, } from './IntegrationEventInvitation';
21
+ /**
22
+ * Check if a given object implements the IntegrationEventData interface.
23
+ */
24
+ export function instanceOfIntegrationEventData(value) {
25
+ if (!('portal' in value) || value['portal'] === undefined)
26
+ return false;
27
+ if (!('learner' in value) || value['learner'] === undefined)
28
+ return false;
29
+ if (!('user' in value) || value['user'] === undefined)
30
+ return false;
31
+ if (!('course' in value) || value['course'] === undefined)
32
+ return false;
33
+ if (!('enrollment' in value) || value['enrollment'] === undefined)
34
+ return false;
35
+ if (!('certificate' in value) || value['certificate'] === undefined)
36
+ return false;
37
+ if (!('invitation' in value) || value['invitation'] === undefined)
38
+ return false;
39
+ return true;
40
+ }
41
+ export function IntegrationEventDataFromJSON(json) {
42
+ return IntegrationEventDataFromJSONTyped(json, false);
43
+ }
44
+ export function IntegrationEventDataFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'portal': IntegrationEventPortalFromJSON(json['portal']),
50
+ 'learner': IntegrationEventLearnerFromJSON(json['learner']),
51
+ 'user': IntegrationEventUserFromJSON(json['user']),
52
+ 'course': IntegrationEventCourseFromJSON(json['course']),
53
+ 'enrollment': IntegrationEventEnrollmentFromJSON(json['enrollment']),
54
+ 'certificate': IntegrationEventCertificateFromJSON(json['certificate']),
55
+ 'invitation': IntegrationEventInvitationFromJSON(json['invitation']),
56
+ };
57
+ }
58
+ export function IntegrationEventDataToJSON(json) {
59
+ return IntegrationEventDataToJSONTyped(json, false);
60
+ }
61
+ export function IntegrationEventDataToJSONTyped(value, ignoreDiscriminator = false) {
62
+ if (value == null) {
63
+ return value;
64
+ }
65
+ return {
66
+ 'portal': IntegrationEventPortalToJSON(value['portal']),
67
+ 'learner': IntegrationEventLearnerToJSON(value['learner']),
68
+ 'user': IntegrationEventUserToJSON(value['user']),
69
+ 'course': IntegrationEventCourseToJSON(value['course']),
70
+ 'enrollment': IntegrationEventEnrollmentToJSON(value['enrollment']),
71
+ 'certificate': IntegrationEventCertificateToJSON(value['certificate']),
72
+ 'invitation': IntegrationEventInvitationToJSON(value['invitation']),
73
+ };
74
+ }
@@ -0,0 +1,71 @@
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 IntegrationEventEnrollment
16
+ */
17
+ export interface IntegrationEventEnrollment {
18
+ /**
19
+ * Stable external enrollment ID.
20
+ * @type {string}
21
+ * @memberof IntegrationEventEnrollment
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof IntegrationEventEnrollment
28
+ */
29
+ status: string;
30
+ /**
31
+ *
32
+ * @type {IntegrationEventEnrollmentOccurrenceEnum}
33
+ * @memberof IntegrationEventEnrollment
34
+ */
35
+ occurrence: IntegrationEventEnrollmentOccurrenceEnum;
36
+ /**
37
+ *
38
+ * @type {Date}
39
+ * @memberof IntegrationEventEnrollment
40
+ */
41
+ enrollmentDateStart: Date;
42
+ /**
43
+ *
44
+ * @type {Date}
45
+ * @memberof IntegrationEventEnrollment
46
+ */
47
+ enrollmentDateEnd: Date | null;
48
+ /**
49
+ *
50
+ * @type {Date}
51
+ * @memberof IntegrationEventEnrollment
52
+ */
53
+ completedAt: Date | null;
54
+ }
55
+ /**
56
+ * @export
57
+ */
58
+ export declare const IntegrationEventEnrollmentOccurrenceEnum: {
59
+ readonly Created: "created";
60
+ readonly Resumed: "resumed";
61
+ readonly Completed: "completed";
62
+ };
63
+ export type IntegrationEventEnrollmentOccurrenceEnum = typeof IntegrationEventEnrollmentOccurrenceEnum[keyof typeof IntegrationEventEnrollmentOccurrenceEnum];
64
+ /**
65
+ * Check if a given object implements the IntegrationEventEnrollment interface.
66
+ */
67
+ export declare function instanceOfIntegrationEventEnrollment(value: object): value is IntegrationEventEnrollment;
68
+ export declare function IntegrationEventEnrollmentFromJSON(json: any): IntegrationEventEnrollment;
69
+ export declare function IntegrationEventEnrollmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationEventEnrollment;
70
+ export declare function IntegrationEventEnrollmentToJSON(json: any): IntegrationEventEnrollment;
71
+ export declare function IntegrationEventEnrollmentToJSONTyped(value?: IntegrationEventEnrollment | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,71 @@
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
+ * @export
16
+ */
17
+ export const IntegrationEventEnrollmentOccurrenceEnum = {
18
+ Created: 'created',
19
+ Resumed: 'resumed',
20
+ Completed: 'completed'
21
+ };
22
+ /**
23
+ * Check if a given object implements the IntegrationEventEnrollment interface.
24
+ */
25
+ export function instanceOfIntegrationEventEnrollment(value) {
26
+ if (!('id' in value) || value['id'] === undefined)
27
+ return false;
28
+ if (!('status' in value) || value['status'] === undefined)
29
+ return false;
30
+ if (!('occurrence' in value) || value['occurrence'] === undefined)
31
+ return false;
32
+ if (!('enrollmentDateStart' in value) || value['enrollmentDateStart'] === undefined)
33
+ return false;
34
+ if (!('enrollmentDateEnd' in value) || value['enrollmentDateEnd'] === undefined)
35
+ return false;
36
+ if (!('completedAt' in value) || value['completedAt'] === undefined)
37
+ return false;
38
+ return true;
39
+ }
40
+ export function IntegrationEventEnrollmentFromJSON(json) {
41
+ return IntegrationEventEnrollmentFromJSONTyped(json, false);
42
+ }
43
+ export function IntegrationEventEnrollmentFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ 'id': json['id'],
49
+ 'status': json['status'],
50
+ 'occurrence': json['occurrence'],
51
+ 'enrollmentDateStart': (new Date(json['enrollment_date_start'])),
52
+ 'enrollmentDateEnd': (json['enrollment_date_end'] == null ? null : new Date(json['enrollment_date_end'])),
53
+ 'completedAt': (json['completed_at'] == null ? null : new Date(json['completed_at'])),
54
+ };
55
+ }
56
+ export function IntegrationEventEnrollmentToJSON(json) {
57
+ return IntegrationEventEnrollmentToJSONTyped(json, false);
58
+ }
59
+ export function IntegrationEventEnrollmentToJSONTyped(value, ignoreDiscriminator = false) {
60
+ if (value == null) {
61
+ return value;
62
+ }
63
+ return {
64
+ 'id': value['id'],
65
+ 'status': value['status'],
66
+ 'occurrence': value['occurrence'],
67
+ 'enrollment_date_start': value['enrollmentDateStart'].toISOString(),
68
+ 'enrollment_date_end': value['enrollmentDateEnd'] == null ? value['enrollmentDateEnd'] : value['enrollmentDateEnd'].toISOString(),
69
+ 'completed_at': value['completedAt'] == null ? value['completedAt'] : value['completedAt'].toISOString(),
70
+ };
71
+ }