@qlik/api 0.0.16 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (132) hide show
  1. package/README.md +1 -1
  2. package/api-keys.js +25 -25
  3. package/apps.js +97 -97
  4. package/audits.js +23 -23
  5. package/auth.js +14 -14
  6. package/automations.js +47 -47
  7. package/brands.js +35 -35
  8. package/chunks/4HB3TAEO.js +4 -4
  9. package/chunks/{EHAANYDL.mjs → 4V5AAWUI.js} +3 -3
  10. package/chunks/{O4EAKEIN.mjs → D62LI5YU.js} +1 -1
  11. package/chunks/{6WX5AGKQ.mjs → L2BJNKLV.js} +2 -2
  12. package/chunks/{3YV6X7S6.mjs → LHCJKIEO.js} +1 -1
  13. package/chunks/OPRGGO4C.js +8 -8
  14. package/chunks/{HHOVS7QC.mjs → RNLZBOJU.js} +3 -3
  15. package/chunks/{BYD63JCG.mjs → SIU6HO6B.js} +5 -3
  16. package/chunks/{6AD3HYSF.mjs → TFSRDRRS.js} +1 -1
  17. package/chunks/{HOCTJESP.mjs → VK2CODYY.js} +2 -2
  18. package/chunks/{UKVTBYP6.mjs → XOVMZWDC.js} +2 -2
  19. package/collections.js +33 -33
  20. package/csp-origins.js +23 -23
  21. package/data-assets.js +21 -21
  22. package/data-connections.js +29 -29
  23. package/data-credentials.js +19 -19
  24. package/data-files.js +35 -35
  25. package/docs/authentication.md +5 -5
  26. package/docs/examples/fetch-spaces.md +1 -15
  27. package/docs/examples/show-sheet-list.md +1 -1
  28. package/docs/features.md +1 -1
  29. package/extensions.js +25 -25
  30. package/glossaries.js +59 -59
  31. package/groups.d.ts +0 -3
  32. package/groups.js +27 -27
  33. package/identity-providers.js +27 -27
  34. package/index.js +53 -53
  35. package/items.js +27 -27
  36. package/licenses.js +29 -29
  37. package/package.json +36 -232
  38. package/qix.d.ts +1 -1
  39. package/qix.js +10 -10
  40. package/quotas.js +15 -15
  41. package/reload-tasks.js +21 -21
  42. package/reloads.js +19 -19
  43. package/roles.js +15 -15
  44. package/spaces.js +35 -35
  45. package/temp-contents.js +17 -17
  46. package/tenants.js +23 -23
  47. package/themes.js +25 -25
  48. package/transports.js +23 -23
  49. package/users.d.ts +1 -3
  50. package/users.js +31 -31
  51. package/web-integrations.js +21 -21
  52. package/web-notifications.js +23 -23
  53. package/webhooks.js +31 -31
  54. package/api-keys.d.mts +0 -336
  55. package/api-keys.mjs +0 -80
  56. package/apps.d.mts +0 -2431
  57. package/apps.mjs +0 -398
  58. package/audits.d.mts +0 -286
  59. package/audits.mjs +0 -64
  60. package/auth-types-nnUcWhuU.d.mts +0 -98
  61. package/auth.d.mts +0 -26
  62. package/auth.mjs +0 -14
  63. package/automations.d.mts +0 -682
  64. package/automations.mjs +0 -173
  65. package/brands.d.mts +0 -670
  66. package/brands.mjs +0 -123
  67. package/chunks/2YWCEGTS.js +0 -21
  68. package/chunks/34ZKUFEA.js +0 -41
  69. package/chunks/4WHZ4EIW.js +0 -57
  70. package/chunks/B4VPD3ZT.js +0 -574
  71. package/chunks/BM4OSDRZ.js +0 -17
  72. package/chunks/DCXUEDOW.mjs +0 -67
  73. package/chunks/MTAQE4WC.js +0 -10411
  74. package/chunks/PLOSYUG2.js +0 -25
  75. package/chunks/URIW2U5M.js +0 -17
  76. package/chunks/VSY5YIQY.mjs +0 -11
  77. package/chunks/WOYJLK4Y.js +0 -1623
  78. package/collections.d.mts +0 -581
  79. package/collections.mjs +0 -114
  80. package/csp-origins.d.mts +0 -273
  81. package/csp-origins.mjs +0 -69
  82. package/data-assets.d.mts +0 -205
  83. package/data-assets.mjs +0 -66
  84. package/data-connections.d.mts +0 -594
  85. package/data-connections.mjs +0 -103
  86. package/data-credentials.d.mts +0 -204
  87. package/data-credentials.mjs +0 -59
  88. package/data-files.d.mts +0 -562
  89. package/data-files.mjs +0 -123
  90. package/extensions.d.mts +0 -293
  91. package/extensions.mjs +0 -77
  92. package/global.types-5iFvFJvX.d.mts +0 -115
  93. package/glossaries.d.mts +0 -1173
  94. package/glossaries.mjs +0 -237
  95. package/groups.d.mts +0 -434
  96. package/groups.mjs +0 -88
  97. package/identity-providers.d.mts +0 -550
  98. package/identity-providers.mjs +0 -83
  99. package/index.d.mts +0 -142
  100. package/index.mjs +0 -716
  101. package/items.d.mts +0 -535
  102. package/items.mjs +0 -87
  103. package/licenses.d.mts +0 -459
  104. package/licenses.mjs +0 -92
  105. package/qix.d.mts +0 -11629
  106. package/qix.mjs +0 -10
  107. package/quotas.d.mts +0 -112
  108. package/quotas.mjs +0 -32
  109. package/reload-tasks.d.mts +0 -227
  110. package/reload-tasks.mjs +0 -62
  111. package/reloads.d.mts +0 -207
  112. package/reloads.mjs +0 -46
  113. package/roles.d.mts +0 -175
  114. package/roles.mjs +0 -31
  115. package/spaces.d.mts +0 -562
  116. package/spaces.mjs +0 -124
  117. package/temp-contents.d.mts +0 -167
  118. package/temp-contents.mjs +0 -41
  119. package/tenants.d.mts +0 -300
  120. package/tenants.mjs +0 -73
  121. package/themes.d.mts +0 -268
  122. package/themes.mjs +0 -77
  123. package/transports.d.mts +0 -319
  124. package/transports.mjs +0 -65
  125. package/users.d.mts +0 -631
  126. package/users.mjs +0 -104
  127. package/web-integrations.d.mts +0 -274
  128. package/web-integrations.mjs +0 -62
  129. package/web-notifications.d.mts +0 -250
  130. package/web-notifications.mjs +0 -69
  131. package/webhooks.d.mts +0 -445
  132. package/webhooks.mjs +0 -104
