@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.
- package/.openapi-generator/FILES +14 -0
- package/README.md +13 -2
- package/dist/apis/IntegrationApi.d.ts +97 -0
- package/dist/apis/IntegrationApi.js +242 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/IntegrationApi.d.ts +97 -0
- package/dist/esm/apis/IntegrationApi.js +238 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/GetZapierMe.d.ts +62 -0
- package/dist/esm/models/GetZapierMe.js +63 -0
- package/dist/esm/models/GetZapierSetup.d.ts +40 -0
- package/dist/esm/models/GetZapierSetup.js +49 -0
- package/dist/esm/models/PostZapierSetup.d.ts +38 -0
- package/dist/esm/models/PostZapierSetup.js +47 -0
- package/dist/esm/models/PostZapierSetupResponse.d.ts +39 -0
- package/dist/esm/models/PostZapierSetupResponse.js +48 -0
- package/dist/esm/models/PutZapierSetup.d.ts +38 -0
- package/dist/esm/models/PutZapierSetup.js +43 -0
- package/dist/esm/models/ZapierIntegration.d.ts +92 -0
- package/dist/esm/models/ZapierIntegration.js +79 -0
- package/dist/esm/models/index.d.ts +6 -0
- package/dist/esm/models/index.js +6 -0
- package/dist/models/GetZapierMe.d.ts +62 -0
- package/dist/models/GetZapierMe.js +70 -0
- package/dist/models/GetZapierSetup.d.ts +40 -0
- package/dist/models/GetZapierSetup.js +56 -0
- package/dist/models/PostZapierSetup.d.ts +38 -0
- package/dist/models/PostZapierSetup.js +54 -0
- package/dist/models/PostZapierSetupResponse.d.ts +39 -0
- package/dist/models/PostZapierSetupResponse.js +55 -0
- package/dist/models/PutZapierSetup.d.ts +38 -0
- package/dist/models/PutZapierSetup.js +50 -0
- package/dist/models/ZapierIntegration.d.ts +92 -0
- package/dist/models/ZapierIntegration.js +86 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/docs/GetZapierMe.md +44 -0
- package/docs/GetZapierSetup.md +36 -0
- package/docs/IntegrationApi.md +346 -0
- package/docs/PostZapierSetup.md +36 -0
- package/docs/PostZapierSetupResponse.md +37 -0
- package/docs/PutZapierSetup.md +36 -0
- package/docs/ZapierIntegration.md +55 -0
- package/package.json +1 -1
- package/src/apis/IntegrationApi.ts +312 -0
- package/src/apis/index.ts +1 -0
- package/src/models/GetZapierMe.ts +111 -0
- package/src/models/GetZapierSetup.ts +90 -0
- package/src/models/PostZapierSetup.ts +75 -0
- package/src/models/PostZapierSetupResponse.ts +83 -0
- package/src/models/PutZapierSetup.ts +73 -0
- package/src/models/ZapierIntegration.ts +154 -0
- package/src/models/index.ts +6 -0
|
@@ -0,0 +1,312 @@
|
|
|
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 * as runtime from '../runtime';
|
|
16
|
+
import {
|
|
17
|
+
type GetZapierMe,
|
|
18
|
+
GetZapierMeFromJSON,
|
|
19
|
+
GetZapierMeToJSON,
|
|
20
|
+
} from '../models/GetZapierMe';
|
|
21
|
+
import {
|
|
22
|
+
type GetZapierSetup,
|
|
23
|
+
GetZapierSetupFromJSON,
|
|
24
|
+
GetZapierSetupToJSON,
|
|
25
|
+
} from '../models/GetZapierSetup';
|
|
26
|
+
import {
|
|
27
|
+
type PostZapierSetup,
|
|
28
|
+
PostZapierSetupFromJSON,
|
|
29
|
+
PostZapierSetupToJSON,
|
|
30
|
+
} from '../models/PostZapierSetup';
|
|
31
|
+
import {
|
|
32
|
+
type PostZapierSetupResponse,
|
|
33
|
+
PostZapierSetupResponseFromJSON,
|
|
34
|
+
PostZapierSetupResponseToJSON,
|
|
35
|
+
} from '../models/PostZapierSetupResponse';
|
|
36
|
+
import {
|
|
37
|
+
type PutZapierSetup,
|
|
38
|
+
PutZapierSetupFromJSON,
|
|
39
|
+
PutZapierSetupToJSON,
|
|
40
|
+
} from '../models/PutZapierSetup';
|
|
41
|
+
import {
|
|
42
|
+
type ZapierIntegration,
|
|
43
|
+
ZapierIntegrationFromJSON,
|
|
44
|
+
ZapierIntegrationToJSON,
|
|
45
|
+
} from '../models/ZapierIntegration';
|
|
46
|
+
|
|
47
|
+
export interface DeleteZapierSetupRequest {
|
|
48
|
+
zapierIntegrationId: string;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface GetZapierMeRequest {
|
|
52
|
+
xAPIKEY: string;
|
|
53
|
+
xPORTALSUBDOMAIN: string;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export interface PostZapierSetupRequest {
|
|
57
|
+
postZapierSetup: PostZapierSetup;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface PutZapierSetupRequest {
|
|
61
|
+
zapierIntegrationId: string;
|
|
62
|
+
putZapierSetup: PutZapierSetup;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
*/
|
|
68
|
+
export class IntegrationApi extends runtime.BaseAPI {
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Creates request options for deleteZapierSetup without sending the request
|
|
72
|
+
*/
|
|
73
|
+
async deleteZapierSetupRequestOpts(requestParameters: DeleteZapierSetupRequest): Promise<runtime.RequestOpts> {
|
|
74
|
+
if (requestParameters['zapierIntegrationId'] == null) {
|
|
75
|
+
throw new runtime.RequiredError(
|
|
76
|
+
'zapierIntegrationId',
|
|
77
|
+
'Required parameter "zapierIntegrationId" was null or undefined when calling deleteZapierSetup().'
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
const queryParameters: any = {};
|
|
82
|
+
|
|
83
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
let urlPath = `/integrations/zapier/setup/{zapierIntegrationId}`;
|
|
87
|
+
urlPath = urlPath.replace('{zapierIntegrationId}', encodeURIComponent(String(requestParameters['zapierIntegrationId'])));
|
|
88
|
+
|
|
89
|
+
return {
|
|
90
|
+
path: urlPath,
|
|
91
|
+
method: 'DELETE',
|
|
92
|
+
headers: headerParameters,
|
|
93
|
+
query: queryParameters,
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Revoke a Zapier connection and its API key
|
|
99
|
+
*/
|
|
100
|
+
async deleteZapierSetupRaw(requestParameters: DeleteZapierSetupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
101
|
+
const requestOptions = await this.deleteZapierSetupRequestOpts(requestParameters);
|
|
102
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
103
|
+
|
|
104
|
+
return new runtime.VoidApiResponse(response);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Revoke a Zapier connection and its API key
|
|
109
|
+
*/
|
|
110
|
+
async deleteZapierSetup(requestParameters: DeleteZapierSetupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
111
|
+
await this.deleteZapierSetupRaw(requestParameters, initOverrides);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Creates request options for getZapierMe without sending the request
|
|
116
|
+
*/
|
|
117
|
+
async getZapierMeRequestOpts(requestParameters: GetZapierMeRequest): Promise<runtime.RequestOpts> {
|
|
118
|
+
if (requestParameters['xAPIKEY'] == null) {
|
|
119
|
+
throw new runtime.RequiredError(
|
|
120
|
+
'xAPIKEY',
|
|
121
|
+
'Required parameter "xAPIKEY" was null or undefined when calling getZapierMe().'
|
|
122
|
+
);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
if (requestParameters['xPORTALSUBDOMAIN'] == null) {
|
|
126
|
+
throw new runtime.RequiredError(
|
|
127
|
+
'xPORTALSUBDOMAIN',
|
|
128
|
+
'Required parameter "xPORTALSUBDOMAIN" was null or undefined when calling getZapierMe().'
|
|
129
|
+
);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
const queryParameters: any = {};
|
|
133
|
+
|
|
134
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
135
|
+
|
|
136
|
+
if (requestParameters['xAPIKEY'] != null) {
|
|
137
|
+
headerParameters['X-API-KEY'] = String(requestParameters['xAPIKEY']);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
if (requestParameters['xPORTALSUBDOMAIN'] != null) {
|
|
141
|
+
headerParameters['X-PORTAL-SUBDOMAIN'] = String(requestParameters['xPORTALSUBDOMAIN']);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
let urlPath = `/integrations/zapier/me`;
|
|
146
|
+
|
|
147
|
+
return {
|
|
148
|
+
path: urlPath,
|
|
149
|
+
method: 'GET',
|
|
150
|
+
headers: headerParameters,
|
|
151
|
+
query: queryParameters,
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Test a Zapier API key and return its portal and enabled permissions
|
|
157
|
+
*/
|
|
158
|
+
async getZapierMeRaw(requestParameters: GetZapierMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetZapierMe>> {
|
|
159
|
+
const requestOptions = await this.getZapierMeRequestOpts(requestParameters);
|
|
160
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
161
|
+
|
|
162
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetZapierMeFromJSON(jsonValue));
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Test a Zapier API key and return its portal and enabled permissions
|
|
167
|
+
*/
|
|
168
|
+
async getZapierMe(requestParameters: GetZapierMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetZapierMe> {
|
|
169
|
+
const response = await this.getZapierMeRaw(requestParameters, initOverrides);
|
|
170
|
+
return await response.value();
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Creates request options for getZapierSetup without sending the request
|
|
175
|
+
*/
|
|
176
|
+
async getZapierSetupRequestOpts(): Promise<runtime.RequestOpts> {
|
|
177
|
+
const queryParameters: any = {};
|
|
178
|
+
|
|
179
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
let urlPath = `/integrations/zapier/setup`;
|
|
183
|
+
|
|
184
|
+
return {
|
|
185
|
+
path: urlPath,
|
|
186
|
+
method: 'GET',
|
|
187
|
+
headers: headerParameters,
|
|
188
|
+
query: queryParameters,
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* List Zapier connections and permissions available to the selected portal
|
|
194
|
+
*/
|
|
195
|
+
async getZapierSetupRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetZapierSetup>> {
|
|
196
|
+
const requestOptions = await this.getZapierSetupRequestOpts();
|
|
197
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
198
|
+
|
|
199
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetZapierSetupFromJSON(jsonValue));
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* List Zapier connections and permissions available to the selected portal
|
|
204
|
+
*/
|
|
205
|
+
async getZapierSetup(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetZapierSetup> {
|
|
206
|
+
const response = await this.getZapierSetupRaw(initOverrides);
|
|
207
|
+
return await response.value();
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* Creates request options for postZapierSetup without sending the request
|
|
212
|
+
*/
|
|
213
|
+
async postZapierSetupRequestOpts(requestParameters: PostZapierSetupRequest): Promise<runtime.RequestOpts> {
|
|
214
|
+
if (requestParameters['postZapierSetup'] == null) {
|
|
215
|
+
throw new runtime.RequiredError(
|
|
216
|
+
'postZapierSetup',
|
|
217
|
+
'Required parameter "postZapierSetup" was null or undefined when calling postZapierSetup().'
|
|
218
|
+
);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
const queryParameters: any = {};
|
|
222
|
+
|
|
223
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
224
|
+
|
|
225
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
let urlPath = `/integrations/zapier/setup`;
|
|
229
|
+
|
|
230
|
+
return {
|
|
231
|
+
path: urlPath,
|
|
232
|
+
method: 'POST',
|
|
233
|
+
headers: headerParameters,
|
|
234
|
+
query: queryParameters,
|
|
235
|
+
body: PostZapierSetupToJSON(requestParameters['postZapierSetup']),
|
|
236
|
+
};
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* Create a Zapier connection and API key for the selected portal
|
|
241
|
+
*/
|
|
242
|
+
async postZapierSetupRaw(requestParameters: PostZapierSetupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PostZapierSetupResponse>> {
|
|
243
|
+
const requestOptions = await this.postZapierSetupRequestOpts(requestParameters);
|
|
244
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
245
|
+
|
|
246
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PostZapierSetupResponseFromJSON(jsonValue));
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* Create a Zapier connection and API key for the selected portal
|
|
251
|
+
*/
|
|
252
|
+
async postZapierSetup(requestParameters: PostZapierSetupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PostZapierSetupResponse> {
|
|
253
|
+
const response = await this.postZapierSetupRaw(requestParameters, initOverrides);
|
|
254
|
+
return await response.value();
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* Creates request options for putZapierSetup without sending the request
|
|
259
|
+
*/
|
|
260
|
+
async putZapierSetupRequestOpts(requestParameters: PutZapierSetupRequest): Promise<runtime.RequestOpts> {
|
|
261
|
+
if (requestParameters['zapierIntegrationId'] == null) {
|
|
262
|
+
throw new runtime.RequiredError(
|
|
263
|
+
'zapierIntegrationId',
|
|
264
|
+
'Required parameter "zapierIntegrationId" was null or undefined when calling putZapierSetup().'
|
|
265
|
+
);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
if (requestParameters['putZapierSetup'] == null) {
|
|
269
|
+
throw new runtime.RequiredError(
|
|
270
|
+
'putZapierSetup',
|
|
271
|
+
'Required parameter "putZapierSetup" was null or undefined when calling putZapierSetup().'
|
|
272
|
+
);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
const queryParameters: any = {};
|
|
276
|
+
|
|
277
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
278
|
+
|
|
279
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
let urlPath = `/integrations/zapier/setup/{zapierIntegrationId}`;
|
|
283
|
+
urlPath = urlPath.replace('{zapierIntegrationId}', encodeURIComponent(String(requestParameters['zapierIntegrationId'])));
|
|
284
|
+
|
|
285
|
+
return {
|
|
286
|
+
path: urlPath,
|
|
287
|
+
method: 'PUT',
|
|
288
|
+
headers: headerParameters,
|
|
289
|
+
query: queryParameters,
|
|
290
|
+
body: PutZapierSetupToJSON(requestParameters['putZapierSetup']),
|
|
291
|
+
};
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* Update a Zapier connection\'s name or permissions
|
|
296
|
+
*/
|
|
297
|
+
async putZapierSetupRaw(requestParameters: PutZapierSetupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ZapierIntegration>> {
|
|
298
|
+
const requestOptions = await this.putZapierSetupRequestOpts(requestParameters);
|
|
299
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
300
|
+
|
|
301
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ZapierIntegrationFromJSON(jsonValue));
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* Update a Zapier connection\'s name or permissions
|
|
306
|
+
*/
|
|
307
|
+
async putZapierSetup(requestParameters: PutZapierSetupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ZapierIntegration> {
|
|
308
|
+
const response = await this.putZapierSetupRaw(requestParameters, initOverrides);
|
|
309
|
+
return await response.value();
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
}
|
package/src/apis/index.ts
CHANGED
|
@@ -11,6 +11,7 @@ export * from './CourseCatalogApi';
|
|
|
11
11
|
export * from './CourseShareApi';
|
|
12
12
|
export * from './DispatchApi';
|
|
13
13
|
export * from './EmailTemplateApi';
|
|
14
|
+
export * from './IntegrationApi';
|
|
14
15
|
export * from './LearnerExperienceApi';
|
|
15
16
|
export * from './OtherApi';
|
|
16
17
|
export * from './PlayerApi';
|
|
@@ -0,0 +1,111 @@
|
|
|
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 GetZapierMe
|
|
20
|
+
*/
|
|
21
|
+
export interface GetZapierMe {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof GetZapierMe
|
|
26
|
+
*/
|
|
27
|
+
integrationId: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof GetZapierMe
|
|
32
|
+
*/
|
|
33
|
+
integrationName: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof GetZapierMe
|
|
38
|
+
*/
|
|
39
|
+
portalId: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof GetZapierMe
|
|
44
|
+
*/
|
|
45
|
+
portalName: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof GetZapierMe
|
|
50
|
+
*/
|
|
51
|
+
portalSubdomain: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {Array<string>}
|
|
55
|
+
* @memberof GetZapierMe
|
|
56
|
+
*/
|
|
57
|
+
permissionKeys: Array<string>;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the GetZapierMe interface.
|
|
62
|
+
*/
|
|
63
|
+
export function instanceOfGetZapierMe(value: object): value is GetZapierMe {
|
|
64
|
+
if (!('integrationId' in value) || value['integrationId'] === undefined) return false;
|
|
65
|
+
if (!('integrationName' in value) || value['integrationName'] === undefined) return false;
|
|
66
|
+
if (!('portalId' in value) || value['portalId'] === undefined) return false;
|
|
67
|
+
if (!('portalName' in value) || value['portalName'] === undefined) return false;
|
|
68
|
+
if (!('portalSubdomain' in value) || value['portalSubdomain'] === undefined) return false;
|
|
69
|
+
if (!('permissionKeys' in value) || value['permissionKeys'] === undefined) return false;
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function GetZapierMeFromJSON(json: any): GetZapierMe {
|
|
74
|
+
return GetZapierMeFromJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function GetZapierMeFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetZapierMe {
|
|
78
|
+
if (json == null) {
|
|
79
|
+
return json;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'integrationId': json['integration_id'],
|
|
84
|
+
'integrationName': json['integration_name'],
|
|
85
|
+
'portalId': json['portal_id'],
|
|
86
|
+
'portalName': json['portal_name'],
|
|
87
|
+
'portalSubdomain': json['portal_subdomain'],
|
|
88
|
+
'permissionKeys': json['permission_keys'],
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function GetZapierMeToJSON(json: any): GetZapierMe {
|
|
93
|
+
return GetZapierMeToJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function GetZapierMeToJSONTyped(value?: GetZapierMe | null, ignoreDiscriminator: boolean = false): any {
|
|
97
|
+
if (value == null) {
|
|
98
|
+
return value;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return {
|
|
102
|
+
|
|
103
|
+
'integration_id': value['integrationId'],
|
|
104
|
+
'integration_name': value['integrationName'],
|
|
105
|
+
'portal_id': value['portalId'],
|
|
106
|
+
'portal_name': value['portalName'],
|
|
107
|
+
'portal_subdomain': value['portalSubdomain'],
|
|
108
|
+
'permission_keys': value['permissionKeys'],
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
|
|
@@ -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
|
+
|