@easyedu/js-lsm-api 1.116.0 → 1.117.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 (86) hide show
  1. package/.openapi-generator/FILES +24 -0
  2. package/README.md +21 -2
  3. package/dist/apis/IntegrationApi.d.ts +125 -0
  4. package/dist/apis/IntegrationApi.js +330 -1
  5. package/dist/esm/apis/IntegrationApi.d.ts +125 -0
  6. package/dist/esm/apis/IntegrationApi.js +329 -0
  7. package/dist/esm/models/CustomWebhookIntegration.d.ts +83 -0
  8. package/dist/esm/models/CustomWebhookIntegration.js +79 -0
  9. package/dist/esm/models/IntegrationEvent.d.ts +98 -0
  10. package/dist/esm/models/IntegrationEvent.js +92 -0
  11. package/dist/esm/models/IntegrationEventCertificate.d.ts +78 -0
  12. package/dist/esm/models/IntegrationEventCertificate.js +76 -0
  13. package/dist/esm/models/IntegrationEventCourse.d.ts +38 -0
  14. package/dist/esm/models/IntegrationEventCourse.js +47 -0
  15. package/dist/esm/models/IntegrationEventData.d.ts +61 -0
  16. package/dist/esm/models/IntegrationEventData.js +64 -0
  17. package/dist/esm/models/IntegrationEventEnrollment.d.ts +71 -0
  18. package/dist/esm/models/IntegrationEventEnrollment.js +71 -0
  19. package/dist/esm/models/IntegrationEventLearner.d.ts +50 -0
  20. package/dist/esm/models/IntegrationEventLearner.js +55 -0
  21. package/dist/esm/models/IntegrationEventPortal.d.ts +44 -0
  22. package/dist/esm/models/IntegrationEventPortal.js +51 -0
  23. package/dist/esm/models/PostCustomWebhookIntegration.d.ts +65 -0
  24. package/dist/esm/models/PostCustomWebhookIntegration.js +65 -0
  25. package/dist/esm/models/PostZapierSubscription.d.ts +53 -0
  26. package/dist/esm/models/PostZapierSubscription.js +57 -0
  27. package/dist/esm/models/PutCustomWebhookIntegration.d.ts +65 -0
  28. package/dist/esm/models/PutCustomWebhookIntegration.js +57 -0
  29. package/dist/esm/models/ZapierSubscription.d.ts +53 -0
  30. package/dist/esm/models/ZapierSubscription.js +59 -0
  31. package/dist/esm/models/index.d.ts +12 -0
  32. package/dist/esm/models/index.js +12 -0
  33. package/dist/models/CustomWebhookIntegration.d.ts +83 -0
  34. package/dist/models/CustomWebhookIntegration.js +87 -0
  35. package/dist/models/IntegrationEvent.d.ts +98 -0
  36. package/dist/models/IntegrationEvent.js +100 -0
  37. package/dist/models/IntegrationEventCertificate.d.ts +78 -0
  38. package/dist/models/IntegrationEventCertificate.js +84 -0
  39. package/dist/models/IntegrationEventCourse.d.ts +38 -0
  40. package/dist/models/IntegrationEventCourse.js +54 -0
  41. package/dist/models/IntegrationEventData.d.ts +61 -0
  42. package/dist/models/IntegrationEventData.js +71 -0
  43. package/dist/models/IntegrationEventEnrollment.d.ts +71 -0
  44. package/dist/models/IntegrationEventEnrollment.js +79 -0
  45. package/dist/models/IntegrationEventLearner.d.ts +50 -0
  46. package/dist/models/IntegrationEventLearner.js +62 -0
  47. package/dist/models/IntegrationEventPortal.d.ts +44 -0
  48. package/dist/models/IntegrationEventPortal.js +58 -0
  49. package/dist/models/PostCustomWebhookIntegration.d.ts +65 -0
  50. package/dist/models/PostCustomWebhookIntegration.js +73 -0
  51. package/dist/models/PostZapierSubscription.d.ts +53 -0
  52. package/dist/models/PostZapierSubscription.js +65 -0
  53. package/dist/models/PutCustomWebhookIntegration.d.ts +65 -0
  54. package/dist/models/PutCustomWebhookIntegration.js +65 -0
  55. package/dist/models/ZapierSubscription.d.ts +53 -0
  56. package/dist/models/ZapierSubscription.js +67 -0
  57. package/dist/models/index.d.ts +12 -0
  58. package/dist/models/index.js +12 -0
  59. package/docs/CustomWebhookIntegration.md +48 -0
  60. package/docs/IntegrationApi.md +494 -0
  61. package/docs/IntegrationEvent.md +49 -0
  62. package/docs/IntegrationEventCertificate.md +46 -0
  63. package/docs/IntegrationEventCourse.md +36 -0
  64. package/docs/IntegrationEventData.md +42 -0
  65. package/docs/IntegrationEventEnrollment.md +44 -0
  66. package/docs/IntegrationEventLearner.md +40 -0
  67. package/docs/IntegrationEventPortal.md +38 -0
  68. package/docs/PostCustomWebhookIntegration.md +42 -0
  69. package/docs/PostZapierSubscription.md +38 -0
  70. package/docs/PutCustomWebhookIntegration.md +42 -0
  71. package/docs/ZapierSubscription.md +38 -0
  72. package/package.json +1 -1
  73. package/src/apis/IntegrationApi.ts +464 -0
  74. package/src/models/CustomWebhookIntegration.ts +141 -0
  75. package/src/models/IntegrationEvent.ts +165 -0
  76. package/src/models/IntegrationEventCertificate.ts +133 -0
  77. package/src/models/IntegrationEventCourse.ts +75 -0
  78. package/src/models/IntegrationEventData.ts +138 -0
  79. package/src/models/IntegrationEventEnrollment.ts +123 -0
  80. package/src/models/IntegrationEventLearner.ts +93 -0
  81. package/src/models/IntegrationEventPortal.ts +84 -0
  82. package/src/models/PostCustomWebhookIntegration.ts +113 -0
  83. package/src/models/PostZapierSubscription.ts +95 -0
  84. package/src/models/PutCustomWebhookIntegration.ts +109 -0
  85. package/src/models/ZapierSubscription.ts +96 -0
  86. package/src/models/index.ts +12 -0
