@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.
Files changed (73) hide show
  1. package/api-keys.d.ts +20 -0
  2. package/api-keys.js +2 -2
  3. package/apps.d.ts +123 -4
  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 +49 -37
  9. package/automations.js +2 -2
  10. package/brands.js +2 -2
  11. package/chunks/{5MRIMVKS.js → F5UDCCRD.js} +17 -20
  12. package/chunks/{QOOCP2TS.js → FKCZFVJL.js} +1 -1
  13. package/chunks/{NBW6PHZU.js → G6QUM5WQ.js} +27 -6
  14. package/chunks/{5XNSGPGZ.js → IQBP2PKS.js} +1 -1
  15. package/chunks/{2BRBIRM2.js → JIX6RMFP.js} +1 -1
  16. package/chunks/{4D5NADHK.js → OTTC4QSX.js} +1 -1
  17. package/chunks/{WQYEWU54.js → PTDXR7AY.js} +2 -2
  18. package/chunks/{KYCIMQ4L.js → QK4TMJ64.js} +1 -1
  19. package/chunks/{MGXEGSJC.js → QWQLGDMI.js} +2 -2
  20. package/chunks/{2B7YWDQC.js → TXC5XORK.js} +3 -3
  21. package/collections.d.ts +1 -1
  22. package/collections.js +2 -2
  23. package/csp-origins.js +2 -2
  24. package/data-assets.d.ts +1 -1
  25. package/data-assets.js +2 -2
  26. package/data-connections.d.ts +83 -1
  27. package/data-connections.js +2 -2
  28. package/data-credentials.d.ts +28 -0
  29. package/data-credentials.js +2 -2
  30. package/data-files.d.ts +90 -0
  31. package/data-files.js +2 -2
  32. package/extensions.js +2 -2
  33. package/glossaries.d.ts +34 -14
  34. package/glossaries.js +2 -2
  35. package/groups.d.ts +70 -0
  36. package/groups.js +2 -2
  37. package/identity-providers.js +2 -2
  38. package/index.d.ts +6 -2
  39. package/index.js +33 -4
  40. package/items.d.ts +1 -1
  41. package/items.js +2 -2
  42. package/licenses.d.ts +191 -0
  43. package/licenses.js +2 -2
  44. package/oauth-clients.d.ts +516 -0
  45. package/oauth-clients.js +112 -0
  46. package/package.json +5 -4
  47. package/qix.d.ts +19 -3
  48. package/qix.js +2 -2
  49. package/quotas.js +2 -2
  50. package/reload-tasks.d.ts +20 -0
  51. package/reload-tasks.js +2 -2
  52. package/reloads.d.ts +41 -10
  53. package/reloads.js +2 -2
  54. package/reports.d.ts +159 -17
  55. package/reports.js +2 -2
  56. package/roles.d.ts +42 -2
  57. package/roles.js +2 -2
  58. package/spaces.d.ts +225 -38
  59. package/spaces.js +47 -2
  60. package/temp-contents.js +2 -2
  61. package/tenants.d.ts +47 -1
  62. package/tenants.js +2 -2
  63. package/themes.js +2 -2
  64. package/transports.d.ts +9 -0
  65. package/transports.js +2 -2
  66. package/users.d.ts +88 -0
  67. package/users.js +2 -2
  68. package/web-integrations.d.ts +20 -0
  69. package/web-integrations.js +2 -2
  70. package/web-notifications.d.ts +19 -0
  71. package/web-notifications.js +2 -2
  72. package/webhooks.d.ts +3 -3
  73. package/webhooks.js +2 -2
@@ -1,4 +1,4 @@
1
- // node_modules/.pnpm/@qlik+runtime-module-loader@1.0.17/node_modules/@qlik/runtime-module-loader/dist/index.js
1
+ // node_modules/.pnpm/@qlik+runtime-module-loader@1.0.20/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);
@@ -7,22 +7,27 @@ window.__qlikMainPrivateResolvers.qlikMainPromise = window.__qlikMainPrivateReso
7
7
  if (window.QlikMain) {
8
8
  return window.QlikMain;
9
9
  }
