@gooddata/api-client-tiger 11.10.0-alpha.4 → 11.10.0-alpha.6

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 (196) hide show
  1. package/esm/__version.d.ts +1 -1
  2. package/esm/__version.js +1 -1
  3. package/esm/actions.d.ts.map +1 -1
  4. package/esm/actions.js +2 -2
  5. package/esm/actions.js.map +1 -1
  6. package/esm/api-client-tiger.d.ts +52895 -62477
  7. package/esm/api-endpoints/actions/index.d.ts +2 -0
  8. package/esm/api-endpoints/actions/index.d.ts.map +1 -0
  9. package/esm/api-endpoints/actions/index.js +4 -0
  10. package/esm/api-endpoints/actions/index.js.map +1 -0
  11. package/esm/api-endpoints/authActions/index.d.ts +2 -0
  12. package/esm/api-endpoints/authActions/index.d.ts.map +1 -0
  13. package/esm/api-endpoints/authActions/index.js +4 -0
  14. package/esm/api-endpoints/authActions/index.js.map +1 -0
  15. package/esm/api-endpoints/automation/index.d.ts +2 -0
  16. package/esm/api-endpoints/automation/index.d.ts.map +1 -0
  17. package/esm/api-endpoints/automation/index.js +4 -0
  18. package/esm/api-endpoints/automation/index.js.map +1 -0
  19. package/esm/api-endpoints/entitiesObjects/index.d.ts +33 -0
  20. package/esm/api-endpoints/entitiesObjects/index.d.ts.map +1 -0
  21. package/esm/api-endpoints/entitiesObjects/index.js +66 -0
  22. package/esm/api-endpoints/entitiesObjects/index.js.map +1 -0
  23. package/esm/api-endpoints/execution/index.d.ts +3 -0
  24. package/esm/api-endpoints/execution/index.d.ts.map +1 -0
  25. package/esm/api-endpoints/execution/index.js +6 -0
  26. package/esm/api-endpoints/execution/index.js.map +1 -0
  27. package/esm/api-endpoints/explain/index.d.ts +2 -0
  28. package/esm/api-endpoints/explain/index.d.ts.map +1 -0
  29. package/esm/api-endpoints/explain/index.js +4 -0
  30. package/esm/api-endpoints/explain/index.js.map +1 -0
  31. package/esm/api-endpoints/export/index.d.ts +2 -0
  32. package/esm/api-endpoints/export/index.d.ts.map +1 -0
  33. package/esm/api-endpoints/export/index.js +4 -0
  34. package/esm/api-endpoints/export/index.js.map +1 -0
  35. package/esm/api-endpoints/genAI/index.d.ts +2 -0
  36. package/esm/api-endpoints/genAI/index.d.ts.map +1 -0
  37. package/esm/api-endpoints/genAI/index.js +4 -0
  38. package/esm/api-endpoints/genAI/index.js.map +1 -0
  39. package/esm/api-endpoints/labelElements/index.d.ts +2 -0
  40. package/esm/api-endpoints/labelElements/index.d.ts.map +1 -0
  41. package/esm/api-endpoints/labelElements/index.js +4 -0
  42. package/esm/api-endpoints/labelElements/index.js.map +1 -0
  43. package/esm/api-endpoints/layout/index.d.ts +2 -0
  44. package/esm/api-endpoints/layout/index.d.ts.map +1 -0
  45. package/esm/api-endpoints/layout/index.js +4 -0
  46. package/esm/api-endpoints/layout/index.js.map +1 -0
  47. package/esm/api-endpoints/profile/index.d.ts +3 -0
  48. package/esm/api-endpoints/profile/index.d.ts.map +1 -0
  49. package/esm/api-endpoints/profile/index.js +3 -0
  50. package/esm/api-endpoints/profile/index.js.map +1 -0
  51. package/esm/api-endpoints/result/index.d.ts +2 -0
  52. package/esm/api-endpoints/result/index.d.ts.map +1 -0
  53. package/esm/api-endpoints/result/index.js +4 -0
  54. package/esm/api-endpoints/result/index.js.map +1 -0
  55. package/esm/api-endpoints/scanModel/index.d.ts +2 -0
  56. package/esm/api-endpoints/scanModel/index.d.ts.map +1 -0
  57. package/esm/api-endpoints/scanModel/index.js +4 -0
  58. package/esm/api-endpoints/scanModel/index.js.map +1 -0
  59. package/esm/api-endpoints/smartFunctions/index.d.ts +2 -0
  60. package/esm/api-endpoints/smartFunctions/index.d.ts.map +1 -0
  61. package/esm/api-endpoints/smartFunctions/index.js +4 -0
  62. package/esm/api-endpoints/smartFunctions/index.js.map +1 -0
  63. package/esm/api-endpoints/userManagement/index.d.ts +2 -0
  64. package/esm/api-endpoints/userManagement/index.d.ts.map +1 -0
  65. package/esm/api-endpoints/userManagement/index.js +4 -0
  66. package/esm/api-endpoints/userManagement/index.js.map +1 -0
  67. package/esm/api-endpoints/validDescendants/index.d.ts +2 -0
  68. package/esm/api-endpoints/validDescendants/index.d.ts.map +1 -0
  69. package/esm/api-endpoints/validDescendants/index.js +4 -0
  70. package/esm/api-endpoints/validDescendants/index.js.map +1 -0
  71. package/esm/api-endpoints/validObjects/index.d.ts +2 -0
  72. package/esm/api-endpoints/validObjects/index.d.ts.map +1 -0
  73. package/esm/api-endpoints/validObjects/index.js +4 -0
  74. package/esm/api-endpoints/validObjects/index.js.map +1 -0
  75. package/esm/authActions.d.ts.map +1 -1
  76. package/esm/authActions.js +2 -2
  77. package/esm/authActions.js.map +1 -1
  78. package/esm/client.d.ts +26 -2
  79. package/esm/client.d.ts.map +1 -1
  80. package/esm/client.js +21 -1
  81. package/esm/client.js.map +1 -1
  82. package/esm/entitiesObjects.d.ts.map +1 -1
  83. package/esm/entitiesObjects.js +2 -2
  84. package/esm/entitiesObjects.js.map +1 -1
  85. package/esm/gd-tiger-model/AnalyticalDashboardModelV2.d.ts +3 -3
  86. package/esm/gd-tiger-model/AnalyticalDashboardModelV2.d.ts.map +1 -1
  87. package/esm/gd-tiger-model/AnalyticalDashboardModelV2.js +1 -1
  88. package/esm/gd-tiger-model/AnalyticalDashboardModelV2.js.map +1 -1
  89. package/esm/gd-tiger-model/typeGuards.d.ts.map +1 -1
  90. package/esm/gd-tiger-model/typeGuards.js +8 -11
  91. package/esm/gd-tiger-model/typeGuards.js.map +1 -1
  92. package/esm/generated/afm-rest-api/api.d.ts +2527 -3252
  93. package/esm/generated/afm-rest-api/api.d.ts.map +1 -1
  94. package/esm/generated/afm-rest-api/api.js +3700 -4690
  95. package/esm/generated/afm-rest-api/api.js.map +1 -1
  96. package/esm/generated/afm-rest-api/base.d.ts.map +1 -1
  97. package/esm/generated/afm-rest-api/base.js +13 -1
  98. package/esm/generated/afm-rest-api/base.js.map +1 -1
  99. package/esm/generated/afm-rest-api/configuration.d.ts.map +1 -1
  100. package/esm/generated/afm-rest-api/configuration.js +13 -1
  101. package/esm/generated/afm-rest-api/configuration.js.map +1 -1
  102. package/esm/generated/auth-json-api/api.d.ts +283 -395
  103. package/esm/generated/auth-json-api/api.d.ts.map +1 -1
  104. package/esm/generated/auth-json-api/api.js +703 -880
  105. package/esm/generated/auth-json-api/api.js.map +1 -1
  106. package/esm/generated/auth-json-api/base.d.ts.map +1 -1
  107. package/esm/generated/auth-json-api/base.js +13 -1
  108. package/esm/generated/auth-json-api/base.js.map +1 -1
  109. package/esm/generated/auth-json-api/configuration.d.ts.map +1 -1
  110. package/esm/generated/auth-json-api/configuration.js +13 -1
  111. package/esm/generated/auth-json-api/configuration.js.map +1 -1
  112. package/esm/generated/auth-json-api/template.d.ts +102 -0
  113. package/esm/generated/auth-json-api/template.d.ts.map +1 -0
  114. package/esm/generated/auth-json-api/template.js +154 -0
  115. package/esm/generated/auth-json-api/template.js.map +1 -0
  116. package/esm/generated/automation-json-api/api.d.ts +347 -757
  117. package/esm/generated/automation-json-api/api.d.ts.map +1 -1
  118. package/esm/generated/automation-json-api/api.js +768 -1251
  119. package/esm/generated/automation-json-api/api.js.map +1 -1
  120. package/esm/generated/automation-json-api/base.d.ts.map +1 -1
  121. package/esm/generated/automation-json-api/base.js +13 -1
  122. package/esm/generated/automation-json-api/base.js.map +1 -1
  123. package/esm/generated/automation-json-api/common.d.ts.map +1 -1
  124. package/esm/generated/automation-json-api/common.js +13 -1
  125. package/esm/generated/automation-json-api/common.js.map +1 -1
  126. package/esm/generated/automation-json-api/configuration.d.ts.map +1 -1
  127. package/esm/generated/automation-json-api/configuration.js +13 -1
  128. package/esm/generated/automation-json-api/configuration.js.map +1 -1
  129. package/esm/generated/automation-json-api/index.d.ts.map +1 -1
  130. package/esm/generated/automation-json-api/index.js +1 -1
  131. package/esm/generated/automation-json-api/index.js.map +1 -1
  132. package/esm/generated/export-json-api/api.d.ts +662 -1134
  133. package/esm/generated/export-json-api/api.d.ts.map +1 -1
  134. package/esm/generated/export-json-api/api.js +1556 -2181
  135. package/esm/generated/export-json-api/api.js.map +1 -1
  136. package/esm/generated/export-json-api/base.d.ts.map +1 -1
  137. package/esm/generated/export-json-api/base.js +13 -1
  138. package/esm/generated/export-json-api/base.js.map +1 -1
  139. package/esm/generated/export-json-api/configuration.d.ts.map +1 -1
  140. package/esm/generated/export-json-api/configuration.js +13 -1
  141. package/esm/generated/export-json-api/configuration.js.map +1 -1
  142. package/esm/generated/metadata-json-api/api.d.ts +35920 -44004
  143. package/esm/generated/metadata-json-api/api.d.ts.map +1 -1
  144. package/esm/generated/metadata-json-api/api.js +54041 -65836
  145. package/esm/generated/metadata-json-api/api.js.map +1 -1
  146. package/esm/generated/metadata-json-api/base.d.ts.map +1 -1
  147. package/esm/generated/metadata-json-api/base.js +13 -1
  148. package/esm/generated/metadata-json-api/base.js.map +1 -1
  149. package/esm/generated/metadata-json-api/configuration.d.ts.map +1 -1
  150. package/esm/generated/metadata-json-api/configuration.js +13 -1
  151. package/esm/generated/metadata-json-api/configuration.js.map +1 -1
  152. package/esm/generated/metadata-json-api/openapi-spec.json +10318 -10318
  153. package/esm/generated/result-json-api/api.d.ts +290 -524
  154. package/esm/generated/result-json-api/api.d.ts.map +1 -1
  155. package/esm/generated/result-json-api/api.js +784 -1135
  156. package/esm/generated/result-json-api/api.js.map +1 -1
  157. package/esm/generated/result-json-api/base.d.ts.map +1 -1
  158. package/esm/generated/result-json-api/base.js +13 -1
  159. package/esm/generated/result-json-api/base.js.map +1 -1
  160. package/esm/generated/result-json-api/configuration.d.ts.map +1 -1
  161. package/esm/generated/result-json-api/configuration.js +13 -1
  162. package/esm/generated/result-json-api/configuration.js.map +1 -1
  163. package/esm/generated/scan-json-api/api.d.ts +243 -441
  164. package/esm/generated/scan-json-api/api.d.ts.map +1 -1
  165. package/esm/generated/scan-json-api/api.js +655 -922
  166. package/esm/generated/scan-json-api/api.js.map +1 -1
  167. package/esm/generated/scan-json-api/base.d.ts.map +1 -1
  168. package/esm/generated/scan-json-api/base.js +13 -1
  169. package/esm/generated/scan-json-api/base.js.map +1 -1
  170. package/esm/generated/scan-json-api/configuration.d.ts.map +1 -1
  171. package/esm/generated/scan-json-api/configuration.js +13 -1
  172. package/esm/generated/scan-json-api/configuration.js.map +1 -1
  173. package/esm/generated/scan-json-api/openapi-spec.json +1 -1
  174. package/esm/index.d.ts +4 -5
  175. package/esm/index.d.ts.map +1 -1
  176. package/esm/index.js +0 -5
  177. package/esm/index.js.map +1 -1
  178. package/esm/metadataUtilities.d.ts +21 -4
  179. package/esm/metadataUtilities.d.ts.map +1 -1
  180. package/esm/metadataUtilities.js +83 -12
  181. package/esm/metadataUtilities.js.map +1 -1
  182. package/esm/organizationUtilities.d.ts +9 -18
  183. package/esm/organizationUtilities.d.ts.map +1 -1
  184. package/esm/organizationUtilities.js +1 -17
  185. package/esm/organizationUtilities.js.map +1 -1
  186. package/esm/profile.d.ts +34 -0
  187. package/esm/profile.d.ts.map +1 -1
  188. package/esm/profile.js +26 -20
  189. package/esm/profile.js.map +1 -1
  190. package/esm/scanModel.d.ts.map +1 -1
  191. package/esm/scanModel.js +2 -2
  192. package/esm/scanModel.js.map +1 -1
  193. package/esm/userManagement.d.ts.map +1 -1
  194. package/esm/userManagement.js +2 -2
  195. package/esm/userManagement.js.map +1 -1
  196. package/package.json +25 -6
@@ -1,4 +1,15 @@
1
- // (C) 2025 GoodData Corporation
1
+ /* eslint-disable */
2
+ /**
3
+ * OpenAPI definition
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document: v0
7
+ *
8
+ *
9
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10
+ * https://openapi-generator.tech
11
+ * Do not edit the class manually.
12
+ */
2
13
  import globalAxios from "axios";
3
14
  // Some imports not used depending on template conditions, we also need prettier-ignore so that the import does not get split and ts-ignore still works
4
15
  // prettier-ignore
