@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.
Files changed (158) hide show
  1. package/.openapi-generator/FILES +48 -0
  2. package/README.md +40 -2
  3. package/dist/apis/IntegrationApi.d.ts +257 -0
  4. package/dist/apis/IntegrationApi.js +708 -1
  5. package/dist/esm/apis/IntegrationApi.d.ts +257 -0
  6. package/dist/esm/apis/IntegrationApi.js +707 -0
  7. package/dist/esm/models/CustomWebhookIntegration.d.ts +83 -0
  8. package/dist/esm/models/CustomWebhookIntegration.js +79 -0
  9. package/dist/esm/models/GetZapierCourses.d.ts +51 -0
  10. package/dist/esm/models/GetZapierCourses.js +56 -0
  11. package/dist/esm/models/GetZapierShopifyCourseMappings.d.ts +33 -0
  12. package/dist/esm/models/GetZapierShopifyCourseMappings.js +44 -0
  13. package/dist/esm/models/GetZapierUsers.d.ts +33 -0
  14. package/dist/esm/models/GetZapierUsers.js +44 -0
  15. package/dist/esm/models/IntegrationEvent.d.ts +98 -0
  16. package/dist/esm/models/IntegrationEvent.js +92 -0
  17. package/dist/esm/models/IntegrationEventCertificate.d.ts +78 -0
  18. package/dist/esm/models/IntegrationEventCertificate.js +76 -0
  19. package/dist/esm/models/IntegrationEventCourse.d.ts +38 -0
  20. package/dist/esm/models/IntegrationEventCourse.js +47 -0
  21. package/dist/esm/models/IntegrationEventData.d.ts +61 -0
  22. package/dist/esm/models/IntegrationEventData.js +64 -0
  23. package/dist/esm/models/IntegrationEventEnrollment.d.ts +71 -0
  24. package/dist/esm/models/IntegrationEventEnrollment.js +71 -0
  25. package/dist/esm/models/IntegrationEventLearner.d.ts +50 -0
  26. package/dist/esm/models/IntegrationEventLearner.js +55 -0
  27. package/dist/esm/models/IntegrationEventPortal.d.ts +44 -0
  28. package/dist/esm/models/IntegrationEventPortal.js +51 -0
  29. package/dist/esm/models/PostCustomWebhookIntegration.d.ts +65 -0
  30. package/dist/esm/models/PostCustomWebhookIntegration.js +65 -0
  31. package/dist/esm/models/PostZapierEnrollment.d.ts +76 -0
  32. package/dist/esm/models/PostZapierEnrollment.js +64 -0
  33. package/dist/esm/models/PostZapierShopifyCourseMapping.d.ts +50 -0
  34. package/dist/esm/models/PostZapierShopifyCourseMapping.js +53 -0
  35. package/dist/esm/models/PostZapierShopifyEnrollment.d.ts +100 -0
  36. package/dist/esm/models/PostZapierShopifyEnrollment.js +82 -0
  37. package/dist/esm/models/PostZapierShopifyEnrollmentResponse.d.ts +47 -0
  38. package/dist/esm/models/PostZapierShopifyEnrollmentResponse.js +54 -0
  39. package/dist/esm/models/PostZapierSubscription.d.ts +53 -0
  40. package/dist/esm/models/PostZapierSubscription.js +57 -0
  41. package/dist/esm/models/PostZapierUser.d.ts +44 -0
  42. package/dist/esm/models/PostZapierUser.js +51 -0
  43. package/dist/esm/models/PutCustomWebhookIntegration.d.ts +65 -0
  44. package/dist/esm/models/PutCustomWebhookIntegration.js +57 -0
  45. package/dist/esm/models/ZapierCourse.d.ts +50 -0
  46. package/dist/esm/models/ZapierCourse.js +55 -0
  47. package/dist/esm/models/ZapierEnrollment.d.ts +74 -0
  48. package/dist/esm/models/ZapierEnrollment.js +69 -0
  49. package/dist/esm/models/ZapierShopifyCourseMapping.d.ts +69 -0
  50. package/dist/esm/models/ZapierShopifyCourseMapping.js +66 -0
  51. package/dist/esm/models/ZapierSubscription.d.ts +53 -0
  52. package/dist/esm/models/ZapierSubscription.js +59 -0
  53. package/dist/esm/models/ZapierUser.d.ts +56 -0
  54. package/dist/esm/models/ZapierUser.js +59 -0
  55. package/dist/esm/models/index.d.ts +24 -0
  56. package/dist/esm/models/index.js +24 -0
  57. package/dist/models/CustomWebhookIntegration.d.ts +83 -0
  58. package/dist/models/CustomWebhookIntegration.js +87 -0
  59. package/dist/models/GetZapierCourses.d.ts +51 -0
  60. package/dist/models/GetZapierCourses.js +63 -0
  61. package/dist/models/GetZapierShopifyCourseMappings.d.ts +33 -0
  62. package/dist/models/GetZapierShopifyCourseMappings.js +51 -0
  63. package/dist/models/GetZapierUsers.d.ts +33 -0
  64. package/dist/models/GetZapierUsers.js +51 -0
  65. package/dist/models/IntegrationEvent.d.ts +98 -0
  66. package/dist/models/IntegrationEvent.js +100 -0
  67. package/dist/models/IntegrationEventCertificate.d.ts +78 -0
  68. package/dist/models/IntegrationEventCertificate.js +84 -0
  69. package/dist/models/IntegrationEventCourse.d.ts +38 -0
  70. package/dist/models/IntegrationEventCourse.js +54 -0
  71. package/dist/models/IntegrationEventData.d.ts +61 -0
  72. package/dist/models/IntegrationEventData.js +71 -0
  73. package/dist/models/IntegrationEventEnrollment.d.ts +71 -0
  74. package/dist/models/IntegrationEventEnrollment.js +79 -0
  75. package/dist/models/IntegrationEventLearner.d.ts +50 -0
  76. package/dist/models/IntegrationEventLearner.js +62 -0
  77. package/dist/models/IntegrationEventPortal.d.ts +44 -0
  78. package/dist/models/IntegrationEventPortal.js +58 -0
  79. package/dist/models/PostCustomWebhookIntegration.d.ts +65 -0
  80. package/dist/models/PostCustomWebhookIntegration.js +73 -0
  81. package/dist/models/PostZapierEnrollment.d.ts +76 -0
  82. package/dist/models/PostZapierEnrollment.js +72 -0
  83. package/dist/models/PostZapierShopifyCourseMapping.d.ts +50 -0
  84. package/dist/models/PostZapierShopifyCourseMapping.js +60 -0
  85. package/dist/models/PostZapierShopifyEnrollment.d.ts +100 -0
  86. package/dist/models/PostZapierShopifyEnrollment.js +90 -0
  87. package/dist/models/PostZapierShopifyEnrollmentResponse.d.ts +47 -0
  88. package/dist/models/PostZapierShopifyEnrollmentResponse.js +61 -0
  89. package/dist/models/PostZapierSubscription.d.ts +53 -0
  90. package/dist/models/PostZapierSubscription.js +65 -0
  91. package/dist/models/PostZapierUser.d.ts +44 -0
  92. package/dist/models/PostZapierUser.js +58 -0
  93. package/dist/models/PutCustomWebhookIntegration.d.ts +65 -0
  94. package/dist/models/PutCustomWebhookIntegration.js +65 -0
  95. package/dist/models/ZapierCourse.d.ts +50 -0
  96. package/dist/models/ZapierCourse.js +62 -0
  97. package/dist/models/ZapierEnrollment.d.ts +74 -0
  98. package/dist/models/ZapierEnrollment.js +76 -0
  99. package/dist/models/ZapierShopifyCourseMapping.d.ts +69 -0
  100. package/dist/models/ZapierShopifyCourseMapping.js +73 -0
  101. package/dist/models/ZapierSubscription.d.ts +53 -0
  102. package/dist/models/ZapierSubscription.js +67 -0
  103. package/dist/models/ZapierUser.d.ts +56 -0
  104. package/dist/models/ZapierUser.js +66 -0
  105. package/dist/models/index.d.ts +24 -0
  106. package/dist/models/index.js +24 -0
  107. package/docs/CustomWebhookIntegration.md +48 -0
  108. package/docs/GetZapierCourses.md +40 -0
  109. package/docs/GetZapierShopifyCourseMappings.md +34 -0
  110. package/docs/GetZapierUsers.md +34 -0
  111. package/docs/IntegrationApi.md +1060 -30
  112. package/docs/IntegrationEvent.md +49 -0
  113. package/docs/IntegrationEventCertificate.md +46 -0
  114. package/docs/IntegrationEventCourse.md +36 -0
  115. package/docs/IntegrationEventData.md +42 -0
  116. package/docs/IntegrationEventEnrollment.md +44 -0
  117. package/docs/IntegrationEventLearner.md +40 -0
  118. package/docs/IntegrationEventPortal.md +38 -0
  119. package/docs/PostCustomWebhookIntegration.md +42 -0
  120. package/docs/PostZapierEnrollment.md +46 -0
  121. package/docs/PostZapierShopifyCourseMapping.md +40 -0
  122. package/docs/PostZapierShopifyEnrollment.md +54 -0
  123. package/docs/PostZapierShopifyEnrollmentResponse.md +38 -0
  124. package/docs/PostZapierSubscription.md +38 -0
  125. package/docs/PostZapierUser.md +38 -0
  126. package/docs/PutCustomWebhookIntegration.md +42 -0
  127. package/docs/ZapierCourse.md +40 -0
  128. package/docs/ZapierEnrollment.md +48 -0
  129. package/docs/ZapierShopifyCourseMapping.md +46 -0
  130. package/docs/ZapierSubscription.md +38 -0
  131. package/docs/ZapierUser.md +42 -0
  132. package/package.json +1 -1
  133. package/src/apis/IntegrationApi.ts +1104 -61
  134. package/src/models/CustomWebhookIntegration.ts +141 -0
  135. package/src/models/GetZapierCourses.ts +101 -0
  136. package/src/models/GetZapierShopifyCourseMappings.ts +74 -0
  137. package/src/models/GetZapierUsers.ts +74 -0
  138. package/src/models/IntegrationEvent.ts +165 -0
  139. package/src/models/IntegrationEventCertificate.ts +133 -0
  140. package/src/models/IntegrationEventCourse.ts +75 -0
  141. package/src/models/IntegrationEventData.ts +138 -0
  142. package/src/models/IntegrationEventEnrollment.ts +123 -0
  143. package/src/models/IntegrationEventLearner.ts +93 -0
  144. package/src/models/IntegrationEventPortal.ts +84 -0
  145. package/src/models/PostCustomWebhookIntegration.ts +113 -0
  146. package/src/models/PostZapierEnrollment.ts +126 -0
  147. package/src/models/PostZapierShopifyCourseMapping.ts +92 -0
  148. package/src/models/PostZapierShopifyEnrollment.ts +163 -0
  149. package/src/models/PostZapierShopifyEnrollmentResponse.ts +106 -0
  150. package/src/models/PostZapierSubscription.ts +95 -0
  151. package/src/models/PostZapierUser.ts +84 -0
  152. package/src/models/PutCustomWebhookIntegration.ts +109 -0
  153. package/src/models/ZapierCourse.ts +93 -0
  154. package/src/models/ZapierEnrollment.ts +128 -0
  155. package/src/models/ZapierShopifyCourseMapping.ts +127 -0
  156. package/src/models/ZapierSubscription.ts +96 -0
  157. package/src/models/ZapierUser.ts +102 -0
  158. package/src/models/index.ts +24 -0
