@qlik/api 2.2.0 → 2.3.1

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 (232) hide show
  1. package/analytics/change-stores.d.ts +386 -0
  2. package/analytics/change-stores.js +123 -0
  3. package/analytics.d.ts +14 -0
  4. package/analytics.js +13 -0
  5. package/api-keys.d.ts +362 -3
  6. package/api-keys.js +2 -3
  7. package/apps.d.ts +2673 -3
  8. package/apps.js +2 -3
  9. package/assistants.d.ts +1370 -3
  10. package/assistants.js +2 -3
  11. package/audits.d.ts +318 -3
  12. package/audits.js +4 -4
  13. package/auth-types.d.ts +1 -1
  14. package/auth-types.js +1 -2
  15. package/auth.d.ts +94 -2
  16. package/auth.js +63 -3
  17. package/automation-connections.d.ts +366 -3
  18. package/automation-connections.js +2 -3
  19. package/automation-connectors.d.ts +84 -3
  20. package/automation-connectors.js +2 -3
  21. package/automations.d.ts +805 -3
  22. package/automations.js +2 -3
  23. package/automl-deployments.d.ts +101 -3
  24. package/automl-deployments.js +2 -3
  25. package/automl-predictions.d.ts +238 -3
  26. package/automl-predictions.js +2 -3
  27. package/banners.d.ts +184 -3
  28. package/banners.js +2 -3
  29. package/brands.d.ts +670 -3
  30. package/brands.js +2 -3
  31. package/chunks/auth-XusKk8IA.js +32 -0
  32. package/chunks/{chunk-EtTptKIv.js → chunk-D3vHIbds.js} +2 -2
  33. package/chunks/{dist-gXLIqDJW.js → dist-n3iOVn1W.js} +4 -4
  34. package/chunks/{auth-functions-BmZgZYSs.js → interceptors-2VSXImC9.js} +498 -146
  35. package/chunks/{invoke-fetch-PcVIxLW4.js → invoke-fetch-CckTK7bh.js} +3 -3
  36. package/chunks/{invoke-fetch-CucBpA1C.js → invoke-fetch-D9lpiAb-.js} +1 -5
  37. package/chunks/{public-runtime-modules-Dwjzb3l8.js → public-runtime-modules-BqxAMJ9M.js} +7 -7
  38. package/chunks/{qix-DI5o5XF4.d.ts → qix-CrqXv44x.d.ts} +6 -2
  39. package/chunks/{qix-DjxuPCX0.js → qix-DpvHvpx7.js} +11 -10
  40. package/chunks/{qix-chunk-entrypoint-tmTo-kpa.js → qix-chunk-entrypoint-BXZPnE6J.js} +48 -50
  41. package/collections.d.ts +582 -3
  42. package/collections.js +2 -3
  43. package/conditions.d.ts +662 -3
  44. package/conditions.js +2 -3
  45. package/consumption.d.ts +182 -3
  46. package/consumption.js +2 -3
  47. package/core/ip-policies.d.ts +328 -4
  48. package/core/ip-policies.js +108 -5
  49. package/core.d.ts +13 -4
  50. package/core.js +3 -4
  51. package/csp-origins.d.ts +273 -3
  52. package/csp-origins.js +2 -3
  53. package/csrf-token.d.ts +62 -3
  54. package/csrf-token.js +2 -3
  55. package/data-alerts.d.ts +1004 -3
  56. package/data-alerts.js +2 -3
  57. package/data-assets.d.ts +207 -3
  58. package/data-assets.js +2 -3
  59. package/data-connections.d.ts +678 -3
  60. package/data-connections.js +2 -3
  61. package/data-credentials.d.ts +292 -3
  62. package/data-credentials.js +2 -3
  63. package/data-files.d.ts +860 -3
  64. package/data-files.js +2 -3
  65. package/data-qualities.d.ts +175 -3
  66. package/data-qualities.js +2 -3
  67. package/data-sets.d.ts +424 -3
  68. package/data-sets.js +2 -3
  69. package/data-sources.d.ts +348 -3
  70. package/data-sources.js +2 -3
  71. package/data-stores.d.ts +537 -3
  72. package/data-stores.js +2 -3
  73. package/dcaas.d.ts +192 -3
  74. package/dcaas.js +2 -3
  75. package/di-projects.d.ts +812 -4
  76. package/di-projects.js +25 -4
  77. package/direct-access-agents.d.ts +710 -4
  78. package/direct-access-agents.js +37 -5
  79. package/docs/authentication.md +1 -1
  80. package/encryption.d.ts +372 -3
  81. package/encryption.js +2 -3
  82. package/extensions.d.ts +295 -3
  83. package/extensions.js +2 -3
  84. package/global-types.d.ts +1 -1
  85. package/global-types.js +0 -2
  86. package/glossaries.d.ts +1223 -3
  87. package/glossaries.js +2 -3
  88. package/groups.d.ts +510 -3
  89. package/groups.js +2 -3
  90. package/identity-providers.d.ts +711 -3
  91. package/identity-providers.js +2 -3
  92. package/index.d.ts +78 -69
  93. package/index.js +28 -10
  94. package/interceptors.d.ts +52 -3
  95. package/interceptors.js +1 -2
  96. package/invoke-fetch-types.d.ts +1 -1
  97. package/items.d.ts +536 -3
  98. package/items.js +2 -3
  99. package/knowledgebases.d.ts +976 -3
  100. package/knowledgebases.js +2 -3
  101. package/licenses.d.ts +663 -3
  102. package/licenses.js +2 -3
  103. package/lineage-graphs.d.ts +704 -3
  104. package/lineage-graphs.js +2 -3
  105. package/ml.d.ts +2808 -3
  106. package/ml.js +2 -3
  107. package/notes.d.ts +110 -3
  108. package/notes.js +2 -3
  109. package/notifications.d.ts +98 -3
  110. package/notifications.js +2 -3
  111. package/oauth-callback.iife.js +1151 -0
  112. package/oauth-clients.d.ts +562 -3
  113. package/oauth-clients.js +2 -3
  114. package/oauth-tokens.d.ts +126 -3
  115. package/oauth-tokens.js +2 -3
  116. package/package.json +5 -4
  117. package/qix.d.ts +3 -3
  118. package/qix.js +38 -3
  119. package/questions.d.ts +364 -3
  120. package/questions.js +2 -3
  121. package/quotas.d.ts +112 -3
  122. package/quotas.js +2 -3
  123. package/reload-tasks.d.ts +249 -3
  124. package/reload-tasks.js +2 -3
  125. package/reloads.d.ts +260 -3
  126. package/reloads.js +2 -3
  127. package/report-templates.d.ts +287 -3
  128. package/report-templates.js +2 -3
  129. package/reports.d.ts +863 -3
  130. package/reports.js +2 -3
  131. package/roles.d.ts +312 -3
  132. package/roles.js +2 -3
  133. package/sharing-tasks.d.ts +1164 -3
  134. package/sharing-tasks.js +2 -3
  135. package/spaces.d.ts +779 -3
  136. package/spaces.js +2 -3
  137. package/tasks.d.ts +564 -3
  138. package/tasks.js +2 -3
  139. package/temp-contents.d.ts +167 -3
  140. package/temp-contents.js +2 -3
  141. package/tenants.d.ts +360 -3
  142. package/tenants.js +2 -3
  143. package/themes.d.ts +270 -3
  144. package/themes.js +2 -3
  145. package/transports.d.ts +435 -4
  146. package/transports.js +20 -5
  147. package/ui-config.d.ts +274 -3
  148. package/ui-config.js +2 -3
  149. package/users.d.ts +674 -3
  150. package/users.js +2 -3
  151. package/web-integrations.d.ts +294 -3
  152. package/web-integrations.js +2 -3
  153. package/web-notifications.d.ts +273 -3
  154. package/web-notifications.js +2 -3
  155. package/webhooks.d.ts +505 -3
  156. package/webhooks.js +2 -3
  157. package/chunks/api-keys-D6Rqaov4.d.ts +0 -365
  158. package/chunks/apps-BwpXUGDb.d.ts +0 -2673
  159. package/chunks/assistants-wh6Qe7l6.d.ts +0 -1366
  160. package/chunks/audits-DakwzT97.d.ts +0 -316
  161. package/chunks/auth-6mptVm5Q.d.ts +0 -95
  162. package/chunks/auth-Cle0_tmz.js +0 -32
  163. package/chunks/auth-D11iO7ZV.js +0 -65
  164. package/chunks/automation-connections-k2G_n9rj.d.ts +0 -366
  165. package/chunks/automation-connectors-J5OE-1P0.d.ts +0 -84
  166. package/chunks/automations-BGy83EBO.d.ts +0 -797
  167. package/chunks/automl-deployments-CWEpX2pk.d.ts +0 -101
  168. package/chunks/automl-predictions-BNIjRhBm.d.ts +0 -238
  169. package/chunks/banners-CgBRnZGv.d.ts +0 -184
  170. package/chunks/brands-DCgk6Gqx.d.ts +0 -671
  171. package/chunks/collections-BpYjcpIY.d.ts +0 -582
  172. package/chunks/conditions-CJJG7Uph.d.ts +0 -662
  173. package/chunks/consumption-DerFk437.d.ts +0 -182
  174. package/chunks/core-DQXNZdnf.d.ts +0 -12
  175. package/chunks/csp-origins-3NJlh_n9.d.ts +0 -273
  176. package/chunks/csrf-token-DoaoOQzH.d.ts +0 -63
  177. package/chunks/data-alerts-CILSEFbQ.d.ts +0 -1004
  178. package/chunks/data-assets-CJDcssoX.d.ts +0 -207
  179. package/chunks/data-connections-VSB13K6g.d.ts +0 -678
  180. package/chunks/data-credentials-ChEp_hyU.d.ts +0 -292
  181. package/chunks/data-files-CVzn9M6V.d.ts +0 -860
  182. package/chunks/data-qualities-DBrot957.d.ts +0 -176
  183. package/chunks/data-sets-CFzxgWnO.d.ts +0 -424
  184. package/chunks/data-sources-IsAaof_C.d.ts +0 -346
  185. package/chunks/data-stores-DFOPdgfz.d.ts +0 -537
  186. package/chunks/dcaas-qyv7YlrN.d.ts +0 -192
  187. package/chunks/di-projects-DVQTxASr.d.ts +0 -777
  188. package/chunks/direct-access-agents-B77OhzZi.d.ts +0 -580
  189. package/chunks/encryption-BjA6xbCO.d.ts +0 -372
  190. package/chunks/extensions-OO0WtInj.d.ts +0 -294
  191. package/chunks/glossaries-CIX7-KT_.d.ts +0 -1213
  192. package/chunks/groups-C86-UG7S.d.ts +0 -511
  193. package/chunks/identity-providers-h0dKNxGZ.d.ts +0 -711
  194. package/chunks/interceptors-Csx2tEi5.d.ts +0 -52
  195. package/chunks/interceptors-DTYm37AU.js +0 -104
  196. package/chunks/ip-policies-CKRIlbP7.d.ts +0 -327
  197. package/chunks/ip-policies-DXlf172B.js +0 -108
  198. package/chunks/items-C-jzqvFW.d.ts +0 -536
  199. package/chunks/knowledgebases-CyQtVcZN.d.ts +0 -977
  200. package/chunks/licenses-xzjnkitW.d.ts +0 -663
  201. package/chunks/lineage-graphs-CViCCzKy.d.ts +0 -697
  202. package/chunks/ml-Abt2MUva.d.ts +0 -2809
  203. package/chunks/notes-BZxuyDgt.d.ts +0 -111
  204. package/chunks/notifications-Bd_gp4jU.d.ts +0 -99
  205. package/chunks/oauth-clients-B5QPr4IM.d.ts +0 -563
  206. package/chunks/oauth-tokens-1b7V8182.d.ts +0 -127
  207. package/chunks/qix-CYQsLyGQ.js +0 -40
  208. package/chunks/questions-BVp0tvNs.d.ts +0 -364
  209. package/chunks/quotas-CfAebRJd.d.ts +0 -113
  210. package/chunks/reload-tasks-DfwUTetn.d.ts +0 -249
  211. package/chunks/reloads-CwmagnFx.d.ts +0 -260
  212. package/chunks/report-templates-DjQYj5dn.d.ts +0 -287
  213. package/chunks/reports-DzNC6Uq3.d.ts +0 -861
  214. package/chunks/roles-BYFIY6E7.d.ts +0 -312
  215. package/chunks/sharing-tasks-BMGIQ-FO.d.ts +0 -1164
  216. package/chunks/spaces-BK823t-b.d.ts +0 -780
  217. package/chunks/tasks-COKDfShO.d.ts +0 -564
  218. package/chunks/temp-contents-zDomB-g6.d.ts +0 -168
  219. package/chunks/tenants-Bhn86519.d.ts +0 -361
  220. package/chunks/themes-v9NbhiBo.d.ts +0 -269
  221. package/chunks/transports-CqEiFxD3.d.ts +0 -362
  222. package/chunks/ui-config-Crs0mVMp.d.ts +0 -274
  223. package/chunks/users-BSOBU_fg.d.ts +0 -675
  224. package/chunks/web-integrations-MisPAHod.d.ts +0 -295
  225. package/chunks/web-notifications-DVy6FHYh.d.ts +0 -274
  226. package/chunks/webhooks-Dr4EiXqy.d.ts +0 -505
  227. /package/chunks/{auth-types-E99tzdN0.d.ts → auth-types-YrlH_R9f.d.ts} +0 -0
  228. /package/chunks/{auth-types-JehqruDP.js → auth-types-h43TVDpB.js} +0 -0
  229. /package/chunks/{global-types-CrOvI33z.js → global-types-CEVAJebk.js} +0 -0
  230. /package/chunks/{invoke-fetch-CbU2Dgqr.d.ts → invoke-fetch-C1Z0RJYU.d.ts} +0 -0
  231. /package/chunks/{utils-BnC4lrlq.js → utils-vv-xFm06.js} +0 -0
  232. /package/chunks/{websocket-errors-DSbO6kDZ.js → websocket-errors-CRTDTtBL.js} +0 -0