@@ -8,757 +19,394 @@ import { DUMMY_BASE_URL, assertParamExists, setSearchParams, toPathString, creat
8
19
  // prettier-ignore
9
20
  // @ts-ignore
10
21
  import { BASE_PATH, BaseAPI } from './base.js';
11
- export const AutomationAfmObjectIdentifierAttributeIdentifierTypeEnum = {
12
- ATTRIBUTE: "attribute",
13
- };
14
- export const AutomationAfmObjectIdentifierCoreIdentifierTypeEnum = {
15
- ATTRIBUTE: "attribute",
16
- LABEL: "label",
17
- FACT: "fact",
18
- METRIC: "metric",
19
- };
20
- export const AutomationAfmObjectIdentifierDatasetIdentifierTypeEnum = {
21
- DATASET: "dataset",
22
- };
23
- export const AutomationAfmObjectIdentifierIdentifierTypeEnum = {
24
- ANALYTICAL_DASHBOARD: "analyticalDashboard",
25
- ATTRIBUTE: "attribute",
26
- DASHBOARD_PLUGIN: "dashboardPlugin",
27
- DATASET: "dataset",
28
- FACT: "fact",
29
- LABEL: "label",
30
- METRIC: "metric",
31
- PROMPT: "prompt",
32
- VISUALIZATION_OBJECT: "visualizationObject",
33
- FILTER_CONTEXT: "filterContext",
34
- };
35
- export const AutomationAfmObjectIdentifierLabelIdentifierTypeEnum = {
36
- LABEL: "label",
37
- };
38
- export const AutomationAlertDescriptionStatusEnum = {
39
- SUCCESS: "SUCCESS",
40
- ERROR: "ERROR",
41
- INTERNAL_ERROR: "INTERNAL_ERROR",
42
- TIMEOUT: "TIMEOUT",
43
- };
44
- export const AutomationArithmeticMeasureOperatorEnum = {
45
- DIFFERENCE: "DIFFERENCE",
46
- CHANGE: "CHANGE",
47
- };
48
- export const AutomationArithmeticMeasureDefinitionArithmeticMeasureOperatorEnum = {
49
- SUM: "SUM",
50
- DIFFERENCE: "DIFFERENCE",
51
- MULTIPLICATION: "MULTIPLICATION",
52
- RATIO: "RATIO",
53
- CHANGE: "CHANGE",
54
- };
55
- export const AutomationAutomationAlertTriggerEnum = {
56
- ALWAYS: "ALWAYS",
57
- ONCE: "ONCE",
58
- };
59
- export const AutomationBoundedFilterGranularityEnum = {
60
- MINUTE: "MINUTE",
61
- HOUR: "HOUR",
62
- DAY: "DAY",
63
- WEEK: "WEEK",
64
- MONTH: "MONTH",
65
- QUARTER: "QUARTER",
66
- YEAR: "YEAR",
67
- MINUTE_OF_HOUR: "MINUTE_OF_HOUR",
68
- HOUR_OF_DAY: "HOUR_OF_DAY",
69
- DAY_OF_WEEK: "DAY_OF_WEEK",
70
- DAY_OF_MONTH: "DAY_OF_MONTH",
71
- DAY_OF_QUARTER: "DAY_OF_QUARTER",
72
- DAY_OF_YEAR: "DAY_OF_YEAR",
73
- WEEK_OF_YEAR: "WEEK_OF_YEAR",
74
- MONTH_OF_YEAR: "MONTH_OF_YEAR",
75
- QUARTER_OF_YEAR: "QUARTER_OF_YEAR",
76
- };
77
- export const AutomationComparisonOperatorEnum = {
78
- GREATER_THAN: "GREATER_THAN",
79
- GREATER_THAN_OR_EQUAL_TO: "GREATER_THAN_OR_EQUAL_TO",
80
- LESS_THAN: "LESS_THAN",
81
- LESS_THAN_OR_EQUAL_TO: "LESS_THAN_OR_EQUAL_TO",
82
- EQUAL_TO: "EQUAL_TO",
83
- NOT_EQUAL_TO: "NOT_EQUAL_TO",
84
- };
85
- export const AutomationComparisonMeasureValueFilterComparisonMeasureValueFilterOperatorEnum = {
86
- GREATER_THAN: "GREATER_THAN",
87
- GREATER_THAN_OR_EQUAL_TO: "GREATER_THAN_OR_EQUAL_TO",
88
- LESS_THAN: "LESS_THAN",
89
- LESS_THAN_OR_EQUAL_TO: "LESS_THAN_OR_EQUAL_TO",
90
- EQUAL_TO: "EQUAL_TO",
91
- NOT_EQUAL_TO: "NOT_EQUAL_TO",
92
- };
93
- export const AutomationDashboardAttributeFilterAttributeFilterSelectionModeEnum = {
94
- SINGLE: "single",
95
- MULTI: "multi",
96
- };
97
- export const AutomationDashboardDateFilterDateFilterTypeEnum = {
98
- RELATIVE: "relative",
99
- ABSOLUTE: "absolute",
100
- };
101
- export const AutomationDashboardDateFilterDateFilterGranularityEnum = {
102
- ALL_TIME_GRANULARITY: "ALL_TIME_GRANULARITY",
103
- GDC_TIME_YEAR: "GDC.time.year",
104
- GDC_TIME_WEEK_US: "GDC.time.week_us",
105
- GDC_TIME_WEEK_IN_YEAR: "GDC.time.week_in_year",
106
- GDC_TIME_WEEK_IN_QUARTER: "GDC.time.week_in_quarter",
107
- GDC_TIME_WEEK: "GDC.time.week",
108
- GDC_TIME_EUWEEK_IN_YEAR: "GDC.time.euweek_in_year",
109
- GDC_TIME_EUWEEK_IN_QUARTER: "GDC.time.euweek_in_quarter",
110
- GDC_TIME_QUARTER: "GDC.time.quarter",
111
- GDC_TIME_QUARTER_IN_YEAR: "GDC.time.quarter_in_year",
112
- GDC_TIME_MONTH: "GDC.time.month",
113
- GDC_TIME_MONTH_IN_QUARTER: "GDC.time.month_in_quarter",
114
- GDC_TIME_MONTH_IN_YEAR: "GDC.time.month_in_year",
115
- GDC_TIME_DAY_IN_YEAR: "GDC.time.day_in_year",
116
- GDC_TIME_DAY_IN_QUARTER: "GDC.time.day_in_quarter",
117
- GDC_TIME_DAY_IN_MONTH: "GDC.time.day_in_month",
118
- GDC_TIME_DAY_IN_WEEK: "GDC.time.day_in_week",
119
- GDC_TIME_DAY_IN_EUWEEK: "GDC.time.day_in_euweek",
120
- GDC_TIME_DATE: "GDC.time.date",
121
- GDC_TIME_HOUR: "GDC.time.hour",
122
- GDC_TIME_HOUR_IN_DAY: "GDC.time.hour_in_day",
123
- GDC_TIME_MINUTE: "GDC.time.minute",
124
- GDC_TIME_MINUTE_IN_HOUR: "GDC.time.minute_in_hour",
125
- };
126
- export const AutomationDashboardExportSettingsPageSizeEnum = {
127
- A3: "A3",
128
- A4: "A4",
129
- LETTER: "LETTER",
130
- };
131
- export const AutomationDashboardExportSettingsPageOrientationEnum = {
132
- PORTRAIT: "PORTRAIT",
133
- LANDSCAPE: "LANDSCAPE",
134
- };
135
- export const AutomationDashboardTabularExportRequestV2FormatEnum = {
136
- XLSX: "XLSX",
137
- PDF: "PDF",
138
- };
139
- export const AutomationDeclarativeAnalyticalDashboardIdentifierTypeEnum = {
140
- ANALYTICAL_DASHBOARD: "analyticalDashboard",
141
- };
142
- export const AutomationDeclarativeNotificationChannelIdentifierTypeEnum = {
143
- NOTIFICATION_CHANNEL: "notificationChannel",
144
- };
145
- export const AutomationDeclarativeUserIdentifierTypeEnum = {
146
- USER: "user",
147
- };
148
- export const AutomationDefaultSmtpTypeEnum = {
149
- DEFAULT_SMTP: "DEFAULT_SMTP",
150
- };
151
- export const AutomationExportResultStatusEnum = {
152
- SUCCESS: "SUCCESS",
153
- ERROR: "ERROR",
154
- INTERNAL_ERROR: "INTERNAL_ERROR",
155
- TIMEOUT: "TIMEOUT",
156
- };
157
- export const AutomationIdentifierRefIdentifierTypeEnum = {
158
- ANALYTICAL_DASHBOARD: "analyticalDashboard",
159
- ATTRIBUTE: "attribute",
160
- ATTRIBUTE_HIERARCHY: "attributeHierarchy",
161
- DASHBOARD_PLUGIN: "dashboardPlugin",
162
- DATASET: "dataset",
163
- FACT: "fact",
164
- AGGREGATED_FACT: "aggregatedFact",
165
- LABEL: "label",
166
- METRIC: "metric",
167
- USER_DATA_FILTER: "userDataFilter",
168
- EXPORT_DEFINITION: "exportDefinition",
169
- AUTOMATION: "automation",
170
- AUTOMATION_RESULT: "automationResult",
171
- MEMORY_ITEM: "memoryItem",
172
- PROMPT: "prompt",
173
- VISUALIZATION_OBJECT: "visualizationObject",
174
- FILTER_CONTEXT: "filterContext",
175
- WORKSPACE_SETTINGS: "workspaceSettings",
176
- CUSTOM_APPLICATION_SETTING: "customApplicationSetting",
177
- WORKSPACE_DATA_FILTER: "workspaceDataFilter",
178
- WORKSPACE_DATA_FILTER_SETTING: "workspaceDataFilterSetting",
179
- FILTER_VIEW: "filterView",
180
- };
181
- export const AutomationImageExportRequestFormatEnum = {
182
- PNG: "PNG",
183
- };
184
- export const AutomationInPlatformTypeEnum = {
185
- IN_PLATFORM: "IN_PLATFORM",
186
- };
187
- export const AutomationRangeOperatorEnum = {
188
- BETWEEN: "BETWEEN",
189
- NOT_BETWEEN: "NOT_BETWEEN",
190
- };
191
- export const AutomationRangeMeasureValueFilterRangeMeasureValueFilterOperatorEnum = {
192
- BETWEEN: "BETWEEN",
193
- NOT_BETWEEN: "NOT_BETWEEN",
194
- };
195
- export const AutomationRankingFilterRankingFilterOperatorEnum = {
196
- TOP: "TOP",
197
- BOTTOM: "BOTTOM",
198
- };
199
- export const AutomationRawExportAutomationRequestFormatEnum = {
200
- ARROW_FILE: "ARROW_FILE",
201
- ARROW_STREAM: "ARROW_STREAM",
202
- CSV: "CSV",
203
- };
204
- export const AutomationRelativeOperatorEnum = {
205
- INCREASES_BY: "INCREASES_BY",
206
- DECREASES_BY: "DECREASES_BY",
207
- CHANGES_BY: "CHANGES_BY",
208
- };
209
- export const AutomationRelativeBoundedDateFilterGranularityEnum = {
210
- ALL_TIME_GRANULARITY: "ALL_TIME_GRANULARITY",
211
- GDC_TIME_YEAR: "GDC.time.year",
212
- GDC_TIME_WEEK_US: "GDC.time.week_us",
213
- GDC_TIME_WEEK_IN_YEAR: "GDC.time.week_in_year",
214
- GDC_TIME_WEEK_IN_QUARTER: "GDC.time.week_in_quarter",
215
- GDC_TIME_WEEK: "GDC.time.week",
216
- GDC_TIME_EUWEEK_IN_YEAR: "GDC.time.euweek_in_year",
217
- GDC_TIME_EUWEEK_IN_QUARTER: "GDC.time.euweek_in_quarter",
218
- GDC_TIME_QUARTER: "GDC.time.quarter",
219
- GDC_TIME_QUARTER_IN_YEAR: "GDC.time.quarter_in_year",
220
- GDC_TIME_MONTH: "GDC.time.month",
221
- GDC_TIME_MONTH_IN_QUARTER: "GDC.time.month_in_quarter",
222
- GDC_TIME_MONTH_IN_YEAR: "GDC.time.month_in_year",
223
- GDC_TIME_DAY_IN_YEAR: "GDC.time.day_in_year",
224
- GDC_TIME_DAY_IN_QUARTER: "GDC.time.day_in_quarter",
225
- GDC_TIME_DAY_IN_MONTH: "GDC.time.day_in_month",
226
- GDC_TIME_DAY_IN_WEEK: "GDC.time.day_in_week",
227
- GDC_TIME_DAY_IN_EUWEEK: "GDC.time.day_in_euweek",
228
- GDC_TIME_DATE: "GDC.time.date",
229
- GDC_TIME_HOUR: "GDC.time.hour",
230
- GDC_TIME_HOUR_IN_DAY: "GDC.time.hour_in_day",
231
- GDC_TIME_MINUTE: "GDC.time.minute",
232
- GDC_TIME_MINUTE_IN_HOUR: "GDC.time.minute_in_hour",
233
- };
234
- export const AutomationRelativeDateFilterRelativeDateFilterGranularityEnum = {
235
- MINUTE: "MINUTE",
236
- HOUR: "HOUR",
237
- DAY: "DAY",
238
- WEEK: "WEEK",
239
- MONTH: "MONTH",
240
- QUARTER: "QUARTER",
241
- YEAR: "YEAR",
242
- MINUTE_OF_HOUR: "MINUTE_OF_HOUR",
243
- HOUR_OF_DAY: "HOUR_OF_DAY",
244
- DAY_OF_WEEK: "DAY_OF_WEEK",
245
- DAY_OF_MONTH: "DAY_OF_MONTH",
246
- DAY_OF_QUARTER: "DAY_OF_QUARTER",
247
- DAY_OF_YEAR: "DAY_OF_YEAR",
248
- WEEK_OF_YEAR: "WEEK_OF_YEAR",
249
- MONTH_OF_YEAR: "MONTH_OF_YEAR",
250
- QUARTER_OF_YEAR: "QUARTER_OF_YEAR",
251
- };
252
- export const AutomationSettingsPageSizeEnum = {
253
- A3: "A3",
254
- A4: "A4",
255
- LETTER: "LETTER",
256
- };
257
- export const AutomationSettingsPageOrientationEnum = {
258
- PORTRAIT: "PORTRAIT",
259
- LANDSCAPE: "LANDSCAPE",
260
- };
261
- export const AutomationSimpleMeasureDefinitionMeasureAggregationEnum = {
262
- SUM: "SUM",
263
- COUNT: "COUNT",
264
- AVG: "AVG",
265
- MIN: "MIN",
266
- MAX: "MAX",
267
- MEDIAN: "MEDIAN",
268
- RUNSUM: "RUNSUM",
269
- APPROXIMATE_COUNT: "APPROXIMATE_COUNT",
270
- };
271
- export const AutomationSlidesExportRequestFormatEnum = {
272
- PDF: "PDF",
273
- PPTX: "PPTX",
274
- };
275
- export const AutomationSmtpPortEnum = {
276
- NUMBER_25: 25,
277
- NUMBER_465: 465,
278
- NUMBER_587: 587,
279
- NUMBER_2525: 2525,
280
- };
281
- export const AutomationSmtpTypeEnum = {
282
- SMTP: "SMTP",
283
- };
284
- export const AutomationTabularExportRequestFormatEnum = {
285
- CSV: "CSV",
286
- XLSX: "XLSX",
287
- HTML: "HTML",
288
- PDF: "PDF",
289
- };
290
- export const AutomationWebhookTypeEnum = {
291
- WEBHOOK: "WEBHOOK",
292
- };
293
- export const AutomationWebhookMessageTypeEnum = {
294
- AUTOMATION_TASK_COMPLETED: "automation-task.completed",
295
- AUTOMATION_TASK_LIMIT_EXCEEDED: "automation-task.limit-exceeded",
296
- };
22
+ // ActionsAutomation FP - ActionsAutomationAxiosParamCreator
297
23
  /**
298
- * ActionsAutomation - axios parameter creator
299
- * @export
24
+ * Get latest in-platform notifications for the current user.
25
+ * @summary Get latest notifications.
26
+ * @param {string} [workspaceId] Workspace ID to filter notifications by.
27
+ * @param {boolean} [isRead] Filter notifications by read status.
28
+ * @param {string} [page] Zero-based page index (0..N)
29
+ * @param {string} [size] The size of the page to be returned.
30
+ * @param {Array<'total' | 'ALL'>} [metaInclude] Additional meta information to include in the response.
31
+ * @param {*} [options] Override http request option.
32
+ * @param {Configuration} [configuration] Optional configuration.
33
+ * @throws {RequiredError}
300
34
  */
301
- export const ActionsAutomationAxiosParamCreator = function (configuration) {
35
+ export async function ActionsAutomationAxiosParamCreator_GetNotifications(workspaceId, isRead, page, size, metaInclude, options = {}, configuration) {
36
+ const localVarPath = `/api/v1/actions/notifications`;
37
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
38
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
39
+ let baseOptions;
40
+ if (configuration) {
41
+ baseOptions = configuration.baseOptions;
42
+ }
43
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
44
+ const localVarHeaderParameter = {};
45
+ const localVarQueryParameter = {};
46
+ if (workspaceId !== undefined) {
47
+ localVarQueryParameter["workspaceId"] = workspaceId;
48
+ }
49
+ if (isRead !== undefined) {
50
+ localVarQueryParameter["isRead"] = isRead;
51
+ }
52
+ if (page !== undefined) {
53
+ localVarQueryParameter["page"] = page;
54
+ }
55
+ if (size !== undefined) {
56
+ localVarQueryParameter["size"] = size;
57
+ }
58
+ if (metaInclude) {
59
+ localVarQueryParameter["metaInclude"] = Array.from(metaInclude);
60
+ }
61
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
62
+ const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
63
+ localVarRequestOptions.headers = {
64
+ ...localVarHeaderParameter,
65
+ ...headersFromBaseOptions,
66
+ ...options.headers,
67
+ };
302
68
  return {
303
- /**
304
- * Get latest in-platform notifications for the current user.
305
- * @summary Get latest notifications.
306
- * @param {string} [workspaceId] Workspace ID to filter notifications by.
307
- * @param {boolean} [isRead] Filter notifications by read status.
308
- * @param {string} [page] Zero-based page index (0..N)
309
- * @param {string} [size] The size of the page to be returned.
310
- * @param {Array<'total' | 'ALL'>} [metaInclude] Additional meta information to include in the response.
311
- * @param {*} [options] Override http request option.
312
- * @throws {RequiredError}
313
- */
314
- getNotifications: async (workspaceId, isRead, page, size, metaInclude, options = {}) => {
315
- const localVarPath = `/api/v1/actions/notifications`;
316
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
317
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
318
- let baseOptions;
319
- if (configuration) {
320
- baseOptions = configuration.baseOptions;
321
- }
322
- const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
323
- const localVarHeaderParameter = {};
324
- const localVarQueryParameter = {};
325
- if (workspaceId !== undefined) {
326
- localVarQueryParameter["workspaceId"] = workspaceId;
327
- }
328
- if (isRead !== undefined) {
329
- localVarQueryParameter["isRead"] = isRead;
330
- }
331
- if (page !== undefined) {
332
- localVarQueryParameter["page"] = page;
333
- }
334
- if (size !== undefined) {
335
- localVarQueryParameter["size"] = size;
336
- }
337
- if (metaInclude) {
338
- localVarQueryParameter["metaInclude"] = Array.from(metaInclude);
339
- }
340
- setSearchParams(localVarUrlObj, localVarQueryParameter);
341
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
342
- localVarRequestOptions.headers = {
343
- ...localVarHeaderParameter,
344
- ...headersFromBaseOptions,
345
- ...options.headers,
346
- };
347
- return {
348
- url: toPathString(localVarUrlObj),
349
- options: localVarRequestOptions,
350
- };
351
- },
352
- /**
353
- * Mark in-platform notification by its ID as read.
354
- * @summary Mark notification as read.
355
- * @param {string} notificationId Notification ID to mark as read.
356
- * @param {*} [options] Override http request option.
357
- * @throws {RequiredError}
358
- */
359
- markAsReadNotification: async (notificationId, options = {}) => {
360
- // verify required parameter 'notificationId' is not null or undefined
361
- assertParamExists("markAsReadNotification", "notificationId", notificationId);
362
- const localVarPath = `/api/v1/actions/notifications/{notificationId}/markAsRead`.replace(`{${"notificationId"}}`, encodeURIComponent(String(notificationId)));
363
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
364
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
365
- let baseOptions;
366
- if (configuration) {
367
- baseOptions = configuration.baseOptions;
368
- }
369
- const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
370
- const localVarHeaderParameter = {};
371
- const localVarQueryParameter = {};
372
- setSearchParams(localVarUrlObj, localVarQueryParameter);
373
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
374
- localVarRequestOptions.headers = {
375
- ...localVarHeaderParameter,
376
- ...headersFromBaseOptions,
377
- ...options.headers,
378
- };
379
- return {
380
- url: toPathString(localVarUrlObj),
381
- options: localVarRequestOptions,
382
- };
383
- },
384
- /**
385
- * Mark all user in-platform notifications as read.
386
- * @summary Mark all notifications as read.
387
- * @param {string} [workspaceId] Workspace ID where to mark notifications as read.
388
- * @param {*} [options] Override http request option.
389
- * @throws {RequiredError}
390
- */
391
- markAsReadNotificationAll: async (workspaceId, options = {}) => {
392
- const localVarPath = `/api/v1/actions/notifications/markAsRead`;
393
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
394
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
395
- let baseOptions;
396
- if (configuration) {
397
- baseOptions = configuration.baseOptions;
398
- }
399
- const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
400
- const localVarHeaderParameter = {};
401
- const localVarQueryParameter = {};
402
- if (workspaceId !== undefined) {
403
- localVarQueryParameter["workspaceId"] = workspaceId;
404
- }
405
- setSearchParams(localVarUrlObj, localVarQueryParameter);
406
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
407
- localVarRequestOptions.headers = {
408
- ...localVarHeaderParameter,
409
- ...headersFromBaseOptions,
410
- ...options.headers,
411
- };
412
- return {
413
- url: toPathString(localVarUrlObj),
414
- options: localVarRequestOptions,
415
- };
416
- },
417
- /**
418
- * Tests the existing notification channel by sending a test notification.
419
- * @summary Test existing notification channel.
420
- * @param {string} notificationChannelId
421
- * @param {AutomationTestDestinationRequest} [automationTestDestinationRequest]
422
- * @param {*} [options] Override http request option.
423
- * @throws {RequiredError}
424
- */
425
- testExistingNotificationChannel: async (notificationChannelId, automationTestDestinationRequest, options = {}) => {
426
- // verify required parameter 'notificationChannelId' is not null or undefined
427
- assertParamExists("testExistingNotificationChannel", "notificationChannelId", notificationChannelId);
428
- const localVarPath = `/api/v1/actions/notificationChannels/{notificationChannelId}/test`.replace(`{${"notificationChannelId"}}`, encodeURIComponent(String(notificationChannelId)));
429
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
430
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
431
- let baseOptions;
432
- if (configuration) {
433
- baseOptions = configuration.baseOptions;
434
- }
435
- const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
436
- const localVarHeaderParameter = {};
437
- const localVarQueryParameter = {};
438
- localVarHeaderParameter["Content-Type"] = "application/json";
439
- setSearchParams(localVarUrlObj, localVarQueryParameter);
440
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
441
- localVarRequestOptions.headers = {
442
- ...localVarHeaderParameter,
443
- ...headersFromBaseOptions,
444
- ...options.headers,
445
- };
446
- const needsSerialization = typeof automationTestDestinationRequest !== "string" ||
447
- localVarRequestOptions.headers["Content-Type"] === "application/json";
448
- localVarRequestOptions.data = needsSerialization
449
- ? JSON.stringify(automationTestDestinationRequest !== undefined ? automationTestDestinationRequest : {})
450
- : automationTestDestinationRequest || "";
451
- return {
452
- url: toPathString(localVarUrlObj),
453
- options: localVarRequestOptions,
454
- };
455
- },
456
- /**
457
- * Tests the notification channel by sending a test notification.
458
- * @summary Test notification channel.
459
- * @param {AutomationTestDestinationRequest} automationTestDestinationRequest
460
- * @param {*} [options] Override http request option.
461
- * @throws {RequiredError}
462
- */
463
- testNotificationChannel: async (automationTestDestinationRequest, options = {}) => {
464
- // verify required parameter 'automationTestDestinationRequest' is not null or undefined
465
- assertParamExists("testNotificationChannel", "automationTestDestinationRequest", automationTestDestinationRequest);
466
- const localVarPath = `/api/v1/actions/notificationChannels/test`;
467
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
468
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
469
- let baseOptions;
470
- if (configuration) {
471
- baseOptions = configuration.baseOptions;
472
- }
473
- const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
474
- const localVarHeaderParameter = {};
475
- const localVarQueryParameter = {};
476
- localVarHeaderParameter["Content-Type"] = "application/json";
477
- setSearchParams(localVarUrlObj, localVarQueryParameter);
478
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
479
- localVarRequestOptions.headers = {
480
- ...localVarHeaderParameter,
481
- ...headersFromBaseOptions,
482
- ...options.headers,
483
- };
484
- const needsSerialization = typeof automationTestDestinationRequest !== "string" ||
485
- localVarRequestOptions.headers["Content-Type"] === "application/json";
486
- localVarRequestOptions.data = needsSerialization
487
- ? JSON.stringify(automationTestDestinationRequest !== undefined ? automationTestDestinationRequest : {})
488
- : automationTestDestinationRequest || "";
489
- return {
490
- url: toPathString(localVarUrlObj),
491
- options: localVarRequestOptions,
492
- };
493
- },
494
- /**
495
- * Trigger the automation in the request.
496
- * @summary Trigger automation.
497
- * @param {string} workspaceId
498
- * @param {AutomationTriggerAutomationRequest} automationTriggerAutomationRequest
499
- * @param {*} [options] Override http request option.
500
- * @throws {RequiredError}
501
- */
502
- triggerAutomation: async (workspaceId, automationTriggerAutomationRequest, options = {}) => {
503
- // verify required parameter 'workspaceId' is not null or undefined
504
- assertParamExists("triggerAutomation", "workspaceId", workspaceId);
505
- // verify required parameter 'automationTriggerAutomationRequest' is not null or undefined
506
- assertParamExists("triggerAutomation", "automationTriggerAutomationRequest", automationTriggerAutomationRequest);
507
- const localVarPath = `/api/v1/actions/workspaces/{workspaceId}/automations/trigger`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
508
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
509
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
510
- let baseOptions;
511
- if (configuration) {
512
- baseOptions = configuration.baseOptions;
513
- }
514
- const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
515
- const localVarHeaderParameter = {};
516
- const localVarQueryParameter = {};
517
- localVarHeaderParameter["Content-Type"] = "application/json";
518
- setSearchParams(localVarUrlObj, localVarQueryParameter);
519
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
520
- localVarRequestOptions.headers = {
521
- ...localVarHeaderParameter,
522
- ...headersFromBaseOptions,
523
- ...options.headers,
524
- };
525
- const needsSerialization = typeof automationTriggerAutomationRequest !== "string" ||
526
- localVarRequestOptions.headers["Content-Type"] === "application/json";
527
- localVarRequestOptions.data = needsSerialization
528
- ? JSON.stringify(automationTriggerAutomationRequest !== undefined
529
- ? automationTriggerAutomationRequest
530
- : {})
531
- : automationTriggerAutomationRequest || "";
532
- return {
533
- url: toPathString(localVarUrlObj),
534
- options: localVarRequestOptions,
535
- };
536
- },
537
- /**
538
- * Trigger the existing automation to execute immediately.
539
- * @summary Trigger existing automation.
540
- * @param {string} workspaceId
541
- * @param {string} automationId
542
- * @param {*} [options] Override http request option.
543
- * @throws {RequiredError}
544
- */
545
- triggerExistingAutomation: async (workspaceId, automationId, options = {}) => {
546
- // verify required parameter 'workspaceId' is not null or undefined
547
- assertParamExists("triggerExistingAutomation", "workspaceId", workspaceId);
548
- // verify required parameter 'automationId' is not null or undefined
549
- assertParamExists("triggerExistingAutomation", "automationId", automationId);
550
- const localVarPath = `/api/v1/actions/workspaces/{workspaceId}/automations/{automationId}/trigger`
551
- .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)))
552
- .replace(`{${"automationId"}}`, encodeURIComponent(String(automationId)));
553
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
554
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
555
- let baseOptions;
556
- if (configuration) {
557
- baseOptions = configuration.baseOptions;
558
- }
559
- const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
560
- const localVarHeaderParameter = {};
561
- const localVarQueryParameter = {};
562
- setSearchParams(localVarUrlObj, localVarQueryParameter);
563
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
564
- localVarRequestOptions.headers = {
565
- ...localVarHeaderParameter,
566
- ...headersFromBaseOptions,
567
- ...options.headers,
568
- };
569
- return {
570
- url: toPathString(localVarUrlObj),
571
- options: localVarRequestOptions,
572
- };
573
- },
69
+ url: toPathString(localVarUrlObj),
70
+ options: localVarRequestOptions,
574
71
  };
