@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,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
+
@@ -0,0 +1,55 @@
1
+
2
+ # ZapierIntegration
3
+
4
+ A portal-scoped Zapier connection. The API key secret is never included here.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `id` | string
11
+ `name` | string
12
+ `portalId` | string
13
+ `portalName` | string
14
+ `portalSubdomain` | string
15
+ `keyPrefix` | string
16
+ `permissionKeys` | Array<string>
17
+ `createdAt` | number
18
+ `updatedAt` | number
19
+ `lastUsedAt` | number
20
+ `revokedAt` | number
21
+
22
+ ## Example
23
+
24
+ ```typescript
25
+ import type { ZapierIntegration } from '@easyedu/js-lsm-api'
26
+
27
+ // TODO: Update the object below with actual values
28
+ const example = {
29
+ "id": null,
30
+ "name": null,
31
+ "portalId": null,
32
+ "portalName": null,
33
+ "portalSubdomain": null,
34
+ "keyPrefix": null,
35
+ "permissionKeys": null,
36
+ "createdAt": null,
37
+ "updatedAt": null,
38
+ "lastUsedAt": null,
39
+ "revokedAt": null,
40
+ } satisfies ZapierIntegration
41
+
42
+ console.log(example)
43
+
44
+ // Convert the instance to a JSON string
45
+ const exampleJSON: string = JSON.stringify(example)
46
+ console.log(exampleJSON)
47
+
48
+ // Parse the JSON string back to an object
49
+ const exampleParsed = JSON.parse(exampleJSON) as ZapierIntegration
50
+ console.log(exampleParsed)
51
+ ```
52
+
53
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
54
+
55
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyedu/js-lsm-api",
3
- "version": "1.114.0",
3
+ "version": "1.115.0",
4
4
  "description": "OpenAPI client for @easyedu/js-lsm-api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {