@qlik/api 0.0.9 → 0.0.11

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 (145) hide show
  1. package/api-keys.d.mts +9 -0
  2. package/api-keys.d.ts +9 -0
  3. package/api-keys.js +10 -10
  4. package/api-keys.mjs +2 -2
  5. package/apps.d.mts +125 -1
  6. package/apps.d.ts +125 -1
  7. package/apps.js +46 -46
  8. package/apps.mjs +2 -2
  9. package/audits.d.mts +13 -0
  10. package/audits.d.ts +13 -0
  11. package/audits.js +9 -9
  12. package/audits.mjs +2 -2
  13. package/auth.js +3 -3
  14. package/auth.mjs +2 -2
  15. package/automations.d.mts +8 -0
  16. package/automations.d.ts +8 -0
  17. package/automations.js +21 -21
  18. package/automations.mjs +2 -2
  19. package/brands.d.mts +15 -0
  20. package/brands.d.ts +15 -0
  21. package/brands.js +15 -15
  22. package/brands.mjs +2 -2
  23. package/chunks/{XY3AC335.js → 277NFGPR.js} +4 -4
  24. package/chunks/{K4YCNLTC.mjs → 4E3AP3QF.mjs} +1 -1
  25. package/chunks/{AU62SBT4.mjs → 6QHMH76M.mjs} +1 -1
  26. package/chunks/{VLLTA4EY.mjs → E3HDOP72.mjs} +3 -3
  27. package/chunks/{PQ4OWSWX.js → FT7SZRB6.js} +45 -57
  28. package/chunks/{EHZ6H6TD.mjs → G36LDZ2O.mjs} +1 -1
  29. package/chunks/{POR3DZIU.mjs → J3UXBHGX.mjs} +1 -1
  30. package/chunks/{WQHUX4R2.mjs → K2WB4AWW.mjs} +1 -1
  31. package/chunks/{KDW6ZD2R.mjs → MHLTST5J.mjs} +43 -55
  32. package/chunks/{AGASWXYW.js → MQGSH6BQ.js} +167 -23
  33. package/chunks/{W2I5OQA5.js → NBNOAZT5.js} +3 -3
  34. package/chunks/{EL2GSPZZ.js → NZ6E5ZHO.js} +3 -3
  35. package/chunks/{YDB23Q56.mjs → QJNIUMNI.mjs} +164 -20
  36. package/chunks/{F7GJTDIU.js → QMOQD6PE.js} +8 -8
  37. package/chunks/SPJKF5VW.js +17 -0
  38. package/chunks/{L7DRRU3T.mjs → TPTPAX2U.mjs} +2 -2
  39. package/chunks/X3YDQVZ6.js +41 -0
  40. package/chunks/{AULTUQC4.js → XP7ALS4O.js} +2 -2
  41. package/collections.d.mts +29 -1
  42. package/collections.d.ts +29 -1
  43. package/collections.js +14 -14
  44. package/collections.mjs +2 -2
  45. package/csp-origins.js +9 -9
  46. package/csp-origins.mjs +2 -2
  47. package/data-assets.js +8 -8
  48. package/data-assets.mjs +2 -2
  49. package/data-connections.d.mts +12 -1
  50. package/data-connections.d.ts +12 -1
  51. package/data-connections.js +12 -12
  52. package/data-connections.mjs +2 -2
  53. package/data-credentials.d.mts +5 -0
  54. package/data-credentials.d.ts +5 -0
  55. package/data-credentials.js +7 -7
  56. package/data-credentials.mjs +2 -2
  57. package/data-files.d.mts +6 -0
  58. package/data-files.d.ts +6 -0
  59. package/data-files.js +15 -15
  60. package/data-files.mjs +2 -2
  61. package/extensions.d.mts +12 -0
  62. package/extensions.d.ts +12 -0
  63. package/extensions.js +10 -10
  64. package/extensions.mjs +2 -2
  65. package/glossaries.d.mts +50 -0
  66. package/glossaries.d.ts +50 -0
  67. package/glossaries.js +27 -27
  68. package/glossaries.mjs +2 -2
  69. package/groups.d.mts +39 -0
  70. package/groups.d.ts +39 -0
  71. package/groups.js +11 -11
  72. package/groups.mjs +2 -2
  73. package/identity-providers.d.mts +42 -0
  74. package/identity-providers.d.ts +42 -0
  75. package/identity-providers.js +11 -11
  76. package/identity-providers.mjs +2 -2
  77. package/index.js +8 -8
  78. package/index.mjs +4 -4
  79. package/items.d.mts +32 -1
  80. package/items.d.ts +32 -1
  81. package/items.js +11 -11
  82. package/items.mjs +2 -2
  83. package/licenses.d.mts +7 -4
  84. package/licenses.d.ts +7 -4
  85. package/licenses.js +12 -12
  86. package/licenses.mjs +2 -2
  87. package/package.json +1 -1
  88. package/qix.d.mts +1 -1
  89. package/qix.d.ts +1 -1
  90. package/qix.js +3 -3
  91. package/qix.mjs +2 -2
  92. package/quotas.d.mts +3 -0
  93. package/quotas.d.ts +3 -0
  94. package/quotas.js +5 -5
  95. package/quotas.mjs +2 -2
  96. package/reload-tasks.d.mts +6 -3
  97. package/reload-tasks.d.ts +6 -3
  98. package/reload-tasks.js +8 -8
  99. package/reload-tasks.mjs +2 -2
  100. package/reloads.d.mts +9 -0
  101. package/reloads.d.ts +9 -0
  102. package/reloads.js +7 -7
  103. package/reloads.mjs +2 -2
  104. package/roles.d.mts +10 -1
  105. package/roles.d.ts +10 -1
  106. package/roles.js +5 -5
  107. package/roles.mjs +2 -2
  108. package/spaces.d.mts +37 -5
  109. package/spaces.d.ts +37 -5
  110. package/spaces.js +15 -15
  111. package/spaces.mjs +2 -2
  112. package/temp-contents.d.mts +6 -0
  113. package/temp-contents.d.ts +6 -0
  114. package/temp-contents.js +6 -6
  115. package/temp-contents.mjs +2 -2
  116. package/tenants.d.mts +12 -0
  117. package/tenants.d.ts +12 -0
  118. package/tenants.js +9 -9
  119. package/tenants.mjs +2 -2
  120. package/themes.d.mts +9 -0
  121. package/themes.d.ts +9 -0
  122. package/themes.js +10 -10
  123. package/themes.mjs +2 -2
  124. package/transports.d.mts +9 -0
  125. package/transports.d.ts +9 -0
  126. package/transports.js +9 -9
  127. package/transports.mjs +2 -2
  128. package/users.d.mts +85 -14
  129. package/users.d.ts +85 -14
  130. package/users.js +13 -13
  131. package/users.mjs +2 -2
  132. package/web-integrations.d.mts +18 -0
  133. package/web-integrations.d.ts +18 -0
  134. package/web-integrations.js +8 -8
  135. package/web-integrations.mjs +2 -2
  136. package/web-notifications.d.mts +18 -0
  137. package/web-notifications.d.ts +18 -0
  138. package/web-notifications.js +9 -9
  139. package/web-notifications.mjs +2 -2
  140. package/webhooks.d.mts +3 -0
  141. package/webhooks.d.ts +3 -0
  142. package/webhooks.js +13 -13
  143. package/webhooks.mjs +2 -2
  144. package/chunks/37STYSYC.js +0 -41
  145. package/chunks/VC2LAFLZ.js +0 -17
