@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,143 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface CustomWebhookIntegration
|
|
20
|
+
*/
|
|
21
|
+
export interface CustomWebhookIntegration {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CustomWebhookIntegration
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof CustomWebhookIntegration
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof CustomWebhookIntegration
|
|
38
|
+
*/
|
|
39
|
+
targetUrl: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Set<CustomWebhookIntegrationEventTypesEnum>}
|
|
43
|
+
* @memberof CustomWebhookIntegration
|
|
44
|
+
*/
|
|
45
|
+
eventTypes: Set<CustomWebhookIntegrationEventTypesEnum>;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {boolean}
|
|
49
|
+
* @memberof CustomWebhookIntegration
|
|
50
|
+
*/
|
|
51
|
+
enabled: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* True when an encrypted bearer token is configured. The token is never returned.
|
|
54
|
+
* @type {boolean}
|
|
55
|
+
* @memberof CustomWebhookIntegration
|
|
56
|
+
*/
|
|
57
|
+
tokenConfigured: boolean;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {Date}
|
|
61
|
+
* @memberof CustomWebhookIntegration
|
|
62
|
+
*/
|
|
63
|
+
createdAt: Date;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {Date}
|
|
67
|
+
* @memberof CustomWebhookIntegration
|
|
68
|
+
*/
|
|
69
|
+
updatedAt: Date;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @export
|
|
75
|
+
*/
|
|
76
|
+
export const CustomWebhookIntegrationEventTypesEnum = {
|
|
77
|
+
ComEdaxuEnrollmentEnrolledV1: 'com.edaxu.enrollment.enrolled.v1',
|
|
78
|
+
ComEdaxuEnrollmentCompletedV1: 'com.edaxu.enrollment.completed.v1',
|
|
79
|
+
ComEdaxuCertificateIssuedV1: 'com.edaxu.certificate.issued.v1',
|
|
80
|
+
ComEdaxuPortalUserInvitedV1: 'com.edaxu.portal.user_invited.v1',
|
|
81
|
+
ComEdaxuPortalUserJoinedV1: 'com.edaxu.portal.user_joined.v1'
|
|
82
|
+
} as const;
|
|
83
|
+
export type CustomWebhookIntegrationEventTypesEnum = typeof CustomWebhookIntegrationEventTypesEnum[keyof typeof CustomWebhookIntegrationEventTypesEnum];
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Check if a given object implements the CustomWebhookIntegration interface.
|
|
88
|
+
*/
|
|
89
|
+
export function instanceOfCustomWebhookIntegration(value: object): value is CustomWebhookIntegration {
|
|
90
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
91
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
92
|
+
if (!('targetUrl' in value) || value['targetUrl'] === undefined) return false;
|
|
93
|
+
if (!('eventTypes' in value) || value['eventTypes'] === undefined) return false;
|
|
94
|
+
if (!('enabled' in value) || value['enabled'] === undefined) return false;
|
|
95
|
+
if (!('tokenConfigured' in value) || value['tokenConfigured'] === undefined) return false;
|
|
96
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
97
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
98
|
+
return true;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function CustomWebhookIntegrationFromJSON(json: any): CustomWebhookIntegration {
|
|
102
|
+
return CustomWebhookIntegrationFromJSONTyped(json, false);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export function CustomWebhookIntegrationFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomWebhookIntegration {
|
|
106
|
+
if (json == null) {
|
|
107
|
+
return json;
|
|
108
|
+
}
|
|
109
|
+
return {
|
|
110
|
+
|
|
111
|
+
'id': json['id'],
|
|
112
|
+
'name': json['name'],
|
|
113
|
+
'targetUrl': json['target_url'],
|
|
114
|
+
'eventTypes': new Set(json['event_types']),
|
|
115
|
+
'enabled': json['enabled'],
|
|
116
|
+
'tokenConfigured': json['token_configured'],
|
|
117
|
+
'createdAt': (new Date(json['created_at'])),
|
|
118
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export function CustomWebhookIntegrationToJSON(json: any): CustomWebhookIntegration {
|
|
123
|
+
return CustomWebhookIntegrationToJSONTyped(json, false);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export function CustomWebhookIntegrationToJSONTyped(value?: CustomWebhookIntegration | null, ignoreDiscriminator: boolean = false): any {
|
|
127
|
+
if (value == null) {
|
|
128
|
+
return value;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
return {
|
|
132
|
+
|
|
133
|
+
'id': value['id'],
|
|
134
|
+
'name': value['name'],
|
|
135
|
+
'target_url': value['targetUrl'],
|
|
136
|
+
'event_types': Array.from(value['eventTypes'] as Set<any>),
|
|
137
|
+
'enabled': value['enabled'],
|
|
138
|
+
'token_configured': value['tokenConfigured'],
|
|
139
|
+
'created_at': value['createdAt'].toISOString(),
|
|
140
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { IntegrationEventData } from './IntegrationEventData';
|
|
17
|
+
import {
|
|
18
|
+
IntegrationEventDataFromJSON,
|
|
19
|
+
IntegrationEventDataFromJSONTyped,
|
|
20
|
+
IntegrationEventDataToJSON,
|
|
21
|
+
IntegrationEventDataToJSONTyped,
|
|
22
|
+
} from './IntegrationEventData';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* A CloudEvents 1.0 structured JSON event emitted by Edaxu.
|
|
26
|
+
* @export
|
|
27
|
+
* @interface IntegrationEvent
|
|
28
|
+
*/
|
|
29
|
+
export interface IntegrationEvent {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {IntegrationEventSpecversionEnum}
|
|
33
|
+
* @memberof IntegrationEvent
|
|
34
|
+
*/
|
|
35
|
+
specversion: IntegrationEventSpecversionEnum;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof IntegrationEvent
|
|
40
|
+
*/
|
|
41
|
+
id: string;
|
|
42
|
+
/**
|
|
43
|
+
* Stable URI identifying the portal event source.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof IntegrationEvent
|
|
46
|
+
*/
|
|
47
|
+
source: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {IntegrationEventTypeEnum}
|
|
51
|
+
* @memberof IntegrationEvent
|
|
52
|
+
*/
|
|
53
|
+
type: IntegrationEventTypeEnum;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Date}
|
|
57
|
+
* @memberof IntegrationEvent
|
|
58
|
+
*/
|
|
59
|
+
time: Date;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof IntegrationEvent
|
|
64
|
+
*/
|
|
65
|
+
subject: string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {IntegrationEventDatacontenttypeEnum}
|
|
69
|
+
* @memberof IntegrationEvent
|
|
70
|
+
*/
|
|
71
|
+
datacontenttype: IntegrationEventDatacontenttypeEnum;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {IntegrationEventData}
|
|
75
|
+
* @memberof IntegrationEvent
|
|
76
|
+
*/
|
|
77
|
+
data: IntegrationEventData;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* @export
|
|
83
|
+
*/
|
|
84
|
+
export const IntegrationEventSpecversionEnum = {
|
|
85
|
+
_10: '1.0'
|
|
86
|
+
} as const;
|
|
87
|
+
export type IntegrationEventSpecversionEnum = typeof IntegrationEventSpecversionEnum[keyof typeof IntegrationEventSpecversionEnum];
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* @export
|
|
91
|
+
*/
|
|
92
|
+
export const IntegrationEventTypeEnum = {
|
|
93
|
+
ComEdaxuEnrollmentEnrolledV1: 'com.edaxu.enrollment.enrolled.v1',
|
|
94
|
+
ComEdaxuEnrollmentCompletedV1: 'com.edaxu.enrollment.completed.v1',
|
|
95
|
+
ComEdaxuCertificateIssuedV1: 'com.edaxu.certificate.issued.v1',
|
|
96
|
+
ComEdaxuPortalUserInvitedV1: 'com.edaxu.portal.user_invited.v1',
|
|
97
|
+
ComEdaxuPortalUserJoinedV1: 'com.edaxu.portal.user_joined.v1'
|
|
98
|
+
} as const;
|
|
99
|
+
export type IntegrationEventTypeEnum = typeof IntegrationEventTypeEnum[keyof typeof IntegrationEventTypeEnum];
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* @export
|
|
103
|
+
*/
|
|
104
|
+
export const IntegrationEventDatacontenttypeEnum = {
|
|
105
|
+
ApplicationJson: 'application/json'
|
|
106
|
+
} as const;
|
|
107
|
+
export type IntegrationEventDatacontenttypeEnum = typeof IntegrationEventDatacontenttypeEnum[keyof typeof IntegrationEventDatacontenttypeEnum];
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Check if a given object implements the IntegrationEvent interface.
|
|
112
|
+
*/
|
|
113
|
+
export function instanceOfIntegrationEvent(value: object): value is IntegrationEvent {
|
|
114
|
+
if (!('specversion' in value) || value['specversion'] === undefined) return false;
|
|
115
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
116
|
+
if (!('source' in value) || value['source'] === undefined) return false;
|
|
117
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
118
|
+
if (!('time' in value) || value['time'] === undefined) return false;
|
|
119
|
+
if (!('subject' in value) || value['subject'] === undefined) return false;
|
|
120
|
+
if (!('datacontenttype' in value) || value['datacontenttype'] === undefined) return false;
|
|
121
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
122
|
+
return true;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export function IntegrationEventFromJSON(json: any): IntegrationEvent {
|
|
126
|
+
return IntegrationEventFromJSONTyped(json, false);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export function IntegrationEventFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationEvent {
|
|
130
|
+
if (json == null) {
|
|
131
|
+
return json;
|
|
132
|
+
}
|
|
133
|
+
return {
|
|
134
|
+
|
|
135
|
+
'specversion': json['specversion'],
|
|
136
|
+
'id': json['id'],
|
|
137
|
+
'source': json['source'],
|
|
138
|
+
'type': json['type'],
|
|
139
|
+
'time': (new Date(json['time'])),
|
|
140
|
+
'subject': json['subject'],
|
|
141
|
+
'datacontenttype': json['datacontenttype'],
|
|
142
|
+
'data': IntegrationEventDataFromJSON(json['data']),
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export function IntegrationEventToJSON(json: any): IntegrationEvent {
|
|
147
|
+
return IntegrationEventToJSONTyped(json, false);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export function IntegrationEventToJSONTyped(value?: IntegrationEvent | null, ignoreDiscriminator: boolean = false): any {
|
|
151
|
+
if (value == null) {
|
|
152
|
+
return value;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
return {
|
|
156
|
+
|
|
157
|
+
'specversion': value['specversion'],
|
|
158
|
+
'id': value['id'],
|
|
159
|
+
'source': value['source'],
|
|
160
|
+
'type': value['type'],
|
|
161
|
+
'time': value['time'].toISOString(),
|
|
162
|
+
'subject': value['subject'],
|
|
163
|
+
'datacontenttype': value['datacontenttype'],
|
|
164
|
+
'data': IntegrationEventDataToJSON(value['data']),
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface IntegrationEventCertificate
|
|
20
|
+
*/
|
|
21
|
+
export interface IntegrationEventCertificate {
|
|
22
|
+
/**
|
|
23
|
+
* Stable external certificate ID.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof IntegrationEventCertificate
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof IntegrationEventCertificate
|
|
32
|
+
*/
|
|
33
|
+
status: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {IntegrationEventCertificateIssuanceTypeEnum}
|
|
37
|
+
* @memberof IntegrationEventCertificate
|
|
38
|
+
*/
|
|
39
|
+
issuanceType: IntegrationEventCertificateIssuanceTypeEnum;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Date}
|
|
43
|
+
* @memberof IntegrationEventCertificate
|
|
44
|
+
*/
|
|
45
|
+
issuedAt: Date;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {Date}
|
|
49
|
+
* @memberof IntegrationEventCertificate
|
|
50
|
+
*/
|
|
51
|
+
expiresAt: Date | null;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof IntegrationEventCertificate
|
|
56
|
+
*/
|
|
57
|
+
verificationUrl: string;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof IntegrationEventCertificate
|
|
62
|
+
*/
|
|
63
|
+
enrollmentId: string | null;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* @export
|
|
69
|
+
*/
|
|
70
|
+
export const IntegrationEventCertificateIssuanceTypeEnum = {
|
|
71
|
+
Original: 'original',
|
|
72
|
+
Renewal: 'renewal',
|
|
73
|
+
Replacement: 'replacement',
|
|
74
|
+
Correction: 'correction'
|
|
75
|
+
} as const;
|
|
76
|
+
export type IntegrationEventCertificateIssuanceTypeEnum = typeof IntegrationEventCertificateIssuanceTypeEnum[keyof typeof IntegrationEventCertificateIssuanceTypeEnum];
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Check if a given object implements the IntegrationEventCertificate interface.
|
|
81
|
+
*/
|
|
82
|
+
export function instanceOfIntegrationEventCertificate(value: object): value is IntegrationEventCertificate {
|
|
83
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
84
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
85
|
+
if (!('issuanceType' in value) || value['issuanceType'] === undefined) return false;
|
|
86
|
+
if (!('issuedAt' in value) || value['issuedAt'] === undefined) return false;
|
|
87
|
+
if (!('expiresAt' in value) || value['expiresAt'] === undefined) return false;
|
|
88
|
+
if (!('verificationUrl' in value) || value['verificationUrl'] === undefined) return false;
|
|
89
|
+
if (!('enrollmentId' in value) || value['enrollmentId'] === undefined) return false;
|
|
90
|
+
return true;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function IntegrationEventCertificateFromJSON(json: any): IntegrationEventCertificate {
|
|
94
|
+
return IntegrationEventCertificateFromJSONTyped(json, false);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function IntegrationEventCertificateFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationEventCertificate {
|
|
98
|
+
if (json == null) {
|
|
99
|
+
return json;
|
|
100
|
+
}
|
|
101
|
+
return {
|
|
102
|
+
|
|
103
|
+
'id': json['id'],
|
|
104
|
+
'status': json['status'],
|
|
105
|
+
'issuanceType': json['issuance_type'],
|
|
106
|
+
'issuedAt': (new Date(json['issued_at'])),
|
|
107
|
+
'expiresAt': (json['expires_at'] == null ? null : new Date(json['expires_at'])),
|
|
108
|
+
'verificationUrl': json['verification_url'],
|
|
109
|
+
'enrollmentId': json['enrollment_id'],
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export function IntegrationEventCertificateToJSON(json: any): IntegrationEventCertificate {
|
|
114
|
+
return IntegrationEventCertificateToJSONTyped(json, false);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export function IntegrationEventCertificateToJSONTyped(value?: IntegrationEventCertificate | null, ignoreDiscriminator: boolean = false): any {
|
|
118
|
+
if (value == null) {
|
|
119
|
+
return value;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
return {
|
|
123
|
+
|
|
124
|
+
'id': value['id'],
|
|
125
|
+
'status': value['status'],
|
|
126
|
+
'issuance_type': value['issuanceType'],
|
|
127
|
+
'issued_at': value['issuedAt'].toISOString(),
|
|
128
|
+
'expires_at': value['expiresAt'] == null ? value['expiresAt'] : value['expiresAt'].toISOString(),
|
|
129
|
+
'verification_url': value['verificationUrl'],
|
|
130
|
+
'enrollment_id': value['enrollmentId'],
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface IntegrationEventCourse
|
|
20
|
+
*/
|
|
21
|
+
export interface IntegrationEventCourse {
|
|
22
|
+
/**
|
|
23
|
+
* Stable external course ID.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof IntegrationEventCourse
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof IntegrationEventCourse
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the IntegrationEventCourse interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfIntegrationEventCourse(value: object): value is IntegrationEventCourse {
|
|
40
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
41
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function IntegrationEventCourseFromJSON(json: any): IntegrationEventCourse {
|
|
46
|
+
return IntegrationEventCourseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function IntegrationEventCourseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationEventCourse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'id': json['id'],
|
|
56
|
+
'name': json['name'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function IntegrationEventCourseToJSON(json: any): IntegrationEventCourse {
|
|
61
|
+
return IntegrationEventCourseToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function IntegrationEventCourseToJSONTyped(value?: IntegrationEventCourse | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'id': value['id'],
|
|
72
|
+
'name': value['name'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { IntegrationEventUser } from './IntegrationEventUser';
|
|
17
|
+
import {
|
|
18
|
+
IntegrationEventUserFromJSON,
|
|
19
|
+
IntegrationEventUserFromJSONTyped,
|
|
20
|
+
IntegrationEventUserToJSON,
|
|
21
|
+
IntegrationEventUserToJSONTyped,
|
|
22
|
+
} from './IntegrationEventUser';
|
|
23
|
+
import type { IntegrationEventLearner } from './IntegrationEventLearner';
|
|
24
|
+
import {
|
|
25
|
+
IntegrationEventLearnerFromJSON,
|
|
26
|
+
IntegrationEventLearnerFromJSONTyped,
|
|
27
|
+
IntegrationEventLearnerToJSON,
|
|
28
|
+
IntegrationEventLearnerToJSONTyped,
|
|
29
|
+
} from './IntegrationEventLearner';
|
|
30
|
+
import type { IntegrationEventCertificate } from './IntegrationEventCertificate';
|
|
31
|
+
import {
|
|
32
|
+
IntegrationEventCertificateFromJSON,
|
|
33
|
+
IntegrationEventCertificateFromJSONTyped,
|
|
34
|
+
IntegrationEventCertificateToJSON,
|
|
35
|
+
IntegrationEventCertificateToJSONTyped,
|
|
36
|
+
} from './IntegrationEventCertificate';
|
|
37
|
+
import type { IntegrationEventEnrollment } from './IntegrationEventEnrollment';
|
|
38
|
+
import {
|
|
39
|
+
IntegrationEventEnrollmentFromJSON,
|
|
40
|
+
IntegrationEventEnrollmentFromJSONTyped,
|
|
41
|
+
IntegrationEventEnrollmentToJSON,
|
|
42
|
+
IntegrationEventEnrollmentToJSONTyped,
|
|
43
|
+
} from './IntegrationEventEnrollment';
|
|
44
|
+
import type { IntegrationEventPortal } from './IntegrationEventPortal';
|
|
45
|
+
import {
|
|
46
|
+
IntegrationEventPortalFromJSON,
|
|
47
|
+
IntegrationEventPortalFromJSONTyped,
|
|
48
|
+
IntegrationEventPortalToJSON,
|
|
49
|
+
IntegrationEventPortalToJSONTyped,
|
|
50
|
+
} from './IntegrationEventPortal';
|
|
51
|
+
import type { IntegrationEventCourse } from './IntegrationEventCourse';
|
|
52
|
+
import {
|
|
53
|
+
IntegrationEventCourseFromJSON,
|
|
54
|
+
IntegrationEventCourseFromJSONTyped,
|
|
55
|
+
IntegrationEventCourseToJSON,
|
|
56
|
+
IntegrationEventCourseToJSONTyped,
|
|
57
|
+
} from './IntegrationEventCourse';
|
|
58
|
+
import type { IntegrationEventInvitation } from './IntegrationEventInvitation';
|
|
59
|
+
import {
|
|
60
|
+
IntegrationEventInvitationFromJSON,
|
|
61
|
+
IntegrationEventInvitationFromJSONTyped,
|
|
62
|
+
IntegrationEventInvitationToJSON,
|
|
63
|
+
IntegrationEventInvitationToJSONTyped,
|
|
64
|
+
} from './IntegrationEventInvitation';
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @export
|
|
69
|
+
* @interface IntegrationEventData
|
|
70
|
+
*/
|
|
71
|
+
export interface IntegrationEventData {
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {IntegrationEventPortal}
|
|
75
|
+
* @memberof IntegrationEventData
|
|
76
|
+
*/
|
|
77
|
+
portal: IntegrationEventPortal;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {IntegrationEventLearner}
|
|
81
|
+
* @memberof IntegrationEventData
|
|
82
|
+
*/
|
|
83
|
+
learner: IntegrationEventLearner | null;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {IntegrationEventUser}
|
|
87
|
+
* @memberof IntegrationEventData
|
|
88
|
+
*/
|
|
89
|
+
user: IntegrationEventUser | null;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {IntegrationEventCourse}
|
|
93
|
+
* @memberof IntegrationEventData
|
|
94
|
+
*/
|
|
95
|
+
course: IntegrationEventCourse | null;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {IntegrationEventEnrollment}
|
|
99
|
+
* @memberof IntegrationEventData
|
|
100
|
+
*/
|
|
101
|
+
enrollment: IntegrationEventEnrollment | null;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @type {IntegrationEventCertificate}
|
|
105
|
+
* @memberof IntegrationEventData
|
|
106
|
+
*/
|
|
107
|
+
certificate: IntegrationEventCertificate | null;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @type {IntegrationEventInvitation}
|
|
111
|
+
* @memberof IntegrationEventData
|
|
112
|
+
*/
|
|
113
|
+
invitation: IntegrationEventInvitation | null;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Check if a given object implements the IntegrationEventData interface.
|
|
118
|
+
*/
|
|
119
|
+
export function instanceOfIntegrationEventData(value: object): value is IntegrationEventData {
|
|
120
|
+
if (!('portal' in value) || value['portal'] === undefined) return false;
|
|
121
|
+
if (!('learner' in value) || value['learner'] === undefined) return false;
|
|
122
|
+
if (!('user' in value) || value['user'] === undefined) return false;
|
|
123
|
+
if (!('course' in value) || value['course'] === undefined) return false;
|
|
124
|
+
if (!('enrollment' in value) || value['enrollment'] === undefined) return false;
|
|
125
|
+
if (!('certificate' in value) || value['certificate'] === undefined) return false;
|
|
126
|
+
if (!('invitation' in value) || value['invitation'] === undefined) return false;
|
|
127
|
+
return true;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export function IntegrationEventDataFromJSON(json: any): IntegrationEventData {
|
|
131
|
+
return IntegrationEventDataFromJSONTyped(json, false);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export function IntegrationEventDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationEventData {
|
|
135
|
+
if (json == null) {
|
|
136
|
+
return json;
|
|
137
|
+
}
|
|
138
|
+
return {
|
|
139
|
+
|
|
140
|
+
'portal': IntegrationEventPortalFromJSON(json['portal']),
|
|
141
|
+
'learner': IntegrationEventLearnerFromJSON(json['learner']),
|
|
142
|
+
'user': IntegrationEventUserFromJSON(json['user']),
|
|
143
|
+
'course': IntegrationEventCourseFromJSON(json['course']),
|
|
144
|
+
'enrollment': IntegrationEventEnrollmentFromJSON(json['enrollment']),
|
|
145
|
+
'certificate': IntegrationEventCertificateFromJSON(json['certificate']),
|
|
146
|
+
'invitation': IntegrationEventInvitationFromJSON(json['invitation']),
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export function IntegrationEventDataToJSON(json: any): IntegrationEventData {
|
|
151
|
+
return IntegrationEventDataToJSONTyped(json, false);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export function IntegrationEventDataToJSONTyped(value?: IntegrationEventData | null, ignoreDiscriminator: boolean = false): any {
|
|
155
|
+
if (value == null) {
|
|
156
|
+
return value;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
return {
|
|
160
|
+
|
|
161
|
+
'portal': IntegrationEventPortalToJSON(value['portal']),
|
|
162
|
+
'learner': IntegrationEventLearnerToJSON(value['learner']),
|
|
163
|
+
'user': IntegrationEventUserToJSON(value['user']),
|
|
164
|
+
'course': IntegrationEventCourseToJSON(value['course']),
|
|
165
|
+
'enrollment': IntegrationEventEnrollmentToJSON(value['enrollment']),
|
|
166
|
+
'certificate': IntegrationEventCertificateToJSON(value['certificate']),
|
|
167
|
+
'invitation': IntegrationEventInvitationToJSON(value['invitation']),
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
|