@@ -22,29 +22,73 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.IntegrationApi = void 0;
25
+ exports.GetZapierEventsEventTypeEnum = exports.IntegrationApi = void 0;
26
26
  const runtime = require("../runtime");
27
+ const CustomWebhookIntegration_1 = require("../models/CustomWebhookIntegration");
27
28
  const GetZapierCourses_1 = require("../models/GetZapierCourses");
28
29
  const GetZapierMe_1 = require("../models/GetZapierMe");
29
30
  const GetZapierSetup_1 = require("../models/GetZapierSetup");
30
31
  const GetZapierShopifyCourseMappings_1 = require("../models/GetZapierShopifyCourseMappings");
31
32
  const GetZapierUsers_1 = require("../models/GetZapierUsers");
33
+ const IntegrationEvent_1 = require("../models/IntegrationEvent");
34
+ const PostCustomWebhookIntegration_1 = require("../models/PostCustomWebhookIntegration");
32
35
  const PostZapierEnrollment_1 = require("../models/PostZapierEnrollment");
33
36
  const PostZapierSetup_1 = require("../models/PostZapierSetup");
34
37
  const PostZapierSetupResponse_1 = require("../models/PostZapierSetupResponse");
35
38
  const PostZapierShopifyCourseMapping_1 = require("../models/PostZapierShopifyCourseMapping");
36
39
  const PostZapierShopifyEnrollment_1 = require("../models/PostZapierShopifyEnrollment");
37
40
  const PostZapierShopifyEnrollmentResponse_1 = require("../models/PostZapierShopifyEnrollmentResponse");
41
+ const PostZapierSubscription_1 = require("../models/PostZapierSubscription");
38
42
  const PostZapierUser_1 = require("../models/PostZapierUser");
43
+ const PutCustomWebhookIntegration_1 = require("../models/PutCustomWebhookIntegration");
39
44
  const PutZapierSetup_1 = require("../models/PutZapierSetup");
40
45
  const ZapierEnrollment_1 = require("../models/ZapierEnrollment");
41
46
  const ZapierIntegration_1 = require("../models/ZapierIntegration");
42
47
  const ZapierShopifyCourseMapping_1 = require("../models/ZapierShopifyCourseMapping");
48
+ const ZapierSubscription_1 = require("../models/ZapierSubscription");
43
49
  const ZapierUser_1 = require("../models/ZapierUser");
44
50
  /**
45
51
  *
46
52
  */
47
53
  class IntegrationApi extends runtime.BaseAPI {
54
+ /**
55
+ * Creates request options for deleteCustomWebhookIntegration without sending the request
56
+ */
57
+ deleteCustomWebhookIntegrationRequestOpts(requestParameters) {
58
+ return __awaiter(this, void 0, void 0, function* () {
59
+ if (requestParameters['webhookIntegrationId'] == null) {
60
+ throw new runtime.RequiredError('webhookIntegrationId', 'Required parameter "webhookIntegrationId" was null or undefined when calling deleteCustomWebhookIntegration().');
61
+ }
62
+ const queryParameters = {};
63
+ const headerParameters = {};
64
+ let urlPath = `/integrations/webhooks/{webhookIntegrationId}`;
65
+ urlPath = urlPath.replace('{webhookIntegrationId}', encodeURIComponent(String(requestParameters['webhookIntegrationId'])));
66
+ return {
67
+ path: urlPath,
68
+ method: 'DELETE',
69
+ headers: headerParameters,
70
+ query: queryParameters,
71
+ };
72
+ });
73
+ }
74
+ /**
75
+ * Delete a custom webhook destination
76
+ */
77
+ deleteCustomWebhookIntegrationRaw(requestParameters, initOverrides) {
78
+ return __awaiter(this, void 0, void 0, function* () {
79
+ const requestOptions = yield this.deleteCustomWebhookIntegrationRequestOpts(requestParameters);
80
+ const response = yield this.request(requestOptions, initOverrides);
81
+ return new runtime.VoidApiResponse(response);
82
+ });
83
+ }
84
+ /**
85
+ * Delete a custom webhook destination
86
+ */
87
+ deleteCustomWebhookIntegration(requestParameters, initOverrides) {
88
+ return __awaiter(this, void 0, void 0, function* () {
89
+ yield this.deleteCustomWebhookIntegrationRaw(requestParameters, initOverrides);
90
+ });
91
+ }
48
92
  /**
49
93
  * Creates request options for deleteZapierSetup without sending the request
50
94
  */
@@ -83,6 +127,91 @@ class IntegrationApi extends runtime.BaseAPI {
83
127
  yield this.deleteZapierSetupRaw(requestParameters, initOverrides);
84
128
  });
