@qlik/api 0.0.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 (160) hide show
  1. package/LICENSE +17 -0
  2. package/README.md +8 -0
  3. package/api-keys.d.mts +313 -0
  4. package/api-keys.d.ts +313 -0
  5. package/api-keys.js +76 -0
  6. package/api-keys.mjs +76 -0
  7. package/apps.d.mts +1921 -0
  8. package/apps.d.ts +1921 -0
  9. package/apps.js +331 -0
  10. package/apps.mjs +331 -0
  11. package/audits.d.mts +262 -0
  12. package/audits.d.ts +262 -0
  13. package/audits.js +63 -0
  14. package/audits.mjs +63 -0
  15. package/auth-CSVTXOZX.js +36 -0
  16. package/auth-TE272Q34.mjs +36 -0
  17. package/auth-types-nnUcWhuU.d.mts +98 -0
  18. package/auth-types-nnUcWhuU.d.ts +98 -0
  19. package/auth.d.mts +26 -0
  20. package/auth.d.ts +26 -0
  21. package/auth.js +13 -0
  22. package/auth.mjs +13 -0
  23. package/automations.d.mts +638 -0
  24. package/automations.d.ts +638 -0
  25. package/automations.js +166 -0
  26. package/automations.mjs +166 -0
  27. package/brands.d.mts +614 -0
  28. package/brands.d.ts +614 -0
  29. package/brands.js +118 -0
  30. package/brands.mjs +118 -0
  31. package/chunk-3YE7EI7I.mjs +17 -0
  32. package/chunk-4ES65KO3.js +57 -0
  33. package/chunk-4FLMND6T.js +25 -0
  34. package/chunk-4OMEH5SW.mjs +1337 -0
  35. package/chunk-CKPJE4IA.mjs +57 -0
  36. package/chunk-GUQBHY3H.mjs +25 -0
  37. package/chunk-OULT3V2U.js +17 -0
  38. package/chunk-WM7FQU2U.mjs +21 -0
  39. package/chunk-XASXL2NC.js +1337 -0
  40. package/chunk-ZT4C7KCQ.js +21 -0
  41. package/collections.d.mts +535 -0
  42. package/collections.d.ts +535 -0
  43. package/collections.js +100 -0
  44. package/collections.mjs +100 -0
  45. package/csp-origins.d.mts +258 -0
  46. package/csp-origins.d.ts +258 -0
  47. package/csp-origins.js +66 -0
  48. package/csp-origins.mjs +66 -0
  49. package/data-assets.d.mts +195 -0
  50. package/data-assets.d.ts +195 -0
  51. package/data-assets.js +61 -0
  52. package/data-assets.mjs +61 -0
  53. package/data-connections.d.mts +527 -0
  54. package/data-connections.d.ts +527 -0
  55. package/data-connections.js +96 -0
  56. package/data-connections.mjs +96 -0
  57. package/data-credentials.d.mts +188 -0
  58. package/data-credentials.d.ts +188 -0
  59. package/data-credentials.js +56 -0
  60. package/data-credentials.mjs +56 -0
  61. package/data-files.d.mts +471 -0
  62. package/data-files.d.ts +471 -0
  63. package/data-files.js +116 -0
  64. package/data-files.mjs +116 -0
  65. package/docs/examples.md +4 -0
  66. package/enigma-session-4L373ALV.mjs +10196 -0
  67. package/enigma-session-TEB53FAF.js +10196 -0
  68. package/esm-4X3DKK5D.js +63 -0
  69. package/esm-SOWVJKOQ.mjs +63 -0
  70. package/extensions.d.mts +257 -0
  71. package/extensions.d.ts +257 -0
  72. package/extensions.js +74 -0
  73. package/extensions.mjs +74 -0
  74. package/global.types-Eto4uYwy.d.mts +102 -0
  75. package/global.types-hIvp-WdX.d.ts +102 -0
  76. package/glossaries.d.mts +1041 -0
  77. package/glossaries.d.ts +1041 -0
  78. package/glossaries.js +225 -0
  79. package/glossaries.mjs +225 -0
  80. package/groups.d.mts +379 -0
  81. package/groups.d.ts +379 -0
  82. package/groups.js +83 -0
  83. package/groups.mjs +83 -0
  84. package/identity-providers.d.mts +492 -0
  85. package/identity-providers.d.ts +492 -0
  86. package/identity-providers.js +80 -0
  87. package/identity-providers.mjs +80 -0
  88. package/index.d.mts +142 -0
  89. package/index.d.ts +142 -0
  90. package/index.js +678 -0
  91. package/index.mjs +678 -0
  92. package/invoke-fetch-MSSJAZ7K.mjs +14 -0
  93. package/invoke-fetch-PEI54KZO.js +14 -0
  94. package/items.d.mts +501 -0
  95. package/items.d.ts +501 -0
  96. package/items.js +84 -0
  97. package/items.mjs +84 -0
  98. package/licenses.d.mts +436 -0
  99. package/licenses.d.ts +436 -0
  100. package/licenses.js +87 -0
  101. package/licenses.mjs +87 -0
  102. package/package.json +264 -0
  103. package/qix-EU7PXRZ6.mjs +573 -0
  104. package/qix-RLTISYTB.js +573 -0
  105. package/qix.d.mts +11543 -0
  106. package/qix.d.ts +11543 -0
  107. package/qix.js +9 -0
  108. package/qix.mjs +9 -0
  109. package/quotas.d.mts +105 -0
  110. package/quotas.d.ts +105 -0
  111. package/quotas.js +31 -0
  112. package/quotas.mjs +31 -0
  113. package/reload-tasks.d.mts +222 -0
  114. package/reload-tasks.d.ts +222 -0
  115. package/reload-tasks.js +59 -0
  116. package/reload-tasks.mjs +59 -0
  117. package/reloads.d.mts +189 -0
  118. package/reloads.d.ts +189 -0
  119. package/reloads.js +44 -0
  120. package/reloads.mjs +44 -0
  121. package/roles.d.mts +150 -0
  122. package/roles.d.ts +150 -0
  123. package/roles.js +30 -0
  124. package/roles.mjs +30 -0
  125. package/spaces.d.mts +524 -0
  126. package/spaces.d.ts +524 -0
  127. package/spaces.js +118 -0
  128. package/spaces.mjs +118 -0
  129. package/temp-contents.d.mts +222 -0
  130. package/temp-contents.d.ts +222 -0
  131. package/temp-contents.js +60 -0
  132. package/temp-contents.mjs +60 -0
  133. package/tenants.d.mts +276 -0
  134. package/tenants.d.ts +276 -0
  135. package/tenants.js +68 -0
  136. package/tenants.mjs +68 -0
  137. package/themes.d.mts +235 -0
  138. package/themes.d.ts +235 -0
  139. package/themes.js +74 -0
  140. package/themes.mjs +74 -0
  141. package/transports.d.mts +298 -0
  142. package/transports.d.ts +298 -0
  143. package/transports.js +62 -0
  144. package/transports.mjs +62 -0
  145. package/users.d.mts +544 -0
  146. package/users.d.ts +544 -0
  147. package/users.js +99 -0
  148. package/users.mjs +99 -0
  149. package/web-integrations.d.mts +246 -0
  150. package/web-integrations.d.ts +246 -0
  151. package/web-integrations.js +59 -0
  152. package/web-integrations.mjs +59 -0
  153. package/web-notifications.d.mts +220 -0
  154. package/web-notifications.d.ts +220 -0
  155. package/web-notifications.js +66 -0
  156. package/web-notifications.mjs +66 -0
  157. package/webhooks.d.mts +422 -0
  158. package/webhooks.d.ts +422 -0
  159. package/webhooks.js +100 -0
  160. package/webhooks.mjs +100 -0
