@easyedu/js-lsm-api 1.115.0 → 1.117.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +48 -0
- package/README.md +40 -2
- package/dist/apis/IntegrationApi.d.ts +257 -0
- package/dist/apis/IntegrationApi.js +708 -1
- package/dist/esm/apis/IntegrationApi.d.ts +257 -0
- package/dist/esm/apis/IntegrationApi.js +707 -0
- package/dist/esm/models/CustomWebhookIntegration.d.ts +83 -0
- package/dist/esm/models/CustomWebhookIntegration.js +79 -0
- package/dist/esm/models/GetZapierCourses.d.ts +51 -0
- package/dist/esm/models/GetZapierCourses.js +56 -0
- package/dist/esm/models/GetZapierShopifyCourseMappings.d.ts +33 -0
- package/dist/esm/models/GetZapierShopifyCourseMappings.js +44 -0
- package/dist/esm/models/GetZapierUsers.d.ts +33 -0
- package/dist/esm/models/GetZapierUsers.js +44 -0
- package/dist/esm/models/IntegrationEvent.d.ts +98 -0
- package/dist/esm/models/IntegrationEvent.js +92 -0
- package/dist/esm/models/IntegrationEventCertificate.d.ts +78 -0
- package/dist/esm/models/IntegrationEventCertificate.js +76 -0
- package/dist/esm/models/IntegrationEventCourse.d.ts +38 -0
- package/dist/esm/models/IntegrationEventCourse.js +47 -0
- package/dist/esm/models/IntegrationEventData.d.ts +61 -0
- package/dist/esm/models/IntegrationEventData.js +64 -0
- package/dist/esm/models/IntegrationEventEnrollment.d.ts +71 -0
- package/dist/esm/models/IntegrationEventEnrollment.js +71 -0
- package/dist/esm/models/IntegrationEventLearner.d.ts +50 -0
- package/dist/esm/models/IntegrationEventLearner.js +55 -0
- package/dist/esm/models/IntegrationEventPortal.d.ts +44 -0
- package/dist/esm/models/IntegrationEventPortal.js +51 -0
- package/dist/esm/models/PostCustomWebhookIntegration.d.ts +65 -0
- package/dist/esm/models/PostCustomWebhookIntegration.js +65 -0
- package/dist/esm/models/PostZapierEnrollment.d.ts +76 -0
- package/dist/esm/models/PostZapierEnrollment.js +64 -0
- package/dist/esm/models/PostZapierShopifyCourseMapping.d.ts +50 -0
- package/dist/esm/models/PostZapierShopifyCourseMapping.js +53 -0
- package/dist/esm/models/PostZapierShopifyEnrollment.d.ts +100 -0
- package/dist/esm/models/PostZapierShopifyEnrollment.js +82 -0
- package/dist/esm/models/PostZapierShopifyEnrollmentResponse.d.ts +47 -0
- package/dist/esm/models/PostZapierShopifyEnrollmentResponse.js +54 -0
- package/dist/esm/models/PostZapierSubscription.d.ts +53 -0
- package/dist/esm/models/PostZapierSubscription.js +57 -0
- package/dist/esm/models/PostZapierUser.d.ts +44 -0
- package/dist/esm/models/PostZapierUser.js +51 -0
- package/dist/esm/models/PutCustomWebhookIntegration.d.ts +65 -0
- package/dist/esm/models/PutCustomWebhookIntegration.js +57 -0
- package/dist/esm/models/ZapierCourse.d.ts +50 -0
- package/dist/esm/models/ZapierCourse.js +55 -0
- package/dist/esm/models/ZapierEnrollment.d.ts +74 -0
- package/dist/esm/models/ZapierEnrollment.js +69 -0
- package/dist/esm/models/ZapierShopifyCourseMapping.d.ts +69 -0
- package/dist/esm/models/ZapierShopifyCourseMapping.js +66 -0
- package/dist/esm/models/ZapierSubscription.d.ts +53 -0
- package/dist/esm/models/ZapierSubscription.js +59 -0
- package/dist/esm/models/ZapierUser.d.ts +56 -0
- package/dist/esm/models/ZapierUser.js +59 -0
- package/dist/esm/models/index.d.ts +24 -0
- package/dist/esm/models/index.js +24 -0
- package/dist/models/CustomWebhookIntegration.d.ts +83 -0
- package/dist/models/CustomWebhookIntegration.js +87 -0
- package/dist/models/GetZapierCourses.d.ts +51 -0
- package/dist/models/GetZapierCourses.js +63 -0
- package/dist/models/GetZapierShopifyCourseMappings.d.ts +33 -0
- package/dist/models/GetZapierShopifyCourseMappings.js +51 -0
- package/dist/models/GetZapierUsers.d.ts +33 -0
- package/dist/models/GetZapierUsers.js +51 -0
- package/dist/models/IntegrationEvent.d.ts +98 -0
- package/dist/models/IntegrationEvent.js +100 -0
- package/dist/models/IntegrationEventCertificate.d.ts +78 -0
- package/dist/models/IntegrationEventCertificate.js +84 -0
- package/dist/models/IntegrationEventCourse.d.ts +38 -0
- package/dist/models/IntegrationEventCourse.js +54 -0
- package/dist/models/IntegrationEventData.d.ts +61 -0
- package/dist/models/IntegrationEventData.js +71 -0
- package/dist/models/IntegrationEventEnrollment.d.ts +71 -0
- package/dist/models/IntegrationEventEnrollment.js +79 -0
- package/dist/models/IntegrationEventLearner.d.ts +50 -0
- package/dist/models/IntegrationEventLearner.js +62 -0
- package/dist/models/IntegrationEventPortal.d.ts +44 -0
- package/dist/models/IntegrationEventPortal.js +58 -0
- package/dist/models/PostCustomWebhookIntegration.d.ts +65 -0
- package/dist/models/PostCustomWebhookIntegration.js +73 -0
- package/dist/models/PostZapierEnrollment.d.ts +76 -0
- package/dist/models/PostZapierEnrollment.js +72 -0
- package/dist/models/PostZapierShopifyCourseMapping.d.ts +50 -0
- package/dist/models/PostZapierShopifyCourseMapping.js +60 -0
- package/dist/models/PostZapierShopifyEnrollment.d.ts +100 -0
- package/dist/models/PostZapierShopifyEnrollment.js +90 -0
- package/dist/models/PostZapierShopifyEnrollmentResponse.d.ts +47 -0
- package/dist/models/PostZapierShopifyEnrollmentResponse.js +61 -0
- package/dist/models/PostZapierSubscription.d.ts +53 -0
- package/dist/models/PostZapierSubscription.js +65 -0
- package/dist/models/PostZapierUser.d.ts +44 -0
- package/dist/models/PostZapierUser.js +58 -0
- package/dist/models/PutCustomWebhookIntegration.d.ts +65 -0
- package/dist/models/PutCustomWebhookIntegration.js +65 -0
- package/dist/models/ZapierCourse.d.ts +50 -0
- package/dist/models/ZapierCourse.js +62 -0
- package/dist/models/ZapierEnrollment.d.ts +74 -0
- package/dist/models/ZapierEnrollment.js +76 -0
- package/dist/models/ZapierShopifyCourseMapping.d.ts +69 -0
- package/dist/models/ZapierShopifyCourseMapping.js +73 -0
- package/dist/models/ZapierSubscription.d.ts +53 -0
- package/dist/models/ZapierSubscription.js +67 -0
- package/dist/models/ZapierUser.d.ts +56 -0
- package/dist/models/ZapierUser.js +66 -0
- package/dist/models/index.d.ts +24 -0
- package/dist/models/index.js +24 -0
- package/docs/CustomWebhookIntegration.md +48 -0
- package/docs/GetZapierCourses.md +40 -0
- package/docs/GetZapierShopifyCourseMappings.md +34 -0
- package/docs/GetZapierUsers.md +34 -0
- package/docs/IntegrationApi.md +1060 -30
- package/docs/IntegrationEvent.md +49 -0
- package/docs/IntegrationEventCertificate.md +46 -0
- package/docs/IntegrationEventCourse.md +36 -0
- package/docs/IntegrationEventData.md +42 -0
- package/docs/IntegrationEventEnrollment.md +44 -0
- package/docs/IntegrationEventLearner.md +40 -0
- package/docs/IntegrationEventPortal.md +38 -0
- package/docs/PostCustomWebhookIntegration.md +42 -0
- package/docs/PostZapierEnrollment.md +46 -0
- package/docs/PostZapierShopifyCourseMapping.md +40 -0
- package/docs/PostZapierShopifyEnrollment.md +54 -0
- package/docs/PostZapierShopifyEnrollmentResponse.md +38 -0
- package/docs/PostZapierSubscription.md +38 -0
- package/docs/PostZapierUser.md +38 -0
- package/docs/PutCustomWebhookIntegration.md +42 -0
- package/docs/ZapierCourse.md +40 -0
- package/docs/ZapierEnrollment.md +48 -0
- package/docs/ZapierShopifyCourseMapping.md +46 -0
- package/docs/ZapierSubscription.md +38 -0
- package/docs/ZapierUser.md +42 -0
- package/package.json +1 -1
- package/src/apis/IntegrationApi.ts +1104 -61
- package/src/models/CustomWebhookIntegration.ts +141 -0
- package/src/models/GetZapierCourses.ts +101 -0
- package/src/models/GetZapierShopifyCourseMappings.ts +74 -0
- package/src/models/GetZapierUsers.ts +74 -0
- package/src/models/IntegrationEvent.ts +165 -0
- package/src/models/IntegrationEventCertificate.ts +133 -0
- package/src/models/IntegrationEventCourse.ts +75 -0
- package/src/models/IntegrationEventData.ts +138 -0
- package/src/models/IntegrationEventEnrollment.ts +123 -0
- package/src/models/IntegrationEventLearner.ts +93 -0
- package/src/models/IntegrationEventPortal.ts +84 -0
- package/src/models/PostCustomWebhookIntegration.ts +113 -0
- package/src/models/PostZapierEnrollment.ts +126 -0
- package/src/models/PostZapierShopifyCourseMapping.ts +92 -0
- package/src/models/PostZapierShopifyEnrollment.ts +163 -0
- package/src/models/PostZapierShopifyEnrollmentResponse.ts +106 -0
- package/src/models/PostZapierSubscription.ts +95 -0
- package/src/models/PostZapierUser.ts +84 -0
- package/src/models/PutCustomWebhookIntegration.ts +109 -0
- package/src/models/ZapierCourse.ts +93 -0
- package/src/models/ZapierEnrollment.ts +128 -0
- package/src/models/ZapierShopifyCourseMapping.ts +127 -0
- package/src/models/ZapierSubscription.ts +96 -0
- package/src/models/ZapierUser.ts +102 -0
- package/src/models/index.ts +24 -0
|
@@ -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,138 @@
|
|
|
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 { IntegrationEventLearner } from './IntegrationEventLearner';
|
|
17
|
+
import {
|
|
18
|
+
IntegrationEventLearnerFromJSON,
|
|
19
|
+
IntegrationEventLearnerFromJSONTyped,
|
|
20
|
+
IntegrationEventLearnerToJSON,
|
|
21
|
+
IntegrationEventLearnerToJSONTyped,
|
|
22
|
+
} from './IntegrationEventLearner';
|
|
23
|
+
import type { IntegrationEventCertificate } from './IntegrationEventCertificate';
|
|
24
|
+
import {
|
|
25
|
+
IntegrationEventCertificateFromJSON,
|
|
26
|
+
IntegrationEventCertificateFromJSONTyped,
|
|
27
|
+
IntegrationEventCertificateToJSON,
|
|
28
|
+
IntegrationEventCertificateToJSONTyped,
|
|
29
|
+
} from './IntegrationEventCertificate';
|
|
30
|
+
import type { IntegrationEventEnrollment } from './IntegrationEventEnrollment';
|
|
31
|
+
import {
|
|
32
|
+
IntegrationEventEnrollmentFromJSON,
|
|
33
|
+
IntegrationEventEnrollmentFromJSONTyped,
|
|
34
|
+
IntegrationEventEnrollmentToJSON,
|
|
35
|
+
IntegrationEventEnrollmentToJSONTyped,
|
|
36
|
+
} from './IntegrationEventEnrollment';
|
|
37
|
+
import type { IntegrationEventPortal } from './IntegrationEventPortal';
|
|
38
|
+
import {
|
|
39
|
+
IntegrationEventPortalFromJSON,
|
|
40
|
+
IntegrationEventPortalFromJSONTyped,
|
|
41
|
+
IntegrationEventPortalToJSON,
|
|
42
|
+
IntegrationEventPortalToJSONTyped,
|
|
43
|
+
} from './IntegrationEventPortal';
|
|
44
|
+
import type { IntegrationEventCourse } from './IntegrationEventCourse';
|
|
45
|
+
import {
|
|
46
|
+
IntegrationEventCourseFromJSON,
|
|
47
|
+
IntegrationEventCourseFromJSONTyped,
|
|
48
|
+
IntegrationEventCourseToJSON,
|
|
49
|
+
IntegrationEventCourseToJSONTyped,
|
|
50
|
+
} from './IntegrationEventCourse';
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @export
|
|
55
|
+
* @interface IntegrationEventData
|
|
56
|
+
*/
|
|
57
|
+
export interface IntegrationEventData {
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {IntegrationEventPortal}
|
|
61
|
+
* @memberof IntegrationEventData
|
|
62
|
+
*/
|
|
63
|
+
portal: IntegrationEventPortal;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {IntegrationEventLearner}
|
|
67
|
+
* @memberof IntegrationEventData
|
|
68
|
+
*/
|
|
69
|
+
learner: IntegrationEventLearner;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {IntegrationEventCourse}
|
|
73
|
+
* @memberof IntegrationEventData
|
|
74
|
+
*/
|
|
75
|
+
course: IntegrationEventCourse;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {IntegrationEventEnrollment}
|
|
79
|
+
* @memberof IntegrationEventData
|
|
80
|
+
*/
|
|
81
|
+
enrollment: IntegrationEventEnrollment | null;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {IntegrationEventCertificate}
|
|
85
|
+
* @memberof IntegrationEventData
|
|
86
|
+
*/
|
|
87
|
+
certificate: IntegrationEventCertificate | null;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Check if a given object implements the IntegrationEventData interface.
|
|
92
|
+
*/
|
|
93
|
+
export function instanceOfIntegrationEventData(value: object): value is IntegrationEventData {
|
|
94
|
+
if (!('portal' in value) || value['portal'] === undefined) return false;
|
|
95
|
+
if (!('learner' in value) || value['learner'] === undefined) return false;
|
|
96
|
+
if (!('course' in value) || value['course'] === undefined) return false;
|
|
97
|
+
if (!('enrollment' in value) || value['enrollment'] === undefined) return false;
|
|
98
|
+
if (!('certificate' in value) || value['certificate'] === undefined) return false;
|
|
99
|
+
return true;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function IntegrationEventDataFromJSON(json: any): IntegrationEventData {
|
|
103
|
+
return IntegrationEventDataFromJSONTyped(json, false);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export function IntegrationEventDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationEventData {
|
|
107
|
+
if (json == null) {
|
|
108
|
+
return json;
|
|
109
|
+
}
|
|
110
|
+
return {
|
|
111
|
+
|
|
112
|
+
'portal': IntegrationEventPortalFromJSON(json['portal']),
|
|
113
|
+
'learner': IntegrationEventLearnerFromJSON(json['learner']),
|
|
114
|
+
'course': IntegrationEventCourseFromJSON(json['course']),
|
|
115
|
+
'enrollment': IntegrationEventEnrollmentFromJSON(json['enrollment']),
|
|
116
|
+
'certificate': IntegrationEventCertificateFromJSON(json['certificate']),
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export function IntegrationEventDataToJSON(json: any): IntegrationEventData {
|
|
121
|
+
return IntegrationEventDataToJSONTyped(json, false);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export function IntegrationEventDataToJSONTyped(value?: IntegrationEventData | null, ignoreDiscriminator: boolean = false): any {
|
|
125
|
+
if (value == null) {
|
|
126
|
+
return value;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
return {
|
|
130
|
+
|
|
131
|
+
'portal': IntegrationEventPortalToJSON(value['portal']),
|
|
132
|
+
'learner': IntegrationEventLearnerToJSON(value['learner']),
|
|
133
|
+
'course': IntegrationEventCourseToJSON(value['course']),
|
|
134
|
+
'enrollment': IntegrationEventEnrollmentToJSON(value['enrollment']),
|
|
135
|
+
'certificate': IntegrationEventCertificateToJSON(value['certificate']),
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
|
|
@@ -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,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,113 @@
|
|
|
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
|
+
} as const;
|
|
63
|
+
export type PostCustomWebhookIntegrationEventTypesEnum = typeof PostCustomWebhookIntegrationEventTypesEnum[keyof typeof PostCustomWebhookIntegrationEventTypesEnum];
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Check if a given object implements the PostCustomWebhookIntegration interface.
|
|
68
|
+
*/
|
|
69
|
+
export function instanceOfPostCustomWebhookIntegration(value: object): value is PostCustomWebhookIntegration {
|
|
70
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
71
|
+
if (!('targetUrl' in value) || value['targetUrl'] === undefined) return false;
|
|
72
|
+
if (!('bearerToken' in value) || value['bearerToken'] === undefined) return false;
|
|
73
|
+
if (!('eventTypes' in value) || value['eventTypes'] === undefined) return false;
|
|
74
|
+
return true;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function PostCustomWebhookIntegrationFromJSON(json: any): PostCustomWebhookIntegration {
|
|
78
|
+
return PostCustomWebhookIntegrationFromJSONTyped(json, false);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function PostCustomWebhookIntegrationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostCustomWebhookIntegration {
|
|
82
|
+
if (json == null) {
|
|
83
|
+
return json;
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'name': json['name'],
|
|
88
|
+
'targetUrl': json['target_url'],
|
|
89
|
+
'bearerToken': json['bearer_token'],
|
|
90
|
+
'eventTypes': new Set(json['event_types']),
|
|
91
|
+
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function PostCustomWebhookIntegrationToJSON(json: any): PostCustomWebhookIntegration {
|
|
96
|
+
return PostCustomWebhookIntegrationToJSONTyped(json, false);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function PostCustomWebhookIntegrationToJSONTyped(value?: PostCustomWebhookIntegration | null, ignoreDiscriminator: boolean = false): any {
|
|
100
|
+
if (value == null) {
|
|
101
|
+
return value;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
return {
|
|
105
|
+
|
|
106
|
+
'name': value['name'],
|
|
107
|
+
'target_url': value['targetUrl'],
|
|
108
|
+
'bearer_token': value['bearerToken'],
|
|
109
|
+
'event_types': Array.from(value['eventTypes'] as Set<any>),
|
|
110
|
+
'enabled': value['enabled'],
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
|