85
129
  }
130
+ /**
131
+ * Creates request options for deleteZapierSubscription without sending the request
132
+ */
133
+ deleteZapierSubscriptionRequestOpts(requestParameters) {
134
+ return __awaiter(this, void 0, void 0, function* () {
135
+ if (requestParameters['subscriptionId'] == null) {
136
+ throw new runtime.RequiredError('subscriptionId', 'Required parameter "subscriptionId" was null or undefined when calling deleteZapierSubscription().');
137
+ }
138
+ if (requestParameters['xAPIKEY'] == null) {
139
+ throw new runtime.RequiredError('xAPIKEY', 'Required parameter "xAPIKEY" was null or undefined when calling deleteZapierSubscription().');
140
+ }
141
+ if (requestParameters['xPORTALSUBDOMAIN'] == null) {
142
+ throw new runtime.RequiredError('xPORTALSUBDOMAIN', 'Required parameter "xPORTALSUBDOMAIN" was null or undefined when calling deleteZapierSubscription().');
143
+ }
144
+ const queryParameters = {};
145
+ const headerParameters = {};
146
+ if (requestParameters['xAPIKEY'] != null) {
147
+ headerParameters['X-API-KEY'] = String(requestParameters['xAPIKEY']);
148
+ }
149
+ if (requestParameters['xPORTALSUBDOMAIN'] != null) {
150
+ headerParameters['X-PORTAL-SUBDOMAIN'] = String(requestParameters['xPORTALSUBDOMAIN']);
151
+ }
152
+ let urlPath = `/integrations/zapier/subscriptions/{subscriptionId}`;
153
+ urlPath = urlPath.replace('{subscriptionId}', encodeURIComponent(String(requestParameters['subscriptionId'])));
154
+ return {
155
+ path: urlPath,
156
+ method: 'DELETE',
157
+ headers: headerParameters,
158
+ query: queryParameters,
159
+ };
160
+ });
161
+ }
162
+ /**
163
+ * Unsubscribe a Zap from an Edaxu lifecycle event
164
+ */
165
+ deleteZapierSubscriptionRaw(requestParameters, initOverrides) {
166
+ return __awaiter(this, void 0, void 0, function* () {
167
+ const requestOptions = yield this.deleteZapierSubscriptionRequestOpts(requestParameters);
168
+ const response = yield this.request(requestOptions, initOverrides);
169
+ return new runtime.VoidApiResponse(response);
170
+ });
171
+ }
172
+ /**
173
+ * Unsubscribe a Zap from an Edaxu lifecycle event
174
+ */
175
+ deleteZapierSubscription(requestParameters, initOverrides) {
176
+ return __awaiter(this, void 0, void 0, function* () {
177
+ yield this.deleteZapierSubscriptionRaw(requestParameters, initOverrides);
178
+ });
179
+ }
180
+ /**
181
+ * Creates request options for getCustomWebhookIntegrations without sending the request
182
+ */
183
+ getCustomWebhookIntegrationsRequestOpts() {
184
+ return __awaiter(this, void 0, void 0, function* () {
185
+ const queryParameters = {};
186
+ const headerParameters = {};
187
+ let urlPath = `/integrations/webhooks`;
188
+ return {
189
+ path: urlPath,
190
+ method: 'GET',
191
+ headers: headerParameters,
192
+ query: queryParameters,
193
+ };
194
+ });
195
+ }
196
+ /**
197
+ * List custom webhook destinations for the selected portal
198
+ */
199
+ getCustomWebhookIntegrationsRaw(initOverrides) {
200
+ return __awaiter(this, void 0, void 0, function* () {
201
+ const requestOptions = yield this.getCustomWebhookIntegrationsRequestOpts();
202
+ const response = yield this.request(requestOptions, initOverrides);
203
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(CustomWebhookIntegration_1.CustomWebhookIntegrationFromJSON));
204
+ });
205
+ }
206
+ /**
207
+ * List custom webhook destinations for the selected portal
208
+ */
209
+ getCustomWebhookIntegrations(initOverrides) {
210
+ return __awaiter(this, void 0, void 0, function* () {
211
+ const response = yield this.getCustomWebhookIntegrationsRaw(initOverrides);
212
+ return yield response.value();
213
+ });
214
+ }
86
215
  /**
87
216
  * Creates request options for getZapierCourses without sending the request
88
217
  */
