@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
@@ -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';
@@ -43,6 +43,7 @@ __exportStar(require("./CertificateRenewalPolicy"), exports);
43
43
  __exportStar(require("./CertificateTemplate"), exports);
44
44
  __exportStar(require("./CertificateTemplateVersion"), exports);
45
45
  __exportStar(require("./ChatDailyUsage"), exports);
46
+ __exportStar(require("./ChatFeatureUsage"), exports);
46
47
  __exportStar(require("./ChatModelUsage"), exports);
47
48
  __exportStar(require("./ChatQuota"), exports);
48
49
  __exportStar(require("./ChatQuotaExceeded"), exports);
@@ -176,6 +177,8 @@ __exportStar(require("./GetUserCourseListItemCourse"), exports);
176
177
  __exportStar(require("./GetUserCourseListItemEnrollment"), exports);
177
178
  __exportStar(require("./GetUserCourseListItemProgress"), exports);
178
179
  __exportStar(require("./GetUserRole"), exports);
180
+ __exportStar(require("./GetZapierMe"), exports);
181
+ __exportStar(require("./GetZapierSetup"), exports);
179
182
  __exportStar(require("./LearnerExperienceVersion"), exports);
180
183
  __exportStar(require("./LibraryQuizCriteriaPreviewQuestion"), exports);
181
184
  __exportStar(require("./LibraryQuizCriterion"), exports);
@@ -267,6 +270,8 @@ __exportStar(require("./PostSignupRequest"), exports);
267
270
  __exportStar(require("./PostSignupRequestResponse"), exports);
268
271
  __exportStar(require("./PostSupportTicket"), exports);
269
272
  __exportStar(require("./PostSupportTicketComment"), exports);
273
+ __exportStar(require("./PostZapierSetup"), exports);
274
+ __exportStar(require("./PostZapierSetupResponse"), exports);
270
275
  __exportStar(require("./ProgressionGateError"), exports);
271
276
  __exportStar(require("./ProgressionLockReason"), exports);
272
277
  __exportStar(require("./PutAttemptAllowance"), exports);
@@ -304,6 +309,7 @@ __exportStar(require("./PutRole"), exports);
304
309
  __exportStar(require("./PutRolePermissions"), exports);
305
310
  __exportStar(require("./PutSupportTicket"), exports);
306
311
  __exportStar(require("./PutUser"), exports);
312
+ __exportStar(require("./PutZapierSetup"), exports);
307
313
  __exportStar(require("./QuestionImportCommitResult"), exports);
308
314
  __exportStar(require("./QuestionImportDraft"), exports);
309
315
  __exportStar(require("./QuestionImportDuplicate"), exports);
@@ -324,3 +330,4 @@ __exportStar(require("./SupportTicketUser"), exports);
324
330
  __exportStar(require("./UpdateSelectedPortalResponse"), exports);
325
331
  __exportStar(require("./UpdateSelectedPortalResponseHostPortal"), exports);
326
332
  __exportStar(require("./UpdateSelectedPortalResponseSelectedPortal"), exports);
333
+ __exportStar(require("./ZapierIntegration"), exports);
@@ -0,0 +1,36 @@
1
+
2
+ # ChatFeatureUsage
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `feature` | string
10
+ `usage` | [ChatUsageTotals](ChatUsageTotals.md)
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { ChatFeatureUsage } from '@easyedu/js-lsm-api'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "feature": null,
20
+ "usage": null,
21
+ } satisfies ChatFeatureUsage
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 ChatFeatureUsage
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
+
@@ -11,6 +11,7 @@ Name | Type
11
11
  `totals` | [ChatUsageTotals](ChatUsageTotals.md)
12
12
  `daily` | [Array<ChatDailyUsage>](ChatDailyUsage.md)
13
13
  `modelUsage` | [Array<ChatModelUsage>](ChatModelUsage.md)
14
+ `featureUsage` | [Array<ChatFeatureUsage>](ChatFeatureUsage.md)
14
15
 
15
16
  ## Example
16
17
 
@@ -24,6 +25,7 @@ const example = {
24
25
  "totals": null,
25
26
  "daily": null,
26
27
  "modelUsage": null,
28
+ "featureUsage": null,
27
29
  } satisfies GetChatUsage
