@qlik/api 0.0.4 → 0.0.5

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 (165) hide show
  1. package/README.md +83 -2
  2. package/api-keys.d.mts +1 -1
  3. package/api-keys.d.ts +1 -1
  4. package/api-keys.js +10 -10
  5. package/api-keys.mjs +2 -2
  6. package/apps.d.mts +1 -1
  7. package/apps.d.ts +1 -1
  8. package/apps.js +46 -46
  9. package/apps.mjs +2 -2
  10. package/audits.d.mts +1 -1
  11. package/audits.d.ts +1 -1
  12. package/audits.js +9 -9
  13. package/audits.mjs +2 -2
  14. package/auth-6VOJ5YIL.js +41 -0
  15. package/{auth-CPBNNC7S.mjs → auth-7HMK2Q6F.mjs} +1 -1
  16. package/auth.js +3 -3
  17. package/auth.mjs +2 -2
  18. package/automations.d.mts +1 -1
  19. package/automations.d.ts +1 -1
  20. package/automations.js +21 -21
  21. package/automations.mjs +2 -2
  22. package/brands.d.mts +1 -1
  23. package/brands.d.ts +1 -1
  24. package/brands.js +15 -15
  25. package/brands.mjs +2 -2
  26. package/{chunk-D52VW5UN.js → chunk-2II4JNZO.js} +17 -13
  27. package/{chunk-GV5SRHY2.js → chunk-2NSUC46G.js} +4 -4
  28. package/{chunk-7RY3NO6N.js → chunk-7PAVHCQG.js} +2 -2
  29. package/{chunk-GNWU6SP2.mjs → chunk-EDRFS7GY.mjs} +1 -1
  30. package/{chunk-3SVRHJII.mjs → chunk-GLWHVX4M.mjs} +3 -3
  31. package/{chunk-2STFUQKQ.js → chunk-JZAPZIPR.js} +3 -3
  32. package/{chunk-TE7XMBT5.mjs → chunk-PUBPF4EZ.mjs} +1 -1
  33. package/{chunk-CYRLVHU3.mjs → chunk-QLS6D4AX.mjs} +17 -13
  34. package/{chunk-67GJTTPV.mjs → chunk-UXRTUKY5.mjs} +1 -1
  35. package/{chunk-JNGURO23.js → chunk-XJKF347C.js} +3 -3
  36. package/collections.d.mts +1 -1
  37. package/collections.d.ts +1 -1
  38. package/collections.js +14 -14
  39. package/collections.mjs +2 -2
  40. package/csp-origins.d.mts +1 -1
  41. package/csp-origins.d.ts +1 -1
  42. package/csp-origins.js +9 -9
  43. package/csp-origins.mjs +2 -2
  44. package/data-assets.d.mts +1 -1
  45. package/data-assets.d.ts +1 -1
  46. package/data-assets.js +8 -8
  47. package/data-assets.mjs +2 -2
  48. package/data-connections.d.mts +1 -1
  49. package/data-connections.d.ts +1 -1
  50. package/data-connections.js +12 -12
  51. package/data-connections.mjs +2 -2
  52. package/data-credentials.d.mts +1 -1
  53. package/data-credentials.d.ts +1 -1
  54. package/data-credentials.js +7 -7
  55. package/data-credentials.mjs +2 -2
  56. package/data-files.d.mts +1 -1
  57. package/data-files.d.ts +1 -1
  58. package/data-files.js +15 -15
  59. package/data-files.mjs +2 -2
  60. package/docs/authentication.md +220 -0
  61. package/docs/examples/create-app.md +51 -0
  62. package/docs/examples/create-session-app.md +88 -0
  63. package/docs/examples/fetch-spaces.md +104 -0
  64. package/docs/examples/show-sheet-list.md +81 -0
  65. package/docs/examples.md +10 -2
  66. package/docs/features.md +129 -0
  67. package/docs/qix.md +85 -0
  68. package/docs/rest.md +64 -0
  69. package/{enigma-session-XPXDQAIV.js → enigma-session-2OXUKTWL.js} +4 -4
  70. package/{enigma-session-ZH6MYA54.mjs → enigma-session-L4P4IJWW.mjs} +1 -1
  71. package/{esm-OY4XVIJB.mjs → esm-HMY2LVVZ.mjs} +1 -1
  72. package/{esm-3VXX2GKL.js → esm-PXQUPJYJ.js} +1 -1
  73. package/extensions.d.mts +1 -1
  74. package/extensions.d.ts +1 -1
  75. package/extensions.js +10 -10
  76. package/extensions.mjs +2 -2
  77. package/{global.types-hIvp-WdX.d.ts → global.types-1rNhDH7j.d.ts} +9 -0
  78. package/{global.types-Eto4uYwy.d.mts → global.types-4jzAvW7R.d.mts} +9 -0
  79. package/glossaries.d.mts +1 -1
  80. package/glossaries.d.ts +1 -1
  81. package/glossaries.js +27 -27
  82. package/glossaries.mjs +2 -2
  83. package/groups.d.mts +1 -1
  84. package/groups.d.ts +1 -1
  85. package/groups.js +11 -11
  86. package/groups.mjs +2 -2
  87. package/identity-providers.d.mts +1 -1
  88. package/identity-providers.d.ts +1 -1
  89. package/identity-providers.js +11 -11
  90. package/identity-providers.mjs +2 -2
  91. package/index.d.mts +1 -1
  92. package/index.d.ts +1 -1
  93. package/index.js +8 -8
  94. package/index.mjs +4 -4
  95. package/{invoke-fetch-3WZWAAZH.mjs → invoke-fetch-CK5Y37H3.mjs} +1 -1
  96. package/invoke-fetch-D52L5Y7B.js +17 -0
  97. package/items.d.mts +1 -1
  98. package/items.d.ts +1 -1
  99. package/items.js +11 -11
  100. package/items.mjs +2 -2
  101. package/licenses.d.mts +1 -1
  102. package/licenses.d.ts +1 -1
  103. package/licenses.js +12 -12
  104. package/licenses.mjs +2 -2
  105. package/package.json +7 -4
  106. package/{qix-UNWXPGMA.js → qix-FLNSZRQX.js} +8 -8
  107. package/{qix-ZSJ4PIK3.mjs → qix-MP65NOTD.mjs} +2 -2
  108. package/qix.d.mts +1 -1
  109. package/qix.d.ts +1 -1
  110. package/qix.js +3 -3
  111. package/qix.mjs +2 -2
  112. package/quotas.d.mts +1 -1
  113. package/quotas.d.ts +1 -1
  114. package/quotas.js +5 -5
  115. package/quotas.mjs +2 -2
  116. package/reload-tasks.d.mts +1 -1
  117. package/reload-tasks.d.ts +1 -1
  118. package/reload-tasks.js +8 -8
  119. package/reload-tasks.mjs +2 -2
  120. package/reloads.d.mts +1 -1
  121. package/reloads.d.ts +1 -1
  122. package/reloads.js +7 -7
  123. package/reloads.mjs +2 -2
  124. package/roles.d.mts +1 -1
  125. package/roles.d.ts +1 -1
  126. package/roles.js +5 -5
  127. package/roles.mjs +2 -2
  128. package/spaces.d.mts +1 -1
  129. package/spaces.d.ts +1 -1
  130. package/spaces.js +15 -15
  131. package/spaces.mjs +2 -2
  132. package/temp-contents.d.mts +1 -1
  133. package/temp-contents.d.ts +1 -1
  134. package/temp-contents.js +6 -6
  135. package/temp-contents.mjs +2 -2
  136. package/tenants.d.mts +1 -1
  137. package/tenants.d.ts +1 -1
  138. package/tenants.js +9 -9
  139. package/tenants.mjs +2 -2
  140. package/themes.d.mts +1 -1
  141. package/themes.d.ts +1 -1
  142. package/themes.js +10 -10
  143. package/themes.mjs +2 -2
  144. package/transports.d.mts +1 -1
  145. package/transports.d.ts +1 -1
  146. package/transports.js +9 -9
  147. package/transports.mjs +2 -2
  148. package/users.d.mts +1 -1
  149. package/users.d.ts +1 -1
  150. package/users.js +13 -13
  151. package/users.mjs +2 -2
  152. package/web-integrations.d.mts +1 -1
  153. package/web-integrations.d.ts +1 -1
  154. package/web-integrations.js +8 -8
  155. package/web-integrations.mjs +2 -2
  156. package/web-notifications.d.mts +1 -1
  157. package/web-notifications.d.ts +1 -1
  158. package/web-notifications.js +9 -9
  159. package/web-notifications.mjs +2 -2
  160. package/webhooks.d.mts +1 -1
  161. package/webhooks.d.ts +1 -1
  162. package/webhooks.js +13 -13
  163. package/webhooks.mjs +2 -2
  164. package/auth-AWZV4DPP.js +0 -41
  165. package/invoke-fetch-UNTAUR7O.js +0 -17