@@ -139,6 +268,62 @@ class IntegrationApi extends runtime.BaseAPI {
139
268
  return yield response.value();
140
269
  });
141
270
  }
271
+ /**
272
+ * Creates request options for getZapierEvents without sending the request
273
+ */
274
+ getZapierEventsRequestOpts(requestParameters) {
275
+ return __awaiter(this, void 0, void 0, function* () {
276
+ if (requestParameters['xAPIKEY'] == null) {
277
+ throw new runtime.RequiredError('xAPIKEY', 'Required parameter "xAPIKEY" was null or undefined when calling getZapierEvents().');
278
+ }
279
+ if (requestParameters['xPORTALSUBDOMAIN'] == null) {
280
+ throw new runtime.RequiredError('xPORTALSUBDOMAIN', 'Required parameter "xPORTALSUBDOMAIN" was null or undefined when calling getZapierEvents().');
281
+ }
282
+ if (requestParameters['eventType'] == null) {
283
+ throw new runtime.RequiredError('eventType', 'Required parameter "eventType" was null or undefined when calling getZapierEvents().');
284
+ }
285
+ const queryParameters = {};
286
+ if (requestParameters['eventType'] != null) {
287
+ queryParameters['eventType'] = requestParameters['eventType'];
288
+ }
289
+ if (requestParameters['pageSize'] != null) {
290
+ queryParameters['pageSize'] = requestParameters['pageSize'];
291
+ }
292
+ const headerParameters = {};
293
+ if (requestParameters['xAPIKEY'] != null) {
294
+ headerParameters['X-API-KEY'] = String(requestParameters['xAPIKEY']);
295
+ }
296
+ if (requestParameters['xPORTALSUBDOMAIN'] != null) {
297
+ headerParameters['X-PORTAL-SUBDOMAIN'] = String(requestParameters['xPORTALSUBDOMAIN']);
298
+ }
299
+ let urlPath = `/integrations/zapier/events`;
300
+ return {
301
+ path: urlPath,
302
+ method: 'GET',
303
+ headers: headerParameters,
304
+ query: queryParameters,
305
+ };
306
+ });
307
+ }
308
+ /**
309
+ * List recent lifecycle events for Zapier trigger setup
310
+ */
311
+ getZapierEventsRaw(requestParameters, initOverrides) {
312
+ return __awaiter(this, void 0, void 0, function* () {
313
+ const requestOptions = yield this.getZapierEventsRequestOpts(requestParameters);
314
+ const response = yield this.request(requestOptions, initOverrides);
315
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(IntegrationEvent_1.IntegrationEventFromJSON));
316
+ });
317
+ }
318
+ /**
319
+ * List recent lifecycle events for Zapier trigger setup
320
+ */
321
+ getZapierEvents(requestParameters, initOverrides) {
322
+ return __awaiter(this, void 0, void 0, function* () {
323
+ const response = yield this.getZapierEventsRaw(requestParameters, initOverrides);
324
+ return yield response.value();
325
+ });
326
+ }
142
327
  /**
143
328
  * Creates request options for getZapierMe without sending the request
144
329
  */
@@ -324,6 +509,46 @@ class IntegrationApi extends runtime.BaseAPI {
324
509
  return yield response.value();
325
510
  });
326
511
  }
512
+ /**
513
+ * Creates request options for postCustomWebhookIntegration without sending the request
514
+ */
515
+ postCustomWebhookIntegrationRequestOpts(requestParameters) {
516
+ return __awaiter(this, void 0, void 0, function* () {
517
+ if (requestParameters['postCustomWebhookIntegration'] == null) {
518
+ throw new runtime.RequiredError('postCustomWebhookIntegration', 'Required parameter "postCustomWebhookIntegration" was null or undefined when calling postCustomWebhookIntegration().');
519
+ }
520
+ const queryParameters = {};
521
+ const headerParameters = {};
522
+ headerParameters['Content-Type'] = 'application/json';
523
+ let urlPath = `/integrations/webhooks`;
524
+ return {
525
+ path: urlPath,
526
+ method: 'POST',
527
+ headers: headerParameters,
528
+ query: queryParameters,
529
+ body: (0, PostCustomWebhookIntegration_1.PostCustomWebhookIntegrationToJSON)(requestParameters['postCustomWebhookIntegration']),
530
+ };
531
+ });
532
+ }
533
+ /**
534
+ * Create a custom webhook destination for lifecycle events
535
+ */
536
+ postCustomWebhookIntegrationRaw(requestParameters, initOverrides) {
537
+ return __awaiter(this, void 0, void 0, function* () {
538
+ const requestOptions = yield this.postCustomWebhookIntegrationRequestOpts(requestParameters);
539
+ const response = yield this.request(requestOptions, initOverrides);
540
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, CustomWebhookIntegration_1.CustomWebhookIntegrationFromJSON)(jsonValue));
541
+ });
542
+ }
543
+ /**
544
+ * Create a custom webhook destination for lifecycle events
545
+ */
546
+ postCustomWebhookIntegration(requestParameters, initOverrides) {
547
+ return __awaiter(this, void 0, void 0, function* () {
548
+ const response = yield this.postCustomWebhookIntegrationRaw(requestParameters, initOverrides);
549
+ return yield response.value();
550
+ });
551
+ }
327
552
  /**
328
553
  * Creates request options for postZapierEnrollment without sending the request
329
554
  */
