@easyedu/js-lsm-api 1.115.0 → 1.117.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +48 -0
- package/README.md +40 -2
- package/dist/apis/IntegrationApi.d.ts +257 -0
- package/dist/apis/IntegrationApi.js +708 -1
- package/dist/esm/apis/IntegrationApi.d.ts +257 -0
- package/dist/esm/apis/IntegrationApi.js +707 -0
- package/dist/esm/models/CustomWebhookIntegration.d.ts +83 -0
- package/dist/esm/models/CustomWebhookIntegration.js +79 -0
- package/dist/esm/models/GetZapierCourses.d.ts +51 -0
- package/dist/esm/models/GetZapierCourses.js +56 -0
- package/dist/esm/models/GetZapierShopifyCourseMappings.d.ts +33 -0
- package/dist/esm/models/GetZapierShopifyCourseMappings.js +44 -0
- package/dist/esm/models/GetZapierUsers.d.ts +33 -0
- package/dist/esm/models/GetZapierUsers.js +44 -0
- package/dist/esm/models/IntegrationEvent.d.ts +98 -0
- package/dist/esm/models/IntegrationEvent.js +92 -0
- package/dist/esm/models/IntegrationEventCertificate.d.ts +78 -0
- package/dist/esm/models/IntegrationEventCertificate.js +76 -0
- package/dist/esm/models/IntegrationEventCourse.d.ts +38 -0
- package/dist/esm/models/IntegrationEventCourse.js +47 -0
- package/dist/esm/models/IntegrationEventData.d.ts +61 -0
- package/dist/esm/models/IntegrationEventData.js +64 -0
- package/dist/esm/models/IntegrationEventEnrollment.d.ts +71 -0
- package/dist/esm/models/IntegrationEventEnrollment.js +71 -0
- package/dist/esm/models/IntegrationEventLearner.d.ts +50 -0
- package/dist/esm/models/IntegrationEventLearner.js +55 -0
- package/dist/esm/models/IntegrationEventPortal.d.ts +44 -0
- package/dist/esm/models/IntegrationEventPortal.js +51 -0
- package/dist/esm/models/PostCustomWebhookIntegration.d.ts +65 -0
- package/dist/esm/models/PostCustomWebhookIntegration.js +65 -0
- package/dist/esm/models/PostZapierEnrollment.d.ts +76 -0
- package/dist/esm/models/PostZapierEnrollment.js +64 -0
- package/dist/esm/models/PostZapierShopifyCourseMapping.d.ts +50 -0
- package/dist/esm/models/PostZapierShopifyCourseMapping.js +53 -0
- package/dist/esm/models/PostZapierShopifyEnrollment.d.ts +100 -0
- package/dist/esm/models/PostZapierShopifyEnrollment.js +82 -0
- package/dist/esm/models/PostZapierShopifyEnrollmentResponse.d.ts +47 -0
- package/dist/esm/models/PostZapierShopifyEnrollmentResponse.js +54 -0
- package/dist/esm/models/PostZapierSubscription.d.ts +53 -0
- package/dist/esm/models/PostZapierSubscription.js +57 -0
- package/dist/esm/models/PostZapierUser.d.ts +44 -0
- package/dist/esm/models/PostZapierUser.js +51 -0
- package/dist/esm/models/PutCustomWebhookIntegration.d.ts +65 -0
- package/dist/esm/models/PutCustomWebhookIntegration.js +57 -0
- package/dist/esm/models/ZapierCourse.d.ts +50 -0
- package/dist/esm/models/ZapierCourse.js +55 -0
- package/dist/esm/models/ZapierEnrollment.d.ts +74 -0
- package/dist/esm/models/ZapierEnrollment.js +69 -0
- package/dist/esm/models/ZapierShopifyCourseMapping.d.ts +69 -0
- package/dist/esm/models/ZapierShopifyCourseMapping.js +66 -0
- package/dist/esm/models/ZapierSubscription.d.ts +53 -0
- package/dist/esm/models/ZapierSubscription.js +59 -0
- package/dist/esm/models/ZapierUser.d.ts +56 -0
- package/dist/esm/models/ZapierUser.js +59 -0
- package/dist/esm/models/index.d.ts +24 -0
- package/dist/esm/models/index.js +24 -0
- package/dist/models/CustomWebhookIntegration.d.ts +83 -0
- package/dist/models/CustomWebhookIntegration.js +87 -0
- package/dist/models/GetZapierCourses.d.ts +51 -0
- package/dist/models/GetZapierCourses.js +63 -0
- package/dist/models/GetZapierShopifyCourseMappings.d.ts +33 -0
- package/dist/models/GetZapierShopifyCourseMappings.js +51 -0
- package/dist/models/GetZapierUsers.d.ts +33 -0
- package/dist/models/GetZapierUsers.js +51 -0
- package/dist/models/IntegrationEvent.d.ts +98 -0
- package/dist/models/IntegrationEvent.js +100 -0
- package/dist/models/IntegrationEventCertificate.d.ts +78 -0
- package/dist/models/IntegrationEventCertificate.js +84 -0
- package/dist/models/IntegrationEventCourse.d.ts +38 -0
- package/dist/models/IntegrationEventCourse.js +54 -0
- package/dist/models/IntegrationEventData.d.ts +61 -0
- package/dist/models/IntegrationEventData.js +71 -0
- package/dist/models/IntegrationEventEnrollment.d.ts +71 -0
- package/dist/models/IntegrationEventEnrollment.js +79 -0
- package/dist/models/IntegrationEventLearner.d.ts +50 -0
- package/dist/models/IntegrationEventLearner.js +62 -0
- package/dist/models/IntegrationEventPortal.d.ts +44 -0
- package/dist/models/IntegrationEventPortal.js +58 -0
- package/dist/models/PostCustomWebhookIntegration.d.ts +65 -0
- package/dist/models/PostCustomWebhookIntegration.js +73 -0
- package/dist/models/PostZapierEnrollment.d.ts +76 -0
- package/dist/models/PostZapierEnrollment.js +72 -0
- package/dist/models/PostZapierShopifyCourseMapping.d.ts +50 -0
- package/dist/models/PostZapierShopifyCourseMapping.js +60 -0
- package/dist/models/PostZapierShopifyEnrollment.d.ts +100 -0
- package/dist/models/PostZapierShopifyEnrollment.js +90 -0
- package/dist/models/PostZapierShopifyEnrollmentResponse.d.ts +47 -0
- package/dist/models/PostZapierShopifyEnrollmentResponse.js +61 -0
- package/dist/models/PostZapierSubscription.d.ts +53 -0
- package/dist/models/PostZapierSubscription.js +65 -0
- package/dist/models/PostZapierUser.d.ts +44 -0
- package/dist/models/PostZapierUser.js +58 -0
- package/dist/models/PutCustomWebhookIntegration.d.ts +65 -0
- package/dist/models/PutCustomWebhookIntegration.js +65 -0
- package/dist/models/ZapierCourse.d.ts +50 -0
- package/dist/models/ZapierCourse.js +62 -0
- package/dist/models/ZapierEnrollment.d.ts +74 -0
- package/dist/models/ZapierEnrollment.js +76 -0
- package/dist/models/ZapierShopifyCourseMapping.d.ts +69 -0
- package/dist/models/ZapierShopifyCourseMapping.js +73 -0
- package/dist/models/ZapierSubscription.d.ts +53 -0
- package/dist/models/ZapierSubscription.js +67 -0
- package/dist/models/ZapierUser.d.ts +56 -0
- package/dist/models/ZapierUser.js +66 -0
- package/dist/models/index.d.ts +24 -0
- package/dist/models/index.js +24 -0
- package/docs/CustomWebhookIntegration.md +48 -0
- package/docs/GetZapierCourses.md +40 -0
- package/docs/GetZapierShopifyCourseMappings.md +34 -0
- package/docs/GetZapierUsers.md +34 -0
- package/docs/IntegrationApi.md +1060 -30
- package/docs/IntegrationEvent.md +49 -0
- package/docs/IntegrationEventCertificate.md +46 -0
- package/docs/IntegrationEventCourse.md +36 -0
- package/docs/IntegrationEventData.md +42 -0
- package/docs/IntegrationEventEnrollment.md +44 -0
- package/docs/IntegrationEventLearner.md +40 -0
- package/docs/IntegrationEventPortal.md +38 -0
- package/docs/PostCustomWebhookIntegration.md +42 -0
- package/docs/PostZapierEnrollment.md +46 -0
- package/docs/PostZapierShopifyCourseMapping.md +40 -0
- package/docs/PostZapierShopifyEnrollment.md +54 -0
- package/docs/PostZapierShopifyEnrollmentResponse.md +38 -0
- package/docs/PostZapierSubscription.md +38 -0
- package/docs/PostZapierUser.md +38 -0
- package/docs/PutCustomWebhookIntegration.md +42 -0
- package/docs/ZapierCourse.md +40 -0
- package/docs/ZapierEnrollment.md +48 -0
- package/docs/ZapierShopifyCourseMapping.md +46 -0
- package/docs/ZapierSubscription.md +38 -0
- package/docs/ZapierUser.md +42 -0
- package/package.json +1 -1
- package/src/apis/IntegrationApi.ts +1104 -61
- package/src/models/CustomWebhookIntegration.ts +141 -0
- package/src/models/GetZapierCourses.ts +101 -0
- package/src/models/GetZapierShopifyCourseMappings.ts +74 -0
- package/src/models/GetZapierUsers.ts +74 -0
- package/src/models/IntegrationEvent.ts +165 -0
- package/src/models/IntegrationEventCertificate.ts +133 -0
- package/src/models/IntegrationEventCourse.ts +75 -0
- package/src/models/IntegrationEventData.ts +138 -0
- package/src/models/IntegrationEventEnrollment.ts +123 -0
- package/src/models/IntegrationEventLearner.ts +93 -0
- package/src/models/IntegrationEventPortal.ts +84 -0
- package/src/models/PostCustomWebhookIntegration.ts +113 -0
- package/src/models/PostZapierEnrollment.ts +126 -0
- package/src/models/PostZapierShopifyCourseMapping.ts +92 -0
- package/src/models/PostZapierShopifyEnrollment.ts +163 -0
- package/src/models/PostZapierShopifyEnrollmentResponse.ts +106 -0
- package/src/models/PostZapierSubscription.ts +95 -0
- package/src/models/PostZapierUser.ts +84 -0
- package/src/models/PutCustomWebhookIntegration.ts +109 -0
- package/src/models/ZapierCourse.ts +93 -0
- package/src/models/ZapierEnrollment.ts +128 -0
- package/src/models/ZapierShopifyCourseMapping.ts +127 -0
- package/src/models/ZapierSubscription.ts +96 -0
- package/src/models/ZapierUser.ts +102 -0
- package/src/models/index.ts +24 -0
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
import { ZapierUserFromJSON, ZapierUserToJSON, } from './ZapierUser';
|
|
15
|
+
import { ZapierShopifyCourseMappingFromJSON, ZapierShopifyCourseMappingToJSON, } from './ZapierShopifyCourseMapping';
|
|
16
|
+
import { ZapierEnrollmentFromJSON, ZapierEnrollmentToJSON, } from './ZapierEnrollment';
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the PostZapierShopifyEnrollmentResponse interface.
|
|
19
|
+
*/
|
|
20
|
+
export function instanceOfPostZapierShopifyEnrollmentResponse(value) {
|
|
21
|
+
if (!('enrollment' in value) || value['enrollment'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('user' in value) || value['user'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('mapping' in value) || value['mapping'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
export function PostZapierShopifyEnrollmentResponseFromJSON(json) {
|
|
30
|
+
return PostZapierShopifyEnrollmentResponseFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
export function PostZapierShopifyEnrollmentResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'enrollment': ZapierEnrollmentFromJSON(json['enrollment']),
|
|
38
|
+
'user': ZapierUserFromJSON(json['user']),
|
|
39
|
+
'mapping': ZapierShopifyCourseMappingFromJSON(json['mapping']),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function PostZapierShopifyEnrollmentResponseToJSON(json) {
|
|
43
|
+
return PostZapierShopifyEnrollmentResponseToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function PostZapierShopifyEnrollmentResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'enrollment': ZapierEnrollmentToJSON(value['enrollment']),
|
|
51
|
+
'user': ZapierUserToJSON(value['user']),
|
|
52
|
+
'mapping': ZapierShopifyCourseMappingToJSON(value['mapping']),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -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,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 PostZapierUser
|
|
16
|
+
*/
|
|
17
|
+
export interface PostZapierUser {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PostZapierUser
|
|
22
|
+
*/
|
|
23
|
+
email: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PostZapierUser
|
|
28
|
+
*/
|
|
29
|
+
firstName: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PostZapierUser
|
|
34
|
+
*/
|
|
35
|
+
lastName: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the PostZapierUser interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfPostZapierUser(value: object): value is PostZapierUser;
|
|
41
|
+
export declare function PostZapierUserFromJSON(json: any): PostZapierUser;
|
|
42
|
+
export declare function PostZapierUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostZapierUser;
|
|
43
|
+
export declare function PostZapierUserToJSON(json: any): PostZapierUser;
|
|
44
|
+
export declare function PostZapierUserToJSONTyped(value?: PostZapierUser | 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 PostZapierUser interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPostZapierUser(value) {
|
|
18
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('firstName' in value) || value['firstName'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('lastName' in value) || value['lastName'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function PostZapierUserFromJSON(json) {
|
|
27
|
+
return PostZapierUserFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function PostZapierUserFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'email': json['email'],
|
|
35
|
+
'firstName': json['first_name'],
|
|
36
|
+
'lastName': json['last_name'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function PostZapierUserToJSON(json) {
|
|
40
|
+
return PostZapierUserToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function PostZapierUserToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'email': value['email'],
|
|
48
|
+
'first_name': value['firstName'],
|
|
49
|
+
'last_name': value['lastName'],
|
|
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 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,50 @@
|
|
|
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 ZapierCourse
|
|
16
|
+
*/
|
|
17
|
+
export interface ZapierCourse {
|
|
18
|
+
/**
|
|
19
|
+
* Stable external course ID.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ZapierCourse
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ZapierCourse
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ZapierCourse
|
|
34
|
+
*/
|
|
35
|
+
description: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof ZapierCourse
|
|
40
|
+
*/
|
|
41
|
+
published: boolean;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the ZapierCourse interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfZapierCourse(value: object): value is ZapierCourse;
|
|
47
|
+
export declare function ZapierCourseFromJSON(json: any): ZapierCourse;
|
|
48
|
+
export declare function ZapierCourseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ZapierCourse;
|
|
49
|
+
export declare function ZapierCourseToJSON(json: any): ZapierCourse;
|
|
50
|
+
export declare function ZapierCourseToJSONTyped(value?: ZapierCourse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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 ZapierCourse interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfZapierCourse(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 (!('description' in value) || value['description'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('published' in value) || value['published'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function ZapierCourseFromJSON(json) {
|
|
29
|
+
return ZapierCourseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function ZapierCourseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'id': json['id'],
|
|
37
|
+
'name': json['name'],
|
|
38
|
+
'description': json['description'],
|
|
39
|
+
'published': json['published'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function ZapierCourseToJSON(json) {
|
|
43
|
+
return ZapierCourseToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function ZapierCourseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'id': value['id'],
|
|
51
|
+
'name': value['name'],
|
|
52
|
+
'description': value['description'],
|
|
53
|
+
'published': value['published'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
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 ZapierEnrollment
|
|
16
|
+
*/
|
|
17
|
+
export interface ZapierEnrollment {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ZapierEnrollment
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ZapierEnrollment
|
|
28
|
+
*/
|
|
29
|
+
courseId: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ZapierEnrollment
|
|
34
|
+
*/
|
|
35
|
+
userId: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ZapierEnrollment
|
|
40
|
+
*/
|
|
41
|
+
status: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof ZapierEnrollment
|
|
46
|
+
*/
|
|
47
|
+
enrollmentDateStart: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ZapierEnrollment
|
|
52
|
+
*/
|
|
53
|
+
enrollmentDateEnd?: number | null;
|
|
54
|
+
/**
|
|
55
|
+
* True when this request created or resumed an enrollment.
|
|
56
|
+
* @type {boolean}
|
|
57
|
+
* @memberof ZapierEnrollment
|
|
58
|
+
*/
|
|
59
|
+
created: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* True when a previous result was returned for a retried source event.
|
|
62
|
+
* @type {boolean}
|
|
63
|
+
* @memberof ZapierEnrollment
|
|
64
|
+
*/
|
|
65
|
+
idempotentReplay: boolean;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the ZapierEnrollment interface.
|
|
69
|
+
*/
|
|
70
|
+
export declare function instanceOfZapierEnrollment(value: object): value is ZapierEnrollment;
|
|
71
|
+
export declare function ZapierEnrollmentFromJSON(json: any): ZapierEnrollment;
|
|
72
|
+
export declare function ZapierEnrollmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): ZapierEnrollment;
|
|
73
|
+
export declare function ZapierEnrollmentToJSON(json: any): ZapierEnrollment;
|
|
74
|
+
export declare function ZapierEnrollmentToJSONTyped(value?: ZapierEnrollment | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,69 @@
|
|
|
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 ZapierEnrollment interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfZapierEnrollment(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('courseId' in value) || value['courseId'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('enrollmentDateStart' in value) || value['enrollmentDateStart'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('created' in value) || value['created'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('idempotentReplay' in value) || value['idempotentReplay'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
export function ZapierEnrollmentFromJSON(json) {
|
|
35
|
+
return ZapierEnrollmentFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function ZapierEnrollmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'id': json['id'],
|
|
43
|
+
'courseId': json['course_id'],
|
|
44
|
+
'userId': json['user_id'],
|
|
45
|
+
'status': json['status'],
|
|
46
|
+
'enrollmentDateStart': json['enrollment_date_start'],
|
|
47
|
+
'enrollmentDateEnd': json['enrollment_date_end'] == null ? undefined : json['enrollment_date_end'],
|
|
48
|
+
'created': json['created'],
|
|
49
|
+
'idempotentReplay': json['idempotent_replay'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export function ZapierEnrollmentToJSON(json) {
|
|
53
|
+
return ZapierEnrollmentToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
export function ZapierEnrollmentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'id': value['id'],
|
|
61
|
+
'course_id': value['courseId'],
|
|
62
|
+
'user_id': value['userId'],
|
|
63
|
+
'status': value['status'],
|
|
64
|
+
'enrollment_date_start': value['enrollmentDateStart'],
|
|
65
|
+
'enrollment_date_end': value['enrollmentDateEnd'],
|
|
66
|
+
'created': value['created'],
|
|
67
|
+
'idempotent_replay': value['idempotentReplay'],
|
|
68
|
+
};
|
|
69
|
+
}
|