@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,47 @@
|
|
|
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 PostZapierSetup interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPostZapierSetup(value) {
|
|
18
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('permissionKeys' in value) || value['permissionKeys'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function PostZapierSetupFromJSON(json) {
|
|
25
|
+
return PostZapierSetupFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function PostZapierSetupFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'name': json['name'],
|
|
33
|
+
'permissionKeys': new Set(json['permission_keys']),
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function PostZapierSetupToJSON(json) {
|
|
37
|
+
return PostZapierSetupToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function PostZapierSetupToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'name': value['name'],
|
|
45
|
+
'permission_keys': Array.from(value['permissionKeys']),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -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,48 @@
|
|
|
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 { ZapierIntegrationFromJSON, ZapierIntegrationToJSON, } from './ZapierIntegration';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the PostZapierSetupResponse interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfPostZapierSetupResponse(value) {
|
|
19
|
+
if (!('integration' in value) || value['integration'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('apiKey' in value) || value['apiKey'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function PostZapierSetupResponseFromJSON(json) {
|
|
26
|
+
return PostZapierSetupResponseFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function PostZapierSetupResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'integration': ZapierIntegrationFromJSON(json['integration']),
|
|
34
|
+
'apiKey': json['api_key'],
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function PostZapierSetupResponseToJSON(json) {
|
|
38
|
+
return PostZapierSetupResponseToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function PostZapierSetupResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'integration': ZapierIntegrationToJSON(value['integration']),
|
|
46
|
+
'api_key': value['apiKey'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -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,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
|
+
}
|
|
@@ -25,6 +25,7 @@ export * from './CertificateRenewalPolicy';
|
|
|
25
25
|
export * from './CertificateTemplate';
|
|
26
26
|
export * from './CertificateTemplateVersion';
|
|
27
27
|
export * from './ChatDailyUsage';
|
|
28
|
+
export * from './ChatFeatureUsage';
|
|
28
29
|
export * from './ChatModelUsage';
|
|
29
30
|
export * from './ChatQuota';
|
|
30
31
|
export * from './ChatQuotaExceeded';
|
|
@@ -158,6 +159,8 @@ export * from './GetUserCourseListItemCourse';
|
|
|
158
159
|
export * from './GetUserCourseListItemEnrollment';
|
|
159
160
|
export * from './GetUserCourseListItemProgress';
|
|
160
161
|
export * from './GetUserRole';
|
|
162
|
+
export * from './GetZapierMe';
|
|
163
|
+
export * from './GetZapierSetup';
|
|
161
164
|
export * from './LearnerExperienceVersion';
|
|
162
165
|
export * from './LibraryQuizCriteriaPreviewQuestion';
|
|
163
166
|
export * from './LibraryQuizCriterion';
|
|
@@ -249,6 +252,8 @@ export * from './PostSignupRequest';
|
|
|
249
252
|
export * from './PostSignupRequestResponse';
|
|
250
253
|
export * from './PostSupportTicket';
|
|
251
254
|
export * from './PostSupportTicketComment';
|
|
255
|
+
export * from './PostZapierSetup';
|
|
256
|
+
export * from './PostZapierSetupResponse';
|
|
252
257
|
export * from './ProgressionGateError';
|
|
253
258
|
export * from './ProgressionLockReason';
|
|
254
259
|
export * from './PutAttemptAllowance';
|
|
@@ -286,6 +291,7 @@ export * from './PutRole';
|
|
|
286
291
|
export * from './PutRolePermissions';
|
|
287
292
|
export * from './PutSupportTicket';
|
|
288
293
|
export * from './PutUser';
|
|
294
|
+
export * from './PutZapierSetup';
|
|
289
295
|
export * from './QuestionImportCommitResult';
|
|
290
296
|
export * from './QuestionImportDraft';
|
|
291
297
|
export * from './QuestionImportDuplicate';
|
|
@@ -306,3 +312,4 @@ export * from './SupportTicketUser';
|
|
|
306
312
|
export * from './UpdateSelectedPortalResponse';
|
|
307
313
|
export * from './UpdateSelectedPortalResponseHostPortal';
|
|
308
314
|
export * from './UpdateSelectedPortalResponseSelectedPortal';
|
|
315
|
+
export * from './ZapierIntegration';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -27,6 +27,7 @@ export * from './CertificateRenewalPolicy';
|
|
|
27
27
|
export * from './CertificateTemplate';
|
|
28
28
|
export * from './CertificateTemplateVersion';
|
|
29
29
|
export * from './ChatDailyUsage';
|
|
30
|
+
export * from './ChatFeatureUsage';
|
|
30
31
|
export * from './ChatModelUsage';
|
|
31
32
|
export * from './ChatQuota';
|
|
32
33
|
export * from './ChatQuotaExceeded';
|
|
@@ -160,6 +161,8 @@ export * from './GetUserCourseListItemCourse';
|
|
|
160
161
|
export * from './GetUserCourseListItemEnrollment';
|
|
161
162
|
export * from './GetUserCourseListItemProgress';
|
|
162
163
|
export * from './GetUserRole';
|
|
164
|
+
export * from './GetZapierMe';
|
|
165
|
+
export * from './GetZapierSetup';
|
|
163
166
|
export * from './LearnerExperienceVersion';
|
|
164
167
|
export * from './LibraryQuizCriteriaPreviewQuestion';
|
|
165
168
|
export * from './LibraryQuizCriterion';
|
|
@@ -251,6 +254,8 @@ export * from './PostSignupRequest';
|
|
|
251
254
|
export * from './PostSignupRequestResponse';
|
|
252
255
|
export * from './PostSupportTicket';
|
|
253
256
|
export * from './PostSupportTicketComment';
|
|
257
|
+
export * from './PostZapierSetup';
|
|
258
|
+
export * from './PostZapierSetupResponse';
|
|
254
259
|
export * from './ProgressionGateError';
|
|
255
260
|
export * from './ProgressionLockReason';
|
|
256
261
|
export * from './PutAttemptAllowance';
|
|
@@ -288,6 +293,7 @@ export * from './PutRole';
|
|
|
288
293
|
export * from './PutRolePermissions';
|
|
289
294
|
export * from './PutSupportTicket';
|
|
290
295
|
export * from './PutUser';
|
|
296
|
+
export * from './PutZapierSetup';
|
|
291
297
|
export * from './QuestionImportCommitResult';
|
|
292
298
|
export * from './QuestionImportDraft';
|
|
293
299
|
export * from './QuestionImportDuplicate';
|
|
@@ -308,3 +314,4 @@ export * from './SupportTicketUser';
|
|
|
308
314
|
export * from './UpdateSelectedPortalResponse';
|
|
309
315
|
export * from './UpdateSelectedPortalResponseHostPortal';
|
|
310
316
|
export * from './UpdateSelectedPortalResponseSelectedPortal';
|
|
317
|
+
export * from './ZapierIntegration';
|
|
@@ -0,0 +1,47 @@
|
|
|
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 { ChatUsageTotals } from './ChatUsageTotals';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ChatFeatureUsage
|
|
17
|
+
*/
|
|
18
|
+
export interface ChatFeatureUsage {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {ChatFeatureUsageFeatureEnum}
|
|
22
|
+
* @memberof ChatFeatureUsage
|
|
23
|
+
*/
|
|
24
|
+
feature: ChatFeatureUsageFeatureEnum;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {ChatUsageTotals}
|
|
28
|
+
* @memberof ChatFeatureUsage
|
|
29
|
+
*/
|
|
30
|
+
usage: ChatUsageTotals;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export declare const ChatFeatureUsageFeatureEnum: {
|
|
36
|
+
readonly Chat: "chat";
|
|
37
|
+
readonly QuestionImport: "question_import";
|
|
38
|
+
};
|
|
39
|
+
export type ChatFeatureUsageFeatureEnum = typeof ChatFeatureUsageFeatureEnum[keyof typeof ChatFeatureUsageFeatureEnum];
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the ChatFeatureUsage interface.
|
|
42
|
+
*/
|
|
43
|
+
export declare function instanceOfChatFeatureUsage(value: object): value is ChatFeatureUsage;
|
|
44
|
+
export declare function ChatFeatureUsageFromJSON(json: any): ChatFeatureUsage;
|
|
45
|
+
export declare function ChatFeatureUsageFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatFeatureUsage;
|
|
46
|
+
export declare function ChatFeatureUsageToJSON(json: any): ChatFeatureUsage;
|
|
47
|
+
export declare function ChatFeatureUsageToJSONTyped(value?: ChatFeatureUsage | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
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.ChatFeatureUsageFeatureEnum = void 0;
|
|
17
|
+
exports.instanceOfChatFeatureUsage = instanceOfChatFeatureUsage;
|
|
18
|
+
exports.ChatFeatureUsageFromJSON = ChatFeatureUsageFromJSON;
|
|
19
|
+
exports.ChatFeatureUsageFromJSONTyped = ChatFeatureUsageFromJSONTyped;
|
|
20
|
+
exports.ChatFeatureUsageToJSON = ChatFeatureUsageToJSON;
|
|
21
|
+
exports.ChatFeatureUsageToJSONTyped = ChatFeatureUsageToJSONTyped;
|
|
22
|
+
const ChatUsageTotals_1 = require("./ChatUsageTotals");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.ChatFeatureUsageFeatureEnum = {
|
|
27
|
+
Chat: 'chat',
|
|
28
|
+
QuestionImport: 'question_import'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ChatFeatureUsage interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfChatFeatureUsage(value) {
|
|
34
|
+
if (!('feature' in value) || value['feature'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('usage' in value) || value['usage'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
function ChatFeatureUsageFromJSON(json) {
|
|
41
|
+
return ChatFeatureUsageFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function ChatFeatureUsageFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'feature': json['feature'],
|
|
49
|
+
'usage': (0, ChatUsageTotals_1.ChatUsageTotalsFromJSON)(json['usage']),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function ChatFeatureUsageToJSON(json) {
|
|
53
|
+
return ChatFeatureUsageToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function ChatFeatureUsageToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'feature': value['feature'],
|
|
61
|
+
'usage': (0, ChatUsageTotals_1.ChatUsageTotalsToJSON)(value['usage']),
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import type { ChatDailyUsage } from './ChatDailyUsage';
|
|
13
13
|
import type { ChatModelUsage } from './ChatModelUsage';
|
|
14
14
|
import type { ChatUsageTotals } from './ChatUsageTotals';
|
|
15
|
+
import type { ChatFeatureUsage } from './ChatFeatureUsage';
|
|
15
16
|
/**
|
|
16
17
|
*
|
|
17
18
|
* @export
|
|
@@ -48,6 +49,12 @@ export interface GetChatUsage {
|
|
|
48
49
|
* @memberof GetChatUsage
|
|
49
50
|
*/
|
|
50
51
|
modelUsage: Array<ChatModelUsage>;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {Array<ChatFeatureUsage>}
|
|
55
|
+
* @memberof GetChatUsage
|
|
56
|
+
*/
|
|
57
|
+
featureUsage: Array<ChatFeatureUsage>;
|
|
51
58
|
}
|
|
52
59
|
/**
|
|
53
60
|
* Check if a given object implements the GetChatUsage interface.
|
|
@@ -21,6 +21,7 @@ exports.GetChatUsageToJSONTyped = GetChatUsageToJSONTyped;
|
|
|
21
21
|
const ChatDailyUsage_1 = require("./ChatDailyUsage");
|
|
22
22
|
const ChatModelUsage_1 = require("./ChatModelUsage");
|
|
23
23
|
const ChatUsageTotals_1 = require("./ChatUsageTotals");
|
|
24
|
+
const ChatFeatureUsage_1 = require("./ChatFeatureUsage");
|
|
24
25
|
/**
|
|
25
26
|
* Check if a given object implements the GetChatUsage interface.
|
|
26
27
|
*/
|
|
@@ -35,6 +36,8 @@ function instanceOfGetChatUsage(value) {
|
|
|
35
36
|
return false;
|
|
36
37
|
if (!('modelUsage' in value) || value['modelUsage'] === undefined)
|
|
37
38
|
return false;
|
|
39
|
+
if (!('featureUsage' in value) || value['featureUsage'] === undefined)
|
|
40
|
+
return false;
|
|
38
41
|
return true;
|
|
39
42
|
}
|
|
40
43
|
function GetChatUsageFromJSON(json) {
|
|
@@ -50,6 +53,7 @@ function GetChatUsageFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
53
|
'totals': (0, ChatUsageTotals_1.ChatUsageTotalsFromJSON)(json['totals']),
|
|
51
54
|
'daily': (json['daily'].map(ChatDailyUsage_1.ChatDailyUsageFromJSON)),
|
|
52
55
|
'modelUsage': (json['model_usage'].map(ChatModelUsage_1.ChatModelUsageFromJSON)),
|
|
56
|
+
'featureUsage': (json['feature_usage'].map(ChatFeatureUsage_1.ChatFeatureUsageFromJSON)),
|
|
53
57
|
};
|
|
54
58
|
}
|
|
55
59
|
function GetChatUsageToJSON(json) {
|
|
@@ -65,5 +69,6 @@ function GetChatUsageToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
65
69
|
'totals': (0, ChatUsageTotals_1.ChatUsageTotalsToJSON)(value['totals']),
|
|
66
70
|
'daily': (value['daily'].map(ChatDailyUsage_1.ChatDailyUsageToJSON)),
|
|
67
71
|
'model_usage': (value['modelUsage'].map(ChatModelUsage_1.ChatModelUsageToJSON)),
|
|
72
|
+
'feature_usage': (value['featureUsage'].map(ChatFeatureUsage_1.ChatFeatureUsageToJSON)),
|
|
68
73
|
};
|
|
69
74
|
}
|