@qlik/api 0.0.15 → 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.
Files changed (135) hide show
  1. package/README.md +1 -1
  2. package/api-keys.js +25 -25
  3. package/apps.js +97 -97
  4. package/audits.js +23 -23
  5. package/auth.js +14 -14
  6. package/automations.js +47 -47
  7. package/brands.js +35 -35
  8. package/chunks/4HB3TAEO.js +4 -4
  9. package/chunks/{EHAANYDL.mjs → 4V5AAWUI.js} +3 -3
  10. package/chunks/{O4EAKEIN.mjs → D62LI5YU.js} +1 -1
  11. package/chunks/{6WX5AGKQ.mjs → L2BJNKLV.js} +2 -2
  12. package/chunks/{3YV6X7S6.mjs → LHCJKIEO.js} +1 -1
  13. package/chunks/OPRGGO4C.js +8 -8
  14. package/chunks/{HHOVS7QC.mjs → RNLZBOJU.js} +3 -3
  15. package/chunks/{BYD63JCG.mjs → SIU6HO6B.js} +5 -3
  16. package/chunks/{6AD3HYSF.mjs → TFSRDRRS.js} +1 -1
  17. package/chunks/{HOCTJESP.mjs → VK2CODYY.js} +2 -2
  18. package/chunks/{UKVTBYP6.mjs → XOVMZWDC.js} +2 -2
  19. package/collections.js +33 -33
  20. package/csp-origins.js +23 -23
  21. package/data-assets.js +21 -21
  22. package/data-connections.d.ts +97 -61
  23. package/data-connections.js +29 -29
  24. package/data-credentials.d.ts +3 -2
  25. package/data-credentials.js +19 -19
  26. package/data-files.js +35 -35
  27. package/docs/authentication.md +5 -5
  28. package/docs/examples/fetch-spaces.md +1 -15
  29. package/docs/examples/open-without-data.md +1 -1
  30. package/docs/examples/show-sheet-list.md +1 -1
  31. package/docs/features.md +1 -1
  32. package/extensions.js +25 -25
  33. package/glossaries.js +59 -59
  34. package/groups.d.ts +0 -3
  35. package/groups.js +27 -27
  36. package/identity-providers.js +27 -27
  37. package/index.js +53 -53
  38. package/items.js +27 -27
  39. package/licenses.js +29 -29
  40. package/package.json +36 -232
  41. package/qix.d.ts +1 -1
  42. package/qix.js +10 -10
  43. package/quotas.js +15 -15
  44. package/reload-tasks.js +21 -21
  45. package/reloads.js +19 -19
  46. package/roles.js +15 -15
  47. package/spaces.js +35 -35
  48. package/temp-contents.js +17 -17
  49. package/tenants.js +23 -23
  50. package/themes.js +25 -25
  51. package/transports.js +23 -23
  52. package/users.d.ts +1 -3
  53. package/users.js +31 -31
  54. package/web-integrations.js +21 -21
  55. package/web-notifications.js +23 -23
  56. package/webhooks.js +31 -31
  57. package/api-keys.d.mts +0 -336
  58. package/api-keys.mjs +0 -80
  59. package/apps.d.mts +0 -2431
  60. package/apps.mjs +0 -398
  61. package/audits.d.mts +0 -286
  62. package/audits.mjs +0 -64
  63. package/auth-types-nnUcWhuU.d.mts +0 -98
  64. package/auth.d.mts +0 -26
  65. package/auth.mjs +0 -14
  66. package/automations.d.mts +0 -682
  67. package/automations.mjs +0 -173
  68. package/brands.d.mts +0 -670
  69. package/brands.mjs +0 -123
  70. package/chunks/2YWCEGTS.js +0 -21
  71. package/chunks/34ZKUFEA.js +0 -41
  72. package/chunks/4WHZ4EIW.js +0 -57
  73. package/chunks/B4VPD3ZT.js +0 -574
  74. package/chunks/BM4OSDRZ.js +0 -17
  75. package/chunks/DCXUEDOW.mjs +0 -67
  76. package/chunks/MTAQE4WC.js +0 -10411
  77. package/chunks/PLOSYUG2.js +0 -25
  78. package/chunks/URIW2U5M.js +0 -17
  79. package/chunks/VSY5YIQY.mjs +0 -11
  80. package/chunks/WOYJLK4Y.js +0 -1623
  81. package/collections.d.mts +0 -581
  82. package/collections.mjs +0 -114
  83. package/csp-origins.d.mts +0 -273
  84. package/csp-origins.mjs +0 -69
  85. package/data-assets.d.mts +0 -205
  86. package/data-assets.mjs +0 -66
  87. package/data-connections.d.mts +0 -558
  88. package/data-connections.mjs +0 -103
  89. package/data-credentials.d.mts +0 -203
  90. package/data-credentials.mjs +0 -59
  91. package/data-files.d.mts +0 -562
  92. package/data-files.mjs +0 -123
  93. package/extensions.d.mts +0 -293
  94. package/extensions.mjs +0 -77
  95. package/global.types-5iFvFJvX.d.mts +0 -115
  96. package/glossaries.d.mts +0 -1173
  97. package/glossaries.mjs +0 -237
  98. package/groups.d.mts +0 -434
  99. package/groups.mjs +0 -88
  100. package/identity-providers.d.mts +0 -550
  101. package/identity-providers.mjs +0 -83
  102. package/index.d.mts +0 -142
  103. package/index.mjs +0 -716
  104. package/items.d.mts +0 -535
  105. package/items.mjs +0 -87
  106. package/licenses.d.mts +0 -459
  107. package/licenses.mjs +0 -92
  108. package/qix.d.mts +0 -11629
  109. package/qix.mjs +0 -10
  110. package/quotas.d.mts +0 -112
  111. package/quotas.mjs +0 -32
  112. package/reload-tasks.d.mts +0 -227
  113. package/reload-tasks.mjs +0 -62
  114. package/reloads.d.mts +0 -207
  115. package/reloads.mjs +0 -46
  116. package/roles.d.mts +0 -175
  117. package/roles.mjs +0 -31
  118. package/spaces.d.mts +0 -562
  119. package/spaces.mjs +0 -124
  120. package/temp-contents.d.mts +0 -167
  121. package/temp-contents.mjs +0 -41
  122. package/tenants.d.mts +0 -300
  123. package/tenants.mjs +0 -73
  124. package/themes.d.mts +0 -268
  125. package/themes.mjs +0 -77
  126. package/transports.d.mts +0 -319
  127. package/transports.mjs +0 -65
  128. package/users.d.mts +0 -631
  129. package/users.mjs +0 -104
  130. package/web-integrations.d.mts +0 -274
  131. package/web-integrations.mjs +0 -62
  132. package/web-notifications.d.mts +0 -250
  133. package/web-notifications.mjs +0 -69
  134. package/webhooks.d.mts +0 -445
  135. package/webhooks.mjs +0 -104
