@easyedu/js-lsm-api 1.113.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 +16 -0
- package/README.md +14 -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/ChatFeatureUsage.d.ts +47 -0
- package/dist/esm/models/ChatFeatureUsage.js +55 -0
- package/dist/esm/models/GetChatUsage.d.ts +7 -0
- package/dist/esm/models/GetChatUsage.js +5 -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 +7 -0
- package/dist/esm/models/index.js +7 -0
- package/dist/models/ChatFeatureUsage.d.ts +47 -0
- package/dist/models/ChatFeatureUsage.js +63 -0
- package/dist/models/GetChatUsage.d.ts +7 -0
- package/dist/models/GetChatUsage.js +5 -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 +7 -0
- package/dist/models/index.js +7 -0
- package/docs/ChatFeatureUsage.md +36 -0
- package/docs/GetChatUsage.md +2 -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/ChatFeatureUsage.ts +94 -0
- package/src/models/GetChatUsage.ts +16 -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 +7 -0
|
@@ -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;
|
|
@@ -0,0 +1,55 @@
|
|
|
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.instanceOfPostZapierSetupResponse = instanceOfPostZapierSetupResponse;
|
|
17
|
+
exports.PostZapierSetupResponseFromJSON = PostZapierSetupResponseFromJSON;
|
|
18
|
+
exports.PostZapierSetupResponseFromJSONTyped = PostZapierSetupResponseFromJSONTyped;
|
|
19
|
+
exports.PostZapierSetupResponseToJSON = PostZapierSetupResponseToJSON;
|
|
20
|
+
exports.PostZapierSetupResponseToJSONTyped = PostZapierSetupResponseToJSONTyped;
|
|
21
|
+
const ZapierIntegration_1 = require("./ZapierIntegration");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the PostZapierSetupResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfPostZapierSetupResponse(value) {
|
|
26
|
+
if (!('integration' in value) || value['integration'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('apiKey' in value) || value['apiKey'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function PostZapierSetupResponseFromJSON(json) {
|
|
33
|
+
return PostZapierSetupResponseFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function PostZapierSetupResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'integration': (0, ZapierIntegration_1.ZapierIntegrationFromJSON)(json['integration']),
|
|
41
|
+
'apiKey': json['api_key'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function PostZapierSetupResponseToJSON(json) {
|
|
45
|
+
return PostZapierSetupResponseToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function PostZapierSetupResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'integration': (0, ZapierIntegration_1.ZapierIntegrationToJSON)(value['integration']),
|
|
53
|
+
'api_key': value['apiKey'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -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 PutZapierSetup
|
|
16
|
+
*/
|
|
17
|
+
export interface PutZapierSetup {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PutZapierSetup
|
|
22
|
+
*/
|
|
23
|
+
name?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Set<string>}
|
|
27
|
+
* @memberof PutZapierSetup
|
|
28
|
+
*/
|
|
29
|
+
permissionKeys?: Set<string>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the PutZapierSetup interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfPutZapierSetup(value: object): value is PutZapierSetup;
|
|
35
|
+
export declare function PutZapierSetupFromJSON(json: any): PutZapierSetup;
|
|
36
|
+
export declare function PutZapierSetupFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutZapierSetup;
|
|
37
|
+
export declare function PutZapierSetupToJSON(json: any): PutZapierSetup;
|
|
38
|
+
export declare function PutZapierSetupToJSONTyped(value?: PutZapierSetup | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfPutZapierSetup = instanceOfPutZapierSetup;
|
|
17
|
+
exports.PutZapierSetupFromJSON = PutZapierSetupFromJSON;
|
|
18
|
+
exports.PutZapierSetupFromJSONTyped = PutZapierSetupFromJSONTyped;
|
|
19
|
+
exports.PutZapierSetupToJSON = PutZapierSetupToJSON;
|
|
20
|
+
exports.PutZapierSetupToJSONTyped = PutZapierSetupToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PutZapierSetup interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPutZapierSetup(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function PutZapierSetupFromJSON(json) {
|
|
28
|
+
return PutZapierSetupFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function PutZapierSetupFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
36
|
+
'permissionKeys': json['permission_keys'] == null ? undefined : new Set(json['permission_keys']),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function PutZapierSetupToJSON(json) {
|
|
40
|
+
return PutZapierSetupToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function PutZapierSetupToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'name': value['name'],
|
|
48
|
+
'permission_keys': value['permissionKeys'] == null ? undefined : Array.from(value['permissionKeys']),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -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,86 @@
|
|
|
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.instanceOfZapierIntegration = instanceOfZapierIntegration;
|
|
17
|
+
exports.ZapierIntegrationFromJSON = ZapierIntegrationFromJSON;
|
|
18
|
+
exports.ZapierIntegrationFromJSONTyped = ZapierIntegrationFromJSONTyped;
|
|
19
|
+
exports.ZapierIntegrationToJSON = ZapierIntegrationToJSON;
|
|
20
|
+
exports.ZapierIntegrationToJSONTyped = ZapierIntegrationToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ZapierIntegration interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfZapierIntegration(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 (!('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 (!('keyPrefix' in value) || value['keyPrefix'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('permissionKeys' in value) || value['permissionKeys'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
function ZapierIntegrationFromJSON(json) {
|
|
46
|
+
return ZapierIntegrationFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function ZapierIntegrationFromJSONTyped(json, ignoreDiscriminator) {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'id': json['id'],
|
|
54
|
+
'name': json['name'],
|
|
55
|
+
'portalId': json['portal_id'],
|
|
56
|
+
'portalName': json['portal_name'],
|
|
57
|
+
'portalSubdomain': json['portal_subdomain'],
|
|
58
|
+
'keyPrefix': json['key_prefix'],
|
|
59
|
+
'permissionKeys': json['permission_keys'],
|
|
60
|
+
'createdAt': json['created_at'],
|
|
61
|
+
'updatedAt': json['updated_at'],
|
|
62
|
+
'lastUsedAt': json['last_used_at'] == null ? undefined : json['last_used_at'],
|
|
63
|
+
'revokedAt': json['revoked_at'] == null ? undefined : json['revoked_at'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
function ZapierIntegrationToJSON(json) {
|
|
67
|
+
return ZapierIntegrationToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
function ZapierIntegrationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
'id': value['id'],
|
|
75
|
+
'name': value['name'],
|
|
76
|
+
'portal_id': value['portalId'],
|
|
77
|
+
'portal_name': value['portalName'],
|
|
78
|
+
'portal_subdomain': value['portalSubdomain'],
|
|
79
|
+
'key_prefix': value['keyPrefix'],
|
|
80
|
+
'permission_keys': value['permissionKeys'],
|
|
81
|
+
'created_at': value['createdAt'],
|
|
82
|
+
'updated_at': value['updatedAt'],
|
|
83
|
+
'last_used_at': value['lastUsedAt'],
|
|
84
|
+
'revoked_at': value['revokedAt'],
|
|
85
|
+
};
|
|
86
|
+
}
|