575
- };
72
+ }
73
+ // ActionsAutomation FP - ActionsAutomationAxiosParamCreator
576
74
  /**
577
- * ActionsAutomation - functional programming interface
578
- * @export
75
+ * Mark in-platform notification by its ID as read.
76
+ * @summary Mark notification as read.
77
+ * @param {string} notificationId Notification ID to mark as read.
78
+ * @param {*} [options] Override http request option.
79
+ * @param {Configuration} [configuration] Optional configuration.
80
+ * @throws {RequiredError}
579
81
  */
580
- export const ActionsAutomationFp = function (configuration) {
581
- const localVarAxiosParamCreator = ActionsAutomationAxiosParamCreator(configuration);
82
+ export async function ActionsAutomationAxiosParamCreator_MarkAsReadNotification(notificationId, options = {}, configuration) {
83
+ // verify required parameter 'notificationId' is not null or undefined
84
+ assertParamExists("markAsReadNotification", "notificationId", notificationId);
85
+ const localVarPath = `/api/v1/actions/notifications/{notificationId}/markAsRead`.replace(`{${"notificationId"}}`, encodeURIComponent(String(notificationId)));
86
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
87
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
88
+ let baseOptions;
89
+ if (configuration) {
90
+ baseOptions = configuration.baseOptions;
91
+ }
92
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
93
+ const localVarHeaderParameter = {};
94
+ const localVarQueryParameter = {};
95
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
96
+ const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
97
+ localVarRequestOptions.headers = {
98
+ ...localVarHeaderParameter,
99
+ ...headersFromBaseOptions,
100
+ ...options.headers,
101
+ };
582
102
  return {
583
- /**
584
- * Get latest in-platform notifications for the current user.
585
- * @summary Get latest notifications.
586
- * @param {string} [workspaceId] Workspace ID to filter notifications by.
587
- * @param {boolean} [isRead] Filter notifications by read status.
588
- * @param {string} [page] Zero-based page index (0..N)
589
- * @param {string} [size] The size of the page to be returned.
590
- * @param {Array<'total' | 'ALL'>} [metaInclude] Additional meta information to include in the response.
591
- * @param {*} [options] Override http request option.
592
- * @throws {RequiredError}
593
- */
594
- async getNotifications(workspaceId, isRead, page, size, metaInclude, options) {
595
- const localVarAxiosArgs = await localVarAxiosParamCreator.getNotifications(workspaceId, isRead, page, size, metaInclude, options);
596
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
597
- },
598
- /**
599
- * Mark in-platform notification by its ID as read.
600
- * @summary Mark notification as read.
601
- * @param {string} notificationId Notification ID to mark as read.
602
- * @param {*} [options] Override http request option.
603
- * @throws {RequiredError}
604
- */
605
- async markAsReadNotification(notificationId, options) {
606
- const localVarAxiosArgs = await localVarAxiosParamCreator.markAsReadNotification(notificationId, options);
607
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
608
- },
609
- /**
610
- * Mark all user in-platform notifications as read.
611
- * @summary Mark all notifications as read.
612
- * @param {string} [workspaceId] Workspace ID where to mark notifications as read.
613
- * @param {*} [options] Override http request option.
614
- * @throws {RequiredError}
615
- */
616
- async markAsReadNotificationAll(workspaceId, options) {
617
- const localVarAxiosArgs = await localVarAxiosParamCreator.markAsReadNotificationAll(workspaceId, options);
618
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
619
- },
620
- /**
621
- * Tests the existing notification channel by sending a test notification.
622
- * @summary Test existing notification channel.
623
- * @param {string} notificationChannelId
624
- * @param {AutomationTestDestinationRequest} [automationTestDestinationRequest]
625
- * @param {*} [options] Override http request option.
626
- * @throws {RequiredError}
627
- */
628
- async testExistingNotificationChannel(notificationChannelId, automationTestDestinationRequest, options) {
629
- const localVarAxiosArgs = await localVarAxiosParamCreator.testExistingNotificationChannel(notificationChannelId, automationTestDestinationRequest, options);
630
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
631
- },
632
- /**
633
- * Tests the notification channel by sending a test notification.
634
- * @summary Test notification channel.
635
- * @param {AutomationTestDestinationRequest} automationTestDestinationRequest
636
- * @param {*} [options] Override http request option.
637
- * @throws {RequiredError}
638
- */
639
- async testNotificationChannel(automationTestDestinationRequest, options) {
640
- const localVarAxiosArgs = await localVarAxiosParamCreator.testNotificationChannel(automationTestDestinationRequest, options);
641
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
642
- },
643
- /**
644
- * Trigger the automation in the request.
645
- * @summary Trigger automation.
646
- * @param {string} workspaceId
647
- * @param {AutomationTriggerAutomationRequest} automationTriggerAutomationRequest
648
- * @param {*} [options] Override http request option.
649
- * @throws {RequiredError}
650
- */
651
- async triggerAutomation(workspaceId, automationTriggerAutomationRequest, options) {
652
- const localVarAxiosArgs = await localVarAxiosParamCreator.triggerAutomation(workspaceId, automationTriggerAutomationRequest, options);
653
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
654
- },
655
- /**
656
- * Trigger the existing automation to execute immediately.
657
- * @summary Trigger existing automation.
658
- * @param {string} workspaceId
659
- * @param {string} automationId
660
- * @param {*} [options] Override http request option.
661
- * @throws {RequiredError}
662
- */
663
- async triggerExistingAutomation(workspaceId, automationId, options) {
664
- const localVarAxiosArgs = await localVarAxiosParamCreator.triggerExistingAutomation(workspaceId, automationId, options);
665
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
666
- },
103
+ url: toPathString(localVarUrlObj),
104
+ options: localVarRequestOptions,
667
105
  };
668
- };
106
+ }
107
+ // ActionsAutomation FP - ActionsAutomationAxiosParamCreator
669
108
  /**
670
- * ActionsAutomation - factory interface
671
- * @export
109
+ * Mark all user in-platform notifications as read.
110
+ * @summary Mark all notifications as read.
111
+ * @param {string} [workspaceId] Workspace ID where to mark notifications as read.
112
+ * @param {*} [options] Override http request option.
113
+ * @param {Configuration} [configuration] Optional configuration.
114
+ * @throws {RequiredError}
115
+ */
116
+ export async function ActionsAutomationAxiosParamCreator_MarkAsReadNotificationAll(workspaceId, options = {}, configuration) {
117
+ const localVarPath = `/api/v1/actions/notifications/markAsRead`;
118
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
119
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
120
+ let baseOptions;
121
+ if (configuration) {
122
+ baseOptions = configuration.baseOptions;
123
+ }
124
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
125
+ const localVarHeaderParameter = {};
126
+ const localVarQueryParameter = {};
127
+ if (workspaceId !== undefined) {
128
+ localVarQueryParameter["workspaceId"] = workspaceId;
129
+ }
130
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
131
+ const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
132
+ localVarRequestOptions.headers = {
133
+ ...localVarHeaderParameter,
134
+ ...headersFromBaseOptions,
135
+ ...options.headers,
136
+ };
137
+ return {
138
+ url: toPathString(localVarUrlObj),
139
+ options: localVarRequestOptions,
140
+ };
141
+ }
142
+ // ActionsAutomation FP - ActionsAutomationAxiosParamCreator
143
+ /**
144
+ * Tests the existing notification channel by sending a test notification.
145
+ * @summary Test existing notification channel.
146
+ * @param {string} notificationChannelId
147
+ * @param {AutomationTestDestinationRequest} [automationTestDestinationRequest]
148
+ * @param {*} [options] Override http request option.
149
+ * @param {Configuration} [configuration] Optional configuration.
150
+ * @throws {RequiredError}
151
+ */
152
+ export async function ActionsAutomationAxiosParamCreator_TestExistingNotificationChannel(notificationChannelId, automationTestDestinationRequest, options = {}, configuration) {
153
+ // verify required parameter 'notificationChannelId' is not null or undefined
154
+ assertParamExists("testExistingNotificationChannel", "notificationChannelId", notificationChannelId);
155
+ const localVarPath = `/api/v1/actions/notificationChannels/{notificationChannelId}/test`.replace(`{${"notificationChannelId"}}`, encodeURIComponent(String(notificationChannelId)));
156
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
157
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
158
+ let baseOptions;
159
+ if (configuration) {
160
+ baseOptions = configuration.baseOptions;
161
+ }
162
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
163
+ const localVarHeaderParameter = {};
164
+ const localVarQueryParameter = {};
165
+ localVarHeaderParameter["Content-Type"] = "application/json";
166
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
167
+ const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
168
+ localVarRequestOptions.headers = {
169
+ ...localVarHeaderParameter,
170
+ ...headersFromBaseOptions,
171
+ ...options.headers,
172
+ };
173
+ const needsSerialization = typeof automationTestDestinationRequest !== "string" ||
174
+ localVarRequestOptions.headers["Content-Type"] === "application/json";
175
+ localVarRequestOptions.data = needsSerialization
176
+ ? JSON.stringify(automationTestDestinationRequest !== undefined ? automationTestDestinationRequest : {})
177
+ : automationTestDestinationRequest || "";
178
+ return {
179
+ url: toPathString(localVarUrlObj),
180
+ options: localVarRequestOptions,
181
+ };
182
+ }
183
+ // ActionsAutomation FP - ActionsAutomationAxiosParamCreator
184
+ /**
185
+ * Tests the notification channel by sending a test notification.
186
+ * @summary Test notification channel.
187
+ * @param {AutomationTestDestinationRequest} automationTestDestinationRequest
188
+ * @param {*} [options] Override http request option.
189
+ * @param {Configuration} [configuration] Optional configuration.
190
+ * @throws {RequiredError}
191
+ */
192
+ export async function ActionsAutomationAxiosParamCreator_TestNotificationChannel(automationTestDestinationRequest, options = {}, configuration) {
193
+ // verify required parameter 'automationTestDestinationRequest' is not null or undefined
194
+ assertParamExists("testNotificationChannel", "automationTestDestinationRequest", automationTestDestinationRequest);
195
+ const localVarPath = `/api/v1/actions/notificationChannels/test`;
196
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
197
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
198
+ let baseOptions;
199
+ if (configuration) {
200
+ baseOptions = configuration.baseOptions;
201
+ }
202
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
203
+ const localVarHeaderParameter = {};
204
+ const localVarQueryParameter = {};
205
+ localVarHeaderParameter["Content-Type"] = "application/json";
206
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
207
+ const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
208
+ localVarRequestOptions.headers = {
209
+ ...localVarHeaderParameter,
210
+ ...headersFromBaseOptions,
211
+ ...options.headers,
212
+ };
213
+ const needsSerialization = typeof automationTestDestinationRequest !== "string" ||
214
+ localVarRequestOptions.headers["Content-Type"] === "application/json";
215
+ localVarRequestOptions.data = needsSerialization
216
+ ? JSON.stringify(automationTestDestinationRequest !== undefined ? automationTestDestinationRequest : {})
217
+ : automationTestDestinationRequest || "";
218
+ return {
219
+ url: toPathString(localVarUrlObj),
220
+ options: localVarRequestOptions,
221
+ };
222
+ }
223
+ // ActionsAutomation FP - ActionsAutomationAxiosParamCreator
224
+ /**
225
+ * Trigger the automation in the request.
226
+ * @summary Trigger automation.
227
+ * @param {string} workspaceId
228
+ * @param {AutomationTriggerAutomationRequest} automationTriggerAutomationRequest
229
+ * @param {*} [options] Override http request option.
230
+ * @param {Configuration} [configuration] Optional configuration.
231
+ * @throws {RequiredError}
672
232
  */