28
30
 
29
31
  console.log(example)
@@ -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<string>
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<GetPermission>](GetPermission.md)
10
+ `integrations` | [Array<ZapierIntegration>](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
+
@@ -0,0 +1,346 @@
1
+ # IntegrationApi
2
+
3
+ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com/stage1*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**deleteZapierSetup**](IntegrationApi.md#deletezapiersetup) | **DELETE** /integrations/zapier/setup/{zapierIntegrationId} | Revoke a Zapier connection and its API key |
8
+ | [**getZapierMe**](IntegrationApi.md#getzapierme) | **GET** /integrations/zapier/me | Test a Zapier API key and return its portal and enabled permissions |
9
+ | [**getZapierSetup**](IntegrationApi.md#getzapiersetup) | **GET** /integrations/zapier/setup | List Zapier connections and permissions available to the selected portal |
10
+ | [**postZapierSetup**](IntegrationApi.md#postzapiersetup) | **POST** /integrations/zapier/setup | Create a Zapier connection and API key for the selected portal |
11
+ | [**putZapierSetup**](IntegrationApi.md#putzapiersetup) | **PUT** /integrations/zapier/setup/{zapierIntegrationId} | Update a Zapier connection\'s name or permissions |
12
+
13
+
14
+
15
+ ## deleteZapierSetup
16
+
17
+ > deleteZapierSetup(zapierIntegrationId)
18
+
19
+ Revoke a Zapier connection and its API key
20
+
21
+ ### Example
22
+
23
+ ```ts
24
+ import {
25
+ Configuration,
26
+ IntegrationApi,
27
+ } from '@easyedu/js-lsm-api';
28
+ import type { DeleteZapierSetupRequest } from '@easyedu/js-lsm-api';
29
+
30
+ async function example() {
31
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
32
+ const api = new IntegrationApi();
33
+
34
+ const body = {
35
+ // string
36
+ zapierIntegrationId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
37
+ } satisfies DeleteZapierSetupRequest;
38
+
39
+ try {
40
+ const data = await api.deleteZapierSetup(body);
41
+ console.log(data);
42
+ } catch (error) {
43
+ console.error(error);
44
+ }
45
+ }
46
+
47
+ // Run the test
48
+ example().catch(console.error);
49
+ ```
50
+
51
+ ### Parameters
52
+
53
+
54
+ | Name | Type | Description | Notes |
55
+ |------------- | ------------- | ------------- | -------------|
56
+ | **zapierIntegrationId** | `string` | | [Defaults to `undefined`] |
57
+
58
+ ### Return type
59
+
60
+ `void` (Empty response body)
61
+
62
+ ### Authorization
63
+
64
+ No authorization required
65
+
66
+ ### HTTP request headers
67
+
68
+ - **Content-Type**: Not defined
69
+ - **Accept**: Not defined
70
+
71
+
72
+ ### HTTP response details
73
+ | Status code | Description | Response headers |
74
+ |-------------|-------------|------------------|
75
+ | **204** | Zapier connection revoked | - |
76
+ | **403** | Forbidden | - |
77
+ | **404** | Zapier connection not found | - |
78
+
79
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
80
+
81
+
82
+ ## getZapierMe
83
+
84
+ > GetZapierMe getZapierMe(xAPIKEY, xPORTALSUBDOMAIN)
85
+
86
+ Test a Zapier API key and return its portal and enabled permissions
87
+
88
+ ### Example
89
+
90
+ ```ts
91
+ import {
92
+ Configuration,
93
+ IntegrationApi,
94
+ } from '@easyedu/js-lsm-api';
95
+ import type { GetZapierMeRequest } from '@easyedu/js-lsm-api';
96
+
97
+ async function example() {
98
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
99
+ const api = new IntegrationApi();
100
+
101
+ const body = {
102
+ // string
103
+ xAPIKEY: xAPIKEY_example,
104
+ // string
105
+ xPORTALSUBDOMAIN: xPORTALSUBDOMAIN_example,
106
+ } satisfies GetZapierMeRequest;
107
+
108
+ try {
109
+ const data = await api.getZapierMe(body);
110
+ console.log(data);
111
+ } catch (error) {
112
+ console.error(error);
113
+ }
114
+ }
115
+
116
+ // Run the test
117
+ example().catch(console.error);
118
+ ```
119
+
120
+ ### Parameters
121
+
122
+
123
+ | Name | Type | Description | Notes |
124
+ |------------- | ------------- | ------------- | -------------|
125
+ | **xAPIKEY** | `string` | | [Defaults to `undefined`] |
126
+ | **xPORTALSUBDOMAIN** | `string` | | [Defaults to `undefined`] |
127
+
128
+ ### Return type
129
+
130
+ [**GetZapierMe**](GetZapierMe.md)
131
+
132
+ ### Authorization
133
+
134
+ No authorization required
135
+
136
+ ### HTTP request headers
137
+
138
+ - **Content-Type**: Not defined
139
+ - **Accept**: `application/json`
140
+
141
+
142
+ ### HTTP response details
143
+ | Status code | Description | Response headers |
144
+ |-------------|-------------|------------------|
145
+ | **200** | Connected Zapier account details | - |
146
+ | **401** | Missing, invalid, or revoked API key | - |
147
+ | **403** | API key does not belong to the supplied portal subdomain | - |
148
+
149
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
150
+
151
+
152
+ ## getZapierSetup
153
+
154
+ > GetZapierSetup getZapierSetup()
155
+
156
+ List Zapier connections and permissions available to the selected portal
157
+
158
+ ### Example
159
+
160
+ ```ts
161
+ import {
162
+ Configuration,
163
+ IntegrationApi,
164
+ } from '@easyedu/js-lsm-api';
165
+ import type { GetZapierSetupRequest } from '@easyedu/js-lsm-api';
166
+
167
+ async function example() {
168
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
169
+ const api = new IntegrationApi();
170
+
171
+ try {
172
+ const data = await api.getZapierSetup();
173
+ console.log(data);
174
+ } catch (error) {
175
+ console.error(error);
176
+ }
177
+ }
178
+
179
+ // Run the test
180
+ example().catch(console.error);
181
+ ```
182
+
183
+ ### Parameters
184
+
185
+ This endpoint does not need any parameter.
186
+
187
+ ### Return type
188
+
189
+ [**GetZapierSetup**](GetZapierSetup.md)
190
+
191
+ ### Authorization
192
+
193
+ No authorization required
194
+
195
+ ### HTTP request headers
196
+
197
+ - **Content-Type**: Not defined
198
+ - **Accept**: `application/json`
199
+
200
+
201
+ ### HTTP response details
202
+ | Status code | Description | Response headers |
203
+ |-------------|-------------|------------------|
204
+ | **200** | Zapier setup details | - |
205
+ | **403** | Forbidden | - |
206
+
207
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
208
+
209
+
210
+ ## postZapierSetup
211
+
212
+ > PostZapierSetupResponse postZapierSetup(postZapierSetup)
213
+
214
+ Create a Zapier connection and API key for the selected portal
215
+
216
+ ### Example
217
+
218
+ ```ts
219
+ import {
220
+ Configuration,
221
+ IntegrationApi,
222
+ } from '@easyedu/js-lsm-api';
223
+ import type { PostZapierSetupRequest } from '@easyedu/js-lsm-api';
224
+
225
+ async function example() {
226
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
227
+ const api = new IntegrationApi();
228
+
229
+ const body = {
230
+ // PostZapierSetup
231
+ postZapierSetup: ...,
232
+ } satisfies PostZapierSetupRequest;
233
+
234
+ try {
235
+ const data = await api.postZapierSetup(body);
236
+ console.log(data);
237
+ } catch (error) {
238
+ console.error(error);
239
+ }
240
+ }
241
+
242
+ // Run the test
243
+ example().catch(console.error);
244
+ ```
245
+
246
+ ### Parameters
247
+
248
+
249
+ | Name | Type | Description | Notes |
250
+ |------------- | ------------- | ------------- | -------------|
251
+ | **postZapierSetup** | [PostZapierSetup](PostZapierSetup.md) | | |
252
+
253
+ ### Return type
254
+
255
+ [**PostZapierSetupResponse**](PostZapierSetupResponse.md)
256
+
257
+ ### Authorization
258
+
259
+ No authorization required
260
+
261
+ ### HTTP request headers
262
+
263
+ - **Content-Type**: `application/json`
264
+ - **Accept**: `application/json`
265
+
266
+
267
+ ### HTTP response details
268
+ | Status code | Description | Response headers |
269
+ |-------------|-------------|------------------|
270
+ | **201** | Zapier connection created; the API key is returned only once | - |
271
+ | **400** | Invalid name or permission selection | - |
272
+ | **403** | Forbidden | - |
273
+
274
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
275
+
276
+
277
+ ## putZapierSetup
278
+
279
+ > ZapierIntegration putZapierSetup(zapierIntegrationId, putZapierSetup)
280
+
281
+ Update a Zapier connection\'s name or permissions
282
+
283
+ ### Example
284
+
285
+ ```ts
286
+ import {
287
+ Configuration,
288
+ IntegrationApi,
289
+ } from '@easyedu/js-lsm-api';
290
+ import type { PutZapierSetupRequest } from '@easyedu/js-lsm-api';
291
+
292
+ async function example() {
293
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
294
+ const api = new IntegrationApi();
295
+
296
+ const body = {
297
+ // string
298
+ zapierIntegrationId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
299
+ // PutZapierSetup
300
+ putZapierSetup: ...,
301
+ } satisfies PutZapierSetupRequest;
302
+
303
+ try {
304
+ const data = await api.putZapierSetup(body);
305
+ console.log(data);
306
+ } catch (error) {
307
+ console.error(error);
308
+ }
309
+ }
310
+
311
+ // Run the test
312
+ example().catch(console.error);
313
+ ```
314
+
315
+ ### Parameters
316
+
317
+
318
+ | Name | Type | Description | Notes |
319
+ |------------- | ------------- | ------------- | -------------|
320
+ | **zapierIntegrationId** | `string` | | [Defaults to `undefined`] |
321
+ | **putZapierSetup** | [PutZapierSetup](PutZapierSetup.md) | | |
322
+
323
+ ### Return type
324
+
325
+ [**ZapierIntegration**](ZapierIntegration.md)
326
+
327
+ ### Authorization
328
+
329
+ No authorization required
330
+
331
+ ### HTTP request headers
332
+
333
+ - **Content-Type**: `application/json`
334
+ - **Accept**: `application/json`
335
+
336
+
337
+ ### HTTP response details
338
+ | Status code | Description | Response headers |
339
+ |-------------|-------------|------------------|
340
+ | **200** | Zapier connection updated | - |
341
+ | **400** | Invalid name or permission selection | - |
342
+ | **403** | Forbidden | - |
343
+ | **404** | Zapier connection not found | - |
344
+
345
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
346
+
@@ -0,0 +1,36 @@
1
+
2
+ # PostZapierSetup
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `name` | string
10
+ `permissionKeys` | Set<string>
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { PostZapierSetup } from '@easyedu/js-lsm-api'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "name": null,
20
+ "permissionKeys": null,
21
+ } satisfies PostZapierSetup
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 PostZapierSetup
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
+
@@ -0,0 +1,37 @@
1
+
2
+ # PostZapierSetupResponse
3
+
4
+ A newly created Zapier connection. The API key is returned only once.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `integration` | [ZapierIntegration](ZapierIntegration.md)
11
+ `apiKey` | string
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { PostZapierSetupResponse } from '@easyedu/js-lsm-api'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "integration": null,
21
+ "apiKey": null,
22
+ } satisfies PostZapierSetupResponse
23
+
24
+ console.log(example)
25
+
26
+ // Convert the instance to a JSON string
27
+ const exampleJSON: string = JSON.stringify(example)
28
+ console.log(exampleJSON)
29
+
30
+ // Parse the JSON string back to an object
31
+ const exampleParsed = JSON.parse(exampleJSON) as PostZapierSetupResponse
32
+ console.log(exampleParsed)
33
+ ```
34
+
35
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
36
+
37
+
@@ -0,0 +1,36 @@
1
+
2
+ # PutZapierSetup
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `name` | string
10
+ `permissionKeys` | Set<string>
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { PutZapierSetup } from '@easyedu/js-lsm-api'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "name": null,
20
+ "permissionKeys": null,
21
+ } satisfies PutZapierSetup
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 PutZapierSetup
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
+