@@ -1,103 +0,0 @@
1
- import {
2
- clearApiCache,
3
- invokeFetch
4
- } from "./chunks/3YV6X7S6.mjs";
5
- import "./chunks/EHAANYDL.mjs";
6
- import "./chunks/VSY5YIQY.mjs";
7
-
8
- // src/public/rest/data-connections.ts
9
- var getDataConnections = async (query, options) => invokeFetch("data-connections", {
10
- method: "get",
11
- pathTemplate: "/api/v1/data-connections",
12
- query,
13
- options
14
- });
15
- var createDataConnection = async (body, options) => invokeFetch("data-connections", {
16
- method: "post",
17
- pathTemplate: "/api/v1/data-connections",
18
- body,
19
- contentType: "application/json",
20
- options
21
- });
22
- var deleteDataConnections = async (body, options) => invokeFetch("data-connections", {
23
- method: "post",
24
- pathTemplate: "/api/v1/data-connections/actions/delete",
25
- body,
26
- contentType: "application/json",
27
- options
28
- });
29
- var duplicateDataAConnection = async (body, options) => invokeFetch("data-connections", {
30
- method: "post",
31
- pathTemplate: "/api/v1/data-connections/actions/duplicate",
32
- body,
33
- contentType: "application/json",
34
- options
35
- });
36
- var updateDataConnections = async (body, options) => invokeFetch("data-connections", {
37
- method: "post",
38
- pathTemplate: "/api/v1/data-connections/actions/update",
39
- body,
40
- contentType: "application/json",
41
- options
42
- });
43
- var deleteDataConnection = async (qID, query, options) => invokeFetch("data-connections", {
44
- method: "delete",
45
- pathTemplate: "/api/v1/data-connections/{qID}",
46
- pathVariables: { qID },
47
- query,
48
- options
49
- });
50
- var getDataConnection = async (qID, query, options) => invokeFetch("data-connections", {
51
- method: "get",
52
- pathTemplate: "/api/v1/data-connections/{qID}",
53
- pathVariables: { qID },
54
- query,
55
- options
56
- });
57
- var patchDataConnection = async (qID, query, body, options) => invokeFetch("data-connections", {
58
- method: "patch",
59
- pathTemplate: "/api/v1/data-connections/{qID}",
60
- pathVariables: { qID },
61
- query,
62
- body,
63
- contentType: "application/json",
64
- options
65
- });
66
- var updateDataConnection = async (qID, query, body, options) => invokeFetch("data-connections", {
67
- method: "put",
68
- pathTemplate: "/api/v1/data-connections/{qID}",
69
- pathVariables: { qID },
70
- query,
71
- body,
72
- contentType: "application/json",
73
- options
74
- });
75
- function clearCache() {
76
- return clearApiCache("data-connections");
77
- }
78
- var dataConnectionsExport = {
79
- getDataConnections,
80
- createDataConnection,
81
- deleteDataConnections,
82
- duplicateDataAConnection,
83
- updateDataConnections,
84
- deleteDataConnection,
85
- getDataConnection,
86
- patchDataConnection,
87
- updateDataConnection,
88
- clearCache
89
- };
90
- var data_connections_default = dataConnectionsExport;
91
- export {
92
- clearCache,
93
- createDataConnection,
94
- data_connections_default as default,
95
- deleteDataConnection,
96
- deleteDataConnections,
97
- duplicateDataAConnection,
98
- getDataConnection,
99
- getDataConnections,
100
- patchDataConnection,
101
- updateDataConnection,
102
- updateDataConnections
103
- };
@@ -1,204 +0,0 @@
1
- import { A as ApiCallOptions } from './global.types-5iFvFJvX.mjs';
2
- import './auth-types-nnUcWhuU.mjs';
3
-
4
- type Credential = {
5
- /** ID datasource that the credential is created for */
6
- datasourceID?: string;
7
- links?: Link;
8
- /** Number of linked connections */
9
- qConnCount: number;
10
- /** UUID of the credential */
11
- qID: string;
12
- /** Name of the credential */
13
- qName: string;
14
- /** Reference key of credential in redis */
15
- qReferenceKey?: string;
16
- /** Type of credential */
17
- qType: string;
18
- };
19
- /**
20
- * Credential
21
- */
22
- type CredentialCreate = {
23
- /** ID of connection that will be associated with the credential */
24
- connectionId?: string;
25
- /** ID datasource that the credential is created for */
26
- datasourceID?: string;
27
- /** UUID of the credential */
28
- qID?: string;
29
- /** Name of the credential */
30
- qName: string;
31
- /** Password */
32
- qPassword: string;
33
- /** Type of credential (i.e. connector provider of the corresponding connection) */
34
- qType: string;
35
- /** User name */
36
- qUsername: string;
37
- };
38
- type Error = {
39
- /** Unique internal error code */
40
- code?: string;
41
- /** More concrete details */
42
- detail?: string;
43
- /** HTTP status code */
44
- status?: number;
45
- /** A summary in english explaining what went wrong */
46
- title?: string;
47
- };
48
- type Errors = Error[];
49
- type Link = {
50
- /** Link to cirrent query */
51
- self: {
52
- /** URL pointing to the resource */
53
- href: string;
54
- };
55
- };
56
- type PatchRequest = {
57
- patchData: {
58
- /** Operation type */
59
- op?: "add" | "replace" | "remove";
60
- /** Path to the target field to be patched */
61
- path?: string;
62
- /** The value used for the patch, only needed for 'add' or 'replace'. Value type could be either string or integer, should match with the type of the target field */
63
- value?: string;
64
- }[];
65
- };
66
- type ResponseErrors = {
67
- errors?: Errors;
68
- };
69
- /**
70
- * Deletes the specified credential by ID (or by name when type=credentialname is set in query)
71
- *
72
- * @param qID Credential ID
73
- * @param query an object with query parameters
74
- * @throws DeleteDataCredentialHttpError
75
- */
76
- declare const deleteDataCredential: (qID: string, query: {
77
- /** If set to true, credentialId in the query will be intepreted as credential's name */
78
- byCredentialName?: boolean;
79
- }, options?: ApiCallOptions) => Promise<DeleteDataCredentialHttpResponse>;
80
- type DeleteDataCredentialHttpResponse = {
81
- data: void;
82
- headers: Headers;
83
- status: number;
84
- };
85
- type DeleteDataCredentialHttpError = {
86
- data: ResponseErrors;
87
- headers: Headers;
88
- status: number;
89
- };
90
- /**
91
- * Gets a credential by ID (or by name when bycredentialname=true is set in query)
92
- *
93
- * @param qID Credential ID
94
- * @param query an object with query parameters
95
- * @throws GetDataCredentialHttpError
96
- */
97
- declare const getDataCredential: (qID: string, query: {
98
- /** If set to true, credentialId in the query will be intepreted as credential's name */
99
- byCredentialName?: boolean;
100
- }, options?: ApiCallOptions) => Promise<GetDataCredentialHttpResponse>;
101
- type GetDataCredentialHttpResponse = {
102
- data: Credential;
103
- headers: Headers;
104
- status: number;
105
- };
106
- type GetDataCredentialHttpError = {
107
- data: ResponseErrors;
108
- headers: Headers;
109
- status: number;
110
- };
111
- /**
112
- * Patches a credential specified by ID (or by name when bycredentialname=true is set in query)
113
- *
114
- * @param qID Credential ID
115
- * @param query an object with query parameters
116
- * @param body an object with the body content
117
- * @throws PatchDataCredentialHttpError
118
- */
119
- declare const patchDataCredential: (qID: string, query: {
120
- /** If set to true, credentialId in the query will be intepreted as credential's name */
121
- byCredentialName?: boolean;
122
- }, body: PatchRequest, options?: ApiCallOptions) => Promise<PatchDataCredentialHttpResponse>;
123
- type PatchDataCredentialHttpResponse = {
124
- data: void;
125
- headers: Headers;
126
- status: number;
127
- };
128
- type PatchDataCredentialHttpError = {
129
- data: ResponseErrors;
130
- headers: Headers;
131
- status: number;
132
- };
133
- /**
134
- * Updates a credential specified by ID (or by name when bycredentialname=true is set in query)
135
- *
136
- * @param qID Credential ID
137
- * @param query an object with query parameters
138
- * @param body an object with the body content
139
- * @throws UpdateDataCredentialHttpError
140
- */
141
- declare const updateDataCredential: (qID: string, query: {
142
- /** If set to true, credentialId in the query will be intepreted as credential's name */
143
- byCredentialName?: boolean;
144
- }, body: CredentialCreate, options?: ApiCallOptions) => Promise<UpdateDataCredentialHttpResponse>;
145
- type UpdateDataCredentialHttpResponse = {
146
- data: void;
147
- headers: Headers;
148
- status: number;
149
- };
150
- type UpdateDataCredentialHttpError = {
151
- data: ResponseErrors;
152
- headers: Headers;
153
- status: number;
154
- };
155
- /**
156
- * Clears the cache for data-credentials api requests.
157
- */
158
- declare function clearCache(): void;
159
- interface DataCredentialsAPI {
160
- /**
161
- * Deletes the specified credential by ID (or by name when type=credentialname is set in query)
162
- *
163
- * @param qID Credential ID
164
- * @param query an object with query parameters
165
- * @throws DeleteDataCredentialHttpError
166
- */
167
- deleteDataCredential: typeof deleteDataCredential;
168
- /**
169
- * Gets a credential by ID (or by name when bycredentialname=true is set in query)
170
- *
171
- * @param qID Credential ID
172
- * @param query an object with query parameters
173
- * @throws GetDataCredentialHttpError
174
- */
175
- getDataCredential: typeof getDataCredential;
176
- /**
177
- * Patches a credential specified by ID (or by name when bycredentialname=true is set in query)
178
- *
179
- * @param qID Credential ID
180
- * @param query an object with query parameters
181
- * @param body an object with the body content
182
- * @throws PatchDataCredentialHttpError
183
- */
184
- patchDataCredential: typeof patchDataCredential;
185
- /**
186
- * Updates a credential specified by ID (or by name when bycredentialname=true is set in query)
187
- *
188
- * @param qID Credential ID
189
- * @param query an object with query parameters
190
- * @param body an object with the body content
191
- * @throws UpdateDataCredentialHttpError
192
- */
193
- updateDataCredential: typeof updateDataCredential;
194
- /**
195
- * Clears the cache for data-credentials api requests.
196
- */
197
- clearCache: typeof clearCache;
198
- }
199
- /**
200
- * Functions for the data-credentials api
201
- */
202
- declare const dataCredentialsExport: DataCredentialsAPI;
203
-
204
- export { type Credential, type CredentialCreate, type DataCredentialsAPI, type DeleteDataCredentialHttpError, type DeleteDataCredentialHttpResponse, type Error, type Errors, type GetDataCredentialHttpError, type GetDataCredentialHttpResponse, type Link, type PatchDataCredentialHttpError, type PatchDataCredentialHttpResponse, type PatchRequest, type ResponseErrors, type UpdateDataCredentialHttpError, type UpdateDataCredentialHttpResponse, clearCache, dataCredentialsExport as default, deleteDataCredential, getDataCredential, patchDataCredential, updateDataCredential };
@@ -1,59 +0,0 @@
1
- import {
2
- clearApiCache,
3
- invokeFetch
4
- } from "./chunks/3YV6X7S6.mjs";
5
- import "./chunks/EHAANYDL.mjs";
6
- import "./chunks/VSY5YIQY.mjs";
7
-
8
- // src/public/rest/data-credentials.ts
9
- var deleteDataCredential = async (qID, query, options) => invokeFetch("data-credentials", {
10
- method: "delete",
11
- pathTemplate: "/api/v1/data-credentials/{qID}",
12
- pathVariables: { qID },
13
- query,
14
- options
15
- });
16
- var getDataCredential = async (qID, query, options) => invokeFetch("data-credentials", {
17
- method: "get",
18
- pathTemplate: "/api/v1/data-credentials/{qID}",
19
- pathVariables: { qID },
20
- query,
21
- options
22
- });
23
- var patchDataCredential = async (qID, query, body, options) => invokeFetch("data-credentials", {
24
- method: "patch",
25
- pathTemplate: "/api/v1/data-credentials/{qID}",
26
- pathVariables: { qID },
27
- query,
28
- body,
29
- contentType: "application/json",
30
- options
31
- });
32
- var updateDataCredential = async (qID, query, body, options) => invokeFetch("data-credentials", {
33
- method: "put",
34
- pathTemplate: "/api/v1/data-credentials/{qID}",
35
- pathVariables: { qID },
36
- query,
37
- body,
38
- contentType: "application/json",
39
- options
40
- });
41
- function clearCache() {
42
- return clearApiCache("data-credentials");
43
- }
44
- var dataCredentialsExport = {
45
- deleteDataCredential,
46
- getDataCredential,
47
- patchDataCredential,
48
- updateDataCredential,
49
- clearCache
50
- };
51
- var data_credentials_default = dataCredentialsExport;
52
- export {
53
- clearCache,
54
- data_credentials_default as default,
55
- deleteDataCredential,
56
- getDataCredential,
57
- patchDataCredential,
58
- updateDataCredential
59
- };