@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,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.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
|
+
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 PostZapierSubscription interface.
|
|
34
|
+
*/
|
|
35
|
+
function instanceOfPostZapierSubscription(value) {
|
|
36
|
+
if (!('eventType' in value) || value['eventType'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('targetUrl' in value) || value['targetUrl'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
function PostZapierSubscriptionFromJSON(json) {
|
|
43
|
+
return PostZapierSubscriptionFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function PostZapierSubscriptionFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'eventType': json['event_type'],
|
|
51
|
+
'targetUrl': json['target_url'],
|
|
52
|
+
'zapId': json['zap_id'] == null ? undefined : json['zap_id'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function PostZapierSubscriptionToJSON(json) {
|
|
56
|
+
return PostZapierSubscriptionToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function PostZapierSubscriptionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'event_type': value['eventType'],
|
|
64
|
+
'target_url': value['targetUrl'],
|
|
65
|
+
'zap_id': value['zapId'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -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,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.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
|
+
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 PutCustomWebhookIntegration interface.
|
|
34
|
+
*/
|
|
35
|
+
function instanceOfPutCustomWebhookIntegration(value) {
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function PutCustomWebhookIntegrationFromJSON(json) {
|
|
39
|
+
return PutCustomWebhookIntegrationFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function PutCustomWebhookIntegrationFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
47
|
+
'targetUrl': json['target_url'] == null ? undefined : json['target_url'],
|
|
48
|
+
'bearerToken': json['bearer_token'] == null ? undefined : json['bearer_token'],
|
|
49
|
+
'eventTypes': json['event_types'] == null ? undefined : new Set(json['event_types']),
|
|
50
|
+
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function PutCustomWebhookIntegrationToJSON(json) {
|
|
54
|
+
return PutCustomWebhookIntegrationToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function PutCustomWebhookIntegrationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'name': value['name'],
|
|
62
|
+
'target_url': value['targetUrl'],
|
|
63
|
+
'bearer_token': value['bearerToken'],
|
|
64
|
+
'event_types': value['eventTypes'] == null ? undefined : Array.from(value['eventTypes']),
|
|
65
|
+
'enabled': value['enabled'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -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,69 @@
|
|
|
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
|
+
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 ZapierSubscription interface.
|
|
34
|
+
*/
|
|
35
|
+
function instanceOfZapierSubscription(value) {
|
|
36
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('eventType' in value) || value['eventType'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
function ZapierSubscriptionFromJSON(json) {
|
|
45
|
+
return ZapierSubscriptionFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function ZapierSubscriptionFromJSONTyped(json, ignoreDiscriminator) {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'id': json['id'],
|
|
53
|
+
'eventType': json['event_type'],
|
|
54
|
+
'createdAt': (new Date(json['created_at'])),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function ZapierSubscriptionToJSON(json) {
|
|
58
|
+
return ZapierSubscriptionToJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
function ZapierSubscriptionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'id': value['id'],
|
|
66
|
+
'event_type': value['eventType'],
|
|
67
|
+
'created_at': value['createdAt'].toISOString(),
|
|
68
|
+
};
|
|
69
|
+
}
|
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,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/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,15 @@ __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("./IntegrationEventInvitation"), exports);
|
|
192
|
+
__exportStar(require("./IntegrationEventLearner"), exports);
|
|
193
|
+
__exportStar(require("./IntegrationEventPortal"), exports);
|
|
194
|
+
__exportStar(require("./IntegrationEventUser"), exports);
|
|
185
195
|
__exportStar(require("./LearnerExperienceVersion"), exports);
|
|
186
196
|
__exportStar(require("./LibraryQuizCriteriaPreviewQuestion"), exports);
|
|
187
197
|
__exportStar(require("./LibraryQuizCriterion"), exports);
|
|
@@ -233,6 +243,7 @@ __exportStar(require("./PostCourseVersionItemSession"), exports);
|
|
|
233
243
|
__exportStar(require("./PostCourseVersionPublish"), exports);
|
|
234
244
|
__exportStar(require("./PostCourseVersionSection"), exports);
|
|
235
245
|
__exportStar(require("./PostCourseVersionSectionDuplicate"), exports);
|
|
246
|
+
__exportStar(require("./PostCustomWebhookIntegration"), exports);
|
|
236
247
|
__exportStar(require("./PostDuplicate"), exports);
|
|
237
248
|
__exportStar(require("./PostEmailAssetComplete"), exports);
|
|
238
249
|
__exportStar(require("./PostEmailAssetUpload"), exports);
|
|
@@ -279,6 +290,7 @@ __exportStar(require("./PostZapierSetupResponse"), exports);
|
|
|
279
290
|
__exportStar(require("./PostZapierShopifyCourseMapping"), exports);
|
|
280
291
|
__exportStar(require("./PostZapierShopifyEnrollment"), exports);
|
|
281
292
|
__exportStar(require("./PostZapierShopifyEnrollmentResponse"), exports);
|
|
293
|
+
__exportStar(require("./PostZapierSubscription"), exports);
|
|
282
294
|
__exportStar(require("./PostZapierUser"), exports);
|
|
283
295
|
__exportStar(require("./ProgressionGateError"), exports);
|
|
284
296
|
__exportStar(require("./ProgressionLockReason"), exports);
|
|
@@ -296,6 +308,7 @@ __exportStar(require("./PutCourseVersionDraft"), exports);
|
|
|
296
308
|
__exportStar(require("./PutCourseVersionItem"), exports);
|
|
297
309
|
__exportStar(require("./PutCourseVersionOutlineEntryMove"), exports);
|
|
298
310
|
__exportStar(require("./PutCourseVersionSection"), exports);
|
|
311
|
+
__exportStar(require("./PutCustomWebhookIntegration"), exports);
|
|
299
312
|
__exportStar(require("./PutEmailTemplateDraft"), exports);
|
|
300
313
|
__exportStar(require("./PutLearnerExperienceDraft"), exports);
|
|
301
314
|
__exportStar(require("./PutLibraryQuiz"), exports);
|
|
@@ -342,4 +355,5 @@ __exportStar(require("./ZapierCourse"), exports);
|
|
|
342
355
|
__exportStar(require("./ZapierEnrollment"), exports);
|
|
343
356
|
__exportStar(require("./ZapierIntegration"), exports);
|
|
344
357
|
__exportStar(require("./ZapierShopifyCourseMapping"), exports);
|
|
358
|
+
__exportStar(require("./ZapierSubscription"), exports);
|
|
345
359
|
__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
|
+
|