@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.
- package/LICENSE +17 -0
- package/README.md +8 -0
- package/api-keys.d.mts +313 -0
- package/api-keys.d.ts +313 -0
- package/api-keys.js +76 -0
- package/api-keys.mjs +76 -0
- package/apps.d.mts +1921 -0
- package/apps.d.ts +1921 -0
- package/apps.js +331 -0
- package/apps.mjs +331 -0
- package/audits.d.mts +262 -0
- package/audits.d.ts +262 -0
- package/audits.js +63 -0
- package/audits.mjs +63 -0
- package/auth-CSVTXOZX.js +36 -0
- package/auth-TE272Q34.mjs +36 -0
- package/auth-types-nnUcWhuU.d.mts +98 -0
- package/auth-types-nnUcWhuU.d.ts +98 -0
- package/auth.d.mts +26 -0
- package/auth.d.ts +26 -0
- package/auth.js +13 -0
- package/auth.mjs +13 -0
- package/automations.d.mts +638 -0
- package/automations.d.ts +638 -0
- package/automations.js +166 -0
- package/automations.mjs +166 -0
- package/brands.d.mts +614 -0
- package/brands.d.ts +614 -0
- package/brands.js +118 -0
- package/brands.mjs +118 -0
- package/chunk-3YE7EI7I.mjs +17 -0
- package/chunk-4ES65KO3.js +57 -0
- package/chunk-4FLMND6T.js +25 -0
- package/chunk-4OMEH5SW.mjs +1337 -0
- package/chunk-CKPJE4IA.mjs +57 -0
- package/chunk-GUQBHY3H.mjs +25 -0
- package/chunk-OULT3V2U.js +17 -0
- package/chunk-WM7FQU2U.mjs +21 -0
- package/chunk-XASXL2NC.js +1337 -0
- package/chunk-ZT4C7KCQ.js +21 -0
- package/collections.d.mts +535 -0
- package/collections.d.ts +535 -0
- package/collections.js +100 -0
- package/collections.mjs +100 -0
- package/csp-origins.d.mts +258 -0
- package/csp-origins.d.ts +258 -0
- package/csp-origins.js +66 -0
- package/csp-origins.mjs +66 -0
- package/data-assets.d.mts +195 -0
- package/data-assets.d.ts +195 -0
- package/data-assets.js +61 -0
- package/data-assets.mjs +61 -0
- package/data-connections.d.mts +527 -0
- package/data-connections.d.ts +527 -0
- package/data-connections.js +96 -0
- package/data-connections.mjs +96 -0
- package/data-credentials.d.mts +188 -0
- package/data-credentials.d.ts +188 -0
- package/data-credentials.js +56 -0
- package/data-credentials.mjs +56 -0
- package/data-files.d.mts +471 -0
- package/data-files.d.ts +471 -0
- package/data-files.js +116 -0
- package/data-files.mjs +116 -0
- package/docs/examples.md +4 -0
- package/enigma-session-4L373ALV.mjs +10196 -0
- package/enigma-session-TEB53FAF.js +10196 -0
- package/esm-4X3DKK5D.js +63 -0
- package/esm-SOWVJKOQ.mjs +63 -0
- package/extensions.d.mts +257 -0
- package/extensions.d.ts +257 -0
- package/extensions.js +74 -0
- package/extensions.mjs +74 -0
- package/global.types-Eto4uYwy.d.mts +102 -0
- package/global.types-hIvp-WdX.d.ts +102 -0
- package/glossaries.d.mts +1041 -0
- package/glossaries.d.ts +1041 -0
- package/glossaries.js +225 -0
- package/glossaries.mjs +225 -0
- package/groups.d.mts +379 -0
- package/groups.d.ts +379 -0
- package/groups.js +83 -0
- package/groups.mjs +83 -0
- package/identity-providers.d.mts +492 -0
- package/identity-providers.d.ts +492 -0
- package/identity-providers.js +80 -0
- package/identity-providers.mjs +80 -0
- package/index.d.mts +142 -0
- package/index.d.ts +142 -0
- package/index.js +678 -0
- package/index.mjs +678 -0
- package/invoke-fetch-MSSJAZ7K.mjs +14 -0
- package/invoke-fetch-PEI54KZO.js +14 -0
- package/items.d.mts +501 -0
- package/items.d.ts +501 -0
- package/items.js +84 -0
- package/items.mjs +84 -0
- package/licenses.d.mts +436 -0
- package/licenses.d.ts +436 -0
- package/licenses.js +87 -0
- package/licenses.mjs +87 -0
- package/package.json +264 -0
- package/qix-EU7PXRZ6.mjs +573 -0
- package/qix-RLTISYTB.js +573 -0
- package/qix.d.mts +11543 -0
- package/qix.d.ts +11543 -0
- package/qix.js +9 -0
- package/qix.mjs +9 -0
- package/quotas.d.mts +105 -0
- package/quotas.d.ts +105 -0
- package/quotas.js +31 -0
- package/quotas.mjs +31 -0
- package/reload-tasks.d.mts +222 -0
- package/reload-tasks.d.ts +222 -0
- package/reload-tasks.js +59 -0
- package/reload-tasks.mjs +59 -0
- package/reloads.d.mts +189 -0
- package/reloads.d.ts +189 -0
- package/reloads.js +44 -0
- package/reloads.mjs +44 -0
- package/roles.d.mts +150 -0
- package/roles.d.ts +150 -0
- package/roles.js +30 -0
- package/roles.mjs +30 -0
- package/spaces.d.mts +524 -0
- package/spaces.d.ts +524 -0
- package/spaces.js +118 -0
- package/spaces.mjs +118 -0
- package/temp-contents.d.mts +222 -0
- package/temp-contents.d.ts +222 -0
- package/temp-contents.js +60 -0
- package/temp-contents.mjs +60 -0
- package/tenants.d.mts +276 -0
- package/tenants.d.ts +276 -0
- package/tenants.js +68 -0
- package/tenants.mjs +68 -0
- package/themes.d.mts +235 -0
- package/themes.d.ts +235 -0
- package/themes.js +74 -0
- package/themes.mjs +74 -0
- package/transports.d.mts +298 -0
- package/transports.d.ts +298 -0
- package/transports.js +62 -0
- package/transports.mjs +62 -0
- package/users.d.mts +544 -0
- package/users.d.ts +544 -0
- package/users.js +99 -0
- package/users.mjs +99 -0
- package/web-integrations.d.mts +246 -0
- package/web-integrations.d.ts +246 -0
- package/web-integrations.js +59 -0
- package/web-integrations.mjs +59 -0
- package/web-notifications.d.mts +220 -0
- package/web-notifications.d.ts +220 -0
- package/web-notifications.js +66 -0
- package/web-notifications.mjs +66 -0
- package/webhooks.d.mts +422 -0
- package/webhooks.d.ts +422 -0
- package/webhooks.js +100 -0
- package/webhooks.mjs +100 -0
package/tenants.d.mts
ADDED
|
@@ -0,0 +1,276 @@
|
|
|
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 Tenant = {
|
|
30
|
+
autoAssignCreateSharedSpacesRoleToProfessionals?: boolean;
|
|
31
|
+
autoAssignDataServicesContributorRoleToProfessionals?: boolean;
|
|
32
|
+
autoAssignPrivateAnalyticsContentCreatorRoleToProfessionals?: boolean;
|
|
33
|
+
/** The timestamp for when the tenant record was created (1970-01-01T00:00:00.001Z for static tenants). */
|
|
34
|
+
readonly created?: string;
|
|
35
|
+
/** The user ID who created the tenant. */
|
|
36
|
+
createdByUser?: string;
|
|
37
|
+
/** The datacenter where the tenant is located. */
|
|
38
|
+
datacenter?: string;
|
|
39
|
+
enableAnalyticCreation?: boolean;
|
|
40
|
+
/** List of case insensitive hostnames that are mapped to the tenant. The first record maps to the display name and the subsequent entries are aliases. */
|
|
41
|
+
hostnames?: string[];
|
|
42
|
+
/** The timestamp for when the tenant record was last updated (1970-01-01T00:00:00.001Z for static tenants). */
|
|
43
|
+
readonly lastUpdated?: string;
|
|
44
|
+
readonly links?: {
|
|
45
|
+
/** A link to this tenant. */
|
|
46
|
+
self: {
|
|
47
|
+
/** URL that defines the resource. */
|
|
48
|
+
href: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
/** The display name of the tenant. */
|
|
52
|
+
name: string;
|
|
53
|
+
/** The status of the tenant. */
|
|
54
|
+
status?: "active" | "disabled" | "deleted";
|
|
55
|
+
};
|
|
56
|
+
type TenantCreationRequest = {
|
|
57
|
+
/** The datacenter where the tenant is located. */
|
|
58
|
+
datacenter?: string;
|
|
59
|
+
/** The signed license key of the license that will be associated with the created tenant. */
|
|
60
|
+
licenseKey?: string;
|
|
61
|
+
};
|
|
62
|
+
type TenantDeactivateRequest = {
|
|
63
|
+
/** Sets the number of days to purge the tenant after deactivation. Only available to OEMs. */
|
|
64
|
+
purgeAfterDays?: number;
|
|
65
|
+
};
|
|
66
|
+
type TenantDeactivateResponse = {
|
|
67
|
+
/** The estimated date time of when tenant will be purged. */
|
|
68
|
+
estimatedPurgeDate?: string;
|
|
69
|
+
/** The unique tenant identifier. */
|
|
70
|
+
readonly id?: string;
|
|
71
|
+
/** The status of the tenant. */
|
|
72
|
+
status?: "disabled";
|
|
73
|
+
};
|
|
74
|
+
type TenantPatchErrors = {
|
|
75
|
+
errors?: {
|
|
76
|
+
/** The error code. */
|
|
77
|
+
code: string;
|
|
78
|
+
/** Additional properties relating to the error. */
|
|
79
|
+
meta?: {
|
|
80
|
+
/** The error code. */
|
|
81
|
+
code?: string;
|
|
82
|
+
/** Summary of the problem. */
|
|
83
|
+
title?: string;
|
|
84
|
+
};
|
|
85
|
+
/** References to the source of the error. */
|
|
86
|
+
source?: {
|
|
87
|
+
/** The URI query parameter that caused the error. */
|
|
88
|
+
parameter?: string;
|
|
89
|
+
/** A JSON Pointer to the property that caused the error. */
|
|
90
|
+
pointer?: string;
|
|
91
|
+
};
|
|
92
|
+
/** Summary of the problem. */
|
|
93
|
+
title: string;
|
|
94
|
+
}[];
|
|
95
|
+
};
|
|
96
|
+
type TenantPatchSchema = {
|
|
97
|
+
/** The operation to be performed. */
|
|
98
|
+
op: "replace";
|
|
99
|
+
/** A JSON Pointer value that references a location within the target document where the operation is performed. */
|
|
100
|
+
path: "/name" | "/hostnames/1" | "/autoAssignCreateSharedSpacesRoleToProfessionals" | "/autoAssignPrivateAnalyticsContentCreatorRoleToProfessionals" | "/autoAssignDataServicesContributorRoleToProfessionals" | "/enableAnalyticCreation";
|
|
101
|
+
/** The value to be used for this operation. */
|
|
102
|
+
value: string | boolean;
|
|
103
|
+
}[];
|
|
104
|
+
/**
|
|
105
|
+
* Creates a Tenant
|
|
106
|
+
* @param body an object with the body content
|
|
107
|
+
* @throws CreateTenantHttpError
|
|
108
|
+
*/
|
|
109
|
+
declare const createTenant: (body: TenantCreationRequest, options?: ApiCallOptions) => Promise<CreateTenantHttpResponse>;
|
|
110
|
+
type CreateTenantHttpResponse = {
|
|
111
|
+
data: Tenant;
|
|
112
|
+
headers: Headers;
|
|
113
|
+
status: number;
|
|
114
|
+
};
|
|
115
|
+
type CreateTenantHttpError = {
|
|
116
|
+
data: Errors;
|
|
117
|
+
headers: Headers;
|
|
118
|
+
status: number;
|
|
119
|
+
};
|
|
120
|
+
/**
|
|
121
|
+
* Redirects to current tenant.
|
|
122
|
+
* @throws GetMyTenantHttpError
|
|
123
|
+
*/
|
|
124
|
+
declare const getMyTenant: (options?: ApiCallOptions) => Promise<GetMyTenantHttpResponse>;
|
|
125
|
+
type GetMyTenantHttpResponse = {
|
|
126
|
+
data: void;
|
|
127
|
+
headers: Headers;
|
|
128
|
+
status: number;
|
|
129
|
+
};
|
|
130
|
+
type GetMyTenantHttpError = {
|
|
131
|
+
data: void;
|
|
132
|
+
headers: Headers;
|
|
133
|
+
status: number;
|
|
134
|
+
};
|
|
135
|
+
/**
|
|
136
|
+
* Retrieve a single tenant by id.
|
|
137
|
+
* @param tenantId The id of the tenant to retrieve
|
|
138
|
+
* @throws GetTenantHttpError
|
|
139
|
+
*/
|
|
140
|
+
declare const getTenant: (tenantId: string, options?: ApiCallOptions) => Promise<GetTenantHttpResponse>;
|
|
141
|
+
type GetTenantHttpResponse = {
|
|
142
|
+
data: Tenant;
|
|
143
|
+
headers: Headers;
|
|
144
|
+
status: number;
|
|
145
|
+
};
|
|
146
|
+
type GetTenantHttpError = {
|
|
147
|
+
data: Errors;
|
|
148
|
+
headers: Headers;
|
|
149
|
+
status: number;
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
* Update a tenant by id.
|
|
153
|
+
* @param tenantId The id of the tenant to update
|
|
154
|
+
* @param body an object with the body content
|
|
155
|
+
* @throws PatchTenantHttpError
|
|
156
|
+
*/
|
|
157
|
+
declare const patchTenant: (tenantId: string, body: TenantPatchSchema, options?: ApiCallOptions) => Promise<PatchTenantHttpResponse>;
|
|
158
|
+
type PatchTenantHttpResponse = {
|
|
159
|
+
data: void;
|
|
160
|
+
headers: Headers;
|
|
161
|
+
status: number;
|
|
162
|
+
};
|
|
163
|
+
type PatchTenant400HttpError = {
|
|
164
|
+
data: TenantPatchErrors;
|
|
165
|
+
headers: Headers;
|
|
166
|
+
status: 400;
|
|
167
|
+
};
|
|
168
|
+
type PatchTenant403HttpError = {
|
|
169
|
+
data: Errors;
|
|
170
|
+
headers: Headers;
|
|
171
|
+
status: 403;
|
|
172
|
+
};
|
|
173
|
+
type PatchTenant404HttpError = {
|
|
174
|
+
data: Errors;
|
|
175
|
+
headers: Headers;
|
|
176
|
+
status: 404;
|
|
177
|
+
};
|
|
178
|
+
type PatchTenant429HttpError = {
|
|
179
|
+
data: Errors;
|
|
180
|
+
headers: Headers;
|
|
181
|
+
status: 429;
|
|
182
|
+
};
|
|
183
|
+
type PatchTenantdefaultHttpError = {
|
|
184
|
+
data: Errors;
|
|
185
|
+
headers: Headers;
|
|
186
|
+
status: "default";
|
|
187
|
+
};
|
|
188
|
+
type PatchTenantHttpError = PatchTenant400HttpError | PatchTenant403HttpError | PatchTenant404HttpError | PatchTenant429HttpError | PatchTenantdefaultHttpError;
|
|
189
|
+
/**
|
|
190
|
+
* Deactivates a tenant.
|
|
191
|
+
* @param tenantId The id of the tenant to deactivate
|
|
192
|
+
* @param body an object with the body content
|
|
193
|
+
* @throws DeactivateTenantHttpError
|
|
194
|
+
*/
|
|
195
|
+
declare const deactivateTenant: (tenantId: string, body: TenantDeactivateRequest, options?: ApiCallOptions) => Promise<DeactivateTenantHttpResponse>;
|
|
196
|
+
type DeactivateTenantHttpResponse = {
|
|
197
|
+
data: TenantDeactivateResponse;
|
|
198
|
+
headers: Headers;
|
|
199
|
+
status: number;
|
|
200
|
+
};
|
|
201
|
+
type DeactivateTenantHttpError = {
|
|
202
|
+
data: Errors;
|
|
203
|
+
headers: Headers;
|
|
204
|
+
status: number;
|
|
205
|
+
};
|
|
206
|
+
/**
|
|
207
|
+
* Reactivates a disabled tenant.
|
|
208
|
+
* @param tenantId The id of the tenant to reactivate
|
|
209
|
+
* @param body an object with the body content
|
|
210
|
+
* @throws ReactivateTenantHttpError
|
|
211
|
+
*/
|
|
212
|
+
declare const reactivateTenant: (tenantId: string, body: unknown, options?: ApiCallOptions) => Promise<ReactivateTenantHttpResponse>;
|
|
213
|
+
type ReactivateTenantHttpResponse = {
|
|
214
|
+
data: unknown;
|
|
215
|
+
headers: Headers;
|
|
216
|
+
status: number;
|
|
217
|
+
};
|
|
218
|
+
type ReactivateTenantHttpError = {
|
|
219
|
+
data: Errors;
|
|
220
|
+
headers: Headers;
|
|
221
|
+
status: number;
|
|
222
|
+
};
|
|
223
|
+
/**
|
|
224
|
+
* Clears the cache for tenants api requests.
|
|
225
|
+
*/
|
|
226
|
+
declare function clearCache(): void;
|
|
227
|
+
interface TenantsAPI {
|
|
228
|
+
/**
|
|
229
|
+
* Creates a Tenant
|
|
230
|
+
* @param body an object with the body content
|
|
231
|
+
* @throws CreateTenantHttpError
|
|
232
|
+
*/
|
|
233
|
+
createTenant: typeof createTenant;
|
|
234
|
+
/**
|
|
235
|
+
* Redirects to current tenant.
|
|
236
|
+
* @throws GetMyTenantHttpError
|
|
237
|
+
*/
|
|
238
|
+
getMyTenant: typeof getMyTenant;
|
|
239
|
+
/**
|
|
240
|
+
* Retrieve a single tenant by id.
|
|
241
|
+
* @param tenantId The id of the tenant to retrieve
|
|
242
|
+
* @throws GetTenantHttpError
|
|
243
|
+
*/
|
|
244
|
+
getTenant: typeof getTenant;
|
|
245
|
+
/**
|
|
246
|
+
* Update a tenant by id.
|
|
247
|
+
* @param tenantId The id of the tenant to update
|
|
248
|
+
* @param body an object with the body content
|
|
249
|
+
* @throws PatchTenantHttpError
|
|
250
|
+
*/
|
|
251
|
+
patchTenant: typeof patchTenant;
|
|
252
|
+
/**
|
|
253
|
+
* Deactivates a tenant.
|
|
254
|
+
* @param tenantId The id of the tenant to deactivate
|
|
255
|
+
* @param body an object with the body content
|
|
256
|
+
* @throws DeactivateTenantHttpError
|
|
257
|
+
*/
|
|
258
|
+
deactivateTenant: typeof deactivateTenant;
|
|
259
|
+
/**
|
|
260
|
+
* Reactivates a disabled tenant.
|
|
261
|
+
* @param tenantId The id of the tenant to reactivate
|
|
262
|
+
* @param body an object with the body content
|
|
263
|
+
* @throws ReactivateTenantHttpError
|
|
264
|
+
*/
|
|
265
|
+
reactivateTenant: typeof reactivateTenant;
|
|
266
|
+
/**
|
|
267
|
+
* Clears the cache for tenants api requests.
|
|
268
|
+
*/
|
|
269
|
+
clearCache: typeof clearCache;
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* Functions for the tenants api
|
|
273
|
+
*/
|
|
274
|
+
declare const tenantsExport: TenantsAPI;
|
|
275
|
+
|
|
276
|
+
export { type CreateTenantHttpError, type CreateTenantHttpResponse, type DeactivateTenantHttpError, type DeactivateTenantHttpResponse, type Error, type Errors, type GetMyTenantHttpError, type GetMyTenantHttpResponse, type GetTenantHttpError, type GetTenantHttpResponse, type PatchTenant400HttpError, type PatchTenant403HttpError, type PatchTenant404HttpError, type PatchTenant429HttpError, type PatchTenantHttpError, type PatchTenantHttpResponse, type PatchTenantdefaultHttpError, type ReactivateTenantHttpError, type ReactivateTenantHttpResponse, type Tenant, type TenantCreationRequest, type TenantDeactivateRequest, type TenantDeactivateResponse, type TenantPatchErrors, type TenantPatchSchema, type TenantsAPI, clearCache, createTenant, deactivateTenant, tenantsExport as default, getMyTenant, getTenant, patchTenant, reactivateTenant };
|
package/tenants.d.ts
ADDED
|
@@ -0,0 +1,276 @@
|
|
|
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 Tenant = {
|
|
30
|
+
autoAssignCreateSharedSpacesRoleToProfessionals?: boolean;
|
|
31
|
+
autoAssignDataServicesContributorRoleToProfessionals?: boolean;
|
|
32
|
+
autoAssignPrivateAnalyticsContentCreatorRoleToProfessionals?: boolean;
|
|
33
|
+
/** The timestamp for when the tenant record was created (1970-01-01T00:00:00.001Z for static tenants). */
|
|
34
|
+
readonly created?: string;
|
|
35
|
+
/** The user ID who created the tenant. */
|
|
36
|
+
createdByUser?: string;
|
|
37
|
+
/** The datacenter where the tenant is located. */
|
|
38
|
+
datacenter?: string;
|
|
39
|
+
enableAnalyticCreation?: boolean;
|
|
40
|
+
/** List of case insensitive hostnames that are mapped to the tenant. The first record maps to the display name and the subsequent entries are aliases. */
|
|
41
|
+
hostnames?: string[];
|
|
42
|
+
/** The timestamp for when the tenant record was last updated (1970-01-01T00:00:00.001Z for static tenants). */
|
|
43
|
+
readonly lastUpdated?: string;
|
|
44
|
+
readonly links?: {
|
|
45
|
+
/** A link to this tenant. */
|
|
46
|
+
self: {
|
|
47
|
+
/** URL that defines the resource. */
|
|
48
|
+
href: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
/** The display name of the tenant. */
|
|
52
|
+
name: string;
|
|
53
|
+
/** The status of the tenant. */
|
|
54
|
+
status?: "active" | "disabled" | "deleted";
|
|
55
|
+
};
|
|
56
|
+
type TenantCreationRequest = {
|
|
57
|
+
/** The datacenter where the tenant is located. */
|
|
58
|
+
datacenter?: string;
|
|
59
|
+
/** The signed license key of the license that will be associated with the created tenant. */
|
|
60
|
+
licenseKey?: string;
|
|
61
|
+
};
|
|
62
|
+
type TenantDeactivateRequest = {
|
|
63
|
+
/** Sets the number of days to purge the tenant after deactivation. Only available to OEMs. */
|
|
64
|
+
purgeAfterDays?: number;
|
|
65
|
+
};
|
|
66
|
+
type TenantDeactivateResponse = {
|
|
67
|
+
/** The estimated date time of when tenant will be purged. */
|
|
68
|
+
estimatedPurgeDate?: string;
|
|
69
|
+
/** The unique tenant identifier. */
|
|
70
|
+
readonly id?: string;
|
|
71
|
+
/** The status of the tenant. */
|
|
72
|
+
status?: "disabled";
|
|
73
|
+
};
|
|
74
|
+
type TenantPatchErrors = {
|
|
75
|
+
errors?: {
|
|
76
|
+
/** The error code. */
|
|
77
|
+
code: string;
|
|
78
|
+
/** Additional properties relating to the error. */
|
|
79
|
+
meta?: {
|
|
80
|
+
/** The error code. */
|
|
81
|
+
code?: string;
|
|
82
|
+
/** Summary of the problem. */
|
|
83
|
+
title?: string;
|
|
84
|
+
};
|
|
85
|
+
/** References to the source of the error. */
|
|
86
|
+
source?: {
|
|
87
|
+
/** The URI query parameter that caused the error. */
|
|
88
|
+
parameter?: string;
|
|
89
|
+
/** A JSON Pointer to the property that caused the error. */
|
|
90
|
+
pointer?: string;
|
|
91
|
+
};
|
|
92
|
+
/** Summary of the problem. */
|
|
93
|
+
title: string;
|
|
94
|
+
}[];
|
|
95
|
+
};
|
|
96
|
+
type TenantPatchSchema = {
|
|
97
|
+
/** The operation to be performed. */
|
|
98
|
+
op: "replace";
|
|
99
|
+
/** A JSON Pointer value that references a location within the target document where the operation is performed. */
|
|
100
|
+
path: "/name" | "/hostnames/1" | "/autoAssignCreateSharedSpacesRoleToProfessionals" | "/autoAssignPrivateAnalyticsContentCreatorRoleToProfessionals" | "/autoAssignDataServicesContributorRoleToProfessionals" | "/enableAnalyticCreation";
|
|
101
|
+
/** The value to be used for this operation. */
|
|
102
|
+
value: string | boolean;
|
|
103
|
+
}[];
|
|
104
|
+
/**
|
|
105
|
+
* Creates a Tenant
|
|
106
|
+
* @param body an object with the body content
|
|
107
|
+
* @throws CreateTenantHttpError
|
|
108
|
+
*/
|
|
109
|
+
declare const createTenant: (body: TenantCreationRequest, options?: ApiCallOptions) => Promise<CreateTenantHttpResponse>;
|
|
110
|
+
type CreateTenantHttpResponse = {
|
|
111
|
+
data: Tenant;
|
|
112
|
+
headers: Headers;
|
|
113
|
+
status: number;
|
|
114
|
+
};
|
|
115
|
+
type CreateTenantHttpError = {
|
|
116
|
+
data: Errors;
|
|
117
|
+
headers: Headers;
|
|
118
|
+
status: number;
|
|
119
|
+
};
|
|
120
|
+
/**
|
|
121
|
+
* Redirects to current tenant.
|
|
122
|
+
* @throws GetMyTenantHttpError
|
|
123
|
+
*/
|
|
124
|
+
declare const getMyTenant: (options?: ApiCallOptions) => Promise<GetMyTenantHttpResponse>;
|
|
125
|
+
type GetMyTenantHttpResponse = {
|
|
126
|
+
data: void;
|
|
127
|
+
headers: Headers;
|
|
128
|
+
status: number;
|
|
129
|
+
};
|
|
130
|
+
type GetMyTenantHttpError = {
|
|
131
|
+
data: void;
|
|
132
|
+
headers: Headers;
|
|
133
|
+
status: number;
|
|
134
|
+
};
|
|
135
|
+
/**
|
|
136
|
+
* Retrieve a single tenant by id.
|
|
137
|
+
* @param tenantId The id of the tenant to retrieve
|
|
138
|
+
* @throws GetTenantHttpError
|
|
139
|
+
*/
|
|
140
|
+
declare const getTenant: (tenantId: string, options?: ApiCallOptions) => Promise<GetTenantHttpResponse>;
|
|
141
|
+
type GetTenantHttpResponse = {
|
|
142
|
+
data: Tenant;
|
|
143
|
+
headers: Headers;
|
|
144
|
+
status: number;
|
|
145
|
+
};
|
|
146
|
+
type GetTenantHttpError = {
|
|
147
|
+
data: Errors;
|
|
148
|
+
headers: Headers;
|
|
149
|
+
status: number;
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
* Update a tenant by id.
|
|
153
|
+
* @param tenantId The id of the tenant to update
|
|
154
|
+
* @param body an object with the body content
|
|
155
|
+
* @throws PatchTenantHttpError
|
|
156
|
+
*/
|
|
157
|
+
declare const patchTenant: (tenantId: string, body: TenantPatchSchema, options?: ApiCallOptions) => Promise<PatchTenantHttpResponse>;
|
|
158
|
+
type PatchTenantHttpResponse = {
|
|
159
|
+
data: void;
|
|
160
|
+
headers: Headers;
|
|
161
|
+
status: number;
|
|
162
|
+
};
|
|
163
|
+
type PatchTenant400HttpError = {
|
|
164
|
+
data: TenantPatchErrors;
|
|
165
|
+
headers: Headers;
|
|
166
|
+
status: 400;
|
|
167
|
+
};
|
|
168
|
+
type PatchTenant403HttpError = {
|
|
169
|
+
data: Errors;
|
|
170
|
+
headers: Headers;
|
|
171
|
+
status: 403;
|
|
172
|
+
};
|
|
173
|
+
type PatchTenant404HttpError = {
|
|
174
|
+
data: Errors;
|
|
175
|
+
headers: Headers;
|
|
176
|
+
status: 404;
|
|
177
|
+
};
|
|
178
|
+
type PatchTenant429HttpError = {
|
|
179
|
+
data: Errors;
|
|
180
|
+
headers: Headers;
|
|
181
|
+
status: 429;
|
|
182
|
+
};
|
|
183
|
+
type PatchTenantdefaultHttpError = {
|
|
184
|
+
data: Errors;
|
|
185
|
+
headers: Headers;
|
|
186
|
+
status: "default";
|
|
187
|
+
};
|
|
188
|
+
type PatchTenantHttpError = PatchTenant400HttpError | PatchTenant403HttpError | PatchTenant404HttpError | PatchTenant429HttpError | PatchTenantdefaultHttpError;
|
|
189
|
+
/**
|
|
190
|
+
* Deactivates a tenant.
|
|
191
|
+
* @param tenantId The id of the tenant to deactivate
|
|
192
|
+
* @param body an object with the body content
|
|
193
|
+
* @throws DeactivateTenantHttpError
|
|
194
|
+
*/
|
|
195
|
+
declare const deactivateTenant: (tenantId: string, body: TenantDeactivateRequest, options?: ApiCallOptions) => Promise<DeactivateTenantHttpResponse>;
|
|
196
|
+
type DeactivateTenantHttpResponse = {
|
|
197
|
+
data: TenantDeactivateResponse;
|
|
198
|
+
headers: Headers;
|
|
199
|
+
status: number;
|
|
200
|
+
};
|
|
201
|
+
type DeactivateTenantHttpError = {
|
|
202
|
+
data: Errors;
|
|
203
|
+
headers: Headers;
|
|
204
|
+
status: number;
|
|
205
|
+
};
|
|
206
|
+
/**
|
|
207
|
+
* Reactivates a disabled tenant.
|
|
208
|
+
* @param tenantId The id of the tenant to reactivate
|
|
209
|
+
* @param body an object with the body content
|
|
210
|
+
* @throws ReactivateTenantHttpError
|
|
211
|
+
*/
|
|
212
|
+
declare const reactivateTenant: (tenantId: string, body: unknown, options?: ApiCallOptions) => Promise<ReactivateTenantHttpResponse>;
|
|
213
|
+
type ReactivateTenantHttpResponse = {
|
|
214
|
+
data: unknown;
|
|
215
|
+
headers: Headers;
|
|
216
|
+
status: number;
|
|
217
|
+
};
|
|
218
|
+
type ReactivateTenantHttpError = {
|
|
219
|
+
data: Errors;
|
|
220
|
+
headers: Headers;
|
|
221
|
+
status: number;
|
|
222
|
+
};
|
|
223
|
+
/**
|
|
224
|
+
* Clears the cache for tenants api requests.
|
|
225
|
+
*/
|
|
226
|
+
declare function clearCache(): void;
|
|
227
|
+
interface TenantsAPI {
|
|
228
|
+
/**
|
|
229
|
+
* Creates a Tenant
|
|
230
|
+
* @param body an object with the body content
|
|
231
|
+
* @throws CreateTenantHttpError
|
|
232
|
+
*/
|
|
233
|
+
createTenant: typeof createTenant;
|
|
234
|
+
/**
|
|
235
|
+
* Redirects to current tenant.
|
|
236
|
+
* @throws GetMyTenantHttpError
|
|
237
|
+
*/
|
|
238
|
+
getMyTenant: typeof getMyTenant;
|
|
239
|
+
/**
|
|
240
|
+
* Retrieve a single tenant by id.
|
|
241
|
+
* @param tenantId The id of the tenant to retrieve
|
|
242
|
+
* @throws GetTenantHttpError
|
|
243
|
+
*/
|
|
244
|
+
getTenant: typeof getTenant;
|
|
245
|
+
/**
|
|
246
|
+
* Update a tenant by id.
|
|
247
|
+
* @param tenantId The id of the tenant to update
|
|
248
|
+
* @param body an object with the body content
|
|
249
|
+
* @throws PatchTenantHttpError
|
|
250
|
+
*/
|
|
251
|
+
patchTenant: typeof patchTenant;
|
|
252
|
+
/**
|
|
253
|
+
* Deactivates a tenant.
|
|
254
|
+
* @param tenantId The id of the tenant to deactivate
|
|
255
|
+
* @param body an object with the body content
|
|
256
|
+
* @throws DeactivateTenantHttpError
|
|
257
|
+
*/
|
|
258
|
+
deactivateTenant: typeof deactivateTenant;
|
|
259
|
+
/**
|
|
260
|
+
* Reactivates a disabled tenant.
|
|
261
|
+
* @param tenantId The id of the tenant to reactivate
|
|
262
|
+
* @param body an object with the body content
|
|
263
|
+
* @throws ReactivateTenantHttpError
|
|
264
|
+
*/
|
|
265
|
+
reactivateTenant: typeof reactivateTenant;
|
|
266
|
+
/**
|
|
267
|
+
* Clears the cache for tenants api requests.
|
|
268
|
+
*/
|
|
269
|
+
clearCache: typeof clearCache;
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* Functions for the tenants api
|
|
273
|
+
*/
|
|
274
|
+
declare const tenantsExport: TenantsAPI;
|
|
275
|
+
|
|
276
|
+
export { type CreateTenantHttpError, type CreateTenantHttpResponse, type DeactivateTenantHttpError, type DeactivateTenantHttpResponse, type Error, type Errors, type GetMyTenantHttpError, type GetMyTenantHttpResponse, type GetTenantHttpError, type GetTenantHttpResponse, type PatchTenant400HttpError, type PatchTenant403HttpError, type PatchTenant404HttpError, type PatchTenant429HttpError, type PatchTenantHttpError, type PatchTenantHttpResponse, type PatchTenantdefaultHttpError, type ReactivateTenantHttpError, type ReactivateTenantHttpResponse, type Tenant, type TenantCreationRequest, type TenantDeactivateRequest, type TenantDeactivateResponse, type TenantPatchErrors, type TenantPatchSchema, type TenantsAPI, clearCache, createTenant, deactivateTenant, tenantsExport as default, getMyTenant, getTenant, patchTenant, reactivateTenant };
|
package/tenants.js
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
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/tenants.ts
|
|
8
|
+
var createTenant = async (body, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "tenants", {
|
|
9
|
+
method: "post",
|
|
10
|
+
pathTemplate: "/api/v1/tenants",
|
|
11
|
+
body,
|
|
12
|
+
options
|
|
13
|
+
});
|
|
14
|
+
var getMyTenant = async (options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "tenants", {
|
|
15
|
+
method: "get",
|
|
16
|
+
pathTemplate: "/api/v1/tenants/me",
|
|
17
|
+
options
|
|
18
|
+
});
|
|
19
|
+
var getTenant = async (tenantId, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "tenants", {
|
|
20
|
+
method: "get",
|
|
21
|
+
pathTemplate: "/api/v1/tenants/{tenantId}",
|
|
22
|
+
pathVariables: { tenantId },
|
|
23
|
+
options
|
|
24
|
+
});
|
|
25
|
+
var patchTenant = async (tenantId, body, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "tenants", {
|
|
26
|
+
method: "patch",
|
|
27
|
+
pathTemplate: "/api/v1/tenants/{tenantId}",
|
|
28
|
+
pathVariables: { tenantId },
|
|
29
|
+
body,
|
|
30
|
+
options
|
|
31
|
+
});
|
|
32
|
+
var deactivateTenant = async (tenantId, body, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "tenants", {
|
|
33
|
+
method: "post",
|
|
34
|
+
pathTemplate: "/api/v1/tenants/{tenantId}/actions/deactivate",
|
|
35
|
+
pathVariables: { tenantId },
|
|
36
|
+
body,
|
|
37
|
+
options
|
|
38
|
+
});
|
|
39
|
+
var reactivateTenant = async (tenantId, body, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "tenants", {
|
|
40
|
+
method: "post",
|
|
41
|
+
pathTemplate: "/api/v1/tenants/{tenantId}/actions/reactivate",
|
|
42
|
+
pathVariables: { tenantId },
|
|
43
|
+
body,
|
|
44
|
+
options
|
|
45
|
+
});
|
|
46
|
+
function clearCache() {
|
|
47
|
+
return _chunkOULT3V2Ujs.clearApiCache.call(void 0, "tenants");
|
|
48
|
+
}
|
|
49
|
+
var tenantsExport = {
|
|
50
|
+
createTenant,
|
|
51
|
+
getMyTenant,
|
|
52
|
+
getTenant,
|
|
53
|
+
patchTenant,
|
|
54
|
+
deactivateTenant,
|
|
55
|
+
reactivateTenant,
|
|
56
|
+
clearCache
|
|
57
|
+
};
|
|
58
|
+
var tenants_default = tenantsExport;
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
exports.clearCache = clearCache; exports.createTenant = createTenant; exports.deactivateTenant = deactivateTenant; exports.default = tenants_default; exports.getMyTenant = getMyTenant; exports.getTenant = getTenant; exports.patchTenant = patchTenant; exports.reactivateTenant = reactivateTenant;
|
package/tenants.mjs
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import {
|
|
2
|
+
clearApiCache,
|
|
3
|
+
invokeFetch
|
|
4
|
+
} from "./chunk-3YE7EI7I.mjs";
|
|
5
|
+
import "./chunk-WM7FQU2U.mjs";
|
|
6
|
+
|
|
7
|
+
// src/public/rest/tenants.ts
|
|
8
|
+
var createTenant = async (body, options) => invokeFetch("tenants", {
|
|
9
|
+
method: "post",
|
|
10
|
+
pathTemplate: "/api/v1/tenants",
|
|
11
|
+
body,
|
|
12
|
+
options
|
|
13
|
+
});
|
|
14
|
+
var getMyTenant = async (options) => invokeFetch("tenants", {
|
|
15
|
+
method: "get",
|
|
16
|
+
pathTemplate: "/api/v1/tenants/me",
|
|
17
|
+
options
|
|
18
|
+
});
|
|
19
|
+
var getTenant = async (tenantId, options) => invokeFetch("tenants", {
|
|
20
|
+
method: "get",
|
|
21
|
+
pathTemplate: "/api/v1/tenants/{tenantId}",
|
|
22
|
+
pathVariables: { tenantId },
|
|
23
|
+
options
|
|
24
|
+
});
|
|
25
|
+
var patchTenant = async (tenantId, body, options) => invokeFetch("tenants", {
|
|
26
|
+
method: "patch",
|
|
27
|
+
pathTemplate: "/api/v1/tenants/{tenantId}",
|
|
28
|
+
pathVariables: { tenantId },
|
|
29
|
+
body,
|
|
30
|
+
options
|
|
31
|
+
});
|
|
32
|
+
var deactivateTenant = async (tenantId, body, options) => invokeFetch("tenants", {
|
|
33
|
+
method: "post",
|
|
34
|
+
pathTemplate: "/api/v1/tenants/{tenantId}/actions/deactivate",
|
|
35
|
+
pathVariables: { tenantId },
|
|
36
|
+
body,
|
|
37
|
+
options
|
|
38
|
+
});
|
|
39
|
+
var reactivateTenant = async (tenantId, body, options) => invokeFetch("tenants", {
|
|
40
|
+
method: "post",
|
|
41
|
+
pathTemplate: "/api/v1/tenants/{tenantId}/actions/reactivate",
|
|
42
|
+
pathVariables: { tenantId },
|
|
43
|
+
body,
|
|
44
|
+
options
|
|
45
|
+
});
|
|
46
|
+
function clearCache() {
|
|
47
|
+
return clearApiCache("tenants");
|
|
48
|
+
}
|
|
49
|
+
var tenantsExport = {
|
|
50
|
+
createTenant,
|
|
51
|
+
getMyTenant,
|
|
52
|
+
getTenant,
|
|
53
|
+
patchTenant,
|
|
54
|
+
deactivateTenant,
|
|
55
|
+
reactivateTenant,
|
|
56
|
+
clearCache
|
|
57
|
+
};
|
|
58
|
+
var tenants_default = tenantsExport;
|
|
59
|
+
export {
|
|
60
|
+
clearCache,
|
|
61
|
+
createTenant,
|
|
62
|
+
deactivateTenant,
|
|
63
|
+
tenants_default as default,
|
|
64
|
+
getMyTenant,
|
|
65
|
+
getTenant,
|
|
66
|
+
patchTenant,
|
|
67
|
+
reactivateTenant
|
|
68
|
+
};
|