@@ -0,0 +1,41 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+
10
+
11
+
12
+
13
+
14
+
15
+
16
+
17
+
18
+
19
+
20
+ var _chunk2II4JNZOjs = require('./chunk-2II4JNZO.js');
21
+ require('./chunk-P57PW2II.js');
22
+
23
+
24
+
25
+
26
+
27
+
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+
36
+
37
+
38
+
39
+
40
+
41
+ exports.AuthorizationError = _chunk2II4JNZOjs.AuthorizationError; exports.InvalidAuthTypeError = _chunk2II4JNZOjs.InvalidAuthTypeError; exports.InvalidHostConfigError = _chunk2II4JNZOjs.InvalidHostConfigError; exports.UnexpectedAuthTypeError = _chunk2II4JNZOjs.UnexpectedAuthTypeError; exports.checkForCrossDomainRequest = _chunk2II4JNZOjs.checkForCrossDomainRequest; exports.default = _chunk2II4JNZOjs.auth_default; exports.getRestCallAuthParams = _chunk2II4JNZOjs.getRestCallAuthParams; exports.getWebResourceAuthParams = _chunk2II4JNZOjs.getWebResourceAuthParams; exports.getWebSocketAuthParams = _chunk2II4JNZOjs.getWebSocketAuthParams; exports.handleAuthenticationError = _chunk2II4JNZOjs.handleAuthenticationError; exports.isHostCrossOrigin = _chunk2II4JNZOjs.isHostCrossOrigin; exports.isWindows = _chunk2II4JNZOjs.isWindows; exports.logout = _chunk2II4JNZOjs.logout; exports.registerAuthModule = _chunk2II4JNZOjs.registerAuthModule; exports.setDefaultHostConfig = _chunk2II4JNZOjs.setDefaultHostConfig; exports.toValidEnigmaLocationUrl = _chunk2II4JNZOjs.toValidEnigmaLocationUrl; exports.toValidLocationUrl = _chunk2II4JNZOjs.toValidLocationUrl; exports.toValidWebsocketLocationUrl = _chunk2II4JNZOjs.toValidWebsocketLocationUrl;
@@ -17,7 +17,7 @@ import {
17
17
  toValidEnigmaLocationUrl,
18
18
  toValidLocationUrl,
19
19
  toValidWebsocketLocationUrl
20
- } from "./chunk-CYRLVHU3.mjs";
20
+ } from "./chunk-QLS6D4AX.mjs";
21
21
  import "./chunk-ZFXKCRJC.mjs";
