@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.
Files changed (67) hide show
  1. package/.openapi-generator/FILES +16 -0
  2. package/README.md +14 -2
  3. package/dist/apis/IntegrationApi.d.ts +97 -0
  4. package/dist/apis/IntegrationApi.js +242 -0
  5. package/dist/apis/index.d.ts +1 -0
  6. package/dist/apis/index.js +1 -0
  7. package/dist/esm/apis/IntegrationApi.d.ts +97 -0
  8. package/dist/esm/apis/IntegrationApi.js +238 -0
  9. package/dist/esm/apis/index.d.ts +1 -0
  10. package/dist/esm/apis/index.js +1 -0
  11. package/dist/esm/models/ChatFeatureUsage.d.ts +47 -0
  12. package/dist/esm/models/ChatFeatureUsage.js +55 -0
  13. package/dist/esm/models/GetChatUsage.d.ts +7 -0
  14. package/dist/esm/models/GetChatUsage.js +5 -0
  15. package/dist/esm/models/GetZapierMe.d.ts +62 -0
  16. package/dist/esm/models/GetZapierMe.js +63 -0
  17. package/dist/esm/models/GetZapierSetup.d.ts +40 -0
  18. package/dist/esm/models/GetZapierSetup.js +49 -0
  19. package/dist/esm/models/PostZapierSetup.d.ts +38 -0
  20. package/dist/esm/models/PostZapierSetup.js +47 -0
  21. package/dist/esm/models/PostZapierSetupResponse.d.ts +39 -0
  22. package/dist/esm/models/PostZapierSetupResponse.js +48 -0
  23. package/dist/esm/models/PutZapierSetup.d.ts +38 -0
  24. package/dist/esm/models/PutZapierSetup.js +43 -0
  25. package/dist/esm/models/ZapierIntegration.d.ts +92 -0
  26. package/dist/esm/models/ZapierIntegration.js +79 -0
  27. package/dist/esm/models/index.d.ts +7 -0
  28. package/dist/esm/models/index.js +7 -0
  29. package/dist/models/ChatFeatureUsage.d.ts +47 -0
  30. package/dist/models/ChatFeatureUsage.js +63 -0
  31. package/dist/models/GetChatUsage.d.ts +7 -0
  32. package/dist/models/GetChatUsage.js +5 -0
  33. package/dist/models/GetZapierMe.d.ts +62 -0
  34. package/dist/models/GetZapierMe.js +70 -0
  35. package/dist/models/GetZapierSetup.d.ts +40 -0
  36. package/dist/models/GetZapierSetup.js +56 -0
  37. package/dist/models/PostZapierSetup.d.ts +38 -0
  38. package/dist/models/PostZapierSetup.js +54 -0
  39. package/dist/models/PostZapierSetupResponse.d.ts +39 -0
  40. package/dist/models/PostZapierSetupResponse.js +55 -0
  41. package/dist/models/PutZapierSetup.d.ts +38 -0
  42. package/dist/models/PutZapierSetup.js +50 -0
  43. package/dist/models/ZapierIntegration.d.ts +92 -0
  44. package/dist/models/ZapierIntegration.js +86 -0
  45. package/dist/models/index.d.ts +7 -0
  46. package/dist/models/index.js +7 -0
  47. package/docs/ChatFeatureUsage.md +36 -0
  48. package/docs/GetChatUsage.md +2 -0
  49. package/docs/GetZapierMe.md +44 -0
  50. package/docs/GetZapierSetup.md +36 -0
  51. package/docs/IntegrationApi.md +346 -0
  52. package/docs/PostZapierSetup.md +36 -0
  53. package/docs/PostZapierSetupResponse.md +37 -0
  54. package/docs/PutZapierSetup.md +36 -0
  55. package/docs/ZapierIntegration.md +55 -0
  56. package/package.json +1 -1
  57. package/src/apis/IntegrationApi.ts +312 -0
  58. package/src/apis/index.ts +1 -0
  59. package/src/models/ChatFeatureUsage.ts +94 -0
  60. package/src/models/GetChatUsage.ts +16 -0
  61. package/src/models/GetZapierMe.ts +111 -0
  62. package/src/models/GetZapierSetup.ts +90 -0
  63. package/src/models/PostZapierSetup.ts +75 -0
  64. package/src/models/PostZapierSetupResponse.ts +83 -0
  65. package/src/models/PutZapierSetup.ts +73 -0
  66. package/src/models/ZapierIntegration.ts +154 -0
  67. package/src/models/index.ts +7 -0