@@ -0,0 +1,59 @@
1
+ import {
2
+ clearApiCache,
3
+ invokeFetch
4
+ } from "./chunk-3YE7EI7I.mjs";
5
+ import "./chunk-WM7FQU2U.mjs";
6
+
7
+ // src/public/rest/web-integrations.ts
8
+ var getWebIntegrations = async (query, options) => invokeFetch("web-integrations", {
9
+ method: "get",
10
+ pathTemplate: "/api/v1/web-integrations",
11
+ query,
12
+ options
13
+ });
14
+ var createWebIntegration = async (body, options) => invokeFetch("web-integrations", {
15
+ method: "post",
16
+ pathTemplate: "/api/v1/web-integrations",
17
+ body,
18
+ options
19
+ });
20
+ var deleteWebIntegration = async (id, options) => invokeFetch("web-integrations", {
21
+ method: "delete",
22
+ pathTemplate: "/api/v1/web-integrations/{id}",
23
+ pathVariables: { id },
24
+ options
25
+ });
26
+ var getWebIntegration = async (id, options) => invokeFetch("web-integrations", {
27
+ method: "get",
28
+ pathTemplate: "/api/v1/web-integrations/{id}",
29
+ pathVariables: { id },
30
+ options
31
+ });
32
+ var patchWebIntegration = async (id, body, options) => invokeFetch("web-integrations", {
33
+ method: "patch",
34
+ pathTemplate: "/api/v1/web-integrations/{id}",
35
+ pathVariables: { id },
36
+ body,
37
+ options
38
+ });
39
+ function clearCache() {
40
+ return clearApiCache("web-integrations");
41
+ }
42
+ var webIntegrationsExport = {
43
+ getWebIntegrations,
44
+ createWebIntegration,
45
+ deleteWebIntegration,
46
+ getWebIntegration,
47
+ patchWebIntegration,
48
+ clearCache
49
+ };
50
+ var web_integrations_default = webIntegrationsExport;
51
+ export {
52
+ clearCache,
53
+ createWebIntegration,
54
+ web_integrations_default as default,
55
+ deleteWebIntegration,
56
+ getWebIntegration,
57
+ getWebIntegrations,
58
+ patchWebIntegration
59
+ };
@@ -0,0 +1,220 @@
1
+ import { A as ApiCallOptions } from './global.types-Eto4uYwy.mjs';
2
+ import './auth-types-nnUcWhuU.mjs';
3
+
4
+ type Error = {
5
+ /** The error code. */
6
+ code: string;
7
+ /** A human-readable explanation specific to this occurrence of the problem. */
8
+ message?: string;
9
+ /** The HTTP status code. */
10
+ status?: number;
11
+ /** Summary of the problem. */
12
+ title: string;
13
+ };
14
+ type Errors = {
15
+ errors?: Error[];
16
+ };
17
+ type Links = {
18
+ next?: {
19
+ href?: string;
20
+ };
21
+ prev?: {
22
+ href?: string;
23
+ };
24
+ self?: {
25
+ href?: string;
26
+ };
27
+ };
28
+ type Meta = {
29
+ /** The total number of unread notification. */
30
+ unreadCount?: number;
31
+ };
32
+ type Notification = {
33
+ readonly action?: string;
34
+ readonly body: string;
35
+ readonly createdAt: string;
36
+ readonly id: string;
37
+ read: boolean;
38
+ readonly resourceId?: string;
39
+ resourceType?: string;
40
+ readonly spaceId?: string;
41
+ subResourceType?: string;
42
+ readonly tenantId?: string;
43
+ readonly updatedAt: string;
44
+ readonly userId: string;
45
+ };
46
+ type NotificationPatch = {
47
+ /** The operation to be performed. */
48
+ op: "replace";
49
+ /** The path for the given resource field to patch. */
50
+ path: "/description";
51
+ /** The value to be used for this operation. */
52
+ value: string;
53
+ };
54
+ type NotificationPatchSchema = NotificationPatch[];
55
+ type Notifications = {
56
+ data?: Notification[];
57
+ /** Notifications links */
58
+ links?: Links;
59
+ /** Notifications meta data */
60
+ meta?: Meta;
61
+ };
62
+ /**
63
+ * Retrieve notifications matching the query.
64
+ * @param query an object with query parameters
65
+ * @throws GetNotificationsHttpError
66
+ */
67
+ declare const getNotifications: (query: {
68
+ /** The number of notification entries to retrieved. */
69
+ limit?: number;
70
+ /** Page number */
71
+ page?: number;
72
+ /** Read status of the notification */
73
+ read?: boolean;
74
+ /** The field to sort by, with +/- prefix indicating sort order */
75
+ sort?: "+createdAt" | "-createdAt" | "+updatedAt" | "-updatedAt";
76
+ }, options?: ApiCallOptions) => Promise<GetNotificationsHttpResponse>;
77
+ type GetNotificationsHttpResponse = {
78
+ data: Notifications;
79
+ headers: Headers;
80
+ status: number;
81
+ prev?: (options?: ApiCallOptions) => Promise<GetNotificationsHttpResponse>;
82
+ next?: (options?: ApiCallOptions) => Promise<GetNotificationsHttpResponse>;
83
+ };
84
+ type GetNotificationsHttpError = {
85
+ data: Errors;
86
+ headers: Headers;
87
+ status: number;
88
+ };
89
+ /**
90
+ * Delete all notifications.
91
+ * @throws DeleteNotificationsHttpError
92
+ */
93
+ declare const deleteNotifications: (options?: ApiCallOptions) => Promise<DeleteNotificationsHttpResponse>;
94
+ type DeleteNotificationsHttpResponse = {
95
+ data: Meta;
96
+ headers: Headers;
97
+ status: number;
98
+ };
99
+ type DeleteNotificationsHttpError = {
100
+ data: Errors;
101
+ headers: Headers;
102
+ status: number;
103
+ };
104
+ /**
105
+ * Patch all notifications.
106
+ * @param body an object with the body content
107
+ * @throws PatchNotificationsHttpError
108
+ */
109
+ declare const patchNotifications: (body: NotificationPatchSchema, options?: ApiCallOptions) => Promise<PatchNotificationsHttpResponse>;
110
+ type PatchNotificationsHttpResponse = {
111
+ data: Meta;
112
+ headers: Headers;
113
+ status: number;
114
+ };
115
+ type PatchNotificationsHttpError = {
116
+ data: Errors;
117
+ headers: Headers;
118
+ status: number;
119
+ };
120
+ /**
121
+ * Delete a notification.
122
+ * @param notificationId The id of the notification to delete.
123
+ * @throws DeleteNotificationHttpError
124
+ */
125
+ declare const deleteNotification: (notificationId: string, options?: ApiCallOptions) => Promise<DeleteNotificationHttpResponse>;
126
+ type DeleteNotificationHttpResponse = {
127
+ data: Meta;
128
+ headers: Headers;
129
+ status: number;
130
+ };
131
+ type DeleteNotificationHttpError = {
132
+ data: Errors;
133
+ headers: Headers;
134
+ status: number;
135
+ };
136
+ /**
137
+ * Retrieve a single notification by Id.
138
+ * @param notificationId The id of the notification to retrieve.
139
+ * @throws GetNotificationHttpError
140
+ */
141
+ declare const getNotification: (notificationId: string, options?: ApiCallOptions) => Promise<GetNotificationHttpResponse>;
142
+ type GetNotificationHttpResponse = {
143
+ data: Notification;
144
+ headers: Headers;
145
+ status: number;
146
+ };
147
+ type GetNotificationHttpError = {
148
+ data: Errors;
149
+ headers: Headers;
150
+ status: number;
151
+ };
152
+ /**
153
+ * Patch a notification.
154
+ * @param notificationId The id of the notification to update.
155
+ * @param body an object with the body content
156
+ * @throws PatchNotificationHttpError
157
+ */
158
+ declare const patchNotification: (notificationId: string, body: NotificationPatchSchema, options?: ApiCallOptions) => Promise<PatchNotificationHttpResponse>;
159
+ type PatchNotificationHttpResponse = {
160
+ data: Meta;
161
+ headers: Headers;
162
+ status: number;
163
+ };
164
+ type PatchNotificationHttpError = {
165
+ data: Errors;
166
+ headers: Headers;
167
+ status: number;
168
+ };
169
+ /**
170
+ * Clears the cache for web-notifications api requests.
171
+ */
172
+ declare function clearCache(): void;
173
+ interface WebNotificationsAPI {
174
+ /**
175
+ * Retrieve notifications matching the query.
176
+ * @param query an object with query parameters
177
+ * @throws GetNotificationsHttpError
178
+ */
179
+ getNotifications: typeof getNotifications;
180
+ /**
181
+ * Delete all notifications.
182
+ * @throws DeleteNotificationsHttpError
183
+ */
184
+ deleteNotifications: typeof deleteNotifications;
185
+ /**
186
+ * Patch all notifications.
187
+ * @param body an object with the body content
188
+ * @throws PatchNotificationsHttpError
189
+ */
190
+ patchNotifications: typeof patchNotifications;
191
+ /**
192
+ * Delete a notification.
193
+ * @param notificationId The id of the notification to delete.
194
+ * @throws DeleteNotificationHttpError
195
+ */
196
+ deleteNotification: typeof deleteNotification;
197
+ /**
198
+ * Retrieve a single notification by Id.
199
+ * @param notificationId The id of the notification to retrieve.
200
+ * @throws GetNotificationHttpError
201
+ */
202
+ getNotification: typeof getNotification;
203
+ /**
204
+ * Patch a notification.
205
+ * @param notificationId The id of the notification to update.
206
+ * @param body an object with the body content
207
+ * @throws PatchNotificationHttpError
208
+ */
209
+ patchNotification: typeof patchNotification;
210
+ /**
211
+ * Clears the cache for web-notifications api requests.
212
+ */
213
+ clearCache: typeof clearCache;
214
+ }
215
+ /**
216
+ * Functions for the web-notifications api
217
+ */
218
+ declare const webNotificationsExport: WebNotificationsAPI;
219
+
220
+ export { type DeleteNotificationHttpError, type DeleteNotificationHttpResponse, type DeleteNotificationsHttpError, type DeleteNotificationsHttpResponse, type Error, type Errors, type GetNotificationHttpError, type GetNotificationHttpResponse, type GetNotificationsHttpError, type GetNotificationsHttpResponse, type Links, type Meta, type Notification, type NotificationPatch, type NotificationPatchSchema, type Notifications, type PatchNotificationHttpError, type PatchNotificationHttpResponse, type PatchNotificationsHttpError, type PatchNotificationsHttpResponse, type WebNotificationsAPI, clearCache, webNotificationsExport as default, deleteNotification, deleteNotifications, getNotification, getNotifications, patchNotification, patchNotifications };
@@ -0,0 +1,220 @@
1
+ import { A as ApiCallOptions } from './global.types-hIvp-WdX.js';
2
+ import './auth-types-nnUcWhuU.js';
3
+
4
+ type Error = {
5
+ /** The error code. */
6
+ code: string;
7
+ /** A human-readable explanation specific to this occurrence of the problem. */
8
+ message?: string;
9
+ /** The HTTP status code. */
10
+ status?: number;
11
+ /** Summary of the problem. */
12
+ title: string;
13
+ };
14
+ type Errors = {
15
+ errors?: Error[];
16
+ };
17
+ type Links = {
18
+ next?: {
19
+ href?: string;
20
+ };
21
+ prev?: {
22
+ href?: string;
23
+ };
24
+ self?: {
25
+ href?: string;
26
+ };
27
+ };
28
+ type Meta = {
29
+ /** The total number of unread notification. */
30
+ unreadCount?: number;
31
+ };
32
+ type Notification = {
33
+ readonly action?: string;
34
+ readonly body: string;
35
+ readonly createdAt: string;
36
+ readonly id: string;
37
+ read: boolean;
38
+ readonly resourceId?: string;
39
+ resourceType?: string;
40
+ readonly spaceId?: string;
41
+ subResourceType?: string;
42
+ readonly tenantId?: string;
43
+ readonly updatedAt: string;
44
+ readonly userId: string;
45
+ };
46
+ type NotificationPatch = {
47
+ /** The operation to be performed. */
48
+ op: "replace";
49
+ /** The path for the given resource field to patch. */
50
+ path: "/description";
51
+ /** The value to be used for this operation. */
52
+ value: string;
53
+ };
54
+ type NotificationPatchSchema = NotificationPatch[];
55
+ type Notifications = {
56
+ data?: Notification[];
57
+ /** Notifications links */
58
+ links?: Links;
59
+ /** Notifications meta data */
60
+ meta?: Meta;
61
+ };
62
+ /**
63
+ * Retrieve notifications matching the query.
64
+ * @param query an object with query parameters
65
+ * @throws GetNotificationsHttpError
66
+ */
67
+ declare const getNotifications: (query: {
68
+ /** The number of notification entries to retrieved. */
69
+ limit?: number;
70
+ /** Page number */
71
+ page?: number;
72
+ /** Read status of the notification */
73
+ read?: boolean;
74
+ /** The field to sort by, with +/- prefix indicating sort order */
75
+ sort?: "+createdAt" | "-createdAt" | "+updatedAt" | "-updatedAt";
76
+ }, options?: ApiCallOptions) => Promise<GetNotificationsHttpResponse>;
77
+ type GetNotificationsHttpResponse = {
78
+ data: Notifications;
79
+ headers: Headers;
80
+ status: number;
81
+ prev?: (options?: ApiCallOptions) => Promise<GetNotificationsHttpResponse>;
82
+ next?: (options?: ApiCallOptions) => Promise<GetNotificationsHttpResponse>;
83
+ };
84
+ type GetNotificationsHttpError = {
85
+ data: Errors;
86
+ headers: Headers;
87
+ status: number;
88
+ };
89
+ /**
90
+ * Delete all notifications.
91
+ * @throws DeleteNotificationsHttpError
92
+ */
93
+ declare const deleteNotifications: (options?: ApiCallOptions) => Promise<DeleteNotificationsHttpResponse>;
94
+ type DeleteNotificationsHttpResponse = {
95
+ data: Meta;
96
+ headers: Headers;
97
+ status: number;
98
+ };
99
+ type DeleteNotificationsHttpError = {
100
+ data: Errors;
101
+ headers: Headers;
102
+ status: number;
103
+ };
104
+ /**
105
+ * Patch all notifications.
106
+ * @param body an object with the body content
107
+ * @throws PatchNotificationsHttpError
108
+ */
109
+ declare const patchNotifications: (body: NotificationPatchSchema, options?: ApiCallOptions) => Promise<PatchNotificationsHttpResponse>;
110
+ type PatchNotificationsHttpResponse = {
111
+ data: Meta;
112
+ headers: Headers;
113
+ status: number;
114
+ };
115
+ type PatchNotificationsHttpError = {
116
+ data: Errors;
117
+ headers: Headers;
118
+ status: number;
119
+ };
120
+ /**
121
+ * Delete a notification.
122
+ * @param notificationId The id of the notification to delete.
123
+ * @throws DeleteNotificationHttpError
124
+ */
125
+ declare const deleteNotification: (notificationId: string, options?: ApiCallOptions) => Promise<DeleteNotificationHttpResponse>;
126
+ type DeleteNotificationHttpResponse = {
127
+ data: Meta;
128
+ headers: Headers;
129
+ status: number;
130
+ };
131
+ type DeleteNotificationHttpError = {
132
+ data: Errors;
133
+ headers: Headers;
134
+ status: number;
135
+ };
136
+ /**
137
+ * Retrieve a single notification by Id.
138
+ * @param notificationId The id of the notification to retrieve.
139
+ * @throws GetNotificationHttpError
140
+ */
141
+ declare const getNotification: (notificationId: string, options?: ApiCallOptions) => Promise<GetNotificationHttpResponse>;
142
+ type GetNotificationHttpResponse = {
143
+ data: Notification;
144
+ headers: Headers;
145
+ status: number;
146
+ };
147
+ type GetNotificationHttpError = {
148
+ data: Errors;
149
+ headers: Headers;
150
+ status: number;
151
+ };
152
+ /**
153
+ * Patch a notification.
154
+ * @param notificationId The id of the notification to update.
155
+ * @param body an object with the body content
156
+ * @throws PatchNotificationHttpError
157
+ */
158
+ declare const patchNotification: (notificationId: string, body: NotificationPatchSchema, options?: ApiCallOptions) => Promise<PatchNotificationHttpResponse>;
159
+ type PatchNotificationHttpResponse = {
160
+ data: Meta;
161
+ headers: Headers;
162
+ status: number;
163
+ };
164
+ type PatchNotificationHttpError = {
165
+ data: Errors;
166
+ headers: Headers;
167
+ status: number;
168
+ };
169
+ /**
170
+ * Clears the cache for web-notifications api requests.
171
+ */
172
+ declare function clearCache(): void;
173
+ interface WebNotificationsAPI {
174
+ /**
175
+ * Retrieve notifications matching the query.
176
+ * @param query an object with query parameters
177
+ * @throws GetNotificationsHttpError
178
+ */
179
+ getNotifications: typeof getNotifications;
180
+ /**
181
+ * Delete all notifications.
182
+ * @throws DeleteNotificationsHttpError
183
+ */
184
+ deleteNotifications: typeof deleteNotifications;
185
+ /**
186
+ * Patch all notifications.
187
+ * @param body an object with the body content
188
+ * @throws PatchNotificationsHttpError
189
+ */
190
+ patchNotifications: typeof patchNotifications;
191
+ /**
192
+ * Delete a notification.
193
+ * @param notificationId The id of the notification to delete.
194
+ * @throws DeleteNotificationHttpError
195
+ */
196
+ deleteNotification: typeof deleteNotification;
197
+ /**
198
+ * Retrieve a single notification by Id.
199
+ * @param notificationId The id of the notification to retrieve.
200
+ * @throws GetNotificationHttpError
201
+ */
202
+ getNotification: typeof getNotification;
203
+ /**
204
+ * Patch a notification.
205
+ * @param notificationId The id of the notification to update.
206
+ * @param body an object with the body content
207
+ * @throws PatchNotificationHttpError
208
+ */
209
+ patchNotification: typeof patchNotification;
210
+ /**
211
+ * Clears the cache for web-notifications api requests.
212
+ */
213
+ clearCache: typeof clearCache;
214
+ }
215
+ /**
216
+ * Functions for the web-notifications api
217
+ */
218
+ declare const webNotificationsExport: WebNotificationsAPI;
219
+
220
+ export { type DeleteNotificationHttpError, type DeleteNotificationHttpResponse, type DeleteNotificationsHttpError, type DeleteNotificationsHttpResponse, type Error, type Errors, type GetNotificationHttpError, type GetNotificationHttpResponse, type GetNotificationsHttpError, type GetNotificationsHttpResponse, type Links, type Meta, type Notification, type NotificationPatch, type NotificationPatchSchema, type Notifications, type PatchNotificationHttpError, type PatchNotificationHttpResponse, type PatchNotificationsHttpError, type PatchNotificationsHttpResponse, type WebNotificationsAPI, clearCache, webNotificationsExport as default, deleteNotification, deleteNotifications, getNotification, getNotifications, patchNotification, patchNotifications };
@@ -0,0 +1,66 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+ var _chunkOULT3V2Ujs = require('./chunk-OULT3V2U.js');
5
+ require('./chunk-ZT4C7KCQ.js');
6
+
7
+ // src/public/rest/web-notifications.ts
8
+ var getNotifications = async (query, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "web-notifications", {
9
+ method: "get",
10
+ pathTemplate: "/api/v1/web-notifications",
11
+ query,
12
+ options
13
+ });
14
+ var deleteNotifications = async (options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "web-notifications", {
15
+ method: "delete",
16
+ pathTemplate: "/api/v1/web-notifications/all",
17
+ options
18
+ });
19
+ var patchNotifications = async (body, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "web-notifications", {
20
+ method: "patch",
21
+ pathTemplate: "/api/v1/web-notifications/all",
22
+ body,
23
+ options
24
+ });
25
+ var deleteNotification = async (notificationId, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "web-notifications", {
26
+ method: "delete",
27
+ pathTemplate: "/api/v1/web-notifications/{notificationId}",
28
+ pathVariables: { notificationId },
29
+ options
30
+ });
31
+ var getNotification = async (notificationId, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "web-notifications", {
32
+ method: "get",
33
+ pathTemplate: "/api/v1/web-notifications/{notificationId}",
34
+ pathVariables: { notificationId },
35
+ options
36
+ });
37
+ var patchNotification = async (notificationId, body, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "web-notifications", {
38
+ method: "patch",
39
+ pathTemplate: "/api/v1/web-notifications/{notificationId}",
40
+ pathVariables: { notificationId },
41
+ body,
42
+ options
43
+ });
44
+ function clearCache() {
45
+ return _chunkOULT3V2Ujs.clearApiCache.call(void 0, "web-notifications");
46
+ }
47
+ var webNotificationsExport = {
48
+ getNotifications,
49
+ deleteNotifications,
50
+ patchNotifications,
51
+ deleteNotification,
52
+ getNotification,
53
+ patchNotification,
54
+ clearCache
55
+ };
56
+ var web_notifications_default = webNotificationsExport;
57
+
58
+
59
+
60
+
61
+
62
+
63
+
64
+
65
+
66
+ exports.clearCache = clearCache; exports.default = web_notifications_default; exports.deleteNotification = deleteNotification; exports.deleteNotifications = deleteNotifications; exports.getNotification = getNotification; exports.getNotifications = getNotifications; exports.patchNotification = patchNotification; exports.patchNotifications = patchNotifications;
@@ -0,0 +1,66 @@
1
+ import {
2
+ clearApiCache,
3
+ invokeFetch
4
+ } from "./chunk-3YE7EI7I.mjs";
5
+ import "./chunk-WM7FQU2U.mjs";
6
+
7
+ // src/public/rest/web-notifications.ts
8
+ var getNotifications = async (query, options) => invokeFetch("web-notifications", {
9
+ method: "get",
10
+ pathTemplate: "/api/v1/web-notifications",
11
+ query,
12
+ options
13
+ });
14
+ var deleteNotifications = async (options) => invokeFetch("web-notifications", {
15
+ method: "delete",
16
+ pathTemplate: "/api/v1/web-notifications/all",
17
+ options
18
+ });
19
+ var patchNotifications = async (body, options) => invokeFetch("web-notifications", {
20
+ method: "patch",
21
+ pathTemplate: "/api/v1/web-notifications/all",
22
+ body,
23
+ options
24
+ });
25
+ var deleteNotification = async (notificationId, options) => invokeFetch("web-notifications", {
26
+ method: "delete",
27
+ pathTemplate: "/api/v1/web-notifications/{notificationId}",
28
+ pathVariables: { notificationId },
29
+ options
30
+ });
31
+ var getNotification = async (notificationId, options) => invokeFetch("web-notifications", {
32
+ method: "get",
33
+ pathTemplate: "/api/v1/web-notifications/{notificationId}",
34
+ pathVariables: { notificationId },
35
+ options
36
+ });
37
+ var patchNotification = async (notificationId, body, options) => invokeFetch("web-notifications", {
38
+ method: "patch",
39
+ pathTemplate: "/api/v1/web-notifications/{notificationId}",
40
+ pathVariables: { notificationId },
41
+ body,
42
+ options
43
+ });
44
+ function clearCache() {
45
+ return clearApiCache("web-notifications");
46
+ }
47
+ var webNotificationsExport = {
48
+ getNotifications,
49
+ deleteNotifications,
50
+ patchNotifications,
51
+ deleteNotification,
52
+ getNotification,
53
+ patchNotification,
54
+ clearCache
55
+ };
56
+ var web_notifications_default = webNotificationsExport;
57
+ export {
58
+ clearCache,
59
+ web_notifications_default as default,
60
+ deleteNotification,
61
+ deleteNotifications,
62
+ getNotification,
63
+ getNotifications,
64
+ patchNotification,
65
+ patchNotifications
66
+ };