@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,238 @@
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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import * as runtime from '../runtime';
24
+ import { GetZapierMeFromJSON, } from '../models/GetZapierMe';
25
+ import { GetZapierSetupFromJSON, } from '../models/GetZapierSetup';
26
+ import { PostZapierSetupToJSON, } from '../models/PostZapierSetup';
27
+ import { PostZapierSetupResponseFromJSON, } from '../models/PostZapierSetupResponse';
28
+ import { PutZapierSetupToJSON, } from '../models/PutZapierSetup';
29
+ import { ZapierIntegrationFromJSON, } from '../models/ZapierIntegration';
30
+ /**
31
+ *
32
+ */
33
+ export class IntegrationApi extends runtime.BaseAPI {
34
+ /**
35
+ * Creates request options for deleteZapierSetup without sending the request
36
+ */
37
+ deleteZapierSetupRequestOpts(requestParameters) {
38
+ return __awaiter(this, void 0, void 0, function* () {
39
+ if (requestParameters['zapierIntegrationId'] == null) {
40
+ throw new runtime.RequiredError('zapierIntegrationId', 'Required parameter "zapierIntegrationId" was null or undefined when calling deleteZapierSetup().');
41
+ }
42
+ const queryParameters = {};
43
+ const headerParameters = {};
44
+ let urlPath = `/integrations/zapier/setup/{zapierIntegrationId}`;
45
+ urlPath = urlPath.replace('{zapierIntegrationId}', encodeURIComponent(String(requestParameters['zapierIntegrationId'])));
46
+ return {
47
+ path: urlPath,
48
+ method: 'DELETE',
49
+ headers: headerParameters,
50
+ query: queryParameters,
51
+ };
52
+ });
53
+ }
54
+ /**
55
+ * Revoke a Zapier connection and its API key
56
+ */
57
+ deleteZapierSetupRaw(requestParameters, initOverrides) {
58
+ return __awaiter(this, void 0, void 0, function* () {
59
+ const requestOptions = yield this.deleteZapierSetupRequestOpts(requestParameters);
60
+ const response = yield this.request(requestOptions, initOverrides);
61
+ return new runtime.VoidApiResponse(response);
62
+ });
63
+ }
64
+ /**
65
+ * Revoke a Zapier connection and its API key
66
+ */
67
+ deleteZapierSetup(requestParameters, initOverrides) {
68
+ return __awaiter(this, void 0, void 0, function* () {
69
+ yield this.deleteZapierSetupRaw(requestParameters, initOverrides);
70
+ });
71
+ }
72
+ /**
73
+ * Creates request options for getZapierMe without sending the request
74
+ */
75
+ getZapierMeRequestOpts(requestParameters) {
76
+ return __awaiter(this, void 0, void 0, function* () {
77
+ if (requestParameters['xAPIKEY'] == null) {
78
+ throw new runtime.RequiredError('xAPIKEY', 'Required parameter "xAPIKEY" was null or undefined when calling getZapierMe().');
79
+ }
80
+ if (requestParameters['xPORTALSUBDOMAIN'] == null) {
81
+ throw new runtime.RequiredError('xPORTALSUBDOMAIN', 'Required parameter "xPORTALSUBDOMAIN" was null or undefined when calling getZapierMe().');
82
+ }
83
+ const queryParameters = {};
84
+ const headerParameters = {};
85
+ if (requestParameters['xAPIKEY'] != null) {
86
+ headerParameters['X-API-KEY'] = String(requestParameters['xAPIKEY']);
87
+ }
88
+ if (requestParameters['xPORTALSUBDOMAIN'] != null) {
89
+ headerParameters['X-PORTAL-SUBDOMAIN'] = String(requestParameters['xPORTALSUBDOMAIN']);
90
+ }
91
+ let urlPath = `/integrations/zapier/me`;
92
+ return {
93
+ path: urlPath,
94
+ method: 'GET',
95
+ headers: headerParameters,
96
+ query: queryParameters,
97
+ };
98
+ });
99
+ }
100
+ /**
101
+ * Test a Zapier API key and return its portal and enabled permissions
102
+ */
103
+ getZapierMeRaw(requestParameters, initOverrides) {
104
+ return __awaiter(this, void 0, void 0, function* () {
105
+ const requestOptions = yield this.getZapierMeRequestOpts(requestParameters);
106
+ const response = yield this.request(requestOptions, initOverrides);
107
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetZapierMeFromJSON(jsonValue));
108
+ });
109
+ }
110
+ /**
111
+ * Test a Zapier API key and return its portal and enabled permissions
112
+ */
113
+ getZapierMe(requestParameters, initOverrides) {
114
+ return __awaiter(this, void 0, void 0, function* () {
115
+ const response = yield this.getZapierMeRaw(requestParameters, initOverrides);
116
+ return yield response.value();
117
+ });
118
+ }
119
+ /**
120
+ * Creates request options for getZapierSetup without sending the request
121
+ */
122
+ getZapierSetupRequestOpts() {
123
+ return __awaiter(this, void 0, void 0, function* () {
124
+ const queryParameters = {};
125
+ const headerParameters = {};
126
+ let urlPath = `/integrations/zapier/setup`;
127
+ return {
128
+ path: urlPath,
129
+ method: 'GET',
130
+ headers: headerParameters,
131
+ query: queryParameters,
132
+ };
133
+ });
134
+ }
135
+ /**
136
+ * List Zapier connections and permissions available to the selected portal
137
+ */
138
+ getZapierSetupRaw(initOverrides) {
139
+ return __awaiter(this, void 0, void 0, function* () {
140
+ const requestOptions = yield this.getZapierSetupRequestOpts();
141
+ const response = yield this.request(requestOptions, initOverrides);
142
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetZapierSetupFromJSON(jsonValue));
143
+ });
144
+ }
145
+ /**
146
+ * List Zapier connections and permissions available to the selected portal
147
+ */
148
+ getZapierSetup(initOverrides) {
149
+ return __awaiter(this, void 0, void 0, function* () {
150
+ const response = yield this.getZapierSetupRaw(initOverrides);
151
+ return yield response.value();
152
+ });
153
+ }
154
+ /**
155
+ * Creates request options for postZapierSetup without sending the request
156
+ */
157
+ postZapierSetupRequestOpts(requestParameters) {
158
+ return __awaiter(this, void 0, void 0, function* () {
159
+ if (requestParameters['postZapierSetup'] == null) {
160
+ throw new runtime.RequiredError('postZapierSetup', 'Required parameter "postZapierSetup" was null or undefined when calling postZapierSetup().');
161
+ }
162
+ const queryParameters = {};
163
+ const headerParameters = {};
164
+ headerParameters['Content-Type'] = 'application/json';
165
+ let urlPath = `/integrations/zapier/setup`;
166
+ return {
167
+ path: urlPath,
168
+ method: 'POST',
169
+ headers: headerParameters,
170
+ query: queryParameters,
171
+ body: PostZapierSetupToJSON(requestParameters['postZapierSetup']),
172
+ };
173
+ });
174
+ }
175
+ /**
176
+ * Create a Zapier connection and API key for the selected portal
177
+ */
178
+ postZapierSetupRaw(requestParameters, initOverrides) {
179
+ return __awaiter(this, void 0, void 0, function* () {
180
+ const requestOptions = yield this.postZapierSetupRequestOpts(requestParameters);
181
+ const response = yield this.request(requestOptions, initOverrides);
182
+ return new runtime.JSONApiResponse(response, (jsonValue) => PostZapierSetupResponseFromJSON(jsonValue));
183
+ });
184
+ }
185
+ /**
186
+ * Create a Zapier connection and API key for the selected portal
187
+ */
188
+ postZapierSetup(requestParameters, initOverrides) {
189
+ return __awaiter(this, void 0, void 0, function* () {
190
+ const response = yield this.postZapierSetupRaw(requestParameters, initOverrides);
191
+ return yield response.value();
192
+ });
193
+ }
194
+ /**
195
+ * Creates request options for putZapierSetup without sending the request
196
+ */
197
+ putZapierSetupRequestOpts(requestParameters) {
198
+ return __awaiter(this, void 0, void 0, function* () {
199
+ if (requestParameters['zapierIntegrationId'] == null) {
200
+ throw new runtime.RequiredError('zapierIntegrationId', 'Required parameter "zapierIntegrationId" was null or undefined when calling putZapierSetup().');
201
+ }
202
+ if (requestParameters['putZapierSetup'] == null) {
203
+ throw new runtime.RequiredError('putZapierSetup', 'Required parameter "putZapierSetup" was null or undefined when calling putZapierSetup().');
204
+ }
205
+ const queryParameters = {};
206
+ const headerParameters = {};
207
+ headerParameters['Content-Type'] = 'application/json';
208
+ let urlPath = `/integrations/zapier/setup/{zapierIntegrationId}`;
209
+ urlPath = urlPath.replace('{zapierIntegrationId}', encodeURIComponent(String(requestParameters['zapierIntegrationId'])));
210
+ return {
211
+ path: urlPath,
212
+ method: 'PUT',
213
+ headers: headerParameters,
214
+ query: queryParameters,
215
+ body: PutZapierSetupToJSON(requestParameters['putZapierSetup']),
216
+ };
217
+ });
218
+ }
219
+ /**
220
+ * Update a Zapier connection\'s name or permissions
221
+ */
222
+ putZapierSetupRaw(requestParameters, initOverrides) {
223
+ return __awaiter(this, void 0, void 0, function* () {
224
+ const requestOptions = yield this.putZapierSetupRequestOpts(requestParameters);
225
+ const response = yield this.request(requestOptions, initOverrides);
226
+ return new runtime.JSONApiResponse(response, (jsonValue) => ZapierIntegrationFromJSON(jsonValue));
227
+ });
228
+ }
229
+ /**
230
+ * Update a Zapier connection\'s name or permissions
231
+ */
232
+ putZapierSetup(requestParameters, initOverrides) {
233
+ return __awaiter(this, void 0, void 0, function* () {
234
+ const response = yield this.putZapierSetupRaw(requestParameters, initOverrides);
235
+ return yield response.value();
236
+ });
237
+ }
238
+ }
@@ -9,6 +9,7 @@ export * from './CourseCatalogApi';
9
9
  export * from './CourseShareApi';
