@easyedu/js-lsm-api 1.115.0 → 1.116.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +24 -0
- package/README.md +21 -2
- package/dist/apis/IntegrationApi.d.ts +132 -0
- package/dist/apis/IntegrationApi.js +378 -0
- package/dist/esm/apis/IntegrationApi.d.ts +132 -0
- package/dist/esm/apis/IntegrationApi.js +378 -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/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/PostZapierUser.d.ts +44 -0
- package/dist/esm/models/PostZapierUser.js +51 -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/ZapierUser.d.ts +56 -0
- package/dist/esm/models/ZapierUser.js +59 -0
- package/dist/esm/models/index.d.ts +12 -0
- package/dist/esm/models/index.js +12 -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/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/PostZapierUser.d.ts +44 -0
- package/dist/models/PostZapierUser.js +58 -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/ZapierUser.d.ts +56 -0
- package/dist/models/ZapierUser.js +66 -0
- package/dist/models/index.d.ts +12 -0
- package/dist/models/index.js +12 -0
- package/docs/GetZapierCourses.md +40 -0
- package/docs/GetZapierShopifyCourseMappings.md +34 -0
- package/docs/GetZapierUsers.md +34 -0
- package/docs/IntegrationApi.md +536 -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/PostZapierUser.md +38 -0
- package/docs/ZapierCourse.md +40 -0
- package/docs/ZapierEnrollment.md +48 -0
- package/docs/ZapierShopifyCourseMapping.md +46 -0
- package/docs/ZapierUser.md +42 -0
- package/package.json +1 -1
- package/src/apis/IntegrationApi.ts +579 -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/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/PostZapierUser.ts +84 -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/ZapierUser.ts +102 -0
- package/src/models/index.ts +12 -0
|
@@ -0,0 +1,106 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ZapierUser } from './ZapierUser';
|
|
17
|
+
import {
|
|
18
|
+
ZapierUserFromJSON,
|
|
19
|
+
ZapierUserFromJSONTyped,
|
|
20
|
+
ZapierUserToJSON,
|
|
21
|
+
ZapierUserToJSONTyped,
|
|
22
|
+
} from './ZapierUser';
|
|
23
|
+
import type { ZapierShopifyCourseMapping } from './ZapierShopifyCourseMapping';
|
|
24
|
+
import {
|
|
25
|
+
ZapierShopifyCourseMappingFromJSON,
|
|
26
|
+
ZapierShopifyCourseMappingFromJSONTyped,
|
|
27
|
+
ZapierShopifyCourseMappingToJSON,
|
|
28
|
+
ZapierShopifyCourseMappingToJSONTyped,
|
|
29
|
+
} from './ZapierShopifyCourseMapping';
|
|
30
|
+
import type { ZapierEnrollment } from './ZapierEnrollment';
|
|
31
|
+
import {
|
|
32
|
+
ZapierEnrollmentFromJSON,
|
|
33
|
+
ZapierEnrollmentFromJSONTyped,
|
|
34
|
+
ZapierEnrollmentToJSON,
|
|
35
|
+
ZapierEnrollmentToJSONTyped,
|
|
36
|
+
} from './ZapierEnrollment';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
* @interface PostZapierShopifyEnrollmentResponse
|
|
42
|
+
*/
|
|
43
|
+
export interface PostZapierShopifyEnrollmentResponse {
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {ZapierEnrollment}
|
|
47
|
+
* @memberof PostZapierShopifyEnrollmentResponse
|
|
48
|
+
*/
|
|
49
|
+
enrollment: ZapierEnrollment;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {ZapierUser}
|
|
53
|
+
* @memberof PostZapierShopifyEnrollmentResponse
|
|
54
|
+
*/
|
|
55
|
+
user: ZapierUser;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {ZapierShopifyCourseMapping}
|
|
59
|
+
* @memberof PostZapierShopifyEnrollmentResponse
|
|
60
|
+
*/
|
|
61
|
+
mapping: ZapierShopifyCourseMapping;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Check if a given object implements the PostZapierShopifyEnrollmentResponse interface.
|
|
66
|
+
*/
|
|
67
|
+
export function instanceOfPostZapierShopifyEnrollmentResponse(value: object): value is PostZapierShopifyEnrollmentResponse {
|
|
68
|
+
if (!('enrollment' in value) || value['enrollment'] === undefined) return false;
|
|
69
|
+
if (!('user' in value) || value['user'] === undefined) return false;
|
|
70
|
+
if (!('mapping' in value) || value['mapping'] === undefined) return false;
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function PostZapierShopifyEnrollmentResponseFromJSON(json: any): PostZapierShopifyEnrollmentResponse {
|
|
75
|
+
return PostZapierShopifyEnrollmentResponseFromJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function PostZapierShopifyEnrollmentResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostZapierShopifyEnrollmentResponse {
|
|
79
|
+
if (json == null) {
|
|
80
|
+
return json;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'enrollment': ZapierEnrollmentFromJSON(json['enrollment']),
|
|
85
|
+
'user': ZapierUserFromJSON(json['user']),
|
|
86
|
+
'mapping': ZapierShopifyCourseMappingFromJSON(json['mapping']),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function PostZapierShopifyEnrollmentResponseToJSON(json: any): PostZapierShopifyEnrollmentResponse {
|
|
91
|
+
return PostZapierShopifyEnrollmentResponseToJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function PostZapierShopifyEnrollmentResponseToJSONTyped(value?: PostZapierShopifyEnrollmentResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
95
|
+
if (value == null) {
|
|
96
|
+
return value;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
return {
|
|
100
|
+
|
|
101
|
+
'enrollment': ZapierEnrollmentToJSON(value['enrollment']),
|
|
102
|
+
'user': ZapierUserToJSON(value['user']),
|
|
103
|
+
'mapping': ZapierShopifyCourseMappingToJSON(value['mapping']),
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PostZapierUser
|
|
20
|
+
*/
|
|
21
|
+
export interface PostZapierUser {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PostZapierUser
|
|
26
|
+
*/
|
|
27
|
+
email: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PostZapierUser
|
|
32
|
+
*/
|
|
33
|
+
firstName: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof PostZapierUser
|
|
38
|
+
*/
|
|
39
|
+
lastName: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the PostZapierUser interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfPostZapierUser(value: object): value is PostZapierUser {
|
|
46
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
47
|
+
if (!('firstName' in value) || value['firstName'] === undefined) return false;
|
|
48
|
+
if (!('lastName' in value) || value['lastName'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function PostZapierUserFromJSON(json: any): PostZapierUser {
|
|
53
|
+
return PostZapierUserFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function PostZapierUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostZapierUser {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'email': json['email'],
|
|
63
|
+
'firstName': json['first_name'],
|
|
64
|
+
'lastName': json['last_name'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function PostZapierUserToJSON(json: any): PostZapierUser {
|
|
69
|
+
return PostZapierUserToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function PostZapierUserToJSONTyped(value?: PostZapierUser | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'email': value['email'],
|
|
80
|
+
'first_name': value['firstName'],
|
|
81
|
+
'last_name': value['lastName'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -0,0 +1,93 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ZapierCourse
|
|
20
|
+
*/
|
|
21
|
+
export interface ZapierCourse {
|
|
22
|
+
/**
|
|
23
|
+
* Stable external course ID.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ZapierCourse
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ZapierCourse
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ZapierCourse
|
|
38
|
+
*/
|
|
39
|
+
description: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {boolean}
|
|
43
|
+
* @memberof ZapierCourse
|
|
44
|
+
*/
|
|
45
|
+
published: boolean;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the ZapierCourse interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfZapierCourse(value: object): value is ZapierCourse {
|
|
52
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
53
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
54
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
55
|
+
if (!('published' in value) || value['published'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ZapierCourseFromJSON(json: any): ZapierCourse {
|
|
60
|
+
return ZapierCourseFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ZapierCourseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ZapierCourse {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'id': json['id'],
|
|
70
|
+
'name': json['name'],
|
|
71
|
+
'description': json['description'],
|
|
72
|
+
'published': json['published'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function ZapierCourseToJSON(json: any): ZapierCourse {
|
|
77
|
+
return ZapierCourseToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function ZapierCourseToJSONTyped(value?: ZapierCourse | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'id': value['id'],
|
|
88
|
+
'name': value['name'],
|
|
89
|
+
'description': value['description'],
|
|
90
|
+
'published': value['published'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
@@ -0,0 +1,128 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ZapierEnrollment
|
|
20
|
+
*/
|
|
21
|
+
export interface ZapierEnrollment {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ZapierEnrollment
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ZapierEnrollment
|
|
32
|
+
*/
|
|
33
|
+
courseId: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ZapierEnrollment
|
|
38
|
+
*/
|
|
39
|
+
userId: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof ZapierEnrollment
|
|
44
|
+
*/
|
|
45
|
+
status: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof ZapierEnrollment
|
|
50
|
+
*/
|
|
51
|
+
enrollmentDateStart: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof ZapierEnrollment
|
|
56
|
+
*/
|
|
57
|
+
enrollmentDateEnd?: number | null;
|
|
58
|
+
/**
|
|
59
|
+
* True when this request created or resumed an enrollment.
|
|
60
|
+
* @type {boolean}
|
|
61
|
+
* @memberof ZapierEnrollment
|
|
62
|
+
*/
|
|
63
|
+
created: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* True when a previous result was returned for a retried source event.
|
|
66
|
+
* @type {boolean}
|
|
67
|
+
* @memberof ZapierEnrollment
|
|
68
|
+
*/
|
|
69
|
+
idempotentReplay: boolean;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Check if a given object implements the ZapierEnrollment interface.
|
|
74
|
+
*/
|
|
75
|
+
export function instanceOfZapierEnrollment(value: object): value is ZapierEnrollment {
|
|
76
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
77
|
+
if (!('courseId' in value) || value['courseId'] === undefined) return false;
|
|
78
|
+
if (!('userId' in value) || value['userId'] === undefined) return false;
|
|
79
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
80
|
+
if (!('enrollmentDateStart' in value) || value['enrollmentDateStart'] === undefined) return false;
|
|
81
|
+
if (!('created' in value) || value['created'] === undefined) return false;
|
|
82
|
+
if (!('idempotentReplay' in value) || value['idempotentReplay'] === undefined) return false;
|
|
83
|
+
return true;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function ZapierEnrollmentFromJSON(json: any): ZapierEnrollment {
|
|
87
|
+
return ZapierEnrollmentFromJSONTyped(json, false);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function ZapierEnrollmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): ZapierEnrollment {
|
|
91
|
+
if (json == null) {
|
|
92
|
+
return json;
|
|
93
|
+
}
|
|
94
|
+
return {
|
|
95
|
+
|
|
96
|
+
'id': json['id'],
|
|
97
|
+
'courseId': json['course_id'],
|
|
98
|
+
'userId': json['user_id'],
|
|
99
|
+
'status': json['status'],
|
|
100
|
+
'enrollmentDateStart': json['enrollment_date_start'],
|
|
101
|
+
'enrollmentDateEnd': json['enrollment_date_end'] == null ? undefined : json['enrollment_date_end'],
|
|
102
|
+
'created': json['created'],
|
|
103
|
+
'idempotentReplay': json['idempotent_replay'],
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export function ZapierEnrollmentToJSON(json: any): ZapierEnrollment {
|
|
108
|
+
return ZapierEnrollmentToJSONTyped(json, false);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export function ZapierEnrollmentToJSONTyped(value?: ZapierEnrollment | null, ignoreDiscriminator: boolean = false): any {
|
|
112
|
+
if (value == null) {
|
|
113
|
+
return value;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
return {
|
|
117
|
+
|
|
118
|
+
'id': value['id'],
|
|
119
|
+
'course_id': value['courseId'],
|
|
120
|
+
'user_id': value['userId'],
|
|
121
|
+
'status': value['status'],
|
|
122
|
+
'enrollment_date_start': value['enrollmentDateStart'],
|
|
123
|
+
'enrollment_date_end': value['enrollmentDateEnd'],
|
|
124
|
+
'created': value['created'],
|
|
125
|
+
'idempotent_replay': value['idempotentReplay'],
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
|
|
@@ -0,0 +1,127 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ZapierCourse } from './ZapierCourse';
|
|
17
|
+
import {
|
|
18
|
+
ZapierCourseFromJSON,
|
|
19
|
+
ZapierCourseFromJSONTyped,
|
|
20
|
+
ZapierCourseToJSON,
|
|
21
|
+
ZapierCourseToJSONTyped,
|
|
22
|
+
} from './ZapierCourse';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ZapierShopifyCourseMapping
|
|
28
|
+
*/
|
|
29
|
+
export interface ZapierShopifyCourseMapping {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ZapierShopifyCourseMapping
|
|
34
|
+
*/
|
|
35
|
+
id: string;
|
|
36
|
+
/**
|
|
37
|
+
* Normalized Shopify store domain, such as example.myshopify.com.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ZapierShopifyCourseMapping
|
|
40
|
+
*/
|
|
41
|
+
shopDomain: string;
|
|
42
|
+
/**
|
|
43
|
+
* Shopify product variant ID.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ZapierShopifyCourseMapping
|
|
46
|
+
*/
|
|
47
|
+
variantId: string;
|
|
48
|
+
/**
|
|
49
|
+
* Optional Shopify product ID for display and troubleshooting.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof ZapierShopifyCourseMapping
|
|
52
|
+
*/
|
|
53
|
+
productId?: string | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {ZapierCourse}
|
|
57
|
+
* @memberof ZapierShopifyCourseMapping
|
|
58
|
+
*/
|
|
59
|
+
course: ZapierCourse;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof ZapierShopifyCourseMapping
|
|
64
|
+
*/
|
|
65
|
+
createdAt: number;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof ZapierShopifyCourseMapping
|
|
70
|
+
*/
|
|
71
|
+
updatedAt: number;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Check if a given object implements the ZapierShopifyCourseMapping interface.
|
|
76
|
+
*/
|
|
77
|
+
export function instanceOfZapierShopifyCourseMapping(value: object): value is ZapierShopifyCourseMapping {
|
|
78
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
79
|
+
if (!('shopDomain' in value) || value['shopDomain'] === undefined) return false;
|
|
80
|
+
if (!('variantId' in value) || value['variantId'] === undefined) return false;
|
|
81
|
+
if (!('course' in value) || value['course'] === undefined) return false;
|
|
82
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
83
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
84
|
+
return true;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function ZapierShopifyCourseMappingFromJSON(json: any): ZapierShopifyCourseMapping {
|
|
88
|
+
return ZapierShopifyCourseMappingFromJSONTyped(json, false);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function ZapierShopifyCourseMappingFromJSONTyped(json: any, ignoreDiscriminator: boolean): ZapierShopifyCourseMapping {
|
|
92
|
+
if (json == null) {
|
|
93
|
+
return json;
|
|
94
|
+
}
|
|
95
|
+
return {
|
|
96
|
+
|
|
97
|
+
'id': json['id'],
|
|
98
|
+
'shopDomain': json['shop_domain'],
|
|
99
|
+
'variantId': json['variant_id'],
|
|
100
|
+
'productId': json['product_id'] == null ? undefined : json['product_id'],
|
|
101
|
+
'course': ZapierCourseFromJSON(json['course']),
|
|
102
|
+
'createdAt': json['created_at'],
|
|
103
|
+
'updatedAt': json['updated_at'],
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export function ZapierShopifyCourseMappingToJSON(json: any): ZapierShopifyCourseMapping {
|
|
108
|
+
return ZapierShopifyCourseMappingToJSONTyped(json, false);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export function ZapierShopifyCourseMappingToJSONTyped(value?: ZapierShopifyCourseMapping | null, ignoreDiscriminator: boolean = false): any {
|
|
112
|
+
if (value == null) {
|
|
113
|
+
return value;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
return {
|
|
117
|
+
|
|
118
|
+
'id': value['id'],
|
|
119
|
+
'shop_domain': value['shopDomain'],
|
|
120
|
+
'variant_id': value['variantId'],
|
|
121
|
+
'product_id': value['productId'],
|
|
122
|
+
'course': ZapierCourseToJSON(value['course']),
|
|
123
|
+
'created_at': value['createdAt'],
|
|
124
|
+
'updated_at': value['updatedAt'],
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
|
|
@@ -0,0 +1,102 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ZapierUser
|
|
20
|
+
*/
|
|
21
|
+
export interface ZapierUser {
|
|
22
|
+
/**
|
|
23
|
+
* Stable external user ID.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ZapierUser
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ZapierUser
|
|
32
|
+
*/
|
|
33
|
+
email: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ZapierUser
|
|
38
|
+
*/
|
|
39
|
+
firstName: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof ZapierUser
|
|
44
|
+
*/
|
|
45
|
+
lastName: string;
|
|
46
|
+
/**
|
|
47
|
+
* True when this request created and invited the learner.
|
|
48
|
+
* @type {boolean}
|
|
49
|
+
* @memberof ZapierUser
|
|
50
|
+
*/
|
|
51
|
+
created: boolean;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the ZapierUser interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfZapierUser(value: object): value is ZapierUser {
|
|
58
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
59
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
60
|
+
if (!('firstName' in value) || value['firstName'] === undefined) return false;
|
|
61
|
+
if (!('lastName' in value) || value['lastName'] === undefined) return false;
|
|
62
|
+
if (!('created' in value) || value['created'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function ZapierUserFromJSON(json: any): ZapierUser {
|
|
67
|
+
return ZapierUserFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ZapierUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): ZapierUser {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'id': json['id'],
|
|
77
|
+
'email': json['email'],
|
|
78
|
+
'firstName': json['first_name'],
|
|
79
|
+
'lastName': json['last_name'],
|
|
80
|
+
'created': json['created'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function ZapierUserToJSON(json: any): ZapierUser {
|
|
85
|
+
return ZapierUserToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function ZapierUserToJSONTyped(value?: ZapierUser | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'id': value['id'],
|
|
96
|
+
'email': value['email'],
|
|
97
|
+
'first_name': value['firstName'],
|
|
98
|
+
'last_name': value['lastName'],
|
|
99
|
+
'created': value['created'],
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -161,8 +161,11 @@ export * from './GetUserCourseListItemCourse';
|
|
|
161
161
|
export * from './GetUserCourseListItemEnrollment';
|
|
162
162
|
export * from './GetUserCourseListItemProgress';
|
|
163
163
|
export * from './GetUserRole';
|
|
164
|
+
export * from './GetZapierCourses';
|
|
164
165
|
export * from './GetZapierMe';
|
|
165
166
|
export * from './GetZapierSetup';
|
|
167
|
+
export * from './GetZapierShopifyCourseMappings';
|
|
168
|
+
export * from './GetZapierUsers';
|
|
166
169
|
export * from './LearnerExperienceVersion';
|
|
167
170
|
export * from './LibraryQuizCriteriaPreviewQuestion';
|
|
168
171
|
export * from './LibraryQuizCriterion';
|
|
@@ -254,8 +257,13 @@ export * from './PostSignupRequest';
|
|
|
254
257
|
export * from './PostSignupRequestResponse';
|
|
255
258
|
export * from './PostSupportTicket';
|
|
256
259
|
export * from './PostSupportTicketComment';
|
|
260
|
+
export * from './PostZapierEnrollment';
|
|
257
261
|
export * from './PostZapierSetup';
|
|
258
262
|
export * from './PostZapierSetupResponse';
|
|
263
|
+
export * from './PostZapierShopifyCourseMapping';
|
|
264
|
+
export * from './PostZapierShopifyEnrollment';
|
|
265
|
+
export * from './PostZapierShopifyEnrollmentResponse';
|
|
266
|
+
export * from './PostZapierUser';
|
|
259
267
|
export * from './ProgressionGateError';
|
|
260
268
|
export * from './ProgressionLockReason';
|
|
261
269
|
export * from './PutAttemptAllowance';
|
|
@@ -314,4 +322,8 @@ export * from './SupportTicketUser';
|
|
|
314
322
|
export * from './UpdateSelectedPortalResponse';
|
|
315
323
|
export * from './UpdateSelectedPortalResponseHostPortal';
|
|
316
324
|
export * from './UpdateSelectedPortalResponseSelectedPortal';
|
|
325
|
+
export * from './ZapierCourse';
|
|
326
|
+
export * from './ZapierEnrollment';
|
|
317
327
|
export * from './ZapierIntegration';
|
|
328
|
+
export * from './ZapierShopifyCourseMapping';
|
|
329
|
+
export * from './ZapierUser';
|