673
- export const ActionsAutomationFactory = function (configuration, basePath, axios) {
674
- const localVarFp = ActionsAutomationFp(configuration);
233
+ export async function ActionsAutomationAxiosParamCreator_TriggerAutomation(workspaceId, automationTriggerAutomationRequest, options = {}, configuration) {
234
+ // verify required parameter 'workspaceId' is not null or undefined
235
+ assertParamExists("triggerAutomation", "workspaceId", workspaceId);
236
+ // verify required parameter 'automationTriggerAutomationRequest' is not null or undefined
237
+ assertParamExists("triggerAutomation", "automationTriggerAutomationRequest", automationTriggerAutomationRequest);
238
+ const localVarPath = `/api/v1/actions/workspaces/{workspaceId}/automations/trigger`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
239
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
240
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
241
+ let baseOptions;
242
+ if (configuration) {
243
+ baseOptions = configuration.baseOptions;
244
+ }
245
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
246
+ const localVarHeaderParameter = {};
247
+ const localVarQueryParameter = {};
248
+ localVarHeaderParameter["Content-Type"] = "application/json";
249
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
250
+ const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
251
+ localVarRequestOptions.headers = {
252
+ ...localVarHeaderParameter,
253
+ ...headersFromBaseOptions,
254
+ ...options.headers,
255
+ };
256
+ const needsSerialization = typeof automationTriggerAutomationRequest !== "string" ||
257
+ localVarRequestOptions.headers["Content-Type"] === "application/json";
258
+ localVarRequestOptions.data = needsSerialization
259
+ ? JSON.stringify(automationTriggerAutomationRequest !== undefined ? automationTriggerAutomationRequest : {})
260
+ : automationTriggerAutomationRequest || "";
675
261
  return {
676
- /**
677
- * Get latest in-platform notifications for the current user.
678
- * @summary Get latest notifications.
679
- * @param {ActionsAutomationGetNotificationsRequest} requestParameters Request parameters.
680
- * @param {*} [options] Override http request option.
681
- * @throws {RequiredError}
682
- */
683
- getNotifications(requestParameters, options) {
684
- return localVarFp
685
- .getNotifications(requestParameters.workspaceId, requestParameters.isRead, requestParameters.page, requestParameters.size, requestParameters.metaInclude, options)
686
- .then((request) => request(axios, basePath));
687
- },
688
- /**
689
- * Mark in-platform notification by its ID as read.
690
- * @summary Mark notification as read.
691
- * @param {ActionsAutomationMarkAsReadNotificationRequest} requestParameters Request parameters.
692
- * @param {*} [options] Override http request option.
693
- * @throws {RequiredError}
694
- */
695
- markAsReadNotification(requestParameters, options) {
696
- return localVarFp
697
- .markAsReadNotification(requestParameters.notificationId, options)
698
- .then((request) => request(axios, basePath));
699
- },
700
- /**
701
- * Mark all user in-platform notifications as read.
702
- * @summary Mark all notifications as read.
703
- * @param {ActionsAutomationMarkAsReadNotificationAllRequest} requestParameters Request parameters.
704
- * @param {*} [options] Override http request option.
705
- * @throws {RequiredError}
706
- */
707
- markAsReadNotificationAll(requestParameters, options) {
708
- return localVarFp
709
- .markAsReadNotificationAll(requestParameters.workspaceId, options)
710
- .then((request) => request(axios, basePath));
711
- },
712
- /**
713
- * Tests the existing notification channel by sending a test notification.
714
- * @summary Test existing notification channel.
715
- * @param {ActionsAutomationTestExistingNotificationChannelRequest} requestParameters Request parameters.
716
- * @param {*} [options] Override http request option.
717
- * @throws {RequiredError}
718
- */
719
- testExistingNotificationChannel(requestParameters, options) {
720
- return localVarFp
721
- .testExistingNotificationChannel(requestParameters.notificationChannelId, requestParameters.automationTestDestinationRequest, options)
722
- .then((request) => request(axios, basePath));
723
- },
724
- /**
725
- * Tests the notification channel by sending a test notification.
726
- * @summary Test notification channel.
727
- * @param {ActionsAutomationTestNotificationChannelRequest} requestParameters Request parameters.
728
- * @param {*} [options] Override http request option.
729
- * @throws {RequiredError}
730
- */
731
- testNotificationChannel(requestParameters, options) {
732
- return localVarFp
733
- .testNotificationChannel(requestParameters.automationTestDestinationRequest, options)
734
- .then((request) => request(axios, basePath));
735
- },
736
- /**
737
- * Trigger the automation in the request.
738
- * @summary Trigger automation.
739
- * @param {ActionsAutomationTriggerAutomationRequest} requestParameters Request parameters.
740
- * @param {*} [options] Override http request option.
741
- * @throws {RequiredError}
742
- */
743
- triggerAutomation(requestParameters, options) {
744
- return localVarFp
745
- .triggerAutomation(requestParameters.workspaceId, requestParameters.automationTriggerAutomationRequest, options)
746
- .then((request) => request(axios, basePath));
747
- },
748
- /**
749
- * Trigger the existing automation to execute immediately.
750
- * @summary Trigger existing automation.
751
- * @param {ActionsAutomationTriggerExistingAutomationRequest} requestParameters Request parameters.
752
- * @param {*} [options] Override http request option.
753
- * @throws {RequiredError}
754
- */
755
- triggerExistingAutomation(requestParameters, options) {
756
- return localVarFp
757
- .triggerExistingAutomation(requestParameters.workspaceId, requestParameters.automationId, options)
758
- .then((request) => request(axios, basePath));
759
- },
262
+ url: toPathString(localVarUrlObj),
263
+ options: localVarRequestOptions,
760
264
  };
761
- };
265
+ }
266
+ // ActionsAutomation FP - ActionsAutomationAxiosParamCreator
267
+ /**
268
+ * Trigger the existing automation to execute immediately.
269
+ * @summary Trigger existing automation.
270
+ * @param {string} workspaceId
271
+ * @param {string} automationId
272
+ * @param {*} [options] Override http request option.
273
+ * @param {Configuration} [configuration] Optional configuration.
274
+ * @throws {RequiredError}
275
+ */
276
+ export async function ActionsAutomationAxiosParamCreator_TriggerExistingAutomation(workspaceId, automationId, options = {}, configuration) {
277
+ // verify required parameter 'workspaceId' is not null or undefined
278
+ assertParamExists("triggerExistingAutomation", "workspaceId", workspaceId);
279
+ // verify required parameter 'automationId' is not null or undefined
280
+ assertParamExists("triggerExistingAutomation", "automationId", automationId);
281
+ const localVarPath = `/api/v1/actions/workspaces/{workspaceId}/automations/{automationId}/trigger`
282
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)))
283
+ .replace(`{${"automationId"}}`, encodeURIComponent(String(automationId)));
284
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
285
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
286
+ let baseOptions;
287
+ if (configuration) {
288
+ baseOptions = configuration.baseOptions;
289
+ }
290
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
291
+ const localVarHeaderParameter = {};
292
+ const localVarQueryParameter = {};
293
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
294
+ const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
295
+ localVarRequestOptions.headers = {
296
+ ...localVarHeaderParameter,
297
+ ...headersFromBaseOptions,
298
+ ...options.headers,
299
+ };
300
+ return {
301
+ url: toPathString(localVarUrlObj),
302
+ options: localVarRequestOptions,
303
+ };
304
+ }
305
+ // ActionsAutomation Api FP
306
+ /**
307
+ * Get latest in-platform notifications for the current user.
308
+ * @summary Get latest notifications.
309
+ * @param {AxiosInstance} axios Axios instance.
310
+ * @param {string} basePath Base path.
311
+ * @param {ActionsAutomationGetNotificationsRequest} requestParameters Request parameters.
312
+ * @param {*} [options] Override http request option.
313
+ * @param {Configuration} [configuration] Optional configuration.
314
+ * @throws {RequiredError}
315
+ */
316
+ export async function ActionsAutomation_GetNotifications(axios, basePath, requestParameters, options, configuration) {
317
+ const localVarAxiosArgs = await ActionsAutomationAxiosParamCreator_GetNotifications(requestParameters.workspaceId, requestParameters.isRead, requestParameters.page, requestParameters.size, requestParameters.metaInclude, options || {}, configuration);
318
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
319
+ }
320
+ // ActionsAutomation Api FP
321
+ /**
322
+ * Mark in-platform notification by its ID as read.
323
+ * @summary Mark notification as read.
324
+ * @param {AxiosInstance} axios Axios instance.
325
+ * @param {string} basePath Base path.
326
+ * @param {ActionsAutomationMarkAsReadNotificationRequest} requestParameters Request parameters.
327
+ * @param {*} [options] Override http request option.
328
+ * @param {Configuration} [configuration] Optional configuration.
329
+ * @throws {RequiredError}
330
+ */
331
+ export async function ActionsAutomation_MarkAsReadNotification(axios, basePath, requestParameters, options, configuration) {
332
+ const localVarAxiosArgs = await ActionsAutomationAxiosParamCreator_MarkAsReadNotification(requestParameters.notificationId, options || {}, configuration);
333
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
334
+ }
335
+ // ActionsAutomation Api FP
336
+ /**
337
+ * Mark all user in-platform notifications as read.
338
+ * @summary Mark all notifications as read.
339
+ * @param {AxiosInstance} axios Axios instance.
340
+ * @param {string} basePath Base path.
341
+ * @param {ActionsAutomationMarkAsReadNotificationAllRequest} requestParameters Request parameters.
342
+ * @param {*} [options] Override http request option.
343
+ * @param {Configuration} [configuration] Optional configuration.
344
+ * @throws {RequiredError}
345
+ */
346
+ export async function ActionsAutomation_MarkAsReadNotificationAll(axios, basePath, requestParameters, options, configuration) {
347
+ const localVarAxiosArgs = await ActionsAutomationAxiosParamCreator_MarkAsReadNotificationAll(requestParameters.workspaceId, options || {}, configuration);
348
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
349
+ }
350
+ // ActionsAutomation Api FP
351
+ /**
352
+ * Tests the existing notification channel by sending a test notification.
353
+ * @summary Test existing notification channel.
354
+ * @param {AxiosInstance} axios Axios instance.
355
+ * @param {string} basePath Base path.
356
+ * @param {ActionsAutomationTestExistingNotificationChannelRequest} requestParameters Request parameters.
357
+ * @param {*} [options] Override http request option.
358
+ * @param {Configuration} [configuration] Optional configuration.
359
+ * @throws {RequiredError}
360
+ */
361
+ export async function ActionsAutomation_TestExistingNotificationChannel(axios, basePath, requestParameters, options, configuration) {
362
+ const localVarAxiosArgs = await ActionsAutomationAxiosParamCreator_TestExistingNotificationChannel(requestParameters.notificationChannelId, requestParameters.automationTestDestinationRequest, options || {}, configuration);
363
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
364
+ }
365
+ // ActionsAutomation Api FP
366
+ /**
367
+ * Tests the notification channel by sending a test notification.
368
+ * @summary Test notification channel.
369
+ * @param {AxiosInstance} axios Axios instance.
370
+ * @param {string} basePath Base path.
371
+ * @param {ActionsAutomationTestNotificationChannelRequest} requestParameters Request parameters.
372
+ * @param {*} [options] Override http request option.
373
+ * @param {Configuration} [configuration] Optional configuration.
374
+ * @throws {RequiredError}
375
+ */
376
+ export async function ActionsAutomation_TestNotificationChannel(axios, basePath, requestParameters, options, configuration) {
377
+ const localVarAxiosArgs = await ActionsAutomationAxiosParamCreator_TestNotificationChannel(requestParameters.automationTestDestinationRequest, options || {}, configuration);
378
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
379
+ }
380
+ // ActionsAutomation Api FP
381
+ /**
382
+ * Trigger the automation in the request.
383
+ * @summary Trigger automation.
384
+ * @param {AxiosInstance} axios Axios instance.
385
+ * @param {string} basePath Base path.
386
+ * @param {ActionsAutomationTriggerAutomationRequest} requestParameters Request parameters.
387
+ * @param {*} [options] Override http request option.
388
+ * @param {Configuration} [configuration] Optional configuration.
389
+ * @throws {RequiredError}
390
+ */
391
+ export async function ActionsAutomation_TriggerAutomation(axios, basePath, requestParameters, options, configuration) {
392
+ const localVarAxiosArgs = await ActionsAutomationAxiosParamCreator_TriggerAutomation(requestParameters.workspaceId, requestParameters.automationTriggerAutomationRequest, options || {}, configuration);
393
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
394
+ }
395
+ // ActionsAutomation Api FP
396
+ /**
397
+ * Trigger the existing automation to execute immediately.
398
+ * @summary Trigger existing automation.
399
+ * @param {AxiosInstance} axios Axios instance.
400
+ * @param {string} basePath Base path.
401
+ * @param {ActionsAutomationTriggerExistingAutomationRequest} requestParameters Request parameters.
402
+ * @param {*} [options] Override http request option.
403
+ * @param {Configuration} [configuration] Optional configuration.
404
+ * @throws {RequiredError}
405
+ */
406
+ export async function ActionsAutomation_TriggerExistingAutomation(axios, basePath, requestParameters, options, configuration) {
407
+ const localVarAxiosArgs = await ActionsAutomationAxiosParamCreator_TriggerExistingAutomation(requestParameters.workspaceId, requestParameters.automationId, options || {}, configuration);
408
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
409
+ }
762
410
  /**
763
411
  * ActionsAutomation - object-oriented interface
764
412
  * @export
@@ -775,9 +423,7 @@ export class ActionsAutomation extends BaseAPI {
775
423
  * @memberof ActionsAutomation
776
424
  */
