@qlik/api 1.25.0 → 1.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/api-keys.d.ts +1 -1
  2. package/api-keys.js +2 -2
  3. package/apps.d.ts +1 -1
  4. package/apps.js +2 -2
  5. package/audits.d.ts +1 -1
  6. package/audits.js +2 -2
  7. package/auth.js +2 -2
  8. package/automations.d.ts +1 -1
  9. package/automations.js +2 -2
  10. package/brands.d.ts +1 -1
  11. package/brands.js +2 -2
  12. package/chunks/{3DYV7KOJ.js → 2BRBIRM2.js} +2 -2
  13. package/chunks/{7BDAXGID.js → 3RGGGGAR.js} +6 -9
  14. package/chunks/{6DEESTGF.js → 4D5NADHK.js} +4 -4
  15. package/chunks/{OIQ5ELGS.js → 7SNOQCIQ.js} +1 -1
  16. package/chunks/{UA6BE3VB.js → AMO5NATA.js} +2 -2
  17. package/chunks/{BL5PJM4B.js → HGRF5TX3.js} +1 -1
  18. package/chunks/{N3ZFICDU.js → MGXEGSJC.js} +3 -3
  19. package/chunks/{I5UOE4ZZ.js → NBW6PHZU.js} +120 -44
  20. package/chunks/{6QRR5VUM.js → QOOCP2TS.js} +4 -3
  21. package/chunks/{CZC7KEJN.js → UV5COPU3.js} +3 -3
  22. package/collections.d.ts +1 -1
  23. package/collections.js +2 -2
  24. package/csp-origins.d.ts +13 -13
  25. package/csp-origins.js +2 -2
  26. package/data-assets.d.ts +2 -2
  27. package/data-assets.js +2 -2
  28. package/data-connections.d.ts +1 -1
  29. package/data-connections.js +2 -2
  30. package/data-credentials.d.ts +1 -1
  31. package/data-credentials.js +2 -2
  32. package/data-files.d.ts +1 -1
  33. package/data-files.js +2 -2
  34. package/docs/qix.md +28 -8
  35. package/extensions.d.ts +1 -1
  36. package/extensions.js +2 -2
  37. package/glossaries.d.ts +1 -1
  38. package/glossaries.js +2 -2
  39. package/groups.d.ts +1 -1
  40. package/groups.js +2 -2
  41. package/identity-providers.d.ts +28 -3
  42. package/identity-providers.js +2 -2
  43. package/index.d.ts +1 -1
  44. package/index.js +5 -5
  45. package/interceptors.d.ts +1 -1
  46. package/interceptors.js +1 -1
  47. package/{invoke-fetch-types-BLrpeZOL.d.ts → invoke-fetch-types-BXn-uSF5.d.ts} +27 -1
  48. package/items.d.ts +1 -1
  49. package/items.js +2 -2
  50. package/licenses.d.ts +1 -1
  51. package/licenses.js +2 -2
  52. package/package.json +3 -3
  53. package/qix.d.ts +2 -2
  54. package/qix.js +2 -2
  55. package/quotas.d.ts +1 -1
  56. package/quotas.js +2 -2
  57. package/reload-tasks.d.ts +1 -1
  58. package/reload-tasks.js +2 -2
  59. package/reloads.d.ts +1 -1
  60. package/reloads.js +2 -2
  61. package/reports.d.ts +9 -7
  62. package/reports.js +2 -2
  63. package/roles.d.ts +2 -2
  64. package/roles.js +2 -2
  65. package/spaces.d.ts +1 -1
  66. package/spaces.js +2 -2
  67. package/temp-contents.d.ts +1 -1
  68. package/temp-contents.js +2 -2
  69. package/tenants.d.ts +1 -1
  70. package/tenants.js +2 -2
  71. package/themes.d.ts +1 -1
  72. package/themes.js +2 -2
  73. package/transports.d.ts +1 -1
  74. package/transports.js +2 -2
  75. package/users.d.ts +1 -1
  76. package/users.js +2 -2
  77. package/web-integrations.d.ts +1 -1
  78. package/web-integrations.js +2 -2
  79. package/web-notifications.d.ts +1 -1
  80. package/web-notifications.js +2 -2
  81. package/webhooks.d.ts +1 -1
  82. package/webhooks.js +2 -2
