@easyedu/js-lsm-api 1.116.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 (86) hide show
  1. package/.openapi-generator/FILES +24 -0
  2. package/README.md +21 -2
  3. package/dist/apis/IntegrationApi.d.ts +125 -0
  4. package/dist/apis/IntegrationApi.js +330 -1
  5. package/dist/esm/apis/IntegrationApi.d.ts +125 -0
  6. package/dist/esm/apis/IntegrationApi.js +329 -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/IntegrationEvent.d.ts +98 -0
  10. package/dist/esm/models/IntegrationEvent.js +92 -0
  11. package/dist/esm/models/IntegrationEventCertificate.d.ts +78 -0
  12. package/dist/esm/models/IntegrationEventCertificate.js +76 -0
  13. package/dist/esm/models/IntegrationEventCourse.d.ts +38 -0
  14. package/dist/esm/models/IntegrationEventCourse.js +47 -0
  15. package/dist/esm/models/IntegrationEventData.d.ts +61 -0
  16. package/dist/esm/models/IntegrationEventData.js +64 -0
  17. package/dist/esm/models/IntegrationEventEnrollment.d.ts +71 -0
  18. package/dist/esm/models/IntegrationEventEnrollment.js +71 -0
  19. package/dist/esm/models/IntegrationEventLearner.d.ts +50 -0
  20. package/dist/esm/models/IntegrationEventLearner.js +55 -0
  21. package/dist/esm/models/IntegrationEventPortal.d.ts +44 -0
  22. package/dist/esm/models/IntegrationEventPortal.js +51 -0
  23. package/dist/esm/models/PostCustomWebhookIntegration.d.ts +65 -0
  24. package/dist/esm/models/PostCustomWebhookIntegration.js +65 -0
  25. package/dist/esm/models/PostZapierSubscription.d.ts +53 -0
  26. package/dist/esm/models/PostZapierSubscription.js +57 -0
  27. package/dist/esm/models/PutCustomWebhookIntegration.d.ts +65 -0
  28. package/dist/esm/models/PutCustomWebhookIntegration.js +57 -0
  29. package/dist/esm/models/ZapierSubscription.d.ts +53 -0
  30. package/dist/esm/models/ZapierSubscription.js +59 -0
  31. package/dist/esm/models/index.d.ts +12 -0
  32. package/dist/esm/models/index.js +12 -0
  33. package/dist/models/CustomWebhookIntegration.d.ts +83 -0
  34. package/dist/models/CustomWebhookIntegration.js +87 -0
  35. package/dist/models/IntegrationEvent.d.ts +98 -0
  36. package/dist/models/IntegrationEvent.js +100 -0
  37. package/dist/models/IntegrationEventCertificate.d.ts +78 -0
  38. package/dist/models/IntegrationEventCertificate.js +84 -0
  39. package/dist/models/IntegrationEventCourse.d.ts +38 -0
  40. package/dist/models/IntegrationEventCourse.js +54 -0
  41. package/dist/models/IntegrationEventData.d.ts +61 -0
  42. package/dist/models/IntegrationEventData.js +71 -0
  43. package/dist/models/IntegrationEventEnrollment.d.ts +71 -0
  44. package/dist/models/IntegrationEventEnrollment.js +79 -0
  45. package/dist/models/IntegrationEventLearner.d.ts +50 -0
  46. package/dist/models/IntegrationEventLearner.js +62 -0
  47. package/dist/models/IntegrationEventPortal.d.ts +44 -0
  48. package/dist/models/IntegrationEventPortal.js +58 -0
  49. package/dist/models/PostCustomWebhookIntegration.d.ts +65 -0
  50. package/dist/models/PostCustomWebhookIntegration.js +73 -0
  51. package/dist/models/PostZapierSubscription.d.ts +53 -0
  52. package/dist/models/PostZapierSubscription.js +65 -0
  53. package/dist/models/PutCustomWebhookIntegration.d.ts +65 -0
  54. package/dist/models/PutCustomWebhookIntegration.js +65 -0
  55. package/dist/models/ZapierSubscription.d.ts +53 -0
  56. package/dist/models/ZapierSubscription.js +67 -0
  57. package/dist/models/index.d.ts +12 -0
  58. package/dist/models/index.js +12 -0
  59. package/docs/CustomWebhookIntegration.md +48 -0
  60. package/docs/IntegrationApi.md +494 -0
  61. package/docs/IntegrationEvent.md +49 -0
  62. package/docs/IntegrationEventCertificate.md +46 -0
  63. package/docs/IntegrationEventCourse.md +36 -0
  64. package/docs/IntegrationEventData.md +42 -0
  65. package/docs/IntegrationEventEnrollment.md +44 -0
  66. package/docs/IntegrationEventLearner.md +40 -0
  67. package/docs/IntegrationEventPortal.md +38 -0
  68. package/docs/PostCustomWebhookIntegration.md +42 -0
  69. package/docs/PostZapierSubscription.md +38 -0
  70. package/docs/PutCustomWebhookIntegration.md +42 -0
  71. package/docs/ZapierSubscription.md +38 -0
  72. package/package.json +1 -1
  73. package/src/apis/IntegrationApi.ts +464 -0
  74. package/src/models/CustomWebhookIntegration.ts +141 -0
  75. package/src/models/IntegrationEvent.ts +165 -0
  76. package/src/models/IntegrationEventCertificate.ts +133 -0
  77. package/src/models/IntegrationEventCourse.ts +75 -0
  78. package/src/models/IntegrationEventData.ts +138 -0
  79. package/src/models/IntegrationEventEnrollment.ts +123 -0
  80. package/src/models/IntegrationEventLearner.ts +93 -0
  81. package/src/models/IntegrationEventPortal.ts +84 -0
  82. package/src/models/PostCustomWebhookIntegration.ts +113 -0
  83. package/src/models/PostZapierSubscription.ts +95 -0
  84. package/src/models/PutCustomWebhookIntegration.ts +109 -0
  85. package/src/models/ZapierSubscription.ts +96 -0
  86. package/src/models/index.ts +12 -0
