@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,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,65 @@
|
|
|
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.PostZapierSubscriptionEventTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfPostZapierSubscription = instanceOfPostZapierSubscription;
|
|
18
|
+
exports.PostZapierSubscriptionFromJSON = PostZapierSubscriptionFromJSON;
|
|
19
|
+
exports.PostZapierSubscriptionFromJSONTyped = PostZapierSubscriptionFromJSONTyped;
|
|
20
|
+
exports.PostZapierSubscriptionToJSON = PostZapierSubscriptionToJSON;
|
|
21
|
+
exports.PostZapierSubscriptionToJSONTyped = PostZapierSubscriptionToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.PostZapierSubscriptionEventTypeEnum = {
|
|
26
|
+
ComEdaxuEnrollmentEnrolledV1: 'com.edaxu.enrollment.enrolled.v1',
|
|
27
|
+
ComEdaxuEnrollmentCompletedV1: 'com.edaxu.enrollment.completed.v1',
|
|
28
|
+
ComEdaxuCertificateIssuedV1: 'com.edaxu.certificate.issued.v1'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the PostZapierSubscription interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfPostZapierSubscription(value) {
|
|
34
|
+
if (!('eventType' in value) || value['eventType'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('targetUrl' in value) || value['targetUrl'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
function PostZapierSubscriptionFromJSON(json) {
|
|
41
|
+
return PostZapierSubscriptionFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function PostZapierSubscriptionFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'eventType': json['event_type'],
|
|
49
|
+
'targetUrl': json['target_url'],
|
|
50
|
+
'zapId': json['zap_id'] == null ? undefined : json['zap_id'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function PostZapierSubscriptionToJSON(json) {
|
|
54
|
+
return PostZapierSubscriptionToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function PostZapierSubscriptionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'event_type': value['eventType'],
|
|
62
|
+
'target_url': value['targetUrl'],
|
|
63
|
+
'zap_id': value['zapId'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
@@ -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,65 @@
|
|
|
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.PutCustomWebhookIntegrationEventTypesEnum = void 0;
|
|
17
|
+
exports.instanceOfPutCustomWebhookIntegration = instanceOfPutCustomWebhookIntegration;
|
|
18
|
+
exports.PutCustomWebhookIntegrationFromJSON = PutCustomWebhookIntegrationFromJSON;
|
|
19
|
+
exports.PutCustomWebhookIntegrationFromJSONTyped = PutCustomWebhookIntegrationFromJSONTyped;
|
|
20
|
+
exports.PutCustomWebhookIntegrationToJSON = PutCustomWebhookIntegrationToJSON;
|
|
21
|
+
exports.PutCustomWebhookIntegrationToJSONTyped = PutCustomWebhookIntegrationToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.PutCustomWebhookIntegrationEventTypesEnum = {
|
|
26
|
+
ComEdaxuEnrollmentEnrolledV1: 'com.edaxu.enrollment.enrolled.v1',
|
|
27
|
+
ComEdaxuEnrollmentCompletedV1: 'com.edaxu.enrollment.completed.v1',
|
|
28
|
+
ComEdaxuCertificateIssuedV1: 'com.edaxu.certificate.issued.v1'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the PutCustomWebhookIntegration interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfPutCustomWebhookIntegration(value) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function PutCustomWebhookIntegrationFromJSON(json) {
|
|
37
|
+
return PutCustomWebhookIntegrationFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function PutCustomWebhookIntegrationFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
45
|
+
'targetUrl': json['target_url'] == null ? undefined : json['target_url'],
|
|
46
|
+
'bearerToken': json['bearer_token'] == null ? undefined : json['bearer_token'],
|
|
47
|
+
'eventTypes': json['event_types'] == null ? undefined : new Set(json['event_types']),
|
|
48
|
+
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function PutCustomWebhookIntegrationToJSON(json) {
|
|
52
|
+
return PutCustomWebhookIntegrationToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function PutCustomWebhookIntegrationToJSONTyped(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': value['eventTypes'] == null ? undefined : 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 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,67 @@
|
|
|
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.ZapierSubscriptionEventTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfZapierSubscription = instanceOfZapierSubscription;
|
|
18
|
+
exports.ZapierSubscriptionFromJSON = ZapierSubscriptionFromJSON;
|
|
19
|
+
exports.ZapierSubscriptionFromJSONTyped = ZapierSubscriptionFromJSONTyped;
|
|
20
|
+
exports.ZapierSubscriptionToJSON = ZapierSubscriptionToJSON;
|
|
21
|
+
exports.ZapierSubscriptionToJSONTyped = ZapierSubscriptionToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.ZapierSubscriptionEventTypeEnum = {
|
|
26
|
+
ComEdaxuEnrollmentEnrolledV1: 'com.edaxu.enrollment.enrolled.v1',
|
|
27
|
+
ComEdaxuEnrollmentCompletedV1: 'com.edaxu.enrollment.completed.v1',
|
|
28
|
+
ComEdaxuCertificateIssuedV1: 'com.edaxu.certificate.issued.v1'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ZapierSubscription interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfZapierSubscription(value) {
|
|
34
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('eventType' in value) || value['eventType'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
function ZapierSubscriptionFromJSON(json) {
|
|
43
|
+
return ZapierSubscriptionFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function ZapierSubscriptionFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'id': json['id'],
|
|
51
|
+
'eventType': json['event_type'],
|
|
52
|
+
'createdAt': (new Date(json['created_at'])),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function ZapierSubscriptionToJSON(json) {
|
|
56
|
+
return ZapierSubscriptionToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function ZapierSubscriptionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'id': value['id'],
|
|
64
|
+
'event_type': value['eventType'],
|
|
65
|
+
'created_at': value['createdAt'].toISOString(),
|
|
66
|
+
};
|
|
67
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -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';
|
package/dist/models/index.js
CHANGED
|
@@ -58,6 +58,7 @@ __exportStar(require("./CourseCatalog"), exports);
|
|
|
58
58
|
__exportStar(require("./CourseProgressionMode"), exports);
|
|
59
59
|
__exportStar(require("./CourseShare"), exports);
|
|
60
60
|
__exportStar(require("./CourseShareAcceptError"), exports);
|
|
61
|
+
__exportStar(require("./CustomWebhookIntegration"), exports);
|
|
61
62
|
__exportStar(require("./EffectiveCertificateConfig"), exports);
|
|
62
63
|
__exportStar(require("./EmailTemplateDefinition"), exports);
|
|
63
64
|
__exportStar(require("./EmailTemplateScope"), exports);
|
|
@@ -182,6 +183,13 @@ __exportStar(require("./GetZapierMe"), exports);
|
|
|
182
183
|
__exportStar(require("./GetZapierSetup"), exports);
|
|
183
184
|
__exportStar(require("./GetZapierShopifyCourseMappings"), exports);
|
|
184
185
|
__exportStar(require("./GetZapierUsers"), exports);
|
|
186
|
+
__exportStar(require("./IntegrationEvent"), exports);
|
|
187
|
+
__exportStar(require("./IntegrationEventCertificate"), exports);
|
|
188
|
+
__exportStar(require("./IntegrationEventCourse"), exports);
|
|
189
|
+
__exportStar(require("./IntegrationEventData"), exports);
|
|
190
|
+
__exportStar(require("./IntegrationEventEnrollment"), exports);
|
|
191
|
+
__exportStar(require("./IntegrationEventLearner"), exports);
|
|
192
|
+
__exportStar(require("./IntegrationEventPortal"), exports);
|
|
185
193
|
__exportStar(require("./LearnerExperienceVersion"), exports);
|
|
186
194
|
__exportStar(require("./LibraryQuizCriteriaPreviewQuestion"), exports);
|
|
187
195
|
__exportStar(require("./LibraryQuizCriterion"), exports);
|
|
@@ -233,6 +241,7 @@ __exportStar(require("./PostCourseVersionItemSession"), exports);
|
|
|
233
241
|
__exportStar(require("./PostCourseVersionPublish"), exports);
|
|
234
242
|
__exportStar(require("./PostCourseVersionSection"), exports);
|
|
235
243
|
__exportStar(require("./PostCourseVersionSectionDuplicate"), exports);
|
|
244
|
+
__exportStar(require("./PostCustomWebhookIntegration"), exports);
|
|
236
245
|
__exportStar(require("./PostDuplicate"), exports);
|
|
237
246
|
__exportStar(require("./PostEmailAssetComplete"), exports);
|
|
238
247
|
__exportStar(require("./PostEmailAssetUpload"), exports);
|
|
@@ -279,6 +288,7 @@ __exportStar(require("./PostZapierSetupResponse"), exports);
|
|
|
279
288
|
__exportStar(require("./PostZapierShopifyCourseMapping"), exports);
|
|
280
289
|
__exportStar(require("./PostZapierShopifyEnrollment"), exports);
|
|
281
290
|
__exportStar(require("./PostZapierShopifyEnrollmentResponse"), exports);
|
|
291
|
+
__exportStar(require("./PostZapierSubscription"), exports);
|
|
282
292
|
__exportStar(require("./PostZapierUser"), exports);
|
|
283
293
|
__exportStar(require("./ProgressionGateError"), exports);
|
|
284
294
|
__exportStar(require("./ProgressionLockReason"), exports);
|
|
@@ -296,6 +306,7 @@ __exportStar(require("./PutCourseVersionDraft"), exports);
|
|
|
296
306
|
__exportStar(require("./PutCourseVersionItem"), exports);
|
|
297
307
|
__exportStar(require("./PutCourseVersionOutlineEntryMove"), exports);
|
|
298
308
|
__exportStar(require("./PutCourseVersionSection"), exports);
|
|
309
|
+
__exportStar(require("./PutCustomWebhookIntegration"), exports);
|
|
299
310
|
__exportStar(require("./PutEmailTemplateDraft"), exports);
|
|
300
311
|
__exportStar(require("./PutLearnerExperienceDraft"), exports);
|
|
301
312
|
__exportStar(require("./PutLibraryQuiz"), exports);
|
|
@@ -342,4 +353,5 @@ __exportStar(require("./ZapierCourse"), exports);
|
|
|
342
353
|
__exportStar(require("./ZapierEnrollment"), exports);
|
|
343
354
|
__exportStar(require("./ZapierIntegration"), exports);
|
|
344
355
|
__exportStar(require("./ZapierShopifyCourseMapping"), exports);
|
|
356
|
+
__exportStar(require("./ZapierSubscription"), exports);
|
|
345
357
|
__exportStar(require("./ZapierUser"), exports);
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
|
|
2
|
+
# CustomWebhookIntegration
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | string
|
|
10
|
+
`name` | string
|
|
11
|
+
`targetUrl` | string
|
|
12
|
+
`eventTypes` | Set<string>
|
|
13
|
+
`enabled` | boolean
|
|
14
|
+
`tokenConfigured` | boolean
|
|
15
|
+
`createdAt` | Date
|
|
16
|
+
`updatedAt` | Date
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import type { CustomWebhookIntegration } from '@easyedu/js-lsm-api'
|
|
22
|
+
|
|
23
|
+
// TODO: Update the object below with actual values
|
|
24
|
+
const example = {
|
|
25
|
+
"id": null,
|
|
26
|
+
"name": null,
|
|
27
|
+
"targetUrl": null,
|
|
28
|
+
"eventTypes": null,
|
|
29
|
+
"enabled": null,
|
|
30
|
+
"tokenConfigured": null,
|
|
31
|
+
"createdAt": null,
|
|
32
|
+
"updatedAt": null,
|
|
33
|
+
} satisfies CustomWebhookIntegration
|
|
34
|
+
|
|
35
|
+
console.log(example)
|
|
36
|
+
|
|
37
|
+
// Convert the instance to a JSON string
|
|
38
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
39
|
+
console.log(exampleJSON)
|
|
40
|
+
|
|
41
|
+
// Parse the JSON string back to an object
|
|
42
|
+
const exampleParsed = JSON.parse(exampleJSON) as CustomWebhookIntegration
|
|
43
|
+
console.log(exampleParsed)
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
47
|
+
|
|
48
|
+
|