@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,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;
|
|
@@ -0,0 +1,66 @@
|
|
|
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 { ZapierCourseFromJSON, ZapierCourseToJSON, } from './ZapierCourse';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ZapierShopifyCourseMapping interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfZapierShopifyCourseMapping(value) {
|
|
19
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('shopDomain' in value) || value['shopDomain'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('variantId' in value) || value['variantId'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('course' in value) || value['course'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
export function ZapierShopifyCourseMappingFromJSON(json) {
|
|
34
|
+
return ZapierShopifyCourseMappingFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function ZapierShopifyCourseMappingFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'id': json['id'],
|
|
42
|
+
'shopDomain': json['shop_domain'],
|
|
43
|
+
'variantId': json['variant_id'],
|
|
44
|
+
'productId': json['product_id'] == null ? undefined : json['product_id'],
|
|
45
|
+
'course': ZapierCourseFromJSON(json['course']),
|
|
46
|
+
'createdAt': json['created_at'],
|
|
47
|
+
'updatedAt': json['updated_at'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
export function ZapierShopifyCourseMappingToJSON(json) {
|
|
51
|
+
return ZapierShopifyCourseMappingToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
export function ZapierShopifyCourseMappingToJSONTyped(value, ignoreDiscriminator = false) {
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'id': value['id'],
|
|
59
|
+
'shop_domain': value['shopDomain'],
|
|
60
|
+
'variant_id': value['variantId'],
|
|
61
|
+
'product_id': value['productId'],
|
|
62
|
+
'course': ZapierCourseToJSON(value['course']),
|
|
63
|
+
'created_at': value['createdAt'],
|
|
64
|
+
'updated_at': value['updatedAt'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ZapierSubscription
|
|
16
|
+
*/
|
|
17
|
+
export interface ZapierSubscription {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ZapierSubscription
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {ZapierSubscriptionEventTypeEnum}
|
|
27
|
+
* @memberof ZapierSubscription
|
|
28
|
+
*/
|
|
29
|
+
eventType: ZapierSubscriptionEventTypeEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Date}
|
|
33
|
+
* @memberof ZapierSubscription
|
|
34
|
+
*/
|
|
35
|
+
createdAt: Date;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const ZapierSubscriptionEventTypeEnum: {
|
|
41
|
+
readonly ComEdaxuEnrollmentEnrolledV1: "com.edaxu.enrollment.enrolled.v1";
|
|
42
|
+
readonly ComEdaxuEnrollmentCompletedV1: "com.edaxu.enrollment.completed.v1";
|
|
43
|
+
readonly ComEdaxuCertificateIssuedV1: "com.edaxu.certificate.issued.v1";
|
|
44
|
+
};
|
|
45
|
+
export type ZapierSubscriptionEventTypeEnum = typeof ZapierSubscriptionEventTypeEnum[keyof typeof ZapierSubscriptionEventTypeEnum];
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the ZapierSubscription interface.
|
|
48
|
+
*/
|
|
49
|
+
export declare function instanceOfZapierSubscription(value: object): value is ZapierSubscription;
|
|
50
|
+
export declare function ZapierSubscriptionFromJSON(json: any): ZapierSubscription;
|
|
51
|
+
export declare function ZapierSubscriptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ZapierSubscription;
|
|
52
|
+
export declare function ZapierSubscriptionToJSON(json: any): ZapierSubscription;
|
|
53
|
+
export declare function ZapierSubscriptionToJSONTyped(value?: ZapierSubscription | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const ZapierSubscriptionEventTypeEnum = {
|
|
18
|
+
ComEdaxuEnrollmentEnrolledV1: 'com.edaxu.enrollment.enrolled.v1',
|
|
19
|
+
ComEdaxuEnrollmentCompletedV1: 'com.edaxu.enrollment.completed.v1',
|
|
20
|
+
ComEdaxuCertificateIssuedV1: 'com.edaxu.certificate.issued.v1'
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ZapierSubscription interface.
|
|
24
|
+
*/
|
|
25
|
+
export function instanceOfZapierSubscription(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('eventType' in value) || value['eventType'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
export function ZapierSubscriptionFromJSON(json) {
|
|
35
|
+
return ZapierSubscriptionFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function ZapierSubscriptionFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'id': json['id'],
|
|
43
|
+
'eventType': json['event_type'],
|
|
44
|
+
'createdAt': (new Date(json['created_at'])),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
export function ZapierSubscriptionToJSON(json) {
|
|
48
|
+
return ZapierSubscriptionToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
export function ZapierSubscriptionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'id': value['id'],
|
|
56
|
+
'event_type': value['eventType'],
|
|
57
|
+
'created_at': value['createdAt'].toISOString(),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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 ZapierUser
|
|
16
|
+
*/
|
|
17
|
+
export interface ZapierUser {
|
|
18
|
+
/**
|
|
19
|
+
* Stable external user ID.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ZapierUser
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ZapierUser
|
|
28
|
+
*/
|
|
29
|
+
email: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ZapierUser
|
|
34
|
+
*/
|
|
35
|
+
firstName: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ZapierUser
|
|
40
|
+
*/
|
|
41
|
+
lastName: string;
|
|
42
|
+
/**
|
|
43
|
+
* True when this request created and invited the learner.
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof ZapierUser
|
|
46
|
+
*/
|
|
47
|
+
created: boolean;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the ZapierUser interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfZapierUser(value: object): value is ZapierUser;
|
|
53
|
+
export declare function ZapierUserFromJSON(json: any): ZapierUser;
|
|
54
|
+
export declare function ZapierUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): ZapierUser;
|
|
55
|
+
export declare function ZapierUserToJSON(json: any): ZapierUser;
|
|
56
|
+
export declare function ZapierUserToJSONTyped(value?: ZapierUser | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the ZapierUser interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfZapierUser(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('firstName' in value) || value['firstName'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('lastName' in value) || value['lastName'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('created' in value) || value['created'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
export function ZapierUserFromJSON(json) {
|
|
31
|
+
return ZapierUserFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
export function ZapierUserFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'id': json['id'],
|
|
39
|
+
'email': json['email'],
|
|
40
|
+
'firstName': json['first_name'],
|
|
41
|
+
'lastName': json['last_name'],
|
|
42
|
+
'created': json['created'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export function ZapierUserToJSON(json) {
|
|
46
|
+
return ZapierUserToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
export function ZapierUserToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'id': value['id'],
|
|
54
|
+
'email': value['email'],
|
|
55
|
+
'first_name': value['firstName'],
|
|
56
|
+
'last_name': value['lastName'],
|
|
57
|
+
'created': value['created'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -40,6 +40,7 @@ export * from './CourseCatalog';
|
|
|
40
40
|
export * from './CourseProgressionMode';
|
|
41
41
|
export * from './CourseShare';
|
|
42
42
|
export * from './CourseShareAcceptError';
|
|
43
|
+
export * from './CustomWebhookIntegration';
|
|
43
44
|
export * from './EffectiveCertificateConfig';
|
|
44
45
|
export * from './EmailTemplateDefinition';
|
|
45
46
|
export * from './EmailTemplateScope';
|
|
@@ -159,8 +160,18 @@ export * from './GetUserCourseListItemCourse';
|
|
|
159
160
|
export * from './GetUserCourseListItemEnrollment';
|
|
160
161
|
export * from './GetUserCourseListItemProgress';
|
|
161
162
|
export * from './GetUserRole';
|
|
163
|
+
export * from './GetZapierCourses';
|
|
162
164
|
export * from './GetZapierMe';
|
|
163
165
|
export * from './GetZapierSetup';
|
|
166
|
+
export * from './GetZapierShopifyCourseMappings';
|
|
167
|
+
export * from './GetZapierUsers';
|
|
168
|
+
export * from './IntegrationEvent';
|
|
169
|
+
export * from './IntegrationEventCertificate';
|
|
170
|
+
export * from './IntegrationEventCourse';
|
|
171
|
+
export * from './IntegrationEventData';
|
|
172
|
+
export * from './IntegrationEventEnrollment';
|
|
173
|
+
export * from './IntegrationEventLearner';
|
|
174
|
+
export * from './IntegrationEventPortal';
|
|
164
175
|
export * from './LearnerExperienceVersion';
|
|
165
176
|
export * from './LibraryQuizCriteriaPreviewQuestion';
|
|
166
177
|
export * from './LibraryQuizCriterion';
|
|
@@ -212,6 +223,7 @@ export * from './PostCourseVersionItemSession';
|
|
|
212
223
|
export * from './PostCourseVersionPublish';
|
|
213
224
|
export * from './PostCourseVersionSection';
|
|
214
225
|
export * from './PostCourseVersionSectionDuplicate';
|
|
226
|
+
export * from './PostCustomWebhookIntegration';
|
|
215
227
|
export * from './PostDuplicate';
|
|
216
228
|
export * from './PostEmailAssetComplete';
|
|
217
229
|
export * from './PostEmailAssetUpload';
|
|
@@ -252,8 +264,14 @@ export * from './PostSignupRequest';
|
|
|
252
264
|
export * from './PostSignupRequestResponse';
|
|
253
265
|
export * from './PostSupportTicket';
|
|
254
266
|
export * from './PostSupportTicketComment';
|
|
267
|
+
export * from './PostZapierEnrollment';
|
|
255
268
|
export * from './PostZapierSetup';
|
|
256
269
|
export * from './PostZapierSetupResponse';
|
|
270
|
+
export * from './PostZapierShopifyCourseMapping';
|
|
271
|
+
export * from './PostZapierShopifyEnrollment';
|
|
272
|
+
export * from './PostZapierShopifyEnrollmentResponse';
|
|
273
|
+
export * from './PostZapierSubscription';
|
|
274
|
+
export * from './PostZapierUser';
|
|
257
275
|
export * from './ProgressionGateError';
|
|
258
276
|
export * from './ProgressionLockReason';
|
|
259
277
|
export * from './PutAttemptAllowance';
|
|
@@ -270,6 +288,7 @@ export * from './PutCourseVersionDraft';
|
|
|
270
288
|
export * from './PutCourseVersionItem';
|
|
271
289
|
export * from './PutCourseVersionOutlineEntryMove';
|
|
272
290
|
export * from './PutCourseVersionSection';
|
|
291
|
+
export * from './PutCustomWebhookIntegration';
|
|
273
292
|
export * from './PutEmailTemplateDraft';
|
|
274
293
|
export * from './PutLearnerExperienceDraft';
|
|
275
294
|
export * from './PutLibraryQuiz';
|
|
@@ -312,4 +331,9 @@ export * from './SupportTicketUser';
|
|
|
312
331
|
export * from './UpdateSelectedPortalResponse';
|
|
313
332
|
export * from './UpdateSelectedPortalResponseHostPortal';
|
|
314
333
|
export * from './UpdateSelectedPortalResponseSelectedPortal';
|
|
334
|
+
export * from './ZapierCourse';
|
|
335
|
+
export * from './ZapierEnrollment';
|
|
315
336
|
export * from './ZapierIntegration';
|
|
337
|
+
export * from './ZapierShopifyCourseMapping';
|
|
338
|
+
export * from './ZapierSubscription';
|
|
339
|
+
export * from './ZapierUser';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -42,6 +42,7 @@ export * from './CourseCatalog';
|
|
|
42
42
|
export * from './CourseProgressionMode';
|
|
43
43
|
export * from './CourseShare';
|
|
44
44
|
export * from './CourseShareAcceptError';
|
|
45
|
+
export * from './CustomWebhookIntegration';
|
|
45
46
|
export * from './EffectiveCertificateConfig';
|
|
46
47
|
export * from './EmailTemplateDefinition';
|
|
47
48
|
export * from './EmailTemplateScope';
|
|
@@ -161,8 +162,18 @@ export * from './GetUserCourseListItemCourse';
|
|
|
161
162
|
export * from './GetUserCourseListItemEnrollment';
|
|
162
163
|
export * from './GetUserCourseListItemProgress';
|
|
163
164
|
export * from './GetUserRole';
|
|
165
|
+
export * from './GetZapierCourses';
|
|
164
166
|
export * from './GetZapierMe';
|
|
165
167
|
export * from './GetZapierSetup';
|
|
168
|
+
export * from './GetZapierShopifyCourseMappings';
|
|
169
|
+
export * from './GetZapierUsers';
|
|
170
|
+
export * from './IntegrationEvent';
|
|
171
|
+
export * from './IntegrationEventCertificate';
|
|
172
|
+
export * from './IntegrationEventCourse';
|
|
173
|
+
export * from './IntegrationEventData';
|
|
174
|
+
export * from './IntegrationEventEnrollment';
|
|
175
|
+
export * from './IntegrationEventLearner';
|
|
176
|
+
export * from './IntegrationEventPortal';
|
|
166
177
|
export * from './LearnerExperienceVersion';
|
|
167
178
|
export * from './LibraryQuizCriteriaPreviewQuestion';
|
|
168
179
|
export * from './LibraryQuizCriterion';
|
|
@@ -214,6 +225,7 @@ export * from './PostCourseVersionItemSession';
|
|
|
214
225
|
export * from './PostCourseVersionPublish';
|
|
215
226
|
export * from './PostCourseVersionSection';
|
|
216
227
|
export * from './PostCourseVersionSectionDuplicate';
|
|
228
|
+
export * from './PostCustomWebhookIntegration';
|
|
217
229
|
export * from './PostDuplicate';
|
|
218
230
|
export * from './PostEmailAssetComplete';
|
|
219
231
|
export * from './PostEmailAssetUpload';
|
|
@@ -254,8 +266,14 @@ export * from './PostSignupRequest';
|
|
|
254
266
|
export * from './PostSignupRequestResponse';
|
|
255
267
|
export * from './PostSupportTicket';
|
|
256
268
|
export * from './PostSupportTicketComment';
|
|
269
|
+
export * from './PostZapierEnrollment';
|
|
257
270
|
export * from './PostZapierSetup';
|
|
258
271
|
export * from './PostZapierSetupResponse';
|
|
272
|
+
export * from './PostZapierShopifyCourseMapping';
|
|
273
|
+
export * from './PostZapierShopifyEnrollment';
|
|
274
|
+
export * from './PostZapierShopifyEnrollmentResponse';
|
|
275
|
+
export * from './PostZapierSubscription';
|
|
276
|
+
export * from './PostZapierUser';
|
|
259
277
|
export * from './ProgressionGateError';
|
|
260
278
|
export * from './ProgressionLockReason';
|
|
261
279
|
export * from './PutAttemptAllowance';
|
|
@@ -272,6 +290,7 @@ export * from './PutCourseVersionDraft';
|
|
|
272
290
|
export * from './PutCourseVersionItem';
|
|
273
291
|
export * from './PutCourseVersionOutlineEntryMove';
|
|
274
292
|
export * from './PutCourseVersionSection';
|
|
293
|
+
export * from './PutCustomWebhookIntegration';
|
|
275
294
|
export * from './PutEmailTemplateDraft';
|
|
276
295
|
export * from './PutLearnerExperienceDraft';
|
|
277
296
|
export * from './PutLibraryQuiz';
|
|
@@ -314,4 +333,9 @@ export * from './SupportTicketUser';
|
|
|
314
333
|
export * from './UpdateSelectedPortalResponse';
|
|
315
334
|
export * from './UpdateSelectedPortalResponseHostPortal';
|
|
316
335
|
export * from './UpdateSelectedPortalResponseSelectedPortal';
|
|
336
|
+
export * from './ZapierCourse';
|
|
337
|
+
export * from './ZapierEnrollment';
|
|
317
338
|
export * from './ZapierIntegration';
|
|
339
|
+
export * from './ZapierShopifyCourseMapping';
|
|
340
|
+
export * from './ZapierSubscription';
|
|
341
|
+
export * from './ZapierUser';
|
|
@@ -0,0 +1,83 @@
|
|
|
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 CustomWebhookIntegration
|
|
16
|
+
*/
|
|
17
|
+
export interface CustomWebhookIntegration {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CustomWebhookIntegration
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CustomWebhookIntegration
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CustomWebhookIntegration
|
|
34
|
+
*/
|
|
35
|
+
targetUrl: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Set<CustomWebhookIntegrationEventTypesEnum>}
|
|
39
|
+
* @memberof CustomWebhookIntegration
|
|
40
|
+
*/
|
|
41
|
+
eventTypes: Set<CustomWebhookIntegrationEventTypesEnum>;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof CustomWebhookIntegration
|
|
46
|
+
*/
|
|
47
|
+
enabled: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* True when an encrypted bearer token is configured. The token is never returned.
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof CustomWebhookIntegration
|
|
52
|
+
*/
|
|
53
|
+
tokenConfigured: boolean;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Date}
|
|
57
|
+
* @memberof CustomWebhookIntegration
|
|
58
|
+
*/
|
|
59
|
+
createdAt: Date;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {Date}
|
|
63
|
+
* @memberof CustomWebhookIntegration
|
|
64
|
+
*/
|
|
65
|
+
updatedAt: Date;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* @export
|
|
69
|
+
*/
|
|
70
|
+
export declare const CustomWebhookIntegrationEventTypesEnum: {
|
|
71
|
+
readonly ComEdaxuEnrollmentEnrolledV1: "com.edaxu.enrollment.enrolled.v1";
|
|
72
|
+
readonly ComEdaxuEnrollmentCompletedV1: "com.edaxu.enrollment.completed.v1";
|
|
73
|
+
readonly ComEdaxuCertificateIssuedV1: "com.edaxu.certificate.issued.v1";
|
|
74
|
+
};
|
|
75
|
+
export type CustomWebhookIntegrationEventTypesEnum = typeof CustomWebhookIntegrationEventTypesEnum[keyof typeof CustomWebhookIntegrationEventTypesEnum];
|
|
76
|
+
/**
|
|
77
|
+
* Check if a given object implements the CustomWebhookIntegration interface.
|
|
78
|
+
*/
|
|
79
|
+
export declare function instanceOfCustomWebhookIntegration(value: object): value is CustomWebhookIntegration;
|
|
80
|
+
export declare function CustomWebhookIntegrationFromJSON(json: any): CustomWebhookIntegration;
|
|
81
|
+
export declare function CustomWebhookIntegrationFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomWebhookIntegration;
|
|
82
|
+
export declare function CustomWebhookIntegrationToJSON(json: any): CustomWebhookIntegration;
|
|
83
|
+
export declare function CustomWebhookIntegrationToJSONTyped(value?: CustomWebhookIntegration | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,87 @@
|
|
|
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.CustomWebhookIntegrationEventTypesEnum = void 0;
|
|
17
|
+
exports.instanceOfCustomWebhookIntegration = instanceOfCustomWebhookIntegration;
|
|
18
|
+
exports.CustomWebhookIntegrationFromJSON = CustomWebhookIntegrationFromJSON;
|
|
19
|
+
exports.CustomWebhookIntegrationFromJSONTyped = CustomWebhookIntegrationFromJSONTyped;
|
|
20
|
+
exports.CustomWebhookIntegrationToJSON = CustomWebhookIntegrationToJSON;
|
|
21
|
+
exports.CustomWebhookIntegrationToJSONTyped = CustomWebhookIntegrationToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.CustomWebhookIntegrationEventTypesEnum = {
|
|
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 CustomWebhookIntegration interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfCustomWebhookIntegration(value) {
|
|
34
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('targetUrl' in value) || value['targetUrl'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('eventTypes' in value) || value['eventTypes'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('enabled' in value) || value['enabled'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('tokenConfigured' in value) || value['tokenConfigured'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
function CustomWebhookIntegrationFromJSON(json) {
|
|
53
|
+
return CustomWebhookIntegrationFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function CustomWebhookIntegrationFromJSONTyped(json, ignoreDiscriminator) {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'id': json['id'],
|
|
61
|
+
'name': json['name'],
|
|
62
|
+
'targetUrl': json['target_url'],
|
|
63
|
+
'eventTypes': new Set(json['event_types']),
|
|
64
|
+
'enabled': json['enabled'],
|
|
65
|
+
'tokenConfigured': json['token_configured'],
|
|
66
|
+
'createdAt': (new Date(json['created_at'])),
|
|
67
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
function CustomWebhookIntegrationToJSON(json) {
|
|
71
|
+
return CustomWebhookIntegrationToJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
function CustomWebhookIntegrationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
74
|
+
if (value == null) {
|
|
75
|
+
return value;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
'id': value['id'],
|
|
79
|
+
'name': value['name'],
|
|
80
|
+
'target_url': value['targetUrl'],
|
|
81
|
+
'event_types': Array.from(value['eventTypes']),
|
|
82
|
+
'enabled': value['enabled'],
|
|
83
|
+
'token_configured': value['tokenConfigured'],
|
|
84
|
+
'created_at': value['createdAt'].toISOString(),
|
|
85
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
86
|
+
};
|
|
87
|
+
}
|