@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,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
+
@@ -161,6 +161,8 @@ export * from './GetUserCourseListItemCourse';
161
161
  export * from './GetUserCourseListItemEnrollment';
162
162
  export * from './GetUserCourseListItemProgress';
163
163
  export * from './GetUserRole';
164
+ export * from './GetZapierMe';
165
+ export * from './GetZapierSetup';
164
166
  export * from './LearnerExperienceVersion';
165
167
  export * from './LibraryQuizCriteriaPreviewQuestion';
166
168
  export * from './LibraryQuizCriterion';
@@ -252,6 +254,8 @@ export * from './PostSignupRequest';
252
254
  export * from './PostSignupRequestResponse';
253
255
  export * from './PostSupportTicket';
254
256
  export * from './PostSupportTicketComment';
257
+ export * from './PostZapierSetup';
258
+ export * from './PostZapierSetupResponse';
255
259
  export * from './ProgressionGateError';
256
260
  export * from './ProgressionLockReason';
257
261
  export * from './PutAttemptAllowance';
@@ -289,6 +293,7 @@ export * from './PutRole';
289
293
  export * from './PutRolePermissions';
290
294
  export * from './PutSupportTicket';
291
295
  export * from './PutUser';
296
+ export * from './PutZapierSetup';
292
297
  export * from './QuestionImportCommitResult';
293
298
  export * from './QuestionImportDraft';
294
299
  export * from './QuestionImportDuplicate';
@@ -309,3 +314,4 @@ export * from './SupportTicketUser';
309
314
  export * from './UpdateSelectedPortalResponse';
310
315
  export * from './UpdateSelectedPortalResponseHostPortal';
311
316
  export * from './UpdateSelectedPortalResponseSelectedPortal';
317
+ export * from './ZapierIntegration';