@qlik/api 1.28.0 → 1.30.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/api-keys.d.ts +20 -0
- package/api-keys.js +2 -2
- package/apps.d.ts +123 -4
- package/apps.js +2 -2
- package/audits.d.ts +1 -1
- package/audits.js +2 -2
- package/auth.js +2 -2
- package/automations.d.ts +49 -37
- package/automations.js +2 -2
- package/brands.js +2 -2
- package/chunks/{5MRIMVKS.js → F5UDCCRD.js} +17 -20
- package/chunks/{QOOCP2TS.js → FKCZFVJL.js} +1 -1
- package/chunks/{NBW6PHZU.js → G6QUM5WQ.js} +27 -6
- package/chunks/{5XNSGPGZ.js → IQBP2PKS.js} +1 -1
- package/chunks/{2BRBIRM2.js → JIX6RMFP.js} +1 -1
- package/chunks/{4D5NADHK.js → OTTC4QSX.js} +1 -1
- package/chunks/{WQYEWU54.js → PTDXR7AY.js} +2 -2
- package/chunks/{KYCIMQ4L.js → QK4TMJ64.js} +1 -1
- package/chunks/{MGXEGSJC.js → QWQLGDMI.js} +2 -2
- package/chunks/{2B7YWDQC.js → TXC5XORK.js} +3 -3
- package/collections.d.ts +1 -1
- package/collections.js +2 -2
- package/csp-origins.js +2 -2
- package/data-assets.d.ts +1 -1
- package/data-assets.js +2 -2
- package/data-connections.d.ts +83 -1
- package/data-connections.js +2 -2
- package/data-credentials.d.ts +28 -0
- package/data-credentials.js +2 -2
- package/data-files.d.ts +90 -0
- package/data-files.js +2 -2
- package/extensions.js +2 -2
- package/glossaries.d.ts +34 -14
- package/glossaries.js +2 -2
- package/groups.d.ts +70 -0
- package/groups.js +2 -2
- package/identity-providers.js +2 -2
- package/index.d.ts +6 -2
- package/index.js +33 -4
- package/items.d.ts +1 -1
- package/items.js +2 -2
- package/licenses.d.ts +191 -0
- package/licenses.js +2 -2
- package/oauth-clients.d.ts +516 -0
- package/oauth-clients.js +112 -0
- package/package.json +5 -4
- package/qix.d.ts +19 -3
- package/qix.js +2 -2
- package/quotas.js +2 -2
- package/reload-tasks.d.ts +20 -0
- package/reload-tasks.js +2 -2
- package/reloads.d.ts +41 -10
- package/reloads.js +2 -2
- package/reports.d.ts +159 -17
- package/reports.js +2 -2
- package/roles.d.ts +42 -2
- package/roles.js +2 -2
- package/spaces.d.ts +225 -38
- package/spaces.js +47 -2
- package/temp-contents.js +2 -2
- package/tenants.d.ts +47 -1
- package/tenants.js +2 -2
- package/themes.js +2 -2
- package/transports.d.ts +9 -0
- package/transports.js +2 -2
- package/users.d.ts +88 -0
- package/users.js +2 -2
- package/web-integrations.d.ts +20 -0
- package/web-integrations.js +2 -2
- package/web-notifications.d.ts +19 -0
- package/web-notifications.js +2 -2
- package/webhooks.d.ts +3 -3
- package/webhooks.js +2 -2
package/api-keys.d.ts
CHANGED
|
@@ -89,7 +89,27 @@ type ApiKeysConfig = {
|
|
|
89
89
|
/** The expiry of the scim `externalClient` token in ISO8601 duration format, e.g. `P365D` for 365 days. Used during the creation of an `externalClient` API key for configuring a SCIM compatible Identity Provider. */
|
|
90
90
|
scim_externalClient_expiry?: string;
|
|
91
91
|
};
|
|
92
|
+
/**
|
|
93
|
+
* @example
|
|
94
|
+
* [
|
|
95
|
+
* {
|
|
96
|
+
* op: "replace",
|
|
97
|
+
* path: "/api_keys_enabled",
|
|
98
|
+
* value: true
|
|
99
|
+
* }
|
|
100
|
+
* ]
|
|
101
|
+
*/
|
|
92
102
|
type ApiKeysConfigPatchSchema = ApiKeyConfigPatch[];
|
|
103
|
+
/**
|
|
104
|
+
* @example
|
|
105
|
+
* [
|
|
106
|
+
* {
|
|
107
|
+
* op: "replace",
|
|
108
|
+
* path: "/description",
|
|
109
|
+
* value: "my new description"
|
|
110
|
+
* }
|
|
111
|
+
* ]
|
|
112
|
+
*/
|
|
93
113
|
type ApiKeysPatchSchema = ApiKeyPatch[];
|
|
94
114
|
/**
|
|
95
115
|
* An error object.
|
package/api-keys.js
CHANGED
package/apps.d.ts
CHANGED
|
@@ -526,6 +526,48 @@ type FilterListItem = {
|
|
|
526
526
|
readonly ownerId?: string;
|
|
527
527
|
readonly updatedAt?: string;
|
|
528
528
|
};
|
|
529
|
+
/**
|
|
530
|
+
* @example
|
|
531
|
+
* {
|
|
532
|
+
* description: "this is a filter sample",
|
|
533
|
+
* filterType: "REP",
|
|
534
|
+
* filterV1_0: {
|
|
535
|
+
* fieldsByState: {
|
|
536
|
+
* "$": [
|
|
537
|
+
* {
|
|
538
|
+
* name: "Country",
|
|
539
|
+
* overrideValues: false,
|
|
540
|
+
* selectExcluded: false,
|
|
541
|
+
* values: [
|
|
542
|
+
* {
|
|
543
|
+
* valueAsText: "1-Argentina",
|
|
544
|
+
* valueType: "string"
|
|
545
|
+
* },
|
|
546
|
+
* {
|
|
547
|
+
* valueAsText: "4-Brazil",
|
|
548
|
+
* valueType: "string"
|
|
549
|
+
* }
|
|
550
|
+
* ]
|
|
551
|
+
* },
|
|
552
|
+
* {
|
|
553
|
+
* name: "Order number",
|
|
554
|
+
* overrideValues: false,
|
|
555
|
+
* selectExcluded: false,
|
|
556
|
+
* values: [
|
|
557
|
+
* {
|
|
558
|
+
* valueAsNumber: 61300,
|
|
559
|
+
* valueAsText: "61300",
|
|
560
|
+
* valueType: "number"
|
|
561
|
+
* }
|
|
562
|
+
* ]
|
|
563
|
+
* }
|
|
564
|
+
* ]
|
|
565
|
+
* }
|
|
566
|
+
* },
|
|
567
|
+
* filterVersion: "filter-1.0",
|
|
568
|
+
* name: "Filter sample"
|
|
569
|
+
* }
|
|
570
|
+
*/
|
|
529
571
|
type FilterRequest = {
|
|
530
572
|
/** The App ID. */
|
|
531
573
|
appId?: string;
|
|
@@ -540,9 +582,45 @@ type FilterRequest = {
|
|
|
540
582
|
ownerId?: string;
|
|
541
583
|
};
|
|
542
584
|
type FilterType = "REP" | "SUB";
|
|
585
|
+
/**
|
|
586
|
+
* @example
|
|
587
|
+
* {
|
|
588
|
+
* fieldsByState: {
|
|
589
|
+
* "$": [
|
|
590
|
+
* {
|
|
591
|
+
* name: "Country",
|
|
592
|
+
* overrideValues: false,
|
|
593
|
+
* selectExcluded: false,
|
|
594
|
+
* values: [
|
|
595
|
+
* {
|
|
596
|
+
* valueAsText: "1-Argentina",
|
|
597
|
+
* valueType: "string"
|
|
598
|
+
* },
|
|
599
|
+
* {
|
|
600
|
+
* valueAsText: "4-Brazil",
|
|
601
|
+
* valueType: "string"
|
|
602
|
+
* }
|
|
603
|
+
* ]
|
|
604
|
+
* },
|
|
605
|
+
* {
|
|
606
|
+
* name: "Order number",
|
|
607
|
+
* overrideValues: false,
|
|
608
|
+
* selectExcluded: false,
|
|
609
|
+
* values: [
|
|
610
|
+
* {
|
|
611
|
+
* valueAsNumber: 61300,
|
|
612
|
+
* valueAsText: "61300",
|
|
613
|
+
* valueType: "number"
|
|
614
|
+
* }
|
|
615
|
+
* ]
|
|
616
|
+
* }
|
|
617
|
+
* ]
|
|
618
|
+
* }
|
|
619
|
+
* }
|
|
620
|
+
*/
|
|
543
621
|
type FilterV10 = {
|
|
544
622
|
/** Map of fields to apply by state. Maximum number of states allowed is 125. Maximum number of fields allowed is 125 and maximum number of overall field values allowed is 150000. */
|
|
545
|
-
fieldsByState?:
|
|
623
|
+
fieldsByState?: Record<string, FilterField[]>;
|
|
546
624
|
/** The filter variables. */
|
|
547
625
|
variables?: FilterVariable[];
|
|
548
626
|
};
|
|
@@ -610,6 +688,20 @@ type Links = {
|
|
|
610
688
|
prev?: Href;
|
|
611
689
|
self?: Href;
|
|
612
690
|
};
|
|
691
|
+
/**
|
|
692
|
+
* @example
|
|
693
|
+
* {
|
|
694
|
+
* next: {
|
|
695
|
+
* href: "https://tenant.qlik-cloud.com:443/api/v1/apps/816e23e1-03d2-446b-8721-cdee6b5e59cf/report-filters?filter=&filterTypes=REP&filterTypes=REP&limit=20&page=0&sort=%2Bname"
|
|
696
|
+
* },
|
|
697
|
+
* prev: {
|
|
698
|
+
* href: "https://tenant.qlik-cloud.com:443/api/v1/apps/816e23e1-03d2-446b-8721-cdee6b5e59cf/report-filters?filter=&filterTypes=REP&filterTypes=REP&limit=20&page=0&sort=%2Bname"
|
|
699
|
+
* },
|
|
700
|
+
* self: {
|
|
701
|
+
* href: "https://tenant.qlik-cloud.com:443/api/v1/apps/816e23e1-03d2-446b-8721-cdee6b5e59cf/report-filters?filter=&filterTypes=REP&filterTypes=REP&limit=20&page=0&sort=%2Bname"
|
|
702
|
+
* }
|
|
703
|
+
* }
|
|
704
|
+
*/
|
|
613
705
|
type LinksResponse = {
|
|
614
706
|
next: LinkResponse;
|
|
615
707
|
prev: LinkResponse;
|
|
@@ -1075,10 +1167,11 @@ type Evaluation = {
|
|
|
1075
1167
|
appName?: string;
|
|
1076
1168
|
details?: {
|
|
1077
1169
|
concurrentReload?: boolean;
|
|
1170
|
+
/** @deprecated */
|
|
1078
1171
|
dedicated?: boolean;
|
|
1079
1172
|
engineHasCache?: boolean;
|
|
1080
1173
|
errors?: string[];
|
|
1081
|
-
objectMetrics?:
|
|
1174
|
+
objectMetrics?: Record<string, Resultentry>;
|
|
1082
1175
|
warnings?: string[];
|
|
1083
1176
|
};
|
|
1084
1177
|
ended?: string;
|
|
@@ -1269,6 +1362,11 @@ type GetAppEvaluationComparisonHttpError = {
|
|
|
1269
1362
|
};
|
|
1270
1363
|
/**
|
|
1271
1364
|
* Accepts two evaluation ids and downloads a log, in XML format, denoting the differences between the two.
|
|
1365
|
+
* @example
|
|
1366
|
+
* getAppEvaluationComparisonXml(
|
|
1367
|
+
* "abcdefghijklmnopq",
|
|
1368
|
+
* "abcdefghijklmnopq"
|
|
1369
|
+
* )
|
|
1272
1370
|
*
|
|
1273
1371
|
* @param baseid Id of the baseline evaluation
|
|
1274
1372
|
* @param comparisonid Id of the comparison evaluation
|
|
@@ -1310,6 +1408,10 @@ type GetAppEvaluationHttpError = {
|
|
|
1310
1408
|
};
|
|
1311
1409
|
/**
|
|
1312
1410
|
* Find and download an evaluation log by a specific evaluation id.
|
|
1411
|
+
* @example
|
|
1412
|
+
* getAppEvaluationXml(
|
|
1413
|
+
* "abcdefghijklmnopq"
|
|
1414
|
+
* )
|
|
1313
1415
|
*
|
|
1314
1416
|
* @param id Id of the desired evaluation.
|
|
1315
1417
|
* @throws GetAppEvaluationXmlHttpError
|
|
@@ -1815,7 +1917,7 @@ declare const getAppReportFilters: (appId: string, query: {
|
|
|
1815
1917
|
* (name co "query1" or description co "query2") and ownerId eq "123" */
|
|
1816
1918
|
filter?: string;
|
|
1817
1919
|
/** The filter type (REP, SUB). REP stands for report bookmark, SUB for subscription bookmark. */
|
|
1818
|
-
filterTypes
|
|
1920
|
+
filterTypes: ("REP" | "SUB")[];
|
|
1819
1921
|
/** Limit the returned result set */
|
|
1820
1922
|
limit?: number;
|
|
1821
1923
|
/** If present, the cursor that starts the page of data that is returned. */
|
|
@@ -1862,7 +1964,7 @@ type CreateAppReportFilterHttpError = {
|
|
|
1862
1964
|
*/
|
|
1863
1965
|
declare const countAppReportFilters: (appId: string, query: {
|
|
1864
1966
|
/** The filter type (REP, SUB). REP stands for report bookmark, SUB for subscription bookmark. */
|
|
1865
|
-
filterTypes
|
|
1967
|
+
filterTypes: ("REP" | "SUB")[];
|
|
1866
1968
|
}, options?: ApiCallOptions) => Promise<CountAppReportFiltersHttpResponse>;
|
|
1867
1969
|
type CountAppReportFiltersHttpResponse = {
|
|
1868
1970
|
data: FiltersCount;
|
|
@@ -2108,6 +2210,10 @@ type GetAppEvaluationsHttpError = {
|
|
|
2108
2210
|
};
|
|
2109
2211
|
/**
|
|
2110
2212
|
* Queue an app evaluation by its app guid.
|
|
2213
|
+
* @example
|
|
2214
|
+
* queueAppEvaluation(
|
|
2215
|
+
* "abcdefghijklmnopq"
|
|
2216
|
+
* )
|
|
2111
2217
|
*
|
|
2112
2218
|
* @param guid Guid of the app.
|
|
2113
2219
|
* @throws QueueAppEvaluationHttpError
|
|
@@ -2146,6 +2252,11 @@ interface AppsAPI {
|
|
|
2146
2252
|
getAppEvaluationComparison: typeof getAppEvaluationComparison;
|
|
2147
2253
|
/**
|
|
2148
2254
|
* Accepts two evaluation ids and downloads a log, in XML format, denoting the differences between the two.
|
|
2255
|
+
* @example
|
|
2256
|
+
* getAppEvaluationComparisonXml(
|
|
2257
|
+
* "abcdefghijklmnopq",
|
|
2258
|
+
* "abcdefghijklmnopq"
|
|
2259
|
+
* )
|
|
2149
2260
|
*
|
|
2150
2261
|
* @param baseid Id of the baseline evaluation
|
|
2151
2262
|
* @param comparisonid Id of the comparison evaluation
|
|
@@ -2162,6 +2273,10 @@ interface AppsAPI {
|
|
|
2162
2273
|
getAppEvaluation: typeof getAppEvaluation;
|
|
2163
2274
|
/**
|
|
2164
2275
|
* Find and download an evaluation log by a specific evaluation id.
|
|
2276
|
+
* @example
|
|
2277
|
+
* getAppEvaluationXml(
|
|
2278
|
+
* "abcdefghijklmnopq"
|
|
2279
|
+
* )
|
|
2165
2280
|
*
|
|
2166
2281
|
* @param id Id of the desired evaluation.
|
|
2167
2282
|
* @throws GetAppEvaluationXmlHttpError
|
|
@@ -2484,6 +2599,10 @@ interface AppsAPI {
|
|
|
2484
2599
|
getAppEvaluations: typeof getAppEvaluations;
|
|
2485
2600
|
/**
|
|
2486
2601
|
* Queue an app evaluation by its app guid.
|
|
2602
|
+
* @example
|
|
2603
|
+
* queueAppEvaluation(
|
|
2604
|
+
* "abcdefghijklmnopq"
|
|
2605
|
+
* )
|
|
2487
2606
|
*
|
|
2488
2607
|
* @param guid Guid of the app.
|
|
2489
2608
|
* @throws QueueAppEvaluationHttpError
|
package/apps.js
CHANGED
package/audits.d.ts
CHANGED
|
@@ -156,7 +156,7 @@ type GetAuditsHttpError = {
|
|
|
156
156
|
*/
|
|
157
157
|
declare const getArchivedAudits: (query: {
|
|
158
158
|
/** Date to be used as filter and criteria during extraction. */
|
|
159
|
-
date
|
|
159
|
+
date: string;
|
|
160
160
|
}, options?: ApiCallOptions) => Promise<GetArchivedAuditsHttpResponse>;
|
|
161
161
|
type GetArchivedAuditsHttpResponse = {
|
|
162
162
|
data: GetArchiveResult;
|
package/audits.js
CHANGED
package/auth.js
CHANGED
package/automations.d.ts
CHANGED
|
@@ -188,7 +188,13 @@ type UsageObject = {
|
|
|
188
188
|
value: number;
|
|
189
189
|
};
|
|
190
190
|
/**
|
|
191
|
-
* Retrieves a list of automations
|
|
191
|
+
* Retrieves a list of the automations that the requesting user has access to.
|
|
192
|
+
* @example
|
|
193
|
+
* getAutomations(
|
|
194
|
+
* {
|
|
195
|
+
* fields: "lastRun,lastRunStatus,runMode,createdAt,updatedAt"
|
|
196
|
+
* }
|
|
197
|
+
* )
|
|
192
198
|
*
|
|
193
199
|
* @param query an object with query parameters
|
|
194
200
|
* @throws GetAutomationsHttpError
|
|
@@ -216,7 +222,7 @@ type GetAutomationsHttpError = {
|
|
|
216
222
|
status: 400 | 401 | 403 | 500 | 503;
|
|
217
223
|
};
|
|
218
224
|
/**
|
|
219
|
-
*
|
|
225
|
+
* Creates a new automation. The requesting user must be assigned the `AutomationCreator` role.
|
|
220
226
|
*
|
|
221
227
|
* @param body an object with the body content
|
|
222
228
|
* @throws CreateAutomationHttpError
|
|
@@ -233,7 +239,7 @@ type CreateAutomationHttpError = {
|
|
|
233
239
|
status: 400 | 401 | 403 | 500 | 503;
|
|
234
240
|
};
|
|
235
241
|
/**
|
|
236
|
-
* Retrieves
|
|
242
|
+
* Retrieves paginated usage metrics for automations. The requesting user must be assigned the `TenantAdmin` role.
|
|
237
243
|
*
|
|
238
244
|
* @param query an object with query parameters
|
|
239
245
|
* @throws GetAutomationsUsageMetricsHttpError
|
|
@@ -242,7 +248,7 @@ declare const getAutomationsUsageMetrics: (query: {
|
|
|
242
248
|
/** If specified, result will be broken apart for each automation */
|
|
243
249
|
breakdownBy?: string;
|
|
244
250
|
/** Indicates how the metrics should be filtered */
|
|
245
|
-
filter
|
|
251
|
+
filter: string;
|
|
246
252
|
}, options?: ApiCallOptions) => Promise<GetAutomationsUsageMetricsHttpResponse>;
|
|
247
253
|
type GetAutomationsUsageMetricsHttpResponse = {
|
|
248
254
|
data: UsageList;
|
|
@@ -257,7 +263,7 @@ type GetAutomationsUsageMetricsHttpError = {
|
|
|
257
263
|
status: 400 | 401 | 403 | 500 | 503;
|
|
258
264
|
};
|
|
259
265
|
/**
|
|
260
|
-
*
|
|
266
|
+
* Deletes an automation. The requesting user must be the owner of the automation, or be assigned the `TenantAdmin` role.
|
|
261
267
|
*
|
|
262
268
|
* @param id The unique identifier for the automation.
|
|
263
269
|
* @throws DeleteAutomationHttpError
|
|
@@ -274,7 +280,7 @@ type DeleteAutomationHttpError = {
|
|
|
274
280
|
status: 401 | 403 | 404 | 500 | 503;
|
|
275
281
|
};
|
|
276
282
|
/**
|
|
277
|
-
* Retrieves an automation
|
|
283
|
+
* Retrieves the full definition of an automation. The requesting user must be the owner of the automation.
|
|
278
284
|
*
|
|
279
285
|
* @param id The unique identifier for the automation.
|
|
280
286
|
* @param query an object with query parameters
|
|
@@ -295,7 +301,7 @@ type GetAutomationWithQueryHttpError = {
|
|
|
295
301
|
status: 400 | 401 | 403 | 404 | 500 | 503;
|
|
296
302
|
};
|
|
297
303
|
/**
|
|
298
|
-
* Retrieves an automation
|
|
304
|
+
* Retrieves the full definition of an automation. The requesting user must be the owner of the automation.
|
|
299
305
|
*
|
|
300
306
|
* @param id The unique identifier for the automation.
|
|
301
307
|
* @throws GetAutomationHttpError
|
|
@@ -312,7 +318,7 @@ type GetAutomationHttpError = {
|
|
|
312
318
|
status: 400 | 401 | 403 | 404 | 500 | 503;
|
|
313
319
|
};
|
|
314
320
|
/**
|
|
315
|
-
*
|
|
321
|
+
* Updates the full definition of an automation. The requesting user must be the owner of the automation.
|
|
316
322
|
*
|
|
317
323
|
* @param id The unique identifier for the automation.
|
|
318
324
|
* @param body an object with the body content
|
|
@@ -330,7 +336,7 @@ type UpdateAutomationHttpError = {
|
|
|
330
336
|
status: 400 | 401 | 403 | 404 | 500 | 503;
|
|
331
337
|
};
|
|
332
338
|
/**
|
|
333
|
-
*
|
|
339
|
+
* Duplicates an existing automation. The requesting user must be the owner of the automation.
|
|
334
340
|
*
|
|
335
341
|
* @param id The unique identifier for the automation.
|
|
336
342
|
* @param body an object with the body content
|
|
@@ -354,7 +360,7 @@ type CopyAutomationHttpError = {
|
|
|
354
360
|
status: 400 | 401 | 403 | 404 | 500 | 503;
|
|
355
361
|
};
|
|
356
362
|
/**
|
|
357
|
-
* Disables an automation.
|
|
363
|
+
* Disables an automation so that it cannot be run. The requesting user must be the owner of the automation, or be assigned the `TenantAdmin` role.
|
|
358
364
|
*
|
|
359
365
|
* @param id The unique identifier for the automation.
|
|
360
366
|
* @throws DisableAutomationHttpError
|
|
@@ -371,7 +377,7 @@ type DisableAutomationHttpError = {
|
|
|
371
377
|
status: 400 | 401 | 403 | 404 | 500 | 503;
|
|
372
378
|
};
|
|
373
379
|
/**
|
|
374
|
-
*
|
|
380
|
+
* Enables an automation so that it can be run. The requesting user must be the owner of the automation, or be assigned the `TenantAdmin` role.
|
|
375
381
|
*
|
|
376
382
|
* @param id The unique identifier for the automation.
|
|
377
383
|
* @throws EnableAutomationHttpError
|
|
@@ -388,7 +394,7 @@ type EnableAutomationHttpError = {
|
|
|
388
394
|
status: 400 | 401 | 403 | 404 | 500 | 503;
|
|
389
395
|
};
|
|
390
396
|
/**
|
|
391
|
-
* This
|
|
397
|
+
* Changes the owner of an automation to another user. This action removes the history and change logs of this automation. All linked connections used in the automation are detached and not moved to the new owner.
|
|
392
398
|
*
|
|
393
399
|
* @param id The unique identifier for the automation.
|
|
394
400
|
* @param body an object with the body content
|
|
@@ -408,7 +414,7 @@ type MoveAutomationHttpError = {
|
|
|
408
414
|
status: 400 | 401 | 403 | 404 | 500 | 503;
|
|
409
415
|
};
|
|
410
416
|
/**
|
|
411
|
-
* Retrieves a list of runs for a specific automation.
|
|
417
|
+
* Retrieves a list of runs for a specific automation. The requesting user must be the owner of the automation, or be assigned the `TenantAdmin` role.
|
|
412
418
|
*
|
|
413
419
|
* @param id The unique identifier for the automation.
|
|
414
420
|
* @param query an object with query parameters
|
|
@@ -437,7 +443,7 @@ type GetAutomationRunsHttpError = {
|
|
|
437
443
|
status: 400 | 401 | 403 | 404 | 500 | 503;
|
|
438
444
|
};
|
|
439
445
|
/**
|
|
440
|
-
*
|
|
446
|
+
* Creates a runs for a specific automation. The requesting user must be the owner of the automation.
|
|
441
447
|
*
|
|
442
448
|
* @param id The unique identifier for the automation.
|
|
443
449
|
* @param body an object with the body content
|
|
@@ -455,7 +461,7 @@ type QueueAutomationRunHttpError = {
|
|
|
455
461
|
status: 400 | 401 | 403 | 404 | 500 | 503;
|
|
456
462
|
};
|
|
457
463
|
/**
|
|
458
|
-
* Retrieves a run
|
|
464
|
+
* Retrieves a specific run for an automation. The requesting user must be the owner of the automation.
|
|
459
465
|
*
|
|
460
466
|
* @param id The unique identifier for the automation.
|
|
461
467
|
* @param runId The unique identifier for the run.
|
|
@@ -477,7 +483,7 @@ type GetAutomationRunWithQueryHttpError = {
|
|
|
477
483
|
status: 400 | 401 | 403 | 404 | 500 | 503;
|
|
478
484
|
};
|
|
479
485
|
/**
|
|
480
|
-
* Retrieves a run
|
|
486
|
+
* Retrieves a specific run for an automation. The requesting user must be the owner of the automation.
|
|
481
487
|
*
|
|
482
488
|
* @param id The unique identifier for the automation.
|
|
483
489
|
* @param runId The unique identifier for the run.
|
|
@@ -495,7 +501,7 @@ type GetAutomationRunHttpError = {
|
|
|
495
501
|
status: 400 | 401 | 403 | 404 | 500 | 503;
|
|
496
502
|
};
|
|
497
503
|
/**
|
|
498
|
-
*
|
|
504
|
+
* Retrieves the URL for the debug log of a specific automation run. The requesting user must be the owner of the automation.
|
|
499
505
|
*
|
|
500
506
|
* @param id The unique identifier for the automation.
|
|
501
507
|
* @param runId The unique identifier for the run.
|
|
@@ -515,7 +521,7 @@ type GetAutomationRunDetailsHttpError = {
|
|
|
515
521
|
status: 400 | 401 | 403 | 404 | 500 | 503;
|
|
516
522
|
};
|
|
517
523
|
/**
|
|
518
|
-
*
|
|
524
|
+
* Retries a specific run by creating a new run using the same inputs. The requesting user must be the owner of the automation.
|
|
519
525
|
*
|
|
520
526
|
* @param id The unique identifier for the automation.
|
|
521
527
|
* @param runId The unique identifier for the run.
|
|
@@ -533,7 +539,7 @@ type RetryAutomationRunHttpError = {
|
|
|
533
539
|
status: 400 | 401 | 403 | 404 | 500 | 503;
|
|
534
540
|
};
|
|
535
541
|
/**
|
|
536
|
-
*
|
|
542
|
+
* Forcefully stops an automation run immediately. The requesting user must be the owner of the automation.
|
|
537
543
|
*
|
|
538
544
|
* @param id The unique identifier for the automation.
|
|
539
545
|
* @param runId The unique identifier for the run.
|
|
@@ -556,35 +562,41 @@ type StopAutomationRunHttpError = {
|
|
|
556
562
|
declare function clearCache(): void;
|
|
557
563
|
interface AutomationsAPI {
|
|
558
564
|
/**
|
|
559
|
-
* Retrieves a list of automations
|
|
565
|
+
* Retrieves a list of the automations that the requesting user has access to.
|
|
566
|
+
* @example
|
|
567
|
+
* getAutomations(
|
|
568
|
+
* {
|
|
569
|
+
* fields: "lastRun,lastRunStatus,runMode,createdAt,updatedAt"
|
|
570
|
+
* }
|
|
571
|
+
* )
|
|
560
572
|
*
|
|
561
573
|
* @param query an object with query parameters
|
|
562
574
|
* @throws GetAutomationsHttpError
|
|
563
575
|
*/
|
|
564
576
|
getAutomations: typeof getAutomations;
|
|
565
577
|
/**
|
|
566
|
-
*
|
|
578
|
+
* Creates a new automation. The requesting user must be assigned the `AutomationCreator` role.
|
|
567
579
|
*
|
|
568
580
|
* @param body an object with the body content
|
|
569
581
|
* @throws CreateAutomationHttpError
|
|
570
582
|
*/
|
|
571
583
|
createAutomation: typeof createAutomation;
|
|
572
584
|
/**
|
|
573
|
-
* Retrieves
|
|
585
|
+
* Retrieves paginated usage metrics for automations. The requesting user must be assigned the `TenantAdmin` role.
|
|
574
586
|
*
|
|
575
587
|
* @param query an object with query parameters
|
|
576
588
|
* @throws GetAutomationsUsageMetricsHttpError
|
|
577
589
|
*/
|
|
578
590
|
getAutomationsUsageMetrics: typeof getAutomationsUsageMetrics;
|
|
579
591
|
/**
|
|
580
|
-
*
|
|
592
|
+
* Deletes an automation. The requesting user must be the owner of the automation, or be assigned the `TenantAdmin` role.
|
|
581
593
|
*
|
|
582
594
|
* @param id The unique identifier for the automation.
|
|
583
595
|
* @throws DeleteAutomationHttpError
|
|
584
596
|
*/
|
|
585
597
|
deleteAutomation: typeof deleteAutomation;
|
|
586
598
|
/**
|
|
587
|
-
* Retrieves an automation
|
|
599
|
+
* Retrieves the full definition of an automation. The requesting user must be the owner of the automation.
|
|
588
600
|
*
|
|
589
601
|
* @param id The unique identifier for the automation.
|
|
590
602
|
* @param query an object with query parameters
|
|
@@ -592,14 +604,14 @@ interface AutomationsAPI {
|
|
|
592
604
|
*/
|
|
593
605
|
getAutomationWithQuery: typeof getAutomationWithQuery;
|
|
594
606
|
/**
|
|
595
|
-
* Retrieves an automation
|
|
607
|
+
* Retrieves the full definition of an automation. The requesting user must be the owner of the automation.
|
|
596
608
|
*
|
|
597
609
|
* @param id The unique identifier for the automation.
|
|
598
610
|
* @throws GetAutomationHttpError
|
|
599
611
|
*/
|
|
600
612
|
getAutomation: typeof getAutomation;
|
|
601
613
|
/**
|
|
602
|
-
*
|
|
614
|
+
* Updates the full definition of an automation. The requesting user must be the owner of the automation.
|
|
603
615
|
*
|
|
604
616
|
* @param id The unique identifier for the automation.
|
|
605
617
|
* @param body an object with the body content
|
|
@@ -607,7 +619,7 @@ interface AutomationsAPI {
|
|
|
607
619
|
*/
|
|
608
620
|
updateAutomation: typeof updateAutomation;
|
|
609
621
|
/**
|
|
610
|
-
*
|
|
622
|
+
* Duplicates an existing automation. The requesting user must be the owner of the automation.
|
|
611
623
|
*
|
|
612
624
|
* @param id The unique identifier for the automation.
|
|
613
625
|
* @param body an object with the body content
|
|
@@ -615,21 +627,21 @@ interface AutomationsAPI {
|
|
|
615
627
|
*/
|
|
616
628
|
copyAutomation: typeof copyAutomation;
|
|
617
629
|
/**
|
|
618
|
-
* Disables an automation.
|
|
630
|
+
* Disables an automation so that it cannot be run. The requesting user must be the owner of the automation, or be assigned the `TenantAdmin` role.
|
|
619
631
|
*
|
|
620
632
|
* @param id The unique identifier for the automation.
|
|
621
633
|
* @throws DisableAutomationHttpError
|
|
622
634
|
*/
|
|
623
635
|
disableAutomation: typeof disableAutomation;
|
|
624
636
|
/**
|
|
625
|
-
*
|
|
637
|
+
* Enables an automation so that it can be run. The requesting user must be the owner of the automation, or be assigned the `TenantAdmin` role.
|
|
626
638
|
*
|
|
627
639
|
* @param id The unique identifier for the automation.
|
|
628
640
|
* @throws EnableAutomationHttpError
|
|
629
641
|
*/
|
|
630
642
|
enableAutomation: typeof enableAutomation;
|
|
631
643
|
/**
|
|
632
|
-
* This
|
|
644
|
+
* Changes the owner of an automation to another user. This action removes the history and change logs of this automation. All linked connections used in the automation are detached and not moved to the new owner.
|
|
633
645
|
*
|
|
634
646
|
* @param id The unique identifier for the automation.
|
|
635
647
|
* @param body an object with the body content
|
|
@@ -637,7 +649,7 @@ interface AutomationsAPI {
|
|
|
637
649
|
*/
|
|
638
650
|
moveAutomation: typeof moveAutomation;
|
|
639
651
|
/**
|
|
640
|
-
* Retrieves a list of runs for a specific automation.
|
|
652
|
+
* Retrieves a list of runs for a specific automation. The requesting user must be the owner of the automation, or be assigned the `TenantAdmin` role.
|
|
641
653
|
*
|
|
642
654
|
* @param id The unique identifier for the automation.
|
|
643
655
|
* @param query an object with query parameters
|
|
@@ -645,7 +657,7 @@ interface AutomationsAPI {
|
|
|
645
657
|
*/
|
|
646
658
|
getAutomationRuns: typeof getAutomationRuns;
|
|
647
659
|
/**
|
|
648
|
-
*
|
|
660
|
+
* Creates a runs for a specific automation. The requesting user must be the owner of the automation.
|
|
649
661
|
*
|
|
650
662
|
* @param id The unique identifier for the automation.
|
|
651
663
|
* @param body an object with the body content
|
|
@@ -653,7 +665,7 @@ interface AutomationsAPI {
|
|
|
653
665
|
*/
|
|
654
666
|
queueAutomationRun: typeof queueAutomationRun;
|
|
655
667
|
/**
|
|
656
|
-
* Retrieves a run
|
|
668
|
+
* Retrieves a specific run for an automation. The requesting user must be the owner of the automation.
|
|
657
669
|
*
|
|
658
670
|
* @param id The unique identifier for the automation.
|
|
659
671
|
* @param runId The unique identifier for the run.
|
|
@@ -662,7 +674,7 @@ interface AutomationsAPI {
|
|
|
662
674
|
*/
|
|
663
675
|
getAutomationRunWithQuery: typeof getAutomationRunWithQuery;
|
|
664
676
|
/**
|
|
665
|
-
* Retrieves a run
|
|
677
|
+
* Retrieves a specific run for an automation. The requesting user must be the owner of the automation.
|
|
666
678
|
*
|
|
667
679
|
* @param id The unique identifier for the automation.
|
|
668
680
|
* @param runId The unique identifier for the run.
|
|
@@ -670,7 +682,7 @@ interface AutomationsAPI {
|
|
|
670
682
|
*/
|
|
671
683
|
getAutomationRun: typeof getAutomationRun;
|
|
672
684
|
/**
|
|
673
|
-
*
|
|
685
|
+
* Retrieves the URL for the debug log of a specific automation run. The requesting user must be the owner of the automation.
|
|
674
686
|
*
|
|
675
687
|
* @param id The unique identifier for the automation.
|
|
676
688
|
* @param runId The unique identifier for the run.
|
|
@@ -678,7 +690,7 @@ interface AutomationsAPI {
|
|
|
678
690
|
*/
|
|
679
691
|
getAutomationRunDetails: typeof getAutomationRunDetails;
|
|
680
692
|
/**
|
|
681
|
-
*
|
|
693
|
+
* Retries a specific run by creating a new run using the same inputs. The requesting user must be the owner of the automation.
|
|
682
694
|
*
|
|
683
695
|
* @param id The unique identifier for the automation.
|
|
684
696
|
* @param runId The unique identifier for the run.
|
|
@@ -686,7 +698,7 @@ interface AutomationsAPI {
|
|
|
686
698
|
*/
|
|
687
699
|
retryAutomationRun: typeof retryAutomationRun;
|
|
688
700
|
/**
|
|
689
|
-
*
|
|
701
|
+
* Forcefully stops an automation run immediately. The requesting user must be the owner of the automation.
|
|
690
702
|
*
|
|
691
703
|
* @param id The unique identifier for the automation.
|
|
692
704
|
* @param runId The unique identifier for the run.
|
package/automations.js
CHANGED
package/brands.js
CHANGED