@gooddata/api-client-tiger 10.27.0-alpha.8 → 10.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/__version.d.ts +1 -1
- package/esm/__version.d.ts.map +1 -1
- package/esm/__version.js +1 -1
- package/esm/__version.js.map +1 -1
- package/esm/api-client-tiger.d.ts +4347 -1738
- package/esm/automation.d.ts +2 -3
- package/esm/automation.d.ts.map +1 -1
- package/esm/automation.js +2 -2
- package/esm/automation.js.map +1 -1
- package/esm/client.d.ts +2 -2
- package/esm/client.d.ts.map +1 -1
- package/esm/client.js +1 -1
- package/esm/client.js.map +1 -1
- package/esm/generated/afm-rest-api/api.d.ts +60 -8
- package/esm/generated/afm-rest-api/api.d.ts.map +1 -1
- package/esm/generated/afm-rest-api/api.js +4 -4
- package/esm/generated/afm-rest-api/api.js.map +1 -1
- package/esm/generated/afm-rest-api/openapi-spec.json +51 -10
- package/esm/generated/automation-json-api/api.d.ts +1984 -705
- package/esm/generated/automation-json-api/api.d.ts.map +1 -1
- package/esm/generated/automation-json-api/api.js +275 -169
- package/esm/generated/automation-json-api/api.js.map +1 -1
- package/esm/generated/automation-json-api/openapi-spec.json +1046 -7
- package/esm/generated/export-json-api/api.d.ts +591 -4
- package/esm/generated/export-json-api/api.d.ts.map +1 -1
- package/esm/generated/export-json-api/api.js +522 -10
- package/esm/generated/export-json-api/api.js.map +1 -1
- package/esm/generated/export-json-api/openapi-spec.json +417 -1
- package/esm/generated/metadata-json-api/api.d.ts +1209 -1183
- package/esm/generated/metadata-json-api/api.d.ts.map +1 -1
- package/esm/generated/metadata-json-api/api.js +76 -57
- package/esm/generated/metadata-json-api/api.js.map +1 -1
- package/esm/generated/metadata-json-api/openapi-spec.json +7953 -7935
- package/esm/generated/result-json-api/base.d.ts.map +1 -1
- package/esm/generated/result-json-api/base.js +1 -13
- package/esm/generated/result-json-api/base.js.map +1 -1
- package/esm/generated/scan-json-api/api.d.ts +2 -1
- package/esm/generated/scan-json-api/api.d.ts.map +1 -1
- package/esm/generated/scan-json-api/api.js +2 -1
- package/esm/generated/scan-json-api/api.js.map +1 -1
- package/esm/generated/scan-json-api/openapi-spec.json +3 -2
- package/esm/index.d.ts +5 -2
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +1 -0
- package/esm/index.js.map +1 -1
- package/package.json +4 -4
|
@@ -8,60 +8,162 @@ import { DUMMY_BASE_URL, assertParamExists, setSearchParams, toPathString, creat
|
|
|
8
8
|
// prettier-ignore
|
|
9
9
|
// @ts-ignore
|
|
10
10
|
import { BASE_PATH, BaseAPI } from './base.js';
|
|
11
|
-
export const
|
|
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 = {
|
|
12
39
|
SUCCESS: "SUCCESS",
|
|
13
40
|
ERROR: "ERROR",
|
|
14
41
|
INTERNAL_ERROR: "INTERNAL_ERROR",
|
|
15
42
|
TIMEOUT: "TIMEOUT",
|
|
16
43
|
};
|
|
17
|
-
export const
|
|
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 AutomationComparisonOperatorEnum = {
|
|
60
|
+
GREATER_THAN: "GREATER_THAN",
|
|
61
|
+
GREATER_THAN_OR_EQUAL_TO: "GREATER_THAN_OR_EQUAL_TO",
|
|
62
|
+
LESS_THAN: "LESS_THAN",
|
|
63
|
+
LESS_THAN_OR_EQUAL_TO: "LESS_THAN_OR_EQUAL_TO",
|
|
64
|
+
EQUAL_TO: "EQUAL_TO",
|
|
65
|
+
NOT_EQUAL_TO: "NOT_EQUAL_TO",
|
|
66
|
+
};
|
|
67
|
+
export const AutomationComparisonMeasureValueFilterComparisonMeasureValueFilterOperatorEnum = {
|
|
68
|
+
GREATER_THAN: "GREATER_THAN",
|
|
69
|
+
GREATER_THAN_OR_EQUAL_TO: "GREATER_THAN_OR_EQUAL_TO",
|
|
70
|
+
LESS_THAN: "LESS_THAN",
|
|
71
|
+
LESS_THAN_OR_EQUAL_TO: "LESS_THAN_OR_EQUAL_TO",
|
|
72
|
+
EQUAL_TO: "EQUAL_TO",
|
|
73
|
+
NOT_EQUAL_TO: "NOT_EQUAL_TO",
|
|
74
|
+
};
|
|
75
|
+
export const AutomationDeclarativeAnalyticalDashboardIdentifierTypeEnum = {
|
|
18
76
|
ANALYTICAL_DASHBOARD: "analyticalDashboard",
|
|
19
77
|
};
|
|
20
|
-
export const
|
|
78
|
+
export const AutomationDeclarativeNotificationChannelIdentifierTypeEnum = {
|
|
21
79
|
NOTIFICATION_CHANNEL: "notificationChannel",
|
|
22
80
|
};
|
|
23
|
-
export const
|
|
81
|
+
export const AutomationDeclarativeUserIdentifierTypeEnum = {
|
|
24
82
|
USER: "user",
|
|
25
83
|
};
|
|
26
|
-
export const
|
|
84
|
+
export const AutomationDefaultSmtpTypeEnum = {
|
|
27
85
|
DEFAULT_SMTP: "DEFAULT_SMTP",
|
|
28
86
|
};
|
|
29
|
-
export const
|
|
87
|
+
export const AutomationExportResultStatusEnum = {
|
|
30
88
|
SUCCESS: "SUCCESS",
|
|
31
89
|
ERROR: "ERROR",
|
|
32
90
|
INTERNAL_ERROR: "INTERNAL_ERROR",
|
|
33
91
|
TIMEOUT: "TIMEOUT",
|
|
34
92
|
};
|
|
35
|
-
export const
|
|
93
|
+
export const AutomationInPlatformTypeEnum = {
|
|
36
94
|
IN_PLATFORM: "IN_PLATFORM",
|
|
37
95
|
};
|
|
38
|
-
export const
|
|
96
|
+
export const AutomationRangeOperatorEnum = {
|
|
97
|
+
BETWEEN: "BETWEEN",
|
|
98
|
+
NOT_BETWEEN: "NOT_BETWEEN",
|
|
99
|
+
};
|
|
100
|
+
export const AutomationRangeMeasureValueFilterRangeMeasureValueFilterOperatorEnum = {
|
|
101
|
+
BETWEEN: "BETWEEN",
|
|
102
|
+
NOT_BETWEEN: "NOT_BETWEEN",
|
|
103
|
+
};
|
|
104
|
+
export const AutomationRankingFilterRankingFilterOperatorEnum = {
|
|
105
|
+
TOP: "TOP",
|
|
106
|
+
BOTTOM: "BOTTOM",
|
|
107
|
+
};
|
|
108
|
+
export const AutomationRelativeOperatorEnum = {
|
|
109
|
+
INCREASES_BY: "INCREASES_BY",
|
|
110
|
+
DECREASES_BY: "DECREASES_BY",
|
|
111
|
+
CHANGES_BY: "CHANGES_BY",
|
|
112
|
+
};
|
|
113
|
+
export const AutomationRelativeDateFilterRelativeDateFilterGranularityEnum = {
|
|
114
|
+
MINUTE: "MINUTE",
|
|
115
|
+
HOUR: "HOUR",
|
|
116
|
+
DAY: "DAY",
|
|
117
|
+
WEEK: "WEEK",
|
|
118
|
+
MONTH: "MONTH",
|
|
119
|
+
QUARTER: "QUARTER",
|
|
120
|
+
YEAR: "YEAR",
|
|
121
|
+
MINUTE_OF_HOUR: "MINUTE_OF_HOUR",
|
|
122
|
+
HOUR_OF_DAY: "HOUR_OF_DAY",
|
|
123
|
+
DAY_OF_WEEK: "DAY_OF_WEEK",
|
|
124
|
+
DAY_OF_MONTH: "DAY_OF_MONTH",
|
|
125
|
+
DAY_OF_YEAR: "DAY_OF_YEAR",
|
|
126
|
+
WEEK_OF_YEAR: "WEEK_OF_YEAR",
|
|
127
|
+
MONTH_OF_YEAR: "MONTH_OF_YEAR",
|
|
128
|
+
QUARTER_OF_YEAR: "QUARTER_OF_YEAR",
|
|
129
|
+
};
|
|
130
|
+
export const AutomationSimpleMeasureDefinitionMeasureAggregationEnum = {
|
|
131
|
+
SUM: "SUM",
|
|
132
|
+
COUNT: "COUNT",
|
|
133
|
+
AVG: "AVG",
|
|
134
|
+
MIN: "MIN",
|
|
135
|
+
MAX: "MAX",
|
|
136
|
+
MEDIAN: "MEDIAN",
|
|
137
|
+
RUNSUM: "RUNSUM",
|
|
138
|
+
APPROXIMATE_COUNT: "APPROXIMATE_COUNT",
|
|
139
|
+
};
|
|
140
|
+
export const AutomationSmtpPortEnum = {
|
|
39
141
|
NUMBER_25: 25,
|
|
40
142
|
NUMBER_465: 465,
|
|
41
143
|
NUMBER_587: 587,
|
|
42
144
|
NUMBER_2525: 2525,
|
|
43
145
|
};
|
|
44
|
-
export const
|
|
146
|
+
export const AutomationSmtpTypeEnum = {
|
|
45
147
|
SMTP: "SMTP",
|
|
46
148
|
};
|
|
47
|
-
export const
|
|
149
|
+
export const AutomationTabularExportRequestFormatEnum = {
|
|
48
150
|
CSV: "CSV",
|
|
49
151
|
XLSX: "XLSX",
|
|
50
152
|
HTML: "HTML",
|
|
51
153
|
PDF: "PDF",
|
|
52
154
|
};
|
|
53
|
-
export const
|
|
155
|
+
export const AutomationWebhookTypeEnum = {
|
|
54
156
|
WEBHOOK: "WEBHOOK",
|
|
55
157
|
};
|
|
56
|
-
export const
|
|
158
|
+
export const AutomationWebhookMessageTypeEnum = {
|
|
57
159
|
COMPLETED: "automation-task.completed",
|
|
58
160
|
LIMIT_EXCEEDED: "automation-task.limit-exceeded",
|
|
59
161
|
};
|
|
60
162
|
/**
|
|
61
|
-
*
|
|
163
|
+
* ActionsAutomation - axios parameter creator
|
|
62
164
|
* @export
|
|
63
165
|
*/
|
|
64
|
-
export const
|
|
166
|
+
export const ActionsAutomationAxiosParamCreator = function (configuration) {
|
|
65
167
|
return {
|
|
66
168
|
/**
|
|
67
169
|
* Get latest in-platform notifications for the current user.
|
|
@@ -181,11 +283,11 @@ export const ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
181
283
|
* Tests the existing notification channel by sending a test notification.
|
|
182
284
|
* @summary Test existing notification channel.
|
|
183
285
|
* @param {string} notificationChannelId
|
|
184
|
-
* @param {
|
|
286
|
+
* @param {AutomationTestDestinationRequest} [automationTestDestinationRequest]
|
|
185
287
|
* @param {*} [options] Override http request option.
|
|
186
288
|
* @throws {RequiredError}
|
|
187
289
|
*/
|
|
188
|
-
testExistingNotificationChannel: async (notificationChannelId,
|
|
290
|
+
testExistingNotificationChannel: async (notificationChannelId, automationTestDestinationRequest, options = {}) => {
|
|
189
291
|
// verify required parameter 'notificationChannelId' is not null or undefined
|
|
190
292
|
assertParamExists("testExistingNotificationChannel", "notificationChannelId", notificationChannelId);
|
|
191
293
|
const localVarPath = `/api/v1/actions/notificationChannels/{notificationChannelId}/test`.replace(`{${"notificationChannelId"}}`, encodeURIComponent(String(notificationChannelId)));
|
|
@@ -206,11 +308,11 @@ export const ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
206
308
|
...headersFromBaseOptions,
|
|
207
309
|
...options.headers,
|
|
208
310
|
};
|
|
209
|
-
const needsSerialization = typeof
|
|
311
|
+
const needsSerialization = typeof automationTestDestinationRequest !== "string" ||
|
|
210
312
|
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
211
313
|
localVarRequestOptions.data = needsSerialization
|
|
212
|
-
? JSON.stringify(
|
|
213
|
-
:
|
|
314
|
+
? JSON.stringify(automationTestDestinationRequest !== undefined ? automationTestDestinationRequest : {})
|
|
315
|
+
: automationTestDestinationRequest || "";
|
|
214
316
|
return {
|
|
215
317
|
url: toPathString(localVarUrlObj),
|
|
216
318
|
options: localVarRequestOptions,
|
|
@@ -219,13 +321,13 @@ export const ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
219
321
|
/**
|
|
220
322
|
* Tests the notification channel by sending a test notification.
|
|
221
323
|
* @summary Test notification channel.
|
|
222
|
-
* @param {
|
|
324
|
+
* @param {AutomationTestDestinationRequest} automationTestDestinationRequest
|
|
223
325
|
* @param {*} [options] Override http request option.
|
|
224
326
|
* @throws {RequiredError}
|
|
225
327
|
*/
|
|
226
|
-
testNotificationChannel: async (
|
|
227
|
-
// verify required parameter '
|
|
228
|
-
assertParamExists("testNotificationChannel", "
|
|
328
|
+
testNotificationChannel: async (automationTestDestinationRequest, options = {}) => {
|
|
329
|
+
// verify required parameter 'automationTestDestinationRequest' is not null or undefined
|
|
330
|
+
assertParamExists("testNotificationChannel", "automationTestDestinationRequest", automationTestDestinationRequest);
|
|
229
331
|
const localVarPath = `/api/v1/actions/notificationChannels/test`;
|
|
230
332
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
231
333
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -244,11 +346,11 @@ export const ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
244
346
|
...headersFromBaseOptions,
|
|
245
347
|
...options.headers,
|
|
246
348
|
};
|
|
247
|
-
const needsSerialization = typeof
|
|
349
|
+
const needsSerialization = typeof automationTestDestinationRequest !== "string" ||
|
|
248
350
|
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
249
351
|
localVarRequestOptions.data = needsSerialization
|
|
250
|
-
? JSON.stringify(
|
|
251
|
-
:
|
|
352
|
+
? JSON.stringify(automationTestDestinationRequest !== undefined ? automationTestDestinationRequest : {})
|
|
353
|
+
: automationTestDestinationRequest || "";
|
|
252
354
|
return {
|
|
253
355
|
url: toPathString(localVarUrlObj),
|
|
254
356
|
options: localVarRequestOptions,
|
|
@@ -258,15 +360,15 @@ export const ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
258
360
|
* Trigger the automation in the request.
|
|
259
361
|
* @summary Trigger automation.
|
|
260
362
|
* @param {string} workspaceId
|
|
261
|
-
* @param {
|
|
363
|
+
* @param {AutomationTriggerAutomationRequest} automationTriggerAutomationRequest
|
|
262
364
|
* @param {*} [options] Override http request option.
|
|
263
365
|
* @throws {RequiredError}
|
|
264
366
|
*/
|
|
265
|
-
triggerAutomation: async (workspaceId,
|
|
367
|
+
triggerAutomation: async (workspaceId, automationTriggerAutomationRequest, options = {}) => {
|
|
266
368
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
267
369
|
assertParamExists("triggerAutomation", "workspaceId", workspaceId);
|
|
268
|
-
// verify required parameter '
|
|
269
|
-
assertParamExists("triggerAutomation", "
|
|
370
|
+
// verify required parameter 'automationTriggerAutomationRequest' is not null or undefined
|
|
371
|
+
assertParamExists("triggerAutomation", "automationTriggerAutomationRequest", automationTriggerAutomationRequest);
|
|
270
372
|
const localVarPath = `/api/v1/actions/workspaces/{workspaceId}/automations/trigger`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
271
373
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
272
374
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -285,11 +387,13 @@ export const ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
285
387
|
...headersFromBaseOptions,
|
|
286
388
|
...options.headers,
|
|
287
389
|
};
|
|
288
|
-
const needsSerialization = typeof
|
|
390
|
+
const needsSerialization = typeof automationTriggerAutomationRequest !== "string" ||
|
|
289
391
|
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
290
392
|
localVarRequestOptions.data = needsSerialization
|
|
291
|
-
? JSON.stringify(
|
|
292
|
-
|
|
393
|
+
? JSON.stringify(automationTriggerAutomationRequest !== undefined
|
|
394
|
+
? automationTriggerAutomationRequest
|
|
395
|
+
: {})
|
|
396
|
+
: automationTriggerAutomationRequest || "";
|
|
293
397
|
return {
|
|
294
398
|
url: toPathString(localVarUrlObj),
|
|
295
399
|
options: localVarRequestOptions,
|
|
@@ -335,11 +439,11 @@ export const ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
335
439
|
};
|
|
336
440
|
};
|
|
337
441
|
/**
|
|
338
|
-
*
|
|
442
|
+
* ActionsAutomation - functional programming interface
|
|
339
443
|
* @export
|
|
340
444
|
*/
|
|
341
|
-
export const
|
|
342
|
-
const localVarAxiosParamCreator =
|
|
445
|
+
export const ActionsAutomationFp = function (configuration) {
|
|
446
|
+
const localVarAxiosParamCreator = ActionsAutomationAxiosParamCreator(configuration);
|
|
343
447
|
return {
|
|
344
448
|
/**
|
|
345
449
|
* Get latest in-platform notifications for the current user.
|
|
@@ -382,35 +486,35 @@ export const ActionsApiFp = function (configuration) {
|
|
|
382
486
|
* Tests the existing notification channel by sending a test notification.
|
|
383
487
|
* @summary Test existing notification channel.
|
|
384
488
|
* @param {string} notificationChannelId
|
|
385
|
-
* @param {
|
|
489
|
+
* @param {AutomationTestDestinationRequest} [automationTestDestinationRequest]
|
|
386
490
|
* @param {*} [options] Override http request option.
|
|
387
491
|
* @throws {RequiredError}
|
|
388
492
|
*/
|
|
389
|
-
async testExistingNotificationChannel(notificationChannelId,
|
|
390
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.testExistingNotificationChannel(notificationChannelId,
|
|
493
|
+
async testExistingNotificationChannel(notificationChannelId, automationTestDestinationRequest, options) {
|
|
494
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.testExistingNotificationChannel(notificationChannelId, automationTestDestinationRequest, options);
|
|
391
495
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
392
496
|
},
|
|
393
497
|
/**
|
|
394
498
|
* Tests the notification channel by sending a test notification.
|
|
395
499
|
* @summary Test notification channel.
|
|
396
|
-
* @param {
|
|
500
|
+
* @param {AutomationTestDestinationRequest} automationTestDestinationRequest
|
|
397
501
|
* @param {*} [options] Override http request option.
|
|
398
502
|
* @throws {RequiredError}
|
|
399
503
|
*/
|
|
400
|
-
async testNotificationChannel(
|
|
401
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.testNotificationChannel(
|
|
504
|
+
async testNotificationChannel(automationTestDestinationRequest, options) {
|
|
505
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.testNotificationChannel(automationTestDestinationRequest, options);
|
|
402
506
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
403
507
|
},
|
|
404
508
|
/**
|
|
405
509
|
* Trigger the automation in the request.
|
|
406
510
|
* @summary Trigger automation.
|
|
407
511
|
* @param {string} workspaceId
|
|
408
|
-
* @param {
|
|
512
|
+
* @param {AutomationTriggerAutomationRequest} automationTriggerAutomationRequest
|
|
409
513
|
* @param {*} [options] Override http request option.
|
|
410
514
|
* @throws {RequiredError}
|
|
411
515
|
*/
|
|
412
|
-
async triggerAutomation(workspaceId,
|
|
413
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.triggerAutomation(workspaceId,
|
|
516
|
+
async triggerAutomation(workspaceId, automationTriggerAutomationRequest, options) {
|
|
517
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.triggerAutomation(workspaceId, automationTriggerAutomationRequest, options);
|
|
414
518
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
415
519
|
},
|
|
416
520
|
/**
|
|
@@ -428,16 +532,16 @@ export const ActionsApiFp = function (configuration) {
|
|
|
428
532
|
};
|
|
429
533
|
};
|
|
430
534
|
/**
|
|
431
|
-
*
|
|
535
|
+
* ActionsAutomation - factory interface
|
|
432
536
|
* @export
|
|
433
537
|
*/
|
|
434
|
-
export const
|
|
435
|
-
const localVarFp =
|
|
538
|
+
export const ActionsAutomationFactory = function (configuration, basePath, axios) {
|
|
539
|
+
const localVarFp = ActionsAutomationFp(configuration);
|
|
436
540
|
return {
|
|
437
541
|
/**
|
|
438
542
|
* Get latest in-platform notifications for the current user.
|
|
439
543
|
* @summary Get latest notifications.
|
|
440
|
-
* @param {
|
|
544
|
+
* @param {ActionsAutomationGetNotificationsRequest} requestParameters Request parameters.
|
|
441
545
|
* @param {*} [options] Override http request option.
|
|
442
546
|
* @throws {RequiredError}
|
|
443
547
|
*/
|
|
@@ -449,7 +553,7 @@ export const ActionsApiFactory = function (configuration, basePath, axios) {
|
|
|
449
553
|
/**
|
|
450
554
|
* Mark in-platform notification by its ID as read.
|
|
451
555
|
* @summary Mark notification as read.
|
|
452
|
-
* @param {
|
|
556
|
+
* @param {ActionsAutomationMarkAsReadNotificationRequest} requestParameters Request parameters.
|
|
453
557
|
* @param {*} [options] Override http request option.
|
|
454
558
|
* @throws {RequiredError}
|
|
455
559
|
*/
|
|
@@ -461,7 +565,7 @@ export const ActionsApiFactory = function (configuration, basePath, axios) {
|
|
|
461
565
|
/**
|
|
462
566
|
* Mark all user in-platform notifications as read.
|
|
463
567
|
* @summary Mark all notifications as read.
|
|
464
|
-
* @param {
|
|
568
|
+
* @param {ActionsAutomationMarkAsReadNotificationAllRequest} requestParameters Request parameters.
|
|
465
569
|
* @param {*} [options] Override http request option.
|
|
466
570
|
* @throws {RequiredError}
|
|
467
571
|
*/
|
|
@@ -473,43 +577,43 @@ export const ActionsApiFactory = function (configuration, basePath, axios) {
|
|
|
473
577
|
/**
|
|
474
578
|
* Tests the existing notification channel by sending a test notification.
|
|
475
579
|
* @summary Test existing notification channel.
|
|
476
|
-
* @param {
|
|
580
|
+
* @param {ActionsAutomationTestExistingNotificationChannelRequest} requestParameters Request parameters.
|
|
477
581
|
* @param {*} [options] Override http request option.
|
|
478
582
|
* @throws {RequiredError}
|
|
479
583
|
*/
|
|
480
584
|
testExistingNotificationChannel(requestParameters, options) {
|
|
481
585
|
return localVarFp
|
|
482
|
-
.testExistingNotificationChannel(requestParameters.notificationChannelId, requestParameters.
|
|
586
|
+
.testExistingNotificationChannel(requestParameters.notificationChannelId, requestParameters.automationTestDestinationRequest, options)
|
|
483
587
|
.then((request) => request(axios, basePath));
|
|
484
588
|
},
|
|
485
589
|
/**
|
|
486
590
|
* Tests the notification channel by sending a test notification.
|
|
487
591
|
* @summary Test notification channel.
|
|
488
|
-
* @param {
|
|
592
|
+
* @param {ActionsAutomationTestNotificationChannelRequest} requestParameters Request parameters.
|
|
489
593
|
* @param {*} [options] Override http request option.
|
|
490
594
|
* @throws {RequiredError}
|
|
491
595
|
*/
|
|
492
596
|
testNotificationChannel(requestParameters, options) {
|
|
493
597
|
return localVarFp
|
|
494
|
-
.testNotificationChannel(requestParameters.
|
|
598
|
+
.testNotificationChannel(requestParameters.automationTestDestinationRequest, options)
|
|
495
599
|
.then((request) => request(axios, basePath));
|
|
496
600
|
},
|
|
497
601
|
/**
|
|
498
602
|
* Trigger the automation in the request.
|
|
499
603
|
* @summary Trigger automation.
|
|
500
|
-
* @param {
|
|
604
|
+
* @param {ActionsAutomationTriggerAutomationRequest} requestParameters Request parameters.
|
|
501
605
|
* @param {*} [options] Override http request option.
|
|
502
606
|
* @throws {RequiredError}
|
|
503
607
|
*/
|
|
504
608
|
triggerAutomation(requestParameters, options) {
|
|
505
609
|
return localVarFp
|
|
506
|
-
.triggerAutomation(requestParameters.workspaceId, requestParameters.
|
|
610
|
+
.triggerAutomation(requestParameters.workspaceId, requestParameters.automationTriggerAutomationRequest, options)
|
|
507
611
|
.then((request) => request(axios, basePath));
|
|
508
612
|
},
|
|
509
613
|
/**
|
|
510
614
|
* Trigger the existing automation to execute immediately.
|
|
511
615
|
* @summary Trigger existing automation.
|
|
512
|
-
* @param {
|
|
616
|
+
* @param {ActionsAutomationTriggerExistingAutomationRequest} requestParameters Request parameters.
|
|
513
617
|
* @param {*} [options] Override http request option.
|
|
514
618
|
* @throws {RequiredError}
|
|
515
619
|
*/
|
|
@@ -521,123 +625,123 @@ export const ActionsApiFactory = function (configuration, basePath, axios) {
|
|
|
521
625
|
};
|
|
522
626
|
};
|
|
523
627
|
/**
|
|
524
|
-
*
|
|
628
|
+
* ActionsAutomation - object-oriented interface
|
|
525
629
|
* @export
|
|
526
|
-
* @class
|
|
630
|
+
* @class ActionsAutomation
|
|
527
631
|
* @extends {BaseAPI}
|
|
528
632
|
*/
|
|
529
|
-
export class
|
|
633
|
+
export class ActionsAutomation extends BaseAPI {
|
|
530
634
|
/**
|
|
531
635
|
* Get latest in-platform notifications for the current user.
|
|
532
636
|
* @summary Get latest notifications.
|
|
533
|
-
* @param {
|
|
637
|
+
* @param {ActionsAutomationGetNotificationsRequest} requestParameters Request parameters.
|
|
534
638
|
* @param {*} [options] Override http request option.
|
|
535
639
|
* @throws {RequiredError}
|
|
536
|
-
* @memberof
|
|
640
|
+
* @memberof ActionsAutomation
|
|
537
641
|
*/
|
|
538
642
|
getNotifications(requestParameters = {}, options) {
|
|
539
|
-
return
|
|
643
|
+
return ActionsAutomationFp(this.configuration)
|
|
540
644
|
.getNotifications(requestParameters.workspaceId, requestParameters.isRead, requestParameters.page, requestParameters.size, requestParameters.metaInclude, options)
|
|
541
645
|
.then((request) => request(this.axios, this.basePath));
|
|
542
646
|
}
|
|
543
647
|
/**
|
|
544
648
|
* Mark in-platform notification by its ID as read.
|
|
545
649
|
* @summary Mark notification as read.
|
|
546
|
-
* @param {
|
|
650
|
+
* @param {ActionsAutomationMarkAsReadNotificationRequest} requestParameters Request parameters.
|
|
547
651
|
* @param {*} [options] Override http request option.
|
|
548
652
|
* @throws {RequiredError}
|
|
549
|
-
* @memberof
|
|
653
|
+
* @memberof ActionsAutomation
|
|
550
654
|
*/
|
|
551
655
|
markAsReadNotification(requestParameters, options) {
|
|
552
|
-
return
|
|
656
|
+
return ActionsAutomationFp(this.configuration)
|
|
553
657
|
.markAsReadNotification(requestParameters.notificationId, options)
|
|
554
658
|
.then((request) => request(this.axios, this.basePath));
|
|
555
659
|
}
|
|
556
660
|
/**
|
|
557
661
|
* Mark all user in-platform notifications as read.
|
|
558
662
|
* @summary Mark all notifications as read.
|
|
559
|
-
* @param {
|
|
663
|
+
* @param {ActionsAutomationMarkAsReadNotificationAllRequest} requestParameters Request parameters.
|
|
560
664
|
* @param {*} [options] Override http request option.
|
|
561
665
|
* @throws {RequiredError}
|
|
562
|
-
* @memberof
|
|
666
|
+
* @memberof ActionsAutomation
|
|
563
667
|
*/
|
|
564
668
|
markAsReadNotificationAll(requestParameters = {}, options) {
|
|
565
|
-
return
|
|
669
|
+
return ActionsAutomationFp(this.configuration)
|
|
566
670
|
.markAsReadNotificationAll(requestParameters.workspaceId, options)
|
|
567
671
|
.then((request) => request(this.axios, this.basePath));
|
|
568
672
|
}
|
|
569
673
|
/**
|
|
570
674
|
* Tests the existing notification channel by sending a test notification.
|
|
571
675
|
* @summary Test existing notification channel.
|
|
572
|
-
* @param {
|
|
676
|
+
* @param {ActionsAutomationTestExistingNotificationChannelRequest} requestParameters Request parameters.
|
|
573
677
|
* @param {*} [options] Override http request option.
|
|
574
678
|
* @throws {RequiredError}
|
|
575
|
-
* @memberof
|
|
679
|
+
* @memberof ActionsAutomation
|
|
576
680
|
*/
|
|
577
681
|
testExistingNotificationChannel(requestParameters, options) {
|
|
578
|
-
return
|
|
579
|
-
.testExistingNotificationChannel(requestParameters.notificationChannelId, requestParameters.
|
|
682
|
+
return ActionsAutomationFp(this.configuration)
|
|
683
|
+
.testExistingNotificationChannel(requestParameters.notificationChannelId, requestParameters.automationTestDestinationRequest, options)
|
|
580
684
|
.then((request) => request(this.axios, this.basePath));
|
|
581
685
|
}
|
|
582
686
|
/**
|
|
583
687
|
* Tests the notification channel by sending a test notification.
|
|
584
688
|
* @summary Test notification channel.
|
|
585
|
-
* @param {
|
|
689
|
+
* @param {ActionsAutomationTestNotificationChannelRequest} requestParameters Request parameters.
|
|
586
690
|
* @param {*} [options] Override http request option.
|
|
587
691
|
* @throws {RequiredError}
|
|
588
|
-
* @memberof
|
|
692
|
+
* @memberof ActionsAutomation
|
|
589
693
|
*/
|
|
590
694
|
testNotificationChannel(requestParameters, options) {
|
|
591
|
-
return
|
|
592
|
-
.testNotificationChannel(requestParameters.
|
|
695
|
+
return ActionsAutomationFp(this.configuration)
|
|
696
|
+
.testNotificationChannel(requestParameters.automationTestDestinationRequest, options)
|
|
593
697
|
.then((request) => request(this.axios, this.basePath));
|
|
594
698
|
}
|
|
595
699
|
/**
|
|
596
700
|
* Trigger the automation in the request.
|
|
597
701
|
* @summary Trigger automation.
|
|
598
|
-
* @param {
|
|
702
|
+
* @param {ActionsAutomationTriggerAutomationRequest} requestParameters Request parameters.
|
|
599
703
|
* @param {*} [options] Override http request option.
|
|
600
704
|
* @throws {RequiredError}
|
|
601
|
-
* @memberof
|
|
705
|
+
* @memberof ActionsAutomation
|
|
602
706
|
*/
|
|
603
707
|
triggerAutomation(requestParameters, options) {
|
|
604
|
-
return
|
|
605
|
-
.triggerAutomation(requestParameters.workspaceId, requestParameters.
|
|
708
|
+
return ActionsAutomationFp(this.configuration)
|
|
709
|
+
.triggerAutomation(requestParameters.workspaceId, requestParameters.automationTriggerAutomationRequest, options)
|
|
606
710
|
.then((request) => request(this.axios, this.basePath));
|
|
607
711
|
}
|
|
608
712
|
/**
|
|
609
713
|
* Trigger the existing automation to execute immediately.
|
|
610
714
|
* @summary Trigger existing automation.
|
|
611
|
-
* @param {
|
|
715
|
+
* @param {ActionsAutomationTriggerExistingAutomationRequest} requestParameters Request parameters.
|
|
612
716
|
* @param {*} [options] Override http request option.
|
|
613
717
|
* @throws {RequiredError}
|
|
614
|
-
* @memberof
|
|
718
|
+
* @memberof ActionsAutomation
|
|
615
719
|
*/
|
|
616
720
|
triggerExistingAutomation(requestParameters, options) {
|
|
617
|
-
return
|
|
721
|
+
return ActionsAutomationFp(this.configuration)
|
|
618
722
|
.triggerExistingAutomation(requestParameters.workspaceId, requestParameters.automationId, options)
|
|
619
723
|
.then((request) => request(this.axios, this.basePath));
|
|
620
724
|
}
|
|
621
725
|
}
|
|
622
726
|
/**
|
|
623
|
-
*
|
|
727
|
+
* AutomationsAutomation - axios parameter creator
|
|
624
728
|
* @export
|
|
625
729
|
*/
|
|
626
|
-
export const
|
|
730
|
+
export const AutomationsAutomationAxiosParamCreator = function (configuration) {
|
|
627
731
|
return {
|
|
628
732
|
/**
|
|
629
733
|
* Trigger the automation in the request.
|
|
630
734
|
* @summary Trigger automation.
|
|
631
735
|
* @param {string} workspaceId
|
|
632
|
-
* @param {
|
|
736
|
+
* @param {AutomationTriggerAutomationRequest} automationTriggerAutomationRequest
|
|
633
737
|
* @param {*} [options] Override http request option.
|
|
634
738
|
* @throws {RequiredError}
|
|
635
739
|
*/
|
|
636
|
-
triggerAutomation: async (workspaceId,
|
|
740
|
+
triggerAutomation: async (workspaceId, automationTriggerAutomationRequest, options = {}) => {
|
|
637
741
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
638
742
|
assertParamExists("triggerAutomation", "workspaceId", workspaceId);
|
|
639
|
-
// verify required parameter '
|
|
640
|
-
assertParamExists("triggerAutomation", "
|
|
743
|
+
// verify required parameter 'automationTriggerAutomationRequest' is not null or undefined
|
|
744
|
+
assertParamExists("triggerAutomation", "automationTriggerAutomationRequest", automationTriggerAutomationRequest);
|
|
641
745
|
const localVarPath = `/api/v1/actions/workspaces/{workspaceId}/automations/trigger`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
642
746
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
643
747
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -656,11 +760,13 @@ export const AutomationsApiAxiosParamCreator = function (configuration) {
|
|
|
656
760
|
...headersFromBaseOptions,
|
|
657
761
|
...options.headers,
|
|
658
762
|
};
|
|
659
|
-
const needsSerialization = typeof
|
|
763
|
+
const needsSerialization = typeof automationTriggerAutomationRequest !== "string" ||
|
|
660
764
|
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
661
765
|
localVarRequestOptions.data = needsSerialization
|
|
662
|
-
? JSON.stringify(
|
|
663
|
-
|
|
766
|
+
? JSON.stringify(automationTriggerAutomationRequest !== undefined
|
|
767
|
+
? automationTriggerAutomationRequest
|
|
768
|
+
: {})
|
|
769
|
+
: automationTriggerAutomationRequest || "";
|
|
664
770
|
return {
|
|
665
771
|
url: toPathString(localVarUrlObj),
|
|
666
772
|
options: localVarRequestOptions,
|
|
@@ -706,22 +812,22 @@ export const AutomationsApiAxiosParamCreator = function (configuration) {
|
|
|
706
812
|
};
|
|
707
813
|
};
|
|
708
814
|
/**
|
|
709
|
-
*
|
|
815
|
+
* AutomationsAutomation - functional programming interface
|
|
710
816
|
* @export
|
|
711
817
|
*/
|
|
712
|
-
export const
|
|
713
|
-
const localVarAxiosParamCreator =
|
|
818
|
+
export const AutomationsAutomationFp = function (configuration) {
|
|
819
|
+
const localVarAxiosParamCreator = AutomationsAutomationAxiosParamCreator(configuration);
|
|
714
820
|
return {
|
|
715
821
|
/**
|
|
716
822
|
* Trigger the automation in the request.
|
|
717
823
|
* @summary Trigger automation.
|
|
718
824
|
* @param {string} workspaceId
|
|
719
|
-
* @param {
|
|
825
|
+
* @param {AutomationTriggerAutomationRequest} automationTriggerAutomationRequest
|
|
720
826
|
* @param {*} [options] Override http request option.
|
|
721
827
|
* @throws {RequiredError}
|
|
722
828
|
*/
|
|
723
|
-
async triggerAutomation(workspaceId,
|
|
724
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.triggerAutomation(workspaceId,
|
|
829
|
+
async triggerAutomation(workspaceId, automationTriggerAutomationRequest, options) {
|
|
830
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.triggerAutomation(workspaceId, automationTriggerAutomationRequest, options);
|
|
725
831
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
726
832
|
},
|
|
727
833
|
/**
|
|
@@ -739,28 +845,28 @@ export const AutomationsApiFp = function (configuration) {
|
|
|
739
845
|
};
|
|
740
846
|
};
|
|
741
847
|
/**
|
|
742
|
-
*
|
|
848
|
+
* AutomationsAutomation - factory interface
|
|
743
849
|
* @export
|
|
744
850
|
*/
|
|
745
|
-
export const
|
|
746
|
-
const localVarFp =
|
|
851
|
+
export const AutomationsAutomationFactory = function (configuration, basePath, axios) {
|
|
852
|
+
const localVarFp = AutomationsAutomationFp(configuration);
|
|
747
853
|
return {
|
|
748
854
|
/**
|
|
749
855
|
* Trigger the automation in the request.
|
|
750
856
|
* @summary Trigger automation.
|
|
751
|
-
* @param {
|
|
857
|
+
* @param {AutomationsAutomationTriggerAutomationRequest} requestParameters Request parameters.
|
|
752
858
|
* @param {*} [options] Override http request option.
|
|
753
859
|
* @throws {RequiredError}
|
|
754
860
|
*/
|
|
755
861
|
triggerAutomation(requestParameters, options) {
|
|
756
862
|
return localVarFp
|
|
757
|
-
.triggerAutomation(requestParameters.workspaceId, requestParameters.
|
|
863
|
+
.triggerAutomation(requestParameters.workspaceId, requestParameters.automationTriggerAutomationRequest, options)
|
|
758
864
|
.then((request) => request(axios, basePath));
|
|
759
865
|
},
|
|
760
866
|
/**
|
|
761
867
|
* Trigger the existing automation to execute immediately.
|
|
762
868
|
* @summary Trigger existing automation.
|
|
763
|
-
* @param {
|
|
869
|
+
* @param {AutomationsAutomationTriggerExistingAutomationRequest} requestParameters Request parameters.
|
|
764
870
|
* @param {*} [options] Override http request option.
|
|
765
871
|
* @throws {RequiredError}
|
|
766
872
|
*/
|
|
@@ -772,44 +878,44 @@ export const AutomationsApiFactory = function (configuration, basePath, axios) {
|
|
|
772
878
|
};
|
|
773
879
|
};
|
|
774
880
|
/**
|
|
775
|
-
*
|
|
881
|
+
* AutomationsAutomation - object-oriented interface
|
|
776
882
|
* @export
|
|
777
|
-
* @class
|
|
883
|
+
* @class AutomationsAutomation
|
|
778
884
|
* @extends {BaseAPI}
|
|
779
885
|
*/
|
|
780
|
-
export class
|
|
886
|
+
export class AutomationsAutomation extends BaseAPI {
|
|
781
887
|
/**
|
|
782
888
|
* Trigger the automation in the request.
|
|
783
889
|
* @summary Trigger automation.
|
|
784
|
-
* @param {
|
|
890
|
+
* @param {AutomationsAutomationTriggerAutomationRequest} requestParameters Request parameters.
|
|
785
891
|
* @param {*} [options] Override http request option.
|
|
786
892
|
* @throws {RequiredError}
|
|
787
|
-
* @memberof
|
|
893
|
+
* @memberof AutomationsAutomation
|
|
788
894
|
*/
|
|
789
895
|
triggerAutomation(requestParameters, options) {
|
|
790
|
-
return
|
|
791
|
-
.triggerAutomation(requestParameters.workspaceId, requestParameters.
|
|
896
|
+
return AutomationsAutomationFp(this.configuration)
|
|
897
|
+
.triggerAutomation(requestParameters.workspaceId, requestParameters.automationTriggerAutomationRequest, options)
|
|
792
898
|
.then((request) => request(this.axios, this.basePath));
|
|
793
899
|
}
|
|
794
900
|
/**
|
|
795
901
|
* Trigger the existing automation to execute immediately.
|
|
796
902
|
* @summary Trigger existing automation.
|
|
797
|
-
* @param {
|
|
903
|
+
* @param {AutomationsAutomationTriggerExistingAutomationRequest} requestParameters Request parameters.
|
|
798
904
|
* @param {*} [options] Override http request option.
|
|
799
905
|
* @throws {RequiredError}
|
|
800
|
-
* @memberof
|
|
906
|
+
* @memberof AutomationsAutomation
|
|
801
907
|
*/
|
|
802
908
|
triggerExistingAutomation(requestParameters, options) {
|
|
803
|
-
return
|
|
909
|
+
return AutomationsAutomationFp(this.configuration)
|
|
804
910
|
.triggerExistingAutomation(requestParameters.workspaceId, requestParameters.automationId, options)
|
|
805
911
|
.then((request) => request(this.axios, this.basePath));
|
|
806
912
|
}
|
|
807
913
|
}
|
|
808
914
|
/**
|
|
809
|
-
*
|
|
915
|
+
* NotificationChannelsAutomation - axios parameter creator
|
|
810
916
|
* @export
|
|
811
917
|
*/
|
|
812
|
-
export const
|
|
918
|
+
export const NotificationChannelsAutomationAxiosParamCreator = function (configuration) {
|
|
813
919
|
return {
|
|
814
920
|
/**
|
|
815
921
|
* Get latest in-platform notifications for the current user.
|
|
@@ -929,11 +1035,11 @@ export const NotificationChannelsApiAxiosParamCreator = function (configuration)
|
|
|
929
1035
|
* Tests the existing notification channel by sending a test notification.
|
|
930
1036
|
* @summary Test existing notification channel.
|
|
931
1037
|
* @param {string} notificationChannelId
|
|
932
|
-
* @param {
|
|
1038
|
+
* @param {AutomationTestDestinationRequest} [automationTestDestinationRequest]
|
|
933
1039
|
* @param {*} [options] Override http request option.
|
|
934
1040
|
* @throws {RequiredError}
|
|
935
1041
|
*/
|
|
936
|
-
testExistingNotificationChannel: async (notificationChannelId,
|
|
1042
|
+
testExistingNotificationChannel: async (notificationChannelId, automationTestDestinationRequest, options = {}) => {
|
|
937
1043
|
// verify required parameter 'notificationChannelId' is not null or undefined
|
|
938
1044
|
assertParamExists("testExistingNotificationChannel", "notificationChannelId", notificationChannelId);
|
|
939
1045
|
const localVarPath = `/api/v1/actions/notificationChannels/{notificationChannelId}/test`.replace(`{${"notificationChannelId"}}`, encodeURIComponent(String(notificationChannelId)));
|
|
@@ -954,11 +1060,11 @@ export const NotificationChannelsApiAxiosParamCreator = function (configuration)
|
|
|
954
1060
|
...headersFromBaseOptions,
|
|
955
1061
|
...options.headers,
|
|
956
1062
|
};
|
|
957
|
-
const needsSerialization = typeof
|
|
1063
|
+
const needsSerialization = typeof automationTestDestinationRequest !== "string" ||
|
|
958
1064
|
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
959
1065
|
localVarRequestOptions.data = needsSerialization
|
|
960
|
-
? JSON.stringify(
|
|
961
|
-
:
|
|
1066
|
+
? JSON.stringify(automationTestDestinationRequest !== undefined ? automationTestDestinationRequest : {})
|
|
1067
|
+
: automationTestDestinationRequest || "";
|
|
962
1068
|
return {
|
|
963
1069
|
url: toPathString(localVarUrlObj),
|
|
964
1070
|
options: localVarRequestOptions,
|
|
@@ -967,13 +1073,13 @@ export const NotificationChannelsApiAxiosParamCreator = function (configuration)
|
|
|
967
1073
|
/**
|
|
968
1074
|
* Tests the notification channel by sending a test notification.
|
|
969
1075
|
* @summary Test notification channel.
|
|
970
|
-
* @param {
|
|
1076
|
+
* @param {AutomationTestDestinationRequest} automationTestDestinationRequest
|
|
971
1077
|
* @param {*} [options] Override http request option.
|
|
972
1078
|
* @throws {RequiredError}
|
|
973
1079
|
*/
|
|
974
|
-
testNotificationChannel: async (
|
|
975
|
-
// verify required parameter '
|
|
976
|
-
assertParamExists("testNotificationChannel", "
|
|
1080
|
+
testNotificationChannel: async (automationTestDestinationRequest, options = {}) => {
|
|
1081
|
+
// verify required parameter 'automationTestDestinationRequest' is not null or undefined
|
|
1082
|
+
assertParamExists("testNotificationChannel", "automationTestDestinationRequest", automationTestDestinationRequest);
|
|
977
1083
|
const localVarPath = `/api/v1/actions/notificationChannels/test`;
|
|
978
1084
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
979
1085
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -992,11 +1098,11 @@ export const NotificationChannelsApiAxiosParamCreator = function (configuration)
|
|
|
992
1098
|
...headersFromBaseOptions,
|
|
993
1099
|
...options.headers,
|
|
994
1100
|
};
|
|
995
|
-
const needsSerialization = typeof
|
|
1101
|
+
const needsSerialization = typeof automationTestDestinationRequest !== "string" ||
|
|
996
1102
|
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
997
1103
|
localVarRequestOptions.data = needsSerialization
|
|
998
|
-
? JSON.stringify(
|
|
999
|
-
:
|
|
1104
|
+
? JSON.stringify(automationTestDestinationRequest !== undefined ? automationTestDestinationRequest : {})
|
|
1105
|
+
: automationTestDestinationRequest || "";
|
|
1000
1106
|
return {
|
|
1001
1107
|
url: toPathString(localVarUrlObj),
|
|
1002
1108
|
options: localVarRequestOptions,
|
|
@@ -1005,11 +1111,11 @@ export const NotificationChannelsApiAxiosParamCreator = function (configuration)
|
|
|
1005
1111
|
};
|
|
1006
1112
|
};
|
|
1007
1113
|
/**
|
|
1008
|
-
*
|
|
1114
|
+
* NotificationChannelsAutomation - functional programming interface
|
|
1009
1115
|
* @export
|
|
1010
1116
|
*/
|
|
1011
|
-
export const
|
|
1012
|
-
const localVarAxiosParamCreator =
|
|
1117
|
+
export const NotificationChannelsAutomationFp = function (configuration) {
|
|
1118
|
+
const localVarAxiosParamCreator = NotificationChannelsAutomationAxiosParamCreator(configuration);
|
|
1013
1119
|
return {
|
|
1014
1120
|
/**
|
|
1015
1121
|
* Get latest in-platform notifications for the current user.
|
|
@@ -1052,38 +1158,38 @@ export const NotificationChannelsApiFp = function (configuration) {
|
|
|
1052
1158
|
* Tests the existing notification channel by sending a test notification.
|
|
1053
1159
|
* @summary Test existing notification channel.
|
|
1054
1160
|
* @param {string} notificationChannelId
|
|
1055
|
-
* @param {
|
|
1161
|
+
* @param {AutomationTestDestinationRequest} [automationTestDestinationRequest]
|
|
1056
1162
|
* @param {*} [options] Override http request option.
|
|
1057
1163
|
* @throws {RequiredError}
|
|
1058
1164
|
*/
|
|
1059
|
-
async testExistingNotificationChannel(notificationChannelId,
|
|
1060
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.testExistingNotificationChannel(notificationChannelId,
|
|
1165
|
+
async testExistingNotificationChannel(notificationChannelId, automationTestDestinationRequest, options) {
|
|
1166
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.testExistingNotificationChannel(notificationChannelId, automationTestDestinationRequest, options);
|
|
1061
1167
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1062
1168
|
},
|
|
1063
1169
|
/**
|
|
1064
1170
|
* Tests the notification channel by sending a test notification.
|
|
1065
1171
|
* @summary Test notification channel.
|
|
1066
|
-
* @param {
|
|
1172
|
+
* @param {AutomationTestDestinationRequest} automationTestDestinationRequest
|
|
1067
1173
|
* @param {*} [options] Override http request option.
|
|
1068
1174
|
* @throws {RequiredError}
|
|
1069
1175
|
*/
|
|
1070
|
-
async testNotificationChannel(
|
|
1071
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.testNotificationChannel(
|
|
1176
|
+
async testNotificationChannel(automationTestDestinationRequest, options) {
|
|
1177
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.testNotificationChannel(automationTestDestinationRequest, options);
|
|
1072
1178
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1073
1179
|
},
|
|
1074
1180
|
};
|
|
1075
1181
|
};
|
|
1076
1182
|
/**
|
|
1077
|
-
*
|
|
1183
|
+
* NotificationChannelsAutomation - factory interface
|
|
1078
1184
|
* @export
|
|
1079
1185
|
*/
|
|
1080
|
-
export const
|
|
1081
|
-
const localVarFp =
|
|
1186
|
+
export const NotificationChannelsAutomationFactory = function (configuration, basePath, axios) {
|
|
1187
|
+
const localVarFp = NotificationChannelsAutomationFp(configuration);
|
|
1082
1188
|
return {
|
|
1083
1189
|
/**
|
|
1084
1190
|
* Get latest in-platform notifications for the current user.
|
|
1085
1191
|
* @summary Get latest notifications.
|
|
1086
|
-
* @param {
|
|
1192
|
+
* @param {NotificationChannelsAutomationGetNotificationsRequest} requestParameters Request parameters.
|
|
1087
1193
|
* @param {*} [options] Override http request option.
|
|
1088
1194
|
* @throws {RequiredError}
|
|
1089
1195
|
*/
|
|
@@ -1095,7 +1201,7 @@ export const NotificationChannelsApiFactory = function (configuration, basePath,
|
|
|
1095
1201
|
/**
|
|
1096
1202
|
* Mark in-platform notification by its ID as read.
|
|
1097
1203
|
* @summary Mark notification as read.
|
|
1098
|
-
* @param {
|
|
1204
|
+
* @param {NotificationChannelsAutomationMarkAsReadNotificationRequest} requestParameters Request parameters.
|
|
1099
1205
|
* @param {*} [options] Override http request option.
|
|
1100
1206
|
* @throws {RequiredError}
|
|
1101
1207
|
*/
|
|
@@ -1107,7 +1213,7 @@ export const NotificationChannelsApiFactory = function (configuration, basePath,
|
|
|
1107
1213
|
/**
|
|
1108
1214
|
* Mark all user in-platform notifications as read.
|
|
1109
1215
|
* @summary Mark all notifications as read.
|
|
1110
|
-
* @param {
|
|
1216
|
+
* @param {NotificationChannelsAutomationMarkAsReadNotificationAllRequest} requestParameters Request parameters.
|
|
1111
1217
|
* @param {*} [options] Override http request option.
|
|
1112
1218
|
* @throws {RequiredError}
|
|
1113
1219
|
*/
|
|
@@ -1119,99 +1225,99 @@ export const NotificationChannelsApiFactory = function (configuration, basePath,
|
|
|
1119
1225
|
/**
|
|
1120
1226
|
* Tests the existing notification channel by sending a test notification.
|
|
1121
1227
|
* @summary Test existing notification channel.
|
|
1122
|
-
* @param {
|
|
1228
|
+
* @param {NotificationChannelsAutomationTestExistingNotificationChannelRequest} requestParameters Request parameters.
|
|
1123
1229
|
* @param {*} [options] Override http request option.
|
|
1124
1230
|
* @throws {RequiredError}
|
|
1125
1231
|
*/
|
|
1126
1232
|
testExistingNotificationChannel(requestParameters, options) {
|
|
1127
1233
|
return localVarFp
|
|
1128
|
-
.testExistingNotificationChannel(requestParameters.notificationChannelId, requestParameters.
|
|
1234
|
+
.testExistingNotificationChannel(requestParameters.notificationChannelId, requestParameters.automationTestDestinationRequest, options)
|
|
1129
1235
|
.then((request) => request(axios, basePath));
|
|
1130
1236
|
},
|
|
1131
1237
|
/**
|
|
1132
1238
|
* Tests the notification channel by sending a test notification.
|
|
1133
1239
|
* @summary Test notification channel.
|
|
1134
|
-
* @param {
|
|
1240
|
+
* @param {NotificationChannelsAutomationTestNotificationChannelRequest} requestParameters Request parameters.
|
|
1135
1241
|
* @param {*} [options] Override http request option.
|
|
1136
1242
|
* @throws {RequiredError}
|
|
1137
1243
|
*/
|
|
1138
1244
|
testNotificationChannel(requestParameters, options) {
|
|
1139
1245
|
return localVarFp
|
|
1140
|
-
.testNotificationChannel(requestParameters.
|
|
1246
|
+
.testNotificationChannel(requestParameters.automationTestDestinationRequest, options)
|
|
1141
1247
|
.then((request) => request(axios, basePath));
|
|
1142
1248
|
},
|
|
1143
1249
|
};
|
|
1144
1250
|
};
|
|
1145
1251
|
/**
|
|
1146
|
-
*
|
|
1252
|
+
* NotificationChannelsAutomation - object-oriented interface
|
|
1147
1253
|
* @export
|
|
1148
|
-
* @class
|
|
1254
|
+
* @class NotificationChannelsAutomation
|
|
1149
1255
|
* @extends {BaseAPI}
|
|
1150
1256
|
*/
|
|
1151
|
-
export class
|
|
1257
|
+
export class NotificationChannelsAutomation extends BaseAPI {
|
|
1152
1258
|
/**
|
|
1153
1259
|
* Get latest in-platform notifications for the current user.
|
|
1154
1260
|
* @summary Get latest notifications.
|
|
1155
|
-
* @param {
|
|
1261
|
+
* @param {NotificationChannelsAutomationGetNotificationsRequest} requestParameters Request parameters.
|
|
1156
1262
|
* @param {*} [options] Override http request option.
|
|
1157
1263
|
* @throws {RequiredError}
|
|
1158
|
-
* @memberof
|
|
1264
|
+
* @memberof NotificationChannelsAutomation
|
|
1159
1265
|
*/
|
|
1160
1266
|
getNotifications(requestParameters = {}, options) {
|
|
1161
|
-
return
|
|
1267
|
+
return NotificationChannelsAutomationFp(this.configuration)
|
|
1162
1268
|
.getNotifications(requestParameters.workspaceId, requestParameters.isRead, requestParameters.page, requestParameters.size, requestParameters.metaInclude, options)
|
|
1163
1269
|
.then((request) => request(this.axios, this.basePath));
|
|
1164
1270
|
}
|
|
1165
1271
|
/**
|
|
1166
1272
|
* Mark in-platform notification by its ID as read.
|
|
1167
1273
|
* @summary Mark notification as read.
|
|
1168
|
-
* @param {
|
|
1274
|
+
* @param {NotificationChannelsAutomationMarkAsReadNotificationRequest} requestParameters Request parameters.
|
|
1169
1275
|
* @param {*} [options] Override http request option.
|
|
1170
1276
|
* @throws {RequiredError}
|
|
1171
|
-
* @memberof
|
|
1277
|
+
* @memberof NotificationChannelsAutomation
|
|
1172
1278
|
*/
|
|
1173
1279
|
markAsReadNotification(requestParameters, options) {
|
|
1174
|
-
return
|
|
1280
|
+
return NotificationChannelsAutomationFp(this.configuration)
|
|
1175
1281
|
.markAsReadNotification(requestParameters.notificationId, options)
|
|
1176
1282
|
.then((request) => request(this.axios, this.basePath));
|
|
1177
1283
|
}
|
|
1178
1284
|
/**
|
|
1179
1285
|
* Mark all user in-platform notifications as read.
|
|
1180
1286
|
* @summary Mark all notifications as read.
|
|
1181
|
-
* @param {
|
|
1287
|
+
* @param {NotificationChannelsAutomationMarkAsReadNotificationAllRequest} requestParameters Request parameters.
|
|
1182
1288
|
* @param {*} [options] Override http request option.
|
|
1183
1289
|
* @throws {RequiredError}
|
|
1184
|
-
* @memberof
|
|
1290
|
+
* @memberof NotificationChannelsAutomation
|
|
1185
1291
|
*/
|
|
1186
1292
|
markAsReadNotificationAll(requestParameters = {}, options) {
|
|
1187
|
-
return
|
|
1293
|
+
return NotificationChannelsAutomationFp(this.configuration)
|
|
1188
1294
|
.markAsReadNotificationAll(requestParameters.workspaceId, options)
|
|
1189
1295
|
.then((request) => request(this.axios, this.basePath));
|
|
1190
1296
|
}
|
|
1191
1297
|
/**
|
|
1192
1298
|
* Tests the existing notification channel by sending a test notification.
|
|
1193
1299
|
* @summary Test existing notification channel.
|
|
1194
|
-
* @param {
|
|
1300
|
+
* @param {NotificationChannelsAutomationTestExistingNotificationChannelRequest} requestParameters Request parameters.
|
|
1195
1301
|
* @param {*} [options] Override http request option.
|
|
1196
1302
|
* @throws {RequiredError}
|
|
1197
|
-
* @memberof
|
|
1303
|
+
* @memberof NotificationChannelsAutomation
|
|
1198
1304
|
*/
|
|
1199
1305
|
testExistingNotificationChannel(requestParameters, options) {
|
|
1200
|
-
return
|
|
1201
|
-
.testExistingNotificationChannel(requestParameters.notificationChannelId, requestParameters.
|
|
1306
|
+
return NotificationChannelsAutomationFp(this.configuration)
|
|
1307
|
+
.testExistingNotificationChannel(requestParameters.notificationChannelId, requestParameters.automationTestDestinationRequest, options)
|
|
1202
1308
|
.then((request) => request(this.axios, this.basePath));
|
|
1203
1309
|
}
|
|
1204
1310
|
/**
|
|
1205
1311
|
* Tests the notification channel by sending a test notification.
|
|
1206
1312
|
* @summary Test notification channel.
|
|
1207
|
-
* @param {
|
|
1313
|
+
* @param {NotificationChannelsAutomationTestNotificationChannelRequest} requestParameters Request parameters.
|
|
1208
1314
|
* @param {*} [options] Override http request option.
|
|
1209
1315
|
* @throws {RequiredError}
|
|
1210
|
-
* @memberof
|
|
1316
|
+
* @memberof NotificationChannelsAutomation
|
|
1211
1317
|
*/
|
|
1212
1318
|
testNotificationChannel(requestParameters, options) {
|
|
1213
|
-
return
|
|
1214
|
-
.testNotificationChannel(requestParameters.
|
|
1319
|
+
return NotificationChannelsAutomationFp(this.configuration)
|
|
1320
|
+
.testNotificationChannel(requestParameters.automationTestDestinationRequest, options)
|
|
1215
1321
|
.then((request) => request(this.axios, this.basePath));
|
|
1216
1322
|
}
|
|
1217
1323
|
}
|