@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
+ /**
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 GetZapierCourses
17
+ */
18
+ export interface GetZapierCourses {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof GetZapierCourses
23
+ */
24
+ page: number;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof GetZapierCourses
29
+ */
30
+ pageSize: number;
31
+ /**
32
+ *
33
+ * @type {number}
34
+ * @memberof GetZapierCourses
35
+ */
36
+ totalItems: number;
37
+ /**
38
+ *
39
+ * @type {Array<ZapierCourse>}
40
+ * @memberof GetZapierCourses
41
+ */
42
+ items: Array<ZapierCourse>;
43
+ }
44
+ /**
45
+ * Check if a given object implements the GetZapierCourses interface.
46
+ */
47
+ export declare function instanceOfGetZapierCourses(value: object): value is GetZapierCourses;
48
+ export declare function GetZapierCoursesFromJSON(json: any): GetZapierCourses;
49
+ export declare function GetZapierCoursesFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetZapierCourses;
50
+ export declare function GetZapierCoursesToJSON(json: any): GetZapierCourses;
51
+ export declare function GetZapierCoursesToJSONTyped(value?: GetZapierCourses | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,63 @@
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.instanceOfGetZapierCourses = instanceOfGetZapierCourses;
17
+ exports.GetZapierCoursesFromJSON = GetZapierCoursesFromJSON;
18
+ exports.GetZapierCoursesFromJSONTyped = GetZapierCoursesFromJSONTyped;
19
+ exports.GetZapierCoursesToJSON = GetZapierCoursesToJSON;
20
+ exports.GetZapierCoursesToJSONTyped = GetZapierCoursesToJSONTyped;
21
+ const ZapierCourse_1 = require("./ZapierCourse");
22
+ /**
23
+ * Check if a given object implements the GetZapierCourses interface.
24
+ */
25
+ function instanceOfGetZapierCourses(value) {
26
+ if (!('page' in value) || value['page'] === undefined)
27
+ return false;
28
+ if (!('pageSize' in value) || value['pageSize'] === undefined)
29
+ return false;
30
+ if (!('totalItems' in value) || value['totalItems'] === undefined)
31
+ return false;
32
+ if (!('items' in value) || value['items'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ function GetZapierCoursesFromJSON(json) {
37
+ return GetZapierCoursesFromJSONTyped(json, false);
38
+ }
39
+ function GetZapierCoursesFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'page': json['page'],
45
+ 'pageSize': json['page_size'],
46
+ 'totalItems': json['total_items'],
47
+ 'items': (json['items'].map(ZapierCourse_1.ZapierCourseFromJSON)),
48
+ };
49
+ }
50
+ function GetZapierCoursesToJSON(json) {
51
+ return GetZapierCoursesToJSONTyped(json, false);
52
+ }
53
+ function GetZapierCoursesToJSONTyped(value, ignoreDiscriminator = false) {
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'page': value['page'],
59
+ 'page_size': value['pageSize'],
60
+ 'total_items': value['totalItems'],
61
+ 'items': (value['items'].map(ZapierCourse_1.ZapierCourseToJSON)),
62
+ };
63
+ }
@@ -0,0 +1,33 @@
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 { ZapierShopifyCourseMapping } from './ZapierShopifyCourseMapping';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface GetZapierShopifyCourseMappings
17
+ */
18
+ export interface GetZapierShopifyCourseMappings {
19
+ /**
20
+ *
21
+ * @type {Array<ZapierShopifyCourseMapping>}
22
+ * @memberof GetZapierShopifyCourseMappings
23
+ */
24
+ items: Array<ZapierShopifyCourseMapping>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the GetZapierShopifyCourseMappings interface.
28
+ */
29
+ export declare function instanceOfGetZapierShopifyCourseMappings(value: object): value is GetZapierShopifyCourseMappings;
30
+ export declare function GetZapierShopifyCourseMappingsFromJSON(json: any): GetZapierShopifyCourseMappings;
31
+ export declare function GetZapierShopifyCourseMappingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetZapierShopifyCourseMappings;
32
+ export declare function GetZapierShopifyCourseMappingsToJSON(json: any): GetZapierShopifyCourseMappings;
33
+ export declare function GetZapierShopifyCourseMappingsToJSONTyped(value?: GetZapierShopifyCourseMappings | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
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.instanceOfGetZapierShopifyCourseMappings = instanceOfGetZapierShopifyCourseMappings;
17
+ exports.GetZapierShopifyCourseMappingsFromJSON = GetZapierShopifyCourseMappingsFromJSON;
18
+ exports.GetZapierShopifyCourseMappingsFromJSONTyped = GetZapierShopifyCourseMappingsFromJSONTyped;
19
+ exports.GetZapierShopifyCourseMappingsToJSON = GetZapierShopifyCourseMappingsToJSON;
20
+ exports.GetZapierShopifyCourseMappingsToJSONTyped = GetZapierShopifyCourseMappingsToJSONTyped;
21
+ const ZapierShopifyCourseMapping_1 = require("./ZapierShopifyCourseMapping");
22
+ /**
23
+ * Check if a given object implements the GetZapierShopifyCourseMappings interface.
24
+ */
25
+ function instanceOfGetZapierShopifyCourseMappings(value) {
26
+ if (!('items' in value) || value['items'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function GetZapierShopifyCourseMappingsFromJSON(json) {
31
+ return GetZapierShopifyCourseMappingsFromJSONTyped(json, false);
32
+ }
33
+ function GetZapierShopifyCourseMappingsFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'items': (json['items'].map(ZapierShopifyCourseMapping_1.ZapierShopifyCourseMappingFromJSON)),
39
+ };
40
+ }
41
+ function GetZapierShopifyCourseMappingsToJSON(json) {
42
+ return GetZapierShopifyCourseMappingsToJSONTyped(json, false);
43
+ }
44
+ function GetZapierShopifyCourseMappingsToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'items': (value['items'].map(ZapierShopifyCourseMapping_1.ZapierShopifyCourseMappingToJSON)),
50
+ };
51
+ }
@@ -0,0 +1,33 @@
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
+ /**
14
+ *
15
+ * @export
16
+ * @interface GetZapierUsers
17
+ */
18
+ export interface GetZapierUsers {
19
+ /**
20
+ *
21
+ * @type {Array<ZapierUser>}
22
+ * @memberof GetZapierUsers
23
+ */
24
+ items: Array<ZapierUser>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the GetZapierUsers interface.
28
+ */
29
+ export declare function instanceOfGetZapierUsers(value: object): value is GetZapierUsers;
30
+ export declare function GetZapierUsersFromJSON(json: any): GetZapierUsers;
31
+ export declare function GetZapierUsersFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetZapierUsers;
32
+ export declare function GetZapierUsersToJSON(json: any): GetZapierUsers;
33
+ export declare function GetZapierUsersToJSONTyped(value?: GetZapierUsers | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
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.instanceOfGetZapierUsers = instanceOfGetZapierUsers;
17
+ exports.GetZapierUsersFromJSON = GetZapierUsersFromJSON;
18
+ exports.GetZapierUsersFromJSONTyped = GetZapierUsersFromJSONTyped;
19
+ exports.GetZapierUsersToJSON = GetZapierUsersToJSON;
20
+ exports.GetZapierUsersToJSONTyped = GetZapierUsersToJSONTyped;
21
+ const ZapierUser_1 = require("./ZapierUser");
22
+ /**
23
+ * Check if a given object implements the GetZapierUsers interface.
24
+ */
25
+ function instanceOfGetZapierUsers(value) {
26
+ if (!('items' in value) || value['items'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function GetZapierUsersFromJSON(json) {
31
+ return GetZapierUsersFromJSONTyped(json, false);
32
+ }
33
+ function GetZapierUsersFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'items': (json['items'].map(ZapierUser_1.ZapierUserFromJSON)),
39
+ };
40
+ }
41
+ function GetZapierUsersToJSON(json) {
42
+ return GetZapierUsersToJSONTyped(json, false);
43
+ }
44
+ function GetZapierUsersToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'items': (value['items'].map(ZapierUser_1.ZapierUserToJSON)),
50
+ };
51
+ }
@@ -0,0 +1,98 @@
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 { IntegrationEventData } from './IntegrationEventData';
13
+ /**
14
+ * A CloudEvents 1.0 structured JSON event emitted by Edaxu.
15
+ * @export
16
+ * @interface IntegrationEvent
17
+ */
18
+ export interface IntegrationEvent {
19
+ /**
20
+ *
21
+ * @type {IntegrationEventSpecversionEnum}
22
+ * @memberof IntegrationEvent
23
+ */
24
+ specversion: IntegrationEventSpecversionEnum;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof IntegrationEvent
29
+ */
30
+ id: string;
31
+ /**
32
+ * Stable URI identifying the portal event source.
33
+ * @type {string}
34
+ * @memberof IntegrationEvent
35
+ */
36
+ source: string;
37
+ /**
38
+ *
39
+ * @type {IntegrationEventTypeEnum}
40
+ * @memberof IntegrationEvent
41
+ */
42
+ type: IntegrationEventTypeEnum;
43
+ /**
44
+ *
45
+ * @type {Date}
46
+ * @memberof IntegrationEvent
47
+ */
48
+ time: Date;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof IntegrationEvent
53
+ */
54
+ subject: string;
55
+ /**
56
+ *
57
+ * @type {IntegrationEventDatacontenttypeEnum}
58
+ * @memberof IntegrationEvent
59
+ */
60
+ datacontenttype: IntegrationEventDatacontenttypeEnum;
61
+ /**
62
+ *
63
+ * @type {IntegrationEventData}
64
+ * @memberof IntegrationEvent
65
+ */
66
+ data: IntegrationEventData;
67
+ }
68
+ /**
69
+ * @export
70
+ */
71
+ export declare const IntegrationEventSpecversionEnum: {
72
+ readonly _10: "1.0";
73
+ };
74
+ export type IntegrationEventSpecversionEnum = typeof IntegrationEventSpecversionEnum[keyof typeof IntegrationEventSpecversionEnum];
75
+ /**
76
+ * @export
77
+ */
78
+ export declare const IntegrationEventTypeEnum: {
79
+ readonly ComEdaxuEnrollmentEnrolledV1: "com.edaxu.enrollment.enrolled.v1";
80
+ readonly ComEdaxuEnrollmentCompletedV1: "com.edaxu.enrollment.completed.v1";
81
+ readonly ComEdaxuCertificateIssuedV1: "com.edaxu.certificate.issued.v1";
82
+ };
83
+ export type IntegrationEventTypeEnum = typeof IntegrationEventTypeEnum[keyof typeof IntegrationEventTypeEnum];
84
+ /**
85
+ * @export
86
+ */
87
+ export declare const IntegrationEventDatacontenttypeEnum: {
88
+ readonly ApplicationJson: "application/json";
89
+ };
90
+ export type IntegrationEventDatacontenttypeEnum = typeof IntegrationEventDatacontenttypeEnum[keyof typeof IntegrationEventDatacontenttypeEnum];
91
+ /**
92
+ * Check if a given object implements the IntegrationEvent interface.
93
+ */
94
+ export declare function instanceOfIntegrationEvent(value: object): value is IntegrationEvent;
95
+ export declare function IntegrationEventFromJSON(json: any): IntegrationEvent;
96
+ export declare function IntegrationEventFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationEvent;
97
+ export declare function IntegrationEventToJSON(json: any): IntegrationEvent;
98
+ export declare function IntegrationEventToJSONTyped(value?: IntegrationEvent | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,100 @@
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.IntegrationEventDatacontenttypeEnum = exports.IntegrationEventTypeEnum = exports.IntegrationEventSpecversionEnum = void 0;
17
+ exports.instanceOfIntegrationEvent = instanceOfIntegrationEvent;
18
+ exports.IntegrationEventFromJSON = IntegrationEventFromJSON;
19
+ exports.IntegrationEventFromJSONTyped = IntegrationEventFromJSONTyped;
20
+ exports.IntegrationEventToJSON = IntegrationEventToJSON;
21
+ exports.IntegrationEventToJSONTyped = IntegrationEventToJSONTyped;
22
+ const IntegrationEventData_1 = require("./IntegrationEventData");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.IntegrationEventSpecversionEnum = {
27
+ _10: '1.0'
28
+ };
29
+ /**
30
+ * @export
31
+ */
32
+ exports.IntegrationEventTypeEnum = {
33
+ ComEdaxuEnrollmentEnrolledV1: 'com.edaxu.enrollment.enrolled.v1',
34
+ ComEdaxuEnrollmentCompletedV1: 'com.edaxu.enrollment.completed.v1',
35
+ ComEdaxuCertificateIssuedV1: 'com.edaxu.certificate.issued.v1'
36
+ };
37
+ /**
38
+ * @export
39
+ */
40
+ exports.IntegrationEventDatacontenttypeEnum = {
41
+ ApplicationJson: 'application/json'
42
+ };
43
+ /**
44
+ * Check if a given object implements the IntegrationEvent interface.
45
+ */
46
+ function instanceOfIntegrationEvent(value) {
47
+ if (!('specversion' in value) || value['specversion'] === undefined)
48
+ return false;
49
+ if (!('id' in value) || value['id'] === undefined)
50
+ return false;
51
+ if (!('source' in value) || value['source'] === undefined)
52
+ return false;
53
+ if (!('type' in value) || value['type'] === undefined)
54
+ return false;
55
+ if (!('time' in value) || value['time'] === undefined)
56
+ return false;
57
+ if (!('subject' in value) || value['subject'] === undefined)
58
+ return false;
59
+ if (!('datacontenttype' in value) || value['datacontenttype'] === undefined)
60
+ return false;
61
+ if (!('data' in value) || value['data'] === undefined)
62
+ return false;
63
+ return true;
64
+ }
65
+ function IntegrationEventFromJSON(json) {
66
+ return IntegrationEventFromJSONTyped(json, false);
67
+ }
68
+ function IntegrationEventFromJSONTyped(json, ignoreDiscriminator) {
69
+ if (json == null) {
70
+ return json;
71
+ }
72
+ return {
73
+ 'specversion': json['specversion'],
74
+ 'id': json['id'],
75
+ 'source': json['source'],
76
+ 'type': json['type'],
77
+ 'time': (new Date(json['time'])),
78
+ 'subject': json['subject'],
79
+ 'datacontenttype': json['datacontenttype'],
80
+ 'data': (0, IntegrationEventData_1.IntegrationEventDataFromJSON)(json['data']),
81
+ };
82
+ }
83
+ function IntegrationEventToJSON(json) {
84
+ return IntegrationEventToJSONTyped(json, false);
85
+ }
86
+ function IntegrationEventToJSONTyped(value, ignoreDiscriminator = false) {
87
+ if (value == null) {
88
+ return value;
89
+ }
90
+ return {
91
+ 'specversion': value['specversion'],
92
+ 'id': value['id'],
93
+ 'source': value['source'],
94
+ 'type': value['type'],
95
+ 'time': value['time'].toISOString(),
96
+ 'subject': value['subject'],
97
+ 'datacontenttype': value['datacontenttype'],
98
+ 'data': (0, IntegrationEventData_1.IntegrationEventDataToJSON)(value['data']),
99
+ };
100
+ }
@@ -0,0 +1,78 @@
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 IntegrationEventCertificate
16
+ */
17
+ export interface IntegrationEventCertificate {
18
+ /**
19
+ * Stable external certificate ID.
20
+ * @type {string}
21
+ * @memberof IntegrationEventCertificate
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof IntegrationEventCertificate
28
+ */
29
+ status: string;
30
+ /**
31
+ *
32
+ * @type {IntegrationEventCertificateIssuanceTypeEnum}
33
+ * @memberof IntegrationEventCertificate
34
+ */
35
+ issuanceType: IntegrationEventCertificateIssuanceTypeEnum;
36
+ /**
37
+ *
38
+ * @type {Date}
39
+ * @memberof IntegrationEventCertificate
40
+ */
41
+ issuedAt: Date;
42
+ /**
43
+ *
44
+ * @type {Date}
45
+ * @memberof IntegrationEventCertificate
46
+ */
47
+ expiresAt: Date | null;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof IntegrationEventCertificate
52
+ */
53
+ verificationUrl: string;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof IntegrationEventCertificate
58
+ */
59
+ enrollmentId: string | null;
60
+ }
61
+ /**
62
+ * @export
63
+ */
64
+ export declare const IntegrationEventCertificateIssuanceTypeEnum: {
65
+ readonly Original: "original";
66
+ readonly Renewal: "renewal";
67
+ readonly Replacement: "replacement";
68
+ readonly Correction: "correction";
69
+ };
70
+ export type IntegrationEventCertificateIssuanceTypeEnum = typeof IntegrationEventCertificateIssuanceTypeEnum[keyof typeof IntegrationEventCertificateIssuanceTypeEnum];
71
+ /**
72
+ * Check if a given object implements the IntegrationEventCertificate interface.
73
+ */
74
+ export declare function instanceOfIntegrationEventCertificate(value: object): value is IntegrationEventCertificate;
75
+ export declare function IntegrationEventCertificateFromJSON(json: any): IntegrationEventCertificate;
76
+ export declare function IntegrationEventCertificateFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationEventCertificate;
77
+ export declare function IntegrationEventCertificateToJSON(json: any): IntegrationEventCertificate;
78
+ export declare function IntegrationEventCertificateToJSONTyped(value?: IntegrationEventCertificate | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,84 @@
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.IntegrationEventCertificateIssuanceTypeEnum = void 0;
17
+ exports.instanceOfIntegrationEventCertificate = instanceOfIntegrationEventCertificate;
18
+ exports.IntegrationEventCertificateFromJSON = IntegrationEventCertificateFromJSON;
19
+ exports.IntegrationEventCertificateFromJSONTyped = IntegrationEventCertificateFromJSONTyped;
20
+ exports.IntegrationEventCertificateToJSON = IntegrationEventCertificateToJSON;
21
+ exports.IntegrationEventCertificateToJSONTyped = IntegrationEventCertificateToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.IntegrationEventCertificateIssuanceTypeEnum = {
26
+ Original: 'original',
27
+ Renewal: 'renewal',
28
+ Replacement: 'replacement',
29
+ Correction: 'correction'
30
+ };
31
+ /**
32
+ * Check if a given object implements the IntegrationEventCertificate interface.
33
+ */
34
+ function instanceOfIntegrationEventCertificate(value) {
35
+ if (!('id' in value) || value['id'] === undefined)
36
+ return false;
37
+ if (!('status' in value) || value['status'] === undefined)
38
+ return false;
39
+ if (!('issuanceType' in value) || value['issuanceType'] === undefined)
40
+ return false;
41
+ if (!('issuedAt' in value) || value['issuedAt'] === undefined)
42
+ return false;
43
+ if (!('expiresAt' in value) || value['expiresAt'] === undefined)
44
+ return false;
45
+ if (!('verificationUrl' in value) || value['verificationUrl'] === undefined)
46
+ return false;
47
+ if (!('enrollmentId' in value) || value['enrollmentId'] === undefined)
48
+ return false;
49
+ return true;
50
+ }
51
+ function IntegrationEventCertificateFromJSON(json) {
52
+ return IntegrationEventCertificateFromJSONTyped(json, false);
53
+ }
54
+ function IntegrationEventCertificateFromJSONTyped(json, ignoreDiscriminator) {
55
+ if (json == null) {
56
+ return json;
57
+ }
58
+ return {
59
+ 'id': json['id'],
60
+ 'status': json['status'],
61
+ 'issuanceType': json['issuance_type'],
62
+ 'issuedAt': (new Date(json['issued_at'])),
63
+ 'expiresAt': (json['expires_at'] == null ? null : new Date(json['expires_at'])),
64
+ 'verificationUrl': json['verification_url'],
65
+ 'enrollmentId': json['enrollment_id'],
66
+ };
67
+ }
68
+ function IntegrationEventCertificateToJSON(json) {
69
+ return IntegrationEventCertificateToJSONTyped(json, false);
70
+ }
71
+ function IntegrationEventCertificateToJSONTyped(value, ignoreDiscriminator = false) {
72
+ if (value == null) {
73
+ return value;
74
+ }
75
+ return {
76
+ 'id': value['id'],
77
+ 'status': value['status'],
78
+ 'issuance_type': value['issuanceType'],
79
+ 'issued_at': value['issuedAt'].toISOString(),
80
+ 'expires_at': value['expiresAt'] == null ? value['expiresAt'] : value['expiresAt'].toISOString(),
81
+ 'verification_url': value['verificationUrl'],
82
+ 'enrollment_id': value['enrollmentId'],
83
+ };
84
+ }
@@ -0,0 +1,38 @@
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 IntegrationEventCourse
16
+ */
17
+ export interface IntegrationEventCourse {
18
+ /**
19
+ * Stable external course ID.
20
+ * @type {string}
21
+ * @memberof IntegrationEventCourse
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof IntegrationEventCourse
28
+ */
29
+ name: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the IntegrationEventCourse interface.
33
+ */
34
+ export declare function instanceOfIntegrationEventCourse(value: object): value is IntegrationEventCourse;
35
+ export declare function IntegrationEventCourseFromJSON(json: any): IntegrationEventCourse;
36
+ export declare function IntegrationEventCourseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationEventCourse;
37
+ export declare function IntegrationEventCourseToJSON(json: any): IntegrationEventCourse;
38
+ export declare function IntegrationEventCourseToJSONTyped(value?: IntegrationEventCourse | null, ignoreDiscriminator?: boolean): any;