777
425
  getNotifications(requestParameters = {}, options) {
778
- return ActionsAutomationFp(this.configuration)
779
- .getNotifications(requestParameters.workspaceId, requestParameters.isRead, requestParameters.page, requestParameters.size, requestParameters.metaInclude, options)
780
- .then((request) => request(this.axios, this.basePath));
426
+ return ActionsAutomation_GetNotifications(this.axios, this.basePath, requestParameters, options, this.configuration);
781
427
  }
782
428
  /**
783
429
  * Mark in-platform notification by its ID as read.
@@ -788,9 +434,7 @@ export class ActionsAutomation extends BaseAPI {
788
434
  * @memberof ActionsAutomation
789
435
  */
790
436
  markAsReadNotification(requestParameters, options) {
791
- return ActionsAutomationFp(this.configuration)
792
- .markAsReadNotification(requestParameters.notificationId, options)
793
- .then((request) => request(this.axios, this.basePath));
437
+ return ActionsAutomation_MarkAsReadNotification(this.axios, this.basePath, requestParameters, options, this.configuration);
794
438
  }
795
439
  /**
796
440
  * Mark all user in-platform notifications as read.
@@ -801,9 +445,7 @@ export class ActionsAutomation extends BaseAPI {
801
445
  * @memberof ActionsAutomation
802
446
  */
803
447
  markAsReadNotificationAll(requestParameters = {}, options) {
804
- return ActionsAutomationFp(this.configuration)
805
- .markAsReadNotificationAll(requestParameters.workspaceId, options)
806
- .then((request) => request(this.axios, this.basePath));
448
+ return ActionsAutomation_MarkAsReadNotificationAll(this.axios, this.basePath, requestParameters, options, this.configuration);
807
449
  }
808
450
  /**
809
451
  * Tests the existing notification channel by sending a test notification.
@@ -814,9 +456,7 @@ export class ActionsAutomation extends BaseAPI {
814
456
  * @memberof ActionsAutomation
815
457
  */
816
458
  testExistingNotificationChannel(requestParameters, options) {
817
- return ActionsAutomationFp(this.configuration)
818
- .testExistingNotificationChannel(requestParameters.notificationChannelId, requestParameters.automationTestDestinationRequest, options)
819
- .then((request) => request(this.axios, this.basePath));
459
+ return ActionsAutomation_TestExistingNotificationChannel(this.axios, this.basePath, requestParameters, options, this.configuration);
820
460
  }
821
461
  /**
822
462
  * Tests the notification channel by sending a test notification.
@@ -827,9 +467,7 @@ export class ActionsAutomation extends BaseAPI {
827
467
  * @memberof ActionsAutomation
828
468
  */
829
469
  testNotificationChannel(requestParameters, options) {
830
- return ActionsAutomationFp(this.configuration)
831
- .testNotificationChannel(requestParameters.automationTestDestinationRequest, options)
832
- .then((request) => request(this.axios, this.basePath));
470
+ return ActionsAutomation_TestNotificationChannel(this.axios, this.basePath, requestParameters, options, this.configuration);
833
471
  }
834
472
  /**
835
473
  * Trigger the automation in the request.
@@ -840,9 +478,7 @@ export class ActionsAutomation extends BaseAPI {
840
478
  * @memberof ActionsAutomation
841
479
  */
842
480
  triggerAutomation(requestParameters, options) {
843
- return ActionsAutomationFp(this.configuration)
844
- .triggerAutomation(requestParameters.workspaceId, requestParameters.automationTriggerAutomationRequest, options)
845
- .then((request) => request(this.axios, this.basePath));
481
+ return ActionsAutomation_TriggerAutomation(this.axios, this.basePath, requestParameters, options, this.configuration);
846
482
  }
847
483
  /**
848
484
  * Trigger the existing automation to execute immediately.
@@ -853,165 +489,121 @@ export class ActionsAutomation extends BaseAPI {
853
489
  * @memberof ActionsAutomation
854
490
  */
855
491
  triggerExistingAutomation(requestParameters, options) {
856
- return ActionsAutomationFp(this.configuration)
857
- .triggerExistingAutomation(requestParameters.workspaceId, requestParameters.automationId, options)
858
- .then((request) => request(this.axios, this.basePath));
492
+ return ActionsAutomation_TriggerExistingAutomation(this.axios, this.basePath, requestParameters, options, this.configuration);
859
493
  }
860
494
  }
495
+ // AutomationsAutomation FP - AutomationsAutomationAxiosParamCreator
861
496
  /**
862
- * AutomationsAutomation - axios parameter creator
863
- * @export
497
+ * Trigger the automation in the request.
498
+ * @summary Trigger automation.
499
+ * @param {string} workspaceId
500
+ * @param {AutomationTriggerAutomationRequest} automationTriggerAutomationRequest
501
+ * @param {*} [options] Override http request option.
502
+ * @param {Configuration} [configuration] Optional configuration.
503
+ * @throws {RequiredError}
864
504
  */
