@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,59 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const PostZapierSubscriptionEventTypeEnum = {
|
|
18
|
+
ComEdaxuEnrollmentEnrolledV1: 'com.edaxu.enrollment.enrolled.v1',
|
|
19
|
+
ComEdaxuEnrollmentCompletedV1: 'com.edaxu.enrollment.completed.v1',
|
|
20
|
+
ComEdaxuCertificateIssuedV1: 'com.edaxu.certificate.issued.v1',
|
|
21
|
+
ComEdaxuPortalUserInvitedV1: 'com.edaxu.portal.user_invited.v1',
|
|
22
|
+
ComEdaxuPortalUserJoinedV1: 'com.edaxu.portal.user_joined.v1'
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the PostZapierSubscription interface.
|
|
26
|
+
*/
|
|
27
|
+
export function instanceOfPostZapierSubscription(value) {
|
|
28
|
+
if (!('eventType' in value) || value['eventType'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('targetUrl' in value) || value['targetUrl'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
export function PostZapierSubscriptionFromJSON(json) {
|
|
35
|
+
return PostZapierSubscriptionFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function PostZapierSubscriptionFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'eventType': json['event_type'],
|
|
43
|
+
'targetUrl': json['target_url'],
|
|
44
|
+
'zapId': json['zap_id'] == null ? undefined : json['zap_id'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
export function PostZapierSubscriptionToJSON(json) {
|
|
48
|
+
return PostZapierSubscriptionToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
export function PostZapierSubscriptionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'event_type': value['eventType'],
|
|
56
|
+
'target_url': value['targetUrl'],
|
|
57
|
+
'zap_id': value['zapId'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PutCustomWebhookIntegration
|
|
16
|
+
*/
|
|
17
|
+
export interface PutCustomWebhookIntegration {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PutCustomWebhookIntegration
|
|
22
|
+
*/
|
|
23
|
+
name?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Public HTTPS endpoint that receives CloudEvents JSON payloads.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PutCustomWebhookIntegration
|
|
28
|
+
*/
|
|
29
|
+
targetUrl?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Replacement secret sent in the Authorization header as a Bearer token. Omit to keep the current token.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PutCustomWebhookIntegration
|
|
34
|
+
*/
|
|
35
|
+
bearerToken?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Set<PutCustomWebhookIntegrationEventTypesEnum>}
|
|
39
|
+
* @memberof PutCustomWebhookIntegration
|
|
40
|
+
*/
|
|
41
|
+
eventTypes?: Set<PutCustomWebhookIntegrationEventTypesEnum>;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof PutCustomWebhookIntegration
|
|
46
|
+
*/
|
|
47
|
+
enabled?: boolean;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export declare const PutCustomWebhookIntegrationEventTypesEnum: {
|
|
53
|
+
readonly ComEdaxuEnrollmentEnrolledV1: "com.edaxu.enrollment.enrolled.v1";
|
|
54
|
+
readonly ComEdaxuEnrollmentCompletedV1: "com.edaxu.enrollment.completed.v1";
|
|
55
|
+
readonly ComEdaxuCertificateIssuedV1: "com.edaxu.certificate.issued.v1";
|
|
56
|
+
readonly ComEdaxuPortalUserInvitedV1: "com.edaxu.portal.user_invited.v1";
|
|
57
|
+
readonly ComEdaxuPortalUserJoinedV1: "com.edaxu.portal.user_joined.v1";
|
|
58
|
+
};
|
|
59
|
+
export type PutCustomWebhookIntegrationEventTypesEnum = typeof PutCustomWebhookIntegrationEventTypesEnum[keyof typeof PutCustomWebhookIntegrationEventTypesEnum];
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the PutCustomWebhookIntegration interface.
|
|
62
|
+
*/
|
|
63
|
+
export declare function instanceOfPutCustomWebhookIntegration(value: object): value is PutCustomWebhookIntegration;
|
|
64
|
+
export declare function PutCustomWebhookIntegrationFromJSON(json: any): PutCustomWebhookIntegration;
|
|
65
|
+
export declare function PutCustomWebhookIntegrationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutCustomWebhookIntegration;
|
|
66
|
+
export declare function PutCustomWebhookIntegrationToJSON(json: any): PutCustomWebhookIntegration;
|
|
67
|
+
export declare function PutCustomWebhookIntegrationToJSONTyped(value?: PutCustomWebhookIntegration | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const PutCustomWebhookIntegrationEventTypesEnum = {
|
|
18
|
+
ComEdaxuEnrollmentEnrolledV1: 'com.edaxu.enrollment.enrolled.v1',
|
|
19
|
+
ComEdaxuEnrollmentCompletedV1: 'com.edaxu.enrollment.completed.v1',
|
|
20
|
+
ComEdaxuCertificateIssuedV1: 'com.edaxu.certificate.issued.v1',
|
|
21
|
+
ComEdaxuPortalUserInvitedV1: 'com.edaxu.portal.user_invited.v1',
|
|
22
|
+
ComEdaxuPortalUserJoinedV1: 'com.edaxu.portal.user_joined.v1'
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the PutCustomWebhookIntegration interface.
|
|
26
|
+
*/
|
|
27
|
+
export function instanceOfPutCustomWebhookIntegration(value) {
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
export function PutCustomWebhookIntegrationFromJSON(json) {
|
|
31
|
+
return PutCustomWebhookIntegrationFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
export function PutCustomWebhookIntegrationFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
39
|
+
'targetUrl': json['target_url'] == null ? undefined : json['target_url'],
|
|
40
|
+
'bearerToken': json['bearer_token'] == null ? undefined : json['bearer_token'],
|
|
41
|
+
'eventTypes': json['event_types'] == null ? undefined : new Set(json['event_types']),
|
|
42
|
+
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export function PutCustomWebhookIntegrationToJSON(json) {
|
|
46
|
+
return PutCustomWebhookIntegrationToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
export function PutCustomWebhookIntegrationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'name': value['name'],
|
|
54
|
+
'target_url': value['targetUrl'],
|
|
55
|
+
'bearer_token': value['bearerToken'],
|
|
56
|
+
'event_types': value['eventTypes'] == null ? undefined : Array.from(value['eventTypes']),
|
|
57
|
+
'enabled': value['enabled'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ZapierSubscription
|
|
16
|
+
*/
|
|
17
|
+
export interface ZapierSubscription {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ZapierSubscription
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {ZapierSubscriptionEventTypeEnum}
|
|
27
|
+
* @memberof ZapierSubscription
|
|
28
|
+
*/
|
|
29
|
+
eventType: ZapierSubscriptionEventTypeEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Date}
|
|
33
|
+
* @memberof ZapierSubscription
|
|
34
|
+
*/
|
|
35
|
+
createdAt: Date;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const ZapierSubscriptionEventTypeEnum: {
|
|
41
|
+
readonly ComEdaxuEnrollmentEnrolledV1: "com.edaxu.enrollment.enrolled.v1";
|
|
42
|
+
readonly ComEdaxuEnrollmentCompletedV1: "com.edaxu.enrollment.completed.v1";
|
|
43
|
+
readonly ComEdaxuCertificateIssuedV1: "com.edaxu.certificate.issued.v1";
|
|
44
|
+
readonly ComEdaxuPortalUserInvitedV1: "com.edaxu.portal.user_invited.v1";
|
|
45
|
+
readonly ComEdaxuPortalUserJoinedV1: "com.edaxu.portal.user_joined.v1";
|
|
46
|
+
};
|
|
47
|
+
export type ZapierSubscriptionEventTypeEnum = typeof ZapierSubscriptionEventTypeEnum[keyof typeof ZapierSubscriptionEventTypeEnum];
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the ZapierSubscription interface.
|
|
50
|
+
*/
|
|
51
|
+
export declare function instanceOfZapierSubscription(value: object): value is ZapierSubscription;
|
|
52
|
+
export declare function ZapierSubscriptionFromJSON(json: any): ZapierSubscription;
|
|
53
|
+
export declare function ZapierSubscriptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ZapierSubscription;
|
|
54
|
+
export declare function ZapierSubscriptionToJSON(json: any): ZapierSubscription;
|
|
55
|
+
export declare function ZapierSubscriptionToJSONTyped(value?: ZapierSubscription | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const ZapierSubscriptionEventTypeEnum = {
|
|
18
|
+
ComEdaxuEnrollmentEnrolledV1: 'com.edaxu.enrollment.enrolled.v1',
|
|
19
|
+
ComEdaxuEnrollmentCompletedV1: 'com.edaxu.enrollment.completed.v1',
|
|
20
|
+
ComEdaxuCertificateIssuedV1: 'com.edaxu.certificate.issued.v1',
|
|
21
|
+
ComEdaxuPortalUserInvitedV1: 'com.edaxu.portal.user_invited.v1',
|
|
22
|
+
ComEdaxuPortalUserJoinedV1: 'com.edaxu.portal.user_joined.v1'
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the ZapierSubscription interface.
|
|
26
|
+
*/
|
|
27
|
+
export function instanceOfZapierSubscription(value) {
|
|
28
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('eventType' in value) || value['eventType'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
export function ZapierSubscriptionFromJSON(json) {
|
|
37
|
+
return ZapierSubscriptionFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function ZapierSubscriptionFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'id': json['id'],
|
|
45
|
+
'eventType': json['event_type'],
|
|
46
|
+
'createdAt': (new Date(json['created_at'])),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export function ZapierSubscriptionToJSON(json) {
|
|
50
|
+
return ZapierSubscriptionToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
export function ZapierSubscriptionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'id': value['id'],
|
|
58
|
+
'event_type': value['eventType'],
|
|
59
|
+
'created_at': value['createdAt'].toISOString(),
|
|
60
|
+
};
|
|
61
|
+
}
|
|
@@ -40,6 +40,7 @@ export * from './CourseCatalog';
|
|
|
40
40
|
export * from './CourseProgressionMode';
|
|
41
41
|
export * from './CourseShare';
|
|
42
42
|
export * from './CourseShareAcceptError';
|
|
43
|
+
export * from './CustomWebhookIntegration';
|
|
43
44
|
export * from './EffectiveCertificateConfig';
|
|
44
45
|
export * from './EmailTemplateDefinition';
|
|
45
46
|
export * from './EmailTemplateScope';
|
|
@@ -164,6 +165,15 @@ export * from './GetZapierMe';
|
|
|
164
165
|
export * from './GetZapierSetup';
|
|
165
166
|
export * from './GetZapierShopifyCourseMappings';
|
|
166
167
|
export * from './GetZapierUsers';
|
|
168
|
+
export * from './IntegrationEvent';
|
|
169
|
+
export * from './IntegrationEventCertificate';
|
|
170
|
+
export * from './IntegrationEventCourse';
|
|
171
|
+
export * from './IntegrationEventData';
|
|
172
|
+
export * from './IntegrationEventEnrollment';
|
|
173
|
+
export * from './IntegrationEventInvitation';
|
|
174
|
+
export * from './IntegrationEventLearner';
|
|
175
|
+
export * from './IntegrationEventPortal';
|
|
176
|
+
export * from './IntegrationEventUser';
|
|
167
177
|
export * from './LearnerExperienceVersion';
|
|
168
178
|
export * from './LibraryQuizCriteriaPreviewQuestion';
|
|
169
179
|
export * from './LibraryQuizCriterion';
|
|
@@ -215,6 +225,7 @@ export * from './PostCourseVersionItemSession';
|
|
|
215
225
|
export * from './PostCourseVersionPublish';
|
|
216
226
|
export * from './PostCourseVersionSection';
|
|
217
227
|
export * from './PostCourseVersionSectionDuplicate';
|
|
228
|
+
export * from './PostCustomWebhookIntegration';
|
|
218
229
|
export * from './PostDuplicate';
|
|
219
230
|
export * from './PostEmailAssetComplete';
|
|
220
231
|
export * from './PostEmailAssetUpload';
|
|
@@ -261,6 +272,7 @@ export * from './PostZapierSetupResponse';
|
|
|
261
272
|
export * from './PostZapierShopifyCourseMapping';
|
|
262
273
|
export * from './PostZapierShopifyEnrollment';
|
|
263
274
|
export * from './PostZapierShopifyEnrollmentResponse';
|
|
275
|
+
export * from './PostZapierSubscription';
|
|
264
276
|
export * from './PostZapierUser';
|
|
265
277
|
export * from './ProgressionGateError';
|
|
266
278
|
export * from './ProgressionLockReason';
|
|
@@ -278,6 +290,7 @@ export * from './PutCourseVersionDraft';
|
|
|
278
290
|
export * from './PutCourseVersionItem';
|
|
279
291
|
export * from './PutCourseVersionOutlineEntryMove';
|
|
280
292
|
export * from './PutCourseVersionSection';
|
|
293
|
+
export * from './PutCustomWebhookIntegration';
|
|
281
294
|
export * from './PutEmailTemplateDraft';
|
|
282
295
|
export * from './PutLearnerExperienceDraft';
|
|
283
296
|
export * from './PutLibraryQuiz';
|
|
@@ -324,4 +337,5 @@ export * from './ZapierCourse';
|
|
|
324
337
|
export * from './ZapierEnrollment';
|
|
325
338
|
export * from './ZapierIntegration';
|
|
326
339
|
export * from './ZapierShopifyCourseMapping';
|
|
340
|
+
export * from './ZapierSubscription';
|
|
327
341
|
export * from './ZapierUser';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -42,6 +42,7 @@ export * from './CourseCatalog';
|
|
|
42
42
|
export * from './CourseProgressionMode';
|
|
43
43
|
export * from './CourseShare';
|
|
44
44
|
export * from './CourseShareAcceptError';
|
|
45
|
+
export * from './CustomWebhookIntegration';
|
|
45
46
|
export * from './EffectiveCertificateConfig';
|
|
46
47
|
export * from './EmailTemplateDefinition';
|
|
47
48
|
export * from './EmailTemplateScope';
|
|
@@ -166,6 +167,15 @@ export * from './GetZapierMe';
|
|
|
166
167
|
export * from './GetZapierSetup';
|
|
167
168
|
export * from './GetZapierShopifyCourseMappings';
|
|
168
169
|
export * from './GetZapierUsers';
|
|
170
|
+
export * from './IntegrationEvent';
|
|
171
|
+
export * from './IntegrationEventCertificate';
|
|
172
|
+
export * from './IntegrationEventCourse';
|
|
173
|
+
export * from './IntegrationEventData';
|
|
174
|
+
export * from './IntegrationEventEnrollment';
|
|
175
|
+
export * from './IntegrationEventInvitation';
|
|
176
|
+
export * from './IntegrationEventLearner';
|
|
177
|
+
export * from './IntegrationEventPortal';
|
|
178
|
+
export * from './IntegrationEventUser';
|
|
169
179
|
export * from './LearnerExperienceVersion';
|
|
170
180
|
export * from './LibraryQuizCriteriaPreviewQuestion';
|
|
171
181
|
export * from './LibraryQuizCriterion';
|
|
@@ -217,6 +227,7 @@ export * from './PostCourseVersionItemSession';
|
|
|
217
227
|
export * from './PostCourseVersionPublish';
|
|
218
228
|
export * from './PostCourseVersionSection';
|
|
219
229
|
export * from './PostCourseVersionSectionDuplicate';
|
|
230
|
+
export * from './PostCustomWebhookIntegration';
|
|
220
231
|
export * from './PostDuplicate';
|
|
221
232
|
export * from './PostEmailAssetComplete';
|
|
222
233
|
export * from './PostEmailAssetUpload';
|
|
@@ -263,6 +274,7 @@ export * from './PostZapierSetupResponse';
|
|
|
263
274
|
export * from './PostZapierShopifyCourseMapping';
|
|
264
275
|
export * from './PostZapierShopifyEnrollment';
|
|
265
276
|
export * from './PostZapierShopifyEnrollmentResponse';
|
|
277
|
+
export * from './PostZapierSubscription';
|
|
266
278
|
export * from './PostZapierUser';
|
|
267
279
|
export * from './ProgressionGateError';
|
|
268
280
|
export * from './ProgressionLockReason';
|
|
@@ -280,6 +292,7 @@ export * from './PutCourseVersionDraft';
|
|
|
280
292
|
export * from './PutCourseVersionItem';
|
|
281
293
|
export * from './PutCourseVersionOutlineEntryMove';
|
|
282
294
|
export * from './PutCourseVersionSection';
|
|
295
|
+
export * from './PutCustomWebhookIntegration';
|
|
283
296
|
export * from './PutEmailTemplateDraft';
|
|
284
297
|
export * from './PutLearnerExperienceDraft';
|
|
285
298
|
export * from './PutLibraryQuiz';
|
|
@@ -326,4 +339,5 @@ export * from './ZapierCourse';
|
|
|
326
339
|
export * from './ZapierEnrollment';
|
|
327
340
|
export * from './ZapierIntegration';
|
|
328
341
|
export * from './ZapierShopifyCourseMapping';
|
|
342
|
+
export * from './ZapierSubscription';
|
|
329
343
|
export * from './ZapierUser';
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CustomWebhookIntegration
|
|
16
|
+
*/
|
|
17
|
+
export interface CustomWebhookIntegration {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CustomWebhookIntegration
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CustomWebhookIntegration
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CustomWebhookIntegration
|
|
34
|
+
*/
|
|
35
|
+
targetUrl: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Set<CustomWebhookIntegrationEventTypesEnum>}
|
|
39
|
+
* @memberof CustomWebhookIntegration
|
|
40
|
+
*/
|
|
41
|
+
eventTypes: Set<CustomWebhookIntegrationEventTypesEnum>;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof CustomWebhookIntegration
|
|
46
|
+
*/
|
|
47
|
+
enabled: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* True when an encrypted bearer token is configured. The token is never returned.
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof CustomWebhookIntegration
|
|
52
|
+
*/
|
|
53
|
+
tokenConfigured: boolean;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Date}
|
|
57
|
+
* @memberof CustomWebhookIntegration
|
|
58
|
+
*/
|
|
59
|
+
createdAt: Date;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {Date}
|
|
63
|
+
* @memberof CustomWebhookIntegration
|
|
64
|
+
*/
|
|
65
|
+
updatedAt: Date;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* @export
|
|
69
|
+
*/
|
|
70
|
+
export declare const CustomWebhookIntegrationEventTypesEnum: {
|
|
71
|
+
readonly ComEdaxuEnrollmentEnrolledV1: "com.edaxu.enrollment.enrolled.v1";
|
|
72
|
+
readonly ComEdaxuEnrollmentCompletedV1: "com.edaxu.enrollment.completed.v1";
|
|
73
|
+
readonly ComEdaxuCertificateIssuedV1: "com.edaxu.certificate.issued.v1";
|
|
74
|
+
readonly ComEdaxuPortalUserInvitedV1: "com.edaxu.portal.user_invited.v1";
|
|
75
|
+
readonly ComEdaxuPortalUserJoinedV1: "com.edaxu.portal.user_joined.v1";
|
|
76
|
+
};
|
|
77
|
+
export type CustomWebhookIntegrationEventTypesEnum = typeof CustomWebhookIntegrationEventTypesEnum[keyof typeof CustomWebhookIntegrationEventTypesEnum];
|
|
78
|
+
/**
|
|
79
|
+
* Check if a given object implements the CustomWebhookIntegration interface.
|
|
80
|
+
*/
|
|
81
|
+
export declare function instanceOfCustomWebhookIntegration(value: object): value is CustomWebhookIntegration;
|
|
82
|
+
export declare function CustomWebhookIntegrationFromJSON(json: any): CustomWebhookIntegration;
|
|
83
|
+
export declare function CustomWebhookIntegrationFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomWebhookIntegration;
|
|
84
|
+
export declare function CustomWebhookIntegrationToJSON(json: any): CustomWebhookIntegration;
|
|
85
|
+
export declare function CustomWebhookIntegrationToJSONTyped(value?: CustomWebhookIntegration | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CustomWebhookIntegrationEventTypesEnum = void 0;
|
|
17
|
+
exports.instanceOfCustomWebhookIntegration = instanceOfCustomWebhookIntegration;
|
|
18
|
+
exports.CustomWebhookIntegrationFromJSON = CustomWebhookIntegrationFromJSON;
|
|
19
|
+
exports.CustomWebhookIntegrationFromJSONTyped = CustomWebhookIntegrationFromJSONTyped;
|
|
20
|
+
exports.CustomWebhookIntegrationToJSON = CustomWebhookIntegrationToJSON;
|
|
21
|
+
exports.CustomWebhookIntegrationToJSONTyped = CustomWebhookIntegrationToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.CustomWebhookIntegrationEventTypesEnum = {
|
|
26
|
+
ComEdaxuEnrollmentEnrolledV1: 'com.edaxu.enrollment.enrolled.v1',
|
|
27
|
+
ComEdaxuEnrollmentCompletedV1: 'com.edaxu.enrollment.completed.v1',
|
|
28
|
+
ComEdaxuCertificateIssuedV1: 'com.edaxu.certificate.issued.v1',
|
|
29
|
+
ComEdaxuPortalUserInvitedV1: 'com.edaxu.portal.user_invited.v1',
|
|
30
|
+
ComEdaxuPortalUserJoinedV1: 'com.edaxu.portal.user_joined.v1'
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the CustomWebhookIntegration interface.
|
|
34
|
+
*/
|
|
35
|
+
function instanceOfCustomWebhookIntegration(value) {
|
|
36
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('targetUrl' in value) || value['targetUrl'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('eventTypes' in value) || value['eventTypes'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('enabled' in value) || value['enabled'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('tokenConfigured' in value) || value['tokenConfigured'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
function CustomWebhookIntegrationFromJSON(json) {
|
|
55
|
+
return CustomWebhookIntegrationFromJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
function CustomWebhookIntegrationFromJSONTyped(json, ignoreDiscriminator) {
|
|
58
|
+
if (json == null) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'id': json['id'],
|
|
63
|
+
'name': json['name'],
|
|
64
|
+
'targetUrl': json['target_url'],
|
|
65
|
+
'eventTypes': new Set(json['event_types']),
|
|
66
|
+
'enabled': json['enabled'],
|
|
67
|
+
'tokenConfigured': json['token_configured'],
|
|
68
|
+
'createdAt': (new Date(json['created_at'])),
|
|
69
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
function CustomWebhookIntegrationToJSON(json) {
|
|
73
|
+
return CustomWebhookIntegrationToJSONTyped(json, false);
|
|
74
|
+
}
|
|
75
|
+
function CustomWebhookIntegrationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
76
|
+
if (value == null) {
|
|
77
|
+
return value;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
'id': value['id'],
|
|
81
|
+
'name': value['name'],
|
|
82
|
+
'target_url': value['targetUrl'],
|
|
83
|
+
'event_types': Array.from(value['eventTypes']),
|
|
84
|
+
'enabled': value['enabled'],
|
|
85
|
+
'token_configured': value['tokenConfigured'],
|
|
86
|
+
'created_at': value['createdAt'].toISOString(),
|
|
87
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { IntegrationEventData } from './IntegrationEventData';
|
|
13
|
+
/**
|
|
14
|
+
* A CloudEvents 1.0 structured JSON event emitted by Edaxu.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface IntegrationEvent
|
|
17
|
+
*/
|
|
18
|
+
export interface IntegrationEvent {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {IntegrationEventSpecversionEnum}
|
|
22
|
+
* @memberof IntegrationEvent
|
|
23
|
+
*/
|
|
24
|
+
specversion: IntegrationEventSpecversionEnum;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof IntegrationEvent
|
|
29
|
+
*/
|
|
30
|
+
id: string;
|
|
31
|
+
/**
|
|
32
|
+
* Stable URI identifying the portal event source.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof IntegrationEvent
|
|
35
|
+
*/
|
|
36
|
+
source: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {IntegrationEventTypeEnum}
|
|
40
|
+
* @memberof IntegrationEvent
|
|
41
|
+
*/
|
|
42
|
+
type: IntegrationEventTypeEnum;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Date}
|
|
46
|
+
* @memberof IntegrationEvent
|
|
47
|
+
*/
|
|
48
|
+
time: Date;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof IntegrationEvent
|
|
53
|
+
*/
|
|
54
|
+
subject: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {IntegrationEventDatacontenttypeEnum}
|
|
58
|
+
* @memberof IntegrationEvent
|
|
59
|
+
*/
|
|
60
|
+
datacontenttype: IntegrationEventDatacontenttypeEnum;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {IntegrationEventData}
|
|
64
|
+
* @memberof IntegrationEvent
|
|
65
|
+
*/
|
|
66
|
+
data: IntegrationEventData;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* @export
|
|
70
|
+
*/
|
|
71
|
+
export declare const IntegrationEventSpecversionEnum: {
|
|
72
|
+
readonly _10: "1.0";
|
|
73
|
+
};
|
|
74
|
+
export type IntegrationEventSpecversionEnum = typeof IntegrationEventSpecversionEnum[keyof typeof IntegrationEventSpecversionEnum];
|
|
75
|
+
/**
|
|
76
|
+
* @export
|
|
77
|
+
*/
|
|
78
|
+
export declare const IntegrationEventTypeEnum: {
|
|
79
|
+
readonly ComEdaxuEnrollmentEnrolledV1: "com.edaxu.enrollment.enrolled.v1";
|
|
80
|
+
readonly ComEdaxuEnrollmentCompletedV1: "com.edaxu.enrollment.completed.v1";
|
|
81
|
+
readonly ComEdaxuCertificateIssuedV1: "com.edaxu.certificate.issued.v1";
|
|
82
|
+
readonly ComEdaxuPortalUserInvitedV1: "com.edaxu.portal.user_invited.v1";
|
|
83
|
+
readonly ComEdaxuPortalUserJoinedV1: "com.edaxu.portal.user_joined.v1";
|
|
84
|
+
};
|
|
85
|
+
export type IntegrationEventTypeEnum = typeof IntegrationEventTypeEnum[keyof typeof IntegrationEventTypeEnum];
|
|
86
|
+
/**
|
|
87
|
+
* @export
|
|
88
|
+
*/
|
|
89
|
+
export declare const IntegrationEventDatacontenttypeEnum: {
|
|
90
|
+
readonly ApplicationJson: "application/json";
|
|
91
|
+
};
|
|
92
|
+
export type IntegrationEventDatacontenttypeEnum = typeof IntegrationEventDatacontenttypeEnum[keyof typeof IntegrationEventDatacontenttypeEnum];
|
|
93
|
+
/**
|
|
94
|
+
* Check if a given object implements the IntegrationEvent interface.
|
|
95
|
+
*/
|
|
96
|
+
export declare function instanceOfIntegrationEvent(value: object): value is IntegrationEvent;
|
|
97
|
+
export declare function IntegrationEventFromJSON(json: any): IntegrationEvent;
|
|
98
|
+
export declare function IntegrationEventFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationEvent;
|
|
99
|
+
export declare function IntegrationEventToJSON(json: any): IntegrationEvent;
|
|
100
|
+
export declare function IntegrationEventToJSONTyped(value?: IntegrationEvent | null, ignoreDiscriminator?: boolean): any;
|