10
10
  export * from './DispatchApi';
11
11
  export * from './EmailTemplateApi';
12
+ export * from './IntegrationApi';
12
13
  export * from './LearnerExperienceApi';
13
14
  export * from './OtherApi';
14
15
  export * from './PlayerApi';
@@ -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,62 @@
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 GetZapierMe
16
+ */
17
+ export interface GetZapierMe {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof GetZapierMe
22
+ */
23
+ integrationId: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof GetZapierMe
28
+ */
29
+ integrationName: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof GetZapierMe
34
+ */
35
+ portalId: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof GetZapierMe
40
+ */
41
+ portalName: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof GetZapierMe
46
+ */
47
+ portalSubdomain: string;
48
+ /**
49
+ *
50
+ * @type {Array<string>}
51
+ * @memberof GetZapierMe
52
+ */
53
+ permissionKeys: Array<string>;
54
+ }
55
+ /**
56
+ * Check if a given object implements the GetZapierMe interface.
57
+ */
58
+ export declare function instanceOfGetZapierMe(value: object): value is GetZapierMe;
59
+ export declare function GetZapierMeFromJSON(json: any): GetZapierMe;
60
+ export declare function GetZapierMeFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetZapierMe;
61
+ export declare function GetZapierMeToJSON(json: any): GetZapierMe;
62
+ export declare function GetZapierMeToJSONTyped(value?: GetZapierMe | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,63 @@
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
+ * Check if a given object implements the GetZapierMe interface.
16
+ */
17
+ export function instanceOfGetZapierMe(value) {
18
+ if (!('integrationId' in value) || value['integrationId'] === undefined)
19
+ return false;
20
+ if (!('integrationName' in value) || value['integrationName'] === undefined)
21
+ return false;
22
+ if (!('portalId' in value) || value['portalId'] === undefined)
23
+ return false;
24
+ if (!('portalName' in value) || value['portalName'] === undefined)
25
+ return false;
26
+ if (!('portalSubdomain' in value) || value['portalSubdomain'] === undefined)
27
+ return false;
28
+ if (!('permissionKeys' in value) || value['permissionKeys'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ export function GetZapierMeFromJSON(json) {
33
+ return GetZapierMeFromJSONTyped(json, false);
34
+ }
35
+ export function GetZapierMeFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'integrationId': json['integration_id'],
41
+ 'integrationName': json['integration_name'],
42
+ 'portalId': json['portal_id'],
43
+ 'portalName': json['portal_name'],
44
+ 'portalSubdomain': json['portal_subdomain'],
45
+ 'permissionKeys': json['permission_keys'],
46
+ };
47
+ }
48
+ export function GetZapierMeToJSON(json) {
49
+ return GetZapierMeToJSONTyped(json, false);
50
+ }
51
+ export function GetZapierMeToJSONTyped(value, ignoreDiscriminator = false) {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'integration_id': value['integrationId'],
57
+ 'integration_name': value['integrationName'],
58
+ 'portal_id': value['portalId'],
59
+ 'portal_name': value['portalName'],
60
+ 'portal_subdomain': value['portalSubdomain'],
61
+ 'permission_keys': value['permissionKeys'],
62
+ };
63
+ }
@@ -0,0 +1,40 @@
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
+ import type { GetPermission } from './GetPermission';
13
+ import type { ZapierIntegration } from './ZapierIntegration';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface GetZapierSetup
18
+ */
19
+ export interface GetZapierSetup {
20
+ /**
21
+ *
22
+ * @type {Array<GetPermission>}
23
+ * @memberof GetZapierSetup
24
+ */
25
+ availablePermissions: Array<GetPermission>;
26
+ /**
27
+ *
28
+ * @type {Array<ZapierIntegration>}
29
+ * @memberof GetZapierSetup
30
+ */
31
+ integrations: Array<ZapierIntegration>;
32
+ }
33
+ /**
34
+ * Check if a given object implements the GetZapierSetup interface.
35
+ */
36
+ export declare function instanceOfGetZapierSetup(value: object): value is GetZapierSetup;
37
+ export declare function GetZapierSetupFromJSON(json: any): GetZapierSetup;
38
+ export declare function GetZapierSetupFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetZapierSetup;
39
+ export declare function GetZapierSetupToJSON(json: any): GetZapierSetup;
40
+ export declare function GetZapierSetupToJSONTyped(value?: GetZapierSetup | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,49 @@
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
+ import { GetPermissionFromJSON, GetPermissionToJSON, } from './GetPermission';
15
+ import { ZapierIntegrationFromJSON, ZapierIntegrationToJSON, } from './ZapierIntegration';
16
+ /**
17
+ * Check if a given object implements the GetZapierSetup interface.
18
+ */
19
+ export function instanceOfGetZapierSetup(value) {
20
+ if (!('availablePermissions' in value) || value['availablePermissions'] === undefined)
21
+ return false;
22
+ if (!('integrations' in value) || value['integrations'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function GetZapierSetupFromJSON(json) {
27
+ return GetZapierSetupFromJSONTyped(json, false);
28
+ }
29
+ export function GetZapierSetupFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'availablePermissions': (json['available_permissions'].map(GetPermissionFromJSON)),
35
+ 'integrations': (json['integrations'].map(ZapierIntegrationFromJSON)),
36
+ };
37
+ }
38
+ export function GetZapierSetupToJSON(json) {
39
+ return GetZapierSetupToJSONTyped(json, false);
40
+ }
41
+ export function GetZapierSetupToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'available_permissions': (value['availablePermissions'].map(GetPermissionToJSON)),
47
+ 'integrations': (value['integrations'].map(ZapierIntegrationToJSON)),
48
+ };
49
+ }
@@ -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 PostZapierSetup
16
+ */
17
+ export interface PostZapierSetup {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PostZapierSetup
22
+ */
23
+ name: string;
24
+ /**
25
+ *
26
+ * @type {Set<string>}
27
+ * @memberof PostZapierSetup
28
+ */
29
+ permissionKeys: Set<string>;
30
+ }
31
+ /**
32
+ * Check if a given object implements the PostZapierSetup interface.
33
+ */
34
+ export declare function instanceOfPostZapierSetup(value: object): value is PostZapierSetup;
35
+ export declare function PostZapierSetupFromJSON(json: any): PostZapierSetup;
36
+ export declare function PostZapierSetupFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostZapierSetup;
37
+ export declare function PostZapierSetupToJSON(json: any): PostZapierSetup;
38
+ export declare function PostZapierSetupToJSONTyped(value?: PostZapierSetup | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,47 @@
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
+ * Check if a given object implements the PostZapierSetup interface.
16
+ */
17
+ export function instanceOfPostZapierSetup(value) {
18
+ if (!('name' in value) || value['name'] === undefined)
19
+ return false;
20
+ if (!('permissionKeys' in value) || value['permissionKeys'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function PostZapierSetupFromJSON(json) {
25
+ return PostZapierSetupFromJSONTyped(json, false);
26
+ }
27
+ export function PostZapierSetupFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'name': json['name'],
33
+ 'permissionKeys': new Set(json['permission_keys']),
34
+ };
35
+ }
36
+ export function PostZapierSetupToJSON(json) {
37
+ return PostZapierSetupToJSONTyped(json, false);
38
+ }
39
+ export function PostZapierSetupToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'name': value['name'],
45
+ 'permission_keys': Array.from(value['permissionKeys']),
46
+ };
47
+ }
@@ -0,0 +1,39 @@
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
+ import type { ZapierIntegration } from './ZapierIntegration';
13
+ /**
14
+ * A newly created Zapier connection. The API key is returned only once.
15
+ * @export
16
+ * @interface PostZapierSetupResponse
17
+ */
18
+ export interface PostZapierSetupResponse {
19
+ /**
20
+ *
21
+ * @type {ZapierIntegration}
22
+ * @memberof PostZapierSetupResponse
23
+ */
24
+ integration: ZapierIntegration;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof PostZapierSetupResponse
29
+ */
30
+ apiKey: string;
31
+ }
32
+ /**
33
+ * Check if a given object implements the PostZapierSetupResponse interface.
34
+ */
35
+ export declare function instanceOfPostZapierSetupResponse(value: object): value is PostZapierSetupResponse;
36
+ export declare function PostZapierSetupResponseFromJSON(json: any): PostZapierSetupResponse;
37
+ export declare function PostZapierSetupResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostZapierSetupResponse;
38
+ export declare function PostZapierSetupResponseToJSON(json: any): PostZapierSetupResponse;
39
+ export declare function PostZapierSetupResponseToJSONTyped(value?: PostZapierSetupResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,48 @@
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
+ import { ZapierIntegrationFromJSON, ZapierIntegrationToJSON, } from './ZapierIntegration';
15
+ /**
16
+ * Check if a given object implements the PostZapierSetupResponse interface.
17
+ */
18
+ export function instanceOfPostZapierSetupResponse(value) {
19
+ if (!('integration' in value) || value['integration'] === undefined)
20
+ return false;
21
+ if (!('apiKey' in value) || value['apiKey'] === undefined)
22
+ return false;
23
+ return true;
24
+ }
25
+ export function PostZapierSetupResponseFromJSON(json) {
26
+ return PostZapierSetupResponseFromJSONTyped(json, false);
27
+ }
28
+ export function PostZapierSetupResponseFromJSONTyped(json, ignoreDiscriminator) {
29
+ if (json == null) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'integration': ZapierIntegrationFromJSON(json['integration']),
34
+ 'apiKey': json['api_key'],
35
+ };
36
+ }
37
+ export function PostZapierSetupResponseToJSON(json) {
38
+ return PostZapierSetupResponseToJSONTyped(json, false);
39
+ }
40
+ export function PostZapierSetupResponseToJSONTyped(value, ignoreDiscriminator = false) {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ return {
45
+ 'integration': ZapierIntegrationToJSON(value['integration']),
46
+ 'api_key': value['apiKey'],
47
+ };
48
+ }
@@ -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;