@@ -1,4 +1,295 @@
1
- import "./chunks/auth-types-E99tzdN0.js";
2
- import "./chunks/invoke-fetch-CbU2Dgqr.js";
3
- import { C as getWebIntegration, E as webIntegrationsExport, S as deleteWebIntegration, T as patchWebIntegration, _ as WebIntegrationPostSchema, a as Error, b as clearCache, c as GetWebIntegrationHttpResponse, d as PatchWebIntegrationHttpError, f as PatchWebIntegrationHttpResponse, g as WebIntegrationPost, h as WebIntegrationPatchSchema, i as DeleteWebIntegrationHttpResponse, l as GetWebIntegrationsHttpError, m as WebIntegrationPatch, n as CreateWebIntegrationHttpResponse, o as Errors, p as WebIntegration, r as DeleteWebIntegrationHttpError, s as GetWebIntegrationHttpError, t as CreateWebIntegrationHttpError, u as GetWebIntegrationsHttpResponse, v as WebIntegrations, w as getWebIntegrations, x as createWebIntegration, y as WebIntegrationsAPI } from "./chunks/web-integrations-MisPAHod.js";
1
+ import { y as ApiCallOptions } from "./chunks/auth-types-YrlH_R9f.js";
2
+ import "./chunks/invoke-fetch-C1Z0RJYU.js";
3
+
4
+ //#region src/public/rest/web-integrations.d.ts
5
+ /**
6
+ * An error object describing the error.
7
+ */
8
+ type Error = {
9
+ /** The error code. */
10
+ code: string;
11
+ /** A human-readable explanation specific to this occurrence of the error. */
12
+ detail?: string;
13
+ /** Additional properties relating to the error. */
14
+ meta?: unknown;
15
+ /** References to the source of the error. */
16
+ source?: {
17
+ /** The URI query parameter that caused the error. */
18
+ parameter?: string;
19
+ /** A JSON Pointer to the property that caused the error. */
20
+ pointer?: string;
21
+ };
22
+ /** The HTTP status code. */
23
+ status: string;
24
+ /** Summary of the problem. */
25
+ title: string;
26
+ };
27
+ /**
28
+ * The error response object describing the error from the handling of an HTTP request.
29
+ * @example
30
+ * {
31
+ * errors: [
32
+ * {
33
+ * code: "TENANTS-8",
34
+ * title: "Not found"
35
+ * }
36
+ * ],
37
+ * traceId: "000000000000000079cf1ebeae103de1"
38
+ * }
39
+ */
40
+ type Errors = {
41
+ /** An array of errors related to the operation. */
42
+ errors?: Error[];
43
+ /** A unique identifier for tracing the error. */
44
+ traceId?: string;
45
+ };
46
+ /**
47
+ * A web integration object.
48
+ */
49
+ type WebIntegration = {
50
+ /** The time the web integration was created. */
51
+ readonly created?: string;
52
+ /** The user that created the web integration. */
53
+ readonly createdBy?: string;
54
+ /** The unique web integration identifier. */
55
+ readonly id?: string;
56
+ /** The time the web integration was last updated. */
57
+ readonly lastUpdated?: string;
58
+ /** The name of the web integration. */
59
+ name?: string;
60
+ /** The tenant that the web integration belongs to. */
61
+ tenantId?: string;
62
+ /** The origins that are allowed to make requests to the tenant. */
63
+ validOrigins?: string[];
64
+ };
65
+ /**
66
+ * A JSON Patch document as defined in http://tools.ietf.org/html/rfc6902.
67
+ */
68
+ type WebIntegrationPatch = {
69
+ /** The operation to be performed. */
70
+ op: "replace";
71
+ /** A JSON Pointer. */
72
+ path: "/name" | "/validOrigins";
73
+ /** New value to be used for this operation. */
74
+ value: string;
75
+ };
76
+ /**
77
+ * @example
78
+ * [
79
+ * {
80
+ * op: "replace",
81
+ * path: "/name",
82
+ * value: "New name"
83
+ * }
84
+ * ]
85
+ */
86
+ type WebIntegrationPatchSchema = WebIntegrationPatch[];
87
+ /**
88
+ * The creation of a web integration response.
89
+ */
90
+ type WebIntegrationPost = {
91
+ /** The time the web integration was created. */
92
+ readonly created?: string;
93
+ /** The user that created the web integration. */
94
+ readonly createdBy?: string;
95
+ /** The unique web integration identifier. */
96
+ readonly id?: string;
97
+ /** The time the web integration was last updated. */
98
+ readonly lastUpdated?: string;
99
+ /** Pagination links */
100
+ links?: {
101
+ /** Link information for current page. */
102
+ self: {
103
+ /** URL to the current page of records. */
104
+ href: string;
105
+ };
106
+ };
107
+ /** The name of the newly created web integration. */
108
+ name?: string;
109
+ /** The tenant that the web integration belongs to. */
110
+ tenantId?: string;
111
+ /** The origins that are allowed to make requests to the tenant. */
112
+ validOrigins?: string[];
113
+ };
114
+ type WebIntegrationPostSchema = {
115
+ /** The name of the web integration to create. */
116
+ name: string;
117
+ /** The origins that are allowed to make requests to the tenant. */
118
+ validOrigins?: string[];
119
+ };
120
+ /**
121
+ * An array of web integration objects.
122
+ */
123
+ type WebIntegrations = {
124
+ /** Properties of web integrations in a given tenant. */
125
+ data?: WebIntegration[];
126
+ /** Pagination links */
127
+ links?: {
128
+ /** Link information for next page. */
129
+ next?: {
130
+ /** URL to the next page of records. */
131
+ href: string;
132
+ };
133
+ /** Link information for previous page. */
134
+ prev?: {
135
+ /** URL to the previous page of records. */
136
+ href: string;
137
+ };
138
+ /** Link information for current page. */
139
+ self: {
140
+ /** URL to the current page of records. */
141
+ href: string;
142
+ };
143
+ };
144
+ };
145
+ /**
146
+ * Retrieves web integrations matching the query.
147
+ *
148
+ * @param query an object with query parameters
149
+ * @throws GetWebIntegrationsHttpError
150
+ */
151
+ declare function getWebIntegrations(query: {
152
+ /** The target web integration ID to start looking before for web integrations. Cannot be used in conjunction with startingAfter. */
153
+ endingBefore?: string;
154
+ /** The number of web integration entries to retrieve. */
155
+ limit?: number;
156
+ /** The field to sort by. Prefix with +/- to indicate ascending/descending order. */
157
+ sort?: "name" | "+name" | "-name";
158
+ /** The target web integration ID to start looking after for web integrations. Cannot be used in conjunction with endingBefore. */
159
+ startingAfter?: string;
160
+ /** The tenant ID to filter by. */
161
+ tenantId?: string;
162
+ }, options?: ApiCallOptions): Promise<GetWebIntegrationsHttpResponse>;
163
+ type GetWebIntegrationsHttpResponse = {
164
+ data: WebIntegrations;
165
+ headers: Headers;
166
+ status: 200;
167
+ prev?: (options?: ApiCallOptions) => Promise<GetWebIntegrationsHttpResponse>;
168
+ next?: (options?: ApiCallOptions) => Promise<GetWebIntegrationsHttpResponse>;
169
+ };
170
+ type GetWebIntegrationsHttpError = {
171
+ data: Errors;
172
+ headers: Headers;
173
+ status: number;
174
+ };
175
+ /**
176
+ * Creates a web integration.
177
+ *
178
+ * @param body an object with the body content
179
+ * @throws CreateWebIntegrationHttpError
180
+ */
181
+ declare function createWebIntegration(body: WebIntegrationPostSchema, options?: ApiCallOptions): Promise<CreateWebIntegrationHttpResponse>;
182
+ type CreateWebIntegrationHttpResponse = {
183
+ data: WebIntegrationPost;
184
+ headers: Headers;
185
+ status: 201;
186
+ };
187
+ type CreateWebIntegrationHttpError = {
188
+ data: Errors;
189
+ headers: Headers;
190
+ status: 400 | 403;
191
+ };
192
+ /**
193
+ * Deletes a single web integration by ID.
194
+ *
195
+ * @param id The ID of the web integration to delete.
196
+ * @throws DeleteWebIntegrationHttpError
197
+ */
198
+ declare function deleteWebIntegration(id: string, options?: ApiCallOptions): Promise<DeleteWebIntegrationHttpResponse>;
199
+ type DeleteWebIntegrationHttpResponse = {
200
+ data: void;
201
+ headers: Headers;
202
+ status: 204;
203
+ };
204
+ type DeleteWebIntegrationHttpError = {
205
+ data: Errors;
206
+ headers: Headers;
207
+ status: 404;
208
+ };
209
+ /**
210
+ * Retrieves a single web integration by ID.
211
+ *
212
+ * @param id The ID of the web integration to retrieve.
213
+ * @throws GetWebIntegrationHttpError
214
+ */
215
+ declare function getWebIntegration(id: string, options?: ApiCallOptions): Promise<GetWebIntegrationHttpResponse>;
216
+ type GetWebIntegrationHttpResponse = {
217
+ data: WebIntegration;
218
+ headers: Headers;
219
+ status: 200;
220
+ };
221
+ type GetWebIntegrationHttpError = {
222
+ data: Errors;
223
+ headers: Headers;
224
+ status: 404;
225
+ };
226
+ /**
227
+ * Updates a single web integration by ID.
228
+ *
229
+ * @param id The ID of the web integration to update.
230
+ * @param body an object with the body content
231
+ * @throws PatchWebIntegrationHttpError
232
+ */
233
+ declare function patchWebIntegration(id: string, body: WebIntegrationPatchSchema, options?: ApiCallOptions): Promise<PatchWebIntegrationHttpResponse>;
234
+ type PatchWebIntegrationHttpResponse = {
235
+ data: void;
236
+ headers: Headers;
237
+ status: 204;
238
+ };
239
+ type PatchWebIntegrationHttpError = {
240
+ data: Errors;
241
+ headers: Headers;
242
+ status: 400 | 404;
243
+ };
244
+ /**
245
+ * Clears the cache for web-integrations api requests.
246
+ */
247
+ declare function clearCache(): void;
248
+ type WebIntegrationsAPI = {
249
+ /**
250
+ * Retrieves web integrations matching the query.
251
+ *
252
+ * @param query an object with query parameters
253
+ * @throws GetWebIntegrationsHttpError
254
+ */
255
+ getWebIntegrations: typeof getWebIntegrations;
256
+ /**
257
+ * Creates a web integration.
258
+ *
259
+ * @param body an object with the body content
260
+ * @throws CreateWebIntegrationHttpError
261
+ */
262
+ createWebIntegration: typeof createWebIntegration;
263
+ /**
264
+ * Deletes a single web integration by ID.
265
+ *
266
+ * @param id The ID of the web integration to delete.
267
+ * @throws DeleteWebIntegrationHttpError
268
+ */
269
+ deleteWebIntegration: typeof deleteWebIntegration;
270
+ /**
271
+ * Retrieves a single web integration by ID.
272
+ *
273
+ * @param id The ID of the web integration to retrieve.
274
+ * @throws GetWebIntegrationHttpError
275
+ */
276
+ getWebIntegration: typeof getWebIntegration;
277
+ /**
278
+ * Updates a single web integration by ID.
279
+ *
280
+ * @param id The ID of the web integration to update.
281
+ * @param body an object with the body content
282
+ * @throws PatchWebIntegrationHttpError
283
+ */
284
+ patchWebIntegration: typeof patchWebIntegration;
285
+ /**
286
+ * Clears the cache for web-integrations api requests.
287
+ */
288
+ clearCache: typeof clearCache;
289
+ };
290
+ /**
291
+ * Functions for the web-integrations api
292
+ */
293
+ declare const webIntegrationsExport: WebIntegrationsAPI;
294
+ //#endregion
4
295
  export { CreateWebIntegrationHttpError, CreateWebIntegrationHttpResponse, DeleteWebIntegrationHttpError, DeleteWebIntegrationHttpResponse, Error, Errors, GetWebIntegrationHttpError, GetWebIntegrationHttpResponse, GetWebIntegrationsHttpError, GetWebIntegrationsHttpResponse, PatchWebIntegrationHttpError, PatchWebIntegrationHttpResponse, WebIntegration, WebIntegrationPatch, WebIntegrationPatchSchema, WebIntegrationPost, WebIntegrationPostSchema, WebIntegrations, WebIntegrationsAPI, clearCache, createWebIntegration, webIntegrationsExport as default, deleteWebIntegration, getWebIntegration, getWebIntegrations, patchWebIntegration };