865
- export const AutomationsAutomationAxiosParamCreator = function (configuration) {
505
+ export async function AutomationsAutomationAxiosParamCreator_TriggerAutomation(workspaceId, automationTriggerAutomationRequest, options = {}, configuration) {
506
+ // verify required parameter 'workspaceId' is not null or undefined
507
+ assertParamExists("triggerAutomation", "workspaceId", workspaceId);
508
+ // verify required parameter 'automationTriggerAutomationRequest' is not null or undefined
509
+ assertParamExists("triggerAutomation", "automationTriggerAutomationRequest", automationTriggerAutomationRequest);
510
+ const localVarPath = `/api/v1/actions/workspaces/{workspaceId}/automations/trigger`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
511
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
512
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
513
+ let baseOptions;
514
+ if (configuration) {
515
+ baseOptions = configuration.baseOptions;
516
+ }
517
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
518
+ const localVarHeaderParameter = {};
519
+ const localVarQueryParameter = {};
520
+ localVarHeaderParameter["Content-Type"] = "application/json";
521
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
522
+ const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
523
+ localVarRequestOptions.headers = {
524
+ ...localVarHeaderParameter,
525
+ ...headersFromBaseOptions,
526
+ ...options.headers,
527
+ };
528
+ const needsSerialization = typeof automationTriggerAutomationRequest !== "string" ||
529
+ localVarRequestOptions.headers["Content-Type"] === "application/json";
530
+ localVarRequestOptions.data = needsSerialization
531
+ ? JSON.stringify(automationTriggerAutomationRequest !== undefined ? automationTriggerAutomationRequest : {})
532
+ : automationTriggerAutomationRequest || "";
866
533
  return {
867
- /**
868
- * Trigger the automation in the request.
869
- * @summary Trigger automation.
870
- * @param {string} workspaceId
871
- * @param {AutomationTriggerAutomationRequest} automationTriggerAutomationRequest
872
- * @param {*} [options] Override http request option.
873
- * @throws {RequiredError}
874
- */
875
- triggerAutomation: async (workspaceId, automationTriggerAutomationRequest, options = {}) => {
876
- // verify required parameter 'workspaceId' is not null or undefined
877
- assertParamExists("triggerAutomation", "workspaceId", workspaceId);
878
- // verify required parameter 'automationTriggerAutomationRequest' is not null or undefined
879
- assertParamExists("triggerAutomation", "automationTriggerAutomationRequest", automationTriggerAutomationRequest);
880
- const localVarPath = `/api/v1/actions/workspaces/{workspaceId}/automations/trigger`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
881
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
882
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
883
- let baseOptions;
884
- if (configuration) {
885
- baseOptions = configuration.baseOptions;
886
- }
887
- const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
888
- const localVarHeaderParameter = {};
889
- const localVarQueryParameter = {};
890
- localVarHeaderParameter["Content-Type"] = "application/json";
891
- setSearchParams(localVarUrlObj, localVarQueryParameter);
892
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
893
- localVarRequestOptions.headers = {
894
- ...localVarHeaderParameter,
895
- ...headersFromBaseOptions,
896
- ...options.headers,
897
- };
898
- const needsSerialization = typeof automationTriggerAutomationRequest !== "string" ||
899
- localVarRequestOptions.headers["Content-Type"] === "application/json";
900
- localVarRequestOptions.data = needsSerialization
901
- ? JSON.stringify(automationTriggerAutomationRequest !== undefined
902
- ? automationTriggerAutomationRequest
903
- : {})
904
- : automationTriggerAutomationRequest || "";
905
- return {
906
- url: toPathString(localVarUrlObj),
907
- options: localVarRequestOptions,
908
- };
909
- },
910
- /**
911
- * Trigger the existing automation to execute immediately.
912
- * @summary Trigger existing automation.
913
- * @param {string} workspaceId
914
- * @param {string} automationId
915
- * @param {*} [options] Override http request option.
916
- * @throws {RequiredError}
917
- */
918
- triggerExistingAutomation: async (workspaceId, automationId, options = {}) => {
919
- // verify required parameter 'workspaceId' is not null or undefined
920
- assertParamExists("triggerExistingAutomation", "workspaceId", workspaceId);
921
- // verify required parameter 'automationId' is not null or undefined
922
- assertParamExists("triggerExistingAutomation", "automationId", automationId);
923
- const localVarPath = `/api/v1/actions/workspaces/{workspaceId}/automations/{automationId}/trigger`
924
- .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)))
925
- .replace(`{${"automationId"}}`, encodeURIComponent(String(automationId)));
926
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
927
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
928
- let baseOptions;
929
- if (configuration) {
930
- baseOptions = configuration.baseOptions;
931
- }
932
- const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
933
- const localVarHeaderParameter = {};
934
- const localVarQueryParameter = {};
935
- setSearchParams(localVarUrlObj, localVarQueryParameter);
936
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
937
- localVarRequestOptions.headers = {
938
- ...localVarHeaderParameter,
939
- ...headersFromBaseOptions,
940
- ...options.headers,
941
- };
942
- return {
943
- url: toPathString(localVarUrlObj),
944
- options: localVarRequestOptions,
945
- };
946
- },
534
+ url: toPathString(localVarUrlObj),
535
+ options: localVarRequestOptions,
947
536
  };
948
- };
537
+ }
538
+ // AutomationsAutomation FP - AutomationsAutomationAxiosParamCreator
949
539
  /**
950
- * AutomationsAutomation - functional programming interface
951
- * @export
540
+ * Trigger the existing automation to execute immediately.
541
+ * @summary Trigger existing automation.
542
+ * @param {string} workspaceId
543
+ * @param {string} automationId
544
+ * @param {*} [options] Override http request option.
545
+ * @param {Configuration} [configuration] Optional configuration.
546
+ * @throws {RequiredError}
952
547
  */
953
- export const AutomationsAutomationFp = function (configuration) {
954
- const localVarAxiosParamCreator = AutomationsAutomationAxiosParamCreator(configuration);
548
+ export async function AutomationsAutomationAxiosParamCreator_TriggerExistingAutomation(workspaceId, automationId, options = {}, configuration) {
549
+ // verify required parameter 'workspaceId' is not null or undefined
550
+ assertParamExists("triggerExistingAutomation", "workspaceId", workspaceId);
551
+ // verify required parameter 'automationId' is not null or undefined
552
+ assertParamExists("triggerExistingAutomation", "automationId", automationId);
553
+ const localVarPath = `/api/v1/actions/workspaces/{workspaceId}/automations/{automationId}/trigger`
554
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)))
555
+ .replace(`{${"automationId"}}`, encodeURIComponent(String(automationId)));
556
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
557
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
558
+ let baseOptions;
559
+ if (configuration) {
560
+ baseOptions = configuration.baseOptions;
561
+ }
562
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
563
+ const localVarHeaderParameter = {};
564
+ const localVarQueryParameter = {};
565
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
566
+ const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
567
+ localVarRequestOptions.headers = {
568
+ ...localVarHeaderParameter,
569
+ ...headersFromBaseOptions,
570
+ ...options.headers,
571
+ };
955
572
  return {
956
- /**
957
- * Trigger the automation in the request.
958
- * @summary Trigger automation.
959
- * @param {string} workspaceId
960
- * @param {AutomationTriggerAutomationRequest} automationTriggerAutomationRequest
961
- * @param {*} [options] Override http request option.
962
- * @throws {RequiredError}
963
- */
964
- async triggerAutomation(workspaceId, automationTriggerAutomationRequest, options) {
965
- const localVarAxiosArgs = await localVarAxiosParamCreator.triggerAutomation(workspaceId, automationTriggerAutomationRequest, options);
966
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
967
- },
968
- /**
969
- * Trigger the existing automation to execute immediately.
970
- * @summary Trigger existing automation.
971
- * @param {string} workspaceId
972
- * @param {string} automationId
973
- * @param {*} [options] Override http request option.
974
- * @throws {RequiredError}
975
- */
976
- async triggerExistingAutomation(workspaceId, automationId, options) {
977
- const localVarAxiosArgs = await localVarAxiosParamCreator.triggerExistingAutomation(workspaceId, automationId, options);
978
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
979
- },
573
+ url: toPathString(localVarUrlObj),
574
+ options: localVarRequestOptions,
980
575
  };
981
- };
576
+ }
577
+ // AutomationsAutomation Api FP
982
578
  /**
983
- * AutomationsAutomation - factory interface
984
- * @export
579
+ * Trigger the automation in the request.
580
+ * @summary Trigger automation.
581
+ * @param {AxiosInstance} axios Axios instance.
582
+ * @param {string} basePath Base path.
583
+ * @param {AutomationsAutomationTriggerAutomationRequest} requestParameters Request parameters.
584
+ * @param {*} [options] Override http request option.
585
+ * @param {Configuration} [configuration] Optional configuration.
586
+ * @throws {RequiredError}
985
587
  */
986
- export const AutomationsAutomationFactory = function (configuration, basePath, axios) {
987
- const localVarFp = AutomationsAutomationFp(configuration);
988
- return {
989
- /**
990
- * Trigger the automation in the request.
991
- * @summary Trigger automation.
992
- * @param {AutomationsAutomationTriggerAutomationRequest} requestParameters Request parameters.
993
- * @param {*} [options] Override http request option.
994
- * @throws {RequiredError}
995
- */
996
- triggerAutomation(requestParameters, options) {
997
- return localVarFp
998
- .triggerAutomation(requestParameters.workspaceId, requestParameters.automationTriggerAutomationRequest, options)
999
- .then((request) => request(axios, basePath));
1000
- },
1001
- /**
1002
- * Trigger the existing automation to execute immediately.
1003
- * @summary Trigger existing automation.
1004
- * @param {AutomationsAutomationTriggerExistingAutomationRequest} requestParameters Request parameters.
1005
- * @param {*} [options] Override http request option.
1006
- * @throws {RequiredError}
1007
- */
1008
- triggerExistingAutomation(requestParameters, options) {
1009
- return localVarFp
1010
- .triggerExistingAutomation(requestParameters.workspaceId, requestParameters.automationId, options)
1011
- .then((request) => request(axios, basePath));
1012
- },
1013
- };
1014
- };
588
+ export async function AutomationsAutomation_TriggerAutomation(axios, basePath, requestParameters, options, configuration) {
589
+ const localVarAxiosArgs = await AutomationsAutomationAxiosParamCreator_TriggerAutomation(requestParameters.workspaceId, requestParameters.automationTriggerAutomationRequest, options || {}, configuration);
590
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
591
+ }
592
+ // AutomationsAutomation Api FP
593
+ /**
594
+ * Trigger the existing automation to execute immediately.
595
+ * @summary Trigger existing automation.
596
+ * @param {AxiosInstance} axios Axios instance.
597
+ * @param {string} basePath Base path.
598
+ * @param {AutomationsAutomationTriggerExistingAutomationRequest} requestParameters Request parameters.
599
+ * @param {*} [options] Override http request option.
600
+ * @param {Configuration} [configuration] Optional configuration.
601
+ * @throws {RequiredError}
602
+ */
603
+ export async function AutomationsAutomation_TriggerExistingAutomation(axios, basePath, requestParameters, options, configuration) {
604
+ const localVarAxiosArgs = await AutomationsAutomationAxiosParamCreator_TriggerExistingAutomation(requestParameters.workspaceId, requestParameters.automationId, options || {}, configuration);
605
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
606
+ }
1015
607
  /**
1016
608
  * AutomationsAutomation - object-oriented interface
1017
609
  * @export
@@ -1028,9 +620,7 @@ export class AutomationsAutomation extends BaseAPI {
1028
620
  * @memberof AutomationsAutomation
1029
621
  */
1030
622
  triggerAutomation(requestParameters, options) {
1031
- return AutomationsAutomationFp(this.configuration)
1032
- .triggerAutomation(requestParameters.workspaceId, requestParameters.automationTriggerAutomationRequest, options)
1033
- .then((request) => request(this.axios, this.basePath));
623
+ return AutomationsAutomation_TriggerAutomation(this.axios, this.basePath, requestParameters, options, this.configuration);
1034
624
  }
1035
625
  /**
1036
626
  * Trigger the existing automation to execute immediately.
@@ -1041,348 +631,285 @@ export class AutomationsAutomation extends BaseAPI {
1041
631
  * @memberof AutomationsAutomation
1042
632
  */
1043
633
  triggerExistingAutomation(requestParameters, options) {
1044
- return AutomationsAutomationFp(this.configuration)
1045
- .triggerExistingAutomation(requestParameters.workspaceId, requestParameters.automationId, options)
1046
- .then((request) => request(this.axios, this.basePath));
634
+ return AutomationsAutomation_TriggerExistingAutomation(this.axios, this.basePath, requestParameters, options, this.configuration);
1047
635
  }
1048
636
  }
637
+ // NotificationChannelsAutomation FP - NotificationChannelsAutomationAxiosParamCreator
1049
638
  /**
1050
- * NotificationChannelsAutomation - axios parameter creator
1051
- * @export
639
+ * Get latest in-platform notifications for the current user.
640
+ * @summary Get latest notifications.
641
+ * @param {string} [workspaceId] Workspace ID to filter notifications by.
642
+ * @param {boolean} [isRead] Filter notifications by read status.
643
+ * @param {string} [page] Zero-based page index (0..N)
644
+ * @param {string} [size] The size of the page to be returned.
645
+ * @param {Array<'total' | 'ALL'>} [metaInclude] Additional meta information to include in the response.
646
+ * @param {*} [options] Override http request option.
647
+ * @param {Configuration} [configuration] Optional configuration.
648
+ * @throws {RequiredError}
1052
649
  */