@@ -520,6 +745,58 @@ class IntegrationApi extends runtime.BaseAPI {
520
745
  return yield response.value();
521
746
  });
522
747
  }
748
+ /**
749
+ * Creates request options for postZapierSubscription without sending the request
750
+ */
751
+ postZapierSubscriptionRequestOpts(requestParameters) {
752
+ return __awaiter(this, void 0, void 0, function* () {
753
+ if (requestParameters['xAPIKEY'] == null) {
754
+ throw new runtime.RequiredError('xAPIKEY', 'Required parameter "xAPIKEY" was null or undefined when calling postZapierSubscription().');
755
+ }
756
+ if (requestParameters['xPORTALSUBDOMAIN'] == null) {
757
+ throw new runtime.RequiredError('xPORTALSUBDOMAIN', 'Required parameter "xPORTALSUBDOMAIN" was null or undefined when calling postZapierSubscription().');
758
+ }
759
+ if (requestParameters['postZapierSubscription'] == null) {
760
+ throw new runtime.RequiredError('postZapierSubscription', 'Required parameter "postZapierSubscription" was null or undefined when calling postZapierSubscription().');
761
+ }
762
+ const queryParameters = {};
763
+ const headerParameters = {};
764
+ headerParameters['Content-Type'] = 'application/json';
765
+ if (requestParameters['xAPIKEY'] != null) {
766
+ headerParameters['X-API-KEY'] = String(requestParameters['xAPIKEY']);
767
+ }
768
+ if (requestParameters['xPORTALSUBDOMAIN'] != null) {
769
+ headerParameters['X-PORTAL-SUBDOMAIN'] = String(requestParameters['xPORTALSUBDOMAIN']);
770
+ }
771
+ let urlPath = `/integrations/zapier/subscriptions`;
772
+ return {
773
+ path: urlPath,
774
+ method: 'POST',
775
+ headers: headerParameters,
776
+ query: queryParameters,
777
+ body: (0, PostZapierSubscription_1.PostZapierSubscriptionToJSON)(requestParameters['postZapierSubscription']),
778
+ };
779
+ });
780
+ }
781
+ /**
782
+ * Subscribe a Zap to an Edaxu lifecycle event
783
+ */
784
+ postZapierSubscriptionRaw(requestParameters, initOverrides) {
785
+ return __awaiter(this, void 0, void 0, function* () {
786
+ const requestOptions = yield this.postZapierSubscriptionRequestOpts(requestParameters);
787
+ const response = yield this.request(requestOptions, initOverrides);
788
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, ZapierSubscription_1.ZapierSubscriptionFromJSON)(jsonValue));
789
+ });
790
+ }
791
+ /**
792
+ * Subscribe a Zap to an Edaxu lifecycle event
793
+ */
794
+ postZapierSubscription(requestParameters, initOverrides) {
795
+ return __awaiter(this, void 0, void 0, function* () {
796
+ const response = yield this.postZapierSubscriptionRaw(requestParameters, initOverrides);
797
+ return yield response.value();
798
+ });
799
+ }
523
800
  /**
524
801
  * Creates request options for postZapierUser without sending the request
525
802
  */
@@ -572,6 +849,50 @@ class IntegrationApi extends runtime.BaseAPI {
572
849
  return yield response.value();
573
850
  });
574
851
  }
852
+ /**
853
+ * Creates request options for putCustomWebhookIntegration without sending the request
854
+ */
855
+ putCustomWebhookIntegrationRequestOpts(requestParameters) {
856
+ return __awaiter(this, void 0, void 0, function* () {
857
+ if (requestParameters['webhookIntegrationId'] == null) {
858
+ throw new runtime.RequiredError('webhookIntegrationId', 'Required parameter "webhookIntegrationId" was null or undefined when calling putCustomWebhookIntegration().');
859
+ }
860
+ if (requestParameters['putCustomWebhookIntegration'] == null) {
861
+ throw new runtime.RequiredError('putCustomWebhookIntegration', 'Required parameter "putCustomWebhookIntegration" was null or undefined when calling putCustomWebhookIntegration().');
862
+ }
863
+ const queryParameters = {};
864
+ const headerParameters = {};
865
+ headerParameters['Content-Type'] = 'application/json';
866
+ let urlPath = `/integrations/webhooks/{webhookIntegrationId}`;
867
+ urlPath = urlPath.replace('{webhookIntegrationId}', encodeURIComponent(String(requestParameters['webhookIntegrationId'])));
868
+ return {
869
+ path: urlPath,
870
+ method: 'PUT',
871
+ headers: headerParameters,
872
+ query: queryParameters,
873
+ body: (0, PutCustomWebhookIntegration_1.PutCustomWebhookIntegrationToJSON)(requestParameters['putCustomWebhookIntegration']),
874
+ };
875
+ });
876
+ }
877
+ /**
878
+ * Update a custom webhook destination
879
+ */
880
+ putCustomWebhookIntegrationRaw(requestParameters, initOverrides) {
881
+ return __awaiter(this, void 0, void 0, function* () {
882
+ const requestOptions = yield this.putCustomWebhookIntegrationRequestOpts(requestParameters);
883
+ const response = yield this.request(requestOptions, initOverrides);
884
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, CustomWebhookIntegration_1.CustomWebhookIntegrationFromJSON)(jsonValue));
885
+ });
886
+ }
887
+ /**
888
+ * Update a custom webhook destination
889
+ */
890
+ putCustomWebhookIntegration(requestParameters, initOverrides) {
891
+ return __awaiter(this, void 0, void 0, function* () {
892
+ const response = yield this.putCustomWebhookIntegrationRaw(requestParameters, initOverrides);
893
+ return yield response.value();
894
+ });
895
+ }
575
896
  /**
576
897
  * Creates request options for putZapierSetup without sending the request
577
898
  */
@@ -618,3 +939,11 @@ class IntegrationApi extends runtime.BaseAPI {
618
939
  }
619
940
  }
620
941
  exports.IntegrationApi = IntegrationApi;
942
+ /**
943
+ * @export
944
+ */
945
+ exports.GetZapierEventsEventTypeEnum = {
946
+ ComEdaxuEnrollmentEnrolledV1: 'com.edaxu.enrollment.enrolled.v1',
947
+ ComEdaxuEnrollmentCompletedV1: 'com.edaxu.enrollment.completed.v1',
948
+ ComEdaxuCertificateIssuedV1: 'com.edaxu.certificate.issued.v1'
949
+ };
@@ -10,26 +10,40 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
+ import { type CustomWebhookIntegration } from '../models/CustomWebhookIntegration';
13
14
  import { type GetZapierCourses } from '../models/GetZapierCourses';
14
15
  import { type GetZapierMe } from '../models/GetZapierMe';
15
16
  import { type GetZapierSetup } from '../models/GetZapierSetup';
16
17
  import { type GetZapierShopifyCourseMappings } from '../models/GetZapierShopifyCourseMappings';
17
18
  import { type GetZapierUsers } from '../models/GetZapierUsers';
19
+ import { type IntegrationEvent } from '../models/IntegrationEvent';
20
+ import { type PostCustomWebhookIntegration } from '../models/PostCustomWebhookIntegration';
18
21
  import { type PostZapierEnrollment } from '../models/PostZapierEnrollment';
19
22
  import { type PostZapierSetup } from '../models/PostZapierSetup';
20
23
  import { type PostZapierSetupResponse } from '../models/PostZapierSetupResponse';
21
24
  import { type PostZapierShopifyCourseMapping } from '../models/PostZapierShopifyCourseMapping';
22
25
  import { type PostZapierShopifyEnrollment } from '../models/PostZapierShopifyEnrollment';
23
26
  import { type PostZapierShopifyEnrollmentResponse } from '../models/PostZapierShopifyEnrollmentResponse';
27
+ import { type PostZapierSubscription } from '../models/PostZapierSubscription';
24
28
  import { type PostZapierUser } from '../models/PostZapierUser';
29
+ import { type PutCustomWebhookIntegration } from '../models/PutCustomWebhookIntegration';
25
30
  import { type PutZapierSetup } from '../models/PutZapierSetup';
26
31
  import { type ZapierEnrollment } from '../models/ZapierEnrollment';
27
32
  import { type ZapierIntegration } from '../models/ZapierIntegration';
28
33
  import { type ZapierShopifyCourseMapping } from '../models/ZapierShopifyCourseMapping';
34
+ import { type ZapierSubscription } from '../models/ZapierSubscription';
29
35
  import { type ZapierUser } from '../models/ZapierUser';
36
+ export interface DeleteCustomWebhookIntegrationRequest {
37
+ webhookIntegrationId: string;
38
+ }
30
39
  export interface DeleteZapierSetupRequest {
31
40
  zapierIntegrationId: string;
32
41
  }
