@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.
- package/.openapi-generator/FILES +24 -0
- package/README.md +21 -2
- package/dist/apis/IntegrationApi.d.ts +125 -0
- package/dist/apis/IntegrationApi.js +330 -1
- package/dist/esm/apis/IntegrationApi.d.ts +125 -0
- package/dist/esm/apis/IntegrationApi.js +329 -0
- package/dist/esm/models/CustomWebhookIntegration.d.ts +83 -0
- package/dist/esm/models/CustomWebhookIntegration.js +79 -0
- package/dist/esm/models/IntegrationEvent.d.ts +98 -0
- package/dist/esm/models/IntegrationEvent.js +92 -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 +61 -0
- package/dist/esm/models/IntegrationEventData.js +64 -0
- package/dist/esm/models/IntegrationEventEnrollment.d.ts +71 -0
- package/dist/esm/models/IntegrationEventEnrollment.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/PostCustomWebhookIntegration.d.ts +65 -0
- package/dist/esm/models/PostCustomWebhookIntegration.js +65 -0
- package/dist/esm/models/PostZapierSubscription.d.ts +53 -0
- package/dist/esm/models/PostZapierSubscription.js +57 -0
- package/dist/esm/models/PutCustomWebhookIntegration.d.ts +65 -0
- package/dist/esm/models/PutCustomWebhookIntegration.js +57 -0
- package/dist/esm/models/ZapierSubscription.d.ts +53 -0
- package/dist/esm/models/ZapierSubscription.js +59 -0
- package/dist/esm/models/index.d.ts +12 -0
- package/dist/esm/models/index.js +12 -0
- package/dist/models/CustomWebhookIntegration.d.ts +83 -0
- package/dist/models/CustomWebhookIntegration.js +87 -0
- package/dist/models/IntegrationEvent.d.ts +98 -0
- package/dist/models/IntegrationEvent.js +100 -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 +61 -0
- package/dist/models/IntegrationEventData.js +71 -0
- package/dist/models/IntegrationEventEnrollment.d.ts +71 -0
- package/dist/models/IntegrationEventEnrollment.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/PostCustomWebhookIntegration.d.ts +65 -0
- package/dist/models/PostCustomWebhookIntegration.js +73 -0
- package/dist/models/PostZapierSubscription.d.ts +53 -0
- package/dist/models/PostZapierSubscription.js +65 -0
- package/dist/models/PutCustomWebhookIntegration.d.ts +65 -0
- package/dist/models/PutCustomWebhookIntegration.js +65 -0
- package/dist/models/ZapierSubscription.d.ts +53 -0
- package/dist/models/ZapierSubscription.js +67 -0
- package/dist/models/index.d.ts +12 -0
- package/dist/models/index.js +12 -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 +42 -0
- package/docs/IntegrationEventEnrollment.md +44 -0
- package/docs/IntegrationEventLearner.md +40 -0
- package/docs/IntegrationEventPortal.md +38 -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 +464 -0
- package/src/models/CustomWebhookIntegration.ts +141 -0
- package/src/models/IntegrationEvent.ts +165 -0
- package/src/models/IntegrationEventCertificate.ts +133 -0
- package/src/models/IntegrationEventCourse.ts +75 -0
- package/src/models/IntegrationEventData.ts +138 -0
- package/src/models/IntegrationEventEnrollment.ts +123 -0
- package/src/models/IntegrationEventLearner.ts +93 -0
- package/src/models/IntegrationEventPortal.ts +84 -0
- package/src/models/PostCustomWebhookIntegration.ts +113 -0
- package/src/models/PostZapierSubscription.ts +95 -0
- package/src/models/PutCustomWebhookIntegration.ts +109 -0
- package/src/models/ZapierSubscription.ts +96 -0
- package/src/models/index.ts +12 -0
|
@@ -0,0 +1,123 @@
|
|
|
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 IntegrationEventEnrollment
|
|
20
|
+
*/
|
|
21
|
+
export interface IntegrationEventEnrollment {
|
|
22
|
+
/**
|
|
23
|
+
* Stable external enrollment ID.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof IntegrationEventEnrollment
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof IntegrationEventEnrollment
|
|
32
|
+
*/
|
|
33
|
+
status: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {IntegrationEventEnrollmentOccurrenceEnum}
|
|
37
|
+
* @memberof IntegrationEventEnrollment
|
|
38
|
+
*/
|
|
39
|
+
occurrence: IntegrationEventEnrollmentOccurrenceEnum;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Date}
|
|
43
|
+
* @memberof IntegrationEventEnrollment
|
|
44
|
+
*/
|
|
45
|
+
enrollmentDateStart: Date;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {Date}
|
|
49
|
+
* @memberof IntegrationEventEnrollment
|
|
50
|
+
*/
|
|
51
|
+
enrollmentDateEnd: Date | null;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {Date}
|
|
55
|
+
* @memberof IntegrationEventEnrollment
|
|
56
|
+
*/
|
|
57
|
+
completedAt: Date | null;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export const IntegrationEventEnrollmentOccurrenceEnum = {
|
|
65
|
+
Created: 'created',
|
|
66
|
+
Resumed: 'resumed',
|
|
67
|
+
Completed: 'completed'
|
|
68
|
+
} as const;
|
|
69
|
+
export type IntegrationEventEnrollmentOccurrenceEnum = typeof IntegrationEventEnrollmentOccurrenceEnum[keyof typeof IntegrationEventEnrollmentOccurrenceEnum];
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Check if a given object implements the IntegrationEventEnrollment interface.
|
|
74
|
+
*/
|
|
75
|
+
export function instanceOfIntegrationEventEnrollment(value: object): value is IntegrationEventEnrollment {
|
|
76
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
77
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
78
|
+
if (!('occurrence' in value) || value['occurrence'] === undefined) return false;
|
|
79
|
+
if (!('enrollmentDateStart' in value) || value['enrollmentDateStart'] === undefined) return false;
|
|
80
|
+
if (!('enrollmentDateEnd' in value) || value['enrollmentDateEnd'] === undefined) return false;
|
|
81
|
+
if (!('completedAt' in value) || value['completedAt'] === undefined) return false;
|
|
82
|
+
return true;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function IntegrationEventEnrollmentFromJSON(json: any): IntegrationEventEnrollment {
|
|
86
|
+
return IntegrationEventEnrollmentFromJSONTyped(json, false);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function IntegrationEventEnrollmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationEventEnrollment {
|
|
90
|
+
if (json == null) {
|
|
91
|
+
return json;
|
|
92
|
+
}
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'id': json['id'],
|
|
96
|
+
'status': json['status'],
|
|
97
|
+
'occurrence': json['occurrence'],
|
|
98
|
+
'enrollmentDateStart': (new Date(json['enrollment_date_start'])),
|
|
99
|
+
'enrollmentDateEnd': (json['enrollment_date_end'] == null ? null : new Date(json['enrollment_date_end'])),
|
|
100
|
+
'completedAt': (json['completed_at'] == null ? null : new Date(json['completed_at'])),
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function IntegrationEventEnrollmentToJSON(json: any): IntegrationEventEnrollment {
|
|
105
|
+
return IntegrationEventEnrollmentToJSONTyped(json, false);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function IntegrationEventEnrollmentToJSONTyped(value?: IntegrationEventEnrollment | null, ignoreDiscriminator: boolean = false): any {
|
|
109
|
+
if (value == null) {
|
|
110
|
+
return value;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
return {
|
|
114
|
+
|
|
115
|
+
'id': value['id'],
|
|
116
|
+
'status': value['status'],
|
|
117
|
+
'occurrence': value['occurrence'],
|
|
118
|
+
'enrollment_date_start': value['enrollmentDateStart'].toISOString(),
|
|
119
|
+
'enrollment_date_end': value['enrollmentDateEnd'] == null ? value['enrollmentDateEnd'] : value['enrollmentDateEnd'].toISOString(),
|
|
120
|
+
'completed_at': value['completedAt'] == null ? value['completedAt'] : value['completedAt'].toISOString(),
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
|
|
@@ -0,0 +1,93 @@
|
|
|
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 IntegrationEventLearner
|
|
20
|
+
*/
|
|
21
|
+
export interface IntegrationEventLearner {
|
|
22
|
+
/**
|
|
23
|
+
* Stable external learner ID.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof IntegrationEventLearner
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof IntegrationEventLearner
|
|
32
|
+
*/
|
|
33
|
+
email: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof IntegrationEventLearner
|
|
38
|
+
*/
|
|
39
|
+
firstName: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof IntegrationEventLearner
|
|
44
|
+
*/
|
|
45
|
+
lastName: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the IntegrationEventLearner interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfIntegrationEventLearner(value: object): value is IntegrationEventLearner {
|
|
52
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
53
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
54
|
+
if (!('firstName' in value) || value['firstName'] === undefined) return false;
|
|
55
|
+
if (!('lastName' in value) || value['lastName'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function IntegrationEventLearnerFromJSON(json: any): IntegrationEventLearner {
|
|
60
|
+
return IntegrationEventLearnerFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function IntegrationEventLearnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationEventLearner {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'id': json['id'],
|
|
70
|
+
'email': json['email'],
|
|
71
|
+
'firstName': json['first_name'],
|
|
72
|
+
'lastName': json['last_name'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function IntegrationEventLearnerToJSON(json: any): IntegrationEventLearner {
|
|
77
|
+
return IntegrationEventLearnerToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function IntegrationEventLearnerToJSONTyped(value?: IntegrationEventLearner | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'id': value['id'],
|
|
88
|
+
'email': value['email'],
|
|
89
|
+
'first_name': value['firstName'],
|
|
90
|
+
'last_name': value['lastName'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
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 IntegrationEventPortal
|
|
20
|
+
*/
|
|
21
|
+
export interface IntegrationEventPortal {
|
|
22
|
+
/**
|
|
23
|
+
* Stable external portal ID.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof IntegrationEventPortal
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof IntegrationEventPortal
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof IntegrationEventPortal
|
|
38
|
+
*/
|
|
39
|
+
subdomain: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the IntegrationEventPortal interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfIntegrationEventPortal(value: object): value is IntegrationEventPortal {
|
|
46
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
47
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
48
|
+
if (!('subdomain' in value) || value['subdomain'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function IntegrationEventPortalFromJSON(json: any): IntegrationEventPortal {
|
|
53
|
+
return IntegrationEventPortalFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function IntegrationEventPortalFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationEventPortal {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'id': json['id'],
|
|
63
|
+
'name': json['name'],
|
|
64
|
+
'subdomain': json['subdomain'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function IntegrationEventPortalToJSON(json: any): IntegrationEventPortal {
|
|
69
|
+
return IntegrationEventPortalToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function IntegrationEventPortalToJSONTyped(value?: IntegrationEventPortal | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'id': value['id'],
|
|
80
|
+
'name': value['name'],
|
|
81
|
+
'subdomain': value['subdomain'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -0,0 +1,113 @@
|
|
|
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 PostCustomWebhookIntegration
|
|
20
|
+
*/
|
|
21
|
+
export interface PostCustomWebhookIntegration {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PostCustomWebhookIntegration
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
* Public HTTPS endpoint that receives CloudEvents JSON payloads.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PostCustomWebhookIntegration
|
|
32
|
+
*/
|
|
33
|
+
targetUrl: string;
|
|
34
|
+
/**
|
|
35
|
+
* Secret sent in the Authorization header as a Bearer token.
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof PostCustomWebhookIntegration
|
|
38
|
+
*/
|
|
39
|
+
bearerToken: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Set<PostCustomWebhookIntegrationEventTypesEnum>}
|
|
43
|
+
* @memberof PostCustomWebhookIntegration
|
|
44
|
+
*/
|
|
45
|
+
eventTypes: Set<PostCustomWebhookIntegrationEventTypesEnum>;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {boolean}
|
|
49
|
+
* @memberof PostCustomWebhookIntegration
|
|
50
|
+
*/
|
|
51
|
+
enabled?: boolean;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export const PostCustomWebhookIntegrationEventTypesEnum = {
|
|
59
|
+
ComEdaxuEnrollmentEnrolledV1: 'com.edaxu.enrollment.enrolled.v1',
|
|
60
|
+
ComEdaxuEnrollmentCompletedV1: 'com.edaxu.enrollment.completed.v1',
|
|
61
|
+
ComEdaxuCertificateIssuedV1: 'com.edaxu.certificate.issued.v1'
|
|
62
|
+
} as const;
|
|
63
|
+
export type PostCustomWebhookIntegrationEventTypesEnum = typeof PostCustomWebhookIntegrationEventTypesEnum[keyof typeof PostCustomWebhookIntegrationEventTypesEnum];
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Check if a given object implements the PostCustomWebhookIntegration interface.
|
|
68
|
+
*/
|
|
69
|
+
export function instanceOfPostCustomWebhookIntegration(value: object): value is PostCustomWebhookIntegration {
|
|
70
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
71
|
+
if (!('targetUrl' in value) || value['targetUrl'] === undefined) return false;
|
|
72
|
+
if (!('bearerToken' in value) || value['bearerToken'] === undefined) return false;
|
|
73
|
+
if (!('eventTypes' in value) || value['eventTypes'] === undefined) return false;
|
|
74
|
+
return true;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function PostCustomWebhookIntegrationFromJSON(json: any): PostCustomWebhookIntegration {
|
|
78
|
+
return PostCustomWebhookIntegrationFromJSONTyped(json, false);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function PostCustomWebhookIntegrationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostCustomWebhookIntegration {
|
|
82
|
+
if (json == null) {
|
|
83
|
+
return json;
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'name': json['name'],
|
|
88
|
+
'targetUrl': json['target_url'],
|
|
89
|
+
'bearerToken': json['bearer_token'],
|
|
90
|
+
'eventTypes': new Set(json['event_types']),
|
|
91
|
+
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function PostCustomWebhookIntegrationToJSON(json: any): PostCustomWebhookIntegration {
|
|
96
|
+
return PostCustomWebhookIntegrationToJSONTyped(json, false);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function PostCustomWebhookIntegrationToJSONTyped(value?: PostCustomWebhookIntegration | null, ignoreDiscriminator: boolean = false): any {
|
|
100
|
+
if (value == null) {
|
|
101
|
+
return value;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
return {
|
|
105
|
+
|
|
106
|
+
'name': value['name'],
|
|
107
|
+
'target_url': value['targetUrl'],
|
|
108
|
+
'bearer_token': value['bearerToken'],
|
|
109
|
+
'event_types': Array.from(value['eventTypes'] as Set<any>),
|
|
110
|
+
'enabled': value['enabled'],
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
|
|
@@ -0,0 +1,95 @@
|
|
|
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 PostZapierSubscription
|
|
20
|
+
*/
|
|
21
|
+
export interface PostZapierSubscription {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {PostZapierSubscriptionEventTypeEnum}
|
|
25
|
+
* @memberof PostZapierSubscription
|
|
26
|
+
*/
|
|
27
|
+
eventType: PostZapierSubscriptionEventTypeEnum;
|
|
28
|
+
/**
|
|
29
|
+
* Zapier REST Hook URL supplied as bundle.targetUrl.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PostZapierSubscription
|
|
32
|
+
*/
|
|
33
|
+
targetUrl: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof PostZapierSubscription
|
|
38
|
+
*/
|
|
39
|
+
zapId?: string | null;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export const PostZapierSubscriptionEventTypeEnum = {
|
|
47
|
+
ComEdaxuEnrollmentEnrolledV1: 'com.edaxu.enrollment.enrolled.v1',
|
|
48
|
+
ComEdaxuEnrollmentCompletedV1: 'com.edaxu.enrollment.completed.v1',
|
|
49
|
+
ComEdaxuCertificateIssuedV1: 'com.edaxu.certificate.issued.v1'
|
|
50
|
+
} as const;
|
|
51
|
+
export type PostZapierSubscriptionEventTypeEnum = typeof PostZapierSubscriptionEventTypeEnum[keyof typeof PostZapierSubscriptionEventTypeEnum];
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the PostZapierSubscription interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfPostZapierSubscription(value: object): value is PostZapierSubscription {
|
|
58
|
+
if (!('eventType' in value) || value['eventType'] === undefined) return false;
|
|
59
|
+
if (!('targetUrl' in value) || value['targetUrl'] === undefined) return false;
|
|
60
|
+
return true;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function PostZapierSubscriptionFromJSON(json: any): PostZapierSubscription {
|
|
64
|
+
return PostZapierSubscriptionFromJSONTyped(json, false);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function PostZapierSubscriptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostZapierSubscription {
|
|
68
|
+
if (json == null) {
|
|
69
|
+
return json;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
|
|
73
|
+
'eventType': json['event_type'],
|
|
74
|
+
'targetUrl': json['target_url'],
|
|
75
|
+
'zapId': json['zap_id'] == null ? undefined : json['zap_id'],
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PostZapierSubscriptionToJSON(json: any): PostZapierSubscription {
|
|
80
|
+
return PostZapierSubscriptionToJSONTyped(json, false);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function PostZapierSubscriptionToJSONTyped(value?: PostZapierSubscription | null, ignoreDiscriminator: boolean = false): any {
|
|
84
|
+
if (value == null) {
|
|
85
|
+
return value;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'event_type': value['eventType'],
|
|
91
|
+
'target_url': value['targetUrl'],
|
|
92
|
+
'zap_id': value['zapId'],
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
|
|
@@ -0,0 +1,109 @@
|
|
|
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 PutCustomWebhookIntegration
|
|
20
|
+
*/
|
|
21
|
+
export interface PutCustomWebhookIntegration {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PutCustomWebhookIntegration
|
|
26
|
+
*/
|
|
27
|
+
name?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Public HTTPS endpoint that receives CloudEvents JSON payloads.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PutCustomWebhookIntegration
|
|
32
|
+
*/
|
|
33
|
+
targetUrl?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Replacement secret sent in the Authorization header as a Bearer token. Omit to keep the current token.
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof PutCustomWebhookIntegration
|
|
38
|
+
*/
|
|
39
|
+
bearerToken?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Set<PutCustomWebhookIntegrationEventTypesEnum>}
|
|
43
|
+
* @memberof PutCustomWebhookIntegration
|
|
44
|
+
*/
|
|
45
|
+
eventTypes?: Set<PutCustomWebhookIntegrationEventTypesEnum>;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {boolean}
|
|
49
|
+
* @memberof PutCustomWebhookIntegration
|
|
50
|
+
*/
|
|
51
|
+
enabled?: boolean;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export const PutCustomWebhookIntegrationEventTypesEnum = {
|
|
59
|
+
ComEdaxuEnrollmentEnrolledV1: 'com.edaxu.enrollment.enrolled.v1',
|
|
60
|
+
ComEdaxuEnrollmentCompletedV1: 'com.edaxu.enrollment.completed.v1',
|
|
61
|
+
ComEdaxuCertificateIssuedV1: 'com.edaxu.certificate.issued.v1'
|
|
62
|
+
} as const;
|
|
63
|
+
export type PutCustomWebhookIntegrationEventTypesEnum = typeof PutCustomWebhookIntegrationEventTypesEnum[keyof typeof PutCustomWebhookIntegrationEventTypesEnum];
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Check if a given object implements the PutCustomWebhookIntegration interface.
|
|
68
|
+
*/
|
|
69
|
+
export function instanceOfPutCustomWebhookIntegration(value: object): value is PutCustomWebhookIntegration {
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function PutCustomWebhookIntegrationFromJSON(json: any): PutCustomWebhookIntegration {
|
|
74
|
+
return PutCustomWebhookIntegrationFromJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function PutCustomWebhookIntegrationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutCustomWebhookIntegration {
|
|
78
|
+
if (json == null) {
|
|
79
|
+
return json;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
84
|
+
'targetUrl': json['target_url'] == null ? undefined : json['target_url'],
|
|
85
|
+
'bearerToken': json['bearer_token'] == null ? undefined : json['bearer_token'],
|
|
86
|
+
'eventTypes': json['event_types'] == null ? undefined : new Set(json['event_types']),
|
|
87
|
+
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function PutCustomWebhookIntegrationToJSON(json: any): PutCustomWebhookIntegration {
|
|
92
|
+
return PutCustomWebhookIntegrationToJSONTyped(json, false);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function PutCustomWebhookIntegrationToJSONTyped(value?: PutCustomWebhookIntegration | null, ignoreDiscriminator: boolean = false): any {
|
|
96
|
+
if (value == null) {
|
|
97
|
+
return value;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
return {
|
|
101
|
+
|
|
102
|
+
'name': value['name'],
|
|
103
|
+
'target_url': value['targetUrl'],
|
|
104
|
+
'bearer_token': value['bearerToken'],
|
|
105
|
+
'event_types': value['eventTypes'] == null ? undefined : Array.from(value['eventTypes'] as Set<any>),
|
|
106
|
+
'enabled': value['enabled'],
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
|