10
+ const noHostWarningTimer = setTimeout(() => {
11
+ console.warn("Waiting for a host parameter pointing to a Qlik runtime system");
12
+ }, 5e3);
10
13
  const url = await window.__qlikMainPrivateResolvers.mainUrlPromise;
14
+ clearTimeout(noHostWarningTimer);
11
15
  return new Promise((resolve) => {
12
16
  if (window.QlikMain) {
13
17
  resolve(window.QlikMain);
18
+ } else {
19
+ const script = window.document.createElement("script");
20
+ script.src = url;
21
+ script.addEventListener("error", () => {
22
+ console.error(`Qlik runtime system not found: ${url}`);
23
+ });
24
+ script.addEventListener("load", () => {
25
+ if (window.QlikMain) {
26
+ resolve(window.QlikMain);
27
+ }
28
+ });
29
+ window.document.head.appendChild(script);
14
30
  }
15
- const script = window.document.createElement("script");
16
- script.src = url;
17
- script.addEventListener("error", () => {
18
- console.error(`Qlik runtime system not found: ${url}`);
19
- });
20
- script.addEventListener("load", () => {
21
- if (window.QlikMain) {
22
- resolve(window.QlikMain);
23
- }
24
- });
25
- window.document.head.appendChild(script);
26
31
  });
27
32
  })();
