@qlik/api 0.0.1 → 0.0.3

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 (156) hide show
  1. package/.github/CODEOWNERS +2 -0
  2. package/.github/workflows/release.yaml +35 -0
  3. package/README.md +1 -3
  4. package/api-keys.d.mts +27 -13
  5. package/api-keys.d.ts +27 -13
  6. package/api-keys.js +17 -13
  7. package/api-keys.mjs +12 -8
  8. package/apps.d.mts +580 -165
  9. package/apps.d.ts +580 -165
  10. package/apps.js +111 -44
  11. package/apps.mjs +78 -11
  12. package/audits.d.mts +20 -8
  13. package/audits.d.ts +20 -8
  14. package/audits.js +12 -11
  15. package/audits.mjs +7 -6
  16. package/auth-AWZV4DPP.js +41 -0
  17. package/{auth-TE272Q34.mjs → auth-CPBNNC7S.mjs} +8 -3
  18. package/auth.js +4 -3
  19. package/auth.mjs +3 -2
  20. package/automations.d.mts +56 -20
  21. package/automations.d.ts +56 -20
  22. package/automations.js +32 -25
  23. package/automations.mjs +18 -11
  24. package/brands.d.mts +45 -4
  25. package/brands.d.ts +45 -4
  26. package/brands.js +20 -15
  27. package/brands.mjs +7 -2
  28. package/{chunk-ZT4C7KCQ.js → chunk-2STFUQKQ.js} +3 -3
  29. package/{chunk-WM7FQU2U.mjs → chunk-3SVRHJII.mjs} +3 -3
  30. package/{chunk-CKPJE4IA.mjs → chunk-67GJTTPV.mjs} +1 -1
  31. package/{chunk-4ES65KO3.js → chunk-7RY3NO6N.js} +2 -2
  32. package/{chunk-4OMEH5SW.mjs → chunk-CYRLVHU3.mjs} +321 -53
  33. package/{chunk-XASXL2NC.js → chunk-D52VW5UN.js} +323 -55
  34. package/{chunk-GUQBHY3H.mjs → chunk-GNWU6SP2.mjs} +1 -1
  35. package/{chunk-4FLMND6T.js → chunk-GV5SRHY2.js} +4 -4
  36. package/{chunk-OULT3V2U.js → chunk-JNGURO23.js} +3 -3
  37. package/chunk-P57PW2II.js +11 -0
  38. package/{chunk-3YE7EI7I.mjs → chunk-TE7XMBT5.mjs} +1 -1
  39. package/chunk-ZFXKCRJC.mjs +11 -0
  40. package/collections.d.mts +52 -18
  41. package/collections.d.ts +52 -18
  42. package/collections.js +28 -14
  43. package/collections.mjs +16 -2
  44. package/csp-origins.d.mts +12 -0
  45. package/csp-origins.d.ts +12 -0
  46. package/csp-origins.js +12 -9
  47. package/csp-origins.mjs +5 -2
  48. package/data-assets.d.mts +10 -0
  49. package/data-assets.d.ts +10 -0
  50. package/data-assets.js +13 -8
  51. package/data-assets.mjs +7 -2
  52. package/data-connections.d.mts +20 -0
  53. package/data-connections.d.ts +20 -0
  54. package/data-connections.js +19 -12
  55. package/data-connections.mjs +9 -2
  56. package/data-credentials.d.mts +10 -0
  57. package/data-credentials.d.ts +10 -0
  58. package/data-credentials.js +10 -7
  59. package/data-credentials.mjs +5 -2
  60. package/data-files.d.mts +114 -29
  61. package/data-files.d.ts +114 -29
  62. package/data-files.js +25 -18
  63. package/data-files.mjs +15 -8
  64. package/{enigma-session-TEB53FAF.js → enigma-session-XPXDQAIV.js} +12 -7
  65. package/{enigma-session-4L373ALV.mjs → enigma-session-ZH6MYA54.mjs} +10 -5
  66. package/{esm-4X3DKK5D.js → esm-3VXX2GKL.js} +13 -9
  67. package/{esm-SOWVJKOQ.mjs → esm-OY4XVIJB.mjs} +13 -9
  68. package/extensions.d.mts +26 -2
  69. package/extensions.d.ts +26 -2
  70. package/extensions.js +13 -10
  71. package/extensions.mjs +5 -2
  72. package/glossaries.d.mts +55 -20
  73. package/glossaries.d.ts +55 -20
  74. package/glossaries.js +39 -27
  75. package/glossaries.mjs +14 -2
  76. package/groups.d.mts +29 -13
  77. package/groups.d.ts +29 -13
  78. package/groups.js +19 -14
  79. package/groups.mjs +13 -8
  80. package/identity-providers.d.mts +23 -7
  81. package/identity-providers.d.ts +23 -7
  82. package/identity-providers.js +16 -13
  83. package/identity-providers.mjs +8 -5
  84. package/index.js +150 -112
  85. package/index.mjs +146 -108
  86. package/{invoke-fetch-MSSJAZ7K.mjs → invoke-fetch-3WZWAAZH.mjs} +4 -1
  87. package/invoke-fetch-UNTAUR7O.js +17 -0
  88. package/items.d.mts +25 -22
  89. package/items.d.ts +25 -22
  90. package/items.js +17 -14
  91. package/items.mjs +11 -8
  92. package/licenses.d.mts +20 -0
  93. package/licenses.d.ts +20 -0
  94. package/licenses.js +17 -12
  95. package/licenses.mjs +7 -2
  96. package/package.json +7 -18
  97. package/{qix-RLTISYTB.js → qix-UNWXPGMA.js} +9 -8
  98. package/{qix-EU7PXRZ6.mjs → qix-ZSJ4PIK3.mjs} +5 -4
  99. package/qix.d.mts +1066 -1017
  100. package/qix.d.ts +1066 -1017
  101. package/qix.js +4 -3
  102. package/qix.mjs +3 -2
  103. package/quotas.d.mts +4 -0
  104. package/quotas.d.ts +4 -0
  105. package/quotas.js +6 -5
  106. package/quotas.mjs +3 -2
  107. package/reload-tasks.d.mts +2 -0
  108. package/reload-tasks.d.ts +2 -0
  109. package/reload-tasks.js +11 -8
  110. package/reload-tasks.mjs +5 -2
  111. package/reloads.d.mts +20 -11
  112. package/reloads.d.ts +20 -11
  113. package/reloads.js +9 -7
  114. package/reloads.mjs +4 -2
  115. package/roles.d.mts +4 -0
  116. package/roles.d.ts +4 -0
  117. package/roles.js +6 -5
  118. package/roles.mjs +3 -2
  119. package/spaces.d.mts +36 -30
  120. package/spaces.d.ts +36 -30
  121. package/spaces.js +21 -15
  122. package/spaces.mjs +8 -2
  123. package/temp-contents.d.mts +9 -70
  124. package/temp-contents.d.ts +9 -70
  125. package/temp-contents.js +10 -29
  126. package/temp-contents.mjs +5 -24
  127. package/tenants.d.mts +12 -0
  128. package/tenants.d.ts +12 -0
  129. package/tenants.js +14 -9
  130. package/tenants.mjs +7 -2
  131. package/themes.d.mts +26 -2
  132. package/themes.d.ts +26 -2
  133. package/themes.js +13 -10
  134. package/themes.mjs +5 -2
  135. package/transports.d.mts +12 -0
  136. package/transports.d.ts +12 -0
  137. package/transports.js +12 -9
  138. package/transports.mjs +5 -2
  139. package/users.d.mts +48 -29
  140. package/users.d.ts +48 -29
  141. package/users.js +18 -13
  142. package/users.mjs +7 -2
  143. package/web-integrations.d.mts +10 -0
  144. package/web-integrations.d.ts +10 -0
  145. package/web-integrations.js +11 -8
  146. package/web-integrations.mjs +5 -2
  147. package/web-notifications.d.mts +12 -0
  148. package/web-notifications.d.ts +12 -0
  149. package/web-notifications.js +12 -9
  150. package/web-notifications.mjs +5 -2
  151. package/webhooks.d.mts +27 -7
  152. package/webhooks.d.ts +27 -7
  153. package/webhooks.js +17 -13
  154. package/webhooks.mjs +6 -2
  155. package/auth-CSVTXOZX.js +0 -36
  156. package/invoke-fetch-PEI54KZO.js +0 -14
