@easyedu/js-lsm-api 1.114.0 → 1.115.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 +14 -0
- package/README.md +13 -2
- package/dist/apis/IntegrationApi.d.ts +97 -0
- package/dist/apis/IntegrationApi.js +242 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/IntegrationApi.d.ts +97 -0
- package/dist/esm/apis/IntegrationApi.js +238 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/GetZapierMe.d.ts +62 -0
- package/dist/esm/models/GetZapierMe.js +63 -0
- package/dist/esm/models/GetZapierSetup.d.ts +40 -0
- package/dist/esm/models/GetZapierSetup.js +49 -0
- package/dist/esm/models/PostZapierSetup.d.ts +38 -0
- package/dist/esm/models/PostZapierSetup.js +47 -0
- package/dist/esm/models/PostZapierSetupResponse.d.ts +39 -0
- package/dist/esm/models/PostZapierSetupResponse.js +48 -0
- package/dist/esm/models/PutZapierSetup.d.ts +38 -0
- package/dist/esm/models/PutZapierSetup.js +43 -0
- package/dist/esm/models/ZapierIntegration.d.ts +92 -0
- package/dist/esm/models/ZapierIntegration.js +79 -0
- package/dist/esm/models/index.d.ts +6 -0
- package/dist/esm/models/index.js +6 -0
- package/dist/models/GetZapierMe.d.ts +62 -0
- package/dist/models/GetZapierMe.js +70 -0
- package/dist/models/GetZapierSetup.d.ts +40 -0
- package/dist/models/GetZapierSetup.js +56 -0
- package/dist/models/PostZapierSetup.d.ts +38 -0
- package/dist/models/PostZapierSetup.js +54 -0
- package/dist/models/PostZapierSetupResponse.d.ts +39 -0
- package/dist/models/PostZapierSetupResponse.js +55 -0
- package/dist/models/PutZapierSetup.d.ts +38 -0
- package/dist/models/PutZapierSetup.js +50 -0
- package/dist/models/ZapierIntegration.d.ts +92 -0
- package/dist/models/ZapierIntegration.js +86 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/docs/GetZapierMe.md +44 -0
- package/docs/GetZapierSetup.md +36 -0
- package/docs/IntegrationApi.md +346 -0
- package/docs/PostZapierSetup.md +36 -0
- package/docs/PostZapierSetupResponse.md +37 -0
- package/docs/PutZapierSetup.md +36 -0
- package/docs/ZapierIntegration.md +55 -0
- package/package.json +1 -1
- package/src/apis/IntegrationApi.ts +312 -0
- package/src/apis/index.ts +1 -0
- package/src/models/GetZapierMe.ts +111 -0
- package/src/models/GetZapierSetup.ts +90 -0
- package/src/models/PostZapierSetup.ts +75 -0
- package/src/models/PostZapierSetupResponse.ts +83 -0
- package/src/models/PutZapierSetup.ts +73 -0
- package/src/models/ZapierIntegration.ts +154 -0
- package/src/models/index.ts +6 -0
|
@@ -0,0 +1,43 @@
|
|
|
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 PutZapierSetup interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPutZapierSetup(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function PutZapierSetupFromJSON(json) {
|
|
21
|
+
return PutZapierSetupFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function PutZapierSetupFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
29
|
+
'permissionKeys': json['permission_keys'] == null ? undefined : new Set(json['permission_keys']),
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export function PutZapierSetupToJSON(json) {
|
|
33
|
+
return PutZapierSetupToJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function PutZapierSetupToJSONTyped(value, ignoreDiscriminator = false) {
|
|
36
|
+
if (value == null) {
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'name': value['name'],
|
|
41
|
+
'permission_keys': value['permissionKeys'] == null ? undefined : Array.from(value['permissionKeys']),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
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
|
+
* A portal-scoped Zapier connection. The API key secret is never included here.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ZapierIntegration
|
|
16
|
+
*/
|
|
17
|
+
export interface ZapierIntegration {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ZapierIntegration
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ZapierIntegration
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ZapierIntegration
|
|
34
|
+
*/
|
|
35
|
+
portalId: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ZapierIntegration
|
|
40
|
+
*/
|
|
41
|
+
portalName: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ZapierIntegration
|
|
46
|
+
*/
|
|
47
|
+
portalSubdomain: string;
|
|
48
|
+
/**
|
|
49
|
+
* Non-secret prefix used to identify the key.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof ZapierIntegration
|
|
52
|
+
*/
|
|
53
|
+
keyPrefix: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Array<string>}
|
|
57
|
+
* @memberof ZapierIntegration
|
|
58
|
+
*/
|
|
59
|
+
permissionKeys: Array<string>;
|
|
60
|
+
/**
|
|
61
|
+
* Unix epoch timestamp
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof ZapierIntegration
|
|
64
|
+
*/
|
|
65
|
+
createdAt: number;
|
|
66
|
+
/**
|
|
67
|
+
* Unix epoch timestamp
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof ZapierIntegration
|
|
70
|
+
*/
|
|
71
|
+
updatedAt: number;
|
|
72
|
+
/**
|
|
73
|
+
* Unix epoch timestamp
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof ZapierIntegration
|
|
76
|
+
*/
|
|
77
|
+
lastUsedAt?: number | null;
|
|
78
|
+
/**
|
|
79
|
+
* Unix epoch timestamp
|
|
80
|
+
* @type {number}
|
|
81
|
+
* @memberof ZapierIntegration
|
|
82
|
+
*/
|
|
83
|
+
revokedAt?: number | null;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Check if a given object implements the ZapierIntegration interface.
|
|
87
|
+
*/
|
|
88
|
+
export declare function instanceOfZapierIntegration(value: object): value is ZapierIntegration;
|
|
89
|
+
export declare function ZapierIntegrationFromJSON(json: any): ZapierIntegration;
|
|
90
|
+
export declare function ZapierIntegrationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ZapierIntegration;
|
|
91
|
+
export declare function ZapierIntegrationToJSON(json: any): ZapierIntegration;
|
|
92
|
+
export declare function ZapierIntegrationToJSONTyped(value?: ZapierIntegration | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,79 @@
|
|
|
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 ZapierIntegration interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfZapierIntegration(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 (!('portalId' in value) || value['portalId'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('portalName' in value) || value['portalName'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('portalSubdomain' in value) || value['portalSubdomain'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('keyPrefix' in value) || value['keyPrefix'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('permissionKeys' in value) || value['permissionKeys'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
export function ZapierIntegrationFromJSON(json) {
|
|
39
|
+
return ZapierIntegrationFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function ZapierIntegrationFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'id': json['id'],
|
|
47
|
+
'name': json['name'],
|
|
48
|
+
'portalId': json['portal_id'],
|
|
49
|
+
'portalName': json['portal_name'],
|
|
50
|
+
'portalSubdomain': json['portal_subdomain'],
|
|
51
|
+
'keyPrefix': json['key_prefix'],
|
|
52
|
+
'permissionKeys': json['permission_keys'],
|
|
53
|
+
'createdAt': json['created_at'],
|
|
54
|
+
'updatedAt': json['updated_at'],
|
|
55
|
+
'lastUsedAt': json['last_used_at'] == null ? undefined : json['last_used_at'],
|
|
56
|
+
'revokedAt': json['revoked_at'] == null ? undefined : json['revoked_at'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
export function ZapierIntegrationToJSON(json) {
|
|
60
|
+
return ZapierIntegrationToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
export function ZapierIntegrationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'id': value['id'],
|
|
68
|
+
'name': value['name'],
|
|
69
|
+
'portal_id': value['portalId'],
|
|
70
|
+
'portal_name': value['portalName'],
|
|
71
|
+
'portal_subdomain': value['portalSubdomain'],
|
|
72
|
+
'key_prefix': value['keyPrefix'],
|
|
73
|
+
'permission_keys': value['permissionKeys'],
|
|
74
|
+
'created_at': value['createdAt'],
|
|
75
|
+
'updated_at': value['updatedAt'],
|
|
76
|
+
'last_used_at': value['lastUsedAt'],
|
|
77
|
+
'revoked_at': value['revokedAt'],
|
|
78
|
+
};
|
|
79
|
+
}
|
|
@@ -159,6 +159,8 @@ export * from './GetUserCourseListItemCourse';
|
|
|
159
159
|
export * from './GetUserCourseListItemEnrollment';
|
|
160
160
|
export * from './GetUserCourseListItemProgress';
|
|
161
161
|
export * from './GetUserRole';
|
|
162
|
+
export * from './GetZapierMe';
|
|
163
|
+
export * from './GetZapierSetup';
|
|
162
164
|
export * from './LearnerExperienceVersion';
|
|
163
165
|
export * from './LibraryQuizCriteriaPreviewQuestion';
|
|
164
166
|
export * from './LibraryQuizCriterion';
|
|
@@ -250,6 +252,8 @@ export * from './PostSignupRequest';
|
|
|
250
252
|
export * from './PostSignupRequestResponse';
|
|
251
253
|
export * from './PostSupportTicket';
|
|
252
254
|
export * from './PostSupportTicketComment';
|
|
255
|
+
export * from './PostZapierSetup';
|
|
256
|
+
export * from './PostZapierSetupResponse';
|
|
253
257
|
export * from './ProgressionGateError';
|
|
254
258
|
export * from './ProgressionLockReason';
|
|
255
259
|
export * from './PutAttemptAllowance';
|
|
@@ -287,6 +291,7 @@ export * from './PutRole';
|
|
|
287
291
|
export * from './PutRolePermissions';
|
|
288
292
|
export * from './PutSupportTicket';
|
|
289
293
|
export * from './PutUser';
|
|
294
|
+
export * from './PutZapierSetup';
|
|
290
295
|
export * from './QuestionImportCommitResult';
|
|
291
296
|
export * from './QuestionImportDraft';
|
|
292
297
|
export * from './QuestionImportDuplicate';
|
|
@@ -307,3 +312,4 @@ export * from './SupportTicketUser';
|
|
|
307
312
|
export * from './UpdateSelectedPortalResponse';
|
|
308
313
|
export * from './UpdateSelectedPortalResponseHostPortal';
|
|
309
314
|
export * from './UpdateSelectedPortalResponseSelectedPortal';
|
|
315
|
+
export * from './ZapierIntegration';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -161,6 +161,8 @@ export * from './GetUserCourseListItemCourse';
|
|
|
161
161
|
export * from './GetUserCourseListItemEnrollment';
|
|
162
162
|
export * from './GetUserCourseListItemProgress';
|
|
163
163
|
export * from './GetUserRole';
|
|
164
|
+
export * from './GetZapierMe';
|
|
165
|
+
export * from './GetZapierSetup';
|
|
164
166
|
export * from './LearnerExperienceVersion';
|
|
165
167
|
export * from './LibraryQuizCriteriaPreviewQuestion';
|
|
166
168
|
export * from './LibraryQuizCriterion';
|
|
@@ -252,6 +254,8 @@ export * from './PostSignupRequest';
|
|
|
252
254
|
export * from './PostSignupRequestResponse';
|
|
253
255
|
export * from './PostSupportTicket';
|
|
254
256
|
export * from './PostSupportTicketComment';
|
|
257
|
+
export * from './PostZapierSetup';
|
|
258
|
+
export * from './PostZapierSetupResponse';
|
|
255
259
|
export * from './ProgressionGateError';
|
|
256
260
|
export * from './ProgressionLockReason';
|
|
257
261
|
export * from './PutAttemptAllowance';
|
|
@@ -289,6 +293,7 @@ export * from './PutRole';
|
|
|
289
293
|
export * from './PutRolePermissions';
|
|
290
294
|
export * from './PutSupportTicket';
|
|
291
295
|
export * from './PutUser';
|
|
296
|
+
export * from './PutZapierSetup';
|
|
292
297
|
export * from './QuestionImportCommitResult';
|
|
293
298
|
export * from './QuestionImportDraft';
|
|
294
299
|
export * from './QuestionImportDuplicate';
|
|
@@ -309,3 +314,4 @@ export * from './SupportTicketUser';
|
|
|
309
314
|
export * from './UpdateSelectedPortalResponse';
|
|
310
315
|
export * from './UpdateSelectedPortalResponseHostPortal';
|
|
311
316
|
export * from './UpdateSelectedPortalResponseSelectedPortal';
|
|
317
|
+
export * from './ZapierIntegration';
|
|
@@ -0,0 +1,62 @@
|
|
|
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 GetZapierMe
|
|
16
|
+
*/
|
|
17
|
+
export interface GetZapierMe {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetZapierMe
|
|
22
|
+
*/
|
|
23
|
+
integrationId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GetZapierMe
|
|
28
|
+
*/
|
|
29
|
+
integrationName: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GetZapierMe
|
|
34
|
+
*/
|
|
35
|
+
portalId: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof GetZapierMe
|
|
40
|
+
*/
|
|
41
|
+
portalName: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof GetZapierMe
|
|
46
|
+
*/
|
|
47
|
+
portalSubdomain: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Array<string>}
|
|
51
|
+
* @memberof GetZapierMe
|
|
52
|
+
*/
|
|
53
|
+
permissionKeys: Array<string>;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the GetZapierMe interface.
|
|
57
|
+
*/
|
|
58
|
+
export declare function instanceOfGetZapierMe(value: object): value is GetZapierMe;
|
|
59
|
+
export declare function GetZapierMeFromJSON(json: any): GetZapierMe;
|
|
60
|
+
export declare function GetZapierMeFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetZapierMe;
|
|
61
|
+
export declare function GetZapierMeToJSON(json: any): GetZapierMe;
|
|
62
|
+
export declare function GetZapierMeToJSONTyped(value?: GetZapierMe | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,70 @@
|
|
|
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.instanceOfGetZapierMe = instanceOfGetZapierMe;
|
|
17
|
+
exports.GetZapierMeFromJSON = GetZapierMeFromJSON;
|
|
18
|
+
exports.GetZapierMeFromJSONTyped = GetZapierMeFromJSONTyped;
|
|
19
|
+
exports.GetZapierMeToJSON = GetZapierMeToJSON;
|
|
20
|
+
exports.GetZapierMeToJSONTyped = GetZapierMeToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the GetZapierMe interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfGetZapierMe(value) {
|
|
25
|
+
if (!('integrationId' in value) || value['integrationId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('integrationName' in value) || value['integrationName'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('portalId' in value) || value['portalId'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('portalName' in value) || value['portalName'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('portalSubdomain' in value) || value['portalSubdomain'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('permissionKeys' in value) || value['permissionKeys'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function GetZapierMeFromJSON(json) {
|
|
40
|
+
return GetZapierMeFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function GetZapierMeFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'integrationId': json['integration_id'],
|
|
48
|
+
'integrationName': json['integration_name'],
|
|
49
|
+
'portalId': json['portal_id'],
|
|
50
|
+
'portalName': json['portal_name'],
|
|
51
|
+
'portalSubdomain': json['portal_subdomain'],
|
|
52
|
+
'permissionKeys': json['permission_keys'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function GetZapierMeToJSON(json) {
|
|
56
|
+
return GetZapierMeToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function GetZapierMeToJSONTyped(value, ignoreDiscriminator = false) {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'integration_id': value['integrationId'],
|
|
64
|
+
'integration_name': value['integrationName'],
|
|
65
|
+
'portal_id': value['portalId'],
|
|
66
|
+
'portal_name': value['portalName'],
|
|
67
|
+
'portal_subdomain': value['portalSubdomain'],
|
|
68
|
+
'permission_keys': value['permissionKeys'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { GetPermission } from './GetPermission';
|
|
13
|
+
import type { ZapierIntegration } from './ZapierIntegration';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface GetZapierSetup
|
|
18
|
+
*/
|
|
19
|
+
export interface GetZapierSetup {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Array<GetPermission>}
|
|
23
|
+
* @memberof GetZapierSetup
|
|
24
|
+
*/
|
|
25
|
+
availablePermissions: Array<GetPermission>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<ZapierIntegration>}
|
|
29
|
+
* @memberof GetZapierSetup
|
|
30
|
+
*/
|
|
31
|
+
integrations: Array<ZapierIntegration>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the GetZapierSetup interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfGetZapierSetup(value: object): value is GetZapierSetup;
|
|
37
|
+
export declare function GetZapierSetupFromJSON(json: any): GetZapierSetup;
|
|
38
|
+
export declare function GetZapierSetupFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetZapierSetup;
|
|
39
|
+
export declare function GetZapierSetupToJSON(json: any): GetZapierSetup;
|
|
40
|
+
export declare function GetZapierSetupToJSONTyped(value?: GetZapierSetup | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
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.instanceOfGetZapierSetup = instanceOfGetZapierSetup;
|
|
17
|
+
exports.GetZapierSetupFromJSON = GetZapierSetupFromJSON;
|
|
18
|
+
exports.GetZapierSetupFromJSONTyped = GetZapierSetupFromJSONTyped;
|
|
19
|
+
exports.GetZapierSetupToJSON = GetZapierSetupToJSON;
|
|
20
|
+
exports.GetZapierSetupToJSONTyped = GetZapierSetupToJSONTyped;
|
|
21
|
+
const GetPermission_1 = require("./GetPermission");
|
|
22
|
+
const ZapierIntegration_1 = require("./ZapierIntegration");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the GetZapierSetup interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfGetZapierSetup(value) {
|
|
27
|
+
if (!('availablePermissions' in value) || value['availablePermissions'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('integrations' in value) || value['integrations'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function GetZapierSetupFromJSON(json) {
|
|
34
|
+
return GetZapierSetupFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function GetZapierSetupFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'availablePermissions': (json['available_permissions'].map(GetPermission_1.GetPermissionFromJSON)),
|
|
42
|
+
'integrations': (json['integrations'].map(ZapierIntegration_1.ZapierIntegrationFromJSON)),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function GetZapierSetupToJSON(json) {
|
|
46
|
+
return GetZapierSetupToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function GetZapierSetupToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'available_permissions': (value['availablePermissions'].map(GetPermission_1.GetPermissionToJSON)),
|
|
54
|
+
'integrations': (value['integrations'].map(ZapierIntegration_1.ZapierIntegrationToJSON)),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 PostZapierSetup
|
|
16
|
+
*/
|
|
17
|
+
export interface PostZapierSetup {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PostZapierSetup
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Set<string>}
|
|
27
|
+
* @memberof PostZapierSetup
|
|
28
|
+
*/
|
|
29
|
+
permissionKeys: Set<string>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the PostZapierSetup interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfPostZapierSetup(value: object): value is PostZapierSetup;
|
|
35
|
+
export declare function PostZapierSetupFromJSON(json: any): PostZapierSetup;
|
|
36
|
+
export declare function PostZapierSetupFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostZapierSetup;
|
|
37
|
+
export declare function PostZapierSetupToJSON(json: any): PostZapierSetup;
|
|
38
|
+
export declare function PostZapierSetupToJSONTyped(value?: PostZapierSetup | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.instanceOfPostZapierSetup = instanceOfPostZapierSetup;
|
|
17
|
+
exports.PostZapierSetupFromJSON = PostZapierSetupFromJSON;
|
|
18
|
+
exports.PostZapierSetupFromJSONTyped = PostZapierSetupFromJSONTyped;
|
|
19
|
+
exports.PostZapierSetupToJSON = PostZapierSetupToJSON;
|
|
20
|
+
exports.PostZapierSetupToJSONTyped = PostZapierSetupToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PostZapierSetup interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPostZapierSetup(value) {
|
|
25
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('permissionKeys' in value) || value['permissionKeys'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function PostZapierSetupFromJSON(json) {
|
|
32
|
+
return PostZapierSetupFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function PostZapierSetupFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'name': json['name'],
|
|
40
|
+
'permissionKeys': new Set(json['permission_keys']),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function PostZapierSetupToJSON(json) {
|
|
44
|
+
return PostZapierSetupToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function PostZapierSetupToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'name': value['name'],
|
|
52
|
+
'permission_keys': Array.from(value['permissionKeys']),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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 { ZapierIntegration } from './ZapierIntegration';
|
|
13
|
+
/**
|
|
14
|
+
* A newly created Zapier connection. The API key is returned only once.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PostZapierSetupResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface PostZapierSetupResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {ZapierIntegration}
|
|
22
|
+
* @memberof PostZapierSetupResponse
|
|
23
|
+
*/
|
|
24
|
+
integration: ZapierIntegration;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof PostZapierSetupResponse
|
|
29
|
+
*/
|
|
30
|
+
apiKey: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the PostZapierSetupResponse interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfPostZapierSetupResponse(value: object): value is PostZapierSetupResponse;
|
|
36
|
+
export declare function PostZapierSetupResponseFromJSON(json: any): PostZapierSetupResponse;
|
|
37
|
+
export declare function PostZapierSetupResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostZapierSetupResponse;
|
|
38
|
+
export declare function PostZapierSetupResponseToJSON(json: any): PostZapierSetupResponse;
|
|
39
|
+
export declare function PostZapierSetupResponseToJSONTyped(value?: PostZapierSetupResponse | null, ignoreDiscriminator?: boolean): any;
|