1053
- export const NotificationChannelsAutomationAxiosParamCreator = function (configuration) {
650
+ export async function NotificationChannelsAutomationAxiosParamCreator_GetNotifications(workspaceId, isRead, page, size, metaInclude, options = {}, configuration) {
651
+ const localVarPath = `/api/v1/actions/notifications`;
652
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
653
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
654
+ let baseOptions;
655
+ if (configuration) {
656
+ baseOptions = configuration.baseOptions;
657
+ }
658
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
659
+ const localVarHeaderParameter = {};
660
+ const localVarQueryParameter = {};
661
+ if (workspaceId !== undefined) {
662
+ localVarQueryParameter["workspaceId"] = workspaceId;
663
+ }
664
+ if (isRead !== undefined) {
665
+ localVarQueryParameter["isRead"] = isRead;
666
+ }
667
+ if (page !== undefined) {
668
+ localVarQueryParameter["page"] = page;
669
+ }
670
+ if (size !== undefined) {
671
+ localVarQueryParameter["size"] = size;
672
+ }
673
+ if (metaInclude) {
674
+ localVarQueryParameter["metaInclude"] = Array.from(metaInclude);
675
+ }
676
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
677
+ const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
678
+ localVarRequestOptions.headers = {
679
+ ...localVarHeaderParameter,
680
+ ...headersFromBaseOptions,
681
+ ...options.headers,
682
+ };
1054
683
  return {
1055
- /**
1056
- * Get latest in-platform notifications for the current user.
1057
- * @summary Get latest notifications.
1058
- * @param {string} [workspaceId] Workspace ID to filter notifications by.
1059
- * @param {boolean} [isRead] Filter notifications by read status.
1060
- * @param {string} [page] Zero-based page index (0..N)
1061
- * @param {string} [size] The size of the page to be returned.
1062
- * @param {Array<'total' | 'ALL'>} [metaInclude] Additional meta information to include in the response.
1063
- * @param {*} [options] Override http request option.
1064
- * @throws {RequiredError}
1065
- */
1066
- getNotifications: async (workspaceId, isRead, page, size, metaInclude, options = {}) => {
1067
- const localVarPath = `/api/v1/actions/notifications`;
1068
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1069
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1070
- let baseOptions;
1071
- if (configuration) {
1072
- baseOptions = configuration.baseOptions;
1073
- }
1074
- const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
1075
- const localVarHeaderParameter = {};
1076
- const localVarQueryParameter = {};
1077
- if (workspaceId !== undefined) {
1078
- localVarQueryParameter["workspaceId"] = workspaceId;
1079
- }
1080
- if (isRead !== undefined) {
1081
- localVarQueryParameter["isRead"] = isRead;
1082
- }
1083
- if (page !== undefined) {
1084
- localVarQueryParameter["page"] = page;
1085
- }
1086
- if (size !== undefined) {
1087
- localVarQueryParameter["size"] = size;
1088
- }
1089
- if (metaInclude) {
1090
- localVarQueryParameter["metaInclude"] = Array.from(metaInclude);
1091
- }
1092
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1093
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1094
- localVarRequestOptions.headers = {
1095
- ...localVarHeaderParameter,
1096
- ...headersFromBaseOptions,
1097
- ...options.headers,
1098
- };
1099
- return {
1100
- url: toPathString(localVarUrlObj),
1101
- options: localVarRequestOptions,
1102
- };
1103
- },
1104
- /**
1105
- * Mark in-platform notification by its ID as read.
1106
- * @summary Mark notification as read.
1107
- * @param {string} notificationId Notification ID to mark as read.
1108
- * @param {*} [options] Override http request option.
1109
- * @throws {RequiredError}
1110
- */
1111
- markAsReadNotification: async (notificationId, options = {}) => {
1112
- // verify required parameter 'notificationId' is not null or undefined
1113
- assertParamExists("markAsReadNotification", "notificationId", notificationId);
1114
- const localVarPath = `/api/v1/actions/notifications/{notificationId}/markAsRead`.replace(`{${"notificationId"}}`, encodeURIComponent(String(notificationId)));
1115
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1116
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1117
- let baseOptions;
1118
- if (configuration) {
1119
- baseOptions = configuration.baseOptions;
1120
- }
1121
- const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
1122
- const localVarHeaderParameter = {};
1123
- const localVarQueryParameter = {};
1124
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1125
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1126
- localVarRequestOptions.headers = {
1127
- ...localVarHeaderParameter,
1128
- ...headersFromBaseOptions,
1129
- ...options.headers,
1130
- };
1131
- return {
1132
- url: toPathString(localVarUrlObj),
1133
- options: localVarRequestOptions,
1134
- };
1135
- },
1136
- /**
1137
- * Mark all user in-platform notifications as read.
1138
- * @summary Mark all notifications as read.
1139
- * @param {string} [workspaceId] Workspace ID where to mark notifications as read.
1140
- * @param {*} [options] Override http request option.
1141
- * @throws {RequiredError}
1142
- */
1143
- markAsReadNotificationAll: async (workspaceId, options = {}) => {
1144
- const localVarPath = `/api/v1/actions/notifications/markAsRead`;
1145
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1146
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1147
- let baseOptions;
1148
- if (configuration) {
1149
- baseOptions = configuration.baseOptions;
1150
- }
1151
- const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
1152
- const localVarHeaderParameter = {};
1153
- const localVarQueryParameter = {};
1154
- if (workspaceId !== undefined) {
1155
- localVarQueryParameter["workspaceId"] = workspaceId;
1156
- }
1157
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1158
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1159
- localVarRequestOptions.headers = {
1160
- ...localVarHeaderParameter,
1161
- ...headersFromBaseOptions,
1162
- ...options.headers,
1163
- };
1164
- return {
1165
- url: toPathString(localVarUrlObj),
1166
- options: localVarRequestOptions,
1167
- };
1168
- },
1169
- /**
1170
- * Tests the existing notification channel by sending a test notification.
1171
- * @summary Test existing notification channel.
1172
- * @param {string} notificationChannelId
1173
- * @param {AutomationTestDestinationRequest} [automationTestDestinationRequest]
1174
- * @param {*} [options] Override http request option.
1175
- * @throws {RequiredError}
1176
- */
1177
- testExistingNotificationChannel: async (notificationChannelId, automationTestDestinationRequest, options = {}) => {
1178
- // verify required parameter 'notificationChannelId' is not null or undefined
1179
- assertParamExists("testExistingNotificationChannel", "notificationChannelId", notificationChannelId);
1180
- const localVarPath = `/api/v1/actions/notificationChannels/{notificationChannelId}/test`.replace(`{${"notificationChannelId"}}`, encodeURIComponent(String(notificationChannelId)));
1181
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1182
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1183
- let baseOptions;
1184
- if (configuration) {
1185
- baseOptions = configuration.baseOptions;
1186
- }
1187
- const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
1188
- const localVarHeaderParameter = {};
1189
- const localVarQueryParameter = {};
1190
- localVarHeaderParameter["Content-Type"] = "application/json";
1191
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1192
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1193
- localVarRequestOptions.headers = {
1194
- ...localVarHeaderParameter,
1195
- ...headersFromBaseOptions,
1196
- ...options.headers,
1197
- };
1198
- const needsSerialization = typeof automationTestDestinationRequest !== "string" ||
1199
- localVarRequestOptions.headers["Content-Type"] === "application/json";
1200
- localVarRequestOptions.data = needsSerialization
1201
- ? JSON.stringify(automationTestDestinationRequest !== undefined ? automationTestDestinationRequest : {})
1202
- : automationTestDestinationRequest || "";
1203
- return {
1204
- url: toPathString(localVarUrlObj),
1205
- options: localVarRequestOptions,
1206
- };
1207
- },
1208
- /**
1209
- * Tests the notification channel by sending a test notification.
1210
- * @summary Test notification channel.
1211
- * @param {AutomationTestDestinationRequest} automationTestDestinationRequest
1212
- * @param {*} [options] Override http request option.
1213
- * @throws {RequiredError}
1214
- */
1215
- testNotificationChannel: async (automationTestDestinationRequest, options = {}) => {
1216
- // verify required parameter 'automationTestDestinationRequest' is not null or undefined
1217
- assertParamExists("testNotificationChannel", "automationTestDestinationRequest", automationTestDestinationRequest);
1218
- const localVarPath = `/api/v1/actions/notificationChannels/test`;
1219
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1220
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1221
- let baseOptions;
1222
- if (configuration) {
1223
- baseOptions = configuration.baseOptions;
1224
- }
1225
- const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
1226
- const localVarHeaderParameter = {};
1227
- const localVarQueryParameter = {};
1228
- localVarHeaderParameter["Content-Type"] = "application/json";
1229
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1230
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1231
- localVarRequestOptions.headers = {
1232
- ...localVarHeaderParameter,
1233
- ...headersFromBaseOptions,
1234
- ...options.headers,
1235
- };
1236
- const needsSerialization = typeof automationTestDestinationRequest !== "string" ||
1237
- localVarRequestOptions.headers["Content-Type"] === "application/json";
1238
- localVarRequestOptions.data = needsSerialization
1239
- ? JSON.stringify(automationTestDestinationRequest !== undefined ? automationTestDestinationRequest : {})
1240
- : automationTestDestinationRequest || "";
1241
- return {
1242
- url: toPathString(localVarUrlObj),
1243
- options: localVarRequestOptions,
1244
- };
1245
- },
684
+ url: toPathString(localVarUrlObj),
685
+ options: localVarRequestOptions,
1246
686
  };
1247
- };
687
+ }
688
+ // NotificationChannelsAutomation FP - NotificationChannelsAutomationAxiosParamCreator
1248
689
  /**
1249
- * NotificationChannelsAutomation - functional programming interface
1250
- * @export
690
+ * Mark in-platform notification by its ID as read.
691
+ * @summary Mark notification as read.
692
+ * @param {string} notificationId Notification ID to mark as read.
693
+ * @param {*} [options] Override http request option.
694
+ * @param {Configuration} [configuration] Optional configuration.
695
+ * @throws {RequiredError}
1251
696
  */
1252
- export const NotificationChannelsAutomationFp = function (configuration) {
1253
- const localVarAxiosParamCreator = NotificationChannelsAutomationAxiosParamCreator(configuration);
697
+ export async function NotificationChannelsAutomationAxiosParamCreator_MarkAsReadNotification(notificationId, options = {}, configuration) {
698
+ // verify required parameter 'notificationId' is not null or undefined
699
+ assertParamExists("markAsReadNotification", "notificationId", notificationId);
700
+ const localVarPath = `/api/v1/actions/notifications/{notificationId}/markAsRead`.replace(`{${"notificationId"}}`, encodeURIComponent(String(notificationId)));
701
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
702
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
703
+ let baseOptions;
704
+ if (configuration) {
705
+ baseOptions = configuration.baseOptions;
706
+ }
707
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
708
+ const localVarHeaderParameter = {};
709
+ const localVarQueryParameter = {};
710
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
711
+ const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
712
+ localVarRequestOptions.headers = {
713
+ ...localVarHeaderParameter,
714
+ ...headersFromBaseOptions,
715
+ ...options.headers,
716
+ };
1254
717
  return {
1255
- /**
1256
- * Get latest in-platform notifications for the current user.
1257
- * @summary Get latest notifications.
1258
- * @param {string} [workspaceId] Workspace ID to filter notifications by.
1259
- * @param {boolean} [isRead] Filter notifications by read status.
1260
- * @param {string} [page] Zero-based page index (0..N)
1261
- * @param {string} [size] The size of the page to be returned.
1262
- * @param {Array<'total' | 'ALL'>} [metaInclude] Additional meta information to include in the response.
1263
- * @param {*} [options] Override http request option.
1264
- * @throws {RequiredError}
1265
- */
1266
- async getNotifications(workspaceId, isRead, page, size, metaInclude, options) {
1267
- const localVarAxiosArgs = await localVarAxiosParamCreator.getNotifications(workspaceId, isRead, page, size, metaInclude, options);
1268
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1269
- },
1270
- /**
1271
- * Mark in-platform notification by its ID as read.
1272
- * @summary Mark notification as read.
1273
- * @param {string} notificationId Notification ID to mark as read.
1274
- * @param {*} [options] Override http request option.
1275
- * @throws {RequiredError}
1276
- */
1277
- async markAsReadNotification(notificationId, options) {
1278
- const localVarAxiosArgs = await localVarAxiosParamCreator.markAsReadNotification(notificationId, options);
1279
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1280
- },
1281
- /**
1282
- * Mark all user in-platform notifications as read.
1283
- * @summary Mark all notifications as read.
1284
- * @param {string} [workspaceId] Workspace ID where to mark notifications as read.
1285
- * @param {*} [options] Override http request option.
1286
- * @throws {RequiredError}
1287
- */
1288
- async markAsReadNotificationAll(workspaceId, options) {
1289
- const localVarAxiosArgs = await localVarAxiosParamCreator.markAsReadNotificationAll(workspaceId, options);
1290
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1291
- },
1292
- /**
1293
- * Tests the existing notification channel by sending a test notification.
1294
- * @summary Test existing notification channel.
1295
- * @param {string} notificationChannelId
1296
- * @param {AutomationTestDestinationRequest} [automationTestDestinationRequest]
1297
- * @param {*} [options] Override http request option.
1298
- * @throws {RequiredError}
1299
- */
1300
- async testExistingNotificationChannel(notificationChannelId, automationTestDestinationRequest, options) {
1301
- const localVarAxiosArgs = await localVarAxiosParamCreator.testExistingNotificationChannel(notificationChannelId, automationTestDestinationRequest, options);
1302
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1303
- },
1304
- /**
1305
- * Tests the notification channel by sending a test notification.
1306
- * @summary Test notification channel.
1307
- * @param {AutomationTestDestinationRequest} automationTestDestinationRequest
1308
- * @param {*} [options] Override http request option.
1309
- * @throws {RequiredError}
1310
- */
1311
- async testNotificationChannel(automationTestDestinationRequest, options) {
1312
- const localVarAxiosArgs = await localVarAxiosParamCreator.testNotificationChannel(automationTestDestinationRequest, options);
1313
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1314
- },
718
+ url: toPathString(localVarUrlObj),
719
+ options: localVarRequestOptions,
1315
720
  };
1316
- };
721
+ }
722
+ // NotificationChannelsAutomation FP - NotificationChannelsAutomationAxiosParamCreator
1317
723
  /**
1318
- * NotificationChannelsAutomation - factory interface
1319
- * @export
724
+ * Mark all user in-platform notifications as read.
725
+ * @summary Mark all notifications as read.
726
+ * @param {string} [workspaceId] Workspace ID where to mark notifications as read.
727
+ * @param {*} [options] Override http request option.
728
+ * @param {Configuration} [configuration] Optional configuration.
729
+ * @throws {RequiredError}
1320
730
  */
