@qlik/api 0.0.15 → 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 (135) 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.d.ts +97 -61
  23. package/data-connections.js +29 -29
  24. package/data-credentials.d.ts +3 -2
  25. package/data-credentials.js +19 -19
  26. package/data-files.js +35 -35
  27. package/docs/authentication.md +5 -5
  28. package/docs/examples/fetch-spaces.md +1 -15
  29. package/docs/examples/open-without-data.md +1 -1
  30. package/docs/examples/show-sheet-list.md +1 -1
  31. package/docs/features.md +1 -1
  32. package/extensions.js +25 -25
  33. package/glossaries.js +59 -59
  34. package/groups.d.ts +0 -3
  35. package/groups.js +27 -27
  36. package/identity-providers.js +27 -27
  37. package/index.js +53 -53
  38. package/items.js +27 -27
  39. package/licenses.js +29 -29
  40. package/package.json +36 -232
  41. package/qix.d.ts +1 -1
  42. package/qix.js +10 -10
  43. package/quotas.js +15 -15
  44. package/reload-tasks.js +21 -21
  45. package/reloads.js +19 -19
  46. package/roles.js +15 -15
  47. package/spaces.js +35 -35
  48. package/temp-contents.js +17 -17
  49. package/tenants.js +23 -23
  50. package/themes.js +25 -25
  51. package/transports.js +23 -23
  52. package/users.d.ts +1 -3
  53. package/users.js +31 -31
  54. package/web-integrations.js +21 -21
  55. package/web-notifications.js +23 -23
  56. package/webhooks.js +31 -31
  57. package/api-keys.d.mts +0 -336
  58. package/api-keys.mjs +0 -80
  59. package/apps.d.mts +0 -2431
  60. package/apps.mjs +0 -398
  61. package/audits.d.mts +0 -286
  62. package/audits.mjs +0 -64
  63. package/auth-types-nnUcWhuU.d.mts +0 -98
  64. package/auth.d.mts +0 -26
  65. package/auth.mjs +0 -14
  66. package/automations.d.mts +0 -682
  67. package/automations.mjs +0 -173
  68. package/brands.d.mts +0 -670
  69. package/brands.mjs +0 -123
  70. package/chunks/2YWCEGTS.js +0 -21
  71. package/chunks/34ZKUFEA.js +0 -41
  72. package/chunks/4WHZ4EIW.js +0 -57
  73. package/chunks/B4VPD3ZT.js +0 -574
  74. package/chunks/BM4OSDRZ.js +0 -17
  75. package/chunks/DCXUEDOW.mjs +0 -67
  76. package/chunks/MTAQE4WC.js +0 -10411
  77. package/chunks/PLOSYUG2.js +0 -25
  78. package/chunks/URIW2U5M.js +0 -17
  79. package/chunks/VSY5YIQY.mjs +0 -11
  80. package/chunks/WOYJLK4Y.js +0 -1623
  81. package/collections.d.mts +0 -581
  82. package/collections.mjs +0 -114
  83. package/csp-origins.d.mts +0 -273
  84. package/csp-origins.mjs +0 -69
  85. package/data-assets.d.mts +0 -205
  86. package/data-assets.mjs +0 -66
  87. package/data-connections.d.mts +0 -558
  88. package/data-connections.mjs +0 -103
  89. package/data-credentials.d.mts +0 -203
  90. package/data-credentials.mjs +0 -59
  91. package/data-files.d.mts +0 -562
  92. package/data-files.mjs +0 -123
  93. package/extensions.d.mts +0 -293
  94. package/extensions.mjs +0 -77
  95. package/global.types-5iFvFJvX.d.mts +0 -115
  96. package/glossaries.d.mts +0 -1173
  97. package/glossaries.mjs +0 -237
  98. package/groups.d.mts +0 -434
  99. package/groups.mjs +0 -88
  100. package/identity-providers.d.mts +0 -550
  101. package/identity-providers.mjs +0 -83
  102. package/index.d.mts +0 -142
  103. package/index.mjs +0 -716
  104. package/items.d.mts +0 -535
  105. package/items.mjs +0 -87
  106. package/licenses.d.mts +0 -459
  107. package/licenses.mjs +0 -92
  108. package/qix.d.mts +0 -11629
  109. package/qix.mjs +0 -10
  110. package/quotas.d.mts +0 -112
  111. package/quotas.mjs +0 -32
  112. package/reload-tasks.d.mts +0 -227
  113. package/reload-tasks.mjs +0 -62
  114. package/reloads.d.mts +0 -207
  115. package/reloads.mjs +0 -46
  116. package/roles.d.mts +0 -175
  117. package/roles.mjs +0 -31
  118. package/spaces.d.mts +0 -562
  119. package/spaces.mjs +0 -124
  120. package/temp-contents.d.mts +0 -167
  121. package/temp-contents.mjs +0 -41
  122. package/tenants.d.mts +0 -300
  123. package/tenants.mjs +0 -73
  124. package/themes.d.mts +0 -268
  125. package/themes.mjs +0 -77
  126. package/transports.d.mts +0 -319
  127. package/transports.mjs +0 -65
  128. package/users.d.mts +0 -631
  129. package/users.mjs +0 -104
  130. package/web-integrations.d.mts +0 -274
  131. package/web-integrations.mjs +0 -62
  132. package/web-notifications.d.mts +0 -250
  133. package/web-notifications.mjs +0 -69
  134. package/webhooks.d.mts +0 -445
  135. package/webhooks.mjs +0 -104