@@ -1,8 +1,9 @@
1
1
  import {
2
2
  getRestCallAuthParams,
3
3
  getWebSocketAuthParams,
4
- toValidEnigmaLocationUrl
5
- } from "./chunk-4OMEH5SW.mjs";
4
+ toValidWebsocketLocationUrl
5
+ } from "./chunk-CYRLVHU3.mjs";
6
+ import "./chunk-ZFXKCRJC.mjs";
6
7
 
7
8
  // src/qix/session/enigma-session.ts
8
9
  import enigma from "enigma.js";
@@ -9504,7 +9505,9 @@ var mixin4 = {
9504
9505
  extend: {
9505
9506
  getOrCreateSessionObject(props) {
9506
9507
  const app = this;
9507
- const id = props.qInfo.qId || "";
9508
+ const id = props.qInfo?.qId;
9509
+ if (!id)
9510
+ throw new Error("Invalid list definition. No qId defined");
9508
9511
  if (!app._listCache[id]) {
9509
9512
  if (app.session.sessionState === "SESSION_ATTACHED") {
9510
9513
  app._listCache[id] = app.getObject(id).catch(() => app.createSessionObject(props));
@@ -9529,7 +9532,9 @@ var mixin4 = {
9529
9532
  if (outKey) {
9530
9533
  outKey = outKey.replace(/Def$/g, "");
9531
9534
  }
9532
- const id = listDef.qInfo.qId;
9535
+ const id = listDef.qInfo?.qId;
9536
+ if (!id)
9537
+ throw new Error("Invalid list definition. No qId defined");
9533
9538
  if (!app._listCache[id]) {
9534
9539
  app.getOrCreateSessionObject(listDef).then((obj) => {
9535
9540
  const getLayout = obj.getLayout.bind(obj);
@@ -10155,7 +10160,7 @@ async function createEnigmaSession({
10155
10160
  identity,
10156
10161
  hostConfig
10157
10162
  }) {
10158
- const locationUrl = toValidEnigmaLocationUrl(hostConfig);
10163
+ const locationUrl = toValidWebsocketLocationUrl(hostConfig);
10159
10164
  const reloadUri = encodeURIComponent(`${locationUrl}/sense/app/${appId}`);
10160
10165
  const identityPart = identity ? `/identity/${identity}` : "";
10161
10166
  let url = `${locationUrl}/app/${appId}${identityPart}?reloadUri=${reloadUri}`.replace(/^http/, "ws");
@@ -1,13 +1,15 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// node_modules/.pnpm/@qlik+runtime-module-loader@0.1.15/node_modules/@qlik/runtime-module-loader/dist/esm/index.js
2
- var resolveMainJsUrl;
3
- var mainUrlPromise = new Promise((resolve) => {
4
- resolveMainJsUrl = (value) => resolve(value);
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }require('./chunk-P57PW2II.js');
2
+
3
+ // node_modules/.pnpm/@qlik+runtime-module-loader@0.2.3/node_modules/@qlik/runtime-module-loader/dist/esm/index.js
4
+ window.__qlikMainPrivateResolvers = window.__qlikMainPrivateResolvers || {};
5
+ window.__qlikMainPrivateResolvers.mainUrlPromise = window.__qlikMainPrivateResolvers.mainUrlPromise || new Promise((resolve) => {
6
+ window.__qlikMainPrivateResolvers.resolveMainJsUrl = (value) => resolve(value);
5
7
  });
6
- window.qlikMainPromise = window.qlikMainPromise || (async () => {
8
+ window.__qlikMainPrivateResolvers.qlikMainPromise = window.__qlikMainPrivateResolvers.qlikMainPromise || (async () => {
7
9
  if (window.QlikMain) {
8
10
  return window.QlikMain;
9
11
  }
10
- const url = await mainUrlPromise;
12
+ const url = await window.__qlikMainPrivateResolvers.mainUrlPromise;
11
13
  return new Promise((resolve, reject) => {
12
14
  if (window.QlikMain) {
13
15
  resolve(window.QlikMain);
@@ -18,7 +20,9 @@ window.qlikMainPromise = window.qlikMainPromise || (async () => {
18
20
  reject(err);
19
21
  });
20
22
  script.addEventListener("load", () => {
21
- resolve(window.QlikMain);
23
+ if (window.QlikMain) {
24
+ resolve(window.QlikMain);
25
+ }
22
26
  });
23
27
  window.document.head.appendChild(script);
24
28
  });
@@ -41,7 +45,7 @@ function provideHostConfigForMainJsUrl(hostConfig) {
41
45
  }
42
46
  const potentialMainJsUrl = toMainJsUrl(hostConfig);
43
47
  if (potentialMainJsUrl) {
44
- resolveMainJsUrl(potentialMainJsUrl);
48
+ window.__qlikMainPrivateResolvers.resolveMainJsUrl(potentialMainJsUrl);
45
49
  }
46
50
  }
47
51
  async function importRuntimeModule(name, hostConfig) {
@@ -55,7 +59,7 @@ async function importUnsupportedAndUnstableRuntimeModule(name) {
55
59
  return importFromCdn(name);
56
60
  }
57
61
  async function importFromCdn(name) {
58
- return (await window.qlikMainPromise).import(name);
62
+ return (await window.__qlikMainPrivateResolvers.qlikMainPromise).import(name);
59
63
  }
60
64
 
61
65
 
@@ -1,13 +1,15 @@
1
- // node_modules/.pnpm/@qlik+runtime-module-loader@0.1.15/node_modules/@qlik/runtime-module-loader/dist/esm/index.js
2
- var resolveMainJsUrl;
3
- var mainUrlPromise = new Promise((resolve) => {
4
- resolveMainJsUrl = (value) => resolve(value);
1
+ import "./chunk-ZFXKCRJC.mjs";
2
+
3
+ // node_modules/.pnpm/@qlik+runtime-module-loader@0.2.3/node_modules/@qlik/runtime-module-loader/dist/esm/index.js
4
+ window.__qlikMainPrivateResolvers = window.__qlikMainPrivateResolvers || {};
5
+ window.__qlikMainPrivateResolvers.mainUrlPromise = window.__qlikMainPrivateResolvers.mainUrlPromise || new Promise((resolve) => {
6
+ window.__qlikMainPrivateResolvers.resolveMainJsUrl = (value) => resolve(value);
5
7
  });
6
- window.qlikMainPromise = window.qlikMainPromise || (async () => {
8
+ window.__qlikMainPrivateResolvers.qlikMainPromise = window.__qlikMainPrivateResolvers.qlikMainPromise || (async () => {
7
9
  if (window.QlikMain) {
8
10
  return window.QlikMain;
9
11
  }
10
- const url = await mainUrlPromise;
12
+ const url = await window.__qlikMainPrivateResolvers.mainUrlPromise;
11
13
  return new Promise((resolve, reject) => {
12
14
  if (window.QlikMain) {
13
15
  resolve(window.QlikMain);
@@ -18,7 +20,9 @@ window.qlikMainPromise = window.qlikMainPromise || (async () => {
18
20
  reject(err);
19
21
  });
20
22
  script.addEventListener("load", () => {
21
- resolve(window.QlikMain);
23
+ if (window.QlikMain) {
24
+ resolve(window.QlikMain);
25
+ }
22
26
  });
23
27
  window.document.head.appendChild(script);
24
28
  });
@@ -41,7 +45,7 @@ function provideHostConfigForMainJsUrl(hostConfig) {
41
45
  }
42
46
  const potentialMainJsUrl = toMainJsUrl(hostConfig);
43
47
  if (potentialMainJsUrl) {
44
- resolveMainJsUrl(potentialMainJsUrl);
48
+ window.__qlikMainPrivateResolvers.resolveMainJsUrl(potentialMainJsUrl);
45
49
  }
46
50
  }
47
51
  async function importRuntimeModule(name, hostConfig) {
@@ -55,7 +59,7 @@ async function importUnsupportedAndUnstableRuntimeModule(name) {
55
59
  return importFromCdn(name);
56
60
  }
57
61
  async function importFromCdn(name) {
58
- return (await window.qlikMainPromise).import(name);
62
+ return (await window.__qlikMainPrivateResolvers.qlikMainPromise).import(name);
59
63
  }
60
64
  export {
61
65
  importRuntimeModule,
package/extensions.d.mts CHANGED
@@ -85,6 +85,7 @@ type Meta = {
85
85
  };
86
86
  /**
87
87
  * Lists all extensions.
88
+ *
88
89
  * @throws GetExtensionsHttpError
89
90
  */
90
91
  declare const getExtensions: (options?: ApiCallOptions) => Promise<GetExtensionsHttpResponse>;
@@ -100,10 +101,16 @@ type GetExtensionsHttpError = {
100
101
  };
101
102
  /**
102
103
  * Creates a new extension. If a file is provided, the data field is not required.
104
+ *
103
105
  * @param body an object with the body content
104
106
  * @throws UploadExtensionHttpError
105
107
  */
106
- declare const uploadExtension: (body: unknown, options?: ApiCallOptions) => Promise<UploadExtensionHttpResponse>;
108
+ declare const uploadExtension: (body: {
109
+ /** The extension model. */
110
+ data?: Extension;
111
+ /** Extension archive. */
112
+ file?: BodyInit;
113
+ }, options?: ApiCallOptions) => Promise<UploadExtensionHttpResponse>;
107
114
  type UploadExtensionHttpResponse = {
108
115
  data: Extension;
109
116
  headers: Headers;
@@ -116,6 +123,7 @@ type UploadExtensionHttpError = {
116
123
  };
117
124
  /**
118
125
  * Deletes a specific extension.
126
+ *
119
127
  * @param id Extension identifier or its qextFilename.
120
128
  * @throws DeleteExtensionHttpError
121
129
  */
@@ -132,6 +140,7 @@ type DeleteExtensionHttpError = {
132
140
  };
133
141
  /**
134
142
  * Returns a specific extension.
143
+ *
135
144
  * @param id Extension identifier or its qextFilename.
136
145
  * @throws GetExtensionHttpError
137
146
  */
@@ -148,11 +157,17 @@ type GetExtensionHttpError = {
148
157
  };
149
158
  /**
150
159
  * Updates a specific extension with provided data. If a file is provided, the data field is not required.
160
+ *
151
161
  * @param id Extension identifier or its qextFilename.
152
162
  * @param body an object with the body content
153
163
  * @throws PatchExtensionHttpError
154
164
  */
155
- declare const patchExtension: (id: string, body: unknown, options?: ApiCallOptions) => Promise<PatchExtensionHttpResponse>;
165
+ declare const patchExtension: (id: string, body: {
166
+ /** The extension model. */
167
+ data?: Extension;
168
+ /** Extension archive. */
169
+ file?: BodyInit;
170
+ }, options?: ApiCallOptions) => Promise<PatchExtensionHttpResponse>;
156
171
  type PatchExtensionHttpResponse = {
157
172
  data: Extension;
158
173
  headers: Headers;
@@ -165,6 +180,7 @@ type PatchExtensionHttpError = {
165
180
  };
166
181
  /**
167
182
  * Downloads the extension as an archive.
183
+ *
168
184
  * @param id Extension identifier or its qextFilename.
169
185
  * @throws DownloadExtensionHttpError
170
186
  */
@@ -181,6 +197,7 @@ type DownloadExtensionHttpError = {
181
197
  };
182
198
  /**
183
199
  * Downloads a file from the extension archive.
200
+ *
184
201
  * @param id Extension identifier or its qextFilename.
185
202
  * @param filepath Path to the file archive for the specified extension archive. Folders separated with forward slashes.
186
203
  * @throws DownloadFileFromExtensionHttpError
@@ -203,29 +220,34 @@ declare function clearCache(): void;
203
220
  interface ExtensionsAPI {
204
221
  /**
205
222
  * Lists all extensions.
223
+ *
206
224
  * @throws GetExtensionsHttpError
207
225
  */
208
226
  getExtensions: typeof getExtensions;
209
227
  /**
210
228
  * Creates a new extension. If a file is provided, the data field is not required.
229
+ *
211
230
  * @param body an object with the body content
212
231
  * @throws UploadExtensionHttpError
213
232
  */
214
233
  uploadExtension: typeof uploadExtension;
215
234
  /**
216
235
  * Deletes a specific extension.
236
+ *
217
237
  * @param id Extension identifier or its qextFilename.
218
238
  * @throws DeleteExtensionHttpError
219
239
  */
220
240
  deleteExtension: typeof deleteExtension;
221
241
  /**
222
242
  * Returns a specific extension.
243
+ *
223
244
  * @param id Extension identifier or its qextFilename.
224
245
  * @throws GetExtensionHttpError
225
246
  */
226
247
  getExtension: typeof getExtension;
227
248
  /**
228
249
  * Updates a specific extension with provided data. If a file is provided, the data field is not required.
250
+ *
229
251
  * @param id Extension identifier or its qextFilename.
230
252
  * @param body an object with the body content
231
253
  * @throws PatchExtensionHttpError
@@ -233,12 +255,14 @@ interface ExtensionsAPI {
233
255
  patchExtension: typeof patchExtension;
234
256
  /**
235
257
  * Downloads the extension as an archive.
258
+ *
236
259
  * @param id Extension identifier or its qextFilename.
237
260
  * @throws DownloadExtensionHttpError
238
261
  */
239
262
  downloadExtension: typeof downloadExtension;
240
263
  /**
241
264
  * Downloads a file from the extension archive.
265
+ *
242
266
  * @param id Extension identifier or its qextFilename.
243
267
  * @param filepath Path to the file archive for the specified extension archive. Folders separated with forward slashes.
244
268
  * @throws DownloadFileFromExtensionHttpError
package/extensions.d.ts CHANGED
@@ -85,6 +85,7 @@ type Meta = {
85
85
  };
86
86
  /**
87
87
  * Lists all extensions.
88
+ *
88
89
  * @throws GetExtensionsHttpError
89
90
  */
90
91
  declare const getExtensions: (options?: ApiCallOptions) => Promise<GetExtensionsHttpResponse>;
@@ -100,10 +101,16 @@ type GetExtensionsHttpError = {
100
101
  };
101
102
  /**
102
103
  * Creates a new extension. If a file is provided, the data field is not required.
104
+ *
103
105
  * @param body an object with the body content
104
106
  * @throws UploadExtensionHttpError
105
107
  */
106
- declare const uploadExtension: (body: unknown, options?: ApiCallOptions) => Promise<UploadExtensionHttpResponse>;
108
+ declare const uploadExtension: (body: {
109
+ /** The extension model. */
110
+ data?: Extension;
111
+ /** Extension archive. */
112
+ file?: BodyInit;
113
+ }, options?: ApiCallOptions) => Promise<UploadExtensionHttpResponse>;
107
114
  type UploadExtensionHttpResponse = {
108
115
  data: Extension;
109
116
  headers: Headers;
@@ -116,6 +123,7 @@ type UploadExtensionHttpError = {
116
123
  };
117
124
  /**
118
125
  * Deletes a specific extension.
126
+ *
119
127
  * @param id Extension identifier or its qextFilename.
120
128
  * @throws DeleteExtensionHttpError
121
129
  */
@@ -132,6 +140,7 @@ type DeleteExtensionHttpError = {
132
140
  };
133
141
  /**
134
142
  * Returns a specific extension.
143
+ *
135
144
  * @param id Extension identifier or its qextFilename.
136
145
  * @throws GetExtensionHttpError
137
146
  */
@@ -148,11 +157,17 @@ type GetExtensionHttpError = {
148
157
  };
149
158
  /**
150
159
  * Updates a specific extension with provided data. If a file is provided, the data field is not required.
160
+ *
151
161
  * @param id Extension identifier or its qextFilename.
152
162
  * @param body an object with the body content
153
163
  * @throws PatchExtensionHttpError
154
164
  */
155
- declare const patchExtension: (id: string, body: unknown, options?: ApiCallOptions) => Promise<PatchExtensionHttpResponse>;
165
+ declare const patchExtension: (id: string, body: {
166
+ /** The extension model. */
167
+ data?: Extension;
168
+ /** Extension archive. */
169
+ file?: BodyInit;
170
+ }, options?: ApiCallOptions) => Promise<PatchExtensionHttpResponse>;
156
171
  type PatchExtensionHttpResponse = {
157
172
  data: Extension;
158
173
  headers: Headers;
@@ -165,6 +180,7 @@ type PatchExtensionHttpError = {
165
180
  };
166
181
  /**
167
182
  * Downloads the extension as an archive.
183
+ *
168
184
  * @param id Extension identifier or its qextFilename.
169
185
  * @throws DownloadExtensionHttpError
170
186
  */
@@ -181,6 +197,7 @@ type DownloadExtensionHttpError = {
181
197
  };
182
198
  /**
183
199
  * Downloads a file from the extension archive.
200
+ *
184
201
  * @param id Extension identifier or its qextFilename.
185
202
  * @param filepath Path to the file archive for the specified extension archive. Folders separated with forward slashes.
186
203
  * @throws DownloadFileFromExtensionHttpError
@@ -203,29 +220,34 @@ declare function clearCache(): void;
203
220
  interface ExtensionsAPI {
204
221
  /**
205
222
  * Lists all extensions.
223
+ *
206
224
  * @throws GetExtensionsHttpError
207
225
  */
208
226
  getExtensions: typeof getExtensions;
209
227
  /**
210
228
  * Creates a new extension. If a file is provided, the data field is not required.
229
+ *
211
230
  * @param body an object with the body content
212
231
  * @throws UploadExtensionHttpError
213
232
  */
214
233
  uploadExtension: typeof uploadExtension;
215
234
  /**
216
235
  * Deletes a specific extension.
236
+ *
217
237
  * @param id Extension identifier or its qextFilename.
218
238
  * @throws DeleteExtensionHttpError
219
239
  */
220
240
  deleteExtension: typeof deleteExtension;
221
241
  /**
222
242
  * Returns a specific extension.
243
+ *
223
244
  * @param id Extension identifier or its qextFilename.
224
245
  * @throws GetExtensionHttpError
225
246
  */
226
247
  getExtension: typeof getExtension;
227
248
  /**
228
249
  * Updates a specific extension with provided data. If a file is provided, the data field is not required.
250
+ *
229
251
  * @param id Extension identifier or its qextFilename.
230
252
  * @param body an object with the body content
231
253
  * @throws PatchExtensionHttpError
@@ -233,12 +255,14 @@ interface ExtensionsAPI {
233
255
  patchExtension: typeof patchExtension;
234
256
  /**
235
257
  * Downloads the extension as an archive.
258
+ *
236
259
  * @param id Extension identifier or its qextFilename.
237
260
  * @throws DownloadExtensionHttpError
238
261
  */
239
262
  downloadExtension: typeof downloadExtension;
240
263
  /**
241
264
  * Downloads a file from the extension archive.
265
+ *
242
266
  * @param id Extension identifier or its qextFilename.
243
267
  * @param filepath Path to the file archive for the specified extension archive. Folders separated with forward slashes.
244
268
  * @throws DownloadFileFromExtensionHttpError
package/extensions.js CHANGED
@@ -1,54 +1,57 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkOULT3V2Ujs = require('./chunk-OULT3V2U.js');
5
- require('./chunk-ZT4C7KCQ.js');
4
+ var _chunkJNGURO23js = require('./chunk-JNGURO23.js');
5
+ require('./chunk-2STFUQKQ.js');
6
+ require('./chunk-P57PW2II.js');
6
7
 
7
8
  // src/public/rest/extensions.ts
8
- var getExtensions = async (options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "extensions", {
9
+ var getExtensions = async (options) => _chunkJNGURO23js.invokeFetch.call(void 0, "extensions", {
9
10
  method: "get",
10
11
  pathTemplate: "/api/v1/extensions",
11
12
  options
12
13
  });
13
- var uploadExtension = async (body, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "extensions", {
14
+ var uploadExtension = async (body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "extensions", {
14
15
  method: "post",
15
16
  pathTemplate: "/api/v1/extensions",
16
17
  body,
18
+ contentType: "multipart/form-data",
17
19
  options
18
20
  });
19
- var deleteExtension = async (id, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "extensions", {
21
+ var deleteExtension = async (id, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "extensions", {
20
22
  method: "delete",
21
23
  pathTemplate: "/api/v1/extensions/{id}",
22
24
  pathVariables: { id },
23
25
  options
24
26
  });
25
- var getExtension = async (id, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "extensions", {
27
+ var getExtension = async (id, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "extensions", {
26
28
  method: "get",
27
29
  pathTemplate: "/api/v1/extensions/{id}",
28
30
  pathVariables: { id },
29
31
  options
30
32
  });
31
- var patchExtension = async (id, body, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "extensions", {
33
+ var patchExtension = async (id, body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "extensions", {
32
34
  method: "patch",
33
35
  pathTemplate: "/api/v1/extensions/{id}",
34
36
  pathVariables: { id },
35
37
  body,
38
+ contentType: "multipart/form-data",
36
39
  options
37
40
  });
38
- var downloadExtension = async (id, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "extensions", {
41
+ var downloadExtension = async (id, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "extensions", {
39
42
  method: "get",
40
43
  pathTemplate: "/api/v1/extensions/{id}/file",
41
44
  pathVariables: { id },
42
45
  options
43
46
  });
44
- var downloadFileFromExtension = async (id, filepath, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "extensions", {
47
+ var downloadFileFromExtension = async (id, filepath, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "extensions", {
45
48
  method: "get",
46
49
  pathTemplate: "/api/v1/extensions/{id}/file/{filepath}",
47
50
  pathVariables: { id, filepath },
48
51
  options
49
52
  });
50
53
  function clearCache() {
51
- return _chunkOULT3V2Ujs.clearApiCache.call(void 0, "extensions");
54
+ return _chunkJNGURO23js.clearApiCache.call(void 0, "extensions");
52
55
  }
53
56
  var extensionsExport = {
54
57
  getExtensions,
package/extensions.mjs CHANGED
@@ -1,8 +1,9 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunk-3YE7EI7I.mjs";
5
- import "./chunk-WM7FQU2U.mjs";
4
+ } from "./chunk-TE7XMBT5.mjs";
5
+ import "./chunk-3SVRHJII.mjs";
6
+ import "./chunk-ZFXKCRJC.mjs";
6
7
 
7
8
  // src/public/rest/extensions.ts
8
9
  var getExtensions = async (options) => invokeFetch("extensions", {
@@ -14,6 +15,7 @@ var uploadExtension = async (body, options) => invokeFetch("extensions", {
14
15
  method: "post",
15
16
  pathTemplate: "/api/v1/extensions",
16
17
  body,
18
+ contentType: "multipart/form-data",
17
19
  options
18
20
  });
19
21
  var deleteExtension = async (id, options) => invokeFetch("extensions", {
@@ -33,6 +35,7 @@ var patchExtension = async (id, body, options) => invokeFetch("extensions", {
33
35
  pathTemplate: "/api/v1/extensions/{id}",
34
36
  pathVariables: { id },
35
37
  body,
38
+ contentType: "multipart/form-data",
36
39
  options
37
40
  });
38
41
  var downloadExtension = async (id, options) => invokeFetch("extensions", {