@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.
Files changed (55) hide show
  1. package/.openapi-generator/FILES +14 -0
  2. package/README.md +13 -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/GetZapierMe.d.ts +62 -0
  12. package/dist/esm/models/GetZapierMe.js +63 -0
  13. package/dist/esm/models/GetZapierSetup.d.ts +40 -0
  14. package/dist/esm/models/GetZapierSetup.js +49 -0
  15. package/dist/esm/models/PostZapierSetup.d.ts +38 -0
  16. package/dist/esm/models/PostZapierSetup.js +47 -0
  17. package/dist/esm/models/PostZapierSetupResponse.d.ts +39 -0
  18. package/dist/esm/models/PostZapierSetupResponse.js +48 -0
  19. package/dist/esm/models/PutZapierSetup.d.ts +38 -0
  20. package/dist/esm/models/PutZapierSetup.js +43 -0
  21. package/dist/esm/models/ZapierIntegration.d.ts +92 -0
  22. package/dist/esm/models/ZapierIntegration.js +79 -0
  23. package/dist/esm/models/index.d.ts +6 -0
  24. package/dist/esm/models/index.js +6 -0
  25. package/dist/models/GetZapierMe.d.ts +62 -0
  26. package/dist/models/GetZapierMe.js +70 -0
  27. package/dist/models/GetZapierSetup.d.ts +40 -0
  28. package/dist/models/GetZapierSetup.js +56 -0
  29. package/dist/models/PostZapierSetup.d.ts +38 -0
  30. package/dist/models/PostZapierSetup.js +54 -0
  31. package/dist/models/PostZapierSetupResponse.d.ts +39 -0
  32. package/dist/models/PostZapierSetupResponse.js +55 -0
  33. package/dist/models/PutZapierSetup.d.ts +38 -0
  34. package/dist/models/PutZapierSetup.js +50 -0
  35. package/dist/models/ZapierIntegration.d.ts +92 -0
  36. package/dist/models/ZapierIntegration.js +86 -0
  37. package/dist/models/index.d.ts +6 -0
  38. package/dist/models/index.js +6 -0
  39. package/docs/GetZapierMe.md +44 -0
  40. package/docs/GetZapierSetup.md +36 -0
  41. package/docs/IntegrationApi.md +346 -0
  42. package/docs/PostZapierSetup.md +36 -0
  43. package/docs/PostZapierSetupResponse.md +37 -0
  44. package/docs/PutZapierSetup.md +36 -0
  45. package/docs/ZapierIntegration.md +55 -0
  46. package/package.json +1 -1
  47. package/src/apis/IntegrationApi.ts +312 -0
  48. package/src/apis/index.ts +1 -0
  49. package/src/models/GetZapierMe.ts +111 -0
  50. package/src/models/GetZapierSetup.ts +90 -0
  51. package/src/models/PostZapierSetup.ts +75 -0
  52. package/src/models/PostZapierSetupResponse.ts +83 -0
  53. package/src/models/PutZapierSetup.ts +73 -0
  54. package/src/models/ZapierIntegration.ts +154 -0
  55. package/src/models/index.ts +6 -0
@@ -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
+ }
@@ -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';
@@ -177,6 +177,8 @@ __exportStar(require("./GetUserCourseListItemCourse"), exports);
177
177
  __exportStar(require("./GetUserCourseListItemEnrollment"), exports);
178
178
  __exportStar(require("./GetUserCourseListItemProgress"), exports);
179
179
  __exportStar(require("./GetUserRole"), exports);
180
+ __exportStar(require("./GetZapierMe"), exports);
181
+ __exportStar(require("./GetZapierSetup"), exports);
180
182
  __exportStar(require("./LearnerExperienceVersion"), exports);
181
183
  __exportStar(require("./LibraryQuizCriteriaPreviewQuestion"), exports);
182
184
  __exportStar(require("./LibraryQuizCriterion"), exports);
@@ -268,6 +270,8 @@ __exportStar(require("./PostSignupRequest"), exports);
268
270
  __exportStar(require("./PostSignupRequestResponse"), exports);
269
271
  __exportStar(require("./PostSupportTicket"), exports);
270
272
  __exportStar(require("./PostSupportTicketComment"), exports);
273
+ __exportStar(require("./PostZapierSetup"), exports);
274
+ __exportStar(require("./PostZapierSetupResponse"), exports);
271
275
  __exportStar(require("./ProgressionGateError"), exports);
272
276
  __exportStar(require("./ProgressionLockReason"), exports);
273
277
  __exportStar(require("./PutAttemptAllowance"), exports);
@@ -305,6 +309,7 @@ __exportStar(require("./PutRole"), exports);
305
309
  __exportStar(require("./PutRolePermissions"), exports);
306
310
  __exportStar(require("./PutSupportTicket"), exports);
307
311
  __exportStar(require("./PutUser"), exports);
312
+ __exportStar(require("./PutZapierSetup"), exports);
308
313
  __exportStar(require("./QuestionImportCommitResult"), exports);
309
314
  __exportStar(require("./QuestionImportDraft"), exports);
310
315
  __exportStar(require("./QuestionImportDuplicate"), exports);
@@ -325,3 +330,4 @@ __exportStar(require("./SupportTicketUser"), exports);
325
330
  __exportStar(require("./UpdateSelectedPortalResponse"), exports);
326
331
  __exportStar(require("./UpdateSelectedPortalResponseHostPortal"), exports);
327
332
  __exportStar(require("./UpdateSelectedPortalResponseSelectedPortal"), exports);
333
+ __exportStar(require("./ZapierIntegration"), exports);
@@ -0,0 +1,44 @@
1
+
2
+ # GetZapierMe
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `integrationId` | string
10
+ `integrationName` | string
11
+ `portalId` | string
12
+ `portalName` | string
13
+ `portalSubdomain` | string
14
+ `permissionKeys` | Array&lt;string&gt;
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import type { GetZapierMe } from '@easyedu/js-lsm-api'
20
+
21
+ // TODO: Update the object below with actual values
22
+ const example = {
23
+ "integrationId": null,
24
+ "integrationName": null,
25
+ "portalId": null,
26
+ "portalName": null,
27
+ "portalSubdomain": null,
28
+ "permissionKeys": null,
29
+ } satisfies GetZapierMe
30
+
31
+ console.log(example)
32
+
33
+ // Convert the instance to a JSON string
34
+ const exampleJSON: string = JSON.stringify(example)
35
+ console.log(exampleJSON)
36
+
37
+ // Parse the JSON string back to an object
38
+ const exampleParsed = JSON.parse(exampleJSON) as GetZapierMe
39
+ console.log(exampleParsed)
40
+ ```
41
+
42
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
43
+
44
+
@@ -0,0 +1,36 @@
1
+
2
+ # GetZapierSetup
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `availablePermissions` | [Array&lt;GetPermission&gt;](GetPermission.md)
10
+ `integrations` | [Array&lt;ZapierIntegration&gt;](ZapierIntegration.md)
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { GetZapierSetup } from '@easyedu/js-lsm-api'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "availablePermissions": null,
20
+ "integrations": null,
21
+ } satisfies GetZapierSetup
22
+
23
+ console.log(example)
24
+
25
+ // Convert the instance to a JSON string
26
+ const exampleJSON: string = JSON.stringify(example)
27
+ console.log(exampleJSON)
28
+
29
+ // Parse the JSON string back to an object
30
+ const exampleParsed = JSON.parse(exampleJSON) as GetZapierSetup
31
+ console.log(exampleParsed)
32
+ ```
33
+
34
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
+
36
+