@easyedu/js-lsm-api 1.116.0 → 1.118.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 (98) hide show
  1. package/.openapi-generator/FILES +28 -0
  2. package/README.md +23 -2
  3. package/dist/apis/IntegrationApi.d.ts +127 -0
  4. package/dist/apis/IntegrationApi.js +332 -1
  5. package/dist/esm/apis/IntegrationApi.d.ts +127 -0
  6. package/dist/esm/apis/IntegrationApi.js +331 -0
  7. package/dist/esm/models/CustomWebhookIntegration.d.ts +85 -0
  8. package/dist/esm/models/CustomWebhookIntegration.js +81 -0
  9. package/dist/esm/models/IntegrationEvent.d.ts +100 -0
  10. package/dist/esm/models/IntegrationEvent.js +94 -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 +75 -0
  16. package/dist/esm/models/IntegrationEventData.js +74 -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/IntegrationEventInvitation.d.ts +71 -0
  20. package/dist/esm/models/IntegrationEventInvitation.js +71 -0
  21. package/dist/esm/models/IntegrationEventLearner.d.ts +50 -0
  22. package/dist/esm/models/IntegrationEventLearner.js +55 -0
  23. package/dist/esm/models/IntegrationEventPortal.d.ts +44 -0
  24. package/dist/esm/models/IntegrationEventPortal.js +51 -0
  25. package/dist/esm/models/IntegrationEventUser.d.ts +50 -0
  26. package/dist/esm/models/IntegrationEventUser.js +55 -0
  27. package/dist/esm/models/PostCustomWebhookIntegration.d.ts +67 -0
  28. package/dist/esm/models/PostCustomWebhookIntegration.js +67 -0
  29. package/dist/esm/models/PostZapierSubscription.d.ts +55 -0
  30. package/dist/esm/models/PostZapierSubscription.js +59 -0
  31. package/dist/esm/models/PutCustomWebhookIntegration.d.ts +67 -0
  32. package/dist/esm/models/PutCustomWebhookIntegration.js +59 -0
  33. package/dist/esm/models/ZapierSubscription.d.ts +55 -0
  34. package/dist/esm/models/ZapierSubscription.js +61 -0
  35. package/dist/esm/models/index.d.ts +14 -0
  36. package/dist/esm/models/index.js +14 -0
  37. package/dist/models/CustomWebhookIntegration.d.ts +85 -0
  38. package/dist/models/CustomWebhookIntegration.js +89 -0
  39. package/dist/models/IntegrationEvent.d.ts +100 -0
  40. package/dist/models/IntegrationEvent.js +102 -0
  41. package/dist/models/IntegrationEventCertificate.d.ts +78 -0
  42. package/dist/models/IntegrationEventCertificate.js +84 -0
  43. package/dist/models/IntegrationEventCourse.d.ts +38 -0
  44. package/dist/models/IntegrationEventCourse.js +54 -0
  45. package/dist/models/IntegrationEventData.d.ts +75 -0
  46. package/dist/models/IntegrationEventData.js +81 -0
  47. package/dist/models/IntegrationEventEnrollment.d.ts +71 -0
  48. package/dist/models/IntegrationEventEnrollment.js +79 -0
  49. package/dist/models/IntegrationEventInvitation.d.ts +71 -0
  50. package/dist/models/IntegrationEventInvitation.js +79 -0
  51. package/dist/models/IntegrationEventLearner.d.ts +50 -0
  52. package/dist/models/IntegrationEventLearner.js +62 -0
  53. package/dist/models/IntegrationEventPortal.d.ts +44 -0
  54. package/dist/models/IntegrationEventPortal.js +58 -0
  55. package/dist/models/IntegrationEventUser.d.ts +50 -0
  56. package/dist/models/IntegrationEventUser.js +62 -0
  57. package/dist/models/PostCustomWebhookIntegration.d.ts +67 -0
  58. package/dist/models/PostCustomWebhookIntegration.js +75 -0
  59. package/dist/models/PostZapierSubscription.d.ts +55 -0
  60. package/dist/models/PostZapierSubscription.js +67 -0
  61. package/dist/models/PutCustomWebhookIntegration.d.ts +67 -0
  62. package/dist/models/PutCustomWebhookIntegration.js +67 -0
  63. package/dist/models/ZapierSubscription.d.ts +55 -0
  64. package/dist/models/ZapierSubscription.js +69 -0
  65. package/dist/models/index.d.ts +14 -0
  66. package/dist/models/index.js +14 -0
  67. package/docs/CustomWebhookIntegration.md +48 -0
  68. package/docs/IntegrationApi.md +494 -0
  69. package/docs/IntegrationEvent.md +49 -0
  70. package/docs/IntegrationEventCertificate.md +46 -0
  71. package/docs/IntegrationEventCourse.md +36 -0
  72. package/docs/IntegrationEventData.md +46 -0
  73. package/docs/IntegrationEventEnrollment.md +44 -0
  74. package/docs/IntegrationEventInvitation.md +45 -0
  75. package/docs/IntegrationEventLearner.md +40 -0
  76. package/docs/IntegrationEventPortal.md +38 -0
  77. package/docs/IntegrationEventUser.md +41 -0
  78. package/docs/PostCustomWebhookIntegration.md +42 -0
  79. package/docs/PostZapierSubscription.md +38 -0
  80. package/docs/PutCustomWebhookIntegration.md +42 -0
  81. package/docs/ZapierSubscription.md +38 -0
  82. package/package.json +1 -1
  83. package/src/apis/IntegrationApi.ts +466 -0
  84. package/src/models/CustomWebhookIntegration.ts +143 -0
  85. package/src/models/IntegrationEvent.ts +167 -0
  86. package/src/models/IntegrationEventCertificate.ts +133 -0
  87. package/src/models/IntegrationEventCourse.ts +75 -0
  88. package/src/models/IntegrationEventData.ts +170 -0
  89. package/src/models/IntegrationEventEnrollment.ts +123 -0
  90. package/src/models/IntegrationEventInvitation.ts +130 -0
  91. package/src/models/IntegrationEventLearner.ts +93 -0
  92. package/src/models/IntegrationEventPortal.ts +84 -0
  93. package/src/models/IntegrationEventUser.ts +93 -0
  94. package/src/models/PostCustomWebhookIntegration.ts +115 -0
  95. package/src/models/PostZapierSubscription.ts +97 -0
  96. package/src/models/PutCustomWebhookIntegration.ts +111 -0
  97. package/src/models/ZapierSubscription.ts +98 -0
  98. package/src/models/index.ts +14 -0
