@qlik/api 1.26.0 → 1.27.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 (73) hide show
  1. package/api-keys.d.ts +11 -11
  2. package/api-keys.js +2 -2
  3. package/apps.d.ts +68 -68
  4. package/apps.js +2 -2
  5. package/audits.d.ts +36 -14
  6. package/audits.js +2 -2
  7. package/auth.js +2 -2
  8. package/automations.d.ts +36 -36
  9. package/automations.js +2 -2
  10. package/brands.d.ts +23 -23
  11. package/brands.js +2 -2
  12. package/chunks/{VX3MQBE7.js → 4K3CNR7C.js} +1 -1
  13. package/chunks/{7SNOQCIQ.js → 55SZVSAG.js} +1 -1
  14. package/chunks/{HGRF5TX3.js → EOGHK2R4.js} +1 -1
  15. package/chunks/{UV5COPU3.js → V3TZ54UE.js} +3 -3
  16. package/chunks/{AMO5NATA.js → WY7IOA3Q.js} +2 -2
  17. package/collections.d.ts +22 -22
  18. package/collections.js +2 -2
  19. package/csp-origins.d.ts +12 -12
  20. package/csp-origins.js +2 -2
  21. package/data-assets.d.ts +10 -10
  22. package/data-assets.js +2 -2
  23. package/data-connections.d.ts +18 -18
  24. package/data-connections.js +2 -2
  25. package/data-credentials.d.ts +10 -10
  26. package/data-credentials.js +2 -2
  27. package/data-files.d.ts +24 -24
  28. package/data-files.js +2 -2
  29. package/docs/authentication.md +1 -1
  30. package/extensions.d.ts +11 -11
  31. package/extensions.js +2 -2
  32. package/glossaries.d.ts +48 -48
  33. package/glossaries.js +2 -2
  34. package/groups.d.ts +16 -16
  35. package/groups.js +2 -2
  36. package/identity-providers.d.ts +15 -15
  37. package/identity-providers.js +2 -2
  38. package/index.js +4 -4
  39. package/items.d.ts +16 -16
  40. package/items.js +2 -2
  41. package/licenses.d.ts +18 -18
  42. package/licenses.js +2 -2
  43. package/package.json +2 -2
  44. package/qix.d.ts +1 -1
  45. package/qix.js +2 -2
  46. package/quotas.d.ts +4 -4
  47. package/quotas.js +2 -2
  48. package/reload-tasks.d.ts +10 -10
  49. package/reload-tasks.js +2 -2
  50. package/reloads.d.ts +8 -8
  51. package/reloads.js +2 -2
  52. package/reports.d.ts +4 -4
  53. package/reports.js +2 -2
  54. package/roles.d.ts +10 -10
  55. package/roles.js +2 -2
  56. package/spaces.d.ts +59 -25
  57. package/spaces.js +2 -2
  58. package/temp-contents.d.ts +6 -6
  59. package/temp-contents.js +2 -2
  60. package/tenants.d.ts +9 -9
  61. package/tenants.js +2 -2
  62. package/themes.d.ts +11 -11
  63. package/themes.js +2 -2
  64. package/transports.d.ts +17 -17
  65. package/transports.js +2 -2
  66. package/users.d.ts +19 -19
  67. package/users.js +2 -2
  68. package/web-integrations.d.ts +9 -9
  69. package/web-integrations.js +2 -2
  70. package/web-notifications.d.ts +12 -12
  71. package/web-notifications.js +2 -2
  72. package/webhooks.d.ts +20 -20
  73. package/webhooks.js +2 -2
