@qlik/api 0.0.16 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/README.md +1 -1
  2. package/api-keys.js +25 -25
  3. package/apps.d.ts +9 -1
  4. package/apps.js +97 -97
  5. package/audits.js +23 -23
  6. package/auth.js +14 -14
  7. package/automations.js +47 -47
  8. package/brands.js +35 -35
  9. package/chunks/4HB3TAEO.js +4 -4
  10. package/chunks/{HHOVS7QC.mjs → CHNBNLXY.js} +3 -3
  11. package/chunks/{3YV6X7S6.mjs → FFGE2RP7.js} +1 -1
  12. package/chunks/{HOCTJESP.mjs → JEGN7XQV.js} +3 -3
  13. package/chunks/{6WX5AGKQ.mjs → L2BJNKLV.js} +2 -2
  14. package/chunks/OPRGGO4C.js +8 -8
  15. package/chunks/{O4EAKEIN.mjs → RHF624NQ.js} +1 -1
  16. package/chunks/{BYD63JCG.mjs → SIU6HO6B.js} +5 -3
  17. package/chunks/{EHAANYDL.mjs → TT66UJZY.js} +3 -3
  18. package/chunks/{UKVTBYP6.mjs → XOVMZWDC.js} +2 -2
  19. package/chunks/{6AD3HYSF.mjs → XZQNE4HH.js} +1 -1
  20. package/collections.js +33 -33
  21. package/csp-origins.js +23 -23
  22. package/data-assets.js +21 -21
  23. package/data-connections.js +29 -29
  24. package/data-credentials.js +19 -19
  25. package/data-files.js +35 -35
  26. package/docs/authentication.md +5 -5
  27. package/docs/examples/fetch-spaces.md +1 -15
  28. package/docs/examples/show-sheet-list.md +1 -1
  29. package/docs/features.md +1 -1
  30. package/extensions.js +25 -25
  31. package/glossaries.js +59 -59
  32. package/groups.d.ts +0 -3
  33. package/groups.js +27 -27
  34. package/identity-providers.d.ts +144 -10
  35. package/identity-providers.js +27 -27
  36. package/index.js +53 -53
  37. package/items.js +27 -27
  38. package/licenses.js +29 -29
  39. package/package.json +36 -232
  40. package/qix.d.ts +1 -1
  41. package/qix.js +10 -10
  42. package/quotas.js +15 -15
  43. package/reload-tasks.js +21 -21
  44. package/reloads.js +19 -19
  45. package/roles.js +15 -15
  46. package/spaces.js +35 -35
  47. package/temp-contents.js +17 -17
  48. package/tenants.js +23 -23
  49. package/themes.js +25 -25
  50. package/transports.js +23 -23
  51. package/users.d.ts +1 -3
  52. package/users.js +31 -31
  53. package/web-integrations.js +21 -21
  54. package/web-notifications.js +23 -23
  55. package/webhooks.js +31 -31
  56. package/api-keys.d.mts +0 -336
  57. package/api-keys.mjs +0 -80
  58. package/apps.d.mts +0 -2431
  59. package/apps.mjs +0 -398
  60. package/audits.d.mts +0 -286
  61. package/audits.mjs +0 -64
  62. package/auth-types-nnUcWhuU.d.mts +0 -98
  63. package/auth.d.mts +0 -26
  64. package/auth.mjs +0 -14
  65. package/automations.d.mts +0 -682
  66. package/automations.mjs +0 -173
  67. package/brands.d.mts +0 -670
  68. package/brands.mjs +0 -123
  69. package/chunks/2YWCEGTS.js +0 -21
  70. package/chunks/34ZKUFEA.js +0 -41
  71. package/chunks/4WHZ4EIW.js +0 -57
  72. package/chunks/B4VPD3ZT.js +0 -574
  73. package/chunks/BM4OSDRZ.js +0 -17
  74. package/chunks/DCXUEDOW.mjs +0 -67
  75. package/chunks/MTAQE4WC.js +0 -10411
  76. package/chunks/PLOSYUG2.js +0 -25
  77. package/chunks/URIW2U5M.js +0 -17
  78. package/chunks/VSY5YIQY.mjs +0 -11
  79. package/chunks/WOYJLK4Y.js +0 -1623
  80. package/collections.d.mts +0 -581
  81. package/collections.mjs +0 -114
  82. package/csp-origins.d.mts +0 -273
  83. package/csp-origins.mjs +0 -69
  84. package/data-assets.d.mts +0 -205
  85. package/data-assets.mjs +0 -66
  86. package/data-connections.d.mts +0 -594
  87. package/data-connections.mjs +0 -103
  88. package/data-credentials.d.mts +0 -204
  89. package/data-credentials.mjs +0 -59
  90. package/data-files.d.mts +0 -562
  91. package/data-files.mjs +0 -123
  92. package/extensions.d.mts +0 -293
  93. package/extensions.mjs +0 -77
  94. package/global.types-5iFvFJvX.d.mts +0 -115
  95. package/glossaries.d.mts +0 -1173
  96. package/glossaries.mjs +0 -237
  97. package/groups.d.mts +0 -434
  98. package/groups.mjs +0 -88
  99. package/identity-providers.d.mts +0 -550
  100. package/identity-providers.mjs +0 -83
  101. package/index.d.mts +0 -142
  102. package/index.mjs +0 -716
  103. package/items.d.mts +0 -535
  104. package/items.mjs +0 -87
  105. package/licenses.d.mts +0 -459
  106. package/licenses.mjs +0 -92
  107. package/qix.d.mts +0 -11629
  108. package/qix.mjs +0 -10
  109. package/quotas.d.mts +0 -112
  110. package/quotas.mjs +0 -32
  111. package/reload-tasks.d.mts +0 -227
  112. package/reload-tasks.mjs +0 -62
  113. package/reloads.d.mts +0 -207
  114. package/reloads.mjs +0 -46
  115. package/roles.d.mts +0 -175
  116. package/roles.mjs +0 -31
  117. package/spaces.d.mts +0 -562
  118. package/spaces.mjs +0 -124
  119. package/temp-contents.d.mts +0 -167
  120. package/temp-contents.mjs +0 -41
  121. package/tenants.d.mts +0 -300
  122. package/tenants.mjs +0 -73
  123. package/themes.d.mts +0 -268
  124. package/themes.mjs +0 -77
  125. package/transports.d.mts +0 -319
  126. package/transports.mjs +0 -65
  127. package/users.d.mts +0 -631
  128. package/users.mjs +0 -104
  129. package/web-integrations.d.mts +0 -274
  130. package/web-integrations.mjs +0 -62
  131. package/web-notifications.d.mts +0 -250
  132. package/web-notifications.mjs +0 -69
  133. package/webhooks.d.mts +0 -445
  134. package/webhooks.mjs +0 -104
