@qlik/api 0.0.2 → 0.0.3

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 (171) hide show
  1. package/api-keys.d.mts +14 -0
  2. package/api-keys.d.ts +14 -0
  3. package/api-keys.js +14 -10
  4. package/api-keys.mjs +6 -2
  5. package/apps.d.mts +478 -148
  6. package/apps.d.ts +478 -148
  7. package/apps.js +100 -42
  8. package/apps.mjs +60 -2
  9. package/audits.d.mts +12 -0
  10. package/audits.d.ts +12 -0
  11. package/audits.js +10 -9
  12. package/audits.mjs +3 -2
  13. package/auth-AWZV4DPP.js +41 -0
  14. package/{auth-RTFXVSSK.mjs → auth-CPBNNC7S.mjs} +4 -1
  15. package/auth.js +4 -3
  16. package/auth.mjs +3 -2
  17. package/automations.d.mts +36 -0
  18. package/automations.d.ts +36 -0
  19. package/automations.js +28 -21
  20. package/automations.mjs +9 -2
  21. package/brands.d.mts +45 -4
  22. package/brands.d.ts +45 -4
  23. package/brands.js +20 -15
  24. package/brands.mjs +7 -2
  25. package/{chunk-ZT4C7KCQ.js → chunk-2STFUQKQ.js} +3 -3
  26. package/{chunk-7REWEWCX.mjs → chunk-3SVRHJII.mjs} +3 -3
  27. package/{chunk-CKPJE4IA.mjs → chunk-67GJTTPV.mjs} +1 -1
  28. package/{chunk-M7F4JFOB.js → chunk-7RY3NO6N.js} +2 -2
  29. package/{chunk-NALKLKZS.mjs → chunk-CYRLVHU3.mjs} +316 -53
  30. package/{chunk-RMKP2BDX.js → chunk-D52VW5UN.js} +318 -55
  31. package/{chunk-GUQBHY3H.mjs → chunk-GNWU6SP2.mjs} +1 -1
  32. package/{chunk-QN23TPIE.js → chunk-GV5SRHY2.js} +4 -4
  33. package/{chunk-OULT3V2U.js → chunk-JNGURO23.js} +3 -3
  34. package/chunk-P57PW2II.js +11 -0
  35. package/{chunk-3YE7EI7I.mjs → chunk-TE7XMBT5.mjs} +1 -1
  36. package/chunk-ZFXKCRJC.mjs +11 -0
  37. package/collections.d.mts +51 -17
  38. package/collections.d.ts +51 -17
  39. package/collections.js +28 -14
  40. package/collections.mjs +16 -2
  41. package/csp-origins.d.mts +12 -0
  42. package/csp-origins.d.ts +12 -0
  43. package/csp-origins.js +12 -9
  44. package/csp-origins.mjs +5 -2
  45. package/data-assets.d.mts +10 -0
  46. package/data-assets.d.ts +10 -0
  47. package/data-assets.js +13 -8
  48. package/data-assets.mjs +7 -2
  49. package/data-connections.d.mts +18 -0
  50. package/data-connections.d.ts +18 -0
  51. package/data-connections.js +19 -12
  52. package/data-connections.mjs +9 -2
  53. package/data-credentials.d.mts +8 -0
  54. package/data-credentials.d.ts +8 -0
  55. package/data-credentials.js +10 -7
  56. package/data-credentials.mjs +5 -2
  57. package/data-files.d.mts +98 -13
  58. package/data-files.d.ts +98 -13
  59. package/data-files.js +22 -15
  60. package/data-files.mjs +9 -2
  61. package/{enigma-session-VPPJMBEM.js → enigma-session-XPXDQAIV.js} +5 -4
  62. package/{enigma-session-HGXKZJVO.mjs → enigma-session-ZH6MYA54.mjs} +2 -1
  63. package/{esm-RX7B2TUN.js → esm-3VXX2GKL.js} +3 -1
  64. package/{esm-M5ZBFTVD.mjs → esm-OY4XVIJB.mjs} +3 -1
  65. package/extensions.d.mts +26 -2
  66. package/extensions.d.ts +26 -2
  67. package/extensions.js +13 -10
  68. package/extensions.mjs +5 -2
  69. package/glossaries.d.mts +55 -20
  70. package/glossaries.d.ts +55 -20
  71. package/glossaries.js +39 -27
  72. package/glossaries.mjs +14 -2
  73. package/groups.d.mts +16 -0
  74. package/groups.d.ts +16 -0
  75. package/groups.js +16 -11
  76. package/groups.mjs +7 -2
  77. package/identity-providers.d.mts +16 -0
  78. package/identity-providers.d.ts +16 -0
  79. package/identity-providers.js +14 -11
  80. package/identity-providers.mjs +5 -2
  81. package/index.js +135 -101
  82. package/index.mjs +131 -97
  83. package/{invoke-fetch-IMO4AMA3.mjs → invoke-fetch-3WZWAAZH.mjs} +4 -1
  84. package/invoke-fetch-UNTAUR7O.js +17 -0
  85. package/items.d.mts +6 -6
  86. package/items.d.ts +6 -6
  87. package/items.js +14 -11
  88. package/items.mjs +5 -2
  89. package/licenses.d.mts +18 -0
  90. package/licenses.d.ts +18 -0
  91. package/licenses.js +17 -12
  92. package/licenses.mjs +7 -2
  93. package/package.json +4 -4
  94. package/{qix-K22VHZRH.js → qix-UNWXPGMA.js} +9 -8
  95. package/{qix-57WD2ZE6.mjs → qix-ZSJ4PIK3.mjs} +3 -2
  96. package/qix.d.mts +1 -1
  97. package/qix.d.ts +1 -1
  98. package/qix.js +4 -3
  99. package/qix.mjs +3 -2
  100. package/quotas.d.mts +4 -0
  101. package/quotas.d.ts +4 -0
  102. package/quotas.js +6 -5
  103. package/quotas.mjs +3 -2
  104. package/reload-tasks.js +11 -8
  105. package/reload-tasks.mjs +5 -2
  106. package/reloads.d.mts +17 -10
  107. package/reloads.d.ts +17 -10
  108. package/reloads.js +9 -7
  109. package/reloads.mjs +4 -2
  110. package/roles.d.mts +4 -0
  111. package/roles.d.ts +4 -0
  112. package/roles.js +6 -5
  113. package/roles.mjs +3 -2
  114. package/spaces.d.mts +27 -4
  115. package/spaces.d.ts +27 -4
  116. package/spaces.js +21 -15
  117. package/spaces.mjs +8 -2
  118. package/temp-contents.d.mts +8 -3
  119. package/temp-contents.d.ts +8 -3
  120. package/temp-contents.js +8 -6
  121. package/temp-contents.mjs +4 -2
  122. package/tenants.d.mts +12 -0
  123. package/tenants.d.ts +12 -0
  124. package/tenants.js +14 -9
  125. package/tenants.mjs +7 -2
  126. package/themes.d.mts +26 -2
  127. package/themes.d.ts +26 -2
  128. package/themes.js +13 -10
  129. package/themes.mjs +5 -2
  130. package/transports.d.mts +12 -0
  131. package/transports.d.ts +12 -0
  132. package/transports.js +12 -9
  133. package/transports.mjs +5 -2
  134. package/users.d.mts +48 -29
  135. package/users.d.ts +48 -29
  136. package/users.js +18 -13
  137. package/users.mjs +7 -2
  138. package/web-integrations.d.mts +10 -0
  139. package/web-integrations.d.ts +10 -0
  140. package/web-integrations.js +11 -8
  141. package/web-integrations.mjs +5 -2
  142. package/web-notifications.d.mts +12 -0
  143. package/web-notifications.d.ts +12 -0
  144. package/web-notifications.js +12 -9
  145. package/web-notifications.mjs +5 -2
  146. package/webhooks.d.mts +25 -5
  147. package/webhooks.d.ts +25 -5
  148. package/webhooks.js +17 -13
  149. package/webhooks.mjs +6 -2
  150. package/auth-CSVTXOZX.js +0 -36
  151. package/auth-OU7OTB7Y.js +0 -38
  152. package/auth-TE272Q34.mjs +0 -36
  153. package/chunk-4ES65KO3.js +0 -57
  154. package/chunk-4FLMND6T.js +0 -25
  155. package/chunk-4OMEH5SW.mjs +0 -1337
  156. package/chunk-6JERR27K.js +0 -17
  157. package/chunk-E42WUFCK.mjs +0 -57
  158. package/chunk-H7SAZYEE.js +0 -21
  159. package/chunk-KMMWJZHM.mjs +0 -25
  160. package/chunk-W4J34XGA.mjs +0 -17
  161. package/chunk-WM7FQU2U.mjs +0 -21
  162. package/chunk-XASXL2NC.js +0 -1337
  163. package/enigma-session-4L373ALV.mjs +0 -10196
  164. package/enigma-session-TEB53FAF.js +0 -10196
  165. package/esm-4X3DKK5D.js +0 -63
  166. package/esm-SOWVJKOQ.mjs +0 -63
  167. package/invoke-fetch-7PKPQ3FD.js +0 -14
  168. package/invoke-fetch-MSSJAZ7K.mjs +0 -14
  169. package/invoke-fetch-PEI54KZO.js +0 -14
  170. package/qix-EU7PXRZ6.mjs +0 -573
  171. package/qix-RLTISYTB.js +0 -573