@@ -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
+ import type { IntegrationEventUser } from './IntegrationEventUser';
13
+ /**
14
+ * Portal invitation lifecycle details for the affected user.
15
+ * @export
16
+ * @interface IntegrationEventInvitation
17
+ */
18
+ export interface IntegrationEventInvitation {
19
+ /**
20
+ * Stable invitation ID.
21
+ * @type {string}
22
+ * @memberof IntegrationEventInvitation
23
+ */
24
+ id: string;
25
+ /**
26
+ *
27
+ * @type {IntegrationEventInvitationStatusEnum}
28
+ * @memberof IntegrationEventInvitation
29
+ */
30
+ status: IntegrationEventInvitationStatusEnum;
31
+ /**
32
+ *
33
+ * @type {Date}
34
+ * @memberof IntegrationEventInvitation
35
+ */
36
+ invitedAt: Date;
37
+ /**
38
+ *
39
+ * @type {Date}
40
+ * @memberof IntegrationEventInvitation
41
+ */
42
+ expiresAt: Date;
43
+ /**
44
+ *
45
+ * @type {Date}
46
+ * @memberof IntegrationEventInvitation
47
+ */
48
+ acceptedAt: Date | null;
49
+ /**
50
+ *
51
+ * @type {IntegrationEventUser}
52
+ * @memberof IntegrationEventInvitation
53
+ */
54
+ invitedBy: IntegrationEventUser | null;
55
+ }
56
+ /**
57
+ * @export
58
+ */
59
+ export declare const IntegrationEventInvitationStatusEnum: {
60
+ readonly Pending: "pending";
61
+ readonly Accepted: "accepted";
62
+ };
63
+ export type IntegrationEventInvitationStatusEnum = typeof IntegrationEventInvitationStatusEnum[keyof typeof IntegrationEventInvitationStatusEnum];
64
+ /**
65
+ * Check if a given object implements the IntegrationEventInvitation interface.
66
+ */
67
+ export declare function instanceOfIntegrationEventInvitation(value: object): value is IntegrationEventInvitation;
68
+ export declare function IntegrationEventInvitationFromJSON(json: any): IntegrationEventInvitation;
69
+ export declare function IntegrationEventInvitationFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationEventInvitation;
70
+ export declare function IntegrationEventInvitationToJSON(json: any): IntegrationEventInvitation;
71
+ export declare function IntegrationEventInvitationToJSONTyped(value?: IntegrationEventInvitation | 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.IntegrationEventInvitationStatusEnum = void 0;
17
+ exports.instanceOfIntegrationEventInvitation = instanceOfIntegrationEventInvitation;
18
+ exports.IntegrationEventInvitationFromJSON = IntegrationEventInvitationFromJSON;
19
+ exports.IntegrationEventInvitationFromJSONTyped = IntegrationEventInvitationFromJSONTyped;
20
+ exports.IntegrationEventInvitationToJSON = IntegrationEventInvitationToJSON;
21
+ exports.IntegrationEventInvitationToJSONTyped = IntegrationEventInvitationToJSONTyped;
22
+ const IntegrationEventUser_1 = require("./IntegrationEventUser");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.IntegrationEventInvitationStatusEnum = {
27
+ Pending: 'pending',
28
+ Accepted: 'accepted'
29
+ };
30
+ /**
31
+ * Check if a given object implements the IntegrationEventInvitation interface.
32
+ */
33
+ function instanceOfIntegrationEventInvitation(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 (!('invitedAt' in value) || value['invitedAt'] === undefined)
39
+ return false;
40
+ if (!('expiresAt' in value) || value['expiresAt'] === undefined)
41
+ return false;
42
+ if (!('acceptedAt' in value) || value['acceptedAt'] === undefined)
43
+ return false;
44
+ if (!('invitedBy' in value) || value['invitedBy'] === undefined)
45
+ return false;
46
+ return true;
47
+ }
48
+ function IntegrationEventInvitationFromJSON(json) {
49
+ return IntegrationEventInvitationFromJSONTyped(json, false);
50
+ }
51
+ function IntegrationEventInvitationFromJSONTyped(json, ignoreDiscriminator) {
52
+ if (json == null) {
53
+ return json;
54
+ }
55
+ return {
56
+ 'id': json['id'],
57
+ 'status': json['status'],
58
+ 'invitedAt': (new Date(json['invited_at'])),
59
+ 'expiresAt': (new Date(json['expires_at'])),
60
+ 'acceptedAt': (json['accepted_at'] == null ? null : new Date(json['accepted_at'])),
61
+ 'invitedBy': (0, IntegrationEventUser_1.IntegrationEventUserFromJSON)(json['invited_by']),
62
+ };
63
+ }
64
+ function IntegrationEventInvitationToJSON(json) {
65
+ return IntegrationEventInvitationToJSONTyped(json, false);
66
+ }
67
+ function IntegrationEventInvitationToJSONTyped(value, ignoreDiscriminator = false) {
68
+ if (value == null) {
69
+ return value;
70
+ }
71
+ return {
72
+ 'id': value['id'],
73
+ 'status': value['status'],
74
+ 'invited_at': value['invitedAt'].toISOString(),
75
+ 'expires_at': value['expiresAt'].toISOString(),
76
+ 'accepted_at': value['acceptedAt'] == null ? value['acceptedAt'] : value['acceptedAt'].toISOString(),
77
+ 'invited_by': (0, IntegrationEventUser_1.IntegrationEventUserToJSON)(value['invitedBy']),
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,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
+ * User affected by a portal membership lifecycle event.
14
+ * @export
15
+ * @interface IntegrationEventUser
16
+ */
17
+ export interface IntegrationEventUser {
18
+ /**
19
+ * Stable external user ID.
20
+ * @type {string}
21
+ * @memberof IntegrationEventUser
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof IntegrationEventUser
28
+ */
29
+ email: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof IntegrationEventUser
34
+ */
35
+ firstName: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof IntegrationEventUser
40
+ */
41
+ lastName: string;
42
+ }
43
+ /**
44
+ * Check if a given object implements the IntegrationEventUser interface.
45
+ */
46
+ export declare function instanceOfIntegrationEventUser(value: object): value is IntegrationEventUser;
47
+ export declare function IntegrationEventUserFromJSON(json: any): IntegrationEventUser;
48
+ export declare function IntegrationEventUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationEventUser;
49
+ export declare function IntegrationEventUserToJSON(json: any): IntegrationEventUser;
50
+ export declare function IntegrationEventUserToJSONTyped(value?: IntegrationEventUser | 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.instanceOfIntegrationEventUser = instanceOfIntegrationEventUser;
17
+ exports.IntegrationEventUserFromJSON = IntegrationEventUserFromJSON;
18
+ exports.IntegrationEventUserFromJSONTyped = IntegrationEventUserFromJSONTyped;
19
+ exports.IntegrationEventUserToJSON = IntegrationEventUserToJSON;
20
+ exports.IntegrationEventUserToJSONTyped = IntegrationEventUserToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the IntegrationEventUser interface.
23
+ */
24
+ function instanceOfIntegrationEventUser(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 IntegrationEventUserFromJSON(json) {
36
+ return IntegrationEventUserFromJSONTyped(json, false);
37
+ }
38
+ function IntegrationEventUserFromJSONTyped(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 IntegrationEventUserToJSON(json) {
50
+ return IntegrationEventUserToJSONTyped(json, false);
51
+ }
52
+ function IntegrationEventUserToJSONTyped(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,67 @@
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
+ readonly ComEdaxuPortalUserInvitedV1: "com.edaxu.portal.user_invited.v1";
57
+ readonly ComEdaxuPortalUserJoinedV1: "com.edaxu.portal.user_joined.v1";
58
+ };
59
+ export type PostCustomWebhookIntegrationEventTypesEnum = typeof PostCustomWebhookIntegrationEventTypesEnum[keyof typeof PostCustomWebhookIntegrationEventTypesEnum];
60
+ /**
61
+ * Check if a given object implements the PostCustomWebhookIntegration interface.
62
+ */
63
+ export declare function instanceOfPostCustomWebhookIntegration(value: object): value is PostCustomWebhookIntegration;
64
+ export declare function PostCustomWebhookIntegrationFromJSON(json: any): PostCustomWebhookIntegration;
65
+ export declare function PostCustomWebhookIntegrationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostCustomWebhookIntegration;
66
+ export declare function PostCustomWebhookIntegrationToJSON(json: any): PostCustomWebhookIntegration;
67
+ export declare function PostCustomWebhookIntegrationToJSONTyped(value?: PostCustomWebhookIntegration | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,75 @@
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
+ ComEdaxuPortalUserInvitedV1: 'com.edaxu.portal.user_invited.v1',
30
+ ComEdaxuPortalUserJoinedV1: 'com.edaxu.portal.user_joined.v1'
31
+ };
32
+ /**
33
+ * Check if a given object implements the PostCustomWebhookIntegration interface.
34
+ */
35
+ function instanceOfPostCustomWebhookIntegration(value) {
36
+ if (!('name' in value) || value['name'] === undefined)
37
+ return false;
38
+ if (!('targetUrl' in value) || value['targetUrl'] === undefined)
39
+ return false;
40
+ if (!('bearerToken' in value) || value['bearerToken'] === undefined)
41
+ return false;
42
+ if (!('eventTypes' in value) || value['eventTypes'] === undefined)
43
+ return false;
44
+ return true;
45
+ }
46
+ function PostCustomWebhookIntegrationFromJSON(json) {
47
+ return PostCustomWebhookIntegrationFromJSONTyped(json, false);
48
+ }
49
+ function PostCustomWebhookIntegrationFromJSONTyped(json, ignoreDiscriminator) {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+ 'name': json['name'],
55
+ 'targetUrl': json['target_url'],
56
+ 'bearerToken': json['bearer_token'],
57
+ 'eventTypes': new Set(json['event_types']),
58
+ 'enabled': json['enabled'] == null ? undefined : json['enabled'],
59
+ };
60
+ }
61
+ function PostCustomWebhookIntegrationToJSON(json) {
62
+ return PostCustomWebhookIntegrationToJSONTyped(json, false);
63
+ }
64
+ function PostCustomWebhookIntegrationToJSONTyped(value, ignoreDiscriminator = false) {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+ return {
69
+ 'name': value['name'],
70
+ 'target_url': value['targetUrl'],
71
+ 'bearer_token': value['bearerToken'],
72
+ 'event_types': Array.from(value['eventTypes']),
73
+ 'enabled': value['enabled'],
74
+ };
75
+ }
@@ -0,0 +1,55 @@
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 PostZapierSubscription
16
+ */
17
+ export interface PostZapierSubscription {
18
+ /**
19
+ *
20
+ * @type {PostZapierSubscriptionEventTypeEnum}
21
+ * @memberof PostZapierSubscription
22
+ */
23
+ eventType: PostZapierSubscriptionEventTypeEnum;
24
+ /**
25
+ * Zapier REST Hook URL supplied as bundle.targetUrl.
26
+ * @type {string}
27
+ * @memberof PostZapierSubscription
28
+ */
29
+ targetUrl: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof PostZapierSubscription
34
+ */
35
+ zapId?: string | null;
36
+ }
37
+ /**
38
+ * @export
39
+ */
40
+ export declare const PostZapierSubscriptionEventTypeEnum: {
41
+ readonly ComEdaxuEnrollmentEnrolledV1: "com.edaxu.enrollment.enrolled.v1";
42
+ readonly ComEdaxuEnrollmentCompletedV1: "com.edaxu.enrollment.completed.v1";
43
+ readonly ComEdaxuCertificateIssuedV1: "com.edaxu.certificate.issued.v1";
44
+ readonly ComEdaxuPortalUserInvitedV1: "com.edaxu.portal.user_invited.v1";
45
+ readonly ComEdaxuPortalUserJoinedV1: "com.edaxu.portal.user_joined.v1";
46
+ };
47
+ export type PostZapierSubscriptionEventTypeEnum = typeof PostZapierSubscriptionEventTypeEnum[keyof typeof PostZapierSubscriptionEventTypeEnum];
48
+ /**
49
+ * Check if a given object implements the PostZapierSubscription interface.
50
+ */
51
+ export declare function instanceOfPostZapierSubscription(value: object): value is PostZapierSubscription;
52
+ export declare function PostZapierSubscriptionFromJSON(json: any): PostZapierSubscription;
53
+ export declare function PostZapierSubscriptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostZapierSubscription;
54
+ export declare function PostZapierSubscriptionToJSON(json: any): PostZapierSubscription;
55
+ export declare function PostZapierSubscriptionToJSONTyped(value?: PostZapierSubscription | null, ignoreDiscriminator?: boolean): any;