@@ -1,6 +1,5 @@
1
- import "./chunks/utils-BnC4lrlq.js";
2
- import "./chunks/public-runtime-modules-Dwjzb3l8.js";
3
- import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-PcVIxLW4.js";
1
+ import "./chunks/public-runtime-modules-BqxAMJ9M.js";
2
+ import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-CckTK7bh.js";
4
3
 
5
4
  //#region src/public/rest/web-integrations.ts
6
5
  /**
@@ -1,4 +1,274 @@
1
- import "./chunks/auth-types-E99tzdN0.js";
2
- import "./chunks/invoke-fetch-CbU2Dgqr.js";
3
- import { C as deleteNotification, D as patchNotification, E as getNotifications, O as patchNotifications, S as clearCache, T as getNotification, _ as PatchNotificationHttpError, a as Error, b as PatchNotificationsHttpResponse, c as GetNotificationHttpResponse, d as Links, f as Meta, g as Notifications, h as NotificationPatchSchema, i as DeleteNotificationsHttpResponse, k as webNotificationsExport, l as GetNotificationsHttpError, m as NotificationPatch, n as DeleteNotificationHttpResponse, o as Errors, p as Notification, r as DeleteNotificationsHttpError, s as GetNotificationHttpError, t as DeleteNotificationHttpError, u as GetNotificationsHttpResponse, v as PatchNotificationHttpResponse, w as deleteNotifications, x as WebNotificationsAPI, y as PatchNotificationsHttpError } from "./chunks/web-notifications-DVy6FHYh.js";
1
+ import { y as ApiCallOptions } from "./chunks/auth-types-YrlH_R9f.js";
2
+ import "./chunks/invoke-fetch-C1Z0RJYU.js";
3
+
4
+ //#region src/public/rest/web-notifications.d.ts
5
+ /**
6
+ * An error object.
7
+ */
8
+ type Error = {
9
+ /** The error code. */
10
+ code: string;
11
+ /** A human-readable explanation specific to this occurrence of the problem. */
12
+ message?: string;
13
+ /** The HTTP status code. */
14
+ status?: number;
15
+ /** Summary of the problem. */
16
+ title: string;
17
+ };
18
+ /**
19
+ * A representation of the errors encountered from the HTTP request.
20
+ */
21
+ type Errors = {
22
+ errors?: Error[];
23
+ };
24
+ /**
25
+ * Notifications links
26
+ */
27
+ type Links = {
28
+ next?: {
29
+ href?: string;
30
+ };
31
+ prev?: {
32
+ href?: string;
33
+ };
34
+ self?: {
35
+ href?: string;
36
+ };
37
+ };
38
+ /**
39
+ * Notifications meta data
40
+ */
41
+ type Meta = {
42
+ /** The total number of unread notification. */
43
+ unreadCount?: number;
44
+ };
45
+ type Notification = {
46
+ readonly action?: string;
47
+ readonly body: string;
48
+ readonly createdAt: string;
49
+ readonly id: string;
50
+ meta: unknown;
51
+ read: boolean;
52
+ readonly resourceId?: string;
53
+ resourceType?: string;
54
+ readonly spaceId?: string;
55
+ spaceType?: string;
56
+ subResourceType?: string;
57
+ readonly tenantId?: string;
58
+ readonly updatedAt: string;
59
+ readonly userId: string;
60
+ };
61
+ /**
62
+ * A JSON Patch document as defined in http://tools.ietf.org/html/rfc6902.
63
+ */
64
+ type NotificationPatch = {
65
+ /** The operation to be performed. */
66
+ op: "replace";
67
+ /** The path for the given resource field to patch. */
68
+ path: "/read";
69
+ /** The value to be used for this operation. */
70
+ value: string;
71
+ };
72
+ /**
73
+ * An array of JSON Patch documents
74
+ * @example
75
+ * [
76
+ * {
77
+ * op: "replace",
78
+ * path: "/read"
79
+ * }
80
+ * ]
81
+ */
82
+ type NotificationPatchSchema = NotificationPatch[];
83
+ type Notifications = {
84
+ data?: Notification[];
85
+ /** Notifications links */
86
+ links?: Links;
87
+ /** Notifications meta data */
88
+ meta?: Meta;
89
+ };
90
+ /**
91
+ * Retrieve notifications matching the query.
92
+ * @example
93
+ * getNotifications(
94
+ * {
95
+ * resourceType: "app,space"
96
+ * }
97
+ * )
98
+ *
99
+ * @param query an object with query parameters
100
+ * @throws GetNotificationsHttpError
101
+ */
102
+ declare function getNotifications(query: {
103
+ /** The number of notification entries to retrieved. */
104
+ limit?: number;
105
+ /** Page number */
106
+ page?: number;
107
+ /** Read status of the notification */
108
+ read?: boolean;
109
+ /** Filter by resource types. If passing more than 1 resource type, use comma seperated string. */
110
+ resourceType?: string;
111
+ /** The field to sort by, with +/- prefix indicating sort order */
112
+ sort?: "+createdAt" | "-createdAt" | "+updatedAt" | "-updatedAt";
113
+ }, options?: ApiCallOptions): Promise<GetNotificationsHttpResponse>;
114
+ type GetNotificationsHttpResponse = {
115
+ data: Notifications;
116
+ headers: Headers;
117
+ status: 200;
118
+ prev?: (options?: ApiCallOptions) => Promise<GetNotificationsHttpResponse>;
119
+ next?: (options?: ApiCallOptions) => Promise<GetNotificationsHttpResponse>;
120
+ };
121
+ type GetNotificationsHttpError = {
122
+ data: Errors;
123
+ headers: Headers;
124
+ status: 400 | 401 | 500;
125
+ };
126
+ /**
127
+ * Delete all notifications.
128
+ *
129
+ * @throws DeleteNotificationsHttpError
130
+ */
131
+ declare function deleteNotifications(options?: ApiCallOptions): Promise<DeleteNotificationsHttpResponse>;
132
+ type DeleteNotificationsHttpResponse = {
133
+ data: Meta;
134
+ headers: Headers;
135
+ status: 204;
136
+ };
137
+ type DeleteNotificationsHttpError = {
138
+ data: Errors;
139
+ headers: Headers;
140
+ status: 401 | 500;
141
+ };
142
+ /**
143
+ * Patch all notifications.
144
+ *
145
+ * @param body an object with the body content
146
+ * @throws PatchNotificationsHttpError
147
+ */
148
+ declare function patchNotifications(body: NotificationPatchSchema, options?: ApiCallOptions): Promise<PatchNotificationsHttpResponse>;
149
+ type PatchNotificationsHttpResponse = {
150
+ data: Meta;
151
+ headers: Headers;
152
+ status: 204;
153
+ };
154
+ type PatchNotificationsHttpError = {
155
+ data: Errors;
156
+ headers: Headers;
157
+ status: 400 | 401 | 500;
158
+ };
159
+ /**
160
+ * Delete a notification.
161
+ *
162
+ * @param notificationId The id of the notification to delete.
163
+ * @throws DeleteNotificationHttpError
164
+ */
165
+ declare function deleteNotification(notificationId: string, options?: ApiCallOptions): Promise<DeleteNotificationHttpResponse>;
166
+ type DeleteNotificationHttpResponse = {
167
+ data: Meta;
168
+ headers: Headers;
169
+ status: 204;
170
+ };
171
+ type DeleteNotificationHttpError = {
172
+ data: Errors;
173
+ headers: Headers;
174
+ status: 401 | 404 | 500;
175
+ };
176
+ /**
177
+ * Retrieve a single notification by Id.
178
+ *
179
+ * @param notificationId The id of the notification to retrieve.
180
+ * @throws GetNotificationHttpError
181
+ */
182
+ declare function getNotification(notificationId: string, options?: ApiCallOptions): Promise<GetNotificationHttpResponse>;
183
+ type GetNotificationHttpResponse = {
184
+ data: Notification;
185
+ headers: Headers;
186
+ status: 200;
187
+ };
188
+ type GetNotificationHttpError = {
189
+ data: Errors;
190
+ headers: Headers;
191
+ status: 401 | 404 | 500;
192
+ };
193
+ /**
194
+ * Patch a notification.
195
+ *
196
+ * @param notificationId The id of the notification to update.
197
+ * @param body an object with the body content
198
+ * @throws PatchNotificationHttpError
199
+ */
200
+ declare function patchNotification(notificationId: string, body: NotificationPatchSchema, options?: ApiCallOptions): Promise<PatchNotificationHttpResponse>;
201
+ type PatchNotificationHttpResponse = {
202
+ data: Meta;
203
+ headers: Headers;
204
+ status: 204;
205
+ };
206
+ type PatchNotificationHttpError = {
207
+ data: Errors;
208
+ headers: Headers;
209
+ status: 400 | 401 | 404 | 500;
210
+ };
211
+ /**
212
+ * Clears the cache for web-notifications api requests.
213
+ */
214
+ declare function clearCache(): void;
215
+ type WebNotificationsAPI = {
216
+ /**
217
+ * Retrieve notifications matching the query.
218
+ * @example
219
+ * getNotifications(
220
+ * {
221
+ * resourceType: "app,space"
222
+ * }
223
+ * )
224
+ *
225
+ * @param query an object with query parameters
226
+ * @throws GetNotificationsHttpError
227
+ */
228
+ getNotifications: typeof getNotifications;
229
+ /**
230
+ * Delete all notifications.
231
+ *
232
+ * @throws DeleteNotificationsHttpError
233
+ */
234
+ deleteNotifications: typeof deleteNotifications;
235
+ /**
236
+ * Patch all notifications.
237
+ *
238
+ * @param body an object with the body content
239
+ * @throws PatchNotificationsHttpError
240
+ */
241
+ patchNotifications: typeof patchNotifications;
242
+ /**
243
+ * Delete a notification.
244
+ *
245
+ * @param notificationId The id of the notification to delete.
246
+ * @throws DeleteNotificationHttpError
247
+ */
248
+ deleteNotification: typeof deleteNotification;
249
+ /**
250
+ * Retrieve a single notification by Id.
251
+ *
252
+ * @param notificationId The id of the notification to retrieve.
253
+ * @throws GetNotificationHttpError
254
+ */
255
+ getNotification: typeof getNotification;
256
+ /**
257
+ * Patch a notification.
258
+ *
259
+ * @param notificationId The id of the notification to update.
260
+ * @param body an object with the body content
261
+ * @throws PatchNotificationHttpError
262
+ */
263
+ patchNotification: typeof patchNotification;
264
+ /**
265
+ * Clears the cache for web-notifications api requests.
266
+ */
267
+ clearCache: typeof clearCache;
268
+ };
269
+ /**
270
+ * Functions for the web-notifications api
271
+ */
272
+ declare const webNotificationsExport: WebNotificationsAPI;
273
+ //#endregion
4
274
  export { DeleteNotificationHttpError, DeleteNotificationHttpResponse, DeleteNotificationsHttpError, DeleteNotificationsHttpResponse, Error, Errors, GetNotificationHttpError, GetNotificationHttpResponse, GetNotificationsHttpError, GetNotificationsHttpResponse, Links, Meta, Notification, NotificationPatch, NotificationPatchSchema, Notifications, PatchNotificationHttpError, PatchNotificationHttpResponse, PatchNotificationsHttpError, PatchNotificationsHttpResponse, WebNotificationsAPI, clearCache, webNotificationsExport as default, deleteNotification, deleteNotifications, getNotification, getNotifications, patchNotification, patchNotifications };
@@ -1,6 +1,5 @@
1
- import "./chunks/utils-BnC4lrlq.js";
2
- import "./chunks/public-runtime-modules-Dwjzb3l8.js";
3
- import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-PcVIxLW4.js";
1
+ import "./chunks/public-runtime-modules-BqxAMJ9M.js";
2
+ import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-CckTK7bh.js";
4
3
 
5
4
  //#region src/public/rest/web-notifications.ts
6
5
  /**