@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,141 @@
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 CustomWebhookIntegration
20
+ */
21
+ export interface CustomWebhookIntegration {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof CustomWebhookIntegration
26
+ */
27
+ id: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof CustomWebhookIntegration
32
+ */
33
+ name: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof CustomWebhookIntegration
38
+ */
39
+ targetUrl: string;
40
+ /**
41
+ *
42
+ * @type {Set<CustomWebhookIntegrationEventTypesEnum>}
43
+ * @memberof CustomWebhookIntegration
44
+ */
45
+ eventTypes: Set<CustomWebhookIntegrationEventTypesEnum>;
46
+ /**
47
+ *
48
+ * @type {boolean}
49
+ * @memberof CustomWebhookIntegration
50
+ */
51
+ enabled: boolean;
52
+ /**
53
+ * True when an encrypted bearer token is configured. The token is never returned.
54
+ * @type {boolean}
55
+ * @memberof CustomWebhookIntegration
56
+ */
57
+ tokenConfigured: boolean;
58
+ /**
59
+ *
60
+ * @type {Date}
61
+ * @memberof CustomWebhookIntegration
62
+ */
63
+ createdAt: Date;
64
+ /**
65
+ *
66
+ * @type {Date}
67
+ * @memberof CustomWebhookIntegration
68
+ */
69
+ updatedAt: Date;
70
+ }
71
+
72
+
73
+ /**
74
+ * @export
75
+ */
76
+ export const CustomWebhookIntegrationEventTypesEnum = {
77
+ ComEdaxuEnrollmentEnrolledV1: 'com.edaxu.enrollment.enrolled.v1',
78
+ ComEdaxuEnrollmentCompletedV1: 'com.edaxu.enrollment.completed.v1',
79
+ ComEdaxuCertificateIssuedV1: 'com.edaxu.certificate.issued.v1'
80
+ } as const;
81
+ export type CustomWebhookIntegrationEventTypesEnum = typeof CustomWebhookIntegrationEventTypesEnum[keyof typeof CustomWebhookIntegrationEventTypesEnum];
82
+
83
+
84
+ /**
85
+ * Check if a given object implements the CustomWebhookIntegration interface.
86
+ */
87
+ export function instanceOfCustomWebhookIntegration(value: object): value is CustomWebhookIntegration {
88
+ if (!('id' in value) || value['id'] === undefined) return false;
89
+ if (!('name' in value) || value['name'] === undefined) return false;
90
+ if (!('targetUrl' in value) || value['targetUrl'] === undefined) return false;
91
+ if (!('eventTypes' in value) || value['eventTypes'] === undefined) return false;
92
+ if (!('enabled' in value) || value['enabled'] === undefined) return false;
93
+ if (!('tokenConfigured' in value) || value['tokenConfigured'] === undefined) return false;
94
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
95
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
96
+ return true;
97
+ }
98
+
99
+ export function CustomWebhookIntegrationFromJSON(json: any): CustomWebhookIntegration {
100
+ return CustomWebhookIntegrationFromJSONTyped(json, false);
101
+ }
102
+
103
+ export function CustomWebhookIntegrationFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomWebhookIntegration {
104
+ if (json == null) {
105
+ return json;
106
+ }
107
+ return {
108
+
109
+ 'id': json['id'],
110
+ 'name': json['name'],
111
+ 'targetUrl': json['target_url'],
112
+ 'eventTypes': new Set(json['event_types']),
113
+ 'enabled': json['enabled'],
114
+ 'tokenConfigured': json['token_configured'],
115
+ 'createdAt': (new Date(json['created_at'])),
116
+ 'updatedAt': (new Date(json['updated_at'])),
117
+ };
118
+ }
119
+
120
+ export function CustomWebhookIntegrationToJSON(json: any): CustomWebhookIntegration {
121
+ return CustomWebhookIntegrationToJSONTyped(json, false);
122
+ }
123
+
124
+ export function CustomWebhookIntegrationToJSONTyped(value?: CustomWebhookIntegration | null, ignoreDiscriminator: boolean = false): any {
125
+ if (value == null) {
126
+ return value;
127
+ }
128
+
129
+ return {
130
+
131
+ 'id': value['id'],
132
+ 'name': value['name'],
133
+ 'target_url': value['targetUrl'],
134
+ 'event_types': Array.from(value['eventTypes'] as Set<any>),
135
+ 'enabled': value['enabled'],
136
+ 'token_configured': value['tokenConfigured'],
137
+ 'created_at': value['createdAt'].toISOString(),
138
+ 'updated_at': value['updatedAt'].toISOString(),
139
+ };
140
+ }
141
+
@@ -0,0 +1,101 @@
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 GetZapierCourses
28
+ */
29
+ export interface GetZapierCourses {
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof GetZapierCourses
34
+ */
35
+ page: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof GetZapierCourses
40
+ */
41
+ pageSize: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof GetZapierCourses
46
+ */
47
+ totalItems: number;
48
+ /**
49
+ *
50
+ * @type {Array<ZapierCourse>}
51
+ * @memberof GetZapierCourses
52
+ */
53
+ items: Array<ZapierCourse>;
54
+ }
55
+
56
+ /**
57
+ * Check if a given object implements the GetZapierCourses interface.
58
+ */
59
+ export function instanceOfGetZapierCourses(value: object): value is GetZapierCourses {
60
+ if (!('page' in value) || value['page'] === undefined) return false;
61
+ if (!('pageSize' in value) || value['pageSize'] === undefined) return false;
62
+ if (!('totalItems' in value) || value['totalItems'] === undefined) return false;
63
+ if (!('items' in value) || value['items'] === undefined) return false;
64
+ return true;
65
+ }
66
+
67
+ export function GetZapierCoursesFromJSON(json: any): GetZapierCourses {
68
+ return GetZapierCoursesFromJSONTyped(json, false);
69
+ }
70
+
71
+ export function GetZapierCoursesFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetZapierCourses {
72
+ if (json == null) {
73
+ return json;
74
+ }
75
+ return {
76
+
77
+ 'page': json['page'],
78
+ 'pageSize': json['page_size'],
79
+ 'totalItems': json['total_items'],
80
+ 'items': ((json['items'] as Array<any>).map(ZapierCourseFromJSON)),
81
+ };
82
+ }
83
+
84
+ export function GetZapierCoursesToJSON(json: any): GetZapierCourses {
85
+ return GetZapierCoursesToJSONTyped(json, false);
86
+ }
87
+
88
+ export function GetZapierCoursesToJSONTyped(value?: GetZapierCourses | null, ignoreDiscriminator: boolean = false): any {
89
+ if (value == null) {
90
+ return value;
91
+ }
92
+
93
+ return {
94
+
95
+ 'page': value['page'],
96
+ 'page_size': value['pageSize'],
97
+ 'total_items': value['totalItems'],
98
+ 'items': ((value['items'] as Array<any>).map(ZapierCourseToJSON)),
99
+ };
100
+ }
101
+
@@ -0,0 +1,74 @@
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 { ZapierShopifyCourseMapping } from './ZapierShopifyCourseMapping';
17
+ import {
18
+ ZapierShopifyCourseMappingFromJSON,
19
+ ZapierShopifyCourseMappingFromJSONTyped,
20
+ ZapierShopifyCourseMappingToJSON,
21
+ ZapierShopifyCourseMappingToJSONTyped,
22
+ } from './ZapierShopifyCourseMapping';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface GetZapierShopifyCourseMappings
28
+ */
29
+ export interface GetZapierShopifyCourseMappings {
30
+ /**
31
+ *
32
+ * @type {Array<ZapierShopifyCourseMapping>}
33
+ * @memberof GetZapierShopifyCourseMappings
34
+ */
35
+ items: Array<ZapierShopifyCourseMapping>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the GetZapierShopifyCourseMappings interface.
40
+ */
41
+ export function instanceOfGetZapierShopifyCourseMappings(value: object): value is GetZapierShopifyCourseMappings {
42
+ if (!('items' in value) || value['items'] === undefined) return false;
43
+ return true;
44
+ }
45
+
46
+ export function GetZapierShopifyCourseMappingsFromJSON(json: any): GetZapierShopifyCourseMappings {
47
+ return GetZapierShopifyCourseMappingsFromJSONTyped(json, false);
48
+ }
49
+
50
+ export function GetZapierShopifyCourseMappingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetZapierShopifyCourseMappings {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+
56
+ 'items': ((json['items'] as Array<any>).map(ZapierShopifyCourseMappingFromJSON)),
57
+ };
58
+ }
59
+
60
+ export function GetZapierShopifyCourseMappingsToJSON(json: any): GetZapierShopifyCourseMappings {
61
+ return GetZapierShopifyCourseMappingsToJSONTyped(json, false);
62
+ }
63
+
64
+ export function GetZapierShopifyCourseMappingsToJSONTyped(value?: GetZapierShopifyCourseMappings | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'items': ((value['items'] as Array<any>).map(ZapierShopifyCourseMappingToJSON)),
72
+ };
73
+ }
74
+
@@ -0,0 +1,74 @@
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
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface GetZapierUsers
28
+ */
29
+ export interface GetZapierUsers {
30
+ /**
31
+ *
32
+ * @type {Array<ZapierUser>}
33
+ * @memberof GetZapierUsers
34
+ */
35
+ items: Array<ZapierUser>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the GetZapierUsers interface.
40
+ */
41
+ export function instanceOfGetZapierUsers(value: object): value is GetZapierUsers {
42
+ if (!('items' in value) || value['items'] === undefined) return false;
43
+ return true;
44
+ }
45
+
46
+ export function GetZapierUsersFromJSON(json: any): GetZapierUsers {
47
+ return GetZapierUsersFromJSONTyped(json, false);
48
+ }
49
+
50
+ export function GetZapierUsersFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetZapierUsers {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+
56
+ 'items': ((json['items'] as Array<any>).map(ZapierUserFromJSON)),
57
+ };
58
+ }
59
+
60
+ export function GetZapierUsersToJSON(json: any): GetZapierUsers {
61
+ return GetZapierUsersToJSONTyped(json, false);
62
+ }
63
+
64
+ export function GetZapierUsersToJSONTyped(value?: GetZapierUsers | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'items': ((value['items'] as Array<any>).map(ZapierUserToJSON)),
72
+ };
73
+ }
74
+
@@ -0,0 +1,165 @@
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 { IntegrationEventData } from './IntegrationEventData';
17
+ import {
18
+ IntegrationEventDataFromJSON,
19
+ IntegrationEventDataFromJSONTyped,
20
+ IntegrationEventDataToJSON,
21
+ IntegrationEventDataToJSONTyped,
22
+ } from './IntegrationEventData';
23
+
24
+ /**
25
+ * A CloudEvents 1.0 structured JSON event emitted by Edaxu.
26
+ * @export
27
+ * @interface IntegrationEvent
28
+ */
29
+ export interface IntegrationEvent {
30
+ /**
31
+ *
32
+ * @type {IntegrationEventSpecversionEnum}
33
+ * @memberof IntegrationEvent
34
+ */
35
+ specversion: IntegrationEventSpecversionEnum;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof IntegrationEvent
40
+ */
41
+ id: string;
42
+ /**
43
+ * Stable URI identifying the portal event source.
44
+ * @type {string}
45
+ * @memberof IntegrationEvent
46
+ */
47
+ source: string;
48
+ /**
49
+ *
50
+ * @type {IntegrationEventTypeEnum}
51
+ * @memberof IntegrationEvent
52
+ */
53
+ type: IntegrationEventTypeEnum;
54
+ /**
55
+ *
56
+ * @type {Date}
57
+ * @memberof IntegrationEvent
58
+ */
59
+ time: Date;
60
+ /**
61
+ *
62
+ * @type {string}
63
+ * @memberof IntegrationEvent
64
+ */
65
+ subject: string;
66
+ /**
67
+ *
68
+ * @type {IntegrationEventDatacontenttypeEnum}
69
+ * @memberof IntegrationEvent
70
+ */
71
+ datacontenttype: IntegrationEventDatacontenttypeEnum;
72
+ /**
73
+ *
74
+ * @type {IntegrationEventData}
75
+ * @memberof IntegrationEvent
76
+ */
77
+ data: IntegrationEventData;
78
+ }
79
+
80
+
81
+ /**
82
+ * @export
83
+ */
84
+ export const IntegrationEventSpecversionEnum = {
85
+ _10: '1.0'
86
+ } as const;
87
+ export type IntegrationEventSpecversionEnum = typeof IntegrationEventSpecversionEnum[keyof typeof IntegrationEventSpecversionEnum];
88
+
89
+ /**
90
+ * @export
91
+ */
92
+ export const IntegrationEventTypeEnum = {
93
+ ComEdaxuEnrollmentEnrolledV1: 'com.edaxu.enrollment.enrolled.v1',
94
+ ComEdaxuEnrollmentCompletedV1: 'com.edaxu.enrollment.completed.v1',
95
+ ComEdaxuCertificateIssuedV1: 'com.edaxu.certificate.issued.v1'
96
+ } as const;
97
+ export type IntegrationEventTypeEnum = typeof IntegrationEventTypeEnum[keyof typeof IntegrationEventTypeEnum];
98
+
99
+ /**
100
+ * @export
101
+ */
102
+ export const IntegrationEventDatacontenttypeEnum = {
103
+ ApplicationJson: 'application/json'
104
+ } as const;
105
+ export type IntegrationEventDatacontenttypeEnum = typeof IntegrationEventDatacontenttypeEnum[keyof typeof IntegrationEventDatacontenttypeEnum];
106
+
107
+
108
+ /**
109
+ * Check if a given object implements the IntegrationEvent interface.
110
+ */
111
+ export function instanceOfIntegrationEvent(value: object): value is IntegrationEvent {
112
+ if (!('specversion' in value) || value['specversion'] === undefined) return false;
113
+ if (!('id' in value) || value['id'] === undefined) return false;
114
+ if (!('source' in value) || value['source'] === undefined) return false;
115
+ if (!('type' in value) || value['type'] === undefined) return false;
116
+ if (!('time' in value) || value['time'] === undefined) return false;
117
+ if (!('subject' in value) || value['subject'] === undefined) return false;
118
+ if (!('datacontenttype' in value) || value['datacontenttype'] === undefined) return false;
119
+ if (!('data' in value) || value['data'] === undefined) return false;
120
+ return true;
121
+ }
122
+
123
+ export function IntegrationEventFromJSON(json: any): IntegrationEvent {
124
+ return IntegrationEventFromJSONTyped(json, false);
125
+ }
126
+
127
+ export function IntegrationEventFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationEvent {
128
+ if (json == null) {
129
+ return json;
130
+ }
131
+ return {
132
+
133
+ 'specversion': json['specversion'],
134
+ 'id': json['id'],
135
+ 'source': json['source'],
136
+ 'type': json['type'],
137
+ 'time': (new Date(json['time'])),
138
+ 'subject': json['subject'],
139
+ 'datacontenttype': json['datacontenttype'],
140
+ 'data': IntegrationEventDataFromJSON(json['data']),
141
+ };
142
+ }
143
+
144
+ export function IntegrationEventToJSON(json: any): IntegrationEvent {
145
+ return IntegrationEventToJSONTyped(json, false);
146
+ }
147
+
148
+ export function IntegrationEventToJSONTyped(value?: IntegrationEvent | null, ignoreDiscriminator: boolean = false): any {
149
+ if (value == null) {
150
+ return value;
151
+ }
152
+
153
+ return {
154
+
155
+ 'specversion': value['specversion'],
156
+ 'id': value['id'],
157
+ 'source': value['source'],
158
+ 'type': value['type'],
159
+ 'time': value['time'].toISOString(),
160
+ 'subject': value['subject'],
161
+ 'datacontenttype': value['datacontenttype'],
162
+ 'data': IntegrationEventDataToJSON(value['data']),
163
+ };
164
+ }
165
+
@@ -0,0 +1,133 @@
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 IntegrationEventCertificate
20
+ */
21
+ export interface IntegrationEventCertificate {
22
+ /**
23
+ * Stable external certificate ID.
24
+ * @type {string}
25
+ * @memberof IntegrationEventCertificate
26
+ */
27
+ id: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof IntegrationEventCertificate
32
+ */
33
+ status: string;
34
+ /**
35
+ *
36
+ * @type {IntegrationEventCertificateIssuanceTypeEnum}
37
+ * @memberof IntegrationEventCertificate
38
+ */
39
+ issuanceType: IntegrationEventCertificateIssuanceTypeEnum;
40
+ /**
41
+ *
42
+ * @type {Date}
43
+ * @memberof IntegrationEventCertificate
44
+ */
45
+ issuedAt: Date;
46
+ /**
47
+ *
48
+ * @type {Date}
49
+ * @memberof IntegrationEventCertificate
50
+ */
51
+ expiresAt: Date | null;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof IntegrationEventCertificate
56
+ */
57
+ verificationUrl: string;
58
+ /**
59
+ *
60
+ * @type {string}
61
+ * @memberof IntegrationEventCertificate
62
+ */
63
+ enrollmentId: string | null;
64
+ }
65
+
66
+
67
+ /**
68
+ * @export
69
+ */
70
+ export const IntegrationEventCertificateIssuanceTypeEnum = {
71
+ Original: 'original',
72
+ Renewal: 'renewal',
73
+ Replacement: 'replacement',
74
+ Correction: 'correction'
75
+ } as const;
76
+ export type IntegrationEventCertificateIssuanceTypeEnum = typeof IntegrationEventCertificateIssuanceTypeEnum[keyof typeof IntegrationEventCertificateIssuanceTypeEnum];
77
+
78
+
79
+ /**
80
+ * Check if a given object implements the IntegrationEventCertificate interface.
81
+ */
82
+ export function instanceOfIntegrationEventCertificate(value: object): value is IntegrationEventCertificate {
83
+ if (!('id' in value) || value['id'] === undefined) return false;
84
+ if (!('status' in value) || value['status'] === undefined) return false;
85
+ if (!('issuanceType' in value) || value['issuanceType'] === undefined) return false;
86
+ if (!('issuedAt' in value) || value['issuedAt'] === undefined) return false;
87
+ if (!('expiresAt' in value) || value['expiresAt'] === undefined) return false;
88
+ if (!('verificationUrl' in value) || value['verificationUrl'] === undefined) return false;
89
+ if (!('enrollmentId' in value) || value['enrollmentId'] === undefined) return false;
90
+ return true;
91
+ }
92
+
93
+ export function IntegrationEventCertificateFromJSON(json: any): IntegrationEventCertificate {
94
+ return IntegrationEventCertificateFromJSONTyped(json, false);
95
+ }
96
+
97
+ export function IntegrationEventCertificateFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationEventCertificate {
98
+ if (json == null) {
99
+ return json;
100
+ }
101
+ return {
102
+
103
+ 'id': json['id'],
104
+ 'status': json['status'],
105
+ 'issuanceType': json['issuance_type'],
106
+ 'issuedAt': (new Date(json['issued_at'])),
107
+ 'expiresAt': (json['expires_at'] == null ? null : new Date(json['expires_at'])),
108
+ 'verificationUrl': json['verification_url'],
109
+ 'enrollmentId': json['enrollment_id'],
110
+ };
111
+ }
112
+
113
+ export function IntegrationEventCertificateToJSON(json: any): IntegrationEventCertificate {
114
+ return IntegrationEventCertificateToJSONTyped(json, false);
115
+ }
116
+
117
+ export function IntegrationEventCertificateToJSONTyped(value?: IntegrationEventCertificate | null, ignoreDiscriminator: boolean = false): any {
118
+ if (value == null) {
119
+ return value;
120
+ }
121
+
122
+ return {
123
+
124
+ 'id': value['id'],
125
+ 'status': value['status'],
126
+ 'issuance_type': value['issuanceType'],
127
+ 'issued_at': value['issuedAt'].toISOString(),
128
+ 'expires_at': value['expiresAt'] == null ? value['expiresAt'] : value['expiresAt'].toISOString(),
129
+ 'verification_url': value['verificationUrl'],
130
+ 'enrollment_id': value['enrollmentId'],
131
+ };
132
+ }
133
+