28
33
  function provideHostConfigForMainJsUrl(hostConfig) {
@@ -30,9 +35,6 @@ function provideHostConfigForMainJsUrl(hostConfig) {
30
35
  function toMainJsUrl(hc) {
31
36
  const url = hc?.embedRuntimeUrl || hc?.url || hc?.host;
32
37
  if (!url) {
33
- window.__qlikMainPrivateResolvers.noHostWarningTimer = setTimeout(() => {
34
- console.warn("Waiting for a host parameter pointing to a Qlik runtime system");
35
- }, 5e3);
36
38
  return void 0;
37
39
  }
38
40
  let locationUrl;
@@ -46,11 +48,6 @@ function provideHostConfigForMainJsUrl(hostConfig) {
46
48
  }
47
49
  const potentialMainJsUrl = toMainJsUrl(hostConfig);
48
50
  if (potentialMainJsUrl) {
49
- const warningTimer = window.__qlikMainPrivateResolvers.noHostWarningTimer;
50
- if (warningTimer) {
51
- window.__qlikMainPrivateResolvers.noHostWarningTimer = void 0;
52
- clearTimeout(warningTimer);
53
- }
54
51
  window.__qlikMainPrivateResolvers.resolveMainJsUrl(potentialMainJsUrl);
55
52
  }
56
53
  }
@@ -3,7 +3,7 @@ import {
3
3
  getRestCallAuthParams,
4
4
  getWebSocketAuthParams,
5
5
  toValidWebsocketLocationUrl
6
- } from "./NBW6PHZU.js";
6
+ } from "./G6QUM5WQ.js";
7
7
  import "./3RGGGGAR.js";
8
8
  import {
9
9
  isNode
@@ -22,21 +22,21 @@ var getPlatform = async (options = {}) => {
22
22
  const deploymentType = (productInfo.composition?.deploymentType || "").toLowerCase();
23
23
  const isControlCenter = deploymentType === "controlcenter";
24
24
  if (deploymentType === "qliksenseserver") {
25
- return result({ isQSE: true, isWindows: true });
25
+ return result({ isQSE: true, isWindows: true, meta: extractMeta(productInfo) });
26
26
  }
27
27
  if (deploymentType === "qliksensedesktop") {
28
- return result({ isQSD: true, isWindows: true });
28
+ return result({ isQSD: true, isWindows: true, meta: extractMeta(productInfo) });
29
29
  }
30
30
  if (deploymentType === "qliksensemobile") {
31
- return result({ isQSE: true, isWindows: true });
31
+ return result({ isQSE: true, isWindows: true, meta: extractMeta(productInfo) });
32
32
  }
33
33
  if (deploymentType === "cloud-console") {
34
- return result({ isCloud: true, isCloudConsole: true });
34
+ return result({ isCloud: true, isCloudConsole: true, meta: extractMeta(productInfo) });
35
35
  }
36
36
  if (productInfo.composition?.provider === "fedramp") {
37
- return result({ isCloud: true, isQCG: true, isControlCenter });
37
+ return result({ isCloud: true, isQCG: true, isControlCenter, meta: extractMeta(productInfo) });
38
38
  }
39
- return result({ isCloud: true, isQCS: true, isControlCenter });
39
+ return result({ isCloud: true, isQCS: true, isControlCenter, meta: extractMeta(productInfo) });
40
40
  };
41
41
  var productInfoPromises = {};
42
42
  function templateUrl(baseUrl) {
@@ -73,6 +73,27 @@ var getProductInfo = async ({ hostConfig, noCache } = {}) => {
73
73
  }
74
74
  }
75
75
  };
76
+ var extractMeta = (data) => {
77
+ const urls = data.externalUrls;
78
+ if (!urls) {
79
+ return void 0;
80
+ }
81
+ const productName = data.composition?.productName ?? "Qlik";
82
+ const releaseLabel = data.composition?.releaseLabel || "-";
83
+ const productLabel = releaseLabel === "-" ? productName : `${productName} (${releaseLabel})`;
84
+ return {
85
+ productId: data.composition?.senseId ?? "qlik",
86
+ productLabel,
87
+ version: data.composition?.version,
88
+ urls: {
89
+ personalHelpBaseUrl: urls.personalHelpBaseUrl,
90
+ personalUpgradeBase: urls.personalUpgradeBase,
91
+ personalUpgradeUrl: urls.personalUpgradeUrl,
92
+ serverHelpBaseUrl: urls.serverHelpBaseUrl,
93
+ qlikWebPageUrl: urls.qlikWebPageUrl
94
+ }
95
+ };
96
+ };
76
97
  var result = (data) => ({
77
98
  isNodeEnv: false,
78
99
  isCloud: false,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getQixRuntimeModule
3
- } from "./2B7YWDQC.js";
3
+ } from "./TXC5XORK.js";
4
4
 
5
5
  // src/public/qix.ts
6
6
  function openAppSession(appSessionProps) {
@@ -5,7 +5,7 @@ import {
5
5
  invokeFetch,
6
6
  invoke_fetch_default,
7
7
  parseFetchResponse
8
- } from "./NBW6PHZU.js";
8
+ } from "./G6QUM5WQ.js";
9
9
  import "./3RGGGGAR.js";
10
10
  import "./2ZQ3ZX7F.js";
11
11
  export {
@@ -19,7 +19,7 @@ import {
19
19
  setDefaultHostConfig,
20
20
  toValidLocationUrl,
21
21
  toValidWebsocketLocationUrl
22
- } from "./NBW6PHZU.js";
22
+ } from "./G6QUM5WQ.js";
23
23
  import "./3RGGGGAR.js";
24
24
  import "./2ZQ3ZX7F.js";
25
25
  export {
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  getInvokeFetchRuntimeModule
3
- } from "./2B7YWDQC.js";
3
+ } from "./TXC5XORK.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.28.0";
9
+ var defaultUserAgent = "qlik-api/1.30.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 "./2B7YWDQC.js";
3
+ } from "./TXC5XORK.js";
4
4
 
5
5
  // src/public/auth.ts
6
6
  function registerAuthModule(name, authModule) {
@@ -4,7 +4,7 @@ import {
4
4
  invokeFetch,
5
5
  isWindows,
6
6
  toValidWebsocketLocationUrl
7
- } from "./NBW6PHZU.js";
7
+ } from "./G6QUM5WQ.js";
8
8
  import "./3RGGGGAR.js";
