@redhat-cloud-services/notifications-client 2.5.6 → 3.1.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 (187) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/DrawerResourceV1GetDrawerEntries/index.d.ts +3 -1
  3. package/dist/DrawerResourceV1GetDrawerEntries/index.d.ts.map +1 -1
  4. package/dist/DrawerResourceV1GetDrawerEntries/index.js.map +1 -1
  5. package/dist/DrawerResourceV1UpdateNotificationReadStatus/index.d.ts +2 -1
  6. package/dist/DrawerResourceV1UpdateNotificationReadStatus/index.d.ts.map +1 -1
  7. package/dist/DrawerResourceV1UpdateNotificationReadStatus/index.js.map +1 -1
  8. package/dist/EventResourceV1GetEvents/index.d.ts +3 -2
  9. package/dist/EventResourceV1GetEvents/index.d.ts.map +1 -1
  10. package/dist/EventResourceV1GetEvents/index.js.map +1 -1
  11. package/dist/NotificationResourceV1AppendBehaviorGroupToEventType/index.d.ts +2 -1
  12. package/dist/NotificationResourceV1AppendBehaviorGroupToEventType/index.d.ts.map +1 -1
  13. package/dist/NotificationResourceV1AppendBehaviorGroupToEventType/index.js.map +1 -1
  14. package/dist/NotificationResourceV1CreateBehaviorGroup/index.d.ts +3 -2
  15. package/dist/NotificationResourceV1CreateBehaviorGroup/index.d.ts.map +1 -1
  16. package/dist/NotificationResourceV1CreateBehaviorGroup/index.js.map +1 -1
  17. package/dist/NotificationResourceV1DeleteBehaviorGroup/index.d.ts +2 -1
  18. package/dist/NotificationResourceV1DeleteBehaviorGroup/index.d.ts.map +1 -1
  19. package/dist/NotificationResourceV1DeleteBehaviorGroup/index.js.map +1 -1
  20. package/dist/NotificationResourceV1DeleteBehaviorGroupFromEventType/index.d.ts +2 -1
  21. package/dist/NotificationResourceV1DeleteBehaviorGroupFromEventType/index.d.ts.map +1 -1
  22. package/dist/NotificationResourceV1DeleteBehaviorGroupFromEventType/index.js.map +1 -1
  23. package/dist/NotificationResourceV1FindBehaviorGroupsByBundleId/index.d.ts +3 -1
  24. package/dist/NotificationResourceV1FindBehaviorGroupsByBundleId/index.d.ts.map +1 -1
  25. package/dist/NotificationResourceV1FindBehaviorGroupsByBundleId/index.js.map +1 -1
  26. package/dist/NotificationResourceV1GetApplicationByNameAndBundleName/index.d.ts +3 -1
  27. package/dist/NotificationResourceV1GetApplicationByNameAndBundleName/index.d.ts.map +1 -1
  28. package/dist/NotificationResourceV1GetApplicationByNameAndBundleName/index.js.map +1 -1
  29. package/dist/NotificationResourceV1GetApplicationsFacets/index.d.ts +3 -1
  30. package/dist/NotificationResourceV1GetApplicationsFacets/index.d.ts.map +1 -1
  31. package/dist/NotificationResourceV1GetApplicationsFacets/index.js.map +1 -1
  32. package/dist/NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpoint/index.d.ts +3 -1
  33. package/dist/NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpoint/index.d.ts.map +1 -1
  34. package/dist/NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpoint/index.js.map +1 -1
  35. package/dist/NotificationResourceV1GetBundleByName/index.d.ts +3 -1
  36. package/dist/NotificationResourceV1GetBundleByName/index.d.ts.map +1 -1
  37. package/dist/NotificationResourceV1GetBundleByName/index.js.map +1 -1
  38. package/dist/NotificationResourceV1GetBundleFacets/index.d.ts +3 -1
  39. package/dist/NotificationResourceV1GetBundleFacets/index.d.ts.map +1 -1
  40. package/dist/NotificationResourceV1GetBundleFacets/index.js.map +1 -1
  41. package/dist/NotificationResourceV1GetEventTypes/index.d.ts +3 -1
  42. package/dist/NotificationResourceV1GetEventTypes/index.d.ts.map +1 -1
  43. package/dist/NotificationResourceV1GetEventTypes/index.js.map +1 -1
  44. package/dist/NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroup/index.d.ts +3 -1
  45. package/dist/NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroup/index.d.ts.map +1 -1
  46. package/dist/NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroup/index.js.map +1 -1
  47. package/dist/NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationName/index.d.ts +3 -1
  48. package/dist/NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationName/index.d.ts.map +1 -1
  49. package/dist/NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationName/index.js.map +1 -1
  50. package/dist/NotificationResourceV1GetLinkedBehaviorGroups/index.d.ts +3 -1
  51. package/dist/NotificationResourceV1GetLinkedBehaviorGroups/index.d.ts.map +1 -1
  52. package/dist/NotificationResourceV1GetLinkedBehaviorGroups/index.js.map +1 -1
  53. package/dist/NotificationResourceV1UpdateBehaviorGroup/index.d.ts +2 -1
  54. package/dist/NotificationResourceV1UpdateBehaviorGroup/index.d.ts.map +1 -1
  55. package/dist/NotificationResourceV1UpdateBehaviorGroup/index.js.map +1 -1
  56. package/dist/NotificationResourceV1UpdateBehaviorGroupActions/index.d.ts +2 -1
  57. package/dist/NotificationResourceV1UpdateBehaviorGroupActions/index.d.ts.map +1 -1
  58. package/dist/NotificationResourceV1UpdateBehaviorGroupActions/index.js.map +1 -1
  59. package/dist/NotificationResourceV1UpdateEventTypeBehaviors/index.d.ts +2 -1
  60. package/dist/NotificationResourceV1UpdateEventTypeBehaviors/index.d.ts.map +1 -1
  61. package/dist/NotificationResourceV1UpdateEventTypeBehaviors/index.js.map +1 -1
  62. package/dist/NotificationResourceV1UpdateEventTypeEndpoints/index.d.ts +2 -1
  63. package/dist/NotificationResourceV1UpdateEventTypeEndpoints/index.d.ts.map +1 -1
  64. package/dist/NotificationResourceV1UpdateEventTypeEndpoints/index.js.map +1 -1
  65. package/dist/OrgConfigResourceV1GetDailyDigestTimePreference/index.d.ts +2 -1
  66. package/dist/OrgConfigResourceV1GetDailyDigestTimePreference/index.d.ts.map +1 -1
  67. package/dist/OrgConfigResourceV1GetDailyDigestTimePreference/index.js.map +1 -1
  68. package/dist/OrgConfigResourceV1SaveDailyDigestTimePreference/index.d.ts +2 -1
  69. package/dist/OrgConfigResourceV1SaveDailyDigestTimePreference/index.d.ts.map +1 -1
  70. package/dist/OrgConfigResourceV1SaveDailyDigestTimePreference/index.js.map +1 -1
  71. package/dist/api.d.ts +53 -2383
  72. package/dist/api.d.ts.map +1 -1
  73. package/dist/api.js +33 -3124
  74. package/dist/api.js.map +1 -1
  75. package/dist/index.d.ts +23 -24
  76. package/dist/index.d.ts.map +1 -1
  77. package/dist/index.js +0 -26
  78. package/dist/index.js.map +1 -1
  79. package/dist/v2/EventResourceV2GetEvents/index.d.ts +113 -0
  80. package/dist/v2/EventResourceV2GetEvents/index.d.ts.map +1 -0
  81. package/dist/v2/EventResourceV2GetEvents/index.js +98 -0
  82. package/dist/v2/EventResourceV2GetEvents/index.js.map +1 -0
  83. package/dist/v2/NotificationResourceV2AppendBehaviorGroupToEventType/index.d.ts +28 -0
  84. package/dist/v2/NotificationResourceV2AppendBehaviorGroupToEventType/index.d.ts.map +1 -0
  85. package/dist/v2/NotificationResourceV2AppendBehaviorGroupToEventType/index.js +48 -0
  86. package/dist/v2/NotificationResourceV2AppendBehaviorGroupToEventType/index.js.map +1 -0
  87. package/dist/v2/NotificationResourceV2CreateBehaviorGroup/index.d.ts +23 -0
  88. package/dist/v2/NotificationResourceV2CreateBehaviorGroup/index.d.ts.map +1 -0
  89. package/dist/v2/NotificationResourceV2CreateBehaviorGroup/index.js +48 -0
  90. package/dist/v2/NotificationResourceV2CreateBehaviorGroup/index.js.map +1 -0
  91. package/dist/v2/NotificationResourceV2DeleteBehaviorGroup/index.d.ts +22 -0
  92. package/dist/v2/NotificationResourceV2DeleteBehaviorGroup/index.d.ts.map +1 -0
  93. package/dist/v2/NotificationResourceV2DeleteBehaviorGroup/index.js +47 -0
  94. package/dist/v2/NotificationResourceV2DeleteBehaviorGroup/index.js.map +1 -0
  95. package/dist/v2/NotificationResourceV2DeleteBehaviorGroupFromEventType/index.d.ts +28 -0
  96. package/dist/v2/NotificationResourceV2DeleteBehaviorGroupFromEventType/index.d.ts.map +1 -0
  97. package/dist/v2/NotificationResourceV2DeleteBehaviorGroupFromEventType/index.js +48 -0
  98. package/dist/v2/NotificationResourceV2DeleteBehaviorGroupFromEventType/index.js.map +1 -0
  99. package/dist/v2/NotificationResourceV2FindBehaviorGroupsByBundleId/index.d.ts +23 -0
  100. package/dist/v2/NotificationResourceV2FindBehaviorGroupsByBundleId/index.d.ts.map +1 -0
  101. package/dist/v2/NotificationResourceV2FindBehaviorGroupsByBundleId/index.js +47 -0
  102. package/dist/v2/NotificationResourceV2FindBehaviorGroupsByBundleId/index.js.map +1 -0
  103. package/dist/v2/NotificationResourceV2GetApplicationByNameAndBundleName/index.d.ts +29 -0
  104. package/dist/v2/NotificationResourceV2GetApplicationByNameAndBundleName/index.d.ts.map +1 -0
  105. package/dist/v2/NotificationResourceV2GetApplicationByNameAndBundleName/index.js +48 -0
  106. package/dist/v2/NotificationResourceV2GetApplicationByNameAndBundleName/index.js.map +1 -0
  107. package/dist/v2/NotificationResourceV2GetApplicationsFacets/index.d.ts +23 -0
  108. package/dist/v2/NotificationResourceV2GetApplicationsFacets/index.d.ts.map +1 -0
  109. package/dist/v2/NotificationResourceV2GetApplicationsFacets/index.js +49 -0
  110. package/dist/v2/NotificationResourceV2GetApplicationsFacets/index.js.map +1 -0
  111. package/dist/v2/NotificationResourceV2GetBehaviorGroupsAffectedByRemovalOfEndpoint/index.d.ts +23 -0
  112. package/dist/v2/NotificationResourceV2GetBehaviorGroupsAffectedByRemovalOfEndpoint/index.d.ts.map +1 -0
  113. package/dist/v2/NotificationResourceV2GetBehaviorGroupsAffectedByRemovalOfEndpoint/index.js +47 -0
  114. package/dist/v2/NotificationResourceV2GetBehaviorGroupsAffectedByRemovalOfEndpoint/index.js.map +1 -0
  115. package/dist/v2/NotificationResourceV2GetBundleByName/index.d.ts +23 -0
  116. package/dist/v2/NotificationResourceV2GetBundleByName/index.d.ts.map +1 -0
  117. package/dist/v2/NotificationResourceV2GetBundleByName/index.js +47 -0
  118. package/dist/v2/NotificationResourceV2GetBundleByName/index.js.map +1 -0
  119. package/dist/v2/NotificationResourceV2GetBundleFacets/index.d.ts +23 -0
  120. package/dist/v2/NotificationResourceV2GetBundleFacets/index.d.ts.map +1 -0
  121. package/dist/v2/NotificationResourceV2GetBundleFacets/index.js +49 -0
  122. package/dist/v2/NotificationResourceV2GetBundleFacets/index.js.map +1 -0
  123. package/dist/v2/NotificationResourceV2GetEventTypes/index.d.ts +71 -0
  124. package/dist/v2/NotificationResourceV2GetEventTypes/index.d.ts.map +1 -0
  125. package/dist/v2/NotificationResourceV2GetEventTypes/index.js +73 -0
  126. package/dist/v2/NotificationResourceV2GetEventTypes/index.js.map +1 -0
  127. package/dist/v2/NotificationResourceV2GetEventTypesAffectedByRemovalOfBehaviorGroup/index.d.ts +23 -0
  128. package/dist/v2/NotificationResourceV2GetEventTypesAffectedByRemovalOfBehaviorGroup/index.d.ts.map +1 -0
  129. package/dist/v2/NotificationResourceV2GetEventTypesAffectedByRemovalOfBehaviorGroup/index.js +47 -0
  130. package/dist/v2/NotificationResourceV2GetEventTypesAffectedByRemovalOfBehaviorGroup/index.js.map +1 -0
  131. package/dist/v2/NotificationResourceV2GetEventTypesByNameAndBundleAndApplicationName/index.d.ts +35 -0
  132. package/dist/v2/NotificationResourceV2GetEventTypesByNameAndBundleAndApplicationName/index.d.ts.map +1 -0
  133. package/dist/v2/NotificationResourceV2GetEventTypesByNameAndBundleAndApplicationName/index.js +49 -0
  134. package/dist/v2/NotificationResourceV2GetEventTypesByNameAndBundleAndApplicationName/index.js.map +1 -0
  135. package/dist/v2/NotificationResourceV2GetLinkedBehaviorGroups/index.d.ts +53 -0
  136. package/dist/v2/NotificationResourceV2GetLinkedBehaviorGroups/index.d.ts.map +1 -0
  137. package/dist/v2/NotificationResourceV2GetLinkedBehaviorGroups/index.js +62 -0
  138. package/dist/v2/NotificationResourceV2GetLinkedBehaviorGroups/index.js.map +1 -0
  139. package/dist/v2/NotificationResourceV2UpdateBehaviorGroup/index.d.ts +29 -0
  140. package/dist/v2/NotificationResourceV2UpdateBehaviorGroup/index.d.ts.map +1 -0
  141. package/dist/v2/NotificationResourceV2UpdateBehaviorGroup/index.js +49 -0
  142. package/dist/v2/NotificationResourceV2UpdateBehaviorGroup/index.js.map +1 -0
  143. package/dist/v2/NotificationResourceV2UpdateBehaviorGroupActions/index.d.ts +28 -0
  144. package/dist/v2/NotificationResourceV2UpdateBehaviorGroupActions/index.d.ts.map +1 -0
  145. package/dist/v2/NotificationResourceV2UpdateBehaviorGroupActions/index.js +49 -0
  146. package/dist/v2/NotificationResourceV2UpdateBehaviorGroupActions/index.js.map +1 -0
  147. package/dist/v2/NotificationResourceV2UpdateEventTypeBehaviors/index.d.ts +28 -0
  148. package/dist/v2/NotificationResourceV2UpdateEventTypeBehaviors/index.d.ts.map +1 -0
  149. package/dist/v2/NotificationResourceV2UpdateEventTypeBehaviors/index.js +49 -0
  150. package/dist/v2/NotificationResourceV2UpdateEventTypeBehaviors/index.js.map +1 -0
  151. package/dist/v2/NotificationResourceV2UpdateEventTypeEndpoints/index.d.ts +28 -0
  152. package/dist/v2/NotificationResourceV2UpdateEventTypeEndpoints/index.d.ts.map +1 -0
  153. package/dist/v2/NotificationResourceV2UpdateEventTypeEndpoints/index.js +49 -0
  154. package/dist/v2/NotificationResourceV2UpdateEventTypeEndpoints/index.js.map +1 -0
  155. package/dist/v2/OrgConfigResourceV2GetDailyDigestTimePreference/index.d.ts +16 -0
  156. package/dist/v2/OrgConfigResourceV2GetDailyDigestTimePreference/index.d.ts.map +1 -0
  157. package/dist/v2/OrgConfigResourceV2GetDailyDigestTimePreference/index.js +46 -0
  158. package/dist/v2/OrgConfigResourceV2GetDailyDigestTimePreference/index.js.map +1 -0
  159. package/dist/v2/OrgConfigResourceV2SaveDailyDigestTimePreference/index.d.ts +22 -0
  160. package/dist/v2/OrgConfigResourceV2SaveDailyDigestTimePreference/index.d.ts.map +1 -0
  161. package/dist/v2/OrgConfigResourceV2SaveDailyDigestTimePreference/index.js +48 -0
  162. package/dist/v2/OrgConfigResourceV2SaveDailyDigestTimePreference/index.js.map +1 -0
  163. package/dist/v2/api.d.ts +50 -0
  164. package/dist/v2/api.d.ts.map +1 -0
  165. package/dist/v2/api.js +34 -0
  166. package/dist/v2/api.js.map +1 -0
  167. package/dist/v2/index.d.ts +22 -0
  168. package/dist/v2/index.d.ts.map +1 -0
  169. package/dist/v2/index.js +46 -0
  170. package/dist/v2/index.js.map +1 -0
  171. package/dist/v2/types/index.d.ts +760 -0
  172. package/dist/v2/types/index.d.ts.map +1 -0
  173. package/dist/v2/types/index.js +42 -0
  174. package/dist/v2/types/index.js.map +1 -0
  175. package/package.json +2 -2
  176. package/dist/base.d.ts +0 -55
  177. package/dist/base.d.ts.map +0 -1
  178. package/dist/base.js +0 -67
  179. package/dist/base.js.map +0 -1
  180. package/dist/common.d.ts +0 -66
  181. package/dist/common.d.ts.map +0 -1
  182. package/dist/common.js +0 -207
  183. package/dist/common.js.map +0 -1
  184. package/dist/configuration.d.ts +0 -84
  185. package/dist/configuration.d.ts.map +0 -1
  186. package/dist/configuration.js +0 -45
  187. package/dist/configuration.js.map +0 -1
package/dist/api.js CHANGED
@@ -1,3127 +1,36 @@
1
1
  "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Notifications
6
- * The API for Notifications provides endpoints that you can use to create and manage event notifications between third-party applications and the Red Hat Hybrid Cloud Console.
7
- *
8
- * The version of the OpenAPI document: v1.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
2
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.NotificationResourceV1GetBundleByNameApiFactory = exports.NotificationResourceV1GetBundleByNameApiFp = exports.NotificationResourceV1GetBundleByNameApiAxiosParamCreator = exports.NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApi = exports.NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApiFactory = exports.NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApiFp = exports.NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApiAxiosParamCreator = exports.NotificationResourceV1GetApplicationsFacetsApi = exports.NotificationResourceV1GetApplicationsFacetsApiFactory = exports.NotificationResourceV1GetApplicationsFacetsApiFp = exports.NotificationResourceV1GetApplicationsFacetsApiAxiosParamCreator = exports.NotificationResourceV1GetApplicationByNameAndBundleNameApi = exports.NotificationResourceV1GetApplicationByNameAndBundleNameApiFactory = exports.NotificationResourceV1GetApplicationByNameAndBundleNameApiFp = exports.NotificationResourceV1GetApplicationByNameAndBundleNameApiAxiosParamCreator = exports.NotificationResourceV1FindBehaviorGroupsByBundleIdApi = exports.NotificationResourceV1FindBehaviorGroupsByBundleIdApiFactory = exports.NotificationResourceV1FindBehaviorGroupsByBundleIdApiFp = exports.NotificationResourceV1FindBehaviorGroupsByBundleIdApiAxiosParamCreator = exports.NotificationResourceV1DeleteBehaviorGroupFromEventTypeApi = exports.NotificationResourceV1DeleteBehaviorGroupFromEventTypeApiFactory = exports.NotificationResourceV1DeleteBehaviorGroupFromEventTypeApiFp = exports.NotificationResourceV1DeleteBehaviorGroupFromEventTypeApiAxiosParamCreator = exports.NotificationResourceV1DeleteBehaviorGroupApi = exports.NotificationResourceV1DeleteBehaviorGroupApiFactory = exports.NotificationResourceV1DeleteBehaviorGroupApiFp = exports.NotificationResourceV1DeleteBehaviorGroupApiAxiosParamCreator = exports.NotificationResourceV1CreateBehaviorGroupApi = exports.NotificationResourceV1CreateBehaviorGroupApiFactory = exports.NotificationResourceV1CreateBehaviorGroupApiFp = exports.NotificationResourceV1CreateBehaviorGroupApiAxiosParamCreator = exports.NotificationResourceV1AppendBehaviorGroupToEventTypeApi = exports.NotificationResourceV1AppendBehaviorGroupToEventTypeApiFactory = exports.NotificationResourceV1AppendBehaviorGroupToEventTypeApiFp = exports.NotificationResourceV1AppendBehaviorGroupToEventTypeApiAxiosParamCreator = exports.EventResourceV1GetEventsApi = exports.EventResourceV1GetEventsApiFactory = exports.EventResourceV1GetEventsApiFp = exports.EventResourceV1GetEventsApiAxiosParamCreator = exports.DrawerResourceV1UpdateNotificationReadStatusApi = exports.DrawerResourceV1UpdateNotificationReadStatusApiFactory = exports.DrawerResourceV1UpdateNotificationReadStatusApiFp = exports.DrawerResourceV1UpdateNotificationReadStatusApiAxiosParamCreator = exports.DrawerResourceV1GetDrawerEntriesApi = exports.DrawerResourceV1GetDrawerEntriesApiFactory = exports.DrawerResourceV1GetDrawerEntriesApiFp = exports.DrawerResourceV1GetDrawerEntriesApiAxiosParamCreator = exports.EventLogEntryActionStatus = exports.EndpointType = exports.EndpointStatus = void 0;
17
- exports.OrgConfigResourceV1SaveDailyDigestTimePreferenceApi = exports.OrgConfigResourceV1SaveDailyDigestTimePreferenceApiFactory = exports.OrgConfigResourceV1SaveDailyDigestTimePreferenceApiFp = exports.OrgConfigResourceV1SaveDailyDigestTimePreferenceApiAxiosParamCreator = exports.OrgConfigResourceV1GetDailyDigestTimePreferenceApi = exports.OrgConfigResourceV1GetDailyDigestTimePreferenceApiFactory = exports.OrgConfigResourceV1GetDailyDigestTimePreferenceApiFp = exports.OrgConfigResourceV1GetDailyDigestTimePreferenceApiAxiosParamCreator = exports.NotificationResourceV1UpdateEventTypeEndpointsApi = exports.NotificationResourceV1UpdateEventTypeEndpointsApiFactory = exports.NotificationResourceV1UpdateEventTypeEndpointsApiFp = exports.NotificationResourceV1UpdateEventTypeEndpointsApiAxiosParamCreator = exports.NotificationResourceV1UpdateEventTypeBehaviorsApi = exports.NotificationResourceV1UpdateEventTypeBehaviorsApiFactory = exports.NotificationResourceV1UpdateEventTypeBehaviorsApiFp = exports.NotificationResourceV1UpdateEventTypeBehaviorsApiAxiosParamCreator = exports.NotificationResourceV1UpdateBehaviorGroupActionsApi = exports.NotificationResourceV1UpdateBehaviorGroupActionsApiFactory = exports.NotificationResourceV1UpdateBehaviorGroupActionsApiFp = exports.NotificationResourceV1UpdateBehaviorGroupActionsApiAxiosParamCreator = exports.NotificationResourceV1UpdateBehaviorGroupApi = exports.NotificationResourceV1UpdateBehaviorGroupApiFactory = exports.NotificationResourceV1UpdateBehaviorGroupApiFp = exports.NotificationResourceV1UpdateBehaviorGroupApiAxiosParamCreator = exports.NotificationResourceV1GetLinkedBehaviorGroupsApi = exports.NotificationResourceV1GetLinkedBehaviorGroupsApiFactory = exports.NotificationResourceV1GetLinkedBehaviorGroupsApiFp = exports.NotificationResourceV1GetLinkedBehaviorGroupsApiAxiosParamCreator = exports.NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApi = exports.NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApiFactory = exports.NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApiFp = exports.NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApiAxiosParamCreator = exports.NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApi = exports.NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApiFactory = exports.NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApiFp = exports.NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApiAxiosParamCreator = exports.NotificationResourceV1GetEventTypesApi = exports.NotificationResourceV1GetEventTypesApiFactory = exports.NotificationResourceV1GetEventTypesApiFp = exports.NotificationResourceV1GetEventTypesApiAxiosParamCreator = exports.NotificationResourceV1GetBundleFacetsApi = exports.NotificationResourceV1GetBundleFacetsApiFactory = exports.NotificationResourceV1GetBundleFacetsApiFp = exports.NotificationResourceV1GetBundleFacetsApiAxiosParamCreator = exports.NotificationResourceV1GetBundleByNameApi = void 0;
18
- var tslib_1 = require("tslib");
19
- var axios_1 = require("axios");
20
- // Some imports not used depending on template conditions
21
- // @ts-ignore
22
- var common_1 = require("./common");
23
- // @ts-ignore
24
- var base_1 = require("./base");
25
- /**
26
- *
27
- * @export
28
- * @enum {string}
29
- */
30
- exports.EndpointStatus = {
31
- Ready: 'READY',
32
- Unknown: 'UNKNOWN',
33
- New: 'NEW',
34
- Provisioning: 'PROVISIONING',
35
- Deleting: 'DELETING',
36
- Failed: 'FAILED'
37
- };
38
- /**
39
- *
40
- * @export
41
- * @enum {string}
42
- */
43
- exports.EndpointType = {
44
- Ansible: 'ansible',
45
- Camel: 'camel',
46
- Drawer: 'drawer',
47
- EmailSubscription: 'email_subscription',
48
- Webhook: 'webhook',
49
- Pagerduty: 'pagerduty'
50
- };
51
- /**
52
- *
53
- * @export
54
- * @enum {string}
55
- */
56
- exports.EventLogEntryActionStatus = {
57
- Sent: 'SENT',
58
- Success: 'SUCCESS',
59
- Processing: 'PROCESSING',
60
- Failed: 'FAILED',
61
- Unknown: 'UNKNOWN'
62
- };
63
- /**
64
- * DrawerResourceV1GetDrawerEntriesApi - axios parameter creator
65
- * @export
66
- */
67
- var DrawerResourceV1GetDrawerEntriesApiAxiosParamCreator = function (configuration) {
68
- var _this = this;
69
- return {
70
- /**
71
- * Allowed `sort_by` fields are `bundleIds`, `applicationIds`, `eventTypeIds`, `startTime`, `endTime` and `read`. The ordering can be optionally specified by appending `:asc` or `:desc` to the field, e.g. `bundle:desc`. Defaults to `desc` for the `created` field and to `asc` for all other fields.
72
- * @summary Retrieve drawer notifications entries.
73
- * @param {Set<string>} [appIds]
74
- * @param {Set<string>} [bundleIds]
75
- * @param {string} [endDate]
76
- * @param {Set<string>} [eventTypeIds]
77
- * @param {number} [limit]
78
- * @param {number} [offset]
79
- * @param {number} [pageNumber]
80
- * @param {boolean} [readStatus]
81
- * @param {string} [sortBy]
82
- * @param {string} [sortBy2]
83
- * @param {string} [startDate]
84
- * @param {*} [options] Override http request option.
85
- * @throws {RequiredError}
86
- */
87
- drawerResourceV1GetDrawerEntries: function (appIds, bundleIds, endDate, eventTypeIds, limit, offset, pageNumber, readStatus, sortBy, sortBy2, startDate, options) {
88
- if (options === void 0) { options = {}; }
89
- return tslib_1.__awaiter(_this, void 0, void 0, function () {
90
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
91
- return tslib_1.__generator(this, function (_a) {
92
- localVarPath = "/notifications/drawer";
93
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
94
- if (configuration) {
95
- baseOptions = configuration.baseOptions;
96
- }
97
- localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'GET' }, baseOptions), options);
98
- localVarHeaderParameter = {};
99
- localVarQueryParameter = {};
100
- if (appIds) {
101
- localVarQueryParameter['appIds'] = Array.from(appIds);
102
- }
103
- if (bundleIds) {
104
- localVarQueryParameter['bundleIds'] = Array.from(bundleIds);
105
- }
106
- if (endDate !== undefined) {
107
- localVarQueryParameter['endDate'] = (endDate instanceof Date) ?
108
- endDate.toISOString() :
109
- endDate;
110
- }
111
- if (eventTypeIds) {
112
- localVarQueryParameter['eventTypeIds'] = Array.from(eventTypeIds);
113
- }
114
- if (limit !== undefined) {
115
- localVarQueryParameter['limit'] = limit;
116
- }
117
- if (offset !== undefined) {
118
- localVarQueryParameter['offset'] = offset;
119
- }
120
- if (pageNumber !== undefined) {
121
- localVarQueryParameter['pageNumber'] = pageNumber;
122
- }
123
- if (readStatus !== undefined) {
124
- localVarQueryParameter['readStatus'] = readStatus;
125
- }
126
- if (sortBy !== undefined) {
127
- localVarQueryParameter['sortBy'] = sortBy;
128
- }
129
- if (sortBy2 !== undefined) {
130
- localVarQueryParameter['sort_by'] = sortBy2;
131
- }
132
- if (startDate !== undefined) {
133
- localVarQueryParameter['startDate'] = (startDate instanceof Date) ?
134
- startDate.toISOString() :
135
- startDate;
136
- }
137
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
138
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
139
- localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
140
- return [2 /*return*/, {
141
- url: (0, common_1.toPathString)(localVarUrlObj),
142
- options: localVarRequestOptions,
143
- }];
144
- });
145
- });
146
- },
147
- };
148
- };
149
- exports.DrawerResourceV1GetDrawerEntriesApiAxiosParamCreator = DrawerResourceV1GetDrawerEntriesApiAxiosParamCreator;
150
- /**
151
- * DrawerResourceV1GetDrawerEntriesApi - functional programming interface
152
- * @export
153
- */
154
- var DrawerResourceV1GetDrawerEntriesApiFp = function (configuration) {
155
- var localVarAxiosParamCreator = (0, exports.DrawerResourceV1GetDrawerEntriesApiAxiosParamCreator)(configuration);
156
- return {
157
- /**
158
- * Allowed `sort_by` fields are `bundleIds`, `applicationIds`, `eventTypeIds`, `startTime`, `endTime` and `read`. The ordering can be optionally specified by appending `:asc` or `:desc` to the field, e.g. `bundle:desc`. Defaults to `desc` for the `created` field and to `asc` for all other fields.
159
- * @summary Retrieve drawer notifications entries.
160
- * @param {Set<string>} [appIds]
161
- * @param {Set<string>} [bundleIds]
162
- * @param {string} [endDate]
163
- * @param {Set<string>} [eventTypeIds]
164
- * @param {number} [limit]
165
- * @param {number} [offset]
166
- * @param {number} [pageNumber]
167
- * @param {boolean} [readStatus]
168
- * @param {string} [sortBy]
169
- * @param {string} [sortBy2]
170
- * @param {string} [startDate]
171
- * @param {*} [options] Override http request option.
172
- * @throws {RequiredError}
173
- */
174
- drawerResourceV1GetDrawerEntries: function (appIds, bundleIds, endDate, eventTypeIds, limit, offset, pageNumber, readStatus, sortBy, sortBy2, startDate, options) {
175
- return tslib_1.__awaiter(this, void 0, void 0, function () {
176
- var localVarAxiosArgs;
177
- return tslib_1.__generator(this, function (_a) {
178
- switch (_a.label) {
179
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.drawerResourceV1GetDrawerEntries(appIds, bundleIds, endDate, eventTypeIds, limit, offset, pageNumber, readStatus, sortBy, sortBy2, startDate, options)];
180
- case 1:
181
- localVarAxiosArgs = _a.sent();
182
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
183
- }
184
- });
185
- });
186
- },
187
- };
188
- };
189
- exports.DrawerResourceV1GetDrawerEntriesApiFp = DrawerResourceV1GetDrawerEntriesApiFp;
190
- /**
191
- * DrawerResourceV1GetDrawerEntriesApi - factory interface
192
- * @export
193
- */
194
- var DrawerResourceV1GetDrawerEntriesApiFactory = function (configuration, basePath, axios) {
195
- var localVarFp = (0, exports.DrawerResourceV1GetDrawerEntriesApiFp)(configuration);
196
- return {
197
- /**
198
- * Allowed `sort_by` fields are `bundleIds`, `applicationIds`, `eventTypeIds`, `startTime`, `endTime` and `read`. The ordering can be optionally specified by appending `:asc` or `:desc` to the field, e.g. `bundle:desc`. Defaults to `desc` for the `created` field and to `asc` for all other fields.
199
- * @summary Retrieve drawer notifications entries.
200
- * @param {Set<string>} [appIds]
201
- * @param {Set<string>} [bundleIds]
202
- * @param {string} [endDate]
203
- * @param {Set<string>} [eventTypeIds]
204
- * @param {number} [limit]
205
- * @param {number} [offset]
206
- * @param {number} [pageNumber]
207
- * @param {boolean} [readStatus]
208
- * @param {string} [sortBy]
209
- * @param {string} [sortBy2]
210
- * @param {string} [startDate]
211
- * @param {*} [options] Override http request option.
212
- * @throws {RequiredError}
213
- */
214
- drawerResourceV1GetDrawerEntries: function (appIds, bundleIds, endDate, eventTypeIds, limit, offset, pageNumber, readStatus, sortBy, sortBy2, startDate, options) {
215
- return localVarFp.drawerResourceV1GetDrawerEntries(appIds, bundleIds, endDate, eventTypeIds, limit, offset, pageNumber, readStatus, sortBy, sortBy2, startDate, options).then(function (request) { return request(axios, basePath); });
216
- },
217
- };
218
- };
219
- exports.DrawerResourceV1GetDrawerEntriesApiFactory = DrawerResourceV1GetDrawerEntriesApiFactory;
220
- /**
221
- * DrawerResourceV1GetDrawerEntriesApi - object-oriented interface
222
- * @export
223
- * @class DrawerResourceV1GetDrawerEntriesApi
224
- * @extends {BaseAPI}
225
- */
226
- var DrawerResourceV1GetDrawerEntriesApi = /** @class */ (function (_super) {
227
- tslib_1.__extends(DrawerResourceV1GetDrawerEntriesApi, _super);
228
- function DrawerResourceV1GetDrawerEntriesApi() {
229
- return _super !== null && _super.apply(this, arguments) || this;
230
- }
231
- /**
232
- * Allowed `sort_by` fields are `bundleIds`, `applicationIds`, `eventTypeIds`, `startTime`, `endTime` and `read`. The ordering can be optionally specified by appending `:asc` or `:desc` to the field, e.g. `bundle:desc`. Defaults to `desc` for the `created` field and to `asc` for all other fields.
233
- * @summary Retrieve drawer notifications entries.
234
- * @param {Set<string>} [appIds]
235
- * @param {Set<string>} [bundleIds]
236
- * @param {string} [endDate]
237
- * @param {Set<string>} [eventTypeIds]
238
- * @param {number} [limit]
239
- * @param {number} [offset]
240
- * @param {number} [pageNumber]
241
- * @param {boolean} [readStatus]
242
- * @param {string} [sortBy]
243
- * @param {string} [sortBy2]
244
- * @param {string} [startDate]
245
- * @param {*} [options] Override http request option.
246
- * @throws {RequiredError}
247
- * @memberof DrawerResourceV1GetDrawerEntriesApi
248
- */
249
- DrawerResourceV1GetDrawerEntriesApi.prototype.drawerResourceV1GetDrawerEntries = function (appIds, bundleIds, endDate, eventTypeIds, limit, offset, pageNumber, readStatus, sortBy, sortBy2, startDate, options) {
250
- var _this = this;
251
- return (0, exports.DrawerResourceV1GetDrawerEntriesApiFp)(this.configuration).drawerResourceV1GetDrawerEntries(appIds, bundleIds, endDate, eventTypeIds, limit, offset, pageNumber, readStatus, sortBy, sortBy2, startDate, options).then(function (request) { return request(_this.axios, _this.basePath); });
252
- };
253
- return DrawerResourceV1GetDrawerEntriesApi;
254
- }(base_1.BaseAPI));
255
- exports.DrawerResourceV1GetDrawerEntriesApi = DrawerResourceV1GetDrawerEntriesApi;
256
- /**
257
- * DrawerResourceV1UpdateNotificationReadStatusApi - axios parameter creator
258
- * @export
259
- */
260
- var DrawerResourceV1UpdateNotificationReadStatusApiAxiosParamCreator = function (configuration) {
261
- var _this = this;
262
- return {
263
- /**
264
- * Update drawer notifications status.
265
- * @summary Update drawer notifications status.
266
- * @param {UpdateNotificationDrawerStatus} [updateNotificationDrawerStatus]
267
- * @param {*} [options] Override http request option.
268
- * @throws {RequiredError}
269
- */
270
- drawerResourceV1UpdateNotificationReadStatus: function (updateNotificationDrawerStatus, options) {
271
- if (options === void 0) { options = {}; }
272
- return tslib_1.__awaiter(_this, void 0, void 0, function () {
273
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
274
- return tslib_1.__generator(this, function (_a) {
275
- localVarPath = "/notifications/drawer/read";
276
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
277
- if (configuration) {
278
- baseOptions = configuration.baseOptions;
279
- }
280
- localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'PUT' }, baseOptions), options);
281
- localVarHeaderParameter = {};
282
- localVarQueryParameter = {};
283
- localVarHeaderParameter['Content-Type'] = 'application/json';
284
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
285
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
286
- localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
287
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateNotificationDrawerStatus, localVarRequestOptions, configuration);
288
- return [2 /*return*/, {
289
- url: (0, common_1.toPathString)(localVarUrlObj),
290
- options: localVarRequestOptions,
291
- }];
292
- });
293
- });
294
- },
295
- };
296
- };
297
- exports.DrawerResourceV1UpdateNotificationReadStatusApiAxiosParamCreator = DrawerResourceV1UpdateNotificationReadStatusApiAxiosParamCreator;
298
- /**
299
- * DrawerResourceV1UpdateNotificationReadStatusApi - functional programming interface
300
- * @export
301
- */
302
- var DrawerResourceV1UpdateNotificationReadStatusApiFp = function (configuration) {
303
- var localVarAxiosParamCreator = (0, exports.DrawerResourceV1UpdateNotificationReadStatusApiAxiosParamCreator)(configuration);
304
- return {
305
- /**
306
- * Update drawer notifications status.
307
- * @summary Update drawer notifications status.
308
- * @param {UpdateNotificationDrawerStatus} [updateNotificationDrawerStatus]
309
- * @param {*} [options] Override http request option.
310
- * @throws {RequiredError}
311
- */
312
- drawerResourceV1UpdateNotificationReadStatus: function (updateNotificationDrawerStatus, options) {
313
- return tslib_1.__awaiter(this, void 0, void 0, function () {
314
- var localVarAxiosArgs;
315
- return tslib_1.__generator(this, function (_a) {
316
- switch (_a.label) {
317
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.drawerResourceV1UpdateNotificationReadStatus(updateNotificationDrawerStatus, options)];
318
- case 1:
319
- localVarAxiosArgs = _a.sent();
320
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
321
- }
322
- });
323
- });
324
- },
325
- };
326
- };
327
- exports.DrawerResourceV1UpdateNotificationReadStatusApiFp = DrawerResourceV1UpdateNotificationReadStatusApiFp;
328
- /**
329
- * DrawerResourceV1UpdateNotificationReadStatusApi - factory interface
330
- * @export
331
- */
332
- var DrawerResourceV1UpdateNotificationReadStatusApiFactory = function (configuration, basePath, axios) {
333
- var localVarFp = (0, exports.DrawerResourceV1UpdateNotificationReadStatusApiFp)(configuration);
334
- return {
335
- /**
336
- * Update drawer notifications status.
337
- * @summary Update drawer notifications status.
338
- * @param {UpdateNotificationDrawerStatus} [updateNotificationDrawerStatus]
339
- * @param {*} [options] Override http request option.
340
- * @throws {RequiredError}
341
- */
342
- drawerResourceV1UpdateNotificationReadStatus: function (updateNotificationDrawerStatus, options) {
343
- return localVarFp.drawerResourceV1UpdateNotificationReadStatus(updateNotificationDrawerStatus, options).then(function (request) { return request(axios, basePath); });
344
- },
345
- };
346
- };
347
- exports.DrawerResourceV1UpdateNotificationReadStatusApiFactory = DrawerResourceV1UpdateNotificationReadStatusApiFactory;
348
- /**
349
- * DrawerResourceV1UpdateNotificationReadStatusApi - object-oriented interface
350
- * @export
351
- * @class DrawerResourceV1UpdateNotificationReadStatusApi
352
- * @extends {BaseAPI}
353
- */
354
- var DrawerResourceV1UpdateNotificationReadStatusApi = /** @class */ (function (_super) {
355
- tslib_1.__extends(DrawerResourceV1UpdateNotificationReadStatusApi, _super);
356
- function DrawerResourceV1UpdateNotificationReadStatusApi() {
357
- return _super !== null && _super.apply(this, arguments) || this;
358
- }
359
- /**
360
- * Update drawer notifications status.
361
- * @summary Update drawer notifications status.
362
- * @param {UpdateNotificationDrawerStatus} [updateNotificationDrawerStatus]
363
- * @param {*} [options] Override http request option.
364
- * @throws {RequiredError}
365
- * @memberof DrawerResourceV1UpdateNotificationReadStatusApi
366
- */
367
- DrawerResourceV1UpdateNotificationReadStatusApi.prototype.drawerResourceV1UpdateNotificationReadStatus = function (updateNotificationDrawerStatus, options) {
368
- var _this = this;
369
- return (0, exports.DrawerResourceV1UpdateNotificationReadStatusApiFp)(this.configuration).drawerResourceV1UpdateNotificationReadStatus(updateNotificationDrawerStatus, options).then(function (request) { return request(_this.axios, _this.basePath); });
370
- };
371
- return DrawerResourceV1UpdateNotificationReadStatusApi;
372
- }(base_1.BaseAPI));
373
- exports.DrawerResourceV1UpdateNotificationReadStatusApi = DrawerResourceV1UpdateNotificationReadStatusApi;
374
- /**
375
- * EventResourceV1GetEventsApi - axios parameter creator
376
- * @export
377
- */
378
- var EventResourceV1GetEventsApiAxiosParamCreator = function (configuration) {
379
- var _this = this;
380
- return {
381
- /**
382
- * Retrieves the event log entries. Use this endpoint to review a full history of the events related to the tenant. You can sort by the bundle, application, event, and created fields. You can specify the sort order by appending :asc or :desc to the field, for example bundle:desc. Sorting defaults to desc for the created field and to asc for all other fields.
383
- * @summary Retrieve the event log entries
384
- * @param {Set<string>} [appIds]
385
- * @param {Set<string>} [bundleIds]
386
- * @param {string} [endDate]
387
- * @param {Set<string>} [endpointTypes]
388
- * @param {string} [eventTypeDisplayName]
389
- * @param {boolean} [includeActions]
390
- * @param {boolean} [includeDetails]
391
- * @param {boolean} [includePayload]
392
- * @param {Set<boolean>} [invocationResults]
393
- * @param {number} [limit]
394
- * @param {number} [offset]
395
- * @param {number} [pageNumber]
396
- * @param {string} [sortBy]
397
- * @param {string} [sortBy2]
398
- * @param {string} [startDate]
399
- * @param {Set<EventLogEntryActionStatus>} [status]
400
- * @param {*} [options] Override http request option.
401
- * @throws {RequiredError}
402
- */
403
- eventResourceV1GetEvents: function (appIds, bundleIds, endDate, endpointTypes, eventTypeDisplayName, includeActions, includeDetails, includePayload, invocationResults, limit, offset, pageNumber, sortBy, sortBy2, startDate, status, options) {
404
- if (options === void 0) { options = {}; }
405
- return tslib_1.__awaiter(_this, void 0, void 0, function () {
406
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
407
- return tslib_1.__generator(this, function (_a) {
408
- localVarPath = "/notifications/events";
409
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
410
- if (configuration) {
411
- baseOptions = configuration.baseOptions;
412
- }
413
- localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'GET' }, baseOptions), options);
414
- localVarHeaderParameter = {};
415
- localVarQueryParameter = {};
416
- if (appIds) {
417
- localVarQueryParameter['appIds'] = Array.from(appIds);
418
- }
419
- if (bundleIds) {
420
- localVarQueryParameter['bundleIds'] = Array.from(bundleIds);
421
- }
422
- if (endDate !== undefined) {
423
- localVarQueryParameter['endDate'] = (endDate instanceof Date) ?
424
- endDate.toISOString().substring(0, 10) :
425
- endDate;
426
- }
427
- if (endpointTypes) {
428
- localVarQueryParameter['endpointTypes'] = Array.from(endpointTypes);
429
- }
430
- if (eventTypeDisplayName !== undefined) {
431
- localVarQueryParameter['eventTypeDisplayName'] = eventTypeDisplayName;
432
- }
433
- if (includeActions !== undefined) {
434
- localVarQueryParameter['includeActions'] = includeActions;
435
- }
436
- if (includeDetails !== undefined) {
437
- localVarQueryParameter['includeDetails'] = includeDetails;
438
- }
439
- if (includePayload !== undefined) {
440
- localVarQueryParameter['includePayload'] = includePayload;
441
- }
442
- if (invocationResults) {
443
- localVarQueryParameter['invocationResults'] = Array.from(invocationResults);
444
- }
445
- if (limit !== undefined) {
446
- localVarQueryParameter['limit'] = limit;
447
- }
448
- if (offset !== undefined) {
449
- localVarQueryParameter['offset'] = offset;
450
- }
451
- if (pageNumber !== undefined) {
452
- localVarQueryParameter['pageNumber'] = pageNumber;
453
- }
454
- if (sortBy !== undefined) {
455
- localVarQueryParameter['sortBy'] = sortBy;
456
- }
457
- if (sortBy2 !== undefined) {
458
- localVarQueryParameter['sort_by'] = sortBy2;
459
- }
460
- if (startDate !== undefined) {
461
- localVarQueryParameter['startDate'] = (startDate instanceof Date) ?
462
- startDate.toISOString().substring(0, 10) :
463
- startDate;
464
- }
465
- if (status) {
466
- localVarQueryParameter['status'] = Array.from(status);
467
- }
468
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
469
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
470
- localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
471
- return [2 /*return*/, {
472
- url: (0, common_1.toPathString)(localVarUrlObj),
473
- options: localVarRequestOptions,
474
- }];
475
- });
476
- });
477
- },
478
- };
479
- };
480
- exports.EventResourceV1GetEventsApiAxiosParamCreator = EventResourceV1GetEventsApiAxiosParamCreator;
481
- /**
482
- * EventResourceV1GetEventsApi - functional programming interface
483
- * @export
484
- */
485
- var EventResourceV1GetEventsApiFp = function (configuration) {
486
- var localVarAxiosParamCreator = (0, exports.EventResourceV1GetEventsApiAxiosParamCreator)(configuration);
487
- return {
488
- /**
489
- * Retrieves the event log entries. Use this endpoint to review a full history of the events related to the tenant. You can sort by the bundle, application, event, and created fields. You can specify the sort order by appending :asc or :desc to the field, for example bundle:desc. Sorting defaults to desc for the created field and to asc for all other fields.
490
- * @summary Retrieve the event log entries
491
- * @param {Set<string>} [appIds]
492
- * @param {Set<string>} [bundleIds]
493
- * @param {string} [endDate]
494
- * @param {Set<string>} [endpointTypes]
495
- * @param {string} [eventTypeDisplayName]
496
- * @param {boolean} [includeActions]
497
- * @param {boolean} [includeDetails]
498
- * @param {boolean} [includePayload]
499
- * @param {Set<boolean>} [invocationResults]
500
- * @param {number} [limit]
501
- * @param {number} [offset]
502
- * @param {number} [pageNumber]
503
- * @param {string} [sortBy]
504
- * @param {string} [sortBy2]
505
- * @param {string} [startDate]
506
- * @param {Set<EventLogEntryActionStatus>} [status]
507
- * @param {*} [options] Override http request option.
508
- * @throws {RequiredError}
509
- */
510
- eventResourceV1GetEvents: function (appIds, bundleIds, endDate, endpointTypes, eventTypeDisplayName, includeActions, includeDetails, includePayload, invocationResults, limit, offset, pageNumber, sortBy, sortBy2, startDate, status, options) {
511
- return tslib_1.__awaiter(this, void 0, void 0, function () {
512
- var localVarAxiosArgs;
513
- return tslib_1.__generator(this, function (_a) {
514
- switch (_a.label) {
515
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.eventResourceV1GetEvents(appIds, bundleIds, endDate, endpointTypes, eventTypeDisplayName, includeActions, includeDetails, includePayload, invocationResults, limit, offset, pageNumber, sortBy, sortBy2, startDate, status, options)];
516
- case 1:
517
- localVarAxiosArgs = _a.sent();
518
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
519
- }
520
- });
521
- });
522
- },
523
- };
524
- };
525
- exports.EventResourceV1GetEventsApiFp = EventResourceV1GetEventsApiFp;
526
- /**
527
- * EventResourceV1GetEventsApi - factory interface
528
- * @export
529
- */
530
- var EventResourceV1GetEventsApiFactory = function (configuration, basePath, axios) {
531
- var localVarFp = (0, exports.EventResourceV1GetEventsApiFp)(configuration);
532
- return {
533
- /**
534
- * Retrieves the event log entries. Use this endpoint to review a full history of the events related to the tenant. You can sort by the bundle, application, event, and created fields. You can specify the sort order by appending :asc or :desc to the field, for example bundle:desc. Sorting defaults to desc for the created field and to asc for all other fields.
535
- * @summary Retrieve the event log entries
536
- * @param {Set<string>} [appIds]
537
- * @param {Set<string>} [bundleIds]
538
- * @param {string} [endDate]
539
- * @param {Set<string>} [endpointTypes]
540
- * @param {string} [eventTypeDisplayName]
541
- * @param {boolean} [includeActions]
542
- * @param {boolean} [includeDetails]
543
- * @param {boolean} [includePayload]
544
- * @param {Set<boolean>} [invocationResults]
545
- * @param {number} [limit]
546
- * @param {number} [offset]
547
- * @param {number} [pageNumber]
548
- * @param {string} [sortBy]
549
- * @param {string} [sortBy2]
550
- * @param {string} [startDate]
551
- * @param {Set<EventLogEntryActionStatus>} [status]
552
- * @param {*} [options] Override http request option.
553
- * @throws {RequiredError}
554
- */
555
- eventResourceV1GetEvents: function (appIds, bundleIds, endDate, endpointTypes, eventTypeDisplayName, includeActions, includeDetails, includePayload, invocationResults, limit, offset, pageNumber, sortBy, sortBy2, startDate, status, options) {
556
- return localVarFp.eventResourceV1GetEvents(appIds, bundleIds, endDate, endpointTypes, eventTypeDisplayName, includeActions, includeDetails, includePayload, invocationResults, limit, offset, pageNumber, sortBy, sortBy2, startDate, status, options).then(function (request) { return request(axios, basePath); });
557
- },
558
- };
559
- };
560
- exports.EventResourceV1GetEventsApiFactory = EventResourceV1GetEventsApiFactory;
561
- /**
562
- * EventResourceV1GetEventsApi - object-oriented interface
563
- * @export
564
- * @class EventResourceV1GetEventsApi
565
- * @extends {BaseAPI}
566
- */
567
- var EventResourceV1GetEventsApi = /** @class */ (function (_super) {
568
- tslib_1.__extends(EventResourceV1GetEventsApi, _super);
569
- function EventResourceV1GetEventsApi() {
570
- return _super !== null && _super.apply(this, arguments) || this;
571
- }
572
- /**
573
- * Retrieves the event log entries. Use this endpoint to review a full history of the events related to the tenant. You can sort by the bundle, application, event, and created fields. You can specify the sort order by appending :asc or :desc to the field, for example bundle:desc. Sorting defaults to desc for the created field and to asc for all other fields.
574
- * @summary Retrieve the event log entries
575
- * @param {Set<string>} [appIds]
576
- * @param {Set<string>} [bundleIds]
577
- * @param {string} [endDate]
578
- * @param {Set<string>} [endpointTypes]
579
- * @param {string} [eventTypeDisplayName]
580
- * @param {boolean} [includeActions]
581
- * @param {boolean} [includeDetails]
582
- * @param {boolean} [includePayload]
583
- * @param {Set<boolean>} [invocationResults]
584
- * @param {number} [limit]
585
- * @param {number} [offset]
586
- * @param {number} [pageNumber]
587
- * @param {string} [sortBy]
588
- * @param {string} [sortBy2]
589
- * @param {string} [startDate]
590
- * @param {Set<EventLogEntryActionStatus>} [status]
591
- * @param {*} [options] Override http request option.
592
- * @throws {RequiredError}
593
- * @memberof EventResourceV1GetEventsApi
594
- */
595
- EventResourceV1GetEventsApi.prototype.eventResourceV1GetEvents = function (appIds, bundleIds, endDate, endpointTypes, eventTypeDisplayName, includeActions, includeDetails, includePayload, invocationResults, limit, offset, pageNumber, sortBy, sortBy2, startDate, status, options) {
596
- var _this = this;
597
- return (0, exports.EventResourceV1GetEventsApiFp)(this.configuration).eventResourceV1GetEvents(appIds, bundleIds, endDate, endpointTypes, eventTypeDisplayName, includeActions, includeDetails, includePayload, invocationResults, limit, offset, pageNumber, sortBy, sortBy2, startDate, status, options).then(function (request) { return request(_this.axios, _this.basePath); });
598
- };
599
- return EventResourceV1GetEventsApi;
600
- }(base_1.BaseAPI));
601
- exports.EventResourceV1GetEventsApi = EventResourceV1GetEventsApi;
602
- /**
603
- * NotificationResourceV1AppendBehaviorGroupToEventTypeApi - axios parameter creator
604
- * @export
605
- */
606
- var NotificationResourceV1AppendBehaviorGroupToEventTypeApiAxiosParamCreator = function (configuration) {
607
- var _this = this;
608
- return {
609
- /**
610
- *
611
- * @summary Add a behavior group to the given event type.
612
- * @param {string} behaviorGroupUuid
613
- * @param {string} eventTypeUuid
614
- * @param {*} [options] Override http request option.
615
- * @throws {RequiredError}
616
- */
617
- notificationResourceV1AppendBehaviorGroupToEventType: function (behaviorGroupUuid, eventTypeUuid, options) {
618
- if (options === void 0) { options = {}; }
619
- return tslib_1.__awaiter(_this, void 0, void 0, function () {
620
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
621
- return tslib_1.__generator(this, function (_a) {
622
- // verify required parameter 'behaviorGroupUuid' is not null or undefined
623
- (0, common_1.assertParamExists)('notificationResourceV1AppendBehaviorGroupToEventType', 'behaviorGroupUuid', behaviorGroupUuid);
624
- // verify required parameter 'eventTypeUuid' is not null or undefined
625
- (0, common_1.assertParamExists)('notificationResourceV1AppendBehaviorGroupToEventType', 'eventTypeUuid', eventTypeUuid);
626
- localVarPath = "/notifications/eventTypes/{eventTypeUuid}/behaviorGroups/{behaviorGroupUuid}"
627
- .replace("{".concat("behaviorGroupUuid", "}"), encodeURIComponent(String(behaviorGroupUuid)))
628
- .replace("{".concat("eventTypeUuid", "}"), encodeURIComponent(String(eventTypeUuid)));
629
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
630
- if (configuration) {
631
- baseOptions = configuration.baseOptions;
632
- }
633
- localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'PUT' }, baseOptions), options);
634
- localVarHeaderParameter = {};
635
- localVarQueryParameter = {};
636
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
637
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
638
- localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
639
- return [2 /*return*/, {
640
- url: (0, common_1.toPathString)(localVarUrlObj),
641
- options: localVarRequestOptions,
642
- }];
643
- });
644
- });
645
- },
646
- };
647
- };
648
- exports.NotificationResourceV1AppendBehaviorGroupToEventTypeApiAxiosParamCreator = NotificationResourceV1AppendBehaviorGroupToEventTypeApiAxiosParamCreator;
649
- /**
650
- * NotificationResourceV1AppendBehaviorGroupToEventTypeApi - functional programming interface
651
- * @export
652
- */
653
- var NotificationResourceV1AppendBehaviorGroupToEventTypeApiFp = function (configuration) {
654
- var localVarAxiosParamCreator = (0, exports.NotificationResourceV1AppendBehaviorGroupToEventTypeApiAxiosParamCreator)(configuration);
655
- return {
656
- /**
657
- *
658
- * @summary Add a behavior group to the given event type.
659
- * @param {string} behaviorGroupUuid
660
- * @param {string} eventTypeUuid
661
- * @param {*} [options] Override http request option.
662
- * @throws {RequiredError}
663
- */
664
- notificationResourceV1AppendBehaviorGroupToEventType: function (behaviorGroupUuid, eventTypeUuid, options) {
665
- return tslib_1.__awaiter(this, void 0, void 0, function () {
666
- var localVarAxiosArgs;
667
- return tslib_1.__generator(this, function (_a) {
668
- switch (_a.label) {
669
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.notificationResourceV1AppendBehaviorGroupToEventType(behaviorGroupUuid, eventTypeUuid, options)];
670
- case 1:
671
- localVarAxiosArgs = _a.sent();
672
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
673
- }
674
- });
675
- });
676
- },
677
- };
678
- };
679
- exports.NotificationResourceV1AppendBehaviorGroupToEventTypeApiFp = NotificationResourceV1AppendBehaviorGroupToEventTypeApiFp;
680
- /**
681
- * NotificationResourceV1AppendBehaviorGroupToEventTypeApi - factory interface
682
- * @export
683
- */
684
- var NotificationResourceV1AppendBehaviorGroupToEventTypeApiFactory = function (configuration, basePath, axios) {
685
- var localVarFp = (0, exports.NotificationResourceV1AppendBehaviorGroupToEventTypeApiFp)(configuration);
686
- return {
687
- /**
688
- *
689
- * @summary Add a behavior group to the given event type.
690
- * @param {string} behaviorGroupUuid
691
- * @param {string} eventTypeUuid
692
- * @param {*} [options] Override http request option.
693
- * @throws {RequiredError}
694
- */
695
- notificationResourceV1AppendBehaviorGroupToEventType: function (behaviorGroupUuid, eventTypeUuid, options) {
696
- return localVarFp.notificationResourceV1AppendBehaviorGroupToEventType(behaviorGroupUuid, eventTypeUuid, options).then(function (request) { return request(axios, basePath); });
697
- },
698
- };
699
- };
700
- exports.NotificationResourceV1AppendBehaviorGroupToEventTypeApiFactory = NotificationResourceV1AppendBehaviorGroupToEventTypeApiFactory;
701
- /**
702
- * NotificationResourceV1AppendBehaviorGroupToEventTypeApi - object-oriented interface
703
- * @export
704
- * @class NotificationResourceV1AppendBehaviorGroupToEventTypeApi
705
- * @extends {BaseAPI}
706
- */
707
- var NotificationResourceV1AppendBehaviorGroupToEventTypeApi = /** @class */ (function (_super) {
708
- tslib_1.__extends(NotificationResourceV1AppendBehaviorGroupToEventTypeApi, _super);
709
- function NotificationResourceV1AppendBehaviorGroupToEventTypeApi() {
710
- return _super !== null && _super.apply(this, arguments) || this;
711
- }
712
- /**
713
- *
714
- * @summary Add a behavior group to the given event type.
715
- * @param {string} behaviorGroupUuid
716
- * @param {string} eventTypeUuid
717
- * @param {*} [options] Override http request option.
718
- * @throws {RequiredError}
719
- * @memberof NotificationResourceV1AppendBehaviorGroupToEventTypeApi
720
- */
721
- NotificationResourceV1AppendBehaviorGroupToEventTypeApi.prototype.notificationResourceV1AppendBehaviorGroupToEventType = function (behaviorGroupUuid, eventTypeUuid, options) {
722
- var _this = this;
723
- return (0, exports.NotificationResourceV1AppendBehaviorGroupToEventTypeApiFp)(this.configuration).notificationResourceV1AppendBehaviorGroupToEventType(behaviorGroupUuid, eventTypeUuid, options).then(function (request) { return request(_this.axios, _this.basePath); });
724
- };
725
- return NotificationResourceV1AppendBehaviorGroupToEventTypeApi;
726
- }(base_1.BaseAPI));
727
- exports.NotificationResourceV1AppendBehaviorGroupToEventTypeApi = NotificationResourceV1AppendBehaviorGroupToEventTypeApi;
728
- /**
729
- * NotificationResourceV1CreateBehaviorGroupApi - axios parameter creator
730
- * @export
731
- */
732
- var NotificationResourceV1CreateBehaviorGroupApiAxiosParamCreator = function (configuration) {
733
- var _this = this;
734
- return {
735
- /**
736
- * Creates a behavior group that defines which notifications will be sent to external services after an event is received. Use this endpoint to control the types of events users are notified about.
737
- * @summary Create a behavior group
738
- * @param {CreateBehaviorGroupRequest} createBehaviorGroupRequest
739
- * @param {*} [options] Override http request option.
740
- * @throws {RequiredError}
741
- */
742
- notificationResourceV1CreateBehaviorGroup: function (createBehaviorGroupRequest, options) {
743
- if (options === void 0) { options = {}; }
744
- return tslib_1.__awaiter(_this, void 0, void 0, function () {
745
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
746
- return tslib_1.__generator(this, function (_a) {
747
- // verify required parameter 'createBehaviorGroupRequest' is not null or undefined
748
- (0, common_1.assertParamExists)('notificationResourceV1CreateBehaviorGroup', 'createBehaviorGroupRequest', createBehaviorGroupRequest);
749
- localVarPath = "/notifications/behaviorGroups";
750
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
751
- if (configuration) {
752
- baseOptions = configuration.baseOptions;
753
- }
754
- localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'POST' }, baseOptions), options);
755
- localVarHeaderParameter = {};
756
- localVarQueryParameter = {};
757
- localVarHeaderParameter['Content-Type'] = 'application/json';
758
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
759
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
760
- localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
761
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createBehaviorGroupRequest, localVarRequestOptions, configuration);
762
- return [2 /*return*/, {
763
- url: (0, common_1.toPathString)(localVarUrlObj),
764
- options: localVarRequestOptions,
765
- }];
766
- });
767
- });
768
- },
769
- };
770
- };
771
- exports.NotificationResourceV1CreateBehaviorGroupApiAxiosParamCreator = NotificationResourceV1CreateBehaviorGroupApiAxiosParamCreator;
772
- /**
773
- * NotificationResourceV1CreateBehaviorGroupApi - functional programming interface
774
- * @export
775
- */
776
- var NotificationResourceV1CreateBehaviorGroupApiFp = function (configuration) {
777
- var localVarAxiosParamCreator = (0, exports.NotificationResourceV1CreateBehaviorGroupApiAxiosParamCreator)(configuration);
778
- return {
779
- /**
780
- * Creates a behavior group that defines which notifications will be sent to external services after an event is received. Use this endpoint to control the types of events users are notified about.
781
- * @summary Create a behavior group
782
- * @param {CreateBehaviorGroupRequest} createBehaviorGroupRequest
783
- * @param {*} [options] Override http request option.
784
- * @throws {RequiredError}
785
- */
786
- notificationResourceV1CreateBehaviorGroup: function (createBehaviorGroupRequest, options) {
787
- return tslib_1.__awaiter(this, void 0, void 0, function () {
788
- var localVarAxiosArgs;
789
- return tslib_1.__generator(this, function (_a) {
790
- switch (_a.label) {
791
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.notificationResourceV1CreateBehaviorGroup(createBehaviorGroupRequest, options)];
792
- case 1:
793
- localVarAxiosArgs = _a.sent();
794
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
795
- }
796
- });
797
- });
798
- },
799
- };
800
- };
801
- exports.NotificationResourceV1CreateBehaviorGroupApiFp = NotificationResourceV1CreateBehaviorGroupApiFp;
802
- /**
803
- * NotificationResourceV1CreateBehaviorGroupApi - factory interface
804
- * @export
805
- */
806
- var NotificationResourceV1CreateBehaviorGroupApiFactory = function (configuration, basePath, axios) {
807
- var localVarFp = (0, exports.NotificationResourceV1CreateBehaviorGroupApiFp)(configuration);
808
- return {
809
- /**
810
- * Creates a behavior group that defines which notifications will be sent to external services after an event is received. Use this endpoint to control the types of events users are notified about.
811
- * @summary Create a behavior group
812
- * @param {CreateBehaviorGroupRequest} createBehaviorGroupRequest
813
- * @param {*} [options] Override http request option.
814
- * @throws {RequiredError}
815
- */
816
- notificationResourceV1CreateBehaviorGroup: function (createBehaviorGroupRequest, options) {
817
- return localVarFp.notificationResourceV1CreateBehaviorGroup(createBehaviorGroupRequest, options).then(function (request) { return request(axios, basePath); });
818
- },
819
- };
820
- };
821
- exports.NotificationResourceV1CreateBehaviorGroupApiFactory = NotificationResourceV1CreateBehaviorGroupApiFactory;
822
- /**
823
- * NotificationResourceV1CreateBehaviorGroupApi - object-oriented interface
824
- * @export
825
- * @class NotificationResourceV1CreateBehaviorGroupApi
826
- * @extends {BaseAPI}
827
- */
828
- var NotificationResourceV1CreateBehaviorGroupApi = /** @class */ (function (_super) {
829
- tslib_1.__extends(NotificationResourceV1CreateBehaviorGroupApi, _super);
830
- function NotificationResourceV1CreateBehaviorGroupApi() {
831
- return _super !== null && _super.apply(this, arguments) || this;
832
- }
833
- /**
834
- * Creates a behavior group that defines which notifications will be sent to external services after an event is received. Use this endpoint to control the types of events users are notified about.
835
- * @summary Create a behavior group
836
- * @param {CreateBehaviorGroupRequest} createBehaviorGroupRequest
837
- * @param {*} [options] Override http request option.
838
- * @throws {RequiredError}
839
- * @memberof NotificationResourceV1CreateBehaviorGroupApi
840
- */
841
- NotificationResourceV1CreateBehaviorGroupApi.prototype.notificationResourceV1CreateBehaviorGroup = function (createBehaviorGroupRequest, options) {
842
- var _this = this;
843
- return (0, exports.NotificationResourceV1CreateBehaviorGroupApiFp)(this.configuration).notificationResourceV1CreateBehaviorGroup(createBehaviorGroupRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
844
- };
845
- return NotificationResourceV1CreateBehaviorGroupApi;
846
- }(base_1.BaseAPI));
847
- exports.NotificationResourceV1CreateBehaviorGroupApi = NotificationResourceV1CreateBehaviorGroupApi;
848
- /**
849
- * NotificationResourceV1DeleteBehaviorGroupApi - axios parameter creator
850
- * @export
851
- */
852
- var NotificationResourceV1DeleteBehaviorGroupApiAxiosParamCreator = function (configuration) {
853
- var _this = this;
854
- return {
855
- /**
856
- * Deletes a behavior group and all of its configured actions. Use this endpoint when you no longer need a behavior group.
857
- * @summary Delete a behavior group
858
- * @param {string} id The UUID of the behavior group to delete
859
- * @param {*} [options] Override http request option.
860
- * @throws {RequiredError}
861
- */
862
- notificationResourceV1DeleteBehaviorGroup: function (id, options) {
863
- if (options === void 0) { options = {}; }
864
- return tslib_1.__awaiter(_this, void 0, void 0, function () {
865
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
866
- return tslib_1.__generator(this, function (_a) {
867
- // verify required parameter 'id' is not null or undefined
868
- (0, common_1.assertParamExists)('notificationResourceV1DeleteBehaviorGroup', 'id', id);
869
- localVarPath = "/notifications/behaviorGroups/{id}"
870
- .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
871
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
872
- if (configuration) {
873
- baseOptions = configuration.baseOptions;
874
- }
875
- localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'DELETE' }, baseOptions), options);
876
- localVarHeaderParameter = {};
877
- localVarQueryParameter = {};
878
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
879
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
880
- localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
881
- return [2 /*return*/, {
882
- url: (0, common_1.toPathString)(localVarUrlObj),
883
- options: localVarRequestOptions,
884
- }];
885
- });
886
- });
887
- },
888
- };
889
- };
890
- exports.NotificationResourceV1DeleteBehaviorGroupApiAxiosParamCreator = NotificationResourceV1DeleteBehaviorGroupApiAxiosParamCreator;
891
- /**
892
- * NotificationResourceV1DeleteBehaviorGroupApi - functional programming interface
893
- * @export
894
- */
895
- var NotificationResourceV1DeleteBehaviorGroupApiFp = function (configuration) {
896
- var localVarAxiosParamCreator = (0, exports.NotificationResourceV1DeleteBehaviorGroupApiAxiosParamCreator)(configuration);
897
- return {
898
- /**
899
- * Deletes a behavior group and all of its configured actions. Use this endpoint when you no longer need a behavior group.
900
- * @summary Delete a behavior group
901
- * @param {string} id The UUID of the behavior group to delete
902
- * @param {*} [options] Override http request option.
903
- * @throws {RequiredError}
904
- */
905
- notificationResourceV1DeleteBehaviorGroup: function (id, options) {
906
- return tslib_1.__awaiter(this, void 0, void 0, function () {
907
- var localVarAxiosArgs;
908
- return tslib_1.__generator(this, function (_a) {
909
- switch (_a.label) {
910
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.notificationResourceV1DeleteBehaviorGroup(id, options)];
911
- case 1:
912
- localVarAxiosArgs = _a.sent();
913
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
914
- }
915
- });
916
- });
917
- },
918
- };
919
- };
920
- exports.NotificationResourceV1DeleteBehaviorGroupApiFp = NotificationResourceV1DeleteBehaviorGroupApiFp;
921
- /**
922
- * NotificationResourceV1DeleteBehaviorGroupApi - factory interface
923
- * @export
924
- */
925
- var NotificationResourceV1DeleteBehaviorGroupApiFactory = function (configuration, basePath, axios) {
926
- var localVarFp = (0, exports.NotificationResourceV1DeleteBehaviorGroupApiFp)(configuration);
927
- return {
928
- /**
929
- * Deletes a behavior group and all of its configured actions. Use this endpoint when you no longer need a behavior group.
930
- * @summary Delete a behavior group
931
- * @param {string} id The UUID of the behavior group to delete
932
- * @param {*} [options] Override http request option.
933
- * @throws {RequiredError}
934
- */
935
- notificationResourceV1DeleteBehaviorGroup: function (id, options) {
936
- return localVarFp.notificationResourceV1DeleteBehaviorGroup(id, options).then(function (request) { return request(axios, basePath); });
937
- },
938
- };
939
- };
940
- exports.NotificationResourceV1DeleteBehaviorGroupApiFactory = NotificationResourceV1DeleteBehaviorGroupApiFactory;
941
- /**
942
- * NotificationResourceV1DeleteBehaviorGroupApi - object-oriented interface
943
- * @export
944
- * @class NotificationResourceV1DeleteBehaviorGroupApi
945
- * @extends {BaseAPI}
946
- */
947
- var NotificationResourceV1DeleteBehaviorGroupApi = /** @class */ (function (_super) {
948
- tslib_1.__extends(NotificationResourceV1DeleteBehaviorGroupApi, _super);
949
- function NotificationResourceV1DeleteBehaviorGroupApi() {
950
- return _super !== null && _super.apply(this, arguments) || this;
951
- }
952
- /**
953
- * Deletes a behavior group and all of its configured actions. Use this endpoint when you no longer need a behavior group.
954
- * @summary Delete a behavior group
955
- * @param {string} id The UUID of the behavior group to delete
956
- * @param {*} [options] Override http request option.
957
- * @throws {RequiredError}
958
- * @memberof NotificationResourceV1DeleteBehaviorGroupApi
959
- */
960
- NotificationResourceV1DeleteBehaviorGroupApi.prototype.notificationResourceV1DeleteBehaviorGroup = function (id, options) {
961
- var _this = this;
962
- return (0, exports.NotificationResourceV1DeleteBehaviorGroupApiFp)(this.configuration).notificationResourceV1DeleteBehaviorGroup(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
963
- };
964
- return NotificationResourceV1DeleteBehaviorGroupApi;
965
- }(base_1.BaseAPI));
966
- exports.NotificationResourceV1DeleteBehaviorGroupApi = NotificationResourceV1DeleteBehaviorGroupApi;
967
- /**
968
- * NotificationResourceV1DeleteBehaviorGroupFromEventTypeApi - axios parameter creator
969
- * @export
970
- */
971
- var NotificationResourceV1DeleteBehaviorGroupFromEventTypeApiAxiosParamCreator = function (configuration) {
972
- var _this = this;
973
- return {
974
- /**
975
- * Delete a behavior group from the specified event type.
976
- * @summary Delete a behavior group from an event type
977
- * @param {string} behaviorGroupId
978
- * @param {string} eventTypeId
979
- * @param {*} [options] Override http request option.
980
- * @throws {RequiredError}
981
- */
982
- notificationResourceV1DeleteBehaviorGroupFromEventType: function (behaviorGroupId, eventTypeId, options) {
983
- if (options === void 0) { options = {}; }
984
- return tslib_1.__awaiter(_this, void 0, void 0, function () {
985
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
986
- return tslib_1.__generator(this, function (_a) {
987
- // verify required parameter 'behaviorGroupId' is not null or undefined
988
- (0, common_1.assertParamExists)('notificationResourceV1DeleteBehaviorGroupFromEventType', 'behaviorGroupId', behaviorGroupId);
989
- // verify required parameter 'eventTypeId' is not null or undefined
990
- (0, common_1.assertParamExists)('notificationResourceV1DeleteBehaviorGroupFromEventType', 'eventTypeId', eventTypeId);
991
- localVarPath = "/notifications/eventTypes/{eventTypeId}/behaviorGroups/{behaviorGroupId}"
992
- .replace("{".concat("behaviorGroupId", "}"), encodeURIComponent(String(behaviorGroupId)))
993
- .replace("{".concat("eventTypeId", "}"), encodeURIComponent(String(eventTypeId)));
994
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
995
- if (configuration) {
996
- baseOptions = configuration.baseOptions;
997
- }
998
- localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'DELETE' }, baseOptions), options);
999
- localVarHeaderParameter = {};
1000
- localVarQueryParameter = {};
1001
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1002
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1003
- localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1004
- return [2 /*return*/, {
1005
- url: (0, common_1.toPathString)(localVarUrlObj),
1006
- options: localVarRequestOptions,
1007
- }];
1008
- });
1009
- });
1010
- },
1011
- };
1012
- };
1013
- exports.NotificationResourceV1DeleteBehaviorGroupFromEventTypeApiAxiosParamCreator = NotificationResourceV1DeleteBehaviorGroupFromEventTypeApiAxiosParamCreator;
1014
- /**
1015
- * NotificationResourceV1DeleteBehaviorGroupFromEventTypeApi - functional programming interface
1016
- * @export
1017
- */
1018
- var NotificationResourceV1DeleteBehaviorGroupFromEventTypeApiFp = function (configuration) {
1019
- var localVarAxiosParamCreator = (0, exports.NotificationResourceV1DeleteBehaviorGroupFromEventTypeApiAxiosParamCreator)(configuration);
1020
- return {
1021
- /**
1022
- * Delete a behavior group from the specified event type.
1023
- * @summary Delete a behavior group from an event type
1024
- * @param {string} behaviorGroupId
1025
- * @param {string} eventTypeId
1026
- * @param {*} [options] Override http request option.
1027
- * @throws {RequiredError}
1028
- */
1029
- notificationResourceV1DeleteBehaviorGroupFromEventType: function (behaviorGroupId, eventTypeId, options) {
1030
- return tslib_1.__awaiter(this, void 0, void 0, function () {
1031
- var localVarAxiosArgs;
1032
- return tslib_1.__generator(this, function (_a) {
1033
- switch (_a.label) {
1034
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.notificationResourceV1DeleteBehaviorGroupFromEventType(behaviorGroupId, eventTypeId, options)];
1035
- case 1:
1036
- localVarAxiosArgs = _a.sent();
1037
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1038
- }
1039
- });
1040
- });
1041
- },
1042
- };
1043
- };
1044
- exports.NotificationResourceV1DeleteBehaviorGroupFromEventTypeApiFp = NotificationResourceV1DeleteBehaviorGroupFromEventTypeApiFp;
1045
- /**
1046
- * NotificationResourceV1DeleteBehaviorGroupFromEventTypeApi - factory interface
1047
- * @export
1048
- */
1049
- var NotificationResourceV1DeleteBehaviorGroupFromEventTypeApiFactory = function (configuration, basePath, axios) {
1050
- var localVarFp = (0, exports.NotificationResourceV1DeleteBehaviorGroupFromEventTypeApiFp)(configuration);
1051
- return {
1052
- /**
1053
- * Delete a behavior group from the specified event type.
1054
- * @summary Delete a behavior group from an event type
1055
- * @param {string} behaviorGroupId
1056
- * @param {string} eventTypeId
1057
- * @param {*} [options] Override http request option.
1058
- * @throws {RequiredError}
1059
- */
1060
- notificationResourceV1DeleteBehaviorGroupFromEventType: function (behaviorGroupId, eventTypeId, options) {
1061
- return localVarFp.notificationResourceV1DeleteBehaviorGroupFromEventType(behaviorGroupId, eventTypeId, options).then(function (request) { return request(axios, basePath); });
1062
- },
1063
- };
1064
- };
1065
- exports.NotificationResourceV1DeleteBehaviorGroupFromEventTypeApiFactory = NotificationResourceV1DeleteBehaviorGroupFromEventTypeApiFactory;
1066
- /**
1067
- * NotificationResourceV1DeleteBehaviorGroupFromEventTypeApi - object-oriented interface
1068
- * @export
1069
- * @class NotificationResourceV1DeleteBehaviorGroupFromEventTypeApi
1070
- * @extends {BaseAPI}
1071
- */
1072
- var NotificationResourceV1DeleteBehaviorGroupFromEventTypeApi = /** @class */ (function (_super) {
1073
- tslib_1.__extends(NotificationResourceV1DeleteBehaviorGroupFromEventTypeApi, _super);
1074
- function NotificationResourceV1DeleteBehaviorGroupFromEventTypeApi() {
1075
- return _super !== null && _super.apply(this, arguments) || this;
1076
- }
1077
- /**
1078
- * Delete a behavior group from the specified event type.
1079
- * @summary Delete a behavior group from an event type
1080
- * @param {string} behaviorGroupId
1081
- * @param {string} eventTypeId
1082
- * @param {*} [options] Override http request option.
1083
- * @throws {RequiredError}
1084
- * @memberof NotificationResourceV1DeleteBehaviorGroupFromEventTypeApi
1085
- */
1086
- NotificationResourceV1DeleteBehaviorGroupFromEventTypeApi.prototype.notificationResourceV1DeleteBehaviorGroupFromEventType = function (behaviorGroupId, eventTypeId, options) {
1087
- var _this = this;
1088
- return (0, exports.NotificationResourceV1DeleteBehaviorGroupFromEventTypeApiFp)(this.configuration).notificationResourceV1DeleteBehaviorGroupFromEventType(behaviorGroupId, eventTypeId, options).then(function (request) { return request(_this.axios, _this.basePath); });
1089
- };
1090
- return NotificationResourceV1DeleteBehaviorGroupFromEventTypeApi;
1091
- }(base_1.BaseAPI));
1092
- exports.NotificationResourceV1DeleteBehaviorGroupFromEventTypeApi = NotificationResourceV1DeleteBehaviorGroupFromEventTypeApi;
1093
- /**
1094
- * NotificationResourceV1FindBehaviorGroupsByBundleIdApi - axios parameter creator
1095
- * @export
1096
- */
1097
- var NotificationResourceV1FindBehaviorGroupsByBundleIdApiAxiosParamCreator = function (configuration) {
1098
- var _this = this;
1099
- return {
1100
- /**
1101
- * Lists the behavior groups associated with a bundle. Use this endpoint to see the behavior groups that are configured for a particular bundle for a particular tenant.
1102
- * @summary List behavior groups in a bundle
1103
- * @param {string} bundleId UUID of the bundle to retrieve the behavior groups for.
1104
- * @param {*} [options] Override http request option.
1105
- * @throws {RequiredError}
1106
- */
1107
- notificationResourceV1FindBehaviorGroupsByBundleId: function (bundleId, options) {
1108
- if (options === void 0) { options = {}; }
1109
- return tslib_1.__awaiter(_this, void 0, void 0, function () {
1110
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1111
- return tslib_1.__generator(this, function (_a) {
1112
- // verify required parameter 'bundleId' is not null or undefined
1113
- (0, common_1.assertParamExists)('notificationResourceV1FindBehaviorGroupsByBundleId', 'bundleId', bundleId);
1114
- localVarPath = "/notifications/bundles/{bundleId}/behaviorGroups"
1115
- .replace("{".concat("bundleId", "}"), encodeURIComponent(String(bundleId)));
1116
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1117
- if (configuration) {
1118
- baseOptions = configuration.baseOptions;
1119
- }
1120
- localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'GET' }, baseOptions), options);
1121
- localVarHeaderParameter = {};
1122
- localVarQueryParameter = {};
1123
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1124
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1125
- localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1126
- return [2 /*return*/, {
1127
- url: (0, common_1.toPathString)(localVarUrlObj),
1128
- options: localVarRequestOptions,
1129
- }];
1130
- });
1131
- });
1132
- },
1133
- };
1134
- };
1135
- exports.NotificationResourceV1FindBehaviorGroupsByBundleIdApiAxiosParamCreator = NotificationResourceV1FindBehaviorGroupsByBundleIdApiAxiosParamCreator;
1136
- /**
1137
- * NotificationResourceV1FindBehaviorGroupsByBundleIdApi - functional programming interface
1138
- * @export
1139
- */
1140
- var NotificationResourceV1FindBehaviorGroupsByBundleIdApiFp = function (configuration) {
1141
- var localVarAxiosParamCreator = (0, exports.NotificationResourceV1FindBehaviorGroupsByBundleIdApiAxiosParamCreator)(configuration);
1142
- return {
1143
- /**
1144
- * Lists the behavior groups associated with a bundle. Use this endpoint to see the behavior groups that are configured for a particular bundle for a particular tenant.
1145
- * @summary List behavior groups in a bundle
1146
- * @param {string} bundleId UUID of the bundle to retrieve the behavior groups for.
1147
- * @param {*} [options] Override http request option.
1148
- * @throws {RequiredError}
1149
- */
1150
- notificationResourceV1FindBehaviorGroupsByBundleId: function (bundleId, options) {
1151
- return tslib_1.__awaiter(this, void 0, void 0, function () {
1152
- var localVarAxiosArgs;
1153
- return tslib_1.__generator(this, function (_a) {
1154
- switch (_a.label) {
1155
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.notificationResourceV1FindBehaviorGroupsByBundleId(bundleId, options)];
1156
- case 1:
1157
- localVarAxiosArgs = _a.sent();
1158
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1159
- }
1160
- });
1161
- });
1162
- },
1163
- };
1164
- };
1165
- exports.NotificationResourceV1FindBehaviorGroupsByBundleIdApiFp = NotificationResourceV1FindBehaviorGroupsByBundleIdApiFp;
1166
- /**
1167
- * NotificationResourceV1FindBehaviorGroupsByBundleIdApi - factory interface
1168
- * @export
1169
- */
1170
- var NotificationResourceV1FindBehaviorGroupsByBundleIdApiFactory = function (configuration, basePath, axios) {
1171
- var localVarFp = (0, exports.NotificationResourceV1FindBehaviorGroupsByBundleIdApiFp)(configuration);
1172
- return {
1173
- /**
1174
- * Lists the behavior groups associated with a bundle. Use this endpoint to see the behavior groups that are configured for a particular bundle for a particular tenant.
1175
- * @summary List behavior groups in a bundle
1176
- * @param {string} bundleId UUID of the bundle to retrieve the behavior groups for.
1177
- * @param {*} [options] Override http request option.
1178
- * @throws {RequiredError}
1179
- */
1180
- notificationResourceV1FindBehaviorGroupsByBundleId: function (bundleId, options) {
1181
- return localVarFp.notificationResourceV1FindBehaviorGroupsByBundleId(bundleId, options).then(function (request) { return request(axios, basePath); });
1182
- },
1183
- };
1184
- };
1185
- exports.NotificationResourceV1FindBehaviorGroupsByBundleIdApiFactory = NotificationResourceV1FindBehaviorGroupsByBundleIdApiFactory;
1186
- /**
1187
- * NotificationResourceV1FindBehaviorGroupsByBundleIdApi - object-oriented interface
1188
- * @export
1189
- * @class NotificationResourceV1FindBehaviorGroupsByBundleIdApi
1190
- * @extends {BaseAPI}
1191
- */
1192
- var NotificationResourceV1FindBehaviorGroupsByBundleIdApi = /** @class */ (function (_super) {
1193
- tslib_1.__extends(NotificationResourceV1FindBehaviorGroupsByBundleIdApi, _super);
1194
- function NotificationResourceV1FindBehaviorGroupsByBundleIdApi() {
1195
- return _super !== null && _super.apply(this, arguments) || this;
1196
- }
1197
- /**
1198
- * Lists the behavior groups associated with a bundle. Use this endpoint to see the behavior groups that are configured for a particular bundle for a particular tenant.
1199
- * @summary List behavior groups in a bundle
1200
- * @param {string} bundleId UUID of the bundle to retrieve the behavior groups for.
1201
- * @param {*} [options] Override http request option.
1202
- * @throws {RequiredError}
1203
- * @memberof NotificationResourceV1FindBehaviorGroupsByBundleIdApi
1204
- */
1205
- NotificationResourceV1FindBehaviorGroupsByBundleIdApi.prototype.notificationResourceV1FindBehaviorGroupsByBundleId = function (bundleId, options) {
1206
- var _this = this;
1207
- return (0, exports.NotificationResourceV1FindBehaviorGroupsByBundleIdApiFp)(this.configuration).notificationResourceV1FindBehaviorGroupsByBundleId(bundleId, options).then(function (request) { return request(_this.axios, _this.basePath); });
1208
- };
1209
- return NotificationResourceV1FindBehaviorGroupsByBundleIdApi;
1210
- }(base_1.BaseAPI));
1211
- exports.NotificationResourceV1FindBehaviorGroupsByBundleIdApi = NotificationResourceV1FindBehaviorGroupsByBundleIdApi;
1212
- /**
1213
- * NotificationResourceV1GetApplicationByNameAndBundleNameApi - axios parameter creator
1214
- * @export
1215
- */
1216
- var NotificationResourceV1GetApplicationByNameAndBundleNameApiAxiosParamCreator = function (configuration) {
1217
- var _this = this;
1218
- return {
1219
- /**
1220
- * Retrieves an application by bundle and application names. Use this endpoint to find an application by searching for the bundle that the application is part of. This is useful if you do not know the UUID of the bundle or application.
1221
- * @summary Retrieve an application by bundle and application names
1222
- * @param {string} applicationName
1223
- * @param {string} bundleName
1224
- * @param {*} [options] Override http request option.
1225
- * @throws {RequiredError}
1226
- */
1227
- notificationResourceV1GetApplicationByNameAndBundleName: function (applicationName, bundleName, options) {
1228
- if (options === void 0) { options = {}; }
1229
- return tslib_1.__awaiter(_this, void 0, void 0, function () {
1230
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1231
- return tslib_1.__generator(this, function (_a) {
1232
- // verify required parameter 'applicationName' is not null or undefined
1233
- (0, common_1.assertParamExists)('notificationResourceV1GetApplicationByNameAndBundleName', 'applicationName', applicationName);
1234
- // verify required parameter 'bundleName' is not null or undefined
1235
- (0, common_1.assertParamExists)('notificationResourceV1GetApplicationByNameAndBundleName', 'bundleName', bundleName);
1236
- localVarPath = "/notifications/bundles/{bundleName}/applications/{applicationName}"
1237
- .replace("{".concat("applicationName", "}"), encodeURIComponent(String(applicationName)))
1238
- .replace("{".concat("bundleName", "}"), encodeURIComponent(String(bundleName)));
1239
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1240
- if (configuration) {
1241
- baseOptions = configuration.baseOptions;
1242
- }
1243
- localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'GET' }, baseOptions), options);
1244
- localVarHeaderParameter = {};
1245
- localVarQueryParameter = {};
1246
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1247
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1248
- localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1249
- return [2 /*return*/, {
1250
- url: (0, common_1.toPathString)(localVarUrlObj),
1251
- options: localVarRequestOptions,
1252
- }];
1253
- });
1254
- });
1255
- },
1256
- };
1257
- };
1258
- exports.NotificationResourceV1GetApplicationByNameAndBundleNameApiAxiosParamCreator = NotificationResourceV1GetApplicationByNameAndBundleNameApiAxiosParamCreator;
1259
- /**
1260
- * NotificationResourceV1GetApplicationByNameAndBundleNameApi - functional programming interface
1261
- * @export
1262
- */
1263
- var NotificationResourceV1GetApplicationByNameAndBundleNameApiFp = function (configuration) {
1264
- var localVarAxiosParamCreator = (0, exports.NotificationResourceV1GetApplicationByNameAndBundleNameApiAxiosParamCreator)(configuration);
1265
- return {
1266
- /**
1267
- * Retrieves an application by bundle and application names. Use this endpoint to find an application by searching for the bundle that the application is part of. This is useful if you do not know the UUID of the bundle or application.
1268
- * @summary Retrieve an application by bundle and application names
1269
- * @param {string} applicationName
1270
- * @param {string} bundleName
1271
- * @param {*} [options] Override http request option.
1272
- * @throws {RequiredError}
1273
- */
1274
- notificationResourceV1GetApplicationByNameAndBundleName: function (applicationName, bundleName, options) {
1275
- return tslib_1.__awaiter(this, void 0, void 0, function () {
1276
- var localVarAxiosArgs;
1277
- return tslib_1.__generator(this, function (_a) {
1278
- switch (_a.label) {
1279
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.notificationResourceV1GetApplicationByNameAndBundleName(applicationName, bundleName, options)];
1280
- case 1:
1281
- localVarAxiosArgs = _a.sent();
1282
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1283
- }
1284
- });
1285
- });
1286
- },
1287
- };
1288
- };
1289
- exports.NotificationResourceV1GetApplicationByNameAndBundleNameApiFp = NotificationResourceV1GetApplicationByNameAndBundleNameApiFp;
1290
- /**
1291
- * NotificationResourceV1GetApplicationByNameAndBundleNameApi - factory interface
1292
- * @export
1293
- */
1294
- var NotificationResourceV1GetApplicationByNameAndBundleNameApiFactory = function (configuration, basePath, axios) {
1295
- var localVarFp = (0, exports.NotificationResourceV1GetApplicationByNameAndBundleNameApiFp)(configuration);
1296
- return {
1297
- /**
1298
- * Retrieves an application by bundle and application names. Use this endpoint to find an application by searching for the bundle that the application is part of. This is useful if you do not know the UUID of the bundle or application.
1299
- * @summary Retrieve an application by bundle and application names
1300
- * @param {string} applicationName
1301
- * @param {string} bundleName
1302
- * @param {*} [options] Override http request option.
1303
- * @throws {RequiredError}
1304
- */
1305
- notificationResourceV1GetApplicationByNameAndBundleName: function (applicationName, bundleName, options) {
1306
- return localVarFp.notificationResourceV1GetApplicationByNameAndBundleName(applicationName, bundleName, options).then(function (request) { return request(axios, basePath); });
1307
- },
1308
- };
1309
- };
1310
- exports.NotificationResourceV1GetApplicationByNameAndBundleNameApiFactory = NotificationResourceV1GetApplicationByNameAndBundleNameApiFactory;
1311
- /**
1312
- * NotificationResourceV1GetApplicationByNameAndBundleNameApi - object-oriented interface
1313
- * @export
1314
- * @class NotificationResourceV1GetApplicationByNameAndBundleNameApi
1315
- * @extends {BaseAPI}
1316
- */
1317
- var NotificationResourceV1GetApplicationByNameAndBundleNameApi = /** @class */ (function (_super) {
1318
- tslib_1.__extends(NotificationResourceV1GetApplicationByNameAndBundleNameApi, _super);
1319
- function NotificationResourceV1GetApplicationByNameAndBundleNameApi() {
1320
- return _super !== null && _super.apply(this, arguments) || this;
1321
- }
1322
- /**
1323
- * Retrieves an application by bundle and application names. Use this endpoint to find an application by searching for the bundle that the application is part of. This is useful if you do not know the UUID of the bundle or application.
1324
- * @summary Retrieve an application by bundle and application names
1325
- * @param {string} applicationName
1326
- * @param {string} bundleName
1327
- * @param {*} [options] Override http request option.
1328
- * @throws {RequiredError}
1329
- * @memberof NotificationResourceV1GetApplicationByNameAndBundleNameApi
1330
- */
1331
- NotificationResourceV1GetApplicationByNameAndBundleNameApi.prototype.notificationResourceV1GetApplicationByNameAndBundleName = function (applicationName, bundleName, options) {
1332
- var _this = this;
1333
- return (0, exports.NotificationResourceV1GetApplicationByNameAndBundleNameApiFp)(this.configuration).notificationResourceV1GetApplicationByNameAndBundleName(applicationName, bundleName, options).then(function (request) { return request(_this.axios, _this.basePath); });
1334
- };
1335
- return NotificationResourceV1GetApplicationByNameAndBundleNameApi;
1336
- }(base_1.BaseAPI));
1337
- exports.NotificationResourceV1GetApplicationByNameAndBundleNameApi = NotificationResourceV1GetApplicationByNameAndBundleNameApi;
1338
- /**
1339
- * NotificationResourceV1GetApplicationsFacetsApi - axios parameter creator
1340
- * @export
1341
- */
1342
- var NotificationResourceV1GetApplicationsFacetsApiAxiosParamCreator = function (configuration) {
1343
- var _this = this;
1344
- return {
1345
- /**
1346
- * Returns a list of configured applications that includes the application name, the display name, and the ID. You can use this list to configure a filter in the UI.
1347
- * @summary List configured applications
1348
- * @param {string} [bundleName]
1349
- * @param {*} [options] Override http request option.
1350
- * @throws {RequiredError}
1351
- */
1352
- notificationResourceV1GetApplicationsFacets: function (bundleName, options) {
1353
- if (options === void 0) { options = {}; }
1354
- return tslib_1.__awaiter(_this, void 0, void 0, function () {
1355
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1356
- return tslib_1.__generator(this, function (_a) {
1357
- localVarPath = "/notifications/facets/applications";
1358
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1359
- if (configuration) {
1360
- baseOptions = configuration.baseOptions;
1361
- }
1362
- localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'GET' }, baseOptions), options);
1363
- localVarHeaderParameter = {};
1364
- localVarQueryParameter = {};
1365
- if (bundleName !== undefined) {
1366
- localVarQueryParameter['bundleName'] = bundleName;
1367
- }
1368
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1369
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1370
- localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1371
- return [2 /*return*/, {
1372
- url: (0, common_1.toPathString)(localVarUrlObj),
1373
- options: localVarRequestOptions,
1374
- }];
1375
- });
1376
- });
1377
- },
1378
- };
1379
- };
1380
- exports.NotificationResourceV1GetApplicationsFacetsApiAxiosParamCreator = NotificationResourceV1GetApplicationsFacetsApiAxiosParamCreator;
1381
- /**
1382
- * NotificationResourceV1GetApplicationsFacetsApi - functional programming interface
1383
- * @export
1384
- */
1385
- var NotificationResourceV1GetApplicationsFacetsApiFp = function (configuration) {
1386
- var localVarAxiosParamCreator = (0, exports.NotificationResourceV1GetApplicationsFacetsApiAxiosParamCreator)(configuration);
1387
- return {
1388
- /**
1389
- * Returns a list of configured applications that includes the application name, the display name, and the ID. You can use this list to configure a filter in the UI.
1390
- * @summary List configured applications
1391
- * @param {string} [bundleName]
1392
- * @param {*} [options] Override http request option.
1393
- * @throws {RequiredError}
1394
- */
1395
- notificationResourceV1GetApplicationsFacets: function (bundleName, options) {
1396
- return tslib_1.__awaiter(this, void 0, void 0, function () {
1397
- var localVarAxiosArgs;
1398
- return tslib_1.__generator(this, function (_a) {
1399
- switch (_a.label) {
1400
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.notificationResourceV1GetApplicationsFacets(bundleName, options)];
1401
- case 1:
1402
- localVarAxiosArgs = _a.sent();
1403
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1404
- }
1405
- });
1406
- });
1407
- },
1408
- };
1409
- };
1410
- exports.NotificationResourceV1GetApplicationsFacetsApiFp = NotificationResourceV1GetApplicationsFacetsApiFp;
1411
- /**
1412
- * NotificationResourceV1GetApplicationsFacetsApi - factory interface
1413
- * @export
1414
- */
1415
- var NotificationResourceV1GetApplicationsFacetsApiFactory = function (configuration, basePath, axios) {
1416
- var localVarFp = (0, exports.NotificationResourceV1GetApplicationsFacetsApiFp)(configuration);
1417
- return {
1418
- /**
1419
- * Returns a list of configured applications that includes the application name, the display name, and the ID. You can use this list to configure a filter in the UI.
1420
- * @summary List configured applications
1421
- * @param {string} [bundleName]
1422
- * @param {*} [options] Override http request option.
1423
- * @throws {RequiredError}
1424
- */
1425
- notificationResourceV1GetApplicationsFacets: function (bundleName, options) {
1426
- return localVarFp.notificationResourceV1GetApplicationsFacets(bundleName, options).then(function (request) { return request(axios, basePath); });
1427
- },
1428
- };
1429
- };
1430
- exports.NotificationResourceV1GetApplicationsFacetsApiFactory = NotificationResourceV1GetApplicationsFacetsApiFactory;
1431
- /**
1432
- * NotificationResourceV1GetApplicationsFacetsApi - object-oriented interface
1433
- * @export
1434
- * @class NotificationResourceV1GetApplicationsFacetsApi
1435
- * @extends {BaseAPI}
1436
- */
1437
- var NotificationResourceV1GetApplicationsFacetsApi = /** @class */ (function (_super) {
1438
- tslib_1.__extends(NotificationResourceV1GetApplicationsFacetsApi, _super);
1439
- function NotificationResourceV1GetApplicationsFacetsApi() {
1440
- return _super !== null && _super.apply(this, arguments) || this;
1441
- }
1442
- /**
1443
- * Returns a list of configured applications that includes the application name, the display name, and the ID. You can use this list to configure a filter in the UI.
1444
- * @summary List configured applications
1445
- * @param {string} [bundleName]
1446
- * @param {*} [options] Override http request option.
1447
- * @throws {RequiredError}
1448
- * @memberof NotificationResourceV1GetApplicationsFacetsApi
1449
- */
1450
- NotificationResourceV1GetApplicationsFacetsApi.prototype.notificationResourceV1GetApplicationsFacets = function (bundleName, options) {
1451
- var _this = this;
1452
- return (0, exports.NotificationResourceV1GetApplicationsFacetsApiFp)(this.configuration).notificationResourceV1GetApplicationsFacets(bundleName, options).then(function (request) { return request(_this.axios, _this.basePath); });
1453
- };
1454
- return NotificationResourceV1GetApplicationsFacetsApi;
1455
- }(base_1.BaseAPI));
1456
- exports.NotificationResourceV1GetApplicationsFacetsApi = NotificationResourceV1GetApplicationsFacetsApi;
1457
- /**
1458
- * NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApi - axios parameter creator
1459
- * @export
1460
- */
1461
- var NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApiAxiosParamCreator = function (configuration) {
1462
- var _this = this;
1463
- return {
1464
- /**
1465
- * Lists the behavior groups that are affected by the removal of an endpoint. Use this endpoint to understand how removing an endpoint affects existing behavior groups.
1466
- * @summary List the behavior groups affected by the removal of an endpoint
1467
- * @param {string} endpointId
1468
- * @param {*} [options] Override http request option.
1469
- * @throws {RequiredError}
1470
- */
1471
- notificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpoint: function (endpointId, options) {
1472
- if (options === void 0) { options = {}; }
1473
- return tslib_1.__awaiter(_this, void 0, void 0, function () {
1474
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1475
- return tslib_1.__generator(this, function (_a) {
1476
- // verify required parameter 'endpointId' is not null or undefined
1477
- (0, common_1.assertParamExists)('notificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpoint', 'endpointId', endpointId);
1478
- localVarPath = "/notifications/behaviorGroups/affectedByRemovalOfEndpoint/{endpointId}"
1479
- .replace("{".concat("endpointId", "}"), encodeURIComponent(String(endpointId)));
1480
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1481
- if (configuration) {
1482
- baseOptions = configuration.baseOptions;
1483
- }
1484
- localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'GET' }, baseOptions), options);
1485
- localVarHeaderParameter = {};
1486
- localVarQueryParameter = {};
1487
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1488
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1489
- localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1490
- return [2 /*return*/, {
1491
- url: (0, common_1.toPathString)(localVarUrlObj),
1492
- options: localVarRequestOptions,
1493
- }];
1494
- });
1495
- });
1496
- },
1497
- };
1498
- };
1499
- exports.NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApiAxiosParamCreator = NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApiAxiosParamCreator;
1500
- /**
1501
- * NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApi - functional programming interface
1502
- * @export
1503
- */
1504
- var NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApiFp = function (configuration) {
1505
- var localVarAxiosParamCreator = (0, exports.NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApiAxiosParamCreator)(configuration);
1506
- return {
1507
- /**
1508
- * Lists the behavior groups that are affected by the removal of an endpoint. Use this endpoint to understand how removing an endpoint affects existing behavior groups.
1509
- * @summary List the behavior groups affected by the removal of an endpoint
1510
- * @param {string} endpointId
1511
- * @param {*} [options] Override http request option.
1512
- * @throws {RequiredError}
1513
- */
1514
- notificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpoint: function (endpointId, options) {
1515
- return tslib_1.__awaiter(this, void 0, void 0, function () {
1516
- var localVarAxiosArgs;
1517
- return tslib_1.__generator(this, function (_a) {
1518
- switch (_a.label) {
1519
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.notificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpoint(endpointId, options)];
1520
- case 1:
1521
- localVarAxiosArgs = _a.sent();
1522
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1523
- }
1524
- });
1525
- });
1526
- },
1527
- };
1528
- };
1529
- exports.NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApiFp = NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApiFp;
1530
- /**
1531
- * NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApi - factory interface
1532
- * @export
1533
- */
1534
- var NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApiFactory = function (configuration, basePath, axios) {
1535
- var localVarFp = (0, exports.NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApiFp)(configuration);
1536
- return {
1537
- /**
1538
- * Lists the behavior groups that are affected by the removal of an endpoint. Use this endpoint to understand how removing an endpoint affects existing behavior groups.
1539
- * @summary List the behavior groups affected by the removal of an endpoint
1540
- * @param {string} endpointId
1541
- * @param {*} [options] Override http request option.
1542
- * @throws {RequiredError}
1543
- */
1544
- notificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpoint: function (endpointId, options) {
1545
- return localVarFp.notificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpoint(endpointId, options).then(function (request) { return request(axios, basePath); });
1546
- },
1547
- };
1548
- };
1549
- exports.NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApiFactory = NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApiFactory;
1550
- /**
1551
- * NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApi - object-oriented interface
1552
- * @export
1553
- * @class NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApi
1554
- * @extends {BaseAPI}
1555
- */
1556
- var NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApi = /** @class */ (function (_super) {
1557
- tslib_1.__extends(NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApi, _super);
1558
- function NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApi() {
1559
- return _super !== null && _super.apply(this, arguments) || this;
1560
- }
1561
- /**
1562
- * Lists the behavior groups that are affected by the removal of an endpoint. Use this endpoint to understand how removing an endpoint affects existing behavior groups.
1563
- * @summary List the behavior groups affected by the removal of an endpoint
1564
- * @param {string} endpointId
1565
- * @param {*} [options] Override http request option.
1566
- * @throws {RequiredError}
1567
- * @memberof NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApi
1568
- */
1569
- NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApi.prototype.notificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpoint = function (endpointId, options) {
1570
- var _this = this;
1571
- return (0, exports.NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApiFp)(this.configuration).notificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpoint(endpointId, options).then(function (request) { return request(_this.axios, _this.basePath); });
1572
- };
1573
- return NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApi;
1574
- }(base_1.BaseAPI));
1575
- exports.NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApi = NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApi;
1576
- /**
1577
- * NotificationResourceV1GetBundleByNameApi - axios parameter creator
1578
- * @export
1579
- */
1580
- var NotificationResourceV1GetBundleByNameApiAxiosParamCreator = function (configuration) {
1581
- var _this = this;
1582
- return {
1583
- /**
1584
- * Retrieves the details of a bundle by searching by its name.
1585
- * @summary Retrieve a bundle by name
1586
- * @param {string} bundleName
1587
- * @param {*} [options] Override http request option.
1588
- * @throws {RequiredError}
1589
- */
1590
- notificationResourceV1GetBundleByName: function (bundleName, options) {
1591
- if (options === void 0) { options = {}; }
1592
- return tslib_1.__awaiter(_this, void 0, void 0, function () {
1593
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1594
- return tslib_1.__generator(this, function (_a) {
1595
- // verify required parameter 'bundleName' is not null or undefined
1596
- (0, common_1.assertParamExists)('notificationResourceV1GetBundleByName', 'bundleName', bundleName);
1597
- localVarPath = "/notifications/bundles/{bundleName}"
1598
- .replace("{".concat("bundleName", "}"), encodeURIComponent(String(bundleName)));
1599
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1600
- if (configuration) {
1601
- baseOptions = configuration.baseOptions;
1602
- }
1603
- localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'GET' }, baseOptions), options);
1604
- localVarHeaderParameter = {};
1605
- localVarQueryParameter = {};
1606
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1607
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1608
- localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1609
- return [2 /*return*/, {
1610
- url: (0, common_1.toPathString)(localVarUrlObj),
1611
- options: localVarRequestOptions,
1612
- }];
1613
- });
1614
- });
1615
- },
1616
- };
1617
- };
1618
- exports.NotificationResourceV1GetBundleByNameApiAxiosParamCreator = NotificationResourceV1GetBundleByNameApiAxiosParamCreator;
1619
- /**
1620
- * NotificationResourceV1GetBundleByNameApi - functional programming interface
1621
- * @export
1622
- */
1623
- var NotificationResourceV1GetBundleByNameApiFp = function (configuration) {
1624
- var localVarAxiosParamCreator = (0, exports.NotificationResourceV1GetBundleByNameApiAxiosParamCreator)(configuration);
1625
- return {
1626
- /**
1627
- * Retrieves the details of a bundle by searching by its name.
1628
- * @summary Retrieve a bundle by name
1629
- * @param {string} bundleName
1630
- * @param {*} [options] Override http request option.
1631
- * @throws {RequiredError}
1632
- */
1633
- notificationResourceV1GetBundleByName: function (bundleName, options) {
1634
- return tslib_1.__awaiter(this, void 0, void 0, function () {
1635
- var localVarAxiosArgs;
1636
- return tslib_1.__generator(this, function (_a) {
1637
- switch (_a.label) {
1638
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.notificationResourceV1GetBundleByName(bundleName, options)];
1639
- case 1:
1640
- localVarAxiosArgs = _a.sent();
1641
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1642
- }
1643
- });
1644
- });
1645
- },
1646
- };
1647
- };
1648
- exports.NotificationResourceV1GetBundleByNameApiFp = NotificationResourceV1GetBundleByNameApiFp;
1649
- /**
1650
- * NotificationResourceV1GetBundleByNameApi - factory interface
1651
- * @export
1652
- */
1653
- var NotificationResourceV1GetBundleByNameApiFactory = function (configuration, basePath, axios) {
1654
- var localVarFp = (0, exports.NotificationResourceV1GetBundleByNameApiFp)(configuration);
1655
- return {
1656
- /**
1657
- * Retrieves the details of a bundle by searching by its name.
1658
- * @summary Retrieve a bundle by name
1659
- * @param {string} bundleName
1660
- * @param {*} [options] Override http request option.
1661
- * @throws {RequiredError}
1662
- */
1663
- notificationResourceV1GetBundleByName: function (bundleName, options) {
1664
- return localVarFp.notificationResourceV1GetBundleByName(bundleName, options).then(function (request) { return request(axios, basePath); });
1665
- },
1666
- };
1667
- };
1668
- exports.NotificationResourceV1GetBundleByNameApiFactory = NotificationResourceV1GetBundleByNameApiFactory;
1669
- /**
1670
- * NotificationResourceV1GetBundleByNameApi - object-oriented interface
1671
- * @export
1672
- * @class NotificationResourceV1GetBundleByNameApi
1673
- * @extends {BaseAPI}
1674
- */
1675
- var NotificationResourceV1GetBundleByNameApi = /** @class */ (function (_super) {
1676
- tslib_1.__extends(NotificationResourceV1GetBundleByNameApi, _super);
1677
- function NotificationResourceV1GetBundleByNameApi() {
1678
- return _super !== null && _super.apply(this, arguments) || this;
1679
- }
1680
- /**
1681
- * Retrieves the details of a bundle by searching by its name.
1682
- * @summary Retrieve a bundle by name
1683
- * @param {string} bundleName
1684
- * @param {*} [options] Override http request option.
1685
- * @throws {RequiredError}
1686
- * @memberof NotificationResourceV1GetBundleByNameApi
1687
- */
1688
- NotificationResourceV1GetBundleByNameApi.prototype.notificationResourceV1GetBundleByName = function (bundleName, options) {
1689
- var _this = this;
1690
- return (0, exports.NotificationResourceV1GetBundleByNameApiFp)(this.configuration).notificationResourceV1GetBundleByName(bundleName, options).then(function (request) { return request(_this.axios, _this.basePath); });
1691
- };
1692
- return NotificationResourceV1GetBundleByNameApi;
1693
- }(base_1.BaseAPI));
1694
- exports.NotificationResourceV1GetBundleByNameApi = NotificationResourceV1GetBundleByNameApi;
1695
- /**
1696
- * NotificationResourceV1GetBundleFacetsApi - axios parameter creator
1697
- * @export
1698
- */
1699
- var NotificationResourceV1GetBundleFacetsApiAxiosParamCreator = function (configuration) {
1700
- var _this = this;
1701
- return {
1702
- /**
1703
- * Returns a list of configured bundles that includes the bundle name, the display name, and the ID. You can use this list to configure a filter in the UI.
1704
- * @summary List configured bundles
1705
- * @param {boolean} [includeApplications]
1706
- * @param {*} [options] Override http request option.
1707
- * @throws {RequiredError}
1708
- */
1709
- notificationResourceV1GetBundleFacets: function (includeApplications, options) {
1710
- if (options === void 0) { options = {}; }
1711
- return tslib_1.__awaiter(_this, void 0, void 0, function () {
1712
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1713
- return tslib_1.__generator(this, function (_a) {
1714
- localVarPath = "/notifications/facets/bundles";
1715
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1716
- if (configuration) {
1717
- baseOptions = configuration.baseOptions;
1718
- }
1719
- localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'GET' }, baseOptions), options);
1720
- localVarHeaderParameter = {};
1721
- localVarQueryParameter = {};
1722
- if (includeApplications !== undefined) {
1723
- localVarQueryParameter['includeApplications'] = includeApplications;
1724
- }
1725
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1726
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1727
- localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1728
- return [2 /*return*/, {
1729
- url: (0, common_1.toPathString)(localVarUrlObj),
1730
- options: localVarRequestOptions,
1731
- }];
1732
- });
1733
- });
1734
- },
1735
- };
1736
- };
1737
- exports.NotificationResourceV1GetBundleFacetsApiAxiosParamCreator = NotificationResourceV1GetBundleFacetsApiAxiosParamCreator;
1738
- /**
1739
- * NotificationResourceV1GetBundleFacetsApi - functional programming interface
1740
- * @export
1741
- */
1742
- var NotificationResourceV1GetBundleFacetsApiFp = function (configuration) {
1743
- var localVarAxiosParamCreator = (0, exports.NotificationResourceV1GetBundleFacetsApiAxiosParamCreator)(configuration);
1744
- return {
1745
- /**
1746
- * Returns a list of configured bundles that includes the bundle name, the display name, and the ID. You can use this list to configure a filter in the UI.
1747
- * @summary List configured bundles
1748
- * @param {boolean} [includeApplications]
1749
- * @param {*} [options] Override http request option.
1750
- * @throws {RequiredError}
1751
- */
1752
- notificationResourceV1GetBundleFacets: function (includeApplications, options) {
1753
- return tslib_1.__awaiter(this, void 0, void 0, function () {
1754
- var localVarAxiosArgs;
1755
- return tslib_1.__generator(this, function (_a) {
1756
- switch (_a.label) {
1757
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.notificationResourceV1GetBundleFacets(includeApplications, options)];
1758
- case 1:
1759
- localVarAxiosArgs = _a.sent();
1760
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1761
- }
1762
- });
1763
- });
1764
- },
1765
- };
1766
- };
1767
- exports.NotificationResourceV1GetBundleFacetsApiFp = NotificationResourceV1GetBundleFacetsApiFp;
1768
- /**
1769
- * NotificationResourceV1GetBundleFacetsApi - factory interface
1770
- * @export
1771
- */
1772
- var NotificationResourceV1GetBundleFacetsApiFactory = function (configuration, basePath, axios) {
1773
- var localVarFp = (0, exports.NotificationResourceV1GetBundleFacetsApiFp)(configuration);
1774
- return {
1775
- /**
1776
- * Returns a list of configured bundles that includes the bundle name, the display name, and the ID. You can use this list to configure a filter in the UI.
1777
- * @summary List configured bundles
1778
- * @param {boolean} [includeApplications]
1779
- * @param {*} [options] Override http request option.
1780
- * @throws {RequiredError}
1781
- */
1782
- notificationResourceV1GetBundleFacets: function (includeApplications, options) {
1783
- return localVarFp.notificationResourceV1GetBundleFacets(includeApplications, options).then(function (request) { return request(axios, basePath); });
1784
- },
1785
- };
1786
- };
1787
- exports.NotificationResourceV1GetBundleFacetsApiFactory = NotificationResourceV1GetBundleFacetsApiFactory;
1788
- /**
1789
- * NotificationResourceV1GetBundleFacetsApi - object-oriented interface
1790
- * @export
1791
- * @class NotificationResourceV1GetBundleFacetsApi
1792
- * @extends {BaseAPI}
1793
- */
1794
- var NotificationResourceV1GetBundleFacetsApi = /** @class */ (function (_super) {
1795
- tslib_1.__extends(NotificationResourceV1GetBundleFacetsApi, _super);
1796
- function NotificationResourceV1GetBundleFacetsApi() {
1797
- return _super !== null && _super.apply(this, arguments) || this;
1798
- }
1799
- /**
1800
- * Returns a list of configured bundles that includes the bundle name, the display name, and the ID. You can use this list to configure a filter in the UI.
1801
- * @summary List configured bundles
1802
- * @param {boolean} [includeApplications]
1803
- * @param {*} [options] Override http request option.
1804
- * @throws {RequiredError}
1805
- * @memberof NotificationResourceV1GetBundleFacetsApi
1806
- */
1807
- NotificationResourceV1GetBundleFacetsApi.prototype.notificationResourceV1GetBundleFacets = function (includeApplications, options) {
1808
- var _this = this;
1809
- return (0, exports.NotificationResourceV1GetBundleFacetsApiFp)(this.configuration).notificationResourceV1GetBundleFacets(includeApplications, options).then(function (request) { return request(_this.axios, _this.basePath); });
1810
- };
1811
- return NotificationResourceV1GetBundleFacetsApi;
1812
- }(base_1.BaseAPI));
1813
- exports.NotificationResourceV1GetBundleFacetsApi = NotificationResourceV1GetBundleFacetsApi;
1814
- /**
1815
- * NotificationResourceV1GetEventTypesApi - axios parameter creator
1816
- * @export
1817
- */
1818
- var NotificationResourceV1GetEventTypesApiAxiosParamCreator = function (configuration) {
1819
- var _this = this;
1820
- return {
1821
- /**
1822
- * Lists all event types. You can filter the returned list by bundle, application name, or unmuted types.
1823
- * @summary List all event types
1824
- * @param {Set<string>} [applicationIds]
1825
- * @param {string} [bundleId]
1826
- * @param {string} [eventTypeName]
1827
- * @param {boolean} [excludeMutedTypes]
1828
- * @param {number} [limit]
1829
- * @param {number} [offset]
1830
- * @param {number} [pageNumber]
1831
- * @param {string} [sortBy]
1832
- * @param {string} [sortBy2]
1833
- * @param {*} [options] Override http request option.
1834
- * @throws {RequiredError}
1835
- */
1836
- notificationResourceV1GetEventTypes: function (applicationIds, bundleId, eventTypeName, excludeMutedTypes, limit, offset, pageNumber, sortBy, sortBy2, options) {
1837
- if (options === void 0) { options = {}; }
1838
- return tslib_1.__awaiter(_this, void 0, void 0, function () {
1839
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1840
- return tslib_1.__generator(this, function (_a) {
1841
- localVarPath = "/notifications/eventTypes";
1842
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1843
- if (configuration) {
1844
- baseOptions = configuration.baseOptions;
1845
- }
1846
- localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'GET' }, baseOptions), options);
1847
- localVarHeaderParameter = {};
1848
- localVarQueryParameter = {};
1849
- if (applicationIds) {
1850
- localVarQueryParameter['applicationIds'] = Array.from(applicationIds);
1851
- }
1852
- if (bundleId !== undefined) {
1853
- localVarQueryParameter['bundleId'] = bundleId;
1854
- }
1855
- if (eventTypeName !== undefined) {
1856
- localVarQueryParameter['eventTypeName'] = eventTypeName;
1857
- }
1858
- if (excludeMutedTypes !== undefined) {
1859
- localVarQueryParameter['excludeMutedTypes'] = excludeMutedTypes;
1860
- }
1861
- if (limit !== undefined) {
1862
- localVarQueryParameter['limit'] = limit;
1863
- }
1864
- if (offset !== undefined) {
1865
- localVarQueryParameter['offset'] = offset;
1866
- }
1867
- if (pageNumber !== undefined) {
1868
- localVarQueryParameter['pageNumber'] = pageNumber;
1869
- }
1870
- if (sortBy !== undefined) {
1871
- localVarQueryParameter['sortBy'] = sortBy;
1872
- }
1873
- if (sortBy2 !== undefined) {
1874
- localVarQueryParameter['sort_by'] = sortBy2;
1875
- }
1876
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1877
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1878
- localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1879
- return [2 /*return*/, {
1880
- url: (0, common_1.toPathString)(localVarUrlObj),
1881
- options: localVarRequestOptions,
1882
- }];
1883
- });
1884
- });
1885
- },
1886
- };
1887
- };
1888
- exports.NotificationResourceV1GetEventTypesApiAxiosParamCreator = NotificationResourceV1GetEventTypesApiAxiosParamCreator;
1889
- /**
1890
- * NotificationResourceV1GetEventTypesApi - functional programming interface
1891
- * @export
1892
- */
1893
- var NotificationResourceV1GetEventTypesApiFp = function (configuration) {
1894
- var localVarAxiosParamCreator = (0, exports.NotificationResourceV1GetEventTypesApiAxiosParamCreator)(configuration);
1895
- return {
1896
- /**
1897
- * Lists all event types. You can filter the returned list by bundle, application name, or unmuted types.
1898
- * @summary List all event types
1899
- * @param {Set<string>} [applicationIds]
1900
- * @param {string} [bundleId]
1901
- * @param {string} [eventTypeName]
1902
- * @param {boolean} [excludeMutedTypes]
1903
- * @param {number} [limit]
1904
- * @param {number} [offset]
1905
- * @param {number} [pageNumber]
1906
- * @param {string} [sortBy]
1907
- * @param {string} [sortBy2]
1908
- * @param {*} [options] Override http request option.
1909
- * @throws {RequiredError}
1910
- */
1911
- notificationResourceV1GetEventTypes: function (applicationIds, bundleId, eventTypeName, excludeMutedTypes, limit, offset, pageNumber, sortBy, sortBy2, options) {
1912
- return tslib_1.__awaiter(this, void 0, void 0, function () {
1913
- var localVarAxiosArgs;
1914
- return tslib_1.__generator(this, function (_a) {
1915
- switch (_a.label) {
1916
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.notificationResourceV1GetEventTypes(applicationIds, bundleId, eventTypeName, excludeMutedTypes, limit, offset, pageNumber, sortBy, sortBy2, options)];
1917
- case 1:
1918
- localVarAxiosArgs = _a.sent();
1919
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1920
- }
1921
- });
1922
- });
1923
- },
1924
- };
1925
- };
1926
- exports.NotificationResourceV1GetEventTypesApiFp = NotificationResourceV1GetEventTypesApiFp;
1927
- /**
1928
- * NotificationResourceV1GetEventTypesApi - factory interface
1929
- * @export
1930
- */
1931
- var NotificationResourceV1GetEventTypesApiFactory = function (configuration, basePath, axios) {
1932
- var localVarFp = (0, exports.NotificationResourceV1GetEventTypesApiFp)(configuration);
1933
- return {
1934
- /**
1935
- * Lists all event types. You can filter the returned list by bundle, application name, or unmuted types.
1936
- * @summary List all event types
1937
- * @param {Set<string>} [applicationIds]
1938
- * @param {string} [bundleId]
1939
- * @param {string} [eventTypeName]
1940
- * @param {boolean} [excludeMutedTypes]
1941
- * @param {number} [limit]
1942
- * @param {number} [offset]
1943
- * @param {number} [pageNumber]
1944
- * @param {string} [sortBy]
1945
- * @param {string} [sortBy2]
1946
- * @param {*} [options] Override http request option.
1947
- * @throws {RequiredError}
1948
- */
1949
- notificationResourceV1GetEventTypes: function (applicationIds, bundleId, eventTypeName, excludeMutedTypes, limit, offset, pageNumber, sortBy, sortBy2, options) {
1950
- return localVarFp.notificationResourceV1GetEventTypes(applicationIds, bundleId, eventTypeName, excludeMutedTypes, limit, offset, pageNumber, sortBy, sortBy2, options).then(function (request) { return request(axios, basePath); });
1951
- },
1952
- };
1953
- };
1954
- exports.NotificationResourceV1GetEventTypesApiFactory = NotificationResourceV1GetEventTypesApiFactory;
1955
- /**
1956
- * NotificationResourceV1GetEventTypesApi - object-oriented interface
1957
- * @export
1958
- * @class NotificationResourceV1GetEventTypesApi
1959
- * @extends {BaseAPI}
1960
- */
1961
- var NotificationResourceV1GetEventTypesApi = /** @class */ (function (_super) {
1962
- tslib_1.__extends(NotificationResourceV1GetEventTypesApi, _super);
1963
- function NotificationResourceV1GetEventTypesApi() {
1964
- return _super !== null && _super.apply(this, arguments) || this;
1965
- }
1966
- /**
1967
- * Lists all event types. You can filter the returned list by bundle, application name, or unmuted types.
1968
- * @summary List all event types
1969
- * @param {Set<string>} [applicationIds]
1970
- * @param {string} [bundleId]
1971
- * @param {string} [eventTypeName]
1972
- * @param {boolean} [excludeMutedTypes]
1973
- * @param {number} [limit]
1974
- * @param {number} [offset]
1975
- * @param {number} [pageNumber]
1976
- * @param {string} [sortBy]
1977
- * @param {string} [sortBy2]
1978
- * @param {*} [options] Override http request option.
1979
- * @throws {RequiredError}
1980
- * @memberof NotificationResourceV1GetEventTypesApi
1981
- */
1982
- NotificationResourceV1GetEventTypesApi.prototype.notificationResourceV1GetEventTypes = function (applicationIds, bundleId, eventTypeName, excludeMutedTypes, limit, offset, pageNumber, sortBy, sortBy2, options) {
1983
- var _this = this;
1984
- return (0, exports.NotificationResourceV1GetEventTypesApiFp)(this.configuration).notificationResourceV1GetEventTypes(applicationIds, bundleId, eventTypeName, excludeMutedTypes, limit, offset, pageNumber, sortBy, sortBy2, options).then(function (request) { return request(_this.axios, _this.basePath); });
1985
- };
1986
- return NotificationResourceV1GetEventTypesApi;
1987
- }(base_1.BaseAPI));
1988
- exports.NotificationResourceV1GetEventTypesApi = NotificationResourceV1GetEventTypesApi;
1989
- /**
1990
- * NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApi - axios parameter creator
1991
- * @export
1992
- */
1993
- var NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApiAxiosParamCreator = function (configuration) {
1994
- var _this = this;
1995
- return {
1996
- /**
1997
- * Lists the event types that will be affected by the removal of a behavior group. Use this endpoint to see which event types will be removed if you delete a behavior group.
1998
- * @summary List the event types affected by the removal of a behavior group
1999
- * @param {string} behaviorGroupId The UUID of the behavior group to check
2000
- * @param {*} [options] Override http request option.
2001
- * @throws {RequiredError}
2002
- */
2003
- notificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroup: function (behaviorGroupId, options) {
2004
- if (options === void 0) { options = {}; }
2005
- return tslib_1.__awaiter(_this, void 0, void 0, function () {
2006
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2007
- return tslib_1.__generator(this, function (_a) {
2008
- // verify required parameter 'behaviorGroupId' is not null or undefined
2009
- (0, common_1.assertParamExists)('notificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroup', 'behaviorGroupId', behaviorGroupId);
2010
- localVarPath = "/notifications/eventTypes/affectedByRemovalOfBehaviorGroup/{behaviorGroupId}"
2011
- .replace("{".concat("behaviorGroupId", "}"), encodeURIComponent(String(behaviorGroupId)));
2012
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2013
- if (configuration) {
2014
- baseOptions = configuration.baseOptions;
2015
- }
2016
- localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'GET' }, baseOptions), options);
2017
- localVarHeaderParameter = {};
2018
- localVarQueryParameter = {};
2019
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2020
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2021
- localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2022
- return [2 /*return*/, {
2023
- url: (0, common_1.toPathString)(localVarUrlObj),
2024
- options: localVarRequestOptions,
2025
- }];
2026
- });
2027
- });
2028
- },
2029
- };
2030
- };
2031
- exports.NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApiAxiosParamCreator = NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApiAxiosParamCreator;
2032
- /**
2033
- * NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApi - functional programming interface
2034
- * @export
2035
- */
2036
- var NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApiFp = function (configuration) {
2037
- var localVarAxiosParamCreator = (0, exports.NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApiAxiosParamCreator)(configuration);
2038
- return {
2039
- /**
2040
- * Lists the event types that will be affected by the removal of a behavior group. Use this endpoint to see which event types will be removed if you delete a behavior group.
2041
- * @summary List the event types affected by the removal of a behavior group
2042
- * @param {string} behaviorGroupId The UUID of the behavior group to check
2043
- * @param {*} [options] Override http request option.
2044
- * @throws {RequiredError}
2045
- */
2046
- notificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroup: function (behaviorGroupId, options) {
2047
- return tslib_1.__awaiter(this, void 0, void 0, function () {
2048
- var localVarAxiosArgs;
2049
- return tslib_1.__generator(this, function (_a) {
2050
- switch (_a.label) {
2051
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.notificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroup(behaviorGroupId, options)];
2052
- case 1:
2053
- localVarAxiosArgs = _a.sent();
2054
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2055
- }
2056
- });
2057
- });
2058
- },
2059
- };
2060
- };
2061
- exports.NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApiFp = NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApiFp;
2062
- /**
2063
- * NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApi - factory interface
2064
- * @export
2065
- */
2066
- var NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApiFactory = function (configuration, basePath, axios) {
2067
- var localVarFp = (0, exports.NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApiFp)(configuration);
2068
- return {
2069
- /**
2070
- * Lists the event types that will be affected by the removal of a behavior group. Use this endpoint to see which event types will be removed if you delete a behavior group.
2071
- * @summary List the event types affected by the removal of a behavior group
2072
- * @param {string} behaviorGroupId The UUID of the behavior group to check
2073
- * @param {*} [options] Override http request option.
2074
- * @throws {RequiredError}
2075
- */
2076
- notificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroup: function (behaviorGroupId, options) {
2077
- return localVarFp.notificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroup(behaviorGroupId, options).then(function (request) { return request(axios, basePath); });
2078
- },
2079
- };
2080
- };
2081
- exports.NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApiFactory = NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApiFactory;
2082
- /**
2083
- * NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApi - object-oriented interface
2084
- * @export
2085
- * @class NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApi
2086
- * @extends {BaseAPI}
2087
- */
2088
- var NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApi = /** @class */ (function (_super) {
2089
- tslib_1.__extends(NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApi, _super);
2090
- function NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApi() {
2091
- return _super !== null && _super.apply(this, arguments) || this;
2092
- }
2093
- /**
2094
- * Lists the event types that will be affected by the removal of a behavior group. Use this endpoint to see which event types will be removed if you delete a behavior group.
2095
- * @summary List the event types affected by the removal of a behavior group
2096
- * @param {string} behaviorGroupId The UUID of the behavior group to check
2097
- * @param {*} [options] Override http request option.
2098
- * @throws {RequiredError}
2099
- * @memberof NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApi
2100
- */
2101
- NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApi.prototype.notificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroup = function (behaviorGroupId, options) {
2102
- var _this = this;
2103
- return (0, exports.NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApiFp)(this.configuration).notificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroup(behaviorGroupId, options).then(function (request) { return request(_this.axios, _this.basePath); });
2104
- };
2105
- return NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApi;
2106
- }(base_1.BaseAPI));
2107
- exports.NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApi = NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApi;
2108
- /**
2109
- * NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApi - axios parameter creator
2110
- * @export
2111
- */
2112
- var NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApiAxiosParamCreator = function (configuration) {
2113
- var _this = this;
2114
- return {
2115
- /**
2116
- * Retrieves the details of an event type by specifying the bundle name, the application name, and the event type name.
2117
- * @summary Retrieve an event type by bundle, application and event type names
2118
- * @param {string} applicationName
2119
- * @param {string} bundleName
2120
- * @param {string} eventTypeName
2121
- * @param {*} [options] Override http request option.
2122
- * @throws {RequiredError}
2123
- */
2124
- notificationResourceV1GetEventTypesByNameAndBundleAndApplicationName: function (applicationName, bundleName, eventTypeName, options) {
2125
- if (options === void 0) { options = {}; }
2126
- return tslib_1.__awaiter(_this, void 0, void 0, function () {
2127
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2128
- return tslib_1.__generator(this, function (_a) {
2129
- // verify required parameter 'applicationName' is not null or undefined
2130
- (0, common_1.assertParamExists)('notificationResourceV1GetEventTypesByNameAndBundleAndApplicationName', 'applicationName', applicationName);
2131
- // verify required parameter 'bundleName' is not null or undefined
2132
- (0, common_1.assertParamExists)('notificationResourceV1GetEventTypesByNameAndBundleAndApplicationName', 'bundleName', bundleName);
2133
- // verify required parameter 'eventTypeName' is not null or undefined
2134
- (0, common_1.assertParamExists)('notificationResourceV1GetEventTypesByNameAndBundleAndApplicationName', 'eventTypeName', eventTypeName);
2135
- localVarPath = "/notifications/bundles/{bundleName}/applications/{applicationName}/eventTypes/{eventTypeName}"
2136
- .replace("{".concat("applicationName", "}"), encodeURIComponent(String(applicationName)))
2137
- .replace("{".concat("bundleName", "}"), encodeURIComponent(String(bundleName)))
2138
- .replace("{".concat("eventTypeName", "}"), encodeURIComponent(String(eventTypeName)));
2139
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2140
- if (configuration) {
2141
- baseOptions = configuration.baseOptions;
2142
- }
2143
- localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'GET' }, baseOptions), options);
2144
- localVarHeaderParameter = {};
2145
- localVarQueryParameter = {};
2146
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2147
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2148
- localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2149
- return [2 /*return*/, {
2150
- url: (0, common_1.toPathString)(localVarUrlObj),
2151
- options: localVarRequestOptions,
2152
- }];
2153
- });
2154
- });
2155
- },
2156
- };
2157
- };
2158
- exports.NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApiAxiosParamCreator = NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApiAxiosParamCreator;
2159
- /**
2160
- * NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApi - functional programming interface
2161
- * @export
2162
- */
2163
- var NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApiFp = function (configuration) {
2164
- var localVarAxiosParamCreator = (0, exports.NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApiAxiosParamCreator)(configuration);
2165
- return {
2166
- /**
2167
- * Retrieves the details of an event type by specifying the bundle name, the application name, and the event type name.
2168
- * @summary Retrieve an event type by bundle, application and event type names
2169
- * @param {string} applicationName
2170
- * @param {string} bundleName
2171
- * @param {string} eventTypeName
2172
- * @param {*} [options] Override http request option.
2173
- * @throws {RequiredError}
2174
- */
2175
- notificationResourceV1GetEventTypesByNameAndBundleAndApplicationName: function (applicationName, bundleName, eventTypeName, options) {
2176
- return tslib_1.__awaiter(this, void 0, void 0, function () {
2177
- var localVarAxiosArgs;
2178
- return tslib_1.__generator(this, function (_a) {
2179
- switch (_a.label) {
2180
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.notificationResourceV1GetEventTypesByNameAndBundleAndApplicationName(applicationName, bundleName, eventTypeName, options)];
2181
- case 1:
2182
- localVarAxiosArgs = _a.sent();
2183
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2184
- }
2185
- });
2186
- });
2187
- },
2188
- };
2189
- };
2190
- exports.NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApiFp = NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApiFp;
2191
- /**
2192
- * NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApi - factory interface
2193
- * @export
2194
- */
2195
- var NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApiFactory = function (configuration, basePath, axios) {
2196
- var localVarFp = (0, exports.NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApiFp)(configuration);
2197
- return {
2198
- /**
2199
- * Retrieves the details of an event type by specifying the bundle name, the application name, and the event type name.
2200
- * @summary Retrieve an event type by bundle, application and event type names
2201
- * @param {string} applicationName
2202
- * @param {string} bundleName
2203
- * @param {string} eventTypeName
2204
- * @param {*} [options] Override http request option.
2205
- * @throws {RequiredError}
2206
- */
2207
- notificationResourceV1GetEventTypesByNameAndBundleAndApplicationName: function (applicationName, bundleName, eventTypeName, options) {
2208
- return localVarFp.notificationResourceV1GetEventTypesByNameAndBundleAndApplicationName(applicationName, bundleName, eventTypeName, options).then(function (request) { return request(axios, basePath); });
2209
- },
2210
- };
2211
- };
2212
- exports.NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApiFactory = NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApiFactory;
2213
- /**
2214
- * NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApi - object-oriented interface
2215
- * @export
2216
- * @class NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApi
2217
- * @extends {BaseAPI}
2218
- */
2219
- var NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApi = /** @class */ (function (_super) {
2220
- tslib_1.__extends(NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApi, _super);
2221
- function NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApi() {
2222
- return _super !== null && _super.apply(this, arguments) || this;
2223
- }
2224
- /**
2225
- * Retrieves the details of an event type by specifying the bundle name, the application name, and the event type name.
2226
- * @summary Retrieve an event type by bundle, application and event type names
2227
- * @param {string} applicationName
2228
- * @param {string} bundleName
2229
- * @param {string} eventTypeName
2230
- * @param {*} [options] Override http request option.
2231
- * @throws {RequiredError}
2232
- * @memberof NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApi
2233
- */
2234
- NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApi.prototype.notificationResourceV1GetEventTypesByNameAndBundleAndApplicationName = function (applicationName, bundleName, eventTypeName, options) {
2235
- var _this = this;
2236
- return (0, exports.NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApiFp)(this.configuration).notificationResourceV1GetEventTypesByNameAndBundleAndApplicationName(applicationName, bundleName, eventTypeName, options).then(function (request) { return request(_this.axios, _this.basePath); });
2237
- };
2238
- return NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApi;
2239
- }(base_1.BaseAPI));
2240
- exports.NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApi = NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApi;
2241
- /**
2242
- * NotificationResourceV1GetLinkedBehaviorGroupsApi - axios parameter creator
2243
- * @export
2244
- */
2245
- var NotificationResourceV1GetLinkedBehaviorGroupsApiAxiosParamCreator = function (configuration) {
2246
- var _this = this;
2247
- return {
2248
- /**
2249
- * Lists the behavior groups that are linked to an event type. Use this endpoint to see which behavior groups will be affected if you delete an event type.
2250
- * @summary List the behavior groups linked to an event type
2251
- * @param {string} eventTypeId
2252
- * @param {number} [limit]
2253
- * @param {number} [offset]
2254
- * @param {number} [pageNumber]
2255
- * @param {string} [sortBy]
2256
- * @param {string} [sortBy2]
2257
- * @param {*} [options] Override http request option.
2258
- * @throws {RequiredError}
2259
- */
2260
- notificationResourceV1GetLinkedBehaviorGroups: function (eventTypeId, limit, offset, pageNumber, sortBy, sortBy2, options) {
2261
- if (options === void 0) { options = {}; }
2262
- return tslib_1.__awaiter(_this, void 0, void 0, function () {
2263
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2264
- return tslib_1.__generator(this, function (_a) {
2265
- // verify required parameter 'eventTypeId' is not null or undefined
2266
- (0, common_1.assertParamExists)('notificationResourceV1GetLinkedBehaviorGroups', 'eventTypeId', eventTypeId);
2267
- localVarPath = "/notifications/eventTypes/{eventTypeId}/behaviorGroups"
2268
- .replace("{".concat("eventTypeId", "}"), encodeURIComponent(String(eventTypeId)));
2269
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2270
- if (configuration) {
2271
- baseOptions = configuration.baseOptions;
2272
- }
2273
- localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'GET' }, baseOptions), options);
2274
- localVarHeaderParameter = {};
2275
- localVarQueryParameter = {};
2276
- if (limit !== undefined) {
2277
- localVarQueryParameter['limit'] = limit;
2278
- }
2279
- if (offset !== undefined) {
2280
- localVarQueryParameter['offset'] = offset;
2281
- }
2282
- if (pageNumber !== undefined) {
2283
- localVarQueryParameter['pageNumber'] = pageNumber;
2284
- }
2285
- if (sortBy !== undefined) {
2286
- localVarQueryParameter['sortBy'] = sortBy;
2287
- }
2288
- if (sortBy2 !== undefined) {
2289
- localVarQueryParameter['sort_by'] = sortBy2;
2290
- }
2291
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2292
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2293
- localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2294
- return [2 /*return*/, {
2295
- url: (0, common_1.toPathString)(localVarUrlObj),
2296
- options: localVarRequestOptions,
2297
- }];
2298
- });
2299
- });
2300
- },
2301
- };
2302
- };
2303
- exports.NotificationResourceV1GetLinkedBehaviorGroupsApiAxiosParamCreator = NotificationResourceV1GetLinkedBehaviorGroupsApiAxiosParamCreator;
2304
- /**
2305
- * NotificationResourceV1GetLinkedBehaviorGroupsApi - functional programming interface
2306
- * @export
2307
- */
2308
- var NotificationResourceV1GetLinkedBehaviorGroupsApiFp = function (configuration) {
2309
- var localVarAxiosParamCreator = (0, exports.NotificationResourceV1GetLinkedBehaviorGroupsApiAxiosParamCreator)(configuration);
2310
- return {
2311
- /**
2312
- * Lists the behavior groups that are linked to an event type. Use this endpoint to see which behavior groups will be affected if you delete an event type.
2313
- * @summary List the behavior groups linked to an event type
2314
- * @param {string} eventTypeId
2315
- * @param {number} [limit]
2316
- * @param {number} [offset]
2317
- * @param {number} [pageNumber]
2318
- * @param {string} [sortBy]
2319
- * @param {string} [sortBy2]
2320
- * @param {*} [options] Override http request option.
2321
- * @throws {RequiredError}
2322
- */
2323
- notificationResourceV1GetLinkedBehaviorGroups: function (eventTypeId, limit, offset, pageNumber, sortBy, sortBy2, options) {
2324
- return tslib_1.__awaiter(this, void 0, void 0, function () {
2325
- var localVarAxiosArgs;
2326
- return tslib_1.__generator(this, function (_a) {
2327
- switch (_a.label) {
2328
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.notificationResourceV1GetLinkedBehaviorGroups(eventTypeId, limit, offset, pageNumber, sortBy, sortBy2, options)];
2329
- case 1:
2330
- localVarAxiosArgs = _a.sent();
2331
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2332
- }
2333
- });
2334
- });
2335
- },
2336
- };
2337
- };
2338
- exports.NotificationResourceV1GetLinkedBehaviorGroupsApiFp = NotificationResourceV1GetLinkedBehaviorGroupsApiFp;
2339
- /**
2340
- * NotificationResourceV1GetLinkedBehaviorGroupsApi - factory interface
2341
- * @export
2342
- */
2343
- var NotificationResourceV1GetLinkedBehaviorGroupsApiFactory = function (configuration, basePath, axios) {
2344
- var localVarFp = (0, exports.NotificationResourceV1GetLinkedBehaviorGroupsApiFp)(configuration);
2345
- return {
2346
- /**
2347
- * Lists the behavior groups that are linked to an event type. Use this endpoint to see which behavior groups will be affected if you delete an event type.
2348
- * @summary List the behavior groups linked to an event type
2349
- * @param {string} eventTypeId
2350
- * @param {number} [limit]
2351
- * @param {number} [offset]
2352
- * @param {number} [pageNumber]
2353
- * @param {string} [sortBy]
2354
- * @param {string} [sortBy2]
2355
- * @param {*} [options] Override http request option.
2356
- * @throws {RequiredError}
2357
- */
2358
- notificationResourceV1GetLinkedBehaviorGroups: function (eventTypeId, limit, offset, pageNumber, sortBy, sortBy2, options) {
2359
- return localVarFp.notificationResourceV1GetLinkedBehaviorGroups(eventTypeId, limit, offset, pageNumber, sortBy, sortBy2, options).then(function (request) { return request(axios, basePath); });
2360
- },
2361
- };
2362
- };
2363
- exports.NotificationResourceV1GetLinkedBehaviorGroupsApiFactory = NotificationResourceV1GetLinkedBehaviorGroupsApiFactory;
2364
- /**
2365
- * NotificationResourceV1GetLinkedBehaviorGroupsApi - object-oriented interface
2366
- * @export
2367
- * @class NotificationResourceV1GetLinkedBehaviorGroupsApi
2368
- * @extends {BaseAPI}
2369
- */
2370
- var NotificationResourceV1GetLinkedBehaviorGroupsApi = /** @class */ (function (_super) {
2371
- tslib_1.__extends(NotificationResourceV1GetLinkedBehaviorGroupsApi, _super);
2372
- function NotificationResourceV1GetLinkedBehaviorGroupsApi() {
2373
- return _super !== null && _super.apply(this, arguments) || this;
2374
- }
2375
- /**
2376
- * Lists the behavior groups that are linked to an event type. Use this endpoint to see which behavior groups will be affected if you delete an event type.
2377
- * @summary List the behavior groups linked to an event type
2378
- * @param {string} eventTypeId
2379
- * @param {number} [limit]
2380
- * @param {number} [offset]
2381
- * @param {number} [pageNumber]
2382
- * @param {string} [sortBy]
2383
- * @param {string} [sortBy2]
2384
- * @param {*} [options] Override http request option.
2385
- * @throws {RequiredError}
2386
- * @memberof NotificationResourceV1GetLinkedBehaviorGroupsApi
2387
- */
2388
- NotificationResourceV1GetLinkedBehaviorGroupsApi.prototype.notificationResourceV1GetLinkedBehaviorGroups = function (eventTypeId, limit, offset, pageNumber, sortBy, sortBy2, options) {
2389
- var _this = this;
2390
- return (0, exports.NotificationResourceV1GetLinkedBehaviorGroupsApiFp)(this.configuration).notificationResourceV1GetLinkedBehaviorGroups(eventTypeId, limit, offset, pageNumber, sortBy, sortBy2, options).then(function (request) { return request(_this.axios, _this.basePath); });
2391
- };
2392
- return NotificationResourceV1GetLinkedBehaviorGroupsApi;
2393
- }(base_1.BaseAPI));
2394
- exports.NotificationResourceV1GetLinkedBehaviorGroupsApi = NotificationResourceV1GetLinkedBehaviorGroupsApi;
2395
- /**
2396
- * NotificationResourceV1UpdateBehaviorGroupApi - axios parameter creator
2397
- * @export
2398
- */
2399
- var NotificationResourceV1UpdateBehaviorGroupApiAxiosParamCreator = function (configuration) {
2400
- var _this = this;
2401
- return {
2402
- /**
2403
- * Updates the details of a behavior group. Use this endpoint to update the list of related endpoints and event types associated with this behavior group.
2404
- * @summary Update a behavior group
2405
- * @param {string} id The UUID of the behavior group to update
2406
- * @param {UpdateBehaviorGroupRequest} updateBehaviorGroupRequest New parameters
2407
- * @param {*} [options] Override http request option.
2408
- * @throws {RequiredError}
2409
- */
2410
- notificationResourceV1UpdateBehaviorGroup: function (id, updateBehaviorGroupRequest, options) {
2411
- if (options === void 0) { options = {}; }
2412
- return tslib_1.__awaiter(_this, void 0, void 0, function () {
2413
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2414
- return tslib_1.__generator(this, function (_a) {
2415
- // verify required parameter 'id' is not null or undefined
2416
- (0, common_1.assertParamExists)('notificationResourceV1UpdateBehaviorGroup', 'id', id);
2417
- // verify required parameter 'updateBehaviorGroupRequest' is not null or undefined
2418
- (0, common_1.assertParamExists)('notificationResourceV1UpdateBehaviorGroup', 'updateBehaviorGroupRequest', updateBehaviorGroupRequest);
2419
- localVarPath = "/notifications/behaviorGroups/{id}"
2420
- .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
2421
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2422
- if (configuration) {
2423
- baseOptions = configuration.baseOptions;
2424
- }
2425
- localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'PUT' }, baseOptions), options);
2426
- localVarHeaderParameter = {};
2427
- localVarQueryParameter = {};
2428
- localVarHeaderParameter['Content-Type'] = 'application/json';
2429
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2430
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2431
- localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2432
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateBehaviorGroupRequest, localVarRequestOptions, configuration);
2433
- return [2 /*return*/, {
2434
- url: (0, common_1.toPathString)(localVarUrlObj),
2435
- options: localVarRequestOptions,
2436
- }];
2437
- });
2438
- });
2439
- },
2440
- };
2441
- };
2442
- exports.NotificationResourceV1UpdateBehaviorGroupApiAxiosParamCreator = NotificationResourceV1UpdateBehaviorGroupApiAxiosParamCreator;
2443
- /**
2444
- * NotificationResourceV1UpdateBehaviorGroupApi - functional programming interface
2445
- * @export
2446
- */
2447
- var NotificationResourceV1UpdateBehaviorGroupApiFp = function (configuration) {
2448
- var localVarAxiosParamCreator = (0, exports.NotificationResourceV1UpdateBehaviorGroupApiAxiosParamCreator)(configuration);
2449
- return {
2450
- /**
2451
- * Updates the details of a behavior group. Use this endpoint to update the list of related endpoints and event types associated with this behavior group.
2452
- * @summary Update a behavior group
2453
- * @param {string} id The UUID of the behavior group to update
2454
- * @param {UpdateBehaviorGroupRequest} updateBehaviorGroupRequest New parameters
2455
- * @param {*} [options] Override http request option.
2456
- * @throws {RequiredError}
2457
- */
2458
- notificationResourceV1UpdateBehaviorGroup: function (id, updateBehaviorGroupRequest, options) {
2459
- return tslib_1.__awaiter(this, void 0, void 0, function () {
2460
- var localVarAxiosArgs;
2461
- return tslib_1.__generator(this, function (_a) {
2462
- switch (_a.label) {
2463
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.notificationResourceV1UpdateBehaviorGroup(id, updateBehaviorGroupRequest, options)];
2464
- case 1:
2465
- localVarAxiosArgs = _a.sent();
2466
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2467
- }
2468
- });
2469
- });
2470
- },
2471
- };
2472
- };
2473
- exports.NotificationResourceV1UpdateBehaviorGroupApiFp = NotificationResourceV1UpdateBehaviorGroupApiFp;
2474
- /**
2475
- * NotificationResourceV1UpdateBehaviorGroupApi - factory interface
2476
- * @export
2477
- */
2478
- var NotificationResourceV1UpdateBehaviorGroupApiFactory = function (configuration, basePath, axios) {
2479
- var localVarFp = (0, exports.NotificationResourceV1UpdateBehaviorGroupApiFp)(configuration);
2480
- return {
2481
- /**
2482
- * Updates the details of a behavior group. Use this endpoint to update the list of related endpoints and event types associated with this behavior group.
2483
- * @summary Update a behavior group
2484
- * @param {string} id The UUID of the behavior group to update
2485
- * @param {UpdateBehaviorGroupRequest} updateBehaviorGroupRequest New parameters
2486
- * @param {*} [options] Override http request option.
2487
- * @throws {RequiredError}
2488
- */
2489
- notificationResourceV1UpdateBehaviorGroup: function (id, updateBehaviorGroupRequest, options) {
2490
- return localVarFp.notificationResourceV1UpdateBehaviorGroup(id, updateBehaviorGroupRequest, options).then(function (request) { return request(axios, basePath); });
2491
- },
2492
- };
2493
- };
2494
- exports.NotificationResourceV1UpdateBehaviorGroupApiFactory = NotificationResourceV1UpdateBehaviorGroupApiFactory;
2495
- /**
2496
- * NotificationResourceV1UpdateBehaviorGroupApi - object-oriented interface
2497
- * @export
2498
- * @class NotificationResourceV1UpdateBehaviorGroupApi
2499
- * @extends {BaseAPI}
2500
- */
2501
- var NotificationResourceV1UpdateBehaviorGroupApi = /** @class */ (function (_super) {
2502
- tslib_1.__extends(NotificationResourceV1UpdateBehaviorGroupApi, _super);
2503
- function NotificationResourceV1UpdateBehaviorGroupApi() {
2504
- return _super !== null && _super.apply(this, arguments) || this;
2505
- }
2506
- /**
2507
- * Updates the details of a behavior group. Use this endpoint to update the list of related endpoints and event types associated with this behavior group.
2508
- * @summary Update a behavior group
2509
- * @param {string} id The UUID of the behavior group to update
2510
- * @param {UpdateBehaviorGroupRequest} updateBehaviorGroupRequest New parameters
2511
- * @param {*} [options] Override http request option.
2512
- * @throws {RequiredError}
2513
- * @memberof NotificationResourceV1UpdateBehaviorGroupApi
2514
- */
2515
- NotificationResourceV1UpdateBehaviorGroupApi.prototype.notificationResourceV1UpdateBehaviorGroup = function (id, updateBehaviorGroupRequest, options) {
2516
- var _this = this;
2517
- return (0, exports.NotificationResourceV1UpdateBehaviorGroupApiFp)(this.configuration).notificationResourceV1UpdateBehaviorGroup(id, updateBehaviorGroupRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
2518
- };
2519
- return NotificationResourceV1UpdateBehaviorGroupApi;
2520
- }(base_1.BaseAPI));
2521
- exports.NotificationResourceV1UpdateBehaviorGroupApi = NotificationResourceV1UpdateBehaviorGroupApi;
2522
- /**
2523
- * NotificationResourceV1UpdateBehaviorGroupActionsApi - axios parameter creator
2524
- * @export
2525
- */
2526
- var NotificationResourceV1UpdateBehaviorGroupActionsApiAxiosParamCreator = function (configuration) {
2527
- var _this = this;
2528
- return {
2529
- /**
2530
- * Updates the list of actions to be executed in that particular behavior group after an event is received.
2531
- * @summary Update the list of behavior group actions
2532
- * @param {string} behaviorGroupId The UUID of the behavior group to update
2533
- * @param {Array<string>} [requestBody]
2534
- * @param {*} [options] Override http request option.
2535
- * @throws {RequiredError}
2536
- */
2537
- notificationResourceV1UpdateBehaviorGroupActions: function (behaviorGroupId, requestBody, options) {
2538
- if (options === void 0) { options = {}; }
2539
- return tslib_1.__awaiter(_this, void 0, void 0, function () {
2540
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2541
- return tslib_1.__generator(this, function (_a) {
2542
- // verify required parameter 'behaviorGroupId' is not null or undefined
2543
- (0, common_1.assertParamExists)('notificationResourceV1UpdateBehaviorGroupActions', 'behaviorGroupId', behaviorGroupId);
2544
- localVarPath = "/notifications/behaviorGroups/{behaviorGroupId}/actions"
2545
- .replace("{".concat("behaviorGroupId", "}"), encodeURIComponent(String(behaviorGroupId)));
2546
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2547
- if (configuration) {
2548
- baseOptions = configuration.baseOptions;
2549
- }
2550
- localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'PUT' }, baseOptions), options);
2551
- localVarHeaderParameter = {};
2552
- localVarQueryParameter = {};
2553
- localVarHeaderParameter['Content-Type'] = 'application/json';
2554
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2555
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2556
- localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2557
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestBody, localVarRequestOptions, configuration);
2558
- return [2 /*return*/, {
2559
- url: (0, common_1.toPathString)(localVarUrlObj),
2560
- options: localVarRequestOptions,
2561
- }];
2562
- });
2563
- });
2564
- },
2565
- };
2566
- };
2567
- exports.NotificationResourceV1UpdateBehaviorGroupActionsApiAxiosParamCreator = NotificationResourceV1UpdateBehaviorGroupActionsApiAxiosParamCreator;
2568
- /**
2569
- * NotificationResourceV1UpdateBehaviorGroupActionsApi - functional programming interface
2570
- * @export
2571
- */
2572
- var NotificationResourceV1UpdateBehaviorGroupActionsApiFp = function (configuration) {
2573
- var localVarAxiosParamCreator = (0, exports.NotificationResourceV1UpdateBehaviorGroupActionsApiAxiosParamCreator)(configuration);
2574
- return {
2575
- /**
2576
- * Updates the list of actions to be executed in that particular behavior group after an event is received.
2577
- * @summary Update the list of behavior group actions
2578
- * @param {string} behaviorGroupId The UUID of the behavior group to update
2579
- * @param {Array<string>} [requestBody]
2580
- * @param {*} [options] Override http request option.
2581
- * @throws {RequiredError}
2582
- */
2583
- notificationResourceV1UpdateBehaviorGroupActions: function (behaviorGroupId, requestBody, options) {
2584
- return tslib_1.__awaiter(this, void 0, void 0, function () {
2585
- var localVarAxiosArgs;
2586
- return tslib_1.__generator(this, function (_a) {
2587
- switch (_a.label) {
2588
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.notificationResourceV1UpdateBehaviorGroupActions(behaviorGroupId, requestBody, options)];
2589
- case 1:
2590
- localVarAxiosArgs = _a.sent();
2591
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2592
- }
2593
- });
2594
- });
2595
- },
2596
- };
2597
- };
2598
- exports.NotificationResourceV1UpdateBehaviorGroupActionsApiFp = NotificationResourceV1UpdateBehaviorGroupActionsApiFp;
2599
- /**
2600
- * NotificationResourceV1UpdateBehaviorGroupActionsApi - factory interface
2601
- * @export
2602
- */
2603
- var NotificationResourceV1UpdateBehaviorGroupActionsApiFactory = function (configuration, basePath, axios) {
2604
- var localVarFp = (0, exports.NotificationResourceV1UpdateBehaviorGroupActionsApiFp)(configuration);
2605
- return {
2606
- /**
2607
- * Updates the list of actions to be executed in that particular behavior group after an event is received.
2608
- * @summary Update the list of behavior group actions
2609
- * @param {string} behaviorGroupId The UUID of the behavior group to update
2610
- * @param {Array<string>} [requestBody]
2611
- * @param {*} [options] Override http request option.
2612
- * @throws {RequiredError}
2613
- */
2614
- notificationResourceV1UpdateBehaviorGroupActions: function (behaviorGroupId, requestBody, options) {
2615
- return localVarFp.notificationResourceV1UpdateBehaviorGroupActions(behaviorGroupId, requestBody, options).then(function (request) { return request(axios, basePath); });
2616
- },
2617
- };
2618
- };
2619
- exports.NotificationResourceV1UpdateBehaviorGroupActionsApiFactory = NotificationResourceV1UpdateBehaviorGroupActionsApiFactory;
2620
- /**
2621
- * NotificationResourceV1UpdateBehaviorGroupActionsApi - object-oriented interface
2622
- * @export
2623
- * @class NotificationResourceV1UpdateBehaviorGroupActionsApi
2624
- * @extends {BaseAPI}
2625
- */
2626
- var NotificationResourceV1UpdateBehaviorGroupActionsApi = /** @class */ (function (_super) {
2627
- tslib_1.__extends(NotificationResourceV1UpdateBehaviorGroupActionsApi, _super);
2628
- function NotificationResourceV1UpdateBehaviorGroupActionsApi() {
2629
- return _super !== null && _super.apply(this, arguments) || this;
2630
- }
2631
- /**
2632
- * Updates the list of actions to be executed in that particular behavior group after an event is received.
2633
- * @summary Update the list of behavior group actions
2634
- * @param {string} behaviorGroupId The UUID of the behavior group to update
2635
- * @param {Array<string>} [requestBody]
2636
- * @param {*} [options] Override http request option.
2637
- * @throws {RequiredError}
2638
- * @memberof NotificationResourceV1UpdateBehaviorGroupActionsApi
2639
- */
2640
- NotificationResourceV1UpdateBehaviorGroupActionsApi.prototype.notificationResourceV1UpdateBehaviorGroupActions = function (behaviorGroupId, requestBody, options) {
2641
- var _this = this;
2642
- return (0, exports.NotificationResourceV1UpdateBehaviorGroupActionsApiFp)(this.configuration).notificationResourceV1UpdateBehaviorGroupActions(behaviorGroupId, requestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
2643
- };
2644
- return NotificationResourceV1UpdateBehaviorGroupActionsApi;
2645
- }(base_1.BaseAPI));
2646
- exports.NotificationResourceV1UpdateBehaviorGroupActionsApi = NotificationResourceV1UpdateBehaviorGroupActionsApi;
2647
- /**
2648
- * NotificationResourceV1UpdateEventTypeBehaviorsApi - axios parameter creator
2649
- * @export
2650
- */
2651
- var NotificationResourceV1UpdateEventTypeBehaviorsApiAxiosParamCreator = function (configuration) {
2652
- var _this = this;
2653
- return {
2654
- /**
2655
- * Updates the list of behavior groups associated with an event type.
2656
- * @summary Update the list of behavior groups for an event type
2657
- * @param {string} eventTypeId UUID of the eventType to associate with the behavior group(s)
2658
- * @param {Set<string>} [requestBody]
2659
- * @param {*} [options] Override http request option.
2660
- * @throws {RequiredError}
2661
- */
2662
- notificationResourceV1UpdateEventTypeBehaviors: function (eventTypeId, requestBody, options) {
2663
- if (options === void 0) { options = {}; }
2664
- return tslib_1.__awaiter(_this, void 0, void 0, function () {
2665
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2666
- return tslib_1.__generator(this, function (_a) {
2667
- // verify required parameter 'eventTypeId' is not null or undefined
2668
- (0, common_1.assertParamExists)('notificationResourceV1UpdateEventTypeBehaviors', 'eventTypeId', eventTypeId);
2669
- localVarPath = "/notifications/eventTypes/{eventTypeId}/behaviorGroups"
2670
- .replace("{".concat("eventTypeId", "}"), encodeURIComponent(String(eventTypeId)));
2671
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2672
- if (configuration) {
2673
- baseOptions = configuration.baseOptions;
2674
- }
2675
- localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'PUT' }, baseOptions), options);
2676
- localVarHeaderParameter = {};
2677
- localVarQueryParameter = {};
2678
- localVarHeaderParameter['Content-Type'] = 'application/json';
2679
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2680
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2681
- localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2682
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestBody, localVarRequestOptions, configuration);
2683
- return [2 /*return*/, {
2684
- url: (0, common_1.toPathString)(localVarUrlObj),
2685
- options: localVarRequestOptions,
2686
- }];
2687
- });
2688
- });
2689
- },
2690
- };
2691
- };
2692
- exports.NotificationResourceV1UpdateEventTypeBehaviorsApiAxiosParamCreator = NotificationResourceV1UpdateEventTypeBehaviorsApiAxiosParamCreator;
2693
- /**
2694
- * NotificationResourceV1UpdateEventTypeBehaviorsApi - functional programming interface
2695
- * @export
2696
- */
2697
- var NotificationResourceV1UpdateEventTypeBehaviorsApiFp = function (configuration) {
2698
- var localVarAxiosParamCreator = (0, exports.NotificationResourceV1UpdateEventTypeBehaviorsApiAxiosParamCreator)(configuration);
2699
- return {
2700
- /**
2701
- * Updates the list of behavior groups associated with an event type.
2702
- * @summary Update the list of behavior groups for an event type
2703
- * @param {string} eventTypeId UUID of the eventType to associate with the behavior group(s)
2704
- * @param {Set<string>} [requestBody]
2705
- * @param {*} [options] Override http request option.
2706
- * @throws {RequiredError}
2707
- */
2708
- notificationResourceV1UpdateEventTypeBehaviors: function (eventTypeId, requestBody, options) {
2709
- return tslib_1.__awaiter(this, void 0, void 0, function () {
2710
- var localVarAxiosArgs;
2711
- return tslib_1.__generator(this, function (_a) {
2712
- switch (_a.label) {
2713
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.notificationResourceV1UpdateEventTypeBehaviors(eventTypeId, requestBody, options)];
2714
- case 1:
2715
- localVarAxiosArgs = _a.sent();
2716
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2717
- }
2718
- });
2719
- });
2720
- },
2721
- };
2722
- };
2723
- exports.NotificationResourceV1UpdateEventTypeBehaviorsApiFp = NotificationResourceV1UpdateEventTypeBehaviorsApiFp;
2724
- /**
2725
- * NotificationResourceV1UpdateEventTypeBehaviorsApi - factory interface
2726
- * @export
2727
- */
2728
- var NotificationResourceV1UpdateEventTypeBehaviorsApiFactory = function (configuration, basePath, axios) {
2729
- var localVarFp = (0, exports.NotificationResourceV1UpdateEventTypeBehaviorsApiFp)(configuration);
2730
- return {
2731
- /**
2732
- * Updates the list of behavior groups associated with an event type.
2733
- * @summary Update the list of behavior groups for an event type
2734
- * @param {string} eventTypeId UUID of the eventType to associate with the behavior group(s)
2735
- * @param {Set<string>} [requestBody]
2736
- * @param {*} [options] Override http request option.
2737
- * @throws {RequiredError}
2738
- */
2739
- notificationResourceV1UpdateEventTypeBehaviors: function (eventTypeId, requestBody, options) {
2740
- return localVarFp.notificationResourceV1UpdateEventTypeBehaviors(eventTypeId, requestBody, options).then(function (request) { return request(axios, basePath); });
2741
- },
2742
- };
2743
- };
2744
- exports.NotificationResourceV1UpdateEventTypeBehaviorsApiFactory = NotificationResourceV1UpdateEventTypeBehaviorsApiFactory;
2745
- /**
2746
- * NotificationResourceV1UpdateEventTypeBehaviorsApi - object-oriented interface
2747
- * @export
2748
- * @class NotificationResourceV1UpdateEventTypeBehaviorsApi
2749
- * @extends {BaseAPI}
2750
- */
2751
- var NotificationResourceV1UpdateEventTypeBehaviorsApi = /** @class */ (function (_super) {
2752
- tslib_1.__extends(NotificationResourceV1UpdateEventTypeBehaviorsApi, _super);
2753
- function NotificationResourceV1UpdateEventTypeBehaviorsApi() {
2754
- return _super !== null && _super.apply(this, arguments) || this;
2755
- }
2756
- /**
2757
- * Updates the list of behavior groups associated with an event type.
2758
- * @summary Update the list of behavior groups for an event type
2759
- * @param {string} eventTypeId UUID of the eventType to associate with the behavior group(s)
2760
- * @param {Set<string>} [requestBody]
2761
- * @param {*} [options] Override http request option.
2762
- * @throws {RequiredError}
2763
- * @memberof NotificationResourceV1UpdateEventTypeBehaviorsApi
2764
- */
2765
- NotificationResourceV1UpdateEventTypeBehaviorsApi.prototype.notificationResourceV1UpdateEventTypeBehaviors = function (eventTypeId, requestBody, options) {
2766
- var _this = this;
2767
- return (0, exports.NotificationResourceV1UpdateEventTypeBehaviorsApiFp)(this.configuration).notificationResourceV1UpdateEventTypeBehaviors(eventTypeId, requestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
2768
- };
2769
- return NotificationResourceV1UpdateEventTypeBehaviorsApi;
2770
- }(base_1.BaseAPI));
2771
- exports.NotificationResourceV1UpdateEventTypeBehaviorsApi = NotificationResourceV1UpdateEventTypeBehaviorsApi;
2772
- /**
2773
- * NotificationResourceV1UpdateEventTypeEndpointsApi - axios parameter creator
2774
- * @export
2775
- */
2776
- var NotificationResourceV1UpdateEventTypeEndpointsApiAxiosParamCreator = function (configuration) {
2777
- var _this = this;
2778
- return {
2779
- /**
2780
- * Updates the list of endpoints associated with an event type.
2781
- * @summary Update the list of endpoints for an event type
2782
- * @param {string} eventTypeId UUID of the eventType to associate with the endpoint(s)
2783
- * @param {Set<string>} [requestBody]
2784
- * @param {*} [options] Override http request option.
2785
- * @throws {RequiredError}
2786
- */
2787
- notificationResourceV1UpdateEventTypeEndpoints: function (eventTypeId, requestBody, options) {
2788
- if (options === void 0) { options = {}; }
2789
- return tslib_1.__awaiter(_this, void 0, void 0, function () {
2790
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2791
- return tslib_1.__generator(this, function (_a) {
2792
- // verify required parameter 'eventTypeId' is not null or undefined
2793
- (0, common_1.assertParamExists)('notificationResourceV1UpdateEventTypeEndpoints', 'eventTypeId', eventTypeId);
2794
- localVarPath = "/notifications/eventTypes/{eventTypeId}/endpoints"
2795
- .replace("{".concat("eventTypeId", "}"), encodeURIComponent(String(eventTypeId)));
2796
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2797
- if (configuration) {
2798
- baseOptions = configuration.baseOptions;
2799
- }
2800
- localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'PUT' }, baseOptions), options);
2801
- localVarHeaderParameter = {};
2802
- localVarQueryParameter = {};
2803
- localVarHeaderParameter['Content-Type'] = 'application/json';
2804
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2805
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2806
- localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2807
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestBody, localVarRequestOptions, configuration);
2808
- return [2 /*return*/, {
2809
- url: (0, common_1.toPathString)(localVarUrlObj),
2810
- options: localVarRequestOptions,
2811
- }];
2812
- });
2813
- });
2814
- },
2815
- };
2816
- };
2817
- exports.NotificationResourceV1UpdateEventTypeEndpointsApiAxiosParamCreator = NotificationResourceV1UpdateEventTypeEndpointsApiAxiosParamCreator;
2818
- /**
2819
- * NotificationResourceV1UpdateEventTypeEndpointsApi - functional programming interface
2820
- * @export
2821
- */
2822
- var NotificationResourceV1UpdateEventTypeEndpointsApiFp = function (configuration) {
2823
- var localVarAxiosParamCreator = (0, exports.NotificationResourceV1UpdateEventTypeEndpointsApiAxiosParamCreator)(configuration);
2824
- return {
2825
- /**
2826
- * Updates the list of endpoints associated with an event type.
2827
- * @summary Update the list of endpoints for an event type
2828
- * @param {string} eventTypeId UUID of the eventType to associate with the endpoint(s)
2829
- * @param {Set<string>} [requestBody]
2830
- * @param {*} [options] Override http request option.
2831
- * @throws {RequiredError}
2832
- */
2833
- notificationResourceV1UpdateEventTypeEndpoints: function (eventTypeId, requestBody, options) {
2834
- return tslib_1.__awaiter(this, void 0, void 0, function () {
2835
- var localVarAxiosArgs;
2836
- return tslib_1.__generator(this, function (_a) {
2837
- switch (_a.label) {
2838
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.notificationResourceV1UpdateEventTypeEndpoints(eventTypeId, requestBody, options)];
2839
- case 1:
2840
- localVarAxiosArgs = _a.sent();
2841
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2842
- }
2843
- });
2844
- });
2845
- },
2846
- };
2847
- };
2848
- exports.NotificationResourceV1UpdateEventTypeEndpointsApiFp = NotificationResourceV1UpdateEventTypeEndpointsApiFp;
2849
- /**
2850
- * NotificationResourceV1UpdateEventTypeEndpointsApi - factory interface
2851
- * @export
2852
- */
2853
- var NotificationResourceV1UpdateEventTypeEndpointsApiFactory = function (configuration, basePath, axios) {
2854
- var localVarFp = (0, exports.NotificationResourceV1UpdateEventTypeEndpointsApiFp)(configuration);
2855
- return {
2856
- /**
2857
- * Updates the list of endpoints associated with an event type.
2858
- * @summary Update the list of endpoints for an event type
2859
- * @param {string} eventTypeId UUID of the eventType to associate with the endpoint(s)
2860
- * @param {Set<string>} [requestBody]
2861
- * @param {*} [options] Override http request option.
2862
- * @throws {RequiredError}
2863
- */
2864
- notificationResourceV1UpdateEventTypeEndpoints: function (eventTypeId, requestBody, options) {
2865
- return localVarFp.notificationResourceV1UpdateEventTypeEndpoints(eventTypeId, requestBody, options).then(function (request) { return request(axios, basePath); });
2866
- },
2867
- };
2868
- };
2869
- exports.NotificationResourceV1UpdateEventTypeEndpointsApiFactory = NotificationResourceV1UpdateEventTypeEndpointsApiFactory;
2870
- /**
2871
- * NotificationResourceV1UpdateEventTypeEndpointsApi - object-oriented interface
2872
- * @export
2873
- * @class NotificationResourceV1UpdateEventTypeEndpointsApi
2874
- * @extends {BaseAPI}
2875
- */
2876
- var NotificationResourceV1UpdateEventTypeEndpointsApi = /** @class */ (function (_super) {
2877
- tslib_1.__extends(NotificationResourceV1UpdateEventTypeEndpointsApi, _super);
2878
- function NotificationResourceV1UpdateEventTypeEndpointsApi() {
2879
- return _super !== null && _super.apply(this, arguments) || this;
2880
- }
2881
- /**
2882
- * Updates the list of endpoints associated with an event type.
2883
- * @summary Update the list of endpoints for an event type
2884
- * @param {string} eventTypeId UUID of the eventType to associate with the endpoint(s)
2885
- * @param {Set<string>} [requestBody]
2886
- * @param {*} [options] Override http request option.
2887
- * @throws {RequiredError}
2888
- * @memberof NotificationResourceV1UpdateEventTypeEndpointsApi
2889
- */
2890
- NotificationResourceV1UpdateEventTypeEndpointsApi.prototype.notificationResourceV1UpdateEventTypeEndpoints = function (eventTypeId, requestBody, options) {
2891
- var _this = this;
2892
- return (0, exports.NotificationResourceV1UpdateEventTypeEndpointsApiFp)(this.configuration).notificationResourceV1UpdateEventTypeEndpoints(eventTypeId, requestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
2893
- };
2894
- return NotificationResourceV1UpdateEventTypeEndpointsApi;
2895
- }(base_1.BaseAPI));
2896
- exports.NotificationResourceV1UpdateEventTypeEndpointsApi = NotificationResourceV1UpdateEventTypeEndpointsApi;
2897
- /**
2898
- * OrgConfigResourceV1GetDailyDigestTimePreferenceApi - axios parameter creator
2899
- * @export
2900
- */
2901
- var OrgConfigResourceV1GetDailyDigestTimePreferenceApiAxiosParamCreator = function (configuration) {
2902
- var _this = this;
2903
- return {
2904
- /**
2905
- * Retrieves the daily digest time setting. Use this endpoint to check the time that daily emails are sent.
2906
- * @summary Retrieve the daily digest time
2907
- * @param {*} [options] Override http request option.
2908
- * @throws {RequiredError}
2909
- */
2910
- orgConfigResourceV1GetDailyDigestTimePreference: function (options) {
2911
- if (options === void 0) { options = {}; }
2912
- return tslib_1.__awaiter(_this, void 0, void 0, function () {
2913
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2914
- return tslib_1.__generator(this, function (_a) {
2915
- localVarPath = "/org-config/daily-digest/time-preference";
2916
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2917
- if (configuration) {
2918
- baseOptions = configuration.baseOptions;
2919
- }
2920
- localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'GET' }, baseOptions), options);
2921
- localVarHeaderParameter = {};
2922
- localVarQueryParameter = {};
2923
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2924
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2925
- localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2926
- return [2 /*return*/, {
2927
- url: (0, common_1.toPathString)(localVarUrlObj),
2928
- options: localVarRequestOptions,
2929
- }];
2930
- });
2931
- });
2932
- },
2933
- };
2934
- };
2935
- exports.OrgConfigResourceV1GetDailyDigestTimePreferenceApiAxiosParamCreator = OrgConfigResourceV1GetDailyDigestTimePreferenceApiAxiosParamCreator;
2936
- /**
2937
- * OrgConfigResourceV1GetDailyDigestTimePreferenceApi - functional programming interface
2938
- * @export
2939
- */
2940
- var OrgConfigResourceV1GetDailyDigestTimePreferenceApiFp = function (configuration) {
2941
- var localVarAxiosParamCreator = (0, exports.OrgConfigResourceV1GetDailyDigestTimePreferenceApiAxiosParamCreator)(configuration);
2942
- return {
2943
- /**
2944
- * Retrieves the daily digest time setting. Use this endpoint to check the time that daily emails are sent.
2945
- * @summary Retrieve the daily digest time
2946
- * @param {*} [options] Override http request option.
2947
- * @throws {RequiredError}
2948
- */
2949
- orgConfigResourceV1GetDailyDigestTimePreference: function (options) {
2950
- return tslib_1.__awaiter(this, void 0, void 0, function () {
2951
- var localVarAxiosArgs;
2952
- return tslib_1.__generator(this, function (_a) {
2953
- switch (_a.label) {
2954
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.orgConfigResourceV1GetDailyDigestTimePreference(options)];
2955
- case 1:
2956
- localVarAxiosArgs = _a.sent();
2957
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2958
- }
2959
- });
2960
- });
2961
- },
2962
- };
2963
- };
2964
- exports.OrgConfigResourceV1GetDailyDigestTimePreferenceApiFp = OrgConfigResourceV1GetDailyDigestTimePreferenceApiFp;
2965
- /**
2966
- * OrgConfigResourceV1GetDailyDigestTimePreferenceApi - factory interface
2967
- * @export
2968
- */
2969
- var OrgConfigResourceV1GetDailyDigestTimePreferenceApiFactory = function (configuration, basePath, axios) {
2970
- var localVarFp = (0, exports.OrgConfigResourceV1GetDailyDigestTimePreferenceApiFp)(configuration);
2971
- return {
2972
- /**
2973
- * Retrieves the daily digest time setting. Use this endpoint to check the time that daily emails are sent.
2974
- * @summary Retrieve the daily digest time
2975
- * @param {*} [options] Override http request option.
2976
- * @throws {RequiredError}
2977
- */
2978
- orgConfigResourceV1GetDailyDigestTimePreference: function (options) {
2979
- return localVarFp.orgConfigResourceV1GetDailyDigestTimePreference(options).then(function (request) { return request(axios, basePath); });
2980
- },
2981
- };
2982
- };
2983
- exports.OrgConfigResourceV1GetDailyDigestTimePreferenceApiFactory = OrgConfigResourceV1GetDailyDigestTimePreferenceApiFactory;
2984
- /**
2985
- * OrgConfigResourceV1GetDailyDigestTimePreferenceApi - object-oriented interface
2986
- * @export
2987
- * @class OrgConfigResourceV1GetDailyDigestTimePreferenceApi
2988
- * @extends {BaseAPI}
2989
- */
2990
- var OrgConfigResourceV1GetDailyDigestTimePreferenceApi = /** @class */ (function (_super) {
2991
- tslib_1.__extends(OrgConfigResourceV1GetDailyDigestTimePreferenceApi, _super);
2992
- function OrgConfigResourceV1GetDailyDigestTimePreferenceApi() {
2993
- return _super !== null && _super.apply(this, arguments) || this;
2994
- }
2995
- /**
2996
- * Retrieves the daily digest time setting. Use this endpoint to check the time that daily emails are sent.
2997
- * @summary Retrieve the daily digest time
2998
- * @param {*} [options] Override http request option.
2999
- * @throws {RequiredError}
3000
- * @memberof OrgConfigResourceV1GetDailyDigestTimePreferenceApi
3001
- */
3002
- OrgConfigResourceV1GetDailyDigestTimePreferenceApi.prototype.orgConfigResourceV1GetDailyDigestTimePreference = function (options) {
3003
- var _this = this;
3004
- return (0, exports.OrgConfigResourceV1GetDailyDigestTimePreferenceApiFp)(this.configuration).orgConfigResourceV1GetDailyDigestTimePreference(options).then(function (request) { return request(_this.axios, _this.basePath); });
3005
- };
3006
- return OrgConfigResourceV1GetDailyDigestTimePreferenceApi;
3007
- }(base_1.BaseAPI));
3008
- exports.OrgConfigResourceV1GetDailyDigestTimePreferenceApi = OrgConfigResourceV1GetDailyDigestTimePreferenceApi;
3009
- /**
3010
- * OrgConfigResourceV1SaveDailyDigestTimePreferenceApi - axios parameter creator
3011
- * @export
3012
- */
3013
- var OrgConfigResourceV1SaveDailyDigestTimePreferenceApiAxiosParamCreator = function (configuration) {
3014
- var _this = this;
3015
- return {
3016
- /**
3017
- * Sets the daily digest UTC time. The accepted minute values are 00, 15, 30, and 45. Use this endpoint to set the time when daily emails are sent.
3018
- * @summary Set the daily digest time
3019
- * @param {string} [body]
3020
- * @param {*} [options] Override http request option.
3021
- * @throws {RequiredError}
3022
- */
3023
- orgConfigResourceV1SaveDailyDigestTimePreference: function (body, options) {
3024
- if (options === void 0) { options = {}; }
3025
- return tslib_1.__awaiter(_this, void 0, void 0, function () {
3026
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3027
- return tslib_1.__generator(this, function (_a) {
3028
- localVarPath = "/org-config/daily-digest/time-preference";
3029
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3030
- if (configuration) {
3031
- baseOptions = configuration.baseOptions;
3032
- }
3033
- localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'PUT' }, baseOptions), options);
3034
- localVarHeaderParameter = {};
3035
- localVarQueryParameter = {};
3036
- localVarHeaderParameter['Content-Type'] = 'application/json';
3037
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3038
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3039
- localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3040
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
3041
- return [2 /*return*/, {
3042
- url: (0, common_1.toPathString)(localVarUrlObj),
3043
- options: localVarRequestOptions,
3044
- }];
3045
- });
3046
- });
3047
- },
3048
- };
3049
- };
3050
- exports.OrgConfigResourceV1SaveDailyDigestTimePreferenceApiAxiosParamCreator = OrgConfigResourceV1SaveDailyDigestTimePreferenceApiAxiosParamCreator;
3051
- /**
3052
- * OrgConfigResourceV1SaveDailyDigestTimePreferenceApi - functional programming interface
3053
- * @export
3054
- */
3055
- var OrgConfigResourceV1SaveDailyDigestTimePreferenceApiFp = function (configuration) {
3056
- var localVarAxiosParamCreator = (0, exports.OrgConfigResourceV1SaveDailyDigestTimePreferenceApiAxiosParamCreator)(configuration);
3057
- return {
3058
- /**
3059
- * Sets the daily digest UTC time. The accepted minute values are 00, 15, 30, and 45. Use this endpoint to set the time when daily emails are sent.
3060
- * @summary Set the daily digest time
3061
- * @param {string} [body]
3062
- * @param {*} [options] Override http request option.
3063
- * @throws {RequiredError}
3064
- */
3065
- orgConfigResourceV1SaveDailyDigestTimePreference: function (body, options) {
3066
- return tslib_1.__awaiter(this, void 0, void 0, function () {
3067
- var localVarAxiosArgs;
3068
- return tslib_1.__generator(this, function (_a) {
3069
- switch (_a.label) {
3070
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.orgConfigResourceV1SaveDailyDigestTimePreference(body, options)];
3071
- case 1:
3072
- localVarAxiosArgs = _a.sent();
3073
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
3074
- }
3075
- });
3076
- });
3077
- },
3078
- };
3079
- };
3080
- exports.OrgConfigResourceV1SaveDailyDigestTimePreferenceApiFp = OrgConfigResourceV1SaveDailyDigestTimePreferenceApiFp;
3081
- /**
3082
- * OrgConfigResourceV1SaveDailyDigestTimePreferenceApi - factory interface
3083
- * @export
3084
- */
3085
- var OrgConfigResourceV1SaveDailyDigestTimePreferenceApiFactory = function (configuration, basePath, axios) {
3086
- var localVarFp = (0, exports.OrgConfigResourceV1SaveDailyDigestTimePreferenceApiFp)(configuration);
3087
- return {
3088
- /**
3089
- * Sets the daily digest UTC time. The accepted minute values are 00, 15, 30, and 45. Use this endpoint to set the time when daily emails are sent.
3090
- * @summary Set the daily digest time
3091
- * @param {string} [body]
3092
- * @param {*} [options] Override http request option.
3093
- * @throws {RequiredError}
3094
- */
3095
- orgConfigResourceV1SaveDailyDigestTimePreference: function (body, options) {
3096
- return localVarFp.orgConfigResourceV1SaveDailyDigestTimePreference(body, options).then(function (request) { return request(axios, basePath); });
3097
- },
3098
- };
3099
- };
3100
- exports.OrgConfigResourceV1SaveDailyDigestTimePreferenceApiFactory = OrgConfigResourceV1SaveDailyDigestTimePreferenceApiFactory;
3101
- /**
3102
- * OrgConfigResourceV1SaveDailyDigestTimePreferenceApi - object-oriented interface
3103
- * @export
3104
- * @class OrgConfigResourceV1SaveDailyDigestTimePreferenceApi
3105
- * @extends {BaseAPI}
3106
- */
3107
- var OrgConfigResourceV1SaveDailyDigestTimePreferenceApi = /** @class */ (function (_super) {
3108
- tslib_1.__extends(OrgConfigResourceV1SaveDailyDigestTimePreferenceApi, _super);
3109
- function OrgConfigResourceV1SaveDailyDigestTimePreferenceApi() {
3110
- return _super !== null && _super.apply(this, arguments) || this;
3111
- }
3112
- /**
3113
- * Sets the daily digest UTC time. The accepted minute values are 00, 15, 30, and 45. Use this endpoint to set the time when daily emails are sent.
3114
- * @summary Set the daily digest time
3115
- * @param {string} [body]
3116
- * @param {*} [options] Override http request option.
3117
- * @throws {RequiredError}
3118
- * @memberof OrgConfigResourceV1SaveDailyDigestTimePreferenceApi
3119
- */
3120
- OrgConfigResourceV1SaveDailyDigestTimePreferenceApi.prototype.orgConfigResourceV1SaveDailyDigestTimePreference = function (body, options) {
3121
- var _this = this;
3122
- return (0, exports.OrgConfigResourceV1SaveDailyDigestTimePreferenceApiFp)(this.configuration).orgConfigResourceV1SaveDailyDigestTimePreference(body, options).then(function (request) { return request(_this.axios, _this.basePath); });
3123
- };
3124
- return OrgConfigResourceV1SaveDailyDigestTimePreferenceApi;
3125
- }(base_1.BaseAPI));
3126
- exports.OrgConfigResourceV1SaveDailyDigestTimePreferenceApi = OrgConfigResourceV1SaveDailyDigestTimePreferenceApi;
3
+ exports.NotificationsClient = void 0;
4
+ var utils_1 = require("@redhat-cloud-services/javascript-clients-shared/dist/utils");
5
+ var index_1 = require("./index");
6
+ var endpointList = {
7
+ drawerResourceV1GetDrawerEntries: index_1.drawerResourceV1GetDrawerEntries,
8
+ drawerResourceV1UpdateNotificationReadStatus: index_1.drawerResourceV1UpdateNotificationReadStatus,
9
+ eventResourceV1GetEvents: index_1.eventResourceV1GetEvents,
10
+ notificationResourceV1AppendBehaviorGroupToEventType: index_1.notificationResourceV1AppendBehaviorGroupToEventType,
11
+ notificationResourceV1CreateBehaviorGroup: index_1.notificationResourceV1CreateBehaviorGroup,
12
+ notificationResourceV1DeleteBehaviorGroup: index_1.notificationResourceV1DeleteBehaviorGroup,
13
+ notificationResourceV1DeleteBehaviorGroupFromEventType: index_1.notificationResourceV1DeleteBehaviorGroupFromEventType,
14
+ notificationResourceV1FindBehaviorGroupsByBundleId: index_1.notificationResourceV1FindBehaviorGroupsByBundleId,
15
+ notificationResourceV1GetApplicationByNameAndBundleName: index_1.notificationResourceV1GetApplicationByNameAndBundleName,
16
+ notificationResourceV1GetApplicationsFacets: index_1.notificationResourceV1GetApplicationsFacets,
17
+ notificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpoint: index_1.notificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpoint,
18
+ notificationResourceV1GetBundleByName: index_1.notificationResourceV1GetBundleByName,
19
+ notificationResourceV1GetBundleFacets: index_1.notificationResourceV1GetBundleFacets,
20
+ notificationResourceV1GetEventTypes: index_1.notificationResourceV1GetEventTypes,
21
+ notificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroup: index_1.notificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroup,
22
+ notificationResourceV1GetEventTypesByNameAndBundleAndApplicationName: index_1.notificationResourceV1GetEventTypesByNameAndBundleAndApplicationName,
23
+ notificationResourceV1GetLinkedBehaviorGroups: index_1.notificationResourceV1GetLinkedBehaviorGroups,
24
+ notificationResourceV1UpdateBehaviorGroup: index_1.notificationResourceV1UpdateBehaviorGroup,
25
+ notificationResourceV1UpdateBehaviorGroupActions: index_1.notificationResourceV1UpdateBehaviorGroupActions,
26
+ notificationResourceV1UpdateEventTypeBehaviors: index_1.notificationResourceV1UpdateEventTypeBehaviors,
27
+ notificationResourceV1UpdateEventTypeEndpoints: index_1.notificationResourceV1UpdateEventTypeEndpoints,
28
+ orgConfigResourceV1GetDailyDigestTimePreference: index_1.orgConfigResourceV1GetDailyDigestTimePreference,
29
+ orgConfigResourceV1SaveDailyDigestTimePreference: index_1.orgConfigResourceV1SaveDailyDigestTimePreference,
30
+ };
31
+ var NotificationsClient = function (BASE_PATH, instance) {
32
+ return (0, utils_1.APIFactory)(BASE_PATH, endpointList, instance);
33
+ };
34
+ exports.NotificationsClient = NotificationsClient;
35
+ exports.default = exports.NotificationsClient;
3127
36
  //# sourceMappingURL=api.js.map