@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,123 @@
|
|
|
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 IntegrationEventEnrollment
|
|
20
|
+
*/
|
|
21
|
+
export interface IntegrationEventEnrollment {
|
|
22
|
+
/**
|
|
23
|
+
* Stable external enrollment ID.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof IntegrationEventEnrollment
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof IntegrationEventEnrollment
|
|
32
|
+
*/
|
|
33
|
+
status: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {IntegrationEventEnrollmentOccurrenceEnum}
|
|
37
|
+
* @memberof IntegrationEventEnrollment
|
|
38
|
+
*/
|
|
39
|
+
occurrence: IntegrationEventEnrollmentOccurrenceEnum;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Date}
|
|
43
|
+
* @memberof IntegrationEventEnrollment
|
|
44
|
+
*/
|
|
45
|
+
enrollmentDateStart: Date;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {Date}
|
|
49
|
+
* @memberof IntegrationEventEnrollment
|
|
50
|
+
*/
|
|
51
|
+
enrollmentDateEnd: Date | null;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {Date}
|
|
55
|
+
* @memberof IntegrationEventEnrollment
|
|
56
|
+
*/
|
|
57
|
+
completedAt: Date | null;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export const IntegrationEventEnrollmentOccurrenceEnum = {
|
|
65
|
+
Created: 'created',
|
|
66
|
+
Resumed: 'resumed',
|
|
67
|
+
Completed: 'completed'
|
|
68
|
+
} as const;
|
|
69
|
+
export type IntegrationEventEnrollmentOccurrenceEnum = typeof IntegrationEventEnrollmentOccurrenceEnum[keyof typeof IntegrationEventEnrollmentOccurrenceEnum];
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Check if a given object implements the IntegrationEventEnrollment interface.
|
|
74
|
+
*/
|
|
75
|
+
export function instanceOfIntegrationEventEnrollment(value: object): value is IntegrationEventEnrollment {
|
|
76
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
77
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
78
|
+
if (!('occurrence' in value) || value['occurrence'] === undefined) return false;
|
|
79
|
+
if (!('enrollmentDateStart' in value) || value['enrollmentDateStart'] === undefined) return false;
|
|
80
|
+
if (!('enrollmentDateEnd' in value) || value['enrollmentDateEnd'] === undefined) return false;
|
|
81
|
+
if (!('completedAt' in value) || value['completedAt'] === undefined) return false;
|
|
82
|
+
return true;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function IntegrationEventEnrollmentFromJSON(json: any): IntegrationEventEnrollment {
|
|
86
|
+
return IntegrationEventEnrollmentFromJSONTyped(json, false);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function IntegrationEventEnrollmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationEventEnrollment {
|
|
90
|
+
if (json == null) {
|
|
91
|
+
return json;
|
|
92
|
+
}
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'id': json['id'],
|
|
96
|
+
'status': json['status'],
|
|
97
|
+
'occurrence': json['occurrence'],
|
|
98
|
+
'enrollmentDateStart': (new Date(json['enrollment_date_start'])),
|
|
99
|
+
'enrollmentDateEnd': (json['enrollment_date_end'] == null ? null : new Date(json['enrollment_date_end'])),
|
|
100
|
+
'completedAt': (json['completed_at'] == null ? null : new Date(json['completed_at'])),
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function IntegrationEventEnrollmentToJSON(json: any): IntegrationEventEnrollment {
|
|
105
|
+
return IntegrationEventEnrollmentToJSONTyped(json, false);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function IntegrationEventEnrollmentToJSONTyped(value?: IntegrationEventEnrollment | null, ignoreDiscriminator: boolean = false): any {
|
|
109
|
+
if (value == null) {
|
|
110
|
+
return value;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
return {
|
|
114
|
+
|
|
115
|
+
'id': value['id'],
|
|
116
|
+
'status': value['status'],
|
|
117
|
+
'occurrence': value['occurrence'],
|
|
118
|
+
'enrollment_date_start': value['enrollmentDateStart'].toISOString(),
|
|
119
|
+
'enrollment_date_end': value['enrollmentDateEnd'] == null ? value['enrollmentDateEnd'] : value['enrollmentDateEnd'].toISOString(),
|
|
120
|
+
'completed_at': value['completedAt'] == null ? value['completedAt'] : value['completedAt'].toISOString(),
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
|
|
@@ -0,0 +1,130 @@
|
|
|
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
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Portal invitation lifecycle details for the affected user.
|
|
26
|
+
* @export
|
|
27
|
+
* @interface IntegrationEventInvitation
|
|
28
|
+
*/
|
|
29
|
+
export interface IntegrationEventInvitation {
|
|
30
|
+
/**
|
|
31
|
+
* Stable invitation ID.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof IntegrationEventInvitation
|
|
34
|
+
*/
|
|
35
|
+
id: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {IntegrationEventInvitationStatusEnum}
|
|
39
|
+
* @memberof IntegrationEventInvitation
|
|
40
|
+
*/
|
|
41
|
+
status: IntegrationEventInvitationStatusEnum;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof IntegrationEventInvitation
|
|
46
|
+
*/
|
|
47
|
+
invitedAt: Date;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Date}
|
|
51
|
+
* @memberof IntegrationEventInvitation
|
|
52
|
+
*/
|
|
53
|
+
expiresAt: Date;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Date}
|
|
57
|
+
* @memberof IntegrationEventInvitation
|
|
58
|
+
*/
|
|
59
|
+
acceptedAt: Date | null;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {IntegrationEventUser}
|
|
63
|
+
* @memberof IntegrationEventInvitation
|
|
64
|
+
*/
|
|
65
|
+
invitedBy: IntegrationEventUser | null;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* @export
|
|
71
|
+
*/
|
|
72
|
+
export const IntegrationEventInvitationStatusEnum = {
|
|
73
|
+
Pending: 'pending',
|
|
74
|
+
Accepted: 'accepted'
|
|
75
|
+
} as const;
|
|
76
|
+
export type IntegrationEventInvitationStatusEnum = typeof IntegrationEventInvitationStatusEnum[keyof typeof IntegrationEventInvitationStatusEnum];
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Check if a given object implements the IntegrationEventInvitation interface.
|
|
81
|
+
*/
|
|
82
|
+
export function instanceOfIntegrationEventInvitation(value: object): value is IntegrationEventInvitation {
|
|
83
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
84
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
85
|
+
if (!('invitedAt' in value) || value['invitedAt'] === undefined) return false;
|
|
86
|
+
if (!('expiresAt' in value) || value['expiresAt'] === undefined) return false;
|
|
87
|
+
if (!('acceptedAt' in value) || value['acceptedAt'] === undefined) return false;
|
|
88
|
+
if (!('invitedBy' in value) || value['invitedBy'] === undefined) return false;
|
|
89
|
+
return true;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function IntegrationEventInvitationFromJSON(json: any): IntegrationEventInvitation {
|
|
93
|
+
return IntegrationEventInvitationFromJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function IntegrationEventInvitationFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationEventInvitation {
|
|
97
|
+
if (json == null) {
|
|
98
|
+
return json;
|
|
99
|
+
}
|
|
100
|
+
return {
|
|
101
|
+
|
|
102
|
+
'id': json['id'],
|
|
103
|
+
'status': json['status'],
|
|
104
|
+
'invitedAt': (new Date(json['invited_at'])),
|
|
105
|
+
'expiresAt': (new Date(json['expires_at'])),
|
|
106
|
+
'acceptedAt': (json['accepted_at'] == null ? null : new Date(json['accepted_at'])),
|
|
107
|
+
'invitedBy': IntegrationEventUserFromJSON(json['invited_by']),
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export function IntegrationEventInvitationToJSON(json: any): IntegrationEventInvitation {
|
|
112
|
+
return IntegrationEventInvitationToJSONTyped(json, false);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function IntegrationEventInvitationToJSONTyped(value?: IntegrationEventInvitation | null, ignoreDiscriminator: boolean = false): any {
|
|
116
|
+
if (value == null) {
|
|
117
|
+
return value;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
return {
|
|
121
|
+
|
|
122
|
+
'id': value['id'],
|
|
123
|
+
'status': value['status'],
|
|
124
|
+
'invited_at': value['invitedAt'].toISOString(),
|
|
125
|
+
'expires_at': value['expiresAt'].toISOString(),
|
|
126
|
+
'accepted_at': value['acceptedAt'] == null ? value['acceptedAt'] : value['acceptedAt'].toISOString(),
|
|
127
|
+
'invited_by': IntegrationEventUserToJSON(value['invitedBy']),
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
|
|
@@ -0,0 +1,93 @@
|
|
|
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 IntegrationEventLearner
|
|
20
|
+
*/
|
|
21
|
+
export interface IntegrationEventLearner {
|
|
22
|
+
/**
|
|
23
|
+
* Stable external learner ID.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof IntegrationEventLearner
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof IntegrationEventLearner
|
|
32
|
+
*/
|
|
33
|
+
email: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof IntegrationEventLearner
|
|
38
|
+
*/
|
|
39
|
+
firstName: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof IntegrationEventLearner
|
|
44
|
+
*/
|
|
45
|
+
lastName: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the IntegrationEventLearner interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfIntegrationEventLearner(value: object): value is IntegrationEventLearner {
|
|
52
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
53
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
54
|
+
if (!('firstName' in value) || value['firstName'] === undefined) return false;
|
|
55
|
+
if (!('lastName' in value) || value['lastName'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function IntegrationEventLearnerFromJSON(json: any): IntegrationEventLearner {
|
|
60
|
+
return IntegrationEventLearnerFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function IntegrationEventLearnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationEventLearner {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'id': json['id'],
|
|
70
|
+
'email': json['email'],
|
|
71
|
+
'firstName': json['first_name'],
|
|
72
|
+
'lastName': json['last_name'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function IntegrationEventLearnerToJSON(json: any): IntegrationEventLearner {
|
|
77
|
+
return IntegrationEventLearnerToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function IntegrationEventLearnerToJSONTyped(value?: IntegrationEventLearner | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'id': value['id'],
|
|
88
|
+
'email': value['email'],
|
|
89
|
+
'first_name': value['firstName'],
|
|
90
|
+
'last_name': value['lastName'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
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 IntegrationEventPortal
|
|
20
|
+
*/
|
|
21
|
+
export interface IntegrationEventPortal {
|
|
22
|
+
/**
|
|
23
|
+
* Stable external portal ID.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof IntegrationEventPortal
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof IntegrationEventPortal
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof IntegrationEventPortal
|
|
38
|
+
*/
|
|
39
|
+
subdomain: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the IntegrationEventPortal interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfIntegrationEventPortal(value: object): value is IntegrationEventPortal {
|
|
46
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
47
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
48
|
+
if (!('subdomain' in value) || value['subdomain'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function IntegrationEventPortalFromJSON(json: any): IntegrationEventPortal {
|
|
53
|
+
return IntegrationEventPortalFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function IntegrationEventPortalFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationEventPortal {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'id': json['id'],
|
|
63
|
+
'name': json['name'],
|
|
64
|
+
'subdomain': json['subdomain'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function IntegrationEventPortalToJSON(json: any): IntegrationEventPortal {
|
|
69
|
+
return IntegrationEventPortalToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function IntegrationEventPortalToJSONTyped(value?: IntegrationEventPortal | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'id': value['id'],
|
|
80
|
+
'name': value['name'],
|
|
81
|
+
'subdomain': value['subdomain'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -0,0 +1,93 @@
|
|
|
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
|
+
* User affected by a portal membership lifecycle event.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface IntegrationEventUser
|
|
20
|
+
*/
|
|
21
|
+
export interface IntegrationEventUser {
|
|
22
|
+
/**
|
|
23
|
+
* Stable external user ID.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof IntegrationEventUser
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof IntegrationEventUser
|
|
32
|
+
*/
|
|
33
|
+
email: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof IntegrationEventUser
|
|
38
|
+
*/
|
|
39
|
+
firstName: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof IntegrationEventUser
|
|
44
|
+
*/
|
|
45
|
+
lastName: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the IntegrationEventUser interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfIntegrationEventUser(value: object): value is IntegrationEventUser {
|
|
52
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
53
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
54
|
+
if (!('firstName' in value) || value['firstName'] === undefined) return false;
|
|
55
|
+
if (!('lastName' in value) || value['lastName'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function IntegrationEventUserFromJSON(json: any): IntegrationEventUser {
|
|
60
|
+
return IntegrationEventUserFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function IntegrationEventUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationEventUser {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'id': json['id'],
|
|
70
|
+
'email': json['email'],
|
|
71
|
+
'firstName': json['first_name'],
|
|
72
|
+
'lastName': json['last_name'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function IntegrationEventUserToJSON(json: any): IntegrationEventUser {
|
|
77
|
+
return IntegrationEventUserToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function IntegrationEventUserToJSONTyped(value?: IntegrationEventUser | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'id': value['id'],
|
|
88
|
+
'email': value['email'],
|
|
89
|
+
'first_name': value['firstName'],
|
|
90
|
+
'last_name': value['lastName'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
@@ -0,0 +1,115 @@
|
|
|
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 PostCustomWebhookIntegration
|
|
20
|
+
*/
|
|
21
|
+
export interface PostCustomWebhookIntegration {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PostCustomWebhookIntegration
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
* Public HTTPS endpoint that receives CloudEvents JSON payloads.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PostCustomWebhookIntegration
|
|
32
|
+
*/
|
|
33
|
+
targetUrl: string;
|
|
34
|
+
/**
|
|
35
|
+
* Secret sent in the Authorization header as a Bearer token.
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof PostCustomWebhookIntegration
|
|
38
|
+
*/
|
|
39
|
+
bearerToken: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Set<PostCustomWebhookIntegrationEventTypesEnum>}
|
|
43
|
+
* @memberof PostCustomWebhookIntegration
|
|
44
|
+
*/
|
|
45
|
+
eventTypes: Set<PostCustomWebhookIntegrationEventTypesEnum>;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {boolean}
|
|
49
|
+
* @memberof PostCustomWebhookIntegration
|
|
50
|
+
*/
|
|
51
|
+
enabled?: boolean;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export const PostCustomWebhookIntegrationEventTypesEnum = {
|
|
59
|
+
ComEdaxuEnrollmentEnrolledV1: 'com.edaxu.enrollment.enrolled.v1',
|
|
60
|
+
ComEdaxuEnrollmentCompletedV1: 'com.edaxu.enrollment.completed.v1',
|
|
61
|
+
ComEdaxuCertificateIssuedV1: 'com.edaxu.certificate.issued.v1',
|
|
62
|
+
ComEdaxuPortalUserInvitedV1: 'com.edaxu.portal.user_invited.v1',
|
|
63
|
+
ComEdaxuPortalUserJoinedV1: 'com.edaxu.portal.user_joined.v1'
|
|
64
|
+
} as const;
|
|
65
|
+
export type PostCustomWebhookIntegrationEventTypesEnum = typeof PostCustomWebhookIntegrationEventTypesEnum[keyof typeof PostCustomWebhookIntegrationEventTypesEnum];
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Check if a given object implements the PostCustomWebhookIntegration interface.
|
|
70
|
+
*/
|
|
71
|
+
export function instanceOfPostCustomWebhookIntegration(value: object): value is PostCustomWebhookIntegration {
|
|
72
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
73
|
+
if (!('targetUrl' in value) || value['targetUrl'] === undefined) return false;
|
|
74
|
+
if (!('bearerToken' in value) || value['bearerToken'] === undefined) return false;
|
|
75
|
+
if (!('eventTypes' in value) || value['eventTypes'] === undefined) return false;
|
|
76
|
+
return true;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PostCustomWebhookIntegrationFromJSON(json: any): PostCustomWebhookIntegration {
|
|
80
|
+
return PostCustomWebhookIntegrationFromJSONTyped(json, false);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function PostCustomWebhookIntegrationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostCustomWebhookIntegration {
|
|
84
|
+
if (json == null) {
|
|
85
|
+
return json;
|
|
86
|
+
}
|
|
87
|
+
return {
|
|
88
|
+
|
|
89
|
+
'name': json['name'],
|
|
90
|
+
'targetUrl': json['target_url'],
|
|
91
|
+
'bearerToken': json['bearer_token'],
|
|
92
|
+
'eventTypes': new Set(json['event_types']),
|
|
93
|
+
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function PostCustomWebhookIntegrationToJSON(json: any): PostCustomWebhookIntegration {
|
|
98
|
+
return PostCustomWebhookIntegrationToJSONTyped(json, false);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function PostCustomWebhookIntegrationToJSONTyped(value?: PostCustomWebhookIntegration | null, ignoreDiscriminator: boolean = false): any {
|
|
102
|
+
if (value == null) {
|
|
103
|
+
return value;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
return {
|
|
107
|
+
|
|
108
|
+
'name': value['name'],
|
|
109
|
+
'target_url': value['targetUrl'],
|
|
110
|
+
'bearer_token': value['bearerToken'],
|
|
111
|
+
'event_types': Array.from(value['eventTypes'] as Set<any>),
|
|
112
|
+
'enabled': value['enabled'],
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
|