@@ -1,167 +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 API error code. */
9
- code: string;
10
- /** A human-readable problem description of the issue. */
11
- detail?: string;
12
- /** Additional properties and information regarding the issue. */
13
- meta?: {
14
- /** The error type. */
15
- errorType?: string;
16
- /** Locale */
17
- locale?: string;
18
- /** The source errors (stack trace). */
19
- sourceErrors?: string;
20
- };
21
- /** Title of the type of API Error. */
22
- title: string;
23
- };
24
- /**
25
- * An array of Error objects.
26
- */
27
- type Errors = {
28
- errors?: Error[];
29
- /** A way to trace the source of the error. */
30
- traceId?: string;
31
- };
32
- type DetailResponse = {
33
- /** Datetime-stamp when the resource was created (in UTC). */
34
- CreatedAt?: string;
35
- /** Identifier for the subject / resource creator. */
36
- CreatorID?: string;
37
- /** Datetime-stamp when the resource expired (in UTC). */
38
- Expires?: string;
39
- /** Identifier */
40
- ID?: string;
41
- /** File name of the file uploaded by the user. */
42
- Name?: string;
43
- /** Size of resource (in bytes). */
44
- Size?: string;
45
- /** Time-to-live in seconds. */
46
- TTLSeconds?: number;
47
- /** Datetime-stamp when the resource was updated (in UTC). */
48
- UpdatedAt?: string;
49
- };
50
- /**
51
- * This endpoint is used to upload a file as a temporary content resource. It returns a `201 Created` with a location header that contains the location of the created resource. If filename or TTL is not properly set, a `400 Bad request` is returned. For internal issues, a `500 Internal Server Error` is returned.
52
- *
53
- * @param query an object with query parameters
54
- * @param body an object with the body content
55
- * @throws UploadTempFileHttpError
56
- */
57
- declare const uploadTempFile: (query: {
58
- /** The name of the file to upload. */
59
- filename?: string;
60
- /** The TTL parameter is used to define the time-to-live for the content resource in seconds.
61
- * It defaults to one hour (3600) if no input is provided. Max TTL is 259200 (3 days).' */
62
- ttl?: number;
63
- }, body: BodyInit, options?: ApiCallOptions) => Promise<UploadTempFileHttpResponse>;
64
- type UploadTempFileHttpResponse = {
65
- data: void;
66
- headers: Headers;
67
- status: number;
68
- };
69
- type UploadTempFileHttpError = {
70
- data: Errors;
71
- headers: Headers;
72
- status: number;
73
- };
74
- /**
75
- * This endpoint is used to retrieve a temporary content file. It returns a valid (`200 OK`) in case the file exists and the user is authorized to view the contents. It returns a `410 Gone` if the file has expired and `404 Not Found` if the criteria is not met.
76
- *
77
- * @param id The temporary contents ID.
78
- * @param query an object with query parameters
79
- * @throws DownloadTempFileHttpError
80
- */
81
- declare const downloadTempFile: (id: string, query: {
82
- /** Set to "1" to download the file in inline mode. Useful for displaying a preview of the file in a browser. */
83
- inline?: string;
84
- }, options?: ApiCallOptions) => Promise<DownloadTempFileHttpResponse>;
85
- type DownloadTempFile200HttpResponse = {
86
- data: unknown;
87
- headers: Headers;
88
- status: 200;
89
- };
90
- type DownloadTempFile204HttpResponse = {
91
- data: void;
92
- headers: Headers;
93
- status: 204;
94
- };
95
- type DownloadTempFile206HttpResponse = {
96
- data: unknown;
97
- headers: Headers;
98
- status: 206;
99
- };
100
- type DownloadTempFileHttpResponse = DownloadTempFile200HttpResponse | DownloadTempFile204HttpResponse | DownloadTempFile206HttpResponse;
101
- type DownloadTempFileHttpError = {
102
- data: Errors;
103
- headers: Headers;
104
- status: number;
105
- };
106
- /**
107
- * This endpoint is used to retrieve a summary of the metadata associated with a temporary content resource. It returns a `200 OK` with a model if the temporary resource is valid. It returns a `410 Gone` if the file has expired and `404 Not Found` if the criteria is not met.
108
- *
109
- * @param id The temporary contents ID.
110
- * @throws GetTempFileDetailsHttpError
111
- */
112
- declare const getTempFileDetails: (id: string, options?: ApiCallOptions) => Promise<GetTempFileDetailsHttpResponse>;
113
- type GetTempFileDetails200HttpResponse = {
114
- data: DetailResponse;
115
- headers: Headers;
116
- status: 200;
117
- };
118
- type GetTempFileDetails204HttpResponse = {
119
- data: void;
120
- headers: Headers;
121
- status: 204;
122
- };
123
- type GetTempFileDetailsHttpResponse = GetTempFileDetails200HttpResponse | GetTempFileDetails204HttpResponse;
124
- type GetTempFileDetailsHttpError = {
125
- data: Errors;
126
- headers: Headers;
127
- status: number;
128
- };
129
- /**
130
- * Clears the cache for temp-contents api requests.
131
- */
132
- declare function clearCache(): void;
133
- interface TempContentsAPI {
134
- /**
135
- * This endpoint is used to upload a file as a temporary content resource. It returns a `201 Created` with a location header that contains the location of the created resource. If filename or TTL is not properly set, a `400 Bad request` is returned. For internal issues, a `500 Internal Server Error` is returned.
136
- *
137
- * @param query an object with query parameters
138
- * @param body an object with the body content
139
- * @throws UploadTempFileHttpError
140
- */
141
- uploadTempFile: typeof uploadTempFile;
142
- /**
143
- * This endpoint is used to retrieve a temporary content file. It returns a valid (`200 OK`) in case the file exists and the user is authorized to view the contents. It returns a `410 Gone` if the file has expired and `404 Not Found` if the criteria is not met.
144
- *
145
- * @param id The temporary contents ID.
146
- * @param query an object with query parameters
147
- * @throws DownloadTempFileHttpError
148
- */
149
- downloadTempFile: typeof downloadTempFile;
150
- /**
151
- * This endpoint is used to retrieve a summary of the metadata associated with a temporary content resource. It returns a `200 OK` with a model if the temporary resource is valid. It returns a `410 Gone` if the file has expired and `404 Not Found` if the criteria is not met.
152
- *
153
- * @param id The temporary contents ID.
154
- * @throws GetTempFileDetailsHttpError
155
- */
156
- getTempFileDetails: typeof getTempFileDetails;
157
- /**
158
- * Clears the cache for temp-contents api requests.
159
- */
160
- clearCache: typeof clearCache;
161
- }
162
- /**
163
- * Functions for the temp-contents api
164
- */
165
- declare const tempContentsExport: TempContentsAPI;
166
-
167
- export { type DetailResponse, type DownloadTempFile200HttpResponse, type DownloadTempFile204HttpResponse, type DownloadTempFile206HttpResponse, type DownloadTempFileHttpError, type DownloadTempFileHttpResponse, type Error, type Errors, type GetTempFileDetails200HttpResponse, type GetTempFileDetails204HttpResponse, type GetTempFileDetailsHttpError, type GetTempFileDetailsHttpResponse, type TempContentsAPI, type UploadTempFileHttpError, type UploadTempFileHttpResponse, clearCache, tempContentsExport as default, downloadTempFile, getTempFileDetails, uploadTempFile };
package/temp-contents.mjs DELETED
@@ -1,41 +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/temp-contents.ts
9
- var uploadTempFile = async (query, body, options) => invokeFetch("temp-contents", {
10
- method: "post",
11
- pathTemplate: "/api/v1/temp-contents",
12
- query,
13
- body,
14
- contentType: "application/octet-stream",
15
- options
16
- });
17
- var downloadTempFile = async (id, query, options) => invokeFetch("temp-contents", {
18
- method: "get",
19
- pathTemplate: "/api/v1/temp-contents/{id}",
20
- pathVariables: { id },
21
- query,
22
- options
23
- });
24
- var getTempFileDetails = async (id, options) => invokeFetch("temp-contents", {
25
- method: "get",
26
- pathTemplate: "/api/v1/temp-contents/{id}/details",
27
- pathVariables: { id },
28
- options
29
- });
30
- function clearCache() {
31
- return clearApiCache("temp-contents");
32
- }
33
- var tempContentsExport = { uploadTempFile, downloadTempFile, getTempFileDetails, clearCache };
34
- var temp_contents_default = tempContentsExport;
35
- export {
36
- clearCache,
37
- temp_contents_default as default,
38
- downloadTempFile,
39
- getTempFileDetails,
40
- uploadTempFile
41
- };
package/tenants.d.mts DELETED
@@ -1,300 +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
- type Tenant = {
36
- autoAssignCreateSharedSpacesRoleToProfessionals?: boolean;
37
- autoAssignDataServicesContributorRoleToProfessionals?: boolean;
38
- autoAssignPrivateAnalyticsContentCreatorRoleToProfessionals?: boolean;
39
- /** The timestamp for when the tenant record was created (1970-01-01T00:00:00.001Z for static tenants). */
40
- readonly created?: string;
41
- /** The user ID who created the tenant. */
42
- createdByUser?: string;
43
- /** The datacenter where the tenant is located. */
44
- datacenter?: string;
45
- enableAnalyticCreation?: boolean;
46
- /** 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. */
47
- hostnames?: string[];
48
- /** The timestamp for when the tenant record was last updated (1970-01-01T00:00:00.001Z for static tenants). */
49
- readonly lastUpdated?: string;
50
- readonly links?: {
51
- /** A link to this tenant. */
52
- self: {
53
- /** URL that defines the resource. */
54
- href: string;
55
- };
56
- };
57
- /** The display name of the tenant. */
58
- name: string;
59
- /** The status of the tenant. */
60
- status?: "active" | "disabled" | "deleted";
61
- };
62
- type TenantCreationRequest = {
63
- /** The datacenter where the tenant is located. */
64
- datacenter?: string;
65
- /** The signed license key of the license that will be associated with the created tenant. */
66
- licenseKey?: string;
67
- };
68
- /**
69
- * A request to deactivate a tenant.
70
- */
71
- type TenantDeactivateRequest = {
72
- /** Sets the number of days to purge the tenant after deactivation. Only available to OEMs. */
73
- purgeAfterDays?: number;
74
- };
75
- /**
76
- * The result of tenant deactivation.
77
- */
78
- type TenantDeactivateResponse = {
79
- /** The estimated date time of when tenant will be purged. */
80
- estimatedPurgeDate?: string;
81
- /** The unique tenant identifier. */
82
- readonly id?: string;
83
- /** The status of the tenant. */
84
- status?: "disabled";
85
- };
86
- type TenantPatchErrors = {
87
- errors?: {
88
- /** The error code. */
89
- code: string;
90
- /** Additional properties relating to the error. */
91
- meta?: {
92
- /** The error code. */
93
- code?: string;
94
- /** Summary of the problem. */
95
- title?: string;
96
- };
97
- /** References to the source of the error. */
98
- source?: {
99
- /** The URI query parameter that caused the error. */
100
- parameter?: string;
101
- /** A JSON Pointer to the property that caused the error. */
102
- pointer?: string;
103
- };
104
- /** Summary of the problem. */
105
- title: string;
106
- }[];
107
- };
108
- type TenantPatchSchema = {
109
- /** The operation to be performed. */
110
- op: "replace";
111
- /** A JSON Pointer value that references a location within the target document where the operation is performed. */
112
- path: "/name" | "/hostnames/1" | "/autoAssignCreateSharedSpacesRoleToProfessionals" | "/autoAssignPrivateAnalyticsContentCreatorRoleToProfessionals" | "/autoAssignDataServicesContributorRoleToProfessionals" | "/enableAnalyticCreation";
113
- /** The value to be used for this operation. */
114
- value: string | boolean;
115
- }[];
116
- /**
117
- * Creates a Tenant
118
- *
119
- * @param body an object with the body content
120
- * @throws CreateTenantHttpError
121
- */
122
- declare const createTenant: (body: TenantCreationRequest, options?: ApiCallOptions) => Promise<CreateTenantHttpResponse>;
123
- type CreateTenantHttpResponse = {
124
- data: Tenant;
125
- headers: Headers;
126
- status: number;
127
- };
128
- type CreateTenantHttpError = {
129
- data: Errors;
130
- headers: Headers;
131
- status: number;
132
- };
133
- /**
134
- * Redirects to current tenant.
135
- *
136
- * @throws GetMyTenantHttpError
137
- */
138
- declare const getMyTenant: (options?: ApiCallOptions) => Promise<GetMyTenantHttpResponse>;
139
- type GetMyTenantHttpResponse = {
140
- data: Tenant;
141
- headers: Headers;
142
- status: number;
143
- };
144
- type GetMyTenantHttpError = {
145
- data: unknown;
146
- headers: Headers;
147
- status: number;
148
- };
149
- /**
150
- * Retrieve a single tenant by id.
151
- *
152
- * @param tenantId The id of the tenant to retrieve
153
- * @throws GetTenantHttpError
154
- */
155
- declare const getTenant: (tenantId: string, options?: ApiCallOptions) => Promise<GetTenantHttpResponse>;
156
- type GetTenantHttpResponse = {
157
- data: Tenant;
158
- headers: Headers;
159
- status: number;
160
- };
161
- type GetTenantHttpError = {
162
- data: Errors;
163
- headers: Headers;
164
- status: number;
165
- };
166
- /**
167
- * Update a tenant by id.
168
- *
169
- * @param tenantId The id of the tenant to update
170
- * @param body an object with the body content
171
- * @throws PatchTenantHttpError
172
- */
173
- declare const patchTenant: (tenantId: string, body: TenantPatchSchema, options?: ApiCallOptions) => Promise<PatchTenantHttpResponse>;
174
- type PatchTenantHttpResponse = {
175
- data: void;
176
- headers: Headers;
177
- status: number;
178
- };
179
- type PatchTenant400HttpError = {
180
- data: TenantPatchErrors;
181
- headers: Headers;
182
- status: 400;
183
- };
184
- type PatchTenant403HttpError = {
185
- data: Errors;
186
- headers: Headers;
187
- status: 403;
188
- };
189
- type PatchTenant404HttpError = {
190
- data: Errors;
191
- headers: Headers;
192
- status: 404;
193
- };
194
- type PatchTenant429HttpError = {
195
- data: Errors;
196
- headers: Headers;
197
- status: 429;
198
- };
199
- type PatchTenantDefaultHttpError = {
200
- data: Errors;
201
- headers: Headers;
202
- status: "default";
203
- };
204
- type PatchTenantHttpError = PatchTenant400HttpError | PatchTenant403HttpError | PatchTenant404HttpError | PatchTenant429HttpError | PatchTenantDefaultHttpError;
205
- /**
206
- * Deactivates a tenant.
207
- *
208
- * @param tenantId The id of the tenant to deactivate
209
- * @param body an object with the body content
210
- * @throws DeactivateTenantHttpError
211
- */
212
- declare const deactivateTenant: (tenantId: string, body: TenantDeactivateRequest, options?: ApiCallOptions) => Promise<DeactivateTenantHttpResponse>;
213
- type DeactivateTenantHttpResponse = {
214
- data: TenantDeactivateResponse;
215
- headers: Headers;
216
- status: number;
217
- };
218
- type DeactivateTenantHttpError = {
219
- data: Errors;
220
- headers: Headers;
221
- status: number;
222
- };
223
- /**
224
- * Reactivates a disabled tenant.
225
- *
226
- * @param tenantId The id of the tenant to reactivate
227
- * @param body an object with the body content
228
- * @throws ReactivateTenantHttpError
229
- */
230
- declare const reactivateTenant: (tenantId: string, body: unknown, options?: ApiCallOptions) => Promise<ReactivateTenantHttpResponse>;
231
- type ReactivateTenantHttpResponse = {
232
- data: unknown;
233
- headers: Headers;
234
- status: number;
235
- };
236
- type ReactivateTenantHttpError = {
237
- data: Errors;
238
- headers: Headers;
239
- status: number;
240
- };
241
- /**
242
- * Clears the cache for tenants api requests.
243
- */
244
- declare function clearCache(): void;
245
- interface TenantsAPI {
246
- /**
247
- * Creates a Tenant
248
- *
249
- * @param body an object with the body content
250
- * @throws CreateTenantHttpError
251
- */
252
- createTenant: typeof createTenant;
253
- /**
254
- * Redirects to current tenant.
255
- *
256
- * @throws GetMyTenantHttpError
257
- */
258
- getMyTenant: typeof getMyTenant;
259
- /**
260
- * Retrieve a single tenant by id.
261
- *
262
- * @param tenantId The id of the tenant to retrieve
263
- * @throws GetTenantHttpError
264
- */
265
- getTenant: typeof getTenant;
266
- /**
267
- * Update a tenant by id.
268
- *
269
- * @param tenantId The id of the tenant to update
270
- * @param body an object with the body content
271
- * @throws PatchTenantHttpError
272
- */
273
- patchTenant: typeof patchTenant;
274
- /**
275
- * Deactivates a tenant.
276
- *
277
- * @param tenantId The id of the tenant to deactivate
278
- * @param body an object with the body content
279
- * @throws DeactivateTenantHttpError
280
- */
281
- deactivateTenant: typeof deactivateTenant;
282
- /**
283
- * Reactivates a disabled tenant.
284
- *
285
- * @param tenantId The id of the tenant to reactivate
286
- * @param body an object with the body content
287
- * @throws ReactivateTenantHttpError
288
- */
289
- reactivateTenant: typeof reactivateTenant;
290
- /**
291
- * Clears the cache for tenants api requests.
292
- */
293
- clearCache: typeof clearCache;
294
- }
295
- /**
296
- * Functions for the tenants api
297
- */
298
- declare const tenantsExport: TenantsAPI;
299
-
300
- 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 PatchTenantDefaultHttpError, type PatchTenantHttpError, type PatchTenantHttpResponse, 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.mjs DELETED
@@ -1,73 +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/tenants.ts
9
- var createTenant = async (body, options) => invokeFetch("tenants", {
10
- method: "post",
11
- pathTemplate: "/api/v1/tenants",
12
- body,
13
- contentType: "application/json",
14
- options
15
- });
16
- var getMyTenant = async (options) => invokeFetch("tenants", {
17
- method: "get",
18
- pathTemplate: "/api/v1/tenants/me",
19
- options
20
- });
21
- var getTenant = async (tenantId, options) => invokeFetch("tenants", {
22
- method: "get",
23
- pathTemplate: "/api/v1/tenants/{tenantId}",
24
- pathVariables: { tenantId },
25
- options
26
- });
27
- var patchTenant = async (tenantId, body, options) => invokeFetch("tenants", {
28
- method: "patch",
29
- pathTemplate: "/api/v1/tenants/{tenantId}",
30
- pathVariables: { tenantId },
31
- body,
32
- contentType: "application/json",
33
- options
34
- });
35
- var deactivateTenant = async (tenantId, body, options) => invokeFetch("tenants", {
36
- method: "post",
37
- pathTemplate: "/api/v1/tenants/{tenantId}/actions/deactivate",
38
- pathVariables: { tenantId },
39
- body,
40
- contentType: "application/json",
41
- options
42
- });
43
- var reactivateTenant = async (tenantId, body, options) => invokeFetch("tenants", {
44
- method: "post",
45
- pathTemplate: "/api/v1/tenants/{tenantId}/actions/reactivate",
46
- pathVariables: { tenantId },
47
- body,
48
- contentType: "application/json",
49
- options
50
- });
51
- function clearCache() {
52
- return clearApiCache("tenants");
53
- }
54
- var tenantsExport = {
55
- createTenant,
56
- getMyTenant,
57
- getTenant,
58
- patchTenant,
59
- deactivateTenant,
60
- reactivateTenant,
61
- clearCache
62
- };
63
- var tenants_default = tenantsExport;
64
- export {
65
- clearCache,
66
- createTenant,
67
- deactivateTenant,
68
- tenants_default as default,
69
- getMyTenant,
70
- getTenant,
71
- patchTenant,
72
- reactivateTenant
73
- };