9
9
  import {
10
10
  isBrowser
@@ -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("./QOOCP2TS.js");
164
+ const { createEnigmaSession } = await import("./FKCZFVJL.js");
165
165
  const session = await createEnigmaSession(props);
166
166
  setupSessionListeners(session, props);
167
167
  let global;
@@ -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("./4D5NADHK.js") : import("./5MRIMVKS.js").then(
4
+ return isNode ? import("./OTTC4QSX.js") : import("./F5UDCCRD.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("./MGXEGSJC.js") : import("./5MRIMVKS.js").then(
11
+ return isNode ? import("./QWQLGDMI.js") : import("./F5UDCCRD.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("./2BRBIRM2.js") : import("./5MRIMVKS.js").then(
18
+ return isNode ? import("./JIX6RMFP.js") : import("./F5UDCCRD.js").then(
19
19
  (mod) => mod.importRuntimeModule("invoke-fetch@v1", hostConfig)
20
20
  );
21
21
  }
package/collections.d.ts CHANGED
@@ -121,7 +121,7 @@ type ItemMetaResponseBody = {
121
121
  /**
122
122
  * The case-sensitive string defining the item's type.
123
123
  */
124
- type ItemResourceTypeEnum = "app" | "collection" | "qlikview" | "insight" | "qvapp" | "genericlink" | "sharingservicetask" | "note" | "dataasset" | "dataset" | "automation" | "automl-experiment" | "automl-deployment";
124
+ type ItemResourceTypeEnum = "app" | "qlikview" | "qvapp" | "genericlink" | "sharingservicetask" | "note" | "dataasset" | "dataset" | "automation" | "automl-experiment" | "automl-deployment";
125
125
  /**
126
126
  * An item.
127
127
  */
package/collections.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/WQYEWU54.js";
5
- import "./chunks/2B7YWDQC.js";
4
+ } from "./chunks/PTDXR7AY.js";
5
+ import "./chunks/TXC5XORK.js";
6
6
  import "./chunks/2ZQ3ZX7F.js";
7
7
 
8
8
  // src/public/rest/collections.ts
package/csp-origins.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/WQYEWU54.js";
5
- import "./chunks/2B7YWDQC.js";
4
+ } from "./chunks/PTDXR7AY.js";
5
+ import "./chunks/TXC5XORK.js";
6
6
  import "./chunks/2ZQ3ZX7F.js";
7
7
 
8
8
  // src/public/rest/csp-origins.ts
package/data-assets.d.ts CHANGED
@@ -25,7 +25,7 @@ type DataAsset = {
25
25
  /** The value is automatically set by the application. */
26
26
  ownerId?: string;
27
27
  /** A Map of name-value pairs. */
28
- properties?: unknown;
28
+ properties?: Record<string, unknown>;
29
29
  spaceId?: string;
30
30
  tags?: string[];
31
31
  technicalDescription?: string;
package/data-assets.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/WQYEWU54.js";
5
- import "./chunks/2B7YWDQC.js";
4
+ } from "./chunks/PTDXR7AY.js";
5
+ import "./chunks/TXC5XORK.js";
6
6
  import "./chunks/2ZQ3ZX7F.js";
7
7
 
8
8
  // src/public/rest/data-assets.ts
@@ -156,7 +156,7 @@ type ConnectionGet = {
156
156
  qSeparateCredentials: boolean;
157
157
  /** Type of connection, i.e. provider type of underlying connector */
158
158
  qType: string;
159
- /** Encrypted base Qri string */
159
+ /** Encrypted base Qri string (filterable using SCIM filter, e.g. filter='qri co "snowflake"') */
160
160
  qri?: string;
161
161
  /** ID of the space to which the connection belongs */
162
162
  space?: string;
@@ -265,6 +265,8 @@ type PatchRequest = {
265
265
  };
266
266
  /**
267
267
  * Access type allowed on associated data connection
268
+ * @example
269
+ * "list"
268
270
  */
269
271
  type Privilege = "list" | "update" | "delete" | "read" | "change_owner" | "change_space";
270
272
  type ResponseErrors = {
@@ -289,6 +291,25 @@ type TopLevelLink = {
289
291
  };
290
292
  /**
291
293
  * Gets a list of connections
294
+ * @example
295
+ * getDataConnections(
296
+ * {
297
+ * dataName: "data",
298
+ * extended: false,
299
+ * spaceId: "611bcebaeec1203d88211ac4",
300
+ * personal: false,
301
+ * owner: "928e2a66-01ba-4678-aa32-e74c213896fa",
302
+ * ownedByMe: true,
303
+ * limit: 30,
304
+ * sort: "+qName",
305
+ * page: "page=JwAAAAljcmVhdGVkAPfQ-sx0AQAAB19pZABfb93nZcM4SN1M0e8A",
306
+ * noDatafiles: true,
307
+ * userId: "6K9xjsItDexffolu5vg1oWYkY8x7f-0G",
308
+ * caseinsensitive: true,
309
+ * locale: "en",
310
+ * includeQris: true
311
+ * }
312
+ * )
292
313
  *
293
314
  * @param query an object with query parameters
294
315
  * @throws GetDataConnectionsHttpError
@@ -407,6 +428,14 @@ type UpdateDataConnectionsHttpError = {
407
428
  };
408
429
  /**
409
430
  * Deletes the specified data connection by ID (or by name when type=connectionname is set in query)
431
+ * @example
432
+ * deleteDataConnection(
433
+ * "82ee7b44-0c4d-491b-bd38-82640c0430a5",
434
+ * {
435
+ * type: "connectionname",
436
+ * spaceId: "611bcebaeec1203d88211ac4"
437
+ * }
438
+ * )
410
439
  *
411
440
  * @param qID Connection ID
412
441
  * @param query an object with query parameters
@@ -430,6 +459,19 @@ type DeleteDataConnectionHttpError = {
430
459
  };
431
460
  /**
432
461
  * Retrieves a connection by connection ID, or by name when the query parameter "type" is set to "connectionname."
462
+ * @example
463
+ * getDataConnection(
464
+ * "82ee7b44-0c4d-491b-bd38-82640c0430a5",
465
+ * {
466
+ * extended: false,
467
+ * type: "connectionname",
468
+ * credentialId: "22379dc5-076e-4fec-ae20-5529a8a57dc2",
469
+ * byCredentialName: false,
470
+ * spaceId: "611bcebaeec1203d88211ac4",
471
+ * noCache: false,
472
+ * parseConnection: true
473
+ * }
474
+ * )
433
475
  *
434
476
  * @param qID Connection ID
435
477
  * @param query an object with query parameters
@@ -514,6 +556,25 @@ declare function clearCache(): void;
514
556
  interface DataConnectionsAPI {
515
557
  /**
516
558
  * Gets a list of connections
559
+ * @example
560
+ * getDataConnections(
561
+ * {
562
+ * dataName: "data",
563
+ * extended: false,
564
+ * spaceId: "611bcebaeec1203d88211ac4",
565
+ * personal: false,
566
+ * owner: "928e2a66-01ba-4678-aa32-e74c213896fa",
567
+ * ownedByMe: true,
568
+ * limit: 30,
569
+ * sort: "+qName",
570
+ * page: "page=JwAAAAljcmVhdGVkAPfQ-sx0AQAAB19pZABfb93nZcM4SN1M0e8A",
571
+ * noDatafiles: true,
572
+ * userId: "6K9xjsItDexffolu5vg1oWYkY8x7f-0G",
573
+ * caseinsensitive: true,
574
+ * locale: "en",
575
+ * includeQris: true
576
+ * }
577
+ * )
517
578
  *
518
579
  * @param query an object with query parameters
519
580
  * @throws GetDataConnectionsHttpError
@@ -549,6 +610,14 @@ interface DataConnectionsAPI {
549
610
  updateDataConnections: typeof updateDataConnections;
550
611
  /**
551
612
  * Deletes the specified data connection by ID (or by name when type=connectionname is set in query)
613
+ * @example
614
+ * deleteDataConnection(
615
+ * "82ee7b44-0c4d-491b-bd38-82640c0430a5",
616
+ * {
617
+ * type: "connectionname",
618
+ * spaceId: "611bcebaeec1203d88211ac4"
619
+ * }
620
+ * )
552
621
  *
553
622
  * @param qID Connection ID
554
623
  * @param query an object with query parameters
@@ -557,6 +626,19 @@ interface DataConnectionsAPI {
557
626
  deleteDataConnection: typeof deleteDataConnection;
558
627
  /**
559
628
  * Retrieves a connection by connection ID, or by name when the query parameter "type" is set to "connectionname."
629
+ * @example
630
+ * getDataConnection(
631
+ * "82ee7b44-0c4d-491b-bd38-82640c0430a5",
632
+ * {
633
+ * extended: false,
634
+ * type: "connectionname",
635
+ * credentialId: "22379dc5-076e-4fec-ae20-5529a8a57dc2",
636
+ * byCredentialName: false,
637
+ * spaceId: "611bcebaeec1203d88211ac4",
638
+ * noCache: false,
639
+ * parseConnection: true
640
+ * }
641
+ * )
560
642
  *
561
643
  * @param qID Connection ID
562
644
  * @param query an object with query parameters
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/WQYEWU54.js";
5
- import "./chunks/2B7YWDQC.js";
4
+ } from "./chunks/PTDXR7AY.js";
5
+ import "./chunks/TXC5XORK.js";
6
6
  import "./chunks/2ZQ3ZX7F.js";
7
7
 
8
8
  // src/public/rest/data-connections.ts
@@ -123,6 +123,13 @@ type FilterOrphanedDataCredentialsHttpError = {
123
123
  };
124
124
  /**
125
125
  * Deletes the specified credential by ID (or by name when type=credentialname is set in query)
126
+ * @example
127
+ * deleteDataCredential(
128
+ * "027d2703-e745-43ec-8876-a2e6ac341700",
129
+ * {
130
+ * byCredentialName: false
131
+ * }
132
+ * )
126
133
  *
127
134
  * @param qID Credential ID
128
135
  * @param query an object with query parameters
@@ -144,6 +151,13 @@ type DeleteDataCredentialHttpError = {
144
151
  };
145
152
  /**
146
153
  * Gets a credential by ID (or by name when bycredentialname=true is set in query)
154
+ * @example
155
+ * getDataCredential(
156
+ * "027d2703-e745-43ec-8876-a2e6ac341700",
157
+ * {
158
+ * byCredentialName: false
159
+ * }
160
+ * )
147
161
  *
148
162
  * @param qID Credential ID
149
163
  * @param query an object with query parameters
@@ -221,6 +235,13 @@ interface DataCredentialsAPI {
221
235
  filterOrphanedDataCredentials: typeof filterOrphanedDataCredentials;
222
236
  /**
223
237
  * Deletes the specified credential by ID (or by name when type=credentialname is set in query)
238
+ * @example
239
+ * deleteDataCredential(
240
+ * "027d2703-e745-43ec-8876-a2e6ac341700",
241
+ * {
242
+ * byCredentialName: false
243
+ * }
244
+ * )
224
245
  *
225
246
  * @param qID Credential ID
226
247
  * @param query an object with query parameters
@@ -229,6 +250,13 @@ interface DataCredentialsAPI {
229
250
  deleteDataCredential: typeof deleteDataCredential;
230
251
  /**
231
252
  * Gets a credential by ID (or by name when bycredentialname=true is set in query)
253
+ * @example
254
+ * getDataCredential(
255
+ * "027d2703-e745-43ec-8876-a2e6ac341700",
256
+ * {
257
+ * byCredentialName: false
258
+ * }
259
+ * )
232
260
  *
233
261
  * @param qID Credential ID
234
262
  * @param query an object with query parameters
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/WQYEWU54.js";
5
- import "./chunks/2B7YWDQC.js";
4
+ } from "./chunks/PTDXR7AY.js";
5
+ import "./chunks/TXC5XORK.js";
6
6
  import "./chunks/2ZQ3ZX7F.js";
7
7
 
8
8
  // src/public/rest/data-credentials.ts
package/data-files.d.ts CHANGED
@@ -253,6 +253,27 @@ type SpaceStatsResponse = {
253
253
  };
254
254
  /**
255
255
  * Get descriptive info for the specified data files.
256
+ * @example
257
+ * getDataFiles(
258
+ * {
259
+ * allowInternalFiles: false,
260
+ * appId: "f34b91a1-0dc3-44ac-a847-51cb84122c84",
261
+ * baseNameWildcard: "*SomeFileName*",
262
+ * connectionId: "ee6a390c-5d33-11e8-9c2d-fa7ae01bbebc",
263
+ * excludeFiles: false,
264
+ * excludeSubFolders: false,
265
+ * folderId: "ee6a390c-5d33-11e8-9c2d-fa7ae01bbebc",
266
+ * folderPath: "some/folder",
267
+ * includeAllSpaces: false,
268
+ * includeFolders: false,
269
+ * includeFolderStats: false,
270
+ * limit: 5,
271
+ * name: "MyFile.csv",
272
+ * notOwnerId: "lDL4DIINndhL_iJkcbqWyJenuwizP-2D",
273
+ * ownerId: "lDL4DIINndhL_iJkcbqWyJenuwizP-2D",
274
+ * page: "NzlmNzI5NWMtZGJlZC00Y2Y4LThkNDAtMzQ5ZDU3YzNjMzQ1"
275
+ * }
276
+ * )
256
277
  *
257
278
  * @param query an object with query parameters
258
279
  * @throws GetDataFilesHttpError
@@ -417,6 +438,18 @@ type DeleteDataFilesHttpError = {
417
438
  /**
418
439
  * The non-filtered list contains a set of hardcoded connections, along with one connection per team space that
419
440
  * the given user has access to.
441
+ * @example
442
+ * getDataFilesConnections(
443
+ * {
444
+ * appId: "f34b91a1-0dc3-44ac-a847-51cb84122c84",
445
+ * includeSpaceStats: false,
446
+ * limit: 5,
447
+ * name: "MySenseApp",
448
+ * page: "NzlmNzI5NWMtZGJlZC00Y2Y4LThkNDAtMzQ5ZDU3YzNjMzQ1",
449
+ * personal: true,
450
+ * spaceId: "617979737a9f56e49dea2e6e"
451
+ * }
452
+ * )
420
453
  *
421
454
  * @param query an object with query parameters
422
455
  * @throws GetDataFilesConnectionsHttpError
@@ -455,6 +488,10 @@ type GetDataFilesConnectionsHttpError = {
455
488
  };
456
489
  /**
457
490
  * Get the built-in connection used by the engine to load/write data files given a connection ID.
491
+ * @example
492
+ * getDataFileConnection(
493
+ * "ee6a390c-5d33-11e8-9c2d-fa7ae01bbebc"
494
+ * )
458
495
  *
459
496
  * @param id The ID of the connection.
460
497
  * @throws GetDataFileConnectionHttpError
@@ -489,6 +526,10 @@ type GetDataFilesQuotasHttpError = {
489
526
  /**
490
527
  * Delete the specified data file or folder. Deleting a folder will also recursively delete all files and
491
528
  * subfolders that reside within the specified folder.
529
+ * @example
530
+ * deleteDataFile(
531
+ * "ee6a390c-5d33-11e8-9c2d-fa7ae01bbebc"
532
+ * )
492
533
  *
493
534
  * @param id The ID of the data file or folder to delete.
494
535
  * @throws DeleteDataFileHttpError
@@ -506,6 +547,10 @@ type DeleteDataFileHttpError = {
506
547
  };
507
548
  /**
508
549
  * Get descriptive info for the specified data file.
550
+ * @example
551
+ * getDataFile(
552
+ * "ee6a390c-5d33-11e8-9c2d-fa7ae01bbebc"
553
+ * )
509
554
  *
510
555
  * @param id The ID of the data file.
511
556
  * @throws GetDataFileHttpError
@@ -645,6 +690,27 @@ declare function clearCache(): void;
645
690
  interface DataFilesAPI {
646
691
  /**
647
692
  * Get descriptive info for the specified data files.
693
+ * @example
694
+ * getDataFiles(
695
+ * {
696
+ * allowInternalFiles: false,
697
+ * appId: "f34b91a1-0dc3-44ac-a847-51cb84122c84",
698
+ * baseNameWildcard: "*SomeFileName*",
699
+ * connectionId: "ee6a390c-5d33-11e8-9c2d-fa7ae01bbebc",
700
+ * excludeFiles: false,
701
+ * excludeSubFolders: false,
702
+ * folderId: "ee6a390c-5d33-11e8-9c2d-fa7ae01bbebc",
703
+ * folderPath: "some/folder",
704
+ * includeAllSpaces: false,
705
+ * includeFolders: false,
706
+ * includeFolderStats: false,
707
+ * limit: 5,
708
+ * name: "MyFile.csv",
709
+ * notOwnerId: "lDL4DIINndhL_iJkcbqWyJenuwizP-2D",
710
+ * ownerId: "lDL4DIINndhL_iJkcbqWyJenuwizP-2D",
711
+ * page: "NzlmNzI5NWMtZGJlZC00Y2Y4LThkNDAtMzQ5ZDU3YzNjMzQ1"
712
+ * }
713
+ * )
648
714
  *
649
715
  * @param query an object with query parameters
650
716
  * @throws GetDataFilesHttpError
@@ -677,6 +743,18 @@ interface DataFilesAPI {
677
743
  /**
678
744
  * The non-filtered list contains a set of hardcoded connections, along with one connection per team space that
679
745
  * the given user has access to.
746
+ * @example
747
+ * getDataFilesConnections(
748
+ * {
749
+ * appId: "f34b91a1-0dc3-44ac-a847-51cb84122c84",
750
+ * includeSpaceStats: false,
751
+ * limit: 5,
752
+ * name: "MySenseApp",
753
+ * page: "NzlmNzI5NWMtZGJlZC00Y2Y4LThkNDAtMzQ5ZDU3YzNjMzQ1",
754
+ * personal: true,
755
+ * spaceId: "617979737a9f56e49dea2e6e"
756
+ * }
757
+ * )
680
758
  *
681
759
  * @param query an object with query parameters
682
760
  * @throws GetDataFilesConnectionsHttpError
@@ -684,6 +762,10 @@ interface DataFilesAPI {
684
762
  getDataFilesConnections: typeof getDataFilesConnections;
685
763
  /**
686
764
  * Get the built-in connection used by the engine to load/write data files given a connection ID.
765
+ * @example
766
+ * getDataFileConnection(
767
+ * "ee6a390c-5d33-11e8-9c2d-fa7ae01bbebc"
768
+ * )
687
769
  *
688
770
  * @param id The ID of the connection.
689
771
  * @throws GetDataFileConnectionHttpError
@@ -698,6 +780,10 @@ interface DataFilesAPI {
698
780
  /**
699
781
  * Delete the specified data file or folder. Deleting a folder will also recursively delete all files and
700
782
  * subfolders that reside within the specified folder.
783
+ * @example
784
+ * deleteDataFile(
785
+ * "ee6a390c-5d33-11e8-9c2d-fa7ae01bbebc"
786
+ * )
701
787
  *
702
788
  * @param id The ID of the data file or folder to delete.
703
789
  * @throws DeleteDataFileHttpError
@@ -705,6 +791,10 @@ interface DataFilesAPI {
705
791
  deleteDataFile: typeof deleteDataFile;
706
792
  /**
707
793
  * Get descriptive info for the specified data file.
794
+ * @example
795
+ * getDataFile(
796
+ * "ee6a390c-5d33-11e8-9c2d-fa7ae01bbebc"
797
+ * )
708
798
  *
709
799
  * @param id The ID of the data file.
710
800
  * @throws GetDataFileHttpError
package/data-files.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/WQYEWU54.js";
5
- import "./chunks/2B7YWDQC.js";
4
+ } from "./chunks/PTDXR7AY.js";
5
+ import "./chunks/TXC5XORK.js";
6
6
  import "./chunks/2ZQ3ZX7F.js";
7
7
 
8
8
  // src/public/rest/data-files.ts