@easyedu/js-lsm-api 1.116.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 +24 -0
- package/README.md +21 -2
- package/dist/apis/IntegrationApi.d.ts +125 -0
- package/dist/apis/IntegrationApi.js +330 -1
- package/dist/esm/apis/IntegrationApi.d.ts +125 -0
- package/dist/esm/apis/IntegrationApi.js +329 -0
- package/dist/esm/models/CustomWebhookIntegration.d.ts +83 -0
- package/dist/esm/models/CustomWebhookIntegration.js +79 -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/PostZapierSubscription.d.ts +53 -0
- package/dist/esm/models/PostZapierSubscription.js +57 -0
- package/dist/esm/models/PutCustomWebhookIntegration.d.ts +65 -0
- package/dist/esm/models/PutCustomWebhookIntegration.js +57 -0
- package/dist/esm/models/ZapierSubscription.d.ts +53 -0
- package/dist/esm/models/ZapierSubscription.js +59 -0
- package/dist/esm/models/index.d.ts +12 -0
- package/dist/esm/models/index.js +12 -0
- package/dist/models/CustomWebhookIntegration.d.ts +83 -0
- package/dist/models/CustomWebhookIntegration.js +87 -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/PostZapierSubscription.d.ts +53 -0
- package/dist/models/PostZapierSubscription.js +65 -0
- package/dist/models/PutCustomWebhookIntegration.d.ts +65 -0
- package/dist/models/PutCustomWebhookIntegration.js +65 -0
- package/dist/models/ZapierSubscription.d.ts +53 -0
- package/dist/models/ZapierSubscription.js +67 -0
- package/dist/models/index.d.ts +12 -0
- package/dist/models/index.js +12 -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 +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/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 +464 -0
- package/src/models/CustomWebhookIntegration.ts +141 -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/PostZapierSubscription.ts +95 -0
- package/src/models/PutCustomWebhookIntegration.ts +109 -0
- package/src/models/ZapierSubscription.ts +96 -0
- package/src/models/index.ts +12 -0
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
* Check if a given object implements the IntegrationEventLearner interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfIntegrationEventLearner(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('firstName' in value) || value['firstName'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('lastName' in value) || value['lastName'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function IntegrationEventLearnerFromJSON(json) {
|
|
29
|
+
return IntegrationEventLearnerFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function IntegrationEventLearnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'id': json['id'],
|
|
37
|
+
'email': json['email'],
|
|
38
|
+
'firstName': json['first_name'],
|
|
39
|
+
'lastName': json['last_name'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function IntegrationEventLearnerToJSON(json) {
|
|
43
|
+
return IntegrationEventLearnerToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function IntegrationEventLearnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'id': value['id'],
|
|
51
|
+
'email': value['email'],
|
|
52
|
+
'first_name': value['firstName'],
|
|
53
|
+
'last_name': value['lastName'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 IntegrationEventPortal
|
|
16
|
+
*/
|
|
17
|
+
export interface IntegrationEventPortal {
|
|
18
|
+
/**
|
|
19
|
+
* Stable external portal ID.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof IntegrationEventPortal
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof IntegrationEventPortal
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof IntegrationEventPortal
|
|
34
|
+
*/
|
|
35
|
+
subdomain: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the IntegrationEventPortal interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfIntegrationEventPortal(value: object): value is IntegrationEventPortal;
|
|
41
|
+
export declare function IntegrationEventPortalFromJSON(json: any): IntegrationEventPortal;
|
|
42
|
+
export declare function IntegrationEventPortalFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationEventPortal;
|
|
43
|
+
export declare function IntegrationEventPortalToJSON(json: any): IntegrationEventPortal;
|
|
44
|
+
export declare function IntegrationEventPortalToJSONTyped(value?: IntegrationEventPortal | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
* Check if a given object implements the IntegrationEventPortal interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfIntegrationEventPortal(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('subdomain' in value) || value['subdomain'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function IntegrationEventPortalFromJSON(json) {
|
|
27
|
+
return IntegrationEventPortalFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function IntegrationEventPortalFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'id': json['id'],
|
|
35
|
+
'name': json['name'],
|
|
36
|
+
'subdomain': json['subdomain'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function IntegrationEventPortalToJSON(json) {
|
|
40
|
+
return IntegrationEventPortalToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function IntegrationEventPortalToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'id': value['id'],
|
|
48
|
+
'name': value['name'],
|
|
49
|
+
'subdomain': value['subdomain'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
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 PostCustomWebhookIntegration
|
|
16
|
+
*/
|
|
17
|
+
export interface PostCustomWebhookIntegration {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PostCustomWebhookIntegration
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* Public HTTPS endpoint that receives CloudEvents JSON payloads.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PostCustomWebhookIntegration
|
|
28
|
+
*/
|
|
29
|
+
targetUrl: string;
|
|
30
|
+
/**
|
|
31
|
+
* Secret sent in the Authorization header as a Bearer token.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PostCustomWebhookIntegration
|
|
34
|
+
*/
|
|
35
|
+
bearerToken: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Set<PostCustomWebhookIntegrationEventTypesEnum>}
|
|
39
|
+
* @memberof PostCustomWebhookIntegration
|
|
40
|
+
*/
|
|
41
|
+
eventTypes: Set<PostCustomWebhookIntegrationEventTypesEnum>;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof PostCustomWebhookIntegration
|
|
46
|
+
*/
|
|
47
|
+
enabled?: boolean;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export declare const PostCustomWebhookIntegrationEventTypesEnum: {
|
|
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
|
+
};
|
|
57
|
+
export type PostCustomWebhookIntegrationEventTypesEnum = typeof PostCustomWebhookIntegrationEventTypesEnum[keyof typeof PostCustomWebhookIntegrationEventTypesEnum];
|
|
58
|
+
/**
|
|
59
|
+
* Check if a given object implements the PostCustomWebhookIntegration interface.
|
|
60
|
+
*/
|
|
61
|
+
export declare function instanceOfPostCustomWebhookIntegration(value: object): value is PostCustomWebhookIntegration;
|
|
62
|
+
export declare function PostCustomWebhookIntegrationFromJSON(json: any): PostCustomWebhookIntegration;
|
|
63
|
+
export declare function PostCustomWebhookIntegrationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostCustomWebhookIntegration;
|
|
64
|
+
export declare function PostCustomWebhookIntegrationToJSON(json: any): PostCustomWebhookIntegration;
|
|
65
|
+
export declare function PostCustomWebhookIntegrationToJSONTyped(value?: PostCustomWebhookIntegration | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,65 @@
|
|
|
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 PostCustomWebhookIntegrationEventTypesEnum = {
|
|
18
|
+
ComEdaxuEnrollmentEnrolledV1: 'com.edaxu.enrollment.enrolled.v1',
|
|
19
|
+
ComEdaxuEnrollmentCompletedV1: 'com.edaxu.enrollment.completed.v1',
|
|
20
|
+
ComEdaxuCertificateIssuedV1: 'com.edaxu.certificate.issued.v1'
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the PostCustomWebhookIntegration interface.
|
|
24
|
+
*/
|
|
25
|
+
export function instanceOfPostCustomWebhookIntegration(value) {
|
|
26
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('targetUrl' in value) || value['targetUrl'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('bearerToken' in value) || value['bearerToken'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('eventTypes' in value) || value['eventTypes'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
export function PostCustomWebhookIntegrationFromJSON(json) {
|
|
37
|
+
return PostCustomWebhookIntegrationFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function PostCustomWebhookIntegrationFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'name': json['name'],
|
|
45
|
+
'targetUrl': json['target_url'],
|
|
46
|
+
'bearerToken': json['bearer_token'],
|
|
47
|
+
'eventTypes': new Set(json['event_types']),
|
|
48
|
+
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
export function PostCustomWebhookIntegrationToJSON(json) {
|
|
52
|
+
return PostCustomWebhookIntegrationToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
export function PostCustomWebhookIntegrationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'name': value['name'],
|
|
60
|
+
'target_url': value['targetUrl'],
|
|
61
|
+
'bearer_token': value['bearerToken'],
|
|
62
|
+
'event_types': Array.from(value['eventTypes']),
|
|
63
|
+
'enabled': value['enabled'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
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 PostZapierSubscription
|
|
16
|
+
*/
|
|
17
|
+
export interface PostZapierSubscription {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {PostZapierSubscriptionEventTypeEnum}
|
|
21
|
+
* @memberof PostZapierSubscription
|
|
22
|
+
*/
|
|
23
|
+
eventType: PostZapierSubscriptionEventTypeEnum;
|
|
24
|
+
/**
|
|
25
|
+
* Zapier REST Hook URL supplied as bundle.targetUrl.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PostZapierSubscription
|
|
28
|
+
*/
|
|
29
|
+
targetUrl: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PostZapierSubscription
|
|
34
|
+
*/
|
|
35
|
+
zapId?: string | null;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const PostZapierSubscriptionEventTypeEnum: {
|
|
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
|
+
};
|
|
45
|
+
export type PostZapierSubscriptionEventTypeEnum = typeof PostZapierSubscriptionEventTypeEnum[keyof typeof PostZapierSubscriptionEventTypeEnum];
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the PostZapierSubscription interface.
|
|
48
|
+
*/
|
|
49
|
+
export declare function instanceOfPostZapierSubscription(value: object): value is PostZapierSubscription;
|
|
50
|
+
export declare function PostZapierSubscriptionFromJSON(json: any): PostZapierSubscription;
|
|
51
|
+
export declare function PostZapierSubscriptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostZapierSubscription;
|
|
52
|
+
export declare function PostZapierSubscriptionToJSON(json: any): PostZapierSubscription;
|
|
53
|
+
export declare function PostZapierSubscriptionToJSONTyped(value?: PostZapierSubscription | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the PostZapierSubscription interface.
|
|
24
|
+
*/
|
|
25
|
+
export function instanceOfPostZapierSubscription(value) {
|
|
26
|
+
if (!('eventType' in value) || value['eventType'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('targetUrl' in value) || value['targetUrl'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
export function PostZapierSubscriptionFromJSON(json) {
|
|
33
|
+
return PostZapierSubscriptionFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function PostZapierSubscriptionFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'eventType': json['event_type'],
|
|
41
|
+
'targetUrl': json['target_url'],
|
|
42
|
+
'zapId': json['zap_id'] == null ? undefined : json['zap_id'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export function PostZapierSubscriptionToJSON(json) {
|
|
46
|
+
return PostZapierSubscriptionToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
export function PostZapierSubscriptionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'event_type': value['eventType'],
|
|
54
|
+
'target_url': value['targetUrl'],
|
|
55
|
+
'zap_id': value['zapId'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
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
|
+
};
|
|
57
|
+
export type PutCustomWebhookIntegrationEventTypesEnum = typeof PutCustomWebhookIntegrationEventTypesEnum[keyof typeof PutCustomWebhookIntegrationEventTypesEnum];
|
|
58
|
+
/**
|
|
59
|
+
* Check if a given object implements the PutCustomWebhookIntegration interface.
|
|
60
|
+
*/
|
|
61
|
+
export declare function instanceOfPutCustomWebhookIntegration(value: object): value is PutCustomWebhookIntegration;
|
|
62
|
+
export declare function PutCustomWebhookIntegrationFromJSON(json: any): PutCustomWebhookIntegration;
|
|
63
|
+
export declare function PutCustomWebhookIntegrationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutCustomWebhookIntegration;
|
|
64
|
+
export declare function PutCustomWebhookIntegrationToJSON(json: any): PutCustomWebhookIntegration;
|
|
65
|
+
export declare function PutCustomWebhookIntegrationToJSONTyped(value?: PutCustomWebhookIntegration | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the PutCustomWebhookIntegration interface.
|
|
24
|
+
*/
|
|
25
|
+
export function instanceOfPutCustomWebhookIntegration(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function PutCustomWebhookIntegrationFromJSON(json) {
|
|
29
|
+
return PutCustomWebhookIntegrationFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function PutCustomWebhookIntegrationFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
37
|
+
'targetUrl': json['target_url'] == null ? undefined : json['target_url'],
|
|
38
|
+
'bearerToken': json['bearer_token'] == null ? undefined : json['bearer_token'],
|
|
39
|
+
'eventTypes': json['event_types'] == null ? undefined : new Set(json['event_types']),
|
|
40
|
+
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export function PutCustomWebhookIntegrationToJSON(json) {
|
|
44
|
+
return PutCustomWebhookIntegrationToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
export function PutCustomWebhookIntegrationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'name': value['name'],
|
|
52
|
+
'target_url': value['targetUrl'],
|
|
53
|
+
'bearer_token': value['bearerToken'],
|
|
54
|
+
'event_types': value['eventTypes'] == null ? undefined : Array.from(value['eventTypes']),
|
|
55
|
+
'enabled': value['enabled'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
};
|
|
45
|
+
export type ZapierSubscriptionEventTypeEnum = typeof ZapierSubscriptionEventTypeEnum[keyof typeof ZapierSubscriptionEventTypeEnum];
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the ZapierSubscription interface.
|
|
48
|
+
*/
|
|
49
|
+
export declare function instanceOfZapierSubscription(value: object): value is ZapierSubscription;
|
|
50
|
+
export declare function ZapierSubscriptionFromJSON(json: any): ZapierSubscription;
|
|
51
|
+
export declare function ZapierSubscriptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ZapierSubscription;
|
|
52
|
+
export declare function ZapierSubscriptionToJSON(json: any): ZapierSubscription;
|
|
53
|
+
export declare function ZapierSubscriptionToJSONTyped(value?: ZapierSubscription | 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 ZapierSubscriptionEventTypeEnum = {
|
|
18
|
+
ComEdaxuEnrollmentEnrolledV1: 'com.edaxu.enrollment.enrolled.v1',
|
|
19
|
+
ComEdaxuEnrollmentCompletedV1: 'com.edaxu.enrollment.completed.v1',
|
|
20
|
+
ComEdaxuCertificateIssuedV1: 'com.edaxu.certificate.issued.v1'
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ZapierSubscription interface.
|
|
24
|
+
*/
|
|
25
|
+
export function instanceOfZapierSubscription(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('eventType' in value) || value['eventType'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
export function ZapierSubscriptionFromJSON(json) {
|
|
35
|
+
return ZapierSubscriptionFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function ZapierSubscriptionFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'id': json['id'],
|
|
43
|
+
'eventType': json['event_type'],
|
|
44
|
+
'createdAt': (new Date(json['created_at'])),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
export function ZapierSubscriptionToJSON(json) {
|
|
48
|
+
return ZapierSubscriptionToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
export function ZapierSubscriptionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'id': value['id'],
|
|
56
|
+
'event_type': value['eventType'],
|
|
57
|
+
'created_at': value['createdAt'].toISOString(),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -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,13 @@ 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 './IntegrationEventLearner';
|
|
174
|
+
export * from './IntegrationEventPortal';
|
|
167
175
|
export * from './LearnerExperienceVersion';
|
|
168
176
|
export * from './LibraryQuizCriteriaPreviewQuestion';
|
|
169
177
|
export * from './LibraryQuizCriterion';
|
|
@@ -215,6 +223,7 @@ export * from './PostCourseVersionItemSession';
|
|
|
215
223
|
export * from './PostCourseVersionPublish';
|
|
216
224
|
export * from './PostCourseVersionSection';
|
|
217
225
|
export * from './PostCourseVersionSectionDuplicate';
|
|
226
|
+
export * from './PostCustomWebhookIntegration';
|
|
218
227
|
export * from './PostDuplicate';
|
|
219
228
|
export * from './PostEmailAssetComplete';
|
|
220
229
|
export * from './PostEmailAssetUpload';
|
|
@@ -261,6 +270,7 @@ export * from './PostZapierSetupResponse';
|
|
|
261
270
|
export * from './PostZapierShopifyCourseMapping';
|
|
262
271
|
export * from './PostZapierShopifyEnrollment';
|
|
263
272
|
export * from './PostZapierShopifyEnrollmentResponse';
|
|
273
|
+
export * from './PostZapierSubscription';
|
|
264
274
|
export * from './PostZapierUser';
|
|
265
275
|
export * from './ProgressionGateError';
|
|
266
276
|
export * from './ProgressionLockReason';
|
|
@@ -278,6 +288,7 @@ export * from './PutCourseVersionDraft';
|
|
|
278
288
|
export * from './PutCourseVersionItem';
|
|
279
289
|
export * from './PutCourseVersionOutlineEntryMove';
|
|
280
290
|
export * from './PutCourseVersionSection';
|
|
291
|
+
export * from './PutCustomWebhookIntegration';
|
|
281
292
|
export * from './PutEmailTemplateDraft';
|
|
282
293
|
export * from './PutLearnerExperienceDraft';
|
|
283
294
|
export * from './PutLibraryQuiz';
|
|
@@ -324,4 +335,5 @@ export * from './ZapierCourse';
|
|
|
324
335
|
export * from './ZapierEnrollment';
|
|
325
336
|
export * from './ZapierIntegration';
|
|
326
337
|
export * from './ZapierShopifyCourseMapping';
|
|
338
|
+
export * from './ZapierSubscription';
|
|
327
339
|
export * from './ZapierUser';
|