@@ -0,0 +1,90 @@
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
+ import type { GetPermission } from './GetPermission';
17
+ import {
18
+ GetPermissionFromJSON,
19
+ GetPermissionFromJSONTyped,
20
+ GetPermissionToJSON,
21
+ GetPermissionToJSONTyped,
22
+ } from './GetPermission';
23
+ import type { ZapierIntegration } from './ZapierIntegration';
24
+ import {
25
+ ZapierIntegrationFromJSON,
26
+ ZapierIntegrationFromJSONTyped,
27
+ ZapierIntegrationToJSON,
28
+ ZapierIntegrationToJSONTyped,
29
+ } from './ZapierIntegration';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface GetZapierSetup
35
+ */
36
+ export interface GetZapierSetup {
37
+ /**
38
+ *
39
+ * @type {Array<GetPermission>}
40
+ * @memberof GetZapierSetup
41
+ */
42
+ availablePermissions: Array<GetPermission>;
43
+ /**
44
+ *
45
+ * @type {Array<ZapierIntegration>}
46
+ * @memberof GetZapierSetup
47
+ */
48
+ integrations: Array<ZapierIntegration>;
49
+ }
50
+
51
+ /**
52
+ * Check if a given object implements the GetZapierSetup interface.
53
+ */
54
+ export function instanceOfGetZapierSetup(value: object): value is GetZapierSetup {
55
+ if (!('availablePermissions' in value) || value['availablePermissions'] === undefined) return false;
56
+ if (!('integrations' in value) || value['integrations'] === undefined) return false;
57
+ return true;
58
+ }
59
+
60
+ export function GetZapierSetupFromJSON(json: any): GetZapierSetup {
61
+ return GetZapierSetupFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function GetZapierSetupFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetZapierSetup {
65
+ if (json == null) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'availablePermissions': ((json['available_permissions'] as Array<any>).map(GetPermissionFromJSON)),
71
+ 'integrations': ((json['integrations'] as Array<any>).map(ZapierIntegrationFromJSON)),
72
+ };
73
+ }
74
+
75
+ export function GetZapierSetupToJSON(json: any): GetZapierSetup {
76
+ return GetZapierSetupToJSONTyped(json, false);
77
+ }
78
+
79
+ export function GetZapierSetupToJSONTyped(value?: GetZapierSetup | null, ignoreDiscriminator: boolean = false): any {
80
+ if (value == null) {
81
+ return value;
82
+ }
83
+
84
+ return {
85
+
86
+ 'available_permissions': ((value['availablePermissions'] as Array<any>).map(GetPermissionToJSON)),
87
+ 'integrations': ((value['integrations'] as Array<any>).map(ZapierIntegrationToJSON)),
88
+ };
89
+ }
90
+
@@ -0,0 +1,75 @@
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 PostZapierSetup
20
+ */
21
+ export interface PostZapierSetup {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof PostZapierSetup
26
+ */
27
+ name: string;
28
+ /**
29
+ *
30
+ * @type {Set<string>}
31
+ * @memberof PostZapierSetup
32
+ */
33
+ permissionKeys: Set<string>;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the PostZapierSetup interface.
38
+ */
39
+ export function instanceOfPostZapierSetup(value: object): value is PostZapierSetup {
40
+ if (!('name' in value) || value['name'] === undefined) return false;
41
+ if (!('permissionKeys' in value) || value['permissionKeys'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function PostZapierSetupFromJSON(json: any): PostZapierSetup {
46
+ return PostZapierSetupFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function PostZapierSetupFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostZapierSetup {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'name': json['name'],
56
+ 'permissionKeys': new Set(json['permission_keys']),
57
+ };
58
+ }
59
+
60
+ export function PostZapierSetupToJSON(json: any): PostZapierSetup {
61
+ return PostZapierSetupToJSONTyped(json, false);
62
+ }
63
+
64
+ export function PostZapierSetupToJSONTyped(value?: PostZapierSetup | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'name': value['name'],
72
+ 'permission_keys': Array.from(value['permissionKeys'] as Set<any>),
73
+ };
74
+ }
75
+
@@ -0,0 +1,83 @@
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
+ import type { ZapierIntegration } from './ZapierIntegration';
17
+ import {
18
+ ZapierIntegrationFromJSON,
19
+ ZapierIntegrationFromJSONTyped,
20
+ ZapierIntegrationToJSON,
21
+ ZapierIntegrationToJSONTyped,
22
+ } from './ZapierIntegration';
23
+
24
+ /**
25
+ * A newly created Zapier connection. The API key is returned only once.
26
+ * @export
27
+ * @interface PostZapierSetupResponse
28
+ */
29
+ export interface PostZapierSetupResponse {
30
+ /**
31
+ *
32
+ * @type {ZapierIntegration}
33
+ * @memberof PostZapierSetupResponse
34
+ */
35
+ integration: ZapierIntegration;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof PostZapierSetupResponse
40
+ */
41
+ apiKey: string;
42
+ }
43
+
44
+ /**
45
+ * Check if a given object implements the PostZapierSetupResponse interface.
46
+ */
47
+ export function instanceOfPostZapierSetupResponse(value: object): value is PostZapierSetupResponse {
48
+ if (!('integration' in value) || value['integration'] === undefined) return false;
49
+ if (!('apiKey' in value) || value['apiKey'] === undefined) return false;
50
+ return true;
51
+ }
52
+
53
+ export function PostZapierSetupResponseFromJSON(json: any): PostZapierSetupResponse {
54
+ return PostZapierSetupResponseFromJSONTyped(json, false);
55
+ }
56
+
57
+ export function PostZapierSetupResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostZapierSetupResponse {
58
+ if (json == null) {
59
+ return json;
60
+ }
61
+ return {
62
+
63
+ 'integration': ZapierIntegrationFromJSON(json['integration']),
64
+ 'apiKey': json['api_key'],
65
+ };
66
+ }
67
+
68
+ export function PostZapierSetupResponseToJSON(json: any): PostZapierSetupResponse {
69
+ return PostZapierSetupResponseToJSONTyped(json, false);
70
+ }
71
+
72
+ export function PostZapierSetupResponseToJSONTyped(value?: PostZapierSetupResponse | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'integration': ZapierIntegrationToJSON(value['integration']),
80
+ 'api_key': value['apiKey'],
81
+ };
82
+ }
83
+
@@ -0,0 +1,73 @@
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 PutZapierSetup
20
+ */
21
+ export interface PutZapierSetup {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof PutZapierSetup
26
+ */
27
+ name?: string;
28
+ /**
29
+ *
30
+ * @type {Set<string>}
31
+ * @memberof PutZapierSetup
32
+ */
33
+ permissionKeys?: Set<string>;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the PutZapierSetup interface.
38
+ */
39
+ export function instanceOfPutZapierSetup(value: object): value is PutZapierSetup {
40
+ return true;
41
+ }
42
+
43
+ export function PutZapierSetupFromJSON(json: any): PutZapierSetup {
44
+ return PutZapierSetupFromJSONTyped(json, false);
45
+ }
46
+
47
+ export function PutZapierSetupFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutZapierSetup {
48
+ if (json == null) {
49
+ return json;
50
+ }
51
+ return {
52
+
53
+ 'name': json['name'] == null ? undefined : json['name'],
54
+ 'permissionKeys': json['permission_keys'] == null ? undefined : new Set(json['permission_keys']),
55
+ };
56
+ }
57
+
58
+ export function PutZapierSetupToJSON(json: any): PutZapierSetup {
59
+ return PutZapierSetupToJSONTyped(json, false);
60
+ }
61
+
62
+ export function PutZapierSetupToJSONTyped(value?: PutZapierSetup | null, ignoreDiscriminator: boolean = false): any {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+
67
+ return {
68
+
69
+ 'name': value['name'],
70
+ 'permission_keys': value['permissionKeys'] == null ? undefined : Array.from(value['permissionKeys'] as Set<any>),
71
+ };
72
+ }
73
+
@@ -0,0 +1,154 @@
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
+ * A portal-scoped Zapier connection. The API key secret is never included here.
18
+ * @export
19
+ * @interface ZapierIntegration
20
+ */
21
+ export interface ZapierIntegration {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ZapierIntegration
26
+ */
27
+ id: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ZapierIntegration
32
+ */
33
+ name: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof ZapierIntegration
38
+ */
39
+ portalId: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof ZapierIntegration
44
+ */
45
+ portalName: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof ZapierIntegration
50
+ */
51
+ portalSubdomain: string;
52
+ /**
53
+ * Non-secret prefix used to identify the key.
54
+ * @type {string}
55
+ * @memberof ZapierIntegration
56
+ */
57
+ keyPrefix: string;
58
+ /**
59
+ *
60
+ * @type {Array<string>}
61
+ * @memberof ZapierIntegration
62
+ */
63
+ permissionKeys: Array<string>;
64
+ /**
65
+ * Unix epoch timestamp
66
+ * @type {number}
67
+ * @memberof ZapierIntegration
68
+ */
69
+ createdAt: number;
70
+ /**
71
+ * Unix epoch timestamp
72
+ * @type {number}
73
+ * @memberof ZapierIntegration
74
+ */
75
+ updatedAt: number;
76
+ /**
77
+ * Unix epoch timestamp
78
+ * @type {number}
79
+ * @memberof ZapierIntegration
80
+ */
81
+ lastUsedAt?: number | null;
82
+ /**
83
+ * Unix epoch timestamp
84
+ * @type {number}
85
+ * @memberof ZapierIntegration
86
+ */
87
+ revokedAt?: number | null;
88
+ }
89
+
90
+ /**
91
+ * Check if a given object implements the ZapierIntegration interface.
92
+ */
93
+ export function instanceOfZapierIntegration(value: object): value is ZapierIntegration {
94
+ if (!('id' in value) || value['id'] === undefined) return false;
95
+ if (!('name' in value) || value['name'] === undefined) return false;
96
+ if (!('portalId' in value) || value['portalId'] === undefined) return false;
97
+ if (!('portalName' in value) || value['portalName'] === undefined) return false;
98
+ if (!('portalSubdomain' in value) || value['portalSubdomain'] === undefined) return false;
99
+ if (!('keyPrefix' in value) || value['keyPrefix'] === undefined) return false;
100
+ if (!('permissionKeys' in value) || value['permissionKeys'] === undefined) return false;
101
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
102
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
103
+ return true;
104
+ }
105
+
106
+ export function ZapierIntegrationFromJSON(json: any): ZapierIntegration {
107
+ return ZapierIntegrationFromJSONTyped(json, false);
108
+ }
109
+
110
+ export function ZapierIntegrationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ZapierIntegration {
111
+ if (json == null) {
112
+ return json;
113
+ }
114
+ return {
115
+
116
+ 'id': json['id'],
117
+ 'name': json['name'],
118
+ 'portalId': json['portal_id'],
119
+ 'portalName': json['portal_name'],
120
+ 'portalSubdomain': json['portal_subdomain'],
121
+ 'keyPrefix': json['key_prefix'],
122
+ 'permissionKeys': json['permission_keys'],
123
+ 'createdAt': json['created_at'],
124
+ 'updatedAt': json['updated_at'],
125
+ 'lastUsedAt': json['last_used_at'] == null ? undefined : json['last_used_at'],
126
+ 'revokedAt': json['revoked_at'] == null ? undefined : json['revoked_at'],
127
+ };
128
+ }
129
+
130
+ export function ZapierIntegrationToJSON(json: any): ZapierIntegration {
131
+ return ZapierIntegrationToJSONTyped(json, false);
132
+ }
133
+
134
+ export function ZapierIntegrationToJSONTyped(value?: ZapierIntegration | null, ignoreDiscriminator: boolean = false): any {
135
+ if (value == null) {
136
+ return value;
137
+ }
138
+
139
+ return {
140
+
141
+ 'id': value['id'],
142
+ 'name': value['name'],
143
+ 'portal_id': value['portalId'],
144
+ 'portal_name': value['portalName'],
145
+ 'portal_subdomain': value['portalSubdomain'],
146
+ 'key_prefix': value['keyPrefix'],
147
+ 'permission_keys': value['permissionKeys'],
148
+ 'created_at': value['createdAt'],
149
+ 'updated_at': value['updatedAt'],
150
+ 'last_used_at': value['lastUsedAt'],
151
+ 'revoked_at': value['revokedAt'],
152
+ };
153
+ }
154
+
@@ -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';