@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.
- package/.openapi-generator/FILES +24 -0
- package/README.md +21 -2
- package/dist/apis/IntegrationApi.d.ts +125 -0
- package/dist/apis/IntegrationApi.js +330 -1
- package/dist/esm/apis/IntegrationApi.d.ts +125 -0
- package/dist/esm/apis/IntegrationApi.js +329 -0
- package/dist/esm/models/CustomWebhookIntegration.d.ts +83 -0
- package/dist/esm/models/CustomWebhookIntegration.js +79 -0
- package/dist/esm/models/IntegrationEvent.d.ts +98 -0
- package/dist/esm/models/IntegrationEvent.js +92 -0
- package/dist/esm/models/IntegrationEventCertificate.d.ts +78 -0
- package/dist/esm/models/IntegrationEventCertificate.js +76 -0
- package/dist/esm/models/IntegrationEventCourse.d.ts +38 -0
- package/dist/esm/models/IntegrationEventCourse.js +47 -0
- package/dist/esm/models/IntegrationEventData.d.ts +61 -0
- package/dist/esm/models/IntegrationEventData.js +64 -0
- package/dist/esm/models/IntegrationEventEnrollment.d.ts +71 -0
- package/dist/esm/models/IntegrationEventEnrollment.js +71 -0
- package/dist/esm/models/IntegrationEventLearner.d.ts +50 -0
- package/dist/esm/models/IntegrationEventLearner.js +55 -0
- package/dist/esm/models/IntegrationEventPortal.d.ts +44 -0
- package/dist/esm/models/IntegrationEventPortal.js +51 -0
- package/dist/esm/models/PostCustomWebhookIntegration.d.ts +65 -0
- package/dist/esm/models/PostCustomWebhookIntegration.js +65 -0
- package/dist/esm/models/PostZapierSubscription.d.ts +53 -0
- package/dist/esm/models/PostZapierSubscription.js +57 -0
- package/dist/esm/models/PutCustomWebhookIntegration.d.ts +65 -0
- package/dist/esm/models/PutCustomWebhookIntegration.js +57 -0
- package/dist/esm/models/ZapierSubscription.d.ts +53 -0
- package/dist/esm/models/ZapierSubscription.js +59 -0
- package/dist/esm/models/index.d.ts +12 -0
- package/dist/esm/models/index.js +12 -0
- package/dist/models/CustomWebhookIntegration.d.ts +83 -0
- package/dist/models/CustomWebhookIntegration.js +87 -0
- package/dist/models/IntegrationEvent.d.ts +98 -0
- package/dist/models/IntegrationEvent.js +100 -0
- package/dist/models/IntegrationEventCertificate.d.ts +78 -0
- package/dist/models/IntegrationEventCertificate.js +84 -0
- package/dist/models/IntegrationEventCourse.d.ts +38 -0
- package/dist/models/IntegrationEventCourse.js +54 -0
- package/dist/models/IntegrationEventData.d.ts +61 -0
- package/dist/models/IntegrationEventData.js +71 -0
- package/dist/models/IntegrationEventEnrollment.d.ts +71 -0
- package/dist/models/IntegrationEventEnrollment.js +79 -0
- package/dist/models/IntegrationEventLearner.d.ts +50 -0
- package/dist/models/IntegrationEventLearner.js +62 -0
- package/dist/models/IntegrationEventPortal.d.ts +44 -0
- package/dist/models/IntegrationEventPortal.js +58 -0
- package/dist/models/PostCustomWebhookIntegration.d.ts +65 -0
- package/dist/models/PostCustomWebhookIntegration.js +73 -0
- package/dist/models/PostZapierSubscription.d.ts +53 -0
- package/dist/models/PostZapierSubscription.js +65 -0
- package/dist/models/PutCustomWebhookIntegration.d.ts +65 -0
- package/dist/models/PutCustomWebhookIntegration.js +65 -0
- package/dist/models/ZapierSubscription.d.ts +53 -0
- package/dist/models/ZapierSubscription.js +67 -0
- package/dist/models/index.d.ts +12 -0
- package/dist/models/index.js +12 -0
- package/docs/CustomWebhookIntegration.md +48 -0
- package/docs/IntegrationApi.md +494 -0
- package/docs/IntegrationEvent.md +49 -0
- package/docs/IntegrationEventCertificate.md +46 -0
- package/docs/IntegrationEventCourse.md +36 -0
- package/docs/IntegrationEventData.md +42 -0
- package/docs/IntegrationEventEnrollment.md +44 -0
- package/docs/IntegrationEventLearner.md +40 -0
- package/docs/IntegrationEventPortal.md +38 -0
- package/docs/PostCustomWebhookIntegration.md +42 -0
- package/docs/PostZapierSubscription.md +38 -0
- package/docs/PutCustomWebhookIntegration.md +42 -0
- package/docs/ZapierSubscription.md +38 -0
- package/package.json +1 -1
- package/src/apis/IntegrationApi.ts +464 -0
- package/src/models/CustomWebhookIntegration.ts +141 -0
- package/src/models/IntegrationEvent.ts +165 -0
- package/src/models/IntegrationEventCertificate.ts +133 -0
- package/src/models/IntegrationEventCourse.ts +75 -0
- package/src/models/IntegrationEventData.ts +138 -0
- package/src/models/IntegrationEventEnrollment.ts +123 -0
- package/src/models/IntegrationEventLearner.ts +93 -0
- package/src/models/IntegrationEventPortal.ts +84 -0
- package/src/models/PostCustomWebhookIntegration.ts +113 -0
- package/src/models/PostZapierSubscription.ts +95 -0
- package/src/models/PutCustomWebhookIntegration.ts +109 -0
- package/src/models/ZapierSubscription.ts +96 -0
- package/src/models/index.ts +12 -0
|
@@ -0,0 +1,92 @@
|
|
|
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
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @export
|
|
31
|
+
*/
|
|
32
|
+
export const IntegrationEventDatacontenttypeEnum = {
|
|
33
|
+
ApplicationJson: 'application/json'
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Check if a given object implements the IntegrationEvent interface.
|
|
37
|
+
*/
|
|
38
|
+
export function instanceOfIntegrationEvent(value) {
|
|
39
|
+
if (!('specversion' in value) || value['specversion'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('source' in value) || value['source'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('time' in value) || value['time'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('subject' in value) || value['subject'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('datacontenttype' in value) || value['datacontenttype'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
export function IntegrationEventFromJSON(json) {
|
|
58
|
+
return IntegrationEventFromJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
export function IntegrationEventFromJSONTyped(json, ignoreDiscriminator) {
|
|
61
|
+
if (json == null) {
|
|
62
|
+
return json;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'specversion': json['specversion'],
|
|
66
|
+
'id': json['id'],
|
|
67
|
+
'source': json['source'],
|
|
68
|
+
'type': json['type'],
|
|
69
|
+
'time': (new Date(json['time'])),
|
|
70
|
+
'subject': json['subject'],
|
|
71
|
+
'datacontenttype': json['datacontenttype'],
|
|
72
|
+
'data': IntegrationEventDataFromJSON(json['data']),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
export function IntegrationEventToJSON(json) {
|
|
76
|
+
return IntegrationEventToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
export function IntegrationEventToJSONTyped(value, ignoreDiscriminator = false) {
|
|
79
|
+
if (value == null) {
|
|
80
|
+
return value;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
'specversion': value['specversion'],
|
|
84
|
+
'id': value['id'],
|
|
85
|
+
'source': value['source'],
|
|
86
|
+
'type': value['type'],
|
|
87
|
+
'time': value['time'].toISOString(),
|
|
88
|
+
'subject': value['subject'],
|
|
89
|
+
'datacontenttype': value['datacontenttype'],
|
|
90
|
+
'data': IntegrationEventDataToJSON(value['data']),
|
|
91
|
+
};
|
|
92
|
+
}
|
|
@@ -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,61 @@
|
|
|
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 { IntegrationEventLearner } from './IntegrationEventLearner';
|
|
13
|
+
import type { IntegrationEventCertificate } from './IntegrationEventCertificate';
|
|
14
|
+
import type { IntegrationEventEnrollment } from './IntegrationEventEnrollment';
|
|
15
|
+
import type { IntegrationEventPortal } from './IntegrationEventPortal';
|
|
16
|
+
import type { IntegrationEventCourse } from './IntegrationEventCourse';
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface IntegrationEventData
|
|
21
|
+
*/
|
|
22
|
+
export interface IntegrationEventData {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {IntegrationEventPortal}
|
|
26
|
+
* @memberof IntegrationEventData
|
|
27
|
+
*/
|
|
28
|
+
portal: IntegrationEventPortal;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {IntegrationEventLearner}
|
|
32
|
+
* @memberof IntegrationEventData
|
|
33
|
+
*/
|
|
34
|
+
learner: IntegrationEventLearner;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {IntegrationEventCourse}
|
|
38
|
+
* @memberof IntegrationEventData
|
|
39
|
+
*/
|
|
40
|
+
course: IntegrationEventCourse;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {IntegrationEventEnrollment}
|
|
44
|
+
* @memberof IntegrationEventData
|
|
45
|
+
*/
|
|
46
|
+
enrollment: IntegrationEventEnrollment | null;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {IntegrationEventCertificate}
|
|
50
|
+
* @memberof IntegrationEventData
|
|
51
|
+
*/
|
|
52
|
+
certificate: IntegrationEventCertificate | null;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the IntegrationEventData interface.
|
|
56
|
+
*/
|
|
57
|
+
export declare function instanceOfIntegrationEventData(value: object): value is IntegrationEventData;
|
|
58
|
+
export declare function IntegrationEventDataFromJSON(json: any): IntegrationEventData;
|
|
59
|
+
export declare function IntegrationEventDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationEventData;
|
|
60
|
+
export declare function IntegrationEventDataToJSON(json: any): IntegrationEventData;
|
|
61
|
+
export declare function IntegrationEventDataToJSONTyped(value?: IntegrationEventData | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
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 { IntegrationEventLearnerFromJSON, IntegrationEventLearnerToJSON, } from './IntegrationEventLearner';
|
|
15
|
+
import { IntegrationEventCertificateFromJSON, IntegrationEventCertificateToJSON, } from './IntegrationEventCertificate';
|
|
16
|
+
import { IntegrationEventEnrollmentFromJSON, IntegrationEventEnrollmentToJSON, } from './IntegrationEventEnrollment';
|
|
17
|
+
import { IntegrationEventPortalFromJSON, IntegrationEventPortalToJSON, } from './IntegrationEventPortal';
|
|
18
|
+
import { IntegrationEventCourseFromJSON, IntegrationEventCourseToJSON, } from './IntegrationEventCourse';
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the IntegrationEventData interface.
|
|
21
|
+
*/
|
|
22
|
+
export function instanceOfIntegrationEventData(value) {
|
|
23
|
+
if (!('portal' in value) || value['portal'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('learner' in value) || value['learner'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('course' in value) || value['course'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('enrollment' in value) || value['enrollment'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('certificate' in value) || value['certificate'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
export function IntegrationEventDataFromJSON(json) {
|
|
36
|
+
return IntegrationEventDataFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
export function IntegrationEventDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'portal': IntegrationEventPortalFromJSON(json['portal']),
|
|
44
|
+
'learner': IntegrationEventLearnerFromJSON(json['learner']),
|
|
45
|
+
'course': IntegrationEventCourseFromJSON(json['course']),
|
|
46
|
+
'enrollment': IntegrationEventEnrollmentFromJSON(json['enrollment']),
|
|
47
|
+
'certificate': IntegrationEventCertificateFromJSON(json['certificate']),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
export function IntegrationEventDataToJSON(json) {
|
|
51
|
+
return IntegrationEventDataToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
export function IntegrationEventDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'portal': IntegrationEventPortalToJSON(value['portal']),
|
|
59
|
+
'learner': IntegrationEventLearnerToJSON(value['learner']),
|
|
60
|
+
'course': IntegrationEventCourseToJSON(value['course']),
|
|
61
|
+
'enrollment': IntegrationEventEnrollmentToJSON(value['enrollment']),
|
|
62
|
+
'certificate': IntegrationEventCertificateToJSON(value['certificate']),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 IntegrationEventLearner
|
|
16
|
+
*/
|
|
17
|
+
export interface IntegrationEventLearner {
|
|
18
|
+
/**
|
|
19
|
+
* Stable external learner ID.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof IntegrationEventLearner
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof IntegrationEventLearner
|
|
28
|
+
*/
|
|
29
|
+
email: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof IntegrationEventLearner
|
|
34
|
+
*/
|
|
35
|
+
firstName: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof IntegrationEventLearner
|
|
40
|
+
*/
|
|
41
|
+
lastName: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the IntegrationEventLearner interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfIntegrationEventLearner(value: object): value is IntegrationEventLearner;
|
|
47
|
+
export declare function IntegrationEventLearnerFromJSON(json: any): IntegrationEventLearner;
|
|
48
|
+
export declare function IntegrationEventLearnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationEventLearner;
|
|
49
|
+
export declare function IntegrationEventLearnerToJSON(json: any): IntegrationEventLearner;
|
|
50
|
+
export declare function IntegrationEventLearnerToJSONTyped(value?: IntegrationEventLearner | null, ignoreDiscriminator?: boolean): any;
|