package/api-keys.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as ApiCallOptions } from './invoke-fetch-types-BLrpeZOL.js';
1
+ import { A as ApiCallOptions } from './invoke-fetch-types-BXn-uSF5.js';
2
2
  import './auth-types-PkN9CAF_.js';
3
3
 
4
4
  type ApiKey = {
package/api-keys.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/UA6BE3VB.js";
5
- import "./chunks/CZC7KEJN.js";
4
+ } from "./chunks/AMO5NATA.js";
5
+ import "./chunks/UV5COPU3.js";
6
6
  import "./chunks/2ZQ3ZX7F.js";
7
7
 
8
8
  // src/public/rest/api-keys.ts
package/apps.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as ApiCallOptions, D as DownloadableBlob } from './invoke-fetch-types-BLrpeZOL.js';
1
+ import { A as ApiCallOptions, D as DownloadableBlob } from './invoke-fetch-types-BXn-uSF5.js';
2
2
  import './auth-types-PkN9CAF_.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,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/UA6BE3VB.js";
5
- import "./chunks/CZC7KEJN.js";
4
+ } from "./chunks/AMO5NATA.js";
5
+ import "./chunks/UV5COPU3.js";
6
6
  import "./chunks/2ZQ3ZX7F.js";
7
7
 
8
8
  // src/public/rest/apps.ts
package/audits.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as ApiCallOptions } from './invoke-fetch-types-BLrpeZOL.js';
1
+ import { A as ApiCallOptions } from './invoke-fetch-types-BXn-uSF5.js';
2
2
  import './auth-types-PkN9CAF_.js';
3
3
 
4
4
  type ErrorResponse = {
package/audits.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/UA6BE3VB.js";
5
- import "./chunks/CZC7KEJN.js";
4
+ } from "./chunks/AMO5NATA.js";
5
+ import "./chunks/UV5COPU3.js";
6
6
  import "./chunks/2ZQ3ZX7F.js";
7
7
 
8
8
  // src/public/rest/audits.ts
package/auth.js CHANGED
@@ -4,8 +4,8 @@ import {
4
4
  logout,
5
5
  registerAuthModule,
6
6
  setDefaultHostConfig
7
- } from "./chunks/BL5PJM4B.js";
8
- import "./chunks/CZC7KEJN.js";
7
+ } from "./chunks/HGRF5TX3.js";
8
+ import "./chunks/UV5COPU3.js";
9
9
  export {
10
10
  auth_default as default,
11
11
  getAccessToken,
package/automations.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as ApiCallOptions } from './invoke-fetch-types-BLrpeZOL.js';
1
+ import { A as ApiCallOptions } from './invoke-fetch-types-BXn-uSF5.js';
2
2
  import './auth-types-PkN9CAF_.js';
3
3
 
4
4
  type AutomationDetailRequestObject = {
package/automations.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/UA6BE3VB.js";
5
- import "./chunks/CZC7KEJN.js";
4
+ } from "./chunks/AMO5NATA.js";
5
+ import "./chunks/UV5COPU3.js";
6
6
  import "./chunks/2ZQ3ZX7F.js";
7
7
 
8
8
  // src/public/rest/automations.ts
package/brands.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as ApiCallOptions, D as DownloadableBlob } from './invoke-fetch-types-BLrpeZOL.js';
1
+ import { A as ApiCallOptions, D as DownloadableBlob } from './invoke-fetch-types-BXn-uSF5.js';
2
2
  import './auth-types-PkN9CAF_.js';
3
3
 
