@qlik/api 1.4.1 → 1.6.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/.github/workflows/release.yaml +6 -1
- package/api-keys.d.ts +1 -1
- package/api-keys.js +3 -2
- package/apps.d.ts +1 -1
- package/apps.js +3 -2
- package/audits.d.ts +1 -1
- package/audits.js +3 -2
- package/auth.js +2 -2
- package/automations.d.ts +91 -10
- package/automations.js +21 -2
- package/brands.d.ts +1 -1
- package/brands.js +3 -2
- package/chunks/2ZQ3ZX7F.js +33 -0
- package/chunks/{2G2EK3MP.js → 5WSW4QG3.js} +2 -1
- package/chunks/{JK564JXC.js → BPM4DLZK.js} +1 -1
- package/chunks/{DD5UK3PZ.js → CUE3GZGJ.js} +7 -5
- package/chunks/{GEU5U7Z5.js → CYO4KHYF.js} +1 -1
- package/chunks/{QGXPKKG2.js → FFVTXKKA.js} +2 -1
- package/chunks/{54UDXFVD.js → I5CSZHWM.js} +3 -3
- package/chunks/{5GE4XPP3.js → KSB5ROQL.js} +42 -40
- package/chunks/{3IA4SDJA.js → NR2F7MAJ.js} +5 -4
- package/chunks/{W3BAQSQ7.js → S3X62FNR.js} +14 -2
- package/chunks/{LDQGW22R.js → SW3DXPAP.js} +2 -1
- package/collections.d.ts +1 -1
- package/collections.js +3 -2
- package/csp-origins.d.ts +1 -1
- package/csp-origins.js +3 -2
- package/data-assets.d.ts +1 -1
- package/data-assets.js +3 -2
- package/data-connections.d.ts +1 -1
- package/data-connections.js +3 -2
- package/data-credentials.d.ts +1 -1
- package/data-credentials.js +3 -2
- package/data-files.d.ts +1 -1
- package/data-files.js +3 -2
- package/docs/examples/fetch-spaces.md +1 -1
- package/extensions.d.ts +1 -1
- package/extensions.js +3 -2
- package/{global.types-CMQsAHYd.d.ts → global.types-Xt6XzwlN.d.ts} +7 -0
- package/glossaries.d.ts +10 -8
- package/glossaries.js +3 -2
- package/groups.d.ts +1 -1
- package/groups.js +3 -2
- package/identity-providers.d.ts +1 -1
- package/identity-providers.js +3 -2
- package/index.d.ts +1 -1
- package/index.js +7 -6
- package/items.d.ts +1 -1
- package/items.js +3 -2
- package/licenses.d.ts +1 -1
- package/licenses.js +3 -2
- package/package.json +2 -6
- package/qix.d.ts +7 -7
- package/qix.js +2 -2
- package/quotas.d.ts +1 -1
- package/quotas.js +3 -2
- package/reload-tasks.d.ts +1 -1
- package/reload-tasks.js +3 -2
- package/reloads.d.ts +1 -1
- package/reloads.js +3 -2
- package/roles.d.ts +1 -1
- package/roles.js +3 -2
- package/spaces.d.ts +1 -1
- package/spaces.js +3 -2
- package/temp-contents.d.ts +1 -1
- package/temp-contents.js +3 -2
- package/tenants.d.ts +1 -1
- package/tenants.js +3 -2
- package/themes.d.ts +1 -1
- package/themes.js +3 -2
- package/transports.d.ts +1 -1
- package/transports.js +3 -2
- package/users.d.ts +1 -1
- package/users.js +3 -2
- package/web-integrations.d.ts +1 -1
- package/web-integrations.js +3 -2
- package/web-notifications.d.ts +1 -1
- package/web-notifications.js +3 -2
- package/webhooks.d.ts +1 -1
- package/webhooks.js +3 -2
|
@@ -28,8 +28,13 @@ jobs:
|
|
|
28
28
|
VERSION=$(git describe --tags --abbrev=7 --match "v*")
|
|
29
29
|
VERSION=${VERSION#v}
|
|
30
30
|
echo "version is $VERSION"
|
|
31
|
-
jq --arg version "$VERSION" '.version = $version' package.json >temp.json && mv temp.json package.json
|
|
31
|
+
jq --arg version "$VERSION" '.version = $version' package.json > temp.json && mv temp.json package.json
|
|
32
32
|
cat package.json
|
|
33
|
+
# Set the default user-agent.
|
|
34
|
+
ls ./chunks >/dev/null || (echo "Missing chunks directory!" && exit 1)
|
|
35
|
+
find ./chunks -type f -exec sed -i.bak -e "s;defaultUserAgent = \"qlik-api/latest\";defaultUserAgent = \"qlik-api/$VERSION\";g" -- {} +
|
|
36
|
+
rm -f ./chunks/*.bak
|
|
37
|
+
# Publish npm package
|
|
33
38
|
npm publish
|
|
34
39
|
env:
|
|
35
40
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_CI_TOKEN }}
|
package/api-keys.d.ts
CHANGED
package/api-keys.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
clearApiCache,
|
|
3
3
|
invokeFetch
|
|
4
|
-
} from "./chunks/
|
|
5
|
-
import "./chunks/
|
|
4
|
+
} from "./chunks/S3X62FNR.js";
|
|
5
|
+
import "./chunks/2ZQ3ZX7F.js";
|
|
6
|
+
import "./chunks/I5CSZHWM.js";
|
|
6
7
|
|
|
7
8
|
// src/public/rest/api-keys.ts
|
|
8
9
|
var getApiKeys = async (query, options) => invokeFetch("api-keys", {
|
package/apps.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as ApiCallOptions, D as DownloadableBlob } from './global.types-
|
|
1
|
+
import { A as ApiCallOptions, D as DownloadableBlob } from './global.types-Xt6XzwlN.js';
|
|
2
2
|
import './auth-types-Bqw3vbLs.js';
|
|
3
3
|
|
|
4
4
|
type Analysis = "breakdown" | "changePoint" | "comparison" | "contribution" | "correlation" | "fact" | "mutualInfo" | "rank" | "spike" | "trend" | "values";
|
package/apps.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
clearApiCache,
|
|
3
3
|
invokeFetch
|
|
4
|
-
} from "./chunks/
|
|
5
|
-
import "./chunks/
|
|
4
|
+
} from "./chunks/S3X62FNR.js";
|
|
5
|
+
import "./chunks/2ZQ3ZX7F.js";
|
|
6
|
+
import "./chunks/I5CSZHWM.js";
|
|
6
7
|
|
|
7
8
|
// src/public/rest/apps.ts
|
|
8
9
|
var createApp = async (body, options) => invokeFetch("apps", {
|
package/audits.d.ts
CHANGED
package/audits.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
clearApiCache,
|
|
3
3
|
invokeFetch
|
|
4
|
-
} from "./chunks/
|
|
5
|
-
import "./chunks/
|
|
4
|
+
} from "./chunks/S3X62FNR.js";
|
|
5
|
+
import "./chunks/2ZQ3ZX7F.js";
|
|
6
|
+
import "./chunks/I5CSZHWM.js";
|
|
6
7
|
|
|
7
8
|
// src/public/rest/audits.ts
|
|
8
9
|
var getAudits = async (query, options) => invokeFetch("audits", {
|
package/auth.js
CHANGED
package/automations.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as ApiCallOptions } from './global.types-
|
|
1
|
+
import { A as ApiCallOptions } from './global.types-Xt6XzwlN.js';
|
|
2
2
|
import './auth-types-Bqw3vbLs.js';
|
|
3
3
|
|
|
4
4
|
type AutomationDetailRequestObject = {
|
|
@@ -10,11 +10,11 @@ type AutomationDetailRequestObject = {
|
|
|
10
10
|
workspace?: unknown;
|
|
11
11
|
};
|
|
12
12
|
type AutomationDetailResponseObject = {
|
|
13
|
-
/** A list of connectors
|
|
13
|
+
/** A list of connectors that were detected the workspace. This includes Connectors present in blocks which are not connected to other blocks. Order of guids is not guaranteed. */
|
|
14
14
|
readonly connectorIds?: string[];
|
|
15
15
|
readonly createdAt?: string;
|
|
16
16
|
description?: string;
|
|
17
|
-
/** A list of endpoints
|
|
17
|
+
/** A list of endpoints that were detected inside the workspace. This includes Endpoints present in blocks which are not connected to other blocks. Order of guids is not guaranteed. */
|
|
18
18
|
readonly endpointIds?: string[];
|
|
19
19
|
readonly executionToken?: string;
|
|
20
20
|
readonly id?: string;
|
|
@@ -25,7 +25,7 @@ type AutomationDetailResponseObject = {
|
|
|
25
25
|
readonly ownerId?: string;
|
|
26
26
|
readonly runMode?: "manual" | "scheduled" | "triggered" | "webhook";
|
|
27
27
|
schedules?: ScheduleResponseObject[];
|
|
28
|
-
/** A list of snippets
|
|
28
|
+
/** A list of snippets that were detected inside the workspace. This includes snippet blocks that are not connected to other blocks. Order of guids is not guaranteed. */
|
|
29
29
|
readonly snippetIds?: string[];
|
|
30
30
|
state?: "available" | "unavailable" | "disabled";
|
|
31
31
|
readonly updatedAt?: string;
|
|
@@ -37,18 +37,32 @@ type AutomationList = {
|
|
|
37
37
|
links?: Links;
|
|
38
38
|
};
|
|
39
39
|
type AutomationListObject = {
|
|
40
|
+
/** A list of connectors that were detected the workspace. This includes Connectors present in blocks which are not connected to other blocks. Order of guids is not guaranteed. */
|
|
41
|
+
readonly connectorIds?: string[];
|
|
40
42
|
readonly createdAt?: string;
|
|
41
43
|
description?: string;
|
|
44
|
+
/** Duration of the last run, indicated in seconds. Calculated from start and stop times */
|
|
45
|
+
readonly duration?: number;
|
|
46
|
+
/** A list of endpoints that were detected inside the workspace. This includes Endpoints present in blocks which are not connected to other blocks. Order of guids is not guaranteed. */
|
|
47
|
+
readonly endpointIds?: string[];
|
|
48
|
+
readonly executionToken?: string;
|
|
42
49
|
readonly id?: string;
|
|
50
|
+
lastRun?: RunDetailResponseObject;
|
|
43
51
|
readonly lastRunAt?: string;
|
|
44
52
|
readonly lastRunStatus?: "failed" | "finished" | "finished with warnings" | "must stop" | "not started" | "paused" | "running" | "starting" | "stopped";
|
|
45
53
|
name?: string;
|
|
46
54
|
readonly ownerId?: string;
|
|
47
55
|
readonly runMode?: "manual" | "scheduled" | "triggered" | "webhook";
|
|
56
|
+
/** A list of snippets that were detected inside the workspace. This includes snippet blocks that are not connected to other blocks. Order of guids is not guaranteed. */
|
|
57
|
+
readonly snippetIds?: string[];
|
|
48
58
|
state?: "available" | "unavailable" | "disabled";
|
|
49
59
|
readonly updatedAt?: string;
|
|
60
|
+
/** The workspace contains the JSON representation of the used blocks */
|
|
61
|
+
readonly workspace?: unknown;
|
|
50
62
|
};
|
|
51
63
|
type AutomationUsageObject = {
|
|
64
|
+
/** Duration of the last run, indicated in seconds. Calculated from start and stop times */
|
|
65
|
+
duration?: number;
|
|
52
66
|
/** The unique identifier for the automation. */
|
|
53
67
|
guid?: string;
|
|
54
68
|
/** The name for the automation. */
|
|
@@ -131,6 +145,8 @@ type RunList = {
|
|
|
131
145
|
type RunListObject = {
|
|
132
146
|
context?: "test_run" | "editor" | "detail" | "api_sync" | "api_async" | "webhook" | "lookup";
|
|
133
147
|
readonly createdAt?: string;
|
|
148
|
+
/** Duration of the run, indicated in seconds. Calculated from start and stop times */
|
|
149
|
+
readonly duration?: number;
|
|
134
150
|
error?: unknown;
|
|
135
151
|
readonly id?: string;
|
|
136
152
|
readonly isArchived?: boolean;
|
|
@@ -163,6 +179,7 @@ type SettingsObject = {
|
|
|
163
179
|
};
|
|
164
180
|
type UsageList = {
|
|
165
181
|
data?: UsageObject[];
|
|
182
|
+
links?: Links;
|
|
166
183
|
};
|
|
167
184
|
type UsageObject = {
|
|
168
185
|
automation?: AutomationUsageObject;
|
|
@@ -180,12 +197,14 @@ type UsageObject = {
|
|
|
180
197
|
* @throws GetAutomationsHttpError
|
|
181
198
|
*/
|
|
182
199
|
declare const getAutomations: (query: {
|
|
200
|
+
/** Allows to select the actual fields to be returned. When no fields are defined, all are returned. */
|
|
201
|
+
fields?: string;
|
|
183
202
|
/** Allowed filters: name, runMode, lastRunStatus, ownerId */
|
|
184
203
|
filter?: string;
|
|
185
204
|
/** The number of automations to retrieve. */
|
|
186
205
|
limit?: number;
|
|
187
206
|
/** The field to sort by, with +- prefix indicating sort order. (?query=-name => sort on the name field using descending order) */
|
|
188
|
-
sort?: "id" | "name" | "runMode" | "state" | "createdAt" | "updatedAt" | "lastRunAt" | "lastRunStatus" | "+id" | "+name" | "+runMode" | "+state" | "+createdAt" | "+updatedAt" | "+lastRunAt" | "+lastRunStatus" | "-id" | "-name" | "-runMode" | "-state" | "-createdAt" | "-updatedAt" | "-lastRunAt" | "-lastRunStatus";
|
|
207
|
+
sort?: "id" | "name" | "runMode" | "state" | "createdAt" | "updatedAt" | "lastRunAt" | "lastRunStatus" | "duration" | "+id" | "+name" | "+runMode" | "+state" | "+createdAt" | "+updatedAt" | "+lastRunAt" | "+lastRunStatus" | "-id" | "-name" | "-runMode" | "-state" | "-createdAt" | "-updatedAt" | "-lastRunAt" | "-lastRunStatus" | "+duration" | "-duration";
|
|
189
208
|
}, options?: ApiCallOptions) => Promise<GetAutomationsHttpResponse>;
|
|
190
209
|
type GetAutomationsHttpResponse = {
|
|
191
210
|
data: AutomationList;
|
|
@@ -254,8 +273,7 @@ type UpdateAutomationsSettingsHttpError = {
|
|
|
254
273
|
status: number;
|
|
255
274
|
};
|
|
256
275
|
/**
|
|
257
|
-
*
|
|
258
|
-
* * **Maximum 1000 metrics per API call**
|
|
276
|
+
* Retrieves all automation usage for a tenant
|
|
259
277
|
*
|
|
260
278
|
* @param query an object with query parameters
|
|
261
279
|
* @throws GetAutomationsUsageMetricsHttpError
|
|
@@ -270,6 +288,8 @@ type GetAutomationsUsageMetricsHttpResponse = {
|
|
|
270
288
|
data: UsageList;
|
|
271
289
|
headers: Headers;
|
|
272
290
|
status: number;
|
|
291
|
+
prev?: (options?: ApiCallOptions) => Promise<GetAutomationsUsageMetricsHttpResponse>;
|
|
292
|
+
next?: (options?: ApiCallOptions) => Promise<GetAutomationsUsageMetricsHttpResponse>;
|
|
273
293
|
};
|
|
274
294
|
type GetAutomationsUsageMetricsHttpError = {
|
|
275
295
|
data: ErrorResponse;
|
|
@@ -293,6 +313,27 @@ type DeleteAutomationHttpError = {
|
|
|
293
313
|
headers: Headers;
|
|
294
314
|
status: number;
|
|
295
315
|
};
|
|
316
|
+
/**
|
|
317
|
+
* Retrieves an automation
|
|
318
|
+
*
|
|
319
|
+
* @param id The unique identifier for the automation.
|
|
320
|
+
* @param query an object with query parameters
|
|
321
|
+
* @throws GetAutomationWithQueryHttpError
|
|
322
|
+
*/
|
|
323
|
+
declare const getAutomationWithQuery: (id: string, query: {
|
|
324
|
+
/** Allows to select the actual fields to be returned. Where the default is all fields */
|
|
325
|
+
fields?: string;
|
|
326
|
+
}, options?: ApiCallOptions) => Promise<GetAutomationWithQueryHttpResponse>;
|
|
327
|
+
type GetAutomationWithQueryHttpResponse = {
|
|
328
|
+
data: AutomationDetailResponseObject;
|
|
329
|
+
headers: Headers;
|
|
330
|
+
status: number;
|
|
331
|
+
};
|
|
332
|
+
type GetAutomationWithQueryHttpError = {
|
|
333
|
+
data: ErrorResponse;
|
|
334
|
+
headers: Headers;
|
|
335
|
+
status: number;
|
|
336
|
+
};
|
|
296
337
|
/**
|
|
297
338
|
* Retrieves an automation
|
|
298
339
|
*
|
|
@@ -414,6 +455,8 @@ type MoveAutomationHttpError = {
|
|
|
414
455
|
* @throws GetAutomationRunsHttpError
|
|
415
456
|
*/
|
|
416
457
|
declare const getAutomationRuns: (id: string, query: {
|
|
458
|
+
/** Allows to select the actual fields to be returned. Where the default is all fields */
|
|
459
|
+
fields?: string;
|
|
417
460
|
/** Allowed filters: status, context, startTime and title */
|
|
418
461
|
filter?: string;
|
|
419
462
|
/** The number of runs to retrieve. */
|
|
@@ -451,6 +494,28 @@ type QueueAutomationRunHttpError = {
|
|
|
451
494
|
headers: Headers;
|
|
452
495
|
status: number;
|
|
453
496
|
};
|
|
497
|
+
/**
|
|
498
|
+
* Retrieves a run
|
|
499
|
+
*
|
|
500
|
+
* @param id The unique identifier for the automation.
|
|
501
|
+
* @param runId The unique identifier for the run.
|
|
502
|
+
* @param query an object with query parameters
|
|
503
|
+
* @throws GetAutomationRunWithQueryHttpError
|
|
504
|
+
*/
|
|
505
|
+
declare const getAutomationRunWithQuery: (id: string, runId: string, query: {
|
|
506
|
+
/** Allows to select the actual fields to be returned. Where the default is all fields */
|
|
507
|
+
fields?: string;
|
|
508
|
+
}, options?: ApiCallOptions) => Promise<GetAutomationRunWithQueryHttpResponse>;
|
|
509
|
+
type GetAutomationRunWithQueryHttpResponse = {
|
|
510
|
+
data: RunDetailResponseObject;
|
|
511
|
+
headers: Headers;
|
|
512
|
+
status: number;
|
|
513
|
+
};
|
|
514
|
+
type GetAutomationRunWithQueryHttpError = {
|
|
515
|
+
data: ErrorResponse;
|
|
516
|
+
headers: Headers;
|
|
517
|
+
status: number;
|
|
518
|
+
};
|
|
454
519
|
/**
|
|
455
520
|
* Retrieves a run
|
|
456
521
|
*
|
|
@@ -562,8 +627,7 @@ interface AutomationsAPI {
|
|
|
562
627
|
*/
|
|
563
628
|
updateAutomationsSettings: typeof updateAutomationsSettings;
|
|
564
629
|
/**
|
|
565
|
-
*
|
|
566
|
-
* * **Maximum 1000 metrics per API call**
|
|
630
|
+
* Retrieves all automation usage for a tenant
|
|
567
631
|
*
|
|
568
632
|
* @param query an object with query parameters
|
|
569
633
|
* @throws GetAutomationsUsageMetricsHttpError
|
|
@@ -576,6 +640,14 @@ interface AutomationsAPI {
|
|
|
576
640
|
* @throws DeleteAutomationHttpError
|
|
577
641
|
*/
|
|
578
642
|
deleteAutomation: typeof deleteAutomation;
|
|
643
|
+
/**
|
|
644
|
+
* Retrieves an automation
|
|
645
|
+
*
|
|
646
|
+
* @param id The unique identifier for the automation.
|
|
647
|
+
* @param query an object with query parameters
|
|
648
|
+
* @throws GetAutomationWithQueryHttpError
|
|
649
|
+
*/
|
|
650
|
+
getAutomationWithQuery: typeof getAutomationWithQuery;
|
|
579
651
|
/**
|
|
580
652
|
* Retrieves an automation
|
|
581
653
|
*
|
|
@@ -637,6 +709,15 @@ interface AutomationsAPI {
|
|
|
637
709
|
* @throws QueueAutomationRunHttpError
|
|
638
710
|
*/
|
|
639
711
|
queueAutomationRun: typeof queueAutomationRun;
|
|
712
|
+
/**
|
|
713
|
+
* Retrieves a run
|
|
714
|
+
*
|
|
715
|
+
* @param id The unique identifier for the automation.
|
|
716
|
+
* @param runId The unique identifier for the run.
|
|
717
|
+
* @param query an object with query parameters
|
|
718
|
+
* @throws GetAutomationRunWithQueryHttpError
|
|
719
|
+
*/
|
|
720
|
+
getAutomationRunWithQuery: typeof getAutomationRunWithQuery;
|
|
640
721
|
/**
|
|
641
722
|
* Retrieves a run
|
|
642
723
|
*
|
|
@@ -679,4 +760,4 @@ interface AutomationsAPI {
|
|
|
679
760
|
*/
|
|
680
761
|
declare const automationsExport: AutomationsAPI;
|
|
681
762
|
|
|
682
|
-
export { type AutomationDetailRequestObject, type AutomationDetailResponseObject, type AutomationList, type AutomationListObject, type AutomationUsageObject, type AutomationsAPI, type CopyAutomationHttpError, type CopyAutomationHttpResponse, type CreateAutomationHttpError, type CreateAutomationHttpResponse, type DeleteAutomationHttpError, type DeleteAutomationHttpResponse, type DisableAutomationHttpError, type DisableAutomationHttpResponse, type EnableAutomationHttpError, type EnableAutomationHttpResponse, type Error, type ErrorResponse, type GetAutomationHttpError, type GetAutomationHttpResponse, type GetAutomationRunDetailsHttpError, type GetAutomationRunDetailsHttpResponse, type GetAutomationRunHttpError, type GetAutomationRunHttpResponse, type GetAutomationRunsHttpError, type GetAutomationRunsHttpResponse, type GetAutomationsHttpError, type GetAutomationsHttpResponse, type GetAutomationsSettingsHttpError, type GetAutomationsSettingsHttpResponse, type GetAutomationsUsageMetricsHttpError, type GetAutomationsUsageMetricsHttpResponse, type Links, type MoveAutomationHttpError, type MoveAutomationHttpResponse, type PaginationLink, type QueueAutomationRunHttpError, type QueueAutomationRunHttpResponse, type RetryAutomationRunHttpError, type RetryAutomationRunHttpResponse, type RunDetailRequestObject, type RunDetailResponseObject, type RunList, type RunListObject, type ScheduleRequestObject, type ScheduleResponseObject, type SettingsObject, type StopAutomationRunHttpError, type StopAutomationRunHttpResponse, type UpdateAutomationHttpError, type UpdateAutomationHttpResponse, type UpdateAutomationsSettingsHttpError, type UpdateAutomationsSettingsHttpResponse, type UsageList, type UsageObject, clearCache, copyAutomation, createAutomation, automationsExport as default, deleteAutomation, disableAutomation, enableAutomation, getAutomation, getAutomationRun, getAutomationRunDetails, getAutomationRuns, getAutomations, getAutomationsSettings, getAutomationsUsageMetrics, moveAutomation, queueAutomationRun, retryAutomationRun, stopAutomationRun, updateAutomation, updateAutomationsSettings };
|
|
763
|
+
export { type AutomationDetailRequestObject, type AutomationDetailResponseObject, type AutomationList, type AutomationListObject, type AutomationUsageObject, type AutomationsAPI, type CopyAutomationHttpError, type CopyAutomationHttpResponse, type CreateAutomationHttpError, type CreateAutomationHttpResponse, type DeleteAutomationHttpError, type DeleteAutomationHttpResponse, type DisableAutomationHttpError, type DisableAutomationHttpResponse, type EnableAutomationHttpError, type EnableAutomationHttpResponse, type Error, type ErrorResponse, type GetAutomationHttpError, type GetAutomationHttpResponse, type GetAutomationRunDetailsHttpError, type GetAutomationRunDetailsHttpResponse, type GetAutomationRunHttpError, type GetAutomationRunHttpResponse, type GetAutomationRunWithQueryHttpError, type GetAutomationRunWithQueryHttpResponse, type GetAutomationRunsHttpError, type GetAutomationRunsHttpResponse, type GetAutomationWithQueryHttpError, type GetAutomationWithQueryHttpResponse, type GetAutomationsHttpError, type GetAutomationsHttpResponse, type GetAutomationsSettingsHttpError, type GetAutomationsSettingsHttpResponse, type GetAutomationsUsageMetricsHttpError, type GetAutomationsUsageMetricsHttpResponse, type Links, type MoveAutomationHttpError, type MoveAutomationHttpResponse, type PaginationLink, type QueueAutomationRunHttpError, type QueueAutomationRunHttpResponse, type RetryAutomationRunHttpError, type RetryAutomationRunHttpResponse, type RunDetailRequestObject, type RunDetailResponseObject, type RunList, type RunListObject, type ScheduleRequestObject, type ScheduleResponseObject, type SettingsObject, type StopAutomationRunHttpError, type StopAutomationRunHttpResponse, type UpdateAutomationHttpError, type UpdateAutomationHttpResponse, type UpdateAutomationsSettingsHttpError, type UpdateAutomationsSettingsHttpResponse, type UsageList, type UsageObject, clearCache, copyAutomation, createAutomation, automationsExport as default, deleteAutomation, disableAutomation, enableAutomation, getAutomation, getAutomationRun, getAutomationRunDetails, getAutomationRunWithQuery, getAutomationRuns, getAutomationWithQuery, getAutomations, getAutomationsSettings, getAutomationsUsageMetrics, moveAutomation, queueAutomationRun, retryAutomationRun, stopAutomationRun, updateAutomation, updateAutomationsSettings };
|
package/automations.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
clearApiCache,
|
|
3
3
|
invokeFetch
|
|
4
|
-
} from "./chunks/
|
|
5
|
-
import "./chunks/
|
|
4
|
+
} from "./chunks/S3X62FNR.js";
|
|
5
|
+
import "./chunks/2ZQ3ZX7F.js";
|
|
6
|
+
import "./chunks/I5CSZHWM.js";
|
|
6
7
|
|
|
7
8
|
// src/public/rest/automations.ts
|
|
8
9
|
var getAutomations = async (query, options) => invokeFetch("automations", {
|
|
@@ -42,6 +43,13 @@ var deleteAutomation = async (id, options) => invokeFetch("automations", {
|
|
|
42
43
|
pathVariables: { id },
|
|
43
44
|
options
|
|
44
45
|
});
|
|
46
|
+
var getAutomationWithQuery = async (id, query, options) => invokeFetch("automations", {
|
|
47
|
+
method: "get",
|
|
48
|
+
pathTemplate: "/api/v1/automations/{id}",
|
|
49
|
+
pathVariables: { id },
|
|
50
|
+
query,
|
|
51
|
+
options
|
|
52
|
+
});
|
|
45
53
|
var getAutomation = async (id, options) => invokeFetch("automations", {
|
|
46
54
|
method: "get",
|
|
47
55
|
pathTemplate: "/api/v1/automations/{id}",
|
|
@@ -99,6 +107,13 @@ var queueAutomationRun = async (id, body, options) => invokeFetch("automations",
|
|
|
99
107
|
contentType: "application/json",
|
|
100
108
|
options
|
|
101
109
|
});
|
|
110
|
+
var getAutomationRunWithQuery = async (id, runId, query, options) => invokeFetch("automations", {
|
|
111
|
+
method: "get",
|
|
112
|
+
pathTemplate: "/api/v1/automations/{id}/runs/{runId}",
|
|
113
|
+
pathVariables: { id, runId },
|
|
114
|
+
query,
|
|
115
|
+
options
|
|
116
|
+
});
|
|
102
117
|
var getAutomationRun = async (id, runId, options) => invokeFetch("automations", {
|
|
103
118
|
method: "get",
|
|
104
119
|
pathTemplate: "/api/v1/automations/{id}/runs/{runId}",
|
|
@@ -133,6 +148,7 @@ var automationsExport = {
|
|
|
133
148
|
updateAutomationsSettings,
|
|
134
149
|
getAutomationsUsageMetrics,
|
|
135
150
|
deleteAutomation,
|
|
151
|
+
getAutomationWithQuery,
|
|
136
152
|
getAutomation,
|
|
137
153
|
updateAutomation,
|
|
138
154
|
copyAutomation,
|
|
@@ -141,6 +157,7 @@ var automationsExport = {
|
|
|
141
157
|
moveAutomation,
|
|
142
158
|
getAutomationRuns,
|
|
143
159
|
queueAutomationRun,
|
|
160
|
+
getAutomationRunWithQuery,
|
|
144
161
|
getAutomationRun,
|
|
145
162
|
getAutomationRunDetails,
|
|
146
163
|
retryAutomationRun,
|
|
@@ -159,7 +176,9 @@ export {
|
|
|
159
176
|
getAutomation,
|
|
160
177
|
getAutomationRun,
|
|
161
178
|
getAutomationRunDetails,
|
|
179
|
+
getAutomationRunWithQuery,
|
|
162
180
|
getAutomationRuns,
|
|
181
|
+
getAutomationWithQuery,
|
|
163
182
|
getAutomations,
|
|
164
183
|
getAutomationsSettings,
|
|
165
184
|
getAutomationsUsageMetrics,
|
package/brands.d.ts
CHANGED
package/brands.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
clearApiCache,
|
|
3
3
|
invokeFetch
|
|
4
|
-
} from "./chunks/
|
|
5
|
-
import "./chunks/
|
|
4
|
+
} from "./chunks/S3X62FNR.js";
|
|
5
|
+
import "./chunks/2ZQ3ZX7F.js";
|
|
6
|
+
import "./chunks/I5CSZHWM.js";
|
|
6
7
|
|
|
7
8
|
// src/public/rest/brands.ts
|
|
8
9
|
var getBrands = async (query, options) => invokeFetch("brands", {
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// src/utils/utils.ts
|
|
2
|
+
function isBrowserInternal() {
|
|
3
|
+
if (typeof window !== "undefined" && typeof window.document !== "undefined" && typeof self !== "undefined") {
|
|
4
|
+
return true;
|
|
5
|
+
}
|
|
6
|
+
return false;
|
|
7
|
+
}
|
|
8
|
+
function isNodeInternal() {
|
|
9
|
+
if (typeof process !== "undefined" && process.version && process.versions.node) {
|
|
10
|
+
return true;
|
|
11
|
+
}
|
|
12
|
+
return false;
|
|
13
|
+
}
|
|
14
|
+
function getEnvironment() {
|
|
15
|
+
if (isNodeInternal()) {
|
|
16
|
+
return "node";
|
|
17
|
+
}
|
|
18
|
+
if (isBrowserInternal()) {
|
|
19
|
+
return "browser";
|
|
20
|
+
}
|
|
21
|
+
throw new Error("Environment detection failed. Supported environments are either a browser or in a node environment");
|
|
22
|
+
}
|
|
23
|
+
function isBrowser() {
|
|
24
|
+
return getEnvironment() === "browser";
|
|
25
|
+
}
|
|
26
|
+
function isNode() {
|
|
27
|
+
return getEnvironment() === "node";
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export {
|
|
31
|
+
isBrowser,
|
|
32
|
+
isNode
|
|
33
|
+
};
|
|
@@ -2,10 +2,12 @@ import {
|
|
|
2
2
|
getPlatform,
|
|
3
3
|
handleAuthenticationError,
|
|
4
4
|
invokeFetch,
|
|
5
|
-
isBrowser,
|
|
6
5
|
isWindows,
|
|
7
6
|
toValidWebsocketLocationUrl
|
|
8
|
-
} from "./
|
|
7
|
+
} from "./KSB5ROQL.js";
|
|
8
|
+
import {
|
|
9
|
+
isBrowser
|
|
10
|
+
} from "./2ZQ3ZX7F.js";
|
|
9
11
|
|
|
10
12
|
// src/qix/session/shared-sessions.ts
|
|
11
13
|
var globalEventListeners = /* @__PURE__ */ new Set();
|
|
@@ -99,7 +101,7 @@ function listenForWindowsAuthenticationInformation(session) {
|
|
|
99
101
|
return authSuggestedInWebsocket;
|
|
100
102
|
}
|
|
101
103
|
async function createAndSetupEnigmaSession(props, canRetry) {
|
|
102
|
-
const { createEnigmaSession } = await import("./
|
|
104
|
+
const { createEnigmaSession } = await import("./FFVTXKKA.js");
|
|
103
105
|
const session = await createEnigmaSession(props);
|
|
104
106
|
setupSessionListeners(session, props);
|
|
105
107
|
let global;
|
|
@@ -477,7 +479,7 @@ async function createSessionApp() {
|
|
|
477
479
|
if (!alreadyClosed) {
|
|
478
480
|
alreadyClosed = true;
|
|
479
481
|
const defaultDelay = isBrowserEnvironment ? 5e3 : -1;
|
|
480
|
-
return sharedSession.removeClient(qixSessionAppSession, props?.websocketCloseDelay
|
|
482
|
+
return sharedSession.removeClient(qixSessionAppSession, props?.websocketCloseDelay ?? defaultDelay);
|
|
481
483
|
}
|
|
482
484
|
return Promise.resolve();
|
|
483
485
|
}
|
|
@@ -516,7 +518,7 @@ function openAppSession(appIdOrProps) {
|
|
|
516
518
|
if (!alreadyClosed) {
|
|
517
519
|
alreadyClosed = true;
|
|
518
520
|
const defaultDelay = isBrowserEnvironment ? 5e3 : -1;
|
|
519
|
-
return sharedSession.removeClient(qixAppSession, props?.websocketCloseDelay
|
|
521
|
+
return sharedSession.removeClient(qixAppSession, props?.websocketCloseDelay ?? defaultDelay);
|
|
520
522
|
}
|
|
521
523
|
return Promise.resolve();
|
|
522
524
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// node_modules/.pnpm/@qlik+runtime-module-loader@0.
|
|
1
|
+
// node_modules/.pnpm/@qlik+runtime-module-loader@1.0.3_bufferutil@4.0.8/node_modules/@qlik/runtime-module-loader/dist/index.js
|
|
2
2
|
window.__qlikMainPrivateResolvers = window.__qlikMainPrivateResolvers || {};
|
|
3
3
|
window.__qlikMainPrivateResolvers.mainUrlPromise = window.__qlikMainPrivateResolvers.mainUrlPromise || new Promise((resolve) => {
|
|
4
4
|
window.__qlikMainPrivateResolvers.resolveMainJsUrl = (value) => resolve(value);
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
// src/public/public-runtime-modules.ts
|
|
2
2
|
function getAuthRuntimeModule(hostConfig) {
|
|
3
3
|
const isNode = !!globalThis.process?.argv;
|
|
4
|
-
return isNode ? import("./
|
|
4
|
+
return isNode ? import("./5WSW4QG3.js") : import("./CYO4KHYF.js").then((mod) => mod.importRuntimeModule("auth@v1", hostConfig));
|
|
5
5
|
}
|
|
6
6
|
async function getQixRuntimeModule(hostConfig) {
|
|
7
7
|
await getAuthRuntimeModule(hostConfig);
|
|
8
8
|
const isNode = !!globalThis.process?.argv;
|
|
9
|
-
return isNode ? import("./
|
|
9
|
+
return isNode ? import("./CUE3GZGJ.js") : import("./CYO4KHYF.js").then((mod) => mod.importRuntimeModule("qix@v1", hostConfig));
|
|
10
10
|
}
|
|
11
11
|
async function getInvokeFetchRuntimeModule(hostConfig) {
|
|
12
12
|
await getAuthRuntimeModule(hostConfig);
|
|
13
13
|
const isNode = !!globalThis.process?.argv;
|
|
14
|
-
return isNode ? import("./
|
|
14
|
+
return isNode ? import("./SW3DXPAP.js") : import("./CYO4KHYF.js").then((mod) => mod.importRuntimeModule("invoke-fetch@v1", hostConfig));
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
export {
|