@@ -0,0 +1,61 @@
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 { IntegrationEventLearner } from './IntegrationEventLearner';
13
+ import type { IntegrationEventCertificate } from './IntegrationEventCertificate';
14
+ import type { IntegrationEventEnrollment } from './IntegrationEventEnrollment';
15
+ import type { IntegrationEventPortal } from './IntegrationEventPortal';
16
+ import type { IntegrationEventCourse } from './IntegrationEventCourse';
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface IntegrationEventData
21
+ */
22
+ export interface IntegrationEventData {
23
+ /**
24
+ *
25
+ * @type {IntegrationEventPortal}
26
+ * @memberof IntegrationEventData
27
+ */
28
+ portal: IntegrationEventPortal;
29
+ /**
30
+ *
31
+ * @type {IntegrationEventLearner}
32
+ * @memberof IntegrationEventData
33
+ */
34
+ learner: IntegrationEventLearner;
35
+ /**
36
+ *
37
+ * @type {IntegrationEventCourse}
38
+ * @memberof IntegrationEventData
39
+ */
40
+ course: IntegrationEventCourse;
41
+ /**
42
+ *
43
+ * @type {IntegrationEventEnrollment}
44
+ * @memberof IntegrationEventData
45
+ */
46
+ enrollment: IntegrationEventEnrollment | null;
47
+ /**
48
+ *
49
+ * @type {IntegrationEventCertificate}
50
+ * @memberof IntegrationEventData
51
+ */
52
+ certificate: IntegrationEventCertificate | null;
53
+ }
54
+ /**
55
+ * Check if a given object implements the IntegrationEventData interface.
56
+ */
57
+ export declare function instanceOfIntegrationEventData(value: object): value is IntegrationEventData;
58
+ export declare function IntegrationEventDataFromJSON(json: any): IntegrationEventData;
59
+ export declare function IntegrationEventDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationEventData;
60
+ export declare function IntegrationEventDataToJSON(json: any): IntegrationEventData;
61
+ export declare function IntegrationEventDataToJSONTyped(value?: IntegrationEventData | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,71 @@
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.instanceOfIntegrationEventData = instanceOfIntegrationEventData;
17
+ exports.IntegrationEventDataFromJSON = IntegrationEventDataFromJSON;
18
+ exports.IntegrationEventDataFromJSONTyped = IntegrationEventDataFromJSONTyped;
19
+ exports.IntegrationEventDataToJSON = IntegrationEventDataToJSON;
20
+ exports.IntegrationEventDataToJSONTyped = IntegrationEventDataToJSONTyped;
21
+ const IntegrationEventLearner_1 = require("./IntegrationEventLearner");
22
+ const IntegrationEventCertificate_1 = require("./IntegrationEventCertificate");
23
+ const IntegrationEventEnrollment_1 = require("./IntegrationEventEnrollment");
24
+ const IntegrationEventPortal_1 = require("./IntegrationEventPortal");
25
+ const IntegrationEventCourse_1 = require("./IntegrationEventCourse");
26
+ /**
27
+ * Check if a given object implements the IntegrationEventData interface.
28
+ */
29
+ function instanceOfIntegrationEventData(value) {
30
+ if (!('portal' in value) || value['portal'] === undefined)
31
+ return false;
32
+ if (!('learner' in value) || value['learner'] === undefined)
33
+ return false;
34
+ if (!('course' in value) || value['course'] === undefined)
35
+ return false;
36
+ if (!('enrollment' in value) || value['enrollment'] === undefined)
37
+ return false;
38
+ if (!('certificate' in value) || value['certificate'] === undefined)
39
+ return false;
40
+ return true;
41
+ }
42
+ function IntegrationEventDataFromJSON(json) {
43
+ return IntegrationEventDataFromJSONTyped(json, false);
44
+ }
45
+ function IntegrationEventDataFromJSONTyped(json, ignoreDiscriminator) {
46
+ if (json == null) {
47
+ return json;
48
+ }
49
+ return {
50
+ 'portal': (0, IntegrationEventPortal_1.IntegrationEventPortalFromJSON)(json['portal']),
51
+ 'learner': (0, IntegrationEventLearner_1.IntegrationEventLearnerFromJSON)(json['learner']),
52
+ 'course': (0, IntegrationEventCourse_1.IntegrationEventCourseFromJSON)(json['course']),
53
+ 'enrollment': (0, IntegrationEventEnrollment_1.IntegrationEventEnrollmentFromJSON)(json['enrollment']),
54
+ 'certificate': (0, IntegrationEventCertificate_1.IntegrationEventCertificateFromJSON)(json['certificate']),
55
+ };
56
+ }
57
+ function IntegrationEventDataToJSON(json) {
58
+ return IntegrationEventDataToJSONTyped(json, false);
59
+ }
60
+ function IntegrationEventDataToJSONTyped(value, ignoreDiscriminator = false) {
61
+ if (value == null) {
62
+ return value;
63
+ }
64
+ return {
65
+ 'portal': (0, IntegrationEventPortal_1.IntegrationEventPortalToJSON)(value['portal']),
66
+ 'learner': (0, IntegrationEventLearner_1.IntegrationEventLearnerToJSON)(value['learner']),
67
+ 'course': (0, IntegrationEventCourse_1.IntegrationEventCourseToJSON)(value['course']),
68
+ 'enrollment': (0, IntegrationEventEnrollment_1.IntegrationEventEnrollmentToJSON)(value['enrollment']),
69
+ 'certificate': (0, IntegrationEventCertificate_1.IntegrationEventCertificateToJSON)(value['certificate']),
70
+ };
71
+ }
@@ -0,0 +1,71 @@
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 IntegrationEventEnrollment
16
+ */
17
+ export interface IntegrationEventEnrollment {
18
+ /**
19
+ * Stable external enrollment ID.
20
+ * @type {string}
21
+ * @memberof IntegrationEventEnrollment
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof IntegrationEventEnrollment
28
+ */
29
+ status: string;
30
+ /**
31
+ *
32
+ * @type {IntegrationEventEnrollmentOccurrenceEnum}
33
+ * @memberof IntegrationEventEnrollment
34
+ */
35
+ occurrence: IntegrationEventEnrollmentOccurrenceEnum;
36
+ /**
37
+ *
38
+ * @type {Date}
39
+ * @memberof IntegrationEventEnrollment
40
+ */
41
+ enrollmentDateStart: Date;
42
+ /**
43
+ *
44
+ * @type {Date}
45
+ * @memberof IntegrationEventEnrollment
46
+ */
47
+ enrollmentDateEnd: Date | null;
48
+ /**
49
+ *
50
+ * @type {Date}
51
+ * @memberof IntegrationEventEnrollment
52
+ */
53
+ completedAt: Date | null;
54
+ }
55
+ /**
56
+ * @export
57
+ */
58
+ export declare const IntegrationEventEnrollmentOccurrenceEnum: {
59
+ readonly Created: "created";
60
+ readonly Resumed: "resumed";
61
+ readonly Completed: "completed";
62
+ };
63
+ export type IntegrationEventEnrollmentOccurrenceEnum = typeof IntegrationEventEnrollmentOccurrenceEnum[keyof typeof IntegrationEventEnrollmentOccurrenceEnum];
64
+ /**
65
+ * Check if a given object implements the IntegrationEventEnrollment interface.
66
+ */
67
+ export declare function instanceOfIntegrationEventEnrollment(value: object): value is IntegrationEventEnrollment;
68
+ export declare function IntegrationEventEnrollmentFromJSON(json: any): IntegrationEventEnrollment;
69
+ export declare function IntegrationEventEnrollmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationEventEnrollment;
70
+ export declare function IntegrationEventEnrollmentToJSON(json: any): IntegrationEventEnrollment;
71
+ export declare function IntegrationEventEnrollmentToJSONTyped(value?: IntegrationEventEnrollment | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,79 @@
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.IntegrationEventEnrollmentOccurrenceEnum = void 0;
17
+ exports.instanceOfIntegrationEventEnrollment = instanceOfIntegrationEventEnrollment;
18
+ exports.IntegrationEventEnrollmentFromJSON = IntegrationEventEnrollmentFromJSON;
19
+ exports.IntegrationEventEnrollmentFromJSONTyped = IntegrationEventEnrollmentFromJSONTyped;
20
+ exports.IntegrationEventEnrollmentToJSON = IntegrationEventEnrollmentToJSON;
21
+ exports.IntegrationEventEnrollmentToJSONTyped = IntegrationEventEnrollmentToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.IntegrationEventEnrollmentOccurrenceEnum = {
26
+ Created: 'created',
27
+ Resumed: 'resumed',
28
+ Completed: 'completed'
29
+ };
30
+ /**
31
+ * Check if a given object implements the IntegrationEventEnrollment interface.
32
+ */
33
+ function instanceOfIntegrationEventEnrollment(value) {
34
+ if (!('id' in value) || value['id'] === undefined)
35
+ return false;
36
+ if (!('status' in value) || value['status'] === undefined)
37
+ return false;
38
+ if (!('occurrence' in value) || value['occurrence'] === undefined)
39
+ return false;
40
+ if (!('enrollmentDateStart' in value) || value['enrollmentDateStart'] === undefined)
41
+ return false;
42
+ if (!('enrollmentDateEnd' in value) || value['enrollmentDateEnd'] === undefined)
43
+ return false;
44
+ if (!('completedAt' in value) || value['completedAt'] === undefined)
45
+ return false;
46
+ return true;
47
+ }
48
+ function IntegrationEventEnrollmentFromJSON(json) {
49
+ return IntegrationEventEnrollmentFromJSONTyped(json, false);
50
+ }
51
+ function IntegrationEventEnrollmentFromJSONTyped(json, ignoreDiscriminator) {
52
+ if (json == null) {
53
+ return json;
54
+ }
55
+ return {
56
+ 'id': json['id'],
57
+ 'status': json['status'],
58
+ 'occurrence': json['occurrence'],
59
+ 'enrollmentDateStart': (new Date(json['enrollment_date_start'])),
60
+ 'enrollmentDateEnd': (json['enrollment_date_end'] == null ? null : new Date(json['enrollment_date_end'])),
61
+ 'completedAt': (json['completed_at'] == null ? null : new Date(json['completed_at'])),
62
+ };
63
+ }
64
+ function IntegrationEventEnrollmentToJSON(json) {
65
+ return IntegrationEventEnrollmentToJSONTyped(json, false);
66
+ }
67
+ function IntegrationEventEnrollmentToJSONTyped(value, ignoreDiscriminator = false) {
68
+ if (value == null) {
69
+ return value;
70
+ }
71
+ return {
72
+ 'id': value['id'],
73
+ 'status': value['status'],
74
+ 'occurrence': value['occurrence'],
75
+ 'enrollment_date_start': value['enrollmentDateStart'].toISOString(),
76
+ 'enrollment_date_end': value['enrollmentDateEnd'] == null ? value['enrollmentDateEnd'] : value['enrollmentDateEnd'].toISOString(),
77
+ 'completed_at': value['completedAt'] == null ? value['completedAt'] : value['completedAt'].toISOString(),
78
+ };
79
+ }
@@ -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 IntegrationEventLearner
16
+ */
17
+ export interface IntegrationEventLearner {
18
+ /**
19
+ * Stable external learner ID.
20
+ * @type {string}
21
+ * @memberof IntegrationEventLearner
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof IntegrationEventLearner
28
+ */
29
+ email: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof IntegrationEventLearner
34
+ */
35
+ firstName: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof IntegrationEventLearner
40
+ */
41
+ lastName: string;
42
+ }
43
+ /**
44
+ * Check if a given object implements the IntegrationEventLearner interface.
45
+ */
46
+ export declare function instanceOfIntegrationEventLearner(value: object): value is IntegrationEventLearner;
47
+ export declare function IntegrationEventLearnerFromJSON(json: any): IntegrationEventLearner;
48
+ export declare function IntegrationEventLearnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationEventLearner;
49
+ export declare function IntegrationEventLearnerToJSON(json: any): IntegrationEventLearner;
50
+ export declare function IntegrationEventLearnerToJSONTyped(value?: IntegrationEventLearner | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,62 @@
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.instanceOfIntegrationEventLearner = instanceOfIntegrationEventLearner;
17
+ exports.IntegrationEventLearnerFromJSON = IntegrationEventLearnerFromJSON;
18
+ exports.IntegrationEventLearnerFromJSONTyped = IntegrationEventLearnerFromJSONTyped;
19
+ exports.IntegrationEventLearnerToJSON = IntegrationEventLearnerToJSON;
20
+ exports.IntegrationEventLearnerToJSONTyped = IntegrationEventLearnerToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the IntegrationEventLearner interface.
23
+ */
24
+ function instanceOfIntegrationEventLearner(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('email' in value) || value['email'] === undefined)
28
+ return false;
29
+ if (!('firstName' in value) || value['firstName'] === undefined)
30
+ return false;
31
+ if (!('lastName' in value) || value['lastName'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function IntegrationEventLearnerFromJSON(json) {
36
+ return IntegrationEventLearnerFromJSONTyped(json, false);
37
+ }
38
+ function IntegrationEventLearnerFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'id': json['id'],
44
+ 'email': json['email'],
45
+ 'firstName': json['first_name'],
46
+ 'lastName': json['last_name'],
47
+ };
48
+ }
49
+ function IntegrationEventLearnerToJSON(json) {
50
+ return IntegrationEventLearnerToJSONTyped(json, false);
51
+ }
52
+ function IntegrationEventLearnerToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'id': value['id'],
58
+ 'email': value['email'],
59
+ 'first_name': value['firstName'],
60
+ 'last_name': value['lastName'],
61
+ };
62
+ }
@@ -0,0 +1,44 @@
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 IntegrationEventPortal
16
+ */
17
+ export interface IntegrationEventPortal {
18
+ /**
19
+ * Stable external portal ID.
20
+ * @type {string}
21
+ * @memberof IntegrationEventPortal
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof IntegrationEventPortal
28
+ */
29
+ name: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof IntegrationEventPortal
34
+ */
35
+ subdomain: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the IntegrationEventPortal interface.
39
+ */
40
+ export declare function instanceOfIntegrationEventPortal(value: object): value is IntegrationEventPortal;
41
+ export declare function IntegrationEventPortalFromJSON(json: any): IntegrationEventPortal;
42
+ export declare function IntegrationEventPortalFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationEventPortal;
43
+ export declare function IntegrationEventPortalToJSON(json: any): IntegrationEventPortal;
44
+ export declare function IntegrationEventPortalToJSONTyped(value?: IntegrationEventPortal | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,58 @@
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.instanceOfIntegrationEventPortal = instanceOfIntegrationEventPortal;
17
+ exports.IntegrationEventPortalFromJSON = IntegrationEventPortalFromJSON;
18
+ exports.IntegrationEventPortalFromJSONTyped = IntegrationEventPortalFromJSONTyped;
19
+ exports.IntegrationEventPortalToJSON = IntegrationEventPortalToJSON;
20
+ exports.IntegrationEventPortalToJSONTyped = IntegrationEventPortalToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the IntegrationEventPortal interface.
23
+ */
24
+ function instanceOfIntegrationEventPortal(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('name' in value) || value['name'] === undefined)
28
+ return false;
29
+ if (!('subdomain' in value) || value['subdomain'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function IntegrationEventPortalFromJSON(json) {
34
+ return IntegrationEventPortalFromJSONTyped(json, false);
35
+ }
36
+ function IntegrationEventPortalFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'id': json['id'],
42
+ 'name': json['name'],
43
+ 'subdomain': json['subdomain'],
44
+ };
45
+ }
46
+ function IntegrationEventPortalToJSON(json) {
47
+ return IntegrationEventPortalToJSONTyped(json, false);
48
+ }
49
+ function IntegrationEventPortalToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'id': value['id'],
55
+ 'name': value['name'],
56
+ 'subdomain': value['subdomain'],
57
+ };
58
+ }
@@ -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,73 @@
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.PostCustomWebhookIntegrationEventTypesEnum = void 0;
17
+ exports.instanceOfPostCustomWebhookIntegration = instanceOfPostCustomWebhookIntegration;
18
+ exports.PostCustomWebhookIntegrationFromJSON = PostCustomWebhookIntegrationFromJSON;
19
+ exports.PostCustomWebhookIntegrationFromJSONTyped = PostCustomWebhookIntegrationFromJSONTyped;
20
+ exports.PostCustomWebhookIntegrationToJSON = PostCustomWebhookIntegrationToJSON;
21
+ exports.PostCustomWebhookIntegrationToJSONTyped = PostCustomWebhookIntegrationToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.PostCustomWebhookIntegrationEventTypesEnum = {
26
+ ComEdaxuEnrollmentEnrolledV1: 'com.edaxu.enrollment.enrolled.v1',
27
+ ComEdaxuEnrollmentCompletedV1: 'com.edaxu.enrollment.completed.v1',
28
+ ComEdaxuCertificateIssuedV1: 'com.edaxu.certificate.issued.v1'
29
+ };
30
+ /**
31
+ * Check if a given object implements the PostCustomWebhookIntegration interface.
32
+ */
33
+ function instanceOfPostCustomWebhookIntegration(value) {
34
+ if (!('name' in value) || value['name'] === undefined)
35
+ return false;
36
+ if (!('targetUrl' in value) || value['targetUrl'] === undefined)
37
+ return false;
38
+ if (!('bearerToken' in value) || value['bearerToken'] === undefined)
39
+ return false;
40
+ if (!('eventTypes' in value) || value['eventTypes'] === undefined)
41
+ return false;
42
+ return true;
43
+ }
44
+ function PostCustomWebhookIntegrationFromJSON(json) {
45
+ return PostCustomWebhookIntegrationFromJSONTyped(json, false);
46
+ }
47
+ function PostCustomWebhookIntegrationFromJSONTyped(json, ignoreDiscriminator) {
48
+ if (json == null) {
49
+ return json;
50
+ }
51
+ return {
52
+ 'name': json['name'],
53
+ 'targetUrl': json['target_url'],
54
+ 'bearerToken': json['bearer_token'],
55
+ 'eventTypes': new Set(json['event_types']),
56
+ 'enabled': json['enabled'] == null ? undefined : json['enabled'],
57
+ };
58
+ }
59
+ function PostCustomWebhookIntegrationToJSON(json) {
60
+ return PostCustomWebhookIntegrationToJSONTyped(json, false);
61
+ }
62
+ function PostCustomWebhookIntegrationToJSONTyped(value, ignoreDiscriminator = false) {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+ return {
67
+ 'name': value['name'],
68
+ 'target_url': value['targetUrl'],
69
+ 'bearer_token': value['bearerToken'],
70
+ 'event_types': Array.from(value['eventTypes']),
71
+ 'enabled': value['enabled'],
72
+ };
73
+ }