package/brands.d.mts CHANGED
@@ -86,6 +86,7 @@ type Link = {
86
86
  type NoActiveBrand = unknown;
87
87
  /**
88
88
  * Lists all brand entries for a tenant
89
+ *
89
90
  * @param query an object with query parameters
90
91
  * @throws GetBrandsHttpError
91
92
  */
@@ -129,10 +130,22 @@ type GetBrands500HttpError = {
129
130
  type GetBrandsHttpError = GetBrands400HttpError | GetBrands401HttpError | GetBrands403HttpError | GetBrands500HttpError;
130
131
  /**
131
132
  * Creates a new brand
133
+ *
132
134
  * @param body an object with the body content
133
135
  * @throws CreateBrandHttpError
134
136
  */
135
- declare const createBrand: (body: unknown, options?: ApiCallOptions) => Promise<CreateBrandHttpResponse>;
137
+ declare const createBrand: (body: {
138
+ /** Description of the brand. */
139
+ description?: string;
140
+ /** The path and name of a properly formatted ICO file. Maximum size is 100 KB. */
141
+ favIcon?: BodyInit;
142
+ /** 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. */
143
+ logo?: BodyInit;
144
+ /** Name of the brand. */
145
+ name: string;
146
+ /** The path and name of a JSON file to define brand style settings. Maximum size is 100 KB. This property is not currently operational. */
147
+ styles?: BodyInit;
148
+ }, options?: ApiCallOptions) => Promise<CreateBrandHttpResponse>;
136
149
  type CreateBrandHttpResponse = {
137
150
  data: Brand;
138
151
  headers: Headers;
@@ -161,6 +174,7 @@ type CreateBrand500HttpError = {
161
174
  type CreateBrandHttpError = CreateBrand400HttpError | CreateBrand401HttpError | CreateBrand403HttpError | CreateBrand500HttpError;
162
175
  /**
163
176
  * Retrieves the current active brand
177
+ *
164
178
  * @throws GetActiveBrandHttpError
165
179
  */
166
180
  declare const getActiveBrand: (options?: ApiCallOptions) => Promise<GetActiveBrandHttpResponse>;
@@ -176,6 +190,7 @@ type GetActiveBrandHttpError = {
176
190
  };
177
191
  /**
178
192
  * Deletes a specific brand
193
+ *
179
194
  * @param brandId The brand's unique identifier.
180
195
  * @throws DeleteBrandHttpError
181
196
  */
@@ -213,6 +228,7 @@ type DeleteBrand500HttpError = {
213
228
  type DeleteBrandHttpError = DeleteBrand400HttpError | DeleteBrand401HttpError | DeleteBrand403HttpError | DeleteBrand404HttpError | DeleteBrand500HttpError;
214
229
  /**
215
230
  * Retrieves a specific brand
231
+ *
216
232
  * @param brandId The brand's unique identifier.
217
233
  * @throws GetBrandHttpError
218
234
  */
@@ -250,6 +266,7 @@ type GetBrand500HttpError = {
250
266
  type GetBrandHttpError = GetBrand400HttpError | GetBrand401HttpError | GetBrand403HttpError | GetBrand404HttpError | GetBrand500HttpError;
251
267
  /**
252
268
  * Patches a brand
269
+ *
253
270
  * @param brandId The brand's unique identifier.
254
271
  * @param body an object with the body content
255
272
  * @throws PatchBrandHttpError
@@ -288,6 +305,7 @@ type PatchBrand500HttpError = {
288
305
  type PatchBrandHttpError = PatchBrand400HttpError | PatchBrand401HttpError | PatchBrand403HttpError | PatchBrand404HttpError | PatchBrand500HttpError;
289
306
  /**
290
307
  * Sets the brand active and de-activates any other active brand. If the brand is already active, no action is taken.
308
+ *
291
309
  * @param brandId The brand's unique identifier.
292
310
  * @param body an object with the body content
293
311
  * @throws ActivateBrandHttpError
@@ -326,6 +344,7 @@ type ActivateBrand500HttpError = {
326
344
  type ActivateBrandHttpError = ActivateBrand400HttpError | ActivateBrand401HttpError | ActivateBrand403HttpError | ActivateBrand404HttpError | ActivateBrand500HttpError;
327
345
  /**
328
346
  * Sets the brand so it is no longer active. If the brand is already inactive, no action is taken.
347
+ *
329
348
  * @param brandId The brand's unique identifier.
330
349
  * @param body an object with the body content
331
350
  * @throws DeactivateBrandHttpError
@@ -364,6 +383,7 @@ type DeactivateBrand500HttpError = {
364
383
  type DeactivateBrandHttpError = DeactivateBrand400HttpError | DeactivateBrand401HttpError | DeactivateBrand403HttpError | DeactivateBrand404HttpError | DeactivateBrand500HttpError;
365
384
  /**
366
385
  * Deletes a specific brand file
386
+ *
367
387
  * @param brandId The brand's unique identifier.
368
388
  * @param brandFileId The unique identifier of a file within a brand.
369
389
  * @throws DeleteBrandFileHttpError
@@ -402,13 +422,14 @@ type DeleteBrandFile500HttpError = {
402
422
  type DeleteBrandFileHttpError = DeleteBrandFile400HttpError | DeleteBrandFile401HttpError | DeleteBrandFile403HttpError | DeleteBrandFile404HttpError | DeleteBrandFile500HttpError;
403
423
  /**
404
424
  * Downloads the brand file
425
+ *
405
426
  * @param brandId The brand's unique identifier.
406
427
  * @param brandFileId The unique identifier of a file within a brand.
407
428
  * @throws GetBrandFileHttpError
408
429
  */
409
430
  declare const getBrandFile: (brandId: string, brandFileId: string, options?: ApiCallOptions) => Promise<GetBrandFileHttpResponse>;
410
431
  type GetBrandFileHttpResponse = {
411
- data: string;
432
+ data: BodyInit;
412
433
  headers: Headers;
413
434
  status: number;
414
435
  };
@@ -440,12 +461,16 @@ type GetBrandFile500HttpError = {
440
461
  type GetBrandFileHttpError = GetBrandFile400HttpError | GetBrandFile401HttpError | GetBrandFile403HttpError | GetBrandFile404HttpError | GetBrandFile500HttpError;
441
462
  /**
442
463
  * Creates a brand file
464
+ *
443
465
  * @param brandId The brand's unique identifier.
444
466
  * @param brandFileId The unique identifier of a file within a brand.
445
467
  * @param body an object with the body content
446
468
  * @throws CreateBrandFileHttpError
447
469
  */
448
- declare const createBrandFile: (brandId: string, brandFileId: string, body: unknown, options?: ApiCallOptions) => Promise<CreateBrandFileHttpResponse>;
470
+ declare const createBrandFile: (brandId: string, brandFileId: string, body: {
471
+ /** The path and name of a file to upload. */
472
+ file?: BodyInit;
473
+ }, options?: ApiCallOptions) => Promise<CreateBrandFileHttpResponse>;
449
474
  type CreateBrandFileHttpResponse = {
450
475
  data: BrandFile;
451
476
  headers: Headers;
@@ -479,12 +504,16 @@ type CreateBrandFile500HttpError = {
479
504
  type CreateBrandFileHttpError = CreateBrandFile400HttpError | CreateBrandFile401HttpError | CreateBrandFile403HttpError | CreateBrandFile404HttpError | CreateBrandFile500HttpError;
480
505
  /**
481
506
  * Updates existing file
507
+ *
482
508
  * @param brandId The brand's unique identifier.
483
509
  * @param brandFileId The unique identifier of a file within a brand.
484
510
  * @param body an object with the body content
485
511
  * @throws UpdateBrandFileHttpError
486
512
  */
487
- declare const updateBrandFile: (brandId: string, brandFileId: string, body: unknown, options?: ApiCallOptions) => Promise<UpdateBrandFileHttpResponse>;
513
+ declare const updateBrandFile: (brandId: string, brandFileId: string, body: {
514
+ /** A file to upload. */
515
+ file?: BodyInit;
516
+ }, options?: ApiCallOptions) => Promise<UpdateBrandFileHttpResponse>;
488
517
  type UpdateBrandFileHttpResponse = {
489
518
  data: BrandFile;
490
519
  headers: Headers;
@@ -523,35 +552,41 @@ declare function clearCache(): void;
523
552
  interface BrandsAPI {
524
553
  /**
525
554
  * Lists all brand entries for a tenant
555
+ *
526
556
  * @param query an object with query parameters
527
557
  * @throws GetBrandsHttpError
528
558
  */
529
559
  getBrands: typeof getBrands;
530
560
  /**
531
561
  * Creates a new brand
562
+ *
532
563
  * @param body an object with the body content
533
564
  * @throws CreateBrandHttpError
534
565
  */
535
566
  createBrand: typeof createBrand;
536
567
  /**
537
568
  * Retrieves the current active brand
569
+ *
538
570
  * @throws GetActiveBrandHttpError
539
571
  */
540
572
  getActiveBrand: typeof getActiveBrand;
541
573
  /**
542
574
  * Deletes a specific brand
575
+ *
543
576
  * @param brandId The brand's unique identifier.
544
577
  * @throws DeleteBrandHttpError
545
578
  */
546
579
  deleteBrand: typeof deleteBrand;
547
580
  /**
548
581
  * Retrieves a specific brand
582
+ *
549
583
  * @param brandId The brand's unique identifier.
550
584
  * @throws GetBrandHttpError
551
585
  */
552
586
  getBrand: typeof getBrand;
553
587
  /**
554
588
  * Patches a brand
589
+ *
555
590
  * @param brandId The brand's unique identifier.
556
591
  * @param body an object with the body content
557
592
  * @throws PatchBrandHttpError
@@ -559,6 +594,7 @@ interface BrandsAPI {
559
594
  patchBrand: typeof patchBrand;
560
595
  /**
561
596
  * Sets the brand active and de-activates any other active brand. If the brand is already active, no action is taken.
597
+ *
562
598
  * @param brandId The brand's unique identifier.
563
599
  * @param body an object with the body content
564
600
  * @throws ActivateBrandHttpError
@@ -566,6 +602,7 @@ interface BrandsAPI {
566
602
  activateBrand: typeof activateBrand;
567
603
  /**
568
604
  * Sets the brand so it is no longer active. If the brand is already inactive, no action is taken.
605
+ *
569
606
  * @param brandId The brand's unique identifier.
570
607
  * @param body an object with the body content
571
608
  * @throws DeactivateBrandHttpError
@@ -573,6 +610,7 @@ interface BrandsAPI {
573
610
  deactivateBrand: typeof deactivateBrand;
574
611
  /**
575
612
  * Deletes a specific brand file
613
+ *
576
614
  * @param brandId The brand's unique identifier.
577
615
  * @param brandFileId The unique identifier of a file within a brand.
578
616
  * @throws DeleteBrandFileHttpError
@@ -580,6 +618,7 @@ interface BrandsAPI {
580
618
  deleteBrandFile: typeof deleteBrandFile;
581
619
  /**
582
620
  * Downloads the brand file
621
+ *
583
622
  * @param brandId The brand's unique identifier.
584
623
  * @param brandFileId The unique identifier of a file within a brand.
585
624
  * @throws GetBrandFileHttpError
@@ -587,6 +626,7 @@ interface BrandsAPI {
587
626
  getBrandFile: typeof getBrandFile;
588
627
  /**
589
628
  * Creates a brand file
629
+ *
590
630
  * @param brandId The brand's unique identifier.
591
631
  * @param brandFileId The unique identifier of a file within a brand.
592
632
  * @param body an object with the body content
@@ -595,6 +635,7 @@ interface BrandsAPI {
595
635
  createBrandFile: typeof createBrandFile;
596
636
  /**
597
637
  * Updates existing file
638
+ *
598
639
  * @param brandId The brand's unique identifier.
599
640
  * @param brandFileId The unique identifier of a file within a brand.
600
641
  * @param body an object with the body content
package/brands.d.ts CHANGED
@@ -86,6 +86,7 @@ type Link = {
86
86
  type NoActiveBrand = unknown;
87
87
  /**
88
88
  * Lists all brand entries for a tenant
89
+ *
89
90
  * @param query an object with query parameters
90
91
  * @throws GetBrandsHttpError
91
92
  */
@@ -129,10 +130,22 @@ type GetBrands500HttpError = {
129
130
  type GetBrandsHttpError = GetBrands400HttpError | GetBrands401HttpError | GetBrands403HttpError | GetBrands500HttpError;
130
131
  /**
131
132
  * Creates a new brand
133
+ *
132
134
  * @param body an object with the body content
133
135
  * @throws CreateBrandHttpError
134
136
  */
135
- declare const createBrand: (body: unknown, options?: ApiCallOptions) => Promise<CreateBrandHttpResponse>;
137
+ declare const createBrand: (body: {
138
+ /** Description of the brand. */
139
+ description?: string;
140
+ /** The path and name of a properly formatted ICO file. Maximum size is 100 KB. */
141
+ favIcon?: BodyInit;
142
+ /** 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. */
143
+ logo?: BodyInit;
144
+ /** Name of the brand. */
145
+ name: string;
146
+ /** The path and name of a JSON file to define brand style settings. Maximum size is 100 KB. This property is not currently operational. */
147
+ styles?: BodyInit;
148
+ }, options?: ApiCallOptions) => Promise<CreateBrandHttpResponse>;
136
149
  type CreateBrandHttpResponse = {
137
150
  data: Brand;
138
151
  headers: Headers;
@@ -161,6 +174,7 @@ type CreateBrand500HttpError = {
161
174
  type CreateBrandHttpError = CreateBrand400HttpError | CreateBrand401HttpError | CreateBrand403HttpError | CreateBrand500HttpError;
162
175
  /**
163
176
  * Retrieves the current active brand
177
+ *
164
178
  * @throws GetActiveBrandHttpError
165
179
  */
166
180
  declare const getActiveBrand: (options?: ApiCallOptions) => Promise<GetActiveBrandHttpResponse>;
@@ -176,6 +190,7 @@ type GetActiveBrandHttpError = {
176
190
  };
177
191
  /**
178
192
  * Deletes a specific brand
193
+ *
179
194
  * @param brandId The brand's unique identifier.
180
195
  * @throws DeleteBrandHttpError
181
196
  */
@@ -213,6 +228,7 @@ type DeleteBrand500HttpError = {
213
228
  type DeleteBrandHttpError = DeleteBrand400HttpError | DeleteBrand401HttpError | DeleteBrand403HttpError | DeleteBrand404HttpError | DeleteBrand500HttpError;
214
229
  /**
215
230
  * Retrieves a specific brand
231
+ *
216
232
  * @param brandId The brand's unique identifier.
217
233
  * @throws GetBrandHttpError
218
234
  */
@@ -250,6 +266,7 @@ type GetBrand500HttpError = {
250
266
  type GetBrandHttpError = GetBrand400HttpError | GetBrand401HttpError | GetBrand403HttpError | GetBrand404HttpError | GetBrand500HttpError;
251
267
  /**
252
268
  * Patches a brand
269
+ *
253
270
  * @param brandId The brand's unique identifier.
254
271
  * @param body an object with the body content
255
272
  * @throws PatchBrandHttpError
@@ -288,6 +305,7 @@ type PatchBrand500HttpError = {
288
305
  type PatchBrandHttpError = PatchBrand400HttpError | PatchBrand401HttpError | PatchBrand403HttpError | PatchBrand404HttpError | PatchBrand500HttpError;
289
306
  /**
290
307
  * Sets the brand active and de-activates any other active brand. If the brand is already active, no action is taken.
308
+ *
291
309
  * @param brandId The brand's unique identifier.
292
310
  * @param body an object with the body content
293
311
  * @throws ActivateBrandHttpError
@@ -326,6 +344,7 @@ type ActivateBrand500HttpError = {
326
344
  type ActivateBrandHttpError = ActivateBrand400HttpError | ActivateBrand401HttpError | ActivateBrand403HttpError | ActivateBrand404HttpError | ActivateBrand500HttpError;
327
345
  /**
328
346
  * Sets the brand so it is no longer active. If the brand is already inactive, no action is taken.
347
+ *
329
348
  * @param brandId The brand's unique identifier.
330
349
  * @param body an object with the body content
331
350
  * @throws DeactivateBrandHttpError
@@ -364,6 +383,7 @@ type DeactivateBrand500HttpError = {
364
383
  type DeactivateBrandHttpError = DeactivateBrand400HttpError | DeactivateBrand401HttpError | DeactivateBrand403HttpError | DeactivateBrand404HttpError | DeactivateBrand500HttpError;
365
384
  /**
366
385
  * Deletes a specific brand file
386
+ *
367
387
  * @param brandId The brand's unique identifier.
368
388
  * @param brandFileId The unique identifier of a file within a brand.
369
389
  * @throws DeleteBrandFileHttpError
@@ -402,13 +422,14 @@ type DeleteBrandFile500HttpError = {
402
422
  type DeleteBrandFileHttpError = DeleteBrandFile400HttpError | DeleteBrandFile401HttpError | DeleteBrandFile403HttpError | DeleteBrandFile404HttpError | DeleteBrandFile500HttpError;
403
423
  /**
404
424
  * Downloads the brand file
425
+ *
405
426
  * @param brandId The brand's unique identifier.
406
427
  * @param brandFileId The unique identifier of a file within a brand.
407
428
  * @throws GetBrandFileHttpError
408
429
  */
409
430
  declare const getBrandFile: (brandId: string, brandFileId: string, options?: ApiCallOptions) => Promise<GetBrandFileHttpResponse>;
410
431
  type GetBrandFileHttpResponse = {
411
- data: string;
432
+ data: BodyInit;
412
433
  headers: Headers;
413
434
  status: number;
414
435
  };
@@ -440,12 +461,16 @@ type GetBrandFile500HttpError = {
440
461
  type GetBrandFileHttpError = GetBrandFile400HttpError | GetBrandFile401HttpError | GetBrandFile403HttpError | GetBrandFile404HttpError | GetBrandFile500HttpError;
441
462
  /**
442
463
  * Creates a brand file
464
+ *
443
465
  * @param brandId The brand's unique identifier.
444
466
  * @param brandFileId The unique identifier of a file within a brand.
445
467
  * @param body an object with the body content
446
468
  * @throws CreateBrandFileHttpError
447
469
  */
448
- declare const createBrandFile: (brandId: string, brandFileId: string, body: unknown, options?: ApiCallOptions) => Promise<CreateBrandFileHttpResponse>;
470
+ declare const createBrandFile: (brandId: string, brandFileId: string, body: {
471
+ /** The path and name of a file to upload. */
472
+ file?: BodyInit;
473
+ }, options?: ApiCallOptions) => Promise<CreateBrandFileHttpResponse>;
449
474
  type CreateBrandFileHttpResponse = {
450
475
  data: BrandFile;
451
476
  headers: Headers;
@@ -479,12 +504,16 @@ type CreateBrandFile500HttpError = {
479
504
  type CreateBrandFileHttpError = CreateBrandFile400HttpError | CreateBrandFile401HttpError | CreateBrandFile403HttpError | CreateBrandFile404HttpError | CreateBrandFile500HttpError;
480
505
  /**
481
506
  * Updates existing file
507
+ *
482
508
  * @param brandId The brand's unique identifier.
483
509
  * @param brandFileId The unique identifier of a file within a brand.
484
510
  * @param body an object with the body content
485
511
  * @throws UpdateBrandFileHttpError
486
512
  */
487
- declare const updateBrandFile: (brandId: string, brandFileId: string, body: unknown, options?: ApiCallOptions) => Promise<UpdateBrandFileHttpResponse>;
513
+ declare const updateBrandFile: (brandId: string, brandFileId: string, body: {
514
+ /** A file to upload. */
515
+ file?: BodyInit;
516
+ }, options?: ApiCallOptions) => Promise<UpdateBrandFileHttpResponse>;
488
517
  type UpdateBrandFileHttpResponse = {
489
518
  data: BrandFile;
490
519
  headers: Headers;
@@ -523,35 +552,41 @@ declare function clearCache(): void;
523
552
  interface BrandsAPI {
524
553
  /**
525
554
  * Lists all brand entries for a tenant
555
+ *
526
556
  * @param query an object with query parameters
527
557
  * @throws GetBrandsHttpError
528
558
  */
529
559
  getBrands: typeof getBrands;
530
560
  /**
531
561
  * Creates a new brand
562
+ *
532
563
  * @param body an object with the body content
533
564
  * @throws CreateBrandHttpError
534
565
  */
535
566
  createBrand: typeof createBrand;
536
567
  /**
537
568
  * Retrieves the current active brand
569
+ *
538
570
  * @throws GetActiveBrandHttpError
539
571
  */
540
572
  getActiveBrand: typeof getActiveBrand;
541
573
  /**
542
574
  * Deletes a specific brand
575
+ *
543
576
  * @param brandId The brand's unique identifier.
544
577
  * @throws DeleteBrandHttpError
545
578
  */
546
579
  deleteBrand: typeof deleteBrand;
547
580
  /**
548
581
  * Retrieves a specific brand
582
+ *
549
583
  * @param brandId The brand's unique identifier.
550
584
  * @throws GetBrandHttpError
551
585
  */
552
586
  getBrand: typeof getBrand;
553
587
  /**
554
588
  * Patches a brand
589
+ *
555
590
  * @param brandId The brand's unique identifier.
556
591
  * @param body an object with the body content
557
592
  * @throws PatchBrandHttpError
@@ -559,6 +594,7 @@ interface BrandsAPI {
559
594
  patchBrand: typeof patchBrand;
560
595
  /**
561
596
  * Sets the brand active and de-activates any other active brand. If the brand is already active, no action is taken.
597
+ *
562
598
  * @param brandId The brand's unique identifier.
563
599
  * @param body an object with the body content
564
600
  * @throws ActivateBrandHttpError
@@ -566,6 +602,7 @@ interface BrandsAPI {
566
602
  activateBrand: typeof activateBrand;
567
603
  /**
568
604
  * Sets the brand so it is no longer active. If the brand is already inactive, no action is taken.
605
+ *
569
606
  * @param brandId The brand's unique identifier.
570
607
  * @param body an object with the body content
571
608
  * @throws DeactivateBrandHttpError
@@ -573,6 +610,7 @@ interface BrandsAPI {
573
610
  deactivateBrand: typeof deactivateBrand;
574
611
  /**
575
612
  * Deletes a specific brand file
613
+ *
576
614
  * @param brandId The brand's unique identifier.
577
615
  * @param brandFileId The unique identifier of a file within a brand.
578
616
  * @throws DeleteBrandFileHttpError
@@ -580,6 +618,7 @@ interface BrandsAPI {
580
618
  deleteBrandFile: typeof deleteBrandFile;
581
619
  /**
582
620
  * Downloads the brand file
621
+ *
583
622
  * @param brandId The brand's unique identifier.
584
623
  * @param brandFileId The unique identifier of a file within a brand.
585
624
  * @throws GetBrandFileHttpError
@@ -587,6 +626,7 @@ interface BrandsAPI {
587
626
  getBrandFile: typeof getBrandFile;
588
627
  /**
589
628
  * Creates a brand file
629
+ *
590
630
  * @param brandId The brand's unique identifier.
591
631
  * @param brandFileId The unique identifier of a file within a brand.
592
632
  * @param body an object with the body content
@@ -595,6 +635,7 @@ interface BrandsAPI {
595
635
  createBrandFile: typeof createBrandFile;
596
636
  /**
597
637
  * Updates existing file
638
+ *
598
639
  * @param brandId The brand's unique identifier.
599
640
  * @param brandFileId The unique identifier of a file within a brand.
600
641
  * @param body an object with the body content
package/brands.js CHANGED
@@ -1,88 +1,93 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunk6JERR27Kjs = require('./chunk-6JERR27K.js');
5
- require('./chunk-H7SAZYEE.js');
4
+ var _chunkJNGURO23js = require('./chunk-JNGURO23.js');
5
+ require('./chunk-2STFUQKQ.js');
6
+ require('./chunk-P57PW2II.js');
6
7
 
7
8
  // src/public/rest/brands.ts
8
- var getBrands = async (query, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "brands", {
9
+ var getBrands = async (query, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "brands", {
9
10
  method: "get",
10
11
  pathTemplate: "/api/v1/brands",
11
12
  query,
12
13
  options
13
14
  });
14
- var createBrand = async (body, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "brands", {
15
+ var createBrand = async (body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "brands", {
15
16
  method: "post",
16
17
  pathTemplate: "/api/v1/brands",
17
18
  body,
19
+ contentType: "multipart/form-data",
18
20
  options
19
21
  });
20
- var getActiveBrand = async (options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "brands", {
22
+ var getActiveBrand = async (options) => _chunkJNGURO23js.invokeFetch.call(void 0, "brands", {
21
23
  method: "get",
22
24
  pathTemplate: "/api/v1/brands/active",
23
25
  options
24
26
  });
25
- var deleteBrand = async (brandId, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "brands", {
27
+ var deleteBrand = async (brandId, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "brands", {
26
28
  method: "delete",
27
29
  pathTemplate: "/api/v1/brands/{brand-id}",
28
30
  pathVariables: { "brand-id": brandId },
29
31
  options
30
32
  });
31
- var getBrand = async (brandId, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "brands", {
33
+ var getBrand = async (brandId, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "brands", {
32
34
  method: "get",
33
35
  pathTemplate: "/api/v1/brands/{brand-id}",
34
36
  pathVariables: { "brand-id": brandId },
35
37
  options
36
38
  });
37
- var patchBrand = async (brandId, body, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "brands", {
39
+ var patchBrand = async (brandId, body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "brands", {
38
40
  method: "patch",
39
41
  pathTemplate: "/api/v1/brands/{brand-id}",
40
42
  pathVariables: { "brand-id": brandId },
41
43
  body,
44
+ contentType: "application/json",
42
45
  options
43
46
  });
44
- var activateBrand = async (brandId, body, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "brands", {
47
+ var activateBrand = async (brandId, body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "brands", {
45
48
  method: "post",
46
49
  pathTemplate: "/api/v1/brands/{brand-id}/actions/activate",
47
50
  pathVariables: { "brand-id": brandId },
48
51
  body,
49
52
  options
50
53
  });
51
- var deactivateBrand = async (brandId, body, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "brands", {
54
+ var deactivateBrand = async (brandId, body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "brands", {
52
55
  method: "post",
53
56
  pathTemplate: "/api/v1/brands/{brand-id}/actions/deactivate",
54
57
  pathVariables: { "brand-id": brandId },
55
58
  body,
56
59
  options
57
60
  });
58
- var deleteBrandFile = async (brandId, brandFileId, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "brands", {
61
+ var deleteBrandFile = async (brandId, brandFileId, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "brands", {
59
62
  method: "delete",
60
63
  pathTemplate: "/api/v1/brands/{brand-id}/files/{brand-file-id}",
61
64
  pathVariables: { "brand-id": brandId, "brand-file-id": brandFileId },
62
65
  options
63
66
  });
64
- var getBrandFile = async (brandId, brandFileId, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "brands", {
67
+ var getBrandFile = async (brandId, brandFileId, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "brands", {
65
68
  method: "get",
66
69
  pathTemplate: "/api/v1/brands/{brand-id}/files/{brand-file-id}",
67
70
  pathVariables: { "brand-id": brandId, "brand-file-id": brandFileId },
68
71
  options
69
72
  });
70
- var createBrandFile = async (brandId, brandFileId, body, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "brands", {
73
+ var createBrandFile = async (brandId, brandFileId, body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "brands", {
71
74
  method: "post",
72
75
  pathTemplate: "/api/v1/brands/{brand-id}/files/{brand-file-id}",
73
76
  pathVariables: { "brand-id": brandId, "brand-file-id": brandFileId },
74
77
  body,
78
+ contentType: "multipart/form-data",
75
79
  options
76
80
  });
77
- var updateBrandFile = async (brandId, brandFileId, body, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "brands", {
81
+ var updateBrandFile = async (brandId, brandFileId, body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "brands", {
78
82
  method: "put",
79
83
  pathTemplate: "/api/v1/brands/{brand-id}/files/{brand-file-id}",
80
84
  pathVariables: { "brand-id": brandId, "brand-file-id": brandFileId },
81
85
  body,
86
+ contentType: "multipart/form-data",
82
87
  options
83
88
  });
84
89
  function clearCache() {
85
- return _chunk6JERR27Kjs.clearApiCache.call(void 0, "brands");
90
+ return _chunkJNGURO23js.clearApiCache.call(void 0, "brands");
86
91
  }
87
92
  var brandsExport = {
88
93
  getBrands,
package/brands.mjs CHANGED
@@ -1,8 +1,9 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunk-W4J34XGA.mjs";
5
- import "./chunk-7REWEWCX.mjs";
4
+ } from "./chunk-TE7XMBT5.mjs";
5
+ import "./chunk-3SVRHJII.mjs";
6
+ import "./chunk-ZFXKCRJC.mjs";
6
7
 
7
8
  // src/public/rest/brands.ts
8
9
  var getBrands = async (query, options) => invokeFetch("brands", {
@@ -15,6 +16,7 @@ var createBrand = async (body, options) => invokeFetch("brands", {
15
16
  method: "post",
16
17
  pathTemplate: "/api/v1/brands",
17
18
  body,
19
+ contentType: "multipart/form-data",
18
20
  options
19
21
  });
20
22
  var getActiveBrand = async (options) => invokeFetch("brands", {
@@ -39,6 +41,7 @@ var patchBrand = async (brandId, body, options) => invokeFetch("brands", {
39
41
  pathTemplate: "/api/v1/brands/{brand-id}",
40
42
  pathVariables: { "brand-id": brandId },
41
43
  body,
44
+ contentType: "application/json",
42
45
  options
43
46
  });
44
47
  var activateBrand = async (brandId, body, options) => invokeFetch("brands", {
@@ -72,6 +75,7 @@ var createBrandFile = async (brandId, brandFileId, body, options) => invokeFetch
72
75
  pathTemplate: "/api/v1/brands/{brand-id}/files/{brand-file-id}",
73
76
  pathVariables: { "brand-id": brandId, "brand-file-id": brandFileId },
74
77
  body,
78
+ contentType: "multipart/form-data",
75
79
  options
76
80
  });
77
81
  var updateBrandFile = async (brandId, brandFileId, body, options) => invokeFetch("brands", {
@@ -79,6 +83,7 @@ var updateBrandFile = async (brandId, brandFileId, body, options) => invokeFetch
79
83
  pathTemplate: "/api/v1/brands/{brand-id}/files/{brand-file-id}",
80
84
  pathVariables: { "brand-id": brandId, "brand-file-id": brandFileId },
81
85
  body,
86
+ contentType: "multipart/form-data",
82
87
  options
83
88
  });
84
89
  function clearCache() {
@@ -1,17 +1,17 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// src/public/public-runtime-modules.ts
2
2
  function getAuthRuntimeModule(hostConfig) {
3
3
  const isNode = !!_optionalChain([globalThis, 'access', _ => _.process, 'optionalAccess', _2 => _2.argv]);
4
- return isNode ? Promise.resolve().then(() => _interopRequireWildcard(require("./auth-CSVTXOZX.js"))) : Promise.resolve().then(() => _interopRequireWildcard(require("./esm-4X3DKK5D.js"))).then((mod) => mod.importRuntimeModule("auth@v1", hostConfig));
4
+ return isNode ? Promise.resolve().then(() => _interopRequireWildcard(require("./auth-AWZV4DPP.js"))) : Promise.resolve().then(() => _interopRequireWildcard(require("./esm-3VXX2GKL.js"))).then((mod) => mod.importRuntimeModule("auth@v1", hostConfig));
5
5
  }
6
6
  async function getQixRuntimeModule(hostConfig) {
7
7
  await getAuthRuntimeModule(hostConfig);
8
8
  const isNode = !!_optionalChain([globalThis, 'access', _3 => _3.process, 'optionalAccess', _4 => _4.argv]);
9
- return isNode ? Promise.resolve().then(() => _interopRequireWildcard(require("./qix-RLTISYTB.js"))) : Promise.resolve().then(() => _interopRequireWildcard(require("./esm-4X3DKK5D.js"))).then((mod) => mod.importRuntimeModule("qix@v1", hostConfig));
9
+ return isNode ? Promise.resolve().then(() => _interopRequireWildcard(require("./qix-UNWXPGMA.js"))) : Promise.resolve().then(() => _interopRequireWildcard(require("./esm-3VXX2GKL.js"))).then((mod) => mod.importRuntimeModule("qix@v1", hostConfig));
10
10
  }
11
11
  async function getInvokeFetchRuntimeModule(hostConfig) {
12
12
  await getAuthRuntimeModule(hostConfig);
13
13
  const isNode = !!_optionalChain([globalThis, 'access', _5 => _5.process, 'optionalAccess', _6 => _6.argv]);
14
- return isNode ? Promise.resolve().then(() => _interopRequireWildcard(require("./invoke-fetch-PEI54KZO.js"))) : Promise.resolve().then(() => _interopRequireWildcard(require("./esm-4X3DKK5D.js"))).then((mod) => mod.importRuntimeModule("invoke-fetch@v1", hostConfig));
14
+ return isNode ? Promise.resolve().then(() => _interopRequireWildcard(require("./invoke-fetch-UNTAUR7O.js"))) : Promise.resolve().then(() => _interopRequireWildcard(require("./esm-3VXX2GKL.js"))).then((mod) => mod.importRuntimeModule("invoke-fetch@v1", hostConfig));
15
15
  }
16
16
 
17
17
 
@@ -1,17 +1,17 @@
1
1
  // src/public/public-runtime-modules.ts
2
2
  function getAuthRuntimeModule(hostConfig) {
3
3
  const isNode = !!globalThis.process?.argv;
4
- return isNode ? import("./auth-RTFXVSSK.mjs") : import("./esm-M5ZBFTVD.mjs").then((mod) => mod.importRuntimeModule("auth@v1", hostConfig));
4
+ return isNode ? import("./auth-CPBNNC7S.mjs") : import("./esm-OY4XVIJB.mjs").then((mod) => mod.importRuntimeModule("auth@v1", hostConfig));
5
5
  }
6
6
  async function getQixRuntimeModule(hostConfig) {
7
7
  await getAuthRuntimeModule(hostConfig);
8
8
  const isNode = !!globalThis.process?.argv;
9
- return isNode ? import("./qix-57WD2ZE6.mjs") : import("./esm-M5ZBFTVD.mjs").then((mod) => mod.importRuntimeModule("qix@v1", hostConfig));
9
+ return isNode ? import("./qix-ZSJ4PIK3.mjs") : import("./esm-OY4XVIJB.mjs").then((mod) => mod.importRuntimeModule("qix@v1", hostConfig));
10
10
  }
11
11
  async function getInvokeFetchRuntimeModule(hostConfig) {
12
12
  await getAuthRuntimeModule(hostConfig);
13
13
  const isNode = !!globalThis.process?.argv;
14
- return isNode ? import("./invoke-fetch-IMO4AMA3.mjs") : import("./esm-M5ZBFTVD.mjs").then((mod) => mod.importRuntimeModule("invoke-fetch@v1", hostConfig));
14
+ return isNode ? import("./invoke-fetch-3WZWAAZH.mjs") : import("./esm-OY4XVIJB.mjs").then((mod) => mod.importRuntimeModule("invoke-fetch@v1", hostConfig));
15
15
  }
16
16
 
17
17
  export {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getQixRuntimeModule
3
- } from "./chunk-WM7FQU2U.mjs";
3
+ } from "./chunk-3SVRHJII.mjs";
4
4
 
5
5
  // src/public/qix.ts
6
6
  function openAppSession(appSessionProps) {
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkH7SAZYEEjs = require('./chunk-H7SAZYEE.js');
3
+ var _chunk2STFUQKQjs = require('./chunk-2STFUQKQ.js');
4
4
 
5
5
  // src/public/qix.ts
6
6
  function openAppSession(appSessionProps) {
7
- const appSessionPromise = _chunkH7SAZYEEjs.getQixRuntimeModule.call(void 0, appSessionProps.hostConfig).then(
7
+ const appSessionPromise = _chunk2STFUQKQjs.getQixRuntimeModule.call(void 0, appSessionProps.hostConfig).then(
8
8
  (impl) => impl.openAppSession(appSessionProps)
9
9
  );
10
10
  const appSessionProxy = {