22
22
  export {
23
23
  AuthorizationError,
package/auth.js CHANGED
@@ -3,12 +3,12 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkGV5SRHY2js = require('./chunk-GV5SRHY2.js');
7
- require('./chunk-2STFUQKQ.js');
6
+ var _chunk2NSUC46Gjs = require('./chunk-2NSUC46G.js');
7
+ require('./chunk-JZAPZIPR.js');
8
8
  require('./chunk-P57PW2II.js');
9
9
 
10
10
 
11
11
 
12
12
 
13
13
 
14
- exports.default = _chunkGV5SRHY2js.auth_default; exports.logout = _chunkGV5SRHY2js.logout; exports.registerAuthModule = _chunkGV5SRHY2js.registerAuthModule; exports.setDefaultHostConfig = _chunkGV5SRHY2js.setDefaultHostConfig;
14
+ exports.default = _chunk2NSUC46Gjs.auth_default; exports.logout = _chunk2NSUC46Gjs.logout; exports.registerAuthModule = _chunk2NSUC46Gjs.registerAuthModule; exports.setDefaultHostConfig = _chunk2NSUC46Gjs.setDefaultHostConfig;
package/auth.mjs CHANGED
@@ -3,8 +3,8 @@ import {
3
3
  logout,
4
4
  registerAuthModule,
5
5
  setDefaultHostConfig
6
- } from "./chunk-GNWU6SP2.mjs";
7
- import "./chunk-3SVRHJII.mjs";
6
+ } from "./chunk-EDRFS7GY.mjs";
7
+ import "./chunk-GLWHVX4M.mjs";
8
8
  import "./chunk-ZFXKCRJC.mjs";
9
9
  export {
10
10
  auth_default as default,
package/automations.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as ApiCallOptions } from './global.types-Eto4uYwy.mjs';
1
+ import { A as ApiCallOptions } from './global.types-4jzAvW7R.mjs';
2
2
  import './auth-types-nnUcWhuU.mjs';
3
3
 
4
4
  type AutomationDetailRequestObject = {
package/automations.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as ApiCallOptions } from './global.types-hIvp-WdX.js';
1
+ import { A as ApiCallOptions } from './global.types-1rNhDH7j.js';
2
2
  import './auth-types-nnUcWhuU.js';
3
3
 