4
4
  /**
package/brands.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/UA6BE3VB.js";
5
- import "./chunks/CZC7KEJN.js";
4
+ } from "./chunks/AMO5NATA.js";
5
+ import "./chunks/UV5COPU3.js";
6
6
  import "./chunks/2ZQ3ZX7F.js";
7
7
 
8
8
  // src/public/rest/brands.ts
@@ -5,8 +5,8 @@ import {
5
5
  invokeFetch,
6
6
  invoke_fetch_default,
7
7
  parseFetchResponse
8
- } from "./I5UOE4ZZ.js";
9
- import "./7BDAXGID.js";
8
+ } from "./NBW6PHZU.js";
9
+ import "./3RGGGGAR.js";
10
10
  import "./2ZQ3ZX7F.js";
11
11
  export {
12
12
  EncodingError,
@@ -51,15 +51,12 @@ function addDefaultInterceptors() {
51
51
  return {};
52
52
  }
53
53
  const features = featuresParam.split(",").map((item) => item.trim());
54
- const urlFeatures = features.reduce(
55
- (map, obj) => {
56
- const value = !obj.startsWith("!");
57
- const key = value ? obj : obj.substring(1);
58
- map[key] = value;
59
- return map;
60
- },
61
- {}
62
- );
54
+ const urlFeatures = features.reduce((map, obj) => {
55
+ const value = !obj.startsWith("!");
56
+ const key = value ? obj : obj.substring(1);
57
+ map[key] = value;
58
+ return map;
59
+ }, {});
63
60
  return urlFeatures;
64
61
  };
65
62
  const readFlagsFromLocalStorage = () => {
@@ -5,6 +5,7 @@ import {
5
5
  UnexpectedAuthTypeError,
6
6
  auth_default,
7
7
  checkForCrossDomainRequest,
8
+ determineAuthType,
8
9
  getAccessToken,
9
10
  getRestCallAuthParams,
10
11
  getWebResourceAuthParams,
@@ -16,11 +17,10 @@ import {
16
17
  registerAuthModule,
17
18
  serializeHostConfig,
18
19
  setDefaultHostConfig,
19
- toValidEnigmaLocationUrl,
20
20
  toValidLocationUrl,
21
21
  toValidWebsocketLocationUrl
22
- } from "./I5UOE4ZZ.js";
23
- import "./7BDAXGID.js";
22
+ } from "./NBW6PHZU.js";
23
+ import "./3RGGGGAR.js";
24
24
  import "./2ZQ3ZX7F.js";
25
25
  export {
26
26
  AuthorizationError,
@@ -29,6 +29,7 @@ export {
29
29
  UnexpectedAuthTypeError,
30
30
  checkForCrossDomainRequest,
31
31
  auth_default as default,
32
+ determineAuthType,
32
33
  getAccessToken,
33
34
  getRestCallAuthParams,
34
35
  getWebResourceAuthParams,
@@ -40,7 +41,6 @@ export {
40
41
  registerAuthModule,
41
42
  serializeHostConfig,
42
43
  setDefaultHostConfig,
43
- toValidEnigmaLocationUrl,
44
44
  toValidLocationUrl,
45
45
  toValidWebsocketLocationUrl
46
46
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getQixRuntimeModule
3
- } from "./CZC7KEJN.js";
3
+ } from "./UV5COPU3.js";
4
4
 
5
5
  // src/public/qix.ts
6
6
  function openAppSession(appSessionProps) {
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  getInvokeFetchRuntimeModule
3
- } from "./CZC7KEJN.js";
3
+ } from "./UV5COPU3.js";
4
4
  import {
5
5
  isBrowser
6
6
  } from "./2ZQ3ZX7F.js";
7
7
 
8
8
  // src/public/invoke-fetch.ts
9
- var defaultUserAgent = "qlik-api/1.25.0";
9
+ var defaultUserAgent = "qlik-api/1.26.0";
10
10
  async function invokeFetch(api, props) {
11
11
  const hostConfig = props.options?.hostConfig;
12
12
  let userAgent;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getAuthRuntimeModule
3
- } from "./CZC7KEJN.js";
3
+ } from "./UV5COPU3.js";
4
4
 
5
5
  // src/public/auth.ts
6
6
  function registerAuthModule(name, authModule) {
@@ -4,8 +4,8 @@ import {
4
4
  invokeFetch,
5
5
  isWindows,
6
6
  toValidWebsocketLocationUrl
7
- } from "./I5UOE4ZZ.js";
8
- import "./7BDAXGID.js";
7
+ } from "./NBW6PHZU.js";
8
+ import "./3RGGGGAR.js";
9
9
  import {
10
10
  isBrowser
11
11
  } from "./2ZQ3ZX7F.js";
@@ -161,7 +161,7 @@ function listenForWindowsAuthenticationInformation(session) {
161
161
  return authSuggestedInWebsocket;
162
162
  }
163
163
  async function createAndSetupEnigmaSession(props, canRetry) {
164
- const { createEnigmaSession } = await import("./6QRR5VUM.js");
164
+ const { createEnigmaSession } = await import("./QOOCP2TS.js");
165
165
  const session = await createEnigmaSession(props);
166
166
  setupSessionListeners(session, props);
167
167
  let global;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getInterceptors
3
- } from "./7BDAXGID.js";
3
+ } from "./3RGGGGAR.js";
4
4
  import {
5
5
  isBrowser,
6
6
  isNode
@@ -27,6 +27,12 @@ var getPlatform = async (options = {}) => {
27
27
  if (deploymentType === "qliksensedesktop") {
28
28
  return result({ isQSD: true, isWindows: true });
29
29
  }
30
+ if (deploymentType === "qliksensemobile") {
31
+ return result({ isQSE: true, isWindows: true });
32
+ }
33
+ if (deploymentType === "cloud-console") {
34
+ return result({ isCloud: true, isCloudConsole: true });
35
+ }
30
36
  if (productInfo.composition?.provider === "fedramp") {
31
37
  return result({ isCloud: true, isQCG: true, isControlCenter });
32
38
  }
@@ -58,7 +64,7 @@ var getProductInfo = async ({ hostConfig, noCache } = {}) => {
58
64
  delete productInfoPromises[completeUrl];
59
65
  }
60
66
  return response;
61
- } catch (err) {
67
+ } catch {
62
68
  delete productInfoPromises[completeUrl];
63
69
  return { data: void 0, status: 500 };
64
70
  } finally {
@@ -72,6 +78,7 @@ var result = (data) => ({
72
78
  isCloud: false,
73
79
  isQCS: false,
74
80
  isQCG: false,
81
+ isCloudConsole: false,
75
82
  isControlCenter: false,
76
83
  isWindows: false,
77
84
  isQSE: false,
@@ -106,7 +113,7 @@ function getRegisteredAuthModule(authType) {
106
113
  }
107
114
  async function getAuthModule(hostConfig) {
108
115
  const hostConfigToUse = withDefaultHostConfig(hostConfig);
109
- const authType = await guessAuthTypeIfMissing(hostConfigToUse);
116
+ const authType = await determineAuthType(hostConfigToUse);
110
117
  if (ongoingAuthModuleLoading) {
111
118
  await ongoingAuthModuleLoading;
112
119
  }
@@ -128,27 +135,6 @@ async function getAuthModule(hostConfig) {
128
135
  }
129
136
  return authModule;
130
137
  }
131
- async function guessAuthTypeIfMissing(hostConfig) {
132
- if (hostConfig.authType) {
133
- return hostConfig.authType;
134
- }
135
- if (hostConfig.apiKey) {
136
- return "apikey";
137
- }
138
- if (hostConfig.accessCode) {
139
- return "anonymous";
140
- }
141
- if (hostConfig.clientId) {
142
- return "oauth2";
143
- }
144
- if (hostConfig.webIntegrationId) {
145
- return "cookie";
146
- }
147
- if (await isWindows(hostConfig)) {
148
- return "windowscookie";
149
- }
150
- return "cookie";
151
- }
152
138
  async function resolveGloballyDefinedAuthModule(authType) {
153
139
  const globalWindow = globalThis;
154
140
  const globalVariable = globalWindow[authType];
@@ -258,9 +244,6 @@ function toValidLocationUrl(hostConfig) {
258
244
  }
259
245
  return locationUrl;
260
246
  }
261
- function toValidEnigmaLocationUrl(hostConfig) {
262
- return toValidWebsocketLocationUrl(hostConfig);
263
- }
264
247
  function toValidWebsocketLocationUrl(hostConfig) {
265
248
  const url = withDefaultHostConfig(hostConfig)?.host;
266
249
  let locationUrl;
@@ -348,6 +331,27 @@ function serializeHostConfig(hostConfig) {
348
331
  const hostConfigToUse = withDefaultHostConfig(hostConfig);
349
332
  return JSON.stringify(hostConfigToUse, hostConfigPropertyIgnorer);
350
333
  }
334
+ async function determineAuthType(hostConfig) {
335
+ if (hostConfig.authType) {
336
+ return hostConfig.authType;
337
+ }
338
+ if (hostConfig.apiKey) {
339
+ return "apikey";
340
+ }
341
+ if (hostConfig.accessCode) {
342
+ return "anonymous";
343
+ }
344
+ if (hostConfig.clientId) {
345
+ return "oauth2";
346
+ }
347
+ if (hostConfig.webIntegrationId) {
348
+ return "cookie";
349
+ }
350
+ if (await isWindows(hostConfig)) {
351
+ return "windowscookie";
352
+ }
353
+ return "cookie";
354
+ }
351
355
  function checkForCrossDomainRequest(hostConfig) {
352
356
  const hostConfigToUse = withDefaultHostConfig(hostConfig);
353
357
  if (isHostCrossOrigin(hostConfigToUse)) {
@@ -445,7 +449,7 @@ function internalValidateHostConfig(hostConfig, options) {
445
449
  // src/auth/internal/default-auth-modules/oauth/storage-helpers.ts
446
450
  var storagePrefix = "qlik-qmfe-api";
447
451
  function getTopicFromOauthHostConfig(hostConfig) {
448
- let topic = `${hostConfig.clientId + (hostConfig.scope ? `_${hostConfig.scope}` : "_user_default")}`;
452
+ let topic = hostConfig.clientId + (hostConfig.scope ? `_${hostConfig.scope}` : "_user_default");
449
453
  if (hostConfig.subject) {
450
454
  topic += `_${hostConfig.subject}`;
451
455
  }
@@ -804,7 +808,7 @@ async function getOAuthTokensForBrowser(hostConfig) {
804
808
  refreshToken: void 0,
805
809
  errors: void 0
806
810
  };
807
- } catch (error) {
811
+ } catch {
808
812
  return errorMessageToAuthData("Could not fetch access token using custom function");
809
813
  }
810
814
  }
@@ -846,7 +850,6 @@ async function getOAuthTokensForBrowser(hostConfig) {
846
850
  code: "",
847
851
  status: 401,
848
852
  title: "Could not perform custom interactive login",
849
- // eslint-disable-next-line @typescript-eslint/restrict-template-expressions
850
853
  detail: `${error}`
851
854
  }
852
855
  ]
@@ -977,7 +980,7 @@ async function toError(response) {
977
980
  try {
978
981
  const data = JSON.parse(body);
979
982
  return new AuthorizationError(data.errors);
980
- } catch (err) {
983
+ } catch {
981
984
  return new AuthorizationError([
982
985
  {
983
986
  code: "unknown",
@@ -1489,10 +1492,11 @@ var auth = {
1489
1492
  getWebResourceAuthParams,
1490
1493
  handleAuthenticationError,
1491
1494
  toValidLocationUrl,
1492
- toValidEnigmaLocationUrl,
1493
1495
  toValidWebsocketLocationUrl,
1494
1496
  isWindows,
1495
- isHostCrossOrigin
1497
+ isHostCrossOrigin,
1498
+ determineAuthType,
1499
+ serializeHostConfig
1496
1500
  };
1497
1501
  var auth_default = auth;
1498
1502
 
@@ -1543,7 +1547,7 @@ function toCompleteUrl(url, query) {
1543
1547
  return url;
1544
1548
  }
1545
1549
  function shouldUseCachedResult(options, cacheEntry, defaultMaxCacheTime) {
1546
- if (!cacheEntry || typeof cacheEntry.value === void 0) {
1550
+ if (!cacheEntry || typeof cacheEntry.value === "undefined") {
1547
1551
  return false;
1548
1552
  }
1549
1553
  if (options?.noCache) {
@@ -1624,6 +1628,73 @@ function clearCacheOnError(cacheEntry, cacheKey, value) {
1624
1628
  });
1625
1629
  }
1626
1630
 
1631
+ // src/invoke-fetch/internal/invoke-xhr.ts
1632
+ async function invokeXHR(completeUrl, { method, headers, credentials, keepalive, body, signal, progress }) {
1633
+ const xhr = new XMLHttpRequest();
1634
+ let resolve;
1635
+ let reject;
1636
+ const promise = new Promise((res, rej) => {
1637
+ resolve = res;
1638
+ reject = rej;
1639
+ });
1640
+ xhr.open(method || "GET", completeUrl);
1641
+ if (typeof headers === "object") {
1642
+ for (const [key, value] of Object.entries(headers)) {
1643
+ xhr.setRequestHeader(key, value);
1644
+ }
1645
+ } else {
1646
+ throw Error("malformed headers", headers);
1647
+ }
1648
+ if (keepalive) {
1649
+ xhr.setRequestHeader("Connection", "keep-alive");
1650
+ }
1651
+ if (signal) {
1652
+ signal.addEventListener("abort", () => {
1653
+ xhr.abort();
1654
+ reject();
1655
+ });
1656
+ }
1657
+ if (credentials === "include") {
1658
+ xhr.withCredentials = true;
1659
+ } else {
1660
+ xhr.withCredentials = false;
1661
+ }
1662
+ if (progress?.onUpload) {
1663
+ xhr.upload.onprogress = (event) => {
1664
+ const { loaded, total, lengthComputable } = event;
1665
+ progress.onUpload?.({ loaded, total: lengthComputable ? total : void 0 });
1666
+ };
1667
+ }
1668
+ if (progress?.onDownload) {
1669
+ xhr.onprogress = (event) => {
1670
+ const { loaded, total, lengthComputable } = event;
1671
+ progress.onDownload?.({ loaded, total: lengthComputable ? total : void 0 });
1672
+ };
1673
+ }
1674
+ xhr.onloadend = () => {
1675
+ const { status } = xhr;
1676
+ const responseHeaders = {};
1677
+ for (const line of xhr.getAllResponseHeaders().split("\r\n")) {
1678
+ const [key, value] = line.split(":", 2);
1679
+ if (key && value) {
1680
+ responseHeaders[key] = value;
1681
+ }
1682
+ }
1683
+ if (xhr.response) {
1684
+ resolve(new Response(xhr.response, { status, headers: responseHeaders }));
1685
+ } else {
1686
+ resolve(new Response(void 0, { status, headers: responseHeaders }));
1687
+ }
1688
+ };
1689
+ try {
1690
+ const bod = body;
1691
+ xhr.send(bod);
1692
+ } catch (e) {
1693
+ return Promise.reject(new InvokeFetchError(getErrorMessage(e), 0, new Headers(), {}));
1694
+ }
1695
+ return promise;
1696
+ }
1697
+
1627
1698
  // src/invoke-fetch/internal/invoke-fetch-methods.ts
1628
1699
  var defaultCacheTime = 1e3 * 60 * 10;
1629
1700
  var cache = {};
@@ -1647,7 +1718,7 @@ async function fetchAndTransformExceptions(input, init) {
1647
1718
  try {
1648
1719
  return await fetch(input, init);
1649
1720
  } catch (e) {
1650
- return Promise.reject(new InvokeFetchError2(getErrorMessage(e), 0, new Headers(), {}));
1721
+ return Promise.reject(new InvokeFetchError(getErrorMessage(e), 0, new Headers(), {}));
1651
1722
  }
1652
1723
  }
1653
1724
  async function performActualHttpFetch(method, completeUrl, unencodedBody, contentType, options, authHeaders, credentials, userAgent) {
@@ -1661,14 +1732,14 @@ async function performActualHttpFetch(method, completeUrl, unencodedBody, conten
1661
1732
  if (!headers["User-Agent"] && userAgent) {
1662
1733
  headers["User-Agent"] = userAgent;
1663
1734
  }
1664
- const isCrossOrigin = isHostCrossOrigin(options?.hostConfig);
1665
1735
  const request = {
1666
1736
  method,
1667
1737
  credentials,
1668
- mode: isCrossOrigin ? "cors" : "same-origin",
1738
+ mode: "cors",
1669
1739
  headers,
1670
1740
  redirect: await isWindows(options?.hostConfig) ? "manual" : "follow",
1671
1741
  keepalive: options?.keepalive,
1742
+ progress: options?.progress,
1672
1743
  body,
1673
1744
  // body data type must match "Content-Type" header
1674
1745
  ...requestOptions
@@ -1684,11 +1755,16 @@ async function performActualHttpFetch(method, completeUrl, unencodedBody, conten
1684
1755
  }, options.timeoutMs);
1685
1756
  request.signal = controller.signal;
1686
1757
  }
1687
- const fetchResponse = await fetchAndTransformExceptions(completeUrl, request);
1758
+ let response;
1759
+ if (options?.progress) {
1760
+ response = await invokeXHR(completeUrl, request);
1761
+ } else {
1762
+ response = await fetchAndTransformExceptions(completeUrl, request);
1763
+ }
1688
1764
  if (fetchTimeoutId) {
1689
1765
  clearTimeout(fetchTimeoutId);
1690
1766
  }
1691
- const invokeFetchResponse = await parseFetchResponse(fetchResponse, completeUrl);
1767
+ const invokeFetchResponse = await parseFetchResponse(response, completeUrl);
1692
1768
  return invokeFetchResponse;
1693
1769
  }
1694
1770
  function encodeBody(unencodedBody, contentType) {
@@ -1981,7 +2057,7 @@ async function download(blob, filename) {
1981
2057
  }
1982
2058
 
1983
2059
  // src/invoke-fetch/invoke-fetch-error.ts
1984
- var InvokeFetchError2 = class extends Error {
2060
+ var InvokeFetchError = class extends Error {
1985
2061
  status;
1986
2062
  headers;
1987
2063
  data;
@@ -2102,10 +2178,10 @@ async function parseFetchResponse(fetchResponse, url) {
2102
2178
  const { status, statusText, headers } = fetchResponse;
2103
2179
  const errorMsg = `request to '${url}' failed with status ${status} ${statusText}.`;
2104
2180
  if (status >= 300) {
2105
- throw new InvokeFetchError2(errorMsg, status, headers, resultData);
2181
+ throw new InvokeFetchError(errorMsg, status, headers, resultData);
2106
2182
  }
2107
2183
  if (status === 0) {
2108
- throw new InvokeFetchError2(errorMsg, 302, headers, resultData);
2184
+ throw new InvokeFetchError(errorMsg, 302, headers, resultData);
2109
2185
  }
2110
2186
  const invokeFetchResponse = {
2111
2187
  status,
@@ -2132,7 +2208,6 @@ export {
2132
2208
  isHostCrossOrigin,
2133
2209
  isWindows,
2134
2210
  toValidLocationUrl,
2135
- toValidEnigmaLocationUrl,
2136
2211
  toValidWebsocketLocationUrl,
2137
2212
  getWebSocketAuthParams,
2138
2213
  getWebResourceAuthParams,
@@ -2142,10 +2217,11 @@ export {
2142
2217
  registerAuthModule2 as registerAuthModule,
2143
2218
  setDefaultHostConfig2 as setDefaultHostConfig,
2144
2219
  serializeHostConfig,
2220
+ determineAuthType,
2145
2221
  checkForCrossDomainRequest,
2146
2222
  logout,
2147
2223
  generateRandomString,
2148
- InvokeFetchError2 as InvokeFetchError,
2224
+ InvokeFetchError,
2149
2225
  EncodingError,
2150
2226
  invokeFetch,
2151
2227
  clearApiCache,
@@ -3,8 +3,8 @@ import {
3
3
  getRestCallAuthParams,
4
4
  getWebSocketAuthParams,
5
5
  toValidWebsocketLocationUrl
6
- } from "./I5UOE4ZZ.js";
7
- import "./7BDAXGID.js";
6
+ } from "./NBW6PHZU.js";
7
+ import "./3RGGGGAR.js";
8
8
  import {
9
9
  isNode
10
10
  } from "./2ZQ3ZX7F.js";
@@ -9723,7 +9723,8 @@ var bookmarkListProps = {
9723
9723
  description: "/qMetaDef/description",
9724
9724
  sheetId: "/sheetId",
9725
9725
  selectionFields: "/selectionFields",
9726
- creationDate: "/creationDate"
9726
+ creationDate: "/creationDate",
9727
+ groupId: "/groupId"
9727
9728
  }
9728
9729
  }
9729
9730
  };
@@ -1,21 +1,21 @@
1
1
  // src/public/public-runtime-modules.ts
2
2
  function getAuthRuntimeModule(hostConfig) {
3
3
  const isNode = !!globalThis.process?.argv;
4
- return isNode ? import("./6DEESTGF.js") : import("./VX3MQBE7.js").then(
4
+ return isNode ? import("./4D5NADHK.js") : import("./VX3MQBE7.js").then(
5
5
  (mod) => mod.importRuntimeModule("auth@v1", hostConfig)
6
6
  );
7
7
  }
8
8
  async function getQixRuntimeModule(hostConfig) {
9
9
  await getAuthRuntimeModule(hostConfig);
10
10
  const isNode = !!globalThis.process?.argv;
11
- return isNode ? import("./N3ZFICDU.js") : import("./VX3MQBE7.js").then(
11
+ return isNode ? import("./MGXEGSJC.js") : import("./VX3MQBE7.js").then(
12
12
  (mod) => mod.importRuntimeModule("qix@v1", hostConfig)
13
13
  );
14
14
  }
15
15
  async function getInvokeFetchRuntimeModule(hostConfig) {
16
16
  await getAuthRuntimeModule(hostConfig);
17
17
  const isNode = !!globalThis.process?.argv;
18
- return isNode ? import("./3DYV7KOJ.js") : import("./VX3MQBE7.js").then(
18
+ return isNode ? import("./2BRBIRM2.js") : import("./VX3MQBE7.js").then(
19
19
  (mod) => mod.importRuntimeModule("invoke-fetch@v1", hostConfig)
20
20
  );
21
21
  }
package/collections.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as ApiCallOptions } from './invoke-fetch-types-BLrpeZOL.js';
1
+ import { A as ApiCallOptions } from './invoke-fetch-types-BXn-uSF5.js';
2
2
  import './auth-types-PkN9CAF_.js';
3
3
 
4
4
  type CollectionByIdPatch = {
package/collections.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/UA6BE3VB.js";
5
- import "./chunks/CZC7KEJN.js";
4
+ } from "./chunks/AMO5NATA.js";
5
+ import "./chunks/UV5COPU3.js";
6
6
  import "./chunks/2ZQ3ZX7F.js";
7
7
 
8
8
  // src/public/rest/collections.ts