@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.
- package/.openapi-generator/FILES +28 -0
- package/README.md +23 -2
- package/dist/apis/IntegrationApi.d.ts +127 -0
- package/dist/apis/IntegrationApi.js +332 -1
- package/dist/esm/apis/IntegrationApi.d.ts +127 -0
- package/dist/esm/apis/IntegrationApi.js +331 -0
- package/dist/esm/models/CustomWebhookIntegration.d.ts +85 -0
- package/dist/esm/models/CustomWebhookIntegration.js +81 -0
- package/dist/esm/models/IntegrationEvent.d.ts +100 -0
- package/dist/esm/models/IntegrationEvent.js +94 -0
- package/dist/esm/models/IntegrationEventCertificate.d.ts +78 -0
- package/dist/esm/models/IntegrationEventCertificate.js +76 -0
- package/dist/esm/models/IntegrationEventCourse.d.ts +38 -0
- package/dist/esm/models/IntegrationEventCourse.js +47 -0
- package/dist/esm/models/IntegrationEventData.d.ts +75 -0
- package/dist/esm/models/IntegrationEventData.js +74 -0
- package/dist/esm/models/IntegrationEventEnrollment.d.ts +71 -0
- package/dist/esm/models/IntegrationEventEnrollment.js +71 -0
- package/dist/esm/models/IntegrationEventInvitation.d.ts +71 -0
- package/dist/esm/models/IntegrationEventInvitation.js +71 -0
- package/dist/esm/models/IntegrationEventLearner.d.ts +50 -0
- package/dist/esm/models/IntegrationEventLearner.js +55 -0
- package/dist/esm/models/IntegrationEventPortal.d.ts +44 -0
- package/dist/esm/models/IntegrationEventPortal.js +51 -0
- package/dist/esm/models/IntegrationEventUser.d.ts +50 -0
- package/dist/esm/models/IntegrationEventUser.js +55 -0
- package/dist/esm/models/PostCustomWebhookIntegration.d.ts +67 -0
- package/dist/esm/models/PostCustomWebhookIntegration.js +67 -0
- package/dist/esm/models/PostZapierSubscription.d.ts +55 -0
- package/dist/esm/models/PostZapierSubscription.js +59 -0
- package/dist/esm/models/PutCustomWebhookIntegration.d.ts +67 -0
- package/dist/esm/models/PutCustomWebhookIntegration.js +59 -0
- package/dist/esm/models/ZapierSubscription.d.ts +55 -0
- package/dist/esm/models/ZapierSubscription.js +61 -0
- package/dist/esm/models/index.d.ts +14 -0
- package/dist/esm/models/index.js +14 -0
- package/dist/models/CustomWebhookIntegration.d.ts +85 -0
- package/dist/models/CustomWebhookIntegration.js +89 -0
- package/dist/models/IntegrationEvent.d.ts +100 -0
- package/dist/models/IntegrationEvent.js +102 -0
- package/dist/models/IntegrationEventCertificate.d.ts +78 -0
- package/dist/models/IntegrationEventCertificate.js +84 -0
- package/dist/models/IntegrationEventCourse.d.ts +38 -0
- package/dist/models/IntegrationEventCourse.js +54 -0
- package/dist/models/IntegrationEventData.d.ts +75 -0
- package/dist/models/IntegrationEventData.js +81 -0
- package/dist/models/IntegrationEventEnrollment.d.ts +71 -0
- package/dist/models/IntegrationEventEnrollment.js +79 -0
- package/dist/models/IntegrationEventInvitation.d.ts +71 -0
- package/dist/models/IntegrationEventInvitation.js +79 -0
- package/dist/models/IntegrationEventLearner.d.ts +50 -0
- package/dist/models/IntegrationEventLearner.js +62 -0
- package/dist/models/IntegrationEventPortal.d.ts +44 -0
- package/dist/models/IntegrationEventPortal.js +58 -0
- package/dist/models/IntegrationEventUser.d.ts +50 -0
- package/dist/models/IntegrationEventUser.js +62 -0
- package/dist/models/PostCustomWebhookIntegration.d.ts +67 -0
- package/dist/models/PostCustomWebhookIntegration.js +75 -0
- package/dist/models/PostZapierSubscription.d.ts +55 -0
- package/dist/models/PostZapierSubscription.js +67 -0
- package/dist/models/PutCustomWebhookIntegration.d.ts +67 -0
- package/dist/models/PutCustomWebhookIntegration.js +67 -0
- package/dist/models/ZapierSubscription.d.ts +55 -0
- package/dist/models/ZapierSubscription.js +69 -0
- package/dist/models/index.d.ts +14 -0
- package/dist/models/index.js +14 -0
- package/docs/CustomWebhookIntegration.md +48 -0
- package/docs/IntegrationApi.md +494 -0
- package/docs/IntegrationEvent.md +49 -0
- package/docs/IntegrationEventCertificate.md +46 -0
- package/docs/IntegrationEventCourse.md +36 -0
- package/docs/IntegrationEventData.md +46 -0
- package/docs/IntegrationEventEnrollment.md +44 -0
- package/docs/IntegrationEventInvitation.md +45 -0
- package/docs/IntegrationEventLearner.md +40 -0
- package/docs/IntegrationEventPortal.md +38 -0
- package/docs/IntegrationEventUser.md +41 -0
- package/docs/PostCustomWebhookIntegration.md +42 -0
- package/docs/PostZapierSubscription.md +38 -0
- package/docs/PutCustomWebhookIntegration.md +42 -0
- package/docs/ZapierSubscription.md +38 -0
- package/package.json +1 -1
- package/src/apis/IntegrationApi.ts +466 -0
- package/src/models/CustomWebhookIntegration.ts +143 -0
- package/src/models/IntegrationEvent.ts +167 -0
- package/src/models/IntegrationEventCertificate.ts +133 -0
- package/src/models/IntegrationEventCourse.ts +75 -0
- package/src/models/IntegrationEventData.ts +170 -0
- package/src/models/IntegrationEventEnrollment.ts +123 -0
- package/src/models/IntegrationEventInvitation.ts +130 -0
- package/src/models/IntegrationEventLearner.ts +93 -0
- package/src/models/IntegrationEventPortal.ts +84 -0
- package/src/models/IntegrationEventUser.ts +93 -0
- package/src/models/PostCustomWebhookIntegration.ts +115 -0
- package/src/models/PostZapierSubscription.ts +97 -0
- package/src/models/PutCustomWebhookIntegration.ts +111 -0
- package/src/models/ZapierSubscription.ts +98 -0
- 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,71 @@
|
|
|
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
|
+
import { IntegrationEventUserFromJSON, IntegrationEventUserToJSON, } from './IntegrationEventUser';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const IntegrationEventInvitationStatusEnum = {
|
|
19
|
+
Pending: 'pending',
|
|
20
|
+
Accepted: 'accepted'
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the IntegrationEventInvitation interface.
|
|
24
|
+
*/
|
|
25
|
+
export function instanceOfIntegrationEventInvitation(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('invitedAt' in value) || value['invitedAt'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('expiresAt' in value) || value['expiresAt'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('acceptedAt' in value) || value['acceptedAt'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('invitedBy' in value) || value['invitedBy'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
export function IntegrationEventInvitationFromJSON(json) {
|
|
41
|
+
return IntegrationEventInvitationFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
export function IntegrationEventInvitationFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'id': json['id'],
|
|
49
|
+
'status': json['status'],
|
|
50
|
+
'invitedAt': (new Date(json['invited_at'])),
|
|
51
|
+
'expiresAt': (new Date(json['expires_at'])),
|
|
52
|
+
'acceptedAt': (json['accepted_at'] == null ? null : new Date(json['accepted_at'])),
|
|
53
|
+
'invitedBy': IntegrationEventUserFromJSON(json['invited_by']),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
export function IntegrationEventInvitationToJSON(json) {
|
|
57
|
+
return IntegrationEventInvitationToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
export function IntegrationEventInvitationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'id': value['id'],
|
|
65
|
+
'status': value['status'],
|
|
66
|
+
'invited_at': value['invitedAt'].toISOString(),
|
|
67
|
+
'expires_at': value['expiresAt'].toISOString(),
|
|
68
|
+
'accepted_at': value['acceptedAt'] == null ? value['acceptedAt'] : value['acceptedAt'].toISOString(),
|
|
69
|
+
'invited_by': IntegrationEventUserToJSON(value['invitedBy']),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
@@ -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,55 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the IntegrationEventLearner interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfIntegrationEventLearner(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('firstName' in value) || value['firstName'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('lastName' in value) || value['lastName'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function IntegrationEventLearnerFromJSON(json) {
|
|
29
|
+
return IntegrationEventLearnerFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function IntegrationEventLearnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'id': json['id'],
|
|
37
|
+
'email': json['email'],
|
|
38
|
+
'firstName': json['first_name'],
|
|
39
|
+
'lastName': json['last_name'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function IntegrationEventLearnerToJSON(json) {
|
|
43
|
+
return IntegrationEventLearnerToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function IntegrationEventLearnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'id': value['id'],
|
|
51
|
+
'email': value['email'],
|
|
52
|
+
'first_name': value['firstName'],
|
|
53
|
+
'last_name': value['lastName'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -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,51 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the IntegrationEventPortal interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfIntegrationEventPortal(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('subdomain' in value) || value['subdomain'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function IntegrationEventPortalFromJSON(json) {
|
|
27
|
+
return IntegrationEventPortalFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function IntegrationEventPortalFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'id': json['id'],
|
|
35
|
+
'name': json['name'],
|
|
36
|
+
'subdomain': json['subdomain'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function IntegrationEventPortalToJSON(json) {
|
|
40
|
+
return IntegrationEventPortalToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function IntegrationEventPortalToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'id': value['id'],
|
|
48
|
+
'name': value['name'],
|
|
49
|
+
'subdomain': value['subdomain'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,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,55 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the IntegrationEventUser interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfIntegrationEventUser(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('firstName' in value) || value['firstName'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('lastName' in value) || value['lastName'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function IntegrationEventUserFromJSON(json) {
|
|
29
|
+
return IntegrationEventUserFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function IntegrationEventUserFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'id': json['id'],
|
|
37
|
+
'email': json['email'],
|
|
38
|
+
'firstName': json['first_name'],
|
|
39
|
+
'lastName': json['last_name'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function IntegrationEventUserToJSON(json) {
|
|
43
|
+
return IntegrationEventUserToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function IntegrationEventUserToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'id': value['id'],
|
|
51
|
+
'email': value['email'],
|
|
52
|
+
'first_name': value['firstName'],
|
|
53
|
+
'last_name': value['lastName'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -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,67 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const PostCustomWebhookIntegrationEventTypesEnum = {
|
|
18
|
+
ComEdaxuEnrollmentEnrolledV1: 'com.edaxu.enrollment.enrolled.v1',
|
|
19
|
+
ComEdaxuEnrollmentCompletedV1: 'com.edaxu.enrollment.completed.v1',
|
|
20
|
+
ComEdaxuCertificateIssuedV1: 'com.edaxu.certificate.issued.v1',
|
|
21
|
+
ComEdaxuPortalUserInvitedV1: 'com.edaxu.portal.user_invited.v1',
|
|
22
|
+
ComEdaxuPortalUserJoinedV1: 'com.edaxu.portal.user_joined.v1'
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the PostCustomWebhookIntegration interface.
|
|
26
|
+
*/
|
|
27
|
+
export function instanceOfPostCustomWebhookIntegration(value) {
|
|
28
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('targetUrl' in value) || value['targetUrl'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('bearerToken' in value) || value['bearerToken'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('eventTypes' in value) || value['eventTypes'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
export function PostCustomWebhookIntegrationFromJSON(json) {
|
|
39
|
+
return PostCustomWebhookIntegrationFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function PostCustomWebhookIntegrationFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'name': json['name'],
|
|
47
|
+
'targetUrl': json['target_url'],
|
|
48
|
+
'bearerToken': json['bearer_token'],
|
|
49
|
+
'eventTypes': new Set(json['event_types']),
|
|
50
|
+
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
export function PostCustomWebhookIntegrationToJSON(json) {
|
|
54
|
+
return PostCustomWebhookIntegrationToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
export function PostCustomWebhookIntegrationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'name': value['name'],
|
|
62
|
+
'target_url': value['targetUrl'],
|
|
63
|
+
'bearer_token': value['bearerToken'],
|
|
64
|
+
'event_types': Array.from(value['eventTypes']),
|
|
65
|
+
'enabled': value['enabled'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -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;
|