@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
package/users.mjs ADDED
@@ -0,0 +1,99 @@
1
+ import {
2
+ clearApiCache,
3
+ invokeFetch
4
+ } from "./chunk-3YE7EI7I.mjs";
5
+ import "./chunk-WM7FQU2U.mjs";
6
+
7
+ // src/public/rest/users.ts
8
+ var getUsers = async (query, options) => invokeFetch("users", {
9
+ method: "get",
10
+ pathTemplate: "/api/v1/users",
11
+ query,
12
+ options
13
+ });
14
+ var createUser = async (body, options) => invokeFetch("users", {
15
+ method: "post",
16
+ pathTemplate: "/api/v1/users",
17
+ body,
18
+ options
19
+ });
20
+ var countUsers = async (query, options) => invokeFetch("users", {
21
+ method: "get",
22
+ pathTemplate: "/api/v1/users/actions/count",
23
+ query,
24
+ options
25
+ });
26
+ var filterUsers = async (query, body, options) => invokeFetch("users", {
27
+ method: "post",
28
+ pathTemplate: "/api/v1/users/actions/filter",
29
+ query,
30
+ body,
31
+ options
32
+ });
33
+ var inviteUsers = async (body, options) => invokeFetch("users", {
34
+ method: "post",
35
+ pathTemplate: "/api/v1/users/actions/invite",
36
+ body,
37
+ options
38
+ });
39
+ var getMyUser = async (options) => invokeFetch("users", {
40
+ method: "get",
41
+ pathTemplate: "/api/v1/users/me",
42
+ options
43
+ });
44
+ var getUsersMetadata = async (options) => invokeFetch("users", {
45
+ method: "get",
46
+ pathTemplate: "/api/v1/users/metadata",
47
+ options
48
+ });
49
+ var deleteUser = async (userId, options) => invokeFetch("users", {
50
+ method: "delete",
51
+ pathTemplate: "/api/v1/users/{userId}",
52
+ pathVariables: { userId },
53
+ options
54
+ });
55
+ var getUser = async (userId, query, options) => invokeFetch("users", {
56
+ method: "get",
57
+ pathTemplate: "/api/v1/users/{userId}",
58
+ pathVariables: { userId },
59
+ query,
60
+ options
61
+ });
62
+ var patchUser = async (userId, body, options) => invokeFetch("users", {
63
+ method: "patch",
64
+ pathTemplate: "/api/v1/users/{userId}",
65
+ pathVariables: { userId },
66
+ body,
67
+ options
68
+ });
69
+ function clearCache() {
70
+ return clearApiCache("users");
71
+ }
72
+ var usersExport = {
73
+ getUsers,
74
+ createUser,
75
+ countUsers,
76
+ filterUsers,
77
+ inviteUsers,
78
+ getMyUser,
79
+ getUsersMetadata,
80
+ deleteUser,
81
+ getUser,
82
+ patchUser,
83
+ clearCache
84
+ };
85
+ var users_default = usersExport;
86
+ export {
87
+ clearCache,
88
+ countUsers,
89
+ createUser,
90
+ users_default as default,
91
+ deleteUser,
92
+ filterUsers,
93
+ getMyUser,
94
+ getUser,
95
+ getUsers,
96
+ getUsersMetadata,
97
+ inviteUsers,
98
+ patchUser
99
+ };
@@ -0,0 +1,246 @@
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 error. */
8
+ detail?: string;
9
+ /** Additional properties relating to the error. */
10
+ meta?: unknown;
11
+ /** References to the source of the error. */
12
+ source?: {
13
+ /** The URI query parameter that caused the error. */
14
+ parameter?: string;
15
+ /** A JSON Pointer to the property that caused the error. */
16
+ pointer?: string;
17
+ };
18
+ /** The HTTP status code. */
19
+ status: string;
20
+ /** Summary of the problem. */
21
+ title: string;
22
+ };
23
+ type Errors = {
24
+ /** An array of errors related to the operation. */
25
+ errors?: Error[];
26
+ /** A unique identifier for tracing the error. */
27
+ traceId?: string;
28
+ };
29
+ type WebIntegration = {
30
+ /** The time the web integration was created. */
31
+ readonly created?: string;
32
+ /** The user that created the web integration. */
33
+ readonly createdBy?: string;
34
+ /** The unique web integration identifier. */
35
+ readonly id?: string;
36
+ /** The time the web integration was last updated. */
37
+ readonly lastUpdated?: string;
38
+ /** The name of the web integration. */
39
+ name?: string;
40
+ /** The tenant that the web integration belongs to. */
41
+ tenantId?: string;
42
+ /** The origins that are allowed to make requests to the tenant. */
43
+ validOrigins?: string[];
44
+ };
45
+ type WebIntegrationPatch = {
46
+ /** The operation to be performed. */
47
+ op: "replace";
48
+ /** A JSON Pointer. */
49
+ path: "/name" | "/validOrigins";
50
+ /** New value to be used for this operation. */
51
+ value: string;
52
+ };
53
+ type WebIntegrationPatchSchema = WebIntegrationPatch[];
54
+ type WebIntegrationPost = {
55
+ /** The time the web integration was created. */
56
+ readonly created?: string;
57
+ /** The user that created the web integration. */
58
+ readonly createdBy?: string;
59
+ /** The unique web integration identifier. */
60
+ readonly id?: string;
61
+ /** The time the web integration was last updated. */
62
+ readonly lastUpdated?: string;
63
+ /** Pagination links */
64
+ links?: {
65
+ /** Link information for current page. */
66
+ self: {
67
+ /** URL to the current page of records. */
68
+ href: string;
69
+ };
70
+ };
71
+ /** The name of the newly created web integration. */
72
+ name?: string;
73
+ /** The tenant that the web integration belongs to. */
74
+ tenantId?: string;
75
+ /** The origins that are allowed to make requests to the tenant. */
76
+ validOrigins?: string[];
77
+ };
78
+ type WebIntegrationPostSchema = {
79
+ /** The name of the web integration to create. */
80
+ name: string;
81
+ /** The origins that are allowed to make requests to the tenant. */
82
+ validOrigins?: string[];
83
+ };
84
+ type WebIntegrations = {
85
+ /** Properties of web integrations in a given tenant. */
86
+ data?: WebIntegration[];
87
+ /** Pagination links */
88
+ links?: {
89
+ /** Link information for next page. */
90
+ next?: {
91
+ /** URL to the next page of records. */
92
+ href: string;
93
+ };
94
+ /** Link information for previous page. */
95
+ prev?: {
96
+ /** URL to the previous page of records. */
97
+ href: string;
98
+ };
99
+ /** Link information for current page. */
100
+ self: {
101
+ /** URL to the current page of records. */
102
+ href: string;
103
+ };
104
+ };
105
+ };
106
+ /**
107
+ * Retrieves web integrations matching the query.
108
+ * @param query an object with query parameters
109
+ * @throws GetWebIntegrationsHttpError
110
+ */
111
+ declare const getWebIntegrations: (query: {
112
+ /** The target web integration ID to start looking before for web integrations. Cannot be used in conjunction with startingAfter. */
113
+ endingBefore?: string;
114
+ /** The number of web integration entries to retrieve. */
115
+ limit?: number;
116
+ /** The field to sort by. Prefix with +/- to indicate ascending/descending order. */
117
+ sort?: "name" | "+name" | "-name";
118
+ /** The target web integration ID to start looking after for web integrations. Cannot be used in conjunction with endingBefore. */
119
+ startingAfter?: string;
120
+ /** The tenant ID to filter by. */
121
+ tenantId?: string;
122
+ }, options?: ApiCallOptions) => Promise<GetWebIntegrationsHttpResponse>;
123
+ type GetWebIntegrationsHttpResponse = {
124
+ data: WebIntegrations;
125
+ headers: Headers;
126
+ status: number;
127
+ prev?: (options?: ApiCallOptions) => Promise<GetWebIntegrationsHttpResponse>;
128
+ next?: (options?: ApiCallOptions) => Promise<GetWebIntegrationsHttpResponse>;
129
+ };
130
+ type GetWebIntegrationsHttpError = {
131
+ data: Errors;
132
+ headers: Headers;
133
+ status: number;
134
+ };
135
+ /**
136
+ * Creates a web integration.
137
+ * @param body an object with the body content
138
+ * @throws CreateWebIntegrationHttpError
139
+ */
140
+ declare const createWebIntegration: (body: WebIntegrationPostSchema, options?: ApiCallOptions) => Promise<CreateWebIntegrationHttpResponse>;
141
+ type CreateWebIntegrationHttpResponse = {
142
+ data: WebIntegrationPost;
143
+ headers: Headers;
144
+ status: number;
145
+ };
146
+ type CreateWebIntegrationHttpError = {
147
+ data: Errors;
148
+ headers: Headers;
149
+ status: number;
150
+ };
151
+ /**
152
+ * Deletes a single web integration by ID.
153
+ * @param id The ID of the web integration to delete.
154
+ * @throws DeleteWebIntegrationHttpError
155
+ */
156
+ declare const deleteWebIntegration: (id: string, options?: ApiCallOptions) => Promise<DeleteWebIntegrationHttpResponse>;
157
+ type DeleteWebIntegrationHttpResponse = {
158
+ data: void;
159
+ headers: Headers;
160
+ status: number;
161
+ };
162
+ type DeleteWebIntegrationHttpError = {
163
+ data: Errors;
164
+ headers: Headers;
165
+ status: number;
166
+ };
167
+ /**
168
+ * Retrieves a single web integration by ID.
169
+ * @param id The ID of the web integration to retrieve.
170
+ * @throws GetWebIntegrationHttpError
171
+ */
172
+ declare const getWebIntegration: (id: string, options?: ApiCallOptions) => Promise<GetWebIntegrationHttpResponse>;
173
+ type GetWebIntegrationHttpResponse = {
174
+ data: WebIntegration;
175
+ headers: Headers;
176
+ status: number;
177
+ };
178
+ type GetWebIntegrationHttpError = {
179
+ data: Errors;
180
+ headers: Headers;
181
+ status: number;
182
+ };
183
+ /**
184
+ * Updates a single web integration by ID.
185
+ * @param id The ID of the web integration to update.
186
+ * @param body an object with the body content
187
+ * @throws PatchWebIntegrationHttpError
188
+ */
189
+ declare const patchWebIntegration: (id: string, body: WebIntegrationPatchSchema, options?: ApiCallOptions) => Promise<PatchWebIntegrationHttpResponse>;
190
+ type PatchWebIntegrationHttpResponse = {
191
+ data: void;
192
+ headers: Headers;
193
+ status: number;
194
+ };
195
+ type PatchWebIntegrationHttpError = {
196
+ data: Errors;
197
+ headers: Headers;
198
+ status: number;
199
+ };
200
+ /**
201
+ * Clears the cache for web-integrations api requests.
202
+ */
203
+ declare function clearCache(): void;
204
+ interface WebIntegrationsAPI {
205
+ /**
206
+ * Retrieves web integrations matching the query.
207
+ * @param query an object with query parameters
208
+ * @throws GetWebIntegrationsHttpError
209
+ */
210
+ getWebIntegrations: typeof getWebIntegrations;
211
+ /**
212
+ * Creates a web integration.
213
+ * @param body an object with the body content
214
+ * @throws CreateWebIntegrationHttpError
215
+ */
216
+ createWebIntegration: typeof createWebIntegration;
217
+ /**
218
+ * Deletes a single web integration by ID.
219
+ * @param id The ID of the web integration to delete.
220
+ * @throws DeleteWebIntegrationHttpError
221
+ */
222
+ deleteWebIntegration: typeof deleteWebIntegration;
223
+ /**
224
+ * Retrieves a single web integration by ID.
225
+ * @param id The ID of the web integration to retrieve.
226
+ * @throws GetWebIntegrationHttpError
227
+ */
228
+ getWebIntegration: typeof getWebIntegration;
229
+ /**
230
+ * Updates a single web integration by ID.
231
+ * @param id The ID of the web integration to update.
232
+ * @param body an object with the body content
233
+ * @throws PatchWebIntegrationHttpError
234
+ */
235
+ patchWebIntegration: typeof patchWebIntegration;
236
+ /**
237
+ * Clears the cache for web-integrations api requests.
238
+ */
239
+ clearCache: typeof clearCache;
240
+ }
241
+ /**
242
+ * Functions for the web-integrations api
243
+ */
244
+ declare const webIntegrationsExport: WebIntegrationsAPI;
245
+
246
+ export { type CreateWebIntegrationHttpError, type CreateWebIntegrationHttpResponse, type DeleteWebIntegrationHttpError, type DeleteWebIntegrationHttpResponse, type Error, type Errors, type GetWebIntegrationHttpError, type GetWebIntegrationHttpResponse, type GetWebIntegrationsHttpError, type GetWebIntegrationsHttpResponse, type PatchWebIntegrationHttpError, type PatchWebIntegrationHttpResponse, type WebIntegration, type WebIntegrationPatch, type WebIntegrationPatchSchema, type WebIntegrationPost, type WebIntegrationPostSchema, type WebIntegrations, type WebIntegrationsAPI, clearCache, createWebIntegration, webIntegrationsExport as default, deleteWebIntegration, getWebIntegration, getWebIntegrations, patchWebIntegration };
@@ -0,0 +1,246 @@
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 error. */
8
+ detail?: string;
9
+ /** Additional properties relating to the error. */
10
+ meta?: unknown;
11
+ /** References to the source of the error. */
12
+ source?: {
13
+ /** The URI query parameter that caused the error. */
14
+ parameter?: string;
15
+ /** A JSON Pointer to the property that caused the error. */
16
+ pointer?: string;
17
+ };
18
+ /** The HTTP status code. */
19
+ status: string;
20
+ /** Summary of the problem. */
21
+ title: string;
22
+ };
23
+ type Errors = {
24
+ /** An array of errors related to the operation. */
25
+ errors?: Error[];
26
+ /** A unique identifier for tracing the error. */
27
+ traceId?: string;
28
+ };
29
+ type WebIntegration = {
30
+ /** The time the web integration was created. */
31
+ readonly created?: string;
32
+ /** The user that created the web integration. */
33
+ readonly createdBy?: string;
34
+ /** The unique web integration identifier. */
35
+ readonly id?: string;
36
+ /** The time the web integration was last updated. */
37
+ readonly lastUpdated?: string;
38
+ /** The name of the web integration. */
39
+ name?: string;
40
+ /** The tenant that the web integration belongs to. */
41
+ tenantId?: string;
42
+ /** The origins that are allowed to make requests to the tenant. */
43
+ validOrigins?: string[];
44
+ };
45
+ type WebIntegrationPatch = {
46
+ /** The operation to be performed. */
47
+ op: "replace";
48
+ /** A JSON Pointer. */
49
+ path: "/name" | "/validOrigins";
50
+ /** New value to be used for this operation. */
51
+ value: string;
52
+ };
53
+ type WebIntegrationPatchSchema = WebIntegrationPatch[];
54
+ type WebIntegrationPost = {
55
+ /** The time the web integration was created. */
56
+ readonly created?: string;
57
+ /** The user that created the web integration. */
58
+ readonly createdBy?: string;
59
+ /** The unique web integration identifier. */
60
+ readonly id?: string;
61
+ /** The time the web integration was last updated. */
62
+ readonly lastUpdated?: string;
63
+ /** Pagination links */
64
+ links?: {
65
+ /** Link information for current page. */
66
+ self: {
67
+ /** URL to the current page of records. */
68
+ href: string;
69
+ };
70
+ };
71
+ /** The name of the newly created web integration. */
72
+ name?: string;
73
+ /** The tenant that the web integration belongs to. */
74
+ tenantId?: string;
75
+ /** The origins that are allowed to make requests to the tenant. */
76
+ validOrigins?: string[];
77
+ };
78
+ type WebIntegrationPostSchema = {
79
+ /** The name of the web integration to create. */
80
+ name: string;
81
+ /** The origins that are allowed to make requests to the tenant. */
82
+ validOrigins?: string[];
83
+ };
84
+ type WebIntegrations = {
85
+ /** Properties of web integrations in a given tenant. */
86
+ data?: WebIntegration[];
87
+ /** Pagination links */
88
+ links?: {
89
+ /** Link information for next page. */
90
+ next?: {
91
+ /** URL to the next page of records. */
92
+ href: string;
93
+ };
94
+ /** Link information for previous page. */
95
+ prev?: {
96
+ /** URL to the previous page of records. */
97
+ href: string;
98
+ };
99
+ /** Link information for current page. */
100
+ self: {
101
+ /** URL to the current page of records. */
102
+ href: string;
103
+ };
104
+ };
105
+ };
106
+ /**
107
+ * Retrieves web integrations matching the query.
108
+ * @param query an object with query parameters
109
+ * @throws GetWebIntegrationsHttpError
110
+ */
111
+ declare const getWebIntegrations: (query: {
112
+ /** The target web integration ID to start looking before for web integrations. Cannot be used in conjunction with startingAfter. */
113
+ endingBefore?: string;
114
+ /** The number of web integration entries to retrieve. */
115
+ limit?: number;
116
+ /** The field to sort by. Prefix with +/- to indicate ascending/descending order. */
117
+ sort?: "name" | "+name" | "-name";
118
+ /** The target web integration ID to start looking after for web integrations. Cannot be used in conjunction with endingBefore. */
119
+ startingAfter?: string;
120
+ /** The tenant ID to filter by. */
121
+ tenantId?: string;
122
+ }, options?: ApiCallOptions) => Promise<GetWebIntegrationsHttpResponse>;
123
+ type GetWebIntegrationsHttpResponse = {
124
+ data: WebIntegrations;
125
+ headers: Headers;
126
+ status: number;
127
+ prev?: (options?: ApiCallOptions) => Promise<GetWebIntegrationsHttpResponse>;
128
+ next?: (options?: ApiCallOptions) => Promise<GetWebIntegrationsHttpResponse>;
129
+ };
130
+ type GetWebIntegrationsHttpError = {
131
+ data: Errors;
132
+ headers: Headers;
133
+ status: number;
134
+ };
135
+ /**
136
+ * Creates a web integration.
137
+ * @param body an object with the body content
138
+ * @throws CreateWebIntegrationHttpError
139
+ */
140
+ declare const createWebIntegration: (body: WebIntegrationPostSchema, options?: ApiCallOptions) => Promise<CreateWebIntegrationHttpResponse>;
141
+ type CreateWebIntegrationHttpResponse = {
142
+ data: WebIntegrationPost;
143
+ headers: Headers;
144
+ status: number;
145
+ };
146
+ type CreateWebIntegrationHttpError = {
147
+ data: Errors;
148
+ headers: Headers;
149
+ status: number;
150
+ };
151
+ /**
152
+ * Deletes a single web integration by ID.
153
+ * @param id The ID of the web integration to delete.
154
+ * @throws DeleteWebIntegrationHttpError
155
+ */
156
+ declare const deleteWebIntegration: (id: string, options?: ApiCallOptions) => Promise<DeleteWebIntegrationHttpResponse>;
157
+ type DeleteWebIntegrationHttpResponse = {
158
+ data: void;
159
+ headers: Headers;
160
+ status: number;
161
+ };
162
+ type DeleteWebIntegrationHttpError = {
163
+ data: Errors;
164
+ headers: Headers;
165
+ status: number;
166
+ };
167
+ /**
168
+ * Retrieves a single web integration by ID.
169
+ * @param id The ID of the web integration to retrieve.
170
+ * @throws GetWebIntegrationHttpError
171
+ */
172
+ declare const getWebIntegration: (id: string, options?: ApiCallOptions) => Promise<GetWebIntegrationHttpResponse>;
173
+ type GetWebIntegrationHttpResponse = {
174
+ data: WebIntegration;
175
+ headers: Headers;
176
+ status: number;
177
+ };
178
+ type GetWebIntegrationHttpError = {
179
+ data: Errors;
180
+ headers: Headers;
181
+ status: number;
182
+ };
183
+ /**
184
+ * Updates a single web integration by ID.
185
+ * @param id The ID of the web integration to update.
186
+ * @param body an object with the body content
187
+ * @throws PatchWebIntegrationHttpError
188
+ */
189
+ declare const patchWebIntegration: (id: string, body: WebIntegrationPatchSchema, options?: ApiCallOptions) => Promise<PatchWebIntegrationHttpResponse>;
190
+ type PatchWebIntegrationHttpResponse = {
191
+ data: void;
192
+ headers: Headers;
193
+ status: number;
194
+ };
195
+ type PatchWebIntegrationHttpError = {
196
+ data: Errors;
197
+ headers: Headers;
198
+ status: number;
199
+ };
200
+ /**
201
+ * Clears the cache for web-integrations api requests.
202
+ */
203
+ declare function clearCache(): void;
204
+ interface WebIntegrationsAPI {
205
+ /**
206
+ * Retrieves web integrations matching the query.
207
+ * @param query an object with query parameters
208
+ * @throws GetWebIntegrationsHttpError
209
+ */
210
+ getWebIntegrations: typeof getWebIntegrations;
211
+ /**
212
+ * Creates a web integration.
213
+ * @param body an object with the body content
214
+ * @throws CreateWebIntegrationHttpError
215
+ */
216
+ createWebIntegration: typeof createWebIntegration;
217
+ /**
218
+ * Deletes a single web integration by ID.
219
+ * @param id The ID of the web integration to delete.
220
+ * @throws DeleteWebIntegrationHttpError
221
+ */
222
+ deleteWebIntegration: typeof deleteWebIntegration;
223
+ /**
224
+ * Retrieves a single web integration by ID.
225
+ * @param id The ID of the web integration to retrieve.
226
+ * @throws GetWebIntegrationHttpError
227
+ */
228
+ getWebIntegration: typeof getWebIntegration;
229
+ /**
230
+ * Updates a single web integration by ID.
231
+ * @param id The ID of the web integration to update.
232
+ * @param body an object with the body content
233
+ * @throws PatchWebIntegrationHttpError
234
+ */
235
+ patchWebIntegration: typeof patchWebIntegration;
236
+ /**
237
+ * Clears the cache for web-integrations api requests.
238
+ */
239
+ clearCache: typeof clearCache;
240
+ }
241
+ /**
242
+ * Functions for the web-integrations api
243
+ */
244
+ declare const webIntegrationsExport: WebIntegrationsAPI;
245
+
246
+ export { type CreateWebIntegrationHttpError, type CreateWebIntegrationHttpResponse, type DeleteWebIntegrationHttpError, type DeleteWebIntegrationHttpResponse, type Error, type Errors, type GetWebIntegrationHttpError, type GetWebIntegrationHttpResponse, type GetWebIntegrationsHttpError, type GetWebIntegrationsHttpResponse, type PatchWebIntegrationHttpError, type PatchWebIntegrationHttpResponse, type WebIntegration, type WebIntegrationPatch, type WebIntegrationPatchSchema, type WebIntegrationPost, type WebIntegrationPostSchema, type WebIntegrations, type WebIntegrationsAPI, clearCache, createWebIntegration, webIntegrationsExport as default, deleteWebIntegration, getWebIntegration, getWebIntegrations, patchWebIntegration };
@@ -0,0 +1,59 @@
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-integrations.ts
8
+ var getWebIntegrations = async (query, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "web-integrations", {
9
+ method: "get",
10
+ pathTemplate: "/api/v1/web-integrations",
11
+ query,
12
+ options
13
+ });
14
+ var createWebIntegration = async (body, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "web-integrations", {
15
+ method: "post",
16
+ pathTemplate: "/api/v1/web-integrations",
17
+ body,
18
+ options
19
+ });
20
+ var deleteWebIntegration = async (id, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "web-integrations", {
21
+ method: "delete",
22
+ pathTemplate: "/api/v1/web-integrations/{id}",
23
+ pathVariables: { id },
24
+ options
25
+ });
26
+ var getWebIntegration = async (id, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "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) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "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 _chunkOULT3V2Ujs.clearApiCache.call(void 0, "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
+
52
+
53
+
54
+
55
+
56
+
57
+
58
+
59
+ exports.clearCache = clearCache; exports.createWebIntegration = createWebIntegration; exports.default = web_integrations_default; exports.deleteWebIntegration = deleteWebIntegration; exports.getWebIntegration = getWebIntegration; exports.getWebIntegrations = getWebIntegrations; exports.patchWebIntegration = patchWebIntegration;