42
+ export interface DeleteZapierSubscriptionRequest {
43
+ subscriptionId: string;
44
+ xAPIKEY: string;
45
+ xPORTALSUBDOMAIN: string;
46
+ }
33
47
  export interface GetZapierCoursesRequest {
34
48
  xAPIKEY: string;
35
49
  xPORTALSUBDOMAIN: string;
@@ -37,6 +51,12 @@ export interface GetZapierCoursesRequest {
37
51
  pageSize?: number;
38
52
  search?: string;
39
53
  }
54
+ export interface GetZapierEventsRequest {
55
+ xAPIKEY: string;
56
+ xPORTALSUBDOMAIN: string;
57
+ eventType: GetZapierEventsEventTypeEnum;
58
+ pageSize?: number;
59
+ }
40
60
  export interface GetZapierMeRequest {
41
61
  xAPIKEY: string;
42
62
  xPORTALSUBDOMAIN: string;
@@ -51,6 +71,9 @@ export interface GetZapierUsersRequest {
51
71
  xPORTALSUBDOMAIN: string;
52
72
  email: string;
53
73
  }
74
+ export interface PostCustomWebhookIntegrationRequest {
75
+ postCustomWebhookIntegration: PostCustomWebhookIntegration;
76
+ }
54
77
  export interface PostZapierEnrollmentRequest {
55
78
  xAPIKEY: string;
56
79
  xPORTALSUBDOMAIN: string;
@@ -69,11 +92,20 @@ export interface PostZapierShopifyEnrollmentRequest {
69
92
  xPORTALSUBDOMAIN: string;
70
93
  postZapierShopifyEnrollment: PostZapierShopifyEnrollment;
71
94
  }
95
+ export interface PostZapierSubscriptionRequest {
96
+ xAPIKEY: string;
97
+ xPORTALSUBDOMAIN: string;
98
+ postZapierSubscription: PostZapierSubscription;
99
+ }
72
100
  export interface PostZapierUserRequest {
73
101
  xAPIKEY: string;
74
102
  xPORTALSUBDOMAIN: string;
75
103
  postZapierUser: PostZapierUser;
76
104
  }
105
+ export interface PutCustomWebhookIntegrationRequest {
106
+ webhookIntegrationId: string;
107
+ putCustomWebhookIntegration: PutCustomWebhookIntegration;
108
+ }
77
109
  export interface PutZapierSetupRequest {
78
110
  zapierIntegrationId: string;
79
111
  putZapierSetup: PutZapierSetup;
@@ -82,6 +114,18 @@ export interface PutZapierSetupRequest {
82
114
  *
83
115
  */
84
116
  export declare class IntegrationApi extends runtime.BaseAPI {
117
+ /**
118
+ * Creates request options for deleteCustomWebhookIntegration without sending the request
119
+ */
120
+ deleteCustomWebhookIntegrationRequestOpts(requestParameters: DeleteCustomWebhookIntegrationRequest): Promise<runtime.RequestOpts>;
121
+ /**
122
+ * Delete a custom webhook destination
123
+ */
124
+ deleteCustomWebhookIntegrationRaw(requestParameters: DeleteCustomWebhookIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
125
+ /**
126
+ * Delete a custom webhook destination
127
+ */
128
+ deleteCustomWebhookIntegration(requestParameters: DeleteCustomWebhookIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
85
129
  /**
86
130
  * Creates request options for deleteZapierSetup without sending the request
87
131
  */
@@ -94,6 +138,30 @@ export declare class IntegrationApi extends runtime.BaseAPI {
94
138
  * Revoke a Zapier connection and its API key
95
139
  */
96
140
  deleteZapierSetup(requestParameters: DeleteZapierSetupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
141
+ /**
142
+ * Creates request options for deleteZapierSubscription without sending the request
143
+ */
144
+ deleteZapierSubscriptionRequestOpts(requestParameters: DeleteZapierSubscriptionRequest): Promise<runtime.RequestOpts>;
145
+ /**
146
+ * Unsubscribe a Zap from an Edaxu lifecycle event
147
+ */
148
+ deleteZapierSubscriptionRaw(requestParameters: DeleteZapierSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
149
+ /**
150
+ * Unsubscribe a Zap from an Edaxu lifecycle event
151
+ */
152
+ deleteZapierSubscription(requestParameters: DeleteZapierSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
153
+ /**
154
+ * Creates request options for getCustomWebhookIntegrations without sending the request
155
+ */
156
+ getCustomWebhookIntegrationsRequestOpts(): Promise<runtime.RequestOpts>;
157
+ /**
158
+ * List custom webhook destinations for the selected portal
159
+ */
160
+ getCustomWebhookIntegrationsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<CustomWebhookIntegration>>>;
161
+ /**
162
+ * List custom webhook destinations for the selected portal
163
+ */
164
+ getCustomWebhookIntegrations(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<CustomWebhookIntegration>>;
97
165
  /**
98
166
  * Creates request options for getZapierCourses without sending the request
99
167
  */
@@ -106,6 +174,18 @@ export declare class IntegrationApi extends runtime.BaseAPI {
106
174
  * List published courses available to a Zapier connection
107
175
  */
108
176
  getZapierCourses(requestParameters: GetZapierCoursesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetZapierCourses>;
177
+ /**
178
+ * Creates request options for getZapierEvents without sending the request
179
+ */
180
+ getZapierEventsRequestOpts(requestParameters: GetZapierEventsRequest): Promise<runtime.RequestOpts>;
181
+ /**
182
+ * List recent lifecycle events for Zapier trigger setup
183
+ */
184
+ getZapierEventsRaw(requestParameters: GetZapierEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<IntegrationEvent>>>;
185
+ /**
186
+ * List recent lifecycle events for Zapier trigger setup
187
+ */
188
+ getZapierEvents(requestParameters: GetZapierEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<IntegrationEvent>>;
109
189
  /**
110
190
  * Creates request options for getZapierMe without sending the request
111
191
  */
@@ -154,6 +234,18 @@ export declare class IntegrationApi extends runtime.BaseAPI {
154
234
  * Find a learner by exact email address
155
235
  */
156
236
  getZapierUsers(requestParameters: GetZapierUsersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetZapierUsers>;
237
+ /**
238
+ * Creates request options for postCustomWebhookIntegration without sending the request
239
+ */
240
+ postCustomWebhookIntegrationRequestOpts(requestParameters: PostCustomWebhookIntegrationRequest): Promise<runtime.RequestOpts>;
241
+ /**
242
+ * Create a custom webhook destination for lifecycle events
243
+ */
244
+ postCustomWebhookIntegrationRaw(requestParameters: PostCustomWebhookIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CustomWebhookIntegration>>;
245
+ /**
246
+ * Create a custom webhook destination for lifecycle events
247
+ */
248
+ postCustomWebhookIntegration(requestParameters: PostCustomWebhookIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CustomWebhookIntegration>;
157
249
  /**
158
250
  * Creates request options for postZapierEnrollment without sending the request
159
251
  */
@@ -202,6 +294,18 @@ export declare class IntegrationApi extends runtime.BaseAPI {
202
294
  * Find or invite a Shopify customer and enroll them using the purchased variant mapping
203
295
  */
204
296
  postZapierShopifyEnrollment(requestParameters: PostZapierShopifyEnrollmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PostZapierShopifyEnrollmentResponse>;
297
+ /**
298
+ * Creates request options for postZapierSubscription without sending the request
299
+ */
300
+ postZapierSubscriptionRequestOpts(requestParameters: PostZapierSubscriptionRequest): Promise<runtime.RequestOpts>;
301
+ /**
302
+ * Subscribe a Zap to an Edaxu lifecycle event
303
+ */
304
+ postZapierSubscriptionRaw(requestParameters: PostZapierSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ZapierSubscription>>;
305
+ /**
306
+ * Subscribe a Zap to an Edaxu lifecycle event
307
+ */
308
+ postZapierSubscription(requestParameters: PostZapierSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ZapierSubscription>;
205
309
  /**
206
310
  * Creates request options for postZapierUser without sending the request
207
311
  */
@@ -214,6 +318,18 @@ export declare class IntegrationApi extends runtime.BaseAPI {
214
318
  * Find or invite a learner to the connected portal
215
319
  */
216
320
  postZapierUser(requestParameters: PostZapierUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ZapierUser>;
321
+ /**
322
+ * Creates request options for putCustomWebhookIntegration without sending the request
323
+ */
324
+ putCustomWebhookIntegrationRequestOpts(requestParameters: PutCustomWebhookIntegrationRequest): Promise<runtime.RequestOpts>;
325
+ /**
326
+ * Update a custom webhook destination
327
+ */
328
+ putCustomWebhookIntegrationRaw(requestParameters: PutCustomWebhookIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CustomWebhookIntegration>>;
329
+ /**
330
+ * Update a custom webhook destination
331
+ */
332
+ putCustomWebhookIntegration(requestParameters: PutCustomWebhookIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CustomWebhookIntegration>;
217
333
  /**
218
334
  * Creates request options for putZapierSetup without sending the request
219
335
  */
@@ -227,3 +343,12 @@ export declare class IntegrationApi extends runtime.BaseAPI {
227
343
  */
228
344
  putZapierSetup(requestParameters: PutZapierSetupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ZapierIntegration>;
229
345
  }
346
+ /**
347
+ * @export
348
+ */
349
+ export declare const GetZapierEventsEventTypeEnum: {
350
+ readonly ComEdaxuEnrollmentEnrolledV1: "com.edaxu.enrollment.enrolled.v1";
351
+ readonly ComEdaxuEnrollmentCompletedV1: "com.edaxu.enrollment.completed.v1";
352
+ readonly ComEdaxuCertificateIssuedV1: "com.edaxu.certificate.issued.v1";
353
+ };
354
+ export type GetZapierEventsEventTypeEnum = typeof GetZapierEventsEventTypeEnum[keyof typeof GetZapierEventsEventTypeEnum];