@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
@@ -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,47 @@
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 { ChatUsageTotals } from './ChatUsageTotals';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ChatFeatureUsage
17
+ */
18
+ export interface ChatFeatureUsage {
19
+ /**
20
+ *
21
+ * @type {ChatFeatureUsageFeatureEnum}
22
+ * @memberof ChatFeatureUsage
23
+ */
24
+ feature: ChatFeatureUsageFeatureEnum;
25
+ /**
26
+ *
27
+ * @type {ChatUsageTotals}
28
+ * @memberof ChatFeatureUsage
29
+ */
30
+ usage: ChatUsageTotals;
31
+ }
32
+ /**
33
+ * @export
34
+ */
35
+ export declare const ChatFeatureUsageFeatureEnum: {
36
+ readonly Chat: "chat";
37
+ readonly QuestionImport: "question_import";
38
+ };
39
+ export type ChatFeatureUsageFeatureEnum = typeof ChatFeatureUsageFeatureEnum[keyof typeof ChatFeatureUsageFeatureEnum];
40
+ /**
41
+ * Check if a given object implements the ChatFeatureUsage interface.
42
+ */
43
+ export declare function instanceOfChatFeatureUsage(value: object): value is ChatFeatureUsage;
44
+ export declare function ChatFeatureUsageFromJSON(json: any): ChatFeatureUsage;
45
+ export declare function ChatFeatureUsageFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatFeatureUsage;
46
+ export declare function ChatFeatureUsageToJSON(json: any): ChatFeatureUsage;
47
+ export declare function ChatFeatureUsageToJSONTyped(value?: ChatFeatureUsage | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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 { ChatUsageTotalsFromJSON, ChatUsageTotalsToJSON, } from './ChatUsageTotals';
15
+ /**
16
+ * @export
17
+ */
18
+ export const ChatFeatureUsageFeatureEnum = {
19
+ Chat: 'chat',
20
+ QuestionImport: 'question_import'
21
+ };
22
+ /**
23
+ * Check if a given object implements the ChatFeatureUsage interface.
24
+ */
25
+ export function instanceOfChatFeatureUsage(value) {
26
+ if (!('feature' in value) || value['feature'] === undefined)
27
+ return false;
28
+ if (!('usage' in value) || value['usage'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ export function ChatFeatureUsageFromJSON(json) {
33
+ return ChatFeatureUsageFromJSONTyped(json, false);
34
+ }
35
+ export function ChatFeatureUsageFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'feature': json['feature'],
41
+ 'usage': ChatUsageTotalsFromJSON(json['usage']),
42
+ };
43
+ }
44
+ export function ChatFeatureUsageToJSON(json) {
45
+ return ChatFeatureUsageToJSONTyped(json, false);
46
+ }
47
+ export function ChatFeatureUsageToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'feature': value['feature'],
53
+ 'usage': ChatUsageTotalsToJSON(value['usage']),
54
+ };
55
+ }
@@ -12,6 +12,7 @@
12
12
  import type { ChatDailyUsage } from './ChatDailyUsage';
13
13
  import type { ChatModelUsage } from './ChatModelUsage';
14
14
  import type { ChatUsageTotals } from './ChatUsageTotals';
15
+ import type { ChatFeatureUsage } from './ChatFeatureUsage';
15
16
  /**
16
17
  *
17
18
  * @export
@@ -48,6 +49,12 @@ export interface GetChatUsage {
48
49
  * @memberof GetChatUsage
49
50
  */
50
51
  modelUsage: Array<ChatModelUsage>;
52
+ /**
53
+ *
54
+ * @type {Array<ChatFeatureUsage>}
55
+ * @memberof GetChatUsage
56
+ */
57
+ featureUsage: Array<ChatFeatureUsage>;
51
58
  }
52
59
  /**
53
60
  * Check if a given object implements the GetChatUsage interface.
@@ -14,6 +14,7 @@
14
14
  import { ChatDailyUsageFromJSON, ChatDailyUsageToJSON, } from './ChatDailyUsage';
15
15
  import { ChatModelUsageFromJSON, ChatModelUsageToJSON, } from './ChatModelUsage';
16
16
  import { ChatUsageTotalsFromJSON, ChatUsageTotalsToJSON, } from './ChatUsageTotals';
17
+ import { ChatFeatureUsageFromJSON, ChatFeatureUsageToJSON, } from './ChatFeatureUsage';
17
18
  /**
18
19
  * Check if a given object implements the GetChatUsage interface.
19
20
  */
@@ -28,6 +29,8 @@ export function instanceOfGetChatUsage(value) {
28
29
  return false;
29
30
  if (!('modelUsage' in value) || value['modelUsage'] === undefined)
30
31
  return false;
32
+ if (!('featureUsage' in value) || value['featureUsage'] === undefined)
33
+ return false;
31
34
  return true;
32
35
  }
33
36
  export function GetChatUsageFromJSON(json) {
@@ -43,6 +46,7 @@ export function GetChatUsageFromJSONTyped(json, ignoreDiscriminator) {
43
46
  'totals': ChatUsageTotalsFromJSON(json['totals']),
44
47
  'daily': (json['daily'].map(ChatDailyUsageFromJSON)),
45
48
  'modelUsage': (json['model_usage'].map(ChatModelUsageFromJSON)),
49
+ 'featureUsage': (json['feature_usage'].map(ChatFeatureUsageFromJSON)),
46
50
  };
47
51
  }
48
52
  export function GetChatUsageToJSON(json) {
@@ -58,5 +62,6 @@ export function GetChatUsageToJSONTyped(value, ignoreDiscriminator = false) {
58
62
  'totals': ChatUsageTotalsToJSON(value['totals']),
59
63
  'daily': (value['daily'].map(ChatDailyUsageToJSON)),
60
64
  'model_usage': (value['modelUsage'].map(ChatModelUsageToJSON)),
65
+ 'feature_usage': (value['featureUsage'].map(ChatFeatureUsageToJSON)),
61
66
  };
62
67
  }
@@ -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;