package/data-files.js CHANGED
@@ -1,68 +1,68 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
- var _URIW2U5Mjs = require('./chunks/URIW2U5M.js');
5
- require('./chunks/2YWCEGTS.js');
6
- require('./chunks/4HB3TAEO.js');
1
+ import {
2
+ clearApiCache,
3
+ invokeFetch
4
+ } from "./chunks/FFGE2RP7.js";
5
+ import "./chunks/TT66UJZY.js";
6
+ import "./chunks/4HB3TAEO.js";
7
7
 
8
8
  // src/public/rest/data-files.ts
9
- var getDataFiles = async (query, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "data-files", {
9
+ var getDataFiles = async (query, options) => invokeFetch("data-files", {
10
10
  method: "get",
11
11
  pathTemplate: "/api/v1/data-files",
12
12
  query,
13
13
  options
14
14
  });
15
- var uploadDataFile = async (body, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "data-files", {
15
+ var uploadDataFile = async (body, options) => invokeFetch("data-files", {
16
16
  method: "post",
17
17
  pathTemplate: "/api/v1/data-files",
18
18
  body,
19
19
  contentType: "multipart/form-data",
20
20
  options
21
21
  });
22
- var moveDataFiles = async (body, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "data-files", {
22
+ var moveDataFiles = async (body, options) => invokeFetch("data-files", {
23
23
  method: "post",
24
24
  pathTemplate: "/api/v1/data-files/actions/change-space",
25
25
  body,
26
26
  contentType: "application/json",
27
27
  options
28
28
  });
29
- var deleteDataFiles = async (body, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "data-files", {
29
+ var deleteDataFiles = async (body, options) => invokeFetch("data-files", {
30
30
  method: "post",
31
31
  pathTemplate: "/api/v1/data-files/actions/delete",
32
32
  body,
33
33
  contentType: "application/json",
34
34
  options
35
35
  });
36
- var getDataFilesConnections = async (query, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "data-files", {
36
+ var getDataFilesConnections = async (query, options) => invokeFetch("data-files", {
37
37
  method: "get",
38
38
  pathTemplate: "/api/v1/data-files/connections",
39
39
  query,
40
40
  options
41
41
  });
42
- var getDataFileConnection = async (id, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "data-files", {
42
+ var getDataFileConnection = async (id, options) => invokeFetch("data-files", {
43
43
  method: "get",
44
44
  pathTemplate: "/api/v1/data-files/connections/{id}",
45
45
  pathVariables: { id },
46
46
  options
47
47
  });
48
- var getDataFilesQuotas = async (options) => _URIW2U5Mjs.invokeFetch.call(void 0, "data-files", {
48
+ var getDataFilesQuotas = async (options) => invokeFetch("data-files", {
49
49
  method: "get",
50
50
  pathTemplate: "/api/v1/data-files/quotas",
51
51
  options
52
52
  });
53
- var deleteDataFile = async (id, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "data-files", {
53
+ var deleteDataFile = async (id, options) => invokeFetch("data-files", {
54
54
  method: "delete",
55
55
  pathTemplate: "/api/v1/data-files/{id}",
56
56
  pathVariables: { id },
57
57
  options
58
58
  });
59
- var getDataFile = async (id, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "data-files", {
59
+ var getDataFile = async (id, options) => invokeFetch("data-files", {
60
60
  method: "get",
61
61
  pathTemplate: "/api/v1/data-files/{id}",
62
62
  pathVariables: { id },
63
63
  options
64
64
  });
65
- var reuploadDataFile = async (id, body, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "data-files", {
65
+ var reuploadDataFile = async (id, body, options) => invokeFetch("data-files", {
66
66
  method: "put",
67
67
  pathTemplate: "/api/v1/data-files/{id}",
68
68
  pathVariables: { id },
@@ -70,7 +70,7 @@ var reuploadDataFile = async (id, body, options) => _URIW2U5Mjs.invokeFetch.call
70
70
  contentType: "multipart/form-data",
71
71
  options
72
72
  });
73
- var changeDataFileOwner = async (id, body, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "data-files", {
73
+ var changeDataFileOwner = async (id, body, options) => invokeFetch("data-files", {
74
74
  method: "post",
75
75
  pathTemplate: "/api/v1/data-files/{id}/actions/change-owner",
76
76
  pathVariables: { id },
@@ -78,7 +78,7 @@ var changeDataFileOwner = async (id, body, options) => _URIW2U5Mjs.invokeFetch.c
78
78
  contentType: "application/json",
79
79
  options
80
80
  });
81
- var moveDataFile = async (id, body, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "data-files", {
81
+ var moveDataFile = async (id, body, options) => invokeFetch("data-files", {
82
82
  method: "post",
83
83
  pathTemplate: "/api/v1/data-files/{id}/actions/change-space",
84
84
  pathVariables: { id },
@@ -87,7 +87,7 @@ var moveDataFile = async (id, body, options) => _URIW2U5Mjs.invokeFetch.call(voi
87
87
  options
88
88
  });
89
89
  function clearCache() {
90
- return _URIW2U5Mjs.clearApiCache.call(void 0, "data-files");
90
+ return clearApiCache("data-files");
91
91
  }
92
92
  var dataFilesExport = {
93
93
  getDataFiles,
@@ -105,19 +105,19 @@ var dataFilesExport = {
105
105
  clearCache
106
106
  };
107
107
  var data_files_default = dataFilesExport;
108
-
109
-
110
-
111
-
112
-
113
-
114
-
115
-
116
-
117
-
118
-
119
-
120
-
121
-
122
-
123
- exports.changeDataFileOwner = changeDataFileOwner; exports.clearCache = clearCache; exports.default = data_files_default; exports.deleteDataFile = deleteDataFile; exports.deleteDataFiles = deleteDataFiles; exports.getDataFile = getDataFile; exports.getDataFileConnection = getDataFileConnection; exports.getDataFiles = getDataFiles; exports.getDataFilesConnections = getDataFilesConnections; exports.getDataFilesQuotas = getDataFilesQuotas; exports.moveDataFile = moveDataFile; exports.moveDataFiles = moveDataFiles; exports.reuploadDataFile = reuploadDataFile; exports.uploadDataFile = uploadDataFile;
108
+ export {
109
+ changeDataFileOwner,
110
+ clearCache,
111
+ data_files_default as default,
112
+ deleteDataFile,
113
+ deleteDataFiles,
114
+ getDataFile,
115
+ getDataFileConnection,
116
+ getDataFiles,
117
+ getDataFilesConnections,
118
+ getDataFilesQuotas,
119
+ moveDataFile,
120
+ moveDataFiles,
121
+ reuploadDataFile,
122
+ uploadDataFile
123
+ };
@@ -2,7 +2,7 @@
2
2
 
3
3
  ◁ [Back to overview](../README.md)
4
4
 
5
- When integrating a 3rd-party solution with Qlik Cloud Services users always have to authenticate with Qlik's backend services to interact with them. Authentication with `@qlik/api` works seamlessly and uses the same authentication mechanisms as those in the `@qlik/embed` libraries. The general idea is to provide a capable yet simple-to-use authentication api that works out of the box for most users. There are a few authentication options so that users can use what suits them best.
5
+ When integrating a third-party solution with Qlik Cloud Services users always have to authenticate with Qlik's backend services to interact with them. Authentication with `@qlik/api` works seamlessly and uses the same authentication mechanisms as those in the `@qlik/embed` libraries. The general idea is to provide a capable yet simple-to-use authentication api that works out of the box for most users. There are a few authentication options so that users can use what suits them best.
6
6
 
7
7
  ## The Host Config
8
8
 
@@ -95,7 +95,7 @@ const authModule = {
95
95
 
96
96
  ### Oauth2
97
97
 
98
- Uses a `clientId` from an oauth client created by a Qlik tenant admin. And optionally a `clientSecret`. A user will go through a login flow in order to get hold of an access token that is valid for 6 hours. This token will be used as query parameters for api requests. If a `clientSecret` is used a refresh token will also be received. This can be used to refresh the access token and is valid for 30 days. The user can select where these tokens should be stored (only in a browser). Either in local storate or session storage (default).
98
+ Uses a `clientId` from an oauth client created by a Qlik tenant administrator. And optionally a `clientSecret`. A user will go through a login flow to get hold of an access token that is valid for 6 hours. This token will be used as query parameters for api requests. If a `clientSecret` is used a refresh token will also be received. This can be used to refresh the access token and is valid for 30 days. The user can select where these tokens should be stored (only in a browser). Either in local storage or session storage (default).
99
99
 
100
100
  ```ts
101
101
  type Oauth2AuthConfig = {
@@ -114,7 +114,7 @@ type Oauth2AuthConfig = {
114
114
  };
115
115
  ```
116
116
 
117
- When using OAuth2 in a browser we recommend setting up a "redirect page" which is handy to use for pointing the redirection of an oauth login flow when fetching the access tokens. An oauth server will ask the client to redirect back to the hosting application after login is completed. In a single page application context this can potentially be any URL, so we recommend using this html template and use it for redirections.
117
+ When using OAuth2 in a browser it is recommended to set up a "redirect page" which is handy to use for pointing the redirection of an oauth login flow when fetching the access tokens. An oauth server will ask the client to redirect back to the hosting application after login is completed. In a single page application context this can potentially be any URL, so use this html template and use it for redirections.
118
118
 
119
119
  ```html
120
120
  <!doctype html>
@@ -133,7 +133,7 @@ When using OAuth2 in a browser we recommend setting up a "redirect page" which i
133
133
 
134
134
  ### Cookie
135
135
 
136
- Uses a `webIntegrationId` created by a tenant admin. Will get the a CSRF token and append to api calls when necessary. To use this method in an integration scenario it is required that 3d party cookies are allowed.
136
+ Uses a `webIntegrationId` created by a tenant administrator. Will get the a CSRF token and append to api calls when necessary. To use this method in an integration scenario it is required that third-party cookies are allowed.
137
137
 
138
138
  ```ts
139
139
  type CookieAuthConfig = {
@@ -148,7 +148,7 @@ type CookieAuthConfig = {
148
148
 
149
149
  ### Windows Cookie
150
150
 
151
- Will do the necessary actions in order to communication with a Qlik Sense Enterprise for Windows server. This includes fetching an XrfKey from the Qlik Sense Server Repository Service. To use this method in an integration scenario it is required that 3d party cookies are allowed.
151
+ Will do the necessary actions to communicate with a Qlik Sense Enterprise for Windows server. This includes fetching an XrfKey from the Qlik Sense Server Repository Service. To use this method in an integration scenario it is required that third-party cookies are allowed.
152
152
 
153
153
  ```ts
154
154
  type WindowsCookieAuthConfig = {
@@ -25,16 +25,8 @@ async function main() {
25
25
  await main();
26
26
  ```
27
27
 
28
- Run the code with
29
-
30
- ```shell
31
- node fetch-spaces.mjs
32
- ```
33
-
34
28
  ## NodeJS using Oauth2
35
29
 
36
- Create a file `fetch-spaces.mjs` and add the following:
37
-
38
30
  ```typescript
39
31
  import { auth, spaces } from "@qlik/api";
40
32
 
@@ -55,12 +47,6 @@ async function main() {
55
47
  await main();
56
48
  ```
57
49
 
58
- Run the code with
59
-
60
- ```shell
61
- node fetch-spaces.mjs
62
- ```
63
-
64
50
  ## Browser using cookies
65
51
 
66
52
  When using a browser you can load the library files from a CDN provider. It is also possible to use npm and a bundler to get the code into your application. In the html below we are making an api call to fetch the spaces from a tenant and we add the names of the spaces as div elements in the dom.
@@ -77,7 +63,7 @@ When using a browser you can load the library files from a CDN provider. It is a
77
63
  <!-- Spaces will be addeed here -->
78
64
  </div>
79
65
  <script type="module">
80
- import { auth, spaces } from "https://cdn.jsdelivr.net/npm/@qlik/api/index.mjs";
66
+ import { auth, spaces } from "https://cdn.jsdelivr.net/npm/@qlik/api/index.js";
81
67
 
82
68
  auth.setDefaultHostConfig({
83
69
  host: "your-tenant.region.qlikcloud.com",
@@ -52,7 +52,7 @@ When using a browser you can load the library files from a CDN provider. It is a
52
52
  <!-- Sheets will be addeed here -->
53
53
  </div>
54
54
  <script type="module">
55
- import { auth, qix } from "https://cdn.jsdelivr.net/npm/@qlik/api/index.mjs";
55
+ import { auth, qix } from "https://cdn.jsdelivr.net/npm/@qlik/api/index.js";
56
56
  auth.setDefaultHostConfig({
57
57
  host: "your-tenant.region.qlikcloud.com",
58
58
  authType: "cookie",
package/docs/features.md CHANGED
@@ -9,7 +9,7 @@
9
9
 
10
10
  ## Typed API Calls
11
11
 
12
- Each API comes with full typescript support which will greatly help the developer experience. Use the types to understand how the API works by going into the type definition. In most editors (e.g. vscode) you can CMD+click (mac) or CTRL+click (windows) on an api-call to see the type definition of parameters, return structures etc etc.
12
+ Each API comes with full typescript support which will greatly help the developer experience. Use the types to understand how the API works by going into the type definition. In most editors (for example vscode) you can CMD+click (mac) or CTRL+click (windows) on an api-call to see the type definition of parameters, return structures etc etc.
13
13
 
14
14
  ## Caching
15
15
 
package/extensions.js CHANGED
@@ -1,36 +1,36 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
- var _URIW2U5Mjs = require('./chunks/URIW2U5M.js');
5
- require('./chunks/2YWCEGTS.js');
6
- require('./chunks/4HB3TAEO.js');
1
+ import {
2
+ clearApiCache,
3
+ invokeFetch
4
+ } from "./chunks/FFGE2RP7.js";
5
+ import "./chunks/TT66UJZY.js";
6
+ import "./chunks/4HB3TAEO.js";
7
7
 
8
8
  // src/public/rest/extensions.ts
9
- var getExtensions = async (options) => _URIW2U5Mjs.invokeFetch.call(void 0, "extensions", {
9
+ var getExtensions = async (options) => invokeFetch("extensions", {
10
10
  method: "get",
11
11
  pathTemplate: "/api/v1/extensions",
12
12
  options
13
13
  });
14
- var uploadExtension = async (body, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "extensions", {
14
+ var uploadExtension = async (body, options) => invokeFetch("extensions", {
15
15
  method: "post",
16
16
  pathTemplate: "/api/v1/extensions",
17
17
  body,
18
18
  contentType: "multipart/form-data",
19
19
  options
20
20
  });
21
- var deleteExtension = async (id, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "extensions", {
21
+ var deleteExtension = async (id, options) => invokeFetch("extensions", {
22
22
  method: "delete",
23
23
  pathTemplate: "/api/v1/extensions/{id}",
24
24
  pathVariables: { id },
25
25
  options
26
26
  });
27
- var getExtension = async (id, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "extensions", {
27
+ var getExtension = async (id, options) => invokeFetch("extensions", {
28
28
  method: "get",
29
29
  pathTemplate: "/api/v1/extensions/{id}",
30
30
  pathVariables: { id },
31
31
  options
32
32
  });
33
- var patchExtension = async (id, body, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "extensions", {
33
+ var patchExtension = async (id, body, options) => invokeFetch("extensions", {
34
34
  method: "patch",
35
35
  pathTemplate: "/api/v1/extensions/{id}",
36
36
  pathVariables: { id },
@@ -38,20 +38,20 @@ var patchExtension = async (id, body, options) => _URIW2U5Mjs.invokeFetch.call(v
38
38
  contentType: "multipart/form-data",
39
39
  options
40
40
  });
41
- var downloadExtension = async (id, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "extensions", {
41
+ var downloadExtension = async (id, options) => invokeFetch("extensions", {
42
42
  method: "get",
43
43
  pathTemplate: "/api/v1/extensions/{id}/file",
44
44
  pathVariables: { id },
45
45
  options
46
46
  });
47
- var downloadFileFromExtension = async (id, filepath, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "extensions", {
47
+ var downloadFileFromExtension = async (id, filepath, options) => invokeFetch("extensions", {
48
48
  method: "get",
49
49
  pathTemplate: "/api/v1/extensions/{id}/file/{filepath}",
50
50
  pathVariables: { id, filepath },
51
51
  options
52
52
  });
53
53
  function clearCache() {
54
- return _URIW2U5Mjs.clearApiCache.call(void 0, "extensions");
54
+ return clearApiCache("extensions");
55
55
  }
56
56
  var extensionsExport = {
57
57
  getExtensions,
@@ -64,14 +64,14 @@ var extensionsExport = {
64
64
  clearCache
65
65
  };
66
66
  var extensions_default = extensionsExport;
67
-
68
-
69
-
70
-
71
-
72
-
73
-
74
-
75
-
76
-
77
- exports.clearCache = clearCache; exports.default = extensions_default; exports.deleteExtension = deleteExtension; exports.downloadExtension = downloadExtension; exports.downloadFileFromExtension = downloadFileFromExtension; exports.getExtension = getExtension; exports.getExtensions = getExtensions; exports.patchExtension = patchExtension; exports.uploadExtension = uploadExtension;
67
+ export {
68
+ clearCache,
69
+ extensions_default as default,
70
+ deleteExtension,
71
+ downloadExtension,
72
+ downloadFileFromExtension,
73
+ getExtension,
74
+ getExtensions,
75
+ patchExtension,
76
+ uploadExtension
77
+ };
package/glossaries.js CHANGED
@@ -1,25 +1,25 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
- var _URIW2U5Mjs = require('./chunks/URIW2U5M.js');
5
- require('./chunks/2YWCEGTS.js');
6
- require('./chunks/4HB3TAEO.js');
1
+ import {
2
+ clearApiCache,
3
+ invokeFetch
4
+ } from "./chunks/FFGE2RP7.js";
5
+ import "./chunks/TT66UJZY.js";
6
+ import "./chunks/4HB3TAEO.js";
7
7
 
8
8
  // src/public/rest/glossaries.ts
9
- var getGlossaries = async (query, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "glossaries", {
9
+ var getGlossaries = async (query, options) => invokeFetch("glossaries", {
10
10
  method: "get",
11
11
  pathTemplate: "/api/v1/glossaries",
12
12
  query,
13
13
  options
14
14
  });
15
- var createGlossary = async (body, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "glossaries", {
15
+ var createGlossary = async (body, options) => invokeFetch("glossaries", {
16
16
  method: "post",
17
17
  pathTemplate: "/api/v1/glossaries",
18
18
  body,
19
19
  contentType: "application/json",
20
20
  options
21
21
  });
22
- var importGlossary = async (query, body, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "glossaries", {
22
+ var importGlossary = async (query, body, options) => invokeFetch("glossaries", {
23
23
  method: "post",
24
24
  pathTemplate: "/api/v1/glossaries/actions/import",
25
25
  query,
@@ -27,19 +27,19 @@ var importGlossary = async (query, body, options) => _URIW2U5Mjs.invokeFetch.cal
27
27
  contentType: "application/json",
28
28
  options
29
29
  });
30
- var deleteGlossary = async (id, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "glossaries", {
30
+ var deleteGlossary = async (id, options) => invokeFetch("glossaries", {
31
31
  method: "delete",
32
32
  pathTemplate: "/api/v1/glossaries/{id}",
33
33
  pathVariables: { id },
34
34
  options
35
35
  });
36
- var getGlossary = async (id, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "glossaries", {
36
+ var getGlossary = async (id, options) => invokeFetch("glossaries", {
37
37
  method: "get",
38
38
  pathTemplate: "/api/v1/glossaries/{id}",
39
39
  pathVariables: { id },
40
40
  options
41
41
  });
42
- var patchGlossary = async (id, body, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "glossaries", {
42
+ var patchGlossary = async (id, body, options) => invokeFetch("glossaries", {
43
43
  method: "patch",
44
44
  pathTemplate: "/api/v1/glossaries/{id}",
45
45
  pathVariables: { id },
@@ -47,7 +47,7 @@ var patchGlossary = async (id, body, options) => _URIW2U5Mjs.invokeFetch.call(vo
47
47
  contentType: "application/json",
48
48
  options
49
49
  });
50
- var updateGlossary = async (id, body, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "glossaries", {
50
+ var updateGlossary = async (id, body, options) => invokeFetch("glossaries", {
51
51
  method: "put",
52
52
  pathTemplate: "/api/v1/glossaries/{id}",
53
53
  pathVariables: { id },
@@ -55,20 +55,20 @@ var updateGlossary = async (id, body, options) => _URIW2U5Mjs.invokeFetch.call(v
55
55
  contentType: "application/json",
56
56
  options
57
57
  });
58
- var exportGlossary = async (id, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "glossaries", {
58
+ var exportGlossary = async (id, options) => invokeFetch("glossaries", {
59
59
  method: "get",
60
60
  pathTemplate: "/api/v1/glossaries/{id}/actions/export",
61
61
  pathVariables: { id },
62
62
  options
63
63
  });
64
- var getGlossaryCategories = async (id, query, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "glossaries", {
64
+ var getGlossaryCategories = async (id, query, options) => invokeFetch("glossaries", {
65
65
  method: "get",
66
66
  pathTemplate: "/api/v1/glossaries/{id}/categories",
67
67
  pathVariables: { id },
68
68
  query,
69
69
  options
70
70
  });
71
- var createGlossaryCategory = async (id, body, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "glossaries", {
71
+ var createGlossaryCategory = async (id, body, options) => invokeFetch("glossaries", {
72
72
  method: "post",
73
73
  pathTemplate: "/api/v1/glossaries/{id}/categories",
74
74
  pathVariables: { id },
@@ -76,19 +76,19 @@ var createGlossaryCategory = async (id, body, options) => _URIW2U5Mjs.invokeFetc
76
76
  contentType: "application/json",
77
77
  options
78
78
  });
79
- var deleteGlossaryCategory = async (id, categoryId, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "glossaries", {
79
+ var deleteGlossaryCategory = async (id, categoryId, options) => invokeFetch("glossaries", {
80
80
  method: "delete",
81
81
  pathTemplate: "/api/v1/glossaries/{id}/categories/{categoryId}",
82
82
  pathVariables: { id, categoryId },
83
83
  options
84
84
  });
85
- var getGlossaryCategory = async (id, categoryId, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "glossaries", {
85
+ var getGlossaryCategory = async (id, categoryId, options) => invokeFetch("glossaries", {
86
86
  method: "get",
87
87
  pathTemplate: "/api/v1/glossaries/{id}/categories/{categoryId}",
88
88
  pathVariables: { id, categoryId },
89
89
  options
90
90
  });
91
- var patchGlossaryCategory = async (id, categoryId, body, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "glossaries", {
91
+ var patchGlossaryCategory = async (id, categoryId, body, options) => invokeFetch("glossaries", {
92
92
  method: "patch",
93
93
  pathTemplate: "/api/v1/glossaries/{id}/categories/{categoryId}",
94
94
  pathVariables: { id, categoryId },
@@ -96,7 +96,7 @@ var patchGlossaryCategory = async (id, categoryId, body, options) => _URIW2U5Mjs
96
96
  contentType: "application/json",
97
97
  options
98
98
  });
99
- var updateGlossaryCategory = async (id, categoryId, body, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "glossaries", {
99
+ var updateGlossaryCategory = async (id, categoryId, body, options) => invokeFetch("glossaries", {
100
100
  method: "put",
101
101
  pathTemplate: "/api/v1/glossaries/{id}/categories/{categoryId}",
102
102
  pathVariables: { id, categoryId },
@@ -104,14 +104,14 @@ var updateGlossaryCategory = async (id, categoryId, body, options) => _URIW2U5Mj
104
104
  contentType: "application/json",
105
105
  options
106
106
  });
107
- var getGlossaryTerms = async (id, query, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "glossaries", {
107
+ var getGlossaryTerms = async (id, query, options) => invokeFetch("glossaries", {
108
108
  method: "get",
109
109
  pathTemplate: "/api/v1/glossaries/{id}/terms",
110
110
  pathVariables: { id },
111
111
  query,
112
112
  options
113
113
  });
114
- var createGlossaryTerm = async (id, body, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "glossaries", {
114
+ var createGlossaryTerm = async (id, body, options) => invokeFetch("glossaries", {
115
115
  method: "post",
116
116
  pathTemplate: "/api/v1/glossaries/{id}/terms",
117
117
  pathVariables: { id },
@@ -119,19 +119,19 @@ var createGlossaryTerm = async (id, body, options) => _URIW2U5Mjs.invokeFetch.ca
119
119
  contentType: "application/json",
120
120
  options
121
121
  });
122
- var deleteGlossaryTerm = async (id, termId, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "glossaries", {
122
+ var deleteGlossaryTerm = async (id, termId, options) => invokeFetch("glossaries", {
123
123
  method: "delete",
124
124
  pathTemplate: "/api/v1/glossaries/{id}/terms/{termId}",
125
125
  pathVariables: { id, termId },
126
126
  options
127
127
  });
128
- var getGlossaryTerm = async (id, termId, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "glossaries", {
128
+ var getGlossaryTerm = async (id, termId, options) => invokeFetch("glossaries", {
129
129
  method: "get",
130
130
  pathTemplate: "/api/v1/glossaries/{id}/terms/{termId}",
131
131
  pathVariables: { id, termId },
132
132
  options
133
133
  });
134
- var patchGlossaryTerm = async (id, termId, body, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "glossaries", {
134
+ var patchGlossaryTerm = async (id, termId, body, options) => invokeFetch("glossaries", {
135
135
  method: "patch",
136
136
  pathTemplate: "/api/v1/glossaries/{id}/terms/{termId}",
137
137
  pathVariables: { id, termId },
@@ -139,7 +139,7 @@ var patchGlossaryTerm = async (id, termId, body, options) => _URIW2U5Mjs.invokeF
139
139
  contentType: "application/json",
140
140
  options
141
141
  });
142
- var updateGlossaryTerm = async (id, termId, body, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "glossaries", {
142
+ var updateGlossaryTerm = async (id, termId, body, options) => invokeFetch("glossaries", {
143
143
  method: "put",
144
144
  pathTemplate: "/api/v1/glossaries/{id}/terms/{termId}",
145
145
  pathVariables: { id, termId },
@@ -147,21 +147,21 @@ var updateGlossaryTerm = async (id, termId, body, options) => _URIW2U5Mjs.invoke
147
147
  contentType: "application/json",
148
148
  options
149
149
  });
150
- var changeGlossaryTermStatus = async (id, termId, query, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "glossaries", {
150
+ var changeGlossaryTermStatus = async (id, termId, query, options) => invokeFetch("glossaries", {
151
151
  method: "post",
152
152
  pathTemplate: "/api/v1/glossaries/{id}/terms/{termId}/actions/change-status",
153
153
  pathVariables: { id, termId },
154
154
  query,
155
155
  options
156
156
  });
157
- var getGlossaryTermLinks = async (id, termId, query, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "glossaries", {
157
+ var getGlossaryTermLinks = async (id, termId, query, options) => invokeFetch("glossaries", {
158
158
  method: "get",
159
159
  pathTemplate: "/api/v1/glossaries/{id}/terms/{termId}/links",
160
160
  pathVariables: { id, termId },
161
161
  query,
162
162
  options
163
163
  });
164
- var createGlossaryTermLink = async (id, termId, body, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "glossaries", {
164
+ var createGlossaryTermLink = async (id, termId, body, options) => invokeFetch("glossaries", {
165
165
  method: "post",
166
166
  pathTemplate: "/api/v1/glossaries/{id}/terms/{termId}/links",
167
167
  pathVariables: { id, termId },
@@ -169,7 +169,7 @@ var createGlossaryTermLink = async (id, termId, body, options) => _URIW2U5Mjs.in
169
169
  contentType: "application/json",
170
170
  options
171
171
  });
172
- var getGlossaryTermRevisions = async (id, termId, query, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "glossaries", {
172
+ var getGlossaryTermRevisions = async (id, termId, query, options) => invokeFetch("glossaries", {
173
173
  method: "get",
174
174
  pathTemplate: "/api/v1/glossaries/{id}/terms/{termId}/revisions",
175
175
  pathVariables: { id, termId },
@@ -177,7 +177,7 @@ var getGlossaryTermRevisions = async (id, termId, query, options) => _URIW2U5Mjs
177
177
  options
178
178
  });
179
179
  function clearCache() {
180
- return _URIW2U5Mjs.clearApiCache.call(void 0, "glossaries");
180
+ return clearApiCache("glossaries");
181
181
  }
182
182
  var glossariesExport = {
183
183
  getGlossaries,
@@ -207,31 +207,31 @@ var glossariesExport = {
207
207
  clearCache
208
208
  };
209
209
  var glossaries_default = glossariesExport;
210
-
211
-
212
-
213
-
214
-
215
-
216
-
217
-
218
-
219
-
220
-
221
-
222
-
223
-
224
-
225
-
226
-
227
-
228
-
229
-
230
-
231
-
232
-
233
-
234
-
235
-
236
-
237
- exports.changeGlossaryTermStatus = changeGlossaryTermStatus; exports.clearCache = clearCache; exports.createGlossary = createGlossary; exports.createGlossaryCategory = createGlossaryCategory; exports.createGlossaryTerm = createGlossaryTerm; exports.createGlossaryTermLink = createGlossaryTermLink; exports.default = glossaries_default; exports.deleteGlossary = deleteGlossary; exports.deleteGlossaryCategory = deleteGlossaryCategory; exports.deleteGlossaryTerm = deleteGlossaryTerm; exports.exportGlossary = exportGlossary; exports.getGlossaries = getGlossaries; exports.getGlossary = getGlossary; exports.getGlossaryCategories = getGlossaryCategories; exports.getGlossaryCategory = getGlossaryCategory; exports.getGlossaryTerm = getGlossaryTerm; exports.getGlossaryTermLinks = getGlossaryTermLinks; exports.getGlossaryTermRevisions = getGlossaryTermRevisions; exports.getGlossaryTerms = getGlossaryTerms; exports.importGlossary = importGlossary; exports.patchGlossary = patchGlossary; exports.patchGlossaryCategory = patchGlossaryCategory; exports.patchGlossaryTerm = patchGlossaryTerm; exports.updateGlossary = updateGlossary; exports.updateGlossaryCategory = updateGlossaryCategory; exports.updateGlossaryTerm = updateGlossaryTerm;
210
+ export {
211
+ changeGlossaryTermStatus,
212
+ clearCache,
213
+ createGlossary,
214
+ createGlossaryCategory,
215
+ createGlossaryTerm,
216
+ createGlossaryTermLink,
217
+ glossaries_default as default,
218
+ deleteGlossary,
219
+ deleteGlossaryCategory,
220
+ deleteGlossaryTerm,
221
+ exportGlossary,
222
+ getGlossaries,
223
+ getGlossary,
224
+ getGlossaryCategories,
225
+ getGlossaryCategory,
226
+ getGlossaryTerm,
227
+ getGlossaryTermLinks,
228
+ getGlossaryTermRevisions,
229
+ getGlossaryTerms,
230
+ importGlossary,
231
+ patchGlossary,
232
+ patchGlossaryCategory,
233
+ patchGlossaryTerm,
234
+ updateGlossary,
235
+ updateGlossaryCategory,
236
+ updateGlossaryTerm
237
+ };
package/groups.d.ts CHANGED
@@ -11,8 +11,6 @@ type AssignedRoles = {
11
11
  readonly level: "admin" | "user";
12
12
  /** The role name */
13
13
  readonly name: string;
14
- /** An array of permissions associated to a given role. */
15
- readonly permissions: string[];
16
14
  /** The type of role */
17
15
  readonly type: "default";
18
16
  }[];
@@ -76,7 +74,6 @@ type Group = {
76
74
  id: string;
77
75
  readonly level: "admin" | "user";
78
76
  readonly name: string;
79
- readonly permissions: string[];
80
77
  readonly type: "default";
81
78
  }[];
82
79
  /** The timestamp for when the group record was created. */