@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
package/brands.d.mts DELETED
@@ -1,670 +0,0 @@
1
- import { A as ApiCallOptions, D as DownloadableBlob } from './global.types-5iFvFJvX.mjs';
2
- import './auth-types-nnUcWhuU.mjs';
3
-
4
- /**
5
- * A brand is a collection of assets for applying custom branding. Only a single brand can be active in a tenant.
6
- */
7
- type Brand = {
8
- readonly active?: boolean;
9
- /** The UTC timestamp when the brand was created. */
10
- readonly createdAt?: string;
11
- /** ID of a user that created the brand. */
12
- readonly createdBy?: string;
13
- description: string;
14
- /** Collection of resources that make up the brand. */
15
- files: BrandFile[];
16
- readonly id: string;
17
- name: string;
18
- /** The UTC timestamp when the brand was last updated. */
19
- readonly updatedAt?: string;
20
- /** ID of a user that last updated the brand. */
21
- readonly updatedBy?: string;
22
- };
23
- /**
24
- * Represents one of the assets used as part of the brand. These include logos, favicons, and some styles.
25
- */
26
- type BrandFile = {
27
- contentType?: string;
28
- eTag?: string;
29
- id?: "logo" | "favIcon" | "styles";
30
- path?: string;
31
- };
32
- /**
33
- * A JSON Patch document as defined in https://datatracker.ietf.org/doc/html/rfc6902.
34
- */
35
- type BrandPatch = {
36
- /** The operation to be performed. */
37
- op: "add" | "remove" | "replace";
38
- /** The path for the given resource field to patch. */
39
- path: "/name" | "/description";
40
- /** The value to be used for this operation. */
41
- value?: string;
42
- };
43
- /**
44
- * A collection of brands.
45
- */
46
- type BrandsList = {
47
- data?: Brand[];
48
- links?: {
49
- next?: Link;
50
- prev?: Link;
51
- self?: Link;
52
- };
53
- };
54
- type ErrorResponse400 = {
55
- errors?: {
56
- code?: string;
57
- detail?: string;
58
- title?: string;
59
- }[];
60
- traceId?: string;
61
- };
62
- type ErrorResponse401 = {
63
- errors?: {
64
- code?: string;
65
- detail?: string;
66
- title?: string;
67
- }[];
68
- traceId?: string;
69
- };
70
- type ErrorResponse403 = {
71
- errors?: {
72
- code?: string;
73
- detail?: string;
74
- title?: string;
75
- }[];
76
- traceId?: string;
77
- };
78
- type ErrorResponse404 = {
79
- errors?: {
80
- code?: string;
81
- detail?: string;
82
- title?: string;
83
- }[];
84
- traceId?: string;
85
- };
86
- type ErrorResponse500 = {
87
- errors?: {
88
- code?: string;
89
- detail?: string;
90
- title?: string;
91
- }[];
92
- traceId?: string;
93
- };
94
- type Link = {
95
- /** URL of a resource request. */
96
- href: string;
97
- };
98
- /**
99
- * Empty object inferring lack of active branding.
100
- */
101
- type NoActiveBrand = unknown;
102
- /**
103
- * Lists all brand entries for a tenant
104
- *
105
- * @param query an object with query parameters
106
- * @throws GetBrandsHttpError
107
- */
108
- declare const getBrands: (query: {
109
- /** Cursor to previous. */
110
- endingBefore?: string;
111
- /** Maximum number of brands to retrieve. */
112
- limit?: number;
113
- /** Field to sort by, prefixed with -/+ to indicate the order. */
114
- sort?: "id" | "+id" | "-id" | "createdAt" | "+createdAt" | "-createdAt" | "updatedAt" | "+updatedAt" | "-updatedAt";
115
- /** Cursor to the next page. */
116
- startingAfter?: string;
117
- }, options?: ApiCallOptions) => Promise<GetBrandsHttpResponse>;
118
- type GetBrandsHttpResponse = {
119
- data: BrandsList;
120
- headers: Headers;
121
- status: number;
122
- prev?: (options?: ApiCallOptions) => Promise<GetBrandsHttpResponse>;
123
- next?: (options?: ApiCallOptions) => Promise<GetBrandsHttpResponse>;
124
- };
125
- type GetBrands400HttpError = {
126
- data: ErrorResponse400;
127
- headers: Headers;
128
- status: 400;
129
- };
130
- type GetBrands401HttpError = {
131
- data: ErrorResponse401;
132
- headers: Headers;
133
- status: 401;
134
- };
135
- type GetBrands403HttpError = {
136
- data: ErrorResponse403;
137
- headers: Headers;
138
- status: 403;
139
- };
140
- type GetBrands500HttpError = {
141
- data: ErrorResponse500;
142
- headers: Headers;
143
- status: 500;
144
- };
145
- type GetBrandsHttpError = GetBrands400HttpError | GetBrands401HttpError | GetBrands403HttpError | GetBrands500HttpError;
146
- /**
147
- * Creates a new brand
148
- *
149
- * @param body an object with the body content
150
- * @throws CreateBrandHttpError
151
- */
152
- declare const createBrand: (body: {
153
- /** Description of the brand. */
154
- description?: string;
155
- /** The path and name of a properly formatted ICO file. Maximum size is 100 KB. */
156
- favIcon?: BodyInit;
157
- /** The path and name of a JPG or PNG file that will be adjusted to fit in a 'box' measuring 109px in width and 62 px in height while maintaining aspect ratio. Maximum size of 300 KB, but smaller is recommended. */
158
- logo?: BodyInit;
159
- /** Name of the brand. */
160
- name: string;
161
- /** The path and name of a JSON file to define brand style settings. Maximum size is 100 KB. This property is not currently operational. */
162
- styles?: BodyInit;
163
- }, options?: ApiCallOptions) => Promise<CreateBrandHttpResponse>;
164
- type CreateBrandHttpResponse = {
165
- data: Brand;
166
- headers: Headers;
167
- status: number;
168
- };
169
- type CreateBrand400HttpError = {
170
- data: ErrorResponse400;
171
- headers: Headers;
172
- status: 400;
173
- };
174
- type CreateBrand401HttpError = {
175
- data: ErrorResponse401;
176
- headers: Headers;
177
- status: 401;
178
- };
179
- type CreateBrand403HttpError = {
180
- data: ErrorResponse403;
181
- headers: Headers;
182
- status: 403;
183
- };
184
- type CreateBrand500HttpError = {
185
- data: ErrorResponse500;
186
- headers: Headers;
187
- status: 500;
188
- };
189
- type CreateBrandHttpError = CreateBrand400HttpError | CreateBrand401HttpError | CreateBrand403HttpError | CreateBrand500HttpError;
190
- /**
191
- * Retrieves the current active brand
192
- *
193
- * @throws GetActiveBrandHttpError
194
- */
195
- declare const getActiveBrand: (options?: ApiCallOptions) => Promise<GetActiveBrandHttpResponse>;
196
- type GetActiveBrandHttpResponse = {
197
- data: Brand | NoActiveBrand;
198
- headers: Headers;
199
- status: number;
200
- };
201
- type GetActiveBrandHttpError = {
202
- data: unknown;
203
- headers: Headers;
204
- status: number;
205
- };
206
- /**
207
- * Deletes a specific brand
208
- *
209
- * @param brandId The brand's unique identifier.
210
- * @throws DeleteBrandHttpError
211
- */
212
- declare const deleteBrand: (brandId: string, options?: ApiCallOptions) => Promise<DeleteBrandHttpResponse>;
213
- type DeleteBrandHttpResponse = {
214
- data: void;
215
- headers: Headers;
216
- status: number;
217
- };
218
- type DeleteBrand400HttpError = {
219
- data: ErrorResponse400;
220
- headers: Headers;
221
- status: 400;
222
- };
223
- type DeleteBrand401HttpError = {
224
- data: ErrorResponse401;
225
- headers: Headers;
226
- status: 401;
227
- };
228
- type DeleteBrand403HttpError = {
229
- data: ErrorResponse403;
230
- headers: Headers;
231
- status: 403;
232
- };
233
- type DeleteBrand404HttpError = {
234
- data: ErrorResponse404;
235
- headers: Headers;
236
- status: 404;
237
- };
238
- type DeleteBrand500HttpError = {
239
- data: ErrorResponse500;
240
- headers: Headers;
241
- status: 500;
242
- };
243
- type DeleteBrandHttpError = DeleteBrand400HttpError | DeleteBrand401HttpError | DeleteBrand403HttpError | DeleteBrand404HttpError | DeleteBrand500HttpError;
244
- /**
245
- * Retrieves a specific brand
246
- *
247
- * @param brandId The brand's unique identifier.
248
- * @throws GetBrandHttpError
249
- */
250
- declare const getBrand: (brandId: string, options?: ApiCallOptions) => Promise<GetBrandHttpResponse>;
251
- type GetBrandHttpResponse = {
252
- data: Brand;
253
- headers: Headers;
254
- status: number;
255
- };
256
- type GetBrand400HttpError = {
257
- data: ErrorResponse400;
258
- headers: Headers;
259
- status: 400;
260
- };
261
- type GetBrand401HttpError = {
262
- data: ErrorResponse401;
263
- headers: Headers;
264
- status: 401;
265
- };
266
- type GetBrand403HttpError = {
267
- data: ErrorResponse403;
268
- headers: Headers;
269
- status: 403;
270
- };
271
- type GetBrand404HttpError = {
272
- data: ErrorResponse404;
273
- headers: Headers;
274
- status: 404;
275
- };
276
- type GetBrand500HttpError = {
277
- data: ErrorResponse500;
278
- headers: Headers;
279
- status: 500;
280
- };
281
- type GetBrandHttpError = GetBrand400HttpError | GetBrand401HttpError | GetBrand403HttpError | GetBrand404HttpError | GetBrand500HttpError;
282
- /**
283
- * Patches a brand
284
- *
285
- * @param brandId The brand's unique identifier.
286
- * @param body an object with the body content
287
- * @throws PatchBrandHttpError
288
- */
289
- declare const patchBrand: (brandId: string, body: BrandPatch[], options?: ApiCallOptions) => Promise<PatchBrandHttpResponse>;
290
- type PatchBrandHttpResponse = {
291
- data: void;
292
- headers: Headers;
293
- status: number;
294
- };
295
- type PatchBrand400HttpError = {
296
- data: ErrorResponse400;
297
- headers: Headers;
298
- status: 400;
299
- };
300
- type PatchBrand401HttpError = {
301
- data: ErrorResponse401;
302
- headers: Headers;
303
- status: 401;
304
- };
305
- type PatchBrand403HttpError = {
306
- data: ErrorResponse403;
307
- headers: Headers;
308
- status: 403;
309
- };
310
- type PatchBrand404HttpError = {
311
- data: ErrorResponse404;
312
- headers: Headers;
313
- status: 404;
314
- };
315
- type PatchBrand500HttpError = {
316
- data: ErrorResponse500;
317
- headers: Headers;
318
- status: 500;
319
- };
320
- type PatchBrandHttpError = PatchBrand400HttpError | PatchBrand401HttpError | PatchBrand403HttpError | PatchBrand404HttpError | PatchBrand500HttpError;
321
- /**
322
- * Sets the brand active and de-activates any other active brand. If the brand is already active, no action is taken.
323
- *
324
- * @param brandId The brand's unique identifier.
325
- * @param body an object with the body content
326
- * @throws ActivateBrandHttpError
327
- */
328
- declare const activateBrand: (brandId: string, body: unknown, options?: ApiCallOptions) => Promise<ActivateBrandHttpResponse>;
329
- type ActivateBrandHttpResponse = {
330
- data: Brand;
331
- headers: Headers;
332
- status: number;
333
- };
334
- type ActivateBrand400HttpError = {
335
- data: ErrorResponse400;
336
- headers: Headers;
337
- status: 400;
338
- };
339
- type ActivateBrand401HttpError = {
340
- data: ErrorResponse401;
341
- headers: Headers;
342
- status: 401;
343
- };
344
- type ActivateBrand403HttpError = {
345
- data: ErrorResponse403;
346
- headers: Headers;
347
- status: 403;
348
- };
349
- type ActivateBrand404HttpError = {
350
- data: ErrorResponse404;
351
- headers: Headers;
352
- status: 404;
353
- };
354
- type ActivateBrand500HttpError = {
355
- data: ErrorResponse500;
356
- headers: Headers;
357
- status: 500;
358
- };
359
- type ActivateBrandHttpError = ActivateBrand400HttpError | ActivateBrand401HttpError | ActivateBrand403HttpError | ActivateBrand404HttpError | ActivateBrand500HttpError;
360
- /**
361
- * Sets the brand so it is no longer active. If the brand is already inactive, no action is taken.
362
- *
363
- * @param brandId The brand's unique identifier.
364
- * @param body an object with the body content
365
- * @throws DeactivateBrandHttpError
366
- */
367
- declare const deactivateBrand: (brandId: string, body: unknown, options?: ApiCallOptions) => Promise<DeactivateBrandHttpResponse>;
368
- type DeactivateBrandHttpResponse = {
369
- data: Brand;
370
- headers: Headers;
371
- status: number;
372
- };
373
- type DeactivateBrand400HttpError = {
374
- data: ErrorResponse400;
375
- headers: Headers;
376
- status: 400;
377
- };
378
- type DeactivateBrand401HttpError = {
379
- data: ErrorResponse401;
380
- headers: Headers;
381
- status: 401;
382
- };
383
- type DeactivateBrand403HttpError = {
384
- data: ErrorResponse403;
385
- headers: Headers;
386
- status: 403;
387
- };
388
- type DeactivateBrand404HttpError = {
389
- data: ErrorResponse404;
390
- headers: Headers;
391
- status: 404;
392
- };
393
- type DeactivateBrand500HttpError = {
394
- data: ErrorResponse500;
395
- headers: Headers;
396
- status: 500;
397
- };
398
- type DeactivateBrandHttpError = DeactivateBrand400HttpError | DeactivateBrand401HttpError | DeactivateBrand403HttpError | DeactivateBrand404HttpError | DeactivateBrand500HttpError;
399
- /**
400
- * Deletes a specific brand file
401
- *
402
- * @param brandId The brand's unique identifier.
403
- * @param brandFileId The unique identifier of a file within a brand.
404
- * @throws DeleteBrandFileHttpError
405
- */
406
- declare const deleteBrandFile: (brandId: string, brandFileId: string, options?: ApiCallOptions) => Promise<DeleteBrandFileHttpResponse>;
407
- type DeleteBrandFileHttpResponse = {
408
- data: void;
409
- headers: Headers;
410
- status: number;
411
- };
412
- type DeleteBrandFile400HttpError = {
413
- data: ErrorResponse400;
414
- headers: Headers;
415
- status: 400;
416
- };
417
- type DeleteBrandFile401HttpError = {
418
- data: ErrorResponse401;
419
- headers: Headers;
420
- status: 401;
421
- };
422
- type DeleteBrandFile403HttpError = {
423
- data: ErrorResponse403;
424
- headers: Headers;
425
- status: 403;
426
- };
427
- type DeleteBrandFile404HttpError = {
428
- data: ErrorResponse404;
429
- headers: Headers;
430
- status: 404;
431
- };
432
- type DeleteBrandFile500HttpError = {
433
- data: ErrorResponse500;
434
- headers: Headers;
435
- status: 500;
436
- };
437
- type DeleteBrandFileHttpError = DeleteBrandFile400HttpError | DeleteBrandFile401HttpError | DeleteBrandFile403HttpError | DeleteBrandFile404HttpError | DeleteBrandFile500HttpError;
438
- /**
439
- * Downloads the brand file
440
- *
441
- * @param brandId The brand's unique identifier.
442
- * @param brandFileId The unique identifier of a file within a brand.
443
- * @throws GetBrandFileHttpError
444
- */
445
- declare const getBrandFile: (brandId: string, brandFileId: string, options?: ApiCallOptions) => Promise<GetBrandFileHttpResponse>;
446
- type GetBrandFileHttpResponse = {
447
- data: DownloadableBlob;
448
- headers: Headers;
449
- status: number;
450
- };
451
- type GetBrandFile400HttpError = {
452
- data: ErrorResponse400;
453
- headers: Headers;
454
- status: 400;
455
- };
456
- type GetBrandFile401HttpError = {
457
- data: ErrorResponse401;
458
- headers: Headers;
459
- status: 401;
460
- };
461
- type GetBrandFile403HttpError = {
462
- data: ErrorResponse403;
463
- headers: Headers;
464
- status: 403;
465
- };
466
- type GetBrandFile404HttpError = {
467
- data: ErrorResponse404;
468
- headers: Headers;
469
- status: 404;
470
- };
471
- type GetBrandFile500HttpError = {
472
- data: ErrorResponse500;
473
- headers: Headers;
474
- status: 500;
475
- };
476
- type GetBrandFileHttpError = GetBrandFile400HttpError | GetBrandFile401HttpError | GetBrandFile403HttpError | GetBrandFile404HttpError | GetBrandFile500HttpError;
477
- /**
478
- * Creates a brand file
479
- *
480
- * @param brandId The brand's unique identifier.
481
- * @param brandFileId The unique identifier of a file within a brand.
482
- * @param body an object with the body content
483
- * @throws CreateBrandFileHttpError
484
- */
485
- declare const createBrandFile: (brandId: string, brandFileId: string, body: {
486
- /** The path and name of a file to upload. */
487
- file?: BodyInit;
488
- }, options?: ApiCallOptions) => Promise<CreateBrandFileHttpResponse>;
489
- type CreateBrandFileHttpResponse = {
490
- data: BrandFile;
491
- headers: Headers;
492
- status: number;
493
- };
494
- type CreateBrandFile400HttpError = {
495
- data: ErrorResponse400;
496
- headers: Headers;
497
- status: 400;
498
- };
499
- type CreateBrandFile401HttpError = {
500
- data: ErrorResponse401;
501
- headers: Headers;
502
- status: 401;
503
- };
504
- type CreateBrandFile403HttpError = {
505
- data: ErrorResponse403;
506
- headers: Headers;
507
- status: 403;
508
- };
509
- type CreateBrandFile404HttpError = {
510
- data: ErrorResponse404;
511
- headers: Headers;
512
- status: 404;
513
- };
514
- type CreateBrandFile500HttpError = {
515
- data: ErrorResponse500;
516
- headers: Headers;
517
- status: 500;
518
- };
519
- type CreateBrandFileHttpError = CreateBrandFile400HttpError | CreateBrandFile401HttpError | CreateBrandFile403HttpError | CreateBrandFile404HttpError | CreateBrandFile500HttpError;
520
- /**
521
- * Updates existing file
522
- *
523
- * @param brandId The brand's unique identifier.
524
- * @param brandFileId The unique identifier of a file within a brand.
525
- * @param body an object with the body content
526
- * @throws UpdateBrandFileHttpError
527
- */
528
- declare const updateBrandFile: (brandId: string, brandFileId: string, body: {
529
- /** A file to upload. */
530
- file?: BodyInit;
531
- }, options?: ApiCallOptions) => Promise<UpdateBrandFileHttpResponse>;
532
- type UpdateBrandFileHttpResponse = {
533
- data: BrandFile;
534
- headers: Headers;
535
- status: number;
536
- };
537
- type UpdateBrandFile400HttpError = {
538
- data: ErrorResponse400;
539
- headers: Headers;
540
- status: 400;
541
- };
542
- type UpdateBrandFile401HttpError = {
543
- data: ErrorResponse401;
544
- headers: Headers;
545
- status: 401;
546
- };
547
- type UpdateBrandFile403HttpError = {
548
- data: ErrorResponse403;
549
- headers: Headers;
550
- status: 403;
551
- };
552
- type UpdateBrandFile404HttpError = {
553
- data: ErrorResponse404;
554
- headers: Headers;
555
- status: 404;
556
- };
557
- type UpdateBrandFile500HttpError = {
558
- data: ErrorResponse500;
559
- headers: Headers;
560
- status: 500;
561
- };
562
- type UpdateBrandFileHttpError = UpdateBrandFile400HttpError | UpdateBrandFile401HttpError | UpdateBrandFile403HttpError | UpdateBrandFile404HttpError | UpdateBrandFile500HttpError;
563
- /**
564
- * Clears the cache for brands api requests.
565
- */
566
- declare function clearCache(): void;
567
- interface BrandsAPI {
568
- /**
569
- * Lists all brand entries for a tenant
570
- *
571
- * @param query an object with query parameters
572
- * @throws GetBrandsHttpError
573
- */
574
- getBrands: typeof getBrands;
575
- /**
576
- * Creates a new brand
577
- *
578
- * @param body an object with the body content
579
- * @throws CreateBrandHttpError
580
- */
581
- createBrand: typeof createBrand;
582
- /**
583
- * Retrieves the current active brand
584
- *
585
- * @throws GetActiveBrandHttpError
586
- */
587
- getActiveBrand: typeof getActiveBrand;
588
- /**
589
- * Deletes a specific brand
590
- *
591
- * @param brandId The brand's unique identifier.
592
- * @throws DeleteBrandHttpError
593
- */
594
- deleteBrand: typeof deleteBrand;
595
- /**
596
- * Retrieves a specific brand
597
- *
598
- * @param brandId The brand's unique identifier.
599
- * @throws GetBrandHttpError
600
- */
601
- getBrand: typeof getBrand;
602
- /**
603
- * Patches a brand
604
- *
605
- * @param brandId The brand's unique identifier.
606
- * @param body an object with the body content
607
- * @throws PatchBrandHttpError
608
- */
609
- patchBrand: typeof patchBrand;
610
- /**
611
- * Sets the brand active and de-activates any other active brand. If the brand is already active, no action is taken.
612
- *
613
- * @param brandId The brand's unique identifier.
614
- * @param body an object with the body content
615
- * @throws ActivateBrandHttpError
616
- */
617
- activateBrand: typeof activateBrand;
618
- /**
619
- * Sets the brand so it is no longer active. If the brand is already inactive, no action is taken.
620
- *
621
- * @param brandId The brand's unique identifier.
622
- * @param body an object with the body content
623
- * @throws DeactivateBrandHttpError
624
- */
625
- deactivateBrand: typeof deactivateBrand;
626
- /**
627
- * Deletes a specific brand file
628
- *
629
- * @param brandId The brand's unique identifier.
630
- * @param brandFileId The unique identifier of a file within a brand.
631
- * @throws DeleteBrandFileHttpError
632
- */
633
- deleteBrandFile: typeof deleteBrandFile;
634
- /**
635
- * Downloads the brand file
636
- *
637
- * @param brandId The brand's unique identifier.
638
- * @param brandFileId The unique identifier of a file within a brand.
639
- * @throws GetBrandFileHttpError
640
- */
641
- getBrandFile: typeof getBrandFile;
642
- /**
643
- * Creates a brand file
644
- *
645
- * @param brandId The brand's unique identifier.
646
- * @param brandFileId The unique identifier of a file within a brand.
647
- * @param body an object with the body content
648
- * @throws CreateBrandFileHttpError
649
- */
650
- createBrandFile: typeof createBrandFile;
651
- /**
652
- * Updates existing file
653
- *
654
- * @param brandId The brand's unique identifier.
655
- * @param brandFileId The unique identifier of a file within a brand.
656
- * @param body an object with the body content
657
- * @throws UpdateBrandFileHttpError
658
- */
659
- updateBrandFile: typeof updateBrandFile;
660
- /**
661
- * Clears the cache for brands api requests.
662
- */
663
- clearCache: typeof clearCache;
664
- }
665
- /**
666
- * Functions for the brands api
667
- */
668
- declare const brandsExport: BrandsAPI;
669
-
670
- export { type ActivateBrand400HttpError, type ActivateBrand401HttpError, type ActivateBrand403HttpError, type ActivateBrand404HttpError, type ActivateBrand500HttpError, type ActivateBrandHttpError, type ActivateBrandHttpResponse, type Brand, type BrandFile, type BrandPatch, type BrandsAPI, type BrandsList, type CreateBrand400HttpError, type CreateBrand401HttpError, type CreateBrand403HttpError, type CreateBrand500HttpError, type CreateBrandFile400HttpError, type CreateBrandFile401HttpError, type CreateBrandFile403HttpError, type CreateBrandFile404HttpError, type CreateBrandFile500HttpError, type CreateBrandFileHttpError, type CreateBrandFileHttpResponse, type CreateBrandHttpError, type CreateBrandHttpResponse, type DeactivateBrand400HttpError, type DeactivateBrand401HttpError, type DeactivateBrand403HttpError, type DeactivateBrand404HttpError, type DeactivateBrand500HttpError, type DeactivateBrandHttpError, type DeactivateBrandHttpResponse, type DeleteBrand400HttpError, type DeleteBrand401HttpError, type DeleteBrand403HttpError, type DeleteBrand404HttpError, type DeleteBrand500HttpError, type DeleteBrandFile400HttpError, type DeleteBrandFile401HttpError, type DeleteBrandFile403HttpError, type DeleteBrandFile404HttpError, type DeleteBrandFile500HttpError, type DeleteBrandFileHttpError, type DeleteBrandFileHttpResponse, type DeleteBrandHttpError, type DeleteBrandHttpResponse, type ErrorResponse400, type ErrorResponse401, type ErrorResponse403, type ErrorResponse404, type ErrorResponse500, type GetActiveBrandHttpError, type GetActiveBrandHttpResponse, type GetBrand400HttpError, type GetBrand401HttpError, type GetBrand403HttpError, type GetBrand404HttpError, type GetBrand500HttpError, type GetBrandFile400HttpError, type GetBrandFile401HttpError, type GetBrandFile403HttpError, type GetBrandFile404HttpError, type GetBrandFile500HttpError, type GetBrandFileHttpError, type GetBrandFileHttpResponse, type GetBrandHttpError, type GetBrandHttpResponse, type GetBrands400HttpError, type GetBrands401HttpError, type GetBrands403HttpError, type GetBrands500HttpError, type GetBrandsHttpError, type GetBrandsHttpResponse, type Link, type NoActiveBrand, type PatchBrand400HttpError, type PatchBrand401HttpError, type PatchBrand403HttpError, type PatchBrand404HttpError, type PatchBrand500HttpError, type PatchBrandHttpError, type PatchBrandHttpResponse, type UpdateBrandFile400HttpError, type UpdateBrandFile401HttpError, type UpdateBrandFile403HttpError, type UpdateBrandFile404HttpError, type UpdateBrandFile500HttpError, type UpdateBrandFileHttpError, type UpdateBrandFileHttpResponse, activateBrand, clearCache, createBrand, createBrandFile, deactivateBrand, brandsExport as default, deleteBrand, deleteBrandFile, getActiveBrand, getBrand, getBrandFile, getBrands, patchBrand, updateBrandFile };