1321
- export const NotificationChannelsAutomationFactory = function (configuration, basePath, axios) {
1322
- const localVarFp = NotificationChannelsAutomationFp(configuration);
731
+ export async function NotificationChannelsAutomationAxiosParamCreator_MarkAsReadNotificationAll(workspaceId, options = {}, configuration) {
732
+ const localVarPath = `/api/v1/actions/notifications/markAsRead`;
733
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
734
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
735
+ let baseOptions;
736
+ if (configuration) {
737
+ baseOptions = configuration.baseOptions;
738
+ }
739
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
740
+ const localVarHeaderParameter = {};
741
+ const localVarQueryParameter = {};
742
+ if (workspaceId !== undefined) {
743
+ localVarQueryParameter["workspaceId"] = workspaceId;
744
+ }
745
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
746
+ const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
747
+ localVarRequestOptions.headers = {
748
+ ...localVarHeaderParameter,
749
+ ...headersFromBaseOptions,
750
+ ...options.headers,
751
+ };
752
+ return {
753
+ url: toPathString(localVarUrlObj),
754
+ options: localVarRequestOptions,
755
+ };
756
+ }
757
+ // NotificationChannelsAutomation FP - NotificationChannelsAutomationAxiosParamCreator
758
+ /**
759
+ * Tests the existing notification channel by sending a test notification.
760
+ * @summary Test existing notification channel.
761
+ * @param {string} notificationChannelId
762
+ * @param {AutomationTestDestinationRequest} [automationTestDestinationRequest]
763
+ * @param {*} [options] Override http request option.
764
+ * @param {Configuration} [configuration] Optional configuration.
765
+ * @throws {RequiredError}
766
+ */
767
+ export async function NotificationChannelsAutomationAxiosParamCreator_TestExistingNotificationChannel(notificationChannelId, automationTestDestinationRequest, options = {}, configuration) {
768
+ // verify required parameter 'notificationChannelId' is not null or undefined
769
+ assertParamExists("testExistingNotificationChannel", "notificationChannelId", notificationChannelId);
770
+ const localVarPath = `/api/v1/actions/notificationChannels/{notificationChannelId}/test`.replace(`{${"notificationChannelId"}}`, encodeURIComponent(String(notificationChannelId)));
771
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
772
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
773
+ let baseOptions;
774
+ if (configuration) {
775
+ baseOptions = configuration.baseOptions;
776
+ }
777
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
778
+ const localVarHeaderParameter = {};
779
+ const localVarQueryParameter = {};
780
+ localVarHeaderParameter["Content-Type"] = "application/json";
781
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
782
+ const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
783
+ localVarRequestOptions.headers = {
784
+ ...localVarHeaderParameter,
785
+ ...headersFromBaseOptions,
786
+ ...options.headers,
787
+ };
788
+ const needsSerialization = typeof automationTestDestinationRequest !== "string" ||
789
+ localVarRequestOptions.headers["Content-Type"] === "application/json";
790
+ localVarRequestOptions.data = needsSerialization
791
+ ? JSON.stringify(automationTestDestinationRequest !== undefined ? automationTestDestinationRequest : {})
792
+ : automationTestDestinationRequest || "";
793
+ return {
794
+ url: toPathString(localVarUrlObj),
795
+ options: localVarRequestOptions,
796
+ };
797
+ }
798
+ // NotificationChannelsAutomation FP - NotificationChannelsAutomationAxiosParamCreator
799
+ /**
800
+ * Tests the notification channel by sending a test notification.
801
+ * @summary Test notification channel.
802
+ * @param {AutomationTestDestinationRequest} automationTestDestinationRequest
803
+ * @param {*} [options] Override http request option.
804
+ * @param {Configuration} [configuration] Optional configuration.
805
+ * @throws {RequiredError}
806
+ */
807
+ export async function NotificationChannelsAutomationAxiosParamCreator_TestNotificationChannel(automationTestDestinationRequest, options = {}, configuration) {
808
+ // verify required parameter 'automationTestDestinationRequest' is not null or undefined
809
+ assertParamExists("testNotificationChannel", "automationTestDestinationRequest", automationTestDestinationRequest);
810
+ const localVarPath = `/api/v1/actions/notificationChannels/test`;
811
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
812
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
813
+ let baseOptions;
814
+ if (configuration) {
815
+ baseOptions = configuration.baseOptions;
816
+ }
817
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
818
+ const localVarHeaderParameter = {};
819
+ const localVarQueryParameter = {};
820
+ localVarHeaderParameter["Content-Type"] = "application/json";
821
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
822
+ const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
823
+ localVarRequestOptions.headers = {
824
+ ...localVarHeaderParameter,
825
+ ...headersFromBaseOptions,
826
+ ...options.headers,
827
+ };
828
+ const needsSerialization = typeof automationTestDestinationRequest !== "string" ||
829
+ localVarRequestOptions.headers["Content-Type"] === "application/json";
830
+ localVarRequestOptions.data = needsSerialization
831
+ ? JSON.stringify(automationTestDestinationRequest !== undefined ? automationTestDestinationRequest : {})
832
+ : automationTestDestinationRequest || "";
1323
833
  return {
1324
- /**
1325
- * Get latest in-platform notifications for the current user.
1326
- * @summary Get latest notifications.
1327
- * @param {NotificationChannelsAutomationGetNotificationsRequest} requestParameters Request parameters.
1328
- * @param {*} [options] Override http request option.
1329
- * @throws {RequiredError}
1330
- */
1331
- getNotifications(requestParameters, options) {
1332
- return localVarFp
1333
- .getNotifications(requestParameters.workspaceId, requestParameters.isRead, requestParameters.page, requestParameters.size, requestParameters.metaInclude, options)
1334
- .then((request) => request(axios, basePath));
1335
- },
1336
- /**
1337
- * Mark in-platform notification by its ID as read.
1338
- * @summary Mark notification as read.
1339
- * @param {NotificationChannelsAutomationMarkAsReadNotificationRequest} requestParameters Request parameters.
1340
- * @param {*} [options] Override http request option.
1341
- * @throws {RequiredError}
1342
- */
1343
- markAsReadNotification(requestParameters, options) {
1344
- return localVarFp
1345
- .markAsReadNotification(requestParameters.notificationId, options)
1346
- .then((request) => request(axios, basePath));
1347
- },
1348
- /**
1349
- * Mark all user in-platform notifications as read.
1350
- * @summary Mark all notifications as read.
1351
- * @param {NotificationChannelsAutomationMarkAsReadNotificationAllRequest} requestParameters Request parameters.
1352
- * @param {*} [options] Override http request option.
1353
- * @throws {RequiredError}
1354
- */
1355
- markAsReadNotificationAll(requestParameters, options) {
1356
- return localVarFp
1357
- .markAsReadNotificationAll(requestParameters.workspaceId, options)
1358
- .then((request) => request(axios, basePath));
1359
- },
1360
- /**
1361
- * Tests the existing notification channel by sending a test notification.
1362
- * @summary Test existing notification channel.
1363
- * @param {NotificationChannelsAutomationTestExistingNotificationChannelRequest} requestParameters Request parameters.
1364
- * @param {*} [options] Override http request option.
1365
- * @throws {RequiredError}
1366
- */
1367
- testExistingNotificationChannel(requestParameters, options) {
1368
- return localVarFp
1369
- .testExistingNotificationChannel(requestParameters.notificationChannelId, requestParameters.automationTestDestinationRequest, options)
1370
- .then((request) => request(axios, basePath));
1371
- },
1372
- /**
1373
- * Tests the notification channel by sending a test notification.
1374
- * @summary Test notification channel.
1375
- * @param {NotificationChannelsAutomationTestNotificationChannelRequest} requestParameters Request parameters.
1376
- * @param {*} [options] Override http request option.
1377
- * @throws {RequiredError}
1378
- */
1379
- testNotificationChannel(requestParameters, options) {
1380
- return localVarFp
1381
- .testNotificationChannel(requestParameters.automationTestDestinationRequest, options)
1382
- .then((request) => request(axios, basePath));
1383
- },
834
+ url: toPathString(localVarUrlObj),
835
+ options: localVarRequestOptions,
1384
836
  };
1385
- };
837
+ }
838
+ // NotificationChannelsAutomation Api FP
839
+ /**
840
+ * Get latest in-platform notifications for the current user.
841
+ * @summary Get latest notifications.
842
+ * @param {AxiosInstance} axios Axios instance.
843
+ * @param {string} basePath Base path.
844
+ * @param {NotificationChannelsAutomationGetNotificationsRequest} requestParameters Request parameters.
845
+ * @param {*} [options] Override http request option.
846
+ * @param {Configuration} [configuration] Optional configuration.
847
+ * @throws {RequiredError}
848
+ */
849
+ export async function NotificationChannelsAutomation_GetNotifications(axios, basePath, requestParameters, options, configuration) {
850
+ const localVarAxiosArgs = await NotificationChannelsAutomationAxiosParamCreator_GetNotifications(requestParameters.workspaceId, requestParameters.isRead, requestParameters.page, requestParameters.size, requestParameters.metaInclude, options || {}, configuration);
851
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
852
+ }
853
+ // NotificationChannelsAutomation Api FP
854
+ /**
855
+ * Mark in-platform notification by its ID as read.
856
+ * @summary Mark notification as read.
857
+ * @param {AxiosInstance} axios Axios instance.
858
+ * @param {string} basePath Base path.
859
+ * @param {NotificationChannelsAutomationMarkAsReadNotificationRequest} requestParameters Request parameters.
860
+ * @param {*} [options] Override http request option.
861
+ * @param {Configuration} [configuration] Optional configuration.
862
+ * @throws {RequiredError}
863
+ */
864
+ export async function NotificationChannelsAutomation_MarkAsReadNotification(axios, basePath, requestParameters, options, configuration) {
865
+ const localVarAxiosArgs = await NotificationChannelsAutomationAxiosParamCreator_MarkAsReadNotification(requestParameters.notificationId, options || {}, configuration);
866
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
867
+ }
868
+ // NotificationChannelsAutomation Api FP
869
+ /**
870
+ * Mark all user in-platform notifications as read.
871
+ * @summary Mark all notifications as read.
872
+ * @param {AxiosInstance} axios Axios instance.
873
+ * @param {string} basePath Base path.
874
+ * @param {NotificationChannelsAutomationMarkAsReadNotificationAllRequest} requestParameters Request parameters.
875
+ * @param {*} [options] Override http request option.
876
+ * @param {Configuration} [configuration] Optional configuration.
877
+ * @throws {RequiredError}
878
+ */
879
+ export async function NotificationChannelsAutomation_MarkAsReadNotificationAll(axios, basePath, requestParameters, options, configuration) {
880
+ const localVarAxiosArgs = await NotificationChannelsAutomationAxiosParamCreator_MarkAsReadNotificationAll(requestParameters.workspaceId, options || {}, configuration);
881
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
882
+ }
883
+ // NotificationChannelsAutomation Api FP
884
+ /**
885
+ * Tests the existing notification channel by sending a test notification.
886
+ * @summary Test existing notification channel.
887
+ * @param {AxiosInstance} axios Axios instance.
888
+ * @param {string} basePath Base path.
889
+ * @param {NotificationChannelsAutomationTestExistingNotificationChannelRequest} requestParameters Request parameters.
890
+ * @param {*} [options] Override http request option.
891
+ * @param {Configuration} [configuration] Optional configuration.
892
+ * @throws {RequiredError}
893
+ */
894
+ export async function NotificationChannelsAutomation_TestExistingNotificationChannel(axios, basePath, requestParameters, options, configuration) {
895
+ const localVarAxiosArgs = await NotificationChannelsAutomationAxiosParamCreator_TestExistingNotificationChannel(requestParameters.notificationChannelId, requestParameters.automationTestDestinationRequest, options || {}, configuration);
896
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
897
+ }
898
+ // NotificationChannelsAutomation Api FP
899
+ /**
900
+ * Tests the notification channel by sending a test notification.
901
+ * @summary Test notification channel.
902
+ * @param {AxiosInstance} axios Axios instance.
903
+ * @param {string} basePath Base path.
904
+ * @param {NotificationChannelsAutomationTestNotificationChannelRequest} requestParameters Request parameters.
905
+ * @param {*} [options] Override http request option.
906
+ * @param {Configuration} [configuration] Optional configuration.
907
+ * @throws {RequiredError}
908
+ */
909
+ export async function NotificationChannelsAutomation_TestNotificationChannel(axios, basePath, requestParameters, options, configuration) {
910
+ const localVarAxiosArgs = await NotificationChannelsAutomationAxiosParamCreator_TestNotificationChannel(requestParameters.automationTestDestinationRequest, options || {}, configuration);
911
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
912
+ }
1386
913
  /**
1387
914
  * NotificationChannelsAutomation - object-oriented interface
1388
915
  * @export
@@ -1399,9 +926,7 @@ export class NotificationChannelsAutomation extends BaseAPI {
1399
926
  * @memberof NotificationChannelsAutomation
1400
927
  */
1401
928
  getNotifications(requestParameters = {}, options) {
1402
- return NotificationChannelsAutomationFp(this.configuration)
1403
- .getNotifications(requestParameters.workspaceId, requestParameters.isRead, requestParameters.page, requestParameters.size, requestParameters.metaInclude, options)
1404
- .then((request) => request(this.axios, this.basePath));
929
+ return NotificationChannelsAutomation_GetNotifications(this.axios, this.basePath, requestParameters, options, this.configuration);
1405
930
  }
1406
931
  /**
1407
932
  * Mark in-platform notification by its ID as read.
@@ -1412,9 +937,7 @@ export class NotificationChannelsAutomation extends BaseAPI {
1412
937
  * @memberof NotificationChannelsAutomation
1413
938
  */
1414
939
  markAsReadNotification(requestParameters, options) {
1415
- return NotificationChannelsAutomationFp(this.configuration)
1416
- .markAsReadNotification(requestParameters.notificationId, options)
1417
- .then((request) => request(this.axios, this.basePath));
940
+ return NotificationChannelsAutomation_MarkAsReadNotification(this.axios, this.basePath, requestParameters, options, this.configuration);
1418
941
  }
1419
942
  /**
1420
943
  * Mark all user in-platform notifications as read.
@@ -1425,9 +948,7 @@ export class NotificationChannelsAutomation extends BaseAPI {
1425
948
  * @memberof NotificationChannelsAutomation
1426
949
  */
1427
950
  markAsReadNotificationAll(requestParameters = {}, options) {
1428
- return NotificationChannelsAutomationFp(this.configuration)
1429
- .markAsReadNotificationAll(requestParameters.workspaceId, options)
1430
- .then((request) => request(this.axios, this.basePath));
951
+ return NotificationChannelsAutomation_MarkAsReadNotificationAll(this.axios, this.basePath, requestParameters, options, this.configuration);
1431
952
  }
1432
953
  /**
1433
954
  * Tests the existing notification channel by sending a test notification.
@@ -1438,9 +959,7 @@ export class NotificationChannelsAutomation extends BaseAPI {
1438
959
  * @memberof NotificationChannelsAutomation
1439
960
  */
1440
961
  testExistingNotificationChannel(requestParameters, options) {
1441
- return NotificationChannelsAutomationFp(this.configuration)
1442
- .testExistingNotificationChannel(requestParameters.notificationChannelId, requestParameters.automationTestDestinationRequest, options)
1443
- .then((request) => request(this.axios, this.basePath));
962
+ return NotificationChannelsAutomation_TestExistingNotificationChannel(this.axios, this.basePath, requestParameters, options, this.configuration);
1444
963
  }
1445
964
  /**
1446
965
  * Tests the notification channel by sending a test notification.
@@ -1451,9 +970,7 @@ export class NotificationChannelsAutomation extends BaseAPI {
1451
970
  * @memberof NotificationChannelsAutomation
1452
971
  */
1453
972
  testNotificationChannel(requestParameters, options) {
1454
- return NotificationChannelsAutomationFp(this.configuration)
1455
- .testNotificationChannel(requestParameters.automationTestDestinationRequest, options)
1456
- .then((request) => request(this.axios, this.basePath));
973
+ return NotificationChannelsAutomation_TestNotificationChannel(this.axios, this.basePath, requestParameters, options, this.configuration);
1457
974
  }
1458
975
  }
1459
976
  //# sourceMappingURL=api.js.map