4
4
  type AutomationDetailRequestObject = {
package/automations.js CHANGED
@@ -1,55 +1,55 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkJNGURO23js = require('./chunk-JNGURO23.js');
5
- require('./chunk-2STFUQKQ.js');
4
+ var _chunkXJKF347Cjs = require('./chunk-XJKF347C.js');
5
+ require('./chunk-JZAPZIPR.js');
6
6
  require('./chunk-P57PW2II.js');
7
7
 
8
8
  // src/public/rest/automations.ts
9
- var getAutomations = async (query, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "automations", {
9
+ var getAutomations = async (query, options) => _chunkXJKF347Cjs.invokeFetch.call(void 0, "automations", {
10
10
  method: "get",
11
11
  pathTemplate: "/api/v1/automations",
12
12
  query,
13
13
  options
14
14
  });
15
- var createAutomation = async (body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "automations", {
15
+ var createAutomation = async (body, options) => _chunkXJKF347Cjs.invokeFetch.call(void 0, "automations", {
16
16
  method: "post",
17
17
  pathTemplate: "/api/v1/automations",
18
18
  body,
19
19
  contentType: "application/json",
20
20
  options
21
21
  });
22
- var getAutomationsSettings = async (options) => _chunkJNGURO23js.invokeFetch.call(void 0, "automations", {
22
+ var getAutomationsSettings = async (options) => _chunkXJKF347Cjs.invokeFetch.call(void 0, "automations", {
23
23
  method: "get",
24
24
  pathTemplate: "/api/v1/automations/settings",
25
25
  options
26
26
  });
27
- var updateAutomationsSettings = async (body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "automations", {
27
+ var updateAutomationsSettings = async (body, options) => _chunkXJKF347Cjs.invokeFetch.call(void 0, "automations", {
28
28
  method: "put",
29
29
  pathTemplate: "/api/v1/automations/settings",
30
30
  body,
31
31
  contentType: "application/json",
32
32
  options
33
33
  });
34
- var getAutomationsUsageMetrics = async (query, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "automations", {
34
+ var getAutomationsUsageMetrics = async (query, options) => _chunkXJKF347Cjs.invokeFetch.call(void 0, "automations", {
35
35
  method: "get",
36
36
  pathTemplate: "/api/v1/automations/usage",
37
37
  query,
38
38
  options
39
39
  });
40
- var deleteAutomation = async (id, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "automations", {
40
+ var deleteAutomation = async (id, options) => _chunkXJKF347Cjs.invokeFetch.call(void 0, "automations", {
41
41
  method: "delete",
42
42
  pathTemplate: "/api/v1/automations/{id}",
43
43
  pathVariables: { id },
44
44
  options
45
45
  });
46
- var getAutomation = async (id, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "automations", {
46
+ var getAutomation = async (id, options) => _chunkXJKF347Cjs.invokeFetch.call(void 0, "automations", {
47
47
  method: "get",
48
48
  pathTemplate: "/api/v1/automations/{id}",
49
49
  pathVariables: { id },
50
50
  options
51
51
  });
52
- var updateAutomation = async (id, body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "automations", {
52
+ var updateAutomation = async (id, body, options) => _chunkXJKF347Cjs.invokeFetch.call(void 0, "automations", {
53
53
  method: "put",
54
54
  pathTemplate: "/api/v1/automations/{id}",
55
55
  pathVariables: { id },
@@ -57,7 +57,7 @@ var updateAutomation = async (id, body, options) => _chunkJNGURO23js.invokeFetch
57
57
  contentType: "application/json",
58
58
  options
59
59
  });
60
- var copyAutomation = async (id, body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "automations", {
60
+ var copyAutomation = async (id, body, options) => _chunkXJKF347Cjs.invokeFetch.call(void 0, "automations", {
61
61
  method: "post",
62
62
  pathTemplate: "/api/v1/automations/{id}/actions/copy",
63
63
  pathVariables: { id },
@@ -65,19 +65,19 @@ var copyAutomation = async (id, body, options) => _chunkJNGURO23js.invokeFetch.c
65
65
  contentType: "application/json",
66
66
  options
67
67
  });
68
- var disableAutomation = async (id, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "automations", {
68
+ var disableAutomation = async (id, options) => _chunkXJKF347Cjs.invokeFetch.call(void 0, "automations", {
69
69
  method: "post",
70
70
  pathTemplate: "/api/v1/automations/{id}/actions/disable",
71
71
  pathVariables: { id },
72
72
  options
73
73
  });
74
- var enableAutomation = async (id, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "automations", {
74
+ var enableAutomation = async (id, options) => _chunkXJKF347Cjs.invokeFetch.call(void 0, "automations", {
75
75
  method: "post",
76
76
  pathTemplate: "/api/v1/automations/{id}/actions/enable",
77
77
  pathVariables: { id },
78
78
  options
79
79
  });
80
- var moveAutomation = async (id, body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "automations", {
80
+ var moveAutomation = async (id, body, options) => _chunkXJKF347Cjs.invokeFetch.call(void 0, "automations", {
81
81
  method: "post",
82
82
  pathTemplate: "/api/v1/automations/{id}/actions/move",
83
83
  pathVariables: { id },
@@ -85,14 +85,14 @@ var moveAutomation = async (id, body, options) => _chunkJNGURO23js.invokeFetch.c
85
85
  contentType: "application/json",
86
86
  options
87
87
  });
88
- var getAutomationRuns = async (id, query, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "automations", {
88
+ var getAutomationRuns = async (id, query, options) => _chunkXJKF347Cjs.invokeFetch.call(void 0, "automations", {
89
89
  method: "get",
90
90
  pathTemplate: "/api/v1/automations/{id}/runs",
91
91
  pathVariables: { id },
92
92
  query,
93
93
  options
94
94
  });
95
- var queueAutomationRun = async (id, body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "automations", {
95
+ var queueAutomationRun = async (id, body, options) => _chunkXJKF347Cjs.invokeFetch.call(void 0, "automations", {
96
96
  method: "post",
97
97
  pathTemplate: "/api/v1/automations/{id}/runs",
98
98
  pathVariables: { id },
@@ -100,32 +100,32 @@ var queueAutomationRun = async (id, body, options) => _chunkJNGURO23js.invokeFet
100
100
  contentType: "application/json",
101
101
  options
102
102
  });
103
- var getAutomationRun = async (id, runId, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "automations", {
103
+ var getAutomationRun = async (id, runId, options) => _chunkXJKF347Cjs.invokeFetch.call(void 0, "automations", {
104
104
  method: "get",
105
105
  pathTemplate: "/api/v1/automations/{id}/runs/{runId}",
106
106
  pathVariables: { id, runId },
107
107
  options
108
108
  });
109
- var getAutomationRunDetails = async (id, runId, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "automations", {
109
+ var getAutomationRunDetails = async (id, runId, options) => _chunkXJKF347Cjs.invokeFetch.call(void 0, "automations", {
110
110
  method: "post",
111
111
  pathTemplate: "/api/v1/automations/{id}/runs/{runId}/actions/export",
112
112
  pathVariables: { id, runId },
113
113
  options
114
114
  });
115
- var retryAutomationRun = async (id, runId, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "automations", {
115
+ var retryAutomationRun = async (id, runId, options) => _chunkXJKF347Cjs.invokeFetch.call(void 0, "automations", {
116
116
  method: "post",
117
117
  pathTemplate: "/api/v1/automations/{id}/runs/{runId}/actions/retry",
118
118
  pathVariables: { id, runId },
119
119
  options
120
120
  });
121
- var stopAutomationRun = async (id, runId, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "automations", {
121
+ var stopAutomationRun = async (id, runId, options) => _chunkXJKF347Cjs.invokeFetch.call(void 0, "automations", {
122
122
  method: "post",
123
123
  pathTemplate: "/api/v1/automations/{id}/runs/{runId}/actions/stop",
124
124
  pathVariables: { id, runId },
125
125
  options
126
126
  });
127
127
  function clearCache() {
128
- return _chunkJNGURO23js.clearApiCache.call(void 0, "automations");
128
+ return _chunkXJKF347Cjs.clearApiCache.call(void 0, "automations");
129
129
  }
130
130
  var automationsExport = {
131
131
  getAutomations,
package/automations.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunk-TE7XMBT5.mjs";
5
- import "./chunk-3SVRHJII.mjs";
4
+ } from "./chunk-PUBPF4EZ.mjs";
5
+ import "./chunk-GLWHVX4M.mjs";
6
6
  import "./chunk-ZFXKCRJC.mjs";
7
7
 
8
8
  // src/public/rest/automations.ts
package/brands.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as ApiCallOptions } from './global.types-Eto4uYwy.mjs';
1
+ import { A as ApiCallOptions } from './global.types-4jzAvW7R.mjs';
2
2
  import './auth-types-nnUcWhuU.mjs';
3
3
 
4
4
  type Brand = {
package/brands.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as ApiCallOptions } from './global.types-hIvp-WdX.js';
1
+ import { A as ApiCallOptions } from './global.types-1rNhDH7j.js';
2
2
  import './auth-types-nnUcWhuU.js';
3
3
 
4
4
  type Brand = {
package/brands.js CHANGED
@@ -1,42 +1,42 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkJNGURO23js = require('./chunk-JNGURO23.js');
5
- require('./chunk-2STFUQKQ.js');
4
+ var _chunkXJKF347Cjs = require('./chunk-XJKF347C.js');
5
+ require('./chunk-JZAPZIPR.js');
6
6
  require('./chunk-P57PW2II.js');
7
7
 
8
8
  // src/public/rest/brands.ts
9
- var getBrands = async (query, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "brands", {
9
+ var getBrands = async (query, options) => _chunkXJKF347Cjs.invokeFetch.call(void 0, "brands", {
10
10
  method: "get",
11
11
  pathTemplate: "/api/v1/brands",
12
12
  query,
13
13
  options
14
14
  });
15
- var createBrand = async (body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "brands", {
15
+ var createBrand = async (body, options) => _chunkXJKF347Cjs.invokeFetch.call(void 0, "brands", {
16
16
  method: "post",
17
17
  pathTemplate: "/api/v1/brands",
18
18
  body,
19
19
  contentType: "multipart/form-data",
20
20
  options
21
21
  });
22
- var getActiveBrand = async (options) => _chunkJNGURO23js.invokeFetch.call(void 0, "brands", {
22
+ var getActiveBrand = async (options) => _chunkXJKF347Cjs.invokeFetch.call(void 0, "brands", {
23
23
  method: "get",
24
24
  pathTemplate: "/api/v1/brands/active",
25
25
  options
26
26
  });
27
- var deleteBrand = async (brandId, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "brands", {
27
+ var deleteBrand = async (brandId, options) => _chunkXJKF347Cjs.invokeFetch.call(void 0, "brands", {
28
28
  method: "delete",
29
29
  pathTemplate: "/api/v1/brands/{brand-id}",
30
30
  pathVariables: { "brand-id": brandId },
31
31
  options
32
32
  });
33
- var getBrand = async (brandId, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "brands", {
33
+ var getBrand = async (brandId, options) => _chunkXJKF347Cjs.invokeFetch.call(void 0, "brands", {
34
34
  method: "get",
35
35
  pathTemplate: "/api/v1/brands/{brand-id}",
36
36
  pathVariables: { "brand-id": brandId },
37
37
  options
38
38
  });
39
- var patchBrand = async (brandId, body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "brands", {
39
+ var patchBrand = async (brandId, body, options) => _chunkXJKF347Cjs.invokeFetch.call(void 0, "brands", {
40
40
  method: "patch",
41
41
  pathTemplate: "/api/v1/brands/{brand-id}",
42
42
  pathVariables: { "brand-id": brandId },
@@ -44,33 +44,33 @@ var patchBrand = async (brandId, body, options) => _chunkJNGURO23js.invokeFetch.
44
44
  contentType: "application/json",
45
45
  options
46
46
  });
47
- var activateBrand = async (brandId, body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "brands", {
47
+ var activateBrand = async (brandId, body, options) => _chunkXJKF347Cjs.invokeFetch.call(void 0, "brands", {
48
48
  method: "post",
49
49
  pathTemplate: "/api/v1/brands/{brand-id}/actions/activate",
50
50
  pathVariables: { "brand-id": brandId },
51
51
  body,
52
52
  options
53
53
  });
54
- var deactivateBrand = async (brandId, body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "brands", {
54
+ var deactivateBrand = async (brandId, body, options) => _chunkXJKF347Cjs.invokeFetch.call(void 0, "brands", {
55
55
  method: "post",
56
56
  pathTemplate: "/api/v1/brands/{brand-id}/actions/deactivate",
57
57
  pathVariables: { "brand-id": brandId },
58
58
  body,
59
59
  options
60
60
  });
61
- var deleteBrandFile = async (brandId, brandFileId, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "brands", {
61
+ var deleteBrandFile = async (brandId, brandFileId, options) => _chunkXJKF347Cjs.invokeFetch.call(void 0, "brands", {
62
62
  method: "delete",
63
63
  pathTemplate: "/api/v1/brands/{brand-id}/files/{brand-file-id}",
64
64
  pathVariables: { "brand-id": brandId, "brand-file-id": brandFileId },
65
65
  options
66
66
  });
67
- var getBrandFile = async (brandId, brandFileId, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "brands", {
67
+ var getBrandFile = async (brandId, brandFileId, options) => _chunkXJKF347Cjs.invokeFetch.call(void 0, "brands", {
68
68
  method: "get",
69
69
  pathTemplate: "/api/v1/brands/{brand-id}/files/{brand-file-id}",
70
70
  pathVariables: { "brand-id": brandId, "brand-file-id": brandFileId },
71
71
  options
72
72
  });
73
- var createBrandFile = async (brandId, brandFileId, body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "brands", {
73
+ var createBrandFile = async (brandId, brandFileId, body, options) => _chunkXJKF347Cjs.invokeFetch.call(void 0, "brands", {
74
74
  method: "post",
75
75
  pathTemplate: "/api/v1/brands/{brand-id}/files/{brand-file-id}",
76
76
  pathVariables: { "brand-id": brandId, "brand-file-id": brandFileId },
@@ -78,7 +78,7 @@ var createBrandFile = async (brandId, brandFileId, body, options) => _chunkJNGUR
78
78
  contentType: "multipart/form-data",
79
79
  options
80
80
  });
81
- var updateBrandFile = async (brandId, brandFileId, body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "brands", {
81
+ var updateBrandFile = async (brandId, brandFileId, body, options) => _chunkXJKF347Cjs.invokeFetch.call(void 0, "brands", {
82
82
  method: "put",
83
83
  pathTemplate: "/api/v1/brands/{brand-id}/files/{brand-file-id}",
84
84
  pathVariables: { "brand-id": brandId, "brand-file-id": brandFileId },
@@ -87,7 +87,7 @@ var updateBrandFile = async (brandId, brandFileId, body, options) => _chunkJNGUR
87
87
  options
88
88
  });
89
89
  function clearCache() {
90
- return _chunkJNGURO23js.clearApiCache.call(void 0, "brands");
90
+ return _chunkXJKF347Cjs.clearApiCache.call(void 0, "brands");
91
91
  }
92
92
  var brandsExport = {
93
93
  getBrands,
package/brands.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunk-TE7XMBT5.mjs";
5
- import "./chunk-3SVRHJII.mjs";
4
+ } from "./chunk-PUBPF4EZ.mjs";
5
+ import "./chunk-GLWHVX4M.mjs";
6
6
  import "./chunk-ZFXKCRJC.mjs";
7
7
 
8
8
  // src/public/rest/brands.ts
@@ -756,16 +756,19 @@ async function getOAuthTokensForNode(hostConfig) {
756
756
  'A host config with authType set to "oauth2" has to provide a clientId and a clientSecret'
757
757
  );
758
758
  }
759
- const oauthTokens = await loadOrAcquireAccessToken(
760
- hostConfig,
761
- async () => getOauthTokensWithCredentials(
759
+ const oauthTokens = await loadOrAcquireAccessToken(hostConfig, async () => {
760
+ if (!hostConfig.clientId || !hostConfig.clientSecret) {
761
+ throw new InvalidHostConfigError(
762
+ 'A host config with authType set to "oauth2" has to provide a clientId and a clientSecret'
763
+ );
764
+ }
765
+ return getOauthTokensWithCredentials(
762
766
  toValidLocationUrl(hostConfig),
763
767
  hostConfig.clientId,
764
- // @ts-expect-error clientSecret is not yet in HostConfig type
765
768
  hostConfig.clientSecret,
766
769
  hostConfig.scope
767
- )
768
- );
770
+ );
771
+ });
769
772
  return oauthTokens;
770
773
  }
771
774
  async function getOAuthTokensForBrowser(hostConfig) {
@@ -820,16 +823,17 @@ async function getOAuthAccessToken(hostConfig) {
820
823
  async function refreshAccessToken(hostConfig) {
821
824
  const tokens = await loadCachedOauthTokens(hostConfig);
822
825
  clearStoredOauthTokens(hostConfig);
823
- if (tokens && tokens.refreshToken) {
824
- const refreshedTokens = await loadOrAcquireAccessToken(
825
- hostConfig,
826
- async () => getOauthTokensWithRefreshToken(
826
+ if (tokens && tokens.refreshToken && hostConfig.clientSecret) {
827
+ const refreshedTokens = await loadOrAcquireAccessToken(hostConfig, async () => {
828
+ if (!tokens || !tokens.refreshToken || !hostConfig.clientSecret) {
829
+ throw new Error("Trying to refresh tokens without refreshToken or clientSecret");
830
+ }
831
+ return getOauthTokensWithRefreshToken(
827
832
  toValidLocationUrl(hostConfig),
828
833
  tokens.refreshToken,
829
- // @ts-expect-error clientSecret is not yet in HostConfig type
830
834
  hostConfig.clientSecret
831
- )
832
- );
835
+ );
836
+ });
833
837
  if (refreshedTokens) {
834
838
  handlePossibleErrors(refreshedTokens);
835
839
  }
@@ -1,16 +1,16 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk2STFUQKQjs = require('./chunk-2STFUQKQ.js');
3
+ var _chunkJZAPZIPRjs = require('./chunk-JZAPZIPR.js');
4
4
 
5
5
  // src/public/auth.ts
6
6
  function registerAuthModule(name, authModule) {
7
- void _chunk2STFUQKQjs.getAuthRuntimeModule.call(void 0, ).then((impl) => impl.registerAuthModule(name, authModule));
7
+ void _chunkJZAPZIPRjs.getAuthRuntimeModule.call(void 0, ).then((impl) => impl.registerAuthModule(name, authModule));
8
8
  }
9
9
  function logout() {
10
- void _chunk2STFUQKQjs.getAuthRuntimeModule.call(void 0, ).then((impl) => impl.logout());
10
+ void _chunkJZAPZIPRjs.getAuthRuntimeModule.call(void 0, ).then((impl) => impl.logout());
11
11
  }
12
12
  function setDefaultHostConfig(hostConfig) {
13
- void _chunk2STFUQKQjs.getAuthRuntimeModule.call(void 0, hostConfig).then((impl) => impl.setDefaultHostConfig(hostConfig));
13
+ void _chunkJZAPZIPRjs.getAuthRuntimeModule.call(void 0, hostConfig).then((impl) => impl.setDefaultHostConfig(hostConfig));
14
14
  }
15
15
  var auth_default = {
16
16
  registerAuthModule,
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk2STFUQKQjs = require('./chunk-2STFUQKQ.js');
3
+ var _chunkJZAPZIPRjs = require('./chunk-JZAPZIPR.js');
4
4
 
5
5
  // src/public/qix.ts
6
6
  function openAppSession(appSessionProps) {
7
- const appSessionPromise = _chunk2STFUQKQjs.getQixRuntimeModule.call(void 0, appSessionProps.hostConfig).then(
7
+ const appSessionPromise = _chunkJZAPZIPRjs.getQixRuntimeModule.call(void 0, appSessionProps.hostConfig).then(
8
8
  (impl) => impl.openAppSession(appSessionProps)
9
9
  );
10
10
  const appSessionProxy = {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getAuthRuntimeModule
3
- } from "./chunk-3SVRHJII.mjs";
3
+ } from "./chunk-GLWHVX4M.mjs";
4
4
 
5
5
  // src/public/auth.ts
6
6
  function registerAuthModule(name, authModule) {
@@ -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("./auth-CPBNNC7S.mjs") : import("./esm-OY4XVIJB.mjs").then((mod) => mod.importRuntimeModule("auth@v1", hostConfig));
4
+ return isNode ? import("./auth-7HMK2Q6F.mjs") : import("./esm-HMY2LVVZ.mjs").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("./qix-ZSJ4PIK3.mjs") : import("./esm-OY4XVIJB.mjs").then((mod) => mod.importRuntimeModule("qix@v1", hostConfig));
9
+ return isNode ? import("./qix-MP65NOTD.mjs") : import("./esm-HMY2LVVZ.mjs").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("./invoke-fetch-3WZWAAZH.mjs") : import("./esm-OY4XVIJB.mjs").then((mod) => mod.importRuntimeModule("invoke-fetch@v1", hostConfig));
14
+ return isNode ? import("./invoke-fetch-CK5Y37H3.mjs") : import("./esm-HMY2LVVZ.mjs").then((mod) => mod.importRuntimeModule("invoke-fetch@v1", hostConfig));
15
15
  }
16
16
 
17
17
  export {
@@ -1,17 +1,17 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } 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; }// src/public/public-runtime-modules.ts
2
2
  function getAuthRuntimeModule(hostConfig) {
3
3
  const isNode = !!_optionalChain([globalThis, 'access', _ => _.process, 'optionalAccess', _2 => _2.argv]);
4
- return isNode ? Promise.resolve().then(() => _interopRequireWildcard(require("./auth-AWZV4DPP.js"))) : Promise.resolve().then(() => _interopRequireWildcard(require("./esm-3VXX2GKL.js"))).then((mod) => mod.importRuntimeModule("auth@v1", hostConfig));
4
+ return isNode ? Promise.resolve().then(() => _interopRequireWildcard(require("./auth-6VOJ5YIL.js"))) : Promise.resolve().then(() => _interopRequireWildcard(require("./esm-PXQUPJYJ.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 = !!_optionalChain([globalThis, 'access', _3 => _3.process, 'optionalAccess', _4 => _4.argv]);
9
- return isNode ? Promise.resolve().then(() => _interopRequireWildcard(require("./qix-UNWXPGMA.js"))) : Promise.resolve().then(() => _interopRequireWildcard(require("./esm-3VXX2GKL.js"))).then((mod) => mod.importRuntimeModule("qix@v1", hostConfig));
9
+ return isNode ? Promise.resolve().then(() => _interopRequireWildcard(require("./qix-FLNSZRQX.js"))) : Promise.resolve().then(() => _interopRequireWildcard(require("./esm-PXQUPJYJ.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 = !!_optionalChain([globalThis, 'access', _5 => _5.process, 'optionalAccess', _6 => _6.argv]);
14
- return isNode ? Promise.resolve().then(() => _interopRequireWildcard(require("./invoke-fetch-UNTAUR7O.js"))) : Promise.resolve().then(() => _interopRequireWildcard(require("./esm-3VXX2GKL.js"))).then((mod) => mod.importRuntimeModule("invoke-fetch@v1", hostConfig));
14
+ return isNode ? Promise.resolve().then(() => _interopRequireWildcard(require("./invoke-fetch-D52L5Y7B.js"))) : Promise.resolve().then(() => _interopRequireWildcard(require("./esm-PXQUPJYJ.js"))).then((mod) => mod.importRuntimeModule("invoke-fetch@v1", hostConfig));
15
15
  }
16
16
 
17
17
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getInvokeFetchRuntimeModule
3
- } from "./chunk-3SVRHJII.mjs";
3
+ } from "./chunk-GLWHVX4M.mjs";
4
4
 
5
5
  // src/public/invoke-fetch.ts
6
6
  async function invokeFetch(api, props) {
@@ -756,16 +756,19 @@ async function getOAuthTokensForNode(hostConfig) {
756
756
  'A host config with authType set to "oauth2" has to provide a clientId and a clientSecret'
757
757
  );
758
758
  }
759
- const oauthTokens = await loadOrAcquireAccessToken(
760
- hostConfig,
761
- async () => getOauthTokensWithCredentials(
759
+ const oauthTokens = await loadOrAcquireAccessToken(hostConfig, async () => {
760
+ if (!hostConfig.clientId || !hostConfig.clientSecret) {
761
+ throw new InvalidHostConfigError(
762
+ 'A host config with authType set to "oauth2" has to provide a clientId and a clientSecret'
763
+ );
764
+ }
765
+ return getOauthTokensWithCredentials(
762
766
  toValidLocationUrl(hostConfig),
763
767
  hostConfig.clientId,
764
- // @ts-expect-error clientSecret is not yet in HostConfig type
765
768
  hostConfig.clientSecret,
766
769
  hostConfig.scope
767
- )
768
- );
770
+ );
771
+ });
769
772
  return oauthTokens;
770
773
  }
771
774
  async function getOAuthTokensForBrowser(hostConfig) {
@@ -820,16 +823,17 @@ async function getOAuthAccessToken(hostConfig) {
820
823
  async function refreshAccessToken(hostConfig) {
821
824
  const tokens = await loadCachedOauthTokens(hostConfig);
822
825
  clearStoredOauthTokens(hostConfig);
823
- if (tokens && tokens.refreshToken) {
824
- const refreshedTokens = await loadOrAcquireAccessToken(
825
- hostConfig,
826
- async () => getOauthTokensWithRefreshToken(
826
+ if (tokens && tokens.refreshToken && hostConfig.clientSecret) {
827
+ const refreshedTokens = await loadOrAcquireAccessToken(hostConfig, async () => {
828
+ if (!tokens || !tokens.refreshToken || !hostConfig.clientSecret) {
829
+ throw new Error("Trying to refresh tokens without refreshToken or clientSecret");
830
+ }
831
+ return getOauthTokensWithRefreshToken(
827
832
  toValidLocationUrl(hostConfig),
828
833
  tokens.refreshToken,
829
- // @ts-expect-error clientSecret is not yet in HostConfig type
830
834
  hostConfig.clientSecret
831
- )
832
- );
835
+ );
836
+ });
833
837
  if (refreshedTokens) {
834
838
  handlePossibleErrors(refreshedTokens);
835
839
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getQixRuntimeModule
3
- } from "./chunk-3SVRHJII.mjs";
3
+ } from "./chunk-GLWHVX4M.mjs";
4
4
 
5
5
  // src/public/qix.ts
6
6
  function openAppSession(appSessionProps) {
@@ -1,14 +1,14 @@
1
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; }
2
2
 
3
- var _chunk2STFUQKQjs = require('./chunk-2STFUQKQ.js');
3
+ var _chunkJZAPZIPRjs = require('./chunk-JZAPZIPR.js');
4
4
 
5
5
  // src/public/invoke-fetch.ts
6
6
  async function invokeFetch(api, props) {
7
7
  const hostConfig = _optionalChain([props, 'access', _ => _.options, 'optionalAccess', _2 => _2.hostConfig]);
8
- return (await _chunk2STFUQKQjs.getInvokeFetchRuntimeModule.call(void 0, hostConfig)).invokeFetch(api, props);
8
+ return (await _chunkJZAPZIPRjs.getInvokeFetchRuntimeModule.call(void 0, hostConfig)).invokeFetch(api, props);
9
9
  }
10
10
  function clearApiCache(api) {
11
- void _chunk2STFUQKQjs.getInvokeFetchRuntimeModule.call(void 0, ).then((runtimeModule) => runtimeModule.clearApiCache(api));
11
+ void _chunkJZAPZIPRjs.getInvokeFetchRuntimeModule.call(void 0, ).then((runtimeModule) => runtimeModule.clearApiCache(api));
12
12
  }
13
13
 
14
14
 
package/collections.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as ApiCallOptions } from './global.types-Eto4uYwy.mjs';
1
+ import { A as ApiCallOptions } from './global.types-4jzAvW7R.mjs';
2
2
  import './auth-types-nnUcWhuU.mjs';
3
3
 
4
4
  type CollectionByIdPatch = {
package/collections.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as ApiCallOptions } from './global.types-hIvp-WdX.js';
1
+ import { A as ApiCallOptions } from './global.types-1rNhDH7j.js';
2
2
  import './auth-types-nnUcWhuU.js';
3
3
 
4
4
  type CollectionByIdPatch = {