package/data-files.js CHANGED
@@ -1,68 +1,68 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _EL2GSPZZjs = require('./chunks/EL2GSPZZ.js');
5
- require('./chunks/W2I5OQA5.js');
4
+ var _NZ6E5ZHOjs = require('./chunks/NZ6E5ZHO.js');
5
+ require('./chunks/NBNOAZT5.js');
6
6
  require('./chunks/4HB3TAEO.js');
7
7
 
8
8
  // src/public/rest/data-files.ts
9
- var getDataFiles = async (query, options) => _EL2GSPZZjs.invokeFetch.call(void 0, "data-files", {
9
+ var getDataFiles = async (query, options) => _NZ6E5ZHOjs.invokeFetch.call(void 0, "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) => _EL2GSPZZjs.invokeFetch.call(void 0, "data-files", {
15
+ var uploadDataFile = async (body, options) => _NZ6E5ZHOjs.invokeFetch.call(void 0, "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) => _EL2GSPZZjs.invokeFetch.call(void 0, "data-files", {
22
+ var moveDataFiles = async (body, options) => _NZ6E5ZHOjs.invokeFetch.call(void 0, "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) => _EL2GSPZZjs.invokeFetch.call(void 0, "data-files", {
29
+ var deleteDataFiles = async (body, options) => _NZ6E5ZHOjs.invokeFetch.call(void 0, "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) => _EL2GSPZZjs.invokeFetch.call(void 0, "data-files", {
36
+ var getDataFilesConnections = async (query, options) => _NZ6E5ZHOjs.invokeFetch.call(void 0, "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) => _EL2GSPZZjs.invokeFetch.call(void 0, "data-files", {
42
+ var getDataFileConnection = async (id, options) => _NZ6E5ZHOjs.invokeFetch.call(void 0, "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) => _EL2GSPZZjs.invokeFetch.call(void 0, "data-files", {
48
+ var getDataFilesQuotas = async (options) => _NZ6E5ZHOjs.invokeFetch.call(void 0, "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) => _EL2GSPZZjs.invokeFetch.call(void 0, "data-files", {
53
+ var deleteDataFile = async (id, options) => _NZ6E5ZHOjs.invokeFetch.call(void 0, "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) => _EL2GSPZZjs.invokeFetch.call(void 0, "data-files", {
59
+ var getDataFile = async (id, options) => _NZ6E5ZHOjs.invokeFetch.call(void 0, "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) => _EL2GSPZZjs.invokeFetch.call(void 0, "data-files", {
65
+ var reuploadDataFile = async (id, body, options) => _NZ6E5ZHOjs.invokeFetch.call(void 0, "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) => _EL2GSPZZjs.invokeFetch.call
70
70
  contentType: "multipart/form-data",
71
71
  options
72
72
  });
73
- var changeDataFileOwner = async (id, body, options) => _EL2GSPZZjs.invokeFetch.call(void 0, "data-files", {
73
+ var changeDataFileOwner = async (id, body, options) => _NZ6E5ZHOjs.invokeFetch.call(void 0, "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) => _EL2GSPZZjs.invokeFetch.c
78
78
  contentType: "application/json",
79
79
  options
80
80
  });
81
- var moveDataFile = async (id, body, options) => _EL2GSPZZjs.invokeFetch.call(void 0, "data-files", {
81
+ var moveDataFile = async (id, body, options) => _NZ6E5ZHOjs.invokeFetch.call(void 0, "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) => _EL2GSPZZjs.invokeFetch.call(voi
87
87
  options
88
88
  });
89
89
  function clearCache() {
90
- return _EL2GSPZZjs.clearApiCache.call(void 0, "data-files");
90
+ return _NZ6E5ZHOjs.clearApiCache.call(void 0, "data-files");
91
91
  }
92
92
  var dataFilesExport = {
93
93
  getDataFiles,
package/data-files.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/POR3DZIU.mjs";
5
- import "./chunks/VLLTA4EY.mjs";
4
+ } from "./chunks/J3UXBHGX.mjs";
5
+ import "./chunks/E3HDOP72.mjs";
6
6
  import "./chunks/VSY5YIQY.mjs";
7
7
 
8
8
  // src/public/rest/data-files.ts
package/extensions.d.mts CHANGED
@@ -1,6 +1,9 @@
1
1
  import { A as ApiCallOptions } from './global.types-5iFvFJvX.mjs';
2
2
  import './auth-types-nnUcWhuU.mjs';
3
3
 
4
+ /**
5
+ * Object containing meta data regarding the bundle the extension belongs to. If it does not belong to a bundle, this object is not defined.
6
+ */
4
7
  type BundleMeta = {
5
8
  /** Description of the bundle. */
6
9
  description?: string;
@@ -9,6 +12,9 @@ type BundleMeta = {
9
12
  /** Name of the bundle. */
10
13
  name?: string;
11
14
  };
15
+ /**
16
+ * An error object.
17
+ */
12
18
  type Error = {
13
19
  /** Object containing meta data regarding an error. It does not necessarily contain all the properties. */
14
20
  meta?: Meta;
@@ -19,6 +25,9 @@ type Error = {
19
25
  /** Title of the HTTP status code. */
20
26
  title: string;
21
27
  };
28
+ /**
29
+ * The extension model.
30
+ */
22
31
  type Extension = {
23
32
  /** Author of the extension. */
24
33
  author?: string;
@@ -75,6 +84,9 @@ type Extension = {
75
84
  type Extensions = {
76
85
  data: Extension[];
77
86
  };
87
+ /**
88
+ * Object containing meta data regarding an error. It does not necessarily contain all the properties.
89
+ */
78
90
  type Meta = {
79
91
  /** A more detailed message explaining the error. */
80
92
  message?: string;
package/extensions.d.ts CHANGED
@@ -1,6 +1,9 @@
1
1
  import { A as ApiCallOptions } from './global.types-TzVhFPid.js';
2
2
  import './auth-types-nnUcWhuU.js';
3
3
 
4
+ /**
5
+ * Object containing meta data regarding the bundle the extension belongs to. If it does not belong to a bundle, this object is not defined.
6
+ */
4
7
  type BundleMeta = {
5
8
  /** Description of the bundle. */
6
9
  description?: string;
@@ -9,6 +12,9 @@ type BundleMeta = {
9
12
  /** Name of the bundle. */
10
13
  name?: string;
11
14
  };
15
+ /**
16
+ * An error object.
17
+ */
12
18
  type Error = {
13
19
  /** Object containing meta data regarding an error. It does not necessarily contain all the properties. */
14
20
  meta?: Meta;
@@ -19,6 +25,9 @@ type Error = {
19
25
  /** Title of the HTTP status code. */
20
26
  title: string;
21
27
  };
28
+ /**
29
+ * The extension model.
30
+ */
22
31
  type Extension = {
23
32
  /** Author of the extension. */
24
33
  author?: string;
@@ -75,6 +84,9 @@ type Extension = {
75
84
  type Extensions = {
76
85
  data: Extension[];
77
86
  };
87
+ /**
88
+ * Object containing meta data regarding an error. It does not necessarily contain all the properties.
89
+ */
78
90
  type Meta = {
79
91
  /** A more detailed message explaining the error. */
80
92
  message?: string;
package/extensions.js CHANGED
@@ -1,36 +1,36 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _EL2GSPZZjs = require('./chunks/EL2GSPZZ.js');
5
- require('./chunks/W2I5OQA5.js');
4
+ var _NZ6E5ZHOjs = require('./chunks/NZ6E5ZHO.js');
5
+ require('./chunks/NBNOAZT5.js');
6
6
  require('./chunks/4HB3TAEO.js');
7
7
 
8
8
  // src/public/rest/extensions.ts
9
- var getExtensions = async (options) => _EL2GSPZZjs.invokeFetch.call(void 0, "extensions", {
9
+ var getExtensions = async (options) => _NZ6E5ZHOjs.invokeFetch.call(void 0, "extensions", {
10
10
  method: "get",
11
11
  pathTemplate: "/api/v1/extensions",
12
12
  options
13
13
  });
14
- var uploadExtension = async (body, options) => _EL2GSPZZjs.invokeFetch.call(void 0, "extensions", {
14
+ var uploadExtension = async (body, options) => _NZ6E5ZHOjs.invokeFetch.call(void 0, "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) => _EL2GSPZZjs.invokeFetch.call(void 0, "extensions", {
21
+ var deleteExtension = async (id, options) => _NZ6E5ZHOjs.invokeFetch.call(void 0, "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) => _EL2GSPZZjs.invokeFetch.call(void 0, "extensions", {
27
+ var getExtension = async (id, options) => _NZ6E5ZHOjs.invokeFetch.call(void 0, "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) => _EL2GSPZZjs.invokeFetch.call(void 0, "extensions", {
33
+ var patchExtension = async (id, body, options) => _NZ6E5ZHOjs.invokeFetch.call(void 0, "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) => _EL2GSPZZjs.invokeFetch.call(v
38
38
  contentType: "multipart/form-data",
39
39
  options
40
40
  });
41
- var downloadExtension = async (id, options) => _EL2GSPZZjs.invokeFetch.call(void 0, "extensions", {
41
+ var downloadExtension = async (id, options) => _NZ6E5ZHOjs.invokeFetch.call(void 0, "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) => _EL2GSPZZjs.invokeFetch.call(void 0, "extensions", {
47
+ var downloadFileFromExtension = async (id, filepath, options) => _NZ6E5ZHOjs.invokeFetch.call(void 0, "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 _EL2GSPZZjs.clearApiCache.call(void 0, "extensions");
54
+ return _NZ6E5ZHOjs.clearApiCache.call(void 0, "extensions");
55
55
  }
56
56
  var extensionsExport = {
57
57
  getExtensions,
package/extensions.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/POR3DZIU.mjs";
5
- import "./chunks/VLLTA4EY.mjs";
4
+ } from "./chunks/J3UXBHGX.mjs";
5
+ import "./chunks/E3HDOP72.mjs";
6
6
  import "./chunks/VSY5YIQY.mjs";
7
7
 
8
8
  // src/public/rest/extensions.ts
package/glossaries.d.mts CHANGED
@@ -1,6 +1,9 @@
1
1
  import { A as ApiCallOptions } from './global.types-5iFvFJvX.mjs';
2
2
  import './auth-types-nnUcWhuU.mjs';
3
3
 
4
+ /**
5
+ * A JSON Patch document as defined in http://tools.ietf.org/html/rfc6902.
6
+ */
4
7
  type JSONPatch = {
5
8
  /** The operation to be performed. */
6
9
  op: "replace";
@@ -9,6 +12,9 @@ type JSONPatch = {
9
12
  /** The value to be used for this operation. */
10
13
  value: string | number;
11
14
  };
15
+ /**
16
+ * An array of JSON Patch documents
17
+ */
12
18
  type JSONPatchArray = JSONPatch[];
13
19
  type AtlanEntity = {
14
20
  attributes?: AtlanEntityAttributes;
@@ -30,6 +36,9 @@ type AtlanEntityAttributes = {
30
36
  usage?: string;
31
37
  userDescription?: string;
32
38
  };
39
+ /**
40
+ * Atlan glossary format. See https://apidocs.atlan.com/
41
+ */
33
42
  type AtlanGlossary = {
34
43
  entity?: AtlanEntity;
35
44
  referredEntities?: AtlanEntity[];
@@ -151,6 +160,28 @@ type ErrorResponse = {
151
160
  errors?: ErrorResponseCode[];
152
161
  traceId?: string;
153
162
  };
163
+ /**
164
+ * ### Custom error codes
165
+ * * BG-1 - Context JWT is missing tenantId.
166
+ * * BG-2 - Context JWT is missing userId.
167
+ * * BG-4 - Invalid or unsupported Content Type. Valid types are: application/json, application/json+qlik, application/json+atlan, application/json+atlas
168
+ * * BG-5 - Failed to decode JSON payload.
169
+ * * BG-6 - A glossary name is required.
170
+ * * BG-7 - Two categories with the same name cannot have the same parent.
171
+ * * BG-11 - Glossary validation failed - A value or parameter is invalid or not set
172
+ * * BG-12 - Category validation failed - A value or parameter is invalid or not set
173
+ * * BG-13 - Term validation failed - A value or parameter is invalid or not set
174
+ * * BG-14 - Two or more categories share Id
175
+ * * BG-15 - Two or more terms share Id
176
+ * * BG-16 - Not detecting proper Atlas format
177
+ * * BG-17 - Not detecting proper Atlan format
178
+ * * BG-18 - Not detecting proper Qlik format
179
+ * * BG-19 - Invalid format in term
180
+ * * BG-20 - Duplicate link definition
181
+ * * BG-21 - Rich text validation failed
182
+ * * BG-22 - Import cancelled
183
+ * * BG-23 - Duplicate link related
184
+ */
154
185
  type ErrorResponseBadRequest = {
155
186
  errors?: ErrorResponseCode[];
156
187
  traceId?: string;
@@ -160,10 +191,20 @@ type ErrorResponseCode = {
160
191
  detail?: string;
161
192
  title?: string;
162
193
  };
194
+ /**
195
+ * ### Custom error codes
196
+ * * BG-3 - Access denied, no read access
197
+ */
163
198
  type ErrorResponseForbidden = {
164
199
  errors?: ErrorResponseCode[];
165
200
  traceId?: string;
166
201
  };
202
+ /**
203
+ * ### Custom error codes
204
+ * * BG-8 - Glossary not found
205
+ * * BG-9 - Category not found
206
+ * * BG-10 - Term not found
207
+ */
167
208
  type ErrorResponseNotFound = {
168
209
  errors?: ErrorResponseCode[];
169
210
  traceId?: string;
@@ -324,6 +365,9 @@ type Term = {
324
365
  /** The uuid of the user who last updated the term */
325
366
  readonly updatedBy: string;
326
367
  };
368
+ /**
369
+ * Describes links to other data assets such as analytics applications or dataset.
370
+ */
327
371
  type TermCreateLinksTo = {
328
372
  resourceId: string;
329
373
  resourceType: "app" | "dataset";
@@ -332,6 +376,9 @@ type TermCreateLinksTo = {
332
376
  subResourceType?: "master_dimension" | "master_measure";
333
377
  type?: "definition" | "related";
334
378
  };
379
+ /**
380
+ * Describes links to other entities such as qlik charts, dataset columns etc.
381
+ */
335
382
  type TermLinksTo = {
336
383
  readonly createdAt?: string;
337
384
  createdBy?: string;
@@ -356,6 +403,9 @@ type TermRelatesTo = {
356
403
  /** How the term related to the other object */
357
404
  type: "isA" | "hasA" | "seeAlso" | "synonym" | "antonym" | "classifies" | "other";
358
405
  };
406
+ /**
407
+ * Terms status is used determine the status of a term
408
+ */
359
409
  type TermStatus = {
360
410
  type: "draft" | "verified" | "deprecated";
361
411
  /** Time when the state was changed */
package/glossaries.d.ts CHANGED
@@ -1,6 +1,9 @@
1
1
  import { A as ApiCallOptions } from './global.types-TzVhFPid.js';
2
2
  import './auth-types-nnUcWhuU.js';
3
3
 
4
+ /**
5
+ * A JSON Patch document as defined in http://tools.ietf.org/html/rfc6902.
6
+ */
4
7
  type JSONPatch = {
5
8
  /** The operation to be performed. */
6
9
  op: "replace";
@@ -9,6 +12,9 @@ type JSONPatch = {
9
12
  /** The value to be used for this operation. */
10
13
  value: string | number;
11
14
  };
15
+ /**
16
+ * An array of JSON Patch documents
17
+ */
12
18
  type JSONPatchArray = JSONPatch[];
13
19
  type AtlanEntity = {
14
20
  attributes?: AtlanEntityAttributes;
@@ -30,6 +36,9 @@ type AtlanEntityAttributes = {
30
36
  usage?: string;
31
37
  userDescription?: string;
32
38
  };
39
+ /**
40
+ * Atlan glossary format. See https://apidocs.atlan.com/
41
+ */
33
42
  type AtlanGlossary = {
34
43
  entity?: AtlanEntity;
35
44
  referredEntities?: AtlanEntity[];
@@ -151,6 +160,28 @@ type ErrorResponse = {
151
160
  errors?: ErrorResponseCode[];
152
161
  traceId?: string;
153
162
  };
163
+ /**
164
+ * ### Custom error codes
165
+ * * BG-1 - Context JWT is missing tenantId.
166
+ * * BG-2 - Context JWT is missing userId.
167
+ * * BG-4 - Invalid or unsupported Content Type. Valid types are: application/json, application/json+qlik, application/json+atlan, application/json+atlas
168
+ * * BG-5 - Failed to decode JSON payload.
169
+ * * BG-6 - A glossary name is required.
170
+ * * BG-7 - Two categories with the same name cannot have the same parent.
171
+ * * BG-11 - Glossary validation failed - A value or parameter is invalid or not set
172
+ * * BG-12 - Category validation failed - A value or parameter is invalid or not set
173
+ * * BG-13 - Term validation failed - A value or parameter is invalid or not set
174
+ * * BG-14 - Two or more categories share Id
175
+ * * BG-15 - Two or more terms share Id
176
+ * * BG-16 - Not detecting proper Atlas format
177
+ * * BG-17 - Not detecting proper Atlan format
178
+ * * BG-18 - Not detecting proper Qlik format
179
+ * * BG-19 - Invalid format in term
180
+ * * BG-20 - Duplicate link definition
181
+ * * BG-21 - Rich text validation failed
182
+ * * BG-22 - Import cancelled
183
+ * * BG-23 - Duplicate link related
184
+ */
154
185
  type ErrorResponseBadRequest = {
155
186
  errors?: ErrorResponseCode[];
156
187
  traceId?: string;
@@ -160,10 +191,20 @@ type ErrorResponseCode = {
160
191
  detail?: string;
161
192
  title?: string;
162
193
  };
194
+ /**
195
+ * ### Custom error codes
196
+ * * BG-3 - Access denied, no read access
197
+ */
163
198
  type ErrorResponseForbidden = {
164
199
  errors?: ErrorResponseCode[];
165
200
  traceId?: string;
166
201
  };
202
+ /**
203
+ * ### Custom error codes
204
+ * * BG-8 - Glossary not found
205
+ * * BG-9 - Category not found
206
+ * * BG-10 - Term not found
207
+ */
167
208
  type ErrorResponseNotFound = {
168
209
  errors?: ErrorResponseCode[];
169
210
  traceId?: string;
@@ -324,6 +365,9 @@ type Term = {
324
365
  /** The uuid of the user who last updated the term */
325
366
  readonly updatedBy: string;
326
367
  };
368
+ /**
369
+ * Describes links to other data assets such as analytics applications or dataset.
370
+ */
327
371
  type TermCreateLinksTo = {
328
372
  resourceId: string;
329
373
  resourceType: "app" | "dataset";
@@ -332,6 +376,9 @@ type TermCreateLinksTo = {
332
376
  subResourceType?: "master_dimension" | "master_measure";
333
377
  type?: "definition" | "related";
334
378
  };
379
+ /**
380
+ * Describes links to other entities such as qlik charts, dataset columns etc.
381
+ */
335
382
  type TermLinksTo = {
336
383
  readonly createdAt?: string;
337
384
  createdBy?: string;
@@ -356,6 +403,9 @@ type TermRelatesTo = {
356
403
  /** How the term related to the other object */
357
404
  type: "isA" | "hasA" | "seeAlso" | "synonym" | "antonym" | "classifies" | "other";
358
405
  };
406
+ /**
407
+ * Terms status is used determine the status of a term
408
+ */
359
409
  type TermStatus = {
360
410
  type: "draft" | "verified" | "deprecated";
361
411
  /** Time when the state was changed */