package/data-files.d.ts CHANGED
@@ -313,14 +313,14 @@ declare const getDataFiles: (query: {
313
313
  type GetDataFilesHttpResponse = {
314
314
  data: GetDataFileInfosResponse;
315
315
  headers: Headers;
316
- status: number;
316
+ status: 200;
317
317
  prev?: (options?: ApiCallOptions) => Promise<GetDataFilesHttpResponse>;
318
318
  next?: (options?: ApiCallOptions) => Promise<GetDataFilesHttpResponse>;
319
319
  };
320
320
  type GetDataFilesHttpError = {
321
321
  data: ErrorResponse;
322
322
  headers: Headers;
323
- status: number;
323
+ status: 400 | 403;
324
324
  };
325
325
  /**
326
326
  * Upload a new data file or create a new folder.
@@ -370,12 +370,12 @@ declare const uploadDataFile: (body: {
370
370
  type UploadDataFileHttpResponse = {
371
371
  data: DataFileUploadResponse;
372
372
  headers: Headers;
373
- status: number;
373
+ status: 201;
374
374
  };
375
375
  type UploadDataFileHttpError = {
376
376
  data: ErrorResponse;
377
377
  headers: Headers;
378
- status: number;
378
+ status: 400 | 403 | 409 | 413 | 423 | 501;
379
379
  };
380
380
  /**
381
381
  * This is to allow for a separate admin type of operation that is more global in terms of access in cases
@@ -390,12 +390,12 @@ declare const moveDataFiles: (body: DataFileBatchChangeSpaceRequest, options?: A
390
390
  type MoveDataFilesHttpResponse = {
391
391
  data: MultiStatusResponse;
392
392
  headers: Headers;
393
- status: number;
393
+ status: 207;
394
394
  };
395
395
  type MoveDataFilesHttpError = {
396
396
  data: ErrorResponse;
397
397
  headers: Headers;
398
- status: number;
398
+ status: 400;
399
399
  };
400
400
  /**
401
401
  * Delete the specified set of data files and/or folders as a single batch.
@@ -407,12 +407,12 @@ declare const deleteDataFiles: (body: DataFileBatchDeleteRequest, options?: ApiC
407
407
  type DeleteDataFilesHttpResponse = {
408
408
  data: MultiStatusResponse;
409
409
  headers: Headers;
410
- status: number;
410
+ status: 207;
411
411
  };
412
412
  type DeleteDataFilesHttpError = {
413
413
  data: ErrorResponse;
414
414
  headers: Headers;
415
- status: number;
415
+ status: 400;
416
416
  };
417
417
  /**
418
418
  * The non-filtered list contains a set of hardcoded connections, along with one connection per team space that
@@ -444,14 +444,14 @@ declare const getDataFilesConnections: (query: {
444
444
  type GetDataFilesConnectionsHttpResponse = {
445
445
  data: GetConnectionsResponse;
446
446
  headers: Headers;
447
- status: number;
447
+ status: 200;
448
448
  prev?: (options?: ApiCallOptions) => Promise<GetDataFilesConnectionsHttpResponse>;
449
449
  next?: (options?: ApiCallOptions) => Promise<GetDataFilesConnectionsHttpResponse>;
450
450
  };
451
451
  type GetDataFilesConnectionsHttpError = {
452
452
  data: ErrorResponse;
453
453
  headers: Headers;
454
- status: number;
454
+ status: 400 | 403;
455
455
  };
456
456
  /**
457
457
  * Get the built-in connection used by the engine to load/write data files given a connection ID.
@@ -463,12 +463,12 @@ declare const getDataFileConnection: (id: string, options?: ApiCallOptions) => P
463
463
  type GetDataFileConnectionHttpResponse = {
464
464
  data: ConnectionsResponse;
465
465
  headers: Headers;
466
- status: number;
466
+ status: 200;
467
467
  };
468
468
  type GetDataFileConnectionHttpError = {
469
469
  data: ErrorResponse;
470
470
  headers: Headers;
471
- status: number;
471
+ status: 403 | 404;
472
472
  };
473
473
  /**
474
474
  * Get quota information for the calling user.
@@ -479,12 +479,12 @@ declare const getDataFilesQuotas: (options?: ApiCallOptions) => Promise<GetDataF
479
479
  type GetDataFilesQuotasHttpResponse = {
480
480
  data: QuotaResponse;
481
481
  headers: Headers;
482
- status: number;
482
+ status: 200;
483
483
  };
484
484
  type GetDataFilesQuotasHttpError = {
485
485
  data: ErrorResponse;
486
486
  headers: Headers;
487
- status: number;
487
+ status: 400 | 403;
488
488
  };
489
489
  /**
490
490
  * Delete the specified data file or folder. Deleting a folder will also recursively delete all files and
@@ -497,12 +497,12 @@ declare const deleteDataFile: (id: string, options?: ApiCallOptions) => Promise<
497
497
  type DeleteDataFileHttpResponse = {
498
498
  data: void;
499
499
  headers: Headers;
500
- status: number;
500
+ status: 204;
501
501
  };
502
502
  type DeleteDataFileHttpError = {
503
503
  data: ErrorResponse;
504
504
  headers: Headers;
505
- status: number;
505
+ status: 400 | 403 | 404;
506
506
  };
507
507
  /**
508
508
  * Get descriptive info for the specified data file.
@@ -514,12 +514,12 @@ declare const getDataFile: (id: string, options?: ApiCallOptions) => Promise<Get
514
514
  type GetDataFileHttpResponse = {
515
515
  data: DataFileUploadResponse;
516
516
  headers: Headers;
517
- status: number;
517
+ status: 200;
518
518
  };
519
519
  type GetDataFileHttpError = {
520
520
  data: ErrorResponse;
521
521
  headers: Headers;
522
- status: number;
522
+ status: 400 | 403 | 404;
523
523
  };
524
524
  /**
525
525
  * Re-upload an existing data file or update an existing folder.
@@ -582,12 +582,12 @@ declare const reuploadDataFile: (id: string, body: {
582
582
  type ReuploadDataFileHttpResponse = {
583
583
  data: DataFileUploadResponse;
584
584
  headers: Headers;
585
- status: number;
585
+ status: 201;
586
586
  };
587
587
  type ReuploadDataFileHttpError = {
588
588
  data: ErrorResponse;
589
589
  headers: Headers;
590
- status: number;
590
+ status: 400 | 403 | 404 | 409 | 413 | 423;
591
591
  };
592
592
  /**
593
593
  * This is primarily an admin type of operation. In general, the owner of a data file or folder is implicitly
@@ -606,12 +606,12 @@ declare const changeDataFileOwner: (id: string, body: ChangeDataFileOwnerRequest
606
606
  type ChangeDataFileOwnerHttpResponse = {
607
607
  data: void;
608
608
  headers: Headers;
609
- status: number;
609
+ status: 204;
610
610
  };
611
611
  type ChangeDataFileOwnerHttpError = {
612
612
  data: ErrorResponse;
613
613
  headers: Headers;
614
- status: number;
614
+ status: 400 | 403 | 404 | 409 | 423;
615
615
  };
616
616
  /**
617
617
  * This is to allow for a separate admin type of operation that is more global in terms of access in cases
@@ -631,12 +631,12 @@ declare const moveDataFile: (id: string, body: ChangeDataFileSpaceRequest, optio
631
631
  type MoveDataFileHttpResponse = {
632
632
  data: void;
633
633
  headers: Headers;
634
- status: number;
634
+ status: 204;
635
635
  };
636
636
  type MoveDataFileHttpError = {
637
637
  data: ErrorResponse;
638
638
  headers: Headers;
639
- status: number;
639
+ status: 400 | 403 | 404 | 409 | 423;
640
640
  };
641
641
  /**
642
642
  * Clears the cache for data-files api requests.
package/data-files.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/AMO5NATA.js";
5
- import "./chunks/UV5COPU3.js";
4
+ } from "./chunks/WY7IOA3Q.js";
5
+ import "./chunks/V3TZ54UE.js";
6
6
  import "./chunks/2ZQ3ZX7F.js";
7
7
 
8
8
  // src/public/rest/data-files.ts
@@ -52,7 +52,7 @@ As an alternative to the methods above it is also possible to create an instance
52
52
  Example:
53
53
 
54
54
  ```ts
55
- import { createQlikApi } from "@qlik-trial/qmfe-api";
55
+ import { createQlikApi } from "@qlik/api";
56
56
 
57
57
  const api = createQlikApi({
58
58
  authType: "apikey"
package/extensions.d.ts CHANGED
@@ -104,7 +104,7 @@ declare const getExtensions: (options?: ApiCallOptions) => Promise<GetExtensions
104
104
  type GetExtensionsHttpResponse = {
105
105
  data: Extensions;
106
106
  headers: Headers;
107
- status: number;
107
+ status: 200;
108
108
  };
109
109
  type GetExtensionsHttpError = {
110
110
  data: unknown;
@@ -126,7 +126,7 @@ declare const uploadExtension: (body: {
126
126
  type UploadExtensionHttpResponse = {
127
127
  data: Extension;
128
128
  headers: Headers;
129
- status: number;
129
+ status: 201;
130
130
  };
131
131
  type UploadExtensionHttpError = {
132
132
  data: Error;
@@ -143,12 +143,12 @@ declare const deleteExtension: (id: string, options?: ApiCallOptions) => Promise
143
143
  type DeleteExtensionHttpResponse = {
144
144
  data: void;
145
145
  headers: Headers;
146
- status: number;
146
+ status: 204;
147
147
  };
148
148
  type DeleteExtensionHttpError = {
149
149
  data: Error;
150
150
  headers: Headers;
151
- status: number;
151
+ status: 403 | 404 | 410;
152
152
  };
153
153
  /**
154
154
  * Returns a specific extension matching either extension ID or extension name.
@@ -160,12 +160,12 @@ declare const getExtension: (id: string, options?: ApiCallOptions) => Promise<Ge
160
160
  type GetExtensionHttpResponse = {
161
161
  data: Extension;
162
162
  headers: Headers;
163
- status: number;
163
+ status: 200;
164
164
  };
165
165
  type GetExtensionHttpError = {
166
166
  data: Error;
167
167
  headers: Headers;
168
- status: number;
168
+ status: 403 | 404 | 410;
169
169
  };
170
170
  /**
171
171
  * Updates a specific extension matching either extension ID or extension name. Accepts either provided file or data object.
@@ -183,7 +183,7 @@ declare const patchExtension: (id: string, body: {
183
183
  type PatchExtensionHttpResponse = {
184
184
  data: Extension;
185
185
  headers: Headers;
186
- status: number;
186
+ status: 200;
187
187
  };
188
188
  type PatchExtensionHttpError = {
189
189
  data: Error;
@@ -200,12 +200,12 @@ declare const downloadExtension: (id: string, options?: ApiCallOptions) => Promi
200
200
  type DownloadExtensionHttpResponse = {
201
201
  data: void;
202
202
  headers: Headers;
203
- status: number;
203
+ status: 200;
204
204
  };
205
205
  type DownloadExtensionHttpError = {
206
206
  data: Error;
207
207
  headers: Headers;
208
- status: number;
208
+ status: 403 | 404 | 410;
209
209
  };
210
210
  /**
211
211
  * Downloads a specific file from the extension matching either extension ID or extension name, identified by the file path within the imported extension.
@@ -218,12 +218,12 @@ declare const downloadFileFromExtension: (id: string, filepath: string, options?
218
218
  type DownloadFileFromExtensionHttpResponse = {
219
219
  data: void;
220
220
  headers: Headers;
221
- status: number;
221
+ status: 200;
222
222
  };
223
223
  type DownloadFileFromExtensionHttpError = {
224
224
  data: Error;
225
225
  headers: Headers;
226
- status: number;
226
+ status: 403 | 404 | 410;
227
227
  };
228
228
  /**
229
229
  * Clears the cache for extensions api requests.
package/extensions.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/AMO5NATA.js";
5
- import "./chunks/UV5COPU3.js";
4
+ } from "./chunks/WY7IOA3Q.js";
5
+ import "./chunks/V3TZ54UE.js";
6
6
  import "./chunks/2ZQ3ZX7F.js";
7
7
 
8
8
  // src/public/rest/extensions.ts
package/glossaries.d.ts CHANGED
@@ -446,14 +446,14 @@ declare const getGlossaries: (query: {
446
446
  type GetGlossariesHttpResponse = {
447
447
  data: GlossariesResult;
448
448
  headers: Headers;
449
- status: number;
449
+ status: 200;
450
450
  prev?: (options?: ApiCallOptions) => Promise<GetGlossariesHttpResponse>;
451
451
  next?: (options?: ApiCallOptions) => Promise<GetGlossariesHttpResponse>;
452
452
  };
453
453
  type GetGlossariesHttpError = {
454
454
  data: ErrorResponse;
455
455
  headers: Headers;
456
- status: number;
456
+ status: 400 | 403;
457
457
  };
458
458
  /**
459
459
  * Creates a new glossary. Only a steward can create a glossary.
@@ -465,12 +465,12 @@ declare const createGlossary: (body: CreateGlossary, options?: ApiCallOptions) =
465
465
  type CreateGlossaryHttpResponse = {
466
466
  data: Glossary;
467
467
  headers: Headers;
468
- status: number;
468
+ status: 201;
469
469
  };
470
470
  type CreateGlossaryHttpError = {
471
471
  data: ErrorResponse;
472
472
  headers: Headers;
473
- status: number;
473
+ status: 400 | 403;
474
474
  };
475
475
  /**
476
476
  * Creates a new glossary, including categories and terms, based on a glossary definition file.
@@ -491,8 +491,9 @@ declare const importGlossary: (query: {
491
491
  type ImportGlossaryHttpResponse = {
492
492
  data: Glossary;
493
493
  headers: Headers;
494
- status: number;
494
+ status: 201;
495
495
  };
496
+ type ImportGlossaryHttpError = ImportGlossary400HttpError | ImportGlossary403HttpError | ImportGlossary404HttpError;
496
497
  type ImportGlossary400HttpError = {
497
498
  data: ErrorResponseBadRequest;
498
499
  headers: Headers;
@@ -508,7 +509,6 @@ type ImportGlossary404HttpError = {
508
509
  headers: Headers;
509
510
  status: 404;
510
511
  };
511
- type ImportGlossaryHttpError = ImportGlossary400HttpError | ImportGlossary403HttpError | ImportGlossary404HttpError;
512
512
  /**
513
513
  * Deletes a glossary and all of its terms.
514
514
  *
@@ -519,12 +519,12 @@ declare const deleteGlossary: (id: string, options?: ApiCallOptions) => Promise<
519
519
  type DeleteGlossaryHttpResponse = {
520
520
  data: void;
521
521
  headers: Headers;
522
- status: number;
522
+ status: 204;
523
523
  };
524
524
  type DeleteGlossaryHttpError = {
525
525
  data: ErrorResponse;
526
526
  headers: Headers;
527
- status: number;
527
+ status: 400 | 403 | 404;
528
528
  };
529
529
  /**
530
530
  * Retrieves a glossary.
@@ -536,12 +536,12 @@ declare const getGlossary: (id: string, options?: ApiCallOptions) => Promise<Get
536
536
  type GetGlossaryHttpResponse = {
537
537
  data: Glossary;
538
538
  headers: Headers;
539
- status: number;
539
+ status: 200;
540
540
  };
541
541
  type GetGlossaryHttpError = {
542
542
  data: ErrorResponse;
543
543
  headers: Headers;
544
- status: number;
544
+ status: 400 | 403 | 404;
545
545
  };
546
546
  /**
547
547
  * Updates glossary properties with json-patch formated data
@@ -554,12 +554,12 @@ declare const patchGlossary: (id: string, body: JSONPatchArray, options?: ApiCal
554
554
  type PatchGlossaryHttpResponse = {
555
555
  data: void;
556
556
  headers: Headers;
557
- status: number;
557
+ status: 204;
558
558
  };
559
559
  type PatchGlossaryHttpError = {
560
560
  data: ErrorResponse;
561
561
  headers: Headers;
562
- status: number;
562
+ status: 400 | 401 | 403 | 404 | 429;
563
563
  };
564
564
  /**
565
565
  * Updates a glossary.
@@ -572,12 +572,12 @@ declare const updateGlossary: (id: string, body: CreateGlossary, options?: ApiCa
572
572
  type UpdateGlossaryHttpResponse = {
573
573
  data: Glossary;
574
574
  headers: Headers;
575
- status: number;
575
+ status: 200;
576
576
  };
577
577
  type UpdateGlossaryHttpError = {
578
578
  data: ErrorResponse;
579
579
  headers: Headers;
580
- status: number;
580
+ status: 400 | 403 | 404;
581
581
  };
582
582
  /**
583
583
  * Exports a glossary.
@@ -589,12 +589,12 @@ declare const exportGlossary: (id: string, options?: ApiCallOptions) => Promise<
589
589
  type ExportGlossaryHttpResponse = {
590
590
  data: ExportGlossary;
591
591
  headers: Headers;
592
- status: number;
592
+ status: 200;
593
593
  };
594
594
  type ExportGlossaryHttpError = {
595
595
  data: ErrorResponse;
596
596
  headers: Headers;
597
- status: number;
597
+ status: 400 | 403 | 404;
598
598
  };
599
599
  /**
600
600
  * Returns a list of categories for a glossary.
@@ -618,14 +618,14 @@ declare const getGlossaryCategories: (id: string, query: {
618
618
  type GetGlossaryCategoriesHttpResponse = {
619
619
  data: CategoriesResult;
620
620
  headers: Headers;
621
- status: number;
621
+ status: 200;
622
622
  prev?: (options?: ApiCallOptions) => Promise<GetGlossaryCategoriesHttpResponse>;
623
623
  next?: (options?: ApiCallOptions) => Promise<GetGlossaryCategoriesHttpResponse>;
624
624
  };
625
625
  type GetGlossaryCategoriesHttpError = {
626
626
  data: ErrorResponse;
627
627
  headers: Headers;
628
- status: number;
628
+ status: 400 | 403 | 404;
629
629
  };
630
630
  /**
631
631
  * Creates a new category.
@@ -638,12 +638,12 @@ declare const createGlossaryCategory: (id: string, body: CreateCategory, options
638
638
  type CreateGlossaryCategoryHttpResponse = {
639
639
  data: Category;
640
640
  headers: Headers;
641
- status: number;
641
+ status: 201;
642
642
  };
643
643
  type CreateGlossaryCategoryHttpError = {
644
644
  data: ErrorResponse;
645
645
  headers: Headers;
646
- status: number;
646
+ status: 400 | 403 | 404;
647
647
  };
648
648
  /**
649
649
  * Deletes a category.
@@ -656,12 +656,12 @@ declare const deleteGlossaryCategory: (id: string, categoryId: string, options?:
656
656
  type DeleteGlossaryCategoryHttpResponse = {
657
657
  data: void;
658
658
  headers: Headers;
659
- status: number;
659
+ status: 204;
660
660
  };
661
661
  type DeleteGlossaryCategoryHttpError = {
662
662
  data: ErrorResponse;
663
663
  headers: Headers;
664
- status: number;
664
+ status: 400 | 403 | 404;
665
665
  };
666
666
  /**
667
667
  * Retrieves a category.
@@ -674,12 +674,12 @@ declare const getGlossaryCategory: (id: string, categoryId: string, options?: Ap
674
674
  type GetGlossaryCategoryHttpResponse = {
675
675
  data: Category;
676
676
  headers: Headers;
677
- status: number;
677
+ status: 200;
678
678
  };
679
679
  type GetGlossaryCategoryHttpError = {
680
680
  data: ErrorResponse;
681
681
  headers: Headers;
682
- status: number;
682
+ status: 400 | 403 | 404;
683
683
  };
684
684
  /**
685
685
  * Updates category properties with json-patch formated data
@@ -693,12 +693,12 @@ declare const patchGlossaryCategory: (id: string, categoryId: string, body: JSON
693
693
  type PatchGlossaryCategoryHttpResponse = {
694
694
  data: void;
695
695
  headers: Headers;
696
- status: number;
696
+ status: 204;
697
697
  };
698
698
  type PatchGlossaryCategoryHttpError = {
699
699
  data: ErrorResponse;
700
700
  headers: Headers;
701
- status: number;
701
+ status: 400 | 401 | 403 | 404 | 429;
702
702
  };
703
703
  /**
704
704
  * Updates a category.
@@ -712,12 +712,12 @@ declare const updateGlossaryCategory: (id: string, categoryId: string, body: Cre
712
712
  type UpdateGlossaryCategoryHttpResponse = {
713
713
  data: Category;
714
714
  headers: Headers;
715
- status: number;
715
+ status: 200;
716
716
  };
717
717
  type UpdateGlossaryCategoryHttpError = {
718
718
  data: ErrorResponse;
719
719
  headers: Headers;
720
- status: number;
720
+ status: 400 | 403 | 404;
721
721
  };
722
722
  /**
723
723
  * Returns a list of terms for a glossary.
@@ -754,14 +754,14 @@ declare const getGlossaryTerms: (id: string, query: {
754
754
  type GetGlossaryTermsHttpResponse = {
755
755
  data: TermsResult;
756
756
  headers: Headers;
757
- status: number;
757
+ status: 200;
758
758
  prev?: (options?: ApiCallOptions) => Promise<GetGlossaryTermsHttpResponse>;
759
759
  next?: (options?: ApiCallOptions) => Promise<GetGlossaryTermsHttpResponse>;
760
760
  };
761
761
  type GetGlossaryTermsHttpError = {
762
762
  data: ErrorResponse;
763
763
  headers: Headers;
764
- status: number;
764
+ status: 400 | 403 | 404;
765
765
  };
766
766
  /**
767
767
  * Creates a new term.
@@ -774,12 +774,12 @@ declare const createGlossaryTerm: (id: string, body: CreateTerm, options?: ApiCa
774
774
  type CreateGlossaryTermHttpResponse = {
775
775
  data: Term;
776
776
  headers: Headers;
777
- status: number;
777
+ status: 201;
778
778
  };
779
779
  type CreateGlossaryTermHttpError = {
780
780
  data: ErrorResponse;
781
781
  headers: Headers;
782
- status: number;
782
+ status: 400 | 403 | 404;
783
783
  };
784
784
  /**
785
785
  * Deletes a term.
@@ -792,12 +792,12 @@ declare const deleteGlossaryTerm: (id: string, termId: string, options?: ApiCall
792
792
  type DeleteGlossaryTermHttpResponse = {
793
793
  data: void;
794
794
  headers: Headers;
795
- status: number;
795
+ status: 204;
796
796
  };
797
797
  type DeleteGlossaryTermHttpError = {
798
798
  data: ErrorResponse;
799
799
  headers: Headers;
800
- status: number;
800
+ status: 400 | 403 | 404;
801
801
  };
802
802
  /**
803
803
  * Retrieves a term.
@@ -810,12 +810,12 @@ declare const getGlossaryTerm: (id: string, termId: string, options?: ApiCallOpt
810
810
  type GetGlossaryTermHttpResponse = {
811
811
  data: Term;
812
812
  headers: Headers;
813
- status: number;
813
+ status: 200;
814
814
  };
815
815
  type GetGlossaryTermHttpError = {
816
816
  data: ErrorResponse;
817
817
  headers: Headers;
818
- status: number;
818
+ status: 400 | 403 | 404;
819
819
  };
820
820
  /**
821
821
  * Updates term properties with json-patch formated data
@@ -829,12 +829,12 @@ declare const patchGlossaryTerm: (id: string, termId: string, body: JSONPatchArr
829
829
  type PatchGlossaryTermHttpResponse = {
830
830
  data: void;
831
831
  headers: Headers;
832
- status: number;
832
+ status: 204;
833
833
  };
834
834
  type PatchGlossaryTermHttpError = {
835
835
  data: ErrorResponse;
836
836
  headers: Headers;
837
- status: number;
837
+ status: 400 | 401 | 403 | 404 | 412 | 429;
838
838
  };
839
839
  /**
840
840
  * Updates a term.
@@ -848,12 +848,12 @@ declare const updateGlossaryTerm: (id: string, termId: string, body: CreateTerm,
848
848
  type UpdateGlossaryTermHttpResponse = {
849
849
  data: Term;
850
850
  headers: Headers;
851
- status: number;
851
+ status: 200;
852
852
  };
853
853
  type UpdateGlossaryTermHttpError = {
854
854
  data: ErrorResponse;
855
855
  headers: Headers;
856
- status: number;
856
+ status: 400 | 403 | 404 | 412;
857
857
  };
858
858
  /**
859
859
  * Changes the status of the term. Only a steward can verify a term. Once the term is verified only a steward can modify the term.
@@ -870,12 +870,12 @@ declare const changeGlossaryTermStatus: (id: string, termId: string, query: {
870
870
  type ChangeGlossaryTermStatusHttpResponse = {
871
871
  data: Term;
872
872
  headers: Headers;
873
- status: number;
873
+ status: 200;
874
874
  };
875
875
  type ChangeGlossaryTermStatusHttpError = {
876
876
  data: ErrorResponse;
877
877
  headers: Headers;
878
- status: number;
878
+ status: 400 | 403 | 404 | 412;
879
879
  };
880
880
  /**
881
881
  * Returns a list of links assigned to a term.
@@ -902,14 +902,14 @@ declare const getGlossaryTermLinks: (id: string, termId: string, query: {
902
902
  type GetGlossaryTermLinksHttpResponse = {
903
903
  data: LinksResult;
904
904
  headers: Headers;
905
- status: number;
905
+ status: 200;
906
906
  prev?: (options?: ApiCallOptions) => Promise<GetGlossaryTermLinksHttpResponse>;
907
907
  next?: (options?: ApiCallOptions) => Promise<GetGlossaryTermLinksHttpResponse>;
908
908
  };
909
909
  type GetGlossaryTermLinksHttpError = {
910
910
  data: ErrorResponse;
911
911
  headers: Headers;
912
- status: number;
912
+ status: 400 | 403 | 404;
913
913
  };
914
914
  /**
915
915
  * Creates a new link to a term.
@@ -923,12 +923,12 @@ declare const createGlossaryTermLink: (id: string, termId: string, body: TermCre
923
923
  type CreateGlossaryTermLinkHttpResponse = {
924
924
  data: TermLinksTo;
925
925
  headers: Headers;
926
- status: number;
926
+ status: 201;
927
927
  };
928
928
  type CreateGlossaryTermLinkHttpError = {
929
929
  data: ErrorResponse;
930
930
  headers: Headers;
931
- status: number;
931
+ status: 400 | 403 | 404 | 412;
932
932
  };
933
933
  /**
934
934
  * Retrieves previous revisions of a term.
@@ -953,14 +953,14 @@ declare const getGlossaryTermRevisions: (id: string, termId: string, query: {
953
953
  type GetGlossaryTermRevisionsHttpResponse = {
954
954
  data: TermsResult;
955
955
  headers: Headers;
956
- status: number;
956
+ status: 200;
957
957
  prev?: (options?: ApiCallOptions) => Promise<GetGlossaryTermRevisionsHttpResponse>;
958
958
  next?: (options?: ApiCallOptions) => Promise<GetGlossaryTermRevisionsHttpResponse>;
959
959
  };
960
960
  type GetGlossaryTermRevisionsHttpError = {
961
961
  data: ErrorResponse;
962
962
  headers: Headers;
963
- status: number;
963
+ status: 400 | 403 | 404;
964
964
  };
965
965
  /**
966
966
  * Clears the cache for glossaries api requests.
package/glossaries.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/AMO5NATA.js";
5
- import "./chunks/UV5COPU3.js";
4
+ } from "./chunks/WY7IOA3Q.js";
5
+ import "./chunks/V3TZ54UE.js";
6
6
  import "./chunks/2ZQ3ZX7F.js";
7
7
 
8
8
  // src/public/rest/glossaries.ts