@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,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,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,58 @@
|
|
|
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.instanceOfPostZapierUser = instanceOfPostZapierUser;
|
|
17
|
+
exports.PostZapierUserFromJSON = PostZapierUserFromJSON;
|
|
18
|
+
exports.PostZapierUserFromJSONTyped = PostZapierUserFromJSONTyped;
|
|
19
|
+
exports.PostZapierUserToJSON = PostZapierUserToJSON;
|
|
20
|
+
exports.PostZapierUserToJSONTyped = PostZapierUserToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PostZapierUser interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPostZapierUser(value) {
|
|
25
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('firstName' in value) || value['firstName'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('lastName' in value) || value['lastName'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function PostZapierUserFromJSON(json) {
|
|
34
|
+
return PostZapierUserFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function PostZapierUserFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'email': json['email'],
|
|
42
|
+
'firstName': json['first_name'],
|
|
43
|
+
'lastName': json['last_name'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function PostZapierUserToJSON(json) {
|
|
47
|
+
return PostZapierUserToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function PostZapierUserToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'email': value['email'],
|
|
55
|
+
'first_name': value['firstName'],
|
|
56
|
+
'last_name': value['lastName'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -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,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,62 @@
|
|
|
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.instanceOfZapierCourse = instanceOfZapierCourse;
|
|
17
|
+
exports.ZapierCourseFromJSON = ZapierCourseFromJSON;
|
|
18
|
+
exports.ZapierCourseFromJSONTyped = ZapierCourseFromJSONTyped;
|
|
19
|
+
exports.ZapierCourseToJSON = ZapierCourseToJSON;
|
|
20
|
+
exports.ZapierCourseToJSONTyped = ZapierCourseToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ZapierCourse interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfZapierCourse(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('published' in value) || value['published'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function ZapierCourseFromJSON(json) {
|
|
36
|
+
return ZapierCourseFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function ZapierCourseFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'id': json['id'],
|
|
44
|
+
'name': json['name'],
|
|
45
|
+
'description': json['description'],
|
|
46
|
+
'published': json['published'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function ZapierCourseToJSON(json) {
|
|
50
|
+
return ZapierCourseToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function ZapierCourseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'id': value['id'],
|
|
58
|
+
'name': value['name'],
|
|
59
|
+
'description': value['description'],
|
|
60
|
+
'published': value['published'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -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,76 @@
|
|
|
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.instanceOfZapierEnrollment = instanceOfZapierEnrollment;
|
|
17
|
+
exports.ZapierEnrollmentFromJSON = ZapierEnrollmentFromJSON;
|
|
18
|
+
exports.ZapierEnrollmentFromJSONTyped = ZapierEnrollmentFromJSONTyped;
|
|
19
|
+
exports.ZapierEnrollmentToJSON = ZapierEnrollmentToJSON;
|
|
20
|
+
exports.ZapierEnrollmentToJSONTyped = ZapierEnrollmentToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ZapierEnrollment interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfZapierEnrollment(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('courseId' in value) || value['courseId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('enrollmentDateStart' in value) || value['enrollmentDateStart'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('created' in value) || value['created'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('idempotentReplay' in value) || value['idempotentReplay'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function ZapierEnrollmentFromJSON(json) {
|
|
42
|
+
return ZapierEnrollmentFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function ZapierEnrollmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'id': json['id'],
|
|
50
|
+
'courseId': json['course_id'],
|
|
51
|
+
'userId': json['user_id'],
|
|
52
|
+
'status': json['status'],
|
|
53
|
+
'enrollmentDateStart': json['enrollment_date_start'],
|
|
54
|
+
'enrollmentDateEnd': json['enrollment_date_end'] == null ? undefined : json['enrollment_date_end'],
|
|
55
|
+
'created': json['created'],
|
|
56
|
+
'idempotentReplay': json['idempotent_replay'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function ZapierEnrollmentToJSON(json) {
|
|
60
|
+
return ZapierEnrollmentToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
function ZapierEnrollmentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'id': value['id'],
|
|
68
|
+
'course_id': value['courseId'],
|
|
69
|
+
'user_id': value['userId'],
|
|
70
|
+
'status': value['status'],
|
|
71
|
+
'enrollment_date_start': value['enrollmentDateStart'],
|
|
72
|
+
'enrollment_date_end': value['enrollmentDateEnd'],
|
|
73
|
+
'created': value['created'],
|
|
74
|
+
'idempotent_replay': value['idempotentReplay'],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ZapierCourse } from './ZapierCourse';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ZapierShopifyCourseMapping
|
|
17
|
+
*/
|
|
18
|
+
export interface ZapierShopifyCourseMapping {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ZapierShopifyCourseMapping
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
* Normalized Shopify store domain, such as example.myshopify.com.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ZapierShopifyCourseMapping
|
|
29
|
+
*/
|
|
30
|
+
shopDomain: string;
|
|
31
|
+
/**
|
|
32
|
+
* Shopify product variant ID.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof ZapierShopifyCourseMapping
|
|
35
|
+
*/
|
|
36
|
+
variantId: string;
|
|
37
|
+
/**
|
|
38
|
+
* Optional Shopify product ID for display and troubleshooting.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ZapierShopifyCourseMapping
|
|
41
|
+
*/
|
|
42
|
+
productId?: string | null;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {ZapierCourse}
|
|
46
|
+
* @memberof ZapierShopifyCourseMapping
|
|
47
|
+
*/
|
|
48
|
+
course: ZapierCourse;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof ZapierShopifyCourseMapping
|
|
53
|
+
*/
|
|
54
|
+
createdAt: number;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof ZapierShopifyCourseMapping
|
|
59
|
+
*/
|
|
60
|
+
updatedAt: number;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the ZapierShopifyCourseMapping interface.
|
|
64
|
+
*/
|
|
65
|
+
export declare function instanceOfZapierShopifyCourseMapping(value: object): value is ZapierShopifyCourseMapping;
|
|
66
|
+
export declare function ZapierShopifyCourseMappingFromJSON(json: any): ZapierShopifyCourseMapping;
|
|
67
|
+
export declare function ZapierShopifyCourseMappingFromJSONTyped(json: any, ignoreDiscriminator: boolean): ZapierShopifyCourseMapping;
|
|
68
|
+
export declare function ZapierShopifyCourseMappingToJSON(json: any): ZapierShopifyCourseMapping;
|
|
69
|
+
export declare function ZapierShopifyCourseMappingToJSONTyped(value?: ZapierShopifyCourseMapping | null, ignoreDiscriminator?: boolean): any;
|