@@ -1,203 +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
- /** UName of the credential */
30
- qName: string;
31
- /** Password */
32
- qPassword: string;
33
- /** Type of credential */
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
- href: string;
53
- };
54
- };
55
- type PatchRequest = {
56
- patchData: {
57
- /** Operation type */
58
- op?: "add" | "replace" | "remove";
59
- /** Path to the target field to be patched */
60
- path?: string;
61
- /** 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 */
62
- value?: string;
63
- }[];
64
- };
65
- type ResponseErrors = {
66
- errors?: Errors;
67
- };
68
- /**
69
- * Deletes the specified credential by ID (or by name when type=credentialname is set in query)
70
- *
71
- * @param qID Credential ID
72
- * @param query an object with query parameters
73
- * @throws DeleteDataCredentialHttpError
74
- */
75
- declare const deleteDataCredential: (qID: string, query: {
76
- /** If set to true, credentialId in the query will be intepreted as credential's name */
77
- byCredentialName?: boolean;
78
- }, options?: ApiCallOptions) => Promise<DeleteDataCredentialHttpResponse>;
79
- type DeleteDataCredentialHttpResponse = {
80
- data: void;
81
- headers: Headers;
82
- status: number;
83
- };
84
- type DeleteDataCredentialHttpError = {
85
- data: ResponseErrors;
86
- headers: Headers;
87
- status: number;
88
- };
89
- /**
90
- * Gets a credential by ID (or by name when bycredentialname=true is set in query)
91
- *
92
- * @param qID Credential ID
93
- * @param query an object with query parameters
94
- * @throws GetDataCredentialHttpError
95
- */
96
- declare const getDataCredential: (qID: string, query: {
97
- /** If set to true, credentialId in the query will be intepreted as credential's name */
98
- byCredentialName?: boolean;
99
- }, options?: ApiCallOptions) => Promise<GetDataCredentialHttpResponse>;
100
- type GetDataCredentialHttpResponse = {
101
- data: Credential;
102
- headers: Headers;
103
- status: number;
104
- };
105
- type GetDataCredentialHttpError = {
106
- data: ResponseErrors;
107
- headers: Headers;
108
- status: number;
109
- };
110
- /**
111
- * Patches a credential specified by ID (or by name when bycredentialname=true is set in query)
112
- *
113
- * @param qID Credential ID
114
- * @param query an object with query parameters
115
- * @param body an object with the body content
116
- * @throws PatchDataCredentialHttpError
117
- */
118
- declare const patchDataCredential: (qID: string, query: {
119
- /** If set to true, credentialId in the query will be intepreted as credential's name */
120
- byCredentialName?: boolean;
121
- }, body: PatchRequest, options?: ApiCallOptions) => Promise<PatchDataCredentialHttpResponse>;
122
- type PatchDataCredentialHttpResponse = {
123
- data: void;
124
- headers: Headers;
125
- status: number;
126
- };
127
- type PatchDataCredentialHttpError = {
128
- data: ResponseErrors;
129
- headers: Headers;
130
- status: number;
131
- };
132
- /**
133
- * Updates a credential specified by ID (or by name when bycredentialname=true is set in query)
134
- *
135
- * @param qID Credential ID
136
- * @param query an object with query parameters
137
- * @param body an object with the body content
138
- * @throws UpdateDataCredentialHttpError
139
- */
140
- declare const updateDataCredential: (qID: string, query: {
141
- /** If set to true, credentialId in the query will be intepreted as credential's name */
142
- byCredentialName?: boolean;
143
- }, body: CredentialCreate, options?: ApiCallOptions) => Promise<UpdateDataCredentialHttpResponse>;
144
- type UpdateDataCredentialHttpResponse = {
145
- data: void;
146
- headers: Headers;
147
- status: number;
148
- };
149
- type UpdateDataCredentialHttpError = {
150
- data: ResponseErrors;
151
- headers: Headers;
152
- status: number;
153
- };
154
- /**
155
- * Clears the cache for data-credentials api requests.
156
- */
157
- declare function clearCache(): void;
158
- interface DataCredentialsAPI {
159
- /**
160
- * Deletes the specified credential by ID (or by name when type=credentialname is set in query)
161
- *
162
- * @param qID Credential ID
163
- * @param query an object with query parameters
164
- * @throws DeleteDataCredentialHttpError
165
- */
166
- deleteDataCredential: typeof deleteDataCredential;
167
- /**
168
- * Gets a credential by ID (or by name when bycredentialname=true is set in query)
169
- *
170
- * @param qID Credential ID
171
- * @param query an object with query parameters
172
- * @throws GetDataCredentialHttpError
173
- */
174
- getDataCredential: typeof getDataCredential;
175
- /**
176
- * Patches a credential specified by ID (or by name when bycredentialname=true is set in query)
177
- *
178
- * @param qID Credential ID
179
- * @param query an object with query parameters
180
- * @param body an object with the body content
181
- * @throws PatchDataCredentialHttpError
182
- */
183
- patchDataCredential: typeof patchDataCredential;
184
- /**
185
- * Updates a credential specified by ID (or by name when bycredentialname=true is set in query)
186
- *
187
- * @param qID Credential ID
188
- * @param query an object with query parameters
189
- * @param body an object with the body content
190
- * @throws UpdateDataCredentialHttpError
191
- */
192
- updateDataCredential: typeof updateDataCredential;
193
- /**
194
- * Clears the cache for data-credentials api requests.
195
- */
196
- clearCache: typeof clearCache;
197
- }
198
- /**
199
- * Functions for the data-credentials api
200
- */
201
- declare const dataCredentialsExport: DataCredentialsAPI;
202
-
203
- 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
- };