@qlik/api 0.0.16 → 0.1.0
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.
- package/README.md +1 -1
- package/api-keys.js +25 -25
- package/apps.js +97 -97
- package/audits.js +23 -23
- package/auth.js +14 -14
- package/automations.js +47 -47
- package/brands.js +35 -35
- package/chunks/4HB3TAEO.js +4 -4
- package/chunks/{EHAANYDL.mjs → 4V5AAWUI.js} +3 -3
- package/chunks/{O4EAKEIN.mjs → D62LI5YU.js} +1 -1
- package/chunks/{6WX5AGKQ.mjs → L2BJNKLV.js} +2 -2
- package/chunks/{3YV6X7S6.mjs → LHCJKIEO.js} +1 -1
- package/chunks/OPRGGO4C.js +8 -8
- package/chunks/{HHOVS7QC.mjs → RNLZBOJU.js} +3 -3
- package/chunks/{BYD63JCG.mjs → SIU6HO6B.js} +5 -3
- package/chunks/{6AD3HYSF.mjs → TFSRDRRS.js} +1 -1
- package/chunks/{HOCTJESP.mjs → VK2CODYY.js} +2 -2
- package/chunks/{UKVTBYP6.mjs → XOVMZWDC.js} +2 -2
- package/collections.js +33 -33
- package/csp-origins.js +23 -23
- package/data-assets.js +21 -21
- package/data-connections.js +29 -29
- package/data-credentials.js +19 -19
- package/data-files.js +35 -35
- package/docs/authentication.md +5 -5
- package/docs/examples/fetch-spaces.md +1 -15
- package/docs/examples/show-sheet-list.md +1 -1
- package/docs/features.md +1 -1
- package/extensions.js +25 -25
- package/glossaries.js +59 -59
- package/groups.d.ts +0 -3
- package/groups.js +27 -27
- package/identity-providers.js +27 -27
- package/index.js +53 -53
- package/items.js +27 -27
- package/licenses.js +29 -29
- package/package.json +36 -232
- package/qix.d.ts +1 -1
- package/qix.js +10 -10
- package/quotas.js +15 -15
- package/reload-tasks.js +21 -21
- package/reloads.js +19 -19
- package/roles.js +15 -15
- package/spaces.js +35 -35
- package/temp-contents.js +17 -17
- package/tenants.js +23 -23
- package/themes.js +25 -25
- package/transports.js +23 -23
- package/users.d.ts +1 -3
- package/users.js +31 -31
- package/web-integrations.js +21 -21
- package/web-notifications.js +23 -23
- package/webhooks.js +31 -31
- package/api-keys.d.mts +0 -336
- package/api-keys.mjs +0 -80
- package/apps.d.mts +0 -2431
- package/apps.mjs +0 -398
- package/audits.d.mts +0 -286
- package/audits.mjs +0 -64
- package/auth-types-nnUcWhuU.d.mts +0 -98
- package/auth.d.mts +0 -26
- package/auth.mjs +0 -14
- package/automations.d.mts +0 -682
- package/automations.mjs +0 -173
- package/brands.d.mts +0 -670
- package/brands.mjs +0 -123
- package/chunks/2YWCEGTS.js +0 -21
- package/chunks/34ZKUFEA.js +0 -41
- package/chunks/4WHZ4EIW.js +0 -57
- package/chunks/B4VPD3ZT.js +0 -574
- package/chunks/BM4OSDRZ.js +0 -17
- package/chunks/DCXUEDOW.mjs +0 -67
- package/chunks/MTAQE4WC.js +0 -10411
- package/chunks/PLOSYUG2.js +0 -25
- package/chunks/URIW2U5M.js +0 -17
- package/chunks/VSY5YIQY.mjs +0 -11
- package/chunks/WOYJLK4Y.js +0 -1623
- package/collections.d.mts +0 -581
- package/collections.mjs +0 -114
- package/csp-origins.d.mts +0 -273
- package/csp-origins.mjs +0 -69
- package/data-assets.d.mts +0 -205
- package/data-assets.mjs +0 -66
- package/data-connections.d.mts +0 -594
- package/data-connections.mjs +0 -103
- package/data-credentials.d.mts +0 -204
- package/data-credentials.mjs +0 -59
- package/data-files.d.mts +0 -562
- package/data-files.mjs +0 -123
- package/extensions.d.mts +0 -293
- package/extensions.mjs +0 -77
- package/global.types-5iFvFJvX.d.mts +0 -115
- package/glossaries.d.mts +0 -1173
- package/glossaries.mjs +0 -237
- package/groups.d.mts +0 -434
- package/groups.mjs +0 -88
- package/identity-providers.d.mts +0 -550
- package/identity-providers.mjs +0 -83
- package/index.d.mts +0 -142
- package/index.mjs +0 -716
- package/items.d.mts +0 -535
- package/items.mjs +0 -87
- package/licenses.d.mts +0 -459
- package/licenses.mjs +0 -92
- package/qix.d.mts +0 -11629
- package/qix.mjs +0 -10
- package/quotas.d.mts +0 -112
- package/quotas.mjs +0 -32
- package/reload-tasks.d.mts +0 -227
- package/reload-tasks.mjs +0 -62
- package/reloads.d.mts +0 -207
- package/reloads.mjs +0 -46
- package/roles.d.mts +0 -175
- package/roles.mjs +0 -31
- package/spaces.d.mts +0 -562
- package/spaces.mjs +0 -124
- package/temp-contents.d.mts +0 -167
- package/temp-contents.mjs +0 -41
- package/tenants.d.mts +0 -300
- package/tenants.mjs +0 -73
- package/themes.d.mts +0 -268
- package/themes.mjs +0 -77
- package/transports.d.mts +0 -319
- package/transports.mjs +0 -65
- package/users.d.mts +0 -631
- package/users.mjs +0 -104
- package/web-integrations.d.mts +0 -274
- package/web-integrations.mjs +0 -62
- package/web-notifications.d.mts +0 -250
- package/web-notifications.mjs +0 -69
- package/webhooks.d.mts +0 -445
- package/webhooks.mjs +0 -104
package/users.mjs
DELETED
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
clearApiCache,
|
|
3
|
-
invokeFetch
|
|
4
|
-
} from "./chunks/3YV6X7S6.mjs";
|
|
5
|
-
import "./chunks/EHAANYDL.mjs";
|
|
6
|
-
import "./chunks/VSY5YIQY.mjs";
|
|
7
|
-
|
|
8
|
-
// src/public/rest/users.ts
|
|
9
|
-
var getUsers = async (query, options) => invokeFetch("users", {
|
|
10
|
-
method: "get",
|
|
11
|
-
pathTemplate: "/api/v1/users",
|
|
12
|
-
query,
|
|
13
|
-
options
|
|
14
|
-
});
|
|
15
|
-
var createUser = async (body, options) => invokeFetch("users", {
|
|
16
|
-
method: "post",
|
|
17
|
-
pathTemplate: "/api/v1/users",
|
|
18
|
-
body,
|
|
19
|
-
contentType: "application/json",
|
|
20
|
-
options
|
|
21
|
-
});
|
|
22
|
-
var countUsers = async (query, options) => invokeFetch("users", {
|
|
23
|
-
method: "get",
|
|
24
|
-
pathTemplate: "/api/v1/users/actions/count",
|
|
25
|
-
query,
|
|
26
|
-
options
|
|
27
|
-
});
|
|
28
|
-
var filterUsers = async (query, body, options) => invokeFetch("users", {
|
|
29
|
-
method: "post",
|
|
30
|
-
pathTemplate: "/api/v1/users/actions/filter",
|
|
31
|
-
query,
|
|
32
|
-
body,
|
|
33
|
-
contentType: "application/json",
|
|
34
|
-
options
|
|
35
|
-
});
|
|
36
|
-
var inviteUsers = async (body, options) => invokeFetch("users", {
|
|
37
|
-
method: "post",
|
|
38
|
-
pathTemplate: "/api/v1/users/actions/invite",
|
|
39
|
-
body,
|
|
40
|
-
contentType: "application/json",
|
|
41
|
-
options
|
|
42
|
-
});
|
|
43
|
-
var getMyUser = async (options) => invokeFetch("users", {
|
|
44
|
-
method: "get",
|
|
45
|
-
pathTemplate: "/api/v1/users/me",
|
|
46
|
-
options
|
|
47
|
-
});
|
|
48
|
-
var getUsersMetadata = async (options) => invokeFetch("users", {
|
|
49
|
-
method: "get",
|
|
50
|
-
pathTemplate: "/api/v1/users/metadata",
|
|
51
|
-
options
|
|
52
|
-
});
|
|
53
|
-
var deleteUser = async (userId, options) => invokeFetch("users", {
|
|
54
|
-
method: "delete",
|
|
55
|
-
pathTemplate: "/api/v1/users/{userId}",
|
|
56
|
-
pathVariables: { userId },
|
|
57
|
-
options
|
|
58
|
-
});
|
|
59
|
-
var getUser = async (userId, query, options) => invokeFetch("users", {
|
|
60
|
-
method: "get",
|
|
61
|
-
pathTemplate: "/api/v1/users/{userId}",
|
|
62
|
-
pathVariables: { userId },
|
|
63
|
-
query,
|
|
64
|
-
options
|
|
65
|
-
});
|
|
66
|
-
var patchUser = async (userId, body, options) => invokeFetch("users", {
|
|
67
|
-
method: "patch",
|
|
68
|
-
pathTemplate: "/api/v1/users/{userId}",
|
|
69
|
-
pathVariables: { userId },
|
|
70
|
-
body,
|
|
71
|
-
contentType: "application/json",
|
|
72
|
-
options
|
|
73
|
-
});
|
|
74
|
-
function clearCache() {
|
|
75
|
-
return clearApiCache("users");
|
|
76
|
-
}
|
|
77
|
-
var usersExport = {
|
|
78
|
-
getUsers,
|
|
79
|
-
createUser,
|
|
80
|
-
countUsers,
|
|
81
|
-
filterUsers,
|
|
82
|
-
inviteUsers,
|
|
83
|
-
getMyUser,
|
|
84
|
-
getUsersMetadata,
|
|
85
|
-
deleteUser,
|
|
86
|
-
getUser,
|
|
87
|
-
patchUser,
|
|
88
|
-
clearCache
|
|
89
|
-
};
|
|
90
|
-
var users_default = usersExport;
|
|
91
|
-
export {
|
|
92
|
-
clearCache,
|
|
93
|
-
countUsers,
|
|
94
|
-
createUser,
|
|
95
|
-
users_default as default,
|
|
96
|
-
deleteUser,
|
|
97
|
-
filterUsers,
|
|
98
|
-
getMyUser,
|
|
99
|
-
getUser,
|
|
100
|
-
getUsers,
|
|
101
|
-
getUsersMetadata,
|
|
102
|
-
inviteUsers,
|
|
103
|
-
patchUser
|
|
104
|
-
};
|
package/web-integrations.d.mts
DELETED
|
@@ -1,274 +0,0 @@
|
|
|
1
|
-
import { A as ApiCallOptions } from './global.types-5iFvFJvX.mjs';
|
|
2
|
-
import './auth-types-nnUcWhuU.mjs';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* An error object describing the error.
|
|
6
|
-
*/
|
|
7
|
-
type Error = {
|
|
8
|
-
/** The error code. */
|
|
9
|
-
code: string;
|
|
10
|
-
/** A human-readable explanation specific to this occurrence of the error. */
|
|
11
|
-
detail?: string;
|
|
12
|
-
/** Additional properties relating to the error. */
|
|
13
|
-
meta?: unknown;
|
|
14
|
-
/** References to the source of the error. */
|
|
15
|
-
source?: {
|
|
16
|
-
/** The URI query parameter that caused the error. */
|
|
17
|
-
parameter?: string;
|
|
18
|
-
/** A JSON Pointer to the property that caused the error. */
|
|
19
|
-
pointer?: string;
|
|
20
|
-
};
|
|
21
|
-
/** The HTTP status code. */
|
|
22
|
-
status: string;
|
|
23
|
-
/** Summary of the problem. */
|
|
24
|
-
title: string;
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* The error response object describing the error from the handling of an HTTP request.
|
|
28
|
-
*/
|
|
29
|
-
type Errors = {
|
|
30
|
-
/** An array of errors related to the operation. */
|
|
31
|
-
errors?: Error[];
|
|
32
|
-
/** A unique identifier for tracing the error. */
|
|
33
|
-
traceId?: string;
|
|
34
|
-
};
|
|
35
|
-
/**
|
|
36
|
-
* A web integration object.
|
|
37
|
-
*/
|
|
38
|
-
type WebIntegration = {
|
|
39
|
-
/** The time the web integration was created. */
|
|
40
|
-
readonly created?: string;
|
|
41
|
-
/** The user that created the web integration. */
|
|
42
|
-
readonly createdBy?: string;
|
|
43
|
-
/** The unique web integration identifier. */
|
|
44
|
-
readonly id?: string;
|
|
45
|
-
/** The time the web integration was last updated. */
|
|
46
|
-
readonly lastUpdated?: string;
|
|
47
|
-
/** The name of the web integration. */
|
|
48
|
-
name?: string;
|
|
49
|
-
/** The tenant that the web integration belongs to. */
|
|
50
|
-
tenantId?: string;
|
|
51
|
-
/** The origins that are allowed to make requests to the tenant. */
|
|
52
|
-
validOrigins?: string[];
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* A JSON Patch document as defined in http://tools.ietf.org/html/rfc6902.
|
|
56
|
-
*/
|
|
57
|
-
type WebIntegrationPatch = {
|
|
58
|
-
/** The operation to be performed. */
|
|
59
|
-
op: "replace";
|
|
60
|
-
/** A JSON Pointer. */
|
|
61
|
-
path: "/name" | "/validOrigins";
|
|
62
|
-
/** New value to be used for this operation. */
|
|
63
|
-
value: string;
|
|
64
|
-
};
|
|
65
|
-
type WebIntegrationPatchSchema = WebIntegrationPatch[];
|
|
66
|
-
/**
|
|
67
|
-
* The creation of a web integration response.
|
|
68
|
-
*/
|
|
69
|
-
type WebIntegrationPost = {
|
|
70
|
-
/** The time the web integration was created. */
|
|
71
|
-
readonly created?: string;
|
|
72
|
-
/** The user that created the web integration. */
|
|
73
|
-
readonly createdBy?: string;
|
|
74
|
-
/** The unique web integration identifier. */
|
|
75
|
-
readonly id?: string;
|
|
76
|
-
/** The time the web integration was last updated. */
|
|
77
|
-
readonly lastUpdated?: string;
|
|
78
|
-
/** Pagination links */
|
|
79
|
-
links?: {
|
|
80
|
-
/** Link information for current page. */
|
|
81
|
-
self: {
|
|
82
|
-
/** URL to the current page of records. */
|
|
83
|
-
href: string;
|
|
84
|
-
};
|
|
85
|
-
};
|
|
86
|
-
/** The name of the newly created web integration. */
|
|
87
|
-
name?: string;
|
|
88
|
-
/** The tenant that the web integration belongs to. */
|
|
89
|
-
tenantId?: string;
|
|
90
|
-
/** The origins that are allowed to make requests to the tenant. */
|
|
91
|
-
validOrigins?: string[];
|
|
92
|
-
};
|
|
93
|
-
type WebIntegrationPostSchema = {
|
|
94
|
-
/** The name of the web integration to create. */
|
|
95
|
-
name: string;
|
|
96
|
-
/** The origins that are allowed to make requests to the tenant. */
|
|
97
|
-
validOrigins?: string[];
|
|
98
|
-
};
|
|
99
|
-
/**
|
|
100
|
-
* An array of web integration objects.
|
|
101
|
-
*/
|
|
102
|
-
type WebIntegrations = {
|
|
103
|
-
/** Properties of web integrations in a given tenant. */
|
|
104
|
-
data?: WebIntegration[];
|
|
105
|
-
/** Pagination links */
|
|
106
|
-
links?: {
|
|
107
|
-
/** Link information for next page. */
|
|
108
|
-
next?: {
|
|
109
|
-
/** URL to the next page of records. */
|
|
110
|
-
href: string;
|
|
111
|
-
};
|
|
112
|
-
/** Link information for previous page. */
|
|
113
|
-
prev?: {
|
|
114
|
-
/** URL to the previous page of records. */
|
|
115
|
-
href: string;
|
|
116
|
-
};
|
|
117
|
-
/** Link information for current page. */
|
|
118
|
-
self: {
|
|
119
|
-
/** URL to the current page of records. */
|
|
120
|
-
href: string;
|
|
121
|
-
};
|
|
122
|
-
};
|
|
123
|
-
};
|
|
124
|
-
/**
|
|
125
|
-
* Retrieves web integrations matching the query.
|
|
126
|
-
*
|
|
127
|
-
* @param query an object with query parameters
|
|
128
|
-
* @throws GetWebIntegrationsHttpError
|
|
129
|
-
*/
|
|
130
|
-
declare const getWebIntegrations: (query: {
|
|
131
|
-
/** The target web integration ID to start looking before for web integrations. Cannot be used in conjunction with startingAfter. */
|
|
132
|
-
endingBefore?: string;
|
|
133
|
-
/** The number of web integration entries to retrieve. */
|
|
134
|
-
limit?: number;
|
|
135
|
-
/** The field to sort by. Prefix with +/- to indicate ascending/descending order. */
|
|
136
|
-
sort?: "name" | "+name" | "-name";
|
|
137
|
-
/** The target web integration ID to start looking after for web integrations. Cannot be used in conjunction with endingBefore. */
|
|
138
|
-
startingAfter?: string;
|
|
139
|
-
/** The tenant ID to filter by. */
|
|
140
|
-
tenantId?: string;
|
|
141
|
-
}, options?: ApiCallOptions) => Promise<GetWebIntegrationsHttpResponse>;
|
|
142
|
-
type GetWebIntegrationsHttpResponse = {
|
|
143
|
-
data: WebIntegrations;
|
|
144
|
-
headers: Headers;
|
|
145
|
-
status: number;
|
|
146
|
-
prev?: (options?: ApiCallOptions) => Promise<GetWebIntegrationsHttpResponse>;
|
|
147
|
-
next?: (options?: ApiCallOptions) => Promise<GetWebIntegrationsHttpResponse>;
|
|
148
|
-
};
|
|
149
|
-
type GetWebIntegrationsHttpError = {
|
|
150
|
-
data: Errors;
|
|
151
|
-
headers: Headers;
|
|
152
|
-
status: number;
|
|
153
|
-
};
|
|
154
|
-
/**
|
|
155
|
-
* Creates a web integration.
|
|
156
|
-
*
|
|
157
|
-
* @param body an object with the body content
|
|
158
|
-
* @throws CreateWebIntegrationHttpError
|
|
159
|
-
*/
|
|
160
|
-
declare const createWebIntegration: (body: WebIntegrationPostSchema, options?: ApiCallOptions) => Promise<CreateWebIntegrationHttpResponse>;
|
|
161
|
-
type CreateWebIntegrationHttpResponse = {
|
|
162
|
-
data: WebIntegrationPost;
|
|
163
|
-
headers: Headers;
|
|
164
|
-
status: number;
|
|
165
|
-
};
|
|
166
|
-
type CreateWebIntegrationHttpError = {
|
|
167
|
-
data: Errors;
|
|
168
|
-
headers: Headers;
|
|
169
|
-
status: number;
|
|
170
|
-
};
|
|
171
|
-
/**
|
|
172
|
-
* Deletes a single web integration by ID.
|
|
173
|
-
*
|
|
174
|
-
* @param id The ID of the web integration to delete.
|
|
175
|
-
* @throws DeleteWebIntegrationHttpError
|
|
176
|
-
*/
|
|
177
|
-
declare const deleteWebIntegration: (id: string, options?: ApiCallOptions) => Promise<DeleteWebIntegrationHttpResponse>;
|
|
178
|
-
type DeleteWebIntegrationHttpResponse = {
|
|
179
|
-
data: void;
|
|
180
|
-
headers: Headers;
|
|
181
|
-
status: number;
|
|
182
|
-
};
|
|
183
|
-
type DeleteWebIntegrationHttpError = {
|
|
184
|
-
data: Errors;
|
|
185
|
-
headers: Headers;
|
|
186
|
-
status: number;
|
|
187
|
-
};
|
|
188
|
-
/**
|
|
189
|
-
* Retrieves a single web integration by ID.
|
|
190
|
-
*
|
|
191
|
-
* @param id The ID of the web integration to retrieve.
|
|
192
|
-
* @throws GetWebIntegrationHttpError
|
|
193
|
-
*/
|
|
194
|
-
declare const getWebIntegration: (id: string, options?: ApiCallOptions) => Promise<GetWebIntegrationHttpResponse>;
|
|
195
|
-
type GetWebIntegrationHttpResponse = {
|
|
196
|
-
data: WebIntegration;
|
|
197
|
-
headers: Headers;
|
|
198
|
-
status: number;
|
|
199
|
-
};
|
|
200
|
-
type GetWebIntegrationHttpError = {
|
|
201
|
-
data: Errors;
|
|
202
|
-
headers: Headers;
|
|
203
|
-
status: number;
|
|
204
|
-
};
|
|
205
|
-
/**
|
|
206
|
-
* Updates a single web integration by ID.
|
|
207
|
-
*
|
|
208
|
-
* @param id The ID of the web integration to update.
|
|
209
|
-
* @param body an object with the body content
|
|
210
|
-
* @throws PatchWebIntegrationHttpError
|
|
211
|
-
*/
|
|
212
|
-
declare const patchWebIntegration: (id: string, body: WebIntegrationPatchSchema, options?: ApiCallOptions) => Promise<PatchWebIntegrationHttpResponse>;
|
|
213
|
-
type PatchWebIntegrationHttpResponse = {
|
|
214
|
-
data: void;
|
|
215
|
-
headers: Headers;
|
|
216
|
-
status: number;
|
|
217
|
-
};
|
|
218
|
-
type PatchWebIntegrationHttpError = {
|
|
219
|
-
data: Errors;
|
|
220
|
-
headers: Headers;
|
|
221
|
-
status: number;
|
|
222
|
-
};
|
|
223
|
-
/**
|
|
224
|
-
* Clears the cache for web-integrations api requests.
|
|
225
|
-
*/
|
|
226
|
-
declare function clearCache(): void;
|
|
227
|
-
interface WebIntegrationsAPI {
|
|
228
|
-
/**
|
|
229
|
-
* Retrieves web integrations matching the query.
|
|
230
|
-
*
|
|
231
|
-
* @param query an object with query parameters
|
|
232
|
-
* @throws GetWebIntegrationsHttpError
|
|
233
|
-
*/
|
|
234
|
-
getWebIntegrations: typeof getWebIntegrations;
|
|
235
|
-
/**
|
|
236
|
-
* Creates a web integration.
|
|
237
|
-
*
|
|
238
|
-
* @param body an object with the body content
|
|
239
|
-
* @throws CreateWebIntegrationHttpError
|
|
240
|
-
*/
|
|
241
|
-
createWebIntegration: typeof createWebIntegration;
|
|
242
|
-
/**
|
|
243
|
-
* Deletes a single web integration by ID.
|
|
244
|
-
*
|
|
245
|
-
* @param id The ID of the web integration to delete.
|
|
246
|
-
* @throws DeleteWebIntegrationHttpError
|
|
247
|
-
*/
|
|
248
|
-
deleteWebIntegration: typeof deleteWebIntegration;
|
|
249
|
-
/**
|
|
250
|
-
* Retrieves a single web integration by ID.
|
|
251
|
-
*
|
|
252
|
-
* @param id The ID of the web integration to retrieve.
|
|
253
|
-
* @throws GetWebIntegrationHttpError
|
|
254
|
-
*/
|
|
255
|
-
getWebIntegration: typeof getWebIntegration;
|
|
256
|
-
/**
|
|
257
|
-
* Updates a single web integration by ID.
|
|
258
|
-
*
|
|
259
|
-
* @param id The ID of the web integration to update.
|
|
260
|
-
* @param body an object with the body content
|
|
261
|
-
* @throws PatchWebIntegrationHttpError
|
|
262
|
-
*/
|
|
263
|
-
patchWebIntegration: typeof patchWebIntegration;
|
|
264
|
-
/**
|
|
265
|
-
* Clears the cache for web-integrations api requests.
|
|
266
|
-
*/
|
|
267
|
-
clearCache: typeof clearCache;
|
|
268
|
-
}
|
|
269
|
-
/**
|
|
270
|
-
* Functions for the web-integrations api
|
|
271
|
-
*/
|
|
272
|
-
declare const webIntegrationsExport: WebIntegrationsAPI;
|
|
273
|
-
|
|
274
|
-
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 };
|
package/web-integrations.mjs
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
clearApiCache,
|
|
3
|
-
invokeFetch
|
|
4
|
-
} from "./chunks/3YV6X7S6.mjs";
|
|
5
|
-
import "./chunks/EHAANYDL.mjs";
|
|
6
|
-
import "./chunks/VSY5YIQY.mjs";
|
|
7
|
-
|
|
8
|
-
// src/public/rest/web-integrations.ts
|
|
9
|
-
var getWebIntegrations = async (query, options) => invokeFetch("web-integrations", {
|
|
10
|
-
method: "get",
|
|
11
|
-
pathTemplate: "/api/v1/web-integrations",
|
|
12
|
-
query,
|
|
13
|
-
options
|
|
14
|
-
});
|
|
15
|
-
var createWebIntegration = async (body, options) => invokeFetch("web-integrations", {
|
|
16
|
-
method: "post",
|
|
17
|
-
pathTemplate: "/api/v1/web-integrations",
|
|
18
|
-
body,
|
|
19
|
-
contentType: "application/json",
|
|
20
|
-
options
|
|
21
|
-
});
|
|
22
|
-
var deleteWebIntegration = async (id, options) => invokeFetch("web-integrations", {
|
|
23
|
-
method: "delete",
|
|
24
|
-
pathTemplate: "/api/v1/web-integrations/{id}",
|
|
25
|
-
pathVariables: { id },
|
|
26
|
-
options
|
|
27
|
-
});
|
|
28
|
-
var getWebIntegration = async (id, options) => invokeFetch("web-integrations", {
|
|
29
|
-
method: "get",
|
|
30
|
-
pathTemplate: "/api/v1/web-integrations/{id}",
|
|
31
|
-
pathVariables: { id },
|
|
32
|
-
options
|
|
33
|
-
});
|
|
34
|
-
var patchWebIntegration = async (id, body, options) => invokeFetch("web-integrations", {
|
|
35
|
-
method: "patch",
|
|
36
|
-
pathTemplate: "/api/v1/web-integrations/{id}",
|
|
37
|
-
pathVariables: { id },
|
|
38
|
-
body,
|
|
39
|
-
contentType: "application/json",
|
|
40
|
-
options
|
|
41
|
-
});
|
|
42
|
-
function clearCache() {
|
|
43
|
-
return clearApiCache("web-integrations");
|
|
44
|
-
}
|
|
45
|
-
var webIntegrationsExport = {
|
|
46
|
-
getWebIntegrations,
|
|
47
|
-
createWebIntegration,
|
|
48
|
-
deleteWebIntegration,
|
|
49
|
-
getWebIntegration,
|
|
50
|
-
patchWebIntegration,
|
|
51
|
-
clearCache
|
|
52
|
-
};
|
|
53
|
-
var web_integrations_default = webIntegrationsExport;
|
|
54
|
-
export {
|
|
55
|
-
clearCache,
|
|
56
|
-
createWebIntegration,
|
|
57
|
-
web_integrations_default as default,
|
|
58
|
-
deleteWebIntegration,
|
|
59
|
-
getWebIntegration,
|
|
60
|
-
getWebIntegrations,
|
|
61
|
-
patchWebIntegration
|
|
62
|
-
};
|
package/web-notifications.d.mts
DELETED
|
@@ -1,250 +0,0 @@
|
|
|
1
|
-
import { A as ApiCallOptions } from './global.types-5iFvFJvX.mjs';
|
|
2
|
-
import './auth-types-nnUcWhuU.mjs';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* An error object.
|
|
6
|
-
*/
|
|
7
|
-
type Error = {
|
|
8
|
-
/** The error code. */
|
|
9
|
-
code: string;
|
|
10
|
-
/** A human-readable explanation specific to this occurrence of the problem. */
|
|
11
|
-
message?: string;
|
|
12
|
-
/** The HTTP status code. */
|
|
13
|
-
status?: number;
|
|
14
|
-
/** Summary of the problem. */
|
|
15
|
-
title: string;
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* A representation of the errors encountered from the HTTP request.
|
|
19
|
-
*/
|
|
20
|
-
type Errors = {
|
|
21
|
-
errors?: Error[];
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* Notifications links
|
|
25
|
-
*/
|
|
26
|
-
type Links = {
|
|
27
|
-
next?: {
|
|
28
|
-
href?: string;
|
|
29
|
-
};
|
|
30
|
-
prev?: {
|
|
31
|
-
href?: string;
|
|
32
|
-
};
|
|
33
|
-
self?: {
|
|
34
|
-
href?: string;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
/**
|
|
38
|
-
* Notifications meta data
|
|
39
|
-
*/
|
|
40
|
-
type Meta = {
|
|
41
|
-
/** The total number of unread notification. */
|
|
42
|
-
unreadCount?: number;
|
|
43
|
-
};
|
|
44
|
-
type Notification = {
|
|
45
|
-
readonly action?: string;
|
|
46
|
-
readonly body: string;
|
|
47
|
-
readonly createdAt: string;
|
|
48
|
-
readonly id: string;
|
|
49
|
-
read: boolean;
|
|
50
|
-
readonly resourceId?: string;
|
|
51
|
-
resourceType?: string;
|
|
52
|
-
readonly spaceId?: string;
|
|
53
|
-
subResourceType?: string;
|
|
54
|
-
readonly tenantId?: string;
|
|
55
|
-
readonly updatedAt: string;
|
|
56
|
-
readonly userId: string;
|
|
57
|
-
};
|
|
58
|
-
/**
|
|
59
|
-
* A JSON Patch document as defined in http://tools.ietf.org/html/rfc6902.
|
|
60
|
-
*/
|
|
61
|
-
type NotificationPatch = {
|
|
62
|
-
/** The operation to be performed. */
|
|
63
|
-
op: "replace";
|
|
64
|
-
/** The path for the given resource field to patch. */
|
|
65
|
-
path: "/description";
|
|
66
|
-
/** The value to be used for this operation. */
|
|
67
|
-
value: string;
|
|
68
|
-
};
|
|
69
|
-
/**
|
|
70
|
-
* An array of JSON Patch documents
|
|
71
|
-
*/
|
|
72
|
-
type NotificationPatchSchema = NotificationPatch[];
|
|
73
|
-
type Notifications = {
|
|
74
|
-
data?: Notification[];
|
|
75
|
-
/** Notifications links */
|
|
76
|
-
links?: Links;
|
|
77
|
-
/** Notifications meta data */
|
|
78
|
-
meta?: Meta;
|
|
79
|
-
};
|
|
80
|
-
/**
|
|
81
|
-
* Retrieve notifications matching the query.
|
|
82
|
-
*
|
|
83
|
-
* @param query an object with query parameters
|
|
84
|
-
* @throws GetNotificationsHttpError
|
|
85
|
-
*/
|
|
86
|
-
declare const getNotifications: (query: {
|
|
87
|
-
/** The number of notification entries to retrieved. */
|
|
88
|
-
limit?: number;
|
|
89
|
-
/** Page number */
|
|
90
|
-
page?: number;
|
|
91
|
-
/** Read status of the notification */
|
|
92
|
-
read?: boolean;
|
|
93
|
-
/** The field to sort by, with +/- prefix indicating sort order */
|
|
94
|
-
sort?: "+createdAt" | "-createdAt" | "+updatedAt" | "-updatedAt";
|
|
95
|
-
}, options?: ApiCallOptions) => Promise<GetNotificationsHttpResponse>;
|
|
96
|
-
type GetNotificationsHttpResponse = {
|
|
97
|
-
data: Notifications;
|
|
98
|
-
headers: Headers;
|
|
99
|
-
status: number;
|
|
100
|
-
prev?: (options?: ApiCallOptions) => Promise<GetNotificationsHttpResponse>;
|
|
101
|
-
next?: (options?: ApiCallOptions) => Promise<GetNotificationsHttpResponse>;
|
|
102
|
-
};
|
|
103
|
-
type GetNotificationsHttpError = {
|
|
104
|
-
data: Errors;
|
|
105
|
-
headers: Headers;
|
|
106
|
-
status: number;
|
|
107
|
-
};
|
|
108
|
-
/**
|
|
109
|
-
* Delete all notifications.
|
|
110
|
-
*
|
|
111
|
-
* @throws DeleteNotificationsHttpError
|
|
112
|
-
*/
|
|
113
|
-
declare const deleteNotifications: (options?: ApiCallOptions) => Promise<DeleteNotificationsHttpResponse>;
|
|
114
|
-
type DeleteNotificationsHttpResponse = {
|
|
115
|
-
data: Meta;
|
|
116
|
-
headers: Headers;
|
|
117
|
-
status: number;
|
|
118
|
-
};
|
|
119
|
-
type DeleteNotificationsHttpError = {
|
|
120
|
-
data: Errors;
|
|
121
|
-
headers: Headers;
|
|
122
|
-
status: number;
|
|
123
|
-
};
|
|
124
|
-
/**
|
|
125
|
-
* Patch all notifications.
|
|
126
|
-
*
|
|
127
|
-
* @param body an object with the body content
|
|
128
|
-
* @throws PatchNotificationsHttpError
|
|
129
|
-
*/
|
|
130
|
-
declare const patchNotifications: (body: NotificationPatchSchema, options?: ApiCallOptions) => Promise<PatchNotificationsHttpResponse>;
|
|
131
|
-
type PatchNotificationsHttpResponse = {
|
|
132
|
-
data: Meta;
|
|
133
|
-
headers: Headers;
|
|
134
|
-
status: number;
|
|
135
|
-
};
|
|
136
|
-
type PatchNotificationsHttpError = {
|
|
137
|
-
data: Errors;
|
|
138
|
-
headers: Headers;
|
|
139
|
-
status: number;
|
|
140
|
-
};
|
|
141
|
-
/**
|
|
142
|
-
* Delete a notification.
|
|
143
|
-
*
|
|
144
|
-
* @param notificationId The id of the notification to delete.
|
|
145
|
-
* @throws DeleteNotificationHttpError
|
|
146
|
-
*/
|
|
147
|
-
declare const deleteNotification: (notificationId: string, options?: ApiCallOptions) => Promise<DeleteNotificationHttpResponse>;
|
|
148
|
-
type DeleteNotificationHttpResponse = {
|
|
149
|
-
data: Meta;
|
|
150
|
-
headers: Headers;
|
|
151
|
-
status: number;
|
|
152
|
-
};
|
|
153
|
-
type DeleteNotificationHttpError = {
|
|
154
|
-
data: Errors;
|
|
155
|
-
headers: Headers;
|
|
156
|
-
status: number;
|
|
157
|
-
};
|
|
158
|
-
/**
|
|
159
|
-
* Retrieve a single notification by Id.
|
|
160
|
-
*
|
|
161
|
-
* @param notificationId The id of the notification to retrieve.
|
|
162
|
-
* @throws GetNotificationHttpError
|
|
163
|
-
*/
|
|
164
|
-
declare const getNotification: (notificationId: string, options?: ApiCallOptions) => Promise<GetNotificationHttpResponse>;
|
|
165
|
-
type GetNotificationHttpResponse = {
|
|
166
|
-
data: Notification;
|
|
167
|
-
headers: Headers;
|
|
168
|
-
status: number;
|
|
169
|
-
};
|
|
170
|
-
type GetNotificationHttpError = {
|
|
171
|
-
data: Errors;
|
|
172
|
-
headers: Headers;
|
|
173
|
-
status: number;
|
|
174
|
-
};
|
|
175
|
-
/**
|
|
176
|
-
* Patch a notification.
|
|
177
|
-
*
|
|
178
|
-
* @param notificationId The id of the notification to update.
|
|
179
|
-
* @param body an object with the body content
|
|
180
|
-
* @throws PatchNotificationHttpError
|
|
181
|
-
*/
|
|
182
|
-
declare const patchNotification: (notificationId: string, body: NotificationPatchSchema, options?: ApiCallOptions) => Promise<PatchNotificationHttpResponse>;
|
|
183
|
-
type PatchNotificationHttpResponse = {
|
|
184
|
-
data: Meta;
|
|
185
|
-
headers: Headers;
|
|
186
|
-
status: number;
|
|
187
|
-
};
|
|
188
|
-
type PatchNotificationHttpError = {
|
|
189
|
-
data: Errors;
|
|
190
|
-
headers: Headers;
|
|
191
|
-
status: number;
|
|
192
|
-
};
|
|
193
|
-
/**
|
|
194
|
-
* Clears the cache for web-notifications api requests.
|
|
195
|
-
*/
|
|
196
|
-
declare function clearCache(): void;
|
|
197
|
-
interface WebNotificationsAPI {
|
|
198
|
-
/**
|
|
199
|
-
* Retrieve notifications matching the query.
|
|
200
|
-
*
|
|
201
|
-
* @param query an object with query parameters
|
|
202
|
-
* @throws GetNotificationsHttpError
|
|
203
|
-
*/
|
|
204
|
-
getNotifications: typeof getNotifications;
|
|
205
|
-
/**
|
|
206
|
-
* Delete all notifications.
|
|
207
|
-
*
|
|
208
|
-
* @throws DeleteNotificationsHttpError
|
|
209
|
-
*/
|
|
210
|
-
deleteNotifications: typeof deleteNotifications;
|
|
211
|
-
/**
|
|
212
|
-
* Patch all notifications.
|
|
213
|
-
*
|
|
214
|
-
* @param body an object with the body content
|
|
215
|
-
* @throws PatchNotificationsHttpError
|
|
216
|
-
*/
|
|
217
|
-
patchNotifications: typeof patchNotifications;
|
|
218
|
-
/**
|
|
219
|
-
* Delete a notification.
|
|
220
|
-
*
|
|
221
|
-
* @param notificationId The id of the notification to delete.
|
|
222
|
-
* @throws DeleteNotificationHttpError
|
|
223
|
-
*/
|
|
224
|
-
deleteNotification: typeof deleteNotification;
|
|
225
|
-
/**
|
|
226
|
-
* Retrieve a single notification by Id.
|
|
227
|
-
*
|
|
228
|
-
* @param notificationId The id of the notification to retrieve.
|
|
229
|
-
* @throws GetNotificationHttpError
|
|
230
|
-
*/
|
|
231
|
-
getNotification: typeof getNotification;
|
|
232
|
-
/**
|
|
233
|
-
* Patch a notification.
|
|
234
|
-
*
|
|
235
|
-
* @param notificationId The id of the notification to update.
|
|
236
|
-
* @param body an object with the body content
|
|
237
|
-
* @throws PatchNotificationHttpError
|
|
238
|
-
*/
|
|
239
|
-
patchNotification: typeof patchNotification;
|
|
240
|
-
/**
|
|
241
|
-
* Clears the cache for web-notifications api requests.
|
|
242
|
-
*/
|
|
243
|
-
clearCache: typeof clearCache;
|
|
244
|
-
}
|
|
245
|
-
/**
|
|
246
|
-
* Functions for the web-notifications api
|
|
247
|
-
*/
|
|
248
|
-
declare const webNotificationsExport: WebNotificationsAPI;
|
|
249
|
-
|
|
250
|
-
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 };
|