@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.
- package/.openapi-generator/FILES +28 -0
- package/README.md +23 -2
- package/dist/apis/IntegrationApi.d.ts +127 -0
- package/dist/apis/IntegrationApi.js +332 -1
- package/dist/esm/apis/IntegrationApi.d.ts +127 -0
- package/dist/esm/apis/IntegrationApi.js +331 -0
- package/dist/esm/models/CustomWebhookIntegration.d.ts +85 -0
- package/dist/esm/models/CustomWebhookIntegration.js +81 -0
- package/dist/esm/models/IntegrationEvent.d.ts +100 -0
- package/dist/esm/models/IntegrationEvent.js +94 -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 +75 -0
- package/dist/esm/models/IntegrationEventData.js +74 -0
- package/dist/esm/models/IntegrationEventEnrollment.d.ts +71 -0
- package/dist/esm/models/IntegrationEventEnrollment.js +71 -0
- package/dist/esm/models/IntegrationEventInvitation.d.ts +71 -0
- package/dist/esm/models/IntegrationEventInvitation.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/IntegrationEventUser.d.ts +50 -0
- package/dist/esm/models/IntegrationEventUser.js +55 -0
- package/dist/esm/models/PostCustomWebhookIntegration.d.ts +67 -0
- package/dist/esm/models/PostCustomWebhookIntegration.js +67 -0
- package/dist/esm/models/PostZapierSubscription.d.ts +55 -0
- package/dist/esm/models/PostZapierSubscription.js +59 -0
- package/dist/esm/models/PutCustomWebhookIntegration.d.ts +67 -0
- package/dist/esm/models/PutCustomWebhookIntegration.js +59 -0
- package/dist/esm/models/ZapierSubscription.d.ts +55 -0
- package/dist/esm/models/ZapierSubscription.js +61 -0
- package/dist/esm/models/index.d.ts +14 -0
- package/dist/esm/models/index.js +14 -0
- package/dist/models/CustomWebhookIntegration.d.ts +85 -0
- package/dist/models/CustomWebhookIntegration.js +89 -0
- package/dist/models/IntegrationEvent.d.ts +100 -0
- package/dist/models/IntegrationEvent.js +102 -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 +75 -0
- package/dist/models/IntegrationEventData.js +81 -0
- package/dist/models/IntegrationEventEnrollment.d.ts +71 -0
- package/dist/models/IntegrationEventEnrollment.js +79 -0
- package/dist/models/IntegrationEventInvitation.d.ts +71 -0
- package/dist/models/IntegrationEventInvitation.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/IntegrationEventUser.d.ts +50 -0
- package/dist/models/IntegrationEventUser.js +62 -0
- package/dist/models/PostCustomWebhookIntegration.d.ts +67 -0
- package/dist/models/PostCustomWebhookIntegration.js +75 -0
- package/dist/models/PostZapierSubscription.d.ts +55 -0
- package/dist/models/PostZapierSubscription.js +67 -0
- package/dist/models/PutCustomWebhookIntegration.d.ts +67 -0
- package/dist/models/PutCustomWebhookIntegration.js +67 -0
- package/dist/models/ZapierSubscription.d.ts +55 -0
- package/dist/models/ZapierSubscription.js +69 -0
- package/dist/models/index.d.ts +14 -0
- package/dist/models/index.js +14 -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 +46 -0
- package/docs/IntegrationEventEnrollment.md +44 -0
- package/docs/IntegrationEventInvitation.md +45 -0
- package/docs/IntegrationEventLearner.md +40 -0
- package/docs/IntegrationEventPortal.md +38 -0
- package/docs/IntegrationEventUser.md +41 -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 +466 -0
- package/src/models/CustomWebhookIntegration.ts +143 -0
- package/src/models/IntegrationEvent.ts +167 -0
- package/src/models/IntegrationEventCertificate.ts +133 -0
- package/src/models/IntegrationEventCourse.ts +75 -0
- package/src/models/IntegrationEventData.ts +170 -0
- package/src/models/IntegrationEventEnrollment.ts +123 -0
- package/src/models/IntegrationEventInvitation.ts +130 -0
- package/src/models/IntegrationEventLearner.ts +93 -0
- package/src/models/IntegrationEventPortal.ts +84 -0
- package/src/models/IntegrationEventUser.ts +93 -0
- package/src/models/PostCustomWebhookIntegration.ts +115 -0
- package/src/models/PostZapierSubscription.ts +97 -0
- package/src/models/PutCustomWebhookIntegration.ts +111 -0
- package/src/models/ZapierSubscription.ts +98 -0
- package/src/models/index.ts +14 -0
|
@@ -0,0 +1,102 @@
|
|
|
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
|
+
ComEdaxuPortalUserInvitedV1: 'com.edaxu.portal.user_invited.v1',
|
|
37
|
+
ComEdaxuPortalUserJoinedV1: 'com.edaxu.portal.user_joined.v1'
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* @export
|
|
41
|
+
*/
|
|
42
|
+
exports.IntegrationEventDatacontenttypeEnum = {
|
|
43
|
+
ApplicationJson: 'application/json'
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the IntegrationEvent interface.
|
|
47
|
+
*/
|
|
48
|
+
function instanceOfIntegrationEvent(value) {
|
|
49
|
+
if (!('specversion' in value) || value['specversion'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
if (!('source' in value) || value['source'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
56
|
+
return false;
|
|
57
|
+
if (!('time' in value) || value['time'] === undefined)
|
|
58
|
+
return false;
|
|
59
|
+
if (!('subject' in value) || value['subject'] === undefined)
|
|
60
|
+
return false;
|
|
61
|
+
if (!('datacontenttype' in value) || value['datacontenttype'] === undefined)
|
|
62
|
+
return false;
|
|
63
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
64
|
+
return false;
|
|
65
|
+
return true;
|
|
66
|
+
}
|
|
67
|
+
function IntegrationEventFromJSON(json) {
|
|
68
|
+
return IntegrationEventFromJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
function IntegrationEventFromJSONTyped(json, ignoreDiscriminator) {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
'specversion': json['specversion'],
|
|
76
|
+
'id': json['id'],
|
|
77
|
+
'source': json['source'],
|
|
78
|
+
'type': json['type'],
|
|
79
|
+
'time': (new Date(json['time'])),
|
|
80
|
+
'subject': json['subject'],
|
|
81
|
+
'datacontenttype': json['datacontenttype'],
|
|
82
|
+
'data': (0, IntegrationEventData_1.IntegrationEventDataFromJSON)(json['data']),
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
function IntegrationEventToJSON(json) {
|
|
86
|
+
return IntegrationEventToJSONTyped(json, false);
|
|
87
|
+
}
|
|
88
|
+
function IntegrationEventToJSONTyped(value, ignoreDiscriminator = false) {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
return {
|
|
93
|
+
'specversion': value['specversion'],
|
|
94
|
+
'id': value['id'],
|
|
95
|
+
'source': value['source'],
|
|
96
|
+
'type': value['type'],
|
|
97
|
+
'time': value['time'].toISOString(),
|
|
98
|
+
'subject': value['subject'],
|
|
99
|
+
'datacontenttype': value['datacontenttype'],
|
|
100
|
+
'data': (0, IntegrationEventData_1.IntegrationEventDataToJSON)(value['data']),
|
|
101
|
+
};
|
|
102
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -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,81 @@
|
|
|
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.instanceOfIntegrationEventData = instanceOfIntegrationEventData;
|
|
17
|
+
exports.IntegrationEventDataFromJSON = IntegrationEventDataFromJSON;
|
|
18
|
+
exports.IntegrationEventDataFromJSONTyped = IntegrationEventDataFromJSONTyped;
|
|
19
|
+
exports.IntegrationEventDataToJSON = IntegrationEventDataToJSON;
|
|
20
|
+
exports.IntegrationEventDataToJSONTyped = IntegrationEventDataToJSONTyped;
|
|
21
|
+
const IntegrationEventUser_1 = require("./IntegrationEventUser");
|
|
22
|
+
const IntegrationEventLearner_1 = require("./IntegrationEventLearner");
|
|
23
|
+
const IntegrationEventCertificate_1 = require("./IntegrationEventCertificate");
|
|
24
|
+
const IntegrationEventEnrollment_1 = require("./IntegrationEventEnrollment");
|
|
25
|
+
const IntegrationEventPortal_1 = require("./IntegrationEventPortal");
|
|
26
|
+
const IntegrationEventCourse_1 = require("./IntegrationEventCourse");
|
|
27
|
+
const IntegrationEventInvitation_1 = require("./IntegrationEventInvitation");
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the IntegrationEventData interface.
|
|
30
|
+
*/
|
|
31
|
+
function instanceOfIntegrationEventData(value) {
|
|
32
|
+
if (!('portal' in value) || value['portal'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('learner' in value) || value['learner'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('user' in value) || value['user'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('course' in value) || value['course'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('enrollment' in value) || value['enrollment'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('certificate' in value) || value['certificate'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('invitation' in value) || value['invitation'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
function IntegrationEventDataFromJSON(json) {
|
|
49
|
+
return IntegrationEventDataFromJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function IntegrationEventDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
52
|
+
if (json == null) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'portal': (0, IntegrationEventPortal_1.IntegrationEventPortalFromJSON)(json['portal']),
|
|
57
|
+
'learner': (0, IntegrationEventLearner_1.IntegrationEventLearnerFromJSON)(json['learner']),
|
|
58
|
+
'user': (0, IntegrationEventUser_1.IntegrationEventUserFromJSON)(json['user']),
|
|
59
|
+
'course': (0, IntegrationEventCourse_1.IntegrationEventCourseFromJSON)(json['course']),
|
|
60
|
+
'enrollment': (0, IntegrationEventEnrollment_1.IntegrationEventEnrollmentFromJSON)(json['enrollment']),
|
|
61
|
+
'certificate': (0, IntegrationEventCertificate_1.IntegrationEventCertificateFromJSON)(json['certificate']),
|
|
62
|
+
'invitation': (0, IntegrationEventInvitation_1.IntegrationEventInvitationFromJSON)(json['invitation']),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
function IntegrationEventDataToJSON(json) {
|
|
66
|
+
return IntegrationEventDataToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
function IntegrationEventDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
'portal': (0, IntegrationEventPortal_1.IntegrationEventPortalToJSON)(value['portal']),
|
|
74
|
+
'learner': (0, IntegrationEventLearner_1.IntegrationEventLearnerToJSON)(value['learner']),
|
|
75
|
+
'user': (0, IntegrationEventUser_1.IntegrationEventUserToJSON)(value['user']),
|
|
76
|
+
'course': (0, IntegrationEventCourse_1.IntegrationEventCourseToJSON)(value['course']),
|
|
77
|
+
'enrollment': (0, IntegrationEventEnrollment_1.IntegrationEventEnrollmentToJSON)(value['enrollment']),
|
|
78
|
+
'certificate': (0, IntegrationEventCertificate_1.IntegrationEventCertificateToJSON)(value['certificate']),
|
|
79
|
+
'invitation': (0, IntegrationEventInvitation_1.IntegrationEventInvitationToJSON)(value['invitation']),
|
|
80
|
+
};
|
|
81
|
+
}
|
|
@@ -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,79 @@
|
|
|
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.IntegrationEventEnrollmentOccurrenceEnum = void 0;
|
|
17
|
+
exports.instanceOfIntegrationEventEnrollment = instanceOfIntegrationEventEnrollment;
|
|
18
|
+
exports.IntegrationEventEnrollmentFromJSON = IntegrationEventEnrollmentFromJSON;
|
|
19
|
+
exports.IntegrationEventEnrollmentFromJSONTyped = IntegrationEventEnrollmentFromJSONTyped;
|
|
20
|
+
exports.IntegrationEventEnrollmentToJSON = IntegrationEventEnrollmentToJSON;
|
|
21
|
+
exports.IntegrationEventEnrollmentToJSONTyped = IntegrationEventEnrollmentToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.IntegrationEventEnrollmentOccurrenceEnum = {
|
|
26
|
+
Created: 'created',
|
|
27
|
+
Resumed: 'resumed',
|
|
28
|
+
Completed: 'completed'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the IntegrationEventEnrollment interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfIntegrationEventEnrollment(value) {
|
|
34
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('occurrence' in value) || value['occurrence'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('enrollmentDateStart' in value) || value['enrollmentDateStart'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('enrollmentDateEnd' in value) || value['enrollmentDateEnd'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('completedAt' in value) || value['completedAt'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
function IntegrationEventEnrollmentFromJSON(json) {
|
|
49
|
+
return IntegrationEventEnrollmentFromJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function IntegrationEventEnrollmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
52
|
+
if (json == null) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'id': json['id'],
|
|
57
|
+
'status': json['status'],
|
|
58
|
+
'occurrence': json['occurrence'],
|
|
59
|
+
'enrollmentDateStart': (new Date(json['enrollment_date_start'])),
|
|
60
|
+
'enrollmentDateEnd': (json['enrollment_date_end'] == null ? null : new Date(json['enrollment_date_end'])),
|
|
61
|
+
'completedAt': (json['completed_at'] == null ? null : new Date(json['completed_at'])),
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
function IntegrationEventEnrollmentToJSON(json) {
|
|
65
|
+
return IntegrationEventEnrollmentToJSONTyped(json, false);
|
|
66
|
+
}
|
|
67
|
+
function IntegrationEventEnrollmentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
68
|
+
if (value == null) {
|
|
69
|
+
return value;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
'id': value['id'],
|
|
73
|
+
'status': value['status'],
|
|
74
|
+
'occurrence': value['occurrence'],
|
|
75
|
+
'enrollment_date_start': value['enrollmentDateStart'].toISOString(),
|
|
76
|
+
'enrollment_date_end': value['enrollmentDateEnd'] == null ? value['enrollmentDateEnd'] : value['enrollmentDateEnd'].toISOString(),
|
|
77
|
+
'completed_at': value['completedAt'] == null ? value['completedAt'] : value['completedAt'].toISOString(),
|
|
78
|
+
};
|
|
79
|
+
}
|