@@ -0,0 +1,51 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the IntegrationEventPortal interface.
16
+ */
17
+ export function instanceOfIntegrationEventPortal(value) {
18
+ if (!('id' in value) || value['id'] === undefined)
19
+ return false;
20
+ if (!('name' in value) || value['name'] === undefined)
21
+ return false;
22
+ if (!('subdomain' in value) || value['subdomain'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function IntegrationEventPortalFromJSON(json) {
27
+ return IntegrationEventPortalFromJSONTyped(json, false);
28
+ }
29
+ export function IntegrationEventPortalFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'id': json['id'],
35
+ 'name': json['name'],
36
+ 'subdomain': json['subdomain'],
37
+ };
38
+ }
39
+ export function IntegrationEventPortalToJSON(json) {
40
+ return IntegrationEventPortalToJSONTyped(json, false);
41
+ }
42
+ export function IntegrationEventPortalToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'id': value['id'],
48
+ 'name': value['name'],
49
+ 'subdomain': value['subdomain'],
50
+ };
51
+ }
@@ -0,0 +1,65 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface PostCustomWebhookIntegration
16
+ */
17
+ export interface PostCustomWebhookIntegration {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PostCustomWebhookIntegration
22
+ */
23
+ name: string;
24
+ /**
25
+ * Public HTTPS endpoint that receives CloudEvents JSON payloads.
26
+ * @type {string}
27
+ * @memberof PostCustomWebhookIntegration
28
+ */
29
+ targetUrl: string;
30
+ /**
31
+ * Secret sent in the Authorization header as a Bearer token.
32
+ * @type {string}
33
+ * @memberof PostCustomWebhookIntegration
34
+ */
35
+ bearerToken: string;
36
+ /**
37
+ *
38
+ * @type {Set<PostCustomWebhookIntegrationEventTypesEnum>}
39
+ * @memberof PostCustomWebhookIntegration
40
+ */
41
+ eventTypes: Set<PostCustomWebhookIntegrationEventTypesEnum>;
42
+ /**
43
+ *
44
+ * @type {boolean}
45
+ * @memberof PostCustomWebhookIntegration
46
+ */
47
+ enabled?: boolean;
48
+ }
49
+ /**
50
+ * @export
51
+ */
52
+ export declare const PostCustomWebhookIntegrationEventTypesEnum: {
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 PostCustomWebhookIntegrationEventTypesEnum = typeof PostCustomWebhookIntegrationEventTypesEnum[keyof typeof PostCustomWebhookIntegrationEventTypesEnum];
58
+ /**
59
+ * Check if a given object implements the PostCustomWebhookIntegration interface.
60
+ */
61
+ export declare function instanceOfPostCustomWebhookIntegration(value: object): value is PostCustomWebhookIntegration;
62
+ export declare function PostCustomWebhookIntegrationFromJSON(json: any): PostCustomWebhookIntegration;
63
+ export declare function PostCustomWebhookIntegrationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostCustomWebhookIntegration;
64
+ export declare function PostCustomWebhookIntegrationToJSON(json: any): PostCustomWebhookIntegration;
65
+ export declare function PostCustomWebhookIntegrationToJSONTyped(value?: PostCustomWebhookIntegration | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,65 @@
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 PostCustomWebhookIntegrationEventTypesEnum = {
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 PostCustomWebhookIntegration interface.
24
+ */
25
+ export function instanceOfPostCustomWebhookIntegration(value) {
26
+ if (!('name' in value) || value['name'] === undefined)
27
+ return false;
28
+ if (!('targetUrl' in value) || value['targetUrl'] === undefined)
29
+ return false;
30
+ if (!('bearerToken' in value) || value['bearerToken'] === undefined)
31
+ return false;
32
+ if (!('eventTypes' in value) || value['eventTypes'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ export function PostCustomWebhookIntegrationFromJSON(json) {
37
+ return PostCustomWebhookIntegrationFromJSONTyped(json, false);
38
+ }
39
+ export function PostCustomWebhookIntegrationFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'name': json['name'],
45
+ 'targetUrl': json['target_url'],
46
+ 'bearerToken': json['bearer_token'],
47
+ 'eventTypes': new Set(json['event_types']),
48
+ 'enabled': json['enabled'] == null ? undefined : json['enabled'],
49
+ };
50
+ }
51
+ export function PostCustomWebhookIntegrationToJSON(json) {
52
+ return PostCustomWebhookIntegrationToJSONTyped(json, false);
53
+ }
54
+ export function PostCustomWebhookIntegrationToJSONTyped(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': Array.from(value['eventTypes']),
63
+ 'enabled': value['enabled'],
64
+ };
65
+ }
@@ -0,0 +1,76 @@
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 PostZapierEnrollment
16
+ */
17
+ export interface PostZapierEnrollment {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PostZapierEnrollment
22
+ */
23
+ courseId: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof PostZapierEnrollment
28
+ */
29
+ userId: string;
30
+ /**
31
+ * Stable source event ID used to make retries safe.
32
+ * @type {string}
33
+ * @memberof PostZapierEnrollment
34
+ */
35
+ idempotencyKey?: string | null;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof PostZapierEnrollment
40
+ */
41
+ enrollmentDateStart?: number | null;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof PostZapierEnrollment
46
+ */
47
+ enrollmentDateEnd?: number | null;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof PostZapierEnrollment
52
+ */
53
+ notes?: string | null;
54
+ /**
55
+ *
56
+ * @type {PostZapierEnrollmentReEnrollmentModeEnum}
57
+ * @memberof PostZapierEnrollment
58
+ */
59
+ reEnrollmentMode?: PostZapierEnrollmentReEnrollmentModeEnum;
60
+ }
61
+ /**
62
+ * @export
63
+ */
64
+ export declare const PostZapierEnrollmentReEnrollmentModeEnum: {
65
+ readonly Restart: "restart";
66
+ readonly Resume: "resume";
67
+ };
68
+ export type PostZapierEnrollmentReEnrollmentModeEnum = typeof PostZapierEnrollmentReEnrollmentModeEnum[keyof typeof PostZapierEnrollmentReEnrollmentModeEnum];
69
+ /**
70
+ * Check if a given object implements the PostZapierEnrollment interface.
71
+ */
72
+ export declare function instanceOfPostZapierEnrollment(value: object): value is PostZapierEnrollment;
73
+ export declare function PostZapierEnrollmentFromJSON(json: any): PostZapierEnrollment;
74
+ export declare function PostZapierEnrollmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostZapierEnrollment;
75
+ export declare function PostZapierEnrollmentToJSON(json: any): PostZapierEnrollment;
76
+ export declare function PostZapierEnrollmentToJSONTyped(value?: PostZapierEnrollment | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,64 @@
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 PostZapierEnrollmentReEnrollmentModeEnum = {
18
+ Restart: 'restart',
19
+ Resume: 'resume'
20
+ };
21
+ /**
22
+ * Check if a given object implements the PostZapierEnrollment interface.
23
+ */
24
+ export function instanceOfPostZapierEnrollment(value) {
25
+ if (!('courseId' in value) || value['courseId'] === undefined)
26
+ return false;
27
+ if (!('userId' in value) || value['userId'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ export function PostZapierEnrollmentFromJSON(json) {
32
+ return PostZapierEnrollmentFromJSONTyped(json, false);
33
+ }
34
+ export function PostZapierEnrollmentFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'courseId': json['course_id'],
40
+ 'userId': json['user_id'],
41
+ 'idempotencyKey': json['idempotency_key'] == null ? undefined : json['idempotency_key'],
42
+ 'enrollmentDateStart': json['enrollment_date_start'] == null ? undefined : json['enrollment_date_start'],
43
+ 'enrollmentDateEnd': json['enrollment_date_end'] == null ? undefined : json['enrollment_date_end'],
44
+ 'notes': json['notes'] == null ? undefined : json['notes'],
45
+ 'reEnrollmentMode': json['re_enrollment_mode'] == null ? undefined : json['re_enrollment_mode'],
46
+ };
47
+ }
48
+ export function PostZapierEnrollmentToJSON(json) {
49
+ return PostZapierEnrollmentToJSONTyped(json, false);
50
+ }
51
+ export function PostZapierEnrollmentToJSONTyped(value, ignoreDiscriminator = false) {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'course_id': value['courseId'],
57
+ 'user_id': value['userId'],
58
+ 'idempotency_key': value['idempotencyKey'],
59
+ 'enrollment_date_start': value['enrollmentDateStart'],
60
+ 'enrollment_date_end': value['enrollmentDateEnd'],
61
+ 'notes': value['notes'],
62
+ 're_enrollment_mode': value['reEnrollmentMode'],
63
+ };
64
+ }
@@ -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 PostZapierShopifyCourseMapping
16
+ */
17
+ export interface PostZapierShopifyCourseMapping {
18
+ /**
19
+ * Shopify store domain, with or without https://.
20
+ * @type {string}
21
+ * @memberof PostZapierShopifyCourseMapping
22
+ */
23
+ shopDomain: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof PostZapierShopifyCourseMapping
28
+ */
29
+ variantId: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof PostZapierShopifyCourseMapping
34
+ */
35
+ productId?: string | null;
36
+ /**
37
+ * Stable external Edaxu course ID.
38
+ * @type {string}
39
+ * @memberof PostZapierShopifyCourseMapping
40
+ */
41
+ courseId: string;
42
+ }
43
+ /**
44
+ * Check if a given object implements the PostZapierShopifyCourseMapping interface.
45
+ */
46
+ export declare function instanceOfPostZapierShopifyCourseMapping(value: object): value is PostZapierShopifyCourseMapping;
47
+ export declare function PostZapierShopifyCourseMappingFromJSON(json: any): PostZapierShopifyCourseMapping;
48
+ export declare function PostZapierShopifyCourseMappingFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostZapierShopifyCourseMapping;
49
+ export declare function PostZapierShopifyCourseMappingToJSON(json: any): PostZapierShopifyCourseMapping;
50
+ export declare function PostZapierShopifyCourseMappingToJSONTyped(value?: PostZapierShopifyCourseMapping | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,53 @@
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 PostZapierShopifyCourseMapping interface.
16
+ */
17
+ export function instanceOfPostZapierShopifyCourseMapping(value) {
18
+ if (!('shopDomain' in value) || value['shopDomain'] === undefined)
19
+ return false;
20
+ if (!('variantId' in value) || value['variantId'] === undefined)
21
+ return false;
22
+ if (!('courseId' in value) || value['courseId'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function PostZapierShopifyCourseMappingFromJSON(json) {
27
+ return PostZapierShopifyCourseMappingFromJSONTyped(json, false);
28
+ }
29
+ export function PostZapierShopifyCourseMappingFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'shopDomain': json['shop_domain'],
35
+ 'variantId': json['variant_id'],
36
+ 'productId': json['product_id'] == null ? undefined : json['product_id'],
37
+ 'courseId': json['course_id'],
38
+ };
39
+ }
40
+ export function PostZapierShopifyCourseMappingToJSON(json) {
41
+ return PostZapierShopifyCourseMappingToJSONTyped(json, false);
42
+ }
43
+ export function PostZapierShopifyCourseMappingToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'shop_domain': value['shopDomain'],
49
+ 'variant_id': value['variantId'],
50
+ 'product_id': value['productId'],
51
+ 'course_id': value['courseId'],
52
+ };
53
+ }
@@ -0,0 +1,100 @@
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 PostZapierShopifyEnrollment
16
+ */
17
+ export interface PostZapierShopifyEnrollment {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PostZapierShopifyEnrollment
22
+ */
23
+ shopDomain: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof PostZapierShopifyEnrollment
28
+ */
29
+ orderId: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof PostZapierShopifyEnrollment
34
+ */
35
+ lineItemId: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof PostZapierShopifyEnrollment
40
+ */
41
+ variantId: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof PostZapierShopifyEnrollment
46
+ */
47
+ email: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof PostZapierShopifyEnrollment
52
+ */
53
+ firstName: string;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof PostZapierShopifyEnrollment
58
+ */
59
+ lastName: string;
60
+ /**
61
+ *
62
+ * @type {number}
63
+ * @memberof PostZapierShopifyEnrollment
64
+ */
65
+ enrollmentDateStart?: number | null;
66
+ /**
67
+ *
68
+ * @type {number}
69
+ * @memberof PostZapierShopifyEnrollment
70
+ */
71
+ enrollmentDateEnd?: number | null;
72
+ /**
73
+ *
74
+ * @type {string}
75
+ * @memberof PostZapierShopifyEnrollment
76
+ */
77
+ notes?: string | null;
78
+ /**
79
+ *
80
+ * @type {PostZapierShopifyEnrollmentReEnrollmentModeEnum}
81
+ * @memberof PostZapierShopifyEnrollment
82
+ */
83
+ reEnrollmentMode?: PostZapierShopifyEnrollmentReEnrollmentModeEnum;
84
+ }
85
+ /**
86
+ * @export
87
+ */
88
+ export declare const PostZapierShopifyEnrollmentReEnrollmentModeEnum: {
89
+ readonly Restart: "restart";
90
+ readonly Resume: "resume";
91
+ };
92
+ export type PostZapierShopifyEnrollmentReEnrollmentModeEnum = typeof PostZapierShopifyEnrollmentReEnrollmentModeEnum[keyof typeof PostZapierShopifyEnrollmentReEnrollmentModeEnum];
93
+ /**
94
+ * Check if a given object implements the PostZapierShopifyEnrollment interface.
95
+ */
96
+ export declare function instanceOfPostZapierShopifyEnrollment(value: object): value is PostZapierShopifyEnrollment;
97
+ export declare function PostZapierShopifyEnrollmentFromJSON(json: any): PostZapierShopifyEnrollment;
98
+ export declare function PostZapierShopifyEnrollmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostZapierShopifyEnrollment;
99
+ export declare function PostZapierShopifyEnrollmentToJSON(json: any): PostZapierShopifyEnrollment;
100
+ export declare function PostZapierShopifyEnrollmentToJSONTyped(value?: PostZapierShopifyEnrollment | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,82 @@
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 PostZapierShopifyEnrollmentReEnrollmentModeEnum = {
18
+ Restart: 'restart',
19
+ Resume: 'resume'
20
+ };
21
+ /**
22
+ * Check if a given object implements the PostZapierShopifyEnrollment interface.
23
+ */
24
+ export function instanceOfPostZapierShopifyEnrollment(value) {
25
+ if (!('shopDomain' in value) || value['shopDomain'] === undefined)
26
+ return false;
27
+ if (!('orderId' in value) || value['orderId'] === undefined)
28
+ return false;
29
+ if (!('lineItemId' in value) || value['lineItemId'] === undefined)
30
+ return false;
31
+ if (!('variantId' in value) || value['variantId'] === undefined)
32
+ return false;
33
+ if (!('email' in value) || value['email'] === undefined)
34
+ return false;
35
+ if (!('firstName' in value) || value['firstName'] === undefined)
36
+ return false;
37
+ if (!('lastName' in value) || value['lastName'] === undefined)
38
+ return false;
39
+ return true;
40
+ }
41
+ export function PostZapierShopifyEnrollmentFromJSON(json) {
42
+ return PostZapierShopifyEnrollmentFromJSONTyped(json, false);
43
+ }
44
+ export function PostZapierShopifyEnrollmentFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'shopDomain': json['shop_domain'],
50
+ 'orderId': json['order_id'],
51
+ 'lineItemId': json['line_item_id'],
52
+ 'variantId': json['variant_id'],
53
+ 'email': json['email'],
54
+ 'firstName': json['first_name'],
55
+ 'lastName': json['last_name'],
56
+ 'enrollmentDateStart': json['enrollment_date_start'] == null ? undefined : json['enrollment_date_start'],
57
+ 'enrollmentDateEnd': json['enrollment_date_end'] == null ? undefined : json['enrollment_date_end'],
58
+ 'notes': json['notes'] == null ? undefined : json['notes'],
59
+ 'reEnrollmentMode': json['re_enrollment_mode'] == null ? undefined : json['re_enrollment_mode'],
60
+ };
61
+ }
62
+ export function PostZapierShopifyEnrollmentToJSON(json) {
63
+ return PostZapierShopifyEnrollmentToJSONTyped(json, false);
64
+ }
65
+ export function PostZapierShopifyEnrollmentToJSONTyped(value, ignoreDiscriminator = false) {
66
+ if (value == null) {
67
+ return value;
68
+ }
69
+ return {
70
+ 'shop_domain': value['shopDomain'],
71
+ 'order_id': value['orderId'],
72
+ 'line_item_id': value['lineItemId'],
73
+ 'variant_id': value['variantId'],
74
+ 'email': value['email'],
75
+ 'first_name': value['firstName'],
76
+ 'last_name': value['lastName'],
77
+ 'enrollment_date_start': value['enrollmentDateStart'],
78
+ 'enrollment_date_end': value['enrollmentDateEnd'],
79
+ 'notes': value['notes'],
80
+ 're_enrollment_mode': value['reEnrollmentMode'],
81
+ };
82
+ }
@@ -0,0 +1,47 @@
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 { ZapierUser } from './ZapierUser';
13
+ import type { ZapierShopifyCourseMapping } from './ZapierShopifyCourseMapping';
14
+ import type { ZapierEnrollment } from './ZapierEnrollment';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface PostZapierShopifyEnrollmentResponse
19
+ */
20
+ export interface PostZapierShopifyEnrollmentResponse {
21
+ /**
22
+ *
23
+ * @type {ZapierEnrollment}
24
+ * @memberof PostZapierShopifyEnrollmentResponse
25
+ */
26
+ enrollment: ZapierEnrollment;
27
+ /**
28
+ *
29
+ * @type {ZapierUser}
30
+ * @memberof PostZapierShopifyEnrollmentResponse
31
+ */
32
+ user: ZapierUser;
33
+ /**
34
+ *
35
+ * @type {ZapierShopifyCourseMapping}
36
+ * @memberof PostZapierShopifyEnrollmentResponse
37
+ */
38
+ mapping: ZapierShopifyCourseMapping;
39
+ }
40
+ /**
41
+ * Check if a given object implements the PostZapierShopifyEnrollmentResponse interface.
42
+ */
43
+ export declare function instanceOfPostZapierShopifyEnrollmentResponse(value: object): value is PostZapierShopifyEnrollmentResponse;
44
+ export declare function PostZapierShopifyEnrollmentResponseFromJSON(json: any): PostZapierShopifyEnrollmentResponse;
45
+ export declare function PostZapierShopifyEnrollmentResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostZapierShopifyEnrollmentResponse;
46
+ export declare function PostZapierShopifyEnrollmentResponseToJSON(json: any): PostZapierShopifyEnrollmentResponse;
47
+ export declare function PostZapierShopifyEnrollmentResponseToJSONTyped(value?: PostZapierShopifyEnrollmentResponse | null, ignoreDiscriminator?: boolean): any;